.toggle-label{display:flex;align-items:center;gap:10px;margin:12px 0 22px}.toggle-label input[type=checkbox]{display:inline;width:18px;height:18px;margin:0;accent-color:#648ed4}#security{padding:30px 46px;max-width:1200px}.security-intro{margin:10px 0 24px}.health-grid{display:flex;gap:8px;flex-wrap:wrap;margin:20px 0}.health-grid span{font-size:11px;border:1px solid #2d3e52;border-radius:5px;padding:6px 10px}.health-ok{color:#8bccb4}.health-missing{color:#efb091}.protection-row{display:grid;grid-template-columns:minmax(160px,1.4fr) 1fr 1fr 1fr;gap:18px;border-top:1px solid #293246;padding:18px 0 0;align-items:center}.protection-row .toggle-label{color:#d3dff3}.protection-row input,.protection-row select{margin-bottom:14px}#preview-banner{display:block;width:100%;max-height:300px;object-fit:contain;border-radius:5px;margin:16px 0}.toolbar{flex-wrap:wrap}.toolbar label{min-width:170px}.form-bottom{flex-wrap:wrap}#announcement-options .toggle-label{font-size:12px}.hint.security-intro{font-size:12px;line-height:1.8}@media(max-width:800px){#security{padding:25px}.protection-row{grid-template-columns:1fr 1fr}.protection-row .toggle-label{grid-column:1/-1}}
.preview-buttons .preview-ticket{width:auto;padding:4px 12px;font-size:12px}
.variable-picker{margin:10px 0 15px;font-weight:400}.variable-picker summary{cursor:pointer;font-size:10px;color:#91afe3;letter-spacing:.2px}.variable-tokens{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}.variable-token{background:#1b2840;border:1px solid #344d76;color:#bbd2fa;border-radius:5px;padding:5px 8px;font:11px ui-monospace,monospace;cursor:pointer}.variable-token:hover{background:#2b4167;border-color:#789edb}.variable-token:focus-visible{outline:2px solid #8aafea;outline-offset:2px}.variable-legend{color:#8392ac;font-size:10px;line-height:1.8;margin:9px 0 0}

.command-entry{padding:18px;margin:12px 0;border:1px solid #303748;border-left:3px solid #7a9edb;border-radius:8px;background:#151922}.command-entry h3{margin:0 0 8px}.command-entry p{white-space:pre-wrap;overflow-wrap:anywhere;color:#bbc3d4;font-size:13px}.command-entry code{display:block;white-space:pre-wrap;overflow-wrap:anywhere;padding:10px;background:#0e121a;border-radius:5px}
.brand-mark{display:grid;place-items:center;width:40px;height:40px;border:1px solid #527dc366;background:linear-gradient(145deg,#315a9c,#172a4d);border-radius:13px;color:#dce9ff;font-size:28px;font-weight:800;box-shadow:0 4px 22px #315da825;letter-spacing:-2px}
:root{--bg:#0b0f17;--surface:#121a27;--line:#253147;--muted:#94a4bd;--blue:#93baff;--accent:#4c7ccd}
body{background:radial-gradient(ellipse at 82% 0,#17294565,transparent 45%),#0b0f17;color:#e8eef9;font-size:14px;-webkit-font-smoothing:antialiased}
aside{width:250px;padding:28px 18px;background:#0d131f;border-color:#202c40;overflow-y:auto;z-index:20}
.brand{padding:0 12px;font-size:21px;gap:12px}.brand-sub{font-size:8px;letter-spacing:2px;color:#7b91b4;margin-top:1px}
.nav-label{margin:30px 14px 10px;font-size:9px;font-weight:700;letter-spacing:1.7px;color:#607493}nav .nav-label{margin-top:27px}
.nav-item{font:inherit;text-align:left;width:100%;background:transparent;border:1px solid transparent;color:#92a3bd;padding:10px 13px;margin:3px 0;border-radius:9px;gap:12px;font-size:12px;transition:background .15s,color .15s,border-color .15s}
.nav-symbol{width:20px;text-align:center;font-size:17px;color:#6885b4}.nav-item:hover{background:#172236;color:#e1ebff}.nav-item.active{background:linear-gradient(90deg,#23417388,#1a2d4d77);border-color:#35578b70;color:#d8e7ff;box-shadow:inset 3px 0 #82aaff}.nav-item.active .nav-symbol{color:#a6c7ff}.nav-item:disabled{opacity:.35;cursor:not-allowed}
.aside-bottom{position:static;margin:32px 12px 0;padding-top:20px;border-top:1px solid #243047;color:#a2b4ce}.aside-bottom p{margin:4px 0;font-size:10px}
main{margin-left:250px;max-width:none;min-height:100vh}header{height:76px;background:#0d142099;border-color:#243047;padding:0 42px;backdrop-filter:blur(16px)}.breadcrumb{color:#7487a5}.breadcrumb b{font-weight:500;color:#d2def0}
.heading{display:flex;align-items:center;justify-content:space-between;padding:40px 42px 30px;gap:24px}.heading h1{font-size:34px;font-weight:650;letter-spacing:-1.1px;margin:8px 0}.heading p{font-size:13px;max-width:680px;line-height:1.8}.eyebrow{font-size:9px;letter-spacing:2px;color:#7398d6}.workspace-badge{white-space:nowrap;border:1px solid #2b3c56;border-radius:24px;padding:7px 13px;font-size:10px;color:#9fb7d8;background:#132034}
.toolbar{margin:0 42px;padding:19px 22px;gap:22px;border:1px solid #2a3a53;border-radius:12px;background:linear-gradient(110deg,#162237,#111b2c);box-shadow:0 8px 30px #0002;align-items:center}.toolbar label{font-size:9px;letter-spacing:1.1px;flex:1;min-width:170px;max-width:300px}.toolbar select{margin:7px 0 0;font-size:12px;background:#0d1727;border-color:#304564;height:43px}.save-state{border-radius:20px;background:#18332c;color:#9ed3bd;padding:5px 11px;font-size:10px;white-space:nowrap}
#workspace>.hint{padding:14px 44px;margin:0;color:#6e83a3;font-size:11px;max-width:1100px;line-height:1.8}
.editor{padding:20px 42px 36px;gap:28px;grid-template-columns:minmax(300px,1.05fr) minmax(300px,1fr)}.edit-card{border:1px solid #27364d;background:linear-gradient(150deg,#151f30,#101825);border-radius:14px;padding:28px;box-shadow:0 10px 40px #0002;min-width:0}.card-heading{border-bottom:1px solid #28364b;padding-bottom:18px;margin-bottom:24px}.card-heading h2{font-size:17px;font-weight:650;letter-spacing:-.3px}.card-heading span{font-size:8px;color:#87a2c9;letter-spacing:1.6px}
#commands,#logging,#vanity,#member-backup{margin:20px 42px 36px;max-width:1400px}#security{padding:20px 42px;max-width:1484px}
label{font-size:12px;color:#b8c8df;font-weight:550}input:not([type=color]),textarea,select{background:#0b1422;border:1px solid #2a3c57;border-radius:8px;padding:11px 13px;font-size:12px;color:#e1eafa;transition:border-color .15s,box-shadow .15s}input:focus,textarea:focus,select:focus{border-color:#6f9ee9;box-shadow:0 0 0 3px #4778c326}.hint{font-size:11px;color:#8a9dbb;line-height:1.85}small.hint{display:block;margin: -10px 0 22px}p.hint{margin-top:10px}.color-field{background:#0b1422;border-color:#2a3c57;border-radius:8px;height:46px}
.button{background:linear-gradient(180deg,#456faf,#31588f);border:1px solid #648ed066;border-radius:8px;box-shadow:0 3px 10px #0002;font-size:12px;font-weight:600;padding:11px 18px;gap:18px}.button:hover{background:linear-gradient(180deg,#5380c6,#3a65a3);transform:translateY(-1px)}.ghost{background:#162136;border-color:#30425d;border-radius:8px;color:#b2c5e1;font-size:12px}.ghost:hover{background:#20314c;border-color:#5f80ae}.form-bottom{border-color:#293850;padding-top:20px}.form-bottom button{font-size:12px}button:focus-visible,a:focus-visible{outline:2px solid #9cc2ff;outline-offset:3px}
.preview-area{background:repeating-linear-gradient(0deg,transparent,transparent 23px,#3c547811 24px),repeating-linear-gradient(90deg,transparent,transparent 23px,#3c547811 24px);border:1px solid #223249;border-radius:14px;padding:24px;align-self:start;position:sticky;top:24px}.preview-heading{font-size:9px;margin-bottom:10px}.discord-message{padding:14px 0}.publish-note{border-color:#2c3a50;background:#15223666;padding:16px;border-radius:9px}.preview-note{font-size:11px;line-height:1.8;color:#8296b5}
#command-results{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.command-entry{margin:0;border:1px solid #2b3c57;border-radius:10px;background:#101a2a;padding:21px;box-shadow:inset 0 2px #5a83bd44}.command-entry h3{font-size:15px;color:#b4d0ff;letter-spacing:-.2px}.command-entry p{font-size:11px;color:#8fa4c3;line-height:1.8}.command-entry code{background:#0b1320;border:1px solid #263752;color:#c4d8f7;font-size:11px;padding:12px}.command-entry p:first-of-type{color:#becde2;font-size:12px;min-height:40px}.log-destination{padding:9px 12px;background:#1b2e4766;border:1px solid #30476766;border-radius:7px;color:#a9c5ee;font-size:10px}#logging-routes{display:grid;grid-template-columns:1fr 1fr;gap:20px}#logging-routes>label{border:1px solid #263952;border-radius:10px;padding:18px;background:#0d1725;text-transform:capitalize}#logging-routes .hint{text-transform:none;margin-bottom:0;font-weight:400}.health-grid span{border-radius:7px;background:#0d1726}.health-ok{border-color:#31584b!important}.protection-row{gap:14px}.variable-token{border-radius:6px;background:#1b2f4c;color:#afccfb}.welcome{max-width:1100px;padding:85px 65px}.welcome h1{font-size:64px;max-width:700px;letter-spacing:-2.5px}.welcome-art{margin:40px 0}.sample{box-shadow:0 20px 60px #0004;border:1px solid #2d4265;border-left:3px solid #759de0;background:#152035;border-radius:10px;transform:rotate(-2deg)}footer{border-top:1px solid #1e2c42;margin:26px 42px 0;padding:22px 0;color:#657a9c;font-size:10px}#notice{border-radius:12px;box-shadow:0 12px 50px #0008;font-size:12px;line-height:1.8}
@media(min-width:1600px){.editor{grid-template-columns:minmax(400px,650px) minmax(350px,600px)}.heading,.toolbar{max-width:1400px}}
@media(max-width:1150px){aside{width:215px;padding:24px 12px}main{margin-left:215px}.brand{font-size:18px}.heading,header{padding-left:26px;padding-right:26px}.toolbar{margin:0 26px}.editor{padding:20px 26px;grid-template-columns:1fr}.preview-area{position:static;order:0}#commands,#logging,#vanity,#member-backup{margin:20px 26px}.workspace-badge{display:none}#security{padding:20px 26px}#workspace>.hint{padding:14px 28px}}
@media(max-width:800px){aside{display:block;position:relative;width:100%;padding:16px;border-bottom:1px solid #27364c;border-right:0}aside nav{display:flex;overflow-x:auto;gap:6px;margin-top:15px;padding-bottom:4px}aside>.nav-label,nav .nav-label,.aside-bottom{display:none}.nav-item{width:auto;flex-shrink:0;padding:8px 12px;margin:0;font-size:11px}.nav-symbol{display:none}main{margin-left:0}header{height:62px;padding:0 20px;justify-content:flex-end}.heading{padding:27px 20px 22px}.heading h1{font-size:29px}.toolbar{margin:0 16px;padding:16px;gap:14px}.toolbar label{max-width:none;min-width:135px}.editor{padding:16px;gap:18px}.edit-card{padding:20px}#commands,#logging,#vanity,#member-backup{margin:16px}#security{padding:16px}.preview-area{padding:18px}#command-results,#logging-routes{grid-template-columns:1fr}.form-row{grid-template-columns:1fr}.welcome{padding:45px 24px}.welcome h1{font-size:45px}.welcome-art>span{font-size:90px}footer{margin:20px 18px 0;flex-wrap:wrap}.save-state{margin-left:0}#workspace>.hint{padding:14px 19px}#notice{bottom:16px;right:16px;left:16px;max-width:none}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}.button:hover{transform:none}}

#commands>.form-row{grid-template-columns:1.6fr 1fr 1fr} @media(max-width:800px){#commands>.form-row{grid-template-columns:1fr}}

/* Ambient night-sky layer: always behind the interactive workspace. */
html{scroll-behavior:smooth;scroll-padding-top:24px;scrollbar-color:#354d77 #080b13}
body{background:#060910;isolation:isolate}
body::before,body::after{content:"";position:fixed;width:70vw;height:65vh;pointer-events:none;z-index:-1;border-radius:50%;filter:blur(75px);opacity:.32;will-change:transform;animation:ambient-drift 24s ease-in-out infinite alternate}
body::before{top:-25vh;left:25vw;background:radial-gradient(ellipse,#3556a3 0%,#253b7566 42%,transparent 70%)}
body::after{bottom:-30vh;left:-15vw;background:radial-gradient(ellipse,#254b9277,#41387233 45%,transparent 70%);animation-delay:-12s;animation-duration:32s}
#ambient-sky{position:fixed;inset:0;width:100%;height:100%;z-index:0;pointer-events:none;opacity:.85}
main{position:relative;z-index:1;background:transparent}aside{background:#090e19d9;backdrop-filter:blur(22px);border-right-color:#769bdd1c}header{background:#0b111b80;border-bottom-color:#799cde1a}
.heading h1,.welcome h1{background:linear-gradient(110deg,#f5f8ff 5%,#bdd4ff 48%,#a7a4e7);background-clip:text;-webkit-background-clip:text;color:transparent;text-shadow:0 0 45px #a5baff14}
.eyebrow{color:#9bb9f0;text-shadow:0 0 20px #7ba9ff66}
.toolbar{background:linear-gradient(120deg,#182a4699,#0c142377);border-color:#668cce30;backdrop-filter:blur(18px);box-shadow:0 10px 45px #0003,inset 0 1px #a5c5ff0d}
.edit-card{background:linear-gradient(145deg,#162236bd,#0a111dcc);border-color:#7c9cc526;backdrop-filter:blur(14px);box-shadow:0 15px 50px #0003,inset 0 1px #b7d0ff0a}
.command-entry{position:relative;overflow:hidden;background:linear-gradient(140deg,#172137a6,#0b101bcc);border:1px solid #8ca9d329;box-shadow:inset 0 1px #b8d4ff12,0 8px 25px #0002;transition:transform .25s ease,border-color .25s ease,box-shadow .25s ease}
.command-entry::before{content:"";position:absolute;inset:0;pointer-events:none;background:radial-gradient(ellipse at 100% 0,#729df81a,transparent 65%);opacity:0;transition:opacity .25s}
.command-entry:hover{transform:translateY(-3px);border-color:#8cafff70;box-shadow:0 8px 35px #446fbe20,inset 0 1px #b8d4ff20}.command-entry:hover::before{opacity:1}
.command-entry h3{color:#d1dfff;text-shadow:0 0 22px #8aaaff26}.command-entry code{background:#080d188c;border-color:#7d9bce20}
.button{box-shadow:0 0 22px #4578db24,inset 0 1px #ffffff1a;transition:transform .2s,box-shadow .2s,background .2s}.button:hover{box-shadow:0 0 30px #659aff50,0 5px 18px #0004}.brand-mark{box-shadow:0 0 30px #4274ce40,inset 0 1px #dbe8ff22}.nav-item.active{box-shadow:inset 3px 0 #a1bcff,0 0 25px #5487e012}.preview-area{background-color:#0c1524aa;backdrop-filter:blur(12px);border-color:#82a9ed29}
#commands:not([hidden]),#logging:not([hidden]),#vanity:not([hidden]),#editor:not([hidden]),#security:not([hidden]),#member-backup:not([hidden]){animation:section-arrive .4s ease both}
@keyframes ambient-drift{from{transform:translate3d(-4vw,-2vh,0) scale(1)}to{transform:translate3d(8vw,7vh,0) scale(1.16)}}
@keyframes section-arrive{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:800px){body::before,body::after{filter:blur(45px);opacity:.24}.edit-card{backdrop-filter:none}#ambient-sky{opacity:.6}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}body::before,body::after{animation:none;will-change:auto}#commands,#logging,#vanity,#editor,#security,#member-backup{animation:none!important}.command-entry:hover{transform:none}}

/* Let the sky show through the workspace while retaining readable controls. */
aside{background:#090e1999;backdrop-filter:blur(9px)}
header{background:#0b111b55;backdrop-filter:blur(7px)}
.toolbar{background:linear-gradient(120deg,#182a465c,#0c142347);backdrop-filter:blur(5px)}
.edit-card{background:linear-gradient(145deg,#16223666,#0a111d73);backdrop-filter:blur(3px)}
.command-entry{background:linear-gradient(140deg,#17213759,#0b101b66);backdrop-filter:blur(1px)}
.preview-area{background-color:#0c15245c;backdrop-filter:blur(3px)}
#logging-routes>label{background:#0d17255c}
.publish-note{background:#1522364d}
.command-entry code{background:#080d1866}
input:not([type=color]),textarea,select,.color-field{background:#0b1422c9}
@media(max-width:800px){.edit-card,.command-entry,.preview-area{backdrop-filter:none}aside{background:#090e19b3}}

/* Final interaction and layout refinements. */
:root{--text-primary:#e3ecfa;--text-secondary:#a6b7d0;--focus-ring:#aac9ff}
body{line-height:1.65}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}::selection{background:#628ee75c;color:#fff}
.heading{padding-top:36px;padding-bottom:28px}.heading p{color:#9bafcc;font-size:13px}.toolbar{gap:20px}.toolbar select{font-weight:500}.workspace-badge{font-weight:550;letter-spacing:.2px}
.edit-card>.card-heading{margin-bottom:25px}.card-heading h2{line-height:1.4}.card-heading span{white-space:nowrap;margin-left:12px}.hint{color:#98aac4;font-size:11px}.edit-card>label{margin-top:12px}.edit-card>label:first-of-type{margin-top:0}.edit-card textarea{min-height:115px}.edit-card input::placeholder,.edit-card textarea::placeholder{color:#607897}select option{background:#101a29;color:#dce8fa}
input:focus-visible,textarea:focus-visible,select:focus-visible{outline:2px solid #9bc0fc55;outline-offset:2px}.form-bottom{align-items:center;gap:12px}.form-bottom .button{margin-left:auto}.form-bottom .hint{margin:0;max-width:60%}.form-bottom button{min-height:40px}.toggle-label{cursor:pointer}.toggle-label input{flex-shrink:0}input[type=checkbox]{accent-color:#8cb3fc}button:disabled{cursor:not-allowed;opacity:.45}.is-busy button:disabled{cursor:progress}.is-busy .save-state::before{content:"";display:inline-block;width:9px;height:9px;border:1.5px solid #87a8d455;border-top-color:#c5daff;border-radius:50%;animation:button-spin .8s linear infinite;margin-right:8px;vertical-align:middle}
.save-state{transition:background .2s,color .2s,border-color .2s;border:1px solid #81c9ad1c}.save-state[data-state=unsaved]{background:#4a351c99;border-color:#e4b06a38;color:#f1cc98}.save-state[data-state=unsaved]::before{content:"";display:inline-block;width:5px;height:5px;background:#f1cc98;border-radius:50%;margin-right:7px;vertical-align:middle}
#command-results{align-items:start}.command-entry{padding:22px;min-width:0}.command-entry h3{padding-right:85px;overflow-wrap:anywhere;font-size:14px;line-height:1.6}.command-entry p{line-height:1.85;color:#9db0cf;margin:12px 0}.command-entry>p:first-of-type{font-size:12px;color:#c1cde1;min-height:42px}.command-entry code{user-select:all;font-size:11px;line-height:1.8;padding:12px 14px;margin:15px 0}.copy-command{position:absolute;right:16px;top:18px;background:#1d2d4555;border:1px solid #8ea9d32b;color:#abc2e7;border-radius:6px;padding:5px 8px;font-size:9px;cursor:pointer;transition:background .2s,color .2s}.copy-command:hover{background:#37548166;color:#edf4ff}.command-badges{display:flex;flex-wrap:wrap;gap:6px;padding-top:2px;margin-bottom:14px}.command-badges span{background:#6189ce13;border:1px solid #789bd326;border-radius:5px;color:#aac1e4;padding:3px 7px;font-size:9px;letter-spacing:.2px}.command-aliases{border-top:1px solid #7b9ed11c;padding:10px 0 0;margin-top:12px}.command-aliases summary{font-size:10px;color:#a3bce3;cursor:pointer}.command-aliases p{max-height:160px;overflow:auto;font:10px/1.9 ui-monospace,monospace}.catalog-empty{grid-column:1/-1;border:1px dashed #789bd340;border-radius:10px;padding:38px 24px;text-align:center;color:#b2c5e2;background:#17273c44;font-size:13px}
#notice{display:flex;align-items:center;gap:20px;max-width:560px;padding:15px 18px;backdrop-filter:blur(18px);background:#193354ed;border-color:#7aa7db50}.notice-close{background:none;border:0;color:inherit;font-size:10px;opacity:.8;cursor:pointer;padding:6px;white-space:nowrap}.notice-close:hover{opacity:1}#notice.error{background:#3a202aee;border-color:#ab597366}.log-destination{font-weight:500;line-height:1.7}.health-grid span{padding:7px 11px}.protection-row{padding-top:20px}.variable-picker summary{padding:5px 0}.variable-token{padding:6px 9px}.preview-heading{padding-bottom:15px}.publish-note{line-height:1.8}.nav-item{min-height:42px;align-items:center}.nav-symbol{display:flex;align-items:center;justify-content:center}.nav-symbol svg{flex-shrink:0}
@keyframes button-spin{to{transform:rotate(360deg)}}
@media(min-width:1500px){#command-results{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:800px){.heading{padding-top:24px;padding-bottom:22px}.heading h1{font-size:27px}.edit-card{padding:20px}.card-heading{gap:10px}.card-heading span{font-size:7px;letter-spacing:1px}.form-bottom .hint{max-width:100%;flex-basis:100%}.form-bottom{gap:10px}.form-bottom button{flex-grow:1}.command-entry{padding:20px}.nav-item{min-height:38px}.nav-symbol{display:none}#notice{gap:10px}.command-entry h3{padding-right:78px}.aside-bottom{display:none}}
@media(prefers-reduced-motion:reduce){.is-busy .save-state::before{animation:none}}

#chat-messages{max-height:480px;overflow-y:auto;margin:16px 0}.chat-message{padding:12px 0;border-bottom:1px solid #34343e}.chat-message p{white-space:pre-wrap;overflow-wrap:anywhere}

/* Discord-inspired chat workspace. */
#bot-chat .chat-shell{display:grid;grid-template-columns:210px minmax(0,1fr);height:690px;max-height:78vh;min-height:440px;border:1px solid #393b40;border-radius:12px;overflow:hidden;background:#313338;color:#dbdee1;box-shadow:0 12px 40px #0003}
.chat-sidebar{display:flex;flex-direction:column;background:#2b2d31;min-height:0}.chat-server-title{height:58px;display:flex;align-items:center;padding:0 18px;font-weight:700;border-bottom:1px solid #202225}.chat-channel-label{font-size:10px;font-weight:700;letter-spacing:1px;color:#949ba4;margin:24px 14px 10px}.chat-channel-button{display:block;width:calc(100% - 16px);margin:2px 8px;padding:10px 12px;border:0;border-radius:5px;background:transparent;color:#949ba4;text-align:left;cursor:pointer;font-family:inherit;font-size:13px;font-weight:500;line-height:1.3;overflow-wrap:anywhere}.chat-channel-button:hover{background:#35373c;color:#dbdee1}.chat-channel-button.active{background:#404249;color:#fff}#chat-channel-list{overflow:auto;flex:1}.chat-select-label{display:none}.chat-identity{display:flex;gap:10px;align-items:center;background:#232428;padding:14px}.chat-identity strong{display:block;font-size:12px}.chat-identity small{font-size:10px;color:#949ba4}.chat-main{display:flex;flex-direction:column;min-height:0;min-width:0}.chat-header{display:flex;align-items:center;gap:10px;min-height:58px;padding:0 18px;border-bottom:1px solid #26272b;background:#313338;box-shadow:0 1px 3px #0002}.chat-hash{font-size:26px;color:#80848e}.chat-header h2{font-size:14px;color:#f2f3f5;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#chat-live{margin-left:auto;color:#a2c9ac;font-size:10px;max-width:210px}.chat-header .ghost{padding:6px 9px;font-size:10px;color:#b5bac1;border-color:#4e5058}
#bot-chat #chat-messages{flex:1;min-height:0;max-height:none;overflow-y:auto;margin:0;padding:14px 0;scrollbar-color:#1e1f22 #2b2d31}.chat-date-divider{display:flex;align-items:center;gap:10px;margin:16px 20px;color:#949ba4;font-size:10px;font-weight:600}.chat-date-divider:before,.chat-date-divider:after{content:'';height:1px;background:#3f4147;flex:1}#bot-chat .chat-message{display:flex;gap:12px;padding:10px 18px;border:0;position:relative}#bot-chat .chat-message:hover{background:#2e3035}.chat-avatar{display:flex;align-items:center;justify-content:center;width:36px;height:36px;flex-shrink:0;border-radius:50%;background:#5865f2;color:white;font-size:13px;font-weight:700}.chat-message:nth-child(3n) .chat-avatar{background:#3d846f}.chat-message-body{min-width:0;flex:1}.chat-message-heading{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.chat-message-heading strong{font-size:13px;color:#f2f3f5}.chat-message-heading time{font-size:10px;color:#949ba4}.chat-bot-badge{background:#5865f2;border-radius:3px;padding:1px 4px;color:white;font-size:8px;font-weight:700}#bot-chat .chat-message p{margin:4px 0 0;white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;line-height:1.5;color:#dbdee1}#bot-chat .chat-message .chat-reference{font-size:10px;color:#949ba4}.chat-reply-button{align-self:flex-start;background:#232428;border:1px solid #41434a;color:#b5bac1;font-size:10px;border-radius:4px;padding:4px 7px;cursor:pointer;opacity:0}.chat-message:hover .chat-reply-button,.chat-reply-button:focus-visible{opacity:1}#chat-form{padding:0 16px 8px}.chat-reply-bar{display:flex;align-items:center;gap:10px;font-size:10px;color:#949ba4;padding:8px 2px;min-height:30px}#chat-reply{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}#chat-cancel{margin-left:auto;padding:3px 6px;font-size:10px;white-space:nowrap}.chat-compose{display:flex;align-items:center;gap:10px;background:#383a40;border-radius:8px;padding:8px 10px}#chat-content{border:0;background:transparent;color:#dbdee1;resize:vertical;min-height:42px;max-height:160px;flex:1;font-family:inherit;font-size:13px;line-height:1.5;padding:8px;margin:0;box-shadow:none}#chat-content::placeholder{color:#949ba4}#chat-send{background:#5865f2;color:white;border:0;padding:9px 16px;min-height:34px;border-radius:5px;font-size:11px}#chat-send:hover{background:#4752c4}.chat-compose-hint{font-size:9px;color:#949ba4;margin:6px 2px}.chat-sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
@media(max-width:800px){#bot-chat .chat-shell{grid-template-columns:minmax(0,1fr);height:650px;max-height:none}.chat-sidebar{display:block}.chat-server-title,.chat-channel-label,#chat-channel-list,.chat-identity{display:none}.chat-select-label{display:block;padding:10px 14px;font-size:10px}.chat-select-label select{margin-top:5px;background:#232428}.chat-header{padding:0 12px}.chat-header h2{font-size:12px}#chat-live{font-size:9px;max-width:120px}.chat-reply-button{opacity:1}#bot-chat .chat-message{padding:9px 12px}.chat-avatar{width:30px;height:30px;font-size:11px}.chat-compose-hint{font-size:8px}}

.chat-category summary{padding:14px 12px 6px;color:#949ba4;font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.5px;cursor:pointer}.chat-category summary:hover{color:#dbdee1}.chat-category[open] summary{margin-bottom:3px}.chat-avatar{position:relative;overflow:hidden}.chat-avatar img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;border-radius:50%}#bot-chat .chat-reply-selected{background:#5865f229;border-left:3px solid #5865f2;padding-left:15px}#bot-chat .chat-mentioned{background:#f0b23212;border-left:3px solid #f0b232;padding-left:15px}#bot-chat .chat-reply-flash{background:#5865f255;box-shadow:inset 3px 0 #818bff}.chat-reply-reference{display:block;border:0;background:none;text-align:left;padding:0 0 4px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;cursor:pointer;color:#949ba4;font-size:11px}.chat-reply-reference:before{content:'↳';padding-right:8px}.chat-reply-reference:hover{color:#f2f3f5}.chat-mention{background:#5865f24d;border:0;border-radius:3px;color:#c9cdfb;padding:0 3px;font:inherit;cursor:pointer}.chat-mention:hover{background:#5865f2;color:white}.chat-ping-label{display:flex;align-items:center;gap:5px;font-size:10px;white-space:nowrap;color:#b5bac1}.chat-ping-label input{accent-color:#5865f2;width:13px;height:13px}#chat-form{position:relative}.chat-mention-picker{position:absolute;bottom:100%;left:16px;right:16px;z-index:5;max-height:240px;overflow:auto;background:#2b2d31;border:1px solid #44464e;border-radius:8px;box-shadow:0 -8px 25px #0004;padding:6px}.chat-mention-picker button{display:flex;align-items:center;gap:10px;width:100%;background:transparent;color:#dbdee1;border:0;padding:7px 10px;border-radius:4px;text-align:left;cursor:pointer}.chat-mention-picker button:hover,.chat-mention-picker button:focus{background:#404249;outline:0}.chat-mention-picker .chat-avatar{width:28px;height:28px;font-size:10px}

/* Final chat spacing and interaction polish, scoped to the owner workspace. */
body.chat-mode .heading{padding-top:18px;padding-bottom:16px}body.chat-mode .heading h1{font-size:24px}body.chat-mode .heading .eyebrow{display:none}body.chat-mode .heading p{font-size:12px}body.chat-mode .toolbar{padding-top:14px;padding-bottom:14px;margin-bottom:18px}#bot-chat{margin:0 40px 24px}#bot-chat .chat-shell{height:calc(100dvh - 300px);min-height:490px;max-height:900px;grid-template-columns:224px minmax(0,1fr);border-color:#232428;border-radius:9px;background:#313338}.chat-server-title{height:50px;min-height:50px;padding:0 14px;gap:8px;font-size:13px;box-shadow:0 1px 3px #0003}.chat-server-title>span:first-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chat-owner-badge{margin-left:auto;font-size:8px;color:#b5bac1;background:#383a40;border:1px solid #45474f;border-radius:4px;padding:3px 5px;letter-spacing:.5px}.chat-search-label{display:block;padding:12px 10px 2px}#chat-channel-search{width:100%;background:#1e1f22;border:1px solid transparent;border-radius:4px;color:#dbdee1;padding:8px 9px;font-size:11px;margin:0}#chat-channel-search::placeholder{color:#949ba4}.chat-category summary{font-size:10px;padding:17px 10px 5px;list-style:none}.chat-category summary:before{content:'›';display:inline-block;font-size:14px;margin-right:5px;transform:rotate(0deg)}.chat-category[open] summary:before{transform:rotate(90deg)}.chat-channel-button{padding:8px 10px;margin:2px 8px;font-size:13px;border-radius:4px}.chat-header{height:50px;min-height:50px;gap:9px;padding:0 16px}.chat-header h2{font-size:14px;font-weight:650}.chat-header .chat-hash{font-size:24px;font-weight:400}#chat-live{display:flex;align-items:center;gap:6px;color:#949ba4;font-size:9px}#chat-live:before{content:'';width:6px;height:6px;border-radius:50%;background:#23a55a;flex-shrink:0}.chat-identity{padding:10px;gap:8px;min-height:56px}.chat-identity .chat-avatar{width:32px;height:32px}.chat-identity small{color:#949ba4;font-size:9px}.chat-identity strong{font-size:12px}#bot-chat #chat-messages{padding-top:8px;padding-bottom:24px}.chat-date-divider{font-size:10px;margin:20px 16px 12px}#bot-chat .chat-message{padding:8px 16px 8px 18px;gap:14px;min-height:54px;transition:background .12s}#bot-chat .chat-message .chat-avatar{width:38px;height:38px}.chat-message-heading{gap:7px;min-height:19px}.chat-message-heading strong{font-size:13px;font-weight:600}.chat-message-heading time{margin-left:2px;font-size:10px;color:#949ba4}#bot-chat .chat-message p{font-size:13px;line-height:1.6;margin-top:1px}.chat-bot-badge{font-size:8px;line-height:13px;padding:0 4px;border-radius:3px}.chat-reply-button{position:absolute;right:14px;top:-9px;padding:5px 9px;font-size:10px;box-shadow:0 2px 5px #0003}.chat-message:focus-within .chat-reply-button{opacity:1}#bot-chat .chat-message-grouped{padding-top:1px;padding-bottom:1px;min-height:24px}.chat-message-grouped>.chat-avatar{visibility:hidden}.chat-message-grouped .chat-message-heading{display:none}#bot-chat .chat-reply-selected,#bot-chat .chat-mentioned{padding-left:15px}.chat-reply-reference{padding-bottom:3px;font-size:10px}.chat-reply-reference:hover{text-decoration:underline}#chat-form{padding:0 16px 9px}.chat-compose{border-radius:8px;padding:4px 8px 4px 12px;gap:7px;background:#383a40;box-shadow:0 1px 0 #0001}.chat-compose:focus-within{box-shadow:0 0 0 1px #5865f250}#chat-content{font-size:13px;min-height:44px;height:44px;resize:none;padding:11px 0;outline-offset:0}#chat-content:focus-visible{outline:none}#chat-send{display:flex;align-items:center;justify-content:center;width:34px;height:34px;min-height:34px;padding:6px;background:transparent;color:#b5bac1;border-radius:5px;flex-shrink:0}#chat-send:hover{background:#5865f2;color:#fff}.chat-compose-hint{font-size:9px;line-height:1.4;margin:7px 0 0;color:#80848e}.chat-reply-bar{background:#2b2d31;border-radius:7px 7px 0 0;margin-bottom:-3px;padding:9px 10px;font-size:10px;min-height:34px}.chat-reply-bar:not([hidden])+.chat-mention-picker+.chat-compose{border-radius:0 0 8px 8px}#chat-cancel{border:0;font-size:9px;color:#b5bac1}#chat-ping-label{font-size:9px;margin-left:auto}#chat-cancel{margin-left:0}.chat-mention-picker button{font-size:12px}.chat-category[hidden],.chat-channel-button[hidden],.chat-reply-bar[hidden]{display:none!important}
@media(max-width:1100px){#bot-chat{margin:0 24px 24px}#bot-chat .chat-shell{grid-template-columns:180px minmax(0,1fr)}}
@media(max-width:800px){#bot-chat{margin:0 12px 16px}body.chat-mode .heading{padding-top:12px;padding-bottom:10px}body.chat-mode .heading h1{font-size:21px}body.chat-mode .toolbar{gap:10px;padding:12px}#bot-chat .chat-shell{grid-template-columns:minmax(0,1fr);height:70dvh;min-height:460px}.chat-search-label{display:none}.chat-header{padding:0 12px}.chat-header h2{max-width:110px;font-size:12px}#chat-live{max-width:100px;font-size:8px}.chat-header .ghost{font-size:9px;padding:5px 6px}.chat-select-label{padding:8px 12px}.chat-select-label select{padding:7px 10px}.chat-select-label{font-size:9px}#bot-chat .chat-message{gap:9px;padding-left:12px;padding-right:12px}#bot-chat .chat-message .chat-avatar{width:32px;height:32px}#bot-chat .chat-message p{font-size:12px}.chat-message-heading strong{font-size:12px}.chat-reply-button{position:static;align-self:flex-start;font-size:9px;padding:3px 5px}#chat-form{padding:0 10px 9px}.chat-compose-hint{font-size:8px}.chat-ping-label{gap:3px}#chat-reply{max-width:45%}#bot-chat .chat-reply-selected,#bot-chat .chat-mentioned{padding-left:9px}}
@media(prefers-reduced-motion:reduce){#bot-chat .chat-message{transition:none}}

.chat-sidebar{position:relative}button.chat-identity{width:100%;border:0;color:#dbdee1;text-align:left;cursor:pointer;flex-shrink:0;position:relative}button.chat-identity:hover{background:#303239}.chat-identity>div{min-width:0}.chat-identity small{display:block;max-width:138px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.chat-presence-dot{position:absolute;left:32px;bottom:9px;width:12px;height:12px;border:3px solid #232428;border-radius:50%;background:#23a55a}.chat-presence-dot[data-mode=idle]{background:#f0b232}.chat-presence-dot[data-mode=dnd]{background:#f23f43}.chat-presence-dot[data-mode=invisible]{background:#80848e}.chat-presence-panel{position:absolute;left:8px;bottom:65px;width:280px;max-width:calc(100vw - 64px);padding:16px;z-index:15;border:1px solid #44464e;border-radius:8px;background:#232428;box-shadow:0 8px 30px #0007;color:#dbdee1}.chat-presence-panel h3{font-size:14px;margin:0 0 8px}.chat-presence-panel p{font-size:10px;color:#b5bac1}.chat-presence-panel label{display:block;font-size:11px;margin:12px 0}.chat-presence-panel input,.chat-presence-panel select{display:block;width:100%;background:#1e1f22;border:1px solid #45474e;color:#dbdee1;margin-top:5px;padding:8px;border-radius:4px}.chat-presence-panel>div{display:flex;justify-content:flex-end;gap:8px}.chat-presence-panel button{font-size:11px;padding:7px 10px}.chat-presence-panel[hidden]{display:none!important}.chat-embed{margin:7px 0 3px;max-width:510px;min-width:0;background:#2b2d31;border-left:4px solid #1e1f22;border-radius:4px;padding:13px 15px;overflow:hidden;color:#dbdee1;font-size:12px;line-height:1.6}.chat-embed-author{display:flex;align-items:center;gap:7px;font-size:11px;font-weight:600;margin-bottom:6px}.chat-embed-icon{width:20px;height:20px;border-radius:50%;object-fit:cover}.chat-embed-title{font-size:14px;font-weight:600;margin:0 0 6px}.chat-embed a{color:#00a8fc;text-decoration:none;overflow-wrap:anywhere}.chat-embed a:hover{text-decoration:underline}.chat-embed-description,.chat-embed-field{white-space:pre-wrap;overflow-wrap:anywhere}.chat-embed code{font-size:11px;background:#1e1f22;padding:1px 4px;border-radius:3px}.chat-embed-thumbnail{float:right;width:72px;height:72px;object-fit:contain;border-radius:4px;margin:0 0 8px 12px}.chat-embed-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin-top:9px}.chat-embed-field{grid-column:1/-1;font-size:11px}.chat-embed-field.inline{grid-column:auto}.chat-embed-field>strong{display:block;font-size:12px;color:#f2f3f5;margin-bottom:2px}.chat-embed-image{display:block;max-width:100%;max-height:300px;object-fit:contain;border-radius:4px;margin-top:12px}.chat-embed-footer{display:flex;align-items:center;gap:6px;margin-top:10px;font-size:9px;color:#b5bac1;clear:both}
@media(max-width:800px){button.chat-identity{display:flex;padding:6px 12px;min-height:42px}.chat-identity .chat-avatar{width:28px;height:28px}.chat-identity small{max-width:210px}.chat-presence-dot{left:31px;bottom:5px}.chat-presence-panel{bottom:50px;left:10px}.chat-embed{padding:10px;max-width:100%}.chat-embed-fields{grid-template-columns:minmax(0,1fr)}.chat-embed-field.inline{grid-column:1/-1}.chat-embed-thumbnail{width:48px;height:48px}}

.chat-member-roles{display:flex;flex-wrap:wrap;gap:4px;margin:3px 0 5px}.chat-member-roles>span{display:inline-flex;align-items:center;gap:4px;border:1px solid #4e505866;border-radius:4px;font-size:9px;padding:1px 5px;color:#b5bac1;max-width:160px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chat-member-roles i{width:7px;height:7px;border-radius:50%;display:inline-block;flex-shrink:0}.chat-message-grouped .chat-member-roles{display:none}.chat-presence-panel{max-height:70dvh;overflow-y:auto}.chat-profile-editor{border-top:1px solid #41434a;margin-top:12px;padding-top:10px}.chat-profile-editor summary{font-size:11px;cursor:pointer;color:#b5bac1}.chat-profile-editor>div:not(.chat-avatar){display:flex;gap:6px}.chat-profile-editor input[type=file]{font-size:10px;max-width:100%;padding:6px}.chat-profile-editor button{font-size:10px;padding:6px 8px}#chat-profile-banner{display:block;width:100%;height:75px;object-fit:cover;border-radius:5px;margin-bottom:8px}#chat-profile-banner[hidden]{display:none}.chat-profile-editor .chat-avatar{width:42px;height:42px;margin:8px 0}.chat-profile-editor p{line-height:1.5}

/* Deep black owner-chat theme. */
body.chat-mode{background:#070709}body.chat-mode #workspace{background:transparent}body.chat-mode .toolbar{background:#0c0c0f;border-color:#242429;box-shadow:none}body.chat-mode .toolbar select{background:#151519;border-color:#303037;color:#e5e5e9}body.chat-mode .heading p{color:#96969f}#bot-chat .chat-shell{background:#09090b;border-color:#242429;box-shadow:0 10px 40px #0005}#bot-chat .chat-sidebar{background:#101012}#bot-chat .chat-main,#bot-chat .chat-header{background:#09090b}#bot-chat .chat-header{border-color:#242429;box-shadow:0 1px 0 #000}#bot-chat .chat-server-title{border-color:#242429;background:#101012}#bot-chat .chat-owner-badge{background:#1d1d22;border-color:#34343c;color:#aaaab3}#bot-chat #chat-channel-search{background:#070709;border-color:#242429}#bot-chat .chat-channel-button{color:#96969f}#bot-chat .chat-channel-button:hover{background:#1b1b20;color:#ededf0}#bot-chat .chat-channel-button.active{background:#28282f;color:#fff}#bot-chat .chat-category summary{color:#8e8e98}#bot-chat .chat-identity{background:#08080a}#bot-chat .chat-identity:hover{background:#1b1b20}#bot-chat .chat-presence-dot{border-color:#08080a}#bot-chat #chat-messages{scrollbar-color:#303037 #09090b}#bot-chat .chat-message:hover{background:#131316}#bot-chat .chat-date-divider:before,#bot-chat .chat-date-divider:after{background:#26262c}#bot-chat .chat-message p{color:#d4d4dc}#bot-chat .chat-message-heading strong{color:#f4f4f6}#bot-chat .chat-message-heading time,#bot-chat .chat-reference{color:#85858f}#bot-chat .chat-compose{background:#19191e;box-shadow:0 0 0 1px #27272f}#bot-chat .chat-compose:focus-within{box-shadow:0 0 0 1px #5865f280}#bot-chat #chat-content{color:#e3e3e9}#bot-chat #chat-content::placeholder{color:#777782}#bot-chat .chat-reply-bar,#bot-chat .chat-embed{background:#141418}#bot-chat .chat-reply-button,#bot-chat .chat-mention-picker,#bot-chat .chat-presence-panel{background:#111114;border-color:#33333b}#bot-chat .chat-presence-panel input,#bot-chat .chat-presence-panel select{background:#070709;border-color:#303037}#bot-chat .chat-embed code{background:#050507}#bot-chat .chat-embed-field>strong{color:#eeeef4}#bot-chat .chat-member-roles>span{background:#111114;border-color:#33333b;color:#b2b2bd}#bot-chat .chat-mention{background:#5865f238;color:#c4c8ff}#bot-chat .chat-mention:hover{background:#5865f2;color:white}#bot-chat .chat-mentioned{background:#f0b23215;border-left-color:#f0b232}#bot-chat .chat-mentioned:hover{background:#f0b23221}#bot-chat .chat-reply-selected{background:#5865f22b;border-left-color:#818bff}#bot-chat .chat-reply-flash{background:#5865f24d;box-shadow:inset 3px 0 #818bff}

.vanity-health{background:#101720;border:1px solid #344055;border-radius:8px;padding:16px;margin-bottom:24px}.vanity-health h3{margin:0 0 8px;font-size:14px}.vanity-health p{font-size:12px;line-height:1.6;overflow-wrap:anywhere;margin:5px 0}.vanity-health-warning{color:#f1bb87}.vanity-health-ready{color:#a6da95}#vanity-health-refresh{margin-top:12px}

.ticket-role-field{min-width:0;border:1px solid #344055;border-radius:7px;padding:10px;margin:0}.ticket-role-field legend{font-size:12px;padding:0 5px;color:#c8d4e6}.ticket-role-picker{max-height:220px;overflow-y:auto;display:flex;flex-direction:column;gap:4px}.ticket-role-picker .ticket-role-option{display:flex;align-items:center;gap:9px;margin:0;padding:9px 10px;border-radius:5px;cursor:pointer;font-size:12px;color:#b5c5dd;background:#111b2a}.ticket-role-option:has(input:checked){background:#293a58;color:#edf3ff}.ticket-role-option:hover{background:#23334e}.ticket-role-option:focus-within{outline:2px solid #9bc0fc;outline-offset:-2px}.ticket-role-option input[type=checkbox]{width:15px;height:15px;margin:0;flex-shrink:0;accent-color:#9cb9ff}.ticket-role-option span{overflow-wrap:anywhere}

#dm-inbox{margin:0 40px 24px}.dm-shell{display:grid;grid-template-columns:250px minmax(0,1fr);height:calc(100dvh - 300px);min-height:500px;max-height:900px;background:#09090b;border:1px solid #27272f;border-radius:9px;overflow:hidden;color:#dbdee1}.dm-sidebar{background:#101012;padding:16px 10px;min-height:0;display:flex;flex-direction:column}.dm-sidebar h2{font-size:14px;margin:0 4px 18px;display:flex;align-items:center;gap:8px}.dm-sidebar h2 span{font-size:8px;color:#a0a0ab;margin-left:auto}.dm-sidebar>p{padding:0 5px}#dm-open-form label{font-size:10px;color:#94949f}#dm-open-form>div{display:flex;gap:5px;margin-top:6px}#dm-user-id{width:100%;min-width:0;padding:8px;font-size:11px;background:#070709;border:1px solid #303037;color:#dbdee1;border-radius:4px}#dm-open{border:0;border-radius:4px;background:#5865f2;color:#fff;font-size:11px;padding:6px 10px;cursor:pointer}#dm-conversations{overflow-y:auto;flex:1}.dm-conversation{display:flex;align-items:center;gap:9px;width:100%;padding:10px 7px;text-align:left;border:0;background:none;color:#a8a8b3;border-radius:5px;cursor:pointer}.dm-conversation:hover{background:#1c1c22}.dm-conversation.active{background:#28282f;color:#fff}.dm-conversation>span:last-child{min-width:0;font-size:12px;overflow-wrap:anywhere}.dm-conversation small{display:block;color:#7e7e88;font-size:9px;margin-top:3px}.dm-main{min-width:0;min-height:0;display:flex;flex-direction:column}.dm-header{display:flex;align-items:center;gap:10px;padding:10px 16px;border-bottom:1px solid #242429;min-height:58px}.dm-header h2{font-size:13px;margin:0;color:#ededf3}.dm-header small{font-size:9px;color:#85858f}#dm-live{margin-left:auto;font-size:9px;color:#9fbaa7}.dm-header .ghost{font-size:10px;padding:6px 8px}#dm-messages{flex:1;min-height:0;overflow-y:auto;padding:12px 0 24px;scrollbar-color:#303037 #09090b}.dm-empty{padding:30px 24px;font-size:13px;color:#91919d;line-height:1.7}.dm-message{display:flex;gap:12px;padding:9px 18px;position:relative}.dm-message:hover{background:#131316}.dm-message:hover .chat-reply-button,.dm-message:focus-within .chat-reply-button{opacity:1}.dm-message-body{flex:1;min-width:0}.dm-message-body>p{white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;line-height:1.6;margin:3px 0;color:#d4d4dc}.dm-message .chat-reference{font-size:10px;color:#85858f}.dm-outgoing .chat-message-heading strong{color:#a9b0ff}.dm-attachment{display:block;color:#89baff;font-size:12px;overflow-wrap:anywhere;margin-top:8px}.dm-attachment img{display:block;max-width:100%;max-height:300px;border-radius:6px}#dm-send-form{padding:0 16px 12px}.dm-compose{display:flex;gap:10px;align-items:center;border-radius:8px;background:#19191e;padding:8px 10px;border:1px solid #27272f}#dm-content{flex:1;min-width:0;color:#e3e3e9;background:transparent;border:0;resize:vertical;min-height:45px;max-height:160px;font-size:13px;margin:0;padding:6px;box-shadow:none}#dm-send{font-size:11px;padding:8px 12px;background:#5865f2;border:0;color:#fff;border-radius:5px;white-space:nowrap}.dm-compose-tools{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:9px;color:#85858f;padding-top:8px}.dm-compose-tools label{font-size:10px;color:#b1b1bf;cursor:pointer}.dm-compose-tools input{display:block;font-size:10px;max-width:190px;margin-top:5px}#dm-image-name{font-size:10px;overflow-wrap:anywhere}.dm-compose-tools small{margin-left:auto;font-size:9px}.dm-compose-tools .ghost{font-size:9px;padding:4px 6px}#dm-image-preview{max-width:160px;max-height:100px;border-radius:5px;margin-top:8px}#dm-reply-bar{display:flex;gap:10px;align-items:center;justify-content:space-between;padding:8px;background:#141418;font-size:10px;color:#a9a9b6}#dm-reply-bar[hidden]{display:none}#dm-nav[hidden],#dm-inbox[hidden]{display:none!important}#dm-inbox .chat-embed{background:#141418}#dm-inbox .chat-message-heading strong{font-size:13px;color:#eeeeF4}#dm-inbox .chat-reply-button{background:#17171c;border-color:#34343c}#dm-inbox .chat-date-divider:before,#dm-inbox .chat-date-divider:after{background:#26262c}
@media(max-width:800px){#dm-inbox{margin:0 12px 16px}.dm-shell{grid-template-columns:minmax(0,1fr);height:auto;min-height:650px}.dm-sidebar{max-height:240px}.dm-sidebar h2{margin-bottom:9px}#dm-conversations{display:flex;gap:5px;overflow-x:auto;min-height:65px}.dm-conversation{min-width:160px;max-width:210px}.dm-main{height:65dvh;min-height:400px}.dm-header{padding:8px 10px;gap:7px}#dm-live{font-size:8px;max-width:95px}.dm-message{padding:8px 12px}.dm-message .chat-reply-button{position:static;opacity:1}.dm-compose-tools small{margin-left:0}#dm-send-form{padding:0 10px 10px}}

body.dm-mode .toolbar>label:has(#guild),body.dm-mode .workspace-badge{display:none}#dm-inbox .dm-outgoing .chat-message-heading strong{color:#a9b0ff}

#module-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}#module-fields>label{display:flex;flex-direction:column;gap:8px;font-size:12px}#module-fields>.toggle-label{flex-direction:row;align-items:center}#module-fields textarea{min-height:100px}#module-fields select,#module-fields input:not([type=checkbox]),#module-fields textarea{width:100%}@media(max-width:800px){#module-fields{grid-template-columns:minmax(0,1fr)}}

.nav-search{display:block;margin:18px 6px 16px}#nav-search{width:100%;background:#090e17;border:1px solid #29364c;border-radius:7px;color:#dce6f7;padding:9px 10px;font-size:11px;margin:0}.nav-group{border-bottom:1px solid #7185a418;padding:7px 0}.nav-group>summary{cursor:pointer;list-style:none;display:flex;align-items:center;gap:8px;color:#7e91af;font-size:10px;font-weight:650;letter-spacing:1px;text-transform:uppercase;padding:10px 12px}.nav-group>summary::-webkit-details-marker{display:none}.nav-group>summary:before{content:'>';font-size:10px;transition:transform .15s}.nav-group[open]>summary:before{transform:rotate(90deg)}.nav-group.has-active-page>summary{color:#b9cdf0}.nav-group .nav-item{margin:2px 0}.nav-group>summary:focus-visible{outline:2px solid #9bc0fc;border-radius:4px}.nav-group[hidden],#nav-search-empty[hidden]{display:none!important}#nav-search-empty{padding:12px}.nav-search input::placeholder{color:#687e9f}
@media(max-width:800px){aside nav{display:block;overflow:visible;padding:0}.nav-search{margin:10px 0}.nav-group{padding:1px 0}.nav-group>summary{padding:9px 4px}.nav-group>div{display:flex;flex-wrap:wrap;gap:5px;padding-bottom:8px}.nav-group .nav-item{font-size:10px;max-width:100%;margin:0}.nav-group.has-active-page>summary{color:#c1d4f5}}

#rules-form{display:grid;gap:15px}#rules-form>label{font-size:12px;display:flex;flex-direction:column;gap:7px}#rules-form>label[hidden]{display:none!important}#rules-list{display:grid;gap:10px}.rules-entry{padding:16px;border:1px solid #344055;border-radius:7px;background:#101720;min-width:0}.rules-entry p{white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px;line-height:1.6;color:#b5c5dd}.rules-entry small{color:#91a3bf;font-size:10px}.rules-entry>div{display:flex;gap:8px;margin-top:10px}.rules-entry button{font-size:11px;padding:6px 10px}

#rules-editor,#module-editor,#reaction-editor{margin:0 40px 24px}@media(max-width:800px){#rules-editor,#module-editor,#reaction-editor{margin:0 16px 16px}}

/* Professional workspace: quiet surfaces, consistent rhythm, lavender accents. */
:root{--bg:#111114;--surface:#19191e;--line:#303037;--muted:#a4a4b0;--blue:#c4b5fd;--accent:#b7a3f5}
html{scrollbar-color:#484850 #111114}
body{background:#111114;color:#e9e9ef;line-height:1.65}
body::before,body::after{display:none;animation:none}
main{background:#111114}
aside{background:#151518;border-right:1px solid #2b2b32;backdrop-filter:none;box-shadow:none}
header{background:#111114;border-bottom:1px solid #2b2b32;backdrop-filter:none}
.brand-mark{background:#24202f;border:1px solid #4c405f;color:#d8caff;box-shadow:none;border-radius:10px}
.brand-sub,.breadcrumb,.nav-group>summary{color:#a4a4b0}
.nav-group{border-bottom-color:#2b2b32}
.nav-group.has-active-page>summary{color:#d7cafa}
.nav-item{color:#b0b0bc;border-radius:7px;border:1px solid transparent;transition:background .15s,color .15s}
.nav-item:hover{background:#222228;color:#f5f3ff}
.nav-item.active,.nav-item[aria-current=page]{background:#292334;color:#e4d9ff;border-color:#4c405e;box-shadow:inset 3px 0 #c4b5fd}
#nav-search{background:#101013;border-color:#35353e;color:#eeeeF4;font-size:12px;padding:11px 12px}
#nav-search::placeholder{color:#9999a7}
.heading{padding-top:32px;padding-bottom:24px}
.heading h1,.welcome h1{background:none;color:#f3f2f7;-webkit-text-fill-color:currentColor;text-shadow:none;letter-spacing:-1.2px}
.heading h1{font-size:34px;font-weight:650;line-height:1.2}
.heading p{color:#aaaab6;font-size:13px;max-width:65ch}
.eyebrow{color:#b9a8e5;letter-spacing:1.6px;font-size:10px;font-weight:650}
.workspace-badge{background:#1d1b24;border:1px solid #3d354b;color:#c9bcE5}
.toolbar{background:#19191e;border:1px solid #32323a;box-shadow:none;border-radius:10px;gap:20px}
.toolbar label{color:#a9a9b6;font-size:10px;letter-spacing:1px}
.toolbar select{background:#111114;border-color:#3b3b46;font-size:13px}
.edit-card,.command-entry,.rules-entry,#logging-routes>label{background:#19191e;border:1px solid #32323b;box-shadow:none;border-radius:10px}
.edit-card{padding:26px}
.card-heading{border-bottom:1px solid #303038;padding-bottom:18px;margin-bottom:24px}
.card-heading h2{font-size:18px;letter-spacing:-.35px;color:#f2f0f7}
.card-heading span{font-size:10px;color:#b8a6e3;letter-spacing:1px}
label{color:#d0ceda;font-weight:550;font-size:12px}
#workspace input:not([type=color]):not([type=checkbox]):not([type=radio]),#workspace textarea,#workspace select{background:#111114;border-color:#3b3b45;color:#eeeef3;border-radius:7px;font-size:13px;padding:11px 12px}
#workspace input:focus,#workspace textarea:focus,#workspace select:focus{border-color:#b7a3ef;box-shadow:0 0 0 3px #b7a3ef20;outline:none}
#workspace input[type=checkbox],#workspace input[type=radio]{accent-color:#baa6f0}
#workspace :is(#bot-chat,#dm-inbox) :is(input,textarea,select){background:#080808;border-color:#303035;color:#eee}
.hint,.preview-note{color:#aaaab7;font-size:12px;line-height:1.75}
.button{background:#c4b5fd;color:#211a31;border:1px solid #c4b5fd;box-shadow:none;font-size:12px;font-weight:650;transform:none}
.button:hover{background:#d4c8ff;border-color:#d4c8ff;color:#211a31;transform:none}
.ghost{background:#222228;border:1px solid #41414b;color:#dedce8;box-shadow:none}
.ghost:hover{background:#303039;border-color:#777383;color:#fff}
button:focus-visible,a:focus-visible,summary:focus-visible{outline:2px solid #c4b5fd;outline-offset:3px}
.form-bottom{border-color:#33333c;padding-top:20px}
.preview-area{background:#141417;border:1px solid #32323a;border-radius:10px;box-shadow:none}
.preview-heading{color:#aaa4b8;letter-spacing:1.3px}
.publish-note{background:#1b1921;border-color:#3d354a;color:#ccc2df}
.command-entry h3{color:#d7c9ff;font-size:15px}
.command-entry p,.rules-entry p{color:#bdbbc9;font-size:12px}
.command-entry code{background:#101013;border-color:#33333d;color:#dbd4ee;line-height:1.75}
.log-destination,.variable-token{background:#292333;border-color:#493e5b;color:#d9c9f7}
#logging-routes>label{padding:20px}
#module-fields{gap:22px}
.rules-entry small{color:#aaa6b7}
.health-grid span{background:#141417}
.save-state{background:#203229;color:#b9e4c9;border:1px solid #375443}
#notice{background:#23212b;border:1px solid #595064;color:#f0eaf9;box-shadow:0 12px 32px #0005;border-radius:9px}
.welcome{padding-top:72px}.welcome h1{font-size:64px;line-height:1.12}.welcome em{font-style:normal;color:#c4b5fd}.welcome p{color:#b5b1c3}
.sample{background:#19191e;border-color:#3d354a;border-left-color:#c4b5fd;transform:none;box-shadow:0 14px 36px #0003}
footer{border-color:#303038;color:#9995a7;font-size:11px}
@media(max-width:800px){.heading{padding:24px 20px 18px}.heading h1{font-size:27px}.welcome h1{font-size:44px}.edit-card{padding:20px}.toolbar{gap:14px}.nav-group>summary{font-size:11px}.nav-group .nav-item{font-size:12px;padding:9px 11px}.preview-area{position:static}.button,.ghost{min-height:40px}}

/* Compact navigation keeps the workspace reachable on small screens. */
main,#workspace,.editor,.edit-card,.toolbar,.heading>div{min-width:0}
@media(max-width:800px){
 aside{height:auto;max-height:none;inset:auto;width:100%;overflow:visible}
 aside nav{max-height:260px;overflow-y:auto;overflow-x:hidden;scrollbar-width:thin}
 .nav-group>div{min-width:0}.nav-group .nav-item{white-space:normal;text-align:left}
 main{width:100%;margin-left:0}.heading{gap:12px;flex-wrap:wrap}.heading p{overflow-wrap:anywhere}
 .toolbar{flex-wrap:wrap;align-items:stretch}.toolbar>label{flex:1 1 100%;max-width:100%;min-width:0}.toolbar select{width:100%;max-width:100%}
 .save-state{white-space:normal;max-width:100%}
 #workspace :is(#commands,#module-editor,#rules-editor,#reaction-editor,#ticket-management,#logging,#vanity,#security,#member-backup){min-width:0}
}
