@font-face {
  font-family: Inter;
  src: url("/assets/InterVariable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --bg: #f8f7fb;
  --ink: #252036;
  --muted: #615970;
  --surface: #fff;
  --soft: #f1edf7;
  --line: #e3ddec;
  --tab-active: #eeebf3;
  --accent: #5d4192;
  --button: #503568;
  --button-hover: #3c234f;
  --on-button: #fff;
  --violet: #60428e;
  --violet-bg: #eee6fa;
  --teal: #17675e;
  --teal-bg: #ddf1ed;
  --slate: #49566c;
  --slate-bg: #e8edf4;
  --green: #2c6655;
  --green-bg: #e4f2eb;
  --amber: #80551c;
  --amber-bg: #f8edd6;
  --blue: #3d5e8b;
  --blue-bg: #e7eefb;
  --rose: #984459;
  --rose-bg: #fae9ee;
  --danger: #a83147;
  --danger-bg: #f9e7e9;
  --shadow: 0 18px 55px #3a2a6110;
  font: 16px/1.55 Inter, system-ui, -apple-system, sans-serif;
}

:root[data-theme=dark] {
  color-scheme: dark;
  --bg: #14131b;
  --ink: #f1eef7;
  --muted: #c1b8cf;
  --surface: #201d29;
  --soft: #2a2637;
  --line: #3b354a;
  --tab-active: #302d37;
  --accent: #d2baf8;
  --button: #ebd7ff;
  --button-hover: #f8edff;
  --on-button: #271934;
  --violet: #ddc6ff;
  --violet-bg: #382c4b;
  --teal: #91e0d2;
  --teal-bg: #203f3c;
  --slate: #c3d0e5;
  --slate-bg: #303a4b;
  --green: #a5deca;
  --green-bg: #253d35;
  --amber: #f0d090;
  --amber-bg: #433622;
  --blue: #bad4fd;
  --blue-bg: #273752;
  --rose: #f2b3c3;
  --rose-bg: #482d3a;
  --danger: #ffbbc9;
  --danger-bg: #512c39;
  --shadow: 0 18px 50px #0d091a36;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); overflow-wrap: anywhere; }
a { color: var(--accent); text-underline-offset: .23em; }
button, input, textarea, select { font: inherit; }

@property --splash-fill {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 0%;
}
#site-splash {
  --splash-bg: #191322;
  position: fixed;
  z-index: 10;
  inset: 0;
  display: grid;
  place-items: center;
  background: var(--splash-bg);
  color: #f7f1ff;
  font-size: clamp(3.5rem, 9vw, 7rem);
  font-weight: 850;
  letter-spacing: -.075em;
  line-height: 1;
  animation: splash-timeout 10s step-end forwards;
}
.splash-wordmark { position: relative; display: flex; animation: splash-word-float 2.2s ease-in-out infinite; }
.splash-wordmark > span {
  transform-origin: center 75%;
  animation: splash-letter-pulse 2.2s ease-in-out infinite;
}
.splash-wordmark > span:nth-child(2) { animation-delay: .09s; }
.splash-wordmark > span:nth-child(3) { animation-delay: .18s; }
.splash-accent { color: #d2baf8; }
.splash-ring {
  position: absolute;
  width: clamp(9.75rem, 20vw, 16rem);
  aspect-ratio: 1;
  border-radius: 47% 53% 56% 44% / 54% 45% 55% 46%;
  background: conic-gradient(#e1caff var(--splash-fill), #d2baf838 0);
  box-shadow: 0 0 1.5rem #b899e326;
  animation: splash-ring-load .78s ease-out both, splash-ring-float 2.2s ease-in-out infinite;
}
.splash-ring::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: inherit;
  background: var(--splash-bg);
}
#site-splash.is-leaving {
  animation: splash-lift .82s cubic-bezier(.76, 0, .24, 1) .4s forwards;
}
#site-splash.is-leaving .splash-ring {
  animation-name: splash-ring-close, splash-ring-float;
  animation-duration: .26s, 2.2s;
}
@keyframes splash-ring-float {
  0%, 100% {
    border-radius: 47% 53% 56% 44% / 54% 45% 55% 46%;
    transform: translate(-4%, 1%) rotate(-12deg) scale(1.02, .95);
  }
  35% {
    border-radius: 55% 45% 43% 57% / 46% 57% 43% 54%;
    transform: translate(3%, -4%) rotate(13deg) scale(.96, 1.04);
  }
  68% {
    border-radius: 44% 56% 53% 47% / 48% 48% 52% 52%;
    transform: translate(4%, 3%) rotate(6deg) scale(1.04, .98);
  }
}
@keyframes splash-word-float {
  0%, 100% { transform: translate(-.035em,.015em) rotate(-2deg); }
  35% { transform: translate(.025em,-.065em) rotate(1.8deg); }
  68% { transform: translate(.035em,.035em) rotate(.5deg); }
}
@keyframes splash-letter-pulse {
  0%, 100% { transform: scale(1.03,.95); }
  32% { transform: translateY(-.05em) scale(.96,1.09); }
  66% { transform: translateY(.01em) scale(1.06,.97); }
}
@keyframes splash-ring-load {
  from { --splash-fill: 0%; }
  to { --splash-fill: 80%; }
}
@keyframes splash-ring-close {
  from { --splash-fill: var(--splash-start, 80%); }
  to { --splash-fill: 100%; }
}
@keyframes splash-lift {
  from { clip-path: inset(0); }
  to { clip-path: inset(0 0 100% 0); visibility: hidden; }
}
@keyframes splash-timeout {
  to { visibility: hidden; }
}
@media (prefers-reduced-motion: reduce) {
  .splash-ring { --splash-fill: 100%; animation: none; }
  .splash-wordmark, .splash-wordmark > span { animation: none; }
  #site-splash.is-leaving { display: none; }
}

button, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  min-height: 44px;
  padding: .62rem 1rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--button);
  color: var(--on-button);
  font-weight: 560;
  line-height: 1.3;
  cursor: pointer;
  text-decoration: none;
  transition: background .2s, color .2s, border-color .2s,
    box-shadow .38s ease, scale .42s cubic-bezier(.2,.72,.27,1),
    translate .32s cubic-bezier(.2,.72,.27,1);
}
button:hover, .button:hover { background: var(--button-hover); }
button:disabled { opacity: .65; cursor: wait; }
button.secondary, .button.secondary { background: var(--surface); border-color: var(--line); color: var(--ink); }
button.secondary:hover, .button.secondary:hover { background: var(--soft); }
button.link { background: transparent; color: var(--accent); padding: .3rem .5rem; }
button.link:hover { background: var(--soft); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  :is(button,.button):not(:disabled,[aria-disabled=true]):is(:hover,:focus-visible) {
    scale: var(--button-inflate, 1.07 1.13);
    box-shadow: var(--button-hover-shadow, 0 .45rem 1rem -.46rem #50356870, inset 0 1px 0 #ffffff36);
  }
  :is(button,.button):not(:disabled,[aria-disabled=true]):hover {
    translate: var(--button-pull-x, 0px) var(--button-pull-y, 0px);
  }
  :is(button,.button):not(:disabled,[aria-disabled=true]):active { scale: .99 .98; translate: 0 0; }
  :is(.nav-item,.status-filter,.overview-stat,.demo-roles button) {
    --button-inflate: 1.026 1.06;
    --button-hover-shadow: none;
  }
}

.shell { width: min(1120px, 100% - 3rem); margin-inline: auto; }
.top { background: var(--surface); border-bottom: 1px solid var(--line); }
.top .shell {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto auto;
  align-items: center;
  gap: .9rem;
  padding-block: .85rem;
}
.brand { display: inline-flex; align-items: center; justify-self: start; gap: .65rem; color: var(--ink); text-decoration: none; font-size: .96rem; font-weight: 600; }
.brand-mark { display: block; flex: none; width: 3.25rem; height: 3.25rem; transition: transform .2s ease; }
.brand:hover .brand-mark { transform: rotate(-5deg); }
.nav, .row { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.nav { gap: .25rem; }
.nav-item { padding-inline: .7rem; background: transparent; color: var(--muted); font-size: .91rem; }
.nav-item:hover { background: var(--soft); color: var(--ink); }
.nav-item[aria-current=page] { background: var(--soft); color: var(--accent); }
#unread:empty { display: none; }
#unread:not(:empty) { border-radius: 99px; background: var(--violet-bg); color: var(--violet); padding: .05rem .36rem; font-size: .8rem; }
#theme { justify-self: end; width: 44px; padding: .4rem; border-radius: 50%; }
.theme-icon { display: block; }

.nav-icon { flex: none; width: 1.1rem; height: 1.1rem; }
.workspace-content {
  --workspace-art: url("/assets/workspace-plan.svg");
  --workspace-art-opacity: .34;
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 100vh;
  background: var(--bg);
}
:root[data-theme=dark] .workspace-content { --workspace-art-opacity: .4; }
.workspace-content:is([data-view=overview],[data-view=profile]) { --workspace-art: url("/assets/workspace-tools.svg"); }
.workspace-content:is([data-view=orders],[data-view=notices]) { --workspace-art: url("/assets/workspace-draft.svg"); }
.workspace-content::before {
  position: absolute;
  z-index: -1;
  inset: 4.5rem 0 0;
  pointer-events: none;
  background-image: var(--workspace-art);
  background-repeat: no-repeat;
  background-position: right -1.5rem bottom 2.5rem;
  background-size: min(84%, 59rem) auto;
  opacity: var(--workspace-art-opacity);
  content: "";
}
.workspace-content .shell { width: min(73rem, 100% - clamp(2rem, 6vw, 5rem)); }
.workspace-content main { flex: 1; padding-block: clamp(1.25rem, 2.7vw, 2rem); }
.workspace-top, .workspace-navigation { background: var(--surface); }
.workspace-bar, .workspace-identity, .workspace-nav { display: flex; align-items: center; }
.workspace-bar { justify-content: space-between; gap: .75rem; padding-block: .7rem .3rem; }
.workspace-bar .brand-mark { width: 2.6rem; height: 2.6rem; }
.workspace-identity { gap: .85rem; min-width: 0; }
.workspace-identity .brand { white-space: nowrap; }
.workspace-navigation { position: sticky; z-index: 2; top: 0; border-bottom: 1px solid var(--line); }
.workspace-nav { gap: .35rem; padding-block: .35rem .65rem; }
.workspace-nav .nav-item, .status-filter { gap: .45rem; padding-inline: .8rem; font-size: .9rem; font-weight: 500; }
.workspace-nav .nav-item[aria-current=page], .status-filter[aria-pressed=true] {
  background: var(--tab-active);
  color: var(--ink);
}
.workspace-help { margin-inline-start: auto; }
.workspace-label {
  color: var(--muted);
  font-size: .9rem;
  font-weight: 500;
  text-decoration: none;
  padding: .65rem .55rem;
  margin-inline-start: -.55rem;
  border-radius: .5rem;
  transition: color .2s, background .2s;
}
.workspace-label:hover { color: var(--accent); background: var(--soft); }
.workspace-content footer { border-top: 1px solid var(--line); font-size: .86rem; }
.workspace-content h1 { font-size: clamp(1.85rem, 3.6vw, 2.375rem); }
.workspace-content h2 { font-size: clamp(1.1rem, 2vw, 1.4rem); }
.workspace-content :is(button,.button).secondary { border-radius: .55rem; }
.workspace-content #theme { border-radius: 50%; }

main.shell { padding-block: clamp(1.35rem,4vw,3rem); }
.demo-toolbar {
  display: flex;
  align-items: center;
  gap: .45rem .7rem;
  flex-wrap: wrap;
  width: fit-content;
  max-width: 100%;
  margin-block-end: clamp(1.25rem,3vw,2rem);
}
.demo-label { color: var(--muted); font-size: .86rem; font-weight: 670; }
.demo-roles { display: flex; flex-wrap: wrap; gap: .35rem; }
.demo-roles button {
  min-height: 44px;
  padding: .45rem .78rem;
  border-radius: 999px;
  border-color: var(--line);
  background: transparent;
  color: var(--muted);
  font-size: .88rem;
  font-weight: 660;
}
.demo-roles button:hover { background: var(--soft); color: var(--ink); }
.demo-roles button[aria-pressed=true] { color: var(--violet); background: var(--violet-bg); border-color: var(--violet-bg); }
.role-dot { flex: none; width: .66rem; height: .66rem; border: 1px solid currentColor; border-radius: 50%; }
button[aria-pressed=true] .role-dot { background: currentColor; box-shadow: inset 0 0 0 2px var(--violet-bg); }
.workspace-content .demo-toolbar { margin-bottom: clamp(1rem, 3vw, 1.55rem); }
.workspace-content .demo-roles button { background: transparent; border-color: transparent; }
.workspace-content .demo-roles button:hover { background: var(--surface); }
.workspace-content .demo-roles button[aria-pressed=true] { color: var(--accent); background: var(--soft); }

h1, h2, h3, p { margin: 0 0 .68rem; }
h1, h2, h3 { line-height: 1.16; letter-spacing: -.02em; }
h1 { font-size: clamp(2rem,5vw,3.4rem); font-weight: 500; text-wrap: balance; }
h2 { font-size: clamp(1.33rem,2.6vw,1.9rem); font-weight: 560; }
h3 { font-size: 1.14rem; font-weight: 590; }
p:last-child { margin-bottom: 0; }
.lead { color: var(--muted); font-size: 1.07rem; max-width: 58ch; }
.page-heading { justify-content: space-between; gap: .9rem; }
.page-heading h1 { margin: 0; }
.section-heading { justify-content: space-between; }
.section-heading h2 { margin: 0; }

section { margin-top: 1.5rem; }
.process { max-width: 44rem; scroll-margin-top: 1.25rem; padding: clamp(1rem, 3vw, 1.75rem); border: 1px solid var(--line); border-radius: 1rem; background: var(--surface); }
.process-list { margin: 0; padding-inline-start: 1.55rem; }
.process-list li { padding: .8rem 0 .8rem .5rem; }
.process-list li + li { border-top: 1px solid var(--line); }
.process-list li::marker { color: var(--accent); font-weight: 700; }
.process-list p { color: var(--muted); }

.landing-chrome, .story {
  --story-gutter: max(clamp(1.25rem, 6vw, 6rem), calc((100% - 90rem) / 2));
}
.landing-chrome {
  position: absolute;
  z-index: 3;
  inset: 0 0 auto;
  padding-top: env(safe-area-inset-top);
  background: linear-gradient(to bottom, #14101ed9, #14101e00);
  pointer-events: none;
}
.landing-chrome .shell { width: auto; margin-inline: var(--story-gutter); }
.landing-chrome .top { background: transparent; border: 0; }
.landing-chrome :is(a,button) { pointer-events: auto; }
.landing-chrome .brand, .landing-chrome .nav-item { color: #fff; }
.landing-chrome .nav-item:is(:hover,[aria-current=page]) { background: #322b3e; }
.landing-chrome .demo-toolbar {
  gap: .55rem;
  margin: 0 0 .55rem;
  padding: .22rem .32rem .22rem .82rem;
  background: #241d30ed;
  border-radius: 1.3rem;
}
.landing-chrome .demo-label, .landing-chrome .demo-roles button { color: #e7e0ef; }
.landing-chrome .demo-roles button { border-color: #766c82; }
.landing-chrome .demo-roles button:hover { background: #413748; }
.landing-chrome .demo-roles button[aria-pressed=true] { color: #241736; background: #e1cff8; }
.landing-chrome :focus-visible, .story-intro :focus-visible { outline-color: #ffe4a6; }

.story {
  position: relative;
  margin: 0;
  --scene-ink: #2c2237;
  --scene-muted: #54495f;
  --scene-accent: #5f4082;
  --scene-tag: #ffffff75;
  --scene-stage: radial-gradient(ellipse at 77% 50%, #ded0ed 0%, transparent 58%),
    linear-gradient(128deg, #f5f2fa 20%, #efebf4 65%, #e2ebed);
  background: var(--bg);
  color: var(--scene-ink);
}
:root[data-theme=dark] .story {
  --scene-ink: #f7f1ff;
  --scene-muted: #d3cadd;
  --scene-accent: #dfc9fa;
  --scene-tag: #59486b94;
  --scene-stage: radial-gradient(ellipse at 75% 55%, #4a375e 0%, transparent 58%),
    radial-gradient(ellipse at 98% 0, #294454 0%, transparent 45%),
    linear-gradient(125deg, #171320 20%, #251d30 75%, #1a1623);
}
.story-stage { position: relative; isolation: isolate; background: var(--scene-stage); }
.story-slide {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  min-height: 100vh;
  min-height: 100svh;
}
.story-copy {
  position: relative;
  z-index: 1;
  grid-area: 1 / 1;
  display: grid;
  align-items: center;
  min-width: 0;
  min-height: 0;
  padding: clamp(2rem, 7vh, 5rem) clamp(1rem, 2.8vw, 3rem) clamp(2.75rem, 7vh, 5rem) var(--story-gutter);
}
.story-page { width: 100%; min-width: 0; max-width: 42rem; }
.story-page h2, .story-page h1 { max-width: 18ch; margin: 0 0 .38em; line-height: 1.06; }
.story-page h2 { font-size: clamp(2.15rem, 4.2vw, 4.35rem); }
.story-page p { margin: 0 0 .68em; color: var(--scene-muted); line-height: 1.5; }
.story-page p:last-child { margin: 0; }
.story-steps { margin: 0; padding-inline-start: 1.4rem; }
.story-steps li { padding-inline-start: .25rem; }
.story-steps li + li { margin-top: .65rem; }
.story-steps li::marker { color: var(--scene-accent); font-weight: 750; }
.story-steps p { margin-top: .12rem; }
.team-universities { margin: .8rem 0; padding: 0; list-style: none; }
.team-universities li { border-radius: .5rem; padding: .18rem .56rem; background: var(--scene-tag); font-size: .88rem; font-weight: 660; }
.story-intro { color: #fff; }
.intro-photo { position: absolute; inset: 0; margin: 0; background: #231f28; }
.intro-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 58% center; }
.intro-photo::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,#17111deb 0%,#211a25d4 29%,#201a294a 70%,#201a2920),
    linear-gradient(0deg,#18121e7a,transparent 35%);
  content: "";
}
.intro-photo figcaption {
  position: absolute;
  z-index: 1;
  right: var(--story-gutter);
  bottom: calc(1.2rem + env(safe-area-inset-bottom));
  font-size: .8rem;
}
.intro-photo figcaption a {
  color: rgb(255 255 255 / .6);
  text-decoration: none;
  transition: color .16s;
}
.intro-photo figcaption a:hover { color: #fff; }
.story-intro .story-copy {
  grid-column: 1 / -1;
  padding-top: calc(var(--landing-header-height, 9rem) + 1.25rem);
  padding-bottom: max(4.5rem, 8vh);
  pointer-events: none;
}
.story-intro .story-page { max-width: 50rem; pointer-events: auto; }
.story-intro h1 { max-width: 14ch; font-size: clamp(2.65rem, 5.9vw, 5.8rem); }
.story-intro .lead { max-width: 43ch; color: #eee9ed; font-size: clamp(1rem, 1.45vw, 1.2rem); }
.story-intro .row { margin-top: clamp(1.25rem, 3vh, 2rem); gap: .65rem 1.3rem; }
.story-intro .row a { color: #fff; font-weight: 650; }
.story-intro button {
  color: #271934;
  background: #ebd7ff;
  border-color: transparent;
  border-radius: 999px;
}
.story-intro button:hover { background: #f8edff; }
.story-intro button { padding: .78rem 1.35rem; }
.story-order {
  display: inline-flex;
  min-height: clamp(3.65rem, 8vh, 4.8rem);
  padding: .78rem clamp(1.65rem, 4vw, 3.2rem);
  margin-top: 1.35rem;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 750;
  box-shadow: 0 6px 24px #1b0c2c20;
}

.story-campus {
  position: relative;
  grid-area: 1 / 2;
  align-self: center;
  height: clamp(15rem, 70vh, 45rem);
  min-width: 0;
  pointer-events: none;
}
.campus-card {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: minmax(0,1fr) auto;
  align-content: center;
  margin: 0;
  padding: 4% var(--story-gutter) 4% 1.5%;
  text-align: center;
}
.campus-model { display: block; width: 100%; height: 100%; min-height: 0; }
.campus-card figcaption { display: grid; gap: .2rem; line-height: 1.25; }
.campus-card strong { font-size: clamp(1.05rem, 1.7vw, 1.55rem); font-weight: 740; }
.campus-card span { color: var(--scene-muted); font-size: .89rem; }

.story-meter { display: none; }
.story #process { display: block; height: 0; margin: 0; }
.story-motion { min-height: var(--story-height); overflow-anchor: none; }
.story-motion > #process { position: absolute; left: 0; top: var(--story-travel); }
.story-motion .story-stage { position: sticky; top: 0; height: 100vh; height: 100dvh; overflow: clip; }
.story-motion .story-slide { position: absolute; inset: 0; min-height: 0; grid-template-rows: minmax(0,1fr); }
.story-motion .story-slide[inert] { pointer-events: none; }
.story-motion .story-meter {
  position: absolute;
  z-index: 2;
  display: block;
  bottom: calc(.8rem + env(safe-area-inset-bottom));
  left: 50%;
  width: 5rem;
  height: 3px;
  transform: translateX(-50%);
  background: #887e935e;
}
.story-meter::before {
  display: block;
  height: 100%;
  background: var(--scene-accent);
  transform: scaleX(var(--story-progress, .25));
  transform-origin: left;
  content: "";
}

@media(max-width: 680px) {
  .story-slide { grid-template-columns: minmax(0,1fr); grid-template-rows: auto auto; align-content: center; }
  .story-copy { grid-area: 2 / 1; padding: 1rem var(--story-gutter) calc(2.6rem + env(safe-area-inset-bottom)); }
  .story-campus { grid-area: 1 / 1; height: clamp(11rem, 35svh, 22rem); }
  .campus-card { padding: .75rem var(--story-gutter) .35rem; }
  .campus-card figcaption { gap: .1rem; }
  .story-intro { grid-template-rows: auto; align-content: stretch; }
  .story-intro .story-copy { grid-area: 1 / 1; }
  .story-intro h1 { font-size: clamp(2.6rem, 9.5vw, 3.6rem); }
  .story-page h2 { font-size: clamp(1.9rem, 6.5vw, 2.6rem); }
  .intro-photo img { object-position: 64% center; }
  .intro-photo::after {
    background: linear-gradient(90deg,#1b142957,#1b142930),
      linear-gradient(0deg,#17111ded 0%,#211a25d9 42%,#211a259e 75%,#211a2570);
  }
  .intro-photo figcaption { bottom: calc(1.75rem + env(safe-area-inset-bottom)); }
  .story-motion .story-slide { grid-template-rows: minmax(0,36%) minmax(0,1fr); align-content: stretch; }
  .story-motion .story-campus { height: 100%; }
  .story-motion .story-copy { align-items: start; }
  .story-motion .story-intro { grid-template-rows: minmax(0,1fr); }
  .story-motion .story-intro .story-copy { align-items: center; }
}

.card, .panel {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: clamp(1rem, 3vw, 1.5rem);
}
.dashboard-banner {
  --overview-gutter: clamp(1rem, 4vw, 2.5rem);
  --overview-base: #22192e;
  overflow: clip;
  border-radius: 1.1rem;
  background: var(--overview-base);
  color: #f9f4ff;
}
.dashboard-intro {
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding: var(--overview-gutter);
  background: linear-gradient(180deg, #3f2d58, #342544 48%, var(--overview-base));
}
.dashboard-intro::before {
  position: absolute;
  inset-block-start: -8rem;
  inset-inline-end: -1.25rem;
  z-index: -1;
  width: clamp(12rem, 32vw, 27rem);
  height: 15rem;
  border: 1px solid #e3cafd38;
  border-radius: 47% 53% 52% 48%;
  outline: 1px solid #e3cafd27;
  outline-offset: 1rem;
  transform: rotate(-26deg);
  content: "";
}
.dashboard-banner h1 { margin: 0; }
.dashboard-intro p { max-width: 43ch; margin-block: .65rem 1rem; color: #e4d7ef; }
.dashboard-intro button { background: #ebd7ff; color: #271934; }
.dashboard-intro button:hover { background: #f8edff; }
.dashboard-banner button:focus-visible { outline-color: #eedaff; }
.empty-state {
  padding-block: 1.25rem;
  color: var(--muted);
}
.empty-state h2 { color: var(--ink); }
.record-list { margin-top: .85rem; border-block-start: 1px solid var(--line); }
:is(.record-list,.order-list) + button { margin-top: .8rem; }
.overview-status {
  padding: .35rem var(--overview-gutter) var(--overview-gutter);
}
.overview-status h2 { margin-bottom: .55rem; }
.overview-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(min-content, 1fr));
  gap: .65rem;
  padding: .2rem;
  overflow-x: auto;
  scrollbar-width: thin;
}
.overview-stat {
  justify-content: space-between;
  gap: 1rem;
  min-width: 0;
  border: 1px solid #e0c9fa38;
  border-radius: .65rem;
  background: #30243e;
  padding: .7rem .85rem;
  color: inherit;
  text-align: left;
}
.overview-stat:hover { background: #3e2e50; }
.overview-stat:focus-visible { outline-offset: -3px; }
.overview-stat span { font-size: .94rem; white-space: nowrap; }
.overview-stat strong { flex: none; font-size: 1.3rem; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; color: #ace2d3; }
.overview-stat[data-id=active] strong { color: #c0d6ff; }
.overview-stat[data-id=review] strong { color: #f2d697; }
.overview-help, #notice-paging:not(:empty) { margin-top: 1rem; }
.overview-help { display: none; }
.overview-help button { padding-inline-start: 0; }
.status-filters { display: flex; flex-wrap: wrap; gap: .3rem; padding-bottom: .5rem; border-bottom: 1px solid var(--line); }
.status-filter {
  background: transparent;
  color: var(--muted);
}
.status-filter:hover { background: var(--soft); color: var(--ink); }
.status-filter span { opacity: .8; font-variant-numeric: tabular-nums; }
.order-controls { gap: 1rem; margin-block-end: 1.25rem; }
.order-search { display: flex; flex-wrap: wrap; align-items: end; gap: .65rem; }
.order-search > label, .order-kind { flex: 1 1 10rem; }
.order-search .form-error:not(:empty) { width: 100%; }
.order-kind { position: relative; display: grid; gap: .35rem; min-width: 0; }
.kind-trigger {
  justify-content: space-between;
  padding-inline: .75rem;
  border-color: var(--line);
  border-radius: .5rem;
  background: var(--bg);
  color: var(--ink);
  font-weight: 450;
  text-align: left;
}
.kind-trigger .nav-icon { rotate: 90deg; color: var(--muted); transition: rotate .2s; }
.kind-trigger[aria-expanded=true] .nav-icon { rotate: -90deg; color: var(--violet); }
.kind-trigger:is(:hover,[aria-expanded=true]) { background: var(--soft); border-color: var(--accent); }
.kind-options {
  position: absolute;
  z-index: 1;
  inset: calc(100% + .4rem) 0 auto;
  max-height: min(26rem, var(--kind-menu-height, 25rem));
  overflow: auto;
  overscroll-behavior: contain;
  padding: .3rem;
  border: 1px solid var(--line);
  border-radius: .8rem;
  background: var(--surface);
  box-shadow: 0 .7rem 1.8rem #100b2650;
}
.kind-options.opens-above { inset-block: auto calc(100% + .4rem); }
.kind-options button {
  width: 100%;
  justify-content: space-between;
  padding: .5rem .65rem;
  border-radius: .5rem;
  background: transparent;
  color: var(--ink);
  font-size: .94rem;
  text-align: left;
}
.kind-options button:is(:hover,:focus-visible) { background: var(--soft); }
.kind-options button:focus-visible { outline-offset: -2px; }
.kind-options button[aria-selected=true] { background: var(--violet-bg); color: var(--violet); font-weight: 650; }
.kind-check { visibility: hidden; flex: none; }
[aria-selected=true] .kind-check { visibility: visible; }
.order-kind button:not(:disabled):is(:hover,:focus-visible,:active) { scale: none; translate: none; box-shadow: none; }
.inbox .record-list { margin-top: 0; border-block-start: 0; }
.list-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .65rem 1rem;
  padding: .9rem .65rem;
  border-block-end: 1px solid var(--line);
}
.list-row:last-child { border-block-end: 0; }
.list-row > div:first-child { min-width: 0; }
.list-row h3 { margin-bottom: .25rem; }
.list-row .muted { font-size: .9rem; }
.record-name, .profile-heading { display: flex; align-items: center; gap: .8rem; }
.record-name > div { min-width: 0; }
.record-icon, .account-avatar {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: .7rem;
  background: var(--violet-bg);
  color: var(--violet);
}
.account-avatar { border-radius: 50%; font-weight: 730; }
.conversation-card h3 a { color: var(--ink); text-decoration: none; }
.conversation-card h3 a:hover { color: var(--accent); }
.conversation-preview { white-space: pre-line; color: var(--muted); }
.inbox-empty { display: grid; justify-items: center; padding-block: 2rem; text-align: center; }
.inbox-empty .record-icon { width: 3.1rem; height: 3.1rem; margin-bottom: .85rem; }
.inbox-empty p { max-width: 36ch; }
.notice-row small { display: block; margin-bottom: .3rem; }
.order-list { display: grid; gap: .55rem; margin-block-start: .85rem; }
.order-card {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto auto;
  align-items: center;
  gap: .55rem .8rem;
  padding: .8rem .95rem;
  border: 1px solid var(--line);
  border-radius: .8rem;
  background: var(--bg);
  color: var(--ink);
  text-decoration: none;
  transition: background .2s, border-color .2s;
}
.order-card h3 { margin: 0 0 .18rem; }
.order-card p { margin: 0; font-size: .9rem; }
.order-card-meta { justify-content: flex-end; }
.order-card > .nav-icon { color: var(--muted); transition: color .2s; }
.order-card:is(:hover,:focus-visible) { background: var(--soft); border-color: var(--accent); }
.order-card:is(:hover,:focus-visible) > .nav-icon { color: var(--accent); }
.offer-count { color: var(--muted); font-size: .9rem; }
.offer-card { min-width: 0; padding: .85rem; border: 1px solid var(--line); border-radius: .5rem; background: var(--bg); }
.offer-selected { border-color: var(--green); }
.offer-heading { justify-content: space-between; gap: .35rem; }
.offer-price { margin-block: .3rem; color: var(--accent); font-size: 1.18rem; font-weight: 720; }
#team-offer { padding-top: .85rem; border-top: 1px solid var(--line); }
.order-actions { margin-block-end: 1rem; }
.order-heading { border-inline-start: 3px solid var(--accent); }
#order-chat { scroll-margin-top: 4.5rem; }
.order-title { text-wrap: pretty; }
.quote-total { font-size: 1.5rem; color: var(--accent); }
.pill {
  display: inline-block;
  width: fit-content;
  font-size: .86rem;
  font-weight: 680;
  padding: .26rem .62rem;
  background: var(--soft);
  color: var(--muted);
  border-radius: 999px;
}
.pill[data-status=open] { background: var(--teal-bg); color: var(--teal); }
.pill:is([data-status=accepted],[data-status=assigned]) { background: var(--violet-bg); color: var(--violet); }
.pill:is([data-status=paid],[data-status=completed]) { background: var(--green-bg); color: var(--green); }
.pill:is([data-status=quoted],[data-status=awaiting_payment]) { background: var(--slate-bg); color: var(--slate); }
.pill[data-status=in_progress] { background: var(--blue-bg); color: var(--blue); }
.pill[data-status=review] { background: var(--amber-bg); color: var(--amber); }
.pill[data-status=revision] { background: var(--rose-bg); color: var(--rose); }
.pill:is([data-status=cancelled],[data-status=disputed]) { background: var(--danger-bg); color: var(--danger); }
:is(.record-list,.order-card) .pill { display: inline-flex; align-items: center; gap: .4rem; }
.record-list .pill { padding: 0; background: transparent; }
:is(.record-list,.order-card) .pill::before { content: ""; flex: none; width: .45rem; height: .45rem; border-radius: 50%; background: currentColor; }
.chips { display: flex; gap: .4rem; flex-wrap: wrap; }
.chips span { background: var(--soft); border-radius: 999px; padding: .3rem .65rem; }
small, .muted { color: var(--muted); }
.columns { display: grid; grid-template-columns: minmax(0,1.65fr) minmax(0,1fr); gap: 1rem; align-items: start; }
.stack { display: grid; gap: .8rem; }
.narrow { max-width: 720px; margin-inline: auto; }
.account-access { max-width: 33rem; }
.workspace-content[data-view=profile] main { width: min(90rem, 100% - clamp(2rem, 6vw, 5rem)); }
.profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  align-items: start;
  gap: 1rem;
  margin-top: 1rem;
}
.profile-grid section { margin-top: 0; }
.profile-heading {
  min-height: 6.5rem;
  background: linear-gradient(108deg, var(--soft), var(--surface) 62%);
}
.profile-heading .account-avatar { width: 3.8rem; height: 3.8rem; font-size: 1.15rem; }
.profile-heading h2 { margin-bottom: .3rem; }
.profile-data form, .profile-telegram p { margin-top: 1rem; }
.profile-data form { gap: 1rem; }
.profile-link-status { border-radius: 999px; padding: .3rem .6rem; font-size: .83rem; background: var(--slate-bg); color: var(--slate); }
.profile-link-status.is-connected { background: var(--teal-bg); color: var(--teal); }
.profile-telegram #telegram-confirm:not(:empty) { margin-top: .75rem; }
.profile-facts { margin: .75rem 0 .9rem; }
.profile-facts > div { padding-block: .65rem; border-top: 1px solid var(--line); }
.profile-facts dt { margin-bottom: .2rem; font-size: .85rem; color: var(--muted); }
.profile-facts dd { margin: 0; }
.timeline { margin: 0; padding: 0; list-style: none; }
.timeline li { padding: .6rem .65rem .6rem 1.07rem; border-left: 1px solid var(--line); position: relative; margin-left: .35rem; }
.timeline li::before { content: ""; position: absolute; left: -4px; top: 1.05rem; border-radius: 50%; width: 7px; height: 7px; background: var(--accent); }
.timeline li:last-child { border-left-color: transparent; }

.request-layout { display: grid; align-items: start; grid-template-columns: minmax(0,.75fr) minmax(0,1.25fr); gap: clamp(1rem,4vw,3.25rem); }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .9rem; }
.full { grid-column: 1/-1; }
label { display: grid; min-width: 0; gap: .35rem; font-size: .94rem; font-weight: 660; }
input, select, textarea {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: .62rem .75rem;
  border-radius: .5rem;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  font-weight: 450;
}
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 1; }
select {
  appearance: none;
  padding-inline-end: 2.2rem;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 1.05rem) 50%, calc(100% - .75rem) 50%;
  background-size: .3rem .3rem;
  background-repeat: no-repeat;
}
textarea { resize: vertical; min-height: 112px; }
input[type=file] { padding: .5rem; }
input::file-selector-button { border: 0; border-radius: 8px; padding: .38rem .6rem; margin-inline-end: .55rem; background: var(--soft); color: var(--ink); font: inherit; cursor: pointer; }
.form-error { color: var(--danger); margin: 0; }
.form-error:empty { display: none; }
.article-text, .bubble { white-space: pre-wrap; }
.bubble { padding: .75rem 1rem; background: var(--bg); border-radius: .55rem; }
.chat-log { max-height: 26rem; overflow-y: auto; overscroll-behavior: contain; }
pre { white-space: pre-wrap; overflow-wrap: anywhere; }
details { padding: .65rem 0; border-bottom: 1px solid var(--line); }
details summary { cursor: pointer; font-weight: 700; }
details form { margin-top: .65rem; }
footer { padding: 1.5rem 0 calc(1.5rem + env(safe-area-inset-bottom)); color: var(--muted); display: flex; gap: 1rem; flex-wrap: wrap; }
#toast:not(:empty) { position: fixed; bottom: calc(1rem + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); width: max-content; max-width: calc(100% - 1.5rem); padding: .8rem 1rem; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); z-index: 1; }

@media(max-width: 760px) {
  .shell { width: calc(100% - 1.75rem); }
  .columns, .request-layout, .profile-grid { grid-template-columns: 1fr; }
}
@media(max-width: 820px) {
  .workspace-navigation {
    position: fixed;
    inset: auto 0 0;
    padding: .42rem .45rem calc(.42rem + env(safe-area-inset-bottom));
    border: 0;
    border-top: 1px solid var(--line);
  }
  .workspace-help, .workspace-label { display: none; }
  .overview-help { display: block; }
  .workspace-content .workspace-nav {
    display: grid;
    width: 100%;
    grid-template-columns: minmax(0,1fr) minmax(0,1fr) minmax(0,1.3fr) minmax(0,1fr);
    gap: .2rem;
    padding: 0;
  }
  .workspace-nav .nav-item { flex-direction: column; justify-content: center; gap: .2rem; min-height: 56px; padding: .3rem .18rem; font-size: .84rem; border-radius: .85rem; }
  .workspace-content { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
  .workspace-content::before { background-position: right -4rem bottom 5.5rem; background-size: clamp(24rem, 92%, 43rem) auto; }
  .workspace-bar { padding-block: .7rem; }
  .workspace-actions { gap: .2rem; flex-wrap: nowrap; }
  #order-chat { scroll-margin-top: 1rem; }
  #root:has(.workspace-content) + #toast:not(:empty) { bottom: calc(78px + env(safe-area-inset-bottom)); }
}
@media(max-width: 640px) {
  .top .shell { grid-template-columns: minmax(0,1fr) auto; gap: .35rem .75rem; }
  .top .nav { grid-column: 1/-1; grid-row: 2; }
  .top .nav:empty { display: none; }
  #theme { grid-column: 2; grid-row: 1; }
  .overview-stats { gap: .35rem; }
  .overview-stat { flex-direction: column; align-items: flex-start; gap: .45rem; padding: .55rem .45rem; }
  .overview-stat span { font-size: .86rem; }
  .orders-panel .status-filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: thin; }
  .orders-panel .status-filter { flex: none; }
  .orders-panel .status-filter:focus-visible { outline-offset: -2px; }
  .order-card { grid-template-columns: minmax(0,1fr) auto; padding-inline: .75rem; }
  .order-card-meta { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; }
  .order-card > .nav-icon { grid-column: 2; grid-row: 1; }
}
@media(max-width: 440px) {
  .form-grid { grid-template-columns: 1fr; }
  .workspace-identity .brand > span { display: none; }
  .workspace-nav .nav-item { font-size: .78rem; }
  .order-search > label, .order-kind { flex-basis: 100%; }
  .demo-roles button { padding-inline: .48rem; font-size: .8rem; gap: .32rem; }
  .nav-item { position: relative; padding-inline: .2rem; font-size: .82rem; white-space: nowrap; }
  #unread:not(:empty) { position: absolute; inset-block-start: 0; inset-inline-end: 0; }
}
@media(prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
