:root{--bg:#f6f6f1;--surface:#fff;--surface2:#eef1e9;--ink:#203c30;--muted:#607067;--line:#dce2d7;--brand:#28483b;--brand-hi:#39634e;--gold:#9a7c45;--soft-gold:#f4eee0;--green:#276247;--green-bg:#e5f1e8;--blue:#315c7b;--blue-bg:#e8f0f7;--amber:#825e19;--amber-bg:#f6eed7;--red:#a44339;--red-bg:#fbece8;--shadow:0 16px 40px -26px #14372344;--display:Georgia,'Times New Roman',serif;--sans:'Aptos','Segoe UI',Arial,sans-serif;--radius:18px;--mono:ui-monospace,'Cascadia Code',monospace;color-scheme:light}
.demo-footnote{font-size:.8rem;color:var(--muted);line-height:1.4}.dialog-disclosure{padding:5px 20px;margin:0;border-top:1px solid var(--line);flex:0 0 auto}.processing-index{display:grid;gap:12px}.processing-index .search-result{width:100%}
html[data-theme=dark]{--bg:#11291f;--surface:#1b3529;--surface2:#243f32;--ink:#f1f2e9;--muted:#b8c5b7;--line:#3b5545;--brand:#b2cfb1;--brand-hi:#d5e4cc;--gold:#d1b782;--soft-gold:#3d392a;--green:#acd7b8;--green-bg:#284a34;--blue:#aecfe8;--blue-bg:#263f50;--amber:#e5cc90;--amber-bg:#48402a;--red:#f0bbb2;--red-bg:#4e332e;--shadow:0 16px 40px -26px #000;color-scheme:dark}
*{box-sizing:border-box}body{margin:0;font-family:var(--sans);font-size:16px;line-height:1.55;background:var(--bg);color:var(--ink)}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer;color:inherit}button:disabled{cursor:not-allowed;opacity:.55}a{color:inherit;text-underline-offset:4px}button{border:0;background:none}input,select,textarea{border:1px solid var(--line);border-radius:9px;padding:12px 14px;background:var(--surface);color:var(--ink);min-height:46px}select{appearance:none;padding-right:36px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%23718576' stroke-width='1.7'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 14px center}textarea{resize:vertical;min-height:110px;line-height:1.6}input:focus,select:focus,textarea:focus{outline:2px solid var(--gold);outline-offset:2px}button:focus-visible,a:focus-visible{outline:3px solid var(--gold);outline-offset:4px;border-radius:5px}[hidden]{display:none!important}h1,h2,h3,h4,p{margin:0}h1,h2,h3{font-family:var(--display);font-weight:400;letter-spacing:-.035em}h1{font-size:clamp(38px,4vw,56px);line-height:1.08}h2{font-size:30px;line-height:1.15}h3{font-size:24px;line-height:1.25}h4{font-size:16px}em{font-weight:400}small{font-size:13px}label{display:block;font-size:14px;font-weight:600;margin:17px 0 7px}hr{border:0;border-top:1px solid var(--line);margin:24px 0}.muted{color:var(--muted)}.eyebrow{font-size:12px;letter-spacing:.14em;font-weight:700;color:var(--muted);line-height:1.4}.pill,.badge{display:inline-flex;align-items:center;gap:6px;padding:5px 10px;border-radius:30px;line-height:1.4;font-size:12px;font-weight:600;white-space:normal}.pill{background:var(--surface2);color:var(--ink)}.badge{background:var(--surface2);color:var(--muted)}.badge.green{background:var(--green-bg);color:var(--green)}.badge.blue{background:var(--blue-bg);color:var(--blue)}.badge.amber{background:var(--amber-bg);color:var(--amber)}.badge.red{background:var(--red-bg);color:var(--red)}.mono{font-family:var(--mono);font-size:13px}.button{display:inline-flex;justify-content:center;align-items:center;gap:9px;padding:11px 18px;min-height:44px;border-radius:9px;font-size:14px;line-height:1.4;font-weight:600;border:1px solid var(--line);background:var(--surface);text-decoration:none;transition:background .18s,transform .18s,box-shadow .18s}.button:hover{transform:translateY(-1px);box-shadow:var(--shadow);background:var(--surface2)}.button.primary{background:var(--brand);color:var(--bg);border-color:var(--brand)}.button.primary:hover{background:var(--brand-hi)}.button.gold{background:var(--soft-gold);color:var(--gold);border-color:var(--gold)}.button.small{padding:8px 12px;min-height:38px}.button.danger{color:var(--red);border-color:var(--red)}.full{width:100%}.icon-button{width:40px;height:40px;display:grid;place-items:center;border-radius:50%;font-size:24px;flex-shrink:0}.icon-button:hover{background:var(--surface2)}.text-button{padding:4px 0;font-size:14px;font-weight:600;text-decoration:underline;text-underline-offset:5px}.form-help,.form-error{font-size:13px;line-height:1.55;margin:10px 0 16px;color:var(--muted)}.form-error{color:var(--red)}.form-error:empty{display:none}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.skip-link{position:fixed;top:-60px;left:20px;z-index:1000;background:var(--surface);padding:10px}.skip-link:focus{top:10px}
.login-screen{min-height:100dvh;display:grid;grid-template-columns:1.06fr 1fr}.login-story{position:relative;min-height:780px;overflow:hidden;padding:48px 8%;background:#203c30;color:#f6f6eb;display:flex;flex-direction:column;isolation:isolate}.login-story:before{content:'';position:absolute;z-index:-1;width:720px;height:720px;border:1px solid #b6c4a424;border-radius:50%;right:-300px;bottom:-270px;box-shadow:0 0 0 90px #b6c4a40a,0 0 0 180px #b6c4a408,0 0 0 270px #b6c4a405}.login-brand{width:min(340px,90%);height:auto;filter:brightness(0) invert(1);object-fit:contain}.login-copy{margin:auto 0;max-width:520px;padding:75px 0}.login-copy .eyebrow{color:#c6d2bb}.login-copy h1{font-size:clamp(48px,4.8vw,76px);line-height:1.04;margin:26px 0}.login-copy h1 em{color:#d5ddbd}.login-copy p{font-size:19px;max-width:390px;color:#d4ddcd;line-height:1.65}.story-tags{display:flex;gap:9px;flex-wrap:wrap;margin-top:36px}.story-tags span{padding:8px 12px;border:1px solid #cdddc730;border-radius:30px;font-size:12px;color:#d7e1d1}.login-signature{font-size:11px;letter-spacing:.12em;color:#b8c6af}.login-signature span{display:block;letter-spacing:0;font-size:13px;margin-top:4px;color:#d9e2d1}.login-panel{display:flex;flex-direction:column;min-width:0;padding:38px 7%;background:var(--bg)}.login-top{display:flex;justify-content:space-between;align-items:center;gap:12px}.login-top .pill{font-size:10px;letter-spacing:.06em}.login-form-wrap{width:100%;max-width:420px;margin:auto; padding:42px 0}.iris-symbol{font-size:48px;color:var(--gold);margin-bottom:24px;line-height:1}.login-form-wrap h2{font-size:43px;margin:18px 0 18px;line-height:1.13}.login-form-wrap form{margin-top:30px}.login-form-wrap input,.login-form-wrap select{width:100%}.login-note{font-size:13px;color:var(--muted);margin-top:24px;line-height:1.7}.login-footer{font-size:12px;color:var(--muted)}.login-footer span{display:block;margin-top:4px}
.topbar{position:sticky;top:0;z-index:40;display:flex;align-items:center;gap:18px;padding:16px 3%;background:var(--surface);border-bottom:1px solid var(--line);min-height:86px}.app-brand{display:flex;width:225px;flex-shrink:0}.app-brand img{width:100%;height:auto;max-height:58px;object-fit:contain}.brand-divider{height:35px;width:1px;background:var(--line)}.product-lockup strong{font-size:18px;font-weight:600;letter-spacing:-.03em}.product-lockup strong span{color:var(--gold);font-weight:500;margin-left:5px}.product-lockup small{display:block;font-size:12px;color:var(--muted);margin-top:2px}.topbar-spacer{flex:1}.demo-chip{font-size:11px;border:1px solid var(--line);border-radius:20px;padding:5px 10px;color:var(--muted);white-space:nowrap}.profile-button{display:flex;gap:10px;align-items:center;padding:0 0 0 7px;text-align:left;min-width:120px}.avatar{width:38px;height:38px;border-radius:50%;background:var(--surface2);color:var(--brand);display:grid;place-items:center;font-size:13px;font-weight:700;flex-shrink:0;border:1px solid var(--line)}.profile-button strong{font-size:14px;display:block}.profile-button small{font-size:11px;color:var(--muted);display:block}.nav{display:flex;gap:3px;padding:0 3%;overflow:auto;background:var(--surface);border-bottom:1px solid var(--line);scrollbar-width:thin}.nav button{flex-shrink:0;padding:17px 14px 14px;border-bottom:3px solid transparent;font-size:14px;font-weight:500;color:var(--muted)}.nav button:hover{color:var(--ink);background:var(--surface2)}.nav button.active{color:var(--brand);border-color:var(--brand);font-weight:700}.nav small{display:inline-flex;min-width:20px;justify-content:center;background:var(--surface2);padding:0 4px;border-radius:8px;margin-left:4px}.content{max-width:1600px;margin:auto;padding:36px 3% 50px;animation:enter .3s ease}.page-head{display:flex;justify-content:space-between;align-items:flex-start;gap:25px;margin-bottom:28px}.page-head h1{font-size:40px;margin:8px 0 10px}.page-head p{font-size:15px;color:var(--muted);max-width:720px}.page-actions{display:flex;gap:10px;align-items:center;padding-top:20px;flex-wrap:wrap}.welcome{display:grid;grid-template-columns:1.6fr 1fr;gap:30px;align-items:center;margin-bottom:24px;padding:32px 36px;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);overflow:hidden;position:relative}.welcome .eyebrow{color:var(--gold)}.welcome h1{font-size:44px;margin:10px 0 14px}.welcome p{color:var(--muted);max-width:620px;font-size:16px}.welcome-actions{display:flex;gap:10px;margin-top:22px;flex-wrap:wrap}.morning-card{padding:24px;border:1px solid var(--line);border-radius:14px;background:var(--surface2);position:relative}.morning-card h3{font-size:25px;margin:10px 0 14px}.morning-card p{font-size:14px}.morning-line{display:flex;justify-content:space-between;gap:15px;border-top:1px solid var(--line);padding:10px 0;font-size:14px}.morning-line strong{font-weight:500}.kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin:24px 0}.kpi{position:relative;padding:22px 24px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);text-align:left;transition:transform .2s,border-color .2s,box-shadow .2s}.kpi:hover{transform:translateY(-3px);box-shadow:var(--shadow);border-color:var(--gold)}.kpi-label{font-size:13px;color:var(--muted)}.kpi-value{font-family:var(--display);font-size:37px;letter-spacing:-.04em;line-height:1.2;margin:7px 0}.kpi-note{font-size:12px;color:var(--muted)}.kpi-mark{position:absolute;right:22px;top:22px;width:28px;height:28px;display:grid;place-items:center;border-radius:8px;background:var(--surface2);color:var(--gold);font-size:16px}.grid-2{display:grid;grid-template-columns:1.2fr 1fr;gap:20px;align-items:start}.grid-equal{grid-template-columns:1fr 1fr}.grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.card{padding:25px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);box-shadow:0 4px 10px -10px #193d2922;min-width:0}.card-head{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:20px}.card-head h3{font-size:25px}.card-head .text-button{font-size:12px;white-space:nowrap}.card-desc{color:var(--muted);font-size:14px;line-height:1.6;margin:10px 0 18px}.section-gap{margin-top:22px}.priority-item{display:flex;width:100%;text-align:left;gap:14px;padding:16px 0;align-items:flex-start;border-bottom:1px solid var(--line)}.priority-item:last-child{border:0}.priority-item:hover strong{text-decoration:underline;text-underline-offset:4px}.priority-icon{width:36px;height:36px;border-radius:10px;display:grid;place-items:center;background:var(--amber-bg);color:var(--amber);font-size:18px;flex-shrink:0}.priority-copy{flex:1;min-width:0}.priority-copy strong{display:block;font-size:15px}.priority-copy p{font-size:13px;color:var(--muted);margin:5px 0;line-height:1.5}.priority-meta{font-size:12px;color:var(--muted)}.subtle{color:var(--muted);font-size:13px}.bar-row{display:grid;grid-template-columns:minmax(100px,1.3fr) 2fr 50px;align-items:center;gap:12px;padding:9px 0;font-size:13px}.bar-track{background:var(--surface2);height:9px;border-radius:9px;overflow:hidden}.bar-fill{height:100%;background:var(--brand-hi);border-radius:9px;min-width:3px}.bar-row .count{text-align:right;font-family:var(--mono);font-size:12px}.trend{height:170px;display:flex;align-items:flex-end;gap:8px;padding:14px 2px 0}.trend button{min-width:0;flex:1;background:var(--brand);opacity:.8;border-radius:5px 5px 0 0;position:relative;transition:opacity .2s}.trend button:hover{opacity:1;background:var(--gold)}.trend-labels{display:flex;justify-content:space-between;font-size:11px;color:var(--muted);padding-top:10px}.toolbar{display:flex;gap:12px;margin:20px 0;align-items:center;flex-wrap:wrap}.toolbar input{flex:1;min-width:220px}.toolbar select{min-width:170px}.segmented{display:flex;border:1px solid var(--line);border-radius:10px;padding:4px;gap:4px;background:var(--surface)}.segmented button{font-size:13px;padding:8px 14px;border-radius:7px;white-space:nowrap}.segmented button.active{background:var(--brand);color:var(--bg)}.table-wrap{overflow-x:auto;max-width:100%}table{width:100%;border-collapse:collapse;font-size:14px;text-align:left}th{font-size:12px;color:var(--muted);font-weight:600;white-space:nowrap;background:var(--surface2);padding:12px 15px}td{padding:15px;border-bottom:1px solid var(--line);vertical-align:middle}td p{font-size:12px;color:var(--muted);margin-top:3px}tr:last-child td{border-bottom:0}tbody tr[data-action]{cursor:pointer}tbody tr:hover{background:var(--surface2)}td strong{font-weight:600}.number{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}.pagination{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-top:18px;font-size:13px;color:var(--muted)}.pagination>div{display:flex;gap:8px}.empty{text-align:center;padding:44px 24px;border:1px dashed var(--line);border-radius:14px;color:var(--muted)}.empty h3{color:var(--ink);margin-bottom:10px}.empty p{font-size:14px;max-width:520px;margin:0 auto 18px}.notice{padding:15px 18px;background:var(--surface2);border-left:3px solid var(--gold);border-radius:0 10px 10px 0;font-size:14px;line-height:1.6;color:var(--muted);margin:16px 0}.notice strong{color:var(--ink)}.source-list{display:flex;flex-direction:column;gap:9px}.source-link{display:block;padding:12px 14px;background:var(--surface2);border:1px solid var(--line);border-radius:9px;text-decoration:none;font-size:13px;line-height:1.5}.source-link:hover{border-color:var(--gold)}.source-link small{display:block;margin-top:4px;color:var(--muted);font-size:12px}.rule-card,.knowledge-card,.module-card{position:relative;text-align:left;display:flex;flex-direction:column;align-items:flex-start;transition:transform .2s,box-shadow .2s}.rule-card:hover,.knowledge-card:hover,.module-card:hover{transform:translateY(-3px);box-shadow:var(--shadow);border-color:var(--gold)}.rule-card h3,.knowledge-card h3{margin:14px 0 10px;font-size:23px}.rule-card p,.knowledge-card p{font-size:14px;color:var(--muted);line-height:1.6}.rule-card small{margin-top:auto;padding-top:16px;color:var(--muted);font-size:12px}.module-card{padding:26px}.module-card .module-icon{width:44px;height:44px;display:grid;place-items:center;background:var(--surface2);border-radius:14px;color:var(--gold);font-size:25px;margin-bottom:20px}.module-card h3{font-size:27px;margin-bottom:12px}.module-card p{font-size:14px;color:var(--muted)}.module-card .module-footer{display:flex;justify-content:space-between;align-items:center;width:100%;margin-top:auto;padding-top:24px;font-size:13px}.progress-track{height:5px;background:var(--surface2);border-radius:5px;width:100%;margin-top:20px;overflow:hidden}.progress-fill{height:100%;background:var(--brand-hi);transition:width .3s}.user-card{display:flex;gap:16px;align-items:flex-start}.user-card .avatar{width:52px;height:52px;font-size:17px}.user-card h3{font-size:23px}.user-card p{font-size:14px;color:var(--muted);margin:3px 0 9px}.workflow-groups{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.flow-stage{width:100%;text-align:left;display:flex;gap:12px;align-items:flex-start;border-top:1px solid var(--line);padding:17px 0}.flow-stage strong{font-size:14px;display:block}.flow-stage p{font-size:12px;color:var(--muted);margin-top:4px}.stage-number{width:27px;height:27px;border:1px solid var(--line);border-radius:50%;display:grid;place-items:center;font-size:12px;flex-shrink:0}.feed-row{display:flex;gap:15px;padding:14px 0;border-bottom:1px solid var(--line)}.feed-row p{font-size:14px}.feed-row small{font-size:12px;color:var(--muted)}.status-dot{width:8px;height:8px;border-radius:50%;background:var(--brand);margin-top:8px;flex-shrink:0}.app-footer{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:18px 3% 110px;border-top:1px solid var(--line);color:var(--muted);font-size:12px}.footer-dot{margin:0 8px}.app-footer .text-button{font-size:12px}html[data-theme=dark] .app-brand img{filter:brightness(0) invert(1)}
dialog{overflow:hidden;color:var(--ink);background:var(--surface);padding:0;border:1px solid var(--line);box-shadow:0 30px 80px #10281f40}dialog::backdrop{background:#112d234d;backdrop-filter:blur(3px)}.modal{width:min(820px,calc(100vw - 32px));max-height:90dvh;border-radius:20px;margin:auto}.detail-dialog{margin:12px 12px 12px auto;width:min(740px,calc(100vw - 24px));height:calc(100dvh - 24px);max-height:none;max-width:none;border-radius:20px}.detail-dialog[open]{display:flex;flex-direction:column;animation:drawerIn .28s ease}.modal[open]{display:flex;flex-direction:column;animation:enter .24s ease}.dialog-head{display:flex;justify-content:space-between;align-items:flex-start;gap:15px;padding:24px 28px;border-bottom:1px solid var(--line);flex-shrink:0}.dialog-head h2{font-size:29px}.dialog-head p{font-size:13px;color:var(--muted);margin-top:7px}.dialog-body{padding:25px 28px;overflow-y:auto;overscroll-behavior:contain;flex:1;min-height:0}.dialog-actions{padding:18px 28px;border-top:1px solid var(--line);display:flex;gap:9px;flex-wrap:wrap;background:var(--surface);flex-shrink:0}.detail-facts{display:grid;grid-template-columns:1fr 1fr;gap:1px;background:var(--line);border:1px solid var(--line);border-radius:12px;overflow:hidden;margin-bottom:20px}.detail-facts>div{padding:13px 15px;background:var(--surface)}.detail-facts small{display:block;font-size:12px;color:var(--muted);margin-bottom:4px}.detail-facts strong{font-size:14px;font-weight:600}.checks{display:flex;flex-direction:column;gap:11px;margin-top:18px}.check{border:1px solid var(--line);border-left:3px solid var(--amber);border-radius:12px;padding:17px}.check.pass{border-left-color:var(--green)}.check.missing{border-left-color:var(--blue)}.check.review{border-left-color:var(--red)}.check-head{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:10px}.check-head h4{font-size:15px}.check p{font-size:14px;line-height:1.6}.check .next-action{margin-top:10px;color:var(--muted)}.check .text-button{margin-top:10px;font-size:12px}.inline-form{display:flex;gap:10px;align-items:flex-end;margin:16px 0;flex-wrap:wrap}.inline-form>div{flex:1;min-width:170px}.inline-form select,.inline-form input{width:100%}.paper{white-space:pre-wrap;font:16px/1.8 var(--display);background:#fff;color:#26382e;padding:30px;border:1px solid #ddd;border-radius:6px}.lesson-sections{display:flex;flex-direction:column;gap:26px;margin:24px 0}.lesson-sections h3{font-size:25px;margin-bottom:10px}.lesson-sections p{line-height:1.75;font-size:16px}.quiz-question{border:1px solid var(--line);border-radius:12px;padding:20px;margin:17px 0}.quiz-question legend{font-size:15px;font-weight:600;padding:0 6px}.quiz-option{display:flex;align-items:flex-start;gap:10px;font-size:14px;font-weight:400;margin:9px 0;padding:9px;border:1px solid var(--line);border-radius:8px;cursor:pointer}.quiz-option input{min-height:0;margin:5px 0 0;flex-shrink:0;accent-color:var(--brand)}.quiz-option:has(input:checked){background:var(--surface2);border-color:var(--brand)}.lesson-check{display:flex;align-items:flex-start;gap:10px;font-weight:400;font-size:14px}.lesson-check input{min-height:0;accent-color:var(--brand);margin-top:5px}.quiz-feedback{padding:14px;margin-top:12px;border-radius:10px;background:var(--surface2);font-size:14px}.processing-stage{display:flex;align-items:center;gap:12px;border:1px solid var(--line);border-radius:10px;padding:13px 15px;margin:9px 0;font-size:14px}.processing-stage.processing{border-color:var(--blue);background:var(--blue-bg)}.processing-stage.done{border-color:var(--green)}.processing-stage .badge{margin-left:auto}.spinner{width:17px;height:17px;display:inline-block;border:2px solid var(--line);border-top-color:var(--brand);border-radius:50%;animation:spin .8s linear infinite}.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.settings-grid p{font-size:14px;color:var(--muted);margin:12px 0 20px}.settings-grid .button{margin:4px 7px 4px 0}.capability-row{display:flex;justify-content:space-between;gap:20px;padding:14px 0;border-bottom:1px solid var(--line);font-size:14px}.capability-row:last-child{border:0}.search-result{display:block;padding:15px;text-align:left;width:100%;border-bottom:1px solid var(--line)}.search-result:hover{background:var(--surface2)}.search-result strong{font-size:15px;display:block}.search-result small{font-size:12px;color:var(--muted)}
.assistant-launcher{position:fixed;right:25px;bottom:22px;z-index:50;display:flex;align-items:center;gap:13px;border:1px solid var(--line);border-radius:50px;background:var(--brand);color:var(--bg);padding:11px 18px 11px 11px;box-shadow:0 12px 35px #102d2340;text-align:left}.assistant-launcher strong{display:block;font-size:15px}.assistant-launcher small{display:block;font-size:11px;opacity:.8}.assistant-orb{width:43px;height:43px;display:grid;place-items:center;border-radius:50%;font-size:28px;background:#dde6cd;color:#36533e;flex-shrink:0;animation:breathe 5s ease-in-out infinite}.launcher-plus{margin-left:20px;font-size:22px}.assistant-panel{position:fixed;right:20px;bottom:20px;width:min(470px,calc(100vw - 24px));height:min(720px,calc(100dvh - 40px));background:var(--surface);border:1px solid var(--line);border-radius:21px;box-shadow:0 22px 80px #10281f44;z-index:70;display:flex;flex-direction:column;overflow:hidden;animation:enter .3s ease}.assistant-head{display:flex;align-items:center;gap:15px;padding:22px;border-bottom:1px solid var(--line);background:var(--surface2)}.assistant-head .eyebrow{font-size:10px}.assistant-head h2{font-size:26px;margin:6px 0 5px}.assistant-head small{font-size:11px;color:var(--muted)}.assistant-head .icon-button{margin-left:auto}.assistant-thread{flex:1;min-height:0;overflow:auto;padding:21px;scroll-behavior:smooth;overscroll-behavior:contain}.assistant-thread>h3{font-size:30px;margin:10px 0 15px}.assistant-thread>p{font-size:14px;color:var(--muted);margin-bottom:18px}.chat-message{padding:15px 17px;margin:12px 0;border-radius:15px;background:var(--surface2);font-size:14px;line-height:1.7;animation:answerIn .3s ease}.chat-message.user{background:var(--brand);color:var(--bg);margin-left:35px;border-bottom-right-radius:3px}.chat-message.assistant{margin-right:12px;border-bottom-left-radius:3px}.chat-message strong{font-weight:600}.chat-message .text-button{font-size:12px;margin-top:10px;display:block}.chat-message small{display:block;margin-top:8px;color:var(--muted);font-size:11px}.assistant-suggestions{display:flex;gap:7px;flex-wrap:wrap;padding:10px 18px;border-top:1px solid var(--line)}.assistant-suggestions button{border:1px solid var(--line);border-radius:30px;font-size:12px;padding:7px 10px}.assistant-suggestions button:hover{background:var(--surface2)}.assistant-form{display:flex;gap:8px;padding:12px 18px}.assistant-form input{width:100%;min-width:0;font-size:13px}.assistant-note{padding:0 18px 15px;font-size:11px;color:var(--muted);line-height:1.55}.typing{display:flex;align-items:center;gap:5px;padding:10px}.typing i{width:5px;height:5px;border-radius:50%;background:var(--muted);animation:breathe .9s ease-in-out infinite}.typing i:nth-child(2){animation-delay:.15s}.typing i:nth-child(3){animation-delay:.3s}.toast{position:fixed;bottom:28px;left:50%;transform:translateX(-50%);padding:14px 20px;border:1px solid var(--line);border-radius:12px;background:var(--surface);color:var(--ink);box-shadow:var(--shadow);font-size:14px;z-index:200;max-width:calc(100vw - 40px);text-align:center}.busy{position:fixed;top:0;left:0;right:0;height:3px;z-index:300;overflow:hidden;background:var(--surface2)}.busy span{display:block;width:35%;height:100%;background:var(--gold);animation:busy 1.4s ease-in-out infinite}
@keyframes enter{from{opacity:0;transform:translateY(9px)}to{opacity:1;transform:none}}@keyframes drawerIn{from{opacity:0;transform:translateX(30px)}to{opacity:1;transform:none}}@keyframes answerIn{from{opacity:0;filter:blur(2px);transform:translateY(5px)}to{opacity:1;filter:none;transform:none}}@keyframes spin{to{transform:rotate(360deg)}}@keyframes breathe{0%,100%{transform:scale(1);opacity:.85}50%{transform:scale(1.04);opacity:1}}@keyframes busy{from{transform:translateX(-100%)}to{transform:translateX(400%)}}
@media(min-width:1700px){.content{padding-top:42px}.welcome h1{font-size:52px}.welcome{padding:38px 42px}.kpi-value{font-size:43px}}
@media(max-width:1100px){.login-screen{grid-template-columns:1fr 1fr}.login-story{padding:40px 9%;min-height:750px}.login-copy h1{font-size:51px}.topbar{gap:12px}.app-brand{width:190px}.brand-divider,.product-lockup small{display:none}.product-lockup strong{font-size:16px}.demo-chip{display:none}.grid-3{grid-template-columns:repeat(2,1fr)}.welcome{grid-template-columns:1.35fr 1fr;padding:26px}.welcome h1{font-size:39px}.kpi{padding:19px}.workflow-groups{grid-template-columns:repeat(2,1fr)}.nav button{padding:15px 11px 12px;font-size:13px}}
@media(max-width:780px){.login-screen{display:block}.login-story{min-height:0;padding:24px 7%}.login-brand{width:245px}.login-copy{padding:36px 0 20px}.login-copy h1{font-size:44px;margin:17px 0}.login-copy p{font-size:16px}.story-tags,.login-signature{display:none}.login-panel{padding:25px 7%}.login-form-wrap{padding:30px 0}.login-form-wrap h2{font-size:36px}.iris-symbol{display:none}.login-footer{margin-top:20px}.topbar{padding:12px 4%;min-height:75px;gap:9px}.app-brand{width:170px}.product-lockup{display:none}.profile-button{min-width:0;padding:0}.profile-button>div:last-child{display:none}.topbar .icon-button{width:34px;height:34px}.nav{padding:0 3%}.nav button{padding:14px 10px 12px}.content{padding:26px 4% 35px}.page-head{display:block;margin-bottom:22px}.page-head h1{font-size:34px}.page-actions{padding-top:17px}.welcome{display:block;padding:25px}.welcome h1{font-size:38px}.welcome p{font-size:15px}.morning-card{margin-top:25px;padding:19px}.kpis{grid-template-columns:repeat(2,1fr);gap:12px}.kpi{padding:18px}.kpi-value{font-size:33px}.kpi-mark{right:14px;top:15px;width:24px;height:24px}.kpi-label{font-size:12px;max-width:120px}.kpi-note{font-size:11px}.grid-2,.grid-equal,.settings-grid{grid-template-columns:1fr}.grid-3{grid-template-columns:1fr 1fr;gap:13px}.card{padding:21px}.rule-card h3,.knowledge-card h3{font-size:22px}.app-footer{flex-direction:column;align-items:flex-start;padding:20px 4% 120px;gap:9px}.toolbar{gap:9px}.toolbar input{min-width:100%;}.toolbar select{flex:1;min-width:140px}.dialog-head{padding:20px}.dialog-body{padding:20px}.dialog-actions{padding:15px 20px}.detail-dialog{margin:6px;width:calc(100vw - 12px);height:calc(100dvh - 12px);border-radius:16px}.modal{width:calc(100vw - 18px);max-height:94dvh}.dialog-head h2{font-size:27px}.assistant-launcher{right:15px;bottom:16px}.assistant-panel{right:12px;bottom:12px;max-height:calc(100dvh - 24px)}.workflow-groups{grid-template-columns:1fr}.paper{padding:20px;font-size:15px}td,th{padding:12px}.table-wrap table{min-width:620px}.pagination{font-size:12px}.module-card h3{font-size:25px}}
@media(max-width:460px){.grid-3{grid-template-columns:1fr}.login-copy h1{font-size:40px}.welcome h1{font-size:35px}.welcome-actions{flex-direction:column;align-items:stretch}.card-head{align-items:flex-start}.card-head h3{font-size:23px}.detail-facts{grid-template-columns:1fr}.profile-button .avatar{width:33px;height:33px}.assistant-head{padding:18px;gap:11px}.assistant-head h2{font-size:24px}.assistant-head .eyebrow{font-size:9px}.assistant-orb{width:37px;height:37px}.assistant-launcher .launcher-plus{margin-left:6px}.kpi-value{font-size:29px}.kpi-label{max-width:110px}.kpi-mark{display:none}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}.assistant-orb{transform:none!important}}
@media print{body{background:white;color:#172d21}.topbar,.nav,.app-footer,.assistant-launcher,.assistant-panel,.dialog-actions,.dialog-head button,.skip-link{display:none!important}body:has(dialog[open]) #workspace{display:none}dialog[open]{position:static;width:100%;height:auto;max-height:none;overflow:visible;border:0;box-shadow:none;margin:0}dialog::backdrop{display:none}.dialog-body{overflow:visible}.paper{border:0;padding:0}.content{padding:0}.button{display:none}}

/* Theme and dialog regression fixes from observed browser QA. */
html{scrollbar-gutter:stable}body:has(dialog[open]){overflow:hidden}.theme-changing *, .theme-changing *:before, .theme-changing *:after{transition:none!important}.check-progress-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:8px;margin:18px 0}.check-progress-grid .processing-stage{margin:0;min-width:0;padding:10px;font-size:11px;gap:8px}.check-progress-grid .processing-stage strong{overflow-wrap:anywhere}.check-progress-grid .badge{font-size:10px}.checks[aria-busy=true]{opacity:.75}
/* Keep visually hidden labels in the inner scroll container; the dialog shell never scrolls. */
@media screen{dialog{overflow:clip}.dialog-body{position:relative}}
@media(max-width:360px){.topbar{gap:6px}.app-brand{width:140px}.profile-button{flex-shrink:0}.topbar-spacer{min-width:0}.priority-item{flex-wrap:wrap}.priority-item>.badge{margin-left:50px}}
.segmented{flex-wrap:wrap;max-width:100%}.trend button{padding:0}.kpi{min-width:0;overflow-wrap:anywhere}
@media(max-width:780px){.kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.trend{gap:4px}.pagination{flex-wrap:wrap}.card-head{flex-wrap:wrap}.capability-row{flex-wrap:wrap}.user-card>div{min-width:0;overflow-wrap:anywhere}}

/* Full currency values stay readable on compact phones. */
@media(max-width:420px){.kpis{grid-template-columns:minmax(0,1fr)}}

.phone-entry-title, .phone-nav, .phone-month-picker { display: none; }
.iris-install { min-height: 44px; }
.login-form-wrap > .iris-install { margin-top: 8px; }

@media screen and (max-width: 780px) {
  :root { --phone-dock-height: calc(64px + env(safe-area-inset-bottom, 0px)); }
  html { scrollbar-gutter: auto; }
  .desktop-entry-title { display: none; }
  .phone-entry-title { display: inline; }

  .login-story {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: calc(15px + env(safe-area-inset-top, 0px)) max(18px, env(safe-area-inset-right)) 15px max(18px, env(safe-area-inset-left));
  }
  .login-brand { width: min(52%, 215px); max-height: 64px; object-position: left center; }
  .login-copy { margin: 0; padding: 0; text-align: right; }
  .login-copy > :not(h1), .login-copy .desktop-entry-title { display: none; }
  .login-copy h1 { margin: 0; color: #fff; font: 600 clamp(16px, 4.4vw, 23px)/1.3 var(--sans); letter-spacing: -.035em; }
  .login-copy h1 em { color: #d5ddbd; font-family: var(--display); font-style: normal; }
  .login-panel {
    max-width: 600px;
    margin-inline: auto;
    padding: 12px max(20px, env(safe-area-inset-right)) max(20px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
  }
  .login-top, .login-form-wrap, .login-footer { margin-inline: auto; width: 100%; max-width: 460px; }
  .login-top .icon-button, .topbar .icon-button, .dialog-head .icon-button,
  .assistant-head .icon-button, .profile-button { min-height: 44px; min-width: 44px; }
  .login-form-wrap { padding: 7px 0 14px; }
  .login-form-wrap > .eyebrow { display: none; }
  .login-form-wrap h2 { font-size: clamp(29px, 7vw, 37px); line-height: 1.12; margin: 0 0 5px; }
  .login-form-wrap form { margin-top: 18px; }
  .login-form-wrap form label { margin-top: 13px; }
  .login-form-wrap .form-help { margin: 8px 0 12px; }
  .login-form-wrap .primary { min-height: 48px; font-size: 16px; }
  .login-note { margin-top: 13px; }
  .login-footer { margin-top: 0; padding-top: 12px; border-top: 1px solid var(--line); }

  #workspace { min-height: 100dvh; padding-bottom: var(--phone-dock-height); }
  .topbar {
    min-height: 64px;
    padding: calc(5px + env(safe-area-inset-top, 0px)) max(10px, env(safe-area-inset-right)) 5px max(12px, env(safe-area-inset-left));
    gap: 3px;
  }
  .app-brand { flex: 0 1 177px; min-width: 0; }
  .app-brand img { min-width: 0; max-height: 48px; object-position: left center; }
  .profile-button { display: grid; place-items: center; }
  #nav, .assistant-launcher { display: none; }
  .phone-nav {
    position: fixed;
    z-index: 50;
    inset: auto 0 0;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 2px;
    padding: 4px max(4px, env(safe-area-inset-right)) calc(4px + env(safe-area-inset-bottom, 0px)) max(4px, env(safe-area-inset-left));
    background: var(--surface);
    border-top: 1px solid var(--line);
    box-shadow: 0 -4px 22px #132b1c12;
  }
  .phone-nav button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 0;
    min-height: 55px;
    padding: 5px 1px;
    border-radius: 10px;
    font: 600 .75rem/1.2 var(--sans);
    color: var(--muted);
  }
  .phone-nav svg { width: 21px; height: 21px; }
  .phone-nav [aria-current="page"], .phone-nav .active { background: var(--surface2); color: var(--ink); }
  .phone-nav button:focus-visible { outline-offset: -3px; }
  .phone-menu-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .phone-menu-list button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    min-height: 48px;
    padding: 8px 12px;
    text-align: left;
    font-size: .95rem;
    font-weight: 600;
    border: 1px solid var(--line);
    background: var(--surface);
    border-radius: 10px;
  }
  .phone-menu-list [aria-current="page"] { background: var(--surface2); border-color: var(--brand); }
  .phone-menu-list small { font-variant-numeric: tabular-nums; color: var(--gold); }

  .content { padding: 20px max(14px, env(safe-area-inset-right)) 22px max(14px, env(safe-area-inset-left)); }
  .content, .dialog-body { overflow-wrap: anywhere; }
  .content .welcome { padding: 21px 18px; }
  .welcome h1 { font-size: clamp(32px, 8.7vw, 42px); line-height: 1.08; }
  .welcome-actions { gap: 8px; margin-top: 16px; }
  .morning-card { margin-top: 18px; padding: 14px; }
  .page-head h1 { font-size: clamp(31px, 8vw, 39px); }
  .card { padding: 17px; }
  .card-head .text-button { white-space: normal; }
  .button.small, .text-button, .segmented button, .assistant-suggestions button,
  button.avatar, .quiz-option { min-height: 44px; }
  button.avatar { min-width: 44px; }
  .toolbar > *, .inline-form > *, .capability-row > *, .dialog-head > div { min-width: 0; max-width: 100%; }
  .toolbar input, .toolbar select { min-width: 0; width: 100%; }
  .toolbar input, .toolbar select, .assistant-form input, .dialog-body :is(input,select,textarea) { font-size: 16px; }
  .segmented { width: 100%; }
  .segmented button { flex: 1 1 auto; white-space: normal; }
  .kpis { gap: 9px; }
  .kpi { padding: 16px; }
  .kpi-label { max-width: none; }
  .kpi-mark { display: none; }
  .bar-row { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr) auto; gap: 8px; }
  .app-footer {
    padding: 14px max(16px, env(safe-area-inset-right)) 20px max(16px, env(safe-area-inset-left));
    gap: 5px;
  }
  .toast { bottom: calc(var(--phone-dock-height) + 10px); width: max-content; max-width: calc(100% - 28px); }

  .modal, .detail-dialog {
    inset: auto 0 0;
    margin: 0;
    width: 100%;
    max-width: 100%;
    border-radius: 20px 20px 0 0;
    border-bottom: 0;
    max-height: calc(100dvh - max(8px, env(safe-area-inset-top)));
  }
  .detail-dialog { height: calc(100dvh - max(8px, env(safe-area-inset-top))); }
  .dialog-head, .dialog-body, .dialog-actions {
    padding-inline: max(16px, env(safe-area-inset-left)) max(16px, env(safe-area-inset-right));
  }
  .dialog-head { padding-block: 13px 10px; align-items: center; }
  .dialog-head h2 { font-size: clamp(22px, 5.5vw, 28px); }
  .dialog-body { padding-block: 16px; }
  .modal .dialog-body { padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px)); }
  .dialog-actions { padding-block: 10px calc(10px + env(safe-area-inset-bottom, 0px)); gap: 6px; }
  .dialog-actions:empty { padding: 0 0 env(safe-area-inset-bottom, 0px); border: 0; }
  .detail-dialog .table-wrap table { min-width: 0; }
  .detail-dialog .table-wrap td, .detail-dialog .table-wrap th { padding: 8px 4px; }
  .inline-form, .check-head { flex-wrap: wrap; }

  .assistant-panel {
    inset: auto 0 0;
    width: 100%;
    height: min(730px, calc(100dvh - max(6px, env(safe-area-inset-top))));
    max-height: none;
    border-radius: 18px 18px 0 0;
    padding-inline: env(safe-area-inset-left, 0px) env(safe-area-inset-right, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  body:has(.assistant-panel:not([hidden])) { overflow: hidden; }
  .assistant-head { padding: 12px 14px; }
  .assistant-head > div { min-width: 0; }
  .assistant-thread { padding: 16px; }
  .assistant-form { padding: 8px 12px; }
  .assistant-note { padding: 0 12px 10px; }
  .assistant-suggestions { padding: 5px 12px; gap: 5px; }
}

@media screen and (max-width: 600px) {
  .phone-records { overflow: visible; }
  .phone-records table, .phone-records tbody { display: block; width: 100%; min-width: 0; }
  .phone-records thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .phone-records tbody { display: grid; gap: 12px; }
  .phone-records tbody tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 15px;
    padding: 15px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
  }
  .phone-records td { display: block; min-width: 0; padding: 0; border: 0; white-space: normal; }
  .phone-records td:first-child { grid-column: 1 / -1; padding-bottom: 9px; border-bottom: 1px solid var(--line); }
  .phone-records td:last-child { grid-column: 1 / -1; }
  .phone-records td:last-child button { width: 100%; }
  .phone-records td.number { text-align: left; }
  .phone-records td[data-label]::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 3px;
    color: var(--muted);
    font: 600 .75rem/1.3 var(--sans);
  }
  .phone-records td:first-child .text-button { display: inline-flex; align-items: center; }
  .card:has(> .phone-records), .card:has(> #account-table), .card:has(> #patient-results) {
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }
  .trend { gap: 2px; }
  .phone-month-picker { display: block; }
  .phone-month-picker > div { display: flex; gap: 8px; }
  .phone-month-picker select { flex: 1; min-width: 0; font-size: 16px; }
  .phone-month-picker .button { padding-inline: 12px; }
}
@media screen and (max-width: 780px) and (max-height: 470px) {
  .topbar { position: static; }
  .assistant-suggestions { display: none; }
  .detail-dialog .dialog-actions { flex-wrap: nowrap; overflow-x: auto; }
  .dialog-actions > button { flex-shrink: 0; }
}

#detail-dialog:has(.pt-disclosure) > .dialog-disclosure, #workspace:has(.pt-registry .pt-disclosure) .app-footer > .demo-footnote { display:none; }
