*{box-sizing:border-box}body{margin:0;background:#08090d;color:#fff;font-family:"Segoe UI",Arial,sans-serif}.page{min-height:100vh;padding:36px;background:radial-gradient(circle at top left,#232044,#0b0d12 45%,#08090d)}.shell{max-width:1280px;margin:0 auto}.topbar{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:26px}.topbar h1{margin:0 0 10px;font-size:44px;letter-spacing:-1.4px}.topbar h1 span,.tools-title-row strong,.panel-head strong,.font-section h4{color:#8b5cf6}.topbar p{margin:0;color:#d4d4d8;font-size:17px}.top-actions{display:flex;gap:10px;align-items:center}.top-link{border:1px solid #343847;background:#0f1117;color:#fff;border-radius:999px;padding:12px 16px;font-weight:900;cursor:pointer}.icon-wrap,.templates-wrap{position:relative}.icon-btn{width:48px;height:48px;border-radius:50%;border:1px solid #343847;background:#0f1117;display:grid;place-items:center;cursor:pointer;padding:10px}.icon-btn img{width:27px;height:27px;object-fit:contain}.top-menu{position:absolute;top:60px;right:0;width:300px;background:#111318;border:1px solid #343847;border-radius:16px;padding:15px;box-shadow:0 20px 60px #0008;z-index:1000}.templates-menu{left:0;right:auto}.top-menu p{color:#a1a1aa;font-size:13px;line-height:1.5}.top-menu button:not(.menu-x),.gold-btn,.discord-btn{width:100%;border:1px solid #343847;background:#0f1117;color:#fff;border-radius:12px;padding:10px;font-weight:800;cursor:pointer;margin-top:8px}.gold-btn{background:#facc15!important;color:#000!important;border:0!important}.discord-btn{background:#5865f2!important;border:0!important}.menu-x,.panel-x{width:28px!important;height:28px!important;padding:0!important;border-radius:50%!important;border:1px solid #343847!important;background:#0f1117!important;color:#fff!important;cursor:pointer;display:grid;place-items:center}.menu-x{position:absolute;right:10px;top:10px}.layout{display:grid;grid-template-columns:.95fr 1.1fr;gap:22px;align-items:start}.card{background:#181b24e6;border:1px solid #ffffff14;border-radius:24px;padding:22px;box-shadow:0 24px 80px #0006;overflow:hidden}.card h2{margin:0 0 18px}.tools-panel{border:1px solid #2f3443;background:#0f1117b8;border-radius:18px;padding:14px;margin-bottom:18px}.tools-title-row{display:flex;justify-content:space-between;align-items:center;gap:12px}.tools-title-row span{display:block;color:#a1a1aa;font-size:12px;margin-top:3px}.sidebar-btn{display:none;width:34px;height:34px;border-radius:10px;border:1px solid #343847;background:#0f1117;cursor:pointer;padding:7px}.sidebar-btn img{width:100%;height:100%;object-fit:contain}.tool-buttons,.panel-grid,.theme-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-top:12px}.tool-buttons button,.panel-grid button,.font-section button,.theme-grid button,.side-buttons button,.side-content button{border:0;background:#252936;color:#fff;border-radius:10px;padding:10px;cursor:pointer;font-weight:900;font-size:12px}.inline-panel{position:relative;margin-top:12px;border:1px solid #343847;background:#0f1117;border-radius:16px;padding:14px;animation:slideDown .18s ease both;overflow:hidden}.panel-head{display:flex;justify-content:space-between;align-items:center;min-height:30px;margin-bottom:10px}.font-section{border-top:1px solid #252936;padding-top:10px;margin-top:10px;display:grid;grid-template-columns:repeat(2,1fr);gap:8px}.font-section:first-of-type{border-top:0;margin-top:0}.font-section h4{grid-column:1/-1;margin:0 0 4px}.emoji-panel{max-width:330px}.emoji-search{margin-bottom:8px}.emoji-tabs{display:flex;gap:6px;overflow-x:auto;overflow-y:hidden;padding-bottom:8px;margin-bottom:8px}.emoji-tabs button{min-width:34px;height:32px;padding:0;border-radius:10px;font-size:17px;border:0;background:#252936;color:white}.emoji-scroll{max-height:245px;overflow-y:auto;overflow-x:hidden;padding-right:4px}.emoji-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:4px}.emoji-grid button{width:34px;height:34px;padding:0;font-size:20px;border-radius:8px;background:transparent;border:0;cursor:pointer}.emoji-grid button:hover{background:#252936}.emoji-copied-overlay{position:absolute;inset:0;display:grid;place-items:center;background:#0008;backdrop-filter:blur(5px);color:#fff;font-weight:900;font-size:22px;z-index:10;border-radius:16px}#editor{width:100%;min-height:500px;border:1px solid #343847;background:#0f1117;color:#fff;border-radius:18px;padding:16px;outline:none;resize:vertical;font-size:15px;line-height:1.55;font-family:Consolas,monospace;overflow-x:hidden}.colour-row{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;margin-top:12px;align-items:end}label{display:flex;flex-direction:column;margin:14px 0 7px;color:#d4d4d8;font-size:13px;font-weight:700}input[type=color]{width:100%;height:42px;border:1px solid #343847;border-radius:14px;background:transparent;padding:0;cursor:pointer}.input{width:100%;border:1px solid #343847;background:#0f1117;color:#fff;border-radius:14px;padding:12px;outline:none}.upload-label input{width:100%;margin-top:8px;border:1px dashed #4b5563;background:#0f1117;color:#fff;border-radius:14px;padding:12px;cursor:pointer}.mini{color:#a1a1aa;font-size:13px;margin:8px 0;line-height:1.4}.secondary{width:100%;border:1px solid #343847;border-radius:14px;padding:11px;background:#0f1117;color:#fff;font-weight:800;cursor:pointer;margin-top:8px}.theme-box,.save-box{margin-top:24px}.theme-box h3,.save-box h3{display:flex;align-items:center;gap:8px}.diamond-pill{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;border-radius:50%;background:transparent;border:2px solid #facc15;box-shadow:0 0 6px #facc1580}.diamond-pill img{width:14px;height:14px;object-fit:contain;filter:brightness(0) invert(1)}.preview-tabs{display:flex;gap:10px;margin-bottom:14px}.preview-tabs button{flex:1;border:1px solid #343847;background:#0f1117;color:#fff;border-radius:14px;padding:10px;cursor:pointer;font-weight:800}.preview-tabs button.active{border-color:#8b5cf6}.discord-preview{display:flex;gap:14px;align-items:flex-start;background:#313338;border-radius:24px;padding:18px;height:460px;overflow-y:auto;overflow-x:hidden}.discord-preview.mobile{width:360px;max-width:100%;height:600px;margin:0 auto;aspect-ratio:9/16}.avatar{width:46px;height:46px;border-radius:50%;background:linear-gradient(135deg,#8b5cf6,#ec4899);display:grid;place-items:center;font-weight:900;flex-shrink:0}.message-area{min-width:0}.bot-line{display:flex;gap:8px;align-items:center;margin-bottom:8px;flex-wrap:wrap}.bot-line strong{color:#8b5cf6}.bot-line span{background:#5865f2;border-radius:4px;padding:2px 5px;font-size:11px;font-weight:900}.bot-line small{color:#a1a1aa;font-size:12px}.embed-box{max-width:560px;background:#2b2d31;color:#f2f3f5;border-left:5px solid #8b5cf6;border-radius:8px;padding:16px 18px;overflow-wrap:break-word;word-break:break-word;line-height:1.38}.discord-preview.mobile .embed-box{max-width:260px}.preview-line{margin:7px 0}.banner{margin-top:14px;width:100%;aspect-ratio:5/1;object-fit:cover;border-radius:8px;display:block;background:#111318}.footer-tabs{margin-top:34px;display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.footer-tabs button{border:1px solid #ffffff14;background:#181b24b8;border-radius:18px;padding:16px;cursor:pointer;color:#fff;text-align:left}.footer-tabs span{display:block;color:#a1a1aa;font-size:13px;margin-top:4px}.modal-overlay{position:fixed;inset:0;background:#0008;display:grid;place-items:center;z-index:2000;padding:14px}.modal{width:min(760px,92vw);max-height:82vh;overflow-y:auto;background:#111318;border:1px solid #343847;border-radius:20px;padding:22px;box-shadow:0 22px 70px #000a;white-space:pre-wrap;position:relative}.modal-close{position:absolute;right:14px;top:14px;width:34px;height:34px;border-radius:50%;border:1px solid #343847;background:#0f1117;color:#fff;cursor:pointer}.desktop-side-panel{position:fixed;left:36px;top:190px;width:230px;background:#0f1117f2;border:1px solid #343847;border-radius:18px;box-shadow:0 22px 70px #0008;padding:14px;z-index:900;display:flex;flex-direction:column;gap:8px;animation:slideRight .18s ease both}.side-buttons{display:grid;grid-template-columns:1fr 1fr;gap:8px}.side-content{border-top:1px solid #343847;margin-top:8px;padding-top:10px;animation:slideDown .18s ease both}.side-content .panel-grid,.side-content .font-section{grid-template-columns:1fr}.template-row{display:flex;justify-content:space-between;align-items:center;gap:8px;border:1px solid #252936;background:#0f1117;border-radius:12px;padding:10px;margin-top:8px}.template-row button{width:auto}.hidden{display:none!important}.h1{color:#8b5cf6;font-size:32px;font-weight:900;margin-bottom:6px}.h2{color:#8b5cf6;font-size:27px;font-weight:900;margin-bottom:4px}.h3{font-size:16px;font-weight:900;margin:8px 0}.quote{border-left:3px solid #8b5cf6;padding-left:11px;margin:8px 0;line-height:1.35}code{background:#0004;padding:2px 5px;border-radius:5px}.spoiler{background:#111;color:#111;border-radius:4px;padding:1px 4px}@keyframes slideDown{from{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:translateY(0)}}@keyframes slideRight{from{opacity:0;transform:translateX(-12px)}to{opacity:1;transform:translateX(0)}}@media (min-width:1025px){.sidebar-btn{display:grid;place-items:center}}@media (max-width:1024px){.layout{grid-template-columns:1fr}.page{padding:24px}.desktop-side-panel{display:none!important}}@media (max-width:640px){.page{padding:14px}.topbar{flex-direction:column}.topbar h1{font-size:34px}.tool-buttons,.panel-grid{grid-template-columns:repeat(2,1fr)}.font-section{grid-template-columns:1fr}.emoji-grid{grid-template-columns:repeat(5,1fr)}.colour-row{grid-template-columns:1fr}.theme-grid{grid-template-columns:repeat(2,1fr)}.footer-tabs{grid-template-columns:1fr}.discord-preview{height:520px}}


/* === Embed Builder+ requested fixes === */
.tools-panel{position:relative}.tool-buttons{position:relative}.font-dropdown-wrap{position:static;min-width:0}.font-dropdown-btn{width:100%;border:0;background:#252936;color:#fff;border-radius:10px;padding:10px;cursor:pointer;font-weight:900;font-size:12px}.font-dropdown-menu{position:absolute;top:calc(100% + 10px);left:50%;transform:translateX(-50%);width:min(500px,calc(100vw - 48px));max-height:300px;overflow-y:auto;background:#0f1117;border:1px solid #343847;border-radius:16px;padding:12px;box-shadow:0 20px 60px #0009;z-index:1500;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.font-dropdown-menu button{min-height:36px;padding:7px 8px;border:0;background:#252936;color:#fff;border-radius:10px;cursor:pointer;font-weight:900;font-size:12px;line-height:1.15;text-align:center;display:flex;align-items:center;justify-content:center}.font-dropdown-menu .reset-font-btn{grid-column:1/-1;width:48%;justify-self:center;min-height:32px;background:#1b1f2b}.emoji-panel{width:min(430px,100%);max-width:430px;margin-left:auto;margin-right:auto}.emoji-grid{grid-template-columns:repeat(auto-fill,34px);justify-content:center;gap:6px}.emoji-grid button{width:34px;height:34px}.icon-btn{width:48px;height:48px;border-radius:14px;padding:9px}.icon-btn img{width:30px;height:30px;object-fit:contain}#discordBtn img{width:31px;height:31px}.diamond-pill{display:inline-grid;place-items:center;width:22px;height:22px;border-radius:50%;background:transparent;border:1px solid #facc15;box-shadow:0 0 5px #facc1566;vertical-align:middle;line-height:1;flex:0 0 auto}.diamond-pill img{display:block;width:14px;height:14px;object-fit:contain;filter:none}.theme-box h3,.save-box h3{align-items:center}.preview-diamond{display:inline-grid;place-items:center;width:18px;height:18px;border-radius:50%;border:1px solid #facc15;margin-left:5px;vertical-align:middle}.preview-diamond img{width:12px;height:12px;object-fit:contain;display:block}.colour-row+.mini{text-align:center;width:calc(50% - 6px);margin-left:calc(50% + 6px);margin-top:2px}.save-note{text-align:center}.top-menu button:not(.menu-x),.gold-btn,.discord-btn{display:flex;align-items:center;justify-content:center}
@media (max-width:640px){.font-dropdown-menu{width:calc(100vw - 28px);grid-template-columns:repeat(2,minmax(0,1fr));max-height:310px}.font-dropdown-menu .reset-font-btn{width:70%}.colour-row+.mini{width:100%;margin-left:0}}


/* v12 Quick Tools cleanup */
#desktopSidePanel .side-content{
  border-top:0;
  margin-top:0;
  padding-top:0;
}

#desktopSidePanel .side-content .panel-head,
#desktopSidePanel .side-content .panel-x,
#desktopSidePanel .side-content .menu-x{
  display:none!important;
}

#desktopSidePanel .side-content .panel-grid,
#desktopSidePanel .side-content .font-section{
  grid-template-columns:repeat(2,1fr)!important;
  gap:8px;
}

#desktopSidePanel .side-content .font-section{
  margin-top:8px;
  padding-top:8px;
}

#desktopSidePanel .side-content .font-section:first-of-type{
  margin-top:0;
  padding-top:0;
  border-top:0;
}

#desktopSidePanel .side-content button{
  min-height:38px;
  white-space:normal;
  line-height:1.15;
}

#desktopSidePanel .side-content .emoji-panel,
#desktopSidePanel .side-content .emoji-scroll{
  width:100%;
  max-width:100%;
}

#desktopSidePanel .side-content .emoji-grid{
  display:grid;
  grid-template-columns:repeat(5,34px);
  justify-content:center;
  gap:4px;
}


/* v14: top icon alignment, animated menus, softer buttons, hover glow */
.icon-btn{
  border:0!important;
  background:#1b1f2b!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  padding:0!important;
  line-height:0;
  overflow:hidden;
}

.icon-btn img{
  display:block;
  width:30px!important;
  height:30px!important;
  object-fit:contain!important;
  object-position:center!important;
  margin:0!important;
  padding:0!important;
  flex:0 0 auto;
}

#discordBtn img{
  width:31px!important;
  height:31px!important;
}

#premiumBtn img{
  width:29px!important;
  height:29px!important;
}

.top-menu:not(.hidden){
  animation:menuExpand .18s ease both;
  transform-origin:top right;
}

@keyframes menuExpand{
  from{opacity:0;transform:translateY(-8px) scale(.96)}
  to{opacity:1;transform:translateY(0) scale(1)}
}

button{
  transition:background .16s ease, box-shadow .16s ease, transform .16s ease, border-color .16s ease, color .16s ease;
}

button:hover:not(:disabled){
  box-shadow:0 0 0 1px #8b5cf655,0 0 18px #8b5cf655;
  transform:translateY(-1px);
}

button:active:not(:disabled){
  transform:translateY(0);
}

.icon-btn:hover:not(:disabled),
.top-link:hover:not(:disabled),
.tool-buttons button:hover:not(:disabled),
.font-dropdown-btn:hover:not(:disabled),
.font-dropdown-menu button:hover:not(:disabled),
.panel-grid button:hover:not(:disabled),
.font-section button:hover:not(:disabled),
.theme-grid button:hover:not(:disabled),
.side-buttons button:hover:not(:disabled),
.side-content button:hover:not(:disabled),
.preview-tabs button:hover:not(:disabled),
.secondary:hover:not(:disabled),
.footer-tabs button:hover:not(:disabled),
.top-menu button:not(.menu-x):hover:not(:disabled){
  background:#303545!important;
}

.gold-btn:hover:not(:disabled){
  background:#fde047!important;
  box-shadow:0 0 0 1px #facc1555,0 0 18px #facc1570!important;
}

.discord-btn:hover:not(:disabled){
  background:#6875ff!important;
  box-shadow:0 0 0 1px #5865f255,0 0 18px #5865f270!important;
}

.menu-x:hover:not(:disabled),
.panel-x:hover:not(:disabled),
.modal-close:hover:not(:disabled){
  background:#303545!important;
  box-shadow:0 0 0 1px #8b5cf655,0 0 14px #8b5cf655;
}

button:disabled:hover{
  transform:none!important;
  box-shadow:none!important;
}

/* v16: safe panel sizing only - keeps v14 working JS/HTML */
#stylesPanel{
  max-height:255px;
  overflow-y:auto;
  overflow-x:hidden;
  scrollbar-width:thin;
}

/* Keep the Editing Tools font dropdown inside the tools module, not floating */
.tools-panel .tool-buttons{
  position:relative;
}

.tools-panel .font-dropdown-wrap{
  display:contents;
}

.tools-panel .font-dropdown-menu{
  position:relative!important;
  top:auto!important;
  left:auto!important;
  right:auto!important;
  transform:none!important;
  grid-column:1 / -1;
  width:100%!important;
  max-width:100%!important;
  max-height:235px;
  overflow-y:auto;
  overflow-x:hidden;
  margin:4px 0 0;
  box-shadow:none;
  z-index:10;
  animation:slideDown .16s ease both;
}

.tools-panel .font-dropdown-menu button{
  min-height:34px;
  padding:6px 8px;
}

.tools-panel .font-dropdown-menu .reset-font-btn{
  min-height:30px;
  width:44%;
}

#desktopSidePanel{
  max-height:calc(100vh - 220px);
  overflow:hidden;
}

#desktopSidePanel .side-content{
  max-height:300px;
  overflow-y:auto;
  overflow-x:hidden;
  scrollbar-width:thin;
}

@media (max-width:640px){
  #stylesPanel,
  .tools-panel .font-dropdown-menu{
    max-height:240px;
  }

  .tools-panel .font-dropdown-menu{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .tools-panel .font-dropdown-menu .reset-font-btn{
    width:70%;
  }
}

/* Discord-style preview context menu */
.preview-context-menu{
  position:fixed;
  left:0;
  top:0;
  width:min(230px,calc(100vw - 24px));
  max-height:calc(100vh - 24px);
  overflow-y:auto;
  z-index:2600;
  padding:10px;
  border:1px solid #4b4d59;
  border-radius:10px;
  background:#3d3f4a;
  box-shadow:0 18px 50px #0009, inset 0 1px 0 #ffffff10;
  color:#f6f6f8;
  font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;
  scrollbar-width:thin;
}

.context-reactions{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:6px;
  margin-bottom:10px;
}

.context-reactions button,
.preview-context-menu>button{
  border:0;
  color:#f6f6f8;
  cursor:pointer;
}

.context-reactions button{
  min-height:40px;
  border-radius:9px;
  background:#454753;
  font-size:21px;
}

.preview-context-menu>button{
  width:100%;
  min-height:32px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:0 8px;
  background:transparent;
  border-radius:5px;
  text-align:left;
  font-size:13px;
  font-weight:400!important;
  line-height:1.2;
}

.preview-context-menu>button span{
  font-weight:400!important;
}

.preview-context-menu>button span:last-child{
  color:#cacbd2;
  font-size:18px;
  line-height:1;
}

.preview-context-menu>button:hover,
.context-reactions button:hover{
  background:#454753!important;
  box-shadow:none!important;
  transform:none!important;
}

.preview-context-menu hr{
  height:1px;
  margin:7px 0;
  border:0;
  background:#4b4d59;
}

.preview-context-menu .danger,
.preview-context-menu .danger span:last-child{
  color:#ffaaa5;
}

.preview-context-menu .id-badge{
  display:inline-grid;
  place-items:center;
  min-width:26px;
  height:22px;
  border-radius:5px;
  background:#c9cbd1;
  color:#3d3f4a!important;
  font-size:12px!important;
  font-weight:950;
}

@media (max-width:640px){
  .preview-context-menu{
    width:min(220px,calc(100vw - 18px));
    padding:9px;
  }

  .context-reactions button{
    min-height:38px;
    font-size:20px;
  }

  .preview-context-menu>button{
    min-height:31px;
    font-size:12px;
  }
}

.editor-toolbar{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:4px;
  margin:0 0 10px;
  padding:6px;
  border:1px solid #343847;
  border-radius:10px;
  background:#0f1117;
}

.editor-toolbar button{
  min-width:32px;
  height:30px;
  border:0;
  border-radius:6px;
  background:transparent;
  color:#f2f3f5;
  cursor:pointer;
  font-size:13px;
  font-weight:700;
  display:inline-grid;
  place-items:center;
  padding:0 8px;
}

.editor-toolbar button:hover{
  background:#252936!important;
  box-shadow:none!important;
  transform:none!important;
}

.toolbar-sep{
  width:1px;
  height:22px;
  margin:0 2px;
  background:#343847;
}

.editor-context-menu{
  position:fixed;
  left:0;
  top:0;
  width:min(360px,calc(100vw - 24px));
  max-height:calc(100vh - 24px);
  overflow-y:auto;
  z-index:2700;
  padding:8px;
  border:1px solid #343847;
  border-radius:10px;
  background:#181b24;
  box-shadow:0 18px 50px #0009;
}

.editor-menu-section{
  display:grid;
  grid-template-columns:repeat(6,minmax(0,1fr));
  gap:5px;
  padding:6px 0;
  border-top:1px solid #343847;
}

.editor-menu-section:first-child{
  border-top:0;
  padding-top:0;
}

.editor-menu-section button{
  min-height:30px;
  border:0;
  border-radius:6px;
  background:#252936;
  color:#f2f3f5;
  cursor:pointer;
  font-size:12px;
  font-weight:700;
  padding:5px 7px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.editor-menu-section button:hover{
  background:#303545!important;
  box-shadow:none!important;
  transform:none!important;
}

.editor-menu-emoji button{
  font-size:18px;
  padding:0;
}

@media (max-width:640px){
  .editor-menu-section{
    grid-template-columns:repeat(4,minmax(0,1fr));
  }

  .editor-toolbar{
    gap:3px;
  }
}

/* Editable preview rework */
.editable-layout{
  display:block;
}

.editable-preview-card{
  max-width:1040px;
  margin:0 auto;
}

.editable-preview-card h2{
  margin-bottom:14px;
}

.editable-preview-card .inline-panel{
  margin-bottom:12px;
}

.editable-preview-card .preview-tabs{
  margin-top:12px;
}

.editable-preview-card .discord-preview{
  width:100%;
  height:auto;
  min-height:360px;
  max-height:none;
  padding:22px;
}

.editable-preview-card .discord-preview.mobile{
  width:390px;
  height:auto;
  min-height:640px;
}

.editable-preview-card .message-area{
  flex:1;
  min-width:0;
  display:flex;
  flex-direction:column;
  align-items:stretch;
}

.editable-preview-card .embed-box{
  max-width:none;
  width:100%;
  padding:16px 18px;
}

.editable-preview-card .discord-preview.mobile .embed-box{
  max-width:270px;
}

.editable-preview-card #editor{
  display:block;
  width:100%;
  min-height:260px;
  margin:0;
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
  color:#f2f3f5;
  outline:none;
  overflow:hidden;
  font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;
  font-size:16px;
  font-weight:400;
  line-height:1.375;
  word-break:break-word;
  overflow-wrap:break-word;
  caret-color:#fff;
}

.editable-preview-card #editor:empty::before{
  content:"Type your Discord embed message...";
  color:#949ba4;
}

.editable-preview-card #editor>div{
  min-height:22px;
}

.editable-preview-card #editor::selection{
  background:#5865f266;
}

.editable-preview-card #editor:focus{
  box-shadow:none;
}

.builder-controls{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
  margin-top:16px;
  align-items:start;
}

.builder-controls .colour-row{
  grid-column:1/-1;
  margin-top:0;
}

.builder-controls .upload-label{
  margin:0;
}

.upload-label input[type=file]{
  position:absolute;
  width:1px;
  height:1px;
  opacity:0;
  pointer-events:none;
}

.upload-preview{
  position:relative;
  display:block;
  width:100%;
  aspect-ratio:5/1;
  min-height:94px;
  margin-top:8px;
  overflow:hidden;
  border:1px dashed #4b5563;
  border-radius:14px;
  background:#0f1117;
  cursor:pointer;
}

.upload-preview.empty{
  aspect-ratio:auto;
  min-height:58px;
}

.upload-preview img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
}

.editable-preview-card .banner{
  height:auto;
  aspect-ratio:auto;
  object-fit:contain;
}

.upload-placeholder{
  display:none;
  position:absolute;
  inset:auto 10px 10px;
  padding:6px 9px;
  border-radius:999px;
  background:#0009;
  color:#fff;
  font-size:12px;
  font-weight:800;
  backdrop-filter:blur(8px);
  text-align:center;
}

.upload-preview.empty .upload-placeholder{
  inset:0;
  display:grid;
  place-items:center;
  border-radius:0;
  background:transparent;
  color:#d4d4d8;
  font-size:14px;
}

.upload-remove{
  position:absolute;
  right:10px;
  top:10px;
  z-index:3;
  width:32px;
  height:32px;
  display:grid;
  place-items:center;
  border:0;
  border-radius:50%;
  background:#000d;
  color:#fff;
  cursor:pointer;
  font-size:20px;
  font-weight:700;
  line-height:1;
  padding:0;
  backdrop-filter:blur(8px);
  box-shadow:0 2px 12px #0009;
}

.upload-remove:hover{
  background:#ef4444!important;
  box-shadow:none!important;
  transform:none!important;
}

.builder-controls .theme-box{
  grid-column:1/-1;
  margin-top:0;
}

.builder-controls .theme-box h3{
  margin:0 0 10px;
}

.editor-toolbar{
  margin-bottom:12px;
}

.editor-toolbar button{
  font-weight:600;
}

@media (max-width:640px){
  .editable-preview-card{
    padding:16px;
  }

  .editable-preview-card .discord-preview{
    padding:16px;
    gap:10px;
  }

  .editable-preview-card .discord-preview.mobile{
    width:100%;
    min-height:560px;
  }

  .editable-preview-card .avatar{
    width:38px;
    height:38px;
    font-size:13px;
  }

  .editable-preview-card #editor{
    min-height:320px;
    font-size:15px;
  }

  .builder-controls{
    grid-template-columns:1fr;
  }
}
