: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}}

/* NEXORA Embed Studio: focused, Discord-first editor with an always-visible canvas */
:root{--bg:#030507;--panel:#080c12;--panel2:#0b1119;--line:#1a2634;--muted:#8897a8;--text:#edf3f8;--cyan:#168fe8;--cyan2:#0d4363}
body{background:radial-gradient(ellipse at 70% -20%,#0b2030 0,transparent 44rem),#030507;color:var(--text)}
.app-shell{background:transparent}
.topbar{height:72px;padding:0 22px;border-bottom-color:#172431;background:rgba(5,8,12,.94);backdrop-filter:blur(18px)}
.brand-mark{overflow:hidden;border-color:#1a5a7d;border-radius:10px;background:#07121b;text-shadow:0 0 18px #168fe8;box-shadow:inset 0 0 16px #168fe824,0 0 18px #168fe80b}
.live-dot,.preview-footer-bar i{background:#26b7f5;box-shadow:0 0 11px #26b7f577}
.save-state{max-width:180px;overflow:hidden;text-overflow:ellipsis}
.button{height:36px;border-radius:9px;border-color:#203041;background:#0a1017;color:#c5d2dd}
.button:hover{border-color:#285a7b;background:#0d1923}
.button-primary{border-color:#126990;background:linear-gradient(130deg,#0d4363,#137fb7);color:#f3faff;box-shadow:0 6px 20px #168fe81c}
.button-primary:hover{background:linear-gradient(130deg,#115c83,#209fdf);color:white}
.workspace{grid-template-columns:54px minmax(420px,560px) minmax(480px,1fr);background:#04070b}
.rail{border-right-color:#162330;background:#05080d}.rail-item{border-radius:10px;color:#8193a5}.rail-item:hover,.rail-item.active{border-color:#17445e;background:#0c1c28;color:#64c6ff}.rail-item.active{box-shadow:inset 2px 0 #20a8ee,0 0 22px #168fe816}
.rail-avatar{overflow:hidden;border-color:#1a5a7d;background:#0b1d29;box-shadow:0 0 16px #168fe814}
.editor-column{border-right-color:#172330;background:linear-gradient(180deg,#070b10,#05080c)}
.editor-heading{position:sticky;z-index:2;top:0;padding:20px 23px 16px;border-bottom-color:#172330;background:rgba(7,11,16,.96);backdrop-filter:blur(14px)}
.editor-heading h1,.preview-header h2{font-size:22px;letter-spacing:-.045em}.editor-heading p{color:#8494a5;font-size:11px}
.eyebrow{color:#55b7ed;letter-spacing:.16em}.device-toggle{gap:3px;border-color:#1b2b39;border-radius:9px;background:#080e14}.device-toggle button{padding:7px 9px;border:0;border-radius:6px;background:transparent;color:#8293a5;font:600 9px var(--font);cursor:pointer}.device-toggle button.selected{background:#0e2d43;color:#85d0fa;box-shadow:inset 0 0 0 1px #174b6a}
.editor-scroll{display:grid;align-content:start;gap:12px;padding:17px 19px 25px;scrollbar-color:#263a4c transparent}
.panel-section{gap:12px;padding:17px 17px 18px;border:1px solid #192635;border-radius:14px;background:linear-gradient(145deg,#0a1017,#080c11);box-shadow:0 8px 24px #0002}
.section-heading{margin-bottom:2px}.section-heading h2{font-size:13px}.section-heading p{font-size:9px;color:#8596a7}.section-icon{width:31px;height:31px;border-color:#164662;border-radius:9px;background:#0b1c28;color:#4ebcf5}
.field-label{color:#bdcad5;font-size:10px}.optional,.counter{color:#7890a3;font-size:8px}
.panel-section input:not([type=checkbox]):not([type=color]),.panel-section textarea{border-color:#213244;border-radius:8px;background:#070d13;color:#ecf4fa;font-size:11px}
.panel-section input:focus,.panel-section textarea:focus{border-color:#168fe8;box-shadow:0 0 0 3px #168fe81c}
.panel-section input::placeholder,.panel-section textarea::placeholder{color:#687d90}
.color-control{border-color:#213244;border-radius:8px;background:#070d13}.input-icon,.url-input>span{color:#44b7ee}
.hint{color:#6e8397;font-size:9px;line-height:1.55}.emoji-chip{border-color:#203346;border-radius:9px;background:#09121a;color:#a9bccd}.emoji-chip:hover{border-color:#168fe8;background:#0d1e2a;color:#e5f5ff;box-shadow:0 0 14px #168fe81a}.emoji-section code{color:#9edbfc;background:#0d1c27;border-color:#1c5577}
.quote-button,.icon-button{border-color:#1c3e55;background:#0a1822;color:#6bc5f0}.quote-button:hover,.icon-button:hover{border-color:#1a78a8;background:#0e2433;color:#dbf4ff}
.field-card{border-color:#1b2a38;border-radius:11px;background:#080e14}.field-card-top{color:#8296a8}.remove-field:hover{color:#53bdf2}.check-row input:checked+.check-box{background:#0d4363;border-color:#168fe8}
.editor-bottom{border-top:1px solid #172431;color:#8192a3;font-size:9px}.text-button{color:#61bff1}.text-button:hover{color:#d0f0ff}
.preview-column{background:radial-gradient(ellipse at 65% 34%,#0a1721 0,transparent 42rem),#05080c}
.preview-header{height:74px;border-bottom-color:#172330;background:rgba(6,9,13,.8)}.preview-header h2{font-size:18px}.preview-status{border-color:#1b3548;background:#09131b;color:#a6bdce}
.preview-stage{align-items:center;justify-content:flex-start;padding:17px clamp(18px,3vw,48px);background-image:radial-gradient(#1a2b39 0.65px,transparent 0.65px);background-size:18px 18px}
.discord-window{width:min(100%,840px);min-height:460px;border-color:#202d39;border-radius:14px;background:#1c1d21;box-shadow:0 28px 90px #0009}
.channel-bar{height:45px;border-bottom-color:#303238;color:#e5e8ec}.hash{color:#959ca5}.channel-tools{color:#757e89;font-size:9px}
.message-area{justify-content:flex-start;padding:29px 26px 22px}.day-divider{color:#87919a}.day-divider:before,.day-divider:after{background:#34363c}
.message-meta strong{font-size:12px}.embed-card{width:min(100%,680px);border-left-width:4px;border-radius:4px 10px 10px 4px;background:#232428;padding:15px 16px 13px;box-shadow:0 1px 2px #0003}
.embed-title-row h3{font-size:15px}.embed-description{color:#dcdee1;font-size:12px;line-height:1.58}.embed-fields{gap:12px 16px}.preview-field strong{font-size:10px}.preview-field div{font-size:10px}
.embed-footer{border-top-color:#383a40;color:#acb3ba}.discord-blockquote{border-left-color:#575e68;color:#c6cbd1}
.discord-button{background:#0d4363;border-radius:7px}.discord-button.native-button.primary{background:#0d4363}.discord-select-preview{border-color:#3a4049;border-radius:8px;background:#2b2d32;color:#c6ccd4}
.composer{background:#303238;color:#aeb4bc}.message-reaction span{background:#292d34;border-color:#353b43}.preview-note{color:#8697a7}.preview-note span{color:#54c2f1}
.preview-footer-bar{border-top-color:#182632;background:#060a0f;color:#74899a}
.preview-column.preview-mobile .discord-window{width:min(100%,420px);min-height:700px;align-self:center}.preview-column.preview-mobile .channel-tools{display:none}
.toast{border-color:#1b587a;background:#0b1b27;color:#e0f4ff}
@media(max-width:1200px){.workspace{grid-template-columns:48px minmax(370px,500px) minmax(400px,1fr)}.topbar{padding:0 14px;gap:12px}.brand{min-width:170px}.topbar-center select{max-width:190px}}
@media(max-width:1000px){.workspace{grid-template-columns:46px minmax(340px,45vw) minmax(370px,1fr)}.editor-scroll{padding-inline:14px}.editor-heading{padding-inline:15px}.preview-stage{padding-inline:14px}}
@media(max-width:820px){.app-shell{height:auto}.workspace{display:flex}.editor-column{order:1}.preview-column{order:2}.editor-scroll{max-height:none}.editor-heading{position:relative}.preview-column{min-height:680px}.preview-stage{min-height:540px}.rail{display:none}.topbar{position:sticky;top:0;height:60px}.topbar-center{display:none}.top-actions .button{display:none}.top-actions #setup-panel-button,.top-actions #export-button{display:block}}
@media(max-width:520px){.topbar{gap:8px;padding-inline:10px}.brand{min-width:0}.brand-copy small{display:none}.top-actions{gap:5px}.top-actions .button{height:32px;padding:0 8px;font-size:9px}.editor-heading{align-items:flex-start;flex-direction:column}.editor-heading h1{font-size:20px}.panel-section{padding:14px}.form-grid.two{grid-template-columns:1fr}.preview-column{min-height:590px}.preview-stage{padding:10px 7px;min-height:490px}.discord-window{min-height:440px;border-radius:10px}.message-area{padding:18px 11px}.discord-message{gap:9px}.bot-avatar{width:31px;height:31px}.embed-card{padding:11px}.embed-title-row h3{font-size:14px}.channel-tools{display:none}.preview-footer-bar{padding-inline:10px}}
@media(prefers-reduced-motion:reduce){.mini-preview-float,.rail-item,.button,.emoji-chip{animation:none;transition:none}}

/* Shared Nexora line icons and studio identity */
.ui-icon{width:1em;height:1em;display:block;flex:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.studio-back-link{width:36px;height:36px;display:grid;place-items:center;flex:none;border:1px solid #1b2b3d;border-radius:10px;background:#0b1119;color:#9eb3c9;text-decoration:none;transition:border-color .18s,color .18s,background .18s}.studio-back-link:hover{border-color:#155a82;background:#0c1b29;color:#5bc0ff}.studio-back-link .ui-icon{width:16px;height:16px}
.brand{min-width:205px;gap:11px}
.brand-mark{width:38px;height:38px;display:grid;place-items:center;overflow:hidden;border-radius:12px;background:#07121b}
.brand-mark img{width:100%;height:100%;display:block;object-fit:cover}
.brand-copy{gap:0}
.brand-copy strong{letter-spacing:.12em}
.brand-copy small{display:flex;align-items:center;gap:6px;color:#8696a9;font-size:8px;letter-spacing:.17em}
.brand-copy small span{color:#55baff;font-weight:700}
.brand-copy small i{width:3px;height:3px;border-radius:50%;background:#328fc5;box-shadow:0 0 8px #168fe8}
.ai-rail-item{display:grid;place-items:center;padding:4px}
.ai-rail-item img{width:28px;height:28px;object-fit:contain;filter:drop-shadow(0 0 7px #168fe840)}
.ai-rail-item.active img{filter:drop-shadow(0 0 9px #35baff88)}
.rail-item .ui-icon{width:17px;height:17px;margin:auto}
.editor-column{position:relative}
.editor-heading-actions{display:flex;align-items:center;gap:8px}
.mobile-template-button{display:none;align-items:center;gap:6px;height:31px;padding:0 9px;border:1px solid #203244;border-radius:7px;background:#0a101a;color:#a9bac9;font-size:10px;white-space:nowrap;cursor:pointer}
.mobile-template-button .ui-icon{width:14px;height:14px;color:#57c7ff}
.template-library{position:absolute;z-index:4;inset:0 auto 0 58px;width:min(390px,calc(100% - 58px));padding:24px 20px;background:rgba(7,12,19,.98);border-right:1px solid #1b3040;box-shadow:22px 0 60px #0009;overflow:auto;backdrop-filter:blur(18px)}
.template-library[hidden]{display:none}
.template-library-heading{display:flex;align-items:center;gap:11px;margin-bottom:18px}
.template-library-heading h2{margin:0 0 3px;font:600 17px var(--display)}
.template-library-heading p{margin:0;color:#899aac;font-size:11px}
.template-search-wrap{height:39px;display:flex;align-items:center;gap:9px;padding:0 11px;border:1px solid #203244;border-radius:9px;background:#090f16;color:#6e9bb2}
.template-search-wrap .ui-icon{width:15px;height:15px;flex:none}
.template-search-wrap input{width:100%;min-width:0;border:0;outline:0;background:transparent;color:#e8eefb;font:inherit;font-size:11px}
.template-search-wrap input::placeholder{color:#718196}
.template-library-list{display:grid;gap:8px;margin-top:14px}
.template-library-item{width:100%;min-width:0;display:flex;align-items:center;gap:11px;padding:11px;border:1px solid #182a3a;border-radius:10px;background:linear-gradient(120deg,#0b131b,#080d14);color:#e8eefb;text-align:left;cursor:pointer;transition:border-color .16s,background .16s,transform .16s}
.template-library-item:hover{border-color:#1676a9;background:#0c1b27;transform:translateX(2px)}
.template-library-item.selected{border-color:#168fe8;background:linear-gradient(110deg,#0c1d2b,#0a1119);box-shadow:inset 2px 0 #25b7ff,0 0 18px #168fe81c}
.template-library-icon{width:34px;height:34px;flex:none;display:grid;place-items:center;border:1px solid #194665;border-radius:9px;background:#0b1c29;color:#57c7ff}
.template-library-icon .ui-icon,.template-library-arrow .ui-icon{width:16px;height:16px}
.template-library-copy{min-width:0;display:grid;gap:4px}
.template-library-copy strong{font-size:11px;font-weight:700}
.template-library-copy small{overflow:hidden;color:#8193a5;font-size:9px;text-overflow:ellipsis;white-space:nowrap}
.template-library-arrow{margin-left:auto;color:#5bbef2}
.template-empty{padding:13px;border:1px dashed #213142;border-radius:9px}
@media(max-width:820px){.mobile-template-button{display:inline-flex}.template-library{position:relative;inset:auto;width:100%;max-height:320px;border-right:0;border-bottom:1px solid #1b3040;box-shadow:none;padding:17px}}
.section-icon .ui-icon{width:16px;height:16px}
.input-icon .ui-icon{width:13px;height:13px}
.url-input>span .ui-icon{width:13px;height:13px}
.button>span[data-icon] .ui-icon,.icon-button .ui-icon,.quote-button .ui-icon{width:15px;height:15px;display:inline-block;vertical-align:-3px}
.quote-button{display:flex;align-items:center;gap:8px}
.device-toggle button{display:flex;align-items:center;gap:6px}
.device-toggle .ui-icon{width:13px;height:13px}
.discord-select-preview>.ui-icon,.channel-lock .ui-icon{width:13px;height:13px}
.composer>span .ui-icon{width:18px;height:18px}
.preview-note>span .ui-icon{width:14px;height:14px;color:#60c5ff}
.discord-button>span .ui-icon{width:13px;height:13px;display:inline-block;vertical-align:-2px}
.remove-field .ui-icon{width:14px;height:14px}
@media(max-width:820px){.brand{min-width:0}.brand-copy small{display:flex}}

.studio-back-link { display: inline-flex; gap: 6px; width: auto; padding-inline: 10px; font-size: 11px; }
@media (max-width: 520px) {
  .studio-back-link { padding-inline: 7px; font-size: 10px; }
  .studio-back-link .ui-icon { display: none; }
}

.editor-save-state {
  display: block;
  margin-top: 5px;
  color: #8496a8;
  font-size: 10px;
}

.studio-support-link { flex: none; color: #aebfcd; font-size: 11px; text-decoration: none; }
.studio-support-link:hover { color: #fff; }
@media (max-width: 520px) {
  .topbar .brand-copy { display: none; }
  .studio-support-link { font-size: 10px; }
}
