/* Review Console V2: accessible fallback fonts; no bundled font binaries. */
:root{font-family:system-ui,-apple-system,"Noto Sans Thai",Tahoma,sans-serif}
.ov-app{--ov-ink:#25332d;--ov-border:#dbe5d9;--ov-soft:#f7faf5;--ov-accent:#175e4c;color:var(--ov-ink)}
.ov-nav{display:flex;gap:12px;justify-content:space-between;align-items:center;border-bottom:1px solid var(--ov-border);padding:10px 0}.ov-nav span{font-weight:700}.ov-nav small{font-size:12px;color:#57675c}
.ov-foot{font-size:12px;margin:22px 0;padding:12px;border-top:1px solid var(--ov-border);color:#49594f}
.ov-heading{display:flex;align-items:center;justify-content:space-between;padding:12px 0}.ov-heading h2{font-size:27px;margin:0}.ov-eyebrow{text-transform:uppercase;font-size:12px;letter-spacing:.08em;margin:0;color:#526960}
.ov-controls{display:grid;grid-template-columns:minmax(150px,1.1fr) minmax(160px,1fr) minmax(165px,.8fr);gap:12px}.ov-list-items{display:grid;gap:5px;max-height:65vh;overflow:auto}
button.ov-item{display:flex;width:100%;gap:18px;text-align:left;align-items:start;justify-content:space-between;border-radius:12px;background:white;padding:14px 17px;min-height:68px}.ov-itemnum{white-space:nowrap;font-weight:700;min-width:64px}.ov-itemcopy{flex:1;white-space:normal;overflow-wrap:anywhere;line-height:1.5}.ov-tags{display:block;margin-top:8px}.ov-item:focus-visible,.ov-version:focus-visible,.ov-steps button:focus-visible{outline:3px solid #376e87}
.ov-topline{display:flex;gap:8px;align-items:center;justify-content:space-between;flex-wrap:wrap;padding:12px 0}.ov-topline h2{font-size:19px;margin:0}.ov-topline small{font-size:13px;color:#536458}
.ov-layout{display:grid;grid-template-columns:minmax(300px,.95fr) minmax(0,1.05fr);gap:16px;align-items:start}.ov-source,.ov-main{min-width:0;border:1px solid var(--ov-border);border-radius:16px;background:white;padding:18px}.ov-source{position:sticky;top:12px;max-height:calc(100dvh - 24px);overflow:auto}.ov-source-top{display:flex;gap:5px;align-items:start;justify-content:space-between}.ov-source-top h3{font-size:19px;margin:0;flex:1}.ov-source-top button{padding:4px 10px;min-height:38px;white-space:nowrap}.ov-source-part{padding:12px 0;border-top:1px solid var(--ov-border)}.ov-cap{color:#52675b;font-size:13px;font-weight:700;letter-spacing:.01em;margin-bottom:6px}.ov-content{font-size:var(--ov-source-font,17px);line-height:1.75;white-space:pre-wrap;overflow-wrap:anywhere}.ov-question{font-weight:700;font-size:calc(var(--ov-source-font,17px) + 1px)}.ov-choices{display:grid;gap:8px;padding:12px 0}.ov-choice{display:flex;gap:12px;border:1px solid #e4e9df;padding:10px 12px;border-radius:10px;line-height:1.55}.ov-choice b{color:#366250}.ov-image{border-top:1px solid var(--ov-border);margin-top:14px;padding:10px 0}.ov-image img{max-width:100%;height:auto;cursor:zoom-in;border:1px solid var(--ov-border);border-radius:8px;display:block;margin:10px auto}.ov-source-extra{padding:8px 0;font-size:14px}
.ov-steps{display:flex;gap:5px;flex-wrap:wrap;border-bottom:1px solid var(--ov-border);padding-bottom:9px;margin-bottom:12px}.ov-steps button{min-height:44px;border-radius:9px;padding:8px 9px;font-size:13px}.ov-steps button.current{background:#e1f0e9;color:#174c3b;border-color:#24664d;font-weight:700}.ov-stage-note{display:flex;gap:7px;flex-wrap:wrap;align-items:center;padding:9px 11px;background:var(--ov-soft);border-radius:10px;margin-bottom:10px;font-size:14px}.ov-stage-note span:nth-child(2){flex:1}.ov-units{display:flex;flex-wrap:wrap;gap:7px;padding:10px 0}.ov-units button{font-size:13px;min-height:39px}.ov-units button.current{background:#175e4c;color:white;border-color:#175e4c}
.ov-unit-card{border-top:1px solid var(--ov-border);padding-top:10px}.ov-unit-card>h3{font-size:20px;margin:5px 0 9px}.ov-unit-card h4{font-size:16px;margin:18px 0 8px}.ov-meta{font-size:14px;padding:10px 12px;border-radius:10px;background:#f4f7f3;margin:10px 0;line-height:1.6}.ov-version-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(200px,100%),1fr));gap:6px}.ov-version{display:grid;gap:5px;text-align:left;font-size:14px}.ov-version small{font-size:12px;color:#566b61}.ov-version[aria-pressed=true]{background:#e1f0e9;border:2px solid #27654d}.ov-selected{margin:12px 0;padding:14px;border:1px solid var(--ov-border);border-radius:11px}.ov-selected-top{display:flex;justify-content:space-between;align-items:center}.ov-selected h4{margin:2px 0 10px}.ov-snapshot{max-height:450px;overflow:auto;padding:10px 12px;background:#f8faf7;border-radius:9px}.ov-prop{padding:8px 0;border-bottom:1px solid var(--ov-border)}.ov-prop b{font-size:13px;color:#576c5d}.ov-prop .ov-content{font-size:15px}.ov-events{margin:11px 0;padding:10px;border:1px solid var(--ov-border);border-radius:10px}.ov-event{border-top:1px dashed #d6ddd5;padding:12px 0;font-size:14px}.ov-event p{margin:6px 0}.ov-event:first-of-type{border-top:none}.ov-approval{border-top:2px solid #cbdcd1;padding-top:12px;margin-top:18px}.ov-approval label{font-size:14px}.ov-approval textarea{min-height:70px}.ov-action-buttons{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:14px 0}.ov-action-buttons button{min-width:0}.ov-caution{background:#fff3d6;border-left:3px solid #bc7700;padding:9px 12px;font-size:14px}.ov-local-edit{padding:12px;background:var(--ov-soft);margin:12px 0;border-radius:10px}.ov-local-edit textarea{min-height:170px}.ov-zoom{max-width:95vw;width:95vw}.ov-zoom img{max-width:100%;height:auto;display:block;margin:10px auto}.ov-foot,.ov-meta,.ov-version{overflow-wrap:anywhere}
@media(max-width:1050px){.ov-layout{grid-template-columns:minmax(0,1fr)}.ov-source{position:static;max-height:none}.ov-main{margin-top:0}}
@media(min-width:750px) and (max-width:1050px){.ov-source{max-height:52dvh;overflow:auto}}
@media(max-width:650px){.ov-controls{grid-template-columns:1fr;gap:5px}.ov-heading h2{font-size:22px}.ov-layout{gap:9px}.ov-source,.ov-main{padding:11px}.ov-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}.ov-steps button{padding:8px 3px;font-size:12px;line-height:1.35}.ov-topline{display:grid;grid-template-columns:1fr 1fr}.ov-topline>div{grid-column:1/-1;display:flex;gap:8px}.ov-topline h2{grid-column:1}.ov-topline #ovReturn{grid-column:2}.ov-source{max-height:none}.ov-source-top h3{font-size:17px}.ov-action-buttons{grid-template-columns:1fr 1fr}.ov-unit-card h4{font-size:15px}}
@media(prefers-reduced-motion:reduce){.ov-app *{animation:none!important;transition:none!important}}
@media print{.ov-nav,.ov-foot,button,.ov-approval,.ov-steps{display:none!important}.ov-layout{display:block}.ov-source{max-height:none;overflow:visible;position:static}}

/* V2.2: independent edit-form action row, finger-friendly on tablet and mobile. */
.ov-edit-buttons{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px;margin:14px 0}
.ov-edit-buttons button{min-width:0;min-height:46px;white-space:normal;line-height:1.3}
@media(max-width:650px){.ov-edit-buttons{grid-template-columns:1fr}}

/* V2.3 historical reading: do not use approval gates to hide revisions. */
.ov-history-toggle{display:block;width:100%;margin:16px 0 8px;text-align:left;min-height:48px;border:2px solid #60736b;border-radius:9px;font-weight:700;background:#f5f8f5;color:#183e32}
.ov-old-version{padding:12px;border:1px solid #b2bab5;border-radius:9px;background:#fafafa}
.ov-old-version .ov-version{background:white}
.ov-status-label{font-size:13px;line-height:1.4;color:#3b4b42;font-weight:600}
.ov-trace-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(165px,1fr));gap:6px;margin:10px 0}
.ov-trace-step{padding:9px;border:1px solid #d5ded7;border-radius:8px;font-size:13px;background:#f7faf8;line-height:1.4}
.ov-proof{margin:6px 0;padding:7px 10px;background:#f6f7f6;border:1px solid #d6ded7;border-radius:7px}
.ov-proof summary{cursor:pointer;font-size:14px;font-weight:600}
.ov-proof .ov-content{white-space:pre-wrap;overflow-wrap:anywhere}
.ov-events button[id^=ovLoad],.ov-old-version button[id^=ovLoad]{margin-top:10px;min-height:44px}
.ov-events .ov-event{overflow-wrap:anywhere}
@media(max-width:650px){.ov-trace-grid{grid-template-columns:1fr 1fr}.ov-version-list{grid-template-columns:1fr}}
/* V2.3.3: history is opened per content unit; it does not change Current. */
.ov-unit-history{margin-top:18px;border-top:1px solid #b8c9bf;padding-top:9px}
.ov-history-panel{padding:12px;background:#fbfcfb;border:1px solid var(--ov-border);border-radius:10px}
.ov-hist-group{margin:14px 0}.ov-hist-group h4{margin:10px 0}
.ov-hist-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.ov-hist-actions button{min-height:42px;font-size:13px}
.ov-history-event-group{border-top:1px solid var(--ov-border);margin-top:10px}
.ov-history-panel > button{width:100%;text-align:center;min-height:44px}
.ov-history-panel .ov-meta{display:block;margin:7px 0;font-size:13px}
@media(max-width:650px){.ov-hist-actions{display:grid;grid-template-columns:1fr}.ov-hist-actions button{width:100%}}

/* V2.3.4: touch / legibility minimums on Owner Review Console. */
.ov-app{font-size:16px;line-height:1.65}
.ov-app button,.ov-app select,.ov-app input,.ov-app textarea,.ov-app summary,
.ov-app [role="tab"],.ov-app .ov-steps button,.ov-app .ov-units button,
.ov-app .ov-hist-actions button,.ov-app .ov-source-top button,
.ov-app .ov-action-buttons button,.ov-app .ov-edit-buttons button{
 min-height:44px;font-size:max(14px,1rem);line-height:1.4;
}
.ov-app small,.ov-app .ov-nav small,.ov-app .ov-status-label,
.ov-app .ov-version small,.ov-app .ov-trace-step,.ov-app .ov-eyebrow,
.ov-app .ov-foot,.ov-app .ov-cap,.ov-app .ov-topline small,
.ov-app .ov-prop b,.ov-app .ov-proof summary,.ov-app .ov-meta,
.ov-app .ov-history-panel .ov-meta{
 font-size:14px;line-height:1.5;
}
.ov-app label,.ov-app .muted{font-size:max(14px,1rem)}
@media(max-width:650px){
 .ov-app .ov-steps button,.ov-app .ov-units button,.ov-app .ov-hist-actions button{font-size:14px;min-height:44px;padding:10px 6px}
 .ov-app .ov-source-top button{min-height:44px;font-size:14px}
}
.ov-app .badge,.ov-app .ov-app-caption{font-size:14px;line-height:1.45}
