/* ==========================================================================
   Dialogs, popovers, settings, forms, toasts, responsive
   ========================================================================== */

/* ----------------------------- dialog shell ----------------------------- */

.dialog {
  padding: 0;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-xl);
  background: var(--surface-solid);
  color: var(--text);
  width: min(35rem, calc(100vw - 2rem));
  max-width: calc(100vw - 2rem);
  max-height: min(88dvh, 58rem);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.dialog[open] {
  display: flex;
  flex-direction: column;
  animation: dialogIn 0.28s var(--ease-out) both;
}

.dialog::backdrop {
  background: var(--scrim);
  backdrop-filter: blur(7px);
}

@keyframes dialogIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.985);
  }
}

.add-dialog {
  width: min(40rem, calc(100vw - 2rem));
}

.add-dialog .quick-form {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  border-top: none;
  padding: 0.95rem 1.35rem 1.1rem;
}

.dialog.drawer {
  width: min(30rem, 100vw);
  height: 100dvh;
  max-height: 100dvh;
  margin: 0 0 0 auto;
  border-radius: var(--r-xl) 0 0 var(--r-xl);
  animation: drawerIn 0.32s var(--ease-out) both;
}

@keyframes drawerIn {
  from {
    transform: translateX(28px);
    opacity: 0;
  }
}

.dlg-head {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  padding: 1.15rem 1.35rem 0.9rem;
  border-bottom: 1px solid var(--border);
  flex: none;
}

.dlg-head-text {
  flex: 1;
  min-width: 0;
}

.dlg-head h2 {
  margin: 0;
  font-size: 1.1rem;
  letter-spacing: -0.025em;
  font-weight: 720;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.dlg-head p {
  margin: 0.22rem 0 0;
  font-size: 0.76rem;
  color: var(--muted);
  line-height: 1.4;
}

.dlg-body {
  padding: 1.1rem 1.35rem;
  overflow-y: auto;
  min-height: 0;
}

.dlg-hint {
  margin: 0 0 0.85rem;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--muted);
}

.dlg-foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  padding: 0.85rem 1.35rem;
  border-top: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface-solid) 92%, var(--surface-2));
  flex: none;
}

.dlg-foot .spacer {
  margin-right: auto;
}

.form-grid {
  display: grid;
  gap: 0.85rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.form-note {
  margin: 0;
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.45;
}

.form-error.inline {
  margin-top: 0.2rem;
}

/* Quick links dialog */
.ql-list {
  display: grid;
  gap: 0.4rem;
  margin-bottom: 0.95rem;
}

.ql-list-empty {
  margin: 0;
  padding: 0.65rem 0.8rem;
  border: 1px dashed var(--border-strong);
  border-radius: 0.6rem;
  font-size: 0.76rem;
  color: var(--muted);
}

.ql-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: 0.65rem;
  background: var(--surface-2);
}

.ql-item-ico {
  position: relative;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.55rem;
  border: 1px solid var(--border);
  background: var(--surface-solid);
  overflow: hidden;
  flex: none;
}

.ql-item-ico .ql-ico {
  position: relative;
  z-index: 1;
  width: 1.1rem;
  height: 1.1rem;
  object-fit: contain;
}

.ql-item-ico .ql-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  font-weight: 750;
  color: color-mix(in srgb, var(--accent) 58%, var(--text));
}

.ql-item-text {
  flex: 1;
  min-width: 0;
}

.ql-item-text strong {
  display: block;
  font-size: 0.82rem;
  font-weight: 650;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ql-item-text small {
  display: block;
  margin-top: 0.05rem;
  font-size: 0.66rem;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ql-item-move {
  display: grid;
  gap: 0.15rem;
  flex: none;
}

.ql-icon-prev {
  display: grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  flex: none;
  border: 1px dashed var(--border-strong);
  border-radius: 0.55rem;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 0.95rem;
  overflow: hidden;
}

.ql-icon-prev img {
  width: 1.35rem;
  height: 1.35rem;
  object-fit: contain;
}

.ql-form {
  display: grid;
  gap: 0.8rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--border);
}

.ql-form label .opt {
  font-weight: 450;
  color: var(--muted);
}

.ql-full {
  margin: 0.6rem 0 0;
  font-size: 0.72rem;
  color: var(--muted);
}

/* Icon picker */
.icon-picker {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 0.3rem;
}

.icon-option {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  background: var(--surface-2);
  font-size: 1.02rem;
  transition: transform 0.14s, background 0.14s, border-color 0.14s;
}

.icon-option:hover {
  transform: translateY(-1px);
  background: var(--surface-hover);
}

.icon-option.active {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 50%, transparent);
}

/* Segmented + switches + ranges + swatches */
.segmented {
  display: inline-flex;
  gap: 0.15rem;
  padding: 0.18rem;
  border-radius: 0.55rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
}

.segmented button {
  padding: 0.32rem 0.62rem;
  border-radius: 0.4rem;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 550;
  transition: background 0.16s, color 0.16s;
  white-space: nowrap;
}

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

.segmented button.active {
  background: var(--surface-solid);
  color: var(--text);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.16);
}

.switch {
  position: relative;
  width: 2.5rem;
  height: 1.4rem;
  flex: none;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface-3);
  transition: background 0.2s, border-color 0.2s;
}

.switch::after {
  content: "";
  position: absolute;
  top: 0.15rem;
  left: 0.15rem;
  width: 0.95rem;
  height: 0.95rem;
  border-radius: 50%;
  background: var(--muted);
  transition: transform 0.2s var(--ease), background 0.2s;
}

.switch[aria-checked="true"] {
  background: var(--accent);
  border-color: var(--accent);
}

.switch[aria-checked="true"]::after {
  transform: translateX(1.06rem);
  background: var(--on-accent);
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 1.25rem;
  background: transparent;
  cursor: pointer;
}

input[type="range"]::-webkit-slider-runnable-track {
  height: 0.32rem;
  border-radius: 999px;
  background: linear-gradient(to right, var(--accent) var(--pct, 50%),
      var(--surface-3) var(--pct, 50%));
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 1.05rem;
  height: 1.05rem;
  margin-top: -0.37rem;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--surface-solid);
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.35);
  transition: transform 0.15s;
}

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

input[type="range"]::-moz-range-track {
  height: 0.32rem;
  border-radius: 999px;
  background: var(--surface-3);
}

input[type="range"]::-moz-range-progress {
  height: 0.32rem;
  border-radius: 999px;
  background: var(--accent);
}

input[type="range"]::-moz-range-thumb {
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--surface-solid);
}

/* One row of 16 avatar colors, circles half the previous size
   (2.42rem → 1.21rem) per user request. */
.swatches {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.38rem;
}

.swatch {
  width: 1.21rem;
  height: 1.21rem;
  flex: none;
  border-radius: 50%;
  border: 2px solid transparent;
  position: relative;
  transition: transform 0.15s var(--ease), border-color 0.15s;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.4);
}

.swatch:hover {
  transform: scale(1.12);
}

.swatch.active {
  border-color: var(--text);
  transform: scale(1.08);
}

.swatch.active::after {
  content: "✓";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 0.52rem;
  font-weight: 800;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.settings-section {
  margin-bottom: 1.45rem;
}

.settings-section:last-child {
  margin-bottom: 0.2rem;
}

.settings-section h3 {
  margin: 0 0 0.45rem;
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  font-weight: 700;
}

.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.62rem 0;
  border-bottom: 1px solid var(--border);
}

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

.setting-text {
  min-width: 0;
}

.setting-text strong {
  display: block;
  font-size: 0.82rem;
  font-weight: 550;
  color: var(--text);
}

.setting-text small {
  display: block;
  margin-top: 0.12rem;
  font-size: 0.7rem;
  color: var(--muted);
  line-height: 1.35;
}

.setting-row .segmented {
  flex: none;
}

.setting-stack {
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border);
}

.setting-stack:last-child {
  border-bottom: 0;
}

.setting-stack-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.setting-stack-head strong {
  font-size: 0.82rem;
  font-weight: 550;
}

.setting-stack-head output {
  font-size: 0.72rem;
  color: var(--accent);
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.slider-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.slider-wrap span {
  font-size: 0.66rem;
  color: var(--muted);
  flex: none;
}

.settings-foot-note {
  font-size: 0.7rem;
  color: var(--muted);
  text-align: center;
  padding-top: 0.4rem;
}

.data-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.data-actions .btn {
  flex: 1;
  min-width: 8.5rem;
}

.data-hint {
  margin: 0.45rem 0 0;
  font-size: 0.7rem;
  color: var(--muted);
  line-height: 1.4;
}

/* Profile */
.profile-head {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1rem;
}

.avatar-preview {
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 1.1rem;
  background: linear-gradient(145deg, var(--avatar-color, var(--accent)),
      color-mix(in srgb, var(--avatar-color, var(--accent)) 55%, #000 30%));
  color: #fff;
  font-size: 1.25rem;
  font-weight: 750;
  box-shadow: 0 10px 30px color-mix(in srgb, var(--avatar-color, var(--accent)) 35%, transparent);
  flex: none;
  text-transform: uppercase;
}

.profile-meta strong {
  display: block;
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.profile-meta span {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.1rem;
}

.danger-zone {
  border: 1px solid color-mix(in srgb, #ef4444 30%, var(--border));
  border-radius: var(--r-md);
  padding: 0.9rem;
  background: color-mix(in srgb, #ef4444 5%, transparent);
}

.danger-zone h3 {
  color: color-mix(in srgb, #ef4444 65%, var(--text) 35%);
  margin: 0 0 0.25rem;
  font-size: 0.8rem;
}

.danger-zone p {
  margin: 0 0 0.65rem;
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.45;
}

/* About */
.about-hero {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1rem;
}

.about-hero .logo-badge {
  width: 3.2rem;
  height: 3.2rem;
  font-size: 1.6rem;
}

.about-hero h3 {
  margin: 0;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.about-hero p {
  margin: 0.15rem 0 0;
  font-size: 0.72rem;
  color: var(--muted);
}

.about-desc {
  margin: 0 0 1rem;
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--text-2);
}

.shortcut-list {
  display: grid;
  gap: 0.35rem;
  margin: 0 0 1rem;
}

.shortcut-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.38rem 0;
  border-bottom: 1px dashed var(--border);
  font-size: 0.76rem;
  color: var(--text-2);
}

.shortcut-row kbd {
  font-size: 0.68rem;
  color: var(--text-2);
}

.about-made {
  font-size: 0.68rem;
  color: var(--muted);
  text-align: center;
  padding-top: 0.35rem;
  border-top: 1px solid var(--border);
}

/* ----------------------------- popover ----------------------------- */

.popover {
  position: fixed;
  z-index: 1000;
  min-width: 12.5rem;
  padding: 0.35rem;
  border-radius: var(--r-md);
  border: 1px solid var(--border-strong);
  background: var(--surface-solid);
  box-shadow: var(--shadow);
  animation: popIn 0.16s var(--ease-out);
  max-height: 70vh;
  overflow-y: auto;
}

@keyframes popIn {
  from {
    opacity: 0;
    transform: translateY(-4px) scale(0.985);
  }
}

.pop-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  padding: 0.44rem 0.55rem;
  border-radius: 0.45rem;
  color: var(--text-2);
  font-size: 0.8rem;
  text-align: left;
  transition: background 0.14s, color 0.14s;
}

.pop-item:hover {
  background: var(--surface-hover);
  color: var(--text);
}

.pop-item.danger {
  color: #ef4444;
}

.pop-item.danger:hover {
  background: color-mix(in srgb, #ef4444 12%, transparent);
}

.pop-item .pop-ico {
  width: 1.1rem;
  text-align: center;
  flex: none;
  font-size: 0.85rem;
}

.pop-item .pop-check {
  margin-left: auto;
  color: var(--accent);
  font-weight: 700;
}

.pop-item .pop-hint {
  margin-left: auto;
  font-size: 0.65rem;
  color: var(--muted);
}

.pop-sep {
  height: 1px;
  background: var(--border);
  margin: 0.3rem 0.2rem;
}

.pop-label {
  padding: 0.4rem 0.55rem 0.2rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}

.pop-profile {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.55rem 0.55rem;
}

.pop-profile .avatar {
  width: 2rem;
  height: 2rem;
  border-radius: 0.6rem;
  font-size: 0.7rem;
}

.pop-profile-text {
  min-width: 0;
}

.pop-profile-text strong {
  display: block;
  font-size: 0.82rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pop-profile-text span {
  display: block;
  font-size: 0.68rem;
  color: var(--muted);
}

/* ----------------------------- toasts ----------------------------- */

.toasts {
  position: fixed;
  left: 50%;
  bottom: calc(var(--status-h) + 0.9rem);
  transform: translateX(-50%);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  pointer-events: none;
  width: min(30rem, calc(100vw - 2rem));
}

.toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: fit-content;
  max-width: 100%;
  padding: 0.6rem 0.8rem;
  border-radius: var(--r-sm);
  border: 1px solid var(--border-strong);
  background: var(--surface-solid);
  box-shadow: var(--shadow);
  font-size: 0.82rem;
  color: var(--text);
  animation: toastIn 0.3s var(--ease-out) both;
}

.toast.leaving {
  animation: toastOut 0.22s ease forwards;
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
}

@keyframes toastOut {
  to {
    opacity: 0;
    transform: translateY(6px) scale(0.98);
  }
}

.toast .toast-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  flex: none;
  background: var(--accent);
}

.toast.success .toast-dot {
  background: #22c55e;
}

.toast.error .toast-dot {
  background: #ef4444;
}

.toast.warning .toast-dot {
  background: #f59e0b;
}

.toast .toast-action {
  margin-left: 0.35rem;
  padding: 0.12rem 0.35rem;
  border-radius: 0.35rem;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.76rem;
  white-space: nowrap;
}

.toast .toast-action:hover {
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}

.toast .toast-close {
  width: 1.3rem;
  height: 1.3rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.7rem;
  flex: none;
  margin-left: 0.15rem;
}

.toast .toast-close:hover {
  background: var(--surface-hover);
  color: var(--text);
}

/* ----------------------------- responsive ----------------------------- */

@media (max-width: 1150px) {
  .s-label {
    display: none;
  }

  .status-btn {
    padding: 0 0.45rem;
  }
}

@media (max-width: 960px) {
  :root {
    --status-h: 62px;
  }

  .app {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr) var(--status-h);
  }

  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(84vw, 21rem);
    z-index: 30;
    grid-row: auto;
    transform: translateX(-102%);
    transition: transform 0.3s var(--ease);
    border-radius: 0 var(--r-xl) var(--r-xl) 0;
    box-shadow: var(--shadow);
  }

  .app.sidebar-open .sidebar {
    transform: none;
  }

  .sidebar-close {
    display: grid;
  }

  .sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 25;
    background: var(--scrim);
    backdrop-filter: blur(2px);
    animation: fadeIn 0.2s ease;
  }

  .main {
    grid-column: 1;
    grid-row: 1;
    padding: 0 clamp(10px, 2.6vw, 20px);
  }

  .mobilebar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.55rem 0 0.1rem;
  }

  .mobile-brand {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: -0.02em;
  }

  .statusbar {
    grid-column: 1;
    grid-row: 2;
  }

  .search-panel {
    margin-top: 0.55rem;
  }

  .view-head {
    padding-top: 0.8rem;
  }

  .list-scroll {
    padding-right: 0.15rem;
  }
}

@media (max-width: 760px) {
  .f-url {
    grid-column: span 12;
  }

  .f-group {
    grid-column: span 6;
  }

  .f-save {
    grid-column: span 6;
  }

  .f-title,
  .f-tags {
    grid-column: span 12;
  }

  .status-brand-text {
    display: none;
  }

  .list.view-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 14.5rem), 1fr));
  }

  .dialog {
    width: calc(100vw - 1.2rem);
    max-width: calc(100vw - 1.2rem);
    max-height: 90dvh;
  }

  .dlg-head,
  .dlg-body,
  .dlg-foot {
    padding-left: 1.05rem;
    padding-right: 1.05rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .icon-picker {
    grid-template-columns: repeat(7, 1fr);
  }

  .settings-section .setting-row {
    align-items: flex-start;
  }

  .segmented {
    flex-wrap: wrap;
  }
}

@media (max-width: 560px) {
  .f-group {
    grid-column: span 12;
  }

  .f-save {
    grid-column: span 12;
  }

  .quick-form {
    padding: 0 0.75rem 0.8rem;
    gap: 0.55rem;
  }

  .view-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .view-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .view-head h1 {
    font-size: 1.2rem;
  }

  .status-right {
    gap: 0.12rem;
  }

  .status-btn {
    padding: 0 0.35rem;
  }

  .layout-switch {
    margin-left: 0;
    padding: 0.12rem;
  }

  .layout-switch button {
    width: 1.7rem;
    height: 1.6rem;
  }

  .layout-switch button svg {
    width: 0.9rem;
    height: 0.9rem;
  }

  .toasts {
    bottom: calc(var(--status-h) + 0.5rem);
    width: calc(100vw - 1.2rem);
  }

  .toast {
    width: 100%;
  }

  .list.view-grid {
    grid-template-columns: 1fr;
  }

  .view-rows .card-host,
  .view-wide .card-host {
    display: none;
  }

  .view-tiles .card {
    min-height: 8.4rem;
  }

  .dialog.drawer {
    width: 100vw;
    border-radius: 0;
  }

  .tag-tile {
    font-size: 0.8rem;
    padding: 0.45rem 0.65rem;
  }
}

/* ----------------------------- motion preferences ----------------------------- */

html[data-anim="off"] *,
html[data-anim="off"] *::before,
html[data-anim="off"] *::after {
  animation: none !important;
  transition: none !important;
}

html[data-hover="off"] .card:hover {
  transform: none !important;
}

html[data-hover="off"] .list {
  padding: 0;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ----------------------------- complementary bits ----------------------------- */

.dialog-form {
  display: flex;
  flex-direction: column;
  min-height: 0;
  max-height: 100%;
  flex: 1;
}

.dialog > .dlg-body {
  flex: 1;
}

.confirm-text {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.55;
  color: var(--text-2);
}

.dlg-sep {
  height: 1px;
  margin: 1.1rem 0;
  background: var(--border);
}

.section-title {
  margin: 0 0 0.15rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.45rem;
  margin-top: 0.25rem;
}

.pin-row {
  padding: 0.25rem 0;
  border-bottom: 0;
}

.pop-item:disabled {
  opacity: 0.4;
  pointer-events: none;
}
