:root {
  color-scheme: light;
  --ink: #241f22;
  --muted: #756a71;
  --line: #dfd6dc;
  --line-strong: #c3b8c0;
  --surface: #fffaf7;
  --surface-2: #f4edf2;
  --surface-3: #ece2e8;
  --glass: rgba(255, 250, 247, 0.78);
  --accent: #2f6f73;
  --accent-strong: #204f52;
  --accent-soft: rgba(47, 111, 115, 0.12);
  --danger: #9f3434;
  --warning: #b56a1c;
  --tone-amber: #b56a1c;
  --tone-amber-soft: #f7eacf;
  --tone-blue: #2f5d8a;
  --tone-blue-soft: #dde9f5;
  --tone-violet: #6b3f8d;
  --tone-violet-soft: #ebe0f4;
  --tone-green: #2f7a4f;
  --tone-green-soft: #d8ecdf;
  --tone-grey: #5d5360;
  --tone-grey-soft: #e6dfe4;
  --shadow-sm: 0 4px 14px rgba(56, 42, 49, 0.06);
  --shadow: 0 16px 42px rgba(56, 42, 49, 0.12);
  /* Notification authoring redesign (Plan 1 foundation) — warm cream+gold tokens.
     Additive + namespaced so they cannot restyle existing admin surfaces. */
  --notification-paper: #f6f0e2;
  --notification-card: #fffdf8;
  --notification-card-soft: #fbf5e9;
  --notification-ink-soft: #6f5a48;
  --notification-gold: #cbb98c;
  --notification-gold-strong: #b39a63;
  --notification-gold-ink: #8a7338;
  --notification-line: #e7dcc6;
  --notification-ok: #5b8c5a;
  --notification-warning: #b07d2a;
  --notification-heading-font: "Cormorant Garamond", Georgia, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 0%, rgba(47, 111, 115, 0.08), transparent 34%),
    radial-gradient(circle at 90% 6%, rgba(181, 106, 28, 0.08), transparent 30%),
    #f7f3f0;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

button,
input,
select,
textarea {
  font: inherit;
}

.shell {
  width: min(1600px, 100%);
  margin: 0 auto;
  padding: 24px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0 24px;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  letter-spacing: 0;
}

h2 {
  font-size: 1rem;
  letter-spacing: 0;
}

.auth {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  min-width: 220px;
}

.auth-user {
  max-width: 280px;
  color: var(--muted);
  font-size: 0.86rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.button {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  color: var(--ink);
  cursor: pointer;
  min-height: 38px;
  padding: 8px 12px;
  font-weight: 700;
}

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

.button.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.button.primary:hover {
  background: var(--accent-strong);
}

.button.danger {
  border-color: rgba(159, 52, 52, 0.35);
  color: var(--danger);
}

.button:disabled,
.button[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
}

.notice {
  margin: 10vh auto 0;
  max-width: 760px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 18px;
  box-shadow: var(--shadow);
  color: var(--muted);
}

.notice strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
}

.hidden {
  display: none !important;
}

.dashboard {
  display: grid;
  gap: 18px;
}

.control-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.tab-nav {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 999px;
  padding: 4px;
  box-shadow: var(--shadow-sm);
}

.tab {
  border: none;
  background: transparent;
  border-radius: 999px;
  color: var(--muted);
  cursor: pointer;
  padding: 8px 16px;
  font-weight: 700;
  font-size: 0.92rem;
}

.tab:hover {
  color: var(--ink);
}

.tab.active {
  background: var(--accent);
  color: #fff;
}

.control-bar-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.search-bar {
  width: clamp(220px, 32vw, 380px);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  min-height: 38px;
  padding: 8px 14px;
  box-shadow: var(--shadow-sm);
}

.search-bar:focus {
  outline: 2px solid var(--accent-soft);
  border-color: var(--accent);
}

.tab-content {
  min-height: 60vh;
}

.placeholder {
  display: grid;
  place-items: center;
  min-height: 40vh;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Filter bar */

.filter-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 12px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.filter-group-label {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0 6px 0 8px;
}

.filter-group-label:first-child {
  padding-left: 4px;
}

.filter-chip {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 999px;
  padding: 5px 12px;
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
}

.filter-chip:hover {
  border-color: var(--line-strong);
}

.filter-chip.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.filter-clear {
  margin-left: auto;
  font-size: 0.8rem;
}

/* Pipeline board */

.pipeline-board {
  display: grid;
  grid-template-columns: repeat(5, minmax(220px, 1fr));
  gap: 14px;
  align-items: stretch;
}

.pipeline-column {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  min-height: 60vh;
  overflow: hidden;
}

.pipeline-column-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
  padding: 12px 14px;
}

.pipeline-column-title {
  font-weight: 800;
  font-size: 0.92rem;
}

.pipeline-column-count {
  border-radius: 999px;
  background: var(--surface-3);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 2px 10px;
  min-width: 28px;
  text-align: center;
}

.pipeline-column[data-tone="amber"] .pipeline-column-header {
  background: var(--tone-amber-soft);
  color: var(--tone-amber);
}
.pipeline-column[data-tone="blue"] .pipeline-column-header {
  background: var(--tone-blue-soft);
  color: var(--tone-blue);
}
.pipeline-column[data-tone="violet"] .pipeline-column-header {
  background: var(--tone-violet-soft);
  color: var(--tone-violet);
}
.pipeline-column[data-tone="green"] .pipeline-column-header {
  background: var(--tone-green-soft);
  color: var(--tone-green);
}
.pipeline-column[data-tone="grey"] .pipeline-column-header {
  background: var(--tone-grey-soft);
  color: var(--tone-grey);
}

.pipeline-column-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  flex: 1;
}

.pipeline-empty {
  color: var(--muted);
  font-size: 0.82rem;
  text-align: center;
  padding: 18px 8px;
  border: 1px dashed var(--line);
  border-radius: 8px;
}

/* Deck card */

.deck-card {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 12px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.12s ease, transform 0.06s ease;
}

.deck-card:hover {
  border-color: var(--accent);
}

.deck-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.deck-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.deck-card-title {
  font-weight: 800;
  font-size: 0.96rem;
  line-height: 1.2;
}

.deck-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 0.84rem;
}

.deck-card-price {
  color: var(--ink);
  font-weight: 700;
}

.deck-card-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  font-size: 0.78rem;
  color: var(--muted);
}

.deck-card-chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 8px;
  background: var(--surface-2);
}

.deck-card-release {
  margin-left: auto;
  font-style: italic;
}

.deck-card-badge {
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 0.72rem;
  font-weight: 800;
  white-space: nowrap;
}

.deck-card-badge.attention {
  background: var(--tone-amber-soft);
  color: var(--tone-amber);
}

.deck-card-badge.cli {
  background: var(--tone-grey-soft);
  color: var(--tone-grey);
}

/* Drawer */

.drawer {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  justify-content: flex-end;
  pointer-events: none;
}

.drawer:not(.hidden) {
  pointer-events: auto;
}

.drawer-scrim {
  position: absolute;
  inset: 0;
  background: rgba(36, 31, 34, 0.32);
  backdrop-filter: blur(2px);
}

.drawer-panel {
  position: relative;
  height: 100vh;
  width: min(560px, 100%);
  background: var(--surface);
  border-left: 1px solid var(--line);
  box-shadow: -16px 0 48px rgba(36, 31, 34, 0.18);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.drawer-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding: 16px 20px;
  background: var(--surface-2);
}

.drawer-eyebrow {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.drawer-header h2 {
  font-size: 1.1rem;
}

.drawer-toc {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
  padding: 8px 16px;
  background: #fffdfb;
}

.drawer-toc a {
  display: inline-block;
  border-radius: 999px;
  padding: 4px 10px;
  color: var(--muted);
  font-size: 0.8rem;
  text-decoration: none;
}

.drawer-toc a:hover {
  background: var(--surface-2);
  color: var(--ink);
}

.drawer-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 18px 20px 96px;
  overflow-y: auto;
  flex: 1;
}

.drawer-section {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 14px 16px;
  box-shadow: var(--shadow-sm);
}

.drawer-section h3 {
  margin: 0;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.drawer-section.collapsed > :not(h3) {
  display: none;
}

.drawer-section.flash {
  animation: section-flash 1.2s ease-out;
}

@keyframes section-flash {
  0% { box-shadow: 0 0 0 3px var(--accent); }
  100% { box-shadow: var(--shadow-sm); }
}

.section-toggle {
  border: none;
  background: none;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  padding: 0;
  color: var(--ink);
}

.drawer-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.drawer-form label.checkbox {
  display: flex;
  align-items: center;
  flex-direction: row;
}

.drawer-form input,
.drawer-form select,
.drawer-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  min-height: 38px;
  padding: 8px 10px;
}

.drawer-form input:focus,
.drawer-form select:focus,
.drawer-form textarea:focus {
  border-color: var(--accent);
  outline: 2px solid var(--accent-soft);
}

.drawer-form textarea {
  resize: vertical;
}

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

.commerce-panel {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

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

.segmented-option {
  position: relative;
  min-height: 38px;
  margin: 0;
}

.segmented-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.segmented-option span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  background: var(--surface-2);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 800;
  text-align: center;
}

.segmented-option input:checked + span {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.segmented-option input:focus-visible + span {
  outline: 2px solid var(--accent-soft);
  outline-offset: 2px;
}

.commerce-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.launch-readiness {
  display: grid;
  gap: 18px;
}

.launch-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 14px 0;
}

.launch-header > div:first-child {
  flex: 1 1 260px;
}

.launch-actions {
  display: flex;
  flex: 1 1 260px;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.launch-cutoff-input {
  min-height: 38px;
  max-width: 210px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 0 10px;
  font: inherit;
}

.launch-readback-summary {
  margin: -8px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.launch-status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}

@media (max-width: 640px) {
  .launch-actions {
    justify-content: flex-start;
  }

  .launch-cutoff-input {
    max-width: none;
    width: 100%;
  }
}

.launch-section {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 14px;
  box-shadow: var(--shadow-sm);
}

.launch-section h3 {
  margin: 0;
  font-size: 0.95rem;
}

.launch-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.launch-item {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  min-height: 44px;
  border-top: 1px solid var(--line);
  padding-top: 8px;
}

.launch-item:first-child {
  border-top: 0;
  padding-top: 0;
}

.launch-marker {
  width: 10px;
  height: 10px;
  margin-top: 4px;
  border-radius: 50%;
  background: var(--tone-grey);
}

.launch-item.ready .launch-marker { background: var(--tone-green); }
.launch-item.warning .launch-marker { background: var(--warning); }
.launch-item.waiting .launch-marker { background: var(--tone-blue); }
.launch-item.blocked .launch-marker { background: var(--danger); }

.launch-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.launch-label {
  font-size: 0.87rem;
  font-weight: 800;
}

.launch-detail {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.drawer-field {
  display: grid;
  gap: 8px;
}

.field-label {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.status-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.status-pill {
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.status-published { background: var(--tone-green-soft); color: var(--tone-green); }
.status-draft { background: var(--tone-amber-soft); color: var(--tone-amber); }
.status-archived { background: var(--tone-grey-soft); color: var(--tone-grey); }
.status-unknown { background: var(--surface-3); color: var(--muted); }

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px;
  background: var(--surface-2);
  font-size: 0.82rem;
}

.chip-id {
  color: var(--muted);
  font-size: 0.72rem;
  font-family: ui-monospace, monospace;
}

.chip-warning {
  color: var(--danger);
  font-size: 0.7rem;
  font-weight: 700;
}

.chip-remove {
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  padding: 0 2px;
}

.chip-remove:hover {
  color: var(--danger);
}

.chip-stale {
  border-color: rgba(159, 52, 52, 0.4);
  background: #fbeeee;
}

.shelf-add {
  position: relative;
}

.shelf-suggestions {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 1;
  display: grid;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  max-height: 240px;
  overflow-y: auto;
}

.shelf-suggestion {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  border: none;
  background: #fff;
  text-align: left;
  padding: 8px 10px;
  cursor: pointer;
  border-bottom: 1px solid var(--line);
}

.shelf-suggestion:last-child {
  border-bottom: none;
}

.shelf-suggestion:hover {
  background: var(--surface-2);
}

.shelf-suggestion-meta {
  color: var(--muted);
  font-size: 0.72rem;
}

.readiness-summary {
  display: inline-block;
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 0.78rem;
  font-weight: 800;
}

.readiness-summary.ok {
  background: var(--tone-green-soft);
  color: var(--tone-green);
}

.readiness-summary.not-ok {
  background: var(--tone-amber-soft);
  color: var(--tone-amber);
}

.drawer-section.readiness.ok {
  border-color: rgba(47, 122, 79, 0.4);
}

.readiness-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.readiness-issue {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px;
  align-items: center;
  font-size: 0.86rem;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--surface-2);
}

.readiness-issue.blocker .readiness-marker { color: var(--danger); }
.readiness-issue.warning .readiness-marker { color: var(--warning); }
.readiness-issue .readiness-jump {
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.78rem;
}

.readiness-issue.cli-required {
  background: var(--tone-grey-soft);
}

.technical-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.technical-row {
  display: grid;
  grid-template-columns: minmax(110px, auto) 1fr;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 10px;
  background: var(--surface-2);
  font-size: 0.82rem;
}

.technical-row dt {
  color: var(--muted);
  font-weight: 700;
}

.technical-row dd {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
}

.technical-row code {
  background: transparent;
  font-family: ui-monospace, monospace;
  font-size: 0.78rem;
  overflow-wrap: anywhere;
  flex: 1;
}

.copy {
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  padding: 2px 8px;
  font-size: 0.72rem;
}

.copy:hover {
  border-color: var(--accent);
}

.drawer-footer {
  position: sticky;
  bottom: 0;
  margin: 16px -20px -18px;
  padding: 12px 20px;
  background: var(--surface);
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.drawer-footer-actions {
  display: flex;
  gap: 8px;
}

.drawer-status {
  color: var(--muted);
  font-size: 0.82rem;
}

/* Drag + drop affordances */

.deck-card.dragging {
  opacity: 0.4;
  transform: scale(0.97);
  border-style: dashed;
}

.pipeline-column.drag-over {
  background: var(--accent-soft);
}

.pipeline-column.drag-over .pipeline-column-body {
  background: rgba(47, 111, 115, 0.06);
}

/* Publish / archive / draft dialog */

.dialog-root {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
}

.dialog-root:not(:empty) {
  pointer-events: auto;
}

.dialog-scrim {
  position: absolute;
  inset: 0;
  background: rgba(36, 31, 34, 0.42);
  backdrop-filter: blur(2px);
}

.dialog {
  position: relative;
  margin: 6vh auto;
  width: min(560px, calc(100% - 32px));
  background: var(--surface);
  border-radius: 16px;
  box-shadow: 0 32px 64px rgba(36, 31, 34, 0.22);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: 88vh;
}

.dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
}

.dialog-header h2 {
  font-size: 1.1rem;
}

.dialog-subtle {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.92rem;
}

.dialog-body {
  display: grid;
  gap: 14px;
  padding: 18px 20px;
  overflow-y: auto;
}

.dialog-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  font-size: 0.92rem;
}

.dialog-label {
  color: var(--muted);
  font-weight: 700;
}

.dialog-explanation {
  line-height: 1.45;
  color: var(--ink);
  background: var(--surface-2);
  border-left: 4px solid var(--accent);
  border-radius: 6px;
  padding: 12px 14px;
}

.dialog-explanation strong {
  display: block;
  margin-bottom: 6px;
}

.dialog-clear {
  color: var(--tone-green);
  font-weight: 700;
  background: var(--tone-green-soft);
  padding: 8px 12px;
  border-radius: 8px;
}

.dialog-warning {
  color: var(--warning);
  font-weight: 700;
}

.dialog-fieldset {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  display: grid;
  gap: 8px;
}

.dialog-fieldset legend {
  padding: 0 6px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.dialog-fieldset .radio {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.94rem;
}

.dialog-fieldset input[type="radio"] {
  margin: 0;
}

.dialog-datetime {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.82rem;
}

.dialog-datetime input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 10px;
  min-height: 38px;
  background: #fff;
  color: var(--ink);
}

.dialog-datetime input:disabled {
  background: var(--surface-2);
  color: var(--muted);
}

.dialog-validation {
  margin: 0;
  color: var(--danger);
  font-size: 0.82rem;
  font-weight: 700;
  min-height: 1em;
}

.dialog-issues h4 {
  margin: 0 0 6px;
  font-size: 0.86rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.dialog-issues.blockers h4 { color: var(--danger); }
.dialog-issues.warnings h4 { color: var(--warning); }

.dialog-issues .readiness-issue {
  grid-template-columns: 1fr auto;
}

.cli-hint {
  background: var(--tone-grey-soft);
  color: var(--tone-grey);
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 2px 8px;
}

.dialog-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 20px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.dialog .button[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}

/* Shelves tab */

.shelves-tab {
  display: grid;
  gap: 16px;
}

.shelves-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.shelves-toolbar h2 {
  margin: 0;
  font-size: 1.1rem;
}

.shelf-lane {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.shelf-lane-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 16px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}

.shelf-lane-title {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.shelf-lane-title h3 {
  margin: 0;
  font-size: 1rem;
}

.shelf-id {
  color: var(--muted);
  font-family: ui-monospace, monospace;
  font-size: 0.78rem;
}

.shelf-lane-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.shelf-lane-body {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 14px 16px;
  scroll-snap-type: x proximity;
}

.shelf-deck-card {
  position: relative;
  display: grid;
  gap: 4px;
  min-width: 180px;
  flex: 0 0 180px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 10px 12px;
  cursor: grab;
  scroll-snap-align: start;
  box-shadow: var(--shadow-sm);
}

.shelf-deck-card.dragging {
  opacity: 0.4;
}

.shelf-deck-card.drop-indicator {
  border: 2px dashed var(--accent);
  background: var(--accent-soft);
}

.shelf-deck-card.stale {
  background: #fbeeee;
  border-color: rgba(159, 52, 52, 0.4);
}

.shelf-deck-title {
  font-weight: 700;
  font-size: 0.92rem;
}

.shelf-deck-id {
  font-family: ui-monospace, monospace;
  font-size: 0.72rem;
  color: var(--muted);
}

.shelf-deck-meta {
  color: var(--muted);
  font-size: 0.76rem;
}

.shelf-deck-card .chip-remove {
  position: absolute;
  top: 6px;
  right: 6px;
}

.shelf-add-row {
  padding: 0 16px 14px;
}

.shelf-add {
  position: relative;
  max-width: 360px;
}

.shelf-add input[data-shelf-add-input] {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  min-height: 38px;
  padding: 8px 12px;
}

[data-shelf-add-suggestions]:empty {
  display: none;
}

/* Control-plane composers */

.composer {
  display: grid;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--glass);
  padding: 18px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.composer label,
.composer fieldset {
  min-width: 0;
}

.composer label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 760;
}

.composer label.inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.composer input,
.composer select,
.composer textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
  min-height: 42px;
  padding: 10px 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.composer textarea {
  min-height: 96px;
  resize: vertical;
}

.composer input:focus,
.composer select:focus,
.composer textarea:focus {
  border-color: var(--accent);
  outline: 2px solid var(--accent-soft);
}

.composer fieldset {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.42);
  padding: 14px;
}

.composer legend {
  padding: 0 6px;
  color: var(--ink);
  font-weight: 800;
}

.composer > h2 {
  margin: 0;
}

.composer-section {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(223, 214, 220, 0.75);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.44);
  padding: 14px;
}

.composer-section-title {
  display: grid;
  gap: 3px;
}

.composer-section-title strong {
  color: var(--ink);
  font-size: 0.95rem;
}

.composer-section-title span {
  color: var(--muted);
  font-size: 0.82rem;
}

.composer-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.muted {
  color: var(--muted);
  font-size: 0.84rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  width: max-content;
  border-radius: 999px;
  background: var(--surface-3);
  color: var(--tone-grey);
  padding: 4px 9px;
  font-size: 0.74rem;
  font-weight: 800;
}

.badge.warn {
  background: var(--tone-amber-soft);
  color: var(--tone-amber);
}

.broadcasts,
.announcements,
.campaigns {
  display: grid;
  gap: 18px;
}

.broadcast-list,
.announcement-list,
.campaign-list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.broadcast-row,
.announcement-row,
.campaign-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto minmax(160px, 0.7fr) minmax(140px, auto) auto auto;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

/* App preview composers */

.announcement-grid,
.campaign-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 430px);
  gap: 18px;
  align-items: start;
}

.announcement-preview-panel,
.campaign-preview-panel {
  position: sticky;
  top: 16px;
  display: grid;
  gap: 12px;
  max-height: calc(100vh - 32px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--glass);
  padding: 18px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.announcement-preview-panel h2,
.announcement-preview-panel h3,
.campaign-preview-panel h2,
.campaign-preview-panel h3 {
  margin: 0;
}

.app-surface-preview {
  width: 100%;
  height: min(720px, calc(100vh - 116px));
  min-height: 620px;
  border: 1px solid rgba(223, 214, 220, 0.74);
  border-radius: 18px;
  background: #17131d;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

/* Campaigns */

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

.campaign-form-grid .wide {
  grid-column: 1 / -1;
}

.campaign-channel-group {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.campaign-window-channel {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) repeat(3, minmax(120px, 1fr));
  gap: 10px;
  grid-column: 1 / -1;
  align-items: end;
}

.native-push-preview {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.push-preview {
  display: grid;
  gap: 14px;
  min-width: 0;
}

/* Lock-screen phone frame: one dark "screen" per OS with the notification
   card the message would produce. Approximation only — never native-perfect. */
.push-preview-phone {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.push-preview-screen {
  border-radius: 22px;
  border: 6px solid #1c1822;
  background:
    radial-gradient(circle at 30% 8%, rgba(216, 198, 146, 0.16), transparent 42%),
    radial-gradient(circle at 80% 90%, rgba(91, 74, 122, 0.35), transparent 55%),
    linear-gradient(180deg, #241f2e, #15121c 70%);
  padding: 18px 12px 22px;
  display: grid;
  gap: 14px;
  box-shadow: 0 10px 26px rgba(28, 24, 34, 0.28);
}

.push-preview-clock {
  font-family: var(--notification-heading-font, serif);
  font-size: 2rem;
  font-weight: 600;
  text-align: center;
  color: rgba(247, 243, 240, 0.92);
  letter-spacing: 0.02em;
}

.push-preview-card {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  grid-template-areas:
    "icon app when"
    "icon title title"
    "icon body body";
  column-gap: 10px;
  row-gap: 2px;
  min-width: 0;
  border-radius: 14px;
  background: rgba(247, 243, 240, 0.92);
  padding: 10px 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.push-preview-appicon {
  grid-area: icon;
  align-self: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-family: var(--notification-heading-font, serif);
  font-weight: 700;
  font-size: 1.1rem;
  color: #3a2c12;
  background: linear-gradient(180deg, #d8c692, var(--notification-gold));
}

.push-preview-app {
  grid-area: app;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(44, 34, 25, 0.62);
}

.push-preview-when {
  grid-area: when;
  font-size: 0.74rem;
}

.push-preview-title {
  grid-area: title;
}

.push-preview-body {
  grid-area: body;
}

.push-preview-os {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.push-preview-app,
.push-preview-title,
.push-preview-body {
  min-width: 0;
  overflow-wrap: anywhere;
}

.push-preview-app,
.push-preview-title {
  color: var(--ink);
}

.push-preview-body,
.push-preview-disclaimer {
  color: var(--notification-ink-soft);
  font-size: 0.88rem;
}

.push-preview-disclaimer {
  margin: 0;
}

.native-push-card {
  display: grid;
  gap: 4px;
  min-height: 96px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.preflight-list {
  display: grid;
  gap: 8px;
  min-height: 84px;
}

.preflight-item {
  display: grid;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 10px;
  font-size: 0.84rem;
}

.preflight-item.ok {
  border-color: rgba(47, 122, 79, 0.28);
  background: var(--tone-green-soft);
  color: var(--tone-green);
}

.preflight-item.blocking {
  border-color: rgba(159, 52, 52, 0.25);
  background: #fbeeee;
  color: var(--danger);
}

.preflight-item.warning {
  border-color: rgba(181, 106, 28, 0.28);
  background: var(--tone-amber-soft);
  color: var(--tone-amber);
}

.preflight-item.info {
  border-color: rgba(47, 93, 138, 0.28);
  background: var(--tone-blue-soft);
  color: var(--tone-blue);
}

.shelf-edit-form {
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: #fffdfb;
}

.shelf-edit-form.inline {
  background: var(--surface-2);
}

.shelf-edit-form h3 {
  margin: 0;
  font-size: 0.96rem;
}

.shelf-edit-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.shelf-edit-form input,
.shelf-edit-form select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  min-height: 38px;
  padding: 8px 10px;
}

.shelf-edit-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

/* Store Preview */

.preview-tab {
  display: grid;
  justify-content: center;
  gap: 16px;
}

.preview-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.preview-control {
  display: grid;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 700;
}

.preview-control input {
  min-width: 220px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  min-height: 38px;
  padding: 8px 10px;
}

.preview-stats {
  color: var(--muted);
  font-size: 0.86rem;
}

.phone-frame {
  width: 414px;
  max-width: 100%;
  background: #1d1a1c;
  border-radius: 44px;
  padding: 18px;
  box-shadow: 0 32px 64px rgba(36, 31, 34, 0.25);
}

.phone-screen {
  background: #fffaf7;
  border-radius: 30px;
  padding: 22px 18px 28px;
  min-height: 720px;
  max-height: 80vh;
  overflow-y: auto;
}

.phone-header {
  display: grid;
  gap: 4px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.phone-eyebrow {
  margin: 0;
  font-size: 0.72rem;
  color: var(--accent);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.phone-header h3 {
  margin: 0;
  font-size: 1.4rem;
}

.phone-now {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.phone-empty {
  margin: 40px 0;
  text-align: center;
  color: var(--muted);
}

.phone-shelf {
  display: grid;
  gap: 10px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.phone-shelf:last-child {
  border-bottom: none;
}

.phone-shelf-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.phone-shelf-header h4 {
  margin: 0;
  font-size: 0.96rem;
}

.phone-tag {
  border-radius: 999px;
  padding: 2px 8px;
  background: var(--surface-3);
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.phone-shelf-carousel .phone-shelf-body {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
}

.phone-shelf-carousel .phone-deck {
  flex: 0 0 200px;
  scroll-snap-align: start;
}

.phone-shelf-grid .phone-shelf-body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.phone-deck {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 10px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.phone-deck:hover {
  border-color: var(--accent);
}

.phone-deck-art {
  aspect-ratio: 2 / 3;
  border-radius: 8px;
  background: linear-gradient(140deg, #ccd5e0 0%, #8493a5 80%);
  display: grid;
  place-items: center;
}

.phone-deck-art-initials {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 800;
  font-size: 2.2rem;
  letter-spacing: 0.04em;
}

.phone-deck-meta {
  display: grid;
  gap: 2px;
}

.phone-deck-title {
  font-weight: 800;
  font-size: 0.9rem;
  line-height: 1.2;
}

.phone-deck-sub {
  color: var(--muted);
  font-size: 0.78rem;
}

.phone-deck-price {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
}

.phone-deck-meta-line {
  font-size: 0.72rem;
}

.preview-note {
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
  color: var(--muted);
  font-size: 0.84rem;
}

/* Toast */

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 50;
  max-width: 420px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #201b1f;
  color: #fff;
  box-shadow: var(--shadow);
  padding: 12px 14px;
  font-size: 0.88rem;
}

@media (max-width: 1120px) {
  .pipeline-board {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  }
  .announcement-grid,
  .campaign-grid {
    grid-template-columns: 1fr;
  }
  .announcement-preview-panel,
  .campaign-preview-panel {
    position: static;
    max-height: none;
  }
  .app-surface-preview {
    height: 680px;
    min-height: 560px;
  }
  .broadcast-row,
  .announcement-row,
  .campaign-row {
    grid-template-columns: 1fr;
    align-items: start;
  }
}

@media (max-width: 820px) {
  .topbar,
  .control-bar {
    align-items: flex-start;
    flex-direction: column;
  }
  .control-bar-tools {
    margin-left: 0;
    width: 100%;
  }
  .tab-nav {
    display: flex;
    flex-wrap: wrap;
    max-width: 100%;
    border-radius: 12px;
  }
  .search-bar {
    width: 100%;
  }
  .campaign-form-grid,
  .campaign-channel-group,
  .campaign-window-channel {
    grid-template-columns: 1fr;
  }
}

/* ===== Notification authoring redesign (Plan 1 foundation) =====
   Warm cream+gold guided authoring surface. All selectors namespaced under
   .notification-* and the --notification-* tokens; self-hosted Cormorant.
   Plans 2-4 attach this to the broadcast/announcement/campaign renderers. */

@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("./vendor/fonts/cormorant-garamond-600.woff2") format("woff2");
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("./vendor/fonts/cormorant-garamond-700.woff2") format("woff2");
}

.notification-guided {
  display: grid;
  gap: 22px;
}
.notification-guided h2,
.notification-guided h3,
.notification-step-title,
.notification-lede-title {
  font-family: var(--notification-heading-font);
  font-weight: 600;
  letter-spacing: 0;
}

.notification-lede {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}
.notification-lede-title {
  font-size: 2rem;
  margin: 0;
}
.notification-lede p {
  color: var(--notification-ink-soft);
  margin: 0;
}

.notification-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 26px;
  align-items: start;
}
@media (min-width: 1280px) {
  .notification-layout {
    grid-template-columns: 1fr 420px;
    gap: 32px;
  }
}

/* Quick path to the saved list that sits below the composer. */
.notification-jump {
  margin-left: auto;
  align-self: center;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--notification-ink-soft);
  text-decoration: none;
  border: 1px solid var(--notification-line);
  border-radius: 999px;
  padding: 6px 14px;
  background: var(--notification-card);
  white-space: nowrap;
}
.notification-jump:hover {
  border-color: var(--notification-gold-strong);
  color: var(--ink);
}

.notification-empty-state {
  border: 1px dashed var(--notification-line);
  border-radius: 14px;
  padding: 22px;
  text-align: center;
  color: var(--notification-ink-soft);
  background: var(--notification-card);
  list-style: none;
}

/* Technical detail lines stay available but visually subordinate. */
.tech-detail {
  font-size: 0.8rem;
  opacity: 0.8;
}
.tech-detail-disclosure {
  margin-top: 4px;
}
.tech-detail-disclosure summary {
  cursor: pointer;
  font-size: 0.82rem;
  color: var(--notification-ink-soft);
  width: fit-content;
}
.tech-detail-disclosure[open] summary {
  margin-bottom: 4px;
}
@media (max-width: 920px) {
  .notification-layout {
    grid-template-columns: 1fr;
  }
  .notification-preview-rail {
    position: static;
  }
}

.notification-steps {
  display: grid;
  gap: 18px;
}
.notification-step {
  background: var(--notification-card);
  border: 1px solid var(--notification-line);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
  padding: 22px 24px;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.notification-step:focus-within {
  border-color: var(--notification-gold-strong);
  box-shadow: var(--shadow);
}
.notification-step-head {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 4px;
}
.notification-step-number {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--notification-gold);
  color: #fff;
  font-weight: 700;
  display: grid;
  place-items: center;
  font-family: var(--notification-heading-font);
  font-size: 1.25rem;
}
.notification-step-title {
  font-size: 1.18rem;
}
.notification-step-sub {
  color: var(--notification-ink-soft);
  font-size: 0.95rem;
  margin: 2px 0 16px 47px;
}

.notification-choice-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.notification-choice-group.compact {
  gap: 8px;
}
.notification-choice {
  border: 1.5px solid var(--notification-line);
  background: var(--notification-card-soft);
  border-radius: 14px;
  padding: 13px 16px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1 1 auto;
  transition: border-color 0.15s, background 0.15s, transform 0.05s;
}
.notification-choice.compact {
  flex: 0 1 auto;
  padding: 9px 12px;
}
.notification-target-decks {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--notification-line);
}
.notification-target-decks .minihead,
.notification-preview-settings .minihead,
.notification-preview-tools .minihead,
.notification-linked-deck .minihead,
.notification-delivery-module .minihead,
.notification-button-section .minihead,
.notification-close-behavior .minihead {
  font-weight: 700;
  margin-bottom: 4px;
}
.notification-preview-settings,
.notification-linked-deck,
.notification-delivery-module,
.notification-button-section,
.notification-close-behavior {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--notification-line);
}
.notification-delivery-module {
  display: grid;
  gap: 12px;
  border: 1px solid color-mix(in srgb, var(--notification-line) 70%, var(--notification-gold) 30%);
  border-radius: 8px;
  background: color-mix(in srgb, var(--notification-card-soft) 78%, #fff 22%);
  padding: 16px;
}
.notification-preview-tools,
.notification-review-panel {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--notification-line);
  display: grid;
  gap: 10px;
}
.notification-preview-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--notification-line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--notification-card-soft) 72%, #fff 28%);
}
.notification-preview-switch button {
  min-height: 36px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--notification-ink-soft);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.notification-preview-switch button[aria-pressed="true"] {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 4px rgba(44, 34, 25, 0.12);
}
.notification-preview-panel {
  display: grid;
  gap: 10px;
}
.notification-preview-panel[data-campaign-preview-active="false"] {
  position: absolute;
  left: 0;
  right: 0;
  top: 64px;
  opacity: 0;
  pointer-events: none;
  z-index: -1;
}
.notification-review-panel {
  border: 1px solid var(--notification-line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--notification-card-soft) 72%, #fff 28%);
  padding: 16px;
}
.notification-button-section {
  display: grid;
  gap: 12px;
}
.notification-action-slots {
  display: grid;
  gap: 12px;
}
.notification-action-slot {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--notification-line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--notification-card-soft) 72%, #fff 28%);
}
.notification-action-slot-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.notification-action-slot-head b {
  font-size: 0.96rem;
  color: var(--ink);
}
.notification-action-slot-head span {
  color: var(--notification-ink-soft);
  font-size: 0.82rem;
  font-weight: 500;
  text-align: right;
}
.notification-action-slot label {
  margin-bottom: 0;
}
.notification-close-behavior .notification-choice {
  margin-top: 10px;
}
.notification-preview-settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 14px;
  align-items: start;
}
.notification-preview-settings-grid label {
  align-self: start;
}
.notification-preview-settings-grid label:last-child {
  grid-column: 1 / -1;
}
@media (max-width: 680px) {
  .notification-preview-settings-grid {
    grid-template-columns: 1fr;
  }
}
.notification-choice:hover {
  border-color: var(--notification-gold-strong);
}
.notification-choice:active {
  transform: translateY(1px);
}
.notification-choice b {
  font-weight: 600;
  font-size: 0.98rem;
}
.notification-choice small {
  color: var(--notification-ink-soft);
  font-size: 0.8rem;
}
.notification-choice[aria-pressed="true"] {
  border-color: var(--notification-gold-strong);
  background: linear-gradient(180deg, #fbf3df, #f7eccf);
  box-shadow: inset 0 0 0 1px var(--notification-gold);
}

.notification-reveal {
  margin-top: 14px;
}
.notification-reveal[hidden] {
  display: none;
}

/* All text-like guided inputs (bare <input>, datetime-local/date/time/number,
   text) get the warm treatment; checkbox/radio are pills, so excluded. */
.notification-picker,
.notification-guided input:not([type="checkbox"]):not([type="radio"]),
.notification-guided textarea,
.notification-guided select {
  width: 100%;
  border: 1.5px solid var(--notification-line);
  border-radius: 12px;
  background: var(--notification-card-soft);
  color: var(--ink);
  padding: 13px 15px;
  font: inherit;
  transition: border-color 0.15s, background 0.15s;
}
.notification-picker:focus,
.notification-guided input:not([type="checkbox"]):not([type="radio"]):focus,
.notification-guided textarea:focus,
.notification-guided select:focus {
  outline: none;
  border-color: var(--notification-gold-strong);
  background: #fff;
}

.notification-summary-card {
  background: var(--notification-card-soft);
  border: 1px dashed var(--notification-gold-strong);
  border-radius: 14px;
  padding: 16px 18px;
}

.notification-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.notification-preview-rail {
  position: sticky;
  top: 24px;
  display: grid;
  gap: 16px;
}

/* flatpickr calendar skinned to the cream+gold theme */
.flatpickr-calendar {
  border-radius: 16px;
  box-shadow: var(--shadow);
  border: 1px solid var(--notification-line);
}
.flatpickr-day.selected,
.flatpickr-day.selected:hover {
  background: var(--notification-gold);
  border-color: var(--notification-gold-strong);
  color: #3a2c12;
}
.flatpickr-day:hover {
  background: var(--notification-card-soft);
}

/* Guided form labels stack above their control; primary action uses the warm gold. */
.notification-guided label {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
  color: var(--notification-ink-soft);
  font-size: 0.92rem;
  font-weight: 600;
}
.notification-guided label[hidden] {
  display: none;
}
.notification-realfields label {
  margin-bottom: 0;
}
.notification-actions .button.primary {
  border-color: var(--notification-gold-strong);
  background: linear-gradient(180deg, #d8c692, var(--notification-gold));
  color: #3a2c12;
}
.notification-preview-rail .cap {
  color: var(--notification-ink-soft);
  font-size: 0.82rem;
  text-align: center;
}

/* Multi-select label-pills (announcements placements): native checkbox inside a
   .notification-choice label; the checkbox is visually hidden but stays native
   + .checked-collectable (position/opacity — NOT display:none/hidden/disabled),
   and the pressed look follows :has(input:checked) so native reset() updates it. */
.notification-choice:has(input:checked) {
  border-color: var(--notification-gold-strong);
  background: linear-gradient(180deg, #fbf3df, #f7eccf);
  box-shadow: inset 0 0 0 1px var(--notification-gold);
}
.notification-choice > input[type="checkbox"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
