/* Collabwork — tasteskill 2.5.1 deal (2): palette white-link-blue "Sheet and biro", type geist (+ Pretendard for Hangul),
   radius soft, buttons tonal, mark dots. A white sheet and one ballpoint blue: the company's paperwork, read all day;
   the blue is spent on actions, links and state only. A night grade by click. One system: one button pair, one card,
   one hairline, one link look. */

:root {
  /* dealt palette */
  --p-bg: #ffffff; --p-surface: #f4f4f4; --p-ink: #111111; --p-muted: #6b6b6b;
  --p-accent: #1a4be0; --p-accent-ink: #ffffff;
  --p-inv-bg: #111111; --p-inv-surface: #1e1e1e; --p-inv-ink: #ffffff; --p-inv-muted: #9a9a9a;
  /* type: Geist for headings and figures, Pretendard for Hangul text */
  --font-display: "Geist", "Pretendard Variable", Pretendard, system-ui, sans-serif;
  --font-text: "Pretendard Variable", Pretendard, -apple-system, "Malgun Gothic", system-ui, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --display-tracking: -0.025em;
  --t-h1: 28px; --t-h2: 17px; --t-h3: 15px; --t-body: 15px; --t-read: 16px; --t-small: 14px; --t-label: 13px; --t-stat: 34px;
  /* spacing 4..128 */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px;
  /* radius soft, buttons tonal */
  --r-sm: 8px; --r-md: 12px; --r-lg: 20px; --r-btn: 8px; --btn-h: 44px; --btn-h-sm: 36px;
  /* motion (motion.md) */
  --m-in: 150ms; --m-out: 120ms; --m-press: 90ms; --m-panel: 200ms; --m-card: 180ms;
  --ease: cubic-bezier(.2, .8, .2, 1); --ease-enter: cubic-bezier(.22, 1, .36, 1);
}

/* the grade: day (dealt) and night (the palette's inverse), chosen on load or by a click, never by scroll */
html[data-theme="light"] {
  --bg: var(--p-bg); --canvas: #fafafa; --surface: #ffffff; --surface-2: var(--p-surface); --raised: #ffffff; --side: var(--p-surface);
  --ink: var(--p-ink); --text: var(--p-ink); --text-2: #3f3f3f; --text-3: var(--p-muted);
  --line: color-mix(in oklab, var(--p-ink) 12%, transparent); --line-strong: color-mix(in oklab, var(--p-ink) 22%, transparent);
  --action: var(--p-accent); --action-ink: var(--p-accent-ink); --link: var(--p-accent);
  --action-weak: color-mix(in oklab, var(--p-accent) 9%, #ffffff);
  --green: #16794a; --red: #c3271f; --amber: #8f5a00; --blue: #1a4be0;
  --tint: 11%; --shadow-hover: 0 10px 24px rgba(17, 17, 17, .08); --scrim: rgba(17, 17, 17, .40);
  --paper: #ffffff; --paper-ink: #111111; --paper-muted: #5f5f5f; --paper-line: #dcdcdc; --paper-alt: #f6f6f6;
  color-scheme: light;
}
html[data-theme="dark"] {
  --bg: var(--p-inv-bg); --canvas: #161616; --surface: var(--p-inv-surface); --surface-2: #191919; --raised: #242424; --side: #0c0c0c;
  --ink: var(--p-inv-ink); --text: #f2f2f2; --text-2: #c9c9c9; --text-3: var(--p-inv-muted);
  --line: color-mix(in oklab, #ffffff 12%, transparent); --line-strong: color-mix(in oklab, #ffffff 22%, transparent);
  --action: #ffffff; --action-ink: #111111; --link: #8fa8ff;
  --action-weak: color-mix(in oklab, #8fa8ff 16%, #1e1e1e);
  --green: #5fd39a; --red: #ff7a72; --amber: #f0c060; --blue: #8fa8ff;
  --tint: 18%; --shadow-hover: 0 12px 24px rgba(0, 0, 0, .4); --scrim: rgba(0, 0, 0, .62);
  --paper: #ffffff; --paper-ink: #111111; --paper-muted: #5f5f5f; --paper-line: #dcdcdc; --paper-alt: #f6f6f6;
  color-scheme: dark;
}
/* names the screens already use */
:root {
  --primary: var(--action); --primary-ink: var(--action); --primary-weak: var(--action-weak);
  --border: var(--line); --border-strong: var(--line-strong); --gray-bg: color-mix(in oklab, var(--ink) 8%, var(--surface));
  --green-bg: color-mix(in oklab, var(--green) var(--tint), var(--surface)); --red-bg: color-mix(in oklab, var(--red) var(--tint), var(--surface));
  --amber-bg: color-mix(in oklab, var(--amber) var(--tint), var(--surface)); --blue-bg: color-mix(in oklab, var(--blue) var(--tint), var(--surface));
  --radius: var(--r-md); --shadow: none; --font: var(--font-text);
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); font: 400 var(--t-body)/1.55 var(--font-text); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: var(--link); text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 500; letter-spacing: var(--display-tracking); line-height: 1.25; }
h1 { font-size: var(--t-h1); } h2 { font-size: var(--t-h2); } h3 { font-size: var(--t-h3); }
code, .mono { font-family: var(--font-mono); font-size: .92em; }
::selection { background: color-mix(in oklab, var(--action) 35%, transparent); }
:focus-visible { outline: 2px solid var(--action); outline-offset: 2px; }

/* ---------- shell ---------- */
.shell { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.sidebar { background: var(--side); border-right: 1px solid var(--line); padding: var(--s-4) var(--s-3); position: sticky; top: 0; height: 100vh; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
* { scrollbar-color: var(--line-strong) transparent; }
.brand { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-1) var(--s-3) var(--s-5); color: var(--ink); font: 500 20px/1.1 var(--font-display); letter-spacing: -0.02em; }
.brand small { display: block; font: 400 var(--t-label)/1.4 var(--font-text); color: var(--text-3); letter-spacing: 0; margin-top: 2px; }
.brand .logo, .mark { width: 26px; height: 26px; flex: none; background: var(--ink); color: transparent; border-radius: 0; font-size: 0;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='6.5' cy='6.5' r='4.5'/%3E%3Ccircle cx='17.5' cy='6.5' r='4.5'/%3E%3Ccircle cx='6.5' cy='17.5' r='4.5'/%3E%3Crect x='13' y='13' width='9' height='9' rx='1.5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='6.5' cy='6.5' r='4.5'/%3E%3Ccircle cx='17.5' cy='6.5' r='4.5'/%3E%3Ccircle cx='6.5' cy='17.5' r='4.5'/%3E%3Crect x='13' y='13' width='9' height='9' rx='1.5'/%3E%3C/svg%3E") center / contain no-repeat; }
.nav a { position: relative; display: flex; align-items: center; gap: var(--s-3); min-height: 40px; padding: 0 var(--s-3); border-radius: var(--r-sm); color: var(--text-2); font-weight: 500; margin-bottom: 2px;
  transition: background var(--m-out) var(--ease), color var(--m-out) var(--ease); }
.nav a:hover { background: color-mix(in oklab, var(--ink) 6%, transparent); color: var(--ink); transition-duration: var(--m-in); }
.nav a.active { background: var(--surface); color: var(--ink); box-shadow: 0 0 0 1px var(--line), 0 1px 2px rgba(17, 17, 17, .05); }

.nav .ico { display: inline-grid; place-items: center; width: 20px; color: var(--text-3); }
.nav a.active .ico, .nav a:hover .ico { color: var(--link); }
.nav .count { margin-left: auto; background: var(--action); color: var(--action-ink); border-radius: 999px; font: 500 12px/20px var(--font-mono); padding: 0 7px; min-width: 20px; text-align: center; }
.nav-sep { font-size: var(--t-label); color: var(--text-3); padding: var(--s-5) var(--s-3) var(--s-2); font-weight: 500; }
.main { min-width: 0; display: flex; flex-direction: column; background: var(--canvas); }
.topbar { height: 64px; background: var(--bg); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: var(--s-2); padding: 0 var(--s-6); position: sticky; top: 0; z-index: 20; }
.topbar .menu-btn { display: none; }
.topbar .spacer { flex: 1; }
.topbar .who { display: flex; align-items: center; gap: var(--s-2); color: inherit; padding: var(--s-1) var(--s-2); border-radius: var(--r-sm); }
.topbar .who:hover { background: color-mix(in oklab, var(--ink) 6%, transparent); }
.content { padding: var(--s-6); max-width: 1320px; width: 100%; margin: 0 auto; animation: enter .45s var(--ease-enter) both; }
@keyframes enter { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.page-head { display: flex; align-items: center; gap: var(--s-3); margin-bottom: var(--s-5); flex-wrap: wrap; min-height: 44px; }
.page-head .sub { color: var(--text-3); }
.page-head .actions { margin-left: auto; display: flex; gap: var(--s-2); flex-wrap: wrap; align-items: center; }

/* ---------- one card, one panel ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); }
a.card { display: block; color: inherit; transition: transform var(--m-out) var(--ease), border-color var(--m-out) var(--ease), box-shadow var(--m-out) var(--ease); }
@media (hover: hover) and (pointer: fine) {
  a.card:hover { transform: translateY(-2px); border-color: var(--line-strong); box-shadow: var(--shadow-hover); transition-duration: var(--m-card); }
}
.card-pad { padding: var(--s-5); }
.card-head { display: flex; align-items: center; padding: var(--s-4) var(--s-5); border-bottom: 1px solid var(--line); gap: var(--s-2); min-height: 56px; }
.card-head .more { margin-left: auto; font-size: var(--t-small); }
.grid { display: grid; gap: var(--s-4); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ---------- buttons: one pair, tonal ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2); height: var(--btn-h-sm); padding: 0 var(--s-4); border-radius: var(--r-btn);
  border: 1px solid transparent; background: color-mix(in oklab, var(--ink) 8%, var(--surface)); color: var(--ink); font-weight: 500; cursor: pointer; white-space: nowrap;
  transition: background var(--m-out) var(--ease), transform var(--m-out) var(--ease), border-color var(--m-out) var(--ease); }
.btn.primary { background: var(--action); color: var(--action-ink); }
.btn.danger { color: var(--red); }
.btn.danger.solid { background: var(--red); color: var(--bg); }
.btn.ghost { background: transparent; }
.btn.sm { height: 32px; padding: 0 var(--s-3); font-size: var(--t-small); }
.btn:disabled { opacity: .45; cursor: default; }
@media (hover: hover) and (pointer: fine) {
  .btn:not(:disabled):hover { transform: translateY(-1px); background: color-mix(in oklab, var(--ink) 14%, var(--surface)); transition-duration: var(--m-in); }
  .btn.primary:not(:disabled):hover { background: color-mix(in oklab, var(--action) 86%, var(--ink)); }
  .btn.ghost:not(:disabled):hover { background: color-mix(in oklab, var(--ink) 8%, transparent); }
}
.btn:not(:disabled):active { transform: translateY(1px) scale(.985); transition-duration: var(--m-press); }
.icon-btn { position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; border: 0; background: transparent; color: var(--text-2); cursor: pointer; border-radius: var(--r-sm);
  transition: background var(--m-out) var(--ease), color var(--m-out) var(--ease); }
.icon-btn:hover { background: color-mix(in oklab, var(--ink) 8%, transparent); color: var(--ink); transition-duration: var(--m-in); }
.icon-btn:disabled { opacity: .35; cursor: default; }
.dot { position: absolute; top: 4px; right: 3px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--red); color: var(--bg); font: 500 11px/18px var(--font-mono); text-align: center; padding: 0 4px; border: 2px solid var(--bg); box-sizing: content-box; }
svg.i { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; vertical-align: -3px; }
svg.i.sm { width: 15px; height: 15px; vertical-align: -2px; }

/* links: one look, the line draws on hover */
.content a:not(.btn):not(.card):not(.list-item):not(.ntf) { background: linear-gradient(currentColor, currentColor) left bottom / 0 1px no-repeat; transition: background-size var(--m-out) var(--ease); }
.content a:not(.btn):not(.card):not(.list-item):not(.ntf):hover { background-size: 100% 1px; transition-duration: var(--m-in); }

/* ---------- badges (colour spent on state) ---------- */
.badge { display: inline-flex; align-items: center; gap: 4px; font: 500 var(--t-label)/22px var(--font-text); padding: 0 8px; border-radius: 6px; white-space: nowrap; }
.b-gray { background: var(--gray-bg); color: var(--text-2); } .b-blue { background: var(--blue-bg); color: var(--blue); }
.b-green { background: var(--green-bg); color: var(--green); } .b-red { background: var(--red-bg); color: var(--red); }
.b-amber { background: var(--amber-bg); color: var(--amber); } .b-primary { background: var(--action-weak); color: var(--link); }
.muted { color: var(--text-2); } .faint { color: var(--text-3); font-size: var(--t-label); }
.empty { padding: var(--s-7) var(--s-4); text-align: center; color: var(--text-3); }
.row { display: flex; gap: var(--s-2); align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: var(--s-4); }
.field label { font-weight: 500; font-size: var(--t-label); color: var(--text-2); }
.field label .req { color: var(--red); }
.input, select.input, textarea.input { border: 1px solid var(--line-strong); border-radius: var(--r-sm); padding: 0 12px; height: 44px; background: var(--surface-2); color: var(--ink); width: 100%; min-width: 0; font-size: var(--t-read);
  transition: border-color var(--m-out) var(--ease), background var(--m-out) var(--ease); }
textarea.input { height: auto; min-height: 120px; padding: 10px 12px; resize: vertical; line-height: 1.6; }
.input:hover { border-color: color-mix(in oklab, var(--ink) 32%, transparent); }
.input:focus { outline: none; border-color: var(--action); background: var(--surface); box-shadow: 0 0 0 3px color-mix(in oklab, var(--action) 22%, transparent); }
.input::placeholder { color: var(--text-3); }
input[type="date"].input, input[type="time"].input { font-family: var(--font-mono); font-size: var(--t-small); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--s-4); }
.form-grid .full { grid-column: 1 / -1; }
.check { display: inline-flex; gap: var(--s-2); align-items: center; cursor: pointer; min-height: 32px; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--action); width: 16px; height: 16px; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font: 500 var(--t-label)/1.4 var(--font-text); color: var(--text-3); padding: 12px var(--s-4); border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 12px var(--s-4); border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tr.clickable { cursor: pointer; transition: background var(--m-out) var(--ease); }
.table tr.clickable:hover td { background: color-mix(in oklab, var(--ink) 4%, transparent); }
.table .num, .num { text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- tabs: one indicator ---------- */
.tabs { display: flex; gap: var(--s-1); border-bottom: 1px solid var(--line); margin-bottom: var(--s-5); overflow-x: auto; scrollbar-width: none; }
.tabs a { position: relative; padding: 0 var(--s-3); min-height: 44px; display: inline-flex; align-items: center; color: var(--text-3); white-space: nowrap; font-weight: 500; transition: color var(--m-out) var(--ease); }
.tabs a:hover { color: var(--ink); }
.tabs a.active { color: var(--ink); }
.tabs a.active::after { content: ""; position: absolute; left: var(--s-3); right: var(--s-3); bottom: -1px; height: 2px; background: var(--action); border-radius: 2px; }
.tabs a .n { font: 500 12px var(--font-mono); margin-left: 6px; color: var(--text-3); }
.tabs a.active .n { color: var(--link); }

/* ---------- home and lists ---------- */
.stat { padding: var(--s-5); }
.stat .k { color: var(--text-3); font-size: var(--t-label); font-weight: 500; }
.stat .v { font: 400 var(--t-stat)/1.15 var(--font-display); letter-spacing: -0.03em; margin-top: var(--s-2); font-variant-numeric: tabular-nums; }
.stat .v .faint { font-family: var(--font-text); letter-spacing: 0; }
.list-item { display: flex; align-items: center; gap: var(--s-3); min-height: 52px; padding: 10px var(--s-5); border-bottom: 1px solid var(--line); transition: background var(--m-out) var(--ease); }
.list-item:last-child { border-bottom: 0; }
a.list-item:hover { background: color-mix(in oklab, var(--ink) 4%, transparent); }
.list-item .t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.clock { font: 400 30px/1.1 var(--font-mono); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }

/* ---------- approval document: a paper, light in both grades ---------- */
.doc-paper { background: var(--paper); color: var(--paper-ink); border: 1px solid var(--line); border-radius: var(--r-md); padding: 40px 44px; }
.doc-paper .faint { color: var(--paper-muted); }
.doc-paper a { color: #1a6cc0; }
.doc-paper .badge.b-gray { background: var(--paper-alt); color: var(--paper-muted); }
.doc-title { text-align: center; font: 500 24px/1.2 var(--font-display); letter-spacing: .3em; margin-bottom: var(--s-6); color: var(--paper-ink); }
.doc-top { display: flex; justify-content: space-between; gap: var(--s-4); align-items: flex-start; flex-wrap: wrap; margin-bottom: var(--s-5); }
.meta-table { border-collapse: collapse; font-size: var(--t-small); }
.meta-table th { background: var(--paper-alt); font-weight: 500; text-align: left; padding: 7px 12px; border: 1px solid var(--paper-line); white-space: nowrap; color: var(--paper-muted); }
.meta-table td { padding: 7px 12px; border: 1px solid var(--paper-line); min-width: 150px; color: var(--paper-ink); }
.card .meta-table th { background: var(--surface-2); color: var(--text-3); border-color: var(--line); }
.card .meta-table td { color: var(--text); border-color: var(--line); }
.stamps { display: flex; border: 1px solid #b8bec9; border-radius: 4px; overflow: hidden; flex-wrap: wrap; background: #fff; }
.stamp { width: 92px; border-right: 1px solid #b8bec9; text-align: center; font-size: var(--t-label); color: var(--paper-ink); }
.stamp:last-child { border-right: 0; }
.stamp .role { background: var(--paper-alt); padding: 4px; border-bottom: 1px solid #b8bec9; color: var(--paper-muted); }
.stamp .sign { height: 56px; display: grid; place-items: center; font-weight: 600; }
.stamp .sign img { max-height: 46px; max-width: 80px; }
.stamp .who { padding: 4px; border-top: 1px solid var(--paper-line); }
.stamp .when { padding: 0 4px 5px; color: var(--paper-muted); font: 12px var(--font-mono); }
.seal { color: #c6342b; border: 2px solid #c6342b; border-radius: 50%; width: 42px; height: 42px; display: grid; place-items: center; font-size: 12px; transform: rotate(-8deg); }
.seal.reject { color: var(--paper-muted); border-color: #a3a9b4; }
.doc-body { width: 100%; border-collapse: collapse; font-size: var(--t-read); }
.doc-body th { width: 150px; background: var(--paper-alt); font-weight: 500; text-align: left; padding: 12px 14px; border: 1px solid var(--paper-line); vertical-align: top; color: var(--paper-muted); font-size: var(--t-small); }
.doc-body td { padding: 12px 14px; border: 1px solid var(--paper-line); white-space: pre-wrap; color: var(--paper-ink); }
.history { list-style: none; margin: 0; padding: 0; }
.history li { display: flex; gap: var(--s-3); padding: var(--s-3) 0; border-bottom: 1px solid var(--line); }
.history li:last-child { border: 0; }
.history .c { color: var(--text-2); margin-top: 2px; }
.action-bar { position: sticky; bottom: 0; background: var(--surface); border-top: 1px solid var(--line); padding: var(--s-3) var(--s-5); display: flex; gap: var(--s-2); align-items: center; flex-wrap: wrap; border-radius: 0 0 var(--r-md) var(--r-md); }
.line-editor .step { display: grid; grid-template-columns: 28px 128px 1fr 40px; gap: var(--s-2); align-items: center; padding: 4px 0; }
.line-editor .order { width: 24px; height: 24px; border-radius: 50%; background: var(--gray-bg); display: grid; place-items: center; font: 500 12px var(--font-mono); }
.notice-box, .info-box { padding: 12px var(--s-4); border-radius: var(--r-sm); margin-bottom: var(--s-4); border: 1px solid transparent; font-size: var(--t-small); line-height: 1.6; }
.notice-box { background: var(--amber-bg); color: var(--amber); border-color: color-mix(in oklab, var(--amber) 25%, transparent); }
.info-box { background: var(--action-weak); color: var(--text); border-color: color-mix(in oklab, var(--action) 25%, transparent); }

/* ---------- board ---------- */
.kanban { display: grid; grid-template-columns: repeat(4, minmax(220px, 1fr)); gap: var(--s-3); overflow-x: auto; }
.kcol { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s-3); min-height: 320px; transition: border-color var(--m-out) var(--ease); }
.kcol.over { border-color: var(--action); }
.kcol-head { display: flex; align-items: center; gap: 6px; font-weight: 500; padding: 2px 4px var(--s-3); }
.kcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px 14px; margin-bottom: var(--s-2); cursor: grab;
  transition: transform var(--m-out) var(--ease), border-color var(--m-out) var(--ease); }
@media (hover: hover) and (pointer: fine) { .kcard:hover { transform: translateY(-2px); border-color: var(--line-strong); transition-duration: var(--m-card); } }
.kcard .kt { font-weight: 500; margin-bottom: 8px; }
.kcard .km { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; font-size: var(--t-label); color: var(--text-3); }

/* ---------- calendar ---------- */
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cal .dow { padding: 10px 8px; font-size: var(--t-label); font-weight: 500; color: var(--text-3); border-bottom: 1px solid var(--line); }
.cal .day { min-height: 112px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 6px; cursor: pointer; transition: background var(--m-out) var(--ease); }
.cal .day:nth-child(7n) { border-right: 0; }
.cal .day:hover { background: color-mix(in oklab, var(--ink) 3%, transparent); }
.cal .day.out { color: var(--text-3); background: var(--surface-2); }
.cal .day.today .dn { background: var(--action); color: var(--action-ink); border-radius: 50%; }
.cal .dn { display: inline-grid; place-items: center; width: 26px; height: 26px; font: 500 12px var(--font-mono); }
.cal .ev { display: block; font-size: 12px; padding: 2px 6px; border-radius: 4px; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev { display: inline-block; font-size: 12px; padding: 2px 8px; border-radius: 4px; }
.ev.user { background: var(--blue-bg); color: var(--blue); } .ev.department { background: var(--green-bg); color: var(--green); }
.ev.company { background: var(--action-weak); color: var(--link); } .ev.leave { background: var(--amber-bg); color: var(--amber); }

/* ---------- modal, toast, notifications ---------- */
.modal-back { position: fixed; inset: 0; background: var(--scrim); display: grid; place-items: center; z-index: 50; padding: var(--s-4); animation: fade var(--m-panel) var(--ease) both; }
.modal { background: var(--raised); border: 1px solid var(--line-strong); border-radius: var(--r-lg); width: 100%; max-width: 560px; max-height: calc(100vh - 32px); overflow: auto;
  box-shadow: 0 24px 64px rgba(0, 0, 0, .45); animation: drop var(--m-panel) var(--ease-enter) both; }
.modal.wide { max-width: 840px; }
.modal-head { display: flex; align-items: center; padding: var(--s-4) var(--s-5); border-bottom: 1px solid var(--line); min-height: 60px; }
.modal-head .x { margin-left: auto; }
.modal-body { padding: var(--s-5); }
.modal-foot { display: flex; justify-content: flex-end; gap: var(--s-2); padding: var(--s-3) var(--s-5); border-top: 1px solid var(--line); }
@keyframes fade { from { opacity: 0; } }
@keyframes drop { from { opacity: 0; transform: translateY(6px); } }
#toast { position: fixed; bottom: var(--s-5); left: 50%; transform: translateX(-50%); z-index: 60; display: flex; flex-direction: column; gap: var(--s-2); align-items: center; }
.toast { background: var(--ink); color: var(--bg); padding: 12px var(--s-4); border-radius: var(--r-sm); font-weight: 500; animation: drop var(--m-panel) var(--ease-enter) both; max-width: min(560px, calc(100vw - 32px)); }
.toast.err { background: var(--red); color: var(--bg); }
.ntf-panel { position: absolute; right: var(--s-5); top: 58px; width: 380px; max-width: calc(100vw - 32px); max-height: 70vh; overflow: auto; z-index: 40; background: var(--raised);
  box-shadow: 0 16px 48px rgba(0, 0, 0, .4); animation: drop var(--m-panel) var(--ease-enter) both; }
.ntf { display: block; padding: 12px var(--s-4); border-bottom: 1px solid var(--line); color: var(--text); transition: background var(--m-out) var(--ease); }
.ntf.unread { box-shadow: inset 2px 0 0 var(--action); background: color-mix(in oklab, var(--action) 6%, transparent); }
.ntf:hover { background: color-mix(in oklab, var(--ink) 5%, transparent); }

/* ---------- sign in ---------- */
.login { min-height: 100vh; display: grid; place-items: center; padding: var(--s-4); background: var(--bg); }
.login .card { width: 100%; max-width: 440px; padding: var(--s-6); background: var(--surface); }
.login .brand { padding: 0 0 var(--s-2); font-size: 24px; }
.login .users { display: grid; gap: 6px; max-height: 340px; overflow: auto; margin-top: var(--s-3); }
.login .users button { text-align: left; display: flex; gap: var(--s-3); align-items: center; border: 1px solid var(--line); background: var(--surface-2); padding: 10px 12px; border-radius: var(--r-sm); cursor: pointer;
  transition: border-color var(--m-out) var(--ease), background var(--m-out) var(--ease), transform var(--m-out) var(--ease); }
.login .users button:hover { border-color: var(--action); background: var(--action-weak); }
.login .users button:active { transform: scale(.985); }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--action-weak); color: var(--link); display: grid; place-items: center; font: 600 12px var(--font-text); flex: none; letter-spacing: -0.02em; }

/* print = PDF */
@media print {
  .sidebar, .topbar, .no-print, .action-bar, #toast { display: none !important; }
  .shell { display: block; } .content { padding: 0; max-width: none; animation: none; } body { background: #fff; color: #000; }
  .doc-paper { border: 0; padding: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; width: 272px; z-index: 45; transform: translateX(-100%); transition: transform var(--m-panel) var(--ease); }
  .sidebar.open { transform: none; box-shadow: 24px 0 48px rgba(0, 0, 0, .18); }
  .topbar { padding: 0 var(--s-3); }
  .topbar .menu-btn { display: inline-grid; }
  .content { padding: var(--s-4); }
  .grid-2, .grid-3, .form-grid { grid-template-columns: 1fr; }
  .doc-paper { padding: var(--s-5) var(--s-4); }
  .line-editor .step { grid-template-columns: 24px 1fr 40px; }
  .line-editor .step select:first-of-type { grid-column: 2; }
  .line-editor .step .who { grid-column: 2; }
  .hide-sm { display: none; }
  .btn { height: 44px; } .btn.sm { height: 36px; }
  .page-head .actions { margin-left: 0; width: 100%; }
}

/* segmented toggle: tonal, the pressed one in ink (never a second filled accent in a view) */
.seg { display: inline-flex; gap: 2px; padding: 2px; border-radius: calc(var(--r-btn) + 2px); background: color-mix(in oklab, var(--ink) 6%, var(--surface)); }
.seg .btn { background: transparent; }
.seg .btn[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
@media (hover: hover) and (pointer: fine) { .seg .btn[aria-pressed="true"]:hover { background: var(--ink); } }

/* 자산 월별 표: 날짜 × 시간 */
.mtable th, .mtable td { padding: 0; }
.mtable thead th:first-child, .mtable tbody th { padding: 6px 12px; text-align: left; }
.mtable td.hcell { height: 30px; min-width: 34px; border-left: 1px solid var(--line); text-align: center; font: 500 12px var(--font-mono); cursor: pointer; transition: box-shadow var(--m-out) var(--ease); }
.mtable td.hcell:hover { box-shadow: inset 0 0 0 2px var(--action); }
.mtable td.num { padding: 0 12px; }
.mtable tbody tr:hover th a { color: var(--ink); }

/* 회사 로고 */
.brand-img { width: 30px; height: 30px; object-fit: contain; border-radius: 6px; flex: none; }
.login .brand-img { width: 34px; height: 34px; }

/* ---------- 헤르메스 봇 ---------- */
.bot-fab { position: fixed; right: var(--s-5); bottom: var(--s-5); z-index: 40; display: inline-flex; align-items: center; gap: var(--s-2);
  height: 48px; padding: 0 var(--s-4); border-radius: 999px; border: 1px solid var(--line-strong); background: var(--raised); color: var(--text);
  font: 500 var(--t-small) var(--font-text); cursor: pointer; box-shadow: var(--shadow-hover); transition: transform var(--m-press) var(--ease); }
.bot-fab:hover { transform: translateY(-2px); }
.bot-fab:active { transform: translateY(0) scale(.98); }
.bot-fab .i { color: var(--link); }
.bot-fab[aria-expanded="true"] { display: none; }
.bot-panel { position: fixed; right: var(--s-5); bottom: var(--s-5); z-index: 45; width: min(420px, calc(100vw - 32px)); height: min(680px, calc(100vh - 48px));
  display: flex; flex-direction: column; background: var(--raised); border: 1px solid var(--line-strong); border-radius: var(--r-lg);
  box-shadow: 0 24px 48px rgba(0, 0, 0, .16); animation: drop var(--m-panel) var(--ease-enter) both; overflow: hidden; }
.bot-panel[hidden] { display: none; }
.bot-head { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-3) var(--s-3) var(--s-3) var(--s-4); border-bottom: 1px solid var(--line); }
.bot-avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--action-weak); color: var(--link); flex: none; }
.bot-page { font-size: var(--t-label); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bot-list { flex: 1; overflow-y: auto; padding: var(--s-4); display: flex; flex-direction: column; gap: var(--s-3); background: var(--canvas); }
.bot-msg { display: flex; flex-direction: column; gap: var(--s-2); max-width: 88%; }
.bot-msg.me { align-self: flex-end; align-items: flex-end; }
.bot-bubble { padding: 10px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); line-height: 1.6; font-size: var(--t-body); word-break: break-word; }
.bot-msg.me .bot-bubble { background: var(--action); color: var(--action-ink); border-color: transparent; }
.bot-draft { width: 100%; min-width: 260px; padding: var(--s-3); border: 1px solid var(--line-strong); border-radius: var(--r-md); background: var(--surface); font-size: var(--t-small); }
.bot-draft-kind { font-size: var(--t-label); color: var(--link); font-weight: 500; margin-bottom: 4px; }
.bot-draft-rows { margin-top: 6px; display: grid; gap: 2px; color: var(--text-2); }
.bot-empty { margin: auto 0; color: var(--text-2); line-height: 1.6; }
.bot-hints { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-3); }
.bot-foot { display: flex; gap: var(--s-2); align-items: flex-end; padding: var(--s-3); border-top: 1px solid var(--line); }
.bot-foot textarea { flex: 1; min-height: 44px; max-height: 160px; resize: vertical; }
.bot-note { margin: 0; padding: 0 var(--s-3) var(--s-3); font-size: var(--t-label); }
.bot-typing { display: inline-flex; gap: 4px; }
.bot-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--text-3); animation: bot-dot 1s var(--ease) infinite; }
.bot-typing i:nth-child(2) { animation-delay: .15s; } .bot-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes bot-dot { 0%, 100% { opacity: .3; } 50% { opacity: 1; } }
@media (max-width: 640px) {
  .bot-fab { right: var(--s-4); bottom: var(--s-4); padding: 0; width: 48px; justify-content: center; }
  .bot-panel { inset: 0; width: 100%; height: 100%; border-radius: 0; border: 0; }
}
@media (prefers-reduced-motion: reduce) { .bot-panel, .bot-typing i { animation: none; } .bot-fab { transition: none; } }
@media print { #bot-root { display: none !important; } }

/* 봇 첨부 */
.bot-attach { align-self: center; flex: none; }
.bot-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: var(--s-2) var(--s-3) 0; border-top: 1px solid var(--line); }
.bot-chips:not([hidden]) + .bot-foot { border-top: 0; }
.bot-chips[hidden] { display: none; }
.bot-chip { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 4px 4px 4px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 13px; }
.bot-chip > span:first-of-type { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 180px; }
.bot-chip .icon-btn { width: 24px; height: 24px; }
.bot-files { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.bot-msg.me .bot-files { justify-content: flex-end; }
.bot-file { display: inline-flex; align-items: center; gap: 6px; max-width: 240px; padding: 6px 10px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); font-size: 13px; color: inherit; text-decoration: none; }
.bot-file span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bot-file em { font-style: normal; font-size: 12px; color: var(--red, #b42318); flex: none; }
.bot-file:hover { border-color: var(--line-strong); }
.bot-thumb { display: block; width: 96px; height: 96px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.bot-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .2s; }
.bot-thumb:hover img { transform: scale(1.03); }
.bot-panel.drop { outline: 2px dashed var(--action); outline-offset: -6px; }

/* AI 직원 */
.ai-tag { display: inline-flex; align-items: center; padding: 0 6px; height: 18px; border-radius: 6px; font-size: 11px; font-weight: 600; letter-spacing: .02em; background: var(--action-weak); color: var(--link); vertical-align: middle; }
.ai-working { color: var(--link); font-size: 12px; }
.ai-working::before { content: ''; display: inline-block; width: 6px; height: 6px; margin-right: 4px; border-radius: 50%; background: currentColor; vertical-align: middle; animation: ai-pulse 1.2s ease-in-out infinite; }
@keyframes ai-pulse { 50% { opacity: .25; } }
.avatar.ai { background: var(--action); color: var(--action-ink); }
.bot-head [hidden] { display: none; }
.bot-agents { display: flex; gap: 6px; padding: var(--s-2) var(--s-3); border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: thin; }
.bot-agents[hidden] { display: none; }
.bot-agent { display: inline-flex; align-items: center; gap: 5px; flex: none; height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text-2); font: inherit; font-size: 13px; cursor: pointer; transition: background .15s, border-color .15s; }
.bot-agent:hover { border-color: var(--line-strong); }
.bot-agent[aria-pressed="true"] { background: var(--action); border-color: transparent; color: var(--action-ink); }
.bot-agent[aria-pressed="true"] .ai-tag { background: rgba(255, 255, 255, .22); color: inherit; }
.task-thread { margin-top: var(--s-4); padding-top: var(--s-4); border-top: 1px solid var(--line); }
.task-thread-h { font-size: var(--t-body); margin: 0 0 var(--s-3); }
.tc-list { display: flex; flex-direction: column; gap: var(--s-3); max-height: 46vh; overflow-y: auto; }
.tc { display: flex; flex-direction: column; gap: 6px; }
.tc-who { display: flex; align-items: center; gap: 6px; font-size: var(--t-small); }
.tc-who .avatar { width: 24px; height: 24px; font-size: 10px; }
.tc-body { padding: 10px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); line-height: 1.6; word-break: break-word; }
.tc.ai .tc-body { background: var(--action-weak); border-color: transparent; }
.tc .bot-draft { max-width: 520px; }
.tc-form { display: grid; gap: var(--s-2); margin-top: var(--s-3); }
.tc .bot-typing { align-self: flex-start; }

/* 완료 칸: 더 보기 / 지난 완료 */
.kcol .done-old { width: 100%; justify-content: center; margin-top: var(--s-2); }
.kcol .done-old + .done-old { margin-top: 2px; }

/* 자산: 이용 시간이 아닌 때 */
.off-band { position: absolute; top: 0; bottom: 0; pointer-events: none; background: repeating-linear-gradient(135deg, color-mix(in oklab, var(--ink) 9%, transparent) 0 2px, transparent 2px 7px); }
.mtable td.hcell.off { cursor: default; background: repeating-linear-gradient(135deg, color-mix(in oklab, var(--ink) 9%, transparent) 0 2px, transparent 2px 7px); }

/* 진행률 막대 */
.prog { display: inline-block; vertical-align: middle; width: 64px; height: 6px; border-radius: 3px; background: var(--gray-bg); overflow: hidden; }
.prog > span { display: block; height: 100%; background: var(--action); border-radius: 3px; }
.prog.wide { width: 120px; }
.kcard .kprog { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: var(--t-label); }
.kcard .kprog .prog { flex: 1; }

/* 업무 창: 할 일 목록 */
.task-check { border-top: 1px solid var(--line); margin-top: var(--s-4); padding-top: var(--s-4); }
.check-list { list-style: none; margin: 0 0 8px; padding: 0; }
.check-list li { display: flex; align-items: center; gap: 8px; padding: 2px 4px; border-radius: 6px; }
.check-list li:hover { background: var(--gray-bg); }
.check-list li .check { flex: 1; min-width: 0; }
.check-list li.done .cb { text-decoration: line-through; color: var(--text-3); }
.check-list .cl-tools { display: flex; gap: 2px; opacity: 0; transition: opacity var(--m-out) var(--ease); }
.check-list li:hover .cl-tools, .check-list li:focus-within .cl-tools { opacity: 1; }
.check-list .icon-btn { width: 26px; height: 26px; font-size: 13px; }
.check-list .icon-btn:disabled { opacity: .3; }

/* 간트 */
.gantt-wrap { overflow-x: auto; }
.gantt { min-width: 1240px; font-size: var(--t-label); }
.g-row { display: grid; grid-template-columns: 240px 1fr; align-items: center; min-height: 36px; border-bottom: 1px solid var(--line); }
.g-head { position: sticky; top: 0; background: var(--surface); z-index: 2; min-height: 44px; }
.g-days { display: grid; grid-template-columns: repeat(42, 1fr); }
.g-day { text-align: center; color: var(--text-3); line-height: 1.3; font-variant-numeric: tabular-nums; }
.g-day b { display: block; font-weight: 600; color: var(--text-2); font-size: 11px; }
.g-day.we { color: var(--red); opacity: .8; } .g-day.today { color: var(--action); font-weight: 700; }
.g-name { padding: 4px 12px; display: flex; flex-direction: column; min-width: 0; cursor: pointer; }
.g-name .g-t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink); font-size: var(--t-small); }
.g-body { position: relative; }
.g-bg { position: absolute; top: 0; bottom: 0; left: 240px; right: 0; pointer-events: none; }
.g-bg .we { position: absolute; top: 0; bottom: 0; background: color-mix(in oklab, var(--ink) 4%, transparent); }
.g-bg .now { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--action); opacity: .7; }
.g-group { padding: 10px 12px 6px; font-weight: 600; color: var(--text-2); border-bottom: 1px solid var(--line); position: relative; z-index: 1; background: color-mix(in oklab, var(--surface) 85%, transparent); }
.g-track { position: relative; height: 36px; }
.g-bar { position: absolute; top: 7px; height: 22px; border-radius: 5px; overflow: hidden; cursor: pointer; display: flex; align-items: center; border: 1px solid transparent;
  background: var(--g-bg); transition: transform var(--m-out) var(--ease); }
.g-bar:hover { transform: translateY(-1px); }
.g-bar .g-fill { position: absolute; inset: 0 auto 0 0; background: var(--g-fg); opacity: .45; }
.g-bar .g-label { position: relative; padding: 0 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink); font-size: 11px; }
.g-bar.nodue { border-style: dashed; border-color: var(--g-fg); }
.g-bar.late { border-color: var(--red); box-shadow: inset 0 0 0 1px var(--red); }
.g-bar.cut-l { border-top-left-radius: 0; border-bottom-left-radius: 0; } .g-bar.cut-r { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.g-todo { --g-bg: var(--gray-bg); --g-fg: var(--text-3); } .g-doing { --g-bg: var(--blue-bg); --g-fg: var(--blue); }
.g-review { --g-bg: var(--amber-bg); --g-fg: var(--amber); } .g-done { --g-bg: var(--green-bg); --g-fg: var(--green); }
.g-key { display: flex; align-items: center; gap: 6px; color: var(--text-3); font-size: var(--t-label); }
.g-key i { display: inline-block; width: 14px; height: 10px; border-radius: 3px; background: var(--g-bg); border: 1px solid var(--g-fg); margin-left: 6px; }
.g-key i.late-key { background: transparent; border: 2px solid var(--red); }

/* 캘린더: 종류 탭과 부서 색 */
.cal-bar { margin-bottom: var(--s-3); gap: 12px; }
.cal-key { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }
.cal-key.user { background: var(--blue); } .cal-key.department { background: var(--green); } .cal-key.company { background: var(--link); } .cal-key.leave { background: var(--amber); }
.ev.dept-c { background: color-mix(in oklab, var(--dc) 20%, transparent); color: color-mix(in oklab, var(--dc) 75%, var(--ink)); box-shadow: inset 3px 0 0 var(--dc); padding-left: 8px; }
.dept-keys { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; }
.dept-key { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; font-size: var(--t-label); color: var(--text-2); padding: 2px 4px; border-radius: 4px; }
.dept-key:hover { color: var(--ink); background: var(--gray-bg); } .dept-key:focus-visible { outline: 2px solid var(--action); }
.dept-key i { width: 10px; height: 10px; border-radius: 3px; background: var(--dc); }

/* 업무 창 오른쪽 위: 요약과 ⋯ 메뉴 */
.modal { position: relative; }
.modal-head .tmeta-sum { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-size: var(--t-label); white-space: nowrap; overflow: hidden; max-width: 60%; }
.modal-head .tmeta-sum + .tmeta-btn { margin-left: 6px; }
.modal-head .tmeta-sum ~ .x { margin-left: 2px; }
.tmeta-btn { font-size: 20px; line-height: 1; letter-spacing: 1px; }
.tmeta-btn[aria-expanded="true"] { background: var(--gray-bg); }
.tmeta-pop { position: absolute; top: 56px; right: var(--s-4); width: 300px; z-index: 6; background: var(--raised); border: 1px solid var(--line-strong); border-radius: var(--r-md, 10px);
  box-shadow: 0 12px 32px rgba(0,0,0,.28); padding: var(--s-4); animation: drop var(--m-panel) var(--ease-enter) both; }
.tmeta-pop[hidden] { display: none; }

/* 담당자 여러 명 */
.ap-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; min-height: 28px; align-items: center; }
.ap-chip { display: inline-flex; align-items: center; gap: 4px; height: 28px; padding: 0 4px 0 10px; border-radius: 14px; background: var(--gray-bg); font-size: var(--t-small); }
.ap-chip button { all: unset; cursor: pointer; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; color: var(--text-3); }
.ap-chip button:hover { background: color-mix(in oklab, var(--ink) 10%, transparent); color: var(--ink); }
.ap-chip button:focus-visible { outline: 2px solid var(--action); }
.ap-chip .ai-tag { margin-right: 2px; }

/* 고칠 수 없는 업무 카드: 끌 수 없음 */
.kcard.ro { cursor: pointer; }
.kcard.ro:active { cursor: not-allowed; }

/* 홈: 팀 현황 (부서장·관리자) */
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-4 { grid-template-columns: 1fr; } }
.section-h { margin-bottom: 12px; align-items: baseline; gap: 10px; }
.section-h h2 { margin: 0; font-size: var(--t-h3, 18px); }
.stat .stat-sub { margin-top: 4px; font-size: var(--t-label); }
.team-table .num { text-align: right; font-variant-numeric: tabular-nums; width: 1%; white-space: nowrap; }
.team-table th.num { text-align: right; }

/* 캘린더: 일정 시간 */
.ev .ev-t { font-weight: 600; margin-right: 4px; font-variant-numeric: tabular-nums; opacity: .85; }
.cal-when { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.cal-when .cal-time { margin-left: 6px; font-variant-numeric: tabular-nums; }
/* 24시간제 시간 칸 (키보드 입력) */
.input.time24 { font-variant-numeric: tabular-nums; }
.input.time24[style*="width:auto"] { width: 88px !important; }
.input.time24.bad { border-color: var(--red); }
/* 구글 캘린더 연동 */
.gcal-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--text-faint, #888); margin-right: 6px; vertical-align: middle; }
.gcal-dot.on { background: var(--green, #2e9e5b); }
.gcal-dot.err { background: var(--red, #d64545); }
.gcal-steps { margin: 12px 0 0; padding-left: 20px; display: grid; gap: 8px; line-height: 1.55; }
.gcal-steps code, .gcal-warn code { font-size: 12px; }
.gcal-uri { display: inline-block; margin-top: 4px; padding: 4px 8px; border-radius: 6px; background: var(--surface-2, rgba(127,127,127,.12)); user-select: all; word-break: break-all; }
.gcal-warn { margin-top: 12px; padding: 10px 12px; border-radius: 8px; border: 1px solid color-mix(in oklab, var(--red, #d64545) 45%, transparent); background: color-mix(in oklab, var(--red, #d64545) 10%, transparent); font-size: 13px; line-height: 1.5; }
.gcal-acct { display: flex; align-items: center; gap: 10px; }
.gcal-acct .gcal-dot { width: 10px; height: 10px; margin: 0; }
