/* Shared navigation for all client sections. */
.account-subscription-link { display:inline-flex;align-items:center;min-height:40px;color:#2563eb;font-size:14px;text-underline-offset:4px; }
.client-sidebar{box-sizing:border-box;background:#101010;color:#fff;position:sticky;top:0;height:100vh;display:flex;flex-direction:column;align-items:stretch;padding:24px 12px;margin:0;border:0;gap:20px;overflow:auto;font-family:Inter,sans-serif;letter-spacing:-.04em}
.client-sidebar .brand,.top .brand,.topbar.client-sidebar .brand{display:block;background:transparent;border:0;border-radius:0;padding:0 4px;margin:0;width:auto;max-width:100%}
.service-logo{display:block;width:208px;max-width:100%;height:auto}
.client-sidebar .client-nav{display:flex;flex-direction:column;align-items:stretch;gap:2px;padding:0;margin:0;background:none;border:0;border-radius:0;overflow:visible;max-width:none}
.client-sidebar .client-nav a,.client-sidebar .client-nav button{display:flex;align-items:center;justify-content:flex-start;box-sizing:border-box;width:100%;min-height:40px;margin:0;border:0;border-radius:9999px;padding:11px 16px;background:transparent;color:#a1a1aa;text-align:left;text-decoration:none;font-family:Inter,sans-serif;font-size:12px;font-weight:500;line-height:18px;letter-spacing:-.04em;white-space:normal;transform:none}
.client-sidebar .client-nav .active{background:#3b82f6;color:#fff}
.client-sidebar .client-nav a:hover,.client-sidebar .client-nav button:hover{background:#262626;color:#fff}
.client-sidebar .client-nav .active:hover{background:#3b82f6}
.client-sidebar .top-actions{position:static;display:flex;margin-top:auto;padding:0 16px}
.client-sidebar .top-actions button{background:none;color:#d1d5db;border:0;padding:5px 0;font-size:12px;text-decoration:none}
body:has(.shell)>.top{display:none}body:has(.shell) .shell{min-height:100vh;grid-template-columns:240px minmax(0,1fr)}body:has(.shell) .workspace{margin:10px 10px 10px 0;padding:32px;border-radius:48px}
.recipient-row{display:flex;align-items:end;gap:12px}.recipient-row label{flex:1;margin:14px 0}.recipient-row>button{margin-bottom:14px}.recipient-list+button{margin:0 12px 12px 0}
@media(max-width:800px){.client-sidebar{position:relative;height:auto;padding:16px;gap:12px}.client-sidebar .brand{max-width:calc(100% - 75px)!important}.client-sidebar .client-nav{flex-direction:row;overflow:auto}.client-sidebar .client-nav a,.client-sidebar .client-nav button{width:auto;flex:none;white-space:nowrap}.client-sidebar .top-actions{position:absolute;right:16px;top:16px;padding:0;margin:0}body:has(.shell) .workspace{margin:0 10px 10px;border-radius:24px;padding:20px 16px}.recipient-row{gap:8px}}

body>#workspace.workspace{grid-template-columns:240px minmax(0,1fr)}

.client-sidebar .top-actions button{display:block;line-height:18px;height:28px;min-height:0;margin:0;padding:5px 0;font-family:Inter,sans-serif;font-weight:400;letter-spacing:-.04em}

.client-sidebar .service-logo,.top .service-logo{width:150px;max-width:100%;height:auto}.support-link{margin-bottom:24px}

/* Consistent, readable navigation with decorative outline icons. */
.client-sidebar .client-nav a,.client-sidebar .client-nav button{font-size:14px;line-height:20px;min-height:44px;gap:10px;padding:12px 14px;letter-spacing:-.025em}
.client-sidebar .client-nav [data-nav]::before{content:"";display:block;width:18px;height:18px;flex:0 0 18px;background:currentColor;mask:var(--nav-icon) center/contain no-repeat;-webkit-mask:var(--nav-icon) center/contain no-repeat}
.client-sidebar .top-actions button{font-size:14px}
.client-sidebar [data-nav="overview"]{--nav-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%223%22%20y%3D%223%22%20width%3D%227%22%20height%3D%227%22%20rx%3D%221.5%22%2F%3E%3Crect%20x%3D%2214%22%20y%3D%223%22%20width%3D%227%22%20height%3D%227%22%20rx%3D%221.5%22%2F%3E%3Crect%20x%3D%223%22%20y%3D%2214%22%20width%3D%227%22%20height%3D%227%22%20rx%3D%221.5%22%2F%3E%3Crect%20x%3D%2214%22%20y%3D%2214%22%20width%3D%227%22%20height%3D%227%22%20rx%3D%221.5%22%2F%3E%3C%2Fsvg%3E")}
.client-sidebar [data-nav="chats"]{--nav-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M21%2011.5a8.5%208.5%200%200%201-8.5%208.5H4l-2%202V11.5a9.5%209.5%200%200%201%2019%200Z%22%2F%3E%3Cpath%20d%3D%22M7%209h9M7%2013h6%22%2F%3E%3C%2Fsvg%3E")}
.client-sidebar [data-nav="knowledge"]{--nav-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M12%205v16M12%205C9%203%206%203%203%204v15c3-1%206-1%209%202%203-3%206-3%209-2V4c-3-1-6-1-9%201Z%22%2F%3E%3C%2Fsvg%3E")}
.client-sidebar [data-nav="integrations"],.client-sidebar [data-nav="integration"]{--nav-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%223%22%20y%3D%225%22%20width%3D%2218%22%20height%3D%2214%22%20rx%3D%223%22%2F%3E%3Cpath%20d%3D%22m4%207%208%206%208-6%22%2F%3E%3C%2Fsvg%3E")}
.client-sidebar [data-nav="embed"],.client-sidebar [data-nav="installation"]{--nav-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%224%22%20y%3D%227%22%20width%3D%2216%22%20height%3D%2214%22%20rx%3D%224%22%2F%3E%3Cpath%20d%3D%22M12%203v4M8%2012v2M16%2012v2M9%2017h6M1%2012v4M23%2012v4%22%2F%3E%3C%2Fsvg%3E")}

.client-sidebar .top-actions{flex-direction:column;align-items:stretch;gap:18px}.sidebar-help{display:flex;align-items:center;justify-content:space-between;gap:8px;color:#d1d5db;text-decoration:none;font-size:13px;line-height:20px;letter-spacing:-.025em}.sidebar-help:hover{color:#fff}.sidebar-help:focus-visible{outline:2px solid #3b82f6;outline-offset:5px}
@media(max-width:800px){.client-sidebar .top-actions{position:static;flex-direction:row;justify-content:space-between;align-items:center;padding:0 14px}.client-sidebar .brand{max-width:100%!important}}

/* Secondary navigation follows the same rhythm as the main menu. */
.client-sidebar .top-actions{padding:16px 0 0;gap:2px;border-top:1px solid #262626}
.client-sidebar .sidebar-help,.client-sidebar .top-actions button{display:flex;align-items:center;justify-content:flex-start;gap:10px;width:100%;height:auto;min-height:44px;padding:12px 14px;margin:0;border:0;border-radius:24px;background:transparent;color:#a1a1aa;font-family:Inter,sans-serif;font-size:14px;font-weight:500;line-height:20px;letter-spacing:-.025em;text-align:left;text-decoration:none;white-space:normal}
.client-sidebar .sidebar-help:hover,.client-sidebar .top-actions button:hover{background:#262626;color:#fff}
.client-sidebar .sidebar-help::before,.client-sidebar .top-actions button::before{content:"";display:block;width:18px;height:18px;flex:0 0 18px;background:currentColor;mask:var(--action-icon) center/contain no-repeat;-webkit-mask:var(--action-icon) center/contain no-repeat}
@media(max-width:800px){.client-sidebar .top-actions{flex-wrap:wrap}.client-sidebar .sidebar-help,.client-sidebar .top-actions button{width:auto}}
.client-sidebar .sidebar-help{--action-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M4%2013v-1a8%208%200%200%201%2016%200v1M4%2012H3v6h4v-6H4Zm16%200h1v6h-4v-6h3ZM20%2018c0%203-3%203-6%203%22%2F%3E%3C%2Fsvg%3E")}
.client-sidebar .top-actions button{--action-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M9%204H4v16h5M15%208l4%204-4%204M9%2012h10%22%2F%3E%3C%2Fsvg%3E")}

.account-settings-dialog{width:min(520px,calc(100vw - 32px));box-sizing:border-box;border:1px solid #e5e7eb;border-radius:24px;padding:28px;background:#fff;color:#111;font:16px/1.5 Inter,sans-serif;max-height:90vh;overflow:auto}.account-settings-dialog::backdrop{background:rgb(0 0 0 / 38%)}.account-settings-dialog h2{font-size:24px;margin:0 0 16px}.account-settings-dialog p{color:#667085}.account-settings-dialog label{display:block;margin:16px 0}.account-settings-dialog input[type=password]{display:block;box-sizing:border-box;width:100%;padding:12px;border:1px solid #d0d5dd;border-radius:12px;margin-top:8px;font:inherit}.account-settings-dialog .account-delete-confirm{display:flex;align-items:flex-start;gap:10px;font-size:14px}.account-settings-dialog input[type=checkbox]{width:18px;height:18px;flex-shrink:0;margin-top:2px}.account-dialog-actions{display:flex;justify-content:flex-end;gap:12px;margin-top:24px}.account-settings-dialog button{padding:12px 18px;border-radius:24px;cursor:pointer;font:inherit}.account-delete-submit{background:#b42318;color:white;border:0}.account-settings-dialog .error{color:#b42318}.account-settings-dialog button:disabled{opacity:.5;cursor:wait}

.preparation-topbar{position:relative;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:20px 24px;margin:0 0 28px;background:#eff5ff;border:1px solid #dbe8ff;border-radius:18px;overflow:hidden;color:#1d3559}.preparation-topbar strong{font-size:14px;font-weight:600}.preparation-topbar p{font-size:12px;line-height:1.5;margin:6px 0 0;color:#566a88}.preparation-topbar a,.preparation-topbar button{font:500 12px Inter,sans-serif;flex-shrink:0;color:#2563eb;background:none;border:0;cursor:pointer;text-decoration:none}.preparation-topbar-track{height:3px;position:absolute;bottom:0;left:0;right:0;background:#dbe8ff;overflow:hidden}.preparation-topbar-track span{display:block;width:35%;height:100%;background:linear-gradient(90deg,#93c5fd,#3b82f6);animation:topbar-sweep 3s ease-in-out infinite}.preparation-topbar.is-ready{background:#f0f7ff}.preparation-topbar.is-failed{background:#fff7ed;border-color:#fed7aa}.preparation-topbar.is-failed strong{color:#9a3412}@keyframes topbar-sweep{from{transform:translateX(-100%)}to{transform:translateX(390%)}}@media(max-width:600px){.preparation-topbar{align-items:flex-start;flex-direction:column;padding:16px;gap:12px}}@media(prefers-reduced-motion:reduce){.preparation-topbar-track span{animation:none;margin-left:30%}}

.account-settings-dialog h3{font-size:18px;margin:20px 0 8px}.account-settings-dialog .account-password-submit{background:#3b82f6;color:#fff;border:0;width:100%}.account-settings-dialog .account-password-submit:hover{background:#2563eb}.account-settings-dialog .account-password-status{color:#166534;font-size:14px}.account-delete-section{border-top:1px solid #e5e7eb;margin:26px 0 20px;padding-top:20px}.account-delete-section summary{color:#b42318;cursor:pointer;font-size:14px}.account-settings-dialog [data-close]{display:block;margin-left:auto}

.password-field{display:block;position:relative;margin-top:8px}.password-field>input,.account-settings-dialog .password-field>input{margin-top:0;padding-right:52px}.password-field>.password-toggle,.account-settings-dialog .password-field>.password-toggle{position:absolute;right:4px;top:50%;transform:translateY(-50%);display:grid;place-items:center;width:40px;height:40px;padding:0;margin:0;border:0;border-radius:10px;background:transparent;color:#667085;cursor:pointer;box-shadow:none}.password-field>.password-toggle:hover{background:#eff5ff;color:#2563eb}.password-toggle:focus-visible{outline:2px solid #3b82f6;outline-offset:0}.password-eye-slash{display:none}.password-toggle[aria-pressed="true"] .password-eye-slash{display:block}

.preparation-topbar{flex-wrap:wrap}.preparation-topbar strong{display:block;line-height:1.5;min-height:1.5em}.preparation-single-track{flex:0 0 100%;height:5px;border-radius:20px;background:#dbe8ff;overflow:hidden}.preparation-single-track span{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#93c5fd,#3b82f6,#2563eb);width:35%}.preparation-single-track.active span{animation:topbar-sweep 2.6s ease-in-out infinite}.preparation-single-track.done span{width:100%;background:#3b82f6}.preparation-single-track.stopped span{width:0}@media(max-width:600px){.preparation-single-track{flex-basis:auto;width:100%}}@media(prefers-reduced-motion:reduce){.preparation-single-track.active span{animation:none;margin-left:30%}}

/* Account email notice shared by the portal, subscription and studio. */
.email-verification-notice {
  box-sizing: border-box; display: grid; grid-template-columns: 40px minmax(0,1fr) auto;
  align-items: center; gap: 16px; padding: 16px 20px; margin: 0 0 16px;
  background: #f8f9fa; border: 1px solid #e5e7eb; border-radius: 16px; color: #111;
  font-family: inherit; text-align: left;
}
.payment-gate > .email-verification-notice { margin-bottom: 0; }
.mail-notice-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: #eaf1ff; color: #2563eb; }
.mail-notice-icon::before { content: ''; width: 20px; height: 20px; background: currentColor; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='3'/%3E%3Cpath d='m4 7 8 6 8-6'/%3E%3C/svg%3E") center/contain no-repeat; }
.mail-notice-icon.is-verified::before { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 12 5 5 11-12'/%3E%3C/svg%3E"); }
.mail-notice-body { min-width: 0; }
.mail-notice-body > strong { display: block; color: #111; font-size: 16px; font-weight: 600; line-height: 1.4; }
.mail-notice-body > p { color: #374151; font-size: 14px; line-height: 1.5; margin: 4px 0 0; overflow-wrap: anywhere; }
.mail-notice-body bdi { color: #111; font-weight: 500; }
.email-verification-notice .mail-notice-resend {
  box-sizing: border-box; min-height: 44px; padding: 10px 16px; border: 1px solid #e5e7eb; border-radius: 12px;
  background: #fff; color: #2563eb; font-family: inherit; font-weight: 600; font-size: 14px; line-height: 1.35;
  text-align: center; cursor: pointer;
}
.email-verification-notice .mail-notice-resend:hover:not(:disabled) { background: #f0f5ff; border-color: #3b82f6; }
.email-verification-notice .mail-notice-resend:active:not(:disabled) { background: #eaf1ff; }
.email-verification-notice .mail-notice-resend:focus-visible { outline: 2px solid #2563eb; outline-offset: 3px; }
.email-verification-notice .mail-notice-resend:disabled { background: #f5f5f5; color: #6b7280; cursor: wait; }
@media (max-width: 620px) {
  .email-verification-notice { grid-template-columns: 32px minmax(0,1fr); align-items: start; gap: 10px 12px; padding: 16px; }
  .mail-notice-icon { width: 32px; height: 32px; border-radius: 8px; }
  .mail-notice-resend { grid-column: 2; justify-self: start; max-width: 100%; }
}

.floating-bot-controls{position:fixed;bottom:max(18px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);z-index:90;display:flex;align-items:center;justify-content:center;gap:20px;flex-wrap:wrap;width:max-content;max-width:calc(100vw - 32px);padding:14px 20px;background:#fff;border:1px solid #e5e7eb;border-radius:22px;box-shadow:0 8px 32px #0002;color:#101010}.bot-test-action{background:#397ef5;color:#fff!important;border-radius:30px;padding:12px 18px;text-decoration:none;white-space:nowrap}.bot-test-action[aria-disabled=true]{background:#e8edf5;color:#596477!important}.floating-bot-switch{display:flex!important;align-items:center;gap:10px;margin:0!important;white-space:nowrap}.floating-bot-switch input{appearance:none;width:42px!important;height:24px!important;min-height:0!important;padding:0!important;border:0!important;background:#b5bac4;border-radius:20px;position:relative;cursor:pointer}.floating-bot-switch input:before{content:'';position:absolute;width:18px;height:18px;top:3px;left:3px;background:#fff;border-radius:50%;transition:transform .15s}.floating-bot-switch input:checked{background:#397ef5}.floating-bot-switch input:checked:before{transform:translateX(18px)}.floating-bot-switch input:disabled{opacity:.5;cursor:default}.floating-bot-controls p{flex-basis:100%;margin:0;text-align:center;font-size:12px;max-width:480px}.password-hint{display:block;margin:8px 0;color:#667085;font-size:13px}.install-finish{display:flex;flex-wrap:wrap;gap:12px;margin:20px 0}.install-finish p{width:100%}@media(max-width:600px){.floating-bot-controls{gap:10px;width:calc(100vw - 24px);padding:12px;font-size:13px}.bot-test-action{padding:10px 12px}}
/* The customer portal has a root footer. Size the shell from actual siblings,
   including the footer when the bot controls dock in it. */
body:has(> .footer) { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
body:has(> .footer) > :is(.top,.footer) { flex: none; width: 100%; }
body:has(> .footer) > .top { margin-block: 0; }
body:has(> .footer) > #app { flex: 1 0 auto; min-height: 0; }
body:has(#app > .payment-gate) > :is(.top,.footer) { margin: 0; }
body:has(> .footer) > #app:has(> .shell) { display: flex; flex-direction: column; padding: 0; }
body:has(> .footer) #app > .shell { flex: 1 0 auto; min-height: 0; }
@media (min-width: 801px) and (max-height: 900px) {
  #app > .auth-layout { --entry-min: clamp(0px,calc(100dvh - 198px),668px); min-height: 0; padding-block: 24px; }
  #app > .auth-layout > .auth-card { min-height: var(--entry-min); }
  #app > .auth-layout > .story { align-self: stretch; height: auto; min-height: var(--entry-min); padding-block: 24px; gap: 16px; }
}
@media (max-width: 800px) {
  #app > .auth-layout, #app > .auth-layout > .auth-card { min-height: 0; }
}
@media (min-width: 801px) {
  body:has(> .footer) .shell > .client-sidebar { align-self: stretch; height: auto; max-height: 100vh; max-height: 100dvh; }
}
/* The studio and portal use the same document-end footer and control slot. */
#workspace.workspace:not([hidden]) { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
#workspace > .studio-layout { display: grid; flex: 1 0 auto; min-width: 0; }
#workspace > .page-footer { flex: none; margin: 0; border: 0; padding: 12px 24px; color: #a1a1aa; font-size: 11px; }
#workspace .studio-layout > main.page { display: flex; flex-direction: column; }
#workspace .studio-layout > main.page > #content { flex: 1 0 auto; }
@media (min-width: 801px) {
  #workspace .studio-layout > .topbar.client-sidebar { align-self: stretch; height: auto; max-height: 100vh; max-height: 100dvh; }
}
@media (max-width: 800px) {
  #workspace > .studio-layout { display: flex; flex-direction: column; }
  #workspace .studio-layout > main.page { flex: 1 0 auto; }
}
.bot-controls-slot { display: grid; place-items: center; min-height: var(--bot-controls-height,0px); }
body:has(#app > .payment-gate) .bot-controls-slot { display: none; }
:where(body:not(:has(#app > .payment-gate))) :is(.footer,.page-footer):has(> .bot-controls-slot) {
  display: grid; grid-template-columns: minmax(0,1fr) minmax(0, min(520px,52%)) minmax(0,1fr);
  align-items: center; gap: 12px; padding-block: 8px;
}
:where(body:not(:has(#app > .payment-gate))) :is(.footer,.page-footer) > .bot-controls-slot { grid-column: 2; grid-row: 1; }
.footer:has(> .bot-controls-slot) > :first-child, .page-footer:has(> .bot-controls-slot) > :first-child { grid-column: 1; grid-row: 1; width: auto; margin: 0; }
.footer:has(> .bot-controls-slot) > :last-child, .page-footer:has(> .bot-controls-slot) > :last-child { grid-column: 3; grid-row: 1; justify-self: end; }
.bot-controls-slot .floating-bot-controls {
  width: min(var(--bot-controls-width,520px),calc(100vw - 24px)); padding: 10px 16px; gap: 6px 16px; margin: 0;
  left: var(--bot-controls-center,50%);
  font: 500 14px/1.4 Inter,system-ui,sans-serif; letter-spacing: -.025em;
  text-transform: none; border-radius: 16px; box-shadow: none;
}
.bot-controls-slot .floating-bot-controls span { width: auto; margin: 0; letter-spacing: inherit; }
.bot-controls-slot .floating-bot-controls a { color: inherit; }
.bot-controls-slot.is-docked .floating-bot-controls { position: static; transform: none; width: 100%; max-width: none; }
.bot-controls-slot .floating-bot-controls .bot-test-action { font-size: 14px; }
:is(body:has(#app > .shell) > .footer, #workspace.workspace > .page-footer) > :is(:first-child,:last-child) {
  color: #a1a1aa; font-size: 12px; letter-spacing: .02em;
}
@media (min-width: 801px) {
  body:has(.client-sidebar) { --cabinet-sidebar-width: 240px; }
  #workspace > .studio-layout, body:has(.shell) #app > .shell { grid-template-columns: var(--cabinet-sidebar-width) minmax(0,1fr); }
  :is(body:has(#app > .shell) > .footer, #workspace.workspace > .page-footer) {
    display: grid; align-items: center; width: auto; margin-inline: 0 10px; padding-inline: 0; column-gap: 0;
    grid-template-columns: var(--cabinet-sidebar-width) minmax(0,1fr) minmax(0,min(520px,calc((100% - var(--cabinet-sidebar-width)) / 2))) minmax(0,1fr);
  }
  :is(body:has(#app > .shell) > .footer, #workspace.workspace > .page-footer) > :first-child { grid-column: 1; justify-self: start; margin-left: 28px; }
  :is(body:has(#app > .shell) > .footer, #workspace.workspace > .page-footer) > .bot-controls-slot { grid-column: 3; }
  :is(body:has(#app > .shell) > .footer, #workspace.workspace > .page-footer) > :last-child { grid-column: 4; justify-self: end; margin-right: 32px; }
}
@media (min-width: 801px) and (max-width: 1100px) {
  #workspace.workspace > .page-footer > :last-child { margin-right: 24px; }
}
@media (max-width: 800px) {
  :where(body:not(:has(#app > .payment-gate))) :is(.footer,.page-footer):has(> .bot-controls-slot) { grid-template-columns: minmax(0,1fr) auto; row-gap: 8px; }
  :where(body:not(:has(#app > .payment-gate))) :is(.footer,.page-footer) > .bot-controls-slot { grid-column: 1/-1; grid-row: 1; width: min(520px,100%); justify-self: center; }
  .footer:has(> .bot-controls-slot) > :first-child, .page-footer:has(> .bot-controls-slot) > :first-child { grid-row: 2; }
  .footer:has(> .bot-controls-slot) > :last-child, .page-footer:has(> .bot-controls-slot) > :last-child { grid-column: 2; grid-row: 2; }
  .bot-controls-slot .floating-bot-controls { gap: 4px 8px; padding: 8px 10px; }
  .bot-controls-slot .bot-test-action { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 10px; }
  .bot-controls-slot .floating-bot-switch { min-height: 40px; gap: 6px; font-size: 12px; }
}

.bot-ready-popup{position:fixed;top:max(20px,env(safe-area-inset-top));right:20px;z-index:100;display:flex;align-items:flex-start;gap:12px;box-sizing:border-box;width:360px;max-width:calc(100vw - 32px);padding:20px 44px 20px 18px;border:1px solid #dfe8f8;border-radius:20px;background:#fff;box-shadow:0 8px 32px #192d501a;color:#101010;font-family:Inter,system-ui,sans-serif}.bot-ready-popup strong{font-size:15px;font-weight:600}.bot-ready-popup p{margin:7px 0 0;font-size:13px;line-height:1.5;color:#667085}.bot-ready-icon{display:grid;place-items:center;flex-shrink:0;width:28px;height:28px;border-radius:50%;background:#edf4ff;color:#397ef5;font-size:18px}.bot-ready-popup .bot-ready-close{position:absolute;top:8px;right:8px;width:32px;height:32px;padding:0;border:0;border-radius:50%;background:transparent;color:#667085;font-size:24px;line-height:1;cursor:pointer}.bot-ready-close:hover{background:#f1f4f8}.bot-ready-close:focus-visible{outline:2px solid #397ef5;outline-offset:2px}@media(max-width:600px){.bot-ready-popup{top:12px;right:16px}}
