/* The creator dashboard, in the home page's look (v3): near-black, Onest, lines you
   can barely see, white pill buttons. Loaded after dashboard.css and only refines it;
   every id and class the dashboard scripts use stays as it is.

   Accents (hover outlines, the avatar ring) follow the creator's own theme colour,
   which profile-themes.js publishes on <html> as --theme-accent; without a theme it
   is Melodreams blue. No coloured glow in the background. */

:root {
  --v3-glow: var(--theme-accent, #4f8cff);
  --v3-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- the room ---------- */
:root:not([data-theme="light"]) body {
  background: #05060b;
}
/* ---------- top bar ---------- */
.topbar { position: relative; z-index: 20; }
:root:not([data-theme="light"]) .topbar {
  background: linear-gradient(180deg, rgba(5, 6, 11, 0.6), rgba(5, 6, 11, 0));
}
.topbar .logo-text { font-weight: 800; letter-spacing: -0.045em; }

/* ---------- headlines: bold, with a light second half ---------- */
.section:not(#profile-builder) > .section-header {
  display: block;
  margin: 8px 0 22px;
}
.section:not(#profile-builder) > .section-header h2 {
  margin: 0;
  font-size: clamp(30px, 3.4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
}
.section:not(#profile-builder) > .section-header p {
  margin: 10px 0 0;
  font-size: 15px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.55);
}
:root[data-theme="light"] .section:not(#profile-builder) > .section-header p { color: rgba(10, 12, 18, 0.55); }

/* ---------- cards: glass with a light top edge ---------- */
:root:not([data-theme="light"]) .section .card:not(#profile-preview-box) {
  border-radius: 22px;
  border-color: rgba(255, 255, 255, 0.075);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.012));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 30px 60px -40px rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
}

/* account: section titles quiet, rows as soft pills that lean in on hover */
.account-menu h3 {
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.38);
}
:root[data-theme="light"] .account-menu h3 { color: rgba(10, 12, 18, 0.42); }
.account-menu .menu-option {
  border-radius: 14px;
  transition: background-color 0.2s var(--v3-ease), transform 0.25s var(--v3-ease), box-shadow 0.25s var(--v3-ease);
}
.account-menu .menu-option:hover {
  transform: translateX(3px);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--v3-glow) 35%, transparent);
}
.account-menu .menu-option i { transition: color 0.2s ease, transform 0.25s var(--v3-ease); }
.account-menu .menu-option:hover i { color: var(--v3-glow); transform: translateX(2px); }


/* ---------- the live link: a calm pill ---------- */
.profile-link-wrapper {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.09);
  padding: 4px;
}
:root[data-theme="light"] .profile-link-wrapper { background: #fff; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08); }
.profile-link-input {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  font-family: 'Onest', sans-serif;
  font-weight: 500;
}
.vis-trigger { border-radius: 999px; }
.vis-trigger[data-state="public"] .vis-trigger__dot {
  box-shadow: 0 0 0 0 rgba(48, 209, 88, 0.6);
  animation: v3Live 2.4s ease-out infinite;
}
@keyframes v3Live {
  0%   { box-shadow: 0 0 0 0 rgba(48, 209, 88, 0.55); }
  70%  { box-shadow: 0 0 0 7px rgba(48, 209, 88, 0); }
  100% { box-shadow: 0 0 0 0 rgba(48, 209, 88, 0); }
}
.profile-link-btn { border-radius: 999px; }
/* the three round buttons: clear at rest, a soft fill only on the one under the pointer */
.profile-link-wrapper .profile-link-btn,
.profile-link-wrapper .vis-trigger {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}
/* copy and open: no fill on hover, the icon just brightens a little */
.profile-link-wrapper .profile-link-btn { color: rgba(255, 255, 255, 0.5); transition: color 0.2s ease; }
.profile-link-wrapper .profile-link-btn:hover,
.profile-link-wrapper .profile-link-btn:focus-visible {
  background: transparent;
  border-color: transparent;
  color: rgba(255, 255, 255, 0.92);
}
:root[data-theme="light"] .profile-link-wrapper .profile-link-btn { color: rgba(10, 12, 18, 0.45); }
:root[data-theme="light"] .profile-link-wrapper .profile-link-btn:hover,
:root[data-theme="light"] .profile-link-wrapper .profile-link-btn:focus-visible { color: rgba(10, 12, 18, 0.9); }
/* the live dot sits a little further in from the edge */
.profile-link-wrapper .vis-trigger { margin-left: 8px; }
/* and the open button sits a little in from the right edge, matching the dot */
.profile-link-wrapper .profile-link-btn.open-btn { margin-right: 8px; }
/* the address sits closer to the dot */
.profile-link-wrapper .profile-link-input { margin-left: -2px; padding-left: 0; }
.profile-link-wrapper .vis-trigger:hover,
.profile-link-wrapper .vis-trigger:focus-visible {
  background: color-mix(in srgb, var(--vis-c) 16%, transparent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--vis-c) 18%, transparent);
}
@media (prefers-reduced-motion: reduce) { .vis-trigger[data-state="public"] .vis-trigger__dot { animation: none; } }

/* ---------- buttons: pills, the main one white ---------- */
.btn-action, .btn2 { border-radius: 999px; }
:root:not([data-theme="light"]) .btn-action.btn-save:not(:disabled) {
  background: #fff;
  color: #05060b;
  border-color: transparent;
}

/* ---------- inputs ---------- */
.form-input, .profile-link-input { border-radius: 14px; }

/* keep the page content above decorative layers */
.section, .topbar, main, .app, .content { position: relative; z-index: 1; }

/* ======================================================================
   Studio (#analytics), in the home page's look: a big title with a light
   second half, numbers you read from across the room, pill controls, a chart
   whose bars fade from white into blue. No background glow.
   ====================================================================== */

#analytics .analytics-title {
  justify-content: flex-start !important;
  text-align: left !important;
  display: flex !important;
  align-items: baseline !important;
  flex-wrap: wrap !important;
  gap: 0 14px !important;
  margin: 6px 0 28px !important;
  padding: 0 !important;
  border: 0 !important;
}
#analytics .analytics-title h1 {
  margin: 0 !important;
  font-size: clamp(40px, 5vw, 64px) !important;
  font-weight: 800 !important;
  letter-spacing: -0.06em !important;
  line-height: 0.95 !important;
}
#analytics .studio-period {
  position: static !important;
  margin: 0 !important;
  text-transform: none !important;
  font-size: clamp(40px, 5vw, 64px) !important;
  font-weight: 300 !important;
  letter-spacing: -0.05em !important;
  line-height: 0.95 !important;
  color: rgba(255, 255, 255, 0.38) !important;
}
:root[data-theme="light"] #analytics .studio-period { color: rgba(10, 12, 18, 0.35) !important; }

/* the three numbers: no boxes, a hairline above, big and tight */
#analytics .stats-grid { gap: 0 !important; margin-bottom: 18px !important; }
#analytics .analytics-box .stat-card {
  background: transparent !important;
  border: 0 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.09) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 18px 22px 6px 0 !important;
}
:root[data-theme="light"] #analytics .analytics-box .stat-card { border-top-color: rgba(10, 12, 18, 0.1) !important; }
#analytics .analytics-box .stat-card + .stat-card { padding-left: 22px !important; border-left: 1px solid rgba(255, 255, 255, 0.06) !important; }
:root[data-theme="light"] #analytics .analytics-box .stat-card + .stat-card { border-left-color: rgba(10, 12, 18, 0.07) !important; }
#analytics .stat-info { display: flex !important; flex-direction: column !important; align-items: flex-start !important; }
#analytics .analytics-box .stat-card .stat-label {
  order: -1 !important;
  margin: 0 0 8px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  color: rgba(255, 255, 255, 0.55) !important;
}
:root[data-theme="light"] #analytics .analytics-box .stat-card .stat-label { color: rgba(10, 12, 18, 0.55) !important; }
#analytics .analytics-box .stat-card .stat-value {
  font-size: clamp(38px, 4.4vw, 56px) !important;
  font-weight: 800 !important;
  letter-spacing: -0.055em !important;
  line-height: 1 !important;
  font-variant-numeric: tabular-nums !important;
}
#analytics .stat-delta {
  margin-top: 12px !important;
  padding: 3px 10px !important;
  border-radius: 999px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  background: rgba(255, 255, 255, 0.06) !important;
  color: rgba(255, 255, 255, 0.6) !important;
}
#analytics .stat-delta.is-up { background: rgba(48, 209, 88, 0.12) !important; color: #4ade80 !important; }
#analytics .stat-delta.is-down { background: rgba(255, 99, 99, 0.12) !important; color: #ff8a8a !important; }

/* panels: the same glass as the other cards */
#analytics .analytics-panel {
  border-radius: 22px !important;
  border: 1px solid rgba(255, 255, 255, 0.075) !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.012)) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
  padding: 22px 24px !important;
}
:root[data-theme="light"] #analytics .analytics-panel { background: #fff !important; border-color: rgba(10, 12, 18, 0.08) !important; box-shadow: none !important; }
#analytics .studio-cardtitle { font-size: 17px !important; font-weight: 700 !important; letter-spacing: -0.02em !important; }

/* Month / Year and the tabs: pills, the chosen one white */
#analytics .std-range,
#analytics .std-tabs {
  display: inline-flex !important;
  flex-wrap: wrap !important;
  gap: 2px !important;
  padding: 4px !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.045) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07) !important;
}
:root[data-theme="light"] #analytics .std-range,
:root[data-theme="light"] #analytics .std-tabs { background: rgba(10, 12, 18, 0.04) !important; box-shadow: inset 0 0 0 1px rgba(10, 12, 18, 0.06) !important; }
#analytics .std-range__btn,
#analytics .std-tab {
  border: 0 !important;
  border-radius: 999px !important;
  padding: 7px 14px !important;
  background: transparent !important;
  color: rgba(255, 255, 255, 0.55) !important;
  font-weight: 600 !important;
  transition: background-color 0.25s var(--v3-ease), color 0.2s ease !important;
}
#analytics .std-range__btn:hover,
#analytics .std-tab:hover { color: #fff !important; }
#analytics .std-range__btn.is-active,
#analytics .std-tab.is-active { background: #fff !important; color: #05060b !important; }
:root[data-theme="light"] #analytics .std-range__btn,
:root[data-theme="light"] #analytics .std-tab { color: rgba(10, 12, 18, 0.55) !important; }
:root[data-theme="light"] #analytics .std-range__btn.is-active,
:root[data-theme="light"] #analytics .std-tab.is-active { background: #05060b !important; color: #fff !important; }

/* the chart: rounded bars that fade from white into blue !important; the one you point at
   stays bright, the others step back */
#analytics .ap-trend__bar {
  border-radius: 2px 2px 0 0 !important;
  background: #ffffff !important;
  opacity: 0.92 !important;
  transition: opacity 0.2s ease !important;
}
:root[data-theme="light"] #analytics .ap-trend__bar { background: #05060b !important; }
#analytics .ap-trend__bar.is-zero,
#analytics .ap-trend__bar.is-gap { background: rgba(255, 255, 255, 0.06) !important; }
#analytics .ap-trend:hover .ap-trend__bar { opacity: 0.6 !important; }
#analytics .ap-trend:hover .ap-trend__bar:hover { opacity: 1 !important; }
#analytics .ap-trend__axis,
#analytics .ap-trend__max { color: var(--ed-muted) !important; font-variant-numeric: tabular-nums !important; }

/* top links: quiet rank, bold count */
#analytics #top-links-list li { border-color: rgba(255, 255, 255, 0.06) !important; transition: background-color 0.2s ease !important; border-radius: 12px !important; }
#analytics #top-links-list li:hover { background: rgba(255, 255, 255, 0.035) !important; }
#analytics .tl-rank { color: var(--ed-muted) !important; font-variant-numeric: tabular-nums !important; }
#analytics .tl-count { font-weight: 800 !important; letter-spacing: -0.02em !important; font-variant-numeric: tabular-nums !important; }

/* bars in the other tabs, and the busiest hour */
#analytics .ap-row__track { border-radius: 999px !important; background: rgba(255, 255, 255, 0.06) !important; }
#analytics .ap-row__fill { border-radius: 999px !important; background: rgba(255, 255, 255, 0.86) !important; }
:root[data-theme="light"] #analytics .ap-row__fill { background: #05060b !important; }
#analytics .hh-cell.is-peak { background: #fff !important; }

#analytics .studio-foot { border-top-color: rgba(255, 255, 255, 0.06) !important; }
#analytics .studio-link { color: rgba(255, 255, 255, 0.7) !important; text-decoration: none !important; border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important; }
#analytics .studio-link:hover { color: #fff !important; border-bottom-color: #fff !important; }

@media (max-width: 720px) {
  #analytics .analytics-box .stat-card + .stat-card { border-left: 0 !important; padding-left: 0 !important; }
}

/* the ⋮ menu at the end of the tab bar (Export CSV / JSON) */
#analytics .std-bar { display: flex !important; align-items: center !important; gap: 8px !important; }
#analytics .std-bar { margin: -4px 0 14px !important; }
#analytics .std-bar .std-tabs { flex: 1 1 auto !important; min-width: 0 !important; margin: 0 !important; }
#analytics .std-more { position: relative !important; flex: none !important; }
#analytics .std-more[hidden] { display: none !important; }
#analytics .std-more__btn {
  display: grid !important;
  place-items: center !important;
  width: 38px !important;
  height: 38px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: transparent !important;
  color: rgba(255, 255, 255, 0.5) !important;
  cursor: pointer !important;
  transition: color 0.2s ease, background-color 0.2s ease !important;
}
#analytics .std-more__btn:hover,
#analytics .std-more__btn.is-open { color: #fff !important; background: rgba(255, 255, 255, 0.06) !important; }
#analytics .std-more__btn:focus-visible { outline: 2px solid #4f8cff !important; outline-offset: 2px !important; }
:root[data-theme="light"] #analytics .std-more__btn { color: rgba(10, 12, 18, 0.5) !important; }
:root[data-theme="light"] #analytics .std-more__btn:hover,
:root[data-theme="light"] #analytics .std-more__btn.is-open { color: #05060b !important; background: rgba(10, 12, 18, 0.05) !important; }
#analytics .std-more__menu {
  position: absolute !important;
  top: calc(100% + 8px) !important;
  right: 0 !important;
  z-index: 30 !important;
  min-width: 180px !important;
  padding: 6px !important;
  border-radius: 16px !important;
  background: #0d0f16 !important;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.09), 0 24px 50px -16px rgba(0, 0, 0, 0.8) !important;
  animation: stdMenuIn 0.18s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
#analytics .std-more__menu[hidden] { display: none !important; }
:root[data-theme="light"] #analytics .std-more__menu { background: #fff !important; box-shadow: 0 0 0 1px rgba(10, 12, 18, 0.08), 0 20px 40px -16px rgba(10, 12, 18, 0.25) !important; }
@keyframes stdMenuIn { from { opacity: 0; transform: translateY(-4px) scale(0.98); } to { opacity: 1; transform: none; } }
#analytics .std-more__item {
  display: block !important;
  width: 100% !important;
  padding: 10px 12px !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: transparent !important;
  color: rgba(255, 255, 255, 0.85) !important;
  font: inherit !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  text-align: left !important;
  cursor: pointer !important;
}
#analytics .std-more__item:hover,
#analytics .std-more__item:focus-visible { background: rgba(255, 255, 255, 0.07) !important; color: #fff !important; outline: none !important; }
#analytics .std-more__item:disabled { opacity: 0.5 !important; cursor: default !important; }
:root[data-theme="light"] #analytics .std-more__item { color: rgba(10, 12, 18, 0.85) !important; }
:root[data-theme="light"] #analytics .std-more__item:hover,
:root[data-theme="light"] #analytics .std-more__item:focus-visible { background: rgba(10, 12, 18, 0.05) !important; color: #05060b !important; }
@media (prefers-reduced-motion: reduce) { #analytics .std-more__menu { animation: none !important; } }

/* breakdown lists (Sources, Countries, Devices, Tags, Usernames, Bots): compact rows
   with no boxes, so a long list fits without scrolling; two columns on wide screens */
#analytics .std-pane .ap-rows {
  display: block !important;
  column-gap: 40px !important;
  margin-top: 6px !important;
}
/* two columns that fill top to bottom, so the ranking reads down the left first */
@media (min-width: 900px) {
  #analytics .std-pane .ap-rows { column-count: 2 !important; }
}
#analytics .std-pane .ap-row {
  break-inside: avoid !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 5px 12px !important;
  margin: 0 !important;
  padding: 9px 4px !important;
  min-height: 0 !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
:root[data-theme="light"] #analytics .std-pane .ap-row { border-bottom-color: rgba(10, 12, 18, 0.06) !important; }
#analytics .std-pane .ap-row__label { font-size: 14px !important; line-height: 1.3 !important; }
#analytics .std-pane .ap-row__value { font-size: 14px !important; line-height: 1.3 !important; }
#analytics .std-pane .ap-row__track { height: 3px !important; margin: 0 !important; }

/* under Studio: a short line and a link to how counting works, like Clanform */
#analytics .studio-foot,
#analytics .analytics-box .studio-foot { display: flex !important; justify-content: center !important; text-align: center !important; border-top: 0 !important; }
#analytics .studio-privacy {
  display: inline-flex !important;
  width: auto !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 8px !important;
  margin: 0 !important;
  font-size: 13px !important;
  text-align: center !important;
  color: rgba(255, 255, 255, 0.45) !important;
}
#analytics .studio-privacy i { font-size: 12px !important; opacity: 0.8 !important; }
#analytics .studio-privacy a {
  color: rgba(255, 255, 255, 0.75) !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
}
#analytics .studio-privacy a:hover { color: #fff !important; border-bottom-color: #fff !important; }
:root[data-theme="light"] #analytics .studio-privacy { color: rgba(10, 12, 18, 0.5) !important; }
:root[data-theme="light"] #analytics .studio-privacy a { color: rgba(10, 12, 18, 0.8) !important; border-bottom-color: rgba(10, 12, 18, 0.2) !important; }

/* ======================================================================
   Simpler editors (link, social): the one thing you came for first, a quiet
   Visible switch, everything else in "More options". Classes from
   profile-edit.js (ed-simple, ed-field, ed-switch, ed-more, ed-delete).
   ====================================================================== */

.modal.ed-simple { max-width: min(560px, 96vw) !important; }
.ed-simple .modal-body { margin-top: 6px !important; }
.ed-simple__body { display: flex; flex-direction: column; gap: 6px; }

/* the field: icon of the recognised platform, the input, its name */
.ed-field {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px 6px 6px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.09);
  transition: box-shadow 0.2s ease, background-color 0.2s ease;
}
.ed-field:focus-within { background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28); }
:root[data-theme="light"] .ed-field { background: #fff; box-shadow: inset 0 0 0 1px rgba(10, 12, 18, 0.1); }
.ed-field__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 17px;
}
:root[data-theme="light"] .ed-field__icon { background: rgba(10, 12, 18, 0.05); }
.ed-field__input {
  flex: 1;
  min-width: 0;
  padding: 10px 2px;
  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: inherit;
  font: inherit;
  font-size: 15px;
}
.ed-field__tag { flex: none; font-size: 12.5px; font-weight: 600; color: rgba(255, 255, 255, 0.5); }
.ed-field__tag:empty { display: none; }
:root[data-theme="light"] .ed-field__tag { color: rgba(10, 12, 18, 0.5); }

/* a quiet switch row */
.ed-switch {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 4px;
  cursor: pointer;
}
.ed-switch__icon { width: 18px; text-align: center; color: rgba(255, 255, 255, 0.45); }
:root[data-theme="light"] .ed-switch__icon { color: rgba(10, 12, 18, 0.45); }
.ed-switch__label { flex: 1; font-size: 14.5px; font-weight: 500; }

/* "More options" */
.ed-more { border-top: 1px solid rgba(255, 255, 255, 0.07); margin-top: 4px; }
:root[data-theme="light"] .ed-more { border-top-color: rgba(10, 12, 18, 0.08); }
.ed-more > summary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 4px 12px;
  list-style: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  user-select: none;
}
.ed-more > summary::-webkit-details-marker { display: none; }
.ed-more > summary::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-left: 2px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.2s ease;
}
.ed-more[open] > summary::after { transform: translateY(1px) rotate(-135deg); }
.ed-more > summary:hover { color: #fff; }
:root[data-theme="light"] .ed-more > summary { color: rgba(10, 12, 18, 0.6); }
:root[data-theme="light"] .ed-more > summary:hover { color: #05060b; }
.ed-more__body { display: flex; flex-direction: column; gap: 12px; padding: 4px 0 6px; }
.ed-more__body > * { margin: 0 !important; }

/* Visible as a quiet row, not a big card */
.ed-simple .vis-panel--quiet {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 10px 4px !important;
  margin: 2px 0 !important;
}
.ed-simple .vis-panel--quiet .vis-panel__sub { display: none !important; }
.ed-simple .vis-panel--quiet .vis-panel__icon { background: transparent !important; color: rgba(255, 255, 255, 0.45) !important; width: 18px !important; height: auto !important; }
.ed-simple .vis-panel--quiet .vis-panel__title { font-weight: 500 !important; }

/* the link editor: one column, a small preview on top */
.modal.ed-simple--link { max-width: min(600px, 96vw) !important; }
.ed-simple--link .le-grid { display: flex !important; flex-direction: column !important; gap: 14px !important; }
.ed-simple--link .le-grid > div { width: 100% !important; max-width: none !important; min-width: 0 !important; }
.ed-simple--link .le-grid > div:last-child { position: static !important; order: -1; }
.ed-simple--link #standard-url-section { margin-bottom: 12px !important; }
.ed-simple--link #scrape-status:empty { display: none !important; }
.ed-simple--link .le-grid > div:last-child > h4 { display: none !important; }
.ed-simple--link #preview-card { min-height: 0 !important; box-shadow: none !important; border: 1px solid rgba(255, 255, 255, 0.07) !important; }
.ed-simple--link #preview-content { padding: 16px 18px !important; }
.ed-simple--link #preview-desc { margin-bottom: 0 !important; }
.ed-simple--link #preview-img { height: 140px !important; }

/* Delete: a small red word on the left, away from Save */
.ed-simple .modal-footer { display: flex !important; align-items: center !important; justify-content: flex-end !important; gap: 8px !important; }
.ed-simple .modal-footer .ed-delete {
  margin-right: auto !important;
  padding: 0 6px !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #ff7b7b !important;
  font-weight: 600 !important;
}
.ed-simple .modal-footer .ed-delete:hover { color: #ff5252 !important; text-decoration: underline; }

/* rename a link right on its card */
#preview-links .lc-title { cursor: text; border-radius: 6px; transition: box-shadow 0.15s ease, background-color 0.15s ease; }
#preview-links .lc-title:hover { text-decoration: underline dotted rgba(255, 255, 255, 0.35); text-underline-offset: 4px; }
#preview-links .lc-title.is-renaming {
  outline: none;
  text-decoration: none;
  padding: 2px 6px;
  margin-left: -6px !important;
  background: rgba(0, 0, 0, 0.35);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.6);
}

/* ======================================================================
   Dashboard shell (dashboard-shell.js): a sidebar on the left, and on Links
   an editor list in the middle with a live phone preview on the right.
   Dark is the default look; light is a full white theme
   (:root[data-theme="light"], chosen with the switch in the sidebar).
   ====================================================================== */

:root {
  --ed-bg: #05060b;
  --ed-side: #07080e;
  --ed-surface: rgba(255, 255, 255, 0.045);
  --ed-surface-2: rgba(255, 255, 255, 0.08);
  --ed-line: rgba(255, 255, 255, 0.09);
  --ed-text: #ffffff;
  --ed-muted: rgba(255, 255, 255, 0.55);
  --ed-solid: #ffffff;
  --ed-on-solid: #05060b;
}
:root[data-theme="light"] {
  --ed-bg: #f4f5f7;
  --ed-side: #ffffff;
  --ed-surface: #ffffff;
  --ed-surface-2: #eef0f4;
  --ed-line: rgba(10, 12, 18, 0.1);
  --ed-text: #0a0c12;
  --ed-muted: rgba(10, 12, 18, 0.55);
  --ed-solid: #0a0c12;
  --ed-on-solid: #ffffff;
}
:root[data-theme="light"] body { background: var(--ed-bg); }

/* ---------- sidebar ---------- */
.dash-side {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 40;
  width: 232px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 22px 14px 18px;
  background: var(--ed-side);
  border-right: 1px solid var(--ed-line);
}
.dash-side__brand { padding: 0 8px; }
.dash-side__nav { display: flex; flex-direction: column; gap: 4px; }
.dash-tab {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 11px 14px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--ed-muted);
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.dash-tab i { width: 18px; text-align: center; font-size: 15px; }
.dash-tab:hover { color: var(--ed-text); background: var(--ed-surface); }
.dash-tab.is-active { color: var(--ed-text); background: var(--ed-surface-2); font-weight: 650; }
.dash-tab:focus-visible, .dash-side__theme:focus-visible { outline: 2px solid #4f8cff; outline-offset: 2px; }
.dash-side__theme {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--ed-muted);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}
.dash-side__theme i { width: 18px; text-align: center; }
.dash-side__theme:hover { color: var(--ed-text); background: var(--ed-surface); }
body.has-side { padding-left: 232px; box-sizing: border-box; }
/* ---------- the phone: 390 x 844 CSS pixels, shown at 0.7 ---------- */
.phone-preview { display: none; }
@media (min-width: 1280px) {
  body.on-links .phone-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    position: fixed;
    top: 84px;
    right: 40px;
    z-index: 5;
  }
  #profile-builder.ed { padding-right: 370px !important; }
}
.phone-preview__device {
  position: relative;
  width: calc(390px * 0.7 + 20px);
  height: calc(844px * 0.7 + 20px);
  padding: 10px;
  box-sizing: border-box;
  border-radius: 46px;
  background: #0b0c12;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 40px 80px -30px rgba(0, 0, 0, 0.9);
  overflow: hidden;
}
.phone-preview__screen {
  display: block;
  width: 390px;
  height: 844px;
  border: 0;
  border-radius: 46px;
  background: #05060b;
  transform: scale(0.7);
  transform-origin: top left;
}
.phone-preview__note { margin: 0; font-size: 12px; color: var(--ed-muted); }
:root[data-theme="light"] .phone-preview__device { background: #ffffff; box-shadow: 0 0 0 1px rgba(10, 12, 18, 0.1), 0 30px 60px -30px rgba(10, 12, 18, 0.35); }

/* ======================================================================
   Editor mode (#profile-builder.ed, on Links): the builder is a calm list in the
   dashboard's own colours. The page's theme, font, banner and effects show
   in the phone only. Rules hang on the builder section itself, which the phone's copy of the page
   does not carry, so the phone is never affected.
   ====================================================================== */

#profile-builder.ed {
  max-width: none !important;
  width: auto !important;
  margin: 0 !important;
  padding-left: 40px !important;
  padding-bottom: 80px !important;
}
#profile-builder.ed > .section-actions,
#profile-builder.ed > .left-tools,
#profile-builder.ed > #profile-preview-box,
#profile-builder.ed > .pc-live-notice {
  max-width: 640px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Themes and Save / Cancel: a toolbar row on top, not floating in the corner */
#profile-builder.ed > .left-tools {
  position: static !important;
  display: flex !important;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px !important;
}
#profile-builder.ed .left-tools .save-controls2 { margin-left: auto; gap: 8px; }

/* the page box becomes a plain column */
#profile-builder.ed #profile-preview-box {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  overflow: visible !important;
  color: var(--ed-text) !important;
  padding: 0 !important;
  backdrop-filter: none !important;
}
#profile-builder.ed #profile-preview-box,
#profile-builder.ed #profile-preview-box :not(i):not(#inline-tray *) { font-family: 'Onest', system-ui, sans-serif !important; }
#profile-builder.ed #profile-preview-box .mdr-fx-canvas:not(.fx-card__thumb .mdr-fx-canvas),
#profile-builder.ed #profile-preview-box .link-icon,
#profile-builder.ed #side-drawer-toggle { display: none !important; }

/* profile card: avatar, name, bio, socials */
#profile-builder.ed #profile-preview-box .bannerp {
  position: relative !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 20px !important;
  margin: 0 0 12px !important;
  border-radius: 24px !important;
  background: var(--ed-surface) !important;
  border: 1px solid var(--ed-line) !important;
  box-shadow: none !important;
  overflow: visible !important;
}
#profile-builder.ed #profile-preview-box .bannerp::before,
#profile-builder.ed #profile-preview-box .bannerp::after { display: none !important; }
#profile-builder.ed #profile-preview-box .bannerp * { color: var(--ed-text); text-shadow: none !important; }
#profile-builder.ed #profile-preview-box .preview-desc,
#profile-builder.ed #profile-preview-box .preview-username { color: var(--ed-muted) !important; }

/* add bar */
#profile-builder.ed #profile-preview-box .quick-add {
  margin: 0 0 16px !important;
  padding: 6px 6px 6px 14px !important;
  border-radius: 999px !important;
  background: var(--ed-surface) !important;
  border: 1px solid var(--ed-line) !important;
  box-shadow: none !important;
}
#profile-builder.ed #profile-preview-box .quick-add input { color: var(--ed-text) !important; }
#profile-builder.ed #profile-preview-box .quick-add__btn {
  width: auto !important;
  height: 40px !important;
  padding: 0 18px !important;
  border-radius: 999px !important;
  background: var(--ed-solid) !important;
  color: var(--ed-on-solid) !important;
  border: 0 !important;
  font-weight: 650 !important;
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
}
#profile-builder.ed #profile-preview-box .quick-add__btn * { color: var(--ed-on-solid) !important; }
#profile-builder.ed #profile-preview-box .quick-add__btn::after { content: "Add"; font-size: 14px; }

/* the list */
#profile-builder.ed #profile-preview-box .profile-links {
  padding: 0 !important;
  gap: 10px !important;
  background: transparent !important;
}
#profile-builder.ed #profile-preview-box .link-card {
  margin: 0 !important;
  border-radius: 20px !important;
  background: var(--ed-surface) !important;
  border: 1px solid var(--ed-line) !important;
  box-shadow: none !important;
  color: var(--ed-text) !important;
  backdrop-filter: none !important;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
#profile-builder.ed #profile-preview-box .link-card:hover { border-color: color-mix(in srgb, var(--ed-text) 22%, transparent) !important; }
#profile-builder.ed #profile-preview-box .link-card .link-content { padding: 16px 150px 16px 12px !important; gap: 10px !important; }
.lc-grip, .lc-url { display: none; }
#profile-builder.ed #profile-preview-box .lc-grip {
  display: inline-grid;
  place-items: center;
  width: 22px;
  color: var(--ed-muted);
  opacity: 0.6;
  cursor: grab;
}
#profile-builder.ed #profile-preview-box .lc-title {
  font-size: 15.5px !important;
  font-weight: 650 !important;
  margin: 0 0 2px !important;
  color: var(--ed-text) !important;
  background: none !important;
  -webkit-text-fill-color: currentColor !important;
  animation: none !important;
  letter-spacing: 0 !important;
}
#profile-builder.ed #profile-preview-box .link-text p { font-size: 13px !important; color: var(--ed-muted) !important; opacity: 1 !important; }
#profile-builder.ed #profile-preview-box .link-text p:empty { display: none !important; }
#profile-builder.ed #profile-preview-box .lc-url {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  color: var(--ed-muted);
}
#profile-builder.ed #profile-preview-box .lc-url:empty { display: none; }

/* card actions: always there; edit and more as quiet icons, Visible as a switch */
#profile-builder.ed #profile-preview-box .link-card > .reorder-controls {
  top: 50% !important;
  right: 14px !important;
  transform: translateY(-50%);
  opacity: 1 !important;
  padding: 0 !important;
  gap: 4px !important;
  background: transparent !important;
  backdrop-filter: none !important;
  box-shadow: none !important;
  border: 0 !important;
}
#profile-builder.ed #profile-preview-box .reorder-controls .reorder-btn:not(.vis-btn) {
  width: 32px !important;
  height: 32px !important;
  border-radius: 999px !important;
  background: transparent !important;
  border: 0 !important;
  color: var(--ed-muted) !important;
}
#profile-builder.ed #profile-preview-box .reorder-controls .reorder-btn:not(.vis-btn):hover { color: var(--ed-text) !important; background: var(--ed-surface-2) !important; }
#profile-builder.ed #profile-preview-box .reorder-controls .vis-btn {
  order: 9;
  position: relative;
  width: 40px !important;
  height: 24px !important;
  margin-left: 6px;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: color-mix(in srgb, var(--ed-text) 18%, transparent) !important;
  transition: background-color 0.2s ease;
}
#profile-builder.ed #profile-preview-box .reorder-controls .vis-btn i { display: none !important; }
/* the knob is painted as a background: ::before/::after belong to the tooltip */
#profile-builder.ed #profile-preview-box .reorder-controls .vis-btn {
  background-image: radial-gradient(circle at 12px 12px, #fff 0 8.5px, transparent 9.5px) !important;
  background-repeat: no-repeat !important;
}
#profile-builder.ed #profile-preview-box .reorder-controls .vis-btn[aria-checked="true"] {
  background-color: #30d158 !important;
  background-image: radial-gradient(circle at 28px 12px, #fff 0 8.5px, transparent 9.5px) !important;
}

/* sections */
#profile-builder.ed #profile-preview-box .category-container {
  margin: 0 !important;
  padding: 10px !important;
  border-radius: 24px !important;
  background: transparent !important;
  border: 1px solid var(--ed-line) !important;
  box-shadow: none !important;
}
#profile-builder.ed #profile-preview-box .category-header {
  background: transparent !important;
  border: 0 !important;
  color: var(--ed-text) !important;
  padding: 6px 8px 10px !important;
}
#profile-builder.ed #profile-preview-box .category-header * { color: var(--ed-text) !important; }
#profile-builder.ed #profile-preview-box .preview-block-host { background: transparent !important; border: 1px dashed var(--ed-line) !important; }
#profile-builder.ed #profile-preview-box .preview-block-host .section-text { color: var(--ed-muted) !important; }

/* profile card internals: the overlay and tools sit in the flow, no banner */
#profile-builder.ed #profile-preview-box .bannerp .banner-overlay {
  position: static !important;
  inset: auto !important;
  padding: 0 !important;
  background: none !important;
  align-items: center !important;
}
#profile-builder.ed #profile-preview-box .bannerp .banner-actions2 {
  top: 16px !important;
  right: 16px !important;
  bottom: auto !important;
  left: auto !important;
}
#profile-builder.ed #profile-preview-box .bannerp .banner-actions2 .circle {
  background: var(--ed-surface-2) !important;
  border: 0 !important;
  color: var(--ed-text) !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}
#profile-builder.ed #profile-preview-box .bannerp .banner-actions2 .circle i { color: var(--ed-text) !important; }
#profile-builder.ed #profile-preview-box .reorder-controls .reorder-btn i { font-size: 13px !important; }

/* top bar: with the logo in the sidebar, the account menu stays on the right */
body.has-side header.topbar { justify-content: flex-end !important; }
body.has-side header.topbar .topbar-right { margin-left: auto !important; }

/* socials on the profile card, readable in both themes */
#profile-builder.ed #profile-preview-box .bannerp .social-pill {
  background: var(--ed-surface-2) !important;
  border: 0 !important;
  color: var(--ed-text) !important;
  box-shadow: none !important;
}
#profile-builder.ed #profile-preview-box .bannerp .social-pill i { color: var(--ed-text) !important; }

/* click the text to rename: the small pencils are not needed here, and an empty
   description takes no room (add one from Edit) */
#profile-builder.ed #profile-preview-box .link-card .inline-edit-pencil,
#profile-builder.ed #profile-preview-box .link-card .lc-sub-empty { display: none !important; }
#profile-builder.ed #profile-preview-box .link-card .inline-editable { cursor: text; }

/* the drag grip: six dots, drawn here (the icon set has no grip) */
#profile-builder.ed #profile-preview-box .lc-grip i { display: none !important; }
#profile-builder.ed #profile-preview-box .lc-grip {
  width: 14px;
  height: 22px;
  flex: none;
  background-image: radial-gradient(circle, currentColor 1.5px, transparent 2px);
  background-size: 7px 7px;
  background-position: 0 1px;
}

/* ======================================================================
   The whole dashboard in the home page's style: near-black (or white in the
   light theme), Onest, big tight titles, white pill buttons (black in light),
   lines you can barely see, green only for "on". The artist's own page (shown
   in the phone) keeps its own accent colour.
   ====================================================================== */

/* the accent: white on dark, near-black on light, instead of blue */
:root:not([data-theme="light"]) {
  --accent: #ffffff;
  --accent-hover: #e6e7ec;
  --accent-2: #ffffff;
  --accent-rgb: 255, 255, 255;
  --accent-soft: rgba(255, 255, 255, 0.1);
  --accent-tint: rgba(255, 255, 255, 0.05);
  --accent-border: rgba(255, 255, 255, 0.32);
  --accent-glow: rgba(255, 255, 255, 0.1);
  --accent-foreground: #05060b;
}
:root[data-theme="light"] {
  --accent: #0a0c12;
  --accent-hover: #26282f;
  --accent-2: #0a0c12;
  --accent-rgb: 10, 12, 18;
  --accent-soft: rgba(10, 12, 18, 0.07);
  --accent-tint: rgba(10, 12, 18, 0.04);
  --accent-border: rgba(10, 12, 18, 0.3);
  --accent-glow: rgba(10, 12, 18, 0.08);
  --accent-foreground: #ffffff;
}
/* the page itself (the phone's copy, whose section has no .ed) keeps the original accent */
#profile-builder:not(.ed) > #profile-preview-box {
  --accent: #3b82f6;
  --accent-hover: #2563eb;
  --accent-2: #3b81f2;
  --accent-rgb: 59, 130, 246;
  --accent-soft: rgba(59, 130, 246, 0.12);
  --accent-tint: rgba(59, 130, 246, 0.06);
  --accent-border: rgba(59, 130, 246, 0.42);
  --accent-glow: rgba(59, 130, 246, 0.32);
  --accent-foreground: #ffffff;
}

/* ---------- titles: one size, bold and tight, a light line under ---------- */
.section > .section-header,
#profile-builder.ed > .section-header {
  display: block !important;
  margin: 6px 0 26px !important;
  text-align: left !important;
}
#profile-builder.ed > .section-header { max-width: 640px !important; margin-left: auto !important; margin-right: auto !important; }
.section > .section-header h2,
#analytics .analytics-title h1 {
  margin: 0 !important;
  font-size: clamp(40px, 5vw, 64px) !important;
  font-weight: 800 !important;
  letter-spacing: -0.06em !important;
  line-height: 0.95 !important;
  color: var(--ed-text) !important;
}
.section > .section-header p {
  margin: 14px 0 0 !important;
  font-size: 17px !important;
  font-weight: 300 !important;
  color: var(--ed-muted) !important;
}
.section .card h3, .modal-header h2, .modal-header h3 { font-weight: 750; letter-spacing: -0.025em; }

/* ---------- buttons: pills; the main one solid ---------- */
.btn, .btn2, .btn-action, .cd-btn, .theme-dropdown-btn, .preview-tags > *, .earn-card button, .modal-footer button {
  border-radius: 999px !important;
}
.btn.primary, .btn-action.btn-save:not(:disabled), .cd-btn-primary, #btn-save,
.earn-card .btn-primary, .earn-card [class*="copy"]:not(input) {
  background: var(--ed-solid) !important;
  color: var(--ed-on-solid) !important;
  border-color: transparent !important;
  box-shadow: none !important;
}
.btn.primary *, .btn-action.btn-save:not(:disabled) *, .cd-btn-primary *, #btn-save * { color: var(--ed-on-solid) !important; }
.btn.primary:hover, .cd-btn-primary:hover, #btn-save:hover { filter: brightness(0.92); }
.btn:not(.primary):not(.danger), .btn2.ghost, .cd-btn-ghost, .theme-dropdown-btn, .preview-tags > * {
  background: var(--ed-surface) !important;
  border: 1px solid var(--ed-line) !important;
  color: var(--ed-text) !important;
}

/* ---------- fields ---------- */
.section input[type="text"], .section input[type="url"], .section input[type="email"], .section input[type="password"],
.section input[type="number"], .section textarea, .section select,
.modal input[type="text"], .modal input[type="url"], .modal input[type="email"], .modal input[type="password"],
.modal textarea, .modal select {
  background: var(--ed-surface) !important;
  border: 1px solid var(--ed-line) !important;
  border-radius: 14px !important;
  color: var(--ed-text) !important;
  box-shadow: none !important;
}
.section input:focus-visible, .section textarea:focus-visible, .modal input:focus-visible, .modal textarea:focus-visible {
  border-color: color-mix(in srgb, var(--ed-text) 45%, transparent) !important;
  outline: none !important;
}
/* joined fields keep their shape (prefix + input) */
.section .chg-input-prefix + input, .section .chg-input { border-radius: inherit; }

/* ---------- switches: green means on ---------- */
.toggle-switch input:checked + .slider { background: #30d158 !important; border-color: transparent !important; box-shadow: none !important; }

/* ---------- modals, menus, popups ---------- */
.modal-overlay { background: rgba(3, 4, 7, 0.72) !important; backdrop-filter: blur(6px); }
:root[data-theme="light"] .modal-overlay { background: rgba(10, 12, 18, 0.35) !important; }
.modal {
  background: #0a0b11 !important;
  border: 1px solid var(--ed-line) !important;
  border-radius: 28px !important;
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.85) !important;
}
:root[data-theme="light"] .modal { background: #ffffff !important; box-shadow: 0 40px 90px -40px rgba(10, 12, 18, 0.4) !important; }
.modal-header h2, .modal-header h3 { font-weight: 800 !important; letter-spacing: -0.04em !important; }

header.topbar { z-index: 50 !important; }
.phone-preview { z-index: 4 !important; }
.dropdown-menu, .theme-popup, .link-menu-dropdown, .more-tools-popover {
  border-radius: 20px !important;
  border: 1px solid var(--ed-line) !important;
  box-shadow: 0 30px 70px -25px rgba(0, 0, 0, 0.7) !important;
}
:root:not([data-theme="light"]) .dropdown-menu,
:root:not([data-theme="light"]) .theme-popup { background: #0a0b11 !important; }
.theme-popup { z-index: 60 !important; }
#profile-builder.ed #profile-preview-box .bannerp .avatar-column,
#profile-builder.ed #profile-preview-box .bannerp .profile-avatar { z-index: 1 !important; }

/* ---------- small things that were blue ---------- */
.compact-username, #user-username, .user-handle { color: var(--ed-muted) !important; }
.earn-head__icon, .earn-provider { background: var(--ed-surface-2) !important; border-color: var(--ed-line) !important; color: var(--ed-text) !important; }
.earn-head__icon i { color: var(--ed-text) !important; }
#profile-builder.ed .quick-add > :first-child:not(input) { background: var(--ed-surface-2) !important; color: var(--ed-text) !important; }

/* fields that sit inside their own pill stay bare */
.section input.profile-link-input, .section .quick-add input, .modal input.ed-field__input {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
}
/* Delete in the simple editors: a red word, never a pill */
:root:root:root .modal-footer button.btn.danger.ed-delete,
:root:root:root .modal-footer button.btn.danger.ed-delete:hover {
  background-image: none !important;
  outline: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: #e5484d !important;
}

/* ======================================================================
   Links page, compact and quiet: smaller type, fewer boxes, tools that appear
   when you need them. Only the Links page; the other pages are untouched.
   ====================================================================== */

/* ---------- Links only: a calm one-line title (other pages keep their own look) ---------- */
#profile-builder.ed > .section-header { margin: 0 auto 18px !important; }
#profile-builder.ed > .section-header h2 {
  font-size: 26px !important;
  font-weight: 700 !important;
  letter-spacing: -0.035em !important;
  line-height: 34px !important;
}
#profile-builder.ed > .section-header p { display: none !important; }

/* ======================================================================
   Links: title and tools on one line, a slim list, nothing extra
   ====================================================================== */
#profile-builder.ed > .section-header,
#profile-builder.ed > .left-tools,
#profile-builder.ed > #profile-preview-box,
#profile-builder.ed > .pc-live-notice,
#profile-builder.ed > .section-actions { max-width: 560px !important; }

/* Themes, Save and Cancel share the title's line */
#profile-builder.ed > .left-tools {
  left: 0 !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  position: relative !important;
  z-index: 2;
  justify-content: flex-end;
  margin-top: -52px !important;
  margin-bottom: 18px !important;
  min-height: 34px;
  pointer-events: none;
}
#profile-builder.ed > .left-tools > * { pointer-events: auto; }
#profile-builder.ed .left-tools .preview-tags { display: none !important; }
#profile-builder.ed .left-tools .save-controls2 { margin-left: 0; gap: 6px; }
#profile-builder.ed .theme-dropdown-btn,
#profile-builder.ed #btn-save,
#profile-builder.ed #btn-cancel { height: 32px !important; padding: 0 12px !important; font-size: 13px !important; }

/* profile card: small, no outline, quiet tools */
#profile-builder.ed #profile-preview-box .bannerp {
  padding: 14px !important;
  margin-bottom: 10px !important;
  border: 0 !important;
  border-radius: 16px !important;
}
#profile-builder.ed #profile-preview-box .bannerp .profile-avatar { width: 52px !important; height: 52px !important; }
#profile-builder.ed #profile-preview-box .bannerp .banner-actions2 { top: 10px !important; right: 10px !important; gap: 2px !important; }
#profile-builder.ed #profile-preview-box .bannerp .banner-actions2 .circle {
  width: 28px !important;
  height: 28px !important;
  background: transparent !important;
  opacity: 0.55;
  transition: opacity 0.15s ease, background-color 0.15s ease;
}
#profile-builder.ed #profile-preview-box .bannerp .banner-actions2 .circle:hover { opacity: 1; background: var(--ed-surface-2) !important; }
#profile-builder.ed #profile-preview-box .bannerp .banner-actions2 .circle i { font-size: 12.5px !important; }
#profile-builder.ed #profile-preview-box .bannerp .banner-actions2 .add-standalone-btn { display: none !important; }

/* add bar */
#profile-builder.ed #profile-preview-box .quick-add {
  margin-bottom: 14px !important;
  padding: 4px 4px 4px 12px !important;
  border: 0 !important;
  border-radius: 14px !important;
}
#profile-builder.ed #profile-preview-box .quick-add__btn { height: 32px !important; padding: 0 14px !important; font-size: 13px !important; }
#profile-builder.ed #profile-preview-box .quick-add__btn::after { font-size: 13px; }

/* the empty "section label" slot is only a hint: hidden until you add one from the tools */
#profile-builder.ed #profile-preview-box .preview-block-host:has(.section-text em) { display: none !important; }

/* rows: slim, no outline; edit and more appear on hover */
#profile-builder.ed #profile-preview-box .profile-links { gap: 6px !important; }
#profile-builder.ed #profile-preview-box .link-card { border: 0 !important; border-radius: 12px !important; }
#profile-builder.ed #profile-preview-box .link-card:hover { background: var(--ed-surface-2) !important; }
#profile-builder.ed #profile-preview-box .link-card .link-content { padding: 10px 124px 10px 6px !important; gap: 8px !important; min-height: 0 !important; }
#profile-builder.ed #profile-preview-box .lc-title { font-size: 14px !important; font-weight: 600 !important; margin: 0 !important; line-height: 1.35 !important; }
#profile-builder.ed #profile-preview-box .lc-url,
#profile-builder.ed #profile-preview-box .link-text p { font-size: 12.5px !important; line-height: 1.35 !important; }
#profile-builder.ed #profile-preview-box .lc-grip { opacity: 0; transition: opacity 0.15s ease; }
#profile-builder.ed #profile-preview-box .link-card:hover .lc-grip { opacity: 0.55; }
#profile-builder.ed #profile-preview-box .link-card > .reorder-controls { right: 10px !important; gap: 2px !important; }
#profile-builder.ed #profile-preview-box .reorder-controls .reorder-btn:not(.vis-btn) {
  width: 28px !important;
  height: 28px !important;
  opacity: 0;
  transition: opacity 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}
#profile-builder.ed #profile-preview-box .link-card:hover .reorder-btn:not(.vis-btn),
#profile-builder.ed #profile-preview-box .link-card:focus-within .reorder-btn:not(.vis-btn),
#profile-builder.ed #profile-preview-box .reorder-controls .reorder-btn.active { opacity: 1; }
#profile-builder.ed #profile-preview-box .reorder-controls .reorder-btn i { font-size: 12px !important; }

/* a smaller switch */
#profile-builder.ed #profile-preview-box .reorder-controls .vis-btn {
  width: 34px !important;
  height: 20px !important;
  background-image: radial-gradient(circle at 10px 10px, #fff 0 6.5px, transparent 7.5px) !important;
}
#profile-builder.ed #profile-preview-box .reorder-controls .vis-btn[aria-checked="true"] {
  background-image: radial-gradient(circle at 24px 10px, #fff 0 6.5px, transparent 7.5px) !important;
}

/* sections: a small label and its rows, no box */
#profile-builder.ed #profile-preview-box .category-container { border: 0 !important; padding: 0 !important; border-radius: 0 !important; margin-top: 8px !important; }
#profile-builder.ed #profile-preview-box .category-header { padding: 6px 6px 4px !important; }
#profile-builder.ed #profile-preview-box .category-header,
#profile-builder.ed #profile-preview-box .category-header * {
  font-size: 11.5px !important;
  font-weight: 600 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  color: var(--ed-muted) !important;
}
#profile-builder.ed #profile-preview-box .category-header .category-visibility-icon { display: none !important; }

/* ---------- the phone column: the page address sits above the phone ---------- */
.phone-preview__note { display: none; }
.phone-preview > .section-actions { width: 100%; margin: 0 0 4px !important; }
.phone-preview .profile-link-wrapper { min-height: 34px !important; padding: 2px !important; }
.phone-preview .profile-link-input { font-size: 12.5px !important; }
.phone-preview .vis-trigger { width: 26px !important; height: 26px !important; margin-left: 4px !important; }
.phone-preview .profile-link-btn { padding: 6px !important; }
.phone-preview .profile-link-btn.open-btn { margin-right: 4px !important; }

/* the Links title lines up with the list */
#profile-builder.ed > .section-header { margin: 0 auto 18px !important; }

/* ======================================================================
   Sidebar: fold to icons, and the user at the bottom with their menu
   ====================================================================== */
.dash-side { transition: width 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), padding 0.3s cubic-bezier(0.2, 0.8, 0.2, 1); }
body.has-side { transition: padding-left 0.3s cubic-bezier(0.2, 0.8, 0.2, 1); }
.dash-tab { white-space: nowrap; transition: background-color 0.2s ease, color 0.2s ease, padding 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), gap 0.3s ease; }
.dash-tab i { flex: 0 0 18px; }
.dash-tab span,
.dash-side .logo-text-wrapper,
.dash-side .user-name,
.dash-side .arrow-icon {
  max-width: 160px;
  overflow: hidden;
  white-space: nowrap;
  opacity: 1;
  transition: max-width 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.18s ease;
}
.dash-side .logo { flex-wrap: nowrap !important; }

body.side-min .dash-side { width: 72px; padding-inline: 10px; }
body.side-min.has-side { padding-left: 72px; }
body.side-min .dash-tab { padding-inline: 17px; gap: 0; }
body.side-min .dash-tab span,
body.side-min .dash-side .logo-text-wrapper,
body.side-min .dash-side .user-name,
body.side-min .dash-side .arrow-icon { max-width: 0; opacity: 0; }
body.side-min .dash-side .logo { gap: 0 !important; }

/* the fold button rides the sidebar's edge */
.dash-side__fold {
  position: absolute;
  top: 30px;
  right: -12px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--ed-line);
  border-radius: 50%;
  background: var(--ed-side);
  color: var(--ed-muted);
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.dash-side:hover .dash-side__fold, .dash-side__fold:focus-visible, body.side-min .dash-side__fold { opacity: 1; }
.dash-side__fold:hover { color: var(--ed-text); transform: scale(1.08); }
.dash-side__fold:focus-visible { outline: 2px solid #4f8cff; outline-offset: 2px; }
.dash-side__fold svg { transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1); }
body.side-min .dash-side__fold svg { transform: rotate(180deg); }
body.side-forced .dash-side__fold { display: none; }
@media (hover: none) { .dash-side__fold { opacity: 1; } }

/* the user */
.dash-side__user { margin-top: auto; position: relative; }
.dash-side .user-box {
  position: relative;
  display: flex !important;
  align-items: center;
  gap: 10px !important;
  width: 100%;
  box-sizing: border-box;
  padding: 8px 10px !important;
  border: 0 !important;
  border-radius: 12px !important;
  color: var(--ed-text);
  transition: background-color 0.2s ease, padding 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), gap 0.3s ease !important;
}
.dash-side .user-box:hover, .dash-side .user-box[aria-expanded="true"] { background: var(--ed-surface) !important; }
.dash-side .user-box .user-avatar { flex: 0 0 30px; width: 30px !important; height: 30px !important; }
.dash-side .user-box .user-name { flex: 1 1 auto; min-width: 0; font-size: 14px; font-weight: 600; color: var(--ed-text) !important; text-overflow: ellipsis; }
.dash-side .user-box .arrow-icon { flex: 0 0 14px; width: 14px; height: 14px; color: var(--ed-muted); transform: rotate(180deg); }
.dash-side .user-box .arrow-icon.open { transform: rotate(0deg); }
body.side-min .dash-side .user-box { padding: 8px 11px !important; gap: 0 !important; }
body.side-min .dash-side .user-box .user-name,
body.side-min .dash-side .user-box .arrow-icon { flex: 0 0 0; }

/* its menu opens upward, and holds page and account things, not the tabs again */
.dash-side .dropdown-menu {
  top: auto !important;
  bottom: calc(100% + 8px) !important;
  left: 0 !important;
  right: auto !important;
  width: 244px;
  margin: 0 !important;
  padding: 6px !important;
  border-radius: 16px !important;
  background: var(--ed-side) !important;
  transform: translateY(6px) !important;
  transform-origin: bottom left;
  cursor: default;
}
:root[data-theme="light"] .dash-side .dropdown-menu { background: #ffffff !important; box-shadow: 0 24px 60px -24px rgba(10, 12, 18, 0.35) !important; }
.dash-side .dropdown-menu.show { transform: translateY(0) !important; }
.dash-side .dropdown-menu .dropdown-item[data-section="profile-builder"],
.dash-side .dropdown-menu .dropdown-item[data-section="analytics"],
.dash-side .dropdown-menu .dropdown-item[data-section="earn"],
.dash-side .dropdown-menu .dropdown-item[data-section="account"],
.dash-side .dropdown-menu [data-groups-divider] { display: none !important; }
.dash-side .dropdown-menu .dropdown-item {
  width: 100%;
  box-sizing: border-box;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 14px !important;
  text-align: left;
  color: var(--ed-text) !important;
  cursor: pointer;
  border-radius: 10px !important;
}
.dash-side .dropdown-menu .dropdown-item:hover { background: var(--ed-surface-2) !important; }
.dash-side .dropdown-menu .dropdown-item svg { width: 17px; height: 17px; flex: 0 0 17px; color: var(--ed-muted); }
.dash-side .dropdown-menu .dropdown-item.logout-item, .dash-side .dropdown-menu .dropdown-item.logout-item svg { color: #e5484d !important; }
.dash-side .dropdown-menu .dropdown-divider { margin: 6px 4px !important; border: 0 !important; border-top: 1px solid var(--ed-line) !important; }
.dash-side .dropdown-menu .user-menu-head { padding: 8px 10px 10px !important; }
.dash-side .dropdown-menu .user-menu-who b { color: var(--ed-text) !important; }

/* ======================================================================
   The phone: the home page's device. 390 x 844 page shown at 0.7 under a
   status bar, in a metal frame with side buttons.
   ====================================================================== */
@media (min-width: 1280px) {
  body.on-links .phone-preview { width: 295px; align-items: stretch; gap: 14px; top: 78px; right: 48px; }
}
.phone-preview__device,
:root[data-theme="light"] .phone-preview__device {
  position: relative;
  width: 295px;
  height: 613px;
  padding: 11px;
  border-radius: 54px;
  overflow: visible;
  background: linear-gradient(145deg, #3a3d45 0%, #1b1d22 18%, #121317 50%, #1d1f24 82%, #3a3d45 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.1),
    inset 0 0 0 2.5px #08090b,
    inset 0 0 0 3.5px rgba(255, 255, 255, 0.05),
    0 60px 100px -50px rgba(0, 0, 0, 0.95),
    0 30px 60px -40px rgba(0, 0, 0, 0.8);
}
:root[data-theme="light"] .phone-preview__device {
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.1),
    inset 0 0 0 2.5px #08090b,
    inset 0 0 0 3.5px rgba(255, 255, 255, 0.05),
    0 50px 80px -45px rgba(10, 12, 18, 0.55),
    0 24px 40px -30px rgba(10, 12, 18, 0.35);
}
.pp-btn { position: absolute; width: 4px; border-radius: 2px; background: linear-gradient(90deg, #2c2f36, #1a1c21); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05); }
.pp-btn--action { left: -3px; top: 104px; height: 26px; }
.pp-btn--up { left: -3px; top: 150px; height: 48px; }
.pp-btn--down { left: -3px; top: 208px; height: 48px; }
.pp-btn--power { right: -3px; top: 168px; height: 74px; }
.pp-screen { position: relative; width: 273px; height: 591px; border-radius: 43px; overflow: hidden; background: #000; box-shadow: 0 0 0 1px #000; }
.pp-status { position: absolute; z-index: 2; inset: 0 0 auto; display: flex; align-items: center; justify-content: space-between; height: 42px; padding: 3px 24px 0 30px; box-sizing: border-box; color: #fff; pointer-events: none; }
.pp-status__time { font: 600 13.5px/1 -apple-system, "Onest", system-ui, sans-serif; letter-spacing: -0.01em; }
.pp-status__icons { display: flex; align-items: center; gap: 4px; }
.pp-status svg { display: block; fill: currentColor; }
.pp-island { position: absolute; z-index: 3; top: 9px; left: 50%; width: 82px; height: 24px; translate: -50% 0; border-radius: 999px; background: #000; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06); }
.pp-island::after { content: ""; position: absolute; right: 10px; top: 50%; width: 8px; height: 8px; translate: 0 -50%; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #2a3550, #0a0d16 70%); }
.pp-home { position: absolute; z-index: 2; left: 50%; bottom: 7px; width: 104px; height: 4.5px; translate: -50% 0; border-radius: 999px; background: rgba(255, 255, 255, 0.85); box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.25); pointer-events: none; }
.pp-glass { position: absolute; z-index: 4; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(115deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.015) 28%, transparent 42%, transparent 100%); }
.pp-screen .phone-preview__screen { position: absolute; top: 42px; left: 0; height: 785px; border-radius: 0; }

/* the page address: a pill the width of the phone, right on top of it */
.phone-preview > .section-actions { width: 100% !important; max-width: none !important; margin: 0 !important; }
.phone-preview .profile-link-wrapper { width: 100% !important; box-sizing: border-box; border-radius: 999px !important; }

/* ======================================================================
   Plan and upgrade pop-ups: one dark plate in both themes, a white pill
   ====================================================================== */
.modal.up-cine,
:root[data-theme="light"] .modal.up-cine {
  padding: 0 !important;
  background: #07080d !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 28px !important;
  overflow: hidden !important;
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.8) !important;
}
.modal.up-cine .modal-footer, .modal.up-cine .modal-header { display: none !important; }
.modal.up-cine .modal-body { margin: 0 !important; padding: 0 !important; }
.modal.up-cine .up-plate { border-radius: 0 !important; }
.modal.up-cine .up-eyebrow { color: rgba(255, 255, 255, 0.6) !important; }
.modal.up-cine .up-title { font-weight: 800 !important; letter-spacing: -0.045em !important; color: #fff !important; }
.modal.up-cine .up-story { color: rgba(255, 255, 255, 0.72) !important; font-weight: 300; }
.modal.up-cine .up-cta,
.modal.up-cine .up-cta:hover:not(:disabled) {
  background: #ffffff !important;
  color: #05060b !important;
  border: 0 !important;
  border-radius: 999px !important;
  box-shadow: none !important;
}
.modal.up-cine .up-cta * { color: #05060b !important; }
.modal.up-cine .up-cta__shine { display: none !important; }
.modal.up-cine .up-cta:hover:not(:disabled) { filter: brightness(0.92); }
.modal.up-cine .up-price, .modal.up-cine .up-foot { color: rgba(255, 255, 255, 0.55) !important; }
.modal.up-cine .up-quiet { color: rgba(255, 255, 255, 0.72) !important; }
.modal.up-cine .up-quiet:hover { color: #fff !important; }
.modal.up-cine [id$="-x"] { border-radius: 50% !important; background: rgba(255, 255, 255, 0.08) !important; border: 0 !important; color: #fff !important; }

/* ======================================================================
   Design: theme, frame, font, effects, background, music, QR, visibility
   in one place, in the page (no floating panel). The phone stays beside it.
   ====================================================================== */

/* the top bar is empty now (logo and user live in the sidebar) */
body.has-side header.topbar { display: none !important; }
body.has-side .section { padding-top: 40px !important; }

/* the phone: beside the column, placed by the shell (left / top) */
@media (min-width: 1280px) {
  body.on-links .phone-preview { right: auto; top: 40px; }
  #profile-builder.ed { padding-right: 343px !important; }
}

/* themes are picked in Design, so Links has no Themes button; old entry points go */
#profile-builder.ed .theme-dropdown-btn,
#profile-builder.ed .side-drawer-toggle,
#profile-builder.ed #typography-btn,
#profile-builder.ed #frames-btn,
#profile-builder.ed #effects-btn,
#profile-builder.ed #music-btn,
#profile-builder.ed #qr-btn,
#profile-builder.ed #background-btn,
#profile-builder.ed #visibility-btn,
#profile-builder.ed .more-tools-popover #pc-open { display: none !important; }

/* tool row */
#profile-builder.ed > .dz-bar,
#profile-builder.ed > .dz-themes { display: none; max-width: 560px; margin: 0 auto; }
#profile-builder.ed.dz > .dz-bar {
  display: flex;
  gap: 2px;
  padding: 4px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: var(--ed-surface);
  overflow-x: auto;
  scrollbar-width: none;
}
#profile-builder.ed.dz > .dz-bar::-webkit-scrollbar { display: none; }
.dz-pill {
  flex: 0 0 auto;
  padding: 7px 13px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ed-muted);
  font: inherit;
  font-size: 13px;
  font-weight: 550;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.dz-pill:hover { color: var(--ed-text); }
.dz-pill.is-active { background: var(--ed-solid); color: var(--ed-on-solid); }
.dz-pill:focus-visible { outline: 2px solid #4f8cff; outline-offset: 2px; }
.dz-pill[hidden] { display: none; }

/* in Design the list steps aside */
#profile-builder.ed.dz #profile-preview-box > :not(#inline-tray) { display: none !important; }
#profile-builder.ed.dz[data-dz="theme"] > .dz-themes { display: block; }

/* the tool panel, in the page */
#profile-builder.ed #inline-tray {
  position: static !important;
  inset: auto !important;
  width: 100% !important;
  max-width: none !important;
  height: auto !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
  transform: none !important;
  opacity: 1 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  overflow: visible !important;
  display: block;
}
#profile-builder.ed #inline-tray[hidden] { display: none !important; }
#profile-builder.ed #inline-tray .side-drawer__head,
#profile-builder.ed #inline-tray .inline-tray__title { display: none !important; }
#profile-builder.ed #inline-tray .inline-tray__body {
  padding: 0 !important;
  max-height: none !important;
  overflow: visible !important;
  color: var(--ed-text);
}

/* themes: a grid of cards */
#profile-builder.ed .dz-themes #theme-popup {
  position: static !important;
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  width: 100% !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
}
#profile-builder.ed .dz-themes #theme-popup > :not(.theme-item) { grid-column: 1 / -1; }
#profile-builder.ed .dz-themes .theme-item {
  margin: 0 !important;
  padding: 10px !important;
  border: 1px solid transparent !important;
  border-radius: 16px !important;
  background: var(--ed-surface) !important;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
#profile-builder.ed .dz-themes .theme-item:hover { background: var(--ed-surface-2) !important; }
#profile-builder.ed .dz-themes .theme-item.active { border-color: var(--ed-text) !important; }
#profile-builder.ed .dz-themes .theme-item * { color: var(--ed-text); }
#profile-builder.ed .dz-themes .theme-item small,
#profile-builder.ed .dz-themes .theme-item .theme-price,
#profile-builder.ed .dz-themes .theme-item .theme-info > :not(:first-child) { color: var(--ed-muted) !important; }

/* ---------- Design: fit and finish ---------- */
/* Save / Cancel sit on the title line without moving anything */
#profile-builder.ed > .left-tools { height: 34px !important; min-height: 34px !important; overflow: visible !important; }
#profile-builder.ed.dz > .dz-bar { justify-content: space-between; }
.dz-pill { padding: 7px 12px; }

/* themes: a swatch you can read, the name under it */
#profile-builder.ed .dz-themes #theme-popup { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
#profile-builder.ed .dz-themes .theme-item {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 8px !important;
  padding: 6px 6px 10px !important;
}
#profile-builder.ed .dz-themes .theme-item .theme-preview {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 16 / 10;
  border-radius: 11px !important;
  flex: 0 0 auto !important;
}
#profile-builder.ed .dz-themes .theme-item .theme-info { padding: 0 6px !important; font-size: 13.5px; }
#profile-builder.ed .dz-themes .theme-item .theme-info > :not(:first-child) { font-size: 11.5px !important; }

/* frames: real screenshots, four across */
#profile-builder.ed .frame-popup__grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 14px 10px !important;
}
#profile-builder.ed .frame-opt {
  display: flex !important;
  flex-direction: column;
  gap: 8px;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  cursor: pointer;
}
#profile-builder.ed .frame-opt .frame-opt__sw {
  position: relative;
  display: block;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 9 / 15;
  border-radius: 16px !important;
  border: 0 !important;
  overflow: hidden;
  box-shadow: 0 0 0 1px var(--ed-line);
  transition: box-shadow 0.15s ease, transform 0.2s ease;
}
#profile-builder.ed .frame-opt:hover .frame-opt__sw { transform: translateY(-2px); box-shadow: 0 0 0 1px color-mix(in srgb, var(--ed-text) 40%, transparent); }
#profile-builder.ed .frame-opt.is-active .frame-opt__sw { box-shadow: 0 0 0 2px var(--ed-text); }
#profile-builder.ed .frame-opt .frame-opt__check {
  position: absolute !important;
  inset: auto 8px 8px auto !important;
  width: 22px; height: 22px;
  display: none;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: #05060b !important;
  font-size: 11px !important;
  transform: none !important;
  opacity: 1 !important;
}
#profile-builder.ed .frame-opt.is-active .frame-opt__check { display: grid; }
#profile-builder.ed .frame-opt .frame-opt__name { font-size: 12.5px !important; font-weight: 600; color: var(--ed-muted) !important; text-align: center; }
#profile-builder.ed .frame-opt.is-active .frame-opt__name { color: var(--ed-text) !important; }

/* tool panel text follows the dashboard theme */
#profile-builder.ed #inline-tray { color: var(--ed-text); }
#profile-builder.ed #inline-tray .typo-fontcard__sample,
#profile-builder.ed #inline-tray input:not([type="range"]):not([type="color"]):not([type="checkbox"]):not([type="radio"]),
#profile-builder.ed #inline-tray textarea { color: var(--ed-text) !important; }
#profile-builder.ed #inline-tray .typo-fontcard__name,
#profile-builder.ed #inline-tray .typo-modal__hint { color: var(--ed-muted) !important; }

/* frame cards: the home page screenshots */
#profile-builder.ed .frame-opt[data-frame-id="profile-card"] .frame-opt__sw { background: #0b0c10 url("../../media/home/frames/phone-profile-card.webp") top center / cover no-repeat !important; }
#profile-builder.ed .frame-opt[data-frame-id="vignette"] .frame-opt__sw { background: #0b0c10 url("../../media/home/frames/phone-vignette.webp") top center / cover no-repeat !important; }
#profile-builder.ed .frame-opt[data-frame-id="terminal"] .frame-opt__sw { background: #0b0c10 url("../../media/home/frames/phone-terminal.webp") top center / cover no-repeat !important; }
#profile-builder.ed .frame-opt[data-frame-id="windows-98"] .frame-opt__sw { background: #0b0c10 url("../../media/home/frames/phone-windows-98.webp") top center / cover no-repeat !important; }
#profile-builder.ed .frame-opt[data-frame-id="channel"] .frame-opt__sw { background: #0b0c10 url("../../media/home/frames/phone-channel.webp") top center / cover no-repeat !important; }
#profile-builder.ed .frame-opt[data-frame-id="encyclopedia"] .frame-opt__sw { background: #0b0c10 url("../../media/home/frames/phone-encyclopedia.webp") top center / cover no-repeat !important; }
#profile-builder.ed .frame-opt[data-frame-id="post"] .frame-opt__sw { background: #0b0c10 url("../../media/home/frames/phone-post.webp") top center / cover no-repeat !important; }
#profile-builder.ed .frame-opt[data-frame-id="chat-server"] .frame-opt__sw { background: #0b0c10 url("../../media/home/frames/phone-chat-server.webp") top center / cover no-repeat !important; }
#profile-builder.ed .frame-opt[data-frame-id="history"] .frame-opt__sw { background: #0b0c10 url("../../media/home/frames/phone-history.webp") top center / cover no-repeat !important; }
#profile-builder.ed .frame-opt[data-frame-id="dusk"] .frame-opt__sw { background: #0b0c10 url("../../media/home/frames/phone-dusk.webp") top center / cover no-repeat !important; }
#profile-builder.ed .frame-opt[data-frame-id="forest"] .frame-opt__sw { background: #0b0c10 url("../../media/home/frames/phone-forest.webp") top center / cover no-repeat !important; }
#profile-builder.ed .frame-opt[data-frame-id="swiss"] .frame-opt__sw { background: #0b0c10 url("../../media/home/frames/phone-swiss.webp") top center / cover no-repeat !important; }
#profile-builder.ed .frame-opt[data-frame-id="paper"] .frame-opt__sw { background: #0b0c10 url("../../media/home/frames/phone-paper.webp") top center / cover no-repeat !important; }
#profile-builder.ed .frame-opt:not([data-frame-id=""]) .frame-opt__sw .fw,
#profile-builder.ed .frame-opt:not([data-frame-id=""]) .frame-opt__sw .frame-opt__glow { display: none !important; }

/* the phone shows the frame itself, so the "Frame: ..." note on the card is not needed */
#profile-builder.ed [data-dashboard-frame-pill] { display: none !important; }

/* ======================================================================
   Polish: blue for "on" and "chosen", one small tick instead of outlines
   ====================================================================== */
:root { --md-blue: #3b82f6; }

/* switches: blue when on */
#profile-builder.ed #profile-preview-box .reorder-controls .vis-btn[aria-checked="true"],
.toggle-switch input:checked + .slider,
.sed__switch input:checked + .sed__switch-track,
.ed-switch input:checked + * {
  background-color: var(--md-blue) !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

/* chosen in Design: no outline, a small blue tick in the corner */
#profile-builder.ed .dz-themes .theme-item.active,
#profile-builder.ed #inline-tray .typo-fontcard.is-active,
#profile-builder.ed #inline-tray .fx-card.is-active,
#profile-builder.ed #inline-tray .qr-preset.is-active {
  position: relative !important;
  border-color: transparent !important;
  outline: 0 !important;
  box-shadow: none !important;
}
#profile-builder.ed .frame-opt.is-active .frame-opt__sw { box-shadow: 0 0 0 1px var(--ed-line) !important; }

#profile-builder.ed .dz-themes .theme-item.active::after,
#profile-builder.ed #inline-tray .typo-fontcard.is-active::after,
#profile-builder.ed #inline-tray .fx-card.is-active::after,
#profile-builder.ed #inline-tray .qr-preset.is-active::after {
  content: "" !important;
  position: absolute !important;
  top: 8px !important;
  right: 8px !important;
  left: auto !important;
  bottom: auto !important;
  z-index: 3 !important;
  width: 18px !important;
  height: 18px !important;
  border-radius: 50% !important;
  background: var(--md-blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 11px no-repeat !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3) !important;
  opacity: 1 !important;
  transform: none !important;
  pointer-events: none;
}
#profile-builder.ed .dz-themes .theme-item.active::after { top: 14px !important; right: 14px !important; }

/* the frame card already has a tick: make it the same small blue one */
#profile-builder.ed .frame-opt .frame-opt__check {
  inset: 8px 8px auto auto !important;
  width: 18px !important;
  height: 18px !important;
  background: var(--md-blue) !important;
  color: #fff !important;
  font-size: 9px !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* hidden social icon: the badge to show it again appears only on hover */
#profile-builder.ed .social-pill.is-hidden .social-pill__vis { opacity: 0 !important; }
#profile-builder.ed .social-pill.is-hidden:hover .social-pill__vis,
#profile-builder.ed .social-pill.is-hidden .social-pill__vis:focus-visible { opacity: 1 !important; }
#profile-builder.ed .social-pill__vis {
  top: -6px !important;
  right: -6px !important;
  width: 18px !important;
  height: 18px !important;
  border: 0 !important;
  background: var(--ed-solid) !important;
  color: var(--ed-on-solid) !important;
  font-size: 9px !important;
}
#profile-builder.ed .social-pill.is-hidden { border-style: solid !important; }
/* effects keep their sound icon top-right, so their tick sits top-left */
#profile-builder.ed #inline-tray .fx-card.is-active::after { left: 14px !important; right: auto !important; top: 14px !important; }
/* hovering a hidden icon shows it clearly, with a clean eye badge to show it again */
#profile-builder.ed .social-pill.is-hidden:hover { opacity: 1 !important; filter: none !important; }
#profile-builder.ed .social-pill__vis i { font-size: 9px !important; line-height: 1; color: inherit !important; }
/* the badge draws its own eye (the icon font has no reliable eye-slash here) */
#profile-builder.ed .social-pill__vis {
  width: 16px !important;
  height: 16px !important;
  top: -4px !important;
  right: -4px !important;
  background: var(--md-blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 12s3.5-6.5 9.5-6.5 9.5 6.5 9.5 6.5-3.5 6.5-9.5 6.5S2.5 12 2.5 12Z'/%3E%3Ccircle cx='12' cy='12' r='2.6'/%3E%3C/svg%3E") center / 10px no-repeat !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35) !important;
}
#profile-builder.ed .social-pill__vis i { display: none !important; }

/* eye on social icons: small, on hover over any icon. Hidden icon: eye (show it).
   Shown icon: crossed-out eye (hide it). */
#profile-builder.ed .social-pill .social-pill__vis {
  width: 13px !important;
  height: 13px !important;
  top: -3px !important;
  right: -3px !important;
  background-size: 8px !important;
  opacity: 0 !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 12s3.5-6.5 9.5-6.5 9.5 6.5 9.5 6.5-3.5 6.5-9.5 6.5S2.5 12 2.5 12Z'/%3E%3Cpath d='M4 20 20 4'/%3E%3C/svg%3E") !important;
  background-color: color-mix(in srgb, var(--ed-text) 55%, var(--ed-bg)) !important;
}
#profile-builder.ed .social-pill.is-hidden .social-pill__vis {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 12s3.5-6.5 9.5-6.5 9.5 6.5 9.5 6.5-3.5 6.5-9.5 6.5S2.5 12 2.5 12Z'/%3E%3Ccircle cx='12' cy='12' r='2.6'/%3E%3C/svg%3E") !important;
  background-color: var(--md-blue) !important;
}
#profile-builder.ed .social-pill:hover .social-pill__vis,
#profile-builder.ed .social-pill .social-pill__vis:focus-visible { opacity: 1 !important; }

/* the page address above the phone: no outline */
.phone-preview .profile-link-wrapper,
.phone-preview .profile-link-wrapper:hover,
.phone-preview .profile-link-wrapper:focus-within { border: 0 !important; outline: 0 !important; box-shadow: none !important; }

/* list switches: the knob is anchored to the track's edges, so it sits the
   same distance from the left when off as from the right when on */
#profile-builder.ed #profile-preview-box .reorder-controls .vis-btn,
#profile-builder.ed #profile-preview-box .reorder-controls .vis-btn[aria-checked="true"] {
  background-image: radial-gradient(circle closest-side, #fff 0 92%, transparent 100%) !important;
  background-size: 14px 14px !important;
  background-repeat: no-repeat !important;
  background-position: left 3px center !important;
  transition: background-position 0.18s ease, background-color 0.18s ease !important;
}
#profile-builder.ed #profile-preview-box .reorder-controls .vis-btn[aria-checked="true"] { background-position: right 3px center !important; }

/* back to top: a small round arrow, bottom right, only after scrolling */
.dash-top {
  position: fixed;
  z-index: 40;
  right: 28px;
  bottom: 28px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--ed-solid);
  color: var(--ed-on-solid);
  font-size: 15px;
  cursor: pointer;
  box-shadow: 0 14px 30px -14px rgba(0, 0, 0, 0.55);
  transition: transform 0.18s ease, opacity 0.18s ease;
  animation: dash-top-in 0.2s ease;
}
.dash-top[hidden] { display: none; }
.dash-top:hover { transform: translateY(-2px); }
.dash-top:focus-visible { outline: 2px solid var(--md-blue); outline-offset: 3px; }
.dash-top i { color: inherit !important; }
body.modal-open .dash-top, body:has(.modal-overlay:not(.hidden)) .dash-top { display: none; }
@keyframes dash-top-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .dash-top { animation: none; transition: none; } }

/* card header buttons (Add link, New category, Banner, Font, More) use the same
   small tooltip as the link row icons */
#profile-preview-box .banner-actions2 .circle::after {
  content: attr(data-tooltip) !important;
  top: 100% !important; bottom: auto !important; left: 50% !important; margin: 0 !important;
  width: max-content !important; max-width: 180px !important;
  transform: translateX(-50%) translateY(6px) !important;
  padding: 3px 7px !important; border-radius: 5px !important;
  background: rgba(20, 20, 30, 0.96) !important; color: #eee !important;
  font-size: 0.64rem !important; font-weight: 400 !important; letter-spacing: 0 !important; line-height: 1.4 !important;
  border: 1px solid rgba(var(--accent-rgb, 255, 255, 255), 0.25) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5) !important;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  z-index: 20 !important;
  transition: opacity 0.2s ease, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}
#profile-preview-box .banner-actions2 .circle:is(:hover, :focus-visible)::after {
  transform: translateX(-50%) translateY(8px) !important;
}
#profile-preview-box .banner-actions2 .circle::before {
  top: 100% !important; bottom: auto !important; left: 50% !important; margin: 0 !important;
  transform: translateX(-50%) !important;
  border: 4px solid transparent !important; border-bottom-color: rgba(20, 20, 30, 0.96) !important; border-top-color: transparent !important;
  z-index: 21 !important;
}

/* ======================================================================
   Avatar pop-up: shape, border and ring as short rows under the upload,
   label on the left, controls on the right. Blue means chosen.
   ====================================================================== */
#avatar-style-panel.is-inline-open {
  margin-top: 18px !important;
  padding-top: 4px !important;
  border-top: 1px solid var(--ed-line) !important;
}
#avatar-style-panel.is-inline-open .wing-sec {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 2px !important;
  border: 0 !important;
}
#avatar-style-panel.is-inline-open .wing-sec > div:only-child { width: 100%; }
#avatar-style-panel .img-modal__shape-title,
#avatar-style-panel .avbanim-row__lbl {
  flex: 0 0 auto;
  margin: 0 !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  text-align: left !important;
  color: var(--ed-text) !important;
}
#avatar-style-panel .img-modal__hint { display: none !important; }
#avatar-style-panel .img-modal__shape-row { display: flex !important; flex-wrap: nowrap; gap: 6px !important; margin: 0 !important; justify-content: flex-end; }

/* shapes: four small buttons, the chosen one blue */
#avatar-style-panel .shape-opt {
  width: 38px !important;
  height: 38px !important;
  min-width: 0 !important;
  padding: 0 !important;
  display: grid !important;
  place-items: center;
  border: 0 !important;
  border-radius: 12px !important;
  background: var(--ed-surface-2) !important;
  box-shadow: none !important;
}
#avatar-style-panel .shape-opt::after,
#avatar-style-panel .shape-opt::before { display: none !important; }
#avatar-style-panel .shape-opt .shape-dot {
  width: 18px !important;
  height: 18px !important;
  margin: 0 !important;
  background: var(--ed-muted) !important;
  box-shadow: none !important;
}
#avatar-style-panel .shape-opt.is-active,
#avatar-style-panel .shape-opt[aria-pressed="true"] { background: color-mix(in srgb, var(--md-blue) 16%, transparent) !important; }
#avatar-style-panel .shape-opt.is-active .shape-dot,
#avatar-style-panel .shape-opt[aria-pressed="true"] .shape-dot { background: var(--md-blue) !important; }

/* border: a switch, then Subtle and a colour dot */
#avatar-style-panel .img-modal__border-row { align-items: center; }
#avatar-style-panel .shape-border {
  order: 3;
  display: inline-flex !important;
  padding: 0 !important;
  margin: 0 0 0 4px !important;
  border: 0 !important;
  background: transparent !important;
  cursor: pointer;
}
#avatar-style-panel .shape-border > i,
#avatar-style-panel .shape-border > span { display: none !important; }
#avatar-style-panel .shape-border input {
  appearance: none;
  -webkit-appearance: none;
  position: static !important;
  opacity: 1 !important;
  width: 36px !important;
  height: 22px !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: color-mix(in srgb, var(--ed-text) 22%, transparent) radial-gradient(circle at 11px 11px, #fff 0 7.5px, transparent 8.5px) no-repeat !important;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
#avatar-style-panel .shape-border input:checked {
  background: var(--md-blue) radial-gradient(circle at 25px 11px, #fff 0 7.5px, transparent 8.5px) no-repeat !important;
}
#avatar-style-panel .shape-border input:focus-visible { outline: 2px solid var(--md-blue); outline-offset: 2px; }
#avatar-style-panel .frame-subtle,
#avatar-style-panel .frame-color {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  height: 32px !important;
  padding: 0 12px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: var(--ed-surface-2) !important;
  color: var(--ed-text) !important;
  font-size: 13px !important;
  font-weight: 550 !important;
  box-shadow: none !important;
}
#avatar-style-panel .frame-subtle *,
#avatar-style-panel .frame-color * { color: var(--ed-text) !important; }
#avatar-style-panel .frame-subtle.is-active,
#avatar-style-panel .frame-subtle[aria-pressed="true"] { background: color-mix(in srgb, var(--md-blue) 16%, transparent) !important; }

/* ring animation: one row of small pills that scrolls sideways */
#avatar-style-panel .avbanim-row { display: flex; align-items: center; gap: 16px; min-width: 0; }
#avatar-style-panel .avbanim-grid {
  display: flex !important;
  flex: 1 1 auto;
  min-width: 0;
  gap: 6px !important;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 2px 0;
  mask-image: linear-gradient(90deg, #000 85%, transparent);
}
#avatar-style-panel .avbanim-grid::-webkit-scrollbar { display: none; }
#avatar-style-panel .avbanim-opt {
  flex: 0 0 auto;
  height: 30px !important;
  padding: 0 12px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: var(--ed-surface-2) !important;
  color: var(--ed-text) !important;
  font-size: 12.5px !important;
  font-weight: 550 !important;
  box-shadow: none !important;
}
#avatar-style-panel .avbanim-opt.is-active,
#avatar-style-panel .avbanim-opt[aria-checked="true"] { background: var(--md-blue) !important; color: #fff !important; }
#avatar-style-panel .avbanim-row ~ *:not(.avbanim-row) { margin-top: 10px; }

/* ---------- less on screen ---------- */
/* smaller picture, no file-type hint */
.modal .img-modal__frame:has(#modal-img) { width: 132px !important; height: 132px !important; margin-bottom: 4px !important; }
.modal .img-modal__frame #modal-img { width: 100% !important; height: 100% !important; }
.modal #upload-tab .img-modal__hint { display: none !important; }

/* Upload / Gallery / URL: small, readable in both themes */
.modal .img-modal__seg { padding: 3px !important; gap: 2px !important; border-radius: 999px !important; background: var(--ed-surface-2) !important; }
.modal .img-modal__seg-btn {
  height: 30px !important;
  padding: 0 12px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: transparent !important;
  color: var(--ed-muted) !important;
  font-size: 13px !important;
  box-shadow: none !important;
}
.modal .img-modal__seg-btn i { display: none !important; }
.modal .img-modal__seg-btn.is-active { background: var(--ed-solid) !important; color: var(--ed-on-solid) !important; }
.modal .img-modal__cta {
  height: 38px !important;
  padding: 0 18px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: var(--ed-solid) !important;
  color: var(--ed-on-solid) !important;
  font-size: 14px !important;
  box-shadow: none !important;
}
.modal .img-modal__cta * { color: var(--ed-on-solid) !important; }

/* border colour and ring only once the border is on */
#avatar-style-panel:not(:has(#avatar-border-toggle:checked)) .frame-subtle,
#avatar-style-panel:not(:has(#avatar-border-toggle:checked)) .frame-color,
#avatar-style-panel:not(:has(#avatar-border-toggle:checked)) .wing-sec:has(#avatar-border-anim-wrap) { display: none !important; }
#avatar-style-panel .wing-sec:has(#avatar-border-anim-wrap) { padding-top: 0 !important; }
#avatar-style-panel .avbanim-row__lbl { font-size: 0 !important; }
#avatar-style-panel .avbanim-row__lbl::after { content: "Ring"; font-size: 13.5px; }
#avatar-style-panel .img-modal__border-row { flex: 1 1 auto; justify-content: flex-end !important; }
#avatar-style-panel.is-inline-open { padding-bottom: 0 !important; margin-bottom: -8px !important; }
#avatar-style-panel.is-inline-open .wing-sec:last-child { padding-bottom: 4px !important; }

/* Paste URL row: one calm pill with the field inside, and a readable Apply */
.modal .img-modal__url-row {
  max-width: 480px !important; margin: 0 auto !important;
  padding: 5px 5px 5px 16px !important; gap: 10px !important;
  border-radius: 999px !important;
  background: var(--ed-surface-2) !important;
  border: 1px solid transparent !important; box-shadow: none !important;
}
.modal .img-modal__url-row:focus-within { border-color: color-mix(in srgb, var(--ed-text) 35%, transparent) !important; }
.modal .img-modal__url-row > i { color: var(--ed-muted) !important; font-size: 14px !important; }
.modal .img-modal__url-row input,
.modal .img-modal__url-row input:focus {
  flex: 1 1 auto !important; min-width: 0 !important; height: 40px !important;
  margin: 0 !important; padding: 0 !important;
  background: transparent !important; border: 0 !important; box-shadow: none !important; outline: 0 !important;
  border-radius: 0 !important; color: var(--ed-text) !important; font-size: 15px !important;
}
.modal .img-modal__url-row input::placeholder { color: var(--ed-muted) !important; opacity: 0.8; }
.modal .img-modal__apply {
  flex: none !important; height: 40px !important; min-width: 0 !important; padding: 0 20px !important;
  border: 0 !important; border-radius: 999px !important;
  background: var(--ed-solid) !important; color: var(--ed-on-solid) !important;
  font-size: 14px !important; font-weight: 600 !important; box-shadow: none !important;
}
.modal .img-modal__apply:disabled { opacity: 0.4 !important; }
.modal #url-tab .img-modal__hint { display: block !important; margin-top: 12px !important; color: var(--ed-muted) !important; font-size: 13px !important; }
@media (max-width: 560px) {
  .modal .img-modal__url-row input, .modal .img-modal__url-row input:focus { font-size: 16px !important; }
}

/* ===== avatar window: shape, border and ring folded behind one arrow ===== */
.modal .avs-toggle {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; margin: 18px 0 0; padding: 14px 4px 4px;
  border: 0; border-top: 1px solid var(--ed-line); background: transparent;
  color: var(--ed-muted); font: inherit; font-size: 13.5px; font-weight: 600; text-align: left;
  cursor: pointer;
}
.modal .avs-toggle:hover { color: var(--ed-text); }
.modal .avs-toggle__arrow {
  flex: none; width: 26px; height: 26px; display: grid; place-items: center;
  border: 1px solid var(--ed-line); border-radius: 50%; background: var(--ed-surface);
  color: var(--ed-muted); transition: color 0.2s ease, transform 0.2s ease;
}
.modal .avs-toggle:hover .avs-toggle__arrow { color: var(--ed-text); transform: scale(1.08); }
.modal .avs-toggle__arrow svg { transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1); }
.modal .avs-toggle[aria-expanded="true"] .avs-toggle__arrow svg { transform: rotate(180deg); }
.modal .avs-toggle:focus-visible { outline: 0; }
.modal .avs-toggle:focus-visible .avs-toggle__arrow { outline: 2px solid #4f8cff; outline-offset: 2px; }
/* the toggle carries the dividing line now */
.modal .avs-toggle + #avatar-style-block { border-top: 0 !important; margin-top: 6px !important; padding-top: 0 !important; }
.modal .avs-toggle + #avatar-style-block::before { display: none !important; }
.modal #avatar-style-block.is-collapsed { display: none !important; }
.modal .avs-toggle + #avatar-style-block #avatar-style-panel { border-top: 0 !important; padding-top: 4px !important; margin-top: 0 !important; }

/* ======================================================================
   Visibility (in Design): two grouped lists, rows with hairlines,
   blue tick for the chosen option, readable in both themes
   ====================================================================== */
#profile-builder.ed #inline-tray .vctl { display: flex; flex-direction: column; gap: 0; }

/* group titles */
#profile-builder.ed #inline-tray .vctl-radios::before,
#profile-builder.ed #inline-tray .vctl-code + .vctl-mini-row::before {
  display: block;
  margin: 0 0 8px 4px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ed-muted);
}
#profile-builder.ed #inline-tray .vctl-radios::before { content: "Who can see your page"; }
#profile-builder.ed #inline-tray .vctl-code + .vctl-mini-row::before {
  content: "Page";
  position: absolute;
  top: -28px;
  left: 0;
}

/* group 1: the three options */
#profile-builder.ed #inline-tray .vctl-radios {
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
  margin: 0 !important;
}
#profile-builder.ed #inline-tray .vctl-card {
  position: relative;
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  width: 100%;
  margin: 0 !important;
  padding: 13px 16px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: var(--ed-surface) !important;
  box-shadow: none !important;
  outline: 0 !important;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.15s ease;
}
#profile-builder.ed #inline-tray .vctl-card + .vctl-card { box-shadow: inset 0 1px 0 var(--ed-line) !important; }
#profile-builder.ed #inline-tray .vctl-card:first-of-type { border-radius: 16px 16px 0 0 !important; }
#profile-builder.ed #inline-tray .vctl-card:last-of-type { border-radius: 0 0 16px 16px !important; }
#profile-builder.ed #inline-tray .vctl-card:hover { background: var(--ed-surface-2) !important; }
#profile-builder.ed #inline-tray .vctl-card__icon {
  flex: 0 0 auto;
  width: 20px !important;
  height: 20px !important;
  display: grid !important;
  place-items: center;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
#profile-builder.ed #inline-tray .vctl-card__icon i { font-size: 15px !important; color: var(--ed-muted) !important; }
#profile-builder.ed #inline-tray .vctl-card.is-active .vctl-card__icon i { color: var(--ed-text) !important; }
#profile-builder.ed #inline-tray .vctl-card__txt { flex: 1 1 auto; min-width: 0; }
#profile-builder.ed #inline-tray .vctl-card__name { font-size: 14.5px !important; font-weight: 600 !important; color: var(--ed-text) !important; line-height: 1.3; }
#profile-builder.ed #inline-tray .vctl-card__sub { margin-top: 1px !important; font-size: 12.5px !important; color: var(--ed-muted) !important; line-height: 1.35; }
#profile-builder.ed #inline-tray .vctl-card__check { display: none !important; }
#profile-builder.ed #inline-tray .vctl-card.is-active::after {
  content: "";
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--md-blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 11px no-repeat;
}

/* the code field, when code-protected is chosen */
#profile-builder.ed #inline-tray .vctl-code:not([hidden]) { margin-top: 10px !important; }

/* group 2: page switches, one card */
#profile-builder.ed #inline-tray .vctl-mini-row {
  position: relative;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between;
  gap: 16px !important;
  margin: 0 !important;
  padding: 13px 16px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: var(--ed-surface) !important;
  box-shadow: inset 0 1px 0 var(--ed-line) !important;
}
#profile-builder.ed #inline-tray .vctl-code + .vctl-mini-row {
  margin-top: 40px !important;
  border-radius: 16px 16px 0 0 !important;
  box-shadow: none !important;
}
#profile-builder.ed #inline-tray .vctl-mini-row:last-child { border-radius: 0 0 16px 16px !important; }
#profile-builder.ed #inline-tray .vctl-mini-row__txt { display: flex; flex-direction: column; gap: 1px; min-width: 0; padding: 0 !important; }
#profile-builder.ed #inline-tray .vctl-mini-row__label { font-size: 14.5px !important; font-weight: 600 !important; color: var(--ed-text) !important; line-height: 1.3; }
#profile-builder.ed #inline-tray .vctl-mini-row__sub { font-size: 12.5px !important; color: var(--ed-muted) !important; line-height: 1.35; }
#profile-builder.ed #inline-tray .vctl-mini-row .toggle-switch { flex: 0 0 auto; margin: 0 !important; }

/* header layout: label left, small switch right */
#profile-builder.ed #inline-tray .vctl-mini-row--stack { flex-direction: row !important; align-items: center !important; text-align: left !important; }
#profile-builder.ed #inline-tray .vctl-mini-row--stack .vctl-mini-row__txt { align-items: flex-start !important; text-align: left !important; }
#profile-builder.ed #inline-tray .vctl-seg {
  flex: 0 0 auto;
  display: inline-flex !important;
  gap: 2px !important;
  margin: 0 !important;
  padding: 3px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: var(--ed-surface-2) !important;
}
#profile-builder.ed #inline-tray .vctl-seg__btn {
  height: 28px !important;
  padding: 0 12px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: transparent !important;
  color: var(--ed-muted) !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  box-shadow: none !important;
}
#profile-builder.ed #inline-tray .vctl-seg__btn.is-active { background: var(--ed-solid) !important; color: var(--ed-on-solid) !important; }

/* one card: no gaps between rows */
#profile-builder.ed #inline-tray .vctl > .vctl-mini-row,
#profile-builder.ed #inline-tray .vctl > .vctl-mini-row + .vctl-mini-row { margin-top: 0 !important; margin-bottom: 0 !important; }
#profile-builder.ed #inline-tray .vctl > .vctl-code + .vctl-mini-row { margin-top: 40px !important; }
#profile-builder.ed #inline-tray .vctl { gap: 0 !important; row-gap: 0 !important; }

/* switches that are off stay visible in both themes */
.toggle-switch input:not(:checked) + .slider {
  background: color-mix(in srgb, var(--ed-text) 18%, transparent) !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

/* the access code box: same calm card, warning as plain red text */
#profile-builder.ed #inline-tray .vctl-code:not([hidden]) {
  padding: 14px 16px !important;
  border: 0 !important;
  border-radius: 16px !important;
  background: var(--ed-surface) !important;
  box-shadow: none !important;
}
#profile-builder.ed #inline-tray .vctl-code [class*="warn"],
#profile-builder.ed #inline-tray .vctl-code [class*="alert"],
#profile-builder.ed #inline-tray .vctl-code [class*="status"] {
  padding: 0 0 10px !important;
  margin: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: #e5484d !important;
  font-size: 12.5px !important;
}
#profile-builder.ed #inline-tray .vctl-code input {
  height: 40px !important;
  border-radius: 999px !important;
  padding: 0 16px !important;
  background: var(--ed-surface-2) !important;
  border: 0 !important;
  color: var(--ed-text) !important;
}
#profile-builder.ed #inline-tray .vctl-code button {
  height: 40px !important;
  border-radius: 999px !important;
  padding: 0 18px !important;
  border: 0 !important;
  background: var(--ed-solid) !important;
  color: var(--ed-on-solid) !important;
  box-shadow: none !important;
}
#profile-builder.ed #inline-tray .vctl-code p,
#profile-builder.ed #inline-tray .vctl-code small { color: var(--ed-muted) !important; font-size: 12px !important; margin: 8px 0 0 4px !important; }

/* ======================================================================
   Design: themes clickable, theme cards filled, lists scroll on their own
   ====================================================================== */
#profile-builder.ed .dz-themes #theme-popup,
#profile-builder.ed .dz-themes #theme-popup * { pointer-events: auto !important; }

/* theme cards: the colour fills the card, the name sits under it */
#profile-builder.ed .dz-themes .theme-item {
  padding: 0 !important;
  gap: 0 !important;
  overflow: hidden !important;
}
#profile-builder.ed .dz-themes .theme-item .theme-preview {
  width: 100% !important;
  aspect-ratio: 16 / 11 !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
#profile-builder.ed .dz-themes .theme-item .theme-info { padding: 10px 12px 11px !important; }
#profile-builder.ed .dz-themes .theme-item.active::after { top: 10px !important; right: 10px !important; }

/* each Design list scrolls inside its own area, not the whole page */
@media (min-width: 900px) {
  #profile-builder.ed.dz > .dz-themes,
  #profile-builder.ed.dz #inline-tray .inline-tray__body {
    max-height: calc(100vh - 190px) !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    padding-right: 6px !important;
    margin-right: -6px !important;
    scrollbar-width: thin;
    scrollbar-color: color-mix(in srgb, var(--ed-text) 22%, transparent) transparent;
  }
  #profile-builder.ed.dz > .dz-themes::-webkit-scrollbar,
  #profile-builder.ed.dz #inline-tray .inline-tray__body::-webkit-scrollbar { width: 6px; }
  #profile-builder.ed.dz > .dz-themes::-webkit-scrollbar-thumb,
  #profile-builder.ed.dz #inline-tray .inline-tray__body::-webkit-scrollbar-thumb { border-radius: 999px; background: color-mix(in srgb, var(--ed-text) 22%, transparent); }
  #profile-builder.ed.dz > .dz-themes::-webkit-scrollbar-track,
  #profile-builder.ed.dz #inline-tray .inline-tray__body::-webkit-scrollbar-track { background: transparent; }
}
@media (min-width: 900px) {
  #profile-builder.ed.dz > .dz-themes { margin-left: auto !important; margin-right: auto !important; padding-right: 8px !important; }
  #profile-builder.ed.dz #inline-tray .inline-tray__body { margin-right: 0 !important; padding-right: 8px !important; }
}

/* ======================================================================
   Design lists: lighter and roomier
   ====================================================================== */
/* frames: more air between cards */
#profile-builder.ed .frame-popup__grid { gap: 22px 16px !important; }
#profile-builder.ed .frame-opt .frame-opt__sw { border-radius: 14px !important; }

/* effects: just the moving preview and its name, four across */
#profile-builder.ed #inline-tray .fx-grid,
#profile-builder.ed #inline-tray [class*="fx-grid"] {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 18px 12px !important;
}
#profile-builder.ed #inline-tray .fx-card {
  display: flex !important;
  flex-direction: column !important;
  gap: 7px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
#profile-builder.ed #inline-tray .fx-card__thumb {
  position: relative;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 1 / 1 !important;
  border-radius: 14px !important;
  background: #07080d !important;
  box-shadow: 0 0 0 1px var(--ed-line) !important;
  overflow: hidden !important;
}
#profile-builder.ed #inline-tray .fx-card:hover .fx-card__thumb { box-shadow: 0 0 0 1px color-mix(in srgb, var(--ed-text) 40%, transparent) !important; }
#profile-builder.ed #inline-tray .fx-card__thumb .mdr-fx-canvas { display: block !important; position: absolute !important; inset: 0 !important; width: 100% !important; height: 100% !important; }
#profile-builder.ed #inline-tray .fx-card__name { font-size: 12.5px !important; font-weight: 600 !important; color: var(--ed-muted) !important; text-align: center; }
#profile-builder.ed #inline-tray .fx-card.is-active .fx-card__name { color: var(--ed-text) !important; }
#profile-builder.ed #inline-tray .fx-card__sound { top: 8px !important; right: 8px !important; }
#profile-builder.ed #inline-tray .fx-card.is-active::after { top: 8px !important; left: 8px !important; }
/* frames: a shorter crop of each screenshot (the top of the page) */
#profile-builder.ed .frame-opt .frame-opt__sw { aspect-ratio: 4 / 5 !important; }

/* effects: each tile shows its ready-made looping preview */
.fx-card__thumb.has-shot { background: linear-gradient(160deg, #2a2a5a 0%, #171a30 100%) !important; }
.fx-card__thumb .fx-card__shot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 1;
}
.fx-card__thumb.has-shot > i { opacity: 0.35; }
.fx-card__thumb .fx-card__sound, .fx-card__sound { z-index: 2; }
#profile-builder.ed #inline-tray .fx-card__thumb.has-shot { background: linear-gradient(160deg, #2a2a5a 0%, #171a30 100%) !important; }

/* ======================================================================
   Effects, shop style: tall dark profile cards, three across, the effect
   playing over each card, the name on the card itself
   ====================================================================== */
#profile-builder.ed #inline-tray .fx-grid,
#profile-builder.ed #inline-tray [class*="fx-grid"] {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 16px !important;
}
#profile-builder.ed #inline-tray .fx-card {
  position: relative !important;
  gap: 0 !important;
  border-radius: 18px !important;
  transition: transform 0.2s ease !important;
}
#profile-builder.ed #inline-tray .fx-card:hover { transform: translateY(-3px); background: transparent !important; }
#profile-builder.ed #inline-tray .fx-card__thumb {
  aspect-ratio: 5 / 7 !important;
  border-radius: 18px !important;
  background: #0d0e12 !important;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 18px 34px -22px rgba(0, 0, 0, 0.8) !important;
  transition: box-shadow 0.2s ease !important;
}
#profile-builder.ed #inline-tray .fx-card__thumb.has-shot > i { display: none !important; }
#profile-builder.ed #inline-tray .fx-card__thumb:not(.has-shot) > i {
  font-size: 26px !important;
  width: auto !important;
  height: auto !important;
  color: rgba(255, 255, 255, 0.28) !important;
}
#profile-builder.ed #inline-tray .fx-card:hover .fx-card__thumb {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18), 0 24px 40px -22px rgba(0, 0, 0, 0.85) !important;
}
#profile-builder.ed #inline-tray .fx-card.is-active .fx-card__thumb {
  box-shadow: 0 0 0 2px var(--md-blue), 0 0 0 5px color-mix(in srgb, var(--md-blue) 25%, transparent), 0 24px 40px -22px rgba(0, 0, 0, 0.85) !important;
}

/* the name sits on the card, over a soft fade */
#profile-builder.ed #inline-tray .fx-card__name {
  position: absolute !important;
  z-index: 3;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 34px 12px 12px !important;
  border-radius: 0 0 18px 18px;
  background: linear-gradient(to top, rgba(8, 9, 12, 0.92) 0%, rgba(8, 9, 12, 0.6) 55%, transparent 100%);
  color: rgba(255, 255, 255, 0.86) !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em;
  text-align: left !important;
  pointer-events: none;
}
#profile-builder.ed #inline-tray .fx-card.is-active .fx-card__name { color: #fff !important; }

/* sound and selected marks: small glass circles on the card */
#profile-builder.ed #inline-tray .fx-card__sound {
  top: 10px !important;
  right: 10px !important;
  width: 26px !important;
  height: 26px !important;
  padding: 0 !important;
  background: rgba(10, 11, 15, 0.55) !important;
  backdrop-filter: blur(6px);
  color: rgba(255, 255, 255, 0.75) !important;
  font-size: 11px !important;
}
#profile-builder.ed #inline-tray .fx-card__sound i { font-size: 11px !important; width: auto !important; height: auto !important; color: inherit !important; }
#profile-builder.ed #inline-tray .fx-card.is-active::after { top: 10px !important; left: 10px !important; z-index: 4 !important; }

/* effects: the search and categories sit on the page, no band behind them */
#profile-builder.ed #inline-tray .fx-tools,
:root[data-theme="light"] #profile-builder.ed #inline-tray .fx-tools {
  position: static !important;
  margin: 0 0 18px !important;
  padding: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}
#profile-builder.ed #inline-tray .fx-search__input,
:root[data-theme="light"] #profile-builder.ed #inline-tray .fx-search__input {
  height: 42px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: var(--ed-surface) !important;
  color: var(--ed-text) !important;
  box-shadow: none !important;
}
#profile-builder.ed #inline-tray .fx-search__input:focus { box-shadow: 0 0 0 2px color-mix(in srgb, var(--ed-text) 18%, transparent) !important; }
#profile-builder.ed #inline-tray .fx-card { overflow: visible !important; }
#profile-builder.ed #inline-tray .fx-grid { overflow: visible !important; padding: 4px !important; }
/* selected effect: only the blue check, no ring */
#profile-builder.ed #inline-tray .fx-card.is-active .fx-card__thumb {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 18px 34px -22px rgba(0, 0, 0, 0.8) !important;
}
#profile-builder.ed #inline-tray .fx-card.is-active,
#profile-builder.ed #inline-tray .fx-card.is-active:hover { border: 0 !important; outline: 0 !important; background: transparent !important; }

/* ===== second pass: a real group title, Plus tags, the paused-code note ===== */
#profile-builder.ed #inline-tray .vctl-group-title {
  margin: 28px 0 8px 4px !important; padding: 0 !important;
  font-size: 12px !important; font-weight: 600 !important; letter-spacing: 0.06em !important;
  text-transform: uppercase !important; color: var(--ed-muted) !important;
}
#profile-builder.ed #inline-tray .vctl-group-title + .vctl-mini-row,
#profile-builder.ed #inline-tray .vctl-group-title ~ .vctl-mini-row:not([style*="none"]):first-of-type { border-radius: 16px 16px 0 0 !important; box-shadow: none !important; margin-top: 0 !important; }
#profile-builder.ed #inline-tray .vctl-code + .vctl-mini-row::before { content: none !important; }
#profile-builder.ed #inline-tray .vctl > .vctl-code + .vctl-mini-row { margin-top: 0 !important; }
#profile-builder.ed #inline-tray .vctl-mini-row:last-child { border-radius: 0 0 16px 16px !important; }
#profile-builder.ed #inline-tray .vctl-mini-row__sub { margin-top: 2px !important; }

/* Plus-only on this plan: shown, tagged, opens the upgrade window */
#profile-builder.ed #inline-tray .is-plus { cursor: pointer !important; }
#profile-builder.ed #inline-tray .is-plus .toggle-switch,
#profile-builder.ed #inline-tray .is-plus .vctl-seg { opacity: 0.4 !important; pointer-events: none !important; }
#profile-builder.ed #inline-tray .is-plus .vctl-card__icon,
#profile-builder.ed #inline-tray .is-plus .vctl-mini-row__sub,
#profile-builder.ed #inline-tray .is-plus .vctl-card__sub { opacity: 0.7; }
#profile-builder.ed #inline-tray .vctl-plus {
  display: inline-flex; align-items: center; height: 18px; padding: 0 7px; margin-left: 6px; vertical-align: 1px;
  border-radius: 999px; background: var(--ed-solid); color: var(--ed-on-solid);
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.02em;
}

/* a code page on the free plan */
#profile-builder.ed #inline-tray .vctl-note:not([hidden]) {
  display: flex; align-items: center; gap: 14px; margin: 10px 0 0 !important; padding: 14px 16px !important;
  border-radius: 16px; background: var(--ed-surface) !important;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, #f59e0b 40%, transparent) !important;
}
#profile-builder.ed #inline-tray .vctl-note p { flex: 1 1 auto; margin: 0 !important; font-size: 13px !important; line-height: 1.45 !important; color: var(--ed-muted) !important; }
#profile-builder.ed #inline-tray .vctl-note p b { color: var(--ed-text); font-weight: 600; }
#profile-builder.ed #inline-tray .vctl-note__cta {
  flex: none; height: 34px; padding: 0 14px; border: 0; border-radius: 999px;
  background: var(--ed-solid); color: var(--ed-on-solid); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
}
@media (max-width: 560px) {
  #profile-builder.ed #inline-tray .vctl-note:not([hidden]) { flex-direction: column; align-items: stretch; }
  #profile-builder.ed #inline-tray .vctl-note__cta { height: 42px; }
}

/* ===== the phone: page footer and the "who can see" note ===== */
.pp-foot {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  margin: 26px 0 18px; padding: 0 16px; text-align: center;
}
.pp-foot__badge {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.08); color: rgba(255, 255, 255, 0.85);
  font-size: 12px; font-weight: 500;
}
.pp-foot__badge i { font-size: 10px; color: #fbbf24; }
.pp-foot__legal { font-size: 11px; color: rgba(255, 255, 255, 0.45); letter-spacing: 0.01em; }
#pp-vis {
  position: fixed; top: 10px; left: 50%; transform: translateX(-50%); z-index: 70;
  display: inline-flex; align-items: center; gap: 7px; max-width: calc(100% - 24px);
  height: 30px; padding: 0 12px; border-radius: 999px;
  background: rgba(10, 11, 15, 0.86); color: #fff; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  font: 600 11.5px/1 'Onest', system-ui, sans-serif; white-space: nowrap;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
#pp-vis i { font-size: 10px; color: #fbbf24; }

/* ======================================================================
   Motion: calm hovers, a real drag, sections that ease in
   ====================================================================== */

/* row buttons: flat on hover, no shadow, no jump */
#profile-builder.ed #profile-preview-box .reorder-controls .reorder-btn,
#profile-builder.ed #profile-preview-box .reorder-controls .reorder-btn:hover,
#profile-builder.ed #profile-preview-box .reorder-controls .reorder-btn:focus-visible,
#profile-builder.ed #profile-preview-box .reorder-controls .reorder-btn.active {
  box-shadow: none !important;
  transform: none !important;
  filter: none !important;
}
#profile-builder.ed #profile-preview-box .reorder-controls .reorder-btn:not(.vis-btn):hover,
#profile-builder.ed #profile-preview-box .reorder-controls .reorder-btn:not(.vis-btn).active {
  background: color-mix(in srgb, var(--ed-text) 8%, transparent) !important;
  color: var(--ed-text) !important;
}
#profile-builder.ed #profile-preview-box .reorder-controls .reorder-btn:not(.vis-btn) i { color: inherit !important; }

/* row hover: one soft fade, buttons follow */
#profile-builder.ed #profile-preview-box .link-card {
  transition: background-color 0.25s ease, box-shadow 0.25s ease !important;
}
#profile-builder.ed #profile-preview-box .reorder-controls .reorder-btn:not(.vis-btn),
#profile-builder.ed #profile-preview-box .lc-grip {
  transition: opacity 0.22s ease, background-color 0.2s ease, color 0.2s ease !important;
}

/* drag: the row lifts and follows the pointer, a gap shows where it lands */
#profile-builder.ed #profile-preview-box .link-card { cursor: default; }
#profile-builder.ed #profile-preview-box .link-card:hover .lc-grip { cursor: grab; }
body.is-dragging-link,
body.is-dragging-link * { cursor: grabbing !important; user-select: none !important; }
#profile-builder.ed #profile-preview-box .is-lifted {
  background: var(--ed-surface-2) !important;
  border-radius: 12px !important;
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.55), 0 0 0 1px var(--ed-line) !important;
  will-change: transform;
}
:root[data-theme="light"] #profile-builder.ed #profile-preview-box .is-lifted {
  background: #fff !important;
  box-shadow: 0 18px 40px -18px rgba(10, 12, 18, 0.35), 0 0 0 1px var(--ed-line) !important;
}
#profile-builder.ed #profile-preview-box .is-lifted .reorder-btn:not(.vis-btn),
#profile-builder.ed #profile-preview-box .is-lifted .lc-grip { opacity: 1 !important; }
#profile-builder.ed #profile-preview-box .drag-ph {
  border-radius: 12px;
  background: color-mix(in srgb, var(--ed-text) 5%, transparent);
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--ed-text) 12%, transparent);
}
/* on touch screens the grip is how you drag, so it is always there */
@media (hover: none) {
  #profile-builder.ed #profile-preview-box .lc-grip { opacity: 0.55 !important; touch-action: none; }
}

/* sections ease in when you switch */
@keyframes dash-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}
body.has-side .section.active { animation: dash-in 0.36s cubic-bezier(0.2, 0.8, 0.2, 1) backwards; }
/* the list and the design tools ease in when you switch between them */
#profile-builder.ed .dz-in { animation: dash-in 0.3s cubic-bezier(0.2, 0.8, 0.2, 1) backwards; }
@media (prefers-reduced-motion: reduce) {
  body.has-side .section.active,
  #profile-builder.ed .dz-in { animation: none !important; }
}
:root:not([data-theme="light"]) #profile-builder.ed #profile-preview-box .is-lifted { background: #17181f !important; }

/* ======================================================================
   Studio: a hero number, a smooth area chart, devices and hours side by side.
   Chart colours are validated per theme (blue, orange, aqua; grey = Other).
   ====================================================================== */
#analytics {
  --viz-1: #3987e5;
  --viz-2: #d95926;
  --viz-3: #199e70;
  --viz-other: #7d828c;
  --viz-surface: #0d0e14;
}
:root[data-theme="light"] #analytics {
  --viz-1: #2a78d6;
  --viz-2: #eb6834;
  --viz-3: #1baf7a;
  --viz-other: #9aa0aa;
  --viz-surface: #ffffff;
}

/* the old three number tiles: the hero line says it now */
#analytics .analytics-box .stats-grid { display: none !important; }
/* devices and hours have their own cards now */
#analytics #studio-tabs .std-tab[data-pane="pane-devices"],
#analytics #studio-tabs .std-tab[data-pane="pane-hours"] { display: none !important; }

/* hero */
#analytics #trend-box .studio-cardhead { align-items: flex-start !important; gap: 16px; margin-bottom: 18px !important; }
#analytics #trend-box .studio-cardtitle { display: none !important; }
.std-hero { flex: 1 1 auto; min-width: 0; }
.std-hero__line { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.std-hero__num {
  font-size: clamp(34px, 4.4vw, 46px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1;
  color: var(--ed-text);
  font-variant-numeric: tabular-nums;
}
.std-hero__unit { font-size: 22px; font-weight: 700; letter-spacing: -0.03em; color: var(--ed-text); }
.std-hero__delta { display: inline-flex; align-items: center; gap: 5px; margin-left: 6px; font-size: 15px; font-weight: 500; color: var(--ed-muted); }
.std-hero__delta i { font-style: normal; font-size: 10px; }
.std-hero__delta.is-up i { color: #30a46c; }
.std-hero__delta.is-down i { color: #e5484d; }
.std-hero__sub { margin: 8px 0 0; font-size: 13.5px; color: var(--ed-muted); }

/* the delta chips under the old tiles are not needed */
#analytics .stat-delta { display: none !important; }

/* charts */
#analytics .viz-svg { display: block; overflow: visible; }
#analytics .viz-grid { stroke: var(--ed-line); stroke-width: 1; shape-rendering: crispEdges; }
#analytics .viz-axis { fill: var(--ed-muted); font-size: 11px; font-variant-numeric: tabular-nums; }
#analytics .viz-area { fill: var(--viz-1); fill-opacity: 0.16; }
#analytics .viz-line { fill: none; stroke: var(--viz-1); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
#analytics .viz-gap { fill: color-mix(in srgb, var(--ed-text) 4%, transparent); }
#analytics .viz-cross { stroke: color-mix(in srgb, var(--ed-text) 35%, transparent); stroke-width: 1; stroke-dasharray: 3 3; }
#analytics .viz-dot { fill: var(--viz-1); stroke: var(--viz-surface); stroke-width: 2; }
#analytics .viz-hit { cursor: crosshair; }
#analytics .viz-empty { margin: 0; font-size: 13.5px; color: var(--ed-muted); }

/* two cards side by side */
.std-duo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 16px; margin: 16px 0; }
@media (max-width: 900px) { .std-duo { grid-template-columns: 1fr; } }
.std-duo .std-card { margin: 0 !important; }
.std-card__title { margin: 0 !important; font-size: 17px !important; font-weight: 700 !important; letter-spacing: -0.02em; color: var(--ed-text) !important; }
.std-card__sub { margin: 4px 0 18px !important; font-size: 12.5px !important; color: var(--ed-muted) !important; }

/* ring with its legend in the middle */
.viz-ring { position: relative; width: min(220px, 100%); aspect-ratio: 1; margin: 0 auto; }
.viz-ring__svg { width: 100%; height: 100%; display: block; }
.viz-seg { fill: none; stroke-width: 16; stroke-linecap: butt; cursor: default; transition: stroke-width 0.2s ease; }
.viz-seg:hover { stroke-width: 20; }
.viz-c1 { stroke: var(--viz-1); background: var(--viz-1); }
.viz-c2 { stroke: var(--viz-2); background: var(--viz-2); }
.viz-c3 { stroke: var(--viz-3); background: var(--viz-3); }
.viz-co { stroke: var(--viz-other); background: var(--viz-other); }
.viz-ring__legend {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
  pointer-events: none;
}
.viz-ring__legend li { display: flex; align-items: center; gap: 7px; min-width: 104px; font-size: 13px; color: var(--ed-muted); }
.viz-ring__legend b { color: var(--ed-text); font-weight: 700; font-variant-numeric: tabular-nums; }
.viz-key { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 8px; }

/* hour columns */
#analytics .viz-col path { fill: var(--viz-1); fill-opacity: 0.55; transform-box: fill-box; transform-origin: bottom; transition: fill-opacity 0.15s ease; }
#analytics .viz-col.is-peak path { fill-opacity: 1; }
#analytics .viz-col:hover path { fill-opacity: 1; }
#analytics .viz-peak { fill: var(--ed-text); font-size: 11.5px; font-weight: 700; font-variant-numeric: tabular-nums; }

/* tooltip */
.viz-tip {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 9999;
  max-width: 240px;
  padding: 8px 11px;
  border-radius: 10px;
  background: #0b0c12;
  color: #fff;
  font-size: 12.5px;
  line-height: 1.45;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.08);
  pointer-events: none;
  font-variant-numeric: tabular-nums;
}
:root[data-theme="light"] .viz-tip { background: #fff; color: #0a0c12; box-shadow: 0 10px 30px -12px rgba(10, 12, 18, 0.3), 0 0 0 1px rgba(10, 12, 18, 0.1); }
.viz-tip[hidden] { display: none; }
.viz-tip__k { display: block; margin-bottom: 2px; font-size: 11.5px; opacity: 0.65; }
.viz-tip span:not(.viz-tip__k) { opacity: 0.75; }
/* the two cards sit between the chart and the breakdown list */
#analytics .analytics-box > .std-duo { order: 3; margin: 0 !important; }
#analytics .analytics-box > #trend-box { order: 2; }
.std-hero__num { font-variant-numeric: normal; }

/* Design > Theme while a frame is on */
#profile-builder.ed > .dz-note {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 560px;
  margin: 0 auto 14px;
  padding: 12px 12px 12px 16px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--md-blue) 12%, var(--ed-surface));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--md-blue) 30%, transparent);
}
#profile-builder.ed > .dz-note[hidden] { display: none; }
.dz-note__text { flex: 1 1 auto; margin: 0; font-size: 13.5px; line-height: 1.4; color: var(--ed-text); }
.dz-note__btn {
  flex: 0 0 auto;
  height: 34px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: var(--ed-solid);
  color: var(--ed-on-solid);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.dz-note.is-nudge { animation: dz-nudge 0.42s cubic-bezier(0.2, 0.8, 0.2, 1); }
@keyframes dz-nudge { 0%, 100% { transform: none; } 25% { transform: translateX(-5px); } 60% { transform: translateX(4px); } }
#profile-builder.ed .dz-themes.is-off .theme-item { opacity: 0.4; filter: saturate(0.6); }
#profile-builder.ed .dz-themes.is-off .theme-item.active::after { display: none !important; }
@media (prefers-reduced-motion: reduce) { .dz-note.is-nudge { animation: none; } }

/* ======================================================================
   Editing on the card: banner strip, click-to-upload, in-place address,
   slim rows for links with a thumbnail
   ====================================================================== */

/* the banner shows on the card and is clickable */
#profile-builder.ed #profile-preview-box .bannerp { overflow: hidden !important; }
#profile-builder.ed #profile-preview-box .bannerp #preview-banner {
  display: block !important;
  position: static !important;
  inset: auto !important;
  width: calc(100% + 28px) !important;
  max-width: none !important;
  height: 104px !important;
  margin: -14px -14px 14px !important;
  object-fit: cover !important;
  border: 0 !important;
  border-radius: 0 !important;
  opacity: 1 !important;
  filter: none;
  cursor: pointer;
  transition: filter 0.2s ease;
}
#profile-builder.ed #profile-preview-box .bannerp #preview-banner:hover,
#profile-builder.ed #profile-preview-box .bannerp #preview-banner.is-drop { filter: brightness(0.72); }
#profile-builder.ed #profile-preview-box .bannerp:has(#preview-banner:hover)::after,
#profile-builder.ed #profile-preview-box .bannerp:has(#preview-banner.is-drop)::after {
  content: "Change banner" !important;
  display: block !important;
  position: absolute !important;
  top: 40px;
  left: 50%;
  translate: -50% 0;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(5, 6, 11, 0.7);
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  pointer-events: none;
  inset: 40px auto auto 50% !important;
  width: auto !important;
  height: auto !important;
}
#profile-builder.ed #profile-preview-box .bannerp:has(#preview-banner.is-drop)::after { content: "Drop to use as banner" !important; }
/* the card tools sit under the banner */
#profile-builder.ed #profile-preview-box .bannerp .banner-actions2 { top: 114px !important; }

/* the avatar: click to upload, dots for every option */
#profile-builder.ed #profile-preview-box .avatar-column { position: relative; cursor: pointer; }
#profile-builder.ed #profile-preview-box #preview-avatar { cursor: pointer; transition: filter 0.2s ease; }
#profile-builder.ed #profile-preview-box .avatar-column:hover #preview-avatar,
#profile-builder.ed #profile-preview-box .avatar-column.is-drop #preview-avatar { filter: brightness(0.6); }
#profile-builder.ed #profile-preview-box .avatar-column::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 20px;
  height: 20px;
  translate: -50% -50%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 8.5a2 2 0 0 1 2-2h1.6l1.2-1.8h6.4l1.2 1.8H18a2 2 0 0 1 2 2V17a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2Z'/%3E%3Ccircle cx='12' cy='12.6' r='3.2'/%3E%3C/svg%3E") center / contain no-repeat;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}
#profile-builder.ed #profile-preview-box .avatar-column:hover::after,
#profile-builder.ed #profile-preview-box .avatar-column.is-drop::after { opacity: 1; }
#profile-builder.ed #profile-preview-box .avatar-column .avatar-upload {
  position: absolute !important;
  right: -4px !important;
  bottom: -4px !important;
  left: auto !important;
  top: auto !important;
  display: block !important;
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 2;
}
#profile-builder.ed #profile-preview-box .avatar-column:hover .avatar-upload,
#profile-builder.ed #profile-preview-box .avatar-column:focus-within .avatar-upload { opacity: 1; }
#profile-builder.ed #profile-preview-box .avatar-column .avatar-upload .mini {
  display: grid !important;
  place-items: center;
  width: 20px !important;
  height: 20px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: var(--ed-solid) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23808080'%3E%3Ccircle cx='5' cy='12' r='2.2'/%3E%3Ccircle cx='12' cy='12' r='2.2'/%3E%3Ccircle cx='19' cy='12' r='2.2'/%3E%3C/svg%3E") center / 12px no-repeat !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3) !important;
  cursor: pointer;
}
#profile-builder.ed #profile-preview-box .avatar-column .avatar-upload .mini i { display: none !important; }

/* a link's address: click to change it in place */
#profile-builder.ed #profile-preview-box .lc-url { cursor: text; border-radius: 6px; transition: background-color 0.15s ease; }
#profile-builder.ed #profile-preview-box .lc-url:hover { background: color-mix(in srgb, var(--ed-text) 7%, transparent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ed-text) 7%, transparent); }
#profile-builder.ed #profile-preview-box .lc-url:has(input) { display: block !important; background: transparent !important; box-shadow: none !important; }
#profile-builder.ed #profile-preview-box .lc-url-edit { display: block; margin-top: 3px; }
#profile-builder.ed #profile-preview-box .lc-url-edit input {
  width: 100% !important;
  height: 30px !important;
  padding: 0 10px !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: var(--ed-surface-2) !important;
  box-shadow: inset 0 0 0 1.5px var(--md-blue) !important;
  color: var(--ed-text) !important;
  font: inherit !important;
  font-size: 13px !important;
  outline: 0 !important;
}
#profile-builder.ed #profile-preview-box .lc-url-edit.is-bad input { box-shadow: inset 0 0 0 1.5px #e5484d !important; }
#profile-builder.ed #profile-preview-box .lc-url-edit.is-bad { animation: dz-nudge 0.4s cubic-bezier(0.2, 0.8, 0.2, 1); }

/* links with a thumbnail: a slim row with a small square picture, controls stay put */
#profile-builder.ed #profile-preview-box .link-card > div:not(.link-content):not(.reorder-controls):has(> img) {
  position: absolute !important;
  left: 28px !important;
  top: 50% !important;
  translate: 0 -50%;
  width: 40px !important;
  height: 40px !important;
  border-radius: 10px !important;
  overflow: hidden !important;
  z-index: 1;
}
#profile-builder.ed #profile-preview-box .link-card > div:not(.link-content):not(.reorder-controls):has(> img) > img {
  width: 100% !important;
  height: 100% !important;
  border: 0 !important;
  border-radius: 0 !important;
  object-fit: cover !important;
}
#profile-builder.ed #profile-preview-box .link-card > div:not(.link-content):not(.reorder-controls):has(> img) > button { display: none !important; }
#profile-builder.ed #profile-preview-box .link-card:has(> div:not(.link-content):not(.reorder-controls) > img) .link-content { padding-left: 80px !important; min-height: 56px !important; }
#profile-builder.ed #profile-preview-box .link-card:has(> div:not(.link-content):not(.reorder-controls) > img) .lc-grip { position: absolute; left: 6px; top: 50%; translate: 0 -50%; }
#profile-builder.ed #profile-preview-box .link-card > .reorder-controls { top: 50% !important; bottom: auto !important; transform: translateY(-50%) !important; }

/* ======================================================================
   Picture pop-ups: the banner preview is a real banner shape
   ====================================================================== */
.modal:not(:has(#avatar-style-block)) .img-modal__frame:has(#modal-img) {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 3 / 1 !important;
  border-radius: 16px !important;
  overflow: hidden !important;
}
.modal:not(:has(#avatar-style-block)) .img-modal__frame #modal-img { width: 100% !important; height: 100% !important; object-fit: cover !important; border-radius: 0 !important; }

/* the empty part of a row is for dragging: the address only covers its own text */
#profile-builder.ed #profile-preview-box .lc-url:not(:has(input)) { display: inline-block !important; width: auto !important; max-width: 100% !important; vertical-align: top; }
#profile-builder.ed #profile-preview-box .lc-title { width: fit-content !important; max-width: 100% !important; }
#profile-builder.ed #profile-preview-box .link-card:not(.preview-block-host),
#profile-builder.ed #profile-preview-box .link-card:not(.preview-block-host) .link-content,
#profile-builder.ed #profile-preview-box .link-card:not(.preview-block-host) .link-text { cursor: grab; }
#profile-builder.ed #profile-preview-box .link-card .lc-title { cursor: text; }
#profile-builder.ed #profile-preview-box .link-card .lc-url { cursor: text; }

/* section header tools: flat icons like the link rows, shown on hover; dragging replaces up/down */
#profile-builder.ed #profile-preview-box .category-header { position: relative; display: flex !important; align-items: center !important; justify-content: space-between !important; min-height: 32px; cursor: grab; }
#profile-builder.ed #profile-preview-box .category-reorder {
  position: static !important;
  display: flex !important;
  align-items: center;
  gap: 2px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  opacity: 0;
  transition: opacity 0.2s ease;
}
#profile-builder.ed #profile-preview-box .category-container:hover .category-reorder,
#profile-builder.ed #profile-preview-box .category-reorder:focus-within { opacity: 1; }
@media (hover: none) { #profile-builder.ed #profile-preview-box .category-reorder { opacity: 1; } }
#profile-builder.ed #profile-preview-box .category-reorder .reorder-btn.up,
#profile-builder.ed #profile-preview-box .category-reorder .reorder-btn.down { display: none !important; }
#profile-builder.ed #profile-preview-box .category-reorder .reorder-btn {
  width: 28px !important;
  height: 28px !important;
  display: grid !important;
  place-items: center;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: transparent !important;
  box-shadow: none !important;
  transform: none !important;
  color: var(--ed-muted) !important;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}
#profile-builder.ed #profile-preview-box .category-reorder .reorder-btn:hover { background: color-mix(in srgb, var(--ed-text) 8%, transparent) !important; color: var(--ed-text) !important; }
#profile-builder.ed #profile-preview-box .category-reorder .reorder-btn.delete-btn:hover { color: #e5484d !important; }
#profile-builder.ed #profile-preview-box .category-reorder .reorder-btn i {
  display: inline-block !important;
  font-size: 12.5px !important;
  color: inherit !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}
#profile-builder.ed #profile-preview-box .category-header i[class*="fa-"] { font-weight: 900 !important; }
/* the section shows or hides its tools as a group; the buttons themselves stay solid */
#profile-builder.ed #profile-preview-box .category-reorder .reorder-btn { opacity: 1 !important; }

/* renaming a link in place: a slim field where the text was, no buttons */
#profile-builder.ed #profile-preview-box .inline-editable.is-editing { display: block !important; width: 100% !important; padding: 0 !important; background: transparent !important; }
#profile-builder.ed #profile-preview-box .inline-edit-wrap { display: block !important; position: relative; width: 100% !important; margin: 0 !important; }
#profile-builder.ed #profile-preview-box .inline-edit-main { display: block !important; position: relative; width: 100% !important; }
#profile-builder.ed #profile-preview-box .inline-edit-act { display: none !important; }
#profile-builder.ed #profile-preview-box .inline-edit-field {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  margin: -3px 0 -3px -8px !important;
  padding: 3px 54px 3px 8px !important;
  box-sizing: content-box !important;
  max-width: calc(100% - 54px) !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: var(--ed-surface-2) !important;
  box-shadow: inset 0 0 0 1.5px var(--md-blue) !important;
  color: var(--ed-text) !important;
  font: inherit !important;
  line-height: inherit !important;
  letter-spacing: inherit !important;
  outline: 0 !important;
  resize: none !important;
}
#profile-builder.ed #profile-preview-box .inline-edit-count {
  position: absolute !important;
  right: 8px !important;
  top: 50% !important;
  translate: 0 -50%;
  margin: 0 !important;
  font-size: 11px !important;
  font-weight: 500 !important;
  color: var(--ed-muted) !important;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}
#profile-builder.ed #profile-preview-box .inline-edit-count.is-warn { opacity: 1; }
#profile-builder.ed #profile-preview-box .inline-edit-count.is-limit { opacity: 1; color: #e5484d !important; }
/* the row keeps its place and its switch while renaming */
#profile-builder.ed #profile-preview-box .link-card.is-inline-editing { background: var(--ed-surface-2) !important; }
#profile-builder.ed #profile-preview-box .link-card.is-inline-editing > .reorder-controls { display: flex !important; }
#profile-builder.ed #profile-preview-box .link-card.is-inline-editing .reorder-btn:not(.vis-btn) { opacity: 0 !important; pointer-events: none; }

/* in-place fields: no outline, just the soft background */
#profile-builder.ed #profile-preview-box .inline-edit-field,
#profile-builder.ed #profile-preview-box .inline-edit-field:focus,
#profile-builder.ed #profile-preview-box .lc-url-edit input,
#profile-builder.ed #profile-preview-box .lc-url-edit input:focus {
  box-shadow: none !important;
  outline: 0 !important;
  border: 0 !important;
}
#profile-builder.ed #profile-preview-box .inline-edit-field { background: color-mix(in srgb, var(--ed-text) 8%, transparent) !important; }
#profile-builder.ed #profile-preview-box .lc-url-edit input { background: color-mix(in srgb, var(--ed-text) 8%, transparent) !important; }
/* a wrong address still shows, in red */
#profile-builder.ed #profile-preview-box .lc-url-edit.is-bad input { box-shadow: inset 0 0 0 1.5px #e5484d !important; }

/* the paste bar's icon is the Melodreams pine tree */
#profile-builder.ed #profile-preview-box .quick-add__icon i { display: none !important; }
#profile-builder.ed #profile-preview-box .quick-add__icon {
  background-image: url("https://assets.melodreams.com/assets/media/logo/logo.png") !important;
  background-position: center !important;
  background-size: 15px 15px !important;
  background-repeat: no-repeat !important;
}
:root[data-theme="light"] #profile-builder.ed #profile-preview-box .quick-add__icon {
  background-image: url("https://assets.melodreams.com/assets/media/logo/logo-onlight.png") !important;
}
/* the avatar's corner badge is not needed: a click on the avatar opens every option */
#profile-builder.ed #profile-preview-box .avatar-column .avatar-upload { display: none !important; }

/* the avatar: no ring unless the border is on, and then a thin one */
#preview-avatar.profile-avatar:not(.av-bordered) { box-shadow: none !important; border: 0 !important; outline: 0 !important; }
#preview-avatar.profile-avatar.av-bordered { border: 0 !important; outline: 0 !important; box-shadow: 0 0 0 2px var(--av-border-color, color-mix(in srgb, var(--ed-text) 22%, transparent)) !important; }

/* the drag dots are always there, a little stronger on hover */
#profile-builder.ed #profile-preview-box .lc-grip { opacity: 0.4 !important; cursor: grab; }
#profile-builder.ed #profile-preview-box .link-card:hover .lc-grip { opacity: 0.75 !important; }

/* drag dots and text sit a bit further in from the row's edge */
#profile-builder.ed #profile-preview-box .link-card .link-content { padding-left: 16px !important; }
#profile-builder.ed #profile-preview-box .link-card:has(> div:not(.link-content):not(.reorder-controls) > img) .link-content { padding-left: 90px !important; }
#profile-builder.ed #profile-preview-box .link-card:has(> div:not(.link-content):not(.reorder-controls) > img) .lc-grip { left: 16px !important; }
#profile-builder.ed #profile-preview-box .link-card > div:not(.link-content):not(.reorder-controls):has(> img) { left: 38px !important; }
/* only the drag dots step a little to the left; the text stays put */
#profile-builder.ed #profile-preview-box .link-card .lc-grip { position: relative; left: -6px; }
#profile-builder.ed #profile-preview-box .link-card:has(> div:not(.link-content):not(.reorder-controls) > img) .lc-grip { position: absolute; left: 10px !important; }
#profile-builder.ed #profile-preview-box .link-card .lc-grip { left: -3px; }
#profile-builder.ed #profile-preview-box .link-card:has(> div:not(.link-content):not(.reorder-controls) > img) .lc-grip { left: 13px !important; }

/* ======================================================================
   Settings: groups on the left, the chosen group's options on the right,
   an option opens its page there. Narrow screens: one list you drill into.
   ====================================================================== */
#profile-builder.ed #preview-username { cursor: pointer; border-radius: 6px; transition: color 0.15s ease; }
#profile-builder.ed #preview-username:hover { color: var(--ed-text) !important; text-decoration: underline; text-underline-offset: 3px; }

#account.set > .section-header h2 { font-size: 34px !important; letter-spacing: -0.045em !important; line-height: 1.1 !important; }
#account.set > .section-header p { display: none !important; }
#account.set #main-menu .menu-option.set-gone { display: none !important; }
#account.set .set-cats { display: none; }

/* the options of a group: one card of rows, label left, icon right */
#account.set #main-menu {
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
#account.set #main-menu .set-group { margin: 0 0 22px; }
#account.set #main-menu .set-group > h3,
#account.set #main-menu .set-group h3 {
  margin: 0 4px 10px !important;
  padding: 0 !important;
  border: 0 !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  letter-spacing: 0.07em !important;
  text-transform: uppercase !important;
  color: var(--ed-muted) !important;
}
#account.set #main-menu .menu-option {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 14px !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 15px 18px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: var(--ed-surface) !important;
  box-shadow: inset 0 1px 0 var(--ed-line) !important;
  font-size: 15px !important;
  font-weight: 550 !important;
  color: var(--ed-text) !important;
  cursor: pointer;
  transition: background-color 0.15s ease;
}
#account.set #main-menu .menu-option:hover { background: var(--ed-surface-2) !important; }
#account.set #main-menu .menu-option > span { flex: 1 1 auto; text-align: left; color: inherit !important; }
#account.set #main-menu .menu-option > i { flex: 0 0 auto; font-size: 14px !important; color: var(--ed-muted) !important; }
#account.set #main-menu .menu-option[hidden] { display: none !important; }
#account.set #main-menu .menu-option:focus-visible { outline: 2px solid #4f8cff; outline-offset: -2px; }
/* first and last visible row round the card */
#account.set #main-menu .set-group .menu-option:nth-child(1 of .menu-option:not(.set-gone):not([hidden])) { border-radius: 18px 18px 0 0 !important; box-shadow: none !important; }
#account.set #main-menu .set-group .menu-option:nth-last-child(1 of .menu-option:not(.set-gone):not([hidden])) { border-radius: 0 0 18px 18px !important; }
#account.set #main-menu .set-group .menu-option:nth-child(1 of .menu-option:not(.set-gone):not([hidden])):nth-last-child(1 of .menu-option:not(.set-gone):not([hidden])) { border-radius: 18px !important; }
#account.set #main-menu .menu-option[style*="ff6b6b"],
#account.set #main-menu .menu-option[style*="ff6b6b"] * { color: #e5484d !important; }
#account.set #main-menu h3[style*="ff6b6b"] { color: #e5484d !important; }

/* pages */
#account.set .account-subsection,
#account.set #account-overview { border-radius: 20px !important; }
#account.set .subsection-header h3 { font-size: 22px !important; font-weight: 800 !important; letter-spacing: -0.035em !important; }
#account.set #account-overview .overview-details { margin-top: 14px !important; }
#account.set #account-overview .overview-compact { margin-bottom: 0 !important; min-height: 0 !important; }

@media (min-width: 1000px) {
  #account.set.active {
    display: grid !important;
    grid-template-columns: 216px minmax(0, 620px);
    column-gap: 32px;
    align-items: start;
    justify-content: center;
    max-width: none !important;
  }
  #account.set > .section-header { grid-column: 1 / -1; margin-bottom: 22px !important; }
  #account.set > :not(.section-header):not(.set-cats) { grid-column: 2; margin-top: 0 !important; max-width: none !important; width: 100% !important; }

  /* left: the groups */
  #account.set > .set-cats {
    display: flex;
    flex-direction: column;
    gap: 2px;
    grid-column: 1;
    grid-row: 2 / span 60;
    position: sticky;
    top: 24px;
  }
  .set-cat {
    display: flex;
    align-items: center;
    gap: 11px;
    width: 100%;
    padding: 10px 12px;
    border: 0;
    border-radius: 11px;
    background: transparent;
    color: var(--ed-muted);
    font: inherit;
    font-size: 14.5px;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
  }
  .set-cat i { flex: 0 0 16px; width: 16px; text-align: center; font-size: 13.5px; }
  .set-cat:hover { background: var(--ed-surface); color: var(--ed-text); }
  .set-cat.is-current { background: var(--ed-surface-2); color: var(--ed-text); font-weight: 650; }
  .set-cat.is-danger { margin-top: 10px; }
  .set-cat.is-danger, .set-cat.is-danger:hover, .set-cat.is-danger.is-current { color: #e5484d; }
  .set-cat[hidden] { display: none; }
  .set-cat:focus-visible { outline: 2px solid #4f8cff; outline-offset: 1px; }

  /* right: only the chosen group; its title is the page title */
  #account.set:not(.set-measure) #main-menu .set-group:not(.is-on) { display: none; }
  #account.set #main-menu .set-group > h3,
  #account.set #main-menu .set-group h3 {
    margin: 2px 2px 16px !important;
    font-size: 22px !important;
    font-weight: 800 !important;
    letter-spacing: -0.035em !important;
    text-transform: none !important;
    color: var(--ed-text) !important;
  }
  #account.set #main-menu h3[style*="ff6b6b"] { color: var(--ed-text) !important; }
  #account.set[data-cat="overview"] > #main-menu { display: none !important; }
  #account.set:not([data-cat="overview"]) > #account-overview,
  #account.set.set-open > #account-overview { display: none !important; }
  #account.set #account-overview #details-panel { display: block !important; }
  #account.set #account-overview #toggle-details-btn { display: none !important; }
}

/* "melo.bio/" and the field are one joined control */
.section .chg-input-wrap {
  display: flex !important;
  align-items: stretch !important;
  gap: 0 !important;
  border: 1px solid var(--ed-line) !important;
  border-radius: 14px !important;
  background: var(--ed-surface) !important;
  overflow: hidden !important;
  box-shadow: none !important;
  transition: border-color 0.15s ease;
}
.section .chg-input-wrap:focus-within { border-color: color-mix(in srgb, var(--ed-text) 45%, transparent) !important; }
.section .chg-input-wrap .chg-input-prefix {
  display: flex !important;
  align-items: center;
  margin: 0 !important;
  padding: 0 0 0 14px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--ed-muted) !important;
  box-shadow: none !important;
}
.section .chg-input-wrap input,
.section .chg-input-wrap .chg-input {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  outline: 0 !important;
}
.section .chg-input-wrap .chg-input--prefixed { padding-left: 2px !important; }

/* ======================================================================
   Settings, pass 2: a real overview, calm pages, one style for fields and buttons
   ====================================================================== */
#account.set > .section-header h2 { font-size: 30px !important; }
#account.set > #account-overview { display: none !important; }

/* overview */
#account.set .set-ov { display: none; }
@media (min-width: 1000px) {
  #account.set[data-cat="overview"]:not(.set-open) > .set-ov { display: block; grid-column: 2; }
}
@media (max-width: 999px) {
  #account.set:not(.set-open) > .set-ov { display: block; margin-bottom: 18px; }
}
.set-ov__head { display: flex; align-items: center; gap: 16px; margin: 0 0 18px; padding: 4px 2px; }
.set-ov__avatar { width: 60px; height: 60px; flex: 0 0 60px; border-radius: 50%; object-fit: cover; background: var(--ed-surface-2); }
.set-ov__who { flex: 1 1 auto; min-width: 0; }
.set-ov__name { font-size: 22px; font-weight: 800; letter-spacing: -0.035em; color: var(--ed-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.set-ov__handle { margin-top: 2px; font-size: 14px; color: var(--ed-muted); }
.set-ov__plan { flex: 0 0 auto; padding: 6px 12px; border-radius: 999px; background: var(--ed-surface-2); color: var(--ed-text); font-size: 12.5px; font-weight: 700; }
.set-ov__plan.is-paid { background: color-mix(in srgb, var(--md-blue) 16%, transparent); color: var(--md-blue); }
.set-ov__rows { border-radius: 18px; overflow: hidden; background: var(--ed-surface); }
.set-ov__row {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 15px 18px;
  border: 0;
  background: transparent;
  box-shadow: inset 0 1px 0 var(--ed-line);
  color: var(--ed-text);
  font: inherit;
  font-size: 15px;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.set-ov__row:first-child { box-shadow: none; }
.set-ov__row:hover:not(.is-static) { background: var(--ed-surface-2); }
.set-ov__row.is-static { cursor: default; }
.set-ov__label { flex: 0 0 140px; font-weight: 550; }
.set-ov__value { flex: 1 1 auto; min-width: 0; color: var(--ed-muted); text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.set-ov__row > i { flex: 0 0 auto; font-size: 12px; color: var(--ed-muted); }
.set-ov__row:focus-visible { outline: 2px solid #4f8cff; outline-offset: -2px; }

/* pages: no outer box, the page sits on the background like the group lists */
#account.set .account-subsection {
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
#account.set .account-subsection .subsection-header { display: flex !important; align-items: center !important; gap: 10px !important; margin: 0 0 18px !important; padding: 0 !important; border: 0 !important; }
#account.set .account-subsection .subsection-header h3 { margin: 0 !important; font-size: 24px !important; font-weight: 800 !important; letter-spacing: -0.04em !important; color: var(--ed-text) !important; }
#account.set .account-subsection .subsection-header .back-btn {
  display: grid !important;
  place-items: center;
  width: 32px; height: 32px;
  margin: 0 !important;
  border-radius: 50%;
  background: var(--ed-surface);
  color: var(--ed-muted) !important;
  font-size: 13px !important;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}
#account.set .account-subsection .subsection-header .back-btn:hover { background: var(--ed-surface-2); color: var(--ed-text) !important; }
#account.set.set-single .account-subsection .subsection-header .back-btn { display: none !important; }
#account.set .account-subsection p,
#account.set .account-subsection .chg-lede { color: var(--ed-muted) !important; }

/* panels inside pages: soft, borderless */
#account.set .account-subsection :is(.chg-hint, .info-box, .info-content, .extra-note, .cd-note, .cd-hint, .mon-card, .form-hint, .input-hint, .tfa-card, .tfa-method, .dev-card, [class*="__card"], [class*="-card"]):not(.set-ov__row) {
  border-color: transparent !important;
  box-shadow: none !important;
}
/* only the cards themselves, not their parts (dev-card__title and the like) */
#account.set .account-subsection :is(.chg-hint, .info-box, .tfa-card, .tfa-method, .dev-card, [class*="-card"]:not(.set-ov__row):not([class*="-card__"])) {
  background: var(--ed-surface) !important;
  border-radius: 16px !important;
}

/* fields */
#account.set .account-subsection :is(input[type="text"], input[type="email"], input[type="password"], input[type="url"], input[type="number"], input:not([type]), select, textarea):not(.chg-input--prefixed) {
  border: 0 !important;
  border-radius: 12px !important;
  background: var(--ed-surface) !important;
  box-shadow: none !important;
  color: var(--ed-text) !important;
}
#account.set .account-subsection :is(input, select, textarea):focus { box-shadow: none !important; outline: 0 !important; }
#account.set .account-subsection label, #account.set .account-subsection .chg-label { color: var(--ed-text) !important; font-weight: 600 !important; }

/* the main button of a page: a solid pill in the theme's ink */
#account.set .account-subsection :is(.chg-submit, .btn-action.btn-save, .btn.primary, .cd-btn-primary, .exp-btn) {
  border: 0 !important;
  border-radius: 999px !important;
  background: var(--ed-solid) !important;
  background-image: none !important;
  color: var(--ed-on-solid) !important;
  box-shadow: none !important;
  font-weight: 700 !important;
}
#account.set .account-subsection :is(.chg-submit, .btn-action.btn-save, .btn.primary, .cd-btn-primary, .exp-btn) * { color: var(--ed-on-solid) !important; }
#account.set .account-subsection :is(.chg-submit, .btn-action.btn-save, .btn.primary, .cd-btn-primary, .exp-btn):disabled { opacity: 0.35 !important; }
#account.set .account-subsection :is(.chg-submit, .btn-action.btn-save, .btn.primary, .cd-btn-primary, .exp-btn):hover:not(:disabled) { filter: brightness(0.9); }
/* quiet buttons */
#account.set .account-subsection :is(.chg-secondary, .cd-btn-ghost, .dev-btn--ghost, .del-back) {
  border: 0 !important;
  border-radius: 999px !important;
  background: var(--ed-surface-2) !important;
  color: var(--ed-text) !important;
  box-shadow: none !important;
}
/* destructive buttons: red text on a soft red, never a heavy block */
#account.set .account-subsection :is(.btn.danger, .cd-btn-danger, .dev-btn--danger, .del-submit) {
  border: 0 !important;
  border-radius: 999px !important;
  background: color-mix(in srgb, #e5484d 12%, transparent) !important;
  background-image: none !important;
  color: #e5484d !important;
  box-shadow: none !important;
}

/* named panels on the security pages */
#account.set .account-subsection :is(.chg-hero, .chg-tips, .chg-cooldown, .mfa-row, .tfa-status-pill) {
  border: 0 !important;
  border-radius: 16px !important;
  background: var(--ed-surface) !important;
  box-shadow: none !important;
}
#account.set .account-subsection .mfa-row li {
  border: 0 !important;
  border-radius: 12px !important;
  background: var(--ed-surface-2) !important;
}
#account.set .account-subsection :is(.chg-hero__icon, .mfa-row__icon) { background: var(--ed-surface-2) !important; }
#account.set .account-subsection .chg-hint { background: transparent !important; }
#account.set .account-subsection .linked-accounts { border: 0 !important; padding: 0 !important; background: transparent !important; }
/* pages line up with their title: no extra indent */
#account.set .account-subsection > :not(.subsection-header) { padding-left: 0 !important; padding-right: 0 !important; margin-left: 0 !important; margin-right: 0 !important; }
#account.set .account-subsection > :is(.chg-hero, .chg-cooldown, .mfa-row, .tfa-status-pill) { padding-left: 16px !important; padding-right: 16px !important; }
#account.set .account-subsection .tfa-status-message { text-align: left !important; }
#account.set .account-subsection .chg-hint.chg-hint.chg-hint { background: transparent !important; padding: 0 !important; }

/* the settings menu sits on its own card */
@media (min-width: 1000px) {
  #account.set > .set-cats {
    padding: 8px;
    border-radius: 20px;
    background: var(--ed-surface);
    gap: 2px;
  }
  #account.set .set-cat { padding: 10px 12px; border-radius: 12px; }
  #account.set .set-cat:hover { background: var(--ed-surface-2); }
  #account.set .set-cat.is-current { background: var(--ed-surface-2); color: var(--ed-text); }
  #account.set .set-cat.is-current i { color: var(--ed-text); }
  #account.set .set-cat.is-danger { margin-top: 6px; position: relative; }
  #account.set .set-cat.is-danger::before {
    content: "";
    position: absolute;
    left: 10px;
    right: 10px;
    top: -4px;
    height: 1px;
    background: var(--ed-line);
  }
  #account.set .set-cat.is-danger:hover { background: color-mix(in srgb, #e5484d 10%, transparent); }
}

/* delete account: step dots on the left, the reason as one dropdown */
#account.set #delete-account .del-progress { justify-content: flex-start !important; margin: 0 0 22px !important; padding: 0 !important; }
#account.set #delete-account .del-reasons[hidden] { display: none !important; }
#account.set #delete-account .del-select { position: relative; margin: 0 0 12px; }
#account.set #delete-account .del-select select {
  width: 100%;
  height: 46px;
  padding: 0 44px 0 16px !important;
  border: 0 !important;
  border-radius: 12px !important;
  background: var(--ed-surface) !important;
  box-shadow: none !important;
  color: var(--ed-text) !important;
  font: inherit;
  font-size: 15px;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}
#account.set #delete-account .del-select select:focus { box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--ed-text) 45%, transparent) !important; outline: 0; }
#account.set #delete-account .del-select::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--ed-muted);
  border-bottom: 2px solid var(--ed-muted);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
#account.set #delete-account .del-select select option { background: var(--ed-side); color: var(--ed-text); }
#account.set #delete-account .del-textarea { min-height: 84px; }
@media (min-width: 1000px) {
  #account.set .set-cat.is-danger.is-current, #account.set .set-cat.is-danger.is-current i { color: #e5484d; }
  #account.set .set-cat.is-danger.is-current { background: color-mix(in srgb, #e5484d 10%, transparent); }
}

/* ======================================================================
   Delete account on one page
   ====================================================================== */
#account.set #delete-account.del-one .del-progress,
#account.set #delete-account.del-one .del-nav,
#account.set #delete-account.del-one .del-title,
#account.set #delete-account.del-one .del-sub,
#account.set #delete-account.del-one .del-textarea,
#account.set #delete-account.del-one .del-summary > li:not([data-del-org]) { display: none !important; }
#account.set #delete-account.del-one .del-step { display: block !important; opacity: 1 !important; transform: none !important; animation: none !important; margin: 0 !important; padding: 0 !important; }
#account.set #delete-account.del-one .del-summary { margin: 0 0 18px !important; padding: 0 !important; list-style: none !important; }
#account.set #delete-account.del-one .del-summary:not(:has([data-del-org])) { display: none !important; }
#account.set #delete-account.del-one .del-summary [data-del-org] {
  padding: 14px 16px !important;
  border-radius: 14px !important;
  background: color-mix(in srgb, #e5484d 10%, transparent) !important;
  color: #e5484d !important;
  font-size: 14px !important;
  line-height: 1.5 !important;
}
#account.set #delete-account.del-one .del-intro { margin: 0 0 24px !important; font-size: 15px !important; line-height: 1.6 !important; color: var(--ed-muted) !important; max-width: 560px; }
#account.set #delete-account.del-one .del-label { display: block; margin: 0 0 8px; font-size: 14px; font-weight: 600; color: var(--ed-text); }
#account.set #delete-account.del-one .del-select { margin: 0 0 20px !important; }
#account.set #delete-account.del-one .del-field { margin: 0 0 14px !important; }
#account.set #delete-account.del-one .del-field-wrap { position: relative; }
#account.set #delete-account.del-one #delete-password { width: 100%; height: 46px; padding: 0 16px !important; font-size: 15px; }
#account.set #delete-account.del-one .del-pass-status { margin-top: 6px; font-size: 12.5px; }

/* forwarding: folded away */
#account.set #delete-account.del-one .del-fold {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ed-muted);
  font: inherit;
  font-size: 14px;
  font-weight: 550;
  cursor: pointer;
}
#account.set #delete-account.del-one .del-fold:hover { color: var(--ed-text); }
#account.set #delete-account.del-one .del-fold i { font-size: 11px; transition: transform 0.2s ease; }
#account.set #delete-account.del-one .del-fold[aria-expanded="true"] i { transform: rotate(180deg); }
#account.set #delete-account.del-one .del-farewell[hidden] { display: none !important; }
#account.set #delete-account.del-one .del-farewell {
  margin: 0 0 20px !important;
  padding: 16px !important;
  border: 0 !important;
  border-radius: 16px !important;
  background: var(--ed-surface) !important;
}
#account.set #delete-account.del-one .del-farewell__lead { margin: 0 0 4px !important; font-weight: 700 !important; color: var(--ed-text) !important; }
#account.set #delete-account.del-one .del-farewell__body { margin: 0 0 12px !important; font-size: 13.5px !important; }

/* the one button */
#account.set #delete-account.del-one #confirm-delete {
  width: 100%;
  height: 48px;
  margin: 4px 0 0 !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: #e5484d !important;
  background-image: none !important;
  color: #fff !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  box-shadow: none !important;
}
#account.set #delete-account.del-one #confirm-delete * { color: #fff !important; }
#account.set #delete-account.del-one #confirm-delete:disabled { opacity: 0.35 !important; cursor: not-allowed; }
#account.set #delete-account.del-one #confirm-delete:hover:not(:disabled) { filter: brightness(0.92); }
#account.set #delete-account.del-one .del-status { margin-top: 14px !important; }

/* delete page fields: soft and borderless, an icon in each, no labels */
#account.set #delete-account.del-one .del-label { display: none !important; }
#account.set #delete-account.del-one :is(.del-select select, #delete-password, #del-forward) {
  height: 52px !important;
  padding: 0 16px 0 48px !important;
  border: 0 !important;
  border-radius: 16px !important;
  background-color: var(--ed-surface) !important;
  background-repeat: no-repeat !important;
  background-position: 17px center !important;
  background-size: 18px 18px !important;
  box-shadow: none !important;
  color: var(--ed-text) !important;
  font-size: 15px !important;
  transition: background-color 0.15s ease;
}
#account.set #delete-account.del-one :is(.del-select select, #delete-password, #del-forward):hover { background-color: var(--ed-surface-2) !important; }
#account.set #delete-account.del-one :is(.del-select select, #delete-password, #del-forward):focus {
  background-color: var(--ed-surface-2) !important;
  box-shadow: none !important;
  outline: 0 !important;
}
#account.set #delete-account.del-one .del-select select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b8e99' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 15a2 2 0 0 1-2 2H8l-4 4V6a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2Z'/%3E%3C/svg%3E") !important;
}
#account.set #delete-account.del-one #delete-password {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b8e99' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4.5' y='10.5' width='15' height='10' rx='2.5'/%3E%3Cpath d='M8 10.5V8a4 4 0 0 1 8 0v2.5'/%3E%3C/svg%3E") !important;
}
#account.set #delete-account.del-one #del-forward {
  width: 100%;
  background-color: var(--ed-surface-2) !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b8e99' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 14a4.5 4.5 0 0 0 6.4 0l3-3a4.5 4.5 0 0 0-6.4-6.4l-1 1'/%3E%3Cpath d='M14 10a4.5 4.5 0 0 0-6.4 0l-3 3a4.5 4.5 0 0 0 6.4 6.4l1-1'/%3E%3C/svg%3E") !important;
}
#account.set #delete-account.del-one .del-select { margin: 0 0 10px !important; }
#account.set #delete-account.del-one .del-field { margin: 0 0 16px !important; }

/* forwarding: a soft panel, a link icon on its opener */
#account.set #delete-account.del-one .del-fold {
  display: flex;
  width: 100%;
  height: 52px;
  margin: 0 0 16px;
  padding: 0 18px 0 48px;
  border-radius: 16px;
  background: var(--ed-surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b8e99' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m13 6 6 6-6 6'/%3E%3C/svg%3E") 17px center / 18px no-repeat;
  justify-content: space-between;
  color: var(--ed-text);
  font-size: 15px;
  font-weight: 500;
  transition: background-color 0.15s ease;
}
#account.set #delete-account.del-one .del-fold:hover { background-color: var(--ed-surface-2); }
#account.set #delete-account.del-one .del-fold[aria-expanded="true"] { margin-bottom: 8px; }
#account.set #delete-account.del-one .del-farewell { padding: 14px !important; }
#account.set #delete-account.del-one .del-farewell__lead { display: none !important; }
#account.set #delete-account.del-one .del-farewell__label { display: none !important; }
#account.set #delete-account.del-one .del-farewell__body { margin: 0 0 10px 2px !important; font-size: 13px !important; color: var(--ed-muted) !important; }
#account.set #delete-account.del-one .del-farewell__for { margin: 10px 0 0 2px !important; font-size: 13px !important; color: var(--ed-muted) !important; }
#account.set #delete-account.del-one .del-forward-pick {
  border: 0 !important;
  border-radius: 999px !important;
  background: var(--ed-surface-2) !important;
  color: var(--ed-text) !important;
  padding: 4px 10px !important;
}

/* ======================================================================
   Settings, pass 3: every page in the home page's look.
   One field style (soft, no outline, an icon), one panel style, black/white pills.
   ====================================================================== */

/* --- fields --- */
#account.set .account-subsection :is(.chg-input, .cd-input, .rdm-input):not(.chg-input--prefixed),
#account.set .account-subsection .chg-input-wrap {
  height: 52px !important;
  min-height: 52px !important;
  border: 0 !important;
  border-radius: 16px !important;
  background-color: var(--ed-surface) !important;
  box-shadow: none !important;
  outline: 0 !important;
  color: var(--ed-text) !important;
  font-size: 15px !important;
  transition: background-color 0.15s ease;
}
#account.set .account-subsection :is(.chg-input, .cd-input, .rdm-input):not(.chg-input--prefixed) {
  padding: 0 16px 0 48px !important;
  background-repeat: no-repeat !important;
  background-position: 17px center !important;
  background-size: 18px 18px !important;
}
#account.set .account-subsection :is(.chg-input, .cd-input, .rdm-input):hover,
#account.set .account-subsection .chg-input-wrap:hover,
#account.set .account-subsection :is(.chg-input, .cd-input, .rdm-input):focus,
#account.set .account-subsection .chg-input-wrap:focus-within { background-color: var(--ed-surface-2) !important; box-shadow: none !important; }
#account.set .account-subsection .chg-input-wrap .chg-input { height: 100% !important; min-height: 0 !important; background: transparent !important; padding: 0 16px 0 2px !important; }
#account.set .account-subsection .chg-input-wrap .chg-input-prefix { padding-left: 16px !important; font-size: 15px !important; }
#account.set .account-subsection .chg-eye { background: transparent !important; border: 0 !important; color: var(--ed-muted) !important; }

/* icons in fields, by what they hold */
#account.set .account-subsection input.chg-input[type="password"] { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b8e99' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4.5' y='10.5' width='15' height='10' rx='2.5'/%3E%3Cpath d='M8 10.5V8a4 4 0 0 1 8 0v2.5'/%3E%3C/svg%3E") !important; }
#account.set #change-email input.chg-input { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b8e99' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='5.5' width='17' height='13' rx='2.5'/%3E%3Cpath d='m4 7 8 6 8-6'/%3E%3C/svg%3E") !important; }
#account.set #change-name input.chg-input { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b8e99' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8.5' r='3.5'/%3E%3Cpath d='M5 20a7 7 0 0 1 14 0'/%3E%3C/svg%3E") !important; }
#account.set #custom-domain .cd-input { font-family: inherit !important; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b8e99' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8.5'/%3E%3Cpath d='M3.5 12h17M12 3.5a13 13 0 0 1 0 17M12 3.5a13 13 0 0 0 0 17'/%3E%3C/svg%3E") !important; }
#account.set #redeem-code .rdm-input { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b8e99' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='8.5' width='17' height='12' rx='2'/%3E%3Cpath d='M12 8.5v12M3.5 12.5h17'/%3E%3C/svg%3E") !important; }

/* labels and small text */
#account.set .account-subsection .chg-label { font-size: 13.5px !important; font-weight: 600 !important; color: var(--ed-text) !important; }
#account.set .account-subsection :is(.chg-count, .chg-meta, .input-hint, .form-hint) { color: var(--ed-muted) !important; font-size: 12.5px !important; }

/* --- panels: soft, borderless, icon tile --- */
#account.set .account-subsection :is(.dev-hero, .exp-hero, .rdm-hero, .support-tier, .ap-card, .ap-facts, .dev-card, .brand-row, .redeem-history__row, .groups-row) {
  border: 0 !important;
  border-radius: 18px !important;
  background: var(--ed-surface) !important;
  box-shadow: none !important;
}
#account.set .account-subsection :is(.dev-hero, .exp-hero, .rdm-hero, .support-tier) { padding: 16px 18px !important; }
#account.set .account-subsection :is(.dev-hero__icon, .exp-hero__icon, .rdm-hero__icon, .dev-card__icon, .ap-card__icon, .brand-row__icon) {
  border: 0 !important;
  border-radius: 12px !important;
  background: var(--ed-surface-2) !important;
  color: var(--ed-text) !important;
}
#account.set .account-subsection :is(.dev-hero__icon, .exp-hero__icon, .rdm-hero__icon, .dev-card__icon, .ap-card__icon, .brand-row__icon) i { color: var(--ed-text) !important; }
#account.set .account-subsection :is(.dev-card__main, .dev-card__title, .dev-card__meta, .ap-card__row, .ap-card__lead, .ap-card__id, .ap-card__name, .ap-card__sub, .ap-fact) { background: transparent !important; }
#account.set .account-subsection .ap-facts { padding: 4px 16px !important; }
#account.set .account-subsection .ap-fact + .ap-fact { box-shadow: inset 0 1px 0 var(--ed-line); }
#account.set .account-subsection .dev-card__pill { border: 0 !important; background: color-mix(in srgb, #30a46c 14%, transparent) !important; color: #30a46c !important; }
#account.set .account-subsection .dev-section__count { background: var(--ed-surface-2) !important; color: var(--ed-text) !important; }
#account.set .account-subsection .redeem-history__row,
#account.set .account-subsection .groups-row { padding: 14px 16px !important; }
#account.set .account-subsection .groups-row:hover { background: var(--ed-surface) !important; }
#account.set .account-subsection .brand-row:hover { background: var(--ed-surface-2) !important; }

/* extra usernames: each one a soft row */
#account.set #extra-usernames li { border: 0 !important; border-radius: 16px !important; background: var(--ed-surface) !important; padding: 14px 16px !important; }

/* activity: neutral rows, the colour stays on the small icon */
#account.set #account-activity div[style*="border-radius:12px"] {
  border: 0 !important;
  border-radius: 16px !important;
  background: var(--ed-surface) !important;
  margin: 0 0 8px !important;
}
#account.set #account-activity div[style*="width:34px"] { background: var(--ed-surface-2) !important; border-radius: 12px !important; }

/* --- buttons --- */
#account.set .account-subsection :is(.btn.primary, .btn-primary, #export-my-data, #redeem-submit, #save-domain-btn, .chg-submit, .cd-btn-primary) {
  min-height: 48px !important;
  padding: 0 22px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: var(--ed-solid) !important;
  background-image: none !important;
  color: var(--ed-on-solid) !important;
  box-shadow: none !important;
  font-size: 15px !important;
  font-weight: 700 !important;
}
#account.set .account-subsection :is(.btn.primary, .btn-primary, #export-my-data, #redeem-submit, #save-domain-btn, .chg-submit, .cd-btn-primary) * { color: var(--ed-on-solid) !important; }
#account.set .account-subsection :is(.btn.primary, .btn-primary, #export-my-data, #redeem-submit, #save-domain-btn, .chg-submit, .cd-btn-primary):disabled { opacity: 0.3 !important; }
#account.set #redeem-code #redeem-submit { min-height: 52px !important; }
#account.set .account-subsection :is(.chg-secondary, #add-handle-btn, .dev-btn--ghost, .sess-revoke) {
  min-height: 44px !important;
  padding: 0 18px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: var(--ed-surface-2) !important;
  color: var(--ed-text) !important;
  box-shadow: none !important;
  font-weight: 600 !important;
}
#account.set .account-subsection .sess-revoke { min-height: 34px !important; padding: 0 14px !important; font-size: 13px !important; }
#account.set .account-subsection .dev-btn--danger { min-height: 48px !important; }

/* about: the name in ink, not blue */
#account.set #about-app :is(h1, h2, .about-title) { color: var(--ed-text) !important; background: none !important; -webkit-text-fill-color: currentColor !important; }
#account.set #about-app a:not(.about2__row) { border: 0 !important; border-radius: 999px !important; background: var(--ed-surface) !important; padding: 10px 18px !important; color: var(--ed-text) !important; }
#account.set #about-app a i { color: var(--ed-text) !important; }

/* field icons: one icon, never tiled (some fields carry an older background shorthand) */
#account.set #redeem-code .rdm-input, #account.set #custom-domain .cd-input, #account.set #change-name input.chg-input, #account.set #change-email input.chg-input, #account.set .account-subsection input.chg-input[type="password"] { background-repeat: no-repeat !important; background-position: 17px center !important; background-size: 18px 18px !important; }

/* switch rows: one surface, nothing boxed inside it except the icon tile and the switch */
#account.set .account-subsection .ap-card *:not(.slider):not(.ap-status-dot):not(.ap-card__icon):not(.ap-card__icon *):not(input) { background: transparent !important; box-shadow: none !important; border-color: transparent !important; }

/* overview rows: one faint hairline between rows, inset from the edges,
   instead of full-width lines of uneven weight */
#account.set .set-ov__rows .set-ov__row,
#account.set .set-ov__rows .set-ov__row:first-child {
  position: relative;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
#account.set .set-ov__rows .set-ov__row + .set-ov__row::before {
  content: "";
  position: absolute;
  top: 0;
  left: 18px;
  right: 18px;
  height: 1px;
  background: color-mix(in srgb, var(--ed-text) 7%, transparent);
  pointer-events: none;
}
#account.set .set-ov__rows .set-ov__row:hover + .set-ov__row::before,
#account.set .set-ov__rows .set-ov__row:hover::before { opacity: 0; }

/* password fields (the ones with the eye): the text starts after the lock, and
   the lock stays when the password is shown */
#account.set .account-subsection .chg-input-wrap:has(.chg-eye) .chg-input {
  padding-left: 46px !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b8e99' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4.5' y='10.5' width='15' height='10' rx='2.5'/%3E%3Cpath d='M8 10.5V8a4 4 0 0 1 8 0v2.5'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: 16px center !important;
  background-size: 18px 18px !important;
}

/* settings rows: a row switched off for this plan does not count as first or last */
#account.set #main-menu .set-group .menu-option:nth-child(1 of .menu-option:not(.set-gone):not(.set-off):not([hidden])) { border-radius: 18px 18px 0 0 !important; box-shadow: none !important; }
#account.set #main-menu .set-group .menu-option:nth-last-child(1 of .menu-option:not(.set-gone):not(.set-off):not([hidden])) { border-radius: 0 0 18px 18px !important; }
#account.set #main-menu .set-group .menu-option:nth-child(1 of .menu-option:not(.set-gone):not(.set-off):not([hidden])):nth-last-child(1 of .menu-option:not(.set-gone):not(.set-off):not([hidden])) { border-radius: 18px !important; }

/* Billing: the plan as it is right now */
.set-bill { margin: 0 0 14px; }
.set-bill__rows { border-radius: 18px; overflow: hidden; background: var(--ed-surface); }
.set-bill__row { position: relative; display: flex; align-items: center; gap: 14px; padding: 15px 18px; font-size: 15px; color: var(--ed-text); }
.set-bill__row + .set-bill__row::before { content: ""; position: absolute; top: 0; left: 18px; right: 18px; height: 1px; background: color-mix(in srgb, var(--ed-text) 7%, transparent); }
.set-bill__label { flex: 0 0 150px; font-weight: 550; }
.set-bill__value { flex: 1 1 auto; min-width: 0; color: var(--ed-muted); text-align: right; }
.set-bill__value.is-ok, .set-bill__value.is-warn, .set-bill__value.is-bad { display: inline-flex; align-items: center; justify-content: flex-end; gap: 8px; color: var(--ed-text); }
.set-bill__value.is-ok::before, .set-bill__value.is-warn::before, .set-bill__value.is-bad::before { content: ""; flex: 0 0 8px; width: 8px; height: 8px; border-radius: 50%; background: #30a46c; }
.set-bill__value.is-warn::before { background: #f5a524; }
.set-bill__value.is-bad::before { background: #e5484d; }
.set-bill__value.is-bad { color: #e5484d; }
.set-bill__note { min-height: 16px; margin: 8px 4px 0; font-size: 12.5px; color: var(--ed-muted); }
.set-bill__note:empty { display: none; }

/* Billing: a running offer */
.set-bill__row--offer .set-bill__value { display: inline-flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.set-bill__chip { padding: 4px 11px; border-radius: 999px; background: color-mix(in srgb, var(--md-blue) 16%, transparent); color: var(--md-blue); font-size: 12.5px; font-weight: 700; }
.set-bill__detail { font-size: 13px; color: var(--ed-muted); }
.set-bill__detail:empty { display: none; }

/* Change password: a quiet "Forgot it?" link, and the note as one calm line */
#account.set #change-password .chg-forgot { border: 0 !important; text-decoration: none !important; color: var(--ed-muted) !important; font-weight: 500 !important; background: none !important; padding: 0 !important; }
#account.set #change-password .chg-forgot:hover { color: var(--ed-text) !important; text-decoration: underline !important; text-underline-offset: 3px; }
#account.set #change-password .chg-forgot i { display: none !important; }
#account.set #change-password .chg-hero__title { font-size: 14px !important; font-weight: 600 !important; }
#account.set #change-password .chg-hero__sub { font-size: 13px !important; }

/* no thin outline on any field in Settings: the fill alone shows the field,
   and focus lifts the fill a little (the older rule drew an inset line) */
#account.set .account-subsection :is(input[type="text"], input[type="email"], input[type="password"], input[type="url"], input[type="number"], input[type="tel"], input[type="search"], input:not([type]), select, textarea),
#account.set .account-subsection :is(input[type="text"], input[type="email"], input[type="password"], input[type="url"], input[type="number"], input[type="tel"], input[type="search"], input:not([type]), select, textarea):hover,
#account.set .account-subsection :is(input[type="text"], input[type="email"], input[type="password"], input[type="url"], input[type="number"], input[type="tel"], input[type="search"], input:not([type]), select, textarea):focus {
  box-shadow: none !important;
  outline: 0 !important;
  border: 0 !important;
}
#account.set .account-subsection :is(input[type="text"], input[type="email"], input[type="password"], input[type="url"], input[type="number"], input[type="tel"], input[type="search"], input:not([type]), select, textarea):not(.chg-input-wrap *):focus { background-color: var(--ed-surface-2) !important; }
#account.set .account-subsection .chg-input-wrap,
#account.set .account-subsection .chg-input-wrap:focus-within { border: 0 !important; box-shadow: none !important; outline: 0 !important; }
/* keyboard users still get a clear ring on the field they are in */
#account.set .account-subsection .chg-input-wrap:has(input:focus-visible),
#account.set .account-subsection :is(input, select, textarea):not(.chg-input-wrap *):focus-visible { box-shadow: 0 0 0 2px color-mix(in srgb, var(--md-blue, #3b82f6) 55%, transparent) !important; }

/* ======================================================================
   Organization: the same look as Settings and the home page.
   Soft panels, pill tabs, a calm member list, black/white pills.
   ====================================================================== */
.dash-tab[hidden] { display: none !important; }

#orgs { --o-pad: 18px; }
#orgs :is(h1, h2, h3, p, span, td, th, label, div) { color: inherit; }
#orgs { color: var(--ed-text); }
#orgs :is(.org-sec-desc, .org-set-desc, .org-hint, .org-head-handle, .muted, .org-user-sub, .org-row-note, .ins-note, .ins-tile__label, .org-stat-l, .org-mstat-l, .org-intro-sub, .org-step-d, .org-feat-d, .org-next-body) { color: var(--ed-muted) !important; }

/* panels */
#orgs :is(.org-card, .org-panel, .org-table-wrap, .org-stats, .org-mstats, .ins-tile, .ins-block, .org-tierbox, .org-example, .org-intro-addr, .org-member) {
  border: 0 !important;
  border-radius: 20px !important;
  background: var(--ed-surface) !important;
  box-shadow: none !important;
}
#orgs .org-card--danger { background: color-mix(in srgb, #e5484d 8%, var(--ed-surface)) !important; }
#orgs :is(.org-stat, .org-mstat) { border: 0 !important; background: transparent !important; box-shadow: none !important; }
#orgs :is(.org-stat, .org-mstat) + :is(.org-stat, .org-mstat) { box-shadow: inset 1px 0 0 var(--ed-line) !important; }
#orgs :is(.org-stat-n, .org-mstat-v) { font-size: 28px !important; font-weight: 800 !important; letter-spacing: -0.04em !important; color: var(--ed-text) !important; }
#orgs .org-set + .org-set,
#orgs .org-row + .org-row { box-shadow: inset 0 1px 0 var(--ed-line) !important; border-top: 0 !important; }
#orgs :is(.org-set, .org-row, .org-panel-foot) { border-color: transparent !important; }

/* header */
#orgs .org-avatar { border-radius: 16px !important; }
#orgs .org-head h1, #orgs .org-head-titlerow h1, #orgs .org-head-titlerow :is(h1, h2) { font-size: 30px !important; font-weight: 800 !important; letter-spacing: -0.045em !important; }
#orgs :is(.org-role-chip, .org-pill) { border: 0 !important; border-radius: 999px !important; background: var(--ed-surface-2) !important; color: var(--ed-text) !important; font-weight: 650 !important; }
#orgs .org-pill--ok, #orgs .org-chips .is-ok { background: color-mix(in srgb, #30a46c 16%, transparent) !important; color: #30a46c !important; }
#orgs .org-pill--dim { background: var(--ed-surface-2) !important; color: var(--ed-muted) !important; }
#orgs .org-kebab { border: 0 !important; border-radius: 50% !important; background: transparent !important; color: var(--ed-muted) !important; }
#orgs .org-kebab:hover { background: var(--ed-surface-2) !important; color: var(--ed-text) !important; }

/* the next step: a quiet blue-tinted panel */
#orgs .org-next {
  border: 0 !important;
  border-radius: 20px !important;
  background: color-mix(in srgb, var(--md-blue) 10%, var(--ed-surface)) !important;
  box-shadow: none !important;
}
#orgs .org-next-title { font-weight: 750 !important; color: var(--ed-text) !important; }

/* tabs: pills */
#orgs .org-tabs {
  display: inline-flex !important;
  gap: 2px !important;
  padding: 4px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: var(--ed-surface) !important;
  box-shadow: none !important;
}
#orgs .org-tab {
  padding: 8px 14px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: transparent !important;
  color: var(--ed-muted) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  box-shadow: none !important;
}
#orgs .org-tab::after, #orgs .org-tab::before { display: none !important; }
#orgs .org-tab:hover { color: var(--ed-text) !important; }
#orgs .org-tab.is-active { background: var(--ed-solid) !important; color: var(--ed-on-solid) !important; }

/* section titles */
#orgs .org-sec-title { font-size: 22px !important; font-weight: 800 !important; letter-spacing: -0.035em !important; color: var(--ed-text) !important; }
#orgs :is(.org-subhead, .ins-block__title) { font-size: 16px !important; font-weight: 750 !important; color: var(--ed-text) !important; }

/* filter chips */
#orgs .org-chip {
  padding: 7px 14px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: var(--ed-surface) !important;
  color: var(--ed-muted) !important;
  font-weight: 600 !important;
  box-shadow: none !important;
}
#orgs .org-chip:hover { color: var(--ed-text) !important; }
#orgs .org-chip.is-active { background: var(--ed-solid) !important; color: var(--ed-on-solid) !important; }

/* fields */
#orgs :is(input.input, .org-input--num, textarea, select) {
  min-height: 48px !important;
  border: 0 !important;
  border-radius: 16px !important;
  background-color: var(--ed-surface) !important;
  box-shadow: none !important;
  color: var(--ed-text) !important;
  font-size: 15px !important;
  outline: 0 !important;
}
#orgs :is(.org-panel, .org-card, .org-set) :is(input.input, .org-input--num, textarea, select) { background-color: var(--ed-surface-2) !important; }
#orgs :is(input.input, .org-input--num, textarea, select):focus { background-color: var(--ed-surface-2) !important; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--ed-text) 30%, transparent) !important; }
#orgs .org-filterbar input.input,
#orgs input.input[placeholder*="Search"] {
  padding-left: 46px !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b8e99' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='6.5'/%3E%3Cpath d='m20 20-4.2-4.2'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: 16px center !important;
  background-size: 18px 18px !important;
}
#orgs .org-intro-form input.input { padding-left: 46px !important; background-repeat: no-repeat !important; background-position: 16px center !important; background-size: 18px 18px !important; }
#orgs .org-intro-form input.input[autocomplete="organization"] {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b8e99' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4.5' y='3.5' width='15' height='17' rx='2'/%3E%3Cpath d='M9 7.5h2M13 7.5h2M9 11.5h2M13 11.5h2M10 20.5v-4h4v4'/%3E%3C/svg%3E") !important;
}
#orgs .org-intro-form input.input:not([autocomplete="organization"]) {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b8e99' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='3.5'/%3E%3Cpath d='M15.5 12v1.5a2.5 2.5 0 0 0 5 0V12a8.5 8.5 0 1 0-3.3 6.7'/%3E%3C/svg%3E") !important;
}
#orgs :is(.org-label, label.org-set-label) { font-size: 13.5px !important; font-weight: 600 !important; color: var(--ed-text) !important; }

/* buttons */
#orgs :is(.btn-primary, .org-btn--primary) {
  min-height: 44px !important;
  padding: 0 20px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: var(--ed-solid) !important;
  background-image: none !important;
  color: var(--ed-on-solid) !important;
  box-shadow: none !important;
  font-weight: 700 !important;
}
#orgs :is(.btn-primary, .org-btn--primary) * { color: var(--ed-on-solid) !important; }
#orgs :is(.btn-primary, .org-btn--primary):disabled { opacity: 0.35 !important; }
#orgs :is(.org-btn:not(.org-btn--primary):not(.org-btn--danger), .btn:not(.btn-primary):not(.btn-danger), .org-dd__btn) {
  border: 0 !important;
  border-radius: 999px !important;
  background: var(--ed-surface-2) !important;
  color: var(--ed-text) !important;
  box-shadow: none !important;
  font-weight: 600 !important;
}
#orgs :is(.org-btn--danger, .btn-danger) {
  border: 0 !important;
  border-radius: 999px !important;
  background: color-mix(in srgb, #e5484d 12%, transparent) !important;
  background-image: none !important;
  color: #e5484d !important;
  box-shadow: none !important;
  font-weight: 650 !important;
}

/* the member list: hairlines, no grid */
#orgs .org-table { border-collapse: collapse !important; background: transparent !important; }
#orgs .org-table :is(th, td) { border: 0 !important; background: transparent !important; }
#orgs .org-table thead th { font-size: 12px !important; font-weight: 600 !important; letter-spacing: 0.04em !important; text-transform: uppercase !important; color: var(--ed-muted) !important; }
#orgs .org-table tbody tr { box-shadow: inset 0 1px 0 var(--ed-line); transition: background-color 0.15s ease; }
#orgs .org-table tbody tr:hover { background: color-mix(in srgb, var(--ed-text) 3%, transparent) !important; }
#orgs .org-table-wrap { padding: 4px 6px !important; overflow: hidden; }

/* insights */
#orgs .ins-tiles { gap: 10px !important; }
#orgs .ins-tile__value { font-size: 28px !important; font-weight: 800 !important; letter-spacing: -0.04em !important; }
#orgs .ins-bar__fill, #orgs .ins-link__fill { background: var(--md-blue) !important; border-radius: 4px !important; }
#orgs :is(.ins-bar, .ins-link__track) { background: var(--ed-surface-2) !important; border-radius: 4px !important; }

/* start page (no organization yet) */
#orgs .org-intro-mark {
  width: 64px !important;
  height: 64px !important;
  border-radius: 20px !important;
  background: var(--ed-surface) !important;
  box-shadow: none !important;
  filter: none !important;
}
#orgs .org-intro-mark::before, #orgs .org-intro-mark::after { display: none !important; }
#orgs .org-intro-mark i { color: var(--ed-text) !important; font-size: 26px !important; text-shadow: none !important; }
#orgs .org-intro-kicker { color: var(--ed-muted) !important; letter-spacing: 0.12em !important; }
#orgs .org-intro-title { font-size: clamp(34px, 4.6vw, 48px) !important; font-weight: 800 !important; letter-spacing: -0.05em !important; line-height: 1.02 !important; color: var(--ed-text) !important; }
#orgs .org-intro-points {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px !important;
  border: 0 !important;
  padding: 0 !important;
}
#orgs .org-intro-point { padding: 16px 18px !important; border: 0 !important; border-radius: 18px !important; background: var(--ed-surface) !important; }
#orgs .org-intro-point-t { color: var(--ed-text) !important; font-weight: 700 !important; }
#orgs .org-intro-addr { padding: 14px 18px !important; }
#orgs .org-intro-addr-url { color: var(--ed-muted) !important; }
#orgs .org-intro-addr-slug { color: var(--ed-text) !important; }

/* member view feature list */
#orgs .org-feat { border: 0 !important; }
#orgs .org-feats--plain li, #orgs ul.org-feats li { border-color: transparent !important; }
#orgs .org-member :is(.org-row, .org-row-note) { border: 0 !important; background: transparent !important; }

/* start page mark: the picture in the theme ink, no glow */
#orgs .org-intro-mark-img { filter: brightness(0) invert(1) !important; opacity: 0.92; width: 30px !important; height: auto !important; }
:root[data-theme="light"] #orgs .org-intro-mark-img { filter: brightness(0) !important; opacity: 0.88; }
#orgs .org-intro-mark { display: grid !important; place-items: center !important; margin-left: auto !important; margin-right: auto !important; }
/* codes: soft chips */
#orgs code.org-code, #orgs code.org-example-host { border: 0 !important; border-radius: 999px !important; background: var(--ed-surface-2) !important; color: var(--ed-text) !important; padding: 5px 11px !important; }
#orgs .ins-block__title { text-transform: none !important; letter-spacing: -0.02em !important; font-size: 17px !important; }
#orgs .ins-tile__label { text-transform: none !important; letter-spacing: 0 !important; font-size: 12.5px !important; }

/* ======================================================================
   Organization, simpler: fewer chips, fewer columns, fewer words
   ====================================================================== */

/* headings without the grey explanation under them */
#orgs .org-sec-desc { display: none !important; }
#orgs .org-sec { margin-bottom: 14px !important; align-items: center !important; }

/* header: the role chip and the "all fine" status go; seats stay as plain text */
#orgs .org-head .org-role-chip,
#orgs .org-head .org-pill--ok,
#orgs .org-head .is-ok { display: none !important; }
#orgs .org-head .org-seatcount { color: var(--ed-muted) !important; font-weight: 500 !important; }
#orgs .org-head { margin-bottom: 18px !important; }

/* the next step: one slim line */
#orgs .org-next { padding: 10px 10px 10px 18px !important; align-items: center !important; margin-bottom: 18px !important; }
#orgs .org-next-body { display: none !important; }
#orgs .org-next-title { font-size: 14.5px !important; font-weight: 650 !important; }
#orgs .org-next .btn-primary { min-height: 36px !important; padding: 0 16px !important; font-size: 13.5px !important; }

/* tabs sit a little closer */
#orgs .org-tabs { margin-bottom: 18px !important; }

/* members: who, role, seat, and the ⋯ — no headings, no filters, no editing or joined columns */
#orgs .org-chip { display: none !important; }
#orgs .org-filterbar { gap: 0 !important; margin-bottom: 10px !important; }
#orgs .org-table--members thead { display: none !important; }
#orgs .org-table--members :is(th, td).org-td-edit,
#orgs .org-table--members :is(th, td).org-td-date { display: none !important; }
#orgs .org-table--members tbody tr:first-child { box-shadow: none !important; }
#orgs .org-table--members td { padding-top: 12px !important; padding-bottom: 12px !important; }
#orgs .org-table--members td:nth-child(2) { color: var(--ed-muted) !important; font-size: 13.5px !important; }

/* the organization's own page row: lighter */
#orgs .org-rows--flush .org-row, #orgs .org-panel .org-row { padding-top: 12px !important; padding-bottom: 12px !important; }

/* seats: the three numbers in one calm card, details folded where they were */
#orgs .org-stats { margin-bottom: 14px !important; }

/* start page: the four points become small chips; the form is the focus */
#orgs .org-intro-points {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  gap: 8px !important;
  margin: 6px 0 26px !important;
}
#orgs .org-intro-point {
  padding: 7px 14px !important;
  border-radius: 999px !important;
}
#orgs .org-intro-point-b { display: none !important; }
#orgs .org-intro-point-t { font-size: 13.5px !important; font-weight: 600 !important; }
#orgs .org-intro-sub { max-width: 440px; margin-left: auto !important; margin-right: auto !important; }
#orgs .org-intro-kicker { display: none !important; }

/* ======================================================================
   Organization, member view: two calm cards, nothing repeated
   ====================================================================== */
#orgs .org-member { padding: 0 !important; background: transparent !important; border-radius: 0 !important; display: flex; flex-direction: column; gap: 12px; }
/* the four big numbers repeat what the seat card says */
#orgs .org-member > .org-sec,
#orgs .org-member > .org-panel:has(.org-mstats) { display: none !important; }

/* cards */
#orgs .org-member > .org-card { padding: 20px 22px !important; margin: 0 !important; }
#orgs .org-member .org-card-head { display: flex; align-items: center; justify-content: space-between; margin: 0 0 4px !important; }
#orgs .org-member .org-card-head h3 { margin: 0 !important; font-size: 18px !important; font-weight: 750 !important; letter-spacing: -0.02em !important; }
#orgs .org-member .org-card > .org-sec-desc { display: block !important; margin: 0 0 16px !important; font-size: 14px !important; }

/* what the seat gives: small chips, titles only */
#orgs .org-member .org-feats { display: flex !important; flex-wrap: wrap !important; gap: 8px !important; margin: 0 0 14px !important; padding: 0 !important; list-style: none !important; }
#orgs .org-member .org-feat {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  margin: 0 !important;
  padding: 7px 12px 7px 10px !important;
  border-radius: 999px !important;
  background: var(--ed-surface-2) !important;
}
#orgs .org-member .org-feat-d { display: none !important; }
#orgs .org-member .org-feat-t { font-size: 13px !important; font-weight: 600 !important; color: var(--ed-text) !important; }
#orgs .org-member .org-feat :is(svg, i) { width: 13px !important; height: 13px !important; font-size: 11px !important; color: #30a46c !important; flex: 0 0 auto; }

/* the two small print lines: plain text, no boxes */
#orgs .org-member .org-example { padding: 0 !important; background: transparent !important; border-radius: 0 !important; }
#orgs .org-member .org-example-row { padding: 2px 0 !important; border: 0 !important; background: transparent !important; box-shadow: none !important; }
#orgs .org-member .org-example-label { font-size: 12.5px !important; color: var(--ed-muted) !important; }

/* who can edit: one setting row */
#orgs .org-member .org-card .org-set { padding: 10px 0 0 !important; box-shadow: none !important; }
#orgs .org-member .org-card .org-set .org-hint { font-size: 13px !important; }
/* chips don't need a tick */
#orgs .org-member .org-feat::before, #orgs .org-member .org-feat::after { display: none !important; content: none !important; }
#orgs .org-member .org-feats .org-feat { padding: 7px 13px !important; }
/* the leave card's notes are plain lines */
#orgs .org-member .org-card--danger .org-feats { display: block !important; margin: 0 0 16px !important; }
#orgs .org-member .org-card--danger .org-feat { display: block !important; padding: 2px 0 !important; background: transparent !important; border-radius: 0 !important; }
#orgs .org-member .org-card--danger .org-feat-t { font-weight: 500 !important; color: var(--ed-muted) !important; }
#orgs .org-member .org-card--danger > .org-sec-desc { margin-bottom: 8px !important; }
/* the switch already says on or off */
#orgs .org-member .org-card-head .org-pill--dim { display: none !important; }

/* ---------- member view, simplest: one list of three rows ---------- */
#orgs .org-member { gap: 0 !important; }
#orgs .org-member > .org-card {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center !important;
  gap: 4px 16px;
  padding: 16px 20px !important;
  border-radius: 0 !important;
  background: var(--ed-surface) !important;
  box-shadow: inset 0 1px 0 var(--ed-line) !important;
}
#orgs .org-member > .org-card:nth-child(1 of .org-card) { border-radius: 20px 20px 0 0 !important; box-shadow: none !important; }
#orgs .org-member > .org-card:nth-last-child(1 of .org-card) { border-radius: 0 0 20px 20px !important; }

/* row 1: your seat */
#orgs .org-member > .org-card:nth-child(1 of .org-card) .org-card-head { flex: 1 1 100%; margin: 0 !important; }
#orgs .org-member .org-card-head h3 { font-size: 15px !important; font-weight: 650 !important; }
#orgs .org-member > .org-card:nth-child(1 of .org-card) > .org-sec-desc { flex: 1 1 100%; margin: 0 !important; font-size: 13.5px !important; }
#orgs .org-member > .org-card :is(.org-feats, .org-example) { display: none !important; }

/* row 2: the switch, without a heading or small print */
#orgs .org-member > .org-card:has(.org-set) > .org-card-head { display: none !important; }
#orgs .org-member > .org-card:has(.org-set) > :not(.org-set) { display: none !important; }
#orgs .org-member > .org-card .org-set { flex: 1 1 100%; padding: 0 !important; display: flex !important; align-items: center !important; justify-content: space-between !important; gap: 16px; }
#orgs .org-member > .org-card .org-set-label { font-size: 15px !important; font-weight: 650 !important; }
#orgs .org-member > .org-card .org-set .org-hint { font-size: 13.5px !important; margin: 2px 0 0 !important; }

/* row 3: leave, a title and a red button on one line */
#orgs .org-member > .org-card--danger { background: var(--ed-surface) !important; }
#orgs .org-member > .org-card--danger > :not(.org-card-head):not(button):not(.org-btn) { display: none !important; }
#orgs .org-member > .org-card--danger > .org-card-head { flex: 1 1 auto; margin: 0 !important; }
#orgs .org-member > .org-card--danger :is(button, .org-btn) { flex: 0 0 auto; margin: 0 !important; min-height: 36px !important; padding: 0 16px !important; }
/* titles only: no explanation lines */
#orgs .org-member > .org-card > .org-sec-desc,
#orgs .org-member > .org-card .org-set .org-hint { display: none !important; }
#orgs .org-member > .org-card { min-height: 56px; padding-top: 12px !important; padding-bottom: 12px !important; }

/* a small icon tile at the start of each row */
#orgs .org-member > .org-card { flex-wrap: nowrap !important; gap: 14px !important; }
#orgs .org-member > .org-card > .org-card-head,
#orgs .org-member > .org-card > .org-set { flex: 1 1 auto !important; min-width: 0; }
#orgs .org-member > .org-card::before {
  content: "";
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background-color: var(--ed-surface-2);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 17px 17px;
}
/* seat: a ticket */
#orgs .org-member > .org-card:nth-child(1 of .org-card)::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b8e99' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 8.5a2 2 0 0 0 2-2h13a2 2 0 0 0 2 2v7a2 2 0 0 0-2 2h-13a2 2 0 0 0-2-2Z'/%3E%3Cpath d='M14 6.5v11' stroke-dasharray='2 2'/%3E%3C/svg%3E");
}
/* editing: a pen */
#orgs .org-member > .org-card:has(.org-set)::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b8e99' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 20h4L19 9a2.8 2.8 0 0 0-4-4L4 16Z'/%3E%3Cpath d='m13.5 6.5 4 4'/%3E%3C/svg%3E");
}
/* leave: a door out, in red */
#orgs .org-member > .org-card--danger::before {
  background-color: color-mix(in srgb, #e5484d 12%, transparent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e5484d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 4.5H6.5a1 1 0 0 0-1 1v13a1 1 0 0 0 1 1H14'/%3E%3Cpath d='M10.5 12h9M16.5 8.5 20 12l-3.5 3.5'/%3E%3C/svg%3E");
}
/* the leave row reads as a row: its button becomes the label */
#orgs .org-member > .org-card--danger :is(button, .org-btn) {
  flex: 1 1 auto !important;
  justify-content: flex-start !important;
  text-align: left !important;
  min-height: 34px !important;
  padding: 0 !important;
  background: transparent !important;
  color: #e5484d !important;
  font-size: 15px !important;
  font-weight: 650 !important;
}

/* ======================================================================
   Code writer: the home page's look.
   A title row with the live status and Save, soft pill tools, calm editor
   cards in a lighter code font, and the page shown inside a phone.
   ====================================================================== */
#code {
  --pc-code-size: 13px;
  --pc-code-lh: 1.7;
  --pc-code-pad: 14px;
  max-width: none !important;
}

/* the shell: no outer box; title, tools and work as rows */
#code .pc-shell {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "title foot"
    "bar   bar"
    "work  work";
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 14px 16px;
  height: calc(100vh - 72px) !important;
  max-height: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  overflow: visible !important;
}
#code .pc-shell::before {
  content: "Code";
  grid-area: title;
  align-self: center;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.1;
  color: var(--ed-text);
}

/* top right: live status, address, Save */
#code .pc-foot {
  grid-area: foot;
  flex-direction: row !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}
#code .pc-addr { gap: 6px !important; border: 0 !important; background: transparent !important; padding: 0 !important; }
#code :is(.pc-live, .pc-url) {
  height: 38px !important;
  padding: 0 14px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: var(--ed-surface) !important;
  color: var(--ed-text) !important;
  box-shadow: none !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
}
#code .pc-url .pc-url__text { color: var(--ed-muted) !important; }
#code :is(.pc-live, .pc-url):hover { background: var(--ed-surface-2) !important; }
#code .pc-foot .pc-save {
  height: 38px !important;
  min-height: 0 !important;
  padding: 0 18px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: var(--ed-solid) !important;
  background-image: none !important;
  color: var(--ed-on-solid) !important;
  box-shadow: none !important;
  font-weight: 700 !important;
}
#code .pc-foot .pc-save * { color: var(--ed-on-solid) !important; }
#code .pc-foot .pc-save:disabled { opacity: 0.35 !important; }

/* tools row */
#code .pc-bar {
  grid-area: bar;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  gap: 8px;
}
#code .pc-bar__left { gap: 6px !important; }
#code .pc-tool {
  height: 36px !important;
  padding: 0 14px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: var(--ed-surface) !important;
  color: var(--ed-text) !important;
  box-shadow: none !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
}
#code .pc-tool:hover, #code .pc-tool[aria-expanded="true"] { background: var(--ed-surface-2) !important; }
#code .pc-tool--icon { width: 36px !important; padding: 0 !important; justify-content: center !important; }
#code .pc-tool i { color: var(--ed-muted) !important; opacity: 1 !important; }
#code .pc-total { color: var(--ed-muted) !important; font-size: 12.5px !important; }
#code .pc-status { font-size: 13px !important; font-weight: 600 !important; }

/* the work area */
#code .pc-work { grid-area: work; gap: 0 !important; min-height: 0 !important; border: 0 !important; background: transparent !important; }
#code .pc-cols { gap: 10px !important; display: flex !important; flex-direction: column !important; min-height: 0 !important; }
#code .pc-pane {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 0 !important;
  min-height: 0 !important;
  border: 0 !important;
  border-radius: 18px !important;
  background: var(--ed-surface) !important;
  overflow: hidden !important;
}
#code .pc-pane__head {
  padding: 10px 14px 8px !important;
  border: 0 !important;
  background: transparent !important;
}
#code .pc-pane__name, #code .pc-pane__name label { font-size: 12.5px !important; font-weight: 700 !important; letter-spacing: 0.04em !important; color: var(--ed-text) !important; }
#code .pc-count { color: var(--ed-muted) !important; font-size: 12px !important; }
#code .pc-copy { border: 0 !important; background: transparent !important; color: var(--ed-muted) !important; border-radius: 8px !important; }
#code .pc-copy:hover { background: var(--ed-surface-2) !important; color: var(--ed-text) !important; }
#code .pc-code { flex: 1 1 auto !important; min-height: 0 !important; border: 0 !important; background: transparent !important; }
#code .pc-editor {
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
#code :is(.pc-hl, .pc-field, .pc-gutter) { font-weight: 400 !important; }
#code .pc-gutter { background: transparent !important; border: 0 !important; color: color-mix(in srgb, var(--ed-muted) 60%, transparent) !important; }
#code .pc-field { caret-color: var(--ed-text) !important; }

/* drag handle between code and preview */
#code .pc-split { width: 14px !important; background: transparent !important; }
#code .pc-split::after { background: var(--ed-line) !important; width: 4px !important; height: 44px !important; border-radius: 999px !important; }
#code .pc-split:hover::after, #code .pc-split.is-dragging::after { background: color-mix(in srgb, var(--ed-text) 35%, transparent) !important; }

/* the page, inside a phone */
#code .pc-preview {
  display: grid !important;
  place-items: center !important;
  padding: 20px !important;
  border: 0 !important;
  border-radius: 20px !important;
  background: var(--ed-surface) !important;
  overflow: hidden !important;
}
#code .pc-frame {
  width: min(380px, 100%) !important;
  height: min(780px, 100%) !important;
  border: 0 !important;
  border-radius: 42px !important;
  background: #000 !important;
  box-shadow:
    0 0 0 9px #16181f,
    0 0 0 10px rgba(255, 255, 255, 0.08),
    0 40px 80px -36px rgba(0, 0, 0, 0.8) !important;
}

/* insert menu and help: soft popovers */
#code :is(.pc-menu, .pc-insert, [class*="pc-pop"], [class*="pc-insert"]) {
  border: 1px solid var(--ed-line) !important;
  border-radius: 16px !important;
  background: var(--ed-side) !important;
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.6) !important;
}
:root[data-theme="light"] #code :is(.pc-menu, .pc-insert, [class*="pc-pop"], [class*="pc-insert"]) { background: #fff !important; box-shadow: 0 24px 60px -28px rgba(10, 12, 18, 0.35) !important; }

/* ---------- pass 2: like the other dashboard pages ---------- */
/* same margins as Links, Studio and Settings */
body.has-side #code.section.active {
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: 1320px !important;
  margin: 0 auto !important;
  padding: 40px 40px 28px !important;
}
#code .pc-shell { height: calc(100vh - 68px) !important; }
#code .pc-shell::before { font-size: 34px; }

/* code in a regular weight everywhere, including the coloured parts */
#code .pc-hl, #code .pc-hl *, #code .pc-field, #code .pc-gutter, #code .pc-gutter * { font-weight: 400 !important; }
#code .pc-hl :is(b, strong) { font-weight: 600 !important; }

/* one surface per editor: nothing boxed inside */
#code .pc-code, #code .pc-code > *, #code .pc-editor, #code .pc-editor::before, #code .pc-editor::after {
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  border-radius: 0 !important;
}
#code .pc-pane__head { padding: 12px 16px 6px !important; }
#code .pc-pane__name label { text-transform: none !important; letter-spacing: 0 !important; font-size: 13.5px !important; }
#code .pc-dot { width: 8px !important; height: 8px !important; border-radius: 50% !important; }

/* the phone: the same device as on Links */
#code .pc-preview { background: var(--ed-surface) !important; }
#code .pc-frame {
  border-radius: 46px !important;
  box-shadow:
    0 0 0 10px #121317,
    0 0 0 11px rgba(255, 255, 255, 0.10),
    0 0 0 12.5px #08090b,
    0 50px 90px -40px rgba(0, 0, 0, 0.85) !important;
}
:root[data-theme="light"] #code .pc-frame {
  box-shadow:
    0 0 0 10px #16181f,
    0 0 0 11px rgba(255, 255, 255, 0.10),
    0 40px 80px -40px rgba(10, 12, 18, 0.45) !important;
}

/* status text sits quietly next to the size */
#code .pc-bar__right { gap: 12px !important; }
#code .pc-status.is-ok { color: #30a46c !important; }

/* ---------- pass 3: Beta tag, roomier code, the Links phone ---------- */
#code .pc-shell {
  grid-template-columns: auto minmax(0, 1fr) auto !important;
  grid-template-areas:
    "title beta foot"
    "bar   bar  bar"
    "work  work work" !important;
}
#code .pc-beta {
  grid-area: beta;
  align-self: center;
  justify-self: start;
  margin: 4px 0 0 -4px;
  padding: 3px 9px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--md-blue) 14%, transparent);
  color: var(--md-blue);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.3;
}

/* the code: no box inside the card, and air on every side */
#code .pc-field, #code .pc-hl, #code .pc-field:focus, #code .pc-field:hover {
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  border-radius: 0 !important;
  margin: 0 !important;
}
#code .pc-pane { padding-bottom: 6px !important; }
#code .pc-pane__head { padding: 14px 18px 4px !important; }
#code .pc-gutter { min-width: 34px !important; padding-left: 14px !important; padding-right: 6px !important; text-align: right !important; }
#code .pc-cols { gap: 14px !important; }

/* the preview: the Links phone, standing on the page */
#code .pc-preview {
  position: relative !important;
  min-width: 340px !important;
  padding: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  overflow: visible !important;
}
#code .pc-device {
  position: absolute !important;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  margin: 0 !important;
}
#code .pc-device .pp-screen { background: #000; }
#code .pc-frame {
  position: absolute !important;
  z-index: 1;
  left: 50% !important;
  top: 50% !important;
  width: 390px !important;
  height: 785px !important;
  max-width: none !important;
  max-height: none !important;
  border: 0 !important;
  border-radius: 0 0 61px 61px !important;
  box-shadow: none !important;
  background: #000 !important;
  transform-origin: 0 0 !important;
  transform: translate(-136.5px, -253.5px) scale(0.7) !important;
}
#code .pc-device :is(.pp-status, .pp-home) { z-index: 2; }
#code .pc-device .pp-island { z-index: 3; }
#code .pc-device .pp-glass { z-index: 4; }
/* no transform on the phone, so its island and status bar can sit above the frame */
#code .pc-device { translate: none !important; left: calc(50% - 147.5px) !important; top: calc(50% - 306.5px) !important; }
/* long lines stop short of the card's edge; the resize handle sits mid-height */
#code .pc-code { margin-right: 16px !important; }
#code .pc-split { display: flex !important; align-items: center !important; justify-content: center !important; }
#code .pc-split::after { content: "" !important; position: static !important; translate: none !important; transform: none !important; }
/* only problems are worth a line of text; confirmations stay quiet */
#code .pc-status:not(.is-error) { display: none !important; }
/* smaller code boxes: a smaller code font, slimmer headers, room at the bottom */
#code { --pc-code-size: 12px; --pc-code-lh: 1.6; --pc-code-pad: 10px; }
#code .pc-shell { height: calc(100vh - 104px) !important; }
#code .pc-pane { border-radius: 16px !important; padding-bottom: 4px !important; }
#code .pc-pane__head { padding: 10px 16px 2px !important; }
#code .pc-pane__name label { font-size: 13px !important; }
#code .pc-gutter { min-width: 28px !important; padding-left: 10px !important; }
#code .pc-cols { gap: 12px !important; }
/* colour codes: the typing layer is see-through so the coloured copy under it shows */
#code .pc-field, #code .pc-field:focus, #code .pc-field:hover {
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
  caret-color: var(--ed-text) !important;
}

/* ---------- templates: three phones, a name under each, a click uses it ---------- */
.pc-starters__grid {
  grid-template-columns: repeat(3, 195px) !important;
  justify-content: center !important;
  gap: 22px !important;
  max-height: none !important;
  overflow: visible !important;
  padding: 6px 0 4px !important;
}
.pc-starter {
  align-items: center !important;
  gap: 12px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  text-align: center !important;
  transform: none !important;
}
.pc-starter__shot {
  width: 195px !important;
  height: 340px !important;
  border: 0 !important;
  border-radius: 30px !important;
  background: #000 !important;
  box-shadow: 0 0 0 6px #16181f, 0 0 0 7px rgba(255, 255, 255, 0.08), 0 24px 40px -24px rgba(0, 0, 0, 0.6) !important;
  transition: transform 0.18s ease, box-shadow 0.18s ease !important;
}
.pc-starter__frame {
  width: 390px !important;
  height: 680px !important;
  transform: scale(0.5) !important;
}
.pc-starter:hover .pc-starter__shot { transform: translateY(-4px); }
.pc-starter:hover .pc-starter__shot,
.pc-starter:focus-visible .pc-starter__shot { box-shadow: 0 0 0 6px #16181f, 0 0 0 9px var(--md-blue), 0 30px 50px -24px rgba(0, 0, 0, 0.6) !important; }
.pc-starter:focus-visible { outline: 0 !important; }
.pc-starter__name { padding: 4px 0 0 !important; font-size: 14px !important; font-weight: 650 !important; color: var(--ed-text) !important; }
.pc-starter__note { display: none !important; }
.pc-starters__grid { padding: 14px 10px 6px !important; }
.pc-starter__shot { box-shadow: 0 0 0 6px #16181f, 0 0 0 7px rgba(255, 255, 255, 0.08) !important; }

/* ======================================================================
   Link and category windows, Settings style: no preview box, fields with
   an icon inside instead of labels, flat soft rows, short words
   ====================================================================== */
.modal.ed-simple--link,
.modal.ed-simple--cat {
  width: min(460px, calc(100vw - 32px)) !important;
  max-width: 460px !important;
  border: 0 !important;
  border-radius: 26px !important;
  background: var(--ed-side) !important;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.6) !important;
}
:root[data-theme="light"] .modal.ed-simple--link,
:root[data-theme="light"] .modal.ed-simple--cat {
  background: #fff !important;
  box-shadow: 0 40px 90px -36px rgba(10, 12, 18, 0.4) !important;
}
:is(.ed-simple--link, .ed-simple--cat) .modal-header { padding: 26px 26px 4px !important; border: 0 !important; }
:is(.ed-simple--link, .ed-simple--cat) .modal-header h2 { font-size: 22px !important; font-weight: 800 !important; letter-spacing: -0.03em !important; color: var(--ed-text) !important; }
:is(.ed-simple--link, .ed-simple--cat) .modal-body { padding: 14px 26px 6px !important; }

/* the link: one column, no preview box (the phone already shows it) */
.ed-simple--link .le-grid { display: block !important; }
.ed-simple--link .le-grid > div:has(#preview-card) { display: none !important; }
.ed-simple--link .le-grid > div:first-child { display: flex !important; flex-direction: column !important; gap: 10px !important; }
.ed-simple--link .le-grid > div:first-child > div { margin: 0 !important; }

/* labels stay for screen readers only; the icon and the placeholder say it */
.ed-simple--link .le-grid > div > div > label,
.ed-simple--cat label[for="cat-name"] {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
}

/* fields: soft, icon on the left */
:is(.ed-simple--link, .ed-simple--cat) :is(#link-url, #link-title, #link-sub, #cat-name) {
  box-sizing: border-box !important;
  width: 100% !important;
  height: 50px !important;
  margin: 0 !important;
  padding: 0 16px 0 46px !important;
  border: 0 !important;
  border-radius: 14px !important;
  background-color: var(--m-f) !important;
  background-repeat: no-repeat !important;
  background-position: 16px center !important;
  background-size: 18px 18px !important;
  box-shadow: none !important;
  outline: 0 !important;
  color: var(--ed-text) !important;
  font-size: 15px !important;
}
:is(.ed-simple--link, .ed-simple--cat) :is(#link-url, #link-title, #link-sub, #cat-name):focus { background-color: var(--m-f2) !important; }
.ed-simple--link #link-url {
  padding-right: 92px !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b8e99' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 14a4.5 4.5 0 0 0 6.4 0l3-3a4.5 4.5 0 0 0-6.4-6.4l-1 1'/%3E%3Cpath d='M14 10a4.5 4.5 0 0 0-6.4 0l-3 3a4.5 4.5 0 0 0 6.4 6.4l1-1'/%3E%3C/svg%3E") !important;
}
.ed-simple--link #link-title {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b8e99' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 7V5h14v2'/%3E%3Cpath d='M12 5v14'/%3E%3Cpath d='M9 19h6'/%3E%3C/svg%3E") !important;
}
.ed-simple--link #link-sub {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b8e99' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7h16'/%3E%3Cpath d='M4 12h11'/%3E%3Cpath d='M4 17h7'/%3E%3C/svg%3E") !important;
}
.ed-simple--cat #cat-name {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b8e99' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 7a2 2 0 0 1 2-2h4l2 2h8a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2Z'/%3E%3C/svg%3E") !important;
}

/* Fetch: a small pill inside the address field */
.ed-simple--link #standard-url-section > div { position: relative !important; display: block !important; }
.ed-simple--link #smart-scrape-btn {
  position: absolute !important;
  top: 50% !important;
  right: 8px !important;
  transform: translateY(-50%) !important;
  height: 34px !important;
  padding: 0 14px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: var(--m-f2) !important;
  box-shadow: none !important;
  color: var(--ed-text) !important;
  font-size: 13px !important;
  font-weight: 650 !important;
}
:root[data-theme="light"] .ed-simple--link #smart-scrape-btn { background: #fff !important; }

/* Visible: a flat row */
:is(.ed-simple--link, .ed-simple--cat) .vis-panel {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  min-height: 52px !important;
  margin: 0 !important;
  padding: 8px 12px 8px 10px !important;
  border: 0 !important;
  border-radius: 14px !important;
  background: var(--m-f) !important;
  box-shadow: none !important;
}
.ed-simple--cat .vis-panel { margin: 10px 0 0 !important; }
:is(.ed-simple--link, .ed-simple--cat) .vis-panel__icon {
  display: grid !important;
  place-items: center !important;
  width: 34px !important;
  height: 34px !important;
  border-radius: 10px !important;
  background: var(--m-f2) !important;
  color: var(--ed-text) !important;
}
:root[data-theme="light"] :is(.ed-simple--link, .ed-simple--cat) .vis-panel__icon { background: #fff !important; }
:is(.ed-simple--link, .ed-simple--cat) .vis-panel__title { font-size: 14.5px !important; font-weight: 650 !important; color: var(--ed-text) !important; }
:is(.ed-simple--link, .ed-simple--cat) .vis-panel__sub { display: none !important; }

/* More options and the folded panels: flat rows, no descriptions */
.ed-simple--link .ed-more { margin: 2px 0 0 !important; border: 0 !important; }
.ed-simple--link .ed-more > summary {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  height: 34px !important;
  padding: 0 12px !important;
  border-radius: 999px !important;
  color: var(--ed-muted) !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  cursor: pointer;
}
.ed-simple--link .ed-more > summary:hover { background: var(--m-f) !important; color: var(--ed-text) !important; }
.ed-simple--link .ed-more__body { display: flex !important; flex-direction: column !important; gap: 8px !important; padding-top: 8px !important; }
.ed-simple--link .ed-more__body > div > label { display: none !important; }
:is(.ed-simple--link, .ed-simple--cat) :is(.schedule-panel, .textstyle-panel, .textanim-panel) {
  margin: 0 !important;
  border: 0 !important;
  border-radius: 14px !important;
  background: var(--m-f) !important;
  box-shadow: none !important;
}
.ed-simple--cat :is(.textstyle-panel, .textanim-panel) { margin-top: 8px !important; }
:is(.ed-simple--link, .ed-simple--cat) .schedule-panel__head { min-height: 52px !important; padding: 8px 12px 8px 10px !important; border: 0 !important; background: transparent !important; }
:is(.ed-simple--link, .ed-simple--cat) .schedule-panel__icon {
  width: 34px !important;
  height: 34px !important;
  border-radius: 10px !important;
  background: var(--m-f2) !important;
  color: var(--ed-text) !important;
}
:root[data-theme="light"] :is(.ed-simple--link, .ed-simple--cat) .schedule-panel__icon { background: #fff !important; }
:is(.ed-simple--link, .ed-simple--cat) .schedule-panel__title { font-size: 14.5px !important; font-weight: 650 !important; color: var(--ed-text) !important; }
:is(.ed-simple--link, .ed-simple--cat) .schedule-panel__sub { display: none !important; }

/* the type picker in More options: the same flat row */
.ed-simple--link .ed-more__body :is(select, .lt-select, [class*="type-select"] > button) {
  border: 0 !important;
  border-radius: 14px !important;
  background-color: var(--m-f) !important;
  box-shadow: none !important;
}

/* the category hint goes */
.ed-simple--cat .modal-body > div > p { display: none !important; }
.ed-simple--cat .modal-body > div { padding: 0 !important; }

/* footer: Delete as quiet red text on the left, Cancel and Save as pills */
:is(.ed-simple--link, .ed-simple--cat) .modal-footer {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 18px 26px 24px !important;
  border: 0 !important;
  background: transparent !important;
}
:is(.ed-simple--link, .ed-simple--cat) .modal-footer .ed-delete {
  margin-right: auto !important;
  padding: 0 4px !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #e5484d !important;
  font-weight: 650 !important;
}
:is(.ed-simple--link, .ed-simple--cat) .modal-footer .btn:not(.ed-delete) {
  height: 42px !important;
  min-height: 0 !important;
  padding: 0 20px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: var(--m-f) !important;
  box-shadow: none !important;
  color: var(--ed-text) !important;
  font-weight: 650 !important;
}
:is(.ed-simple--link, .ed-simple--cat) .modal-footer .btn.primary {
  background: var(--ed-solid) !important;
  color: var(--ed-on-solid) !important;
  font-weight: 700 !important;
}
:is(.ed-simple--link, .ed-simple--cat) .modal-footer .btn:not(.ed-delete):first-of-type:not(.primary) { margin-left: auto !important; }

/* field colours for these windows: soft grey on white in the light theme */
.modal.ed-simple--link, .modal.ed-simple--cat { --m-f: var(--ed-surface); --m-f2: var(--ed-surface-2); }
:root[data-theme="light"] .modal.ed-simple--link,
:root[data-theme="light"] .modal.ed-simple--cat { --m-f: #f3f4f6; --m-f2: #e8eaee; }
:is(.ed-simple--link, .ed-simple--cat) .modal-footer .btn:not(.ed-delete) { outline: 0 !important; }
:is(.ed-simple--link, .ed-simple--cat) .modal-footer .btn:not(.ed-delete):not(.primary):hover { background: var(--m-f2) !important; }
/* the type picker: the same flat row as the others */
.ed-simple--link .ed-more__body > div:first-child :is(button, select, [role="button"]) {
  min-height: 52px !important;
  border: 0 !important;
  border-radius: 14px !important;
  background-color: var(--m-f) !important;
  box-shadow: none !important;
}

/* Cancel: beat the base footer rule (it is stronger) */
:root:root:root :is(.ed-simple--link, .ed-simple--cat) .modal-footer .btn:not(.primary):not(.danger):not(.ed-delete) {
  border: 0 !important;
  background: var(--m-f) !important;
  box-shadow: none !important;
  color: var(--ed-text) !important;
}
:root:root:root :is(.ed-simple--link, .ed-simple--cat) .modal-footer .btn:not(.primary):not(.danger):not(.ed-delete):hover { background: var(--m-f2) !important; }

/* link Visible: the eye in its tile */
.ed-simple--link .vis-panel__icon:empty {
  background: var(--m-f2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b8e99' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.6-7 10-7 10 7 10 7-3.6 7-10 7S2 12 2 12Z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") center / 18px no-repeat !important;
}
:root[data-theme="light"] .ed-simple--link .vis-panel__icon:empty { background-color: #fff !important; }

/* category rows: even 8px steps */
.ed-simple--cat .modal-body > div > :is(div, .vis-panel) { margin: 8px 0 0 !important; }
.ed-simple--cat :is(.textstyle-panel, .textanim-panel) { margin-top: 0 !important; }
.ed-simple--cat .modal-body > div > label:first-child { margin: 0 !important; }
.ed-simple.ed-simple--link .vis-panel--quiet .vis-panel__icon {
  display: grid !important;
  place-items: center !important;
  width: 34px !important;
  height: 34px !important;
  border-radius: 10px !important;
  background: var(--m-f2) !important;
  color: var(--ed-text) !important;
}
:root[data-theme="light"] .ed-simple.ed-simple--link .vis-panel--quiet .vis-panel__icon { background: #fff !important; }
.ed-simple.ed-simple--link .vis-panel--quiet .vis-panel__title { font-weight: 650 !important; }
.ed-simple--link #standard-url-section, .ed-simple--link #standard-url-section > * { margin: 0 !important; }

/* ===== two-factor confirmation, in the homepage style ===== */
.modal.mfa-modal {
  padding: 30px 28px 26px !important; border-radius: 24px !important;
  background: var(--ed-bg, #07080b) !important; border: 0 !important;
  box-shadow: inset 0 0 0 1px var(--ed-line), 0 30px 80px rgba(0, 0, 0, 0.5) !important;
}
.modal.mfa-modal .modal-header { margin: 0 0 6px !important; padding-right: 44px !important; }
.modal.mfa-modal .modal-header h2 { margin: 0 !important; font-size: 26px !important; font-weight: 800 !important; letter-spacing: -0.045em !important; line-height: 1.1 !important; color: var(--ed-text) !important; }
.modal.mfa-modal .close-btn { top: -6px !important; right: -6px !important; border-radius: 999px !important; background: var(--ed-surface) !important; color: var(--ed-muted) !important; opacity: 1 !important; font-size: 20px !important; }
.modal.mfa-modal .close-btn:hover { color: var(--ed-text) !important; }
.mfa-modal__lead { margin: 0 0 22px !important; font-size: 15px !important; line-height: 1.55 !important; color: var(--ed-muted) !important; }
.mfa-modal__code {
  display: block; width: 100%; height: 72px; box-sizing: border-box;
  padding: 0 12px; border: 0 !important; outline: 0 !important; box-shadow: none !important;
  border-radius: 18px; background: var(--ed-surface) !important; color: var(--ed-text) !important;
  font-family: inherit; font-size: 32px; font-weight: 700; font-variant-numeric: tabular-nums;
  letter-spacing: 0.42em; text-indent: 0.42em; text-align: center;
  transition: background-color 0.15s ease;
}
.mfa-modal__code::placeholder { color: var(--ed-muted); opacity: 0.35; font-weight: 600; }
.mfa-modal__code:focus { background: var(--ed-surface-2) !important; }
.mfa-modal__code:focus-visible { box-shadow: 0 0 0 2px color-mix(in srgb, var(--md-blue, #3b82f6) 55%, transparent) !important; }
.mfa-modal__err { min-height: 18px; margin: 10px 2px 0 !important; font-size: 13px !important; color: #f87171 !important; text-align: center; }
.mfa-modal__actions { display: flex; gap: 10px; margin-top: 16px; }
.mfa-modal__btn {
  height: 48px; padding: 0 20px; border: 0; border-radius: 999px; cursor: pointer;
  font-family: inherit; font-size: 15px; font-weight: 600; transition: opacity 0.2s ease, background-color 0.2s ease;
}
.mfa-modal__btn--ghost { flex: 0 0 auto; background: transparent; color: var(--ed-text); box-shadow: inset 0 0 0 1px var(--ed-line); }
.mfa-modal__btn--ghost:hover { background: var(--ed-surface); }
.mfa-modal__btn--main { flex: 1 1 auto; background: var(--ed-solid); color: var(--ed-on-solid); }
.mfa-modal__btn--main:hover:not(:disabled) { opacity: 0.88; }
.mfa-modal__btn--main:disabled { opacity: 0.35; cursor: default; }
.mfa-modal__btn:focus-visible { outline: 2px solid #8ab6ff; outline-offset: 2px; }
@media (max-width: 560px) {
  .modal.mfa-modal { padding: 24px 18px 20px !important; }
  .mfa-modal__code { height: 64px; font-size: 28px; }
  .mfa-modal__actions { flex-direction: column-reverse; }
  .mfa-modal__btn--ghost { flex: 1 1 auto; }
}
/* the general field rule inside windows is stronger: win over it here */
.modal.mfa-modal input.mfa-modal__code,
.modal.mfa-modal input.mfa-modal__code:hover,
.modal.mfa-modal input.mfa-modal__code:focus {
  height: 72px !important; padding: 0 12px !important; border: 0 !important; outline: 0 !important;
  border-radius: 18px !important; font-size: 32px !important; font-weight: 700 !important;
  letter-spacing: 0.42em !important; text-indent: 0.42em !important; text-align: center !important;
}
.modal.mfa-modal input.mfa-modal__code:not(:focus-visible) { box-shadow: none !important; }
.modal.mfa-modal input.mfa-modal__code { background: var(--ed-surface) !important; }
.modal.mfa-modal input.mfa-modal__code:focus { background: var(--ed-surface-2) !important; }
.modal.mfa-modal .modal-header h2 { white-space: normal !important; overflow: visible !important; text-overflow: clip !important; }
@media (max-width: 560px) { .modal.mfa-modal input.mfa-modal__code { height: 64px !important; font-size: 28px !important; } }

/* ===== log out window, in the homepage style ===== */
.lo-backdrop {
  position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; padding: 16px;
  background: rgba(0, 0, 0, 0.6); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  animation: lo-fade 0.18s ease-out;
}
.lo-modal {
  width: min(400px, 100%); padding: 30px 26px 24px; border-radius: 24px; text-align: center;
  background: var(--ed-bg, #07080b); color: var(--ed-text);
  box-shadow: inset 0 0 0 1px var(--ed-line), 0 30px 80px rgba(0, 0, 0, 0.5);
  animation: lo-pop 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.lo-modal__title { margin: 0; font-size: 26px; font-weight: 800; letter-spacing: -0.045em; line-height: 1.1; color: var(--ed-text); }
.lo-modal__text { margin: 10px auto 24px; max-width: 300px; font-size: 15px; line-height: 1.5; color: var(--ed-muted); }
.lo-modal__actions { display: flex; gap: 10px; }
.lo-modal__btn {
  flex: 1 1 0; height: 48px; border: 0; border-radius: 999px; cursor: pointer;
  font-family: inherit; font-size: 15px; font-weight: 600; transition: opacity 0.2s ease, background-color 0.2s ease;
}
.lo-modal__btn--ghost { background: transparent; color: var(--ed-text); box-shadow: inset 0 0 0 1px var(--ed-line); }
.lo-modal__btn--ghost:hover { background: var(--ed-surface); }
.lo-modal__btn--main { background: var(--ed-solid); color: var(--ed-on-solid); }
.lo-modal__btn--main:hover { opacity: 0.88; }
.lo-modal__btn:focus-visible { outline: 2px solid #8ab6ff; outline-offset: 2px; }
@keyframes lo-fade { from { opacity: 0; } }
@keyframes lo-pop { from { opacity: 0; transform: scale(0.97); } }
@media (prefers-reduced-motion: reduce) { .lo-backdrop, .lo-modal { animation: none; } }

/* ===== linked accounts: each platform in its own colours ===== */
#account.set .account-subsection .la-icon { width: 40px !important; height: 40px !important; border-radius: 12px !important; display: grid !important; place-items: center !important; box-shadow: none !important; }
#account.set .account-subsection .la-icon--google { background: #ffffff !important; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08) !important; }
#account.set .account-subsection .la-icon--discord { background: #5865f2 !important; }
#account.set .account-subsection .la-icon--discord i { color: #ffffff !important; font-size: 18px !important; }
#account.set .account-subsection .la-icon--github { background: #24292f !important; }
:root[data-theme="dark"] #account.set .account-subsection .la-icon--github,
:root:not([data-theme]) #account.set .account-subsection .la-icon--github { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12) !important; }
#account.set .account-subsection .la-icon--github i { color: #ffffff !important; font-size: 19px !important; }

/* ===== linked accounts: Unlink as a soft red pill, a broken chain slides in on hover ===== */
#account.set #linked-list [data-la="unlink"] {
  --ul-fg: #f87171; --ul-bg: rgba(248, 113, 113, 0.1); --ul-bg-hi: rgba(248, 113, 113, 0.18);
  position: relative; display: inline-flex !important; align-items: center !important; gap: 0 !important;
  height: 36px !important; min-height: 0 !important; padding: 0 16px !important;
  border: 0 !important; outline: 0; border-radius: 999px !important; box-shadow: none !important;
  background: var(--ul-bg) !important; color: var(--ul-fg) !important;
  font-family: inherit !important; font-size: 13.5px !important; font-weight: 600 !important; cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), gap 0.25s ease, padding 0.25s ease !important;
}
:root[data-theme="light"] #account.set #linked-list [data-la="unlink"] { --ul-fg: #dc2626; --ul-bg: rgba(220, 38, 38, 0.08); --ul-bg-hi: rgba(220, 38, 38, 0.14); }
#account.set #linked-list [data-la="unlink"]::before {
  content: ''; display: block; width: 0; height: 14px; flex: none; opacity: 0;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 15l-1.5 1.5a3.5 3.5 0 0 1-5-5L4 10'/%3E%3Cpath d='M15 9l1.5-1.5a3.5 3.5 0 0 1 5 5L20 14'/%3E%3Cpath d='M8 4V2M4 8H2M16 20v2M20 16h2'/%3E%3C/svg%3E") center / 14px 14px no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 15l-1.5 1.5a3.5 3.5 0 0 1-5-5L4 10'/%3E%3Cpath d='M15 9l1.5-1.5a3.5 3.5 0 0 1 5 5L20 14'/%3E%3Cpath d='M8 4V2M4 8H2M16 20v2M20 16h2'/%3E%3C/svg%3E") center / 14px 14px no-repeat;
  transform: rotate(-35deg) scale(0.6);
  transition: width 0.25s ease, opacity 0.2s ease, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
#account.set #linked-list [data-la="unlink"]:is(:hover, :focus-visible) {
  background: var(--ul-bg-hi) !important; transform: translateY(-1px); gap: 7px !important; padding: 0 16px 0 13px !important;
}
#account.set #linked-list [data-la="unlink"]:is(:hover, :focus-visible)::before { width: 14px; opacity: 1; transform: rotate(0) scale(1); }
#account.set #linked-list [data-la="unlink"]:active { transform: scale(0.95); transition-duration: 0.08s !important; }
#account.set #linked-list [data-la="unlink"]:focus-visible { outline: 2px solid #8ab6ff !important; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  #account.set #linked-list [data-la="unlink"], #account.set #linked-list [data-la="unlink"]::before { transition: none !important; }
}

/* password step before a data export (same window as log out) */
.lo-modal--form .lo-modal__text { margin-bottom: 18px; }
.lo-modal__input {
  display: block; width: 100%; height: 52px; box-sizing: border-box; padding: 0 18px;
  border: 0; outline: 0; border-radius: 16px; background: var(--ed-surface); color: var(--ed-text);
  font-family: inherit; font-size: 16px; transition: background-color 0.15s ease;
}
.lo-modal__input::placeholder { color: var(--ed-muted); }
.lo-modal__input:focus { background: var(--ed-surface-2); }
.lo-modal__input:focus-visible { box-shadow: 0 0 0 2px color-mix(in srgb, var(--md-blue, #3b82f6) 55%, transparent); }
.lo-modal__hint { margin: 12px 4px 20px; font-size: 12.5px; line-height: 1.5; color: var(--ed-muted); }
.lo-modal__btn--main:disabled { opacity: 0.35; cursor: default; }

/* ======================================================================
   The intro after signing up: one small window, three quick steps
   (links, look, ready), in the dashboard's own style
   ====================================================================== */
.modal.intro {
  --i-f: var(--ed-surface);
  --i-f2: var(--ed-surface-2);
  width: min(520px, calc(100vw - 32px)) !important;
  max-width: 520px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 28px !important;
  background: var(--ed-side) !important;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.6) !important;
  overflow: hidden !important;
}
:root[data-theme="light"] .modal.intro {
  --i-f: #f3f4f6;
  --i-f2: #e8eaee;
  background: #fff !important;
  box-shadow: 0 40px 90px -36px rgba(10, 12, 18, 0.4) !important;
}
.modal.intro .modal-body { padding: 22px 28px 26px !important; margin: 0 !important; }

/* progress and close */
.intro__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; }
.intro__dots { display: flex; gap: 6px; }
.intro__dots i { width: 22px; height: 4px; border-radius: 99px; background: var(--i-f2); transition: background-color 0.25s ease; }
.intro__dots i.is-on { background: var(--ed-text); }
.intro__x {
  display: grid; place-items: center;
  width: 32px; height: 32px;
  border: 0; border-radius: 50%;
  background: transparent; color: var(--ed-muted);
  cursor: pointer;
}
.intro__x:hover { background: var(--i-f); color: var(--ed-text); }

/* a step slides in */
.intro__stage { opacity: 0; transform: translateY(6px); }
.intro__stage.is-in { opacity: 1; transform: none; transition: opacity 0.25s ease, transform 0.25s ease; }
@media (prefers-reduced-motion: reduce) { .intro__stage, .intro__stage.is-in { transform: none; transition: none; } }

.intro__title { margin: 0; font-size: 28px; font-weight: 800; letter-spacing: -0.04em; line-height: 1.1; color: var(--ed-text); }
.intro__title--center { text-align: center; }
.intro__sub { margin: 8px 0 0; font-size: 15px; color: var(--ed-muted); }

/* the address field with its button inside */
.intro__field, .intro__addr {
  display: flex; align-items: center; gap: 8px;
  height: 56px; margin-top: 22px; padding: 0 8px 0 18px;
  border-radius: 16px; background: var(--i-f);
}
.intro__field:focus-within { background: var(--i-f2); }
.modal.intro .intro__field input {
  flex: 1; min-width: 0; height: 100%;
  margin: 0 !important; padding: 0 !important;
  border: 0 !important; outline: 0 !important; border-radius: 0 !important;
  background: transparent !important; box-shadow: none !important;
  color: var(--ed-text) !important; font-size: 16px !important;
}
.intro__addr { margin-top: 20px; }
.intro__addr-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 16px; font-weight: 600; color: var(--ed-text); }
.intro__go {
  height: 40px; padding: 0 18px;
  border: 0; border-radius: 999px;
  background: var(--ed-solid); color: var(--ed-on-solid);
  font-size: 14px; font-weight: 700; cursor: pointer;
}
.intro__go:disabled { opacity: 0.5; cursor: default; }

.intro__error { min-height: 18px; margin: 8px 2px 0; font-size: 13px; color: #e5484d; }
.intro__error:empty { min-height: 0; margin: 0; }
.intro__note { display: flex; align-items: center; gap: 8px; margin: 12px 2px 0; font-size: 13px; color: var(--ed-muted); }
.intro__note i { font-size: 11px; }

/* buttons at the bottom */
.intro__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 26px; }
.intro__foot > :only-child { margin-left: auto; }
.intro__foot--center { justify-content: center; }
.intro__foot--center > :only-child { margin: 0; }
.intro__ghost, .intro__solid {
  display: inline-flex; align-items: center; justify-content: center;
  height: 44px; padding: 0 22px;
  border: 0; border-radius: 999px;
  font-size: 14.5px; font-weight: 650; text-decoration: none; cursor: pointer;
}
.intro__ghost { background: var(--i-f); color: var(--ed-text); }
.intro__ghost:hover { background: var(--i-f2); }
.intro__solid { background: var(--ed-solid); color: var(--ed-on-solid); font-weight: 700; }
.intro__solid:disabled { opacity: 0.5; cursor: default; }

/* choosing what comes over */
.intro__bar { display: flex; justify-content: flex-end; gap: 4px; margin: 14px 0 6px; }
.intro__mini { height: 28px; padding: 0 12px; border: 0; border-radius: 999px; background: transparent; color: var(--ed-muted); font-size: 13px; font-weight: 600; cursor: pointer; }
.intro__mini:hover { background: var(--i-f); color: var(--ed-text); }
.intro__list { display: flex; flex-direction: column; gap: 16px; max-height: min(46vh, 400px); overflow-y: auto; margin: 0 -8px; padding: 0 8px; scrollbar-width: thin; }
.intro__group { display: flex; align-items: baseline; justify-content: space-between; margin: 0 0 6px; padding: 0 4px; font-size: 13px; font-weight: 650; color: var(--ed-muted); }
.intro__group .sec-count { font-weight: 500; }
.intro__rows { display: flex; flex-direction: column; gap: 4px; }
.intro__rows--chips { flex-direction: row; flex-wrap: wrap; gap: 6px; }

.intro-row {
  display: flex; align-items: center; gap: 12px;
  min-height: 52px; padding: 6px 12px;
  border-radius: 14px; background: var(--i-f);
  cursor: pointer;
}
.intro-row--in { margin-left: 20px; }
.intro-row--cat { background: transparent; min-height: 40px; }
.intro-row:has(input[type="checkbox"]:not(:checked)) { opacity: 0.5; }
.modal.intro :is(.intro-row, .intro-chip) input[type="checkbox"] {
  flex: 0 0 auto; width: 18px !important; height: 18px !important; margin: 0 !important;
  accent-color: var(--md-blue);
}
.intro-row__tile {
  flex: 0 0 auto; display: grid; place-items: center;
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--i-f2); color: var(--ed-muted); font-size: 13px;
  object-fit: cover;
}
:root[data-theme="light"] .intro-row__tile { background: #fff; }
.intro-row--cat .intro-row__tile { background: transparent; width: 20px; }
.intro-row__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.modal.intro .intro-row__title {
  width: 100%; margin: 0 !important; padding: 0 !important;
  border: 0 !important; outline: 0 !important; border-radius: 0 !important;
  background: transparent !important; box-shadow: none !important;
  color: var(--ed-text) !important; font: inherit; font-size: 14.5px !important; font-weight: 600 !important;
  min-height: 0 !important; height: auto !important;
}
.modal.intro .intro-row__area { resize: none; font-weight: 500 !important; line-height: 1.35; }
.intro-row__url { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; color: var(--ed-muted); }
.intro-chip {
  display: inline-flex; align-items: center; gap: 8px;
  height: 38px; padding: 0 14px 0 10px;
  border-radius: 999px; background: var(--i-f);
  color: var(--ed-text); font-size: 13.5px; font-weight: 600; cursor: pointer;
}
.intro-chip:has(input:not(:checked)) { opacity: 0.5; }

/* looks: small phones in the theme's own colours */
.intro__looks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 12px; margin-top: 22px; }
.intro-look { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.intro-look__phone {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  width: 100%; aspect-ratio: 4 / 5; padding: 16px 12px 0; box-sizing: border-box;
  border-radius: 18px; overflow: hidden;
  background: linear-gradient(160deg, var(--a), var(--b));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--ed-text) 10%, transparent);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.intro-look:hover .intro-look__phone { transform: translateY(-3px); }
.intro-look.is-on .intro-look__phone { box-shadow: 0 0 0 2px var(--ed-text); }
.intro-look__av { width: 30%; aspect-ratio: 1; border-radius: 50%; background: var(--c); }
.intro-look__nm { width: 46%; height: 6px; margin-bottom: 4px; border-radius: 99px; background: color-mix(in srgb, var(--c) 70%, transparent); }
.intro-look__ln { width: 100%; height: 16%; border-radius: 8px; background: color-mix(in srgb, var(--c) 22%, transparent); }
.intro-look__name { font-size: 13.5px; font-weight: 650; color: var(--ed-muted); }
.intro-look.is-on .intro-look__name { color: var(--ed-text); }

/* ready */
.intro__check {
  display: grid; place-items: center;
  width: 64px; height: 64px; margin: 4px auto 18px;
  border-radius: 50%; background: color-mix(in srgb, #30a46c 16%, transparent); color: #30a46c; font-size: 24px;
}

/* ======================================================================
   Frame options (Design > Frame): the same calm cards as Settings.
   White card per group, hairlines between rows, pill controls, blue for on.
   ====================================================================== */
#profile-builder.ed .fc-panel { display: flex !important; flex-direction: column !important; gap: 26px !important; padding: 0 !important; background: transparent !important; border: 0 !important; }
#profile-builder.ed .fc-group { margin: 0 !important; padding: 0 !important; border: 0 !important; background: transparent !important; }
#profile-builder.ed .fc-group__head { display: flex !important; align-items: baseline !important; justify-content: space-between !important; gap: 12px; margin: 0 0 10px !important; padding: 0 4px !important; border: 0 !important; }
#profile-builder.ed .fc-group__title {
  margin: 0 !important;
  font-size: 16px !important;
  font-weight: 750 !important;
  letter-spacing: -0.02em !important;
  text-transform: none !important;
  color: var(--ed-text) !important;
}
#profile-builder.ed .fc-group__note { font-size: 12.5px !important; color: var(--ed-muted) !important; }
#profile-builder.ed .fc-group__body {
  padding: 0 !important;
  border: 0 !important;
  border-radius: 18px !important;
  background: var(--ed-surface) !important;
  box-shadow: none !important;
  overflow: visible !important;
}

/* one row per option, a hairline between rows */
#profile-builder.ed .fc-group__body .org-set {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
  min-height: 58px !important;
  margin: 0 !important;
  padding: 10px 14px 10px 18px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
#profile-builder.ed .fc-group__body .org-set + .org-set::before {
  content: "";
  position: absolute;
  top: 0;
  left: 18px;
  right: 18px;
  height: 1px;
  background: color-mix(in srgb, var(--ed-text) 7%, transparent);
}
#profile-builder.ed .fc-group__body .org-set-main { flex: 1 1 auto !important; min-width: 0 !important; }
#profile-builder.ed .fc-group__body .org-set-label { display: flex !important; align-items: center !important; gap: 8px; font-size: 15px !important; font-weight: 600 !important; color: var(--ed-text) !important; }
#profile-builder.ed .fc-group__body .org-set-desc { display: none !important; }
#profile-builder.ed .fc-group__body .org-set-control { flex: 0 0 auto !important; display: flex !important; align-items: center !important; justify-content: flex-end !important; }

/* dropdown: a soft pill */
#profile-builder.ed .fc-panel .org-dd__btn {
  height: 38px !important;
  min-width: 132px !important;
  padding: 0 12px 0 16px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: var(--ed-surface-2) !important;
  box-shadow: none !important;
  color: var(--ed-text) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
}
#profile-builder.ed .fc-panel .org-dd__btn:hover { background: color-mix(in srgb, var(--ed-text) 10%, transparent) !important; }

/* switch: grey off, blue on, white knob */
#profile-builder.ed .fc-switch { position: relative; display: inline-flex !important; cursor: pointer; }
#profile-builder.ed .fc-switch input { position: absolute; opacity: 0; width: 0; height: 0; }
#profile-builder.ed .fc-switch__track {
  display: block !important;
  position: relative !important;
  width: 40px !important;
  height: 24px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: color-mix(in srgb, var(--ed-text) 18%, transparent) !important;
  background-image: none !important;
  box-shadow: none !important;
  transition: background-color 0.18s ease !important;
}
#profile-builder.ed .fc-switch__thumb {
  position: absolute !important;
  top: 3px !important;
  left: 3px !important;
  width: 18px !important;
  height: 18px !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: #fff !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25) !important;
  transform: none !important;
  transition: left 0.18s ease !important;
}
#profile-builder.ed .fc-switch input:checked + .fc-switch__track { background: var(--md-blue) !important; background-image: none !important; }
#profile-builder.ed .fc-switch input:checked + .fc-switch__track .fc-switch__thumb { left: 19px !important; transform: none !important; }
#profile-builder.ed .fc-switch input:focus-visible + .fc-switch__track { outline: 2px solid var(--md-blue); outline-offset: 2px; }

/* slider: a thin track and a plain round knob */
#profile-builder.ed .fc-rangewrap { display: flex !important; align-items: center !important; gap: 12px !important; }
#profile-builder.ed .fc-range {
  -webkit-appearance: none !important;
  appearance: none !important;
  width: 150px !important;
  height: 18px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  cursor: pointer;
}
#profile-builder.ed .fc-range::-webkit-slider-runnable-track { height: 4px; border: 0; border-radius: 99px; background: color-mix(in srgb, var(--ed-text) 16%, transparent); }
#profile-builder.ed .fc-range::-moz-range-track { height: 4px; border: 0; border-radius: 99px; background: color-mix(in srgb, var(--ed-text) 16%, transparent); }
#profile-builder.ed .fc-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  margin-top: -7px;
  border: 0;
  border-radius: 50%;
  background: var(--ed-solid);
  background-image: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}
#profile-builder.ed .fc-range::-moz-range-thumb { width: 18px; height: 18px; border: 0; border-radius: 50%; background: var(--ed-solid); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); }
#profile-builder.ed .fc-num { min-width: 44px !important; text-align: right !important; font-size: 13.5px !important; font-weight: 600 !important; font-variant-numeric: tabular-nums; letter-spacing: 0 !important; color: var(--ed-muted) !important; font-family: inherit !important; }

/* colour: a round chip and its code in a pill */
#profile-builder.ed .fc-swatch {
  display: inline-flex !important;
  align-items: center !important;
  gap: 9px !important;
  height: 38px !important;
  padding: 0 14px 0 8px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: var(--ed-surface-2) !important;
  box-shadow: none !important;
  cursor: pointer;
}
#profile-builder.ed .fc-swatch:hover { background: color-mix(in srgb, var(--ed-text) 10%, transparent) !important; }
#profile-builder.ed .fc-swatch__chip { width: 22px !important; height: 22px !important; border: 0 !important; border-radius: 50% !important; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12) !important; }
#profile-builder.ed .fc-swatch__hex { padding: 0 !important; background: transparent !important; font-family: inherit !important; font-size: 13.5px !important; font-weight: 600 !important; letter-spacing: 0.01em !important; text-transform: uppercase; color: var(--ed-muted) !important; }

/* reset marks and the footer */
#profile-builder.ed .fc-reset { width: 24px !important; height: 24px !important; padding: 0 !important; border: 0 !important; border-radius: 50% !important; background: transparent !important; color: var(--ed-muted) !important; font-size: 11px !important; }
#profile-builder.ed .fc-reset:hover { background: var(--ed-surface-2) !important; color: var(--ed-text) !important; }
#profile-builder.ed .fc-foot { display: flex !important; align-items: center !important; justify-content: space-between !important; gap: 12px; margin: 0 !important; padding: 0 4px !important; border: 0 !important; background: transparent !important; }
#profile-builder.ed .fc-foot__note { font-size: 12.5px !important; color: var(--ed-muted) !important; }
#profile-builder.ed .fc-resetall { height: 34px !important; padding: 0 14px !important; border: 0 !important; border-radius: 999px !important; background: var(--ed-surface) !important; color: var(--ed-text) !important; font-size: 13px !important; font-weight: 600 !important; }
#profile-builder.ed .fc-resetall:hover { background: var(--ed-surface-2) !important; }
/* the knob is anchored to the track's edges: 3px from the left off, 3px from the right on */
#profile-builder.ed .fc-switch__track { box-sizing: border-box !important; padding: 0 !important; }
#profile-builder.ed .fc-switch__thumb { margin: 0 !important; }
#profile-builder.ed .fc-switch input:checked + .fc-switch__track .fc-switch__thumb { left: calc(100% - 21px) !important; }

/* ======================================================================
   Review before adding (after pasting a link): the dashboard's own look.
   A white card, fields without outlines, dark pills, no purple.
   ====================================================================== */
#profile-builder.ed .qa-review {
  --qa-f: var(--ed-surface-2);
  margin: 10px 0 14px !important;
  padding: 20px 22px 20px !important;
  border: 0 !important;
  border-radius: 22px !important;
  background: var(--ed-surface) !important;
  box-shadow: none !important;
}
:root[data-theme="light"] #profile-builder.ed .qa-review { --qa-f: #f3f4f6; }
#profile-builder.ed .qa-review__head { display: flex !important; align-items: center !important; justify-content: space-between !important; margin: 0 0 14px !important; padding: 0 !important; border: 0 !important; }
#profile-builder.ed .qa-review__tag {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  color: var(--ed-text) !important;
  font-size: 17px !important;
  font-weight: 750 !important;
  letter-spacing: -0.02em !important;
  text-transform: none !important;
}
#profile-builder.ed .qa-review__tag i { display: none !important; }
#profile-builder.ed .qa-review__x {
  display: grid !important;
  place-items: center !important;
  width: 32px !important;
  height: 32px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: transparent !important;
  color: var(--ed-muted) !important;
}
#profile-builder.ed .qa-review__x:hover { background: var(--qa-f) !important; color: var(--ed-text) !important; }

#profile-builder.ed .qa-review__body { gap: 14px !important; padding: 0 !important; }
#profile-builder.ed .qa-review__fields { display: flex !important; flex-direction: column !important; gap: 8px !important; }
/* title and description say what they are by their placeholder; the type row keeps its small label */
#profile-builder.ed .qa-review__label {
  margin: 6px 2px 0 !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  color: var(--ed-muted) !important;
}
#profile-builder.ed .qa-review__label:has(+ #qa-title),
#profile-builder.ed .qa-review__label:has(+ #qa-desc) {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
}
#profile-builder.ed .qa-review :is(#qa-title, #qa-desc, #qa-thumb-url) {
  box-sizing: border-box !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 16px !important;
  border: 0 !important;
  border-radius: 14px !important;
  background: var(--qa-f) !important;
  box-shadow: none !important;
  outline: 0 !important;
  color: var(--ed-text) !important;
  font-size: 15px !important;
}
#profile-builder.ed .qa-review :is(#qa-title, #qa-thumb-url) { height: 48px !important; font-weight: 600 !important; }
#profile-builder.ed .qa-review #qa-desc { min-height: 64px !important; padding: 12px 16px !important; resize: none !important; line-height: 1.4 !important; }
#profile-builder.ed .qa-review :is(#qa-title, #qa-desc, #qa-thumb-url):focus { background: color-mix(in srgb, var(--ed-text) 9%, transparent) !important; }

/* what kind of link: pills, the chosen one dark */
#profile-builder.ed .qa-type-row { display: flex !important; flex-wrap: wrap !important; gap: 6px !important; margin: 0 !important; }
#profile-builder.ed .qa-type-chip {
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  height: 36px !important;
  padding: 0 14px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: var(--qa-f) !important;
  box-shadow: none !important;
  color: var(--ed-text) !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  opacity: 1 !important;
}
#profile-builder.ed .qa-type-chip i { font-size: 12px !important; color: var(--ed-muted) !important; }
#profile-builder.ed .qa-type-chip:hover { background: color-mix(in srgb, var(--ed-text) 10%, transparent) !important; }
#profile-builder.ed .qa-type-chip.is-active { background: var(--ed-solid) !important; color: var(--ed-on-solid) !important; }
#profile-builder.ed .qa-type-chip.is-active :is(i, span) { color: var(--ed-on-solid) !important; }
#profile-builder.ed .qa-review__meta { display: flex !important; align-items: center !important; gap: 7px !important; margin: 4px 2px 0 !important; font-size: 13px !important; color: var(--ed-muted) !important; }
#profile-builder.ed .qa-review__meta i { font-size: 11px !important; color: var(--ed-muted) !important; }

/* the picture, when the plan has one */
#profile-builder.ed .qa-review__thumb { border: 0 !important; border-radius: 14px !important; background: var(--qa-f) !important; box-shadow: none !important; }
#profile-builder.ed .qa-thumb-act { border: 0 !important; border-radius: 999px !important; background: var(--ed-surface) !important; color: var(--ed-text) !important; box-shadow: none !important; font-weight: 600 !important; }

/* buttons */
#profile-builder.ed .qa-review__actions { display: flex !important; justify-content: flex-end !important; gap: 8px !important; margin: 18px 0 0 !important; padding: 0 !important; border: 0 !important; }
#profile-builder.ed .qa-review__cancel,
#profile-builder.ed .qa-review__confirm {
  height: 42px !important;
  padding: 0 20px !important;
  border: 0 !important;
  border-radius: 999px !important;
  box-shadow: none !important;
  font-size: 14.5px !important;
  font-weight: 650 !important;
  opacity: 1 !important;
}
#profile-builder.ed .qa-review__cancel { background: var(--qa-f) !important; color: var(--ed-text) !important; }
#profile-builder.ed .qa-review__cancel:hover { background: color-mix(in srgb, var(--ed-text) 10%, transparent) !important; }
#profile-builder.ed .qa-review__confirm { background: var(--ed-solid) !important; background-image: none !important; color: var(--ed-on-solid) !important; font-weight: 700 !important; }
#profile-builder.ed .qa-review__confirm :is(i, span) { color: var(--ed-on-solid) !important; }
#profile-builder.ed .qa-review__confirm:disabled { opacity: 0.45 !important; }

/* ===== empty page: three ghost links rising and floating, homepage style ===== */
.profile-empty-state { margin: 0 !important; padding: 0 !important; background: none !important; border: 0 !important; }
.pe-empty { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 40px 20px 44px; }
.pe-empty__art { position: relative; width: min(280px, 82%); height: 150px; margin-bottom: 28px; }
.pe-empty__art::before {
  content: ''; position: absolute; inset: -30% -20%; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--md-blue, #3b82f6) 18%, transparent), transparent 75%);
  animation: pe-glow 5s ease-in-out infinite;
}
.pe-empty__card {
  position: absolute; left: 0; right: 0; height: 40px;
  display: flex; align-items: center; gap: 10px; padding: 0 12px;
  border-radius: 14px; overflow: hidden;
  background: var(--ed-surface); box-shadow: inset 0 0 0 1px var(--ed-line);
  top: calc(var(--i) * 52px);
  opacity: 0; transform: translateY(14px);
  animation: pe-rise 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) forwards, pe-float 6s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.14s), calc(0.8s + var(--i) * 0.5s);
}
.pe-empty__card i {
  flex: none; width: 22px; height: 22px; border-radius: 7px;
  background: var(--ed-surface-2); display: grid; place-items: center;
  font-size: 10px; color: var(--ed-muted); font-style: normal;
}
.pe-empty__card b { flex: 1 1 auto; height: 8px; border-radius: 999px; background: var(--ed-surface-2); max-width: calc(80% - var(--i) * 14%); }
.pe-empty__card::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(100deg, transparent 30%, color-mix(in srgb, var(--ed-text) 9%, transparent) 50%, transparent 70%);
  transform: translateX(-110%);
  animation: pe-sweep 3.6s ease-in-out infinite; animation-delay: calc(1.2s + var(--i) * 0.25s);
}
.pe-empty__card--new { box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--md-blue, #3b82f6) 55%, transparent); background: color-mix(in srgb, var(--md-blue, #3b82f6) 8%, var(--ed-surface)); }
.pe-empty__card--new i { background: var(--md-blue, #3b82f6); color: #fff; animation: pe-pulse 2.4s ease-in-out infinite 1.4s; }
.pe-empty__card--new b { background: color-mix(in srgb, var(--md-blue, #3b82f6) 22%, var(--ed-surface-2)); }
.pe-empty__title { margin: 0; font-size: clamp(28px, 3vw, 36px); line-height: 1; letter-spacing: -0.055em; color: var(--ed-text); }
.pe-empty__title b { display: block; font-weight: 800; }
.pe-empty__title span { display: block; font-weight: 300; color: var(--ed-muted); }
.pe-empty__text { max-width: 320px; margin: 14px 0 0; font-size: 14.5px; line-height: 1.5; color: var(--ed-muted); }
.pe-empty__cta {
  margin-top: 22px; height: 42px; padding: 0 22px; border: 0; border-radius: 999px;
  background: var(--ed-solid); color: var(--ed-on-solid); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
  transition: opacity 0.2s ease;
}
.pe-empty__cta:hover { opacity: 0.88; }
.pe-empty__cta:focus-visible { outline: 2px solid #8ab6ff; outline-offset: 3px; }
@keyframes pe-rise { to { opacity: 1; transform: translateY(0); } }
@keyframes pe-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -5px; } }
@keyframes pe-sweep { 0% { transform: translateX(-110%); } 45%, 100% { transform: translateX(110%); } }
@keyframes pe-pulse { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--md-blue, #3b82f6) 50%, transparent); } 50% { box-shadow: 0 0 0 6px transparent; } }
@keyframes pe-glow { 0%, 100% { opacity: 0.7; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .pe-empty__card { animation: none; opacity: 1; transform: none; }
  .pe-empty__card::after, .pe-empty__card--new i, .pe-empty__art::before { animation: none; }
}

/* ======================================================================
   Holidays: a few tiny shapes in the holiday's colour drift down the
   dashboard once. Nothing to click and nothing in the way.
   ====================================================================== */
.mdr-season { position: fixed; inset: 0; z-index: 30; overflow: hidden; pointer-events: none; }
.mdr-season__p {
  position: absolute;
  top: -24px;
  color: var(--season, #8fc7ff) !important;
  opacity: 0;
  will-change: transform, opacity;
  animation: mdr-season-fall linear 1 both;
}
@keyframes mdr-season-fall {
  0%   { opacity: 0; transform: translate3d(0, 0, 0) rotate(0deg); }
  12%  { opacity: var(--peak, 0.55); }
  80%  { opacity: var(--peak, 0.55); }
  100% { opacity: 0; transform: translate3d(var(--drift, 20px), 104vh, 0) rotate(var(--turn, 90deg)); }
}
body:has(.modal-overlay:not(.hidden)) .mdr-season { display: none; }
@media (prefers-reduced-motion: reduce) { .mdr-season { display: none; } }

/* ======================================================================
   The user menu: view and copy as two small icons beside the name
   ====================================================================== */
.dash-side .dropdown-menu .user-menu-head { display: flex !important; align-items: center !important; gap: 10px; }
.dash-side .dropdown-menu .user-menu-head .user-menu-who { flex: 1 1 auto; min-width: 0; }
.user-menu-quick { flex: 0 0 auto; display: flex; gap: 2px; margin-left: auto; }
.user-menu-quick__btn {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ed-muted);
  cursor: pointer;
}
.user-menu-quick__btn svg { width: 17px; height: 17px; }
.user-menu-quick__btn:hover { background: var(--ed-surface); color: var(--ed-text); }
.user-menu-quick__btn:focus-visible { outline: 2px solid var(--md-blue); outline-offset: 1px; }

/* ======================================================================
   Feedback window
   ====================================================================== */
.modal.fb {
  --fb-f: var(--ed-surface);
  --fb-f2: var(--ed-surface-2);
  width: min(460px, calc(100vw - 32px)) !important;
  max-width: 460px !important;
  border: 0 !important;
  border-radius: 26px !important;
  background: var(--ed-side) !important;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.6) !important;
}
:root[data-theme="light"] .modal.fb { --fb-f: #f3f4f6; --fb-f2: #e8eaee; background: #fff !important; box-shadow: 0 40px 90px -36px rgba(10, 12, 18, 0.4) !important; }
.modal.fb .modal-header { padding: 26px 26px 4px !important; border: 0 !important; }
.modal.fb .modal-header h2 { font-size: 22px !important; font-weight: 800 !important; letter-spacing: -0.03em !important; color: var(--ed-text) !important; }
.modal.fb .modal-body { padding: 14px 26px 24px !important; }
.fb__form { position: relative; display: flex; flex-direction: column; gap: 10px; }
.fb__hp { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.fb__kinds { display: flex; gap: 6px; }
.fb__kind {
  display: inline-flex; align-items: center; gap: 7px;
  height: 36px; padding: 0 14px;
  border: 0; border-radius: 999px;
  background: var(--fb-f); color: var(--ed-text);
  font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer;
}
.fb__kind i { font-size: 12px; color: var(--ed-muted) !important; }
.fb__kind:hover { background: var(--fb-f2); }
.fb__kind.is-on { background: var(--ed-solid); color: var(--ed-on-solid); }
.fb__kind.is-on i { color: var(--ed-on-solid) !important; }
.modal.fb .fb__text {
  box-sizing: border-box; width: 100%; min-height: 132px;
  margin: 0 !important; padding: 14px 16px !important;
  border: 0 !important; border-radius: 16px !important; outline: 0 !important;
  background: var(--fb-f) !important; box-shadow: none !important;
  color: var(--ed-text) !important; font: inherit; font-size: 15px !important; line-height: 1.45; resize: none;
}
.modal.fb .fb__text:focus { background: var(--fb-f2) !important; }
.fb__meta { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; min-height: 18px; padding: 0 2px; font-size: 12.5px; color: var(--ed-muted); }
.fb__msg.is-bad { color: #e5484d; }
.fb__msg a { color: inherit; text-decoration: underline; }
.fb__count { flex: 0 0 auto; font-variant-numeric: tabular-nums; }
.fb__check:empty { display: none; }
.fb__foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 6px; }
.fb__ghost, .fb__solid {
  height: 42px; padding: 0 20px;
  border: 0; border-radius: 999px;
  font: inherit; font-size: 14.5px; font-weight: 650; cursor: pointer;
}
.fb__ghost { background: var(--fb-f); color: var(--ed-text); }
.fb__ghost:hover { background: var(--fb-f2); }
.fb__solid { background: var(--ed-solid); color: var(--ed-on-solid); font-weight: 700; }
.fb__solid:disabled { opacity: 0.5; cursor: default; }
.fb__done { display: grid; justify-items: center; gap: 14px; padding: 8px 0 4px; text-align: center; }
.fb__check-mark { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: color-mix(in srgb, #30a46c 16%, transparent); color: #30a46c; font-size: 22px; }
.fb__thanks { margin: 0; font-size: 16px; font-weight: 650; color: var(--ed-text); }

/* ======================================================================
   Design > Effects: the seasonal decorations switch
   ====================================================================== */
#profile-builder.ed #inline-tray .fx-season {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  min-height: 58px; margin: 0 0 14px; padding: 10px 14px 10px 18px;
  border-radius: 18px; background: var(--ed-surface); cursor: pointer;
}
#profile-builder.ed #inline-tray .fx-season__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
#profile-builder.ed #inline-tray .fx-season__name { font-size: 15px; font-weight: 600; color: var(--ed-text); }
#profile-builder.ed #inline-tray .fx-season__sub { font-size: 13px; color: var(--ed-muted); }
#profile-builder.ed #inline-tray .fx-season input { position: absolute; opacity: 0; width: 0; height: 0; }
#profile-builder.ed #inline-tray .fx-season__track {
  position: relative; flex: 0 0 auto; width: 40px; height: 24px; border-radius: 999px;
  background: color-mix(in srgb, var(--ed-text) 18%, transparent); transition: background-color 0.18s ease;
}
#profile-builder.ed #inline-tray .fx-season__track::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25); transition: left 0.18s ease;
}
#profile-builder.ed #inline-tray .fx-season input:checked + .fx-season__track { background: var(--md-blue); }
#profile-builder.ed #inline-tray .fx-season input:checked + .fx-season__track::after { left: 19px; }
#profile-builder.ed #inline-tray .fx-season input:focus-visible + .fx-season__track { outline: 2px solid var(--md-blue); outline-offset: 2px; }

/* ===== Plus card: the free-plan and "Plus ended" message, in the homepage style.
   Lives at the bottom of the sidebar; a star button when the sidebar is small. */
.plus-card {
  position: relative; isolation: isolate; overflow: hidden;
  margin: 0 0 10px; padding: 16px 16px 14px;
  border-radius: 16px;
  background: #07080b;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  color: #fff; font-family: inherit;
}
.plus-card::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(3, 3, 4, 0.35) 0%, rgba(3, 3, 4, 0.8) 70%, #050506 100%),
    url('https://assets.melodreams.com/assets/images/bg.webp') center 25% / cover no-repeat;
  opacity: 0.9;
}
.plus-card__title { margin: 0 22px 0 0; font-size: 17px; line-height: 1.12; letter-spacing: -0.035em; color: #fff; }
.plus-card__title b { display: block; font-weight: 800; }
.plus-card__title span { display: block; font-weight: 300; color: rgba(255, 255, 255, 0.62); }
.plus-card__text { margin: 8px 0 12px; font-size: 12.5px; line-height: 1.45; color: rgba(255, 255, 255, 0.6); }
.plus-card__cta {
  display: inline-flex; align-items: center; justify-content: center; width: 100%;
  height: 34px; padding: 0 14px; border: 0; border-radius: 999px;
  background: #fff; color: #06070d; font: 600 13.5px/1 inherit; font-family: inherit; cursor: pointer;
  transition: opacity 0.2s ease;
}
.plus-card__cta:hover { opacity: 0.88; }
.plus-card__x {
  position: absolute; top: 10px; right: 10px;
  width: 24px; height: 24px; display: grid; place-items: center;
  border: 0; border-radius: 999px; background: transparent;
  color: rgba(255, 255, 255, 0.5); font-size: 12px; cursor: pointer;
}
.plus-card__x:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.plus-card__mini { display: none; }
.plus-card :focus-visible { outline: 2px solid #8ab6ff; outline-offset: 2px; }

/* small sidebar: one star button */
body.side-min .plus-card { margin: 0 auto 10px; padding: 0; width: 40px; height: 40px; border-radius: 12px; }
body.side-min .plus-card > :not(.plus-card__mini) { display: none; }
body.side-min .plus-card__mini {
  display: grid; place-items: center; width: 100%; height: 100%;
  border: 0; background: transparent; color: #fff; font-size: 14px; cursor: pointer;
}

/* phones and tablets: the sidebar is the tab bar, so the card steps aside
   (upgrading stays in Settings > Billing) */
@media (max-width: 900px) { .dash-side .plus-card { display: none !important; } }

/* ===== Studio on the free plan: homepage-style card with a faint chart behind */
#analytics .analytics-box:has(.analytics-upgrade) { padding: 0 !important; background: none !important; border: 0 !important; box-shadow: none !important; }
#analytics .analytics-upgrade {
  position: relative !important; isolation: isolate !important; overflow: hidden !important;
  display: flex !important; flex-direction: column !important; align-items: center !important; text-align: center !important;
  max-width: 760px !important; margin: 8px 0 0 !important; padding: 64px 32px 56px !important;
  border-radius: 24px !important;
  background: #07080b !important; color: #fff !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08) !important;
}
#analytics .analytics-upgrade::before {
  content: '' !important; position: absolute !important; inset: 0 !important; z-index: -2 !important; pointer-events: none !important;
  background: linear-gradient(180deg, rgba(3, 3, 4, 0.5) 0%, rgba(3, 3, 4, 0.78) 55%, #050506 100%),
    url('https://assets.melodreams.com/assets/images/bg.webp') center 30% / cover no-repeat !important;
  opacity: 0.9 !important;
}
#analytics .analytics-upgrade__ghost { position: absolute !important; left: 0 !important; right: 0 !important; bottom: 0 !important; width: 100% !important; height: 30% !important; z-index: -1 !important; pointer-events: none !important; }
#analytics .analytics-upgrade__ghost path { fill: rgba(96, 140, 255, 0.07) !important; }
#analytics .analytics-upgrade__ghost path.line { fill: none !important; stroke: rgba(130, 165, 255, 0.28) !important; stroke-width: 2 !important; vector-effect: non-scaling-stroke !important; stroke-dasharray: 6 6 !important; }
#analytics .analytics-upgrade > i { display: none !important; }
#analytics .analytics-upgrade__chip {
  display: inline-flex !important; align-items: center !important; gap: 7px !important; margin: 0 0 22px !important;
  height: 28px !important; padding: 0 12px !important; border-radius: 999px !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12) !important; background: rgba(255, 255, 255, 0.04) !important;
  font-size: 12.5px !important; font-weight: 600 !important; color: rgba(255, 255, 255, 0.8) !important;
}
#analytics .analytics-upgrade__chip i { font-size: 11px !important; color: #fbbf24 !important; }
#analytics .analytics-upgrade__title { margin: 0 !important; font-size: clamp(34px, 4.4vw, 56px) !important; line-height: 0.95 !important; letter-spacing: -0.06em !important; color: #fff !important; }
#analytics .analytics-upgrade__title b { display: block !important; font-weight: 800 !important; }
#analytics .analytics-upgrade__title span { display: block !important; font-weight: 300 !important; color: rgba(255, 255, 255, 0.5) !important; }
#analytics .analytics-upgrade__text { max-width: 440px !important; margin: 22px 0 0 !important; font-size: 15.5px !important; line-height: 1.55 !important; color: rgba(255, 255, 255, 0.68) !important; }
#analytics .analytics-upgrade__sub { margin: 6px 0 0 !important; font-size: 13.5px !important; color: rgba(255, 255, 255, 0.45) !important; }
#analytics .analytics-upgrade__cta {
  margin-top: 28px !important; height: 44px !important; padding: 0 26px !important; border: 0 !important; border-radius: 999px !important;
  background: #fff !important; color: #06070d !important; font-family: inherit !important; font-size: 14.5px !important; font-weight: 600 !important; cursor: pointer !important;
  transition: opacity 0.2s ease !important;
}
#analytics .analytics-upgrade__cta:hover { opacity: 0.88 !important; }
#analytics .analytics-upgrade__cta:focus-visible { outline: 2px solid #8ab6ff !important; outline-offset: 3px !important; }
@media (max-width: 560px) {
  .analytics-upgrade { padding: 44px 20px 40px !important; border-radius: 20px !important; }
  .analytics-upgrade__text { font-size: 15px !important; }
  .analytics-upgrade__cta { width: 100% !important; height: 48px !important; }
}
#analytics .analytics-box:has(.analytics-upgrade) { display: block !important; width: 100% !important; max-width: none !important; min-height: 0 !important; }
#analytics .analytics-upgrade { width: 100% !important; box-sizing: border-box !important; }
#analytics .analytics-upgrade__chip i { width: auto !important; height: auto !important; margin: 0 !important; padding: 0 !important; background: none !important; border: 0 !important; box-shadow: none !important; display: inline !important; }

/* ===== editing someone else's page (an organization): a calm floating pill ===== */
.acting-banner {
  position: fixed; top: 12px; left: 50%; transform: translateX(-50%); z-index: 9999;
  display: flex; align-items: center; gap: 14px; max-width: calc(100vw - 24px);
  padding: 8px 8px 8px 16px; border-radius: 999px;
  background: rgba(10, 11, 15, 0.92); color: #fff; font-family: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), 0 14px 40px rgba(0, 0, 0, 0.45);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  animation: acting-in 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.acting-banner__dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: #f59e0b; box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.18); animation: acting-pulse 2.4s ease-in-out infinite; }
.acting-banner__copy { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.acting-banner__line { font-size: 13.5px; font-weight: 500; color: rgba(255, 255, 255, 0.75); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acting-banner__line b { font-weight: 700; color: #fff; }
.acting-banner__sub { font-size: 11.5px; color: rgba(255, 255, 255, 0.5); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acting-banner__actions { display: flex; gap: 6px; flex: none; }
.acting-banner__btn {
  height: 32px; padding: 0 14px; border: 0; border-radius: 999px; cursor: pointer;
  background: transparent; color: #fff; font-family: inherit; font-size: 12.5px; font-weight: 600;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18); transition: background-color 0.2s ease, opacity 0.2s ease;
}
.acting-banner__btn:hover { background: rgba(255, 255, 255, 0.08); }
.acting-banner__btn--main { background: #fff; color: #06070d; box-shadow: none; }
.acting-banner__btn--main:hover { background: #fff; opacity: 0.88; }
.acting-banner__btn:focus-visible { outline: 2px solid #8ab6ff; outline-offset: 2px; }
body.has-acting-banner { padding-top: 66px !important; }
body.has-acting-banner .dash-side { top: 0; }
@keyframes acting-in { from { opacity: 0; transform: translate(-50%, -8px); } }
@keyframes acting-pulse { 50% { box-shadow: 0 0 0 7px rgba(245, 158, 11, 0.05); } }
@media (max-width: 640px) {
  .acting-banner { top: 8px; padding: 8px 8px 8px 14px; gap: 10px; }
  .acting-banner__sub { display: none; }
  .acting-banner__btn:not(.acting-banner__btn--main) { display: none; }
  body.has-acting-banner { padding-top: 58px !important; }
}
@media (prefers-reduced-motion: reduce) { .acting-banner, .acting-banner__dot { animation: none; } }

/* while editing an organization's page only the page tools stay:
   no Studio, Earn, Settings, Organization or Plus card */
body.is-managing .dash-side .dash-tab:is([data-section="analytics"], [data-section="earn"], [data-section="account"], [data-section="orgs"]),
body.is-managing .dash-side .plus-card { display: none !important; }
.acting-banner__short { display: none; }
@media (max-width: 640px) {
  .acting-banner__long { display: none; }
  .acting-banner__short { display: inline; }
  .acting-banner__line { font-size: 13px; }
}
/* centre without halving the room the pill may use */
.acting-banner { left: 12px; right: 12px; margin-inline: auto; width: fit-content; transform: none; }
@keyframes acting-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ===== empty page, what visitors see: soft link shapes in the page's own colour ===== */
.placeholder-box.has-empty-scene { background: none !important; border: 0 !important; box-shadow: none !important; padding: 8px 0 !important; }
.placeholder-box.has-empty-scene > :not(.mdr-empty) { display: none !important; }
.mdr-frame-empty:has(.mdr-empty) { padding: 0 !important; background: none !important; border: 0 !important; font-style: normal !important; }
.mdr-empty { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 28px 16px 36px; color: inherit; }
.mdr-empty__art { position: relative; width: min(240px, 80%); height: 132px; margin-bottom: 24px; }
.mdr-empty__bar {
  position: absolute; left: 0; right: 0; height: 36px; border-radius: 14px;
  top: calc(var(--i) * 46px);
  background: color-mix(in srgb, currentColor 7%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, currentColor 10%, transparent);
  overflow: hidden; opacity: 0; transform: translateY(12px);
  animation: mdr-empty-rise 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) forwards, mdr-empty-float 6s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.14s), calc(0.8s + var(--i) * 0.5s);
}
.mdr-empty__bar::before {
  content: ''; position: absolute; left: 12px; top: 50%; width: 20px; height: 20px; margin-top: -10px; border-radius: 7px;
  background: color-mix(in srgb, currentColor 10%, transparent);
}
.mdr-empty__bar::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 30%, color-mix(in srgb, currentColor 9%, transparent) 50%, transparent 70%);
  transform: translateX(-110%);
  animation: mdr-empty-sweep 3.8s ease-in-out infinite; animation-delay: calc(1.2s + var(--i) * 0.25s);
}
.mdr-empty__bar--spot {
  background: transparent;
  box-shadow: none;
  outline: 1.5px dashed color-mix(in srgb, currentColor 22%, transparent); outline-offset: -1.5px;
}
.mdr-empty__bar--spot::before { background: none; outline: 1.5px dashed color-mix(in srgb, currentColor 22%, transparent); }
.mdr-empty__bar--spot::after { display: none; }
.mdr-empty__title { margin: 0; font-size: clamp(22px, 5vw, 28px); line-height: 1.05; letter-spacing: -0.045em; color: inherit; }
.mdr-empty__title b { display: block; font-weight: 800; }
.mdr-empty__title span { display: block; margin-top: 2px; font-weight: 300; opacity: 0.6; }
@keyframes mdr-empty-rise { to { opacity: 1; transform: translateY(0); } }
@keyframes mdr-empty-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -4px; } }
@keyframes mdr-empty-sweep { 0% { transform: translateX(-110%); } 45%, 100% { transform: translateX(110%); } }
@media (prefers-reduced-motion: reduce) {
  .mdr-empty__bar { animation: none; opacity: 1; transform: none; }
  .mdr-empty__bar::after { animation: none; }
}

/* ======================================================================
   Design → Background, Music, QR code in the homepage style:
   a two-weight headline, soft surfaces without outlines, a white pill
   for the chosen tab, round swatches with the blue check.
   ====================================================================== */
#profile-builder.ed #inline-tray .dz-lede {
  margin: 2px 0 18px !important;
  font-size: 19px;
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--ed-text);
  text-wrap: pretty;
  max-width: none !important;
}
#profile-builder.ed #inline-tray .dz-lede b { font-weight: 700; }
#profile-builder.ed #inline-tray .dz-lede span { font-weight: 500; color: var(--ed-muted); }

/* ---- Background ------------------------------------------------------ */
#profile-builder.ed #inline-tray .bg-modal { display: flex; flex-direction: column; gap: 14px; }
#profile-builder.ed #inline-tray .bg-modal > .dz-lede { margin-bottom: 4px !important; }

/* the three tabs: a quiet track with a white pill, like the Design bar */
#profile-builder.ed #inline-tray .bg-modal__tabs {
  display: inline-flex !important;
  align-self: flex-start;
  gap: 2px !important;
  width: auto !important;
  padding: 4px !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: var(--ed-surface) !important;
  box-shadow: none !important;
}
#profile-builder.ed #inline-tray .bg-modal__tab-thumb { display: none !important; }
#profile-builder.ed #inline-tray .bg-modal__tab {
  flex: 0 0 auto !important;
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 18px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--ed-muted) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease;
}
#profile-builder.ed #inline-tray .bg-modal__tab i { font-size: 13px; opacity: .85; }
#profile-builder.ed #inline-tray .bg-modal__tab:hover { color: var(--ed-text) !important; }
#profile-builder.ed #inline-tray .bg-modal__tab.is-active {
  background: var(--ed-solid) !important;
  color: var(--ed-on-solid) !important;
}

/* upload: a calm open area, a round arrow that lifts on hover */
#profile-builder.ed #inline-tray .bg-modal__preview {
  position: relative;
  min-height: 300px !important;
  height: auto !important;
  border: 0 !important;
  border-radius: 24px !important;
  background:
    radial-gradient(60% 70% at 50% 38%, color-mix(in srgb, var(--md-blue) 10%, transparent), transparent 70%),
    var(--ed-surface) !important;
  box-shadow: none !important;
  outline: none !important;
  overflow: hidden;
  cursor: pointer;
  transition: background-color .2s ease;
}
#profile-builder.ed #inline-tray .bg-modal__preview:focus-visible { box-shadow: 0 0 0 3px color-mix(in srgb, var(--md-blue) 45%, transparent) !important; }
#profile-builder.ed #inline-tray .bg-modal__preview img { border-radius: 24px; }
#profile-builder.ed #inline-tray .bg-modal__empty {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px;
  padding: 24px;
  text-align: center;
  border: 0 !important;
  background: transparent !important;
}
#profile-builder.ed #inline-tray .bg-modal__orb {
  display: grid; place-items: center;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--ed-solid);
  color: var(--ed-on-solid);
  font-size: 18px;
  box-shadow: 0 12px 30px -12px color-mix(in srgb, var(--md-blue) 60%, transparent);
  transition: transform .35s cubic-bezier(.2,.8,.2,1);
}
#profile-builder.ed #inline-tray .bg-modal__preview:hover .bg-modal__orb { transform: translateY(-4px); }
#profile-builder.ed #inline-tray .bg-modal__empty-text {
  margin: 0 !important;
  font-size: 18px !important;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--ed-text) !important;
}
#profile-builder.ed #inline-tray .bg-modal__empty-text b { font-weight: 700; }
#profile-builder.ed #inline-tray .bg-modal__empty-text span { display: block; font-weight: 500; color: var(--ed-muted); }
#profile-builder.ed #inline-tray .bg-modal__empty small {
  font-size: 12.5px !important;
  color: var(--ed-muted) !important;
  opacity: .8;
}
#profile-builder.ed #inline-tray .bg-modal__dragover {
  border: 0 !important;
  border-radius: 24px !important;
  background: color-mix(in srgb, var(--md-blue) 18%, var(--ed-surface)) !important;
  color: var(--ed-text) !important;
  font-weight: 700;
}

/* gallery: rounded tiles that lift, no frames */
#profile-builder.ed #inline-tray .mdr-gal__grid { gap: 10px !important; }
#profile-builder.ed #inline-tray .mdr-gal__tile {
  border: 0 !important;
  border-radius: 16px !important;
  box-shadow: none !important;
  outline: none !important;
  overflow: hidden;
  transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s ease;
}
#profile-builder.ed #inline-tray .mdr-gal__tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px -16px rgba(0,0,0,.7) !important;
}
#profile-builder.ed #inline-tray .mdr-gal__tile:focus-visible { box-shadow: 0 0 0 3px color-mix(in srgb, var(--md-blue) 50%, transparent) !important; }
#profile-builder.ed #inline-tray .mdr-gal__credit { margin-top: 12px !important; color: var(--ed-muted) !important; font-size: 12.5px !important; }

/* URL: one pill with the button inside */
#profile-builder.ed #inline-tray .bg-modal__url-label {
  display: block;
  margin: 0 0 10px !important;
  color: var(--ed-muted) !important;
  font-size: 13.5px !important;
  font-weight: 500 !important;
}
#profile-builder.ed #inline-tray .bg-modal__url-label i { display: none; }
#profile-builder.ed #inline-tray .bg-modal__url {
  display: flex !important;
  align-items: center;
  gap: 6px;
  padding: 5px 5px 5px 18px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: var(--ed-surface) !important;
  box-shadow: none !important;
}
#profile-builder.ed #inline-tray .bg-modal__url:focus-within { background: var(--ed-surface-2) !important; }
#profile-builder.ed #inline-tray .bg-modal__url input {
  flex: 1 1 auto; min-width: 0;
  height: 42px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  outline: none !important;
  color: var(--ed-text) !important;
  font-size: 15px !important;
}
#profile-builder.ed #inline-tray .bg-modal__url .btn {
  flex: 0 0 auto;
  height: 42px !important;
  padding: 0 20px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: var(--ed-solid) !important;
  color: var(--ed-on-solid) !important;
  font-weight: 700 !important;
  box-shadow: none !important;
}

/* remove: a soft red pill */
#profile-builder.ed #inline-tray .bg-modal__foot { border: 0 !important; padding: 0 !important; margin: 0 !important; background: transparent !important; }
#profile-builder.ed #inline-tray .bg-modal__remove,
#profile-builder.ed #inline-tray .mus-remove {
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px;
  padding: 0 18px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: color-mix(in srgb, #ef4444 12%, transparent) !important;
  color: #f87171 !important;
  font: inherit;
  font-size: 14px !important;
  font-weight: 600 !important;
  cursor: pointer;
  transition: background-color .18s ease;
}
#profile-builder.ed #inline-tray .bg-modal__remove:hover,
#profile-builder.ed #inline-tray .mus-remove:hover { background: color-mix(in srgb, #ef4444 20%, transparent) !important; }
:root[data-theme="light"] #profile-builder.ed #inline-tray .bg-modal__remove,
:root[data-theme="light"] #profile-builder.ed #inline-tray .mus-remove { color: #dc2626 !important; }

/* ---- Music ----------------------------------------------------------- */
#profile-builder.ed #inline-tray .mus-field { display: block; margin: 0 0 14px !important; }
#profile-builder.ed #inline-tray .mus-field > span {
  display: block;
  margin: 0 0 8px 4px !important;
  color: var(--ed-text) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
}
#profile-builder.ed #inline-tray .mus-field > span em { font-style: normal; font-weight: 500; color: var(--ed-muted); margin-left: 4px; }
#profile-builder.ed #inline-tray .mus-field input {
  width: 100%;
  height: 50px !important;
  padding: 0 18px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: var(--ed-surface) !important;
  box-shadow: none !important;
  outline: none !important;
  color: var(--ed-text) !important;
  font-size: 15px !important;
  transition: background-color .18s ease, box-shadow .18s ease;
}
#profile-builder.ed #inline-tray .mus-field input:hover { background: var(--ed-surface-2) !important; }
#profile-builder.ed #inline-tray .mus-field input:focus { background: var(--ed-surface-2) !important; box-shadow: 0 0 0 3px color-mix(in srgb, var(--md-blue) 35%, transparent) !important; }
#profile-builder.ed #inline-tray .mus-field input::placeholder { color: var(--ed-muted); opacity: .7; }
#profile-builder.ed #inline-tray .mus-status:empty { display: none; }
#profile-builder.ed #inline-tray .mus-status {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 2px 0 0 4px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  font-size: 13.5px !important;
  font-weight: 600;
}
#profile-builder.ed #inline-tray .mus-status.is-ok { color: #4ade80 !important; }
#profile-builder.ed #inline-tray .mus-status.is-bad { color: #f87171 !important; }
:root[data-theme="light"] #profile-builder.ed #inline-tray .mus-status.is-ok { color: #16a34a !important; }
:root[data-theme="light"] #profile-builder.ed #inline-tray .mus-status.is-bad { color: #dc2626 !important; }
#profile-builder.ed #inline-tray .mus-actions { margin-top: 18px; }

/* ---- QR code --------------------------------------------------------- */
#profile-builder.ed #inline-tray .qr-wrap { display: flex; flex-direction: column; gap: 14px; }
/* the same white card visitors see in the share window */
#profile-builder.ed #inline-tray .qr-preview-box {
  display: grid; place-items: center;
  width: auto !important; height: auto !important;
  padding: 18px !important;
  border: 0 !important;
  border-radius: 18px !important;
  background: #ffffff !important;
  box-shadow: none !important;
}
#profile-builder.ed #inline-tray .qr-preview { width: 200px; height: 200px; filter: none; }

#profile-builder.ed #inline-tray .qr-presets {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 8px !important;
}
#profile-builder.ed #inline-tray .qr-preset,
#profile-builder.ed #inline-tray .qr-preset.is-active {
  position: relative;
  display: flex !important; flex-direction: column; align-items: center; justify-content: center;
  gap: 9px !important;
  min-height: 0 !important;
  padding: 14px 6px 12px !important;
  border: 0 !important;
  border-radius: 18px !important;
  background: var(--ed-surface) !important;
  box-shadow: none !important;
  outline: none !important;
  color: var(--ed-muted) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, transform .25s cubic-bezier(.2,.8,.2,1);
}
#profile-builder.ed #inline-tray .qr-preset:hover { background: var(--ed-surface-2) !important; color: var(--ed-text) !important; transform: translateY(-2px); }
#profile-builder.ed #inline-tray .qr-preset.is-active { background: var(--ed-surface-2) !important; color: var(--ed-text) !important; }
#profile-builder.ed #inline-tray .qr-preset__sw {
  width: 34px !important; height: 34px !important;
  border: 0 !important;
  border-radius: 50% !important;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12), 0 6px 14px -8px rgba(0,0,0,.6) !important;
  transition: transform .25s cubic-bezier(.2,.8,.2,1);
}
#profile-builder.ed #inline-tray .qr-preset:hover .qr-preset__sw { transform: scale(1.06); }
/* the chosen style: the blue check, no outline */
#profile-builder.ed #inline-tray .qr-preset.is-active::after {
  content: "" !important;
  position: absolute !important;
  top: 8px !important; right: 8px !important; left: auto !important; bottom: auto !important;
  width: 20px !important; height: 20px !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: var(--md-blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat !important;
  box-shadow: 0 4px 10px -4px color-mix(in srgb, var(--md-blue) 70%, transparent) !important;
}

/* custom: one soft card, rows split by space, not lines */
#profile-builder.ed #inline-tray .qr-custom:not([hidden]) {
  display: flex !important; flex-direction: column;
  gap: 4px;
  padding: 8px 8px 8px 18px !important;
  border: 0 !important;
  border-radius: 22px !important;
  background: var(--ed-surface) !important;
}
#profile-builder.ed #inline-tray .qr-row {
  display: flex !important; align-items: center; justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: var(--ed-text) !important;
  font-size: 14.5px !important;
  font-weight: 600;
}
#profile-builder.ed #inline-tray .qr-row > span:first-child i { color: var(--ed-muted); margin-right: 6px; }
#profile-builder.ed #inline-tray #qr-fg {
  width: 40px !important; height: 40px !important;
  padding: 0 !important;
  margin-right: 4px;
  border: 0 !important;
  border-radius: 50% !important;
  background: transparent !important;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.14) !important;
  overflow: hidden;
  cursor: pointer;
}
#profile-builder.ed #inline-tray #qr-fg::-webkit-color-swatch-wrapper { padding: 0; }
#profile-builder.ed #inline-tray #qr-fg::-webkit-color-swatch { border: 0; border-radius: 50%; }
#profile-builder.ed #inline-tray #qr-fg::-moz-color-swatch { border: 0; border-radius: 50%; }
#profile-builder.ed #inline-tray #qr-style.ts-modes {
  display: inline-flex !important;
  gap: 2px !important;
  padding: 4px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: var(--ed-bg) !important;
  box-shadow: none !important;
}
#profile-builder.ed #inline-tray #qr-style .ts-mode {
  height: 34px;
  padding: 0 14px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--ed-muted) !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
}
#profile-builder.ed #inline-tray #qr-style .ts-mode:hover { color: var(--ed-text) !important; }
#profile-builder.ed #inline-tray #qr-style .ts-mode.is-active {
  background: var(--ed-solid) !important;
  color: var(--ed-on-solid) !important;
}

@media (max-width: 600px) {
  #profile-builder.ed #inline-tray .dz-lede { font-size: 17px; }
  #profile-builder.ed #inline-tray .bg-modal__tabs { align-self: stretch; }
  #profile-builder.ed #inline-tray .bg-modal__tab { flex: 1 1 0 !important; justify-content: center; padding: 0 10px !important; }
  #profile-builder.ed #inline-tray .bg-modal__preview { min-height: 240px !important; }
  #profile-builder.ed #inline-tray .qr-presets { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  #profile-builder.ed #inline-tray #qr-style .ts-mode { padding: 0 11px !important; }
}

/* ======================================================================
   Phones and tablets.
   Up to 900px the sidebar becomes a tab bar at the bottom, pages are one
   column with comfortable margins, and the page preview opens on request.
   ====================================================================== */

/* ---------- the page preview, on request (any screen without the fixed phone) ---------- */
.dash-preview-btn { display: none; }
@media (max-width: 1279px) {
  body.has-side:has(#profile-builder.section.active) .dash-preview-btn {
    position: fixed;
    z-index: 39;
    right: 20px;
    bottom: 24px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 46px;
    padding: 0 18px;
    border: 0;
    border-radius: 999px;
    background: var(--ed-solid);
    color: var(--ed-on-solid);
    font: inherit;
    font-size: 14.5px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 16px 34px -16px rgba(0, 0, 0, 0.6);
  }
  .dash-preview-btn svg { width: 17px; height: 17px; }
  .dash-preview-btn:focus-visible { outline: 2px solid var(--md-blue); outline-offset: 3px; }
  body:has(.modal-overlay:not(.hidden)) .dash-preview-btn { display: none !important; }

  /* opened: the phone in the middle of the screen, the page dimmed behind it */
  body.pp-open { overflow: hidden !important; }
  body.pp-open .phone-preview {
    position: fixed !important;
    inset: 0 !important;
    z-index: 70 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 14px !important;
    width: auto !important;
    padding: 16px !important;
    background: color-mix(in srgb, var(--ed-bg) 88%, transparent);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
  }
  body.pp-open .phone-preview > .section-actions { width: 295px !important; flex: 0 0 auto; }
  body.pp-open .phone-preview__device { flex: 0 0 auto; }
  /* a short screen: the phone shrinks to fit */
  @media (max-height: 760px) { body.pp-open .phone-preview__device { zoom: 0.82; } }
  @media (max-height: 640px) { body.pp-open .phone-preview__device { zoom: 0.68; } }
  body.pp-open .dash-preview-btn { z-index: 71; }
  body.pp-open .dash-top { display: none !important; }
}
.pp-close { display: none; }
body.pp-open .pp-close {
  display: grid;
  place-items: center;
  position: fixed;
  z-index: 72;
  top: max(14px, env(safe-area-inset-top));
  right: 14px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--ed-surface);
  color: var(--ed-text);
  font-size: 16px;
  cursor: pointer;
}

/* ---------- up to 900px: the tab bar ---------- */
@media (max-width: 900px) {
  body.has-side,
  body.has-side.side-min { padding-left: 0 !important; padding-bottom: calc(66px + env(safe-area-inset-bottom)) !important; }

  .dash-side,
  body.side-min .dash-side {
    inset: auto 0 0 0 !important;
    width: auto !important;
    height: calc(62px + env(safe-area-inset-bottom)) !important;
    flex-direction: row !important;
    align-items: stretch !important;
    gap: 0 !important;
    padding: 5px max(6px, env(safe-area-inset-right)) calc(5px + env(safe-area-inset-bottom)) max(6px, env(safe-area-inset-left)) !important;
    border-right: 0 !important;
    border-top: 1px solid var(--ed-line) !important;
  }
  .dash-side__brand, .dash-side__fold { display: none !important; }
  .dash-side__nav { flex: 1 1 auto !important; flex-direction: row !important; gap: 2px !important; min-width: 0; }
  .dash-tab,
  body.side-min .dash-tab {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    width: auto !important;
    flex-direction: column !important;
    justify-content: center !important;
    gap: 4px !important;
    padding: 0 2px !important;
    border-radius: 12px !important;
    font-size: 10.5px !important;
    font-weight: 600 !important;
    text-align: center !important;
  }
  .dash-tab i { width: auto !important; font-size: 20px !important; }
  /* icons only; the name stays for screen readers */
  .dash-tab span,
  body.side-min .dash-tab span {
    position: absolute !important;
    width: 1px !important; height: 1px !important;
    max-width: 1px !important;
    padding: 0 !important; margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
    border: 0 !important;
  }
  .dash-tab[hidden] { display: none !important; }

  /* the account: just the photo, as the last item; its menu opens upward */
  .dash-side__user { flex: 0 0 52px !important; margin: 0 !important; display: flex; align-items: center; justify-content: center; position: static !important; }
  .dash-side .user-box { padding: 0 !important; gap: 0 !important; background: transparent !important; justify-content: center; }
  .dash-side .user-box .user-name, .dash-side .user-box .arrow-icon { display: none !important; }
  .dash-side .dropdown-menu {
    position: fixed !important;
    left: auto !important;
    right: 8px !important;
    top: auto !important;
    bottom: calc(70px + env(safe-area-inset-bottom)) !important;
    width: min(290px, calc(100vw - 16px)) !important;
    max-height: calc(100dvh - 100px) !important;
    overflow-y: auto !important;
  }

  /* floating buttons sit above the bar */
  body.has-side .dash-preview-btn { bottom: calc(78px + env(safe-area-inset-bottom)) !important; right: 14px !important; }
  .dash-top { bottom: calc(78px + env(safe-area-inset-bottom)) !important; right: auto !important; left: 14px !important; }
  body.pp-open .dash-side { display: none !important; }

  /* ---------- pages: one column, even margins ---------- */
  body.has-side .section.active,
  body.has-side #profile-builder.ed.section.active,
  body.has-side #account.set.section.active,
  body.has-side #code.section.active {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 720px !important;
    margin: 0 auto !important;
    padding: 22px 18px 28px !important;
  }
  #profile-builder.ed { padding-right: 18px !important; }

  /* Settings: the groups become a row of chips that scrolls sideways */
  /* only when Settings is the page being shown */
  #account.set.section.active { display: flex !important; flex-direction: column !important; }
  #account.set.section.active > * { order: 3; }
  #account.set.section.active > :is(h2, .section-header) { order: 0; }
  #account.set.section.active > .set-cats { order: 1; }
  #account.set.section.active > .set-ov { order: 2; }
  #account.set .set-cats {
    position: static !important;
    display: flex !important;
    flex-direction: row !important;
    gap: 6px !important;
    width: auto !important;
    margin: 0 -18px 18px !important;
    padding: 2px 18px !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow-x: auto !important;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  #account.set .set-cats::-webkit-scrollbar { display: none; }
  #account.set .set-cat {
    flex: 0 0 auto !important;
    width: auto !important;
    height: 40px !important;
    padding: 0 14px !important;
    border-radius: 999px !important;
    background: var(--ed-surface) !important;
    white-space: nowrap;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-size: 14px !important;
  }
  #account.set .set-cat.is-current { background: var(--ed-solid) !important; color: var(--ed-on-solid) !important; }
  #account.set .set-cat.is-current :is(i, span) { color: var(--ed-on-solid) !important; }
  #account.set .set-cat.is-danger { margin: 0 !important; border: 0 !important; }
  #account.set .set-cats::before, #account.set .set-cats::after, #account.set .set-cat.is-danger::before { display: none !important; }
  /* only the chosen group shows, as on a wide screen */
  #account.set:not(.set-measure) #main-menu .set-group:not(.is-on) { display: none !important; }
  #account.set:not([data-cat="overview"]) > .set-ov { display: none !important; }
  #account.set[data-cat="overview"]:not(.set-open) > .set-ov { display: block !important; }
  #account.set > .set-ov, #account.set #main-menu, #account.set .account-subsection { grid-column: auto !important; width: auto !important; max-width: none !important; margin-left: 0 !important; margin-right: 0 !important; }
  .set-ov__label, .set-bill__label { flex-basis: 110px !important; }

  /* Code: editors first, the preview under them */
  #code .pc-shell { height: auto !important; grid-template-columns: minmax(0, 1fr) !important; grid-template-areas: "title" "foot" "bar" "work" !important; }
  #code .pc-beta { grid-area: title; justify-self: start; margin-left: 92px; }
  #code .pc-foot { flex-wrap: wrap !important; }
  #code .pc-work { display: flex !important; flex-direction: column !important; gap: 14px !important; }
  #code .pc-cols { width: 100% !important; flex: 0 0 auto !important; }
  #code .pc-pane { flex: 0 0 auto !important; height: 300px !important; }
  #code .pc-split { display: none !important; }
  #code .pc-preview { width: 100% !important; min-width: 0 !important; height: 660px !important; flex: 0 0 auto !important; }
  #code .pc-tool span { display: inline !important; }

  /* Effects and frames: two across */
  #profile-builder.ed #inline-tray .fx-grid,
  #profile-builder.ed #inline-tray [class*="fx-grid"] { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 12px !important; }
  #profile-builder.ed #inline-tray .fx-card__name { font-size: 12.5px !important; padding: 28px 10px 10px !important; }

  /* the tool row scrolls sideways instead of wrapping */
  .dz-pills, .dz-tools { overflow-x: auto !important; flex-wrap: nowrap !important; scrollbar-width: none; -webkit-overflow-scrolling: touch; max-width: 100% !important; }
  .dz-pills::-webkit-scrollbar, .dz-tools::-webkit-scrollbar { display: none; }
  .dz-pill { flex: 0 0 auto !important; }

  /* headings a little smaller */
  body.has-side .section > .section-header h2,
  #account.set > h2, #code .pc-shell::before { font-size: 28px !important; }

  /* pop-up windows fit the screen and scroll inside */
  .modal-overlay { padding: 12px !important; }
  .modal-overlay .modal {
    width: 100% !important;
    max-width: min(520px, calc(100vw - 24px)) !important;
    max-height: calc(100dvh - 24px) !important;
    overflow-y: auto !important;
  }
  .modal.intro, .modal.fb, .modal.ed-simple--link, .modal.ed-simple--cat { max-width: min(460px, calc(100vw - 24px)) !important; }
  .intro__looks { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .pc-starters__grid { grid-template-columns: repeat(2, 150px) !important; gap: 16px !important; }
  .pc-starter__shot { width: 150px !important; height: 262px !important; }
  .pc-starter__frame { transform: scale(0.3846) !important; }
}

/* ---------- phones ---------- */
@media (max-width: 560px) {
  body.has-side .section.active,
  body.has-side #profile-builder.ed.section.active,
  body.has-side #account.set.section.active,
  body.has-side #code.section.active { padding: 16px 14px 24px !important; }
  #profile-builder.ed { padding-right: 14px !important; }
  #account.set .set-cats { margin: 0 -14px 16px !important; padding: 2px 14px !important; }
  .modal-overlay .modal .modal-header { padding: 20px 18px 4px !important; }
  .modal-overlay .modal:not(.up-cine) .modal-body { padding-left: 18px !important; padding-right: 18px !important; }
  .modal-overlay .modal .modal-footer { padding-left: 18px !important; padding-right: 18px !important; }
  .set-ov__row, .set-bill__row { padding: 14px 14px !important; gap: 10px !important; }
  .set-ov__label, .set-bill__label { flex-basis: auto !important; }
  .set-ov__head { gap: 12px !important; }
  .set-ov__avatar { width: 48px !important; height: 48px !important; flex-basis: 48px !important; }
  .set-ov__name { font-size: 19px !important; }
  .qa-type-chip { height: 40px !important; }
  #code .pc-foot :is(.pc-live, .pc-url, .pc-save) { flex: 1 1 auto; justify-content: center; }
}

/* ---------- touch screens: nothing depends on hovering ---------- */
@media (hover: none) {
  /* reorder and section tools are always there */
  #profile-builder.ed #profile-preview-box .reorder-controls .reorder-btn:not(.vis-btn) { opacity: 1 !important; pointer-events: auto !important; }
  #profile-builder.ed #profile-preview-box .category-header .category-tools,
  #profile-builder.ed #profile-preview-box .category-header [class*="tools"] { opacity: 1 !important; visibility: visible !important; }
  /* bigger touch targets */
  #profile-builder.ed #profile-preview-box .reorder-controls .vis-btn { width: 40px !important; height: 24px !important; background-size: 18px 18px !important; }
  .dash-side .dropdown-item { min-height: 44px; }
  .intro-row { min-height: 56px; }
  .user-menu-quick__btn { width: 40px; height: 40px; }
}

/* ---------- second pass: details at phone and tablet size ---------- */
@media (max-width: 900px) {
  /* Studio: the Month / Year switch stays one row */
  .std-range { display: inline-flex !important; flex-direction: row !important; flex-wrap: nowrap !important; flex: 0 0 auto !important; width: auto !important; height: auto !important; border-radius: 999px !important; }
  .std-range__btn { flex: 0 0 auto !important; }
  .studio-cardhead { flex-wrap: wrap !important; gap: 12px !important; }
  /* Settings chips: no outline, the dashboard's own type */
  #account.set .set-cat { border: 0 !important; box-shadow: none !important; font-family: inherit !important; font-weight: 600 !important; }
}
@media (max-width: 560px) {
  /* pop-up windows: the content gets the width, not the padding */
  .modal-overlay .modal:is(.ed-simple, .ed-simple--link, .ed-simple--cat, .fb, .intro) { padding: 0 !important; }
  .modal-overlay .modal:is(.ed-simple--link, .ed-simple--cat, .fb) .modal-header { padding: 22px 18px 4px !important; }
  .modal-overlay .modal:is(.ed-simple--link, .ed-simple--cat, .fb) .modal-body { padding: 12px 18px 8px !important; }
  .modal-overlay .modal:is(.ed-simple--link, .ed-simple--cat) .modal-footer { padding: 14px 18px 20px !important; }
  .modal.intro .modal-body { padding: 18px 18px 22px !important; }
  .intro__title { font-size: 24px !important; }
}

/* account menu from the tab bar: as tall as its content, no extra close button */
@media (max-width: 900px) {
  .dash-side .dropdown-menu { height: auto !important; min-height: 0 !important; max-height: calc(100dvh - 100px) !important; overflow-y: auto !important; top: auto !important; }
  .dash-side .dropdown-menu .mobile-menu-close { display: none !important; }
  .dash-side .dropdown-menu .dropdown-item { min-height: 46px !important; }
  .user-menu-quick__btn { width: 40px !important; height: 40px !important; }
}

/* tablets: effect tiles three or four across, pages share one width */
@media (min-width: 561px) and (max-width: 900px) {
  #profile-builder.ed #inline-tray .fx-grid,
  #profile-builder.ed #inline-tray [class*="fx-grid"] { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}
@media (min-width: 760px) and (max-width: 900px) {
  #profile-builder.ed #inline-tray .fx-grid,
  #profile-builder.ed #inline-tray [class*="fx-grid"] { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
}

/* touch screens: typing in a field never zooms the page */
@media (hover: none) and (max-width: 1024px) {
  body.has-side :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]), textarea, select) { font-size: 16px !important; }
  body.has-side #code textarea, body.has-side #code .pc-hl { font-size: 13px !important; }
}

/* image windows (avatar, banner) on phones: less inner padding, tabs on one line */
@media (max-width: 560px) {
  .modal:has(.img-modal__seg) { padding: 18px !important; }
  .modal:has(.img-modal__seg) .modal-header { padding: 2px 2px 14px !important; }
  .modal:has(.img-modal__seg) .modal-body { padding: 0 !important; }
}
.modal .img-modal__seg-btn { white-space: nowrap !important; }

/* Design → Theme on phones: the list grows with its cards (an old rule
   fixed it at 55vh, which squashed every card), two cards a row */
#profile-builder.ed .dz-themes #theme-popup { height: auto !important; min-height: 0 !important; }
@media (max-width: 600px) {
  #profile-builder.ed .dz-themes #theme-popup { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px !important; }
}

/* Plus windows on phones: one frame, the picture runs to the edges */
@media (max-width: 560px) {
  .modal.up-cine .modal-body { padding: 0 !important; }
  .modal.up-cine .up-plate { border: 0 !important; }
}


/* About Melodreams: left aligned, grouped link rows like the rest of settings */
.about2 { padding: 4px 0 8px; text-align: left; }
.about2__head { display: flex; align-items: center; gap: 14px; margin: 0 2px 26px; }
.about2__logo { width: 52px; height: 52px; flex: 0 0 52px; object-fit: contain; }
.about2__who { flex: 1 1 auto; min-width: 0; }
.about2__name { font-size: 22px; font-weight: 800; letter-spacing: -0.035em; color: var(--ed-text, var(--text-primary)); }
#account .about2 .about2__tag { margin: 2px 0 0; font-size: 14px; line-height: 1.45; color: var(--ed-muted, var(--text-secondary)) !important; }
.about2__ver { flex: 0 0 auto; padding: 5px 11px; border-radius: 999px; background: var(--ed-surface-2, rgba(255,255,255,.06)); color: var(--ed-muted, var(--text-secondary)); font-size: 12.5px; font-weight: 700; }
.about2__ver:empty { display: none; }
#account .about2 .about2__group { margin: 0 4px 10px; padding: 0; border: 0; font-size: 12px; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; color: var(--ed-muted, var(--text-secondary)); }
#account .about2 .set-ov__rows + .about2__group { margin-top: 26px; }
/* one connected box per group: only its outer corners are round, rows are split by a thin line */
#account .about2 .set-ov__rows { border-radius: 18px !important; overflow: hidden; background: var(--ed-surface, rgba(255,255,255,.04)); }
#account .about2 .about2__row {
  margin: 0 !important; border: 0 !important; border-radius: 0 !important;
  background: transparent !important; text-decoration: none;
  box-shadow: inset 0 1px 0 var(--ed-line, rgba(255,255,255,.06)) !important;
}
#account .about2 .about2__row:first-child { box-shadow: none !important; }
#account .about2 .about2__row:hover { background: var(--ed-surface-2, rgba(255,255,255,.07)) !important; }
.about2__ic { flex: 0 0 30px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--ed-surface-2, rgba(255,255,255,.06)); color: var(--ed-text, var(--text-primary)); font-size: 13px; }
.about2__label { flex: 1 1 auto; min-width: 0; font-weight: 550; }
