/* =========================================================
   NOVA — dashboard & editor
   ========================================================= */
.dash {
  display: grid;
  grid-template-columns: 238px minmax(0, 1fr) 388px;
  min-height: 100vh;
  background: #08080d;
}

.dash-sidebar-backdrop {
  display: none;
}

.dash-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 18px 14px 16px;
  border-right: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.018), transparent 24%),
    #09090e;
  overflow-y: auto;
  scrollbar-width: none;
}

.dash-sidebar::-webkit-scrollbar {
  display: none;
}

.dash-brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 6px;
}

.dash-brand-row .brand {
  font-size: 18px;
}

.dash-brand-row .brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}

.dash-brand-row .brand-mark svg {
  width: 16px;
  height: 16px;
}

.dash-close-mobile {
  display: none;
}

.profile-switcher {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.03);
  text-align: left;
  transition: border-color 0.2s, background 0.2s;
}

.profile-switcher:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.05);
}

.profile-switcher-avatar {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  border-radius: 8px;
  object-fit: cover;
  background: #1b1726;
}

.profile-switcher-copy {
  min-width: 0;
  flex: 1;
}

.profile-switcher-copy strong {
  display: block;
  overflow: hidden;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.profile-switcher-copy span {
  display: block;
  overflow: hidden;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 7.5px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.profile-switcher > svg {
  width: 13px;
  height: 13px;
  color: var(--muted);
}

.dash-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dash-nav-label {
  padding: 4px 10px 7px;
  color: #565263;
  font-family: var(--font-mono);
  font-size: 7.5px;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.dash-nav-label:not(:first-child) {
  margin-top: 12px;
}

.dash-nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  min-height: 36px;
  padding: 0 10px;
  border-radius: 8px;
  color: #858193;
  font-size: 11.5px;
  font-weight: 600;
  text-align: left;
  transition: color 0.18s, background 0.18s;
}

.dash-nav-item svg {
  width: 15px;
  height: 15px;
  opacity: 0.8;
}

.dash-nav-item:hover {
  color: var(--text-soft);
  background: rgba(255, 255, 255, 0.035);
}

.dash-nav-item.active {
  color: #f1edff;
  background: linear-gradient(90deg, rgba(179, 154, 255, 0.14), rgba(179, 154, 255, 0.04));
}

.dash-nav-item.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  bottom: 9px;
  width: 2px;
  border-radius: 2px;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(179, 154, 255, 0.5);
}

.dash-nav-item.active svg {
  color: var(--accent);
  opacity: 1;
}

.nav-count {
  margin-left: auto;
  min-width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  padding: 0 5px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.06);
  color: #8e8a9c;
  font-family: var(--font-mono);
  font-size: 7px;
}

.dash-nav-item.active .nav-count {
  background: rgba(179, 154, 255, 0.14);
  color: #d7ccff;
}

.nav-soon {
  margin-left: auto;
  padding: 2px 5px;
  border-radius: 4px;
  background: rgba(201, 255, 122, 0.08);
  color: var(--lime);
  font-family: var(--font-mono);
  font-size: 6px;
  letter-spacing: 0.06em;
}

.unlocked-card {
  position: relative;
  margin-top: auto;
  padding: 13px;
  overflow: hidden;
  border: 1px solid rgba(179, 154, 255, 0.16);
  border-radius: 12px;
  background:
    radial-gradient(ellipse 100% 100% at 0% 0%, rgba(179, 154, 255, 0.15), transparent 65%),
    rgba(255, 255, 255, 0.022);
}

.unlocked-card::after {
  content: "";
  position: absolute;
  width: 70px;
  height: 70px;
  right: -25px;
  top: -28px;
  border-radius: 50%;
  background: rgba(179, 154, 255, 0.12);
  filter: blur(16px);
}

.unlocked-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--lime);
  font-family: var(--font-mono);
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.unlocked-label svg {
  width: 10px;
  height: 10px;
}

.unlocked-card strong {
  display: block;
  margin-top: 7px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.unlocked-card p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 8.5px;
  line-height: 1.5;
}

.unlocked-progress {
  height: 3px;
  margin-top: 10px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.08);
}

.unlocked-progress i {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.dash-account {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 5px 0;
  border-top: 1px solid var(--line);
}

.dash-account-avatar {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, #2a213e, #14111d);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
}

.dash-account-copy {
  min-width: 0;
  flex: 1;
}

.dash-account-copy strong {
  display: block;
  overflow: hidden;
  font-size: 9.5px;
  font-weight: 600;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.dash-account-copy span {
  display: block;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 7px;
}

.dash-account > button {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  color: var(--muted);
  transition: color 0.2s, background 0.2s;
}

.dash-account > button:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.dash-account > button svg {
  width: 13px;
  height: 13px;
}

/* Dashboard main */
.dash-main {
  height: 100vh;
  overflow-y: auto;
  scroll-behavior: smooth;
}

.dash-main::-webkit-scrollbar {
  width: 10px;
}

.dash-main::-webkit-scrollbar-track {
  background: transparent;
}

.dash-main::-webkit-scrollbar-thumb {
  border: 3px solid #08080d;
  border-radius: 8px;
  background: #282432;
}

.dash-topbar {
  position: sticky;
  z-index: 40;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 64px;
  padding: 0 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(8, 8, 13, 0.82);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  backdrop-filter: blur(18px) saturate(1.2);
}

.dash-crumbs {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
}

.dash-crumbs strong {
  color: var(--text-soft);
  font-weight: 500;
}

.dash-crumbs svg {
  width: 11px;
  height: 11px;
  opacity: 0.5;
}

.dash-mobile-btn {
  display: none;
}

.dash-top-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.save-indicator {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-right: 4px;
  color: #646071;
  font-family: var(--font-mono);
  font-size: 7.5px;
  transition: color 0.2s;
}

.save-indicator svg {
  width: 10px;
  height: 10px;
}

.save-indicator.saved {
  color: #6d8d72;
}

.save-indicator.saving {
  color: var(--yellow);
}

.save-indicator.saving svg {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.dash-content {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding: 32px 30px 90px;
}

.editor-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 25px;
}

.editor-heading-copy .eyebrow {
  margin-bottom: 10px;
}

.editor-heading h1 {
  font-family: var(--font-display);
  font-size: 29px;
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.1;
}

.editor-heading p {
  max-width: 540px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.6;
}

.editor-heading-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
}

/* Panels & form controls */
.panel {
  position: relative;
  margin-bottom: 13px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #0c0c12;
}

.panel-subtle {
  background: rgba(255, 255, 255, 0.018);
}

.panel-head {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-bottom: 20px;
}

.panel-icon {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text-soft);
}

.panel-icon svg {
  width: 15px;
  height: 15px;
}

.panel-head-copy {
  min-width: 0;
  flex: 1;
}

.panel-head h2 {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.panel-head p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9.5px;
  line-height: 1.5;
}

.panel-head-action {
  margin-left: auto;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.field-grid.cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.field-grid + .field-grid,
.field-grid + .field,
.field + .field,
.field + .field-grid {
  margin-top: 14px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.field.full {
  grid-column: 1 / -1;
}

.field label,
.field-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #a29eaf;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.field-label .hint {
  color: #5f5b6b;
  font-family: var(--font-mono);
  font-size: 7px;
  font-weight: 400;
  letter-spacing: 0;
}

.input,
.textarea,
.select {
  width: 100%;
  min-height: 38px;
  padding: 9px 11px;
  border: 1px solid rgba(255, 255, 255, 0.085);
  border-radius: 8px;
  outline: none;
  background: rgba(255, 255, 255, 0.032);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 11px;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.input::placeholder,
.textarea::placeholder {
  color: #565263;
}

.input:hover,
.textarea:hover,
.select:hover {
  border-color: rgba(255, 255, 255, 0.14);
}

.input:focus,
.textarea:focus,
.select:focus {
  border-color: rgba(179, 154, 255, 0.45);
  background: rgba(179, 154, 255, 0.035);
  box-shadow: 0 0 0 3px rgba(179, 154, 255, 0.07);
}

.textarea {
  min-height: 86px;
  resize: vertical;
  line-height: 1.6;
}

.select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 32px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2385829a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 11px center;
}

.select option {
  background: #12121a;
  color: var(--text);
}

.input-prefix {
  position: relative;
}

.input-prefix > span {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  color: #625e70;
  font-family: var(--font-mono);
  font-size: 10px;
}

.input-prefix .input {
  padding-left: 24px;
}

.input-suffix {
  position: relative;
}

.input-suffix .input {
  padding-right: 56px;
}

.input-suffix > span {
  position: absolute;
  right: 9px;
  top: 50%;
  transform: translateY(-50%);
  color: #625e70;
  font-family: var(--font-mono);
  font-size: 7px;
}

.field-help {
  color: #5f5b6b;
  font-size: 8px;
  line-height: 1.5;
}

.field-help a {
  color: #8f80bd;
}

/* Toggle */
.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 44px;
  padding: 8px 0;
}

.toggle-row + .toggle-row {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.toggle-copy {
  min-width: 0;
}

.toggle-copy strong {
  display: block;
  color: var(--text-soft);
  font-size: 10px;
  font-weight: 600;
}

.toggle-copy span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 8.5px;
  line-height: 1.5;
}

.switch {
  position: relative;
  flex: 0 0 auto;
  width: 36px;
  height: 20px;
  cursor: pointer;
}

.switch input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}

.switch-track {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  pointer-events: none;
  transition: background 0.2s, border-color 0.2s;
}

.switch-track::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #8e8a9c;
  transition: transform 0.22s var(--ease), background 0.22s;
}

.switch input:checked + .switch-track {
  border-color: rgba(179, 154, 255, 0.3);
  background: rgba(179, 154, 255, 0.24);
}

.switch input:checked + .switch-track::after {
  transform: translateX(16px);
  background: #e2d8ff;
}

.switch input:focus-visible + .switch-track {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Profile identity editor */
.identity-editor {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.avatar-editor {
  position: relative;
  width: 82px;
  height: 82px;
  flex: 0 0 auto;
}

.avatar-editor img {
  width: 100%;
  height: 100%;
  border: 2px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  object-fit: cover;
  background: #17131f;
}

.avatar-edit-btn {
  position: absolute;
  right: -3px;
  bottom: -3px;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border: 2px solid #0c0c12;
  border-radius: 50%;
  background: var(--accent);
  color: #100a1c;
  transition: transform 0.2s;
}

.avatar-edit-btn:hover {
  transform: scale(1.06);
}

.avatar-edit-btn svg {
  width: 11px;
  height: 11px;
}

.identity-fields {
  min-width: 0;
}

.upload-note {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 7px;
  color: #5f5b6b;
  font-size: 7.5px;
}

.upload-note svg {
  width: 9px;
  height: 9px;
}

/* Socials editor */
.socials-editor {
  display: grid;
  gap: 7px;
}

.social-edit-row {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr) 30px;
  gap: 7px;
  align-items: center;
}

.social-edit-row .select,
.social-edit-row .input {
  min-height: 34px;
  font-size: 10px;
}

.row-delete {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: #6e697b;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.row-delete:hover {
  color: #ff9ca7;
  border-color: rgba(255, 123, 138, 0.25);
  background: rgba(255, 123, 138, 0.06);
}

.row-delete svg {
  width: 12px;
  height: 12px;
}

.add-row-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  min-height: 34px;
  margin-top: 3px;
  border: 1px dashed rgba(255, 255, 255, 0.11);
  border-radius: 8px;
  color: #888397;
  font-size: 9px;
  font-weight: 600;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.add-row-btn:hover {
  color: var(--text);
  border-color: rgba(179, 154, 255, 0.3);
  background: rgba(179, 154, 255, 0.035);
}

.add-row-btn svg {
  width: 12px;
  height: 12px;
}

/* Link editor */
.link-editor-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.link-editor-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.022);
  transition: border-color 0.2s, background 0.2s;
}

.link-editor-row:hover {
  border-color: rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.035);
}

.link-editor-row.invisible {
  opacity: 0.48;
}

.drag-handle {
  width: 18px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: #4f4b5b;
}

.drag-handle svg {
  width: 12px;
  height: 12px;
}

.link-editor-icon {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text-soft);
}

.link-editor-icon svg {
  width: 14px;
  height: 14px;
}

.link-editor-copy {
  flex: 1;
  min-width: 0;
}

.link-editor-title {
  display: block;
  overflow: hidden;
  font-size: 10.5px;
  font-weight: 600;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.link-editor-url {
  display: block;
  overflow: hidden;
  margin-top: 1px;
  color: #646071;
  font-family: var(--font-mono);
  font-size: 7.5px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.link-editor-actions {
  display: flex;
  align-items: center;
  gap: 3px;
}

.link-editor-actions .switch {
  margin-right: 5px;
  transform: scale(0.88);
}

.mini-action {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  color: #6e697b;
  transition: color 0.2s, background 0.2s;
}

.mini-action:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.mini-action:disabled {
  opacity: 0.25;
  cursor: default;
}

.mini-action:disabled:hover {
  background: none;
  color: #6e697b;
}

.mini-action svg {
  width: 12px;
  height: 12px;
}

.mini-action.danger:hover {
  color: #ff9ca7;
  background: rgba(255, 123, 138, 0.08);
}

/* Segmented control */
.segmented {
  display: flex;
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.022);
}

.segmented button {
  flex: 1;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 6px;
  color: #7d788a;
  font-size: 9px;
  font-weight: 600;
  white-space: nowrap;
  transition: color 0.2s, background 0.2s;
}

.segmented button:hover {
  color: var(--text-soft);
}

.segmented button.active {
  background: rgba(255, 255, 255, 0.075);
  color: var(--text);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Theme grid */
.theme-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}

.theme-option {
  position: relative;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.02);
  text-align: left;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

.theme-option:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
}

.theme-option.active {
  border-color: rgba(179, 154, 255, 0.5);
  background: rgba(179, 154, 255, 0.055);
  box-shadow: 0 0 0 1px rgba(179, 154, 255, 0.12);
}

.theme-option-preview {
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  background: var(--preview-bg);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.theme-option-preview::before {
  content: "";
  width: 26px;
  height: 22px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
}

.theme-option-name {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  margin-top: 6px;
  color: #8d889c;
  font-size: 8px;
  font-weight: 600;
}

.theme-option.active .theme-option-name {
  color: var(--text);
}

.theme-option-check {
  width: 11px;
  height: 11px;
  display: none;
  color: var(--accent);
}

.theme-option.active .theme-option-check {
  display: block;
}

/* Color controls */
.color-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.color-control {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.022);
}

.color-control label {
  display: block;
  color: #646071;
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.color-label {
  display: block;
  color: #646071;
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.color-control strong {
  display: block;
  margin-top: 2px;
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 500;
  color: #aaa5b8;
  text-transform: uppercase;
}

.color-swatch {
  position: relative;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 7px;
}

.color-swatch input {
  position: absolute;
  inset: -8px;
  width: calc(100% + 16px);
  height: calc(100% + 16px);
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

/* Sliders */
.slider-list {
  display: grid;
  gap: 14px;
}

.slider-field {
  display: grid;
  gap: 7px;
}

.slider-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.slider-head label {
  color: #a29eaf;
  font-size: 9px;
  font-weight: 600;
}

.slider-value {
  min-width: 34px;
  padding: 2px 5px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  color: #8b8699;
  font-family: var(--font-mono);
  font-size: 7.5px;
  text-align: center;
}

input[type="range"] {
  width: 100%;
  height: 3px;
  appearance: none;
  -webkit-appearance: none;
  border-radius: 3px;
  outline: none;
  background: linear-gradient(to right, var(--accent) var(--range-progress, 50%), rgba(255, 255, 255, 0.08) var(--range-progress, 50%));
}

input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 13px;
  height: 13px;
  border: 2px solid #0c0c12;
  border-radius: 50%;
  background: #d6c8ff;
  box-shadow: 0 0 0 1px rgba(179, 154, 255, 0.35);
  cursor: pointer;
  transition: transform 0.15s;
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

input[type="range"]::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border: 2px solid #0c0c12;
  border-radius: 50%;
  background: #d6c8ff;
  cursor: pointer;
}

/* Layout picker */
.layout-options {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
}

.layout-option {
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.022);
  transition: border-color 0.2s, background 0.2s;
}

.layout-option:hover {
  border-color: var(--line-strong);
}

.layout-option.active {
  border-color: rgba(179, 154, 255, 0.5);
  background: rgba(179, 154, 255, 0.05);
}

.layout-diagram {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.layout-diagram .d-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.08);
}

.layout-diagram .d-avatar {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
}

.layout-diagram .d-line {
  width: 16px;
  height: 2px;
  border-radius: 1px;
  background: rgba(255, 255, 255, 0.2);
}

.layout-diagram .d-link {
  width: 20px;
  height: 3px;
  border-radius: 1px;
  background: rgba(179, 154, 255, 0.5);
}

.layout-diagram.split {
  gap: 4px;
}

.layout-diagram.split .d-card {
  align-items: flex-start;
  height: 30px;
  justify-content: center;
}

.layout-diagram.split .d-links {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.layout-diagram.split .d-links i {
  width: 16px;
  height: 4px;
  border-radius: 1px;
  background: rgba(255, 255, 255, 0.15);
}

.layout-diagram.wide .d-card {
  width: 30px;
}

.layout-diagram.wide .d-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}

.layout-diagram.wide .d-grid i {
  width: 8px;
  height: 3px;
  border-radius: 1px;
  background: rgba(179, 154, 255, 0.5);
}

.layout-diagram.minimal .d-card {
  border-color: transparent;
  background: transparent;
}

.layout-option-name {
  margin-top: 5px;
  color: #8d889c;
  font-size: 8px;
  font-weight: 600;
  text-align: center;
}

.layout-option.active .layout-option-name {
  color: var(--text);
}

/* Effect grid */
.effect-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
}

.effect-option {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 64px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.022);
  color: #777384;
  font-size: 8px;
  font-weight: 600;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.effect-option:hover {
  border-color: var(--line-strong);
  color: var(--text-soft);
}

.effect-option.active {
  border-color: rgba(179, 154, 255, 0.5);
  background: rgba(179, 154, 255, 0.055);
  color: #e7ddff;
}

.effect-option svg {
  width: 17px;
  height: 17px;
}

.effect-option .effect-emoji {
  font-size: 15px;
  line-height: 1;
}

/* Badge picker */
.badge-picker {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
}

.badge-choice {
  position: relative;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.022);
  text-align: left;
  transition: border-color 0.2s, background 0.2s;
}

.badge-choice:hover {
  border-color: var(--line-strong);
}

.badge-choice.active {
  border-color: color-mix(in srgb, var(--choice-color, var(--accent)) 45%, transparent);
  background: color-mix(in srgb, var(--choice-color, var(--accent)) 7%, transparent);
}

.badge-choice-icon {
  width: 25px;
  height: 25px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--choice-color, var(--accent)) 25%, rgba(255, 255, 255, 0.08));
  border-radius: 6px;
  background: color-mix(in srgb, var(--choice-color, var(--accent)) 9%, transparent);
  color: var(--choice-color, var(--accent));
}

.badge-choice-icon svg {
  width: 12px;
  height: 12px;
}

.badge-choice-copy {
  min-width: 0;
}

.badge-choice-copy strong {
  display: block;
  overflow: hidden;
  color: #aaa5b8;
  font-size: 8.5px;
  font-weight: 600;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.badge-choice.active .badge-choice-copy strong {
  color: var(--text);
}

.badge-choice-check {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 11px;
  height: 11px;
  color: var(--choice-color, var(--accent));
  opacity: 0;
}

.badge-choice.active .badge-choice-check {
  opacity: 1;
}

.custom-badge-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.custom-badge-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 6px 5px 7px;
  border: 1px solid color-mix(in srgb, var(--chip-color, var(--accent)) 25%, var(--line));
  border-radius: 7px;
  background: color-mix(in srgb, var(--chip-color, var(--accent)) 8%, transparent);
  color: var(--chip-color, var(--accent));
  font-size: 8px;
  font-weight: 600;
}

.custom-badge-chip .emoji {
  font-size: 11px;
}

.custom-badge-chip button {
  width: 14px;
  height: 14px;
  display: grid;
  place-items: center;
  border-radius: 4px;
  color: currentColor;
  opacity: 0.55;
}

.custom-badge-chip button:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.08);
}

.custom-badge-chip svg {
  width: 9px;
  height: 9px;
}

.custom-badge-builder {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 36px auto;
  gap: 7px;
}

.custom-badge-builder .input {
  min-height: 34px;
}

.custom-badge-builder .color-swatch {
  width: 34px;
  height: 34px;
}

/* Discord editor */
.discord-editor-card {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 14px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.022);
}

.discord-editor-avatar {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, #241b3d, #0f0d16);
  color: #a48ee5;
}

.discord-editor-avatar svg {
  width: 17px;
  height: 17px;
}

.discord-editor-copy {
  flex: 1;
  min-width: 0;
}

.discord-editor-copy strong {
  display: block;
  font-size: 10px;
}

.discord-editor-copy span {
  display: block;
  margin-top: 1px;
  color: var(--muted);
  font-size: 8px;
}

.sync-note {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin-top: 10px;
  padding: 9px 10px;
  border: 1px solid rgba(125, 211, 252, 0.1);
  border-radius: 8px;
  background: rgba(125, 211, 252, 0.035);
  color: #777f8e;
  font-size: 8px;
  line-height: 1.6;
}

.sync-note svg {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  margin-top: 1px;
  color: var(--blue);
}

.sync-note strong {
  color: #a6adba;
  font-weight: 600;
}

/* Analytics */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.stat-card {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.022);
}

.stat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #6c6878;
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.stat-top svg {
  width: 12px;
  height: 12px;
}

.stat-value {
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
}

.stat-delta {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-top: 5px;
  color: #6f9a79;
  font-family: var(--font-mono);
  font-size: 7px;
}

.stat-delta.negative {
  color: #a06e76;
}

.stat-delta svg {
  width: 9px;
  height: 9px;
}

.chart-wrap {
  position: relative;
  padding: 16px 4px 0;
}

.chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 15px;
}

.chart-head h3 {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.chart-head span {
  color: #6c6878;
  font-family: var(--font-mono);
  font-size: 7.5px;
}

.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 7px;
  height: 150px;
  padding: 0 2px;
  border-bottom: 1px solid var(--line);
  background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 100% 33.333%;
}

.chart-bar-wrap {
  position: relative;
  flex: 1;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.chart-bar {
  position: relative;
  width: min(32px, 76%);
  min-height: 3px;
  border-radius: 4px 4px 1px 1px;
  background: linear-gradient(to top, rgba(179, 154, 255, 0.2), rgba(179, 154, 255, 0.75));
  transition: height 0.6s var(--ease), background 0.2s;
  cursor: default;
}

.chart-bar-wrap:last-child .chart-bar {
  background: linear-gradient(to top, rgba(255, 139, 201, 0.24), rgba(255, 139, 201, 0.88));
}

.chart-bar:hover {
  background: rgba(214, 200, 255, 0.9);
}

.chart-tooltip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 7px);
  transform: translateX(-50%) translateY(4px);
  padding: 4px 6px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #17151f;
  color: var(--text-soft);
  font-family: var(--font-mono);
  font-size: 7px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s, transform 0.15s;
  white-space: nowrap;
}

.chart-bar:hover .chart-tooltip {
  opacity: 1;
  transform: translateX(-50%);
}

.chart-labels {
  display: flex;
  gap: 7px;
  margin-top: 7px;
  color: #555160;
  font-family: var(--font-mono);
  font-size: 7px;
  text-align: center;
}

.chart-labels span {
  flex: 1;
}

.top-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}

.top-link-row {
  display: grid;
  grid-template-columns: 25px minmax(0, 1fr) 58px;
  align-items: center;
  gap: 8px;
}

.top-link-icon {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
  color: #918b9f;
}

.top-link-icon svg {
  width: 11px;
  height: 11px;
}

.top-link-copy {
  min-width: 0;
}

.top-link-copy strong {
  display: block;
  overflow: hidden;
  font-size: 9px;
  font-weight: 600;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.top-link-bar {
  height: 3px;
  margin-top: 4px;
  overflow: hidden;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.06);
}

.top-link-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.top-link-count {
  color: #8a8598;
  font-family: var(--font-mono);
  font-size: 7.5px;
  text-align: right;
}

.analytics-note {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  color: #5e5a69;
  font-size: 8px;
}

.analytics-note svg {
  width: 10px;
  height: 10px;
}

/* Settings */
.profile-manager {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.managed-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.022);
}

.managed-profile.active {
  border-color: rgba(179, 154, 255, 0.28);
  background: rgba(179, 154, 255, 0.045);
}

.managed-profile img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: cover;
}

.managed-profile-copy {
  flex: 1;
  min-width: 0;
}

.managed-profile-copy strong {
  display: block;
  font-size: 10px;
}

.managed-profile-copy span {
  display: block;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 7px;
}

.managed-profile-actions {
  display: flex;
  align-items: center;
  gap: 3px;
}

.active-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-right: 4px;
  padding: 3px 6px;
  border-radius: 4px;
  background: rgba(201, 255, 122, 0.08);
  color: var(--lime);
  font-family: var(--font-mono);
  font-size: 6.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.active-pill::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}

.settings-list {
  display: flex;
  flex-direction: column;
}

.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.settings-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.settings-row:first-child {
  padding-top: 0;
}

.settings-copy strong {
  display: block;
  color: var(--text-soft);
  font-size: 9.5px;
  font-weight: 600;
}

.settings-copy span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 8px;
}

.danger-zone {
  border-color: rgba(255, 123, 138, 0.14);
  background: linear-gradient(145deg, rgba(255, 123, 138, 0.035), rgba(12, 12, 18, 1) 60%);
}

.danger-zone .panel-icon {
  color: #ff9ca7;
  border-color: rgba(255, 123, 138, 0.18);
  background: rgba(255, 123, 138, 0.06);
}

/* Dashboard preview */
.dash-preview {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 18px;
  border-left: 1px solid var(--line);
  background:
    radial-gradient(ellipse 90% 55% at 50% 20%, rgba(179, 154, 255, 0.045), transparent 65%),
    #09090e;
  overflow: hidden;
}

.preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 3px 12px;
}

.preview-head-copy {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #8b8699;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.preview-live-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px rgba(103, 232, 161, 0.6);
}

.preview-head .btn {
  min-height: 27px;
  padding: 0 9px;
  font-size: 8px;
  border-radius: 6px;
}

.preview-head .btn svg {
  width: 11px;
  height: 11px;
}

.preview-stage {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow: hidden;
  padding-top: 3px;
}

.phone-frame {
  position: relative;
  width: min(100%, 310px);
  height: min(100%, 620px);
  padding: 7px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 38px;
  background: linear-gradient(160deg, #25212f, #0e0d13 30%, #0b0a10);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.55),
    inset 0 1px rgba(255, 255, 255, 0.12);
}

.phone-notch {
  position: absolute;
  z-index: 3;
  top: 12px;
  left: 50%;
  width: 72px;
  height: 17px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #060609;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.phone-screen {
  position: relative;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  border-radius: 32px;
  background: #0b0910;
  scrollbar-width: none;
}

.phone-screen::-webkit-scrollbar {
  display: none;
}

.mini-profile {
  position: relative;
  min-height: 100%;
  padding: 46px 17px 24px;
  background-color: #0b0910;
  background-position: center;
  background-size: cover;
  text-align: center;
  font-family: var(--mini-font, "Space Grotesk", sans-serif);
}

.mini-profile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(4, 4, 7, 0.45), rgba(4, 4, 7, 0.7) 55%, rgba(4, 4, 7, 0.85));
}

.mini-profile > * {
  position: relative;
  z-index: 1;
}

.mini-avatar {
  width: 65px;
  height: 65px;
  margin: 4px auto 10px;
  padding: 2px;
  border-radius: 50%;
  background: conic-gradient(from 200deg, var(--mini-accent, #b39aff), var(--mini-accent-2, #ff8bc9), var(--mini-accent, #b39aff));
}

.mini-avatar img {
  width: 100%;
  height: 100%;
  border: 2px solid rgba(8, 7, 12, 0.9);
  border-radius: 50%;
  object-fit: cover;
}

.mini-name {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: #f8f6ff;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 1.1;
}

.mini-name svg {
  width: 12px;
  height: 12px;
  color: #78c8ff;
}

.mini-handle {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.43);
  font-family: var(--font-mono);
  font-size: 7px;
}

.mini-bio {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.6);
  font-family: var(--font-body);
  font-size: 8px;
  line-height: 1.6;
}

.mini-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  margin-top: 9px;
}

.mini-badge {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--mb-color, #b39aff) 30%, transparent);
  border-radius: 4px;
  background: color-mix(in srgb, var(--mb-color, #b39aff) 9%, transparent);
  color: var(--mb-color, #b39aff);
}

.mini-badge svg {
  width: 9px;
  height: 9px;
}

.mini-socials {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  margin-top: 10px;
}

.mini-social {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.6);
}

.mini-social svg {
  width: 9px;
  height: 9px;
}

.mini-discord {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 11px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.23);
  text-align: left;
}

.mini-discord-cover {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 5px;
  background: linear-gradient(145deg, #2b2147, #0d0b12);
  color: #a48ee5;
}

.mini-discord-cover svg {
  width: 11px;
  height: 11px;
}

.mini-discord-copy {
  min-width: 0;
  flex: 1;
}

.mini-discord-copy strong {
  display: block;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.8);
  font-family: var(--font-body);
  font-size: 6.5px;
  font-weight: 600;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.mini-discord-copy span {
  display: block;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.34);
  font-family: var(--font-body);
  font-size: 5.5px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.mini-discord-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #67e8a1;
}

.mini-links {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 13px;
}

.mini-links.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
}

.mini-links.two-col .mini-link {
  min-width: 0;
}

.mini-link {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 6px 7px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.05);
  text-align: left;
}

.mini-link-icon {
  width: 21px;
  height: 21px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--mini-accent, #b39aff) 20%, rgba(255, 255, 255, 0.08));
  border-radius: 5px;
  background: color-mix(in srgb, var(--mini-accent, #b39aff) 9%, transparent);
  color: color-mix(in srgb, var(--mini-accent, #b39aff) 85%, #fff);
}

.mini-link-icon svg {
  width: 9px;
  height: 9px;
}

.mini-link-copy {
  flex: 1;
  min-width: 0;
}

.mini-link-copy strong {
  display: block;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.82);
  font-family: var(--font-body);
  font-size: 7px;
  font-weight: 600;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.mini-link-copy span {
  display: block;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.33);
  font-family: var(--font-body);
  font-size: 5.5px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.mini-link > svg {
  width: 8px;
  height: 8px;
  color: rgba(255, 255, 255, 0.25);
}

.mini-footer {
  margin-top: 14px;
  padding-top: 9px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.23);
  font-family: var(--font-mono);
  font-size: 5px;
}

.preview-tip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding-top: 12px;
  color: #565261;
  font-size: 8px;
}

.preview-tip svg {
  width: 10px;
  height: 10px;
}

/* Preview modal (for narrower desktops / mobile) */
.preview-modal-shell {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 8px 0;
}

.preview-modal-shell .phone-frame {
  width: 310px;
  height: min(70vh, 620px);
}

/* Mobile profile dropdown */
.profile-dropdown {
  position: absolute;
  z-index: 50;
  top: 52px;
  left: 0;
  right: 0;
  padding: 5px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #12121a;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
}

.profile-dropdown button {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 7px;
  border-radius: 6px;
  color: var(--text-soft);
  font-size: 9px;
  text-align: left;
}

.profile-dropdown button:hover,
.profile-dropdown button.active {
  background: rgba(255, 255, 255, 0.06);
}

.profile-dropdown img {
  width: 23px;
  height: 23px;
  border-radius: 5px;
  object-fit: cover;
}

.profile-dropdown svg {
  width: 12px;
  height: 12px;
}

/* Editor special blocks */
.theme-apply-note {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  color: #5f5b6b;
  font-size: 8px;
}

.theme-apply-note svg {
  width: 10px;
  height: 10px;
  color: var(--accent);
}

.preset-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding: 12px 14px;
  border: 1px solid rgba(179, 154, 255, 0.13);
  border-radius: 11px;
  background: rgba(179, 154, 255, 0.035);
}

.preset-banner-icon {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid rgba(179, 154, 255, 0.18);
  border-radius: 8px;
  color: var(--accent);
  background: rgba(179, 154, 255, 0.08);
}

.preset-banner-icon svg {
  width: 14px;
  height: 14px;
}

.preset-banner-copy {
  flex: 1;
}

.preset-banner-copy strong {
  display: block;
  font-size: 9.5px;
  font-weight: 600;
}

.preset-banner-copy span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 8px;
}

/* Upload */
.upload-drop {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.018);
  transition: border-color 0.2s, background 0.2s;
  cursor: pointer;
}

.upload-drop:hover {
  border-color: rgba(179, 154, 255, 0.32);
  background: rgba(179, 154, 255, 0.03);
}

.upload-drop-icon {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: #8e889d;
}

.upload-drop-icon svg {
  width: 12px;
  height: 12px;
}

.upload-drop-copy {
  min-width: 0;
}

.upload-drop-copy strong {
  display: block;
  color: #9d98ab;
  font-size: 8.5px;
  font-weight: 600;
}

.upload-drop-copy span {
  display: block;
  margin-top: 1px;
  color: #5f5b6b;
  font-size: 7px;
}

.upload-drop input {
  display: none;
}

/* Welcome hint */
.welcome-banner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  padding: 14px 15px;
  overflow: hidden;
  border: 1px solid rgba(201, 255, 122, 0.12);
  border-radius: 12px;
  background: linear-gradient(90deg, rgba(201, 255, 122, 0.055), rgba(179, 154, 255, 0.035));
}

.welcome-banner::after {
  content: "✦";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(201, 255, 122, 0.16);
  font-size: 42px;
  pointer-events: none;
}

.welcome-banner-icon {
  width: 31px;
  height: 31px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(201, 255, 122, 0.09);
  color: var(--lime);
}

.welcome-banner-icon svg {
  width: 15px;
  height: 15px;
}

.welcome-banner-copy {
  flex: 1;
}

.welcome-banner-copy strong {
  display: block;
  font-size: 10px;
  font-weight: 600;
}

.welcome-banner-copy span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 8.5px;
}

.welcome-banner .btn {
  position: relative;
  z-index: 1;
  min-height: 28px;
  padding: 0 9px;
  font-size: 8px;
}

/* Save modal misc */
.confirm-copy {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.confirm-copy strong {
  color: var(--text-soft);
}

.import-drop {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 90px;
  border: 1px dashed var(--line-strong);
  border-radius: 10px;
  color: var(--muted);
  font-size: 10px;
  text-align: center;
  cursor: pointer;
}

.import-drop:hover {
  border-color: rgba(179, 154, 255, 0.35);
  background: rgba(179, 154, 255, 0.03);
}

/* Link icon picker */
.icon-picker {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 5px;
  max-height: 160px;
  overflow-y: auto;
  padding: 2px;
}

.icon-choice {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.025);
  color: #817c8f;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.icon-choice:hover {
  color: var(--text);
  border-color: var(--line-strong);
}

.icon-choice.active {
  border-color: rgba(179, 154, 255, 0.45);
  background: rgba(179, 154, 255, 0.1);
  color: #d8ccff;
}

.icon-choice svg {
  width: 14px;
  height: 14px;
}

/* Native color in dark */
input[type="color"] {
  color-scheme: dark;
}

/* Modal form extras */
.modal .field-grid {
  gap: 12px;
}

.modal .input,
.modal .textarea,
.modal .select {
  min-height: 40px;
  font-size: 11px;
}

.modal .field label {
  font-size: 9.5px;
}

/* Dashboard dropdowns */
.context-menu {
  position: fixed;
  z-index: 150;
  width: 180px;
  padding: 5px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: #13121a;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.55);
  animation: pop-in 0.15s var(--ease);
}

.context-menu button {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px;
  border-radius: 6px;
  color: var(--text-soft);
  font-size: 9px;
  text-align: left;
}

.context-menu button:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.context-menu button.danger {
  color: #ff9ca7;
}

.context-menu svg {
  width: 12px;
  height: 12px;
}

.context-menu hr {
  height: 1px;
  margin: 4px;
  border: 0;
  background: var(--line);
}

/* Responsive dashboard in responsive.css */
