:root{color-scheme:light;--bg:#f7f8fa;--panel:#fff;--ink:#172f2b;--muted:#758581;--accent:#116d5b;--line:#e3e9e6;--deep:#092b25;--soft:#e9f3ef}*{box-sizing:border-box}body{margin:0;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:var(--bg);color:var(--ink);-webkit-font-smoothing:antialiased}button,input,textarea,select{font:inherit}button{cursor:pointer}a{color:var(--accent)}.hidden{display:none!important}.auth-view{min-height:100svh;display:grid;place-items:center;background:radial-gradient(circle at 82% 20%,#e4f2ec 0%,transparent 33%),radial-gradient(circle at 10% 100%,#dde9e7 0%,transparent 35%),#f7f9f8;padding:20px}.auth-card{width:min(510px,100%);padding:58px;background:#fff;border:1px solid #e0e9e4;border-radius:22px;box-shadow:0 22px 80px #13352c12}.auth-mark,.brand-logo{display:grid;place-items:center;background:#0b5c4d;color:#fff;font-size:26px;font-weight:800;border-radius:12px;width:49px;height:49px;letter-spacing:-3px}.auth-mark span,.brand-logo span{color:#8dd4b8}.kicker,.eyebrow{font-size:10px;font-weight:750;letter-spacing:1.7px;color:#31826c;margin:22px 0 9px}.auth-card h1{font-size:39px;letter-spacing:-1.5px;margin:0}.auth-card h1 em,.hero h2 em{font-style:normal;color:#24836b}.subtle{color:#647b74;line-height:1.6}.auth-card label{display:block;font-size:12px;font-weight:700;margin:34px 0 10px}.input-row{display:flex;gap:8px}.input-row input{min-width:0;flex:1;border:1px solid #d9e5df;border-radius:10px;padding:14px 13px;outline:none}.input-row input:focus,.composer:focus-within{border-color:#4b9b83;box-shadow:0 0 0 4px #228e7015}.primary{border:0;border-radius:10px;padding:13px 19px;background:#116d5b;color:#fff;font-size:13px;font-weight:700;white-space:nowrap}.primary:hover{background:#0c5749}.error{min-height:16px;color:#b14c45;font-size:12px}.auth-foot{font-size:11px;color:#84958f;border-top:1px solid var(--line);padding-top:22px;margin-top:35px}.layout{display:flex;min-height:100svh}.sidebar{width:258px;flex:0 0 258px;background:#fff;border-right:1px solid var(--line);display:flex;flex-direction:column;justify-content:space-between;padding:30px 17px 22px}.brand{display:flex;gap:12px;align-items:center;padding:0 10px 36px}.brand-logo{width:39px;height:39px;border-radius:10px;font-size:21px}.brand strong{font-size:14px;letter-spacing:-.2px}.brand small{display:block;font-size:10px;color:var(--muted);margin-top:4px}.aside-label{font-size:9px;color:#9aaaa4;font-weight:750;letter-spacing:1.3px;margin:0 13px 14px}.aside-label.space{margin-top:33px}.nav{display:flex;gap:12px;align-items:center;border:none;background:transparent;border-radius:9px;padding:13px;color:#61746f;text-align:left;width:100%;font-size:12px;font-weight:600}.nav span:first-child{font-size:19px;width:20px;text-align:center;font-weight:400}.nav:hover,.mode:hover{background:#f3f8f5}.nav.active{background:#e7f4ed;color:#0e6855}.nav-pin{width:5px;height:5px;background:#1d8f6e;border-radius:50%;margin-left:auto}.modes{padding:0 5px}.mode{display:block;border:0;background:transparent;padding:10px 14px;color:#788783;font-size:12px;text-align:left;width:100%;border-radius:7px}.mode.active{color:#135b4d;font-weight:700;background:#f0f7f4}.side-bottom{border-top:1px solid var(--line);padding:19px 11px 0}.side-status{font-size:10px;color:#647870;display:flex;gap:8px;align-items:center}.dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:#21916e;flex:0 0 auto}.logout{border:0;background:none;color:#99a5a0;font-size:11px;padding:18px 0 0}.workspace{min-width:0;display:flex;flex:1;flex-direction:column;min-height:100svh}.topbar{height:74px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 42px}.path{font-size:10px;letter-spacing:1px;color:#8a9994;font-weight:700}.path span{margin:0 12px;color:#cbd3ce}.path strong{color:#43574f;letter-spacing:0}.head-right{display:flex;align-items:center;gap:22px}.tag{font-size:9px;letter-spacing:.7px;color:#477d66;background:#ebf4ed;padding:8px 11px;border-radius:5px;font-weight:700}.avatar{width:32px;height:32px;display:grid;place-items:center;background:#e0e5e4;color:#405c55;border-radius:50%;font-weight:800;font-size:12px}.panel{flex:1;min-height:0}.chat-panel{display:flex;flex-direction:column;max-height:calc(100svh - 113px)}.messages{flex:1;overflow-y:auto;padding:28px max(26px,calc((100% - 760px)/2));scroll-behavior:smooth}.hero{padding:45px 0 20px}.hero-icon{width:46px;height:46px;border-radius:13px;background:#dcf0e5;color:#16755f;display:grid;place-items:center;font-size:28px;margin-bottom:28px}.hero .eyebrow{margin:0 0 15px}.hero h2{font-size:clamp(30px,3.5vw,44px);font-weight:680;letter-spacing:-1.8px;line-height:1.18;margin:0 0 19px}.hero p{font-size:13px;color:#7d8f86;line-height:1.8;max-width:570px}.suggestions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:35px}.suggestions button{border:1px solid #e0e8e3;border-radius:11px;background:#fff;padding:18px;text-align:left;font-size:12px;font-weight:650;color:#425f53;display:flex;justify-content:space-between;gap:8px}.suggestions button:hover{border-color:#9bcbb1;box-shadow:0 7px 22px #123f2710}.suggestions span{color:#298366}.composer-wrap{padding:13px max(22px,calc((100% - 760px)/2)) 17px;background:linear-gradient(#f7f8fa66,#f7f8fa)}.composer{background:#fff;border:1px solid #dfe7e2;border-radius:15px;padding:14px 15px 12px;box-shadow:0 8px 25px #0a302d09}.composer textarea{width:100%;border:0;outline:0;resize:none;line-height:1.5;min-height:50px;background:transparent;color:#1c3630;font-size:13px}.composer-toolbar{display:flex;align-items:center;justify-content:space-between}.compose-note{font-size:10px;color:#9daaa3;display:flex;align-items:center;gap:7px}.composer-toolbar button{background:#116d5b;color:#fff;border:0;width:32px;height:32px;border-radius:8px;font-size:20px;font-weight:700}.composer-toolbar button:disabled{opacity:.4;cursor:not-allowed}.disclaimer{text-align:center;color:#9ea9a4;font-size:9px;margin:10px 0 0}.message{margin:22px 0;display:flex;gap:13px;align-items:flex-start}.message .bubble{max-width:100%;min-width:0}.message.user{justify-content:flex-end}.message.user .bubble{max-width:85%;background:#e7f0eb;border-radius:14px 14px 3px 14px;padding:13px 17px;color:#27453b}.message.assistant .badge-mini{display:grid;place-items:center;background:#0e6a58;color:#fff;width:28px;height:28px;flex:0 0 auto;border-radius:9px;font-weight:800}.message.assistant .body{line-height:1.72;white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px}.sources{display:flex;gap:7px;flex-wrap:wrap;margin-top:13px}.sources a{display:inline-block;font-size:10px;color:#17644f;padding:7px 9px;background:#e6f2eb;border-radius:7px;text-decoration:none}.sources a:hover{text-decoration:underline}.tool-mini{margin:12px 0;padding:12px;border-radius:8px;background:#f0f6f2;border-left:3px solid #3b977b;font-size:11px;color:#3c6955}.typing{animation:blink 1.2s infinite;color:#6f9080;font-size:12px}@keyframes blink{50%{opacity:.35}}.tool-panel{padding:47px clamp(22px,7vw,90px);overflow-y:auto}.tool-top .eyebrow{margin:0}.tool-top h2{font-size:37px;letter-spacing:-1.2px;margin:12px 0}.tool-top p{color:#84938d;font-size:13px;line-height:1.6}.form-card{max-width:610px;background:#fff;border:1px solid var(--line);padding:28px;border-radius:14px;margin-top:31px;box-shadow:0 10px 30px #16492e0a}.form-card label{display:block;font-size:12px;font-weight:700;margin-bottom:20px}.form-card input,.form-card select{display:block;margin-top:9px;width:100%;border:1px solid #d7e3db;border-radius:9px;padding:13px 14px;background:white;outline:none;color:#1e4034}.action{margin-bottom:6px}.tool-result{margin-top:20px;border-top:1px solid var(--line);padding-top:20px;font-size:13px;line-height:1.7;color:#456557;white-space:pre-wrap}.architecture{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;max-width:820px;margin-top:29px}.architecture article{padding:21px;border:1px solid #e1ebe5;background:white;border-radius:13px}.arch-n{font-size:10px;color:#4c9880;font-weight:800}.architecture h3{font-size:14px;margin:10px 0}.architecture p{font-size:12px;color:#7b8e83;line-height:1.6;margin:0}.about-links{display:flex;gap:22px;margin-top:22px;font-size:12px}.footer{padding:13px 42px;border-top:1px solid #e4ebe8;display:flex;justify-content:space-between;gap:18px;font-size:9px;color:#9faeaa;letter-spacing:.4px}.mobile-nav{display:none}@media(max-width:800px){.sidebar{width:220px;flex-basis:220px}.topbar{padding:0 21px}.footer{padding:13px 19px}.tag{display:none}.messages{padding:24px}.composer-wrap{padding:12px 19px}.hero{padding:28px 0}}@media(max-width:640px){.sidebar{position:fixed;left:0;top:0;bottom:0;z-index:20;transform:translateX(-110%);transition:transform .2s;box-shadow:12px 0 60px #10352e19}.sidebar.open{transform:none}.mobile-nav{display:block;background:transparent;border:0;font-size:20px;margin-right:12px}.topbar{justify-content:initial;height:60px}.head-right{margin-left:auto}.chat-panel{max-height:calc(100svh - 100px)}.footer{font-size:8px}.footer span:last-child{display:none}.suggestions,.architecture{grid-template-columns:1fr}.hero h2{font-size:32px}.hero{padding-top:20px}.hero p{font-size:12px}.auth-card{padding:36px 25px}.input-row{flex-direction:column}.tool-panel{padding:30px 20px}}

/* NovaPay official palette; independent prototype UI. */
:root{--ink:#211e2b;--accent:#690dd3;--deep:#31134b;--soft:#f6efff}
.brand{gap:9px;padding:0 5px 36px}
.brand-image{width:137px;max-width:137px;height:auto;max-height:48px;object-fit:contain;flex:0 0 auto}
.brand-product{min-width:0;display:flex;flex-direction:column;gap:2px}
.brand-product strong{font-size:11px;letter-spacing:-.2px;white-space:nowrap}
.brand-product small{font-size:9px;white-space:nowrap}
.auth-view{position:fixed;z-index:1000;inset:0;min-height:0;overflow:auto;display:flex;align-items:center;justify-content:center;padding:22px;background:#1e1137a6;backdrop-filter:blur(5px)}
.auth-card{position:relative;width:min(480px,100%);padding:38px 36px;box-shadow:0 26px 95px #150a3680}
.auth-logo{display:block;width:205px;height:auto;max-height:60px;object-fit:contain;object-position:left center}
.auth-card h1{font-size:30px;letter-spacing:-1px;line-height:1.2}
.auth-card .kicker{color:#6d32a9;margin-top:26px}
.auth-foot{margin-top:20px;font-size:10px}
.modal-close{position:absolute;right:20px;top:15px;font-size:25px;line-height:1;background:transparent;border:0;color:#84808f;padding:5px}
.modal-close:hover{color:#420d8b}
.modal-open{overflow:hidden}
.brand-logo,.auth-mark{background:#690dd3}
.hero h2 em{color:#690dd3}
.kicker,.eyebrow{color:#690dd3}
.primary,.composer-toolbar button{background:#690dd3}
.primary:hover,.composer-toolbar button:hover{background:#4d0fa2}
.nav.active{background:#f2eafd;color:#6617bc}
.nav:hover,.mode:hover{background:#f9f5ff}
.mode.active{color:#5b14b3;background:#f6efff}
.nav-pin,.dot{background:#7a28df}
.hero-icon{background:#f1e5ff;color:#690dd3}
.suggestions button:hover{border-color:#be98eb}
.suggestions span,.arch-n{color:#690dd3}
.tag{background:#f2eaff;color:#6b25b3}
.source-link,.sources a{background:#f2eaff;color:#6413bd}
.message.assistant .badge-mini{background:#690dd3}
.tool-mini{background:#f5eefd;border-left-color:#8d44e2;color:#6022a5}
.side-status .dot,.compose-note .dot{background:#6f26da}
.header-logo{display:none;width:103px;height:auto;object-fit:contain}
.unlock-btn{background:#f4ecff;border:1px solid #e3d2fa;padding:9px 12px;border-radius:8px;color:#6514bf;font-size:11px;font-weight:750;white-space:nowrap}
.unlock-btn:hover{background:#eadcff}
.unlock-btn span{margin-left:7px}
.auth-card .input-row input:focus,.composer:focus-within{border-color:#975fe5;box-shadow:0 0 0 4px #7b24d414}
.form-card input:focus,.form-card select:focus{outline:2px solid #b68beb}
@media(max-width:800px){.brand-image{width:113px}.brand-product strong{font-size:10px}.brand-product small{font-size:8px}}
@media(max-width:640px){.header-logo{display:block;width:93px;max-height:30px;margin-right:12px}.path{display:none}.auth-card{padding:32px 22px}.auth-logo{width:178px}.auth-card h1{font-size:27px}.head-right{gap:10px}.avatar{display:none}}

/* Crop whitespace/footer marks present in the official brandbook PNG without altering its actual logo. */
.auth-logo{height:45px;max-height:none;object-fit:cover;object-position:left top;overflow:hidden}
.brand-image{height:33px;max-height:none;object-fit:cover;object-position:left top}
.header-logo{height:23px;max-height:none;object-fit:cover;object-position:left top}
@media(max-width:800px){.brand-image{height:29px}}
@media(max-width:640px){.auth-logo{height:40px}.header-logo{height:22px}}

/* Brand header: vertical logo and title, no decorative user avatar. */
.sidebar .brand{flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:7px;padding:0 10px 32px}
.sidebar .brand-image{width:154px;max-width:100%;height:37px;max-height:none;object-fit:cover;object-position:left top;flex:none}
.sidebar .brand-product{display:flex;flex-direction:column;gap:3px;min-width:0;padding-left:2px}
.sidebar .brand-product strong{font-size:13px;line-height:1.3;font-weight:730;white-space:normal}
.sidebar .brand-product small{font-size:10px;line-height:1.3;white-space:normal;color:#7b847f}
@media(max-width:800px){.sidebar .brand-image{width:146px;height:35px}}

.citation-marker{display:inline-block;margin:0 2px;color:#6f21c6;text-decoration:none;font-size:11px;font-weight:650}.citation-marker:hover{text-decoration:underline}

/* Compact mobile usability and slide-out navigation */
.mobile-backdrop{display:none}
@media(max-width:640px){
 .topbar{height:56px;padding:0 14px;gap:6px}
 .head-right{gap:6px}
 .unlock-btn{padding:9px 11px;font-size:11px}
 .header-logo{width:97px;max-height:30px}
 .sidebar{width:min(290px,86vw);flex-basis:auto;padding:25px 16px 18px}
 .mobile-backdrop.visible{position:fixed;display:block;inset:0;z-index:19;background:rgba(24,13,40,.42)}
 .messages{padding:18px 15px}
 .hero{padding:24px 0 8px}
 .hero-icon{width:40px;height:40px;margin-bottom:20px}
 .hero h2{font-size:clamp(29px,8vw,38px);line-height:1.2;letter-spacing:-1.2px}
 .hero p{font-size:13px;line-height:1.6}
 .suggestions{gap:9px;margin-top:23px}
 .suggestions button{padding:15px;min-height:56px}
 .chat-panel{max-height:calc(100svh - 93px)}
 .composer-wrap{padding:8px 12px 12px}
 .composer{padding:10px 12px;border-radius:13px}
 .composer textarea{font-size:16px;min-height:44px}
 .compose-note{font-size:10px}
 .disclaimer{font-size:9px;line-height:1.35}
 .message{margin:15px 0;gap:8px}
 .message .body{font-size:13px;line-height:1.6}
 .message.user .bubble{max-width:88%;padding:10px 13px}
 .sources a{max-width:100%;overflow-wrap:anywhere}
 .tool-panel{padding:26px 16px}
 .tool-top h2{font-size:30px}
 .form-card{padding:18px}
 .footer{padding:10px 12px;font-size:8px}
 .input-row{gap:11px}
 .auth-view{padding:13px}
 .auth-card{max-height:calc(100svh - 26px);overflow:auto}
}

/* Two-column mobile shortcuts so all suggestions remain visible above the composer */
@media(max-width:640px){
.suggestions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:19px}
.suggestions button{min-width:0;min-height:62px;padding:12px;font-size:11px;line-height:1.35;align-items:center}
.suggestions button span{flex:none}
.hero{padding-top:19px}
.hero-icon{margin-bottom:15px}
.hero p{margin-top:11px}
}


/* Chat-first layout: a single primary workspace, auxiliary tools in accessible dialogs. */
html,body{min-height:100%;height:100%}
.chat-first-layout{display:block;width:100%;min-height:100dvh}
.chat-first-layout .workspace{width:100%;height:100dvh;min-height:0;display:flex;flex-direction:column;overflow:hidden}
.chat-first-layout .topbar{flex:0 0 auto;min-height:78px;height:auto;width:100%;padding:15px clamp(18px,4.2vw,72px);gap:20px;background:#fff;display:flex;align-items:center;justify-content:space-between;box-shadow:0 1px 0 #e9e8ed;z-index:2}
.header-brand{display:flex;align-items:center;gap:15px;min-width:0;flex-shrink:0}
.chat-first-layout .header-logo{display:block;width:146px;height:34px;max-height:none;margin:0;object-fit:cover;object-position:left top;flex-shrink:0}
.header-identity{display:flex;flex-direction:column;min-width:0;padding-left:16px;border-left:1px solid #ece6f3;gap:3px}
.header-identity strong{font-size:14px;color:#27212e;font-weight:770;letter-spacing:-.3px;white-space:nowrap}
.header-identity small{font-size:10px;color:#96909e;white-space:nowrap}
.header-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;min-width:0}
.top-action{border:1px solid #e8e0f0;background:#fff;color:#50425d;border-radius:11px;padding:11px 15px;display:inline-flex;align-items:center;gap:9px;font-size:12px;line-height:1.2;font-weight:680;white-space:nowrap;transition:background .15s,border-color .15s}
.top-action:hover,.top-action:focus-visible{background:#f9f4ff;border-color:#cdb2ec}
.top-action .action-glyph{font-size:16px;color:#7418d2;font-weight:700;line-height:1;display:inline-flex;align-items:center;justify-content:center}
.header-actions .unlock-btn{padding:11px 15px;border-radius:11px;font-size:12px;line-height:1.2}
.header-actions .header-logout{margin:0;padding:11px 15px;border-radius:11px;color:#746c7a;background:#f7f6f9;border:1px solid #eeecf0;font-size:11px;font-weight:700}
.header-actions .header-logout:hover{background:#ede6f5}
.chat-first-layout .chat-panel{flex:1;min-height:0;max-height:none;display:flex;flex-direction:column;overflow:hidden}
.chat-first-layout .messages{width:100%;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:30px max(22px,calc((100% - 850px)/2)) 16px}
.chat-first-layout .hero{padding:clamp(15px,4vh,38px) 0 15px}
.chat-first-layout .hero-icon{margin-bottom:22px}
.chat-first-layout .hero h2{font-size:clamp(34px,4vw,49px);margin-bottom:14px}
.chat-first-layout .hero p{font-size:14px;line-height:1.72;max-width:670px}
.chat-first-layout .suggestions{margin-top:26px;gap:10px}
.chat-first-layout .suggestions button{padding:17px 18px;font-size:12px;border-radius:12px;align-items:center}
.chat-first-layout .composer-wrap{padding:10px max(22px,calc((100% - 850px)/2)) 12px;flex-shrink:0}
.chat-first-layout .composer textarea{font-size:14px}
.chat-first-layout .footer{flex:0 0 auto;padding:11px clamp(18px,4.2vw,72px);min-height:36px}
.chat-first-layout .disclaimer{font-size:10px;line-height:1.4;color:#a09aa8}

/* Tool and information dialogs, independent of the access/password dialog. */
.dialog-scrim{position:fixed;inset:0;z-index:500;display:flex;justify-content:center;align-items:center;padding:20px;background:rgba(28,19,44,.54);backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px)}
.dialog-card{position:relative;width:min(540px,100%);max-height:min(800px,calc(100dvh - 40px));overflow-y:auto;overscroll-behavior:contain;outline:none;background:#fff;border:1px solid #eee6f3;border-radius:22px;box-shadow:0 32px 95px #22103540;padding:32px}
.dialog-card:focus-visible{outline:2px solid #a47bd2;outline-offset:2px}
.dialog-close{position:absolute;top:14px;right:16px;border:0;background:#f7f4fa;border-radius:9px;color:#695e74;font-size:25px;line-height:1;width:36px;height:36px;display:grid;place-items:center}
.dialog-close:hover{background:#efe3fc;color:#5510a7}
.dialog-kicker{display:block;font-size:10px;font-weight:800;letter-spacing:1.6px;color:#7414d2;margin-bottom:11px}
.dialog-card h2{margin:0 45px 9px 0;color:#241c31;font-size:clamp(26px,3.6vw,32px);font-weight:750;letter-spacing:-1px;line-height:1.18}
.dialog-card p{color:#82798c;font-size:13px;line-height:1.65}
.dialog-heading p{margin:0 0 24px}
.fee-form label{display:block;font-size:12px;font-weight:700;color:#31293a;margin:16px 0 18px}
.fee-form input,.fee-form select{display:block;width:100%;margin-top:9px;padding:14px 12px;border:1px solid #e3dceb;border-radius:10px;background:#fff;color:#2c2338;font-size:14px;outline:none}
.fee-form input:focus,.fee-form select:focus{border-color:#9d69e6;box-shadow:0 0 0 3px #8b44de15}
.fee-submit{width:100%;margin-top:5px;padding:14px;border-radius:11px}
.dialog-card .tool-result{border-top:1px solid #eee8f3;margin-top:24px;padding-top:19px;font-size:13px;line-height:1.7;color:#574665;white-space:pre-wrap;overflow-wrap:anywhere}
.dialog-card .tool-result a{display:inline-block;color:#6f18c5;margin-top:3px;font-weight:700}
.about-dialog{width:min(560px,100%)}
.about-dialog .dialog-lead{font-size:14px;margin:0 0 23px;color:#5b5068}
.how-steps{display:grid;gap:16px;margin:24px 0}
.how-step{display:flex;gap:15px;align-items:flex-start}
.how-number{flex:0 0 auto;display:grid;place-items:center;width:32px;height:32px;border-radius:9px;background:#f4eaff;color:#761ccc;font-size:11px;font-weight:800}
.how-step strong{font-size:14px;color:#35273d}
.how-step p{margin:5px 0 0;font-size:12px;color:#7b7184;line-height:1.6}
.how-note{border-radius:12px;background:#faf8fc;border:1px solid #f0edf3;padding:14px 15px;color:#81778a;font-size:12px;line-height:1.65}
.about-done{margin-top:20px;width:100%;border-radius:11px}
@media(max-width:1000px){
 .chat-first-layout .topbar{padding:12px 20px}
 .header-brand{gap:11px}
 .chat-first-layout .header-logo{width:126px;height:29px}
 .header-identity{padding-left:12px}
 .top-action{padding:10px 11px}
 .header-actions .unlock-btn{padding:10px 11px}
}
@media(max-width:700px){
 .chat-first-layout .topbar{display:grid;grid-template-columns:minmax(0,1fr);gap:9px;padding:11px 15px 10px;min-height:0}
 .chat-first-layout .header-logo{width:121px;height:28px}
 .header-identity{padding-left:12px}
 .header-identity strong{font-size:12px}
 .header-identity small{font-size:9px}
 .header-actions{width:100%;justify-content:stretch;gap:7px}
 .header-actions .top-action{flex:1;justify-content:center;gap:6px;padding:10px 7px;font-size:11px;min-width:0}
 .header-actions .unlock-btn,.header-actions .header-logout{flex:0 0 auto;padding:10px 9px;font-size:10px}
 .header-actions .unlock-btn span{display:none}
 .chat-first-layout .messages{padding:17px 16px 10px}
 .chat-first-layout .hero{padding:16px 0 14px}
 .chat-first-layout .hero-icon{width:39px;height:39px;margin-bottom:15px}
 .chat-first-layout .hero h2{font-size:clamp(29px,8vw,38px);letter-spacing:-1.4px}
 .chat-first-layout .hero p{font-size:12px;line-height:1.62}
 .chat-first-layout .suggestions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:18px}
 .chat-first-layout .suggestions button{font-size:11px;padding:12px;min-height:59px}
 .chat-first-layout .composer-wrap{padding:9px 12px max(10px,env(safe-area-inset-bottom))}
 .chat-first-layout .composer{padding:10px 12px}
 .chat-first-layout .composer textarea{font-size:16px;min-height:40px}
 .chat-first-layout .footer{padding:9px 12px;min-height:29px;font-size:8px}
 .chat-first-layout .message .body{font-size:13px}
 .dialog-scrim{align-items:center;padding:12px}
 .dialog-card{border-radius:17px;padding:26px 19px;max-height:calc(100dvh - 24px)}
 .dialog-card h2{font-size:25px}
 .dialog-card p{font-size:12px}
}
@media(max-width:359px){
 .chat-first-layout .header-logo{width:102px;height:24px}
 .header-identity{padding-left:9px}
 .header-identity strong{font-size:11px}
 .header-actions .top-action{font-size:10px;gap:3px}
 .header-actions .top-action .action-glyph{font-size:14px}
 .header-actions .unlock-btn{font-size:9px}
 .chat-first-layout .hero h2{font-size:29px}
}
@media(prefers-reduced-motion:reduce){.dialog-card,.chat-first-layout .messages{scroll-behavior:auto}}
