
/* Theme and language controls */
.preference-controls{display:flex;align-items:center;gap:7px;flex:0 0 auto}
.theme-toggle{min-height:36px;display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:0 10px;border:1px solid var(--line2);border-radius:10px;color:var(--soft);background:rgba(255,255,255,.07);font-size:11px;font-weight:650;white-space:nowrap}
.theme-toggle:hover{color:var(--text);border-color:var(--accent);background:rgba(120,228,255,.09)}
.language-select{width:auto;min-width:104px;max-width:142px;height:36px;padding:0 28px 0 10px;border-radius:10px;color:var(--text);background-color:rgba(8,11,26,.68);font-size:11px;font-weight:650;cursor:pointer}
.preference-controls--compact .theme-toggle{width:36px;min-height:36px;padding:0}
.preference-controls--compact .theme-toggle span{display:none}
@media(max-width:680px){.landing__nav .preference-controls{gap:5px}.landing__nav .language-select{min-width:84px;max-width:96px;height:34px;padding-left:7px;padding-right:22px;font-size:10px}.landing__nav .theme-toggle{width:34px;min-height:34px}.language-select{min-width:92px;max-width:105px;height:34px}.theme-toggle{min-height:34px}.topbar__right .preference-controls{gap:4px}}
@media(max-width:390px){.landing__nav .language-select{min-width:76px;max-width:82px}.topbar__right .language-select{min-width:78px;max-width:86px}}
.preview-rail__brand-mark img{width:100%;height:100%;display:block;object-fit:cover;border-radius:inherit}
.preview-rail__icon svg{width:15px;height:15px;display:block}
.preview-rail__item{cursor:default}
:root[data-theme="light"]{color-scheme:light;--bg:#f4f7fb;--deep:#edf2f8;--surface:#fff;--raised:#f7f9fc;--line:rgba(28,43,69,.11);--line2:rgba(28,43,69,.2);--text:#182338;--soft:#40516b;--muted:#687990;--accent:#087fa3;--violet:#705bd1;--pink:#c94f9c;--success:#168956;--warning:#a56808;--danger:#bd3854}
:root[data-theme="light"] body{background:radial-gradient(circle at 78% -10%,rgba(99,116,255,.08),transparent 32rem),radial-gradient(circle at -12% 26%,rgba(59,194,255,.08),transparent 26rem),var(--bg)}
:root[data-theme="light"] input,:root[data-theme="light"] textarea,:root[data-theme="light"] select{color:var(--text);background-color:#fff;border-color:var(--line2)}
:root[data-theme="light"] input::placeholder,:root[data-theme="light"] textarea::placeholder{color:#8490a2}
:root[data-theme="light"] .surface,:root[data-theme="light"] .sidebar,:root[data-theme="light"] .topbar,:root[data-theme="light"] .mobile-nav,:root[data-theme="light"] .inbox__list,:root[data-theme="light"] .inbox__details,:root[data-theme="light"] .modal{color:var(--text);background:#fff;box-shadow:0 10px 28px rgba(30,49,80,.06)}
:root[data-theme="light"] .inbox__thread{background:linear-gradient(120deg,#f7f9fc,#f1f5fa)}
:root[data-theme="light"] .nav-item{color:#53637a}
:root[data-theme="light"] .nav-item:hover,:root[data-theme="light"] .sidebar__user:hover{background:rgba(25,54,88,.055)}
:root[data-theme="light"] .nav-item.is-active,:root[data-theme="light"] .conversation-item.is-active{border-color:rgba(8,127,163,.17);color:#123f55;background:linear-gradient(100deg,rgba(8,127,163,.13),rgba(8,127,163,.035))}
:root[data-theme="light"] .welcome-card{border-color:rgba(8,127,163,.15);color:#193149;background:linear-gradient(116deg,#e6f8fc,#edf0ff)}
:root[data-theme="light"] .welcome-card p,:root[data-theme="light"] .sidebar__access p{color:#52647a}
:root[data-theme="light"] .metric-card--button:hover{background:#eef3f8}
:root[data-theme="light"] .conversation-item:hover,:root[data-theme="light"] .order-filters button{background:rgba(25,54,88,.045)}
:root[data-theme="light"] .modal-layer{background:rgba(21,33,52,.28)}
:root[data-theme="light"] .modal{border-color:rgba(28,43,69,.15)}
:root[data-theme="light"] .landing{background:linear-gradient(112deg,rgba(246,249,253,.95) 12%,rgba(246,249,253,.78) 64%,rgba(241,239,255,.88)),url("/static/assets/dusk-alpine-city.jpg?v=20261029-1") center/cover fixed}
:root[data-theme="light"] .landing:after{background:linear-gradient(180deg,rgba(248,250,253,.05),rgba(248,250,253,.7) 78%,var(--bg))}
:root[data-theme="light"] .hero-text,:root[data-theme="light"] .hero-note,:root[data-theme="light"] .landing__trust{color:#53627a}
:root[data-theme="light"] .eyebrow{color:#17627b}
:root[data-theme="light"] .product-preview{border-color:rgba(38,60,100,.15);background:linear-gradient(145deg,rgba(255,255,255,.96),rgba(239,244,250,.98));box-shadow:0 30px 80px rgba(42,58,88,.16),inset 0 1px 0 #fff}
:root[data-theme="light"] .preview-window{border-color:rgba(38,60,100,.12);background:#fff}
:root[data-theme="light"] .preview-window__top{border-color:rgba(28,43,69,.1);color:#687990}
:root[data-theme="light"] .preview-rail__brand{color:#182338}
:root[data-theme="light"] .preview-rail__label{color:#687990}
:root[data-theme="light"] .preview-rail__item{color:#53637a}
:root[data-theme="light"] .preview-rail__item.is-active{color:#174960;background:rgba(8,127,163,.1)}
:root[data-theme="light"] .preview-rail__thread{color:#40516b}
:root[data-theme="light"] .preview-rail__thread.is-selected{background:rgba(25,54,88,.055)}
:root[data-theme="light"] .preview-person-copy b{color:#182338}
:root[data-theme="light"] .preview-person-copy small{color:#687990}
:root[data-theme="light"] .preview-message{border-color:rgba(28,43,69,.1);color:#26364d;background:#f0f3f8}
:root[data-theme="light"] .preview-message time{color:#697b91}
:root[data-theme="light"] .preview-knowledge-note{color:#17627b;background:rgba(8,127,163,.05)}
:root[data-theme="light"] .preview-knowledge-note b{color:#183a52}
:root[data-theme="light"] .preview-composer{border-color:rgba(28,43,69,.14);color:#687990;background:#f7f9fc}
:root[data-theme="light"] .theme-toggle{color:#42536b;background:#fff}
:root[data-theme="light"] .language-select{color:#27364b;background-color:#fff}
:root[data-theme="light"] .gate-screen .gate-card{color:var(--text);background:#fff;border-color:var(--line)}
:root[data-theme="light"] .gate-card__lead{color:var(--soft)}
html[dir="rtl"] .preview-message--mine{margin-right:auto;margin-left:0;border-radius:11px 11px 11px 3px}
html[dir="rtl"] .preview-message:not(.preview-message--mine){border-radius:11px 11px 3px 11px}
.preference-controls--floating{position:fixed;top:14px;right:16px;z-index:80}@media(max-width:390px){.preference-controls--floating{top:8px;right:8px}}

/* Keep the landing header balanced on narrow phones and give the preview rail clear targets. */
@media(max-width:680px){.landing__header{gap:8px}.brand__wordmark{width:clamp(92px,21vw,122px)}.preview-rail__item{width:38px;min-height:38px;border:1px solid rgba(216,226,255,.09);background:rgba(255,255,255,.045)}.preview-rail__item.is-active{border-color:rgba(120,228,255,.25);background:linear-gradient(145deg,rgba(120,228,255,.2),rgba(120,228,255,.09));box-shadow:0 4px 14px rgba(41,169,210,.12)}.preview-rail__icon{width:18px;height:18px;display:grid;place-items:center;flex:0 0 18px}.preview-rail__icon svg{width:18px;height:18px}}
@media(max-width:560px){.landing__nav>[data-action="open-auth"][data-mode="register"]{display:none}}
@media(max-width:390px){.preview-rail__item{width:34px;min-height:34px}.preview-rail__icon{width:17px;height:17px;flex-basis:17px}.preview-rail__icon svg{width:17px;height:17px}}
/* Blend the city photo into the light theme like a soft editorial backdrop. */
:root[data-theme="light"] .landing{background-color:#f5f8fd;background-image:linear-gradient(112deg,rgba(246,249,253,.72) 0%,rgba(246,249,253,.59) 58%,rgba(241,239,255,.72) 100%),url("/static/assets/dusk-alpine-city.jpg?v=20261029-1");background-position:center top;background-size:cover;background-attachment:fixed}
:root[data-theme="light"] .landing:after{background:linear-gradient(180deg,rgba(248,250,253,.1) 0%,rgba(248,250,253,.48) 56%,rgba(248,250,253,.76) 82%,var(--bg) 100%)}
:root[data-theme="light"] .hero-title{text-shadow:0 1px 0 rgba(255,255,255,.34)}
:root[data-theme="light"] .hero-text,:root[data-theme="light"] .hero-note,:root[data-theme="light"] .landing__trust{text-shadow:0 1px 8px rgba(255,255,255,.48)}
:root[data-theme="light"] .landing__trust{border-top-color:rgba(28,43,69,.12)}
:root[data-theme="light"] .brand__wordmark{filter:brightness(0) saturate(100%)}
@media(max-width:680px){:root[data-theme="light"] .landing{background-attachment:scroll;background-position:center top}}
/* Knowledge base uploads */
.knowledge-card__top{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
.knowledge-card__delete{width:30px;height:30px;flex:0 0 auto;color:var(--muted)}
.knowledge-card__delete:hover{color:var(--danger);border-color:rgba(255,105,131,.35)}
.knowledge-card__file{display:grid;gap:4px;margin:0 0 9px;overflow:hidden}
.knowledge-card__file b{overflow:hidden;color:var(--soft);font-size:11px;text-overflow:ellipsis;white-space:nowrap}
.knowledge-card__file small,.knowledge-upload-hint{color:var(--muted);font-size:11px;line-height:1.5}
.knowledge-upload-hint{display:block;margin-top:7px}
/* SolAI glass dashboard refresh */
.app-shell{
  isolation:isolate;
  background:linear-gradient(135deg,rgba(7,11,27,.76),rgba(13,18,42,.84)),url("/static/assets/dusk-alpine-city.jpg?v=20261029-1") center/cover fixed;
}
.sidebar{
  border-right-color:rgba(225,235,255,.17);
  background:rgba(9,14,33,.65);
  backdrop-filter:blur(30px) saturate(145%);
  -webkit-backdrop-filter:blur(30px) saturate(145%);
}
.workspace-switch{background:rgba(255,255,255,.065);border-color:rgba(225,235,255,.11)}
.topbar{
  border-bottom-color:rgba(225,235,255,.13);
  background:rgba(9,14,33,.46);
  backdrop-filter:blur(26px) saturate(145%);
  -webkit-backdrop-filter:blur(26px) saturate(145%);
}
.surface{
  border-color:rgba(210,224,255,.16);
  background:linear-gradient(145deg,rgba(27,36,73,.79),rgba(13,19,44,.75));
  box-shadow:0 18px 52px rgba(2,5,18,.2),inset 0 1px 0 rgba(255,255,255,.075);
  backdrop-filter:blur(22px) saturate(135%);
  -webkit-backdrop-filter:blur(22px) saturate(135%);
}
.nav-item{border:1px solid transparent;transition:transform .22s cubic-bezier(.2,.75,.25,1),background .22s,border-color .22s,color .22s,box-shadow .22s}
.nav-item:hover{transform:translateX(3px);border-color:rgba(200,220,255,.12);background:rgba(255,255,255,.07)}
.nav-item.is-active{
  border-color:rgba(119,218,255,.22);
  background:linear-gradient(110deg,rgba(58,183,229,.2),rgba(133,104,239,.14));
  box-shadow:inset 3px 0 0 #62d5f5,0 7px 22px rgba(4,11,34,.12);
}
.button{
  position:relative;
  transform:translateZ(0);
  transition:transform .2s cubic-bezier(.2,.75,.25,1),box-shadow .2s,border-color .2s,background .2s,color .2s;
}
.button:hover:not(:disabled){transform:translateY(-2px) scale(1.012)}
.button:active:not(:disabled){transform:translateY(0) scale(.975);box-shadow:inset 0 2px 5px rgba(4,10,30,.2)}
.button--primary{
  color:#fff;
  background:linear-gradient(125deg,#138bb5 0%,#4d8ee9 48%,#765dd9 100%);
  box-shadow:0 10px 26px rgba(64,127,225,.27),inset 0 1px 0 rgba(255,255,255,.26);
}
.button--primary:hover:not(:disabled){background:linear-gradient(125deg,#20a4ce 0%,#609ff2 48%,#8a70e8 100%);box-shadow:0 15px 32px rgba(69,132,230,.36),inset 0 1px 0 rgba(255,255,255,.32)}
.button--secondary{border-color:rgba(211,225,255,.16);background:rgba(255,255,255,.075);box-shadow:inset 0 1px 0 rgba(255,255,255,.065)}
.button--secondary:hover:not(:disabled){border-color:rgba(127,214,255,.38);background:rgba(107,175,255,.12);box-shadow:0 8px 23px rgba(8,14,38,.16)}
.button--ghost:hover:not(:disabled){transform:translateY(-1px);background:rgba(255,255,255,.075)}
.icon-button{transition:transform .2s,border-color .2s,background .2s,color .2s,box-shadow .2s}
.icon-button:hover{transform:translateY(-1px);border-color:rgba(119,218,255,.35);box-shadow:0 7px 18px rgba(5,12,34,.18)}
.icon-button:active{transform:scale(.95)}
.metric-card--button,.order-card,.knowledge-card{transition:transform .22s,border-color .22s,box-shadow .22s,background .22s}
:root[data-theme="light"] .app-shell{
  background:linear-gradient(135deg,rgba(239,245,253,.65),rgba(239,239,255,.76)),url("/static/assets/dusk-alpine-city.jpg?v=20261029-1") center/cover fixed;
}
:root[data-theme="light"] .sidebar{
  border-right-color:rgba(255,255,255,.72);
  background:rgba(249,252,255,.73);
  backdrop-filter:blur(30px) saturate(145%);
  -webkit-backdrop-filter:blur(30px) saturate(145%);
}
:root[data-theme="light"] .topbar{border-bottom-color:rgba(47,68,104,.1);background:rgba(250,252,255,.69);backdrop-filter:blur(24px);-webkit-backdrop-filter:blur(24px)}
:root[data-theme="light"] .workspace-switch{border-color:rgba(47,68,104,.1);background:rgba(255,255,255,.58)}
:root[data-theme="light"] .surface{border-color:rgba(54,74,111,.13);background:rgba(255,255,255,.79);box-shadow:0 18px 45px rgba(34,54,88,.09),inset 0 1px 0 rgba(255,255,255,.9);backdrop-filter:blur(22px);-webkit-backdrop-filter:blur(22px)}
:root[data-theme="light"] .nav-item.is-active{border-color:rgba(8,127,163,.2);background:linear-gradient(110deg,rgba(38,174,213,.15),rgba(113,92,216,.1));box-shadow:inset 3px 0 0 #158fb3,0 7px 20px rgba(37,57,89,.07)}
:root[data-theme="light"] .button--secondary{border-color:rgba(48,68,103,.15);background:rgba(255,255,255,.66);box-shadow:0 5px 14px rgba(31,53,89,.05)}
:root[data-theme="light"] .button--secondary:hover:not(:disabled){border-color:rgba(8,127,163,.28);background:rgba(227,247,252,.9)}
@media(hover:hover){.metric-card--button:hover,.order-card:hover,.knowledge-card:hover{transform:translateY(-2px);border-color:rgba(119,218,255,.23);box-shadow:0 20px 44px rgba(3,8,27,.22),inset 0 1px 0 rgba(255,255,255,.075)}}
@media(max-width:760px){.app-shell,:root[data-theme="light"] .app-shell{background-attachment:scroll}.sidebar{backdrop-filter:blur(22px);-webkit-backdrop-filter:blur(22px)}}
@media(prefers-reduced-motion:reduce){.button,.nav-item,.icon-button,.metric-card--button,.order-card,.knowledge-card{transition:none!important;transform:none!important}}
/* Interactive product preview: working SolAI screens */
.product-preview{transition:transform .42s cubic-bezier(.2,.75,.25,1),filter .35s;transform:perspective(1400px) rotateY(-2deg) translateY(0)}
.product-preview:hover{transform:perspective(1400px) rotateY(0) translateY(-3px);filter:drop-shadow(0 24px 34px rgba(8,15,41,.2))}
.preview-window{border-color:rgba(215,229,255,.19);background:linear-gradient(145deg,#111a3b,#0d1531);box-shadow:0 24px 64px rgba(3,8,26,.28),inset 0 1px 0 rgba(255,255,255,.07)}
.preview-window__top{gap:10px;padding:0 16px}
.preview-window__address{color:#c0cbe6;white-space:nowrap}
.preview-window__address i{padding:0 3px;color:#6c789d;font-style:normal}
.preview-window__live{display:inline-flex;align-items:center;gap:6px;margin-left:auto;padding:5px 9px;border:1px solid rgba(97,230,162,.16);border-radius:999px;color:#b4ebce;background:rgba(97,230,162,.07);font-size:9px;font-weight:700;white-space:nowrap}
.preview-window__live i{width:6px;height:6px;border-radius:50%;background:#61e6a2;box-shadow:0 0 0 3px rgba(97,230,162,.1)}
.preview-window__body{grid-template-columns:142px minmax(0,1fr);gap:15px;min-height:408px;padding:17px}
.preview-rail{gap:6px;padding:3px 10px 0 0}
.preview-rail__brand{gap:9px;margin:0 0 17px}
.preview-rail__brand-mark{width:32px;height:32px;border-radius:10px;box-shadow:0 7px 16px rgba(89,125,240,.16)}
.preview-rail__brand-copy{display:grid;gap:3px;line-height:1}
.preview-rail__brand-copy b{font-size:12px;letter-spacing:-.025em}
.preview-rail__brand-copy small{color:#7f8baa;font-size:7px;font-weight:750;letter-spacing:.12em}
.preview-rail__label{margin:0 0 3px;padding-left:8px;font-size:8px}
.preview-rail__label--recent{margin-top:10px}
.preview-rail__item{width:100%;min-height:36px;border:1px solid transparent;background:transparent;text-align:left;cursor:pointer}
.preview-rail__item:hover{border-color:rgba(137,206,255,.13);color:#edf8ff;background:rgba(255,255,255,.055)}
.preview-rail__item.is-active{border-color:rgba(117,218,255,.18);color:#effaff;background:linear-gradient(100deg,rgba(72,190,230,.18),rgba(128,105,236,.11));box-shadow:inset 2px 0 0 #67d6f3,0 6px 18px rgba(4,11,34,.13)}
.preview-rail__item:active,.preview-rail__thread:active{transform:scale(.975)}
.preview-rail__item:focus-visible,.preview-rail__thread:focus-visible,.preview-rail__open:focus-visible,.preview-composer button:focus-visible,.preview-contact-card:focus-visible,.preview-document-card:focus-visible,.preview-pane-cta:focus-visible{outline:2px solid #78e4ff;outline-offset:2px}
.preview-rail__icon{display:grid;place-items:center}
.preview-rail__icon svg{width:16px;height:16px}
.preview-rail__thread{width:100%;min-height:38px;border:1px solid transparent;background:transparent;text-align:left;cursor:pointer;transition:transform .18s,background .18s,border-color .18s}
.preview-rail__thread:hover{border-color:rgba(210,226,255,.1);background:rgba(255,255,255,.045)}
.preview-rail__thread.is-selected{border-color:rgba(180,205,255,.08);background:rgba(255,255,255,.075)}
.preview-rail__thread-avatar{width:27px;height:27px;border-radius:9px}
.preview-rail__open{min-height:31px;display:flex;align-items:center;justify-content:flex-start;gap:6px;margin-top:auto;padding:0 8px;border:1px solid rgba(124,210,255,.13);border-radius:9px;color:#b5eaff;background:rgba(73,170,226,.08);font-size:9px;font-weight:700;cursor:pointer;transition:background .2s,border-color .2s,transform .2s}
.preview-rail__open:hover,.preview-pane-cta:hover{border-color:rgba(124,210,255,.35);background:rgba(73,170,226,.16);transform:translateY(-1px)}
.preview-chat{grid-template-rows:auto minmax(0,1fr) auto;gap:12px}
.preview-chat__head{min-height:46px;gap:10px;padding-bottom:11px}
.preview-avatar{width:34px;height:34px;flex-basis:34px;border-radius:11px;background:linear-gradient(135deg,#7be4ff,#8c79f1);box-shadow:0 7px 18px rgba(86,133,238,.18)}
.preview-person-copy b{font-size:11px}
.preview-person-copy small{font-size:8px}
.preview-status{padding:6px 9px;font-size:8px}
.preview-chat__messages{align-content:center;gap:9px}
.preview-message{max-width:91%;padding:9px 11px;border-radius:12px 12px 12px 4px;font-size:9px;line-height:1.5}
.preview-message--mine{max-width:92%;border-radius:12px 12px 4px 12px}
.preview-message small{font-size:7px}
.preview-knowledge-note{padding:7px 9px;border-radius:9px}
.preview-handoff{padding:7px 10px;border-radius:9px}
.preview-composer{min-height:39px;padding:6px 7px 6px 11px;border-radius:11px;box-shadow:inset 0 2px 8px rgba(0,0,0,.12)}
.preview-composer button{width:27px;height:27px;border-radius:8px;transition:transform .18s,box-shadow .18s}
.preview-composer button:hover{transform:translateY(-1px) scale(1.04);box-shadow:0 5px 14px rgba(94,207,246,.28)}
.preview-composer button:active{transform:scale(.94)}
.preview-pane{animation:previewPaneEnter .28s cubic-bezier(.2,.75,.25,1) both}
@keyframes previewPaneEnter{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}
.preview-workspace-pane{min-width:0;min-height:0;display:grid;grid-template-rows:auto minmax(0,1fr) auto;align-content:stretch;gap:12px;padding:1px 0}
.preview-pane-heading{min-height:46px;display:flex;align-items:center;gap:10px;padding:0 0 11px;border-bottom:1px solid rgba(216,226,255,.09)}
.preview-pane-heading__icon{width:34px;height:34px;display:grid;place-items:center;border:1px solid rgba(120,228,255,.13);border-radius:11px;color:#8be6ff;background:rgba(120,228,255,.08)}
.preview-pane-heading>span:nth-child(2){min-width:0;flex:1;display:grid;gap:3px}
.preview-pane-heading b{color:#edf3ff;font-size:11px}
.preview-pane-heading small{overflow:hidden;color:#8d99bb;font-size:8px;text-overflow:ellipsis;white-space:nowrap}
.preview-pane-heading>i{min-width:23px;height:23px;display:grid;place-items:center;border:1px solid rgba(120,228,255,.16);border-radius:8px;color:#a9eaff;background:rgba(120,228,255,.07);font-size:9px;font-style:normal;font-weight:750}
.preview-contact-list,.preview-document-list{min-height:0;display:grid;align-content:center;gap:8px}
.preview-contact-card,.preview-document-card{width:100%;min-width:0;display:flex;align-items:center;gap:9px;padding:10px;border:1px solid rgba(216,226,255,.085);border-radius:12px;color:#e8edff;background:rgba(255,255,255,.045);text-align:left;cursor:pointer;transition:transform .2s,border-color .2s,background .2s,box-shadow .2s}
.preview-contact-card:hover,.preview-document-card:hover{transform:translateY(-1px);border-color:rgba(120,228,255,.24);background:rgba(120,228,255,.075);box-shadow:0 8px 20px rgba(4,10,31,.16)}
.preview-contact-avatar{width:31px;height:31px;flex:0 0 auto;display:grid;place-items:center;border-radius:10px;color:#0c1a2f;background:linear-gradient(135deg,#8ceaff,#9a8df3);font-size:10px;font-weight:800}
.preview-contact-copy,.preview-document-copy{min-width:0;flex:1;display:grid;gap:4px}
.preview-contact-copy b,.preview-document-copy b{overflow:hidden;font-size:9px;text-overflow:ellipsis;white-space:nowrap}
.preview-contact-copy small,.preview-document-copy small{overflow:hidden;color:#8f9bbc;font-size:8px;text-overflow:ellipsis;white-space:nowrap}
.preview-contact-card>svg{flex:0 0 auto;color:#91a0c4}
.preview-document-card{padding:9px}
.preview-document-icon{width:30px;height:32px;flex:0 0 auto;display:grid;place-items:center;border-radius:9px;color:#91dfff;background:rgba(91,190,236,.1)}
.preview-document-ready{width:22px;height:22px;flex:0 0 auto;display:grid;place-items:center;border-radius:7px;color:#76e6ad;background:rgba(97,230,162,.1)}
.preview-knowledge-summary{display:flex;align-items:center;gap:7px;padding:9px 10px;border:1px solid rgba(120,228,255,.1);border-radius:10px;color:#a9dff0;background:rgba(120,228,255,.045);font-size:8px}
.preview-knowledge-summary>span:first-child{display:grid;place-items:center;color:#85e4ff}
.preview-pane-cta{min-height:34px;display:flex;align-items:center;justify-content:center;gap:7px;padding:0 10px;border:1px solid rgba(120,210,255,.14);border-radius:10px;color:#b7eaff;background:rgba(72,170,226,.075);font-size:9px;font-weight:700;cursor:pointer;transition:transform .2s,border-color .2s,background .2s}
:root[data-theme="light"] .product-preview{background:linear-gradient(145deg,rgba(255,255,255,.88),rgba(234,241,252,.9))}
:root[data-theme="light"] .preview-window{background:linear-gradient(145deg,#fff,#f7f9fd);box-shadow:0 22px 55px rgba(42,58,88,.12),inset 0 1px 0 #fff}
:root[data-theme="light"] .preview-window__address{color:#52627a}
:root[data-theme="light"] .preview-window__live{color:#15734d;background:rgba(37,170,112,.07)}
:root[data-theme="light"] .preview-rail__brand-copy b,:root[data-theme="light"] .preview-pane-heading b{color:#1a2940}
:root[data-theme="light"] .preview-rail__brand-copy small{color:#7888a0}
:root[data-theme="light"] .preview-rail__item{color:#52627a}
:root[data-theme="light"] .preview-rail__item:hover,:root[data-theme="light"] .preview-rail__thread:hover{color:#234760;background:rgba(24,117,158,.055)}
:root[data-theme="light"] .preview-rail__thread{color:#40516a}
:root[data-theme="light"] .preview-rail__thread.is-selected{border-color:rgba(31,70,109,.08);background:rgba(32,65,104,.06)}
:root[data-theme="light"] .preview-rail__open,:root[data-theme="light"] .preview-pane-cta{border-color:rgba(8,127,163,.16);color:#176782;background:rgba(8,127,163,.055)}
:root[data-theme="light"] .preview-rail__open:hover,:root[data-theme="light"] .preview-pane-cta:hover{background:rgba(8,127,163,.11)}
:root[data-theme="light"] .preview-pane-heading small,:root[data-theme="light"] .preview-contact-copy small,:root[data-theme="light"] .preview-document-copy small{color:#687990}
:root[data-theme="light"] .preview-contact-card,:root[data-theme="light"] .preview-document-card{border-color:rgba(42,61,94,.1);color:#26374e;background:rgba(255,255,255,.77)}
:root[data-theme="light"] .preview-contact-card:hover,:root[data-theme="light"] .preview-document-card:hover{border-color:rgba(8,127,163,.22);background:#f0f9fc}
:root[data-theme="light"] .preview-document-icon{color:#147fa3;background:rgba(8,127,163,.08)}
:root[data-theme="light"] .preview-knowledge-summary{border-color:rgba(8,127,163,.13);color:#276078;background:rgba(8,127,163,.045)}
@media(max-width:800px){.preview-window__body{grid-template-columns:126px minmax(0,1fr);min-height:392px}.product-preview{transform:none}.product-preview:hover{transform:translateY(-2px)}}
@media(max-width:680px){.preview-window__body{grid-template-columns:56px minmax(0,1fr);min-height:332px;padding:10px;gap:8px}.preview-rail{align-items:center;padding-right:6px}.preview-rail__brand{margin-bottom:10px}.preview-rail__brand-mark{width:29px;height:29px}.preview-rail__brand-copy,.preview-rail__label,.preview-rail__item-name,.preview-rail__item i,.preview-rail__thread-copy,.preview-rail__open span{display:none}.preview-rail__item{width:36px;min-height:36px;justify-content:center;padding:0}.preview-rail__thread{width:36px;min-height:35px;display:flex;justify-content:center;padding:3px}.preview-rail__thread-avatar{width:25px;height:25px}.preview-rail__open{width:36px;height:34px;justify-content:center;padding:0}.preview-chat__head{gap:6px}.preview-status{gap:4px;padding:4px 5px;font-size:7px}.preview-contact-card,.preview-document-card{gap:6px;padding:7px}.preview-contact-avatar{width:25px;height:25px}.preview-pane-heading{gap:7px}.preview-pane-heading__icon{width:29px;height:29px}.preview-pane-heading small{display:none}}
@media(max-width:390px){.preview-window__body{grid-template-columns:46px minmax(0,1fr);min-height:304px;padding:8px 6px;gap:6px}.preview-rail{padding-right:4px}.preview-rail__item,.preview-rail__thread,.preview-rail__open{width:31px;min-height:31px}.preview-chat__messages{gap:6px}.preview-status{font-size:6px}.preview-window__live{font-size:7px;padding:4px 6px}.preview-window__top{gap:6px;padding:0 9px}.preview-pane-heading>i{min-width:20px;height:20px}}
@media(prefers-reduced-motion:reduce){.product-preview,.preview-pane,.preview-rail__item,.preview-rail__thread,.preview-contact-card,.preview-document-card,.preview-composer button,.preview-pane-cta,.preview-rail__open{transition:none!important;animation:none!important}}
