body { background: #faf8f4; }
.hub { padding: 28px 0 80px; }
.hub h1 { font-size: clamp(32px, 5vw, 44px); margin: 0 0 6px; }
.hub h2 { font-size: 26px; margin: 36px 0 12px; }
.hub h3 { font-family: var(--display); font-size: 18px; margin: 0 0 12px; }
.hub-word { font-family: var(--marker); font-weight: 400; font-size: 17px; color: var(--accent); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.who-bar { display: flex; align-items: center; gap: 12px; font-size: 14px; min-width: 0; }
.who-bar #who { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 40vw; }
.box { background: var(--paper); border: 2px solid var(--ink); border-radius: 18px; box-shadow: 4px 4px 0 var(--ink); padding: 20px; min-width: 0; }
.gate { max-width: 460px; margin: 40px auto; padding: 28px; }
.gate h1 { font-size: 34px; }
.gate .tag { margin-bottom: 10px; }
.gate-actions { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.hub label { display: block; font-weight: 700; font-size: 14px; margin: 14px 0 6px; }
.hub .opt { font-weight: 500; color: var(--muted); }
.hub input, .hub select, .hub textarea { width: 100%; font: inherit; font-size: 16px; padding: 11px 13px; border: 2px solid var(--ink); border-radius: 12px; background: var(--paper); color: var(--ink); }
.hub textarea { resize: vertical; }
.hub input:focus-visible, .hub textarea:focus-visible, .hub select:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; }
.count { float: right; font-weight: 500; color: var(--muted); font-size: 12px; }
.err { color: #b3261e; font-weight: 600; font-size: 14px; margin: 12px 0 0; min-height: 1em; }
.btn.small { height: 38px; padding: 0 14px; font-size: 14px; box-shadow: 2px 2px 0 var(--ink); white-space: nowrap; }
.btn:disabled { opacity: .6; cursor: wait; }
.bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.bar-right { display: flex; gap: 10px; align-items: center; }
.bar-right select { width: auto; max-width: 60vw; padding: 7px 10px; font-size: 14px; }
.seg { display: inline-flex; gap: 4px; padding: 4px; border: 2px solid var(--ink); border-radius: 999px; background: var(--chip); margin: 6px 0 4px; }
.seg button { font: inherit; font-weight: 700; font-size: 14px; padding: 7px 14px; border-radius: 999px; border: 0; background: transparent; cursor: pointer; color: var(--ink); }
.seg button[aria-selected="true"] { background: var(--ink); color: var(--paper); }
.small-seg { margin: 0; }
.small-seg button { font-size: 13px; padding: 5px 11px; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pill { display: inline-block; font-size: 12px; font-weight: 700; border: 2px solid var(--ink); border-radius: 999px; padding: 2px 10px; background: var(--chip); }
.pill.hot { background: var(--accent); }
.pill.dark { background: var(--ink); color: var(--paper); }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.stat { background: var(--paper); border: 2px solid var(--ink); border-radius: 16px; padding: 14px 16px; }
.stat b { display: block; font-family: var(--display); font-size: 32px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat span { font-size: 12px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.stat small { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.stat small.up { color: #1d7a3a; font-weight: 700; }
.stat.hot { background: var(--accent); }
.stat.hot span, .stat.hot small { color: var(--ink); }
.chart-box { margin-top: 16px; }
.chart { display: grid; grid-template-columns: repeat(30, minmax(0, 1fr)); align-items: end; gap: 3px; height: 180px; margin-top: 14px; border-bottom: 2px solid var(--ink); }
.chart .day { height: 100%; display: flex; align-items: flex-end; }
.chart .day i { display: block; width: 100%; background: var(--accent); border-radius: 3px 3px 0 0; min-height: 2px; }
.chart .day i.zero { background: #e5e2db; }
.chart .day:hover i { background: var(--ink); }
.chart-axis { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-top: 6px; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; margin-top: 16px; }
.hbar { display: grid; grid-template-columns: 90px 1fr 120px; align-items: center; gap: 10px; font-size: 14px; padding: 4px 0; }
.hbar .track { height: 14px; background: var(--chip); border-radius: 999px; overflow: hidden; }
.hbar .fill { height: 100%; background: var(--accent); border-radius: 999px; }
.hbar .val { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.kv { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; font-size: 15px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.mini { margin: 8px 0 0; padding-left: 20px; } .mini li { padding: 3px 0; }
.note { border: 2px dashed var(--accent); border-radius: 14px; padding: 12px 14px; background: #fff6f2; font-size: 14px; margin: 16px 0 0; }
.listing { align-items: start; }
.vcard { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 14px; background: var(--paper); border: 2px solid var(--ink); border-radius: 20px; padding: 12px; box-shadow: 4px 4px 0 var(--ink); transform: rotate(-0.6deg); }
.vcard .ph { width: 120px; height: 120px; border-radius: 14px; border: 2px solid var(--ink); object-fit: cover; background: linear-gradient(135deg, #ff5a1f 0%, #ffb08a 55%, #111 56%, #333 100%); }
.vcard b { font-family: var(--display); font-size: 20px; display: block; line-height: 1.15; }
.vcard small { display: block; color: var(--muted); font-weight: 600; margin: 2px 0 6px; }
.vcard p { margin: 0; font-size: 15px; }
.vcard .deal { display: inline-block; margin-top: 8px; font-size: 12px; font-weight: 700; background: var(--accent); border: 2px solid var(--ink); border-radius: 999px; padding: 1px 9px; }
.vcard a { font-size: 13px; font-weight: 600; word-break: break-all; display: inline-block; margin-top: 6px; }
#fPreview { margin-top: 10px; width: 100%; max-height: 220px; object-fit: cover; border: 2px solid var(--ink); border-radius: 12px; }
.plan-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: center; }
.plan-row .big { font-family: var(--display); font-weight: 800; font-size: 28px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: var(--paper); padding: 12px 18px; border-radius: 12px; font-weight: 600; opacity: 0; transition: opacity .2s; pointer-events: none; z-index: 20; max-width: calc(100% - 32px); }
.toast.show { opacity: 1; }
[hidden] { display: none !important; }
@media (max-width: 600px) {
  .hub-word { display: none; }
  .hbar { grid-template-columns: 70px 1fr 104px; }
  .vcard { grid-template-columns: 88px minmax(0, 1fr); }
  .vcard .ph { width: 88px; height: 88px; }
  .chart { gap: 2px; height: 150px; }
  .stat b { font-size: 26px; }
}
