/* AI Money OS — premium AI × fintech UI. Tokens, light + dark. */
:root {
  --bg: #f6f7f9; --surface: #ffffff; --surface-2: #f1f3f6; --ink: #0d1321; --ink-2: #3c4657; --muted: #5b6475; --line: #e3e7ee;
  --brand: #4f46e5; --brand-ink: #ffffff; --brand-soft: #eef0ff; --money: #0a7a52; --money-soft: #e6f6ef; --money-ink: #ffffff;
  --warn: #9a4a06; --warn-soft: #fff4e5; --bad: #b42318; --bad-soft: #fdecea; --info: #1d4ed8; --info-soft: #e8f0fe;
  --side: #0b1020; --side-ink: #c9d1e3; --side-active: #ffffff; --shadow: 0 1px 2px rgba(13,19,33,.06), 0 8px 24px rgba(13,19,33,.06);
  --radius: 14px; --font: "Inter", system-ui, -apple-system, "Segoe UI", "Noto Sans TC", sans-serif; --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #0a0e19; --surface: #111729; --surface-2: #161d33; --ink: #eef1f8; --ink-2: #c3cad9; --muted: #8a93a8; --line: #232c45;
  --brand: #8b85ff; --brand-ink: #0a0e19; --brand-soft: #1d1f45; --money: #34d399; --money-soft: #0f2a22; --money-ink: #04130d; --warn: #f5b454; --warn-soft: #2d2212;
  --bad: #f2786d; --bad-soft: #2e1614; --info: #7aa7ff; --info-soft: #14203d; --side: #070a14; --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.3);
} }
:root[data-theme="dark"] {
  --bg: #0a0e19; --surface: #111729; --surface-2: #161d33; --ink: #eef1f8; --ink-2: #c3cad9; --muted: #8a93a8; --line: #232c45;
  --brand: #8b85ff; --brand-ink: #0a0e19; --brand-soft: #1d1f45; --money: #34d399; --money-soft: #0f2a22; --money-ink: #04130d; --warn: #f5b454; --warn-soft: #2d2212;
  --bad: #f2786d; --bad-soft: #2e1614; --info: #7aa7ff; --info-soft: #14203d; --side: #070a14; --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.3);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font: 14px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--brand); text-decoration: none; } a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; } h1 { font-size: 24px; } h2 { font-size: 18px; } h3 { font-size: 15px; }
.num, .mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* layout */
.shell { display: grid; grid-template-columns: 236px 1fr; min-height: 100vh; }
.side { background: var(--side); color: var(--side-ink); padding: 20px 14px; position: sticky; top: 0; height: 100vh; overflow: auto; display: flex; flex-direction: column; gap: 4px; }
.logo { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; font-size: 15px; padding: 4px 8px 18px; letter-spacing: .02em; }
.logo i { width: 28px; height: 28px; border-radius: 8px; background: linear-gradient(135deg, #6366f1, #10b981); display: grid; place-items: center; font-style: normal; font-size: 13px; }
.nav a { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px; border-radius: 8px; color: var(--side-ink); font-weight: 500; }
.nav a:hover { background: rgba(255,255,255,.06); text-decoration: none; }
.nav a.active { background: rgba(255,255,255,.1); color: var(--side-active); }
.nav .count { background: #dc2626; color: #fff; font-size: 11px; border-radius: 99px; padding: 0 7px; min-width: 20px; text-align: center; }
.side .foot { margin-top: auto; display: flex; gap: 6px; flex-wrap: wrap; padding: 8px; }
.main { padding: 24px 28px 64px; min-width: 0; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.grid { display: grid; gap: 16px; }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); min-width: 0; }
.card.narrow { max-width: 480px; margin: 48px auto; }
.card h2 { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.kpi .label { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.kpi .value { font-size: 26px; font-weight: 700; margin-top: 4px; font-family: var(--mono); letter-spacing: -.02em; }
.kpi .sub { color: var(--muted); font-size: 12px; }
.kpi.money .value { color: var(--money); }
.hero { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; background: linear-gradient(120deg, #111832, #1b1f4b 60%, #0e3b33); color: #fff; border-radius: 18px; padding: 22px 24px; margin-bottom: 16px; }
.hero .status { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: .04em; }
.hero .dot { width: 10px; height: 10px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 4px rgba(52,211,153,.2); }
.hero .dot.paused { background: #f59e0b; box-shadow: 0 0 0 4px rgba(245,158,11,.2); }
.hero .now { color: #c7d2fe; font-size: 13px; margin-top: 4px; }
.hero .actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 10px; padding: 8px 14px; font-weight: 600; cursor: pointer; min-height: 36px; white-space: nowrap; }
.btn:hover { background: var(--surface-2); } .btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.primary { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); } .btn.primary:hover { filter: brightness(1.08); }
.btn.money { background: var(--money); border-color: var(--money); color: var(--money-ink); }
.btn.danger { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 40%, var(--line)); }
.btn.ghost { background: transparent; } .btn.sm { padding: 4px 10px; min-height: 28px; font-size: 12px; border-radius: 8px; }
.btn.big { padding: 12px 22px; font-size: 16px; border-radius: 12px; }
.hero .btn { border-color: rgba(255,255,255,.2); background: rgba(255,255,255,.08); color: #fff; } .hero .btn.money { background: #34d399; color: #04130d; border-color: #34d399; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; } .row.end { justify-content: flex-end; } .spread { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.stack > * + * { margin-top: 12px; }

/* badges */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 99px; font-size: 11px; font-weight: 700; letter-spacing: .02em; background: var(--surface-2); color: var(--ink-2); white-space: nowrap; }
.badge.ok { background: var(--money-soft); color: var(--money); } .badge.warn { background: var(--warn-soft); color: var(--warn); } .badge.bad { background: var(--bad-soft); color: var(--bad); }
.badge.info { background: var(--info-soft); color: var(--info); } .badge.brand { background: var(--brand-soft); color: var(--brand); }

/* tables */
.table-wrap { overflow-x: auto; margin: 0 -18px; padding: 0 18px; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; } tr:last-child td { border-bottom: 0; }
tr.clickable { cursor: pointer; } tr.clickable:hover td { background: var(--surface-2); }

/* forms */
label.field { display: block; font-weight: 600; font-size: 12px; color: var(--ink-2); } label.field > * { margin-top: 4px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=url], input[type=month], input[type=tel], input[type=search], select, textarea { width: 100%; border: 1px solid var(--line); background: var(--surface); border-radius: 10px; padding: 9px 12px; }
textarea { min-height: 90px; resize: vertical; font-family: var(--mono); font-size: 12px; }
.check { display: inline-flex; gap: 6px; align-items: center; font-weight: 600; font-size: 12px; cursor: pointer; }

/* products */
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.product { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--surface); display: flex; flex-direction: column; }
.product.sel-approve { outline: 2px solid var(--money); } .product.sel-redo { outline: 2px solid var(--warn); }
.product .thumb { aspect-ratio: 4/3; background: repeating-conic-gradient(var(--surface-2) 0 25%, var(--surface) 0 50%) 0 0/16px 16px; display: grid; place-items: center; overflow: hidden; }
.product .thumb img, .product .thumb iframe, .product .thumb video { width: 100%; height: 100%; object-fit: contain; border: 0; background: #fff; }
.product .body { padding: 12px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product .meta { color: var(--muted); font-size: 12px; }
.qa { display: flex; align-items: center; gap: 8px; } .qa .bar { flex: 1; height: 6px; background: var(--surface-2); border-radius: 99px; overflow: hidden; } .qa .bar i { display: block; height: 100%; background: var(--money); }
.checks { margin: 0; padding: 0; list-style: none; font-size: 12px; } .checks li { display: flex; gap: 6px; padding: 2px 0; } .checks .x { color: var(--bad); } .checks .v { color: var(--money); }
.dropzone { border: 2px dashed var(--line); border-radius: 14px; padding: 22px; text-align: center; color: var(--muted); cursor: pointer; transition: .15s; }
.dropzone.over { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); }
.stages { display: flex; gap: 4px; flex-wrap: wrap; } .stages span { font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: 6px; background: var(--surface-2); color: var(--muted); }
.stages span.done { background: var(--money-soft); color: var(--money); } .stages span.now { background: var(--brand); color: var(--brand-ink); }

/* conversation */
.convo { display: flex; flex-direction: column; gap: 8px; max-height: 420px; overflow: auto; padding: 4px; }
.msg { max-width: 82%; padding: 10px 12px; border-radius: 14px; background: var(--surface-2); white-space: pre-wrap; }
.msg.in { align-self: flex-end; background: var(--brand); color: var(--brand-ink); border-bottom-right-radius: 4px; }
.msg.out { align-self: flex-start; border-bottom-left-radius: 4px; } .msg small { display: block; opacity: .92; font-size: 11px; margin-top: 4px; }
.list { list-style: none; padding: 0; margin: 0; } .list li { padding: 10px 0; border-bottom: 1px solid var(--line); } .list li:last-child { border-bottom: 0; }
.empty { color: var(--muted); text-align: center; padding: 28px 12px; }
.lines { list-style: none; padding: 0; margin: 12px 0; } .lines li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); } .lines li.total { font-weight: 800; border-bottom: 0; font-size: 16px; }
.ladder { display: flex; gap: 6px; } .ladder span { flex: 1; text-align: center; font-size: 11px; font-weight: 700; padding: 6px 0; border-radius: 8px; background: var(--surface-2); color: var(--muted); } .ladder span.ok { background: var(--money-soft); color: var(--money); }
.toast { position: fixed; right: 16px; bottom: 16px; z-index: 50; background: var(--ink); color: var(--bg); padding: 12px 16px; border-radius: 12px; box-shadow: var(--shadow); max-width: min(420px, calc(100vw - 32px)); }
.toast.bad { background: var(--bad); color: #fff; }
dialog { border: 1px solid var(--line); border-radius: 16px; background: var(--surface); color: var(--ink); padding: 20px; width: min(560px, calc(100vw - 32px)); box-shadow: var(--shadow); }
dialog::backdrop { background: rgba(5,8,18,.55); }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 14px; overflow-x: auto; } .tabs button { border: 0; background: none; padding: 8px 12px; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; cursor: pointer; white-space: nowrap; } .tabs button.on { color: var(--brand); border-color: var(--brand); }
.pre { white-space: pre-wrap; font-family: var(--mono); font-size: 12px; background: var(--surface-2); padding: 10px; border-radius: 10px; overflow-x: auto; }
.callout { border-left: 3px solid var(--brand); background: var(--brand-soft); padding: 10px 12px; border-radius: 8px; font-size: 13px; }
.callout.warn { border-color: var(--warn); background: var(--warn-soft); }

/* public + portal */
.public-hero { max-width: 980px; margin: 0 auto; padding: 56px 20px 24px; }
.public-hero h1 { font-size: clamp(30px, 5vw, 48px); letter-spacing: -.03em; }
.public-hero p.lead { font-size: 18px; color: var(--ink-2); max-width: 640px; }
.wrap { max-width: 980px; margin: 0 auto; padding: 0 20px 64px; }
.portal-head { background: var(--surface); border-bottom: 1px solid var(--line); } .portal-head .wrap { display: flex; justify-content: space-between; align-items: center; padding-top: 14px; padding-bottom: 14px; }
.sim-checkout { display: grid; place-items: start center; min-height: 100vh; }

@media (max-width: 1100px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: sticky; height: auto; flex-direction: row; align-items: center; padding: 8px 12px; overflow-x: auto; z-index: 20; gap: 2px; }
  .logo { padding: 0 8px 0 0; } .logo span { display: none; } .nav { display: flex; gap: 2px; } .nav a { white-space: nowrap; padding: 6px 10px; } .side .foot { margin: 0; padding: 0 0 0 6px; flex-wrap: nowrap; }
  .main { padding: 16px 16px 64px; } .g4, .g3, .g2 { grid-template-columns: 1fr; } .hero { padding: 18px; } .kpi .value { font-size: 22px; }
  .table-wrap { margin: 0 -18px; }
}
.shell { background: linear-gradient(to right, var(--side) 236px, var(--bg) 236px); }
.side .btn { color: var(--side-ink); border-color: rgba(255,255,255,.18); background: transparent; }
.side .btn:hover { background: rgba(255,255,255,.08); }
@media (max-width: 760px) { .shell { background: var(--bg); } }

/* ---- client portal v0.6: composer, wizard, quality selector, timeline, pins, brand kit, files ---- */
.portal-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 16px; align-items: start; margin: 16px 0 40px; }
.stack-lg { display: flex; flex-direction: column; gap: 16px; min-width: 0; } .pside { position: sticky; top: 16px; }
.card.narrow-lg { max-width: 720px; margin: 32px auto; }
.composer { position: relative; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); padding: 8px 10px; display: flex; flex-direction: column; gap: 6px; transition: border-color .15s, box-shadow .15s; }
.composer:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.composer textarea { font-family: var(--font); border: 0; outline: 0; resize: vertical; background: transparent; min-height: 52px; padding: 4px 2px; width: 100%; }
.composer.compact textarea { min-height: 40px; }
.composer-bar { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.composer-bar .row { gap: 4px; align-items: center; }
.icon-btn { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface-2); display: inline-grid; place-items: center; cursor: pointer; font-size: 17px; line-height: 1; }
.icon-btn:hover { background: var(--brand-soft); border-color: var(--brand); }
.icon-btn.rec { background: var(--bad); color: #fff; border-color: var(--bad); animation: recpulse 1.2s ease-in-out infinite; }
@keyframes recpulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(180, 35, 24, .45); } 50% { box-shadow: 0 0 0 8px rgba(180, 35, 24, 0); } }
@media (prefers-reduced-motion: reduce) { .icon-btn.rec { animation: none; } }
.mic-status { font-size: 12px; color: var(--muted); margin-left: 4px; }
.drop-hint { display: none; position: absolute; inset: 0; border: 2px dashed var(--brand); border-radius: 16px; background: color-mix(in srgb, var(--brand-soft) 92%, transparent); place-items: center; font-weight: 700; color: var(--brand); z-index: 2; pointer-events: none; }
.composer.over .drop-hint { display: grid; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; } .chips:empty { display: none; }
.chip, .flist li { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--surface-2); border-radius: 12px; padding: 4px 6px 4px 4px; max-width: 260px; }
.chip img, .flist img { width: 40px; height: 40px; object-fit: cover; border-radius: 8px; background: #fff; flex: none; }
.ficon { width: 40px; height: 40px; border-radius: 8px; display: grid; place-items: center; font: 700 10px var(--mono); background: var(--brand-soft); color: var(--brand); flex: none; }
.cname { display: flex; flex-direction: column; min-width: 0; } .cname b { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .cname small { font-size: 11px; color: var(--muted); }
.chip.busy { opacity: .7; } .chip.bad { border-color: var(--bad); background: var(--bad-soft); } .chip.bad small { color: var(--bad); }
.chip .x, .flist .x { margin-left: auto; border: 0; background: transparent; font-size: 18px; width: 28px; height: 28px; border-radius: 50%; cursor: pointer; color: var(--muted); flex: none; }
.chip .x:hover, .flist .x:hover { background: var(--bad-soft); color: var(--bad); }
.flist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; } .flist li { max-width: none; }
/* quote quality */
.quality { display: grid; gap: 10px; }
.seg { border: 0; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; }
.seg legend { font-weight: 600; font-size: 12px; color: var(--ink-2); margin-bottom: 6px; }
.seg-opt { position: relative; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; cursor: pointer; display: flex; flex-direction: column; gap: 2px; background: var(--surface); }
.seg-opt input { position: absolute; opacity: 0; pointer-events: none; } .seg-opt small { color: var(--muted); font-size: 12px; }
.seg-opt.on { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); background: var(--brand-soft); }
.seg-opt:has(input:focus-visible) { outline: 2px solid var(--brand); outline-offset: 2px; }
.price-line { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px dashed var(--line); padding-top: 10px; } .price-line b { font-size: 22px; }
.meta { color: var(--muted); font-size: 12px; }
/* timeline */
.tl-wrap + .tl-wrap { border-top: 1px solid var(--line); padding-top: 14px; }
.timeline { list-style: none; margin: 12px 0 4px; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; counter-reset: s; }
.timeline li { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; font-size: 12px; color: var(--muted); padding: 0 4px; }
.timeline li::before { content: ""; position: absolute; top: 11px; left: -50%; width: 100%; height: 2px; background: var(--line); z-index: 0; } .timeline li:first-child::before { display: none; }
.timeline li.done::before, .timeline li.current::before { background: var(--money); }
.timeline .dot { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line); background: var(--surface); display: grid; place-items: center; z-index: 1; font-size: 12px; font-weight: 700; }
.timeline li.done .dot { background: var(--money); border-color: var(--money); color: var(--money-ink); } .timeline li.done { color: var(--ink-2); }
.timeline li.current .dot { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); } .timeline li.current { color: var(--ink); font-weight: 600; }
.timeline small { font-size: 10px; color: var(--muted); font-weight: 400; }
.reorder { margin-top: 10px; background: var(--surface-2); border-radius: 12px; padding: 10px; align-items: flex-end; }
label.field.inline { display: inline-flex; flex-direction: column; }
/* pins */
.thumb.pinnable { position: relative; } .thumb.pinning { cursor: crosshair; outline: 2px dashed var(--brand); outline-offset: -2px; }
.thumb .pin { position: absolute; transform: translate(-50%, -100%); min-width: 24px; height: 24px; padding: 0 6px; border-radius: 12px 12px 12px 2px; background: var(--brand); color: #fff; font: 700 12px/24px var(--font); text-align: center; box-shadow: 0 2px 6px rgba(0,0,0,.3); pointer-events: auto; }
.thumb .pin.new { background: var(--warn); }
.btn.on { background: var(--brand-soft); border-color: var(--brand); color: var(--brand); }
.thread { border-top: 1px solid var(--line); padding-top: 8px; } .thread .msg { max-width: 100%; }
/* brand kit */
.swatch { display: inline-block; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line); } .swatch.sm { width: 22px; height: 22px; border-radius: 6px; }
.swatch-pick { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 11px; cursor: pointer; }
.swatch-pick input:not(:checked) + .swatch { opacity: .3; outline: 2px dashed var(--bad); }
.brandkit { border-color: var(--brand); }
/* wizard */
.wsteps { list-style: none; padding: 0; margin: 0; display: flex; gap: 8px; flex-wrap: wrap; }
.wsteps li { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.wsteps li span { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; font-weight: 700; font-size: 12px; }
.wsteps li.current { color: var(--ink); font-weight: 600; } .wsteps li.current span { border-color: var(--brand); background: var(--brand); color: var(--brand-ink); }
.wsteps li.done span { border-color: var(--money); background: var(--money); color: var(--money-ink); }
.wsteps li + li::before { content: "›"; color: var(--line); margin-right: 2px; }
.svc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.svc { text-align: left; border: 1px solid var(--line); border-radius: 14px; padding: 14px; background: var(--surface); cursor: pointer; display: flex; flex-direction: column; gap: 4px; }
.svc:hover { border-color: var(--brand); } .svc.on { border-color: var(--brand); background: var(--brand-soft); } .svc small { color: var(--muted); }
.chips-pick { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; } .chips-pick legend { margin-bottom: 6px; }
.chips-pick label { cursor: pointer; } .chips-pick input { position: absolute; opacity: 0; }
.chips-pick span { display: inline-block; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); font-weight: 500; text-transform: capitalize; }
.chips-pick input:checked + span { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.chips-pick input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
input[type=color] { width: 48px; height: 36px; padding: 2px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
@media (max-width: 860px) {
  .portal-grid { grid-template-columns: 1fr; } .pside { position: static; }
  .timeline { grid-auto-flow: row; grid-auto-columns: auto; gap: 10px; }
  .timeline li { flex-direction: row; text-align: left; align-items: center; } .timeline li::before { display: none; }
  .hide-sm { display: none; } .chip { max-width: 100%; }
}
/* ratings */
.stars { border: 0; padding: 0; margin: 0; display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; }
.stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.stars label { font-size: 30px; line-height: 1; color: var(--line); cursor: pointer; padding: 2px; }
.stars input:checked ~ label, .stars label:hover, .stars label:hover ~ label { color: #e0a100; }
.stars input:focus-visible + label { outline: 2px solid var(--brand); border-radius: 6px; }
.stars-ro { color: #c98f00; letter-spacing: 2px; }
.rate + .rate { border-top: 1px solid var(--line); padding-top: 12px; }
.testimonials { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.testimonial blockquote { margin: 6px 0; font-size: 15px; }
/* compare options */
dialog.cmp { width: min(1100px, calc(100vw - 24px)); max-height: calc(100vh - 24px); border: 1px solid var(--line); border-radius: 18px; padding: 16px; background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
dialog.cmp::backdrop { background: rgba(10, 14, 25, .6); }
.cmp-bar { align-items: flex-end; margin-bottom: 12px; } .cmp-bar .field { min-width: 160px; flex: 1; }
.seg-mini { display: inline-flex; gap: 4px; }
.cmp-side { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cmp-side figure { margin: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: repeating-conic-gradient(var(--surface-2) 0 25%, var(--surface) 0 50%) 0 0/16px 16px; }
.cmp-side img, .cmp-side iframe { display: block; width: 100%; aspect-ratio: 1; object-fit: contain; border: 0; background: #fff; }
.cmp-side figcaption { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 10px; background: var(--surface); }
.cmp-slide { position: relative; max-width: 640px; margin: 0 auto; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: #fff; user-select: none; }
.cmp-slide > img, .cmp-top img { display: block; width: 100%; aspect-ratio: 1; object-fit: contain; background: #fff; }
.cmp-top { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.cmp-line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: var(--brand); box-shadow: 0 0 0 1px #fff; }
.cmp-tag { position: absolute; top: 8px; padding: 2px 8px; border-radius: 6px; background: rgba(10, 14, 25, .7); color: #fff; font-weight: 700; font-size: 12px; } .cmp-tag.l { left: 8px; } .cmp-tag.r { right: 8px; }
#cmpPos { width: 100%; max-width: 640px; display: block; margin: 10px auto 0; accent-color: var(--brand); }
@media (max-width: 640px) { .cmp-side { grid-template-columns: 1fr; } }

/* ---- v0.8 owner console: login, grouped nav, mobile tab bar, needs-you, setup ---- */
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 16px; background: radial-gradient(1200px 500px at 50% -10%, var(--brand-soft), transparent), var(--bg); }
.login-card { width: min(420px, 100%); display: flex; flex-direction: column; gap: 10px; padding: 24px; }
.login-card h1 { margin: 8px 0 0; } .meta.small { font-size: 12px; }
.form-err { color: var(--bad); font-weight: 600; min-height: 1.2em; font-size: 13px; }
.form-err:empty { display: none; }
.pw-wrap { position: relative; display: block; } .pw-wrap input { padding-right: 46px; }
.pw-toggle { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); margin: 0 !important; }
.code-input { font: 700 24px/1 var(--mono) !important; letter-spacing: .45em; text-align: center; padding: 12px !important; }
.big-block { width: 100%; justify-content: center; padding: 12px 16px; font-size: 15px; }
.nav-group + .nav-group { margin-top: 10px; }
.nav-h { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: #8b95b0; padding: 6px 10px 2px; font-weight: 700; }
.tabbar, .scrim, .only-m { display: none; }
.hero-text { max-width: 720px; }
.hero-explain { color: #dbe2ff; font-size: 13px; margin: 10px 0 0; line-height: 1.5; }
.last-run { margin-top: 8px; font-size: 12px; color: #c7d2fe; } .last-run a { color: #a5f3d0; }
.today { margin-bottom: 16px; border-left: 4px solid var(--brand); }
.todo { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; }
.todo a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); background: var(--surface); min-height: 52px; }
.todo a:hover { border-color: var(--brand); text-decoration: none; background: var(--brand-soft); }
.todo-n { font-size: 20px; font-weight: 800; min-width: 34px; text-align: center; color: var(--brand); }
.todo-t { flex: 1; font-weight: 500; } .todo-go { color: var(--muted); }
.todo .lvl-critical .todo-n { color: var(--bad); } .todo .lvl-critical a { border-color: color-mix(in srgb, var(--bad) 40%, var(--line)); }
.setup { margin-bottom: 16px; } .setup summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; cursor: pointer; list-style: none; } .setup summary::-webkit-details-marker { display: none; }
.progress { flex: 0 1 220px; height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; } .progress span { display: block; height: 100%; background: var(--money); border-radius: 99px; }
.checklist { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 8px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; padding: 10px; border: 1px solid var(--line); border-radius: 12px; } .checklist li > span:nth-child(2) { flex: 1; }
.checklist .ck { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; font-size: 12px; font-weight: 800; flex: none; }
.checklist li.done { background: var(--surface-2); } .checklist li.done b { color: var(--muted); text-decoration: line-through; } .checklist li.done .ck { background: var(--money); border-color: var(--money); color: var(--money-ink); }
details.company > summary { list-style: none; cursor: pointer; } details.company > summary::-webkit-details-marker { display: none; } details.company > summary h2 { display: inline; }
@media (max-width: 760px) {
  .side { display: none; }
  .side.open { display: flex; flex-direction: column; align-items: stretch; position: fixed; top: 0; right: 0; bottom: 0; left: auto; width: min(320px, 86vw); height: 100vh; overflow-y: auto; padding: 16px; z-index: 60; box-shadow: -8px 0 32px rgba(0,0,0,.35); }
  .side.open .logo span { display: inline; } .side.open .nav { display: block; } .side.open .nav a { padding: 10px 12px; white-space: normal; } .side.open .foot { margin-top: 16px; padding: 8px 0; flex-wrap: wrap; }
  .only-m { display: inline-flex; }
  .scrim:not([hidden]) { display: block; position: fixed; inset: 0; background: rgba(5, 8, 18, .55); z-index: 55; }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: var(--surface); border-top: 1px solid var(--line); padding: 4px 4px calc(4px + env(safe-area-inset-bottom)); }
  .tabbar a, .tabbar button { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 2px; font-size: 11px; font-weight: 600; color: var(--muted); background: none; border: 0; border-radius: 10px; cursor: pointer; min-height: 48px; justify-content: center; }
  .tabbar a span[aria-hidden], .tabbar button span[aria-hidden] { font-size: 18px; line-height: 1; }
  .tabbar a.active { color: var(--brand); background: var(--brand-soft); text-decoration: none; }
  .tabbar .count { position: absolute; top: 2px; right: 50%; transform: translateX(22px); background: #dc2626; color: #fff; font-size: 10px; border-radius: 99px; padding: 0 5px; min-width: 16px; text-align: center; }
  .main { padding-bottom: 96px; }
  .todo { grid-template-columns: 1fr; } .checklist { grid-template-columns: 1fr; }
  .hero .actions { width: 100%; } .hero .actions .btn { flex: 1 1 auto; justify-content: center; } .hero .btn.money { flex-basis: 100%; }
}
/* ---- v0.8 client portal: brand header, sign-in, account, welcome ---- */
.brand-logo span { display: inline-flex !important; flex-direction: column; line-height: 1.15; }
.brand-logo span b { font-size: 15px; } .brand-logo span small { font-size: 11px; color: var(--muted); font-weight: 500; }
.brand-logo i { font-style: normal; }
.portal-login { min-height: calc(100vh - 64px); align-items: start; padding-top: 6vh; }
.check.remember { align-items: flex-start; gap: 10px; font-size: 13px; } .check.remember input { margin-top: 3px; }
.spread-sm { justify-content: space-between; }
.login-foot { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 4px; font-size: 13px; } .login-foot p { margin: 4px 0; }
.welcome { text-align: left; background: linear-gradient(135deg, var(--brand-soft), var(--surface) 60%); border-color: color-mix(in srgb, var(--brand) 30%, var(--line)); }
.welcome h1 { margin-bottom: 4px; } .welcome .btn.big { margin-top: 8px; }
.how { list-style: none; padding: 0; margin: 14px 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.how li { display: flex; gap: 10px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font-size: 13px; }
.how b { width: 26px; height: 26px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); display: grid; place-items: center; flex: none; }
@media (max-width: 760px) { .how { grid-template-columns: 1fr; } .portal-head .row { gap: 4px; } .portal-head .btn.sm { padding: 6px 8px; } }
/* ---- v0.9 social agent ---- */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.post-card { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--surface); display: flex; flex-direction: column; }
.post-media { position: relative; aspect-ratio: 4/5; background: var(--surface-2); display: grid; place-items: center; overflow: hidden; }
.post-media img, .post-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-count { position: absolute; top: 8px; right: 8px; background: rgba(10,14,25,.72); color: #fff; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 99px; }
.post-card .body { padding: 10px 12px 12px; }
.post-card.locked .lock { text-align: center; color: var(--muted); font-size: 28px; } .post-card.locked .lock small { font-size: 12px; }
.pre.small { font-size: 12px; max-height: 140px; overflow: auto; white-space: pre-wrap; }
.post-card textarea { font-family: var(--font); font-size: 12px; }
/* ---- v0.9 customizable layouts + density ---- */
.dash-mods { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; grid-auto-flow: row dense; align-items: start; }
.dash-mods > [data-mod] { grid-column: span 12; min-width: 0; margin: 0 !important; }
.dash-mods > [data-mod-resizable] { grid-column: span 4; } .dash-mods > [data-mod-resizable].mod-wide { grid-column: span 8; }
.dash-mods > .mod-placeholder { grid-column: span 12; } .dash-mods > .mod-placeholder.mod-wide { grid-column: span 8; }
.mods-editing > [data-mod] { outline: 2px dashed color-mix(in srgb, var(--brand) 55%, transparent); outline-offset: 4px; border-radius: 14px; }
.mods-editing > .mod-hidden { opacity: .45; }
.mod-bar { display: flex; align-items: center; gap: 6px; margin: -4px 0 8px; padding: 4px 6px; background: var(--brand-soft); border-radius: 10px; color: var(--ink); font-size: 12px; }
.hero .mod-bar { background: rgba(255,255,255,.12); color: #fff; } .hero .mod-bar .btn { color: #fff; }
.mod-name { flex: 1; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mod-handle { cursor: grab; touch-action: none; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 8px; width: 36px; height: 32px; font-size: 18px; line-height: 1; }
.mod-handle:active { cursor: grabbing; }
.mod-dragging { box-shadow: 0 20px 50px rgba(0,0,0,.3); opacity: .95; transform: rotate(.6deg); }
.mod-placeholder { border: 2px dashed var(--brand); border-radius: 14px; background: color-mix(in srgb, var(--brand-soft) 60%, transparent); }
.theme-btn { font-size: 15px; min-width: 34px; }
html.compact .card { padding: 12px 14px; } html.compact .stack-lg { gap: 10px; } html.compact .dash-mods { gap: 10px; } html.compact .list li { padding-top: 6px; padding-bottom: 6px; }
html.compact .main { padding-top: 14px; } html.compact h1 { font-size: 20px; }
@media (max-width: 760px) { .dash-mods > [data-mod], .dash-mods > [data-mod-resizable], .dash-mods > [data-mod-resizable].mod-wide { grid-column: span 12; } }
/* v1.1 — monthly report KPIs + engagement inbox */
.grid.kpi-auto{grid-template-columns:repeat(auto-fit,minmax(140px,1fr))}
.eng-item .pre{margin:6px 0}
/* v1.3 — public trust sections, showcase, investor page */
.showcase{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:12px}
.showcase img{width:100%;height:auto;border-radius:10px;display:block;background:var(--line)}
table.why th[scope=row]{text-align:left;white-space:nowrap}
details.qa{border-top:1px solid var(--line);padding:10px 0}
details.qa summary{cursor:pointer}
.private-form{margin-top:8px}
@media print{.sidenav,.tabbar,.topbar .row,.seg,#hr{display:none!important}.main{margin:0!important}}
/* v1.4 — homepage AI assistant */
.chat-fab{position:fixed;right:16px;bottom:16px;z-index:60;border:0;border-radius:999px;padding:12px 18px;font:600 15px/1 var(--font);background:#4338ca;color:#fff;box-shadow:0 8px 24px rgba(0,0,0,.18);cursor:pointer}
.chat-fab:focus-visible{outline:3px solid var(--ink);outline-offset:3px}
.chat-panel{position:fixed;right:16px;bottom:72px;z-index:61;width:min(380px,calc(100vw - 32px));max-height:min(620px,calc(100vh - 100px));display:flex;flex-direction:column;gap:8px;box-shadow:0 16px 48px rgba(0,0,0,.25)}
.chat-log{overflow:auto;display:flex;flex-direction:column;gap:8px;min-height:80px;flex:1}
.chat-msg{padding:8px 12px;border-radius:12px;max-width:90%;white-space:pre-wrap;line-height:1.45}
.chat-msg.me{align-self:flex-end;background:#4338ca;color:#fff}
.chat-msg.bot{align-self:flex-start;background:var(--soft,#f1f3f8);color:var(--ink)}
.chat-sugg{flex-wrap:wrap}
@media (max-width:480px){.chat-fab span{display:none}}
.meter{height:10px;border-radius:999px;background:var(--line);overflow:hidden}.meter span{display:block;height:100%;background:var(--brand,#4f46e5)}
html[lang="zh-Hans"] body{font-family:Inter,"Noto Sans SC","PingFang SC","Microsoft YaHei","Noto Sans TC",system-ui,sans-serif}
.chat-panel[hidden]{display:none}
.about-dl{margin:0}.about-dl dd{margin:2px 0 0;overflow-wrap:anywhere}
/* job match check (ProofCV-style) */
.grid2{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:16px}
.seg-tabs{display:inline-flex;gap:4px;padding:4px;border:1px solid var(--line);border-radius:12px;background:var(--surface);flex-wrap:wrap}
.seg-tab{border:0;background:transparent;padding:8px 14px;border-radius:9px;cursor:pointer;font-weight:600;color:var(--ink-2)}
.seg-tab.on{background:var(--brand);color:var(--brand-ink)}
.chip{border:1px solid var(--line);background:var(--surface);color:var(--ink);border-radius:999px;padding:4px 12px;font-size:12px;font-weight:600;cursor:pointer}
.chip.on{border-color:var(--brand);background:var(--brand-soft);color:var(--brand)}
.jm-rings{align-items:center;gap:20px}
.ring{--v:0;--tone:var(--brand);width:112px;height:112px;border-radius:50%;display:grid;place-items:center;align-content:center;background:radial-gradient(closest-side,var(--surface) 78%,transparent 79%),conic-gradient(var(--tone) calc(var(--v)*1%),var(--line) 0);text-align:center}
.ring b{font-size:28px;line-height:1;color:var(--ink)}.ring small{font-size:11px;color:var(--ink-2);max-width:80px}
.jm-groups{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:8px 24px}
.jm-groups li{display:grid;grid-template-columns:140px 1fr 32px;align-items:center;gap:10px;font-size:13px}
.jm-comp .list li{display:flex;flex-direction:column;gap:4px}
.jm-kw td,.jm-kw th{text-align:left}
.jm-posting{white-space:pre-wrap;font-size:13px;line-height:1.7;max-height:420px;overflow:auto;padding:12px;border:1px solid var(--line);border-radius:10px}
mark.hl{border-radius:4px;padding:0 2px;color:var(--ink)}
.hl-MATCHED,.badge.st-MATCHED{background:var(--money-soft);color:var(--money)}
.hl-PARTIAL,.badge.st-PARTIAL{background:var(--warn-soft);color:var(--warn)}
.hl-MISSING,.badge.st-MISSING{background:var(--info-soft);color:var(--info)}
.hl-UNSUPPORTED,.badge.st-UNSUPPORTED{background:var(--bad-soft);color:var(--bad)}
mark.hl-MATCHED{box-shadow:inset 0 -2px 0 var(--money)}mark.hl-PARTIAL{box-shadow:inset 0 -2px 0 var(--warn)}mark.hl-MISSING{box-shadow:inset 0 -2px 0 var(--info)}mark.hl-UNSUPPORTED{box-shadow:inset 0 -2px 0 var(--bad)}
.jm-gaps li p{margin:6px 0 2px}
@media print{.portal-head,.seg-tabs,#jm,#jmf,.jm-credits,[data-buy],#jmOrder,#jmPrint{display:none!important}.jm-result[hidden]{display:block!important}}
.jm-kw td:nth-child(n+2),.jm-kw th{white-space:nowrap}.jm-kw td:first-child{min-width:140px}
/* career tools */
.cr-board{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(220px,1fr);gap:12px;overflow-x:auto;padding-bottom:6px}
.cr-col{background:var(--surface-2);border:1px solid var(--line);border-radius:14px;padding:10px;display:flex;flex-direction:column;gap:8px;min-height:120px}
.cr-col h2{font-size:14px;margin:2px 4px}
.cr-card{display:flex;flex-direction:column;gap:6px;color:var(--ink);padding:12px}.cr-card:hover{text-decoration:none;border-color:var(--brand)}
.cr-split{display:grid;grid-template-columns:1fr 1fr;gap:16px}@media(max-width:900px){.cr-split{grid-template-columns:1fr}}
#crCv{width:100%;font:13px/1.6 var(--mono);min-height:420px}
.grid3{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:12px}.grid3 p{margin:4px 0 0}
.cr-sugs{list-style:none;margin:0;padding:0}.card.dim{opacity:.7}
.cr-q{border-top:1px solid var(--line);padding:10px 0}.cr-q summary{cursor:pointer}
.cr-star{background:var(--surface-2);border-radius:10px;padding:10px 12px}.cr-star dl{margin:6px 0 0;display:grid;grid-template-columns:90px 1fr;gap:6px 10px}.cr-star dt{font-weight:600}.cr-star dd{margin:0}
.cr-credit{align-items:center}
.callout a{text-decoration:underline}
/* v1.9 offers */
.perks{margin:0;padding-left:18px;display:grid;gap:4px;font-size:14px}
.lines li.disc span,.lines li.disc b{color:var(--money)}
.login-foot a, .login-card .check a { text-decoration: underline; }
#ofr fieldset { border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px 12px; margin: 0; }
#ofr fieldset legend { padding: 0 6px; }
#ofr fieldset:not(:has(.row)) { padding: 0 14px; border-bottom: 0; border-left: 0; border-right: 0; border-radius: 0; }
/* v2.0 platform tabs, AI media */
.tabs a { padding: 8px 12px; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; text-decoration: none; } .tabs a.on { color: var(--brand); border-color: var(--brand); }
.hq-box { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; display: grid; gap: 6px; font-size: 13px; }
.hq-box video { width: 100%; border-radius: 8px; background: #000; }
.media-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.media-grid fieldset { border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px 12px; margin: 0; display: grid; gap: 8px; }
.qual-pick { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.qual-pick label { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.qual-pick label:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.vid-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.vid-list li { display: flex; gap: 10px; align-items: center; border: 1px solid var(--line); border-radius: 10px; padding: 8px; }
.vid-list img { width: 72px; height: 40px; object-fit: cover; border-radius: 6px; background: var(--surface-2); }
.progress { height: 6px; background: var(--surface-2); border-radius: 99px; overflow: hidden; } .progress i { display: block; height: 100%; background: var(--brand); width: 0; transition: width .2s; }
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.shop-card { display: grid; gap: 8px; color: var(--ink); text-decoration: none; } .shop-card:hover { text-decoration: none; border-color: var(--brand); }
.shop-card img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
a.badge { text-decoration: none; } a.badge:hover { text-decoration: underline; }
