/* Day Office scenarios and workday planner: readable, calm, and naturally sized. */
:where(body[data-page="dayoffice"]) .day-use-grid {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  gap: 30px;
  align-items: start;
}
:where(body[data-page="dayoffice"]) .day-use-grid .use-tabs { gap: 12px; }
:where(body[data-page="dayoffice"]) .day-use-grid .use-tab {
  min-height: 88px;
  padding: 20px;
  gap: 16px;
  flex-wrap: nowrap;
  background: #fff;
  border: 1px solid #d6e4eb;
  border-radius: 14px;
  transform: none;
  transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}
:where(body[data-page="dayoffice"]) .day-use-grid .use-tab:hover {
  background: #f0f9fc;
  border-color: #78b5c8;
  transform: none;
}
:where(body[data-page="dayoffice"]) .day-use-grid .use-tab[aria-selected="true"] {
  background: #edf8fc;
  border-color: #1686a5;
  box-shadow: inset 4px 0 #007a9a, 0 8px 22px #0b4c6c09;
}
:where(body[data-page="dayoffice"]) .day-use-grid .use-tab .number {
  order: 0;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  font-size: 14px;
  color: #526a7b;
  border-color: #d1e2eb;
}
:where(body[data-page="dayoffice"]) .day-use-grid .use-tab[aria-selected="true"] .number {
  color: #fff;
  background: #007a9a;
  border-color: #007a9a;
}
:where(body[data-page="dayoffice"]) .day-use-grid .tab-label {
  order: 0;
  min-width: 0;
  flex: 1;
  color: #102d43;
  font-family: var(--body);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0;
}
:where(body[data-page="dayoffice"]) .day-use-grid .use-tab > svg {
  order: 0;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  color: #007a9a;
}

/* Inactive panels reserve their natural size without being visible or interactive.
   Later noscript styles can restore normal flow and show every scenario. */
:where(body[data-page="dayoffice"]) .day-use-grid .use-panels {
  display: grid;
  min-width: 0;
  align-self: start;
}
:where(body[data-page="dayoffice"]) .day-use-grid .use-panel {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid #d6e4eb;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 14px 35px #113e5809;
}
:where(body[data-page="dayoffice"]) .day-use-grid .use-panel[hidden] {
  display: flex !important;
  visibility: hidden;
  pointer-events: none;
}
:where(body[data-page="dayoffice"]) .day-use-grid .use-panel:not([hidden]) { z-index: 1; }
:where(body[data-page="dayoffice"]) .day-use-grid .use-panel > img {
  display: block;
  width: 100%;
  height: 280px;
  flex: 0 0 auto;
  object-fit: cover;
}
:where(body[data-page="dayoffice"]) .day-use-grid .use-panel-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: 30px 32px 32px;
}
:where(body[data-page="dayoffice"]) .day-use-grid .use-panel h3 {
  margin: 0;
  font-size: calc(clamp(25px, 2.3vw, 31px) + 2px);
  line-height: 1.3;
  letter-spacing: -.035em;
}
:where(body[data-page="dayoffice"]) .day-use-grid .use-panel p {
  min-height: 0;
  margin: 14px 0 0;
  color: #526a7b;
  font-size: 18px;
  line-height: 1.75;
}
:where(body[data-page="dayoffice"]) .day-use-grid .actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 17px 22px;
  margin: auto 0 0;
  padding-top: 25px;
}
:where(body[data-page="dayoffice"]) .day-use-grid .actions .btn {
  min-height: 48px;
  margin: 0;
  font-size: 17px;
  white-space: normal;
  text-align: center;
}
:where(body[data-page="dayoffice"]) .day-use-grid .actions .text-link {
  min-height: 44px;
  font-size: 17px;
  white-space: normal;
}
:where(body[data-page="dayoffice"]) .dayoffice-usecases > .wrap > .fine-print {
  max-width: 95ch;
  margin-top: 22px;
  color: #526a7b;
  font-size: 17px;
  line-height: 1.75;
}

/* A workday budget, not a clock: the diagram has no spinning or timed effects. */
:where(body[data-page="dayoffice"]) .day-planner { background: #f5f9fb; }
:where(body[data-page="dayoffice"]) .day-planner-grid {
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr);
  align-items: start;
  gap: 28px;
}
:where(body[data-page="dayoffice"]) .day-controls,
:where(body[data-page="dayoffice"]) .day-result {
  min-width: 0;
  padding: 32px;
  border: 1px solid #d6e4eb;
  border-radius: 18px;
  background: #fff;
}
:where(body[data-page="dayoffice"]) .day-controls fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
:where(body[data-page="dayoffice"]) .day-controls legend {
  margin-bottom: 25px;
  padding: 0;
  color: #102d43;
  font-family: var(--display);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -.025em;
}
:where(body[data-page="dayoffice"]) .day-field { margin: 0 0 25px; }
:where(body[data-page="dayoffice"]) .day-field:last-child { margin-bottom: 0; }
:where(body[data-page="dayoffice"]) .day-field label {
  display: block;
  margin-bottom: 9px;
  color: #102d43;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0;
  text-transform: none;
}
:where(body[data-page="dayoffice"]) .day-field select,
:where(body[data-page="dayoffice"]) .day-field input[type="number"] {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid #b6cbd7;
  border-radius: 9px;
  background-color: #fff;
  color: #102d43;
  font: inherit;
  font-size: 19px;
  line-height: 1.5;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
:where(body[data-page="dayoffice"]) .day-field select { padding-right: 30px; }
:where(body[data-page="dayoffice"]) .day-field small {
  display: block;
  margin-top: 9px;
  color: #526a7b;
  font-size: 17px;
  line-height: 1.65;
}
:where(body[data-page="dayoffice"]) .day-range-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 5px 15px;
}
:where(body[data-page="dayoffice"]) .day-range-row output {
  color: #00728e;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
}
:where(body[data-page="dayoffice"]) .day-field input[type="range"] {
  display: block;
  width: 100%;
  min-height: 44px;
  margin: 0;
  padding: 0;
  cursor: pointer;
  accent-color: #007a9a;
}
:where(body[data-page="dayoffice"]) .day-fixed-note {
  margin: 24px 0 0;
  padding: 17px 19px;
  border-left: 3px solid #8dbbce;
  border-radius: 0 8px 8px 0;
  background: #f6f9fb;
  color: #526a7b;
  font-size: 18px;
  line-height: 1.7;
}
:where(body[data-page="dayoffice"]) .day-fixed-note strong { color: #102d43; }
:where(body[data-page="dayoffice"]) .day-result {
  border-top: 4px solid #007a9a;
  box-shadow: 0 14px 40px #153d580a;
}
:where(body[data-page="dayoffice"]) .day-controls[hidden] + .day-result { grid-column: 1 / -1; }
:where(body[data-page="dayoffice"]) .day-kicker {
  display: inline-block;
  margin: 0 0 10px;
  color: #00728e;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: .025em;
}
:where(body[data-page="dayoffice"]) .day-result h3 {
  margin: 0 0 13px;
  color: #102d43;
  font-size: calc(clamp(27px, 2.7vw, 35px) + 2px);
  line-height: 1.3;
  letter-spacing: -.035em;
}
:where(body[data-page="dayoffice"]) .day-result > p {
  max-width: 70ch;
  margin: 0;
  color: #526a7b;
  font-size: 18px;
  line-height: 1.75;
}
:where(body[data-page="dayoffice"]) .day-budget-visual {
  display: grid;
  grid-template-columns: minmax(172px, 190px) minmax(0, 1fr);
  align-items: center;
  gap: 26px;
  margin: 28px 0;
}
:where(body[data-page="dayoffice"]) .day-donut {
  position: relative;
  width: 100%;
  max-width: 190px;
  aspect-ratio: 1;
  border: 1px solid #d4e2e9;
  border-radius: 50%;
  background: #e6f0f5;
}
:where(body[data-page="dayoffice"]) .day-donut-center {
  position: absolute;
  inset: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px;
  border-radius: 50%;
  background: #fff;
  text-align: center;
}
:where(body[data-page="dayoffice"]) .day-donut-center strong {
  display: block;
  color: #102d43;
  font-family: var(--display);
  font-size: 34px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.04em;
  font-variant-numeric: tabular-nums;
}
:where(body[data-page="dayoffice"]) .day-donut-center small {
  display: block;
  color: #526a7b;
  font-size: 17px;
  line-height: 1.4;
}
:where(body[data-page="dayoffice"]) .day-metrics {
  display: grid;
  gap: 20px;
  min-width: 0;
}
:where(body[data-page="dayoffice"]) .day-metrics .metric { min-width: 0; margin: 0; }
:where(body[data-page="dayoffice"]) .day-metrics dt {
  margin-bottom: 6px;
  color: #526a7b;
  font-size: 17px;
  line-height: 1.5;
}
:where(body[data-page="dayoffice"]) .day-metrics dd {
  margin: 0;
  color: #102d43;
  font-family: var(--display);
  font-size: calc(clamp(22px, 2.3vw, 29px) + 2px);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -.03em;
  white-space: normal;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}
:where(body[data-page="dayoffice"]) .day-budget-legend {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 21px 22px;
  border: 1px solid #e0eaf0;
  border-radius: 12px;
  background: #f8fbfc;
  list-style: none;
}
:where(body[data-page="dayoffice"]) .day-budget-legend li {
  display: grid;
  grid-template-columns: 13px minmax(0, 1fr) minmax(70px, auto);
  align-items: start;
  gap: 10px;
  color: #526a7b;
  font-size: 18px;
  line-height: 1.6;
}
:where(body[data-page="dayoffice"]) .day-budget-legend .swatch {
  display: block;
  width: 13px;
  height: 13px;
  margin-top: .38em;
  border: 1px solid #102d4320;
  border-radius: 3px;
}
:where(body[data-page="dayoffice"]) .day-budget-legend .focus { background: #102d43; }
:where(body[data-page="dayoffice"]) .day-budget-legend .meeting { background: #007f9f; }
:where(body[data-page="dayoffice"]) .day-budget-legend .break { background: #7ac8dc; }
:where(body[data-page="dayoffice"]) .day-budget-legend .preparation { background: #b9ccd7; }
:where(body[data-page="dayoffice"]) .day-budget-legend .flex { background: #e6f0f5; }
:where(body[data-page="dayoffice"]) .day-budget-legend strong {
  color: #102d43;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.6;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
:where(body[data-page="dayoffice"]) .day-capacity {
  margin-top: 25px;
  padding-top: 23px;
  border-top: 1px solid #d6e4eb;
}
:where(body[data-page="dayoffice"]) .day-capacity .day-capacity-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}
:where(body[data-page="dayoffice"]) .day-capacity .day-capacity-dots > span {
  display: block;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  border: 1px solid #a8c4d2;
  border-radius: 50%;
  background: #f1f6f8;
}
:where(body[data-page="dayoffice"]) .day-capacity .day-capacity-dots > .is-filled { background: #007a9a; border-color: #007a9a; }
:where(body[data-page="dayoffice"]) .day-capacity p {
  margin: 12px 0 0;
  color: #526a7b;
  font-size: 18px;
  line-height: 1.65;
}
:where(body[data-page="dayoffice"]) .day-capacity.is-over-limit p { color: #8b3c20; font-weight: 600; }
:where(body[data-page="dayoffice"]) .day-capacity.is-over-limit .day-capacity-dots > .is-filled {
  background: #8b3c20;
  border-color: #8b3c20;
}
:where(body[data-page="dayoffice"]) .day-result .day-notice,
:where(body[data-page="dayoffice"]) .day-error {
  margin: 20px 0 0;
  padding: 15px 17px;
  border: 1px solid #d4a398;
  border-radius: 8px;
  background: #fff5f2;
  color: #8b2c1d;
  font-size: 18px;
  line-height: 1.65;
}
:where(body[data-page="dayoffice"]) .day-field [aria-invalid="true"] { border-color: #a83d2a; }
:where(body[data-page="dayoffice"]) .day-result .day-advice {
  margin: 25px 0 0;
  padding: 18px 20px;
  border-left: 3px solid #8dbbce;
  border-radius: 0 8px 8px 0;
  background: #f6f9fb;
  font-size: 18px;
  line-height: 1.7;
}
:where(body[data-page="dayoffice"]) .day-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 22px;
  margin-top: 26px;
}
:where(body[data-page="dayoffice"]) .day-actions .btn {
  min-height: 48px;
  font-size: 17px;
  white-space: normal;
  text-align: center;
}
:where(body[data-page="dayoffice"]) .day-actions .text-link { min-height: 44px; font-size: 17px; white-space: normal; }
:where(body[data-page="dayoffice"]) .day-disclaimer {
  max-width: 95ch;
  margin: 23px 0 0;
  color: #526a7b;
  font-size: 17px;
  line-height: 1.75;
}
:where(body[data-page="dayoffice"]) .day-disclaimer a,
:where(body[data-page="dayoffice"]) .day-planner noscript a {
  color: #006e8c;
  text-decoration: underline;
  text-underline-offset: 3px;
}
:where(body[data-page="dayoffice"]) .day-status.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
:where(body[data-page="dayoffice"]) .day-use-grid :is(button, a, [role="tabpanel"]):focus-visible,
:where(body[data-page="dayoffice"]) .day-planner :is(input, select, a):focus-visible {
  outline: 3px solid #007a9a;
  outline-offset: 4px;
}
:where(body[data-page="dayoffice"]) .day-use-grid .use-panel:focus-visible { outline-offset: 5px; }
:where(body[data-page="dayoffice"]) .day-field :is(input, select):focus-visible {
  border-color: #007a9a;
  box-shadow: 0 0 0 3px #007a9a0e;
}

@media (max-width: 900px) {
  :where(body[data-page="dayoffice"]) .day-use-grid { gap: 22px; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
  :where(body[data-page="dayoffice"]) .day-use-grid .use-tab { padding: 18px 15px; gap: 12px; }
  :where(body[data-page="dayoffice"]) .day-use-grid .use-panel-content { padding: 26px; }
  :where(body[data-page="dayoffice"]) .day-planner-grid { grid-template-columns: 1fr; }
  :where(body[data-page="dayoffice"]) .day-controls,
  :where(body[data-page="dayoffice"]) .day-result { padding: 28px; }
  :where(body[data-page="dayoffice"]) .day-budget-visual { grid-template-columns: 190px minmax(0, 1fr); gap: 32px; }
}
@media (max-width: 600px) {
  :where(body[data-page="dayoffice"]) .day-use-grid { grid-template-columns: 1fr; gap: 23px; }
  :where(body[data-page="dayoffice"]) .day-use-grid .use-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  :where(body[data-page="dayoffice"]) .day-use-grid .use-tab {
    display: grid;
    grid-template-columns: 1fr auto;
    min-height: 98px;
    padding: 16px 13px;
    gap: 10px 8px;
    align-content: start;
    align-items: start;
  }
  :where(body[data-page="dayoffice"]) .day-use-grid .use-tab .number { grid-column: 1; grid-row: 1; width: 26px; height: 26px; }
  :where(body[data-page="dayoffice"]) .day-use-grid .use-tab > svg { grid-column: 2; grid-row: 1; align-self: center; width: 18px; height: 18px; }
  :where(body[data-page="dayoffice"]) .day-use-grid .tab-label { grid-column: 1 / -1; grid-row: 2; font-size: 18px; line-height: 1.5; }
  :where(body[data-page="dayoffice"]) .day-use-grid .use-tab[aria-selected="true"] { box-shadow: inset 0 3px #007a9a, 0 6px 20px #007a9a09; }
  :where(body[data-page="dayoffice"]) .day-use-grid .use-panel > img { height: 235px; }
  :where(body[data-page="dayoffice"]) .day-use-grid .use-panel-content { padding: 24px 22px; }
  :where(body[data-page="dayoffice"]) .day-use-grid .use-panel h3 { font-size: 29px; }
  :where(body[data-page="dayoffice"]) .day-use-grid .actions { gap: 13px; width: 100%; }
  :where(body[data-page="dayoffice"]) .day-use-grid .actions .btn { width: 100%; justify-content: center; }
  :where(body[data-page="dayoffice"]) .day-use-grid .actions :is(.btn, .text-link) { font-size: 18px; }
  :where(body[data-page="dayoffice"]) .day-planner-grid { gap: 20px; }
  :where(body[data-page="dayoffice"]) .day-controls,
  :where(body[data-page="dayoffice"]) .day-result { padding: 24px 21px; border-radius: 15px; }
  :where(body[data-page="dayoffice"]) .day-controls legend { font-size: 23px; }
  :where(body[data-page="dayoffice"]) .day-field small,
  :where(body[data-page="dayoffice"]) .day-metrics dt,
  :where(body[data-page="dayoffice"]) .day-donut-center small,
  :where(body[data-page="dayoffice"]) .dayoffice-usecases > .wrap > .fine-print,
  :where(body[data-page="dayoffice"]) .day-disclaimer,
  :where(body[data-page="dayoffice"]) .day-actions :is(.btn, .text-link) { font-size: 18px; }
  :where(body[data-page="dayoffice"]) .day-budget-visual { grid-template-columns: 1fr; gap: 24px; }
  :where(body[data-page="dayoffice"]) .day-donut { width: 178px; justify-self: center; }
  :where(body[data-page="dayoffice"]) .day-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  :where(body[data-page="dayoffice"]) .day-metrics dd { font-size: 26px; }
  :where(body[data-page="dayoffice"]) .day-budget-legend { padding: 18px 15px; }
  :where(body[data-page="dayoffice"]) .day-budget-legend li { grid-template-columns: 13px minmax(0, 1fr) minmax(60px, .7fr); gap: 9px; }
  :where(body[data-page="dayoffice"]) .day-result .day-advice,
  :where(body[data-page="dayoffice"]) .day-fixed-note { padding: 16px; }
  :where(body[data-page="dayoffice"]) .day-actions { align-items: stretch; gap: 13px; }
  :where(body[data-page="dayoffice"]) .day-actions .btn { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  :where(body[data-page="dayoffice"]) .day-use-grid .use-tab,
  :where(body[data-page="dayoffice"]) .day-field select,
  :where(body[data-page="dayoffice"]) .day-field input { transition: none; }
}
@media print {
  :where(body[data-page="dayoffice"]) .day-use-grid .use-tabs,
  :where(body[data-page="dayoffice"]) .day-controls { display: none; }
  :where(body[data-page="dayoffice"]) .day-use-grid,
  :where(body[data-page="dayoffice"]) .day-use-grid .use-panels,
  :where(body[data-page="dayoffice"]) .day-planner-grid { display: block; }
  :where(body[data-page="dayoffice"]) .day-use-grid .use-panel[hidden] { display: none !important; }
  :where(body[data-page="dayoffice"]) .day-use-grid .use-panel,
  :where(body[data-page="dayoffice"]) .day-result { box-shadow: none; }
  :where(body[data-page="dayoffice"]) .day-budget-visual,
  :where(body[data-page="dayoffice"]) .day-budget-legend { break-inside: avoid; }
}

