:root{--ink:#0c2b55;--muted:#6f8498;--blue:#058fe6;--line:#dce9f3;--bg:#f3f9fd;--red:#ef4054}*{box-sizing:border-box}html{font-family:"Noto Sans JP","Yu Gothic",Meiryo,sans-serif;color:var(--ink);background:var(--bg)}body{margin:0;padding-bottom:88px;background:linear-gradient(#fff 0,#f3f9fd 190px)}button,select,input{font:inherit}.site-header{height:92px;background:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 5vw;border-bottom:1px solid #e8f0f5}.brand{border:0;background:none;display:flex;align-items:center;gap:16px;color:inherit}.brand-logo{display:block;width:260px;line-height:0}.brand-logo img{display:block;width:100%;height:auto;object-fit:contain}.brand-sub{font-weight:900}.main-nav{display:flex;gap:24px}.main-nav button{border:0;background:none;color:#587086;display:grid;gap:4px;justify-items:center;font-weight:800}.main-nav button.is-active{color:#078bdc}.main-nav span{font-size:12px}.app{width:min(1180px,calc(100% - 36px));margin:auto;padding:26px 0 50px}.flow{display:grid;grid-template-columns:repeat(4,1fr);height:58px;margin-bottom:18px}.flow-step{background:#fff;border:1px solid #e2ecf4;display:flex;align-items:center;justify-content:center;gap:10px;color:#9aafbf;font-weight:900}.flow-step:first-child{border-radius:12px 0 0 12px}.flow-step:last-child{border-radius:0 12px 12px 0}.flow-step i{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;background:#b9c9d6;color:#fff;font-style:normal}.flow-step.active{color:#087fd3}.flow-step.active i{background:#078de5}.setup-panel,.question-card,.answer-panel,.result-summary,.simple-panel{background:#fff;border:1px solid var(--line);border-radius:16px;box-shadow:0 9px 28px rgba(31,78,110,.06)}.setup-panel{padding:24px 28px;display:flex;align-items:end;justify-content:space-between;gap:30px}.setup-panel h1{margin:0 0 5px;font-size:25px}.setup-panel p{margin:0;color:var(--muted);font-size:13px}.setup{display:grid;grid-template-columns:240px 180px auto;gap:12px;align-items:end}.field{display:grid;gap:6px}.field span{font-size:11px;font-weight:900;color:#536e84}.field select{height:44px;border:1px solid #cbdde9;border-radius:9px;background:#fff;padding:0 12px}.primary{height:44px;border:0;border-radius:9px;background:linear-gradient(135deg,#078de2,#00a6e9);color:#fff;font-weight:900;padding:0 20px}.session-head{display:flex;align-items:center;justify-content:space-between;margin:20px 4px 10px}.session-head h2{margin:0;font-size:20px}.shuffle{border:1px solid #1599e5;background:#fff;color:#0787d6;border-radius:8px;padding:9px 13px;font-weight:900}.question-list{display:grid;gap:12px}.question-card{padding:20px 24px}.qhead{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:13px}.question-number{background:linear-gradient(135deg,#56b7ec,#149ee6);color:#fff;border-radius:7px;padding:7px 11px;font-weight:950}.chips{display:flex;gap:7px}.chip{padding:4px 9px;border-radius:999px;font-size:11px;font-weight:900}.chip.unit{background:#fff0f2;color:#d94c5e}.chip.diff{background:#eaf8ff;color:#1489bd}.problem-text{font-size:18px;line-height:1.8;font-weight:700;white-space:pre-wrap}.parts{margin:10px 0 0;padding-left:24px}.parts li{padding:4px 0}.answer-panel{margin-top:20px;padding:24px 28px}.answer-title{display:flex;align-items:baseline;justify-content:space-between}.answer-title h2{margin:0}.answer-title p{margin:0;color:var(--muted);font-size:13px}.answer-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:12px;margin:18px 0}.answer-cell{border:1px solid #d9e7f1;border-radius:10px;padding:11px;background:#f9fcfe}.answer-entry{display:grid;grid-template-columns:auto 1fr auto;gap:6px;align-items:center;margin-top:7px}.answer-entry input{width:100%;min-width:0;height:38px;border:1px solid #bfd4e2;border-radius:7px;padding:0 8px;background:#fff}.answer-unit{font-size:12px;font-weight:900}.batch-grade{display:block;min-width:280px;margin:0 auto}.grade-summary{margin-top:16px;padding:10px 13px;border-radius:9px;font-weight:900}.grade-summary.ok{background:#eafaf0;color:#167548}.grade-summary.ng{background:#fff0f2;color:#c93547}.explanation-card{margin-top:12px;padding:18px;background:#f9fcfe;border:1px solid #dceaf3;border-radius:12px}.explanation-card h3{margin:0 0 12px}.explanation-part strong{color:#d93d51}.explanation-part p{line-height:1.75}.figure{margin:16px 0 0;padding:14px;border:1px solid #cfe1ee;border-radius:10px;background:#fff}.figure figcaption{font-weight:950}.math-diagram{width:100%;max-width:640px;height:auto;display:block;margin:8px auto}.math-diagram text{font-size:14px;fill:currentColor}.math-diagram .svg-title{font-size:16px;font-weight:900}.svg-main,.svg-box{fill:none;stroke:currentColor;stroke-width:2}.svg-diff{fill:none;stroke:currentColor;stroke-width:2;stroke-dasharray:6 5}.svg-node{fill:currentColor}.figure-note{font-size:13px;color:#516b80}.difference-table{width:100%;border-collapse:collapse;margin-top:10px}.difference-table th,.difference-table td{border:1px solid #c9d8e4;padding:8px;text-align:center}.result-summary{margin-top:16px;padding:18px 22px}.bottom-actions{position:fixed;left:0;right:0;bottom:0;height:78px;background:#fff;border-top:1px solid #dce8f1;display:flex;align-items:center;justify-content:center;gap:14px;z-index:50}.bottom-actions button{height:52px;min-width:220px;border:1px solid #078ee8;border-radius:9px;background:#fff;color:#0784d2;font-weight:900}.bottom-actions .red{border-color:var(--red);color:var(--red);background:#fff7f8}.modal-backdrop{position:fixed;inset:0;background:rgba(11,35,58,.5);display:grid;place-items:center;z-index:100}.modal{width:min(560px,calc(100% - 30px));background:#fff;border-radius:16px;padding:24px;position:relative}.modal-close{position:absolute;right:15px;top:12px;border:0;background:#eef5f9;border-radius:50%;width:36px;height:36px;font-size:22px}.modal input[type=file]{display:block;margin:20px 0}.simple-panel{padding:34px}.print-sheet{display:none}@media(max-width:900px){.site-header{height:auto;padding:14px 18px;display:block}.main-nav{margin-top:12px;justify-content:space-between;gap:4px}.setup-panel{display:block}.setup{margin-top:18px;grid-template-columns:1fr 1fr}.setup .primary{grid-column:1/-1}.answer-grid{grid-template-columns:repeat(2,1fr)}.bottom-actions button{min-width:0;flex:1}.app{width:calc(100% - 20px)}}@media(max-width:560px){.brand-logo{width:210px}.brand-sub{font-size:11px}.flow-step span{display:none}.setup{grid-template-columns:1fr}.qhead{align-items:flex-start;flex-direction:column}.answer-grid{grid-template-columns:1fr}.answer-title{display:block}.answer-title p{margin-top:6px}.bottom-actions{gap:5px}.bottom-actions button{font-size:11px}.question-card{padding:16px}.problem-text{font-size:16px}}
@media print{body>*{display:none!important}#printRoot{display:block!important}.print-sheet{display:block!important;color:#111;background:#fff;padding:8mm 10mm}.paper-page{page-break-after:always}.paper-page:last-child{page-break-after:auto}.print-head{border-bottom:2px solid #111;margin-bottom:5mm}.print-head h1{font-size:16pt;margin:0 0 2mm}.print-question{break-inside:avoid;border-bottom:1px solid #aaa;padding:3mm 0}.print-question h2{font-size:11pt;margin:0 0 1mm}.print-problem{font-size:10.5pt;line-height:1.55}.print-given-figure{margin:3mm 0;padding:2mm;border:1px solid #777}.print-given-figure .figure-heading,.print-given-figure .figure-note{display:none}.print-given-figure .math-diagram{max-width:125mm;margin:0 auto}.paper-answer-grid{display:grid;grid-template-columns:1fr 1fr;gap:8mm 10mm}.paper-answer-cell{border:1px solid #999;border-radius:5px;padding:4mm;min-height:30mm}.paper-answer-cell h2{margin:0 0 3mm;font-size:12pt}.paper-answer-line{display:grid;grid-template-columns:25px 1fr auto;gap:6px;align-items:end;margin:4mm 0}.write-line{border-bottom:1px solid #222;height:18px}.paper-unit{font-size:10pt}}
/* rewrite11 fixed contract: unit+difficulty only / inline answers / explanation independent */
.setup-panel{align-items:center}.setup{grid-template-columns:minmax(300px,1.45fr) minmax(180px,.8fr) auto;min-width:min(680px,100%)}.field{min-width:0}.field select{width:100%;min-width:0}.question-card{overflow:hidden}.question-answer-row{display:grid;grid-template-columns:minmax(0,1fr) 250px;gap:24px;align-items:start}.question-body{min-width:0}.inline-answer{border-left:1px solid #dce9f3;padding-left:20px;min-width:0}.inline-answer-title{font-size:12px;font-weight:950;color:#5b7489;margin-bottom:8px}.inline-answer .answer-entry{grid-template-columns:auto minmax(0,1fr) auto}.batch-actions{margin-top:20px;padding:20px 24px;background:#fff;border:1px solid var(--line);border-radius:16px;text-align:center}.batch-actions p{margin:0 0 14px;color:var(--muted);font-size:13px}.explanation-card{margin-top:18px;border-top:3px solid #ef4054}.explanation-card h3{color:#c93247}.figure-method{font-size:12px;font-weight:900;color:#597186;margin:3px 0 10px}.area-grid{display:grid;grid-template-columns:auto 1fr;gap:8px 12px;align-items:center;margin-top:10px}.area-bar{height:34px;border:2px solid currentColor;position:relative}.area-fill{height:100%;background:rgba(8,142,229,.10)}
@media(max-width:900px){.setup{min-width:0;grid-template-columns:1fr 1fr}.question-answer-row{grid-template-columns:minmax(0,1fr) 210px}.inline-answer{padding-left:14px}}
@media(max-width:650px){.setup{grid-template-columns:1fr}.question-answer-row{grid-template-columns:1fr}.inline-answer{border-left:0;border-top:1px solid #dce9f3;padding:14px 0 0}.inline-answer .answer-entry{max-width:360px}}
/* CLEAN REWRITE 12: fixed explanation contract and complete required figure coverage */
.question-tools{display:flex;justify-content:flex-end;margin-top:12px}.explain-one{border:1px solid #ef4054;background:#fff;color:#cf3046;border-radius:8px;padding:8px 14px;font-weight:900}.explanation-panel{margin-top:16px;padding:18px;border-radius:14px;background:#f4f7f9;border:1px solid #dce7ef}.explanation-title{font-size:18px;font-weight:950;color:#0c2b55}.explanation-source{margin:5px 0 12px;font-size:12px;font-weight:900;color:#657d90}.explanation-part h4{margin:12px 0 6px}.explanation-step-list{display:flex;flex-direction:column;gap:9px}.explanation-step{display:grid;grid-template-columns:72px minmax(0,1fr);gap:12px;align-items:start;background:#fff;border:1px solid #dfe7f2;border-radius:10px;padding:11px 13px;line-height:1.75}.explanation-step>b{color:#0789ca;font-size:13px}.answer-card{display:grid;grid-template-columns:42px minmax(0,1fr);gap:12px;align-items:center;width:100%;margin:14px 0 0;padding:14px 16px;border:2px solid #d7264f;border-radius:13px;background:#fff1f4;color:#b5123b}.answer-check{display:grid;place-items:center;width:34px;height:34px;border-radius:9px;background:#d7264f;color:#fff;font-size:20px;font-weight:950}.answer-main small{display:block;margin-bottom:2px;font-size:12px;font-weight:900}.answer-main strong{display:block;font-size:24px;font-weight:950;line-height:1.25}.figure-heading{display:flex;justify-content:space-between;gap:12px;align-items:baseline}.figure-heading span{font-size:12px;font-weight:800;color:#597186}.svg-water{fill:rgba(8,142,229,.14);stroke:currentColor;stroke-width:1.5}
@media(max-width:650px){.explanation-step{grid-template-columns:58px minmax(0,1fr);gap:9px}.answer-main strong{font-size:21px}.figure-heading{display:block}.figure-heading span{display:block;margin-top:4px}}
.svg-road{stroke:currentColor;stroke-width:2}.svg-arrow{fill:currentColor;stroke:currentColor;stroke-width:2}.svg-arrow-label,.svg-axis-label,.svg-diff-label{font-weight:800}.svg-diff-label{fill:#c23b4c}
/* build 18: diagram label collision prevention */
.figure{overflow:hidden}.math-diagram{max-width:680px;overflow:visible}.math-diagram text{font-size:13px}.math-diagram .svg-title{font-size:14px}.svg-tree-label{font-size:12px;font-weight:800}.svg-tree-more{font-size:11px}.svg-em{stroke-width:2.5}.figure-note{line-height:1.65;overflow-wrap:anywhere}.figure-heading{flex-wrap:wrap}.figure-heading strong,.figure-heading span{min-width:0}

/* BUILD19: textbook-style mathematical notation */
.math-frac{display:inline-grid;grid-template-rows:auto auto;vertical-align:middle;text-align:center;line-height:1.05;margin:0 .16em;min-width:1.25em;font-variant-numeric:tabular-nums}
.math-frac-num{display:block;padding:0 .16em .08em;border-bottom:1.5px solid currentColor}
.math-frac-den{display:block;padding:.08em .16em 0}
.problem-text .math-frac,.parts .math-frac,.explanation-panel .math-frac,.answer-card .math-frac{font-size:.95em}
@media print{.math-frac-num{border-bottom-width:1.2px}.math-frac{break-inside:avoid}}

/* BUILD22: restored My Page as a first-class view; no generated-count presentation */
.mypage-hero{padding:34px 36px;border-radius:24px;background:linear-gradient(135deg,#fff 0%,#f5fbff 100%);border:1px solid #dce9f2;margin-bottom:22px}.mypage-kicker{font-size:12px;font-weight:900;letter-spacing:.16em;color:#6c8294;margin:0 0 6px}.mypage-hero h1{margin:0 0 8px;font-size:32px}.mypage-hero p:last-child{margin:0;color:#597186;font-weight:700}.mypage-section{padding:28px 30px;border-radius:24px;background:#fff;border:1px solid #e3ebf1}.mypage-section-head{display:flex;justify-content:space-between;gap:18px;align-items:end;margin-bottom:18px}.mypage-section-head h2{margin:0;font-size:24px}.mypage-section-head p{margin:0;color:#6a7e8e;font-weight:700}.mypage-unit-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.mypage-unit-card{appearance:none;text-align:left;border:1px solid #dfe9ef;background:#fff;border-radius:16px;padding:17px 18px;cursor:pointer;display:flex;flex-direction:column;gap:5px;min-height:112px;transition:.15s ease}.mypage-unit-card:hover{transform:translateY(-2px);border-color:#9dc8df;box-shadow:0 8px 22px rgba(38,78,103,.08)}.mypage-unit-no{font-size:12px;font-weight:900;color:#748897}.mypage-unit-card strong{font-size:16px;line-height:1.45}.mypage-unit-action{margin-top:auto;font-size:12px;font-weight:900;color:#1677a7}@media(max-width:900px){.mypage-unit-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:650px){.mypage-hero,.mypage-section{padding:22px 18px}.mypage-unit-grid{grid-template-columns:1fr}.mypage-section-head{display:block}.mypage-section-head p{margin-top:5px}}
/* BUILD23: My Page profile + learning depth + adaptive unit start */
.profile-section{margin-bottom:22px}.profile-grid{display:grid;grid-template-columns:1.2fr repeat(3,1fr) auto;gap:12px;align-items:end}.profile-grid input{height:44px;border:1px solid #cbdde9;border-radius:9px;background:#fff;padding:0 12px;width:100%}.profile-save{white-space:nowrap}.unit-depth{font-size:12px;font-weight:900;color:#536e84;background:#f2f7fa;border-radius:999px;padding:5px 9px;width:max-content}.adaptive-notice{margin:14px 0 4px;padding:12px 16px;border:1px solid #b9ddf1;background:#eef9ff;border-radius:10px;color:#176b94;font-weight:800;font-size:13px}@media(max-width:1000px){.profile-grid{grid-template-columns:1fr 1fr}.profile-save{grid-column:1/-1}}@media(max-width:650px){.profile-grid{grid-template-columns:1fr}}
/* v1.0.1 regression fixes: persistent profile + parent glossary */
.profile-save-wrap{display:grid;gap:5px}.profile-save-status{min-height:16px;font-size:11px;font-weight:900}.profile-save-status.ok{color:#167548}.profile-save-status.ng{color:#c93547}.parent-glossary{margin-top:14px;padding:14px 16px;border:1px solid #d9e7ef;border-radius:12px;background:#fff}.parent-glossary-head{display:flex;justify-content:space-between;gap:12px;align-items:baseline;margin-bottom:10px}.parent-glossary-head strong{font-size:14px}.parent-glossary-head span{font-size:11px;color:#6b8091;font-weight:700}.glossary-buttons{display:flex;flex-wrap:wrap;gap:7px}.glossary-term{border:1px solid #9dcbe3;background:#f2fbff;color:#126e99;border-radius:999px;padding:6px 11px;font-weight:900;cursor:pointer}.glossary-kicker{margin:0;color:#1681b5;font-size:11px;font-weight:900;letter-spacing:.08em}.glossary-modal h3{font-size:26px;margin:5px 0 12px}.glossary-definition,.glossary-note{line-height:1.8}.glossary-note{padding:11px 13px;border-radius:9px;background:#f5f9fc;color:#526c80;font-size:13px}@media(max-width:650px){.parent-glossary-head{display:block}.parent-glossary-head span{display:block;margin-top:3px}}
/* v1.0.3: required-given diagrams are part of the question, not solution hints */
.problem-given-figure{margin-top:18px;background:#fbfdff;border-color:#b9dbef}.problem-given-figure .figure-heading strong{color:#087fc5}.svg-angle{stroke:#ef4054;stroke-width:3;fill:none}.svg-angle-label,.svg-unknown{font-size:18px!important;font-weight:950;fill:#d7264f!important}.svg-line-label,.svg-dimension{font-weight:900}.svg-right-angle{font-size:20px!important;font-weight:900}
/* v1.0 FIX: semantic geometry markers */
.svg-right-angle{stroke:#ef4054;stroke-width:3;fill:none;stroke-linecap:round;stroke-linejoin:round}
.svg-angle{stroke-linecap:round}
/* v1.0 FINAL geometry legibility: actual extension/point labels */
.svg-extension{stroke:#7d91a3;stroke-width:2;stroke-dasharray:7 6}.svg-extension-label{fill:#6b7f90!important;font-size:11px!important;font-weight:800}.svg-point-label{font-size:14px!important;font-weight:950}.svg-right-angle{vector-effect:non-scaling-stroke}.svg-angle{vector-effect:non-scaling-stroke}
.school-setup{align-items:end}.school-target-info{display:flex;flex-direction:column;gap:3px;min-width:220px;padding:10px 12px;border:1px solid #dbe4ea;border-radius:10px;background:#fff}.school-target-info span{font-size:12px;color:#52616b}
/* v1.0.14 My Page completion: target school/course, dashboard and next-action routes */
.mypage-hero-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px}.mypage-hero-actions button{width:auto}.target-school-section{margin-bottom:22px}.target-school-grid{display:grid;grid-template-columns:1fr 1.5fr 1fr auto;gap:12px;align-items:end}.target-save-wrap{display:grid;gap:6px;min-width:170px}.target-class-badge{font-size:12px;font-weight:900;color:#176b94;background:#eef9ff;border:1px solid #b9ddf1;border-radius:999px;padding:6px 10px;text-align:center}.mypage-dashboard-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px;margin-bottom:22px}.dashboard-card h2{margin:0 0 5px}.dashboard-note{margin:0 0 14px;color:#6a7e8e;font-size:13px;font-weight:700}.dashboard-list{display:grid;gap:8px}.dashboard-row{border:1px solid #dfe9ef;background:#fff;border-radius:12px;padding:11px 12px;display:flex;justify-content:space-between;gap:12px;text-align:left}.dashboard-row span{font-size:12px;color:#607789;font-weight:800}.unit-progress{font-size:12px;color:#607789;font-weight:700}.secondary{border:1px solid #b9ccd8;background:#fff;color:#36576b;border-radius:10px;padding:11px 16px;font-weight:900;cursor:pointer}@media(max-width:900px){.target-school-grid{grid-template-columns:1fr 1fr}.target-save-wrap{grid-column:1/-1}.mypage-dashboard-grid{grid-template-columns:1fr}}@media(max-width:650px){.target-school-grid{grid-template-columns:1fr}.dashboard-row{display:grid}.mypage-hero-actions{display:grid}.mypage-hero-actions button{width:100%}}
/* v1.0.15 mypage learning priority */
.today-learning{border:2px solid var(--line,#e7e1d7)}
.today-row strong{font-size:1.02rem}
.today-row span{display:block;margin-top:.25rem}

/* v1.0.27 adaptive next-10 feedback */
.next-daily-panel{margin-top:16px;padding:16px;border:1px solid #d9d9d9;border-radius:14px;background:#fff}.next-daily-panel strong{display:block;font-size:1.05rem;margin-bottom:6px}.next-daily-panel p{margin:0 0 12px;line-height:1.7}
/* v1.0.31 dedicated geometry figures: givens stay visually distinct from solution aids. */
.svg-dimension-line{fill:none;stroke:currentColor;stroke-width:1.5;stroke-dasharray:4 4}.svg-cutout{fill:none;stroke:currentColor;stroke-width:2;stroke-dasharray:7 4}.svg-tick{fill:none;stroke:currentColor;stroke-width:2}.svg-given-label{font-weight:900}.problem-given-figure .svg-dimension-line{stroke-dasharray:4 4}

/* v1.0.32: print paper must remain white, including unused page area. */
@media print{
  @page{size:A4;margin:0}
  html,body,#printRoot,.print-sheet,.paper-page{background:#fff!important}
  html,body{min-height:100%!important}
  #printRoot{min-height:100vh!important}
}

/* v1.0.32: manual photo-grading flow with an actual visible answer-sheet preview. */
.photo-grading-modal{width:min(1040px,calc(100% - 30px));max-height:calc(100vh - 30px);overflow:auto}
.photo-grading-note{margin:0 44px 18px 0;color:#526c80;line-height:1.7}
.photo-grading-layout{display:grid;grid-template-columns:minmax(280px,1fr) minmax(320px,.9fr);gap:20px;align-items:start}
.photo-preview-pane,.photo-entry-pane{min-width:0}
.photo-preview-pane input[type=file]{width:100%;margin:0 0 12px}
.photo-preview-empty,.photo-preview{min-height:300px;border:1px dashed #aac8d9;border-radius:12px;background:#f7fbfd;display:grid;place-items:center;padding:16px;color:#607789;text-align:center}
.photo-preview{display:flex;flex-direction:column;gap:9px}
.photo-preview img{display:block;max-width:100%;max-height:62vh;object-fit:contain;margin:auto;border-radius:8px;background:#fff}
.photo-preview span{font-size:12px;font-weight:800;overflow-wrap:anywhere}
.photo-entry-pane h3{margin:0 0 10px}
.photo-answer-list{display:grid;gap:8px;max-height:58vh;overflow:auto;padding-right:4px}
.photo-answer-card{border:1px solid #dce9f3;border-radius:10px;padding:10px 12px;background:#fbfdff}
.photo-answer-card>strong{display:block;margin-bottom:6px}
.photo-answer-entry{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:6px;align-items:center;margin-top:6px}
.photo-answer-entry input{width:100%;min-width:0;height:38px;border:1px solid #bfd4e2;border-radius:7px;padding:0 8px;background:#fff}
.photo-grading-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:18px}
@media(max-width:700px){
  .photo-grading-modal{width:calc(100% - 20px);max-height:calc(100vh - 20px);padding:20px}
  .photo-grading-layout{grid-template-columns:1fr}
  .photo-preview-empty,.photo-preview{min-height:210px}
  .photo-preview img{max-height:36vh}
  .photo-answer-list{max-height:none}
  .photo-grading-actions{position:sticky;bottom:-20px;background:#fff;padding:12px 0 2px;display:grid;grid-template-columns:1fr 1fr}
  .photo-grading-actions button{width:100%}
}

/* v1.0.33 public QA audit mode: query-only controls, hidden from normal users. */
.audit-mode-banner{max-width:1180px;margin:0 auto 14px;padding:12px 16px;border:2px dashed #6750a4;border-radius:14px;background:#fff;display:flex;gap:10px;align-items:flex-start;flex-wrap:wrap}.audit-mode-banner strong{white-space:nowrap}.audit-stage-status{max-width:1180px;margin:0 auto 12px;padding:9px 14px;border-radius:12px;font-weight:700;background:#eef7ee}.audit-stage-status.ng{background:#fff0f0}
