/* Experiências do Modo Estudo: galeria, laboratório e arquitetura de ideias. */
#study:not([data-lesson="history"]) .study-heading {
  position:relative; display:block; min-height:0; margin:32px 0 72px; padding:60px clamp(26px,5vw,72px) 68px;
  overflow:hidden; isolation:isolate; border:1px solid #816276; border-radius:22px;
  background:radial-gradient(circle at 82% 40%,rgba(192,137,118,.15),transparent 34%),linear-gradient(125deg,#50334c,#32233c 78%);
}
#study:not([data-lesson="history"]) .study-heading::after {position:absolute; z-index:-1; right:5%; top:5%; color:rgba(240,204,170,.15); font:200px/1 Georgia,serif; pointer-events:none;}
#study[data-lesson="grandes-matematicos"] .study-heading::after {content:"∑";}
#study[data-lesson="logica-basica"] .study-heading {background:radial-gradient(circle at 80% 28%,rgba(163,166,96,.14),transparent 34%),linear-gradient(125deg,#35283d,#292534 78%);}
#study[data-lesson="logica-basica"] .study-heading::after {content:"P ∧ Q";font-size:clamp(90px,13vw,190px);right:3%;top:13%;}
#study[data-lesson="natureza-do-pensamento-matematico"] .study-heading {background:radial-gradient(circle at 78% 25%,rgba(202,141,96,.16),transparent 37%),linear-gradient(125deg,#513344,#33283c 78%);}
#study[data-lesson="natureza-do-pensamento-matematico"] .study-heading::after {content:"◇";font-size:250px;}
#study:not([data-lesson="history"]) .study-heading :is(h1,.study-kicker,#study-subtitle,.study-start-button) {position:relative; grid-column:auto; grid-row:auto;}
#study:not([data-lesson="history"]) .study-heading h1 {max-width:850px; font-size:clamp(42px,6vw,76px); line-height:1.04;}
#study:not([data-lesson="history"]) .study-heading #study-subtitle {max-width:720px; color:#f1dedf; font-size:clamp(18px,2vw,23px);}
#study:not([data-lesson="history"]) .study-start-button {margin-top:34px;}
#study:not([data-lesson="history"]) .study-hero-art[hidden] {display:none;}
#study .other-lesson {--accent:#e6bd99; --panel:#3b2c43; --panel2:#51364b; --line:#876878; color:#f7f0ef; font-family:Georgia,"Times New Roman",serif;}
#study .other-lesson[data-kind="logica-basica"] {--accent:#d6df9c; --panel:#302d3b; --panel2:#3b3948; --line:#767587;}
#study .other-lesson[data-kind="natureza-do-pensamento-matematico"] {--accent:#e8c29b; --panel:#3e3042; --panel2:#57404e; --line:#8f6e76;}
#study .other-lesson * {box-sizing:border-box;}
#study .other-intro,#study .other-section {scroll-margin-top:34px; margin:0 0 clamp(80px,9vw,130px);}
#study .other-intro {display:grid; grid-template-columns:minmax(0,1fr) minmax(270px,.7fr); align-items:center; gap:clamp(30px,5vw,72px);}
#study .other-section-heading {max-width:920px; margin-bottom:26px;}
#study .other-eyebrow {display:block; color:var(--accent); font:750 12px/1.4 system-ui,sans-serif; text-transform:uppercase; letter-spacing:.16em;}
#study .other-section-heading h2 {margin:12px 0 17px; color:#fff3ed; font:500 clamp(30px,3.5vw,48px)/1.12 Georgia,serif; letter-spacing:-.035em;}
#study .other-section-heading p,#study .other-lesson p {color:#e4d6d9; font-size:17px; line-height:1.67;}
#study .other-intro > div > p {max-width:650px;}
#study .other-lesson h3 {color:#fff0e9; font:550 clamp(21px,2.3vw,29px)/1.22 Georgia,serif;}
#study .other-options {display:flex; flex-wrap:wrap; align-items:center; gap:9px;}
#study .other-option,#study .other-button {display:inline-flex; align-items:center; justify-content:center; min-height:44px; padding:10px 16px; border:1px solid #a58b9b; border-radius:9px; background:#4b394e; color:#f7eeef; font:650 14px/1.35 system-ui,sans-serif; text-decoration:none; text-align:center; cursor:pointer; transition:background .2s,border-color .2s,transform .2s;}
#study .other-option:hover,#study .other-button:hover {background:#685068; border-color:#f2cfb8; transform:translateY(-2px);}
#study .other-option[aria-pressed="true"] {background:#816079; border-color:#f7d1b7; color:#fff8f0;}
#study .other-button {background:#e8bf9f; border-color:#f5d4ba; color:#312338;}
#study .other-button:hover {background:#f5d5b9; color:#2a1c31;}
#study .other-button.secondary {background:#554056; color:#f8eeee; border-color:#ac899b;}
#study .other-lesson :is(button,a,select):focus-visible {outline:3px solid #f6dbad; outline-offset:3px;}
#study .other-lesson button:disabled,#study .other-lesson button:disabled:hover {opacity:1; transform:none; cursor:default; background:#443849; border-color:#817487; color:#dbd0d8;}
#study .other-feedback {min-height:42px; margin:15px 0 0; color:#e9dce0; font:600 15px/1.5 system-ui,sans-serif !important;}
#study .other-feedback[data-correct="true"] {color:#d5ecc5 !important;}
#study .other-feedback[data-correct="false"] {color:#ffcfba !important;}
#study .other-reveal {margin:17px 0 0; padding:17px 20px; border-left:3px solid var(--accent); border-radius:0 9px 9px 0; background:#503b4f; color:#f6e9e7 !important; font:16px/1.55 system-ui,sans-serif !important;}
#study .other-reveal[hidden],#study .other-complete[hidden] {display:none;}
#study .other-nav {display:flex; flex-wrap:wrap; justify-content:space-between; gap:12px 20px; margin:35px 0 10px; padding:24px 0; border-top:1px solid var(--line);}
#study .other-nav a {display:flex; align-items:center; min-height:44px; color:#f3d2b5; font:650 15px/1.4 system-ui,sans-serif; text-decoration:none;}
#study .other-nav a:hover {color:#fff2e4; text-decoration:underline; text-underline-offset:5px;}
#study .other-nav .other-map-link {color:#e5d5d8; font-weight:500;}
#study .other-finale {padding:clamp(24px,4vw,50px); border:1px solid var(--line); border-top:3px solid var(--accent); border-radius:17px; background:linear-gradient(120deg,var(--panel2),var(--panel));}
#study .other-tasks {display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); align-items:stretch; gap:14px;}
#study .other-task {min-width:0; padding:24px 18px; border:1px solid var(--line); border-radius:12px; background:#34273c;}
#study .other-task h3 {min-height:66px; margin:12px 0; font-size:21px;}
#study .other-task .other-options {align-items:stretch;}
#study .other-task .other-option {font-size:13px;}
#study .other-task.is-complete {border-color:#c8d9b3;}
#study .other-task .other-option:disabled[aria-pressed="true"],#study .other-task .other-option:disabled[aria-pressed="true"]:hover {border-color:#e4d5ad; background:#665b5c; color:#fff6e7;}
#study .other-complete {margin-top:26px; padding:24px; border:1px solid #c4ab8b; border-radius:12px; background:#614654;}
#study .other-complete > span {color:#f1cf9a; font-size:38px;}
#study .other-complete h3 {margin:4px 0;}
#study .other-complete p {margin:5px 0 20px;}
/* Galeria: retratos tipográficos, caderno de ideias e constelação. */
#study .gallery-orbit {position:relative; display:grid; grid-template-columns:repeat(2,1fr); place-items:center; min-height:310px; border:1px solid #80657f; border-radius:50%; background:radial-gradient(circle,#644663 0%,#3b2d49 56%,#2d253d 100%); box-shadow:inset 0 0 0 18px rgba(240,205,173,.035);}
#study .gallery-orbit span {z-index:1; display:grid; place-items:center; width:79px; height:79px; border:1px solid #d1b599; border-radius:50%; background:#45344f; color:#f4d2a4; font:45px Georgia,serif;}
#study .gallery-orbit span:nth-child(2) {color:#e8e2cc;}
#study .gallery-orbit span:nth-child(3) {color:#d7bcf1;}
#study .gallery-orbit span:nth-child(4) {color:#bcd8bf;}
#study .gallery-orbit i {position:absolute; width:75%; height:75%; border:1px dashed rgba(244,223,197,.31); border-radius:50%;}
#study .gallery-grid {display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px;}
#study .gallery-person {--tone:#e7c494; display:grid; grid-template-columns:96px minmax(0,1fr); gap:20px; min-width:0; padding:28px; border:1px solid color-mix(in srgb,var(--tone) 48%,#3b2b44); border-radius:15px; background:radial-gradient(circle at 5% 0%,color-mix(in srgb,var(--tone) 11%,#453348),#34283e 72%);}
#study .gallery-person.tone-ivory {--tone:#e5ded0;}.gallery-person.tone-violet {--tone:#d5b8e8;}.gallery-person.tone-sage {--tone:#bfd8bb;}
#study .gallery-portrait {display:grid; place-items:center; width:86px; height:105px; border:1px solid var(--tone); border-radius:45px 45px 12px 12px; background:#433347; color:var(--tone); font:57px Georgia,serif;}
#study .gallery-person h2 {margin:8px 0 4px; color:#fff3ed; font:500 33px/1.14 Georgia,serif;}
#study .gallery-person h3 {margin:20px 0 5px; color:var(--tone); font-size:23px;}
#study .gallery-person .gallery-context {margin:0; color:#eadad9; font:600 13px/1.45 system-ui,sans-serif;}
#study .gallery-person-body > p:not(.gallery-context) {margin:0 0 22px; font-size:16px;}
#study .gallery-person .other-button {background:transparent; border-color:var(--tone); color:#f8e4d8;}
#study .gallery-person .other-button:hover {background:#634c61; color:#fff5ee;}
#study .gallery-person .other-reveal {background:#503b50; border-color:var(--tone);}
#study .gallery-workshop {padding:clamp(25px,4vw,45px); border:1px solid #9a7b85; border-radius:15px; background:linear-gradient(120deg,#563a50,#3a2a43);}
#study .gallery-work {display:grid; grid-template-columns:80px 1fr; gap:22px; align-items:center; min-height:150px; margin-top:23px; padding:22px; border:1px solid #987b8b; border-radius:12px; background:#362a40;}
#study .gallery-work-mark {color:#f0d4a1; font:58px Georgia,serif; text-align:center;}
#study .gallery-work strong {color:#fff0dd; font:550 clamp(24px,3vw,32px) Georgia,serif;}
#study .gallery-work p {margin:8px 0 0;}
#study .galaxy-section {padding:clamp(25px,4vw,45px); border:1px solid #806687; border-radius:16px; background:radial-gradient(circle at 65% 42%,#4c3b60,#30273f 72%);}
#study .galaxy-path {display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); margin:42px 0 24px;}
#study .galaxy-star {position:relative; display:grid; gap:7px; align-content:start; min-height:170px; padding:0 12px 15px; border:0; border-top:1px solid #ac8eae; background:transparent; color:#f1e5ea; text-align:left; cursor:pointer;}
#study .galaxy-star::before {content:""; position:absolute; top:-6px; left:4px; width:10px; height:10px; border:1px solid #f3d1b3; border-radius:50%; background:#392b46;}
#study .galaxy-star[aria-pressed="true"]::before {background:#f3d1b3; box-shadow:0 0 0 5px rgba(243,209,179,.13);}
#study .galaxy-star span {margin-top:18px; color:#eecda7; font:34px Georgia,serif;}
#study .galaxy-star.tone-violet span {color:#d6b9e9;}.galaxy-star.tone-sage span {color:#c8dabd;}
#study .galaxy-star strong {font:700 15px system-ui,sans-serif;}.galaxy-star small {color:#e2d0e2; font:13px system-ui,sans-serif;}
#study .galaxy-caption {min-height:64px; max-width:850px; margin:0; padding:17px 20px; border-left:3px solid #d7b6c9; background:#47354f;}
#study .gallery-match-grid {display:grid; grid-template-columns:.9fr 1.1fr; gap:28px;}
#study .gallery-match-grid > div {padding:24px; border:1px solid #826f89; border-radius:12px; background:#3d3048;}
#study .gallery-match-answer > p:first-child {margin-top:0; color:#fff1e8; font-size:23px;}
/* Laboratório: controles, tabela viva e a sala dos paradoxos. */
#study .logic-entrance {display:block;}
#study .logic-first {display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px;}
#study .logic-sentence {display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:16px; padding:24px; border:1px solid #8c8a80; border-radius:12px; background:#373541;}
#study .logic-sentence span {color:#f5eddf; font:26px Georgia,serif;}
#study .logic-question {max-width:900px; padding:30px; border:1px solid #88838c; border-radius:15px; background:#37323f;}
#study .logic-question > div:first-child p {margin:18px 0 25px; color:#faf1e7; font:32px Georgia,serif;}
#study .logic-lab {padding:clamp(22px,4vw,42px); border:1px solid #8e8a72; border-radius:16px; background:radial-gradient(circle at 90% 10%,rgba(192,201,130,.11),transparent 40%),#35313d;}
#study .logic-circuit {display:grid; grid-template-columns:minmax(190px,1fr) minmax(145px,.8fr) minmax(220px,1fr); gap:15px; align-items:stretch;}
#study .logic-switch {display:grid; gap:8px; width:100%; padding:18px; border:1px solid #aaa197; border-radius:10px; background:#433c4a; color:#f8eee5; text-align:left; cursor:pointer; font:600 14px/1.4 system-ui,sans-serif; transition:background .2s,transform .2s;}
#study .logic-switch:hover {background:#584c5d; transform:translateY(-2px);}
#study .logic-switch[aria-pressed="true"] {border-color:#e0dca2; background:#554e4c;}
#study .logic-switch strong {color:#f3e8b4; font-size:17px;}
#study .logic-switches,#study .logic-operators {display:grid; gap:10px; align-content:start;}
#study .logic-operators {grid-template-columns:repeat(2,minmax(0,1fr));}
#study .logic-operators .other-option {min-width:0; padding:10px;}
#study .logic-operators .other-option[aria-pressed="true"] {background:#655a53; border-color:#e6dcaa; color:#fff8d9;}
#study .logic-output {display:flex; flex-direction:column; justify-content:center; min-height:220px; padding:25px; border:1px solid #a5a287; border-radius:11px; background:#2d303b;}
#study .logic-output > span {color:#f0e8b5; font:32px Georgia,serif;}
#study .logic-output strong,.logic-condition-result strong {color:#d5edbc; font:550 28px Georgia,serif;}
#study .logic-output strong[data-truth="false"],#study .logic-condition-result strong[data-truth="false"] {color:#ffc9b7;}
#study .logic-output p {margin:12px 0 0; font-size:15px;}
#study .other-label {display:grid; gap:8px; max-width:380px; color:#f6e8db; font:650 14px system-ui,sans-serif;}
#study .other-label select {min-height:46px; padding:9px 12px; border:1px solid #ad9bac; border-radius:9px; background:#3a3345; color:#fff6ef; font:16px system-ui,sans-serif;}
#study .logic-table-wrap {display:grid; grid-template-columns:minmax(0,1fr) minmax(200px,.7fr); gap:25px; align-items:center; margin-top:20px; padding:23px; border:1px solid #848287; border-radius:14px; background:#322f3e;}
#study .logic-table table {width:100%; border-collapse:collapse; color:#f8efe6; text-align:center; font:16px system-ui,sans-serif;}
#study .logic-table caption {padding:0 0 15px; color:#e9dda7; font:22px Georgia,serif; text-align:left;}
#study .logic-table th,#study .logic-table td {padding:7px 12px; border-bottom:1px solid #746d7b;}
#study .logic-table th {color:#f1e3e3; font-weight:700;}
#study .logic-table td button {width:100%; min-height:41px; border:1px solid #ada89a; border-radius:6px; background:#4a4351; color:#fff3df; cursor:pointer; font:700 16px system-ui,sans-serif;}
#study .logic-table tr.active td {background:#605166;}
#study .logic-table .logic-table-note {margin:0; padding:20px; border-left:3px solid #d7cf9d; background:#474052;}
#study .logic-negation-machine {max-width:850px; padding:30px; border:1px solid #a78c93; border-radius:13px; background:linear-gradient(110deg,#473647,#333345);}
#study .logic-negation-machine p {min-height:58px; color:#fff0e8; font-size:28px;}
#study .logic-negation-machine .secondary {margin-left:10px;}
#study .logic-negation-machine small {display:block; margin-top:25px; color:#ecdcdf; font:14px/1.55 system-ui,sans-serif;}
#study .logic-conditional-grid {display:grid; grid-template-columns:1fr 1.2fr; gap:18px;}
#study .logic-conditional-grid .other-options {flex-direction:column; align-items:stretch;}
#study .logic-condition-result {min-height:170px; padding:23px; border:1px solid #94927f; border-radius:11px; background:#333342;}
#study .logic-condition-result p {margin:12px 0 0;}
#study .logic-paradox {padding:clamp(28px,5vw,57px); border:1px solid #ad7796; border-radius:16px; background:radial-gradient(circle at 83% 30%,rgba(172,103,149,.21),transparent 38%),linear-gradient(116deg,#493348,#322e42);}
#study .logic-paradox .other-section-heading h2 {font-style:italic;}
/* Arquitetura das ideias: alicerce, etapas de prova e pergunta filosófica. */
#study .thought-entrance {display:block; padding:clamp(25px,4vw,45px); border:1px solid #a4817c; border-radius:16px; background:radial-gradient(circle at 85% 0%,rgba(223,154,110,.15),transparent 42%),#483345;}
#study .thought-entrance .other-section-heading {max-width:930px;}
#study .structure-section {padding:clamp(25px,4vw,48px); border:1px solid #9b807f; border-radius:16px; background:#3a3041;}
#study .structure-layout {display:grid; grid-template-columns:1.15fr 1fr; align-items:center; gap:clamp(25px,5vw,70px);}
#study .structure-building {display:flex; flex-direction:column; align-items:center; gap:13px; min-height:335px; justify-content:flex-end; padding:30px 15px 12px; border-radius:12px; background:linear-gradient(180deg,#574057,#322b3e);}
#study .structure-layer {display:flex; justify-content:space-between; align-items:center; gap:15px; width:100%; min-height:75px; padding:14px 20px; border:1px solid #caaca0; border-radius:8px; background:#68505c; color:#fff1e4; font:650 16px/1.35 system-ui,sans-serif; text-align:left; cursor:pointer; transition:transform .25s,background .25s;}
#study .structure-layer:hover {transform:translateY(-3px); background:#765a66;}
#study .structure-layer[aria-pressed="true"] {border-color:#f4d2a8; background:#8a665e; color:#fff8eb;}
#study .structure-layer span {color:#ffdfab; font:27px Georgia,serif;}
#study .layer-roof {width:75%;}.layer-center {width:89%;}.layer-base {width:100%;}
#study .structure-detail {min-height:240px; padding:27px; border-left:3px solid #e5ba8e; background:#513b4e;}
#study .structure-detail h3 {margin:15px 0;}
#study .thought-pairs {display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px;}
#study .thought-card {padding:clamp(22px,3vw,36px); border:1px solid #9e7c82; border-radius:14px; background:#493645;}
#study .thought-card:nth-child(2) {background:#483d44; border-color:#9f9780;}
#study .thought-card .other-section-heading h2 {font-size:clamp(28px,3vw,39px);}
#study .thought-card > p {margin-bottom:24px;}
#study .conjecture-section {padding:clamp(25px,4vw,45px); border:1px solid #a17878; border-radius:16px; background:linear-gradient(117deg,#543947,#393141);}
#study .conjecture-visual {display:flex; flex-wrap:wrap; gap:10px; margin:28px 0;}
#study .conjecture-visual span {display:grid; place-items:center; width:65px; height:70px; border:1px solid #d5a484; border-radius:9px; background:#4a3440; color:#ffe6c4; font:31px Georgia,serif;}
#study .conjecture-visual span:last-child {border-style:dashed;}
#study .conjecture-section > p:last-child {max-width:850px;}
#study .thought-flow {display:flex; align-items:center; justify-content:space-between; gap:12px; padding:28px; border:1px solid #9b847c; border-radius:12px; background:#443543;}
#study .thought-flow span:nth-child(odd) {flex:1; padding:18px; border:1px solid #ab897f; border-radius:9px; background:#5f4852; color:#fff1dd; font:600 18px/1.35 Georgia,serif; text-align:center;}
#study .thought-flow span:nth-child(even) {color:#f5d5a4; font-size:25px;}
#study .proof-section {padding:clamp(25px,4vw,50px); border:1px solid #a88987; border-radius:15px; background:#443446;}
#study .proof-stage {padding:clamp(24px,3vw,40px); border:1px solid #b49989; border-radius:11px; background:#563f4c;}
#study .proof-index {color:#f2d1a5; font:750 12px system-ui,sans-serif; letter-spacing:.16em;}
#study .proof-stage p {min-height:80px; max-width:850px; margin:22px 0; color:#fff0eb; font-size:23px;}
#study .proof-controls {display:flex; flex-wrap:wrap; gap:10px;}
#study .thought-arrange {margin-top:28px; padding:22px; border:1px solid #937a81; border-radius:10px; background:#392d3e;}
#study .thought-arrange h3 {margin:0;}
#study .thought-identity-panel {padding:28px; border:1px solid #987d84; border-radius:11px; background:#453343;}
#study .thought-identity-panel > p:first-child {color:#fff0e7; font-size:23px;}
#study .thought-philosophy {padding:clamp(25px,4vw,48px); border:1px solid #9c867d; border-radius:15px; background:radial-gradient(circle at 84% 25%,rgba(187,160,122,.13),transparent 40%),#413644;}
#study .thought-philosophy .other-reveal {display:block; min-height:64px; max-width:850px;}
@media(max-width:980px){
  #study .other-tasks {grid-template-columns:1fr;}
  #study .other-task h3 {min-height:0;}
  #study .gallery-person {grid-template-columns:1fr;}
  #study .gallery-portrait {width:75px;height:83px;}
  #study .logic-circuit {grid-template-columns:1fr 1fr;}
  #study .logic-output {grid-column:1/-1;min-height:140px;}
}
@media(max-width:720px){
  #study:not([data-lesson="history"]) .study-heading {margin:23px 0 58px;padding:38px 23px 45px;}
  #study:not([data-lesson="history"]) .study-heading::after {font-size:120px; opacity:.55;top:15%;}
  #study:not([data-lesson="history"]) .study-heading h1 {font-size:clamp(39px,9.5vw,58px);}
  #study .other-intro,#study .gallery-match-grid,#study .structure-layout,#study .logic-conditional-grid,#study .logic-table-wrap {grid-template-columns:1fr;}
  #study .gallery-grid,#study .thought-pairs,#study .logic-first {grid-template-columns:1fr;}
  #study .gallery-person {grid-template-columns:74px minmax(0,1fr);gap:14px;padding:20px;}
  #study .gallery-portrait {width:70px;height:80px;font-size:43px;}
  #study .gallery-person h2 {font-size:28px;}
  #study .gallery-orbit {min-height:240px;max-width:420px;width:100%;justify-self:center;}
  #study .galaxy-path {grid-template-columns:1fr;margin-top:25px;padding-left:7px;}
  #study .galaxy-star {grid-template-columns:37px 1fr;grid-template-rows:auto auto;align-items:center;gap:2px 10px;min-height:70px;padding:0 0 18px 18px;border-top:0;border-left:2px solid #ac8eae;}
  #study .galaxy-star::before {top:4px;left:-6px;}
  #study .galaxy-star span {grid-row:1/3; margin:0;}
  #study .galaxy-star small {grid-column:2;}
  #study .logic-circuit {grid-template-columns:1fr;}
  #study .logic-output {grid-column:1;}
  #study .thought-flow {flex-direction:column;align-items:stretch;}
  #study .thought-flow span:nth-child(even) {transform:rotate(90deg);text-align:center;}
  #study .other-nav {flex-direction:column;gap:5px;}
}
@media(max-width:440px){
  #study .gallery-person {grid-template-columns:1fr;}
  #study .other-intro,#study .other-section {margin-bottom:80px;}
  #study .other-option {max-width:100%;}
  #study .gallery-work {grid-template-columns:1fr;}
  #study .logic-negation-machine .secondary {margin:10px 0 0;}
  #study .logic-operators {grid-template-columns:1fr 1fr;}
  #study .logic-table th,#study .logic-table td {padding:6px;}
  #study .logic-table-wrap {padding:14px;}
  #study .structure-layer {font-size:14px;padding:12px;}
}
@media(prefers-reduced-motion:no-preference){
  #study .other-reveal:not([hidden]),#study .other-complete:not([hidden]),#study .gallery-work,#study .structure-detail,#study .logic-output {animation:other-reveal .35s ease;}
  @keyframes other-reveal {from{opacity:.5;transform:translateY(6px)}to{opacity:1;transform:none}}
}
@media(prefers-reduced-motion:reduce){
  #study .other-lesson *,#study .other-lesson *::before,#study .other-lesson *::after {animation:none!important;transition:none!important;scroll-behavior:auto!important;}
  #study .other-lesson :is(.other-option,.other-button,.logic-switch,.structure-layer):hover {transform:none;}
}
