/* The functional applications share the new homepage's visual language. */
body[data-refresh="assistant"] {
  --ink:#19382e; --ink-soft:#687c72; --surface:#fffefa; --surface-soft:#f4f5f0;
  --line:#dfe6de; --line-strong:#cdd9cf; --accent:#087b5b; --accent-dark:#075c45; --accent-soft:#e9f3ec;
  background:#f4f5f0;
}
body[data-refresh="assistant"] :is(.app-shell,.app-main) { background:#f4f5f0; }
body[data-refresh="assistant"] :is(.app-header,.primary-nav) { background:#fffefa; border-color:#dfe6de; }
body[data-refresh="assistant"] :is(.brand-mark,.primary-button,.send-button,.phone-download-button) { background:#087b5b; box-shadow:none; }
body[data-refresh="assistant"] .nav-item.is-active { color:#087b5b; background:#e9f3ec; }
body[data-refresh="assistant"] :is(.new-chat-button,.voice-mode-pill,.camera-toggle) { color:#087b5b; border-color:#d4e3d7; background:#f6faf5; }
body[data-refresh="assistant"] :is(.phone-card,.phone-setup,.settings-section,.composer,.prompt-suggestions button,.phone-metrics>div,.login-panel) { background:#fffefa; border-color:#dfe6de; }
body[data-refresh="assistant"] :is(.phone-page-heading h1,.phone-card h2,.phone-setup li strong,.phone-metrics strong,.phone-health strong,.phone-playback strong,.workspace-title h2,.login-brand h1,.conversation-welcome h3) { color:#19382e; }
body[data-refresh="assistant"] :is(.phone-eyebrow,.phone-page-heading p,.phone-muted,.phone-playback p,.phone-setup li span,.phone-log-empty p,.login-intro,.login-download p,.conversation-welcome p) { color:#687c72; }
body[data-refresh="assistant"] .phone-hero { background:#123f34; border-left:5px solid #b59a63; }
body[data-refresh="assistant"] .phone-hero :is(h2,h2 em) { color:#e5f2d6; }
body[data-refresh="assistant"] .phone-hero :is(p,.phone-eyebrow,.phone-hero-tag) { color:#b8cfc0; }
body[data-refresh="assistant"] .phone-hero-orbit { border-color:#b8cfc025; box-shadow:0 0 0 32px #b8cfc008,0 0 0 68px #b8cfc008; }
body[data-refresh="assistant"] .phone-hero-orbit span { color:#b8ddbd; text-shadow:none; }
body[data-refresh="assistant"] :is(.phone-setup b,.phone-message-body,.phone-camera-stage,.phone-display-tag,.user-message .message-body) { color:#426c58; background:#edf3eb; border-color:#dfe6de; }
body[data-refresh="assistant"] #view-assistant { background:#fffefa; }
body[data-refresh="assistant"] .welcome-eye { color:#087b5b; background:#edf3eb; border-color:#dfe6de; box-shadow:0 14px 35px #19382e0d; }
body[data-refresh="assistant"] .login-shell { background:radial-gradient(ellipse at 20% 10%,#e1ecdf,transparent 50%),#f4f5f0; }
body[data-refresh="assistant"] .login-download h2 { color:#19382e; }
body[data-refresh="assistant"] .refresh-home { display:inline-flex; align-items:center; gap:8px; color:#087b5b; font-size:12px; margin-bottom:24px; text-decoration:none; }
body[data-refresh="assistant"] .primary-nav>.refresh-home { padding:10px 14px; margin:0; }
body[data-refresh="assistant"] .phone-hero h2 { font-size:42px; line-height:1.4; }

body[data-refresh="unipass"] {
  --teal-50:#f2edf9; --teal-100:#e7def7; --teal-500:#8c70c6; --teal-600:#7655b5; --teal-700:#5d3e92;
  --ink:#30243f; --ink-2:#4c405d; --ink-3:#81758f; --ink-4:#94899f;
  --border:#e7e0ee; --border-strong:#d9cde7; background:#f8f6fc;
}
body[data-refresh="unipass"] .auth-brand-panel { background:#352747; }
body[data-refresh="unipass"] .auth-panel { background:#f8f6fc; }
body[data-refresh="unipass"] .auth-brand-copy h1 { color:#faf6ff; }
body[data-refresh="unipass"] .auth-brand-copy h1 span { color:#d4bff3; }
body[data-refresh="unipass"] .panel-glow { background:radial-gradient(ellipse,#8c70c630,transparent 70%); }
body[data-refresh="unipass"] .auth-brand-copy p { color:#c6b8d8; }
body[data-refresh="unipass"] :is(.primary-button,.brand-mark) { background:#7655b5; box-shadow:none; }
body[data-refresh="unipass"] :is(.sidebar,.topbar,.surface) { border-color:#e7e0ee; }
body[data-refresh="unipass"] .sidebar { background:#fffdfd; }
body[data-refresh="unipass"] .main-content { background:#f8f6fc; }
body[data-refresh="unipass"] .hero { background:#352747; }
body[data-refresh="unipass"] .refresh-home { position:fixed; z-index:50; top:16px; right:20px; padding:8px 13px; background:#fffdfdf2; border:1px solid #e7e0ee; border-radius:9px; color:#7655b5; text-decoration:none; font-size:12px; }
body[data-refresh="unipass"]:has(.dashboard) .refresh-home { top:auto; bottom:18px; right:20px; }

body[data-refresh="gateway"] { background:#f8f6fc; color:#30243f; font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei",sans-serif; }
body[data-refresh="gateway"] .top { background:#352747; border-color:#483658; box-shadow:0 12px 35px #35274712; }
body[data-refresh="gateway"] .top h1 { color:#faf6ff; font-size:27px; font-weight:650; }
body[data-refresh="gateway"] .top .sub { color:#c6b8d8; }
body[data-refresh="gateway"] :is(.card,.stat,.modal-card) { background:#fffdfd; color:#30243f; border-color:#e7e0ee; box-shadow:0 5px 20px #35274705; }
body[data-refresh="gateway"] .v { color:#7655b5; font-weight:650; }
body[data-refresh="gateway"] :is(.l,.small,label) { color:#81758f; }
body[data-refresh="gateway"] :is(input,textarea,select) { color:#30243f; background:#faf8fd; border-color:#d9cde7; }
body[data-refresh="gateway"] :is(input,textarea,select):focus { border-color:#8c70c6; box-shadow:0 0 0 3px #7655b512; }
body[data-refresh="gateway"] :is(.btn,.nav button) { border-radius:10px; background:#f2edf9; color:#65469d; border-color:#d9cde7; font-weight:550; }
body[data-refresh="gateway"] .nav button { background:#ffffff0a; color:#ded3ed; border-color:#ffffff20; }
body[data-refresh="gateway"] :is(.nav button.active,.btn.primary) { background:#e9ddfc; color:#49316a; border-color:#e9ddfc; box-shadow:none; }
body[data-refresh="gateway"] .btn.danger { background:#fff0ef; border-color:#f1d3d1; color:#ae4848; }
body[data-refresh="gateway"] :is(th,td) { border-color:#e7e0ee; }
body[data-refresh="gateway"] th { background:#f6f1fc; color:#655774; }
body[data-refresh="gateway"] code { color:#65469d; background:#f2edf9; border-color:#e7e0ee; }
body[data-refresh="gateway"] pre code { color:inherit; }
body[data-refresh="gateway"] .footer,body[data-refresh="gateway"] .footer b { color:#81758f; }
body[data-refresh="gateway"] .top h1 { display:flex; align-items:center; gap:12px; }
body[data-refresh="gateway"] .top h1 img { width:38px; height:38px; }
body[data-refresh="gateway"] .card a[href="https://chat.pexam.asia"] { background:#7655b5!important; box-shadow:none!important; }
body[data-refresh="gateway"] .refresh-home { color:#e9ddfc; text-decoration:none; display:inline-flex; gap:8px; margin-bottom:12px; font-size:12px; }
body[data-refresh="gateway"] .scroll { overflow:auto; }

body[data-refresh="chat"] { --bg:#f8f6fc; --side:#fffdfd; --panel:#fffdfd; --line:#e7e0ee; --txt:#30243f; --mut:#81758f; --accent:#7655b5; --hover:#f2edf9; --card:#fffdfd; }
body[data-refresh="chat"] .sidebar { background:#fffdfd; border-color:#e7e0ee; }
body[data-refresh="chat"] .chat { background:#f8f6fc; }
body[data-refresh="chat"] .top { background:#fffdfd; border-color:#e7e0ee; }
body[data-refresh="chat"] .new { background:#7655b5; border-radius:11px; }
body[data-refresh="chat"] .nav button.on { background:#eee6fa; color:#65469d; }
body[data-refresh="chat"] .empty h1 { color:#30243f; }
body[data-refresh="chat"] .composer { border-color:#e7e0ee; background:#fffdfd; }
body[data-refresh="chat"] .refresh-home { display:flex; gap:10px; align-items:center; padding:23px 19px 7px; text-decoration:none; color:#65469d; font-size:14px; font-weight:600; }
body[data-refresh="chat"] .refresh-home img { width:32px; height:32px; }
body[data-refresh="chat"] .refresh-home small { margin-left:auto; font-size:11px; font-weight:400; }
@media(max-width:899px) {
  body[data-refresh="assistant"] .primary-nav>.refresh-home { display:none; }
}
@media(max-width:600px) {
  body[data-refresh="gateway"] .wrap { padding:12px; }
  body[data-refresh="gateway"] .top { position:relative; top:0; padding:22px 18px; }
  body[data-refresh="gateway"] .nav { gap:7px; }
  body[data-refresh="gateway"] .nav button { padding:9px 11px; font-size:12px; }
  body[data-refresh="gateway"] .card { padding:17px; }
  body[data-refresh="gateway"] .row { flex-wrap:wrap; }
}
