/* 같이체크 — ivory paper, ink sidebar, champagne gold. Compact rows, urgent pinned in vermilion. */
:root {
  --bg: #f3efe7;
  --bg-deep: #ebe5d9;
  --surface: #fffdf8;
  --surface-2: #faf7f0;
  --ink: #17191e;
  --ink-2: #3d424c;
  --muted: #858a93;
  --faint: #b3b0a8;
  --line: #e6dfd2;
  --line-2: #efe9de;
  --gold: #a7824b;
  --gold-2: #c9a76f;
  --gold-soft: #f2e9d8;
  --qlanc: #1d5566;
  --qlanc-soft: #e2edef;
  --jay: #7a3358;
  --jay-soft: #f3e4ec;
  --urgent: #c2410c;
  --urgent-2: #e2652f;
  --urgent-soft: #fcefe6;
  --done: #3c6b52;
  --done-soft: #e5efe8;
  --serif: 'Gowun Batang', 'Nanum Myeongjo', serif;
  --sans: 'IBM Plex Sans KR', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  --num: 'Cormorant Garamond', 'Gowun Batang', serif;
  --shadow: 0 1px 0 rgba(23, 25, 30, .03), 0 8px 24px -14px rgba(60, 45, 20, .18);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
html, body { background: var(--bg); }
body {
  margin: 0;
  min-height: 100dvh;
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(201, 167, 111, .12), transparent 60%),
    radial-gradient(800px 400px at 0% 110%, rgba(29, 85, 102, .06), transparent 60%),
    var(--bg);
  background-attachment: fixed;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; -webkit-tap-highlight-color: transparent; }
button:disabled { opacity: .5; cursor: wait; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
:is(button, a, input, select, textarea):focus-visible { outline: 2px solid var(--gold-2); outline-offset: 2px; }

/* ---------- layout ---------- */
.app { min-height: 100dvh; display: flex; }
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: 236px; display: flex; flex-direction: column;
  padding: calc(30px + env(safe-area-inset-top)) 20px 24px;
  background: linear-gradient(180deg, #1b1e24 0%, #121418 100%); color: #d9d4ca;
}
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--serif); font-size: 22px; font-weight: 700; color: #f6f1e7; letter-spacing: -.3px; }
.brandmark {
  width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; color: #1b1e24;
  background: linear-gradient(135deg, #e3c793, var(--gold) 70%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 6px 16px -6px rgba(201, 167, 111, .6);
}
.brand small { display: block; font-family: var(--sans); font-size: 10px; font-weight: 500; letter-spacing: .22em; color: var(--gold-2); margin-top: 3px; }
.side-label { margin: 38px 6px 10px; font-size: 10px; letter-spacing: .22em; color: #7d7a73; }
.side-nav { display: grid; gap: 3px; }
.side-nav button {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%;
  padding: 10px 12px; border-radius: 9px; color: #b9b4aa; font-size: 14px; text-align: left;
}
.side-nav button:hover { background: rgba(255, 255, 255, .04); color: #f1ece2; }
.side-nav button.on { background: rgba(201, 167, 111, .13); color: #f6efe1; }
.side-nav .count { font-family: var(--num); font-size: 17px; font-weight: 600; color: var(--gold-2); }
.side-nav .swatch { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 9px; }
.side-note { margin-top: auto; padding: 16px 14px; border: 1px solid rgba(201, 167, 111, .18); border-radius: 12px; font-size: 12.5px; line-height: 1.75; color: #9c978d; }
.side-note strong { display: block; color: #e8e1d3; font-weight: 600; margin-bottom: 4px; font-size: 13px; }
.account-btn { display: flex; align-items: center; gap: 11px; width: 100%; margin-top: 18px; padding: 14px 4px 0; border-top: 1px solid rgba(255, 255, 255, .07); text-align: left; color: inherit; }
.account-btn strong { display: block; color: #f1ece2; font-size: 13.5px; font-weight: 600; }
.account-btn small { display: block; color: #8b877f; font-size: 11.5px; margin-top: 3px; }

main { flex: 1; min-width: 0; margin-left: 236px; }
.topbar {
  position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: calc(14px + env(safe-area-inset-top)) 34px 14px;
  background: rgba(243, 239, 231, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.mobile-brand { display: none; }
.crumb { font-size: 13px; color: var(--muted); }
.crumb b { color: var(--ink-2); font-weight: 500; }
.top-actions { display: flex; align-items: center; gap: 8px; }
.me-chip { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px 6px 7px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); font-size: 13px; color: var(--ink-2); }
.bell { position: relative; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: var(--ink-2); background: var(--surface); border: 1px solid var(--line); }
.bell.on { color: var(--gold); border-color: #e2d3b6; background: var(--gold-soft); }
.bell .dot { position: absolute; top: 7px; right: 7px; width: 7px; height: 7px; border-radius: 50%; background: var(--urgent-2); box-shadow: 0 0 0 2px var(--surface); }

.content { max-width: 1560px; margin: 0 auto; padding: 30px 34px 40px; }
.heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.eyebrow { font-size: 10.5px; letter-spacing: .26em; color: var(--gold); font-weight: 600; text-transform: uppercase; }
h1 { font-family: var(--serif); font-size: 30px; font-weight: 700; letter-spacing: -.6px; margin: 6px 0 4px; }
.heading p { color: var(--muted); font-size: 13.5px; }

.primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 11px 18px; border-radius: 10px;
  background: var(--ink); color: #f8f3e9; font-size: 14px; font-weight: 600; letter-spacing: -.1px;
  box-shadow: 0 8px 20px -10px rgba(23, 25, 30, .55), inset 0 1px 0 rgba(255, 255, 255, .08);
  transition: transform .15s ease, background .15s ease;
}
.primary:hover { background: #262a31; }
.primary:active { transform: translateY(1px); }
.primary svg { color: var(--gold-2); }
.secondary { padding: 10px 16px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-2); font-size: 13.5px; }
.danger { padding: 10px 16px; border-radius: 10px; background: #fbeee9; color: #a23a12; font-size: 13.5px; }

/* ---------- summary strip ---------- */
.summary { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); margin-bottom: 18px; }
.summary > div { padding: 16px 22px; border-right: 1px solid var(--line-2); }
.summary > div:last-child { border-right: 0; }
.summary span { display: block; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.summary strong { font-family: var(--num); font-size: 32px; font-weight: 600; line-height: 1; letter-spacing: -.5px; }
.summary strong small { font-family: var(--sans); font-size: 12px; font-weight: 400; color: var(--muted); margin-left: 4px; }
.summary .hot strong { color: var(--urgent); }
.progress { height: 3px; border-radius: 3px; background: var(--line-2); margin-top: 10px; overflow: hidden; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-2)); border-radius: 3px; }

/* ---------- toolbar ---------- */
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.filters { display: flex; gap: 4px; padding: 3px; background: var(--bg-deep); border-radius: 11px; }
.filters button { display: flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: 8px; color: var(--muted); font-size: 13px; }
.filters button.chosen { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(40, 30, 10, .1); font-weight: 600; }
.filters span { font-family: var(--num); font-size: 15px; font-weight: 600; opacity: .75; }
.sync { font-size: 11.5px; color: var(--faint); display: flex; align-items: center; gap: 6px; }
.sync::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #6aa585; box-shadow: 0 0 0 3px rgba(106, 165, 133, .18); }
.status-tabs { display: none; }

/* ---------- board ---------- */
.board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: start; }
.column { background: rgba(255, 253, 248, .55); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.column-title { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px 11px 16px; border-bottom: 1px solid var(--line); background: var(--surface); }
.column-title > div { display: flex; align-items: center; gap: 8px; }
.column-title h2 { font-family: var(--serif); font-size: 15px; font-weight: 700; }
.column-title .n { font-family: var(--num); font-size: 18px; font-weight: 600; color: var(--muted); }
.column-title svg { color: var(--muted); }
.doing .column-title svg { color: var(--gold); }
.done .column-title svg { color: var(--done); }
.icon-button { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; color: var(--muted); }
.icon-button:hover { background: var(--surface-2); color: var(--ink); }
.rows { display: flex; flex-direction: column; }

/* compact task row */
.row {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px;
  padding: 10px 10px 10px 16px; border-bottom: 1px solid var(--line-2); background: var(--surface);
  animation: rowIn .35s ease both;
}
.row:last-child { border-bottom: 0; }
.row::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: transparent; }
.row.t-qlanc::before { background: var(--qlanc); opacity: .55; }
.row.t-jay::before { background: var(--jay); opacity: .55; }
.row:hover { background: #fffaf0; }
.row-open { min-width: 0; text-align: left; display: block; }
.row-line1 { display: flex; align-items: center; gap: 7px; min-width: 0; }
.row-title { font-size: 14.5px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: -.2px; }
.row-line2 { display: flex; align-items: center; gap: 6px; margin-top: 3px; font-size: 12px; color: var(--muted); min-width: 0; white-space: nowrap; }
.row-line2 .preview { overflow: hidden; text-overflow: ellipsis; color: #9a9790; min-width: 0; }
.row-line2 .sep { color: var(--faint); }
.row-line2 .replies { display: inline-flex; align-items: center; gap: 3px; color: var(--gold); font-weight: 600; }
.row-actions { display: flex; gap: 4px; }
.row-actions button {
  width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center;
  color: var(--muted); background: var(--surface-2); border: 1px solid var(--line-2);
}
.row-actions button:hover { color: var(--ink); border-color: var(--line); }
.row-actions .go-done:hover { color: var(--done); background: var(--done-soft); border-color: #cfe0d5; }
.row-actions .go-delete:hover { color: var(--urgent); background: var(--urgent-soft); border-color: #f1d2bf; }
.clear-done {
  display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; margin-top: 8px; padding: 9px;
  font-size: 12px; color: var(--muted); border: 1px dashed var(--line); border-radius: 10px; background: transparent;
}
.clear-done:hover { color: var(--urgent); border-color: var(--urgent); background: var(--urgent-soft); }
.done .row-title { color: #7e8a82; font-weight: 500; text-decoration: line-through; text-decoration-color: rgba(60, 107, 82, .35); }

.tag { flex: none; display: inline-flex; align-items: center; height: 19px; padding: 0 7px; border-radius: 5px; font-size: 11px; font-weight: 600; letter-spacing: -.1px; }
.tag.qlanc { color: var(--qlanc); background: var(--qlanc-soft); }
.tag.jay { color: var(--jay); background: var(--jay-soft); }
.tag.hot { color: #fff; background: linear-gradient(135deg, var(--urgent-2), var(--urgent)); gap: 2px; padding: 0 6px 0 4px; }

/* urgent rows: pinned + vermilion */
.row.urgent { background: linear-gradient(90deg, var(--urgent-soft), #fff8f2 70%); }
.row.urgent::before { width: 4px; opacity: 1; background: linear-gradient(180deg, var(--urgent-2), var(--urgent)); }
.row.urgent .row-title { color: #8a2b06; }
.row.urgent:hover { background: linear-gradient(90deg, #fae5d8, #fff3ea 70%); }
.urgent-divider { padding: 6px 16px; font-size: 10.5px; letter-spacing: .18em; color: var(--muted); background: var(--surface-2); border-bottom: 1px solid var(--line-2); }

.empty { padding: 28px 16px; text-align: center; color: var(--faint); font-size: 13px; background: var(--surface); }
.empty button { margin-top: 10px; color: var(--gold); font-size: 13px; font-weight: 600; }
.board-foot { text-align: center; color: var(--faint); font-size: 11.5px; margin-top: 18px; }

@keyframes rowIn { from { opacity: 0; transform: translateY(3px); } }

/* ---------- notice ---------- */
.notice { display: flex; align-items: center; gap: 14px; padding: 13px 16px; margin-bottom: 18px; border-radius: 14px; background: linear-gradient(100deg, #1d2026, #2a2620); color: #e9e2d4; box-shadow: var(--shadow); }
.notice .notice-icon { flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: rgba(201, 167, 111, .16); color: var(--gold-2); }
.notice > div { flex: 1; min-width: 0; }
.notice strong { font-size: 14px; color: #fbf6ec; }
.notice p { font-size: 12.5px; line-height: 1.6; color: #b5ad9f; margin-top: 2px; }
.notice .primary { background: linear-gradient(135deg, #e3c793, var(--gold)); color: #1b1e24; white-space: nowrap; }
.notice .primary svg { color: #1b1e24; }
.notice .close { color: #8b857a; padding: 4px; }

.error { color: #9b3412; background: #fdf0ea; border: 1px solid #f3d0c0; border-radius: 10px; margin: 10px 0; padding: 11px 13px; font-size: 13.5px; line-height: 1.6; }
.error button { color: inherit; text-decoration: underline; margin-left: 8px; }
.loading { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 70px; color: var(--muted); font-size: 14px; }
.spin { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- modal ---------- */
.overlay { position: fixed; inset: 0; z-index: 30; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(20, 18, 14, .45); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); animation: fade .18s ease; }
.modal { width: 560px; max-width: 100%; max-height: 90dvh; overflow: auto; padding: 26px 28px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 30px 80px -20px rgba(30, 20, 5, .45); animation: rise .22s ease; }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(10px) scale(.99); } }
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 20px; }
.modal-head h2 { font-family: var(--serif); font-size: 22px; font-weight: 700; margin-top: 6px; letter-spacing: -.4px; }
.modal label { display: block; margin-bottom: 16px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.modal textarea, .modal select, .modal input {
  display: block; width: 100%; margin-top: 8px; padding: 12px 13px; border-radius: 10px; font-size: 15px; font-weight: 400;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--ink);
}
.modal textarea { resize: vertical; min-height: 110px; line-height: 1.7; }
.modal textarea::placeholder { color: var(--faint); }
.form-footer { display: flex; justify-content: flex-end; gap: 8px; margin-top: 22px; }

.team-pick { border: 0; margin: 0 0 16px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.team-pick legend { font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 8px; }
.team-pick button { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 13px 14px; border-radius: 11px; border: 1px solid var(--line); background: var(--surface-2); font-size: 15px; font-weight: 600; color: var(--muted); }
.team-pick button small { display: block; font-size: 11.5px; font-weight: 400; margin-top: 2px; color: var(--faint); text-align: left; }
.team-pick button.on.qlanc { color: var(--qlanc); background: var(--qlanc-soft); border-color: rgba(29, 85, 102, .45); }
.team-pick button.on.jay { color: var(--jay); background: var(--jay-soft); border-color: rgba(122, 51, 88, .4); }
.urgent-toggle { display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px 14px; border-radius: 11px; border: 1px dashed var(--line); background: var(--surface-2); color: var(--muted); font-size: 14px; text-align: left; }
.urgent-toggle small { display: block; font-size: 11.5px; color: var(--faint); margin-top: 1px; }
.urgent-toggle .box { margin-left: auto; width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--faint); display: grid; place-items: center; color: #fff; }
.urgent-toggle.is-urgent { border-style: solid; border-color: rgba(194, 65, 12, .45); background: var(--urgent-soft); color: var(--urgent); font-weight: 600; }
.urgent-toggle.is-urgent .box { border-color: var(--urgent); background: var(--urgent); }

.detail-modal { width: 640px; }
.detail-modal.is-urgent { border-top: 4px solid var(--urgent); }
.detail-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.status-label { font-size: 12.5px; color: var(--muted); margin-left: 4px; }
.detail-title { font-family: var(--serif); font-size: 21px; font-weight: 700; line-height: 1.5; letter-spacing: -.3px; margin: 14px 0 4px; overflow-wrap: anywhere; }
.detail-author { font-size: 12px; color: var(--muted); margin-bottom: 16px; }
.detail-body { white-space: pre-wrap; overflow-wrap: anywhere; padding: 16px 18px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line-2); font-size: 15px; line-height: 1.8; }
.detail-status { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 0; border-bottom: 1px solid var(--line-2); }
.seg { display: inline-flex; padding: 3px; gap: 2px; background: var(--bg-deep); border-radius: 10px; }
.seg button { padding: 7px 12px; border-radius: 8px; font-size: 13px; color: var(--muted); }
.seg button.on { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: 0 1px 3px rgba(40, 30, 10, .1); }
.hot-switch { font-size: 12.5px; color: var(--muted); display: inline-flex; align-items: center; gap: 5px; padding: 7px 10px; border-radius: 8px; border: 1px solid var(--line); }
.hot-switch.on { color: var(--urgent); border-color: rgba(194, 65, 12, .4); background: var(--urgent-soft); }
.conversation h3 { font-family: var(--serif); font-size: 15px; margin: 18px 0 6px; }
.conversation h3 span { font-family: var(--num); color: var(--gold); margin-left: 6px; font-size: 18px; }
.comment { display: flex; gap: 10px; padding: 12px 0; border-bottom: 1px dashed var(--line-2); }
.comment > div { flex: 1; min-width: 0; }
.avatar { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.avatar.qlanc { color: var(--qlanc); background: var(--qlanc-soft); }
.avatar.jay { color: var(--jay); background: var(--jay-soft); }
.avatar.gold { color: #1b1e24; background: linear-gradient(135deg, #e3c793, var(--gold)); }
.comment-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; }
.comment-meta strong { font-size: 13px; }
.comment-meta span { font-size: 11.5px; color: var(--muted); }
.comment-del { margin-left: auto; width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; color: var(--faint); }
.comment-del:hover { color: var(--urgent); background: var(--urgent-soft); }
.comment p { margin-top: 4px; font-size: 14.5px; line-height: 1.75; white-space: pre-wrap; overflow-wrap: anywhere; }
.no-comment { color: var(--faint); font-size: 13px; padding: 6px 0 10px; }
.reply-form { margin-top: 14px; display: flow-root; }
.reply-form label { margin-bottom: 0; }
.reply-form textarea { min-height: 80px; margin-bottom: 10px; }
.reply-form .primary { float: right; }
.detail-actions { display: flex; justify-content: flex-start; margin-top: 18px; }
.detail-actions button { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--faint); text-decoration: underline; }
.detail-actions button:hover { color: var(--urgent); }

/* settings */
.settings-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 15px 0; border-bottom: 1px solid var(--line-2); }
.settings-row:last-child { border-bottom: 0; }
.settings-row strong { font-size: 14px; display: block; }
.settings-row small { display: block; margin-top: 4px; font-size: 12px; line-height: 1.6; color: var(--muted); }
.settings-row .btns { display: flex; gap: 6px; flex: none; }
.pill { font-size: 11px; font-weight: 600; border-radius: 99px; padding: 3px 9px; margin-left: 6px; vertical-align: 1px; }
.pill.ok { color: var(--done); background: var(--done-soft); }
.pill.off { color: var(--muted); background: var(--bg-deep); }
.steps { margin: 8px 0 0; padding-left: 18px; color: var(--ink-2); font-size: 12.5px; line-height: 1.9; }

.toast { position: fixed; left: 50%; bottom: calc(26px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 50; display: flex; align-items: center; gap: 8px; max-width: 90vw; padding: 12px 18px; border-radius: 12px; background: var(--ink); color: #f6f0e4; font-size: 13.5px; white-space: nowrap; box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .45); animation: rise .2s ease; }
.toast svg { color: var(--gold-2); }

/* ---------- login ---------- */
.login-wrap { min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px; }
.login { width: 400px; max-width: 100%; padding: 34px 30px 30px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 40px 90px -40px rgba(60, 40, 10, .45); }
.login-brand { display: flex; align-items: center; gap: 11px; font-family: var(--serif); font-size: 22px; font-weight: 700; margin-bottom: 28px; }
.login h1 { font-size: 24px; margin: 8px 0 6px; }
.login > p { color: var(--muted); font-size: 13.5px; margin-bottom: 22px; line-height: 1.6; }
.login label { display: block; margin-bottom: 14px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.login label small { font-weight: 400; color: var(--faint); margin-left: 4px; }
.login input { display: block; width: 100%; margin-top: 7px; padding: 13px 14px; border-radius: 11px; border: 1px solid var(--line); background: var(--surface-2); font-size: 16px; }
.login input:focus { border-color: var(--gold-2); outline: none; box-shadow: 0 0 0 3px rgba(201, 167, 111, .2); }
.login .primary { width: 100%; padding: 14px; margin-top: 8px; font-size: 15px; }
.login-hint { display: flex; gap: 8px; margin-top: 18px; font-size: 12px; color: var(--muted); justify-content: center; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .sidebar { width: 206px; padding-left: 16px; padding-right: 16px; }
  main { margin-left: 206px; }
  .content { padding: 26px 22px 36px; }
  .topbar { padding-left: 22px; padding-right: 22px; }
}
@media (max-width: 980px) {
  .sidebar { display: none; }
  main { margin-left: 0; }
  .mobile-brand { display: flex; align-items: center; gap: 9px; font-family: var(--serif); font-size: 18px; font-weight: 700; }
  .mobile-brand .brandmark { width: 28px; height: 28px; border-radius: 8px; }
  .crumb { display: none; }
  .board { grid-template-columns: 1fr; }
  .column { display: none; }
  .column.active { display: block; }
  .column-title { display: none; }
  .status-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 3px; margin-bottom: 10px; background: var(--bg-deep); border-radius: 12px; }
  .status-tabs button { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 6px; border-radius: 9px; font-size: 13px; color: var(--muted); }
  .status-tabs button b { font-family: var(--num); font-size: 17px; font-weight: 600; }
  .status-tabs button.on { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: 0 1px 3px rgba(40, 30, 10, .12); }
  .status-tabs button .hot-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--urgent-2); }
}
@media (max-width: 640px) {
  :root { font-size: 14px; }
  .topbar { padding: calc(10px + env(safe-area-inset-top)) 16px 10px; }
  .me-chip span.label { display: none; }
  .content { padding: 18px 14px 30px; }
  .heading { align-items: center; margin-bottom: 16px; }
  .heading p { display: none; }
  h1 { font-size: 23px; margin: 4px 0 0; }
  .heading .primary { padding: 10px 13px; font-size: 13px; }
  .summary { grid-template-columns: repeat(4, 1fr); margin-bottom: 14px; border-radius: 12px; }
  .summary > div { padding: 11px 10px; }
  .summary span { font-size: 10.5px; }
  .summary strong { font-size: 24px; }
  .summary strong small { display: none; }
  .progress { display: none; }
  .toolbar { margin-bottom: 10px; }
  .filters button { padding: 6px 10px; font-size: 12.5px; }
  .sync { display: none; }
  .row { padding: 9px 8px 9px 13px; }
  .row-title { font-size: 14px; }
  .row-actions button { width: 32px; height: 32px; }
  .notice { flex-wrap: wrap; }
  .notice .primary { width: 100%; }
  .overlay { padding: 0; align-items: flex-end; }
  .modal { border-radius: 20px 20px 0 0; max-height: 92dvh; padding: 22px 18px calc(22px + env(safe-area-inset-bottom)); }
  .modal textarea, .modal input, .modal select { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before { animation: none !important; transition: none !important; } }

/* Cormorant's default old-style figures make "1" read as "I" — force lining numerals everywhere it's used. */
.summary strong, .side-nav .count, .filters span, .column-title .n, .status-tabs button b, .conversation h3 span { font-variant-numeric: lining-nums tabular-nums; font-feature-settings: 'lnum' 1, 'tnum' 1; }

/* ---------- hold (보류) ---------- */
[hidden] { display: none !important; }
:root { --hold: #c62828; --hold-soft: #fdecec; }
.filters .hold-tab { color: var(--hold); font-weight: 600; }
.filters .hold-tab svg { flex: none; }
.filters .hold-tab.chosen { background: var(--hold); color: #fff; }
.filters .hold-tab.chosen span { opacity: 1; }
.row-actions .go-hold { color: var(--hold); border-color: #f3c7c7; background: var(--hold-soft); }
.row-actions .go-hold:hover { color: #fff; background: var(--hold); border-color: var(--hold); }
.row.held::before { background: var(--hold); opacity: 1; width: 4px; }
.hold-column .column-title svg, .hold-column .column-title h2 { color: var(--hold); }
.seg button.hold { color: var(--hold); }
.seg button.hold.on { background: var(--hold); color: #fff; }
.empty small { display: block; margin-top: 6px; font-size: 12px; }

/* latest reply, one line under the task */
.row-reply { display: flex; align-items: center; gap: 6px; margin-top: 5px; min-width: 0; font-size: 12.5px; color: var(--ink-2); white-space: nowrap; }
.row-reply::before { content: '↳'; color: var(--faint); }
.row-reply b { flex: none; font-weight: 600; }
.row-reply span:last-child { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.avatar-dot { flex: none; width: 7px; height: 7px; border-radius: 50%; }
.avatar-dot.qlanc { background: var(--qlanc); }
.avatar-dot.jay { background: var(--jay); }

/* ---------- sheets (주문건 / 롯데송장) ---------- */
.side-nav button svg { flex: none; margin-right: 9px; vertical-align: -3px; color: var(--gold-2); }
.side-label + .side-nav + .side-label { margin-top: 26px; }
.mobile-sheets { display: none; }
.sheet-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.sheet-actions .secondary, .sheet-actions .danger { display: inline-flex; align-items: center; gap: 6px; }
.sheet-heading p { overflow-wrap: anywhere; }
.paste-zone { display: flex; align-items: center; gap: 14px; padding: 14px 16px; margin-bottom: 16px; border: 1px dashed var(--gold-2); border-radius: 14px; background: var(--gold-soft); }
.paste-zone > div { flex: 1; min-width: 0; }
.paste-zone strong { display: block; font-size: 14px; }
.paste-zone small { display: block; margin-top: 3px; font-size: 12.5px; color: var(--ink-2); line-height: 1.6; }
.paste-zone textarea { flex: 0 0 260px; resize: none; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); font-size: 14px; }
.sheet-table-wrap { overflow: auto; max-height: calc(100dvh - 300px); border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); }
.sheet-table { border-collapse: collapse; font-size: 13px; min-width: 100%; }
.sheet-table th, .sheet-table td { padding: 8px 12px; border-bottom: 1px solid var(--line-2); border-right: 1px solid var(--line-2); text-align: left; white-space: nowrap; max-width: 320px; overflow: hidden; text-overflow: ellipsis; }
.sheet-table th { position: sticky; top: 0; z-index: 1; background: var(--surface-2); font-weight: 600; color: var(--ink-2); }
.sheet-table .rn { color: var(--faint); text-align: right; font-variant-numeric: tabular-nums; width: 1%; }
.sheet-table tbody tr:hover td { background: #fffaf0; }

@media (max-width: 980px) {
  .mobile-sheets { display: flex; gap: 6px; margin-bottom: 14px; overflow-x: auto; }
  .mobile-sheets button { flex: none; display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); font-size: 13px; color: var(--ink-2); }
  .mobile-sheets button > span:first-child { display: inline-flex; align-items: center; gap: 6px; }
  .mobile-sheets button svg { color: var(--gold); }
  .mobile-sheets button.on { background: var(--ink); color: #f8f3e9; border-color: var(--ink); }
  .mobile-sheets .count { font-family: var(--num); font-size: 15px; font-weight: 600; color: var(--gold); font-variant-numeric: lining-nums; }
}
@media (max-width: 640px) {
  .sheet-heading { flex-direction: column; align-items: stretch; }
  .sheet-heading p { display: block; font-size: 12px; }
  .sheet-actions > * { flex: 1; }
  .paste-zone { flex-direction: column; align-items: stretch; }
  .paste-zone textarea { flex: none; width: 100%; font-size: 16px; }
  .sheet-table-wrap { max-height: calc(100dvh - 360px); }
  .filters { overflow-x: auto; max-width: 100%; }
  .filters button { flex: none; }
}

/* chime volume */
.volume-row > div:first-child { flex: 1; min-width: 0; }
.volume-row input[type=range] { display: block; width: 100%; margin: 12px 0 2px; padding: 0; border: 0; background: none; accent-color: var(--gold); }
.volume-row .btns .secondary { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }

/* edit (pencil) */
.detail-title-row { display: flex; align-items: flex-start; gap: 8px; }
.detail-title-row .detail-title { flex: 1; min-width: 0; }
.edit-btn { flex: none; margin-top: 16px; width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; color: var(--muted); border: 1px solid var(--line); background: var(--surface-2); }
.edit-btn:hover { color: var(--gold); border-color: var(--gold-2); }
.edited { margin-left: 6px; font-size: 11px; color: var(--faint); }
.comment-tools { margin-left: auto; display: inline-flex; gap: 2px; }
.comment-tools .comment-del { margin-left: 0; }
.edit-form textarea { display: block; width: 100%; padding: 12px 13px; border-radius: 10px; border: 1px solid var(--gold-2); background: var(--surface); font-size: 15px; line-height: 1.7; resize: vertical; box-shadow: 0 0 0 3px rgba(201, 167, 111, .15); }
.edit-btns { display: flex; justify-content: flex-end; gap: 6px; margin-top: 8px; }
.edit-btns .primary, .edit-btns .secondary { padding: 8px 14px; font-size: 13px; }
.comment .edit-form { margin-top: 6px; }

/* file lists (주문건 / 롯데송장) */
.paste-zone.over { border-style: solid; border-color: var(--gold); background: #efe2c6; }
.file-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.file-list li { display: flex; align-items: center; gap: 6px; padding: 4px 6px 4px 4px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow); }
.file-link { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 10px 10px; border-radius: 9px; }
.file-link:hover { background: #fffaf0; }
.file-icon { flex: none; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; color: #1f7a4a; background: #e4f2ea; }
.file-main { flex: 1; min-width: 0; }
.file-main strong { display: block; font-size: 14.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-main small { display: flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; }
.file-dl { flex: none; display: inline-flex; align-items: center; gap: 5px; padding: 7px 11px; border-radius: 8px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); background: var(--surface-2); border: 1px solid var(--line-2); }
.file-dl em { font-style: normal; }
.file-link:hover .file-dl { color: var(--gold); border-color: var(--gold-2); }
.file-del { flex: none; width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; color: var(--faint); }
.file-del:hover { color: var(--urgent); background: var(--urgent-soft); }
.file-empty { border: 1px dashed var(--line); border-radius: 14px; color: var(--faint); }
@media (max-width: 640px) {
  .file-dl em { display: none; }
  .file-icon { width: 34px; height: 34px; }
}
.side-nav button.drop-over, .mobile-sheets button.drop-over { outline: 2px dashed var(--gold-2); outline-offset: -2px; background: rgba(201, 167, 111, .2); color: #fff; }
.mobile-sheets button.drop-over { color: var(--ink); }
