:root{color-scheme:dark;--bg:#04060a;--panel:#080b12;--panel2:#0c111b;--line:#19253b;--muted:#8290a8;--text:#e8eefb;--cyan:#2d6cff;--cyan2:#1e4db9;--font:'DM Sans',sans-serif;--display:'Space Grotesk',sans-serif}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font-family:var(--font);font-size:13px}.app-shell{height:100dvh;min-height:560px;display:flex;flex-direction:column;background:var(--bg)}button,input,textarea{font:inherit}.topbar{height:68px;flex:none;border-bottom:1px solid #18212d;display:flex;align-items:center;padding:0 24px;gap:28px;background:rgba(8,11,17,.94);z-index:2}.brand{display:flex;align-items:center;gap:10px;text-decoration:none;color:var(--text);min-width:220px}.brand-mark{width:34px;height:34px;display:grid;place-items:center;border:1px solid #1e4db9;border-radius:11px;background:linear-gradient(145deg,#0b1428,#05080f);color:#cfddfb;font:700 22px var(--display);text-shadow:0 0 15px #3474ff;box-shadow:inset 0 0 16px #2d6cff40}.brand-copy{display:flex;flex-direction:column;line-height:1.05;letter-spacing:.08em}.brand-copy strong{font:700 13px var(--display)}.brand-copy small{font-size:9px;color:#8796ad;letter-spacing:.19em;margin-top:4px}.topbar-center{display:flex;align-items:center;gap:8px;color:#c8d2df}.live-dot{width:7px;height:7px;border-radius:50%;background:#4b7fff;box-shadow:0 0 10px #4b7fff88;display:inline-block}.save-state{color:#748397;border-left:1px solid #1b263b;padding-left:12px;margin-left:4px}.top-actions{margin-left:auto;display:flex;align-items:center;gap:8px}.button{height:34px;border-radius:7px;padding:0 13px;color:#c5d1e6;border:1px solid #1c2940;background:#0a101a;cursor:pointer;transition:.16s}.button:hover{border-color:#2a416b;background:#101827}.button-primary{background:linear-gradient(130deg,#245be0,#173b9f);border-color:#2d6cff;color:#dce6fa;font-weight:700;box-shadow:0 4px 18px #2d6cff22}.button-primary:hover{background:linear-gradient(130deg,#4b83ff,#1f4fc2);color:#dce6fa}.button-primary span{font-size:18px;vertical-align:-1px;margin-right:6px}.workspace{min-height:0;flex:1;display:grid;grid-template-columns:58px minmax(400px,550px) minmax(420px,1fr)}.rail{border-right:1px solid #18212d;background:#060910;display:flex;align-items:center;flex-direction:column;gap:10px;padding:18px 8px}.rail-item{width:38px;height:38px;border:1px solid transparent;border-radius:10px;background:transparent;color:#8290a8;font-size:17px;cursor:pointer}.rail-item:hover,.rail-item.active{color:#cfddfb;background:#101b34;border-color:#1e3b78}.rail-item.active{box-shadow:inset 2px 0 #3474ff,0 0 22px #2d6cff24}.rail-spacer{flex:1}.rail-avatar{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(140deg,#132b56,#060a12);color:#cfddfb;border:1px solid #1e4db9;font:700 15px var(--display)}.editor-column{min-width:0;border-right:1px solid #1a2431;display:flex;flex-direction:column;background:#060910}.editor-heading{padding:25px 27px 18px;border-bottom:1px solid #0d1421;display:flex;justify-content:space-between;align-items:flex-end;gap:12px}.eyebrow{font:700 9px var(--display);letter-spacing:.18em;color:#8297c3}.editor-heading h1,.preview-header h2{font:600 24px var(--display);letter-spacing:-.035em;margin:5px 0 4px}.editor-heading p{margin:0;color:#a2afc4;font-size:12px}.device-toggle{display:flex;gap:3px;padding:3px;border:1px solid #1a2740;background:#0a0f16;border-radius:8px;white-space:nowrap;color:#8998ae;font-size:10px}.device-toggle span{padding:6px 8px;border-radius:5px}.device-toggle .selected{background:#14213a;color:#d3dffd}.editor-scroll{overflow:auto;padding:0 27px 22px}.panel-section{padding:22px 0 20px;border-bottom:1px solid #152039;display:flex;flex-direction:column;gap:13px}.section-heading{display:flex;align-items:center;gap:11px;margin-bottom:2px}.section-heading h2{font:600 14px var(--display);margin:0 0 3px}.section-heading p{font-size:11px;color:#8290a8;margin:0}.section-icon{width:29px;height:29px;display:grid;place-items:center;color:#76a0ff;border:1px solid #23478f;border-radius:8px;background:#0e2029;font-size:16px}.section-heading-between{justify-content:space-between}.section-heading-between>.section-heading{margin:0}.field-label{display:flex;justify-content:space-between;align-items:center;margin-bottom:6px;color:#c2cee2;font-size:11px;font-weight:600}.optional,.counter{font-size:9px;color:#8290a8;font-weight:500;letter-spacing:.04em}.counter{font-variant-numeric:tabular-nums}.panel-section label{display:block}.panel-section input:not([type=checkbox]):not([type=color]),.panel-section textarea{width:100%;border:1px solid #273341;border-radius:7px;background:#0a0f16;color:#e0e8f7;padding:10px 11px;outline:none;resize:vertical;min-height:36px}.panel-section textarea{line-height:1.55;min-height:94px}.panel-section input:focus,.panel-section textarea:focus{border-color:#245bd4;box-shadow:0 0 0 3px #2d6cff1a}.panel-section input::placeholder,.panel-section textarea::placeholder{color:#7687a2}.input-with-icon,.url-input{position:relative}.input-with-icon input{padding-left:34px!important}.input-icon{position:absolute;left:12px;top:10px;color:#76a0ff}.url-input>span{position:absolute;left:11px;top:9px;color:#7ca2ff}.url-input input{padding-left:32px!important}.form-grid{display:grid;gap:12px}.form-grid.two{grid-template-columns:minmax(0,1fr) minmax(135px,.55fr)}.color-control{display:flex;align-items:center;height:38px;border:1px solid #273341;border-radius:7px;background:#0a0f16;padding:4px 8px;gap:9px}.color-control input[type=color]{width:27px;height:27px;padding:0;border:0;background:transparent;cursor:pointer}.color-control input[type=color]::-webkit-color-swatch-wrapper{padding:0}.color-control input[type=color]::-webkit-color-swatch{border:1px solid #ffffff27;border-radius:5px}.color-control input[data-path=colorText]{background:transparent;border:0!important;padding:0!important;min-height:0!important;font:500 11px ui-monospace,monospace!important;letter-spacing:.05em;width:75px}.hint{color:#617186;font-size:10px;margin-top:-5px}.icon-button{width:29px;height:29px;border-radius:7px;border:1px solid #23478f;background:#0e2029;color:#83a7ff;font-size:19px;cursor:pointer}.icon-button:hover{background:#121e36}.fields-editor{display:flex;flex-direction:column;gap:9px}.field-card{border:1px solid #121e33;background:#080d16;border-radius:9px;padding:12px;display:grid;grid-template-columns:1fr 26px;gap:10px}.field-card-main{display:grid;gap:10px}.field-card input,.field-card textarea{font-size:11px!important;padding:8px 9px!important}.field-card textarea{min-height:60px!important}.field-card-top{display:flex;justify-content:space-between;align-items:center;color:#8999b5;font-size:10px}.remove-field{border:0;background:transparent;color:#8999b5;font-size:16px;cursor:pointer;align-self:start}.remove-field:hover{color:#9db0d7}.inline-option,.check-row{display:flex!important;align-items:center;gap:8px;color:#91a0b2;font-size:10px;cursor:pointer}.inline-option input,.check-row input{position:absolute;opacity:0}.check-box{width:15px;height:15px;border:1px solid #344452;border-radius:4px;background:#0a0f16;display:inline-grid;place-items:center}.check-row input:checked+.check-box{background:#1e4db9;border-color:#2d6cff}.check-row input:checked+.check-box:after{content:'✓';font-size:10px;color:#d8e4fc}.editor-bottom{display:flex;gap:14px;align-items:center;padding:16px 0 0;color:#7d8da8;font-size:10px}.text-button{padding:0;border:0;background:none;color:#7ea2ff;cursor:pointer;font-size:10px}.text-button:hover{color:#d4e0fb}.preview-column{min-width:0;display:flex;flex-direction:column;background:#05070c}.preview-header{height:82px;border-bottom:1px solid #111b2e;padding:17px 25px;display:flex;align-items:center;justify-content:space-between}.preview-header h2{font-size:19px;margin:3px 0}.preview-status{display:flex;align-items:center;gap:8px;color:#8190a1;font-size:10px;border:1px solid #16223a;background:#090f1a;padding:7px 10px;border-radius:7px}.preview-stage{flex:1;min-height:0;overflow:auto;display:flex;align-items:center;justify-content:center;flex-direction:column;padding:30px 34px;gap:18px}.discord-window{width:min(100%,780px);min-height:380px;border:1px solid #1c2b49;border-radius:11px;background:#090c12;box-shadow:0 22px 70px #0008;overflow:hidden;display:flex;flex-direction:column}.channel-bar{height:42px;border-bottom:1px solid #11151e;display:flex;align-items:center;padding:0 15px;gap:8px;color:#e0e2e6;font-weight:700}.hash{font-size:19px;color:#858a92}.channel-lock{color:#828791;font-size:14px}.channel-tools{margin-left:auto;color:#8c929b;letter-spacing:.05em}.message-area{flex:1;padding:25px 24px 20px;display:flex;flex-direction:column;justify-content:center}.day-divider{display:flex;align-items:center;gap:12px;color:#8c929b;font-size:9px;letter-spacing:.1em;margin-bottom:22px}.day-divider:before,.day-divider:after{content:'';height:1px;background:#1a2740;flex:1}.discord-message{display:flex;align-items:flex-start;gap:13px}.bot-avatar{width:37px;height:37px;flex:none;border-radius:50%;display:grid;place-items:center;background:radial-gradient(circle at 40% 35%,#112a52,#050910 75%);border:1px solid #245bd4;color:#d8e4fc;text-shadow:0 0 12px #2d6cff;font:700 18px var(--display)}.message-content{min-width:0;flex:1}.message-meta{height:23px;display:flex;align-items:center;gap:7px;margin-bottom:5px}.message-meta strong{font-size:13px;color:#f2f3f5}.app-badge{font-size:8px;background:#2864ee;color:#fff;font-weight:700;padding:3px 4px;border-radius:3px}.message-meta time{color:#949ba4;font-size:10px;margin-left:1px}.embed-card{border-left:4px solid var(--cyan);border-radius:4px 8px 8px 4px;background:#10141c;width:min(100%,600px);padding:13px 14px 11px;box-shadow:0 1px 2px #0004}.embed-layout{min-width:0}.embed-main{position:relative;min-height:10px}.embed-author{font-weight:600;font-size:11px;color:#e0e3e9;margin:0 0 8px;min-height:0}.embed-title-row{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.embed-title-row h3{font-size:16px;color:#f2f3f5;line-height:1.3;margin:0 0 8px;font-weight:700;overflow-wrap:anywhere}.embed-thumbnail{width:74px;height:74px;object-fit:cover;border-radius:7px;flex:none;margin:-2px 0 8px}.embed-description{white-space:pre-wrap;color:#dbdee3;font-size:12px;line-height:1.52;overflow-wrap:anywhere;margin-bottom:10px}.embed-description:empty,.embed-author:empty{display:none}.embed-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px 14px;margin:7px 0 9px}.preview-field{min-width:0}.preview-field strong{display:block;font-size:11px;color:#f1f2f4;margin-bottom:4px;overflow-wrap:anywhere}.preview-field div{white-space:pre-wrap;color:#d7d9dd;font-size:11px;line-height:1.45;overflow-wrap:anywhere}.preview-field.full{grid-column:1/-1}.embed-image{display:block;width:100%;max-height:260px;object-fit:cover;border-radius:5px;margin:9px 0 10px}.embed-footer{display:flex;align-items:center;gap:7px;border-top:1px solid #1c2331;padding-top:8px;color:#aeb2ba;font-size:9px;min-height:18px}.embed-footer:empty{display:none}.footer-dot{color:#59616d}.preview-button-row{display:flex;gap:7px;padding-top:7px}.discord-button{display:inline-flex;align-items:center;gap:8px;text-decoration:none;color:white;background:#2864ee;border-radius:4px;padding:8px 13px;font-size:11px;font-weight:600}.discord-button span{opacity:.75}.message-reaction{margin-top:8px;display:flex;gap:6px}.message-reaction span{background:#171e2b;border:1px solid #20293a;border-radius:8px;padding:3px 8px;font-size:10px}.composer{height:45px;margin:0 14px 12px;border-radius:8px;background:#171d29;display:flex;align-items:center;gap:11px;padding:0 13px;color:#aaaeb6;font-size:11px}.composer>span:first-child{font-size:21px}.composer>div{flex:1}.preview-note{display:flex;align-items:center;gap:8px;color:#8190a1;font-size:10px}.preview-note span{color:#83a7ff}.preview-footer-bar{height:35px;flex:none;border-top:1px solid #19232f;display:flex;align-items:center;justify-content:space-between;padding:0 25px;color:#68788d;font-size:9px}.preview-footer-bar span:first-child{display:flex;align-items:center;gap:7px}.preview-footer-bar i{width:6px;height:6px;border-radius:50%;background:#4b7fff}.toast{position:fixed;bottom:24px;left:50%;transform:translate(-50%,12px);opacity:0;pointer-events:none;background:#101a30;border:1px solid #244fc4;color:#dce6fa;padding:10px 15px;border-radius:8px;box-shadow:0 8px 30px #0007;transition:.2s;z-index:5}.toast.visible{opacity:1;transform:translate(-50%,0)}@media(max-width:1100px){.workspace{grid-template-columns:50px minmax(360px,480px) minmax(390px,1fr)}.editor-heading,.editor-scroll{padding-left:20px;padding-right:20px}.preview-stage{padding:24px 20px}.form-grid.two{grid-template-columns:1fr 140px}}@media(max-width:820px){.app-shell{height:auto;min-height:100vh}.topbar{padding:0 13px;gap:10px;height:60px}.brand{min-width:0}.brand-copy small,.topbar-center,.button-quiet{display:none}.top-actions{gap:6px}.button{padding:0 10px;font-size:11px}.workspace{display:flex;flex-direction:column}.rail{display:none}.editor-column{border-right:0;border-bottom:1px solid #1a2431}.editor-heading{padding:20px 17px 15px}.editor-scroll{padding:0 17px 20px;max-height:none}.preview-column{min-height:590px}.preview-header{height:68px;padding:14px 18px}.preview-stage{padding:20px 13px}.message-area{padding:20px 13px}.discord-window{min-height:360px}.preview-footer-bar{padding:0 15px}.device-toggle{display:none}}@media(max-width:480px){.embed-card{padding:10px}.embed-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.embed-thumbnail{width:58px;height:58px}.embed-title-row h3{font-size:14px}.editor-bottom{flex-wrap:wrap}.preview-footer-bar span:last-child{display:none}}
/* Connected template and NEXORA emoji controls */
.topbar-center{min-width:0;flex:1}.template-select-label{color:#77889c;font-size:10px;white-space:nowrap}.topbar-center select{max-width:290px;min-width:160px;height:32px;padding:0 28px 0 10px;border:1px solid #273746;border-radius:7px;background:#0b111d;color:#d6e1f5;outline:none}.topbar-center select:focus{border-color:#245bd4}.save-state{white-space:nowrap;font-size:10px}.emoji-picker{display:flex;flex-wrap:wrap;gap:7px;max-height:178px;overflow:auto;padding:2px}.emoji-chip{display:flex;align-items:center;gap:6px;min-height:36px;padding:5px 8px;border:1px solid #1d2b46;border-radius:8px;background:#0b111e;color:#a9bac9;cursor:pointer;font-size:10px;transition:.15s}.emoji-chip:hover{border-color:#2d6cff;background:#101a30;color:#dce6fa;box-shadow:0 0 14px #2d6cff24}.emoji-chip img{width:23px;height:23px;object-fit:contain}.inline-emoji{display:inline-block;width:1.35em;height:1.35em;object-fit:contain;vertical-align:-.3em;margin:0 .05em}.emoji-section code{color:#9db7f2;background:#101a30;border:1px solid #1e3b78;border-radius:4px;padding:1px 4px}.button:disabled{opacity:.55;cursor:wait}
@media(max-width:1100px){.topbar{gap:12px;padding:0 12px}.brand{min-width:150px}.topbar-center select{max-width:190px;min-width:120px}.topbar-center .save-state,.top-actions .button-quiet{display:none}}
.bot-avatar img{width:100%;height:100%;object-fit:cover;border-radius:50%}.embed-description,.preview-field div{white-space:pre-wrap}.footer-dot[hidden]{display:none}.preview-controls{display:flex;flex-direction:column;align-items:flex-start;gap:7px;padding-top:7px}.preview-controls[hidden]{display:none}.discord-button.native-button{min-height:32px;padding:0 14px;cursor:default}.discord-button.native-button.primary{background:#2864ee}.discord-button.native-button.success{background:#2457b9}.discord-select-preview{width:min(100%,400px);min-height:40px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 12px;border:1px solid #202b40;border-radius:8px;background:#090c13;color:#b5bac1;font-size:12px}.discord-spoiler{background:#1c2740;color:transparent;border-radius:3px;padding:0 3px}.discord-spoiler:hover{color:#dbdee1}
.quote-button{align-self:flex-start;color:#b5bac1;border-color:#1d2940;background:#0b101a}.quote-button:hover{border-color:#38548b;background:#131b2a;color:#e2e4e9}
.discord-blockquote{border-left:4px solid #294e9a;margin:6px 0;padding:0 0 0 12px;color:#b5bac1;white-space:pre-wrap;min-height:1.5em}.discord-blockquote .inline-emoji{vertical-align:-.28em}
.message-reaction img{display:block;width:16px;height:16px;object-fit:contain}

@media(max-height:620px) and (min-width:821px){.app-shell{min-height:0}.topbar{height:58px}.editor-heading{padding-top:16px;padding-bottom:12px}.editor-scroll{padding-bottom:14px}.preview-header{height:60px}.preview-footer-bar{height:30px}}
