/* BaseHeart Discord Creator. The page shares the Photo Creator's layout and
   controls (photo-creator.css) and the Thumbnail Creator's panels
   (thumbnail-creator.css); these rules add what is its own. */

.discord-creator-page .photo-creator-heading h1 { background: linear-gradient(100deg, #fff 30%, #b9bfff 65%, #5865f2); -webkit-background-clip: text; background-clip: text; color: transparent; }
.dc-input { width: 100%; min-height: 40px; padding: 9px 12px; border: 1px solid rgba(255,255,255,.1); border-radius: 10px; background: rgba(12,11,15,.7); color: #fff; font: inherit; font-size: 13.5px; }
.dc-input::placeholder, #discordCreatorPage textarea::placeholder { color: #75707e; }
.dc-input:focus, #discordCreatorPage textarea:focus { outline: none; border-color: rgba(88,101,242,.75); box-shadow: 0 0 0 3px rgba(88,101,242,.18); }
select.dc-input { cursor: pointer; }
#discordCreatorPage textarea { width: 100%; resize: vertical; padding: 11px 13px; border: 1px solid rgba(255,255,255,.1); border-radius: 11px; background: rgba(12,11,15,.7); color: #fff; font: inherit; font-size: 13.5px; line-height: 1.5; }
.dc-option-row .photo-option { min-height: 32px; }

/* The preview: a Discord-like sidebar next to the roles. */
.dc-stage { align-content: start; }
.dc-preview { display: grid; gap: 14px; width: 100%; }
.dc-preview[hidden] { display: none; }
.dc-head { display: grid; gap: 8px; }
.dc-server-name { font-size: 18px; font-weight: 750; min-height: 44px; }
.dc-summary { margin: 0; color: #b9b3c4; font-size: 13px; line-height: 1.5; }
.dc-counts { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 0; color: #9e98aa; font-size: 12.5px; }
.dc-counts b { color: #fff; margin-right: 4px; }
.dc-verify { justify-self: start; }
.dc-columns { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; align-items: start; }
.dc-box { display: grid; gap: 8px; min-width: 0; padding: 12px; border: 1px solid rgba(255,255,255,.08); border-radius: 14px; background: #1e1f22; }
.dc-box h3 { margin: 0 0 2px; color: #b5bac1; font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.dc-category { display: grid; gap: 6px; padding: 8px; border-radius: 10px; background: #2b2d31; }
.dc-category-row, .dc-role, .dc-message-top { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 6px; align-items: center; }
.dc-category-name { min-height: 34px; background: transparent; border-color: transparent; color: #b5bac1; font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.dc-category-name:hover { border-color: rgba(255,255,255,.12); }
.dc-audience { width: auto; max-width: 190px; min-height: 32px; padding: 5px 8px; font-size: 12px; }
.dc-channel-list { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.dc-channel { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto auto; gap: 4px; align-items: center; padding: 1px 2px 1px 6px; border-radius: 7px; }
.dc-channel:hover { background: rgba(255,255,255,.04); }
.dc-channel-icon { color: #80848e; font-size: 15px; text-align: center; }
.dc-channel-name { min-height: 30px; padding: 4px 8px; background: transparent; border-color: transparent; color: #dbdee1; font-size: 13.5px; }
.dc-channel-name:hover { border-color: rgba(255,255,255,.1); }
.dc-lock, .dc-remove { display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 1px solid transparent; border-radius: 8px; background: transparent; color: #80848e; font-size: 13px; cursor: pointer; }
.dc-remove { font-size: 17px; line-height: 1; }
.dc-lock:hover, .dc-remove:hover { border-color: rgba(255,255,255,.14); color: #fff; }
.dc-lock.active { color: #fff; }
.dc-adds { display: flex; flex-wrap: wrap; gap: 6px; padding-left: 4px; }
.dc-add { display: inline-flex; align-items: center; gap: 2px; min-height: 28px; padding: 3px 10px; border: 1px dashed rgba(255,255,255,.18); border-radius: 8px; background: transparent; color: #b5bac1; font-size: 12px; font-weight: 650; cursor: pointer; }
.dc-add:hover { border-color: rgba(88,101,242,.7); color: #fff; }
.dc-add-wide { justify-content: center; width: 100%; min-height: 34px; }
.dc-role-chips { display: flex; flex-wrap: wrap; gap: 5px; padding-left: 4px; }
.dc-chip { min-height: 26px; padding: 3px 9px; border: 1px solid rgba(255,255,255,.14); border-radius: 999px; background: transparent; color: #b5bac1; font-size: 11.5px; font-weight: 650; cursor: pointer; }
.dc-chip.active { border-color: rgba(88,101,242,.8); background: rgba(88,101,242,.22); color: #fff; }
.dc-role { grid-template-columns: 30px minmax(0, 1fr) minmax(0, 190px) auto; padding: 4px; border-radius: 9px; background: #2b2d31; }
.dc-color { width: 30px; height: 30px; padding: 2px; border: 1px solid rgba(255,255,255,.14); border-radius: 8px; background: transparent; cursor: pointer; }
.dc-role-name { min-height: 32px; padding: 4px 8px; font-weight: 650; }
.dc-preset { min-height: 32px; padding: 4px 6px; font-size: 12px; }
.dc-role-tags { grid-column: 2 / -1; display: flex; flex-wrap: wrap; gap: 5px; }
.dc-tag { padding: 2px 8px; border-radius: 999px; background: rgba(46,204,113,.16); color: #9fe0b8; font-size: 11px; font-weight: 700; }
.dc-messages { background: #232428; }
.dc-message { display: grid; gap: 6px; padding: 10px; border-left: 4px solid #5865f2; border-radius: 8px; background: #2b2d31; }
.dc-message-top { grid-template-columns: minmax(0, 1fr) auto; }
.dc-message-channel { color: #b5bac1; font-size: 12px; font-weight: 700; }
.dc-textarea { min-height: 110px; }
.dc-continue { margin-top: 2px; }

/* Connect and build. */
.dc-panel { scroll-margin-top: 88px; }
.dc-howto { display: grid; gap: 6px; margin: 0; padding-left: 20px; color: #c8c2d3; font-size: 13.5px; line-height: 1.5; }
.dc-connection { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.dc-connected { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; color: #b9b3c4; font-size: 13.5px; }
.dc-connected strong { color: #fff; }
:is(#discordCreatorPage) button.dc-connect-primary, :is(#discordCreatorPage) button.dc-connect-primary:hover { border-color: rgba(88,101,242,.7) !important; background: #5865f2 !important; color: #fff !important; }
.dc-check { display: flex; align-items: flex-start; gap: 9px; color: #c8c2d3; font-size: 13px; line-height: 1.45; cursor: pointer; }
.dc-check input { width: 17px; height: 17px; margin-top: 1px; accent-color: #5865f2; }
.dc-build-button { max-width: 360px; }
.dc-progress { display: grid; gap: 6px; }
.dc-progress[hidden], .dc-done[hidden] { display: none; }
.dc-progress-bar { overflow: hidden; height: 8px; border-radius: 999px; background: rgba(255,255,255,.08); }
.dc-progress-bar span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #5865f2, #eb459e); transition: width .4s ease; }
.dc-progress small { color: #9e98aa; font-size: 12px; }
.dc-done { display: grid; gap: 10px; justify-items: start; padding: 14px; border: 1px solid rgba(46,204,113,.3); border-radius: 12px; background: rgba(46,204,113,.08); }
.dc-done strong { color: #9fe0b8; font-size: 15px; }
.dc-open { width: auto; min-width: 200px; padding: 0 22px; text-decoration: none; }
.dc-warnings { display: grid; gap: 6px; margin: 0; padding-left: 18px; color: #f3d9a4; font-size: 12.5px; line-height: 1.45; }
.dc-warnings:empty { display: none; }

.dc-history-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.dc-draft { display: grid; gap: 6px; padding: 14px; border: 1px solid rgba(255,255,255,.08); border-radius: 14px; background: linear-gradient(160deg, rgba(30,27,36,.86), rgba(20,18,25,.82)); }
.dc-draft strong { overflow: hidden; color: #f2eef6; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.dc-draft small { color: #9e98aa; font-size: 12px; }
.dc-draft-actions { display: flex; gap: 6px; }

:is(#discordCreatorPage) button.dc-lock, :is(#discordCreatorPage) button.dc-remove, :is(#discordCreatorPage) button.dc-add, :is(#discordCreatorPage) button.dc-chip { box-shadow: none !important; }
:is(#discordCreatorPage) button.thumb-toggle.active { border-color: rgba(88,101,242,.75) !important; background: linear-gradient(150deg, rgba(88,101,242,.26), rgba(235,69,158,.14)) !important; color: #fff !important; }

@media (max-width: 760px) {
  .dc-category-row { grid-template-columns: minmax(0, 1fr) auto; }
  .dc-audience { grid-column: 1 / -1; grid-row: 2; max-width: none; width: 100%; }
  .dc-role { grid-template-columns: 30px minmax(0, 1fr) auto; }
  .dc-role > .dc-remove { grid-column: 3; grid-row: 1; }
  .dc-preset { grid-column: 2 / -1; grid-row: 2; }
  .dc-build-button, .dc-open { max-width: none; width: 100%; }
}
