/* FortuneCafe FisherOnline – dark theme, red accents */
:root {
  --bg: #100a0b;
  --surface: #1a1113;
  --surface-2: #261619;
  --line: #3a2327;
  --text: #f1e8e9;
  --muted: #a8929a;
  --accent: #e0383e;
  --accent-rgb: 224, 56, 62;
  --bg-rgb: 16, 10, 11;
  --surface-a: #171011;
  --surface-b: #1d1315;
  --surface-d: #0e0809;
  --line-2: #3a2a2e;
  --own: #ff6a3d; --own-0: #e0383e; --own-2: #ff8a3d; --own-3: #ffd27a; --own-rgb: 255, 106, 61; --own-bg1: #261512; --own-bg2: #150f0e; --own-line: #5a2a22;
  --accent-2: #ff7a45;
  --accent-ink: #ffffff;
  --teal: #ff8f8a;
  --danger: #ff7b72;
  --ok: #3fb950;
  --radius: 10px;
  --wrap: 1120px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.25; margin: 1.2em 0 .5em; }
h1 { font-size: 1.8rem; margin-top: .4em; }
h2 { font-size: 1.2rem; }
h3 { font-size: 1rem; color: var(--muted); }
code { background: var(--surface-2); padding: .1em .35em; border-radius: 4px; font-size: .9em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); } .small { font-size: .85rem; } .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; } .skip:focus { left: 8px; top: 8px; background: var(--accent); color: var(--accent-ink); padding: 6px 10px; z-index: 10; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* public header */
.site-header { background: linear-gradient(180deg, var(--surface-b), var(--bg)); border-top: 3px solid var(--accent); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.bar { display: flex; align-items: center; gap: 20px; min-height: 60px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--accent); font-size: 1.1rem; }
.brand:hover { text-decoration: none; }
.main-nav { display: flex; gap: 4px; flex: 1; flex-wrap: wrap; }
.main-nav a { color: var(--text); padding: 8px 12px; border-radius: 8px; }
.main-nav a:hover { background: var(--surface-2); text-decoration: none; }
.langs { display: flex; gap: 4px; }
.langs a { color: var(--muted); padding: 4px 8px; border: 1px solid var(--line); border-radius: 6px; font-size: .8rem; }
.langs a[aria-current] { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }
main.wrap { padding-bottom: 48px; min-height: 60vh; }
.site-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; padding: 18px 0; }

.page-hero { padding: 28px 0 8px; }
.page-hero h1 { font-size: 2.2rem; margin: 0 0 .3em; background: linear-gradient(90deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.page-hero p { color: var(--muted); max-width: 60ch; margin: 0; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 20px 0; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.stat strong { display: block; font-size: 1.5rem; color: var(--accent); }
.stat span { color: var(--muted); font-size: .85rem; }
.cols { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; align-items: start; }
@media (max-width: 860px) { .cols { grid-template-columns: 1fr; } }
.rank { list-style: none; counter-reset: r; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.rank li { counter-increment: r; display: flex; justify-content: space-between; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.rank li:last-child { border-bottom: 0; }
.rank li::before { content: counter(r); color: var(--muted); width: 1.5em; }
.rank a { flex: 1; } .rank span { color: var(--muted); font-size: .85rem; }
.empty { color: var(--muted); background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); padding: 18px; }
.crumbs { margin: 14px 0 0; font-size: .9rem; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; }
.chips a { display: inline-block; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; color: var(--text); }
.chips small { color: var(--accent); margin-left: 4px; }
.cards { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.cards a { display: grid; gap: 2px; justify-items: center; text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 10px; color: var(--text); height: 100%; }
.cards a:hover { border-color: var(--accent); text-decoration: none; }
.fish-img { width: 96px; height: 96px; object-fit: contain; }
.fish-head { display: flex; gap: 18px; align-items: center; }
.fish-head h1 { margin: 0; }

/* tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table.data { width: 100%; border-collapse: collapse; }
table.data th, table.data td { padding: 9px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.data thead th { color: var(--muted); font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; background: var(--surface-2); position: sticky; top: 0; }
table.data tbody tr:hover { background: rgba(var(--accent-rgb), .08); }
table.data tr:last-child td { border-bottom: 0; }
table.data .num { text-align: right; font-variant-numeric: tabular-nums; }
table.kv th { width: 40%; text-transform: none; font-size: .9rem; background: none; position: static; }
.nowrap { white-space: nowrap; }
.ent { display: inline-flex; align-items: center; gap: 8px; color: var(--text); }
a.ent:hover { color: var(--teal); text-decoration: none; }
.thumb { width: 28px; height: 28px; object-fit: contain; flex: none; }
.img-missing { visibility: hidden; }
.weight { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 640px) {
  table.data thead { display: none; }
  table.data, table.data tbody, table.data tr, table.data td { display: block; width: 100%; }
  table.data tr { border-bottom: 1px solid var(--line); padding: 6px 0; }
  table.data td { border: 0; display: flex; justify-content: space-between; gap: 12px; padding: 4px 12px; text-align: right; }
  table.data td::before { content: attr(data-label); color: var(--muted); font-size: .8rem; text-align: left; }
  table.data.kv th, table.data.kv td { display: block; width: 100%; }
}

/* forms */
.filter, .toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 12px 0; }
.toolbar { justify-content: space-between; }
input, select, textarea, button, .btn { font: inherit; }
input:not([type=checkbox]):not([type=color]), select, textarea { background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; min-width: 0; }
input.short { width: 9em; }
button, .btn { background: var(--surface-2); color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 8px 14px; cursor: pointer; display: inline-block; }
button:hover, .btn:hover { border-color: var(--accent); text-decoration: none; }
button.primary, .btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 600; }
button.link { background: none; border: 0; color: var(--teal); padding: 0; }
.btn-link { color: var(--muted); }
.pager { display: flex; gap: 16px; align-items: center; justify-content: center; margin: 18px 0; color: var(--muted); }
.form { display: grid; gap: 8px; }
.form.narrow, .narrow { max-width: 520px; }
.form label { color: var(--muted); font-size: .9rem; }
.form.inline { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; }
.form.inline label { display: grid; gap: 4px; }
.check { display: flex !important; align-items: center; gap: 8px; color: var(--text) !important; }
.inline-form { display: inline; margin-left: 8px; }
.flash { padding: 10px 14px; border-radius: 8px; margin: 10px 0; border: 1px solid; }
.flash.ok { background: rgba(63, 185, 80, .12); border-color: var(--ok); }
.flash.err { background: rgba(255, 123, 114, .12); border-color: var(--danger); }
.err-t { color: var(--danger); } .ok-t { color: var(--ok); }
.plain { list-style: none; padding: 0; } .plain li { padding: 4px 0; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin: 16px 0; }
.card h2 { margin-top: 0; }
.value-row { padding: 6px 0; border-top: 1px solid var(--line); }
.vkey { min-width: 8em; }
.btns { display: flex; gap: 8px; flex-wrap: wrap; }

/* admin */
.adm-shell { display: grid; grid-template-columns: 230px 1fr; min-height: 100vh; }
.adm-side { background: var(--surface); border-right: 1px solid var(--line); padding: 18px 14px; display: flex; flex-direction: column; gap: 18px; position: sticky; top: 0; height: 100vh; }
.adm-side .brand { flex-direction: column; align-items: flex-start; gap: 0; }
.adm-side .brand small { color: var(--muted); font-weight: 400; }
.adm-side nav { display: grid; gap: 2px; }
.adm-side nav a { color: var(--text); padding: 8px 10px; border-radius: 8px; }
.adm-side nav a:hover { background: var(--surface-2); text-decoration: none; }
.adm-side nav a[aria-current] { background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.adm-user { margin-top: auto; display: grid; gap: 6px; font-size: .85rem; color: var(--muted); }
.adm-main { padding: 8px 28px 60px; min-width: 0; }
@media (max-width: 860px) {
  .adm-shell { grid-template-columns: 1fr; }
  .adm-side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; }
  .adm-side nav { display: flex; flex-wrap: wrap; }
  .adm-user { margin: 0; display: flex; flex-wrap: wrap; gap: 12px; }
  .adm-main { padding: 8px 14px 40px; }
}
body.auth { display: grid; place-items: center; min-height: 100vh; }
.auth-card { width: min(400px, 92vw); background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 26px; }
.auth-card h1 { color: var(--accent); margin-top: 0; }
.auth-card form { display: grid; gap: 8px; }
.auth-card label { color: var(--muted); font-size: .9rem; }
@media (prefers-reduced-motion: no-preference) { a, button, .btn { transition: color .15s, border-color .15s, background .15s; } }

/* fisher-hub inspired refinements */
.main-nav a { text-transform: uppercase; letter-spacing: .05em; font-size: .85rem; font-weight: 600; border-bottom: 2px solid transparent; border-radius: 0; }
.main-nav a:hover { background: none; color: var(--accent); border-bottom-color: var(--accent); }
.page-hero { padding: 36px 24px; margin: 18px 0 8px; border: 1px solid var(--line); border-radius: 14px; background: radial-gradient(120% 140% at 0% 0%, rgba(var(--accent-rgb), .22), transparent 60%), var(--surface); }
.stat { border-left: 3px solid var(--accent); }
.stat strong { color: #fff; font-size: 1.7rem; }
section > h2 { border-left: 3px solid var(--accent); padding-left: 10px; }
.rank li::before { color: var(--accent); font-weight: 700; }
table.data thead th { border-bottom: 2px solid var(--accent); }
table.data td .ent { display: inline-flex; align-items: center; gap: 8px; }
table.data td .thumb { flex: none; }
.cards a:hover, .chips a:hover { border-color: var(--accent); background: var(--surface-2); text-decoration: none; }
.site-footer { background: #0b0607; }
.cols > * { min-width: 0; }
.admin-thumb { max-width: 260px; border-radius: 8px; border: 1px solid var(--line); display: block; }
.probe { background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; padding: 12px; overflow-x: auto; white-space: pre-wrap; word-break: break-word; font-size: .85rem; }

/* ===== v2: modern admin ===== */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ico { width: 1.1em; height: 1.1em; flex: none; fill: currentColor; vertical-align: -.18em; }
body.adm { background: var(--surface-d); }
.adm-shell { grid-template-columns: 252px minmax(0, 1fr); }
.adm-side { background: #130c0e; border-right: 1px solid var(--line); padding: 22px 14px 16px; gap: 22px; overflow-y: auto; }
.adm-brand { display: grid; gap: 4px; padding: 0 10px; color: #fff; }
.adm-brand:hover { text-decoration: none; }
.adm-brand img { width: 150px; height: auto; display: block; }
.adm-brand small { color: var(--accent); font-weight: 700; letter-spacing: .18em; text-transform: uppercase; font-size: .66rem; }
.adm-side nav { display: grid; gap: 18px; }
.nav-group { display: grid; gap: 2px; }
.nav-group > span { text-transform: uppercase; letter-spacing: .14em; font-size: .64rem; color: #7d676d; padding: 0 12px 6px; font-weight: 700; }
.adm-side nav a { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 10px; color: #cdbcc0; font-weight: 500; font-size: .93rem; }
.adm-side nav a .ico { width: 18px; height: 18px; opacity: .8; }
.adm-side nav a:hover { background: rgba(255, 255, 255, .05); color: #fff; text-decoration: none; }
.adm-side nav a[aria-current] { background: rgba(var(--accent-rgb), .16); color: #fff; box-shadow: inset 3px 0 0 var(--accent); font-weight: 600; }
.adm-side nav a[aria-current] .ico { color: var(--accent); opacity: 1; }
.adm-user { margin-top: auto; padding: 14px 8px 0; border-top: 1px solid var(--line); display: grid; gap: 2px; font-size: .88rem; }
.adm-user .who { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 600; padding: 4px 8px 8px; }
.adm-user a, .adm-user button.link { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 8px; color: #b8a5aa; width: 100%; text-align: left; font-size: .88rem; }
.adm-user a:hover, .adm-user button.link:hover { background: rgba(255, 255, 255, .05); color: #fff; text-decoration: none; }
.adm-main { padding: 28px 40px 80px; max-width: 1320px; width: 100%; }
.adm-head h1 { font-size: 1.7rem; margin: 0 0 18px; letter-spacing: -.01em; }
.adm .muted.small, .adm small { line-height: 1.5; }

/* cards and forms */
.adm .card { background: var(--surface-a); border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; margin: 0 0 18px; box-shadow: 0 1px 0 rgba(255, 255, 255, .03) inset; }
.adm .card h2 { font-size: 1.05rem; margin: 0 0 14px; display: flex; align-items: center; gap: 10px; }
.adm fieldset.card { min-width: 0; }
.adm fieldset.card legend { font-weight: 700; padding: 0 8px; margin-left: -8px; }
.field { display: grid; gap: 6px; margin-bottom: 14px; min-width: 0; }
.field:last-child { margin-bottom: 0; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 22px; }
.field-grid .field { margin: 0; }
@media (max-width: 900px) { .field-grid { grid-template-columns: 1fr; } }
.adm label { color: #cdbcc0; font-size: .86rem; font-weight: 600; display: block; }
.adm .form label.check, .adm label.check { display: flex; align-items: center; gap: 9px; font-weight: 500; color: var(--text); margin: 6px 0; }
.adm .hint, .adm small.muted { color: #8d777d; font-size: .8rem; display: block; }
.adm input:not([type=checkbox]):not([type=color]):not([type=file]):not(.short), .adm select, .adm textarea { width: 100%; background: var(--surface-d); border: 1px solid var(--line-2); border-radius: 10px; padding: 10px 12px; color: var(--text); transition: border-color .15s, box-shadow .15s; }
.adm input.short { width: 9em; }
.adm textarea { min-height: 140px; line-height: 1.55; resize: vertical; font-family: inherit; }
.adm input:focus, .adm select:focus, .adm textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .22); }
.adm input[type=file] { color: var(--muted); padding: 8px 0; max-width: 100%; }
.adm input[type=file]::file-selector-button { background: var(--surface-2); color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 7px 12px; margin-right: 12px; cursor: pointer; font: inherit; }
.adm input[type=checkbox] { accent-color: var(--accent); width: 17px; height: 17px; }
.adm .form.narrow { max-width: 560px; }
.adm .form.narrow > label { margin-top: 10px; }
.adm .form.inline { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.adm .form.inline label { display: grid; gap: 5px; }
.adm .form.inline input:not([type=checkbox]):not([type=color]):not(.short) { width: auto; min-width: 12em; }
.adm .form.inline label.check { display: flex; }
.savebar { position: sticky; bottom: 0; padding: 14px 0; background: linear-gradient(180deg, transparent, var(--surface-d) 40%); }
.sticky-actions { position: sticky; top: 16px; }

/* editor layout (news) */
.editor { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 22px; align-items: start; }
.editor-side { position: sticky; top: 20px; display: grid; gap: 0; }
@media (max-width: 1100px) { .editor { grid-template-columns: minmax(0, 1fr); } .editor-side { position: static; } }
.lang-tag { display: inline-grid; place-items: center; min-width: 30px; height: 22px; padding: 0 6px; border-radius: 6px; background: var(--accent); color: #fff; font-size: .7rem; letter-spacing: .06em; }
.admin-thumb { max-width: 220px; width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--line); display: block; }
.admin-thumb.wide { max-width: 100%; margin-bottom: 10px; }
.hero-row { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.hero-row .admin-thumb { max-width: 260px; }
.hero-actions { display: grid; gap: 10px; justify-items: start; }

/* buttons, badges */
.adm button, .adm .btn { border-radius: 10px; padding: 9px 16px; font-weight: 600; font-size: .9rem; background: #231619; border: 1px solid var(--line-2); color: var(--text); transition: background .15s, border-color .15s, transform .05s; }
.adm button:hover, .adm .btn:hover { background: #2d1c20; border-color: #5a3a40; text-decoration: none; }
.adm button:active, .adm .btn:active { transform: translateY(1px); }
.adm button.primary, .adm .btn.primary { background: linear-gradient(180deg, #e84a4f, #c92c32); border-color: var(--accent); color: #fff; box-shadow: 0 4px 16px rgba(var(--accent-rgb), .28); }
.adm button.primary:hover, .adm .btn.primary:hover { background: linear-gradient(180deg, #f05a5f, #d63339); }
.adm .btn.sm, .adm button.sm { padding: 6px 12px; font-size: .82rem; }
.adm .btn.danger, .adm button.danger { color: #ff9a94; }
.adm .btn.danger:hover, .adm button.danger:hover { background: rgba(255, 123, 114, .14); border-color: var(--danger); }
.adm button.link { background: none; border: 0; box-shadow: none; padding: 0; font-weight: 500; }
.badge { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: .74rem; font-weight: 700; letter-spacing: .03em; background: #2a1d20; color: #b8a5aa; border: 1px solid var(--line-2); white-space: nowrap; }
.badge.ok { background: rgba(63, 185, 80, .14); color: #5fd47a; border-color: rgba(63, 185, 80, .4); }
.badge.warn { background: rgba(240, 136, 62, .14); color: #ffa664; border-color: rgba(240, 136, 62, .4); }
.badge.info { background: rgba(88, 166, 255, .14); color: #7db8ff; border-color: rgba(88, 166, 255, .4); }
.flash { border-radius: 12px; padding: 12px 16px; }
.flash.note { background: rgba(88, 166, 255, .1); border-color: rgba(88, 166, 255, .4); }
.flash form { display: inline; margin-left: 12px; }

/* lists */
.toolbar { margin: 0 0 16px; }
.list-cards { display: grid; gap: 10px; }
.list-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 16px; align-items: center; padding: 12px 16px; background: var(--surface-a); border: 1px solid var(--line); border-radius: 14px; color: var(--text); transition: border-color .15s, background .15s; }
a.list-card { grid-template-columns: minmax(0, 1fr) auto; }
a.list-card:hover, .list-card:hover { border-color: #5a3a40; background: #1c1214; text-decoration: none; }
.lc-thumb { display: block; width: 86px; height: 52px; border-radius: 8px; overflow: hidden; background: var(--surface-2); }
.lc-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lc-thumb span { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, #3a1a1f, #1a0d10); }
.lc-main { display: grid; gap: 3px; min-width: 0; }
.lc-main strong { color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lc-badges { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.lc-actions { display: flex; gap: 8px; align-items: center; }
.lc-actions form { margin: 0; }
@media (max-width: 760px) { .list-card { grid-template-columns: auto minmax(0, 1fr); } .lc-badges, .lc-actions { grid-column: 1 / -1; justify-content: flex-start; } }

/* tables, dashboard */
.adm .table-wrap { background: var(--surface-a); border: 1px solid var(--line); border-radius: 14px; }
.adm table.data thead th { background: var(--surface-b); color: #a48f95; border-bottom: 1px solid var(--line); }
.adm table.data td { padding: 11px 14px; }
.adm table.data tbody tr:hover { background: rgba(var(--accent-rgb), .06); }
.adm .stats { gap: 16px; margin: 0 0 24px; }
.adm .stat { background: var(--surface-a); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 14px; padding: 18px 20px; }
.adm .stat strong { color: #fff; font-size: 1.8rem; }
.adm .cols { gap: 24px; }
.adm .cols h2 { margin: 24px 0 12px; font-size: 1.05rem; border: 0; padding: 0; }
.adm .cols > section > h2:first-child { margin-top: 0; }
.adm table.kv { background: var(--surface-a); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.adm .value-row { padding: 10px 0; border-top: 1px solid var(--line); }
.adm .filter { gap: 10px; }
.adm .filter input[type=search], .adm .filter input:not([type=checkbox]) { width: auto; }
.adm .filter select { width: auto; }
.adm .empty { background: var(--surface-a); border: 1px dashed var(--line-2); border-radius: 14px; padding: 22px; color: var(--muted); }
.adm .pager { color: var(--muted); }
.adm .pager a { padding: 6px 12px; border: 1px solid var(--line); border-radius: 8px; }
.adm code { background: var(--surface-2); color: #f2c9cc; }

/* login */
body.auth { background: radial-gradient(80% 60% at 50% 0%, rgba(var(--accent-rgb), .22), transparent 70%), var(--surface-d); }
.auth-card { background: var(--surface-a); border: 1px solid var(--line); border-radius: 18px; padding: 34px 30px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.auth-logo { display: block; width: 220px; max-width: 100%; height: auto; margin: 0 auto 22px; }
.auth-card h1 { color: #fff; text-align: center; font-size: 1.3rem; }
.auth-card input { width: 100%; background: var(--surface-d); border: 1px solid var(--line-2); border-radius: 10px; padding: 11px 12px; color: var(--text); }
.auth-card input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .22); }
.auth-card button.primary { margin-top: 8px; padding: 11px; border-radius: 10px; background: linear-gradient(180deg, #e84a4f, #c92c32); border: 1px solid var(--accent); color: #fff; font-weight: 700; }

@media (max-width: 860px) {
  .adm-shell { grid-template-columns: 1fr; }
  .adm-side { position: static; height: auto; padding: 14px; flex-direction: column; }
  .adm-side nav { display: flex; flex-wrap: wrap; gap: 4px 14px; }
  .nav-group { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
  .nav-group > span { display: none; }
  .adm-user { flex-direction: row; flex-wrap: wrap; gap: 4px 14px; }
  .adm-main { padding: 20px 16px 60px; }
}
.adm .adm-user button.link { padding: 7px 8px; }
.crumbs { margin: 0 0 14px; }
.adm .filter input:not([type=checkbox]):not([type=color]):not([type=file]):not(.short), .adm .filter select { width: auto; min-width: 9em; }
.adm .filter label { display: inline; }
.adm .filter { align-items: center; }

/* Flags */
.flag { display: inline-block; width: 20px; height: 15px; vertical-align: -2px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .15); object-fit: cover; }
.flag-text { width: auto; height: auto; padding: 0 4px; font-size: .68rem; font-weight: 700; line-height: 15px; letter-spacing: .04em; background: rgba(255, 255, 255, .1); }
.ent-name { white-space: nowrap; }

/* date + time picker and fish/map picker (admin) */
.dtp { position: relative; display: inline-block; max-width: 100%; }
.dtp-btn { background: var(--surface-2); color: var(--text); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px 10px 44px !important; font: inherit; cursor: pointer; min-width: 210px; text-align: left; position: relative; }
.dtp-btn::before { content: ""; position: absolute; left: 13px; top: 50%; width: 14px; height: 14px; margin-top: -8px; border: 2px solid var(--muted); border-top-width: 5px; border-radius: 3px; }
.dtp-btn.empty { color: var(--muted); }
.dtp-btn:hover, .dtp-btn:focus-visible { border-color: var(--accent); outline: none; }
.dtp-pop { box-sizing: border-box; position: absolute; z-index: 60; top: calc(100% + 6px); left: 0; width: 288px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px; box-shadow: 0 18px 50px rgba(0, 0, 0, .55); }
.dtp-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.dtp-nav { background: var(--surface-2); color: var(--text); border: 1px solid var(--line); border-radius: 8px; width: 32px; height: 32px; font-size: 1.2rem; line-height: 1; cursor: pointer; }
.dtp-grid > * { min-width: 0; }
.dtp-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.dtp-dow { text-align: center; font-size: .72rem; color: var(--muted); padding: 4px 0; }
.dtp-day { width: 100%; background: transparent; border: 1px solid transparent; color: var(--text); border-radius: 8px; padding: 7px 0 !important; cursor: pointer; font: inherit; font-size: .9rem; }
.dtp-day:hover { background: var(--surface-2); }
.dtp-day.today { border-color: var(--line); }
.dtp-day.sel { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.dtp-time { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 12px 0; }
.dtp-time select { width: 76px; text-align: center; }
.dtp-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.dtp-link { background: none; border: 0; color: var(--teal); cursor: pointer; font: inherit; padding: 4px 6px; }
.pick { position: relative; display: grid; gap: 8px; }
.pick-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pick-chips:empty { display: none; }
.pick-chip { display: inline-flex; align-items: center; gap: 6px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 4px 6px 4px 12px; font-size: .9rem; }
.pick-chip b { color: var(--accent-2); font-weight: 600; }
.pick-x { background: transparent; border: 0; color: var(--muted); cursor: pointer; font-size: 1.1rem; line-height: 1; padding: 2px 6px; }
.pick-x:hover { color: var(--danger); }
.pick-list { position: absolute; z-index: 50; top: 100%; left: 0; right: 0; margin: 4px 0 0; padding: 4px; list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 14px 40px rgba(0, 0, 0, .5); max-height: 280px; overflow: auto; }
.pick-list button { display: block; width: 100%; text-align: left; background: none; border: 0; color: var(--text); padding: 8px 12px; border-radius: 8px; cursor: pointer; font: inherit; }
.pick-list button:hover, .pick-list button:focus-visible { background: var(--surface-2); outline: none; }
.pick-list .none { padding: 8px 12px; color: var(--muted); }
.refresh-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

.explain-box { margin-top: 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.03); }
.explain-box p { margin: 8px 0 0; }

/* admin on small screens: compact sticky bar, menu scrolls sideways */
@media (max-width: 860px) {
  .adm-shell { grid-template-columns: minmax(0, 1fr); }
  .adm-main { min-width: 0; overflow-x: clip; }
  .adm-side { position: sticky; top: 0; z-index: 30; min-width: 0; padding: 10px 12px 8px; gap: 6px; overflow: visible; }
  .adm-brand { grid-auto-flow: column; justify-content: start; align-items: center; gap: 10px; padding: 0 4px; }
  .adm-brand img { width: 120px; }
  .adm-side > * { min-width: 0; max-width: 100%; }
  .adm-side nav { display: flex; flex-wrap: nowrap; overflow-x: auto; width: 100%; gap: 4px; scrollbar-width: none; margin: 0; padding: 0; }
  .adm-side nav::-webkit-scrollbar { display: none; }
  .nav-group { display: contents; }
  .adm-side nav a { flex: none; white-space: nowrap; padding: 8px 12px; background: rgba(255, 255, 255, .04); }
  .adm-side nav a .ico { display: none; }
  .adm-side nav a[aria-current] { box-shadow: none; border: 1px solid rgba(var(--accent-rgb), .6); }
  .adm-user { display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 14px; font-size: .82rem; scrollbar-width: none; }
  .adm-user .who { display: none; }
  .adm-user a, .adm-user button { white-space: nowrap; }
  .table-wrap { overflow-x: auto; }
  .adm-main h1 { font-size: 1.5rem; }
  .adm-main table.data tr { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 10px; padding: 10px 12px; }
  .adm-main table.data td { display: block; width: auto; padding: 2px 0; text-align: left; min-width: 0; overflow-wrap: anywhere; }
  .adm-main table.data td:empty { display: none; }
  .adm-main table.data td form { display: flex; flex-wrap: wrap; gap: 6px; }
  .adm-main table.data td:last-child { grid-column: 1 / -1; }
  .toolbar .btn, .filter button { min-height: 42px; }
  input, select, textarea { font-size: 16px; max-width: 100%; }
}
.lc-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; justify-content: flex-end; }
.list-card .lc-actions { grid-column: 1 / -1; justify-content: flex-start; border-top: 1px solid var(--line); padding-top: 10px; }
.num-in { width: 70px; } .num-in.wide { width: 100px; }
.color-pick { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.color-pick .cp { position: relative; display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
.color-pick .cp input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.color-pick .cp:has(input:checked) { border-color: #fff; background: rgba(255, 255, 255, .15); box-shadow: 0 0 0 1px #fff; }
.color-pick .cp:not(:has(input:checked)) .spool { opacity: .45; }
.color-pick .spool { width: 20px; height: 20px; } .color-pick .spool svg { width: 20px; height: 20px; }
.spool .sp-fl { fill: #8d7b7e; } .spool .sp-body { fill: var(--sp, #fff); stroke: rgba(255,255,255,.55); stroke-width: .8; } .spool .sp-ln { stroke: rgba(0,0,0,.28); stroke-width: .8; fill: none; }
.sp-white { --sp: #f4f4f4; } .sp-yellow { --sp: #f3dc2a; } .sp-green { --sp: #3fbf4f; } .sp-brown { --sp: #8a5a2b; } .sp-blue { --sp: #5aa2ff; }
.sp-navy { --sp: #1f3f9a; } .sp-black { --sp: #151515; } .sp-red { --sp: var(--accent); } .sp-orange { --sp: #ff8a2a; } .sp-gray { --sp: #9a9a9a; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.map-find { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 10px 0 6px; }
.map-find input[type=search] { flex: 1 1 260px; width: auto; min-width: 0; }
.map-find select { flex: 0 0 auto; width: auto; min-width: 190px; }
.lc-actions label.small { display: inline-flex; align-items: center; gap: 6px; }
.lc-actions select { width: auto; }
.lc-actions input[type=file] { width: auto; max-width: 260px; }
.theme-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; margin: 14px 0; }
.theme-card { display: grid; gap: 8px; align-content: start; }
.theme-card h3 { margin: 4px 0 0; color: var(--text); }
.theme-card.is-live { border-color: var(--ok); }
.theme-card.is-preview { border-color: var(--accent-2); }
.theme-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.theme-actions form { margin: 0; }
.theme-bar { position: relative; z-index: 50; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: center; padding: 8px 14px; background: #1d1400; color: #ffe39a; border-bottom: 2px solid #e8b84a; font-size: .9rem; }
.theme-bar form { margin: 0; }

/* admin accordion lists (users, clubs) */
.acc-list { display: grid; gap: 8px; margin: 12px 0; }
.acc { background: var(--surface-a); border: 1px solid var(--line); border-radius: 12px; }
.acc[open] { border-color: var(--accent-2); }
.acc > summary { list-style: none; cursor: pointer; display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; justify-content: space-between; padding: 10px 14px; }
.acc > summary::-webkit-details-marker { display: none; }
.acc > summary::before { content: '\25B8'; color: var(--muted); margin-right: -6px; transition: transform .15s; }
.acc[open] > summary::before { transform: rotate(90deg); }
.acc-main { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; flex: 1 1 260px; min-width: 0; }
.acc-meta { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; justify-content: flex-end; }
.acc-body { display: grid; gap: 12px; padding: 4px 14px 14px; border-top: 1px solid var(--line); }
.acc-sec h4 { margin: 10px 0 6px; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.acc-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.acc-body .inline-form { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.chip-scroll { max-height: 180px; overflow: auto; display: flex; flex-wrap: wrap; gap: 6px; padding: 8px; border: 1px solid var(--line); border-radius: 10px; background: rgba(0, 0, 0, .15); }

.nav-live{display:inline-block;min-width:1.3em;padding:0 .4em;margin-left:.25em;border-radius:999px;background:var(--accent,#e0333f);color:#fff;font-size:.75em;font-weight:700;line-height:1.5;text-align:center;vertical-align:middle}

details.card > summary { cursor: pointer; list-style: none; }
details.card > summary::-webkit-details-marker { display: none; }
details.card > summary::before { content: '\25B8'; color: var(--muted); margin-right: 8px; }
details.card[open] > summary::before { content: '\25BE'; }
details.card > summary h2.inline-h { display: inline; margin: 0; }
.lang-det { margin: 8px 0; border: 1px solid var(--line); border-radius: 10px; padding: 6px 12px; }
.lang-det > summary { cursor: pointer; font-weight: 700; padding: 4px 0; }
