:root{
  color-scheme:light;
  --navy:#093c63;--navy-deep:#082f51;--teal:#008fbd;--teal-dark:#006b98;
  --ink:#183c54;--muted:#6f8795;--line:#d8e7ed;--bg:#f5f9fb;--white:#fff;
  --soft:#edf8fc;--amber:#a66d1b;--radius:15px;--shadow:0 2px 10px rgba(21,48,53,.035);
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}
*{box-sizing:border-box}
body{margin:0;background:var(--bg);color:var(--ink);font-size:14px;line-height:1.5}
button,input,select,textarea{font:inherit}
button{cursor:pointer}
a{color:inherit;text-decoration:none}
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #51b8a6;outline-offset:3px}
button:disabled{opacity:.48;cursor:not-allowed}
h1,h2,h3,p{margin:0}
h1{font-size:clamp(30px,3.1vw,42px);letter-spacing:-1.6px;line-height:1.15;font-weight:730}
h2{font-size:19px;letter-spacing:-.45px;line-height:1.25}
h3{font-size:18px;letter-spacing:-.4px}
p{color:var(--muted)}
small{font-size:11px}
.app-shell{display:flex;min-height:100vh}
.sidebar{width:252px;flex:0 0 252px;min-height:100vh;background:linear-gradient(180deg,#083b62,#064468 70%,#0a5169);color:#dce9f7;padding:31px 19px 22px;display:flex;flex-direction:column;position:sticky;top:0;height:100vh}
.brand{display:flex;align-items:center;gap:12px;margin:0 10px 51px}
.brand-mark{width:42px;height:42px;background:linear-gradient(145deg,#d6f3e9,#67baa4);border-radius:13px;color:var(--navy);font-size:29px;font-weight:800;display:flex;align-items:center;justify-content:center;letter-spacing:-2px}
.brand strong{display:block;font-size:24px;color:#fff;letter-spacing:-1.15px;line-height:1}
.brand small{display:block;font-size:8px;letter-spacing:1.35px;color:#9cb2b5;font-weight:700;margin-top:7px}
.nav-section-label,.nav-subsection{font-size:10px;color:#829ca2;letter-spacing:1.4px;font-weight:750;padding:0 14px;margin-bottom:13px}
.nav-subsection{margin:30px 0 12px}
nav{display:flex;flex-direction:column;gap:6px}
.nav-link{display:flex;align-items:center;gap:12px;min-height:43px;padding:8px 12px;border-radius:9px;color:#abc4c8;font-weight:560;transition:background .15s}
.nav-link:hover{background:#1a6590;color:#fff}
.nav-link.active{background:#147bb1;color:#f3fcff}
.nav-icon{font-size:20px;line-height:1;width:24px;display:inline-flex;justify-content:center;color:#92bcb8}
.active .nav-icon{color:#d7fff5}
.nav-mini{margin-left:auto;font-size:8px;letter-spacing:1px;color:#b4d2d0}
.sidebar-bottom{margin-top:auto}
.environment{display:flex;align-items:center;gap:10px;padding:15px 11px;margin:10px 0;border:1px solid #30515a;border-radius:12px}
.pulse{width:9px;height:9px;border-radius:50%;background:#6dd8ae;box-shadow:0 0 0 4px #316554;flex-shrink:0}
.environment strong,.profile strong{display:block;color:#e8f1f0;font-weight:650;font-size:12px}
.environment small,.profile small{color:#8eabb0}
.profile{display:flex;align-items:center;gap:10px;padding:16px 8px 0;border-top:1px solid #31505a}
.avatar,.operator-dot{width:35px;height:35px;border-radius:50%;background:#c5ddd7;color:#184848;display:flex;align-items:center;justify-content:center;font-size:11px;font-weight:750;flex-shrink:0}
.main-area{flex:1;min-width:0}
.topbar{height:74px;border-bottom:1px solid var(--line);background:rgba(255,255,255,.85);display:flex;justify-content:space-between;align-items:center;padding:0 clamp(22px,4vw,55px)}
.topbar-context{font-weight:620;color:#4c6168;font-size:13px}
.slash{margin:0 10px;color:#bac6c6}
.topbar-actions{display:flex;align-items:center;gap:18px}
.top-pill{background:#eef4f4;color:#47716f;border-radius:30px;padding:6px 12px;font-size:11px;font-weight:690}
.operator-dot{width:31px;height:31px}
.page{max-width:1590px;padding:41px clamp(22px,4vw,55px) 78px;margin:0 auto}
.eyebrow,.section-kicker{font-size:10px;font-weight:780;letter-spacing:1.75px;color:var(--teal);text-transform:uppercase}
.tiny-line{display:inline-block;width:18px;border-bottom:1px solid #92b6b1;vertical-align:middle;margin:0 9px}
.hero{background:linear-gradient(117deg,#0b5c88,#118ab5 70%,#1f9fba);color:#fff;min-height:255px;border-radius:19px;margin:18px 0 50px;padding:43px 48px;display:flex;align-items:center;position:relative;overflow:hidden}
.hero>div:first-child{position:relative;z-index:1;max-width:670px}
.hero h1{font-size:clamp(33px,3.3vw,48px);margin-bottom:16px}
.teal-dot{color:#8edb52}
.hero p{max-width:575px;color:#e2f5fe;font-size:15px;line-height:1.7}
.hero-caption{display:flex;gap:9px;align-items:center;margin-top:26px;color:#d7f6ff;font-size:11px;letter-spacing:.1px}
.sparkle{font-size:20px}
.hero-decoration{position:absolute;right:0;top:0;bottom:0;width:33%;pointer-events:none;opacity:.85}
.orb{position:absolute;border-radius:50%;border:1px solid rgba(190,235,222,.18)}
.orb-one{width:370px;height:370px;right:-50px;top:-62px}
.orb-two{width:265px;height:265px;right:4px;top:0}
.orb-three{width:160px;height:160px;right:58px;top:52px}
.hero-logo{position:absolute;right:108px;top:48px;font-size:112px;font-weight:800;color:#b0d7cf;opacity:.5;letter-spacing:-12px}
.section-title-row{display:flex;justify-content:space-between;align-items:end;margin-bottom:22px}
.section-title-row h2{font-size:25px;margin-top:5px}
.count-label{font-size:11px;color:#75898c;font-weight:650}
.cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:19px}
.workflow-card{background:var(--white);border:1px solid var(--line);border-radius:15px;min-height:287px;padding:25px;display:flex;flex-direction:column;transition:transform .18s,box-shadow .18s,border-color .18s;box-shadow:var(--shadow)}
.workflow-card:hover{transform:translateY(-3px);box-shadow:0 15px 35px rgba(19,55,55,.09);border-color:#91c5b9}
.card-top{display:flex;justify-content:space-between;align-items:start;margin-bottom:24px}
.workflow-symbol{height:48px;width:48px;border-radius:13px;display:flex;align-items:center;justify-content:center;font-size:26px;font-weight:700}
.symbol-chart{background:#e4f5fc;color:#147ba7}.symbol-filter{background:#eaf0fe;color:#4d75bb}.symbol-shield{background:#eff9e5;color:#4b9946}
.card-index{color:#b5c1c3;font-size:13px;font-weight:690}
.card-category{font-size:10px;font-weight:760;color:var(--teal);text-transform:uppercase;letter-spacing:1.25px}
.workflow-card h3{margin:8px 0 10px}
.workflow-card p{font-size:13px;line-height:1.7;flex:1}
.card-link{font-weight:730;color:var(--teal-dark);margin-top:19px;display:flex;justify-content:space-between}
.bottom-notice{display:flex;gap:13px;margin-top:28px;padding:18px 22px;border:1px solid #dceae5;border-radius:11px;background:#edf5f2}
.bottom-notice p{font-size:12px;line-height:1.6}
.bottom-notice strong{color:var(--ink)}
.notice-icon{color:var(--teal);font-size:20px;flex-shrink:0}
.back-link{display:inline-block;color:var(--teal);font-weight:690;font-size:12px;margin-bottom:24px}
.back-link:hover{text-decoration:underline}
.workflow-head{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:31px}
.workflow-head h1{margin:8px 0 10px;font-size:clamp(30px,2.8vw,39px)}
.workflow-head p{max-width:760px;font-size:14px;line-height:1.7}
.workflow-head-badge{height:67px;width:67px;display:grid;place-items:center;font-size:37px;color:var(--teal);background:#e3f2ed;border-radius:17px;flex-shrink:0}
.steps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border:1px solid var(--line);border-radius:12px;overflow:hidden;background:#fff;margin-bottom:27px}
.steps-three{grid-template-columns:repeat(3,minmax(0,1fr))}
.workflow-head-actions{display:flex;align-items:center;gap:12px;flex-shrink:0}
.step{padding:16px 13px;display:flex;align-items:center;gap:11px;font-size:11px;color:#89999b;border-right:1px solid var(--line);font-weight:650}
.step:last-child{border-right:0}
.step span{color:#a4b6b7;font-size:10px;font-weight:800}
.step-current{color:var(--teal-dark);background:#f0f8f5}
.step-current span{color:var(--teal-dark)}
.workspace-grid{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(320px,.94fr);gap:22px;align-items:start}
.workspace-main{min-width:0;display:flex;flex-direction:column;gap:22px}
.panel,.chat-panel{background:#fff;border:1px solid var(--line);box-shadow:var(--shadow);border-radius:var(--radius)}
.panel{padding:26px}
.panel-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-bottom:22px}
.panel-heading h2{margin:6px 0 8px}
.panel-heading p{font-size:12px;line-height:1.6;max-width:550px}
.status-pill{border-radius:30px;padding:5px 11px;display:inline-flex;align-items:center;font-weight:700;font-size:10px;white-space:nowrap}
.status-pill.neutral{background:#edf1f2;color:#52686f}.status-pill.success{background:#e3f4ea;color:#2a7851}.status-pill.warning{background:#fff0d7;color:#906419}
.upload-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.upload-tile{border:1px dashed #c8d6d7;border-radius:10px;padding:16px;background:#fbfcfc;display:flex;flex-direction:column;min-height:215px;align-items:flex-start;gap:6px}
.upload-tile.has-file{border-style:solid;background:#f4faf7;border-color:#a7cfbc}
.upload-head{width:100%;display:flex;justify-content:space-between;align-items:center;margin-bottom:6px}
.upload-symbol{font-size:22px;color:#6e9b9a}
.required-tag{font-size:9px;text-transform:uppercase;letter-spacing:.5px;color:#9daeb1}
.upload-tile strong{font-size:12px;line-height:1.45}
.upload-tile small{color:#94a4a6;font-size:10px}
.upload-hint,.filename{font-size:11px;color:#7c9394;margin-top:auto;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.filename{color:var(--teal-dark);font-weight:650}
.upload-trigger{display:inline-block;color:#20766d;border:1px solid #a5c8c1;background:white;border-radius:7px;padding:7px 10px;font-size:11px;font-weight:710;cursor:pointer;margin-top:8px}
.upload-trigger:hover{background:#edf6f4}
.form-row{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:22px}
.field-label{display:flex;flex-direction:column;gap:7px;font-size:11px;color:#61777a;font-weight:690}
input[type="month"],select{width:100%;padding:9px 11px;background:white;border:1px solid #d6e1e1;border-radius:8px;color:#36565c;min-width:0}
.subsection-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:15px 0 12px}
.subsection-heading strong{font-size:13px}
.muted{color:#8b9a9e}.small{font-size:11px}
.table-scroll{overflow-x:auto;border:1px solid var(--line);border-radius:9px}
.data-table{border-collapse:collapse;width:100%;font-size:11px;min-width:435px}
.data-table th,.data-table td{padding:10px 13px;text-align:left;border-bottom:1px solid #e9eeee;vertical-align:top}
.data-table th{background:#f7faf9;font-size:10px;color:#7a8d8f;letter-spacing:.4px;font-weight:780}
.data-table tbody tr:last-child td{border-bottom:0}
.data-table td strong{font-weight:650}
.review-line{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:17px 1px;border-bottom:1px solid #edf1f1}
.review-line strong{font-size:12px}
.review-line p{font-size:11px;margin-top:3px}
.review-controls{display:flex;align-items:center;gap:7px;flex-shrink:0}
.review-controls select{width:140px;font-size:11px}
.issues{display:flex;flex-direction:column;gap:8px;margin-top:16px}
.issue,.ready-message,.inline-error{background:#fff8e9;border:1px solid #f2debb;border-radius:8px;padding:10px 12px;color:#836020;font-size:11px;line-height:1.55}
.issue span{font-weight:900;margin-right:6px}
.ready-message{background:#f1f9f3;border-color:#d1e9dc;color:#2d7553}
.ready-message span{font-weight:850;margin-right:6px}
.inline-error{color:#8d342a;background:#fff1ef;border-color:#efcdca;margin-top:12px}
.rule-strip{background:#f3f8f6;border-radius:8px;padding:13px 16px;color:#597477;font-size:11px;line-height:1.7;margin-top:15px}
.rule-strip span{font-size:9px;letter-spacing:1px;font-weight:850;color:var(--teal);margin-right:9px}
.modifications-inline{border-top:1px solid var(--line);margin-top:16px;padding-top:13px}
.modifications-header{display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:12px;color:var(--ink)}
.modifications-header span{font-size:11px;color:var(--muted)}
.modifications-inline>.registry-caption{margin:6px 0 0}
.modifications-list{list-style:none;padding:0;margin:8px 0 0}
.modifications-list>li{border-top:1px solid var(--line)}
.modification-item>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 0;cursor:pointer;font-size:12px;font-weight:650}
.modification-item>summary:focus-visible{outline:2px solid var(--teal-dark);outline-offset:2px}
.modification-item>summary::after{content:"⌄";font-size:16px;color:var(--teal-dark)}
.modification-item[open]>summary::after{content:"⌃"}
.modification-item>.proposal-card{margin:0 0 10px;padding:12px;border-radius:8px}
.workflow-head-actions .btn{flex-shrink:0}
.proposal-card{padding:17px;border:1px solid #dce8e7;border-radius:11px;margin-top:12px}
.proposal-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}
.proposal-heading strong{font-size:12px}
.proposal-card p{font-size:12px;margin:9px 0 11px;line-height:1.55}
.operation{background:#f6f9f9;border-radius:7px;padding:12px;display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.operation span{font-size:9px;font-weight:800;letter-spacing:1px;color:#869a9c}
.operation code{font-size:11px;color:#28766f;font-weight:750}
.operation small{color:#98a7aa;margin-left:auto}
.proposal-footer{display:flex;gap:12px;align-items:end;justify-content:space-between;margin-top:15px;flex-wrap:wrap}
.proposal-footer label{font-size:10px;color:#849697;font-weight:730}
.proposal-footer select{display:block;margin-top:6px;width:178px;font-size:11px}
.proposal-buttons{display:flex;gap:8px}
.btn{display:inline-flex;align-items:center;justify-content:center;text-align:center;border-radius:8px;padding:9px 13px;font-size:11px;font-weight:750;border:1px solid transparent;white-space:nowrap;min-height:35px;transition:background .15s}
.btn-primary{background:var(--teal-dark);color:#fff}
.btn-primary:not(:disabled):hover{background:#0e554f}
.btn-outline{background:#fff;color:#276a66;border-color:#b9d1cd}
.btn-outline:not(:disabled):hover{background:#eef7f4}
.btn-ghost{background:#f4f7f7;color:#637a7a}
.btn-ghost:hover{background:#e9f0f0}
.btn-large{padding:11px 17px;font-size:12px}
.empty-proposals,.empty-state{padding:26px 17px;text-align:center;border:1px dashed #d8e5e4;border-radius:10px;background:#fbfcfc}
.empty-proposals>span,.empty-state>span{display:block;font-size:25px;color:#70a69d;margin-bottom:8px}
.empty-proposals strong,.empty-state strong{display:block;font-size:13px;margin-bottom:7px}
.empty-proposals p,.empty-state p{font-size:11px;max-width:400px;margin:auto;line-height:1.7}
.action-panel{display:flex;justify-content:space-between;align-items:center;gap:15px;background:#f9fcfb}
.action-panel h2{margin:6px 0 8px}
.action-panel p{font-size:11px;max-width:360px}
.run-actions{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end}
.progress-track{height:7px;background:#dce7e5;border-radius:30px;overflow:hidden;margin-top:13px;min-width:200px}
.progress-track div{height:100%;background:#328b7b;transition:width .3s}
.result-banner{display:flex;gap:13px;align-items:center;background:#eef8f3;border:1px solid #cbe7da;border-radius:10px;padding:15px;margin-bottom:16px}
.result-check{background:#ccebd9;color:#277454;width:32px;height:32px;border-radius:50%;display:grid;place-items:center;font-size:17px;flex-shrink:0}
.result-banner strong{font-size:12px}
.result-banner p{font-size:11px;margin-top:4px}
.result-actions{display:flex;gap:9px;margin-top:16px;flex-wrap:wrap}
.history-record{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 0;border-top:1px solid var(--line);flex-wrap:wrap}
.history-record>div:first-child{min-width:200px;flex:1}
.history-record strong{font-size:12px;color:var(--ink)}
.history-record p,.history-record small{display:block;font-size:11px;color:var(--muted);overflow-wrap:anywhere}
.history-record>div:last-child{display:flex;gap:8px;flex-wrap:wrap}
.history-list{display:flex;flex-direction:column;gap:7px}
.history-list>div{display:flex;align-items:center;gap:10px;border:1px solid #e7eeee;border-radius:7px;padding:9px 12px;font-size:11px}
.history-list small{margin-left:auto;color:#94a4a5}
.template-area{border-top:1px solid #e5ebeb;margin-top:23px;padding-top:19px;display:flex;align-items:flex-start;flex-direction:column;gap:9px}
.template-area strong{font-size:12px}.template-area p{font-size:11px;line-height:1.6}
.chat-panel{position:sticky;top:20px;display:flex;flex-direction:column;height:min(775px,calc(100vh - 40px));min-height:560px;overflow:hidden}
.chat-heading{display:flex;align-items:center;gap:10px;padding:17px;border-bottom:1px solid var(--line)}
.chat-brand-icon{height:35px;width:35px;display:grid;place-items:center;background:#e8f5f1;border-radius:10px;color:var(--teal);font-size:24px}
.chat-heading strong{display:block;font-size:12px}.chat-heading small{display:block;color:#96a5a6;margin-top:1px}
.chat-state{margin-left:auto;font-size:10px;font-weight:730;color:#3a8073;background:#e8f4ef;padding:4px 8px;border-radius:20px}
.chat-notice{padding:11px 17px;background:#f7faf9;border-bottom:1px solid #e6eded;font-size:10px;color:#6f8888;line-height:1.55}
.chat-notice strong{color:#3b7771}
.chat-history{padding:19px 14px;display:flex;flex:1;flex-direction:column;gap:18px;overflow-y:auto;min-height:0}
.message{display:flex;gap:10px;align-items:flex-start;font-size:12px}
.message p{padding:12px 13px;border-radius:12px;background:#f3f6f6;color:#3c555b;max-width:calc(100% - 35px);font-size:11px;line-height:1.75;white-space:pre-wrap;overflow-wrap:anywhere}
.message-user{flex-direction:row-reverse}.message-user p{background:#e8f5f0;color:#28675f}
.message-avatar{width:27px;height:27px;border-radius:9px;display:grid;place-items:center;background:#e0f1ec;color:#347e72;font-size:14px;flex-shrink:0}
.message-user .message-avatar{background:#dde8e7;font-size:9px;font-weight:780}
.chat-composer{border-top:1px solid var(--line);padding:15px;background:#fff}
.chat-composer form{border:1px solid #dbe6e4;border-radius:10px;padding:9px}
.chat-composer textarea{width:100%;border:0;resize:vertical;min-height:66px;padding:4px;background:transparent;font-size:11px;color:#27444a}
.chat-composer textarea:focus{outline:none}
.chat-composer form:focus-within{outline:2px solid #b4dad0}
.composer-actions{display:flex;align-items:center;justify-content:space-between;gap:10px;padding-top:6px}
.composer-actions span{font-size:9px;color:#94a7a6}
.composer-actions .btn{padding:7px 13px;min-height:32px}
.chat-disabled{background:#f0f1f1}
.chat-disabled .chat-history{opacity:.56;filter:grayscale(.45)}
.chat-disabled .chat-composer{background:#eaeeed}
.chat-disabled textarea{cursor:not-allowed}
.chat-disabled .chat-state{background:#e1e5e4;color:#728382}
.clean-data-stages{list-style:none;padding:0;margin:12px 0 16px;display:grid;gap:8px}
.clean-data-stages li{display:flex;justify-content:space-between;gap:14px;align-items:center;padding:10px 12px;border:1px solid var(--line);border-radius:8px;background:#fbfcfc;font-size:11px}
.clean-data-stages strong{font-size:12px}
.clean-data-stages span{color:var(--muted)}
.clean-data-stages li.passed{border-color:#c8e1d4;background:#f3faf6}
.clean-data-stages li.active{border-color:#96c2c6;background:#f0f8f9}
.clean-data-findings{border:1px solid var(--line);border-radius:9px;padding:12px;margin:12px 0;font-size:12px}
.clean-data-findings ul{margin:8px 0 0;padding-left:18px}
.clean-data-findings li{margin:6px 0;line-height:1.5}
@media(max-width:560px){.clean-data-stages li{align-items:flex-start;flex-direction:column;gap:3px}}
.processing-note{padding:9px 11px;font-size:11px;color:#687f80;background:#dfe9e6;border-radius:8px;margin-bottom:9px;font-weight:700}
.visually-hidden{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
@media(max-width:1350px){
  .sidebar{width:215px;flex-basis:215px}
  .workspace-grid{grid-template-columns:minmax(0,1fr) minmax(295px,.9fr);gap:16px}
  .upload-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .action-panel{flex-direction:column;align-items:flex-start}
}
@media(max-width:1030px){
  .cards{grid-template-columns:repeat(2,minmax(0,1fr))}
  .workspace-grid{display:flex;flex-direction:column}
  .workspace-main,.chat-panel{width:100%}
  .chat-panel{position:static;height:620px;min-height:0;order:-1}
  .upload-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:730px){
  .workflow-head-actions{flex-direction:column-reverse;align-items:flex-end;gap:7px}
  .workflow-head-actions .btn{white-space:normal}
  .steps.steps-three{grid-template-columns:repeat(3,minmax(0,1fr))}
  .app-shell{display:block}
  .sidebar{position:static;width:100%;height:auto;min-height:auto;padding:12px 15px;display:block}
  .brand{margin:0 0 14px}.brand-mark{height:32px;width:32px;font-size:21px}
  .brand strong{font-size:19px}.brand small{font-size:7px;margin-top:3px}
  .sidebar .nav-section-label,.sidebar .nav-subsection,.sidebar-bottom{display:none}
  nav{flex-direction:row;overflow:auto;gap:6px}
  .nav-link{white-space:nowrap;font-size:11px;min-height:37px;padding:6px 11px}
  .nav-icon{width:auto;font-size:15px}
  .nav-mini{display:none}
  .topbar{height:55px;padding:0 18px}
  .page{padding:29px 18px 55px}
  .hero{margin:13px 0 30px;padding:27px 25px;min-height:230px}
  .hero-decoration{opacity:.24;width:55%}
  .hero h1{font-size:34px}.hero p{font-size:13px}
  .cards{grid-template-columns:1fr}
  .workflow-card{min-height:240px}
  .steps{grid-template-columns:repeat(2,minmax(0,1fr))}
  .step:nth-child(2){border-right:0}.step:nth-child(-n+2){border-bottom:1px solid var(--line)}
  .workflow-head-badge{display:none}
  .upload-grid{grid-template-columns:1fr}
  .upload-tile{min-height:166px}
  .form-row{grid-template-columns:1fr}
  .panel{padding:19px}
  .review-line{align-items:flex-start;flex-direction:column}
  .review-controls{width:100%}
  .chat-panel{height:560px}
  .section-title-row h2{font-size:23px}
  .top-pill{display:none}
}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}

/* Altura blue/cyan/green corporate palette — adapted from public Altura materials. */
.brand-mark{width:44px;height:44px;background:#fff;border-radius:11px;position:relative;display:block;box-shadow:0 1px 5px #072a4833}
.brand-mark .mark-tile{position:absolute;width:14px;height:14px}
.mark-tile.a{background:#009add;top:9px;left:9px}.mark-tile.b{background:#53b847;top:9px;left:23px}
.mark-tile.c{background:#0b72a7;top:23px;left:9px}.mark-tile.d{background:#2e8b53;top:23px;left:23px}
.brand strong{font-size:19px;letter-spacing:1.5px;font-weight:770}
.brand small{font-size:8px;letter-spacing:1.1px}
.nav-folder{border:0;width:100%;text-align:left;background:transparent;font-weight:730;color:#d5edf6;cursor:pointer}
.nav-group{display:flex;flex-direction:column;gap:3px;padding:3px 0 8px 12px;border-left:1px solid #4195b2;margin-left:21px}
.nav-child{font-size:12px;min-height:37px;padding:8px}
.nav-child .nav-icon{font-size:16px}
.nav-chevron{margin-left:auto;color:#d5ebf8;font-size:17px}
.sidebar .nav-subsection{color:#86b9d0}
.hero{background:linear-gradient(115deg,#07517e 0%,#157ba8 58%,#1f9ebf 100%);isolation:isolate}
.hero:after{content:"";position:absolute;right:-5%;bottom:-12%;height:44%;width:65%;opacity:.85;transform:rotate(-19deg);
  background:linear-gradient(to bottom,transparent 0 20%,#17bae8 20% 38%,#90e5f7 38% 47%,#fff 47% 62%,#3cac63 62% 78%,#087ca8 78% 100%);z-index:0}
.hero>div:first-child{z-index:2}
.hero-logo{color:#e4f7fb;opacity:.3;right:45px;top:50px;font-size:66px;font-weight:760;letter-spacing:2px}
.orb{border-color:#d8eff73b}
.recent-empty{display:flex;align-items:center;gap:16px;padding:30px 27px;background:white;border:1px dashed #cddfe7;border-radius:15px}
.recent-empty>span{font-size:30px;color:#51a7ca}.recent-empty strong{display:block;font-size:15px;margin-bottom:4px}
.recent-empty p{font-size:12px}
.custom-section-title{margin:35px 0 18px}
.custom-workflow-cta{background:linear-gradient(110deg,#fff,#f3fbfe);border:1px solid #bfdfec;border-radius:16px;padding:24px 28px;display:flex;align-items:center;gap:21px}
.custom-workflow-cta:hover{border-color:#54b4d4;box-shadow:0 8px 24px #12517c12}
.custom-workflow-cta strong{display:block;font-size:16px;margin-bottom:5px}
.custom-workflow-cta small{font-size:12px;color:#668c9e}
.cta-icon{height:53px;width:53px;border-radius:15px;background:#daf3fc;color:#077fba;display:grid;place-items:center;font-size:30px;font-weight:600;flex-shrink:0}
.cta-arrow{margin-left:auto;color:var(--teal);font-size:25px}
.workflow-actions{margin-top:17px}
.custom-builder .builder-intro{margin:17px 0 25px;max-width:700px;font-size:14px}
.builder-panel{max-width:680px}
.builder-panel form{display:flex;flex-direction:column;gap:19px}
.builder-panel input,.builder-panel textarea{margin-top:5px;padding:12px;border:1px solid var(--line);border-radius:8px;color:var(--ink);resize:vertical}
.builder-warning{font-size:11px;background:#f0f8fc;color:#557e95;border-radius:8px;padding:12px}
.dropzone{border:2px dashed #a9cedd;background:#f6fbfe;border-radius:14px;min-height:212px;padding:24px 20px;display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;gap:10px}
.dropzone.drag-over{background:#e1f5ff;border-color:#168bba;box-shadow:inset 0 0 0 3px #b8eaf8}
.dropzone-symbol{display:grid;place-items:center;width:48px;height:48px;border-radius:13px;background:#dff4fc;color:#167aa9;font-size:30px}
.dropzone strong{font-size:16px}.dropzone p{font-size:12px;max-width:540px}
.detected-files{display:flex;flex-direction:column;gap:9px}
.detected-file{display:flex;gap:12px;align-items:center;border:1px solid var(--line);border-radius:9px;padding:11px 13px;background:#fff}
.detected-file .upload-symbol{font-size:21px}
.file-meta{flex:1;min-width:0}
.file-meta strong{display:block;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.file-meta small{display:block;color:#6e8790;line-height:1.5;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.detected-file select{flex:0 0 215px;font-size:11px}
.detected-file .btn{font-size:19px;min-width:32px;padding:5px}
.single-template-row{grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);align-items:start}
.detected-period{background:#f4f9fc;border-radius:10px;padding:14px;border:1px solid #dfedf2}
.detected-period strong{font-size:12px}
.detected-period p{font-size:11px;margin-top:5px;line-height:1.65}
.template-picker{display:flex;flex-direction:column;align-items:flex-start;gap:8px}
.template-picker .field-label{width:100%}
.template-picker .upload-trigger{margin:0}
/* Five compact editable alias columns fit within the workflow panel on desktop. */
.member-table{width:100%;min-width:0;table-layout:fixed}
.member-table th,.member-table td{padding:8px 5px;overflow-wrap:anywhere}
.member-table th{white-space:normal;line-height:1.35;letter-spacing:0}
.member-table th:nth-child(1){width:25%}
.member-table th:nth-child(2){width:21%}
.member-table th:nth-child(3){width:13%}
.member-table th:nth-child(4){width:19%}
.member-table th:nth-child(5){width:22%}
.member-table input,.member-table select{display:block;width:100%;min-width:0;max-width:100%;padding:7px 5px;border-radius:7px;border:1px solid #d7e6ee;background:white;font-size:11px;color:#254b66;text-overflow:ellipsis}
@media(max-width:700px){.member-table{min-width:580px}}
.registry-caption{font-size:11px;margin-bottom:13px;line-height:1.65}
@media(max-width:740px){
 .hero:after{opacity:.25;width:100%}
 .hero-logo{display:none}
 .detected-file{flex-wrap:wrap}
 .detected-file select{flex:1 0 70%}
 .single-template-row{grid-template-columns:1fr}
 .custom-workflow-cta{padding:17px;gap:13px}
 .custom-workflow-cta strong{font-size:13px}
 .custom-workflow-cta small{font-size:10px}
 .cta-icon{width:41px;height:41px}
 .brand strong{font-size:17px}
}

/* Preflight source evidence and exception-only correction remain compact. */
.recognized-sources{display:flex;flex-direction:column;gap:7px;margin-bottom:16px}
.recognized-source{display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0;border:1px solid var(--line);border-radius:9px;padding:9px 11px}
.recognized-source-meta{flex:1;min-width:0}
.recognized-source strong{font-size:11px;overflow-wrap:anywhere}
.recognized-source p{font-size:10px;overflow-wrap:anywhere}
.recognized-source small{font-size:10px;color:var(--amber)}
.recognized-source .field-label{flex:0 1 180px;min-width:125px;font-size:10px}
.recognized-source select{display:block;width:100%;min-width:0;padding:6px;border-radius:7px;border:1px solid var(--line)}
/* Keep identity column pinned when a narrow device genuinely needs scrolling. */
.member-table th:first-child,
.member-table td:first-child{
  position:sticky;
  left:0;
  z-index:2;
  background:#fff;
  min-width:0;
  box-shadow:3px 0 7px -5px rgba(9,54,86,.3);
}
.member-table th:first-child{
  z-index:3;
  background:#f7faf9;
}
.member-table tbody tr:nth-child(even) td:first-child{background:#fff}
.member-table td:first-child input{min-width:0}
.member-confirmation{display:flex;gap:15px;align-items:center;justify-content:space-between;flex-wrap:wrap;border-top:1px solid var(--line);margin-top:18px;padding-top:18px}
.member-confirmation p{font-size:11px;max-width:560px}
.member-confirmation strong{font-size:12px;display:block;margin-bottom:4px}
.review-findings{display:flex;flex-direction:column;gap:10px;margin-top:14px}
.review-finding{border:1px solid #eccda2;border-radius:9px;background:#fffaf1;padding:13px 15px}
.review-finding.reviewed{border-color:#b8dccd;background:#f5fbf8}
.review-finding strong{display:block;font-size:12px;color:#755022}
.review-finding p{font-size:11px;color:#6e6756;margin:7px 0;line-height:1.55}
.review-finding button{margin-top:6px}
.review-context{font-size:10px;color:#916f42}
.custom-name-input{display:block;max-width:min(600px,100%);width:100%;margin:9px 0 12px;border:1px solid #b9d6e3;border-radius:11px;background:#fff;padding:10px 14px;font-size:clamp(25px,2.6vw,38px);font-weight:750;color:var(--ink);letter-spacing:-1px}
.custom-name-hint{font-size:11px;color:#6e8a96;margin:0 0 14px}
.custom-purpose{display:flex;flex-direction:column;gap:7px;font-size:12px;color:#3c6177;font-weight:700;margin:0 0 21px}
.custom-purpose textarea{border:1px solid var(--line);border-radius:9px;padding:11px 12px;min-height:110px;resize:vertical;font-size:13px;font-weight:400;color:var(--ink)}
.custom-purpose small{font-weight:400;color:#768e98;font-size:11px}
.custom-model-note{font-size:11px;border-radius:8px;background:#f2f8fc;border:1px solid #d9eaf2;padding:11px 14px;margin:12px 0;color:#486b80;line-height:1.6}


/* Authentication-first entry screen. The app shell is not loaded until auth completes. */
[hidden]{display:none!important}
.auth-layout{min-height:100vh;display:grid;grid-template-columns:minmax(400px,1fr) minmax(400px,1.03fr);background:#fff}
.auth-art{position:relative;overflow:hidden;display:flex;flex-direction:column;justify-content:space-between;
 background:linear-gradient(143deg,#093e66 3%,#086891 57%,#108baf 100%);color:#fff;padding:46px clamp(32px,5vw,78px)}
.auth-art:before{content:"";position:absolute;right:-230px;top:14%;height:470px;width:470px;border-radius:50%;border:1px solid #d4f8ff36;box-shadow:0 0 0 67px #b7edff0b,0 0 0 132px #c3f2fe0b}
.auth-brand{display:flex;align-items:center;gap:13px;position:relative;z-index:2}
.auth-brand .brand-mark{width:48px;height:48px;flex-shrink:0}
.auth-brand .brand-mark .mark-tile{transform:translate(2px,2px)}
.auth-brand strong{font-size:23px;font-weight:790;letter-spacing:1.8px;display:block;line-height:1.1}
.auth-brand small{display:block;font-size:9px;font-weight:720;letter-spacing:1.25px;color:#c3e6f5;margin-top:4px}
.auth-art-content{position:relative;z-index:2;max-width:570px;padding:40px 0 80px}
.auth-eyebrow{letter-spacing:2.3px;color:#b3e7fa;font-size:11px;font-weight:770;margin-bottom:23px}
.auth-art-content h1{font-size:clamp(38px,4vw,59px);letter-spacing:-2px;line-height:1.14;font-weight:730}
.auth-art-content h1 span{color:#82d64b}
.auth-art-content p{font-size:16px;line-height:1.75;max-width:470px;color:#d4eaf5;margin-top:27px}
.auth-capabilities{display:flex;flex-wrap:wrap;gap:9px;margin-top:37px}
.auth-capabilities span{font-size:11px;color:#e7f9fc;background:#ffffff15;border:1px solid #efffff25;border-radius:30px;padding:9px 12px}
.auth-art-footer{font-size:10px;font-weight:700;letter-spacing:1.4px;color:#b1e2ef;z-index:2}
.auth-ribbon{position:absolute;height:115px;bottom:6%;right:-20%;width:100%;transform:rotate(-22deg);
 background:linear-gradient(to bottom,transparent 0 20%,#15b9e6 20% 40%,#80d7f0 40% 49%,#fff 49% 62%,#55bf4e 62% 78%,#08678d 78% 100%);opacity:.7}
.auth-right{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:60px 35px}
.auth-form-card{width:100%;max-width:440px}
.auth-lock{display:grid;place-items:center;width:49px;height:49px;border-radius:13px;background:#e8f5fc;color:#117fac;font-size:22px;margin-bottom:28px}
.auth-form-kicker{font-size:11px;color:#0a8abc;letter-spacing:1.7px;font-weight:760;margin-bottom:9px}
.auth-form-card h2{font-size:clamp(25px,2.4vw,35px);letter-spacing:-.9px;line-height:1.22;color:#1b425a}
.auth-description{margin-top:15px;font-size:14px;line-height:1.7}
.auth-security-caption{font-size:11px;font-weight:650;color:#498b9f;background:#eef8fc;border:1px solid #d7ebf5;
 border-radius:8px;padding:12px 14px;margin-top:27px;margin-bottom:16px}
.auth-error{font-size:12px;color:#9c392e;background:#fff2ef;border:1px solid #f4ccc7;border-radius:8px;padding:12px 14px;margin-bottom:13px;line-height:1.6}
.auth-button{width:100%;display:flex;align-items:center;gap:14px;border:1px solid #c9dce5;background:white;
 color:#1b4e69;border-radius:10px;padding:15px 16px;font-size:14px;font-weight:760;min-height:58px}
.auth-button:hover:not(:disabled){background:#f2faff;border-color:#51a7d1;box-shadow:0 6px 18px #12628a13}
.microsoft-mark{display:grid;grid-template-columns:repeat(2,10px);grid-template-rows:repeat(2,10px);gap:2px;flex-shrink:0}
.microsoft-mark i:nth-child(1){background:#f35325}.microsoft-mark i:nth-child(2){background:#81bc06}
.microsoft-mark i:nth-child(3){background:#05a6f0}.microsoft-mark i:nth-child(4){background:#ffba08}
.auth-demo-icon{display:grid;place-items:center;width:26px;height:26px;border-radius:7px;background:#e0f4ec;color:#159480;font-size:20px}
.auth-arrow{margin-left:auto;color:#1a87b0;font-size:22px;font-weight:400}
.auth-busy{font-size:12px;margin-top:14px;color:#3f7e91}
.auth-provider-disclosure{margin-top:18px;font-size:13px;line-height:1.65}
.auth-footer-note{border-top:1px solid #e6eff3;margin-top:25px;padding-top:18px;font-size:11px;line-height:1.75}
.auth-support{margin-top:45px;font-size:11px;color:#95a9b3;text-align:center}
.profile-container{position:relative}
.profile-trigger{border:0;background:transparent;text-align:left;width:100%;cursor:pointer;border-radius:9px;padding:15px 8px 4px}
.profile-trigger:hover{background:#ffffff0d}
.profile-text{display:flex;flex:1;min-width:0;flex-direction:column}
.profile-text strong,.profile-text small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.profile-chevron{margin-left:auto;color:#b7dce9;flex-shrink:0;font-size:18px}
.profile-menu{position:absolute;z-index:150;bottom:65px;left:0;width:290px;background:#fff;color:#2a5267;border:1px solid #d6e5ed;
 box-shadow:0 15px 42px #0a35474d;border-radius:13px;padding:18px}
.profile-menu.menu-from-top{position:fixed;left:auto;top:70px;right:25px;bottom:auto}
.profile-menu-heading{font-size:10px;color:#859da9;font-weight:750;letter-spacing:1.2px;margin-bottom:6px}
.profile-menu>strong{display:block;font-size:14px;overflow-wrap:anywhere}
.profile-menu-email{display:block;color:#7490a1;font-size:11px;overflow-wrap:anywhere;line-height:1.5;margin-top:5px}
.profile-menu-role{border:1px solid #e4edf0;background:#f7fafb;border-radius:9px;padding:10px 12px;margin-top:16px}
.profile-menu-role span{display:block;color:#8b9da7;font-size:10px}
.profile-menu-role strong{display:block;color:#2b607c;font-size:11px;margin-top:5px;font-weight:670;overflow-wrap:anywhere}
.profile-menu-divider{border-bottom:1px solid #e4edf2;margin:16px 0 10px}
.logout-button{display:flex;align-items:center;gap:12px;width:100%;border:0;background:transparent;border-radius:8px;
 color:#a54440;text-align:left;padding:10px 8px;font-size:12px;font-weight:740}
.logout-button:hover{background:#fff0ee}
.logout-button span{font-size:18px}
.top-profile-button{border:0;padding:3px;display:grid;place-items:center;background:transparent;border-radius:50%;cursor:pointer}
.top-profile-button:hover{box-shadow:0 0 0 3px #cde9f4}
@media(max-width:900px){
  .auth-layout{grid-template-columns:1fr}
  .auth-art{min-height:225px;padding:24px 30px}
  .auth-art-content{padding:24px 0 15px}
  .auth-art-content h1{font-size:28px;max-width:550px}
  .auth-art-content p{font-size:12px;margin-top:10px}
  .auth-art-footer,.auth-capabilities{display:none}
  .auth-ribbon{opacity:.2}
  .auth-right{padding:50px 24px}
}
@media(max-width:500px){
  .auth-art{min-height:220px;padding:22px}
  .auth-art-content h1{font-size:26px}
  .auth-brand strong{font-size:18px}
  .auth-right{padding:35px 22px}
  .profile-menu{left:0;bottom:54px;width:min(290px,calc(100vw - 35px))}
}


/* Account model settings — two independently configured preferences. */
.profile-settings-link{display:flex;align-items:center;gap:12px;width:100%;border:0;background:transparent;border-radius:8px;
 color:#245f81;text-decoration:none;padding:10px 8px;font-size:12px;font-weight:740}
.profile-settings-link:hover,.profile-settings-link:focus-visible{background:#eef7fc;color:#046f9a}
.profile-settings-link span{font-size:18px;line-height:1}
.settings-page{max-width:980px}
.settings-page h1{margin-top:10px}
.settings-intro{margin:14px 0 26px;font-size:14px;max-width:680px;line-height:1.7}
.settings-panel{max-width:720px;display:flex;flex-direction:column;gap:21px}
.settings-field{display:flex;flex-direction:column;gap:7px}
.settings-field label{font-size:14px;font-weight:720;color:var(--ink)}
.settings-field p{font-size:12px;color:var(--muted);line-height:1.6}
.settings-field select{display:block;max-width:550px;width:100%;margin-top:5px;padding:12px 13px;font-size:13px;border:1px solid #bbd5e2;border-radius:9px;background:white;color:#28546c}
.settings-field select:focus-visible{outline:3px solid #60b5cf;outline-offset:2px}
.settings-status{font-size:11px;color:#718c98;line-height:1.6}
.settings-notice{margin-top:3px!important;line-height:1.7}
.custom-chat-hint{display:flex;align-items:flex-start;gap:14px;padding:14px 16px;margin-bottom:18px;
 background:#f0f9fc;border:1px solid #d4e9f2;border-radius:10px}
.custom-chat-hint>span{font-size:23px;color:#1386b0;line-height:1.1}
.custom-chat-hint strong{display:block;font-size:12px;color:#1f6583;margin-bottom:3px}
.custom-chat-hint p{font-size:11px;color:#5b8598;line-height:1.55}

/* Show a complete, scrollable approved-file preview without changing the workflow layout. */
.change-preview{margin-top:12px;padding:9px;border:1px solid var(--line);border-radius:8px}
.change-preview summary{cursor:pointer;font-size:11px;font-weight:700}
.change-preview pre{max-width:100%;max-height:280px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;padding:10px;background:var(--surface,#f7faf9);border:1px solid var(--line);border-radius:6px;font-size:10px}
.change-preview p{font-size:10px;margin:8px 0 4px}

/* Guided progress: completed stages reduce to editable summaries rather than
   disappearing; movement only follows a real server-backed stage transition. */
.flow-heading-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap}
.flow-step-toggle{border:1px solid var(--line);background:#fff;color:var(--teal-dark);border-radius:9px;padding:6px 10px;font-size:12px;font-weight:650;white-space:nowrap}
.flow-step-toggle:hover{background:var(--soft)}
.flow-step-toggle:focus-visible{outline:2px solid var(--teal-dark);outline-offset:3px}
.flow-panel h2:focus{outline:2px solid var(--teal-dark);outline-offset:5px;border-radius:3px}
.flow-step-content[hidden]{display:none}
.flow-error{margin:0 0 12px}
.flow-panel{scroll-margin-top:22px}
.flow-panel.flow-current{border-color:#6caaab;box-shadow:0 0 0 2px rgba(53,129,123,.13)}
.flow-panel.is-collapsed{padding-block:16px}
.flow-panel.is-collapsed>.panel-heading{align-items:center;margin-bottom:0}
.flow-panel.is-collapsed>.panel-heading p{display:none}
.flow-panel.is-collapsed>.panel-heading h2{margin-bottom:0}
.flow-panel.is-collapsed>.flow-step-content{display:none}
#results{scroll-margin-top:22px}
.step-done{color:#35815f;background:#f5fbf8}
.step-done span{color:#35815f}
@media(max-width:680px){.flow-heading-actions{align-items:flex-start;gap:6px}.flow-panel.is-collapsed{padding-block:14px}}

/* Clean Data: compact proposals immediately above the visible right-side chat. */
.clean-data-sidebar{display:flex;flex-direction:column;gap:14px;position:sticky;top:18px;min-width:0}
.clean-data-proposals{padding:16px 18px}
.clean-data-proposals .modifications-inline{border:0;margin-top:7px;padding:0}
.clean-data-proposals .modifications-header strong{font-size:14px}
.clean-data-proposals .modifications-list{max-height:240px;overflow:auto}
.clean-data-proposals .modifications-list>li{margin:0}
.clean-data-sidebar .chat-panel{position:static;order:0;height:min(575px,calc(100vh - 205px));min-height:350px}
.clean-data-sidebar .chat-history{gap:12px;padding:12px}

/* The current backed-by-server stage stays prominent even when steps collapse. */
.clean-data-progress-banner{display:flex;align-items:center;gap:13px;margin:-8px 0 20px;padding:15px 18px;
  border:2px solid #b9d7e1;border-radius:12px;background:#f2f9fc;color:#1d5268}
.clean-data-progress-banner .progress-indicator{width:12px;height:12px;flex-shrink:0;border-radius:50%;background:#1683b1}
.clean-data-progress-banner .progress-caption{display:block;font-size:10px;letter-spacing:1.1px;font-weight:820;color:#3b7a95}
.clean-data-progress-banner strong{display:block;font-size:16px;line-height:1.3;margin:2px 0 3px}
.clean-data-progress-banner p{font-size:11px;line-height:1.5}
.clean-data-progress-banner .progress-revision{margin-left:auto;white-space:nowrap;font-size:10px;font-weight:750}
.clean-data-progress-banner.attention{border-color:#e8bd6e;background:#fff8eb;color:#7f5310}
.clean-data-progress-banner.attention .progress-indicator{background:#d38a21}
.clean-data-progress-banner.attention .progress-caption{color:#a06a1b}
.clean-data-progress-banner.complete{border-color:#a2d1b4;background:#f0faf4;color:#27694a}
.clean-data-progress-banner.complete .progress-indicator{background:#3a9c67}
.clean-data-progress-banner.complete .progress-caption{color:#2e8057}
.clean-data-progress-banner.idle{border-color:#dce8eb;background:#f7fafb;color:#506b78}
.clean-data-progress-banner.idle .progress-indicator{background:#8da8b3}

/* A Main AI question is an action item, not another indistinguishable chat bubble. */
.message-bubble{min-width:0;max-width:calc(100% - 35px)}
.message-bubble p{max-width:100%}
.message-question .message-avatar{background:#fff0ce;color:#8b590c;font-weight:850}
.message-question .message-bubble{border:2px solid #e9bf6d;border-radius:12px;background:#fff9ed}
.message-question .message-bubble p{padding-top:5px;background:transparent;color:#684611;font-weight:630}
.message-question-label{display:block;padding:11px 13px 0;font-size:10px;letter-spacing:.3px;color:#8d570c}
@media(max-width:1030px){
  .clean-data-sidebar{position:static;width:100%}
  .clean-data-sidebar .chat-panel{height:470px;min-height:330px;order:0}
}
@media(max-width:560px){
  .clean-data-progress-banner{align-items:flex-start;flex-wrap:wrap}
  .clean-data-progress-banner .progress-revision{margin-left:25px}
}

/* Compact private Clean Data instructions selector; no document text preview. */
.clean-data-instructions{display:flex;flex-wrap:wrap;align-items:end;gap:10px 14px;
  padding:14px 16px;margin:15px 0;background:#f4f9fb;border:1px solid #d7e8ef;border-radius:10px}
.clean-data-instructions>div:first-child{flex:1 1 185px}
.clean-data-instructions>div:first-child>strong{font-size:12px;color:#164e6a}
.clean-data-instructions>.field-label{min-width:210px;flex:1 1 230px;font-size:11px}
.clean-data-instructions select{margin-top:5px;width:100%;font-size:11px;min-height:35px}
.clean-data-instructions>.upload-trigger{margin:0}
.clean-data-instructions>.instructions-delete{margin:0;padding:8px 10px;min-height:35px;font-size:11px;flex:0 0 auto}
.clean-data-instructions>.registry-caption,
.clean-data-instructions>.inline-error{flex-basis:100%;margin:0}

/* Clean Data primary flow / contextual sidebar v2 */
.clean-data-workspace{display:grid;grid-template-columns:minmax(0,1fr) minmax(310px,385px);
  grid-template-areas:"primary sidebar";align-items:start}
.clean-data-workspace>.workspace-main{grid-area:primary;min-width:0}
.clean-data-workspace>.clean-data-sidebar{grid-area:sidebar;min-width:0}
.clean-data-workspace>.workspace-main>#results{width:100%;min-width:0}
.clean-data-proposals{padding:12px 15px}
.operator-requests-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:12px}
.operator-requests-heading strong{color:var(--ink);font-size:13px}
.operator-requests-heading span{font-size:10px;color:var(--muted);white-space:nowrap}
.clean-data-proposals>.registry-caption{margin:6px 0 0;font-size:11px}
.operator-requests-list{padding-left:20px;margin:8px 0 0;max-height:155px;overflow-y:auto;font-size:11px;line-height:1.5;overflow-wrap:anywhere}
.operator-requests-list li{padding:4px 2px}
.operator-requests-list li+li{border-top:1px solid var(--line)}
.operator-proposals-review{border-top:1px solid var(--line);margin-top:10px;padding-top:8px;font-size:11px}
.operator-proposals-review>summary{cursor:pointer;color:var(--teal-dark);font-weight:700}
.operator-proposals-review>summary:focus-visible{outline:2px solid var(--teal-dark);outline-offset:3px}
.clean-data-sidebar .chat-panel{height:min(620px,calc(100vh - 190px));min-height:350px}
/* A small breathing dot means server work is active; completed badges stay still. */
.status-pill.processing{background:#e7f3f8;color:#176586}
.status-pill.processing::after{content:"";display:inline-block;flex:none;width:6px;height:6px;margin-left:7px;border-radius:50%;background:currentColor;animation:clean-data-working 1.6s ease-in-out infinite}
.clean-data-progress-banner.active .progress-indicator{animation:clean-data-working 1.6s ease-in-out infinite}
@keyframes clean-data-working{
  0%,100%{opacity:.35;transform:scale(.82)}
  50%{opacity:1;transform:scale(1.12)}
}
@media(max-width:1030px){
  .clean-data-workspace{display:flex;flex-direction:column}
  .clean-data-workspace>.workspace-main,.clean-data-workspace>.clean-data-sidebar{width:100%}
  .clean-data-sidebar .chat-panel{height:470px;min-height:330px}
}
@media(prefers-reduced-motion:reduce){
  .status-pill.processing::after,.clean-data-progress-banner.active .progress-indicator{animation:none}
}


/* Temporary login-entry v0.1.0: plain third-party Microsoft redirect notice.
   Scope all rules to the unauthenticated gate; authenticated portal is unchanged. */
#sign-in-screen.login-minimal {
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:100vh;
  padding:24px;
  background:#fff;
  color:#202124;
}
#sign-in-screen.login-minimal[hidden],
#sign-in-screen.login-minimal [hidden] {display:none!important}
.login-minimal-main {
  width:100%;
  max-width:380px;
  margin:auto;
  padding:0;
  font-family:system-ui,-apple-system,"Segoe UI",sans-serif;
  text-align:left;
}
.login-minimal-main h1 {
  margin:0 0 16px;
  font-size:20px;
  font-weight:600;
  line-height:1.35;
  letter-spacing:0;
}
.login-minimal-main .login-mode,
.login-minimal-main .login-loading {
  margin:0 0 16px;
  font-size:13px;
  line-height:1.5;
  color:#52525b;
}
.login-minimal-main .login-action {
  display:block;
  width:100%;
  min-height:44px;
  padding:10px 16px;
  border:1px solid #8a8a8a;
  border-radius:4px;
  background:#fff;
  color:#202124;
  font-size:14px;
  font-weight:500;
  cursor:pointer;
}
.login-minimal-main .login-action:hover:not(:disabled) {background:#f7f7f7}
.login-minimal-main .login-action:disabled {opacity:.55}
.login-minimal-main .login-action:focus-visible {outline:2px solid #323232;outline-offset:3px}
.login-minimal-main .login-disclosure {
  margin:20px 0 0;
  font-size:12px;
  line-height:1.65;
  color:#5f6368;
}
.login-minimal-main .login-disclosure strong {color:#333;font-weight:600}
.login-minimal-main .login-error {
  margin:0 0 15px;
  font-size:13px;
  color:#8c1d18;
  line-height:1.5;
}

/* Call Metrics uses the portal's workflow panels and a separate instructions sidebar. */
.cm-workspace .panel-heading{margin-bottom:14px}
.cm-workspace .panel-heading h2{margin-bottom:0}
.cm-template,.cm-sources,.cm-review-table{display:grid;gap:10px;margin-bottom:18px}
.cm-sources{border-top:1px solid var(--line);padding-top:16px;justify-items:start}
.cm-sources h3,.cm-review-table h3,.cm-sources p{margin:0}
.cm-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
.cm-workspace .upload-trigger{margin:0}
.cm-file-list{list-style:none;display:grid;gap:6px;margin:0;padding:0;width:100%}
.cm-file-list li{display:flex;align-items:center;justify-content:space-between;gap:10px;
  border:1px solid var(--line);border-radius:8px;padding:4px 8px 4px 12px}
.cm-file-list span{overflow-wrap:anywhere;min-width:0}
.cm-week{max-width:240px;margin-bottom:16px}
.cm-review-table .table-scroll{overflow:auto}
.cm-review-table table{width:100%}
.cm-review-table td input{min-width:9ch;width:100%}
.cm-review-table>.btn{justify-self:start}
.cm-instructions{display:grid;gap:10px;min-width:0;position:sticky;top:18px}
.cm-instructions .panel-heading{margin-bottom:0}
.cm-instructions textarea{display:block;width:100%;min-height:160px;resize:vertical;
  border:1px solid var(--line);border-radius:8px;padding:10px 12px;font:inherit;color:inherit}
.cm-question{overflow-wrap:anywhere}
@media(max-width:900px){.cm-workspace>.cm-instructions{position:static;width:100%}}


/* Compact member-first Call Metrics review, with source identity traceability. */
.cm-member-mapping .table-scroll,.cm-fp-review .table-scroll{max-width:100%;overflow-x:auto}
.cm-member-mapping table,.cm-fp-review table{border-collapse:separate;border-spacing:0;min-width:660px}
.cm-member-mapping th,.cm-member-mapping td,.cm-fp-review th,.cm-fp-review td{
  padding:7px 9px;border-bottom:1px solid var(--line);vertical-align:top;text-align:left}
.cm-member-mapping td{min-width:220px}
.cm-member-mapping .cm-member-sticky,.cm-fp-review .cm-member-sticky{
  position:sticky;left:0;z-index:2;background:var(--surface,#fff);min-width:175px;
  max-width:225px;box-shadow:1px 0 0 var(--line)}
.cm-member-mapping thead .cm-member-sticky,.cm-fp-review thead .cm-member-sticky{z-index:3}
.cm-member-mapping .cm-member-sticky input{min-width:0;width:100%;margin-bottom:5px}
.cm-member-mapping .cm-member-sticky .btn{font-size:11px;padding:4px 6px}
.cm-alias-cell,.cm-alias-item{display:grid;gap:6px;min-width:190px}
.cm-alias-item{padding:7px;border:1px solid var(--line);border-radius:8px;
  background:var(--surface,#fff)}
.cm-alias-item>input,.cm-alias-source input,.cm-alias-source select{
  width:100%;max-width:100%;min-width:0;box-sizing:border-box}
.cm-alias-item>small{font-size:11px;overflow-wrap:anywhere;color:var(--muted,#667085)}
.cm-alias-source{display:grid;gap:3px;font-size:11px;color:var(--muted,#667085)}
.cm-add-alias{justify-self:start}
.cm-empty-match,.cm-unknown{color:var(--muted,#667085)}
.cm-unmatched,.cm-unmatched-note{color:#8f4e00}
.cm-fp-review td input,.cm-fp-review td select{width:100%;min-width:130px;box-sizing:border-box}
.cm-fp-note{display:block;max-width:25ch;font-size:11px;margin-top:5px;overflow-wrap:anywhere}
.cm-prior-result{margin-top:14px;padding-top:14px;border-top:1px solid var(--line)}


/* Call Metrics source diagnostics are NOT the horizontal upload-file list. */
.cm-workspace,.cm-workspace>.workspace-main,.cm-workspace>.cm-instructions,
.cm-workspace .flow-panel,.cm-workspace .cm-review-table{min-width:0;max-width:100%}
.cm-source-status-list{list-style:none;display:grid;grid-template-columns:minmax(0,1fr);gap:7px;
  min-width:0;max-width:100%;margin:0 0 16px;padding:0}
.cm-source-status-list>.cm-source-status{display:block;min-width:0;max-width:100%;
  border:1px solid var(--line);border-radius:8px;padding:9px 11px;background:#fff;
  overflow-wrap:anywhere;word-break:normal}
.cm-source-line{display:flex;align-items:center;gap:8px;flex-wrap:wrap;min-width:0}
.cm-source-filename{font-size:12px;min-width:0;flex:1 1 175px;overflow-wrap:anywhere}
.cm-source-id{font-size:10px;color:var(--muted,#667085);min-width:0;overflow-wrap:anywhere}
.cm-source-result{font-size:10px;font-weight:650;border-radius:20px;padding:3px 8px;
  white-space:nowrap;flex-shrink:0}
.cm-source-result.attention{background:#fff1df;color:#8a561e}
.cm-source-result.checked{background:#e8f4ec;color:#236747}
.cm-source-result.pending{background:#f0f3f5;color:#516675}
.cm-source-details{min-width:0;margin-top:6px;border-top:1px solid var(--line)}
.cm-source-details summary{cursor:pointer;padding:7px 0 2px;color:var(--teal-dark);
  font-size:11px;font-weight:650;overflow-wrap:anywhere}
.cm-source-details summary:focus-visible{outline:2px solid currentColor;outline-offset:3px}
.cm-operation-list{display:grid;gap:6px;list-style:none;padding:7px 0 1px;margin:0;
  min-width:0;max-width:100%}
.cm-operation-item{display:grid;gap:2px;min-width:0;max-width:100%;
  font-size:11px;line-height:1.55;overflow-wrap:anywhere}
.cm-operation-item+li{border-top:1px solid var(--line);padding-top:6px}
.cm-operation-item strong{font-size:11px;color:var(--ink)}
.cm-operation-item span,.cm-operation-item small{min-width:0;overflow-wrap:anywhere}
.cm-operation-item small{color:var(--muted,#667085)}
.cm-model-availability{min-width:0;border-top:1px solid var(--line);padding-top:11px;
  display:grid;gap:4px;overflow-wrap:anywhere}
.cm-model-availability h3{font-size:13px}
.cm-model-availability p{margin:0}
.cm-empty-review{margin:10px 0 16px;padding:11px 12px;border:1px solid var(--line);
  border-radius:8px;background:#f8fafb;font-size:12px;line-height:1.55;
  overflow-wrap:anywhere}
.cm-workspace .table-scroll{width:100%;min-width:0;max-width:100%;overflow-x:auto}
.cm-workspace .cm-member-mapping table{min-width:660px}
.cm-workspace .cm-fp-review table{min-width:540px}
@media(max-width:1030px){
  .cm-workspace>.workspace-main,.cm-workspace>.cm-instructions{width:100%;max-width:100%}
}
@media(max-width:560px){
  .cm-workspace .flow-panel,.cm-workspace .cm-instructions{padding:14px}
  .cm-source-line{gap:5px}
  .cm-source-id{flex:1 1 100%;order:3}
  .cm-workspace .cm-review-table table{min-width:540px}
  .cm-workspace .cm-member-mapping table{min-width:660px}
}

/* Allowlisted diagnostics are opt-in, compact, and keyboard expandable. */
.cm-technical-details{margin-top:5px;max-width:100%;min-width:0}
.cm-technical-details summary{cursor:pointer;font-size:11px;line-height:1.55;
  font-weight:650;color:var(--teal-dark);overflow-wrap:anywhere}
.cm-technical-details summary:focus-visible{outline:2px solid currentColor;outline-offset:3px}
.cm-technical-list{display:grid;grid-template-columns:minmax(0,1fr);gap:3px;
  min-width:0;max-width:100%;padding:5px 0 2px;margin:0;font-size:11px}
.cm-technical-list>div{display:grid;grid-template-columns:minmax(80px,.65fr) minmax(0,1.35fr);
  gap:7px;min-width:0}
.cm-technical-list dt{font-weight:650;color:var(--muted,#667085)}
.cm-technical-list dd{margin:0;min-width:0;overflow-wrap:anywhere;user-select:text}
.cm-model-status{min-width:0;padding:4px 0;max-width:100%}
.cm-model-status+.cm-model-status{border-top:1px solid var(--line);padding-top:8px}
.cm-model-status .registry-caption{margin:0}
@media(max-width:560px){
  .cm-technical-list>div{grid-template-columns:minmax(0,1fr)}
}


/* Compact Call Metrics mapping: one-line identity, details only when editing.
   The table owns horizontal overflow; the member column remains readable. */
.cm-workspace #preflight-step,.cm-workspace .cm-member-mapping{min-width:0;max-width:100%;width:100%}
.cm-workspace .cm-mapping-scroll{display:block;width:100%;max-width:100%;min-width:0;
  overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain}
.cm-workspace .cm-mapping-scroll:focus-visible{outline:2px solid var(--teal-dark);
  outline-offset:3px}
.cm-workspace .cm-member-mapping table{width:max-content;min-width:100%;table-layout:auto}
.cm-member-mapping td{width:205px;min-width:205px;max-width:230px;padding:4px 6px}
.cm-member-mapping .cm-member-sticky{width:165px;min-width:165px;max-width:180px;
  padding:5px 7px;box-sizing:border-box}
.cm-member-mapping .cm-member-sticky input{height:30px;box-sizing:border-box;margin-bottom:3px}
.cm-member-mapping .cm-member-sticky .btn{font-size:10px;padding:2px 5px}
.cm-member-mapping .cm-alias-cell{display:grid;min-width:0;gap:4px;align-content:start}
.cm-member-mapping .cm-alias-item{display:grid;gap:2px;min-width:0;padding:4px 5px;
  border-radius:5px}
.cm-member-mapping .cm-alias-primary{display:grid;grid-template-columns:minmax(0,1fr) auto;
  gap:5px;min-width:0;align-items:center}
.cm-member-mapping .cm-alias-primary>input{width:100%;max-width:100%;min-width:0;
  height:29px;padding:3px 6px;font-size:12px;box-sizing:border-box}
.cm-member-mapping .cm-alias-trace{display:block;max-width:100%;min-width:0;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px;
  color:var(--muted,#667085)}
.cm-member-mapping .cm-alias-options{min-width:0;max-width:100%}
.cm-member-mapping .cm-alias-options summary{font-size:10px;font-weight:650;cursor:pointer;
  white-space:nowrap;color:var(--teal-dark);padding:3px 2px}
.cm-member-mapping .cm-alias-options summary:focus-visible{outline:2px solid currentColor}
.cm-member-mapping .cm-alias-options[open]{grid-column:1/-1;grid-row:2;min-width:0}
.cm-member-mapping .cm-alias-settings{display:grid;gap:6px;min-width:0;padding:5px 0}
.cm-member-mapping .cm-alias-settings .cm-alias-source{display:grid;gap:3px;min-width:0}
.cm-member-mapping .cm-alias-settings select,.cm-member-mapping .cm-alias-settings input{
  min-width:0;max-width:100%;width:100%;box-sizing:border-box}
.cm-member-mapping .cm-add-alias{font-size:10px;padding:2px 5px;justify-self:start}
@media(max-width:560px){
  .cm-member-mapping .cm-member-sticky{width:145px;min-width:145px;max-width:155px}
  .cm-member-mapping td{width:190px;min-width:190px;max-width:205px}
}
