body.has-kitmote-topbar{--bar-h:3.55rem;padding-top:var(--bar-h)}html[data-theme=dark] body.has-kitmote-topbar.kitmote-page-bg{--kitmote-accent-dim:#5b73ff24}html[data-theme=light] body.has-kitmote-topbar.kitmote-page-bg{--kitmote-accent-dim:#5b73ff17}.has-kitmote-topbar.kitmote-page-bg:before{content:"";inset:var(--bar-h) 0 0 0;z-index:0;pointer-events:none;background:radial-gradient(ellipse 80% 50% at 50% -20%, var(--kitmote-accent-dim), transparent 55%), radial-gradient(circle at 100% 100%, color-mix(in srgb, var(--accent,#5b73ff) 12%, transparent), transparent 45%);position:fixed}.guest-toolbar{flex-wrap:wrap;flex:1;justify-content:flex-end;align-items:center;gap:.45rem;min-width:0;display:flex}.guest-topbar{z-index:1000;min-height:var(--bar-h);box-sizing:border-box;background:var(--surface,#121622);color:var(--text,#e6eaf3);border-bottom:1px solid var(--border,#ffffff14);box-shadow:0 1px 0 color-mix(in srgb, var(--border,#ffffff14) 80%, transparent);justify-content:space-between;align-items:center;gap:.65rem;padding:.55rem clamp(.75rem,3vw,1.35rem);display:flex;position:fixed;top:0;left:0;right:0}.guest-brand{color:inherit;flex-shrink:0;align-items:center;gap:.5rem;text-decoration:none;display:flex}.guest-brand:hover{opacity:.92}.guest-brand img{object-fit:contain;width:auto;height:1.5rem;display:block}html[data-theme=dark] .guest-brand img{filter:brightness(0)invert()}html[data-theme=light] .guest-brand img{filter:none}.guest-brand-text{flex-direction:column;line-height:1.15;display:flex}.guest-brand-text strong{letter-spacing:-.02em;font-size:.9rem;font-weight:700}.guest-brand-text span{opacity:.88;letter-spacing:.01em;color:var(--muted,#9aa3b2);font-size:.625rem;font-weight:500}.guest-nav--cta{flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:.32rem;display:flex}.guest-nav--cta a{color:var(--text);border:1px solid var(--border);background:0 0;border-radius:999px;padding:.28rem .58rem;font-size:.72rem;font-weight:600;line-height:1.2;text-decoration:none;transition:background .15s,border-color .15s,color .15s}.guest-nav--cta a:hover{background:var(--theme-hover,#ffffff0a);border-color:color-mix(in srgb, var(--border) 70%, var(--text))}.guest-nav--cta a.is-active{background:var(--accent,#5b73ff);color:#fff;border-color:var(--accent,#5b73ff)}.guest-nav--cta a.guest-nav-link--quiet{color:var(--muted);background:0 0;border-color:#0000;font-weight:500}.guest-nav--cta a.guest-nav-link--quiet:hover{color:var(--text);background:var(--theme-hover,#ffffff0a)}.guest-nav--cta a.guest-nav-link--quiet.is-active{color:var(--accent);background:0 0;border-color:#0000;font-weight:700}.guest-topbar .portal-locale-select{background-color:var(--surface);color:var(--text)}.guest-topbar .portal-theme-toggle{background:var(--surface)}@media (width<=560px){.guest-toolbar .guest-nav--cta{justify-content:flex-start;width:100%}}body.portal-guest-body{--bg:var(--theme-page-bg);--surface:var(--theme-surface-1);--text:var(--theme-text);--muted:var(--theme-muted);--accent:#5b73ff;--border:var(--theme-border);--danger:#ff7070;--ok:#3cd39b;--input-bg:var(--theme-input-bg);background:var(--bg);min-height:100vh;color:var(--text);margin:0;font-family:Instrument Sans,ui-sans-serif,system-ui,sans-serif;line-height:1.55}html[data-theme=light] body.portal-guest-body{--danger:#c0392b;--ok:#1e7e34}.guest-shell{z-index:1;max-width:28rem;margin:0 auto;padding:clamp(1.5rem,5vw,2.75rem) clamp(1rem,4vw,1.5rem) 2rem;position:relative}.portal-guest-body .card{background:var(--surface);border:1px solid var(--border);border-radius:18px;padding:clamp(1.35rem,4vw,1.85rem);box-shadow:0 24px 56px -12px #0000006b}html[data-theme=light] .portal-guest-body .card{box-shadow:0 20px 50px -12px #0f172a1f}.btn-primary{text-align:center;cursor:pointer;background:var(--accent);color:#fff;border:none;border-radius:12px;width:100%;padding:.7rem 1rem;font-family:inherit;font-size:.95rem;font-weight:600;display:block}.btn-primary:disabled{opacity:.55;cursor:not-allowed}.alert-ok{background:color-mix(in srgb, var(--ok) 18%, transparent);color:var(--ok)}.alert-bad{background:color-mix(in srgb, var(--danger) 18%, transparent);color:var(--danger)}label{margin-bottom:.35rem;font-size:.85rem;font-weight:600;display:block}.portal-guest-body input[type=text],.portal-guest-body input[type=email],.portal-guest-body input[type=password]{border:1px solid var(--border);background:var(--input-bg);width:100%;color:var(--text);border-radius:10px;margin-bottom:.85rem;padding:.6rem .75rem;font-family:inherit;font-size:.95rem}.error{color:var(--danger);margin:-.45rem 0 .65rem;font-size:.82rem}.foot-link{text-align:center;margin-top:1rem}.foot-link a{color:var(--accent);font-weight:600}.portal-guest-body a{color:var(--accent)}*,:before,:after{box-sizing:border-box}html[data-theme=dark]{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--theme-page-bg:#0b0d12;--theme-sidebar-bg:#0e121d;--theme-surface-1:#121622;--theme-surface-2:#181d2b;--theme-input-bg:#0d111b;--theme-elevated:#131a29;--theme-code-block-bg:#0a0d14;--theme-text:#e6eaf3;--theme-muted:#9aa3b2;--theme-border:#ffffff14;--theme-accent-soft:#5b73ff2e;--theme-hover:#ffffff0a;--theme-hover-mid:#ffffff0d;--theme-hover-strong:#ffffff14;--theme-sidebar-fg:#fff;--theme-sidebar-brand-text:#ffffffeb;--theme-sidebar-brand-bg:#ffffff0a;--theme-mobile-overlay:#03060cad;--theme-scrollbar-thumb:#ffffff2e;--theme-scrollbar-thumb-hover:#ffffff52;--theme-code-inline:#ffffff0f;--theme-lightbox-backdrop:#04060ceb;--theme-lightbox-btn-bg:#131a29f2;--theme-menu-link-hover-fg:#fff;--theme-shadow-rgb:0, 0, 0;--theme-dropdown-shadow:0 8px 28px #00000059}html[data-theme=light]{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;--theme-page-bg:#ebeef5;--theme-sidebar-bg:#fff;--theme-surface-1:#fff;--theme-surface-2:#f0f2f7;--theme-input-bg:#f5f6fa;--theme-elevated:#e4e8f1;--theme-code-block-bg:#eceff5;--theme-text:#141722;--theme-muted:#5c6474;--theme-border:#1417221f;--theme-accent-soft:#5b73ff29;--theme-hover:#0000000a;--theme-hover-mid:#0000000d;--theme-hover-strong:#00000014;--theme-sidebar-fg:#141722;--theme-sidebar-brand-text:#141722e6;--theme-sidebar-brand-bg:#0000000a;--theme-mobile-overlay:#0f172a66;--theme-scrollbar-thumb:#0003;--theme-scrollbar-thumb-hover:#00000052;--theme-code-inline:#0000000f;--theme-lightbox-backdrop:#f5f7faeb;--theme-lightbox-btn-bg:#fffffff5;--theme-menu-link-hover-fg:#141722;--theme-shadow-rgb:15, 23, 42;--theme-dropdown-shadow:0 8px 28px #0f172a1f}.sr-only{clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}body.customer-portal{--bg:var(--theme-page-bg);--surface:var(--theme-surface-1);--surface-alt:var(--theme-surface-2);--text:var(--theme-text);--muted:var(--theme-muted);--accent:#5b73ff;--accent-soft:var(--theme-accent-soft);--border:var(--theme-border);--danger:#ff7070;--ok:#3cd39b;--input-bg:var(--theme-input-bg);--elevated:var(--theme-elevated);--code-block-bg:var(--theme-code-block-bg);--color-surface:var(--theme-surface-1);--color-text:var(--theme-text);--color-muted:var(--theme-muted);--color-border:var(--theme-border);--color-accent:#5b73ff;--sidebar-w:252px;background:var(--bg);min-height:100vh;color:var(--text);margin:0;font-family:Instrument Sans,ui-sans-serif,system-ui,sans-serif;line-height:1.55}body.customer-portal a{color:var(--accent);text-decoration:none}body.customer-portal a:hover{text-decoration:none}.app-shell{grid-template-columns:var(--sidebar-w) 1fr;min-height:100vh;display:grid}.sidebar{border-right:1px solid var(--border);background:var(--theme-sidebar-bg);flex-direction:column;gap:1rem;padding:1rem .8rem;display:flex}.sidebar-brand{color:var(--theme-sidebar-fg);background:var(--theme-sidebar-brand-bg);border-radius:10px;flex:1;align-items:center;gap:.45rem;min-width:0;padding:.45rem .65rem;font-size:1rem;font-weight:700;display:inline-flex}.sidebar-brand img{object-fit:contain;flex-shrink:0;width:32px;height:32px}.sidebar-brand-text{letter-spacing:.02em;color:var(--theme-sidebar-brand-text);white-space:nowrap;text-overflow:ellipsis;font-size:.72rem;font-weight:700;overflow:hidden}.profile-box{border:1px solid var(--border);background:var(--surface);border-radius:12px;margin-top:.25rem;padding:.7rem}body.customer-portal .profile-box--link{color:var(--text);justify-content:space-between;align-items:center;gap:.75rem;display:flex}body.customer-portal .profile-box--link:hover{background:var(--surface-alt)}.profile-box__text{min-width:0}.profile-settings{border:1px solid var(--border);background:var(--input-bg);width:2rem;height:2rem;color:var(--muted);border-radius:10px;flex-shrink:0;justify-content:center;align-items:center;line-height:1;display:inline-flex}.profile-name{margin:0;font-size:.95rem;font-weight:700}.profile-email{color:var(--muted);word-break:break-all;margin:.15rem 0 0;font-size:.78rem}.menu{gap:.32rem;margin-top:.3rem;display:grid}body.customer-portal .menu .menu-link{color:var(--theme-sidebar-fg)}.menu-link{border:1px solid #0000;border-radius:10px;align-items:center;gap:.55rem;padding:.6rem .75rem;font-size:.88rem;font-weight:600;display:flex}.menu-link__icon{flex-shrink:0;width:1.15rem;height:1.15rem}.menu-link:hover{background:var(--theme-hover);color:var(--theme-menu-link-hover-fg)}.menu-link.active{background:var(--accent-soft);color:var(--theme-menu-link-hover-fg);border-color:#5b73ff73}.content{padding:1rem 1.15rem 1.4rem}.sidebar-overlay{display:none}.menu-toggle,.sidebar-close{border:1px solid var(--border);background:var(--input-bg);color:var(--text);cursor:pointer;border-radius:10px;justify-content:center;align-items:center;width:36px;height:36px;font-size:1rem;line-height:1;display:none}.sidebar-head{justify-content:space-between;align-items:center;gap:.5rem;display:flex}.topbar{border:1px solid var(--border);background:var(--surface);border-radius:12px;justify-content:space-between;align-items:center;gap:.75rem;margin-bottom:1rem;padding:.85rem 1rem;display:flex}.page-title{letter-spacing:-.02em;margin:0;font-size:1.05rem;font-weight:700}.toolbar{flex-wrap:wrap;align-items:center;gap:.5rem;display:flex}.portal-topbar-tools{flex-wrap:wrap;align-items:center;gap:.4rem;display:inline-flex}.portal-tool-cell{align-items:center;display:flex}.portal-locale-select{appearance:none;min-width:5.25rem;max-width:7rem;color:var(--text);background:var(--surface);border:1px solid var(--border);cursor:pointer;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M3 4.5L6 8l3-3.5'/%3E%3C/svg%3E");background-position:right .45rem center;background-repeat:no-repeat;border-radius:10px;flex-shrink:0;padding:.4rem 1.85rem .4rem .55rem;font-family:inherit;font-size:.78rem;font-weight:700;line-height:1.2}.portal-locale-select:focus{outline:2px solid color-mix(in srgb, var(--accent) 40%, transparent);outline-offset:1px}.portal-theme-toggle{border:1px solid var(--border);background:var(--surface);border-radius:10px;display:inline-flex;overflow:hidden}.portal-theme-btn{cursor:pointer;color:var(--muted);background:0 0;border:none;margin:0;padding:.4rem .55rem;font-family:inherit;font-size:.7rem;font-weight:700;line-height:1.2}.portal-theme-btn:hover{color:var(--text);background:var(--theme-hover)}.portal-theme-btn.is-active{color:#fff;background:var(--accent)}.portal-theme-btn:focus-visible{outline:2px solid color-mix(in srgb, var(--accent) 45%, transparent);outline-offset:2px}.btn-icon{justify-content:center;align-items:center;min-width:2.45rem;min-height:2.45rem;padding:.4rem .5rem;display:inline-flex}.btn-icon__svg{width:1.2rem;height:1.2rem;display:block}.portal-logout-form .btn-icon{flex-shrink:0}.portal-topbar-tools--inline{display:inline-flex}.portal-topbar-overflow{display:none;position:relative}.portal-topbar-more-btn{min-width:2.45rem;min-height:2.45rem;color:var(--text);background:var(--surface);border:1px solid var(--border);cursor:pointer;border-radius:10px;justify-content:center;align-items:center;margin:0;padding:0 .4rem;font-family:inherit;font-size:1.25rem;font-weight:800;line-height:1;display:inline-flex}.portal-topbar-more-btn:hover{background:var(--theme-hover)}.portal-topbar-more-btn:focus-visible{outline:2px solid color-mix(in srgb, var(--accent) 45%, transparent);outline-offset:2px}.portal-topbar-popover{z-index:50;border:1px solid var(--border);background:var(--surface);min-width:min(16rem,100vw - 2.5rem);box-shadow:var(--theme-dropdown-shadow);border-radius:12px;position:absolute;top:calc(100% + .35rem);right:0}.portal-topbar-popover[hidden]{display:none!important}.portal-topbar-popover-inner{flex-direction:column;gap:.85rem;padding:.8rem .9rem .95rem;display:flex}.portal-topbar-popover-section{flex-direction:column;gap:.45rem;display:flex}.portal-topbar-popover-label{letter-spacing:.04em;text-transform:uppercase;color:var(--muted);font-size:.68rem;font-weight:700;display:block}.portal-locale-select--block{width:100%;max-width:none}.portal-theme-toggle--block{width:100%;display:flex}.portal-theme-toggle--block .portal-theme-btn{flex:1}@media (width<=720px){.topbar{flex-wrap:nowrap;gap:.4rem}.portal-topbar-flex{flex:1;min-width:0}.page-title{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.toolbar{flex-shrink:0;gap:.28rem}.portal-topbar-tools--inline{display:none!important}.portal-topbar-overflow{display:block}}@media (width>=721px){.portal-topbar-overflow{display:none!important}}.card{background:var(--surface);border:1px solid var(--border);border-radius:14px;margin-bottom:1rem;padding:1.25rem 1.35rem}.muted{color:var(--muted);font-size:.9rem}.btn{cursor:pointer;border:none;border-radius:10px;padding:.55rem 1rem;font-size:.9rem;font-weight:600;text-decoration:none;display:inline-block}.btn-primary{background:var(--accent);color:#fff}.btn-ghost{color:var(--text);border:1px solid var(--border);background:0 0}.alert{border-radius:10px;margin-bottom:1rem;padding:.75rem 1rem;font-size:.9rem}.alert-ok{color:var(--ok);background:#1e7e341f}.alert-bad{color:var(--danger);background:#c0392b1f}body.customer-portal label{margin-bottom:.35rem;font-size:.85rem;font-weight:600;display:block}body.customer-portal input[type=text],body.customer-portal input[type=email],body.customer-portal input[type=password],body.customer-portal input[type=number]{border:1px solid var(--border);background:var(--input-bg);width:100%;max-width:420px;color:var(--text);border-radius:8px;padding:.55rem .65rem}body.customer-portal textarea{border:1px solid var(--border);background:var(--input-bg);width:100%;min-height:120px;color:var(--text);resize:vertical;scrollbar-width:thin;scrollbar-color:var(--theme-scrollbar-thumb) transparent;border-radius:10px;padding:.65rem .75rem;font-family:inherit}body.customer-portal textarea::-webkit-scrollbar{width:6px;height:6px}body.customer-portal textarea::-webkit-scrollbar-track{background:0 0}body.customer-portal textarea::-webkit-scrollbar-thumb{background-color:var(--theme-scrollbar-thumb);background-clip:padding-box;border:2px solid #0000;border-radius:999px}body.customer-portal textarea:hover::-webkit-scrollbar-thumb{background-color:var(--theme-scrollbar-thumb-hover)}body.customer-portal .error{color:var(--danger);margin-top:.25rem;font-size:.82rem}body.customer-portal code.token{word-break:break-all;background:var(--input-bg);border:1px solid var(--border);border-radius:8px;padding:.6rem;font-size:.78rem;display:block}body.customer-portal table{border-collapse:collapse;width:100%;font-size:.88rem}body.customer-portal th,body.customer-portal td{text-align:left;border-bottom:1px solid var(--border);padding:.45rem .35rem}.portal-profile-page{gap:1rem;max-width:920px;display:grid}.portal-profile-card{align-items:center;gap:.9rem;display:flex}.portal-profile-card--stack{gap:.7rem;display:grid}.portal-profile-avatar{color:#fff;background:var(--accent);border-radius:12px;flex-shrink:0;justify-content:center;align-items:center;width:3rem;height:3rem;font-size:1.2rem;font-weight:800;display:inline-flex}.portal-profile-card h2{margin:0;font-size:1.1rem}.portal-profile-card p{margin:.15rem 0 0}.portal-profile-row{border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;gap:1rem;padding-bottom:.65rem;display:flex}.portal-profile-row:last-child{border-bottom:0;padding-bottom:0}.portal-section-title{margin:0 0 .65rem;font-size:.95rem}.portal-profile-stats{grid-template-columns:repeat(3,minmax(0,1fr));gap:.75rem;display:grid}.portal-profile-stat{gap:.35rem;min-height:5.8rem;display:grid}.portal-profile-stat span{color:var(--muted);font-size:.84rem}.portal-profile-stat strong{font-size:1.35rem}@media (width<=900px){.app-shell{grid-template-columns:1fr}.sidebar{width:min(86vw, var(--sidebar-w));z-index:1001;border-right:1px solid var(--border);border-bottom:0;max-width:320px;transition:transform .18s;position:fixed;inset:0 auto 0 0;overflow-y:auto;transform:translate(-105%)}.sidebar-overlay{z-index:1000;background:var(--theme-mobile-overlay);-webkit-backdrop-filter:blur(1px);backdrop-filter:blur(1px);position:fixed;inset:0}body.customer-portal.sidebar-open .sidebar{transform:translate(0)}body.customer-portal.sidebar-open .sidebar-overlay{display:block}body.customer-portal.sidebar-open{overflow:hidden}.menu-toggle,.sidebar-close{display:inline-flex}.content{padding:.85rem .85rem 1.25rem}.topbar{padding:.7rem .75rem}.portal-profile-card,.portal-profile-row{align-items:flex-start}.portal-profile-row{flex-direction:column;gap:.25rem}.portal-profile-stats{grid-template-columns:1fr}}.sidebar-head-actions{flex-shrink:0;align-items:center;gap:.28rem;display:flex}.sidebar-collapse-btn{border:1px solid var(--border);background:var(--input-bg);color:var(--text);cursor:pointer;border-radius:10px;justify-content:center;align-items:center;width:32px;height:32px;padding:0;font-family:inherit;font-size:1.35rem;line-height:1;display:none}.sidebar-collapse-btn:hover{background:var(--theme-hover);color:var(--text)}@media (width>=901px){.sidebar-collapse-btn{display:inline-flex}}@media (width<=900px){.sidebar-collapse-btn{display:none!important}}@media (width>=901px){body.customer-portal.sidebar-desktop-collapsed .app-shell{grid-template-columns:0 minmax(0,1fr)}body.customer-portal.sidebar-desktop-collapsed .sidebar{opacity:0;pointer-events:none;border:none;width:0;min-width:0;margin:0;padding:0;overflow:hidden}}.portal-sidebar-reveal{z-index:998;border:1px solid var(--border);background:var(--surface);width:26px;height:72px;color:var(--text);cursor:pointer;border-left:none;border-radius:0 10px 10px 0;justify-content:center;align-items:center;margin:0;padding:0;font-family:inherit;font-size:1.2rem;line-height:1;display:none;position:fixed;top:50%;left:0;transform:translateY(-50%);box-shadow:2px 0 14px #00000047}.portal-sidebar-reveal:hover{background:var(--surface-alt);color:var(--text)}@media (width>=901px){body.customer-portal.sidebar-desktop-collapsed .portal-sidebar-reveal{display:flex}body.customer-portal.sidebar-desktop-collapsed .menu-toggle{display:inline-flex}}@media (width<=900px){.portal-sidebar-reveal{display:none!important}}@keyframes blink{0%,to{opacity:1}50%{opacity:0}}@keyframes dot-bounce{0%,80%,to{opacity:.4;transform:translateY(0)}40%{opacity:1;transform:translateY(-5px)}}.portal-chat-layout{grid-template-columns:minmax(200px,260px) 1fr;align-items:start;gap:1rem;display:grid}@media (width<=900px){.portal-chat-layout{grid-template-columns:1fr}}body.customer-portal .portal-scrollbar{scrollbar-width:thin;scrollbar-color:var(--theme-scrollbar-thumb) transparent}body.customer-portal .portal-scrollbar::-webkit-scrollbar{width:6px;height:6px}body.customer-portal .portal-scrollbar::-webkit-scrollbar-track{background:0 0}body.customer-portal .portal-scrollbar::-webkit-scrollbar-thumb{background-color:var(--theme-scrollbar-thumb);background-clip:padding-box;border:2px solid #0000;border-radius:999px}body.customer-portal .portal-scrollbar:hover::-webkit-scrollbar-thumb{background-color:var(--theme-scrollbar-thumb-hover)}.agent-thread-list{border:1px solid var(--border);background:var(--surface);border-radius:14px;max-height:min(72vh,640px);padding:.75rem .65rem;overflow-y:auto}.agent-thread-list-header{justify-content:space-between;align-items:center;gap:.35rem;margin:0 0 .5rem;padding:0 .35rem;display:flex}.agent-thread-list-title{color:var(--muted);text-transform:uppercase;letter-spacing:.04em;flex:1;min-width:0;margin:0;font-size:.82rem;font-weight:700}.agent-thread-list-header-actions{flex-shrink:0;align-items:center;gap:.15rem;display:inline-flex}.agent-thread-list-toggle,.agent-thread-list-delete-all{min-width:2rem;min-height:2rem;color:var(--muted);cursor:pointer;background:0 0;border:none;border-radius:8px;justify-content:center;align-items:center;padding:0;font-family:inherit;display:inline-flex}.agent-thread-list-toggle:hover,.agent-thread-list-toggle:focus-visible,.agent-thread-list-delete-all:hover,.agent-thread-list-delete-all:focus-visible{background:var(--theme-hover-mid);color:var(--text);outline:none}.agent-thread-list-delete-all:hover,.agent-thread-list-delete-all:focus-visible{color:var(--danger,#f07178)}.agent-thread-list-chevron{transition:transform .2s;display:block}.agent-thread-list--collapsed .agent-thread-list-chevron{transform:rotate(-90deg)}.agent-thread-list--collapsed .agent-thread-list-body{display:none}.agent-thread-btn{text-align:left;width:100%;color:var(--text);cursor:pointer;background:0 0;border:1px solid #0000;border-radius:10px;margin-bottom:.28rem;padding:.55rem .6rem;font-family:inherit;font-size:.86rem;font-weight:600;line-height:1.35;display:block}.agent-thread-btn:hover{background:var(--theme-hover)}.agent-thread-row{background:0 0;border:1px solid #0000;border-radius:10px;grid-template-columns:1fr auto;align-items:stretch;gap:.1rem;margin-bottom:.28rem;display:grid}.agent-thread-row.is-active{background:var(--accent-soft);border-color:#5b73ff73}.agent-thread-row .agent-thread-btn{margin-bottom:0}.agent-thread-row.is-active .agent-thread-btn:hover{background:var(--theme-hover-mid)}.agent-thread-actions{flex-shrink:0;align-items:flex-start;padding-top:.4rem;display:flex;position:relative}.agent-thread-more{min-width:2rem;height:2rem;color:var(--muted);cursor:pointer;background:0 0;border:none;border-radius:8px;justify-content:center;align-items:center;padding:0;font-family:inherit;font-size:1.1rem;line-height:1;display:inline-flex}.agent-thread-more:hover,.agent-thread-more:focus-visible{background:var(--theme-hover-mid);color:var(--text);outline:none}.agent-thread-more[aria-expanded=true]{background:var(--theme-hover-mid);color:var(--text)}.agent-thread-menu{z-index:30;border:1px solid var(--border);background:var(--elevated);min-width:11.5rem;box-shadow:var(--theme-dropdown-shadow);border-radius:10px;padding:.35rem;position:absolute;top:calc(100% - 2px);right:0}.agent-thread-menu-item{text-align:left;width:100%;color:var(--text);cursor:pointer;background:0 0;border:none;border-radius:8px;padding:.45rem .55rem;font-family:inherit;font-size:.84rem;font-weight:600;display:block}.agent-thread-menu-item:hover{background:var(--theme-hover)}.agent-thread-menu-item--danger{color:var(--danger,#f07178)}.agent-thread-menu-item--danger:hover{background:#f071781f}.agent-thread-meta{color:var(--muted);margin-top:.2rem;font-size:.72rem;font-weight:500;display:block}.btn-new-agent{width:100%;margin-bottom:.55rem}.portal-agent-heading{margin:0 0 .6rem;font-size:1.2rem}.portal-agent-history{border:1px solid var(--border);background:var(--input-bg);border-radius:12px;max-height:460px;padding:.85rem;overflow-y:auto}.agent-msg-row{justify-content:flex-start;margin-bottom:.65rem;display:flex}.agent-msg-row.is-user{justify-content:flex-end}.agent-msg-bubble{border:1px solid var(--border);background:var(--elevated);border-radius:12px;max-width:92%;padding:.65rem .75rem}.agent-msg-bubble.is-user{background:#5b73ff33;border-color:#5b73ff73}.agent-msg-meta{color:var(--muted);margin-bottom:.28rem;font-size:.76rem}.agent-msg-body{white-space:pre-wrap;word-break:break-word}.agent-msg-body--rich{white-space:normal;word-break:break-word;line-height:1.45}.agent-msg-body--rich h1,.agent-msg-body--rich h2,.agent-msg-body--rich h3,.agent-msg-body--rich h4{color:var(--text);margin:.4rem 0 .35rem;font-weight:700;line-height:1.3}.agent-msg-body--rich p{margin:.35rem 0}.agent-msg-body--rich ul,.agent-msg-body--rich ol{margin:.35rem 0 .35rem 1.1rem;padding:0}.agent-msg-body--rich li{margin:.2rem 0}.agent-msg-body--rich a{color:var(--accent,#7b8cff);word-break:break-all;text-decoration:underline}.agent-msg-body--rich code{background:var(--theme-code-inline);border-radius:6px;padding:.1em .35em;font-size:.88em}.agent-msg-body--rich pre{border:1px solid var(--border);background:var(--code-block-bg);border-radius:8px;margin:.45rem 0;padding:.55rem .65rem;font-size:.86rem;overflow-x:auto}.agent-msg-body--rich blockquote{color:var(--muted);border-left:3px solid #5b73ff80;margin:.4rem 0;padding:.35rem 0 .35rem .75rem}.agent-msg-body--rich table{border-collapse:collapse;width:100%;margin:.4rem 0;font-size:.9rem}.agent-msg-body--rich th,.agent-msg-body--rich td{border:1px solid var(--border);padding:.35rem .5rem}.agent-msg-caption{color:var(--muted);margin:0 0 .45rem;font-size:.92rem}.agent-msg-image-wrap{flex-direction:column;align-items:flex-start;gap:.45rem;display:flex}.agent-msg-image{border:1px solid var(--border);cursor:zoom-in;border-radius:10px;max-width:min(100%,420px);height:auto;transition:border-color .15s,box-shadow .15s;display:block}.agent-msg-image:hover{border-color:#5b73ff73;box-shadow:0 0 0 1px #5b73ff33}.agent-msg-image-download{color:var(--accent,#7b8cff);font-size:.86rem;text-decoration:underline}.agent-msg-image-download:hover{opacity:.9}.agent-empty-hint{margin:0}.portal-agent-image-hint{max-width:48rem;margin:.75rem 0 0;font-size:.8rem;line-height:1.45}.portal-agent-image-info{margin-top:.65rem;display:inline-flex;position:relative}.portal-agent-image-info__button{border:1px solid var(--border);background:var(--input-bg);width:1.65rem;height:1.65rem;color:var(--muted);cursor:pointer;-webkit-user-select:none;user-select:none;border-radius:50%;justify-content:center;align-items:center;font-size:.82rem;font-weight:800;line-height:1;list-style:none;display:inline-flex}.portal-agent-image-info__button::-webkit-details-marker{display:none}.portal-agent-image-info__button:hover{color:var(--text);border-color:#5b73ff73}.portal-agent-image-info__popup{z-index:5;border:1px solid var(--border);background:var(--surface);width:min(28rem,100vw - 2rem);color:var(--text);box-shadow:var(--theme-dropdown-shadow);border-radius:10px;padding:.75rem .85rem;font-size:.82rem;line-height:1.45;position:absolute;bottom:calc(100% + .5rem);left:0}.portal-agent-form{margin-top:.75rem}.portal-agent-provider-row{align-items:center;gap:.55rem;margin-bottom:.55rem;display:flex}.portal-agent-label-inline{margin:0}.portal-agent-grid{gap:.55rem;display:grid}.portal-agent-textarea{min-height:110px}.portal-agent-actions{flex-wrap:wrap;align-items:center;gap:.65rem;display:flex}.portal-agent-actions--ptt{align-items:stretch}.agent-sr-only{clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.agent-site-apply-wrap{flex:12rem;min-width:0;max-width:18rem}.agent-site-apply-select{width:100%;font-size:.86rem}.agent-ptt-group{border-radius:10px;flex-shrink:0;align-items:center;gap:.35rem;padding:1px;transition:box-shadow .15s,background .15s;display:inline-flex}.agent-ptt-group.is-recording{background:#c94a5314;box-shadow:0 0 0 1px #c94a5359}.agent-ptt-icon-btn{-webkit-user-select:none;user-select:none;touch-action:manipulation;justify-content:center;align-items:center;min-width:2.4rem;min-height:2.4rem;padding:.35rem;transition:border-color .15s,background .15s,color .15s;display:inline-flex}.agent-ptt-group .agent-ptt-icon-btn[hidden]{display:none!important}.agent-ptt-icon-btn:disabled{opacity:.45;cursor:not-allowed}.agent-ptt-finish-btn{color:#f0b0b5;background:#c94a5324!important;border-color:#c94a538c!important}.agent-ptt-finish-btn:hover:not(:disabled){color:#fff5f5;background:#c94a5338!important}.agent-ptt-icon-wrap{pointer-events:none;flex-shrink:0;display:inline-flex}.agent-ptt-icon{vertical-align:middle;display:block}.portal-agent-submit{width:fit-content}.portal-agent-submit--icon{justify-content:center;align-items:center;min-width:2.45rem;min-height:2.45rem;padding:.4rem .55rem;display:inline-flex}.portal-agent-submit--icon:disabled{opacity:.65;cursor:not-allowed}.agent-submit-icon-wrap{pointer-events:none;flex-shrink:0;line-height:0;display:inline-flex}.agent-submit-icon{display:block}.agent-inline-note{color:var(--muted);font-size:.88rem;display:none}.agent-inline-note.is-on{display:inline}.agent-inline-err{color:var(--danger);font-size:.88rem;display:none}.agent-inline-err.is-on{display:inline}.agent-msg-cursor{margin-left:1px;animation:.7s step-end infinite blink;display:inline-block}.agent-reading-row{justify-content:flex-start;margin-bottom:.65rem;display:flex}.agent-reading-inner{border:1px solid var(--border);background:var(--elevated);border-radius:12px;align-items:center;gap:.55rem;padding:.65rem .85rem;display:flex}.agent-reading-label{color:var(--muted);font-size:.82rem}.agent-reading-dots{align-items:center;gap:3px;display:inline-flex}.agent-reading-dot{background:var(--muted);border-radius:50%;width:6px;height:6px;animation:.9s ease-in-out infinite dot-bounce}.agent-reading-dot:nth-child(2){animation-delay:.16s}.agent-reading-dot:nth-child(3){animation-delay:.32s}.portal-image-lightbox{z-index:4000;justify-content:center;align-items:center;padding:1rem;display:flex;position:fixed;inset:0}.portal-image-lightbox[hidden]{display:none!important}.portal-image-lightbox__backdrop{background:var(--theme-lightbox-backdrop);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);cursor:zoom-out;border:none;margin:0;padding:0;position:absolute;inset:0}.portal-image-lightbox__frame{z-index:1;flex-direction:column;align-items:stretch;gap:.65rem;max-width:min(96vw,1200px);max-height:min(94vh,900px);display:flex;position:relative}.portal-image-lightbox__toolbar{justify-content:flex-end;display:flex}.portal-image-lightbox__icon-btn{border:1px solid var(--border);background:var(--theme-lightbox-btn-bg);width:2.25rem;height:2.25rem;color:var(--text);cursor:pointer;border-radius:10px;justify-content:center;align-items:center;font-family:inherit;line-height:1;display:inline-flex}.portal-image-lightbox__icon-btn:hover{background:var(--theme-hover-mid);border-color:var(--border)}.portal-image-lightbox__icon{font-size:1rem;font-weight:600}.portal-image-lightbox__img-wrap{border:1px solid var(--border);background:var(--code-block-bg);border-radius:12px;flex:1;justify-content:center;align-items:center;min-height:0;display:flex;overflow:hidden}.portal-image-lightbox__img{object-fit:contain;width:auto;max-width:100%;height:auto;max-height:min(78vh,760px);display:block}.portal-image-lightbox__download{color:var(--accent,#7b8cff);align-self:flex-start;font-size:.9rem;font-weight:600;text-decoration:underline}.portal-image-lightbox__download:hover{opacity:.92}.portal-swal-popup{border:1px solid #ffffff1f!important;border-radius:14px!important;font-family:inherit!important;box-shadow:0 18px 48px #0000008c!important}.portal-swal-container{z-index:5000!important}.portal-images-page{flex-direction:column;gap:1.5rem;display:flex}.portal-images-studio .portal-agent-heading{margin-top:0}.portal-images-studio .agent-site-apply-wrap.portal-images-provider-wrap{max-width:22rem}.portal-images-studio .portal-images-provider-wrap{align-items:center;min-width:0;display:flex}.portal-images-provider-inline{align-items:center;gap:.5rem;width:100%;min-width:0;display:flex}.portal-images-provider-label{color:var(--color-muted,#8b95a5);flex-shrink:0;font-size:.8rem}.portal-images-provider-inline .agent-site-apply-select,.portal-images-provider-inline .form-select{flex:auto;min-width:0}.portal-images-gallery-block{margin-bottom:2rem}.portal-images-gallery-title{margin:0 0 1rem;font-size:1.1rem;font-weight:600}.portal-images-grid{grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:1rem 1.25rem;display:grid}.portal-images-tile{flex-direction:column;gap:.4rem;margin:0;display:flex}.portal-images-thumb-btn{border:1px solid color-mix(in srgb, var(--color-border,#2a2f3a) 100%, transparent);background:color-mix(in srgb, var(--color-surface,#1a1f2a) 100%, transparent);cursor:zoom-in;border-radius:8px;width:100%;padding:0;transition:border-color .15s,box-shadow .15s;display:block;overflow:hidden}.portal-images-thumb-btn:hover,.portal-images-thumb-btn:focus-visible{border-color:color-mix(in srgb, var(--color-accent,#3b82f6) 70%, #fff);box-shadow:0 0 0 1px color-mix(in srgb, var(--color-accent,#3b82f6) 40%, transparent);outline:none}.portal-images-thumb{aspect-ratio:1;object-fit:cover;vertical-align:middle;width:100%;height:auto;display:block}.portal-images-tile-cap{flex-direction:column;gap:.2rem;font-size:.8rem;line-height:1.3;display:flex}.portal-images-tile-prompt{color:var(--color-text,#e8eaef);word-break:break-word}.portal-images-tile-meta{color:var(--color-muted,#8b95a5);font-size:.75rem}.portal-images-empty{grid-column:1/-1;margin:0}.portal-swal--image-gen .swal2-title{padding-bottom:.25rem;font-size:1.1rem;font-weight:600}.portal-image-gen-stages{text-align:left;flex-direction:column;gap:.65rem;margin-top:.5rem;font-size:.9rem;line-height:1.35;display:flex}.portal-image-gen-stage{color:#8b95a5;align-items:flex-start;gap:.5rem;transition:color .2s;display:flex}.portal-image-gen-stage--marker{border:2px solid #3a4154;border-radius:50%;flex-shrink:0;width:1.1rem;height:1.1rem;margin-top:.1rem;position:relative}.portal-image-gen-stage.is-pending .portal-image-gen-stage--marker{opacity:.45}.portal-image-gen-stage.is-active{color:#e8eaed}.portal-image-gen-stage.is-active .portal-image-gen-stage--marker{border-color:#3b82f6;animation:1.1s ease-in-out infinite portal-image-gen-pulse;box-shadow:0 0 0 1px #3b82f659}.portal-image-gen-stage.is-done{color:#a8b0c0}.portal-image-gen-stage.is-done .portal-image-gen-stage--marker{background:#22a06b;border-color:#22a06b}.portal-image-gen-stage.is-done .portal-image-gen-stage--marker:after{content:"✓";color:#fff;font-size:.55rem;font-weight:700;line-height:1;position:absolute;top:50%;left:50%;transform:translate(-50%,-56%)}@keyframes portal-image-gen-pulse{0%,to{box-shadow:0 0 #3b82f673}50%{box-shadow:0 0 0 4px #0000}}.plan-toggle-row{flex-wrap:wrap;gap:.5rem;margin:0 0 1rem;display:flex}.plan-toggle-btn{border:1px solid var(--border);background:var(--input-bg);color:var(--text);cursor:pointer;border-radius:999px;padding:.45rem 1rem;font-size:.82rem;font-weight:700}.plan-toggle-btn.is-active{background:var(--accent-soft);color:#fff;border-color:#5b73ff8c}.plan-grid{grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:.85rem;margin-bottom:1rem;display:grid}.plan-card{border:1px solid var(--border);background:var(--surface-alt);cursor:pointer;border-radius:14px;padding:1rem 1.05rem;transition:border-color .15s,box-shadow .15s;display:block;position:relative}.plan-card input{opacity:0;pointer-events:none;position:absolute}.plan-card:has(input:checked){border-color:#5b73ffbf;box-shadow:0 0 0 1px #5b73ff59}.plan-card:hover{border-color:#5b73ff59}.plan-tier{text-transform:uppercase;letter-spacing:.06em;color:var(--muted);margin:0 0 .25rem;font-size:.72rem}.plan-title{margin:0 0 .35rem;font-size:1.15rem;font-weight:800}.plan-credits{color:var(--text);margin:0 0 .35rem;font-size:.92rem}.plan-price{color:var(--muted);margin:0 0 .75rem;font-size:.88rem}.sub-submit{margin-top:.25rem}.sub-grid-wrap{margin-bottom:1.35rem}.hr-soft{border:none;border-top:1px solid var(--border);margin:1.25rem 0}.portal-credits-wide{max-width:920px}.portal-credits-title{margin:0 0 .5rem;font-size:1.35rem}.portal-credits-muted-tight{margin:0 0 .35rem}.portal-credits-muted-block,.portal-credits-alert{margin:0 0 1rem}.portal-credits-h2{margin:0 0 .65rem;font-size:1.05rem}.portal-credits-extra-h2{margin:0 0 .5rem;font-size:1.05rem}.portal-credits-extra-help{margin:0 0 1rem}.portal-credits-extra-field{margin-bottom:1rem}.portal-credits-loads-h2{margin:0 0 .75rem;font-size:1.1rem}.portal-table-scroll{overflow-x:auto}.portal-dashboard-h2{margin:0 0 .35rem;font-size:1.2rem}.portal-dashboard-muted{margin:0 0 1rem}.portal-dashboard-credits-line{margin:0 0 .25rem;font-size:2rem;font-weight:700}.portal-dashboard-credits-sub{color:var(--muted);font-size:1rem;font-weight:600}.portal-dashboard-usage-line{margin:.8rem 0 0}.portal-chart-wrap{height:280px;position:relative}.portal-chart-wrap-tall{height:320px;position:relative}.portal-dashboard-usage-head{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:.75rem;margin-bottom:.75rem;display:flex}.portal-dashboard-h2-sm{margin:0 0 .2rem;font-size:1.1rem}.portal-dashboard-muted-zero{margin:0}.portal-spend-toggles{flex-wrap:wrap;gap:.45rem;display:inline-flex}.spend-toggle-btn.is-active{opacity:1}.spend-toggle-btn:not(.is-active){opacity:.45}.portal-paytr-frame{border:0;width:100%;min-height:520px}.portal-paytr-title{margin:0 0 .5rem;font-size:1.25rem}.portal-paytr-intro{margin:0 0 1rem}.portal-guest-h1{letter-spacing:-.02em;margin:0 0 .35rem;font-size:1.45rem;font-weight:700}.portal-guest-intro{margin:0 0 1.25rem}.portal-guest-remember{margin-bottom:1rem}.portal-guest-remember label{font-weight:500}.portal-guest-foot{margin-bottom:0}.portal-guest-submit-mt{margin-top:.35rem}.agent-form-select{background:var(--input-bg);max-width:220px;color:var(--text);border:1px solid var(--border);border-radius:8px;padding:.45rem .55rem}.portal-load-status-pending{color:#b7791f}.portal-load-status-failed{color:var(--danger)}.portal-topbar-flex{align-items:center;gap:.55rem;display:flex}.portal-logout-form{display:inline}.portal-usage-h2{margin:0 0 .35rem;font-size:1.2rem}.portal-usage-muted-zero{margin:0}.portal-usage-list-h2{margin:0 0 .75rem;font-size:1.1rem}.portal-usage-pager{margin-top:.75rem}.portal-help-h2{margin:0 0 .85rem;font-size:1.2rem}.portal-help-list{margin:0;padding-left:1.2rem}.portal-api-h2{margin:0 0 .35rem;font-size:1.2rem}.portal-api-muted{margin:0 0 .75rem}.portal-api-actions{flex-wrap:wrap;gap:.55rem;margin-top:.8rem;display:flex}.portal-otp-code-input{text-align:center;letter-spacing:.3em;font-size:1.45rem;font-weight:700}.portal-otp-resend-form{margin-top:.75rem}.portal-otp-resend-btn{border:1px solid var(--border);width:100%;color:var(--text);cursor:pointer;background:0 0;border-radius:12px;padding:.65rem 1rem;font-family:inherit;font-size:.9rem;font-weight:600}.portal-guest-link-sm{font-size:.85rem}
