/* CUBE:ONE v2 — Ivory · Sage · Forest + 팀 색 (Steel Blue · Amber Gold · Sage) */
:root {
  --ivory: #F4F3EF; --sage: #708F69; --forest: #354F3B; --deep: #1D2D23;
  --blue: #6488B8; --gold: #D3A15C;
  --bg: #F4F3EF; --card: #FFFFFF; --paper: #FBFAF7; --ink: #141A16; --sub: #5E655F; --line: #E2E0D8; --soft: #ECEAE3;
  --head: #1D2D23; --btn: #1D2D23; --btn-ink: #fff; --btn-hover: #354F3B;
  --err: #A4412F; --warn: #9A6B16; --late: #B4473A; --soon: #B07A1E;
  --cube-empty-1: #FFFFFF; --cube-empty-2: #F4F3EF; --cube-empty-3: #ECEAE3; --cube-line: #CFCBBF;
  --r: 18px; --r-sm: 10px;
  --shadow: 0 1px 2px rgba(29, 45, 35, .04), 0 8px 30px rgba(29, 45, 35, .05);
  font-family: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', system-ui, sans-serif;
  color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; letter-spacing: -0.01em;
}
[data-theme=dark] {
  --bg: #121A15; --card: #1B2620; --paper: #202C25; --ink: #E7ECE5; --sub: #9AA79D; --line: #2E3B33; --soft: #26332B;
  --head: #EEF2EC; --btn: #C9D6C5; --btn-ink: #121A15; --btn-hover: #E3EBE0; --ivory: #1E2922;
  --cube-empty-1: #26332B; --cube-empty-2: #1F2B24; --cube-empty-3: #18221C; --cube-line: #3A483F;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 30px rgba(0,0,0,.25);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--ink); }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -0.03em; color: var(--head); }
h1 { font-size: clamp(30px, 4.2vw, 50px); line-height: 1.12; display: flex; align-items: center; gap: 14px; }
h2 { font-size: 22px; margin-bottom: 14px; } h3 { font-size: 17px; } h4 { font-size: 14px; margin: 14px 0 8px; color: var(--sage); }
p { line-height: 1.6; margin: 6px 0; }
button, input, select, textarea { font: inherit; color: inherit; }
code { font-size: 13px; background: var(--soft); padding: 2px 6px; border-radius: 6px; }
.muted { color: var(--sub); } .small { font-size: 13px; } .xsmall { font-size: 11.5px; } .center { text-align: center; display: block; }
.err { color: var(--err); font-size: 13px; min-height: 1em; margin: 0; } .nowrap { white-space: nowrap; } .grow { flex: 1; }
.late-t { color: var(--late); } .soon-t { color: var(--soon); }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; vertical-align: middle; margin-right: 6px; }
.dot.lg { width: 22px; height: 22px; border-radius: 6px; margin: 0; }

.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-word { font-weight: 800; letter-spacing: 0.04em; font-size: 18px; color: var(--head); }
.brand-word b { color: var(--sage); }

.btn { appearance: none; border: 0; background: var(--btn); color: var(--btn-ink); padding: 11px 20px; border-radius: 999px; font-weight: 600; font-size: 14px; cursor: pointer; transition: transform .15s, background .2s, opacity .2s; }
.btn:hover { background: var(--btn-hover); } .btn:active { transform: scale(.98); } .btn:disabled { opacity: .5; cursor: default; }
.btn.ghost { background: transparent; color: var(--head); box-shadow: inset 0 0 0 1px var(--line); } .btn.ghost:hover { background: var(--soft); }
.btn.sm { padding: 7px 14px; font-size: 13px; } .btn.block { width: 100%; padding: 14px; } .btn.danger { color: var(--err); }
.link { background: none; border: 0; color: var(--sage); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 0; font-size: inherit; }
.icon-x { border: 0; background: none; color: var(--sub); font-size: 20px; line-height: 1; cursor: pointer; padding: 2px 6px; border-radius: 6px; }
.icon-x:hover { background: var(--soft); color: var(--err); }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; } .row.end { justify-content: flex-end; } .row.between { justify-content: space-between; }

.form { display: grid; gap: 14px; }
label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--sub); }
input, select, textarea { width: 100%; border: 1px solid var(--line); background: var(--card); border-radius: var(--r-sm); padding: 10px 12px; font-size: 15px; font-weight: 400; color: var(--ink); outline: none; transition: border .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { border-color: var(--sage); box-shadow: 0 0 0 3px rgba(112, 143, 105, .18); }
input[type=range] { padding: 0; border: 0; accent-color: var(--sage); }
input[type=color] { width: 44px; height: 40px; padding: 3px; }
input[type=checkbox] { width: auto; }
textarea { resize: vertical; line-height: 1.6; }
.check-line { display: flex; align-items: center; gap: 8px; font-weight: 500; color: var(--ink); }
.seg { border: 0; padding: 0; margin: 0; display: flex; gap: 8px; flex-wrap: wrap; }
.seg legend { font-size: 13px; font-weight: 600; color: var(--sub); margin-bottom: 6px; padding: 0; width: 100%; }
.seg label { display: block; } .seg input { display: none; }
.seg span { display: inline-block; padding: 8px 16px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); font-weight: 500; cursor: pointer; }
.seg input:checked + span { background: var(--forest); color: #fff; box-shadow: none; }
.seg-tabs { display: inline-flex; background: var(--soft); border-radius: 999px; padding: 3px; gap: 2px; }
.seg-tabs button { border: 0; background: none; padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--sub); cursor: pointer; white-space: nowrap; }
.seg-tabs button.on { background: var(--card); color: var(--head); box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.seg-tabs.wide { display: flex; } .seg-tabs.wide button { flex: 1; }
.seg-tabs.dark { background: rgba(255,255,255,.07); } .seg-tabs.dark button { color: #9FB09F; } .seg-tabs.dark button.on { background: #E7ECE5; color: #1D2D23; }
.switch { display: flex; align-items: center; gap: 10px; cursor: pointer; color: var(--ink); font-weight: 500; }
.switch input { display: none; }
.switch span { width: 40px; height: 24px; border-radius: 99px; background: var(--line); position: relative; transition: .2s; flex: none; }
.switch span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.switch input:checked + span { background: var(--sage); } .switch input:checked + span::after { left: 19px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
.grid-3-2 { display: grid; grid-template-columns: 3fr 2fr; gap: 20px; }
.grid-2.tight, .grid-3.tight { gap: 12px; }
.add-row { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.add-row input[name=title], .add-row input[name=q], .add-row input[name=n] { flex: 2 1 200px; }
.add-row input, .add-row select { width: auto; flex: 1 1 120px; } .add-row .w-time { flex: 0 1 90px; }

/* layout */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 18px; padding: 14px clamp(16px, 4vw, 48px); background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: saturate(1.4) blur(16px); -webkit-backdrop-filter: saturate(1.4) blur(16px); border-bottom: 1px solid var(--line); }
.top-brand { text-decoration: none; }
.main-nav { display: flex; gap: 4px; flex: 1; overflow-x: auto; scrollbar-width: none; }
.main-nav a { text-decoration: none; color: var(--sub); font-size: 12.5px; font-weight: 700; letter-spacing: .06em; padding: 8px 12px; border-radius: 999px; white-space: nowrap; }
.main-nav a:hover { color: var(--head); } .main-nav a.on { color: var(--btn-ink); background: var(--btn); }
.ask-btn { border: 0; background: var(--soft); color: var(--head); font-weight: 800; font-size: 12px; letter-spacing: .08em; padding: 9px 14px; border-radius: 999px; cursor: pointer; white-space: nowrap; }
.ask-btn::before { content: '⌕ '; }
.icon-btn { border: 0; background: none; font-size: 18px; width: 36px; height: 36px; border-radius: 50%; cursor: pointer; color: var(--head); position: relative; }
.icon-btn:hover { background: var(--soft); }
.badge { position: absolute; top: 1px; right: 0; background: var(--late); color: #fff; font-size: 10px; font-weight: 700; min-width: 16px; height: 16px; border-radius: 8px; display: grid; place-items: center; padding: 0 4px; }
.me-btn { display: flex; align-items: center; gap: 8px; border: 0; background: none; cursor: pointer; padding: 4px; color: var(--ink); }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--sage); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 14px; }
.avatar.lg { width: 52px; height: 52px; font-size: 20px; } .me-name { font-size: 14px; font-weight: 600; }
.view { max-width: 1240px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 48px) 64px; }
.foot { text-align: center; color: var(--sub); font-size: 12px; padding: 30px 0 40px; display: flex; gap: 6px; align-items: center; justify-content: center; }
.loading { display: grid; place-items: center; min-height: 40vh; } .loading svg { animation: float 1.4s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-8px); } }

.hero { padding: clamp(32px, 6vw, 60px) 0 24px; }
.eyebrow { font-size: 12px; font-weight: 800; letter-spacing: .18em; color: var(--sage); margin: 0 0 12px; }
.lead { font-size: 18px; color: var(--sub); margin-top: 10px; }
.date-nav { display: flex; align-items: center; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.date-nav strong { font-size: 16px; min-width: 90px; text-align: center; }
.card { background: var(--card); border-radius: var(--r); padding: 24px; box-shadow: var(--shadow); margin-bottom: 20px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.card-head h4 { margin: 0; }
.tag { display: inline-block; font-size: 11.5px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--soft); color: var(--sub); font-style: normal; }
.tag.share { background: #E3EBE0; color: var(--forest); } .tag.warn { background: #F5EBD6; color: var(--warn); }
.engine { font-size: 11.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.engine.ai { background: var(--btn); color: var(--btn-ink); } .engine.rule { background: var(--soft); color: var(--sub); }
.tabs { display: flex; gap: 6px; margin-bottom: 20px; overflow-x: auto; scrollbar-width: none; }
.tabs button { border: 0; background: transparent; padding: 9px 16px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--sub); cursor: pointer; white-space: nowrap; }
.tabs button.on { background: var(--card); color: var(--head); box-shadow: var(--shadow); }

/* cubes */
.cube { display: block; transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.cube-day { background: var(--card); border-radius: 24px; padding: clamp(20px, 3vw, 34px); box-shadow: var(--shadow); margin-bottom: 20px; }
.cube-row { display: flex; gap: clamp(4px, 1vw, 12px); align-items: stretch; justify-content: space-between; }
.slot { flex: 1; border: 0; background: none; padding: 8px 4px; border-radius: 16px; display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer; min-width: 0; color: var(--ink); }
.slot:hover { background: var(--paper); } .slot:hover .cube { transform: translateY(-4px); }
.slot.filled .cube { animation: pop .5s cubic-bezier(.2,.9,.3,1.4); }
@keyframes pop { from { transform: scale(.7); opacity: .3; } }
.slot-no { font-size: 10px; font-weight: 800; letter-spacing: .1em; color: var(--sub); }
.slot-time { font-size: 12px; font-weight: 700; color: var(--sub); font-variant-numeric: tabular-nums; }
.slot-text { font-size: 12px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.slot:not(.filled) .slot-text { color: var(--line); font-size: 18px; }
.lunch { width: 1px; background: var(--line); position: relative; margin: 10px 2px; }
.lunch span { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background: var(--card); font-size: 10px; color: var(--sub); writing-mode: vertical-rl; padding: 4px 0; }
.cube-meter { display: flex; align-items: center; gap: 14px; margin-top: 18px; font-size: 14px; flex-wrap: wrap; }
.meter { flex: 1; min-width: 120px; height: 6px; background: var(--soft); border-radius: 99px; overflow: hidden; }
.meter span { display: block; height: 100%; border-radius: 99px; transition: width .6s; }
.legend { color: var(--sub); font-size: 12px; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.lg { width: 10px; height: 10px; border-radius: 3px; display: inline-block; margin-left: 8px; }
.lg.lg-mid { background: color-mix(in srgb, var(--c) 55%, white); } .lg.lg-pale { background: color-mix(in srgb, var(--c) 22%, white); } .lg.exception { background: #D9D6CC; }
.goal-mini { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; }
.goal-mini input { width: 64px; padding: 5px 8px; font-size: 14px; }

/* lists */
.clean { margin: 0; padding-left: 18px; } .clean li { margin: 5px 0; line-height: 1.55; }
.log-list { list-style: none; padding: 0; margin: 0; }
.log-list li { display: grid; grid-template-columns: 100px 1fr; gap: 12px; padding: 11px 0; border-top: 1px solid var(--soft); }
.log-list li:first-child { border-top: 0; }
.log-time { font-size: 12px; color: var(--sub); font-variant-numeric: tabular-nums; padding-top: 2px; }
.log-top { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 14px; }
.log-body p { margin: 4px 0 0; font-size: 14px; }
.st { font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.st.done { background: var(--forest); color: #fff; } .st.in_progress { background: #DCE6D8; color: var(--forest); } .st.waiting, .st.hold { background: #EFEBE0; color: #7C7563; } .st.planned { background: #E5ECF5; color: #3E5C86; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { border: 0; background: var(--paper); padding: 8px 14px; border-radius: 999px; font-size: 13.5px; cursor: pointer; font-weight: 500; box-shadow: inset 0 0 0 1px var(--soft); }
.chip:hover { background: var(--soft); } .chip.on { background: var(--forest); color: #fff; }
.chip-add input { border-radius: 999px; padding: 7px 14px; font-size: 13.5px; width: 180px; background: transparent; border-style: dashed; }
.exc-row { display: flex; gap: 8px; flex-wrap: wrap; }
.sched { list-style: none; padding: 0; margin: 0; }
.sched li { display: grid; grid-template-columns: 76px 1fr; gap: 2px 12px; padding: 8px 0; border-top: 1px solid var(--soft); font-size: 14px; }
.sched li:first-child { border-top: 0; } .sched .sd { grid-row: span 2; font-size: 12px; color: var(--sub); font-weight: 600; } .sched li.late b { color: var(--late); }
.task-mini { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.task-mini li { display: grid; grid-template-columns: 1fr 140px auto; align-items: center; gap: 10px; font-size: 14px; }
.pwrap { display: inline-flex; align-items: center; width: 100%; min-width: 90px; }
.pbar { display: inline-block; flex: 1; min-width: 60px; height: 8px; background: var(--soft); border-radius: 99px; overflow: hidden; vertical-align: middle; }
.pbar-fill { display: block; height: 100%; border-radius: 99px; }
.pbar-val { font-size: 12px; color: var(--sub); font-variant-numeric: tabular-nums; margin-left: 8px; }
.pcell { display: flex; align-items: center; min-width: 140px; }
.hbar { display: inline-block; width: 70px; height: 6px; background: var(--soft); border-radius: 99px; overflow: hidden; vertical-align: middle; margin-right: 8px; } .hbar i { display: block; height: 100%; }

.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--soft); }
.checklist li:first-child { border-top: 0; } .checklist li.empty { justify-content: center; padding: 18px 0; }
.chk { display: inline-flex; cursor: pointer; } .chk input { display: none; }
.chk span { width: 20px; height: 20px; border-radius: 6px; box-shadow: inset 0 0 0 1.5px #C7C3B6; display: grid; place-items: center; transition: .15s; flex: none; }
.chk input:checked + span { background: var(--sage); box-shadow: none; }
.chk input:checked + span::after { content: ''; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px, -1px); }
.chk-title { flex: 1; font-size: 14.5px; } .is-done .chk-title { color: var(--sub); text-decoration: line-through; } .chk-title .tag { margin-left: 6px; }
.pri { border: 0; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 6px; cursor: pointer; flex: none; }
.pri.p1 { background: #F3E2DC; color: var(--err); } .pri.p2 { background: var(--soft); color: var(--sub); } .pri.p3 { background: #EEF2EC; color: var(--sage); }
.due { width: 136px; padding: 5px 8px; font-size: 12.5px; flex: none; }

/* calendar */
.cal-head, .cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-head span { font-size: 12px; font-weight: 700; color: var(--sub); text-align: center; padding-bottom: 6px; }
.cal-day { border: 0; background: var(--paper); border-radius: 12px; min-height: 108px; padding: 8px; text-align: left; display: flex; flex-direction: column; gap: 4px; cursor: pointer; color: var(--ink); }
.cal-day.out { opacity: .4; } .cal-day.today { box-shadow: inset 0 0 0 2px var(--sage); } .cal-day:hover { background: var(--soft); }
.cd-n { font-size: 13px; font-weight: 700; } .cd-cubes { font-size: 11px; color: var(--sub); display: inline-flex; align-items: center; gap: 3px; }
.cd-items { display: grid; gap: 3px; }
.ci { font-style: normal; font-size: 11px; padding: 2px 6px; border-radius: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: var(--soft); }
.ci.ev { background: #E5ECF5; color: #3E5C86; } .ci.tk { background: color-mix(in srgb, var(--c) 20%, white); color: var(--forest); } .ci.tk.late { background: #F6DDD8; color: var(--late); }
.ci.co { background: #F7ECDA; color: #8A5E1C; } .ci.more { background: none; color: var(--sub); }

/* briefing */
.summary { font-size: 17px; line-height: 1.65; margin: 10px 0 6px; }
.reco { background: var(--paper); border-radius: 14px; padding: 16px 18px; margin: 16px 0; }
.reco-list { list-style: none; padding: 0; margin: 0; }
.reco-list li { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.reco-list li:first-child { border-top: 0; } .reco-list b { font-weight: 600; } .reco-list p { margin: 2px 0 0; }
.brief-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 4px 24px; }
.brief-grid.one { grid-template-columns: 1fr 1fr; } .brief-sec { font-size: 14px; }
.ai-tip { background: #EEF2EC; border-radius: 12px; padding: 4px 14px 10px; }
[data-theme=dark] .ai-tip { background: #22302A; }
.sec-pair { display: grid; grid-template-columns: 1.25fr auto 1fr; gap: 16px; align-items: stretch; }
.sec-flow { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; font-size: 11px; color: var(--sub); text-align: center; width: 80px; }
.sec-flow b { font-size: 26px; color: var(--sage); }
.brief.evening { background: linear-gradient(180deg, var(--card), var(--paper)); }

/* weekly */
.wk-top { display: grid; grid-template-columns: 1.2fr 1fr 1.3fr; gap: 20px; }
.wk-top .card { display: flex; gap: 18px; align-items: center; }
.wk-hours, .wk-week { flex-direction: column; align-items: flex-start !important; gap: 6px !important; }
.big { font-size: 40px; font-weight: 700; letter-spacing: -0.04em; color: var(--head); margin: 0; line-height: 1.1; } .big small { font-size: 16px; color: var(--sub); font-weight: 500; }
.donut-c { font-size: 30px; font-weight: 700; fill: var(--head); } .donut-s { font-size: 12px; fill: var(--sub); }
.donut-wrap { display: flex; gap: 26px; align-items: center; flex-wrap: wrap; }
.legend-list { list-style: none; padding: 0; margin: 0; flex: 1; display: grid; gap: 10px; min-width: 200px; }
.legend-list li { display: grid; grid-template-columns: 14px 1fr auto auto; gap: 10px; align-items: center; font-size: 14px; }
.legend-list i { width: 12px; height: 12px; border-radius: 3px; } .legend-list b { font-variant-numeric: tabular-nums; } .legend-list span { color: var(--sub); font-size: 12px; width: 34px; text-align: right; }
.cols { display: flex; align-items: flex-end; gap: 18px; height: calc(var(--ch) + 46px); padding-top: 10px; }
.col-i { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 6px; }
.col-b { width: 100%; max-width: 48px; border-radius: 8px 8px 3px 3px; min-height: 2px; }
.col-v { font-size: 12px; font-weight: 700; color: var(--head); } .col-l { font-size: 12px; color: var(--sub); }
.week-grid { display: grid; gap: 6px; } .wk-day { display: grid; grid-template-columns: 64px 1fr; align-items: center; font-size: 12px; color: var(--sub); } .wk-cubes { display: flex; gap: 3px; }
.report-ta { font-family: inherit; font-size: 14px; background: var(--paper); border-color: transparent; margin: 6px 0 12px; }

/* team */
.kpis { display: grid; grid-template-columns: repeat(8, 1fr); gap: 10px; margin-bottom: 20px; }
.kpi { background: var(--card); border-radius: 14px; padding: 14px 16px; box-shadow: var(--shadow); display: grid; gap: 2px; }
.kpi span { font-size: 12px; color: var(--sub); font-weight: 600; } .kpi b { font-size: 30px; letter-spacing: -0.03em; color: var(--head); }
.kpi.late b { color: var(--late); } .kpi.soon b { color: var(--soon); }
.prog-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.prog-list li { display: grid; grid-template-columns: 1fr 170px; align-items: center; gap: 12px; cursor: pointer; }

.pl-t { font-size: 14px; font-weight: 600; } .pl-t em { display: block; font-style: normal; font-weight: 400; font-size: 12px; color: var(--sub); }
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.filters select { width: auto; padding: 6px 10px; font-size: 13px; }
.g-legend { display: flex; gap: 6px; align-items: center; font-size: 12px; color: var(--sub); margin-left: auto; flex-wrap: wrap; }
.lg-bar { width: 18px; height: 8px; border-radius: 3px; display: inline-block; } .lg-late { width: 18px; height: 10px; border: 2px solid var(--late); border-radius: 3px; display: inline-block; }
.lg-link { width: 18px; border-top: 2px dashed var(--sub); display: inline-block; } .lg-today { width: 2px; height: 12px; background: var(--late); display: inline-block; }

/* bars */
.bars { display: grid; gap: 12px; }
.bar-row { display: grid; grid-template-columns: minmax(80px, 150px) 1fr auto; gap: 12px; align-items: center; font-size: 13.5px; }
.bar-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.bar-track { height: 12px; background: var(--soft); border-radius: 99px; overflow: hidden; }
.bar-fill { display: block; height: 100%; background: var(--sage); border-radius: 99px; }
.bar-val { color: var(--sub); font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* gantt */
.gantt { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--card); font-size: 13px; }
.g-head { display: grid; grid-template-columns: 300px 1fr; border-bottom: 1px solid var(--line); background: var(--paper); }
.g-lab-h { padding: 10px 14px; font-size: 12px; color: var(--sub); font-weight: 700; }
.g-ticks { position: relative; height: 36px; }
.g-ticks span { position: absolute; top: 10px; font-size: 11.5px; color: var(--sub); transform: translateX(4px); white-space: nowrap; }
.g-body { display: grid; grid-template-columns: 300px 1fr; }
.g-labels { border-right: 1px solid var(--line); }
.g-row { height: var(--rh); display: flex; align-items: center; gap: 8px; padding: 0 14px; border-bottom: 1px solid var(--soft); overflow: hidden; cursor: pointer; }
.g-row b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; } .g-row span { color: var(--sub); font-size: 12px; white-space: nowrap; }
.g-row.g-group { background: var(--paper); font-weight: 800; cursor: default; letter-spacing: .02em; } .g-row.g-group i { width: 12px; height: 12px; border-radius: 3px; } .g-row.g-group em { font-style: normal; color: var(--sub); font-weight: 500; font-size: 12px; }
.g-ov { font-style: normal; font-size: 10.5px; color: var(--warn); background: #F5EBD6; padding: 1px 6px; border-radius: 6px; white-space: nowrap; }
.g-track { position: relative; height: calc(var(--rows) * var(--rh)); }
.g-grid { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--soft); }
.g-bar-row { position: absolute; left: 0; right: 0; height: var(--rh); border-bottom: 1px solid var(--soft); }
.g-group-row { background: var(--paper); }
.g-bar { position: absolute; top: 9px; height: calc(var(--rh) - 18px); border-radius: 7px; overflow: visible; cursor: pointer; display: flex; align-items: center; }
.g-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 7px; }
.g-txt { position: relative; z-index: 1; font-size: 11.5px; font-weight: 700; color: #fff; padding-left: 8px; text-shadow: 0 1px 2px rgba(0,0,0,.25); }
.g-bar.late { box-shadow: 0 0 0 2px var(--late); } .g-bar.done .g-txt::after { content: ' ✓'; }
.g-flags { position: absolute; left: calc(100% + 6px); top: 50%; transform: translateY(-50%); display: flex; gap: 4px; z-index: 2; align-items: center; }
.g-flag { white-space: nowrap; font-size: 10.5px; font-weight: 700; padding: 2px 6px; border-radius: 5px; }
.g-flag.late { background: var(--late); color: #fff; } .g-flag.soon { background: #F7ECDA; color: #8A5E1C; } .g-flag.co { background: #E5ECF5; color: #3E5C86; }
.g-nodate { position: absolute; left: 10px; top: 13px; font-size: 11px; color: var(--sub); }
.g-links { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.g-link { fill: none; stroke: var(--sub); stroke-width: 1.5; stroke-dasharray: 4 3; } .g-link.late { stroke: var(--late); }
.g-today { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--late); opacity: .8; z-index: 3; }
.g-today em { position: absolute; top: -1px; left: 4px; white-space: nowrap; font-style: normal; font-size: 10px; font-weight: 700; color: var(--late); background: var(--card); padding: 0 3px; }

/* treemap */
.treemap { position: relative; width: 100%; border-radius: 14px; overflow: hidden; }
.treemap.dark { background: #0F1813; } .treemap:not(.dark) { background: var(--paper); }
.tm-group { position: absolute; }
.tm-glabel { position: absolute; top: 6px; left: 8px; right: 8px; font-size: 12.5px; font-weight: 800; color: #E7ECE5; display: flex; align-items: center; gap: 6px; white-space: nowrap; overflow: hidden; }
.treemap:not(.dark) .tm-glabel { color: var(--head); }
.tm-glabel i { width: 10px; height: 10px; border-radius: 3px; flex: none; } .tm-glabel em { font-style: normal; font-weight: 500; opacity: .7; font-size: 11.5px; }
.tm-cell { position: absolute; border: 0; border-radius: 4px; padding: 6px 8px; text-align: left; cursor: pointer; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; transition: filter .15s, transform .15s; font-family: inherit; }
.tm-cell:hover { filter: brightness(1.08); z-index: 2; }
.tm-cell.late { box-shadow: inset 0 0 0 3px #E0533F; } .tm-cell.dim { opacity: .55; }
.tm-label { font-size: 12px; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tm-num { font-size: 17px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.tm-warn { position: absolute; top: 4px; right: 6px; font-size: 13px; color: #FFE08A; text-shadow: 0 1px 2px rgba(0,0,0,.4); }
.tm-collab { position: absolute; bottom: 4px; right: 6px; font-size: 13px; opacity: .9; }

/* one cube */
.map-wrap { background: #16211B; border-radius: 24px; padding: 22px; color: #E7ECE5; margin-bottom: 20px; }
.team-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.team-kpi { background: rgba(255,255,255,.05); border-radius: 14px; padding: 12px 16px; display: grid; gap: 4px; border-top: 3px solid var(--c, #C9D6C5); }
.team-kpi span { font-size: 12.5px; color: #A9BBA9; font-weight: 600; } .team-kpi b { font-size: 28px; color: #fff; } .team-kpi b small { font-size: 13px; color: #A9BBA9; margin-left: 2px; }
.team-kpi em { font-style: normal; font-size: 12px; color: #A9BBA9; } .team-kpi .pbar { background: rgba(255,255,255,.1); }
.team-kpi .pbar-val { color: #C9D6C5; }
.map-ctrl { display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.dark-sel { display: flex; align-items: center; gap: 8px; color: #A9BBA9; } .dark-sel select { width: auto; background: #1F2B24; color: #E7ECE5; border-color: #2E3B33; padding: 6px 10px; font-size: 13px; }
.map-body { display: grid; grid-template-columns: 1fr 280px; gap: 16px; }
.map-detail { background: rgba(255,255,255,.05); border-radius: 14px; padding: 18px; font-size: 13.5px; }
.map-detail h3 { color: #fff; margin-bottom: 10px; } .map-detail .muted { color: #9AA79D; }
.legend-row { display: flex; gap: 10px; flex-wrap: wrap; font-size: 12px; margin: 14px 0 6px; }
.legend-row span { display: inline-flex; align-items: center; gap: 5px; } .legend-row i { width: 11px; height: 11px; border-radius: 3px; display: inline-block; }
.legend-row .grad { width: 80px; height: 10px; border-radius: 3px; }
.dl { display: grid; grid-template-columns: 82px 1fr; gap: 8px 10px; margin: 0 0 14px; font-size: 13.5px; } .dl dt { color: var(--sub); } .dl dd { margin: 0; display: flex; align-items: center; }
.map-detail .dl dt { color: #9AA79D; }
.scope-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 20px; }
.scope { background: var(--card); border-radius: 16px; padding: 16px 18px; box-shadow: var(--shadow); border-top: 4px solid var(--c); }
.scope ul { margin: 8px 0 0; padding-left: 18px; font-size: 13.5px; } .scope li { margin: 3px 0; }
.assign-grid { display: grid; grid-template-columns: 1.1fr .7fr 1.2fr; gap: 20px; }
.ai-mid { background: var(--btn); color: var(--btn-ink); } .ai-mid h3 { color: inherit; }
.factors { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 7px; font-size: 13.5px; }
.factors li::before { content: '◆ '; color: var(--sage); font-size: 10px; }
.reco-hero { border-left: 5px solid var(--c); background: var(--paper); border-radius: 10px; padding: 12px 16px; display: grid; gap: 2px; }
.reco-hero span { font-size: 12px; color: var(--sub); font-weight: 600; } .reco-hero b { font-size: 26px; color: var(--head); } .reco-hero em { font-style: normal; font-size: 13px; color: var(--sub); }

/* connect & alert */
.collabs { list-style: none; padding: 0; margin: 0 0 10px; display: grid; gap: 10px; }
.collab { background: var(--paper); border-radius: 14px; padding: 14px 16px; display: grid; gap: 6px; font-size: 14px; }
.collab select { width: auto; padding: 5px 8px; font-size: 12.5px; }
.cl-head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; } .cl-route { font-size: 12.5px; font-weight: 700; color: var(--sub); }
.flow { list-style: none; display: flex; gap: 0; padding: 0; margin: 4px 0; }
.flow li { flex: 1; font-size: 11px; text-align: center; padding: 4px 0; background: var(--soft); color: var(--sub); position: relative; }
.flow li:first-child { border-radius: 6px 0 0 6px; } .flow li:last-child { border-radius: 0 6px 6px 0; }
.flow li.on { background: var(--sage); color: #fff; font-weight: 700; } .flow li.rev { background: var(--gold); }
.alerts { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.alerts li { border-left: 4px solid var(--line); background: var(--paper); border-radius: 10px; padding: 10px 14px; }
.alerts li.high { border-left-color: var(--late); } .alerts li.mid { border-left-color: var(--gold); } .alerts li.low { border-left-color: var(--blue); }
.alerts p { margin: 2px 0; font-size: 14px; } .al-kind { font-size: 11.5px; font-weight: 800; letter-spacing: .04em; color: var(--sub); }
.alerts li.high .al-kind { color: var(--late); }
details.memo { background: var(--paper); border-radius: 12px; padding: 10px 14px; } details.memo summary { cursor: pointer; font-weight: 700; font-size: 13.5px; color: var(--head); }
details.memo[open] summary { margin-bottom: 12px; }
.hist { list-style: none; padding: 0; margin: 0; font-size: 13px; display: grid; gap: 6px; } .hist span { color: var(--sub); margin-right: 8px; }
.memo-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; } .memo-list li { background: var(--paper); border-radius: 10px; padding: 10px 12px; cursor: pointer; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-size: 12px; color: var(--sub); font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 10px; border-bottom: 1px solid var(--soft); vertical-align: middle; } .tbl td p { margin: 2px 0 0; }
.tbl tr[data-task] { cursor: pointer; } .tbl tr[data-task]:hover { background: var(--paper); }
.tbl.small { font-size: 13px; } .tbl tr.dim { opacity: .5; }
.event-list, .doc-list { list-style: none; padding: 0; margin: 0; }
.event-list li { display: grid; grid-template-columns: 90px 60px 1fr auto auto; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--soft); font-size: 14px; }
.event-list li.past { opacity: .5; } .ev-date { font-weight: 600; } .ev-time { color: var(--sub); font-variant-numeric: tabular-nums; }
.doc-list li { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--soft); } .doc-list li .muted { margin-left: auto; }
.pre { white-space: pre-wrap; background: var(--paper); padding: 14px; border-radius: 12px; font-size: 13.5px; font-family: inherit; }

/* ask */
.ask-form { display: flex; gap: 8px; margin: 14px 0; } .ask-form input { flex: 1; } .ask-form .btn { flex: none; white-space: nowrap; }
.ask-ans { background: var(--paper); border-radius: 14px; padding: 16px 18px; } .ask-ans .q { font-weight: 700; color: var(--sub); }
.src { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: 13.5px; } .src .tag { margin-right: 8px; }

/* admin */
.team-admin { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.team-form { border-top: 5px solid var(--c, var(--line)); display: grid; gap: 12px; margin: 0; } .team-form.new { border-top-style: dashed; }
.color-in { display: flex; align-items: center; gap: 10px; } .color-in input[name=name] { font-weight: 700; font-size: 16px; }

/* auth */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px; position: relative; overflow: hidden; }
.auth-card { width: 100%; max-width: 400px; background: var(--card); border-radius: 28px; padding: 40px 36px 28px; box-shadow: 0 30px 80px rgba(29, 45, 35, .10); position: relative; z-index: 1; display: grid; gap: 14px; }
.auth-card .brand { justify-content: center; } .auth-card .brand-word { font-size: 24px; } .auth-card h2 { text-align: center; margin: 6px 0 0; }
.tagline { text-align: center; color: var(--sub); margin: -4px 0 8px; }
.auth-art { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(4, 80px); grid-auto-rows: 80px; place-content: center; gap: 0 120px; opacity: .6; pointer-events: none; }
.auth-art span { animation: float 6s ease-in-out infinite; animation-delay: calc(var(--i) * -.7s); display: grid; place-items: center; }
.auth-art span:nth-child(odd) { transform: translateY(40px); }

/* modal & toast */
.modal-wrap { position: fixed; inset: 0; background: rgba(20, 26, 22, .36); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); display: grid; place-items: center; z-index: 50; padding: 20px; animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.modal { background: var(--card); border-radius: 24px; padding: 28px; width: 100%; max-width: 580px; max-height: calc(100vh - 40px); overflow: auto; position: relative; box-shadow: 0 30px 80px rgba(0,0,0,.2); animation: rise .25s cubic-bezier(.2,.8,.2,1); }
.modal.wide { max-width: 860px; }
@keyframes rise { from { transform: translateY(16px); opacity: 0; } }
.modal-x { position: absolute; top: 14px; right: 16px; border: 0; background: var(--soft); width: 32px; height: 32px; border-radius: 50%; font-size: 18px; cursor: pointer; color: var(--sub); }
.modal h2 { padding-right: 32px; } .modal h3 { margin: 22px 0 10px; } .modal .eyebrow { display: flex; align-items: center; }
.me-head { display: flex; gap: 14px; align-items: center; margin-bottom: 18px; } .me-head h2 { margin: 0; }
.confirm-msg { font-size: 16px; margin: 8px 0 22px; }
#toasts { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); display: grid; gap: 8px; z-index: 60; }
.toast { background: #1D2D23; color: #fff; padding: 12px 20px; border-radius: 999px; font-size: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.2); animation: rise .25s; transition: opacity .4s; }
.toast.err { background: var(--err); } .toast.warn { background: #6B5420; } .toast.out { opacity: 0; }

@media (max-width: 1100px) {
  .kpis { grid-template-columns: repeat(4, 1fr); } .assign-grid { grid-template-columns: 1fr; } .map-body { grid-template-columns: 1fr; }
  .sec-pair { grid-template-columns: 1fr; } .sec-flow { flex-direction: row; width: auto; } .wk-top { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-3-2, .scope-row { grid-template-columns: 1fr; } .team-kpis { grid-template-columns: 1fr 1fr; }
  .me-name, .ask-btn { display: none; } .top { gap: 10px; } .top-brand .brand-word { display: none; }
  .g-head, .g-body { grid-template-columns: 170px 1fr; }
}
@media (max-width: 640px) {
  .cube-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; } .lunch { display: none; }
  .kpis { grid-template-columns: repeat(2, 1fr); } .event-list li { grid-template-columns: 70px 1fr auto; } .event-list .ev-time, .event-list li > .muted { display: none; }
  .log-list li { grid-template-columns: 1fr; gap: 2px; } .card { padding: 18px; } .due { width: 118px; } .auth-art { display: none; }
  .cal-day { min-height: 64px; } .cd-items { display: none; } .task-mini li { grid-template-columns: 1fr; }
}

/* 이슈사항 */
.slot { position: relative; }
.slot-issue { position: absolute; top: 22px; left: calc(50% + 14px); width: 18px; height: 18px; border-radius: 50%; background: var(--late); color: #fff; font-size: 12px; font-weight: 800; line-height: 18px; text-align: center; box-shadow: 0 0 0 2px var(--card); }
.slot.has-issue .slot-text { color: var(--late); }
.lg.issue { background: var(--late); border-radius: 50%; }
.issue-t { color: var(--late); }
.tag.issue { background: #F6E0DC; color: var(--late); font-weight: 700; } .tag.issue.ok { background: #E3EBE0; color: var(--forest); }
.issue-line { display: flex; gap: 6px; align-items: baseline; margin: 6px 0 0; font-size: 13px; color: var(--late); } .issue-line.ok { color: var(--sub); }
.issue-box { border-radius: 12px; padding: 4px 0; } .issue-box.on { background: #FBF1EF; padding: 10px 12px; } [data-theme=dark] .issue-box.on { background: #2C211F; }
.issue-list { list-style: none; padding: 0; margin: 0; } .issue-list li { display: flex; gap: 10px; align-items: flex-start; padding: 9px 0; border-top: 1px solid var(--soft); } .issue-list li:first-child { border-top: 0; } .issue-list p { margin: 2px 0 0; }
.cd-issue { font-size: 10px; font-weight: 800; color: #fff; background: var(--late); border-radius: 8px; padding: 0 5px; margin-left: 4px; }

/* 시연 모드 */
.demo-note { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: #E3EBE0; color: #354F3B; font-size: 13px; line-height: 1.6; }
.demo-note code { background: #fff; border-radius: 6px; padding: 1px 6px; font-size: 12px; } .demo-note .btn { margin-top: 10px; }
.demo-flag { position: fixed; left: 12px; bottom: 12px; z-index: 9999; background: #1D2D23; color: #F4F3EF; font-size: 11px; padding: 5px 10px; border-radius: 999px; opacity: .85; pointer-events: none; }
