/* Porcelain surfaces, graphite typography, rose ink and cobalt accents. */
:root.atelier-theme {
  --accent: #973c59;
  --accent-dark: #783049;
  --ink: #292b36;
  --dark: #292b36;
  --muted: #737580;
  --line: #e9e6ec;
  --paper: #fcfbfd;
  --white: #ffffff;
  --soft: #f7eef2;
  --blue: #486ba8;
  --red: #b04354;
  --shadow: 0 12px 32px #292b3608;
  --field-border: #dedbe4;
  --field-text: #292b36;
  --field-muted: #8d8c98;
  --field-accent: #973c59;
  --field-active: #f7eef2;
  --field-error: #b04354;
  --workspace-nav-width: 0px;
  --motion-fast: 200ms;
  --motion-ease: cubic-bezier(.2,.7,.2,1);
  color: var(--ink);
  background: var(--paper);
}
html.atelier-theme body,
html.atelier-theme body .shell,
html.atelier-theme body .shell .main[class] {
  color: var(--ink);
  background: var(--paper);
}
html.atelier-theme body .shell { padding-left: 0; }
html.atelier-theme body :is(h1,h2,h3,h4,strong,small,.en,.eyebrow,.brand-name,button,input,textarea,select) { letter-spacing: 0; }
html.atelier-theme body :is(h1,h2,h3,h4) { color: var(--ink); }
html.atelier-theme body :is(button,a,summary):focus-visible {
  outline: 2px solid var(--blue) !important;
  outline-offset: 4px;
}
html.atelier-theme body :is(input,textarea,select) {
  color: var(--ink);
  background: #fff;
  border-color: var(--field-border) !important;
  border-radius: 14px !important;
  transition: border-color 200ms var(--motion-ease), box-shadow 200ms var(--motion-ease), background-color 200ms ease !important;
}
html.atelier-theme body :is(input,textarea,select):focus {
  border-color: #bc7891 !important;
  box-shadow: 0 0 0 4px #973c590b !important;
}
html.atelier-theme body :is(input,textarea,select):focus-visible { outline: none !important; }
html.atelier-theme body :is(input,textarea)::placeholder { color: #92909d; }
html.atelier-theme body :is(input,textarea,select)[aria-invalid="true"] { border-color: var(--red) !important; }
html.atelier-theme body input[type="checkbox"] { accent-color: var(--accent); }
html.atelier-theme body label { color: #64636f; }
html.atelier-theme body .hb-select-trigger {
  color: var(--ink);
  background: #fff;
  border-color: var(--line);
  border-radius: 14px;
  transition: border-color 200ms ease, box-shadow 200ms ease, background-color 200ms ease !important;
}
html.atelier-theme body .hb-select-trigger:is(:focus-visible,[aria-expanded="true"]) {
  border-color: #bc7891;
  box-shadow: 0 0 0 3px #973c590b !important;
}
html.atelier-theme body .hb-select-menu {
  padding: 6px;
  border-color: var(--line);
  border-radius: 16px;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 16px 40px #292b3612;
}
html.atelier-theme body .hb-select-option { border-radius: 10px; }
html.atelier-theme body .hb-select-option:is([aria-selected="true"],:hover) { color: var(--accent); background: var(--soft); }

/* The header remains compact and the learning studio remains input-centered. */
html.atelier-theme body .shell .topbar {
  background: #fcfbfdeb;
  border-color: var(--line);
  backdrop-filter: blur(18px);
}
html.atelier-theme body .topbar .brand-name strong { color: var(--ink); }
html.atelier-theme body .topbar .brand-name small { color: var(--muted); }
html.atelier-theme body .topbar .breadcrumb,
html.atelier-theme body .topbar .breadcrumb a { color: var(--muted); }
html.atelier-theme body .topbar .breadcrumb strong { color: var(--ink); }
html.atelier-theme body .topbar .personal-entry { border-radius: 14px; color: #696572; padding: 5px 8px 5px 5px; }
html.atelier-theme body .topbar .personal-entry:is(:hover,.active) { color: var(--accent); background: var(--soft); border-color: transparent; }
html.atelier-theme body .personal-entry .avatar { border-radius: 12px; color: var(--accent); background: #f2e7ed; }
html.atelier-theme body .topbar .language-switch { padding: 3px; border-radius: 12px; border-color: var(--line); background: #fff; }
html.atelier-theme body .topbar .language-switch .icon { color: #8a7e8d; }
html.atelier-theme body .topbar .language-switch > select { border-radius: 8px !important; color: #67626f; background: transparent; }
html.atelier-theme body .topbar .login-button,
html.atelier-theme body .shell .main[class] :is(.btn,.generation-send) {
  border-radius: 13px;
  border-color: var(--accent);
  color: #fff;
  background: var(--accent);
  box-shadow: 0 4px 10px #973c5910;
  font-weight: 550;
  transition: background-color 200ms ease, border-color 200ms ease, box-shadow 200ms ease, transform 200ms var(--motion-ease);
}
html.atelier-theme body .topbar .login-button:hover,
html.atelier-theme body .shell .main[class] :is(.btn,.generation-send):hover { background: var(--accent-dark); border-color: var(--accent-dark); box-shadow: 0 6px 16px #973c591c; }
html.atelier-theme body .shell .main[class] .btn.secondary { color: #66626f; background: #fff; border-color: var(--line); box-shadow: none; }
html.atelier-theme body .shell .main[class] .btn.secondary:hover { color: var(--accent); background: var(--soft); border-color: #dfbdca; }
html.atelier-theme body .shell .main[class] .btn.soft { color: var(--accent); background: var(--soft); border-color: transparent; box-shadow: none; }
html.atelier-theme body .shell .main[class] :is(.btn,.generation-send):disabled { color: #a69daa; background: #eee9ef; border-color: #eee9ef; box-shadow: none; transform: none; }
html.atelier-theme body .shell .main[class] :is(.link-btn,.reference-preview) { color: var(--blue); }
html.atelier-theme body .shell .main[class] :is(.link-btn,.reference-preview):hover { color: var(--accent); }
html.atelier-theme body .shell .main[class] .pill { color: #74717e; background: #fff; border-color: var(--line); border-radius: 9px; }
html.atelier-theme body .shell .main[class] .pill.accent { color: var(--accent); background: var(--soft); border-color: #ecd7e0; }
html.atelier-theme body .shell .main[class] .pill.blue { color: var(--blue); background: #f0f4fb; border-color: #dce5f5; }
html.atelier-theme body .shell.workspace-shell .main[class] .page-heading h1 { color: var(--ink); }
html.atelier-theme body .shell .main[class] .footer { color: #93909a; border-color: var(--line); }
html.atelier-theme body .shell .main[class] .footer button { color: #837c8b; }

html.atelier-theme body.home-mode .main[class] .generation-welcome h1 { color: var(--ink); font-weight: 600; letter-spacing: 0; }
html.atelier-theme body.home-mode .generation-home:not(.has-generation):not(.has-conversation):not(.history-open) { justify-content: center; }
html.atelier-theme body.home-mode .generation-home:not(.has-generation):not(.has-conversation):not(.history-open) .generation-stage { margin-top: 0; }
html.atelier-theme body.home-mode .generation-home:not(.has-generation):not(.has-conversation):not(.history-open) .workspace-footnote { margin-bottom: 0; }
html.atelier-theme body.home-mode .generation-stage { background: transparent; }
html.atelier-theme body.home-mode .generation-composer,
html.atelier-theme body.home-mode .generation-composer:focus-within { background: transparent; border-color: #ded9e3; border-radius: 24px; box-shadow: none; outline: 0; }
html.atelier-theme body.home-mode .generation-composer::before,
html.atelier-theme body.home-mode .generation-composer:focus-within::before {
  border-color: #ded9e3;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 10px 32px #292b3606;
  transition: none;
}
html.atelier-theme body.home-mode #generation-prompt {
  border: 0 !important;
  border-radius: 0 !important;
  color: var(--ink);
  background: transparent;
  box-shadow: none !important;
  outline: 0 !important;
}
html.atelier-theme body.home-mode .workspace-title strong { color: #8a808e; }
html.atelier-theme body.home-mode .workspace-actions button { color: #79707f; border-radius: 11px; background: #fff; border-color: var(--line); }
html.atelier-theme body.home-mode .workspace-actions button:hover,
html.atelier-theme body.home-mode .workspace-actions .history-toggle[aria-expanded="true"] { color: var(--accent); background: var(--soft); border-color: #e3c7d2; }
html.atelier-theme body.home-mode .composer-level { border-radius: 12px; background: #f7f5f9; border-color: var(--line); color: #81798a; }
html.atelier-theme body.home-mode .composer-level :is(select,.hb-select-trigger) { color: #6c607b; border-radius: 9px !important; background: transparent; }
html.atelier-theme body.home-mode .composer-cost { color: #918591; }
html.atelier-theme body.home-mode .generation-home .topic-suggestion { border-radius: 18px; color: var(--ink); border-color: var(--line); background: #fff; box-shadow: none; }
html.atelier-theme body.home-mode .generation-home .topic-suggestion:nth-child(1) { background: #fbf4f6; border-color: #f0e2e8; }
html.atelier-theme body.home-mode .generation-home .topic-suggestion:nth-child(2) { background: #f4f6fc; border-color: #e7ebf5; }
html.atelier-theme body.home-mode .generation-home .topic-suggestion:nth-child(3) { background: #f7f4fb; border-color: #ece7f3; }
html.atelier-theme body.home-mode .generation-home .topic-suggestion:nth-child(4) { background: #faf6f2; border-color: #efe7df; }
html.atelier-theme body.home-mode .generation-home .topic-suggestion strong { color: #68606f; }
html.atelier-theme body.home-mode .generation-home .topic-suggestion:hover { border-color: #d3adbd; box-shadow: 0 8px 24px #292b3608; }
html.atelier-theme body.home-mode :is(.workspace-footnote,.workspace-footnote p) { color: #918b99; }
html.atelier-theme body .main[class] .generation-history { background: #fff; border-color: var(--line); border-radius: 20px; box-shadow: 0 12px 32px #292b3608; }
html.atelier-theme body .main[class] :is(.history-head strong,.history-item strong) { color: var(--ink); }
html.atelier-theme body .main[class] .history-head { border-color: var(--line); }
html.atelier-theme body .main[class] .history-item { color: var(--ink); border-color: var(--line); border-radius: 12px; background: #faf9fc; }
html.atelier-theme body .main[class] .history-item:is(:hover,[aria-pressed="true"]) { color: var(--accent); border-color: #dab6c5; background: var(--soft); }
html.atelier-theme body .main[class] :is(.close-history,.retry-history,.retry-generation) { color: var(--accent); background: var(--soft); border-color: #ecd7e0; border-radius: 10px; }
html.atelier-theme body .main[class] :is(.history-empty,.history-item>span,.history-empty .icon) { color: #847d8c; }
html.atelier-theme body .main[class] .history-status.done { color: var(--blue); }

/* Generated projects keep their evidence-driven states without green UI chrome. */
html.atelier-theme body .main[class] .generation-home.has-generation .generation-project { color: var(--ink); border-color: var(--line); border-radius: 24px; background: #fff; }
html.atelier-theme body .main[class] :is(.generation-project-head h1,.course-progress-head h2,.result-copy h2) { color: var(--ink); }
html.atelier-theme body .main[class] :is(.project-level,.progress-badge) { color: var(--blue); border-color: #dce5f5; background: #f0f4fb; border-radius: 10px; }
html.atelier-theme body .main[class] :is(.progress-context,.project-eyebrow,.progress-eyebrow,.progress-footer p,.progress-current-label,.result-usage,.result-copy>span,.result-copy p,.generation-background-note) { color: #86818e; }
html.atelier-theme body .main[class] .progress-stage-count strong { color: var(--ink); letter-spacing: 0; }
html.atelier-theme body .main[class] .progress-stage-count > span { color: var(--muted); }
html.atelier-theme body .main[class] .progress-track { background: #eeeaf1; }
html.atelier-theme body .main[class] .progress-track > i { background: var(--accent); }
html.atelier-theme body .main[class] .generation-home.has-generation .progress-step { border-radius: 14px; border-color: var(--line); background: #faf9fc; }
html.atelier-theme body .main[class] .progress-step.is-active { border-color: #e6c4d2; background: #fbf1f5; }
html.atelier-theme body .main[class] .progress-step-index { color: #928599; border-color: var(--line); background: #fff; }
html.atelier-theme body .main[class] .progress-step.is-active .progress-step-index { color: #fff; background: var(--accent); border-color: var(--accent); }
html.atelier-theme body .main[class] .progress-step.is-active .progress-step-index::after { border-color: #c4819c; }
html.atelier-theme body .main[class] :is(.progress-step-copy strong,.progress-step-copy p,.progress-step-state) { color: #857d8d; }
html.atelier-theme body .main[class] .progress-step.is-active :is(.progress-step-copy strong,.progress-step-state) { color: var(--accent); }
html.atelier-theme body .main[class] .progress-step.is-active .progress-step-copy p { color: var(--muted); }
html.atelier-theme body .main[class] .progress-step.is-done .progress-step-index { color: var(--blue); background: #eef3fb; border-color: #dce5f5; }
html.atelier-theme body .main[class] .progress-step.is-done .progress-step-copy strong { color: var(--blue); }
html.atelier-theme body .main[class] .progress-step.is-failed .progress-step-index { color: var(--red); background: #fff3f6; border-color: #efd5de; }
html.atelier-theme body .main[class] .progress-step.is-failed :is(.progress-step-copy strong,.progress-step-state) { color: var(--red); }
html.atelier-theme body .main[class] .generation-home.has-generation .generation-result { border-color: var(--line); border-radius: 18px; background: #fff; }
html.atelier-theme body .main[class] .generation-failure { color: var(--red); border-color: #efd5de; background: #fff6f9; }
html.atelier-theme body .main[class] .generation-error { color: var(--red); border-color: #efd5de; background: #fff6f9; }
html.atelier-theme body .main[class] .progress-status-indicator { background: var(--accent); }
html.atelier-theme body .main[class] .progress-orbit::before { border-color: #e7d9e0; }
html.atelier-theme body .main[class] .progress-orbit::after { background: #fcf6f9; border-color: #eee3e9; }
html.atelier-theme body .main[class] .progress-orbit > .icon { color: var(--accent); }

/* Individual learning items are rounded; page sections remain unframed. */
html.atelier-theme body .shell.workspace-shell .main[class] :is(.course-card,.topic-tile,.vocab-card,.package,.word-review,.question) { border-color: var(--line); border-radius: 18px; background: #fff; }
html.atelier-theme body .shell.workspace-shell .main[class] :is(.course-card,.topic-tile):hover { border-color: #d6b7c6; box-shadow: 0 10px 30px #292b3609; }
html.atelier-theme body .shell.workspace-shell .main[class] .account-grid { gap: 12px; }
html.atelier-theme body .shell.workspace-shell .main[class] .account-learning-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin: 0 0 16px; }
html.atelier-theme body .shell.workspace-shell .main[class] .account-learning-actions > :is(a,button) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  max-width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: #696170;
  background: #fff;
  font-size: 13px;
  line-height: 1.5;
  text-decoration: none;
}
html.atelier-theme body .shell.workspace-shell .main[class] .account-learning-actions > :is(a,button):hover { border-color: #d6b7c6; color: var(--accent); background: #fdf9fb; }
html.atelier-theme body .shell.workspace-shell .main[class] .account-learning-actions > [aria-current="page"] { border-color: #e3c7d2; color: var(--accent); background: var(--soft); }
html.atelier-theme body .shell.workspace-shell .main[class] .account-learning-actions .icon { width: 16px; height: 16px; flex: none; }
html.atelier-theme body .shell.workspace-shell .main[class] .account-generation-history { margin: 30px 0 24px; }
html.atelier-theme body .shell.workspace-shell .main[class] .account-generation-history .section-heading { display: flex; align-items: center; gap: 14px; margin: 0 0 16px; }
html.atelier-theme body .shell.workspace-shell .main[class] .account-generation-history .section-heading h2 { color: #5e5869; font-size: 16px; outline: 0; }
html.atelier-theme body .shell.workspace-shell .main[class] .account-history-actions { display: flex; flex: none; gap: 8px; margin-left: auto; }
html.atelier-theme body .shell.workspace-shell .main[class] .account-history-actions > :is(a,button) {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: #897b91;
  background: #fff;
}
html.atelier-theme body .shell.workspace-shell .main[class] .account-history-actions > :is(a,button):hover { color: var(--accent); border-color: #d6b7c6; background: var(--soft); }
html.atelier-theme body .shell.workspace-shell .main[class] .account-history-actions .icon { width: 16px; height: 16px; }
html.atelier-theme body .shell.workspace-shell .main[class] .account-generation-history .generation-history-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; max-height: none; padding: 0; overflow: visible; }
html.atelier-theme body .shell.workspace-shell .main[class] .account-generation-history .history-item { gap: 10px; padding: 16px; border-radius: 16px; background: #fff; }
html.atelier-theme body .shell.workspace-shell .main[class] .account-generation-history .history-item:is(:hover,[aria-pressed="true"]) { border-color: #dab6c5; background: #fdf9fb; }
html.atelier-theme body .shell.workspace-shell .main[class] .account-generation-history .history-item strong { color: var(--ink); font-size: 14px; white-space: normal; overflow-wrap: anywhere; overflow: visible; text-overflow: clip; }
html.atelier-theme body .shell.workspace-shell .main[class] .account-generation-history .history-item > span { color: #847d8d; font-size: 12px; }
html.atelier-theme body .shell.workspace-shell .main[class] .account-generation-history .history-status { padding: 3px 7px; border-radius: 7px; font-size: 11px; }
html.atelier-theme body .shell.workspace-shell .main[class] .account-generation-history .history-status:is(.done,.running,.queued) { color: var(--blue); background: #eef3fb; }
html.atelier-theme body .shell.workspace-shell .main[class] .account-generation-history .history-status:is(.failed,.submission-unknown) { color: var(--accent); background: var(--soft); }
html.atelier-theme body .shell.workspace-shell .main[class] .account-generation-history { scroll-margin-top: 96px; }
html.atelier-theme body .shell.workspace-shell .main[class] .account-generation-history .history-empty { grid-column: 1 / -1; padding: 28px 16px; }
html.atelier-theme body .shell.workspace-shell .main[class] .account-generation-history .history-empty strong { font-size: 14px; }
html.atelier-theme body .shell.workspace-shell .main[class] .account-generation-history .history-empty p { font-size: 13px; }
html.atelier-theme body .shell.workspace-shell .main[class] .account-tile {
  grid-template-columns: 54px minmax(0,1fr) 16px;
  gap: 12px;
  min-height: 88px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}
html.atelier-theme body .shell.workspace-shell .main[class] .account-tile-art { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 13px; background: #f8f5fa; }
html.atelier-theme body .shell.workspace-shell .main[class] .account-tile-art img { width: 48px; height: 43px; object-fit: contain; }
html.atelier-theme body .shell.workspace-shell .main[class] .account-tile-copy { grid-column: 2; }
html.atelier-theme body .shell.workspace-shell .main[class] .account-tile-copy strong { color: #54505f; font-size: 14px; }
html.atelier-theme body .shell.workspace-shell .main[class] .account-tile-copy strong > span { font-size: inherit; font-weight: inherit; color: inherit; }
html.atelier-theme body .shell.workspace-shell .main[class] .account-tile > .icon { grid-column: 3; color: #b294a4; }
html.atelier-theme body .shell.workspace-shell .main[class] .account-tile:hover { border-color: #d6b7c6; background: #fdf9fb; box-shadow: 0 6px 20px #292b3606; }
html.atelier-theme body .shell.workspace-shell .main[class] .account-avatar { color: var(--accent); border-color: #ead5df; border-radius: 16px; background: var(--soft); }
html.atelier-theme body .shell.workspace-shell .main[class] .account-summary-item > strong { color: var(--ink); }
html.atelier-theme body .shell.workspace-shell .main[class] .account-section .section-heading h2 { color: #5e5869; }
html.atelier-theme body .shell.workspace-shell .main[class] :is(.account-summary-item>span,.account-summary-item small,.stat span,.list-row p) { color: #847d8d; }
html.atelier-theme body .shell.workspace-shell .main[class] .account-utility-list > :is(a,button) { border-radius: 10px; color: #7f7487; }
html.atelier-theme body .shell.workspace-shell .main[class] .account-utility-list [data-action="logout"] { color: var(--accent); }
html.atelier-theme body .shell.workspace-shell .main[class] .level-switch { border-radius: 12px; background: #f5f3f8; }
html.atelier-theme body .shell.workspace-shell .main[class] .level-switch button { border-radius: 9px; color: #8b8297; }
html.atelier-theme body .shell.workspace-shell .main[class] .tabs { gap: 4px; padding: 5px; border: 1px solid var(--line); border-radius: 16px; background: #f5f3f8; }
html.atelier-theme body .shell.workspace-shell .main[class] .tab { border-radius: 11px; color: #8a8095; }
html.atelier-theme body .shell.workspace-shell .main[class] .tab.active { color: var(--accent); background: #fff; box-shadow: 0 2px 8px #292b3606; }
html.atelier-theme body .shell.workspace-shell .main[class] .tab > .icon { color: #a194b0; }
html.atelier-theme body .shell.workspace-shell .main[class] .tab.active > .icon { color: var(--accent); }
html.atelier-theme body .shell.workspace-shell .main[class] .lesson-tools { border-radius: 14px; background: #f7f5fa; overflow: hidden; }
html.atelier-theme body .shell.workspace-shell .main[class] .lesson-tools-content { background: #fff; }
html.atelier-theme body .shell.workspace-shell .main[class] .notice { color: #657896; border-color: #dfe6f3; border-radius: 14px; background: #f2f5fc; }
html.atelier-theme body .shell.workspace-shell .main[class] .table-scroll { border-radius: 14px; border-color: var(--line); }
html.atelier-theme body .shell.workspace-shell .main[class] th { background: #f8f6fb; color: #8b7d96; }
html.atelier-theme body .shell.workspace-shell .main[class] .empty { border-radius: 20px; background: #faf8fc; border-color: var(--line); }
html.atelier-theme body .shell.workspace-shell .main[class] .flow-navigation .btn { border-radius: 12px; }
html.atelier-theme body .shell.workspace-shell .main[class] .tutor-message { border-radius: 16px; border-color: var(--line); }
html.atelier-theme body .shell.workspace-shell .main[class] .tutor-message.user { background: var(--soft); }
html.atelier-theme body .shell.workspace-shell .main[class] .tutor-prompt { border-radius: 12px; color: var(--blue); border-color: #dce5f5; background: #f4f6fc; }
html.atelier-theme body .shell.workspace-shell .main[class] #lesson-content {
  --lesson-ink: #292b36;
  --lesson-copy: #54515f;
  --lesson-muted: #86818e;
  --lesson-line: #e9e6ec;
  --lesson-paper: #f8f6fb;
  --lesson-teal: #973c59;
  --lesson-green: #f7eef2;
  --lesson-red: #b04354;
  --accent: #973c59;
  --accent-dark: #783049;
  --blue: #486ba8;
  --red: #b04354;
}
html.atelier-theme body .shell.workspace-shell .main[class].page-lesson {
  --course-ink: #292b36;
  --course-muted: #86818e;
  --course-line: #e9e6ec;
  --course-accent: #973c59;
  --course-soft: #f7eef2;
}
html.atelier-theme body .shell.workspace-shell .main[class] #lesson-content :is(.vocab-card,.question) { border-color: var(--line); border-radius: 18px; }
html.atelier-theme body .shell.workspace-shell .main[class] #lesson-content .question-num { color: var(--blue); background: #eef3fb; border-radius: 10px; }
html.atelier-theme body .shell.workspace-shell .main[class] #lesson-content :is(.option,.match-item) { color: var(--ink); background: #fff; border-color: var(--line); border-radius: 13px; }
html.atelier-theme body .shell.workspace-shell .main[class] #lesson-content :is(.option,.match-item):hover { background: #faf6f9; border-color: #d8b5c4; }
html.atelier-theme body .shell.workspace-shell .main[class] #lesson-content :is(.option,.match-item).selected { color: var(--accent); background: var(--soft); border-color: #c8849e; }
html.atelier-theme body .shell.workspace-shell .main[class] #lesson-content :is(.option.correct,.match-item.matched) { color: var(--blue); background: #f0f4fb; border-color: #bdcee9; }
html.atelier-theme body .shell.workspace-shell .main[class] #lesson-content .option:not([data-order-index])::before { border-color: #c5bbcd; }
html.atelier-theme body .shell.workspace-shell .main[class] #lesson-content .option.selected::before { background: var(--accent); border-color: var(--accent); }
html.atelier-theme body .shell.workspace-shell .main[class] #lesson-content .option.correct::before { background: var(--blue); border-color: var(--blue); }
html.atelier-theme body .shell.workspace-shell .main[class] #lesson-content :is(.option.wrong,.match-item.shake,.feedback.wrong) { color: var(--red); background: #fff4f7; border-color: #e5b8c5; }
html.atelier-theme body .shell.workspace-shell .main[class] #lesson-content .feedback { color: var(--blue); border-color: #dbe4f4; border-left-color: #9cb6de; border-radius: 13px; background: #f0f4fb; }
html.atelier-theme body .shell.workspace-shell .main[class] #lesson-content .match-line { stroke: var(--blue); }
html.atelier-theme body .shell.workspace-shell .main[class] #lesson-content .grammar-formula { color: var(--blue); border-radius: 14px; background: #f2f5fc; }
html.atelier-theme body .shell.workspace-shell .main[class].page-admin { --admin-ink: #292b36; --admin-muted: #86818e; --admin-line: #e9e6ec; --admin-accent: #973c59; }
html.atelier-theme body .shell.workspace-shell .main[class] :is(.admin-button,.admin-search,.admin-table-wrap,.admin-role-guide,.admin-priority,.admin-detail,.admin-editor) { border-radius: 12px; border-color: var(--line); }
html.atelier-theme body .shell.workspace-shell .main[class] .admin-button.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
html.atelier-theme body .shell.workspace-shell .main[class] .admin-button.primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
html.atelier-theme body .shell.workspace-shell .main[class] .admin-nav-item { border-radius: 10px 10px 0 0; }
html.atelier-theme body .shell.workspace-shell .main[class] .admin-priority strong,
html.atelier-theme body .shell.workspace-shell .main[class] .admin-priority strong > span { color: var(--ink); }
html.atelier-theme body .shell.workspace-shell .main[class] :is(.admin-usage .icon,.admin-usage small) { color: var(--blue); }
html.atelier-theme body .skeleton { background: linear-gradient(100deg,#f1edf4 20%,#faf8fc 45%,#f1edf4 70%); background-size: 200% 100%; }
html.atelier-theme body .skip-link { color: #fff; background: var(--accent); }
html.atelier-theme body .toast { color: #fff; border-radius: 14px; background: #37323f; }
html.atelier-theme body .toast.error { background: var(--accent-dark); }

@media (max-width: 700px) {
  html.atelier-theme body .shell.workspace-shell .main[class] .account-generation-history .generation-history-list { grid-template-columns: minmax(0,1fr); }
  html.atelier-theme body .shell.workspace-shell .main[class] .account-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  html.atelier-theme body .shell.workspace-shell .main[class] .account-tile { grid-template-columns: 43px minmax(0,1fr) 12px; gap: 8px; padding: 12px; }
  html.atelier-theme body .shell.workspace-shell .main[class] .account-tile-art { width: 43px; height: 43px; }
  html.atelier-theme body .shell.workspace-shell .main[class] .account-tile-art img { width: 39px; height: 36px; }
  html.atelier-theme body .shell.workspace-shell .main[class] .account-tile-copy strong { font-size: 12px; }
}
@media (max-width: 480px) {
  html.atelier-theme body .shell.workspace-shell .main[class] .account-grid { grid-template-columns: minmax(0,1fr); }
  html.atelier-theme body.home-mode .generation-composer::before,
  html.atelier-theme body.home-mode .generation-composer:focus-within::before { border-radius: 20px; }
  html.atelier-theme body.home-mode .generation-home .topic-suggestion { border-radius: 16px; }
  html.atelier-theme body .topbar .personal-entry { padding: 4px; }
}
html.atelier-theme body.reduce-motion *,
html.atelier-theme body.reduce-motion *::before,
html.atelier-theme body.reduce-motion *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
@media (prefers-reduced-motion: reduce) {
  html.atelier-theme body *, html.atelier-theme body *::before, html.atelier-theme body *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
