/* Overview, task discovery, learning, and Atlas. */
.studio-page-head:where(.overview-page-head, .discovery-catalog-head, .learning-hub-head) {
 display: flex;
 align-items: center;
 justify-content: space-between;
 flex-wrap: wrap;
 gap: 8px 16px;
}
.studio-page-head:where(.overview-page-head, .discovery-catalog-head, .learning-hub-head) h2 {
 font-size: clamp(24px, 2vw, 30px);
}
:where(.overview-page-head, .studio-atlas-heading, .learning-hub-head) .link-btn {
 display: inline-flex;
 align-items: center;
 gap: 6px;
 min-height: 34px;
}
:where(.overview-page-head, .studio-atlas-heading, .learning-hub-head) :is(svg, .link-btn svg) {
 width: 14px;
 height: 14px;
}

/* Personal progress uses a single reading column with paired cards and evidence. */
#studio-overview { max-width: 662px; }
#studio-overview [hidden] { display: none; }
#studio-overview .overview-page-head { padding: 0; margin-bottom: 14px; }
#studio-overview .overview-page-head h2 {
 font: 700 23px/1.2 var(--display-font);
 letter-spacing: -.025em;
}
#overview-metrics-period { color: var(--ink2); font-size: 12px; }
.overview-metrics {
 display: grid;
 grid-template-columns: repeat(4,minmax(0,1fr));
 gap: 12px;
 margin: 0 0 20px;
}
.overview-metrics > div { display: grid; align-content: start; gap: 4px; min-width: 0; }
.overview-metrics dt, .overview-metrics dd + dd { color: var(--ink2); font: 400 13px/1.4 var(--font); letter-spacing: normal; }
.overview-metrics dd { margin: 0; color: var(--ink); font: 700 23px/1.12 var(--display-font); letter-spacing: -.025em; font-variant-numeric: tabular-nums; }
.overview-board > section, .overview-board > details { min-width: 0; }
.overview-board h3 { margin: 0; font: 700 16px/1.3 var(--display-font); }
.overview-board h4 { margin: 0; font-size: 14px; }
.overview-section { border-top: 1px solid var(--line); padding-top: 23px; margin-top: 22px; }
.overview-resume > h3 { margin-bottom: 16px; }
.overview-practice {
 display: grid;
 grid-template-columns: minmax(0,1fr) minmax(0,35%);
 align-items: stretch;
 gap: 12px;
 min-height: 155px;
 padding: 10px 11px;
 border-left: 1px solid var(--line);
}
.overview-practice:has(.overview-sql[hidden]) { grid-template-columns: minmax(0,1fr); min-height: 0; }
.overview-practice-copy { display: grid; align-content: center; justify-items: start; min-width: 0; padding-block: 4px; }
#overview-task-context { color: var(--ink2); font-size: 13px; font-weight: 400; }
.overview-practice h4 { margin: 7px 0 5px; font: 700 17px/1.3 var(--display-font); letter-spacing: -.012em; overflow-wrap: anywhere; }
.overview-practice p { margin: 0 0 7px; font-size: 13px; }
#overview-task-open { display: inline-flex; align-items: center; gap: 6px; min-height: 33px; padding-inline: 14px; }
#overview-task-open svg, .overview-card-action svg { width: 13px; height: 13px; }
.overview-sql {
 min-width: 0;
 align-content: center;
 margin: 0;
 padding: 13px 15px;
 background: var(--editor-bg);
 border-radius: var(--ui-radius);
 color: var(--editor-ink);
 font: 13px/1.8 var(--mono);
}
.overview-sql code { display: block; }
.overview-sql-line { display: flex; align-items: center; gap: 12px; min-height: 1.8em; overflow: hidden; white-space: nowrap; }
.overview-sql-keyword { flex-shrink: 0; color: var(--editor-keyword); }
.overview-sql-fragment { height: 8px; min-width: 16px; border-radius: 2px; background: color-mix(in srgb,var(--muted) 44%,var(--surface-3)); }
.overview-sql-fragment[data-size="short"] { width: 29px; }
.overview-sql-fragment[data-size="medium"] { width: 47px; }
.overview-sql-fragment[data-size="long"] { width: 64px; }
.overview-continuations { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin-top: 14px; }
.overview-continuations .studio-reading {
 display: flex;
 flex-direction: column;
 align-items: flex-start;
 gap: 7px;
 min-width: 0;
 min-height: 168px;
 margin: 0;
 padding: 12px 11px;
 color: var(--ink);
 text-align: left;
 text-decoration: none;
}
.overview-continuations .studio-reading > svg { width: 17px; height: 17px; color: var(--violet); }
.overview-continuation-label { color: var(--ink2); font-size: 13px; }
.overview-continuations .studio-reading strong { margin-top: 2px; font-size: 14px; }
.overview-continuations small { line-height: 1.5; margin: 0; }
.overview-card-action { display: inline-flex; align-items: center; gap: 5px; margin-top: auto; padding-top: 3px; color: var(--violet); font-size: 13px; }
.overview-section .link-btn { display: inline-flex; align-items: center; gap: 5px; min-height: 31px; text-align: left; font-size: 13px; }
.overview-section .link-btn svg { width: 13px; height: 13px; }
.overview-continuations progress, .overview-skill-bars progress {
 --progress-fill: var(--violet);
 display: block;
 width: 100%;
 height: 6px;
 appearance: none;
 border: 0;
 border-radius: 4px;
 overflow: hidden;
 background: var(--surface-2);
 accent-color: var(--violet);
}
.overview-continuations progress::-webkit-progress-bar, .overview-skill-bars progress::-webkit-progress-bar { background: var(--surface-2); }
.overview-continuations progress::-webkit-progress-value, .overview-skill-bars progress::-webkit-progress-value { background: var(--progress-fill); border-radius: 4px; }
.overview-continuations progress::-moz-progress-bar, .overview-skill-bars progress::-moz-progress-bar { background: var(--progress-fill); border-radius: 4px; }
.overview-skill-bars progress { --progress-fill: var(--chart-series); }
.overview-skill-bars progress:hover { --progress-fill: color-mix(in srgb,var(--chart-series),white var(--chart-hover-lightness)); }
.overview-list, .overview-check-profiles, .overview-bars { list-style: none; margin: 5px 0 0; padding: 0; }
.overview-list:empty { display: none; }
.overview-list li + li { border-top: 1px solid var(--line); }
.overview-row {
 display: grid;
 grid-template-columns: 19px minmax(0,1fr) 14px;
 gap: 9px;
 align-items: center;
 width: 100%;
 min-height: 48px;
 padding: 8px 5px;
 text-align: left;
 background: transparent;
 color: var(--ink);
 border: 0;
 border-radius: var(--ui-radius);
 text-decoration: none;
}
.overview-row:hover { background: var(--surface); color: var(--ink); text-decoration: none; }
.overview-row > span { display: grid; gap: 3px; min-width: 0; }
.overview-row strong, .overview-check-row strong { font-size: 13px; line-height: 1.35; overflow-wrap: anywhere; }
.overview-row small, .overview-check-row small, .overview-milestone small { color: var(--muted); font-size: 12px; line-height: 1.45; }
.overview-row svg { width: 15px; height: 15px; color: var(--violet); }
.overview-recommendation { display: grid; justify-items: start; gap: 2px; padding: 10px 13px; margin-block: 5px 4px; border-inline-start: 2px solid var(--violet); background: var(--surface); }
.overview-recommendation small { color: var(--muted); }
.overview-recommendation button { color: var(--ink); font-size: 14px !important; font-weight: 700; }
#overview-review { margin-top: 4px; padding-inline: 5px; }
.overview-note { margin: 5px 0 3px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.overview-skill-layout { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; margin-top: 11px; }
.overview-skill-layout:has(.overview-evidence[hidden]) { grid-template-columns: minmax(0,1fr); }
.overview-skill-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.overview-skill-bar-label { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 3px; color: var(--ink); font-size: 13px; }
.overview-skill-bar-label span + span { color: var(--ink2); white-space: nowrap; font-variant-numeric: tabular-nums; }
#overview-skill-scale { margin-top: 8px; font-size: 11px; }
.overview-evidence { min-width: 0; }
.overview-evidence h4 { display: flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 700; }
.overview-evidence h4 svg { width: 13px; height: 13px; }
#overview-skill-strengths h4 { color: var(--success-ink); }
#overview-skill-focus h4 { color: var(--warning-ink); }
.overview-evidence > div + div { margin-top: 10px; }
.overview-evidence-line p { margin: 3px 0 0; color: var(--ink2); font-size: 13px; line-height: 1.52; }
.overview-evidence .overview-recommendation { margin-top: 4px; }
.overview-disclosure { margin-top: 8px; color: var(--muted); font-size: 13px; }
.overview-disclosure summary { cursor: pointer; min-height: 32px; padding: 7px 0; color: var(--violet); }
.overview-skill-record { padding: 7px 0; border-top: 1px solid var(--line); display: grid; gap: 3px; }
.overview-skill-record strong { color: var(--ink); }
.overview-check-profiles { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 7px; margin-top: 13px; }
.overview-check-profile { display: grid; align-content: start; gap: 6px; min-height: 102px; padding: 10px; min-width: 0; border: 1px solid var(--line); border-radius: var(--ui-radius); overflow-wrap: anywhere; }
.overview-profile-heading { display: flex; align-items: center; justify-content: space-between; gap: 5px; }
.overview-profile-heading svg, .overview-profile-dot { flex: 0 0 11px; width: 11px; height: 11px; }
.overview-profile-heading svg { color: var(--success-ink); }
.overview-profile-footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 3px 6px; }
.overview-profile-dot { background: var(--muted); border-radius: 50%; }
.overview-check-profile small { color: var(--ink2); font-size: 12px; }
.overview-check-profile .overview-delta { color: var(--violet); }
.overview-profile-score { font: 700 14px/1.35 var(--display-font); font-variant-numeric: tabular-nums; margin-top: 7px; }
.overview-check-profile .overview-profile-action { justify-self: start; min-height: 24px; padding: 0; }
.overview-check-row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 8px 0; }
.overview-check-row > span { display: grid; gap: 2px; min-width: 0; }
.overview-check-score { text-align: right; font-variant-numeric: tabular-nums; }
.overview-history-filter { display: inline-flex; align-items: center; gap: 10px; margin-block: 4px; }
.overview-history-filter select { min-height: 32px; }
.overview-activity { margin-top: 18px; }
.overview-activity h3 { margin-bottom: 15px; }
#overview-activity-empty { margin: 0; }
.overview-period { display: flex; flex-wrap: wrap; gap: 3px; }
.overview-period button { min-height: 31px; padding: 2px 7px; background: transparent; border: 1px solid transparent; border-radius: var(--ui-radius); color: var(--muted); font-size: 12px; }
.overview-period button[aria-pressed=true] { background: var(--surface); border-color: var(--line); color: var(--ink); }
.overview-trend-summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; color: var(--muted); margin-block: 4px 12px; font-size: 13px; }
.overview-trend-summary strong { color: var(--ink); font: 700 20px/1.1 var(--display-font); }
.overview-period-output { margin-inline-start: 7px; color: var(--ink2); }
.overview-calendar-scroll { overflow-x: auto; padding: 3px; }
.overview-calendar {
 display: grid;
 grid-auto-flow: column;
 grid-template-columns: repeat(var(--overview-weeks,52), minmax(0,1fr));
 grid-template-rows: repeat(7,10px);
 gap: 3px;
 min-width: 560px;
}
.overview-calendar-scroll:not([data-period="364"]) .overview-calendar {
 min-width: 0;
 width: max-content;
 grid-template-columns: repeat(var(--overview-weeks),10px);
}
.overview-day-cell, .overview-calendar-caption i { --cell-fill: var(--surface-2); border: 0; border-radius: 3px; padding: 0; background: var(--cell-fill); }
.overview-day-cell[aria-hidden=true] { background: transparent; }
:is(.overview-day-cell,.overview-calendar-caption i)[data-level="1"] { --cell-fill: color-mix(in srgb,var(--chart-series) 24%,var(--surface)); }
:is(.overview-day-cell,.overview-calendar-caption i)[data-level="2"] { --cell-fill: color-mix(in srgb,var(--chart-series) 44%,var(--surface)); }
:is(.overview-day-cell,.overview-calendar-caption i)[data-level="3"] { --cell-fill: color-mix(in srgb,var(--chart-series) 68%,var(--surface)); }
:is(.overview-day-cell,.overview-calendar-caption i)[data-level="4"] { --cell-fill: var(--chart-series); }
.overview-day-cell[data-level]:not([data-level="0"]):is(:hover,:focus-visible) { background: color-mix(in srgb,var(--cell-fill),white var(--chart-hover-lightness)); }
.overview-day-cell[aria-pressed=true] { outline: 1px solid var(--light-neutral); outline-offset: 1px; }
.overview-day-cell:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; z-index: 1; }
.overview-calendar-caption { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 5px; margin-top: 8px; color: var(--ink2); font-size: 12px; }
.overview-calendar-caption > span:last-child { display: flex; gap: 4px; align-items: center; }
.overview-calendar-caption i { width: 9px; height: 9px; border-radius: 50%; }
.overview-day { display: grid; gap: 6px; margin-top: 10px; padding: 9px 12px; border: 1px solid var(--line); border-radius: var(--ui-radius); color: var(--muted); font-size: 13px; line-height: 1.45; }
.overview-day strong { color: var(--ink); }
.overview-day-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.overview-day-list li { display: flex; justify-content: space-between; gap: 9px; }
.overview-day-list li span + span { color: var(--ink2); font-variant-numeric: tabular-nums; }
.overview-bars { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0,1fr); gap: 4px; height: 51px; max-width: 480px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.overview-bars li { display: flex; align-items: end; background: var(--surface); }
.overview-week-bar { width: 100%; height: calc(100% * var(--fraction)); background: var(--chart-series); border-radius: 2px 2px 0 0; }
.overview-week-bar:hover { background: color-mix(in srgb,var(--chart-series),white var(--chart-hover-lightness)); }
#overview-trend > .overview-note { margin-bottom: 11px; }
.overview-work h4 { color: var(--muted); margin-top: 8px; }
.overview-project-list { margin-bottom: 10px; }
.overview-milestone { display: flex; align-items: start; gap: 10px; padding: 8px 0; }
.overview-milestone > div { display: grid; }
.overview-milestone svg { width: 16px; height: 16px; margin-top: 2px; color: var(--violet); }
.overview-next { padding-top: 8px; }
.overview-secondary { margin-top: 3px; }
.overview-next > summary, .overview-secondary > summary { color: var(--ink); font-weight: 700; }
.overview-work > .link-btn svg { width: 13px; height: 13px; }
@media (max-width: 520px) {
 .overview-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
 .overview-practice { grid-template-columns: minmax(0,1fr); min-height: 0; }
 .overview-continuations { grid-template-columns: minmax(0,1fr); }
 .overview-continuations .studio-reading { min-height: 0; }
 .overview-skill-layout { grid-template-columns: minmax(0,1fr); }
 .overview-check-profiles { grid-template-columns: minmax(0,1fr); }
 .overview-check-profile { grid-template-columns: minmax(0,1fr) minmax(0,1fr); align-items: center; min-height: 0; padding: 8px 10px; }
 .overview-profile-heading { justify-content: flex-start; }
 .overview-profile-score { margin-top: 0; }
 .overview-profile-footer, .overview-profile-action { grid-column: 2; }
}

.discovery-overview-shortcuts {
 display: flex;
 align-items: center;
 flex-wrap: wrap;
 gap: 5px;
 margin-top: 18px;
 padding-top: 9px;
 border-top: 1px solid var(--line);
}
.discovery-overview-shortcuts .studio-backup { margin: 0; }

.app-shell > .main-shell {
 display: flex;
 flex-direction: column;
 min-height: 100dvh;
}
.main-shell > #studio-content { width: 100%; margin-block: 0; }


.discovery-overview-shortcuts > button {
 display: inline-flex;
 align-items: center;
 gap: 7px;
 min-height: 34px;
 padding: 5px 8px;
 border: 1px solid transparent;
 border-radius: var(--ui-radius);
 background: transparent;
 color: var(--ink2);
 font-size: 13px;
}
.discovery-overview-shortcuts > button:hover {
 border-color: var(--line);
 background: var(--surface);
}
.discovery-overview-shortcuts svg {
 width: 15px;
 height: 15px;
 color: var(--muted);
}
.discovery-overview-shortcuts small {
 color: var(--muted);
 font-variant-numeric: tabular-nums;
}
.discovery-overview-shortcuts small:empty { display: none; }
.studio-article-atlas { width: 100%; max-width: 1240px; margin-inline: auto; }
.studio-atlas-heading {
 display: flex;
 flex-wrap: wrap;
 justify-content: space-between;
 align-items: flex-start;
 gap: 8px 18px;
 padding: 20px 0 22px;
 border-block: 1px solid var(--line);
 border-top-color: var(--light-neutral);
}
.studio-atlas-heading h2 {
 font-size: clamp(36px, 4vw, 53px);
 letter-spacing: -.045em;
}
.studio-atlas-heading p { margin-top: 8px; }
.studio-atlas-summary {
 display: flex;
 flex-wrap: wrap;
 align-items: baseline;
 gap: 7px 0;
 margin: 17px 0 0;
 padding: 0;
 list-style: none;
 color: var(--muted);
 font-size: 13px;
}
.studio-atlas-summary li { padding-inline: 14px; }
.studio-atlas-summary li:first-child { padding-inline-start: 0; }
.studio-atlas-summary li + li { border-inline-start: 1px solid var(--line); }
.studio-atlas-summary strong { color: var(--ink); font: 700 17px/1.2 var(--display-font); }

.studio-atlas-layout, .studio-atlas-toolbar {
 display: grid;
 grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
 align-items: start;
 gap: 0 clamp(18px, 3.2vw, 42px);
}
.studio-atlas-toolbar { align-items: center; margin: 22px 0 14px; }
.studio-atlas-toolbar > h3 {
 margin: 0;
 font: 700 clamp(22px, 2.25vw, 31px)/1.2 var(--display-font);
 letter-spacing: -.03em;
}
.studio-atlas-search-wrap { position: relative; min-width: 0; }
.studio-atlas-search-wrap svg { position: absolute; top: 12px; left: 12px; width: 16px; height: 16px; color: var(--muted); pointer-events: none; }
#studio-atlas-search { width: 100%; min-height: 40px; padding: 7px 10px 7px 36px; font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: var(--ui-radius); }
#studio-atlas-search::placeholder { color: var(--muted); opacity: 1; }
.studio-atlas-directions {
 display: flex;
 flex-wrap: wrap;
 gap: 4px 16px;
 margin-bottom: 15px;
}
.studio-atlas-directions a { display: inline-flex; align-items: center; min-height: 30px; color: var(--violet); font-size: 13px; font-weight: 700; }
.studio-atlas-directions a:hover { text-decoration: underline; text-underline-offset: 3px; }
.studio-atlas-section, .studio-atlas-group { scroll-margin-top: 62px; }
.studio-atlas-section + .studio-atlas-section, .studio-atlas-group + .studio-atlas-group { margin-top: 21px; }
.studio-atlas-section-head, .studio-atlas-related h4, .studio-atlas-match-topic {
 margin: 0;
 padding: 10px 7px 11px;
 border-top: 1px solid var(--light-neutral);
 border-bottom: 1px solid var(--line);
 color: var(--ink);
 font: 700 clamp(16px, 1.45vw, 20px)/1.3 var(--display-font);
}
.studio-atlas-section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.studio-atlas-section-head h4 { margin: 0; font: inherit; }
.studio-atlas-section-head span { margin-right: 23px; color: var(--muted); font: 400 12px/1.4 var(--font); }
.studio-atlas-section h4:focus, #studio-atlas-topic-title:focus { outline: none; }
.studio-atlas-match-topic { display: block; }
.studio-atlas-match-topic:hover { color: var(--violet); }
.studio-atlas-topic-list, .studio-atlas-list, .studio-atlas-quick-links { margin: 0; padding: 0; list-style: none; }
.studio-atlas-topic-list li, .studio-atlas-list li { border-bottom: 1px solid var(--line); }
.studio-atlas-list { border-top: 1px solid var(--line); }
.studio-atlas-group .studio-atlas-list { border-top: 0; }
.studio-atlas-row {
 position: relative;
 display: grid;
 grid-template-columns: 32px minmax(0, 1fr) 16px;
 align-items: center;
 gap: 10px;
 min-height: 65px;
 padding: 10px 11px 10px 8px;
 color: var(--ink);
}
.studio-atlas-topic {
 grid-template-columns: 44px minmax(0, 1fr) minmax(2ch, auto) 16px;
 gap: 12px;
 min-height: 96px;
 padding: 17px 11px 17px 8px;
}
.studio-atlas-row:hover, .studio-atlas-row:focus-visible, .studio-atlas-topic.is-previewed { background: var(--surface-2); }
.studio-atlas-row:focus-visible { outline-offset: -2px; }
.studio-atlas-topic.is-previewed::before {
 position: absolute;
 inset: 12px auto 12px 0;
 width: 2px;
 background: var(--action);
 content: "";
}
.studio-atlas-row-index, .studio-atlas-row-count, .studio-atlas-meta {
 color: var(--muted);
 font: 400 12px/1.4 var(--mono);
 font-variant-numeric: tabular-nums;
}
.studio-atlas-row-count { text-align: right; color: var(--ink2); }
.studio-atlas-row-copy { display: grid; gap: 3px; min-width: 0; }
.studio-atlas-row-copy strong { font-size: 15px; font-weight: 700; line-height: 1.35; overflow-wrap: anywhere; }
.studio-atlas-topic .studio-atlas-row-copy { gap: 5px; }
.studio-atlas-topic .studio-atlas-row-copy strong {
 font: 700 clamp(20px, 1.65vw, 23px)/1.2 var(--display-font);
 letter-spacing: -.02em;
}
.studio-atlas-row-copy small { color: var(--muted); font-size: 13px; line-height: 1.35; overflow-wrap: anywhere; }
.studio-atlas-topic .studio-atlas-row-copy small { font-size: 14px; line-height: 1.45; }
.studio-atlas-row svg, .studio-atlas-quick-links svg { width: 15px; height: 15px; color: var(--muted); }
.studio-atlas-row:hover svg, .studio-atlas-row:focus-visible svg { color: var(--violet); }

.studio-atlas-preview {
 position: sticky;
 top: 65px;
 min-width: 0;
 border: 1px solid var(--line);
 border-radius: var(--ui-radius);
 background: var(--surface);
}
.studio-atlas-preview-label {
 display: flex;
 justify-content: space-between;
 gap: 8px;
 padding: 12px 17px;
 border-bottom: 1px solid var(--line);
 color: var(--muted);
 font-size: 13px;
}
.studio-atlas-example {
 display: grid;
 align-content: center;
 gap: 11px;
 min-width: 0;
 margin: 0;
 padding: 15px 17px;
 background: var(--editor-bg);
 color: var(--editor-ink);
}
.studio-atlas-example figcaption { color: var(--muted); font: 400 12px/1.4 var(--mono); }
.studio-atlas-example pre {
 min-width: 0;
 margin: 0;
 font: 400 12.5px/1.58 var(--mono);
 white-space: pre-wrap;
 overflow-wrap: anywhere;
 tab-size: 2;
}
.studio-atlas-example code { font: inherit; }

.studio-atlas-preview-copy { padding: 15px 17px 17px; border-top: 1px solid var(--line); }
.studio-atlas-preview-copy h4 {
 margin: 4px 0 5px;
 font: 700 clamp(19px, 1.7vw, 23px)/1.2 var(--display-font);
 letter-spacing: -.025em;
}
.studio-atlas-preview-copy p { margin: 0; color: var(--muted); font-size: 13px; }
#studio-atlas-preview-parent { font-size: 12px; }
.studio-atlas-preview-copy .button-outline { margin-top: 13px; min-height: 34px; padding: 6px 9px; }
.studio-atlas-preview-copy .button-outline svg { width: 14px; height: 14px; }
.studio-atlas-quick-links a {
 display: flex;
 justify-content: space-between;
 align-items: center;
 gap: 10px;
 min-height: 36px;
 padding: 4px 5px;
 border-bottom: 1px solid var(--line);
 color: var(--ink2);
 font-size: 13px;
 font-weight: 700;
}
.studio-atlas-quick-links a:hover { color: var(--violet); }
.studio-atlas-preview-copy .studio-atlas-quick-links { margin-top: 9px; }

.studio-atlas-trail {
 display: flex;
 flex-wrap: wrap;
 justify-content: space-between;
 align-items: center;
 gap: 4px 12px;
 padding-bottom: 8px;
 margin-bottom: 14px;
 border-bottom: 1px solid var(--line);
 color: var(--muted);
 font-size: 13px;
}
.studio-atlas-trail button { min-height: 32px; }
.studio-atlas-trail button svg { width: 13px; height: 13px; transform: rotate(180deg); }
.studio-atlas-intro {
 display: grid;
 grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
 border: 1px solid var(--line);
 border-radius: var(--ui-radius);
 background: var(--surface);
}
.studio-atlas-intro-copy { min-width: 0; padding: clamp(18px, 2.6vw, 34px); }
#studio-atlas-topic-title {
 margin: 0;
 font: 700 clamp(27px, 3.6vw, 49px)/1.05 var(--display-font);
 letter-spacing: -.04em;
 overflow-wrap: anywhere;
}
#studio-atlas-topic-description { margin: 10px 0 13px; color: var(--ink2); font-size: 14px; }
#studio-atlas-topic-meta { margin: 0; }
.studio-atlas-intro .studio-atlas-example { padding: clamp(15px, 2.2vw, 28px); border-inline-start: 1px solid var(--line); }
.studio-atlas-related h4 { font-size: 16px; }
.studio-atlas-results:not(:has(.studio-atlas-related:not([hidden]))) { grid-template-columns: minmax(0, 1fr); max-width: 840px; }
.studio-atlas-count { margin: 0 0 10px; color: var(--muted); font-size: 12px; }
.studio-atlas-empty { padding-block: 12px; color: var(--muted); }
.studio-article-atlas [hidden] { display: none; }

.discovery-catalog-head .studio-practice-strip { margin: 0; padding: 0; border: 0; }
.discovery-catalog-head:has(+ .catalog-dialect-switch:not(.hidden)) { min-height: 59px; margin-bottom: 0; }
.catalog-dialect-switch {
 display: grid;
 grid-template-columns: repeat(2,minmax(0,1fr));
 gap: 4px;
 width: min(100%,340px);
 margin-bottom: 16px;
 padding: 4px;
 border: 1px solid var(--line);
 border-radius: var(--ui-radius);
 background: var(--surface);
}
.catalog-dialect-switch button {
 min-height: 44px;
 padding: 6px 10px;
 border: 1px solid transparent;
 border-bottom-width: 2px;
 border-radius: 4px;
 background: transparent;
 color: var(--ink);
 font: 700 var(--type-task) var(--font);
}
.catalog-dialect-switch button:hover { background: var(--surface-2); }
.catalog-dialect-switch button[aria-pressed="true"] {
 border-color: var(--line);
 border-bottom-color: var(--action);
 background: var(--surface-2);
 color: var(--action);
}
.studio-catalog-search { gap: 7px; margin: 0 0 4px; }
.studio-catalog-search :is(.studio-search, select) { min-height: 37px; }
.studio-catalog-search #catalog-more-topics {
 max-width: min(30%, 190px);
 padding: 5px 8px;
 color: var(--ink);
 font-size: 13px;
}
.discovery-catalog-state {
 display: flex;
 align-items: center;
 justify-content: space-between;
 flex-wrap: wrap;
 gap: 0 10px;
 margin-bottom: 9px;
 border-bottom: 1px solid var(--line);
}
.discovery-catalog-state .studio-statuses { margin: 0; border: 0; }
.discovery-catalog-state .studio-statuses [data-catalog-filter="saved"] { margin: 0; }
.discovery-catalog-state .link-btn { min-height: 32px; font-size: 12px; }

@media (max-width: 640px) {
 .studio-catalog-search { flex-wrap: wrap; }
 .studio-catalog-search .studio-search { flex-basis: 100%; }
 .studio-catalog-search #catalog-more-topics { max-width: 45%; }
}

@media (min-width: 861px) {
 .studio-article-atlas:has(#studio-atlas-directory:not([hidden])) .studio-atlas-toolbar { margin-top: 36px; }
 .studio-atlas-section + .studio-atlas-section { margin-top: 30px; }
}
@media (max-width: 860px) {
 .studio-atlas-layout, .studio-atlas-toolbar { grid-template-columns: minmax(0, 1fr); gap: 12px; }
 .studio-atlas-preview { display: none; }
 .studio-atlas-topic.is-previewed:not(:hover):not(:focus-visible) { background: none; }
 .studio-atlas-topic.is-previewed::before { display: none; }
 .studio-atlas-related { margin-top: 10px; }
}
@media (max-width: 560px) {
 .studio-atlas-heading { padding-block: 15px; }
 .studio-atlas-heading h2 { font-size: 36px; }
 .studio-atlas-heading > .link-btn { min-height: 28px; }
 .studio-atlas-intro { grid-template-columns: minmax(0, 1fr); }
 .studio-atlas-intro .studio-atlas-example { border-inline-start: 0; border-top: 1px solid var(--line); }
 .studio-atlas-row { grid-template-columns: 21px minmax(0, 1fr) 14px; gap: 8px; }
 .studio-atlas-topic {
  grid-template-columns: 25px minmax(0, 1fr) 2ch 14px;
  min-height: 80px;
  padding-block: 12px;
 }
 .studio-atlas-topic .studio-atlas-row-copy strong { font-size: 18px; }
 .studio-atlas-topic .studio-atlas-row-copy small { font-size: 13px; }
 .studio-atlas-row-copy small { font-size: 12px; }
}
