:root {
  --ink: #102033;
  --muted: #63788d;
  --paper: #f4f8fc;
  --paper-2: #e7f0f8;
  --surface: #ffffff;
  --line: #cbdcea;
  --green: #2d6ea6;
  --green-2: #4a91c8;
  --wine: #1e5f92;
  --gold: #f0b84d;
  --blue: #2d6ea6;
  --contrast: #ffffff;
  --primary-hover: #184d77;
  --topbar-bg: rgba(244, 248, 252, 0.92);
  --topbar-line: rgba(203, 220, 234, 0.86);
  --workspace-bg: #eef5fb;
  --workspace-header-bg: rgba(238, 245, 251, 0.94);
  --surface-soft: #f8fbfe;
  --surface-soft-2: #f2f7fb;
  --surface-tint: #e7f0f8;
  --surface-chip: #d6e6f3;
  --surface-header: #dceaf5;
  --surface-badge: #e4f0fa;
  --line-soft: #d8e5f0;
  --line-strong: #c3d8e9;
  --line-check: #b9d0e3;
  --text-soft: #20364d;
  --text-body: #37516b;
  --success-bg: #dff3ea;
  --success-ink: #176346;
  --danger-bg: #fde7e2;
  --danger-bg-hover: #f8d5ce;
  --danger-line: #e0a39c;
  --danger-ink: #9f382f;
  --focus-ring: rgba(45, 110, 166, 0.16);
  --panel-shadow: 0 12px 28px rgba(16, 32, 51, 0.07);
  --modal-scrim: rgba(24, 22, 20, 0.58);
  --campus-bg: #102033;
  --toast-bg: #102033;
  --shadow: 0 22px 60px rgba(16, 32, 51, 0.14);
  --radius: 8px;
  --sidebar: 292px;
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body[data-theme="dark"] {
  --ink: #eaf3fb;
  --muted: #9fb4c8;
  --paper: #071420;
  --paper-2: #0d2032;
  --surface: #12263a;
  --line: #294962;
  --green: #2d6ea6;
  --green-2: #69afe1;
  --wine: #4a91c8;
  --gold: #f4c866;
  --blue: #69afe1;
  --contrast: #f7fbff;
  --primary-hover: #69afe1;
  --topbar-bg: rgba(7, 20, 32, 0.92);
  --topbar-line: rgba(57, 88, 112, 0.78);
  --workspace-bg: #071420;
  --workspace-header-bg: rgba(7, 20, 32, 0.94);
  --surface-soft: #172d43;
  --surface-soft-2: #102538;
  --surface-tint: #173653;
  --surface-chip: #1c4263;
  --surface-header: #18344f;
  --surface-badge: #173653;
  --line-soft: #2d506a;
  --line-strong: #3b6685;
  --line-check: #4a7794;
  --text-soft: #d8e7f3;
  --text-body: #c3d4e3;
  --success-bg: #123a31;
  --success-ink: #77d6af;
  --danger-bg: #4b2324;
  --danger-bg-hover: #5a2a2b;
  --danger-line: #874547;
  --danger-ink: #ffaba4;
  --focus-ring: rgba(105, 175, 225, 0.22);
  --panel-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
  --modal-scrim: rgba(0, 0, 0, 0.72);
  --campus-bg: #08111c;
  --toast-bg: #eaf3fb;
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.38);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
}

body.app-active {
  overflow: hidden;
}

body.app-active [data-public-chrome] {
  display: none;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--topbar-line);
  padding: 12px clamp(18px, 4vw, 58px);
  background: var(--topbar-bg);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(45, 110, 166, 0.46);
  border-radius: 50%;
  background: var(--green);
  color: #f7fbff;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.1;
}

.brand small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.78rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 28px);
  font-size: 0.94rem;
  font-weight: 700;
}

.main-nav a {
  padding: 10px 0;
}

.theme-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.theme-control select {
  min-height: 36px;
  width: auto;
  min-width: 116px;
  padding: 8px 30px 8px 10px;
  background: var(--surface-soft);
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 850;
  text-transform: none;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 3px auto;
  background: var(--ink);
}

.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 10px 16px;
  font-weight: 850;
  line-height: 1;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--green);
  color: var(--contrast);
}

.button-primary:hover {
  background: var(--primary-hover);
}

.button-light {
  border-color: rgba(255, 255, 255, 0.48);
  background: rgba(255, 255, 255, 0.16);
  color: #f7fbff;
}

.button-ghost,
.button-quiet {
  border-color: var(--line);
  background: transparent;
  color: var(--green);
}

.button-quiet {
  background: var(--green);
  color: var(--contrast);
}

.button-danger {
  border-color: var(--danger-line);
  background: var(--danger-bg);
  color: var(--danger-ink);
}

.button-danger:hover {
  background: var(--danger-bg-hover);
}

.hero {
  position: relative;
  display: grid;
  min-height: clamp(560px, 78svh, 760px);
  overflow: hidden;
  color: #f7fbff;
  isolation: isolate;
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(14, 17, 15, 0.88), rgba(14, 17, 15, 0.52) 50%, rgba(14, 17, 15, 0.2)),
    linear-gradient(0deg, rgba(14, 17, 15, 0.34), rgba(14, 17, 15, 0.06));
}

.hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  max-width: 780px;
  flex-direction: column;
  justify-content: center;
  padding: clamp(74px, 10vw, 132px) clamp(20px, 5vw, 72px) clamp(122px, 14vw, 168px);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  max-width: 12ch;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.6rem, 8vw, 7.4rem);
  line-height: 0.94;
}

.hero p:not(.eyebrow) {
  max-width: 640px;
  margin: 24px 0 0;
  color: rgba(255, 253, 247, 0.88);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  line-height: 1.62;
}

.hero-actions,
.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-actions {
  margin-top: 30px;
}

.hero-pills {
  position: absolute;
  right: clamp(18px, 4vw, 56px);
  bottom: 24px;
  left: clamp(18px, 4vw, 56px);
  z-index: 2;
  justify-content: flex-end;
}

.hero-pills span {
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  padding: 9px 12px;
  background: rgba(14, 17, 15, 0.42);
  color: rgba(255, 253, 247, 0.92);
  font-size: 0.84rem;
  backdrop-filter: blur(10px);
}

.stats-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  background: var(--green);
  color: #f7fbff;
}

.stats-band div {
  display: flex;
  min-height: 126px;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  padding: 24px;
}

.stats-band strong {
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 4vw, 4rem);
}

.stats-band span {
  max-width: 130px;
  color: rgba(247, 251, 255, 0.82);
  font-weight: 800;
  line-height: 1.24;
}

.section {
  padding: clamp(56px, 8vw, 104px) clamp(20px, 5vw, 72px);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1.1fr);
  gap: clamp(28px, 7vw, 96px);
}

.split h2,
.section-heading h2 {
  margin: 0;
  max-width: 760px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 4.35rem);
  line-height: 1.03;
}

.section-copy {
  color: var(--text-soft);
  font-size: 1.04rem;
  line-height: 1.78;
}

.campus-band {
  background: var(--campus-bg);
  color: #f7fbff;
}

.feature-grid,
.program-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 36px;
}

.feature-grid article,
.program-grid article {
  min-height: 230px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  padding: 22px;
  background: rgba(255, 255, 255, 0.055);
}

.program-grid article {
  border-color: var(--line);
  background: var(--surface);
}

.feature-grid span {
  color: var(--gold);
  font-weight: 950;
}

.feature-grid h3,
.program-grid h3 {
  margin: 20px 0 10px;
}

.feature-grid p {
  color: rgba(255, 253, 247, 0.72);
}

.program-grid p,
.public-event-list p {
  color: var(--muted);
}

.cards-section,
.public-agenda {
  background: var(--paper-2);
}

.programs-intro {
  max-width: 720px;
  margin-top: 18px;
}

.program-grid-overview {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.program-grid-overview article {
  display: flex;
  flex-direction: column;
}

.program-link {
  margin-top: auto;
  padding-top: 14px;
  color: var(--wine);
  font-weight: 800;
  text-decoration: none;
}

.program-link:hover {
  text-decoration: underline;
}

.program-detail {
  margin-top: 44px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
  scroll-margin-top: 90px;
}

.program-detail-head h3 {
  margin: 6px 0 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
}

.program-detail-head p {
  max-width: 760px;
  color: var(--text-soft);
  line-height: 1.72;
}

.specialty-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.specialty-chips span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px;
  background: var(--surface-chip);
  color: var(--text-soft);
  font-size: 0.86rem;
  font-weight: 700;
}

.program-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 4vw, 48px);
  margin-top: 26px;
}

.program-columns h4 {
  margin: 0 0 12px;
  color: var(--wine);
}

.program-columns > div > p {
  color: var(--muted);
}

.program-list {
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--text-body);
  line-height: 1.9;
}

.program-list li {
  padding-left: 18px;
  position: relative;
}

.program-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

.program-cross {
  margin-top: 44px;
  padding: 30px clamp(20px, 4vw, 40px);
  border-radius: var(--radius);
  background: var(--campus-bg);
  color: #f7fbff;
}

.program-cross h3 {
  margin: 6px 0 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
}

.program-cross p {
  max-width: 760px;
  margin: 0;
  color: rgba(247, 251, 255, 0.82);
  line-height: 1.72;
}

.public-agenda {
  background: var(--surface);
}

.public-event-list {
  display: grid;
  gap: 12px;
  margin-top: 30px;
}

.public-event-list article {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding: 22px 0;
}

.public-event-list time {
  display: grid;
  width: 76px;
  height: 76px;
  place-items: center;
  border-radius: 50%;
  background: var(--wine);
  color: var(--contrast);
  font-weight: 950;
}

.app-shell {
  display: grid;
  grid-template-columns: var(--sidebar) minmax(0, 1fr);
  min-height: 100svh;
  background: var(--workspace-bg);
}

.is-hidden,
.app-shell.is-hidden {
  display: none !important;
}

.sidebar {
  display: flex;
  min-height: 100svh;
  flex-direction: column;
  gap: 18px;
  border-right: 1px solid var(--line);
  padding: 20px;
  background: var(--surface);
}

.sidebar-brand {
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
}

.user-card {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  background: var(--surface);
}

.avatar {
  display: grid;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background-color: var(--wine);
  background-position: center;
  background-size: cover;
  color: var(--contrast);
  font-weight: 950;
}

.user-card strong,
.user-card small {
  display: block;
  overflow: hidden;
  max-width: 176px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-card small {
  margin-top: 4px;
  color: var(--muted);
}

.side-nav {
  display: grid;
  gap: 8px;
}

.side-nav button {
  display: flex;
  width: 100%;
  min-height: 44px;
  align-items: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 10px 12px;
  background: transparent;
  color: var(--text-soft);
  font-weight: 850;
  text-align: left;
}

.side-nav button:hover,
.side-nav button.is-active {
  border-color: var(--line);
  background: var(--surface-tint);
  color: var(--green);
}

.side-nav .nav-icon {
  display: grid;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  place-items: center;
  color: var(--green);
}

.side-nav .nav-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sidebar-exit {
  margin-top: auto;
}

.workspace {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-width: 0;
  max-height: 100svh;
  overflow: auto;
}

.workspace-header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  padding: 22px clamp(18px, 3vw, 36px);
  background: var(--workspace-header-bg);
  backdrop-filter: blur(14px);
}

.workspace-header h2 {
  margin: 0;
  font-size: clamp(1.55rem, 3vw, 2.45rem);
}

.workspace-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.dashboard-view {
  padding: clamp(18px, 3vw, 36px);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  background: var(--surface);
  box-shadow: var(--panel-shadow);
}

.panel.span-3 {
  grid-column: span 3;
}

.panel.span-4 {
  grid-column: span 4;
}

.panel.span-5 {
  grid-column: span 5;
}

.panel.span-6 {
  grid-column: span 6;
}

.panel.span-7 {
  grid-column: span 7;
}

.panel.span-8 {
  grid-column: span 8;
}

.panel.span-12 {
  grid-column: span 12;
}

.panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.panel h3 {
  margin: 0;
  font-size: 1.03rem;
}

.panel small {
  color: var(--muted);
}

.welcome-panel {
  background:
    linear-gradient(135deg, rgba(45, 110, 166, 0.1), rgba(240, 184, 77, 0.11)),
    var(--surface);
}

.welcome-panel p {
  margin: 0 0 16px;
  color: var(--text-soft);
  font-size: 1.04rem;
  line-height: 1.65;
}

.metric-card small {
  color: var(--muted);
  font-weight: 850;
}

.metric-value {
  margin: 4px 0;
  color: var(--green);
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 950;
  line-height: 1;
}

.stat-list,
.item-list,
.task-list,
.agenda-list,
.reservation-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.stat-list.compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stat-list li,
.item-list li,
.task-list li,
.reservation-list li {
  display: grid;
  gap: 5px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 12px;
  background: var(--surface-soft);
}

.badge {
  display: inline-flex;
  width: fit-content;
  min-height: 30px;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  background: var(--surface-badge);
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 900;
}

.badge.success {
  background: var(--success-bg);
  color: var(--success-ink);
}

.badge.warning {
  background: var(--danger-bg);
  color: var(--danger-ink);
}

.badge.blue {
  background: var(--surface-header);
  color: var(--blue);
}

.progress-shell {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-chip);
}

.progress-bar {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--gold));
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--text-soft);
  font-size: 0.84rem;
  font-weight: 850;
}

fieldset {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  background: var(--surface-soft);
}

legend {
  padding: 0 6px;
  color: var(--text-soft);
  font-size: 0.84rem;
  font-weight: 900;
}

.checkbox-list {
  display: grid;
  gap: 8px;
  margin-top: 4px;
}

.checkbox-list.split-options {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.checkbox-option {
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 9px 10px;
  background: var(--surface);
  font-size: 0.88rem;
}

.checkbox-option input {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.full {
  grid-column: 1 / -1;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 11px 12px;
  background: var(--surface-soft);
  color: var(--ink);
  outline: none;
}

input[type="color"] {
  min-height: 46px;
  padding: 5px;
}

textarea {
  min-height: 104px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--green-2);
  box-shadow: 0 0 0 3px var(--focus-ring);
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-size: 0.9rem;
}

th,
td {
  border-bottom: 1px solid var(--line-soft);
  padding: 12px 10px;
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 0.75rem;
  text-transform: uppercase;
}

td button,
.inline-button {
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 7px 10px;
  background: var(--surface-soft);
  color: var(--green);
  font-size: 0.8rem;
  font-weight: 900;
}

.task-board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}

.task-card,
.event-card,
.feed-card {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 14px;
  background: var(--surface-soft);
}

.task-card header,
.feed-card header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.note-card header {
  align-items: center;
}

.icon-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}

.icon-button {
  display: inline-grid;
  width: 34px;
  height: 34px;
  min-height: 34px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0;
  background: var(--surface-soft);
  color: var(--green);
}

.icon-button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-button.danger {
  color: var(--danger-ink);
}

.task-card p,
.event-card p,
.feed-card p {
  margin: 0;
  color: var(--text-body);
  line-height: 1.55;
}

.task-submit-form,
.stack {
  display: grid;
  gap: 12px;
}

.file-pill {
  display: inline-grid;
  width: fit-content;
  max-width: 100%;
  gap: 3px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 8px 10px;
  background: var(--surface-tint);
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 900;
}

.goal-list {
  display: grid;
  gap: 10px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.goal-list li {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 12px;
  background: var(--surface-soft);
}

.goal-readonly li {
  justify-content: flex-start;
}

.goal-readonly .check {
  display: grid;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line-check);
  border-radius: 50%;
  color: var(--success-ink);
  font-weight: 950;
}

.goal-list label {
  display: flex;
  flex: 1;
  align-items: flex-start;
  gap: 10px;
}

.goal-list input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.event-card {
  grid-template-columns: 132px minmax(0, 1fr) auto;
  align-items: start;
}

.event-card time {
  color: var(--wine);
  font-size: 0.8rem;
  font-weight: 950;
  text-transform: uppercase;
}

.segmented {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.segmented button {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px 11px;
  background: var(--surface-soft);
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 900;
}

.segmented button.is-active {
  border-color: var(--green);
  background: var(--green);
  color: var(--contrast);
}

.room-calendar {
  display: grid;
  grid-template-columns: 74px repeat(var(--room-count), minmax(150px, 1fr));
  min-width: max(760px, calc(74px + var(--room-count) * 150px));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
  gap: 1px;
}

.room-cell {
  min-height: 86px;
  padding: 9px;
  background: var(--surface-soft);
}

.room-cell.header,
.room-cell.hour {
  min-height: 44px;
  background: var(--surface-header);
  color: var(--text-soft);
  font-size: 0.76rem;
  font-weight: 950;
  text-transform: uppercase;
}

.room-cell.hour,
.room-cell.open {
  display: grid;
  place-items: center;
}

.room-cell.open {
  background: var(--surface-soft-2);
}

.room-cell.booked {
  display: grid;
  align-content: start;
  gap: 8px;
  background: var(--surface-soft);
}

.room-cell.booked strong {
  color: var(--ink);
}

.reservation-stack {
  display: grid;
  gap: 8px;
}

.reservation-entry {
  display: grid;
  gap: 4px;
  border-left: 5px solid var(--reservation-color, var(--green));
  border-radius: 6px;
  padding: 8px;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--reservation-color, var(--green)) 16%, var(--surface-soft)), var(--surface-soft) 76%);
}

.room-cell-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.reservation-item {
  border-left: 5px solid var(--reservation-color, var(--green)) !important;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--reservation-color, var(--green)) 12%, var(--surface-soft)), var(--surface-soft) 76%) !important;
}

.room-admin-list {
  margin-top: 14px;
}

.inline-button.danger {
  color: var(--danger-ink);
}

.profile-preview {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.profile-photo {
  display: grid;
  width: 88px;
  height: 88px;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 50%;
  object-fit: cover;
}

.profile-photo.fallback {
  background: var(--green);
  color: var(--contrast);
  font-size: 1.35rem;
  font-weight: 950;
}

.empty-text {
  margin: 0;
  color: var(--muted);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 22px;
  background: var(--modal-scrim);
  backdrop-filter: blur(10px);
}

.auth-modal {
  position: relative;
  width: min(100%, 470px);
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: var(--radius);
  padding: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.auth-modal h2 {
  margin: 0 0 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  line-height: 1.04;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
  color: var(--ink);
  font-size: 1.5rem;
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}

.auth-tab {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
  color: var(--green);
  font-weight: 900;
}

.auth-tab.is-active {
  border-color: var(--green);
  background: var(--green);
  color: var(--contrast);
}

.auth-form {
  display: grid;
  gap: 13px;
}

.form-message {
  min-height: 22px;
  margin: 12px 0 0;
  color: var(--wine);
  font-weight: 850;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 120;
  max-width: 360px;
  border-radius: var(--radius);
  padding: 13px 15px;
  background: var(--toast-bg);
  color: var(--surface);
  box-shadow: var(--shadow);
}

@media (max-width: 1120px) {
  .feature-grid,
  .program-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .program-grid-overview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .panel.span-3,
  .panel.span-4,
  .panel.span-5,
  .panel.span-6,
  .panel.span-7,
  .panel.span-8 {
    grid-column: span 6;
  }

  .stat-list.compact {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: fixed;
    top: 66px;
    right: 12px;
    left: 12px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 14px;
    background: var(--surface);
    box-shadow: var(--shadow);
  }

  .main-nav.is-open {
    display: flex;
  }

  .split,
  .stats-band,
  .app-shell {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    padding: 64px 20px 136px;
  }

  .hero-pills {
    justify-content: flex-start;
  }

  .sidebar {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .side-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .workspace {
    max-height: none;
  }

  .workspace-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .workspace-actions {
    justify-content: flex-start;
  }

  body.app-active {
    overflow: auto;
  }
}

@media (max-width: 680px) {
  .section {
    padding-right: 18px;
    padding-left: 18px;
  }

  .feature-grid,
  .program-grid,
  .program-grid-overview,
  .program-columns,
  .dashboard-grid,
  .form-grid,
  .side-nav {
    grid-template-columns: 1fr;
  }

  .panel,
  .panel.span-3,
  .panel.span-4,
  .panel.span-5,
  .panel.span-6,
  .panel.span-7,
  .panel.span-8,
  .panel.span-12 {
    grid-column: 1;
  }

  .public-event-list article,
  .event-card,
  .task-card header {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: clamp(3rem, 16vw, 5rem);
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
