:root{font-family:'Microsoft YaHei',system-ui,sans-serif;color:#223c37;background:#f3f5f4;font-size:16px;line-height:1.65;--green:#15584b;--orange:#ca8955}*{box-sizing:border-box}[hidden]{display:none!important}body{margin:0}header{height:92px;display:flex;align-items:center;justify-content:space-between;padding:14px 30px;background:white;border-bottom:2px solid var(--orange)}.brand{display:flex;gap:14px;align-items:center}.brand img{height:56px;width:56px;object-fit:contain}.brand strong{font-size:21px;display:block}.brand small{color:#637b75;font-size:14px}.tag{font-size:14px;padding:5px 12px;border:1px solid #cfded9;border-radius:20px;color:var(--green)}main{display:grid;grid-template-columns:minmax(280px,.9fr) minmax(350px,1.2fr) minmax(300px,1fr);gap:18px;padding:22px;align-items:start;max-width:1920px;margin:auto}main>section,aside,.login{background:white;border:1px solid #dbe4e0;border-radius:10px;padding:24px}h1{font-size:24px;line-height:1.4;margin:10px 0 25px}h2{font-size:21px;margin:9px 0 20px}h3{font-size:17px;margin:5px 0 10px}.eyebrow{font-size:14px;color:#8c5a32;padding-left:10px;border-left:3px solid var(--orange)}label{display:block;font-weight:600;margin:16px 0 7px}textarea,input,select{font:inherit;width:100%;border:1px solid #c8d5cf;border-radius:6px;padding:12px;color:inherit;background:white}textarea{resize:vertical;min-height:160px}button{font:inherit;border:1px solid #cbd9d2;border-radius:6px;background:white;color:var(--green);padding:10px 15px;cursor:pointer}.primary{width:100%;background:var(--green);color:white;margin-top:20px;border-color:var(--green);display:flex;align-items:center;justify-content:space-between}.primary:hover{background:#0b4438}button:disabled{opacity:.55;cursor:wait}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #ce995f;outline-offset:3px}.muted{font-size:14px;color:#667a73}.privacy{padding-top:18px;border-top:1px solid #e6ece8}.text-button{border:none;padding:0;font-size:14px;margin-top:8px}.login{max-width:440px;margin:70px auto}.login p{color:#627870}.login h1{margin-bottom:12px}.code{display:block;width:100%;text-align:left;margin:8px 0;background:#eff6f2;border-color:#c2d9ce}.code strong{display:block;font-size:20px;letter-spacing:.4px}.code span{font-size:15px}.code.active{border-color:var(--green);box-shadow:inset 3px 0 var(--green)}.candidate{background:#faf6ef;border-color:#dfcfb5}.unit{border-top:1px solid #dce5e0;margin-top:24px;padding-top:20px}.unit p{margin:8px 0}.original{font-size:14px;color:#687b74}.activity{color:#315e50}.question{border-left:3px solid var(--orange);padding:10px 12px;background:#fbf5ec;color:#81582b;font-size:15px}.source{white-space:pre-wrap;font-size:15px;line-height:1.9}.citation{font-size:14px;border-left:3px solid #a4bfb2;background:#f6f8f6;padding:12px;margin:12px 0}.citation small{display:block;color:#6c7d75;margin-top:5px;font-size:13px}details{margin:18px 0}summary{cursor:pointer;font-weight:600}#progress{color:#536c62}#download{margin-top:20px}footer{text-align:center;color:#6e7e77;font-size:13px;padding:20px}aside{position:sticky;top:16px;max-height:calc(100vh - 32px);overflow:auto}@media(max-width:1150px){main{grid-template-columns:1fr 1.2fr}aside{grid-column:1/-1;position:static;max-height:none}}@media(max-width:720px){header{padding:12px 16px;height:80px}.brand strong{font-size:16px}.brand img{width:42px;height:42px}.brand{gap:8px}.tag{display:none}main{display:block;padding:12px}main>section,aside{padding:20px;margin-bottom:14px}.login{margin:35px 16px}h1{font-size:22px}}
.header-actions{display:flex;align-items:center;gap:12px}#dictionaryOpen{background:var(--green);color:white}dialog{width:min(1180px,94vw);max-height:90vh;border:1px solid #c8d5cf;border-radius:10px;padding:24px;color:inherit}dialog::backdrop{background:#14382d66}.dictionary-header{display:flex;align-items:center;justify-content:space-between;gap:16px;border-bottom:2px solid var(--orange);padding-bottom:12px}.dictionary-header h2{margin:0}.dictionary-layout{display:grid;grid-template-columns:minmax(230px,1fr) minmax(360px,2fr);gap:26px}.dictionary-layout>div{min-width:0}#dictionaryList{padding:4px;font-size:14px;height:310px}#dictionaryList option{padding:6px}#dictionaryDetail{padding:22px 10px;max-height:70vh;overflow:auto;min-width:0;overflow-wrap:anywhere}#dictionaryDetail h2{line-height:1.5}#dictionaryDetail button{margin:4px;font-size:14px}@media(max-width:720px){dialog{padding:16px}.dictionary-layout{display:block}#dictionaryList{height:160px}#dictionaryDetail{max-height:none}.header-actions{gap:0}#dictionaryOpen{padding:7px;font-size:14px}.brand strong{font-size:14px}}

.primary-recommendation{border-bottom:1px solid #dce5e0;padding-bottom:18px;margin-bottom:18px}.primary-recommendation .code{border-left:4px solid var(--green)}
.left-column{min-width:0;display:flex;flex-direction:column;gap:18px}.left-column>section{background:#fff;border:1px solid #dbe4e0;border-radius:10px;padding:22px}#scope{height:138px;min-height:110px}.input-panel h1{font-size:21px;margin-bottom:18px}.evidence-panel h2{font-size:19px}.evidence-panel .source,.evidence-panel .citation{font-size:14px}.results-panel>h2{margin-bottom:16px}.recommendation-summary{border:1px solid #b6d0c4;border-left:5px solid var(--green);background:#edf5f0;border-radius:8px;padding:20px 18px}.recommendation-summary>span{font-size:14px;color:#3b6556;font-weight:600}.summary-codes{display:flex;flex-wrap:wrap;align-items:center;gap:5px;margin:12px 0}.summary-codes button{font-size:clamp(22px,1.6vw,30px);font-weight:750;letter-spacing:.2px;border:0;padding:2px;background:transparent;color:#104a3b;white-space:nowrap}.summary-codes button:hover,.summary-codes button.active{background:#d5e8dc}.code-plus{font-size:23px;color:#4a7363}.summary-names{font-size:14px;color:#426357;margin:10px 0 0}.summary-note{font-size:14px;color:#805c31;margin-bottom:0}.summary-empty{font-size:17px;color:#617c70}.results-panel #progress{font-size:14px;line-height:1.6;color:#64766e;margin:16px 0}.results-panel .unit{padding-top:15px;margin-top:18px;font-size:14px;color:#586b62}.results-panel .unit h3{font-size:15px;color:#415b4d}.results-panel .unit .code{display:inline-block;width:auto;padding:5px 8px;margin:4px 4px 4px 0;background:#f7f9f7;border-color:#dce5df}.results-panel .unit .code strong{display:inline;font-size:14px;letter-spacing:0;margin-right:5px}.results-panel .unit .code span{font-size:13px}.results-panel .unit .question{font-size:14px;padding:7px 10px}.materials-panel>h2{font-size:21px}.material-group{border:1px solid #dbe4e0;border-radius:7px;padding:16px;margin-top:16px;background:#fff}.material-group h3{font-size:18px;color:#15584b;margin:0 0 10px}.material-group h3 small{display:block;font-size:14px;font-weight:400;color:#5d7569;margin-top:4px}.material-item{padding:12px 0;border-top:1px solid #e5eae7;font-size:14px}.material-kind{display:block;font-size:12px;color:#8d623b;margin-bottom:4px}.material-item strong{display:block;font-size:15px;color:#314d3e}.material-item p{margin:6px 0;color:#65766e}.material-item p.material-condition{color:#876435}.material-item a,.material-group>a{font-size:13px;color:#346b54}.material-status-label{font-size:13px;font-weight:400;color:#6d7e73;margin:8px 0 0}.material-status-label select{font-size:14px;padding:6px;margin-top:4px}.material-note{font-size:13px;color:#826340;padding-top:10px;border-top:1px solid #e5eae7;margin-bottom:6px}@media(max-width:720px){.left-column{margin-bottom:14px}.summary-codes button{font-size:24px}.left-column>section{padding:20px}}

#guideDialog{width:min(1280px,95vw)}#guideList{max-height:55vh;overflow:auto}#guideList button{display:block;text-align:left;width:100%;margin:6px 0}#guideList small{display:block;font-size:12px;color:#667a73}#guideDetail{max-height:73vh;overflow:auto;padding:20px 5px;min-width:0;overflow-wrap:anywhere}.guide-row{padding:14px 0;border-bottom:1px solid #dbe4e0}.guide-row p{margin:8px 0}.guide-links{border-top:1px solid #dbe4e0;margin-top:12px}.guide-links button{font-size:13px;margin:4px 0;padding:6px 8px;text-align:left}#guideSearchForm button,#guideDirectory{margin-top:10px}@media(max-width:720px){#guideOpen{font-size:13px;padding:6px}.header-actions{gap:6px}#guideDetail{max-height:none}}

.summary-codes button,.material-group h3{color:var(--green)}.history-row{display:block;text-align:left;width:100%;margin:12px 0;overflow-wrap:anywhere}.history-row small{color:#667a73}.login input[readonly]{background:#f3f5f4}.primary:hover{background:var(--green);filter:brightness(.9)}

/* Wide organization logos retain their original aspect ratio. */
.brand img{width:auto;height:auto;max-width:175px;max-height:56px;flex-shrink:0}.brand>div{min-width:0}.recommendation-summary{background:color-mix(in srgb,var(--green) 7%,white);border-color:color-mix(in srgb,var(--green) 30%,white);border-left-color:var(--green)}.summary-codes button:hover,.summary-codes button.active{background:color-mix(in srgb,var(--green) 16%,white)}.eyebrow{color:var(--green)}
@media(max-width:720px){header{height:auto;min-height:80px;flex-wrap:wrap;gap:12px}.brand{max-width:100%}.brand img{max-width:105px;max-height:42px}.brand strong{line-height:1.5}.header-actions{margin-left:auto;gap:8px}.header-actions button{font-size:13px;padding:7px 10px}}

.scope-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:8px}.scope-actions small{font-size:12px;color:#667a73}.scope-actions .primary{width:auto;margin:0;justify-content:center;white-space:nowrap}.waiting-card progress{display:block;width:100%;height:14px;accent-color:var(--green);margin:16px 0}.waiting-card #waitStage{font-size:17px;margin-bottom:10px}.waiting-card #waitTime{margin-bottom:0}
/* Apex demonstration workspace: light surfaces and restrained gold branding. */
body[data-tenant="apex-demo"]{--green:#6e521d;--orange:#c99b42;background:#f6f6f3}
body[data-tenant="apex-demo"] header{border-bottom:2px solid #c9a85f;background:linear-gradient(100deg,#fff,#faf8f1)}
body[data-tenant="apex-demo"] .brand img{max-width:240px;max-height:66px;width:220px;object-fit:contain}
body[data-tenant="apex-demo"] .brand strong{font-size:20px;color:#493e29}
body[data-tenant="apex-demo"] .brand small{color:#817052}
@media(max-width:720px){body[data-tenant="apex-demo"] .brand img{width:108px;max-height:45px}body[data-tenant="apex-demo"] .brand strong{font-size:13px}body[data-tenant="apex-demo"] .brand small{font-size:11px}}
