@font-face {
  font-family: Inter;
  src: url("./quote-inter.woff2") format("woff2");
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --navy: #061e30;
  --deep: #051827;
  --ocean: #082f49;
  --aqua: #7dd3fc;
  --ink: #f8fafc;
  --muted: #c7dce9;
  --line: #38566b;
  --input: #0b273d;
  --input-border: #7895aa;
  --panel: #102e44;
  --success: #9bf0c8;
  --pending: #ffcf9f;
  --coral: #fda4af;
  --sidebar: 244px;
  --radius: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--ink);
  background: radial-gradient(ellipse at 54% 0%, var(--ocean), transparent 44rem), var(--navy);
  font: 16px/1.55 Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
}
button, input, select, textarea { font: inherit; }
button, a { touch-action: manipulation; }
button { cursor: pointer; }
button:disabled { opacity: .55; cursor: not-allowed; }
a { color: var(--aqua); text-underline-offset: 4px; }
:focus-visible { outline: 3px solid var(--aqua); outline-offset: 3px; }
::selection { color: #fff; background: #0369a1; }
[hidden] { display: none !important; }
#main:focus { outline: none; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(2rem, 3.8vw, 3.55rem); line-height: 1.08; font-weight: 800; letter-spacing: -.045em; text-wrap: balance; }
h2 { font-size: clamp(1.2rem, 2.4vw, 1.5rem); line-height: 1.25; letter-spacing: -.025em; font-weight: 720; }
h3 { font-size: 1.08rem; margin-bottom: 9px; }
p { max-width: 68ch; text-wrap: pretty; }
small { font-size: .875rem; }
.muted, .disclosure { color: var(--muted); }
.disclosure { font-size: .875rem; }
.eyebrow { font-size: .8rem; letter-spacing: .12em; font-weight: 700; text-transform: uppercase; }
.skip { position: fixed; top: -100px; left: 20px; padding: 12px 16px; z-index: 10; background: #e0f2fe; color: var(--navy); border-radius: 8px; }
.skip:focus { top: 10px; }

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  width: var(--sidebar);
  padding: 24px 18px;
  overflow-y: auto;
  background: var(--deep);
  border-right: 1px solid var(--line);
}
.wordmark { display: inline-flex; align-items: center; gap: 9px; color: #e0f2fe; text-decoration: none; font-weight: 760; font-size: 1rem; }
.wordmark img { display: block; width: 45px; height: auto; flex: none; }
.side-label { font-size: .71rem; letter-spacing: .13em; color: var(--muted); margin: 31px 0 10px 12px; }
.sidebar nav { display: grid; gap: 5px; scrollbar-width: thin; scrollbar-color: var(--input-border) transparent; }
.sidebar nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-height: 44px;
  padding: 9px 12px;
  border-radius: 9px;
  color: var(--muted);
  text-decoration: none;
  font-size: .91rem;
  transition: background-color .2s ease, color .2s ease;
}
.sidebar nav a:hover, .sidebar nav a.active { background: #143e58; color: var(--ink); }
.sidebar nav a.active { box-shadow: inset 3px 0 var(--aqua); font-weight: 700; }
#nav-count { color: #e0f2fe; padding: 0 6px; border-radius: 999px; background: #1b4b69; font-size: .75rem; }
.side-bottom { margin-top: auto; padding: 26px 10px 0; }
.side-bottom p { margin: 11px 0; }
.side-bottom small { display: block; color: var(--muted); }
.pilot-label { color: var(--aqua); font-size: .75rem; letter-spacing: .12em; }
.shell { margin-left: var(--sidebar); }
.topbar {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 36px;
  background: rgba(6, 30, 48, .8);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}
.connection-state { font-size: .875rem; color: var(--success); }
main { padding: 28px 36px 48px; max-width: 1500px; margin: auto; }
footer { padding: 18px 36px; border-top: 1px solid var(--line); color: var(--muted); font-size: .875rem; }

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 242px;
  margin-bottom: 24px;
  padding: clamp(24px, 4vw, 43px);
  border: 1px solid #3f647b;
  border-radius: 22px;
  background: radial-gradient(ellipse at 15% 0%, #104666, transparent 75%), var(--ocean);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0 0 0 50%;
  z-index: -1;
  opacity: .22;
  mask-image: linear-gradient(90deg, transparent, black 58%);
  background: url("./quote-reef.webp") center 42% / cover no-repeat;
}
.hero-copy { min-width: 0; }
.hero .eyebrow { margin-bottom: 14px; color: var(--aqua); }
.hero h1 { margin: 0 0 14px; }
.hero h1 span {
  color: var(--aqua);
  background: linear-gradient(115deg, #e0f2fe, #7dd3fc 65%, #38bdf8);
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p { margin: 0; color: var(--muted); }
.hero-logo { display: block; flex: none; width: clamp(105px, 16vw, 192px); height: auto; filter: drop-shadow(0 12px 22px #051827); }
.section-head { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; margin: 14px 0 20px; }
.section-head h1 { font-size: clamp(2rem, 3.4vw, 2.9rem); margin-bottom: 10px; text-wrap: initial; }
.section-head p { margin-bottom: 0; }
.grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(285px, 1fr); gap: 24px; }
.grid > * { min-width: 0; }
.panel, dialog {
  min-width: 0;
  padding: 25px;
  margin-bottom: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(136deg, #163851, var(--panel) 67%);
  color: var(--ink);
  box-shadow: 0 15px 28px rgba(0, 0, 0, .16);
}
.panel > h2 { margin-bottom: 14px; }
.panel.dark { background: linear-gradient(140deg, #124361, #0b2a41 75%); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.panel-head h2 { margin-bottom: 0; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 17px; }
.button, .shortcuts button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 17px;
  border: 1px solid #6b899d;
  border-radius: 999px;
  background: #1c435e;
  color: var(--ink);
  text-decoration: none;
  text-align: center;
  font-weight: 650;
  transition: box-shadow .2s ease, background-color .2s ease;
}
.button:hover:not(:disabled), .shortcuts button:hover { background-color: #295a7a; box-shadow: 0 0 0 2px #38bdf855; }
.button.primary { background: linear-gradient(135deg, #08618d, #1648a1); border-color: #4989c7; }
.button.coral { background: linear-gradient(135deg, #a21c49, #8a143a); border-color: #e982a1; }
.button.small { min-height: 40px; padding: 7px 13px; font-size: .9rem; }
.inline-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 22px; }
.stat { padding: 14px 17px; border: 1px solid var(--line); border-radius: 13px; background: #102f45; }
.stat strong { display: block; font-size: 2rem; color: var(--aqua); font-weight: 740; line-height: 1.12; font-variant-numeric: tabular-nums; }
.stat span { display: block; margin-top: 6px; font-size: .87rem; color: var(--muted); }

.attention, .notice { margin: 17px 0; padding: 12px 15px; border-radius: 9px; }
.attention { border-left: 3px solid var(--pending); background: #3d2933; color: var(--pending); }
.notice { border-left: 3px solid var(--success); background: #103b3f; color: var(--success); }
.notice small { display: block; }
.empty { padding: 22px 3px; }
.empty h3 { font-size: 1.3rem; }
.job-row { display: flex; align-items: center; justify-content: space-between; gap: 13px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.job-row:last-child { border: 0; }
.job-row h3 { margin-bottom: 4px; overflow-wrap: anywhere; }
.job-row p, .job-id { color: var(--muted); font-size: .875rem; }
.job-row p { margin: 0; overflow-wrap: anywhere; }
.job-row .button { flex-shrink: 0; }
.job-id { font-weight: 650; letter-spacing: .04em; }
.state-text { display: block; margin-top: 5px; color: var(--pending); font-size: .9rem; font-weight: 650; }
.state-text.good { color: var(--success); }
.command-input { display: flex; gap: 9px; margin: 13px 0; }
.shortcuts { display: flex; gap: 8px; flex-wrap: wrap; margin: 13px 0; }
.shortcuts button { padding: 7px 12px; min-height: 40px; font-size: .86rem; }
.command-response { white-space: pre-wrap; border-top: 1px solid var(--line); padding-top: 15px; margin-top: 17px; font-size: .95rem; }
.connect-row { display: flex; justify-content: space-between; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.connect-row:last-child { border: 0; }
.connect-row span:last-child { color: var(--muted); text-align: right; }
.connect-row span.status-ready { color: var(--success); font-weight: 650; }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; }
.form-grid .full { grid-column: 1 / -1; }
label { display: block; margin-bottom: 6px; font-size: .94rem; font-weight: 650; }
label small { font-weight: 400; color: var(--muted); }
input, textarea, select {
  width: 100%;
  min-width: 0;
  min-height: 45px;
  padding: 9px 12px;
  border: 1px solid var(--input-border);
  border-radius: 10px;
  background: var(--input);
  color: var(--ink);
}
input::placeholder, textarea::placeholder { color: #abc3d5; opacity: 1; }
input[type=checkbox] { width: 18px; height: 18px; min-height: 0; margin: 0; accent-color: var(--aqua); }
input[type=file] { padding: 6px; }
::file-selector-button { margin-inline-end: 8px; padding: 6px 11px; border: 0; border-radius: 999px; background: #c9edff; color: var(--ocean); font: inherit; font-size: .87rem; font-weight: 700; cursor: pointer; }
.checkline { display: flex; align-items: center; gap: 10px; font-weight: 500; }
textarea { resize: vertical; }
.step-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 20px; }
.step-nav span { flex: 1; padding: 8px; border-bottom: 2px solid var(--line); color: var(--muted); }
.step-nav .current { border-color: var(--aqua); color: var(--aqua); font-weight: 700; }
.step-title { margin-bottom: 20px; }
.summary-line { display: flex; justify-content: space-between; gap: 13px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.summary-line span { color: var(--muted); }
.summary-line strong { text-align: right; font-weight: 650; overflow-wrap: anywhere; }
.body-copy { white-space: pre-wrap; overflow-wrap: anywhere; }
.readiness { display: grid; list-style: none; margin: 16px 0; padding: 0; }
.readiness li { position: relative; padding: 0 0 17px 19px; margin-left: 6px; border-left: 2px solid var(--line); }
.readiness li:last-child { border-color: transparent; }
.readiness li::before { content: ""; position: absolute; width: 12px; height: 12px; border: 2px solid var(--input-border); border-radius: 50%; left: -7px; top: 6px; background: var(--input); }
.readiness li.done::before { background: var(--success); border-color: var(--success); }
.readiness li.active::before { background: var(--pending); border-color: var(--pending); }
.readiness b { display: block; font-weight: 650; }
.readiness small { color: var(--muted); }
.photo-strip { display: flex; gap: 12px; flex-wrap: wrap; margin: 14px 0; }
.photo-strip img { width: 104px; height: 86px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.photo-strip a { display: grid; max-width: 104px; font-size: .8rem; overflow-wrap: anywhere; }
.timeline { padding: 0; list-style: none; }
.timeline li, .vendor, .playbook-item { padding: 13px 0; border-bottom: 1px solid var(--line); }
.timeline time { display: block; color: var(--muted); font-size: .85rem; }
.timeline p, .vendor p { margin: 5px 0; font-size: .95rem; overflow-wrap: anywhere; }
.vendor p { color: var(--muted); }
.playbook-item h3 { margin-bottom: 6px; }
.code { padding: 12px; border-radius: 8px; background: var(--input); color: #e0f2fe; font: .88rem/1.55 Consolas, monospace; overflow-wrap: anywhere; }
.top-link { display: inline-block; margin-bottom: 10px; }
.website-intake dl { display: grid; grid-template-columns: minmax(105px, 1fr) minmax(0, 2fr); gap: 9px 14px; }
.website-intake dt { font-weight: 700; }
.website-intake dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
[data-space="18"] { margin-top: 18px; }
[data-space="20"] { margin-top: 20px; }
[data-space="22"] { margin-top: 22px; }
.mobile-readiness { display: none; }

.calendar-toolbar, .calendar-controls, .calendar-legend { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.calendar-toolbar { margin-bottom: 14px; gap: 12px; }
.calendar-toolbar h2 { margin: 0 auto 0 0; }
.calendar-controls .button { min-width: 40px; padding-inline: 10px; }
.calendar-market { display: flex; align-items: center; gap: 7px; margin: 0; }
.calendar-market select { width: auto; }
.calendar-legend { margin-bottom: 14px; gap: 8px 18px; font-size: .85rem; color: var(--muted); }
.calendar-legend span, .calendar-dots { display: flex; align-items: center; gap: 5px; }
.calendar-legend i, .calendar-dots i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; }
.calendar-confirmed { background: #73dda8; }
.calendar-proposed { background: #ffb968; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.calendar-weekday { text-align: center; color: var(--muted); font-size: .78rem; padding-top: 2px; }
.calendar-day {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2px;
  width: 100%;
  min-height: 70px;
  padding: 6px;
  border: 1px solid #496f87;
  border-radius: 8px;
  background: var(--input);
  color: var(--ink);
  text-align: left;
  font-size: .86rem;
}
.calendar-day:hover { background: #194965; }
.calendar-day strong { color: #dcf1ff; font-size: .81rem; }
.calendar-day[aria-current="date"] > span:first-child { font-weight: 800; text-decoration: underline; }
.calendar-day[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--aqua); background: #184b6b; }
.calendar-day:focus-visible { outline-offset: 1px; z-index: 1; }

#toast { position: fixed; z-index: 20; right: 18px; bottom: 18px; max-width: min(440px, calc(100vw - 36px)); padding: 13px 17px; border: 1px solid var(--line); border-radius: 12px; background: var(--deep); color: var(--ink); box-shadow: 0 10px 30px #0006; opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .2s ease, transform .2s ease; }
#toast.show { opacity: 1; transform: translateY(0); }
dialog { width: min(620px, calc(100% - 32px)); margin: auto; }
dialog::backdrop { background: #051827c7; backdrop-filter: blur(4px); }
.dialog-head { display: flex; justify-content: space-between; gap: 14px; }
.icon-button { width: 42px; height: 42px; flex-shrink: 0; background: #1c435e; color: var(--ink); border: 1px solid var(--input-border); border-radius: 50%; font-size: 1.35rem; }
.inline-error, #intake-error:not(:empty), .login-panel [role="alert"] { padding: 12px; border-radius: 8px; background: #402636; color: var(--coral); }
.login-panel { max-width: 440px; margin: clamp(20px, 11vh, 100px) auto; padding: 27px; width: calc(100% - 32px); }
.login-panel .wordmark { margin-bottom: 16px; }
.login-panel h1 { text-wrap: initial; }
details { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 17px; }
summary { cursor: pointer; font-weight: 650; min-height: 44px; }
ul { padding-left: 21px; }
li { margin-bottom: 6px; }

@media (max-width: 1080px) {
  :root { --sidebar: 211px; }
  .sidebar { padding-inline: 12px; }
  .grid { grid-template-columns: 1fr; }
  main, .topbar, footer { padding-inline: 24px; }
}
@media (max-width: 680px) {
  .sidebar { position: relative; display: block; width: auto; padding: 12px 14px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .wordmark img { width: 37px; }
  .side-label, .side-bottom { display: none; }
  .sidebar nav { display: flex; gap: 5px; overflow-x: auto; margin-top: 9px; padding: 4px 4px 7px; }
  .sidebar nav a { flex: none; padding: 7px 10px; white-space: nowrap; }
  .shell { margin-left: 0; }
  .topbar { min-height: 48px; gap: 5px 11px; padding: 8px 14px; flex-wrap: wrap; font-size: .85rem; }
  .connection-state { font-size: .79rem; }
  main, footer { padding-inline: 14px; }
  main { padding-top: 15px; }
  .hero { min-height: 0; padding: 20px 17px; gap: 8px; border-radius: 15px; }
  .hero .eyebrow { margin-bottom: 8px; font-size: .71rem; }
  .hero h1 { font-size: clamp(1.65rem, 6.2vw, 2.55rem); margin-bottom: 8px; text-wrap: initial; }
  .hero p { font-size: .89rem; }
  .hero-logo { width: clamp(55px, 16vw, 110px); }
  .section-head { flex-wrap: wrap; gap: 12px; }
  .panel, dialog { padding: 16px; border-radius: 13px; }
  .grid { gap: 0; }
  .inline-stats { gap: 6px; }
  .stat { padding: 8px 7px; }
  .stat strong { font-size: 1.52rem; }
  .stat span { font-size: .75rem; }
  .form-grid { grid-template-columns: 1fr; }
  .command-input { flex-wrap: wrap; }
  .command-input .button { width: 100%; }
  .actions .button { flex: 1 1 100%; }
  .job-row:not(.calendar-agenda .job-row) { display: block; }
  .job-row:not(.calendar-agenda .job-row) .button { margin-top: 9px; }
  .connect-row { flex-wrap: wrap; gap: 4px; }
  .connect-row span:last-child { text-align: left; }
  .step-nav span { font-size: .82rem; }
  .mobile-readiness { display: block; }
  .calendar-panel { padding: 12px; }
  .calendar-day { min-height: 52px; align-items: center; padding: 4px 0; }
  .calendar-count-label { display: none; }
}
@media (max-width: 360px) {
  .calendar-agenda .job-row { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
@media (forced-colors: active) {
  .hero h1 span { -webkit-text-fill-color: currentColor; }
  .calendar-day[aria-pressed="true"] { outline: 2px solid Highlight; outline-offset: -2px; }
}
