[hidden]{display:none!important}
:root{--bg:#f7f7f8;--panel:#fff;--line:#e8e8ec;--text:#17171b;--muted:#74747e;--soft:#f0f0f3;--accent:#5b4cf0;--accent2:#7c6ff7;--shadow:0 22px 70px rgba(22,22,29,.10)}*{box-sizing:border-box}html,body{margin:0;height:100%;font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--text);background:var(--bg)}button,input,textarea{font:inherit}button{cursor:pointer}.auth-shell{min-height:100vh;padding:28px;display:grid;grid-template-rows:auto 1fr auto;background:radial-gradient(circle at 72% 8%,rgba(111,95,246,.15),transparent 31%),radial-gradient(circle at 12% 88%,rgba(91,76,240,.07),transparent 26%),linear-gradient(180deg,#fcfcfd,#f4f4f7)}.auth-brand,.brand-lockup{display:flex;align-items:center;gap:10px;font-weight:850;letter-spacing:.045em}.brand-mark{width:38px;height:38px;border-radius:13px;display:grid;place-items:center;color:#fff;background:linear-gradient(135deg,#111116 12%,#6557ee 78%,#8f84ff);box-shadow:0 10px 28px rgba(91,76,240,.24)}.brand-mark.small{width:28px;height:28px;border-radius:9px;font-size:13px}.auth-main{width:min(1060px,100%);margin:auto;display:grid;grid-template-columns:1.05fr .95fr;overflow:hidden;background:rgba(255,255,255,.88);border:1px solid rgba(255,255,255,.94);border-radius:30px;box-shadow:var(--shadow);backdrop-filter:blur(22px)}.auth-story{position:relative;min-height:560px;padding:58px 54px;display:flex;flex-direction:column;justify-content:space-between;overflow:hidden;background:linear-gradient(145deg,#17171d,#252234 58%,#5d52d7 145%);color:#fff}.auth-story:before{content:"";position:absolute;width:330px;height:330px;border-radius:50%;right:-145px;top:-110px;border:1px solid rgba(255,255,255,.12);box-shadow:0 0 0 54px rgba(255,255,255,.035),0 0 0 108px rgba(255,255,255,.018)}.auth-story-copy{position:relative;max-width:430px}.auth-orb{width:48px;height:48px;border-radius:16px;background:linear-gradient(135deg,#fff,#c9c3ff 55%,#776af8);box-shadow:0 12px 36px rgba(0,0,0,.22);margin-bottom:30px}.auth-story h1{font-size:50px;line-height:.99;letter-spacing:-.045em;margin:0 0 18px}.auth-story p{max-width:390px;margin:0;color:#c4c1d0;font-size:16px;line-height:1.65}.auth-points{position:relative;display:grid;gap:11px}.auth-point{display:flex;align-items:center;gap:10px;color:#ddd9e9;font-size:12px}.auth-point i{width:7px;height:7px;border-radius:50%;display:block;background:#9d91ff;box-shadow:0 0 0 4px rgba(157,145,255,.10)}.auth-card{padding:54px 52px;display:flex;flex-direction:column;justify-content:center;background:rgba(255,255,255,.94)}.auth-eyebrow{font-size:11px;text-transform:uppercase;letter-spacing:.14em;color:#777782;font-weight:800}.auth-card h2{font-size:34px;line-height:1.06;margin:12px 0 10px;letter-spacing:-.035em}.auth-card>p{color:var(--muted);margin:0 0 24px;line-height:1.5}.auth-tabs{display:grid;grid-template-columns:1fr 1fr;background:var(--soft);padding:4px;border-radius:12px;margin-bottom:22px}.auth-tab{border:0;background:transparent;padding:10px;border-radius:9px;color:var(--muted)}.auth-tab.active{background:#fff;color:var(--text);box-shadow:0 2px 10px rgba(0,0,0,.06)}.auth-card label{display:block;font-size:12px;font-weight:750;margin:14px 0}.auth-card input{width:100%;margin-top:8px;border:1px solid #dfdfe5;border-radius:12px;padding:13px 14px;outline:0;background:#fff;color:var(--text)}.auth-card input:focus{border-color:#9b92f5;box-shadow:0 0 0 3px rgba(91,76,240,.09)}.field-row{display:flex;align-items:center;justify-content:space-between;margin-top:2px}.field-row label{margin:0}.text-link{border:0;background:transparent;padding:0;color:#6256d7;font-size:12px;font-weight:700}.auth-error{min-height:18px;margin:3px 0 2px!important;color:#ad3d48!important;font-size:12px;line-height:1.4}.primary,.secondary{border:0;border-radius:12px;padding:12px 16px;font-weight:750}.primary{background:#18181d;color:#fff}.primary:hover{background:#24242a}.primary:disabled{background:#c7c7cd;cursor:wait}.secondary{background:#fff;color:var(--text);border:1px solid var(--line)}.wide{width:100%}.compact{padding:8px 12px;border-radius:10px}.auth-legal{margin:18px 0 0!important;color:#9696a0!important;font-size:11px;line-height:1.55!important;text-align:center}.auth-legal button{border:0;background:transparent;color:#666671;padding:0;text-decoration:underline;text-decoration-color:#c8c8cf;text-underline-offset:2px}.auth-footer{text-align:center;color:#9b9ba4;font-size:11px;padding-top:18px}.auth-footer span{margin:0 6px;color:#c3c3c9}.auth-footer button{border:0;background:transparent;padding:0;color:#8b8b95;font-size:11px}.auth-submit-row{margin-top:4px}.auth-security{display:flex;align-items:center;justify-content:center;gap:7px;margin-top:16px;color:#92929c;font-size:11px}.auth-security i{width:6px;height:6px;border-radius:50%;background:#51b77a}.auth-shell [hidden]{display:none!important}
@media(max-width:900px){.auth-main{grid-template-columns:1fr;width:min(560px,100%)}.auth-story{display:none}.auth-card{padding:44px 36px}.auth-shell{padding:20px}.auth-footer{padding-top:14px}}
@media(max-width:520px){.auth-shell{padding:16px}.auth-card{padding:34px 22px}.auth-card h2{font-size:30px}.auth-main{border-radius:22px}.auth-brand{font-size:14px}}
.app-shell{height:100vh;display:grid;grid-template-columns:278px 1fr;overflow:hidden}.sidebar{height:100vh;background:#f1f1f3;border-right:1px solid #e5e5e9;display:flex;flex-direction:column;padding:14px;z-index:30}.sidebar-top{display:grid;gap:12px}.brand-row{display:flex;align-items:center;justify-content:space-between;padding:2px 3px 8px}.new-chat{border:1px solid #dedee4;background:#fff;border-radius:12px;padding:11px 12px;display:flex;align-items:center;gap:8px;font-weight:700;text-align:left;box-shadow:0 1px 2px rgba(0,0,0,.03)}.new-chat kbd{margin-left:auto;border:0;background:transparent;color:#9a9aa3;font-size:10px}.sidebar-search{display:flex;align-items:center;gap:8px;padding:8px 10px;color:#8c8c95}.sidebar-search input{border:0;background:transparent;outline:0;width:100%;color:var(--text)}.chat-groups{flex:1;overflow:auto;padding:4px 0}.chat-empty{padding:18px 10px;color:#96969f;font-size:12px;line-height:1.5}.chat-group-label{font-size:11px;font-weight:800;color:#9a9aa3;padding:12px 8px 6px;text-transform:uppercase;letter-spacing:.08em}.chat-row{display:flex;align-items:center;gap:8px;padding:9px 9px;border-radius:9px;margin:1px 0;color:#44444c}.chat-row:hover,.chat-row.active{background:#e5e5e9}.chat-main{border:0;background:transparent;text-align:left;flex:1;min-width:0;color:inherit;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chat-actions{display:none;gap:2px}.chat-row:hover .chat-actions,.chat-row.active .chat-actions{display:flex}.chat-actions button{border:0;background:transparent;color:#888892;padding:2px 4px}.sidebar-bottom{display:grid;gap:10px}.usage-card{background:#fff;border:1px solid #e1e1e6;border-radius:13px;padding:12px}.usage-head,.usage-foot{display:flex;align-items:center;justify-content:space-between;font-size:11px}.usage-head{font-size:12px}.usage-track{height:5px;background:#ececf0;border-radius:8px;margin:10px 0;overflow:hidden}.usage-track i{display:block;height:100%;width:12%;background:linear-gradient(90deg,var(--accent),#8c80fa)}.usage-foot{color:var(--muted)}.usage-foot button{border:0;background:transparent;color:var(--accent);padding:0}.profile-row{border:0;background:transparent;display:grid;grid-template-columns:auto 1fr auto;gap:10px;align-items:center;text-align:left;padding:8px;border-radius:10px}.profile-row:hover{background:#e7e7ea}.avatar{width:32px;height:32px;border-radius:50%;display:grid;place-items:center;background:#1e1e23;color:#fff;font-size:11px;font-weight:800}.profile-row strong,.profile-row small{display:block}.profile-row small{color:var(--muted);margin-top:2px}.chev{color:#9999a2}.workspace{position:relative;min-width:0;background:var(--panel);display:flex;flex-direction:column;height:100vh}.topbar{height:62px;display:flex;align-items:center;justify-content:space-between;padding:0 22px;border-bottom:1px solid #f0f0f2}.chat-title{border:0;background:transparent;font-weight:700;color:#303036;max-width:280px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.topbar-actions{display:flex;align-items:center;gap:12px}.mode-picker{display:flex;padding:3px;background:#f3f3f5;border-radius:11px}.mode-picker button{border:0;background:transparent;padding:7px 10px;border-radius:8px;color:#73737d;font-size:12px;font-weight:700}.mode-picker button.active{background:#fff;color:#24242a;box-shadow:0 1px 5px rgba(0,0,0,.08)}.connection-banner{padding:8px 16px;background:#fff7dc;color:#66531b;text-align:center;font-size:12px;border-bottom:1px solid #f2e5b4}.conversation{flex:1;overflow:auto;padding:42px max(24px,calc((100% - 760px)/2)) 210px}.empty-state{min-height:calc(100vh - 330px);display:flex;flex-direction:column;justify-content:center}.empty-state .orb{width:42px;height:42px;border-radius:14px;background:linear-gradient(135deg,#111116,#7668f6);box-shadow:0 10px 30px rgba(91,76,240,.18);margin-bottom:18px}.empty-state h1{font-size:34px;margin:0 0 8px;letter-spacing:-.03em}.empty-state p{margin:0;color:var(--muted);font-size:15px}.suggestions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:26px}.suggestion{border:1px solid var(--line);background:#fff;padding:14px 15px;border-radius:14px;text-align:left;color:#404048}.suggestion:hover{border-color:#cfcfd6;box-shadow:0 7px 20px rgba(0,0,0,.04)}.suggestion strong{display:block;color:#26262b;margin-bottom:4px}.suggestion small{color:var(--muted)}.message{display:grid;grid-template-columns:34px 1fr;gap:12px;margin:0 0 26px}.message-avatar{width:30px;height:30px;border-radius:9px;display:grid;place-items:center;font-size:11px;font-weight:800}.message.user .message-avatar{background:#ededf0;color:#55555f}.message.assistant .message-avatar{background:#18181d;color:#fff}.message-body{padding-top:3px;line-height:1.65;color:#2d2d34;white-space:pre-wrap}.message.user .message-body{color:#1f1f25}.message-meta{font-size:11px;color:#9a9aa3;margin-top:8px}.typing:after{content:"";display:inline-block;width:6px;height:16px;background:#4a4a54;margin-left:3px;vertical-align:-2px;animation:blink .9s steps(2) infinite}@keyframes blink{50%{opacity:0}}.error-card{border:1px solid #f0d0d0;background:#fff7f7;border-radius:12px;padding:12px 14px;color:#7b3434}.error-card button{margin-top:8px;border:1px solid #e9caca;background:white;border-radius:8px;padding:6px 9px}.composer-wrap{position:absolute;left:0;right:0;bottom:0;padding:18px max(24px,calc((100% - 760px)/2)) 14px;background:linear-gradient(180deg,rgba(255,255,255,0),#fff 22%,#fff)}.mode-hint{font-size:11px;color:#85858f;margin:0 8px 7px;display:flex;gap:7px}.mode-hint strong{color:#54545e}.composer{border:1px solid #dcdce2;border-radius:18px;background:white;box-shadow:0 10px 38px rgba(20,20,27,.08);padding:12px}.composer:focus-within{border-color:#bbb7eb;box-shadow:0 10px 38px rgba(20,20,27,.08),0 0 0 3px rgba(91,76,240,.08)}.composer textarea{display:block;width:100%;resize:none;max-height:190px;min-height:38px;border:0;outline:0;padding:4px 5px 8px;color:#202026;background:transparent}.composer-bottom{display:flex;align-items:center;justify-content:space-between}.composer-tools,.composer-actions{display:flex;align-items:center;gap:6px}.tool-button,.tool-pill{border:1px solid #e5e5ea;background:#f8f8f9;border-radius:10px;color:#55555f}.tool-button{width:34px;height:34px}.tool-pill{padding:8px 10px;font-size:12px}.send-button{border:0;width:34px;height:34px;border-radius:10px;background:#1a1a1f;color:#fff;font-size:19px}.send-button:disabled{background:#d4d4da;color:#fff;cursor:not-allowed}.composer-note{text-align:center;font-size:10px;color:#a0a0a8;margin-top:8px}.toast{position:fixed;right:24px;bottom:24px;background:#202026;color:white;padding:10px 13px;border-radius:10px;font-size:12px;box-shadow:var(--shadow);opacity:0;transform:translateY(8px);pointer-events:none;transition:.2s;z-index:100}.toast.show{opacity:1;transform:none}.sidebar-scrim,.mobile-only{display:none}
@media(max-width:860px){.app-shell{grid-template-columns:1fr}.sidebar{position:fixed;left:0;top:0;width:min(88vw,320px);transform:translateX(-105%);transition:.22s;box-shadow:20px 0 60px rgba(0,0,0,.12)}.sidebar.open{transform:none}.sidebar-scrim{display:block;position:fixed;inset:0;border:0;background:rgba(20,20,24,.28);z-index:20;opacity:0;pointer-events:none;transition:.2s}.sidebar.open+.sidebar-scrim{opacity:1;pointer-events:auto}.mobile-only{display:inline-grid}.icon-button{place-items:center;border:0;background:transparent;width:34px;height:34px;border-radius:9px}.topbar{padding:0 12px}.topbar-actions{gap:6px}.mode-picker button{padding:7px 8px}.secondary.compact{display:none}.conversation{padding-left:18px;padding-right:18px}.composer-wrap{padding-left:14px;padding-right:14px}.empty-state h1{font-size:29px}}
@media(max-width:560px){.mode-picker button{font-size:0;padding:8px}.mode-picker button:after{font-size:10px}.mode-picker button[data-mode=Auto]:after{content:"A"}.mode-picker button[data-mode=Fast]:after{content:"F"}.mode-picker button[data-mode=Smart]:after{content:"S"}.mode-picker button[data-mode=Expert]:after{content:"E"}.suggestions{grid-template-columns:1fr}.auth-shell{padding:18px}.auth-card{padding:26px 20px}.auth-card h1{font-size:30px}.conversation{padding-bottom:220px}.empty-state{min-height:calc(100vh - 360px)}}

/* v0.2.2 interactive + i18n */
.auth-top{display:flex;align-items:center;justify-content:space-between}.locale-select{appearance:auto;border:1px solid #dedee5;background:rgba(255,255,255,.84);color:#44444e;border-radius:10px;padding:8px 28px 8px 10px;font-size:12px;outline:none}.locale-select:focus{border-color:#8c80f7;box-shadow:0 0 0 3px rgba(91,76,240,.08)}.locale-select.compact{padding:7px 24px 7px 8px;background:#f7f7f9}.tool-pill.active{background:#ece9ff;border-color:#cbc4ff;color:#4938d6}.attachment-tray{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:4px}.attachment-tray:empty{display:none}.attachment-chip,.message-attachments span{display:inline-flex;align-items:center;gap:5px;border:1px solid #e2e2e8;background:#f7f7f9;border-radius:9px;padding:5px 8px;font-size:11px;color:#5f5f69}.attachment-chip button{border:0;background:transparent;color:#999;padding:0}.message-attachments{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}.message-content{min-width:0}.message-body pre{white-space:pre;overflow:auto;background:#17171c;color:#f4f4f6;border-radius:12px;padding:14px;margin:10px 0}.message-body code{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;background:#f1f1f4;border-radius:5px;padding:1px 4px}.message-body pre code{background:transparent;padding:0}.message-tools{display:flex;gap:6px;margin-top:8px}.message-tools button{border:0;background:transparent;color:#82828d;padding:4px 0;margin-right:10px;font-size:11px}.message-tools button:hover{color:#25252c}.conversation{padding-left:max(24px,calc((100% - 900px)/2));padding-right:max(24px,calc((100% - 900px)/2))}.composer-wrap{padding-left:max(24px,calc((100% - 900px)/2));padding-right:max(24px,calc((100% - 900px)/2))}@media(max-width:860px){.locale-select.compact{max-width:98px}.conversation,.composer-wrap{padding-left:14px;padding-right:14px}}@media(max-width:560px){.auth-top{gap:10px}.locale-select{max-width:120px}.topbar .locale-select.compact{display:none}}

.billing-modal[hidden]{display:none!important}.billing-modal{position:fixed;inset:0;z-index:90;display:grid;place-items:center;padding:24px}.billing-backdrop{position:absolute;inset:0;background:rgba(20,20,30,.34);backdrop-filter:blur(8px)}.billing-sheet{position:relative;width:min(920px,96vw);max-height:90vh;overflow:auto;background:#fff;border:1px solid #e9e7f1;border-radius:24px;padding:24px;box-shadow:0 30px 100px rgba(34,24,75,.24)}.billing-head{display:flex;justify-content:space-between}.billing-close{border:0;background:#f3f1f8;border-radius:12px;width:38px;height:38px;font-size:22px}.billing-notice{margin:18px 0;padding:12px 14px;border-radius:12px;background:#fff7df;color:#715b13}.billing-plans{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:22px}.billing-plan{border:1px solid #e8e5ef;border-radius:18px;padding:18px}.billing-plan.active{box-shadow:0 0 0 2px #8f73ff inset}.billing-plan-top{display:flex;justify-content:space-between}.billing-price{font-size:27px;font-weight:750;margin:20px 0 8px}.billing-price small{font-size:12px;font-weight:500;margin-left:5px}.billing-limit,.billing-modes,.billing-secure{font-size:13px;color:#6f6b7a;margin:8px 0}.billing-buy{width:100%;margin-top:16px;border:0;border-radius:12px;padding:11px 14px;background:#17151d;color:#fff;font-weight:650}.billing-buy:disabled{opacity:.42}@media(max-width:760px){.billing-plans{grid-template-columns:1fr}}


/* ===== AINQORA_CUSTOMER_PREMIUM_V032 ===== */
.customer-premium-v032{
  --aq-ink:#19181f;
  --aq-ink-2:#2d2b35;
  --aq-muted:#777383;
  --aq-line:rgba(54,45,84,.105);
  --aq-soft:#f7f5fb;
  --aq-panel:rgba(255,255,255,.82);
  --aq-violet:#6f59e8;
  --aq-violet-2:#8f7cf5;
  --aq-violet-3:#c6bdfc;
  --aq-green:#35a56f;
  --aq-shadow-sm:0 8px 24px rgba(44,35,74,.06);
  --aq-shadow-md:0 18px 60px rgba(40,30,75,.10);
  --aq-shadow-lg:0 30px 100px rgba(37,26,72,.16);
  background:
    radial-gradient(circle at 82% 0%,rgba(126,105,240,.075),transparent 31rem),
    radial-gradient(circle at 23% 100%,rgba(160,145,247,.055),transparent 34rem),
    #fbfafc;
}
.customer-premium-v032 .app-shell{grid-template-columns:286px minmax(0,1fr);background:transparent}
.customer-premium-v032 .sidebar{
  padding:16px 14px 14px;
  background:
    linear-gradient(180deg,rgba(248,247,251,.96),rgba(244,242,248,.92)),
    radial-gradient(circle at 10% 0%,rgba(112,88,232,.08),transparent 18rem);
  border-right:1px solid rgba(58,48,91,.09);
  box-shadow:6px 0 30px rgba(42,33,72,.025);
}
.customer-premium-v032 .brand-row{padding:5px 4px 15px}
.customer-premium-v032 .brand-lockup{gap:11px;letter-spacing:0}
.customer-premium-v032 .brand-word{display:grid;gap:1px}
.customer-premium-v032 .brand-word strong{font-size:14px;letter-spacing:.11em;font-weight:860}
.customer-premium-v032 .brand-word small{font-size:8px;letter-spacing:.16em;color:#9b94aa;font-weight:800}
.customer-premium-v032 .brand-mark{
  position:relative;
  overflow:hidden;
  background:linear-gradient(145deg,#17151e 5%,#5442bd 58%,#9a89ff);
  box-shadow:0 10px 28px rgba(84,65,190,.23);
}
.customer-premium-v032 .brand-mark:after{
  content:"";position:absolute;inset:1px;border-radius:inherit;
  border:1px solid rgba(255,255,255,.24);pointer-events:none
}
.customer-premium-v032 .brand-mark.small{width:31px;height:31px;border-radius:10px}
.customer-premium-v032 .new-chat{
  min-height:43px;border:0;border-radius:13px;padding:11px 13px;color:white;
  background:linear-gradient(135deg,#24212b 0%,#3c315f 58%,#6954d6 130%);
  box-shadow:0 10px 24px rgba(48,38,83,.13);
  transition:transform .16s ease,box-shadow .16s ease,filter .16s ease
}
.customer-premium-v032 .new-chat:hover{transform:translateY(-1px);box-shadow:0 14px 28px rgba(48,38,83,.17);filter:saturate(1.05)}
.customer-premium-v032 .new-chat kbd{color:rgba(255,255,255,.5)}
.customer-premium-v032 .sidebar-search{
  margin-top:1px;padding:9px 10px;border:1px solid transparent;border-radius:11px;
  color:#aaa4b5;transition:.16s ease
}
.customer-premium-v032 .sidebar-search:focus-within{
  background:rgba(255,255,255,.72);border-color:rgba(101,80,201,.12);box-shadow:var(--aq-shadow-sm)
}
.customer-premium-v032 .sidebar-search input::placeholder{color:#aaa6b0}
.customer-premium-v032 .chat-groups{padding:8px 0 6px}
.customer-premium-v032 .chat-group-label{
  padding:12px 9px 6px;font-size:9px;letter-spacing:.15em;color:#aaa4b2
}
.customer-premium-v032 .chat-row{
  min-height:38px;padding:8px 9px;border-radius:10px;color:#504c59;transition:.13s ease
}
.customer-premium-v032 .chat-row:hover{background:rgba(255,255,255,.72)}
.customer-premium-v032 .chat-row.active{
  background:rgba(255,255,255,.92);
  box-shadow:0 4px 16px rgba(50,39,82,.055),inset 2px 0 0 #7b65e6;
  color:#25212c
}
.customer-premium-v032 .chat-actions button{border-radius:6px}
.customer-premium-v032 .sidebar-bottom{gap:9px}
.customer-premium-v032 .usage-card{
  border:1px solid rgba(70,57,108,.09);border-radius:16px;padding:13px 13px 12px;
  background:linear-gradient(145deg,rgba(255,255,255,.97),rgba(250,248,255,.92));
  box-shadow:0 8px 28px rgba(56,43,92,.055)
}
.customer-premium-v032 .usage-head strong{font-size:11px;color:#5746b0}
.customer-premium-v032 .usage-track{height:6px;background:#ece9f3;border-radius:999px}
.customer-premium-v032 .usage-track i{border-radius:999px;background:linear-gradient(90deg,#5d48cc,#8b77f2,#a696ff)}
.customer-premium-v032 .usage-foot button{font-weight:750;color:#6955cf}
.customer-premium-v032 .profile-row{padding:9px;border-radius:13px}
.customer-premium-v032 .profile-row:hover{background:rgba(255,255,255,.64)}
.customer-premium-v032 .avatar{background:linear-gradient(145deg,#28242f,#6f59d2);box-shadow:0 7px 18px rgba(63,48,109,.16)}
.customer-premium-v032 .workspace{
  background:
    radial-gradient(circle at 82% 12%,rgba(126,105,240,.045),transparent 26rem),
    linear-gradient(180deg,#fff 0%,#fdfcfe 100%);
}
.customer-premium-v032 .topbar{
  height:68px;padding:0 24px;
  background:rgba(255,255,255,.79);
  border-bottom:1px solid rgba(63,53,89,.065);
  backdrop-filter:blur(18px) saturate(1.2);
  -webkit-backdrop-filter:blur(18px) saturate(1.2);
  z-index:10
}
.customer-premium-v032 .chat-title-wrap{display:flex;align-items:center;gap:9px;min-width:0}
.customer-premium-v032 .workspace-status{
  width:7px;height:7px;border-radius:50%;
  background:#48b57e;box-shadow:0 0 0 4px rgba(72,181,126,.10)
}
.customer-premium-v032 .chat-title{font-size:13px;font-weight:750;color:#403b48;letter-spacing:-.01em}
.customer-premium-v032 .topbar-actions{gap:9px}
.customer-premium-v032 .mode-shell{display:flex;align-items:center;gap:7px}
.customer-premium-v032 .mode-label{font-size:8px;letter-spacing:.15em;font-weight:850;color:#aaa4b2}
.customer-premium-v032 .mode-picker{
  padding:3px;border:1px solid rgba(64,51,99,.075);
  background:rgba(247,245,250,.92);border-radius:13px
}
.customer-premium-v032 .mode-picker button{
  position:relative;padding:7px 11px;border-radius:10px;font-size:11px;letter-spacing:.01em;
  transition:background .16s ease,color .16s ease,box-shadow .16s ease,transform .16s ease
}
.customer-premium-v032 .mode-picker button:hover{color:#3d354a}
.customer-premium-v032 .mode-picker button.active{
  color:#fff;background:linear-gradient(135deg,#332d3e,#6450cf);
  box-shadow:0 5px 14px rgba(75,59,135,.16);transform:translateY(-.5px)
}
.customer-premium-v032 .locale-select.compact{
  border-color:rgba(65,52,99,.08);background:rgba(249,248,251,.9)
}
.customer-premium-v032 .secondary.compact{
  border-color:rgba(65,52,99,.09);background:rgba(255,255,255,.88);font-size:11px
}
.customer-premium-v032 .conversation{
  padding-top:54px;padding-left:max(30px,calc((100% - 920px)/2));padding-right:max(30px,calc((100% - 920px)/2));
  padding-bottom:228px;scrollbar-gutter:stable
}
.customer-premium-v032 .empty-state{
  width:min(760px,100%);margin:auto;min-height:calc(100vh - 350px);align-items:flex-start
}
.customer-premium-v032 .empty-eyebrow{
  display:inline-flex;align-items:center;gap:8px;margin-bottom:14px;
  font-size:10px;letter-spacing:.16em;font-weight:850;color:#8f86a0;text-transform:uppercase
}
.customer-premium-v032 .empty-eyebrow:before{content:"";width:22px;height:1px;background:#9b8ded}
.customer-premium-v032 .empty-state .orb{
  width:54px;height:54px;border-radius:18px;margin-bottom:22px;
  background:
    radial-gradient(circle at 35% 30%,rgba(255,255,255,.7),transparent 18%),
    linear-gradient(145deg,#1d1924 3%,#6954d8 61%,#a897ff);
  box-shadow:0 18px 45px rgba(91,72,178,.20),inset 0 0 0 1px rgba(255,255,255,.20)
}
.customer-premium-v032 .empty-state h1{
  max-width:680px;font-size:clamp(36px,4.6vw,56px);line-height:1.01;letter-spacing:-.052em;
  color:#1d1a22;margin:0 0 13px;font-weight:760
}
.customer-premium-v032 .empty-state>p{max-width:610px;font-size:15px;line-height:1.65;color:#817b89}
.customer-premium-v032 .suggestions{width:100%;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:30px}
.customer-premium-v032 .suggestion{
  min-height:118px;position:relative;border:1px solid rgba(73,61,107,.085);
  border-radius:17px;padding:16px 14px;background:linear-gradient(150deg,rgba(255,255,255,.96),rgba(249,247,252,.88));
  box-shadow:0 7px 25px rgba(56,44,90,.045);transition:.18s ease;overflow:hidden
}
.customer-premium-v032 .suggestion:after{
  content:"";position:absolute;width:70px;height:70px;border-radius:50%;right:-34px;bottom:-38px;
  background:radial-gradient(circle,rgba(117,95,220,.10),transparent 68%)
}
.customer-premium-v032 .suggestion:hover{
  transform:translateY(-3px);border-color:rgba(108,84,211,.18);box-shadow:0 14px 34px rgba(56,44,90,.085)
}
.customer-premium-v032 .suggestion-icon{
  width:28px;height:28px;border-radius:9px;margin-bottom:15px;display:grid;place-items:center;
  background:#f1eef9;color:#6753c8;font-size:12px;font-weight:900
}
.customer-premium-v032 .suggestion strong{font-size:12px;font-weight:780;margin-bottom:5px}
.customer-premium-v032 .suggestion small{font-size:10.5px;line-height:1.35}
.customer-premium-v032 .message{grid-template-columns:38px minmax(0,1fr);gap:13px;margin-bottom:30px}
.customer-premium-v032 .message-avatar{
  width:32px;height:32px;border-radius:11px;font-size:9px;letter-spacing:.04em
}
.customer-premium-v032 .message.assistant .message-avatar{
  background:linear-gradient(145deg,#24202c,#6c57d3);box-shadow:0 7px 20px rgba(73,55,133,.14)
}
.customer-premium-v032 .message.assistant .message-body{font-size:14.5px;line-height:1.72;color:#302c36}
.customer-premium-v032 .message.user{
  display:flex;justify-content:flex-end;margin-left:auto;max-width:86%
}
.customer-premium-v032 .message.user .message-avatar{display:none}
.customer-premium-v032 .message.user .message-content{max-width:min(700px,100%)}
.customer-premium-v032 .message.user .message-body{
  padding:12px 15px;border-radius:18px 18px 5px 18px;
  background:linear-gradient(145deg,#f0edf8,#f6f4fa);color:#2e2935;line-height:1.55;
  border:1px solid rgba(79,64,117,.06)
}
.customer-premium-v032 .message.user .message-meta{display:none}
.customer-premium-v032 .message-meta{
  color:#aaa3b3;font-size:9.5px;letter-spacing:.02em;margin-top:9px
}
.customer-premium-v032 .message-tools{opacity:.55;transition:opacity .15s ease}
.customer-premium-v032 .message:hover .message-tools{opacity:1}
.customer-premium-v032 .message-tools button{color:#918a99;font-size:10px}
.customer-premium-v032 .message-body pre{
  border-radius:15px;background:#1d1a22;border:1px solid rgba(255,255,255,.06);
  box-shadow:0 12px 28px rgba(27,22,36,.12)
}
.customer-premium-v032 .message-body code{background:#f0edf5;color:#4b405c}
.customer-premium-v032 .message-body pre code{background:transparent;color:#f4f2f7}
.customer-premium-v032 .typing:after{width:5px;height:15px;border-radius:2px;background:#6c58d1}
.customer-premium-v032 .error-card{
  border-color:#f0d8d8;background:linear-gradient(145deg,#fffafa,#fff5f6);border-radius:14px
}
.customer-premium-v032 .composer-wrap{
  padding-left:max(30px,calc((100% - 920px)/2));padding-right:max(30px,calc((100% - 920px)/2));
  padding-bottom:18px;
  background:linear-gradient(180deg,rgba(255,255,255,0),rgba(255,255,255,.91) 25%,#fff 55%)
}
.customer-premium-v032 .mode-hint{
  width:max-content;max-width:100%;margin:0 10px 8px;padding:5px 9px;border-radius:9px;
  background:rgba(248,246,251,.82);color:#918a9d;font-size:9.5px;backdrop-filter:blur(8px)
}
.customer-premium-v032 .mode-hint strong{color:#6250c0;font-weight:850}
.customer-premium-v032 .composer{
  border:1px solid rgba(68,54,104,.13);border-radius:23px;padding:13px 14px 11px;
  background:rgba(255,255,255,.94);
  box-shadow:0 18px 55px rgba(45,33,78,.11),0 2px 10px rgba(45,33,78,.035);
  backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);
  transition:border-color .16s ease,box-shadow .16s ease,transform .16s ease
}
.customer-premium-v032 .composer:focus-within{
  border-color:rgba(108,84,211,.30);
  box-shadow:0 20px 62px rgba(45,33,78,.13),0 0 0 4px rgba(108,84,211,.055);
  transform:translateY(-1px)
}
.customer-premium-v032 .composer textarea{
  min-height:44px;padding:5px 5px 10px;font-size:14px;line-height:1.5
}
.customer-premium-v032 .composer textarea::placeholder{color:#aaa4b0}
.customer-premium-v032 .tool-button,.customer-premium-v032 .tool-pill{
  border-color:rgba(65,53,94,.08);background:#f7f5f9;color:#756e7e
}
.customer-premium-v032 .tool-button:hover,.customer-premium-v032 .tool-pill:hover{background:#f0edf7;color:#5f4fc0}
.customer-premium-v032 .tool-pill.active{background:#ebe6fc;border-color:#d8cff9;color:#5945bf}
.customer-premium-v032 .send-button{
  border-radius:11px;background:linear-gradient(145deg,#27232e,#6651cb);
  box-shadow:0 7px 17px rgba(75,58,137,.17);transition:.15s ease
}
.customer-premium-v032 .send-button:not(:disabled):hover{transform:translateY(-1px);box-shadow:0 10px 20px rgba(75,58,137,.22)}
.customer-premium-v032 .composer-note{font-size:9px;color:#aaa5af;margin-top:9px}
.customer-premium-v032 .attachment-chip{
  border-color:rgba(87,70,129,.10);background:#f6f3fb;border-radius:10px;color:#665d70
}
.customer-premium-v032 .toast{
  right:22px;bottom:22px;border:1px solid rgba(255,255,255,.08);border-radius:13px;
  background:rgba(31,28,37,.94);backdrop-filter:blur(14px);box-shadow:0 18px 50px rgba(31,24,49,.22)
}
.customer-premium-v032 .billing-backdrop{background:rgba(25,21,35,.38);backdrop-filter:blur(12px)}
.customer-premium-v032 .billing-sheet{
  width:min(980px,96vw);border:1px solid rgba(76,60,115,.10);border-radius:28px;padding:28px;
  background:linear-gradient(160deg,#fff 35%,#fbf9fd);box-shadow:var(--aq-shadow-lg)
}
.customer-premium-v032 .billing-head h2{margin:0 0 7px;font-size:29px;letter-spacing:-.035em}
.customer-premium-v032 .billing-head p{margin:0;color:#817a88;font-size:12px}
.customer-premium-v032 .billing-close{background:#f3f0f8;color:#665e70}
.customer-premium-v032 .billing-plans{gap:13px;margin-top:24px}
.customer-premium-v032 .billing-plan{
  position:relative;border-color:rgba(72,58,106,.10);border-radius:20px;padding:20px;
  background:rgba(255,255,255,.91);box-shadow:0 8px 26px rgba(55,42,86,.045);transition:.17s ease
}
.customer-premium-v032 .billing-plan:hover{transform:translateY(-2px);box-shadow:0 15px 34px rgba(55,42,86,.085)}
.customer-premium-v032 .billing-plan[data-plan-id="pro"]{
  background:linear-gradient(155deg,#fff 10%,#f6f1ff 100%);border-color:rgba(110,85,217,.22)
}
.customer-premium-v032 .billing-plan.active{box-shadow:inset 0 0 0 2px rgba(111,87,220,.70),0 10px 28px rgba(64,48,103,.06)}
.customer-premium-v032 .billing-price{font-size:31px;letter-spacing:-.04em}
.customer-premium-v032 .billing-buy{
  border-radius:13px;background:linear-gradient(135deg,#26212e,#674fcf);
  box-shadow:0 8px 18px rgba(75,57,135,.14)
}
.customer-premium-v032 .billing-limit,.customer-premium-v032 .billing-modes{font-size:11.5px;line-height:1.45}
.customer-premium-v032 .billing-secure{margin-top:18px;text-align:center;font-size:10.5px;color:#9992a2}
.customer-premium-v032 .billing-notice{border:1px solid #f0dfab;background:#fff9e8}
.customer-premium-v032 .connection-banner{font-size:11px;background:#fff9e8;border-bottom-color:#f0e5bd}

/* Premium focus/accessibility */
.customer-premium-v032 button:focus-visible,
.customer-premium-v032 input:focus-visible,
.customer-premium-v032 textarea:focus-visible,
.customer-premium-v032 select:focus-visible{
  outline:2px solid rgba(103,82,207,.54);outline-offset:2px
}

/* Responsive premium */
@media(max-width:1040px){
  .customer-premium-v032 .suggestions{grid-template-columns:repeat(2,minmax(0,1fr))}
  .customer-premium-v032 .mode-label{display:none}
}
@media(max-width:860px){
  .customer-premium-v032 .app-shell{grid-template-columns:1fr}
  .customer-premium-v032 .sidebar{width:min(88vw,320px)}
  .customer-premium-v032 .topbar{height:62px;padding:0 13px}
  .customer-premium-v032 .conversation{padding:36px 16px 218px}
  .customer-premium-v032 .composer-wrap{padding-left:14px;padding-right:14px}
  .customer-premium-v032 .empty-state{min-height:calc(100vh - 330px)}
  .customer-premium-v032 .message.user{max-width:92%}
}
@media(max-width:620px){
  .customer-premium-v032 .topbar-actions{gap:4px}
  .customer-premium-v032 .mode-picker button{padding:8px 7px}
  .customer-premium-v032 .suggestions{grid-template-columns:1fr 1fr;gap:8px}
  .customer-premium-v032 .suggestion{min-height:105px;padding:13px}
  .customer-premium-v032 .empty-state h1{font-size:35px}
  .customer-premium-v032 .empty-state>p{font-size:13px}
  .customer-premium-v032 .message{margin-bottom:24px}
}
@media(max-width:430px){
  .customer-premium-v032 .suggestions{grid-template-columns:1fr}
  .customer-premium-v032 .suggestion{min-height:auto}
  .customer-premium-v032 .empty-state{padding-top:8px}
  .customer-premium-v032 .empty-state .orb{width:46px;height:46px;border-radius:15px}
  .customer-premium-v032 .chat-title-wrap{max-width:115px}
}

/* Auth premium refinement */
.customer-premium-v032 .auth-shell{
  background:
    radial-gradient(circle at 76% 4%,rgba(119,97,231,.16),transparent 31%),
    radial-gradient(circle at 8% 94%,rgba(145,126,238,.08),transparent 27%),
    linear-gradient(180deg,#fcfbfd,#f5f3f8)
}
.customer-premium-v032 .auth-main{border-color:rgba(255,255,255,.96);box-shadow:0 32px 100px rgba(40,30,70,.13)}
.customer-premium-v032 .auth-story{
  background:
    radial-gradient(circle at 84% 8%,rgba(139,116,245,.25),transparent 30%),
    linear-gradient(145deg,#17151d,#24202e 60%,#5b48bd 150%)
}
.customer-premium-v032 .auth-card input{border-color:rgba(64,52,89,.12);background:#fdfcfe}
.customer-premium-v032 .auth-card input:focus{border-color:#9180e5;box-shadow:0 0 0 4px rgba(102,81,204,.065)}
.customer-premium-v032 .auth-tabs{background:#f4f1f8}
.customer-premium-v032 .primary{background:linear-gradient(135deg,#24212a,#604bc5);box-shadow:0 8px 18px rgba(66,50,119,.13)}


/* ===== AINQORA_CONVERSATION_UX_V033 ===== */
.conversation-polish-v033 .conversation{
  padding-top:32px;
  padding-left:max(28px,calc((100% - 860px)/2));
  padding-right:max(28px,calc((100% - 860px)/2));
  padding-bottom:158px;
  scroll-padding-bottom:158px;
  scrollbar-width:thin;
  scrollbar-color:rgba(94,82,120,.24) transparent;
}
.conversation-polish-v033 .conversation::-webkit-scrollbar{width:8px}
.conversation-polish-v033 .conversation::-webkit-scrollbar-track{background:transparent}
.conversation-polish-v033 .conversation::-webkit-scrollbar-thumb{background:rgba(94,82,120,.18);border-radius:99px;border:2px solid transparent;background-clip:padding-box}
.conversation-polish-v033 .conversation::-webkit-scrollbar-thumb:hover{background:rgba(94,82,120,.30);background-clip:padding-box}
.conversation-polish-v033 .message{max-width:860px;margin-bottom:20px;grid-template-columns:34px minmax(0,1fr);gap:12px}
.conversation-polish-v033 .message.assistant{margin-right:auto}
.conversation-polish-v033 .message.assistant .message-content{max-width:780px}
.conversation-polish-v033 .message.user{max-width:min(690px,88%);margin:8px 0 18px auto}
.conversation-polish-v033 .message.user .message-content{max-width:100%}
.conversation-polish-v033 .message.user .message-body{
  padding:11px 14px;border-radius:17px 17px 5px 17px;font-size:13.5px;line-height:1.5;
  background:linear-gradient(145deg,#f1eef8,#f8f6fb);box-shadow:0 3px 12px rgba(55,43,87,.035)
}
.conversation-polish-v033 .message.assistant .message-body{padding-top:1px;font-size:14px;line-height:1.66;white-space:normal;letter-spacing:-.003em}
.conversation-polish-v033 .message.assistant .message-body strong{font-weight:760;color:#27232e}
.conversation-polish-v033 .message.assistant .message-body pre{margin:15px 0 14px;padding:16px 18px;font-size:12.5px;line-height:1.62}
.conversation-polish-v033 .message.assistant .message-body code:not(pre code){padding:2px 5px;border-radius:6px;font-size:.92em}
.conversation-polish-v033 .message-footer{min-height:24px;margin-top:7px;display:flex;align-items:center;justify-content:space-between;gap:12px}
.conversation-polish-v033 .message-meta{margin:0;color:#aaa4b0;font-size:9.5px;letter-spacing:.005em}
.conversation-polish-v033 .message.user .message-footer{min-height:17px;margin-top:4px;justify-content:flex-end}
.conversation-polish-v033 .message.user .message-meta{padding-right:5px;color:#b0aab5}
.conversation-polish-v033 .message-tools{margin:0;gap:4px;opacity:.68;transition:opacity .14s ease}
.conversation-polish-v033 .message:hover .message-tools{opacity:1}
.conversation-polish-v033 .message-tools button{margin:0;padding:4px 7px;border-radius:7px;font-size:9.5px;color:#8e8797;transition:background .14s ease,color .14s ease}
.conversation-polish-v033 .message-tools button:hover{background:#f1eef6;color:#5c4dbc}
.conversation-polish-v033 .message-avatar{width:30px;height:30px;border-radius:10px}
.conversation-polish-v033 .message.assistant .message-avatar{position:sticky;top:80px;background:linear-gradient(145deg,#26212e,#6954d0)}
.conversation-polish-v033 .composer-wrap{
  padding-top:10px;
  padding-left:max(28px,calc((100% - 860px)/2));
  padding-right:max(28px,calc((100% - 860px)/2));
  padding-bottom:12px;
  background:linear-gradient(180deg,rgba(255,255,255,0) 0,rgba(255,255,255,.92) 22px,#fff 52px)
}
.conversation-polish-v033 .mode-hint{margin:0 12px 6px;padding:0;background:transparent;gap:6px;font-size:9px}
.conversation-polish-v033 .mode-hint strong{color:#6652c3}
.conversation-polish-v033 .composer{border-radius:20px;padding:10px 11px 9px;box-shadow:0 13px 38px rgba(45,33,78,.095),0 1px 5px rgba(45,33,78,.025)}
.conversation-polish-v033 .composer:focus-within{transform:none;box-shadow:0 16px 45px rgba(45,33,78,.115),0 0 0 3px rgba(108,84,211,.045)}
.conversation-polish-v033 .composer textarea{min-height:36px;max-height:160px;padding:4px 6px 8px;font-size:13.5px}
.conversation-polish-v033 .composer-bottom{min-height:34px}
.conversation-polish-v033 .tool-button{width:32px;height:32px;border-radius:9px}
.conversation-polish-v033 .tool-pill{min-height:32px;padding:7px 10px;border-radius:9px;font-size:11px}
.conversation-polish-v033 .send-button{width:32px;height:32px;border-radius:10px;font-size:17px}
.conversation-polish-v033 .composer-note{margin-top:7px;font-size:8.5px;letter-spacing:.005em}
.conversation-polish-v033 .jump-latest{
  position:absolute;left:50%;top:-28px;transform:translateX(-50%);z-index:3;width:31px;height:31px;
  display:grid;place-items:center;border:1px solid rgba(72,58,106,.12);border-radius:999px;background:rgba(255,255,255,.96);
  color:#6554b7;box-shadow:0 8px 24px rgba(47,36,78,.12);backdrop-filter:blur(10px);
  transition:transform .15s ease,box-shadow .15s ease
}
.conversation-polish-v033 .jump-latest:hover{transform:translateX(-50%) translateY(-1px);box-shadow:0 10px 28px rgba(47,36,78,.16)}
.conversation-polish-v033 .jump-latest[hidden]{display:none!important}
.conversation-polish-v033 .empty-state{width:min(730px,100%);min-height:calc(100vh - 300px);justify-content:center}
.conversation-polish-v033 .empty-state h1{max-width:640px}
.conversation-polish-v033 .suggestions{margin-top:25px}
.conversation-polish-v033 .topbar{box-shadow:0 1px 0 rgba(63,53,89,.035),0 6px 22px rgba(42,33,72,.018)}
.conversation-polish-v033 .chat-row{margin:2px 0}
.conversation-polish-v033 .chat-row.active{box-shadow:0 5px 18px rgba(50,39,82,.05),inset 2px 0 0 #7b65e6}
@media(max-width:860px){
  .conversation-polish-v033 .conversation{padding:28px 15px 152px;scroll-padding-bottom:152px}
  .conversation-polish-v033 .composer-wrap{padding-left:13px;padding-right:13px}
  .conversation-polish-v033 .message.assistant .message-content{max-width:100%}
  .conversation-polish-v033 .message.user{max-width:92%}
}
@media(max-width:620px){
  .conversation-polish-v033 .conversation{padding-top:22px}
  .conversation-polish-v033 .message{margin-bottom:17px}
  .conversation-polish-v033 .message.user{margin-bottom:15px}
  .conversation-polish-v033 .message.assistant .message-body{font-size:13.5px}
  .conversation-polish-v033 .message-footer{align-items:flex-start}
  .conversation-polish-v033 .message-tools{opacity:.82}
}


/* ===== AINQORA_TEST_PAYMENT_10RUB_V0411 ===== */
.billing-test-panel{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-top:14px;padding:14px 16px;border:1px dashed rgba(101,82,196,.28);border-radius:16px;background:linear-gradient(145deg,rgba(247,244,255,.92),rgba(255,255,255,.96))}
.billing-test-panel[hidden]{display:none!important}.billing-test-panel>div{display:grid;gap:4px}.billing-test-panel strong{font-size:12px;color:#4e40a6}.billing-test-panel small{font-size:10px;line-height:1.4;color:#8b8493;max-width:560px}.billing-test-panel button{border:0;border-radius:11px;padding:10px 13px;background:#5f4bc5;color:#fff;font-weight:800;white-space:nowrap}.billing-test-panel button:disabled{opacity:.55}
@media(max-width:620px){.billing-test-panel{align-items:stretch;flex-direction:column}.billing-test-panel button{width:100%}}
