:root{--font-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;--font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;--fs-base: 14px;--fs-sm: 13px;--fs-xs: 12px;--lh-base: 1.55;--fw-regular: 400;--fw-medium: 500;--fw-semibold: 600;--radius-sm: 12px;--radius-md: 16px;--radius-lg: 20px;--radius-xl: 28px;--bg-sidebar: var(--bg-main);--bg-chat: var(--bg-surface);--bg-card: var(--bg-subtle);--surface-main: var(--bg-surface);--surface-soft: var(--bg-muted);--text-main: var(--text-primary);--text-soft: var(--text-secondary);--accent-main: var(--primary);--accent-bright: var(--primary-hover);--border-soft: var(--border);--divider: var(--border);--border-strong: var(--border);--input-bg: var(--bg-surface);--header-bg: var(--bg-surface);--control-bg: var(--bg-muted);--control-bg-strong: var(--bg-surface);--chip-bg: var(--bg-muted);--focus-ring: rgba(37, 99, 235, .22);--focus-shadow: 0 0 0 3px rgba(37, 99, 235, .1);--hover: rgba(0, 0, 0, .04);--selected-bg: rgba(37, 99, 235, .08);--selected-border: rgba(37, 99, 235, .22);--border-accent: rgba(37, 99, 235, .22);--danger-bg: #fef2f2;--danger-border: rgba(220, 38, 38, .12);--danger-text: #dc2626;--menu-bg: var(--bg-surface);--menu-shadow: 0 22px 46px rgba(15, 23, 42, .16);--shadow-md: var(--shadow-sm);--shadow-lg: var(--shadow-sm);--message-user-bg: var(--bg-subtle);--message-user-border: var(--border);--message-user-text: var(--text-primary);--message-user-meta: var(--text-muted);--badge-public-bg: rgba(37, 99, 235, .1);--badge-public-text: var(--primary-hover);--badge-private-bg: rgba(15, 23, 42, .06);--badge-private-text: var(--text-secondary);--message-error-bg: rgba(220, 38, 38, .1);--message-error-text: #b91c1c;--message-success-bg: rgba(22, 163, 74, .1);--message-success-text: #15803d}:root:not([data-theme]),:root[data-theme=dark]{color-scheme:dark;--bg-main: #0b0f14;--bg-surface: #0f141b;--bg-subtle: #151b23;--bg-muted: #1a2230;--text-primary: #e6edf3;--text-secondary: #9da7b3;--text-muted: #6b7280;--primary: #3b82f6;--primary-hover: #2563eb;--accent: #f59e0b;--success: #22c55e;--error: #ef4444;--event: #8b5cf6;--border: rgba(255, 255, 255, .05);--border-strong: rgba(255, 255, 255, .08);--shadow-sm: 0 1px 2px rgba(0, 0, 0, .2);--shadow-md: 0 16px 36px rgba(0, 0, 0, .32);--shadow-lg: 0 24px 60px rgba(0, 0, 0, .44);--hover: rgba(255, 255, 255, .03);--selected-bg: rgba(59, 130, 246, .08);--divider: rgba(255, 255, 255, .08);--header-bg: rgba(15, 20, 27, .86);--input-bg: rgba(21, 27, 35, .92);--menu-bg: rgba(21, 27, 35, .98);--menu-shadow: 0 24px 60px rgba(0, 0, 0, .44);--control-bg: rgba(21, 27, 35, .76);--control-bg-strong: rgba(21, 27, 35, .92);--chip-bg: rgba(21, 27, 35, .72);--focus-ring: rgba(59, 130, 246, .22);--focus-shadow: 0 0 0 3px rgba(59, 130, 246, .16);--danger-bg: rgba(239, 68, 68, .12);--danger-border: rgba(239, 68, 68, .22);--danger-text: #ef4444;--message-error-bg: rgba(169, 106, 106, .14);--message-error-text: #d8a7a7;--message-success-bg: rgba(107, 143, 113, .14);--message-success-text: #b8d3bd;--message-user-bg: #2a1f12;--message-user-border: var(--border);--message-user-text: var(--text-primary);--message-user-meta: rgba(230, 237, 243, .78);--badge-public-bg: rgba(59, 130, 246, .12);--badge-public-text: rgba(191, 219, 254, .96);--badge-private-bg: rgba(230, 233, 237, .08);--badge-private-text: rgba(230, 237, 243, .9);--tone-success-bg: rgba(34, 197, 94, .16);--tone-success-border: rgba(34, 197, 94, .22);--tone-success-text: rgba(134, 239, 172, .92);--tone-info-bg: rgba(59, 130, 246, .16);--tone-info-border: rgba(59, 130, 246, .22);--tone-info-text: rgba(191, 219, 254, .94);--tone-neutral-bg: rgba(230, 233, 237, .08);--tone-neutral-border: rgba(255, 255, 255, .08);--tone-neutral-text: rgba(230, 237, 243, .9);--tone-accent-bg: rgba(245, 158, 11, .16);--tone-accent-border: rgba(245, 158, 11, .22);--tone-accent-text: rgba(253, 230, 138, .95);--switch-on-bg: rgba(59, 130, 246, .35);--switch-on-border: rgba(59, 130, 246, .3);--auth-hero-bg: var(--bg-surface);--auth-glass-bg: var(--bg-surface);--auth-gridline: rgba(255, 255, 255, .02);--auth-value-card-bg: rgba(34, 40, 49, .56);--auth-product-preview-bg: rgba(16, 21, 26, .74);--auth-product-window-bg: var(--bg-subtle);--auth-preview-bot-bg: rgba(34, 40, 49, .94);--auth-switcher-bg: rgba(34, 40, 49, .72);--auth-side-bg: var(--bg-subtle);--auth-side-login-bg: var(--bg-subtle);--auth-side-blob-bg: var(--bg-subtle)}:root[data-theme=light]{color-scheme:light;--bg-main: #edf2f7;--bg-surface: #f7f9fc;--bg-subtle: #e9eef5;--bg-muted: #dde5ee;--text-primary: #182433;--text-secondary: #4a596c;--text-muted: #768496;--primary: #4f7df3;--primary-hover: #3f6ee8;--accent: #d69a32;--accent-soft: #fae7bf;--success: #16a34a;--error: #dc2626;--event: #7c3aed;--border-soft: rgba(24, 36, 51, .06);--border-default: rgba(24, 36, 51, .1);--border-strong: rgba(24, 36, 51, .16);--border: var(--border-default);--divider: var(--border-soft);--shadow-xs: 0 1px 2px rgba(15, 23, 42, .04);--shadow-sm: 0 1px 3px rgba(15, 23, 42, .06);--shadow-md: 0 6px 16px rgba(15, 23, 42, .08);--shadow-lg: 0 12px 28px rgba(15, 23, 42, .1);--hover: rgba(24, 36, 51, .045);--selected-bg: rgba(79, 125, 243, .1);--selected-border: rgba(79, 125, 243, .16);--border-accent: rgba(79, 125, 243, .16);--header-bg: var(--bg-surface);--input-bg: var(--bg-surface);--menu-bg: rgba(247, 249, 252, .96);--menu-shadow: 0 12px 28px rgba(15, 23, 42, .1);--control-bg: var(--bg-muted);--control-bg-strong: var(--bg-surface);--chip-bg: var(--bg-muted);--focus-ring: rgba(79, 125, 243, .18);--focus-shadow: 0 0 0 3px rgba(79, 125, 243, .1);--danger-bg: #fff1f2;--danger-border: rgba(220, 38, 38, .12);--danger-text: #dc2626;--message-error-bg: rgba(220, 38, 38, .1);--message-error-text: #b91c1c;--message-success-bg: rgba(22, 163, 74, .1);--message-success-text: #15803d;--message-user-bg: var(--accent-soft);--message-user-border: rgba(214, 154, 50, .18);--message-user-text: #6f4b1c;--message-user-meta: var(--text-muted);--badge-public-bg: rgba(79, 125, 243, .1);--badge-public-text: #3f6ee8;--badge-private-bg: rgba(30, 41, 59, .06);--badge-private-text: var(--text-secondary);--tone-success-bg: rgba(22, 163, 74, .1);--tone-success-border: rgba(22, 101, 52, .12);--tone-success-text: #166534;--tone-info-bg: rgba(79, 125, 243, .1);--tone-info-border: rgba(29, 78, 216, .12);--tone-info-text: #3f6ee8;--tone-neutral-bg: var(--bg-muted);--tone-neutral-border: rgba(30, 41, 59, .08);--tone-neutral-text: var(--text-secondary);--tone-accent-bg: rgba(214, 154, 50, .12);--tone-accent-border: rgba(214, 154, 50, .18);--tone-accent-text: #7c5418;--switch-on-bg: rgba(79, 125, 243, .28);--switch-on-border: rgba(79, 125, 243, .22);--auth-hero-bg: var(--bg-surface);--auth-glass-bg: var(--bg-surface);--auth-gridline: rgba(24, 36, 51, .045);--auth-value-card-bg: var(--bg-subtle);--auth-product-preview-bg: var(--bg-subtle);--auth-product-window-bg: var(--bg-muted);--auth-preview-bot-bg: var(--bg-subtle);--auth-switcher-bg: var(--bg-muted);--auth-side-bg: var(--bg-muted);--auth-side-login-bg: var(--bg-muted);--auth-side-blob-bg: var(--bg-muted)}*{box-sizing:border-box}html{font-size:var(--fs-base)}body{margin:0;min-width:320px;font-family:var(--font-sans);font-size:var(--fs-base);line-height:var(--lh-base);font-weight:var(--fw-regular);color:var(--text-primary);background:var(--bg-main);transition:background-color .2s ease,color .2s ease}code,pre,kbd,samp{font-family:var(--font-mono)}.page{min-height:100vh;max-width:960px;margin:0 auto;padding:48px 20px}.field{display:grid;gap:8px;color:var(--text-primary);font-weight:var(--fw-semibold)}.field span{font-size:.95rem}.field input,.field textarea,.field select{width:100%;border:1px solid var(--border-strong);border-radius:var(--radius-md);padding:14px 16px;font:inherit;background:var(--input-bg);color:var(--text-primary);box-shadow:var(--shadow-sm)}.field input::placeholder,.field textarea::placeholder{color:var(--text-muted);opacity:1}.field textarea{min-height:56px;resize:vertical}.field input:focus,.field textarea:focus,.field select:focus{outline:none;border-color:var(--primary);box-shadow:var(--shadow-sm),var(--focus-shadow)}.field-hint{margin:-2px 0 2px;color:var(--text-secondary);font-size:var(--fs-sm);line-height:1.4}.primary-button,.secondary-button,.text-button{font:inherit;cursor:pointer}.primary-button,.secondary-button{border-radius:14px;padding:14px 18px;font-weight:var(--fw-semibold)}.primary-button{border:1px solid transparent;color:#fff;background:var(--primary);box-shadow:var(--shadow-sm);transition:background-color .16s ease,border-color .16s ease,color .16s ease,box-shadow .16s ease}.primary-button:hover{background:var(--primary-hover)}.primary-button:disabled{cursor:wait;opacity:.7}.secondary-button{border:1px solid var(--border);background:var(--bg-surface);color:var(--text-primary);box-shadow:var(--shadow-sm);transition:background-color .16s ease,border-color .16s ease,color .16s ease}.secondary-button:hover{background:var(--bg-subtle)}.secondary-button-danger{border-color:var(--danger-border);background:var(--danger-bg);color:var(--danger-text)}.text-button{margin-top:16px;border:none;background:transparent;color:var(--primary);padding:0;text-align:left}.text-button:hover{color:var(--primary-hover)}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:140;display:grid;place-items:center;padding:20px;background:color-mix(in srgb,var(--bg-overlay) 72%,transparent);-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);animation:modal-backdrop-enter .18s ease-out}.modal-backdrop.closing{animation:modal-backdrop-exit .16s ease-in}.modal-shell{width:min(880px,100%);max-height:min(90vh,920px);display:grid;grid-template-rows:auto minmax(0,1fr);overflow:hidden;border:1px solid var(--border);border-radius:28px;background:var(--bg-surface);box-shadow:var(--shadow-xl);animation:modal-shell-enter .18s ease-out}.modal-shell.closing{animation:modal-shell-exit .16s ease-in}.modal-header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:24px 24px 18px;border-bottom:1px solid var(--border)}.modal-header-copy{display:grid;gap:6px}.modal-header-copy h2{margin:0;color:var(--text-primary);font-size:1.35rem;line-height:1.15}.modal-description{margin:0;color:var(--text-secondary);font-size:.95rem;line-height:1.45}.modal-close{width:40px;height:40px;flex:0 0 auto;border:1px solid var(--border);border-radius:14px;background:var(--control-bg);color:var(--text-secondary);font:inherit;font-size:1.2rem;cursor:pointer;transition:background-color .16s ease,border-color .16s ease,color .16s ease,transform .16s ease}.modal-close:hover{background:var(--hover);color:var(--text-primary);border-color:var(--border-accent)}.modal-body{min-height:0;overflow:auto;padding:24px}@keyframes modal-backdrop-enter{0%{opacity:0}to{opacity:1}}@keyframes modal-backdrop-exit{0%{opacity:1}to{opacity:0}}@keyframes modal-shell-enter{0%{opacity:0;transform:translateY(12px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}@keyframes modal-shell-exit{0%{opacity:1;transform:translateY(0) scale(1)}to{opacity:0;transform:translateY(12px) scale(.98)}}@media (max-width: 720px){.modal-backdrop{padding:12px;place-items:end center}.modal-shell{width:100%;max-height:calc(100vh - 24px);border-radius:24px 24px 18px 18px}.modal-header,.modal-body{padding-left:18px;padding-right:18px}}.settings-modal{width:min(920px,100%)}.settings-modal-grid{display:grid;gap:20px}.settings-section{display:grid;gap:14px}.settings-section-head{display:grid;gap:4px}.settings-section-head-row{display:flex;align-items:center;justify-content:space-between;gap:12px}.settings-section-head h3{margin:0;color:var(--text-primary);font-size:1rem;line-height:1.25}.settings-section-head p,.settings-choice-group-head span{margin:0;color:var(--text-secondary);font-size:.9rem;line-height:1.45}.settings-sync-badge{border-radius:999px;padding:6px 10px;font-size:.78rem;font-weight:var(--fw-semibold);letter-spacing:.02em;background:var(--bg-subtle);color:var(--text-secondary);border:1px solid var(--border);white-space:nowrap}.settings-sync-badge.sync-syncing{color:var(--primary);border-color:var(--border-accent)}.settings-sync-badge.sync-synced{color:var(--success, #2c8f57)}.settings-sync-badge.sync-offline{color:var(--warning, #9c6b1a)}.settings-sync-badge.sync-local{color:var(--text-secondary)}.settings-scope-note{display:grid;gap:4px;padding:14px 16px;border:1px solid var(--border);border-radius:18px;background:var(--bg-subtle)}.settings-scope-note strong{color:var(--text-primary);font-size:.94rem;font-weight:var(--fw-semibold)}.settings-scope-note span{color:var(--text-secondary);font-size:.88rem;line-height:1.45}.settings-card-group,.settings-stack,.settings-split-grid{display:grid;gap:12px}.settings-card-group{grid-template-columns:repeat(auto-fit,minmax(180px,1fr))}.settings-choice{display:grid;gap:6px;padding:16px;border:1px solid var(--border);border-radius:18px;background:var(--bg-surface);color:var(--text-primary);text-align:left;font:inherit;cursor:pointer;box-shadow:var(--shadow-sm);transition:background-color .16s ease,border-color .16s ease,transform .16s ease,box-shadow .16s ease}.settings-choice:hover,.settings-choice.active{background:var(--hover);border-color:var(--border-accent);box-shadow:var(--shadow-md)}.settings-choice strong{font-size:.98rem;font-weight:var(--fw-semibold)}.settings-choice span{color:var(--text-secondary);font-size:.88rem;line-height:1.45}.settings-toggle{display:flex;align-items:center;justify-content:space-between;gap:16px;width:100%;padding:14px 16px;border:1px solid var(--border);border-radius:18px;background:var(--bg-surface);color:var(--text-primary);text-align:left;font:inherit;cursor:pointer;box-shadow:var(--shadow-sm);transition:background-color .16s ease,border-color .16s ease,box-shadow .16s ease}.settings-toggle:hover,.settings-toggle.active{background:var(--hover);border-color:var(--border-accent);box-shadow:var(--shadow-md)}.settings-toggle-copy{display:grid;gap:4px;min-width:0}.settings-toggle-copy strong{font-size:.98rem;font-weight:var(--fw-semibold)}.settings-toggle-copy span{color:var(--text-secondary);font-size:.88rem;line-height:1.45}.settings-toggle-pill{position:relative;width:46px;height:28px;flex:0 0 auto;border-radius:999px;background:var(--control-bg);border:1px solid var(--border);transition:background-color .16s ease,border-color .16s ease}.settings-toggle-dot{position:absolute;top:50%;left:3px;width:20px;height:20px;border-radius:999px;background:var(--text-muted);transform:translateY(-50%);transition:transform .16s ease,background-color .16s ease}.settings-toggle.active .settings-toggle-pill{background:var(--accent-soft, var(--primary-soft));border-color:var(--border-accent)}.settings-toggle.active .settings-toggle-dot{transform:translate(18px,-50%);background:var(--primary)}.settings-split-grid{grid-template-columns:repeat(auto-fit,minmax(280px,1fr))}.settings-choice-group{display:grid;gap:12px;padding:16px;border:1px solid var(--border);border-radius:18px;background:var(--bg-subtle)}.settings-choice-group-head{display:grid;gap:2px}.settings-choice-group-head strong{color:var(--text-primary);font-size:.96rem;font-weight:var(--fw-semibold)}.settings-choice-list{display:flex;flex-wrap:wrap;gap:8px}.settings-choice-pill{border:1px solid var(--border);border-radius:999px;background:var(--bg-surface);color:var(--text-primary);padding:9px 12px;font:inherit;font-size:.88rem;font-weight:var(--fw-medium);cursor:pointer;transition:background-color .16s ease,border-color .16s ease,color .16s ease,transform .16s ease}.settings-choice-pill:hover,.settings-choice-pill.active{background:var(--hover);border-color:var(--border-accent);color:var(--text-primary)}@media (max-width: 720px){.settings-card-group,.settings-split-grid{grid-template-columns:1fr}.settings-section-head-row{align-items:flex-start;flex-direction:column}.settings-toggle{align-items:flex-start}}.message{margin:0;padding:12px 14px;border-radius:14px;font-size:.95rem;border:1px solid var(--border);box-shadow:var(--shadow-sm)}.message.error{background:var(--message-error-bg);color:var(--message-error-text);border-color:var(--danger-border)}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.telegram-chat-profile-trigger{max-width:min(320px,100%);min-width:0;padding:6px 8px;border:1px solid transparent;background:transparent;color:var(--text-primary);cursor:pointer;border-radius:12px;display:inline-flex;align-items:center;gap:8px;text-align:left;font:inherit;transition:background-color .16s ease,border-color .16s ease,color .16s ease}.telegram-chat-profile-avatar{width:32px;height:32px;flex:0 0 32px;border-radius:10px}.telegram-chat-profile-avatar-text{margin-bottom:2px}.telegram-chat-profile-copy{min-width:0;display:grid;gap:2px}.telegram-chat-profile-title{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--text-primary);font-size:15px;font-weight:700;line-height:1.16}.telegram-chat-profile-subtitle{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--text-secondary);font-size:12px;font-weight:500;line-height:1.12}.telegram-chat-profile-chevron{flex:0 0 auto;color:var(--text-secondary);font-size:20px;line-height:1;transition:color .16s ease}.telegram-chat-profile-trigger:hover{background:color-mix(in srgb,var(--primary) 12%,transparent);border-color:color-mix(in srgb,var(--primary) 38%,transparent)}.telegram-chat-profile-trigger:hover .telegram-chat-profile-title,.telegram-chat-profile-trigger:hover .telegram-chat-profile-chevron{color:var(--primary)}.telegram-chat-profile-trigger:focus-visible{outline:2px solid var(--primary);outline-offset:2px}@media (max-width: 640px){.telegram-chat-profile-trigger{max-width:min(100%,260px);padding:5px 7px}.telegram-chat-profile-avatar{width:28px;height:28px;flex-basis:28px;border-radius:9px}.telegram-chat-profile-title{font-size:14px}.telegram-chat-profile-subtitle{display:none}.telegram-chat-profile-chevron{font-size:18px}}.bot-profile-modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:150;display:flex;align-items:center;justify-content:center;padding:20px;background:#00000085;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);animation:bot-profile-modal-backdrop-in .18s ease-out}.bot-profile-modal-backdrop.closing{animation:bot-profile-modal-backdrop-out .18s ease-in}.bot-profile-modal{width:min(480px,100%);max-height:min(540px,90vh);display:grid;grid-template-rows:auto minmax(0,1fr);overflow:hidden;border:1px solid var(--border);border-radius:18px;background:var(--bg-surface);box-shadow:var(--shadow-xl);animation:bot-profile-modal-in .24s ease-out}.bot-profile-modal.closing{animation:bot-profile-modal-out .22s ease-in}.bot-profile-modal-header{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding:22px 22px 14px}.bot-profile-modal-header-main{min-width:0;display:flex;align-items:flex-start;gap:12px}.bot-profile-modal-header-main-admin{gap:14px}.bot-profile-modal-avatar{width:64px;height:64px;flex:0 0 64px}.bot-profile-modal-avatar-button{position:relative;flex:0 0 64px;padding:0;border:0;background:transparent;border-radius:999px;cursor:pointer;overflow:hidden;color:#fff}.bot-profile-modal-avatar-button:hover .bot-profile-modal-avatar-edit,.bot-profile-modal-avatar-button:focus-visible .bot-profile-modal-avatar-edit{opacity:1}.bot-profile-modal-avatar-button:focus-visible,.bot-profile-modal-inline-text:focus-visible,.bot-profile-modal-copy-button:focus-visible,.bot-profile-modal-console-link:focus-visible{outline:2px solid var(--focus-ring);outline-offset:2px}.bot-profile-modal-avatar-edit{position:absolute;right:2px;bottom:2px;display:grid;place-items:center;width:24px;height:24px;border:2px solid var(--bg-surface);border-radius:999px;background:var(--primary);color:#fff;font-size:.82rem;font-weight:600;line-height:1;opacity:.92;transform:scale(.92);transition:opacity .16s ease,transform .16s ease,background-color .16s ease}.bot-profile-modal-avatar-button:hover .bot-profile-modal-avatar-edit,.bot-profile-modal-avatar-button:focus-visible .bot-profile-modal-avatar-edit{opacity:1;transform:scale(1);background:var(--primary-hover)}.bot-profile-modal-header-copy{min-width:0;display:grid;gap:6px}.bot-profile-modal-title-row{display:flex;align-items:center;gap:10px;min-width:0}.bot-profile-modal-title-row h2,.bot-profile-modal-inline-title{margin:0;min-width:0;color:var(--text-primary);font-size:1.2rem;line-height:1.15;font-weight:var(--fw-semibold);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.bot-profile-modal-inline-text{display:inline-flex;align-items:center;gap:7px;padding:3px 5px;margin:-3px -5px;border:0;border-radius:8px;background:transparent;color:inherit;font:inherit;text-align:left;cursor:pointer;transition:background-color .16s ease,color .16s ease}.bot-profile-modal-inline-text:hover:not(:disabled),.bot-profile-modal-inline-text:focus-visible:not(:disabled){background:color-mix(in srgb,var(--primary) 10%,transparent)}.bot-profile-modal-edit-glyph{flex:0 0 auto;display:inline-grid;place-items:center;width:18px;height:18px;border-radius:999px;background:color-mix(in srgb,var(--primary) 12%,transparent);color:var(--primary);font-size:.76rem;line-height:1;opacity:.76;transition:opacity .16s ease,background-color .16s ease,color .16s ease}.bot-profile-modal-inline-text:hover .bot-profile-modal-edit-glyph,.bot-profile-modal-inline-text:focus-visible .bot-profile-modal-edit-glyph{opacity:1;background:color-mix(in srgb,var(--primary) 18%,transparent)}.bot-profile-modal-avatar-edit .bot-profile-modal-edit-glyph{width:auto;height:auto;background:transparent;color:#fff;opacity:1}.bot-profile-modal-inline-text:disabled{cursor:default}.bot-profile-modal-inline-description{display:inline-flex;align-items:flex-start;width:fit-content;max-width:100%;color:var(--text-secondary);font-size:.875rem;line-height:1.45;white-space:normal}.bot-profile-modal-save-state{color:var(--text-secondary);font-size:.75rem;line-height:1.2}.bot-profile-modal-save-state.success{color:var(--success-text)}.bot-profile-modal-title-input,.bot-profile-modal-description-input{width:100%;border:1px solid color-mix(in srgb,var(--primary) 45%,var(--border));border-radius:10px;background:var(--bg-secondary);color:var(--text-primary);font:inherit;box-shadow:0 0 0 3px color-mix(in srgb,var(--primary) 13%,transparent)}.bot-profile-modal-title-input{min-width:0;height:36px;padding:5px 9px;font-size:1.05rem;font-weight:var(--fw-semibold)}.bot-profile-modal-description-input{min-height:84px;padding:9px 11px;color:var(--text-secondary);font-size:.875rem;line-height:1.45;resize:vertical}.bot-profile-modal-title-input:focus,.bot-profile-modal-description-input:focus{outline:none}.bot-profile-modal-mode{display:inline-flex;align-items:center;justify-content:center;padding:4px 10px;border-radius:999px;border:1px solid var(--border);font-size:.72rem;line-height:1;font-weight:var(--fw-semibold);letter-spacing:.04em;text-transform:uppercase;background:var(--chip-bg);color:var(--text-secondary)}.bot-profile-modal-mode-public{color:var(--success-text);background:color-mix(in srgb,var(--success-bg) 78%,transparent);border-color:color-mix(in srgb,var(--success-border) 70%,var(--border))}.bot-profile-modal-mode-private{color:var(--warning-text);background:color-mix(in srgb,var(--warning-bg) 78%,transparent);border-color:color-mix(in srgb,var(--warning-border) 70%,var(--border))}.bot-profile-modal-description{margin:0;color:var(--text-secondary);font-size:.8125rem;line-height:1.45}.bot-profile-modal-description-empty{min-height:0}.bot-profile-modal-close{width:34px;height:34px;flex:0 0 auto;border:0;border-radius:999px;background:transparent;color:var(--text-secondary);font:inherit;font-size:1.15rem;cursor:pointer;transition:background-color .16s ease,border-color .16s ease,color .16s ease,transform .16s ease}.bot-profile-modal-close:hover,.bot-profile-modal-close:focus-visible{background:var(--hover);color:var(--text-primary);transform:translateY(-1px)}.bot-profile-modal-body{min-height:0;overflow:auto;padding:6px 22px 22px;display:grid;gap:14px}.bot-profile-modal-section{display:grid;gap:12px}.bot-profile-modal-section-title{margin:0;color:var(--text-primary);font-size:.875rem;line-height:1.2;font-weight:600}.bot-profile-modal-menu{display:grid;gap:8px}.bot-profile-modal-menu-button{width:100%;display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 14px;border:1px solid var(--border);border-radius:14px;background:var(--bg-secondary);color:inherit;cursor:pointer;text-align:left;transition:transform .16s ease,background-color .16s ease,border-color .16s ease,box-shadow .16s ease}.bot-profile-modal-menu-button:hover:not(:disabled),.bot-profile-modal-menu-button:focus-visible:not(:disabled){background:color-mix(in srgb,var(--bg-secondary) 84%,var(--primary) 16%);border-color:var(--border-accent);transform:translateY(-1px);box-shadow:0 10px 24px color-mix(in srgb,var(--shadow) 18%,transparent)}.bot-profile-modal-menu-button:disabled{cursor:not-allowed}.bot-profile-modal-menu-button-main{min-width:0;display:grid;gap:4px}.bot-profile-modal-menu-button-main strong{color:var(--text-primary);font-size:.875rem;line-height:1.25}.bot-profile-modal-menu-button-main span,.bot-profile-modal-menu-button-code{color:var(--text-secondary);font-size:.8125rem;line-height:1.35}.bot-profile-modal-menu-button-code{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,monospace}.bot-profile-modal-menu-button-arrow{flex:0 0 auto;color:var(--text-secondary);font-size:.9rem}.bot-profile-modal-menu-button-disabled{opacity:.75}.bot-profile-modal-menu-panel{display:grid;gap:12px;padding:14px;border:1px solid var(--border);border-radius:14px;background:color-mix(in srgb,var(--bg-surface) 88%,var(--bg-secondary))}.bot-profile-modal-section-note{margin:0;color:var(--text-secondary);font-size:.8125rem;line-height:1.4}.bot-profile-modal-status-list,.bot-profile-modal-skill-list,.bot-profile-modal-inline-grid{display:grid;gap:8px}.bot-profile-modal-inline-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.bot-profile-modal-info-grid,.bot-profile-modal-stats-grid{display:grid;gap:8px}.bot-profile-modal-info-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.bot-profile-modal-stats-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.bot-profile-modal-info-card,.bot-profile-modal-stat-card{display:grid;gap:4px;padding:12px;border-radius:12px;background:var(--bg-secondary)}.bot-profile-modal-info-label,.bot-profile-modal-stat-label{color:var(--text-secondary);font-size:.6875rem;line-height:1.2;font-weight:600;letter-spacing:.04em;text-transform:uppercase}.bot-profile-modal-info-value,.bot-profile-modal-stat-value{color:var(--text-primary);font-size:.875rem;line-height:1.35;font-weight:700}.bot-profile-modal-stat-value{font-size:1.5rem;line-height:1}.bot-profile-modal-domain-block{display:grid;gap:10px;padding:12px;border-radius:12px;background:var(--bg-secondary)}.bot-profile-modal-link-block{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px;padding:8px;border:1px solid var(--border);border-radius:12px;background:color-mix(in srgb,var(--bg-secondary) 78%,var(--bg-surface))}.bot-profile-modal-link-block code{min-width:0;padding:8px 10px;border-radius:8px;background:transparent;color:var(--text-primary);font-size:.8125rem;line-height:1.35;overflow-wrap:anywhere}.bot-profile-modal-copy-button{min-height:34px;padding:0 12px;border:0;border-radius:9px;background:color-mix(in srgb,var(--primary) 12%,transparent);color:var(--primary);font:inherit;font-size:.8125rem;font-weight:600;cursor:pointer;transition:background-color .16s ease,color .16s ease}.bot-profile-modal-copy-button:hover:not(:disabled){background:color-mix(in srgb,var(--primary) 18%,transparent)}.bot-profile-modal-copy-button:disabled{cursor:not-allowed;color:var(--text-muted)}.bot-profile-modal-settings-toggle{width:100%;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 12px;border:1px solid var(--border);border-radius:12px;background:color-mix(in srgb,var(--bg-secondary) 76%,var(--bg-surface));color:inherit;font:inherit;text-align:left;cursor:pointer;transition:background-color .16s ease,border-color .16s ease}.bot-profile-modal-settings-toggle:hover,.bot-profile-modal-settings-toggle:focus-visible{background:color-mix(in srgb,var(--bg-secondary) 84%,var(--primary) 10%);border-color:var(--border-accent);outline:none}.bot-profile-modal-settings-copy,.bot-profile-modal-setting-copy{min-width:0;display:grid;gap:3px}.bot-profile-modal-settings-copy strong,.bot-profile-modal-setting-copy strong{color:var(--text-primary);font-size:.875rem;line-height:1.25}.bot-profile-modal-settings-copy span,.bot-profile-modal-setting-copy span{color:var(--text-secondary);font-size:.8125rem;line-height:1.35}.bot-profile-modal-settings-state{flex:0 0 auto;min-width:42px;padding:4px 8px;border-radius:999px;background:var(--chip-bg);color:var(--text-secondary);font-size:.72rem;font-weight:700;text-align:center}.bot-profile-modal-news-panel{display:grid;gap:8px}.bot-profile-modal-news-channel-list{display:grid;gap:6px}.bot-profile-modal-news-channel{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px;padding:9px 11px;border-radius:11px;background:color-mix(in srgb,var(--bg-secondary) 52%,transparent);cursor:pointer}.bot-profile-modal-news-channel span{min-width:0;display:grid;gap:3px}.bot-profile-modal-news-channel strong{color:var(--text-primary);font-size:.84rem;line-height:1.25;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.bot-profile-modal-news-channel small{color:var(--text-secondary);font-size:.75rem;line-height:1.3;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.bot-profile-modal-news-channel input{width:16px;height:16px}.bot-profile-modal-news-create{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}.bot-profile-modal-news-create input{min-width:0;min-height:34px;border:1px solid var(--border);border-radius:9px;background:var(--bg-secondary);color:var(--text-primary);padding:0 10px;font:inherit;font-size:.8125rem}.bot-profile-modal-news-create input:focus{outline:2px solid var(--focus-ring);outline-offset:1px}.bot-profile-modal-setting-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;border-radius:12px;background:color-mix(in srgb,var(--bg-secondary) 64%,transparent);cursor:pointer}.bot-profile-modal-switch{position:relative;flex:0 0 auto;width:42px;height:24px}.bot-profile-modal-switch input{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}.bot-profile-modal-switch-track{position:absolute;top:0;right:0;bottom:0;left:0;border-radius:999px;background:color-mix(in srgb,var(--text-secondary) 18%,transparent);transition:background-color .16s ease}.bot-profile-modal-switch-thumb{position:absolute;top:3px;left:3px;width:18px;height:18px;border-radius:999px;background:var(--bg-surface);box-shadow:var(--shadow-sm);transition:transform .16s ease}.bot-profile-modal-switch input:checked+.bot-profile-modal-switch-track{background:var(--primary)}.bot-profile-modal-switch input:checked+.bot-profile-modal-switch-track .bot-profile-modal-switch-thumb{transform:translate(18px)}.bot-profile-modal-switch input:focus-visible+.bot-profile-modal-switch-track{outline:2px solid var(--focus-ring);outline-offset:2px}.bot-profile-modal-switch input:disabled+.bot-profile-modal-switch-track{opacity:.58}.bot-profile-modal-subtle-message{margin:0;color:var(--text-secondary);font-size:.8125rem;line-height:1.35}.bot-profile-modal-subtle-message.success{color:var(--success-text)}.bot-profile-modal-domain-row{display:flex;align-items:center;justify-content:space-between;gap:12px;color:var(--text-secondary);font-size:.8125rem;line-height:1.35}.bot-profile-modal-domain-row strong,.bot-profile-modal-domain-row code{color:var(--text-primary);font-size:.8125rem;line-height:1.35}.bot-profile-modal-domain-row code{overflow-wrap:anywhere;text-align:right}.bot-profile-modal-console-link{width:fit-content;justify-self:start;padding:8px 0;border:0;background:transparent;color:var(--primary);font:inherit;font-size:.9375rem;font-weight:600;cursor:pointer;transition:color .16s ease}.bot-profile-modal-console-link:hover{color:var(--primary-hover)}.bot-profile-modal-user{width:min(580px,calc(100vw - 32px));max-height:min(760px,calc(100vh - 32px));border:1px solid rgba(15,23,42,.08);border-radius:28px;background:#fff;box-shadow:0 24px 80px #0f172a38}.bot-profile-modal-user .bot-profile-modal-header{align-items:flex-start;padding:32px 32px 24px;gap:16px}.bot-profile-modal-user .bot-profile-modal-header-main{flex:1;align-items:center;gap:16px}.bot-profile-modal-user .bot-profile-modal-avatar{width:64px;height:64px;flex-basis:64px;border:1px solid #e2e8f0;border-radius:16px;box-shadow:0 10px 24px #0f172a1a}.bot-profile-modal-user .bot-profile-modal-header-copy{gap:5px}.bot-profile-modal-user .bot-profile-modal-title-row{gap:10px;flex-wrap:nowrap}.bot-profile-modal-user .bot-profile-modal-inline-title{color:#0f172a;font-size:24px;font-weight:700;line-height:30px}.bot-profile-modal-user .bot-profile-modal-inline-title.readonly{padding:0;margin:0}.bot-profile-modal-user .bot-profile-modal-inline-title.readonly:hover,.bot-profile-modal-user .bot-profile-modal-inline-title.readonly:focus-visible{background:transparent}.bot-profile-modal-user .bot-profile-modal-inline-description,.bot-profile-modal-user .bot-profile-modal-description{color:#64748b;font-size:16px;line-height:22px}.bot-profile-modal-user .bot-profile-modal-mode{height:24px;gap:6px;padding:0 9px;border-radius:8px;border:0;font-size:12px;font-weight:700;letter-spacing:0}.bot-profile-modal-user .bot-profile-modal-mode-private{color:#2563eb;background:#eaf1ff}.bot-profile-modal-user .bot-profile-modal-mode-public{color:#16a34a;background:#dcfce7}.bot-profile-modal-user .bot-profile-modal-close{width:32px;height:32px;display:inline-grid;place-items:center;border-radius:8px;color:#475569}.bot-profile-modal-user .bot-profile-modal-close:hover,.bot-profile-modal-user .bot-profile-modal-close:focus-visible{background:#f1f5f9;color:#0f172a;transform:none}.bot-profile-modal-user .bot-profile-modal-body{padding:0 32px 32px;gap:28px}.bot-profile-modal-user .bot-profile-modal-section{gap:18px}.bot-profile-modal-user .bot-profile-modal-section-title{color:#0f172a;font-size:18px;font-weight:700;line-height:24px}.bot-profile-modal-user-about{padding:20px;border:1px solid #e2e8f0;border-radius:16px;background:#f8fafc;color:#475569;font-size:16px;line-height:1.55}.bot-profile-modal-user-about.empty{color:#64748b}.bot-profile-modal-user-action-list{display:grid;gap:16px}.bot-profile-modal-user-action-card{width:100%;min-height:84px;display:flex;align-items:center;gap:16px;padding:18px 20px;border:1px solid #bfdbfe;border-radius:16px;background:#fff;color:#2563eb;font:inherit;text-align:left;cursor:pointer;transition:background-color .16s ease,border-color .16s ease,box-shadow .16s ease,transform .16s ease}.bot-profile-modal-user-action-card:hover:not(:disabled),.bot-profile-modal-user-action-card:focus-visible:not(:disabled){background:#f8faff;border-color:#93c5fd;box-shadow:0 12px 28px #2563eb1f;outline:none;transform:translateY(-1px)}.bot-profile-modal-user-action-card.danger{border-color:#fca5a5;background:snow;color:#dc2626}.bot-profile-modal-user-action-card.danger:hover:not(:disabled),.bot-profile-modal-user-action-card.danger:focus-visible:not(:disabled){background:#fef2f2;border-color:#f87171;box-shadow:0 12px 28px #dc26261a}.bot-profile-modal-user-action-card:disabled{cursor:not-allowed;opacity:.62}.bot-profile-modal-user-action-icon{width:48px;height:48px;flex:0 0 48px;display:inline-grid;place-items:center;border-radius:999px;background:#eef4ff;color:#2563eb}.bot-profile-modal-user-action-card.danger .bot-profile-modal-user-action-icon{background:#fee2e2;color:#dc2626}.bot-profile-modal-user-action-copy{min-width:0;flex:1 1 auto;display:grid;gap:4px}.bot-profile-modal-user-action-copy strong{color:#0f172a;font-size:16px;font-weight:700;line-height:22px}.bot-profile-modal-user-action-card.danger .bot-profile-modal-user-action-copy strong{color:#dc2626}.bot-profile-modal-user-action-copy span{color:#64748b;font-size:15px;line-height:22px}.bot-profile-modal-notification-menu{display:grid;gap:16px;padding:20px;border:1px solid #e2e8f0;border-radius:18px;background:#fff;box-shadow:0 18px 42px #0f172a1f}.bot-profile-modal-notification-menu-head{display:grid;gap:6px}.bot-profile-modal-notification-menu-head strong{color:#0f172a;font-size:18px;font-weight:700;line-height:24px}.bot-profile-modal-notification-menu-head span{color:#64748b;font-size:14px;line-height:20px}.bot-profile-modal-notification-options{display:grid;gap:8px}.bot-profile-modal-notification-option{width:100%;min-height:58px;display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 14px;border:1px solid #e2e8f0;border-radius:14px;background:#f8fafc;color:#2563eb;font:inherit;text-align:left;cursor:pointer}.bot-profile-modal-notification-option:hover,.bot-profile-modal-notification-option:focus-visible{background:#eef4ff;border-color:#bfdbfe;outline:none}.bot-profile-modal-notification-option span{display:grid;gap:2px}.bot-profile-modal-notification-option strong{color:#0f172a;font-size:14px;font-weight:700;line-height:20px}.bot-profile-modal-notification-option small{color:#64748b;font-size:13px;line-height:18px}.bot-profile-modal-user .bot-profile-modal-info-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.bot-profile-modal-user .bot-profile-modal-info-card{min-height:72px;padding:14px;border:1px solid #e2e8f0;border-radius:16px;background:#f8fafc}.bot-profile-modal-user .bot-profile-modal-info-label{color:#64748b;font-size:11px;font-weight:700;line-height:14px;letter-spacing:.04em}.bot-profile-modal-user .bot-profile-modal-info-value{color:#0f172a;font-size:14px;font-weight:700;line-height:20px}.bot-profile-modal-user .bot-profile-modal-user-actions{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.bot-profile-modal-user .bot-profile-modal-user-action{min-height:46px;display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:0 14px;border-radius:12px;border:1px solid #cbd5e1;background:#fff;color:#2563eb;box-shadow:none;font-size:14px;font-weight:700}.bot-profile-modal-user .bot-profile-modal-user-action:hover:not(:disabled){background:#f8faff;border-color:#94a3b8}.bot-profile-modal-user .bot-profile-modal-user-action-danger{border-color:#fecaca;background:#fff7f7;color:#ef4444}.bot-profile-modal-user .bot-profile-modal-user-action-danger:hover:not(:disabled){background:#fef2f2;border-color:#fca5a5}.bot-profile-modal-user .bot-profile-modal-toggle{min-height:74px;padding:16px;border:1px solid #e2e8f0;border-radius:16px;background:#f8fafc;gap:12px;transform:none}.bot-profile-modal-user .bot-profile-modal-toggle:hover,.bot-profile-modal-user .bot-profile-modal-toggle:focus-within{background:#f8fafc;border-color:#cbd5e1;transform:none}.bot-profile-modal-user .bot-profile-modal-toggle input{width:18px;height:18px;accent-color:#2563eb}.bot-profile-modal-user .bot-profile-modal-toggle-icon{width:36px;height:36px;flex:0 0 36px;display:inline-grid;place-items:center;border-radius:10px;background:#eef4ff;color:#2563eb}.bot-profile-modal-user .bot-profile-modal-toggle-copy{gap:4px}.bot-profile-modal-user .bot-profile-modal-toggle-copy strong{color:#0f172a;font-size:14px;font-weight:700;line-height:20px}.bot-profile-modal-user .bot-profile-modal-toggle-copy span{color:#64748b;font-size:13px;line-height:18px}.bot-profile-modal-user .bot-profile-modal-confirmation{border-color:#fecaca;border-radius:16px;background:#fff7f7}.bot-profile-modal-admin{width:min(520px,calc(100vw - 32px));max-height:min(640px,calc(100vh - 32px));border-radius:24px;border:1px solid rgba(15,23,42,.08);background:#fff;box-shadow:0 24px 70px #0f172a2e}.bot-profile-modal-admin .bot-profile-modal-header{padding:26px 28px 0;gap:14px}.bot-profile-modal-admin .bot-profile-modal-header-main{flex:1;gap:16px;align-items:center;min-width:0}.bot-profile-modal-admin .bot-profile-modal-avatar,.bot-profile-modal-admin .bot-profile-modal-avatar-button{width:72px;height:72px;flex-basis:72px}.bot-profile-modal-admin .bot-profile-modal-avatar{border:1px solid #e2e8f0;box-shadow:0 8px 18px #0f172a12}.bot-profile-modal-admin .bot-profile-modal-avatar-edit{right:1px;bottom:1px;width:18px;height:18px;border-width:2px;opacity:.9}.bot-profile-modal-admin .bot-profile-modal-header-copy{gap:4px;padding-top:0}.bot-profile-modal-admin .bot-profile-modal-title-row{gap:10px;flex-wrap:nowrap}.bot-profile-modal-admin .bot-profile-modal-inline-title{font-size:18px;line-height:24px;font-weight:700;color:#0f172a}.bot-profile-modal-admin .bot-profile-modal-inline-description{color:#64748b;font-size:14px;line-height:20px;margin-top:4px}.bot-profile-modal-admin .bot-profile-modal-mode{flex:0 0 auto;gap:6px;height:24px;margin-top:0;padding:0 9px;border:0;border-radius:8px;font-size:12px;font-weight:700;letter-spacing:0}.bot-profile-modal-admin .bot-profile-modal-mode-private{color:#2563eb;background:#eaf1ff}.bot-profile-modal-admin .bot-profile-modal-mode-public{color:#16a34a;background:#dcfce7}.bot-profile-modal-admin .bot-profile-modal-close{width:28px;height:28px;display:inline-grid;place-items:center;border-radius:8px;color:#475569}.bot-profile-modal-admin .bot-profile-modal-close:hover,.bot-profile-modal-admin .bot-profile-modal-close:focus-visible{background:#f1f5f9;color:#0f172a;transform:none}.bot-profile-modal-admin .bot-profile-modal-body{padding:0 28px 26px;gap:14px;overflow:auto}.bot-profile-modal-admin-availability{margin:20px 0 2px;color:#64748b;font-size:14px;line-height:20px;text-align:center}.bot-profile-modal-admin .bot-profile-modal-section{gap:10px}.bot-profile-modal-admin .bot-profile-modal-section-title{color:#0f172a;font-size:14px;font-weight:700;line-height:20px}.bot-profile-modal-admin .bot-profile-modal-link-section,.bot-profile-modal-admin .bot-profile-modal-news-section{padding:14px;border:1px solid #e2e8f0;border-radius:16px;background:#f8fafc}.bot-profile-modal-admin .bot-profile-modal-news-section{padding:16px}.bot-profile-modal-admin .bot-profile-modal-link-block{display:flex;min-height:48px;gap:10px;min-width:0;padding:0 10px 0 12px;border-color:#e2e8f0;border-radius:12px;background:#fff}.bot-profile-modal-link-icon,.bot-profile-modal-settings-icon{width:32px;height:32px;flex:0 0 32px;display:inline-grid;place-items:center;border-radius:10px;background:#f1f5ff;color:#2563eb}.bot-profile-modal-admin .bot-profile-modal-link-block code{flex:1 1 auto;min-width:0;padding:0;color:#2563eb;font-size:14px;font-weight:600;line-height:20px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.bot-profile-modal-admin .bot-profile-modal-copy-button{min-height:0;height:36px;display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:0 14px;border:1px solid #d7e3ff;border-radius:10px;background:#f8faff;color:#2563eb;font-size:13px;font-weight:600;white-space:nowrap}.bot-profile-modal-admin .bot-profile-modal-copy-button:hover:not(:disabled){background:#eef4ff}.bot-profile-modal-admin-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.bot-profile-modal-open-chat,.bot-profile-modal-admin .bot-profile-modal-console-link{height:46px;display:inline-flex;align-items:center;justify-content:center;gap:8px;border-radius:12px;font:inherit;font-size:14px;font-weight:700;cursor:pointer}.bot-profile-modal-open-chat{border:1px solid transparent;background:linear-gradient(180deg,#3b82f6,#2563eb);color:#fff;box-shadow:0 10px 18px #2563eb38}.bot-profile-modal-open-chat:hover{background:linear-gradient(180deg,#2563eb,#1d4ed8)}.bot-profile-modal-admin .bot-profile-modal-console-link{width:auto;justify-self:auto;padding:0 14px;border:1px solid #cbd5e1;background:#fff;color:#2563eb}.bot-profile-modal-admin .bot-profile-modal-console-link:hover{background:#f8faff;border-color:#94a3b8}.bot-profile-modal-admin .bot-profile-modal-settings-toggle{padding:0;border:0;background:transparent;cursor:default}.bot-profile-modal-admin .bot-profile-modal-settings-toggle:hover,.bot-profile-modal-admin .bot-profile-modal-settings-toggle:focus-visible{background:transparent;border-color:transparent}.bot-profile-modal-admin .bot-profile-modal-settings-icon{flex:0 0 36px;width:36px;height:36px;background:#eef4ff;color:#2563eb}.bot-profile-modal-admin .bot-profile-modal-settings-copy strong{color:#0f172a;font-size:14px;font-weight:700;line-height:20px}.bot-profile-modal-admin .bot-profile-modal-settings-copy span{color:#64748b;font-size:13px;line-height:18px}.bot-profile-modal-admin .bot-profile-modal-settings-copy{flex:1 1 auto}.bot-profile-modal-admin .bot-profile-modal-news-switch{width:58px;height:32px}.bot-profile-modal-admin .bot-profile-modal-switch-track{background:#cbd5e1}.bot-profile-modal-admin .bot-profile-modal-switch-label{position:absolute;left:9px;top:50%;transform:translateY(-50%);color:#fff;font-size:11px;font-weight:700;line-height:1;z-index:1}.bot-profile-modal-admin .bot-profile-modal-switch input:not(:checked)+.bot-profile-modal-switch-track .bot-profile-modal-switch-label{left:auto;right:8px;color:#fff}.bot-profile-modal-admin .bot-profile-modal-switch input:checked+.bot-profile-modal-switch-track{background:#2563eb}.bot-profile-modal-admin .bot-profile-modal-switch-thumb{top:3px;left:29px;width:26px;height:26px}.bot-profile-modal-admin .bot-profile-modal-switch input:not(:checked)+.bot-profile-modal-switch-track .bot-profile-modal-switch-thumb{left:3px;transform:none}.bot-profile-modal-admin .bot-profile-modal-switch input:checked+.bot-profile-modal-switch-track .bot-profile-modal-switch-thumb{transform:none}.bot-profile-modal-admin-footer{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:0;color:#64748b;font-size:12px;line-height:16px}.bot-profile-modal-admin-footer span{display:inline-flex;align-items:center;gap:5px}.bot-profile-modal-svg-icon{flex:0 0 auto;display:block}.bot-profile-modal-admin .bot-profile-modal-inline-title .bot-profile-modal-edit-glyph,.bot-profile-modal-admin .bot-profile-modal-inline-description .bot-profile-modal-edit-glyph{width:14px;height:14px;background:transparent;color:#64748b;font-size:.7rem;opacity:0}.bot-profile-modal-admin .bot-profile-modal-inline-title:hover .bot-profile-modal-edit-glyph,.bot-profile-modal-admin .bot-profile-modal-inline-title:focus-visible .bot-profile-modal-edit-glyph,.bot-profile-modal-admin .bot-profile-modal-inline-description:hover .bot-profile-modal-edit-glyph,.bot-profile-modal-admin .bot-profile-modal-inline-description:focus-visible .bot-profile-modal-edit-glyph{opacity:.75}.bot-profile-modal-domain-input{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:0;border:1px solid var(--border);border-radius:10px;overflow:hidden;background:var(--bg-secondary)}.bot-profile-modal-domain-prefix{padding:10px 12px;color:var(--text-secondary);font-size:.8125rem;white-space:nowrap;border-right:1px solid var(--border)}.bot-profile-modal-domain-input input{border:0;border-radius:0;background:transparent;min-height:42px}.bot-profile-modal-field-hint{color:var(--text-secondary);font-size:.75rem;line-height:1.35}.bot-profile-modal-disabled-card{width:100%;display:grid;gap:4px;padding:12px;border:1px solid var(--border);border-radius:12px;background:var(--bg-secondary);text-align:left;cursor:not-allowed;opacity:.75}.bot-profile-modal-disabled-card strong{color:var(--text-primary);font-size:.875rem}.bot-profile-modal-disabled-card span{color:var(--text-secondary);font-size:.8125rem}.bot-profile-modal-avatar-editor{display:grid;justify-items:center;gap:10px;padding:8px 0 4px}.bot-profile-modal-avatar-editor-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:8px}.bot-profile-modal-field{display:grid;gap:6px}.bot-profile-modal-field>span{color:var(--text-secondary);font-size:.8125rem;line-height:1.2}.bot-profile-modal-field input,.bot-profile-modal-field textarea{width:100%;border:1px solid var(--border);border-radius:10px;background:var(--bg-secondary);color:var(--text-primary);padding:10px 12px;font:inherit;transition:border-color .16s ease,box-shadow .16s ease,background-color .16s ease}.bot-profile-modal-field input{min-height:42px}.bot-profile-modal-field textarea{min-height:92px;resize:vertical}.bot-profile-modal-field input:focus,.bot-profile-modal-field textarea:focus{outline:none;border-color:var(--border-accent);box-shadow:0 0 0 3px color-mix(in srgb,var(--primary) 16%,transparent);background:var(--bg-surface)}.bot-profile-modal-status-row,.bot-profile-modal-skill-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 12px;border-radius:8px;background:var(--bg-secondary)}.bot-profile-modal-status-label,.bot-profile-modal-skill-name{min-width:0;color:var(--text-secondary);font-size:.8125rem;line-height:1.35}.bot-profile-modal-skill-name{color:var(--text-primary)}.bot-profile-modal-status-badge{display:inline-flex;align-items:center;justify-content:center;padding:4px 8px;border-radius:999px;font-size:.75rem;line-height:1;font-weight:600;white-space:nowrap}.bot-profile-modal-status-badge.active{background:color-mix(in srgb,var(--success) 15%,transparent);color:var(--success)}.bot-profile-modal-status-badge.inactive{background:color-mix(in srgb,var(--text-secondary) 10%,transparent);color:var(--text-secondary)}.bot-profile-modal-block-button{width:100%}.bot-profile-modal-edit-form{display:grid;gap:12px}.bot-profile-modal-toggle{width:100%;display:flex;align-items:center;gap:12px;padding:12px;border:1px solid var(--border);border-radius:12px;background:var(--bg-secondary);cursor:pointer;text-align:left;transition:transform .16s ease,background-color .16s ease,border-color .16s ease}.bot-profile-modal-toggle:hover,.bot-profile-modal-toggle:focus-visible{background:color-mix(in srgb,var(--bg-secondary) 88%,var(--primary) 12%);border-color:var(--border-accent);transform:translateY(-1px)}.bot-profile-modal-toggle input{width:18px;height:18px;flex:0 0 auto}.bot-profile-modal-toggle-copy{display:grid;gap:4px}.bot-profile-modal-toggle-copy strong{color:var(--text-primary);font-size:.875rem;line-height:1.25}.bot-profile-modal-toggle-copy span{color:var(--text-secondary);font-size:.8125rem;line-height:1.45}.bot-profile-modal-confirmation{display:grid;gap:10px;padding:12px;border:1px solid color-mix(in srgb,var(--danger-border) 70%,transparent);border-radius:12px;background:color-mix(in srgb,var(--danger-bg) 84%,transparent)}.bot-profile-modal-confirmation strong{color:var(--danger-text);font-size:.875rem;line-height:1.25}.bot-profile-modal-confirmation p{margin:0;color:var(--text-secondary);font-size:.8125rem;line-height:1.45}.bot-profile-modal-fallback{display:grid;gap:6px;padding:12px;border:1px dashed var(--border-accent);border-radius:12px;background:var(--bg-secondary)}.bot-profile-modal-fallback strong{color:var(--text-primary);font-size:.875rem}.bot-profile-modal-fallback code{white-space:normal;word-break:break-word}@keyframes bot-profile-modal-backdrop-in{0%{opacity:0}to{opacity:1}}@keyframes bot-profile-modal-backdrop-out{0%{opacity:1}to{opacity:0}}@keyframes bot-profile-modal-in{0%{opacity:0;transform:scale(.95) translateY(10px)}to{opacity:1;transform:scale(1) translateY(0)}}@keyframes bot-profile-modal-out{0%{opacity:1;transform:scale(1) translateY(0)}to{opacity:0;transform:scale(.95) translateY(10px)}}@keyframes bot-profile-modal-in-mobile{0%{opacity:0;transform:translateY(100%)}to{opacity:1;transform:translateY(0)}}@keyframes bot-profile-modal-out-mobile{0%{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(100%)}}@media (max-width: 768px){.bot-profile-modal-backdrop{align-items:flex-end;padding:16px}.bot-profile-modal{width:100%;max-height:85vh;border-radius:16px 16px 0 0;animation-name:bot-profile-modal-in-mobile}.bot-profile-modal.closing{animation-name:bot-profile-modal-out-mobile}.bot-profile-modal-header,.bot-profile-modal-body{padding-left:16px;padding-right:16px}.bot-profile-modal-inline-grid{grid-template-columns:1fr}.bot-profile-modal-info-grid,.bot-profile-modal-stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.bot-profile-modal-domain-row{flex-direction:column;align-items:flex-start}.bot-profile-modal-domain-row code{text-align:left}.bot-profile-modal-domain-input{grid-template-columns:1fr}.bot-profile-modal-domain-prefix{border-right:0;border-bottom:1px solid var(--border)}.bot-profile-modal-user{width:calc(100vw - 24px);max-height:calc(100vh - 24px);border-radius:22px}.bot-profile-modal-user .bot-profile-modal-header{padding:20px 20px 18px;gap:10px}.bot-profile-modal-user .bot-profile-modal-body{padding:0 20px 20px;gap:22px}.bot-profile-modal-user .bot-profile-modal-header-main{gap:12px}.bot-profile-modal-user .bot-profile-modal-avatar{width:64px;height:64px;flex-basis:64px}.bot-profile-modal-user .bot-profile-modal-title-row{flex-wrap:wrap}.bot-profile-modal-user .bot-profile-modal-inline-title{font-size:20px;line-height:25px}.bot-profile-modal-user .bot-profile-modal-inline-description,.bot-profile-modal-user .bot-profile-modal-description{font-size:15px;line-height:21px}.bot-profile-modal-user .bot-profile-modal-section{gap:14px}.bot-profile-modal-user-about{padding:18px;font-size:15px}.bot-profile-modal-user-action-card{min-height:78px;padding:16px}.bot-profile-modal-user-action-icon{width:44px;height:44px;flex-basis:44px}.bot-profile-modal-notification-menu{padding:18px}.bot-profile-modal-admin{width:calc(100vw - 24px);max-height:calc(100vh - 24px);border-radius:20px}.bot-profile-modal-admin .bot-profile-modal-header{padding:18px 18px 0;gap:10px}.bot-profile-modal-admin .bot-profile-modal-body{padding:0 18px 18px;gap:12px}.bot-profile-modal-admin .bot-profile-modal-header-main{gap:12px}.bot-profile-modal-admin .bot-profile-modal-avatar,.bot-profile-modal-admin .bot-profile-modal-avatar-button{width:64px;height:64px;flex-basis:64px}.bot-profile-modal-admin .bot-profile-modal-title-row{flex-wrap:wrap}.bot-profile-modal-admin .bot-profile-modal-inline-title{font-size:1rem}.bot-profile-modal-admin .bot-profile-modal-admin-actions{grid-template-columns:1fr}.bot-profile-modal-admin .bot-profile-modal-link-block{display:flex}.bot-profile-modal-admin .bot-profile-modal-copy-button{width:auto;padding:0 10px}.bot-profile-modal-admin .bot-profile-modal-news-section{padding:12px}.bot-profile-modal-admin .bot-profile-modal-settings-toggle{align-items:center}}.notification-bell-button{position:relative;width:40px;height:40px;display:inline-grid;place-items:center;border:1px solid var(--border);border-radius:14px;background:var(--bg-surface);color:var(--text-secondary);box-shadow:var(--shadow-sm);cursor:pointer;transition:background-color .16s ease,border-color .16s ease,color .16s ease,transform .16s ease,box-shadow .16s ease}.notification-bell-button:hover,.notification-bell-button.active{background:var(--hover);color:var(--text-primary);border-color:var(--border-accent);box-shadow:var(--shadow-md)}.notification-bell-button svg{width:18px;height:18px}.notification-bell-badge{position:absolute;top:-6px;right:-6px;min-width:18px;height:18px;padding:0 5px;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;background:var(--error);color:#fff;border:2px solid var(--bg-surface);font-size:.68rem;font-weight:var(--fw-semibold);line-height:1}.notification-viewport{position:fixed;z-index:110;display:grid;gap:10px;width:min(380px,calc(100vw - 32px));pointer-events:none}.notification-viewport.position-bottom-right{right:16px;bottom:16px}.notification-viewport.position-top-right{right:16px;top:16px}.notification-viewport.position-bottom-left{left:16px;bottom:16px}.notification-viewport.position-top-left{left:16px;top:16px}.notification-toast{pointer-events:auto;display:flex;align-items:stretch;gap:8px;padding:10px;border-radius:18px;border:1px solid var(--border);background:var(--bg-surface);background:color-mix(in srgb,var(--bg-surface) 94%,transparent);box-shadow:var(--shadow-lg);-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);transform-origin:bottom right;animation:notification-toast-enter .18s ease-out;transition:border-color .16s ease,background-color .16s ease,transform .16s ease,opacity .16s ease}.notification-toast[data-tone=success]{border-color:#16a34a3d}.notification-toast[data-tone=warning]{border-color:#d977063d}.notification-toast[data-tone=error]{border-color:#dc262647}.notification-viewport.position-top-right .notification-toast,.notification-viewport.position-top-left .notification-toast{transform-origin:top right}.notification-viewport.position-top-left .notification-toast{transform-origin:top left}.notification-toast[data-source=public-bot]{border-color:var(--selected-border)}.notification-toast.exiting{opacity:0;transform:translateY(10px) scale(.98)}.notification-toast-main{flex:1;min-width:0;display:flex;align-items:flex-start;gap:10px;border:none;background:transparent;padding:0;text-align:left;color:inherit;font:inherit;cursor:pointer}.notification-toast-avatar{width:36px;height:36px;flex:0 0 36px}.notification-toast-avatar-label{display:none}.notification-toast-copy{min-width:0;display:grid;gap:6px;padding-top:1px}.notification-toast-head{display:flex;align-items:center;justify-content:space-between;gap:12px;color:var(--text-primary)}.notification-toast-head strong{font-size:.96rem;font-weight:var(--fw-semibold)}.notification-toast-head span{flex:0 0 auto;color:var(--text-muted);font-size:.8rem}.notification-toast-meta{display:flex;flex-wrap:wrap;align-items:center;gap:8px}.notification-toast-tone,.notification-toast-source{display:inline-flex;align-items:center;min-height:20px;padding:0 8px;border-radius:999px;background:var(--bg-muted);color:var(--text-secondary);font-size:.72rem;font-weight:var(--fw-medium);letter-spacing:.01em}.notification-toast-copy p{margin:0;color:var(--text-secondary);font-size:.9rem;line-height:1.45;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3}.notification-toast-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:2px}.notification-toast-action{border:1px solid var(--border);border-radius:11px;background:var(--control-bg);color:var(--text-primary);font:inherit;font-size:.84rem;font-weight:var(--fw-medium);padding:8px 11px;cursor:pointer;transition:background-color .16s ease,border-color .16s ease,color .16s ease,transform .16s ease}.notification-toast-action.primary{background:var(--primary);border-color:var(--primary);color:#fff}.notification-toast-action:hover{background:var(--hover);transform:translateY(-1px)}.notification-toast-action.primary:hover{background:var(--primary-hover);border-color:var(--primary-hover)}.notification-toast-chat-title,.notification-panel-chat-title{margin:0;color:var(--text-muted);font-size:.8rem;line-height:1.35}.notification-toast-close{flex:0 0 auto;width:30px;height:30px;border:1px solid var(--border);border-radius:10px;background:var(--control-bg);color:var(--text-secondary);font:inherit;cursor:pointer;transition:background-color .16s ease,border-color .16s ease,color .16s ease}.notification-toast-close:hover{background:var(--hover);color:var(--text-primary)}.notification-permission-prompt{position:fixed;left:16px;bottom:16px;z-index:115;width:min(420px,calc(100vw - 32px));padding:14px;border-radius:20px;border:1px solid var(--border);background:var(--menu-bg);box-shadow:var(--menu-shadow);-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);display:grid;gap:12px;animation:notification-prompt-enter .18s ease-out}.notification-permission-prompt-copy{display:grid;gap:4px}.notification-permission-prompt-copy strong{font-size:.96rem;font-weight:var(--fw-semibold);color:var(--text-primary)}.notification-permission-prompt-copy p{margin:0;color:var(--text-secondary);font-size:.88rem;line-height:1.45}.notification-permission-prompt-actions{display:flex;flex-wrap:wrap;gap:8px}.notification-permission-prompt-enable,.notification-permission-prompt-sound,.notification-permission-prompt-dismiss{border:1px solid var(--border);border-radius:12px;background:var(--control-bg);color:var(--text-primary);font:inherit;cursor:pointer;transition:background-color .16s ease,border-color .16s ease,color .16s ease}.notification-permission-prompt-enable,.notification-permission-prompt-sound{padding:9px 12px;font-weight:var(--fw-medium)}.notification-permission-prompt-dismiss{padding:9px 12px;color:var(--text-secondary)}.notification-permission-prompt-enable:hover,.notification-permission-prompt-sound:hover,.notification-permission-prompt-dismiss:hover{background:var(--hover);color:var(--text-primary)}.notification-panel-shell{position:fixed;right:16px;bottom:72px;z-index:120;width:min(420px,calc(100vw - 32px));max-width:calc(100vw - 32px);overflow:hidden}.notification-panel{display:grid;gap:12px;padding:14px;border-radius:22px;border:1px solid var(--border);background:var(--menu-bg);box-shadow:var(--menu-shadow);-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);overflow:hidden;animation:notification-panel-enter .18s ease-out}.notification-panel-header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.notification-panel-kicker{margin:0;color:var(--text-muted);font-size:.76rem;font-weight:var(--fw-semibold);letter-spacing:.08em;text-transform:uppercase}.notification-panel-header h2{margin:2px 0 0;font-size:1.05rem;line-height:1.2}.notification-panel-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end;min-width:0}.notification-panel-clear,.notification-panel-sound-toggle,.notification-panel-close{border:1px solid var(--border);border-radius:12px;background:var(--control-bg);color:var(--text-primary);font:inherit;cursor:pointer;transition:background-color .16s ease,border-color .16s ease,color .16s ease}.notification-panel-clear,.notification-panel-sound-toggle{padding:9px 12px;font-size:.88rem;font-weight:var(--fw-medium)}.notification-panel-close{width:34px;height:34px;display:grid;place-items:center;font-size:1.2rem;line-height:1}.notification-panel-sound-toggle:hover,.notification-panel-clear:hover,.notification-panel-close:hover{background:var(--hover)}.notification-panel-clear:disabled{opacity:.5;cursor:default}.notification-panel-list{display:grid;gap:8px;max-height:min(54vh,520px);overflow-y:auto;overflow-x:hidden;padding-right:2px}.notification-panel-empty{padding:12px;border-radius:18px;border:1px dashed var(--border);background:var(--bg-subtle)}.notification-panel-empty strong{display:block;margin-bottom:6px}.notification-panel-empty p{margin:0;color:var(--text-secondary);font-size:.92rem;line-height:1.45}.notification-panel-item{width:100%;min-width:0;box-sizing:border-box;border:1px solid var(--border);border-radius:18px;background:var(--bg-surface);color:var(--text-primary);padding:12px;display:flex;align-items:flex-start;gap:10px;text-align:left;cursor:pointer;box-shadow:var(--shadow-sm);transition:transform .14s ease,border-color .14s ease,background-color .14s ease,box-shadow .14s ease}.notification-panel-item:hover{transform:translateY(-1px);border-color:var(--border-accent);box-shadow:var(--shadow-md)}.notification-panel-item.unread{background:var(--selected-bg);border-color:var(--selected-border)}.notification-panel-avatar{width:34px;height:34px;flex:0 0 34px}.notification-panel-avatar-label{display:none}.notification-panel-copy{min-width:0;flex:1;display:grid;gap:4px}.notification-panel-row{display:flex;align-items:center;justify-content:space-between;gap:10px;min-width:0}.notification-panel-row strong{min-width:0;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.95rem}.notification-panel-row span{color:var(--text-muted);font-size:.8rem;flex:0 0 auto}.notification-panel-copy p{margin:0;color:var(--text-secondary);font-size:.88rem;line-height:1.45;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow-wrap:anywhere}.notification-panel-dot{width:10px;height:10px;margin-top:4px;border-radius:999px;background:var(--primary);box-shadow:0 0 0 3px #4f7df324}@keyframes notification-toast-enter{0%{opacity:0;transform:translateY(14px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}@keyframes notification-panel-enter{0%{opacity:0;transform:translateY(12px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}@keyframes notification-prompt-enter{0%{opacity:0;transform:translateY(12px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}@media (max-width: 720px){.notification-viewport{right:10px;left:10px;bottom:10px;width:auto}.notification-panel-shell{right:10px;left:10px;bottom:68px;width:auto}.notification-panel{padding:12px;border-radius:18px}.notification-panel-list{max-height:min(58vh,500px)}.notification-toast{padding:9px}.notification-toast-head{align-items:flex-start;flex-direction:column;gap:4px}.notification-permission-prompt{left:10px;right:10px;bottom:10px;width:auto}}.auth-shell{min-height:100vh;display:grid;place-items:center;padding:24px}.auth-card,.hero,.panel{background:var(--surface-main);border:1px solid var(--border);border-radius:28px;box-shadow:var(--shadow-lg)}.auth-card{width:min(100%,460px);padding:32px}.auth-card-register{width:min(100%,980px);display:grid;grid-template-columns:minmax(0,1.1fr) minmax(320px,420px);gap:28px;overflow:hidden;padding:0}.auth-card-side{position:relative;padding:40px 36px;background:var(--auth-side-bg)}.auth-card-side-login{background:var(--auth-side-login-bg)}.auth-card-side:after{content:"";position:absolute;right:-50px;bottom:-50px;width:240px;height:240px;border-radius:30% 70% 55% 45%/43% 47% 53% 57%;background:var(--auth-side-blob-bg)}.auth-card-form{padding:36px 32px;background:var(--surface-soft)}.auth-form-header{margin-bottom:24px}.auth-form-note{margin:0;color:var(--text-soft)}.auth-feature-list{display:grid;gap:14px;margin-top:28px}.auth-feature-item{display:grid;gap:4px;padding:14px 16px;border-radius:18px;background:var(--surface-soft);border:1px solid var(--border-soft)}.auth-feature-item strong{font-size:.98rem}.auth-feature-item span{color:var(--text-soft);font-size:.95rem;line-height:1.45}.hero{padding:32px}.panel{margin-top:20px;padding:24px 32px}.panel-compact{margin-top:24px}.eyebrow{margin:0 0 12px;color:var(--accent-main);font-weight:700;text-transform:uppercase;letter-spacing:.12em;font-size:.8rem}h1,h2,p{margin-top:0}h1{font-size:clamp(2.2rem,4vw,4.4rem);line-height:.95;margin-bottom:16px}.lead{font-size:1.1rem;max-width:640px;color:var(--text-soft)}.auth-title{margin-bottom:12px;font-size:clamp(2rem,4vw,3rem);line-height:.95}.auth-copy{margin-bottom:24px;color:var(--text-soft)}.auth-form{display:grid;gap:16px}.auth-disabled-note{margin:16px 0 0;color:var(--text-soft);font-size:.95rem;line-height:1.45}.auth-hero-shell{min-height:100vh;padding:28px}.auth-hero-panel{min-height:calc(100vh - 56px);display:grid;grid-template-columns:minmax(0,1.45fr) minmax(340px,.92fr);gap:24px;align-items:stretch}.auth-hero-copy,.auth-glass-card{position:relative;overflow:hidden;border-radius:28px;border:1px solid var(--border);box-shadow:var(--shadow-lg)}.auth-hero-copy{display:grid;align-content:start;gap:26px;padding:42px;background:var(--auth-hero-bg)}.auth-hero-copy:after{content:"";position:absolute;top:0;right:0;bottom:0;left:0;background:linear-gradient(var(--auth-gridline) 1px,transparent 1px) 0 0 / 100% 34px,linear-gradient(90deg,var(--auth-gridline) 1px,transparent 1px) 0 0 / 34px 100%;opacity:.18;pointer-events:none}.auth-hero-copy-top,.auth-value-grid,.auth-product-preview,.auth-hero-actions{position:relative;z-index:1}.auth-hero-title{margin:0;max-width:760px;font-size:clamp(3.2rem,7vw,5.2rem);line-height:.92;letter-spacing:-.04em}.auth-hero-subtitle{margin:18px 0 0;max-width:720px;color:var(--text-secondary);font-size:1.1rem;line-height:1.55}.auth-hero-actions{display:flex;flex-wrap:wrap;gap:12px}.auth-hero-action{min-width:170px;min-height:52px;border-radius:16px}.auth-hero-demo-button{border:1px solid var(--border-strong);background:var(--bg-surface);color:var(--text-primary);box-shadow:var(--shadow-sm);font:inherit;font-weight:var(--fw-semibold);cursor:pointer;transition:background-color .16s ease,border-color .16s ease,box-shadow .16s ease}.auth-hero-demo-button:hover{border-color:var(--selected-border);background:var(--selected-bg);box-shadow:var(--shadow-md)}.auth-value-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.auth-value-card{display:grid;gap:8px;padding:18px;border-radius:20px;border:1px solid var(--border);background:var(--auth-value-card-bg)}.auth-value-card strong{font-size:1rem;line-height:1.3}.auth-value-card span{color:var(--text-soft);line-height:1.5;font-size:.95rem}.auth-product-preview{display:grid;gap:18px;padding:22px;border-radius:24px;border:1px solid var(--border);background:var(--auth-product-preview-bg)}.auth-product-preview-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-start}.auth-product-preview-head strong{display:block;font-size:1rem}.auth-product-preview-head p{margin:8px 0 0;max-width:560px;color:var(--text-soft);line-height:1.45}.auth-product-preview-pill{display:inline-flex;align-items:center;min-height:30px;padding:0 12px;border-radius:999px;background:#6f8a6324;border:1px solid rgba(126,143,121,.18);color:#c6d8c0;font-size:.8rem;font-weight:700;white-space:nowrap}.auth-product-chat-window{display:grid;gap:16px;padding:16px;border-radius:24px;background:var(--auth-product-window-bg);border:1px solid var(--border)}.auth-product-chat-header{display:flex;justify-content:space-between;gap:12px;align-items:center}.auth-product-chat-title{display:flex;align-items:center;gap:12px}.auth-product-chat-title strong{display:block;font-size:.98rem}.auth-product-chat-title span{color:var(--text-soft);font-size:.88rem}.auth-product-chat-mark{width:40px;height:40px;border-radius:14px;display:grid;place-items:center;background:linear-gradient(135deg,#7e8f79,#5e7455 45%,#445341);color:#f3f6f1;font-weight:800}.auth-product-chat-status{color:#b8d3bd;font-size:.84rem;font-weight:700}.auth-product-chat-feed{display:grid;gap:12px}.auth-preview-bubble{max-width:76%;display:grid;gap:6px;padding:14px 16px;border-radius:20px;border:1px solid var(--border);box-shadow:var(--shadow-sm)}.auth-preview-bubble.bot{background:var(--auth-preview-bot-bg);border-bottom-left-radius:8px}.auth-preview-bubble.user{justify-self:end;background:linear-gradient(135deg,#7b4d1f,#b7661d);color:#fff6ed;border:none;border-bottom-right-radius:8px}.auth-preview-bubble-author{font-size:.8rem;font-weight:700;color:#b8d3bd}.auth-preview-bubble.user .auth-preview-bubble-author{color:#fff6edc7}.auth-preview-bubble strong{font-size:1rem;line-height:1.45}.auth-preview-bubble-meta{color:var(--text-soft);font-size:.82rem}.auth-preview-bubble.user .auth-preview-bubble-meta{color:#fff6edb8}.auth-glass-card{display:grid;align-content:start;gap:18px;padding:28px;background:var(--auth-glass-bg)}.auth-glass-title{margin:0;font-size:clamp(1.9rem,3vw,2.6rem);line-height:1}.auth-glass-copy{margin:10px 0 0;color:var(--text-soft);line-height:1.5}.auth-switcher{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:6px;border-radius:18px;background:var(--auth-switcher-bg);border:1px solid var(--border)}.auth-switcher-button{min-height:44px;border:none;border-radius:14px;background:transparent;color:var(--text-soft);font:inherit;font-weight:700;cursor:pointer}.auth-switcher-button.active{background:var(--bg-surface);color:var(--text-primary);box-shadow:inset 0 0 0 1px var(--border-strong),var(--shadow-xs)}.auth-switcher-button:disabled{cursor:not-allowed;opacity:.45}.auth-landing-form{gap:14px}.auth-submit-button{min-height:52px}.auth-demo-link{margin-top:0;color:var(--accent-main)}.auth-demo-link:disabled,.auth-hero-action:disabled{cursor:not-allowed;opacity:.58}.auth-glass-footnote{margin:0;color:var(--text-soft);font-size:.92rem;line-height:1.5}.auth-version-line{margin:-4px 0 0;color:var(--text-faint);font-size:.82rem;text-align:center}.message{margin:0;padding:12px 14px;border-radius:14px;font-size:.95rem}.message.error{background:var(--message-error-bg);color:var(--message-error-text)}.message.success{background:var(--message-success-bg);color:var(--message-success-text)}.bot-avatar-shell{position:relative;display:grid;place-items:center;overflow:visible}.bot-avatar-core{position:absolute;top:0;right:0;bottom:0;left:0;border-radius:inherit;overflow:hidden;box-shadow:inset 0 0 0 1px var(--border)}.bot-avatar-indicator{position:absolute;right:2px;bottom:2px;width:10px;height:10px;border-radius:999px;background:var(--accent-bright);box-shadow:0 0 0 2px var(--bg-surface)}.bot-avatar-count{position:absolute;top:-5px;right:-5px;min-width:18px;height:18px;padding:0 5px;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;background:var(--error);color:#fff;border:2px solid var(--bg-surface);font-size:.68rem;font-weight:var(--fw-semibold);line-height:1;box-shadow:0 2px 8px #0000001f}.bot-avatar-image{width:100%;height:100%;object-fit:cover;display:block}.bot-avatar-label{position:relative;z-index:1;margin-top:auto;min-width:22px;min-height:16px;padding:1px 6px;border-radius:999px;background:#fffbf6f0;color:#8d4b17;font-size:.66rem;font-weight:800;line-height:1.1;letter-spacing:.06em;text-align:center;box-shadow:0 2px 6px #4a2f1a1f}.desktop-auth-shell{min-height:100vh;display:grid;place-items:center;padding:24px;background:linear-gradient(180deg,color-mix(in srgb,var(--bg-main) 92%,var(--primary) 8%) 0%,var(--bg-main) 100%)}.desktop-auth-container{width:min(100%,440px);display:grid;gap:20px;padding:34px;background:var(--surface-main);border:1px solid var(--border);border-radius:18px;box-shadow:var(--shadow-lg)}.desktop-auth-brand{width:48px;height:48px;display:grid;place-items:center;border-radius:14px;color:#fff;background:var(--primary);box-shadow:var(--shadow-sm)}.desktop-auth-brand span{font-size:1.1rem;font-weight:800}.desktop-auth-header{display:grid;gap:8px}.desktop-auth-title{font-size:1.65rem;font-weight:700;margin:0;color:var(--text-primary)}.desktop-auth-eyebrow{margin:0;color:var(--primary);font-size:.78rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase}.desktop-auth-subtitle{font-size:.95rem;line-height:1.45;color:var(--text-secondary);margin:0}.desktop-auth-error{padding:12px 16px;background:var(--message-error-bg);border:1px solid color-mix(in srgb,var(--message-error-text) 24%,transparent);border-radius:12px;color:var(--message-error-text);font-size:.95rem}.desktop-auth-success{padding:12px 16px;background:var(--message-success-bg);border:1px solid color-mix(in srgb,var(--message-success-text) 24%,transparent);border-radius:12px;color:var(--message-success-text);font-size:.95rem}.desktop-auth-switcher{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;padding:5px;border:1px solid var(--border);border-radius:14px;background:var(--bg-muted)}.desktop-auth-switcher button{min-height:40px;border:none;border-radius:10px;background:transparent;color:var(--text-secondary);font:inherit;font-weight:700;cursor:pointer}.desktop-auth-switcher button.active{background:var(--bg-surface);color:var(--text-primary);box-shadow:inset 0 0 0 1px var(--border-strong),var(--shadow-xs)}.desktop-auth-switcher button:disabled{cursor:not-allowed;opacity:.62}.desktop-auth-form{display:grid;gap:16px}.desktop-update-gate{display:grid;gap:16px;padding:16px;margin-bottom:20px;border-radius:16px;border:1px solid var(--tone-accent-border);background:var(--tone-accent-bg)}.desktop-update-gate-copy{display:grid;gap:8px}.desktop-update-label{color:var(--tone-accent-text);font-size:.78rem;font-weight:700;text-transform:uppercase}.desktop-update-gate strong{color:var(--text-primary);font-size:1rem}.desktop-update-gate p{margin:0;color:var(--text-secondary);font-size:.92rem;line-height:1.45}.desktop-update-actions{display:flex;gap:10px}.desktop-update-primary,.desktop-update-secondary{min-height:40px;border-radius:12px;padding:0 14px;font:inherit;font-size:.9rem;font-weight:700;cursor:pointer}.desktop-update-primary{border:1px solid transparent;background:var(--primary);color:#fff}.desktop-update-primary:hover:not(:disabled){background:var(--primary-hover)}.desktop-update-primary:disabled{cursor:wait;opacity:.68}.desktop-update-secondary{border:1px solid var(--border);background:var(--bg-surface);color:var(--text-primary)}.desktop-update-error{color:var(--message-error-text)!important}.desktop-auth-field{display:grid;gap:8px}.desktop-auth-field span{font-size:.9rem;font-weight:700;color:var(--text-primary)}.desktop-auth-field input{min-height:48px;padding:0 15px;border:1px solid var(--border);border-radius:12px;background:var(--input-bg);color:var(--text-primary);font:inherit;transition:border-color .2s,box-shadow .2s}.desktop-auth-field input:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 3px rgba(var(--accent-rgb),.1)}.desktop-auth-field input:disabled{opacity:.6;cursor:not-allowed}.desktop-auth-submit{min-height:50px;padding:0 18px;background:var(--primary);color:#fff;border:none;border-radius:12px;font:inherit;font-weight:800;cursor:pointer;transition:background .2s,transform .1s}.desktop-auth-submit:hover:not(:disabled){background:var(--primary-hover)}.desktop-auth-submit:active:not(:disabled){transform:scale(.98)}.desktop-auth-submit:disabled{opacity:.6;cursor:not-allowed}.desktop-auth-footer{padding-top:2px;border-top:1px solid var(--border);text-align:center}.desktop-auth-footer p{margin:0;font-size:.85rem;color:var(--text-muted)}.desktop-auth-note{margin:0;color:var(--text-secondary);font-size:.9rem;line-height:1.45;text-align:center}.workspace-shell{min-height:100vh;display:grid;grid-template-columns:300px minmax(0,1fr);gap:24px;padding:24px}.workspace-sidebar,.workspace-content{min-height:calc(100vh - 48px)}.workspace-sidebar{display:flex;flex-direction:column;gap:14px;padding:18px;border-radius:24px;background:var(--bg-surface);border:1px solid var(--border);box-shadow:var(--shadow-sm)}.workspace-content{display:flex;flex-direction:column;gap:18px}.workspace-topbar{display:flex;justify-content:space-between;gap:20px;align-items:center;padding:18px 22px;border-radius:24px;background:var(--bg-surface);border:1px solid var(--border);box-shadow:var(--shadow-sm)}.console-zone-shell .workspace-sidebar,.user-zone-shell .workspace-sidebar{background:var(--bg-surface)}.workspace-title{margin:0;font-size:clamp(1.55rem,3vw,2.35rem);line-height:1}.workspace-topbar-side{display:flex;gap:14px;align-items:center}.workspace-user{display:flex;gap:14px;align-items:center;padding:12px 14px;border-radius:18px;background:var(--bg-subtle);border:1px solid var(--border);box-shadow:var(--shadow-sm)}.workspace-user strong,.workspace-user span{display:block}.workspace-user span{margin-top:4px;color:var(--text-soft);font-size:.92rem}.workspace-body{min-height:0}.zone-intro-card{display:grid;gap:10px;padding:18px;border-radius:22px;border:1px solid var(--border);background:var(--bg-surface);box-shadow:var(--shadow-sm)}.zone-intro-title{margin:0;font-size:1.45rem;line-height:1.05}.zone-intro-action{margin-top:4px}.zone-nav-pills,.workspace-zone-switch{display:flex;flex-wrap:wrap;gap:8px}.zone-nav-pill{border:1px solid var(--border);border-radius:999px;padding:8px 12px;background:var(--bg-surface);color:var(--text-primary);font:inherit;font-weight:700;cursor:pointer}.zone-nav-pill.active,.active-zone-button{border-color:var(--border-accent);background:var(--selected-bg)}.console-nav-list{display:grid;gap:6px}.console-nav-link{width:100%;padding:9px 12px;border-radius:14px;border:1px solid var(--border);background:var(--bg-surface);color:var(--text-primary);box-shadow:var(--shadow-sm);text-align:left;font:inherit;font-weight:700;cursor:pointer}.console-nav-link.active{border-color:var(--border-accent);background:var(--selected-bg)}.queen-nav-card{display:flex;gap:14px;align-items:center;width:100%;padding:18px;border:1px solid var(--border);border-radius:22px;background:var(--bg-surface);box-shadow:var(--shadow-sm);text-align:left;cursor:pointer;transition:transform .14s ease,box-shadow .14s ease,border-color .14s ease}.queen-nav-card:hover,.sidebar-bot-item:hover,.quick-action-card:hover,.bot-card:hover{transform:translateY(-1px);box-shadow:var(--shadow-sm)}.queen-nav-card.active,.sidebar-bot-item.active{border-color:var(--border-accent);background:var(--selected-bg)}.queen-nav-mark{width:48px;height:48px;display:grid;place-items:center;border-radius:16px;background:var(--primary);color:#fff;font-weight:800;font-size:1.15rem;overflow:hidden}.queen-avatar{display:block;width:100%;height:100%;object-fit:cover}.queen-avatar-nav{transform:scale(1.12)}.queen-nav-card strong,.queen-nav-card span{display:block}.queen-nav-card span{margin-top:4px;color:var(--text-soft)}.sidebar-group{display:grid;gap:12px;min-height:0;flex:1;align-content:start}.sidebar-group-head h2{margin:0;font-size:1.05rem}.sidebar-bot-list,.sidebar-bot-skeleton{display:grid;gap:6px;align-content:start;grid-auto-rows:min-content}.sidebar-bot-group{display:grid;gap:8px}.sidebar-bot-item{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px;width:100%;min-height:62px;padding:8px;border-radius:16px;border:1px solid var(--border);background:var(--bg-surface);box-shadow:var(--shadow-sm);overflow:hidden}.sidebar-bot-nav{grid-template-columns:36px minmax(0,1fr) auto;gap:10px;padding:8px 10px;text-align:left;cursor:pointer;font:inherit}.sidebar-bot-main{display:grid;grid-template-columns:40px minmax(0,1fr);align-items:start;gap:12px;width:100%;min-height:56px;padding:4px 2px;border:none;background:transparent;text-align:left;cursor:pointer}.sidebar-bot-open{width:34px;height:34px;border:1px solid var(--border);border-radius:12px;background:var(--bg-subtle);color:var(--text-primary);box-shadow:var(--shadow-sm);font:inherit;font-weight:700;cursor:pointer}.sidebar-bot-open:disabled,.sidebar-chat-create:disabled{cursor:wait;opacity:.72}.sidebar-bot-main-nav{grid-template-columns:40px minmax(0,1fr) auto;gap:12px;padding:12px;text-align:left;cursor:pointer;font:inherit}.sidebar-bot-mark{width:36px;height:36px;display:grid;place-items:center;border-radius:12px;background:var(--primary);color:#fff;font-weight:800;font-size:.95rem;box-shadow:var(--shadow-sm)}.sidebar-bot-copy{min-width:0;display:grid;gap:4px}.sidebar-bot-copy strong,.sidebar-bot-copy span{display:block}.sidebar-bot-copy strong{overflow:hidden;text-overflow:ellipsis;white-space:normal;font-size:.9rem;line-height:1.15;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.sidebar-bot-title-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:center}.sidebar-bot-title-row time{color:var(--text-muted);font-size:.68rem;font-weight:600;white-space:nowrap}.sidebar-bot-copy span{color:var(--text-soft);font-size:.76rem;line-height:1.2;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sidebar-bot-mode{display:inline-flex;align-items:center;justify-content:center;min-height:20px;padding:2px 6px;border-radius:999px;font-size:.64rem;font-weight:700;text-transform:uppercase;letter-spacing:.04em;white-space:nowrap;width:fit-content;margin-top:0}.sidebar-bot-mode-private{background:var(--badge-private-bg);color:var(--badge-private-text)}.sidebar-bot-mode-public{background:var(--badge-public-bg);color:var(--badge-public-text)}.sidebar-bot-skeleton-item{min-height:62px;border-radius:16px;background:linear-gradient(110deg,var(--bg-subtle) 8%,var(--bg-surface) 18%,var(--bg-subtle) 33%),var(--bg-subtle);background-size:200% 100%;animation:shimmer 1.5s linear infinite;border:1px solid var(--border)}.sidebar-chat-stack{display:grid;gap:8px;margin-left:14px;padding:10px 10px 10px 14px;border-left:2px solid var(--border)}.sidebar-chat-tools{display:flex;align-items:center;justify-content:space-between;gap:10px;color:var(--text-soft);font-size:.8rem}.sidebar-chat-create{border:1px solid var(--border);border-radius:999px;padding:5px 10px;background:var(--bg-surface);color:var(--text-primary);box-shadow:var(--shadow-sm);font:inherit;font-size:.78rem;font-weight:700;cursor:pointer}.sidebar-chat-list{display:grid;gap:6px}.sidebar-chat-item{display:grid;gap:4px;width:100%;padding:10px 12px;border:1px solid var(--border);border-radius:14px;background:var(--bg-surface);text-align:left;cursor:pointer}.sidebar-chat-item strong,.sidebar-chat-item span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sidebar-chat-item strong{font-size:.88rem;line-height:1.2}.sidebar-chat-item span{color:var(--text-soft);font-size:.8rem}.sidebar-chat-item.active{border-color:var(--selected-border);background:var(--selected-bg);box-shadow:inset 0 0 0 1px var(--selected-border)}.sidebar-chat-empty{display:grid;gap:4px;padding:10px 12px;border-radius:14px;background:var(--bg-subtle);border:1px dashed var(--border)}.sidebar-chat-empty span{color:var(--text-soft);font-size:.82rem;line-height:1.35}.sidebar-empty,.sidebar-health{display:grid;gap:6px;padding:12px 14px;border-radius:16px;background:var(--bg-surface);border:1px solid var(--border);box-shadow:var(--shadow-sm)}.sidebar-empty span,.sidebar-health span{color:var(--text-soft);line-height:1.45}.product-section{display:grid;gap:18px}.queen-page{gap:12px}.queen-hero{display:flex;justify-content:space-between;gap:14px;align-items:center;padding:12px 14px;border-radius:18px;background:var(--bg-surface);border:1px solid var(--border-soft);box-shadow:var(--shadow-sm)}.queen-hero-main{display:flex;gap:14px;align-items:center;min-width:0}.queen-avatar-hero{width:48px;height:48px;flex:0 0 auto;border-radius:14px;border:1px solid var(--border);background:var(--bg-subtle);box-shadow:var(--shadow-sm)}.queen-title{margin-bottom:4px}.queen-hero .section-title{font-size:clamp(1.25rem,2.4vw,1.75rem)}.queen-hero .section-copy{margin-top:4px;max-width:680px;font-size:.9rem}.queen-hero .primary-button,.queen-action-card .primary-button{padding:10px 12px;border-radius:12px;font-size:.9rem}.queen-hero-meta{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:6px;color:var(--text-muted);font-size:.76rem;white-space:nowrap}.queen-hero-meta span{min-height:22px;display:inline-flex;align-items:center;padding:2px 8px;border-radius:999px;border:1px solid var(--border);background:var(--bg-subtle)}.queen-grid,.detail-grid{display:grid;gap:12px;grid-template-columns:minmax(0,1.4fr) minmax(320px,.9fr)}.queen-grid-dashboard{grid-template-columns:minmax(0,1fr) 220px}.queen-grid-empty{grid-template-columns:minmax(0,1fr)}.catalog-page{gap:20px}.catalog-hero,.catalog-section{padding:24px;border-radius:28px;background:var(--bg-surface);border:1px solid var(--border);box-shadow:var(--shadow-sm)}.catalog-hero{display:flex;justify-content:space-between;gap:18px;align-items:flex-start;background:var(--bg-surface)}.catalog-hero-copy{max-width:760px}.catalog-queen-card{display:flex;justify-content:space-between;gap:18px;align-items:center;padding:18px 20px;border-radius:22px;border:1px solid var(--border);background:var(--bg-surface);box-shadow:var(--shadow-sm)}.catalog-queen-main{display:flex;gap:16px;align-items:center}.catalog-queen-avatar{width:72px;height:72px;border-radius:22px;border:1px solid var(--border-soft);object-fit:cover;flex:0 0 auto}.catalog-queen-main strong{display:block;font-size:1.1rem;margin-bottom:6px}.catalog-queen-main p{margin:0;color:var(--text-soft);line-height:1.45}.catalog-bot-grid{display:grid;gap:12px}.catalog-bot-card{display:grid;gap:14px;padding:16px 18px;border-radius:22px;border:1px solid var(--border);background:var(--bg-surface);box-shadow:var(--shadow-sm)}.catalog-bot-head{display:grid;grid-template-columns:40px minmax(0,1fr);gap:12px;align-items:start}.catalog-bot-copy{display:grid;gap:6px;min-width:0}.catalog-bot-copy strong{font-size:1rem;line-height:1.2}.catalog-bot-copy span,.catalog-bot-meta{color:var(--text-soft)}.catalog-bot-meta{display:flex;flex-wrap:wrap;gap:8px 16px;font-size:.9rem}.catalog-bot-actions{display:flex;justify-content:flex-start;gap:10px;flex-wrap:wrap}.queen-side-column{display:grid;gap:10px;align-content:start}.queen-side-note{align-content:start}.queen-action-card{display:grid;gap:12px;padding:12px;background:var(--bg-subtle);border-style:dashed;box-shadow:none}.queen-action-card-copy{display:grid;grid-template-columns:28px minmax(0,1fr);gap:10px;align-items:start}.queen-action-card-copy h3{margin:0}.queen-action-card-icon{width:28px;height:28px;display:grid;place-items:center;border-radius:9px;border:1px solid var(--border-accent);background:var(--selected-bg);color:var(--primary);font-size:.95rem;font-weight:800;line-height:1}.queen-action-card .eyebrow{margin-bottom:2px}.queen-action-card .section-copy{font-size:.82rem;line-height:1.35}.detail-card,.queen-card{padding:14px;border-radius:18px;background:var(--surface-main);border:1px solid var(--border-soft);box-shadow:var(--shadow-sm)}.queen-list-card{display:grid;gap:10px}.bot-list-toolbar{display:grid;grid-template-columns:minmax(220px,1fr) auto minmax(170px,auto);gap:8px;align-items:center;padding:8px;border-radius:14px;background:var(--bg-subtle);border:1px solid var(--border-soft)}.bot-search-field{min-width:0;display:block}.bot-search-field span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}.bot-search-field input,.bot-sort-select{width:100%;min-height:32px;border:1px solid var(--border);border-radius:10px;background:var(--bg-surface);color:var(--text-primary);box-shadow:none;font:inherit;font-size:.86rem}.bot-search-field input,.bot-sort-select{padding:7px 10px}.bot-search-field input:focus,.bot-sort-select:focus{outline:none;border-color:var(--border-accent);box-shadow:var(--focus-shadow)}.bot-filter-row{display:flex;flex-wrap:wrap;gap:4px}.bot-toolbar-chip{min-height:30px;border:1px solid transparent;border-radius:999px;padding:5px 9px;background:transparent;color:var(--text-secondary);font:inherit;font-size:.78rem;font-weight:700;cursor:pointer}.bot-toolbar-chip:hover,.bot-toolbar-chip.active{background:var(--bg-surface);border-color:var(--border);color:var(--text-primary)}.queen-empty-state{min-height:360px;display:grid;align-content:center;justify-items:start;gap:12px;padding:30px;border-radius:24px;border:1px dashed var(--border);background:var(--bg-subtle)}.queen-empty-state h3{margin:0;font-size:clamp(1.5rem,3vw,2.1rem);line-height:1.05}.queen-empty-state p:last-of-type{margin:0;max-width:620px;color:var(--text-secondary);line-height:1.55;font-size:1rem}.queen-empty-actions{margin-top:6px}.queen-create-sheet{position:fixed;top:0;right:0;bottom:0;left:0;z-index:30;pointer-events:none}.queen-create-sheet.open{pointer-events:auto}.queen-create-sheet-backdrop{position:absolute;top:0;right:0;bottom:0;left:0;border:none;background:#05080c75;opacity:0;transition:opacity .18s ease}.queen-create-sheet.open .queen-create-sheet-backdrop{opacity:1}.queen-create-sheet-panel{position:absolute;top:12px;right:12px;bottom:12px;width:min(100%,520px);display:grid;align-content:start;gap:18px;padding:24px;border-left:1px solid var(--border);border-radius:30px;background:var(--bg-surface);box-shadow:var(--shadow-sm);transform:translate(calc(100% + 24px));transition:transform .22s ease}.queen-create-sheet.open .queen-create-sheet-panel{transform:translate(0)}.queen-create-sheet-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-start}.queen-create-sheet-head h3{margin:0;font-size:1.55rem;line-height:1.05}.queen-create-sheet-close{width:38px;height:38px;flex:0 0 auto;border:1px solid var(--border);border-radius:999px;background:var(--bg-surface);color:var(--text-primary);box-shadow:var(--shadow-sm);font:inherit;font-size:1.2rem;line-height:1;cursor:pointer}.queen-create-form{gap:18px}.queen-create-form-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:4px}.section-toolbar,.section-toolbar-compact{display:flex;justify-content:space-between;gap:10px;align-items:flex-start}.section-toolbar-compact h3{margin:0;font-size:1rem}.section-toolbar-compact .section-copy{margin-top:4px;font-size:.86rem}.section-title{margin:0;font-size:clamp(1.7rem,3vw,2.5rem);line-height:1}.bot-grid,.quick-actions,.linked-chat-list,.events-feed{display:grid;gap:6px}.bot-create-row{width:100%;display:grid;grid-template-columns:28px minmax(0,1fr);gap:10px;align-items:center;padding:9px 10px;border:1px dashed var(--border);border-radius:14px;background:var(--bg-subtle);color:var(--text-primary);font:inherit;text-align:left;cursor:pointer}.bot-create-row:hover{border-color:var(--border-accent);background:var(--selected-bg)}.bot-create-row-icon{width:28px;height:28px;display:grid;place-items:center;border-radius:9px;background:var(--bg-surface);border:1px solid var(--border);color:var(--primary);font-weight:800}.bot-create-row strong,.bot-create-row small{display:block}.bot-create-row strong{font-size:.9rem}.bot-create-row small{margin-top:2px;color:var(--text-muted);font-size:.78rem}.bot-list-empty{display:grid;gap:3px;padding:12px;border-radius:14px;color:var(--text-secondary);background:var(--bg-subtle)}.bot-list-empty span{color:var(--text-muted);font-size:.84rem}.bot-card,.quick-action-card,.linked-chat-item{width:100%;padding:10px;border-radius:14px;border:1px solid transparent;background:var(--bg-surface);box-shadow:none;text-align:left;cursor:pointer}.bot-card{transition:background-color .14s ease,border-color .14s ease,box-shadow .14s ease}.bot-card:hover,.bot-card:focus-within{background:var(--bg-subtle);border-color:var(--border);box-shadow:var(--shadow-sm)}.bot-compact-row{position:relative;display:grid;grid-template-columns:minmax(0,1fr) minmax(260px,auto) 32px;gap:10px;align-items:center;cursor:default}.bot-compact-row:has(.bot-row-menu[open]),.bot-compact-row:has(.bot-row-menu:focus-within){z-index:20}.bot-row-main{min-width:0;display:grid;grid-template-columns:minmax(0,1fr) minmax(96px,.28fr);gap:14px;align-items:center;padding:0;border:none;background:transparent;color:inherit;font:inherit;text-align:left;cursor:pointer}.bot-card-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}.bot-card-identity{display:grid;grid-template-columns:32px minmax(0,1fr);gap:10px;align-items:center;min-width:0}.bot-card-avatar{width:32px;height:32px;border-radius:10px}.bot-card-avatar-text{font-size:.72rem}.bot-card-head-counts{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px}.bot-row-copy{display:grid;gap:3px;min-width:0}.bot-row-title{display:flex;min-width:0;align-items:center;gap:8px}.bot-card-head>div{min-width:0}.bot-card-head strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:1.25;color:var(--text-primary)}.bot-card-description{margin:0;color:var(--text-secondary);line-height:1.25;font-size:.82rem;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden}.bot-status-dot{display:inline-flex;align-items:center;gap:5px;color:var(--text-muted);font-size:.72rem;font-weight:700;white-space:nowrap}.bot-status-dot:before{content:"";width:7px;height:7px;border-radius:999px;background:var(--text-muted)}.bot-status-active:before{background:var(--tone-success-text)}.bot-status-inactive:before{background:var(--text-muted)}.bot-row-domain{min-width:0;color:var(--text-muted);font-size:.78rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.bot-card-meta{display:flex;flex-wrap:wrap;gap:6px 14px;color:var(--text-muted);font-size:.84rem;min-width:0}.bot-card-actions{margin-top:10px}.bot-card-count{display:inline-flex;align-items:center;justify-content:center;min-height:22px;padding:2px 8px;border-radius:999px;background:var(--chip-bg);border:1px solid var(--border);color:var(--text-secondary);font-size:.72rem;font-weight:700;white-space:nowrap}.bot-row-meta{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:6px 8px}.bot-activity-meta{display:inline-flex;align-items:center;min-height:22px;color:var(--text-muted);font-size:.76rem;white-space:nowrap}.bot-row-title .bot-status-muted{min-height:18px;padding:1px 7px;font-size:.66rem;letter-spacing:0;text-transform:none;opacity:.82}.bot-row-menu{position:relative;justify-self:end}.bot-row-menu-trigger{width:28px;height:28px;display:grid;place-items:center;border:none;border-radius:10px;background:transparent;color:var(--text-muted);font:inherit;cursor:pointer;list-style:none;font-weight:800;line-height:1}.bot-row-menu-trigger::-webkit-details-marker{display:none}.bot-row-menu-trigger:hover,.bot-row-menu:focus-within .bot-row-menu-trigger,.bot-row-menu[open] .bot-row-menu-trigger{background:var(--bg-surface);color:var(--text-primary);box-shadow:var(--shadow-sm)}.bot-row-menu-panel{position:absolute;z-index:30;top:100%;right:0;min-width:172px;display:grid;gap:2px;padding:6px;border-radius:12px;border:1px solid var(--border);background:var(--bg-surface);box-shadow:var(--shadow-md)}.bot-row-menu-panel button{width:100%;border:none;border-radius:8px;padding:8px 10px;background:transparent;color:var(--text-primary);font:inherit;font-size:.86rem;text-align:left;cursor:pointer}.bot-row-menu-panel button:hover{background:var(--bg-subtle)}.bot-row-menu-panel button:disabled{cursor:wait;opacity:.65}.bot-row-menu-panel .danger-menu-item{color:var(--danger-text)}.tab-row{display:flex;flex-wrap:wrap;gap:8px}.tab-row-with-back{align-items:center}.filter-chip-back{color:var(--primary)}.bot-hub-page{gap:10px}.bot-header{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:12px 14px;border-radius:16px;background:var(--bg-surface);border:1px solid var(--border-soft);box-shadow:var(--shadow-sm)}.bot-header-main{display:grid;grid-template-columns:42px minmax(0,1fr);gap:12px;align-items:center;min-width:0}.bot-header-avatar{width:42px;height:42px;border-radius:12px}.bot-header-avatar-text{font-size:.76rem}.bot-header-copy{min-width:0}.bot-header-copy .section-title{font-size:clamp(1.15rem,2.2vw,1.55rem)}.bot-header-meta{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px;min-width:220px}.bot-tabbar{display:flex;flex-wrap:wrap;gap:6px;align-items:center;padding:4px;border:1px solid var(--border-soft);border-radius:14px;background:var(--bg-subtle);width:fit-content}.bot-tab-button{min-height:30px;border:1px solid transparent;border-radius:10px;padding:6px 10px;background:transparent;color:var(--text-secondary);font:inherit;font-size:.86rem;font-weight:700;cursor:pointer}.bot-tab-button:hover,.bot-tab-button.active{border-color:var(--border);background:var(--bg-surface);color:var(--text-primary);box-shadow:var(--shadow-sm)}.bot-hub-meta{display:flex;flex-wrap:wrap;gap:8px}.feed-select{min-width:150px;border:1px solid var(--border);background:var(--input-bg);color:var(--text-primary);border-radius:10px;padding:8px 10px;font:inherit;font-size:.86rem;box-shadow:none}.bot-feed-card{display:grid;gap:12px}.bot-feed-toolbar{align-items:center}.feed-filter-row{display:flex;flex-wrap:wrap;gap:8px}.bot-feed{display:grid;gap:8px}.bot-feed-item{padding:12px 14px;border-radius:16px;border:1px solid var(--border-soft);background:var(--bg-surface);box-shadow:none}.bot-feed-item.error{border-color:var(--danger-border);background:var(--danger-bg)}.bot-feed-item.payment{border-color:#16a34a2e;background:#16a34a14}.bot-feed-item.info{border-color:var(--border);background:var(--bg-subtle)}.bot-feed-item.signup{border-color:var(--tone-success-border);background:var(--tone-success-bg)}.bot-feed-head{display:flex;justify-content:space-between;gap:10px;align-items:center}.bot-feed-badges{display:flex;flex-wrap:wrap;gap:6px}.bot-feed-content{margin:10px 0;line-height:1.5;color:var(--text-primary)}.bot-feed-content .message-link,.bot-feed-content .message-ticket-ref{color:var(--primary)}.bot-feed-meta{display:flex;flex-wrap:wrap;gap:6px 14px;color:var(--text-soft);font-size:.82rem}.subscription-event-content{display:grid;gap:8px}.subscription-event-content strong{font-size:.96rem}.subscription-event-grid{display:flex;flex-wrap:wrap;gap:6px}.subscription-event-grid span{min-height:24px;display:inline-flex;align-items:center;padding:3px 8px;border-radius:999px;background:var(--bg-surface);border:1px solid var(--border);color:var(--text-secondary);font-size:.8rem}.activity-empty-state{min-height:220px;display:grid;place-items:center;align-content:center;gap:8px;padding:28px;border-radius:16px;border:1px dashed var(--border);background:var(--bg-subtle);text-align:center}.activity-empty-icon{width:34px;height:34px;display:grid;place-items:center;border-radius:12px;background:var(--bg-surface);border:1px solid var(--border);color:var(--primary);font-weight:800}.activity-empty-state h3{margin:0;font-size:1.05rem}.activity-empty-state p{margin:0;max-width:460px;color:var(--text-soft);line-height:1.45;font-size:.9rem}.status-pill.error{background:var(--danger-bg);border:1px solid var(--danger-border);color:var(--danger-text)}.status-pill.payment{background:var(--tone-success-bg);border:1px solid var(--tone-success-border);color:var(--tone-success-text)}.status-pill.info{background:var(--tone-info-bg);border:1px solid var(--tone-info-border);color:var(--tone-info-text)}.status-pill.signup{background:var(--tone-success-bg);border:1px solid var(--tone-success-border);color:var(--tone-success-text)}.quick-action-card-static{cursor:default}.quick-action-card strong,.linked-chat-item strong{display:block;margin-bottom:8px}.quick-action-card span,.linked-chat-item span{color:var(--text-soft);line-height:1.45}.meta-list{display:grid;gap:14px;margin:18px 0 0}.action-row{display:flex;flex-wrap:wrap;gap:12px;margin-top:18px}.chat-header-actions{margin-top:0}.public-link-panel{display:grid;gap:14px;padding:18px;border-radius:22px;border:1px solid var(--border);background:var(--bg-surface);box-shadow:var(--shadow-sm)}.public-link-box{padding:14px 16px;border-radius:16px;background:var(--bg-subtle);border:1px solid var(--border);color:var(--text-primary);font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:.94rem;line-height:1.5;word-break:break-all}.filter-row{display:flex;flex-wrap:wrap;gap:8px}.filter-chip{border:1px solid var(--border);background:var(--bg-surface);color:var(--text-primary);border-radius:999px;padding:8px 12px;font:inherit;cursor:pointer}.bot-settings-card,.bot-dialog-templates-card{padding:12px}.bot-settings-toolbar{margin-bottom:12px}.bot-settings-form{gap:12px}.bot-settings-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(260px,320px);gap:12px;align-items:start}.bot-settings-main,.bot-settings-side{display:grid;gap:12px;min-width:0}.bot-dialog-templates-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(280px,340px);gap:16px;align-items:start}.bot-dialog-templates-main,.bot-dialog-templates-side,.dialog-template-list{display:grid;gap:12px;min-width:0}.dialog-template-card{display:grid;gap:14px;padding:18px;border:1px solid var(--border-soft);border-radius:16px;background:var(--bg-surface);box-shadow:var(--shadow-sm)}.dialog-template-card.disabled{opacity:.78}.dialog-template-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}.dialog-template-badges,.dialog-template-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}.dialog-template-head h4{margin:0 0 4px;color:var(--text-primary);font-size:.98rem}.dialog-template-description{margin:0;color:var(--text-secondary);font-size:.88rem;line-height:1.4}.dialog-template-pill{display:inline-flex;align-items:center;min-height:24px;padding:4px 10px;border-radius:999px;border:1px solid var(--border-soft);background:var(--bg-subtle);color:var(--text-secondary);font-size:.76rem;font-weight:var(--fw-semibold);white-space:nowrap}.dialog-template-pill.success{border-color:#22c55e33;background:#22c55e1a;color:#13803c}.dialog-template-pill.muted{color:var(--text-muted)}.dialog-template-pill.blue{border-color:#3b82f62e;background:#3b82f61a;color:#2563eb}.dialog-template-pill.violet{border-color:#7c3aed2e;background:#7c3aed1a;color:#6d28d9}.dialog-template-pill.orange{border-color:#ea580c2e;background:#ea580c1a;color:#c2410c}.dialog-template-menu-button{width:30px;height:30px}.dialog-template-card-body{display:grid;grid-template-columns:minmax(220px,.85fr) minmax(280px,1fr);gap:18px;align-items:start}.dialog-template-rules{display:grid;gap:10px;margin:0;padding:0;list-style:none}.dialog-template-rules li{position:relative;margin:0;padding-left:22px;color:var(--text-secondary);font-size:.84rem;line-height:1.4}.dialog-template-rules li:before{content:"";position:absolute;left:3px;top:.55em;width:7px;height:7px;border:2px solid var(--primary);border-radius:999px;transform:translateY(-50%)}.dialog-template-meta{display:grid;gap:10px 20px;grid-template-columns:minmax(0,1fr) minmax(0,1fr);margin:0;padding:14px 16px;border:1px solid var(--border-soft);border-radius:12px;background:var(--bg-subtle)}.dialog-template-meta div{min-width:0}.dialog-template-meta dt,.dialog-template-meta dd{margin:0;line-height:1.35}.dialog-template-meta dt{color:var(--text-muted);font-size:.74rem}.dialog-template-meta dd{color:var(--text-primary);font-size:.84rem;font-weight:var(--fw-medium);overflow-wrap:anywhere}.dialog-template-warning,.dialog-template-info-note{margin:0;padding:10px 12px;border-radius:12px;border:1px solid rgba(245,158,11,.28);background:#f59e0b17;color:#9a5b05;font-size:.83rem;line-height:1.4}.dialog-template-form-actions{position:static;margin-top:0}.dialog-template-quick-create{position:sticky;top:12px}.dialog-template-preset-list{display:grid;gap:10px}.dialog-template-preset{display:grid;grid-template-columns:42px minmax(0,1fr) auto;gap:10px;align-items:center;width:100%;min-height:72px;padding:10px;border:1px solid var(--border-soft);border-radius:14px;background:var(--bg-surface);color:var(--text-primary);text-align:left;font:inherit;cursor:pointer}.dialog-template-preset:hover{border-color:var(--border-strong);background:var(--hover)}.dialog-template-preset-icon{display:grid;place-items:center;width:42px;height:42px;border-radius:12px;background:var(--primary-soft);font-size:1.1rem}.dialog-template-preset strong,.dialog-template-preset small{display:block}.dialog-template-preset strong{color:var(--text-primary);font-size:.9rem}.dialog-template-preset small{margin-top:3px;color:var(--text-secondary);font-size:.78rem;line-height:1.3}.dialog-template-preset-arrow{color:var(--text-muted);font-size:1.4rem}.dialog-template-info-note{border-color:#3b82f638;background:#3b82f614;color:#1d4ed8}.dialog-template-modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:60;display:grid;place-items:center;padding:24px;background:#0f172a57;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}.dialog-template-modal{display:grid;grid-template-columns:minmax(160px,210px) minmax(420px,640px);width:min(860px,calc(100vw - 32px));max-height:calc(100vh - 48px);margin:0;overflow:hidden;border:1px solid var(--border-soft);border-radius:16px;background:var(--bg-surface);box-shadow:var(--shadow-lg)}.dialog-template-modal-steps{display:grid;align-content:start;gap:18px;padding:24px 20px;border-right:1px solid var(--border-soft);background:var(--bg-subtle)}.dialog-template-modal-steps span{position:relative;padding-left:22px;color:var(--text-secondary);font-size:.82rem;font-weight:var(--fw-medium)}.dialog-template-modal-steps span:before{content:"";position:absolute;left:0;top:.45em;width:8px;height:8px;border-radius:999px;background:var(--border-strong)}.dialog-template-modal-steps span.active{color:var(--primary)}.dialog-template-modal-steps span.active:before{background:var(--primary)}.dialog-template-modal-panel{display:grid;gap:16px;min-width:0;max-height:calc(100vh - 48px);overflow:auto;padding:24px}.dialog-template-modal-actions{display:flex;justify-content:flex-end;gap:10px;padding-top:4px}.settings-panel-section{display:grid;gap:12px;padding:12px;border-radius:14px;border:1px solid var(--border-soft);background:var(--bg-surface);box-shadow:none}.settings-panel-head{display:grid;gap:4px}.bot-settings-form .settings-panel-head-row{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.settings-panel-head h4{margin:0;color:var(--text-primary);font-size:.95rem;line-height:1.25}.settings-panel-head p{margin:0;color:var(--text-soft);font-size:.88rem;line-height:1.4}.bot-settings-form .bot-avatar-uploader{margin:0;padding:8px;border-radius:12px;border-color:var(--border-soft);background:var(--bg-subtle)}.bot-settings-form .bot-avatar-uploader-avatar{width:42px;height:42px;border-radius:12px}.settings-field-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.settings-field-wide{grid-column:1 / -1}.bot-settings-form .field{gap:6px}.bot-settings-form .field input,.bot-settings-form .field textarea,.bot-settings-form .field select,.readonly-link-input{padding:9px 10px;border-radius:12px;box-shadow:none}.bot-settings-form .field textarea{min-height:72px}.compact-checkbox-field{gap:8px}.settings-segmented{display:inline-grid;grid-auto-flow:column;gap:2px;padding:3px;border:1px solid var(--border-soft);border-radius:12px;background:var(--bg-subtle)}.settings-segmented button{min-height:28px;border:0;border-radius:9px;padding:5px 10px;background:transparent;color:var(--text-secondary);font:inherit;font-size:.84rem;font-weight:var(--fw-semibold);cursor:pointer}.settings-segmented button:hover{color:var(--text-primary);background:var(--hover)}.settings-segmented button.active{color:var(--text-primary);background:var(--bg-surface);box-shadow:var(--shadow-sm)}.settings-segmented button.active.danger{color:var(--danger-text)}.settings-segmented button:disabled{cursor:wait;opacity:.7}.settings-segmented-full{width:100%;grid-template-columns:repeat(2,minmax(0,1fr))}.mode-explainer,.settings-muted-note{margin:0;color:var(--text-secondary);font-size:.86rem;line-height:1.4}.mode-explainer{display:grid;gap:3px;padding:10px;border-radius:12px;background:var(--bg-subtle);border:1px solid var(--border-soft)}.mode-explainer strong{color:var(--text-primary);font-size:.9rem}.compact-check-row{display:flex;align-items:center;gap:8px;min-height:37px;padding:8px 10px;border:1px solid var(--border-soft);border-radius:12px;background:var(--bg-subtle);color:var(--text-secondary);font-size:.86rem;font-weight:var(--fw-medium)}.compact-check-row input{width:14px;height:14px;margin:0;accent-color:var(--primary)}.secure-link-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:8px;align-items:center}.readonly-link-input{min-width:0;border:1px solid var(--border-strong);background:var(--input-bg);color:var(--text-primary);box-shadow:var(--shadow-sm);font:inherit;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:.82rem}.settings-risk-badge{align-self:start;padding:4px 8px;border-radius:999px;border:1px solid var(--danger-border);background:var(--danger-bg);color:var(--danger-text);font-size:.72rem;font-weight:var(--fw-semibold);text-transform:uppercase;letter-spacing:.04em}.settings-danger-link{justify-self:start;border:0;padding:0;background:transparent;color:var(--danger-text);font:inherit;font-size:.84rem;font-weight:var(--fw-semibold);cursor:pointer}.settings-danger-link:disabled{cursor:wait;opacity:.6}.operational-info-list{display:grid;gap:0;margin:0}.operational-info-list div{display:grid;grid-template-columns:minmax(90px,.8fr) minmax(0,1.2fr);gap:10px;padding:8px 0;border-top:1px solid var(--border-soft)}.operational-info-list div:first-child{border-top:0;padding-top:0}.operational-info-list div:last-child{padding-bottom:0}.operational-info-list dt,.operational-info-list dd{margin:0;font-size:.82rem;line-height:1.35}.operational-info-list dt{color:var(--text-muted)}.operational-info-list dd{color:var(--text-primary);text-align:right;word-break:break-word}.danger-action-list{display:grid;gap:8px}.danger-action-list .secondary-button{justify-content:center}.compact-settings-message{margin:0}.settings-form-actions{position:sticky;bottom:12px;z-index:2;display:flex;align-items:center;justify-content:flex-end;gap:10px;margin-top:2px;padding:8px;border:1px solid var(--border-soft);border-radius:14px;background:color-mix(in srgb,var(--bg-surface) 92%,transparent);box-shadow:var(--shadow-sm);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}.settings-form-actions span{margin-right:auto;color:var(--text-secondary);font-size:.84rem}.danger-settings-section{border-color:var(--danger-border);background:color-mix(in srgb,var(--danger-bg) 58%,var(--bg-surface))}.danger-settings-section .secondary-button-danger{justify-self:start}.filter-chip.active{background:var(--selected-bg);color:var(--text-primary);border-color:var(--border-accent)}.event-card{padding:18px;border-radius:22px;border:1px solid var(--border);background:var(--bg-surface);box-shadow:var(--shadow-sm)}.event-card-top{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:14px;align-items:start}.event-card-top p{margin:8px 0 0;color:var(--text-soft)}.event-card-main{min-width:0}.event-card-title-row{display:flex;justify-content:space-between;gap:14px;align-items:flex-start}.event-card-badges{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end}.event-time{color:var(--text-soft);font-size:.88rem;white-space:nowrap}.event-meta{display:flex;flex-wrap:wrap;gap:10px 18px;margin-top:14px;color:var(--text-soft);font-size:.92rem}.event-icon{width:36px;height:36px;border-radius:12px;display:grid;place-items:center;font-weight:800;background:var(--tone-accent-bg);color:var(--accent-main)}.event-icon.error{background:var(--danger-bg);color:var(--danger-text)}.event-icon.payment{background:var(--tone-success-bg);color:var(--tone-success-text)}.event-icon.info{background:var(--tone-info-bg);color:var(--tone-info-text)}.event-icon.signup{background:var(--tone-success-bg);color:var(--tone-success-text)}.workspace-chat-layout{margin-top:0}.public-bot-shell{min-height:100vh;max-width:1180px;margin:0 auto;padding:24px 18px 40px;display:grid;gap:16px}.public-zone-shell{min-height:100vh;display:grid;grid-template-rows:auto 1fr}.public-zone-header{position:sticky;top:0;z-index:5;display:flex;justify-content:space-between;gap:18px;align-items:center;padding:18px 24px;background:var(--header-bg);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);border-bottom:1px solid var(--border)}.public-zone-brand{display:inline-flex;align-items:center;gap:14px;border:none;background:transparent;cursor:pointer;text-align:left;color:var(--text-main)}.public-zone-brand-copy{display:grid;gap:3px}.public-zone-brand-copy span{color:var(--text-soft)}.public-zone-actions{display:flex;gap:10px;flex-wrap:wrap}.public-zone-body{min-height:0}.public-bot-card{padding:24px;border-radius:28px;background:var(--bg-surface);border:1px solid var(--border);box-shadow:var(--shadow-sm)}.public-bot-hero{display:flex;justify-content:space-between;gap:18px;align-items:flex-start;background:var(--bg-surface)}.public-bot-grid{display:grid;gap:18px;grid-template-columns:minmax(0,1.3fr) minmax(320px,.9fr)}.public-bot-grid-single{grid-template-columns:minmax(0,1fr)}.public-bot-grid-single .detail-card{padding:22px 22px 18px}.public-bot-grid-single .section-toolbar-compact{gap:12px;margin-bottom:10px}.public-bot-grid-single .section-toolbar-compact h3{margin:0}.public-bot-grid-single .section-copy{margin:10px 0 0;max-width:900px;line-height:1.45}.public-bot-hero-copy{display:grid;gap:16px;min-width:0}.public-bot-hero-head{display:flex;align-items:flex-start;gap:16px}.public-bot-hero-avatar{width:72px;height:72px;border-radius:20px;flex:0 0 auto}.public-bot-hero-avatar-text{font-size:.72rem}.public-bot-hero-title{display:grid;gap:8px;min-width:0}.public-bot-cta-row{display:flex;flex-wrap:wrap;gap:12px}.public-bot-meta{justify-content:flex-start;align-content:flex-start;min-width:180px}.public-messages-panel{min-height:340px;max-height:420px;margin-top:14px;overflow-y:auto;background:var(--bg-subtle);border:1px solid var(--border)}.public-chat-frame{position:relative;margin-top:14px;padding:14px;border-radius:22px;border:1px solid var(--border);background:var(--bg-surface);box-shadow:var(--shadow-sm)}.public-chat-frame .public-messages-panel{margin-top:0}.public-chat-frame .messages-list{align-content:start}.public-chat-compose{margin-top:12px;position:static;border-top:none;background:transparent;padding-top:0;gap:10px}.public-chat-compose .field>span{margin-bottom:8px;color:var(--text-main)}.public-chat-compose .chat-compose-input-shell textarea{min-height:56px;padding:16px 18px;border-radius:18px}.public-chat-compose .primary-button{min-height:48px;padding-inline:20px}.public-message.error{border-color:#9c2f1d3d}.public-message.payment{border-color:#3f775738}.public-auth-wall{display:grid;gap:6px;margin-top:12px;padding:14px 18px;border-radius:18px;border:1px solid var(--border);background:var(--bg-subtle);box-shadow:var(--shadow-sm)}.public-auth-wall p{color:var(--text-soft);line-height:1.45;margin:0}.public-auth-wall strong{color:var(--text-primary)}.public-demo-counter{position:absolute;top:14px;right:14px;display:inline-flex;align-items:center;min-height:30px;padding:0 10px;border-radius:999px;background:var(--bg-surface);border:1px solid var(--border);color:var(--text-primary);box-shadow:var(--shadow-sm);font-size:.78rem;font-weight:700;letter-spacing:.02em}.public-demo-counter.limit{color:var(--tone-accent-text)}.public-chat-empty{min-height:150px;display:flex;align-items:center;padding:22px 8px 8px}.inline-message{margin-top:14px}.app-shell{padding-top:32px;padding-bottom:48px}.messenger-page{max-width:1320px;padding-top:24px;padding-bottom:24px}.chat-layout{display:grid;grid-template-columns:minmax(280px,360px) minmax(0,1fr);gap:20px;margin-top:20px}.chat-layout-single{grid-template-columns:minmax(0,1fr)}.messenger-layout{min-height:calc(100vh - 48px);margin-top:0;align-items:stretch}.chat-sidebar,.chat-content{margin-top:0;min-height:0}.messenger-sidebar,.messenger-content{display:flex;flex-direction:column;min-height:calc(100vh - 48px)}.subscriber-table{display:grid;gap:10px}.subscriber-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:center;padding:12px;border:1px solid var(--border-subtle);border-radius:8px;background:var(--surface-muted)}.subscriber-main{display:grid;grid-template-columns:40px minmax(0,1fr);gap:10px;align-items:center;min-width:0}.subscriber-main strong,.subscriber-main span{display:block;overflow-wrap:anywhere}.subscriber-main span{color:var(--text-muted);font-size:12px}.subscriber-avatar{width:40px;height:40px}.subscriber-meta{display:flex;gap:8px;align-items:center;justify-content:flex-end;flex-wrap:wrap}@media (max-width: 980px){.workspace-shell{grid-template-columns:minmax(0,1fr);padding:14px}.workspace-sidebar,.workspace-content{min-height:auto}.workspace-topbar,.queen-hero,.bot-header{align-items:flex-start;flex-direction:column}.queen-hero-meta{justify-content:flex-start}.workspace-topbar-side{width:100%;flex-wrap:wrap}.queen-grid,.detail-grid,.queen-grid-dashboard,.bot-list-toolbar{grid-template-columns:minmax(0,1fr)}.bot-filter-row{order:2}.bot-header-meta{justify-content:flex-start;min-width:0}}@media (max-width: 640px){.workspace-shell{gap:14px;padding:10px}.workspace-sidebar,.workspace-topbar,.detail-card,.queen-card,.queen-hero,.bot-header{border-radius:18px}.workspace-topbar,.detail-card,.queen-card{padding:14px}.queen-hero-main,.bot-header-main{grid-template-columns:48px minmax(0,1fr);display:grid;align-items:center}.queen-avatar-hero,.bot-header-avatar{width:48px;height:48px;border-radius:14px}.section-toolbar,.section-toolbar-compact,.bot-card-head{flex-direction:column;align-items:stretch}.bot-compact-row,.bot-row-main{grid-template-columns:minmax(0,1fr)}.bot-row-meta{justify-content:flex-start;padding-right:34px}.bot-row-menu{position:absolute;top:8px;right:8px}.bot-row-main{padding-right:34px}.bot-card-head-counts{justify-content:flex-start}.bot-settings-layout,.bot-dialog-templates-layout,.dialog-template-card-body,.dialog-template-meta,.settings-field-grid,.secure-link-row,.subscriber-row{grid-template-columns:minmax(0,1fr)}.dialog-template-head,.dialog-template-actions,.dialog-template-badges{justify-content:flex-start}.dialog-template-modal{grid-template-columns:minmax(0,1fr)}.dialog-template-modal-steps{display:none}.dialog-template-modal-panel{padding:16px}.subscriber-meta{justify-content:flex-start}.bot-settings-form .settings-panel-head-row{display:grid}.settings-segmented,.secure-link-row .secondary-button{width:100%}.settings-form-actions{justify-content:stretch;align-items:stretch;flex-direction:column;bottom:8px}.settings-form-actions .primary-button,.danger-settings-section .secondary-button-danger{width:100%}.settings-form-actions span{margin-right:0}.danger-action-list .secondary-button{width:100%}}.messenger-brand{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;margin-bottom:18px}.messenger-title{margin:0;font-size:2.1rem;line-height:1;letter-spacing:-.02em}.messenger-user{display:flex;gap:14px;align-items:center;padding:14px 16px;border-radius:18px;background:var(--bg-surface);border:1px solid var(--border);box-shadow:var(--shadow-sm);margin-bottom:18px}.messenger-avatar{width:42px;height:42px;border-radius:999px;display:grid;place-items:center;background:var(--primary);color:#fff;font-weight:700}.messenger-user strong,.messenger-subtle{display:block}.messenger-subtle{margin-top:4px;color:var(--text-soft);font-size:.92rem}.section-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;margin-bottom:18px}.section-head-sidebar{margin-bottom:14px}.section-copy{margin:8px 0 0;color:var(--text-soft);line-height:1.45}.secondary-button-compact,.primary-button-compact{padding:12px 14px}.chat-list{display:grid;gap:12px;overflow-y:auto;padding-right:2px}.chat-list-skeleton,.loading-stack{display:grid;gap:12px}.chat-skeleton-card{min-height:78px;border-radius:20px;border:1px solid var(--border);background:linear-gradient(110deg,var(--bg-subtle) 8%,var(--bg-surface) 18%,var(--bg-subtle) 33%),var(--bg-subtle);background-size:200% 100%;animation:shimmer 1.5s linear infinite}.chat-list-item{width:100%;border:1px solid var(--border);border-radius:20px;background:var(--bg-surface);padding:16px;text-align:left;cursor:pointer;transition:transform .12s ease,border-color .12s ease,box-shadow .12s ease}.chat-list-item:hover{transform:translateY(-1px);border-color:var(--border-accent);box-shadow:var(--shadow-sm)}.chat-list-item.active{border-color:var(--selected-border);background:var(--selected-bg)}.chat-list-title,.chat-list-meta{display:block}.chat-list-title{font-weight:700;color:var(--text-main)}.chat-list-meta{margin-top:8px;font-size:.9rem;color:var(--text-soft)}.chat-room{display:flex;flex-direction:column;gap:18px;min-height:0;flex:1;overflow:hidden}.messenger-chat-header{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;margin-bottom:18px}.chat-title-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.chat-title-row h2{margin:0}.chat-title-edit-button{width:34px;height:34px;border:1px solid var(--border);border-radius:999px;background:var(--bg-surface);color:var(--text-primary);font:inherit;cursor:pointer}.chat-title-editor{display:flex;align-items:center;gap:10px;flex-wrap:wrap;min-width:0}.chat-title-input{min-width:min(420px,80vw);border:1px solid var(--border);border-radius:14px;background:var(--input-bg);color:var(--text-primary);padding:12px 14px;font:inherit;font-weight:600;box-shadow:var(--shadow-sm)}.chat-title-input::placeholder{color:var(--text-soft)}.chat-title-input:focus{outline:2px solid var(--focus-ring);border-color:var(--primary)}.chat-title-action{margin-top:0;white-space:nowrap;color:var(--accent-main);font-weight:700}.field-checkbox{gap:10px}.bot-avatar-uploader{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px;border-radius:18px;border:1px solid var(--border);background:var(--bg-surface);box-shadow:var(--shadow-sm)}.bot-avatar-uploader-preview{display:flex;align-items:center;gap:12px;min-width:0}.bot-avatar-uploader-avatar{width:54px;height:54px;border-radius:18px;flex:0 0 auto}.bot-avatar-uploader-copy{display:grid;gap:2px;min-width:0}.bot-avatar-uploader-copy strong{font-size:.95rem}.bot-avatar-uploader-copy span{font-size:.82rem;color:var(--text-soft)}.bot-avatar-uploader-button{flex:0 0 auto;white-space:nowrap}.checkbox-row{display:flex;align-items:flex-start;gap:10px;color:var(--text-soft);line-height:1.45}.checkbox-row input[type=checkbox]{width:16px;height:16px;margin-top:2px;accent-color:var(--accent-main)}.messages-panel{min-height:0;flex:1;overflow-y:auto;padding:20px;border-radius:22px;background:var(--bg-surface);border:1px solid var(--border);box-shadow:var(--shadow-sm)}.messages-shell{flex:1;min-height:0;position:relative}.messages-shell .messages-panel{height:100%}.chat-scroll-date-indicator{position:absolute;right:12px;top:14px;z-index:2;padding:6px 10px;border-radius:999px;background:var(--chip-bg);border:1px solid var(--border);box-shadow:var(--shadow-sm);color:var(--text-primary);font-size:12px;line-height:1;font-weight:var(--fw-semibold);pointer-events:none;opacity:0;transform:translateY(-50%) scale(.98);transition:opacity .16s ease,transform .16s ease;will-change:opacity,transform}.chat-scroll-date-indicator.is-visible{opacity:1;transform:translateY(-50%) scale(1)}@media (prefers-reduced-motion: reduce){.chat-scroll-date-indicator{transition:none}}.public-chat-frame .messages-panel.public-messages-panel{min-height:340px;max-height:420px;margin-top:0;overflow-y:auto;border-radius:22px;background:var(--bg-surface);border:1px solid var(--border);box-shadow:var(--shadow-sm)}.public-chat-frame .messages-panel.public-messages-panel .messages-list{align-content:start}.messages-loading{margin-bottom:16px}.messages-list{display:grid;gap:14px;align-content:end;min-height:100%}.jump-to-latest-button{position:absolute;right:18px;bottom:16px;z-index:3;display:inline-flex;align-items:center;gap:8px;border:1px solid var(--border-accent);border-radius:999px;padding:9px 10px 9px 14px;background:var(--primary);color:#fff;font:inherit;font-size:.88rem;font-weight:700;box-shadow:var(--shadow-sm);cursor:pointer}.jump-to-latest-button:hover{border-color:var(--border-accent);background:var(--primary-hover)}.jump-to-latest-count{min-width:24px;height:24px;padding:0 7px;display:inline-flex;align-items:center;justify-content:center;border-radius:999px;background:#ffffff38;color:#fff;font-size:.78rem;line-height:1}.message-row{display:flex;gap:10px;align-items:flex-end}.message-row.user{justify-content:flex-end}.message-row.user .message-avatar{order:2}.message-row.user .message-bubble{order:1}.message-row.system{justify-content:center}.message-row.system .message-avatar{display:none}.message-avatar{width:36px;height:36px;flex:0 0 36px;border-radius:999px;display:grid;place-items:center;font-size:.86rem;font-weight:800;box-shadow:0 10px 24px #0f172a14}.message-avatar.user{background:var(--primary);color:#f4f6f7;border:1px solid var(--border)}.message-avatar.bot{background:var(--success);color:#f5fbe9;border:1px solid var(--border)}.message-bubble{max-width:min(62%,448px);padding:12px 14px;border-radius:20px;box-shadow:var(--shadow-sm)}.message-bubble.user{margin-left:auto;background:var(--message-user-bg);border:1px solid var(--message-user-border);color:var(--message-user-text);border-bottom-right-radius:8px}.message-bubble.bot{background:var(--bg-subtle);color:var(--text-primary);border:1px solid var(--border);border-bottom-left-radius:8px}.message-bubble.system{max-width:min(84%,640px);background:var(--chip-bg);color:var(--text-secondary);border:1px dashed var(--border);text-align:center}.typing-bubble{max-width:220px}.typing-indicator-label{display:block;margin-top:8px;color:var(--text-muted);font-size:var(--fs-sm);line-height:1.35}.message-author,.message-time{display:block;font-size:var(--fs-sm)}.message-author{margin-bottom:6px;font-weight:var(--fw-medium)}.message-time{margin-top:8px;color:var(--text-muted);opacity:1}.message-bubble.user .message-author,.message-bubble.user .message-content{color:inherit}.message-bubble.user .message-time{color:var(--message-user-meta);opacity:1}.message-bubble.bot .message-author{color:#b9c9b2}.message-bubble.bot .message-content{color:#e6e9ed}.message-bubble.bot .message-time{color:#98a2ad;opacity:1}.message-bubble.system .message-author{color:var(--text-muted);font-weight:700;letter-spacing:.04em}.message-bubble.system .message-content{color:var(--text-secondary)}.message-bubble.system .message-time{color:var(--text-muted)}.message-content{margin:0;line-height:1.42;font-size:.96rem;white-space:pre-wrap}.message-rich{display:grid;gap:1px;white-space:normal;word-break:break-word}.message-line{line-height:1.45}.message-line-heading{margin-top:2px;font-weight:600}.message-line-spacer{height:8px}.message-link{color:var(--primary);text-decoration:none;word-break:break-word}.message-link:hover{color:var(--primary-hover);text-decoration:underline}.message-link-compact{display:inline;margin-left:4px;font-size:.92em}.message-ticket-ref{color:var(--primary);font-weight:var(--fw-semibold)}.message-ticket-link{text-decoration:none}.message-ticket-link:hover{color:var(--primary-hover);text-decoration:underline}.chat-compose{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:end;padding-top:4px;margin-top:auto;background:var(--bg-surface);position:sticky;bottom:0;border-top:1px solid var(--border);box-shadow:var(--shadow-sm)}.chat-compose-field{margin:0}.chat-compose-control{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:end;min-width:0}.chat-compose-input-shell{position:relative;min-width:0}.chat-compose-field textarea,.chat-compose-input-shell textarea{line-height:1.5;width:100%;min-height:44px;border:1px solid var(--border-strong);border-radius:16px;padding:12px 14px;font:inherit;background:var(--input-bg);color:var(--text-primary);box-shadow:var(--shadow-sm)}.chat-compose-field textarea::placeholder{color:var(--text-muted);opacity:1}.chat-compose-field textarea:focus{outline:none;border-color:var(--primary);box-shadow:var(--shadow-sm),var(--focus-shadow)}.chat-compose-input-shell textarea{position:relative;z-index:1}.command-popover{position:absolute;left:0;right:0;bottom:calc(100% + 10px);z-index:20;display:grid;gap:6px;max-height:280px;overflow-y:auto;padding:10px;border:1px solid var(--border);border-radius:18px;background:var(--bg-surface);box-shadow:var(--shadow-md)}.command-popover-header{padding:4px 6px 2px;font-size:.82rem;font-weight:700;text-transform:uppercase;letter-spacing:.08em;color:var(--text-soft)}.command-option{display:grid;gap:3px;width:100%;padding:10px 12px;border:1px solid transparent;border-radius:14px;background:transparent;color:var(--text-primary);text-align:left;font:inherit;cursor:pointer}.command-option:hover,.command-option.active{border-color:var(--border-accent);background:var(--selected-bg)}.command-option-name{font-weight:700}.command-option-description{color:var(--text-soft);font-size:.88rem;line-height:1.35}.empty-state{color:var(--text-soft)}.empty-panel{display:grid;gap:10px;padding:20px;border-radius:18px;border:1px dashed var(--border);background:var(--bg-card);color:var(--text-soft)}.empty-panel h3{margin:0 0 10px;font-size:1.05rem}.empty-panel p{margin:0}.empty-panel-action{justify-self:start;margin-top:8px}.telegram-shell{grid-template-columns:var(--tg-bots-width, 360px) 10px var(--tg-dialogs-width, 300px) var(--tg-dialogs-handle-width, 10px) minmax(0,1fr);gap:0;padding:0;align-items:stretch;font-size:14px}.context-menu-wrapper{position:fixed;z-index:80}.context-menu{display:grid;padding:6px;border-radius:12px;background:var(--menu-bg);border:1px solid var(--border);box-shadow:var(--menu-shadow);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);transition:background-color .2s ease,border-color .2s ease,color .2s ease}.context-menu-submenu{position:absolute;top:0;width:260px;display:grid;padding:6px;border-radius:12px;background:var(--menu-bg);border:1px solid var(--border);box-shadow:var(--menu-shadow);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);transition:background-color .2s ease,border-color .2s ease,color .2s ease}.context-menu-submenu.right{left:calc(100% + 4px)}.context-menu-submenu.left{right:calc(100% + 4px)}.context-menu-separator{height:1px;margin:6px;background:var(--divider);opacity:.9}.context-menu-item{width:100%;display:flex;align-items:center;justify-content:space-between;gap:12px;border:none;background:transparent;text-align:left;padding:9px 10px;border-radius:10px;color:var(--text-primary);font:inherit;font-size:var(--fs-sm);font-weight:var(--fw-medium);cursor:pointer}.context-menu-item:hover,.context-menu-item.active{background:var(--hover)}.context-menu-item:disabled{opacity:.55;cursor:default}.context-menu-item.danger{color:var(--error)}.context-menu-item-label{min-width:0;flex:1}.context-menu-item-caret{flex:0 0 auto;color:var(--text-muted);font-size:1rem;line-height:1}.row-menu-trigger{width:26px;height:26px;display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--border);border-radius:10px;background:var(--control-bg);color:var(--text-secondary);font:inherit;font-size:.95rem;line-height:1;cursor:pointer;opacity:0;pointer-events:none;transition:opacity .14s ease,background .14s ease,border-color .14s ease}.row-menu-trigger:hover{background:var(--hover);border-color:var(--border)}.telegram-resize-handle{position:relative;width:100%;cursor:col-resize;touch-action:none}.telegram-resize-handle:before{content:"";position:absolute;top:14px;bottom:14px;left:50%;width:2px;transform:translate(-50%);border-radius:999px;background:var(--divider);opacity:.55;transition:opacity .14s ease,background .14s ease}.telegram-resize-handle:hover:before{opacity:.9;background:var(--divider)}.telegram-resize-handle.closed{cursor:default;pointer-events:none}.telegram-resize-handle.closed:before{opacity:0}.telegram-dialogs-sidebar{min-height:100vh;height:100vh;display:flex;flex-direction:column;gap:12px;padding:12px;border-radius:20px;overflow:hidden;background:var(--bg-surface);border:1px solid var(--border);box-shadow:var(--shadow-sm);transition:background-color .2s ease,border-color .2s ease,color .2s ease}.telegram-dialogs-sidebar.closed{padding:0;border:0;background:transparent;opacity:0;pointer-events:none}.telegram-dialogs-sidebar-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding-bottom:10px;border-bottom:1px solid var(--border)}.telegram-dialogs-sidebar-title{display:flex;align-items:center;gap:10px;min-width:0}.telegram-dialogs-sidebar-copy{display:grid;gap:2px;min-width:0}.telegram-dialogs-sidebar-copy strong{font-size:14px;font-weight:var(--fw-semibold);line-height:1.2;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.telegram-dialogs-sidebar-copy span{font-size:var(--fs-sm);color:var(--text-muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.telegram-dialogs-sidebar-actions{display:flex;gap:8px;align-items:center}.telegram-dialogs-sidebar-action{width:38px;height:38px;padding:0;display:grid;place-items:center;border-radius:14px}.telegram-dialogs-sidebar-main{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;padding-right:0;padding-left:0}.telegram-thread-list-standalone{margin-left:0;padding:0}.telegram-sidebar{min-height:100vh;height:100vh;display:flex;flex-direction:column;gap:12px;padding:12px;border-radius:20px;overflow:hidden;overflow-x:hidden;background:var(--bg-main);border:1px solid var(--border);box-shadow:var(--shadow-sm);transition:background-color .2s ease,border-color .2s ease,color .2s ease}.telegram-sidebar-main{flex:1;min-height:0;display:flex;flex-direction:column;gap:10px;overflow-y:auto;overflow-x:hidden;padding-right:2px}.telegram-sidebar-head{display:flex;justify-content:space-between;gap:12px;align-items:center}.telegram-brand{display:flex;align-items:center;gap:12px;border:none;background:transparent;padding:0;text-align:left;cursor:pointer}.telegram-brand-mark,.telegram-chat-avatar{width:44px;height:44px;display:grid;place-items:center;border-radius:999px;background:var(--primary);color:#fff;font-weight:800;letter-spacing:.04em;flex:0 0 auto}.telegram-brand-copy,.telegram-user-copy{display:grid;gap:3px;min-width:0}.telegram-brand-copy strong,.telegram-user-copy strong{font-size:.98rem}.telegram-brand-copy span,.telegram-user-copy span{color:var(--text-soft);font-size:var(--fs-sm);line-height:1.35}.telegram-ghost-button{border:1px solid var(--border-soft);border-radius:14px;padding:8px 10px;background:var(--control-bg);color:var(--text-secondary);font:inherit;font-size:var(--fs-sm);font-weight:var(--fw-medium);cursor:pointer}.telegram-ghost-button:hover{background:var(--hover)}.telegram-search{display:grid;grid-template-columns:minmax(0,1fr);align-items:center;padding:0 10px;min-height:40px;border-radius:14px;background:var(--input-bg);border:1px solid var(--border-strong);box-shadow:var(--shadow-sm);transition:background-color .2s ease,border-color .2s ease,color .2s ease}.telegram-search:focus-within{outline:none;border-color:var(--primary);box-shadow:var(--shadow-sm),var(--focus-shadow)}.telegram-search input{border:none;background:transparent;font:inherit;color:var(--text-primary);width:100%}.telegram-search input:focus{outline:none}.telegram-dialogs-group{display:flex;flex-direction:column;flex:1;min-height:0}.telegram-dialog-list{display:grid;gap:0;align-content:start;grid-auto-rows:min-content}.telegram-search-results{display:grid;gap:8px;margin-top:10px}.telegram-search-section{display:flex;align-items:center;justify-content:space-between;padding:0 2px}.telegram-search-section-title{color:var(--text-soft);font-size:.72rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase}.telegram-search-result-list{display:grid;gap:6px}.telegram-search-result{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:center;padding:10px 12px;border-radius:16px;border:1px solid var(--border);background:var(--bg-surface);box-shadow:var(--shadow-sm)}.telegram-search-result-main{min-width:0;display:grid;grid-template-columns:40px minmax(0,1fr);gap:10px;align-items:center}.telegram-search-result-avatar{width:40px;height:40px;border-radius:13px}.telegram-search-result-copy{min-width:0;display:grid;gap:3px}.telegram-search-result-copy strong{font-size:.9rem;line-height:1.2;color:var(--text-main);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.telegram-search-result-copy span{color:var(--text-soft);font-size:.78rem;line-height:1.3;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.telegram-search-result-action{border:1px solid var(--border);border-radius:12px;padding:8px 10px;background:var(--control-bg-strong);color:var(--accent-main);font:inherit;font-size:.82rem;font-weight:700;cursor:pointer;box-shadow:var(--shadow-sm);transition:background .14s ease,border-color .14s ease,box-shadow .14s ease}.telegram-search-result-action:hover{background:var(--hover);border-color:var(--border-accent)}.telegram-search-result-action:disabled{opacity:.72;cursor:default}.telegram-dialog-item{position:relative;min-width:0;overflow:hidden;border-radius:14px;background:transparent;border:1px solid transparent;box-shadow:none;transition:background .14s ease,border-color .14s ease}.telegram-dialog-item.active{background:var(--selected-bg);border-color:var(--selected-border);box-shadow:inset 0 0 0 1px var(--selected-border)}.telegram-dialog-item-system{background:var(--bg-card);border:1px solid var(--border)}.telegram-dialog-button{width:100%;min-width:0;display:grid;grid-template-columns:40px minmax(0,1fr);gap:10px;align-items:start;padding:8px 38px 7px 10px;border:none;border-radius:14px;background:transparent;text-align:left;cursor:pointer;font:inherit;transition:background .15s ease,border-color .15s ease}.telegram-dialog-button:hover{background:var(--hover)}.telegram-dialog-item:hover{border-color:var(--border);background:transparent}.telegram-dialog-avatar-frame{width:40px;height:40px;border-radius:14px;box-shadow:none}.telegram-dialog-avatar-frame-queen{overflow:hidden}.telegram-dialog-avatar-image{width:100%;height:100%;object-fit:cover;display:block}.telegram-dialog-avatar{width:36px;height:36px;font-size:.84rem;letter-spacing:.04em}.telegram-dialog-avatar-text{margin-bottom:3px}.telegram-dialog-copy{min-width:0;display:grid;gap:3px;align-content:start}.telegram-dialog-head{display:flex;justify-content:space-between;gap:10px;align-items:flex-start}.telegram-dialog-head-main{min-width:0;display:flex;align-items:center;gap:8px;overflow:hidden}.telegram-dialog-head strong{font-size:14px;color:var(--text-primary);font-weight:var(--fw-semibold);line-height:1.2;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.telegram-dialog-item.has-attention .telegram-dialog-head strong{font-weight:800}.telegram-dialog-time{color:var(--text-muted);font-size:var(--fs-sm);font-weight:var(--fw-medium);white-space:nowrap}.telegram-dialog-subscriber-count,.telegram-chat-subscriber-count{display:inline-flex;align-items:center;min-height:18px;padding:1px 7px;border-radius:999px;background:var(--badge-public-bg);color:var(--badge-public-text);font-size:var(--fs-sm);font-weight:var(--fw-semibold);white-space:nowrap;flex-shrink:0}.telegram-dialog-subhead{display:flex;flex-wrap:wrap;gap:4px 8px;align-items:center}.telegram-dialog-type,.telegram-dialog-count{color:var(--text-muted);font-size:var(--fs-sm);line-height:1.2}.telegram-dialog-type{display:inline-flex;align-items:center;min-height:18px;padding:1px 6px;border-radius:999px;background:var(--badge-public-bg);color:var(--badge-public-text);font-weight:var(--fw-semibold)}.telegram-dialog-type-public{background:var(--badge-public-bg);color:var(--badge-public-text)}.telegram-dialog-type-private{background:var(--badge-private-bg);color:var(--badge-private-text)}.telegram-dialog-preview{color:var(--text-secondary);font-size:var(--fs-sm);line-height:1.35;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-top:1px}.telegram-dialog-badge{min-width:22px;height:22px;padding:0 6px;display:inline-flex;align-items:center;justify-content:center;border-radius:999px;background:var(--primary);color:#f4f8fffa;font-size:var(--fs-sm);font-weight:var(--fw-semibold)}.telegram-dialog-meta{position:absolute;top:8px;right:8px;display:flex;align-items:center;gap:6px;z-index:2}.telegram-thread-item{position:relative}.telegram-dialog-menu{margin:0 12px 10px 64px;min-width:0;display:grid;gap:4px;padding:6px;border-radius:14px;border:1px solid var(--border);background:var(--menu-bg);box-shadow:var(--shadow-sm)}.telegram-dialog-menu-item{border:none;border-radius:10px;padding:9px 10px;background:transparent;color:var(--text-main);font:inherit;font-size:.84rem;text-align:left;cursor:pointer}.telegram-dialog-menu-item:hover{background:var(--hover)}.telegram-dialog-menu-item-danger{color:var(--danger-text)}.telegram-dialog-toggle{color:var(--text-soft);font-size:.85rem;font-weight:700;transition:transform .14s ease;opacity:.88}.telegram-dialog-toggle.expanded{transform:rotate(180deg)}.telegram-thread-list{display:grid;gap:6px;min-width:0;margin-left:64px;padding:0 12px 12px 0}.telegram-thread-list.telegram-thread-list-standalone{margin-left:0;padding:0;gap:0}.telegram-dialog-item.expanded .telegram-dialog-button{border-bottom-left-radius:12px}.telegram-thread-item{width:100%;min-width:0;display:grid;grid-template-columns:minmax(0,1fr);gap:0;padding:8px 10px;border:1px solid transparent;border-radius:12px;background:transparent;text-align:left;cursor:pointer;font:inherit;transition:background .14s ease,border-color .14s ease,box-shadow .14s ease}.telegram-thread-item:hover{background:var(--hover)}.telegram-thread-item.active{background:var(--selected-bg);border-color:var(--selected-border);box-shadow:inset 0 0 0 1px var(--selected-border)}.telegram-thread-item.has-attention .telegram-thread-title{color:var(--text-primary);font-weight:800}.telegram-thread-item.has-attention .telegram-thread-preview{color:var(--text-secondary)}.telegram-thread-copy{min-width:0;display:grid;gap:3px}.telegram-thread-head{display:flex;align-items:center;justify-content:space-between;gap:10px;min-width:0}.telegram-thread-time{font-size:var(--fs-sm);color:var(--text-muted);font-weight:var(--fw-medium);white-space:nowrap}.telegram-thread-subhead{display:flex;gap:10px;align-items:center;min-width:0}.telegram-thread-title{font-size:14px;font-weight:var(--fw-semibold);line-height:1.25;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.telegram-thread-preview{color:var(--text-secondary);font-size:var(--fs-sm);line-height:1.35;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0;flex:1}.telegram-thread-muted{flex:0 0 auto;font-size:.9rem;line-height:1;color:var(--text-muted);transform:translateY(-1px)}.telegram-thread-badge{width:18px;height:18px;display:grid;place-items:center;border-radius:999px;background:var(--badge-public-bg);color:var(--badge-public-text);font-size:.95rem;font-weight:900;flex:0 0 auto}.telegram-bots-sidebar .telegram-dialog-item{border:none;border-radius:0;background:transparent;box-shadow:none}.telegram-bots-sidebar .telegram-dialog-item:hover,.telegram-bots-sidebar .telegram-dialog-item.active{background:transparent;transform:none}.telegram-bots-sidebar .telegram-dialog-button{border-radius:0;grid-template-columns:34px minmax(0,1fr);gap:8px;padding:7px 34px 6px 9px}.telegram-bots-sidebar .telegram-dialog-item:not(:last-child) .telegram-dialog-button{border-bottom:1px solid var(--border)}.telegram-bots-sidebar .telegram-dialog-item:hover .telegram-dialog-button{background:var(--hover)}.telegram-bots-sidebar .telegram-dialog-item.active .telegram-dialog-button{background:var(--selected-bg);box-shadow:inset 0 0 0 1px var(--selected-border)}.telegram-bots-sidebar .telegram-dialog-avatar-frame{width:34px;height:34px;border-radius:12px}.telegram-bots-sidebar .telegram-dialog-head strong{font-size:13px}.telegram-bots-sidebar .telegram-dialog-time,.telegram-bots-sidebar .telegram-dialog-type,.telegram-bots-sidebar .telegram-dialog-count,.telegram-bots-sidebar .telegram-dialog-preview{font-size:12px}.telegram-bots-sidebar .telegram-dialog-subhead{gap:3px 7px}.telegram-bots-sidebar .telegram-dialog-type{min-height:16px;padding:0 5px}.telegram-bots-sidebar .telegram-dialog-preview{line-height:1.25}.telegram-bots-sidebar .telegram-dialog-meta{top:7px;right:8px}.telegram-thread-list-standalone{gap:0}.telegram-dialogs-sidebar .telegram-thread-item{border-radius:0;background:transparent;border:none;border-bottom:1px solid var(--border);padding:8px 12px;box-shadow:none;transition:background .15s ease,border-color .15s ease}.telegram-dialogs-sidebar .telegram-thread-item:hover{background:var(--hover)}.telegram-dialogs-sidebar .telegram-thread-item.active{background:var(--selected-bg);box-shadow:inset 0 0 0 1px var(--selected-border)}.telegram-thread-actions{display:flex;justify-content:space-between;gap:10px;align-items:center;padding-top:2px;min-width:0}.telegram-thread-action-group{display:flex;align-items:center;gap:8px;min-width:0;flex-wrap:wrap}.telegram-thread-create{border:1px solid var(--border-soft);border-radius:12px;padding:8px 10px;background:var(--control-bg-strong);color:var(--accent-main);font:inherit;font-size:var(--fs-sm);font-weight:var(--fw-semibold);cursor:pointer}.telegram-thread-create:disabled{cursor:default;opacity:.7}.telegram-thread-unsubscribe{border:1px solid var(--danger-border);border-radius:12px;padding:8px 10px;background:var(--danger-bg);color:var(--danger-text);font:inherit;font-size:.82rem;font-weight:700;cursor:pointer}.telegram-thread-unsubscribe:disabled{cursor:default;opacity:.72}.telegram-thread-count{color:var(--text-soft);font-size:.78rem;white-space:nowrap}.telegram-user-card{flex-shrink:0;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:center;padding:10px;border-radius:16px;background:var(--bg-surface);border:1px solid var(--border);box-shadow:var(--shadow-sm);transition:background-color .2s ease,border-color .2s ease,color .2s ease}.desktop-update-tile{flex-shrink:0;display:grid;gap:8px;padding:12px;margin-bottom:10px;border-radius:16px;border:1px solid var(--border);background:var(--bg-surface);box-shadow:var(--shadow-sm)}.desktop-update-tile.severity-recommended,.desktop-update-tile.severity-required{border-color:var(--tone-accent-border);background:var(--tone-accent-bg)}.desktop-update-tile-head{display:flex;align-items:center;justify-content:space-between;gap:10px;color:var(--text-muted);font-size:.78rem;font-weight:700;text-transform:uppercase}.desktop-update-dismiss{width:26px;height:26px;border:1px solid var(--border);border-radius:10px;background:var(--bg-subtle);color:var(--text-secondary);cursor:pointer}.desktop-update-tile strong{color:var(--text-primary);font-size:.98rem}.desktop-update-tile p{margin:0;color:var(--text-secondary);font-size:.84rem;line-height:1.4}.desktop-update-tile-actions{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;margin-top:2px}.telegram-user-card-main{border:none;background:transparent;display:grid;grid-template-columns:auto minmax(0,1fr);gap:10px;align-items:center;padding:6px 8px;border-radius:12px;cursor:pointer;font:inherit;color:inherit;min-width:0}.telegram-user-card-main:hover{background:var(--hover)}.telegram-user-card-actions{display:flex;align-items:center;gap:8px;justify-content:flex-end}.telegram-user-notification-bell{flex:0 0 auto}.telegram-user-menu-trigger{width:36px;height:36px;padding:0;display:grid;place-items:center}.telegram-content{min-height:calc(100vh - 20px)}.telegram-content .workspace-body{min-height:100%}.telegram-chat-panel{height:100vh;min-height:100vh;display:flex;flex-direction:column;padding:0;overflow:hidden;background:var(--bg-chat);border:1px solid var(--border);border-radius:20px;box-shadow:var(--shadow-sm);transition:background-color .2s ease,border-color .2s ease,color .2s ease}.telegram-chat-header{padding:14px 16px 12px;margin-bottom:0;border-bottom:1px solid var(--border);background:var(--bg-surface);transition:background-color .2s ease,border-color .2s ease,color .2s ease}.telegram-chat-header-main{min-width:0;flex:1}.telegram-chat-title-row{display:flex;align-items:center;gap:12px;min-width:0}.telegram-chat-kebab{margin-left:auto;width:34px;height:34px;padding:0;display:grid;place-items:center;font-size:1.05rem;line-height:1}.telegram-chat-title-row h2{margin:0;font-size:1.05rem;line-height:1.1}.telegram-chat-heading{display:grid;gap:8px}.telegram-chat-dialog-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-left:0}.telegram-inline-title-shell{min-width:0;flex:1;display:inline-flex}.telegram-inline-title{min-width:0;display:inline-block;padding:2px 6px;border-radius:6px;background:transparent;cursor:pointer;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--text-primary);font-size:14px;line-height:1.3;font-weight:var(--fw-medium)}.telegram-inline-title:hover{background:var(--hover)}.telegram-inline-title-input{width:100%;min-width:0;padding:2px 6px;border-radius:6px;background:var(--input-bg);border:1px solid var(--border);outline:none;color:var(--text-primary);font:inherit;font-size:14px;line-height:1.3;font-weight:var(--fw-medium)}.telegram-inline-title-input:focus{outline:2px solid var(--focus-ring);border-color:var(--primary)}.telegram-inline-title-input::placeholder{color:var(--text-muted)}.telegram-chat-dialog-label{color:var(--text-muted);font-size:var(--fs-sm);font-weight:var(--fw-semibold);letter-spacing:.06em;text-transform:uppercase}.telegram-chat-dialog-title{color:var(--text-primary);font-size:14px;line-height:1.3;font-weight:var(--fw-medium)}.telegram-chat-avatar{width:40px;height:40px;border-radius:14px}.telegram-chat-avatar-text{margin-bottom:3px}.telegram-chat-avatar-muted .bot-avatar-core{background:var(--bg-subtle)}.telegram-chat-subtitle{margin:8px 0 0;font-size:.84rem}.telegram-chat-actions{margin-top:0;margin-left:auto;flex:0 0 auto}.telegram-messages-panel{flex:1;padding:14px 16px 8px;border:none;border-radius:0;background:var(--bg-chat)}.telegram-chat-panel .chat-room{gap:0}.messages-history-sentinel{width:1px;height:1px;pointer-events:none}.messages-history-loader,.messages-history-hint{margin:0 0 12px;padding:8px 12px;border-radius:999px;font-size:12px;line-height:1.2;text-align:center}.messages-history-loader{align-self:center;color:var(--text-primary);background:var(--bg-surface);border:1px solid var(--border);box-shadow:var(--shadow-xs)}.messages-history-hint{align-self:center;color:var(--text-muted);background:var(--bg-subtle);border:1px solid var(--border)}.telegram-chat-panel .messages-list{gap:12px}.telegram-chat-panel .message-row{gap:8px}.telegram-chat-panel .message-avatar{width:34px;height:34px;flex:0 0 34px;font-size:.76rem;box-shadow:none}.telegram-chat-panel .message-avatar .bot-avatar-label{display:none}.telegram-chat-panel .message-bubble{max-width:min(70%,520px);padding:12px 14px;border-radius:16px;box-shadow:none;position:relative;transition:background-color .2s ease,border-color .2s ease,color .2s ease}.telegram-chat-panel .message-bubble.user{background:var(--message-user-bg);border:1px solid var(--message-user-border);color:var(--message-user-text)}.telegram-chat-panel .message-bubble.bot{background:var(--bg-card);border:1px solid var(--border);color:var(--text-primary)}.telegram-chat-panel .message-bubble.bot .message-author,.telegram-chat-panel .message-bubble.bot .message-content{color:inherit}.telegram-chat-panel .message-bubble.bot .message-time{color:var(--text-muted)}.telegram-chat-panel .message-bubble.user .message-author,.telegram-chat-panel .message-bubble.user .message-content{color:inherit}.telegram-chat-panel .message-bubble.user .message-time{color:var(--message-user-meta)}.telegram-chat-panel .message-row.unread .message-bubble.user,.telegram-chat-panel .message-row.unread .message-bubble.bot{box-shadow:inset 0 0 0 1px var(--selected-border)}.message-unread-divider{display:flex;align-items:center;gap:12px;margin:10px 0 4px;color:var(--text-muted);font-size:var(--fs-sm);font-weight:var(--fw-semibold);letter-spacing:.06em;text-transform:uppercase}.message-unread-divider:before,.message-unread-divider:after{content:"";height:1px;flex:1;background:var(--divider)}.message-unread-divider span{padding:0 10px;border-radius:999px;background:var(--chip-bg);border:1px solid var(--border)}.message-day-divider{display:flex;justify-content:center;margin:10px 0 6px;pointer-events:none}.message-day-divider span{padding:5px 10px;border-radius:999px;background:var(--chip-bg);border:1px solid var(--border);color:var(--text-muted);font-size:var(--fs-sm);font-weight:var(--fw-semibold)}.telegram-chat-panel .message-author,.telegram-chat-panel .message-time{font-size:var(--fs-xs)}.telegram-chat-panel .message-author{font-weight:var(--fw-medium)}.telegram-chat-panel .message-author{margin-bottom:4px}.telegram-chat-panel .message-time{margin-top:6px}.telegram-chat-panel .message-content{font-size:14px;line-height:1.5}.telegram-chat-panel .message-row.system{justify-content:center}.telegram-chat-panel .message-row.system .message-avatar{display:none}.telegram-chat-panel .message-bubble.system{max-width:min(86%,640px);background:var(--chip-bg);border:1px dashed var(--border);color:var(--text-secondary);text-align:center}.telegram-chat-panel .message-bubble.system .message-author{color:var(--text-muted);font-weight:700;letter-spacing:.04em}.message-menu-trigger{position:absolute;top:6px;right:6px}.message-row:hover .message-menu-trigger,.message-row:focus-within .message-menu-trigger{opacity:1;pointer-events:auto}.telegram-compose{margin:0;padding:6px 10px 8px;border-top:1px solid var(--border);background:var(--bg-surface)}.telegram-compose .chat-compose-field{gap:0}.telegram-compose .chat-compose-control{gap:0;align-items:stretch;min-height:42px;border:1px solid var(--border-strong);border-radius:14px;background:var(--input-bg);box-shadow:var(--shadow-sm);overflow:hidden;transition:border-color .16s ease,box-shadow .16s ease}.telegram-compose .chat-compose-input-shell textarea{min-height:40px;height:40px;max-height:35vh;padding:10px 12px;border:0;border-radius:0;background:transparent;color:var(--text-primary);box-shadow:none;line-height:20px;font-weight:var(--fw-medium);overflow-y:hidden;resize:none;vertical-align:top}.telegram-compose .chat-compose-input-shell textarea:focus{box-shadow:none}.telegram-compose .chat-compose-send{position:relative;width:46px;min-width:46px;min-height:40px;height:auto;padding:0;display:grid;place-items:center;align-self:stretch;border:0;border-radius:0;background:var(--selected-bg);color:var(--primary);box-shadow:none;line-height:1;opacity:1;transition:background-color .16s ease,border-color .16s ease,color .16s ease,box-shadow .16s ease}.telegram-compose .chat-compose-send:before{content:"";position:absolute;left:0;top:50%;width:1px;height:20px;transform:translateY(-50%);border-radius:999px;background:var(--border-strong)}.telegram-compose .chat-compose-control:focus-within{border-color:var(--primary);box-shadow:var(--focus-shadow)}.telegram-compose .chat-compose-control:focus-within .chat-compose-send:before{background:var(--primary);opacity:.45}.telegram-compose .chat-compose-send:not(:disabled){background:var(--primary);color:#fff}.telegram-compose .chat-compose-send:not(:disabled):hover{background:var(--primary-hover);color:#fff}.telegram-compose .chat-compose-send:disabled{cursor:default;color:var(--primary);background:var(--selected-bg);opacity:1}.telegram-compose .chat-compose-send-icon{width:18px;height:18px;display:block;fill:currentColor;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;transform:translate(1px)}.telegram-compose .chat-compose-send-progress{width:16px;height:16px;border-radius:999px;border:2px solid rgba(255,255,255,.55);border-top-color:#fff;animation:spin .8s linear infinite}.telegram-empty-chat,.telegram-empty-stage{border-style:solid;border-color:var(--border-soft);background:var(--bg-card)}.loading-panel{display:flex;gap:14px;align-items:flex-start;padding:16px 18px;border-radius:18px;background:var(--bg-card);border:1px solid var(--border-soft);color:var(--text-soft)}.loading-panel strong{display:block;color:var(--text-main);margin-bottom:4px}.loading-panel p{margin:0;line-height:1.45}.loading-spinner{width:18px;height:18px;margin-top:2px;border-radius:999px;border:2px solid var(--border-strong);border-top-color:var(--primary);animation:spin .8s linear infinite}.typing-indicator{display:inline-flex;gap:6px;align-items:center;min-height:22px}.typing-indicator span{width:8px;height:8px;border-radius:999px;background:var(--text-muted);opacity:.65;animation:bounce 1.2s infinite ease-in-out}.typing-indicator span:nth-child(2){animation-delay:.15s}.typing-indicator span:nth-child(3){animation-delay:.3s}.empty-panel-wide{min-height:220px;display:grid;align-content:center}.empty-chat-stage{min-height:560px}.hero-top{display:flex;justify-content:space-between;gap:20px;align-items:flex-start}.status{display:grid;gap:16px}.status div{padding:14px 16px;border-radius:16px;background:var(--bg-subtle);border:1px solid var(--border);box-shadow:var(--shadow-sm)}.status-inline{grid-template-columns:repeat(auto-fit,minmax(180px,1fr))}.api-docs-page{max-width:1200px}.api-doc-hero{display:flex;justify-content:space-between;gap:24px;align-items:flex-start;margin-top:0;background:var(--bg-surface);border:1px solid var(--border);box-shadow:var(--shadow-sm)}.api-doc-hero-copy{max-width:760px}.api-doc-title{margin-bottom:16px}.api-doc-lead{max-width:760px}.api-doc-hero-actions{display:flex;align-items:flex-start;flex:0 0 auto}.api-doc-summary{margin-top:20px;padding:20px 24px}.api-doc-summary-grid{display:grid;gap:14px;grid-template-columns:repeat(3,minmax(0,1fr))}.api-doc-summary-card,.api-doc-card,.api-endpoint-card{padding:18px;border-radius:20px;border:1px solid var(--border);background:var(--bg-surface);box-shadow:var(--shadow-sm)}.api-doc-summary-card{display:grid;gap:8px}.api-doc-summary-card strong{font-size:.92rem}.api-doc-summary-card span{color:var(--text-soft);line-height:1.45}.api-doc-grid{display:grid;gap:16px;grid-template-columns:repeat(auto-fit,minmax(240px,1fr))}.api-doc-grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}.api-doc-grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}.api-doc-card{display:grid;gap:12px}.api-doc-card-soft{background:var(--bg-subtle)}.api-doc-card strong,.api-doc-card h3,.api-endpoint-card h3{margin:0}.api-doc-card p,.api-endpoint-card p{margin:0;color:var(--text-soft);line-height:1.55}.api-doc-list{margin:0;padding-left:18px;color:var(--text-soft);line-height:1.6}.api-doc-list li+li{margin-top:6px}.api-doc-card code{color:var(--text-primary);font-size:.92rem}.api-code{margin:0;padding:14px;overflow-x:auto;border-radius:16px;background:var(--bg-subtle);border:1px solid var(--border);color:var(--text-primary);font-size:.88rem;line-height:1.5}.api-endpoint-list{display:grid;gap:14px}.api-endpoint-head{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin-bottom:12px}.api-endpoint-head code{font-size:.98rem;color:var(--text-main)}.api-endpoint-meta{display:flex;flex-wrap:wrap;gap:10px 18px;margin-top:12px;color:var(--text-soft);font-size:.9rem}.api-endpoint-note{margin-top:12px;padding-top:12px;border-top:1px solid var(--border)}.method-pill,.status-pill{display:inline-flex;align-items:center;justify-content:center;min-height:28px;padding:4px 10px;border-radius:999px;font-size:.8rem;font-weight:700;text-transform:uppercase;letter-spacing:.06em}.method-pill.get{background:var(--tone-success-bg);border:1px solid var(--tone-success-border);color:var(--tone-success-text)}.method-pill.post{background:var(--tone-info-bg);border:1px solid var(--tone-info-border);color:var(--tone-info-text)}.method-pill.patch{background:var(--bg-subtle);border:1px solid var(--border);color:var(--text-secondary)}.method-pill.delete{background:var(--danger-bg);border:1px solid var(--danger-border);color:var(--danger-text)}.status-pill.active{background:var(--tone-success-bg);border:1px solid var(--tone-success-border);color:var(--tone-success-text)}.status-pill.inactive{background:var(--bg-subtle);border:1px solid var(--border);color:var(--text-secondary)}.desktop-alpha-page{max-width:1200px}.desktop-alpha-hero{display:flex;justify-content:space-between;gap:24px;align-items:flex-start;margin-top:0;background:var(--bg-surface);border:1px solid var(--border);box-shadow:var(--shadow-sm)}.desktop-alpha-copy{max-width:760px}.desktop-alpha-title{margin-bottom:16px}.desktop-alpha-lead{max-width:760px}.desktop-alpha-actions{display:flex;align-items:flex-start;flex:0 0 auto}.desktop-alpha-status-panel{margin-top:20px}.desktop-alpha-status-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-start}.desktop-alpha-pill{display:inline-flex;align-items:center;justify-content:center;min-height:32px;padding:6px 12px;border-radius:999px;background:var(--tone-neutral-bg);border:1px solid var(--tone-neutral-border);color:var(--tone-neutral-text);font-size:.85rem;font-weight:700}.desktop-alpha-note-list,.desktop-alpha-grid{display:grid;gap:16px}.desktop-alpha-note-list{margin-top:18px;grid-template-columns:repeat(3,minmax(0,1fr))}.desktop-alpha-note-card,.desktop-alpha-card{padding:18px;border-radius:20px;border:1px solid var(--border);background:var(--bg-surface);box-shadow:var(--shadow-sm)}.desktop-alpha-note-card p,.desktop-alpha-card p{margin:0;color:var(--text-soft);line-height:1.55}.desktop-alpha-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.desktop-alpha-card{display:grid;gap:14px}.desktop-alpha-card-head{display:flex;justify-content:space-between;gap:12px;align-items:center}.desktop-alpha-card-head strong{font-size:1rem}.desktop-alpha-card-head span{color:var(--text-soft);font-size:.88rem}.desktop-alpha-disabled{justify-self:flex-start;opacity:.72;cursor:not-allowed}.skill-create-form,.skill-empty-panel{margin-top:18px}.skill-list{display:grid;gap:16px;margin-top:18px}.skills-integration-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:12px;margin-top:14px}.skills-integration-grid-compact{grid-template-columns:1fr}@media (min-width: 860px){.skills-integration-grid-compact{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (min-width: 1160px){.skills-integration-grid-compact{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (min-width: 1480px){.skills-integration-grid-compact{grid-template-columns:repeat(3,minmax(0,1fr))}}.integration-card{height:100%;display:flex;flex-direction:column}.integration-card-empty{opacity:.85;border-style:dashed}.integration-tile{gap:10px;min-height:210px}.integration-card-headrow{display:grid;grid-template-columns:auto minmax(0,1fr);gap:10px;align-items:center}.integration-card-title-group{min-width:0}.integration-title{display:block;margin:0;font-size:1rem}.integration-card-meta{margin:6px 0 0;display:flex;gap:8px;align-items:center;color:var(--text-muted);font-size:.84rem}.integration-pill{display:inline-flex;align-items:center;justify-content:center;min-height:18px;padding:2px 8px;border-radius:999px;background:var(--tone-success-bg);border:1px solid var(--tone-success-border);color:var(--tone-success-text);font-size:.68rem;font-weight:700;letter-spacing:.06em}.integration-card-description{margin:0;color:var(--text-secondary);font-size:.88rem;line-height:1.4;min-height:40px}.integration-status-row{margin-top:auto;padding-top:8px;display:flex;align-items:center;justify-content:space-between}.integration-toggle-block{margin-top:auto;min-height:54px}.integration-toggle-block .integration-status-row{margin-top:0}.integration-toggle-helper{margin:6px 0 0;color:var(--text-muted);font-size:.82rem;line-height:1.35}.integration-telemetry-slot{min-height:0}.integration-status-text{color:var(--text-secondary);font-size:.9rem;font-weight:600}.integration-card-empty .integration-status-text{color:var(--text-muted)}.integration-switch{display:inline-flex;align-items:center;cursor:pointer}.integration-switch input{position:absolute;opacity:0;pointer-events:none}.integration-switch:has(input:disabled),.integration-switch-disabled{cursor:not-allowed}.integration-switch-track{width:42px;height:24px;border-radius:999px;background:var(--bg-subtle);border:1px solid var(--border-strong);display:inline-flex;align-items:center;padding:2px}.integration-switch input:disabled+.integration-switch-track{opacity:.5;cursor:not-allowed}.integration-switch-thumb{width:18px;height:18px;border-radius:50%;background:var(--bg-surface);border:1px solid var(--border);box-shadow:var(--shadow-sm);transition:transform .12s ease}.integration-switch input:checked+.integration-switch-track{background:var(--switch-on-bg);border-color:var(--switch-on-border)}.integration-switch input:checked+.integration-switch-track .integration-switch-thumb{transform:translate(18px)}.integration-tile-icon{width:36px;height:36px;border-radius:10px;display:grid;place-items:center;font-size:.75rem;font-weight:700;color:var(--text-secondary);background:var(--bg-subtle);border:1px solid var(--border)}.integration-tile-icon-webhook{color:var(--tone-accent-text);background:var(--tone-accent-bg);border-color:var(--tone-accent-border)}.integration-config-button{width:100%;margin-top:0}.integration-settings-page{margin-top:18px}.integration-settings-page-head{display:flex;justify-content:flex-start;margin-bottom:10px}.integration-back-button{display:inline-flex;align-items:center;gap:8px}.webhook-quickstart{display:grid;gap:14px;margin-top:18px;padding:18px;border-radius:20px;border:1px solid var(--border);background:var(--bg-subtle)}.webhook-quickstart-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-start}.webhook-quickstart-head h5{margin:4px 0 0;color:var(--text-main);font-size:1rem}.webhook-quickstart-steps{display:grid;gap:10px;grid-template-columns:repeat(3,minmax(0,1fr))}.webhook-quickstart-steps span{padding:10px 12px;border-radius:14px;border:1px solid var(--border);background:var(--bg-surface);color:var(--text-soft);font-size:.9rem;line-height:1.35}.webhook-code{max-height:360px}.webhook-send-note{margin-top:14px}.skill-card{padding:14px;border-radius:16px;background:var(--bg-surface);border:1px solid var(--border);box-shadow:var(--shadow-sm)}.skill-card-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-start}.skill-card-head strong{display:block;font-size:1rem;color:var(--text-main)}.skill-card-meta-row{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}.skill-card-date{color:var(--text-soft);font-size:.92rem;white-space:nowrap}.meta-list-compact{margin-top:18px}.meta-list-compact dt{color:var(--text-muted)}.meta-list-compact dd{color:var(--text-main)}.mono-value{font-family:var(--font-mono);font-size:.92rem;word-break:break-all;color:var(--text-primary);line-height:1.5}dt{font-size:.85rem;color:var(--text-muted)}dd{margin:8px 0 0;font-weight:600}.skill-single-note{display:grid;gap:10px;margin-top:18px;padding:14px 16px;border-radius:18px;border:1px solid var(--border);background:var(--bg-subtle)}.skill-single-note p{margin:0;color:var(--text-soft);line-height:1.45}@keyframes spin{to{transform:rotate(360deg)}}@keyframes shimmer{0%{background-position:200% 0}to{background-position:-200% 0}}@keyframes bounce{0%,80%,to{transform:translateY(0);opacity:.4}40%{transform:translateY(-3px);opacity:1}}@media (max-width: 640px){.page{padding:20px 16px 40px}.auth-hero-shell{padding:16px}.auth-hero-panel{min-height:auto;grid-template-columns:1fr}.auth-hero-copy,.auth-glass-card{padding:22px;border-radius:22px}.auth-hero-title{font-size:2.6rem}.auth-value-grid{grid-template-columns:1fr}.auth-product-preview-head,.auth-product-chat-header{flex-direction:column;align-items:flex-start}.auth-preview-bubble{max-width:100%}.auth-card,.hero,.panel{padding:20px}.auth-card-register{grid-template-columns:1fr;padding:0}.auth-card-side,.auth-card-form{padding:24px 20px}.hero-top{flex-direction:column}.workspace-shell{grid-template-columns:1fr;padding:16px;gap:16px}.workspace-topbar,.queen-hero,.catalog-hero,.catalog-queen-card,.section-toolbar,.section-toolbar-compact,.workspace-topbar-side,.event-card-top{flex-direction:column;grid-template-columns:1fr}.queen-grid,.detail-grid,.public-bot-grid{grid-template-columns:1fr}.public-bot-hero,.public-bot-cta-row{flex-direction:column}.public-highlight-list,.chat-layout{grid-template-columns:1fr}.messenger-brand{flex-direction:column}.chat-compose{grid-template-columns:1fr}.message-row{gap:8px}.message-avatar{width:32px;height:32px;flex-basis:32px;font-size:.8rem}.message-bubble{max-width:100%}.skill-card-head{flex-direction:column}.skill-card-date{white-space:normal}.webhook-quickstart-head{flex-direction:column}.webhook-quickstart-steps{grid-template-columns:1fr}.queen-hero-main{align-items:flex-start}.queen-avatar-hero{width:76px;height:76px;border-radius:22px}}@media (max-width: 1080px){.auth-hero-panel{grid-template-columns:1fr}.auth-value-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media (max-width: 820px){.auth-value-grid{grid-template-columns:1fr}.api-doc-hero{flex-direction:column}.api-doc-summary-grid,.api-doc-grid-3{grid-template-columns:1fr}}.status-badge{display:inline-flex;align-items:center;gap:6px;padding:4px 10px;border-radius:999px;font-size:.78rem;font-weight:600;letter-spacing:.02em}.status-badge-compact{padding:3px 8px;font-size:.72rem}.status-badge-dot{width:6px;height:6px;border-radius:50%;background:currentColor}.status-badge-gray{background:var(--bg-subtle);color:var(--text-muted);border:1px solid var(--border)}.status-badge-yellow{background:#ffc1071a;color:#ffc107;border:1px solid rgba(255,193,7,.3)}.status-badge-green{background:var(--tone-success-bg);color:var(--tone-success-text);border:1px solid var(--tone-success-border)}.status-badge-red{background:#f443361a;color:#f44336;border:1px solid rgba(244,67,54,.3)}.metric-card{padding:10px 12px;background:var(--bg-surface);border:1px solid var(--border);border-radius:12px;text-align:center;min-width:0}.metric-card-icon{margin-bottom:6px;font-size:1.2rem}.metric-card-value{font-size:1.1rem;font-weight:700;color:var(--text-main);margin-bottom:4px;word-break:break-word}.metric-card-label{font-size:.75rem;color:var(--text-muted);line-height:1.3}.metric-card-trend{position:absolute;top:8px;right:8px;font-size:.85rem}.metric-card-trend-up{color:var(--tone-success-text)}.metric-card-trend-down{color:var(--tone-error-text)}.empty-state{padding:32px 24px;text-align:center;background:var(--bg-subtle);border:2px dashed var(--border);border-radius:16px}.empty-state-icon{margin-bottom:16px;font-size:2.5rem;opacity:.5}.empty-state-title{margin:0 0 8px;font-size:1.1rem;color:var(--text-main)}.empty-state-description{margin:0 0 16px;color:var(--text-secondary);font-size:.9rem;line-height:1.5}.empty-state-action{margin-top:8px}.section-card{margin-top:16px;padding:16px;background:var(--bg-surface);border:1px solid var(--border);border-radius:16px}.section-card-header{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:16px}.section-card-title-group{flex:1;min-width:0}.section-card-title{margin:0 0 4px;font-size:1rem;color:var(--text-main)}.section-card-subtitle{margin:0;font-size:.85rem;color:var(--text-muted);line-height:1.4}.section-card-actions{display:flex;gap:8px;flex-shrink:0}.webhook-onboarding-card{padding:24px;background:linear-gradient(135deg,var(--bg-subtle) 0%,var(--bg-surface) 100%);border:2px solid var(--tone-accent-border);border-radius:20px;margin-bottom:24px}.webhook-onboarding-header h3{margin:0 0 8px;font-size:1.15rem;color:var(--text-main)}.webhook-onboarding-description{margin:0;color:var(--text-secondary);font-size:.9rem;line-height:1.5}.webhook-onboarding-steps{display:grid;gap:14px;margin:20px 0}.webhook-onboarding-step{display:flex;gap:12px;align-items:flex-start;padding:12px;background:var(--bg-surface);border:1px solid var(--border);border-radius:12px}.webhook-onboarding-step-number{width:28px;height:28px;border-radius:50%;background:var(--tone-accent-bg);color:var(--tone-accent-text);border:1px solid var(--tone-accent-border);display:flex;align-items:center;justify-content:center;font-size:.85rem;font-weight:700;flex-shrink:0}.webhook-onboarding-step strong{display:block;margin-bottom:4px;font-size:.95rem;color:var(--text-main)}.webhook-onboarding-step p{margin:0;font-size:.85rem;color:var(--text-secondary);line-height:1.4}.webhook-onboarding-example{margin:20px 0;padding:16px;background:var(--bg-surface);border:1px solid var(--border);border-radius:12px}.webhook-onboarding-example strong{display:block;margin-bottom:8px;font-size:.9rem;color:var(--text-main)}.webhook-onboarding-code{margin:0;padding:12px;background:var(--bg-subtle);border-radius:8px;font-size:.82rem;line-height:1.5;overflow-x:auto;color:var(--text-secondary)}.webhook-onboarding-cta{width:auto;margin-top:16px;padding:10px 24px;font-size:.95rem;max-width:300px}.webhook-onboarding-compact .webhook-onboarding-cta{padding:8px 20px;font-size:.9rem}.webhook-onboarding-compact{padding:16px;margin-bottom:16px;border-width:1px}.webhook-onboarding-compact .webhook-onboarding-header h4{margin:0 0 8px;font-size:1rem;color:var(--text-main)}.webhook-onboarding-compact .webhook-onboarding-description{margin:0 0 16px;font-size:.85rem;line-height:1.5;color:var(--text-secondary)}.webhook-onboarding-steps-compact{gap:12px;margin:16px 0}.webhook-onboarding-steps-compact .webhook-onboarding-step{padding:10px}.webhook-onboarding-steps-compact .webhook-onboarding-step strong{font-size:.88rem}.webhook-onboarding-steps-compact .webhook-onboarding-step p{font-size:.82rem;margin-top:4px}.webhook-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:16px}.webhook-logs-table-wrapper{overflow-x:auto;margin-top:12px;max-height:400px;overflow-y:auto}.webhook-logs-table{width:100%;border-collapse:collapse;font-size:.85rem}.webhook-logs-table thead{background:var(--bg-subtle);border-bottom:2px solid var(--border)}.webhook-logs-table th{padding:8px 10px;text-align:left;font-weight:600;color:var(--text-muted);font-size:.78rem;text-transform:uppercase;letter-spacing:.05em;white-space:nowrap}.webhook-logs-table tbody tr{border-bottom:1px solid var(--border);transition:background-color .15s ease}.webhook-logs-table tbody tr:hover{background:rgba(var(--bg-subtle-rgb, 255, 255, 255),.03)}.webhook-logs-table td{padding:8px 10px;vertical-align:middle}.webhook-log-time{white-space:nowrap;color:var(--text-secondary);font-size:.85rem}.log-status-badge{display:inline-block;padding:3px 8px;border-radius:6px;font-size:.8rem;font-weight:600}.log-status-success{background:#4caf5014;color:var(--tone-success-text)}.log-status-failed{background:#f443360f;color:#f44336}.log-status-pending{background:#ffc1070f;color:#ffc107}.log-status-retrying{background:#2196f31a;color:#2196f3}.log-error-message{margin-top:4px;font-size:.78rem;color:var(--text-muted);max-width:200px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.webhook-log-code{font-family:var(--font-mono);font-size:.85rem}.code-success{color:var(--tone-success-text)}.code-error{color:#f44336}.webhook-log-duration{color:var(--text-secondary);font-size:.85rem}.retry-badge{display:inline-flex;align-items:center;justify-content:center;min-width:24px;padding:2px 6px;border-radius:999px;background:#ffc10726;color:#ff9800;font-size:.8rem;font-weight:700}.webhook-log-actions{white-space:nowrap}.webhook-logs-loading{display:flex;align-items:center;gap:12px;padding:24px;color:var(--text-muted);font-size:.9rem}.webhook-logs-empty{padding:40px 24px;text-align:center;color:var(--text-muted)}.webhook-logs-empty-icon{font-size:3rem;margin-bottom:12px;opacity:.6}.webhook-logs-empty-title{margin:0 0 8px;font-size:1rem;font-weight:600;color:var(--text-secondary)}.webhook-logs-empty p{margin:0 0 8px}.webhook-logs-empty-hint{font-size:.85rem;color:var(--text-soft);margin-bottom:20px}.webhook-logs-empty-actions{margin-top:20px}.webhook-logs-test-button{opacity:.6;cursor:not-allowed}.breadcrumbs{display:flex;align-items:center;gap:4px;font-size:.78rem;margin:0;padding:0 2px;flex-wrap:wrap;color:var(--text-muted)}.breadcrumbs ol{display:contents;list-style:none;margin:0;padding:0}.breadcrumbs li{display:inline-flex;align-items:center}.breadcrumbs button{background:transparent;border:1px solid transparent;border-radius:999px;padding:4px 6px;color:var(--text-muted);cursor:pointer;font-size:inherit;box-shadow:none}.breadcrumbs button:hover{color:var(--tone-accent-text);border-color:var(--border);background:var(--bg-subtle);text-decoration:none}.breadcrumbs li[aria-hidden=true]{color:var(--text-muted);margin:0 2px}.webhook-status-header{display:flex;align-items:center;gap:12px;margin-bottom:16px}.webhook-status-label{font-size:.9rem;color:var(--text-secondary)}.webhook-error-banner{margin-top:12px;padding:12px;background:#f443361a;border-radius:8px;border:1px solid rgba(244,67,54,.3)}.webhook-error-title{color:#f44336;font-size:.85rem;font-weight:600}.webhook-error-message{margin:4px 0 0;font-size:.85rem;color:#f44336}.webhook-description{margin-top:12px;font-size:.85rem;color:var(--text-muted)}.webhook-action-row{margin-top:16px}.webhook-send-note{margin-top:12px}.webhook-copy-button{margin-top:8px}.webhook-error-boundary{padding:24px;background:var(--bg-surface);border:1px solid var(--border);border-radius:12px;text-align:center}.webhook-error-boundary-content h3{margin:0 0 8px;font-size:1.1rem;color:var(--text-main)}.webhook-error-boundary-content p{margin:0 0 16px;color:var(--text-secondary);font-size:.9rem}.webhook-error-details{margin:16px 0;text-align:left}.webhook-error-details summary{cursor:pointer;color:var(--text-muted);font-size:.85rem;-webkit-user-select:none;user-select:none}.webhook-error-details pre{margin-top:8px;padding:12px;background:var(--bg-muted);border-radius:8px;font-size:.8rem;overflow-x:auto;color:#f44336}.webhook-logs-pagination{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:16px;padding-top:16px;border-top:1px solid var(--border)}.pagination-info{font-size:.85rem;color:var(--text-secondary);font-weight:500}.secondary-button-compact{padding:6px 12px;font-size:.85rem}@media (max-width: 768px){.webhook-onboarding-steps{grid-template-columns:1fr}.webhook-actions{flex-direction:column}.webhook-actions button{width:100%}.section-card-header{flex-direction:column;align-items:flex-start}.section-card-actions{width:100%}.section-card-actions button{flex:1}.webhook-logs-table{font-size:.82rem}.webhook-logs-table th,.webhook-logs-table td{padding:8px 10px}.webhook-log-header-duration,.webhook-log-duration,.webhook-log-header-retries,.webhook-log-retries{display:none}}@media (min-width: 769px) and (max-width: 1024px){.metric-card-value{font-size:1rem}.metric-card-label{font-size:.72rem}}.webhook-compact-panel{display:flex;flex-direction:column;gap:12px}.webhook-block{padding:10px 14px;background:var(--bg-surface);border:1px solid var(--border);border-radius:6px;color:var(--text-primary)}.webhook-block-primary{background:linear-gradient(135deg,var(--tone-success-bg) 0%,var(--bg-surface) 100%);border:2px solid var(--tone-success-border);box-shadow:0 2px 8px #22c55e24}.webhook-block-header{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:6px}.webhook-recommended-badge,.webhook-advanced-badge{flex:0 0 auto;display:inline-flex;align-items:center;min-height:22px;padding:2px 9px;border-radius:999px;font-size:.68rem;font-weight:700;letter-spacing:0}.webhook-recommended-badge{background:var(--success);color:#fff}.webhook-advanced-badge{background:var(--tone-neutral-bg);color:var(--tone-neutral-text);border:1px solid var(--tone-neutral-border)}.webhook-block-secondary{background:var(--bg-subtle);border:1px dashed var(--border-strong)}.webhook-block-title{margin:0;font-size:.95rem;font-weight:700;color:var(--text-primary);letter-spacing:0}.webhook-block-title-spaced{margin-top:10px}.webhook-description{margin:0 0 12px;font-size:.85rem;color:var(--text-secondary);line-height:1.5}.webhook-subtitle{margin:0 0 8px;color:var(--text-primary);font-size:.88rem;font-weight:700;letter-spacing:0}.webhook-subtitle-spaced{margin-top:16px}.webhook-field-row{display:flex;align-items:center;gap:6px;margin-bottom:6px}.webhook-user-id-row{align-items:center;margin-bottom:12px}.webhook-field-label{flex:0 0 auto;color:var(--text-secondary);font-size:.88rem;margin-right:2px}.webhook-user-id-value{padding:6px 12px;border-radius:4px;border:1px solid var(--tone-success-border);background:var(--tone-success-bg);color:var(--tone-success-text);font-family:Courier New,monospace;font-size:.88rem;font-weight:800}.webhook-url-value{flex:1;padding:5px 7px;background:var(--control-bg-strong);border:1px solid var(--tone-accent-border);border-radius:4px;font-size:.72rem;font-family:Courier New,monospace;color:var(--tone-accent-text);font-weight:600;overflow-x:auto;white-space:nowrap;word-break:break-all;max-width:100%}.webhook-token-value{flex:1;padding:5px 7px;background:var(--control-bg-strong);border:1px solid var(--border);border-radius:4px;font-size:.72rem;font-family:Courier New,monospace;color:var(--text-secondary);overflow-x:auto;white-space:nowrap}.webhook-copy-btn{padding:3px 7px;font-size:.68rem;background:transparent;color:var(--text-muted);border:1px solid var(--border);border-radius:3px;cursor:pointer;transition:all .15s ease;white-space:nowrap;font-weight:500}.webhook-copy-btn:hover{background:var(--control-bg-strong);color:var(--text-primary);border-color:var(--text-secondary)}.webhook-copy-btn:disabled{opacity:.4;cursor:not-allowed}.webhook-copy-btn-inline{margin-top:6px}.webhook-helper-text{margin:6px 0 0;font-size:.75rem;color:var(--text-muted);line-height:1.4}.webhook-status-compact{display:flex;align-items:center;gap:6px;margin-bottom:8px}.webhook-status-label{font-size:.78rem;color:var(--text-primary);font-weight:500}.webhook-status-details{display:flex;flex-direction:column;gap:3px;padding-left:24px}.webhook-status-detail-item{display:flex;justify-content:space-between;gap:8px;font-size:.72rem}.webhook-status-detail-label{color:var(--text-muted)}.webhook-status-detail-value{color:var(--text-primary);font-weight:500;text-align:right}.webhook-error-inline{margin-top:6px;padding:4px 7px;background:#f443360f;border-left:2px solid #f44336;border-radius:3px;font-size:.72rem;color:#d32f2f}.webhook-code-block{margin:0;padding:7px 9px;background:var(--control-bg-strong);border:1px solid var(--border);border-radius:4px;font-size:.68rem;line-height:1.5;overflow-x:auto;color:var(--text-primary)}.webhook-code-block code{font-family:Courier New,monospace}.webhook-block-events{padding:10px 14px;border-top:1px solid var(--border);margin-top:4px}.webhook-block-events .webhook-logs-table-wrapper{margin-top:6px}.webhook-block-events .webhook-logs-table{font-size:.72rem}.webhook-block-events .webhook-logs-table th,.webhook-block-events .webhook-logs-table td{padding:4px 6px}.webhook-block-events .webhook-logs-table th{font-size:.68rem;font-weight:600;text-transform:uppercase;letter-spacing:.3px}@media (max-width: 768px){.webhook-block{padding:8px 10px}.webhook-field-row{flex-direction:column;align-items:stretch;gap:4px}.webhook-copy-btn{width:100%;text-align:center}.webhook-url-value,.webhook-token-value{font-size:.7rem}.webhook-metric-item{flex-direction:column;gap:2px}}
