:root{font-family:Inter,Arial,sans-serif;color:#111827;background:#f4f7fb;line-height:1.5;font-weight:400}*{box-sizing:border-box}html{background:#f4f7fb}body{margin:0}button,input,textarea,select{font:inherit}a,button{transition:.2s ease}#root{min-height:100vh}.layout{display:grid;grid-template-columns:280px 1fr;min-height:100vh}.sidebar{background:linear-gradient(180deg,#0f172a,#162449);color:#fff;padding:28px 20px;display:flex;flex-direction:column;gap:28px}.brand-block{display:grid;gap:8px}.brand{font-size:24px;font-weight:700}.brand-copy,.sidebar-footer p{margin:0;color:#a5b4d4;font-size:14px}.nav-list{display:flex;flex-direction:column;gap:10px}.sidebar a{color:#dbe7ff;text-decoration:none;padding:10px 12px;border-radius:12px;display:flex;align-items:center;justify-content:space-between;background:#94a3b814}.sidebar a:hover{background:#94a3b829}.sidebar a.active{background:#2563eb;color:#fff;box-shadow:0 10px 30px #2563eb4d}.nav-badge{min-width:28px;padding:2px 8px;border-radius:999px;background:#ffffff2e;text-align:center;font-size:12px}.sidebar-footer{margin-top:auto;display:flex;align-items:flex-start;gap:12px;padding:16px;border-radius:16px;background:#0f172a59}.status-dot{width:10px;height:10px;margin-top:6px;border-radius:50%;background:#22c55e;box-shadow:0 0 0 6px #22c55e1f}.content{padding:28px 32px 40px;display:flex;flex-direction:column;gap:24px}.topbar,.page-section,.hero-card{background:#fff;border-radius:20px;padding:24px;box-shadow:0 18px 50px #0f172a14}.topbar{display:flex;align-items:center;justify-content:space-between;gap:24px}.topbar h1,.page-section h2,.hero-card h2,.assistant-card h3,.detail-card h3,.empty-state h3,.autopay-card h3{margin:0}.eyebrow{margin:0 0 6px;color:#2563eb;font-size:12px;font-weight:700;letter-spacing:.08em;text-transform:uppercase}.topbar-actions{display:flex;gap:12px}.ghost-button,.primary-button{border:0;border-radius:12px;padding:11px 16px;cursor:pointer}.ghost-button{background:#e8eefc;color:#1e3a8a}.ghost-button:hover{background:#dce7ff}.primary-button{background:#2563eb;color:#fff;box-shadow:0 12px 24px #2563eb3d}.primary-button:hover{background:#1d4ed8}.page-stack{display:grid;gap:24px}.hero-card{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(280px,.8fr);gap:20px;align-items:center;background:linear-gradient(135deg,#fff,#eef4ff)}.hero-copy,.page-section p,.assistant-card p,.detail-card p,.empty-state p,.autopay-card p,.invoice-row p{margin:0;color:#4b5563}.hero-meta{display:flex;justify-content:flex-end}.section-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:20px}.section-heading p{margin-top:4px}.metrics-grid,.card-grid,.placeholder-grid{display:grid;gap:16px}.metrics-grid,.card-grid,.placeholder-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.metric-card,.assistant-card,.empty-state,.detail-card,.autopay-card,.dialog-row,.invoice-row{border:1px solid #e5e7eb;border-radius:18px;background:#fff}.metric-card{padding:18px}.metric-card-header,.card-topline,.dialog-row-header,.dialog-row-meta,.assistant-footer,.invoice-row{display:flex;align-items:center;justify-content:space-between;gap:12px}.metric-card strong{display:block;font-size:30px;margin:8px 0 6px}.metric-trend{color:#2563eb;font-weight:600}.assistant-card{padding:20px;display:grid;gap:14px}.card-role,.muted-text,.label{color:#6b7280}.card-role{font-weight:600}.label{display:block;font-size:12px;margin-bottom:4px}.assistant-footer{align-items:flex-start}.status-pill,.filter-chip{display:inline-flex;align-items:center;justify-content:center;border-radius:999px;padding:6px 10px;font-size:12px;font-weight:700}.filter-chip{background:#e8eefc;color:#1e3a8a}.status-online,.status-active,.status-paid{background:#dcfce7;color:#166534}.status-training,.status-waiting,.status-processing{background:#fef3c7;color:#92400e}.status-draft,.status-resolved,.status-planned{background:#e5e7eb;color:#374151}.dialogs-layout,.split-grid{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(320px,.85fr);gap:20px}.dialogs-list,.dialog-detail,.invoice-list{display:grid;gap:12px}.dialog-row{padding:18px;text-align:left;cursor:pointer}.dialog-row:hover,.dialog-row.selected{border-color:#93c5fd;box-shadow:0 10px 25px #2563eb14}.detail-card,.empty-state,.autopay-card{padding:20px}.detail-grid{margin-top:16px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.action-list{margin:12px 0 0;padding-left:18px;color:#374151}.usage-chart{min-height:260px;display:flex;align-items:flex-end;gap:16px;padding-top:12px}.usage-bar-group{flex:1;display:grid;justify-items:center;gap:8px}.usage-bar{width:100%;max-width:48px;border-radius:14px 14px 8px 8px;background:linear-gradient(180deg,#60a5fa,#1d4ed8)}.invoice-row{padding:16px 18px}.invoice-row>div:last-child{display:grid;justify-items:end;gap:8px}.empty-state{min-height:180px;display:grid;align-content:start;gap:12px}@media (max-width: 1100px){.layout,.hero-card,.dialogs-layout,.split-grid,.metrics-grid,.card-grid,.placeholder-grid{grid-template-columns:1fr}.hero-meta{justify-content:flex-start}}.public-layout{min-height:100vh;display:flex;flex-direction:column;background:radial-gradient(circle at top right,rgba(37,99,235,.08),transparent 42%),linear-gradient(180deg,#f8fbff,#f4f7fb)}.public-header{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:20px 32px;border-bottom:1px solid rgba(15,23,42,.08);background:#ffffffe0;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);position:sticky;top:0;z-index:10}.public-brand{color:#0f172a;text-decoration:none;font-size:20px;font-weight:700}.public-nav{display:flex;flex-wrap:wrap;gap:8px}.public-nav a{color:#334155;text-decoration:none;padding:8px 12px;border-radius:10px}.public-nav a:hover,.public-nav a.active{background:#e8eefc;color:#1e3a8a}.public-admin-link{text-decoration:none;display:inline-flex;align-items:center}.public-main{flex:1;width:min(920px,calc(100% - 40px));margin:0 auto;padding:36px 0 48px}.public-footer{display:flex;justify-content:space-between;gap:24px;padding:24px 32px;border-top:1px solid rgba(15,23,42,.08);background:#fff;color:#4b5563}.public-footer p{margin:6px 0 0}.public-footer-links{display:flex;flex-wrap:wrap;gap:16px}.public-footer-links a{color:#1e3a8a;text-decoration:none}.public-footer-links a:hover{text-decoration:underline}.legal-page,.form-page{background:#fff;border-radius:20px;padding:32px;box-shadow:0 18px 50px #0f172a14}.legal-header h1{margin:0 0 12px;font-size:32px;line-height:1.2}.legal-header p{margin:0;color:#4b5563}.legal-meta{margin-top:12px!important;color:#6b7280!important;font-size:14px}.legal-section{margin-top:28px}.legal-section h2{margin:0 0 12px;font-size:20px}.legal-section p,.legal-section li{color:#374151}.legal-section p{margin:0 0 12px}.legal-section ul{margin:0 0 12px;padding-left:20px}.legal-section li+li{margin-top:8px}.public-form{display:grid;gap:18px;margin-top:28px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.public-form label{display:grid;gap:6px}.public-form input,.public-form textarea{width:100%;border:1px solid #d1d5db;border-radius:12px;padding:12px 14px;background:#fff;color:#111827}.public-form input:focus,.public-form textarea:focus{outline:2px solid rgba(37,99,235,.25);border-color:#93c5fd}.form-actions{display:flex;align-items:center;justify-content:space-between;gap:16px}.form-actions .muted-text{margin:0}.form-actions a{color:#1e3a8a}.form-error{margin:0;color:#b91c1c;background:#fef2f2;border:1px solid #fecaca;border-radius:12px;padding:12px 14px}.form-success{margin-top:28px;display:grid;gap:12px;padding:20px;border-radius:16px;background:#f0fdf4;border:1px solid #bbf7d0}.form-success h2{margin:0}.form-success p{margin:0;color:#166534}.primary-button:disabled{opacity:.7;cursor:wait}@media (max-width: 780px){.layout{grid-template-columns:1fr}.sidebar,.topbar,.section-heading,.assistant-footer,.public-header,.public-footer,.form-actions{display:grid}.content{padding:20px}.public-header,.public-footer{padding:16px 20px}.public-main{width:min(100% - 32px,920px);padding-top:24px}.legal-page,.form-page{padding:22px}.legal-header h1{font-size:26px}.form-grid{grid-template-columns:1fr}.topbar-actions,.section-heading{gap:12px}.detail-grid,.admin-form,.test-chat-layout,.chat-composer{grid-template-columns:1fr}.assistant-actions{width:100%}}.admin-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.admin-form label,.chat-composer label{display:grid;gap:8px;font-size:14px;color:#374151}.admin-form-wide{grid-column:1 / -1}.admin-form input,.admin-form textarea,.chat-composer textarea{width:100%;border:1px solid #d1d5db;border-radius:12px;padding:12px 14px;background:#fff}.admin-form input:focus,.admin-form textarea:focus,.chat-composer textarea:focus{outline:2px solid rgba(37,99,235,.25);border-color:#93c5fd}.assistant-actions{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end}.assistant-actions .primary-button,.assistant-actions .ghost-button{text-decoration:none}.test-chat-layout{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(260px,.7fr);gap:20px}.chat-panel,.chat-meta-panel{display:grid;gap:16px}.chat-thread{display:grid;gap:12px;min-height:320px;max-height:520px;overflow:auto;padding:16px;border:1px solid #e5e7eb;border-radius:18px;background:linear-gradient(180deg,#f8fbff,#fff)}.chat-thread.compact{min-height:0;max-height:420px;padding:0;border:0;background:transparent}.chat-bubble{max-width:85%;padding:12px 14px;border-radius:16px;display:grid;gap:6px}.chat-bubble p{margin:0;white-space:pre-wrap}.chat-bubble.client{justify-self:start;background:#e8eefc;color:#1e3a8a}.chat-bubble.bot{justify-self:end;background:#0f172a;color:#fff}.chat-bubble.system{justify-self:stretch;max-width:100%;background:#eef2ff;color:#312e81;border:1px solid #c7d2fe;font-size:13px}.chat-bubble.system.activity-error{background:#fef2f2;color:#991b1b;border-color:#fecaca}.chat-role{font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.04em;opacity:.7}.chat-composer{display:grid;gap:12px}.variable-list{list-style:none;margin:0;padding:0;display:grid;gap:10px}.variable-list li{display:grid;gap:2px;padding-bottom:10px;border-bottom:1px solid #e5e7eb}.variable-list li:last-child{border-bottom:0;padding-bottom:0}.variable-list span{color:#111827}.variable-list em{color:#6b7280;font-style:normal;font-size:12px}.function-tabs{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:18px}.function-tab{border:1px solid #d1d5db;background:#fff;color:#374151;border-radius:999px;padding:8px 14px;cursor:pointer}.function-tab.active{background:#111827;border-color:#111827;color:#fff}.function-panel{display:grid;gap:20px}.function-list{list-style:none;margin:0;padding:0;display:grid;gap:12px}.function-list li{display:grid;grid-template-columns:minmax(120px,.8fr) minmax(0,1.4fr) auto;gap:12px;align-items:start;padding:14px 16px;background:#f8fafc;border:1px solid #e5e7eb;border-radius:14px}.function-list em{font-style:normal;color:#6b7280;font-size:13px}.prompt-preview{margin:0;white-space:pre-wrap;color:#374151;background:#f8fafc;border-radius:14px;padding:16px;border:1px solid #e5e7eb}.admin-form select{width:100%;border:1px solid #d1d5db;border-radius:12px;padding:12px 14px;background:#fff}.field-label{display:inline-flex;align-items:center;gap:6px}.field-hint{position:relative;display:inline-flex;vertical-align:middle}.field-hint-trigger{width:18px;height:18px;padding:0;border-radius:999px;border:1px solid #94a3b8;background:#f8fafc;color:#475569;font-size:11px;font-weight:700;line-height:1;cursor:help;display:inline-flex;align-items:center;justify-content:center}.field-hint-bubble{position:absolute;left:50%;bottom:calc(100% + 8px);transform:translate(-50%);width:min(280px,70vw);padding:10px 12px;border-radius:10px;background:#0f172a;color:#f8fafc;font-size:12px;font-weight:400;line-height:1.4;box-shadow:0 10px 30px #0f172a40;opacity:0;visibility:hidden;pointer-events:none;transition:opacity .15s ease;z-index:20}.field-hint-bubble:after{content:"";position:absolute;top:100%;left:50%;transform:translate(-50%);border:6px solid transparent;border-top-color:#0f172a}.field-hint:hover .field-hint-bubble,.field-hint:focus-within .field-hint-bubble{opacity:1;visibility:visible}@media (max-width: 720px){.function-list li{grid-template-columns:1fr}}
