/* Calendar-specific refinement. Keep shared clock typography and surfaces intact. */
html:root[data-ws-design][data-ws-page="calendar"] {
  --calendar-radius:22px;
}
html:root[data-ws-design][data-ws-page="calendar"] body .calendar-redesign {
  width:calc(100% - 48px);
  max-width:960px;
  margin:24px auto;
  gap:20px;
}
html:root[data-ws-design][data-ws-page="calendar"] .calendar-selected {
  column-gap:20px;
  padding:0 4px 4px!important;
  border:0;
}
html:root[data-ws-design][data-ws-page="calendar"] .calendar-selected .date-number {
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;
  font-size:60px!important;
  font-weight:500!important;
  letter-spacing:-3px;
  color:var(--slate-12)!important;
}
html:root[data-ws-design][data-ws-page="calendar"] .calendar-selected .cal-detail .detail-date {font-size:16px;font-weight:500}
html:root[data-ws-design][data-ws-page="calendar"] .calendar-selected .cal-detail-sub {color:var(--slate-11);margin-top:5px}
html:root[data-ws-design][data-ws-page="calendar"] body .calendar-redesign .cal-card {
  padding:28px!important;
  background:var(--slate-1)!important;
  border:1px solid var(--slate-6)!important;
  border-radius:var(--calendar-radius)!important;
  box-shadow:0 4px 20px rgb(0 0 0 / .025)!important;
  backdrop-filter:none;
}
html:root[data-ws-design][data-ws-page="calendar"] .calendar-redesign .cal-head {gap:6px;margin:0 0 22px}
html:root[data-ws-design][data-ws-page="calendar"] .calendar-redesign .cal-title {
  margin-right:auto;
  font-size:24px;
  font-weight:600;
  letter-spacing:-.6px;
  color:var(--slate-12);
}
html:root[data-ws-design][data-ws-page="calendar"] .calendar-redesign :is(.cal-nav,.cal-today) {
  min-height:44px;
  height:44px;
  border-radius:12px;
  background:transparent;
  color:var(--slate-11);
  border:1px solid transparent;
}
html:root[data-ws-design][data-ws-page="calendar"] .calendar-redesign .cal-nav {width:44px;font-size:26px;line-height:1}
html:root[data-ws-design][data-ws-page="calendar"] .calendar-redesign .cal-today {
  margin-left:8px;
  padding:0 16px;
  font-size:13px;
  background:var(--indigo-3);
  color:var(--indigo-11);
}
html:root[data-ws-design][data-ws-page="calendar"] .calendar-redesign :is(.cal-nav,.cal-today):hover {background:var(--indigo-4);color:var(--indigo-11)}
html:root[data-ws-design][data-ws-page="calendar"] .calendar-redesign .cal-week {
  margin:0 0 10px;
  padding:0 0 16px;
  border-bottom:1px solid var(--slate-5);
  font-size:12px;
  font-weight:500;
  color:var(--slate-11);
}
html:root[data-ws-design][data-ws-page="calendar"] .calendar-redesign .cal-week span:nth-child(n+6) {color:var(--slate-11)}
html:root[data-ws-design][data-ws-page="calendar"] .calendar-redesign .cal-grid {
  padding:0;
  border:0;
  background:transparent;
  border-radius:0;
  grid-auto-rows:minmax(76px,auto);
  gap:6px 4px;
}
html:root[data-ws-design][data-ws-page="calendar"] .calendar-redesign .cal-day {
  min-height:76px;
  padding:10px 2px 8px;
  gap:3px;
  border:1px solid transparent;
  border-radius:14px;
  background:transparent!important;
  color:var(--slate-12);
  box-shadow:none;
}
html:root[data-ws-design][data-ws-page="calendar"] .calendar-redesign .cal-day:is(.cal-weekend,.cal-holiday,.cal-workday):not(.selected):not(:hover) {background:transparent!important}
html:root[data-ws-design][data-ws-page="calendar"] .calendar-redesign .cal-day .d {
  display:flex;
  align-items:center;
  justify-content:center;
  min-width:36px;
  height:36px;
  border-radius:50%;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;
  font-size:23px;
  font-weight:500!important;
  line-height:1;
  color:var(--slate-12);
  letter-spacing:-.6px;
}
html:root[data-ws-design][data-ws-page="calendar"] .calendar-redesign .cal-day .l {
  font-size:11px;
  line-height:16px;
  color:var(--slate-11);
}
html:root[data-ws-design][data-ws-page="calendar"] .calendar-redesign .cal-day.dim :is(.d,.l) {color:var(--slate-9)!important}
html:root[data-ws-design][data-ws-page="calendar"] .calendar-redesign .cal-day.cal-holiday:not(.dim) :is(.d,.l) {color:var(--ruby-11)!important}
html:root[data-ws-design][data-ws-page="calendar"] .calendar-redesign .cal-day:not(.selected):hover {background:var(--slate-3)!important;box-shadow:none}
html:root[data-ws-design][data-ws-page="calendar"] .calendar-redesign .cal-day.selected {
  background:var(--indigo-3)!important;
  border-color:var(--indigo-6);
}
html:root[data-ws-design][data-ws-page="calendar"] .calendar-redesign .cal-day.selected.selected :is(.d,.l) {color:var(--indigo-11)!important}
html:root[data-ws-design][data-ws-page="calendar"] .calendar-redesign .cal-day.today.today .d {
  background:var(--indigo-9);
  color:white!important;
}
html:root[data-ws-design][data-ws-page="calendar"] .calendar-redesign .cal-day.today:after {display:none}
html:root[data-ws-design][data-ws-page="calendar"] .calendar-redesign .cal-status-badge {
  top:6px;
  right:7px;
  border-radius:4px;
  padding:0 3px;
  font-size:9px;
  line-height:14px;
  font-weight:500;
  background:var(--teal-3);
  color:var(--teal-11);
}
html:root[data-ws-design][data-ws-page="calendar"] .calendar-redesign .cal-holiday .cal-status-badge {background:var(--ruby-3);color:var(--ruby-11)}
html:root[data-ws-design][data-ws-page="calendar"] .calendar-redesign .cal-workday .cal-status-badge {background:var(--amber-3);color:var(--amber-11)}
html:root[data-ws-design][data-ws-page="calendar"] .calendar-redesign :is(button,a,summary):focus-visible {
  outline:2px solid var(--indigo-8);
  outline-offset:3px;
}
html:root[data-ws-design][data-ws-page="calendar"] .calendar-redesign .almanac summary {min-height:44px;color:var(--slate-11)}
@media(max-width:700px) {
  html:root[data-ws-design][data-ws-page="calendar"] body .calendar-redesign {width:calc(100% - 24px);margin:16px auto;gap:14px}
  html:root[data-ws-design][data-ws-page="calendar"] body .calendar-redesign .cal-card {padding:18px 10px 12px!important;border-radius:18px!important}
  html:root[data-ws-design][data-ws-page="calendar"] .calendar-selected {column-gap:14px;padding:0 6px!important}
  html:root[data-ws-design][data-ws-page="calendar"] .calendar-selected .date-number {font-size:48px!important}
  html:root[data-ws-design][data-ws-page="calendar"] .calendar-selected .cal-detail .detail-date {font-size:14px}
  html:root[data-ws-design][data-ws-page="calendar"] .calendar-redesign .cal-head {gap:0;margin:0 4px 18px}
  html:root[data-ws-design][data-ws-page="calendar"] .calendar-redesign .cal-title {font-size:20px;letter-spacing:-.5px}
  html:root[data-ws-design][data-ws-page="calendar"] .calendar-redesign .cal-today {margin-left:4px;padding:0 12px}
  html:root[data-ws-design][data-ws-page="calendar"] .calendar-redesign .cal-week {font-size:11px;padding-bottom:12px;margin-bottom:8px}
  html:root[data-ws-design][data-ws-page="calendar"] .calendar-redesign .cal-grid {grid-auto-rows:minmax(60px,auto);gap:4px 0}
  html:root[data-ws-design][data-ws-page="calendar"] .calendar-redesign .cal-day {min-height:60px;padding:6px 0;gap:2px;border-radius:10px}
  html:root[data-ws-design][data-ws-page="calendar"] .calendar-redesign .cal-day .d {font-size:20px;min-width:30px;height:30px}
  html:root[data-ws-design][data-ws-page="calendar"] .calendar-redesign .cal-day .l {font-size:10px;line-height:14px}
  html:root[data-ws-design][data-ws-page="calendar"] .calendar-redesign .cal-status-badge {top:2px;right:1px;font-size:8px;line-height:11px;padding:0 2px}
}
@media(max-width:360px) {
  html:root[data-ws-design][data-ws-page="calendar"] body .calendar-redesign .cal-card {padding:14px 6px 10px!important}
  html:root[data-ws-design][data-ws-page="calendar"] .calendar-redesign .cal-title {font-size:18px}
  html:root[data-ws-design][data-ws-page="calendar"] .calendar-redesign .cal-today {padding:0 10px;margin-left:0}
  html:root[data-ws-design][data-ws-page="calendar"] .calendar-redesign .cal-day .d {font-size:18px}
  html:root[data-ws-design][data-ws-page="calendar"] .calendar-redesign .cal-day .l {font-size:9px}
}
/* Month-first layout, with a stable date inspector. */
html:root[data-ws-design][data-ws-page=calendar] body .calendar-redesign{display:grid!important;grid-template-columns:minmax(0,1fr) 280px!important;align-items:start;align-content:start;max-width:1120px;gap:28px;margin:44px auto 64px}
html:root[data-ws-design][data-ws-page=calendar] .calendar-column{min-width:0}
html:root[data-ws-design][data-ws-page=calendar] body .calendar-redesign .cal-card{padding:24px!important;border-radius:20px!important;box-shadow:0 8px 32px #00000004!important}
html:root[data-ws-design][data-ws-page=calendar] .calendar-redesign .cal-head{display:flex;align-items:center;gap:4px;margin:0 0 24px}
html:root[data-ws-design][data-ws-page=calendar] .cal-head .cal-title{display:flex;order:-1;gap:2px;margin-right:auto;align-items:center}
html:root[data-ws-design][data-ws-page=calendar] .cal-title label{display:block}
html:root[data-ws-design][data-ws-page=calendar] .cal-title select{font:600 20px -apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif;letter-spacing:-.5px;color:var(--slate-12);background:transparent;border:0;border-radius:8px;min-height:44px;max-width:130px;padding:0 6px;cursor:pointer}
html:root[data-ws-design][data-ws-page=calendar] .cal-title select:hover{background:var(--slate-3)}
html:root[data-ws-design][data-ws-page=calendar] .cal-title option{background:var(--slate-1);color:var(--slate-12)}
html:root[data-ws-design][data-ws-page=calendar] .calendar-redesign .cal-nav:disabled{opacity:.25;cursor:default}
html:root[data-ws-design][data-ws-page=calendar] .calendar-redesign .cal-grid{grid-auto-rows:minmax(72px,auto);gap:4px}
html:root[data-ws-design][data-ws-page=calendar] .calendar-redesign .cal-day{min-height:72px;gap:4px;padding:8px 1px;border-radius:12px}
html:root[data-ws-design][data-ws-page=calendar] .calendar-redesign .cal-day .d{font-size:22px;font-weight:500!important}
html:root[data-ws-design][data-ws-page=calendar] .calendar-redesign .cal-day .l{white-space:nowrap;max-width:100%;overflow:hidden;text-overflow:ellipsis;font-size:11px}
html:root[data-ws-design][data-ws-page=calendar] .calendar-redesign .cal-day.selected{background:var(--indigo-3)!important;border-color:var(--indigo-8)}
html:root[data-ws-design][data-ws-page=calendar] .calendar-redesign .cal-day.today:not(.selected) .d{background:transparent;color:var(--indigo-11)!important;box-shadow:inset 0 0 0 1.5px var(--indigo-8)}
html:root[data-ws-design][data-ws-page=calendar] .calendar-redesign .cal-day:disabled{opacity:.3;pointer-events:none}
html:root[data-ws-design][data-ws-page=calendar] .calendar-redesign :is(button,select,a,summary):focus-visible{outline:2px solid var(--indigo-9);outline-offset:2px}
html:root[data-ws-design][data-ws-page=calendar] .calendar-inspector{display:block;position:sticky;top:24px;padding:0;border:0;min-width:0;background:transparent}
html:root[data-ws-design][data-ws-page=calendar] .date-summary{display:flex;flex-direction:column;align-items:flex-start;gap:12px;margin:0;padding:24px 4px 28px!important;border-bottom:1px solid var(--slate-6)}
html:root[data-ws-design][data-ws-page=calendar] .date-summary .section-label{font-size:12px;color:var(--indigo-11);letter-spacing:0}
html:root[data-ws-design][data-ws-page=calendar] .date-summary .date-number{float:none;font:500 80px/1 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;letter-spacing:-4px;color:var(--slate-12)!important;margin:0}
html:root[data-ws-design][data-ws-page=calendar] .cal-detail{margin:0;line-height:1.8}
html:root[data-ws-design][data-ws-page=calendar] .cal-detail-main{font-size:15px;color:var(--slate-12);font-weight:500}
html:root[data-ws-design][data-ws-page=calendar] .cal-detail-sub{font-size:13px;line-height:1.9;color:var(--slate-11);margin-top:6px}
html:root[data-ws-design][data-ws-page=calendar] .calendar-inspector .almanac{margin:12px 0 0;clear:both}
html:root[data-ws-design][data-ws-page=calendar] .calendar-inspector .almanac summary{justify-content:space-between;min-height:44px;font-size:14px;color:var(--slate-12)}
html:root[data-ws-design][data-ws-page=calendar] .hl-today-card{padding:12px 0!important;margin:0;min-width:0}
html:root[data-ws-design][data-ws-page=calendar] .calendar-countdown-link{display:flex;align-items:center;justify-content:space-between;border-top:1px solid var(--slate-6);padding:12px 0;margin-top:16px;min-height:44px;color:var(--slate-11);font-size:13px;text-decoration:none}
html:root[data-ws-design][data-ws-page=calendar] .calendar-countdown-link:hover{color:var(--indigo-11)}
html:root[data-ws-design][data-ws-page=calendar] #calVac:not(.open){display:none}
html:root[data-ws-design][data-ws-page=calendar] #calVacOverview{display:none}
html:root[data-ws-design][data-ws-page=calendar] #calVac{border:1px solid var(--slate-6);border-radius:16px;padding:18px;margin-top:16px;background:var(--slate-1)}
html:root[data-ws-design][data-ws-page=calendar] .cal-vac-note{font-size:11px;line-height:1.8}
@media(max-width:900px){
 html:root[data-ws-design][data-ws-page=calendar] body .calendar-redesign{grid-template-columns:minmax(0,1fr)!important;max-width:720px;margin:24px auto 40px;gap:20px}
 html:root[data-ws-design][data-ws-page=calendar] .calendar-inspector{position:static;padding:0 16px!important}
 html:root[data-ws-design][data-ws-page=calendar] .date-summary{display:grid;grid-template-columns:64px minmax(0,1fr);gap:6px 18px;padding:0 0 20px!important;align-items:center}
 html:root[data-ws-design][data-ws-page=calendar] .date-summary .section-label{grid-column:2;grid-row:1}
 html:root[data-ws-design][data-ws-page=calendar] .date-summary .date-number{grid-column:1;grid-row:1/3;font-size:60px!important}
 html:root[data-ws-design][data-ws-page=calendar] .date-summary .cal-detail{grid-column:2;grid-row:2}
 html:root[data-ws-design][data-ws-page=calendar] .cal-detail-main{font-size:14px}
 html:root[data-ws-design][data-ws-page=calendar] .cal-detail-sub{font-size:12px;margin-top:2px}
}
@media(max-width:600px){
 html:root[data-ws-design][data-ws-page=calendar] body .calendar-redesign{width:calc(100% - 24px);margin:16px auto 32px;gap:22px}
 html:root[data-ws-design][data-ws-page=calendar] body .calendar-redesign .cal-card{padding:12px 8px!important;border-radius:16px!important}
 html:root[data-ws-design][data-ws-page=calendar] .calendar-redesign .cal-head{margin:0 0 16px;gap:0}
 html:root[data-ws-design][data-ws-page=calendar] .cal-title select{font-size:16px;max-width:104px;padding:0 2px}
 html:root[data-ws-design][data-ws-page=calendar] .calendar-redesign .cal-today{font-size:12px;padding:0 10px;margin:0}
 html:root[data-ws-design][data-ws-page=calendar] .calendar-redesign .cal-nav{width:40px;min-width:40px}
 html:root[data-ws-design][data-ws-page=calendar] .calendar-redesign .cal-week{padding:0 0 12px;margin-bottom:6px}
 html:root[data-ws-design][data-ws-page=calendar] .calendar-redesign .cal-grid{grid-auto-rows:58px;gap:4px 0}
 html:root[data-ws-design][data-ws-page=calendar] .calendar-redesign .cal-day{min-height:58px;padding:5px 0;gap:2px;border-radius:10px}
 html:root[data-ws-design][data-ws-page=calendar] .calendar-redesign .cal-day .d{font-size:20px;min-width:30px;height:30px}
 html:root[data-ws-design][data-ws-page=calendar] .calendar-redesign .cal-day .l{font-size:10px;line-height:14px}
 html:root[data-ws-design][data-ws-page=calendar] .calendar-inspector{padding:0 6px!important}
 html:root[data-ws-design][data-ws-page=calendar] .date-summary{grid-template-columns:52px minmax(0,1fr);gap:4px 12px}
 html:root[data-ws-design][data-ws-page=calendar] .date-summary .date-number{font-size:50px!important;letter-spacing:-2px}
}
html:root[data-ws-design][data-ws-page=calendar] .date-summary .section-label{display:block}
html:root[data-ws-design][data-ws-page=calendar] .date-summary,html:root[data-ws-design][data-ws-page=calendar] .hl-today-card{background:transparent}
/* Rest days remain distinguishable from statutory holidays and adjusted workdays. */
html:root[data-ws-design][data-ws-page=calendar] .calendar-redesign .cal-week span:nth-child(n+6){color:var(--ruby-11)}
html:root[data-ws-design][data-ws-page=calendar] .calendar-redesign .cal-day.cal-weekend:not(.selected):not(:hover){background:var(--slate-3)!important}
html:root[data-ws-design][data-ws-page=calendar] .calendar-redesign .cal-day.cal-weekend:not(.dim):not(.selected):not(.today) .d{color:var(--ruby-11)!important}
html:root[data-ws-design][data-ws-page=calendar] .calendar-redesign .cal-day.cal-holiday:not(.selected):not(:hover){background:var(--ruby-3)!important}
html:root[data-ws-design][data-ws-page=calendar] .calendar-redesign .cal-day:not(.dim):not(.selected) .l.festival{color:var(--ruby-11)}
html:root[data-ws-design][data-ws-page=calendar] .calendar-redesign .cal-holiday .cal-status-badge{background:var(--ruby-9);color:white}
html:root[data-ws-design][data-ws-page=calendar] .calendar-redesign .cal-workday .cal-status-badge{background:var(--amber-4);color:var(--amber-12);border:1px solid var(--amber-7)}
