/* Reference-led workspace system. Public landing pages retain their own layout. */
.bot-shell,.home-shell{--line:#e9e9e9;--muted:#858585;font-family:Inter,Arial,sans-serif;background:#fff}
.bot-shell .main,.home-shell .main{background:#fff}
.bot-shell .main main,.home-shell .main main{padding:32px;max-width:1440px}
.bot-shell .sidebar{background:#fafafa;border-right:1px solid var(--line);padding:28px 14px;width:212px;flex-basis:212px}
.bot-shell .sidebar .workspace-label{font-size:10px;letter-spacing:.8px;color:#999;margin:0 14px 16px}
.bot-shell .sidebar nav a{font-size:12px;gap:12px;border-radius:7px;color:#777;min-height:38px;padding:9px 12px}
.bot-shell .sidebar nav a.selected{background:#ededed;color:#222}
.bot-shell .sidebar nav a>span{width:18px;text-align:center;color:#888}
.bot-shell .nav-bot{margin:24px 12px 12px;font-size:11px;overflow-wrap:anywhere}
.bot-shell .topbar,.home-shell .topbar{background:#fff;border-bottom:1px solid var(--line);height:58px;min-height:58px;padding-inline:32px}
.bot-shell .pagehead .eyebrow,.home-shell .pagehead .eyebrow{display:none}
.bot-shell .pagehead h1,.home-shell .pagehead h1{font-size:28px;font-weight:550;letter-spacing:-1px;margin:0 0 9px}
.bot-shell .pagehead p,.home-shell .pagehead p{font-size:12px;color:#888;margin:0;line-height:1.7}
.bot-shell .pagehead,.home-shell .pagehead{margin-bottom:28px}
.bot-shell .stats,.home-shell .stats{gap:14px;margin-bottom:24px}
.bot-shell .stats>div,.home-shell .stats>div{background:#fafafa;border:1px solid #ededed;border-radius:10px;padding:22px}
.bot-shell .stats span,.home-shell .stats span{font-size:12px;font-weight:500;color:#777}
.bot-shell .stats strong,.home-shell .stats strong{font-size:30px;font-weight:500;margin-top:18px;letter-spacing:-1px}
.bot-shell .stats small,.home-shell .stats small{letter-spacing:0;color:#999;font-weight:400}
.bot-shell .panel{border:1px solid var(--line);border-radius:12px;padding:24px;box-shadow:none;margin-bottom:24px}
.bot-shell .panel h3{font-size:14px;font-weight:550;letter-spacing:-.2px}
.bot-shell .primary,.home-shell .primary{border-radius:8px;font-weight:500;font-size:12px;min-height:38px}
.bot-shell .subtle,.home-shell .subtle{border-radius:7px;font-size:11px;min-height:34px;padding:8px 12px}
.bot-shell .field{font-size:12px;font-weight:500;color:#555}
.bot-shell input,.bot-shell select{border-radius:7px;border-color:#e5e5e5;font-size:12px}
.bot-shell .table-wrap{border-radius:9px;border:1px solid var(--line)}
.bot-shell table{border-collapse:collapse}
.bot-shell th{background:#fafafa;color:#888;font-size:10px;padding:13px 14px;text-align:left;font-weight:500;white-space:nowrap}
.bot-shell td{padding:15px 14px;font-size:12px;border-bottom:1px solid #efefef;vertical-align:middle}
.bot-shell td small{color:#aaa;font-size:10px;margin-top:5px}
.bot-shell tbody tr:nth-child(even){background:#fcfcfc}
.bot-shell .badge{font-size:10px;padding:4px 8px;border-radius:5px;background:#f5f5f5}
.bot-shell .badge.green{color:#42846c;background:#eef8f2;border-color:#e4f1e8}
.bot-shell .table-search{min-height:34px;padding:8px 12px;max-width:260px}
.period-filter{display:flex;align-items:center;gap:8px;margin:0}
.period-filter label{font-size:11px;color:#888}
.period-filter select{min-height:34px;padding:8px 28px 8px 10px}
.activity-panel .section-bar .muted{font-size:11px;margin:7px 0 0}
.activity-chart{display:block;width:100%;height:auto;min-height:140px;margin:24px 0 8px}
.chart-caption{display:flex;justify-content:space-between;gap:10px;font-size:10px;color:#999}
.activity-entry{display:flex;align-items:center;gap:18px;padding:17px 0;border-bottom:1px solid #eee;font-size:12px}
.activity-entry:last-child{border-bottom:0}
.activity-date{min-width:45px;border-right:1px solid #e8e8e8;display:flex;flex-direction:column;gap:3px}
.activity-date strong{font-size:22px;font-weight:500;color:#666}
.activity-date small{font-size:10px;color:#999}
.activity-name{flex:1;min-width:0}
.activity-name strong{display:block;font-weight:500;overflow-wrap:anywhere}
.activity-name small{display:block;font-size:10px;color:#999;margin-top:7px}
.bot-shell .quota{background:#fafafa}
.bot-shell .quota progress{accent-color:#777;height:6px}
.home-shell .bot-card{border-radius:12px;box-shadow:none;border-color:var(--line)}
.bot-shell .customer-more{min-height:34px;border-radius:6px}
.bot-shell .customer-menu{border-radius:9px}
@media(max-width:800px){
 .bot-shell .main main,.home-shell .main main{padding:24px 18px}
 .bot-shell .sidebar{width:212px}
 .bot-shell .topbar,.home-shell .topbar{padding-inline:18px}
 .period-filter{flex-wrap:wrap}
 .activity-panel .section-bar{align-items:flex-start;flex-wrap:wrap}
}
@media(max-width:520px){
 .bot-shell .pagehead h1,.home-shell .pagehead h1{font-size:25px}
 .bot-shell .stats>div,.home-shell .stats>div{padding:18px;background:#fafafa}
 .bot-shell .stats strong,.home-shell .stats strong{margin:0;font-size:26px}
 .bot-shell .panel{padding:18px 15px}
 .chart-caption{font-size:9px}
 .activity-entry{gap:12px;flex-wrap:wrap}
 .activity-entry>span{font-size:11px}
 .bot-shell .table-search{max-width:none}
}
.table-controls{display:flex;gap:8px;align-items:center}
.table-controls select{min-height:34px;padding:7px 28px 7px 10px}
.table-pagination{display:flex;align-items:center;gap:8px;padding-top:18px;font-size:11px;color:#999}
.table-pagination>span{margin-right:auto}
@media(max-width:520px){.table-pagination{flex-wrap:wrap}.table-pagination>span{width:100%}.table-controls{width:100%}}
/* Page-level workspace layouts. */
.workspace-section-nav{display:flex;gap:26px;overflow:auto;border-bottom:1px solid #e8e8e8;margin:0 0 30px}
.workspace-section-nav a{display:flex;align-items:center;gap:8px;padding:0 2px 15px;white-space:nowrap;color:#929292;font-size:12px;border-bottom:2px solid transparent}
.workspace-section-nav a.current{color:#252525;border-color:#252525}
.workspace-section-nav svg{width:16px;height:16px}
.bot-shell .pagehead{padding-top:12px;margin-bottom:24px}
.bot-shell .pagehead h1{font-size:32px;font-weight:500}
.bot-shell .sidebar nav a>span{display:flex;align-items:center;justify-content:center}
.bot-shell .panel:has(>.table-wrap){border:0;padding:0;background:transparent}
.bot-shell .panel>.section-bar:has(.table-search){padding:16px;background:#fafafa;border:1px solid #ebebeb;border-radius:10px 10px 0 0;margin:0;border-bottom:0;flex-wrap:wrap;gap:12px}
.bot-shell .panel>.section-bar:has(.table-search) h3{width:100%;font-size:15px;margin-bottom:3px}
.bot-shell .panel>.section-bar:has(.table-search) .table-search{max-width:320px;background:#fff;flex:1}
.bot-shell .table-controls{margin-left:auto}
.bot-shell .panel>.section-bar:has(.table-search)+.table-wrap{border-radius:0 0 10px 10px}
.bot-shell th+th{border-left:1px solid #ededed}
.bot-shell td:first-child{font-weight:500}
.bot-shell td details summary{font-size:11px;color:#777}
.bot-shell .table-pagination{padding:16px 0;border-bottom:1px solid #eee}
.provider-toolbar{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:24px}
.provider-toolbar h2{font-size:18px;font-weight:500;margin:0 0 8px}
.provider-toolbar p{font-size:12px;color:#999;margin:0}
.provider-connections{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,280px),1fr));gap:20px}
.bot-shell .provider-connections .provider-card{border:1px solid #e6e6e6;border-radius:14px;background:#fafafa;padding:24px;display:flex;flex-direction:column}
.provider-card-label{font-size:9px;letter-spacing:1.2px;color:#a0a0a0;margin-bottom:22px}
.bot-shell .provider-card .section-bar{margin:0;align-items:flex-start}
.bot-shell .provider-card .section-bar strong{overflow-wrap:anywhere;font-size:15px;font-weight:500}
.bot-shell .provider-card .provider-balance{margin:28px 0 10px;font-size:34px}
.bot-shell .provider-card .provider-balance small{font-size:12px;color:#999;letter-spacing:0}
.bot-shell .provider-card form{margin-top:auto;padding-top:22px}
.bot-shell .provider-card form button{width:100%;justify-content:center;background:#fff}
.provider-connections>.empty{grid-column:1/-1;border:1px dashed #ddd;border-radius:14px;background:#fafafa}
.preferences-layout{display:grid;grid-template-columns:180px minmax(0,1fr);gap:40px;max-width:1100px}
.preferences-index{display:flex;flex-direction:column;gap:8px;align-self:start;position:sticky;top:20px}
.preferences-index a{font-size:12px;color:#777;padding:12px 14px;border-radius:7px}
.preferences-index a:hover{background:#f5f5f5;color:#111}
.preference-section{border:1px solid #e5e5e5;border-radius:12px;overflow:hidden;margin-bottom:24px;scroll-margin-top:24px}
.preference-heading{display:flex;gap:14px;padding:24px;background:#fafafa;border-bottom:1px solid #ededed}
.preference-heading>svg{margin-top:2px;color:#888}
.preference-heading h3{margin:0 0 8px;font-size:15px;font-weight:500}
.preference-heading p{margin:0;font-size:12px;color:#999;line-height:1.7}
.preference-body{padding:26px}
.preference-body .field{max-width:520px}
.preference-body form>.primary{margin-top:8px}
.availability-row{display:flex;align-items:center;justify-content:space-between;gap:20px}
.availability-row strong{font-size:13px;font-weight:500}
.availability-row p{font-size:12px;color:#999;margin-bottom:0}
.availability-row form{margin:0}
.bot-shell .import-panel{background:#fafafa;border-style:dashed}
.import-panel>details>summary{font-size:13px;font-weight:500;cursor:pointer;padding:4px 0}
.import-panel>details[open]>summary{margin-bottom:26px}
.bot-shell .catalog-group{border:1px solid #e5e5e5;border-radius:10px;margin:16px 0;overflow:hidden}
.bot-shell .catalog-group>summary{background:#f7f7f7;padding:16px;font-size:12px}
.bot-shell .catalog-select-all{display:flex;gap:10px;align-items:center;padding:14px 16px;font-size:11px;color:#777}
.bot-shell .catalog-item{padding:16px;border-top:1px solid #eee;gap:12px}
.bot-shell .payment-row{display:grid;grid-template-columns:36px minmax(0,1fr) auto auto auto;border:1px solid #e8e8e8!important;border-radius:12px!important;padding:20px;margin:12px 0;background:#fff}
.bot-shell .payment-main small{display:block;margin-top:7px;color:#999;font-size:10px}
.bot-shell .payment-row .op-icon{background:#f6f6f6;border-radius:9px;color:#888;width:34px;height:34px}
.bot-shell .payment-row .badge.pink{background:#fff0ef;color:#ac625c;border-color:#f4dfdd}
@media(max-width:800px){.preferences-layout{grid-template-columns:minmax(0,1fr);gap:18px}.preferences-index{position:static;flex-direction:row;overflow:auto;border-bottom:1px solid #eee}.preferences-index a{white-space:nowrap}.provider-toolbar{align-items:flex-start;flex-wrap:wrap}.bot-shell .payment-row{grid-template-columns:34px minmax(0,1fr) auto}.bot-shell .payment-row>.badge{grid-column:2}.bot-shell .payment-row>details{grid-column:3}}
@media(max-width:520px){.bot-shell .pagehead h1{font-size:27px}.workspace-section-nav{gap:20px;margin-bottom:24px}.preference-heading,.preference-body{padding:20px}.bot-shell .table-controls{margin:0}.provider-toolbar .primary{width:100%}.bot-shell .panel>.section-bar:has(.table-search) .table-search{flex-basis:100%;max-width:none}.bot-shell .payment-row{padding:15px;gap:10px}.bot-shell .catalog-item{grid-template-columns:auto minmax(0,1fr)}.bot-shell .catalog-item>span:last-child{grid-column:2}}
