.office-home { min-width:0; }
.home-card,.home-tasks > div { background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); }
.home-tasks { margin:4px 0 22px; }
.home-tasks h2 { margin:0 0 10px; }
.home-tasks > div { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); overflow:hidden; }
.home-task { display:grid; gap:4px; color:var(--ink); text-decoration:none; padding:18px 22px; min-width:0; }
.home-task + .home-task { border-left:1px solid var(--line); }
.home-task > span { display:flex; justify-content:space-between; align-items:center; font-weight:600; }
.home-task > span > span { color:var(--muted); }
.home-task strong { font-size:clamp(20px,2.2vw,30px); letter-spacing:-.045em; font-variant-numeric:tabular-nums; }
.home-task small,.home-row small,.home-card header > span,.home-month-note { color:var(--muted); font-size:12px; }
.home-task:hover,.home-row:hover,.home-status:hover { background:var(--accent-wash); }
.home-grid { display:grid; grid-template-columns:minmax(0,1.8fr) minmax(260px,1fr); grid-template-areas:"books aside"; gap:16px; align-items:start; }
.home-books { grid-area:books; min-width:0; }
.home-aside { grid-area:aside; display:grid; gap:16px; }
.home-card { padding:18px 20px; min-width:0; }
.home-card > header { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:9px; margin-bottom:12px; }
.home-card > header a,.home-month-note a { font-size:12px; }
.home-leave { margin-bottom: 16px; }
.home-leave header p, .home-leave dt { font-size: 13px; color: var(--muted); }
.home-leave dl { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; }
.home-leave dd { margin: 2px 0 0; font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; }
.home-leave dl > :last-child dd { color: var(--accent-ink); }
.home-leave-notice { color: var(--ink-2); }
.home-leave-breakdown { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 8px; font-size: 13px; }
.home-refunds tbody th a { display: inline-flex; min-height: var(--control); align-items: center; }
.home-financials { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; padding:18px 0 22px; }
.home-financials dt { font-size:12px; color:var(--muted); }
.home-financials dd { margin:2px 0 0; font-size:clamp(17px,1.6vw,27px); font-weight:600; letter-spacing:-.04em; font-variant-numeric:tabular-nums; }
.home-financials .profit { color:var(--accent-strong); }
.home-parts a { text-decoration:none; }
.home-parts a:hover { text-decoration:underline; }
.home-row { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:12px 0; border-top:1px solid var(--line); color:var(--ink); text-decoration:none; }
.home-row small { display:block; }
.home-row b { white-space:nowrap; font-variant-numeric:tabular-nums; }
.home-employee { display:grid; gap:16px; max-width:900px; }
.home-statuses { display:flex; gap:5px; }
.home-status { flex:1; padding:8px; color:var(--ink); text-decoration:none; }
.home-status strong { display:block; font-size:20px; }
.home-month-note a { margin-left:8px; }
.office-home .loss { color:var(--danger); }
@media (max-width:1150px) { .home-grid { grid-template-columns:minmax(0,1fr); grid-template-areas:"books" "aside"; } }
@media (max-width:680px) {
 .home-card { padding:16px; }
 .home-tasks > div { grid-template-columns:1fr; }
 .home-task { display:grid; grid-template-columns:minmax(0,1fr) auto 32px; align-items:center; padding:13px 16px; }
 .home-task + .home-task { border-left:0; border-top:1px solid var(--line); }
 .home-task > span > span {display:none;}
 .home-task small {text-align:right;}
 .home-task strong {font-size:19px;}
 .home-financials {grid-template-columns:1fr;gap:5px;padding-block:12px;}
 .home-financials > div {display:flex;justify-content:space-between;align-items:center;}
 .home-financials dd {font-size:19px;}
 .home-parts, .home-parts tbody { display:block; min-width:0; width:100%; }
 .home-parts thead {position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%);}
 .home-parts tr { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); padding:9px 0; border-top:1px solid var(--line);}
 .home-parts th,.home-parts td { padding:2px 0; border:0; text-align:left; white-space:normal; font-size:12px;}
 .home-parts th {grid-column:1/-1; font-size:14px;}
 .home-parts td::before {content:attr(data-label); display:block; color:var(--muted);font-size:12px;}
}

.home-hr {background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:20px 22px;margin:0 0 18px;}
.home-hr>header,.hr-team summary,.hr-team li,.hr-joins li,.home-ops .home-task {display:flex;align-items:center;justify-content:space-between;gap:12px;}
.home-hr header>span,.hr-team small,.hr-joins time,.hr-joins small,.hr-note {font-size:12px;color:var(--muted);}
.hr-counts {display:grid;grid-template-columns:repeat(3,1fr);margin:18px 0;padding:14px 0;border-block:1px solid var(--line);}
.hr-counts>div:not(:first-child){padding-left:18px;border-left:1px solid var(--line);}
.hr-counts dt {font-size:13px;color:var(--muted);}
.hr-counts dd {margin:2px 0 0;font-weight:500;font-size:30px;line-height:36px;letter-spacing:-.01em;font-variant-numeric:tabular-nums;}
.hr-counts dd small {margin-left:3px;font-size:14px;font-weight:500;}
.hr-details {display:grid;grid-template-columns:1fr 1fr;gap:32px;}
.hr-details h3 {font-size:14px;margin:0 0 6px;}
.hr-team {border-bottom:1px solid var(--line);}
.hr-team summary {min-height:44px;cursor:pointer;justify-content:start;}
.hr-team summary:before {content:"›";color:var(--muted);}
.hr-team[open] summary:before {transform:rotate(90deg);}
.hr-team summary span {margin-left:auto;}
.hr-team ul,.hr-joins {margin:0;padding:0;list-style:none;}
.hr-team ul {padding:0 0 8px 15px;}
.hr-team li,.hr-joins li {padding:5px 0;}
.hr-joins small {margin-left:9px;}
.hr-joins time {white-space:nowrap;}
.home-ops .home-task {padding:10px 0;border:0;border-top:1px solid var(--line);}
.home-ops .home-task>span {flex:1;justify-content:start;gap:5px;}
.home-ops .home-task strong {font-size:15px;}
@media(max-width:680px){.home-hr {padding:16px;}.hr-details {grid-template-columns:1fr;gap:16px;}.hr-counts dd{font-size:24px;}.hr-counts>div:not(:first-child){padding-left:10px;}.hr-joins small {display:block;margin:0;}}

.shift-today,.shift-week {margin-bottom:16px;}
.today-kinds {display:grid;grid-template-columns:repeat(auto-fit,minmax(85px,1fr));gap:8px;}
.today-kind {text-align:left;padding:10px 14px;background:var(--canvas);border:1px solid transparent;border-radius:8px;color:var(--ink);}
.today-kind span,.shift-tools>span,.shift-legend,.week-table small,.week-agenda small {font-size:12px;color:var(--muted);}
.today-kind strong {display:block;font-size:27px;line-height:1.3;}
.today-kind strong small {font-size:14px;margin-left:3px;}
.today-kind[aria-expanded=true],.shift-days button[aria-pressed=true]{background:var(--accent-wash);border-color:var(--accent);color:var(--accent-strong);}
.today-list,.week-agenda {list-style:none;padding:0;margin:10px 0 0;}
.today-list {display:flex;flex-wrap:wrap;gap:8px 18px;}
.today-list li {font-size:13px;}
.week-switch,.shift-tools,.shift-tools label {display:flex;align-items:center;gap:8px;}
.shift-tools {justify-content:space-between;flex-wrap:wrap;margin:8px 0 12px;}
.shift-tools select {width:auto;}
.week-switch strong {font-size:14px;font-variant-numeric:tabular-nums;}
.week-table,.week-agenda {max-height:350px;overflow:auto;}
.week-table table {width:100%;border-collapse:separate;border-spacing:0;min-width:580px;}
.week-table thead th {position:sticky;top:0;background:var(--canvas);z-index:1;}
.week-table th,.week-table td {text-align:center;padding:6px 8px;}
.week-table th:first-child {text-align:left;}
.week-table small {display:block;font-weight:400;}
.week-table .is-today {background:var(--accent-wash);}
.shift-mark {display:inline-block;min-width:28px;text-align:center;font-size:12px;padding:2px 6px;border-radius:4px;}
.shift-mark.special {background:var(--warning-wash);color:var(--warning);}
.shift-legend {margin-top:10px;}
.shift-days,.week-agenda {display:none;}
@media(max-width:680px){
 .today-kind {padding:8px;}.today-kind strong {font-size:22px;}
 .week-switch {gap:5px;}.shift-tools>span {width:100%;}
 .week-table {display:none;}.week-agenda {display:block;max-height:300px;}
 .shift-days {display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px;}
 .shift-days button {background:var(--surface);border:1px solid var(--line);color:var(--ink);border-radius:6px;min-height:44px;}
 .shift-days small {display:block;}
 .week-agenda li {display:flex;justify-content:space-between;align-items:center;padding:6px 0;border-bottom:1px solid var(--line);}
}

.home-month-note .latest-book { border:0; padding:2px 4px; background:transparent; font:inherit; color:var(--accent-strong); text-decoration:underline; cursor:pointer; }
.home-books [data-results][aria-busy=true] { position:relative; min-height:42px; }
.home-books [data-results][aria-busy=true] > * { visibility:hidden; }
.home-books [data-results][aria-busy=true]::before { content:"실적을 불러오는 중입니다."; position:absolute; top:6px; left:0; font-size:.85rem; color:var(--muted); }

.home-hr>header {flex-wrap:wrap;}
.hr-plan {margin-top:16px;border-top:1px solid var(--line);}
.hr-plan>summary {cursor:pointer;padding:12px 0;font-weight:600;}

.attendance-summary {margin-bottom:18px;}
.schedule-days {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;}
.schedule-day {min-width:0;padding:12px 14px;border:1px solid var(--line);border-radius:var(--radius);}
.schedule-day.is-today {border-color:var(--accent-strong);background:var(--accent-wash);}
.schedule-day header,.day-count,.day-member {display:flex;align-items:center;justify-content:space-between;gap:6px;}
.schedule-day header {margin-bottom:10px;}
.schedule-day h3,.day-detail h3 {margin:0;font-size:15px;}
.schedule-day time,.day-empty,.day-member span,.day-person span {color:var(--muted);font-size:13px;}
.day-count {width:100%;min-height:36px;padding:4px 8px;border:0;background:transparent;border-radius:5px;color:var(--ink);font:inherit;text-align:left;cursor:pointer;}
.day-count:hover:not(:disabled),.day-count[aria-expanded=true] {background:var(--surface);box-shadow:inset 0 0 0 1px var(--line);}
.day-count:disabled {color:var(--muted);cursor:default;opacity:1;}
.day-count strong {font-variant-numeric:tabular-nums;white-space:nowrap;}
.day-count small {font-weight:400;margin-left:2px;}
.day-count span::before,.day-status::before {content:'';display:inline-block;width:7px;height:7px;border-radius:50%;margin-right:6px;background:var(--muted);}
.day-count.work span::before,.day-status.work::before {background:#217653;}
.day-count.off span::before,.day-status.off::before {background:#af582f;}
.day-count.leave span::before,.day-status.leave::before {background:#7464aa;}
.day-person {display:grid;gap:4px;}
.day-detail {margin-top:16px;}
.day-detail ul {list-style:none;padding:0;margin:8px 0;}
.day-group {padding:8px 10px;background:var(--accent-wash);font-weight:600;}
.day-group.site {background:transparent;color:var(--muted);}
.day-member {padding:7px 10px;border-bottom:1px solid var(--line);}
@media(max-width:600px){
  .attendance-summary {padding:14px 10px;}
  .schedule-days {gap:5px;}
  .schedule-day {padding:8px 5px;}
  .schedule-day header {align-items:flex-start;flex-direction:column;gap:2px;}
  .day-count {font-size:12px;min-height:44px;padding:2px;}
  .day-count span::before {width:5px;height:5px;margin-right:3px;}
  .day-person span {font-size:12px;}
}

/* The date sits beside the title in the title's size, quieter, as on TONIFY's dashboard. */
.title-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 10px; }
.title-note { color: var(--muted); font-size: 24px; line-height: 32px; font-weight: 400; letter-spacing: -.01em; }
.home-work { margin-bottom: 24px; }
.home-work .status-grid { margin-bottom: 0; }
.status-tile.urgent strong { color: var(--danger); }
@media (max-width: 600px) { .title-note { flex-basis: 100%; font-size: 14px; line-height: 20px; } }
.home-card > header h2 { font-size: 14px; line-height: 20px; }
