/* Osun: Sabi Nezu, Yanagi Nezumi, and white. */
@font-face {
  font-family: Paperlogy;
  src: url("fonts/Paperlogy-4Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Paperlogy;
  src: url("fonts/Paperlogy-5Medium.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: Paperlogy;
  src: url("fonts/Paperlogy-6SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: Paperlogy;
  src: url("fonts/Paperlogy-7Bold.ttf") format("truetype");
  font-weight: 700 900;
  font-display: swap;
}

:root {
  --ink: #47585c;
  --ink-soft: #47585c;
  --aqua: #47585c;
  --aqua-soft: rgba(200, 213, 187, .45);
  --blue: #47585c;
  --blue-soft: rgba(200, 213, 187, .24);
  --coral: #47585c;
  --coral-soft: rgba(200, 213, 187, .45);
  --line: rgba(71, 88, 92, .2);
  --canvas: #fff;
  --paper: #fff;
  --shadow: 0 12px 36px rgba(71, 88, 92, .12);
}

html { background: #fff; color: #47585c; font-family: Paperlogy, -apple-system, BlinkMacSystemFont, sans-serif; }
body { background: #fff; }
button, input, select { font-family: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 2px solid #47585c; outline-offset: 2px; }
.app-shell { background: #fff; box-shadow: none; }

/* The wordmark carries the visual identity; all other type stays quiet. */
.hero { background: #47585c; border-radius: 0; }
.hero:after { display: none; }
.hero-topline { align-items: center; margin-bottom: 30px; }
.brand-lockup { display: inline-block; color: #fff; font-family: "Bodoni 72", Didot, Georgia, serif; font-size: 36px; font-weight: 400; line-height: 1; letter-spacing: -.055em; white-space: nowrap; }
.brand-lockup { position: relative; display: inline-flex; align-items: baseline; gap: .085em; padding-right: .42em; letter-spacing: 0; }
.brand-o { font-size: 1.03em; }
.brand-sun { letter-spacing: -.055em; }
.brand-registered { position: absolute; top: -.07em; right: 0; font-family: Georgia, serif; font-size: .36em; line-height: 1; letter-spacing: 0; }
.preview-badge { border: 1px solid rgba(200, 213, 187, .55); border-radius: 6px; color: #fff; font-size: 10px; font-weight: 500; }
.eyebrow { color: #c8d5bb; font-weight: 600; letter-spacing: .08em; }
.hero-arrow, .deadline-icon { color: #c8d5bb; }
.hero-explainer, .deadline-line, .admin-heading p { color: #fff; opacity: .88; }
.hero-title-row h1, .admin-heading h1 { font-weight: 600; letter-spacing: -.045em; }
.admin-hero { padding-bottom: 34px; }
.admin-status { background: transparent; border: 1px solid rgba(200, 213, 187, .55); color: #fff; }
.admin-status i, .admin-status.confirmed i { background: #c8d5bb; }

.choice-meter { background: transparent; border: 1px solid rgba(200, 213, 187, .6); border-radius: 12px; }
.meter-copy strong { font-weight: 600; }
.meter-copy span { color: #fff; font-weight: 600; }
.choice-slot { border-color: rgba(200, 213, 187, .65); color: #fff; }
.choice-slot.filled, .choice-slot.leave-filled { border-color: #c8d5bb; background: #c8d5bb; color: #47585c; }
.choice-slot.leave-filled { background: #fff; border-color: #fff; }

/* Employee view */
.summary { padding-top: 27px; padding-bottom: 27px; border-bottom: 1px solid var(--line); }
.app-shell .summary { grid-template-columns: minmax(0,1fr) 1px minmax(0,1fr); }
.summary-label, .summary-detail, .calendar-help, .selection-meta small, .footer-note { color: #47585c; }
.summary-detail, .selection-meta small { opacity: .76; }
.summary-item strong { font-weight: 700; }
.calendar-section, .selection-section { padding-top: 32px; }
.section-kicker { color: #47585c; font-weight: 600; letter-spacing: .06em; }
.section-head h2, .sheet-head h2 { font-weight: 600; letter-spacing: -.04em; }
.section-note { color: #47585c; font-weight: 500; }
.legend { color: #47585c; }
.legend-dot.base { background: #47585c; }
.legend-dot.leave { background: #fff; border: 1px solid #47585c; }
.legend-dot.full { background: #c8d5bb; border: 1px solid #47585c; }
.weekdays span, .weekdays span:first-child { color: #47585c; }
.weekdays span { opacity: .75; }
.day { background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.day:hover { border-color: #47585c; background: rgba(200, 213, 187, .2); }
.day.sunday .day-number, .day.full .day-count, .day-count { color: #47585c; }
.day.full { border-color: #47585c; }
.day.selected-base { background: #c8d5bb; border-color: #47585c; }
.day.selected-leave { background: #fff; border: 2px solid #47585c; }
.day.selected-base .day-type { background: #47585c; }
.day.selected-leave .day-type { background: #fff; border: 1px solid #47585c; }
.selection-section { border-bottom: 1px solid var(--line); }
.empty-state, .review-empty { background: rgba(200, 213, 187, .12); border-color: var(--line); color: #47585c; }
.selection-row, .review-row { border-color: var(--line); }
.selection-date { background: rgba(200, 213, 187, .35); }
.selection-date small { color: #47585c; }
.type-pill.base { background: #c8d5bb; color: #47585c; }
.type-pill.leave { background: #fff; border: 1px solid #47585c; color: #47585c; }
.edit-selection { border-color: var(--line); color: #47585c; }
.edit-selection:hover, .action-button:hover { border-color: #47585c; color: #47585c; }
.edit-banner { background: rgba(200, 213, 187, .45); border-color: var(--line); color: #47585c; }
.edit-banner button { color: #47585c; }
.application-status, .application-status.submitted, .application-status.modified { background: rgba(200, 213, 187, .3); color: #47585c; }
.status-dot, .application-status.submitted .status-dot, .application-status.modified .status-dot { background: #47585c; }
.submit-dock { background: #fff; border-color: var(--line); box-shadow: 0 -4px 18px rgba(71, 88, 92, .06); }
.submit-dock-copy span { color: #47585c; }
.submit-button, .submit-button:hover { background: #47585c; color: #fff; box-shadow: none; }
.submit-button:hover { opacity: .9; }
.review-deadline, .review-stat { background: rgba(200, 213, 187, .22); border-color: var(--line); color: #47585c; }
.review-stat span, .review-note { color: #47585c; }
.review-sheet, .day-sheet { background: #fff; }
.sheet-backdrop, .review-backdrop { background: rgba(71, 88, 92, .52); }
.sheet-handle, .icon-button { background: #c8d5bb; color: #47585c; }
.capacity-card { background: rgba(200, 213, 187, .4); }
.capacity-card.over { background: #47585c; color: #fff; }
.capacity-card span, .capacity-card p, .capacity-card.over span, .capacity-card.over p { color: inherit; }
.capacity-track { background: rgba(71, 88, 92, .2); }
.capacity-track span { background: #47585c; }
.capacity-card.over .capacity-track { background: rgba(200, 213, 187, .5); }
.capacity-card.over .capacity-track span { background: #fff; }
.action-button { border-color: var(--line); color: #47585c; }
.action-button small, .action-chevron, .sheet-footnote { color: #47585c; }
.base-action .action-icon, .replace-day-action .action-icon { background: #c8d5bb; color: #47585c; }
.leave-action .action-icon, .change-date-action .action-icon { background: #fff; border: 1px solid #47585c; color: #47585c; }
.remove-button { border-color: #47585c; color: #47585c; }
.toast { background: #47585c; color: #fff; box-shadow: none; }

/* Admin overview: spacing and border weight communicate priority. */
.admin-content { padding-top: 29px; }
.admin-metrics { gap: 12px; margin: 0 0 17px; }
.metric-card, .admin-settings, .work-card, .all-days-card { background: #fff; border: 1px solid var(--line); box-shadow: none; }
.metric-card { border-radius: 12px; padding: 20px 21px; }
.metric-card.urgent { background: rgba(200, 213, 187, .45); border-color: #c8d5bb; }
.metric-card>span, .metric-card small, .metric-card.urgent strong, .metric-card.annual strong { color: #47585c; }
.metric-card>span { font-size: 12px; }
.metric-card strong { font-weight: 700; }
.metric-action:hover, .metric-action:focus-visible { border-color: #47585c; box-shadow: none; transform: none; }
.work-card, .all-days-card { border-radius: 14px; padding: 24px; }
.all-days-card { margin-top: 16px; }
.admin-section-title h2 { font-size: 22px; font-weight: 600; letter-spacing: -.04em; }
.work-intro, .inline-note { color: #47585c; font-size: 12px; line-height: 1.6; }
.count-badge, .count-badge.muted { background: #c8d5bb; color: #47585c; }
.overflow-list { gap: 8px; }
.overflow-day { border: 1px solid #47585c; border-left: 4px solid #47585c; border-radius: 10px; background: #fff; box-shadow: none; }
.overflow-day:hover, .overflow-day:focus-visible { background: rgba(200, 213, 187, .25); border-color: #47585c; box-shadow: none; }
.overflow-day-date strong, .overflow-day-count, .overflow-day-date small, .overflow-day-count span { color: #47585c; }
.overflow-day-status b { background: #47585c; color: #fff; }
.overflow-day-action { border-color: var(--line); color: #47585c; }
.calendar-weekdays span { color: #47585c; opacity: .8; }
.calendar-day { border-color: var(--line); border-radius: 9px; background: #fff; }
.calendar-day:hover, .calendar-day:focus-visible { border-color: #47585c; background: rgba(200, 213, 187, .2); outline-color: #47585c; }
.calendar-day-count, .calendar-day>small { color: #47585c; }
.calendar-day-full { background: #c8d5bb; border-color: #c8d5bb; }
.calendar-day-full .calendar-day-count, .calendar-day-full>small { color: #47585c; }
.calendar-day-over { background: #47585c; border-color: #47585c; color: #fff; }
.calendar-day-over .calendar-day-count, .calendar-day-over>small, .calendar-day-over>i { color: #fff; }
.calendar-day-over:hover, .calendar-day-over:focus-visible { background: #c8d5bb; border-color: #47585c; color: #47585c; }
.calendar-day-over { transition: none; }
.calendar-day-over:hover .calendar-day-count, .calendar-day-over:hover>small, .calendar-day-over:hover>i,
.calendar-day-over:focus-visible .calendar-day-count, .calendar-day-over:focus-visible>small, .calendar-day-over:focus-visible>i { color: #47585c; }
.calendar-day-special { box-shadow: inset 0 3px #47585c; }
.calendar-day>i { color: #47585c; }
.assignment-card-bottom, .admin-settings-collapsible { margin-top: 16px; }
.assignment-summary, .settings-summary { background: #fff; }
.settings-summary strong, .settings-summary-meta, .settings-summary small { color: #47585c; }
.settings-summary-meta i, .demo-label { background: rgba(200, 213, 187, .45); color: #47585c; }
.setting-block, .settings-top { background: #fff; border-color: var(--line); }
.field-label span, .field-help, .capacity-setting-head p, .special-day-setting p { color: #47585c; }
.capacity-setting .weekday-capacity { background: #fff; border-color: var(--line); }
.capacity-setting .weekday-capacity>span:first-child, .capacity-setting .weekday-capacity-value small { color: #47585c; }
.weekday-capacity input, .deadline-control input, .special-day-form input, .annual-settings input, .override-field input, .day-detail-capacity input { background: #fff; border-color: var(--line); color: #47585c; }
.small-primary { background: #47585c; color: #fff; }
.small-secondary { background: #c8d5bb; color: #47585c; }
.text-button { color: #47585c; }
.special-day-setting { background: rgba(200, 213, 187, .2); border-color: var(--line); }
.special-day-chip { border-color: var(--line); color: #47585c; }
.special-day-chip button, .special-day-empty { color: #47585c; }
.employee-assignment { background: #fff; border-color: var(--line); }
.avatar { background: #c8d5bb; color: #47585c; }
.employee-identity small, .pending-cell small, .annual-cell small, .pending-cell strong, .annual-cell strong { color: #47585c; }
.assign-button { border-color: #47585c; color: #47585c; background: #fff; }
.assign-button:disabled { background: rgba(200, 213, 187, .2); border-color: var(--line); color: #47585c; }
.employee-search { background: #fff; border-color: var(--line); color: #47585c; }
.employee-search:focus-within { border-color: #47585c; box-shadow: none; }
.employee-search input, .assignment-list-status { color: #47585c; }
.empty-admin { border-color: var(--line); color: #47585c; }
.name-chip { background: #c8d5bb; color: #47585c; }
.name-chip.leave-chip { background: #fff; border: 1px solid #47585c; color: #47585c; }
.day-detail-summary { background: rgba(200, 213, 187, .45); }
.day-detail-summary span { color: #47585c; }
.day-detail-summary.is-over { background: #47585c; border-color: #47585c; color: #fff; }
.day-detail-summary.is-over span { color: #fff; }
.day-detail-person { border-color: var(--line); }
.day-remove-button { border-color: #47585c; background: #fff; color: #47585c; }
.day-remove-button:hover, .day-remove-button:focus-visible { border-color: #47585c; background: #c8d5bb; }
.day-add-panel { background: rgba(200, 213, 187, .12); border-color: var(--line); }
.day-add-panel>p, .day-add-note, .day-add-result small { color: #47585c; }
.day-add-result { border-color: var(--line); background: #fff; }
.day-add-result:hover, .day-add-result:focus-visible { border-color: #47585c; background: rgba(200, 213, 187, .25); }
.day-add-result b { background: #c8d5bb; color: #47585c; }
.day-add-kind { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin: 11px 0; }
.day-add-kind button { min-height: 36px; border: 1px solid var(--line); border-radius: 7px; background: #fff; color: #47585c; font: inherit; font-size: 11px; font-weight: 600; cursor: pointer; }
.day-add-kind button[aria-pressed="true"] { border-color: #47585c; background: #47585c; color: #fff; }
.day-add-result:disabled { cursor: not-allowed; opacity: .55; }
.day-add-result:disabled:hover { border-color: var(--line); background: #fff; }
.day-add-settings-link { display: block; margin: 9px 0 0 auto; padding: 5px 0; border: 0; background: transparent; color: #47585c; font: inherit; font-size: 11px; font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.day-detail-capacity { border-color: var(--line); }
.finalize-card { background: #47585c; border-radius: 12px; }
.finalize-card p, .finalize-mark { color: #fff; }
.finalize-card button { background: #c8d5bb; color: #47585c; }
.finalize-card button:disabled { background: rgba(200, 213, 187, .3); color: #fff; }
.assign-backdrop { background: rgba(71, 88, 92, .52); }
.assign-sheet { background: #fff; }
.assign-copy, .assign-date-option span { color: #47585c; }
.assign-date-option { border-color: var(--line); color: #47585c; }
.assign-date-option:hover { border-color: #47585c; background: rgba(200, 213, 187, .2); }
.assign-date-option b { color: #47585c; }

@media (max-width: 650px) {
  .brand-lockup { font-size: 32px; }
  .hero-topline { margin-bottom: 25px; }
  .admin-content { padding-top: 18px; }
  .admin-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .metric-card.urgent { grid-column: 1 / -1; }
  .metric-card { min-height: 99px; padding: 15px; }
  .metric-card.urgent { min-height: 106px; }
  .metric-card>span { font-size: 11px; }
  .work-card, .all-days-card { padding: 18px 15px; }
  .admin-section-title h2 { font-size: 20px; }
  .all-days-card .admin-section-title { align-items: flex-start; flex-direction: column; gap: 6px; }
  .all-days-card .inline-note { max-width: none; }
  .calendar-day { min-height: 64px; }
  .settings-summary { padding: 14px 15px; }
  .summary { gap: 9px; padding-left: 16px; padding-right: 16px; }
}

@media (max-width: 360px) {
  .brand-lockup { font-size: 29px; }
  .preview-badge { padding: 4px 6px; font-size: 9px; }
  .work-card, .all-days-card { padding: 16px 12px; }
}

/* Type scale and alignment shared by both working views. */
body { line-height: 1.5; }
.eyebrow, .section-kicker { font-size: 11px; line-height: 1.3; font-weight: 600; }
.hero-title-row h1 { font-size: 32px; line-height: 1.18; }
.admin-heading h1 { font-size: 30px; line-height: 1.18; }
.hero-explainer, .admin-heading p { font-size: 13px; line-height: 1.55; }
.admin-heading p { margin: 0; }
.section-head h2, .admin-section-title h2, .sheet-head h2 { font-size: 22px; line-height: 1.25; font-weight: 600; }
.section-note, .calendar-help, .work-intro, .inline-note { font-size: 11px; line-height: 1.5; }
.admin-section-title { align-items: flex-end; margin-bottom: 14px; }
.admin-section-title .section-kicker, .section-head .section-kicker { margin-bottom: 6px; }

.summary-item { gap: 6px; }
.summary-label, .metric-card>span { font-size: 12px; line-height: 1.35; font-weight: 600; }
.summary-item strong { font-size: 20px; line-height: 1.2; font-weight: 700; }
.summary-detail, .metric-card small { font-size: 11px; line-height: 1.35; }
.metric-card { gap: 7px; }
.metric-card strong { font-size: 28px; line-height: 1.1; font-weight: 700; }
.work-intro { margin-bottom: 16px; }
.overflow-day-date strong { font-size: 14px; line-height: 1.25; font-weight: 600; }
.overflow-day-date small { font-size: 11px; line-height: 1.35; }
.overflow-day-count { font-size: 20px; line-height: 1; font-weight: 700; }
.overflow-day-status b, .overflow-day-action { font-size: 11px; font-weight: 600; }

.weekdays span, .calendar-weekdays span { font-size: 11px; font-weight: 600; }
.day-number, .calendar-day>strong { font-size: 15px; line-height: 1.1; font-weight: 700; }
.day-count, .calendar-day-count { font-size: 10px; line-height: 1.2; font-weight: 600; }
.calendar-day>small { font-size: 9px; line-height: 1.25; }
.legend { font-size: 11px; }
.selection-meta strong { font-size: 13px; font-weight: 600; }
.selection-meta small, .type-pill { font-size: 11px; }
.application-status, .deadline-line { font-size: 11px; }
.submit-dock-copy strong { font-size: 12px; font-weight: 600; }
.submit-dock-copy span { font-size: 11px; }
.submit-button { font-size: 13px; font-weight: 600; }
.action-button strong { font-size: 14px; font-weight: 600; }
.action-button small { font-size: 11px; line-height: 1.35; }
.capacity-card strong { font-size: 15px; font-weight: 700; }
.capacity-card span, .capacity-card p { font-size: 11px; line-height: 1.45; }
.sheet-instruction { font-size: 13px; font-weight: 600; }
.footer-note, .admin-footnote { font-size: 11px; line-height: 1.6; }

.assignment-header, .employee-assignment { grid-template-columns: minmax(145px, 1fr) 105px minmax(180px, 1.2fr) 90px; gap: 12px; }
.assignment-header { font-size: 11px; font-weight: 600; }
.employee-assignment { padding: 13px; }
.employee-identity strong { font-size: 13px; font-weight: 600; }
.employee-identity small, .pending-cell small, .annual-cell small { font-size: 10px; }
.pending-cell strong { font-size: 15px; font-weight: 700; }
.annual-cell strong { font-size: 12px; font-weight: 600; }
.annual-settings label { font-size: 10px; }
.annual-settings input { font-size: 11px; }
.annual-balance-origin { align-self: center; color: #47585c; font-size: 10px; font-weight: 600; }

.period-switcher { display: flex; align-items: center; gap: 12px; margin: 0 auto; padding: 16px 30px; border-bottom: 1px solid var(--line); color: #47585c; }
.period-switcher label { flex: 0 0 auto; font-size: 12px; font-weight: 700; }
.period-switcher select { min-width: 0; max-width: 250px; min-height: 42px; padding: 0 34px 0 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: #47585c; font: inherit; font-size: 13px; font-weight: 600; }
.period-switcher select:focus-visible { outline: 2px solid #47585c; outline-offset: 2px; }
.period-switcher>span { margin-left: auto; color: #47585c; font-size: 11px; font-weight: 600; }
.admin-period-switcher { margin: 0 0 18px; padding: 22px 0 16px; }
.admin-period-switcher>.admin-period-label { flex: 0 0 auto; margin-left: 0; font-size: 12px; font-weight: 700; }
.admin-period-fields { display: flex; align-items: center; gap: 8px; min-width: 0; }
.admin-period-switcher select { appearance: none; -webkit-appearance: none; min-width: 0; width: 116px; padding-right: 34px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='m2 2 5 5 5-5' fill='none' stroke='%2347585c' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 12px center; background-size: 14px 9px; cursor: pointer; }
.admin-period-switcher #admin-month-select, .admin-period-switcher #employee-month-select { width: 90px; }
.admin-period-switcher select:disabled { cursor: wait; opacity: .68; }
.employee-period-switcher { margin: 0 22px 18px; }
#employee-empty-month { margin: 20px 22px 30px; padding: 28px 18px; border: 1px solid var(--line); border-radius: 12px; color: #47585c; text-align: center; font-size: 13px; line-height: 1.6; }
#employee-empty-month[hidden] { display: none !important; }
.app-shell.employee-empty-month .choice-meter, .app-shell.employee-empty-month .summary, .app-shell.employee-empty-month .application-status, .app-shell.employee-empty-month .calendar-section, .app-shell.employee-empty-month .submit-dock, .app-shell.employee-empty-month .footer-note { display: none; }
.empty-month-panel { margin: 22px 0 0; padding: 32px 20px; border: 1px solid var(--line); border-radius: 12px; color: #47585c; text-align: center; font-size: 13px; line-height: 1.6; }
#period-loaded-content[hidden], #empty-month-panel[hidden] { display: none !important; }
@media (max-width: 650px) { .period-switcher { gap: 8px; padding: 13px 18px; } .period-switcher select { flex: 1 1 auto; max-width: none; min-height: 44px; } .period-switcher>span { display: none; } .admin-period-switcher { padding: 18px 0 14px; } .admin-period-switcher>.admin-period-label { display: block; } .admin-period-fields { flex: 1; } .admin-period-switcher select, .admin-period-switcher #admin-month-select, .admin-period-switcher #employee-month-select { width: auto; } .employee-period-switcher { margin: 0 20px 16px; } #employee-empty-month { margin-left: 20px; margin-right: 20px; } }
@media (max-width: 360px) { .employee-period-switcher { margin-left: 16px; margin-right: 16px; } #employee-empty-month { margin-left: 16px; margin-right: 16px; } }
.assign-button { min-height: 36px; font-size: 11px; font-weight: 600; }
.assignment-list-status { font-size: 11px; }
.employee-search input { font-size: 12px; }

.settings-summary small { font-size: 10px; font-weight: 500; }
.settings-summary strong { font-size: 13px; line-height: 1.3; font-weight: 600; }
.settings-summary-meta { font-size: 11px; }
.setting-block-heading h3, .capacity-setting-head h3, .special-day-setting h3 { font-size: 13px; line-height: 1.3; font-weight: 600; }
.setting-block-heading span, .capacity-setting-head p, .special-day-setting p, .field-help { font-size: 11px; line-height: 1.45; }
.weekday-capacity>span:first-child { font-size: 11px; font-weight: 600; }
.capacity-setting .weekday-capacity-value input { font-size: 16px; font-weight: 700; }
.special-day-chip { font-size: 11px; }
.small-primary, .small-secondary, .text-button { font-size: 11px; font-weight: 600; }

.day-detail-summary strong { font-size: 22px; line-height: 1.1; font-weight: 700; }
.day-detail-summary span { font-size: 12px; line-height: 1.3; }
.detail-subtitle, .day-add-panel h3 { font-size: 13px; line-height: 1.35; font-weight: 600; }
.day-detail-person { min-height: 46px; }
.day-detail-person-main strong { font-size: 13px; font-weight: 600; }
.name-chip, .day-detail-person-main .name-chip { font-size: 10px; font-weight: 600; }
.day-remove-button { font-size: 11px; font-weight: 600; }
.day-add-panel>p, .day-add-note { font-size: 11px; }
.day-add-result strong { font-size: 12px; font-weight: 600; }
.day-add-result small, .day-add-result b { font-size: 10px; }

@media (max-width: 650px) {
  .hero-title-row h1 { font-size: 30px; }
  .admin-heading h1 { font-size: 27px; }
  .section-head h2, .admin-section-title h2, .sheet-head h2 { font-size: 20px; }
  .metric-card strong { font-size: 26px; }
  .metric-card>span { font-size: 11px; }
  .metric-card small { font-size: 10px; }
  .summary-label { font-size: 11px; }
  .summary-item strong { font-size: 18px; min-height: 22px; }
  .summary-detail { font-size: 10px; }
  .day-number, .calendar-day>strong { font-size: 13px; }
  .day-count, .calendar-day-count { font-size: 9px; }
  .calendar-day>small { font-size: 8px; }
  .assignment-header { display: none; }
  .employee-assignment { grid-template-columns: minmax(0, 1fr) auto; gap: 10px 12px; padding: 13px; }
  .employee-identity { grid-column: 1; grid-row: 1; }
  .employee-identity small { display: none; }
  .pending-cell { grid-column: 2; grid-row: 1; align-items: flex-end; }
  .annual-cell { grid-column: 1 / -1; grid-row: 2; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 5px 8px; padding-top: 10px; border-top: 1px solid var(--line); }
  .annual-cell strong { grid-column: 1; }
  .annual-cell small { grid-column: 2; white-space: normal; }
  .annual-settings { grid-column: 1 / -1; gap: 8px; margin-top: 3px; }
  .annual-settings label { font-size: 11px; }
  .annual-settings input { height: 30px; font-size: 12px; }
  .assign-button { grid-column: 1 / -1; grid-row: 3; width: 100%; min-height: 38px; font-size: 12px; }
  .employee-assignment-list { max-height: 490px; }
  .day-detail-person-main .name-chip { font-size: 10px; }
  .day-remove-button { min-height: 32px; font-size: 11px; }
}

/* Final layout pass: quiet hierarchy, consistent edges and a clear phone flow. */
.hero-topline { margin-bottom: 24px; }
.hero-title-row h1, .admin-heading h1 { margin-bottom: 9px; }
.hero-explainer { margin-bottom: 13px; }
.deadline-line { margin-bottom: 18px; }
.choice-meter { border: 0; border-top: 1px solid rgba(200,213,187,.58); border-radius: 0; padding: 16px 0 0; }
.meter-copy { margin-bottom: 11px; gap: 10px; }
.meter-copy strong { font-size: 12px; line-height: 1.3; }
.meter-copy span { font-size: 13px; line-height: 1.3; white-space: nowrap; }
.choice-slots { gap: 7px; }
.choice-slot { height: 34px; border-radius: 7px; font-size: 11px; font-weight: 600; }
.calendar-section { padding-bottom: 22px; }
.submit-dock { position: static; margin: 0 22px 0; padding: 19px 0 22px; border-top: 1px solid var(--line); box-shadow: none; backdrop-filter: none; }
.footer-note { padding-top: 4px; }
.admin-hero .hero-topline { margin-bottom: 22px; }
.admin-section-title { align-items: center; }
.admin-section-title .section-kicker { margin-bottom: 5px; }
.metric-card { justify-content: space-between; }
.metric-card small { min-height: 15px; }
.work-intro { margin-top: 0; }

@media (max-width: 650px) {
  .hero:not(.admin-hero) { padding: 22px 20px 24px; }
  .hero:not(.admin-hero) .hero-topline { margin-bottom: 22px; }
  .hero:not(.admin-hero) .hero-title-row h1 { font-size: 28px; line-height: 1.2; }
  .hero:not(.admin-hero) .hero-explainer { font-size: 12px; line-height: 1.55; }
  .hero:not(.admin-hero) .deadline-line { margin-bottom: 17px; }
  .hero:not(.admin-hero) .choice-meter { padding-top: 14px; }
  .hero:not(.admin-hero) .choice-slot { height: 32px; }

  .app-shell .summary { grid-template-columns: minmax(0,1fr) 1px minmax(0,1fr); gap: 14px; padding: 18px 20px 19px; }
  .app-shell .summary-divider { display: block; height: auto; align-self: stretch; }
  .summary-item { gap: 3px; }
  .summary-item:nth-child(3) { padding-left: 0; border-left: 0; }
  .summary-item:last-child { grid-column: auto; display: flex; margin-top: 0; padding-top: 0; border-top: 0; }
  .summary-item:last-child .summary-detail { text-align: left; }
  .summary-label { font-size: 11px; white-space: normal; }
  .summary-item strong { font-size: 18px; min-height: 0; white-space: nowrap; }
  .summary-item:last-child strong { font-size: 18px; }
  .summary-detail { font-size: 10px; white-space: normal; }

  .application-status { margin: 12px 20px 0; }
  .calendar-section { padding: 24px 20px 20px; }
  .calendar-section .section-head { align-items: flex-start; flex-direction: column; gap: 5px; margin-bottom: 13px; }
  .calendar-section .section-note { padding: 0; font-size: 10px; }
  .calendar-section .legend { margin-bottom: 13px; gap: 12px; }
  .calendar-section .day-grid { gap: 4px; }
  .calendar-section .day { min-height: 62px; }
  .calendar-section .day-number { font-size: 14px; }
  .calendar-section .day-count { font-size: 9px; }
  .calendar-help { margin-top: 14px; }

  .submit-dock { display: block; margin: 0 20px; padding: 16px 0 24px; }
  .submit-dock-copy { margin-bottom: 12px; gap: 2px; }
  .submit-dock-copy strong { font-size: 13px; }
  .submit-dock-copy span { font-size: 11px; }
  .submit-button { width: 100%; justify-content: space-between; min-height: 46px; font-size: 13px; }
  .footer-note { padding: 0 20px 28px; font-size: 10px; }

  .admin-hero { padding: 22px 20px 26px; }
  .admin-hero .hero-topline { margin-bottom: 20px; }
  .admin-heading { align-items: flex-start; }
  .admin-heading h1 { font-size: 26px; line-height: 1.2; }
  .admin-heading p { font-size: 12px; }
  .metric-card { gap: 5px; }
  .metric-card>span { font-size: 12px; }
  .metric-card small { font-size: 10px; line-height: 1.35; }
  .admin-section-title { align-items: center; }
  .all-days-card .admin-section-title { align-items: flex-start; }
  .calendar-day { min-height: 64px; }
  .calendar-day>strong { font-size: 14px; }
  .calendar-day-count { font-size: 9px; }
  .calendar-day>small { font-size: 9px; }
}

@media (max-width: 360px) {
  .hero:not(.admin-hero), .calendar-section { padding-left: 16px; padding-right: 16px; }
  .summary { padding-left: 16px; padding-right: 16px; }
  .application-status, .submit-dock { margin-left: 16px; margin-right: 16px; }
  .footer-note { padding-left: 16px; padding-right: 16px; }
  .choice-slot { font-size: 10px; }
}

/* The employee month sits beside the wordmark on phone screens. */
.employee-topline { justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 20px; }
.employee-brand { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.employee-brand .eyebrow { margin: 9px 0 0; white-space: nowrap; }
.hero-period { display: flex; align-items: baseline; gap: 7px; flex: none; margin: 0; line-height: 1; white-space: nowrap; letter-spacing: 0; }
.period-year { color: #c8d5bb; font-size: 12px; font-weight: 500; letter-spacing: .01em; }
.period-month { color: #fff; font-size: 39px; font-weight: 600; letter-spacing: -.055em; }
@media (max-width: 650px) {
  .hero:not(.admin-hero) .employee-topline { margin-bottom: 18px; }
  .period-month { font-size: 35px; }
}
@media (max-width: 360px) {
  .employee-topline { gap: 9px; }
  .period-year { font-size: 11px; }
  .period-month { font-size: 32px; }
}

/* Admin view: section rules replace repeated rounded containers. */
.admin-hero { padding: 26px 34px 29px; }
.admin-hero::before { display: none; }
.admin-hero .admin-topline { margin: 0; }
.admin-content { padding-top: 8px; }
.admin-metrics { gap: 0; margin: 0; border-bottom: 1px solid var(--line); }
.metric-card, .metric-card.urgent { min-height: 126px; padding: 22px 20px; border: 0; border-right: 1px solid var(--line); border-radius: 0; background: #fff; }
.metric-card:last-child { border-right: 0; }
.metric-card.urgent strong { color: #47585c; }
.metric-action:hover, .metric-action:focus-visible { background: rgba(200,213,187,.22); outline: 2px solid #47585c; outline-offset: -2px; }
.work-card, .all-days-card, .admin-settings { margin-top: 0; padding: 25px 0 26px; border: 0; border-top: 1px solid var(--line); border-radius: 0; box-shadow: none; }
.overflow-card { border-top: 0; }
.work-card .admin-section-title { margin-bottom: 8px; }
.overflow-list { gap: 0; }
.overflow-day { min-height: 68px; padding: 13px 4px; border: 0; border-top: 1px solid var(--line); border-radius: 0; }
.overflow-day:last-child { border-bottom: 1px solid var(--line); }
.overflow-day:hover, .overflow-day:focus-visible { background: rgba(200,213,187,.18); border-color: var(--line); outline: 2px solid #47585c; outline-offset: -2px; }
.all-days-card { margin-top: 0; }
.assignment-card-bottom, .admin-settings-collapsible { margin-top: 0; }
.assignment-card { padding: 0; overflow: visible; }
.assignment-summary { padding: 22px 0; }
.assignment-card[open] .assignment-summary, .admin-settings-collapsible[open] .settings-summary { border-bottom: 1px solid var(--line); }
.assignment-card>.work-intro, .assignment-card>.assignment-tools, .assignment-card>.assignment-list-status, .assignment-card>.assignment-header, .assignment-card>.employee-assignment-list { margin-left: 0; margin-right: 0; }
.settings-summary { padding: 17px 0; }
.admin-settings-body { padding: 17px 0 20px; }

@media (max-width: 650px) {
  .admin-hero { padding: 22px 20px 25px; }
  .admin-hero .admin-topline { margin: 0; }
  .admin-content { padding: 0 20px 36px; }
  .admin-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .metric-card, .metric-card.urgent { min-height: 98px; padding: 15px 9px; }
  .metric-card.urgent { grid-column: 1 / -1; min-height: 89px; border-right: 0; border-bottom: 1px solid var(--line); }
  .metric-card:nth-child(2) { border-right: 1px solid var(--line); }
  .metric-card:last-child { border-right: 0; }
  .work-card, .all-days-card, .admin-settings { padding: 22px 0 24px; }
  .overflow-card { border-top: 0; }
  .overflow-day { padding: 12px 4px; }
  .assignment-card { padding: 0; }
  .assignment-summary { padding: 20px 0; }
  .assignment-card>.work-intro, .assignment-card>.assignment-tools, .assignment-card>.assignment-list-status, .assignment-card>.assignment-header, .assignment-card>.employee-assignment-list { margin-left: 0; margin-right: 0; }
  .settings-summary { padding: 17px 0; }
  .admin-settings-body { padding: 17px 0 20px; }
}

@media (max-width: 360px) {
  .admin-hero { padding-left: 16px; padding-right: 16px; }
  .admin-hero::before { left: 16px; right: 16px; }
  .admin-content { padding-left: 16px; padding-right: 16px; }
}

/* Date selection uses the same line and palette system as the admin page. */
.deadline-setting .deadline-control .date-picker-trigger,
.special-day-form .date-picker-trigger { display: flex; flex: 1; align-items: center; justify-content: space-between; gap: 10px; min-width: 0; min-height: 36px; padding: 0 11px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: #47585c; text-align: left; font-size: 12px; font-weight: 500; cursor: pointer; }
.date-picker-trigger:hover, .date-picker-trigger:focus-visible { border-color: #47585c; background: rgba(200,213,187,.14); }
.date-picker-icon { position: relative; display: inline-block; flex: none; width: 16px; height: 15px; border: 1.5px solid #47585c; border-radius: 2px; font-size: 0; }
.date-picker-icon::before { content: ""; position: absolute; top: 3px; right: 0; left: 0; border-top: 1.5px solid #47585c; }
.date-picker-icon::after { content: ""; position: absolute; top: -4px; left: 3px; width: 7px; height: 4px; border-right: 1.5px solid #47585c; border-left: 1.5px solid #47585c; }
.date-picker-backdrop { position: fixed; z-index: 30; inset: 0; background: rgba(71,88,92,.25); }
.date-picker-panel { position: fixed; z-index: 31; width: min(340px,calc(100vw - 24px)); max-height: calc(100vh - 24px); overflow-y: auto; padding: 19px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: #47585c; box-shadow: 0 16px 40px rgba(71,88,92,.18); }
.date-picker-head { display: flex; align-items: flex-start; justify-content: space-between; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.date-picker-head .section-kicker { margin: 0 0 3px; font-size: 10px; }
.date-picker-head h2 { margin: 0; font-size: 17px; line-height: 1.3; font-weight: 600; }
.date-picker-close { width: 30px; height: 30px; padding: 0; border: 0; background: transparent; color: #47585c; font-size: 24px; line-height: 1; cursor: pointer; }
.date-picker-month { display: flex; align-items: center; justify-content: space-between; margin: 12px 0 8px; }
.date-picker-month strong { font-size: 15px; font-weight: 600; }
.date-picker-month button { width: 36px; height: 36px; padding: 0; border: 0; border-radius: 6px; background: transparent; color: #47585c; font-size: 25px; line-height: 1; cursor: pointer; }
.date-picker-month button:hover:not(:disabled) { background: rgba(200,213,187,.35); }
.date-picker-month button:disabled { visibility: hidden; }
.date-picker-weekdays, .date-picker-days { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); text-align: center; }
.date-picker-weekdays { padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.date-picker-weekdays span { padding: 5px 0; font-size: 11px; font-weight: 600; }
.date-picker-days { gap: 3px; padding: 8px 0 14px; }
.date-picker-days button { display: flex; align-items: center; justify-content: center; min-width: 0; min-height: 38px; padding: 0; border: 1px solid transparent; border-radius: 6px; background: #fff; color: #47585c; font-size: 12px; font-weight: 500; cursor: pointer; }
.date-picker-days button:hover, .date-picker-days button:focus-visible { border-color: #47585c; background: rgba(200,213,187,.28); color: #47585c; }
.date-picker-days button.is-today { border-color: #47585c; }
.date-picker-days button.is-selected { border-color: #47585c; background: #47585c; color: #fff; font-weight: 700; }
.date-picker-days button.is-selected:hover, .date-picker-days button.is-selected:focus-visible { background: #c8d5bb; color: #47585c; }
.date-picker-footer { display: flex; justify-content: space-between; gap: 10px; padding-top: 12px; border-top: 1px solid var(--line); }
.date-picker-footer button { min-height: 32px; padding: 0 8px; border: 0; background: transparent; color: #47585c; font-size: 11px; font-weight: 600; cursor: pointer; }
.date-picker-footer button:last-child { margin-left: auto; }
.date-picker-footer button:hover { background: rgba(200,213,187,.25); }
@media (max-width: 650px) {
  .date-picker-backdrop { background: rgba(71,88,92,.5); }
  .date-picker-panel { right: 0; bottom: 0; left: 0 !important; top: auto !important; width: 100%; max-height: 90vh; padding: 20px 20px calc(18px + env(safe-area-inset-bottom)); border: 0; border-radius: 16px 16px 0 0; }
  .date-picker-days button { min-height: 43px; font-size: 13px; }
}

/* Employee overview is read-only; date assignment happens from the calendar. */
.assignment-header, .employee-assignment { grid-template-columns: minmax(145px,1fr) 110px minmax(220px,1.25fr); }
.finalize-card p { font-size: 11px; line-height: 1.5; }
@media (max-width: 650px) {
  .employee-assignment { grid-template-columns: minmax(0,1fr) auto; }
}

/* The two admin accordions share one heading rhythm. */
.assignment-summary, .settings-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 112px;
  padding: 22px 0;
}
.assignment-summary > .admin-section-title,
.settings-summary > .admin-section-title { flex: 1; min-width: 0; margin: 0; }
.assignment-summary .section-kicker,
.settings-summary .section-kicker { display: block; margin: 0 0 7px; font-size: 11px; line-height: 1.3; font-weight: 600; }
.assignment-summary h2,
.settings-summary strong { display: block; margin: 0; color: #47585c; font-size: 22px; line-height: 1.25; font-weight: 600; letter-spacing: -.04em; }
.assignment-summary-right, .settings-summary-meta { display: flex; align-items: center; justify-content: flex-end; gap: 12px; flex: none; }
.settings-summary-meta { font-size: 11px; line-height: 1.35; }
.assignment-chevron, .settings-summary-meta i { display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; flex: none; border: 0; border-radius: 6px; background: rgba(200,213,187,.35); color: #47585c; font-size: 17px; line-height: 1; font-style: normal; }
.assignment-summary:hover, .settings-summary:hover { background: rgba(200,213,187,.12); }
.assignment-summary .summary-value, .settings-summary .summary-value {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  height: auto;
  max-width: none;
  padding: 5px 10px;
  border-radius: 999px;
  background: #c8d5bb;
  color: #47585c;
  font-size: 11px;
  line-height: 1.3;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
}
.assignment-chevron, .settings-summary-meta i { font-size: 0; }
.assignment-chevron::after, .settings-summary-meta i::after {
  content: "";
  display: block;
  width: 7px;
  height: 7px;
  border-right: 2px solid #47585c;
  border-bottom: 2px solid #47585c;
  transform: translateY(-2px) rotate(45deg);
}
@media (max-width: 650px) {
  .assignment-summary, .settings-summary { min-height: 94px; padding: 19px 0; gap: 9px; }
  .assignment-summary h2, .settings-summary strong { font-size: 20px; }
  .assignment-summary-right, .settings-summary-meta { gap: 7px; }
  .settings-summary-meta > span { max-width: none; }
}
@media (max-width: 360px) {
  .assignment-summary h2, .settings-summary strong { font-size: 17px; }
  .assignment-summary .summary-value, .settings-summary .summary-value { padding: 5px 8px; font-size: 9px; }
  .assignment-summary-right, .settings-summary-meta { gap: 5px; }
}

/* Wordmark proportions and the month use the same serif language. */
.brand-lockup { gap: 0; padding-right: 0; letter-spacing: 0; }
.brand-o { margin-right: .09em; font-size: 1.04em; letter-spacing: -.02em; }
.brand-sun { margin-right: .025em; font-size: .98em; letter-spacing: .01em; }
.brand-registered { position: static; align-self: flex-start; margin-top: .02em; font-family: "Bodoni 72", Didot, Georgia, serif; font-size: .29em; line-height: 1; }
.period-month { font-family: "Bodoni 72", AppleMyungjo, serif; font-size: 43px; font-weight: 400; line-height: 1; letter-spacing: .055em; }
@media (max-width: 650px) { .period-month { font-size: 39px; } }
@media (max-width: 360px) { .period-month { font-size: 35px; } }

.legend-dot.assigned { background: #47585c; border: 1px solid #c8d5bb; border-radius: 2px; }
.day.assigned-admin { background: rgba(200, 213, 187, .2); border: 1px solid #47585c; box-shadow: inset 0 3px #47585c; }
.day.assigned-admin:hover, .day.assigned-admin:focus-visible { background: #c8d5bb; }
.day.assigned-admin .day-count { font-weight: 700; }
.type-pill.admin { background: #47585c; color: #fff; }
.calendar-section .legend { flex-wrap: wrap; row-gap: 8px; }
