/* ==========================================================================
   AI 팀메이트 오피스 — 공통 스타일 (모바일 우선 반응형)
   색은 :root 토큰으로만 쓴다. 다크 모드는 prefers-color-scheme 로 토큰만 바꾼다.
   ========================================================================== */
:root {
    --bg: #f5f6f8;
    --surface: #ffffff;
    --text: #1d2330;
    --muted: #677084;
    --border: #dfe3ea;
    --accent: #3b5bdb;
    --accent-text: #ffffff;
    --ok: #2b8a3e;
    --bad: #c92a2a;
    --radius: 10px;
    --gutter: 16px;
    --shadow: 0 1px 3px rgba(20, 30, 50, .08);
    color-scheme: light;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #14171d;
        --surface: #1d2129;
        --text: #e6e9ef;
        --muted: #9aa3b5;
        --border: #2e3440;
        --accent: #6d8bff;
        --accent-text: #0e1220;
        --ok: #51cf66;
        --bad: #ff6b6b;
        --shadow: none;
        color-scheme: dark;
    }
}

*, *::before, *::after { box-sizing: border-box; }

html, body { margin: 0; }

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--bg);
    color: var(--text);
    font-family: "Pretendard", "Malgun Gothic", "Apple SD Gothic Neo", system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.55;
    overflow-x: hidden;
}

a { color: var(--accent); }
code { font-family: Consolas, "D2Coding", monospace; word-break: break-all; }
[v-cloak] { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── 상단 바 ─────────────────────────────────────────────── */
.topbar {
    position: sticky; top: 0; z-index: 10;
    display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
    padding: 10px var(--gutter);
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}
.brand { font-weight: 700; color: var(--text); text-decoration: none; margin-right: auto; }
.brand-mark { color: var(--accent); }

.nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px;
    border: 1px solid var(--border); border-radius: 8px;
    background: transparent; color: var(--text); font-size: 20px; cursor: pointer;
}
.nav { display: none; width: 100%; flex-direction: column; gap: 4px; padding-top: 8px; }
.nav.open { display: flex; }
.nav a { padding: 8px 10px; border-radius: 8px; color: var(--text); text-decoration: none; }
.nav a:hover, .nav a:focus-visible { background: var(--bg); }

@media (min-width: 768px) {
    .nav-toggle { display: none; }
    .nav { display: flex; width: auto; flex-direction: row; padding-top: 0; }
}

/* ── 본문 ───────────────────────────────────────────────── */
.page { flex: 1; width: 100%; max-width: 1200px; margin: 0 auto; padding: var(--gutter); }
.footer { padding: 12px var(--gutter); color: var(--muted); font-size: 13px; text-align: center; }

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px;
}
.card.narrow { max-width: 560px; margin: 24px auto; }
.card h1 { font-size: 20px; margin: 0; }
.card-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }

.muted { color: var(--muted); }
.error { color: var(--bad); }

/* 키-값 목록: 모바일은 한 줄씩, 넓은 화면은 두 열 */
.kv { display: grid; grid-template-columns: 1fr; gap: 4px 16px; margin: 0; }
.kv dt { color: var(--muted); font-size: 14px; }
.kv dd { margin: 0 0 10px; }
@media (min-width: 576px) {
    .kv { grid-template-columns: max-content 1fr; }
    .kv dd { margin: 0; }
}

/* ── 컨트롤 ─────────────────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 40px; padding: 0 16px;
    border: 0; border-radius: 8px;
    background: var(--accent); color: var(--accent-text);
    font: inherit; text-decoration: none; cursor: pointer;
}
.btn:disabled { opacity: .6; cursor: default; }

.badge { display: inline-block; padding: 1px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; border: 1px solid currentColor; }
.badge.ok { color: var(--ok); }
.badge.bad { color: var(--bad); }

/* 개발 모드 전용: tooltip-guard.js 가 title 없는 컨트롤에 붙이는 표시 */
.tip-missing { outline: 2px dashed var(--bad) !important; outline-offset: 2px; }

/* ── 1단계: 폼·표·알림·탭·마법사·채팅 ───────────────────────────── */
h1.page-title { font-size: 22px; margin: 0 0 16px; }
h2 { font-size: 17px; margin: 0 0 12px; }
/* minmax(0, 1fr): 1fr(= minmax(auto, 1fr))는 안의 표·탭의 최소 폭보다 줄지 않아 모바일에서 페이지를 가로로 밀어낸다(운영 재현 2026-09-29, 문제해결 #23).
   0 으로 두면 칸은 화면 폭을 따르고, 넓은 표는 .table-wrap 안에서 가로 스크롤된다. */
.stack { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
.grid-2 { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .grid-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.spacer { flex: 1; }
.small { font-size: 13px; }

.form { display: grid; gap: 14px; max-width: 640px; }
.field { display: grid; gap: 4px; min-width: 0; }
.field > label, .field-label { font-weight: 600; font-size: 14px; }
.field .hint { color: var(--muted); font-size: 12.5px; }
.err { color: var(--bad); font-size: 13px; }
fieldset { border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; margin: 0; min-width: 0; }
legend { font-weight: 600; padding: 0 6px; }

input[type=text], input[type=password], input[type=number], input[type=url], input[type=date], input[type=search], select, textarea {
    width: 100%; min-height: 40px; padding: 8px 10px;
    border: 1px solid var(--border); border-radius: 8px;
    background: var(--surface); color: var(--text); font: inherit;
}
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.check { display: flex; gap: 8px; align-items: center; font-weight: 400; }
.check input { width: 18px; height: 18px; flex: none; }

.btn.secondary { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn.danger { background: var(--bad); color: #fff; }
.btn.small { min-height: 32px; padding: 0 10px; font-size: 13px; }
.linkbtn { background: none; border: 0; color: var(--accent); cursor: pointer; font: inherit; padding: 0; }
.inline-form { display: inline; }

.alert { padding: 10px 14px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); }
.alert.ok { border-color: var(--ok); color: var(--ok); }
.alert.bad { border-color: var(--bad); color: var(--bad); }
.alert.warn { border-color: #e67700; color: #e67700; }
.secret-once { font-family: Consolas, monospace; font-size: 18px; letter-spacing: 1px; background: var(--bg); padding: 6px 10px; border-radius: 6px; }

.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
.table th { color: var(--muted); font-weight: 600; white-space: nowrap; }
.num { text-align: right !important; font-variant-numeric: tabular-nums; }

.stats { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; }
.stat .v { font-size: 22px; font-weight: 700; }
.stat .k { color: var(--muted); font-size: 13px; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 14px; overflow-x: auto; }
.tabs button { background: none; border: 0; border-bottom: 2px solid transparent; padding: 8px 12px; color: var(--muted); font: inherit; cursor: pointer; white-space: nowrap; }
.tabs button.active { color: var(--text); border-bottom-color: var(--accent); font-weight: 600; }

.steps { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 16px; padding: 0; list-style: none; }
.steps li { padding: 4px 10px; border-radius: 999px; border: 1px solid var(--border); font-size: 13px; color: var(--muted); }
.steps li.active { border-color: var(--accent); color: var(--accent); font-weight: 600; }
.steps li.done { color: var(--ok); border-color: var(--ok); }
.choice-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.choice { border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; cursor: pointer; background: var(--surface); text-align: left; color: var(--text); font: inherit; }
.choice.selected { border-color: var(--accent); outline: 2px solid var(--accent); }
.choice b { display: block; margin-bottom: 4px; }

/* 채팅: 모바일은 직원 목록이 위(가로 스크롤), 넓은 화면은 왼쪽 */
.chat { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .chat { grid-template-columns: 240px minmax(0, 1fr); } }
.chat-list { display: flex; gap: 6px; overflow-x: auto; min-width: 0; }
@media (min-width: 900px) { .chat-list { flex-direction: column; overflow: visible; } }
.chat-list button { text-align: left; border: 1px solid var(--border); background: var(--surface); color: var(--text); border-radius: 8px; padding: 8px 10px; cursor: pointer; font: inherit; white-space: nowrap; }
.chat-list button.active { border-color: var(--accent); outline: 1px solid var(--accent); }
.chat-panel { display: flex; flex-direction: column; min-height: 60vh; min-width: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.chat-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--border); }
.chat-log { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; max-height: 62vh; }
.bubble { max-width: 85%; padding: 8px 12px; border-radius: 12px; white-space: pre-wrap; word-break: break-word; }
.bubble.user { align-self: flex-end; background: var(--accent); color: var(--accent-text); }
.bubble.staff { align-self: flex-start; background: var(--bg); }
.bubble.system { align-self: center; color: var(--muted); font-size: 13px; background: none; }
.bubble .meta { display: block; font-size: 11.5px; opacity: .75; margin-top: 4px; }
.chat-input { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--border); }
.chat-input textarea { min-height: 44px; height: 44px; }
.chat-input .btn { flex: none; white-space: nowrap; }
.nav .inline-form { display: flex; }
.nav .linkbtn { padding: 8px 10px; border-radius: 8px; }
.nav .linkbtn:hover, .nav .linkbtn:focus-visible { background: var(--bg); }
.status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); margin-right: 6px; }
.status-dot.on { background: var(--ok); }

/* ── 2단계: 칸반·모달·Inbox ─────────────────────────────────────── */
.nav .count { display: inline-block; min-width: 18px; padding: 0 5px; border-radius: 999px; background: var(--bad); color: #fff; font-size: 12px; text-align: center; margin-left: 4px; }
.kanban { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 8px; }
.kcol { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px; min-height: 200px; display: flex; flex-direction: column; gap: 8px; }
.kcol.drop { outline: 2px dashed var(--accent); }
.kcol h3 { font-size: 14px; margin: 0 0 4px; display: flex; justify-content: space-between; }
.kcard { background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; cursor: pointer; text-align: left; color: var(--text); font: inherit; width: 100%; }
.kcard:hover { border-color: var(--accent); }
.kcard .t { font-weight: 600; display: block; }
.kcard .m { color: var(--muted); font-size: 12.5px; display: block; margin-top: 2px; }
.tag { display: inline-block; padding: 0 8px; border-radius: 999px; font-size: 12px; border: 1px solid currentColor; margin-right: 4px; }
.tag.warn { color: #e67700; } .tag.bad { color: var(--bad); } .tag.ok { color: var(--ok); } .tag.info { color: var(--accent); }
.modal-back { position: fixed; inset: 0; background: rgba(10, 15, 25, .45); display: flex; align-items: flex-start; justify-content: center; padding: 24px 12px; z-index: 50; overflow-y: auto; }
.modal { background: var(--surface); border-radius: var(--radius); width: 100%; max-width: 820px; padding: 18px; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.modal .card-head { margin-bottom: 8px; }
pre.log { background: var(--bg); padding: 10px; border-radius: 8px; white-space: pre-wrap; word-break: break-word; font-size: 12.5px; max-height: 360px; overflow-y: auto; margin: 0; }
.md { white-space: pre-wrap; word-break: break-word; background: var(--bg); padding: 10px; border-radius: 8px; }
.inbox-item { border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; display: grid; gap: 6px; background: var(--surface); }
.inbox-item code { background: var(--bg); padding: 2px 6px; border-radius: 4px; }

/* ── 3단계: 3D 오피스 ───────────────────────────────────────────── */
/* 전체 화면 페이지(오피스): 본문 여백·최대 폭 없음. 임베드(오피스 위 창 안): 상단 바 없음 */
.page.page-full { max-width: none; padding: 0; display: flex; flex-direction: column; min-height: 0; }
body.full-bleed { height: 100vh; height: 100dvh; overflow: hidden; }
body.embed .page { padding: 12px; }
.only-mobile { display: inline-flex; }
@media (min-width: 900px) { .only-mobile { display: none; } }

.office { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.office-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 6px var(--gutter); background: var(--surface); border-bottom: 1px solid var(--border); }
.office-switch { width: auto; max-width: 200px; min-height: 32px; padding: 2px 8px; font-weight: 600; }
.office-map { white-space: nowrap; }
.count-badge { display: inline-block; min-width: 18px; margin-left: 4px; padding: 0 5px; border-radius: 999px; background: var(--bad); color: #fff; font-size: 12px; text-align: center; }
.office-body { position: relative; flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); }
@media (min-width: 900px) { .office-body { grid-template-columns: 220px minmax(0, 1fr) 340px; } }

.office-stage { position: relative; min-height: 0; overflow: hidden; background: #e9edf2; }
.office-canvas { display: block; width: 100%; height: 100%; touch-action: none; outline: none; }
.office-overlay { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.npc-tag { position: absolute; left: 0; top: 0; pointer-events: auto; white-space: nowrap; font: 600 12px/1.2 inherit; font-family: inherit;
    padding: 2px 8px; border-radius: 999px; border: 1px solid rgba(0,0,0,.12); background: rgba(255,255,255,.92); color: #1d2330; cursor: pointer; box-shadow: 0 1px 2px rgba(0,0,0,.15); }
.npc-tag.me { background: #3b5bdb; color: #fff; cursor: default; }
.npc-tag[data-status=working] { background: #e7f0ff; border-color: #3b5bdb; }
.npc-tag[data-status=thinking] { background: #f3edff; border-color: #7950f2; }
.npc-tag[data-status=approval] { background: #fff4e0; border-color: #e67700; }
.npc-tag[data-status=error] { background: #ffe3e3; border-color: #c92a2a; }
.npc-tag[data-status=done] { background: #e6fcf5; border-color: #2b8a3e; }
.npc-bubble { position: absolute; left: 0; top: 0; max-width: 220px; padding: 6px 10px; border-radius: 12px; background: #fff; color: #1d2330; font-size: 13px;
    box-shadow: 0 2px 8px rgba(0,0,0,.2); white-space: normal; word-break: keep-all; }
.office-loading { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; margin: 0; color: #56607a; }
.office-error { position: absolute; left: 12px; right: 12px; top: 12px; }
.office-hint { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); display: flex; gap: 8px; align-items: center; padding: 6px 12px;
    background: rgba(255,255,255,.95); color: #1d2330; border-radius: 999px; box-shadow: 0 2px 8px rgba(0,0,0,.2); font-size: 14px; white-space: nowrap; max-width: calc(100% - 24px); }
.office-help { position: absolute; right: 12px; top: 12px; max-width: 360px; padding: 12px 14px; background: var(--surface); color: var(--text); border-radius: var(--radius); box-shadow: 0 4px 16px rgba(0,0,0,.25); font-size: 13.5px; }
.office-help ul { margin: 6px 0 10px; padding-left: 18px; }
kbd { border: 1px solid var(--border); border-bottom-width: 2px; border-radius: 4px; padding: 0 4px; font-size: 12px; background: var(--bg); }
.office-toast { position: absolute; left: 50%; top: 12px; transform: translateX(-50%); padding: 8px 14px; border-radius: 8px; background: #1d2330; color: #fff; font-size: 14px; max-width: calc(100% - 24px); }

.office-left, .office-right { background: var(--surface); min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; padding: 10px; }
.office-left { border-right: 1px solid var(--border); }
.office-right { border-left: 1px solid var(--border); gap: 8px; }
.office-left h3 { font-size: 13px; color: var(--muted); margin: 10px 0 2px; }
.office-left h3:first-child { margin-top: 0; }
.list-item { display: flex; align-items: center; gap: 6px; text-align: left; border: 1px solid transparent; background: none; color: var(--text); border-radius: 8px; padding: 6px 8px; cursor: pointer; font: inherit; }
.list-item:hover { background: var(--bg); }
.list-item.active { border-color: var(--accent); background: var(--bg); }
.list-item.off { opacity: .55; }
.st-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; background: #9aa3b5; }
.st-dot[data-status=idle] { background: var(--ok); }
.st-dot[data-status=working] { background: #3b5bdb; }
.st-dot[data-status=thinking] { background: #7950f2; }
.st-dot[data-status=approval] { background: #e67700; }
.st-dot[data-status=error] { background: var(--bad); }
.st-dot[data-status=done] { background: #12b886; }
.panel-head { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.office-right .tabs { margin-bottom: 0; }
.office-log { max-height: none; flex: 1; min-height: 160px; padding: 6px 2px; }
.office-right .chat-input { padding: 6px 0 0; border-top: 1px solid var(--border); }
.bubble .who { display: block; font-size: 12px; font-weight: 700; opacity: .8; margin-bottom: 2px; }
.panel-list { display: grid; gap: 6px; overflow-y: auto; }
.report-row { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; font-size: 14px; padding: 6px 0; border-bottom: 1px solid var(--border); }
.report-row .grow { flex: 1; min-width: 120px; }

/* 모바일: 좌우 패널은 화면 아래에서 올라오는 시트 */
@media (max-width: 899px) {
    .office-left, .office-right { position: absolute; left: 0; right: 0; bottom: 0; max-height: 62%; z-index: 20; border: 0; border-top: 1px solid var(--border);
        border-radius: 14px 14px 0 0; box-shadow: 0 -6px 20px rgba(0,0,0,.2); transform: translateY(105%); transition: transform .2s ease; }
    .office-left.open, .office-right.open { transform: none; }
    .office-left:not(.open), .office-right:not(.open) { visibility: hidden; }
    .office-hint { white-space: normal; border-radius: 12px; }
}

.modal.modal-frame { max-width: 1100px; height: calc(100vh - 48px); height: calc(100dvh - 48px); display: flex; flex-direction: column; }
.modal-frame iframe { flex: 1; width: 100%; border: 1px solid var(--border); border-radius: 8px; background: var(--bg); }

/* 오피스 목록·미리보기·캐릭터 미리보기 */
.office-cards { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.map-preview { position: relative; height: 260px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: #e9edf2; }
.map-preview canvas { display: block; width: 100%; height: 100%; }
.avatar-preview { width: 200px; height: 220px; border-radius: var(--radius); border: 1px solid var(--border); background: linear-gradient(#f4f6fa, #e3e8f0); }
.avatar-preview canvas { display: block; width: 100%; height: 100%; }

/* ── 4단계: 회의·Skill ─────────────────────────────────────────── */
.meeting-log { max-height: 55vh; min-height: 200px; border: 1px solid var(--border); border-radius: 8px; }
ul.plain { margin: 0; padding-left: 18px; }
details.inbox-item > summary { cursor: pointer; list-style: revert; }

/* ── 5단계: 사용량 그래프·타임라인·관리자 열람 ───────────────────── */
.range-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; }
.range-form .field { margin: 0; }
.bars { display: flex; align-items: flex-end; gap: 2px; height: 160px; padding: 8px 0 0; border-bottom: 1px solid var(--border); overflow-x: auto; }
.bars .bar { flex: 1 0 8px; min-width: 8px; display: flex; flex-direction: column-reverse; height: 100%; cursor: default; }
.bars .bar i { display: block; width: 100%; }
.bars .bar i.shared { background: var(--accent); }
.bars .bar i.own { background: #e67700; }
.bars-axis { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.legend { display: flex; gap: 14px; font-size: 13px; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 4px; vertical-align: middle; }
.meter { height: 8px; border-radius: 999px; background: var(--bg); overflow: hidden; min-width: 60px; }
.meter i { display: block; height: 100%; background: var(--ok); }
.readonly-banner { background: #fff4e0; color: #8a4b00; border: 1px solid #f0c27b; border-radius: 8px; padding: 8px 12px; font-size: 14px; }
.timeline { overflow-x: auto; }
.timeline-inner { min-width: 680px; }
.tl-row { display: flex; align-items: stretch; height: 34px; border-bottom: 1px dashed var(--border); }
.tl-row.tl-head { height: 24px; border-bottom: 1px solid var(--border); }
.tl-label { flex: 0 0 200px; max-width: 200px; padding: 0 8px; background: none; border: 0; text-align: left; cursor: pointer; color: var(--text);
    font: inherit; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 34px; }
.tl-head .tl-label { line-height: 24px; color: var(--muted); cursor: default; }
.tl-track { position: relative; flex: 1; }
.tl-axis span { position: absolute; top: 4px; transform: translateX(-50%); white-space: nowrap; font-size: 12px; color: var(--muted); }
.tl-bar { position: absolute; top: 8px; height: 18px; border-radius: 4px; min-width: 4px; overflow: hidden; }
.tl-bar .tl-wait { display: block; height: 100%; background: rgba(255,255,255,.55); }
.tl-bar.TODO { background: #adb5bd; } .tl-bar.READY { background: #74c0fc; } .tl-bar.RUNNING { background: var(--accent); }
.tl-bar.BLOCKED { background: var(--bad); } .tl-bar.DONE { background: var(--ok); }
.tl-due { position: absolute; top: 4px; width: 2px; height: 26px; background: #e67700; }
.tl-now { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--bad); opacity: .6; pointer-events: none; }
@media (max-width: 599px) { .tl-label { flex-basis: 120px; max-width: 120px; } .timeline-inner { min-width: 520px; } }
