/* Concept — 정적 CSS (빌드 없음) */
@font-face {
  font-family: "Pretendard";
  src: url("/static/fonts/PretendardVariable.woff2") format("woff2-variations");
  font-weight: 45 920;
  font-display: swap;
}

:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --text: #1b1f27;
  --muted: #667085;
  --line: #e4e7ec;
  --line-strong: #d0d5dd;
  --accent: #2f5bea;
  --accent-ink: #ffffff;
  --accent-soft: #eef2fe;
  --ok: #12805c;
  --ok-soft: #e7f6ef;
  --warn: #b54708;
  --warn-soft: #fef4e6;
  --err: #c0362c;
  --err-soft: #fdecea;
  --flag: #fff1b8;
  --t-defensive: #0e8a7e;
  --t-gentleman: #2f5bea;
  --t-aggressive: #d9480f;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 1px 3px rgba(16, 24, 40, .06);
  --font: "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1218; --surface: #171b23; --text: #e6e8ec; --muted: #98a2b3; --line: #262c38; --line-strong: #343b4a;
    --accent: #6d8cff; --accent-ink: #0f1218; --accent-soft: #1d2541;
    --ok: #4cc493; --ok-soft: #143128; --warn: #f0a54a; --warn-soft: #33260f; --err: #f07167; --err-soft: #3a1a18;
    --flag: #4a3f12; --t-defensive: #3cc4b4; --t-gentleman: #6d8cff; --t-aggressive: #ff8a4c;
    --shadow: none;
  }
}

* { box-sizing: border-box; }
[x-cloak] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text); font-family: var(--font);
  font-size: 15px; line-height: 1.6; letter-spacing: -0.01em; word-break: keep-all; overflow-wrap: anywhere;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0; line-height: 1.3; letter-spacing: -0.02em; }
h1 { font-size: 26px; font-weight: 700; }
h2 { font-size: 17px; font-weight: 650; }
h3 { font-size: 16px; font-weight: 650; }
p { margin: 0; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .88em; background: var(--accent-soft);
  padding: 1px 6px; border-radius: 6px; }
pre { white-space: pre-wrap; font-size: 12px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.strong { font-weight: 650; color: var(--text); }
.center { text-align: center; margin-top: 18px; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.row { display: flex; align-items: center; flex-wrap: wrap; }
.gap { gap: 10px; }
.center-row { justify-content: center; }
.stack > * + * { margin-top: 14px; }

/* 레이아웃 */
.container { max-width: 1120px; margin: 0 auto; padding: 28px 24px 80px; }
.container-wide { max-width: 1360px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.page-head p { margin-top: 6px; }
.back { display: inline-block; margin-bottom: 6px; color: var(--muted); }

/* 상단바 */
.topbar { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: saturate(1.6) blur(10px); border-bottom: 1px solid var(--line); }
.topbar-inner { max-width: 1360px; margin: 0 auto; padding: 10px 24px; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 750; color: var(--text); font-size: 16px; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 28px; height: 28px; border-radius: 8px; background: var(--accent); color: var(--accent-ink);
  display: grid; place-items: center; font-size: 15px; font-weight: 800; }
.brand-lg { font-size: 22px; }
.brand-lg .brand-mark { width: 36px; height: 36px; font-size: 19px; border-radius: 10px; }
.nav { display: flex; gap: 4px; flex: 1; }
.nav a { color: var(--muted); padding: 6px 12px; border-radius: 8px; font-weight: 550; }
.nav a:hover { background: var(--bg); text-decoration: none; color: var(--text); }
.nav a.active { color: var(--text); background: var(--bg); }
.logout { display: flex; align-items: center; gap: 10px; margin: 0; }

/* 카드 · 버튼 · 입력 */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.card-title { font-size: 14px; font-weight: 650; color: var(--muted); margin-bottom: 10px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 40px; padding: 0 16px;
  border-radius: 10px; border: 1px solid transparent; font: inherit; font-weight: 600; cursor: pointer;
  transition: background .15s, border-color .15s, opacity .15s; white-space: nowrap; }
.btn:hover { text-decoration: none; }
.btn:focus-visible, .seg:focus-visible, .tab:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 35%, transparent); outline-offset: 1px; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 88%, #000); }
.btn-primary:disabled { opacity: .4; cursor: not-allowed; }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--bg); }
.btn-ghost.danger { color: var(--err); }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; border-radius: 8px; }
.btn-lg { height: 50px; padding: 0 28px; font-size: 16px; border-radius: 12px; }
.btn-block { width: 100%; height: 46px; }
.icon-btn { border: 0; background: transparent; color: var(--muted); width: 30px; height: 30px; border-radius: 8px; cursor: pointer; font-size: 14px; }
.icon-btn:hover { background: var(--bg); color: var(--text); }
.field { display: block; }
.field > span { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
input, textarea, select { font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: 10px; padding: 10px 12px; width: 100%; }
textarea { resize: vertical; min-height: 76px; }
select { width: auto; padding: 6px 30px 6px 10px; height: 32px; font-size: 13px; }
.input-sm { width: 140px; height: 32px; padding: 4px 10px; font-size: 13px; margin-left: 8px; }

/* 알림 · 배지 · 칩 */
.alert { border-radius: var(--radius-sm); padding: 12px 14px; margin-bottom: 16px; font-size: 14px; border: 1px solid transparent; }
.alert strong { margin-right: 6px; }
.alert-error { background: var(--err-soft); color: var(--err); border-color: color-mix(in srgb, var(--err) 25%, transparent); }
.alert-warn { background: var(--warn-soft); color: var(--warn); border-color: color-mix(in srgb, var(--warn) 25%, transparent); }
.alert-info { background: var(--accent-soft); color: var(--text); }
.error-text { color: var(--err); font-size: 13px; margin-top: 8px; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 650; white-space: nowrap; }
.badge-ok { background: var(--ok-soft); color: var(--ok); }
.badge-run { background: var(--accent-soft); color: var(--accent); }
.badge-wait { background: var(--bg); color: var(--muted); border: 1px solid var(--line); }
.badge-err { background: var(--err-soft); color: var(--err); }
.badge-rec { background: var(--accent); color: var(--accent-ink); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: pulse 1.4s infinite; display: inline-block; }
@keyframes pulse { 50% { opacity: .3; } }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 8px; }
.chip { font-size: 13px; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 4px 9px; line-height: 1.45; }
.chip b { color: var(--accent); margin-right: 3px; }
.chip em { font-style: normal; color: var(--muted); font-size: 12px; }
.chip-must { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); background: var(--accent-soft); }
mark.flag { background: var(--flag); color: inherit; border-radius: 4px; padding: 0 3px; font-weight: 600; }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); background: var(--text); color: var(--surface);
  padding: 10px 18px; border-radius: 999px; font-size: 14px; opacity: 0; pointer-events: none; transition: .2s; z-index: 50; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* 진행 막대 */
.bar { display: block; height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; flex: 1; }
.bar > i { display: block; height: 100%; background: var(--accent); border-radius: inherit; transition: width .4s; }
.bar-lg { height: 10px; margin: 18px 0 10px; }

/* 로그인 */
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login-card { width: 100%; max-width: 380px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
  padding: 32px 28px; box-shadow: 0 12px 40px rgba(16, 24, 40, .08); }
.login-card > p { margin: 10px 0 22px; }

/* 새 작업 */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.drop { display: flex; flex-direction: column; gap: 12px; transition: border-color .15s, background .15s; min-height: 250px; }
.drop.is-over { border-color: var(--accent); background: var(--accent-soft); }
.drop.is-done { border-color: color-mix(in srgb, var(--ok) 45%, var(--line)); }
.card-head { display: flex; gap: 12px; align-items: flex-start; }
.step { width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid;
  place-items: center; font-size: 13px; font-weight: 750; flex: none; margin-top: 1px; }
.step-opt { background: var(--line-strong); color: var(--text); }
.drop.is-done .step { background: var(--ok); }
.drop-target { flex: 1; min-height: 96px; border: 1.5px dashed var(--line-strong); border-radius: 12px; display: grid;
  place-items: center; text-align: center; padding: 14px; color: var(--muted); cursor: pointer; font-size: 14px; transition: .15s; }
.drop-target:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.drop-target-sm { flex: none; min-height: 54px; }
.file { display: flex; align-items: center; gap: 10px; background: var(--bg); border-radius: 10px; padding: 10px; }
.file-icon { width: 40px; height: 40px; border-radius: 9px; background: var(--surface); border: 1px solid var(--line);
  display: grid; place-items: center; font-size: 11px; font-weight: 800; color: var(--accent); flex: none; }
.file-meta { flex: 1; min-width: 0; }
.file-name { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.run-bar { margin-top: 18px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; box-shadow: var(--shadow); }
.run-info { display: flex; flex-direction: column; gap: 6px; }
.adv summary { cursor: pointer; color: var(--muted); }
.adv[open] summary { margin-bottom: 6px; }

/* 진행 */
.progress-card { max-width: 760px; }
.status-line { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.stepper { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.step-item { display: flex; align-items: center; gap: 12px; padding: 9px 4px; }
.step-dot { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 750;
  background: var(--bg); color: var(--muted); border: 1px solid var(--line); flex: none; }
.step-label { flex: 1; display: flex; gap: 10px; align-items: baseline; }
.step-item.is-done .step-dot { background: var(--ok); color: #fff; border-color: var(--ok); }
.step-item.is-active .step-dot { background: var(--accent); color: var(--accent-ink); border-color: var(--accent);
  box-shadow: 0 0 0 5px var(--accent-soft); }
.step-item.is-active .step-label { font-weight: 650; }
.step-item.is-failed .step-dot { background: var(--err); color: #fff; border-color: var(--err); }
.step-item.is-todo .step-label { color: var(--muted); }

/* 결과 */
.downloads { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.dl-docx { display: flex; gap: 6px; margin: 0; }
.summary { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 16px; margin-bottom: 18px; }
.clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: 14px; }
.bars { display: grid; gap: 8px; margin-bottom: 10px; }
.bar-row { display: grid; grid-template-columns: 44px 1fr 38px; align-items: center; gap: 10px; font-size: 13px; }
.bar-row .bar { height: 8px; }
.bar-row.is-rec .bar-label { font-weight: 700; }
.bar-val { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.tone-defensive { background: var(--t-defensive) !important; }
.tone-gentleman { background: var(--t-gentleman) !important; }
.tone-aggressive { background: var(--t-aggressive) !important; }
.emo-neutral { background: #98a2b3 !important; } .emo-happy { background: #12b76a !important; }
.emo-disgusted, .emo-angry { background: #f04438 !important; } .emo-surprised { background: #f79009 !important; }
.emo-sad, .emo-fearful { background: #7a5af8 !important; }
.tone-switch { position: sticky; top: 53px; z-index: 10; display: flex; align-items: center; gap: 6px; padding: 10px 0;
  background: var(--bg); margin-bottom: 6px; flex-wrap: wrap; }
.seg { border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); font: inherit; font-size: 14px;
  font-weight: 600; padding: 6px 14px; border-radius: 999px; cursor: pointer; }
.seg.on { background: var(--text); color: var(--surface); border-color: var(--text); }
.rec-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-left: 2px; vertical-align: 2px; }
.seg.on .rec-dot { background: var(--surface); }
.result-body { display: grid; grid-template-columns: 220px 1fr; gap: 20px; align-items: start; }
.slide-nav { position: sticky; top: 108px; max-height: calc(100vh - 124px); overflow: auto; display: grid; gap: 4px; padding-right: 4px; }
.nav-item { display: grid; grid-template-columns: 26px 1fr auto; gap: 6px; align-items: center; padding: 6px 8px; border-radius: 8px;
  color: var(--text); font-size: 13px; }
.nav-item:hover { background: var(--surface); text-decoration: none; }
.nav-item.has-thumb { grid-template-columns: 1fr auto; }
.nav-item img { grid-column: 1 / -1; width: 100%; border-radius: 6px; border: 1px solid var(--line); background: var(--surface); }
.nav-item.has-thumb .nav-no { display: none; }
.nav-no { color: var(--muted); font-variant-numeric: tabular-nums; text-align: right; }
.nav-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-flag { color: var(--warn); font-size: 9px; }
.slides { display: grid; gap: 16px; min-width: 0; }
.slide { scroll-margin-top: 112px; }
.slide-head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 14px; }
.slide-thumb { width: 168px; border-radius: 8px; border: 1px solid var(--line); flex: none; }
.key-msg { margin-top: 6px; color: var(--muted); font-size: 14px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.tab { border: 0; background: transparent; font: inherit; font-size: 14px; font-weight: 600; color: var(--muted); padding: 8px 14px;
  border-bottom: 2.5px solid transparent; margin-bottom: -1px; cursor: pointer; }
.tab:hover { color: var(--text); }
.tab.on.tab-defensive { color: var(--t-defensive); border-color: var(--t-defensive); }
.tab.on.tab-gentleman { color: var(--t-gentleman); border-color: var(--t-gentleman); }
.tab.on.tab-aggressive { color: var(--t-aggressive); border-color: var(--t-aggressive); }
.concept { font-weight: 650; margin-bottom: 8px; }
.opening { background: var(--bg); border-radius: 10px; padding: 10px 12px; margin-bottom: 10px; font-size: 14.5px; }
.opening .label { font-size: 12px; font-weight: 700; color: var(--muted); margin-right: 8px; }
.script { font-size: 15.5px; line-height: 1.8; }
.panel-foot { display: flex; gap: 12px; align-items: flex-start; margin-top: 12px; flex-wrap: wrap; }
.hint { font-size: 13.5px; color: var(--muted); flex: 1; min-width: 200px; }
.hint summary { cursor: pointer; padding-top: 6px; }
.hint p { margin-top: 6px; }
.fix { margin-top: 10px; padding: 8px 12px; border-left: 3px solid var(--warn); background: var(--warn-soft); border-radius: 0 8px 8px 0; }

/* 목록 */
.table-card { padding: 0; overflow: hidden; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12.5px; font-weight: 650; color: var(--muted); padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--bg); }
.table td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table th.right, .table td.right { text-align: right; }
.empty { text-align: center; padding: 48px 20px; display: grid; gap: 10px; justify-items: center; }
.import { margin-top: 18px; }
.import-list { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 6px; }
.import-list li { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.import-list form { margin: 0 0 0 auto; }

/* 반응형 */
@media (max-width: 1024px) {
  .cards-3 { grid-template-columns: 1fr 1fr; }
  .cards-3 > :last-child { grid-column: 1 / -1; min-height: 0; }
  .summary { grid-template-columns: 1fr 1fr; }
  .summary > :first-child { grid-column: 1 / -1; }
  .result-body { grid-template-columns: 1fr; }
  .slide-nav { position: static; max-height: none; display: flex; overflow-x: auto; gap: 6px; padding-bottom: 6px; }
  .nav-item { flex: none; width: 140px; grid-template-columns: 22px 1fr auto; background: var(--surface); border: 1px solid var(--line); }
  .nav-item img { display: none; }
  .nav-item.has-thumb { grid-template-columns: 22px 1fr auto; }
  .nav-item.has-thumb .nav-no { display: block; }
  .tone-switch { top: 53px; }
}
@media (max-width: 680px) {
  .container { padding: 20px 16px 60px; }
  h1 { font-size: 22px; }
  .cards-3, .summary { grid-template-columns: 1fr; }
  .drop { min-height: 0; }
  .topbar-inner { padding: 10px 16px; gap: 12px; }
  .logout .account-link { padding: 6px 4px; }
  .slide-head { flex-direction: column; }
  .slide-thumb { width: 100%; }
  .run-bar .btn-lg { width: 100%; }
  .table thead { display: none; }
  .table tr { display: block; padding: 12px 16px; border-bottom: 1px solid var(--line); }
  .table td { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; border: 0; }
  .table td.right { justify-content: flex-end; }
  .table td[data-label]::before { content: attr(data-label); color: var(--muted); font-size: 12.5px; }
}

/* 계정 */
.account-link { padding: 6px 10px; border-radius: 8px; }
.account-link:hover, .account-link.active { background: var(--bg); color: var(--text); text-decoration: none; }
.account-card { max-width: 480px; }
.account-card > p { margin: 6px 0 18px; }
.meter { display: block; height: 5px; border-radius: 99px; background: var(--line); overflow: hidden; margin: 8px 0 4px; }
.meter i { display: block; height: 100%; transition: width .2s; }
.meter .lv1 { background: var(--err); } .meter .lv2 { background: var(--warn); }
.meter .lv3 { background: #12b76a; } .meter .lv4 { background: var(--ok); }

/* 기능 요청: 버튼 · 날개 패널 · 메모 카드 */
.req-btn { margin-left: auto; }
.count-badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px;
  background: var(--err); color: #fff; font-size: 11.5px; font-weight: 750; line-height: 1; }
.count-badge.is-zero { background: var(--line-strong); color: var(--muted); }
.drawer-scrim { position: fixed; inset: 0; background: rgba(16, 24, 40, .18); z-index: 39; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: 420px; max-width: 100vw; z-index: 40; background: var(--bg);
  border-left: 1px solid var(--line); box-shadow: -12px 0 40px rgba(16, 24, 40, .14); display: flex; flex-direction: column;
  transform: translateX(105%); transition: transform .22s ease; visibility: hidden; }
.drawer.open { transform: none; visibility: visible; }
.drawer[x-cloak] { display: flex !important; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--line);
  background: var(--surface); }
.drawer-body { flex: 1; overflow: auto; padding: 14px 16px 40px; display: flex; flex-direction: column; gap: 12px; }
.memo-new { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px; box-shadow: var(--shadow); }
.memo-title-input { border: 0; padding: 6px 4px; font-weight: 600; }
.memo-title-input:focus-visible { outline: none; }
.memo-new-more { display: grid; gap: 8px; margin-top: 6px; }
.memo-new-more textarea, .memo-edit textarea, .reply-form textarea { min-height: 0; font-size: 14px; }
.memo-new-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.seg-sm { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 8px; overflow: hidden; }
.seg-sm label { cursor: pointer; }
.seg-sm input { position: absolute; opacity: 0; pointer-events: none; }
.seg-sm span { display: block; padding: 4px 10px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.seg-sm input:checked + span { background: var(--text); color: var(--surface); }
.seg-sm input:focus-visible + span { outline: 2px solid var(--accent); }
.memo-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); }
.memo-tab { border: 0; background: transparent; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--muted);
  padding: 7px 10px; border-bottom: 2px solid transparent; margin-bottom: -1px; cursor: pointer; }
.memo-tab .n { font-size: 11.5px; color: var(--muted); font-weight: 500; }
.memo-tab.on { color: var(--text); border-color: var(--text); }
.memo-list { display: grid; gap: 10px; }
.memo { --memo: #fff8d6; --memo-line: #f0dc8a; background: var(--memo); border: 1px solid var(--memo-line); border-radius: 4px 12px 12px 12px;
  border-left: 5px solid #f2b705; box-shadow: 0 1px 2px rgba(120, 90, 0, .12); color: #2b2a26; }
.memo.st-doing { border-left-color: #2f5bea; }
.memo.st-done { --memo: #eef7ee; --memo-line: #cfe6cf; border-left-color: #12805c; }
.memo.st-done .memo-title { text-decoration: line-through; text-decoration-color: rgba(18, 128, 92, .5); color: #4d5a52; }
.memo-head { width: 100%; text-align: left; background: transparent; border: 0; font: inherit; color: inherit; padding: 10px 12px;
  cursor: pointer; display: grid; gap: 4px; }
.memo-title { font-weight: 650; font-size: 14.5px; line-height: 1.45; }
.memo-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 12px; color: #6b6550; }
.st-chip, .pri-chip { padding: 0 7px; border-radius: 99px; font-size: 11.5px; font-weight: 700; line-height: 18px; }
.st-chip-open { background: #fde9a8; color: #7a5600; } .st-chip-doing { background: #dfe6fd; color: #2443b8; }
.st-chip-done { background: #d3efdf; color: #0c6b4c; } .pri-chip { background: #fde0dc; color: #b42318; }
.memo-body { padding: 0 12px 12px; display: grid; gap: 10px; }
.memo-text { font-size: 14px; white-space: normal; }
.memo-edit { display: grid; gap: 8px; }
.memo-edit input, .memo-edit textarea, .reply-form textarea { background: rgba(255, 255, 255, .7); }
.replies { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; border-top: 1px dashed var(--memo-line); padding-top: 10px; }
.replies li { background: rgba(255, 255, 255, .6); border-radius: 8px; padding: 8px 10px; font-size: 13.5px; }
.reply-who { font-weight: 700; font-size: 12.5px; }
.reply-form { display: flex; gap: 6px; align-items: flex-end; }
.memo-actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.memo-actions .spacer { flex: 1; }
.memo .btn-ghost { background: rgba(255, 255, 255, .7); }
.memo-empty { text-align: center; color: var(--muted); padding: 36px 10px; font-size: 14px; border: 1.5px dashed var(--line-strong); border-radius: 12px; }
@media (prefers-color-scheme: dark) {
  .memo { --memo: #3a3420; --memo-line: #5a4f27; color: #f3ecd2; }
  .memo.st-done { --memo: #1f3228; --memo-line: #2f4a3a; }
  .memo.st-done .memo-title { color: #b6c9bd; }
  .memo-meta { color: #c9bf98; }
  .memo-edit input, .memo-edit textarea, .reply-form textarea, .replies li, .memo .btn-ghost { background: rgba(0, 0, 0, .2); color: inherit; }
}
@media (max-width: 680px) {
  .drawer { width: 100vw; }
  .req-btn { padding: 0 8px; }
}
