/* ============================================================================
   CORE ADMIN THEME — shared by every project's staff/admin surface.
   Matches the CLUB OS Staff iOS app's visual language (Theme.swift) so the
   web admin and the app feel like the same product. Scoped entirely to
   `body.admin` (set by dojo.html/q.html only when a logged-in staff user is
   present) - guest-facing/public pages never get this class, so this file
   changes nothing there. Each project keeps its own --red/--gold/font-family
   from its own project CSS; this file only restyles shared component
   classes (.panel, .metric, .badge, .button, .row, .adminnav, .tabbar, form
   fields), never touches HTML structure or Jinja logic.
   ============================================================================ */
body.admin{
  --card-bg:#15151b;
  --card-bg-2:#1e1e26;
  --line-soft:rgba(255,255,255,.08);
  --radius-card:20px;
  --radius-control:14px;
  --radius-pill:999px;
  --success:#28c76f;
  --danger:#ea3338;
  --warn:#f0a020;
}
body.admin{background:#090909}
/* No decorative branding in the admin - that stays on public/guest pages
   only (landing, apply, install). Native app feel: system font, no
   ambient photo, calmer headings, no shouty all-caps hero type. */
body.admin .ambient{display:none}
body.admin{font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","SF Pro Display",system-ui,"Segoe UI",Roboto,sans-serif}
body.admin h1,body.admin h2,body.admin h3{
  font-family:inherit;text-transform:none;letter-spacing:-.01em;
}
body.admin h1{font-size:22px;font-weight:700;margin:4px 0 18px;white-space:normal}
body.admin h2{font-size:18px;font-weight:700;margin:0 0 14px}
body.admin h3{font-size:14px;font-weight:700;margin:0 0 10px;color:#f5f5f7}
body.admin .eyebrow{
  font-family:inherit;font-size:10px;font-weight:700;
  letter-spacing:.08em;color:var(--muted);
}
body.admin h1 em{font-style:normal;color:inherit}

/* Cards (.panel is the existing component class in every project's markup) */
body.admin .panel{
  background:var(--card-bg);
  border:1px solid var(--line-soft);
  border-radius:var(--radius-card);
  box-shadow:0 20px 40px -26px rgba(0,0,0,.7);
}
body.admin .panel .panel{background:var(--card-bg-2)}
body.admin a.panel,body.admin .panel[tabindex]{transition:transform .15s cubic-bezier(.16,1,.3,1)}
body.admin a.panel:active,body.admin .panel[tabindex]:active{transform:scale(.98)}

/* Stat tiles (.metric — already the "big number + muted label" pattern) */
body.admin .metric{
  background:var(--card-bg);
  border:1px solid var(--line-soft);
  border-radius:var(--radius-card);
  padding:20px;
  transition:transform .15s cubic-bezier(.16,1,.3,1);
}
body.admin a.metric,body.admin .metric[tabindex]{cursor:pointer}
body.admin a.metric:active,body.admin .metric[tabindex]:active{transform:scale(.97)}
body.admin .metric small{
  display:block;font-size:11px;font-weight:700;
  text-transform:uppercase;letter-spacing:.09em;color:var(--muted);
}
body.admin .metric strong{
  display:block;font-size:32px;font-weight:800;
  letter-spacing:-.01em;margin-top:6px;color:#f5f5f7;
}

/* Rows (member lists, invitation lists, etc.) get a subtle press/hover */
body.admin a.row{border-radius:var(--radius-control);transition:background .15s}
body.admin a.row:hover{background:rgba(255,255,255,.04)}
body.admin a.row:active{transform:scale(.99)}
body.admin .row{border-bottom-color:var(--line-soft)}

/* Buttons — native macOS/iOS feel: smaller, quieter, no shouty solid-fill
   letter-spaced CTA look (that stays on public/guest pages only). */
body.admin .button,body.admin button{
  border-radius:var(--radius-pill);
  font:600 13px inherit;letter-spacing:0;text-transform:none;
  padding:9px 18px;min-height:36px;
  transition:transform .1s cubic-bezier(.16,1,.3,1),background .2s,opacity .15s;
}
body.admin .button:hover,body.admin button:hover{transform:none;opacity:.88}
body.admin .button:active,body.admin button:active{transform:scale(.96)}
body.admin .button.outline,body.admin .outline{
  background:var(--card-bg-2);border-color:var(--line-soft);color:#f5f5f7;
}

/* Badges — pill-shaped, semantic colors available */
body.admin .badge{border-radius:20px;font-weight:600;letter-spacing:.02em}
body.admin .badge.success{color:var(--success);border-color:var(--success)}
body.admin .badge.danger{color:var(--danger);border-color:var(--danger)}
body.admin .badge.warn{color:var(--warn);border-color:var(--warn)}

/* iOS-style pill toggle for every checkbox in the admin (settings, module
   flags, etc.) - pure CSS, no markup change needed anywhere it's used. */
body.admin input[type=checkbox]{
  appearance:none;-webkit-appearance:none;
  width:42px;height:25px;border-radius:13px;
  background:#3a3a3c;border:none;position:relative;
  cursor:pointer;flex-shrink:0;transition:background .2s;
  margin:0;padding:0;vertical-align:middle;
}
body.admin input[type=checkbox]::before{
  content:'';position:absolute;top:2px;left:2px;
  width:21px;height:21px;border-radius:50%;background:#fff;
  box-shadow:0 1px 3px rgba(0,0,0,.4);transition:transform .2s;
}
body.admin input[type=checkbox]:checked{background:var(--success)}
body.admin input[type=checkbox]:checked::before{transform:translateX(17px)}
body.admin input[type=checkbox]:focus-visible{outline:2px solid var(--red);outline-offset:2px}

/* Form fields — match the app's rounded, card-style inputs */
body.admin input,body.admin textarea,body.admin select{
  background:var(--card-bg);
  border:1px solid var(--line-soft);
  border-radius:var(--radius-control);
}
body.admin input:focus,body.admin textarea:focus,body.admin select:focus{
  outline:1.5px solid var(--red);outline-offset:1px;
}

/* Nav — desktop top nav gets a touch more breathing room; mobile tab bar
   (already built for Q, see .tabbar below) becomes the shared pattern for
   every project going forward. */
body.admin .adminnav{border-bottom-color:var(--line-soft)}
body.admin .stickybar{border-bottom-color:var(--line-soft)}
body.admin .navdrop-menu{
  background:var(--card-bg-2);border-color:var(--line-soft);
  border-radius:var(--radius-card);overflow:hidden;
}

/* Message/list cards */
body.admin .message{border-bottom-color:var(--line-soft)}

@media(prefers-reduced-motion:reduce){
  body.admin .panel,body.admin .metric,body.admin a.row,
  body.admin .button,body.admin button{transition:none!important}
}

/* ============================================================================
   ADMIN SIDEBAR — modular, left-column desktop nav (CRM-app pattern), the
   same menu concept as the iOS Staff app's bottom tab bar just laid out for
   desktop. Items are rendered by templates/_admin_sidebar.html, entirely
   driven by `mods`/`u.role` - a project with fewer modules on simply shows
   fewer items, no per-tenant branching here or in that include.
   `.shell` keeps its ORIGINAL centered-column meaning on every public page;
   this only redefines it under body.admin, where `.shell`'s only content is
   the sidebar + admin-main, so nothing outside admin is touched. */
body.admin .shell{display:flex;align-items:stretch;max-width:none;margin:0;padding:0;min-height:100vh}
body.admin .admin-sidebar{
  width:240px;flex:0 0 240px;
  background:#0c0c0e;
  border-right:1px solid var(--line-soft);
  display:flex;flex-direction:column;
  padding:26px 16px 20px;
  position:sticky;top:0;align-self:flex-start;height:100vh;overflow-y:auto;
}
/* Persistent DHIRTY mark, top-left - the one constant brand across every
   project's admin (David, 2026-09-25: "a DHIRTY logo... fix, tedd oda
   vissza"). Plain wordmark, not a per-project logo image. */
body.admin .admin-sidebar-brand{
  font-weight:800;letter-spacing:.06em;text-transform:uppercase;
  font-size:13px;color:#fff;padding:4px 10px 26px;
}
body.admin .admin-sidebar-nav{display:flex;flex-direction:column;gap:1px;flex:1 0 auto}
body.admin .admin-sidebar-label{
  font-size:9.5px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;
  color:var(--muted);padding:16px 10px 6px;
}
body.admin .admin-sidebar-nav a{
  display:flex;align-items:center;gap:11px;
  padding:9px 10px;border-radius:10px;
  font-size:13px;font-weight:600;color:#d8d5d5;
  position:relative;transition:background .15s,color .15s;
}
body.admin .admin-sidebar-nav a:hover{background:rgba(255,255,255,.06);color:#fff}
body.admin .admin-sidebar-nav a.active{background:rgba(255,255,255,.09);color:#fff}
body.admin .admin-sidebar-nav a.active::before{
  content:'';position:absolute;left:-14px;top:6px;bottom:6px;width:3px;
  border-radius:2px;background:var(--red);
}
body.admin .admin-sidebar-nav a .ic{width:17px;height:17px;flex:0 0 17px;display:inline-flex;opacity:.9}
body.admin .admin-sidebar-nav a .ic svg{
  width:100%;height:100%;fill:none;stroke:currentColor;
  stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;
}
body.admin .admin-sidebar-logout{
  margin-top:auto;display:flex;align-items:center;gap:11px;
  padding:9px 10px;font-size:13px;font-weight:600;color:var(--muted);
  border-radius:10px;transition:background .15s,color .15s;
}
body.admin .admin-sidebar-logout:hover{background:rgba(255,255,255,.06);color:var(--red)}
body.admin .admin-sidebar-logout .ic{width:17px;height:17px;flex:0 0 17px;display:inline-flex;opacity:.9}
body.admin .admin-sidebar-logout .ic svg{
  width:100%;height:100%;fill:none;stroke:currentColor;
  stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;
}

body.admin .admin-main{flex:1 1 auto;min-width:0;padding:40px clamp(24px,3.5vw,56px) 56px}
/* No project header/logo/top-bar in the admin - navigation lives entirely
   in the sidebar now (David, 2026-09-25: "a dojo logo... ez nem kell").
   Never shown on mobile either - the mobile equivalent is .admin-tabbar
   below, matching the iOS app exactly, not this old desktop-era nav. */
body.admin .admin-main>header,body.admin .admin-main>.adminnav,body.admin .admin-main>.stickybar{display:none}

/* Real popup content (app/static/admin-modal.js fetches the target page and
   injects just its <main> here) - replaces the old iframe-in-a-box hack. */
body.admin .modal-box{border-radius:var(--radius-card);border-color:var(--line-soft)}
body.admin .modal-content{height:100%;overflow-y:auto;padding:32px 36px}
body.admin .modal-error{color:var(--danger);font-size:13px;margin-bottom:14px}

/* MOBILE — the iOS Staff app's own bottom tab bar, 1:1 (templates/
   _admin_tabbar.html): same 5 items, same icons, same order. This is what
   actually answers "make mobile look like the app" - not a shrunk desktop
   layout. Adapted from the tab-bar pattern already proven in q-project.css,
   now shared as core so DOJO gets it too. */
body.admin .admin-tabbar{display:none}
@media(max-width:900px){
  body.admin .shell{flex-direction:column}
  body.admin .admin-sidebar{display:none}
  body.admin .admin-main{padding:16px 16px calc(84px + env(safe-area-inset-bottom))}
  body.admin .admin-tabbar{
    display:flex;position:fixed;left:0;right:0;bottom:0;z-index:40;
    background:rgba(9,9,9,.92);backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);
    border-top:1px solid var(--line-soft);overflow-x:auto;
    padding:8px max(8px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left));
  }
  body.admin .admin-tabbar a{
    display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;
    flex:1 0 64px;min-height:48px;color:var(--muted);
    font-size:10px;font-weight:700;letter-spacing:.02em;text-transform:uppercase;
    transition:color .15s,transform .1s;white-space:nowrap;
  }
  body.admin .admin-tabbar svg{
    width:22px;height:22px;fill:none;stroke:currentColor;
    stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;
  }
  body.admin .admin-tabbar a.active{color:var(--red)}
  body.admin .admin-tabbar a:active{transform:scale(.9)}
}
@media(prefers-reduced-motion:reduce){body.admin .admin-tabbar a{transition:none!important}}

/* ============================================================================
   QUICK ACTIONS — dashboard tile grid (templates/_quick_actions.html), the
   web equivalent of the iOS app's "GYORS MŰVELETEK" list. MOBILE ONLY: on
   desktop these same items already live in the sidebar's "Kezelés" group,
   so showing them twice would be redundant - on mobile there's no sidebar,
   so this is exactly how the app itself surfaces them (from its Dashboard).
   ============================================================================ */
body.admin .qa-panel{display:none}
@media(max-width:900px){body.admin .qa-panel{display:block}}
body.admin .qa-label{
  font-size:10px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;
  color:var(--muted);margin-bottom:14px;
}
body.admin .qa-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:12px}
body.admin .qa-item{
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;
  background:var(--card-bg-2);border:1px solid var(--line-soft);border-radius:14px;
  padding:16px 8px;text-align:center;font-size:12px;font-weight:600;color:#e4e1e1;
  transition:transform .15s cubic-bezier(.16,1,.3,1),background .15s;
}
body.admin .qa-item:hover{background:rgba(255,255,255,.07);color:#fff}
body.admin .qa-item:active{transform:scale(.95)}
body.admin .qa-item .ic{width:22px;height:22px;color:var(--red)}
body.admin .qa-item .ic svg{
  width:100%;height:100%;fill:none;stroke:currentColor;
  stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;
}

/* ============================================================================
   CONSOLE ("Fő Admin") BRIDGE — /console (console_base.html + console.py's
   5 templates) is platform-level, not owned by any one project, so it never
   loads dojo-project.css/q-project.css and has no --red/--gold/--muted of
   its own. It also predates this theme and keeps its own component classes
   (.card/.btn/.chip/.metric .k .v/.mod-row/.sw, all from console-shell.css)
   rather than the .panel/.button/.badge/.metric ones above - rewriting 5
   templates to rename every class was unnecessary risk for a purely visual
   fix. Instead: alias console-shell.css's own CSS variables to this theme's
   values under body.admin, so every existing class there (unchanged)
   automatically renders in the same dark palette/shape as dojo.html/q.html's
   admin - one consistent product, not two (David, 2026-09-27: "ne legyen
   ilyen hogy regi admin uj admin... egy flow legyen"). Console is
   project-agnostic, so its accent is DHIRTY's own gold, not a project red.
   ============================================================================ */
body.admin{--red:#d4af37;--gold:#d4af37}
body.admin{
  --dark:#0c0c0e; --dark-2:#111116;
  --bg:#090909; --surface:var(--card-bg); --surface-2:var(--card-bg-2);
  --ink:#f5f5f7; --ink-2:#9a9aa6; --line:var(--line-soft);
  --coral:var(--red); --coral-d:#b8912b;
  --sans:-apple-system,BlinkMacSystemFont,"SF Pro Text","SF Pro Display",system-ui,"Segoe UI",Roboto,sans-serif;
  --radius:var(--radius-control); --radius-sm:12px; --radius-lg:var(--radius-card);
  --shadow-card:0 20px 40px -26px rgba(0,0,0,.7);
  --shadow-dark:0 20px 40px -26px rgba(0,0,0,.7);
  --shadow-pop:0 20px 40px -26px rgba(0,0,0,.7);
  --shadow-btn:none;
}
/* Calmer, native feel here too - no colorful decorative glow blobs behind
   stat numbers (that stays a DHIRTY Vezérlőpult-only flourish). */
body.admin .metric .sh{display:none}
body.admin .btn{border-radius:999px}

/* ============================================================================
   GENERIC CONTENT COMPONENTS — for pages moving off the old base.html shell
   (e.g. whatsapp_inbox/conversation/knowledge.html, first of several to come)
   onto this sidebar/admin-main layout. base.html's own inline <style> defined
   .card/.btn/.stat/.flash/.toolbar/.muted/.small/.mono itself, so a page that
   stops extending it loses those - rather than duplicate them per-template,
   they're defined once here, matching this theme's palette instead of
   base.html's gold/Sora one. Any future page migrated the same way gets them
   for free (David, 2026-09-27: "egy flow legyen... ez egy profi rendszer").

   These pages also don't load a project's own base stylesheet
   (dojo-project.css/q-project.css/console-shell.css), which is where the
   basic `a{text-decoration:none}` link reset this theme has always assumed
   as a given actually lives - without it, plain links render underlined/
   browser-blue. Restated here so a page can load core-admin-theme.css alone. */
body.admin a{text-decoration:none;color:inherit}
body.admin .flash a{color:inherit;font-weight:700;text-decoration:underline}
body.admin .card{
  background:var(--card-bg);border:1px solid var(--line-soft);
  border-radius:var(--radius-card);padding:24px;margin-bottom:16px;
}
body.admin label{
  display:block;margin:14px 0 5px;font-size:11px;font-weight:700;
  letter-spacing:.06em;text-transform:uppercase;color:var(--muted);
}
body.admin .toolbar{display:flex;gap:10px;align-items:center;margin:14px 0;flex-wrap:wrap}
body.admin .stat{
  display:inline-block;padding:5px 14px;background:var(--card-bg-2);
  border:1px solid var(--line-soft);border-radius:999px;
  font-size:11px;font-weight:600;letter-spacing:.03em;text-transform:uppercase;
  color:var(--muted);margin-right:8px;
}
body.admin .flash{padding:12px 16px;border-radius:var(--radius-control);margin:14px 0;font-size:13px;font-weight:600}
body.admin .flash.success{background:rgba(40,199,111,.12);border:1px solid var(--success);color:var(--success)}
body.admin .flash.error{background:rgba(234,51,56,.12);border:1px solid var(--danger);color:#ff8a8d}
body.admin .muted{color:var(--muted);font-size:13px}
body.admin .small{font-size:13px}
body.admin .mono,body.admin code{font-family:"SF Mono",Monaco,Consolas,monospace;font-size:.9em}
body.admin table{width:100%;border-collapse:collapse;margin:14px 0}
body.admin th,body.admin td{text-align:left;padding:10px 12px;border-bottom:1px solid var(--line-soft)}
body.admin th{font-size:10px;color:var(--muted);font-weight:700;text-transform:uppercase;letter-spacing:.06em}

/* ============================================================================
   V2 DESIGN-EGYEZÉS (2026-10-20, David: „designban egyezzen a régi web admin
   az új webadminnal” — csak a megjelenés, a két rendszer NINCS összeolvasztva).
   Forrás: dhirty-access-platform/dhirty_access/web/static/css/dhirty-ui.css
   (paletta, méretek, sidebar, kártyák, táblák, űrlapok) + a 2026-10-19-i
   „kézműves réteg” (design-engineering skillek: nyomás-visszajelzés, erős
   ease-out görbék, hover csak egérrel, ujj-méretű célpontok, csökkentett mozgás).
   Csak body.admin alatt hat — vendég-/publikus oldalak érintetlenek.
   Additív: ez az egész blokk törölhető, és visszaáll az előző kinézet.
   ============================================================================ */
body.admin{
  --dark:#0f0f13; --dark-2:#17161c;
  --bg:#1e1d23; --surface:#28272e; --surface-2:#302f37;
  --ink:#f0f0f3; --ink-2:#96969f; --line:rgba(255,255,255,.09); --line-soft:rgba(255,255,255,.09);
  --coral:#ff5b50; --coral-d:#ff7166;
  --red:var(--coral); --gold:var(--coral); --muted:var(--ink-2);
  --card-bg:var(--surface); --card-bg-2:var(--surface-2);
  --radius:12px; --radius-sm:9px; --radius-lg:14px;
  --radius-card:9px; --radius-control:7px;
  --shadow-card:0 1px 1px rgba(0,0,0,.12),0 2px 6px rgba(0,0,0,.16);
  --shadow-dark:0 1px 2px rgba(0,0,0,.3),0 6px 14px -6px rgba(0,0,0,.45);
  --shadow-pop:0 16px 40px rgba(0,0,0,.4);
  --ok-bg:rgba(48,196,130,.16); --ok-fg:#3ddb92; --ok-bd:rgba(48,196,130,.32);
  --danger-bg:rgba(255,90,90,.16); --danger-fg:#ff8585; --danger-bd:rgba(255,90,90,.32);
  --warn-bg:rgba(255,175,60,.16); --warn-fg:#ffb84d; --warn-bd:rgba(255,175,60,.34);
  --success:#3ddb92; --danger:#ff8585; --warn:#ffb84d;
  --ease-out:cubic-bezier(.23,1,.32,1);
  --sans:-apple-system,BlinkMacSystemFont,'SF Pro Text','Poppins','Segoe UI',Helvetica,Arial,sans-serif;
  background:var(--bg);color:var(--ink);font-family:var(--sans);
  font-size:13px;line-height:1.46;-webkit-font-smoothing:antialiased;
  -webkit-text-size-adjust:100%;text-size-adjust:100%;-webkit-tap-highlight-color:transparent;
}
body.admin a,body.admin button,body.admin .button,body.admin input,body.admin select,body.admin textarea,body.admin label,body.admin summary{touch-action:manipulation}

/* --- sidebar: Finder-szerű sötét forráslista, coral aktív jelölés --- */
body.admin .admin-sidebar-nav{align-items:stretch}
body.admin .shell{min-height:100dvh}
body.admin .admin-sidebar{
  width:196px;flex:0 0 196px;height:100dvh;padding:16px 10px;
  background:linear-gradient(185deg,var(--dark) 0%,var(--dark-2) 100%);
  border-right:0;box-shadow:1px 0 0 rgba(0,0,0,.3);
}
body.admin .admin-sidebar-brand{font-size:13px;font-weight:800;letter-spacing:.08em;color:#fff;padding:4px 9px 16px}
body.admin .admin-sidebar-label{font-size:9.5px;font-weight:700;letter-spacing:.06em;color:rgba(255,255,255,.32);padding:14px 10px 5px}
body.admin .admin-sidebar-nav a,body.admin .admin-sidebar-logout{
  justify-content:flex-start;text-align:left;gap:9px;padding:6px 9px;border-radius:6px;font-size:12.5px;font-weight:500;color:rgba(255,255,255,.62);
  transition:background-color .12s ease,color .12s ease;
}
body.admin .admin-sidebar-nav a.active{color:#fff;background:rgba(255,91,80,.22)}
body.admin .admin-sidebar-nav a.active::before{left:-10px;top:5px;bottom:5px;width:2.5px;background:var(--coral)}
body.admin .admin-sidebar-nav a:active{background:rgba(255,255,255,.12)}
body.admin .admin-sidebar-nav a .ic,body.admin .admin-sidebar-logout .ic{width:16px;height:16px;flex:0 0 16px}
body.admin .admin-sidebar-logout{border-top:1px solid rgba(255,255,255,.1);border-radius:0;padding-top:12px;margin-top:8px}

/* --- tartalom-oszlop: 1080 px-es olvasható szélesség, mint az új adminban --- */
body.admin .admin-main{padding:26px 40px 56px}
body.admin .admin-main>main,body.admin .admin-main>section,body.admin .admin-main>.panel{max-width:1080px;margin-left:auto;margin-right:auto}
body.admin main{min-height:0;padding:0}

/* --- tipográfia --- */
body.admin h1,body.admin h2,body.admin h3{font-family:var(--sans);text-transform:none;text-wrap:balance;color:var(--ink)}
body.admin h1{font-size:19px;font-weight:700;letter-spacing:-.015em;line-height:1.2;margin:0 0 14px}
body.admin h2{font-size:15px;font-weight:700;letter-spacing:-.01em;margin:0 0 10px}
body.admin h3{font-size:13px;font-weight:700;letter-spacing:-.005em;margin:0 0 10px}
body.admin h1 em{color:var(--coral)}
body.admin .eyebrow{font-size:10px;font-weight:700;letter-spacing:.11em;text-transform:uppercase;color:var(--coral)}
body.admin p{line-height:1.5}
body.admin .muted,body.admin .small{color:var(--ink-2);font-size:12px}
body.admin table,body.admin .metric,body.admin .badge,body.admin .nl-kpi,body.admin .stat{font-variant-numeric:tabular-nums}

/* --- kártyák / panelek: emelt felület --- */
body.admin .panel,body.admin .card{
  background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-sm);
  padding:16px;box-shadow:var(--shadow-card);margin-bottom:14px;
}
body.admin .panel .panel{background:var(--surface-2);box-shadow:none}

/* --- stat-csempék: süllyesztett sötét csempe, mint az új admin .metric --- */
body.admin .metric{
  background:linear-gradient(150deg,var(--dark) 0%,var(--dark-2) 100%);
  border:0;border-radius:var(--radius);padding:13px 14px 12px;box-shadow:var(--shadow-dark);color:#fff;
}
body.admin .metric small{font-size:10px;font-weight:600;letter-spacing:.06em;color:rgba(255,255,255,.5)}
body.admin .metric strong{font-size:21px;font-weight:700;letter-spacing:-.02em;margin-top:5px;line-height:1.2;color:#fff}

/* --- gombok: kompakt, natív; coral elsődleges, ghost másodlagos --- */
body.admin .button,body.admin button{
  display:inline-flex;align-items:center;justify-content:center;gap:6px;
  background:var(--coral);border:1px solid transparent;color:#fff;
  border-radius:7px;padding:6px 12px;min-height:30px;
  font:600 12.5px/1.2 var(--sans);letter-spacing:0;text-transform:none;
  box-shadow:0 1px 1px rgba(0,0,0,.15);cursor:pointer;
  transition:background-color .12s ease,border-color .12s ease,transform .16s var(--ease-out);
}
body.admin .button.outline,body.admin button.outline,body.admin .outline{
  background:rgba(255,255,255,.05);border-color:var(--line);color:var(--ink);box-shadow:none;
}
body.admin .button:active,body.admin button:active{transform:scale(.97)}
body.admin .admin-sidebar button,body.admin .modal-close,body.admin .navlink-drop,body.admin .titleline button[aria-label]{box-shadow:none}
body.admin .modal-close{background:none;color:var(--ink-2);min-height:0;padding:6px 12px;font-size:24px}
body.admin .btn{border-radius:7px}

/* --- badge-ek: halvány áttetsző háttér, élénk szöveg --- */
body.admin .badge{border-radius:5px;padding:2px 8px;font-size:10.5px;font-weight:600;letter-spacing:.005em}
body.admin .badge.success{background:var(--ok-bg);color:var(--ok-fg);border-color:var(--ok-bd)}
body.admin .badge.danger{background:var(--danger-bg);color:var(--danger-fg);border-color:var(--danger-bd)}
body.admin .badge.warn{background:var(--warn-bg);color:var(--warn-fg);border-color:var(--warn-bd)}

/* --- űrlapok --- */
body.admin label{
  display:block;margin:0 0 11px;font-size:11px;font-weight:600;letter-spacing:0;text-transform:none;color:var(--ink-2);
}
body.admin input:not([type=checkbox]):not([type=radio]):not([type=file]),body.admin select,body.admin textarea{
  background:rgba(255,255,255,.05);border:1px solid var(--line);border-radius:6px;color:var(--ink);
  padding:6px 9px;font:400 12.5px/1.4 var(--sans);margin-top:4px;
  transition:border-color .12s ease,box-shadow .12s ease;
}
body.admin input::placeholder,body.admin textarea::placeholder{color:#6d6d78}
body.admin input:focus,body.admin select:focus,body.admin textarea:focus{outline:none;border-color:var(--coral);box-shadow:0 0 0 3px rgba(255,91,80,.18)}
body.admin select option{background:var(--surface);color:var(--ink)}
body.admin input[type=checkbox]:checked{background:var(--coral)}
body.admin a:focus-visible,body.admin button:focus-visible,body.admin .button:focus-visible{outline:2px solid var(--coral);outline-offset:2px}
body.admin .admin-sidebar-nav a:focus-visible{outline-color:#fff}

/* --- táblák és listasorok --- */
body.admin table{font-size:12.5px;margin:0}
body.admin th{font-size:10px;letter-spacing:.05em;color:var(--ink-2);padding:8px 12px;border-bottom:1px solid var(--line);background:rgba(255,255,255,.02)}
body.admin td{padding:8px 12px;border-bottom:1px solid var(--line);vertical-align:middle}
body.admin tr:last-child td{border-bottom:none}
body.admin tbody tr{transition:background-color .1s ease}
body.admin .row{border-bottom-color:var(--line);padding:9px 0;font-size:12.5px}
body.admin a.row{border-radius:6px}

/* --- flash / üzenetek --- */
body.admin .flash{border-radius:8px;padding:8px 12px;font-size:12px;font-weight:600}
body.admin .flash.success{background:var(--ok-bg);border:1px solid var(--ok-bd);color:var(--ok-fg)}
body.admin .flash.error,body.admin .error{background:var(--danger-bg);border:1px solid var(--danger-bd);color:var(--danger-fg);border-radius:8px;padding:8px 12px}

/* --- felugró ablak (esemény-popup stb.) --- */
body.admin .modal-backdrop{background:rgba(0,0,0,.55)}
body.admin .modal-box{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-lg);box-shadow:var(--shadow-pop)}
body.admin .modal-content{padding:24px 28px}
body.admin .navdrop-menu{background:var(--surface-2);border-color:var(--line);border-radius:10px;box-shadow:var(--shadow-pop)}

/* --- esemény-kártyák: nyugodt admin-mozgás (nincs 8 px-es emelés, 1,1 s-os zoom, glow) --- */
body.admin .eventcard{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow-card);transition:border-color .12s ease,transform .16s var(--ease-out)}
body.admin .eventcard .cover{transition:none}
body.admin .eventcard:hover{transform:none;box-shadow:var(--shadow-card)}
body.admin .eventcard:hover .cover{transform:none}
body.admin .eventcard:active{transform:scale(.985)}
body.admin .eventcard .datechip{border-radius:9px;background:rgba(15,15,19,.9)}
body.admin .eventcard .datechip span{color:var(--coral)}

/* --- mobil gyorsműveletek + alsó fülsor (az iOS app mintája marad, csak a paletta új) --- */
body.admin .qa-item{background:var(--surface);border-color:var(--line);border-radius:var(--radius-sm);box-shadow:var(--shadow-card);color:var(--ink);transition:background-color .12s ease,transform .16s var(--ease-out)}
body.admin .qa-item:active{transform:scale(.97)}
body.admin .qa-item .ic{color:var(--coral)}

/* --- hírlevél-statisztika (dojo_staff.html) a közös csempe-nyelven --- */
body.admin .nl-kpi{background:linear-gradient(150deg,var(--dark) 0%,var(--dark-2) 100%);border:0;border-radius:var(--radius);box-shadow:var(--shadow-dark);padding:13px 14px 12px}
body.admin .nl-kpi b{font-size:21px;font-weight:700;letter-spacing:-.02em}
body.admin .nl-kpi .t{font-size:10px;letter-spacing:.06em;color:rgba(255,255,255,.5)}
body.admin .nl-card{background:var(--surface-2);border-radius:var(--radius-sm);transition:border-color .12s ease,transform .16s var(--ease-out)}
body.admin .nl-card:active{transform:scale(.985)}
body.admin .nl-win{color:#fff;border-radius:5px}
body.admin .nl-tag{white-space:nowrap;border-radius:5px;padding:2px 8px;font-size:10px;letter-spacing:.05em}
body.admin .nl-bar .trk{background:rgba(255,255,255,.08)}

/* --- hover csak egérrel (érintőn nincs „ragadó” hover) --- */
@media (hover:hover) and (pointer:fine){
  body.admin .admin-sidebar-nav a:hover,body.admin .admin-sidebar-logout:hover{color:#fff;background:rgba(255,255,255,.07)}
  body.admin .admin-sidebar-nav a.active:hover{background:rgba(255,91,80,.22)}
  body.admin .button:hover,body.admin button:hover{background:var(--coral-d);opacity:1}
  body.admin .button.outline:hover,body.admin button.outline:hover,body.admin .outline:hover{background:rgba(255,255,255,.09);border-color:rgba(255,255,255,.22)}
  body.admin tbody tr:hover{background:rgba(255,255,255,.045)}
  body.admin a.row:hover{background:rgba(255,255,255,.045)}
  body.admin .eventcard:hover,body.admin .nl-card:hover{border-color:rgba(255,91,80,.55)}
  body.admin .qa-item:hover{background:var(--surface-2)}
  body.admin .panel a:not(.button):not(.nl-card):not(.eventcard):hover{color:var(--coral)}
}
@media (hover:none){
  body.admin .admin-sidebar-nav a:hover{background:transparent;color:rgba(255,255,255,.62)}
  body.admin .button:hover,body.admin button:hover{opacity:1}
}

/* --- mobil: ujj-méretű célpontok, nincs iOS-ráközelítés a mezőkre --- */
@media (pointer:coarse){
  body.admin input:not([type=checkbox]):not([type=radio]),body.admin select,body.admin textarea{font-size:16px}
  body.admin .button,body.admin button{min-height:40px;padding-top:8px;padding-bottom:8px}
  body.admin .admin-tabbar a{min-height:48px}
}
@media (max-width:900px){
  body.admin .admin-main{padding:18px 16px calc(84px + env(safe-area-inset-bottom))}
  body.admin .admin-tabbar{background:rgba(30,29,35,.92);border-top-color:var(--line)}
  body.admin .admin-tabbar a{color:var(--ink-2);transition:color .12s ease,transform .16s var(--ease-out)}
  body.admin .admin-tabbar a.active{color:var(--coral)}
  body.admin .admin-tabbar a:active{transform:scale(.94)}
}

/* --- csökkentett mozgás: a mozgás kimarad, a szín-visszajelzés marad --- */
@media (prefers-reduced-motion:reduce){
  body.admin .button:active,body.admin button:active,body.admin .eventcard:active,body.admin .qa-item:active,body.admin .nl-card:active,body.admin .admin-tabbar a:active{transform:none}
}
/* Fő Admin projekt-monogram: egyedi projekt-szín nélkül SEMLEGES fekete-fehér —
   a DHIRTY és a DOJO logó/jel sosem lehet korall vagy narancs (brand-szabály). */
body.admin .fa-tile-avatar:not([style]){background:#f0f0f3;color:#0f0f13}
