:root {
  color-scheme: light;
  --ink: #361727;
  --muted: #735c68;
  --line: #efd9e3;
  --panel: #ffffff;
  --panel-strong: #fff0f6;
  --surface: #fffbfd;
  --accent: #a41659;
  --accent-strong: #a41659;
  --danger: #b93848;
  --shadow: 0 26px 70px rgba(69, 21, 46, .09);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; color: var(--ink); background: var(--surface); }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

body::before, body::after { content: none; }

.shell { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { filter: none; }
.brand span { display: flex; flex-direction: column; line-height: 1.08; }
.brand strong { font-size: 1.05rem; letter-spacing: -.02em; }
.brand small { color: var(--muted); font-size: .66rem; letter-spacing: .09em; text-transform: uppercase; margin-top: 4px; }

.site-header { height: 92px; display: flex; align-items: center; justify-content: space-between; }
.site-header nav { display: flex; align-items: center; gap: 28px; }
.site-header nav a { color: #361727; font-size: .88rem; text-decoration: none; }
.site-header nav a:hover { color: #45152e; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: #ffffff;
  background: var(--accent);
  box-shadow: 0 10px 28px rgba(164, 22, 89, .2);
  font-weight: 750;
  font-size: .88rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, filter .18s ease, border-color .18s ease;
}
.button:hover { background: #45152e; color: #fff; }
.button:disabled { opacity: .55; cursor: wait; transform: none; }
.button-small { min-height: 38px; padding: 0 14px; font-size: .78rem; border-radius: 10px; }
.button-quiet { color: #361727; background: #fff0f6; border-color: var(--line); box-shadow: none; }
.button-danger { color: #a3293a; background: rgba(255, 111, 125, .08); border-color: rgba(255, 111, 125, .35); box-shadow: none; }
.text-button { color: var(--muted); background: none; border: 0; cursor: pointer; padding: 8px; }
.text-button:hover { color: #45152e; }

.hero { display: grid; grid-template-columns: 1.03fr .97fr; align-items: center; gap: 70px; min-height: 670px; padding-block: 78px 100px; }
.eyebrow { margin: 0 0 13px; color: var(--accent-strong); font-size: .73rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.signal-dot { display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--accent-strong); box-shadow: 0 0 0 5px rgba(164, 22, 89, .1), 0 0 18px var(--accent-strong); }
.hero h1 { max-width: 690px; margin: 0; font-size: clamp(3.5rem, 6.7vw, 6.5rem); line-height: .92; letter-spacing: -.075em; }
.hero-lead { max-width: 650px; margin: 28px 0 0; color: #735c68; font-size: 1.08rem; line-height: 1.75; }
.hero-actions { display: flex; gap: 12px; margin-top: 32px; }
.fine-print { color: #735c68; font-size: .76rem; margin: 14px 0 0; }

.policy-preview { overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: #ffffff; box-shadow: var(--shadow); transform: perspective(1200px) rotateY(-3deg) rotateX(1deg); }
.preview-top { display: flex; align-items: center; gap: 7px; height: 48px; padding: 0 18px; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .018); }
.preview-top > span { width: 8px; height: 8px; border-radius: 50%; background: #ffb8d6; }
.preview-top em { margin-left: auto; color: var(--accent-strong); font-size: .7rem; font-style: normal; text-transform: uppercase; letter-spacing: .12em; }
.preview-body { padding: 38px; }
.preview-body h2 { margin: 0; font-size: 2.15rem; letter-spacing: -.05em; }
.preview-body p:not(.eyebrow) { color: var(--muted); line-height: 1.65; }
.preview-shield { float: right; margin: -4px 0 16px 20px; }
.mini-grid { clear: both; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; overflow: hidden; margin-top: 30px; border: 1px solid var(--line); border-radius: 14px; background: var(--line); }
.mini-grid div { display: flex; flex-direction: column; gap: 4px; padding: 18px; background: #fff0f6; }
.mini-grid strong { font-size: 1.05rem; }
.mini-grid span { color: var(--muted); font-size: .7rem; }

.feature-section { padding: 100px 0 130px; border-top: 1px solid var(--line); }
.section-heading { max-width: 730px; }
.section-heading h2 { margin: 0; font-size: clamp(2.2rem, 5vw, 4.3rem); line-height: 1; letter-spacing: -.065em; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 52px; }
.feature-grid article { min-height: 250px; padding: 28px; border: 1px solid var(--line); border-radius: 18px; background: #ffffff; }
.feature-grid article > span { color: var(--accent-strong); font: 700 .7rem ui-monospace, SFMono-Regular, Menlo, monospace; }
.feature-grid h3 { margin: 54px 0 12px; font-size: 1.2rem; }
.feature-grid p { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.65; }
footer { display: flex; justify-content: space-between; padding: 34px 0 50px; border-top: 1px solid var(--line); color: var(--muted); font-size: .76rem; }

.auth-page { display: grid; place-items: center; padding: 50px 20px; }
.auth-shell { width: min(470px, 100%); }
.auth-shell-wide { width: min(720px, 100%); }
.auth-shell > .brand { margin: 0 0 25px 8px; }
.auth-card { padding: 36px; border: 1px solid var(--line); border-radius: 22px; background: #ffffff; box-shadow: var(--shadow); }
.auth-card h1 { margin: 0 0 10px; font-size: 2.1rem; letter-spacing: -.055em; }
.auth-card > p:not(.eyebrow, .auth-switch) { margin: 0 0 28px; color: var(--muted); line-height: 1.6; }
form { margin: 0; }
label { color: #361727; font-size: .78rem; font-weight: 680; }
label > input, label > select, label > textarea, .field input, .field select, .field textarea {
  display: block;
  width: 100%;
  margin-top: 8px;
  border: 1px solid #d7bdc9;
  border-radius: 10px;
  outline: none;
  color: var(--ink);
  background: #ffffff;
  transition: border-color .16s ease, box-shadow .16s ease;
}
input, select { height: 46px; padding: 0 13px; }
textarea { resize: vertical; min-height: 130px; padding: 12px 13px; line-height: 1.5; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(164, 22, 89, .12); }
label > small, .field > small { display: block; margin-top: 7px; color: #735c68; font-size: .68rem; font-weight: 500; line-height: 1.4; }
.auth-card form > label { display: block; margin-bottom: 17px; }
.auth-card form > .button { width: 100%; margin-top: 5px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; }
.form-grid .span-two { grid-column: 1 / -1; }
.auth-switch { margin: 25px 0 0; color: var(--muted); text-align: center; font-size: .78rem; }
.auth-switch a { color: var(--accent-strong); }
.form-status { margin: 0 0 16px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px; color: #361727; background: rgba(164, 22, 89, .07); font-size: .78rem; }
.form-status[data-tone="error"] { color: #a3293a; border-color: rgba(255, 111, 125, .3); background: rgba(255, 111, 125, .08); }
.form-status[data-tone="success"] { color: #45152e; border-color: rgba(164, 22, 89, .3); background: rgba(164, 22, 89, .08); }

.console-page { background: #fff0f6; }
.console-header { position: sticky; top: 0; z-index: 10; height: 76px; display: flex; align-items: center; justify-content: space-between; padding: 0 28px; border-bottom: 1px solid var(--line); background: rgba(255, 251, 253, .97); backdrop-filter: blur(18px); }
.admin-identity { display: flex; align-items: center; gap: 18px; }
.admin-identity > span { display: flex; flex-direction: column; align-items: flex-end; }
.admin-identity strong { font-size: .78rem; }
.admin-identity small { margin-top: 3px; color: var(--muted); font-size: .67rem; }
.console-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); min-height: calc(100vh - 76px); }
.console-nav { position: sticky; top: 76px; height: calc(100vh - 76px); display: flex; flex-direction: column; gap: 5px; padding: 26px 18px; border-right: 1px solid var(--line); background: #ffffff; }
.console-nav > a { padding: 11px 13px; border-radius: 9px; color: #735c68; font-size: .79rem; text-decoration: none; }
.console-nav > a:hover, .console-nav > a.active { color: #45152e; background: #fce3ee; }
.scope-card { display: flex; flex-direction: column; margin-top: auto; padding: 15px; border: 1px solid rgba(164, 22, 89, .15); border-radius: 12px; background: rgba(164, 22, 89, .04); }
.scope-card .signal-dot { margin-bottom: 12px; }
.scope-card strong { font-size: .75rem; }
.scope-card small { margin-top: 5px; color: var(--muted); font-size: .63rem; }
.console-main { width: min(1400px, 100%); padding: 42px clamp(24px, 4vw, 62px) 90px; }
.console-title { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 30px; }
.console-title h1 { margin: 0; font-size: clamp(2rem, 4vw, 3.3rem); letter-spacing: -.06em; }
.console-title p:last-child { margin: 9px 0 0; color: var(--muted); }
.status-pill { flex: 0 0 auto; padding: 9px 13px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: .7rem; font-weight: 750; }
.status-pill[data-active="true"] { color: var(--accent-strong); border-color: rgba(164, 22, 89, .25); background: rgba(164, 22, 89, .06); }
.status-pill[data-active="true"]::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; }

.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.metric-grid article { display: flex; flex-direction: column; min-height: 135px; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: #ffffff; }
.metric-grid span { color: var(--muted); font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; }
.metric-grid strong { margin-top: 15px; font-size: 1.7rem; letter-spacing: -.04em; }
.metric-grid small { margin-top: auto; color: #735c68; font-size: .68rem; }
.panel { margin-top: 18px; padding: 26px; scroll-margin-top: 96px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); box-shadow: 0 14px 45px rgba(69, 21, 46, .06); }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 22px; margin-bottom: 26px; }
.panel-heading h2 { margin: 0; font-size: 1.45rem; letter-spacing: -.035em; }
.panel-heading p:last-child { margin: 7px 0 0; color: var(--muted); font-size: .8rem; line-height: 1.5; }
.switch { display: flex; align-items: center; gap: 9px; cursor: pointer; white-space: nowrap; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch > span { position: relative; width: 42px; height: 23px; border: 1px solid var(--line); border-radius: 999px; background: #efd9e3; }
.switch > span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 15px; height: 15px; border-radius: 50%; background: #735c68; transition: .18s ease; }
.switch input:checked + span { border-color: rgba(164, 22, 89, .4); background: rgba(164, 22, 89, .15); }
.switch input:checked + span::after { left: 22px; background: var(--accent-strong); box-shadow: 0 0 12px rgba(164, 22, 89, .6); }
.switch em { color: var(--muted); font-size: .72rem; font-style: normal; }
.control-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: block; }
fieldset { margin: 26px 0 0; padding: 0; border: 0; }
legend { margin-bottom: 11px; color: var(--muted); font-size: .68rem; font-weight: 750; text-transform: uppercase; letter-spacing: .08em; }
.check-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.check-grid label { display: flex; align-items: center; gap: 9px; padding: 11px; border: 1px solid var(--line); border-radius: 9px; background: #fff0f6; cursor: pointer; }
.check-grid input { width: 15px; height: 15px; margin: 0; accent-color: var(--accent-strong); }
.check-grid span { font-size: .74rem; }
.textarea-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 26px; }
.panel-actions { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 25px; padding-top: 20px; border-top: 1px solid var(--line); }
.panel-actions > span { color: var(--muted); font-size: .7rem; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { padding: 0 14px 12px; color: #735c68; font-size: .63rem; text-align: left; text-transform: uppercase; letter-spacing: .08em; }
td { padding: 14px; border-top: 1px solid var(--line); }
td strong, td small { display: block; }
td strong { font-size: .73rem; }
td small { max-width: 190px; overflow: hidden; margin-top: 4px; color: #735c68; font-size: .62rem; text-overflow: ellipsis; white-space: nowrap; }
.empty { padding: 30px; color: var(--muted); font-size: .78rem; text-align: center; }
.token-card { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(220px, 2fr) auto; align-items: center; gap: 18px; margin-bottom: 22px; padding: 18px; border: 1px solid rgba(164, 22, 89, .25); border-radius: 12px; background: rgba(164, 22, 89, .06); }
.token-card p { margin: 4px 0 0; color: var(--muted); font-size: .7rem; }
code, pre { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.token-card code { overflow: hidden; color: var(--accent-strong); font-size: .74rem; text-overflow: ellipsis; }
.deployment-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 18px; }
.deployment-grid > div { display: flex; flex-direction: column; gap: 9px; padding: 16px; border: 1px solid var(--line); border-radius: 10px; }
.deployment-grid span { color: var(--muted); font-size: .66rem; text-transform: uppercase; letter-spacing: .07em; }
.deployment-grid code, .deployment-grid strong { font-size: .8rem; }
details { margin: 18px 0; border: 1px solid var(--line); border-radius: 10px; background: #fff0f6; }
summary { padding: 14px 16px; color: #361727; font-size: .76rem; cursor: pointer; }
pre { overflow: auto; margin: 0; padding: 0 16px 16px; color: var(--accent-strong); font-size: .72rem; }
.audit-list { display: grid; }
.audit-list article { display: grid; grid-template-columns: 11px 1fr; gap: 13px; padding: 14px 5px; border-top: 1px solid var(--line); }
.audit-list article:first-child { border-top: 0; }
.audit-list article > span { width: 7px; height: 7px; margin-top: 5px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px rgba(164, 22, 89, .5); }
.audit-list strong, .audit-list small { display: block; }
.audit-list strong { font-size: .76rem; text-transform: capitalize; }
.audit-list small { margin-top: 4px; color: var(--muted); font-size: .65rem; }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; }
  .hero h1 { max-width: 800px; }
  .policy-preview { transform: none; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .textarea-grid { grid-template-columns: 1fr; }
  .check-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .site-header nav > a:not(.button) { display: none; }
  .hero { padding-top: 55px; gap: 45px; }
  .hero h1 { font-size: clamp(3.2rem, 17vw, 5.2rem); }
  .feature-grid { grid-template-columns: 1fr; }
  .console-header { padding-inline: 16px; }
  .admin-identity > span { display: none; }
  .console-layout { display: block; }
  .console-nav { position: sticky; top: 76px; z-index: 9; width: 100%; height: auto; flex-direction: row; overflow-x: auto; padding: 10px 14px; border-right: 0; border-bottom: 1px solid var(--line); backdrop-filter: blur(18px); }
  .console-nav > a { white-space: nowrap; }
  .scope-card { display: none; }
  .console-main { padding: 30px 16px 70px; }
  .console-title { align-items: flex-start; }
  .metric-grid, .control-grid, .form-grid, .deployment-grid { grid-template-columns: 1fr; }
  .form-grid .span-two { grid-column: auto; }
  .check-grid { grid-template-columns: 1fr; }
  .panel { padding: 20px; }
  .panel-heading { flex-direction: column; }
  .token-card { grid-template-columns: 1fr; }
  .token-card code { white-space: normal; overflow-wrap: anywhere; }
}


[hidden] { display: none !important; }
#school-login-link { overflow-wrap: anywhere; color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.switch input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 3px; }
@media (max-width: 480px) { .hero-actions, .console-title, .panel-actions { flex-direction: column; align-items: stretch; } .auth-card { padding: 24px; } }

.site-header nav a.button, .site-header nav a.button:hover { color: #ffffff; }

/* Campus Web Policy identity from campusopshq.com/webpolicy. */
.button { border-radius: 8px; box-shadow: none; }
.button-quiet:hover { color: #45152e; background: #fce3ee; }
.button-danger:hover { color: #fff; background: var(--danger); }
.brand strong, h1, h2, h3 { color: #45152e; }
.brand small { color: #686079; }
.signal-dot { box-shadow: none; }
.policy-preview { background: #45152e; color: #fff; border-color: #74314f; }
.policy-preview h2 { color: #fff; }
.policy-preview .eyebrow, .preview-top em { color: #ffb8d6; }
.preview-top { border-color: #ffffff26; }
.preview-body p:not(.eyebrow) { color: #f9dce9; }
.mini-grid { border-color: #ffffff26; background: #ffffff26; }
.mini-grid div { background: #542039; }
.mini-grid span { color: #f9dce9; }
.auth-card { border-radius: 22px; }
.auth-card h1 { line-height: 1.18; }
input::placeholder, textarea::placeholder { color: #735c68; opacity: .8; }
.console-nav > a.active { color: #a41659; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .button { transition: none; } }
