/* ============================================================
   VYNECT — design tokens
   ink + acid lime. Light by default, dark via prefers-color-scheme.
   ============================================================ */
:root {
  --bg: #f6f6f3;
  --surface: #ffffff;
  --surface-2: #f0f0ec;
  --border: #e4e4de;
  --border-strong: #cfcfc7;
  --text: #15151a;
  --text-2: #5d5d66;
  --text-3: #8d8d95;
  --accent: #b9fb08;          /* fill only — never as text on light bg */
  --accent-ink: #15151a;      /* text on accent */
  --accent-soft: #eef9c8;
  --accent-text: #4c6b00;     /* readable accent for text/links */
  --info: #2f6bff;
  --info-soft: #e7eeff;
  --warn: #b26b00;
  --warn-soft: #fff1d9;
  --danger: #d92d3a;
  --danger-soft: #fde8ea;
  --ok: #138a4b;
  --ok-soft: #dff5e8;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --radius-pill: 999px;
  --shadow: 0 1px 2px rgba(20, 20, 30, .04), 0 4px 16px rgba(20, 20, 30, .04);
  --shadow-pop: 0 12px 40px rgba(20, 20, 30, .16);
  --control-h: 40px;
  --col: 1240px;
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", sans-serif;
  --font-display: "Space Grotesk", var(--font);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141318;
    --surface: #1c1b21;
    --surface-2: #24232a;
    --border: #2e2d35;
    --border-strong: #403f48;
    --text: #f3f3f5;
    --text-2: #a9a8b3;
    --text-3: #75747f;
    --accent-soft: #2b3510;
    --accent-text: #b9fb08;
    --info: #7da2ff;
    --info-soft: #1e2640;
    --warn: #ffb547;
    --warn-soft: #3a2a10;
    --danger: #ff6b75;
    --danger-soft: #3d1a1e;
    --ok: #4fd18b;
    --ok-soft: #12301f;
    --shadow: none;
    --shadow-pop: 0 12px 40px rgba(0, 0, 0, .5);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; color: inherit; }
.num { font-family: var(--font-display); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.muted { color: var(--text-2); }
.faint { color: var(--text-3); }
.small { font-size: 13px; }
.hidden { display: none !important; }

/* ============ Header ============ */
.header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: var(--col); margin: 0 auto; padding: 0 20px;
  height: 64px; display: flex; align-items: center; gap: 28px;
}
.logo { display: inline-flex; align-items: center; flex-shrink: 0; }
.logo img { height: 22px; width: auto; display: block; }
.nav { display: flex; gap: 2px; flex: 1; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a {
  padding: 8px 14px; border-radius: var(--radius-pill); color: var(--text-2);
  font-weight: 500; font-size: 14px; white-space: nowrap; transition: background .15s, color .15s;
}
.nav a:hover { color: var(--text); background: var(--surface-2); }
.nav a.active { color: var(--text); background: var(--surface); box-shadow: inset 0 0 0 1px var(--border); }
.header-user { display: flex; align-items: center; gap: 10px; }
.my-link {
  display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: var(--radius-pill);
  font-weight: 600; font-size: 14px; color: var(--text-2); transition: background .15s, color .15s;
}
.my-link:hover { color: var(--text); background: var(--surface-2); }
.my-link.active { color: var(--text); background: var(--surface); box-shadow: inset 0 0 0 1px var(--border); }
.my-tabs {
  display: flex; gap: 4px; margin-bottom: 24px; padding-bottom: 12px; border-bottom: 1px solid var(--border);
  overflow-x: auto; scrollbar-width: none;
}
.my-tabs::-webkit-scrollbar { display: none; }
.my-tabs a {
  padding: 7px 14px; border-radius: var(--radius-pill); color: var(--text-2);
  font-weight: 600; font-size: 14px; white-space: nowrap;
}
.my-tabs a:hover { color: var(--text); background: var(--surface-2); }
.my-tabs a.active { color: var(--accent-ink); background: var(--accent); }

/* ============ Layout ============ */
.main { max-width: var(--col); margin: 0 auto; padding: 32px 20px 96px; }
.stack { display: flex; flex-direction: column; gap: 20px; }
.row-flex { display: flex; align-items: center; gap: 12px; }
.spread { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.grid-2 { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }

.page-header { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.page-header-text { flex: 1; min-width: 0; }
.page-title { font-size: 26px; font-weight: 700; letter-spacing: -.02em; line-height: 1.25; }
.page-sub { color: var(--text-2); margin-top: 4px; }
.page-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ============ Card ============ */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow);
}
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px 0; }
.card-title { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 650; }
.card-title svg { width: 18px; height: 18px; color: var(--text-2); }
.card-body { padding: 16px 20px 20px; }
.card-body.flush { padding: 8px 0 8px; }

/* ============ List rows ============ */
.list { display: flex; flex-direction: column; }
.list-row {
  display: flex; align-items: center; gap: 14px; padding: 12px 20px;
  border-top: 1px solid var(--border);
}
.list-row:first-child { border-top: 0; }
.list-row[data-interactive] { cursor: pointer; transition: background .12s; }
.list-row[data-interactive]:hover { background: var(--surface-2); }
.list-row-body { flex: 1; min-width: 0; }
.list-row-title { font-weight: 600; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-row-meta { color: var(--text-2); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-row-actions { display: flex; gap: 6px; flex-shrink: 0; }

.state-line {
  margin: 4px 20px 8px; padding: 14px 16px; border-radius: var(--radius);
  background: var(--accent-soft); font-weight: 600; font-size: 15px; line-height: 1.45;
}
.state-line.closed { background: var(--surface-2); color: var(--text-2); }

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: var(--control-h); padding: 0 18px; border-radius: var(--radius-pill);
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
  font-weight: 600; font-size: 14px; cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s, transform .05s;
}
.btn:hover { border-color: var(--border-strong); background: var(--surface-2); }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .5; pointer-events: none; }
.btn svg { width: 17px; height: 17px; }
.btn-primary { background: var(--text); border-color: var(--text); color: var(--bg); }
.btn-primary:hover { background: var(--text); border-color: var(--text); opacity: .88; }
.btn-accent { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { background: var(--accent); border-color: var(--accent); filter: brightness(.96); }
.btn-ghost { border-color: transparent; background: transparent; }
.btn-danger { color: var(--danger); }
.btn-danger:hover { background: var(--danger-soft); border-color: var(--danger-soft); }
.btn-sm { --control-h: 32px; padding: 0 13px; font-size: 13px; }
.btn-lg { --control-h: 50px; padding: 0 26px; font-size: 15.5px; }
.btn-block { width: 100%; }
.icon-btn { width: var(--control-h); padding: 0; }

/* ============ Pills / badges ============ */
.pill {
  display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 10px;
  border-radius: var(--radius-pill); font-size: 12px; font-weight: 600;
  background: var(--surface-2); color: var(--text-2); white-space: nowrap;
}
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .8; }
.pill.plain::before { display: none; }
.pill-accent { background: var(--accent-soft); color: var(--accent-text); }
.pill-info { background: var(--info-soft); color: var(--info); }
.pill-warn { background: var(--warn-soft); color: var(--warn); }
.pill-ok { background: var(--ok-soft); color: var(--ok); }
.pill-danger { background: var(--danger-soft); color: var(--danger); }
.tag {
  display: inline-flex; align-items: center; height: 26px; padding: 0 10px;
  border-radius: var(--radius-pill); border: 1px solid var(--border); font-size: 12.5px; color: var(--text-2);
}
.tags { display: flex; flex-wrap: wrap; gap: 6px; }

/* ============ Avatar ============ */
.avatar {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0; object-fit: cover;
  background: var(--surface-2); display: grid; place-items: center; font-weight: 700; color: var(--text-2);
  border: 1px solid var(--border); overflow: hidden;
}
.avatar.sm { width: 32px; height: 32px; font-size: 13px; }
.avatar.lg { width: 84px; height: 84px; font-size: 30px; }
.avatar.square { border-radius: 12px; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }

/* ============ Stats ============ */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; }
.stat-label { font-size: 12.5px; color: var(--text-2); font-weight: 500; }
.stat-value { font-family: var(--font-display); font-size: 26px; font-weight: 700; letter-spacing: -.02em; margin-top: 2px; font-variant-numeric: tabular-nums; }
.stat-hint { font-size: 12px; color: var(--text-3); }

.meter { height: 6px; background: var(--surface-2); border-radius: 3px; overflow: hidden; }
.meter > span { display: block; height: 100%; background: var(--text); border-radius: 3px; }

.kv { display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; font-size: 14px; }
.kv dt { color: var(--text-2); }
.kv dd { text-align: right; font-weight: 600; }

/* ============ Forms ============ */
.form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label { font-size: 13px; font-weight: 600; color: var(--text-2); }
.field .hint { font-size: 12px; color: var(--text-3); }
.input, .select, .textarea {
  width: 100%; min-height: 44px; padding: 10px 14px; border-radius: 12px;
  border: 1px solid var(--border); background: var(--surface); outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--text); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 45%, transparent); }
.check { display: flex; align-items: center; gap: 10px; font-size: 14px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--text); }

.segmented { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented label {
  border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; cursor: pointer;
  background: var(--surface); transition: border-color .15s, background .15s;
}
.segmented label strong { display: block; font-size: 15px; }
.segmented label span { font-size: 12.5px; color: var(--text-2); }
.segmented input:checked + label { border-color: var(--text); box-shadow: inset 0 0 0 1px var(--text); background: var(--accent-soft); }

/* ============ Creator cards (explore) ============ */
.creator-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s;
}
.brand-card { transition: transform .15s, box-shadow .15s; }
.brand-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-pop); }
.creator-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-pop); }
.creator-cover { aspect-ratio: 4 / 3; background: var(--surface-2); position: relative; }
.creator-cover img { width: 100%; height: 100%; object-fit: cover; }
.creator-cover .avatar { position: absolute; left: 14px; bottom: -22px; border: 3px solid var(--surface); width: 48px; height: 48px; }
.creator-cover .score {
  /* 테마와 무관하게 어두운 반투명 바탕: 밝은 사진·다크 모드에서도 형광 숫자가 보이도록 */
  position: absolute; right: 10px; top: 10px; background: rgba(12, 12, 16, .78); color: var(--accent);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  border-radius: var(--radius-pill); padding: 3px 10px; font-family: var(--font-display); font-weight: 700; font-size: 13px;
}
.creator-card-body { padding: 30px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.creator-name { font-weight: 700; font-size: 16px; }
.creator-metrics { display: flex; flex-wrap: wrap; gap: 2px 12px; font-size: 13px; color: var(--text-2); }
.creator-metrics span { white-space: nowrap; }
.creator-metrics b { color: var(--text); font-family: var(--font-display); }
.creator-price { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; font-size: 13px; }

/* ============ Content grid ============ */
.content-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.content-item { position: relative; aspect-ratio: 4 / 5; background: var(--surface-2); border-radius: 10px; overflow: hidden; }
.content-item img { width: 100%; height: 100%; object-fit: cover; }
.content-item .overlay {
  position: absolute; inset: auto 0 0 0; padding: 22px 10px 8px; color: #fff; font-size: 12px; font-weight: 600;
  background: linear-gradient(transparent, rgba(0,0,0,.65)); display: flex; gap: 10px;
}
.content-item .feature {
  position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; border-radius: 50%; border: 0;
  background: rgba(0,0,0,.5); color: #fff; cursor: pointer; display: grid; place-items: center; font-size: 15px;
}
.content-item .feature.on { background: var(--accent); color: var(--accent-ink); }
.studio-content { min-width: 0; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.content-insights { display: grid; gap: 6px; padding: 10px; overflow-wrap: anywhere; }
.content-insights button { justify-self: start; }
.content-item .type { position: absolute; top: 8px; left: 8px; color: #fff; font-size: 11px; font-weight: 700; background: rgba(0,0,0,.45); padding: 2px 7px; border-radius: 6px; }

/* ============ Rate cards ============ */
.rate {
  border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 10px;
  background: var(--surface);
}
.rate-price { font-family: var(--font-display); font-size: 24px; font-weight: 700; letter-spacing: -.02em; }
.rate-terms { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12.5px; color: var(--text-2); }
.rate.inactive { opacity: .55; }

/* ============ Timeline ============ */
.timeline { display: flex; flex-direction: column; gap: 14px; padding: 4px 20px 16px; max-height: 520px; overflow-y: auto; }
.msg { display: flex; flex-direction: column; max-width: 82%; gap: 3px; }
.msg.mine { align-self: flex-end; align-items: flex-end; }
.msg-bubble { padding: 10px 14px; border-radius: 16px; background: var(--surface-2); white-space: pre-wrap; word-break: break-word; font-size: 14px; }
.msg.mine .msg-bubble { background: var(--text); color: var(--bg); }
.msg.offer .msg-bubble { border: 1.5px solid var(--text); background: var(--surface); color: var(--text); }
.msg-offer-amount { font-family: var(--font-display); font-size: 20px; font-weight: 700; display: block; }
.msg-meta { font-size: 11.5px; color: var(--text-3); }
.msg.system { align-self: center; max-width: 100%; text-align: center; }
.msg.system .msg-bubble { background: transparent; color: var(--text-2); font-size: 13px; padding: 2px 8px; }
.composer { display: flex; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--border); }
.composer .input { border-radius: var(--radius-pill); }

/* ============ Tasks / materials ============ */
.task-check {
  width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--border-strong); flex-shrink: 0;
  display: grid; place-items: center; font-size: 12px; font-weight: 800;
}
.task-check.on { background: var(--text); border-color: var(--text); color: var(--accent); }
.task-done .list-row-title { color: var(--text-2); }
.material-label { font-size: 12.5px; font-weight: 600; color: var(--text-2); margin-bottom: 8px; }
.material-box { white-space: pre-wrap; font-size: 14px; background: var(--surface-2); border-radius: 12px; padding: 12px 14px; }
.asset-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.asset { aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--surface-2); border: 1px solid var(--border); }
.asset img { width: 100%; height: 100%; object-fit: cover; transition: transform .2s; }
.asset:hover img { transform: scale(1.05); }

.views-row { display: flex; gap: 16px; align-items: center; }
.views-thumb { position: relative; width: 88px; aspect-ratio: 9 / 16; border-radius: 12px; overflow: hidden; flex-shrink: 0; background: var(--surface-2); }
.views-thumb img { width: 100%; height: 100%; object-fit: cover; }
.views-thumb .reel-badge { top: 6px; left: 6px; font-size: 10px; padding: 2px 6px; }
.views-big { font-size: 28px; font-weight: 700; letter-spacing: -.02em; }
.views-big .faint { font-size: 16px; font-weight: 500; }
.views-meter { height: 8px; }
.views-meter > span { background: var(--text-2); }
.views-meter.reached > span { background: var(--accent); }

/* ============ Steps (deal progress) ============ */
.steps { display: flex; gap: 6px; }
.steps span { flex: 1; height: 4px; border-radius: 2px; background: var(--surface-2); }
.steps span.done { background: var(--text); }
.steps span.now { background: var(--accent); }
.steps-labels { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; font-size: 11.5px; color: var(--text-3); margin-top: 6px; }

/* ============ Tabs / filters ============ */
.tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: var(--radius-pill); background: var(--surface-2); }
.tabs button { border: 0; background: transparent; padding: 6px 14px; border-radius: var(--radius-pill); font-weight: 600; font-size: 13.5px; color: var(--text-2); cursor: pointer; }
.tabs button.active { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.filters .input, .filters .select { width: auto; min-height: 40px; border-radius: var(--radius-pill); padding: 8px 16px; }
.filters .input { flex: 1; min-width: 200px; }

/* ============ Banner ============ */
.banner {
  display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: var(--radius-lg);
  background: var(--text); color: var(--bg);
}
.banner p { color: color-mix(in srgb, var(--bg) 70%, transparent); font-size: 13.5px; }
.banner .btn-accent { margin-left: auto; }

/* ============ Dialog ============ */
dialog.modal {
  border: 0; border-radius: var(--radius-lg); padding: 0; width: min(520px, calc(100vw - 32px));
  background: var(--surface); color: var(--text); box-shadow: var(--shadow-pop); margin: auto;
}
dialog.modal::backdrop { background: rgba(10, 10, 14, .45); backdrop-filter: blur(3px); }
.modal-head { padding: 22px 24px 0; }
.modal-title { font-size: 18px; font-weight: 700; }
.modal-desc { color: var(--text-2); font-size: 13.5px; margin-top: 4px; }
.modal-body { padding: 18px 24px; max-height: 65vh; overflow-y: auto; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 0 24px 22px; }

/* ============ Empty / skeleton ============ */
.empty { text-align: center; padding: 40px 20px; color: var(--text-2); }
.empty-title { font-weight: 650; color: var(--text); margin-bottom: 4px; }
.skeleton { background: linear-gradient(90deg, var(--surface-2), var(--border), var(--surface-2)); background-size: 200% 100%; animation: shimmer 1.2s infinite; border-radius: 8px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ============ Toast ============ */
.toasts { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; z-index: 1000; align-items: center; }
.toast { background: var(--text); color: var(--bg); padding: 11px 18px; border-radius: var(--radius-pill); font-size: 14px; font-weight: 500; box-shadow: var(--shadow-pop); animation: toast-in .2s ease; }
.toast.error { background: var(--danger); color: #fff; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

/* ============ Landing ============ */
.landing-width { max-width: var(--col); }
.landing {
  max-width: var(--col); margin: 0 auto; padding: 32px 20px 72px;
  display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; align-items: start;
}
.landing-main { display: flex; flex-direction: column; gap: 40px; min-width: 0; }
.landing-hero h1 { font-size: clamp(30px, 4vw, 44px); line-height: 1.12; letter-spacing: -.035em; font-weight: 800; margin: 16px 0 10px; }
.landing-hero h1 mark { background: var(--accent); color: var(--accent-ink); padding: 0 .12em; border-radius: .12em; }
.landing-hero p { font-size: 16px; }
.hero-eyebrow { display: inline-flex; gap: 8px; align-items: center; font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: var(--radius-pill); background: var(--surface); border: 1px solid var(--border); }
.hero-eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px transparent; } }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.section-head h2 { font-size: 20px; font-weight: 750; letter-spacing: -.02em; }
.landing-creators { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }

/* 릴스 스트립 */
.reel-strip {
  display: grid; grid-auto-flow: column; grid-auto-columns: 196px; gap: 12px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: thin;
}
.reel {
  position: relative; aspect-ratio: 9 / 16; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--surface-2); scroll-snap-align: start; isolation: isolate;
}
.reel > img, .reel > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
.reel::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(transparent 50%, rgba(0,0,0,.72)); }
.reel:hover > img, .reel:hover > video { transform: scale(1.04); transition: transform .4s; }
.kenburns { animation: kenburns 14s ease-in-out infinite alternate; }
@keyframes kenburns { from { transform: scale(1) translate(0, 0); } to { transform: scale(1.18) translate(-4%, -3%); } }
.reel-badge {
  position: absolute; top: 10px; left: 10px; display: inline-flex; align-items: center; gap: 3px;
  background: rgba(0,0,0,.5); color: #fff; font-size: 11.5px; font-weight: 700; padding: 3px 8px; border-radius: var(--radius-pill);
  backdrop-filter: blur(6px);
}
.reel-badge svg { width: 11px; height: 11px; }
.reel-info { position: absolute; left: 0; right: 0; bottom: 0; padding: 12px; color: #fff; }
.reel-info .avatar { border-color: rgba(255,255,255,.6); }
.reel-name { font-weight: 700; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.reel-meta { font-size: 11.5px; opacity: .85; }
.reel-caption { font-size: 12.5px; margin-top: 8px; opacity: .92; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* 우측 안내 */
.landing-aside { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 14px; }
.aside-stats { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; }
.aside-stats > div + div { border-left: 1px solid var(--border); }
.aside-stats .num { font-size: 24px; font-weight: 700; }
.aside-stats span { font-size: 12px; color: var(--text-2); }
.ig-steps { margin: 14px 0 0; padding: 12px 14px 12px 32px; border-radius: var(--radius); background: var(--surface-2); display: flex; flex-direction: column; gap: 4px; }
.aside-cta { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: var(--radius); background: var(--accent-soft); }
.landing-aside .task-check { font-size: 12px; }
.guide-tabs { display: grid; grid-template-columns: 1fr 1fr; }
.guide { display: flex; flex-direction: column; gap: 16px; }
.guide-lead { font-weight: 700; font-size: 16.5px; line-height: 1.45; letter-spacing: -.01em; }
.guide-steps { list-style: none; counter-reset: step; display: flex; flex-direction: column; gap: 14px; }
.guide-steps li { counter-increment: step; display: grid; grid-template-columns: 26px 1fr; column-gap: 12px; }
.guide-steps li::before {
  content: counter(step); grid-row: span 2; width: 26px; height: 26px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink); font-family: var(--font-display); font-weight: 700; font-size: 12.5px;
  display: grid; place-items: center;
}
.guide-steps b { font-size: 14px; }
.guide-steps span { font-size: 12.5px; color: var(--text-2); }
.footer { border-top: 1px solid var(--border); padding: 28px 20px; text-align: center; color: var(--text-3); font-size: 13px; }

.footer-links { display: flex; justify-content: center; gap: 18px; margin-bottom: 8px; }
.footer-links a { color: var(--text-2); }
.footer-links a:hover { color: var(--text); text-decoration: underline; }

/* ============ Legal ============ */
.legal { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 28px; font-size: 15px; line-height: 1.75; }
.legal-head h1 { font-size: 30px; font-weight: 800; letter-spacing: -.025em; line-height: 1.25; }
.legal h2 { font-size: 18px; font-weight: 750; letter-spacing: -.015em; margin-bottom: 10px; scroll-margin-top: 84px; }
.legal section { scroll-margin-top: 84px; }
.legal p + p, .legal p + ul, .legal ul + p, .legal .legal-table + p { margin-top: 10px; }
.legal ul, .legal ol { padding-left: 20px; display: flex; flex-direction: column; gap: 4px; }
.legal a { text-decoration: underline; text-underline-offset: 2px; }
.legal code { font-size: 13px; background: var(--surface-2); padding: 1px 6px; border-radius: 6px; }
.legal-toc { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 18px 22px; }
.legal-toc ol { columns: 2; column-gap: 28px; display: block; font-size: 14px; }
.legal-toc li { margin-bottom: 4px; break-inside: avoid; }
.legal-toc a { text-decoration: none; color: var(--text-2); }
.legal-toc a:hover { color: var(--text); text-decoration: underline; }
.legal-table { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.legal-table table { width: 100%; border-collapse: collapse; font-size: 13.5px; line-height: 1.55; }
.legal-table th, .legal-table td { text-align: left; padding: 10px 14px; border-top: 1px solid var(--border); vertical-align: top; }
.legal-table thead th { border-top: 0; background: var(--surface-2); font-weight: 650; white-space: nowrap; }
.legal-table td:first-child { font-weight: 600; white-space: nowrap; }
.legal-steps li::marker { font-weight: 700; }
.legal-kv { max-width: 520px; }
.legal-kv dd { text-align: left; }
.legal-callout { border: 1.5px solid var(--border-strong); border-radius: var(--radius-lg); padding: 18px 22px; background: var(--surface); }
.legal-callout.ok { border-color: var(--ok); background: var(--ok-soft); }
.legal-lookup { display: flex; gap: 8px; max-width: 520px; }

/* ============ 조회수 구간 ============ */
.tier-editor { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.tier-row { display: grid; grid-template-columns: 1fr auto 1fr auto; gap: 8px; align-items: center; width: 100%; }
.tier-ladder { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }
.tier-step { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; border-radius: 10px; background: var(--surface-2); font-size: 13.5px; }
.tier-step.reached { background: var(--accent-soft); color: var(--accent-text); font-weight: 650; }
.tier-step.current { box-shadow: 0 0 0 2px var(--accent); }

/* ============ 계약서 ============ */
.contract-modal { width: min(720px, calc(100vw - 24px)); }
.contract-body { white-space: pre-wrap; font-size: 13.5px; line-height: 1.7; max-height: 44vh; overflow-y: auto; padding: 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); }
.sign-pad { width: 100%; height: 160px; border: 1.5px dashed var(--border-strong); border-radius: 12px; background: #fff; touch-action: none; cursor: crosshair; }
.contract-signs { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.sign-img { width: 100%; max-width: 240px; border: 1px solid var(--border); border-radius: 8px; background: #fff; margin: 6px 0; }
.sign-stamp { display: inline-block; margin: 8px 0; padding: 6px 14px; border: 2px solid #d83a2e; color: #d83a2e; border-radius: 8px; font-weight: 800; transform: rotate(-6deg); }

/* ============ 상단 알림 ============ */
.notif { position: relative; }
.icon-btn {
  position: relative; width: 38px; height: 38px; border-radius: 50%; border: 0; background: transparent;
  color: var(--text-2); display: grid; place-items: center; cursor: pointer;
}
.icon-btn:hover, .icon-btn[aria-expanded="true"] { background: var(--surface-2); color: var(--text); }
.icon-btn svg { width: 20px; height: 20px; }
.notif-badge {
  position: absolute; top: 1px; right: -3px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px;
  background: #ff4d2e; color: #fff; font-size: 10px; font-weight: 700; line-height: 1; display: grid; place-items: center;
  box-shadow: 0 0 0 2px var(--bg);  /* 종 아이콘과 겹치는 부분을 배경색 테두리로 분리 */
}
.notif-badge[hidden] { display: none; }
.notif-panel {
  position: absolute; right: 0; top: 46px; width: 360px; max-width: calc(100vw - 24px); z-index: 50;
  box-shadow: var(--shadow-pop); overflow: hidden;
}
.notif-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.notif-panel .list { max-height: 380px; overflow-y: auto; }
.notif-item.unread { background: var(--accent-soft); }
.notif-item .list-row-meta { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.notif-kind { width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; background: var(--surface-2); color: var(--text-2); }
.notif-kind svg { width: 17px; height: 17px; }
.notif-kind.message { background: var(--accent-soft); color: var(--accent-text); }
.notif-item.unread .notif-kind { background: var(--surface); }
.notif-foot { display: block; padding: 11px 16px; border-top: 1px solid var(--border); font-size: 13.5px; font-weight: 600; text-align: center; }
.notif-foot:hover { background: var(--surface-2); }
.tab-count { margin-left: 6px; min-width: 18px; padding: 0 5px; border-radius: 9px; background: #ff4d2e; color: #fff; font-size: 11px; font-weight: 700; display: inline-block; text-align: center; line-height: 18px; }
.tab-count[hidden] { display: none; }

/* ============ 보기 전환 ============ */
.toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.toolbar .filters { margin-bottom: 0; flex: 1; }
.view-switch { display: inline-flex; gap: 2px; padding: 3px; border-radius: var(--radius-pill); background: var(--surface-2); flex-shrink: 0; }
.view-switch button { width: 36px; height: 34px; border: 0; border-radius: var(--radius-pill); background: transparent; color: var(--text-2); display: grid; place-items: center; cursor: pointer; }
.view-switch button svg { width: 17px; height: 17px; }
.view-switch button.active { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.result-list { display: flex; flex-direction: column; }
.result-list .list-row { gap: 14px; }
.result-list .avatar { width: 52px; height: 52px; }
.row-metrics { display: flex; gap: 18px; font-size: 13px; color: var(--text-2); flex-wrap: wrap; }
.row-metrics b { color: var(--text); }

/* ============ 브랜드 카드 (크게) ============ */
.brand-grid { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.brand-card { overflow: hidden; display: flex; flex-direction: column; }
.brand-hero { position: relative; height: 112px; }
.brand-hero-bg { position: absolute; inset: 0; background: var(--surface-2); overflow: hidden; }
.brand-hero-bg img { width: 100%; height: 100%; object-fit: cover; filter: blur(18px) saturate(1.2); transform: scale(1.3); opacity: .7; }
.brand-hero .avatar { position: absolute; left: 20px; bottom: -32px; width: 72px; height: 72px; border: 4px solid var(--surface); font-size: 26px; filter: none; }
.brand-card .card-body { padding: 44px 20px 20px; gap: 12px; flex: 1; }
.brand-card .brand-name { font-weight: 750; font-size: 18px; }
.brand-card .brand-desc { font-size: 14px; color: var(--text-2); line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; min-height: 4.6em; }
.brand-stats { display: flex; gap: 18px; font-size: 13px; color: var(--text-2); }
.brand-stats b { color: var(--text); font-size: 15px; }

/* ============ 콘텐츠 찾기 ============ */
.content-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.content-card { display: flex; flex-direction: column; gap: 10px; }
.content-thumb { position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: var(--surface-2); display: block; }
.content-thumb img, .content-thumb video { width: 100%; height: 100%; object-fit: cover; display: block; }
.content-thumb .reel-badge { position: absolute; top: 10px; left: 10px; }
.content-thumb .content-stats {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 12px 10px; color: #fff; font-size: 12.5px; font-weight: 600;
  background: linear-gradient(transparent, rgba(0,0,0,.65)); display: flex; gap: 10px;
}
.content-meta { display: flex; align-items: center; gap: 8px; min-width: 0; }
.content-meta .small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.content-caption { font-size: 13px; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.content-list .content-thumb { width: 88px; aspect-ratio: 1; border-radius: 12px; flex-shrink: 0; }

/* ============ 메시지 ============ */
.messenger { display: grid; grid-template-columns: 300px minmax(0, 1fr); height: min(660px, calc(100vh - 290px)); min-height: 440px; overflow: hidden; }
.conv-list { border-right: 1px solid var(--border); overflow-y: auto; }
.conv-item { display: flex; gap: 12px; align-items: center; padding: 14px 16px; cursor: pointer; border-bottom: 1px solid var(--border); }
.conv-item:hover { background: var(--surface-2); }
.conv-item.active { background: var(--accent-soft); }
.conv-item .conv-body { flex: 1; min-width: 0; }
.conv-item .conv-last { font-size: 13px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conv-unread { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: #ff4d2e; color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.thread { display: flex; flex-direction: column; min-width: 0; }
.thread-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.thread-head #back { display: none; }
.thread-body { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.bubble { max-width: 72%; padding: 10px 14px; border-radius: 16px; background: var(--surface-2); font-size: 14.5px; line-height: 1.5; white-space: pre-wrap; word-break: break-word; align-self: flex-start; }
.bubble.mine { align-self: flex-end; background: var(--accent); color: var(--accent-ink); }
.bubble-time { font-size: 11px; color: var(--text-3, var(--text-2)); align-self: flex-start; margin: -4px 4px 4px; }
.bubble-time.mine { align-self: flex-end; }
.thread-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--border); }
.thread-form textarea { flex: 1; resize: none; min-height: 44px; max-height: 140px; }
.thread-empty { flex: 1; display: grid; place-items: center; color: var(--text-2); padding: 24px; text-align: center; }

/* ============ 딜 보드 ============ */
.deal-board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(180px, 1fr); gap: 14px; overflow-x: auto; padding-bottom: 6px; }
.board-col { background: var(--surface-2); border-radius: var(--radius); padding: 12px; display: flex; flex-direction: column; gap: 10px; min-height: 160px; }
.board-col-head { display: flex; align-items: center; justify-content: space-between; font-weight: 700; font-size: 14px; padding: 2px 4px; }
.board-col-head .count { font-size: 12px; color: var(--text-2); font-weight: 600; }
.board-card { background: var(--surface); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 8px; box-shadow: var(--shadow); border: 1px solid var(--border); }
.board-card:hover { border-color: var(--border-strong); }
.board-card .title { font-weight: 650; font-size: 14px; line-height: 1.35; }
.board-card .spread { flex-wrap: wrap; gap: 6px; }
.board-card.mine-turn { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.board-empty { font-size: 12.5px; color: var(--text-2); text-align: center; padding: 18px 0; }

@media (max-width: 860px) {
  .messenger { grid-template-columns: minmax(0, 1fr); height: auto; }
  .messenger.has-thread .conv-list { display: none; }
  .thread-head #back { display: inline-flex; }
  .messenger:not(.has-thread) .thread { display: none; }
  .thread-body { min-height: 50vh; }
}

@media (max-width: 640px) {
  .legal-toc ol { columns: 1; }
  .legal-head h1 { font-size: 24px; }
  .legal-lookup { flex-direction: column; }
  .legal-table th, .legal-table td, .legal-table td:first-child { white-space: normal; padding: 9px 10px; }
}

.danger-zone { border-color: color-mix(in srgb, var(--danger) 35%, var(--border)); }

/* 카카오 로그인 버튼 (카카오 디자인 가이드: #FEE500 배경, 85% 검정 텍스트) */
.btn-kakao { background: #fee500; border-color: #fee500; color: rgba(0, 0, 0, .85); }
.btn-kakao:hover { background: #fee500; border-color: #fee500; filter: brightness(.97); }
.btn-kakao svg { width: 20px; height: 20px; color: #000; }
.kakao-tag { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 600; background: #fee500; color: rgba(0,0,0,.85); padding: 1px 8px; border-radius: var(--radius-pill); }
.divider { display: flex; align-items: center; gap: 12px; color: var(--text-3); font-size: 12.5px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }

.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 32px 16px; }
.auth-card { width: min(440px, 100%); }

/* ============ Responsive ============ */
@media (max-width: 860px) {
  .grid-2, .landing { grid-template-columns: minmax(0, 1fr); }
  .landing-aside { position: static; }
  .landing--me .landing-aside { order: -1; }  /* 로그인 홈: 모바일에선 내 현황을 먼저 */
}
@media (max-width: 640px) {
  .header-inner { gap: 12px; padding: 0 16px; }
  .logo img { height: 18px; }
  .my-link-label { display: none; }
  .my-link { padding: 0; }
  .nav a { padding: 8px 9px; font-size: 13.5px; }
  .hide-sm { display: none; }
  /* 모바일: 1줄 로고·알림·마이페이지, 2줄 메뉴 */
  .header-inner { flex-wrap: wrap; height: auto; row-gap: 0; padding: 10px 16px 0; }
  .header-user { margin-left: auto; }
  .nav { order: 3; flex-basis: 100%; margin: 4px -6px 0; padding-bottom: 6px; }
  .content-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .content-caption { -webkit-line-clamp: 1; }
  .main { padding: 20px 16px 80px; }
  .page-title { font-size: 22px; }
  .page-actions { flex-basis: 100%; }
  .form-row { grid-template-columns: 1fr; }
  .landing { padding: 24px 16px 56px; }
  .reel-strip { grid-auto-columns: 158px; }
  .landing-creators { grid-template-columns: 1fr 1fr; gap: 10px; }
  .list-row { padding: 12px 16px; }
  .list-row-actions .num { display: none; }
  .card-head { padding: 16px 16px 0; }
  .card-body { padding: 14px 16px 16px; }
  .state-line { margin: 4px 16px 8px; }
  .timeline { padding: 4px 16px 16px; }
  .segmented { grid-auto-flow: row; }
  .banner { flex-wrap: wrap; }
  .banner .btn-accent { margin-left: 0; }
}
.field[hidden] { display: none; }
.draft { display: flex; flex-direction: column; gap: 8px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.draft:last-child { border-bottom: 0; padding-bottom: 0; }
.draft-media { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.draft-media img, .draft-media video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 10px; background: var(--surface-2); display: block; }
.draft-feedback { padding: 8px 12px; border-radius: 10px; background: var(--surface-2); }
.project-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.project-card { overflow: hidden; transition: transform .15s, box-shadow .15s; }
.project-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-pop); }
.project-cover { position: relative; aspect-ratio: 16 / 10; background: var(--surface-2); }
.project-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.project-cover-tags { position: absolute; top: 10px; left: 10px; }
.project-title { font-weight: 700; font-size: 16.5px; line-height: 1.35; }
.applicant { display: flex; gap: 12px; align-items: flex-start; padding: 14px 0; border-top: 1px solid var(--border); }
.applicant:first-child { border-top: 0; padding-top: 0; }
.applicant-body { flex: 1; min-width: 0; }
.asset-wrap { position: relative; } .asset-wrap .asset { display: block; }
button.my-link { border: 0; background: transparent; cursor: pointer; font-family: inherit; }
button.my-link[aria-expanded="true"] { color: var(--text); background: var(--surface-2); }
.my-menu { position: relative; }
.my-menu-panel {
  position: absolute; right: 0; top: calc(100% + 8px); width: 240px; z-index: 50; padding: 6px;
  display: flex; flex-direction: column; box-shadow: var(--shadow-pop);
}
.my-menu-panel[hidden] { display: none; }
.my-menu-head { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px 12px; border-bottom: 1px solid var(--border); margin-bottom: 4px; }
.my-menu-head .small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.my-menu-panel a, .my-menu-logout {
  display: block; width: 100%; text-align: left; padding: 9px 12px; border-radius: 10px; font-size: 14px;
  color: var(--text-2); background: transparent; border: 0; font-family: inherit; cursor: pointer;
}
.my-menu-panel a:hover, .my-menu-logout:hover { background: var(--surface-2); color: var(--text); }
.my-menu-logout { margin-top: 4px; border-top: 1px solid var(--border); border-radius: 0 0 10px 10px; color: #ff6b4a; }
.admin-table { overflow-x: auto; }
.admin-table table { width: 100%; border-collapse: collapse; font-size: 13px; line-height: 1.5; }
.admin-table th, .admin-table td { text-align: left; padding: 10px 12px; border-top: 1px solid var(--border); vertical-align: top; white-space: nowrap; }
.admin-table thead th { border-top: 0; background: var(--surface-2); font-weight: 650; color: var(--text-2); font-size: 12.5px; }
.admin-table td.num { text-align: right; font-variant-numeric: tabular-nums; }
.admin-table a { text-decoration: underline; text-underline-offset: 2px; }
.admin-main { max-width: 1440px; }
.admin-filters { flex-wrap: wrap; align-items: center; gap: 8px; }
.admin-filters .input[type="search"] { min-width: 220px; flex: 1; }
.admin-filters .input[type="date"] { width: auto; }
.admin-filters .input[type="number"] { width: 170px; }
.admin-checks { gap: 14px; flex-wrap: wrap; width: 100%; }
.admin-table tr.selected td { background: var(--accent-soft); }
.stat-link { cursor: pointer; transition: border-color .15s; }
.stat-link:hover { border-color: var(--border-strong); }
.warn-text { color: #ff6b4a; font-size: 12px; }
.pager { display: flex; justify-content: center; align-items: center; gap: 4px; flex-wrap: wrap; }
.admin-main .stats { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.admin-main .stat-value { font-size: clamp(18px, 1.6vw, 22px); overflow-wrap: anywhere; }
.admin-table th, .admin-table td { padding: 10px 10px; }
.admin-table td:last-child, .admin-table th:last-child { position: sticky; right: 0; background: var(--surface); }
.admin-table thead th:last-child { background: var(--surface-2); }
.admin-table tr.selected td:last-child { background: var(--accent-soft); }
.dash-grid { display: grid; grid-template-columns: 1.1fr 1fr 1.2fr; gap: 16px; }
@media (max-width: 1000px) { .dash-grid { grid-template-columns: 1fr; } }
.hero-num { font-family: var(--font-display); font-size: 32px; font-weight: 700; letter-spacing: -.02em; margin: 2px 0 4px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 1000px) { .grid-3 { grid-template-columns: 1fr; } }
.admin-table tr.clickable { cursor: pointer; }
.admin-table tr.clickable:hover td { background: var(--surface-2); }
.admin-table.compact td, .admin-table.compact th { padding: 8px 10px; }
.rank { width: 22px; color: var(--text-3); font-weight: 650; }
.trend { width: 100%; height: auto; display: block; --bar: #5a7d00; }
.trend .grid { stroke: var(--border); stroke-width: 1; }
.trend .axis { fill: var(--text-3); font-size: 11px; }
.trend .value { fill: var(--text-2); font-size: 11px; font-weight: 650; }
.trend .bar path { fill: var(--bar); }
.trend .bar.current path { opacity: .45; }
.trend .bar { cursor: pointer; }
.trend .bar:hover path { opacity: .85; }
.chart-tip { position: fixed; z-index: 80; pointer-events: none; background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; padding: 10px 12px; font-size: 12.5px; line-height: 1.6; box-shadow: var(--shadow-pop); color: var(--text-2); max-width: 280px; }
.chart-tip b { color: var(--text); }
@media (prefers-color-scheme: dark) { .trend { --bar: #76a206; } }
.dash-grid { align-items: start; }
