:root{font-family:Inter,"Noto Sans TC","Microsoft JhengHei",system-ui,sans-serif;color:#26344b;background:#f3f6fb;font-size:14px;--blue:#285fcd;--muted:#7a879c;--line:#e4eaf2}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,textarea,select{outline-offset:4px}button{cursor:pointer;border:1px solid var(--line);border-radius:8px;padding:10px 16px;background:white;color:#3e4d63;font-weight:550}button:hover{background:#f1f5fd;border-color:#c5d4ee}button:disabled{cursor:not-allowed;opacity:.48}.primary{color:white;background:var(--blue);border-color:var(--blue)}.primary:hover{background:#1b50b7}.quiet{border-color:transparent;background:transparent}.danger{color:#b04444}.small{padding:6px 9px;font-size:12px}a{color:var(--blue);text-decoration:none}a:hover{text-decoration:underline}header{height:70px;background:white;border-bottom:1px solid var(--line);display:flex;align-items:center;padding:0 26px;gap:20px}.brand{font-weight:850;font-size:25px;letter-spacing:-1.5px;color:#172e52}.brand span{font-size:12px;letter-spacing:0;margin-left:7px;color:#8d98aa;font-weight:400}.product{border-left:1px solid var(--line);padding-left:20px;line-height:1.4}.product strong{font-size:15px}.product small{display:block;color:var(--muted)}.account{margin-left:auto;display:flex;align-items:center;gap:10px;font-size:12px;color:#778399}.avatar{width:32px;height:32px;border-radius:50%;background:#eaf1ff;color:var(--blue);display:grid;place-items:center;font-weight:700}.layout{display:grid;grid-template-columns:64px 254px minmax(0,1fr);min-height:calc(100vh - 70px)}.rail{background:#fff;border-right:1px solid var(--line);display:flex;align-items:center;padding-top:22px;gap:18px;flex-direction:column}.rail span{display:grid;place-items:center;width:38px;height:38px;border-radius:9px;font-size:20px;color:#8796ac}.rail .active{background:#eaf1ff;color:var(--blue)}aside{background:#fff;border-right:1px solid var(--line);padding:26px 18px}.side-title{font-size:15px;font-weight:700;display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}.search{width:100%;background:#f6f8fb}.project-list{display:grid;gap:7px;margin-top:18px}.project-item{text-align:left;border:0;display:flex;gap:12px;align-items:center;padding:14px 12px;overflow:hidden}.project-item.selected{background:#edf3ff;color:#245cbe}.project-item span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.side-note{color:var(--muted);font-size:12px;line-height:1.8;margin:26px 8px}main{padding:30px 36px 50px;max-width:1600px;width:100%;margin:0 auto}.breadcrumb{font-size:12px;color:#8a96a7;margin-bottom:14px}.page-title{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:24px}h1{font-size:25px;letter-spacing:-.6px;margin:0 0 8px;font-weight:700}h2{font-size:18px;margin:0 0 10px}h3{font-size:15px;margin:0 0 9px}p{line-height:1.8}.subtitle{margin:0;color:#7d8899;font-size:13px}.actions{display:flex;gap:9px;align-items:center;flex-wrap:wrap}.tabs{display:flex;gap:26px;border-bottom:1px solid var(--line);margin-bottom:26px}.tab{border:0;border-radius:0;padding:0 2px 15px;background:transparent;color:#8792a4}.tab.selected{border-bottom:3px solid var(--blue);color:var(--blue)}.steps{display:grid;grid-template-columns:repeat(4,1fr);background:white;border:1px solid var(--line);border-radius:12px;margin-bottom:24px;padding:18px 12px;gap:8px}.step{border:0;background:transparent;display:flex;gap:10px;align-items:center;justify-content:center;font-size:13px}.step b{border-radius:50%;width:27px;height:27px;display:grid;place-items:center;background:#f0f3f8;color:#8793a6;font-size:12px}.step.selected{color:var(--blue)}.step.selected b{background:var(--blue);color:white}.panel{background:white;border:1px solid var(--line);border-radius:12px;padding:25px;margin-bottom:20px;box-shadow:0 2px 3px #15386b03}.panel-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}.eyebrow{font-size:11px;font-weight:650;color:var(--blue);letter-spacing:1.5px;margin-bottom:10px}.grid2{display:grid;grid-template-columns:1fr 1fr;gap:20px}.form-grid{display:grid;gap:18px}label{display:grid;gap:9px;font-size:13px;font-weight:600}input,textarea,select{width:100%;padding:11px 12px;border:1px solid #dfe5ee;background:#fff;border-radius:7px;color:#344158}textarea{resize:vertical;min-height:100px;line-height:1.7}textarea.large{min-height:180px}input:focus,textarea:focus,select:focus{border-color:#7298e4;outline:2px solid #e4edff}input:disabled,textarea:disabled,select:disabled{background:#f8f9fc;color:#68778d}.help{font-size:12px;line-height:1.8;color:#8390a4;font-weight:400}.upload{border:1.5px dashed #c8d6eb;border-radius:10px;text-align:center;padding:25px 20px;background:#fafcff;display:flex;flex-direction:column;align-items:center;gap:8px;font-weight:400;cursor:pointer}.upload:hover{background:#f0f5ff}.upload .icon{font-size:26px;color:#7595c3}.upload input{font-size:12px;border:0;background:transparent;max-width:290px}.file-item{display:flex;gap:9px;align-items:center;padding:13px 0;border-bottom:1px solid #f0f3f7;font-size:12px}.file-item>div{flex:1;overflow-wrap:anywhere}.file-item .actions{flex:0 0 auto}.tag{font-size:11px;background:#edf2fa;color:#6982a8;border-radius:5px;padding:4px 8px;white-space:nowrap;display:inline-block}.tag.blue{background:#eaf2ff;color:#316bca}.tag.green{background:#e8f6ef;color:#2b8b63}.tag.amber{background:#fff3dd;color:#ab751c}.tag.red{background:#fff0ef;color:#be514c}.banner{border-radius:9px;padding:13px 16px;background:#edf4ff;color:#426693;font-size:12px;line-height:1.8;margin-bottom:18px}.banner.warn{background:#fff7e8;color:#956b29}.banner.error{background:#fff0f0;color:#a34949}.bottom-bar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding-top:7px}.empty{text-align:center;padding:55px 20px;color:#8895a9}.empty .icon{font-size:34px;color:#8ba5ce;margin-bottom:15px}.empty h2{color:#3b4d66}.empty p{max-width:540px;margin:12px auto 22px}.templates{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}.templates button{font-size:12px;padding:8px 11px;font-weight:400}.rule-line{border:1px solid var(--line);padding:16px;border-radius:9px;margin-bottom:10px}.rule-line p{font-size:13px;margin:10px 0;color:#68768c;white-space:pre-wrap}.rule-line h3{display:inline;margin-right:8px}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-bottom:20px}.stat{padding:20px;background:white;border:1px solid var(--line);border-radius:10px;font-size:12px;color:#8290a5}.stat strong{font-size:28px;display:block;color:#344966;margin-bottom:5px}.stat strong.blue{color:var(--blue)}.result-layout{display:grid;grid-template-columns:minmax(0,1fr) 285px;gap:20px}.finding{background:white;border:1px solid var(--line);border-radius:10px;margin-bottom:12px;overflow:hidden}.finding summary{padding:18px;cursor:pointer;line-height:1.8}.finding summary strong{margin:0 8px}.finding-body{padding:0 20px 20px}.compare-values{display:grid;grid-template-columns:1fr 1fr;gap:15px}.compare-values>div{background:#f7f9fc;padding:14px;border-radius:7px;font-size:13px;white-space:pre-wrap;line-height:1.7}.compare-values small{display:block;color:#8d98ab;margin-bottom:7px}.explanation{font-size:13px;line-height:1.9;white-space:pre-wrap}.sources{display:flex;gap:6px;flex-wrap:wrap}.source{font-size:11px;padding:5px 8px;background:#f1f6ff;color:#3d6db5}.source-row{border:1px solid var(--line);border-radius:6px;padding:12px;margin-bottom:9px}.source-row p{white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px;margin:7px 0}.source-row small{color:#8997aa}.criteria{padding-left:20px;color:#66778e;font-size:13px;line-height:1.9}.criteria li{margin-bottom:12px}.delta{padding:10px 13px;border-radius:7px;background:#eef4ff;font-size:13px;margin-top:14px}.delta strong{font-size:19px;color:var(--blue)}table{border-collapse:collapse;width:100%;font-size:13px}th{text-align:left;font-weight:500;color:#8b96a6;background:#f8fafd}td,th{padding:16px;border-bottom:1px solid var(--line)}.table-scroll{overflow:auto}.table-scroll table{min-width:570px}.history-name{color:#2d5dac;text-align:left;border:0;background:transparent;padding:0}.summary-text{min-height:300px}.footer-note{font-size:12px;color:#9aa5b6;margin-top:24px;line-height:1.8}#toast{position:fixed;right:28px;bottom:28px;max-width:420px;border-radius:9px;padding:16px 20px;background:#243953;color:white;box-shadow:0 8px 32px #1234;z-index:20;display:none;line-height:1.6}#toast.show{display:block}dialog{border:0;border-radius:13px;padding:28px;max-width:850px;width:calc(100% - 40px);max-height:85vh;box-shadow:0 20px 80px #162e5040}dialog::backdrop{background:#16253c70}dialog .dialog-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}dialog .dialog-body{overflow:auto;max-height:60vh}dialog .actions{justify-content:flex-end;margin-top:20px}.login{max-width:440px;margin:12vh auto;padding:35px;background:white;border:1px solid var(--line);border-radius:16px}.login .brand{margin-bottom:25px}.login h1{font-size:22px}.login form{display:grid;gap:20px;margin-top:25px}.loading{padding:70px;text-align:center;color:#8592a7}.hide{display:none!important}.spin{width:28px;height:28px;border:3px solid #dbe7fa;border-top-color:var(--blue);border-radius:50%;animation:spin 1s linear infinite;margin:0 auto 20px}@keyframes spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.spin{animation:none}}@media(max-width:1200px){.layout{grid-template-columns:55px 215px minmax(0,1fr)}main{padding:26px 23px}.result-layout{grid-template-columns:1fr}.result-layout>aside{border:1px solid var(--line);border-radius:10px}}@media(max-width:850px){.layout{grid-template-columns:1fr}.rail{display:none}.layout>aside{padding:15px 20px;border-bottom:1px solid var(--line)}.side-title{margin-bottom:8px}.project-list{display:flex;overflow:auto;margin-top:8px}.project-item{flex-shrink:0;max-width:230px}.side-note{display:none}.layout>aside .search{display:none}.grid2{grid-template-columns:1fr}.page-title{align-items:flex-start;flex-direction:column}header{padding:0 18px}.account .email{display:none}.product{font-size:12px}.steps{padding:12px 4px}.step{flex-direction:column;gap:6px;font-size:11px;padding:4px}.panel{padding:20px}.compare-values{grid-template-columns:1fr}.stats{gap:8px}.stat{padding:15px}.bottom-bar{align-items:flex-start;flex-direction:column}}

/* The two document roles remain in reading order when stacked on small screens. */
.document-pair{align-items:stretch}.document-upload{min-width:0}.document-upload.baseline{border-top:3px solid #285fcd}.document-upload.comparison{border-top:3px solid #259282}.document-upload.comparison .eyebrow{color:#208576}.document-upload .file-item{flex-wrap:wrap}.document-upload .file-item>div:not(.actions){min-width:110px}

/* FST official brand; workspace proportions follow the delivered video. */
:root{font-family:Inter,"Noto Sans TC",sans-serif;background:#f5f7fa;color:#07152f;--muted:#61708a;--line:#e3eaf3}
body{-webkit-font-smoothing:antialiased}
h1,h2,h3{font-family:"Noto Sans TC",Inter,sans-serif}
.brand{flex-shrink:0;letter-spacing:0;line-height:1;display:flex;align-items:center}
.brand img{width:150px;height:auto;max-height:42px;object-fit:contain;filter:brightness(0);opacity:.9}
header{height:76px;position:sticky;top:0;z-index:5;padding:0 28px;gap:24px}
.product{padding-left:24px}.product strong,.product-heading{font-family:Montserrat,Inter,sans-serif}
.product strong{font-size:18px;font-weight:700}.product small{font-size:10px;letter-spacing:2px;margin-top:4px}
.product-heading{font-size:25px;font-weight:700;letter-spacing:-.7px;line-height:1.4}
.product-heading span{font-weight:500;color:#61708a}
.layout{grid-template-columns:244px minmax(0,1fr);min-height:calc(100dvh - 76px)}
.layout>.project-sidebar{position:sticky;top:76px;align-self:start;height:calc(100dvh - 76px);overflow-y:auto;padding:26px 18px;display:flex;flex-direction:column}
.side-title{font-size:17px;margin-bottom:20px}.project-list{display:grid;overflow:visible;margin-top:20px;gap:8px}
.project-item{width:100%;max-width:none;flex-shrink:1;padding:15px 12px;border-radius:8px}
.side-section{display:flex;align-items:center;justify-content:space-between;margin:27px 8px 12px;color:var(--muted);font-size:12px}
.case-list{display:grid;gap:6px}.case-item{border:0;background:transparent;text-align:left;display:flex;align-items:baseline;gap:11px;padding:11px 12px;color:#61708a;font-size:12px;line-height:1.65;min-width:0}
.case-item>span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.case-item.selected{color:var(--blue);background:#eef4ff}.case-number{font-size:11px;font-variant-numeric:tabular-nums;flex-shrink:0}.case-empty{padding:0 12px}
.side-note{display:block;margin:30px 8px 0;padding-top:24px;border-top:1px solid var(--line);font-size:12px}
main{padding:28px 36px 48px;min-width:0}.page-title{align-items:center;flex-direction:row;gap:14px}.page-title .primary{flex-shrink:0}
.login{max-width:440px;margin:12vh auto;padding:36px}.login .brand{margin-bottom:32px}.login .brand img{width:174px;max-height:none}.login h1{font-size:24px;margin-bottom:12px}.login form{margin-top:28px}
.steps{padding:16px 8px}.step{font-size:12px;gap:8px}.templates{justify-content:center}
@media(min-width:701px) and (max-width:1100px){.layout{grid-template-columns:210px minmax(0,1fr)}.layout>.project-sidebar{padding:22px 14px}.layout>.project-sidebar .search{display:block}main{padding:24px 20px}.grid2{grid-template-columns:1fr 1fr;gap:14px}.panel{padding:18px}.document-upload{padding:16px}.document-upload .upload{padding:18px 8px}.document-upload .upload input{min-width:0;max-width:100%;padding:4px}.page-title{align-items:flex-start}.page-title .primary{font-size:11px;padding:10px}.product-heading{font-size:20px}.steps{gap:2px}.step{flex-direction:column;padding:4px;font-size:11px}.tabs{gap:20px}.account .email{display:none}.panel-title{gap:10px}}
@media(max-width:700px){header{height:68px;padding:0 16px;gap:14px}.brand img{width:112px}.product{padding-left:14px}.product strong{font-size:14px}.layout{grid-template-columns:1fr}.layout>.project-sidebar{position:static;height:auto;padding:16px 20px;border-bottom:1px solid var(--line)}.layout>.project-sidebar .search{display:block}.project-list{display:flex;overflow-x:auto;margin-top:12px}.project-item{width:auto;max-width:220px;flex-shrink:0}.side-title{margin-bottom:10px}.side-section{margin:16px 0 6px}.case-list{display:flex;overflow-x:auto}.case-item{flex-shrink:0;max-width:220px}.side-note{display:none}main{padding:24px 18px}.page-title{align-items:flex-start;flex-direction:column}.grid2{grid-template-columns:1fr}.login{margin:7vh 18px;padding:30px;max-width:none}.login .product-heading{font-size:22px}}

/* Approved SK screenshot: slim header, tool rail and bordered project list. */
:root{font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:#edf1f7;color:#0b1830;font-size:14px;--blue:#2d5de2;--muted:#6881a5;--line:#dce3ee}
h1,h2,h3,.product-heading,.product strong{font-family:inherit}
header{height:54px;padding:0 12px;gap:14px;background:#f8fafc;border-bottom:1px solid #dfe6ef;box-shadow:none}
.brand img{width:154px;max-height:34px;filter:none;opacity:1}
.product{display:flex;align-items:center;gap:14px;padding-left:14px;border-color:#ced7e4;min-width:0;color:#19315b;line-height:1.3}
.product>span{font-size:18px;white-space:nowrap}.product strong{font-size:18px;font-weight:400}.product-logo{display:block;width:112px;height:27px;object-fit:contain}.account{gap:10px}.account>button{border-radius:14px;background:#fff;color:#19315b;font-size:13px;font-weight:400}.account>button.quiet{padding:8px;background:transparent}.account svg{width:18px;height:18px;display:block}
.layout{grid-template-columns:94px 338px minmax(0,1fr);gap:0;height:calc(100dvh - 54px);min-height:0;overflow:hidden}
.project-tools{display:flex;flex-direction:column;gap:12px;align-items:center;padding:18px 0;overflow-y:auto;background:transparent}
.project-tools .tool{display:grid;place-items:center;flex-shrink:0;width:49px;height:49px;border-radius:16px;border:1px solid #d7e0ed;background:white;color:#344562;box-shadow:0 1px 3px #24385518;padding:12px}
.project-tools .tool svg{width:19px;height:19px}.project-tools .tool.primary{background:#2d5de2;border-color:#2d5de2;color:white}.project-tools .tool.primary svg{width:25px;height:25px}.project-tools .tool.selected{background:#f4f7ff;border-color:#b4c7ff;color:#2862ff;box-shadow:0 0 0 1px #b4c7ff55}.project-tools .tool:hover{border-color:#83a5ef;background:#f4f7ff;color:#285de2}.project-tools .tool.primary:hover{background:#234dc2;color:white}
.layout>.project-sidebar{position:static;display:flex;flex-direction:column;align-self:stretch;height:auto;min-height:0;margin:18px 0 0;padding:0;overflow:hidden;border:1px solid #dce3ee;border-radius:18px 18px 0 0;background:#fff}
.list-tabs{display:flex;gap:22px;align-items:center;padding:0 17px;height:54px;min-height:54px;border-bottom:1px solid #dce3ee}.list-tabs button{font-size:14px;padding:0;border:0;background:transparent;color:#6881a5;font-weight:400}.list-tabs button.selected{font-weight:650;color:#10233f}
.list-search{padding:12px 14px}.list-search .search{display:block!important;border:1px solid #dce3ee;border-radius:11px;background:white;height:43px;font-size:16px;font-weight:300;padding:10px 13px}
.list-overview{display:flex;align-items:center;justify-content:space-between;padding:20px 16px;background:#f5f8ff;border-bottom:1px solid #e0e6f0;color:#285fff;gap:8px}.list-overview strong{font-size:16px;font-weight:500}.list-overview p{font-size:12px;font-weight:300;color:#6881a5;line-height:1.6;margin:3px 0 0}.list-overview>span{font-size:25px;color:#0b1830;font-weight:400}
.list-scope{display:flex;align-items:center;padding:8px 14px;gap:7px;border-bottom:1px solid #e7edf5}.list-scope select{border:0;padding:5px 0;color:#6881a5;font-size:12px;background:transparent}.list-scope button{white-space:nowrap;font-size:11px}
.project-list{display:block;min-height:0;flex:1;overflow-y:auto;overflow-x:hidden;margin:0;scrollbar-width:thin;scrollbar-color:#9ca6b5 transparent}
.project-item{display:flex;align-items:flex-start;gap:11px;width:100%;max-width:none;border:0;border-bottom:1px solid #e9eef6;border-radius:0;background:white;padding:15px 16px;text-align:left;color:#071831}
.project-item.selected{background:#eef4ff;color:#19315b;border-left:3px solid #2d5de2;padding-left:13px}.project-item .project-dot{width:9px;height:9px;flex:0 0 9px;background:#cbd5e1;border-radius:50%;margin-top:9px}.project-item.selected .project-dot{background:#2d5de2}.project-item .project-details{display:flex;flex-direction:column;gap:5px;min-width:0;flex:1;white-space:normal;overflow:hidden}.project-details strong{font-size:16px;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:1.45}.project-details small{font-size:12px;color:#6881a5;font-weight:300;line-height:1.5}.project-details time{font-size:13px;font-weight:300;color:#8aa1c4;margin-top:6px;line-height:1.5}
.project-list .case-item{width:100%;border-radius:0;border-bottom:1px solid #e9eef6;padding:18px 16px;font-size:13px}.project-list .case-empty{padding:14px 16px}
main{max-width:none;min-width:0;height:100%;overflow-y:auto;padding:25px 28px 48px}.workspace-empty{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;color:#6881a5;font-weight:300}.workspace-empty h1{font-size:17px;font-weight:400}.workspace-empty p{max-width:460px}.workspace-empty .icon{font-size:25px}.product-heading{font-size:21px;font-weight:500;letter-spacing:0}.product-heading span{font-weight:400}.panel{box-shadow:none}.login-product-logo{display:block;width:160px;height:auto;margin:0 0 20px}.login .brand img{width:174px;filter:none}
@media(min-width:701px) and (max-width:1200px){.layout{grid-template-columns:70px 260px minmax(0,1fr)}.project-tools .tool{width:45px;height:45px;border-radius:14px}.layout>.project-sidebar{padding:0}.product>span,.product strong{font-size:15px}.product-logo{width:92px;height:24px}.brand img{width:135px}main{padding:22px 20px}.page-title{flex-direction:column;align-items:flex-start}.grid2{grid-template-columns:1fr}.steps{grid-template-columns:repeat(4,1fr)}.project-details strong{font-size:14px}.project-details small{font-size:11px}.project-details time{font-size:12px}}
@media(max-width:700px){header{height:62px;padding:0 10px;gap:9px}.brand img{width:104px}.product{padding-left:9px;gap:7px}.product-logo{width:70px;height:20px}.product>span,.product strong{font-size:12px}.account>button:not(.quiet){display:none}.layout{grid-template-columns:58px 190px minmax(300px,1fr);height:calc(100dvh - 62px);overflow-x:auto}.project-tools{padding:14px 0;gap:10px}.project-tools .tool{width:40px;height:40px;border-radius:12px}.layout>.project-sidebar{margin-top:14px;padding:0}.list-tabs{padding:0 12px;gap:16px}.list-tabs button{font-size:12px}.list-search{padding:10px}.list-search .search{font-size:13px}.list-overview{padding:14px 12px}.list-overview strong{font-size:13px}.list-overview p{font-size:11px}.project-item{padding:13px 10px;gap:8px}.project-item.selected{padding-left:7px}.project-details strong{font-size:13px}.project-details small,.project-details time{font-size:11px}.project-list{display:block;overflow-y:auto}.project-item{width:100%;max-width:none}main{padding:20px 16px}.page-title{flex-direction:column;align-items:flex-start}.grid2{grid-template-columns:1fr}}

.environment-badge{display:inline-flex;align-items:center;flex-shrink:0;border:1px solid #b9c9dd;border-radius:6px;padding:4px 8px;font-size:12px;font-weight:600;white-space:nowrap;color:#315778;background:#eef4fa}.environment-badge.staging{color:#92400e;background:#fff4d6;border-color:#f4c66a}.login .environment-badge{margin-bottom:12px}@media(max-width:700px){header .environment-badge{font-size:10px;padding:3px 5px}.product>span{display:none}}
.tool-spacer{flex:1;min-height:30px}.owner-folder>summary{padding:12px;background:#f5f8ff;font-size:12px;overflow-wrap:anywhere;cursor:pointer}.owner-folder .project-item{padding-left:24px}.rule-folder{margin:14px 0 14px 14px;padding-left:14px;border-left:2px solid #e3eaf4}.rule-folder>summary{padding:10px 0;cursor:pointer;font-weight:600}.rule-folder .rule-folder{margin-left:12px}.rule-line .actions{flex-wrap:wrap;justify-content:flex-end}.dialog-body{max-height:75vh;overflow:auto}.dialog-body small{display:block}.steps{grid-template-columns:repeat(5,minmax(0,1fr))}.step{padding:12px 6px}textarea.summary-text{min-height:320px}details .compare-values{white-space:pre-wrap}.panel-title{flex-wrap:wrap}#output-content{font-family:inherit;line-height:1.8}.rule-line{overflow-wrap:anywhere}#output-format{max-width:340px}#dialog{max-width:min(1000px,92vw)}@media(max-width:900px){.steps{display:flex;overflow-x:auto}.step{min-width:110px}.rule-line .panel-title{display:block}.rule-line .actions{justify-content:flex-start}}
:root{--dashboard-chart:#3155d9}
.dashboard-filter{display:flex;gap:16px;align-items:end;flex-wrap:wrap}.dashboard-filter label{flex:1;min-width:160px}.dashboard-stats{grid-template-columns:repeat(4,minmax(0,1fr))}.usage-chart{width:100%;min-height:150px;display:block}.usage-chart text{font-size:13px;fill:#64748b}.tag-matrix{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:24px}.tag-count{display:flex;justify-content:space-between;gap:16px;padding:8px 0;border-bottom:1px solid #e2e8f0}.topic-row{padding:16px 0;border-bottom:1px solid #e2e8f0}.dashboard-filter+.actions{margin-top:20px}.stat{overflow-wrap:anywhere}@media(max-width:800px){.dashboard-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-filter{align-items:stretch}.usage-chart{min-height:120px}}

/* Login follows the shared KK identity: AKAI first, quiet FST endorsement. */
.auth-shell{height:100dvh;overflow:auto;display:flex;flex-direction:column;justify-content:center;padding:56px 32px 28px;background:#f0f4f8;color:#1d3442}
.auth-card{width:100%;max-width:1040px;margin:0 auto;background:#fff;border-radius:28px;padding:64px;display:grid;grid-template-columns:1.1fr 1fr;gap:76px}
.auth-brand{display:flex;flex-direction:column;align-items:flex-start}.auth-logo{width:220px;max-width:100%;height:auto;object-fit:contain;margin-bottom:44px}.auth-eyebrow{font-size:12px;font-weight:600;letter-spacing:2px;color:#567477;margin:0 0 18px}.auth-caption h1{font-size:34px;line-height:1.5;font-weight:500;letter-spacing:-.6px;margin:0 0 14px}.auth-caption>p:last-child{font-size:14px;color:#6e8089;line-height:1.8;margin:0 0 24px}.auth-brand .environment-badge{margin-top:auto;font-size:11px;font-weight:500}
.auth-input{padding-top:12px;min-width:0}.auth-input h2{font-size:24px;font-weight:500;letter-spacing:-.4px;margin:0 0 10px}.auth-intro{font-size:14px;color:#6e8089;margin:0 0 32px}.auth-input form{display:grid;gap:22px}.auth-input label{font-size:13px;font-weight:500;gap:8px}.auth-input input{font-size:15px;border:1px solid #bbc8cd;border-radius:8px;padding:15px 14px;color:#1d3442}.auth-input input:focus{border-color:#166b6e;outline:2px solid #cde7e4}.auth-input input::placeholder{color:#85939a}.auth-password{position:relative;display:block}.auth-password input{padding-right:70px}.auth-password button{position:absolute;right:8px;top:8px;bottom:8px;border:0;background:transparent;padding:0 10px;color:#166b6e;font-size:13px;min-width:48px}.auth-password button:hover{background:#eff8f7}.auth-actions{display:flex;justify-content:flex-end;margin-top:5px}.auth-actions .primary{background:#166b6e;border-color:#166b6e;border-radius:24px;padding:12px 27px;min-width:112px;font-weight:500}.auth-actions .primary:hover{background:#10595b}.auth-actions span{margin-left:12px}.auth-help{font-size:12px;color:#6e8089;line-height:1.8;margin:0}.auth-footer{width:100%;max-width:1040px;margin:24px auto 0;display:flex;justify-content:space-between;align-items:center;gap:20px;padding:0 16px;color:#6e8089;font-size:12px}.auth-footer img{width:108px;height:auto;max-height:32px;object-fit:contain}
@media(max-width:850px){.auth-card{padding:42px;gap:36px}.auth-caption h1{font-size:28px}.auth-logo{width:180px}}
@media(max-width:620px){.auth-shell{padding:28px 18px;justify-content:flex-start}.auth-card{display:block;border-radius:22px;padding:30px 24px}.auth-logo{width:156px;margin-bottom:25px}.auth-eyebrow{font-size:10px;margin-bottom:12px}.auth-caption h1{font-size:26px}.auth-caption>p:last-child{font-size:13px;margin-bottom:16px}.auth-brand .environment-badge{margin:0 0 8px}.auth-input{padding-top:26px}.auth-input h2{font-size:22px}.auth-intro{font-size:13px;margin-bottom:24px}.auth-footer{padding:0 4px;align-items:flex-start;font-size:11px;gap:16px}.auth-footer span{max-width:210px;line-height:1.7}.auth-footer img{width:82px}.auth-help{font-size:11px}}

.output-preview{padding:20px;border:1px solid var(--line);border-radius:10px;margin:12px 0 18px;background:#fafcfd;overflow-wrap:anywhere}.output-preview p{white-space:pre-wrap;margin:8px 0;min-height:8px}.output-preview th{background:#e8f1f2;color:#1d3442}.output-preview td,.output-preview th{border:1px solid #ccd8de;white-space:pre-wrap;vertical-align:top}.output-preview table{background:#fff}.output-preview h3{margin-top:16px}

.host-main{max-width:1280px;margin:0 auto;padding:32px 28px}.host-main small{display:block}.host-main .stats{margin-bottom:24px}.host-main #policy-preview{margin-top:16px;color:#3155d9}.host-main table button{margin:3px}.host-main input[readonly]{font-family:monospace}@media(max-width:720px){.host-main{padding:20px 12px}}

.host-header{height:auto;min-height:70px;flex-wrap:wrap;padding-top:12px;padding-bottom:12px}.host-header .account{display:flex}.host-header>strong{white-space:nowrap}.host-header .environment-badge{margin:0}@media(max-width:720px){.host-header{padding:12px;gap:10px}.host-header .brand img{width:95px}.host-header .account{flex-basis:100%;margin:0;justify-content:flex-end;gap:6px}.host-header .account button{font-size:12px;padding:8px 10px}.host-header .environment-badge{white-space:normal}.host-main .stats{grid-template-columns:repeat(2,minmax(0,1fr))}}

.host-header .account>button:not(.quiet){display:inline-flex;align-items:center}
.report-editor{min-height:460px;font-family:inherit;line-height:1.8}.report-preview{margin-top:24px}.report-preview>summary{cursor:pointer;font-weight:650}.reviewed-report{white-space:pre-wrap;overflow-wrap:anywhere;font-family:inherit;font-size:13px;max-height:320px;overflow:auto}.panel .actions>label{margin:0;min-width:150px}
/* BU membership directory */
.bu-member-tools{display:grid;grid-template-columns:minmax(200px,1fr) 200px;gap:16px;margin-top:16px}.bu-member-list{max-height:380px;overflow:auto;border:1px solid var(--line);border-radius:8px}.bu-member-table{margin:0;width:100%;min-width:700px}.bu-member-table thead{position:sticky;top:0;z-index:1;background:#edf4f7}.bu-member-table th{background:#edf4f7;white-space:nowrap}.bu-member-table td{vertical-align:top;overflow-wrap:anywhere}.bu-member-table td:nth-child(2){min-width:220px}.bu-member-table td:nth-child(4){min-width:150px}.bu-member-table input{width:18px;height:18px;min-height:18px;accent-color:#166b6e}.bu-member-table small{margin-top:5px;color:#627482}.bu-member-list [hidden]{display:none!important}#bu-member-empty{padding:16px}#bu-member-count{font-size:13px;color:#526477}@media(max-width:650px){.bu-member-tools{grid-template-columns:1fr}.bu-member-list{max-height:45vh}}
/* V3 production workflow and collaboration */
.check{display:inline-flex;align-items:center;gap:8px;font-weight:400;margin:6px 12px 6px 0}.check input{width:auto;min-height:18px}.production-setup{border:0;padding:0;min-width:0;margin:0}fieldset:not(.production-setup){border:1px solid var(--line);border-radius:8px;padding:14px;margin:14px 0}legend{padding:0 6px;font-weight:650}.decision-table{min-width:680px}.decision-table td{vertical-align:top}.decision-table td:nth-child(2){width:48%;white-space:pre-wrap;overflow-wrap:anywhere}.decision-table p{font-size:12px;margin:7px 0}.decision-table tr.chosen{background:#f0f7ff}.finding-pick{display:flex;color:#285fcd}.panel h3{margin-top:20px}.panel>.actions{margin-top:18px}header .account button{white-space:nowrap;flex-shrink:0}.steps{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));overflow:visible}.step{min-width:0;white-space:normal}.step b{flex-shrink:0}@media(max-width:1000px){header{height:auto;min-height:62px;flex-wrap:wrap;padding:10px;gap:8px}.account{margin-left:auto}.layout{height:calc(100dvh - 100px)}.steps{display:grid;gap:3px}.step{font-size:10px;padding:8px 1px;flex-direction:column;gap:6px}.page-title>.actions{flex-wrap:wrap}header .product>span{display:none}}@media(max-width:700px){.layout{grid-template-columns:48px 160px minmax(280px,1fr)}header .brand img{width:85px}header .product-logo{width:65px}header .environment-badge{font-size:9px}.decision-table{min-width:620px}}

.host-control-nav .actions{flex-wrap:wrap;gap:12px;margin:14px 0}.host-control-nav strong{font-size:19px}#host-ai-control,#host-workspace-control{scroll-margin-top:110px}#host-workspace-control td:last-child button{margin:4px 4px 4px 0}

/* Personal workspace splitters: layout changes never modify business data. */
.layout>main{container-type:inline-size}.layout-toolbar{display:flex;align-items:center;justify-content:flex-end;gap:12px;flex-wrap:wrap;color:#6881a5;font-size:12px;margin:0 0 14px}.layout-toolbar button{font-size:12px;padding:5px 10px}.layout-divider{position:relative;flex-shrink:0;touch-action:none;user-select:none;outline-offset:-2px;z-index:2}.layout-divider span{position:absolute;background:#b8c6d2;opacity:.45;border-radius:4px;transition:background .15s,opacity .15s}.layout-divider:hover span,.layout-divider:focus-visible span,.layout-divider.dragging span{background:#849eaf;opacity:1}.layout-divider:focus-visible{outline:2px solid #7895a9}.layout-divider.vertical{width:12px;cursor:col-resize;align-self:stretch;min-height:44px}.layout-divider.vertical span{left:5px;top:12px;bottom:12px;width:1px}.layout-divider.horizontal{height:14px;cursor:row-resize;margin:2px 0 14px;width:100%;clear:both}.layout-divider.horizontal span{top:6px;left:12px;right:12px;height:1px}.sidebar-divider{margin-top:18px}.layout-dragging,.layout-dragging *{user-select:none!important}.layout-drag-x,.layout-drag-x *{cursor:col-resize!important}.layout-drag-y,.layout-drag-y *{cursor:row-resize!important}.layout-resizable{box-sizing:border-box;min-width:0}.layout-resizable+.horizontal{flex-shrink:0}.interactive-columns{display:grid!important;grid-template-columns:minmax(0,var(--layout-left,62%)) 12px minmax(0,1fr)!important;gap:0!important;align-items:start}.interactive-columns>.layout-divider{align-self:stretch}.interactive-columns>*{min-width:0}.interactive-columns>.panel{position:static}.grid2.interactive-columns{--layout-left:50%}.layout-resizable textarea{max-width:100%}.dashboard-stats{grid-template-columns:repeat(auto-fit,minmax(140px,1fr));grid-auto-rows:minmax(90px,1fr)}.stat{min-width:0}.dashboard-stats .stat{display:flex;flex-direction:column;justify-content:center}.result-layout.layout-resizable{margin-bottom:0}.panel.layout-resizable{margin-bottom:0}
@media(min-width:701px){.layout.interactive-workspace{grid-template-columns:94px var(--sidebar-size,338px) 12px minmax(0,1fr)}.layout.interactive-workspace>.project-tools{grid-column:1}.layout.interactive-workspace>.project-sidebar{grid-column:2}.layout.interactive-workspace>.sidebar-divider{grid-column:3}.layout.interactive-workspace>main{grid-column:4}}
@media(min-width:701px) and (max-width:1200px){.layout.interactive-workspace{grid-template-columns:70px var(--sidebar-size,260px) 12px minmax(0,1fr)}}
@media(max-width:700px){.sidebar-divider{display:none}.layout-toolbar{justify-content:flex-start}.layout-divider.horizontal{height:20px}.layout-divider.horizontal span{top:9px}}
@container(max-width:680px){.interactive-columns{display:block!important}.interactive-columns>.layout-divider.vertical{display:none}.grid2:not(.interactive-columns){grid-template-columns:1fr!important}.dashboard-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-filter label{min-width:140px}.decision-table{min-width:580px}.stats:not(.dashboard-stats){grid-template-columns:repeat(auto-fit,minmax(130px,1fr))}.actions{flex-wrap:wrap}}
