body[data-module="lab"]{--dl:#397491;--dl-soft:#eaf4f8}.dl-hero{display:grid;grid-template-columns:minmax(0,1fr) 210px;gap:24px;padding:34px;border-radius:25px;background:linear-gradient(135deg,#173f34,#2f7188);color:#fff;box-shadow:0 22px 55px rgba(27,76,88,.18)}.dl-hero h1{font-size:31px;line-height:1.65;margin:5px 0}.dl-hero p{color:#d8e8e8;max-width:720px}.dl-kicker{font-size:10px;color:#b8dce5}.dl-starters{display:flex;flex-wrap:wrap;gap:7px;margin-top:19px}.dl-starters button{background:rgba(255,255,255,.1);border-color:rgba(255,255,255,.2);color:#fff;font-size:10px}.dl-hero-stat{display:flex;flex-direction:column;justify-content:center;align-items:center;border:1px solid rgba(255,255,255,.15);background:rgba(255,255,255,.08);border-radius:19px}.dl-hero-stat strong{font-size:45px;color:#f3c778}.dl-hero-stat span{font-size:12px}.dl-hero-stat small{font-size:8px;color:#c5d9dc;margin-top:8px}.dl-search-panel{background:#fff;border:1px solid #dbe6e7;border-radius:16px;margin:17px 0;padding:15px 21px;box-shadow:0 11px 30px rgba(30,69,77,.05)}.dl-search-panel summary{cursor:pointer;font-weight:700;color:#49635e}#dl-chat label{display:block;font-weight:700;margin-bottom:7px}#dl-chat>div{display:grid;grid-template-columns:1fr auto;gap:8px;align-items:end}#dl-chat textarea,#dl-filters input,#dl-filters select,.dl-admin-dialog input,.dl-admin-dialog select,.dl-admin-dialog textarea{border:1px solid #cfddde;border-radius:11px;background:#fbfcfb;padding:10px;font:inherit;width:100%;resize:vertical}#dl-chat small{display:block;color:#7b8987;margin-top:6px}#dl-filters{display:grid;grid-template-columns:repeat(3,minmax(110px,1fr)) minmax(180px,1.5fr) auto;gap:8px;border-top:1px solid #e6eceb;margin-top:14px;padding-top:14px}.dl-toolbar{display:flex;justify-content:space-between;align-items:center;margin:20px 2px 11px}.dl-toolbar>div{display:flex;gap:8px;align-items:baseline}.dl-toolbar span{font-size:10px;color:#778783}.dl-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;padding-bottom:45px}.dl-card{display:flex;flex-direction:column;border:1px solid #dce6e5;border-radius:19px;background:#fff;padding:20px;box-shadow:0 12px 30px rgba(25,70,78,.055)}.dl-card-head,.dl-actions{display:flex;justify-content:space-between;gap:8px;align-items:center}.dl-provider,.dl-review,.dl-badges span{font-size:8px;padding:4px 7px;border-radius:999px;background:#edf6f7;color:#2f6c7c}.dl-review{background:#e6f3e9;color:#31714d}.dl-review.limited{background:#fff2d9;color:#80622a}.dl-badges{display:flex;gap:5px;flex-wrap:wrap;margin:14px 0 8px}.dl-badges span{background:#f1f3f1;color:#61716b}.dl-card h2{font-size:19px;margin:5px 0 0}.dl-card>small{color:#8a9691}.dl-card>p{font-size:12px;color:#556b65;line-height:2;min-height:48px}.dl-facts{display:flex;gap:6px;flex-wrap:wrap;margin:8px 0}.dl-facts span{font-size:9px;background:#f5f7f5;padding:5px 7px;border-radius:7px}.dl-fit{border-right:3px solid #7eacb8;background:#f4f9fa;padding:11px 12px;margin:9px 0 15px}.dl-fit strong{font-size:10px}.dl-fit p{font-size:11px;margin:3px 0}.dl-fit small{color:#687b79}.dl-actions{margin-top:auto}.dl-actions a,.dl-actions button{font-size:10px}.dl-empty{grid-column:1/-1;text-align:center;padding:50px;background:#fff;border:1px dashed #cfdcda;border-radius:17px}.dl-dialog{width:min(900px,calc(100vw - 30px));max-height:91vh;border:0;border-radius:22px;padding:28px;box-shadow:0 30px 90px rgba(16,43,45,.3)}.dl-dialog::backdrop{background:rgba(14,39,39,.55)}.dl-close{position:sticky;float:left;top:0;font-size:24px;z-index:2;background:#eef3f1;border-radius:50%;width:38px;height:38px}.dl-detail-head{border-bottom:1px solid #e1e8e5;padding-bottom:15px}.dl-detail-head h2{font-size:27px}.dl-dialog section{padding:12px 0}.dl-dialog h3{font-size:15px;margin:12px 0 6px}.dl-dialog li,.dl-dialog p{font-size:11px;line-height:2}.dl-guide-columns,.dl-question-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.dl-guide-columns>div,.dl-question-grid>div{background:#f6f8f6;border-radius:13px;padding:13px}.dl-question-grid{grid-template-columns:repeat(3,1fr)}.dl-evidence{border-top:1px solid #e0e8e5}.dl-evidence a{display:block;font-size:10px;margin:5px 0;color:#276a7f}.dl-admin-dialog{width:min(1050px,calc(100vw - 30px))}.dl-admin-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin:16px 0}.dl-admin-list button{text-align:right;border:1px solid #dae4e2;border-radius:11px}.dl-admin-list button strong,.dl-admin-list button span{display:block}.dl-admin-list button span{font-size:8px;color:#7a8985}.dl-admin-list button.needs-review{border-color:#d9a849;background:#fff8e7}#dl-review-form{display:grid;gap:9px;padding:17px;background:#f4f7f5;border-radius:15px}#dl-review-form label{display:grid;gap:4px;font-size:10px}
.dl-chat-shell{margin:18px 0;background:#fff;border:1px solid #d8e4e4;border-radius:22px;box-shadow:0 15px 38px rgba(29,70,76,.08);overflow:hidden}.dl-chat-shell>header{display:flex;justify-content:space-between;align-items:center;padding:14px 18px;border-bottom:1px solid #e2e9e8;background:#f8fbfa}.dl-chat-shell>header>div{display:flex;gap:10px;align-items:center}.dl-chat-shell header strong,.dl-chat-shell header small{display:block}.dl-chat-shell header small{font-size:9px;color:#71817d}.dl-bot-dot{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:#28687a;color:#fff}.dl-chat-log{min-height:240px;max-height:560px;overflow:auto;padding:22px;display:flex;flex-direction:column;gap:17px;background:linear-gradient(#fbfdfc,#f6faf9)}.dl-message{display:flex;flex-direction:column;align-items:flex-start;max-width:min(760px,88%)}.dl-message.user{align-self:flex-end;align-items:flex-end}.dl-message>span{font-size:9px;color:#70807b;margin:0 8px 4px}.dl-bubble{background:#fff;border:1px solid #dce7e5;border-radius:17px 17px 17px 5px;padding:12px 15px;box-shadow:0 6px 18px rgba(30,70,74,.05);width:100%}.dl-message.user .dl-bubble{background:#28687a;color:#fff;border-color:#28687a;border-radius:17px 17px 5px 17px}.dl-bubble>p{margin:0;line-height:2;font-size:12px}.dl-chat-result{margin-top:10px;padding:12px;border-radius:13px;background:#f2f8f9;border:1px solid #d6e7ea}.dl-chat-result strong,.dl-chat-result small{display:block}.dl-chat-result small{font-size:9px;color:#637b78;margin-top:3px}.dl-chat-result p{font-size:10px;color:#435e59;line-height:1.9}.dl-chat-result>div:last-child{display:flex;gap:7px;align-items:center}.dl-chat-result a{font-size:10px;color:#17657c;font-weight:700}.dl-chat-result button{font-size:9px}#dl-chat{padding:15px 18px;background:#fff;border-top:1px solid #e1e9e7}
@media(max-width:900px){.dl-grid{grid-template-columns:1fr}.dl-hero{grid-template-columns:1fr}.dl-hero-stat{padding:18px}.dl-hero-stat strong{font-size:30px}#dl-filters{grid-template-columns:1fr 1fr}.dl-admin-list{grid-template-columns:1fr 1fr}}@media(max-width:560px){.dl-hero{padding:22px}.dl-hero h1{font-size:23px}#dl-chat>div,#dl-filters,.dl-guide-columns,.dl-question-grid,.dl-admin-list{grid-template-columns:1fr}.dl-actions{align-items:stretch;flex-direction:column}.dl-actions a,.dl-actions button{text-align:center}.dl-message{max-width:96%}.dl-chat-log{padding:14px;min-height:210px}.dl-chat-shell>header{padding:12px}}
.dl-open-guide{width:100%;margin-top:auto}.dl-chat-result h2{font-size:14px;margin:0 0 5px}.dl-chat-result .dl-facts{margin:7px 0}.dl-chat-result .dl-fit{margin:8px 0 10px}.dl-chat-result .dl-open-guide{font-size:10px}.dl-side-new{width:100%;margin-bottom:12px}.dl-sidebar-empty{font-size:10px;line-height:1.9;color:#81908b;padding:13px;text-align:center}.dl-full-guide{max-width:1050px;margin:0 auto 55px}.dl-back{margin-bottom:13px}.dl-full-head{display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:28px;padding:30px;border-radius:23px;background:linear-gradient(135deg,#f7fbfa,#e9f4f6);border:1px solid #d9e6e6}.dl-full-head h1{font-size:31px;line-height:1.6;margin:10px 0}.dl-full-head>div>p{color:#4e6963;line-height:2}.dl-launch-box{display:flex;flex-direction:column;justify-content:center;gap:10px;padding:21px;border-radius:18px;background:#fff;border:1px solid #d5e2df;box-shadow:0 12px 30px rgba(25,70,78,.07)}.dl-launch-box strong{font-size:18px;color:#205c4a}.dl-launch-box p{font-size:11px;line-height:1.9;color:#687b76}.dl-launch-box a{text-align:center}.dl-guide-intro{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:17px 0}.dl-guide-intro>div{padding:21px;border-radius:17px;background:#fff;border:1px solid #dce6e4}.dl-guide-intro span{font-size:9px;color:#39806b}.dl-guide-intro h2{font-size:16px;line-height:1.8}.dl-guide-intro p{font-size:11px;line-height:2;color:#586c67}.dl-guide-intro small{color:#75847f}.dl-guide-section{display:grid;grid-template-columns:45px minmax(0,1fr) minmax(240px,.65fr);gap:16px;align-items:start;padding:24px;margin:14px 0;border-radius:18px;background:#fff;border:1px solid #dce6e4}.dl-step-number{display:grid;place-items:center;width:38px;height:38px;border-radius:50%;background:#276b7e;color:#fff;font-weight:800}.dl-guide-section h2,.dl-classroom h2,.dl-before-use h2{font-size:20px;margin:2px 0 10px}.dl-guide-section h3{font-size:13px}.dl-guide-section li{font-size:11px;line-height:2;margin-bottom:5px}.dl-guide-section aside{background:#f4f8f6;border-radius:13px;padding:15px}.dl-classroom{padding:25px;margin:14px 0;border-radius:18px;background:#fff;border:1px solid #dce6e4}.dl-classroom>p{line-height:2;color:#506863}.dl-quick-check{margin-top:14px;padding:15px;border-right:4px solid #d7a845;background:#fff8e8;border-radius:11px}.dl-quick-check p{margin:5px 0;font-size:11px}.dl-before-use{padding:20px 24px;margin:14px 0;border-radius:17px;background:#f8f6f0;border:1px solid #e5dfcf}.dl-before-use p{font-size:11px;line-height:2;color:#5f625b}.dl-before-use small{color:#7c8178}.dl-final-actions{display:flex;gap:10px;justify-content:flex-end;padding:14px 0}.dl-final-actions a,.dl-final-actions button{min-width:210px;text-align:center}
@media(max-width:800px){.dl-full-head,.dl-guide-intro,.dl-guide-section{grid-template-columns:1fr}.dl-step-number{width:32px;height:32px}.dl-final-actions{flex-direction:column}.dl-final-actions a,.dl-final-actions button{width:100%}.dl-full-head{padding:21px}.dl-full-head h1{font-size:25px}}

/* Guide layout v2: nested page headers must not inherit the 72px app header. */
body[data-module="lab"] .dl-full-guide{max-width:1180px;margin:0 auto 64px;color:#203b32}
body[data-module="lab"] .dl-guide-nav{display:flex;justify-content:flex-start;align-items:center;margin:0 0 14px}
body[data-module="lab"] .dl-guide-nav .dl-back{display:inline-flex;align-items:center;gap:8px;padding:8px 3px;font-size:13px;font-weight:700;color:#557067}
body[data-module="lab"] header.dl-full-head{height:auto!important;min-height:300px;display:grid;grid-template-columns:minmax(0,1.45fr) minmax(270px,.55fr);align-items:stretch;gap:24px;padding:34px;border-radius:26px;background:linear-gradient(145deg,#f7fbfa 0%,#eaf5f7 100%);border:1px solid #d7e6e5;box-shadow:0 18px 46px rgba(30,78,83,.07);position:relative;z-index:1}
body[data-module="lab"] .dl-guide-summary{min-width:0;display:flex;flex-direction:column;justify-content:center}
body[data-module="lab"] .dl-guide-meta{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
body[data-module="lab"] .dl-guide-meta .dl-badges{margin:0}
body[data-module="lab"] .dl-guide-meta .dl-review,body[data-module="lab"] .dl-guide-meta .dl-badges span{font-size:10px;padding:5px 9px}
body[data-module="lab"] .dl-vpn-tag{display:inline-flex;align-items:center;width:max-content;max-width:100%;padding:5px 9px;border:1px solid #e9c98d;border-radius:999px;background:#fff3da;color:#79551c;font-size:10px;font-weight:800;line-height:1.5;white-space:normal}
body[data-module="lab"] .dl-card-identity .dl-vpn-tag{margin-top:6px;font-size:9px;padding:4px 8px}
body[data-module="lab"] .dl-full-head h1{font-size:34px;line-height:1.55;letter-spacing:-.6px;margin:18px 0 9px;overflow-wrap:normal}
body[data-module="lab"] .dl-guide-lead{max-width:680px;color:#4e6963;font-size:14px;line-height:2.05;margin:0}
body[data-module="lab"] .dl-full-head .dl-facts{margin:18px 0 0;gap:8px}
body[data-module="lab"] .dl-full-head .dl-facts span{font-size:11px;padding:6px 10px;background:rgba(255,255,255,.82);border:1px solid #e0ebe9}
body[data-module="lab"] .dl-launch-box{height:auto;min-width:0;display:flex;flex-direction:column;justify-content:center;align-items:stretch;gap:11px;padding:25px;border-radius:20px;background:rgba(255,255,255,.94);border:1px solid #d5e2df;box-shadow:0 14px 34px rgba(25,70,78,.08)}
body[data-module="lab"] .dl-launch-kicker{font-size:10px;font-weight:800;color:#4b8872}
body[data-module="lab"] .dl-launch-box strong{font-size:24px;line-height:1.5;color:#205c4a}
body[data-module="lab"] .dl-launch-box p{font-size:13px;line-height:1.95;color:#687b76;margin:0 0 3px}
body[data-module="lab"] .dl-launch-box a{display:block;width:100%;text-align:center;font-size:13px;padding:11px 14px}
body[data-module="lab"] .dl-guide-intro{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:18px 0}
body[data-module="lab"] .dl-guide-intro>div{min-width:0;padding:24px 26px;border-radius:19px;background:#fff;border:1px solid #dce6e4;box-shadow:0 8px 26px rgba(31,74,69,.035)}
body[data-module="lab"] .dl-guide-intro span{display:block;font-size:11px;font-weight:800;color:#39806b;margin-bottom:7px}
body[data-module="lab"] .dl-guide-intro h2{font-size:18px;line-height:1.85;margin:0 0 7px;overflow-wrap:normal}
body[data-module="lab"] .dl-guide-intro p{font-size:13px;line-height:2;color:#586c67;margin:0}
body[data-module="lab"] .dl-guide-intro small{display:block;margin-top:10px;font-size:11px;line-height:1.8;color:#75847f}
body[data-module="lab"] .dl-guide-section{display:grid;grid-template-columns:48px minmax(0,1.2fr) minmax(280px,.8fr);gap:22px;align-items:start;padding:30px;margin:16px 0;border-radius:20px;background:#fff;border:1px solid #dce6e4;box-shadow:0 8px 28px rgba(31,74,69,.035)}
body[data-module="lab"] .dl-guide-section.dl-guide-wide{grid-template-columns:48px minmax(0,1fr)}
body[data-module="lab"] .dl-step-number{display:grid;place-items:center;width:42px;height:42px;border-radius:50%;background:#276b7e;color:#fff;font-size:17px;font-weight:800;box-shadow:0 7px 18px rgba(39,107,126,.18)}
body[data-module="lab"] .dl-guide-section h2,body[data-module="lab"] .dl-classroom h2,body[data-module="lab"] .dl-before-use h2{font-size:22px;line-height:1.7;margin:0 0 13px}
body[data-module="lab"] .dl-guide-section ol,body[data-module="lab"] .dl-guide-section ul{margin:0;padding-right:22px}
body[data-module="lab"] .dl-guide-section li{font-size:13px;line-height:2.05;margin-bottom:7px;color:#405b52}
body[data-module="lab"] .dl-guide-section aside{min-width:0;background:#f3f8f6;border:1px solid #e4ece8;border-radius:15px;padding:18px 20px}
body[data-module="lab"] .dl-guide-section h3{font-size:15px;line-height:1.7;margin:0 0 12px}
body[data-module="lab"] .dl-control-list{list-style:none;padding:0!important;display:grid;gap:7px}
body[data-module="lab"] .dl-control-list li{display:grid;grid-template-columns:minmax(95px,.8fr) minmax(0,1.2fr);gap:10px;align-items:center;direction:ltr;margin:0;padding:8px 10px;border-radius:9px;background:#fff;border:1px solid #e1ebe7}
body[data-module="lab"] .dl-control-list b{font:600 11px/1.6 ui-monospace,SFMono-Regular,Consolas,monospace;color:#28677a;text-align:left;overflow-wrap:anywhere}
body[data-module="lab"] .dl-control-list span{direction:rtl;text-align:right;font-size:12px;line-height:1.7;color:#4b635b}
body[data-module="lab"] .dl-classroom{padding:30px;margin:16px 0;border-radius:20px;background:#fff;border:1px solid #dce6e4;box-shadow:0 8px 28px rgba(31,74,69,.035)}
body[data-module="lab"] .dl-classroom>p{font-size:14px;line-height:2.05;color:#506863;margin-bottom:18px}
body[data-module="lab"] .dl-question-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
body[data-module="lab"] .dl-question-grid>div{min-width:0;padding:17px;background:#f6f9f7;border:1px solid #e4ece7;border-radius:14px}
body[data-module="lab"] .dl-question-grid strong{display:block;font-size:12px;color:#2e6953;margin-bottom:6px}
body[data-module="lab"] .dl-question-grid p{font-size:12px;line-height:1.9;color:#52675f}
body[data-module="lab"] .dl-quick-check{margin-top:16px;padding:18px 20px;border-right:4px solid #d7a845;background:#fff8e8;border-radius:13px}
body[data-module="lab"] .dl-quick-check strong{font-size:13px}
body[data-module="lab"] .dl-quick-check p{margin:5px 0 0;font-size:13px;line-height:1.9}
body[data-module="lab"] .dl-before-use{padding:24px 28px;margin:16px 0;border-radius:19px;background:#f8f6f0;border:1px solid #e5dfcf}
body[data-module="lab"] .dl-before-use p{font-size:13px;line-height:2;color:#5f625b;margin:5px 0}
body[data-module="lab"] .dl-before-use small{display:block;margin-top:10px;font-size:11px;color:#7c8178}
body[data-module="lab"] .dl-final-actions{display:flex;gap:10px;justify-content:flex-start;align-items:center;padding:17px 0}
body[data-module="lab"] .dl-final-actions a,body[data-module="lab"] .dl-final-actions button{min-width:230px;text-align:center;font-size:13px}

/* Catalogue and sidebar readability. */
body[data-module="lab"] .dl-card-head .dl-review,body[data-module="lab"] .dl-card .dl-badges span{font-size:10px}
body[data-module="lab"] .dl-card>p{font-size:13px;line-height:2;min-height:52px}
body[data-module="lab"] .dl-card .dl-facts span{font-size:10px}
body[data-module="lab"] .dl-card .dl-fit strong{font-size:11px}
body[data-module="lab"] .dl-card .dl-fit p,body[data-module="lab"] .dl-card .dl-fit small{font-size:11px;line-height:1.9}
body[data-module="lab"] .dl-open-guide{font-size:12px;min-height:43px}
body[data-module="lab"] .module-menu-item{grid-template-columns:38px minmax(0,1fr);padding:12px}
body[data-module="lab"] .module-menu-item strong{font-size:12px;line-height:1.7;white-space:normal}
body[data-module="lab"] .module-menu-item small{font-size:9px;line-height:1.8}

@media(max-width:1100px){
 body[data-module="lab"] header.dl-full-head{grid-template-columns:minmax(0,1fr) 260px;padding:27px;gap:18px}
 body[data-module="lab"] .dl-full-head h1{font-size:29px}
 body[data-module="lab"] .dl-guide-section{grid-template-columns:42px minmax(0,1fr);gap:16px;padding:24px}
 body[data-module="lab"] .dl-guide-section aside{grid-column:2}
}
@media(max-width:820px){
 body[data-module="lab"] .sidebar{display:none}
 body[data-module="lab"] .sidebar.open{display:flex}
 body[data-module="lab"] .module-rail{scrollbar-width:none}
 body[data-module="lab"] .module-rail::-webkit-scrollbar{display:none}
 body[data-module="lab"] header.dl-full-head,body[data-module="lab"] .dl-guide-intro,body[data-module="lab"] .dl-question-grid{grid-template-columns:1fr}
 body[data-module="lab"] header.dl-full-head{min-height:0;padding:23px}
 body[data-module="lab"] .dl-launch-box{padding:21px}
 body[data-module="lab"] .dl-full-head h1{font-size:27px}
}
@media(max-width:560px){
 body[data-module="lab"] .dl-guide-nav{margin-bottom:8px}
 body[data-module="lab"] header.dl-full-head{padding:18px;border-radius:20px}
 body[data-module="lab"] .dl-full-head h1{font-size:23px;line-height:1.65;margin-top:14px}
 body[data-module="lab"] .dl-guide-lead{font-size:13px}
 body[data-module="lab"] .dl-guide-intro>div,body[data-module="lab"] .dl-guide-section,body[data-module="lab"] .dl-classroom,body[data-module="lab"] .dl-before-use{padding:19px}
 body[data-module="lab"] .dl-guide-section{grid-template-columns:1fr}
 body[data-module="lab"] .dl-guide-section aside{grid-column:1}
 body[data-module="lab"] .dl-step-number{width:36px;height:36px;font-size:14px}
 body[data-module="lab"] .dl-guide-section h2,body[data-module="lab"] .dl-classroom h2,body[data-module="lab"] .dl-before-use h2{font-size:19px}
 body[data-module="lab"] .dl-control-list li{grid-template-columns:1fr;gap:3px}
 body[data-module="lab"] .dl-control-list b,body[data-module="lab"] .dl-control-list span{text-align:right}
 body[data-module="lab"] .dl-final-actions{flex-direction:column;align-items:stretch}
 body[data-module="lab"] .dl-final-actions a,body[data-module="lab"] .dl-final-actions button{width:100%;min-width:0}
}

/* Conversation redesign v3 */
body[data-module="lab"] .dl-hero{min-height:0;grid-template-columns:minmax(0,1fr) 170px;padding:25px 28px;border-radius:22px;box-shadow:0 15px 40px rgba(27,76,88,.14)}
body[data-module="lab"] .dl-hero h1{font-size:26px;line-height:1.55;margin:4px 0 6px}
body[data-module="lab"] .dl-hero p{font-size:13px;line-height:1.9;margin:0}
body[data-module="lab"] .dl-hero-stat strong{font-size:34px}
body[data-module="lab"] .dl-starters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin-top:14px}
body[data-module="lab"] .dl-starters button{min-height:42px;padding:7px 10px;text-align:right;border:1px solid rgba(255,255,255,.16);border-radius:10px;line-height:1.65}
body[data-module="lab"] .dl-starters button span{display:block;color:#f5cb87;font-size:9px;font-weight:800}
body[data-module="lab"] .dl-starters button i{display:block;margin-top:5px;color:#cfe4e8;font-size:9px;font-style:normal}
body[data-module="lab"] .dl-starter-heading{margin-top:18px;font-size:11px;color:#dcebec}
body[data-module="lab"] .dl-onboard{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin:18px 0 4px}
body[data-module="lab"] .dl-onboard>div{display:flex;align-items:center;gap:8px;padding:9px;border:1px solid rgba(255,255,255,.14);border-radius:12px;background:rgba(255,255,255,.06)}
body[data-module="lab"] .dl-onboard b{display:grid;place-items:center;flex:0 0 25px;height:25px;border-radius:50%;background:#f3c778;color:#173f34}
body[data-module="lab"] .dl-onboard span,body[data-module="lab"] .dl-onboard strong,body[data-module="lab"] .dl-onboard small{display:block}
body[data-module="lab"] .dl-onboard strong{font-size:10px;color:#fff}body[data-module="lab"] .dl-onboard small{font-size:8px;color:#cfe0e1;margin-top:2px}
body[data-module="lab"] .dl-chat-locked{display:flex;align-items:center;gap:12px;margin:0;padding:15px 18px;border-top:1px solid #dce7e5;background:#eef7f1}
body[data-module="lab"] .dl-chat-locked>span{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:#2f7c59;color:#fff;font-weight:800}
body[data-module="lab"] .dl-chat-locked>div{flex:1}body[data-module="lab"] .dl-chat-locked strong{display:block;font-size:12px}body[data-module="lab"] .dl-chat-locked p{margin:3px 0 0;font-size:10px;color:#5e7368}
body[data-module="lab"] .dl-admin-dashboard{display:flex;justify-content:center;margin:12px 0 24px;padding:12px;border:1px dashed #8ab2bd;border-radius:12px;color:#28687a;text-decoration:none;font-weight:700}
body[data-module="lab"] .dl-chat-shell{margin:14px 0;border-radius:19px;box-shadow:0 10px 32px rgba(29,70,76,.065)}
body[data-module="lab"] .dl-chat-shell>header{height:auto!important;min-height:62px;padding:11px 16px}
body[data-module="lab"] .dl-chat-shell>header button{min-height:40px;font-size:11px}
body[data-module="lab"] .dl-chat-log{min-height:180px;max-height:none;padding:20px;background:#f8fbfa}
body[data-module="lab"] .dl-message{max-width:min(850px,94%)}
body[data-module="lab"] .dl-message>span{font-size:10px;font-weight:700}
body[data-module="lab"] .dl-bubble{padding:13px 16px;border-radius:16px;box-shadow:none}
body[data-module="lab"] .dl-bubble>p{font-size:14px;line-height:1.95}
body[data-module="lab"] .dl-message.user .dl-bubble{background:#28687a}

/* Stage 4: familiar messenger direction and calm message arrival. */
body[data-module="lab"] .dl-message.user{align-self:flex-start;align-items:flex-start}
body[data-module="lab"] .dl-message.assistant,body[data-module="lab"] .dl-message.error{align-self:flex-end;align-items:flex-end}
body[data-module="lab"] .dl-message.user .dl-bubble{border-radius:17px 17px 17px 5px;animation:dl-message-arrive .24s ease-out}
body[data-module="lab"] .dl-message.assistant .dl-bubble{border-radius:17px 17px 5px 17px}
@keyframes dl-message-arrive{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){body[data-module="lab"] .dl-message.user .dl-bubble{animation:none}}
body[data-module="lab"] .dl-message.error .dl-bubble{background:#fff2ee;border-color:#e8cfc7;color:#8b493b}
body[data-module="lab"] .dl-message.no-result .dl-bubble{background:#fffaf0;border-color:#e7dcc5}
body[data-module="lab"] #dl-chat{padding:12px 16px}
body[data-module="lab"] .dl-composer-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:5px}
body[data-module="lab"] .dl-composer-heading label{margin:0;font-size:11px}
body[data-module="lab"] .dl-composer-heading span{font-size:9px;color:#84918d}
body[data-module="lab"] #dl-chat textarea{min-height:52px;resize:none;font-size:14px;line-height:1.8}
body[data-module="lab"] #dl-chat button.primary{min-width:92px;min-height:44px}
body[data-module="lab"] #dl-chat button.primary b{font-size:17px;margin-right:5px}
body[data-module="lab"] .dl-chat-result{margin-top:12px;padding:15px;border-radius:15px;background:#fff;border:1px solid #d8e6e7}
body[data-module="lab"] .dl-card-identity{display:grid;grid-template-columns:42px minmax(0,1fr) auto;gap:10px;align-items:center}
body[data-module="lab"] .dl-type-icon{width:42px;height:42px;display:grid;place-items:center;border-radius:12px;background:#e5f1f4;color:#28687a;font-size:20px}
body[data-module="lab"] .dl-card-identity small{display:block;font-size:9px;color:#6d807b}
body[data-module="lab"] .dl-card-identity h2{font-size:16px;line-height:1.7;margin:0}
body[data-module="lab"] .dl-card-identity>b{width:26px;height:26px;display:grid;place-items:center;border-radius:8px;background:#edf4f1;color:#2d6952;font-size:11px}
body[data-module="lab"] .dl-chat-result .dl-facts{margin:10px 0}
body[data-module="lab"] .dl-chat-result .dl-facts span{font-size:10px;padding:5px 8px}
body[data-module="lab"] .dl-chat-result .dl-fit{margin:7px 0;padding:9px 11px}
body[data-module="lab"] .dl-chat-result .dl-fit p{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:11px;line-height:1.8}
body[data-module="lab"] .dl-card-action{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:10px}
body[data-module="lab"] .dl-card-action>span{font-size:9px;color:#71827c}
body[data-module="lab"] .dl-card-action .dl-open-guide{width:auto;min-width:155px;min-height:40px;margin:0}
body[data-module="lab"] .dl-card>.dl-review{display:inline-flex;align-self:flex-start;margin:10px 0 0;font-size:10px}
body[data-module="lab"] .dl-refine{display:flex;align-items:center;flex-wrap:wrap;gap:6px;margin-top:12px;padding-top:10px;border-top:1px solid #eadfcb}
body[data-module="lab"] .dl-refine strong{width:100%;font-size:10px;color:#705f3e}
body[data-module="lab"] .dl-refine button{padding:6px 10px;border:1px solid #ddcfb5;border-radius:999px;background:#fff;font-size:10px}
body[data-module="lab"] .dl-typing{display:flex;gap:4px;margin-bottom:5px}
body[data-module="lab"] .dl-typing i{width:6px;height:6px;border-radius:50%;background:#397491;animation:dltyping 1.1s infinite}
body[data-module="lab"] .dl-typing i:nth-child(2){animation-delay:.15s}body[data-module="lab"] .dl-typing i:nth-child(3){animation-delay:.3s}
@keyframes dltyping{0%,70%,100%{opacity:.25;transform:translateY(0)}35%{opacity:1;transform:translateY(-3px)}}
body[data-module="lab"] .dl-empty>span{display:block;font-size:30px;color:#72908a}
body[data-module="lab"] .dl-empty strong{display:block;font-size:16px}
body[data-module="lab"] .dl-empty p{font-size:13px;color:#6d7d77}
@media(max-width:700px){body[data-module="lab"] .dl-hero{grid-template-columns:1fr;padding:21px}body[data-module="lab"] .dl-hero-stat{display:none}body[data-module="lab"] .dl-onboard{grid-template-columns:1fr}body[data-module="lab"] .dl-starters{grid-template-columns:1fr}body[data-module="lab"] .dl-chat-log{padding:13px}body[data-module="lab"] .dl-card-action{align-items:stretch;flex-direction:column}body[data-module="lab"] .dl-card-action .dl-open-guide{width:100%}body[data-module="lab"] .dl-chat-locked{align-items:stretch;flex-wrap:wrap}body[data-module="lab"] .dl-chat-locked button{width:100%}}

/* Conversation list and viewport fixes shared by old and newly opened lab items. */
body[data-module="lab"] #module-menu{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-gutter:stable}
body[data-module="lab"] .dl-conversation-row{position:relative;display:block;margin-bottom:4px;padding-left:30px}
body[data-module="lab"] .dl-conversation-row .module-menu-item{width:100%;min-width:0}
body[data-module="lab"] .dl-delete-chat{position:absolute;left:2px;top:8px;z-index:2;width:26px;height:26px;min-height:0;padding:0;border-radius:8px;color:#a45d50}
body[data-module="lab"] .dl-delete-chat:hover{background:#faeae7}
body[data-module="lab"] .dl-chat-shell{height:min(670px,calc(100dvh - 150px));min-height:430px;display:grid;grid-template-rows:auto minmax(0,1fr) auto;overflow:hidden}
body[data-module="lab"] .dl-chat-log{min-height:0!important;max-height:none!important;overflow-y:auto!important;overscroll-behavior:contain;scrollbar-gutter:stable}
body[data-module="lab"] .dl-chat-shell>header,body[data-module="lab"] #dl-chat{position:relative;z-index:2;background:#fff}
body[data-module="lab"] #module-home.dl-chat-focused{height:calc(100dvh - 96px);overflow:hidden}
body[data-module="lab"] #module-home.dl-chat-focused .dl-hero{display:none}
body[data-module="lab"] #module-home.dl-chat-focused .dl-chat-shell{height:100%;margin:0}
body[data-module="lab"] .dl-guide-meta .dl-badges{margin:0}body[data-module="lab"] .dl-guide-meta .dl-review{display:none}
@media(max-width:820px){body[data-module="lab"] .dl-chat-shell{height:calc(100dvh - 170px);min-height:460px}}
