/* Portato 1:1 dal mockup approvato dal titolare (vedi brg-preventivi-app-html).
 * Non ridisegnare: la palette/tipografia sono gia' approvate. */

/* Integrazione WordPress: la pagina vive dentro il tema del sito, quindi
   #brg-app non deve pretendere l'intero viewport (c'e' gia' l'header del
   tema sopra). Per la migliore esperienza usa un template di pagina "vuoto"
   (senza header/footer del tema) - vedi README.md. */
#brg-app{ min-height: 80vh; }
.brg-view{ display:none; }
.brg-view.active{ display:block; }
.badge-si{ background: var(--success-soft); color: var(--success); }
.badge-no{ background: var(--surface-sunken); color: var(--ink-faint); }
.cell-input.sconto{ text-align:right; }
.quote-table td.action-cell{ white-space:nowrap; }
.btn-small{ padding:6px 12px; font-size:12.5px; }
.riga-extra{ display:flex; gap:6px; margin-top:6px; }
.riga-extra-input{
  flex:1; min-width:0; border:1px solid var(--border); border-radius:6px; background:var(--surface-sunken);
  font-size:11.5px; padding:4px 8px; color:var(--ink-muted); font-family:'IBM Plex Sans';
}
.riga-extra-input:focus{ outline:2px solid var(--accent); outline-offset:1px; background:var(--surface); color:var(--ink); }
.tipo-cliente-toggle{ display:inline-flex; gap:6px; background:var(--surface-sunken); padding:4px; border-radius:9px; }
.tipo-cliente-btn{
  border:none; background:transparent; padding:7px 18px; border-radius:6px; font-size:13px; font-weight:600;
  color:var(--ink-muted); cursor:pointer; font-family:'IBM Plex Sans';
}
.tipo-cliente-btn.active{ background:var(--surface); color:var(--ink); box-shadow:var(--shadow-sm); }
.gruppo-luogo-row td{
  background:var(--accent-soft); color:var(--accent-soft-ink); font-weight:700; text-transform:uppercase;
  font-size:11px; letter-spacing:.03em; padding:8px 12px;
}
.search-results{
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  margin-bottom: 16px; overflow: hidden; box-shadow: var(--shadow-sm);
}
.search-results .risultato{
  display:flex; align-items:center; gap:12px; padding:10px 14px; cursor:pointer; border-bottom:1px solid var(--border);
}
.search-results .risultato:last-child{ border-bottom:none; }
.search-results .risultato:hover{ background: var(--surface-sunken); }
.search-results .risultato img{ width:38px; height:38px; object-fit:contain; border-radius:6px; background:var(--surface-sunken); border:1px solid var(--border); }
.search-results .risultato .d{ font-weight:600; font-size:13px; }
.search-results .risultato .m{ font-size:11.5px; color:var(--ink-faint); }
.search-results .vuoto{ padding:14px; font-size:13px; color:var(--ink-muted); text-align:center; }

  :root{
    --bg:#f3f1ec;
    --surface:#ffffff;
    --surface-sunken:#ebe8e1;
    --ink:#211d18;
    --ink-muted:#726b60;
    --ink-faint:#a49b8c;
    --border:#e0dcd3;
    --border-strong:#cfc9bc;
    --accent:#a1712a;
    --accent-strong:#7d5820;
    --accent-soft:#f2e3c8;
    --accent-soft-ink:#6b4c1c;
    --success:#3f7d52;
    --success-soft:#e1efe4;
    --danger:#b5432e;
    --danger-soft:#f7e4e0;
    --shadow-sm:0 1px 2px rgba(33,29,24,0.06);
    --shadow-md:0 8px 24px rgba(33,29,24,0.12);
    --radius:10px;
  }
  @media (prefers-color-scheme: dark){
    :root:not([data-theme="light"]){
      --bg:#17140f;
      --surface:#211d17;
      --surface-sunken:#2a251d;
      --ink:#f2ede3;
      --ink-muted:#b3a996;
      --ink-faint:#7d7566;
      --border:#3a3327;
      --border-strong:#4a4231;
      --accent:#d6a24f;
      --accent-strong:#e8b968;
      --accent-soft:#3a2e18;
      --accent-soft-ink:#e8c98a;
      --success:#6cbf87;
      --success-soft:#1e3324;
      --danger:#e08069;
      --danger-soft:#3a2320;
      --shadow-sm:0 1px 2px rgba(0,0,0,0.3);
      --shadow-md:0 8px 28px rgba(0,0,0,0.45);
    }
  }
  :root[data-theme="dark"]{
    --bg:#17140f;
    --surface:#211d17;
    --surface-sunken:#2a251d;
    --ink:#f2ede3;
    --ink-muted:#b3a996;
    --ink-faint:#7d7566;
    --border:#3a3327;
    --border-strong:#4a4231;
    --accent:#d6a24f;
    --accent-strong:#e8b968;
    --accent-soft:#3a2e18;
    --accent-soft-ink:#e8c98a;
    --success:#6cbf87;
    --success-soft:#1e3324;
    --danger:#e08069;
    --danger-soft:#3a2320;
    --shadow-sm:0 1px 2px rgba(0,0,0,0.3);
    --shadow-md:0 8px 28px rgba(0,0,0,0.45);
  }

  *{box-sizing:border-box;}
  body{
    margin:0;
    background:var(--bg);
    color:var(--ink);
    font-family:'IBM Plex Sans', system-ui, sans-serif;
    font-size:14px;
    line-height:1.5;
  }
  h1,h2,h3,.display{
    font-family:'Archivo', system-ui, sans-serif;
    text-wrap:balance;
    margin:0;
  }
  .mono{ font-family:'IBM Plex Mono', ui-monospace, monospace; font-variant-numeric:tabular-nums; }
  button{ font-family:inherit; }
  ::selection{ background:var(--accent-soft); color:var(--accent-soft-ink); }

  /* ---------- Screens ---------- */
  .screen{ display:none; min-height:100vh; }
  .screen.active{ display:block; }

  /* ---------- Login screen ---------- */
  #login-screen.active{
    display:flex;
    min-height:100vh;
  }
  .login-brand{
    flex:1.1;
    background:
      radial-gradient(circle at 30% 20%, color-mix(in srgb, var(--accent) 30%, transparent), transparent 55%),
      linear-gradient(160deg, #241d12, #100d09 70%);
    color:#f2ede3;
    display:flex;
    flex-direction:column;
    justify-content:space-between;
    padding:56px;
  }
  :root[data-theme="light"] .login-brand,
  :root:not([data-theme="dark"]):not([data-theme="light"]) .login-brand{
    background:
      radial-gradient(circle at 30% 20%, color-mix(in srgb, #d6a24f 35%, transparent), transparent 55%),
      linear-gradient(160deg, #241d12, #100d09 70%);
  }
  .brand-mark{
    display:flex; align-items:center; gap:12px;
  }
  .brand-mark .glyph{
    width:42px; height:42px; border-radius:9px;
    background:#fff; padding:3px;
    display:flex; align-items:center; justify-content:center;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.08);
  }
  .brand-mark .glyph svg{ width:20px; height:20px; }
  .brand-mark .name{ font-family:'Archivo'; font-weight:800; font-size:17px; letter-spacing:0.02em; color:#f7f3ea; }
  .brand-mark .name span{ color:#d6a24f; font-weight:600; font-size:11px; letter-spacing:0.14em; text-transform:uppercase; display:block; margin-top:1px; }

  .login-brand .pitch{ max-width:420px; }
  .login-brand .pitch .eyebrow{
    font-size:12px; text-transform:uppercase; letter-spacing:0.14em;
    color:#d6a24f; font-weight:600; margin-bottom:14px;
  }
  .login-brand .pitch h1{ font-size:34px; line-height:1.15; color:#f7f3ea; font-weight:700; }
  .login-brand .pitch p{ color:#c9bfa9; margin-top:16px; font-size:15px; max-width:380px; }

  .login-brand .fixture{
    display:flex; gap:28px; flex-wrap:wrap;
  }
  .fixture-card{
    background:rgba(255,255,255,0.06);
    border:1px solid rgba(255,255,255,0.1);
    border-radius:var(--radius);
    padding:12px;
    width:104px;
  }
  .fixture-card img{ width:100%; height:64px; object-fit:contain; display:block; }
  .fixture-card .lbl{ font-size:10.5px; color:#c9bfa9; margin-top:8px; font-family:'IBM Plex Mono'; letter-spacing:0.02em; }

  .login-panel{
    flex:1;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:40px;
    background:var(--bg);
  }
  .login-card{
    width:100%; max-width:340px;
  }
  .login-card h2{ font-size:22px; font-weight:700; }
  .login-card .sub{ color:var(--ink-muted); font-size:13.5px; margin-top:6px; margin-bottom:32px; }
  .field{ margin-bottom:16px; }
  .field label{ display:block; font-size:12.5px; font-weight:600; margin-bottom:6px; color:var(--ink-muted); }
  .field select, .field input{
    width:100%; padding:11px 12px; border-radius:8px; border:1px solid var(--border-strong);
    background:var(--surface); color:var(--ink); font-size:14px; font-family:inherit;
  }
  .field select:focus, .field input:focus{ outline:2px solid var(--accent); outline-offset:1px; }
  .btn{
    display:inline-flex; align-items:center; justify-content:center; gap:8px;
    border-radius:8px; border:1px solid transparent; cursor:pointer;
    font-weight:600; font-size:13.5px; padding:11px 18px;
    transition:transform .06s ease, box-shadow .15s ease, background .15s ease;
  }
  .btn:active{ transform:translateY(1px); }
  .btn-primary{ background:var(--accent); color:#fff8ec; box-shadow:var(--shadow-sm); }
  .btn-primary:hover{ background:var(--accent-strong); }
  .btn-block{ width:100%; padding:12px; }
  .btn-ghost{ background:transparent; border-color:var(--border-strong); color:var(--ink); }
  .btn-ghost:hover{ background:var(--surface-sunken); }
  .btn-subtle{ background:var(--surface-sunken); color:var(--ink); }
  .btn-subtle:hover{ background:var(--border); }
  .btn[disabled]{ opacity:.45; cursor:not-allowed; }

  .login-card .note{
    margin-top:22px; font-size:12px; color:var(--ink-faint); text-align:center;
  }

  /* ---------- App shell ---------- */
  #app-screen.active{ display:flex; min-height:100vh; }
  .sidebar{
    width:236px; flex-shrink:0;
    background:var(--surface);
    border-right:1px solid var(--border);
    display:flex; flex-direction:column;
    padding:20px 14px;
  }
  .sidebar .brand-mark{ padding:6px 8px 24px; }
  .sidebar .brand-mark .name{ color:var(--ink); }
  .sidebar .brand-mark .name span{ color:var(--accent); }
  .nav-section-label{
    font-size:10.5px; text-transform:uppercase; letter-spacing:0.12em;
    color:var(--ink-faint); font-weight:600; padding:14px 10px 8px;
  }
  .nav-item{
    display:flex; align-items:center; gap:10px;
    padding:9px 10px; border-radius:8px; color:var(--ink-muted);
    font-size:13.5px; font-weight:500; cursor:pointer; margin-bottom:2px;
  }
  .nav-item svg{ width:17px; height:17px; flex-shrink:0; }
  .nav-item.active{ background:var(--accent-soft); color:var(--accent-soft-ink); font-weight:600; }
  .nav-item.disabled{ color:var(--ink-faint); cursor:default; }
  .nav-item.disabled .soon{
    margin-left:auto; font-size:9.5px; text-transform:uppercase; letter-spacing:0.06em;
    background:var(--surface-sunken); color:var(--ink-faint); padding:2px 6px; border-radius:5px;
  }
  .sidebar-foot{ margin-top:auto; padding-top:14px; border-top:1px solid var(--border); }
  .seller-chip{ display:flex; align-items:center; gap:10px; padding:8px; border-radius:8px; }
  .seller-chip .avatar{
    width:30px; height:30px; border-radius:50%; background:var(--accent-soft); color:var(--accent-soft-ink);
    display:flex; align-items:center; justify-content:center; font-weight:700; font-size:12.5px; font-family:'Archivo';
    flex-shrink:0;
  }
  .seller-chip .who{ line-height:1.3; overflow:hidden; }
  .seller-chip .who .n{ font-size:13px; font-weight:600; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  .seller-chip .who .r{ font-size:11.5px; color:var(--ink-faint); }
  .logout-link{ font-size:12px; color:var(--ink-faint); background:none; border:none; cursor:pointer; padding:6px 8px; text-align:left; width:100%; }
  .logout-link:hover{ color:var(--danger); }

  .main{ flex:1; min-width:0; display:flex; flex-direction:column; }
  .topbar{
    display:flex; align-items:center; justify-content:space-between;
    padding:16px 28px; border-bottom:1px solid var(--border); background:var(--surface);
    gap:16px; flex-wrap:wrap;
  }
  .topbar h1{ font-size:19px; font-weight:700; }
  .topbar .meta{ font-size:12.5px; color:var(--ink-muted); margin-top:3px; }
  .topbar-actions{ display:flex; gap:10px; align-items:center; flex-wrap:wrap; }

  .content{ padding:24px 28px 60px; max-width:1180px; }

  .client-card{
    background:var(--surface); border:1px solid var(--border); border-radius:var(--radius);
    padding:18px 20px; margin-bottom:22px; box-shadow:var(--shadow-sm);
  }
  .client-grid{ display:grid; grid-template-columns:repeat(4, minmax(0,1fr)); gap:16px; }
  .client-grid[hidden]{ display:none; }
  .client-grid .field{ margin-bottom:0; }
  @media (max-width:900px){ .client-grid{ grid-template-columns:repeat(2,1fr); } }

  .search-bar{
    display:flex; gap:10px; margin-bottom:16px; flex-wrap:wrap; align-items:stretch;
  }
  .search-bar .field{ margin-bottom:0; flex:1; min-width:160px; }
  .search-bar select{ min-width:170px; }

  table.quote-table{ width:100%; border-collapse:collapse; background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); overflow:hidden; }
  .table-wrap{ overflow-x:auto; border-radius:var(--radius); box-shadow:var(--shadow-sm); }
  table.quote-table thead th{
    text-align:left; font-size:11px; text-transform:uppercase; letter-spacing:0.06em;
    color:var(--ink-faint); font-weight:600; padding:11px 14px; background:var(--surface-sunken);
    border-bottom:1px solid var(--border); white-space:nowrap;
  }
  table.quote-table tbody td{
    padding:12px 14px; border-bottom:1px solid var(--border); vertical-align:middle; font-size:13.5px;
  }
  table.quote-table tbody tr:last-child td{ border-bottom:none; }
  table.quote-table tbody tr:hover{ background:var(--surface-sunken); }
  .thumb{
    width:46px; height:46px; border-radius:7px; object-fit:contain; background:var(--surface-sunken);
    border:1px solid var(--border); flex-shrink:0; display:block;
  }
  .thumb-nd{
    width:46px; height:46px; border-radius:7px; background:var(--surface-sunken);
    border:1px dashed var(--border-strong); display:flex; align-items:center; justify-content:center;
    font-family:'Archivo'; font-weight:800; font-size:11px; color:var(--ink-faint); flex-shrink:0;
  }
  .art-cell{ display:flex; align-items:center; gap:12px; min-width:230px; }
  .art-cell .info .desc{ font-weight:600; font-size:13.5px; }
  .art-cell .info .desc input{
    border:1px solid transparent; background:transparent; font:inherit; font-weight:600; width:100%;
    padding:2px 4px; border-radius:5px; color:var(--ink);
  }
  .art-cell .info .desc input:hover{ border-color:var(--border-strong); }
  .art-cell .info .desc input:focus{ outline:none; border-color:var(--accent); background:var(--surface); }
  .art-cell .info .meta{ font-size:11.5px; color:var(--ink-faint); margin-top:2px; }
  .badge{
    display:inline-flex; align-items:center; padding:2px 7px; border-radius:5px; font-size:10.5px;
    font-weight:600; letter-spacing:0.02em; background:var(--surface-sunken); color:var(--ink-muted);
    text-transform:uppercase;
  }
  .badge-nd{ background:var(--danger-soft); color:var(--danger); }
  .badge-found{ background:var(--success-soft); color:var(--success); }
  td.num, th.num{ text-align:right; }
  .cell-input{
    width:64px; padding:6px 7px; border-radius:6px; border:1px solid var(--border-strong);
    background:var(--surface); color:var(--ink); font-family:'IBM Plex Mono'; font-size:13px; text-align:right;
  }
  .cell-input.price{ width:82px; }
  .cell-input:focus{ outline:2px solid var(--accent); outline-offset:1px; }
  .row-total{ font-family:'IBM Plex Mono'; font-weight:500; }
  .row-remove{
    width:26px; height:26px; border-radius:6px; border:1px solid transparent; background:transparent;
    color:var(--ink-faint); cursor:pointer; display:flex; align-items:center; justify-content:center;
  }
  .row-remove:hover{ background:var(--danger-soft); color:var(--danger); }

  tfoot td{ padding:14px; }
  .totals-row td{ border-top:1px solid var(--border-strong); font-family:'IBM Plex Mono'; }
  .totals-row .label{ text-align:right; color:var(--ink-muted); font-family:'IBM Plex Sans'; font-size:13px; }
  .totals-row .grand{ font-size:17px; font-weight:700; font-family:'Archivo'; }

  .bottom-bar{
    position:sticky; bottom:0; margin-top:22px;
    background:var(--surface); border:1px solid var(--border); border-radius:var(--radius);
    padding:14px 18px; display:flex; align-items:center; justify-content:space-between; gap:14px;
    box-shadow:var(--shadow-md); flex-wrap:wrap;
  }
  .bottom-bar .left{ font-size:12.5px; color:var(--ink-muted); }
  .bottom-bar .actions{ display:flex; gap:10px; flex-wrap:wrap; }

  .hint-banner{
    display:flex; gap:10px; align-items:flex-start; background:var(--accent-soft); color:var(--accent-soft-ink);
    padding:11px 14px; border-radius:8px; font-size:12.5px; margin-bottom:16px;
  }
  .hint-banner svg{ width:16px; height:16px; flex-shrink:0; margin-top:1px; }

  /* ---------- Modal: add article ---------- */
  .modal-backdrop{
    display:none; position:fixed; inset:0; background:rgba(20,17,12,0.45); z-index:50;
    align-items:center; justify-content:center; padding:20px;
  }
  .modal-backdrop.active{ display:flex; }
  .modal{
    background:var(--surface); border-radius:14px; width:100%; max-width:560px;
    box-shadow:var(--shadow-md); border:1px solid var(--border); overflow:hidden;
  }
  .modal-head{ padding:18px 22px; border-bottom:1px solid var(--border); display:flex; justify-content:space-between; align-items:center; }
  .modal-head h3{ font-size:16.5px; }
  .modal-close{ background:none; border:none; cursor:pointer; color:var(--ink-faint); font-size:18px; line-height:1; }
  .modal-body{ padding:20px 22px; }
  .modal-foot{ padding:16px 22px; border-top:1px solid var(--border); display:flex; justify-content:flex-end; gap:10px; }
  .tab-toggle{ display:flex; gap:6px; background:var(--surface-sunken); padding:4px; border-radius:9px; margin-bottom:18px; }
  .tab-toggle button{
    flex:1; border:none; background:transparent; padding:8px; border-radius:7px; font-size:12.5px; font-weight:600;
    color:var(--ink-muted); cursor:pointer;
  }
  .tab-toggle button.active{ background:var(--surface); color:var(--ink); box-shadow:var(--shadow-sm); }
  .found-preview{
    display:flex; gap:12px; align-items:center; padding:12px; border-radius:9px; background:var(--success-soft); margin-top:14px;
  }
  .found-preview img{ width:52px; height:52px; object-fit:contain; border-radius:7px; background:var(--surface); border:1px solid var(--border); }
  .found-preview .t{ font-size:13px; font-weight:600; }
  .found-preview .d{ font-size:12px; color:var(--ink-muted); margin-top:2px; }

  /* ---------- PDF preview ---------- */
  .pdf-sheet{
    background:#fff; color:#1a1a1a; width:100%; aspect-ratio:297/165; max-width:900px; margin:0 auto;
    box-shadow:var(--shadow-md); border-radius:6px; padding:26px 30px; font-size:11px;
    display:flex; flex-direction:column;
  }
  .pdf-sheet .pdf-head{ display:flex; justify-content:space-between; align-items:flex-start; margin-bottom:14px; padding-bottom:12px; border-bottom:2px solid #1a1a1a; }
  .pdf-sheet .pdf-head .t1{ font-family:'Archivo'; font-weight:800; font-size:18px; }
  .pdf-sheet .pdf-head .t2{ font-size:10.5px; color:#555; margin-top:3px; }
  .pdf-sheet table{ width:100%; border-collapse:collapse; font-size:10px; flex:1; }
  .pdf-sheet th{ text-align:left; border-bottom:1.5px solid #1a1a1a; padding:6px 8px; font-size:9px; text-transform:uppercase; letter-spacing:0.04em; color:#333; }
  .pdf-sheet td{ padding:7px 8px; border-bottom:1px solid #ddd; vertical-align:middle; }
  .pdf-sheet img{ width:30px; height:30px; object-fit:contain; }
  .pdf-sheet .pdf-total{ text-align:right; font-weight:700; margin-top:10px; font-size:13px; }
  .pdf-watermark{ text-align:center; font-size:10px; color:#999; margin-top:10px; }

  .toast{
    position:fixed; bottom:24px; right:24px; background:var(--ink); color:var(--bg);
    padding:12px 18px; border-radius:9px; font-size:13px; box-shadow:var(--shadow-md);
    display:flex; align-items:center; gap:10px; transform:translateY(20px); opacity:0;
    transition:all .25s ease; z-index:80; pointer-events:none;
  }
  .toast.show{ transform:translateY(0); opacity:1; }
  .toast svg{ width:16px; height:16px; color:var(--success); flex-shrink:0; }

  .icon-btn{ background:none; border:1px solid var(--border-strong); border-radius:8px; width:34px; height:34px; display:flex; align-items:center; justify-content:center; cursor:pointer; color:var(--ink-muted); }
  .icon-btn:hover{ background:var(--surface-sunken); }
  .icon-btn svg{ width:16px; height:16px; }

  @media (max-width: 760px){
    .sidebar{ display:none; }
    .login-brand{ display:none; }
    .client-grid{ grid-template-columns:1fr; }
  }

  /* ---------- Home hub ---------- */
  #home-screen{ background:var(--bg); }
  .home-topbar{
    display:flex; align-items:center; justify-content:space-between;
    padding:20px 32px; border-bottom:1px solid var(--border); background:var(--surface);
  }
  .home-topbar .brand-mark .name{ color:var(--ink); }
  .home-topbar .brand-mark .name span{ color:var(--accent); }
  .home-user{ display:flex; align-items:center; gap:14px; font-size:13px; color:var(--ink-muted); }
  .home-user a{ color:var(--accent); text-decoration:none; font-weight:600; }
  .home-user a:hover{ text-decoration:underline; }

  .home-wrap{ max-width:920px; margin:0 auto; padding:56px 28px 60px; }
  .home-hero{ text-align:center; margin-bottom:40px; }
  .home-hero .eyebrow{
    font-size:11.5px; text-transform:uppercase; letter-spacing:0.12em; font-weight:700;
    color:var(--accent); margin-bottom:10px;
  }
  .home-hero h1{ font-size:32px; color:var(--ink); }
  .home-hero p{ color:var(--ink-muted); margin-top:10px; font-size:15px; }

  .home-grid{ display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:18px; }
  .home-card{
    display:flex; flex-direction:column; align-items:flex-start; gap:10px;
    background:var(--surface); border:1px solid var(--border); border-radius:var(--radius);
    padding:26px 24px; text-decoration:none; color:var(--ink); box-shadow:var(--shadow-sm);
    transition:transform .15s ease, box-shadow .15s ease; position:relative;
  }
  .home-card svg{ width:30px; height:30px; color:var(--accent); }
  .home-card-title{ font-family:'Archivo', system-ui, sans-serif; font-size:19px; font-weight:700; }
  .home-card-sub{ font-size:13px; color:var(--ink-muted); }
  a.home-card:hover{ transform:translateY(-2px); box-shadow:var(--shadow-md); border-color:var(--border-strong); }
  .home-card-primary{ background:var(--accent); color:#fff8ec; border-color:var(--accent); }
  .home-card-primary svg{ color:#fff8ec; }
  .home-card-primary .home-card-sub{ color:rgba(255,248,236,0.8); }
  .home-card-disabled{ cursor:default; opacity:.6; }
  .home-card-disabled svg{ color:var(--ink-faint); }
  .home-card .soon{
    position:absolute; top:20px; right:20px; font-size:9.5px; text-transform:uppercase; letter-spacing:0.06em;
    font-weight:700; background:var(--surface-sunken); color:var(--ink-faint); padding:3px 8px; border-radius:5px;
  }

  @media (max-width: 640px){
    .home-grid{ grid-template-columns:1fr; }
    .home-topbar{ padding:16px 20px; flex-wrap:wrap; gap:10px; }
    .home-wrap{ padding:36px 20px 48px; }
  }
