@font-face {
  font-family: "Academy Quaderno";
  src: url("/anteprima/mindmap/assets/PatrickHand-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@media screen {
  :root {
    --nb-hand: "Academy Quaderno", "Segoe Print", system-ui, sans-serif;
    --nb-text: system-ui, -apple-system, "Segoe UI", sans-serif;
    --nb-paper: #fffdf5;
    --nb-desk: #f5eee0;
    --nb-ink: #253a35;
    --nb-muted: #5f584d;
    --nb-edge: #d6c7ab;
    --nb-control: #7d796c;
    --nb-tab: #eee2c7;
    --nb-action: #305b51;
    --nb-focus: #126759;
    --nb-marker: #f5db91;
    --nb-margin: #b9614e41;
    --nb-rule: #6c8c7c15;
    --nb-shadow: 0 2px 0 #50423414, 0 10px 24px #54422e0a;
    --nb-radius: 8px 15px 11px 8px;
    --nb-sheet: linear-gradient(90deg, transparent 0 13px, var(--nb-margin) 13px 14px, transparent 14px),
      repeating-linear-gradient(transparent 0 31px, var(--nb-rule) 31px 32px);
  }

  /* Use the paper palette for the default theme. Existing study modes keep their colours. */
  html:not([data-study-theme]:not([data-study-theme="gian"]), [data-study-background="white"],
           [data-study-mode="reading"], [data-study-mode="steps"], [data-study-mode="focus"],
           [data-support-calm="true"]) body[data-academy-notebook] {
    background-color: var(--nb-desk);
    background-image: none;
    color: var(--nb-ink);
  }

  html:not([data-study-theme]:not([data-study-theme="gian"]), [data-study-background="white"],
           [data-study-mode="reading"], [data-study-mode="steps"], [data-study-mode="focus"],
           [data-support-calm="true"]) body[data-academy-notebook]
    :where(.ap321-header, .ap321-tabs, .ws-header, .topbar, .preview-nav, .top, .demo-bar,
           #app .sidebar, #app .app-topbar, #app .public-header, .a566-new, .ap321-fallback,
           .ap321-teacher-hero, .ap321-teacher-cards > a, .a527-topic-group, .a528-topic-link,
           .lesson-panel, .tutor-panel, #app .assessment-runs, #app .account-page .panel,
           #app .progress-panel, #app .main-column > .panel, #app .app-content > .panel,
           #prova.paper, main:has(> #prova) > .paper, #level-picker.paper, #activity.paper,
           #creator.paper, #editor528.paper, #readable-list528 article) {
    background-color: var(--nb-paper);
    border-color: var(--nb-edge);
    color: var(--nb-ink);
  }

  html:not([data-study-theme]:not([data-study-theme="gian"]), [data-study-background="white"],
           [data-study-mode="reading"], [data-study-mode="steps"], [data-study-mode="focus"],
           [data-support-calm="true"]) body[data-academy-notebook]
    :is(.a566-new, .ap321-fallback, .ap321-teacher-cards > a, .lesson-panel, .tutor-panel,
        #app .assessment-runs, #app .account-page .panel, #app .progress-panel,
        #app .main-column > .panel, #prova.paper, #level-picker.paper, #activity.paper,
        #creator.paper, #editor528.paper) {
    background-color: var(--nb-paper);
    background-image: var(--nb-sheet);
    border-radius: var(--nb-radius);
    box-shadow: var(--nb-shadow);
  }

  body[data-academy-notebook="home"] .ap321-header {
    margin-block-start: clamp(0px, 2vw, 20px);
    border-block-end: 1px solid var(--nb-edge);
  }
  body[data-academy-notebook="home"] .ap321-toolbar { margin-block-start: 1rem; }
  body[data-academy-notebook="home"] .ap321-shortcuts a {
    display: inline-flex;
    align-items: center;
    min-block-size: 44px;
    text-underline-offset: .22em;
  }
  html:not([data-study-theme]:not([data-study-theme="gian"]), [data-study-background="white"],
           [data-study-mode="reading"], [data-study-mode="steps"], [data-study-mode="focus"],
           [data-support-calm="true"]) body[data-academy-notebook]
    :is(.ap321-tabs button[aria-selected="true"], #app .side-nav .nav-item[aria-current="page"]) {
    background: var(--nb-tab);
    border-color: var(--nb-control);
    color: var(--nb-ink);
    box-shadow: 0 2px 0 #564b361f;
  }

  html:not([data-study-mode="reading"], [data-study-mode="steps"], [data-study-mode="focus"],
           [data-study-theme="calm"], [data-study-background="white"], [data-support-calm="true"])
    body[data-academy-notebook]
    :is(.a413-hero-copy h1, .a566-new h2, .ap321-fallback h1, .ap321-teacher-hero h1,
        .ap321-teacher-cards h2, #ws-title, #ws-test .ws-test-head h1, .lesson-title h2,
        #prova h2, main:has(> #prova) > .hero h1, #title528, #creator h1,
        #level-picker h1, #activity .e563-head h1, .tutor-panel > header h2, .academy-face-name,
        #app .account-page h1, #app .academy-welcome-page h1, #app .progress-panel h2,
        #app .assessment-runs h1, #app .assessment-runs h2) {
    font-family: var(--nb-hand);
    font-weight: 400;
    letter-spacing: normal;
  }
  html:not([data-study-theme]:not([data-study-theme="gian"]), [data-study-background="white"],
           [data-study-mode="reading"], [data-study-mode="steps"], [data-study-mode="focus"],
           [data-support-calm="true"]) body[data-academy-notebook]
    :is(.a566-new h2, #ws-test .ws-test-head h1, .lesson-title h2, .tutor-panel > header h2,
        #app .account-page h1, #prova h2, #activity .e563-head h1, #level-picker h1) {
    text-decoration: underline var(--nb-marker) .13em;
    text-underline-offset: .15em;
  }

  body[data-academy-notebook] :is(.reading-steps p, .lesson-panel > .lead, .scene > p,
    .takeaway, #ws-test .ws-question, #ws-test .ws-question h2, #ws-test .ws-guide p,
    #ws-test .ws-answer-label, .e563-prompt, .tutor-panel p, .tutor-panel label,
    #app .ar-question, .nb-guide-name-form) {
    font-family: var(--nb-text);
    line-height: 1.55;
  }
  body[data-academy-notebook] :is(.lesson-panel .formula, .lesson-panel .math, .e563-prompt,
    #ws-test input, #ws-test textarea, #app .ar-field, .tutor-panel textarea) {
    font-family: var(--nb-text);
    font-variant-numeric: tabular-nums;
  }
  body[data-academy-notebook] :is(a, button, select, textarea, input, summary):focus-visible {
    outline: 3px solid var(--nb-focus);
    outline-offset: 3px;
  }
  body[data-academy-notebook] :is(.ap321-toolbar button, .ap321-header button,
    .ws-header a, .demo-bar a, #app .public-nav .btn, .tutor-toolbar button,
    .nb-guide-name-save) {
    min-block-size: 44px;
  }
  body[data-academy-notebook] :is(.ws-header a, .demo-bar a) {
    display: inline-flex;
    align-items: center;
  }

  html:not([data-study-theme]:not([data-study-theme="gian"]), [data-study-background="white"],
           [data-study-mode="reading"], [data-study-mode="steps"], [data-study-mode="focus"],
           [data-support-calm="true"]) body[data-academy-notebook]
    :is(.a566-primary, .ap321-primary, #app .public-nav .btn, .tutor-panel button[value="guide"],
        .nb-guide-name-save):not(:disabled) {
    background: var(--nb-action);
    border-color: var(--nb-action);
    border-radius: 7px 10px 8px 7px;
    color: white;
  }
  body[data-academy-notebook] :is(.tutor-panel textarea, #app .ar-field textarea) {
    min-block-size: 7rem;
    inline-size: 100%;
    max-inline-size: 100%;
    font-size: max(1rem, 16px);
    line-height: 1.65;
    padding: .7rem .85rem;
    resize: vertical;
  }
  html:not([data-study-theme]:not([data-study-theme="gian"]), [data-study-background="white"],
           [data-study-mode="reading"], [data-study-mode="steps"], [data-study-mode="focus"],
           [data-support-calm="true"]) body[data-academy-notebook]
    :is(.tutor-panel textarea, #app .ar-field textarea, .nb-guide-name-custom) {
    border: 1px solid var(--nb-control);
    background: #fffef9;
    color: var(--nb-ink);
  }
  body[data-academy-notebook] :is(.tutor-next, #app .ar-item-feedback, #app .ar-save-panel) {
    border-inline-start: 3px solid #8b7255;
    padding-inline-start: .8rem;
  }
  body[data-academy-notebook] :is(.ws-answer-label, .nb-guide-name-label, .nb-guide-avatar-label) {
    display: block;
    font-weight: 700;
    margin-block: .75rem .4rem;
  }
  body[data-academy-notebook] .academy-face { margin-inline: 0; max-inline-size: 100%; }
  .nb-guide-name { margin-block: .75rem 0; }
  :is(.nb-guide-name-summary, .nb-guide-avatar-summary) {
    cursor: pointer;
    font-weight: 650;
    min-block-size: 44px;
    align-content: center;
  }
  .nb-guide-name-form { margin-block: .5rem 0; max-inline-size: 28rem; }
  :is(.nb-guide-name-form select, .nb-guide-name-custom, .nb-guide-avatar-select) {
    display: block;
    max-inline-size: 100%;
    min-block-size: 44px;
    margin-block-start: .25rem;
    font: inherit;
  }
  .nb-guide-name-form .nb-guide-name-save { font: inherit; padding-inline: .9rem; cursor: pointer; }
  .nb-guide-name-feedback:empty { display: none; }
  .nb-guide-name-remember { display: block; margin-block: .5rem; }
  .nb-guide-historical {
    --nb-guide-x: 0%;
    --nb-guide-y: 0%;
    aspect-ratio: 1;
    align-self: end;
    width: 100%;
    background-image: url("/anteprima/naliya/historical-guides.webp");
    background-size: 300% 200%;
    background-position: var(--nb-guide-x) var(--nb-guide-y);
    background-repeat: no-repeat;
    border-radius: inherit;
  }
  .nb-guide-historical:is([data-avatar="archimede"], [data-avatar="cesare"]) { --nb-guide-x: 50%; }
  .nb-guide-historical:is([data-avatar="dante"], [data-avatar="alessandro"]) { --nb-guide-x: 100%; }
  .nb-guide-historical:is([data-avatar="picasso"], [data-avatar="cesare"], [data-avatar="alessandro"]) { --nb-guide-y: 100%; }

  @media (max-width: 600px) {
    :root { --nb-sheet: linear-gradient(90deg, transparent 0 6px, var(--nb-margin) 6px 7px, transparent 7px),
      repeating-linear-gradient(transparent 0 31px, var(--nb-rule) 31px 32px); }
    body[data-academy-notebook] :is(.tutor-panel, .nb-guide-name-form, #app .ar-question) { min-inline-size: 0; }
    body[data-academy-notebook="home"] .ap321-shortcuts { gap: .85rem; }
  }
}

@media screen and (prefers-reduced-motion: no-preference) and (forced-colors: none) {
  html:not([data-study-motion="reduced"], [data-study-mode="reading"], [data-study-mode="focus"],
           [data-study-mode="steps"], [data-study-theme="calm"], [data-study-background="white"],
           [data-support-calm="true"]) body[data-academy-notebook] :is(.a566-new h2, #prova h2, #ws-title) {
    animation: notebook-marker-in .42s ease-out;
  }
}
@keyframes notebook-marker-in {
  from { text-decoration-color: transparent; }
  to { text-decoration-color: var(--nb-marker); }
}
@media (forced-colors: active) {
  body[data-academy-notebook] :is(a, button, select, textarea, input, summary):focus-visible { outline-color: Highlight; }
}


/* The prompts, response fields and feedback stay together in the existing study flows. */
@media screen {
  :is(#ws-test, #activity, .lesson-panel, #exercise.paper) {
    --activity-text: system-ui, -apple-system, "Segoe UI", sans-serif;
    --activity-field: #fffefb;
    --activity-field-edge: #998779;
    --activity-ink: #332b24;
    --activity-focus: #185b53;
    --activity-accent: #28705f;
    --activity-note: #f7ebcd;
  }

  /* Keep words, symbols and entered answers equally clear in every study mode. */
  html body :is(
    #ws-test .ws-question h2, #ws-test .ws-option, #ws-test .ws-review,
    #ws-test #ws-instant454, .e563-prompt, .e563-field, .e563-feedback,
    .lesson-panel .reading-steps p, .lesson-panel > .lead,
    .lesson-panel .scene p, .lesson-panel .takeaway, #exercise .question
  ) {
    font-family: var(--activity-text, system-ui);
    letter-spacing: normal;
    overflow-wrap: anywhere;
  }

  :is(#ws-test .ws-question h2, .e563-prompt, #exercise .question) {
    line-height: 1.45;
    max-inline-size: 68ch;
  }

  #ws-test .ws-question h2,
  #activity .e563-prompt {
    margin-block: 0 1rem;
    font-size: clamp(1.05rem, 1rem + .35vw, 1.24rem);
    font-weight: 650;
  }

  :is(#ws-test .ws-options, #activity [data-e563-form] fieldset, .lesson-panel fieldset) {
    min-inline-size: 0;
  }

  :is(#ws-test .ws-progress, .lesson-panel .progress) {
    font-family: var(--activity-text);
    font-variant-numeric: tabular-nums;
  }

  #ws-test .ws-progress > progress {
    min-inline-size: 0;
    accent-color: var(--activity-accent);
  }

  :is(#ws-answer-form, [data-e563-form], .lesson-panel, #exercise.paper)
    :is(textarea, input[type="text"], input[type="number"], select) {
    font-family: var(--activity-text);
    font-size: max(1rem, 16px);
    line-height: 1.45;
    min-block-size: 44px;
    max-inline-size: 100%;
    scroll-margin-block: 1rem;
  }

  :is(#ws-answer-form, [data-e563-form]) textarea {
    min-block-size: 8rem;
    resize: vertical;
  }

  #activity .e563-field > label {
    display: block;
    margin-block-end: .4rem;
    font-weight: 650;
  }

  :is(#ws-answer-form, [data-e563-form]) :is(.ws-option, .e563-option) {
    min-block-size: 44px;
  }

  :is(#ws-answer-form, [data-e563-form], .lesson-panel, #exercise.paper)
    :is(button, a, input, textarea, select, summary, [tabindex="-1"]):focus-visible {
    outline: 3px solid var(--activity-focus, #185b53);
    outline-offset: 3px;
  }

  :is(#ws-test .ws-test-tools, #activity .e563-tools, .lesson-panel > .actions, #exercise .actions) {
    gap: .6rem;
    flex-wrap: wrap;
  }

  :is(#ws-test .ws-test-tools, #activity .e563-tools, .lesson-panel > .actions, #exercise .actions)
    :is(button, a) {
    min-block-size: 44px;
    max-inline-size: 100%;
    white-space: normal;
  }

  :is(#ws-test #ws-instant454, #activity .e563-feedback) {
    margin-block: .9rem;
    padding: clamp(.75rem, 2vw, 1rem);
    border-inline-start: 4px solid currentColor;
    scroll-margin-block: 1rem;
  }

  html:not([data-study-background="white"], [data-study-theme="calm"], [data-theme="calm"],
           [data-study-mode="focus"], [data-study-mode="reading"], [data-study-mode="steps"],
           [data-support-calm="true"])
    :is(#ws-answer-form, [data-e563-form], .lesson-panel, #exercise.paper)
    :is(textarea, input[type="text"], input[type="number"]):not([aria-invalid="true"]) {
    background-color: var(--activity-field);
    border-color: var(--activity-field-edge);
    color: var(--activity-ink);
    border-radius: .55rem;
  }

  html:not([data-study-background="white"], [data-study-theme="calm"], [data-theme="calm"],
           [data-study-mode="focus"], [data-study-mode="reading"], [data-study-mode="steps"],
           [data-support-calm="true"])
    .lesson-panel .reading-steps li > span {
    background: var(--activity-note);
    color: var(--activity-ink);
    border-color: var(--activity-field-edge);
    box-shadow: none;
  }

  @media (max-width: 560px) {
    :is(#ws-test .ws-test-tools, #activity .e563-tools, .lesson-panel > .actions, #exercise .actions)
      :is(button, a) {
      flex: 1 1 10rem;
    }
  }

  @media (forced-colors: active) {
    :is(#ws-answer-form, [data-e563-form], .lesson-panel, #exercise.paper)
      :is(button, a, input, textarea, select, summary, [tabindex="-1"]):focus-visible {
      outline-color: Highlight;
    }
  }
}


/* Paper details for study controls and flashcards in the default notebook theme. */
@media screen and (forced-colors: none) {
  html:not([data-study-theme]:not([data-study-theme="gian"]), [data-study-background="white"],
           [data-study-mode="reading"], [data-study-mode="steps"], [data-study-mode="focus"],
           [data-support-calm="true"]) body[data-academy-notebook]
    :is(.a566-primary, .ap321-primary, .ws-btn, #prova .primary, .nb-guide-name-save):not(:disabled) {
    border: 1px solid var(--nb-action);
    border-radius: 6px 12px 8px 10px;
    background-color: var(--nb-action);
    background-image: none;
    color: #fffdf5;
    box-shadow: 0 2px 0 #263e35;
    font-family: var(--nb-hand);
    font-size: max(1.125rem, 1em);
    font-weight: 400;
    line-height: 1.3;
    min-block-size: 44px;
  }

  html:not([data-study-theme]:not([data-study-theme="gian"]), [data-study-background="white"],
           [data-study-mode="reading"], [data-study-mode="steps"], [data-study-mode="focus"],
           [data-support-calm="true"]) body[data-academy-notebook]
    :is(.ws-btn.secondary, #prova #hint):not(:disabled) {
    border: 1px solid #987945;
    border-radius: 6px 12px 8px 10px;
    background-color: #fbefd3;
    background-image: none;
    color: var(--nb-ink);
    box-shadow: 0 2px 0 #a88b5a55;
    font-family: var(--nb-hand);
    font-size: max(1.125rem, 1em);
    font-weight: 400;
    line-height: 1.3;
    min-block-size: 44px;
  }

  html:not([data-study-theme]:not([data-study-theme="gian"]), [data-study-background="white"],
           [data-study-mode="reading"], [data-study-mode="steps"], [data-study-mode="focus"],
           [data-support-calm="true"]) body[data-academy-notebook]
    :is(.ws-card, .ws-result-summary, #ws-test .fc505-face, #ws-test .fc515-final-card) {
    border-color: var(--nb-edge);
    border-radius: var(--nb-radius);
    box-shadow: var(--nb-shadow);
  }

  html:not([data-study-theme]:not([data-study-theme="gian"]), [data-study-background="white"],
           [data-study-mode="reading"], [data-study-mode="steps"], [data-study-mode="focus"],
           [data-support-calm="true"]) body[data-academy-notebook] #ws-test
    :is(.fc505-face, .fc515-final-card) {
    color: var(--nb-ink);
    font-family: var(--nb-text);
  }

  html:not([data-study-theme]:not([data-study-theme="gian"]), [data-study-background="white"],
           [data-study-mode="reading"], [data-study-mode="steps"], [data-study-mode="focus"],
           [data-support-calm="true"]) body[data-academy-notebook] #ws-test
    :is(.fc505-face:not(.is-back), .fc515-final-card) {
    background-color: var(--nb-paper);
  }

  html:not([data-study-theme]:not([data-study-theme="gian"]), [data-study-background="white"],
           [data-study-mode="reading"], [data-study-mode="steps"], [data-study-mode="focus"],
           [data-support-calm="true"]) body[data-academy-notebook]
    :is(.ws-card-body > h3, .ws-result-summary > h2,
        #ws-test .fc505-head :is(h1, h2), #ws-test .fc505-face .fc505-eyebrow,
        #ws-test .fc515-final-card :is(h2, h3)) {
    font-family: var(--nb-hand);
    font-weight: 400;
    text-decoration: underline var(--nb-marker) .13em;
    text-underline-offset: .15em;
  }
}


/* Paper and notebook tabs for Academy's public study rooms. */
@media screen and (forced-colors: none) {
  html:not([data-study-theme]:not([data-study-theme="gian"]), [data-study-background="white"],
           [data-study-mode="reading"], [data-study-mode="steps"], [data-study-mode="focus"],
           [data-support-calm="true"]) body[data-academy-notebook] {
    --room-paper: #fffdf5;
    --room-note: #fff4d6;
    --room-rule: #53787523;
    --room-margin: #ad5e5b63;
    --room-edge: #bbab89;
    --room-radius: 13px 5px 13px 7px;
    --room-border: clamp(10px, 2.25vw, 22px);
    --room-action: #315b4d;
    --room-tab: #f5e7c6;
    --room-sheets: linear-gradient(90deg, transparent calc(var(--room-border) - 1px),
        var(--room-margin) calc(var(--room-border) - 1px) var(--room-border),
        transparent var(--room-border)),
      repeating-linear-gradient(transparent 0 31px, var(--room-rule) 31px 32px);
  }

  html:not([data-study-theme]:not([data-study-theme="gian"]), [data-study-background="white"],
           [data-study-mode="reading"], [data-study-mode="steps"], [data-study-mode="focus"],
           [data-support-calm="true"])
    :is(body[data-academy-notebook="guide"] #main > .paper,
        body[data-academy-notebook="app"] #app .tutor-panel,
        body[data-academy-notebook="home"] .a566-new):not([hidden], [aria-hidden="true"]) {
    background-color: var(--room-paper);
    background-image: var(--room-sheets);
    background-position: left top;
    background-size: auto;
    border-color: var(--room-edge);
    border-radius: var(--room-radius);
    padding-inline-start: calc(var(--room-border) + clamp(12px, 2vw, 26px));
    box-shadow: 2px 3px 0 #d9caab, 4px 5px 0 #e9dcc0, 0 10px 25px #4c3c2322;
  }

  html:not([data-study-theme]:not([data-study-theme="gian"]), [data-study-background="white"],
           [data-study-mode="reading"], [data-study-mode="steps"], [data-study-mode="focus"],
           [data-support-calm="true"]) body[data-academy-notebook="guide"] #main > .hero {
    background-color: var(--room-paper);
    background-image: var(--room-sheets);
    background-position: left top;
    background-size: auto;
    border: 1px solid var(--room-edge);
    border-radius: var(--room-radius);
    padding: clamp(16px, 3vw, 36px);
    padding-inline-start: calc(var(--room-border) + clamp(12px, 2vw, 26px));
    box-shadow: 2px 3px 0 #d9caab, 0 8px 22px #4c3c231b;
  }

  html:not([data-study-theme]:not([data-study-theme="gian"]), [data-study-background="white"],
           [data-study-mode="reading"], [data-study-mode="steps"], [data-study-mode="focus"],
           [data-support-calm="true"]) body[data-academy-notebook="home"]
    :is(.ap321-header, .ap321-tabs, .ap321-teacher-cards > a) {
    border-color: var(--room-edge);
    border-radius: var(--room-radius);
  }

  html:not([data-study-theme]:not([data-study-theme="gian"]), [data-study-background="white"],
           [data-study-mode="reading"], [data-study-mode="steps"], [data-study-mode="focus"],
           [data-support-calm="true"]) body:is([data-academy-notebook="guide"], [data-academy-notebook="app"])
    :is(.academy-face, #app .voice-conversation, #prova .voice-conversation) {
    border-color: var(--room-edge);
    border-radius: var(--room-radius);
    background-color: var(--room-paper);
    background-image: var(--room-sheets);
    padding-inline-start: calc(var(--room-border) + .7rem);
    box-shadow: 2px 2px 0 #e3d3ac;
  }

  html:not([data-study-theme]:not([data-study-theme="gian"]), [data-study-background="white"],
           [data-study-mode="reading"], [data-study-mode="steps"], [data-study-mode="focus"],
           [data-support-calm="true"])
    :is(body[data-academy-notebook="app"] #app :is(.tutor-summary, .tutor-rehearsal, .tutor-feedback),
        body[data-academy-notebook="guide"] #prova #feedback:not(:empty)) {
    border-color: var(--room-edge);
    border-radius: var(--room-radius);
    background-color: var(--room-note);
  }

  html:not([data-study-theme]:not([data-study-theme="gian"]), [data-study-background="white"],
           [data-study-mode="reading"], [data-study-mode="steps"], [data-study-mode="focus"],
           [data-support-calm="true"])
    :is(body[data-academy-notebook="guide"] .paper .levels > a,
        body[data-academy-notebook="app"] #app .tutor-entry-actions > button) {
    border-color: var(--room-edge);
    border-radius: var(--room-radius);
  }

  html:not([data-study-theme]:not([data-study-theme="gian"]), [data-study-background="white"],
           [data-study-mode="reading"], [data-study-mode="steps"], [data-study-mode="focus"],
           [data-support-calm="true"]) body:is([data-academy-notebook="guide"], [data-academy-notebook="app"])
    :is(#prova .kicker, .paper .levels > a > strong, #app .tutor-eyebrow,
        #app .tutor-entry-actions > button > strong, #app #tutor-rehearsal-title,
        .academy-face .academy-face-name, .academy-face .voice-chat > summary) {
    font-family: var(--nb-hand);
    font-weight: 400;
    letter-spacing: .015em;
  }

  html:not([data-study-theme]:not([data-study-theme="gian"]), [data-study-background="white"],
           [data-study-mode="reading"], [data-study-mode="steps"], [data-study-mode="focus"],
           [data-support-calm="true"])
    :is(body[data-academy-notebook="guide"] #prova .academy-face button,
        body[data-academy-notebook="app"] #app :is(.academy-face button, .tutor-toolbar button),
        body[data-academy-notebook="home"] .ap321-tabs > button):not(:disabled) {
    font-family: var(--nb-hand);
    font-weight: 400;
    border-radius: var(--room-radius);
  }

  html:not([data-study-theme]:not([data-study-theme="gian"]), [data-study-background="white"],
           [data-study-mode="reading"], [data-study-mode="steps"], [data-study-mode="focus"],
           [data-support-calm="true"]) body:is([data-academy-notebook="guide"], [data-academy-notebook="app"])
    :is(#prova .academy-face .voice-toggle, #app .academy-face .voice-toggle):not(:disabled) {
    background-color: var(--room-action);
    border-color: var(--room-action);
    color: var(--room-paper);
  }

  html:not([data-study-theme]:not([data-study-theme="gian"]), [data-study-background="white"],
           [data-study-mode="reading"], [data-study-mode="steps"], [data-study-mode="focus"],
           [data-support-calm="true"]) body[data-academy-notebook="home"] .ap321-tabs > button[aria-selected="true"] {
    background-color: var(--room-tab);
    box-shadow: 0 2px 0 #b29c66;
  }

  html:not([data-study-theme]:not([data-study-theme="gian"]), [data-study-background="white"],
           [data-study-mode="reading"], [data-study-mode="steps"], [data-study-mode="focus"],
           [data-support-calm="true"], [data-support-reading="comfortable"])
    :is(body[data-academy-notebook="sheets"] :is(.ws-filters, .ws-editorial, .ws-result-summary),
        body[data-academy-notebook="lessons"] :is(.lesson-panel, .course-controls),
        body[data-academy-notebook="practice"] :is(#level-picker.paper, #activity.paper, .mp-toolbar),
        body[data-academy-notebook="maps"] :is(#creator.paper, #editor528.paper),
        body[data-academy-notebook="supports"] :is(.demo-note, .ag-teacher-cards article),
        body[data-academy-notebook="board"]:not(.presenting) :is(.page-details, .selection-panel516)):not([hidden], [aria-hidden="true"]) {
    background-color: var(--room-paper);
    background-image: repeating-linear-gradient(transparent 0 31px, var(--room-rule) 31px 32px);
    border-color: var(--room-edge);
    border-radius: var(--room-radius);
    box-shadow: inset 2px 0 0 var(--room-margin), 2px 3px 0 #d9caab, 0 6px 16px #4c3c2316;
  }

  html:not([data-study-theme]:not([data-study-theme="gian"]), [data-study-background="white"],
           [data-study-mode="reading"], [data-study-mode="steps"], [data-study-mode="focus"],
           [data-support-calm="true"], [data-support-reading="comfortable"])
    :is(body[data-academy-notebook="sheets"] .ws-header,
        body[data-academy-notebook="lessons"] .topbar,
        body[data-academy-notebook="practice"] :is(.top, .topbar),
        body[data-academy-notebook="maps"] .top,
        body[data-academy-notebook="games"] .preview-nav,
        body[data-academy-notebook="supports"] .demo-bar,
        body[data-academy-notebook="board"]:not(.presenting) .top) {
    border-block-end: 1px solid var(--room-edge);
    box-shadow: 0 3px 0 #d9caab;
  }

  html:not([data-study-theme]:not([data-study-theme="gian"]), [data-study-background="white"],
           [data-study-mode="reading"], [data-study-mode="steps"], [data-study-mode="focus"],
           [data-support-calm="true"], [data-support-reading="comfortable"])
    :is(body[data-academy-notebook="sheets"] :is(.ws-home, .ws-filters button),
        body[data-academy-notebook="lessons"] .lesson-panel > .actions > button,
        body[data-academy-notebook="practice"] :is(#level-picker button, [data-e563-form] button, .mp-toolbar .mp-button),
        body[data-academy-notebook="maps"] :is(#creator button, #editor528 button, .map-toolbar button),
        body[data-academy-notebook="games"] .preview-nav nav a,
        body[data-academy-notebook="supports"] :is(.demo-bar a, .ag-teacher-cards button),
        body[data-academy-notebook="board"]:not(.presenting) :is(.share-actions button, #resources-open, #classroom-open)):not(
          :disabled, [aria-disabled="true"], [aria-pressed="true"], [aria-current]) {
    border-radius: var(--room-radius);
    font-family: var(--nb-hand);
    font-weight: 400;
    letter-spacing: .015em;
  }
}


/* Paper finish for the public guide and the private tutor. */
@media screen and (forced-colors: none) {
  html:not([data-study-theme]:not([data-study-theme="gian"]), [data-study-background="white"],
           [data-study-mode="reading"], [data-study-mode="steps"], [data-study-mode="focus"],
           [data-support-calm="true"], [data-support-reading="comfortable"])
    body[data-academy-notebook="guide"] #main :is(.hero .primary, #prova .primary):not(:disabled),
  html:not([data-study-theme]:not([data-study-theme="gian"]), [data-study-background="white"],
           [data-study-mode="reading"], [data-study-mode="steps"], [data-study-mode="focus"],
           [data-support-calm="true"], [data-support-reading="comfortable"])
    :is(body[data-academy-notebook="guide"] #prova, body[data-academy-notebook="app"] #app .tutor-panel)
    .academy-face .academy-face-controls > .academy-face-action:first-child:not(:disabled),
  html:not([data-study-theme]:not([data-study-theme="gian"]), [data-study-background="white"],
           [data-study-mode="reading"], [data-study-mode="steps"], [data-study-mode="focus"],
           [data-support-calm="true"], [data-support-reading="comfortable"])
    body[data-academy-notebook="app"] #app .tutor-panel
    :is(.tutor-entry-actions button[value="explain_practice"], .tutor-toolbar button[value="guide"]):not(:disabled) {
    color: var(--room-paper);
    background: var(--room-action);
    border-color: var(--room-action);
    border-radius: var(--room-radius);
    box-shadow: 0 2px 0 #264737;
    font-family: var(--nb-hand);
    font-weight: 400;
    font-size: max(1.125rem, 1em);
    line-height: 1.3;
  }

  html:not([data-study-theme]:not([data-study-theme="gian"]), [data-study-background="white"],
           [data-study-mode="reading"], [data-study-mode="steps"], [data-study-mode="focus"],
           [data-support-calm="true"], [data-support-reading="comfortable"])
    body[data-academy-notebook="guide"] #main
    :is(.levels > a, #attempt fieldset > label, #prova > details) {
    background: var(--room-paper);
    border: 1px solid var(--room-edge);
    border-radius: var(--room-radius);
    color: var(--nb-ink);
    box-shadow: 0 2px 0 #d9caab;
  }

  html:not([data-study-theme]:not([data-study-theme="gian"]), [data-study-background="white"],
           [data-study-mode="reading"], [data-study-mode="steps"], [data-study-mode="focus"],
           [data-support-calm="true"], [data-support-reading="comfortable"])
    body[data-academy-notebook="guide"] #main #attempt fieldset > label:has(input:checked) {
    background: var(--room-note);
    border-color: #876538;
    box-shadow: inset 3px 0 0 #876538;
  }

  html:not([data-study-theme]:not([data-study-theme="gian"]), [data-study-background="white"],
           [data-study-mode="reading"], [data-study-mode="steps"], [data-study-mode="focus"],
           [data-support-calm="true"], [data-support-reading="comfortable"])
    body[data-academy-notebook="guide"] #main #attempt input[type="radio"],
  html:not([data-study-theme]:not([data-study-theme="gian"]), [data-study-background="white"],
           [data-study-mode="reading"], [data-study-mode="steps"], [data-study-mode="focus"],
           [data-support-calm="true"], [data-support-reading="comfortable"])
    body[data-academy-notebook="app"] #app .tutor-panel input[type="checkbox"] {
    accent-color: var(--room-action);
  }

  html:not([data-study-theme]:not([data-study-theme="gian"]), [data-study-background="white"],
           [data-study-mode="reading"], [data-study-mode="steps"], [data-study-mode="focus"],
           [data-support-calm="true"], [data-support-reading="comfortable"])
    body[data-academy-notebook="guide"] #main #prova > details {
    padding: .15rem .85rem .5rem;
  }

  html:not([data-study-theme]:not([data-study-theme="gian"]), [data-study-background="white"],
           [data-study-mode="reading"], [data-study-mode="steps"], [data-study-mode="focus"],
           [data-support-calm="true"], [data-support-reading="comfortable"])
    body[data-academy-notebook="guide"] #main .hero > figure {
    background-image: radial-gradient(ellipse, #f2d49780 0%, #f8ebcb55 50%, transparent 71%);
  }

  html:not([data-study-theme]:not([data-study-theme="gian"]), [data-study-background="white"],
           [data-study-mode="reading"], [data-study-mode="steps"], [data-study-mode="focus"],
           [data-support-calm="true"], [data-support-reading="comfortable"])
    :is(body[data-academy-notebook="guide"] #prova, body[data-academy-notebook="app"] #app .tutor-panel)
    .academy-face .academy-face-frame {
    background: radial-gradient(ellipse at 50% 40%, #fff8e7, #f1ddb0);
    border-radius: var(--room-radius);
  }

  html:not([data-study-theme]:not([data-study-theme="gian"]), [data-study-background="white"],
           [data-study-mode="reading"], [data-study-mode="steps"], [data-study-mode="focus"],
           [data-support-calm="true"], [data-support-reading="comfortable"])
    :is(body[data-academy-notebook="guide"] #prova, body[data-academy-notebook="app"] #app .tutor-panel)
    .academy-face :is(.nb-guide-name, .nb-guide-avatar) {
    background-color: var(--room-paper);
    border: 1px solid var(--room-edge);
    border-radius: var(--room-radius);
    padding-inline: .65rem;
  }

  html:not([data-study-theme]:not([data-study-theme="gian"]), [data-study-background="white"],
           [data-study-mode="reading"], [data-study-mode="steps"], [data-study-mode="focus"],
           [data-support-calm="true"], [data-support-reading="comfortable"])
    :is(body[data-academy-notebook="guide"] #prova, body[data-academy-notebook="app"] #app .tutor-panel)
    .academy-face :is(.nb-guide-name[open], .nb-guide-avatar[open]) {
    padding-block-end: .65rem;
  }

  html:not([data-study-theme]:not([data-study-theme="gian"]), [data-study-background="white"],
           [data-study-mode="reading"], [data-study-mode="steps"], [data-study-mode="focus"],
           [data-support-calm="true"], [data-support-reading="comfortable"])
    :is(body[data-academy-notebook="guide"] #prova, body[data-academy-notebook="app"] #app .tutor-panel)
    .academy-face :is(.academy-face-action:not(:first-child, .voice-toggle), .voice-actions > button):not(:disabled),
  html:not([data-study-theme]:not([data-study-theme="gian"]), [data-study-background="white"],
           [data-study-mode="reading"], [data-study-mode="steps"], [data-study-mode="focus"],
           [data-support-calm="true"], [data-support-reading="comfortable"])
    body[data-academy-notebook="app"] #app .tutor-panel
    :is(.tutor-entry-actions button[value="quick_check"], .tutor-toolbar button:not([value="guide"])):not(:disabled) {
    background: var(--room-note);
    border-color: #876538;
    border-radius: var(--room-radius);
    color: var(--nb-ink);
    font-family: var(--nb-hand);
    font-weight: 400;
    font-size: max(1.125rem, 1em);
  }

  html:not([data-study-theme]:not([data-study-theme="gian"]), [data-study-background="white"],
           [data-study-mode="reading"], [data-study-mode="steps"], [data-study-mode="focus"],
           [data-support-calm="true"], [data-support-reading="comfortable"])
    :is(body[data-academy-notebook="guide"] #prova, body[data-academy-notebook="app"] #app .tutor-panel)
    .academy-face :is(.academy-face-select, .nb-guide-avatar-select, .nb-guide-name-form select,
                       .nb-guide-name-custom, .voice-transcript textarea):not(:disabled),
  html:not([data-study-theme]:not([data-study-theme="gian"]), [data-study-background="white"],
           [data-study-mode="reading"], [data-study-mode="steps"], [data-study-mode="focus"],
           [data-support-calm="true"], [data-support-reading="comfortable"])
    body[data-academy-notebook="app"] #app .tutor-panel :is(select, textarea):not(:disabled) {
    background-color: #fffef9;
    color: var(--nb-ink);
    border: 1px solid var(--nb-control);
    border-radius: var(--room-radius);
    box-shadow: inset 2px 0 0 var(--room-margin);
  }

  html:not([data-study-theme]:not([data-study-theme="gian"]), [data-study-background="white"],
           [data-study-mode="reading"], [data-study-mode="steps"], [data-study-mode="focus"],
           [data-support-calm="true"], [data-support-reading="comfortable"])
    body[data-academy-notebook="app"] #app .tutor-panel
    :is(.tutor-source, .tutor-turns > li, .tutor-question, .tutor-history-question, fieldset) {
    background-color: var(--room-paper);
    border-color: var(--room-edge);
    border-radius: var(--room-radius);
    box-shadow: inset 2px 0 0 var(--room-margin);
  }

  html:not([data-study-theme]:not([data-study-theme="gian"]), [data-study-background="white"],
           [data-study-mode="reading"], [data-study-mode="steps"], [data-study-mode="focus"],
           [data-support-calm="true"], [data-support-reading="comfortable"])
    body[data-academy-notebook="app"] #app .tutor-panel
    :is(.tutor-notice, .tutor-material-context, .tutor-rehearsal-message) {
    background-color: var(--room-note);
    border-inline-start: 3px solid #876538;
    border-radius: var(--room-radius);
    color: var(--nb-ink);
  }

  html:not([data-study-theme]:not([data-study-theme="gian"]), [data-study-background="white"],
           [data-study-mode="reading"], [data-study-mode="steps"], [data-study-mode="focus"],
           [data-support-calm="true"], [data-support-reading="comfortable"])
    :is(body[data-academy-notebook="guide"] #main, body[data-academy-notebook="app"] #app .tutor-panel)
    :is(.kicker, .tutor-eyebrow, .tutor-tag, .tutor-progress, legend, .academy-face summary, #prova > details > summary) {
    color: var(--nb-ink);
    font-family: var(--nb-hand);
    font-weight: 400;
    font-size: max(1.0625rem, 1em);
    letter-spacing: .015em;
  }

  html:not([data-study-theme]:not([data-study-theme="gian"]), [data-study-background="white"],
           [data-study-mode="reading"], [data-study-mode="steps"], [data-study-mode="focus"],
           [data-support-calm="true"], [data-support-reading="comfortable"])
    body[data-academy-notebook="guide"] #main #prova > details > summary {
    min-block-size: 44px;
    align-content: center;
  }
}


/* One handwriting for the default notebook, with calm paper accents. */
@media screen and (forced-colors: none) {
  html:not([data-study-theme]:not([data-study-theme="gian"]), [data-study-background="white"],
           [data-study-mode="reading"], [data-study-mode="steps"], [data-study-mode="focus"],
           [data-support-calm="true"], [data-support-reading="comfortable"])
    body:is([data-academy-notebook="home"], [data-academy-notebook="app"],
            [data-academy-notebook="guide"], [data-academy-notebook="sheets"],
            [data-academy-notebook="lessons"], [data-academy-notebook="practice"],
            [data-academy-notebook="maps"], [data-academy-notebook="supports"],
            [data-academy-notebook="games"], [data-academy-notebook="board"]) {
    --nb-rule: #6c8c7c12;
    --nb-margin: #b9614e28;
    --nb-marker: #ead49b9c;
    --nb-shadow: 0 2px 0 #50423414, 0 5px 14px #54422e0a;
    --room-rule: #53787516;
    --room-margin: #ad5e5b40;
  }

  html:not([data-study-theme]:not([data-study-theme="gian"]), [data-study-background="white"],
           [data-study-mode="reading"], [data-study-mode="steps"], [data-study-mode="focus"],
           [data-support-calm="true"], [data-support-reading="comfortable"])
    body[data-academy-notebook]:not([data-academy-notebook="games"], [data-academy-notebook="board"]) {
    font-family: var(--nb-hand);
    font-size: clamp(1.0625rem, 1rem + .2vw, 1.1875rem);
    line-height: 1.5;
  }

  html:not([data-study-theme]:not([data-study-theme="gian"]), [data-study-background="white"],
           [data-study-mode="reading"], [data-study-mode="steps"], [data-study-mode="focus"],
           [data-support-calm="true"], [data-support-reading="comfortable"])
    body[data-academy-notebook]:not([data-academy-notebook="games"], [data-academy-notebook="board"])
    :is(#main, #app, #support-host, #creator, #editor528, #detail528, .topbar, .top, .ap321-header,
        .ws-header, .demo-bar, footer)
    :is(h1, h2, h3, h4, h5, h6, p, li, summary, label, legend, button, a, select, small, figcaption,
        .kicker, .eyebrow, .ws-answer-label, .fc505-face, .fc515-final-card, .nb-guide-name-form,
        .academy-face-line, .academy-face-name, .academy-face-caption):not(:where(svg *, canvas *)) {
    font-family: var(--nb-hand);
  }

  html:not([data-study-theme]:not([data-study-theme="gian"]), [data-study-background="white"],
           [data-study-mode="reading"], [data-study-mode="steps"], [data-study-mode="focus"],
           [data-support-calm="true"], [data-support-reading="comfortable"])
    body[data-academy-notebook]:not([data-academy-notebook="games"], [data-academy-notebook="board"])
    :is(#main, #app, #support-host, #creator, #editor528, #detail528, .ap321-header, .top, .ws-header)
    :is(h1, h2, h3, h4, h5, h6, .kicker, .eyebrow, .academy-face-name):not(:where(svg *, canvas *)) {
    font-weight: 400;
    letter-spacing: normal;
    text-shadow: none;
    text-decoration-thickness: .07em;
  }

  html:not([data-study-theme]:not([data-study-theme="gian"]), [data-study-background="white"],
           [data-study-mode="reading"], [data-study-mode="steps"], [data-study-mode="focus"],
           [data-support-calm="true"], [data-support-reading="comfortable"])
    body[data-academy-notebook]
    :is(.a566-new h2, #prova h2, #ws-title) {
    animation: none;
  }

  html:not([data-study-theme]:not([data-study-theme="gian"]), [data-study-background="white"],
           [data-study-mode="reading"], [data-study-mode="steps"], [data-study-mode="focus"],
           [data-support-calm="true"], [data-support-reading="comfortable"])
    body[data-academy-notebook]:not([data-academy-notebook="games"], [data-academy-notebook="board"])
    :is(#main, #app, #support-host, #creator, #editor528, #detail528)
    :is(.academy-face-line, .reading-steps p, .tutor-panel p, .tutor-panel label, .ws-answer-label,
        .tutor-small, .academy-face-caption, .voice-data-note, .ws-guide p, .takeaway) {
    font-size: max(1.0625rem, 1em);
    line-height: 1.5;
  }

  html:not([data-study-theme]:not([data-study-theme="gian"]), [data-study-background="white"],
           [data-study-mode="reading"], [data-study-mode="steps"], [data-study-mode="focus"],
           [data-support-calm="true"], [data-support-reading="comfortable"])
    body[data-academy-notebook]:not([data-academy-notebook="games"], [data-academy-notebook="board"])
    :is(#main, #app, #support-host, #creator, #editor528)
    :is(math, .formula, .math, .mp-expression, .dp-expression, .dplace-equation,
        .ld-equation, .alx-equation, .m1o-equation, .fm-equation, .e563-prompt,
        #attempt fieldset > label > span, input[type="number"], input[type="password"],
        input[type="email"], .tutor-panel textarea, .voice-transcript textarea, #ws-test textarea) {
    font-family: var(--nb-text);
    font-variant-numeric: tabular-nums;
  }

  html:not([data-study-theme]:not([data-study-theme="gian"]), [data-study-background="white"],
           [data-study-mode="reading"], [data-study-mode="steps"], [data-study-mode="focus"],
           [data-support-calm="true"], [data-support-reading="comfortable"])
    body[data-academy-notebook]:not([data-academy-notebook="games"], [data-academy-notebook="board"])
    :is(pre, code, kbd, samp) {
    font-family: ui-monospace, Consolas, monospace;
  }

  /* Change the page around games and the board; keep their drawing areas isolated. */
  html:not([data-study-theme]:not([data-study-theme="gian"]), [data-study-background="white"],
           [data-study-mode="reading"], [data-study-mode="steps"], [data-study-mode="focus"],
           [data-support-calm="true"], [data-support-reading="comfortable"])
    :is(body[data-academy-notebook="games"] :is(.preview-nav, .preview-note, .preview-status, .preview-footer),
        body[data-academy-notebook="board"]:not(.presenting) :is(.top, .intro, .toolbar, .options,
          .selection-panel516, .pagebar, .page-details, .help, #resources, #share-lesson)),
  html:not([data-study-theme]:not([data-study-theme="gian"]), [data-study-background="white"],
           [data-study-mode="reading"], [data-study-mode="steps"], [data-study-mode="focus"],
           [data-support-calm="true"], [data-support-reading="comfortable"])
    :is(body[data-academy-notebook="games"] :is(.preview-nav, .preview-note, .preview-footer),
        body[data-academy-notebook="board"]:not(.presenting) :is(.top, .intro, .toolbar, .options,
          .selection-panel516, .pagebar, .page-details, .help, #resources, #share-lesson))
    :is(h1, h2, h3, h4, p, label, button, a, select, summary):not(:where(svg *, canvas *)) {
    font-family: var(--nb-hand);
  }
}


/* The six photo choices and study cards use the same handwriting and paper. */
@media screen and (forced-colors: none) {
  html:not([data-study-theme]:not([data-study-theme="gian"]), [data-study-background="white"],
      [data-study-mode="reading"], [data-study-mode="steps"], [data-study-mode="focus"],
      [data-support-calm="true"], [data-support-reading="comfortable"])
    #app .tutor-panel :is(.tutor-help-picker, .tutor-study-help, .photo-study-tool) {
    background: var(--room-paper, #fffdf5);
    border: 1px solid var(--room-edge, #bbab89);
    border-radius: var(--room-radius, 9px);
  }
  html:not([data-study-theme]:not([data-study-theme="gian"]), [data-study-background="white"],
      [data-study-mode="reading"], [data-study-mode="steps"], [data-study-mode="focus"],
      [data-support-calm="true"], [data-support-reading="comfortable"])
    #app .tutor-panel .tutor-help-picker .tutor-entry-actions button:not([value="explain_practice"]),
  html:not([data-study-theme]:not([data-study-theme="gian"]), [data-study-background="white"],
      [data-study-mode="reading"], [data-study-mode="steps"], [data-study-mode="focus"],
      [data-support-calm="true"], [data-support-reading="comfortable"])
    #app .tutor-panel .tutor-study-help button {
    background: #faf1d7;
    border-color: #8f7b59;
    border-radius: var(--room-radius, 9px);
    color: #2b4135;
    font-family: var(--nb-hand);
  }
}
.tutor-panel .tutor-help-picker { min-inline-size: 0; }
.tutor-help-picker .tutor-entry-actions { margin: .4rem 0; }
.tutor-study-help, .photo-study-tool { padding: .9rem; margin-block: .8rem; }
.tutor-study-help summary, .photo-study-source summary { cursor: pointer; min-block-size: 44px; }
.photo-study-tool p { overflow-wrap: anywhere; }
.photo-study-tool :is(.photo-study-actions, .photo-study-memory) { display: flex; flex-wrap: wrap; gap: .6rem; margin-block: .7rem; }
.photo-study-tool .photo-study-memory-card { flex: 1 1 9rem; }
.photo-study-tool :is(.photo-study-card, .photo-study-step, blockquote) {
  margin: .75rem 0;
  padding: .85rem 1rem;
  border-inline-start: 3px solid #9b8864;
  background: #fbf4e1;
  color: #253a35;
  overflow-wrap: anywhere;
}
.photo-study-tool[data-presentation="text"] :is(.photo-study-card, .photo-study-step, blockquote) {
  background: transparent;
  border-inline-start: 1px solid currentColor;
}
@media (prefers-reduced-motion: no-preference) and (forced-colors: none) {
  html:not([data-study-motion="reduced"], [data-study-mode="focus"], [data-study-theme="calm"], [data-support-calm="true"])
    .photo-study-tool[data-presentation="cards"][data-motion="full"] :is(.photo-study-card, .photo-study-step)[data-motion-phase="a"] {
    animation: photo-help-reveal-a .25s ease-out;
  }
  html:not([data-study-motion="reduced"], [data-study-mode="focus"], [data-study-theme="calm"], [data-support-calm="true"])
    .photo-study-tool[data-presentation="cards"][data-motion="full"] :is(.photo-study-card, .photo-study-step)[data-motion-phase="b"] {
    animation: photo-help-reveal-b .25s ease-out;
  }
  @keyframes photo-help-reveal-a { from { opacity: .2; transform: translateY(4px) rotateX(-12deg); } to { opacity: 1; transform: none; } }
  @keyframes photo-help-reveal-b { from { opacity: .2; transform: translateY(4px) rotateX(-12deg); } to { opacity: 1; transform: none; } }
}
