/* One presentation layer for the existing, functional module editors. */
body.bot-v250 { --v6-surface:var(--bot-panel); --v6-surface-2:var(--bot-panel-2); --v6-ink:var(--bot-text); --v6-muted:var(--bot-muted); --v6-line:var(--bot-line); --v6-gold:var(--bot-gold); --mds-text:var(--bot-text); --tv2-purple:var(--bot-teal); }
body.bot-v250 #configuration { font-family:'DM Sans',sans-serif; }
body.bot-v250 #configuration .bot-module-grid { display:grid!important; grid-template-columns:minmax(0,1fr) 310px!important; gap:26px!important; align-items:start!important; min-width:0!important; }
body.bot-v250 #configuration .bot-module-grid> :first-child { min-width:0; }
body.bot-v250 #configuration [data-panel=tickets] .tickets-layout { display:contents!important; }
body.bot-v250 #configuration .bot-module-heading .tickets-activation { grid-column:1/-1!important; margin-top:2px!important; }
body.bot-v250 #configuration .tickets-activation>label { display:flex!important; align-items:center; justify-content:space-between; gap:14px; width:100%; padding:12px 14px!important; border:1px solid var(--bot-line)!important; border-radius:12px; background:#a9cdb70b!important; }
body.bot-v250 #configuration .tickets-activation :is(b,small) { font-family:'DM Sans',sans-serif!important; text-align:left!important; }
body.bot-v250 #configuration .tickets-activation small { color:var(--bot-muted)!important; font-weight:400!important; }
body.bot-v250 #configuration :is(.tickets-v2-nav,.lv-section-nav) { display:grid!important; gap:6px!important; padding:6px!important; border:1px solid var(--bot-line)!important; border-radius:12px!important; background:#a9cdb70b!important; box-shadow:none!important; min-width:0; }
body.bot-v250 #configuration .tickets-v2-nav { grid-template-columns:repeat(5,minmax(0,1fr))!important; }
body.bot-v250 #configuration :is(.tickets-v2-nav,.lv-section-nav) button { min-width:0!important; padding:9px 6px!important; border-radius:8px!important; font-family:'DM Sans',sans-serif!important; box-shadow:none!important; }
body.bot-v250 #configuration :is(.tickets-v2-nav,.lv-section-nav) button::after { display:none!important; }
body.bot-v250 #configuration :is(.tickets-v2-nav,.lv-section-nav) button:is(.active,[aria-selected=true]) { border-color:#81c9b755!important; background:#81c9b713!important; color:var(--bot-text)!important; }
body.bot-v250 #configuration .bot-module-heading { display:grid!important; grid-template-columns:48px minmax(0,1fr)!important; gap:14px!important; align-items:center!important; padding:8px 0 22px!important; margin:0!important; background:none!important; border:0!important; border-radius:0!important; box-shadow:none!important; }
body.bot-v250 #configuration .bot-module-heading> :first-child { width:48px!important; height:48px!important; min-width:0!important; padding:0!important; border:0!important; border-radius:12px!important; box-shadow:none!important; background-color:#a9cdb70b!important; background-size:38px!important; object-fit:contain!important; }
body.bot-v250 #configuration .bot-module-heading> :first-child img { width:38px!important; height:38px!important; object-fit:contain!important; }
body.bot-v250 #configuration .bot-module-heading>div { min-width:0!important; }
body.bot-v250 #configuration .bot-module-heading>div>small { display:block!important; font:8px/1.7 'Silkscreen',monospace!important; color:var(--bot-gold)!important; letter-spacing:1px!important; }
body.bot-v250 #configuration .bot-module-heading :is(h2,h3) { font:700 clamp(20px,1.8vw,26px)/1.35 'DM Sans',sans-serif!important; color:var(--bot-text)!important; letter-spacing:-.6px!important; margin:7px 0 0!important; overflow-wrap:anywhere; }
body.bot-v250 #configuration .bot-module-heading p { font:400 13px/1.7 'DM Sans',sans-serif!important; color:var(--bot-muted)!important; margin:7px 0 0!important; }
body.bot-v250 #configuration .bot-module-heading> :is(label,button,.yt-count) { grid-column:1/-1!important; justify-self:stretch!important; width:100%!important; max-width:none!important; display:flex!important; align-items:center!important; justify-content:space-between!important; gap:14px!important; padding:12px 14px!important; border:1px solid var(--bot-line)!important; border-radius:12px!important; background:#a9cdb70b!important; box-shadow:none!important; margin:2px 0 0!important; min-height:52px!important; text-align:left!important; }
body.bot-v250 #configuration .bot-module-heading> :is(label,button)>span { width:auto!important; min-width:0!important; text-align:left!important; }
body.bot-v250 #configuration .bot-module-heading> :is(label,button)>span :is(b,small) { display:block!important; width:auto!important; white-space:normal!important; text-align:left!important; font-family:'DM Sans',sans-serif!important; letter-spacing:0!important; }
body.bot-v250 #configuration .bot-module-heading> :is(label,button)>span b { font-size:13px!important; line-height:1.5!important; color:var(--bot-text)!important; }
body.bot-v250 #configuration .bot-module-heading> :is(label,button)>span small { font-size:11px!important; line-height:1.6!important; font-weight:400!important; color:var(--bot-muted)!important; }
body.bot-v250 #configuration .bot-module-heading> :is(label,button)>i { position:relative!important; inset:auto!important; order:2!important; flex:0 0 40px!important; width:40px!important; height:22px!important; margin:0!important; }
body.bot-v250 #configuration .bot-settings-card { padding:20px!important; border:1px solid var(--bot-line)!important; border-radius:16px!important; background:var(--bot-panel)!important; box-shadow:none!important; min-width:0; }
body.bot-v250 #configuration .bot-settings-card :is(h3,h4) { font-family:'DM Sans',sans-serif!important; font-size:17px!important; font-weight:700!important; line-height:1.45!important; color:var(--bot-text)!important; }
body.bot-v250 #configuration .bot-settings-card :is(p,label>small) { color:var(--bot-muted)!important; font-family:'DM Sans',sans-serif!important; line-height:1.7!important; font-size:12px!important; }
body.bot-v250 #configuration .entry-mode-card { display:flex!important; flex-direction:column!important; align-items:flex-start!important; justify-content:flex-start!important; gap:10px!important; min-height:125px!important; padding:14px!important; overflow:hidden; }
body.bot-v250 #configuration .entry-mode-visual { display:flex!important; align-items:center!important; gap:7px!important; order:0!important; width:auto!important; height:auto!important; margin:0!important; }
body.bot-v250 #configuration .entry-mode-visual i { width:30px!important; height:30px!important; border-radius:8px!important; box-shadow:none!important; }
body.bot-v250 #configuration .entry-mode-visual svg { width:21px!important; height:21px!important; }
body.bot-v250 #configuration .entry-mode-visual em { font:7px/1.4 'Silkscreen',monospace!important; }
body.bot-v250 #configuration .entry-mode-copy { order:1!important; min-width:0!important; width:100%!important; }
body.bot-v250 #configuration .entry-mode-copy b { font:700 13px/1.5 'DM Sans',sans-serif!important; text-transform:none!important; white-space:normal!important; }
body.bot-v250 #configuration .entry-mode-copy small { font:400 11px/1.6 'DM Sans',sans-serif!important; }
body.bot-v250 #configuration .bot-settings-card :is(input:not([type=checkbox]):not([type=radio]):not([type=color]),select,textarea) { border:1px solid var(--bot-line)!important; border-radius:10px!important; background:var(--bot-bg)!important; color:var(--bot-text)!important; min-height:42px; font:400 13px/1.5 'DM Sans',sans-serif!important; }
body.bot-v250 #configuration :is(input,select,textarea,button):focus-visible { outline:2px solid var(--bot-teal)!important; outline-offset:3px!important; }
body.bot-v250 #configuration .bot-preview-panel { position:sticky!important; top:96px!important; align-self:start!important; width:100%!important; min-width:0!important; max-width:none!important; padding:16px!important; margin:0!important; border:1px solid var(--bot-line)!important; border-radius:16px!important; background:var(--bot-panel)!important; box-shadow:0 12px 32px #0002!important; overflow:visible!important; }
body.bot-v250 #configuration .bot-preview-heading { display:block!important; margin:0 0 16px!important; padding:0 0 13px!important; border:0!important; border-bottom:1px solid var(--bot-line)!important; background:none!important; }
body.bot-v250 #configuration .bot-preview-heading strong { display:block; font:8px/1.8 'Silkscreen',monospace; letter-spacing:1px; color:var(--bot-teal); }
body.bot-v250 #configuration .bot-preview-heading span { display:block; margin-top:6px; font:400 11px/1.6 'DM Sans',sans-serif; color:var(--bot-muted); }
body.bot-v250 #configuration .bot-preview-panel> :is(small,h3,.perks-preview-lead,.entry-preview-kicker,.lv-preview-kicker,.yt-preview-kicker,.tickets-preview-kicker),
body.bot-v250 #configuration .bot-preview-panel .lv-preview-head,
body.bot-v250 #configuration .tickets-preview-sticky>header { display:none!important; }
body.bot-v250 #configuration .bot-preview-frame { position:static!important; top:auto!important; width:100%!important; max-width:none!important; min-width:0!important; margin:0!important; padding:0!important; border:0!important; border-radius:10px!important; background:none!important; box-shadow:none!important; }
body.bot-v250 #configuration .bot-preview-panel :is(.entry-discord-message,.trap-discord-message,.lv-message,.tickets-discord-shell,.rr-preview-frame,.yt-preview-frame) { border-radius:10px!important; box-shadow:none!important; }
body.bot-v250 #configuration .bot-preview-panel :is(.entry-preview-tools,.lv-preview-tools,.yt-preview-tabs,.tickets-preview-tabs,.tickets-v3-preview-tools,.tickets-preview-publish) { margin:12px 0 0!important; gap:8px!important; }
body.bot-v250 #configuration .bot-preview-panel :is(.entry-preview-tools,.lv-preview-tools,.tickets-v3-preview-tools) button { font-family:'DM Sans',sans-serif!important; border-radius:9px!important; box-shadow:none!important; }
body.bot-v250 #configuration .bot-preview-panel :is(#entry-test,.tickets-preview-publish button) { display:flex!important; align-items:center; justify-content:center; gap:8px; padding:13px 10px!important; min-height:44px!important; width:100%!important; border:1px solid #929cf670!important; border-radius:10px!important; color:#fff!important; background:linear-gradient(120deg,#656bbd,#4e579f)!important; box-shadow:none!important; font:700 12px/1.5 'DM Sans',sans-serif!important; }
body.bot-v250 #configuration .bot-preview-panel :is(#entry-test,.tickets-preview-publish button):disabled { opacity:.55; cursor:not-allowed; }
body.bot-v250 #configuration .bot-preview-panel :is(.yt-preview-empty,.rr-preview-empty) { padding:24px 12px!important; font:400 13px/1.8 'DM Sans',sans-serif!important; text-align:center; color:var(--bot-muted)!important; }
body.bot-v250 #configuration .bot-preview-panel :is(.yt-preview-tabs,.tickets-preview-tabs) button { padding:9px 7px!important; border-radius:8px!important; font:600 11px/1.4 'DM Sans',sans-serif!important; }
body.bot-v250 #configuration .perks-preview :is(.discord-profile,.discord-channel-preview) { box-shadow:none!important; }
body.bot-v250 #configuration .perks-preview-caption { margin:12px 0 0!important; }
body.bot-v250 #configuration .trap-preview-note { margin-top:14px!important; padding:13px!important; background:#a0caba08!important; font:400 12px/1.7 'DM Sans',sans-serif!important; }
/* Preserve enlargement controls and let wider previews use the available space. */
@media(min-width:1450px) {
  body.bot-v250 #configuration .bot-module-grid { grid-template-columns:minmax(0,1fr) 350px!important; }
  body.bot-v250 #configuration :is([data-preview-expanded=true],[data-entry-preview-expanded=true]) .bot-module-grid { grid-template-columns:minmax(0,1fr) 440px!important; }
}
@media(max-width:1199px) {
  body.bot-v250 #configuration .bot-module-grid { grid-template-columns:minmax(0,1fr)!important; }
  body.bot-v250 #configuration .bot-preview-panel { position:static!important; max-width:620px!important; justify-self:center!important; }
}
@media(max-width:620px) {
  body.bot-v250 .dash-shell { padding-left:18px!important; padding-right:18px!important; }
  body.bot-v250 #configuration .bot-settings-card { padding:16px!important; }
  body.bot-v250 #configuration .bot-module-heading { grid-template-columns:40px minmax(0,1fr)!important; gap:12px!important; }
  body.bot-v250 #configuration .bot-module-heading> :first-child { width:40px!important; height:40px!important; }
  body.bot-v250 #configuration .bot-preview-panel { padding:13px!important; }
}
@media(max-width:900px) { body.bot-v250 .bot-mobile-toggle { position:fixed!important; top:85px!important; z-index:91!important; box-shadow:0 5px 18px #0003; } }
body.bot-v250 .bot-sidebar-bottom .bot-discord-link { display:grid!important; grid-template-columns:26px minmax(0,1fr) 12px!important; gap:10px!important; padding:13px 11px!important; background:linear-gradient(110deg,#5865f21d,#899af00b)!important; transition:border-color .2s,background .2s; }
body.bot-v250 .bot-sidebar-bottom .bot-discord-link>img { display:block!important; width:24px!important; height:24px!important; min-width:24px!important; max-width:24px!important; flex:0 0 24px!important; object-fit:contain!important; aspect-ratio:1!important; }
body.bot-v250 .bot-sidebar-bottom .bot-discord-link>span { min-width:0; font:700 12px/1.4 'DM Sans',sans-serif; }
body.bot-v250 .bot-sidebar-bottom .bot-discord-link small { line-height:1.5; }
body.bot-v250 .bot-sidebar-bottom .bot-discord-link b { font-size:14px; color:#b7c0f5; }
body.bot-v250 .bot-sidebar-bottom .bot-discord-link:hover { border-color:#929ffa80!important; background:#5865f229!important; }
body.bot-v250 .unsaved-changes-popover { translate:none!important; }
body.bot-v250 .bot-sidebar-bottom a:focus-visible { outline:2px solid var(--bot-teal); outline-offset:3px; }
@media(prefers-reduced-motion:reduce) { body.bot-v250 .bot-sidebar-bottom .bot-discord-link { transition:none; } }
