/* Shared refinement of the existing Space Grotesk / navy / ice-blue identity. */
:root {
  --bg: #060d18;
  --panel: #0d1725;
  --alt: #111e30;
  --text: #f3f6fb;
  --muted: #a4b5cb;
  --line: #a9c0df24;
  --blue: #9bc7ff;
  --soft: #172d48;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --motion-feedback: 160ms;
  --motion-state: 200ms;
  --motion-overlay: 250ms;
  --space-group: 1.5rem;
  --space-section: clamp(4rem, 8vw, 8rem);
  --page-gutter: clamp(1.25rem, 5vw, 5rem);
  --page-width: 1280px;
  scrollbar-color: #506784 var(--bg);
}
html { scroll-behavior: smooth; scroll-padding-top: 6rem; }
body { font-size: 16px; line-height: 1.55; }
b, strong { font-weight: 600; }
::selection { background: #9bc7ff; color: #071221; }
input, textarea { caret-color: var(--blue); }
input::placeholder, textarea::placeholder { color: #91a5c0; opacity: 1; }
h1, h2, h3 { text-wrap: balance; letter-spacing: -.03em; }
p { text-wrap: pretty; }
a { text-underline-offset: .3em; }
button, .button {
  min-height: 44px;
  border-radius: 10px;
  font-size: .875rem;
  transition: background-color var(--motion-feedback) ease,
    color var(--motion-feedback) ease, border-color var(--motion-feedback) ease,
    transform var(--motion-feedback) var(--ease-out);
}
button:hover, .button:hover { transform: none; }
button:active:not(:disabled), .button:active { transform: scale(.98); }
button:disabled { cursor: not-allowed; }
.primary { background: var(--blue); color: #071426; }
.primary:hover { background: #b7d7ff; }
.small { font-size: .8125rem; }
.badge { font-size: .75rem; line-height: 1.5; padding: 4px 8px; }
.badge.grey { color: #b5c6da; }
.text-link { display: inline-flex; align-items: center; gap: .65rem; font-size: .875rem; font-weight: 600; }
.text-link:hover { text-decoration: underline; }
.text-link svg { flex-shrink: 0; }
.sidebar-close, .nav-scrim { display: none; }

/* Public product narrative: a clear introduction, then the original app demo. */
.public-site .site-nav {
  position: absolute;
  height: 88px;
  padding-inline: var(--page-gutter);
  border: 0;
}
.site-nav nav { gap: 2rem; font-size: .875rem; }
.site-nav nav > a:not(.button) { padding-block: .75rem; }
.site-nav .brand { font-size: 1.5rem; }
.product-hero {
  max-width: calc(var(--page-width) + 2 * var(--page-gutter));
  margin-inline: auto;
  padding: 9rem var(--page-gutter) 4.5rem;
  min-height: min(850px, 100svh);
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: center;
  gap: 2rem;
}
.intro-copy { position: relative; z-index: 1; }
.intro-copy h1 { font-size: clamp(3rem, 5.4vw, 5.4rem); line-height: 1.04; margin: 0 0 2rem; max-width: 10ch; }
.intro-copy h1 span { color: var(--blue); }
.intro-copy p { max-width: 48ch; font-size: 1rem; line-height: 1.75; }
.intro-copy .intro-lead { color: var(--text); font-size: 1.125rem; max-width: 35ch; margin-bottom: .85rem; }
.intro-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1.5rem; margin-top: 2rem; }
.intro-actions .button { padding: .9rem 1.25rem; }
.intro-visual { position: relative; min-width: 0; margin: 0; height: 590px; display: grid; place-items: center; isolation: isolate; }
.intro-orbit { position: absolute; width: 100%; aspect-ratio: 1; border: 1px solid var(--line); border-radius: 50%; z-index: -1; }
.intro-device {
  width: 262px;
  padding: 9px;
  border-radius: 37px;
  background: #273750;
  box-shadow: 20px 35px 65px #02071080;
  transform: rotate(-6deg);
}
.intro-device img { display: block; width: 100%; height: auto; border-radius: 29px; }
.intro-note { position: absolute; left: -1rem; bottom: 4rem; display: flex; align-items: center; gap: 1rem; background: #d8e9ff; color: #10233a; padding: 1.25rem 1.5rem; border-radius: 12px; box-shadow: 0 18px 40px #02071045; }
.intro-note-symbol { display: grid; place-items: center; }
.intro-note-symbol svg { width: 28px; height: 28px; }
.intro-note strong { font-size: 1.25rem; letter-spacing: -.025em; line-height: 1.25; display: block; }
.intro-note div > span { display: block; font-size: .6875rem; color: #3d5877; margin-top: .75rem; }
.product-path { max-width: var(--page-width); margin: 0 auto; padding: 1.5rem var(--page-gutter); border-block: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 1rem; color: #c6d5e8; font-size: .875rem; }
.product-path > span[aria-hidden] { color: var(--blue); }
.public-site .scroll-story { height: 650svh; }
.story-stage { padding: 5rem var(--page-gutter); }
.story-copy h2 { font-size: clamp(2rem, 3.9vw, 3.75rem); line-height: 1.1; letter-spacing: -.03em; }
.story-copy p { font-size: 1rem; line-height: 1.75; }
.story-skip { font-size: .875rem; min-height: 44px; padding-top: .75rem; }
.story-bottom { font-size: .6875rem; letter-spacing: 0; }
.public-site .section { max-width: calc(var(--page-width) + 2 * var(--page-gutter)); margin-inline: auto; padding: var(--space-section) var(--page-gutter); }
.public-site .section h2 { font-size: clamp(2rem, 4.1vw, 3.5rem); line-height: 1.12; margin-bottom: 1.5rem; }
.feature-heading { display: grid; grid-template-columns: 1.35fr 1fr; gap: 3rem; align-items: end; }
.feature-heading p { max-width: 43ch; margin-bottom: 1.5rem; font-size: 1rem; }
.feature-editorial { display: grid; grid-template-columns: 1fr 1.1fr; gap: 5rem; align-items: center; margin-top: 3rem; }
.feature-visual { margin: 0; display: grid; justify-items: center; padding: 2.5rem 2rem; border-radius: 16px; background: #0d1a2c; }
.feature-visual img { width: min(100%, 250px); height: auto; border-radius: 12px; }
.feature-visual figcaption { margin-top: 1.5rem; max-width: 32ch; color: #b4c9e3; font-size: .8125rem; text-align: center; }
.feature-list article { padding: 2rem 0; border-bottom: 1px solid var(--line); }
.feature-list article:first-child { padding-top: 0; }
.feature-list article:last-child { border: 0; padding-bottom: 0; }
.feature-list h3 { font-size: 1.5rem; margin: .75rem 0; }
.feature-list p { font-size: 1rem; max-width: 47ch; margin: 0; }
.owner-journey { border-top: 1px solid var(--line); }
.journey-heading { display: flex; justify-content: space-between; gap: 3rem; align-items: end; }
.journey-heading > p { max-width: 38ch; font-size: 1rem; margin-bottom: 1.5rem; }
.journey-steps { list-style: none; padding: 0; margin: 3rem 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3rem; }
.journey-steps li { border-top: 1px solid var(--line); padding-top: 1.5rem; }
.step-number { color: var(--blue); font-size: .875rem; font-variant-numeric: tabular-nums; display: block; margin-bottom: 1.5rem; }
.journey-steps h3 { font-size: 1.125rem; margin-bottom: .75rem; }
.journey-steps p { font-size: .9375rem; max-width: 32ch; margin-bottom: 0; }
.public-site .workshop-section { display: grid; grid-template-columns: 1fr 1.05fr; align-items: center; gap: 4rem; border-top: 1px solid var(--line); }
.workshop-photo { height: 620px; border-radius: 16px; overflow: hidden; }
.workshop-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 62%; }
.workshop-copy p { font-size: 1rem; max-width: 44ch; }
.workshop-benefits { list-style: none; padding: 0; margin: 1.5rem 0; color: #c6d5e8; }
.workshop-benefits li { padding-block: .75rem; border-bottom: 1px solid var(--line); font-size: .9375rem; }
.workshop-copy > small { font-size: .75rem; margin-top: 1rem; display: block; }
.product-questions { border-top: 1px solid var(--line); display: grid; grid-template-columns: .8fr 1.2fr; gap: 4rem; }
.product-questions dl { margin: 0; }
.product-questions dl > div { padding: 1.5rem 0; border-bottom: 1px solid var(--line); }
.product-questions dl > div:first-child { padding-top: 0; }
.product-questions dt { font-size: 1.0625rem; font-weight: 600; }
.product-questions dd { margin: .75rem 0 0; color: var(--muted); line-height: 1.75; max-width: 65ch; }
.product-questions .text-link { color: var(--text); margin-top: .75rem; }
.owner-cta { border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.public-site .owner-cta h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); margin: 0; }
.owner-cta h2 span { color: var(--blue); }
.owner-cta .button { flex-shrink: 0; }
.site-footer { padding: 2.5rem var(--page-gutter); }
.site-footer nav { display: flex; gap: 2rem; align-items: center; }
.site-footer nav a { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; }
.portal-legal-footer { font-size: .75rem; }

/* Workspaces: a legible, task-first hierarchy with stable data. */
.shell { grid-template-columns: 248px minmax(0, 1fr); background: #09111e; }
.sidebar { background: var(--bg); padding: 2rem 1.25rem; }
.sidebar .brand { margin-inline: .5rem; }
.sidebar .workspace { letter-spacing: .025em; text-transform: none; font-size: .75rem; margin: .35rem 0 2.5rem .75rem; }
.nav-label { font-size: .6875rem; color: var(--muted); letter-spacing: .06em; margin: .5rem .75rem 1rem; }
.side-nav { gap: .5rem; }
.nav-item { min-height: 46px; font-size: .875rem; color: #aebed3; padding: .75rem; gap: .75rem; }
.nav-item.active { background: #1a304b; color: #d9eaff; }
.nav-item.active:before { display: none; }
.sidebar-bottom { font-size: .8125rem; }
.sidebar-bottom .row { align-items: flex-start; }
.sidebar-bottom .row > span:last-child { min-width: 0; overflow-wrap: anywhere; }
.sidebar-bottom small { font-size: .6875rem; }
.topbar { height: 76px; padding-inline: 2.5rem; background: var(--bg); }
.breadcrumb { font-size: .8125rem; }
.connection { color: #b4c4d8; font-size: .75rem; }
.content { padding: 2.5rem; max-width: 1520px; }
.page-head { margin-bottom: 2rem; align-items: flex-end; }
.page-head h1 { font-size: clamp(1.75rem, 2.7vw, 2.5rem); line-height: 1.15; margin: 0 0 .75rem; letter-spacing: -.03em; }
.page-head h1:focus { outline: none; }
.page-head p { font-size: .875rem; max-width: 65ch; line-height: 1.65; }
.workspace-priority { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 1.5rem 1.75rem; background: #172d48; border-radius: 12px; margin-bottom: 2rem; }
.workspace-priority h2 { font-size: 1.25rem; margin: .35rem 0 .5rem; color: #e6f0ff; }
.workspace-priority p { font-size: .875rem; color: #bfd2ed; margin: 0; max-width: 52ch; }
.workspace-priority .button, .workspace-priority button { flex-shrink: 0; }
.metric-grid { margin-bottom: 2rem; }
.metric { padding: 1.75rem 1.5rem; }
.metric label { font-size: .8125rem; color: #adbed5; margin-bottom: 1rem; }
.metric strong { font-size: 2rem; overflow-wrap: anywhere; line-height: 1.2; letter-spacing: -.03em; }
.metric small { font-size: .75rem; line-height: 1.65; max-width: 27ch; }
.two-col { gap: 1.5rem; grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr); align-items: start; }
.panel { border: 1px solid var(--line); background: var(--panel); border-radius: 12px; padding: 1.5rem; }
.panel h2 { font-size: 1.125rem; }
.panel p { font-size: .875rem; line-height: 1.7; }
.chart { height: 180px; }
.chart .bar { animation: none; background: #83b5ee; opacity: .85; border-radius: 3px 3px 0 0; }
.chart-labels { font-size: .75rem; gap: 1rem; }
.task { gap: 1rem; }
.task .task-icon { width: 36px; height: 36px; background: transparent; color: #b6d6ff; }
.task .task-copy { min-width: 0; }
.task strong { font-size: .875rem; font-weight: 600; }
.task small { font-size: .75rem; line-height: 1.5; margin-top: .35rem; color: #adbed5; }
.section-head { margin-top: 2.5rem; margin-bottom: 1rem; }
.section-head h2 { font-size: 1.25rem; }
.table-wrap { border-radius: 12px; scrollbar-color: #506784 #09111e; }
table { font-size: .875rem; }
th { font-size: .75rem; letter-spacing: 0; text-transform: none; font-weight: 600; padding: 1rem 1.25rem; color: #b6c8df; background: #111d2e; }
td { padding: 1.25rem; color: #e3ebf6; }
td small { font-size: .8125rem; line-height: 1.6; }
.filters { gap: .5rem; }
.filter { font-size: .8125rem; padding: .65rem .9rem; }
.filter.active { color: #d9eaff; background: var(--soft); }
.search { font-size: .875rem!important; padding: .75rem 1rem!important; max-width: 320px; }
label.field { font-size: .875rem; color: #b6c6dc; gap: .6rem; }
input, textarea, select { font-size: 1rem; min-height: 46px; background: #09111e; border-color: #9bb4d03d; }
.banner { font-size: .8125rem; line-height: 1.65; padding: 1rem 1.25rem; }
.notice { background: #25251f; color: #f2d7a4; border-color: #f2d7a42b; }
.empty { font-size: .875rem; line-height: 1.7; background: var(--panel); padding: 3rem 1.5rem; border-radius: 12px; }
.finance-summary, .detail, .error, .check-item { font-size: .875rem; }
.auth-art { border-right: 1px solid var(--line); padding: clamp(2rem, 5vw, 5rem); }
.auth-art h2 { font-size: clamp(2rem, 4vw, 3.75rem); letter-spacing: -.03em; max-width: 15ch; }
.auth-art > div { background: #060d18e6; padding: 2rem; border-radius: 12px; }
.auth-art p { font-size: 1rem; color: #c6d7ed; }
.auth-form { max-width: 500px; padding: 3rem; }
.auth-form .brand { margin-bottom: 3rem; }
.auth-form h1 { font-size: 2rem; }
.auth-form p { font-size: .9375rem; }
.auth-form footer { font-size: .875rem; line-height: 1.7; }

/* Selected motion opportunities: first encounter, feedback and state continuity. */
@media (prefers-reduced-motion: no-preference) {
  .intro-device { animation: introduce-app 700ms var(--ease-out) both; }
  .intro-note { animation: introduce-note 500ms 80ms var(--ease-out) both; }
}
@keyframes introduce-app { from { transform: translateY(5%) rotate(-2deg); } to { transform: translateY(0) rotate(-6deg); } }
@keyframes introduce-note { from { opacity: 0; transform: translateX(4%); } to { opacity: 1; transform: translateX(0); } }
#toast { font-size: .875rem; line-height: 1.6; background: #1b304a; color: #f0f6ff; border-color: #9bc7ff44; transition: opacity var(--motion-state) var(--ease-out), transform var(--motion-state) var(--ease-out); transform: translate(-50%, 15%); }
#toast.show { transform: translate(-50%, 0); }
dialog { border-radius: 16px; padding: 2rem; width: 640px; background: #101c2c; opacity: 0; transform: translateY(12px) scale(.98); transition: opacity var(--motion-overlay) var(--ease-out), transform var(--motion-overlay) var(--ease-out), display var(--motion-overlay) allow-discrete, overlay var(--motion-overlay) allow-discrete; }
dialog[open] { opacity: 1; transform: translateY(0) scale(1); }
dialog::backdrop { background: #020812cc; backdrop-filter: none; opacity: 0; transition: opacity var(--motion-overlay) var(--ease-out), display var(--motion-overlay) allow-discrete, overlay var(--motion-overlay) allow-discrete; }
dialog[open]::backdrop { opacity: 1; }
@starting-style { dialog[open] { opacity: 0; transform: translateY(12px) scale(.98); } dialog[open]::backdrop { opacity: 0; } }
dialog .close { width: 44px; height: 44px; padding: 0; }
.progress-track span { width: 100%!important; transform-origin: left; transform: scaleX(var(--profile-completeness, 0)); transition: transform var(--motion-state) var(--ease-out); }
.skeleton { background: #172a42; position: relative; overflow: hidden; animation: none; }
.skeleton::after { content: ''; position: absolute; inset: 0; background: #24415f; opacity: .15; animation: loading-state 1.2s ease-in-out infinite alternate; }
@keyframes loading-state { to { opacity: .5; } }
@media (hover: hover) and (pointer: fine) {
  .intro-actions .primary:hover, .owner-cta .primary:hover { transform: translateY(-2px); }
  .nav-item:hover { background: #132338; }
  .nav-item.active:hover { background: #203b5b; }
  .text-link:hover { color: #c4deff; }
}

@media (max-width: 1150px) {
  .product-hero { gap: 1rem; }
  .intro-copy h1 { font-size: clamp(3rem, 5.8vw, 4.25rem); }
  .intro-device { width: 230px; }
  .intro-note { left: 0; bottom: 5rem; padding: 1rem; }
  .intro-visual { height: 550px; }
  .feature-editorial, .public-site .workshop-section { gap: 3rem; }
  .two-col { grid-template-columns: 1fr; }
  .workspace-priority { gap: 1rem; padding: 1.5rem; }
  .workspace-priority .primary { font-size: .8125rem; }
  .shell { grid-template-columns: 220px minmax(0, 1fr); }
  .content { padding: 2rem 1.5rem; }
  .topbar { padding-inline: 1.5rem; }
  .metric { padding-inline: 1rem; }
}
@media (min-width: 701px) and (max-width: 900px) {
  .site-nav nav a:not(.button) { display: none; }
  .product-hero { padding-top: 8rem; }
  .intro-copy h1 { font-size: 3rem; }
  .intro-visual { height: 500px; }
  .intro-device { width: 205px; }
  .intro-note { left: -1rem; bottom: 2rem; }
  .intro-note strong { font-size: 1.0625rem; }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric { padding: 1.5rem!important; }
  .metric:nth-child(2) { border-right: 0; }
  .metric:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .workspace-priority { flex-direction: column; align-items: flex-start; }
  .feature-heading, .journey-heading { display: block; }
  .feature-editorial { gap: 2rem; }
  .workshop-photo { height: 550px; }
  .public-site .section h2 { font-size: 2.25rem; }
}
@media (max-width: 700px) {
  .public-site .site-nav { height: 76px; }
  .site-nav nav { gap: 0; }
  .site-nav nav a:not(.button) { display: none; }
  .site-nav nav .button { font-size: .75rem; padding: .5rem .75rem; }
  .site-nav .brand { font-size: 1.25rem; gap: .35rem; }
  .site-nav .brandmark { width: 36px; }
  .product-hero { display: flex; flex-direction: column; min-height: auto; padding-top: 7.5rem; padding-bottom: 2rem; gap: 1rem; }
  .intro-copy { align-self: stretch; }
  .intro-copy h1 { font-size: clamp(2.6rem, 10.7vw, 4rem); max-width: 11ch; margin-bottom: 1.5rem; }
  .intro-copy .intro-lead { font-size: 1rem; }
  .intro-copy p { font-size: 1rem; }
  .intro-actions { gap: 1.25rem; margin-top: 1.5rem; }
  .intro-actions .button { font-size: .875rem; }
  .intro-actions .text-link { font-size: .8125rem; }
  .intro-visual { width: 100%; height: 510px; margin-top: 1rem; }
  .intro-orbit { width: 90%; }
  .intro-device { width: 218px; padding: 7px; border-radius: 30px; }
  .intro-device img { border-radius: 24px; }
  .intro-note { bottom: 1rem; left: 0; padding: 1rem 1.25rem; }
  .intro-note strong { font-size: 1.125rem; }
  .intro-note div > span { font-size: .625rem; }
  .product-path { padding-block: 1.5rem; flex-wrap: wrap; justify-content: flex-start; gap: .75rem 1rem; font-size: .75rem; }
  .public-site .scroll-story { height: 700svh; }
  .story-stage { padding: 2rem var(--page-gutter); }
  .story-copy h2 { font-size: clamp(1.75rem, 7vw, 2.4rem); margin-top: 0; margin-bottom: .75rem; }
  .story-copy p { font-size: 1rem; max-width: 38ch; }
  .story-count { margin-top: 1rem; }
  .story-skip { display: inline-flex; font-size: .75rem; margin-top: .5rem; padding: .5rem 0; }
  .story-bottom { font-size: .625rem; }
  .feature-heading, .feature-editorial, .public-site .workshop-section, .product-questions { display: block; }
  .public-site .section h2 { font-size: clamp(1.875rem, 7vw, 2.75rem); }
  .feature-editorial { margin-top: 2rem; }
  .feature-visual { margin-bottom: 2.5rem; padding: 2rem 1.5rem; }
  .feature-visual img { width: 220px; }
  .feature-list h3 { font-size: 1.25rem; }
  .feature-list p, .workshop-copy p, .feature-heading p { font-size: 1rem; }
  .journey-heading { display: block; }
  .journey-steps { grid-template-columns: 1fr; gap: 1.5rem; margin-top: 2rem; }
  .journey-steps li { display: grid; grid-template-columns: 2.5rem 1fr; column-gap: 1rem; }
  .step-number { grid-row: 1 / 3; margin-bottom: 0; padding-top: .1rem; }
  .journey-steps h3 { text-wrap: pretty; }
  .journey-steps p { max-width: 45ch; }
  .workshop-photo { height: 390px; margin-bottom: 2rem; }
  .product-questions h2 { margin-bottom: 2.5rem!important; }
  .product-questions dd { font-size: 1rem; }
  .owner-cta { flex-direction: column; align-items: flex-start; gap: 2rem; }
  .site-footer { align-items: flex-start; padding: 2rem var(--page-gutter); }
  .site-footer nav { gap: 1.5rem; flex-wrap: wrap; }
  .shell { display: block; }
  .content { padding: 1.5rem 1rem; }
  .topbar { height: 68px; padding-inline: 1rem; gap: .5rem; }
  .topbar .row { gap: .5rem; }
  .breadcrumb { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .75rem; }
  .topbar .small { padding-inline: .65rem; font-size: .75rem; }
  .page-head { gap: 1rem; margin-bottom: 1.5rem; }
  .page-head h1 { font-size: 1.75rem; }
  .page-head p { font-size: .875rem; }
  .workspace-priority { flex-direction: column; align-items: flex-start; gap: 1.25rem; padding: 1.25rem; margin-bottom: 1.5rem; }
  .workspace-priority h2 { font-size: 1.125rem; }
  .workspace-priority p { font-size: .875rem; }
  .workspace-priority button { width: 100%; }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric { padding: 1.25rem .75rem!important; }
  .metric strong { font-size: 1.5rem; }
  .metric label { font-size: .75rem; }
  .metric small { font-size: .6875rem; }
  .two-col { grid-template-columns: 1fr; }
  .panel { padding: 1.25rem; }
  .table-wrap { max-width: 100%; }
  .banner { padding: 1rem; gap: .75rem; font-size: .75rem; }
  .auth-form { padding: 2.5rem 1.25rem; }
  .auth-form .brand { margin-bottom: 2.5rem; }
  dialog { padding: 1.5rem; max-height: 90dvh; }
  .sidebar {
    display: flex;
    visibility: hidden;
    transform: translateX(-100%);
    transition: transform 220ms var(--ease-drawer), visibility 220ms;
    position: fixed;
    z-index: 30;
    inset: 0 auto 0 0;
    width: min(290px, 85vw);
    height: 100dvh;
    overflow-y: auto;
    box-shadow: none;
    padding-top: 4.5rem;
  }
  .sidebar.open { visibility: visible; transform: translateX(0); }
  .sidebar.keyboard-navigation { transition: none; }
  .sidebar-close { display: inline-flex; position: absolute; right: 1rem; top: 1rem; font-size: 1.5rem; width: 44px; height: 44px; padding: 0; }
  .nav-scrim:not([hidden]) { display: block; position: fixed; inset: 0; z-index: 25; background: #020812bf; border: 0; border-radius: 0; padding: 0; cursor: default; }
  .nav-scrim:active { transform: none; }
  .navigation-open { overflow: hidden; }
}
@media (max-width: 360px) {
  .breadcrumb { max-width: 112px; }
  .intro-copy h1 { font-size: 2.6rem; }
  .intro-note { padding: .875rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  button, .button { transition: background-color 160ms ease!important, color 160ms ease!important; }
  button:active, .button:active, .intro-actions .primary:hover, .owner-cta .primary:hover { transform: none!important; }
  .intro-device { transform: none; animation: none; }
  .intro-note { animation: none; }
  .public-site .scroll-story { height: auto; }
  .story-stage { position: relative; min-height: 900px; }
  .sidebar { transition: opacity 160ms ease, visibility 160ms!important; transform: none; opacity: 0; }
  .sidebar.open { opacity: 1; }
  #toast { transition: opacity 160ms ease!important; transform: translate(-50%, 0); }
  dialog, dialog[open] { transform: none; transition: opacity 160ms ease, display 160ms allow-discrete, overlay 160ms allow-discrete!important; }
  .progress-track span { transition: none!important; }
  .skeleton::after { animation: none!important; opacity: .25; }
}

/* Long user content remains inside its preview, with stable operational type. */
.profile-preview h2, .profile-preview p { overflow-wrap: anywhere; }
.profile-preview .badge { white-space: normal; overflow-wrap: anywhere; max-width: 100%; }
.table-wrap + .two-col, .empty + .two-col { margin-top: 2rem; }
.auth-form > .eyebrow { display: none; }
@media (max-width: 700px) {
  .action-list { border: 0; overflow: visible; }
  .action-table, .action-table tbody, .action-table tr, .action-table td { display: block; width: 100%; white-space: normal; }
  .action-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .action-table tr { padding: 1rem; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); margin-bottom: 1rem; }
  .action-table td { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: .75rem; border: 0; padding: .5rem 0; overflow-wrap: anywhere; }
  .action-table td::before { content: attr(data-label); color: var(--muted); font-size: .75rem; }
  .action-table td:first-child, .action-table td:last-child { display: block; }
  .action-table td:first-child::before, .action-table td:last-child::before { display: none; }
  .action-table td .title { max-width: none; }
  .action-table td:last-child button { width: 100%; margin-top: .5rem; }
}
/* A short/zoomed viewport receives a readable static demo instead of clipping. */
@media (max-height: 650px) and (max-width: 1000px) {
  .public-site .scroll-story { height: auto; }
  .story-stage { position: relative; height: auto; min-height: 0; overflow-x: clip; overflow-y: visible; }
  .phone-scene { height: 480px; min-height: 480px; flex: none; }
  .story-copy { align-self: center; }
  .story-bottom { position: static; grid-column: 1 / -1; width: 100%; margin-top: 1rem; }
}
