:root {
  color-scheme: light;
  --paper: #f5f8f7;
  --surface: #ffffff;
  --ink: #15212b;
  --muted: #61707b;
  --faint: #8c999f;
  --line: #d8e0e1;
  --line-strong: #c1ccce;
  --teal: #087f8c;
  --teal-deep: #05616c;
  --teal-soft: #d9eff1;
  --cyan: #38aab3;
  --lime: #8bbb28;
  --lime-soft: #e8f2cf;
  --orange: #d96f21;
  --red: #c2473f;
  --navy: #0d2531;
  --shadow: 0 12px 30px rgba(28, 48, 57, .08);
  --radius: 14px;
  --sidebar: 216px;
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-drawer: cubic-bezier(.32, .72, 0, 1);
  font-family: Aptos, "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { background: var(--paper); }
body { margin: 0; min-width: 320px; color: var(--ink); background: var(--paper); font-size: 14px; line-height: 1.5; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
button:focus-visible, a:focus-visible { outline: 3px solid rgba(8,127,140,.28); outline-offset: 2px; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; z-index: 20; height: 100vh; display: flex; flex-direction: column; padding: 22px 14px 18px; color: #f1f7f7; background: var(--navy); }
.brand { display: flex; align-items: center; gap: 9px; padding: 0 9px 24px; font-size: 20px; letter-spacing: -.025em; }
.brand svg { color: #4fd2d8; width: 24px; height: 24px; stroke-width: 2.2; }
.brand span { color: #4fd2d8; }
.main-nav { display: grid; gap: 5px; }
.nav-item, .privacy-shortcut { width: 100%; border: 0; display: flex; align-items: center; gap: 12px; cursor: pointer; text-align: left; color: #cbd9dd; background: transparent; }
.nav-item { min-height: 46px; padding: 0 12px; border-radius: 10px; }
.nav-item:hover { color: #fff; background: rgba(255,255,255,.07); }
.nav-item.active { color: #fff; background: var(--teal); box-shadow: 0 7px 18px rgba(0,0,0,.12); }
.nav-item svg { width: 19px; height: 19px; }
.privacy-shortcut { margin-top: auto; padding: 12px 9px; font-size: 12px; border-top: 1px solid rgba(255,255,255,.12); }
.privacy-shortcut .arrow { width: 14px; margin-left: auto; }
.workspace { min-width: 0; }
.topbar { height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 30px; background: rgba(255,255,255,.88); border-bottom: 1px solid var(--line); backdrop-filter: blur(14px); position: sticky; top: 0; z-index: 12; }
.topbar-context, .profile { display: flex; align-items: center; gap: 12px; }
.topbar-context { color: var(--muted); }
.topbar-separator { width: 1px; height: 20px; background: var(--line); }
.demo-flag, .policy-version { padding: 3px 8px; border-radius: 6px; color: var(--teal-deep); background: var(--teal-soft); font-size: 11px; font-weight: 700; }
.profile strong, .profile small { display: block; }
.profile strong { font-size: 12px; }
.profile small { color: var(--muted); font-size: 10px; }
.avatar { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--navy); font-size: 11px; font-weight: 700; }
.icon-button.menu-button { display: none; }
main { padding: 28px 30px 46px; }
.view { display: none; }
.view.active { display: block; }
.page-heading, .section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.page-heading h1 { margin: 0 0 5px; font-size: clamp(25px, 2.2vw, 34px); line-height: 1.1; letter-spacing: -.035em; }
.page-heading p, .section-heading p { margin: 0; color: var(--muted); max-width: 68ch; }
.section-heading { margin-top: 32px; margin-bottom: 14px; }
.section-heading h2 { margin: 0 0 3px; font-size: 19px; letter-spacing: -.02em; }
.primary-action, .secondary-action { min-height: 42px; border-radius: 9px; padding: 0 16px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; font-weight: 700; text-decoration: none; }
.primary-action, .secondary-action, .nav-item { transition: transform 140ms var(--ease-out), background-color 140ms ease, border-color 140ms ease, color 140ms ease; }
.primary-action:active, .secondary-action:active, .nav-item:active { transform: scale(.97); }
.primary-action { border: 1px solid var(--teal); color: #fff; background: var(--teal); box-shadow: 0 7px 18px rgba(8,127,140,.18); }
.primary-action:hover { background: var(--teal-deep); }
.secondary-action { border: 1px solid var(--line-strong); background: var(--surface); }
.secondary-action:hover { border-color: var(--teal); color: var(--teal-deep); }
.primary-action svg, .link-button svg { width: 17px; height: 17px; }
.button-row { display: flex; gap: 9px; }
.overview-grid { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 18px; align-items: stretch; }
.overview-main { min-width: 0; }
.metric-strip { min-height: 88px; display: grid; grid-template-columns: repeat(4, 1fr); margin-bottom: 18px; background: var(--surface); border-block: 1px solid var(--line); }
.metric { position: relative; padding: 15px 20px; }
.metric + .metric::before { content: ""; position: absolute; left: 0; top: 20px; bottom: 20px; width: 1px; background: var(--line); }
.metric span, .metric small { display: block; color: var(--muted); font-size: 11px; }
.metric strong { display: block; margin: 3px 0 1px; font-size: 20px; letter-spacing: -.025em; font-variant-numeric: tabular-nums; }
.metric.teal strong { color: var(--teal); }
.status-metric strong { display: flex; align-items: center; gap: 8px; color: #547c0f; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; background: var(--faint); }
.status-dot.online, .status-dot.working { background: var(--lime); }
.status-dot.break { background: var(--orange); }
.status-dot.off { background: #9ba6ab; }
.timeline-panel, .panel, .wide-panel, .table-panel, .policy-hero, .policy-list { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.timeline-panel { position: relative; overflow: hidden; padding: 19px 20px 15px; }
.panel-title-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.panel-title-row h2, .panel h2, .rail-section h2, .wide-panel h2, .policy-list h2 { margin: 0; font-size: 15px; letter-spacing: -.015em; }
.panel-title-row p, .panel > p { margin: 2px 0 0; color: var(--muted); font-size: 11px; }
.now-badge { padding: 3px 7px; border-radius: 5px; color: var(--teal-deep); background: var(--teal-soft); font-size: 10px; font-weight: 700; }
.time-scale { display: grid; grid-template-columns: repeat(6, 1fr); margin: 20px 0 8px 118px; color: var(--faint); font-size: 9px; font-variant-numeric: tabular-nums; }
.time-scale span:last-child { text-align: right; }
.timeline { position: relative; min-height: 152px; }
.timeline::before { content: ""; position: absolute; inset: 0 0 0 116px; background: linear-gradient(90deg, transparent calc(20% - 1px), #e8edee calc(20% - 1px), #e8edee 20%, transparent 20%); background-size: 20% 100%; pointer-events: none; }
.lane { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 8px; min-height: 45px; align-items: center; }
.lane + .lane { margin-top: 4px; }
.lane-label { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; }
.lane-label svg { width: 16px; height: 16px; color: var(--muted); }
.lane-track { height: 30px; position: relative; overflow: hidden; background: #edf1f1; border-radius: 5px; }
.segment { position: absolute; top: 0; bottom: 0; display: flex; align-items: center; overflow: hidden; padding: 0 7px; font-size: 9px; white-space: nowrap; }
.segment.work { color: var(--teal-deep); background: #bfe2e5; border-block: 1px solid #78bec4; }
.segment.break { color: #6c5c3e; background: repeating-linear-gradient(135deg,#f3efe7,#f3efe7 4px,#ded7ca 4px,#ded7ca 5px); }
.segment.focus { color: #fff; background: var(--teal); }
.segment.idle { color: #5d686c; background: #d6dcde; }
.segment.online { color: #4d7014; background: var(--lime-soft); border-block: 1px solid #bddb7a; }
.playhead { position: absolute; z-index: 4; top: -18px; bottom: -4px; left: 46%; width: 1px; background: var(--navy); pointer-events: none; }
.playhead::after { content: ""; position: absolute; top: 17px; left: -3px; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); }
.playhead span { position: absolute; top: -3px; left: 50%; transform: translateX(-50%); padding: 2px 5px; border-radius: 4px; color: #fff; background: var(--navy); font-size: 9px; font-variant-numeric: tabular-nums; }
.timeline-legend { display: flex; gap: 17px; padding: 8px 0 0 118px; color: var(--muted); font-size: 9px; }
.legend-swatch { width: 10px; height: 6px; display: inline-block; margin-right: 5px; border-radius: 2px; }
.legend-swatch.work { background: #bfe2e5; }.legend-swatch.focus { background: var(--teal); }.legend-swatch.idle { background: #d6dcde; }.legend-swatch.online { background: var(--lime-soft); }
.support-grid { display: grid; grid-template-columns: 1fr 1.12fr; gap: 18px; margin-top: 18px; }
.panel { padding: 18px; }
.text-action { border: 0; padding: 0; cursor: pointer; color: var(--teal-deep); background: transparent; font-size: 11px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.apps-content { display: grid; grid-template-columns: 132px 1fr; gap: 20px; align-items: center; margin-top: 16px; }
.donut { width: 116px; aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; background: conic-gradient(var(--teal) 0 35%, var(--cyan) 35% 63%, #78bfd2 63% 86%, #d7dee0 86%); position: relative; }
.donut::after { content: ""; width: 60%; aspect-ratio: 1; border-radius: 50%; background: var(--surface); position: absolute; }
.donut span { z-index: 1; text-align: center; }
.donut strong, .donut small { display: block; }
.donut strong { font-size: 14px; }.donut small { color: var(--muted); font-size: 9px; }
.app-list { min-width: 0; }
.app-row { display: grid; grid-template-columns: 8px minmax(90px,1fr) auto; gap: 8px; align-items: center; padding: 5px 0; font-size: 11px; }
.app-row + .app-row { border-top: 1px solid #edf0f1; }
.app-color { width: 7px; height: 7px; border-radius: 2px; background: var(--teal); }
.app-row small { display: block; color: var(--muted); }
.app-row strong { font-variant-numeric: tabular-nums; font-weight: 600; }
.right-rail { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.rail-section { padding: 18px; }.rail-section + .rail-section { border-top: 1px solid var(--line); }.rail-section.grow { flex: 1; }
.summary-list { margin: 10px 0 0; }
.summary-list > div { display: flex; justify-content: space-between; gap: 20px; padding: 9px 0; border-bottom: 1px solid #edf0f1; }
.summary-list dt { color: var(--muted); }.summary-list dd { margin: 0; font-weight: 650; font-variant-numeric: tabular-nums; }.summary-list .good { color: #587d17; }
.incident-item { display: grid; grid-template-columns: 9px 1fr; gap: 9px; padding: 10px 0; }
.incident-item + .incident-item { border-top: 1px solid #edf0f1; }
.incident-item i { width: 8px; height: 8px; margin-top: 5px; border-radius: 50%; background: var(--orange); }
.incident-item strong, .incident-item small { display: block; }.incident-item strong { font-size: 11px; }.incident-item small { color: var(--muted); font-size: 9px; }
.privacy-note { display: flex; gap: 10px; padding: 16px 18px; color: var(--teal-deep); background: #eaf5f4; border-top: 1px solid #cce6e5; }
.privacy-note > svg { flex: 0 0 auto; }.privacy-note strong { font-size: 12px; }.privacy-note p { margin: 2px 0 5px; color: #46636a; font-size: 10px; }
.team-row { display: grid; grid-template-columns: minmax(0,1.4fr) .8fr .7fr; gap: 8px; align-items: center; padding: 7px 0; }
.team-row + .team-row { border-top: 1px solid #edf0f1; }
.person { display: flex; align-items: center; gap: 8px; min-width: 0; }.person-avatar { width: 25px; height: 25px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; color: #fff; background: var(--navy); font-size: 9px; font-weight: 700; }.person strong,.person small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.person strong{font-size:11px}.person small{font-size:9px;color:var(--muted)}
.person-state { font-size: 10px; }.person-time { text-align: right; font-size: 10px; font-variant-numeric: tabular-nums; }
.wide-panel { padding: 24px; }.calendar-date strong,.calendar-date span{display:block}.calendar-date strong{font-size:20px}.calendar-date span{color:var(--muted)}
.workday-track { height: 100px; position: relative; margin-top: 35px; background: linear-gradient(var(--teal-soft),var(--teal-soft)) no-repeat top / 100% 6px; }
.workday-track::before { content:"";position:absolute;left:0;top:0;width:58%;height:6px;background:var(--teal); }
.mark { position:absolute;top:-17px;padding-top:32px;color:var(--muted);font-size:11px; }.mark::before{content:"";position:absolute;top:6px;left:0;width:8px;height:8px;border-radius:50%;background:var(--teal);box-shadow:0 0 0 5px var(--surface)}.mark b{display:block;color:var(--ink);font-variant-numeric:tabular-nums}.mark.start{left:0}.mark.pause{left:44%}.mark.resume{left:49%}.mark.projected{right:0;text-align:right}.mark.projected::before{left:auto;right:0;background:var(--surface);border:2px solid var(--teal)}
.two-column,.activity-layout,.policy-columns { display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:18px; }
.body-copy { color:var(--muted);max-width:65ch;margin:10px 0 18px; }
.feature-panel { min-height:320px; }.bar-chart{height:220px;display:flex;align-items:flex-end;gap:18px;padding:28px 8px 0;border-bottom:1px solid var(--line)}.bar-column{height:100%;flex:1;display:flex;align-items:flex-end;position:relative}.bar-column i{width:100%;min-width:18px;display:block;background:var(--teal);border-radius:5px 5px 0 0}.bar-column span{position:absolute;left:50%;bottom:-24px;transform:translateX(-50%);font-size:10px;color:var(--muted)}.bar-column b{position:absolute;left:50%;transform:translate(-50%,-7px);font-size:10px}
.app-list.detailed .app-row { padding:10px 0;font-size:12px; }
.context-callout { margin-top:18px;display:flex;gap:14px;padding:20px 22px;border:1px solid #b8d8d8;border-radius:var(--radius);background:#eaf5f4 }.context-callout svg{color:var(--teal);flex:0 0 auto}.context-callout strong{font-size:14px}.context-callout p{margin:3px 0 0;color:#49666b;max-width:75ch}
.table-panel { overflow-x:auto; }.table-panel table{width:100%;border-collapse:collapse;min-width:720px}.table-panel th,.table-panel td{padding:14px 16px;text-align:left;border-bottom:1px solid #e8edee}.table-panel th{color:var(--muted);background:#f8faf9;font-size:10px;text-transform:uppercase;letter-spacing:.045em}.table-panel td{font-size:12px}.table-panel tbody tr:last-child td{border-bottom:0}.status-text{display:inline-flex;align-items:center;gap:7px}.status-text i{width:7px;height:7px;border-radius:50%;background:var(--lime)}
.device-grid { display:grid;grid-template-columns:repeat(3,1fr);gap:14px }.device-card{padding:17px;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface)}.device-card-header{display:flex;justify-content:space-between;gap:12px}.device-card svg{color:var(--teal)}.device-card h3{margin:12px 0 2px;font-size:14px}.device-card p{margin:0;color:var(--muted);font-size:11px}.device-meta{display:flex;justify-content:space-between;margin-top:14px;padding-top:12px;border-top:1px solid #edf0f1;color:var(--muted);font-size:10px}
.policy-hero { padding:36px;text-align:center }.policy-hero>div{width:52px;height:52px;display:grid;place-items:center;margin:0 auto 14px;border-radius:50%;color:var(--teal);background:var(--teal-soft)}.policy-hero>div svg{width:27px;height:27px}.policy-hero h2{margin:0;font-size:26px;letter-spacing:-.03em}.policy-hero>p{max-width:68ch;margin:8px auto 24px;color:var(--muted)}.policy-hero dl{display:grid;grid-template-columns:repeat(3,1fr);max-width:620px;margin:0 auto}.policy-hero dl div+div{border-left:1px solid var(--line)}.policy-hero dt{color:var(--muted);font-size:10px}.policy-hero dd{margin:4px 0 0;font-weight:700}
.policy-list { padding:22px }.policy-list h2{font-size:18px}.policy-list ul{list-style:none;margin:15px 0 0;padding:0}.policy-list li{position:relative;padding:10px 0 10px 28px;border-top:1px solid #edf0f1}.policy-list li::before{position:absolute;left:2px;top:10px;width:18px;height:18px;display:grid;place-items:center;border-radius:50%;font-size:11px;font-weight:700}.policy-list.allowed li::before{content:"✓";color:#527818;background:var(--lime-soft)}.policy-list.forbidden li::before{content:"×";color:#a13b35;background:#f7dfdc}
.excluded-list{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}.excluded-list span{padding:6px 10px;border:1px solid var(--line);border-radius:7px;background:#f7f9f9;font-size:11px}
.icon-button { width:40px;height:40px;display:grid;place-items:center;border:0;border-radius:8px;background:transparent;cursor:pointer }.scrim{display:none}.toast{position:fixed;right:22px;bottom:22px;z-index:40;max-width:360px;padding:12px 16px;border-radius:10px;color:#fff;background:var(--navy);box-shadow:var(--shadow);opacity:0;transform:translateY(12px);pointer-events:none;transition:transform 180ms var(--ease-out),opacity 140ms ease}.toast.visible{opacity:1;transform:none}.toast.error{background:#8f322d}

@media (max-width: 1180px) {
  :root{--sidebar:184px}.overview-grid{grid-template-columns:1fr}.right-rail{display:grid;grid-template-columns:1fr 1fr}.rail-section.grow{border-top:0;border-left:1px solid var(--line)}.privacy-note{grid-column:1/-1}.support-grid{grid-template-columns:1fr 1fr}.metric{padding-inline:14px}.device-grid{grid-template-columns:repeat(2,1fr)}
}
@media (max-width: 860px) {
  .app-shell{display:block}.sidebar{position:fixed;left:0;top:0;width:250px;transform:translateX(-102%);transition:transform 220ms var(--ease-drawer);box-shadow:var(--shadow)}.sidebar.open{transform:none}.scrim{position:fixed;inset:0;z-index:18;background:rgba(9,26,34,.36)}.scrim.visible{display:block}.icon-button.menu-button{display:grid}.topbar{padding:0 18px;justify-content:flex-start}.topbar-context{flex:1}.profile span:not(.avatar){display:none}main{padding:22px 18px 38px}.metric-strip{grid-template-columns:1fr 1fr}.metric:nth-child(3)::before{display:none}.support-grid,.two-column,.activity-layout,.policy-columns{grid-template-columns:1fr}.device-grid{grid-template-columns:1fr 1fr}.timeline-panel{padding-inline:14px}.time-scale{margin-left:94px}.timeline::before{inset:0 0 0 92px}.lane{grid-template-columns:86px 1fr}.lane-label{font-size:10px}.timeline-legend{padding-left:94px;flex-wrap:wrap}.overview-grid{display:block}.right-rail{margin-top:18px}.page-heading{align-items:flex-start}.apps-content{grid-template-columns:120px 1fr}
}
@media (max-width: 590px) {
  .topbar{height:54px}.topbar-context #todayLabel{display:none}.topbar-separator{display:none}.profile{margin-left:auto}main{padding:18px 14px 34px}.page-heading{display:grid;gap:14px}.page-heading .primary-action,.button-row{width:100%}.button-row>*{flex:1}.metric-strip{grid-template-columns:1fr 1fr}.metric{min-height:85px;padding:13px}.metric strong{font-size:17px}.metric:nth-child(odd)::before{display:none}.timeline-panel{overflow-x:auto}.panel-title-row{min-width:0}.time-scale,.timeline,.timeline-legend{min-width:620px}.apps-content{grid-template-columns:1fr}.donut{margin:auto}.right-rail{display:block}.rail-section.grow{border-left:0;border-top:1px solid var(--line)}.support-grid{grid-template-columns:1fr}.team-row{grid-template-columns:1fr auto}.person-time{display:none}.device-grid{grid-template-columns:1fr}.policy-hero{padding:26px 18px}.policy-hero h2{font-size:22px}.policy-hero dl{grid-template-columns:1fr;gap:12px}.policy-hero dl div+div{border-left:0;border-top:1px solid var(--line);padding-top:10px}.toast{left:14px;right:14px;bottom:14px}.topbar-context{gap:8px}.demo-flag{font-size:9px}.workday-track{margin-inline:4px}.mark{font-size:9px}.mark.pause{left:38%}.mark.resume{left:53%}
}
@media (prefers-reduced-motion: reduce) { .sidebar,.toast,.primary-action,.secondary-action,.nav-item{transition:opacity 140ms ease,background-color 140ms ease,color 140ms ease}.primary-action:active,.secondary-action:active,.nav-item:active{transform:none} }
