/* TGBizBot 3.3.143 — premium shared design and pixel-inspired bot catalog.
   Keeps existing runtime, forms, URLs and progressive navigation intact. */
:root{--tb-bg:#f1f5fc;--tb-sidebar:#fff;--tb-surface:#fff;--tb-surface-soft:#f7faff;--tb-text:#111e39;--tb-muted:#526585;--tb-border:#d9e4f5;--tb-accent:#1167da;--tb-accent-hover:#0555ba;--tb-mint:#06bdbc;--tb-radius:22px;--tb-shadow:0 9px 30px rgba(34,66,125,.065)}
body.tgbiz-shell{font-size:16px;line-height:1.6;font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:radial-gradient(ellipse 75% 65% at 62% 10%,#e7effe 0,transparent 72%),var(--tb-bg)}
.tgbiz-shell #site-nav{width:286px;min-width:286px;padding:20px 20px 12px;border-radius:0 24px 24px 0;border-right:1px solid var(--tb-border);box-shadow:5px 0 23px #13396a06}
.tgbiz-shell #site-nav .logo{gap:13px;font-size:20px;padding:0 4px 22px}
.tgbiz-shell #site-nav .logo-mark{width:47px;min-width:47px;height:47px;border-radius:14px;font-size:27px;background:linear-gradient(135deg,#2385f0,#06b8b5)!important;box-shadow:0 10px 20px #258ad028}
.tgbiz-shell #site-nav .logo-title small{font-size:10.5px;margin-top:5px;letter-spacing:.07em;line-height:1.35}
.tgbiz-shell #site-nav .sidebar-search{height:48px;min-height:48px;margin:0 0 16px;border-radius:13px;gap:9px;padding:0 12px}
.tgbiz-shell #site-nav .sidebar-search input{font-size:14px}
.tgbiz-shell #site-nav .sidebar-search kbd{font-size:12px}
.tgbiz-shell .tgbiz-menu-heading{font-size:12px;letter-spacing:.075em;padding:17px 8px 8px;color:#71829e}
.tgbiz-shell #site-nav .tgbiz-nav-link{font-size:16px;min-height:47px;line-height:1.25;padding:10px 12px;border-radius:12px;gap:12px;color:#334766;font-weight:650}
.tgbiz-shell #site-nav .tgbiz-nav-link .nav-icon{width:29px;min-width:29px;flex-basis:29px;height:29px;font-size:18px;background:transparent;color:#486187}
.tgbiz-shell #site-nav .tgbiz-nav-link.active,.tgbiz-shell #site-nav .tgbiz-nav-link[aria-current=page]{background:#e8f0ff;color:#0762cd;font-weight:770}
.tgbiz-shell .tgbiz-nav-fold>summary{font-size:14px;min-height:44px;padding:11px 12px 10px 24px}
.tgbiz-shell #site-nav .tgbiz-fold-links .tgbiz-nav-link{font-size:14px;min-height:42px}
.tgbiz-shell .tgbiz-current-bot strong{font-size:14px}
.tgbiz-shell .tgbiz-current-bot span{font-size:11px}
.tgbiz-shell #site-nav .sidebar-bottom{padding-top:14px}
.tgbiz-shell .tgbiz-side-help{padding:13px 12px;border-radius:14px;background:linear-gradient(105deg,#eef5ff,#f6f8fd)}
.tgbiz-shell .tgbiz-side-help strong{font-size:14px}
.tgbiz-shell .tgbiz-side-help small{font-size:11.5px}
.tgbiz-shell .sidebar-version{font-size:12px}
.tgbiz-shell main#main-content{width:calc(100% - 286px);padding:23px clamp(18px,1.85vw,34px) 70px}
.tgbiz-shell main>header.tgbiz-topbar{gap:12px;min-height:65px;margin-bottom:15px;padding:0;align-items:center;flex-wrap:wrap}
.tgbiz-shell header .eyebrow{font-size:12px;letter-spacing:.095em;color:#627593}
.tgbiz-shell header h1{font-size:clamp(30px,2.6vw,41px);line-height:1.12;letter-spacing:-.045em;color:#0d1933;margin:4px 0 0}
.tgbiz-shell header .header-create,.tgbiz-shell .hero-cta{min-height:50px;font-size:16px;font-weight:750;border-radius:14px;padding:11px 20px;box-shadow:0 10px 20px #247cc431;background:linear-gradient(115deg,#216ff0,#06beb5)}
.tgbiz-shell header .theme-toggle{min-height:48px;padding:10px 14px;font-size:15px;border-radius:13px}
.tgbiz-shell header .theme-toggle-icon{font-size:19px;color:#dfac22}
.tgbiz-shell header .language-toggle{border-radius:13px;padding:4px}
.tgbiz-shell header .language-toggle a{font-size:14px;padding:8px 11px;border-radius:9px}
.tgbiz-shell header .account{font-size:13px;gap:0}
.tgbiz-shell header .tb-account-menu{position:relative}
.tgbiz-shell header .tb-account-menu>summary{list-style:none;display:flex;align-items:center;gap:10px;padding:11px 13px;min-height:48px;cursor:pointer;background:var(--tb-surface-soft);border:1px solid var(--tb-border);border-radius:14px;color:var(--tb-text);font-size:14px;font-weight:650;max-width:280px}
.tgbiz-shell header .tb-account-menu>summary::-webkit-details-marker{display:none}
.tgbiz-shell header .tb-account-menu>summary .tb-user-icon{width:27px;height:27px;display:grid;place-items:center;background:#e1edff;color:#1d5aba;border-radius:50%;font-size:17px}
.tgbiz-shell header .tb-account-menu>summary .tb-account-email{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.tgbiz-shell header .tb-account-popover{position:absolute;right:0;top:calc(100% + 8px);background:var(--tb-surface);border:1px solid var(--tb-border);border-radius:13px;box-shadow:0 13px 33px #12345d22;padding:10px;min-width:210px;z-index:90}
.tgbiz-shell header .tb-account-popover a{display:block;padding:8px 12px;text-decoration:none;font-weight:650;color:var(--tb-text);border-radius:9px}
.tgbiz-shell header .tb-account-popover a:hover{background:var(--tb-surface-soft)}
.tgbiz-shell header .tb-account-popover form{margin:6px 0 0;width:100%}
.tgbiz-shell header .tb-account-popover button{width:100%;font-size:14px;min-height:40px}
.tgbiz-shell .panel{padding:24px;margin-bottom:17px;border-radius:22px}
.tgbiz-shell .panel h2{font-size:25px}
.tgbiz-shell .panel h3{font-size:21px}
.tgbiz-shell .panel h4{font-size:18px}
.tgbiz-shell .panel p,.tgbiz-shell .page-lead p,.tgbiz-shell .muted,.tgbiz-shell .section-heading p{font-size:15px;line-height:1.58}
.tgbiz-shell .page-lead h2{font-size:29px}
.tgbiz-shell .page-lead .eyebrow{font-size:12px}
.tgbiz-shell label{font-size:15px}
.tgbiz-shell input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=file]),.tgbiz-shell select,.tgbiz-shell textarea{font-size:15px;min-height:48px;border-radius:12px}
.tgbiz-shell button,.tgbiz-shell .linkbtn,.tgbiz-shell .primary,.tgbiz-shell .secondary{font-size:15px;min-height:43px;border-radius:11px}
.tgbiz-shell th,.tgbiz-shell td{font-size:14px;line-height:1.45}
.tgbiz-shell .stat small{font-size:14px}.tgbiz-shell .stat strong{font-size:32px!important}
.tgbiz-shell .workspace-card h3{font-size:21px}
.tgbiz-shell .studio-kind-step,.tgbiz-shell .ts-step{font-size:14px}
/* Page frame exactly modeled on the approved premium screenshot. */
.tgbiz-shell .tgbiz-builder-page{max-width:1660px;margin:0 auto}
.tgbiz-shell .tb-builder-lead{margin:0 0 13px;padding:0 9px}
.tgbiz-shell .tb-builder-lead h2{font-size:clamp(24px,2.2vw,34px);letter-spacing:-.035em;margin:0 0 3px;color:var(--tb-text)}
.tgbiz-shell .tb-builder-lead p{font-size:15.5px;color:#4c5e7d;max-width:870px;margin:0;line-height:1.45}
.tgbiz-shell .tb-catalog-panel{padding:19px 18px 18px;background:#fff;border-radius:24px;box-shadow:0 14px 38px #273f7b0a}
.tgbiz-shell .tb-section-heading{display:flex;align-items:center;gap:11px;justify-content:flex-start;margin-bottom:13px}
.tgbiz-shell .tb-section-heading h3{font-size:24px;letter-spacing:-.04em;margin:0;font-weight:825;color:var(--tb-text)}
.tgbiz-shell .tgbiz-product-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:13px;align-items:stretch}
.tgbiz-shell .tgbiz-product-card{min-height:214px;padding:15px 15px 14px;display:flex!important;flex-direction:column;align-items:stretch;gap:8px;border:1px solid #dae5f5;border-radius:18px;background:#fff!important;opacity:1!important;box-shadow:0 5px 15px #28487d0b;overflow:hidden;transform:none}
.tgbiz-shell .tgbiz-product-card .tb-card-top{display:flex;align-items:flex-start;justify-content:space-between;gap:7px;margin-bottom:1px}
.tgbiz-shell .tgbiz-product-card .tb-bot-icon{display:grid;place-items:center;flex:0 0 49px;width:49px;height:49px;margin:0;background:linear-gradient(150deg,#f1f6ff,#e6f0ff);font-size:27px;border-radius:13px;box-shadow:none}
.tgbiz-shell .tgbiz-product-card h4{font-size:clamp(16px,1.15vw,20px);font-weight:840;line-height:1.23;margin:0;color:#101b34;letter-spacing:-.025em}
.tgbiz-shell .tgbiz-product-card p{font-size:13.5px;line-height:1.35;color:#526585;margin:0 0 5px;flex:1;max-width:100%}
.tgbiz-shell .tb-status{display:inline-flex;gap:4px;align-items:center;white-space:nowrap;flex-shrink:0;font-size:11.5px;font-weight:800;line-height:1.3;padding:6px 8px;border-radius:999px}
.tgbiz-shell .tb-status-available{background:#e1f9e9;color:#197b43}
.tgbiz-shell .tb-status-planned{background:#fff3df;color:#925619}
.tgbiz-shell .tb-bot-action{height:38px;min-height:38px;display:flex;justify-content:center;align-items:center;gap:11px;padding:7px 10px;border-radius:10px;font-size:13.5px;font-weight:800;text-decoration:none;white-space:nowrap;margin-top:auto}
.tgbiz-shell .tb-bot-action>span{font-size:19px;line-height:1;display:inline;min-height:0;width:auto;height:auto;background:none!important;padding:0;margin:0}
.tgbiz-shell .tb-action-primary{background:linear-gradient(180deg,#2178f3,#0751c5);color:#fff!important;box-shadow:0 5px 9px #0751c52a}
.tgbiz-shell .tb-action-outline{background:var(--tb-surface);color:#1b2b48!important;border:1px solid #cbdcf5}
.tgbiz-shell .tb-action-primary:hover{background:linear-gradient(180deg,#3087fb,#0a57c7);filter:brightness(1.02)}
.tgbiz-shell .tb-action-outline:hover{background:#eef5ff}
.tgbiz-shell .tgbiz-product-card:focus-within{outline:3px solid #6ca8fd;outline-offset:2px}
.tgbiz-shell .tgbiz-product-card:hover{border-color:#a2c9ee;box-shadow:0 12px 28px #284b8b18;transform:translateY(-2px)}
.tgbiz-shell .tb-catalog-note{font-size:12.5px!important;color:#62738d!important;margin:10px 4px 0!important}
.tgbiz-shell .tb-connected-panel{padding:20px 24px;border-radius:22px}
.tgbiz-shell .tb-count{font-size:12px;font-weight:800;color:#4464a0;background:#edf3ff;padding:5px 10px;border-radius:20px}
.tgbiz-shell .tb-empty-state{display:flex;gap:30px;align-items:center;justify-content:center;max-width:950px;margin:0 auto;padding:0 0 4px}
.tgbiz-shell .tb-empty-art{flex:0 1 235px;width:235px;min-width:180px;max-width:235px}
.tgbiz-shell .tb-empty-art svg{display:block;width:100%;height:auto}
.tgbiz-shell .tb-empty-copy{flex:1 1 470px;max-width:600px}
.tgbiz-shell .tb-empty-copy h4{font-size:21px;margin:0 0 6px;font-weight:830;line-height:1.25;color:var(--tb-text)}
.tgbiz-shell .tb-empty-copy p{font-size:14.5px;line-height:1.5;color:#596a86;margin:0 0 13px}
.tgbiz-shell .tb-empty-cta{display:inline-flex;gap:10px;align-items:center;justify-content:center;min-height:45px;padding:9px 19px;border-radius:12px;color:#fff!important;background:linear-gradient(105deg,#1569e7,#05b9b1);text-decoration:none;font-size:15px;font-weight:800;box-shadow:0 8px 18px #1d8fc52b}
.tgbiz-shell .tb-empty-cta>span{font-size:24px;line-height:.7}
.tgbiz-shell .tb-connected-group h4{font-size:18px;display:flex;gap:9px;align-items:center;margin:9px 0 13px}
/* Dark mode mirrors contrast without turning light cards white. */
html[data-ui-theme="dark"]{--tb-bg:#0c1525;--tb-sidebar:#101c2d;--tb-surface:#152239;--tb-surface-soft:#1b2b43;--tb-text:#edf3ff;--tb-muted:#a7b6cd;--tb-border:#2b405d;--tb-shadow:0 10px 27px #0002}
html[data-ui-theme="dark"] body.tgbiz-shell{background:#0c1525}
html[data-ui-theme="dark"] .tgbiz-shell header h1,html[data-ui-theme="dark"] .tgbiz-shell .tb-builder-lead h2,html[data-ui-theme="dark"] .tgbiz-shell .tb-section-heading h3,html[data-ui-theme="dark"] .tgbiz-shell .tb-empty-copy h4{color:var(--tb-text)}
html[data-ui-theme="dark"] .tgbiz-shell .tb-builder-lead p,html[data-ui-theme="dark"] .tgbiz-shell .tb-empty-copy p{color:var(--tb-muted)}
html[data-ui-theme="dark"] .tgbiz-shell .tb-catalog-panel{background:var(--tb-surface)}
html[data-ui-theme="dark"] .tgbiz-shell .tgbiz-product-card{background:#1a2941!important;border-color:#304661}
html[data-ui-theme="dark"] .tgbiz-shell .tgbiz-product-card h4{color:var(--tb-text)}
html[data-ui-theme="dark"] .tgbiz-shell .tgbiz-product-card p{color:var(--tb-muted)}
html[data-ui-theme="dark"] .tgbiz-shell .tb-status-available{background:#12462d;color:#9af5be}
html[data-ui-theme="dark"] .tgbiz-shell .tb-status-planned{background:#574124;color:#ffe2ac}
html[data-ui-theme="dark"] .tgbiz-shell .tb-action-outline{background:#20334e;color:#e6f1ff!important;border-color:#405a7c}
html[data-ui-theme="dark"] .tgbiz-shell .tb-account-menu>summary{color:var(--tb-text);background:var(--tb-surface-soft)}
html[data-ui-theme="dark"] .tgbiz-shell .tb-account-popover{background:var(--tb-surface)}
html[data-ui-theme="dark"] .tgbiz-shell .tgbiz-side-help{background:#223550}
/* Responsive premium shell and bot cards. */
@media(max-width:1500px){.tgbiz-shell .tgbiz-product-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.tgbiz-shell .tgbiz-product-card h4{font-size:18px}}
@media(max-width:1240px){.tgbiz-shell #site-nav{width:255px;min-width:255px;padding-left:12px;padding-right:12px}.tgbiz-shell main#main-content{width:calc(100% - 255px);padding:20px 18px 65px}.tgbiz-shell .tgbiz-product-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.tgbiz-shell .tgbiz-product-card h4{font-size:18px}.tgbiz-shell header .tb-account-menu>summary{max-width:190px}}
@media(max-width:940px){.tgbiz-shell .tgbiz-product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.tgbiz-shell .tb-status{font-size:12px}.tgbiz-shell .tgbiz-product-card p{font-size:14px}.tgbiz-shell .tb-empty-state{gap:10px}}
@media(max-width:850px){.tgbiz-shell #site-nav{width:min(330px,88vw);min-width:0;position:fixed;top:0;left:0;bottom:0;border-radius:0 18px 18px 0;padding:17px 17px 12px}.tgbiz-shell main#main-content{width:100%;padding:14px 17px 60px}.tgbiz-shell main>header.tgbiz-topbar{margin-bottom:20px;min-height:55px}.tgbiz-shell header .header-heading{flex:1 1 200px}.tgbiz-shell header h1{font-size:clamp(24px,4.5vw,34px)}.tgbiz-shell .mobile-menu-toggle{display:grid;min-width:45px;width:45px;height:45px}.tgbiz-shell .tgbiz-product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.tgbiz-shell main#main-content{padding:12px 11px 46px}.tgbiz-shell header .header-heading{min-width:0;flex:1 1 calc(100% - 70px)}.tgbiz-shell header h1{font-size:25px}.tgbiz-shell header .header-create{min-height:45px;font-size:14px}.tgbiz-shell header .theme-toggle{min-height:45px;font-size:14px}.tgbiz-shell header .tb-account-menu>summary{min-height:45px;max-width:170px;padding:7px 9px}.tgbiz-shell .tb-builder-lead{padding:0 1px;margin-bottom:13px}.tgbiz-shell .tb-builder-lead h2{font-size:24px}.tgbiz-shell .tb-builder-lead p{font-size:15px}.tgbiz-shell .tb-catalog-panel{padding:17px 13px}.tgbiz-shell .tgbiz-product-grid{grid-template-columns:1fr;gap:12px}.tgbiz-shell .tgbiz-product-card{min-height:205px;padding:18px}.tgbiz-shell .tgbiz-product-card h4{font-size:20px}.tgbiz-shell .tgbiz-product-card p{font-size:15px}.tgbiz-shell .tb-status{font-size:12px}.tgbiz-shell .tb-bot-action{height:44px;font-size:15px}.tgbiz-shell .tb-empty-state{flex-direction:column;gap:7px;text-align:center;padding-bottom:14px}.tgbiz-shell .tb-empty-art{width:175px;min-width:0;flex:0 0 auto}.tgbiz-shell .tb-empty-copy{flex:0 0 auto}.tgbiz-shell .tb-empty-copy h4{font-size:21px}.tgbiz-shell .tb-empty-copy p{font-size:15px}.tgbiz-shell .tb-empty-cta{width:100%}.tgbiz-shell .tb-section-heading h3{font-size:23px}.tgbiz-shell .tb-connected-panel{padding:17px}}
@media(prefers-reduced-motion:reduce){.tgbiz-shell .tgbiz-product-card{transition:none!important}}

/* Late override for older generic `.dashboard-tile span` rules. */
.tgbiz-shell .tgbiz-product-card .tb-status{display:inline-flex!important;align-items:center;justify-content:center;gap:4px;flex:0 0 auto;width:auto!important;height:auto!important;max-width:calc(100% - 56px);padding:6px 9px!important;margin:0!important;border-radius:100px;font-size:11.5px!important;line-height:1.2;font-weight:800;box-shadow:none}
.tgbiz-shell .tgbiz-product-card .tb-status>span{display:inline!important;width:auto!important;height:auto!important;padding:0!important;margin:0!important;background:transparent!important;font-size:13px!important;line-height:1!important}
.tgbiz-shell .tgbiz-product-card h4,.tgbiz-shell .tgbiz-product-card p{text-align:left!important;align-self:stretch!important}
.tgbiz-shell .tb-types-fold>summary{font-size:12px!important;font-weight:840;letter-spacing:.09em;color:#71829e!important;padding:14px 10px 10px!important}
.tgbiz-shell .tb-types-fold .tgbiz-fold-links{padding-left:2px;margin-left:5px;border-left:0}
.tgbiz-shell .tb-types-fold .tgbiz-nav-link{font-size:14px!important}
.tgbiz-shell .tb-types-fold[open]>summary{background:transparent}
.tgbiz-shell .tgbiz-product-card .tb-card-top{width:100%}
@media(max-width:600px){.tgbiz-shell .tgbiz-product-card .tb-status{font-size:12px!important}}

.tgbiz-shell .tb-nav-svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;overflow:visible}
.tgbiz-shell .tb-user-icon .tb-nav-svg{width:19px;height:19px}
.tgbiz-shell #site-nav .tgbiz-nav-link:hover .tb-nav-svg{stroke:#146ad5}
.tgbiz-shell #tb-catalog-title{scroll-margin-top:20px}
html[data-ui-theme="dark"] .tgbiz-shell .tgbiz-product-card .tb-status-available{background:#12462d;color:#9af5be}
html[data-ui-theme="dark"] .tgbiz-shell .tgbiz-product-card .tb-status-planned{background:#574124;color:#ffe2ac}
