@import url("/css/felwyn-toast.css");
@layer reset, tokens, base, chrome, components, layout, page, utilities, motion;

@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  html { min-height: 100%; }
  body { min-height: 100%; margin: 0; }
  img, svg, video { display: block; max-width: 100%; }
  button, input, select, textarea { font: inherit; }
  button { cursor: pointer; }
  button:disabled { cursor: not-allowed; }
  a { color: inherit; }
  h1, h2, h3, p { margin-top: 0; }
  dl, dt, dd { margin: 0; }
}

@layer tokens {
  :root {
    color-scheme: light;
    --fw-paper: #f3f0e8;
    --fw-canvas: #fffdf8;
    --fw-canvas-2: #faf7f0;
    --fw-ink: #181a20;
    --fw-ink-2: #333641;
    --fw-muted: #747681;
    --fw-faint: #a3a4aa;
    --fw-rule: #d7d1c5;
    --fw-rule-strong: #b9b2a6;
    --fw-blue: #2448d8;
    --fw-blue-deep: #18329b;
    --fw-blue-soft: #edf0ff;
    --fw-coral: #dd543f;
    --fw-coral-soft: #fff0ec;
    --fw-green: #247153;
    --fw-green-soft: #eef8f3;
    --fw-amber: #9a6a18;
    --fw-amber-soft: #fff6dc;
    --fw-danger: #b93839;
    --fw-danger-soft: #fff0f0;
    --fw-shadow: 0 18px 55px rgba(31, 29, 23, .09), 0 2px 8px rgba(31, 29, 23, .05);
    --fw-shadow-soft: 0 8px 24px rgba(31, 29, 23, .07);
    --fw-radius: 10px;
    --fw-radius-sm: 7px;
    /* 1920x1080 stays the visual reference. Larger desktop/TV screens
       keep roughly the same proportions instead of freezing at 1540px. */
    --fw-shell: clamp(1540px, 80vw, 3000px);
    --fw-content: var(--fw-shell);
    --fw-shell-gutter: clamp(16px, 1.67vw, 48px);
    --fw-stage-min-height: clamp(320px, 52dvh, 680px);
    --fw-font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    --fw-serif: Georgia, "Times New Roman", serif;
    --fw-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  }
}

@layer base {
  html { background: var(--fw-paper); scrollbar-gutter: stable; }
  body {
    min-height: 100dvh;
    background:
      radial-gradient(circle at 8% 0%, rgba(36,72,216,.055), transparent 24rem),
      linear-gradient(180deg, #f6f3ec 0, var(--fw-paper) 22rem);
    color: var(--fw-ink);
    font-family: var(--fw-font);
    font-size: 14px;
    line-height: 1.45;
    text-rendering: optimizeLegibility;
  }
  ::selection { background: var(--fw-blue); color: white; }
  a { color: var(--fw-blue-deep); text-underline-offset: 3px; }
  a:hover { color: var(--fw-blue); }
  h1 {
    margin-bottom: 0;
    font-family: var(--fw-serif);
    font-size: clamp(28px, 3vw, 42px);
    font-weight: 500;
    line-height: .98;
    letter-spacing: -.035em;
  }
  h2 { margin-bottom: 0; font-size: 18px; line-height: 1.15; letter-spacing: -.02em; }
  h3 { margin-bottom: 0; font-size: 14px; line-height: 1.2; }
  small, .subtle, .secondary-line { color: var(--fw-muted); }
  code { font-family: var(--fw-mono); }
}

@layer chrome {
  .felwyn-page-shell,
  .account-shell,
  .center-shell,
  .admin-shell {
    width: min(calc(100vw - var(--fw-shell-gutter)), var(--fw-shell));
    min-height: 0;
    margin: 16px auto 12px;
  }

  /* Short application pages fill exactly one viewport: the footer sits at
     the bottom without creating a pointless scrollbar. Long pages still grow
     and scroll naturally. */
  :is(.explorer-page, .account-page, .admin-page) {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
  }
  .account-page > .felwyn-page-shell,
  .admin-page > .felwyn-page-shell {
    flex: 1 0 auto;
  }

  .felwyn-page-header-stack,
  .explorer-header-stack,
  .watch-party-header-stack {
    position: relative;
    border: 1px solid var(--fw-rule-strong);
    border-radius: var(--fw-radius);
    background: rgba(255,253,248,.94);
    box-shadow: var(--fw-shadow-soft);
    overflow: clip;
  }
  .felwyn-page-header-stack::before,
  .explorer-header-stack::before,
  .watch-party-header-stack::before {
    content: "";
    position: absolute;
    z-index: 2;
    inset: 0 0 auto;
    height: 3px;
    background: linear-gradient(90deg, var(--fw-blue-deep) 0%, var(--fw-blue) 68%, #6659dd 84%, var(--fw-coral) 100%);
    pointer-events: none;
  }

  .felwyn-topbar {
    min-height: 42px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px 7px;
    border-bottom: 1px solid var(--fw-rule);
    background: var(--fw-canvas-2);
    min-width: 0;
  }
  .felwyn-topbar-brand {
    display: inline-flex;
    align-items: baseline;
    flex: 0 0 auto;
    color: var(--fw-ink);
    font-family: var(--fw-serif);
    font-size: 24px;
    font-style: italic;
    font-weight: 700;
    letter-spacing: -.045em;
    line-height: 1;
    text-decoration: none;
  }
  .felwyn-topbar-separator {
    color: var(--fw-faint);
    font-family: var(--fw-mono);
    font-size: 12px;
  }
  .felwyn-topbar-path,
  .breadcrumb-current,
  .breadcrumb-link,
  .breadcrumb-separator,
  .watch-party-path-current {
    font-family: var(--fw-mono);
    font-size: 11px;
  }
  .felwyn-topbar-path,
  .breadcrumb-current,
  .watch-party-path-current {
    min-width: 0;
    overflow: hidden;
    color: var(--fw-muted);
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .breadcrumbs { display: flex; align-items: center; gap: 6px; min-width: 0; overflow: hidden; }
  .breadcrumb-link { color: var(--fw-blue-deep); text-decoration: none; white-space: nowrap; }
  .breadcrumb-link:hover { text-decoration: underline; }
  .breadcrumb-separator { color: var(--fw-faint); }

  .felwyn-page-toolbar,
  .account-header,
  .center-header,
  .admin-header {
    min-height: 88px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    padding: 17px 18px 18px;
    background: var(--fw-canvas);
  }
  .felwyn-page-title { min-width: 0; }
  .felwyn-page-title h1 { color: var(--fw-ink); }
  .eyebrow {
    display: block;
    margin-bottom: 5px;
    color: var(--fw-blue);
    font-family: var(--fw-mono);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
  }

  .felwyn-main-nav { display: flex; align-items: center; gap: 3px; flex-wrap: wrap; }
  .felwyn-main-nav-form { margin: 0; }
  .felwyn-main-nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 6px 10px;
    border: 0;
    background: transparent;
    color: var(--fw-ink-2);
    font-size: 12px;
    font-weight: 650;
    text-decoration: none;
  }
  .felwyn-main-nav-link::after {
    content: "";
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 4px;
    height: 2px;
    background: transparent;
    transform: scaleX(.4);
    transition: background .16s ease, transform .16s ease;
  }
  .felwyn-main-nav-link:hover { color: var(--fw-blue); }
  .felwyn-main-nav-link:hover::after { background: rgba(36,72,216,.35); transform: scaleX(1); }
  .felwyn-main-nav-link.is-current { color: var(--fw-blue-deep); }
  .felwyn-main-nav-link.is-current::after { background: var(--fw-blue); transform: scaleX(1); }
  .felwyn-main-nav-button { appearance: none; font: inherit; cursor: pointer; }
  .felwyn-main-nav-register { color: var(--fw-blue-deep); }
  .felwyn-main-nav-logout:hover { color: var(--fw-danger); }
  .felwyn-main-nav-logout:hover::after { background: var(--fw-danger); }

  .felwyn-nav-menu { display: none; position: relative; }
  .felwyn-nav-menu summary {
    list-style: none;
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    padding: 6px 11px;
    border: 1px solid var(--fw-rule-strong);
    border-radius: var(--fw-radius-sm);
    background: var(--fw-canvas);
    font-weight: 700;
    cursor: pointer;
  }
  .felwyn-nav-menu summary::-webkit-details-marker { display: none; }
  .felwyn-nav-menu summary::after { content: "⌄"; margin-left: 8px; color: var(--fw-blue); }
  .felwyn-nav-menu-panel {
    position: absolute;
    z-index: 60;
    top: calc(100% + 6px);
    right: 0;
    min-width: 190px;
    padding: 6px;
    border: 1px solid var(--fw-rule-strong);
    border-radius: var(--fw-radius-sm);
    background: var(--fw-canvas);
    box-shadow: var(--fw-shadow);
  }
  .felwyn-nav-menu-panel a,
  .felwyn-nav-menu-panel button {
    width: 100%;
    display: block;
    padding: 9px 10px;
    border: 0;
    border-radius: 5px;
    background: transparent;
    color: var(--fw-ink);
    text-align: left;
    text-decoration: none;
  }
  .felwyn-nav-menu-panel a:hover,
  .felwyn-nav-menu-panel a.is-current { background: var(--fw-blue-soft); color: var(--fw-blue-deep); }
  .felwyn-nav-menu-panel form { margin: 4px 0 0; padding-top: 4px; border-top: 1px solid var(--fw-rule); }
  .felwyn-nav-menu-logout:hover { background: var(--fw-danger-soft) !important; color: var(--fw-danger) !important; }

  .felwyn-page-surface {
    margin-top: 12px;
    padding: 10px 0 18px;
    border: 1px solid var(--fw-rule-strong);
    border-radius: var(--fw-radius);
    background: var(--fw-canvas);
    box-shadow: var(--fw-shadow-soft);
    overflow: clip;
    min-height: var(--fw-stage-min-height);
  }
}

@layer components {
  .panel, .surface-card {
    margin: 0;
    padding: 18px;
    border-top: 1px solid var(--fw-rule);
    background: var(--fw-canvas);
  }
  .panel:first-child, .surface-card:first-child { border-top: 0; }
  .panel-heading, .section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
  }
  .panel-heading h2, .section-head h2 { font-family: var(--fw-serif); font-size: 21px; font-weight: 500; }
  .section-stack { display: grid; gap: 14px; }

  .primary-button, .primary-action, .action-button, .secondary-button, .danger-button, .button-link, .logout-button {
    appearance: none;
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 7px 12px;
    border: 1px solid var(--fw-rule-strong);
    border-radius: 7px;
    background: var(--fw-canvas);
    color: var(--fw-ink);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: transform .12s ease, border-color .12s ease, background .12s ease, color .12s ease, box-shadow .12s ease;
  }
  .action-button:hover, .secondary-button:hover, .button-link:hover, .logout-button:hover {
    border-color: var(--fw-blue);
    color: var(--fw-blue-deep);
    box-shadow: 0 3px 12px rgba(36,72,216,.08);
  }
  .primary-button, .primary-action {
    border-color: var(--fw-blue-deep);
    background: var(--fw-blue);
    color: white;
    box-shadow: 0 4px 14px rgba(36,72,216,.18);
  }
  .primary-button:hover, .primary-action:hover { background: var(--fw-blue-deep); color: white; transform: translateY(-1px); }
  .danger-button { border-color: #dfb7b3; color: var(--fw-danger); background: var(--fw-danger-soft); }
  .danger-button:hover { border-color: var(--fw-danger); background: #ffe7e7; color: #90292a; }
  .primary-button:active, .primary-action:active, .action-button:active, .secondary-button:active, .danger-button:active, .button-link:active { transform: translateY(1px); }
  button:disabled, .is-feature-disabled { opacity: .55; }

  .field { display: grid; gap: 6px; }
  .field label { color: var(--fw-ink-2); font-size: 11px; font-weight: 750; }
  input[type="text"], input[type="password"], input[type="number"], input[type="search"], select, textarea,
  .field input, .field select, .field textarea, .account-filter input {
    width: 100%;
    border: 1px solid var(--fw-rule-strong);
    border-radius: 7px;
    outline: 0;
    background: #fff;
    color: var(--fw-ink);
    box-shadow: 0 1px 1px rgba(24,26,32,.02) inset;
    transition: border-color .12s ease, box-shadow .12s ease, background .12s ease;
  }
  input[type="text"], input[type="password"], input[type="number"], input[type="search"], select,
  .field input, .field select { min-height: 38px; padding: 7px 9px; }
  textarea, .field textarea { min-height: 92px; padding: 9px; resize: vertical; }
  input:focus, select:focus, textarea:focus, .field input:focus, .field select:focus, .field textarea:focus, .account-filter input:focus {
    border-color: var(--fw-blue);
    background: white;
    box-shadow: 0 0 0 3px rgba(36,72,216,.10);
  }
  input[type="checkbox"] { accent-color: var(--fw-blue); }
  .form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
  .form-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.role-pill, .status-pill, .tag, .origin-pill {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 2px 7px;
    border: 1px solid var(--fw-rule);
    border-radius: 999px;
    background: var(--fw-canvas-2);
    color: var(--fw-ink-2);
    font-family: var(--fw-mono);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .02em;
    white-space: nowrap;
  }
  .role-admin { border-color: #e3aaa8; color: #a32828; background: var(--fw-danger-soft); }
  .role-moderator { border-color: #b8c4ff; color: var(--fw-blue-deep); background: var(--fw-blue-soft); }
  .role-vip { border-color: #ead59d; color: #775213; background: var(--fw-amber-soft); }
  .role-registriert, .status-active { border-color: #add5c3; color: var(--fw-green); background: var(--fw-green-soft); }
  .status-warning, .status-pending { border-color: #ead59d; color: #775213; background: var(--fw-amber-soft); }
  .status-disabled { border-color: #e6b7b7; color: var(--fw-danger); background: var(--fw-danger-soft); }

  .stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    margin: 0;
    border-top: 1px solid var(--fw-rule);
    border-bottom: 1px solid var(--fw-rule);
    background: var(--fw-canvas-2);
  }
  .stat-card { min-width: 0; padding: 15px 18px; border-right: 1px solid var(--fw-rule); }
  .stat-card:last-child { border-right: 0; }
  .stat-card span, .mini-stat-label { display: block; color: var(--fw-muted); font-family: var(--fw-mono); font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
  .stat-card strong, .mini-stat-value { display: block; margin-top: 4px; color: var(--fw-ink); font-family: var(--fw-serif); font-size: 27px; font-weight: 500; line-height: 1; }
  .stat-card small { display: block; margin-top: 5px; color: var(--fw-muted); font-size: 10px; }

  .table-wrap { overflow: auto; border: 1px solid var(--fw-rule); border-radius: 8px; background: var(--fw-canvas); }
  table { width: 100%; border-collapse: collapse; background: transparent; }
  th, td { padding: 10px 11px; border-bottom: 1px solid var(--fw-rule); text-align: left; vertical-align: middle; }
  th { color: var(--fw-muted); background: var(--fw-canvas-2); font-family: var(--fw-mono); font-size: 9px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
  tbody tr { transition: background .1s ease; }
  tbody tr:hover { background: #fafbff; }
  tbody tr:last-child td { border-bottom: 0; }
  .secondary-line { display: block; margin-top: 3px; font-size: 10px; }
  .actions-cell { white-space: nowrap; }
  .inline-actions { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
  .empty-state, .detail-empty { padding: 18px; color: var(--fw-muted); text-align: center; }
  .summary-list { border: 1px solid var(--fw-rule); border-radius: 8px; overflow: hidden; }
  .summary-item { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 12px; border-bottom: 1px solid var(--fw-rule); }
  .summary-item:last-child { border-bottom: 0; }

  .account-facts { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); margin: 0; border-top: 1px solid var(--fw-rule); }
  .account-facts > div { padding: 13px 14px; border-right: 1px solid var(--fw-rule); }
  .account-facts > div:last-child { border-right: 0; }
  .account-facts dt { margin: 0 0 4px; color: var(--fw-muted); font-family: var(--fw-mono); font-size: 9px; text-transform: uppercase; letter-spacing: .07em; }
  .account-facts dd { margin: 0; color: var(--fw-ink); font-weight: 700; }

  .setting-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 52px;
    padding: 10px 12px;
    border: 1px solid var(--fw-rule);
    border-radius: 8px;
    background: var(--fw-canvas-2);
  }
  .setting-copy { display: grid; gap: 2px; }
  .switch-control { position: relative; width: 42px; height: 24px; flex: 0 0 auto; }
  .switch-control input { position: absolute; opacity: 0; pointer-events: none; }
  .switch-track { position: absolute; inset: 0; border: 1px solid var(--fw-rule-strong); border-radius: 999px; background: #dedbd3; transition: background .15s ease, border-color .15s ease; }
  .switch-track::after { content: ""; position: absolute; width: 18px; height: 18px; left: 2px; top: 2px; border-radius: 50%; background: white; box-shadow: 0 1px 3px rgba(0,0,0,.16); transition: transform .15s ease; }
  .switch-control input:checked + .switch-track { border-color: var(--fw-blue); background: var(--fw-blue); }
  .switch-control input:checked + .switch-track::after { transform: translateX(18px); }
  .switch-control input:focus-visible + .switch-track { box-shadow: 0 0 0 3px rgba(36,72,216,.12); }

  .felwyn-site-footer {
    width: min(calc(100vw - var(--fw-shell-gutter)), var(--fw-content));
    min-height: 18px;
    flex: 0 0 auto;
    margin: 0 auto 14px;
    color: var(--fw-faint);
    font-family: var(--fw-mono);
    font-size: 9px;
    text-align: right;
  }
}

@layer layout {
  .felwyn-page-surface > .panel + .panel { border-top: 1px solid var(--fw-rule); }
  .admin-tabs {
    display: flex;
    gap: 2px;
    padding: 0 18px 10px;
    background: var(--fw-canvas);
  }
  .admin-page-surface > .admin-tabs {
    padding: 10px 18px;
    border-bottom: 1px solid var(--fw-rule);
    background: var(--fw-canvas-2);
  }
  .admin-tab {
    position: relative;
    padding: 8px 10px;
    color: var(--fw-muted);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
  }
  .admin-tab::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 3px; height: 2px; background: transparent; }
  .admin-tab:hover { color: var(--fw-blue); }
  .admin-tab.is-current { color: var(--fw-blue-deep); }
  .admin-tab.is-current::after { background: var(--fw-blue); }
  .admin-tabs-menu { display: none; margin: 0; padding: 10px 14px; border-bottom: 1px solid var(--fw-rule); background: var(--fw-canvas-2); position: relative; }
  .admin-tabs-menu summary { list-style: none; padding: 9px 11px; border: 1px solid var(--fw-rule); border-radius: 7px; background: var(--fw-canvas-2); font-weight: 700; cursor: pointer; }
  .admin-tabs-menu summary::-webkit-details-marker { display: none; }
  .admin-tabs-menu-panel { position: absolute; z-index: 50; left: 0; right: 0; top: calc(100% + 4px); padding: 5px; border: 1px solid var(--fw-rule-strong); border-radius: 7px; background: var(--fw-canvas); box-shadow: var(--fw-shadow); }
  .admin-tabs-menu-panel a { display: block; padding: 9px; border-radius: 5px; text-decoration: none; }
  .admin-tabs-menu-panel a.is-current { background: var(--fw-blue-soft); color: var(--fw-blue-deep); }
}

@layer utilities {
  .visually-hidden, .sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }
  .is-hidden { display: none !important; }
  .text-danger-button { color: var(--fw-danger); }
  .table-wrap-spaced { margin-top: 14px; }
}

@layer motion {
  .fw-shell-enter .felwyn-page-header-stack,
  .fw-shell-enter .felwyn-page-surface {
    animation: fwShellEnter .34s cubic-bezier(.2,.8,.2,1) both;
  }
  .fw-shell-enter .felwyn-page-surface { animation-delay: .035s; }
  @keyframes fwShellEnter { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  }
}

@media (min-width: 2200px) {
  body { font-size: 15px; }
  .felwyn-topbar { min-height: 46px; padding-inline: 19px; }
  .felwyn-topbar-brand { font-size: 27px; }
  .felwyn-page-toolbar, .account-header, .center-header, .admin-header { min-height: 96px; padding: 20px 22px; }
  h1 { font-size: 46px; }
  .felwyn-main-nav-link { min-height: 38px; padding-inline: 12px; font-size: 13px; }
  .panel, .surface-card { padding: 20px 22px; }
  .felwyn-site-footer { font-size: 10px; }
}

@media (max-width: 900px) {
  :root { --fw-shell-gutter: 16px; --fw-stage-min-height: auto; }
  .felwyn-page-shell, .account-shell, .center-shell, .admin-shell { width: min(calc(100vw - var(--fw-shell-gutter)), var(--fw-shell)); min-height: 0; margin-top: 8px; }
  .felwyn-page-toolbar, .account-header, .center-header, .admin-header { min-height: 76px; padding: 15px 14px; align-items: center; }
  .felwyn-main-nav-desktop { display: none; }
  .felwyn-nav-menu { display: block; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .stat-card:nth-child(2) { border-right: 0; }
  .stat-card:nth-child(-n+2) { border-bottom: 1px solid var(--fw-rule); }
  .form-grid { grid-template-columns: 1fr; }
  .account-facts { grid-template-columns: 1fr; }
  .account-facts > div { border-right: 0; border-bottom: 1px solid var(--fw-rule); }
  .account-facts > div:last-child { border-bottom: 0; }
  .admin-tabs-desktop { display: none; }
  .admin-tabs-menu { display: block; }
}

@media (max-width: 560px) {
  :root { --fw-shell-gutter: 8px; }
  body { font-size: 13px; }
  .felwyn-page-shell, .account-shell, .center-shell, .admin-shell { width: calc(100vw - var(--fw-shell-gutter)); margin: 4px auto 24px; }
  .felwyn-page-header-stack, .explorer-header-stack, .watch-party-header-stack, .felwyn-page-surface { border-radius: 8px; }
  .felwyn-topbar { min-height: 38px; padding: 7px 10px; }
  .felwyn-topbar-brand { font-size: 21px; }
  .felwyn-page-toolbar, .account-header, .center-header, .admin-header { min-height: 68px; padding: 12px 10px; }
  h1 { font-size: 30px; }
  .panel { padding: 14px 10px; }
.stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-card { padding: 12px 10px; }
  .stat-card strong { font-size: 23px; }
  th, td { padding: 9px 8px; }
}
