:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  --base: #0c0e13;
  --panel: #12151d;
  --panel-high: #181d27;
  --line: #2b3240;
  --text: #f4f6fb;
  --muted: #aab3c3;
  --blue: #6791ff;
  --blue-solid: #3266e9;
  --blue-hover: #2456d7;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--text); background: var(--base); }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--blue); }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
button:disabled { cursor: default; opacity: .5; }
:focus-visible { outline: 2px solid #8faaff; outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.035em; }
small { color: var(--muted); font-size: .8125rem; }
code { font: .875rem ui-monospace, monospace; color: var(--muted); }
.sr-only, .skip:not(:focus) {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip:focus { position: fixed; inset: 1rem auto auto 1rem; z-index: 2; background: var(--base); padding: .75rem; }
.muted { color: var(--muted); }
.preline { white-space: pre-line; overflow-wrap: anywhere; }
.wrap { overflow-wrap: anywhere; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem; }
.button {
  display: inline-flex; justify-content: center; align-items: center; min-height: 2.625rem; padding: .58rem .95rem;
  border: 1px solid transparent; border-radius: .6rem; white-space: nowrap; font-weight: 650; font-size: .9375rem;
  line-height: 1.35; transition: background .16s, border-color .16s;
}
.button.primary { background: var(--blue-solid); color: #fff; }
.button.primary:hover { background: var(--blue-hover); color: #fff; }
.button.secondary { background: var(--panel-high); border-color: var(--line); color: var(--text); }
.button.secondary:hover { background: #202a3b; border-color: #56627b; }
.button.small { font-size: .875rem; min-height: 2.375rem; padding: .45rem .75rem; }
.button.large { padding: .78rem 1.2rem; min-height: 3.05rem; }
button[aria-disabled="true"] { opacity: .55; cursor: default; }
.wordmark { object-fit: contain; width: 4.15rem; height: auto; }

.marketing { background: #08090b; }
.frame { width: min(100% - 5rem, 76rem); margin-inline: auto; }
.public-header {
  height: 5.35rem; display: flex; justify-content: space-between; align-items: center;
  border-bottom: 1px solid #20232b;
}
.public-header nav { display: flex; gap: 1.6rem; align-items: center; font-size: .9375rem; }
.hero { display: grid; grid-template-columns: 1.02fr 1fr; align-items: center; gap: clamp(1.5rem, 5vw, 4.5rem); padding-block: 4rem 4.75rem; }
.hero-copy { position: relative; z-index: 1; }
.eyebrow {
  color: #97afff; text-transform: uppercase; font-size: .875rem; font-weight: 700;
  letter-spacing: .13em; margin-bottom: 1rem;
}
.hero h1 { font-size: clamp(3.1rem, 6.4vw, 6.25rem); line-height: .98; letter-spacing: -.08em; max-width: 8ch; }
.hero .intro { max-width: 29rem; margin: 1.45rem 0 1.8rem; color: #bcc4d5; font-size: clamp(1.03rem, 2vw, 1.25rem); }
.hero-visual { position: relative; }
.hero-visual::before { content: ""; position: absolute; inset: 12% 8%; background: #2545da; filter: blur(75px); opacity: .36; }
.hero-visual img { position: relative; border-radius: 1.15rem; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border: 1px solid #343d5b; }
.options { padding-block: 3.5rem 4.25rem; border-top: 1px solid #20232b; }
.options h2 { font-size: clamp(2rem, 4.5vw, 3.25rem); margin-bottom: 1.65rem; }
.options-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.option { border: 1px solid #262d3d; background: linear-gradient(135deg, #171c2a, #11131b); border-radius: 1rem; padding: 1.5rem; }
.option-icon { display: inline-grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: .55rem; background: #20315d; color: #c2d0ff; }
.option h3 { margin: .95rem 0 .45rem; font-size: 1.4rem; }
.option p { color: var(--muted); max-width: 38ch; }
.public-footer { display: grid; grid-template-columns: 1fr auto; gap: .75rem; align-items: center; border-top: 1px solid #20232b; padding-block: 1.5rem 2rem; color: var(--muted); font-size: .875rem; }
.public-footer .wordmark { width: 3.05rem; }
.copyright { color: var(--muted); font-size: .8125rem; }
.public-footer .copyright { grid-column: 1 / -1; text-align: center; }
.profile-footer { text-align: center; }
.unavailable-footer { margin-top: 1rem; }
.staff-footer { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.public-phone { color: var(--text); font-size: 1rem; text-decoration: underline; text-underline-offset: .2em; }

.profile { min-height: 100vh; background: radial-gradient(ellipse at 50% 0, #1f2d52, transparent 62%), #0a0d14; }
.profile-wrap { width: min(100% - 2rem, 29rem); margin: 0 auto; padding: clamp(2rem, 8vh, 5rem) 0 2rem; }
.profile-card { display: grid; justify-items: center; gap: 1rem; padding: 2rem 1.25rem; text-align: center; background: var(--panel); border: 1px solid var(--line); border-radius: 1.1rem; }
.profile-image { width: 7rem; height: 7rem; border: 2px solid #5875bf; border-radius: 50%; object-fit: cover; }
.profile-image.fallback { display: grid; place-items: center; color: #c4d2fc; background: #24355d; font-size: 1.75rem; font-weight: 700; }
.profile-card h1 { font-size: clamp(1.8rem, 7vw, 2.6rem); overflow-wrap: anywhere; max-width: 100%; }
.profile-role { color: var(--muted); margin-top: -.55rem; overflow-wrap: anywhere; max-width: 100%; }
.profile-card .button, .profile-links { width: 100%; }
.profile-links, .contact-info { display: grid; gap: .55rem; max-width: 100%; }
.contact-info a { color: #b5c7ff; overflow-wrap: anywhere; }
.profile-link { border: 1px solid var(--line); border-radius: .6rem; padding: .7rem; font-weight: 600; background: var(--panel-high); overflow-wrap: anywhere; }
.profile-brand { display: flex; width: fit-content; align-items: center; gap: .45rem; margin: .9rem auto 0; padding: .45rem .6rem; color: var(--muted); font-size: .875rem; border-radius: .35rem; }
.profile-brand:hover span { text-decoration: underline; }
.profile-brand .wordmark { width: 3rem; opacity: .78; }
.preview-banner { margin-bottom: .7rem; background: #26365f; border-radius: .55rem; padding: .65rem; text-align: center; font-size: .875rem; }

.staff { display: grid; grid-template-columns: 14.25rem minmax(0, 1fr); min-height: 100vh; }
.sidebar {
  display: flex; flex-direction: column; height: 100vh; position: sticky; top: 0;
  padding: 1.5rem 1.15rem 1rem; background: #10131b; border-right: 1px solid var(--line);
}
.staff-brand { display: flex; gap: .65rem; align-items: center; padding: .15rem .4rem 1.65rem; font-size: .875rem; font-weight: 650; }
.staff-brand .wordmark { width: 3.45rem; }
.sidebar nav { display: grid; gap: .3rem; }
.sidebar nav a { color: var(--muted); padding: .58rem .7rem; border-radius: .5rem; font-size: .9375rem; }
.sidebar nav a:hover, .sidebar nav a[aria-current] { background: #1e2e52; color: #dce5ff; }
.sidebar-foot { margin-top: auto; display: grid; padding: .6rem .4rem; gap: .6rem; font-size: .8125rem; color: var(--muted); }
.staff-user { color: #c2c9d6; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.workspace { min-width: 0; }
.workspace-inner { width: min(100%, 78rem); padding: clamp(1.5rem, 4vw, 3.6rem); margin-inline: auto; }
.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: .9rem; margin-bottom: 1.55rem; }
.page-head h1 { font-size: clamp(2.15rem, 4vw, 3.1rem); overflow-wrap: anywhere; }
.page-head p, .card-meta { margin-top: .55rem; color: var(--muted); }
.card-meta { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; font-size: .875rem; }
.panel { border: 1px solid var(--line); border-radius: .85rem; background: var(--panel); min-width: 0; }
.content-panel { padding: 1.2rem; }
.content-panel h2 { font-size: 1.25rem; margin-bottom: .6rem; }
.content-panel h3 { font-size: 1rem; }
.content-panel p:not(.form-notice) { margin-bottom: .7rem; color: var(--muted); }
input:not([type="checkbox"]), textarea, select {
  color: var(--text); background: #0e1118; border: 1px solid #3c475d; border-radius: .5rem;
  width: 100%; min-width: 0; padding: .56rem .65rem; min-height: 2.65rem; font-size: 1rem;
}
input::placeholder { color: #8c97a9; }
input[type="file"] { font-size: .9rem; }
input[type="checkbox"] { appearance: auto; accent-color: var(--blue); width: 1.1rem; height: 1.1rem; margin: 0; vertical-align: middle; }
select {
  appearance: none; padding-right: 2rem;
  background-image: linear-gradient(45deg, transparent 50%, #aab3c3 50%), linear-gradient(135deg, #aab3c3 50%, transparent 50%);
  background-position: calc(100% - 16px) 51%, calc(100% - 11px) 51%; background-size: 5px 5px; background-repeat: no-repeat;
}
label { display: grid; gap: .28rem; min-width: 0; font-size: .875rem; font-weight: 600; }
textarea { resize: vertical; }
fieldset { border: 0; padding: 0; margin: 0; min-inline-size: 0; }
.filters { padding: 1rem; display: grid; align-items: end; grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr)) auto; gap: .75rem; }
.table-scroll { overflow: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th, td { padding: .75rem 1rem; border-top: 1px solid var(--line); font-size: .9375rem; }
thead th { color: var(--muted); font-size: .8125rem; font-weight: 650; white-space: nowrap; }
tbody tr:hover { background: #171d28; }
td small { display: block; }
.select-col { width: 1px; }
.table-link, .back, .group-list a { font-weight: 650; color: #acbfff; }
.status { display: inline-block; background: #272d3a; color: #d5dbea; border-radius: 3rem; padding: .15rem .55rem; font-size: .8125rem; font-weight: 650; white-space: nowrap; }
.status.active { background: #18332b; color: #b0efd2; }
.status.inactive { background: #3a2c1c; color: #f9d895; }
.empty { padding: 1.15rem 1rem; border-top: 1px solid var(--line); color: var(--muted); }
.bulk, .pagination { padding: .75rem 1rem; border-top: 1px solid var(--line); display: flex; align-items: center; flex-wrap: wrap; gap: .65rem; }
.bulk + .form-notice { margin: .2rem 1rem .75rem; }
.backup-note { display: flex; flex-wrap: wrap; gap: .25rem .75rem; padding-top: .9rem; font-size: .8125rem; color: var(--muted); }
.back { display: inline-block; margin-bottom: .85rem; font-size: .875rem; }
.permanent { margin-bottom: 1rem; }
.copy-row { display: flex; gap: .65rem; }
.copy-row input { font-family: ui-monospace, monospace; font-size: .875rem; }
.copy-message { font-size: .875rem; color: var(--muted); }
.copy-message:empty { display: none; }
.editor-grid { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(15rem, 1fr); align-items: start; gap: 1rem; }
.editor-side { display: grid; gap: 1rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.form-grid .full { grid-column: 1 / -1; }
.subsection { border-top: 1px solid var(--line); padding-top: .95rem; margin-top: 1rem; }
.subsection h3 { margin-bottom: .55rem; }
.photo-row { display: flex; gap: .65rem; align-items: center; }
.photo-row img { border-radius: .45rem; object-fit: cover; }
.photo-row label { flex: 1; }
.choice { display: flex; align-items: center; gap: .45rem; }
.choices { display: grid; gap: .45rem .75rem; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); }
.remove-photo { margin-top: .65rem; }
.section-row { display: flex; justify-content: space-between; align-items: center; gap: .6rem; }
.section-row h3 { margin-bottom: 0; }
.link-row { display: grid; grid-template-columns: minmax(6rem, 1fr) minmax(0, 1.7fr); gap: .55rem; padding-top: .7rem; }
.link-controls { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: .4rem; }
.form-actions { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin-top: 1.1rem; }
.form-notice { color: #a9e7c8; font-size: .875rem; }
.form-notice:empty { display: none; }
.form-notice.error { color: #ffb4aa; }
.notes { display: grid; gap: .55rem; margin-bottom: .8rem; max-height: 22rem; overflow: auto; }
.notes article { background: #1a202c; padding: .65rem; border-radius: .45rem; overflow-wrap: anywhere; }
.notes article p.preline { color: var(--text); margin-bottom: .2rem; }
[data-website-fields], [data-contact-fields] { margin-top: .75rem; }
.editor-side textarea { margin-bottom: .55rem; }
.group-list { padding: 0; margin: 0; list-style: none; }
.group-list li { display: grid; gap: .5rem; padding-block: .6rem; overflow-wrap: anywhere; }
.group-list li + li { border-top: 1px solid var(--line); }
.group-list li a + a, .group-list summary { font-size: .875rem; }
.group-edit { margin-bottom: .55rem; }
.button.danger { color: #ffb4aa; }
.event-list { list-style: none; margin: 0 0 .8rem; padding: 0; }
.event-list li { display: grid; gap: .2rem; padding: .6rem 0; overflow-wrap: anywhere; }
.event-list li + li { border-top: 1px solid var(--line); }
.event-list li > span { color: var(--muted); font-size: .875rem; }
.content-panel p.backup-status { width: fit-content; font-weight: 650; padding: .4rem .65rem; border: 1px solid currentColor; border-radius: .4rem; }
.content-panel p.backup-status.fresh { color: #a9e7c8; background: #17372a; }
.content-panel p.backup-status.aging { color: #ffe099; background: #3c3017; }
.content-panel p.backup-status.overdue { color: #ffb4aa; background: #411e23; }
[data-backup] .form-grid { margin-bottom: .75rem; }
[data-form="group"] .button { margin-top: .8rem; }
.home-editor { max-width: 43rem; display: grid; gap: .75rem; }
.periods { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr)); gap: .65rem; margin: 0 0 1rem; }
.metrics div { padding: .85rem; }
.metrics dt { color: var(--muted); font-size: .875rem; }
.metrics dd { margin: 0; font-size: 1.75rem; font-weight: 700; }
.trend { display: grid; gap: .45rem; max-height: 15rem; overflow: auto; }
.trend-row { display: grid; align-items: center; grid-template-columns: minmax(6rem, 12.5rem) minmax(2rem, 1fr) auto; gap: .6rem; font-size: .875rem; color: var(--muted); }
.trend-row span:last-child { text-align: right; }
meter { appearance: none; width: 100%; height: .7rem; }
meter::-webkit-meter-bar { background: #242d3d; border: 0; }
meter::-webkit-meter-optimum-value { background: #7599ff; }
meter::-moz-meter-bar { background: #7599ff; }
.daily-details { margin-top: .9rem; }
summary { color: #b0c4ff; cursor: pointer; margin-bottom: .4rem; }
.top-links { margin-top: 1rem; }
.report-foot { color: var(--muted); font-size: .9rem; margin-top: 1rem; }

@media (max-width: 900px) {
  .staff { grid-template-columns: 11rem minmax(0, 1fr); }
  .editor-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: clamp(2.9rem, 8vw, 5.4rem); }
  .frame { width: min(100% - 3rem, 76rem); }
}
@media (max-width: 650px) {
  .frame { width: calc(100% - 2rem); }
  .public-header { height: 4.35rem; }
  .public-header nav { gap: .8rem; }
  .public-header nav > a:first-child { display: none; }
  .hero { grid-template-columns: 1fr; padding-block: 2.65rem 2.2rem; gap: 1.5rem; }
  .hero h1 { font-size: clamp(3.3rem, 14vw, 5.2rem); }
  .options { padding-block: 2.3rem 2.8rem; }
  .options-grid { grid-template-columns: 1fr; }
  .staff { display: block; }
  .sidebar { position: static; height: auto; padding: .65rem 1rem; border-right: 0; border-bottom: 1px solid var(--line); gap: .5rem; }
  .staff-brand { padding: .1rem .4rem; }
  .sidebar nav { display: flex; flex-wrap: wrap; }
  .sidebar-foot { display: flex; justify-content: space-between; gap: .8rem; }
  .sidebar-foot a:first-child { display: none; }
  .sidebar-foot a:last-child { white-space: nowrap; }
  .trend-row { grid-template-columns: minmax(5rem, 7.2rem) minmax(2rem, 1fr) auto; }
  .workspace-inner { padding: 1.15rem 1rem; }
  .page-head { flex-wrap: wrap; }
  .filters { grid-template-columns: 1fr 1fr; }
  .filters > button { justify-self: start; }
  .copy-row { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  .button { transition: none; }
}
