:root {
  --bg: #f6f5f1;
  --surface: #ffffff;
  --line: #e3e0d8;
  --text: #1d1f23;
  --muted: #62666d;
  --accent: #f2c230;
  --accent-soft: #fff4cc;
  --accent-ink: #5a4500;
  --danger: #b42318;
  --danger-soft: #fdecea;
  --action: #9a4b00;
  --action-soft: #fff1e0;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(0,0,0,.06), 0 2px 8px rgba(0,0,0,.04);
  font-family: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  font-size: 14px;
}
* { box-sizing: border-box; }
body { margin: 0; height: 100vh; display: flex; flex-direction: column; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 12px; }

.demo-bar { background: var(--accent-soft); color: var(--accent-ink); text-align: center; padding: 6px 12px; font-size: 13px; border-bottom: 1px solid #f0dc8a; }

/* buttons */
.btn { border: 1px solid var(--line); background: var(--surface); border-radius: 8px; padding: 7px 12px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.btn:hover { border-color: #c9c4b8; }
.btn.primary { background: var(--accent); border-color: #d9a90f; color: #2b2100; font-weight: 600; }
.btn.primary:hover { background: #e9b81f; }
.btn.ghost { background: transparent; }
.btn.small { padding: 4px 8px; font-size: 12px; }
.btn.danger { color: var(--danger); }
.btn:disabled { opacity: .55; cursor: progress; }
:focus-visible { outline: 3px solid #1d1f23; outline-offset: 2px; }

/* login */
.login { min-height: 90vh; display: grid; place-items: center; padding: 20px; }
.login-card { background: var(--surface); padding: 28px; border-radius: 14px; box-shadow: var(--shadow); width: min(380px, 100%); display: grid; gap: 12px; }
.login-card h1 { margin: 0; font-size: 20px; }
.login-card label { display: grid; gap: 4px; font-weight: 600; }
.login-card input { padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; }
.demo-accounts { font-size: 12px; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 10px; }
.demo-accounts button { margin: 3px 4px 0 0; }

/* layout */
.app { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.login { flex: 1; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 20px; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: 0 1px 0 rgba(0,0,0,.02); }
/* 브랜드 */
.brand-wrap { display: flex; align-items: center; gap: 14px; min-width: 0; }
.brand { all: unset; cursor: pointer; display: flex; align-items: center; gap: 11px; border-radius: 12px; padding: 2px 6px 2px 2px; }
.brand:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.brand-mark { width: 38px; height: 38px; flex: none; display: block; filter: drop-shadow(0 3px 6px rgba(29,31,35,.18)); transition: transform .2s; }
.brand:hover .brand-mark { transform: rotate(-4deg) scale(1.04); }
.brand-mark.lg { width: 48px; height: 48px; }
.brand-text { display: flex; flex-direction: column; gap: 1px; line-height: 1.1; }
.brand-eyebrow { font-size: 10px; font-weight: 700; letter-spacing: .16em; color: #9a8a55; }
.brand-title { margin: 0; font-size: 21px; font-weight: 800; letter-spacing: -.02em; color: #1d1f23; white-space: nowrap; }
.brand-title em { font-style: normal; background: linear-gradient(transparent 58%, var(--accent) 58%, var(--accent) 92%, transparent 92%); padding: 0 2px; }
.brand-today { display: flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: #f6f4ee; border: 1px solid #ebe6d6; font-size: 12.5px; color: #4b4637; white-space: nowrap; }
.brand-today b { color: #1d1f23; }
.brand-today .sep { width: 1px; height: 12px; background: #ddd5bd; }
.brand-today .over { color: #b91c1c; font-weight: 700; }
.login-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 4px; }
.login-brand .brand-title { font-size: 23px; }
.topbar-right { display: flex; gap: 8px; align-items: center; }
.me { color: var(--muted); }
.msg-toggle-top { display: none; }

.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px 16px; }
.search { flex: 1 1 200px; min-width: 140px; max-width: 360px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.chips { display: flex; gap: 4px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 5px 11px; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--text); color: #fff; border-color: var(--text); }
.view-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.seg { border: 0; background: var(--surface); padding: 7px 12px; cursor: pointer; }
.seg[aria-pressed="true"] { background: var(--accent-soft); font-weight: 600; }
.filters { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: end; padding: 0 16px 10px; }
.filters label { display: grid; gap: 3px; font-size: 12px; color: var(--muted); }
.filters label.check { display: flex; align-items: center; gap: 6px; color: var(--text); font-size: 13px; }
.filters select, .filters input[type=date] { padding: 5px 7px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }

.main { flex: 1; display: flex; min-height: 0; position: relative; }
.status-line { font-size: 12px; color: var(--muted); margin: 0 0 6px; }
.board-wrap { flex: 1; overflow: auto; padding: 8px 16px 16px; min-width: 0; }
.board { display: grid; grid-template-columns: repeat(5, minmax(196px, 1fr)); gap: 12px; min-height: calc(100% - 24px); }
.col { background: #efede7; border-radius: var(--radius); display: flex; flex-direction: column; min-height: 200px; border: 2px solid transparent; transition: border-color .12s, background .12s; }
.col-head { padding: 10px 12px 6px; display: flex; justify-content: space-between; align-items: baseline; }
.col-title { font-weight: 700; }
.col-count { font-weight: 700; background: var(--surface); border-radius: 999px; padding: 1px 9px; font-size: 12px; }
.col-sub { padding: 0 12px 6px; font-size: 11px; color: var(--muted); min-height: 15px; }
.col-body { padding: 4px 8px 10px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.col.drop-ok { border-color: var(--accent); border-style: dashed; background: #f7f1dc; }
.col.drop-no { opacity: .45; }
.col.drop-over { background: var(--accent-soft); border-style: solid; }
.col.drop-over .col-body { box-shadow: inset 0 4px 0 var(--accent); border-radius: 0 0 var(--radius) var(--radius); }
.col.drop-over .col-head::after { content: "여기에 놓기"; font-size: 11px; color: var(--accent-ink); background: var(--accent); border-radius: 999px; padding: 1px 8px; margin-left: 6px; }
.empty { color: var(--muted); font-size: 12px; text-align: center; padding: 14px 0; }

/* card */
.card { background: var(--surface); border-radius: 9px; padding: 10px 11px; box-shadow: var(--shadow); border: 1px solid transparent; cursor: pointer; position: relative; }
.card:hover { border-color: #d6d1c4; }
.card.dragging { opacity: .4; }
.card.pending { opacity: .7; border: 1px dashed var(--muted); }
.card-top { display: flex; justify-content: space-between; gap: 6px; align-items: flex-start; }
.card-id { font-size: 11px; color: var(--muted); flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-top: 2px; }
.card-title { font-weight: 600; margin: 3px 0 6px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { font-size: 12px; color: var(--muted); display: grid; gap: 2px; }
.card-meta b { color: var(--text); font-weight: 500; }
.badges { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 7px; }
.badge { font-size: 11px; padding: 1px 7px; border-radius: 999px; background: #f0eee8; color: #3b3e44; white-space: nowrap; }
.badge.proj { background: var(--accent-soft); color: var(--accent-ink); }
.badge.danger { background: var(--danger-soft); color: var(--danger); font-weight: 600; }
.badge.action { background: var(--action-soft); color: var(--action); font-weight: 600; }
.badge.lock { background: #e9eaf0; }
.badge.saving { background: #e8eef9; color: #1e3a8a; }
.menu-btn { white-space: nowrap; flex: none; border: 0; background: transparent; padding: 2px 6px; border-radius: 6px; cursor: pointer; color: var(--muted); font-size: 12px; }
.menu-btn:hover { background: #f0eee8; color: var(--text); }
.due { font-variant-numeric: tabular-nums; }
.due.over { color: var(--danger); font-weight: 600; }

/* 단계 색 (경고색 아님): 접수 회색 · 검토 보라 · 진행 파랑 · 완료 초록 · 반려 연회색 */
[data-status="접수"] { --st: #64748b; --st-bg: #f1f5f9; }
[data-status="검토 중"] { --st: #7c3aed; --st-bg: #f5f3ff; }
[data-status="진행 중"] { --st: #2563eb; --st-bg: #eff6ff; }
[data-status="완료"] { --st: #16a34a; --st-bg: #f0fdf4; }
[data-status="반려"] { --st: #9ca3af; --st-bg: #f4f4f5; }
.col { background: var(--st-bg); border-top: 4px solid var(--st); }
.st-pill { display: inline-block; background: var(--st); color: #fff; font-weight: 700; font-size: 12px; padding: 2px 10px; border-radius: 999px; white-space: nowrap; }
.col-out { border: 2px dashed #d4d4d8; border-top: 4px solid var(--st); margin-left: 10px; }
.col-out .card { background: #fafafa; }
.col-out .card-title { color: #555; }
.card { border-left: 3px solid var(--st, transparent); }
.card-meta .due.over { color: var(--danger); font-weight: 700; }
.lane-stats .over { color: var(--danger); font-weight: 600; }

/* 탭: 내 업무 / 팀 업무 */
.tabs { display: inline-flex; background: #ebe8e0; border-radius: 10px; padding: 3px; }
.tab { border: 0; background: transparent; padding: 7px 16px; border-radius: 8px; cursor: pointer; font-weight: 600; color: var(--muted); }
.tab[aria-selected="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.tab-n { font-size: 12px; color: var(--muted); margin-left: 2px; }
.tab-n:empty { display: none; }

/* 상세: 최소 정보 */
.drawer-head h2 { margin: 2px 40px 12px 0; }
.stages { display: flex; gap: 4px; flex-wrap: wrap; }
.stage { border: 2px solid var(--st); background: var(--surface); color: var(--st); font-weight: 700; border-radius: 999px; padding: 5px 12px; cursor: pointer; font-size: 13px; }
.stage:hover:not([disabled]) { background: var(--st-bg); }
.stage.cur { background: var(--st); color: #fff; cursor: default; }
.stage[disabled]:not(.cur) { opacity: .3; cursor: not-allowed; }
.stage.out { margin-left: 8px; border-style: dashed; }
.d-content { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; line-height: 1.6; background: #f8f7f3; border-radius: 10px; padding: 12px 14px; margin: 14px 0 12px; }
.mini { display: grid; grid-template-columns: 64px 1fr; gap: 8px 10px; margin: 0 0 12px; font-size: 14px; }
.mini dt { color: var(--muted); }
.mini dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.mini .over { color: var(--danger); font-weight: 700; }
.nudge { display: flex; justify-content: space-between; align-items: center; gap: 8px; background: var(--action-soft); color: var(--action); border-radius: 10px; padding: 8px 12px; margin-bottom: 10px; font-size: 13px; font-weight: 600; }
.d-sec { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 12px; }
.d-sec-h { font-weight: 700; margin-bottom: 8px; }
.child-row { align-items: center; }
.linkbtn { border: 0; background: none; color: var(--muted); cursor: pointer; padding: 2px 0; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
.linkbtn:hover { color: var(--text); }
.d-links { border-top: 1px solid var(--line); margin-top: 14px; padding-top: 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.d-links .sep { color: #ccc; }
.hist { margin-top: 12px; }
.hist li { font-size: 13px; }

/* 언제까지? 빠른 선택 */
.due-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 4px; }
.due-chip { border: 1px solid var(--line); background: var(--surface); border-radius: 10px; padding: 8px 12px; cursor: pointer; font-weight: 600; }
.due-chip:hover { border-color: #2563eb; color: #2563eb; }
.due-chip.on { background: #2563eb; color: #fff; border-color: #2563eb; }
.due-chip.on .muted { color: #dbe6ff; }
.dlg-sub { margin: 4px 0 0; }

/* people view */
.people { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.lane { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.lane.lane-me { border: 2px solid var(--accent); box-shadow: 0 2px 10px rgba(217,169,15,.15); }
.lane-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.lane-head .lane-stats { margin-left: auto; color: var(--muted); }
.lane-name { font-size: 15px; }
.lane-stats { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 12px; }
.lane-stat b { font-size: 14px; }
.lane-grid { display: grid; grid-template-columns: repeat(5, minmax(180px, 1fr)); gap: 8px; padding: 8px; overflow-x: auto; }
.lane .col { min-height: 60px; }
.lane .col-head { padding: 6px 10px 2px; font-size: 12px; }
.lane .col-body { padding: 4px 6px 8px; }
.lane-note { margin: 0; }

/* list */
.list table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.list th, .list td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); font-size: 13px; vertical-align: top; }
.list th { background: #faf9f6; font-weight: 600; color: var(--muted); white-space: nowrap; }
.list tr { cursor: pointer; }
.list tr:hover td { background: #fcfbf7; }

/* message panel */
.msg-panel { width: 360px; flex: none; background: var(--surface); border-right: 1px solid var(--line); position: relative; overflow: auto; transition: width .15s; }
.msg-panel.collapsed { width: 34px; overflow: hidden; }
.msg-panel.collapsed .msg-body { display: none; }
.msg-collapse { position: absolute; right: 6px; top: 8px; z-index: 2; border: 1px solid var(--line); background: var(--surface); border-radius: 6px; width: 22px; height: 22px; cursor: pointer; line-height: 1; }
.msg-panel.collapsed .msg-collapse { transform: rotate(180deg); }
.msg-body { padding: 12px 36px 18px 16px; display: grid; gap: 14px; align-content: start; }
.eyebrow { display: block; font-size: 11px; color: var(--muted); letter-spacing: .04em; margin-bottom: 4px; }
.msg-goal strong { font-size: 18px; background: linear-gradient(transparent 60%, var(--accent-soft) 60%); }
.msg-block ol { margin: 0; padding-left: 20px; line-height: 1.8; font-weight: 600; }
.msg-block p { margin: 0; line-height: 1.55; }
.notice { border-top: 1px solid var(--line); padding-top: 14px; }
.notice-text { white-space: pre-wrap; }

/* drawer */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(20,20,20,.18); z-index: 20; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(560px, 100%); background: var(--surface); z-index: 21; box-shadow: -4px 0 24px rgba(0,0,0,.12); display: flex; flex-direction: column; }
.drawer-head { padding: 16px 18px 12px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { margin: 4px 0 8px; font-size: 18px; line-height: 1.35; word-break: keep-all; overflow-wrap: anywhere; }
.drawer-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.drawer-body { overflow: auto; padding: 8px 18px 30px; flex: 1; }
.drawer-close { position: absolute; right: 12px; top: 12px; }
.sec { border-bottom: 1px solid var(--line); padding: 4px 0; }
.sec > summary { cursor: pointer; padding: 10px 0; font-weight: 700; display: flex; justify-content: space-between; align-items: center; list-style: none; }
.sec > summary::-webkit-details-marker { display: none; }
.sec > summary::before { content: "▸"; margin-right: 6px; color: var(--muted); }
.sec[open] > summary::before { content: "▾"; }
.sec > summary .sum-left { flex: 1; }
.kv { display: grid; grid-template-columns: 120px 1fr; gap: 6px 10px; padding: 2px 0 12px; font-size: 13px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.hist { list-style: none; padding: 0; margin: 0 0 10px; }
.hist li { border-left: 2px solid var(--line); padding: 4px 0 10px 12px; position: relative; font-size: 13px; }
.hist li::before { content: ""; position: absolute; left: -5px; top: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.hist .h-top { display: flex; gap: 8px; flex-wrap: wrap; }
.hist .h-action { font-weight: 700; }
.hist .h-diff { color: var(--muted); font-size: 12px; margin-top: 2px; }
.hist .h-reason { margin-top: 2px; }
.child-row { display: flex; justify-content: space-between; gap: 8px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 6px; cursor: pointer; font-size: 13px; }

/* dialog */
.dlg { border: 0; border-radius: 14px; padding: 0; width: min(520px, calc(100% - 24px)); box-shadow: 0 10px 40px rgba(0,0,0,.25); }
.dlg::backdrop { background: rgba(20,20,20,.35); }
.dlg form { display: grid; gap: 12px; padding: 20px; max-height: 85vh; overflow: auto; }
.dlg h3 { margin: 0; font-size: 17px; }
.dlg .desc { margin: -4px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.fld { display: grid; gap: 4px; }
.fld > span { font-weight: 600; font-size: 13px; }
.fld .req { color: var(--danger); margin-left: 2px; }
.fld input:not([type=checkbox]):not([type=radio]), .fld select, .fld textarea { padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; width: 100%; }
.fld textarea { min-height: 76px; resize: vertical; }
.fld.check { display: flex; gap: 8px; align-items: center; }
.fld.check > span { font-weight: 500; }
.fld .hint { font-size: 12px; color: var(--muted); }
.fld.invalid input, .fld.invalid select, .fld.invalid textarea { border-color: var(--danger); background: #fffafa; }
.form-error { color: var(--danger); font-size: 13px; margin: 0; min-height: 0; white-space: pre-wrap; }
.form-error:empty { display: none; }
.form-info { background: var(--accent-soft); color: var(--accent-ink); font-size: 13px; padding: 8px 10px; border-radius: 8px; margin: 0; }
.dlg-actions { display: flex; justify-content: flex-end; gap: 8px; padding-top: 4px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.viewer-list { display: flex; flex-wrap: wrap; gap: 6px 12px; }
.viewer-list label { display: flex; gap: 4px; align-items: center; font-size: 13px; }

.radio-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.radio-opt { display: flex; gap: 8px; align-items: center; border: 1px solid var(--line); border-radius: 8px; padding: 9px 10px; cursor: pointer; font-size: 13px; }
.radio-opt:has(input:checked) { border-color: #d9a90f; background: var(--accent-soft); font-weight: 600; }
.radio-opt.lock:has(input:checked) { border-color: #3b3e44; background: #eceef3; }
.fld.invalid .radio-opt { border-color: var(--danger); }
.input-row { display: flex; gap: 6px; align-items: center; }
.input-row input { flex: 1; }
.suggest:not(:empty) { display: flex; gap: 8px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: #eef4ff; color: #1e3a8a; border-radius: 8px; padding: 8px 10px; font-size: 13px; margin-top: -4px; }

.more-fields { border: 1px dashed var(--line); border-radius: 10px; padding: 0 12px; }
.more-fields > summary { cursor: pointer; padding: 10px 0; font-size: 13px; color: var(--muted); }
.more-fields[open] > summary { color: var(--text); font-weight: 600; }
.more-body { display: grid; gap: 12px; padding-bottom: 12px; }
.row2 > .fld { min-width: 0; }
.elapsed { font-weight: 600; color: var(--text); }
.cmt { white-space: nowrap; }
.cmt-list { list-style: none; padding: 0; margin: 0 0 10px; display: grid; gap: 8px; }
.cmt-item { background: #f6f5f1; border-radius: 10px; padding: 8px 10px; }
.cmt-item.mine { background: var(--accent-soft); }
.cmt-top { display: flex; gap: 8px; align-items: center; font-size: 13px; }
.cmt-top .menu-btn { margin-left: auto; }
.cmt-body { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13px; margin-top: 3px; line-height: 1.5; }
.cmt-form { display: flex; gap: 6px; align-items: flex-end; }
.cmt-form textarea { flex: 1; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; resize: vertical; min-height: 40px; }

/* menu */
.menu { position: fixed; z-index: 30; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 6px 24px rgba(0,0,0,.14); padding: 6px; min-width: 190px; }
.menu .menu-title { font-size: 11px; color: var(--muted); padding: 4px 8px; }
.menu button { display: block; width: 100%; text-align: left; border: 0; background: transparent; padding: 8px 10px; border-radius: 6px; cursor: pointer; }
.menu button:hover, .menu button:focus { background: var(--accent-soft); outline: none; }

/* toasts */
.toasts { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); display: grid; gap: 6px; z-index: 40; }
.toast { background: #1d1f23; color: #fff; padding: 10px 14px; border-radius: 9px; font-size: 13px; box-shadow: var(--shadow); max-width: 90vw; }
.toast.err { background: var(--danger); }

/* responsive */
@media (max-width: 1100px) {
  .msg-panel { width: 300px; }
}
@media (max-width: 760px) {
  .main { flex-direction: column; }
  .msg-panel { display: none; position: static; order: -1; width: auto; max-height: 45vh; flex: none; box-shadow: none; border-right: 0; border-bottom: 1px solid var(--line); }
  .msg-panel.open-mobile { display: block; }
  .msg-panel .msg-collapse { display: none; }
  .msg-panel .msg-body { padding: 12px 14px; }
  .msg-toggle-top { display: inline-flex; }
  .me { display: none; }
  .board-wrap { scroll-snap-type: x mandatory; scroll-padding: 0 16px; }
  .brand { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
  .topbar { gap: 8px; }
  .topbar-right { gap: 4px; flex: none; }
  .msg-panel { max-height: 60vh; }
  .msg-toggle-top { display: inline-grid !important; place-items: center; }
  .topbar { padding: 8px 12px; }
  .col { scroll-snap-align: start; }
  .kv { grid-template-columns: 100px 1fr; }
  .row2 { grid-template-columns: 1fr; }
  /* 휴대폰: 사람별 보기에서는 카드가 있는 단계만 위아래로 */
  .lane-grid { grid-template-columns: minmax(0, 1fr); overflow: visible; }
  .lane .col:not(:has(.card)) { display: none; }
  .board { grid-template-columns: minmax(0, 1fr); }
  .board .col:not(:has(.card)) { min-height: 0; }
  .board .col:not(:has(.card)) .col-body { display: none; }
  .col-out { margin-left: 0; }
  .tabs { order: -1; width: 100%; }
  .tab { flex: 1; }
  .lane .col-out { margin-left: 0; }
  .lane-grid:not(:has(.card))::after { content: "업무 없음"; color: var(--muted); font-size: 12px; padding: 4px 6px; }
}

/* ---------- 헤더 ---------- */
.icon-btn { border: 1px solid var(--line); background: var(--surface); border-radius: 8px; width: 30px; height: 30px; cursor: pointer; font-weight: 700; color: var(--muted); line-height: 1; }
.icon-btn:hover { color: var(--text); border-color: #c9c4b8; }
.me-btn { display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent; cursor: pointer; padding: 3px 8px 3px 3px; border-radius: 999px; font-weight: 600; }
.me-btn:hover { background: #f0eee8; }
.me-btn .me { color: var(--text); }
.avatar { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #1d1f23; color: #fff; font-size: 12px; font-weight: 700; flex: none; }
.avatar.sm { width: 20px; height: 20px; font-size: 10px; background: #8a8f98; }
.tiny { font-size: 11px; }

/* ---------- 빠른 추가 · 카드 체크 ---------- */
.quick-add { padding: 4px 8px 0; }
.quick-add input { width: 100%; border: 1px dashed #b9c2cf; background: rgba(255,255,255,.7); border-radius: 8px; padding: 8px 10px; font-size: 13px; }
.quick-add input:focus { border-style: solid; border-color: var(--st); background: #fff; outline: none; box-shadow: 0 0 0 3px rgba(100,116,139,.15); }
.chk { display: inline-block; width: 16px; height: 16px; border: 2px solid #2563eb; border-radius: 50%; background: #fff; margin: 0 7px -3px 0; cursor: pointer; padding: 0; flex: none; vertical-align: baseline; }
.chk:hover { background: #dbeafe; box-shadow: inset 0 0 0 2px #fff; }
.chk.on { background: #16a34a; border-color: #16a34a; box-shadow: inset 0 0 0 2px #fff; cursor: default; }
.card[data-status="완료"] .card-title { color: #555; }
.badge.ok { background: #dcfce7; color: #166534; }

/* ---------- 상세: 노션식 속성 ---------- */
.d-title { outline: none; border-radius: 6px; padding: 2px 4px; margin-left: -4px !important; }
.d-title[contenteditable="true"]:hover { background: #f4f2ec; }
.d-title[contenteditable="true"]:focus { background: #fff; box-shadow: 0 0 0 2px #e6c24a; }
.d-content.editable { cursor: text; }
.d-content.editable:hover { box-shadow: inset 0 0 0 1px #d6d1c4; }
.d-content.editing { background: #fff; padding: 0; box-shadow: none; }
.d-content textarea { width: 100%; border: 1px solid #e6c24a; border-radius: 10px; padding: 12px 14px; font: inherit; line-height: 1.6; resize: vertical; min-height: 110px; }
.inline-actions { display: flex; justify-content: flex-end; gap: 6px; margin-top: 6px; }
.props { display: grid; gap: 2px; margin-bottom: 12px; }
.prop { display: grid; grid-template-columns: 76px 1fr; align-items: center; min-height: 32px; font-size: 14px; }
.prop-k { color: var(--muted); font-size: 13px; }
.prop-v { min-width: 0; overflow-wrap: anywhere; }
.pin { border: 1px solid transparent; background: transparent; border-radius: 6px; padding: 4px 6px; margin-left: -6px; font: inherit; max-width: 100%; color: var(--text); }
.pin:hover:not(:disabled) { background: #f4f2ec; }
.pin:focus { border-color: #e6c24a; background: #fff; outline: none; }
.pin:disabled { opacity: 1; -webkit-appearance: none; appearance: none; }
.pin.over { color: var(--danger); font-weight: 700; }
.pin-check { display: inline-flex; gap: 6px; align-items: center; cursor: pointer; font-size: 13px; }
.over { color: var(--danger); font-weight: 600; }
.progress { height: 4px; background: #eceae4; border-radius: 4px; overflow: hidden; margin-bottom: 8px; }
.progress i { display: block; height: 100%; background: #16a34a; transition: width .2s; }
.chk-list { list-style: none; padding: 0; margin: 0 0 6px; }
.chk-item { display: flex; align-items: flex-start; gap: 8px; padding: 4px 2px; border-radius: 6px; }
.chk-item:hover { background: #f8f7f3; }
.chk-item input { margin-top: 3px; width: 16px; height: 16px; accent-color: #16a34a; flex: none; }
.chk-text { flex: 1; outline: none; border-radius: 4px; padding: 0 3px; font-size: 14px; overflow-wrap: anywhere; }
.chk-text:focus { background: #fff; box-shadow: 0 0 0 2px #e6c24a; }
.chk-item.done .chk-text { text-decoration: line-through; color: #9a9a9a; }
.chk-del { border: 0; background: none; color: #bbb; cursor: pointer; font-size: 16px; line-height: 1; visibility: hidden; }
.chk-item:hover .chk-del { visibility: visible; }
.chk-add { width: 100%; border: 0; border-bottom: 1px dashed var(--line); padding: 6px 2px; background: transparent; font-size: 14px; }
.chk-add:focus { outline: none; border-bottom-color: #e6c24a; }
.cmt-top .avatar { margin-right: 2px; }

/* ---------- 캘린더 (구글 캘린더식) ---------- */
.cal-head { display: flex; justify-content: space-between; align-items: center; }
.cal-head b { font-size: 16px; }
.cal-nav { display: flex; gap: 4px; align-items: center; }
.cal-scope { margin: 2px 0 6px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.cal-wd { font-size: 11px; color: var(--muted); text-align: center; padding: 4px 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #faf9f6; }
.cal-wd.sun, .cal-cell.sun .cal-d { color: #dc2626; }
.cal-cell { min-height: 62px; padding: 2px 2px 3px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); cursor: pointer; overflow: hidden; display: flex; flex-direction: column; gap: 2px; }
.cal-cell:hover { background: #faf9f6; }
.cal-cell.other { background: #fbfbfa; }
.cal-cell.other .cal-d { color: #c4c4c4; }
.cal-cell.sel { background: #fffbea; }
.cal-cell.drop { background: #dbeafe; box-shadow: inset 0 0 0 2px #2563eb; }
.cal-d { font-size: 11px; font-weight: 600; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; align-self: center; }
.cal-cell.today .cal-d { background: #2563eb; color: #fff !important; }
.cal-ev { font-size: 10.5px; line-height: 1.35; padding: 1px 4px; border-radius: 4px; background: var(--st); color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-ev[draggable="true"] { cursor: grab; }
.cal-ev.done { background: #e5e7eb; color: #6b7280; text-decoration: line-through; }
.cal-ev.over { background: #fff; color: var(--danger); box-shadow: inset 0 0 0 1.5px var(--danger); font-weight: 700; }
.cal-more { font-size: 10px; color: var(--muted); padding-left: 3px; }
.cal-agenda { margin-top: 10px; }
.cal-agenda-h { font-weight: 700; font-size: 13px; margin-bottom: 6px; }
.ag-item { display: flex; align-items: center; gap: 8px; padding: 6px 6px; border-radius: 8px; cursor: pointer; font-size: 13px; }
.ag-item:hover { background: #f4f2ec; }
.ag-item.done .ag-t { text-decoration: line-through; color: #999; }
.ag-t { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--st); flex: none; }
.st-dot.over { background: var(--danger); }
.ag-empty { padding: 4px 6px; }
.ag-over { margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line); font-size: 12px; color: var(--danger); font-weight: 600; }
.promise { border-top: 1px solid var(--line); padding-top: 10px; }
.promise summary { cursor: pointer; list-style: none; display: flex; gap: 6px; align-items: baseline; }
.promise summary::-webkit-details-marker { display: none; }
.promise summary::after { content: "▾"; color: var(--muted); margin-left: auto; font-size: 11px; }
.promise[open] summary::after { content: "▴"; }
.promise summary strong { background: linear-gradient(transparent 60%, var(--accent-soft) 60%); }
.promise .eyebrow { display: inline; }
.promise-body { padding: 8px 0 0; font-size: 13px; }
.promise-body .eyebrow { display: block; margin-top: 6px; }
.promise-body ol { margin: 2px 0 4px; padding-left: 18px; line-height: 1.7; font-weight: 600; }
.promise-body p { margin: 0; line-height: 1.55; }
.notice { border-top: 1px solid var(--line); padding-top: 10px; font-size: 13px; }
.notice .notice-text { margin: 4px 0; }
.notice p.tiny { margin: 4px 0 0; }

/* ---------- 팀원 관리 · 단축키 ---------- */
.dlg form.admin { width: 100%; }
.admin-t { width: 100%; border-collapse: collapse; font-size: 13px; }
.admin-t th, .admin-t td { text-align: left; padding: 7px 6px; border-bottom: 1px solid var(--line); }
.admin-t th { color: var(--muted); font-weight: 600; font-size: 12px; }
.admin-t tr.inactive td { color: #aaa; }
.admin-act { white-space: nowrap; }
.admin-act .linkbtn { margin-right: 6px; }
.dlg:has(form.admin) { width: min(640px, calc(100% - 24px)); }
.keys { display: grid; grid-template-columns: 130px 1fr; gap: 8px 12px; margin: 4px 0; font-size: 14px; }
.keys dt { text-align: right; }
.keys dd { margin: 0; }
kbd { display: inline-block; border: 1px solid #ccc; border-bottom-width: 2px; border-radius: 5px; padding: 0 6px; font-size: 12px; font-family: inherit; background: #fafafa; }

/* ---------- 파일 ---------- */
.ficon { display: inline-grid; place-items: center; width: 34px; height: 40px; border-radius: 6px; background: var(--fc, #64748b); color: #fff; font-size: 10px; font-weight: 800; letter-spacing: .02em; flex: none; position: relative; }
.ficon::after { content: ""; position: absolute; top: 0; right: 0; border-width: 0 8px 8px 0; border-style: solid; border-color: #f6f5f1 #f6f5f1 rgba(0,0,0,.18) rgba(0,0,0,.18); border-radius: 0 6px 0 2px; }
.file-list { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 6px; }
.file-item { display: flex; gap: 10px; align-items: center; padding: 6px 8px; border: 1px solid var(--line); border-radius: 10px; }
.file-item:hover { background: #faf9f6; }
.file-item .ficon { width: 28px; height: 32px; font-size: 9px; }
.file-main { display: grid; min-width: 0; flex: 1; }
.fname { text-align: left; color: var(--text); font-weight: 600; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.fname:hover { text-decoration: underline; }
.file-item .chk-del { visibility: visible; color: #aaa; }
.file-actions { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.file-actions label.btn { cursor: pointer; }
.drawer.file-over::after { content: "여기에 놓으면 파일을 올립니다"; position: absolute; inset: 8px; border: 3px dashed #2563eb; border-radius: 14px; background: rgba(239,246,255,.92); display: grid; place-items: center; font-weight: 700; color: #1e40af; font-size: 16px; pointer-events: none; }

/* ---------- 양식함 ---------- */
.tpl-wrap { display: block; }
.tpl-view { max-width: 980px; }
.tpl-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 10px; }
.tpl-head h2 { margin: 0 0 2px; font-size: 18px; }
.tpl-head p { margin: 0; }
.tpl-cats { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.cat-chip { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 5px 12px; cursor: pointer; font-size: 13px; }
.cat-chip.on { background: var(--text); color: #fff; border-color: var(--text); }
.cat-chip.on .muted { color: #ccc; }
.tpl-grid { display: grid; gap: 8px; }
.tpl-card { display: flex; gap: 12px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; box-shadow: var(--shadow); }
.tpl-main { flex: 1; min-width: 0; }
.tpl-title { font-weight: 700; margin-bottom: 2px; }
.tpl-note { color: #555; margin-top: 3px; }
.tpl-act { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.tpl-act label.btn { cursor: pointer; }
@media (max-width: 760px) { .tpl-card { flex-wrap: wrap; } .tpl-act { width: 100%; justify-content: flex-start; } .tabs .tab { padding: 7px 8px; } }

/* 우선순위 A·B (C는 표시 없음) */
.pri { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; font-size: 11px; font-weight: 800; line-height: 1; margin-right: 6px; vertical-align: 2px; flex: none; }
.pri-a { background: #dc2626; color: #fff; }
.pri-b { background: #fff; color: #c2410c; box-shadow: inset 0 0 0 2px #f97316; }
.pri-sel[data-pri="A"] { color: #dc2626; font-weight: 700; }
.pri-sel[data-pri="B"] { color: #c2410c; font-weight: 700; }

/* 칸 접기 */
.more-btn { all: unset; box-sizing: border-box; cursor: pointer; display: block; width: 100%; text-align: center; padding: 7px; margin-top: 2px; border-radius: 8px; font-size: 12.5px; font-weight: 600; color: var(--muted); border: 1px dashed var(--line); }
.more-btn:hover, .more-btn:focus-visible { color: var(--ink, #111); background: #fff; border-style: solid; }

/* 오늘 할 일 고정 ☆ */
.card { position: relative; }
.pin-btn { all: unset; position: absolute; top: 8px; right: 8px; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 6px; cursor: pointer; color: #cbd5e1; font-size: 15px; opacity: 0; transition: opacity .12s; }
.card:hover .pin-btn, .card:focus-within .pin-btn, .pin-btn:focus-visible, .pin-btn.on { opacity: 1; }
.pin-btn:hover { background: #fef3c7; color: #d97706; }
.pin-btn.on { color: #f59e0b; }
@media (hover: none) { .pin-btn { opacity: 1; } }
.card-title { padding-right: 18px; }

/* 오늘 할 3가지 */
.today-bar[hidden] { display: none; }
.today-bar { margin: 0 0 10px; padding: 10px 12px; border-radius: 12px; background: #fffbeb; border: 1px solid #fde68a; }
.today-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.today-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.today-slot { display: flex; align-items: center; min-height: 40px; border-radius: 8px; background: #fff; border: 1px solid #fde68a; }
.today-slot.empty { border-style: dashed; padding: 0 10px; gap: 8px; background: transparent; }
.today-slot.over { border-color: #fca5a5; }
.today-open { all: unset; cursor: pointer; flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; padding: 6px 4px 6px 10px; }
.today-open:focus-visible { outline: 2px solid var(--accent, #2563eb); border-radius: 8px; }
.today-n { flex: none; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; background: #f59e0b; color: #fff; }
.today-slot.empty .today-n { background: #fde68a; }
.today-t { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; min-width: 0; }
.today-x { all: unset; cursor: pointer; padding: 0 10px; color: var(--muted); font-size: 16px; align-self: stretch; display: grid; place-items: center; border-radius: 0 8px 8px 0; }
.today-x:hover { color: #dc2626; background: #fef2f2; }
@media (max-width: 760px) { .today-slots { grid-template-columns: 1fr; } }

/* 가이드 */
#dlg.wide { width: min(680px, 94vw); }
.guide .g-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 10px; }
.g-tab { all: unset; cursor: pointer; padding: 8px 12px; font-weight: 600; font-size: 13.5px; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.g-tab[aria-selected="true"] { color: var(--ink, #111); border-bottom-color: var(--ink, #111); }
.g-body { max-height: 58vh; overflow: auto; font-size: 13.5px; line-height: 1.65; padding-right: 4px; }
.g-body h4 { margin: 14px 0 6px; font-size: 13.5px; }
.g-body h4:first-child { margin-top: 2px; }
.g-list { margin: 0; padding-left: 20px; }
.g-list li { margin: 3px 0; }
.g-t { border-collapse: collapse; width: 100%; }
.g-t td { padding: 5px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
.g-t td:first-child { width: 72px; white-space: nowrap; }
.tip { font-size: 12.5px; color: var(--muted); }
.tip summary { cursor: pointer; width: fit-content; }
.tip ul { margin: 6px 0 0; padding-left: 18px; line-height: 1.6; }

/* 고정 업무 */
.routines { border-top: 1px solid var(--line); padding: 10px 0; }
.rt-head { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.rt-head .btn { margin-left: auto; }
.rt-list { display: flex; flex-direction: column; gap: 4px; }
.rt-item { all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; gap: 2px; padding: 6px 8px; border-radius: 6px; border-left: 3px solid var(--st, #94a3b8); background: var(--bg-soft, #f8fafc); }
.rt-item:hover, .rt-item:focus-visible { background: var(--accent-soft); outline: none; }
.rt-item[data-status="검토 중"] { --st: #7c3aed; }
.rt-item[data-status="진행 중"] { --st: #2563eb; }
.rt-item.over { border-left-color: #dc2626; }
.rt-t { font-size: 13px; font-weight: 600; }
.rt-empty { padding: 4px 0; line-height: 1.5; }

/* 창 닫기 ✕ · 작성 보호 */
.dlg form { position: relative; }
.dlg-x { position: absolute; top: 12px; right: 12px; width: 30px; height: 30px; border: 0; background: transparent; border-radius: 8px; cursor: pointer; color: var(--muted); font-size: 15px; line-height: 1; z-index: 2; }
.dlg-x:hover, .dlg-x:focus-visible { background: #f1f5f9; color: var(--ink, #111); }
.dlg h3 { padding-right: 34px; }
.dlg-guard { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 10px; background: #fff7ed; border: 1px solid #fdba74; font-size: 13px; font-weight: 600; color: #9a3412; }
.dlg-guard[hidden] { display: none; }
.dlg-guard span { flex: 1 1 200px; }
.danger-ghost { color: #b91c1c; }
.drawer-guard { margin: 8px 0 0; }
.draft-note { margin: 6px 0 0; font-size: 12.5px; color: #92400e; background: #fffbeb; padding: 6px 10px; border-radius: 8px; }
.link-btn { all: unset; cursor: pointer; text-decoration: underline; color: var(--accent, #2563eb); font-size: 12.5px; }
.link-btn:focus-visible { outline: 2px solid var(--accent, #2563eb); }

/* 댓글 알림 */
.topbar { position: relative; }
.bell { position: relative; font-size: 14px; font-weight: 400; }
.bell.has { border-color: #fca5a5; background: #fef2f2; }
.bell-n { position: absolute; top: -6px; right: -6px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: #dc2626; color: #fff; font-size: 10.5px; font-weight: 700; line-height: 17px; text-align: center; }
.bell-n[hidden] { display: none; }
.bell-panel { position: absolute; top: calc(100% + 4px); right: 16px; width: min(360px, calc(100vw - 24px)); max-height: 70vh; overflow: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 32px rgba(0,0,0,.16); z-index: 50; }
.bell-panel[hidden] { display: none; }
.bell-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px 8px; border-bottom: 1px solid var(--line); }
.bell-list { display: flex; flex-direction: column; }
.bell-item { all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; gap: 2px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.bell-item:hover, .bell-item:focus-visible { background: #f8fafc; }
.bell-t { font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bell-b { font-size: 12.5px; color: #334155; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.bell-empty { padding: 16px 14px; margin: 0; line-height: 1.6; }
.badge.new { background: #fef2f2; color: #b91c1c; font-weight: 700; }
.badge .dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #dc2626; vertical-align: 1px; }

/* 댓글 @언급 */
.cmt-form { position: relative; }
.mention-pop { position: absolute; left: 0; right: 0; bottom: calc(100% + 6px); max-height: 300px; overflow: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 28px rgba(0,0,0,.16); z-index: 30; padding: 4px 0; }
.mention-pop[hidden] { display: none; }
.mp-hint { padding: 6px 12px 4px; font-size: 12px; font-weight: 600; }
.mp-hint .muted { font-weight: 400; margin-left: 4px; }
.mp-g { padding: 8px 12px 2px; font-size: 11px; font-weight: 700; color: var(--muted); letter-spacing: .02em; }
.mp-item { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; gap: 8px; width: 100%; padding: 6px 12px; font-size: 13px; }
.mp-item.on, .mp-item:hover { background: #eff6ff; }
.mp-item.off { cursor: default; opacity: .5; }
.mp-ic { width: 18px; text-align: center; font-weight: 700; color: #2563eb; flex: none; }
.mp-l { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.mp-s { flex: none; font-size: 11.5px; color: var(--muted); max-width: 45%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mp-empty { padding: 8px 12px; }
.mention { display: inline; border: 0; font: inherit; font-weight: 600; border-radius: 5px; padding: 0 4px; margin: 0 1px; }
.m-user { color: #1d4ed8; background: #eff6ff; }
.m-user.me { color: #b45309; background: #fef3c7; }
button.mention { cursor: pointer; }
.m-task { color: #6d28d9; background: #f5f3ff; }
.m-tpl { color: #047857; background: #ecfdf5; }
button.mention:hover { text-decoration: underline; }
.m-off { color: var(--muted); background: #f1f5f9; }
.bell-mention { color: #b45309; font-weight: 700; }

/* 팀 공지 띠 (오늘 할 3가지 위) */
.notice-band[hidden] { display: none; }
.notice-band { display: flex; align-items: center; gap: 8px; min-height: 40px; margin: 0 0 8px; padding: 4px 6px 4px 12px; border-radius: 10px; background: #eef2ff; border: 1px solid #c7d2fe; overflow: hidden; }
.notice-band.important { background: #fef2f2; border-color: #fecaca; }
.nb-ic { flex: none; font-size: 15px; }
.nb-label { flex: none; font-size: 12px; font-weight: 700; color: #4338ca; }
.notice-band.important .nb-label { color: #b91c1c; }
.nb-text { all: unset; box-sizing: border-box; cursor: pointer; flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; padding: 4px 6px; border-radius: 6px; }
.nb-text:hover .nb-t, .nb-text:focus-visible .nb-t { text-decoration: underline; }
.nb-text:focus-visible { outline: 2px solid #6366f1; }
.nb-t { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13.5px; font-weight: 600; color: #1e1b4b; }
.notice-band.important .nb-t { color: #7f1d1d; }
.nb-when { flex: none; font-size: 11.5px; color: var(--muted); }
.nb-imp { flex: none; font-size: 10.5px; font-weight: 800; color: #fff; background: #dc2626; border-radius: 4px; padding: 2px 5px; }
.nb-nav { flex: none; display: flex; align-items: center; gap: 2px; }
.nb-count { font-size: 11.5px; color: var(--muted); min-width: 30px; text-align: center; font-variant-numeric: tabular-nums; }
.nb-btn { all: unset; cursor: pointer; min-width: 26px; height: 26px; padding: 0 6px; box-sizing: border-box; display: grid; place-items: center; border-radius: 6px; font-size: 13px; color: #4338ca; }
.nb-btn:hover, .nb-btn:focus-visible { background: rgba(99,102,241,.12); }
.nb-btn:focus-visible { outline: 2px solid #6366f1; }
.nb-all { flex: none; font-size: 12px; font-weight: 600; border-left: 1px solid #c7d2fe; border-radius: 0 6px 6px 0; padding: 0 10px; }
.nb-empty { flex: 1; font-size: 13px; }
.slide-up { animation: nbUp .35s ease; }
.slide-down { animation: nbDown .35s ease; }
@keyframes nbUp { from { transform: translateY(70%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes nbDown { from { transform: translateY(-70%); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .slide-up, .slide-down { animation: none; } }
@media (max-width: 760px) { .nb-label, .nb-when { display: none; } }
.nl { list-style: none; margin: 0; padding: 0; max-height: 56vh; overflow: auto; }
.nl-item { padding: 10px 0; border-bottom: 1px solid var(--line); }
.nl-item.off { opacity: .6; }
.nl-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.nl-state { font-size: 11.5px; font-weight: 700; color: #4338ca; }
.nl-act { margin-left: auto; display: flex; gap: 10px; }
.nl-body { margin: 4px 0 0; white-space: pre-wrap; font-size: 13.5px; line-height: 1.6; }

/* 검색 추천 */
.q-wrap { position: relative; flex: 1 1 200px; min-width: 140px; max-width: 420px; }
.q-wrap .search { width: 100%; max-width: none; box-sizing: border-box; }
.q-pop { position: absolute; top: calc(100% + 4px); left: 0; width: max(100%, 420px); max-width: calc(100vw - 24px); max-height: 420px; overflow: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 14px 34px rgba(0,0,0,.16); z-index: 40; padding: 4px 0; }
.q-pop[hidden] { display: none; }
.qp-g { display: flex; align-items: center; gap: 6px; padding: 8px 12px 3px; font-size: 11.5px; font-weight: 700; color: var(--muted); }
.qp-clear { margin-left: auto; font-size: 11.5px; }
.qp-item { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; gap: 8px; width: 100%; padding: 7px 12px; font-size: 13px; }
.qp-item.on, .qp-item:hover { background: #eff6ff; }
.qp-ic { width: 20px; text-align: center; flex: none; color: #2563eb; font-weight: 700; }
.qp-l { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.qp-l mark { background: #fde68a; color: inherit; border-radius: 2px; padding: 0 1px; }
.qp-s { flex: none; max-width: 40%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 11.5px; color: var(--muted); }
.qp-syn { margin: 4px 8px 2px; padding: 6px 10px; border-radius: 8px; background: #f0fdf4; color: #166534; font-size: 12px; }
.qp-empty { padding: 12px 14px; font-size: 13px; line-height: 1.6; }
.qp-tip { padding: 6px 12px 4px; font-size: 11.5px; border-top: 1px solid var(--line); margin-top: 4px; }
.st-pill.sm { font-size: 10.5px; padding: 1px 6px; flex: none; }
.lane.flash { box-shadow: 0 0 0 3px #93c5fd; transition: box-shadow .3s; }

@media (max-width: 1100px) { .brand-today { display: none; } }
@media (max-width: 760px) {
  .topbar { padding: 10px 12px; }
  .brand-eyebrow { display: none; }
  .brand-mark { width: 34px; height: 34px; }
  .topbar .brand-title { display: flex; flex-direction: column; font-size: 11px; font-weight: 700; color: #7a6f52; line-height: 1.2; letter-spacing: 0; }
  .topbar .brand-title em { font-size: 17px; font-weight: 800; color: #1d1f23; padding: 0; }
}

/* 고정 업무 강조 (왼쪽 맨 위) */
.routines { border-top: 0; padding: 2px 0 12px; border-bottom: 1px solid var(--line); }
.rt-head { flex-wrap: wrap; }
.rt-head b { font-size: 15px; }
.rt-n { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: #1d1f23; color: #fff; font-size: 11.5px; font-weight: 700; display: inline-grid; place-items: center; }
.rt-item { padding: 8px 10px; background: #fafaf7; border: 1px solid var(--line); border-left: 3px solid var(--st, #94a3b8); }
.rt-top { display: flex; align-items: flex-start; gap: 6px; }
.rt-top .rt-t { flex: 1; min-width: 0; }
.rt-dd { flex: none; font-size: 11px; font-weight: 700; padding: 1px 6px; border-radius: 999px; background: #f1f5f9; color: #475569; }
.rt-dd.soon { background: #fff7ed; color: #c2410c; }
.rt-dd.today { background: #fef3c7; color: #92400e; }
.rt-dd.over { background: #fef2f2; color: #b91c1c; }
.cal { padding-top: 4px; }
.cal-ev.ghost { background: transparent !important; color: var(--st, #2563eb); border: 1px dashed currentColor; opacity: .7; }
/* 반복 일정 편집기 */
.rec { display: grid; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: #fcfcfa; }
.rec[hidden], .rec-row[hidden] { display: none; }
.rec-presets { display: flex; flex-wrap: wrap; gap: 6px; }
.rec-chip { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 4px 10px; font-size: 12.5px; cursor: pointer; }
.rec-chip:hover, .rec-chip.on { border-color: #d9a90f; background: var(--accent-soft); }
.rec-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rec-row.rec-col { align-items: flex-start; }
.rec-l { width: 64px; flex: none; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.rec select, .rec input[type=number], .rec input[type=date] { padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); font: inherit; }
.rec-int { width: 62px; }
.rec-count { width: 70px; }
.rec-wd { display: flex; gap: 4px; }
.rec-day { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-weight: 700; font-size: 13px; }
.rec-day[aria-pressed="true"] { background: #1d1f23; color: #fff; border-color: #1d1f23; }
.rec-day[data-wd="0"] { color: #dc2626; } .rec-day[data-wd="0"][aria-pressed="true"] { color: #fff; background: #dc2626; border-color: #dc2626; }
.rec-opts { display: grid; gap: 6px; }
.rec-opt { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.seg3 { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.seg3 label { cursor: pointer; }
.seg3 input { position: absolute; opacity: 0; pointer-events: none; }
.seg3 span { display: block; padding: 6px 10px; font-size: 12.5px; border-left: 1px solid var(--line); }
.seg3 label:first-child span { border-left: 0; }
.seg3 input:checked + span { background: #1d1f23; color: #fff; font-weight: 700; }
.seg3 input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: -2px; }
.rec-preview { padding: 10px 12px; border-radius: 10px; background: #eff6ff; color: #1e3a8a; font-size: 13px; line-height: 1.7; }
.rec-preview.err { background: #fef2f2; color: #b91c1c; }
.rec-d.moved { text-decoration: underline dotted; }
.rep-btn { cursor: pointer; text-align: left; }

/* 캘린더 위 오늘 날짜 */
.cal-today-big { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: baseline; gap: 8px; width: 100%; padding: 10px 12px; margin-bottom: 10px; border-radius: 12px; background: #1d1f23; color: #fff; }
.cal-today-big:hover, .cal-today-big:focus-visible { background: #2c2f35; }
.cal-today-big:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.cal-today-big .ct-l { font-size: 11.5px; font-weight: 700; color: var(--accent); letter-spacing: .04em; }
.cal-today-big b { font-size: 18px; font-weight: 800; letter-spacing: -.01em; }

/* 오늘 할 일 / 이번 주 할 일 */
.today-head { flex-wrap: wrap; align-items: center; }
.fs-tabs { display: inline-flex; background: rgba(0,0,0,.05); border-radius: 9px; padding: 3px; gap: 2px; }
.fs-tab { all: unset; cursor: pointer; padding: 5px 12px; border-radius: 7px; font-size: 13px; font-weight: 700; color: #6b6250; }
.fs-tab[aria-selected="true"] { background: #fff; color: #1d1f23; box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.fs-tab:focus-visible { outline: 2px solid var(--accent); }
.fs-n { display: inline-grid; place-items: center; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: #f59e0b; color: #fff; font-size: 10.5px; margin-left: 2px; }
.today-slot.add { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 40px; border-radius: 8px; border: 1.5px dashed #f5c451; color: #92400e; font-size: 13px; font-weight: 700; background: rgba(255,255,255,.5); }
.today-slot.add:hover, .today-slot.add:focus-visible { background: #fff; border-style: solid; }
.fs-addwrap { position: relative; }
.fs-pick { position: absolute; top: calc(100% + 4px); left: 0; width: max(100%, 340px); max-width: calc(100vw - 24px); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 14px 34px rgba(0,0,0,.16); z-index: 30; padding: 8px; }
.fs-pick[hidden] { display: none; }
.fp-q { width: 100%; box-sizing: border-box; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 6px; }
.fp-list { max-height: 300px; overflow: auto; display: flex; flex-direction: column; }
.fp-item { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 8px; font-size: 13px; }
.fp-item:hover, .fp-item:focus-visible { background: #fffbeb; outline: none; }
.fp-t { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.fp-empty { margin: 6px 4px; }
.fs-empty { margin: 6px 2px 0; }
.pin-btn.other { opacity: 1; color: #fbbf24; }
.fs-btns { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.fs-btns .btn.on { background: #fef3c7; border-color: #f59e0b; color: #92400e; font-weight: 700; }

/* 2027 아젠다 (왼쪽 아래) */
.agenda { border-top: 1px solid var(--line); padding-top: 12px; word-break: keep-all; overflow-wrap: anywhere; }
.agenda summary { list-style: none; cursor: pointer; display: grid; gap: 3px; position: relative; padding: 12px 34px 12px 14px; border-radius: 12px; background: linear-gradient(135deg, #1d1f23, #33363d); color: #fff; }
.agenda summary::-webkit-details-marker { display: none; }
.agenda summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ag-year { font-size: 11px; font-weight: 700; letter-spacing: .06em; color: var(--accent); }
.ag-slogan { font-size: 15px; font-weight: 800; line-height: 1.4; letter-spacing: -.01em; }
.ag-goal { font-size: 12px; color: #d6d3cb; line-height: 1.5; }
.ag-more { position: absolute; right: 12px; top: 14px; width: 18px; height: 18px; display: grid; place-items: center; }
.ag-more::after { content: "▾"; color: #d6d3cb; font-size: 12px; }
.agenda[open] .ag-more::after { content: "▴"; }
.ag-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.ag-list li { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: #fcfcfa; }
.ag-h { display: flex; align-items: baseline; gap: 8px; margin-bottom: 6px; }
.ag-n { font-size: 12px; font-weight: 800; color: #b08a12; font-variant-numeric: tabular-nums; }
.ag-h b { font-size: 14px; }
.ag-list dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 4px 8px; font-size: 12.5px; line-height: 1.55; }
.ag-list dt { font-weight: 700; color: var(--muted); white-space: nowrap; }
.ag-list dd { margin: 0; }
.ag-list dt:nth-of-type(2), .ag-list dt:nth-of-type(2) + dd { color: #1e3a8a; }
.ag-list dt:nth-of-type(2) { color: #3b5bdb; }
.login-slogan { word-break: keep-all; margin: 2px 0 6px; font-size: 14px; font-weight: 600; color: #4b4637; }

/* 운영 기준 — 왼쪽 요약 */
.info-nav { border-top: 1px solid var(--line); padding-top: 12px; display: grid; gap: 6px; word-break: keep-all; overflow-wrap: anywhere; }
.in-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 2px; }
.in-head b { font-size: 15px; }
.in-head .link-btn { margin-left: auto; }
.info-nav details > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; }
.info-nav details > summary::-webkit-details-marker { display: none; }
.info-nav details > summary::before { content: "▸"; font-size: 11px; color: var(--muted); transition: transform .15s; flex: none; }
.info-nav details[open] > summary::before { transform: rotate(90deg); }
.info-nav summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.in-top { border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.in-top > summary { padding: 9px 10px; font-weight: 800; font-size: 13.5px; }
.in-top[open] > summary { border-bottom: 1px solid var(--line); }
.in-body { display: grid; gap: 4px; padding: 6px; }
.in-sub { margin: 4px 6px; }
.in-sub > summary { padding: 5px 4px; font-weight: 700; font-size: 12.5px; color: #4b4637; }
.in-item { all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; padding: 7px 8px; border-radius: 8px; }
.in-item:hover, .in-item:focus-visible { background: #f6f4ee; }
.in-item:focus-visible { outline: 2px solid var(--accent); }
.in-t { font-size: 13px; font-weight: 700; }
.in-l { width: 100%; font-size: 11.5px; color: var(--muted); }
.in-agenda { padding: 10px 12px; border-radius: 10px; background: linear-gradient(135deg, #1d1f23, #33363d); color: #fff; font-size: 12px; line-height: 1.55; }
.in-agenda p { margin: 0; }
.in-agenda b { display: inline-block; font-size: 14px; margin-bottom: 4px; color: #fff; }
.in-agenda { color: #d6d3cb; }
.in-act { border: 1px solid var(--line); border-radius: 8px; background: #fcfcfa; }
.in-act > summary { padding: 7px 8px; }
.in-act-body { padding: 0 10px 8px; }
/* 공통: 상태 표시·입력란 */
.ib { display: inline-block; font-size: 10.5px; font-weight: 700; padding: 1px 6px; border-radius: 999px; white-space: nowrap; }
.ib-ok { background: #ecfdf5; color: #047857; }
.ib-tbd { background: #fff7ed; color: #c2410c; }
.ib-eff { background: #eff6ff; color: #1d4ed8; }
.ib-upd { font-size: 11.5px; color: var(--muted); }
.if-dl { margin: 8px 0 0; display: grid; grid-template-columns: max-content 1fr; gap: 5px 10px; font-size: 12.5px; line-height: 1.55; }
.if-dl dt { font-weight: 700; color: var(--muted); max-width: 17em; }
.if-dl dd { margin: 0; }
.tbd { color: #c2410c; font-style: italic; }
.if-chips { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.if-chip { background: #f1f5f9; border-radius: 6px; padding: 1px 7px; font-weight: 600; }
.md p { margin: 0 0 8px; }
.md ul { margin: 0 0 8px; padding-left: 18px; }
.md li { margin: 2px 0; }
.md-note { background: #fffbeb; border-left: 3px solid #f59e0b; padding: 6px 10px; border-radius: 0 6px 6px 0; color: #78350f; font-size: 12.5px; }


/* 경영지원실 (왼쪽) — 번호별 항목은 토글 없이 펼친 채로 */
.in-head { flex-wrap: wrap; }
.in-up { display: inline-flex; gap: 4px; margin-left: auto; }
.in-hover { all: unset; cursor: help; font-size: 11.5px; font-weight: 700; color: #4338ca; background: #eef2ff; border-radius: 999px; padding: 3px 9px; }
.in-hover:hover, .in-hover:focus-visible, .in-hover[aria-expanded="true"] { background: #4338ca; color: #fff; }
.in-hover:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.in-intro { font-size: 12.5px; }
.ii { padding: 10px 2px 12px; border-bottom: 1px solid var(--line); font-size: 12.5px; line-height: 1.6; }
.ii:last-child { border-bottom: 0; }
.ii-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin-bottom: 4px; }
.ii-t { font-size: 13.5px; }
.ii-lead { margin: 0 0 4px; color: var(--muted); font-size: 12px; }
.ii .md p { margin: 0 0 6px; }
.ii .md ul { margin: 0 0 6px; padding-left: 16px; }
.ii .if-dl { margin-top: 4px; font-size: 12px; }
.ii-meta { margin-top: 6px; font-size: 11px; color: var(--muted); }
.ii-admin { margin-left: auto; display: inline-flex; align-items: center; gap: 2px; }
.ii-mv { all: unset; cursor: pointer; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 5px; color: var(--muted); font-size: 12px; }
.ii-mv:hover:not([disabled]), .ii-mv:focus-visible { background: #f1f5f9; color: var(--ink, #111); }
.ii-mv[disabled] { opacity: .3; cursor: default; }
.ii-secadmin { display: flex; gap: 12px; padding: 4px 2px; }
.in-top .in-body { padding: 8px 12px 4px; display: block; }
.in-top .in-agenda { margin-bottom: 4px; }
/* 부서·그룹 떠 있는 카드 */
.info-pop { position: fixed; z-index: 40; max-height: min(78vh, 640px); overflow: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 44px rgba(0,0,0,.2); padding: 12px 16px; word-break: keep-all; overflow-wrap: anywhere; }
.info-pop[hidden] { display: none; }
.ip-pop-h { display: flex; align-items: center; gap: 10px; padding-bottom: 6px; border-bottom: 2px solid #1d1f23; margin-bottom: 4px; }
.ip-pop-h b { font-size: 15px; }
.ip-pop-h .ii-secadmin { margin-left: auto; padding: 0; }
.ip-pop-intro { font-size: 12.5px; color: #4b5563; padding: 6px 0; }
.info-pop .ii.compact { padding: 9px 0; }

/* 캘린더 탭 (보드 자리에 크게) */
.cal-full[hidden] { display: none; }
.cal-full { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; padding-top: 2px; }
.cal-full .cal-main { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px 16px; }
.cal-full .cal-head { flex-wrap: wrap; gap: 8px 14px; justify-content: flex-start; margin-bottom: 4px; }
.cal-full .cal-head b { font-size: 20px; }
.cal-todaytxt { font-size: 13px; font-weight: 700; color: #92400e; background: #fef3c7; border-radius: 999px; padding: 3px 10px; }
.cal-full .cal-scopes { margin-left: auto; }
.cal-full .cal-wd { font-size: 12px; padding: 6px 0; }
.cal-full .cal-cell { min-height: 116px; padding: 4px 5px 6px; gap: 3px; }
.cal-full .cal-d { font-size: 12.5px; width: 24px; height: 24px; align-self: flex-start; }
.cal-full .cal-ev { font-size: 12px; padding: 2px 6px; border-radius: 5px; }
.cal-full .cal-more { font-size: 11.5px; font-weight: 600; }
.cal-full .cal-agenda { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; position: sticky; top: 0; max-height: calc(100vh - 220px); overflow: auto; }
.cal-full .cal-agenda-h { font-size: 15px; font-weight: 800; margin-bottom: 6px; }
@media (max-width: 1100px) { .cal-full { grid-template-columns: 1fr; } .cal-full .cal-agenda { position: static; max-height: none; } }
@media (max-width: 760px) { .cal-full .cal-cell { min-height: 64px; padding: 2px; } .cal-full .cal-ev { font-size: 10px; padding: 1px 3px; } .cal-full .cal-scopes { margin-left: 0; } }
/* 왼쪽 맨 위 오늘 */
#todayLine { margin-bottom: 4px; }
.cal-today-big .ct-go { margin-left: auto; font-size: 11.5px; color: #d6d3cb; font-weight: 600; }
/* 경영지원실: 한 줄 목록 + 커서 올리면 카드 */
.in-rows { display: grid; gap: 2px; margin-top: 6px; }
.in-row { all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; padding: 7px 8px; border-radius: 8px; }
.in-row:hover, .in-row:focus-visible, .in-row[aria-expanded="true"] { background: #f6f4ee; }
.in-row:focus-visible { outline: 2px solid var(--accent); }
.in-rt { font-size: 13px; font-weight: 700; }
.in-rl { width: 100%; font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.in-tip { margin: 2px 2px 0; }
.info-pop .ii { border-bottom: 0; }
.msg-panel { overflow-x: hidden; }
.msg-body, .info-nav, .in-top, .in-body, .in-rows { min-width: 0; }
.in-row { width: 100%; min-width: 0; }
.in-rl { max-width: 100%; }

/* 주간 캘린더 띠 (보드 위에 늘) */
.week-strip[hidden] { display: none; }
.week-strip { margin: 0 0 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px 10px; }
.wk-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.wk-head b { font-size: 14px; }
.wk-nav { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; }
.wk-nav .link-btn { margin-left: 6px; }
.wk-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.wk-cell { min-height: 74px; }
.wk-d { display: flex; align-items: center; gap: 4px; }
.wk-w { font-size: 11px; color: var(--muted); font-weight: 700; }
.wk-cell.sun .wk-w, .wk-cell.sun .cal-d { color: #dc2626; }
.wk-cell.sat .wk-w { color: #2563eb; }
.wk-cell .cal-d { align-self: auto; }
.wk-cell.today { background: #fffbea; }
.wk-cell .cal-ev { font-size: 11px; padding: 1px 5px; }
@media (max-width: 760px) { .wk-cell { min-height: 56px; } .wk-cell .cal-ev { font-size: 9.5px; } }

/* 경영지원실: 섹션 제목에 검정 음영, 슬로건은 밝게 */
.info-nav .in-top { overflow: hidden; border-color: #1d1f23; }
.info-nav .in-top > summary { background: linear-gradient(135deg, #1d1f23, #33363d); color: #fff; padding: 11px 12px; font-size: 14px; }
.info-nav .in-top > summary::before { color: var(--accent); }
.info-nav .in-top[open] > summary { border-bottom: 0; }
.info-nav .in-top > summary:hover { background: linear-gradient(135deg, #2a2d33, #3d4048); }
.in-agenda { background: #fff8e1 !important; color: #5a4a1a !important; border: 1px solid #f5d77a; }
.in-agenda b { color: #1d1f23 !important; }
.in-hint { margin: 8px 2px 2px; font-size: 11.5px; color: #92400e; background: #fffbeb; border-radius: 6px; padding: 5px 8px; }
.in-row { position: relative; }
.in-rt { text-decoration: underline dotted #c9bfa4; text-underline-offset: 3px; }
.in-peek { margin-left: auto; font-size: 11px; font-weight: 700; color: #b8a77a; transition: color .15s; }
.in-row:hover .in-peek, .in-row:focus-visible .in-peek, .in-row[aria-expanded="true"] .in-peek { color: #b45309; }
.in-hover { cursor: pointer; }
.in-hover::after { content: " ›"; }
/* 카드: 우리의 자세 | 고객의 경험 좌우 */
.if-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 6px; }
.if-col { border-radius: 10px; padding: 10px 12px; background: #f8fafc; border: 1px solid var(--line); font-size: 13px; line-height: 1.6; }
.if-col:nth-child(2) { background: #eff6ff; border-color: #bfdbfe; }
.if-col-h { font-size: 11.5px; font-weight: 800; color: var(--muted); margin-bottom: 4px; }
.if-col:nth-child(2) .if-col-h { color: #1d4ed8; }
@media (max-width: 560px) { .if-cols { grid-template-columns: 1fr; } }

/* 경영지원실 — 간결하게, 줄 간격·여백 확보 (2.4) */
.info-nav { gap: 10px; padding-top: 16px; margin-top: 4px; }
.in-head { margin-bottom: 0; }
.in-head b { font-size: 15px; letter-spacing: -.01em; }
.in-hint { margin: -2px 2px 2px; font-size: 11.5px; color: var(--muted); background: none; padding: 0; line-height: 1.6; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.in-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #f59e0b; flex: none; }
.info-nav .in-top { border-radius: 12px; }
.info-nav .in-top > summary { padding: 12px 14px; }
.in-top .in-body { padding: 14px 14px 10px; }
.in-agenda { padding: 14px 16px !important; line-height: 1.75 !important; font-size: 12.5px !important; margin-bottom: 8px !important; }
.in-agenda b { font-size: 14.5px !important; margin-bottom: 6px !important; line-height: 1.5; }
.in-rows { gap: 2px; margin-top: 4px; }
.in-row { padding: 10px 10px; gap: 8px; line-height: 1.5; flex-wrap: nowrap; }
.in-rt { font-size: 13.5px; font-weight: 600; text-decoration: none; flex: 1; min-width: 0; }
.in-row:hover .in-rt, .in-row:focus-visible .in-rt, .in-row[aria-expanded="true"] .in-rt { color: #1d1f23; text-decoration: underline; text-underline-offset: 3px; }
.in-row::after { content: "›"; color: #c9bfa4; font-weight: 700; margin-left: 4px; }
.in-row:hover::after, .in-row[aria-expanded="true"]::after { color: #b45309; }
.ii-secadmin { padding: 8px 2px 2px; }
.info-pop { padding: 16px 18px; line-height: 1.7; }
.info-pop .ii { line-height: 1.7; }
.if-col { line-height: 1.7; padding: 12px 14px; }

/* 캘린더에서 고른 날(기본 오늘)이 기한인 업무 — 분홍 */
.card.due-sel { background: #fdf2f8; border-color: #f9a8d4; box-shadow: 0 0 0 1px #f9a8d4, var(--shadow); }
.card.due-sel .card-title { color: #831843; }
.due-tag { display: inline-block; margin-top: 6px; font-size: 11px; font-weight: 700; color: #be185d; background: #fce7f3; border-radius: 999px; padding: 1px 8px; }
.pink-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #f9a8d4; margin: 0 2px 0 1px; vertical-align: 0; }
.cal-cell.sel { background: #fdf2f8; }
.cal-cell.sel .cal-d { box-shadow: 0 0 0 2px #f472b6; }

/* 2.6 — 고정 업무: 보드 위 오른쪽에 가로로 */
.top-row { display: flex; gap: 10px; align-items: stretch; margin: 0 0 10px; }
.top-row > .today-bar { flex: 1 1 0; min-width: 0; margin: 0; }
.routines.routines-h { flex: 0 0 min(460px, 42%); margin-left: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); padding: 10px 12px; min-width: 0; display: flex; flex-direction: column; }
.routines-h[hidden] { display: none !important; }
.routines-h .rt-head { margin-bottom: 8px; flex-wrap: nowrap; }
.routines-h .rt-head b { font-size: 14px; white-space: nowrap; }
.routines-h .rt-head .muted { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.routines-h .rt-list { flex-direction: row; overflow-x: auto; gap: 8px; padding-bottom: 4px; scroll-snap-type: x proximity; }
.routines-h .rt-item { flex: 0 0 200px; scroll-snap-align: start; }
.routines-h .rt-m { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.routines-h .rt-empty { padding: 6px 0; }
@media (max-width: 1100px) { .top-row { flex-direction: column; } .routines.routines-h { flex: none; margin-left: 0; } }

/* 2.6 — 왼쪽: 스크롤 없이 한 화면에 */
.msg-panel { display: flex; flex-direction: column; }
.msg-panel:not(.collapsed) .msg-body { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 10px; padding: 10px 34px 12px 16px; }
#cal { flex: none; }
.cal-today-big { padding: 7px 12px; margin-bottom: 6px; border-radius: 10px; }
.cal-today-big b { font-size: 15.5px; }
.cal-head b { font-size: 14.5px; }
.cal-scope { margin: 0 0 4px; font-size: 10.5px; }
.cal-wd { padding: 2px 0; font-size: 10.5px; }
.cal-cell { min-height: 46px; padding: 1px 2px 2px; gap: 1px; }
.cal-d { width: 18px; height: 18px; font-size: 10.5px; }
.cal-ev { font-size: 10px; line-height: 1.3; }
.info-nav { flex: 1; min-height: 0; overflow-y: auto; padding-top: 10px; margin-top: 0; gap: 8px; display: flex; flex-direction: column; }
.in-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-radius: 10px; overflow: hidden; border: 1px solid #1d1f23; flex: none; }
.in-tab { all: unset; box-sizing: border-box; cursor: pointer; text-align: center; padding: 8px 6px; font-size: 12.5px; font-weight: 700; color: #4b4637; background: #f6f4ee; }
.in-tab[aria-selected="true"] { background: linear-gradient(135deg, #1d1f23, #33363d); color: #fff; }
.in-tab:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.in-panel { display: flex; flex-direction: column; gap: 4px; }
.in-agenda { padding: 10px 12px !important; line-height: 1.6 !important; font-size: 12px !important; margin: 2px 0 2px !important; }
.in-agenda b { font-size: 13.5px !important; margin-bottom: 3px !important; }
.in-rows { margin-top: 0; gap: 0; }
.in-row { padding: 7px 8px; }
.in-rt { font-size: 13px; }
.in-hint { margin: 4px 2px 0; }
.in-row { padding: 5px 8px; }
.in-panel .ii-secadmin { padding: 2px 2px 0; }
.cal-cell { min-height: 44px; }

/* 2.6 — 위쪽 줄 정렬: 등록·탭은 왼쪽 영역 폭에, 검색은 팀 공지 띠와 같은 선에 */
:root { --side-w: 360px; }
@media (max-width: 1100px) { :root { --side-w: 300px; } }
.toolbar { display: grid; grid-template-columns: calc(var(--side-w) - 16px) minmax(0, 1fr); column-gap: 16px; align-items: center; padding: 10px 16px; }
.tb-left { display: flex; gap: 8px; align-items: center; min-width: 0; }
.tb-left .tabs { flex: 1; min-width: 0; }
.tb-left .tab { flex: 1; padding: 7px 6px; white-space: nowrap; text-align: center; }
.tb-right { display: flex; gap: 8px; align-items: center; min-width: 0; }
.tb-right .q-wrap { flex: 1; max-width: none; }
.side-collapsed .toolbar { grid-template-columns: auto minmax(0, 1fr); }
.side-collapsed .tb-left .tab { padding: 7px 14px; }
@media (max-width: 760px) { .toolbar { display: flex; flex-wrap: wrap; } .tb-left, .tb-right { width: 100%; } }

/* 2.7 — 반려 칸 절반 + 그 아래 고정 업무 */
.col-stack { display: flex; flex-direction: column; gap: 10px; min-width: 0; min-height: 0; }
.col-stack > .col { flex: 0 1 50%; min-height: 160px; overflow: hidden; }
.col-stack > .col .col-body { overflow-y: auto; }
.routines.routines-col { flex: 1 1 50%; min-height: 200px; border-radius: var(--radius); background: #fffaf0; border: 1px solid #f3e3b5; border-top: 4px solid #d9a90f; padding: 8px 8px 10px; display: flex; flex-direction: column; min-width: 0; overflow: hidden; }
.routines-col .rt-head { flex-wrap: nowrap; margin-bottom: 8px; padding: 0 2px; }
.routines-col .rt-head b { font-size: 13px; white-space: nowrap; }
.routines-col .rt-head .btn { padding: 3px 8px; font-size: 12px; }
.routines-col .rt-list { flex-direction: column; overflow-y: auto; gap: 6px; }
.routines-col .rt-item { background: var(--surface); }
.routines-col .rt-m { white-space: normal; }
.routines-team { margin-top: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); padding: 10px 12px; }
.routines-team .rt-list { flex-direction: row; flex-wrap: wrap; gap: 8px; }
.routines-team .rt-item { flex: 0 0 220px; }
.col-stack { margin-left: 10px; }
.col-stack > .col-out { margin-left: 0; }
@media (max-width: 760px) { .col-stack { margin-left: 0; } }
.col-stack > .col { flex: 0 0 auto; min-height: 120px; max-height: 38vh; }
.routines.routines-col { flex: 1 1 auto; }

/* 2.8 — 왼쪽 영역 여백·줄 간격 넉넉하게 */
.msg-panel:not(.collapsed) .msg-body { gap: 18px; padding: 16px 34px 16px 16px; }
.cal-today-big { margin-bottom: 12px; padding: 9px 14px; }
.cal-head { margin-bottom: 2px; }
.cal-scope { margin: 2px 0 10px; line-height: 1.5; }
.cal-wd { padding: 4px 0; }
.cal-cell { min-height: 38px; }
.info-nav { padding-top: 18px; gap: 12px; }
.in-head { line-height: 1.5; }
.in-panel { gap: 6px; margin-top: 2px; }
.in-agenda { padding: 12px 14px !important; line-height: 1.75 !important; margin: 4px 0 6px !important; }
.in-agenda b { margin-bottom: 4px !important; }
.in-row { padding: 7px 10px; line-height: 1.5; }
.in-hint { margin: 8px 2px 0; line-height: 1.6; }
.cal-cell { min-height: 34px; }
.in-row { padding: 6px 10px; }
.in-foot { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.in-foot .in-hint { margin: 0; flex: 1; }
.in-foot .ii-secadmin { padding: 0; gap: 8px; flex: none; }
.in-foot .ii-secadmin .link-btn { font-size: 11.5px; }
.in-row { padding: 5px 10px; line-height: 1.55; }
.info-nav { padding-top: 14px; }
.cal-cell { min-height: 33px; }
.msg-panel:not(.collapsed) .msg-body { gap: 16px; padding-top: 14px; }
.cal-today-big { margin-bottom: 10px; padding: 8px 14px; }
/* 캘린더 칸 높이 고정 (업무가 많아도 왼쪽이 늘어나지 않게): 막대 1개 + "+N" */
.cal-cell { height: 36px; min-height: 0; overflow: hidden; position: relative; }
.cal-cell .cal-more { position: absolute; right: 2px; top: 1px; font-size: 9.5px; font-weight: 700; color: #6b7280; padding: 0; }
.msg-panel:not(.collapsed) .msg-body { gap: 12px; }
.cal-scope { margin: 2px 0 6px; }
.info-nav { padding-top: 12px; }
.cal-today-big { padding: 7px 14px; }

/* ===== 3.0 휴대폰 화면 ===== */
.m-tabs, .m-fab, .m-stages { display: none; }
@media (max-width: 760px) {
  body { -webkit-tap-highlight-color: transparent; }
  .app { padding-bottom: calc(64px + env(safe-area-inset-bottom)); min-height: 100vh; }
  /* 위쪽: 로고·🔔·이름만, 등록·탭은 아래로 */
  #helpBtn, #msgToggleTop, #logoutBtn { display: none !important; }
  .topbar { padding: 8px 12px; padding-top: max(8px, env(safe-area-inset-top)); position: sticky; top: 0; z-index: 15; }
  .toolbar { padding: 8px 12px 4px; }
  .toolbar .tb-left { display: none; }
  .tb-right { width: 100%; }
  .main { flex-direction: column; }
  .board-wrap { padding: 4px 12px 16px; overflow: visible; scroll-snap-type: none; }
  /* 아래 탭 바 */
  .m-tabs { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 18; background: rgba(255,255,255,.97); backdrop-filter: blur(8px); border-top: 1px solid var(--line); padding: 4px 4px calc(4px + env(safe-area-inset-bottom)); }
  .m-tabs button { all: unset; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0 4px; font-size: 10.5px; font-weight: 700; color: #8a8576; cursor: pointer; border-radius: 10px; }
  .m-tabs button span { font-size: 19px; line-height: 1; filter: grayscale(1); opacity: .65; }
  .m-tabs button[aria-current="page"] { color: #1d1f23; }
  .m-tabs button[aria-current="page"] span { filter: none; opacity: 1; }
  .m-tabs button:focus-visible { outline: 2px solid var(--accent); }
  /* ＋ 등록 */
  .m-fab { display: grid; place-items: center; position: fixed; right: 16px; bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 17; width: 56px; height: 56px; border-radius: 50%; border: 0; background: var(--accent); color: #1d1f23; font-size: 28px; font-weight: 700; box-shadow: 0 8px 20px rgba(0,0,0,.22); cursor: pointer; }
  #appView:not([data-m="board"]) .m-fab { display: none; }
  /* 화면 전환: 보드 / 캘린더 / 경영지원실 */
  #appView[data-m="board"] .msg-panel { display: none !important; }
  #appView[data-m="cal"] .board-wrap, #appView[data-m="ms"] .board-wrap { display: none; }
  #appView[data-m="cal"] .msg-panel, #appView[data-m="ms"] .msg-panel { display: block !important; position: static; width: auto; max-height: none; border: 0; overflow: visible; }
  #appView[data-m="cal"] .msg-panel .msg-body, #appView[data-m="ms"] .msg-panel .msg-body { display: block !important; padding: 12px 14px 20px; }
  #appView[data-m="cal"] #infoNav, #appView[data-m="cal"] #infoPop { display: none !important; }
  #appView[data-m="ms"] #cal { display: none; }
  #appView[data-m="cal"] .toolbar, #appView[data-m="ms"] .toolbar { display: none; }
  .msg-panel .msg-collapse { display: none !important; }
  /* 캘린더 탭: 크게 */
  #appView[data-m="cal"] .cal-cell { height: 58px; padding: 2px; }
  #appView[data-m="cal"] .cal-ev { font-size: 10px; }
  #appView[data-m="cal"] .cal-d { width: 22px; height: 22px; font-size: 12px; }
  /* 경영지원실 탭 */
  #appView[data-m="ms"] .info-nav { overflow: visible; padding-top: 0; }
  #appView[data-m="ms"] .in-row { padding: 12px 10px; font-size: 15px; }
  #appView[data-m="ms"] .in-rt { font-size: 15px; }
  .info-pop { left: 8px !important; right: 8px; width: auto !important; max-height: 70vh; border-radius: 16px; box-shadow: 0 -8px 40px rgba(0,0,0,.25); }
  /* 단계 탭 + 세로 목록 */
  .m-stages { display: flex; gap: 6px; overflow-x: auto; padding: 2px 0 10px; scrollbar-width: none; position: sticky; top: 56px; z-index: 5; background: var(--bg); }
  .m-stages::-webkit-scrollbar { display: none; }
  .m-stages:empty { display: none; }
  .m-stage { flex: none; border: 1.5px solid var(--line); background: var(--surface); border-radius: 999px; padding: 7px 12px; font-size: 13px; font-weight: 700; color: #4b4637; display: inline-flex; gap: 6px; align-items: center; cursor: pointer; }
  .m-stage .m-n { min-width: 18px; height: 18px; border-radius: 9px; background: #efede7; font-size: 11px; display: inline-grid; place-items: center; padding: 0 5px; }
  .m-stage[aria-selected="true"] { background: var(--st); border-color: var(--st); color: #fff; }
  .m-stage[aria-selected="true"] .m-n { background: rgba(255,255,255,.25); color: #fff; }
  #board[data-mst]:not([data-mst=""]) { display: block; }
  #board[data-mst]:not([data-mst=""]) .col { display: none; }
  #board[data-mst="접수"] .col[data-status="접수"], #board[data-mst="검토 중"] .col[data-status="검토 중"], #board[data-mst="진행 중"] .col[data-status="진행 중"],
  #board[data-mst="완료"] .col[data-status="완료"], #board[data-mst="반려"] .col[data-status="반려"] { display: flex !important; min-height: 0; max-height: none; background: transparent; border: 0; }
  #board[data-mst] .col .col-head { display: none; }
  #board[data-mst] .col .col-body { display: flex !important; padding: 0; gap: 10px; overflow: visible; }
  #board[data-mst] .col-stack { display: contents; margin: 0; }
  #board[data-mst] .routines-col { margin-top: 18px; min-height: 0; }
  #board[data-mst] .card { padding: 13px 14px; border-radius: 12px; }
  #board[data-mst] .card-title { font-size: 15px; }
  #board[data-mst] .empty { padding: 30px 0; text-align: center; }
  /* 팀 업무: 사람별 줄 안에서 고른 단계만 */
  #board.people[data-mst] { display: block; }
  #board.people[data-mst] .lane { margin-bottom: 12px; }
  #board.people[data-mst] .lane-grid { display: block; }
  #board.people[data-mst] .lane .col { display: none !important; }
  #board.people[data-mst="접수"] .lane .col[data-status="접수"], #board.people[data-mst="검토 중"] .lane .col[data-status="검토 중"], #board.people[data-mst="진행 중"] .lane .col[data-status="진행 중"],
  #board.people[data-mst="완료"] .lane .col[data-status="완료"], #board.people[data-mst="반려"] .lane .col[data-status="반려"] { display: flex !important; }
  #board.people[data-mst] .lane-grid:not(:has(.card))::after { content: none; }
  #board.people[data-mst] .lane .col:not(:has(.card)) .col-body::after { content: "이 단계 업무 없음"; color: var(--muted); font-size: 12px; padding: 4px 2px; }
  /* 위쪽 띠들 간단히 */
  .today-bar { padding: 10px; }
  .today-bar .today-head > .muted, .today-bar .fs-empty { display: none; }
  .notice-band { margin-bottom: 8px; }
  /* 상세·창: 전체 화면 */
  .drawer { width: 100%; }
  .drawer-head { padding-top: max(16px, env(safe-area-inset-top)); }
  .dlg { width: calc(100% - 16px); max-height: calc(100% - 32px); }
  .dlg form { max-height: calc(100dvh - 40px); }
  .stages .stage { padding: 9px 12px; font-size: 13px; }
  .q-pop { width: calc(100vw - 24px); }
  .bell-panel { right: 8px; left: 8px; width: auto; }
}
.m-more { display: flex; flex-direction: column; gap: 4px; }
.m-more-item { all: unset; display: flex; align-items: center; gap: 12px; padding: 13px 12px; border-radius: 10px; font-size: 15px; font-weight: 600; cursor: pointer; }
.m-more-item span { font-size: 19px; width: 24px; text-align: center; }
.m-more-item:hover, .m-more-item:focus-visible { background: #f4f2ec; }
.m-more-item[data-more="logout"] { color: #b42318; border-top: 1px solid var(--line); border-radius: 0 0 10px 10px; margin-top: 4px; }

/* ===== 3.1 관리자 모드 · 첫 로그인 ===== */
.admin-btn[aria-pressed="true"] { background: #1d1f23; color: #f2c230; border-color: #1d1f23; }
.admin-bar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 8px 16px; background: #1d1f23; color: #fff; font-size: 13px; }
.admin-bar b { color: #f2c230; }
.admin-bar .ab-hint { color: #d8d4c8; }
.admin-bar kbd { background: #34373d; border-radius: 4px; padding: 1px 6px; font: inherit; color: #fff; }
.admin-bar .ab-act { margin-left: auto; display: flex; gap: 6px; }
.admin-bar .btn { background: #34373d; color: #fff; border-color: #4a4d53; }
.admin-bar .btn.primary { background: #f2c230; color: #1d1f23; border-color: #f2c230; }
body.admin-mode .topbar { box-shadow: inset 0 -3px 0 #f2c230; }
.tx-hover { position: fixed; z-index: 2147483000; pointer-events: none; border: 2px dashed #e0a800; border-radius: 6px; background: rgba(242, 194, 48, .12); }
.tx-dlg { width: min(460px, calc(100% - 24px)); }
.tx-dlg form { padding: 20px 22px; display: flex; flex-direction: column; gap: 12px; }
.tx-dlg h3 { margin: 0; }
.tx-dlg .fld { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; }
.tx-dlg input, .tx-dlg textarea { font: inherit; font-weight: 400; padding: 9px 11px; border: 1.5px solid var(--line); border-radius: 9px; }
.tx-orig { font-weight: 400; padding: 9px 11px; background: #f4f2ec; border-radius: 9px; color: #5c5647; white-space: pre-wrap; }
.tx-list { list-style: none; margin: 0; padding: 0; max-height: 50vh; overflow: auto; display: flex; flex-direction: column; gap: 6px; }
.tx-list li { display: grid; grid-template-columns: 1fr auto 1fr auto; gap: 8px; align-items: center; padding: 8px 10px; background: #f8f7f3; border-radius: 8px; font-size: 13px; }
.tx-o { color: #8a8576; text-decoration: line-through; }
.ip-box { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 10px; margin: 6px 0 10px; font-size: 13px; }
.ip-box.ok { background: #eef8f1; } .ip-box.warn { background: #fff4e0; }
.pill-wait { display: inline-block; font-size: 11px; padding: 1px 7px; border-radius: 999px; background: #fff4e0; color: #9a5b00; font-weight: 700; }
.pw-title { margin: 0 0 4px; font-size: 20px; }
#pwForm .btn.ghost { justify-self: center; border: 0; }
@media (max-width: 760px) { .admin-bar .ab-hint { display: none; } .admin-btn { display: none; } }

/* ===== 3.2 위쪽 여백 넉넉하게 (큰 화면) ===== */
@media (min-width: 761px) {
  :root { --pad-x: 24px; }
  .topbar { padding: 16px var(--pad-x); min-height: 76px; box-sizing: border-box; }
  .brand { gap: 14px; }
  .brand-mark { width: 42px; height: 42px; }
  .brand-text { gap: 5px; }
  .brand-eyebrow { font-size: 10.5px; letter-spacing: .2em; }
  .brand-title { font-size: 22px; }
  .topbar-right { gap: 10px; }
  .topbar-right .btn.small { padding: 7px 13px; }
  .toolbar { grid-template-columns: calc(var(--side-w) - var(--pad-x)) minmax(0, 1fr); column-gap: var(--pad-x); padding: 16px var(--pad-x) 14px; }
  .board-wrap { padding: 4px var(--pad-x) 24px; }
  .notice-band { min-height: 46px; margin: 0 0 14px; padding: 6px 8px 6px 16px; border-radius: 12px; }
  .top-row { gap: 14px; margin: 0 0 18px; }
  .today-bar { padding: 14px 18px; border-radius: 14px; }
  .today-bar .today-head { margin-bottom: 10px; }
  .board { gap: 14px; grid-template-columns: repeat(5, minmax(176px, 1fr)); }
}
.login-opts { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: -2px; }
.login-card .login-opts .lo-chk { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; font-size: 13.5px; cursor: pointer; }
.login-opts input { width: 16px; height: 16px; accent-color: #1d1f23; margin: 0; }
.login-card { width: min(420px, 100%); padding: 32px; gap: 14px; }
.login-card .login-opts label.lo-chk { display: inline-flex; grid: none; }
.login-card .login-opts input[type=checkbox] { width: 16px; height: 16px; padding: 0; flex: none; }
.login-card .login-opts .muted { font-weight: 400; }
@media (max-width: 760px) { .toolbar { padding-top: 12px; } .notice-band { margin-bottom: 12px; } .top-row, .today-bar { margin-bottom: 14px; } }
