/* 시험 홈 전용 팔레트. os-theme.js가 html.os-dark를 전환한다. */
.svh-body {
    --sv2-surface: white; --svh-chip-tint: 12%; --svh-tile: var(--sv2-side);
    --sv2-event: #9a5209;
    --sv2-trip: #7952ac;
    --sv2-leave: #18765c;
    width: 100%; max-width: 1280px; margin-inline: auto; color: var(--sv2-ink);
    font-variant-numeric: tabular-nums;
}
html.os-dark .svh-body {
    --sv2-surface: var(--dk-surface); --svh-chip-tint: 28%; --svh-tile: var(--dk-surface2);
    --sv2-event: #ffc07b; --sv2-trip: #c4a4ff; --sv2-leave: #73dcb3; --sv2-warn: #ffa4aa;
}
.svh-columns { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.svh-side { display: grid; gap: 14px; min-width: 0; }
.svh-panel, .svh-attendance { padding: 16px; background: var(--sv2-surface); border: 1px solid var(--sv2-line); border-radius: 12px; }
.svh-attendance, .svh-cal-head, .svh-controls, .svh-legend, .svh-legend span, .svh-transfer { display: flex; align-items: center; gap: 8px; }
.svh-attendance { justify-content: space-between; padding-block: 8px; min-height: 46px; }
.svh-panel h2, .svh-panel h3 { margin: 0; font-weight: 750; }
.svh-panel h2 { font-size: var(--fs-title); }
.svh-panel h3 { font-size: var(--fs-body); }
.svh-cal-head { flex-wrap: wrap; }
.svh-cal-head h2 { margin-right: auto; }
.svh-control { min-width: 32px; min-height: 32px; padding: 2px 8px; border: 1px solid var(--sv2-line); border-radius: 6px; font-size: var(--fs-base); }
.svh-body button, .svh-details summary { color: inherit; cursor: pointer; }
.svh-body button:hover, .svh-details summary:hover { background: var(--sv2-soft); }
.svh-body :is(button, summary, a):focus-visible { outline: 2px solid var(--sv2-accent); outline-offset: -2px; }
.svh-legend { flex-wrap: wrap; margin: 10px 0; gap: 4px 12px; }
.svh-legend, .svh-note, .svh-row small, .svh-transfer small { color: var(--sv2-sub); font-size: var(--fs-meta); }
.svh-note { padding-block: 8px; }
.svh-body [data-type="project"] { --svh-type: var(--sv2-accent); }
.svh-body [data-type="event"] { --svh-type: var(--sv2-event); }
.svh-body [data-type="leave"] { --svh-type: var(--sv2-leave); }
.svh-body [data-type="trip"] { --svh-type: var(--sv2-trip); }
.svh-dot { display: inline-block; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--svh-type); }
.svh-month, .svh-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 1px; background: var(--sv2-line); border: 1px solid var(--sv2-line); }
.svh-week, .svh-week-controls, .svh-summary, .svh-toggle, .svh-mobile-count { display: none; }
.svh-weekday { background: var(--sv2-side); text-align: center; color: var(--sv2-sub); font-size: var(--fs-meta); padding: 4px; }
.svh-weekday:nth-child(7), .svh-day[data-holiday="true"] b { color: var(--sv2-warn); }
.svh-day { position: relative; min-width: 0; min-height: 72px; padding: 3px; background: var(--sv2-surface); }
.svh-month .svh-day[data-outside="true"] { color: var(--sv2-sub); background: color-mix(in srgb, var(--sv2-line) 55%, var(--sv2-surface)); }
.svh-day[data-selected="true"] { box-shadow: inset 0 0 0 2px var(--sv2-accent); }
.svh-date { display: flex; align-items: center; justify-content: space-between; width: 100%; font-size: var(--fs-meta); }
.svh-date::after { content: ''; position: absolute; inset: 0; }
.svh-date b, .svh-count { border-radius: 5px; padding: 1px 4px; }
.svh-date[aria-current="date"] b { background: var(--sv2-ink); color: var(--sv2-surface); }
.svh-count { color: var(--sv2-ink); background: var(--sv2-soft); font-weight: 700; }
.svh-chip { position: relative; display: block; width: 100%; margin-top: 1px; line-height: 1.25; border-radius: 3px; padding-inline: 4px;
    color: var(--sv2-ink); background: color-mix(in srgb, var(--svh-type) var(--svh-chip-tint), var(--sv2-surface)); border-inline-start: 3px solid var(--svh-type);
    overflow: hidden; white-space: nowrap; text-overflow: ellipsis; text-align: left; font-size: var(--fs-meta); }
.svh-workstrip { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 120px), 1fr)); gap: 8px; margin-top: 8px; }
.svh-remainder { display: block; font-size: var(--fs-meta); color: var(--sv2-ink); line-height: 1.25; padding-inline: 4px; }
.svh-body .svh-shortcut { position: relative; align-content: start; padding: 8px 24px 8px 8px; border: 1px solid var(--sv2-line); border-radius: 6px; background: var(--svh-tile); color: var(--sv2-ink); text-decoration: none; }
.svh-shortcut::after { content: '›'; position: absolute; inset-inline-end: 8px; top: 50%; transform: translateY(-50%); color: var(--sv2-accent); }
.svh-body .svh-shortcut:hover { background: var(--sv2-soft); border-color: var(--sv2-accent); }
.svh-panel > .svh-shortcut { margin-top: 6px; }
.svh-workstrip .svh-note { grid-column: 1 / -1; }
.svh-agenda { margin-top: 14px; }
.svh-row { display: grid; width: 100%; gap: 1px; padding: 8px 2px; min-height: 40px; border-bottom: 1px solid var(--sv2-line); text-align: left; overflow-wrap: anywhere; }
.svh-row strong, .svh-transfer strong { font-size: var(--fs-base); }
.svh-details { margin-top: 4px; }
.svh-details summary { padding: 8px 2px; font-weight: 650; font-size: var(--fs-base); }
.svh-project-heading, .svh-body .svh-agenda-row { display: flex; align-items: center; gap: 8px; }
.svh-project-heading { font-size: var(--fs-meta); color: var(--sv2-sub); margin: 8px 0 0; }
.svh-body .svh-agenda-row { min-height: 32px; padding: 4px 10px; }
.svh-details > summary { color: var(--sv2-accent); }
.svh-upcoming > summary { margin-top: 10px; color: var(--sv2-ink); font-size: var(--fs-body); font-weight: 750; }
.svh-details .svh-row { padding-inline-start: 12px; }
.svh-total { display: block; margin: 6px 0; font-size: var(--fs-body); }
.svh-transfer { justify-content: space-between; border-top: 1px solid var(--sv2-line); padding: 8px 0; }
.svh-transfer span { display: grid; min-width: 0; }
.svh-transfer small { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.svh-transfer b { margin-left: auto; flex: none; white-space: nowrap; }
.svh-due { justify-self: start; color: var(--sv2-warn); font-size: var(--fs-meta); font-weight: 700; }
.svh-overdue { padding: 1px 6px; border-radius: 4px; background: color-mix(in srgb, var(--sv2-warn) 12%, var(--sv2-surface)); }
@media (max-width: 640px) {
    .svh-columns { grid-template-columns: minmax(0, 1fr); }
    .svh-panel { padding: 12px; }
    .svh-control { min-height: 44px; min-width: 44px; }
    .svh-cal-head, .svh-controls { gap: 4px; }
    .svh-summary { display: flex; align-items: center; gap: 4px; font-size: var(--fs-base); }
    .svh-summary button { color: var(--sv2-accent); min-height: 44px; }
    .svh-week-controls { display: flex; }
    .svh-week { display: grid; }
    .svh-toggle, .svh-mobile-count { display: inline-block; }
    .svh-month, .svh-month-controls { display: none; }
    [data-phone-month="true"] :is(.svh-week, .svh-week-controls) { display: none; }
    [data-phone-month="true"] .svh-month { display: grid; }
    [data-phone-month="true"] .svh-month-controls { display: flex; }
    .svh-day { min-height: 46px; }
    /* 폰 월 보기는 칸이 좁아 칩 글자가 두 자로 잘린다 — 건수만 보이고, 고른 날 목록에서 읽는다 */
    .svh-month :is(.svh-chip, .svh-remainder) { display: none; }
    .svh-date { flex-direction: column; justify-content: center; min-height: 40px; }
    .svh-week .svh-day { padding-inline: 1px; }
    .svh-week-count { font-size: var(--fs-meta); color: var(--sv2-ink); font-weight: 700; }
    .svh-date small { font-size: var(--fs-meta); }
    .svh-marks { display: flex; justify-content: center; align-items: center; gap: 2px; min-height: 1.4em; }
}
