:root {
  color-scheme: light;
  --ink: #211b39;
  --muted: #625b74;
  --background: #f5f3fa;
  --line: #e5e0ef;
  --purple: #5532ac;
  --working: #e5dbfa;
  --shared: #5e3ab5;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--background);
  line-height: 1.5;
}
* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
.shell { width: min(1280px, calc(100% - 64px)); margin-inline: auto; }
.top { background: #211b47; color: #fff; overflow: hidden; }
.nav { min-height: 65px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #ffffff23; position: relative; z-index: 1; }
.wordmark { color: inherit; font-weight: 760; font-size: 1.17rem; display: inline-flex; gap: .7rem; align-items: center; text-decoration: none; letter-spacing: -.025em; }
.mark { position: relative; display: inline-block; width: 26px; height: 23px; }
.mark i { position: absolute; width: 18px; height: 18px; top: 2px; border: 2px solid #d3c2ff; border-radius: 50%; }
.mark i:last-child { left: 8px; background: #d3c2ff58; }
.nav-link { color: #e3daf9; font-size: .9rem; text-underline-offset: 4px; }
.intro { position: relative; padding: 49px 0 60px; isolation: isolate; }
.intro h1 { max-width: 800px; font-size: clamp(2.35rem, 6vw, 4.35rem); line-height: .99; letter-spacing: -.068em; font-weight: 790; margin: 0 0 21px; }
.intro p { color: #e4dcf5; font-size: 1.07rem; max-width: 460px; margin: 0; }
.orbit { position: absolute; inset: 0 0 0 auto; width: 45%; z-index: -1; transform: rotate(-19deg); pointer-events: none; }
.orbit i { position: absolute; border: 1px solid #c8acff54; width: 80%; aspect-ratio: 2.2; top: 5%; left: 8%; border-radius: 50%; }
.orbit i:nth-child(2) { top: 23%; }
.orbit i:nth-child(3) { top: 41%; }
.orbit i:nth-child(4) { top: 59%; }
.workspace { position: relative; display: grid; grid-template-columns: 300px minmax(0, 1fr); align-items: start; gap: 18px; margin-top: -22px; }
.panel { min-width: 0; border: 1px solid var(--line); background: white; padding: 23px; border-radius: 16px; box-shadow: 0 6px 28px #2e16690b; }
h2, h3, p { margin: 0; }
h2 { font-size: 1.3rem; line-height: 1.25; letter-spacing: -.025em; }
h3 { font-size: .98rem; font-weight: 730; line-height: 1.3; }
.settings { display: grid; gap: 13px; margin-top: 17px; }
label { display: grid; gap: 5px; font-size: .87rem; font-weight: 650; color: #4c4363; }
input, select, button { font: inherit; }
input, select { border: 1px solid #d9d1e7; color: var(--ink); background-color: #fff; border-radius: 8px; min-height: 40px; padding: 7px 10px; width: 100%; min-width: 0; }
select { appearance: none; padding-right: 27px; background-image: linear-gradient(45deg, transparent 50%, #665b79 50%), linear-gradient(135deg, #665b79 50%, transparent 50%); background-position: calc(100% - 13px) 53%, calc(100% - 8px) 53%; background-size: 5px 5px; background-repeat: no-repeat; }
button, a, input, select, [tabindex] { outline-offset: 3px; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, [tabindex]:focus-visible { outline: 2px solid #8f61e7; }
button { border: 0; cursor: pointer; min-height: 40px; padding: 7px 13px; border-radius: 8px; font-size: .875rem; font-weight: 680; }
button:disabled { cursor: default; opacity: .52; }
.section-heading { display: flex; gap: 5px; justify-content: space-between; align-items: center; margin: 21px 0 9px; }
.section-heading span { color: var(--muted); font-size: .82rem; white-space: nowrap; }
.city { background: #f8f6fc; border: 1px solid #eee9f6; padding: 9px; border-radius: 10px; margin-bottom: 8px; }
.city-name { display: flex; gap: 6px; align-items: center; }
.city-name > label { flex: 1; min-width: 0; }
.remove { padding: 0; width: 33px; flex-shrink: 0; background: transparent; color: var(--muted); font-size: 1.2rem; }
.remove:not(:disabled):hover, .secondary:hover { background: #f2ecfc; }
.hours { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 7px; }
.add { background: #f0e9fc; color: #462691; width: 100%; font-size: .92rem; }
.add:hover:not(:disabled), .slot:hover { background: #e9defa; }
.add span { font-size: 1.08rem; margin-right: .15rem; }
.setup-note { color: var(--muted); font-size: .87rem; margin-top: 11px; }
.results-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.results-top p { color: var(--muted); font-size: .9rem; margin-top: 4px; }
.secondary { background: white; border: 1px solid #d9cee9; color: #4a2d83; white-space: nowrap; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 20px 0 10px; font-size: .86rem; color: var(--muted); }
.legend span { display: inline-flex; gap: 6px; align-items: center; }
.swatch { display: inline-block; width: 11px; height: 11px; border-radius: 3px; background: var(--working); }
.swatch.shared { background: var(--shared); }
.timeline-scroll { overflow-x: auto; padding-bottom: 6px; }
.timeline { min-width: max-content; display: grid; grid-template-columns: 106px repeat(var(--columns), minmax(25px, 1fr)); gap: 3px; align-items: center; }
.chart-label { font-size: .83rem; padding-right: 3px; font-weight: 690; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hour { font-variant-numeric: tabular-nums; text-align: center; color: var(--muted); font-size: .75rem; }
.cell { height: 26px; background: #f1eef6; border-radius: 4px; }
.cell.working { background: var(--working); }
.cell.shared { background: var(--shared); }
.cell.active { outline: 2px solid #24144d; outline-offset: -2px; }
.cell.shared.active { outline-color: #dccaff; outline-offset: -3px; }
.slots-title { display: flex; gap: 6px 18px; flex-wrap: wrap; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--line); padding-top: 17px; margin-top: 15px; }
.slots-title p { color: var(--muted); font-size: .87rem; }
.slots { display: flex; gap: 7px; margin-top: 10px; flex-wrap: wrap; }
.slot { background: #f2ecfc; border: 1px solid #e5dbf5; color: #482784; font-variant-numeric: tabular-nums; }
.slot[aria-pressed="true"] { background: var(--shared); color: white; border-color: var(--shared); }
.selection { margin-top: 17px; border: 1px solid #e8e0f3; border-radius: 11px; background: #faf7ff; padding: 14px; }
.selected-times { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 122px), 1fr)); gap: 8px 14px; margin: 0; }
.selected-times div { min-width: 0; }
.selected-times dt { font-size: .83rem; color: var(--muted); }
.selected-times dd { color: var(--ink); font-size: 1rem; margin: 0; font-weight: 710; }
.selected-times small { display: block; font-size: .8rem; color: var(--muted); font-weight: 500; }
.export { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.primary { color: white; background: var(--purple); }
.primary:hover { background: #432587; }
.status { color: #4a2d83; font-size: .88rem; }
.status:not(:empty) { margin-top: 8px; }
.empty, .notice { color: var(--muted); padding: 9px 0; }
.guide { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; padding: 33px 0 28px; }
.guide p { color: var(--muted); margin-top: 7px; }
.footer { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--muted); font-size: .9rem; border-top: 1px solid var(--line); padding: 17px 0 24px; }
.footer a { color: var(--purple); text-underline-offset: 3px; }
@media (max-width: 950px) { .shell { width: calc(100% - 42px); } .workspace { grid-template-columns: 256px minmax(0, 1fr); } .panel { padding: 17px; } }
@media (max-width: 690px) { .shell { width: calc(100% - 30px); } .intro { padding: 36px 0 49px; } .orbit { opacity: .46; width: 58%; } .workspace, .guide { grid-template-columns: 1fr; } .settings { grid-template-columns: 1fr 1fr; } .guide { gap: 17px; padding-top: 24px; } }
@media (max-width: 390px) { .settings { grid-template-columns: 1fr; } .results-top { flex-direction: column; } }
