:root {
  color-scheme: light;
  --paper: #f5f6f0;
  --white: #fff;
  --ink: #23372c;
  --muted: #5e6b60;
  --green: #315943;
  --green-dark: #264736;
  --lime: #dceab7;
  --line: #d9e0d2;
  --radius: 10px;
  --mono: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  color: var(--ink);
  background: var(--paper);
  font-size: 14px;
  line-height: 1.5;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input { font: inherit; color: inherit; }
a { color: inherit; }
button, a, input, summary { -webkit-tap-highlight-color: transparent; }
button, a, summary { touch-action: manipulation; }
button, summary { cursor: pointer; }
button { border: 0; }
h1, h2, h3, h4, p { margin: 0; }
[hidden] { display: none !important; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible, [tabindex]:focus-visible { outline: 3px solid #6b8a46; outline-offset: 3px; }
.wrap { max-width: 1440px; margin: 0 auto; padding: 0 32px; }
.skip-link { position: absolute; top: -80px; left: 16px; padding: 12px; background: var(--green); color: white; z-index: 20; }
.skip-link:focus { top: 10px; }
.demo-banner { background: #eee6c9; color: #52492e; display: flex; justify-content: center; align-items: center; gap: 20px; padding: 8px 20px; font-size: 12px; }
.demo-banner strong { font-weight: 650; }
.demo-banner button { background: transparent; text-decoration: underline; text-underline-offset: 3px; padding: 4px; font-size: 12px; }
.site-header { min-height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); }
.site-name { text-decoration: none; font-size: 17px; font-weight: 550; letter-spacing: -.3px; }
.header-actions { display: flex; align-items: center; gap: 18px; }
.text-button { background: transparent; color: var(--muted); padding: 9px 0; font-size: 13px; }
.download-link { font-size: 13px; font-weight: 550; text-decoration: none; padding: 7px 11px; border: 1px solid #b9c5ae; border-radius: 6px; background: #fff; white-space: nowrap; }
.download-link[aria-disabled=true] { color: var(--muted); background: transparent; border-style: dashed; cursor: default; pointer-events: none; }
.intro { display: flex; align-items: center; justify-content: space-between; padding: 23px 0; gap: 22px; }
.intro h1 { font-size: 26px; font-weight: 620; letter-spacing: -.6px; line-height: 1.25; }
.intro-copy { color: var(--muted); font-size: 13px; margin-top: 5px; }
.location-label { color: var(--ink); font-weight: 500; }
.intro-tools { display: flex; align-items: center; gap: 26px; }
.clock-block { text-align: right; font-size: 12px; color: var(--muted); }
.clock-block p { color: var(--ink); font-weight: 550; }
.timezone-label { white-space: nowrap; }
.threshold-control { display: flex; align-items: center; gap: 12px; font-size: 13px; padding-left: 24px; border-left: 1px solid var(--line); }
.help-label { display: block; color: var(--muted); font-size: 12px; }
.threshold-control input { width: 70px; padding: 8px 7px 8px 10px; border: 1px solid #a8b69b; border-radius: 6px; background: white; font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 17px; }
.notice { background: #f4e9d7; border: 1px solid #d7ba89; padding: 12px 15px; border-radius: 7px; color: #6a4d27; font-size: 13px; margin-bottom: 16px; }
.top-grid { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 16px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.current-card { --count-bg: #e8ece7; --count-ink: #29362f; --count-muted: #4f5f54; --count-accent: #29362f; --count-line: #bcc8bd; padding: 21px; border-radius: var(--radius); background: var(--count-bg); color: var(--count-ink); display: flex; flex-direction: column; min-width: 0; transition: background-color .2s ease, color .2s ease; }
.current-card[data-occupancy="quiet"] { --count-bg: #264736; --count-ink: #f8faf3; --count-muted: #d0dfc8; --count-accent: #e7efce; --count-line: #91aa8d; }
.current-card[data-occupancy="busy"] { --count-bg: #73501e; --count-ink: #fffaf0; --count-muted: #f0dfbe; --count-accent: #fff0c8; --count-line: #bfaa81; }
.card-topline { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.card-topline h2 { font-size: 15px; font-weight: 550; }
.status-badge { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--count-line); border-radius: 5px; font-size: 11px; padding: 4px 7px; color: var(--count-accent); white-space: nowrap; }
.status-dot { background: currentColor; width: 5px; height: 5px; border-radius: 50%; }
.status-badge.stale { border-style: dashed; }
.count-block { padding-top: 23px; display: flex; align-items: baseline; gap: 13px; }
.current-number { font-family: var(--mono); font-size: 78px; font-weight: 450; line-height: 1.15; letter-spacing: -5px; font-variant-numeric: tabular-nums; color: var(--count-accent); }
.count-unit { font-size: 13px; color: var(--count-muted); max-width: 100px; }
.current-description { margin: 16px 0 28px; }
.occupancy-state { font-size: 16px; font-weight: 550; }
.current-description p { font-size: 13px; color: var(--count-muted); margin-top: 5px; }
.current-bottom { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--count-line); display: flex; flex-direction: column; gap: 7px; font-size: 12px; color: var(--count-muted); font-variant-numeric: tabular-nums; }
.current-schedule { color: var(--count-ink); font-weight: 550; flex-basis: 100%; }
.current-bottom > span:empty { display: none; }
.current-bottom > span { color: var(--count-accent); }
.history-card { padding: 19px 22px 13px; min-width: 0; }
.history-header { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.history-header h2 { font-size: 16px; font-weight: 600; }
.segmented { display: flex; border: 1px solid var(--line); padding: 3px; border-radius: 7px; background: #f1f4eb; gap: 2px; }
.segmented button { padding: 5px 10px; min-width: 42px; border-radius: 4px; background: transparent; color: var(--muted); font-size: 12px; }
.segmented button[aria-pressed=true] { background: white; color: var(--ink); box-shadow: 0 1px 3px #183a201b; font-weight: 600; }
.chart-legend { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 20px; font-size: 12px; color: var(--muted); margin-top: 14px; }
.chart-legend > span { display: flex; align-items: center; gap: 7px; }
.line-key { height: 2px; width: 16px; background: var(--green); }
.target-key { width: 16px; height: 10px; background: #edf3e5; border-top: 2px dashed #849b61; }
.chart-container { position: relative; height: 236px; margin-top: 7px; }
.history-svg { display: block; width: 100%; height: 100%; overflow: visible; touch-action: pan-y; }
.history-svg text { font-family: var(--mono); font-size: 11px; fill: var(--muted); }
.history-svg .grid-line { stroke: #e5eade; stroke-width: 1; }
.history-svg .target-line { stroke: #839b5d; stroke-width: 1.3; stroke-dasharray: 5 5; }
.history-svg .quiet-region { fill: #edf3e5; }
.history-svg .data-line { stroke: #477253; fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.history-svg .data-line.above-threshold { stroke: #9c651d; }
.history-svg .focus-line { stroke: #829565; stroke-width: 1; stroke-dasharray: 3 4; }
.history-svg .focus-point { fill: #315943; stroke: #fff; stroke-width: 3; }
.chart-tooltip { position: absolute; background: var(--green-dark); color: #fff; padding: 9px 12px; border-radius: 6px; pointer-events: none; transform: translate(-50%, -100%); font-size: 12px; z-index: 2; width: max-content; max-width: calc(100% - 8px); }
.chart-tooltip strong { font-size: 17px; color: #e7efce; font-family: var(--mono); }
.chart-tooltip small { display: block; color: #d0dfc8; font-size: 11px; margin-top: 3px; }
.chart-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; border-top: 1px solid var(--line); padding-top: 10px; color: var(--muted); font-size: 12px; }
.chart-empty { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; padding: 18px; text-align: center; color: var(--muted); }
.chart-empty h3 { font-size: 15px; font-weight: 550; color: var(--ink); }
.chart-empty p { font-size: 13px; max-width: 340px; }
.today-plan { margin-top: 16px; padding: 18px 21px; }
.today-plan-header { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 4px 18px; }
.today-plan-header h2 { font-size: 16px; font-weight: 600; }
.today-plan-header > span { color: var(--muted); font-size: 12px; }
.today-plan-result { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 30px; margin-top: 12px; }
.today-plan-time { font: 500 29px/1.25 var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -1px; }
.today-plan-metric { font-size: 13px; }
.today-plan-metric strong { font: 500 24px var(--mono); font-variant-numeric: tabular-nums; }
.today-plan-metric small { display: block; font-size: 12px; color: var(--muted); margin-top: 3px; }
.today-plan-assessment { font-size: 13px; }
.today-plan-assessment strong { display: inline-block; font-size: 12px; font-weight: 600; padding: 4px 8px; border-radius: 4px; background: #f4e6ce; color: #704811; }
.today-plan-assessment[data-tone="quiet"] strong { background: #e9f0df; color: #315943; }
.today-plan-assessment small { display: block; font-size: 12px; color: var(--muted); margin-top: 5px; }
.today-plan-message { margin-top: 11px; font-size: 15px; font-weight: 550; }
.today-plan-note { color: var(--muted); font-size: 12px; margin-top: 10px; max-width: 850px; }
.today-comparison { margin-top: 13px; border-top: 1px solid var(--line); padding-top: 10px; }
.today-comparison summary { width: fit-content; font-size: 12px; color: var(--ink); padding: 3px 0; }
.today-hour-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(105px, 1fr)); gap: 8px; list-style: none; margin: 12px 0 0; padding: 0; }
.today-hour { min-width: 0; padding: 11px; border: 1px solid var(--line); border-radius: 6px; background: #fcfdf9; font-size: 12px; }
.today-hour.best { border-color: #6f8165; box-shadow: inset 0 0 0 1px #6f8165; }
.today-hour-time { font: 11px var(--mono); white-space: nowrap; }
.today-hour-value { font-size: 15px; font-weight: 550; margin: 7px 0 3px; }
.today-hour-note { font-size: 11px; color: var(--muted); }
.today-hour-best { display: block; font-size: 11px; font-weight: 600; margin-top: 6px; }
.stat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.stat-card { border: 1px solid var(--line); background: #fcfdf9; border-radius: 8px; padding: 15px 20px; min-width: 0; }
.stat-card h2 { font-size: 13px; font-weight: 500; color: var(--muted); }
.stat-value { margin: 3px 0; }
.stat-value > span:first-child { font-family: var(--mono); font-size: 29px; font-weight: 500; font-variant-numeric: tabular-nums; letter-spacing: -.8px; }
.stat-unit { font-size: 12px; margin-left: 8px; color: var(--muted); }
.stat-note { font-size: 12px; color: var(--muted); }
.planning-grid { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(330px, 1fr); gap: 16px; margin-top: 20px; }
.heatmap-card, .recommendations-card { padding: 19px 20px 16px; min-width: 0; }
.section-card-header { margin-bottom: 16px; }
.section-card-header h3 { font-size: 16px; font-weight: 600; }
.section-card-header p { font-size: 12px; color: var(--muted); margin-top: 3px; }
.heatmap-scroll { overflow-x: auto; padding: 3px 2px 5px; }
.heatmap-grid { display: grid; grid-template-columns: 34px repeat(16, minmax(25px, 1fr)); gap: 4px; min-width: 503px; }
.heatmap-hour { font-family: var(--mono); font-size: 11px; color: var(--muted); text-align: center; padding-bottom: 3px; }
.heatmap-day { font-size: 12px; align-self: center; color: var(--muted); }
.heatmap-cell { border-radius: 3px; height: 29px; min-width: 0; padding: 0; border: 1px solid transparent; display: grid; place-items: center; font: 11px var(--mono); color: #162d20; }
.heatmap-cell.empty { background: #edf0e8; }
.heatmap-cell.closed { background: transparent; }
.heatmap-cell.l0 { background: #edf2df; }
.heatmap-cell.l1 { background: #d3e0b0; }
.heatmap-cell.l2 { background: #b0c789; }
.heatmap-cell.l3 { background: #8daf78; }
.heatmap-cell.l4 { background: #557b4d; color: #fff; }
.heatmap-cell.l5 { background: #325c42; color: #fff; }
.heatmap-cell.has-little-data { border: 1px dashed #486039; }
button.heatmap-cell:hover { box-shadow: 0 0 0 2px #829565; position: relative; z-index: 2; }
.heatmap-cell:focus-visible { outline-offset: 1px; position: relative; z-index: 2; }
.heatmap-footer { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin-top: 12px; color: var(--muted); font-size: 12px; }
.heatmap-footer > span:first-child { min-height: 36px; }
.heatmap-key { display: flex; align-items: center; gap: 4px; font-size: 11px; }
.heatmap-key > span { margin: 0 3px; }
.heatmap-key > i, .heatmap-key > b { width: 11px; height: 11px; border-radius: 2px; background: #edf2df; }
.heatmap-key > i:nth-of-type(2) { background: #c2d79b; }
.heatmap-key > i:nth-of-type(3) { background: #88aa69; }
.heatmap-key > i:nth-of-type(4) { background: #325c42; }
.heatmap-key > b { margin-left: 6px; background: #edf0e8; border: 1px solid #d9e0d2; }
.window-row { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.window-row:first-child { padding-top: 0; }
.window-row:last-child { border-bottom: 0; }
.window-rank { flex: none; color: var(--muted); font-family: var(--mono); font-size: 12px; }
.window-label { flex: 1; min-width: 0; }
.window-label h4 { font-size: 13px; font-weight: 550; }
.window-label p { font-size: 12px; color: var(--muted); margin-top: 4px; }
.window-count { text-align: right; font: 24px var(--mono); font-variant-numeric: tabular-nums; }
.window-count small { display: block; font: 11px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--muted); margin-top: 2px; }
.recommendation-footnote { border-top: 1px solid var(--line); padding-top: 11px; margin-top: 6px; color: var(--muted); font-size: 12px; }
.quiet-empty { padding: 22px 0 28px; color: var(--muted); }
.quiet-empty h4 { font-size: 15px; font-weight: 550; color: var(--ink); margin-bottom: 8px; }
.quiet-empty p { font-size: 13px; }
.bottom-grid { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(330px, 1fr); gap: 16px; margin-top: 20px; align-items: start; }
.hours-card { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; padding: 8px 0; }
.hours-card h3 { font-size: 13px; font-weight: 550; }
#today-hours { font-family: var(--mono); font-size: 14px; margin-top: 4px; }
.hours-note { font-size: 12px; color: var(--muted); margin-top: 6px; max-width: 430px; }
.hours-card > a { flex: none; font-size: 12px; text-underline-offset: 3px; padding-top: 2px; }
.methodology { border: 1px solid var(--line); border-radius: 7px; background: #eef1e6; }
.methodology summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 14px 17px; font-weight: 550; font-size: 13px; }
.methodology summary::-webkit-details-marker { display: none; }
.methodology summary > span { font-size: 18px; line-height: 1; }
.methodology[open] summary > span { transform: rotate(45deg); }
.methodology-content { padding: 0 17px 17px; color: var(--muted); font-size: 13px; line-height: 1.65; }
.methodology-content p + p { margin-top: 12px; }
.methodology-content strong { color: var(--ink); font-weight: 550; }
.methodology a { text-underline-offset: 3px; }
.site-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 20px; padding: 17px 0 25px; border-top: 1px solid var(--line); margin-top: 22px; color: var(--muted); font-size: 12px; }
.footer-separator { margin: 0 6px; color: #819176; }
.noscript-notice { padding: 20px; margin: 20px; border: 1px solid var(--line); background: #fff; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 1150px) {
  .wrap { padding: 0 24px; }
  .clock-block { display: none; }
  .planning-grid, .bottom-grid { grid-template-columns: minmax(0, 1fr); }
  .heatmap-footer { flex-direction: row; justify-content: space-between; gap: 15px; }
  .heatmap-footer > span:first-child { min-height: 36px; flex: 1; }
  .heatmap-key { white-space: nowrap; padding-top: 2px; }
  .quiet-windows { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
  .window-row { flex-wrap: wrap; align-content: start; align-items: flex-start; border-bottom: 0; border-right: 1px solid var(--line); padding: 0 15px 5px 0; gap: 8px; }
  .window-row:last-child { border: 0; }
  .window-label { min-width: 140px; }
  .window-count { text-align: left; margin-left: 23px; }
  .window-count small { display: inline; margin-left: 6px; }
  .quiet-empty { grid-column: 1 / -1; }
  .bottom-grid { grid-template-columns: minmax(0,1.4fr) minmax(280px,1fr); }
  .hours-card { flex-direction: column; gap: 8px; }
}
@media (max-width: 800px) {
  .wrap { padding: 0 18px; }
  .top-grid { grid-template-columns: 245px minmax(0,1fr); gap: 12px; }
  .current-card { padding: 18px; }
  .current-number { font-size: 68px; }
  .card-topline { align-items: flex-start; flex-wrap: wrap; gap: 7px; }
  .history-card { padding: 17px 15px 13px; }
  .history-header { gap: 9px; flex-wrap: wrap; }
  .chart-legend { gap: 12px; }
  .stat-grid { gap: 12px; }
  .stat-card { padding: 13px 15px; }
  .stat-unit { display: block; margin: 0; }
  .stat-note { margin-top: 7px; }
  .quiet-windows { display: block; }
  .window-row { flex-wrap: nowrap; align-items: center; border-right: 0; border-bottom: 1px solid var(--line); padding: 12px 0; gap: 14px; }
  .window-row:first-child { padding-top: 0; }
  .window-count { text-align: right; margin: 0; }
  .window-count small { display: block; margin-left: 0; }
  .bottom-grid { grid-template-columns: 1fr; }
  .hours-card { flex-direction: row; gap: 16px; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .site-header { min-height: 62px; gap: 12px; }
  .site-name { font-size: 15px; }
  .header-actions { gap: 13px; }
  .download-link { font-size: 12px; padding: 6px 9px; }
  .text-button { font-size: 12px; }
  .intro { padding: 20px 0 16px; display: block; }
  .intro h1 { font-size: 24px; }
  .intro-tools { margin-top: 15px; display: block; }
  .threshold-control { border: 0; padding: 0; justify-content: space-between; }
  .help-label { display: inline; margin-left: 6px; }
  .threshold-control input { width: 72px; padding: 6px 8px; }
  .top-grid { grid-template-columns: 1fr; gap: 14px; }
  .current-card { padding: 17px 20px; }
  .card-topline { flex-wrap: nowrap; align-items: center; }
  .count-block { padding-top: 10px; }
  .current-number { font-size: 70px; }
  .count-unit { max-width: none; }
  .current-description { margin: 9px 0 16px; }
  .current-bottom { padding-top: 12px; flex-direction: row; justify-content: space-between; flex-wrap: wrap; gap: 5px 12px; }
  .history-card { padding: 17px 16px 12px; }
  .history-header h2 { font-size: 15px; }
  .segmented button { min-width: 35px; padding: 5px 7px; }
  .chart-container { height: 225px; }
  .chart-legend { margin-top: 12px; }
  .chart-footer { font-size: 11px; }
  .today-plan { padding: 16px; margin-top: 14px; }
  .today-plan-result { gap: 13px 24px; }
  .today-plan-time { font-size: 27px; width: 100%; }
  .today-plan-metric strong { font-size: 23px; }
  .stat-grid { grid-template-columns: 1fr; gap: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; margin-top: 14px; }
  .stat-card { border: 0; border-radius: 0; border-bottom: 1px solid var(--line); padding: 12px 15px; display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 1px 15px; }
  .stat-card:last-child { border-bottom: 0; }
  .stat-card h2 { color: var(--ink); }
  .stat-value { grid-column: 2; grid-row: 1 / 3; margin: 0; text-align: right; }
  .stat-value > span:first-child { font-size: 25px; }
  .stat-unit { font-size: 11px; }
  .stat-note { grid-column: 1; font-size: 12px; margin-top: 1px; }
  .planning-grid { margin-top: 16px; gap: 14px; }
  .heatmap-card, .recommendations-card { padding: 17px 16px 14px; }
  .heatmap-footer { flex-direction: column; gap: 7px; }
  .heatmap-footer > span:first-child { min-height: 36px; }
  .heatmap-key { align-self: flex-start; }
  .window-label { min-width: 0; }
  .window-label h4 { font-size: 13px; }
  .window-label p { font-size: 12px; }
  .window-count { font-size: 23px; }
  .window-count small { max-width: 70px; }
  .bottom-grid { margin-top: 14px; gap: 14px; }
  .hours-card { flex-direction: column; gap: 8px; padding: 4px 0; }
  .demo-banner { font-size: 12px; padding: 8px 16px; gap: 12px; justify-content: space-between; align-items: flex-start; }
  .demo-banner button { font-size: 12px; flex: none; }
  .demo-banner button span { display: none; }
  .demo-banner strong { display: block; }
  .site-footer { font-size: 11px; padding-bottom: 20px; margin-top: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *:before, *:after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
