/* BUSIDOL 연차관리 — 밝은 회색 바탕에 흰 카드, 인디고 포인트. 숫자는 고정폭(tabular) 숫자. */
:root {
  --bg: #F4F5F8;
  --surface: #FFFFFF;
  --surface-2: #F9FAFB;
  --ink: #111827;
  --muted: #6B7280;
  --line: #E7E9EE;
  --line-strong: #D5D9E0;
  --soft: #EEF0FF;          /* 포인트 연한 배경 */
  --accent: #4F46E5;
  --accent-2: #7C3AED;
  --accent-ink: #FFFFFF;
  --ok: #059669; --ok-soft: #E7F7EF;
  --warn: #B45309; --warn-soft: #FEF3C7;
  --danger: #DC2626; --danger-soft: #FEECEC;
  --sat: #2563EB;
  --stamp: var(--danger);
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(17, 24, 39, .05);
  --shadow: 0 1px 2px rgba(17, 24, 39, .04), 0 8px 24px -8px rgba(17, 24, 39, .10);
  --shadow-lg: 0 24px 64px -16px rgba(17, 24, 39, .28);
  --font-body: "Pretendard Variable", "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "맑은 고딕", "Noto Sans KR", system-ui, sans-serif;
  --font-num: var(--font-body);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0B0D12; --surface: #14171F; --surface-2: #181C25; --ink: #E8EAF0; --muted: #9AA3B2;
    --line: #242936; --line-strong: #323848; --soft: #1E2140;
    --accent: #8B85FF; --accent-2: #B794F6; --accent-ink: #0B0D12;
    --ok: #34D399; --ok-soft: #10261D; --warn: #F5B544; --warn-soft: #2B2112;
    --danger: #F87171; --danger-soft: #2C1517; --sat: #7AA7FF;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.4); --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px -8px rgba(0,0,0,.5);
    --shadow-lg: 0 24px 64px -16px rgba(0,0,0,.7);
    color-scheme: dark;
  }
}

/* ---------- 기본 ---------- */
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 15px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; font-feature-settings: "tnum"; letter-spacing: -0.005em; }
.wrap { max-width: 1180px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }
@media (max-width: 520px) { .wrap { padding-left: 16px; padding-right: 16px; } }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--soft); }

/* ---------- 상단 ---------- */
header.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--surface) 82%, transparent);
  backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; min-height: 64px; padding-block: 10px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand::before { content: "B"; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; color: #fff; font-weight: 800; font-size: 16px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: 0 4px 12px -4px var(--accent); }
.brand b { display: none; }
.brand h1 { margin: 0; font-size: 16px; font-weight: 700; letter-spacing: -0.02em; white-space: nowrap; }
nav.tabs { display: flex; gap: 2px; overflow-x: auto; padding: 4px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; scrollbar-width: none; }
nav.tabs::-webkit-scrollbar { display: none; }
nav.tabs button { border: 0; background: none; font: inherit; font-size: 14px; font-weight: 600; color: var(--muted); padding: 7px 14px; border-radius: 9px;
  cursor: pointer; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; transition: background .15s, color .15s; }
nav.tabs button:hover { color: var(--ink); background: var(--surface); }
nav.tabs button[aria-selected="true"] { color: var(--accent); background: var(--surface); box-shadow: var(--shadow-sm), 0 0 0 1px var(--line); }
nav.tabs .count { font-size: 11px; font-weight: 700; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; display: inline-grid; place-items: center;
  background: var(--danger); color: #fff; }
.userbox { margin-left: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; font-size: 13px; color: var(--muted); }
#whoami { font-weight: 600; color: var(--ink); display: inline-flex; align-items: center; gap: 8px; }
#whoami::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px var(--ok-soft); }
.link { border: 0; background: none; font: inherit; color: var(--muted); cursor: pointer; padding: 4px 2px; text-decoration: none; }
.link:hover { color: var(--accent); }

/* ---------- 본문 ---------- */
main { padding-block: 28px 72px; display: grid; gap: 28px; }
h2 { font-size: 17px; font-weight: 700; margin: 0; letter-spacing: -0.02em; }
.sec-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 12px; }
.sec-head .hint { color: var(--muted); font-size: 13px; }
.sec-head .spacer { flex: 1; }
.notice { padding: 12px 16px; border-radius: var(--radius-sm); background: var(--warn-soft); color: var(--warn); font-size: 14px; border: 1px solid color-mix(in srgb, var(--warn) 22%, transparent); }
.notice.row { border-bottom: 1px solid color-mix(in srgb, var(--warn) 22%, transparent); }

/* 요약 숫자 */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 820px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.stat { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow-sm); overflow: hidden; }
.stat::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: linear-gradient(var(--accent), var(--accent-2)); opacity: .9; }
.stat .k { font-size: 13px; color: var(--muted); font-weight: 600; }
.stat .v { font-size: 30px; font-weight: 800; letter-spacing: -0.03em; margin-top: 6px; line-height: 1.1; }
.stat .v small { font-size: 14px; font-weight: 600; color: var(--muted); margin-left: 4px; letter-spacing: 0; }

/* 카드·표·목록 */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; }
th, td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; vertical-align: middle; }
th { font-size: 12px; font-weight: 600; color: var(--muted); background: var(--surface-2); }
thead th:first-child { border-top-left-radius: var(--radius); }
thead th:last-child { border-top-right-radius: var(--radius); }
tr:last-child td { border-bottom: 0; }
td.num { font-variant-numeric: tabular-nums; font-weight: 600; }
td.wrap-cell { white-space: normal; min-width: 160px; max-width: 320px; color: var(--muted); }
tbody tr { transition: background .12s; }
tbody tr:hover { background: var(--surface-2); }
tbody tr.clickable { cursor: pointer; }
tbody tr.clickable:hover { background: var(--soft); }
.sub { color: var(--muted); font-size: 13px; }
.neg { color: var(--danger) !important; }
.empty { padding: 36px 16px; text-align: center; color: var(--muted); }
.empty p { margin: 0 0 12px; }
.list { display: grid; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.row:last-child { border-bottom: 0; }
.list .row:hover { background: var(--surface-2); }
.list .row:first-child { border-top-left-radius: var(--radius); border-top-right-radius: var(--radius); }
.list .row:last-child { border-bottom-left-radius: var(--radius); border-bottom-right-radius: var(--radius); }
.row .who { font-weight: 700; min-width: 76px; }
.row .what { flex: 1; min-width: 0; }
.acts { display: flex; flex-wrap: wrap; gap: 6px; }

/* 버튼 */
.btn { font: inherit; font-size: 14px; font-weight: 600; border-radius: var(--radius-sm); padding: 8px 16px; cursor: pointer; border: 1px solid var(--line-strong);
  background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); transition: background .15s, border-color .15s, box-shadow .15s, transform .05s; line-height: 1.4; }
.btn:hover { background: var(--surface-2); border-color: var(--muted); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 88%, #fff), var(--accent)); border-color: var(--accent); color: var(--accent-ink);
  box-shadow: 0 1px 2px rgba(17,24,39,.08), 0 6px 16px -6px var(--accent); }
.btn.primary:hover { filter: brightness(1.06); }
.btn.danger { color: var(--danger); }
.btn.danger:hover { background: var(--danger-soft); border-color: color-mix(in srgb, var(--danger) 40%, transparent); }
.btn.danger-fill { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn.small { font-size: 13px; padding: 5px 11px; border-radius: 8px; }
.btn:disabled { opacity: .5; cursor: default; transform: none; }

/* 표시 */
.pill { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--soft); color: var(--accent); white-space: nowrap; }
.pill.wait { background: var(--warn-soft); color: var(--warn); }
.pill.wait::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.off { background: var(--surface-2); color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); }
.pill.no { background: var(--danger-soft); color: var(--danger); }
/* '승인' 표시 (예전 결재 도장 자리) */
.stamp { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; padding: 3px 10px 3px 8px; border-radius: 999px; background: var(--ok-soft); color: var(--ok); }
.stamp::before { content: "✓"; font-size: 11px; }
.bal { font-variant-numeric: tabular-nums; font-weight: 600; }
.bal .bar { display: block; width: 96px; height: 6px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); border-radius: 3px; margin-top: 6px; overflow: hidden; }
.bal .bar i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }

/* 입력 */
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; }
input, select, textarea { font: inherit; font-size: 14px; color: var(--ink); background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  padding: 9px 12px; min-width: 0; width: 100%; transition: border-color .15s, box-shadow .15s; }
input:hover, select:hover, textarea:hover { border-color: var(--muted); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent); }
.toolbar select, .toolbar input { width: auto; }
textarea { resize: vertical; min-height: 72px; }
.search { width: 240px; max-width: 100%; padding-left: 34px;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%239CA3AF' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='7' cy='7' r='5'/%3E%3Cpath d='m14 14-3.5-3.5'/%3E%3C/svg%3E") no-repeat 12px center; }
.check { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.check input { width: auto; accent-color: var(--accent); }

/* 내 휴가 카드 */
.me-card { display: flex; flex-wrap: wrap; gap: 18px 36px; align-items: center; padding: 22px 24px; position: relative; overflow: hidden; }
.me-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.me-card .name { font-size: 22px; font-weight: 800; letter-spacing: -0.03em; }
.me-card .balance-box { flex: 1; min-width: 280px; }
.mt { margin-top: 8px; }
.mb { margin-bottom: 8px; }
.full { grid-column: 1 / -1; }

/* 연차 숫자 세 칸 */
.balance-box { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; text-align: center; }
.balance-box > div { background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 14px 8px; }
.balance-box > div:last-child { background: var(--soft); border-color: color-mix(in srgb, var(--accent) 22%, transparent); }
.balance-box > div:last-child .v { color: var(--accent); }
.balance-box .v { font-size: 26px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.15; }
.balance-box .k { font-size: 12px; color: var(--muted); font-weight: 600; margin-top: 2px; }
.balance-box .has-tip { cursor: help; }
.balance-box .has-tip:hover { border-color: var(--accent); }

/* ---------- 로그인 ---------- */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px;
  background: radial-gradient(1200px 600px at 10% -10%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 60%),
              radial-gradient(900px 500px at 110% 110%, color-mix(in srgb, var(--accent-2) 16%, transparent), transparent 60%), var(--bg); }
.auth .card { width: min(400px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-lg); padding: 32px 28px; display: grid; gap: 16px; }
.auth .card h1 { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -0.03em; }
.auth .card .brandline { display: flex; align-items: center; gap: 10px; font-size: 13px; letter-spacing: .12em; color: var(--accent); font-weight: 800; }
.auth .card .brandline::before { content: "B"; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; color: #fff; font-size: 18px; letter-spacing: 0;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: 0 6px 16px -6px var(--accent); }
.auth a.btn.google { display: flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none; padding: 12px 16px; font-size: 15px; }
.auth .or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 12px; }
.auth .or::before, .auth .or::after { content: ""; flex: 1; border-top: 1px solid var(--line); }

/* ---------- 모달 ---------- */
.overlay { position: fixed; inset: 0; z-index: 20; background: rgba(17, 24, 39, .45); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); display: grid; place-items: center; padding: 16px; }
.modal { background: var(--surface); color: var(--ink); border-radius: 18px; box-shadow: var(--shadow-lg); width: min(600px, 100%); max-height: 100%; overflow: auto; border: 1px solid var(--line); }
.modal header { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.modal header h3 { margin: 0; font-size: 18px; font-weight: 800; letter-spacing: -0.02em; }
.modal .body { padding: 20px 22px; display: grid; gap: 16px; }
.modal footer { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; padding: 14px 22px; border-top: 1px solid var(--line); background: var(--surface-2); border-radius: 0 0 18px 18px; }
.modal footer .left { margin-right: auto; }
@media (prefers-reduced-motion: no-preference) {
  .overlay { animation: fade .15s ease-out; } .modal { animation: pop .18s ease-out; }
  @keyframes fade { from { opacity: 0; } } @keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } }
}
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
@media (max-width: 520px) { .grid2 { grid-template-columns: minmax(0, 1fr); } }
.field { display: grid; gap: 6px; align-content: start; }
.field label { font-size: 13px; font-weight: 600; color: var(--ink); }
.field .req { color: var(--danger); }
.field .help { font-size: 12px; color: var(--muted); }
.form-err { color: var(--danger); font-size: 14px; background: var(--danger-soft); padding: 8px 12px; border-radius: 8px; }
.form-err:empty { display: none; }
.kv { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 20px; font-size: 14px; margin: 0; padding: 14px 16px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 500; }
.account { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; display: grid; gap: 10px; }
.secret { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 20px; font-weight: 700; background: var(--soft); color: var(--accent); padding: 12px 16px; border-radius: 10px; user-select: all; letter-spacing: .08em; text-align: center; }
.x { border: 0; background: none; font-size: 22px; line-height: 1; color: var(--muted); cursor: pointer; padding: 6px 10px; border-radius: 8px; }
.x:hover { background: var(--surface-2); color: var(--ink); }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 30; background: #111827; color: #F9FAFB; padding: 12px 20px; border-radius: 12px;
  font-size: 14px; font-weight: 500; box-shadow: var(--shadow-lg); max-width: calc(100% - 32px); }
@media (prefers-reduced-motion: no-preference) { .toast { animation: rise .2s ease-out; } @keyframes rise { from { transform: translate(-50%, 8px); opacity: 0; } } }

/* ---------- 시트 보기 ---------- */
.sheet-view table { width: auto; font-size: 13px; border-collapse: collapse; }
.sheet-view th, .sheet-view td { padding: 7px 12px; border-right: 1px solid var(--line); text-align: center; }
.sheet-view thead th { position: sticky; top: 0; background: var(--surface-2); color: var(--ink); font-size: 13px; font-weight: 700; border-radius: 0; }
.sheet-view tbody th { position: sticky; left: 0; background: var(--surface); color: var(--muted); }
.sheet-view tr.sum td, .sheet-view tr.sum th { background: var(--surface-2); font-weight: 700; }
.sheet-view tr.sum:last-of-type td { border-bottom: 2px solid var(--accent); }
.sheet-view td.has-tip { cursor: help; color: var(--accent); text-decoration: underline dotted; text-underline-offset: 3px; }
.sheet-view td.off { background: var(--bg); border-bottom-color: transparent; }
.sheet-view td.half { background: linear-gradient(to right, var(--surface) calc(50% - 1px), var(--line) calc(50% - 1px), var(--line) 50%, var(--bg) 50%); }
.sheet-view tbody tr:hover { background: transparent; }

/* ---------- 처리해야 할 결재: 깜빡임 (움직임 줄이기 설정이면 강조만) ---------- */
.attention { border-color: var(--warn); background: var(--warn-soft); }
@media (prefers-reduced-motion: no-preference) {
  .panel.attention { animation: attn-bg 1.4s ease-in-out infinite; }
  nav.tabs .count.attention { animation: attn-badge 1.4s ease-in-out infinite; }
  @keyframes attn-bg { 0%, 100% { background: var(--surface); box-shadow: 0 0 0 0 transparent; border-color: var(--line); }
    50% { background: var(--warn-soft); box-shadow: 0 0 0 4px color-mix(in srgb, var(--warn) 18%, transparent); border-color: var(--warn); } }
  @keyframes attn-badge { 0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 transparent; } 50% { transform: scale(1.15); box-shadow: 0 0 0 4px color-mix(in srgb, var(--danger) 25%, transparent); } }
}

/* ---------- 휴가 현황 달력 ---------- */
.cal-wrap { padding: 10px; overflow-x: auto; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(88px, 1fr)); gap: 6px; min-width: 640px; }
.cal-dow { font-size: 12px; font-weight: 700; color: var(--muted); text-align: center; padding: 6px 0; }
.cal-dow.sun, .cal-day.sun .cal-num { color: var(--danger); }
.cal-dow.sat, .cal-day.sat .cal-num { color: var(--sat); }
.cal-day { min-height: 100px; border: 1px solid var(--line); border-radius: 12px; padding: 6px 7px; display: flex; flex-direction: column; gap: 4px; background: var(--surface); transition: border-color .15s; }
.cal-day:hover { border-color: var(--line-strong); }
.cal-day.other { opacity: .4; }
.cal-day.sun, .cal-day.sat { background: var(--surface-2); }
.cal-day.today { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 14%, transparent); }
.cal-day.today .cal-num > :first-child, .cal-day.today .cal-num { color: var(--accent); }
.cal-num { font-size: 13px; font-weight: 700; display: flex; gap: 6px; align-items: baseline; }
.cal-hol { font-size: 10px; font-weight: 600; color: var(--danger); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-chip { font-size: 11.5px; font-weight: 600; line-height: 1.35; padding: 3px 7px; border-radius: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: default; border-left: 3px solid currentColor; }
.cal-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }
.t0 { background: #E8F0FE; color: #1D4ED8; } .cal-dot.t0 { background: #3B82F6; }
.t1 { background: #FFF1E6; color: #C2410C; } .cal-dot.t1 { background: #F97316; }
.t2 { background: #E7F7EF; color: #047857; } .cal-dot.t2 { background: #10B981; }
.t3 { background: #F3E8FF; color: #7E22CE; } .cal-dot.t3 { background: #A855F7; }
.t-none { background: var(--surface-2); color: var(--muted); } .cal-dot.t-none { background: var(--muted); }
@media (prefers-color-scheme: dark) {
  .t0 { background: #172554; color: #93C5FD; } .t1 { background: #431407; color: #FDBA74; }
  .t2 { background: #052E1F; color: #6EE7B7; } .t3 { background: #2E1065; color: #D8B4FE; }
}
.sec-head select.cal-team { width: auto; }
.cal-legend { display: inline-flex; gap: 14px; font-size: 12px; font-weight: 600; color: var(--muted); align-items: center; }
@media (max-width: 720px) { .cal-legend { display: none; } }

/* ---------- 휴대폰 ---------- */
@media (max-width: 720px) {
  .top .wrap { gap: 8px 12px; }
  nav.tabs { order: 3; width: 100%; }
  .userbox { gap: 4px 10px; }
  main { padding-block: 20px 56px; gap: 22px; }
  .stat .v { font-size: 26px; }
}

/* 구글 로그인 버튼: 흰 바탕 + G 로고 (구글 안내 형식) */
.auth a.btn.google { background: var(--surface); color: var(--ink); border: 1px solid var(--line-strong); box-shadow: var(--shadow-sm); }
.auth a.btn.google:hover { background: var(--surface-2); filter: none; }
.auth a.btn.google::before { content: ""; width: 18px; height: 18px; flex: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath fill='%23FFC107' d='M43.6 20.5H42V20H24v8h11.3C33.7 32.7 29.2 36 24 36c-6.6 0-12-5.4-12-12s5.4-12 12-12c3.1 0 5.8 1.2 7.9 3.1l5.7-5.7C34 6.1 29.3 4 24 4 12.9 4 4 12.9 4 24s8.9 20 20 20 20-8.9 20-20c0-1.3-.1-2.4-.4-3.5z'/%3E%3Cpath fill='%23FF3D00' d='m6.3 14.7 6.6 4.8C14.7 15.1 19 12 24 12c3.1 0 5.8 1.2 7.9 3.1l5.7-5.7C34 6.1 29.3 4 24 4 16.3 4 9.7 8.3 6.3 14.7z'/%3E%3Cpath fill='%234CAF50' d='M24 44c5.2 0 9.9-2 13.4-5.2l-6.2-5.2C29.2 35.1 26.7 36 24 36c-5.2 0-9.6-3.3-11.3-8l-6.5 5C9.5 39.6 16.2 44 24 44z'/%3E%3Cpath fill='%231976D2' d='M43.6 20.5H42V20H24v8h11.3c-.8 2.2-2.2 4.2-4.1 5.6l6.2 5.2C37 39.2 44 34 44 24c0-1.3-.1-2.4-.4-3.5z'/%3E%3C/svg%3E") no-repeat center / contain; }

/* 로그인 화면은 본문 여백 없이 배경이 화면 전체를 채운다 */
main:has(> .auth) { padding: 0; display: block; }

/* ---------- 검증TF 휴가권 ---------- */
.qa-entry, .qa-guide { padding: 18px 20px; }
.qa-guide p { margin: 0 0 8px; font-size: 14px; }
.qa-form { display: grid; gap: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: inherit; font-size: 13px; font-weight: 600; padding: 7px 14px; border-radius: 999px; cursor: pointer; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); transition: all .12s; }
.chip:hover { border-color: var(--accent); }
.chip.on { background: var(--soft); border-color: var(--accent); color: var(--accent); }
.chip small { color: var(--muted); font-weight: 500; }
.chips .check { padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; }
.qa-bestbox { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 12px 14px; border-radius: 12px; border: 1px dashed #E0B252; background: color-mix(in srgb, #F5C04A 10%, var(--surface)); }
.qa-bestbox select { width: auto; } .qa-bestbox input { flex: 1; min-width: 200px; width: auto; }
.qa-best { font-weight: 700; color: #B7791F; font-size: 13px; }
.qa-addrow { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px 12px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; margin-top: 8px; }
.qa-addrow input, .qa-addrow select { width: auto; flex: 1; min-width: 120px; }
.qa-addrow input[type=date] { flex: none; }
.qa-li { padding: 10px 14px; }
.qa-li .ok { color: var(--ok); }
.balance-box.qa-five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 520px) { .balance-box.qa-five { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.qa-rank { width: 90px; flex: none; }
tr.sum-row td { background: var(--surface-2); font-weight: 700; }
td .pill, td .stamp { margin-left: 6px; }
td:last-child > .stamp:first-child, td:last-child > .pill:first-child { margin-left: 0; }

/* 탭이 많아져도 한 줄에: 조금 촘촘하게 */
nav.tabs button { padding: 7px 11px; font-size: 13.5px; }
.wrap { max-width: 1240px; }

/* 큰 메뉴 3개 + 연차관리 작은 탭 줄 */
nav.tabs button { padding: 8px 18px; font-size: 14.5px; }
.subbar { border-top: 1px solid var(--line); }
.subbar:has(> nav[hidden]) { display: none; }
nav.subtabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
nav.subtabs::-webkit-scrollbar { display: none; }
nav.subtabs button { border: 0; background: none; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--muted); padding: 10px 12px 9px; cursor: pointer;
  white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; border-bottom: 2px solid transparent; }
nav.subtabs button:hover { color: var(--ink); }
nav.subtabs button[aria-selected="true"] { color: var(--accent); border-bottom-color: var(--accent); }
nav.subtabs .count { font-size: 11px; font-weight: 700; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; display: inline-grid; place-items: center; background: var(--danger); color: #fff; }
@media (prefers-reduced-motion: no-preference) { nav.subtabs .count.attention { animation: attn-badge 1.4s ease-in-out infinite; } }

/* ---------- 선명하고 촘촘하게 (2차) ----------
   윈도우에서 한글이 흐려 보이지 않게 자간을 0으로, 글자색은 더 진하게, 표는 짙은 남색 머리줄 + 칸 구분선 + 가운데 정렬 숫자 */
:root { --ink: #0B1324; --muted: #4B5563; --navy: #13244A; }
@media (prefers-color-scheme: dark) { :root { --ink: #F1F3F8; --muted: #AEB6C4; --navy: #1E2A4A; } }
body { letter-spacing: 0; line-height: 1.45; -webkit-font-smoothing: auto; }
h2, .stat .v, .balance-box .v, .me-card .name, .brand h1, .modal header h3, .auth .card h1 { letter-spacing: 0; }
h2 { font-size: 18px; font-weight: 800; }
.sec-head { margin-bottom: 10px; }
.sec-head .hint { font-size: 13.5px; color: var(--muted); }
main { gap: 24px; }

/* 표 */
table { font-size: 14.5px; }
th, td { padding: 9px 14px; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); }
th:last-child, td:last-child { border-right: 0; }
th { background: var(--navy); color: #fff; font-size: 14px; font-weight: 700; text-align: center; }
th:first-child { text-align: left; }
thead th:first-child { border-top-left-radius: var(--radius); }
thead th:last-child { border-top-right-radius: var(--radius); }
td.num { text-align: center; font-weight: 700; font-size: 15px; }
td b { font-size: 15.5px; font-weight: 800; }
tbody tr:nth-child(even) { background: var(--surface-2); }
tbody tr:hover, tbody tr.clickable:hover { background: var(--soft); }
td .sub { font-size: 12.5px; }
tr.sum-row td { background: #FFF6DE; font-weight: 800; }
@media (prefers-color-scheme: dark) { tr.sum-row td { background: #2B2410; } }
td.mid { text-align: center; }

/* 목록 행 */
.row { padding: 11px 16px; }
.row .who { font-size: 15px; font-weight: 800; }

/* 숫자 카드 */
.stat { padding: 14px 18px; }
.stat .k { font-size: 13.5px; color: var(--muted); }
.stat .v { font-size: 28px; font-weight: 800; }
.balance-box > div { padding: 10px 8px; }
.balance-box .v { font-size: 24px; }
.balance-box .k { font-size: 12.5px; color: var(--muted); }

/* 표시 */
.pill, .stamp { font-size: 12.5px; font-weight: 700; padding: 2px 10px; }
.btn { font-weight: 700; }
