/* ============================================================
   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: 1040px;
  --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%; }
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; }

/* ============ 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: var(--text); color: var(--accent);
  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); }
.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: 1240px; }
.landing {
  max-width: 1240px; margin: 0 auto; padding: 36px 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); }
.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; }
@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)); }

.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: 1fr; }
  .landing-aside { position: static; }
}
@media (max-width: 640px) {
  .header-inner { gap: 12px; padding: 0 16px; }
  .logo img { height: 18px; }
  .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; }
}
