/* The Icon Casa Properties — Supplier Directory · v2 */
:root {
  --bg: #f6f3ed;
  --surface: #ffffff;
  --surface-2: #fbf9f5;
  --ink: #1d1c1a;
  --ink-2: #4f4b44;
  --ink-3: #8a8378;
  --line: #e9e3d8;
  --line-2: #dcd4c6;
  --accent: #9a7b4f;         /* bronze — the one brand accent */
  --accent-deep: #6f5634;
  --accent-soft: #f2eadc;
  --accent-ink: #ffffff;
  --btn: #1d1c1a;
  --btn-ink: #ffffff;
  --side: #1b1a18;
  --side-2: #262422;
  --side-ink: #e8e2d6;
  --side-muted: #8f887c;
  --danger: #b3261e;
  --ok: #3f7a4f;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(29,28,26,.04), 0 6px 24px rgba(29,28,26,.05);
  --shadow-lg: 0 12px 48px rgba(29,28,26,.18);
  --font-head: "Montserrat", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121110; --surface: #1b1a18; --surface-2: #171614;
    --ink: #f1ece3; --ink-2: #c9c2b6; --ink-3: #8f887c;
    --line: #2c2a27; --line-2: #3a3733;
    --accent: #c9a878; --accent-deep: #e0c69c; --accent-soft: #2b251c;
    --btn: #f1ece3; --btn-ink: #121110;
    --side: #0d0c0b; --side-2: #1b1a18;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 6px 24px rgba(0,0,0,.25);
    color-scheme: dark;
  }
  .logo-dark { display: none !important; }
  .logo-light { display: block !important; }
}
.logo-light { display: none; }

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font: 15px/1.55 var(--font-body); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
svg { flex: none; }
.boot { display: grid; place-items: center; min-height: 100vh; color: var(--ink-3); }
.wrap-text { overflow-wrap: anywhere; word-break: normal; white-space: normal; }

/* ---------------- login ---------------- */
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px;
  background: radial-gradient(1200px 600px at 50% -10%, var(--accent-soft), transparent 70%), var(--bg); }
.login-card { width: 100%; max-width: 410px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 44px 34px 34px; box-shadow: var(--shadow); }
.login-card .logo { width: 220px; max-width: 80%; margin: 0 auto 6px; }
.login-card h1 { font: 600 12px/1 var(--font-head); letter-spacing: .26em; text-transform: uppercase; text-align: center; color: var(--accent); margin: 20px 0 30px; }
.msg { font-size: 13px; margin: 0 0 14px; padding: 10px 12px; border-radius: 9px; background: var(--accent-soft); color: var(--ink-2); }
.msg.err { background: color-mix(in srgb, var(--danger) 10%, var(--surface)); color: var(--danger); }
.linkbtn { background: none; border: 0; padding: 0; color: var(--ink-3); font-size: 13px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.linkbtn:hover { color: var(--ink); }

/* ---------------- form bits ---------------- */
label.f { display: block; font-size: 12px; font-weight: 600; color: var(--ink-2); margin: 0 0 14px; }
label.f > span { display: block; margin-bottom: 6px; letter-spacing: .02em; }
.inp { width: 100%; padding: 10px 12px; background: var(--surface-2); border: 1px solid var(--line-2); border-radius: var(--radius-sm); font-size: 14px; font-weight: 400; }
textarea.inp { min-height: 96px; resize: vertical; }
.inp:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: transparent; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 15px; border-radius: var(--radius-sm); border: 1px solid var(--line-2); background: var(--surface); cursor: pointer; font-size: 14px; font-weight: 500; text-decoration: none; line-height: 1.2; }
.btn:hover { border-color: var(--ink-3); }
.btn.primary { background: var(--btn); color: var(--btn-ink); border-color: var(--btn); }
.btn.primary:hover { opacity: .88; }
.btn.gold { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn.gold:hover { background: var(--accent-deep); border-color: var(--accent-deep); }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.ghost:hover { background: var(--surface-2); border-color: var(--line); }
.btn.danger { color: var(--danger); }
.btn.sm { padding: 6px 11px; font-size: 13px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: default; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
@media (max-width: 560px) { .grid2 { grid-template-columns: 1fr; } }
.hint { font-size: 12px; color: var(--ink-3); font-weight: 400; margin-top: 6px; }

/* ---------------- app shell ---------------- */
.app { display: grid; grid-template-columns: 272px 1fr; min-height: 100vh; }
.side { background: var(--side); color: var(--side-ink); position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; padding: 22px 14px 18px; }
.side .brand { display: flex; align-items: center; gap: 12px; padding: 4px 10px 22px; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.07); margin-bottom: 14px; }
.side .brand img { width: 38px; height: 38px; }
.side .brand .t1 { font: 800 14px/1.15 var(--font-head); letter-spacing: .07em; text-transform: uppercase; color: #fff; }
.side .brand .t2 { font: 500 9.5px/1.3 var(--font-head); letter-spacing: .34em; text-transform: uppercase; color: var(--accent); margin-top: 3px; }
.side h4 { font: 600 10.5px/1 var(--font-head); letter-spacing: .2em; text-transform: uppercase; color: var(--side-muted); margin: 20px 10px 8px; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 9px; text-decoration: none; color: var(--side-ink); font-size: 13.5px; position: relative; }
.nav a:hover { background: rgba(255,255,255,.05); }
.nav a.on { background: rgba(255,255,255,.08); color: #fff; }
.nav a.on::before { content: ""; position: absolute; left: -14px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--accent); }
.nav a .lbl { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.nav a .n { font-size: 11.5px; color: var(--side-muted); font-variant-numeric: tabular-nums; min-width: 22px; text-align: right; }
.nav a .badge { font-size: 11px; font-weight: 600; background: var(--accent); color: #fff; border-radius: 99px; padding: 1px 7px; }
.nav a svg { color: var(--side-muted); }
.nav a.on svg { color: var(--accent); }
.nav .dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.nav .sub a { padding-left: 29px; font-size: 13px; color: var(--side-muted); }
.nav .sub a.on, .nav .sub a:hover { color: #fff; }
.side .foot { margin-top: auto; padding: 18px 10px 0; border-top: 1px solid rgba(255,255,255,.07); font-size: 12px; color: var(--side-muted); }
.side .foot .who { overflow-wrap: anywhere; margin-bottom: 10px; color: var(--side-ink); }
.side .foot button { width: 100%; background: transparent; color: var(--side-ink); border: 1px solid rgba(255,255,255,.14); border-radius: 9px; padding: 7px; cursor: pointer; font-size: 13px; }
.side .foot button:hover { background: rgba(255,255,255,.06); }

.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; padding: 14px 32px; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.topbar .search { flex: 1; max-width: 560px; }
.topbar .spacer { flex: 1; }
.iconbtn { position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface); cursor: pointer; color: var(--ink-2); }
.iconbtn:hover { color: var(--ink); border-color: var(--ink-3); }
.iconbtn .count { position: absolute; top: -6px; right: -6px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 99px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; border: 2px solid var(--bg); }
.menu-btn { display: none; }
.banner { background: var(--accent); color: #fff; font-size: 13px; text-align: center; padding: 7px 16px; }

.main { padding: 30px 32px 72px; min-width: 0; max-width: 1400px; }
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.head h2 { font: 700 28px/1.15 var(--font-head); margin: 0; letter-spacing: -.01em; overflow-wrap: anywhere; }
.head .crumb { font: 600 11px/1 var(--font-head); letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.head .crumb a { text-decoration: none; }
.head .crumb a:hover { color: var(--ink); }
.head p { margin: 8px 0 0; color: var(--ink-3); font-size: 14.5px; max-width: 70ch; }
.head .swatch { display: inline-block; width: 12px; height: 12px; border-radius: 4px; margin-right: 10px; vertical-align: 2px; }

/* search + filters */
.search { position: relative; }
.search input { padding-left: 38px; background: var(--surface); height: 40px; }
.search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--ink-3); pointer-events: none; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 18px; padding: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.filters .search { flex: 1 1 260px; }
.filters .search input { background: var(--surface-2); }
.filters select.inp { width: auto; height: 40px; }
.chk { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); padding: 0 6px; cursor: pointer; }
.chk input { accent-color: var(--accent); }
.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: var(--radius-sm); overflow: hidden; }
.seg button { border: 0; background: var(--surface); padding: 8px 12px; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; font-size: 13px; color: var(--ink-3); }
.seg button.on { background: var(--btn); color: var(--btn-ink); }
.count-line { font-size: 13px; color: var(--ink-3); margin: 0 2px 14px; }

/* ---------------- dashboard ---------------- */
.hello { margin-bottom: 26px; }
.hello .date { font: 600 11px/1 var(--font-head); letter-spacing: .18em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.hello h2 { font: 700 30px/1.15 var(--font-head); margin: 0; }
.hello p { color: var(--ink-3); margin: 8px 0 0; max-width: 70ch; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-bottom: 18px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 16px; text-decoration: none; display: block; }
a.stat:hover { border-color: var(--accent); }
.stat .l { font-size: 12.5px; color: var(--ink-3); display: flex; align-items: center; gap: 8px; }
.stat .l svg { color: var(--accent); }
.stat .v { font: 600 30px/1.1 var(--font-body); margin-top: 10px; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.stat .s { font-size: 12px; color: var(--ink-3); margin-top: 4px; }
.stat.hero { background: var(--side); border-color: var(--side); color: #fff; }
.stat.hero .l { color: var(--side-muted); }
.stat.hero .v { font-size: 48px; }
.stat.hero .s { color: var(--side-muted); }
.panels { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; min-width: 0; }
.panel h3 { font: 600 15px/1.3 var(--font-head); margin: 0; }
.panel .sub { font-size: 12.5px; color: var(--ink-3); margin: 4px 0 16px; }
.panel .ph { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.panel .ph a { font-size: 12.5px; color: var(--accent-deep); text-decoration: none; white-space: nowrap; }
.panel .ph a:hover { text-decoration: underline; }
.span-7 { grid-column: span 7; } .span-5 { grid-column: span 5; } .span-6 { grid-column: span 6; } .span-4 { grid-column: span 4; } .span-8 { grid-column: span 8; } .span-12 { grid-column: span 12; }
@media (max-width: 1100px) { .span-7, .span-5, .span-6, .span-4, .span-8 { grid-column: span 12; } }

.bars { display: grid; gap: 4px; }
.bar-row { display: grid; grid-template-columns: minmax(120px, 34%) 1fr; align-items: center; gap: 12px; padding: 5px 6px; border-radius: 8px; text-decoration: none; cursor: pointer; }
.bar-row:hover { background: var(--surface-2); }
.bar-row .bl { font-size: 13px; color: var(--ink-2); overflow-wrap: anywhere; line-height: 1.3; }
.bar-row .track { display: flex; align-items: center; gap: 8px; min-width: 0; }
.bar-row .fill { height: 14px; border-radius: 0 4px 4px 0; background: var(--accent); min-width: 2px; transition: width .4s ease; }
.bar-row .fill.zero { background: var(--line-2); }
.bar-row .bv { font-size: 12.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.tip { position: fixed; z-index: 80; pointer-events: none; background: var(--side); color: #fff; font-size: 12.5px; padding: 7px 10px; border-radius: 8px; box-shadow: var(--shadow-lg); max-width: 260px; }
.tip b { font-weight: 600; }

.feed { display: grid; gap: 2px; }
.feed-item { display: grid; grid-template-columns: 34px 1fr; gap: 12px; padding: 10px 8px; border-radius: 10px; cursor: pointer; text-align: left; background: none; border: 0; width: 100%; }
.feed-item:hover { background: var(--surface-2); }
.feed-item .ft { font-size: 13.5px; color: var(--ink); overflow-wrap: anywhere; }
.feed-item .ft b { font-weight: 600; }
.feed-item .fm { font-size: 12px; color: var(--ink-3); margin-top: 2px; overflow-wrap: anywhere; }
.feed-item.unread .ft::after { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-left: 8px; vertical-align: 2px; }
.mono { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font: 700 12px/1 var(--font-head); letter-spacing: .02em; }
.empty-mini { font-size: 13px; color: var(--ink-3); padding: 18px 8px; text-align: center; border: 1px dashed var(--line-2); border-radius: 10px; }

/* category tiles */
.section-title { font: 600 11px/1 var(--font-head); letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); margin: 34px 0 14px; display: flex; align-items: center; gap: 12px; }
.section-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.tile { position: relative; display: flex; gap: 14px; align-items: flex-start; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; transition: border-color .15s, transform .15s, box-shadow .15s; overflow: hidden; }
.tile:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--line-2); }
.tile .mono { width: 40px; height: 40px; font-size: 13px; }
.tile .tn { font: 600 14.5px/1.3 var(--font-head); overflow-wrap: anywhere; }
.tile .tc { font-size: 12.5px; color: var(--ink-3); margin-top: 3px; }
.tile.empty .tn { color: var(--ink-3); }
.tile.empty .mono { filter: grayscale(1); opacity: .55; }

/* supplier cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; align-items: stretch; }
.card { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 16px 22px; cursor: pointer; transition: border-color .15s, box-shadow .15s; text-align: left; overflow: hidden; }
.card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--cat, var(--accent)); }
.card:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.card .top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.card h3 { font: 600 15.5px/1.35 var(--font-head); margin: 0; overflow-wrap: anywhere; }
.pref { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 600; color: var(--accent-deep); background: var(--accent-soft); padding: 3px 8px; border-radius: 99px; white-space: nowrap; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 14px; }
.tag { font-size: 11.5px; font-weight: 500; padding: 3px 9px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-2); line-height: 1.45; overflow-wrap: anywhere; }
.tag.cat { background: color-mix(in srgb, var(--cat) 13%, var(--surface)); border-color: color-mix(in srgb, var(--cat) 28%, var(--surface)); color: var(--ink); }
.tag.used { background: var(--accent-soft); border-color: transparent; color: var(--accent-deep); }
.facts { display: grid; gap: 7px; font-size: 13.5px; color: var(--ink-2); }
.fact { display: grid; grid-template-columns: 18px 1fr; gap: 8px; align-items: start; }
.fact svg { color: var(--ink-3); margin-top: 2px; }
.fact .fv { overflow-wrap: anywhere; min-width: 0; }
.fact .fv b { font-weight: 500; color: var(--ink); }
.wa { text-decoration: none; display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; margin-left: 8px; padding: 2px 8px; border-radius: 99px; border: 1px solid color-mix(in srgb, #07C160 35%, var(--surface)); background: color-mix(in srgb, #07C160 9%, var(--surface)); color: color-mix(in srgb, #07C160 55%, var(--ink)); font-weight: 600; cursor: pointer; white-space: nowrap; vertical-align: 1px; }
.wa:hover { background: color-mix(in srgb, #07C160 16%, var(--surface)); }
.card .rem { font-size: 13px; color: var(--ink-3); margin: 12px 0 0; padding-top: 12px; border-top: 1px dashed var(--line); overflow-wrap: anywhere; white-space: pre-wrap; }
.card .foot { margin-top: auto; padding-top: 16px; display: flex; gap: 8px; flex-wrap: wrap; }
.nocat { font-size: 12.5px; color: var(--ink-3); align-self: center; }

/* table view */
.tbl-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th { text-align: left; font: 600 11px/1 var(--font-head); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); padding: 14px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); white-space: nowrap; }
.tbl td { padding: 13px 14px; border-bottom: 1px solid var(--line); vertical-align: top; overflow-wrap: anywhere; color: var(--ink-2); }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr { cursor: pointer; }
.tbl tbody tr:hover td { background: var(--surface-2); }
.tbl td.name { color: var(--ink); font-weight: 600; min-width: 200px; }
.tbl td.name .d { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; vertical-align: 1px; }
.tbl td.rem { min-width: 240px; color: var(--ink-3); }

.empty-state { padding: 52px 20px; text-align: center; color: var(--ink-3); border: 1px dashed var(--line-2); border-radius: var(--radius); background: var(--surface); }

/* drawer + popover */
.scrim { position: fixed; inset: 0; background: rgba(18,17,16,.38); z-index: 40; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(580px, 100%); background: var(--surface); z-index: 41; overflow-y: auto; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; }
.drawer header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 24px 26px 18px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--surface); z-index: 1; }
.drawer header .dk { font: 600 11px/1 var(--font-head); letter-spacing: .16em; text-transform: uppercase; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; color: var(--ink-3); }
.drawer header h3 { font: 700 21px/1.25 var(--font-head); margin: 0; overflow-wrap: anywhere; }
.drawer .body { padding: 22px 26px 32px; }
.drawer .actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; padding: 16px 26px; border-top: 1px solid var(--line); position: sticky; bottom: 0; background: var(--surface); margin-top: auto; }
.x { background: none; border: 0; font-size: 26px; line-height: 1; cursor: pointer; color: var(--ink-3); padding: 2px 6px; }
.x:hover { color: var(--ink); }
.dgroup { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 14px; overflow: hidden; }
.dgroup h5 { margin: 0; font: 600 11px/1 var(--font-head); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); padding: 12px 16px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
dl.kv { display: grid; grid-template-columns: 150px 1fr; gap: 0; margin: 0; font-size: 14px; }
dl.kv dt { color: var(--ink-3); font-size: 13px; padding: 10px 16px; border-bottom: 1px solid var(--line); }
dl.kv dd { margin: 0; padding: 10px 16px; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; white-space: pre-wrap; }
dl.kv dt:nth-last-child(2), dl.kv dd:last-child { border-bottom: 0; }
@media (max-width: 520px) { dl.kv { grid-template-columns: 1fr; } dl.kv dt { border-bottom: 0; padding-bottom: 0; } }
.cat-links { display: grid; gap: 8px; margin: 0 0 18px; }
.url-row { display: flex; gap: 8px; margin-bottom: 8px; }

.pop { position: fixed; z-index: 45; top: 64px; right: 24px; width: min(400px, calc(100vw - 32px)); max-height: min(560px, calc(100vh - 90px)); display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); overflow: hidden; }
.pop header { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.pop header h4 { margin: 0; font: 600 15px/1.2 var(--font-head); }
.pop .list { overflow-y: auto; padding: 6px 8px; }
.pop footer { border-top: 1px solid var(--line); padding: 10px; text-align: center; }
.pop footer a { font-size: 13px; color: var(--accent-deep); text-decoration: none; }

/* resources */
.res { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; margin-bottom: 12px; }
.res h3 { font: 600 16px/1.3 var(--font-head); margin: 0 0 8px; overflow-wrap: anywhere; }
.res .b { white-space: pre-wrap; color: var(--ink-2); font-size: 14px; overflow-wrap: anywhere; }
.res .row { margin-top: 14px; }

.toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); background: var(--side); color: #fff; padding: 11px 18px; border-radius: 10px; font-size: 14px; z-index: 90; box-shadow: var(--shadow-lg); max-width: calc(100vw - 32px); }
.toast b { color: var(--accent); font-weight: 600; }

/* mobile */
@media (max-width: 960px) {
  .app { grid-template-columns: 1fr; }
  .side { display: none; position: fixed; inset: 0 auto 0 0; width: min(300px, 86vw); z-index: 50; box-shadow: var(--shadow-lg); }
  .side.open { display: flex; }
  .menu-btn { display: inline-grid; }
  .main { padding: 22px 16px 60px; }
  .topbar { padding: 10px 16px; gap: 8px; }
  .topbar .add-label { display: none; }
  .head h2, .hello h2 { font-size: 23px; }
  .stat.hero .v { font-size: 40px; }
  .cards { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .pop { right: 16px; top: 60px; }
}
.tbl td:last-child { white-space: nowrap; overflow-wrap: normal; }
