.embed-editor-card{grid-column:1/-1;min-width:0}
.embed-editor-card button{font:600 13px/1.4 system-ui,sans-serif;min-height:36px;padding:8px 12px;border:1px solid var(--border);border-radius:7px;background:var(--surface);color:var(--text);cursor:pointer}
.embed-editor-card button:hover{border-color:var(--accent);color:var(--accent)}.embed-editor-card button:disabled{opacity:.5;cursor:not-allowed}
body.dashboard-page[data-view] #settings:has(.embed-editor-card){max-width:1400px}
.embed-toolbar{display:flex;align-items:end;flex-wrap:wrap;gap:12px;padding-bottom:20px;border-bottom:1px solid var(--border)}
.embed-toolbar label{flex:1 1 180px;margin:0}.embed-toolbar button{flex:0 0 auto}
.embed-workspace{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:28px;margin:24px 0;align-items:start}
.embed-controls,.embed-settings,.embed-live{min-width:0}.embed-live{position:sticky;top:24px}.embed-live h4{margin:0 0 12px}
.embed-tabs{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:16px}.embed-tabs button{max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}
.embed-tab[aria-pressed=true]{border-color:var(--accent)!important;color:var(--accent)!important;background:var(--surface)!important}
.embed-settings details,.embed-json{padding:16px;border:1px solid var(--border);border-radius:10px;margin-bottom:12px;background:var(--surface)}
.embed-settings summary,.embed-json summary{font-weight:650;cursor:pointer;min-height:32px;color:var(--text)}
.embed-settings label{display:grid;margin:12px 0 0;gap:6px}.embed-settings textarea{min-height:120px;resize:vertical}.embed-json textarea{min-height:200px;font-family:Consolas,monospace}
.embed-color-row,.embed-actions,.embed-delivery{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.embed-color-row label{margin:0 8px 0 0}
body.dashboard-page[data-view] .settings-card .embed-color-row input[type=color]{width:58px;height:42px;min-height:0;padding:3px}
body.dashboard-page[data-view] .settings-card button.embed-swatch{width:26px;height:26px;min-height:26px;border:2px solid #ffffff40;border-radius:50%;padding:0}
.embed-field-row{padding:14px;margin:12px 0;background:var(--panel);border:1px solid var(--border);border-radius:8px}.embed-actions{margin-top:12px}
.embed-settings input[type=checkbox]{appearance:auto!important;width:20px!important;height:20px!important;float:none!important}.embed-settings input[type=checkbox]::after{display:none!important}
.embed-delivery{padding-top:20px;border-top:1px solid var(--border)}.embed-delivery label{flex:1 1 220px}.embed-json>button{margin:8px 8px 0 0}
.discord-message-preview{padding:20px;border-radius:12px;background:#313338;color:#f2f3f5;overflow-wrap:anywhere;font:14px/1.5 system-ui,sans-serif;text-align:left}
.discord-message-author{display:flex;align-items:center;gap:8px;margin-bottom:14px}.discord-message-author>img{width:32px;height:32px;border-radius:50%}.discord-message-author small{font-size:10px;background:#5865f2;border-radius:4px;padding:1px 5px;color:#fff}
.discord-message-preview .discord-message-content{color:#dbdee1!important;white-space:pre-wrap;margin:12px 0}
.discord-embed{border-left:4px solid #9b59ff;border-radius:4px;background:#2b2d31;padding:14px 16px;margin:10px 0;overflow:hidden;display:flow-root}
.discord-embed h4{font-size:16px;color:#f2f3f5;margin:7px 0}.discord-embed p{white-space:pre-wrap;color:#dbdee1!important;margin:7px 0;font-size:14px;line-height:1.5}
.discord-embed a{color:#6abaf6;text-decoration:none}.discord-embed a:hover{text-decoration:underline}.discord-embed code{background:#1e1f22;border-radius:3px;padding:2px 4px;color:#dbdee1}
.discord-embed-author{display:flex;gap:7px;align-items:center;font-weight:600;font-size:13px}.discord-embed-author img,.discord-embed-footer img{width:20px;height:20px;object-fit:cover;border-radius:50%}
.discord-thumbnail{float:right;max-width:72px;max-height:72px;object-fit:contain;margin:0 0 12px 12px;border-radius:4px}.discord-large-image{display:block;max-width:100%;max-height:300px;border-radius:4px;margin:14px 0;object-fit:contain}
.discord-embed-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.discord-embed-fields .full-field{grid-column:1/-1}.discord-embed-fields strong{font-size:14px;color:#f2f3f5}
.discord-embed-footer{display:flex;gap:7px;align-items:center;color:#b5bac1;margin-top:14px;font-size:11px;white-space:pre-wrap}
.discord-link-buttons{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0}.discord-link-buttons a{display:inline-block;background:#4e5058;color:#f2f3f5;border-radius:4px;padding:7px 14px;text-decoration:none;font-weight:600}
@media(max-width:1000px){.embed-workspace{grid-template-columns:1fr}.embed-live{position:static}.embed-live .discord-message-preview{max-width:650px}}
@media(max-width:480px){.embed-toolbar>*{width:100%}.embed-delivery button{width:100%}.discord-message-preview{padding:12px}.discord-embed{padding:12px}.discord-embed-fields{grid-template-columns:1fr}.embed-settings details{padding:12px}}
