/* bounty — embed builder page. Site look on the left, Discord's look on the right. */

.eb-wrap { position: relative; z-index: 1; width: min(1440px, 100% - 32px); margin: 0 auto; padding: 128px 0 70px; }
.eb-hero { text-align: center; max-width: 760px; margin: 0 auto 30px; }
.eb-hero h1 { font-size: clamp(38px, 5.4vw, 62px); font-weight: 800; letter-spacing: -.035em; line-height: 1.05; }
.eb-hero p { color: var(--muted); font-size: 17px; margin-top: 14px; }

.eb-app { display: grid; grid-template-columns: minmax(0, 1fr) minmax(420px, 560px); gap: 22px; align-items: start; }
.eb-views { display: none; }

/* ------------------------------------------------------------ shared controls */
.eb-icon {
  width: 34px; height: 34px; border-radius: 10px; display: inline-grid; place-items: center; flex: none;
  color: #d6dded; background: rgba(255, 255, 255, .04); border: 1px solid var(--line);
  transition: background .15s, color .15s, border-color .15s;
}
.eb-icon:hover:not(:disabled) { background: rgba(150, 176, 232, .14); color: #fff; border-color: var(--line-2); }
.eb-icon.danger:hover:not(:disabled) { background: rgba(237, 66, 69, .16); color: #ffb3b5; border-color: rgba(237, 66, 69, .35); }
.eb-icon:disabled { opacity: .35; cursor: not-allowed; }
.eb-icon i { font-size: 13px; }
.eb-icon:focus-visible, .eb-btn:focus-visible, .eb-grip:focus-visible, .eb-card-title:focus-visible, .eb-tool:focus-visible,
.eb-swatch:focus-visible, .eb-add:focus-visible, .eb-tabs button:focus-visible, .eb-seg button:focus-visible, .eb-group summary:focus-visible {
  outline: 2px solid var(--pink); outline-offset: 2px;
}

.eb-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 42px; padding: 0 18px; border-radius: 13px;
  font-weight: 700; font-size: 14px; color: #fff; background: var(--btn); border: 1px solid var(--btn-line);
  box-shadow: inset 0 1px 0 rgba(220, 230, 250, .08); white-space: nowrap;
}
.eb-btn i { color: #c4d3f4; }
.eb-btn:hover:not(:disabled) { border-color: rgba(177, 197, 239, .38); }
.eb-btn.primary { background: var(--btn-cta); border-color: rgba(186, 205, 245, .32); width: 100%; height: 46px; }
.eb-btn.primary i { color: #e3eafa; }
.eb-btn:disabled { opacity: .45; cursor: not-allowed; }
.eb-btn.busy { opacity: .7; cursor: progress; }
.eb-btn.busy i { animation: eb-spin .9s linear infinite; }
.eb-btn.busy i::before { content: '\f110'; }
@keyframes eb-spin { to { transform: rotate(360deg); } }
.eb-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

.eb-field { display: grid; gap: 6px; min-width: 0; }
.eb-field.wide { grid-column: 1 / -1; }
.eb-label { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #b9c3d6; }
.eb-count { font-style: normal; font-weight: 600; letter-spacing: 0; text-transform: none; font-family: var(--mono); font-size: 11px; color: var(--dim); }
.eb-count.over { color: #ff8a8d; }
.eb-hint { font-size: 12px; color: var(--dim); }
.eb-note { font-size: 13.5px; color: var(--muted); line-height: 1.6; }
.eb-note code, .eb-saved code { font-family: var(--mono); font-size: 12.5px; color: #eff3fc; background: rgba(255, 255, 255, .08); padding: 1px 6px; border-radius: 6px; }
.eb-note i { color: var(--pink); margin-right: 4px; }

.eb-field input:not([type="checkbox"]):not([type="color"]), .eb-field textarea, .eb-field select, .eb-hex, .eb-saverow input, .eb-template select {
  width: 100%; min-width: 0; font: inherit; font-size: 14px; color: var(--text);
  background: rgba(5, 6, 8, .62); border: 1px solid var(--line-2); border-radius: 12px; outline: 0;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.eb-field input:not([type="checkbox"]):not([type="color"]), .eb-field select, .eb-hex, .eb-saverow input { height: 40px; padding: 0 12px; }
.eb-field textarea { padding: 10px 12px; resize: vertical; line-height: 1.55; min-height: 64px; display: block; }
.eb-field select, .eb-template select { appearance: none; padding-right: 34px; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, #b9c3d6 50%), linear-gradient(135deg, #b9c3d6 50%, transparent 50%);
  background-position: calc(100% - 17px) 50%, calc(100% - 12px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.eb-field select option, .eb-field select optgroup, .eb-template select option { background: #0d1016; color: #f3f6fc; }
.eb-field input:focus, .eb-field textarea:focus, .eb-field select:focus, .eb-hex:focus, .eb-saverow input:focus, .eb-template select:focus {
  border-color: rgba(168, 190, 236, .7); box-shadow: 0 0 0 3px rgba(150, 176, 232, .18); background: rgba(7, 8, 11, .85);
}
.eb-field input::placeholder, .eb-field textarea::placeholder, .eb-hex::placeholder, .eb-saverow input::placeholder { color: #788194; }
.eb-field input.eb-dropping { border-style: dashed; border-color: var(--pink); background: rgba(150, 176, 232, .12); }
.eb-field input[type="datetime-local"] { color-scheme: dark; }

.eb-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.eb-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }

/* switch */
.eb-switch { display: inline-flex; align-items: center; gap: 10px; align-self: end; height: 40px; font-size: 14px; font-weight: 600; color: #e2e7f3; cursor: pointer; user-select: none; }
.eb-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.eb-switch span { width: 38px; height: 22px; border-radius: 99px; background: rgba(255, 255, 255, .12); border: 1px solid var(--line-2); position: relative; transition: background .2s; flex: none; }
.eb-switch span::after { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #dce2ed; transition: transform .2s var(--ease), background .2s; }
.eb-switch input:checked + span { background: var(--pink-hot); border-color: rgba(186, 205, 245, .5); }
.eb-switch input:checked + span::after { transform: translateX(16px); background: #fff; }
.eb-switch input:focus-visible + span { outline: 2px solid var(--pink); outline-offset: 2px; }

/* ------------------------------------------------------------ editor */
.eb-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.eb-template { position: relative; flex: 1; max-width: 340px; }
.eb-template > i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--pink); font-size: 13px; pointer-events: none; }
.eb-template select { height: 42px; padding-left: 38px; font-weight: 600; }
.eb-bar-tools { display: flex; gap: 6px; margin-left: auto; }

.eb-form { display: grid; gap: 14px; }
.eb-card { border-radius: 22px; background: var(--card); border: 1px solid var(--line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.eb-card-head { display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 14px; }
.eb-card-title { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 10px; text-align: left; padding: 4px 2px; border-radius: 8px; }
.eb-card-title b { font-size: 15px; white-space: nowrap; }
.eb-card-title span { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.eb-card-title.static { cursor: default; }
.eb-card-tools { display: flex; gap: 6px; }
.eb-head-icon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(150, 176, 232, .12); color: var(--pink); flex: none; }
.eb-card-body { padding: 0 16px 16px; display: grid; gap: 12px; }
.eb-embed:not(.open) .eb-card-body { display: none; }
.eb-embed .eb-chev { transition: transform .2s var(--ease); }
.eb-embed.open .eb-card-head .eb-chev { transform: rotate(180deg); }
.eb-dot { width: 12px; height: 12px; border-radius: 50%; flex: none; background: transparent; border: 2px solid rgba(255, 255, 255, .22); }
.eb-dot[style*="background"] { border-color: rgba(255, 255, 255, .25); }

.eb-grip {
  width: 30px; height: 34px; border-radius: 9px; display: grid; place-items: center; flex: none; color: #9aa3b6;
  cursor: grab; touch-action: none; transition: background .15s, color .15s;
}
.eb-grip:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.eb-dragging, .eb-dragging * { cursor: grabbing !important; user-select: none !important; }
.dragging { position: relative; z-index: 6; box-shadow: 0 24px 60px rgba(0, 0, 0, .55), 0 0 0 1px rgba(168, 190, 236, .45); opacity: .97; }
.eb-card.dragging { background: rgba(15, 19, 28, .96); }
.eb-list { display: grid; gap: 10px; }
.eb-list:empty { display: none; }
.eb-embeds { gap: 14px; }
.eb-embeds.is-sorting > .eb-embed .eb-card-body { display: none; }

/* sections inside an embed */
.eb-group { border-radius: 16px; background: rgba(255, 255, 255, .025); border: 1px solid var(--line); }
.eb-group summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 11px 14px; font-weight: 700; font-size: 14px; border-radius: 16px; }
.eb-group summary::-webkit-details-marker { display: none; }
.eb-group summary > i:first-child { width: 16px; text-align: center; color: var(--pink); font-size: 13px; }
.eb-group summary .eb-chev { margin-left: auto; font-size: 11px; color: var(--dim); transition: transform .2s var(--ease); }
.eb-group[open] summary .eb-chev { transform: rotate(180deg); }
.eb-group summary:hover { background: rgba(255, 255, 255, .03); }
.eb-group-body { padding: 4px 14px 14px; display: grid; gap: 12px; }
.eb-badge { font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: 99px; background: rgba(150, 176, 232, .16); color: #dbe5fa; }

/* formatting toolbar */
.eb-tools { display: flex; flex-wrap: wrap; gap: 2px; padding: 3px; border-radius: 11px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); width: fit-content; max-width: 100%; }
.eb-tool { width: 30px; height: 28px; border-radius: 8px; display: grid; place-items: center; color: #b9c3d6; font-size: 12px; }
.eb-tool:hover { background: rgba(150, 176, 232, .14); color: #fff; }

/* colour */
.eb-colour { display: grid; gap: 8px; }
.eb-swatches { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.eb-swatch { width: 28px; height: 28px; border-radius: 9px; background: var(--c); border: 2px solid rgba(255, 255, 255, .14); transition: transform .15s var(--spring), border-color .15s; }
.eb-swatch:hover { transform: scale(1.1); }
.eb-swatch.on { border-color: #fff; box-shadow: 0 0 0 3px rgba(150, 176, 232, .4); }
.eb-swatch.none { background: repeating-linear-gradient(135deg, rgba(255,255,255,.12) 0 4px, transparent 4px 8px); }
.eb-picker { position: relative; width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; overflow: hidden; cursor: pointer;
  background: conic-gradient(#ed4245, #fee75c, #57f287, #5865f2, #6592f0, #ed4245); border: 2px solid rgba(255, 255, 255, .14); }
.eb-picker i { font-size: 11px; color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .6); pointer-events: none; }
.eb-picker input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.eb-hex { width: 96px !important; height: 32px !important; font-family: var(--mono) !important; font-size: 13px !important; text-transform: uppercase; }

/* field / button rows */
.eb-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px; align-items: start; padding: 10px; border-radius: 16px; background: rgba(5, 6, 8, .42); border: 1px solid var(--line); }
.eb-item-body { display: grid; gap: 10px; min-width: 0; }
.eb-item-body .eb-grid2 + .eb-field { margin-top: 0; }
.eb-item-tools { display: flex; flex-direction: column; gap: 6px; }
.eb-item.dragging { background: rgba(13, 16, 22, .97); }

.eb-add {
  display: flex; align-items: center; justify-content: center; gap: 10px; height: 52px; width: 100%; border-radius: 18px;
  font-weight: 700; color: #e2e9f8; border: 1.5px dashed rgba(168, 190, 236, .32); background: rgba(150, 176, 232, .05);
  transition: background .15s, border-color .15s, color .15s;
}
.eb-add span { font-size: 12px; font-weight: 600; color: var(--dim); }
.eb-add:hover:not(:disabled) { background: rgba(150, 176, 232, .1); border-color: rgba(168, 190, 236, .6); color: #fff; }
.eb-add:disabled { opacity: .4; cursor: not-allowed; }
.eb-add.small { height: 42px; border-radius: 14px; font-size: 14px; }

/* ------------------------------------------------------------ side: preview + send */
.eb-side { position: sticky; top: 96px; display: grid; gap: 14px; max-height: calc(100vh - 112px); overflow-y: auto; overscroll-behavior: contain; padding-bottom: 4px; scrollbar-width: thin; scrollbar-color: #202734 transparent; }
.eb-panel { border-radius: 22px; background: var(--card); border: 1px solid var(--line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); overflow: hidden; }
.eb-panel-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.eb-panel-head b { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.eb-panel-head b i { color: #8f9bff; }
.eb-meter { margin-left: auto; font-family: var(--mono); font-size: 12px; color: var(--dim); }
.eb-meter.over { color: #ff8a8d; }
.eb-seg { display: inline-flex; padding: 3px; border-radius: 11px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); }
.eb-seg button { width: 32px; height: 26px; border-radius: 8px; color: #b9c3d6; font-size: 12px; }
.eb-seg button.on { background: rgba(150, 176, 232, .2); color: #fff; }

.eb-issues { list-style: none; display: grid; gap: 6px; padding: 0 14px; }
.eb-issues:not(:empty) { padding: 12px 14px 14px; border-top: 1px solid var(--line); }
.eb-issues li { display: flex; gap: 9px; font-size: 13px; line-height: 1.5; color: #e6eaf4; }
.eb-issues li i { margin-top: 3px; }
.eb-issues li.error i { color: #ff7a7e; }
.eb-issues li.warn i { color: #fcd47c; }

.eb-tabs { display: flex; gap: 4px; padding: 8px; border-bottom: 1px solid var(--line); }
.eb-tabs button { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; border-radius: 11px; font-weight: 700; font-size: 14px; color: #b9c3d6; }
.eb-tabs button img { border-radius: 50%; }
.eb-tabs button:hover { color: #fff; background: rgba(255, 255, 255, .04); }
.eb-tabs button[aria-selected="true"] { color: #fff; background: rgba(150, 176, 232, .16); box-shadow: inset 0 0 0 1px rgba(168, 190, 236, .22); }
.eb-tab { padding: 16px; display: grid; gap: 14px; }
.eb-tab[hidden] { display: none; }
.eb-secret { display: flex; gap: 8px; }
.eb-secret input { flex: 1; }
.eb-secret .eb-icon { height: 40px; width: 40px; }
.eb-json { margin: 0; max-height: 280px; overflow: auto; padding: 14px; border-radius: 14px; background: rgba(3, 4, 5, .7); border: 1px solid var(--line);
  font-family: var(--mono); font-size: 12px; line-height: 1.55; color: #e6ecf8; white-space: pre; tab-size: 2; }
.eb-who { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.eb-who b { color: #fff; }
.eb-who img, .eb-who > i { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .06); }
.eb-split { display: flex; align-items: center; gap: 12px; font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--dim); }
.eb-split::before, .eb-split::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.eb-saverow { display: flex; gap: 8px; }
.eb-saverow input { flex: 1; }
.eb-saved { display: grid; gap: 6px; }
.eb-saved:empty { display: none; }
.eb-saved-item { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 12px; border-radius: 13px; background: rgba(5, 6, 8, .42); border: 1px solid var(--line); font-size: 14px; min-width: 0; }
.eb-saved-item b { white-space: nowrap; }
.eb-saved-item span:not(.eb-dot) { flex: 1; min-width: 0; color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* drop layer and toast */
.eb-drop { position: fixed; inset: 0; z-index: 90; display: none; place-items: center; background: rgba(6, 7, 9, .72); backdrop-filter: blur(6px); pointer-events: none; }
.eb-drop.on { display: grid; }
.eb-drop div { display: flex; align-items: center; gap: 14px; padding: 26px 34px; border-radius: 24px; border: 2px dashed rgba(168, 190, 236, .7); background: rgba(13, 17, 26, .9); font-size: 20px; font-weight: 700; }
.eb-drop i { color: var(--pink); }
.eb-toast {
  position: fixed; left: 50%; bottom: 22px; z-index: 95; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  display: flex; align-items: center; gap: 12px; max-width: min(560px, calc(100% - 32px)); padding: 12px 14px 12px 16px; border-radius: 16px;
  background: rgba(12, 15, 22, .96); border: 1px solid var(--line-2); box-shadow: 0 18px 50px rgba(0, 0, 0, .5); font-size: 14px; line-height: 1.45;
  transition: opacity .2s, transform .25s var(--ease);
}
.eb-toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.eb-toast > i { font-size: 16px; }
.eb-toast.ok > i { color: #6ee7a8; }
.eb-toast.info > i { color: #cdd9f4; }
.eb-toast.error > i { color: #ff7a7e; }
.eb-toast button { margin-left: 6px; padding: 6px 12px; border-radius: 10px; font-weight: 700; font-size: 13px; background: rgba(150, 176, 232, .2); color: #fff; }

/* ============================================================ Discord preview */
.dc {
  --dc-bg: #313338; --dc-text: #dbdee1; --dc-strong: #f2f3f5; --dc-muted: #949ba4; --dc-embed: #2b2d31; --dc-border: #1e1f22;
  --dc-link: #00a8fc; --dc-code: #1e1f22; --dc-code-line: #232428; --dc-quote: #4e5058; --dc-mention: rgba(88, 101, 242, .3); --dc-mention-text: #c9cdfb;
  --dc-button: #4e5058; --dc-button-hover: #6d6f78; --dc-button-text: #fff; --dc-spoiler: #1e1f22;
  background: var(--dc-bg); color: var(--dc-text); padding: 16px 16px 18px 0; min-height: 140px;
  font-family: 'gg sans', 'Noto Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 16px; line-height: 1.375;
  overflow-wrap: anywhere;
}
.dc[data-theme="light"] {
  --dc-bg: #ffffff; --dc-text: #313338; --dc-strong: #060607; --dc-muted: #5c5e66; --dc-embed: #f2f3f5; --dc-border: #e3e5e8;
  --dc-link: #006ce7; --dc-code: #ebedef; --dc-code-line: #e3e5e8; --dc-quote: #c4c9ce; --dc-mention: rgba(88, 101, 242, .15); --dc-mention-text: #505cdc;
  --dc-button: #6d6f78; --dc-button-hover: #4e5058; --dc-spoiler: #e3e5e8;
}
.dc-msg { display: grid; grid-template-columns: 72px minmax(0, 1fr); }
.dc-avatar { width: 40px; height: 40px; border-radius: 50%; margin: 2px 0 0 16px; object-fit: cover; background: #5865f2; }
.dc-main { min-width: 0; }
.dc-head { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; line-height: 1.375; }
.dc-name { font-weight: 500; color: var(--dc-strong); }
.dc-tag { display: inline-flex; align-items: center; gap: 3px; height: 15px; padding: 0 4.5px; border-radius: 3px; background: #5865f2; color: #fff; font-size: 10px; font-weight: 600; line-height: 15px; letter-spacing: .02em; }
.dc-tag i { font-size: 8px; }
.dc-time { font-size: 12px; color: var(--dc-muted); margin-left: 2px; }
.dc-content { margin-top: 2px; white-space: normal; }
.dc-empty { color: var(--dc-muted); font-style: italic; }
.dc-embeds { display: grid; gap: 4px; margin-top: 6px; }
.dc-embed { max-width: 520px; border-radius: 4px; border-left: 4px solid var(--dc-border); background: var(--dc-embed); justify-self: start; width: fit-content; min-width: 0; }
.dc-embed.ghost { padding: 14px 16px; color: var(--dc-muted); font-size: 14px; font-style: italic; border: 1px dashed var(--dc-quote); border-left-width: 4px; border-left-style: solid; }
.dc-embed.ghost i { margin-right: 8px; }
.dc-grid { display: grid; grid-template-columns: minmax(0, auto); padding: 8px 16px 16px 12px; max-width: 516px; box-sizing: border-box; }
.dc-grid.has-thumb { grid-template-columns: minmax(0, 1fr) auto; }
.dc-grid > * { grid-column: 1 / 2; min-width: 0; }
.dc-author { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 14px; font-weight: 600; color: var(--dc-strong); }
.dc-author a { color: var(--dc-strong); }
.dc-author a:hover { text-decoration: underline; }
.dc-author-icon { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }
.dc-title { margin-top: 8px; font-size: 16px; font-weight: 600; color: var(--dc-strong); }
.dc-title a { color: var(--dc-link); }
.dc-title a:hover { text-decoration: underline; }
.dc-desc { margin-top: 8px; font-size: 14px; line-height: 1.125rem; white-space: normal; }
.dc-fields { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.dc-field { min-width: 0; font-size: 14px; line-height: 1.125rem; }
.dc-field-name { font-weight: 600; color: var(--dc-strong); margin-bottom: 2px; }
.dc-image { grid-column: 1 / -1 !important; margin-top: 16px; }
.dc-image img { display: block; max-width: 100%; max-height: 300px; border-radius: 4px; object-fit: contain; }
.dc-thumb { grid-column: 2 / 3 !important; grid-row: 1 / 8; justify-self: end; margin: 8px 0 0 16px; max-width: 80px; max-height: 80px; border-radius: 4px; object-fit: contain; }
.dc-footer { grid-column: 1 / -1 !important; display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 12px; font-weight: 500; color: var(--dc-text); }
.dc-footer-icon { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; }
.dc-dot { margin: 0 4px; }
.dc img[src] { color: transparent; }
.dc-buttons { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.dc-button { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 2px 16px; border-radius: 8px; background: var(--dc-button); color: var(--dc-button-text); font-size: 14px; font-weight: 500; transition: background .17s; }
.dc-button:hover { background: var(--dc-button-hover); }
.dc-button i { font-size: 12px; opacity: .9; }

/* markdown */
.dc strong { font-weight: 700; color: inherit; }
.dc-link { color: var(--dc-link); }
.dc-link:hover { text-decoration: underline; }
.dc-code { font-family: Consolas, 'Andale Mono WT', 'Andale Mono', 'Lucida Console', monospace; font-size: 85%; padding: .1em .25em; border-radius: 4px; background: var(--dc-code); border: 1px solid var(--dc-code-line); }
.dc-codeblock { margin: 6px 0; padding: 7px 8px; border-radius: 4px; background: var(--dc-code); border: 1px solid var(--dc-code-line); white-space: pre-wrap; font-family: Consolas, 'Andale Mono WT', 'Andale Mono', 'Lucida Console', monospace; font-size: 14px; line-height: 1.125rem; max-width: 90%; }
.dc-quote { display: block; margin: 2px 0; padding: 0 8px 0 12px; border-left: 4px solid var(--dc-quote); border-radius: 4px; }
.dc-list { margin: 4px 0 4px 16px; padding-left: 4px; }
.dc-list li { margin-bottom: 2px; }
.dc-h1, .dc-h2, .dc-h3 { font-weight: 700; color: var(--dc-strong); line-height: 1.375; margin: 8px 0 4px; }
.dc-h1 { font-size: 24px; } .dc-h2 { font-size: 20px; } .dc-h3 { font-size: 16px; }
.dc-desc .dc-h1, .dc-field-value .dc-h1 { font-size: 20px; }
.dc-sub { font-size: 12px; color: var(--dc-muted); line-height: 1.33; }
.dc-mention { padding: 0 2px; border-radius: 3px; font-weight: 500; background: var(--dc-mention); color: var(--dc-mention-text); }
.dc-mention i { font-size: 11px; margin-right: 1px; }
.dc-stamp { padding: 0 2px; border-radius: 3px; background: rgba(78, 80, 88, .3); }
.dc-emoji { width: 1.375em; height: 1.375em; vertical-align: bottom; object-fit: contain; }
.dc-spoiler { background: var(--dc-spoiler); color: transparent; border-radius: 3px; cursor: pointer; transition: background .1s; }
.dc-spoiler * { opacity: 0; }
.dc-spoiler.shown { background: rgba(78, 80, 88, .35); color: inherit; cursor: auto; }
.dc-spoiler.shown * { opacity: 1; }

/* ------------------------------------------------------------ narrow screens */
@media (max-width: 1100px) {
  .eb-app { grid-template-columns: minmax(0, 1fr); }
  .eb-views { display: flex; gap: 4px; padding: 4px; margin: 0 auto 16px; width: fit-content; border-radius: 14px; background: rgba(8, 11, 18, .8); border: 1px solid var(--line); position: sticky; top: 84px; z-index: 20; backdrop-filter: blur(14px); }
  .eb-views button { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 20px; border-radius: 11px; font-weight: 700; color: #b9c3d6; }
  .eb-views button[aria-selected="true"] { background: rgba(150, 176, 232, .18); color: #fff; }
  .eb-app[data-view="edit"] .eb-side { display: none; }
  .eb-app[data-view="preview"] .eb-editor { display: none; }
  .eb-side { position: static; max-height: none; overflow: visible; }
}
@media (max-width: 640px) {
  .eb-wrap { padding-top: 104px; }
  .eb-hero { margin-bottom: 18px; }
  .eb-hero p { font-size: 15px; }
  .eb-grid2, .eb-grid3 { grid-template-columns: minmax(0, 1fr); }
  .eb-card-head { padding: 10px; gap: 6px; }
  .eb-card-title span { display: none; }
  .eb-card-body { padding: 0 10px 12px; }
  .eb-item { grid-template-columns: auto minmax(0, 1fr); }
  .eb-item-tools { grid-column: 2; flex-direction: row; justify-content: flex-end; }
  .eb-bar { flex-wrap: wrap; }
  .eb-template { max-width: none; }
  .dc { font-size: 15px; padding-right: 10px; }
  .dc-msg { grid-template-columns: 56px minmax(0, 1fr); }
  .dc-avatar { margin-left: 10px; width: 36px; height: 36px; }
  .eb-tabs button { font-size: 13px; gap: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  .eb-toast { transition: none; }
}
