:root {
  color-scheme: light;
  --page: #eaf2f1;
  --low: #dfebe9;
  --surface: #f7fbfa;
  --raised: #ffffff;
  --tint: #d5eae5;
  --secondary: #f2e6da;
  --ink: #172f2c;
  --muted: #405e58;
  --primary: #185c50;
  --on-primary: #ffffff;
  --border: #58766e;
  --focus: #6d3b83;
  --error: #972f3a;
  --specimen-inset: 24px;
  font-family: "Plus Jakarta Sans", "Segoe UI", Arial, sans-serif;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
:root[data-appearance="dark"] {
  color-scheme: dark;
  --page: #101c1c;
  --low: #172626;
  --surface: #1e3030;
  --raised: #273c3b;
  --tint: #294c46;
  --secondary: #43372e;
  --ink: #e7f3ef;
  --muted: #b4cec5;
  --primary: #a2d6c5;
  --on-primary: #12382e;
  --border: #8aaba1;
  --focus: #e7b6f4;
  --error: #ffb3be;
}
@media (prefers-color-scheme: dark) {
  :root[data-appearance="system"] {
    color-scheme: dark;
    --page: #101c1c;
    --low: #172626;
    --surface: #1e3030;
    --raised: #273c3b;
    --tint: #294c46;
    --secondary: #43372e;
    --ink: #e7f3ef;
    --muted: #b4cec5;
    --primary: #a2d6c5;
    --on-primary: #12382e;
    --border: #8aaba1;
    --focus: #e7b6f4;
    --error: #ffb3be;
  }
}
:root[data-density="compact"] { --specimen-inset: 16px; }
* { box-sizing: border-box; }
html { scroll-padding-block: 24px; }
body { margin: 0; background: var(--page); color: var(--ink); font-size: 1rem; line-height: 1.6; }
[hidden], dialog:not([open]) { display: none !important; }
h1, h2, h3, h4, p, figure { margin: 0; }
h1, h2, h3, h4 { font-weight: 600; text-wrap: balance; overflow-wrap: anywhere; }
h1, .overview h2, .display-sample { font-size: clamp(2.5rem, 5vw, 4rem); line-height: 1.1; letter-spacing: -.035em; }
h2 { font-size: 1.75rem; line-height: 1.25; letter-spacing: -.02em; }
h3 { font-size: 1.25rem; line-height: 1.35; letter-spacing: -.01em; }
h4 { font-size: 1.25rem; line-height: 1.4; }
p { overflow-wrap: anywhere; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: from-font; }
button, input, select { font: inherit; color: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button, select, input[type="checkbox"] { cursor: pointer; }
button:disabled, select:disabled, input:disabled { cursor: not-allowed; }
button:disabled, select:disabled, input:disabled { color: var(--muted); }
button:disabled { border-style: dashed; background: var(--surface); }
input::placeholder { color: var(--muted); opacity: 1; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
[tabindex="-1"]:focus { outline: 3px solid var(--focus); outline-offset: 3px; }
::selection { color: var(--on-primary); background: var(--primary); }
.container { width: min(100% - 48px, 1440px); margin-inline: auto; }
.skip-link { position: absolute; z-index: 5; inset-block-start: 8px; inset-inline-start: 24px; min-height: 44px; padding: 12px 16px; border-radius: 12px; background: var(--raised); color: var(--ink); transform: translateY(-160%); }
.skip-link:focus { transform: none; }
.preview-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px 24px; padding-block: 24px; }
.atlas-brand { display: inline-flex; min-height: 44px; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; }
.atlas-mark { width: 32px; height: 32px; fill: currentColor; }
.draft-label, .eyebrow, .small-label, label, .count-label { font-size: .875rem; line-height: 1.5; font-weight: 500; }
.draft-label { color: var(--muted); }
.draft-label span { margin-inline: 8px; }
.eyebrow { margin-block-end: 12px; }
.preview-intro { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; padding-block: 32px 48px; }
.intro-description { margin-block-start: 16px; color: var(--muted); }
.preview-settings { width: min(100%, 400px); }
.preference-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field label { color: var(--ink); }
.field input, .field select { width: 100%; min-width: 0; min-height: 48px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--raised); font-size: 1rem; line-height: 1.5; }
.field select { padding-inline-end: 28px; }
.checkbox-label { display: flex; align-items: center; gap: 12px; min-height: 44px; width: fit-content; max-width: 100%; cursor: pointer; }
.preview-settings .checkbox-label { margin-block-start: 8px; }
input[type="checkbox"] { flex: 0 0 auto; width: 20px; height: 20px; margin: 0; accent-color: var(--primary); }
.support { font-size: .875rem; line-height: 1.6; color: var(--muted); }
.workspace { display: grid; grid-template-columns: 224px minmax(0, 1fr); gap: 24px; align-items: start; }
.workspace-sidebar { background: var(--low); border-radius: 24px; padding: 24px 16px; min-width: 0; }
.workspace-brand { display: flex; align-items: center; gap: 12px; min-height: 56px; padding-inline: 8px; font-weight: 700; text-decoration: none; }
.brand-caption { display: block; font-size: .875rem; font-weight: 400; color: var(--muted); }
.plans-mark { position: relative; flex: 0 0 32px; height: 38px; }
.plans-mark i { position: absolute; width: 24px; height: 24px; border: 2px solid var(--ink); border-radius: 8px; background: var(--low); }
.plans-mark i:nth-child(1) { inset-block-start: 14px; inset-inline-start: 0; }
.plans-mark i:nth-child(2) { inset-block-start: 7px; inset-inline-start: 4px; background: var(--tint); }
.plans-mark i:nth-child(3) { inset-block-start: 0; inset-inline-start: 8px; background: var(--primary); border-color: var(--primary); }
.workspace-nav { display: grid; gap: 8px; margin-block: 32px; }
.workspace-nav a { display: flex; align-items: center; min-height: 48px; gap: 12px; border: 1px solid transparent; border-radius: 999px; padding: 12px; text-decoration: none; font-size: .875rem; font-weight: 500; }
.workspace-nav a:hover { border-color: var(--border); }
svg { flex: 0 0 auto; }
.workspace-nav svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.sidebar-note { margin-block-start: 64px; padding: 16px; border-radius: 12px; background: var(--secondary); }
.sidebar-note h2 { font-size: 1.25rem; line-height: 1.4; margin-block: 16px 12px; }
.sidebar-note p { font-size: .875rem; color: var(--muted); }
.note-symbol { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid var(--border); border-radius: 50%; font-size: 1.25rem; }
.sidebar-context { margin-block-start: 24px; padding-inline: 8px; }
.workspace-main { min-width: 0; }
.overview { display: grid; grid-template-columns: 1.25fr 1fr; gap: 24px; background: var(--tint); border-radius: 24px; padding: 48px 32px 32px; overflow: hidden; }
.overview-copy { align-self: center; min-width: 0; }
.overview-copy > p:not(.eyebrow) { margin-block: 24px; max-width: 36ch; color: var(--muted); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 16px; min-height: 48px; min-width: 44px; padding: 12px 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--raised); color: var(--ink); font-size: 1rem; font-weight: 500; line-height: 1.5; text-align: center; text-decoration: none; overflow-wrap: anywhere; }
.button:hover:not(:disabled) { border-color: var(--ink); }
.primary-button { color: var(--on-primary); background: var(--primary); border-color: var(--primary); }
.primary-button:hover:not(:disabled) { outline: 1px solid var(--primary); outline-offset: 2px; border-color: var(--primary); }
.primary-button:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.overview-study { display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 16px; min-width: 0; }
.surface-illustration { position: relative; width: 240px; max-width: 100%; height: 208px; margin-block: 8px 16px; }
.illustration-base { position: absolute; width: 168px; height: 152px; inset-inline-start: 16px; inset-block-start: 48px; border: 1px solid var(--border); background: var(--low); border-radius: 24px; transform: rotate(-12deg); }
.illustration-middle { position: absolute; width: 168px; height: 152px; inset-inline-start: 48px; inset-block-start: 24px; border: 1px solid var(--border); background: var(--raised); border-radius: 24px; transform: rotate(6deg); padding: 24px; }
.illustration-middle span { display: block; height: 8px; width: 64px; background: var(--tint); border-radius: 4px; margin-block-start: 12px; }
.illustration-middle span + span { width: 40px; }
.illustration-top { position: absolute; inset-inline-start: 108px; inset-block-start: 0; display: grid; place-items: center; width: 88px; height: 88px; border-radius: 24px; background: var(--primary); color: var(--on-primary); transform: rotate(-8deg); }
.illustration-top svg { width: 48px; height: 48px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.illustration-dot { position: absolute; width: 24px; height: 24px; inset-inline-end: 0; inset-block-end: 0; background: var(--secondary); border-radius: 50%; border: 1px solid var(--border); }
.overall-stat { width: 100%; padding: 16px; border-radius: 12px; background: var(--surface); }
.overall-stat .small-label { color: var(--muted); }
.overall-stat p { font-weight: 600; font-variant-numeric: tabular-nums; margin-block-start: 4px; }
.section-block { margin-block-start: 48px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-block-end: 24px; }
.section-heading .eyebrow { color: var(--muted); margin-block-end: 8px; }
.section-heading > p { max-width: 42ch; color: var(--muted); }
.count-label { flex: 0 0 auto; font-variant-numeric: tabular-nums; }
.project-toolbar { display: flex; align-items: end; gap: 16px; padding: 24px; border-radius: 24px; background: var(--surface); margin-block-end: 12px; }
.search-field { flex: 1; }
.category-field { flex: 0 1 224px; }
.interaction-status { min-height: 1.6em; margin-block: 8px 16px; }
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.project-card { min-width: 0; padding: 24px; border: 2px solid transparent; border-radius: 24px; background: var(--surface); display: flex; flex-direction: column; }
.project-card[data-current="true"] { border-color: var(--border); }
.card-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-block-end: 24px; }
.card-top > .small-label { color: var(--muted); }
.project-symbol { width: 56px; height: 56px; display: grid; place-items: center; background: var(--tint); border-radius: 12px; }
.studio-card .project-symbol { background: var(--secondary); }
.weekend-card .project-symbol { background: var(--low); }
.project-symbol svg { width: 32px; height: 32px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.project-card > p { margin-block: 12px 24px; color: var(--muted); }
.card-progress { display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: space-between; margin-block-start: auto; font-size: .875rem; font-variant-numeric: tabular-nums; }
.priority-label { font-weight: 500; }
.progress-track { width: 100%; height: 6px; border-radius: 999px; background: var(--low); margin-block: 12px 16px; overflow: hidden; }
.progress-track span { display: block; height: 100%; background: var(--primary); border-radius: inherit; }
.card-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; min-height: 44px; gap: 4px 12px; }
.current-marker { font-size: .875rem; line-height: 1.5; font-weight: 500; }
.current-marker::before { content: "✓ "; }
.open-project { display: inline-flex; align-items: center; justify-content: space-between; gap: 16px; min-width: 76px; min-height: 44px; margin-inline-start: auto; font-size: .875rem; font-weight: 600; text-decoration: underline; }
.empty-state { background: var(--surface); border-radius: 24px; padding: 32px; }
.empty-state p { color: var(--muted); max-width: 65ch; margin-block: 12px 24px; }
.project-detail { background: var(--surface); border-radius: 24px; padding: 32px; }
.project-detail + .project-detail { margin-block-start: 24px; }
.js .project-detail + .project-detail { margin-block-start: 0; }
.detail-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-block-end: 32px; }
.detail-heading > div { min-width: 0; }
.detail-heading .small-label { margin-block-end: 8px; color: var(--muted); }
.detail-heading h3 { font-size: 1.75rem; line-height: 1.25; }
.detail-heading p:last-child { margin-block-start: 12px; color: var(--muted); max-width: 50ch; }
.detail-heading > .button { flex: 0 0 auto; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.task-list { min-width: 0; border: 0; padding: 0; margin: 0; }
.task-list legend { display: block; width: 100%; font-weight: 600; padding: 0; margin-block-end: 16px; }
.task-list legend span { display: block; font-weight: 400; font-size: .875rem; color: var(--muted); margin-block-start: 4px; }
.task-label { min-height: 56px; display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--raised); border: 1px solid var(--border); border-radius: 12px; font-size: 1rem; margin-block-end: 12px; cursor: pointer; }
.task-label input:checked + span { text-decoration: line-through; text-decoration-thickness: 1px; }
.project-note { min-width: 0; padding: 24px; border-radius: 24px; background: var(--secondary); }
.project-note h4 { margin-block: 12px; }
.project-note p:not(.small-label) { color: var(--muted); font-size: .875rem; }
.project-note .button { margin-block-start: 24px; }
.specimen { margin-block-start: 64px; }
.specimen-panel { background: var(--surface); border-radius: 24px; padding: var(--specimen-inset); }
.specimen-top { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; margin-block-end: 32px; }
.specimen-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.control-study, .type-study { min-width: 0; }
.control-study > * + * { margin-block-start: 24px; }
.type-study > * + * { margin-block-start: 24px; }
.type-study > p:not(.display-sample) { max-width: 65ch; }
.type-study .display-sample { font-weight: 600; }
.technical { font-family: Consolas, "Courier New", monospace; font-size: .875rem; overflow-wrap: anywhere; }
.message { padding: 16px; background: var(--tint); color: var(--ink); border-radius: 12px; }
.error-message { border: 1px solid var(--error); background: var(--raised); color: var(--error); }
.surface-samples { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.surface-sample { display: flex; align-items: end; min-height: 80px; padding: 12px; border: 1px solid var(--border); border-radius: 12px; font-size: .875rem; color: var(--ink); overflow-wrap: anywhere; }
.sample-page { background: var(--page); }
.sample-low { background: var(--low); }
.sample-surface { background: var(--surface); }
.sample-raised { background: var(--raised); }
.sample-tint { background: var(--tint); }
.sample-secondary { background: var(--secondary); }
.table-wrap { overflow-x: auto; max-width: 100%; margin-block-start: 32px; border: 1px solid var(--border); border-radius: 12px; }
table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: .875rem; }
caption { text-align: start; font-weight: 500; background: var(--low); padding: 16px; }
th, td { text-align: start; vertical-align: top; padding: 16px; border-block-start: 1px solid var(--border); overflow-wrap: anywhere; }
th { font-weight: 600; }
td { color: var(--muted); }
dialog { width: min(100% - 32px, 560px); max-height: calc(100% - 32px); margin: auto; border: 1px solid var(--border); border-radius: 28px; padding: 32px; color: var(--ink); background: var(--raised); box-shadow: 0 24px 64px rgba(0, 0, 0, .24); overflow-y: auto; overscroll-behavior: contain; }
dialog::backdrop { background: rgba(0, 0, 0, .48); }
body:has(dialog[open]) { overflow: hidden; }
dialog form > .field { margin-block-start: 24px; }
dialog h2 { margin-block-end: 12px; }
.dialog-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 12px; margin-block-start: 32px; }
.field-error { color: var(--error); font-size: .875rem; }
[aria-invalid="true"] { border-color: var(--error) !important; border-width: 2px !important; }
.error-summary { border: 2px solid var(--error); border-radius: 12px; padding: 16px; color: var(--error); margin-block-start: 24px; }
.error-summary h3 { font-size: 1rem; line-height: 1.5; }
.error-summary ul { padding-inline-start: 24px; margin-block: 8px 0; }
.error-summary a { display: inline-flex; min-height: 44px; min-width: 44px; align-items: center; }
.preview-footer { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 64px; margin-block: 96px 48px; padding-block-start: 48px; border-block-start: 1px solid var(--border); }
.preview-footer p { max-width: 65ch; }
.preview-footer p:not(.eyebrow) { margin-block-start: 24px; }
.preview-footer nav { display: grid; align-content: start; gap: 8px; }
.preview-footer nav a { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 48px; min-width: 44px; padding-block: 8px; }
.preview-footer > div a { display: inline-flex; min-height: 44px; min-width: 44px; align-items: center; }
@media (prefers-reduced-motion: no-preference) {
  :root[data-motion="on"] .button, :root[data-motion="on"] .open-project, :root[data-motion="on"] .workspace-nav a, :root[data-motion="on"] .field input, :root[data-motion="on"] .field select { transition-property: background-color, border-color, color; transition-duration: 160ms; transition-timing-function: cubic-bezier(.2, 0, 0, 1); }
}
@media (max-width: 73.75rem) {
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .overview { grid-template-columns: minmax(0, 1fr); padding: 32px; }
  .overview-study { flex-direction: row; justify-content: start; gap: 32px; }
  .surface-illustration { flex: 0 0 208px; height: 184px; margin-block: 0; }
  .illustration-base, .illustration-middle { width: 144px; height: 128px; }
  .illustration-middle { inset-inline-start: 40px; }
  .illustration-top { width: 72px; height: 72px; inset-inline-start: 96px; }
  .overall-stat { flex: 1; width: auto; }
  .detail-grid { grid-template-columns: minmax(0, 1fr); }
  .project-note { padding: 24px; }
  .section-heading { flex-wrap: wrap; align-items: start; }
}
@media (max-width: 60rem) {
  .workspace { grid-template-columns: minmax(0, 1fr); }
  .workspace-sidebar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; padding: 16px; }
  .workspace-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
  .sidebar-note, .sidebar-context { display: none; }
  .overview { grid-template-columns: 1.25fr 1fr; }
  .overview-study { flex-direction: column; gap: 16px; }
  .overall-stat { flex: auto; width: 100%; }
  .detail-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
  .preview-footer { gap: 32px; }
}
@media (max-width: 43.75rem) {
  .container { width: calc(100% - 32px); }
  .preview-header { gap: 8px; padding-block: 16px; }
  .preview-intro { flex-direction: column; gap: 24px; padding-block: 24px 32px; }
  .preview-settings { width: 100%; }
  .workspace-sidebar { display: block; }
  .workspace-nav { margin-block-start: 16px; }
  .workspace-nav a { flex: 1 1 auto; }
  .overview { grid-template-columns: minmax(0, 1fr); padding: 24px; }
  .overview-study { align-items: stretch; }
  .surface-illustration { display: none; }
  .overview h2 br { display: none; }
  .project-grid, .detail-grid, .specimen-grid, .preview-footer { grid-template-columns: minmax(0, 1fr); }
  .project-toolbar { align-items: stretch; flex-direction: column; padding: 24px; }
  .category-field { flex: auto; }
  .detail-heading { flex-direction: column; }
  .project-detail { padding: 24px; }
  .section-block { margin-block-start: 32px; }
  .specimen { margin-block-start: 48px; }
  .specimen-grid { gap: 32px; }
  .surface-samples { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .preview-footer { margin-block: 64px 32px; padding-block-start: 32px; }
  dialog { padding: 24px; }
}
@media (max-width: 23.75rem) {
  .preference-fields { grid-template-columns: minmax(0, 1fr); }
  .dialog-actions { flex-direction: column-reverse; }
  .dialog-actions .button { width: 100%; }
}
@media (forced-colors: active) {
  :focus-visible, [tabindex="-1"]:focus { outline-color: Highlight; }
  .project-card[data-current="true"], .button, .field input, .field select, .task-label { border-color: ButtonText; }
  .project-card[data-current="true"] { outline: 2px solid Highlight; }
  .progress-track { border: 1px solid CanvasText; }
  .progress-track span { background: Highlight; }
}
