/* DASSN Oral360 Sandbox v0.1.6. All selectors are scoped to the standalone test app. */
.dassn-sandbox-root{margin:0;background:#f7f9fb;color:#092f53;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",Arial,sans-serif}
.sbx-app,.sbx-app *{box-sizing:border-box}
.sbx-app{min-height:100vh}
.sbx-app [hidden]{display:none!important}
.sbx-brand{background:#fff;border-bottom:1px solid #d2dfea;padding:11px 18px}
.sbx-brand-inner{max-width:1500px;margin:0 auto;display:flex;align-items:center;justify-content:space-between;gap:18px}
.sbx-brand-lockup{display:inline-flex;align-items:center;gap:12px;max-width:100%;text-decoration:none;color:#002e62;min-width:0}
.sbx-brand-mark{width:54px;height:54px;flex:0 0 54px;display:grid;place-items:center;background:#f3e6d5;border-radius:50%;color:#0b477b;box-shadow:0 4px 12px #002e6210}
.sbx-brand-mark svg{display:block;width:30px;height:30px}
.sbx-brand-copy{display:flex;flex-direction:column;justify-content:center;gap:0;min-width:0;line-height:1.18}
.sbx-brand-copy strong{display:block;white-space:nowrap;font-family:"PingFang SC","Microsoft YaHei","Noto Sans CJK SC",system-ui,sans-serif;font-size:clamp(23px,2.55vw,35px);font-weight:900;letter-spacing:-.025em;color:#002e62;line-height:1.14}
.sbx-brand-copy small{font-size:clamp(10px,.98vw,13px);font-weight:800;color:#174b77;white-space:nowrap;line-height:1.45;display:block}
.sbx-brand-nav{margin-left:auto;flex:none}.sbx-brand-nav a{color:#0b477b;text-decoration:none;font-weight:800;font-size:14px}
.sbx-shell{max-width:1110px;margin:26px auto;padding:0 17px 70px}
.sbx-heading h1{font-size:clamp(23px,2.3vw,30px);font-weight:750;line-height:1.3;margin:0 0 16px}
.sbx-toolbar,.sbx-top,.sbx-bottom,.sbx-paper-bottom{display:flex;align-items:center;gap:11px;flex-wrap:wrap;padding:13px 16px;background:#fff;border:1px solid #cbdfee;border-radius:16px}
.sbx-toolbar{margin-bottom:18px;min-height:70px}
.sbx-toolbar label{font-weight:700;white-space:nowrap}
.sbx-toolbar select,.sbx-toolbar input{min-width:195px;max-width:100%;width:min(100%,235px);background:#fff;color:#0b4773}
.sbx-toolbar select,.sbx-toolbar input,.sbx-app button{font-family:inherit}
.sbx-toolbar select,.sbx-toolbar input,.sbx-toolbar button,.sbx-top button,.sbx-bottom button,.sbx-paper-top button,.sbx-paper-bottom button,.sbx-edit-toolbar button{padding:8px 13px;border-radius:10px;background:#fff;border:1px solid #bcd3e8;color:#0b4773;cursor:pointer;font-size:14px}
.sbx-toolbar button{background:#0875bb;color:#fff;border-color:#0875bb;font-weight:700}
#sbx-identity{color:#123d60;display:inline-block;font-size:15px;padding:0 5px}
.sbx-error{padding:10px 14px;margin:-5px 0 15px;border:1px solid #d99b9b;border-radius:9px;background:#fff5f5;color:#a12b2b}
.sbx-top{justify-content:space-between;margin-bottom:15px}
.sbx-top>div{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.sbx-bottom{justify-content:space-between;margin-top:14px}
.sbx-app button:disabled{opacity:.45;cursor:not-allowed}
.sbx-app button:focus-visible,.sbx-app input:focus-visible,.sbx-app select:focus-visible{outline:2px solid #076da1;outline-offset:2px}
.sbx-app button:hover:not(:disabled){border-color:#0875bb;background:#eef7ff}
.sbx-toolbar button:hover:not(:disabled){color:#07558c}
.sbx-view{min-height:240px}
.sbx-cover-wrap{width:min(100%,780px);margin:0 auto;position:relative}
.sbx-cover-wrap img{width:100%;height:auto;display:block}
.sbx-cover-open{position:absolute;inset:0;opacity:0;cursor:pointer}
#sbx-directory h2{font-size:24px;margin:17px 0 9px}
#sbx-directory p{margin:0 0 17px;color:#536c83;font-size:14px}
.sbx-dir-wrap{position:relative;width:100%;max-width:1050px;margin:auto;aspect-ratio:3/2;container-type:inline-size}
.sbx-dir-wrap>img{width:100%;height:100%;object-fit:contain;display:block}
/* Continuous opaque masking removes the old printed title text and its row stripes. */
.sbx-dir-mask{position:absolute;z-index:1;pointer-events:none;background:#f9fafc}
.sbx-dir-mask-left{left:30.75%;top:16.7%;width:14.20%;height:74.6%}
.sbx-dir-mask-right{left:72.42%;top:16.2%;width:18.20%;height:75.0%}
.sbx-dir-column{position:absolute;z-index:3;top:0;height:100%;width:13.7%;pointer-events:none}
#sbx-dir-left{left:31.05%}
#sbx-dir-right{left:72.7%;width:17.7%}
.sbx-dir-line{position:absolute;left:0;height:1.45%;width:100%;min-width:0;margin:0;padding:0 1px;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;outline:0!important;font-family:inherit;font-size:clamp(3px,.74cqw,11px);font-weight:650;line-height:1.0;color:#1a2d3b;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;pointer-events:auto;cursor:text;vertical-align:middle;appearance:none;-webkit-appearance:none}
.sbx-dir-line:focus{background:#fff!important;outline:2px solid #087fc2!important;z-index:4;text-overflow:clip;box-shadow:0 2px 8px #0c355537!important}
#sbx-directory-tabs{position:absolute;z-index:4;left:91.5%;top:0;height:100%;width:3.55%}
.sbx-img-tab{position:absolute;left:0;width:100%;height:1.46%;background:transparent;border:0!important;padding:0!important;cursor:pointer;font-size:0!important}
/* Keep underlying rainbow numbers visible. The global button hover rule must NOT paint an opaque background. */
#sbx-directory-tabs .sbx-img-tab,#sbx-directory-tabs .sbx-img-tab:hover:not(:disabled),#sbx-directory-tabs .sbx-img-tab:focus-visible{background:transparent!important;background-color:transparent!important;color:transparent!important;box-shadow:none!important;filter:none!important}
#sbx-directory-tabs .sbx-img-tab:hover,#sbx-directory-tabs .sbx-img-tab:focus-visible{outline:2px solid #074b78!important;outline-offset:1px;z-index:5;border-radius:3px!important}
/* The TAB content, editing controls, save status and navigation share one card. */
.sbx-tab-layout{display:grid;grid-template-columns:minmax(0,1fr) 58px;gap:10px;align-items:start;max-width:100%}
.sbx-paper{min-width:0;background:#fff;border:1px solid #cbddeb;border-radius:22px;padding:28px 30px 24px;min-height:610px;box-shadow:0 12px 30px #0c35550b;display:flex;flex-direction:column}
.sbx-paper-top{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:21px}
#sbx-save-status{font-size:12px;font-weight:650;color:#348062;overflow-wrap:anywhere}
.sbx-paper-tools{display:flex;align-items:center;justify-content:flex-end;gap:7px;flex-wrap:wrap}
.sbx-paper-top button{padding:7px 10px;font-size:12px}
.sbx-kicker{font-size:10px;letter-spacing:1.5px;color:#6b9cbf;font-weight:900;line-height:1.5}
.sbx-tab-title{background:#e1f4fa;border-radius:18px;padding:5px 10px;display:flex;gap:5px;align-items:center;margin:9px 0 13px;min-width:0}
.sbx-tab-title b{white-space:nowrap;font-size:14px;color:#07587b}
.sbx-tab-title input{flex:1;min-width:0;max-width:580px;background:transparent;border:1px solid transparent;padding:2px 3px;border-radius:5px;font-size:14px;font-weight:700;line-height:1.6;color:#085075;outline:none}
.sbx-tab-title input:focus{background:#fff;border-color:#168ccc}
.sbx-paper h2{margin:2px 0 13px;color:#092b55;font-size:clamp(28px,4.5vw,42px);font-weight:900;line-height:1.22}
.sbx-editor-label{font-size:13px;font-weight:750;margin:8px 0 8px;color:#133d5d}
.sbx-edit-toolbar{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 9px}
.sbx-edit-toolbar button{padding:6px 9px;min-width:33px;font-size:13px;background:#fff;border-radius:7px}
#sbx-body{background:#fff;border:1px solid transparent;min-height:260px;outline:0;padding:12px 6px;margin:0;color:#36516b;font-family:inherit;font-size:16px;line-height:1.8;overflow-wrap:anywhere;flex:1}
#sbx-body:empty::before{content:attr(data-placeholder);color:#889db0;pointer-events:none}
#sbx-body:focus{border-color:#e2edf5;border-radius:8px}
#sbx-body ul,#sbx-body ol{padding-left:25px}
#sbx-body p{margin:0 0 12px}
.sbx-paper-bottom{border-width:1px 0 0;border-radius:0;margin-top:22px;padding:15px 0 0;justify-content:space-between;flex-wrap:nowrap}
.sbx-paper-bottom button{white-space:nowrap}
#sbx-rail{background:#fff;border:1px solid #ccdaec;border-radius:12px;display:flex;flex-direction:column;gap:2px;padding:5px;max-height:565px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}
.sbx-rail-button{border:0!important;padding:0!important;border-radius:7px;min-height:29px;font-size:13px;font-weight:800;color:#092f53;cursor:pointer;flex-shrink:0}
/* Do not turn color tabs white while hovering: preserve each tab's inline hue. */
#sbx-rail .sbx-rail-button:hover:not(:disabled),#sbx-rail .sbx-rail-button:focus-visible{background:var(--sbx-tab-fill)!important;background-color:var(--sbx-tab-fill)!important;color:#092f53!important;box-shadow:0 0 0 2px #0c4775!important;filter:saturate(1.08) brightness(.94)}
#sbx-rail .sbx-rail-button[aria-current=page]{outline:3px solid #0c4775!important;outline-offset:-2px}
#sbx-rail .sbx-rail-button[aria-current=page]:hover{filter:none}
#sbx-print-area{display:none}
@media(max-width:790px){.sbx-brand-copy strong{font-size:clamp(17px,3.5vw,27px);white-space:normal}.sbx-brand-copy small{font-size:10px;white-space:normal}.sbx-toolbar{padding:11px}.sbx-paper{padding:22px 18px}}
@media(max-width:650px){.sbx-brand{padding:10px}.sbx-brand-mark{width:40px;height:40px;flex-basis:40px}.sbx-brand-mark svg{width:24px;height:24px}.sbx-brand-lockup{gap:8px}.sbx-brand-copy strong{font-size:clamp(16px,3.6vw,22px)}.sbx-brand-nav a{font-size:12px}.sbx-shell{padding:0 9px 42px;margin:16px auto}.sbx-heading h1{font-size:22px}.sbx-toolbar select,.sbx-toolbar input{min-width:135px;width:min(100%,210px)}.sbx-toolbar label{font-size:13px}.sbx-top{padding:9px}.sbx-top button{padding:7px 9px;font-size:12px}.sbx-tab-layout{grid-template-columns:minmax(0,1fr) 39px;gap:5px}.sbx-paper{min-height:450px;padding:15px 12px}.sbx-paper-top{margin-bottom:12px;justify-content:flex-start}.sbx-paper-tools{gap:4px}.sbx-paper-top button{font-size:11px;padding:6px}.sbx-kicker{font-size:9px;letter-spacing:1px}.sbx-tab-title b{font-size:11px}.sbx-tab-title input{font-size:12px}.sbx-paper h2{font-size:27px}.sbx-editor-label{font-size:12px}.sbx-paper-bottom{gap:5px}.sbx-paper-bottom button{padding:7px 5px;font-size:10px}.sbx-rail-button{font-size:10px;min-height:25px}.sbx-dir-line{font-size:.76cqw}.sbx-bottom{gap:7px;padding:9px}.sbx-bottom button{padding:7px 8px;font-size:11px}}
/* v0.1.6: the print target is a direct child of .sbx-app, outside .sbx-shell. */
@page{size:A4;margin:13mm}
@media print{
 html,body,.dassn-sandbox-root{margin:0!important;padding:0!important;height:auto!important;background:#fff!important;color:#000!important}
 .sbx-app{min-height:0!important;margin:0!important;padding:0!important;background:#fff!important}
 .sbx-brand,.sbx-shell{display:none!important}
 #sbx-print-area{display:block!important;position:static!important;margin:0!important;padding:0!important;color:#111!important;background:#fff!important;visibility:visible!important}
 .sbx-print-page{display:block!important;page-break-after:always;break-after:page;padding:0;font-size:11pt;line-height:1.55;color:#111;overflow-wrap:anywhere}
 .sbx-print-page h1{font-size:22pt;margin:0 0 5mm}
 .sbx-print-page h2{font-size:16pt;margin:8mm 0 4mm;border-bottom:1px solid #d3dbe1;padding-bottom:3mm}
 .sbx-print-page ol{padding-left:8mm;columns:2;column-gap:10mm}
 .sbx-print-page li{break-inside:avoid;margin-bottom:1.5mm}
 .sbx-print-meta{color:#555;font-size:9pt}
 .sbx-print-page img{max-width:100%;height:auto;break-inside:avoid}
 .sbx-print-page:last-child{page-break-after:auto;break-after:auto}
}
