/* src/dashboard/styles.css */
:root {
  --bg: #06111f;
  --bg-elevated: rgba(10, 22, 39, 0.82);
  --bg-ink: #091625;
  --card: rgba(13, 27, 45, 0.9);
  --line: rgba(149, 184, 232, 0.12);
  --line-strong: rgba(149, 184, 232, 0.24);
  --text: #edf5ff;
  --muted: #91aac8;
  --faint: #647a96;
  --amber: #ffb466;
  --amber-deep: #ff8c3e;
  --blue: #8ac7ff;
  --green: #78efb5;
  --red: #ff8c8c;
  --serif:
    "Cormorant Garamond",
    Georgia,
    serif;
  --sans:
    "IBM Plex Sans",
    system-ui,
    sans-serif;
  --mono: "IBM Plex Mono", monospace;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--sans);
  background:
    radial-gradient(
      circle at 0% 0%,
      rgba(255, 180, 102, 0.16),
      transparent 30%),
    radial-gradient(
      circle at 100% 0%,
      rgba(138, 199, 255, 0.12),
      transparent 30%),
    linear-gradient(
      180deg,
      #06111f 0%,
      #071320 45%,
      #081829 100%);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.025) 1px,
      transparent 1px);
  background-size: 22px 22px;
  mask-image:
    radial-gradient(
      circle at center,
      black,
      transparent 80%);
  opacity: 0.45;
}
.dashboard-page {
  position: relative;
  z-index: 1;
}
.wrap {
  width: min(1200px, calc(100vw - 32px));
  margin: 0 auto;
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(6, 17, 31, 0.74);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.topbar-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}
.brand-badge {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #221200;
  font-weight: 700;
  background:
    linear-gradient(
      135deg,
      var(--amber),
      var(--amber-deep));
  box-shadow: 0 14px 24px rgba(255, 140, 62, 0.22);
}
.brand-wordmark {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.brand-wordmark strong {
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.brand-wordmark span {
  color: var(--muted);
  font-size: 12px;
}
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.muted-pill,
.meta-chip,
.chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  gap: 8px;
  background: rgba(255, 255, 255, 0.03);
}
.chip-link {
  text-decoration: none;
}
.shell {
  padding: 42px 0 84px;
}
.intro-band {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.meta-strip {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 18px;
  margin-bottom: 18px;
}
.hero-copy,
.hero-stats,
.panel {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 28px;
  padding: 24px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.hero-copy {
  position: relative;
  overflow: hidden;
}
.hero-copy::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      120deg,
      rgba(255, 180, 102, 0.12),
      transparent 40%),
    radial-gradient(
      circle at 92% 12%,
      rgba(138, 199, 255, 0.18),
      transparent 28%);
  pointer-events: none;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--amber);
  font-size: 11px;
  margin: 0 0 12px;
}
h1,
h2 {
  margin: 0;
  font-family: var(--serif);
  line-height: 0.95;
}
h1 {
  max-width: 14ch;
  font-size: clamp(2.6rem, 6vw, 4.8rem);
}
h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}
.lede,
.panel-head p,
.helper,
.plan-card small,
.job-head small,
.account-card small,
.key-card small,
.stat-card small,
.preview-card small {
  color: var(--muted);
  line-height: 1.65;
}
.hero-stats {
  display: grid;
  gap: 14px;
}
.stat-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.02);
}
.stat-card span,
.key-card span {
  display: block;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 8px;
}
.stat-card strong,
.key-card strong,
.plan-card strong {
  display: block;
  font-size: 1.8rem;
  margin-bottom: 4px;
}
.notice {
  margin-bottom: 18px;
  padding: 14px 18px;
  border-radius: 20px;
  border: 1px solid transparent;
}
.notice-success {
  background: rgba(120, 239, 181, 0.1);
  border-color: rgba(120, 239, 181, 0.18);
  color: var(--green);
}
.notice-warning {
  background: rgba(255, 180, 102, 0.1);
  border-color: rgba(255, 180, 102, 0.18);
  color: var(--amber);
}
.notice-danger {
  background: rgba(255, 140, 140, 0.1);
  border-color: rgba(255, 140, 140, 0.2);
  color: var(--red);
}
.panel-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.band-left,
.band-right,
.action-row,
.job-actions,
.compact {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.field-label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
}
select {
  min-width: 260px;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: rgba(7, 17, 31, 0.94);
  color: var(--text);
  padding: 10px 12px;
  font: inherit;
}
.dashboard-grid,
.signed-out-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
}
.panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.span-4 {
  grid-column: span 4;
}
.span-5 {
  grid-column: span 5;
}
.span-6 {
  grid-column: span 6;
}
.span-7 {
  grid-column: span 7;
}
.span-8 {
  grid-column: span 8;
}
.panel-head {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.checklist,
.plan-grid,
.preview-grid {
  display: grid;
  gap: 12px;
}
.plan-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.check-item,
.plan-card,
.preview-card,
.account-card,
.job-card,
.key-card,
.secret-panel {
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  padding: 16px;
}
.check-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.check-item strong {
  font-size: 15px;
}
.check-badge,
.plan-pill,
.job-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  border: 1px solid var(--line);
}
.check-item.is-complete .check-badge {
  color: var(--green);
  border-color: rgba(120, 239, 181, 0.22);
  background: rgba(120, 239, 181, 0.1);
}
.plan-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.plan-card.is-current {
  background:
    linear-gradient(
      180deg,
      rgba(255, 180, 102, 0.14),
      rgba(255, 255, 255, 0.03));
  border-color: rgba(255, 180, 102, 0.24);
}
.action {
  appearance: none;
  border: 0;
  border-radius: 14px;
  padding: 11px 15px;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  transition:
    transform 0.18s ease,
    opacity 0.18s ease,
    border-color 0.18s ease;
}
.action:hover:not(:disabled) {
  transform: translateY(-1px);
}
.action:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}
.action-primary {
  color: #261300;
  background:
    linear-gradient(
      135deg,
      var(--amber),
      var(--amber-deep));
}
.action-soft {
  color: var(--blue);
  border: 1px solid rgba(138, 199, 255, 0.18);
  background: rgba(138, 199, 255, 0.08);
}
.action-ghost {
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: transparent;
}
.key-stack,
.account-list,
.job-list {
  display: grid;
  gap: 12px;
}
.mini-table {
  display: grid;
  gap: 10px;
}
.mini-row,
.job-meta,
.metric-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
}
.secret-value,
.snippet {
  font-family: var(--mono);
  background: var(--bg-ink);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 14px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
}
.account-card,
.job-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.job-card {
  display: grid;
  gap: 12px;
}
.status-processing {
  color: var(--blue);
  background: rgba(138, 199, 255, 0.08);
}
.status-publish_complete {
  color: var(--green);
  background: rgba(120, 239, 181, 0.08);
}
.status-failed {
  color: var(--red);
  background: rgba(255, 140, 140, 0.08);
}
.status-queued,
.status-send_to_user_inbox {
  color: var(--amber);
  background: rgba(255, 180, 102, 0.08);
}
.empty-state {
  padding: 18px;
  border-radius: 20px;
  border: 1px dashed var(--line-strong);
  color: var(--muted);
}
.sign-in-shell,
.preview-shell {
  grid-column: span 6;
}
.sign-in-slot {
  min-height: 560px;
}
.preview-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.loading-shell,
.config-shell {
  max-width: 780px;
  margin: 32px auto 0;
}
.loading-bar {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}
.loading-bar span {
  display: block;
  height: 100%;
  width: 32%;
  border-radius: inherit;
  background:
    linear-gradient(
      135deg,
      var(--amber),
      var(--blue));
  animation: loading 1.6s ease-in-out infinite;
}
@keyframes loading {
  0% {
    transform: translateX(-110%);
  }
  100% {
    transform: translateX(320%);
  }
}
@media (max-width: 980px) {
  .hero-grid,
  .plan-grid {
    grid-template-columns: 1fr;
  }
  .span-4,
  .span-5,
  .span-6,
  .span-7,
  .span-8,
  .sign-in-shell,
  .preview-shell {
    grid-column: span 12;
  }
  .mini-row,
  .job-meta,
  .metric-strip {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 720px) {
  .wrap {
    width: min(100vw - 22px, 1200px);
  }
  .topbar-inner,
  .topbar-actions,
  .panel-band,
  .intro-band,
  .account-card,
  .job-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .preview-grid {
    grid-template-columns: 1fr;
  }
  h1 {
    max-width: 100%;
  }
}
