:root {
  --bg: #f5f4f1;
  --surface: #ffffff;
  --surface-2: #faf9f7;
  --ink: #17171b;
  --ink-2: #3c3c44;
  --muted: #74737c;
  --line: #e6e3de;
  --line-2: #efede9;
  --accent: #e8322b;
  --accent-ink: #b8231d;
  --accent-soft: #fdecea;
  --good: #16884a;
  --good-soft: #e5f5ec;
  --warn: #b26a00;
  --warn-soft: #fff3df;
  --cool: #2f5bd3;
  --cool-soft: #e9effd;
  --side: #121215;
  --side-2: #1c1c21;
  --side-ink: #c9c8cf;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(20, 20, 30, .04), 0 4px 16px rgba(20, 20, 30, .05);
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  font-size: 14.5px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.005em;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
.num { font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- layout */
.shell { display: grid; grid-template-columns: 244px 1fr; min-height: 100vh; }
.side {
  background: var(--side);
  color: var(--side-ink);
  padding: 22px 14px 18px;
  display: flex; flex-direction: column; gap: 22px;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 0 8px; color: #fff; font-weight: 700; font-size: 16px; letter-spacing: -0.02em; }
.brand-mark { width: 28px; height: 28px; border-radius: 8px; background: var(--accent); display: grid; place-items: center; }
.brand-mark svg { width: 12px; height: 12px; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: 9px; color: var(--side-ink); font-weight: 500;
}
.nav a:hover { background: var(--side-2); color: #fff; }
.nav a.on { background: #26262c; color: #fff; }
.nav a svg { width: 17px; height: 17px; opacity: .85; flex: none; }
.side-label { font-size: 11.5px; font-weight: 600; color: #7d7c86; text-transform: uppercase; letter-spacing: .06em; padding: 0 10px; margin-bottom: 6px; display: flex; justify-content: space-between; align-items: center; }
.side-label button { background: none; border: 0; color: #9b9aa4; cursor: pointer; font-size: 18px; line-height: 1; padding: 0 2px; }
.side-label button:hover { color: #fff; }
.side-ch { display: flex; align-items: center; gap: 9px; padding: 7px 10px; border-radius: 9px; font-size: 13.5px; }
.side-ch:hover { background: var(--side-2); color: #fff; }
.side-ch.on { background: #26262c; color: #fff; }
.side-ch img, .side-ch .ph { width: 22px; height: 22px; border-radius: 50%; flex: none; background: #333; }
.side-ch span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-foot { margin-top: auto; padding: 12px 10px 0; border-top: 1px solid #26262c; font-size: 12px; color: #8f8e98; }
.meter { height: 5px; background: #2a2a31; border-radius: 9px; overflow: hidden; margin: 6px 0 4px; }
.meter i { display: block; height: 100%; background: #6dd39a; border-radius: 9px; }
.meter.hi i { background: #f3a43b; }
.meter.max i { background: var(--accent); }
.side-foot button { background: none; border: 0; color: #8f8e98; cursor: pointer; padding: 0; margin-top: 10px; font-size: 12px; }
.side-foot button:hover { color: #fff; }

.main { min-width: 0; padding: 28px 36px 80px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head h1 { font-size: 25px; letter-spacing: -0.03em; margin: 0; font-weight: 750; }
.page-head .sub { color: var(--muted); margin-top: 3px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.crumb { color: var(--muted); font-size: 13px; margin-bottom: 6px; }
.crumb a:hover { color: var(--ink); }

/* ---------------------------------------------------------------- basics */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-pad { padding: 20px 22px; }
.card h2, .section-title { font-size: 15.5px; margin: 0 0 12px; letter-spacing: -0.02em; font-weight: 700; }
.section { margin-top: 26px; }
.section-title { display: flex; justify-content: space-between; align-items: center; }
.section-title small { font-weight: 500; color: var(--muted); font-size: 13px; }
.grid { display: grid; gap: 14px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.empty { text-align: center; padding: 42px 20px; color: var(--muted); }
.empty b { display: block; color: var(--ink); font-size: 15.5px; margin-bottom: 4px; }
.row { display: flex; gap: 10px; align-items: center; }
.spacer { flex: 1; }
hr.sep { border: 0; border-top: 1px solid var(--line-2); margin: 16px 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 36px; padding: 0 14px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--surface); cursor: pointer;
  font-weight: 600; font-size: 13.5px; white-space: nowrap;
  transition: background .12s, border-color .12s, transform .05s;
}
.btn:hover { background: var(--surface-2); border-color: #d6d2cb; }
.btn:active { transform: translateY(1px); }
.btn svg { width: 15px; height: 15px; }
.btn.primary { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.primary:hover { background: #2b2b31; }
.btn.red { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.red:hover { background: var(--accent-ink); }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.ghost:hover { background: rgba(0,0,0,.04); }
.btn.sm { height: 30px; padding: 0 10px; font-size: 12.5px; border-radius: 8px; }
.btn.danger { color: var(--accent-ink); }
.btn[disabled] { opacity: .5; pointer-events: none; }

.pill { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 99px; font-size: 12px; font-weight: 650; background: var(--line-2); color: var(--ink-2); white-space: nowrap; }
.pill.hot { background: var(--accent-soft); color: var(--accent-ink); }
.pill.good { background: var(--good-soft); color: var(--good); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.cool { background: var(--cool-soft); color: var(--cool); }
.pill.dim { background: #f1f0ed; color: #8a8992; }

/* ---------------------------------------------------------------- forms */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-weight: 600; font-size: 13px; }
.field .hint { font-size: 12.5px; color: var(--muted); }
.input, .select, .textarea {
  width: 100%; border: 1px solid var(--line); background: #fff; border-radius: 10px;
  padding: 9px 12px; outline: none; transition: border-color .12s, box-shadow .12s;
}
.input:focus, .select:focus, .textarea:focus { border-color: #9a978f; box-shadow: 0 0 0 3px rgba(23, 23, 27, .07); }
.textarea { min-height: 96px; resize: vertical; line-height: 1.55; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 7l5 5 5-5' stroke='%2374737c' stroke-width='1.7' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; background-size: 15px; padding-right: 32px; }
.inline-fields { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.seg { display: inline-flex; background: #ecebe7; border-radius: 10px; padding: 3px; gap: 2px; }
.seg button { border: 0; background: transparent; padding: 6px 12px; border-radius: 8px; cursor: pointer; font-weight: 600; font-size: 13px; color: var(--muted); }
.seg button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.08); }

/* ---------------------------------------------------------------- auth */
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.auth { width: 100%; max-width: 440px; }
.auth .brand { color: var(--ink); justify-content: center; margin-bottom: 18px; font-size: 18px; }
.auth h1 { font-size: 21px; margin: 0 0 4px; letter-spacing: -0.03em; }
.auth .card { padding: 26px; }
.auth p.lead { color: var(--muted); margin: 0 0 18px; }
.alert { padding: 10px 13px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-ink); font-size: 13.5px; margin-bottom: 14px; }
.alert.info { background: var(--cool-soft); color: var(--cool); }
.alert.ok { background: var(--good-soft); color: var(--good); }

/* ---------------------------------------------------------------- stats */
.stat { padding: 16px 18px; }
.stat .k { color: var(--muted); font-size: 12.5px; font-weight: 600; }
.stat .v { font-size: 23px; font-weight: 750; letter-spacing: -0.03em; margin-top: 2px; }
.stat .d { font-size: 12.5px; color: var(--muted); }

/* channel cards */
.ch-card { padding: 18px; display: flex; flex-direction: column; gap: 14px; transition: border-color .12s, transform .12s; }
.ch-card:hover { border-color: #cfcac2; transform: translateY(-1px); }
.ch-top { display: flex; gap: 12px; align-items: center; }
.ch-top img, .ch-top .ph { width: 46px; height: 46px; border-radius: 50%; background: #ddd; flex: none; }
.ch-top .t { font-weight: 700; font-size: 15.5px; letter-spacing: -0.02em; line-height: 1.3; }
.ch-top .s { color: var(--muted); font-size: 12.5px; }
.ch-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ch-metrics div { background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 10px; padding: 8px 10px; }
.ch-metrics b { display: block; font-size: 15px; letter-spacing: -0.02em; }
.ch-metrics span { font-size: 11.5px; color: var(--muted); }
.ch-best { display: flex; gap: 10px; align-items: center; font-size: 12.5px; }
.ch-best img { width: 64px; aspect-ratio: 16/9; object-fit: cover; border-radius: 6px; flex: none; }
.ch-best div { min-width: 0; }
.ch-best .tt { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.add-card { border: 1.5px dashed #d3cfc8; background: transparent; box-shadow: none; display: grid; place-items: center; min-height: 190px; cursor: pointer; color: var(--muted); font-weight: 600; }
.add-card:hover { border-color: var(--ink); color: var(--ink); }

/* list rows */
.list { display: flex; flex-direction: column; }
.list a, .list .li { display: flex; gap: 12px; align-items: center; padding: 11px 4px; border-bottom: 1px solid var(--line-2); }
.list a:last-child, .list .li:last-child { border-bottom: 0; }
.list a:hover .tt { text-decoration: underline; text-underline-offset: 3px; }
.list .tt { font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list .meta { color: var(--muted); font-size: 12.5px; white-space: nowrap; }
.list .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; }

/* ---------------------------------------------------------------- table */
.table-wrap { overflow-x: auto; }
table.vt { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.vt th {
  text-align: right; font-weight: 600; color: var(--muted); font-size: 12px; padding: 10px 10px;
  border-bottom: 1px solid var(--line); white-space: nowrap; cursor: pointer; user-select: none; background: var(--surface);
  position: sticky; top: 0;
}
table.vt th:first-child, table.vt td:first-child { text-align: left; }
table.vt th.on { color: var(--ink); }
table.vt td { padding: 9px 10px; border-bottom: 1px solid var(--line-2); text-align: right; white-space: nowrap; }
table.vt tr:hover td { background: #fbfaf8; }
table.vt tr { cursor: pointer; }
.vcell { display: flex; gap: 11px; align-items: center; min-width: 320px; max-width: 520px; }
.vcell img { width: 96px; aspect-ratio: 16/9; object-fit: cover; border-radius: 7px; flex: none; background: #eee; }
.vcell .tt { font-weight: 600; white-space: normal; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vcell .meta { font-size: 12px; color: var(--muted); }

/* ---------------------------------------------------------------- chart */
.chart { width: 100%; height: 230px; }
.chart text { font-size: 11px; fill: var(--muted); font-family: var(--font); }
.chart .dot { cursor: pointer; transition: r .1s; }
.chart .dot:hover { r: 7; }
.legend { display: flex; gap: 14px; font-size: 12px; color: var(--muted); }
.legend i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 5px; vertical-align: -1px; }
.bars { display: flex; gap: 6px; align-items: flex-end; height: 90px; }
.bars div { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; justify-content: flex-end; }
.bars i { display: block; width: 100%; max-width: 34px; background: #d9d5ce; border-radius: 6px 6px 3px 3px; min-height: 3px; }
.bars i.best { background: var(--accent); }
.bars span { font-size: 11.5px; color: var(--muted); }
.bars b { font-size: 11px; font-weight: 650; }

/* ---------------------------------------------------------------- trends */
.trend-layout { display: grid; grid-template-columns: 300px 1fr; gap: 18px; align-items: start; }
.trend-form { position: sticky; top: 20px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1px solid var(--line); background: #fff; border-radius: 99px; padding: 4px 10px; font-size: 12.5px; cursor: pointer; font-weight: 550; }
.chip:hover { border-color: var(--ink); }
.vgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 14px; }
.vcard { overflow: hidden; display: flex; flex-direction: column; }
.vcard .thumb { position: relative; aspect-ratio: 16/9; background: #e9e7e3; cursor: pointer; }
.vcard .thumb img { width: 100%; height: 100%; object-fit: cover; }
.vcard .thumb .dur { position: absolute; right: 7px; bottom: 7px; background: rgba(0,0,0,.78); color: #fff; font-size: 11.5px; font-weight: 600; padding: 1px 6px; border-radius: 5px; }
.vcard .thumb .x { position: absolute; left: 8px; top: 8px; }
.vcard .body { padding: 12px 14px 12px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.vcard .tt { font-weight: 650; line-height: 1.38; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; cursor: pointer; }
.vcard .ch { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--muted); }
.vcard .ch img { width: 18px; height: 18px; border-radius: 50%; }
.vcard .stats { display: flex; gap: 10px; font-size: 12.5px; color: var(--ink-2); flex-wrap: wrap; }
.vcard .stats b { font-weight: 700; }
.vcard .ops { display: flex; gap: 6px; margin-top: auto; padding-top: 4px; }
.vcard .ops .btn { flex: 1; }
.bm-on { color: var(--accent) !important; }

/* ---------------------------------------------------------------- report (markdown) */
.md { font-size: 15px; line-height: 1.75; color: var(--ink-2); max-width: 820px; }
.md h1 { font-size: 22px; color: var(--ink); letter-spacing: -0.03em; margin: 0 0 14px; line-height: 1.35; }
.md h2 { font-size: 17.5px; color: var(--ink); letter-spacing: -0.02em; margin: 30px 0 10px; padding-top: 18px; border-top: 1px solid var(--line-2); }
.md h3 { font-size: 15.5px; color: var(--ink); margin: 20px 0 6px; }
.md p { margin: 0 0 12px; }
.md ul, .md ol { margin: 0 0 14px; padding-left: 22px; }
.md li { margin: 3px 0; }
.md strong { color: var(--ink); }
.md code { background: #f1efeb; padding: 1px 6px; border-radius: 5px; font-size: 13.5px; }
.md blockquote { margin: 0 0 14px; padding: 8px 14px; border-left: 3px solid var(--accent); background: var(--surface-2); border-radius: 0 8px 8px 0; }
.md table { border-collapse: collapse; margin: 8px 0 16px; font-size: 14px; width: 100%; }
.md th, .md td { border: 1px solid var(--line); padding: 6px 10px; text-align: left; vertical-align: top; }
.md th { background: var(--surface-2); color: var(--ink); }
.md hr { border: 0; border-top: 1px solid var(--line); margin: 22px 0; }

/* ---------------------------------------------------------------- idea */
.idea-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
.titles li { padding: 8px 0; border-bottom: 1px solid var(--line-2); display: flex; gap: 10px; align-items: flex-start; }
.titles li:last-child { border-bottom: 0; }
.titles { list-style: none; margin: 0; padding: 0; }
.titles .n { width: 22px; height: 22px; border-radius: 50%; background: var(--line-2); display: grid; place-items: center; font-size: 12px; font-weight: 700; flex: none; margin-top: 1px; }
.titles .t { flex: 1; font-weight: 650; font-size: 15px; letter-spacing: -0.01em; }
.thumb-ideas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.tidea { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; display: flex; flex-direction: column; }
.tidea .mock { aspect-ratio: 16/9; background: linear-gradient(135deg, #1c1c22, #3a2020); color: #fff; display: grid; place-items: center; text-align: center; padding: 14px; }
.tidea .mock span { font-weight: 800; font-size: 21px; line-height: 1.18; letter-spacing: -0.03em; white-space: pre-line; color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,.45); }
.tidea:nth-child(2) .mock { background: linear-gradient(135deg, #fbd400, #ff7a00); }
.tidea:nth-child(2) .mock span { color: #111; text-shadow: none; }
.tidea:nth-child(3) .mock { background: linear-gradient(135deg, #e8322b, #6d0f0c); }
.tidea .in { padding: 12px 14px; font-size: 13px; display: flex; flex-direction: column; gap: 6px; }
.tidea .in b { font-size: 12px; color: var(--muted); font-weight: 600; display: block; }
.prompt-box { background: #f6f5f2; border: 1px solid var(--line-2); border-radius: 8px; padding: 8px 10px; font-size: 12px; color: var(--ink-2); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; line-height: 1.5; position: relative; }
.script { white-space: pre-wrap; font-size: 15px; line-height: 1.8; }
.script-edit { width: 100%; min-height: 520px; border: 1px solid var(--line); border-radius: 10px; padding: 14px; line-height: 1.75; font-size: 14.5px; }
.status-steps { display: flex; gap: 4px; flex-wrap: wrap; }
.status-steps button { border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 5px 10px; font-size: 12.5px; font-weight: 600; cursor: pointer; color: var(--muted); }
.status-steps button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.copyable { cursor: pointer; }
.copyable:hover { background: #fbfaf8; }
.tags { display: flex; flex-wrap: wrap; gap: 5px; }
.tags span { background: var(--line-2); border-radius: 6px; padding: 2px 8px; font-size: 12.5px; }
.kanban { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.kcol { background: #eeece8; border-radius: 12px; padding: 10px; min-height: 120px; }
.kcol h3 { font-size: 12.5px; margin: 2px 4px 10px; color: var(--ink-2); display: flex; justify-content: space-between; }
.kitem { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 11px; margin-bottom: 8px; display: block; font-size: 13px; box-shadow: 0 1px 1px rgba(0,0,0,.03); }
.kitem:hover { border-color: #c9c4bb; }
.kitem .tt { font-weight: 650; line-height: 1.38; margin-bottom: 4px; }
.kitem .meta { font-size: 11.5px; color: var(--muted); }

/* ---------------------------------------------------------------- modal / toast / job */
.modal-bg { position: fixed; inset: 0; background: rgba(18, 18, 22, .45); display: grid; place-items: center; z-index: 50; padding: 20px; animation: fade .12s; }
.modal { width: 100%; max-width: 560px; max-height: calc(100vh - 40px); overflow-y: auto; background: #fff; border-radius: 16px; box-shadow: 0 20px 60px rgba(0,0,0,.25); animation: pop .15s; }
.modal.wide { max-width: 760px; }
.modal-h { padding: 18px 22px 0; display: flex; justify-content: space-between; align-items: center; }
.modal-h h3 { margin: 0; font-size: 17px; letter-spacing: -0.02em; }
.modal-b { padding: 16px 22px; }
.modal-f { padding: 0 22px 20px; display: flex; justify-content: flex-end; gap: 8px; }
.x-btn { border: 0; background: transparent; font-size: 22px; line-height: 1; cursor: pointer; color: var(--muted); padding: 4px; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { transform: translateY(8px) scale(.98); opacity: 0; } }

.toast-wrap { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 80; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast { background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; font-size: 13.5px; box-shadow: 0 8px 24px rgba(0,0,0,.2); animation: pop .15s; max-width: 90vw; }
.toast.err { background: var(--accent-ink); }

.job { text-align: center; padding: 34px 26px 28px; }
.job .spin { width: 42px; height: 42px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--accent); animation: spin .8s linear infinite; margin: 0 auto 16px; }
.job h3 { margin: 0 0 4px; font-size: 17px; }
.job .el { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 13px; margin-top: 10px; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading { display: grid; place-items: center; padding: 80px 0; color: var(--muted); }
.loading .spin { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--ink); animation: spin .8s linear infinite; }
.btn .spin-sm { width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(255,255,255,.4); border-top-color: currentColor; animation: spin .8s linear infinite; }

.drawer-bg { position: fixed; inset: 0; background: rgba(18,18,22,.3); z-index: 40; animation: fade .12s; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(520px, 100vw); background: #fff; z-index: 41; overflow-y: auto; box-shadow: -10px 0 40px rgba(0,0,0,.15); animation: slide .18s ease-out; }
@keyframes slide { from { transform: translateX(30px); opacity: 0; } }
.drawer .dh { padding: 16px 20px; display: flex; justify-content: flex-end; position: sticky; top: 0; background: #fff; z-index: 1; }
.drawer .db { padding: 0 22px 30px; }
.drawer img.big { width: 100%; border-radius: 10px; aspect-ratio: 16/9; object-fit: cover; }
.drawer h2 { font-size: 18px; letter-spacing: -0.02em; margin: 14px 0 6px; line-height: 1.4; }
.kv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0; }
.kv div { background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 10px; padding: 9px 11px; }
.kv b { display: block; font-size: 15.5px; letter-spacing: -0.02em; }
.kv span { font-size: 11.5px; color: var(--muted); }
.desc { white-space: pre-wrap; font-size: 13px; color: var(--ink-2); background: var(--surface-2); border-radius: 10px; padding: 12px; max-height: 220px; overflow-y: auto; border: 1px solid var(--line-2); }

.mobile-top { display: none; }

@media (max-width: 1100px) {
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trend-layout, .idea-grid { grid-template-columns: 1fr; }
  .trend-form { position: static; }
  .kanban { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .thumb-ideas { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .shell { grid-template-columns: 1fr; }
  .side { display: none; position: fixed; inset: 0 auto 0 0; width: 260px; z-index: 60; }
  .side.open { display: flex; }
  .mobile-top { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: var(--side); color: #fff; position: sticky; top: 0; z-index: 30; }
  .mobile-top button { background: none; border: 0; color: #fff; font-size: 22px; cursor: pointer; }
  .main { padding: 20px 16px 60px; }
  .g2, .g3, .g4 { grid-template-columns: 1fr; }
  .kanban { grid-template-columns: 1fr; }
  .kv { grid-template-columns: repeat(2, 1fr); }
}
