@import url('/design-system/css/styles.css');

/* Alayo Color & Rhythm 0.2 — presentation contracts shared by every service.
   Keep curriculum, answers, saved state, permissions and diagram semantics in their owning modules. */
:root {
  --alayo-color-paper:#f6f8f2; --alayo-color-surface:#fffefa;
  --alayo-color-line:#d5dfdb; --alayo-color-ink-muted:#52647b;
  --alayo-color-sage-soft:#daeee1; --alayo-color-sage:#245c46;
  --alayo-color-teal-soft:#daeee1; --alayo-color-teal:#245c46;
  --alayo-color-coral-soft:#fce1d5; --alayo-color-rust:#95452f;
  --alayo-color-gold-soft:#fff0bf; --alayo-color-gold:#765716;
  --alayo-color-visual-surface:#fff0bf;
  --ink:var(--alayo-semantic-ink); --text:var(--ink); --muted:var(--alayo-semantic-muted);
  --line:var(--alayo-semantic-border); --paper:var(--alayo-semantic-background);
  --navy:var(--alayo-semantic-action); --pale:var(--alayo-color-sage-soft);
  --orange:var(--alayo-color-rust); --peach:var(--alayo-color-coral-soft); --red:var(--alayo-color-danger);
  --classroom-ink:var(--ink); --classroom-accent:var(--alayo-semantic-action); --classroom-paper:var(--paper); --classroom-line:var(--line);
  --build-ink:var(--ink); --build-navy:var(--alayo-semantic-action); --build-coral:var(--alayo-color-rust); --build-green:var(--alayo-color-sage);
  --ui-control-height:48px; --ui-control-radius:10px; --ui-label-gap:8px;
  --ui-control-inset:16px; --ui-control-trailing:48px; --ui-chevron-inset:18px;
  --ui-panel-gap:20px; --ui-panel-padding:24px; --ui-page-gutter:32px;
  --ui-radius:16px; --ui-shadow:none;
}
[data-alayo-service] { --alayo-service-accent:var(--alayo-color-sage); --alayo-service-soft:var(--alayo-color-sage-soft); }
[data-alayo-service='writing'],[data-alayo-service='english'],[data-alayo-service='reading'],[data-alayo-service='stories'],[data-alayo-service='speaking'],[data-alayo-service='studio'] { --alayo-service-accent:var(--alayo-color-rust); --alayo-service-soft:var(--alayo-color-coral-soft); }
[data-alayo-service='play'],[data-alayo-service='classroom'],[data-alayo-service='curriculum'],[data-alayo-service='assessment'],[data-alayo-service='family-guide'],[data-alayo-service='plus-family'],[data-alayo-service='lesson-builder'],[data-alayo-service='lesson-sharing'],[data-alayo-service='brand-team'] { --alayo-service-accent:var(--alayo-color-gold); --alayo-service-soft:var(--alayo-color-gold-soft); }
body { background:var(--paper); color:var(--ink); font:400 1rem/1.7 var(--alayo-font-body); }
body :is(h1,h2,h3,h4) { font-family:var(--alayo-font-display); color:var(--ink); font-weight:700; letter-spacing:-.035em; }
body h1 { font-size:clamp(1.75rem,3vw,2.25rem); line-height:1.2; text-wrap:balance; }
body h2 { line-height:1.25; } body h3 { line-height:1.35; }
body :is(button,input,select,textarea) { font-family:var(--alayo-font-body); }
body :is(a,button,input,select,textarea,summary,[tabindex]):focus-visible { outline:3px solid var(--alayo-semantic-focus); outline-offset:4px; }
body :is(input:not([type=range]):not([type=checkbox]):not([type=radio]):not([type=color]):not([type=hidden]),select,textarea) { border:1px solid #aebfb5; border-radius:var(--ui-control-radius); background-color:var(--alayo-color-surface); color:var(--ink); font-size:1rem; line-height:1.5; max-width:100%; }
body :is(input:not([type=range]):not([type=checkbox]):not([type=radio]):not([type=color]):not([type=hidden]),select:not([multiple])) { min-height:var(--ui-control-height); height:var(--ui-control-height); padding-block:10px; padding-inline:var(--ui-control-inset); }
/* Native selects retain keyboard and OS pickers; the arrow has a reserved, non-interactive zone. */
body select:not([multiple]) { appearance:none!important; -webkit-appearance:none!important; padding-inline:var(--ui-control-inset) var(--ui-control-trailing)!important; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%2323365b' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")!important; background-repeat:no-repeat!important; background-position:right var(--ui-chevron-inset) center!important; background-size:12px 8px!important; text-overflow:ellipsis; cursor:pointer; }
body textarea { padding:14px 16px; line-height:1.8; resize:vertical; }
body :is(input,textarea,select) { accent-color:var(--alayo-service-accent); }
body :is(input,textarea,select):disabled { cursor:not-allowed; opacity:.65; }
body label:has(>select):not(.alayo-nav-sr) { display:flex; flex-direction:column; gap:var(--ui-label-gap); }
body label>select { margin-top:0; }
body label>textarea,body label>input:not([type=range]):not([type=checkbox]):not([type=radio]) { margin-top:var(--ui-label-gap); }
body :is(.service-filters,.classroom-fields,.classroom-filter,.build-fields,.writing-plan-fields,.account-fields) label { font-size:.875rem; line-height:1.5; font-weight:500; }
body .lead { font-size:1rem; line-height:1.75; color:var(--muted); max-width:64ch; }
body :is(.eyebrow,.kicker,.build-eyebrow) { font-family:var(--alayo-font-body); font-size:.75rem; line-height:1.5; letter-spacing:.08em; font-weight:600; color:var(--alayo-service-accent); }
body :is(.button,.primary,.build-primary,.button-link.primary) { background:var(--alayo-semantic-action); color:var(--alayo-color-surface); border:1px solid var(--alayo-semantic-action); box-shadow:none; border-radius:10px; font-size:.875rem; font-weight:600; min-height:48px; padding:11px 18px; line-height:1.6; }
body :is(.button,.primary,.build-primary,.button-link.primary):hover { background:var(--alayo-semantic-action-hover); border-color:var(--alayo-semantic-action-hover); color:var(--alayo-color-surface); }
body :is(.secondary,.button-link:not(.primary),.build-button:not(.build-primary)) { background:var(--alayo-color-surface); border:1px solid #baccc2; border-radius:10px; color:var(--ink); font-size:.875rem; min-height:48px; padding:11px 18px; line-height:1.6; }
body :is(.secondary,.button-link:not(.primary),.build-button:not(.build-primary)):hover { background:var(--alayo-color-sage-soft); }
body :is(.actions,.classroom-actions,.build-actions,.writing-save-row) { gap:12px; flex-wrap:wrap; }
body :is(.text-link,.text-button) { color:var(--alayo-semantic-link); }
body :is(.single-page,.service-hub,.classroom-shell,.build-shell,.activity-page,.discovery-page) { width:100%; max-width:1264px; margin-inline:auto; padding:24px var(--ui-page-gutter) 40px; }
body .site-footer { background:var(--paper); border-top:1px solid var(--line); color:var(--muted); font-size:.8125rem; padding:24px max(var(--ui-page-gutter),calc((100vw - 1200px)/2)); gap:12px 24px; }
body .back-link { font-size:.8125rem; margin-bottom:16px; }
body .service-workspace-header { padding:24px 28px; border-radius:20px; background:var(--alayo-service-soft); margin:0 0 20px; }
body .service-workspace-header .eyebrow { margin:0 0 8px; }
body .service-workspace-header h1 { margin:0; }
body .service-workspace-header .lead,body .service-workspace-header .classroom-intro { margin:10px 0 0; max-width:72ch; font-size:1rem; }
/* The same six navigation purposes, with compact lowercase labels. */
.alayo-navigation { --nav-ink:var(--ink); --nav-muted:var(--muted); --nav-blue:var(--alayo-semantic-action); --nav-line:var(--line); background:var(--alayo-color-surface); font-family:var(--alayo-font-body); }
body .alayo-nav-header { max-width:1264px; margin:auto; min-height:76px; padding:10px 32px; gap:24px; }
.alayo-nav-header :is(.alayo-nav-trigger,.alayo-nav-personal a,.alayo-nav-mobile,.alayo-nav-settings summary,.alayo-nav-role>p) { text-transform:lowercase; }
body .alayo-nav-brand { flex-direction:row; align-items:center; gap:10px; }
body .alayo-nav-brand img { width:108px; height:auto; }
body .alayo-nav-brand span { font-size:10px; line-height:1.4; width:28px; padding:0; }
.alayo-nav-trigger { font-family:var(--alayo-font-display); font-weight:700; font-size:15px; border-radius:9px; }
body .alayo-nav-trigger { border:0; background:transparent; box-shadow:none; }
body .alayo-nav-trigger:hover,body .alayo-nav-trigger[aria-expanded=true] { background:var(--alayo-color-sage-soft); }
.alayo-nav-trigger.is-current { color:var(--ink); text-decoration-color:var(--alayo-color-coral); text-underline-offset:7px; }
.alayo-nav-role>p { color:var(--muted); letter-spacing:0; font-size:10px; margin-bottom:1px; }
/* Personal actions share geometry; Plans is a quiet button, not a status badge. */
body .alayo-nav-personal { gap:4px 8px; padding-top:0; }
body .alayo-nav-personal a { display:inline-flex; align-items:center; justify-content:center; min-height:32px; padding:5px 8px; border:1px solid transparent; border-radius:8px; font-size:.875rem; line-height:20px; }
body .alayo-nav-personal a:hover { background:var(--alayo-color-sage-soft); color:var(--ink); text-decoration:none; }
body .alayo-nav-personal a[aria-current=page] { background:var(--alayo-color-sage-soft); color:var(--ink); font-weight:700; }
body .alayo-nav-personal .alayo-nav-plans { min-height:32px; padding:5px 12px; border-color:#aebfb5; background:var(--alayo-color-surface); color:var(--ink); font-size:.875rem; font-weight:650; }
body .alayo-nav-personal .alayo-nav-plans:hover,body .alayo-nav-personal .alayo-nav-plans[aria-current=page] { background:var(--alayo-color-sage-soft); border-color:#729c83; }
@media(max-width:1100px) {
  body .alayo-nav-personal { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; padding:14px 0 6px; }
  body .alayo-nav-personal a,body .alayo-nav-personal .alayo-nav-plans { min-height:44px; padding:10px 12px; }
}
.alayo-nav-panel { background:var(--alayo-color-surface); border:1px solid var(--line); border-radius:0 0 18px 18px; box-shadow:0 18px 36px -20px #23365b30; }
.alayo-nav-panel-groups section>a { border-radius:8px; }
.alayo-nav-panel-groups section>a:hover { background:var(--alayo-color-sage-soft); }
.alayo-nav-panel h2 { font-size:1.625rem; }
.alayo-nav-settings summary { background:var(--alayo-color-surface); border-color:var(--line); border-radius:10px; min-height:44px; padding-inline:12px; gap:10px; }
.alayo-nav-settings-panel { background:var(--alayo-color-surface); border-color:var(--line); border-radius:12px; }
.alayo-nav-settings-panel label { font-size:.875rem; margin-bottom:8px; }
/* Index: a mint entry and three distinct service fields, then the complete directory. */
body .hub-intro.expanded-intro { display:grid; grid-template-columns:1.25fr 1fr; align-items:center; gap:24px; min-height:320px; padding:30px 36px; margin:0; background:var(--alayo-color-sage-soft); color:var(--ink); border:0; border-radius:24px; box-shadow:none; }
body .expanded-intro h1 { font-size:clamp(2.1rem,3.5vw,2.875rem); line-height:1.16; max-width:680px; margin:14px 0; color:var(--ink); }
body .expanded-intro .lead { max-width:48ch; color:#375c4d; margin:0; }
body .expanded-intro .eyebrow { color:var(--alayo-color-sage); display:flex; align-items:center; gap:8px; }
body .expanded-intro .eyebrow::before { content:''; width:7px; height:7px; border-radius:50%; background:var(--alayo-color-coral); }
body .hub-hero-actions { display:flex; gap:20px; align-items:center; flex-wrap:wrap; margin-top:20px; }
body .brand-world-hero { width:100%; max-width:350px; padding:0; justify-self:center; }
body .brand-world-caption { color:var(--alayo-color-sage); font-size:.8125rem; margin:8px 0 0; text-align:center; text-transform:none; letter-spacing:0; }
.signature-artwork { width:100%; max-width:350px; aspect-ratio:1.3; position:relative; margin:auto; }
.signature-disc { position:absolute; inset:6px 31px 2px; border-radius:50%; background:var(--alayo-color-gold-soft); }
.signature-arc { width:94%; position:absolute; top:-1%; left:2%; color:var(--alayo-color-coral); }
.signature-ten-frame { width:70%; padding:12px; display:grid; grid-template-columns:repeat(5,1fr); gap:5px; position:absolute; left:10%; top:20%; transform:rotate(-6deg); background:var(--alayo-color-surface); border:1px solid #9fbfad; border-radius:12px; }
.signature-ten-frame i { aspect-ratio:1; border:1px solid #c5dfd1; border-radius:5px; background:#f3fbf5; display:grid; place-items:center; }
.signature-ten-frame i:before { content:''; width:75%; aspect-ratio:1; border-radius:50%; background:#63b988; }
.signature-ten-frame i.coral:before { background:#f28562; }
.signature-ten-frame i.empty:before { background:transparent; border:1px solid #b8d7c5; }
.signature-word { position:absolute; left:25%; top:63%; background:var(--alayo-color-surface); color:var(--ink); border:1px solid #e1c88c; border-radius:6px; font:700 19px/1.3 var(--alayo-font-display); padding:7px 15px; transform:rotate(3deg); }
.signature-word.second { top:80%; left:36%; white-space:nowrap; font-size:17px; transform:rotate(-4deg); }
.signature-leaf { width:22px; height:30px; background:#65ad80; border-radius:100% 0; display:block; position:absolute; right:-8px; top:-12px; transform:rotate(12deg); }
body .alayo-purpose-paths { display:grid; grid-template-columns:1fr 1fr; gap:24px; border:0; border-bottom:1px solid var(--line); background:transparent; border-radius:0; margin:0 0 24px; padding:14px 0; }
body .alayo-purpose-row { display:flex; gap:20px; align-items:center; padding:0; border:0; }
body .alayo-purpose-row+.alayo-purpose-row { border:0; border-left:1px solid var(--line); padding-left:24px; }
body .alayo-purpose-row>div>p { color:var(--muted); font-size:.75rem; margin:0; letter-spacing:0; white-space:nowrap; }
body .alayo-purpose-options { display:flex; gap:22px; }
body .alayo-purpose-options>a { padding:7px 0; min-height:36px; border:0; border-radius:4px; }
body .alayo-purpose-options>a strong { font:700 .875rem/1.5 var(--alayo-font-display); color:var(--ink); }
body .alayo-purpose-options>a strong::before { content:none; }
body .alayo-purpose-options>a span { display:none; }
body .hub-discovery-tools { display:flex; align-items:end; justify-content:space-between; gap:24px; margin-bottom:12px; }
body .hub-discovery-tools h2 { font-size:1.625rem; margin:6px 0 0; }
body .hub-discovery-tools .eyebrow { margin:0; color:var(--muted); }
body .service-filters { display:grid; grid-template-columns:minmax(180px,250px) minmax(180px,200px) auto; align-items:end; gap:12px; border:0; padding:0; background:transparent; margin:0; }
body .service-filters label { min-width:0; margin:0; }
body .service-filters input,body .service-filters select { width:100%; }
body .service-filters button { margin:0; }
body .audience-toolbar { border:0; margin:0 0 16px; padding:0; gap:12px; }
body .audience-filters { display:flex; gap:4px; flex-wrap:wrap; }
body .audience-filters a { border:1px solid transparent; border-radius:8px; min-height:40px; padding:7px 12px; font-size:.8125rem; }
body .audience-filters a.selected { background:#e1eaff; color:var(--alayo-semantic-link); border-color:transparent; }
body .service-total { font-size:.8125rem; }
body .hub-featured-services { display:grid; grid-template-columns:1.45fr 1fr 1fr; gap:16px; margin-bottom:28px; }
body .service-section { margin-bottom:28px; }
body .service-section>header { display:flex; align-items:baseline; gap:20px; border:0; padding:0; margin-bottom:8px; }
body .service-section>header h2 { font-size:1.375rem; margin:0; }
body .service-section>header p { font-size:.875rem; margin:0; }
body .service-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 32px; }
body .service-card { background:transparent; border:0; border-bottom:1px solid var(--line); border-radius:0; box-shadow:none; padding:0; min-width:0; }
body .service-entry { padding:18px 0; display:flex; flex-direction:column; height:100%; text-decoration:none; }
body .service-title-row { display:flex; align-items:center; gap:12px; margin-bottom:8px; }
body .service-title-row h3 { font-size:1.125rem; margin:0; letter-spacing:-.025em; }
body .service-symbol { width:32px!important; height:32px!important; flex:0 0 32px; background:transparent!important; border-radius:0!important; padding:0!important; box-shadow:none; }
.signature-service-icon { display:block; width:32px; height:32px; max-width:100%; object-fit:contain; }
body .service-meta { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin:0 0 8px; }
body .service-status { font-size:.75rem; border-radius:6px; padding:2px 7px; background:#fffefaaa; color:var(--alayo-service-accent); }
body .service-status.planned { color:var(--muted); background:#edf0ec; }
body .service-status.sample { color:var(--alayo-color-rust); background:var(--alayo-color-coral-soft); }
body .service-description { font-size:.875rem; line-height:1.75; color:var(--muted); margin:0 0 10px; }
body .service-audience { font-size:.75rem; color:var(--muted); margin-top:auto; border:0; padding:0; }
body .service-scope { font-size:.75rem; color:var(--muted); }
body .featured-service { background:var(--alayo-service-soft); border:0; border-radius:18px; }
body .featured-service .service-entry { padding:24px; min-height:232px; }
body .featured-service .service-title-row { display:flex; flex-direction:column; align-items:flex-start; justify-content:flex-start; width:100%; text-align:left; gap:14px; margin:0 0 8px; }
body .featured-service .service-symbol,body .featured-service h3 { align-self:flex-start; margin-inline:0; text-align:left; }
body .featured-service h3 { font-size:1.5625rem; }
body .featured-service .service-description { font-size:1rem; color:var(--alayo-service-accent); }
body .featured-service .service-open { font-size:.875rem; font-weight:600; margin-top:auto; padding-top:14px; }
body .alayo-hub-personal { background:var(--alayo-color-gold-soft); border:0; border-radius:16px; padding:24px; margin-top:28px; }
body .alayo-hub-personal h2 { font-size:1.375rem; }
body .alayo-hub-personal a { min-height:44px; display:inline-flex; align-items:center; }
body .hub-trust { gap:24px; padding-top:24px; margin-top:24px; }
/* Learning library: compact grade rail, yellow introduction, a calm list. */
body .workspace { max-width:1264px; margin:auto; padding:24px 32px 40px; display:grid; grid-template-columns:190px minmax(0,1fr); gap:24px; }
body .grade-nav { margin:0; padding:22px 18px; border:0; border-radius:16px; background:#e3eee5; align-self:start; }
body .grade-nav h2 { font-size:1.0625rem; margin:0 0 18px; }
body .grade-nav section { margin:0 0 18px; }
body .grade-nav h3 { font-size:.75rem; color:#3a604c; margin:0 0 8px; }
body .grade-buttons { gap:6px; }
body .grade-nav .grade { min-height:40px; border-radius:8px; font-size:.8125rem; }
body .grade-nav .grade.selected { background:var(--alayo-color-surface); color:var(--alayo-semantic-link); border-color:#a6c2ad; }
body .grade-nav .side-note { font-size:.75rem; margin-top:16px; }
.mobile-grade-picker { display:none; }
body .catalog { min-width:0; padding:0; }
body .catalog-intro { padding:26px 30px; background:var(--alayo-color-gold-soft); border-radius:18px; gap:24px; margin:0 0 18px; }
body .catalog-intro h1 { font-size:2.125rem; margin:8px 0 12px; }
body .catalog-intro p { color:var(--alayo-color-gold); }
body .catalog-intro .study-art { max-width:145px; }
body .subject-switch { border:0; border-bottom:1px solid var(--line); border-radius:0; background:transparent; padding-bottom:10px; margin-bottom:18px; }
body .subject-switch .subject { min-height:44px; border-radius:9px; font-size:.875rem; padding:10px 17px; }
body .subject-switch .active { background:#e1eaff; color:var(--alayo-semantic-link); }
body .list-heading { margin:20px 0 12px; }
body .list-heading h2 { font-size:1.375rem; }
body .list-heading>p { font-size:.75rem; }
body .unit-list { border:1px solid var(--line); border-radius:16px; padding:0 22px; background:var(--alayo-color-surface); }
body .unit-row { border:0; border-bottom:1px solid var(--line); border-radius:0; background:transparent; padding:20px 0; margin:0; box-shadow:none; gap:18px; }
body .unit-row:last-child { border:0; }
body .unit-row h3 { font-size:1.25rem; margin:6px 0; }
body .unit-copy>p:not(.status) { font-size:.875rem; }
body .reference-note { font-size:.875rem; margin-top:16px; }
body .lesson-page { max-width:1264px; padding:24px 32px 40px; }
body .lesson-layout { gap:24px; }
body .lesson-heading { background:var(--alayo-service-soft); padding:24px; border-radius:16px; }
body .lesson-aside { background:var(--alayo-color-gold-soft); border:0; border-radius:16px; padding:24px; }
body :is(.concept-card,.practice-card,.application-card,.account-card,.country-card,.journal-entry,.passport-card) { background:var(--alayo-color-surface); border-color:var(--line); border-radius:16px; box-shadow:none; }
/* Lab: prediction rail and mint experiment field. IDs and input handlers are untouched. */
body :is(.lab-intro,.writing-intro) { grid-template-columns:minmax(0,1fr) 80px; gap:24px; align-items:center; margin-bottom:20px; padding:24px 28px; border-radius:20px; background:var(--alayo-service-soft); }
.signature-service-emblem { width:64px; height:64px; display:grid; place-items:center; background:transparent; border:0; }
.signature-service-emblem .signature-service-icon { width:48px; height:48px; }
body :is(.lab-experiment-grid,.writing-prompt-grid) { gap:20px; }
body :is(.lab-experiment-grid article,.writing-prompt-grid article) { background:var(--alayo-service-soft); border:0; border-radius:16px; padding:24px; box-shadow:none; }
body .lab-card-art { width:48px; height:46px; margin-bottom:12px; }
body .lab-experiment-grid h2 { font-size:1.375rem; }
body .lab-workspace-layout { display:grid; grid-template-columns:280px minmax(0,1fr); gap:16px 20px; align-items:start; }
body .lab-prediction,body .lab-reflection { background:var(--alayo-color-gold-soft); padding:22px; border-radius:16px; border:0; margin:0; min-width:0; }
body .lab-reflection { grid-column:1; grid-row:2; background:#f1e6be; }
body .lab-prediction label,body .lab-reflection label { font-size:.875rem; color:var(--alayo-color-gold); line-height:1.7; }
body .lab-prediction textarea,body .lab-reflection textarea { margin-top:12px; min-height:110px; }
body .lab-reflection .actions { display:grid; margin-top:14px; gap:10px; }
body .lab-reflection .actions button { width:100%; white-space:normal; padding-inline:12px; }
body .lab-reflection .quiet { font-size:.75rem; margin:12px 0 0; color:var(--alayo-color-gold); }
body .lab-bench { grid-column:2; grid-row:1/span 2; min-width:0; background:var(--alayo-color-sage-soft); border:0; border-radius:18px; padding:24px; box-shadow:none; margin:0; }
body .lab-bench-grid { display:grid; grid-template-columns:minmax(0,1fr) 240px; gap:20px; align-items:start; margin:18px 0 0; }
body .lab-bench-grid>div { min-width:0; }
body .lab-section-title { margin:0 0 14px; gap:9px; }
body .lab-section-title>span { flex:0 0 26px; width:26px; height:26px; border:0; border-radius:50%; color:var(--alayo-color-surface); background:var(--ink); font-size:.6875rem; }
body .lab-section-title h2 { font-size:1rem; margin:0; }
body .lab-readouts { border:0; padding:0; background:transparent; border-radius:0; gap:20px; margin:0 0 14px; }
body .lab-readouts strong { font:700 1.75rem/1.2 var(--alayo-font-display); }
body .lab-readouts span,body .lab-readouts small { font-size:.75rem; color:var(--alayo-color-sage); }
body .lab-tiles-frame { background:#f0f7ed; border:1px solid #b2cebc; border-radius:12px; min-height:264px; padding:20px; }
body .lab-equation { font-size:1rem; margin:12px 0; }
body .lab-controls { padding:0; border:0; border-radius:0; background:transparent; }
body .lab-controls fieldset { margin:0; padding:0; border:0; }
body .lab-controls legend { font-size:.875rem; font-weight:500; margin:0 0 8px; }
body .lab-controls p { font-size:.8125rem; color:var(--alayo-color-sage); margin:12px 0; }
body .lab-width-options { display:grid; grid-template-columns:repeat(4,1fr); gap:8px; }
body .lab-width-options button { min-width:0; min-height:44px; padding:8px; border:1px solid #a0c2ae; border-radius:8px; background:var(--alayo-color-surface); font-size:.875rem; }
body .lab-width-options button[aria-pressed=true] { color:var(--alayo-color-surface); background:var(--alayo-color-sage); border-color:var(--alayo-color-sage); }
body .lab-records { background:#eef6ed; border:0; border-radius:12px; padding:20px; margin:20px 0 0; }
body .lab-records>p { font-size:.875rem; margin:8px 0 12px; }
body .lab-observation-list { padding-left:20px; font-size:.875rem; }
body .lab-range { margin-bottom:20px; }
body .lab-curve { max-width:100%; background:#f0f7ed; border-radius:12px; }
body :is(.lab-method,.writing-method-note) { background:var(--alayo-service-soft); border:0; border-radius:12px; padding:20px 24px; }
body .lab-method-note { font-size:.8125rem; }
/* Writing: coral brief and warm paper editor, with one consistent step rhythm. */
body .writing-steps { border-color:#dfc6ba; gap:8px; padding:0 0 12px; margin:20px 0; }
body .writing-steps button { min-height:44px; font-size:.875rem; border-radius:9px; padding:8px 16px; }
body .writing-steps [aria-current=step] { color:var(--alayo-color-rust); background:var(--alayo-color-coral-soft); }
body .writing-layout { display:grid; grid-template-columns:280px minmax(0,1fr); gap:20px; align-items:start; }
body .writing-brief { background:var(--alayo-color-coral-soft); border:0; border-radius:16px; padding:24px; }
body .writing-brief h2 { font-size:1.375rem; color:var(--ink); }
body .writing-brief p,body .writing-brief p[lang],body .writing-source { font-size:.875rem; color:var(--alayo-color-rust); line-height:1.8; }
body .writing-workspace { min-width:0; background:#fffaf0; border:1px solid #e6d9c8; border-radius:16px; padding:24px; box-shadow:none; }
body .writing-workspace h2,body .writing-section-heading h2 { font-size:1.4375rem; }
body .writing-section-heading { gap:16px; margin-bottom:16px; }
body .writing-draft { min-height:260px; height:300px; line-height:1.9; }
body .writing-plan-fields { gap:18px; margin:20px 0; }
body .writing-plan-fields textarea { min-height:88px; }
body .writing-starters { margin:16px 0; padding:14px; background:var(--alayo-color-gold-soft); border-radius:10px; }
body .writing-starters p { font-size:.8125rem; color:var(--alayo-color-gold); margin:0 0 10px; }
body .writing-starters button { font-size:.8125rem; min-height:44px; padding:8px 12px; margin:0 6px 6px 0; }
body .writing-workspace>.quiet { font-size:.8125rem; }
body .writing-workspace>.actions { border-top:1px solid #e6d9c8; padding-top:18px; margin-top:18px; }
body .writing-band { margin:20px 0; gap:8px; }
/* Classroom: yellow planning field; retain the complete teaching plans and author controls. */
body .classroom-page-title { font-size:2.25rem; max-width:850px; }
body .classroom-intro { font-size:1rem; color:var(--muted); }
body .classroom-mark { width:40px; height:40px; }
body :is(.classroom-panel,.classroom-detail,.classroom-editor,.classroom-empty) { background:var(--alayo-color-surface); border-color:var(--line); border-radius:16px; box-shadow:none; }
body .classroom-top { background:var(--alayo-color-gold-soft); border-radius:18px; padding:24px; margin-bottom:20px; }
body .classroom-tabs { border-color:var(--line); gap:24px; margin-bottom:24px; }
body .classroom-tabs button[aria-selected=true] { color:var(--alayo-semantic-link); border-color:var(--alayo-semantic-action); }
body .classroom-template-tools { gap:24px; margin:20px 0 16px; }
body .classroom-template-tools h2 { font-size:1.375rem; margin:6px 0; }
body .classroom-template-tools>div:first-child { max-width:690px; }
body .classroom-template-tools .classroom-muted { font-size:.8125rem; }
body .classroom-template-tools .classroom-filter { display:grid; grid-template-columns:140px 190px; gap:12px; min-width:342px; margin:0; }
body .classroom-filter label { min-width:0; }
body .classroom-template-layout { grid-template-columns:280px minmax(0,1fr); gap:20px; }
body .classroom-template-list { gap:12px; }
body .classroom-app .classroom-template-choice { padding:20px; border:1px solid var(--line); background:var(--alayo-color-surface); border-radius:14px; gap:10px; }
body .classroom-template-choice strong { font:700 1.25rem/1.35 var(--alayo-font-display); }
body .classroom-template-choice>span:last-child { font-size:.8125rem; }
body .classroom-app .classroom-template-choice[aria-pressed=true] { background:var(--alayo-color-gold-soft); border-color:#d4bb60; box-shadow:none; }
body .classroom-template-detail { background:#fff9e8; border:1px solid #e2d4ac; border-radius:16px; padding:24px; }
body .classroom-template-detail>.classroom-subhead { flex-wrap:wrap; gap:16px; }
body .classroom-template-detail h2 { font-size:1.6875rem; }
body .classroom-template-detail .classroom-actions { gap:10px; }
body .classroom-template-detail .classroom-actions button { font-size:.875rem; min-height:48px; padding:11px 16px; border-radius:10px; }
body .classroom-template-steps { margin:20px 0; gap:16px; }
body .classroom-template-steps li { border-color:#d4c48d; padding-top:12px; }
body .classroom-template-steps span { color:var(--alayo-color-gold); }
body .classroom-teaching-plan { background:transparent; border:0; border-top:1px solid #dfd4b4; border-radius:0; padding:20px 0 0; }
body .classroom-teaching-plan section { grid-template-columns:145px minmax(0,1fr); gap:20px; padding:18px 0; border-color:#dfd4b4; }
body .classroom-teaching-plan h4 { color:var(--alayo-color-gold); }
body .classroom-teaching-plan .classroom-plan-header { padding-bottom:16px; border-color:#dfd4b4; }
body .classroom-notice { border-radius:12px; }
body .classroom-empty { padding:28px; }
/* Remaining services inherit the same controls, typography, spacing and identity surfaces. */
body :is(.tool-card,.mission-card,.journey-card,.home-card,.report-card) { background:var(--alayo-service-soft); border:1px solid var(--line); border-radius:16px; box-shadow:none; }
body :is(.home-hero,.play-intro,.toolbox-intro,.journey-intro,.review-intro,.passport-intro) { background:var(--alayo-service-soft); border-radius:18px; padding:24px; margin-bottom:20px; }
body .build-hero { gap:28px; padding:24px; border-radius:18px; background:var(--alayo-color-sage-soft); }
body .build-hero h1 { font-size:2.25rem; }
body :is(.build-form,.build-aside,.build-project,.build-detail,.build-empty) { background:var(--alayo-color-surface); border:1px solid var(--line); border-radius:16px; box-shadow:none; }
body .build-board { background:var(--alayo-color-gold-soft); border-color:#e2d4ac; box-shadow:none; }
body .build-aside { background:var(--alayo-color-coral-soft); }
body :is(.billing-plan-grid>article,.plan-card,.pricing-card,.pass-plan) { border-color:var(--line); border-radius:16px; box-shadow:none; }
body .pricing-main .eyebrow { color:var(--alayo-semantic-link); }
body .commercial-footer { border-color:var(--line); background:var(--paper); }
body :is(.review-header,.review-toolbar,.review-pane,.content-pane) { border-color:var(--line); background:var(--alayo-color-surface); }
body .review-header nav,body .site-header nav,body .header nav { text-transform:lowercase; }
body :is(.pricing-main,.policy-main,.contact-main,.commercial-footer) a:not(.button):not(.secondary):not(.alayo-nav-primary):not(.action) { color:var(--alayo-semantic-link); }
body .hero-copy { min-width:0; }
body:has(.reader) .hero,body:has(.reading-app) .hero { background:var(--alayo-color-coral-soft); }
@media(hover:hover) { body .service-entry:hover { color:var(--ink); } body .service-card:not(.featured-service):hover { background:#edf3e9; } }
@media(prefers-reduced-motion:no-preference) {
  body:not(.quiet-motion) .featured-service { transition:transform 180ms cubic-bezier(.2,.7,.2,1); }
  body:not(.quiet-motion) .featured-service:hover { transform:translateY(-2px); }
  body:not(.quiet-motion) :is(.button,.secondary,.alayo-nav-trigger) { transition:background-color 140ms ease,border-color 140ms ease; }
  body:not(.quiet-motion) .alayo-nav-panel:not([hidden]) { animation:alayo-panel-in 180ms ease-out both; }
  @keyframes alayo-panel-in { from {opacity:0;transform:translateY(-4px)} to {opacity:1;transform:none} }
}
body.quiet-motion *,body.quiet-motion *::before,body.quiet-motion *::after { animation:none!important; transition:none!important; scroll-behavior:auto!important; }
@media(prefers-reduced-motion:reduce) { *,*::before,*::after { animation:none!important; transition:none!important; scroll-behavior:auto!important; } }
[hidden] { display:none!important; }
@media(max-width:1100px) {
  body .alayo-nav-header { min-height:70px; padding-block:12px; gap:0 16px; }
  .alayo-nav-panel { box-shadow:none; border:0; border-radius:12px; background:var(--alayo-color-sage-soft); }
  body .hub-discovery-tools { align-items:start; flex-direction:column; gap:16px; }
  body .service-filters { width:100%; grid-template-columns:minmax(0,1fr) 200px auto; }
  body .alayo-purpose-paths { gap:18px; } body .alayo-purpose-row { gap:12px; }
  body .alayo-purpose-options { gap:14px; }
  body .lab-workspace-layout,body .writing-layout,body .classroom-template-layout { grid-template-columns:240px minmax(0,1fr); }
  body .lab-bench-grid { grid-template-columns:1fr; }
  body .classroom-template-tools { flex-direction:column; align-items:start; gap:12px; }
  body .classroom-template-tools .classroom-filter { max-width:none; }
  body .classroom-template-list { position:static; grid-template-columns:1fr; }
  body .classroom-teaching-plan section { grid-template-columns:1fr; gap:8px; }
}
@media(max-width:760px) {
  :root { --ui-page-gutter:18px; --ui-panel-padding:18px; --ui-panel-gap:16px; }
  body .alayo-nav-header { min-height:66px; padding:11px 18px; gap:0 12px; }
  body .alayo-nav-brand img { width:95px; }body .alayo-nav-brand span { display:none; }
  .alayo-nav-settings summary { padding-inline:10px; }
  body :is(.single-page,.service-hub,.classroom-shell,.build-shell,.activity-page,.discovery-page) { padding:16px 18px 32px; }
  body .service-workspace-header { padding:20px; border-radius:16px; margin-bottom:16px; }
  body .service-workspace-header h1 { font-size:1.75rem; }
  body .service-workspace-header .lead,body .service-workspace-header .classroom-intro { font-size:.875rem; }
  body .hub-intro.expanded-intro { grid-template-columns:1fr; padding:24px 22px 18px; gap:12px; min-height:0; border-radius:19px; }
  body .expanded-intro h1 { font-size:2.1875rem; margin:12px 0; }
  body .expanded-intro .eyebrow { font-size:.6875rem; }
  body .expanded-intro .lead { font-size:.875rem; }
  body .hub-hero-actions { gap:14px; margin-top:17px; }
  body .hub-hero-actions .button { font-size:.8125rem; padding-inline:14px; }
  body .hub-hero-actions .text-link { font-size:.8125rem; }
  body .brand-world-hero { max-width:220px; }
  body .brand-world-caption { font-size:.75rem; margin:0; }
  .signature-ten-frame { padding:8px; gap:3px; }.signature-word { font-size:14px; padding:5px 10px; }
  .signature-word.second { font-size:13px; }.signature-leaf { width:17px; height:22px; }
  body .alayo-purpose-paths { grid-template-columns:1fr; gap:4px; padding:12px 0; margin-bottom:20px; }
  body .alayo-purpose-row,body .alayo-purpose-row+.alayo-purpose-row { border:0; padding:0; justify-content:space-between; }
  body .alayo-purpose-options { width:65%; justify-content:space-between; gap:12px; }
  body .alayo-purpose-row>div>p { font-size:.6875rem; }
  body .alayo-purpose-options>a { display:block; padding:7px 0; }
  body .hub-discovery-tools h2 { font-size:1.5rem; }
  body .service-filters { grid-template-columns:minmax(0,1fr) 76px; gap:12px; }
  body .service-filters>label:first-child { grid-column:1/-1; }
  body .service-filters label { width:auto; }.service-filters>button { width:100%; }
  body .audience-toolbar { flex-direction:row; flex-wrap:wrap; gap:8px; margin-bottom:14px; }
  body .audience-filters a { padding:7px 10px; font-size:.8125rem; }
  body .hub-featured-services { grid-template-columns:1fr 1fr; gap:12px; margin-bottom:24px; }
  body .hub-featured-services>.featured-service:first-child { grid-column:1/-1; }
  body .featured-service .service-entry { padding:18px; min-height:228px; }
  body .hub-featured-services>.featured-service:first-child .service-entry { min-height:190px; padding:22px; }
  body .featured-service h3 { font-size:1.375rem; }
  body .featured-service .service-description { font-size:.875rem; }
  body .featured-service .service-open { font-size:.8125rem; }
  body .service-grid { grid-template-columns:1fr; }
  body .service-section>header { align-items:start; gap:8px; flex-direction:column; }
  body .service-entry { padding:16px 0; }
  body .service-section { margin-bottom:24px; }
  body .workspace { display:block; padding:16px 18px 32px; }
  body .grade-nav { padding:16px; margin-bottom:16px; display:flex; align-items:center; justify-content:space-between; gap:16px; }
  body .grade-nav h2 { font-size:1rem; margin:0; }
  body .grade-nav section,body .grade-nav .side-note { display:none; }
  .mobile-grade-picker { display:block; flex:0 0 140px; }
  body .catalog { padding:0; }
  body .catalog-intro { padding:22px; border-radius:16px; grid-template-columns:1fr; }
  body .catalog-intro h1 { font-size:1.8125rem; }
  body .catalog-intro .study-art { display:none; }
  body .catalog-intro .lead { font-size:.875rem; }
  body .list-heading { gap:12px; align-items:start; }
  body .list-heading>p { max-width:110px; }
  body .unit-list { padding:0 16px; }
  body .unit-row { grid-template-columns:24px minmax(0,1fr); gap:12px; padding:18px 0; }
  body .unit-row>a { grid-column:2; justify-self:start; }
  body .lesson-page { padding:16px 18px 32px; }
  body .lesson-layout { grid-template-columns:1fr; gap:16px; }
  body .lesson-heading { padding:20px; flex-wrap:wrap; }
  body .lab-workspace-layout,body .writing-layout { display:flex; flex-direction:column; gap:16px; }
  body .lab-prediction,body .lab-reflection,body .lab-bench,body .writing-brief,body .writing-workspace { padding:18px; width:100%; border-radius:14px; }
  body .lab-prediction { order:0; }.lab-bench { order:1; }.lab-reflection { order:2; }
  body .lab-prediction textarea,body .lab-reflection textarea { min-height:88px; }
  body .lab-bench-grid { gap:16px; }
  body .lab-tiles-frame { min-height:240px; padding:16px; }
  body .lab-records { padding:16px; margin-top:16px; }
  body .lab-reflection .actions { grid-template-columns:1fr; }
  body :is(.lab-intro,.writing-intro) { padding:20px; grid-template-columns:minmax(0,1fr) 40px; gap:14px; }
  .signature-service-emblem { width:40px; height:40px; }.signature-service-emblem .signature-service-icon { width:36px; height:36px; }
  body .lab-experiment-grid { grid-template-columns:1fr; }
  body .writing-steps { gap:4px; margin:16px 0; padding-bottom:10px; }
  body .writing-steps button { font-size:.8125rem; padding:8px; min-width:0; flex:1; gap:6px; }
  body .writing-steps button span { width:20px; height:20px; font-size:.6875rem; flex:0 0 20px; }
  body .writing-draft { min-height:260px; height:280px; font-size:1rem; }
  body .writing-section-heading { align-items:start; flex-wrap:wrap; gap:12px; }
  body .writing-workspace>.actions { display:flex; }
  body .writing-workspace>.actions button { flex:1; white-space:normal; padding-inline:12px; }
  body .classroom-template-tools { gap:12px; margin:18px 0 16px; }
  body .classroom-template-tools .classroom-filter { grid-template-columns:140px minmax(0,1fr); min-width:0; width:100%; }
  body .classroom-template-layout { display:block; }
  body .classroom-template-list { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-bottom:16px; }
  body .classroom-app .classroom-template-choice { padding:16px; min-width:0; }
  body .classroom-template-choice strong { font-size:1.0625rem; }
  body .classroom-template-choice>span:last-child { font-size:.75rem; }
  body .classroom-template-detail { padding:20px; border-radius:14px; }
  body .classroom-template-detail h2 { font-size:1.5rem; }
  body .classroom-template-steps { grid-template-columns:1fr; gap:14px; }
  body .classroom-template-steps li { grid-template-columns:85px minmax(0,1fr); gap:12px; }
  body .classroom-teaching-plan section { grid-template-columns:1fr; gap:8px; }
  body .classroom-top { grid-template-columns:1fr; padding:20px; }
  body .classroom-empty { padding:24px; }
  body .hero { grid-template-columns:minmax(0,1fr); }
  body .hero-art { min-width:0; width:100%; overflow:hidden; }
  body .hero h1 { font-size:clamp(2rem,8vw,3rem); overflow-wrap:anywhere; }
  body .hero .actions { flex-wrap:wrap; }
  body .site-footer { padding:24px 18px; }
  body h1 { overflow-wrap:break-word; }
}
@media(max-width:360px) {
  :root { --ui-page-gutter:14px; }
  body :is(.single-page,.service-hub,.classroom-shell,.build-shell,.activity-page,.discovery-page,.workspace,.lesson-page) { padding-inline:14px; }
  body .expanded-intro h1 { font-size:1.9375rem; }
  body .hub-featured-services { grid-template-columns:1fr; }
  body .featured-service .service-entry { min-height:190px; }
  body .classroom-template-tools .classroom-filter { grid-template-columns:1fr; }
  body .classroom-template-list { grid-template-columns:1fr; }
  body .writing-steps button { font-size:.75rem; padding-inline:5px; }
}
@media print { .signature-artwork { display:none; } body { background:white; } body .lab-workspace-layout,body .writing-layout,body .classroom-template-layout { display:block; } body :is(.lab-prediction,.lab-bench,.lab-reflection,.writing-brief,.writing-workspace) { break-inside:avoid; margin-bottom:16px; } }

/* Each application owns its identity even when it does not use the learning router. */
.classroom-shell,.classroom-player-shell { --alayo-service-soft:var(--alayo-color-gold-soft); --alayo-service-accent:var(--alayo-color-gold); }
.build-shell { --alayo-service-soft:var(--alayo-color-sage-soft); --alayo-service-accent:var(--alayo-color-sage); }
body .hub-featured-services:has(>.featured-service:only-child) { grid-template-columns:1fr; }
body .hub-featured-services:has(>.featured-service:nth-child(2):last-child) { grid-template-columns:1fr 1fr; }
/* Learn's new speaking lesson follows the same service and control contracts. */
body .speaking-page>h1 { font-size:clamp(1.75rem,3vw,2.25rem); }
body .speaking-layout { gap:20px; }
body .speaking-page .lesson-panel { padding:24px; border-radius:16px; border-color:var(--line); margin-bottom:20px; }
body .speaking-page #listen { background:var(--alayo-color-sage-soft); }
body .speaking-page #understand { background:var(--alayo-color-gold-soft); }
body .speaking-page #speak { background:var(--alayo-color-coral-soft); }
body .speaking-page #reflect { background:#fffaf0; }
body .speaking-page .lesson-panel h2 { font-size:1.5rem; }
body .speaking-page :focus-visible,body .writing-mini-lesson :focus-visible { outline-color:var(--alayo-semantic-focus); }
@media(max-width:760px) { body .speaking-layout { gap:16px; } body .speaking-page .lesson-panel { padding:18px; } }

/* Compact supporting controls share the same horizontal rhythm as page content. */
body .focus-bar { max-width:1200px; margin:12px auto 0; min-height:40px; padding:0 0 4px; font-size:.8125rem; }
body .focus-bar button { min-height:40px; font-size:.8125rem; }
@media(max-width:1264px) { body .focus-bar { margin-inline:var(--ui-page-gutter); } }

body .unit-number { color:var(--muted); }
body .writing-source summary { color:var(--alayo-color-rust); }
body .hero.wrap { background:var(--alayo-color-coral-soft); border-radius:20px; padding:32px; margin-top:24px; grid-template-columns:minmax(0,1fr) minmax(0,1fr); }
body .hero-art { min-width:0; max-width:100%; overflow:clip; }
@media(max-width:900px) { body .hero.wrap { grid-template-columns:1fr; gap:24px; } }
@media(max-width:760px) { body .hero.wrap { padding:22px; margin-top:16px; } }

/* Index density: mobile visitors reach the services before the decorative story. */
body .service-hub .hub-audience-field,body .service-hub .hub-cta-short { display:none; }
body .service-hub .service-grid { gap:16px; }
body .service-hub .service-section .service-card { background:var(--alayo-color-surface); border:1px solid var(--line); border-radius:14px; }
body .service-hub .service-section .service-entry { padding:18px; }
@media(max-width:760px) {
  body .service-hub { padding-top:12px; }
  body .service-hub .hub-intro.expanded-intro { padding:14px 18px; gap:0; border-radius:16px; margin-bottom:12px; }
  body .service-hub .expanded-intro h1 { font-size:1.6875rem; line-height:1.15; margin:0; text-wrap:initial; }
  body .service-hub .expanded-intro :is(.eyebrow,.lead),body .service-hub .brand-world-hero,body .service-hub .alayo-purpose-paths { display:none; }
  body .service-hub .hub-hero-actions { margin-top:4px; gap:18px; }
  body .service-hub .hub-cta-full { display:none; }
  body .service-hub .hub-cta-short { display:inline; }
  body .service-hub .hub-hero-actions .button { min-height:40px; padding:8px 12px; font-size:.8125rem; }
  body .service-hub .hub-hero-actions .text-link { display:inline-flex; align-items:center; min-height:40px; font-size:.8125rem; }
  body .service-hub .hub-discovery-tools { display:block; margin:0; }
  body .service-hub .hub-discovery-tools>div { margin-bottom:10px; }
  body .service-hub .hub-discovery-tools .eyebrow { display:none; }
  body .service-hub .hub-discovery-tools h2 { font-size:1.125rem; margin:0; line-height:1.4; }
  body .service-hub .service-filters { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; }
  body .service-hub .service-filters .hub-search-field { grid-row:1; grid-column:1/4; display:block; }
  body .service-hub .service-filters .hub-search-field input { margin:0!important; padding-right:16px; }
  body .service-hub .service-filters>button { position:static; grid-column:4; grid-row:1; width:100%; min-height:48px; height:48px; padding:10px 8px; font-size:.875rem; border-radius:10px; background:var(--alayo-color-sage-soft); border-color:transparent; }
  body .service-hub .service-filters .hub-category-field,body .service-hub .service-filters .hub-audience-field { display:block; min-width:0; grid-row:2; }
  body .service-hub .service-filters .hub-category-field { grid-column:1/3; }
  body .service-hub .service-filters .hub-audience-field { grid-column:3/5; }
  body .service-hub .service-filters select { width:100%; margin:0; }
  body .service-hub .hub-filter-label { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; border:0; }
  body .service-hub :is(.hub-category-field,.hub-audience-field) .hub-filter-label { display:block; position:static; width:auto; height:auto; margin:0 0 8px; padding:0; overflow:visible; clip-path:none; white-space:normal; font-size:.75rem; line-height:1.5; font-weight:500; color:var(--muted); }
  body .service-hub .audience-toolbar { display:flex; justify-content:flex-end; margin:6px 0 10px; min-height:18px; }
  body .service-hub .audience-filters { display:none; }
  body .service-hub .service-total { font-size:.75rem; line-height:1.5; }
  body .service-hub .hub-featured-services { grid-template-columns:1fr 1fr; gap:12px; margin-bottom:24px; }
  body .service-hub .hub-featured-services>.featured-service:first-child { grid-column:1/-1; }
  body .service-hub .hub-featured-services>.featured-service .service-entry,body .service-hub .hub-featured-services>.featured-service:first-child .service-entry { padding:16px; min-height:0; }
  body .service-hub .featured-service .service-title-row { flex-direction:row; align-items:center; gap:8px; margin-bottom:6px; }
  body .service-hub .featured-service .service-symbol { width:24px!important; height:24px!important; flex-basis:24px; }
  body .service-hub .featured-service .signature-service-icon { width:24px; height:24px; }
  body .service-hub .featured-service h3 { font-size:1.125rem; line-height:1.35; }
  body .service-hub .featured-service .service-description { font-size:.8125rem; line-height:1.6; margin:0 0 8px; }
  body .service-hub .featured-service .service-meta { margin:auto 0 0; }
  body .service-hub .featured-service .service-status { font-size:.75rem; padding:2px 5px; }
  body .service-hub .featured-service .service-open { display:none; }
  body .service-hub .service-grid { gap:12px; }
  body .service-hub .service-section { margin-bottom:24px; }
  body .service-hub .service-section>header { margin-bottom:12px; }
  body .service-hub .service-section .service-entry { padding:16px; }
}
@media(max-width:360px) {
  body .service-hub .expanded-intro h1 { font-size:1.5rem; }
  body .service-hub .hub-hero-actions { gap:10px; }
  body .service-hub .hub-hero-actions .button { padding-inline:9px; font-size:.75rem; }
  body .service-hub .hub-hero-actions .text-link { font-size:.75rem; }
  body .service-hub .featured-service .service-title-row { gap:6px; }
  body .service-hub .hub-featured-services .service-entry { padding:14px; }
}
/* Purpose navigation: one compact silhouette and a quiet colour field per destination. */
[data-nav-panel=learn],[data-purpose=learn] { --purpose-fill:#e1eee7; --purpose-edge:#b8d2c3; }
[data-nav-panel=toolbox],[data-purpose=toolbox] { --purpose-fill:#e3edf7; --purpose-edge:#bfcedd; }
[data-nav-panel=play],[data-purpose=play] { --purpose-fill:#fff0bf; --purpose-edge:#dfcc8c; }
[data-nav-panel=teach],[data-purpose=teach] { --purpose-fill:#fce1d5; --purpose-edge:#e4bdad; }
[data-nav-panel=create],[data-purpose=create] { --purpose-fill:#eee6f5; --purpose-edge:#d1c1e0; }
[data-nav-panel=build],[data-purpose=build] { --purpose-fill:#e0eee9; --purpose-edge:#b9d2c7; }
body .alayo-nav-trigger { background:var(--purpose-fill); border:1px solid transparent; padding:9px 10px; gap:7px; border-radius:11px; }
body .alayo-nav-trigger:is(:hover,[aria-expanded=true],.is-current) { background:var(--purpose-fill); border-color:var(--purpose-edge); text-decoration:none; }
body .alayo-nav-trigger.is-current .alayo-nav-label { text-decoration:underline; text-underline-offset:5px; text-decoration-thickness:2px; }
.alayo-purpose-icon { display:block; width:22px; height:22px; flex:0 0 22px; }
body .alayo-nav-trigger .alayo-purpose-icon { width:20px; height:20px; flex-basis:20px; }
body .alayo-nav-primary-groups { gap:12px; }
body .alayo-nav-role+.alayo-nav-role { padding-left:12px; }
body .alayo-nav-role-items { gap:6px; }
body .alayo-nav-header { gap:18px; }
body .alayo-nav-content { gap:18px; }
body .alayo-purpose-options>a { padding:14px; border:1px solid var(--purpose-edge); border-radius:12px; background:var(--purpose-fill); }
body .alayo-purpose-options>a strong { display:flex; align-items:center; gap:9px; }
body .service-category-heading { display:inline-flex; align-items:center; gap:10px; padding:8px 12px; border:1px solid var(--purpose-edge); border-radius:12px; background:var(--purpose-fill); }
body .service-category-heading .alayo-purpose-icon { width:24px; height:24px; flex-basis:24px; }
body .classroom-template-layout>.classroom-template-picker { display:none; }
body .writing-brief>summary { display:flex; align-items:center; justify-content:space-between; gap:16px; min-height:44px; cursor:pointer; list-style:none; font:700 1.125rem/1.4 var(--alayo-font-display); }
body .writing-brief>summary::-webkit-details-marker { display:none; }
body .writing-brief>summary .alayo-nav-chevron { margin-right:4px; }
body .writing-brief[open]>summary .alayo-nav-chevron { transform:rotate(225deg); }
body .writing-brief[open]>summary { margin-bottom:12px; }
@media(min-width:1101px) and (max-width:1280px) {
  body .alayo-nav-header { padding-inline:20px; gap:12px; }
  body .alayo-nav-content { gap:12px; }
  body .alayo-nav-trigger { font-size:14px; padding-inline:7px; gap:5px; }
  body .alayo-nav-primary-groups { gap:8px; }
  body .alayo-nav-role+.alayo-nav-role { padding-left:8px; }
  body .alayo-nav-role-items { gap:4px; }
  body .alayo-nav-trigger .alayo-purpose-icon { width:18px; height:18px; flex-basis:18px; }
}
@media(max-width:1100px) {
  body .alayo-nav-header { gap:0 12px; }
  body .alayo-nav-role-items { display:flex; flex-direction:column; gap:8px; }
  body .alayo-nav-role+.alayo-nav-role { padding:12px 0 0; }
  body .alayo-nav-trigger { justify-content:start; padding:12px 16px; gap:12px; font-size:16px; min-height:48px; }
  body .alayo-nav-trigger .alayo-nav-chevron { margin-left:auto; margin-right:3px; }
  body .alayo-nav-content.is-open { margin-top:10px; padding-top:8px; }
}
/* Mobile workspaces: 12px card rhythm, 14px panels, 48px controls. */
@media(max-width:760px) {
  body[data-view=lab] .focus-bar,body[data-view=writing] .focus-bar { margin-top:0; padding-bottom:0; }
  body :is(.lab-page,.writing-page) { padding-top:8px; }
  body :is(.lab-page,.writing-page)>.back-link { margin:0 0 8px; min-height:36px; display:inline-flex; align-items:center; }
  body :is(.lab-intro,.writing-intro) { display:grid; grid-template-columns:minmax(0,1fr) 28px; align-items:start; padding:14px; gap:10px; border-radius:14px; margin:0 0 12px; }
  body :is(.lab-intro,.writing-intro) h1 { font-size:26px; line-height:1.2; letter-spacing:-.035em; margin:0; }
  body :is(.lab-intro,.writing-intro) .eyebrow { font-size:11px; margin:0 0 6px; }
  body :is(.lab-intro,.writing-intro) .lead { font-size:13px; line-height:1.55; margin:8px 0 0; }
  body :is(.lab-intro,.writing-intro) .signature-service-emblem { width:28px; height:28px; }
  body :is(.lab-intro,.writing-intro) .signature-service-icon { width:28px; height:28px; }
  body :is(.lab-experiment-grid,.writing-prompt-grid) { gap:12px; }
  body :is(.lab-experiment-grid,.writing-prompt-grid) article { padding:16px; border-radius:14px; }
  body .lab-experiment-grid article { display:grid; grid-template-columns:minmax(0,1fr) 36px; align-items:start; column-gap:12px; }
  body .lab-experiment-grid .lab-card-art { grid-column:2; grid-row:1/span 2; width:36px; height:36px; margin:0; }
  body .lab-experiment-grid article>.eyebrow { grid-column:1; grid-row:1; font-size:11px; margin:0; }
  body .lab-experiment-grid h2 { grid-column:1; grid-row:2; }
  body .lab-experiment-grid article>p:not(.eyebrow),body .lab-experiment-grid article>.button { grid-column:1/-1; }
  body :is(.lab-experiment-grid,.writing-prompt-grid) h2 { font-size:20px; line-height:1.25; margin:6px 0 8px; }
  body :is(.lab-experiment-grid,.writing-prompt-grid) article>p:not(.eyebrow) { font-size:13px; line-height:1.55; margin:0 0 10px; }
  body :is(.lab-experiment-grid,.writing-prompt-grid) article>.button { margin-top:4px; min-height:44px; padding:10px 14px; font-size:13px; justify-self:start; }
  body .writing-prompt-grid .eyebrow { margin:0; font-size:11px; }
  body .writing-band { display:grid; grid-template-columns:1fr 174px; gap:12px; margin:0 0 12px; padding:8px 0; }
  body .writing-band label { font-size:12px; line-height:1.5; }
  body .writing-band select { width:100%; max-width:none; }
  body :is(.lab-detail,.writing-detail)>.service-workspace-header { padding:14px; border-radius:14px; margin:0 0 12px; }
  body :is(.lab-detail,.writing-detail)>.service-workspace-header .eyebrow { font-size:10px; line-height:1.5; margin:0 0 6px; }
  body :is(.lab-detail,.writing-detail)>.service-workspace-header h1 { font-size:24px; line-height:1.2; }
  body .lab-detail>.service-workspace-header .lead { font-size:13px; line-height:1.5; margin-top:8px; }
  body :is(.lab-workspace-layout,.writing-layout) { gap:12px; }
  body :is(.lab-prediction,.lab-reflection,.lab-bench,.writing-workspace) { padding:14px; }
  body .lab-section-title { margin-bottom:8px; gap:8px; }
  body .lab-section-title h2 { font-size:14px; }
  body .lab-prediction label { font-size:13px; line-height:1.5; margin:0; }
  body .lab-prediction textarea { display:block; min-height:64px; height:64px; margin-top:8px; padding:10px 12px; }
  body .lab-bench-grid { display:flex; flex-direction:column; gap:12px; margin-top:10px; }
  body .lab-bench-grid>div { width:100%; }
  body .lab-controls { order:-1; }
  body .lab-controls>p { font-size:12px; line-height:1.5; margin:8px 0; }
  body .lab-width-options { gap:6px; }
  body .lab-tiles-frame { min-height:180px; padding:12px; }
  body .lab-readouts { margin-bottom:10px; }
  body .lab-readouts strong { font-size:24px; }
  body .writing-steps { margin:0 0 12px; padding:0; gap:4px; }
  body .writing-steps button { min-height:60px; padding:7px 4px; gap:5px; font-size:11px; line-height:1.35; }
  body .writing-steps button span { width:18px; height:18px; flex-basis:18px; font-size:10px; }
  body .writing-brief { padding:4px 14px; }
  body .writing-brief>summary { font-size:14px; }
  body .writing-brief[open] { padding-bottom:14px; }
  body .writing-brief>p:not(.eyebrow) { font-size:14px; line-height:1.6; }
  body .writing-section-heading { display:flex; flex-wrap:nowrap; align-items:center; gap:10px; margin-bottom:12px; }
  body .writing-section-heading h2 { font-size:19px; line-height:1.3; margin:4px 0 0; }
  body .writing-section-heading .eyebrow { font-size:10px; margin:0; }
  body .writing-word-count { white-space:nowrap; font-size:12px; }
  body .writing-word-count strong { font-size:24px; }
  body .writing-word-count small { display:block; margin:2px 0 0; font-size:10px; }
  body .writing-draft { height:230px; min-height:230px; margin:0; padding:12px; }
  body .writing-workspace>.eyebrow { margin:0 0 8px; font-size:11px; }
  body .writing-mini-lesson { padding:14px; }
  body .writing-mini-lesson h3 { font-size:18px; margin:8px 0; }
  body .writing-mini-lesson>p { font-size:14px; line-height:1.6; }
  body .classroom-shell { padding-top:12px; }
  body .classroom-shell>.service-workspace-header { padding:14px; margin-bottom:12px; border-radius:14px; }
  body .classroom-shell>.service-workspace-header .kicker { font-size:10px; margin:0 0 6px; }
  body .classroom-shell>.service-workspace-header h1 { font-size:24px; line-height:1.2; }
  body .classroom-shell>.service-workspace-header .classroom-intro { font-size:13px; line-height:1.55; margin-top:8px; }
  body .classroom-template-tools { gap:8px; margin:0 0 10px; }
  body .classroom-template-tools>div:first-child>.kicker,body .classroom-template-tools h2 { display:none; }
  body .classroom-template-tools .classroom-muted { font-size:11px; line-height:1.5; margin:0; }
  body .classroom-template-tools .classroom-filter { grid-template-columns:100px minmax(0,1fr); gap:12px; }
  body .classroom-template-tools label,body .classroom-template-layout>.classroom-template-picker { font-size:12px; }
  body .classroom-template-layout>.classroom-template-picker { display:grid; gap:8px; margin-bottom:12px; }
  body .classroom-template-picker select { display:block; width:100%; margin:0; font-size:14px; }
  body .classroom-template-list { display:none; }
  body .classroom-template-detail { padding:14px; }
  body .classroom-template-detail>.classroom-subhead { gap:12px; }
  body .classroom-template-detail h2 { font-size:22px; line-height:1.25; }
  body .classroom-template-detail .classroom-actions { width:100%; display:grid; grid-template-columns:1fr 1fr; gap:8px; }
  body .classroom-template-detail .classroom-actions button { font-size:12px; padding:10px 12px; }
  body .classroom-template-steps { margin:14px 0; gap:10px; }
  body .classroom-template-steps li { padding-top:10px; font-size:13px; }
}
