/* One bot workspace, shared by all bot tools and linked events. */
.deck .bot-space{--bot-bg:#191c20;--bot-line:#30353c;--bot-muted:#a1aab7;max-width:1440px;margin:0 auto;min-width:0}
.deck .bot-space svg{width:18px;height:18px;flex-shrink:0}
.deck .bot-space-head{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:4px 0 26px}
.deck .bot-space-identity{display:flex;align-items:center;gap:16px;min-width:0}
.deck .bot-space-icon{display:grid;place-items:center;width:52px;height:52px;border:1px solid #e3c65d45;border-radius:14px;background:#e3c65d10;color:#e3c65d;flex-shrink:0}
.deck .bot-space-icon svg{width:26px;height:26px}
.deck .bot-space-identity a{font-size:12px;color:var(--bot-muted)}
.deck .bot-space-identity h1{font-size:28px;line-height:1.25;letter-spacing:-.7px;margin:7px 0 0;overflow-wrap:anywhere}
.deck .bot-space-state{display:flex;align-items:center;gap:12px;font-size:12px;color:var(--bot-muted);flex-wrap:wrap}
.deck .bot-space-nav{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px;padding:6px;background:var(--bot-bg);border:1px solid var(--bot-line);border-radius:12px;margin:0 0 28px;overflow:visible}
.deck .bot-space-nav a{display:flex;align-items:center;justify-content:center;gap:8px;min-width:0;padding:13px 4px;border-radius:7px;color:var(--bot-muted);font-size:13px;line-height:1.3;font-weight:600;transition:background .15s,color .15s}
.deck .bot-space-nav a:hover{background:#ffffff08;color:#eee}
.deck .bot-space-nav a[aria-current]{background:#e4c55c;color:#171912;box-shadow:0 2px 8px #0002}
.deck .bot-space-tools{display:flex;flex-wrap:wrap;gap:8px;margin:-12px 0 26px}
.deck .bot-space-tools a{font-size:12px;padding:9px 13px;border:1px solid var(--bot-line);border-radius:7px;color:var(--bot-muted)}
.deck .bot-space-tools a[aria-current]{color:#e4c55c;border-color:#e4c55c60}
.deck .bot-space-title{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:24px}
.deck .bot-space-title h2{font-size:23px;letter-spacing:-.4px;margin:0 0 7px}
.deck .bot-space-title p{font-size:13px;line-height:1.6;color:var(--bot-muted);margin:0}
.deck .bot-space .d-btn,.deck .bot-space .btn{text-transform:none;font-size:13px;min-height:40px;padding:11px 16px;letter-spacing:0}
.deck .bot-space .d-botdetailgrid{gap:22px;align-items:start}
.deck .bot-space .d-statusvisual{padding:22px;display:flex;align-items:center;gap:12px;flex-wrap:wrap;text-align:left}
.deck .bot-space .d-bigbot{width:48px;height:48px;border-radius:10px;margin:0}
.deck .bot-space .d-bigbot svg{width:26px;height:26px}
.deck .bot-space .d-statusvisual h2{font-size:18px;margin:0}
.deck .bot-space .d-statusvisual p{font-size:12px;width:100%;margin:0}
.deck .bot-space .easy-bot{max-width:none}
.deck .bot-space .easy-bot-nav button{padding:12px}
.deck .bot-space .easy-bot-save-note{padding:4px 0}
.deck .bot-panel{background:var(--bot-bg);border:1px solid var(--bot-line);border-radius:12px;padding:24px;min-width:0}
.deck .bot-panel h3{font-size:17px;margin:0 0 18px;letter-spacing:-.2px}
.deck .bot-panel-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.deck .bot-panel-heading h3{margin:0}
.deck .bot-panel-heading>span{font-size:12px;color:var(--bot-muted)}
.deck .bot-help{font-size:12px;line-height:1.7;color:var(--bot-muted);margin:0 0 20px}
.deck .bot-command-layout{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:22px;align-items:start}
.deck .bot-form{display:grid;gap:18px}
.deck .bot-form label{display:grid;gap:9px;font-size:13px;color:#d9dee5;min-width:0}
.deck .bot-form input:not([type=checkbox]),.deck .bot-form textarea{width:100%;min-width:0;border:1px solid #373e48;border-radius:7px;padding:12px;background:#111417;color:#e5e9ef;font:inherit;line-height:1.5}
.deck .bot-form textarea{resize:vertical;min-height:130px}
.deck .bot-form label small{font-size:11px;line-height:1.5;color:var(--bot-muted)}
.deck .bot-form .bot-check{display:flex;align-items:flex-start;font-weight:400;line-height:1.6}
.deck .bot-check input{width:17px;height:17px;accent-color:#e4c55c;flex-shrink:0;margin-top:2px}
.deck .bot-form-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.deck .bot-command-name{position:relative}
.deck .bot-command-name>span{position:absolute;top:13px;left:14px;color:#e4c55c}
.deck .bot-command-name input{padding-left:29px!important}
.deck .bot-empty{display:grid;place-items:center;text-align:center;padding:42px 16px;border:1px dashed #3b414a;border-radius:9px;margin:16px 0}
.deck .bot-empty>span{display:grid;place-items:center;width:48px;height:48px;border-radius:12px;background:#e4c55c12;color:#e4c55c;font-size:28px;margin-bottom:18px}
.deck .bot-empty h3{margin-bottom:10px}
.deck .bot-empty p{font-size:13px;line-height:1.7;color:var(--bot-muted);max-width:340px;margin:0}
.deck .bot-command-item{border-top:1px solid var(--bot-line)}
.deck .bot-command-item summary{display:flex;align-items:center;gap:12px;flex-wrap:wrap;cursor:pointer;padding:20px 0;list-style:none}
.deck .bot-command-item summary:after{content:'+';color:#e4c55c}
.deck .bot-command-item[open] summary:after{content:'−'}
.deck .bot-command-item summary code{color:#e4c55c;font-size:14px}
.deck .bot-command-item summary>span{flex:1;font-size:12px;color:var(--bot-muted)}
.deck .bot-command-item summary small{font-size:11px;color:var(--bot-muted)}
.deck .bot-command-item form{padding-bottom:24px}
.deck .bot-event-row{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:20px;padding:24px 0;border-top:1px solid var(--bot-line)}
.deck .bot-event-row h3{margin:9px 0;font-size:20px}
.deck .bot-event-row p,.deck .bot-event-state{font-size:12px;color:var(--bot-muted);margin:0}
.deck .bot-event-state{color:#e4c55c}
.deck .bot-event-conversations{width:100%;border:1px solid var(--bot-line);border-radius:8px;background:#111417;padding:16px 18px}
.deck .bot-event-conversations h4{font-size:11px;color:var(--bot-muted);margin:0 0 12px;text-transform:uppercase;letter-spacing:1px}
.deck .bot-event-conversations a{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 0;font-size:13px;flex-wrap:wrap}
.deck .bot-event-conversations a+a{border-top:1px solid var(--bot-line)}
.deck .bot-event-conversations a span,.deck .bot-text-link{font-size:12px;color:#e4c55c}
.deck .bot-text-link{display:inline-block;margin-top:18px}
.deck .bot-space .module-detail-hero{margin-top:0;padding:22px;border-radius:12px}
.deck .bot-space .module-detail-hero h2{font-size:24px;margin:10px 0}
.deck .bot-space .event-workspace{margin-top:0}
.deck .bot-space :is(.service-list-card,.panel,.cols,.message-console){min-width:0}
.deck .bot-space a:focus-visible,.deck .bot-space button:focus-visible{outline:2px solid #e4c55c;outline-offset:4px}
.theme-light .bot-space{--bot-bg:#fff;--bot-line:#dce0e6;--bot-muted:#566170}
.theme-light .bot-form label{color:#273142}
.theme-light .bot-form input:not([type=checkbox]),.theme-light .bot-form textarea,.theme-light .bot-event-conversations{background:#f6f7f9;color:#273142;border-color:#cbd1da}
@media(max-width:1100px){.deck .bot-space-nav a{flex-direction:column;gap:7px;font-size:12px}.deck .bot-space-head{align-items:flex-start}.deck .bot-space-state{justify-content:flex-end}.deck .bot-command-layout{grid-template-columns:1fr}}
@media(max-width:600px){.deck .bot-space-head{gap:14px;flex-direction:column;padding-bottom:20px}.deck .bot-space-identity h1{font-size:23px}.deck .bot-space-state{justify-content:flex-start;padding-left:68px}.deck .bot-space-nav{grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;margin-bottom:22px}.deck .bot-space-nav a{font-size:11px;padding:10px 2px}.deck .bot-space-title{align-items:flex-start;flex-wrap:wrap}.deck .bot-space-title h2{font-size:21px}.deck .bot-panel{padding:18px}.deck .bot-space-tools{gap:6px}.deck .bot-space .d-botdetailgrid{grid-template-columns:1fr}.deck .bot-space .d-keyvalues>div{gap:10px;flex-wrap:wrap}.deck .bot-space .d-keyvalues dd{overflow-wrap:anywhere}.deck .bot-event-row h3{overflow-wrap:anywhere}.deck .bot-space .module-detail-hero{display:flex;flex-wrap:wrap}.deck .bot-space .module-detail-hero>div{min-width:0}.deck .bot-space .module-detail-grid{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){.deck .bot-space-nav a{transition:none}}
