/* Embed Builder (/builder, Oct 30 2026). Editor left, Discord-style preview + Send on the right; one column on phones. */
main.eb-page{max-width:1380px}
.eb-hero{padding:18px 0 6px}.eb-hero p{margin-bottom:14px}
.btn.small{min-width:0;padding:8px 14px;font-size:.92rem}
.eb-toolbar{display:flex;flex-wrap:wrap;gap:8px;align-items:center;background:var(--panel);border:1px solid var(--line);border-radius:12px;padding:10px 12px;position:sticky;top:0;z-index:5}
.eb-toolbar button{cursor:pointer;border:0}
.eb-who{color:var(--muted);font-size:.9rem;margin-right:auto}
.eb-name{max-width:240px;padding:8px 12px!important}
.eb-status{min-height:1.2em;color:var(--muted);font-size:.9rem;margin:6px 2px}
.eb-grid{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);gap:18px;align-items:start}
@media (max-width:900px){.eb-grid{grid-template-columns:minmax(0,1fr)}}
.eb-side{position:sticky;top:72px;max-height:calc(100vh - 84px);overflow:auto}
@media (max-width:900px){.eb-side{position:static;max-height:none}}
.eb-modes,.eb-via{display:flex;gap:6px;flex-wrap:wrap;align-items:center;margin:0 0 12px}
.eb-mode,.eb-via-btn{background:#4e5058;color:#fff;border:0;border-radius:8px;padding:8px 14px;font:inherit;font-weight:700;cursor:pointer}
.eb-mode[aria-checked=true],.eb-via-btn[aria-checked=true]{background:var(--accent)}
.eb-via span{color:var(--muted);font-weight:700;margin-right:4px}
.eb-card{background:var(--panel);border:1px solid var(--line);border-radius:10px;padding:12px 14px;margin:0 0 12px}
.eb-card>summary,.eb-sub>summary{cursor:pointer;font-weight:700;color:var(--head)}
.eb-card>summary{list-style:none;display:flex;align-items:center;gap:8px}.eb-card>summary::-webkit-details-marker{display:none}
.eb-card>summary::before{content:"\25B8";color:var(--muted);flex:none;width:12px}.eb-card[open]>summary::before{content:"\25BE"}
.eb-card>summary>.eb-card-h{flex:1;min-width:0}
.eb-card .eb-card{background:rgba(0,0,0,.14)}
.eb-card-h{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.eb-card-h .eb-t{font-weight:700;color:var(--head);margin-right:auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:60%}
.eb-ic{background:#4e5058;color:#fff;border:0;border-radius:6px;min-width:30px;height:30px;padding:0 8px;cursor:pointer;font:inherit;font-size:.85rem}
.eb-ic:hover{background:#6d6f78}.eb-ic.del:hover{background:#da373c}
.eb-ic:disabled{opacity:.4;cursor:default}
.eb-l{display:block;margin:8px 0;font-size:.88rem;color:var(--muted);font-weight:600}
.eb-l .inp,.eb-l input,.eb-l textarea,.eb-l select{margin-top:4px;padding:8px 10px;font-size:.95rem}
.eb-l textarea{min-height:64px;resize:vertical}
.eb-row{display:flex;gap:6px;align-items:center}.eb-row>.inp,.eb-row>input,.eb-row>select{flex:1;min-width:0}
.eb-two{display:grid;grid-template-columns:1fr 1fr;gap:8px}@media (max-width:560px){.eb-two{grid-template-columns:1fr}}
.eb-count{float:right;font-weight:400;font-size:.8rem}.eb-count.over{color:#f23f43;font-weight:700}
.eb-color{display:flex;gap:6px;align-items:center}.eb-color input[type=color]{width:44px;height:36px;padding:0;border:0;background:none;cursor:pointer}
.eb-check{display:flex;gap:8px;align-items:center;font-size:.92rem;margin:6px 0;color:var(--text)}
.eb-add{display:flex;gap:6px;flex-wrap:wrap;margin:8px 0}
.eb-add button{background:transparent;color:var(--accent2);border:1px dashed var(--line);border-radius:8px;padding:6px 10px;cursor:pointer;font:inherit;font-size:.88rem;font-weight:700}
.eb-add button:hover{border-color:var(--accent2)}.eb-add button:disabled{opacity:.4;cursor:default}
.eb-kept{color:var(--muted);font-size:.85rem;font-style:italic}
.eb-problems{list-style:none;padding:0;margin:6px 0}.eb-problems li{color:#f8a5a7;font-size:.9rem;margin:2px 0}
.eb-problems li::before{content:"\26A0  "}
.eb-warn{color:#f8c25c;font-size:.9rem}
.eb-send h2{margin:0 0 10px;border:0;padding:0}
.eb-send .btns{justify-content:flex-start;margin:6px 0 12px}.eb-send .btn{min-width:0;border:0;cursor:pointer;font:inherit;font-weight:700}
.eb-send .btn:disabled{opacity:.5;cursor:default}
.eb-botline{font-size:.9rem;margin:0 0 6px}.eb-botline.ok{color:#57f287}.eb-botline.bad{color:#f8c25c}
.eb-result{font-size:.92rem;margin:8px 0 0;min-height:1.2em}.eb-result.ok{color:#57f287}.eb-result.bad{color:#f8a5a7}
.eb-sub{margin:10px 0;padding:8px 10px;border:1px solid var(--line);border-radius:8px}
.eb-modal{position:fixed;inset:0;background:rgba(0,0,0,.6);z-index:50;display:flex;align-items:center;justify-content:center;padding:16px}
.eb-modal[hidden]{display:none}
.eb-modal-box{background:var(--panel);border:1px solid var(--line);border-radius:12px;padding:18px 20px;max-width:720px;width:100%;max-height:90vh;overflow:auto}
.eb-modal-box h2{margin-top:0;border:0;padding:0}.eb-modal-box .btn{border:0;cursor:pointer;font:inherit;font-weight:700;min-width:0}
.eb-json-text{min-height:300px;font-family:ui-monospace,Consolas,monospace!important;font-size:.82rem!important}
.eb-saved-list,.eb-log{list-style:none;padding:0}.eb-saved-list li,.eb-log li{display:flex;gap:8px;align-items:center;border-bottom:1px solid var(--line);padding:8px 0;margin:0;flex-wrap:wrap}
.eb-saved-list .n{font-weight:700;color:var(--head);margin-right:auto}.eb-saved-list .d,.eb-log li{color:var(--muted);font-size:.85rem}
/* ---- Discord-style preview ---- */
.eb-preview-wrap{background:#313338;border-radius:10px;border:1px solid #232428;margin-bottom:12px;overflow:hidden}
.eb-preview-h{font-size:.75rem;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:#949ba4;padding:8px 14px 0}
.eb-preview{padding:8px 14px 14px;color:#dbdee1;font-size:15px;line-height:1.375;overflow-wrap:anywhere}
.dp-msg{display:flex;gap:14px;padding-top:4px}
.dp-av{width:40px;height:40px;border-radius:50%;flex:none;background:#5865f2;object-fit:cover}
.dp-body{min-width:0;flex:1}
.dp-head{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.dp-name{color:#f2f3f5;font-weight:600}
.dp-tag{background:#5865f2;color:#fff;font-size:.65rem;font-weight:700;border-radius:3px;padding:1px 4px}
.dp-when{color:#949ba4;font-size:.75rem}
.dp-text{white-space:pre-wrap}.dp-text>div{min-height:1.375em}
.dp-h1{font-size:1.5rem;font-weight:700;line-height:1.3;margin:4px 0}.dp-h2{font-size:1.25rem;font-weight:700;margin:4px 0}.dp-h3{font-size:1rem;font-weight:700;margin:4px 0}
.dp-sub{font-size:.8rem;color:#949ba4}
.dp-quote{border-left:4px solid #4e5058;padding-left:10px}
.dp-li{padding-left:16px;position:relative}.dp-li::before{content:"\2022";position:absolute;left:4px}
.dp-code{background:#2b2d31;border-radius:4px;padding:0 3px;font-family:ui-monospace,Consolas,monospace;font-size:.85em}
.dp-pre{background:#2b2d31;border:1px solid #1e1f22;border-radius:4px;padding:8px;font-family:ui-monospace,Consolas,monospace;font-size:.85em;white-space:pre-wrap;margin:4px 0}
.dp-mention{background:rgba(88,101,242,.3);color:#c9cdfb;border-radius:3px;padding:0 2px;font-weight:500}
.dp-time{background:rgba(78,80,88,.48);border-radius:3px;padding:0 2px}
.dp-spoiler{background:#1e1f22;color:transparent;border-radius:3px;cursor:pointer}.dp-spoiler.open{background:rgba(255,255,255,.1);color:inherit}
.dp-link{color:#00a8fc;text-decoration:none}.dp-link:hover{text-decoration:underline}
.dp-emoji{width:1.375em;height:1.375em;vertical-align:bottom;object-fit:contain}
.dp-embed{display:grid;max-width:520px;background:#2b2d31;border-left:4px solid #1e1f22;border-radius:4px;padding:8px 16px 16px 12px;margin-top:6px;position:relative}
.dp-embed.has-th{padding-right:96px}
.dp-e-author{display:flex;align-items:center;gap:8px;font-size:.875rem;font-weight:600;color:#f2f3f5;margin-top:8px}
.dp-e-author img{width:24px;height:24px;border-radius:50%}
.dp-e-title{font-weight:600;color:#f2f3f5;margin-top:8px}.dp-e-title a{color:#00a8fc}
.dp-e-desc{font-size:.875rem;margin-top:8px}
.dp-e-fields{display:grid;grid-template-columns:repeat(12,1fr);gap:8px;margin-top:8px}
.dp-e-field{font-size:.875rem;min-width:0}.dp-e-field .fn{font-weight:600;color:#f2f3f5}
.dp-e-img{margin-top:16px;max-width:100%;border-radius:4px;max-height:300px;object-fit:contain;justify-self:start}
.dp-e-th{position:absolute;top:16px;right:16px;width:80px;height:80px;object-fit:contain;border-radius:4px}
.dp-e-foot{display:flex;align-items:center;gap:8px;font-size:.75rem;color:#dbdee1;margin-top:8px}.dp-e-foot img{width:20px;height:20px;border-radius:50%}
.dp-box{background:#2b2d31;border:1px solid #1e1f22;border-left-width:4px;border-radius:8px;padding:16px;margin-top:6px;max-width:560px;display:flex;flex-direction:column;gap:8px}
.dp-box.spoil{filter:blur(6px)}
.dp-v2{display:flex;flex-direction:column;gap:8px;margin-top:4px;max-width:560px}
.dp-section{display:flex;gap:12px;align-items:flex-start}.dp-section>.m{flex:1;min-width:0}
.dp-thumb{width:85px;height:85px;object-fit:cover;border-radius:8px;flex:none}
.dp-gallery{display:grid;gap:4px;border-radius:8px;overflow:hidden}.dp-gallery img{width:100%;height:100%;max-height:260px;object-fit:cover;display:block;background:#1e1f22}
.dp-sep{border-top:1px solid #3f4147;margin:4px 0}.dp-sep.blank{border-color:transparent}.dp-sep.big{margin:12px 0}
.dp-row{display:flex;gap:8px;flex-wrap:wrap;margin-top:4px}
.dp-btn{display:inline-flex;align-items:center;gap:6px;border-radius:8px;padding:2px 16px;min-height:32px;font-size:.875rem;font-weight:500;color:#fff;text-decoration:none;border:0}
.dp-btn.s1{background:#5865f2}.dp-btn.s2,.dp-btn.s5,.dp-btn.s6{background:#4e5058}.dp-btn.s3{background:#248046}.dp-btn.s4{background:#da373c}.dp-btn.dis{opacity:.5}
.dp-file,.dp-menu{background:#2b2d31;border:1px solid #1e1f22;border-radius:8px;padding:10px 12px;color:#949ba4;font-size:.875rem}
.dp-empty{color:#949ba4;font-style:italic}
.eb-jump{display:none}@media (max-width:900px){.eb-jump{display:inline-block}.eb-toolbar{position:static}}
.dp-gallery img:only-child{max-height:300px;object-fit:contain}
.eb-masked{-webkit-text-security:disc;text-security:disc}
.eb-usage{color:var(--muted);font-size:.85rem;border:1px solid var(--line);border-radius:999px;padding:2px 10px}.eb-usage:empty{display:none}.eb-usage.full{color:#f8a5a7;border-color:#f8a5a7}
.eb-acc li .n{font-weight:600;color:var(--head);margin-right:auto;overflow-wrap:anywhere}.eb-acc .eb-acc-lv{width:auto;flex:0 0 auto;padding:6px 8px}
.eb-modal-box h4{margin:12px 0 4px}

/* Import from Discohook (Oct 30 2026) */
.eb-dh{margin:0 0 .9rem;padding:0 0 .9rem;border-bottom:1px solid rgba(255,255,255,.12)}
.eb-dh .eb-row{display:flex;gap:.5rem;flex-wrap:wrap}
.eb-dh .eb-row .inp{flex:1 1 14rem;min-width:0}
.eb-dh-list li{display:flex;gap:.5rem;align-items:center;justify-content:space-between;flex-wrap:wrap}
.eb-dh-list li span{flex:1 1 12rem;min-width:0;overflow-wrap:anywhere}
.eb-dh-note{color:#f0c674}

/* buttons + select menus (Landis Oct 30 2026 9:31 AM) */
#eb-main input[type=number].inp{width:100%;background:#1a1b1e;color:var(--head);border:1px solid #4e5058;border-radius:8px;font:inherit}
.eb-act{border-left:3px solid #5865f2;padding:6px 0 2px 10px;margin:8px 0 2px;display:grid;gap:6px}
.eb-sub-h{font-weight:600;margin:4px 0}
.eb-opt{margin:6px 0}
.eb-chtypes{display:flex;flex-wrap:wrap;gap:4px 12px;align-items:center}
.eb-chtypes .eb-l{flex-basis:100%}
.eb-role-pick .eb-warn{margin:4px 0 0}
.dp-row.has-menu{display:block}
.dp-menuw{position:relative;max-width:400px;width:100%}
button.dp-menu{display:flex;justify-content:space-between;align-items:center;width:100%;text-align:left;cursor:pointer;font:inherit;font-size:.875rem}
button.dp-menu.dis{opacity:.5;cursor:not-allowed}
.dp-opts{background:#2b2d31;border:1px solid #1e1f22;border-radius:0 0 8px 8px;margin-top:-2px;max-height:240px;overflow:auto}
.dp-opt{display:flex;gap:8px;padding:8px 12px;color:#dbdee1;font-size:.875rem}
.dp-opt.on{background:#404249}
.dp-opt.dp-auto{color:#949ba4;font-style:italic}
.dp-od{color:#949ba4;font-size:.8rem}

/* Reply with a whole message (embeds or Components V2), Oct 30 2026 */
.eb-reply-kind{display:flex;gap:6px;flex-wrap:wrap}
.eb-reply-full{display:grid;gap:6px}
.eb-reply-sum{font-size:.85rem;color:#b5bac1}
.eb-reply-prev{background:#313338;border:1px solid #3f4147;border-radius:8px;padding:8px 10px;max-height:320px;overflow:auto;color:#dbdee1;font-size:14px;line-height:1.375;overflow-wrap:anywhere}
.eb-reply-more{flex-wrap:wrap}
.eb-reply-more .inp{flex:1 1 12rem}
.eb-reply-pick li{display:flex;gap:8px;align-items:center;justify-content:space-between}
.eb-reply-json .eb-json-text{min-height:9rem;font-family:ui-monospace,Menlo,Consolas,monospace;font-size:12px}

/* Photos: a link or an upload from the device, Oct 30 2026 */
.eb-media{display:grid;gap:4px}
.eb-media-info{display:flex;gap:8px;align-items:center;flex-wrap:wrap;font-size:.85rem;color:#b5bac1}
.eb-media-info:empty{display:none}
.eb-media-th{width:48px;height:48px;object-fit:cover;border-radius:6px;border:1px solid #3f4147;background:#2b2d31}
.eb-media-name{overflow-wrap:anywhere;min-width:0;flex:1 1 8rem}
.eb-media-up{white-space:nowrap}
