/* Original product interfaces, styled with the references' green/purple palette. */
body[data-refresh] { -webkit-font-smoothing:antialiased; }
body[data-refresh] :is(button,a,input,select,textarea):focus-visible { outline:2px solid #9274c5; outline-offset:3px; }
body[data-refresh="assistant"] :is(button,a,input,select,textarea):focus-visible { outline-color:#087b5b; }
.functional-kicker { display:block; font-size:10px; letter-spacing:1.7px; line-height:1.8; font-weight:600; }
.functional-brand { display:flex; align-items:center; gap:12px; padding:28px 24px; color:#30243f; }
.functional-brand strong { display:block; font-size:19px; letter-spacing:.4px; }
.functional-brand small { display:block; margin-top:5px; font-size:10px; letter-spacing:1px; color:#81758f; }
.functional-mark { display:grid; place-items:center; flex:0 0 38px; height:38px; border-radius:12px; background:#7655b5; color:#fff; font-size:17px; font-weight:700; box-shadow:0 5px 14px #7655b526; }
.functional-quick-actions { display:flex; flex-wrap:wrap; align-items:center; gap:12px; margin-top:25px; }
.functional-quick-actions button { min-height:42px; padding:10px 18px; border-radius:11px; border:1px solid #e8dcfa; background:#e8dcfa; color:#49316a; font-size:13px; font-weight:600; cursor:pointer; }
.functional-quick-actions button span { margin-left:16px; }

/* 随视助手: retain the phone dashboard, chat, library, tasks and settings. */
body[data-refresh="assistant"] { --night:#123f34; }
body[data-refresh="assistant"] :is(.brand-copy strong,.view-header h1,.settings-section h2,.sidebar-note strong) { color:#19382e; }
body[data-refresh="assistant"] :is(.brand-copy small,.nav-caption,.sidebar-note p,.welcome-kicker,.composer-footnote) { color:#7c8f83; }
body[data-refresh="assistant"] :is(.sidebar-note-icon,.suggestion-arrow,.conversation-welcome h3 span,.orbit-star) { color:#8e9e74; }
body[data-refresh="assistant"] .sidebar-note { border-color:#dfe6de; }
body[data-refresh="assistant"] .nav-item:hover { background:#f0f5ed; color:#087b5b; }
body[data-refresh="assistant"] .brand-mark { border-radius:12px; }
body[data-refresh="assistant"] .new-chat-button { background:#087b5b; color:#fff; border-color:#087b5b; }
body[data-refresh="assistant"] .new-chat-button kbd { color:#d4ead7; }
body[data-refresh="assistant"] :is(.phone-page-heading,.view-header) { border-color:#dfe6de; }
body[data-refresh="assistant"] .phone-hero { position:relative; border-radius:22px; background-color:#123f34; background-image:linear-gradient(#ffffff03 1px,transparent 1px),linear-gradient(90deg,#ffffff03 1px,transparent 1px); background-size:42px 42px; }
body[data-refresh="assistant"] .phone-hero h2 { font-size:clamp(36px,3.4vw,54px); }
body[data-refresh="assistant"] :is(.phone-card,.phone-setup,.phone-metrics>div) { border-radius:18px; box-shadow:0 8px 22px #19382e04; }
body[data-refresh="assistant"] .phone-metrics>div { padding:22px; }
body[data-refresh="assistant"] :is(.phone-health meter,.phone-health meter::-webkit-meter-bar) { background:#e8eee5; }
body[data-refresh="assistant"] :is(.phone-version,.phone-display-tag) { color:#49725c; background:#edf3e9; border-color:#dbe6d8; }
body[data-refresh="assistant"] .phone-setup { border-top:3px solid #b6a475; }
body[data-refresh="assistant"] .phone-download-button { border-radius:11px; }
body[data-refresh="assistant"] :is(.segmented-control .is-active,.switch-row input:checked+.switch) { background:#087b5b; }
body[data-refresh="assistant"] .login-shell { display:grid; grid-template-columns:minmax(0,1.1fr) minmax(350px,.85fr); gap:6%; max-width:1320px; margin:auto; padding:60px; background:none; }
body[data-refresh="assistant"] .login-panel { width:100%; max-width:440px; padding:34px; border-top:3px solid #b6a475; box-shadow:0 18px 55px #19382e08; }
body[data-refresh="assistant"] .login-intro { margin:22px 0; }
body[data-refresh="assistant"] .login-status { color:#687c72; }
.functional-intro { position:relative; align-self:center; padding:42px 38px 28px; border:1px solid #244f42; border-left:5px solid #b6a475; border-radius:24px; background-color:#123f34; background-image:linear-gradient(#ffffff04 1px,transparent 1px),linear-gradient(90deg,#ffffff04 1px,transparent 1px); background-size:40px 40px; color:#eaf2df; overflow:hidden; }
.functional-intro>.functional-kicker { color:#b2c8b9; }
.functional-intro h2 { position:relative; z-index:1; margin:25px 0 20px; font-size:clamp(28px,3.1vw,46px); line-height:1.5; letter-spacing:-1px; }
.functional-intro h2 span { color:#b6a475; }
.functional-intro p { position:relative; z-index:1; color:#b9cec0; font-size:13px; line-height:2; }
.functional-orbit { position:relative; display:grid; place-items:center; width:220px; height:180px; margin:25px auto; border:1px solid #b6d4bb26; border-radius:50%; transform:rotate(-12deg); }
.functional-orbit::before { content:""; position:absolute; inset:20px -22px; border:1px solid #b6d4bb26; border-radius:50%; transform:rotate(65deg); }
.functional-orbit>span { display:grid; place-items:center; width:90px; height:90px; border:1px solid #b7dcbf55; border-radius:28px; background:linear-gradient(145deg,#328c70,#17523f); color:#caebcf; font-size:60px; box-shadow:0 15px 50px #081f2538; }
.functional-orbit i { position:absolute; padding:5px 12px; border:1px solid #c1dac03b; border-radius:20px; background:#1c493c; color:#c1d6bf; font-style:normal; font-size:11px; transform:rotate(12deg); }
.functional-orbit i:nth-of-type(1) { left:-15px; top:20px; }.functional-orbit i:nth-of-type(2) { right:-22px; top:65px; }.functional-orbit i:nth-of-type(3) { left:30px; bottom:-5px; }
.functional-capabilities { display:flex; flex-wrap:wrap; justify-content:space-between; gap:10px; border-top:1px solid #ffffff15; margin-top:30px; padding-top:20px; color:#b2c8b9; font-size:10px; }

/* UniPass: the original rendered app, including authorization and app links. */
body[data-refresh="unipass"] {
  --bg:#f8f6fc; --surface:#fffefd; --teal-200:#d8c5ee; --teal-400:#b59bd9;
  --grad-sidebar:linear-gradient(145deg,#352747,#49365f); --grad-hero:linear-gradient(130deg,#352747,#49365f);
  --grad-accent:linear-gradient(135deg,#9274c5,#7655b5); --grad-accent-soft:linear-gradient(135deg,#f1eafa,#e9dff6);
  --grad-logo-teal:linear-gradient(140deg,#9274c5,#7655b5); --grad-logo-blue:linear-gradient(140deg,#b298d4,#7a62a3);
  --shadow-sm:0 5px 20px #35274705; --shadow-md:0 12px 35px #3527470b;
}
body[data-refresh="unipass"] .auth-brand-panel { background-color:#352747; background-image:linear-gradient(#ffffff03 1px,transparent 1px),linear-gradient(90deg,#ffffff03 1px,transparent 1px); background-size:48px 48px; }
body[data-refresh="unipass"] .auth-brand-copy h1 { font-size:clamp(32px,3.1vw,48px); line-height:1.4; }
body[data-refresh="unipass"] .auth-brand-copy h1 strong { color:#d8c5ee; -webkit-text-fill-color:#d8c5ee; background:none; text-shadow:none; }
body[data-refresh="unipass"] :is(.panel-ring,.panel-grid) { opacity:.25; }
body[data-refresh="unipass"] .service-chip { color:#d8c5ee; border-color:#ffffff20; background:#ffffff08; }
body[data-refresh="unipass"] .auth-tabs { background:#f1edf7; border-color:#e4daef; }
body[data-refresh="unipass"] .auth-tabs button.active { color:#65469d; }
body[data-refresh="unipass"] .sidebar { color:#30243f; border-right:1px solid #e7e0ee; }
body[data-refresh="unipass"] .sidebar::before { background:none; }
body[data-refresh="unipass"] .sidebar .brand { color:#30243f; }
body[data-refresh="unipass"] .sidebar-label { color:#90839f; }
body[data-refresh="unipass"] .nav-item { color:#81758f; }
body[data-refresh="unipass"] .nav-item svg { color:#90839f; }
body[data-refresh="unipass"] .nav-item:is(.active,:hover) { color:#65469d; background:#eee7f8; box-shadow:none; }
body[data-refresh="unipass"] .nav-item.active::before { background:#7655b5; box-shadow:none; }
body[data-refresh="unipass"] .nav-item.active svg { color:#7655b5; }
body[data-refresh="unipass"] .sidebar-account { background:#f7f3fc; border-color:#e7e0ee; box-shadow:none; }
body[data-refresh="unipass"] :is(.sidebar-account strong,.sign-out) { color:#655774; }
body[data-refresh="unipass"] .sidebar-account small { color:#90839f; }
body[data-refresh="unipass"] .avatar { background:#ece2f8; color:#65469d; }
body[data-refresh="unipass"] .summary-card.accent::after { background:radial-gradient(240px 140px at 100% 0,#b59bd933,transparent 70%); }
body[data-refresh="unipass"] :is(.summary-card.accent .stat-label,.summary-card.accent>div>small) { color:#d0c0e1; }
body[data-refresh="unipass"] .hero-orbs { background:radial-gradient(360px 230px at 90% -70px,#b59bd940,transparent 65%); }
body[data-refresh="unipass"] :is(.app-row:hover,.login-row:hover) { background:#fbf9fe; }
body[data-refresh="unipass"] .app-open { color:#7655b5; border-color:#d9cde7; background:#faf7fd; }
body[data-refresh="unipass"] .page-content:has(>.app-section)>.title-row { position:relative; isolation:isolate; overflow:hidden; min-height:220px; padding:32px 36px; border-radius:22px; background:#352747; color:#e5dbef; }
body[data-refresh="unipass"] .page-content:has(>.app-section)>.title-row::after { content:"U"; position:absolute; right:6%; top:15px; z-index:-1; display:grid; place-items:center; width:180px; height:180px; border:1px solid #ffffff16; border-radius:40px; background:linear-gradient(145deg,#b59bd914,#b59bd903); color:#c8b4e32b; font-size:110px; font-weight:800; transform:rotate(-14deg); }
body[data-refresh="unipass"] .page-content:has(>.app-section)>.title-row h1 { color:#faf5ff; font-size:34px; margin:14px 0; }
body[data-refresh="unipass"] .page-content:has(>.app-section)>.title-row :is(.page-kicker,p) { color:#c9b8dc; }

/* Light API: existing navigation controls become the sidebar. */
body[data-refresh="gateway"] .functional-gateway-sidebar { position:fixed; inset:0 auto 0 0; width:244px; background:#fffefd; border-right:1px solid #e7e0ee; padding:0 18px 24px; display:flex; flex-direction:column; overflow-y:auto; z-index:6; }
body[data-refresh="gateway"] .functional-brand { padding:28px 6px 34px; }
.functional-nav-caption { color:#90839f; font-size:10px; letter-spacing:1px; padding:0 14px 14px; }
body[data-refresh="gateway"] .nav { display:flex; flex-direction:column; gap:5px; margin:0; }
body[data-refresh="gateway"] .nav button { display:flex; align-items:center; gap:12px; width:100%; min-height:41px; text-align:left; border:0; padding:10px 14px; color:#81758f; background:transparent; border-radius:10px; font-size:13px; font-weight:500; }
body[data-refresh="gateway"] .nav button::before { content:""; width:10px; height:10px; flex-shrink:0; border:1px solid #a593bc; border-radius:3px; }
body[data-refresh="gateway"] .nav button.active { background:#eee7f8; color:#65469d; box-shadow:inset 3px 0 #9274c5; font-weight:600; }
body[data-refresh="gateway"] .nav button:hover { background:#f4effa; transform:none; }
body[data-refresh="gateway"] .nav button.danger { margin:12px 0 0!important; color:#a05262; border-top:1px solid #e7e0ee; border-radius:0; }
body[data-refresh="gateway"] .nav button.hide { display:none!important; }
.functional-sidebar-note { margin-top:auto; padding:24px 14px 0; font-size:12px; color:#655774; }
.functional-sidebar-note p { color:#90839f; font-size:11px; line-height:1.9; }
body[data-refresh="gateway"] .wrap { max-width:1800px; margin-left:244px; padding:0 36px 28px; }
body[data-refresh="gateway"] .top { position:relative; top:auto; display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:12px 24px; margin:0 -36px 30px; padding:22px 36px; border:0; border-bottom:1px solid #e7e0ee; border-radius:0; background:#fffefd; box-shadow:none; backdrop-filter:none; }
body[data-refresh="gateway"] .top h1 { color:#655774; font-size:14px; font-weight:600; }
body[data-refresh="gateway"] .top .sub { margin:0; color:#81758f; font-size:12px; }
.functional-page-heading { margin:0 0 24px; }
.functional-page-heading>.functional-kicker { color:#90839f; }
.functional-page-heading h2 { font-size:27px; color:#30243f; margin:10px 0; line-height:1.4; }
.functional-page-heading h2 span { color:#b6a475; }
.functional-page-heading p { color:#81758f; font-size:13px; }
.functional-gateway-hero { position:relative; isolation:isolate; overflow:hidden; display:flex; align-items:center; justify-content:space-between; gap:24px; padding:36px 40px; margin-bottom:20px; border:1px solid #49365f; border-radius:22px; background-color:#352747; background-image:linear-gradient(#ffffff03 1px,transparent 1px),linear-gradient(90deg,#ffffff03 1px,transparent 1px); background-size:42px 42px; color:#faf5ff; box-shadow:0 15px 35px #3527470b; }
.functional-gateway-hero .functional-kicker { color:#c9b8dc; }
.functional-gateway-hero h2 { font-size:clamp(28px,3vw,44px); line-height:1.45; margin:18px 0; }
.functional-gateway-hero h2 span { color:#c9b8dc; }
.functional-gateway-hero p { color:#c9b8dc; font-size:13px; line-height:1.9; }
body[data-refresh="gateway"] .functional-gateway-hero .btn:not(.primary) { background:#ffffff08; border-color:#ffffff30; color:#e8dcfa; }
.functional-api-art { position:relative; display:grid; place-items:center; flex:0 0 28%; width:28%; aspect-ratio:1; margin:0 4%; border:1px solid #b59bd933; border-radius:50%; }
.functional-api-art::before { content:""; position:absolute; inset:15px -15px; border:1px solid #b59bd933; border-radius:50%; transform:rotate(-35deg); }
.functional-api-art>span { display:grid; place-items:center; width:80%; aspect-ratio:1.1; border-radius:24px; border:1px solid #c9b8dc50; background:linear-gradient(145deg,#8b71b6,#49365f); color:#e8dcfa; font-family:monospace; font-size:clamp(22px,2.5vw,40px); box-shadow:12px 18px 0 #261b363d,0 30px 60px #110a2826; transform:rotate(-8deg); }
.functional-api-art i { position:absolute; font-style:normal; font-size:10px; letter-spacing:1px; border:1px solid #b59bd950; border-radius:12px; padding:8px 12px; background:#49365f; color:#d7c7ee; }
.functional-api-art i:nth-of-type(1) { top:-12px; right:15px; }.functional-api-art i:nth-of-type(2) { bottom:10px; left:-20px; }.functional-api-art i:nth-of-type(3) { right:-25px; bottom:35px; }
body[data-refresh="gateway"] #dash>.grid { margin-bottom:20px; }
body[data-refresh="gateway"] .stat { padding:22px; border-radius:17px; }
body[data-refresh="gateway"] .v { color:#30243f; font-size:30px; }
body[data-refresh="gateway"] .l { font-size:12px; }
body[data-refresh="gateway"] .btn.primary { background:#7655b5; border-color:#7655b5; color:#fff; }
body[data-refresh="gateway"] .functional-gateway-hero .btn.primary { background:#e8dcfa; border-color:#e8dcfa; color:#49316a; }
body[data-refresh="gateway"] :is(.channel-card,.channel-item,.fieldbox,.mp-model-option) { background:#faf8fd; border-color:#e7e0ee; color:#30243f; }
body[data-refresh="gateway"] :is(.badge,.pill) { color:#7655b5; background:#f1eafa; border-color:#e0d4ec; }
body[data-refresh="gateway"] :is(.channel-name,.fieldbox .val) { color:#30243f; }
body[data-refresh="gateway"] :is(.fieldbox .k,.muted-line) { color:#81758f; }
body[data-refresh="gateway"] pre { color:#e5dbef; background:#352747!important; border-color:#57436c!important; }
body[data-refresh="gateway"] pre code { background:none; color:inherit; }
body[data-refresh="gateway"] :is(.row>div,.channel-panel>*,.mp-layout>*) { min-width:0; }
body[data-refresh="gateway"] .card p { line-height:1.8; overflow-wrap:anywhere; }

/* AI Chat: real conversation controls and configuration shortcuts. */
body[data-refresh="chat"] .sidebar { flex-shrink:0; }
body[data-refresh="chat"] .functional-brand { padding:26px 20px 18px; }
body[data-refresh="chat"] .new { padding:12px; margin:8px 16px 20px; color:#fff; }
body[data-refresh="chat"] .nav { padding:0 14px; }
body[data-refresh="chat"] .nav button { padding:9px 4px; color:#81758f; }
body[data-refresh="chat"] .chat { min-width:0; }
body[data-refresh="chat"] .top { height:auto; min-height:66px; flex-shrink:0; padding:12px 24px; }
body[data-refresh="chat"] .composer { background:#f8f6fc; padding:16px 24px; }
body[data-refresh="chat"] .composer>.box { max-width:940px; padding:12px; border-color:#dcd0e9; border-radius:18px; background:#fffefd; box-shadow:0 8px 25px #35274706; }
body[data-refresh="chat"] .inputrow textarea { min-width:0; color:#30243f; }
body[data-refresh="chat"] .top select { color:#655774; background:#faf8fd; border-color:#e0d4ec; }
body[data-refresh="chat"] :is(.dark,.field input,.field select,.field textarea,.modal .box2) { border-color:#e0d4ec; color:#493b59; }
body[data-refresh="chat"] .empty { min-height:180px; }
body[data-refresh="chat"] .functional-chat-welcome { display:block; height:auto; max-width:1030px; margin:0 auto; padding:30px 38px 20px; color:#30243f; place-items:normal; }
.functional-chat-heading>.functional-kicker { color:#90839f; }
body[data-refresh="chat"] .functional-chat-heading h1 { margin:10px 0 6px; font-size:27px; font-weight:650; }
.functional-chat-heading p { margin:0 0 24px; font-size:13px; color:#81758f; }
.functional-chat-hero { position:relative; isolation:isolate; overflow:hidden; background-color:#352747; background-image:linear-gradient(#ffffff03 1px,transparent 1px),linear-gradient(90deg,#ffffff03 1px,transparent 1px); background-size:40px 40px; border:1px solid #49365f; border-radius:22px; padding:32px 36px; color:#faf5ff; }
.functional-chat-hero>.functional-kicker { color:#c9b8dc; }
.functional-chat-hero h2 { position:relative; z-index:1; margin:20px 0 12px; font-size:clamp(28px,3vw,40px); line-height:1.4; }
.functional-chat-hero h2 span { color:#b59bd9; }
.functional-chat-hero p { position:relative; z-index:1; color:#c9b8dc; font-size:13px; line-height:1.9; }
.functional-chat-hero .functional-quick-actions { position:relative; z-index:1; }
.functional-chat-hero .functional-secondary { background:#ffffff08; color:#e8dcfa; border-color:#ffffff30; }
.functional-chat-art { position:absolute; top:65px; right:8%; width:190px; height:190px; border:1px solid #b59bd933; border-radius:50%; display:grid; place-items:center; z-index:-1; }
.functional-chat-art>span { display:grid; place-items:center; width:120px; height:120px; border:1px solid #b59bd980; border-radius:30px; background:linear-gradient(145deg,#9274c5,#49365f); color:#e8dcfa; font-size:76px; transform:rotate(-12deg); box-shadow:10px 14px 0 #211a3826; }
.functional-chat-art i { position:absolute; font-style:normal; font-size:11px; padding:6px 12px; border:1px solid #b59bd950; border-radius:10px; color:#d7c7ee; background:#49365f; }
.functional-chat-art i:nth-of-type(1) { top:-5px; left:10px; }.functional-chat-art i:nth-of-type(2) { bottom:15px; left:-15px; }.functional-chat-art i:nth-of-type(3) { right:-20px; top:70px; }
.functional-chat-shortcuts { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; margin-top:16px; }
body[data-refresh="chat"] .functional-chat-shortcuts button { padding:19px; background:#fffefd; border:1px solid #e7e0ee; border-radius:16px; color:#493b59; text-align:left; }
.functional-chat-shortcuts b { display:block; font-size:13px; font-weight:600; }
.functional-chat-shortcuts b span { float:right; color:#a593bc; }
.functional-chat-shortcuts small { display:block; color:#90839f; margin-top:9px; font-size:11px; line-height:1.6; }
body[data-refresh="chat"] .msg { max-width:940px; }
body[data-refresh="chat"] .msgwrap { border-color:#e7e0ee; }
body[data-refresh="chat"] .msgwrap:has(.assistant) { background:#fffefd; }
body[data-refresh="chat"] .sidebar.fun-mode { background:#352747; }
body[data-refresh="chat"] .sidebar.fun-mode .functional-brand { color:#faf5ff; }
body[data-refresh="chat"] .sidebar.fun-mode .functional-brand small { color:#c9b8dc; }

@media(min-width:900px) {
  body[data-refresh="assistant"] .phone-view { padding:32px 36px; }
  body[data-refresh="assistant"] .app-header { border-bottom:0; }
}
@media(max-width:1100px) {
  body[data-refresh="assistant"] .login-shell { padding:35px; gap:4%; }
  .functional-intro { padding:30px 24px 24px; }
  body[data-refresh="gateway"] .wrap { margin-left:220px; padding:0 24px 24px; }
  body[data-refresh="gateway"] .functional-gateway-sidebar { width:220px; padding-inline:12px; }
  body[data-refresh="gateway"] .top { margin-inline:-24px; padding-inline:24px; }
  .functional-gateway-hero { padding:28px; }
  .functional-api-art { margin-right:2%; }
  .functional-chat-art { right:4%; opacity:.55; }
}
@media(max-width:900px) {
  body[data-refresh="assistant"] .login-shell { grid-template-columns:1fr; max-width:560px; padding:28px 20px; }
  .functional-intro { padding:26px; margin-bottom:24px; }
  .functional-intro h2 { font-size:29px; margin:16px 0 12px; }
  .functional-intro p { margin:0; }
  .functional-orbit { position:absolute; right:-50px; top:35px; width:160px; height:140px; opacity:.16; margin:0; }
  .functional-capabilities { margin-top:20px; padding-top:16px; }
  body[data-refresh="assistant"] .login-panel { max-width:100%; }
  .functional-gateway-hero h2 { font-size:29px; }
  .functional-api-art { opacity:.5; position:absolute; right:0; z-index:-1; }
  .functional-chat-art { opacity:.2; right:-20px; }
  body[data-refresh="chat"] .functional-chat-welcome { padding:24px; }
  .functional-chat-shortcuts { gap:8px; }
  body[data-refresh="chat"] .functional-chat-shortcuts button { padding:14px; }
}
@media(max-width:768px) {
  body[data-refresh="gateway"] .functional-gateway-sidebar { position:relative; inset:auto; width:100%; padding:0 16px 14px; border-right:0; border-bottom:1px solid #e7e0ee; }
  body[data-refresh="gateway"] .functional-brand { padding:16px 0; }
  body[data-refresh="gateway"] .functional-brand strong { font-size:17px; }
  body[data-refresh="gateway"] .functional-brand small { margin-top:2px; }
  body[data-refresh="gateway"] :is(.functional-nav-caption,.functional-sidebar-note) { display:none; }
  body[data-refresh="gateway"] .nav { display:flex; flex-direction:row; flex-wrap:nowrap; overflow-x:auto; padding-bottom:5px; }
  body[data-refresh="gateway"] .nav button { width:auto; white-space:nowrap; flex-shrink:0; min-height:40px; padding:10px 13px; font-size:12px; }
  body[data-refresh="gateway"] .nav button::before { display:none; }
  body[data-refresh="gateway"] .nav button.danger { margin:0!important; border:0; }
  body[data-refresh="gateway"] .wrap { margin:0; padding:0 18px 24px; }
  body[data-refresh="gateway"] .top { margin:0 -18px 24px; padding:16px 18px; }
  .functional-page-heading h2 { font-size:23px; }
  .functional-gateway-hero { padding:26px; }
  body[data-refresh="gateway"] .grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
  body[data-refresh="gateway"] .stat { padding:20px 16px; }
  body[data-refresh="gateway"] .row { flex-wrap:wrap; }
  body[data-refresh="gateway"] .row>div { flex-basis:100%; }
  body[data-refresh="gateway"] .card { padding:20px 16px; }
  body[data-refresh="unipass"] .page-content:has(>.app-section)>.title-row { padding:26px 24px; min-height:195px; }
  body[data-refresh="unipass"] .page-content:has(>.app-section)>.title-row h1 { font-size:29px; }
  body[data-refresh="unipass"] .page-content:has(>.app-section)>.title-row::after { right:-50px; opacity:.4; }
  body[data-refresh="chat"] .top { padding:10px 14px; gap:8px; flex-wrap:wrap; }
  body[data-refresh="chat"] .top .title-wrap { flex:1; }
  body[data-refresh="chat"] .top .tools { width:100%; flex-wrap:wrap; gap:7px; overflow:visible; }
  body[data-refresh="chat"] .top .tools :is(.dark,.danger) { display:inline-block; font-size:11px; padding:6px 8px; }
  body[data-refresh="chat"] .top select { max-width:160px; min-width:95px; }
  body[data-refresh="chat"] .composer { padding:10px 14px; }
  body[data-refresh="chat"] .composer>.box { padding:8px; }
  body[data-refresh="chat"] .inputrow { flex-wrap:wrap; }
  body[data-refresh="chat"] .inputrow textarea { flex:0 0 100%; width:100%; min-height:58px; }
  body[data-refresh="chat"] #sendBtn { margin-left:auto; }
  body[data-refresh="chat"] .functional-chat-welcome { padding:22px 18px; }
  body[data-refresh="chat"] .functional-chat-heading h1 { font-size:24px; }
  .functional-chat-hero { padding:25px; }
  .functional-chat-hero h2 { font-size:31px; }
  .functional-chat-shortcuts { grid-template-columns:1fr; }
  .functional-chat-shortcuts small { margin-top:5px; }
  body[data-refresh="chat"] .msgops { opacity:1; }
}
@media(max-width:380px) {
  body[data-refresh="assistant"] .login-panel { padding:24px; }
  .functional-intro { padding:22px; }.functional-intro h2 { font-size:25px; }
  .functional-capabilities { font-size:9px; }
  .functional-gateway-hero { padding:24px 20px; }
  .functional-gateway-hero h2 { font-size:27px; }
  .functional-chat-hero { padding:24px 20px; }
  .functional-chat-hero .functional-quick-actions { gap:8px; }
  .functional-quick-actions button { padding:10px 13px; }
}
@media(prefers-reduced-motion:reduce) {
  body[data-refresh] *,body[data-refresh] *::before,body[data-refresh] *::after { animation:none!important; scroll-behavior:auto!important; transition:none!important; }
}
