@layer platform {
  .context-navigation { display:flex; justify-content:space-between; gap:16px; width:calc(100% - 40px); max-width:1280px; margin:auto; padding-top:18px; font-size:.875rem; color:var(--soft); }
  .context-navigation a { min-height:40px; display:flex; align-items:center; text-decoration:underline; text-underline-offset:4px; }
  .personal-home { margin-top:20px; }
  .personal-home .button-row > span { font-size:.875rem; color:var(--soft); }
  .resume-banner { display:flex; align-items:center; gap:16px; margin-top:18px; padding:20px; border-radius:12px; border:1px solid #bbcbb1; background:#e6eddd; color:#24452a; }
  .resume-banner span { display:grid; gap:7px; }
  .resume-banner small { font-size:.75rem; line-height:1.5; }
  .resume-banner strong { font-size:1.125rem; line-height:1.4; }
  .feature-promo-grid { display:grid; gap:15px; margin-top:32px; }
  .feature-promo-grid a { display:grid; gap:12px; padding:25px; border-radius:12px; border:1px solid var(--line); background:#e8eddf; color:#2c4a2b; }
  .feature-promo-grid a span { line-height:1.5; font-size:1rem; }
  .story-meta { color:var(--soft); font-size:.875rem; margin-bottom:16px; }
  .story-primary { margin-bottom:18px; }
  .editorial-section { margin-top:28px; }
  .editorial-section p, .process-section li { font-size:1.0625rem; line-height:1.8; }
  .editorial-section figure { margin-top:18px; }
  .editorial-section img { width:100%; max-height:500px; object-fit:contain; }
  .editorial-section figcaption { font-size:.75rem; line-height:1.6; margin-top:8px; color:var(--soft); }
  blockquote { border-left:3px solid var(--accent); padding:10px 20px; margin:22px 0; font-size:1.125rem; line-height:1.7; }
  blockquote a { display:block; font-size:.875rem; }
  .process-section ol { padding-left:25px; }
  .process-section li { margin:12px 0; padding-left:8px; }
  .private-notes,.reflection-box,.practitioner-panel,.library-tools,.voice-recording,.craft-learning { margin-top:30px; padding:22px; border:1px solid var(--line); border-radius:12px; background:color-mix(in srgb,var(--paper) 85%,var(--accent)); }
  .private-notes h2,.reflection-box h2,.practitioner-panel h2,.craft-learning h2,.library-tools h2 { font:400 2rem/1.1 var(--serif); margin-bottom:12px; }
  .private-notes p,.reflection-box p,.practitioner-panel p,.craft-learning p { line-height:1.65; }
  .form-field select { width:100%; min-height:48px; padding:10px 34px 10px 12px; border:1px solid var(--line); border-radius:6px; color:var(--ink); background-color:var(--paper); appearance:none; background-image:linear-gradient(45deg,transparent 50%,currentColor 50%),linear-gradient(135deg,currentColor 50%,transparent 50%); background-position:calc(100% - 17px) 21px,calc(100% - 12px) 21px; background-repeat:no-repeat; background-size:5px 5px; font-size:1rem; }
  .form-field input[type=file] { white-space:normal; font-size:.875rem; overflow:hidden; }
  .form-field input[type=color] { min-height:48px; padding:5px; }
  .form-field input[readonly] { opacity:.75; }
  [role=status] { font-size:.875rem; line-height:1.6; margin-top:12px; overflow-wrap:anywhere; }
  .reading-language { gap:8px 14px; }
  .bilingual { padding:16px; border:1px solid var(--line); border-radius:8px; margin:16px 0; }
  .bilingual p { margin-top:14px; line-height:1.65; }
  audio { max-width:100%; width:100%; }
  .film-tools { padding:20px; margin-top:25px; border:1px solid var(--line); border-radius:12px; }
  .watch-page .video-frame { min-height:210px; width:100%; }
  .moment-form { display:grid; gap:0 15px; align-items:end; margin-top:20px; }
  .moment-form .form-field { margin:8px 0; }
  .moment-row { display:flex; justify-content:space-between; gap:15px; align-items:center; padding:12px 0; border-bottom:1px solid var(--line); }
  .moment-row a { line-height:1.6; overflow-wrap:anywhere; }
  .queue-row { display:flex; flex-wrap:wrap; align-items:center; gap:10px 16px; border-top:1px solid var(--line); padding:16px 0; }
  .queue-row > a { display:flex; align-items:center; gap:14px; flex:1; min-width:190px; }
  .queue-row img { width:80px; height:64px; object-fit:cover; border-radius:7px; }
  .queue-row span { display:grid; gap:6px; }
  .queue-row small { font-size:.75rem; color:var(--soft); }
  .queue-row > div { display:flex; gap:15px; }
  .collection-entry { border-top:1px solid var(--line); padding:15px 0 25px; }
  .collection-entry .compact-story { border:0; }
  .collection-entry .compact-story > a { display:flex; }
  .collection-entry .compact-story img { width:95px; height:90px; }
  .collection-entry .compact-story > button { position:static; }
  .collection-cover { margin:20px 0; }
  .collection-cover img { width:100%; max-height:350px; object-fit:cover; border-radius:12px; }
  .passport-stats { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
  .passport-stats > div { display:grid; gap:8px; border:1px solid var(--line); border-radius:10px; padding:16px 12px; background:#e8eddf; }
  .passport-stats strong { font:400 2.75rem var(--serif); }
  .passport-stats span { font-size:.875rem; line-height:1.4; }
  .reflection-card { border:1px solid var(--line); padding:20px; border-radius:10px; margin-top:16px; }
  .reflection-card h3 { font:400 1.75rem var(--serif); margin-bottom:12px; }
  .reflection-card p { white-space:pre-wrap; line-height:1.7; }
  .interest-options { border:1px solid var(--line); border-radius:10px; padding:16px; margin:12px 0 20px; display:grid; gap:12px; }
  .interest-options legend { font-weight:650; padding:0 8px; }
  .interest-options label,.check-line { display:flex; gap:12px; line-height:1.6; align-items:start; padding:8px 0; }
  .interest-options input,.check-line input,.quiz-choice input { width:20px; height:20px; margin-top:3px; flex:none; accent-color:var(--accent); }
  .preferences-page form { max-width:800px; }
  .search-extra { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
  .search-extra .form-field { margin:14px 0; }
  mark { background:#e8cc6c; color:#233821; padding:0 2px; }
  .facet-count { font-size:.75rem; margin-left:4px; opacity:.75; }
  .toast-undo { border:0; background:transparent; color:#f4dd88; padding:8px 12px; font-weight:700; text-decoration:underline; }
  .atlas-tools { display:grid; gap:12px; margin:15px 0 25px; }
  .atlas-tools .form-field { margin:0; max-width:360px; }
  .atlas .reading-deck { color:var(--soft); }
  .atlas .place-list { margin-top:16px; }
  .place-row > span { display:grid; gap:6px; }
  .place-row small { font-size:.75rem; line-height:1.5; }
  .atlas-selected.is-open { position:fixed; z-index:4; inset:auto 12px 82px; max-height:70dvh; overflow:auto; box-shadow:0 10px 70px #0009; }
  .atlas-selected.is-open img { max-height:170px; }
  .atlas-selected .primary-button { margin-top:16px; }
  .festival-calendar { margin-top:25px; }
  .festival-calendar > h2,.event-card h3 { font:400 2rem/1.12 var(--serif); }
  .event-list { display:grid; gap:20px; margin-top:25px; }
  .event-card { padding:22px; border:1px solid var(--line); border-radius:12px; margin:18px 0; background:#fff7e6; color:#263e27; }
  .event-card h3 { margin:10px 0; }
  .event-card p { line-height:1.7; margin:10px 0; }
  .event-card strong { display:block; margin:15px 0; }
  .craft-learning { max-width:100%; }
  .weave-model { display:grid; grid-template-columns:repeat(8,1fr); width:min(100%,400px); aspect-ratio:1; margin:20px auto; border:10px solid #523d29; background:#ecdcbf; }
  .weave-model span { border:1px solid #34241433; }
  .weave-model .over { background:var(--thread); box-shadow:inset 2px 0 3px #ffffff70; }
  .weave-model .under { background:#e9d8ad; box-shadow:inset 0 2px 3px #32250e44; }
  .pattern-stripe span:nth-child(4n) { background:var(--thread); }
  .pattern-check span:nth-child(3n) { background:#3e5333; }
  .process-cards { display:grid; gap:14px; margin-top:18px; }
  .process-cards a { display:grid; gap:12px; padding:18px; border:1px solid var(--line); border-radius:8px; line-height:1.5; }
  .process-cards span { font-size:.875rem; color:var(--accent); }
  .learning-layout,.community-layout { display:grid; gap:24px; margin-top:24px; }
  .learning-controls { display:grid; gap:0 20px; }
  .activity-card { border:1px solid var(--line); border-radius:12px; background:#fff7e9; padding:22px; }
  .activity-card h2 { font:400 2rem/1.1 var(--serif); margin-bottom:15px; }
  .activity-card h3 { font-size:1.125rem; margin:25px 0 12px; }
  .activity-card p { line-height:1.7; margin-bottom:15px; }
  .activity-card fieldset { padding:15px; border:1px solid var(--line); margin:18px 0; }
  .activity-card legend { font-weight:650; line-height:1.5; }
  .quiz-choice { display:flex; gap:10px; padding:12px 0; line-height:1.5; }
  .community-entry,.moderation-card,.answer-source { padding:22px; margin-top:18px; border:1px solid var(--line); border-radius:10px; }
  .community-entry p,.moderation-card p,.answer-source p { line-height:1.7; white-space:pre-wrap; }
  .answer-source h2 { font:400 2rem/1.12 var(--serif); margin-bottom:12px; }
  .archive-guide .suggestion-chips { margin-top:24px; }
  .studio-tabs { display:flex; gap:8px; overflow:auto; padding:5px 0 20px; }
  .studio-tabs button { flex:none; }
  .studio-layout { display:grid; gap:24px; }
  .studio-picker { padding:20px; border:1px solid var(--line); border-radius:12px; align-self:start; }
  .studio-picker h2 { font:400 2rem var(--serif); margin-bottom:14px; }
  .studio-picker h3 { margin-top:25px; }
  .editor-form { padding:22px; border:1px solid var(--line); border-radius:12px; background:#fff8ed; }
  .editor-form textarea { line-height:1.6; }
  .editor-actions { position:sticky; bottom:80px; z-index:1; display:flex; flex-wrap:wrap; gap:8px; padding:12px; border:1px solid var(--line); border-radius:8px; background:#eff1e7; }
  .upload-panel { margin-top:20px; padding:20px; border:1px solid var(--line); border-radius:10px; }
  .revision-row { display:grid; gap:6px; padding:16px 0; border-bottom:1px solid var(--line); overflow-wrap:anywhere; }
  .revision-row small { font-size:.75rem; line-height:1.5; color:var(--soft); }
  .metric-table > div { display:grid; grid-template-columns:1fr 1fr auto; gap:15px; padding:15px 0; border-top:1px solid var(--line); font-size:.875rem; }
  .health-list article { display:flex; flex-wrap:wrap; gap:10px 20px; padding:16px 0; align-items:center; border-top:1px solid var(--line); }
  .health-list span { font-size:.875rem; color:var(--soft); }
  .health-list { margin-top:20px; }
  .print-booklet { width:calc(100% - 40px); max-width:900px; margin:auto; padding:30px 0; }
  .print-booklet > h1 { font:400 3.5rem/1 var(--serif); margin:20px 0; }
  .print-controls { display:flex; gap:20px; margin-bottom:30px; }
  .booklet-story { padding:30px 0; border-bottom:1px solid var(--line); }
  .booklet-story > h2 { font:400 2.5rem/1.1 var(--serif); margin:16px 0; }
  .booklet-story > img { width:100%; max-height:300px; object-fit:cover; margin:20px 0; }
  .booklet-story p { line-height:1.7; margin:15px 0; overflow-wrap:anywhere; }
  .worksheet-lines { min-height:120px; background:repeating-linear-gradient(transparent,transparent 29px,#d2d7c6 30px); }
  @container(min-width:640px) {
    .feature-promo-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
    .moment-form { grid-template-columns:150px minmax(0,1fr); }
    .moment-form > button { grid-column:1/-1; margin-top:10px; }
    .collection-entries { max-width:900px; }
    .passport-stats > div { padding:25px; }
    .passport-stats strong { font-size:4rem; }
    .learning-controls { grid-template-columns:1fr 1fr; }
    .process-cards { grid-template-columns:repeat(3,minmax(0,1fr)); }
  }
  @container(min-width:960px) {
    .context-navigation { width:90%; }
    .sticky-reader { position:sticky; top:25px; }
    .learning-layout,.community-layout { grid-template-columns:1fr 1fr; }
    .studio-layout { grid-template-columns:300px minmax(0,1fr); }
    .studio-picker { position:sticky; top:20px; max-height:85vh; overflow:auto; }
    .editor-actions { bottom:15px; }
    .search-workspace .search-extra { grid-column:1; grid-row:2; display:grid; }
    .search-workspace .search-body { grid-column:2; grid-row:1/4; }
    .atlas-selected.is-open { position:static; max-height:none; box-shadow:none; }
    .atlas-tools { grid-template-columns:1fr 240px; }
    .atlas-tools [role=status] { grid-column:1/-1; }
    .atlas-body.list-mode { grid-template-columns:1fr 1fr; }
  }
  @media print {
    body,#experience { background:white!important; color:#111!important; padding:0!important; }
    .brand-header,.site-footer,.bottom-navigation,.preview-bar,.context-navigation,.print-controls,.toast,dialog { display:none!important; }
    .print-booklet { width:100%; padding:0; }
    .booklet-story { break-before:page; }
    .booklet-story:first-of-type { break-before:auto; }
    .booklet-story h2,.booklet-story h3 { break-after:avoid; }
    .booklet-story img { max-height:230px; }
    .booklet-story a { color:#111; }
  }
}
