:root {
  --background: oklch(1 0 0);
  --foreground: oklch(0.129 0.042 264.695);
  --card: oklch(1 0 0);
  --card-foreground: oklch(0.129 0.042 264.695);
  --primary: oklch(0.208 0.042 265.755);
  --primary-foreground: oklch(0.984 0.003 247.858);
  --secondary: oklch(0.968 0.007 247.896);
  --secondary-foreground: oklch(0.208 0.042 265.755);
  --muted: oklch(0.968 0.007 247.896);
  --muted-foreground: oklch(0.554 0.046 257.417);
  --accent: oklch(0.968 0.007 247.896);
  --accent-foreground: oklch(0.208 0.042 265.755);
  --destructive: oklch(0.577 0.245 27.325);
  --destructive-soft: oklch(0.96 0.035 27.325);
  --border: oklch(0.929 0.013 255.508);
  --input: oklch(0.929 0.013 255.508);
  --ring: oklch(0.704 0.04 256.788);
  --warning: oklch(0.646 0.222 41.116);
  --warning-soft: oklch(0.97 0.05 84.429);
  --success: oklch(0.6 0.118 184.704);
  --success-soft: oklch(0.96 0.035 184.704);
  --radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
  border-color: var(--border);
}

html {
  background: var(--background);
  color: var(--foreground);
}

body {
  display: flex;
  flex-direction: column;
  margin: 0;
  min-height: 100vh;
  background: var(--background);
  color: var(--foreground);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a:hover {
  text-decoration: underline;
}

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

button {
  appearance: none;
}

code {
  display: inline-block;
  max-width: 100%;
  overflow-wrap: anywhere;
  border-radius: 6px;
  background: var(--muted);
  color: var(--foreground);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.875rem;
  padding: 0.5rem 0.75rem;
}

.shell,
.narrow {
  width: min(100% - 32px, 1120px);
  margin-inline: auto;
}

.narrow {
  width: min(100% - 32px, 768px);
}

.case-detail {
  width: min(100% - 32px, 896px);
}

.icon {
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px);
}

.site-header__inner {
  min-height: 57px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--foreground);
  font-weight: 650;
}

.brand:hover {
  text-decoration: none;
}

.brand__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.brand__mark .icon {
  width: 1.25rem;
  height: 1.25rem;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.25rem;
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.nav a:not(.button),
.nav form {
  display: inline-flex;
}

.nav a:not(.button) {
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
  color: var(--muted-foreground);
}

.nav a:not(.button):hover {
  background: var(--accent);
  color: var(--foreground);
  text-decoration: none;
}

.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  color: var(--muted-foreground);
  font-size: 0.8rem;
}

.site-footer__inner,
.site-footer__links {
  display: flex;
  align-items: center;
}

.site-footer__inner {
  min-height: 4.5rem;
  justify-content: space-between;
  gap: 1rem;
}

.site-footer__inner p {
  margin: 0;
}

.site-footer__links {
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 1rem;
}

.button {
  min-height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  border: 1px solid var(--primary);
  border-radius: 6px;
  background: var(--primary);
  color: var(--primary-foreground);
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1;
  padding: 0 1rem;
  box-shadow: 0 1px 2px oklch(0.129 0.042 264.695 / 16%);
  text-decoration: none;
  white-space: nowrap;
}

.button:hover {
  background: oklch(0.25 0.045 265.755);
  border-color: oklch(0.25 0.045 265.755);
  color: var(--primary-foreground);
  text-decoration: none;
}

.button--small {
  min-height: 2rem;
  font-size: 0.75rem;
  padding-inline: 0.75rem;
}

.button--secondary {
  background: var(--background);
  border-color: var(--border);
  color: var(--foreground);
}

.button--secondary:hover {
  background: var(--accent);
  border-color: var(--border);
  color: var(--accent-foreground);
}

.button--ghost {
  background: transparent;
  border-color: transparent;
  color: var(--muted-foreground);
  box-shadow: none;
}

.button--ghost:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--foreground);
}

.button--icon {
  width: 2.25rem;
  min-height: 2.25rem;
  padding: 0;
}

.button[disabled] {
  cursor: not-allowed;
  opacity: 0.55;
}

.flash-wrap {
  margin-top: 1rem;
}

.flash,
.form-errors {
  border-radius: 6px;
  padding: 0.75rem 0.875rem;
  font-size: 0.875rem;
}

.flash {
  margin-bottom: 0.625rem;
}

.flash--notice {
  background: var(--success-soft);
  color: oklch(0.35 0.1 184.704);
}

.flash--alert,
.form-errors {
  background: var(--destructive-soft);
  color: var(--destructive);
}

.landing-page {
  overflow-x: hidden;
}

.landing-hero,
.landing-section {
  display: grid;
  justify-items: center;
  width: min(100% - 32px, 1088px);
  margin-inline: auto;
  text-align: center;
}

.landing-hero {
  padding: 5rem 0 3.5rem;
}

.landing-section {
  padding: 3.5rem 0;
}

.landing-copy {
  width: min(100%, 680px);
  margin-inline: auto;
}

.landing-copy h1,
.landing-copy h2 {
  margin: 0;
  color: var(--foreground);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.05;
}

.landing-copy h1 {
  font-size: 3rem;
}

.landing-copy h2 {
  font-size: 2rem;
}

.review-proof {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin: 0 auto 1.5rem;
}

.review-score {
  display: inline-grid;
  gap: 0.125rem;
  min-width: 8.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 0 8px 28px oklch(0.129 0.042 264.695 / 8%);
  color: var(--card-foreground);
  padding: 0.625rem 0.875rem;
  text-align: left;
}

.review-stars {
  color: oklch(0.72 0.16 84.429);
  font-size: 1rem;
  letter-spacing: 0.08em;
  line-height: 1;
}

.review-score__text {
  color: var(--muted-foreground);
  font-size: 0.75rem;
  font-weight: 650;
}

.review-proof__note {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  max-width: 18rem;
  color: var(--foreground);
  font-size: 0.875rem;
  font-weight: 650;
  line-height: 1.2;
  text-align: left;
  transform: rotate(-2deg);
}

.drawn-arrow {
  width: 5.5rem;
  height: auto;
  color: var(--primary);
  flex: 0 0 auto;
}

.lead {
  max-width: 700px;
  margin: 1.5rem auto 0;
  color: var(--muted-foreground);
  font-size: 1.125rem;
  line-height: 1.55;
}

.eyebrow,
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent-foreground);
  font-size: 0.75rem;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--muted-foreground);
  font-weight: 700;
  text-transform: uppercase;
}

.pill {
  margin-bottom: 1.5rem;
  border-radius: 999px;
  background: var(--accent);
  padding: 0.25rem 0.75rem;
}

.pill .icon {
  width: 0.75rem;
  height: 0.75rem;
}

.landing-signup {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
  width: min(100%, 520px);
  margin: 2rem auto 0;
}

.landing-signup input[type="email"] {
  width: 100%;
  min-height: 2.75rem;
  border: 1px solid var(--input);
  border-radius: 6px;
  background: var(--background);
  color: var(--foreground);
  padding: 0 0.875rem;
}

.landing-signup input[type="email"]:focus {
  border-color: var(--ring);
  outline: 2px solid oklch(0.704 0.04 256.788 / 28%);
  outline-offset: 2px;
}

.landing-secondary {
  margin: 0.85rem 0 0;
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.landing-secondary a {
  color: var(--foreground);
  font-weight: 650;
}

.actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.landing-hero .button,
.landing-signup .button {
  min-height: 2.5rem;
  padding-inline: 2rem;
}

.actions form,
.section-heading form {
  display: inline-flex;
  margin: 0;
}

.section-heading .actions {
  justify-content: flex-end;
  margin-top: 0;
}

.form .actions {
  justify-content: flex-start;
  margin-top: 0;
}

.section,
.page {
  padding: 2.5rem 0;
}

.home-index .section.shell {
  width: min(100% - 32px, 1088px);
  padding: 3rem 0 4rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.feature-grid--alpha {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 1.5rem;
}

.feature,
.content-band,
.empty-state,
.inbox-band,
.auth-card,
.case-row,
.state-card,
.timeline-item,
.document-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--card-foreground);
}

.feature {
  min-height: 15.5rem;
  padding: 1.5rem;
}

.feature__icon {
  width: 2.25rem;
  height: 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  border-radius: 6px;
  background: var(--primary);
  color: var(--primary-foreground);
}

.feature h2,
.feature h3,
.content-band h2,
.empty-state h2,
.inbox-band h2,
.auth-card h1 {
  margin: 0;
}

.feature h2,
.feature h3 {
  color: var(--card-foreground);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
}

.content-band h2,
.inbox-band h2,
.section-heading h2 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.feature p,
.muted,
.empty-state p,
.inbox-band p,
.timeline-item p,
.document-card p,
.fine-print {
  color: var(--muted-foreground);
  line-height: 1.55;
}

.feature p {
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
  line-height: 1.5;
}

.product-tour {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(20rem, 0.8fr);
  gap: 1.5rem;
  align-items: stretch;
}

.product-shot {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 0 24px 72px oklch(0.129 0.042 264.695 / 12%);
}

.product-shot__image {
  display: block;
  width: 100%;
  height: auto;
}

.landing-section .product-shot {
  width: 100%;
}

.product-story {
  display: grid;
  gap: 2.5rem;
  width: 100%;
  margin-top: 1.75rem;
}

.product-story__item {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(15rem, 0.7fr);
  gap: 1.5rem;
  align-items: center;
  margin: 0;
}

.product-story__item:nth-child(even) .product-shot {
  order: 2;
}

.product-story__caption {
  text-align: left;
}

.product-story__caption h3 {
  margin: 0;
  color: var(--foreground);
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  line-height: 1.2;
}

.product-story__caption p {
  margin: 0.65rem 0 0;
  color: var(--muted-foreground);
  line-height: 1.6;
}

@media (max-width: 760px) {
  .product-story__item {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
  }

  .product-story__item:nth-child(even) .product-shot {
    order: initial;
  }
}

.landing-value-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  width: 100%;
  margin-top: 1rem;
  text-align: left;
}

.landing-value {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--card-foreground);
  padding: 1.25rem;
}

.landing-value h3 {
  margin: 0;
  color: var(--card-foreground);
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.35;
}

.landing-value p {
  margin: 0.5rem 0 0;
  color: var(--muted-foreground);
  font-size: 0.875rem;
  line-height: 1.5;
}

.section-heading--center {
  justify-content: center;
  text-align: center;
}

.section-heading--center > div {
  max-width: 44rem;
}

.section-heading--center h2 {
  justify-content: center;
  margin: 0;
  font-size: 2rem;
  letter-spacing: 0;
  line-height: 1.15;
}

.section-heading--center .muted {
  margin: 0.75rem 0 0;
}

.screen-stack {
  display: grid;
  gap: 1.5rem;
}

.screen-preview {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 0 20px 60px oklch(0.129 0.042 264.695 / 8%);
  color: var(--card-foreground);
}

.screen-preview--large {
  min-height: 28rem;
}

.screen-chrome {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  border-bottom: 1px solid var(--border);
  background: var(--accent);
  color: var(--muted-foreground);
  font-size: 0.75rem;
  padding: 0.65rem 0.875rem;
}

.screen-chrome span {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: oklch(0.78 0.016 255.508);
}

.screen-chrome strong {
  margin-left: 0.35rem;
  color: var(--foreground);
  font-weight: 650;
}

.screen-body {
  padding: 1.15rem;
}

.screen-preview--large .screen-body {
  padding: 1.35rem;
}

.local-badge {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 0.9rem;
  border-radius: 999px;
  background: var(--success-soft);
  color: oklch(0.35 0.1 184.704);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
  padding: 0.35rem 0.55rem;
  text-transform: uppercase;
}

.screen-heading-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.screen-heading-row h2 {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.2;
}

.screen-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 750;
  line-height: 1;
  padding: 0.35rem 0.55rem;
}

.screen-badge--serious {
  background: var(--destructive-soft);
  color: var(--destructive);
}

.screen-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.screen-check {
  display: grid;
  gap: 0.25rem;
  border-left: 3px solid var(--border);
  border-radius: 6px;
  background: var(--background);
  padding: 0.8rem;
}

.screen-check span,
.screen-callout span,
.screen-score span,
.screen-columns span {
  color: var(--muted-foreground);
}

.screen-check span,
.screen-callout span {
  font-size: 0.72rem;
  font-weight: 750;
  text-transform: uppercase;
}

.screen-check strong {
  font-size: 0.95rem;
  line-height: 1.25;
}

.screen-check--serious {
  border-left-color: var(--destructive);
}

.screen-check--watch {
  border-left-color: var(--ring);
}

.screen-check--concern {
  border-left-color: var(--warning);
}

.screen-check--good {
  border-left-color: var(--success);
}

.screen-callout {
  display: grid;
  gap: 0.35rem;
  margin-top: 1.25rem;
  border-radius: var(--radius);
  background: var(--primary);
  color: var(--primary-foreground);
  padding: 1rem;
}

.screen-callout span {
  color: oklch(0.984 0.003 247.858 / 72%);
}

.screen-callout strong {
  font-size: 1rem;
  line-height: 1.35;
}

.timeline-preview {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.75rem 0.8rem;
  margin-top: 1.25rem;
}

.timeline-preview > span {
  width: 0.6rem;
  height: 0.6rem;
  margin-top: 0.35rem;
  border-radius: 999px;
  background: var(--primary);
  box-shadow: 0 0 0 5px var(--accent);
}

.timeline-preview strong {
  display: block;
  color: var(--foreground);
  font-size: 0.85rem;
  line-height: 1.3;
}

.timeline-preview p {
  margin: 0.2rem 0 0;
  color: var(--muted-foreground);
  font-size: 0.8rem;
  line-height: 1.45;
}

.screen-list {
  display: grid;
  gap: 0.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.screen-list li {
  position: relative;
  border-bottom: 1px solid var(--border);
  color: var(--foreground);
  font-size: 0.9rem;
  line-height: 1.4;
  padding: 0 0 0.75rem 1rem;
}

.screen-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.screen-list li::before {
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 999px;
  background: var(--primary);
  content: "";
}

.screen-score {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.screen-score strong {
  color: var(--foreground);
  font-size: 2rem;
  line-height: 1;
}

.screen-meter {
  height: 0.55rem;
  overflow: hidden;
  margin-top: 0.8rem;
  border-radius: 999px;
  background: var(--accent);
}

.screen-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--primary);
}

.screen-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  margin-top: 1rem;
}

.screen-columns span {
  border-radius: 6px;
  background: var(--accent);
  font-size: 0.78rem;
  line-height: 1.25;
  padding: 0.55rem;
}

.screen-preview--settings {
  border-color: oklch(0.6 0.118 184.704 / 44%);
}

.settings-preview {
  display: grid;
  gap: 0.9rem;
}

.settings-preview h2 {
  margin: 0.15rem 0 0;
  color: var(--foreground);
  font-size: 1.05rem;
  line-height: 1.2;
}

.settings-preview p {
  margin: 0.45rem 0 0;
  color: var(--muted-foreground);
  font-size: 0.85rem;
  line-height: 1.45;
}

.settings-kicker {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  background: var(--success-soft);
  color: var(--success);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
  padding: 0.35rem 0.5rem;
  text-transform: uppercase;
}

.settings-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--background);
  color: var(--foreground);
  font-size: 0.85rem;
  font-weight: 650;
  padding: 0.75rem;
}

.settings-toggle {
  position: relative;
  width: 2.35rem;
  height: 1.3rem;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--border);
}

.settings-toggle span {
  position: absolute;
  top: 0.18rem;
  left: 0.18rem;
  width: 0.95rem;
  height: 0.95rem;
  border-radius: 999px;
  background: var(--card);
  box-shadow: 0 1px 3px oklch(0.129 0.042 264.695 / 18%);
}

.settings-toggle--on {
  background: var(--success);
}

.settings-toggle--on span {
  left: 1.22rem;
}

.settings-storage-flow {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.45rem 0.75rem;
  border-radius: 8px;
  background: var(--primary);
  color: var(--primary-foreground);
  padding: 0.85rem;
}

.settings-storage-flow span,
.settings-storage-flow strong {
  font-size: 0.78rem;
  line-height: 1.25;
}

.settings-storage-flow span {
  color: oklch(0.984 0.003 247.858 / 72%);
}

.settings-storage-flow strong {
  justify-self: end;
}

.download-section {
  padding-top: 1.5rem;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.download-panel,
.app-store-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--card-foreground);
}

.download-panel {
  display: grid;
  align-content: start;
  gap: 0.9rem;
  min-height: 15rem;
  padding: 1.25rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.download-panel--recommended {
  border-color: var(--primary);
  box-shadow: 0 20px 60px oklch(0.129 0.042 264.695 / 10%);
}

.download-panel__label {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  background: var(--accent);
  color: var(--muted-foreground);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
  padding: 0.35rem 0.5rem;
  text-transform: uppercase;
}

.download-panel--recommended .download-panel__label {
  background: var(--primary);
  color: var(--primary-foreground);
}

.download-panel h3 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.2;
}

.download-panel p {
  margin: 0;
  color: var(--muted-foreground);
  font-size: 0.9rem;
  line-height: 1.55;
}

.download-panel .button {
  align-self: end;
  width: fit-content;
  margin-top: auto;
}

.hardware-note {
  max-width: 46rem;
  margin: 1rem auto 0;
  color: var(--muted-foreground);
  font-size: 0.85rem;
  line-height: 1.5;
  text-align: center;
}

.device-code {
  margin: 1.25rem 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--accent);
  padding: 1rem;
  overflow-wrap: anywhere;
}

.device-code code {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.5;
}

.app-store-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.5rem;
  align-items: center;
  padding: 1.5rem;
}

.app-store-card h2 {
  margin: 0;
  font-size: 1.75rem;
  letter-spacing: 0;
  line-height: 1.15;
}

.app-store-card .muted {
  margin: 0.75rem 0 0;
}

.app-store-card__status {
  display: grid;
  gap: 0.25rem;
  min-width: 12rem;
  border-radius: var(--radius);
  background: var(--primary);
  color: var(--primary-foreground);
  padding: 1rem;
}

.app-store-card__status span {
  color: oklch(0.984 0.003 247.858 / 72%);
  font-size: 0.82rem;
  line-height: 1.35;
}

.content-band a:not(.button),
.markdown-body a {
  color: var(--primary);
}

.disclaimer {
  width: min(100% - 32px, 672px);
  margin-inline: auto;
  padding: 4rem 0;
  text-align: center;
}

.disclaimer h2 {
  margin: 0;
  font-size: 1.5rem;
}

.page-heading,
.case-header,
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.page h1,
.case-header h1 {
  margin: 0;
  color: var(--foreground);
  font-size: 1.875rem;
  font-weight: 650;
  letter-spacing: 0;
  line-height: 1.2;
}

.back-link {
  display: inline-flex;
  margin-bottom: 0.75rem;
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.back-link:hover {
  color: var(--foreground);
}

.empty-state {
  margin-top: 2.5rem;
  border-style: dashed;
  padding: 2.5rem;
  text-align: center;
}

.case-list,
.timeline,
.document-list {
  display: grid;
  gap: 0.75rem;
}

.case-list {
  margin-top: 1.5rem;
}

.case-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.case-row:hover,
.state-card:hover {
  border-color: var(--primary);
  text-decoration: none;
}

.case-row__title {
  font-size: 1rem;
  font-weight: 600;
}

.case-row__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.25rem;
  color: var(--muted-foreground);
  font-size: 0.75rem;
}

.health-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: var(--accent);
  color: var(--muted-foreground);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
  padding: 0.375rem 0.625rem;
  white-space: nowrap;
}

.health-badge--good {
  background: var(--success-soft);
  color: oklch(0.35 0.1 184.704);
}

.health-badge--watch {
  background: var(--accent);
  color: var(--muted-foreground);
}

.health-badge--concern {
  background: var(--warning-soft);
  color: oklch(0.45 0.14 70.08);
}

.health-badge--serious {
  background: var(--destructive-soft);
  color: var(--destructive);
}

.summary-card {
  margin-top: 1.5rem;
  padding: 1.25rem;
  font-size: 0.875rem;
}

.content-band {
  margin-top: 1.5rem;
  padding: 1.25rem;
}

.content-band--plain {
  border: 0;
  background: transparent;
  padding: 0;
}

.preserve,
pre.preserve {
  white-space: pre-wrap;
}

.inbox-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  margin-top: 1.5rem;
  padding: 1.25rem;
}

.inbox-code-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.inbox-code-row code {
  flex: 1;
}

.health-panel {
  margin-top: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  padding: 1.25rem;
}

.health-panel__summary {
  display: grid;
  gap: 0.5rem;
}

.health-panel__summary h2 {
  margin: 0;
  font-size: 1.125rem;
  line-height: 1.35;
}

.health-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
}

.oversight-section {
  margin-top: 1.5rem;
}

.oversight-section .section-heading {
  align-items: flex-start;
}

.oversight-section .section-heading p {
  max-width: 48rem;
  margin: 0.35rem 0 0;
}

.oversight-grid,
.oversight-two-column {
  display: grid;
  gap: 1rem;
}

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

.oversight-two-column {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  margin-top: 1rem;
  align-items: start;
}

.oversight-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--card-foreground);
  padding: 1rem;
}

.oversight-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.625rem;
}

.oversight-card h3,
.oversight-card h4 {
  margin: 0;
}

.oversight-card h3 {
  font-size: 1rem;
  line-height: 1.35;
}

.oversight-card h4 {
  font-size: 0.875rem;
  line-height: 1.35;
}

.oversight-card p {
  margin: 0.5rem 0 0;
  color: var(--muted-foreground);
  font-size: 0.875rem;
  line-height: 1.5;
}

.oversight-status {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 750;
  line-height: 1;
  padding: 0.35rem 0.55rem;
  white-space: nowrap;
}

.oversight-status--good {
  background: var(--success-soft);
  color: oklch(0.35 0.1 184.704);
}

.oversight-status--watch {
  background: var(--accent);
  color: var(--muted-foreground);
}

.oversight-status--concern {
  background: var(--warning-soft);
  color: oklch(0.45 0.14 70.08);
}

.oversight-status--serious {
  background: var(--destructive-soft);
  color: var(--destructive);
}

.oversight-fact {
  display: grid;
  gap: 0.35rem 0.75rem;
  grid-template-columns: 5rem minmax(0, 1fr);
  margin: 0.875rem 0 0;
  border-top: 1px solid var(--border);
  padding-top: 0.875rem;
}

.oversight-fact dt {
  color: var(--muted-foreground);
  font-size: 0.7rem;
  font-weight: 750;
  text-transform: uppercase;
}

.oversight-fact dd {
  margin: 0;
  color: var(--foreground);
  font-size: 0.8125rem;
  line-height: 1.45;
}

.readiness-card .oversight-card__top strong {
  color: var(--foreground);
  font-size: 1.35rem;
  line-height: 1;
}

.readiness-meter {
  height: 0.55rem;
  overflow: hidden;
  border-radius: 999px;
  background: var(--accent);
}

.readiness-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--primary);
}

.readiness-lists {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.health-grid h3 {
  margin: 0 0 0.75rem;
  font-size: 0.875rem;
}

.check-list,
.signal-list {
  display: grid;
  gap: 0.625rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.check-list li {
  position: relative;
  padding-left: 1rem;
  color: var(--muted-foreground);
  font-size: 0.875rem;
  line-height: 1.45;
}

.check-list li::before {
  position: absolute;
  left: 0.125rem;
  top: 0.65em;
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 999px;
  background: currentColor;
  content: "";
}

.signal {
  display: grid;
  gap: 0.25rem;
  border-left: 3px solid var(--border);
  border-radius: 6px;
  background: var(--muted);
  padding: 0.625rem 0.75rem;
  font-size: 0.875rem;
}

.signal span {
  color: var(--muted-foreground);
  line-height: 1.45;
}

.signal--concern {
  border-left-color: var(--warning);
}

.signal--serious {
  border-left-color: var(--destructive);
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
  align-items: start;
}

.form {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.compact-form {
  margin-top: 0;
}

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

.field {
  display: grid;
  gap: 0.45rem;
}

.field label {
  color: var(--foreground);
  font-size: 0.875rem;
  font-weight: 600;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 2.5rem;
  border: 1px solid var(--input);
  border-radius: 6px;
  background: var(--background);
  color: var(--foreground);
  padding: 0.625rem 0.75rem;
}

.field textarea {
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--ring);
  outline: 3px solid oklch(0.704 0.04 256.788 / 22%);
}

.form-errors p {
  margin: 0 0 0.375rem;
  font-weight: 700;
}

.form-errors ul {
  margin: 0;
  padding-left: 1.25rem;
}

.auth-page {
  width: min(100% - 32px, 420px);
  margin-inline: auto;
  padding: 4rem 0;
}

.auth-page--compact {
  max-width: 420px;
}

.auth-page--narrow {
  max-width: 460px;
}

.auth-note,
.waitlist-legal {
  margin-top: 1rem;
  font-size: 0.875rem;
}

.honeypot-field {
  position: absolute;
  left: -10000px;
}

.madmin-dashboard,
.madmin-dashboard__section {
  display: grid;
}

.madmin-dashboard {
  gap: 1.25rem;
}

.madmin-dashboard__section {
  gap: 0.75rem;
}

.auth-card {
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 0 1px 3px oklch(0.129 0.042 264.695 / 8%);
}

.auth-card h1 {
  font-size: 1.5rem;
  line-height: 1.2;
}

.auth-card .button {
  width: 100%;
}

.auth-separator {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.25rem 0;
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.auth-separator::before,
.auth-separator::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: var(--border);
}

.auth-alt {
  margin-top: 1rem;
  color: var(--muted-foreground);
  font-size: 0.875rem;
  text-align: center;
}

.button--google {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  height: 2.5rem;
  padding: 0 0.75rem;
  background: #ffffff;
  border: 1px solid #dadce0;
  border-radius: 0.25rem;
  box-shadow: none;
  color: #3c4043;
  font-family: 'Roboto', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.button--google:hover {
  background: #f8f9fa;
  border-color: #dadce0;
  color: #3c4043;
  box-shadow: 0 1px 2px 0 rgba(60, 64, 67, 0.1), 0 1px 3px 1px rgba(60, 64, 67, 0.05);
}

.button--google:active {
  background: #f1f3f4;
}

.button--google__logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.125rem;
  height: 1.125rem;
  flex-shrink: 0;
}

.button--google__logo svg {
  width: 100%;
  height: 100%;
}

.button--google__text {
  white-space: nowrap;
}

@media (max-width: 640px) {
  .auth-page {
    padding: 2rem 0;
  }

  .auth-card {
    padding: 1.5rem 1rem;
  }
}

.state-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  margin-top: 2rem;
}

.state-card {
  min-height: 5.5rem;
  display: grid;
  gap: 0.25rem;
  align-content: start;
  padding: 1rem;
}

.state-card span {
  color: var(--muted-foreground);
  font-size: 0.75rem;
}

.state-card strong {
  font-size: 0.875rem;
  font-weight: 600;
}

.fact-list {
  display: grid;
  gap: 0.875rem;
  margin: 0;
}

.fact-list div {
  display: grid;
  gap: 0.25rem;
  border-top: 1px solid var(--border);
  padding-top: 0.875rem;
}

.fact-list div:first-child {
  border-top: 0;
  padding-top: 0;
}

.fact-list dt {
  color: var(--muted-foreground);
  font-size: 0.75rem;
  font-weight: 700;
}

.fact-list dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.fact-list a {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--primary);
}

.timeline-item {
  padding: 1rem;
}

.timeline-item__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  color: var(--muted-foreground);
  font-size: 0.75rem;
}

.timeline-item h3 {
  margin: 0.35rem 0 0;
  font-size: 0.875rem;
  font-weight: 600;
}

.timeline-item p,
.timeline-item pre {
  margin: 0.5rem 0 0;
  color: var(--muted-foreground);
  font-family: inherit;
  font-size: 0.75rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.timeline-kind {
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-foreground);
  font-weight: 700;
  padding: 0.1875rem 0.45rem;
}

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

.document-card {
  padding: 0.875rem;
}

.document-card h3 {
  margin: 0.5rem 0;
  overflow-wrap: anywhere;
  font-size: 0.875rem;
}

.markdown-body {
  color: var(--foreground);
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.markdown-body h1,
.markdown-body h2,
.markdown-body h3 {
  line-height: 1.2;
}

.markdown-body code,
.markdown-body pre {
  white-space: pre-wrap;
}

.fine-print {
  margin-top: 1.25rem;
  border-top: 1px solid var(--border);
  padding-top: 0.75rem;
  font-size: 0.75rem;
}

.pricing-page .current-plan-banner {
  margin-bottom: 2rem;
}

.pricing-page .plan-price {
  margin: 0.75rem 0 0.25rem;
  font-size: 1.5rem;
  font-weight: 650;
}

.pricing-page .plan-interval {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  font-weight: 500;
}

.pricing-page .plan-features {
  margin: 1rem 0 1.5rem;
  padding-left: 1.25rem;
  color: var(--muted-foreground);
  font-size: 0.875rem;
  line-height: 1.6;
}

.pricing-page .plan-features li + li {
  margin-top: 0.375rem;
}

.pricing-page .download-panel .button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

@media (max-width: 860px) {
  .feature-grid,
  .download-grid,
  .landing-value-grid,
  .health-grid,
  .detail-grid,
  .document-list,
  .oversight-grid,
  .oversight-two-column,
  .product-tour,
  .state-grid {
    grid-template-columns: 1fr;
  }

  .page-heading,
  .case-header,
  .section-heading,
  .inbox-band,
  .app-store-card {
    align-items: stretch;
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-header__inner {
    min-height: auto;
    align-items: flex-start;
    flex-direction: column;
    padding: 0.75rem 0;
  }

  .nav {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .site-footer__inner {
    align-items: flex-start;
    flex-direction: column;
    padding-block: 1rem;
  }

  .site-footer__links {
    justify-content: flex-start;
  }

  .home-index .site-header__inner {
    min-height: 57px;
    align-items: center;
    flex-direction: row;
    padding: 0;
  }

  .home-index .nav {
    flex-wrap: nowrap;
  }

  .home-index .nav a:not(.button) {
    padding-inline: 0.5rem;
  }

  .home-index .nav__optional {
    display: none !important;
  }

  .landing-hero {
    padding: 3rem 0 2.5rem;
  }

  .review-proof {
    gap: 0.5rem;
    margin-bottom: 0.875rem;
  }

  .review-score {
    min-width: 7rem;
    padding: 0.55rem 0.65rem;
  }

  .review-stars {
    font-size: 0.875rem;
  }

  .review-proof__note {
    max-width: 12.5rem;
    font-size: 0.78rem;
  }

  .drawn-arrow {
    width: 3rem;
  }

  .landing-hero h1 {
    font-size: 2.1rem;
  }

  .landing-copy h2 {
    font-size: 1.55rem;
  }

  .lead {
    font-size: 1rem;
  }

  .landing-signup {
    grid-template-columns: 1fr;
  }

  .landing-signup .button {
    width: 100%;
  }

  .oversight-card__top {
    flex-direction: column;
  }

  .readiness-lists {
    grid-template-columns: 1fr;
  }

  .oversight-fact {
    grid-template-columns: 1fr;
  }

  .home-index .section.shell {
    padding: 2.5rem 0 3rem;
  }

  .product-tour,
  .screen-stack {
    gap: 1rem;
  }

  .screen-preview--large {
    min-height: auto;
  }

  .screen-body,
  .screen-preview--large .screen-body {
    padding: 0.9rem;
  }

  .screen-mini-grid,
  .screen-columns,
  .download-grid {
    grid-template-columns: 1fr;
  }

  .section-heading--center h2,
  .app-store-card h2 {
    font-size: 1.55rem;
  }

  .download-panel {
    min-height: auto;
  }

  .download-panel .button {
    width: 100%;
  }

  .screen-heading-row,
  .screen-score {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.5rem;
  }

  .form-grid,
  .case-row {
    grid-template-columns: 1fr;
  }

  .case-row,
  .page-heading,
  .case-header,
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .inbox-code-row {
    align-items: stretch;
    flex-direction: column;
  }

  .button--icon {
    width: 100%;
  }
}

@media print {
  .site-header,
  .flash-wrap,
  .actions,
  .button,
  .back-link,
  .inbox-band,
  .compact-form,
  .health-panel,
  .document-list {
    display: none !important;
  }

  body,
  .content-band,
  .timeline-item {
    background: white;
  }
}

/* Authenticated web workspace — intentionally separate from the public site chrome. */
.workspace-body {
  background: #f4f5f8;
  color: #20232b;
}

.workspace-app {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  min-height: 100vh;
}

.workspace-sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
  min-height: 100vh;
  box-sizing: border-box;
  border-right: 1px solid #e0e3e9;
  background: #fbfbfc;
  overflow-y: auto;
  padding: 1.1rem 0.75rem 0.8rem;
}

.workspace-brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0 0.65rem 1.25rem;
  font-weight: 750;
  letter-spacing: -0.01em;
}

.workspace-brand__mark {
  display: grid;
  width: 1.85rem;
  height: 1.85rem;
  place-items: center;
  border-radius: 0.55rem;
  background: #22252d;
  color: white;
}

.workspace-brand__mark .icon { width: 1.1rem; height: 1.1rem; }

.workspace-case-switcher {
  margin: 0 0.2rem 1.2rem;
  border: 1px solid #e0e3e9;
  border-radius: 0.7rem;
  background: white;
}
.workspace-case-switcher summary { list-style: none; }
.workspace-case-switcher summary::-webkit-details-marker { display: none; }
.workspace-case-switcher__summary {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  cursor: pointer;
  padding: 0.65rem;
}
.workspace-case-switcher[open] .workspace-case-switcher__summary { border-bottom: 1px solid #e8eaf0; }
.workspace-case-switcher__panel { padding: 0.4rem; }
.workspace-case-switcher__label { margin: 0.3rem 0.45rem 0.35rem; color: #969ca8; font-size: 0.64rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.workspace-case-switcher__empty { margin: 0.45rem; color: #7a808d; font-size: 0.72rem; line-height: 1.45; }
.workspace-case-option { display: flex; align-items: center; gap: 0.5rem; border-radius: 0.45rem; color: #4c5260; padding: 0.48rem; }
.workspace-case-option:hover, .workspace-case-option.is-active { background: #f0f2f8; color: #303c75; text-decoration: none; }
.workspace-case-option > span:last-child { min-width: 0; }
.workspace-case-option strong, .workspace-case-option small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.workspace-case-option strong { font-size: 0.72rem; }
.workspace-case-option small { margin-top: 0.12rem; color: #8a909c; font-size: 0.63rem; }
.workspace-case-option__dot { width: 0.45rem; height: 0.45rem; flex: 0 0 auto; border-radius: 50%; background: #45a77c; }
.workspace-case-switcher__divider { height: 1px; margin: 0.35rem 0; background: #e7e9ed; }
.workspace-case-delete { width: 100%; border: 0; border-radius: 0.45rem; background: transparent; color: #a04d55; cursor: pointer; padding: 0.5rem; text-align: left; font-size: 0.72rem; }
.workspace-case-delete:hover { background: #fff1f1; color: #8b303b; }
.workspace-case-switcher__summary > span:nth-child(2) { min-width: 0; }
.workspace-case-switcher__summary > span:nth-child(2) strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.workspace-case-switcher__summary > span:nth-child(2) small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.workspace-case-switcher__summary > span:nth-child(2) { flex: 1; }

.workspace-case-switcher__dot { width: 0.55rem; height: 0.55rem; flex: 0 0 auto; border-radius: 50%; background: #45a77c; }
.workspace-case-switcher strong, .workspace-case-switcher small, .workspace-storage strong, .workspace-storage small { display: block; }
.workspace-case-switcher strong { font-size: 0.78rem; }
.workspace-case-switcher small, .workspace-storage small { margin-top: 0.15rem; color: #7a808d; font-size: 0.68rem; }
.workspace-case-switcher__chevron { margin-left: auto; color: #7a808d; }

.workspace-nav { display: grid; gap: 0.25rem; }
.workspace-nav__label { margin: 0 0.65rem 0.25rem; color: #969ca8; font-size: 0.67rem; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase; }
.workspace-nav__item, .workspace-settings-link { display: flex; align-items: center; gap: 0.7rem; border-radius: 0.65rem; color: #646a76; padding: 0.62rem 0.65rem; }
.workspace-nav__item:hover, .workspace-settings-link:hover { background: #eef0f4; color: #20232b; text-decoration: none; }
.workspace-nav__item.is-active, .workspace-settings-link.is-active { background: #e8ebf5; color: #303c75; }
.workspace-nav__item .icon, .workspace-settings-link .icon { width: 1.05rem; height: 1.05rem; flex: 0 0 auto; }
.workspace-nav__item span { min-width: 0; }
.workspace-nav__item strong { display: block; font-size: 0.8rem; font-weight: 700; }
.workspace-nav__item small { display: block; margin-top: 0.15rem; color: #8a909c; font-size: 0.68rem; }
.workspace-nav__item.is-active small { color: #626d9d; }
.workspace-sidebar__spacer { flex: 1 1 auto; min-height: 2rem; }
.workspace-sidebar__footer { display: grid; gap: 0.4rem; border-top: 1px solid #e4e6eb; padding-top: 0.8rem; }
.workspace-storage { display: flex; align-items: center; gap: 0.55rem; padding: 0.45rem 0.65rem 0.6rem; }
.workspace-storage__icon { display: grid; width: 1.65rem; height: 1.65rem; place-items: center; border-radius: 50%; background: #e3f3eb; color: #31855f; }
.workspace-storage__icon .icon { width: 0.85rem; height: 0.85rem; }
.workspace-storage strong { font-size: 0.75rem; }
.workspace-settings-link { font-size: 0.8rem; font-weight: 700; }

.workspace-main { min-width: 0; background: #f4f5f8; }
.workspace-topbar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; min-height: 4rem; border-bottom: 1px solid #e1e4e9; background: rgba(244, 245, 248, 0.92); padding: 0.75rem 2.1rem; backdrop-filter: blur(14px); }
.workspace-topbar__context { display: flex; align-items: center; gap: 0.5rem; color: #9aa0ac; font-size: 0.78rem; }
.workspace-topbar__context strong { color: #353943; font-weight: 700; }
.workspace-menu { position: relative; }
.workspace-menu summary { list-style: none; }
.workspace-menu summary::-webkit-details-marker { display: none; }
.workspace-menu__button { display: inline-flex; align-items: center; gap: 0.5rem; cursor: pointer; border: 1px solid #dfe2e8; border-radius: 0.55rem; background: rgba(255, 255, 255, 0.7); color: #545a67; padding: 0.5rem 0.65rem; font-size: 0.76rem; font-weight: 700; }
.workspace-menu__button:hover { background: white; color: #20232b; }
.workspace-menu__lines { display: grid; gap: 0.18rem; width: 0.9rem; }
.workspace-menu__lines i { display: block; height: 1px; background: currentColor; }
.workspace-menu__panel { position: absolute; top: calc(100% + 0.5rem); right: 0; z-index: 10; display: grid; min-width: 10.5rem; border: 1px solid #dfe2e8; border-radius: 0.65rem; background: white; padding: 0.35rem; box-shadow: 0 12px 30px rgba(30, 35, 45, 0.12); }
.workspace-menu__panel a, .workspace-menu__panel button { width: 100%; border: 0; border-radius: 0.4rem; background: transparent; color: #4c5260; cursor: pointer; padding: 0.55rem 0.6rem; text-align: left; font-size: 0.78rem; }
.workspace-menu__panel a:hover, .workspace-menu__panel button:hover { background: #f0f2f5; color: #20232b; text-decoration: none; }
.workspace-menu__divider { height: 1px; margin: 0.3rem 0; background: #e7e9ed; }
.workspace-flash-wrap { width: min(100% - 4.2rem, 1120px); margin: 1rem auto 0; }

.workspace-content { width: min(100% - 4.2rem, 1120px); margin: 0 auto; padding: 2.35rem 0 3.5rem; }
.workspace-content--narrow { max-width: 820px; }
.workspace-page-heading, .workspace-section__heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.workspace-page-heading { margin-bottom: 2rem; }
.workspace-eyebrow, .workspace-panel__label { margin: 0 0 0.45rem; color: #7d8492; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.workspace-page-heading h1 { margin: 0; color: #242730; font-size: clamp(1.75rem, 4vw, 2.5rem); letter-spacing: -0.04em; line-height: 1.08; }
.workspace-lead { max-width: 40rem; margin: 0.55rem 0 0; color: #747b88; line-height: 1.55; }
.workspace-badge, .workspace-chip, .workspace-draft-status { display: inline-flex; align-items: center; gap: 0.35rem; border: 1px solid #dfe2e8; border-radius: 999px; background: white; color: #6d7481; font-size: 0.7rem; font-weight: 750; padding: 0.4rem 0.6rem; white-space: nowrap; }
.workspace-badge .icon { width: 0.85rem; height: 0.85rem; }
.workspace-badge--success { border-color: #c9e9d9; background: #edf9f2; color: #31855f; }
.workspace-badge--success > span { width: 0.4rem; height: 0.4rem; border-radius: 50%; background: currentColor; }
.workspace-badge--warning { border-color: #f2dfb3; background: #fff8e8; color: #9a6b16; }
.workspace-grid { display: grid; gap: 1rem; }
.workspace-grid--hero { grid-template-columns: minmax(0, 1.25fr) minmax(18rem, 0.75fr); }
.workspace-dashboard-grid { display: grid; grid-template-columns: minmax(0, 1fr) 18rem; gap: 1rem; align-items: start; }
.workspace-dashboard-main { min-width: 0; }
.workspace-dashboard-aside { position: sticky; top: 5.5rem; display: grid; gap: 1rem; }
.workspace-dashboard-aside .workspace-panel { padding: 1.05rem; }
.workspace-dashboard-aside .workspace-section__heading { align-items: center; margin-bottom: 0.8rem; }
.workspace-dashboard-aside .workspace-section__heading .icon { width: 1rem; height: 1rem; color: #5a68ad; }
.workspace-calendar-date { display: flex; align-items: center; gap: 0.7rem; margin: 0.8rem 0; }
.workspace-calendar-date strong { display: grid; width: 2.8rem; height: 2.8rem; place-items: center; border-radius: 0.55rem 0.55rem 0 0; background: #e8ebf5; color: #46538f; font-size: 0.64rem; letter-spacing: 0.06em; text-transform: uppercase; }
.workspace-calendar-date span { color: #2f3760; font-size: 1.7rem; font-weight: 750; letter-spacing: -0.05em; }
.workspace-calendar-card p { margin: 0.7rem 0 0; font-size: 0.75rem; line-height: 1.45; }
.workspace-calendar-empty { display: flex; align-items: center; gap: 0.5rem; color: #808795; font-size: 0.73rem; }
.workspace-calendar-empty .icon { width: 1rem; height: 1rem; color: #8d94a3; }
.workspace-text-link { display: inline-block; margin-top: 0.9rem; color: #4b5a9d; font-size: 0.72rem; font-weight: 750; }
.workspace-text-link:hover { color: #303c75; }
.workspace-glance-list { display: grid; gap: 0.7rem; }
.workspace-glance-list div { display: flex; align-items: baseline; justify-content: space-between; gap: 0.75rem; border-bottom: 1px solid #eef0f3; padding-bottom: 0.55rem; }
.workspace-glance-list div:last-child { border-bottom: 0; padding-bottom: 0; }
.workspace-glance-list span { color: #8a909c; font-size: 0.7rem; }
.workspace-glance-list strong { max-width: 9rem; overflow: hidden; color: #343943; font-size: 0.75rem; text-align: right; text-overflow: ellipsis; white-space: nowrap; }
.workspace-activity-list { display: grid; gap: 0.8rem; }
.workspace-activity-item { display: flex; align-items: flex-start; gap: 0.55rem; }
.workspace-activity-item__dot { width: 0.45rem; height: 0.45rem; flex: 0 0 auto; margin-top: 0.25rem; border: 2px solid #aeb7db; border-radius: 50%; }
.workspace-activity-item strong, .workspace-activity-item small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.workspace-activity-item strong { color: #414654; font-size: 0.72rem; }
.workspace-activity-item small { margin-top: 0.15rem; color: #9298a3; font-size: 0.66rem; }
.workspace-panel { border: 1px solid #e0e3e9; border-radius: 0.9rem; background: #fff; padding: 1.35rem; box-shadow: 0 7px 24px rgba(47, 53, 67, 0.035); }
.workspace-panel h2, .workspace-section h2 { margin: 0; color: #292d36; font-size: 1.08rem; letter-spacing: -0.015em; }
.workspace-panel p { color: #747b88; line-height: 1.55; }
.workspace-panel--primary { border-color: #3f4b8e; background: linear-gradient(135deg, #3d4a8b, #5a68ad); color: white; padding: 1.6rem; }
.workspace-panel--primary h2 { color: white; font-size: 1.35rem; }
.workspace-panel--primary p { max-width: 34rem; color: rgba(255, 255, 255, 0.78); }
.workspace-panel--primary .workspace-panel__label { color: rgba(255, 255, 255, 0.7); }
.workspace-panel--primary .button { border-color: white; background: white; color: #35427e; }
.workspace-status-card { display: flex; align-items: flex-start; gap: 0.9rem; }
.workspace-status-card__icon { display: grid; width: 2.25rem; height: 2.25rem; flex: 0 0 auto; place-items: center; border-radius: 0.65rem; background: #e3f3eb; color: #31855f; }
.workspace-status-card__icon .icon { width: 1.1rem; height: 1.1rem; }
.workspace-status-card h2 { margin-bottom: 0.45rem; }
.workspace-status-card p { margin: 0; }
.workspace-section { margin-top: 2.3rem; }
.workspace-section__heading { margin-bottom: 1rem; }
.workspace-summary-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; overflow: hidden; margin-top: 1.2rem; border: 1px solid #e5e7eb; border-radius: 0.65rem; background: #e5e7eb; }
.workspace-summary-grid div { display: grid; gap: 0.35rem; background: #fff; padding: 1rem; }
.workspace-summary-grid span { color: #8b919c; font-size: 0.7rem; }
.workspace-summary-grid strong { color: #343943; font-size: 0.82rem; }
.workspace-action-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; }
.workspace-action-card { display: flex; align-items: center; gap: 0.7rem; border: 1px solid #e0e3e9; border-radius: 0.8rem; background: white; color: #343943; padding: 1rem; }
.workspace-action-card:hover { border-color: #b6bdd9; background: #fbfbff; text-decoration: none; }
.workspace-action-card > .icon { width: 1.15rem; height: 1.15rem; color: #4b5a9d; }
.workspace-action-card span { min-width: 0; }
.workspace-action-card strong, .workspace-action-card small { display: block; }
.workspace-action-card strong { font-size: 0.8rem; }
.workspace-action-card small { margin-top: 0.2rem; color: #8a909c; font-size: 0.7rem; }
.workspace-action-card b { margin-left: auto; color: #9aa0ac; font-size: 1.1rem; font-weight: 400; }
.workspace-disclaimer { margin: 2rem 0 0; color: #9298a3; font-size: 0.72rem; line-height: 1.5; }

.workspace-document-list { display: grid; gap: 0.5rem; margin-top: 1.3rem; }
.workspace-document { display: flex; align-items: center; gap: 0.75rem; border: 1px solid #e7e9ed; border-radius: 0.65rem; padding: 0.85rem; }
.workspace-document > .icon { width: 1.05rem; height: 1.05rem; color: #5a68ad; }
.workspace-document div { min-width: 0; flex: 1; }
.workspace-document strong, .workspace-document span { display: block; }
.workspace-document strong { color: #373c47; font-size: 0.8rem; }
.workspace-document span { margin-top: 0.25rem; color: #8a909c; font-size: 0.7rem; }
.workspace-document b { color: #9aa0ac; font-weight: 400; }
.workspace-empty-panel { display: flex; align-items: flex-start; gap: 0.9rem; margin-top: 1rem; border: 1px dashed #cfd4de; border-radius: 0.9rem; background: rgba(255, 255, 255, 0.45); padding: 1.25rem; }
.workspace-empty-panel__icon { display: grid; width: 2rem; height: 2rem; flex: 0 0 auto; place-items: center; border-radius: 0.55rem; background: #e9ebf1; color: #6e7583; }
.workspace-empty-panel__icon .icon { width: 1rem; height: 1rem; }
.workspace-empty-panel h2 { margin: 0; font-size: 0.95rem; }
.workspace-empty-panel p { margin: 0.35rem 0 0; color: #7a808d; font-size: 0.8rem; line-height: 1.55; }

.workspace-chat { max-width: 820px; margin-inline: auto; }
.workspace-chat__notice { display: flex; align-items: center; gap: 0.5rem; border-radius: 0.55rem; background: #f1f4fb; color: #5c678f; padding: 0.7rem 0.8rem; font-size: 0.73rem; }
.workspace-chat__notice .icon { width: 0.9rem; height: 0.9rem; }
.workspace-chat__log { display: grid; gap: 0.8rem; max-height: 26rem; overflow: auto; padding: 1.35rem 0.2rem; }
.workspace-chat__message { max-width: 80%; border-radius: 0.75rem; padding: 0.8rem 0.95rem; }
.workspace-chat__message strong { display: block; font-size: 0.72rem; }
.workspace-chat__message p { margin: 0.35rem 0 0; font-size: 0.82rem; line-height: 1.5; }
.workspace-chat__message--assistant { justify-self: start; background: #f0f1f4; }
.workspace-chat__message--user { justify-self: end; background: #e8ebf5; color: #384579; }
.workspace-chat__message--user p { color: #384579; }
.workspace-chat__form { display: flex; align-items: flex-end; gap: 0.65rem; border-top: 1px solid #e5e7eb; padding-top: 1rem; }
.workspace-chat__form textarea { flex: 1; min-height: 2.75rem; resize: vertical; border: 1px solid #dfe2e8; border-radius: 0.6rem; background: white; padding: 0.7rem; }

.workspace-checkup-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.workspace-signal { border-left: 0.25rem solid #d6d9e1; }
.workspace-signal--warning { border-left-color: #e0aa45; }
.workspace-signal--good { border-left-color: #45a77c; }
.workspace-signal p { margin-bottom: 0.8rem; }
.workspace-signal small { color: #8a909c; font-size: 0.7rem; }
.workspace-question-panel { margin-top: 1rem; }
.workspace-question-panel p { margin: 0.45rem 0 1rem; }

.workspace-draft-panel textarea { width: 100%; resize: vertical; border: 1px solid #dfe2e8; border-radius: 0.65rem; background: #fcfcfd; color: #353a45; line-height: 1.6; padding: 0.85rem; }
.workspace-draft-footer { display: flex; justify-content: space-between; gap: 1rem; margin-top: 0.6rem; color: #9298a3; font-size: 0.7rem; }
.workspace-vault-panel { display: grid; gap: 1.15rem; }
.workspace-vault-panel__intro { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.workspace-vault-panel__intro h2 { margin-bottom: 0.4rem; }
.workspace-vault-panel__intro p { max-width: 44rem; margin: 0; font-size: 0.8rem; }
.workspace-vault-panel__intro > .icon { width: 1.35rem; height: 1.35rem; flex: 0 0 auto; color: #4b5a9d; }
.workspace-vault-controls { display: grid; grid-template-columns: auto minmax(14rem, 1fr) auto; align-items: end; gap: 0.75rem; border-top: 1px solid #e8eaf0; padding-top: 1rem; }
.workspace-vault-unlock-field, .workspace-gmail-senders { display: grid; gap: 0.35rem; color: #5e6572; font-size: 0.73rem; font-weight: 700; }
.workspace-vault-unlock-field input, .workspace-gmail-senders input, .workspace-vault-notes textarea { width: 100%; box-sizing: border-box; border: 1px solid #dfe2e8; border-radius: 0.6rem; background: #fcfcfd; color: #353a45; font: inherit; padding: 0.68rem 0.75rem; }
.workspace-vault-recovery { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.75rem; align-items: center; border: 1px solid #e2ddbd; border-radius: 0.7rem; background: #fffbea; padding: 0.85rem; }
.workspace-vault-recovery strong { color: #66531e; font-size: 0.8rem; }
.workspace-vault-recovery p { margin: 0.2rem 0 0; color: #817144; font-size: 0.73rem; }
.workspace-vault-recovery code { grid-column: 1 / -1; overflow-wrap: anywhere; border-radius: 0.45rem; background: rgba(255,255,255,0.72); color: #49401f; font-size: 0.74rem; padding: 0.6rem; }
.workspace-vault-recovery .button { grid-column: 2; grid-row: 1; }
.workspace-vault-unlocked { display: grid; gap: 1rem; border-top: 1px solid #e8eaf0; padding-top: 1rem; }
.workspace-vault-unlocked__header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.workspace-vault-unlocked__header p { margin: 0; color: #4e755f; font-size: 0.77rem; font-weight: 650; }
.workspace-text-button { border: 0; background: transparent; color: #54639f; cursor: pointer; font: inherit; font-size: 0.74rem; font-weight: 750; padding: 0.25rem; }
.workspace-text-button:hover { color: #303c75; text-decoration: underline; }
.workspace-vault-notes { display: grid; gap: 0.65rem; }
.workspace-vault-notes h3, .workspace-gmail-connector h3 { margin: 0; color: #343943; font-size: 0.92rem; }
.workspace-vault-notes textarea { min-height: 5.75rem; resize: vertical; line-height: 1.5; }
.workspace-vault-note-actions { display: flex; justify-content: flex-end; }
.workspace-vault-note-list { display: grid; gap: 0.6rem; }
.workspace-vault-note-list > .muted { margin: 0; font-size: 0.76rem; }
.workspace-vault-note { border-left: 3px solid #b6bdd9; border-radius: 0 0.55rem 0.55rem 0; background: #f8f9fc; padding: 0.65rem 0.75rem; }
.workspace-vault-note strong { color: #58617e; font-size: 0.68rem; }
.workspace-vault-note p { margin: 0.3rem 0 0; color: #434957; font-size: 0.79rem; line-height: 1.5; white-space: pre-wrap; }
.workspace-gmail-connector { display: grid; gap: 0.7rem; border: 1px solid #dbe0f0; border-radius: 0.75rem; background: #f9faff; padding: 1rem; }
.workspace-gmail-connector--unavailable { border-style: dashed; background: #fcfcfd; }
.workspace-gmail-connector__heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.workspace-gmail-connector > p { margin: 0; font-size: 0.78rem; }
.workspace-gmail-senders small { color: #858b97; font-size: 0.68rem; font-weight: 500; line-height: 1.4; }
.workspace-gmail-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.workspace-gmail-status { min-height: 1.2rem; color: #65708c !important; font-size: 0.74rem !important; }
.workspace-settings-card + .workspace-settings-card { margin-top: 1rem; }
.workspace-settings-card--danger { border-color: #eed3d6; background: #fffafb; }
.workspace-settings-card--danger .button { margin-top: 1rem; }
.button--danger { border-color: #a54a54; background: #a54a54; color: white; }
.button--danger:hover { border-color: #873842; background: #873842; color: white; }
.workspace-setting-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; border-bottom: 1px solid #e7e9ed; padding: 0.3rem 0 1.1rem; }
.workspace-setting-row + .workspace-setting-row { margin-top: 1.1rem; }
.workspace-setting-row:last-child { border-bottom: 0; padding-bottom: 0; }
.workspace-setting-row strong { display: block; color: #343943; font-size: 0.86rem; }
.workspace-setting-row p { max-width: 38rem; margin: 0.35rem 0 0; font-size: 0.78rem; }
.workspace-setting-row > .icon { width: 1.2rem; height: 1.2rem; color: #31855f; }
.workspace-setting-row--action { align-items: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }

@media (max-width: 820px) {
  .workspace-app { grid-template-columns: 1fr; }
  .workspace-sidebar { position: static; height: auto; min-height: auto; border-right: 0; border-bottom: 1px solid #e0e3e9; overflow-y: visible; }
  .workspace-sidebar__spacer { display: none; }
  .workspace-sidebar__footer { margin-top: 0.75rem; }
  .workspace-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .workspace-nav__label { grid-column: 1 / -1; }
  .workspace-topbar { padding-inline: 1.25rem; }
  .workspace-content, .workspace-flash-wrap { width: min(100% - 2.5rem, 1120px); }
  .workspace-grid--hero, .workspace-checkup-grid, .workspace-dashboard-grid { grid-template-columns: 1fr; }
  .workspace-dashboard-aside { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .workspace-vault-controls { grid-template-columns: 1fr; align-items: stretch; }
}

@media (max-width: 560px) {
  .workspace-content { padding-top: 1.6rem; }
  .workspace-page-heading, .workspace-section__heading { flex-direction: column; }
  .workspace-summary-grid, .workspace-action-grid, .workspace-dashboard-aside { grid-template-columns: 1fr; }
  .workspace-chat__form { align-items: stretch; flex-direction: column; }
  .workspace-chat__form .button { align-self: flex-end; }
  .workspace-setting-row--action { align-items: flex-start; flex-direction: column; }
  .workspace-vault-panel__intro, .workspace-vault-unlocked__header, .workspace-gmail-connector__heading { align-items: flex-start; flex-direction: column; }
  .workspace-vault-recovery { grid-template-columns: 1fr; }
  .workspace-vault-recovery .button { grid-column: auto; grid-row: auto; justify-self: start; }
}
