:root {
  color-scheme: dark;
  --bg: #070a0f;
  --bg-2: #0b0f17;
  --bg-3: #10151f;
  --surface: rgba(17, 22, 32, 0.82);
  --surface-strong: rgba(22, 29, 42, 0.94);
  --surface-soft: rgba(255, 255, 255, 0.045);
  --line: rgba(255, 255, 255, 0.11);
  --line-strong: rgba(255, 255, 255, 0.18);
  --text: #f6f7ef;
  --muted: #a5afbd;
  --subtle: #747f90;
  --gold: #f5c542;
  --green: #10b981;
  --cyan: #38bdf8;
  --red: #f05f57;
  --orange: #f5a65b;
  --blue: #6ea8ff;
  --violet: #9c8cff;
  --pink: #ef7fb3;
  --radius-xs: 8px;
  --radius-sm: 8px;
  --radius-md: 8px;
  --radius-lg: 8px;
  --shadow: 0 32px 90px rgba(0, 0, 0, 0.58);
  --shadow-soft: 0 18px 54px rgba(0, 0, 0, 0.36);
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  font-family: var(--font);
  letter-spacing: 0;
  background:
    linear-gradient(135deg, rgba(16, 185, 129, 0.1), transparent 34%),
    linear-gradient(215deg, rgba(245, 197, 66, 0.09), transparent 31%),
    linear-gradient(180deg, rgba(56, 189, 248, 0.035), transparent 42%),
    linear-gradient(145deg, #05070b 0%, #0b0f17 48%, #06110d 100%);
}

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

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

a {
  color: inherit;
}

.app-root {
  min-height: 100vh;
}

.boot-screen,
.locked-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
}

.boot-screen {
  gap: 18px;
  align-content: center;
}

.boot-mark {
  width: 58px;
  height: 58px;
  border-radius: 8px;
  border: 1px solid rgba(217, 182, 109, 0.42);
  background:
    linear-gradient(145deg, rgba(217, 182, 109, 0.22), transparent),
    rgba(255, 255, 255, 0.045);
  box-shadow: 0 0 44px rgba(217, 182, 109, 0.18);
  animation: pulse 1.6s ease-in-out infinite;
}

.app-icon-mark {
  object-fit: cover;
  background: #070a0f;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.78; }
  50% { transform: scale(1.06); opacity: 1; }
}

.locked-screen {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(135deg, rgba(16, 185, 129, 0.12), transparent 36%),
    linear-gradient(215deg, rgba(245, 197, 66, 0.11), transparent 34%),
    #05070b;
  background-size: 46px 46px, 46px 46px, auto, auto, auto;
}

.locked-card {
  width: min(620px, 100%);
  padding: clamp(28px, 6vw, 48px);
  border: 1px solid rgba(245, 197, 66, 0.28);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(155deg, rgba(245, 197, 66, 0.12), rgba(56, 189, 248, 0.04) 48%, rgba(16, 185, 129, 0.08)),
    rgba(5, 8, 13, 0.9);
  box-shadow: var(--shadow), 0 0 70px rgba(16, 185, 129, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  overflow: hidden;
  position: relative;
  text-align: center;
  backdrop-filter: blur(22px);
}

.locked-card::before,
.shell::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent 72%);
}

.locked-card::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07), inset 0 -22px 70px rgba(0, 0, 0, 0.24);
}

.locked-orbit {
  position: absolute;
  inset: 22px;
  border: 1px solid rgba(245, 197, 66, 0.16);
  border-radius: inherit;
  pointer-events: none;
}

.locked-logo {
  width: clamp(104px, 22vw, 148px);
  height: clamp(104px, 22vw, 148px);
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(245, 197, 66, 0.36);
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.42), 0 0 42px rgba(16, 185, 129, 0.18);
  margin-bottom: 22px;
  position: relative;
  z-index: 1;
}

.locked-card > *:not(.locked-orbit) {
  position: relative;
  z-index: 1;
}

.brand-kicker {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.locked-title {
  margin: 12px 0 4px;
  font-size: clamp(3rem, 10vw, 5.9rem);
  line-height: 0.92;
  font-weight: 900;
  letter-spacing: 0;
}

.locked-system {
  margin: 12px 0 0;
  color: var(--text);
  font-size: clamp(1.08rem, 3vw, 1.45rem);
  font-weight: 850;
}

.locked-identity {
  margin: 6px 0 22px;
  color: var(--gold);
  font-size: 1.08rem;
  font-weight: 900;
}

.locked-subtitle {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

.locked-sync {
  margin: 16px 0 0;
  color: var(--subtle);
  font-size: 0.88rem;
}

.auth-message,
.sync-message,
.empty-state {
  color: var(--muted);
  line-height: 1.55;
}

.auth-message.error {
  color: #ffaaa5;
}

.button-row,
.inline-actions,
.chip-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.btn {
  border: 0;
  border-radius: 999px;
  min-height: 46px;
  padding: 0 18px;
  color: var(--text);
  font-weight: 800;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

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

.btn.primary {
  color: #08100c;
  background: linear-gradient(135deg, var(--green), var(--gold));
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 14px 34px rgba(16, 185, 129, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.btn.danger {
  color: #07100c;
  background: linear-gradient(135deg, var(--gold), var(--green));
  border-color: rgba(245, 197, 66, 0.32);
  box-shadow: 0 14px 34px rgba(245, 197, 66, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn.ghost {
  background: transparent;
}

.btn.block {
  width: 100%;
}

.btn.icon-only {
  width: 46px;
  padding: 0;
}

.shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  position: relative;
  background:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.016) 1px, transparent 1px);
  background-size: 52px 52px;
}

.sidebar {
  min-height: 100vh;
  padding: 24px 18px;
  border-right: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(7, 10, 15, 0.9), rgba(5, 8, 13, 0.72));
  backdrop-filter: blur(18px);
  position: sticky;
  top: 0;
  align-self: start;
  z-index: 3;
}

.side-brand {
  display: grid;
  gap: 8px;
  padding: 12px 10px 22px;
}

.brand-emblem {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(245, 197, 66, 0.3);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.36), 0 0 28px rgba(16, 185, 129, 0.14);
}

.side-brand strong {
  font-size: 1.08rem;
  line-height: 1.1;
}

.side-brand span {
  color: var(--muted);
  font-size: 0.85rem;
}

.nav-list {
  display: grid;
  gap: 8px;
}

.nav-btn,
.mobile-nav button {
  min-height: 48px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: var(--muted);
  background: transparent;
  display: grid;
  grid-template-columns: 26px 1fr;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  text-align: left;
  font-weight: 800;
}

.nav-btn:hover,
.nav-btn.active {
  color: var(--text);
  border-color: rgba(245, 197, 66, 0.22);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(245, 197, 66, 0.06));
}

.nav-icon {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 900;
}

.sidebar-footer {
  margin-top: 28px;
  padding: 14px 10px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 12px;
}

.sidebar-footer small {
  color: var(--subtle);
  line-height: 1.45;
}

.main-area {
  min-width: 0;
  display: grid;
  grid-template-rows: auto 1fr;
}

.topbar {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px clamp(18px, 4vw, 42px);
  border-bottom: 1px solid var(--line);
  background: rgba(5, 8, 13, 0.68);
  backdrop-filter: blur(18px);
  position: sticky;
  top: 0;
  z-index: 2;
}

.topbar-title {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.topbar-icon {
  width: 46px;
  height: 46px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(245, 197, 66, 0.26);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
  flex: 0 0 auto;
}

.topbar h1 {
  margin: 0;
  font-size: 1.28rem;
}

.topbar-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 0.86rem;
}

.content {
  width: min(1240px, 100%);
  margin: 0 auto;
  padding: 28px clamp(16px, 4vw, 42px) 108px;
}

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

.grid {
  display: grid;
  gap: 16px;
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.module,
.card,
.stat-card,
.rock-card,
.proof-card,
.achievement-card,
.phase-card,
.identity-card,
.modal-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.092), rgba(255, 255, 255, 0.028)),
    rgba(8, 12, 18, 0.84);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
}

.module {
  padding: clamp(18px, 3vw, 28px);
}

.module.flat {
  box-shadow: none;
  background: rgba(255, 255, 255, 0.035);
}

.hero-command {
  min-height: 320px;
  display: grid;
  align-content: end;
  gap: 18px;
  overflow: hidden;
  position: relative;
  border-color: rgba(217, 182, 109, 0.28);
  background:
    linear-gradient(155deg, rgba(245, 197, 66, 0.18), transparent 48%),
    linear-gradient(25deg, rgba(16, 185, 129, 0.16), transparent 54%),
    linear-gradient(180deg, rgba(56, 189, 248, 0.06), transparent 52%),
    rgba(5, 8, 13, 0.93);
}

.hero-command::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 6px;
  background: linear-gradient(90deg, var(--green), var(--gold), var(--cyan));
}

.hero-command > * {
  position: relative;
  z-index: 1;
}

.command-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
  gap: 18px;
  align-items: start;
}

.command-main,
.command-rail {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.command-rail {
  position: sticky;
  top: 88px;
}

.campaign-status-card {
  border-color: rgba(89, 213, 150, 0.24);
  background:
    linear-gradient(155deg, rgba(89, 213, 150, 0.12), rgba(88, 199, 232, 0.045)),
    rgba(10, 14, 21, 0.9);
}

.identity-install-card {
  padding: clamp(16px, 3vw, 24px);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  border-color: color-mix(in srgb, var(--rock-color, var(--gold)) 32%, rgba(255, 255, 255, 0.12));
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--rock-color, var(--gold)) 12%, transparent), rgba(255, 255, 255, 0.025)),
    rgba(6, 10, 15, 0.9);
  box-shadow: 0 18px 54px color-mix(in srgb, var(--rock-color, var(--gold)) 12%, transparent), var(--shadow-soft);
}

.daily-install-card {
  border-color: rgba(245, 197, 66, 0.3);
}

.return-install-card {
  margin-bottom: 14px;
}

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

.install-grid p {
  display: grid;
  gap: 4px;
  min-height: 78px;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.045);
}

.install-grid strong {
  color: var(--gold);
  font-size: 0.76rem;
  text-transform: uppercase;
}

.install-grid span {
  color: var(--text);
  line-height: 1.45;
}

.compact-install {
  grid-template-columns: 1fr;
}

.command-doctrine,
.evidence-hero,
.phase-evidence,
.root-identity-card {
  border-color: rgba(217, 182, 109, 0.26);
}

.standard-hero {
  border-color: rgba(89, 213, 150, 0.32);
  background:
    linear-gradient(155deg, rgba(89, 213, 150, 0.16), transparent 48%),
    linear-gradient(25deg, rgba(88, 199, 232, 0.12), transparent 54%),
    rgba(8, 11, 17, 0.92);
}

.root-identity-card {
  min-height: 280px;
  background:
    linear-gradient(145deg, rgba(217, 182, 109, 0.16), rgba(89, 213, 150, 0.08)),
    rgba(9, 13, 19, 0.94);
}

.root-identity-card h2 {
  font-size: 2.4rem;
}

.compact-stats {
  gap: 10px;
}

.compact-stats .stat-card {
  min-height: 96px;
  padding: 14px;
}

.compact-stats .stat-value {
  font-size: 1.65rem;
}

.return-rail,
.store-proof-btn {
  min-height: 58px;
  box-shadow: 0 16px 34px rgba(217, 182, 109, 0.14), 0 0 24px rgba(89, 213, 150, 0.08);
}

.hero-title {
  max-width: 900px;
  margin: 0;
  font-size: 4.8rem;
  line-height: 0.92;
  font-weight: 950;
  letter-spacing: 0;
}

.hero-identity {
  margin: -6px 0 0;
  color: var(--gold);
  font-size: clamp(1.15rem, 3vw, 1.65rem);
  font-weight: 900;
}

.hero-copy {
  max-width: 760px;
  margin: 0;
  color: #d7ddda;
  font-size: 1.16rem;
  line-height: 1.6;
}

.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.section-head h2,
.section-head h3,
.module h2,
.module h3 {
  margin: 0;
  letter-spacing: 0;
}

.section-head p,
.module p {
  color: var(--muted);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

.muted {
  color: var(--muted);
}

.subtle {
  color: var(--subtle);
}

.quote-line {
  margin: 0;
  color: var(--text);
  font-size: 1.12rem;
  line-height: 1.55;
}

.progress {
  width: 100%;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  overflow: hidden;
}

.progress > span {
  display: block;
  height: 100%;
  width: var(--value, 0%);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--gold));
}

.progress.glow {
  height: 14px;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04), 0 0 30px rgba(89, 213, 150, 0.08);
}

.progress.glow > span {
  background: linear-gradient(90deg, var(--green), var(--cyan), var(--gold));
  box-shadow: 0 0 24px rgba(89, 213, 150, 0.32);
}

.stat-card {
  padding: 18px;
  min-height: 118px;
  display: grid;
  align-content: space-between;
  gap: 12px;
}

.stat-value {
  font-size: 2.35rem;
  font-weight: 950;
  overflow-wrap: anywhere;
}

.stat-label {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

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

.rock-card,
.identity-card,
.phase-card,
.proof-card,
.achievement-card {
  padding: 16px;
  min-width: 0;
}

.rock-card {
  min-height: 214px;
  display: grid;
  align-content: space-between;
  gap: 12px;
  border-color: color-mix(in srgb, var(--rock-color, var(--gold)) 36%, rgba(255,255,255,0.1));
  box-shadow: 0 12px 34px color-mix(in srgb, var(--rock-color, var(--gold)) 12%, transparent);
}

.rock-card h3,
.identity-card h3,
.phase-card h3 {
  margin: 0;
  font-size: 1.08rem;
}

.rock-card p,
.identity-card p,
.phase-card p,
.proof-card p,
.achievement-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.48;
}

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

.rock-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #08100c;
  background: var(--rock-color, var(--gold));
  font-weight: 950;
}

.chip,
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  border-radius: 999px;
  padding: 0 10px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line);
  font-size: 0.8rem;
  font-weight: 800;
  white-space: nowrap;
}

.chip.gold {
  color: var(--gold);
  border-color: rgba(217, 182, 109, 0.35);
}

.chip.green {
  color: var(--green);
  border-color: rgba(89, 213, 150, 0.35);
}

.chip.red {
  color: #ffaaa5;
  border-color: rgba(240, 95, 87, 0.38);
}

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

.segmented button,
.rock-picker button {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.055);
  min-height: 40px;
  padding: 0 13px;
  font-weight: 800;
}

.segmented button.active,
.rock-picker button.active {
  color: #07100c;
  background: linear-gradient(135deg, var(--green), var(--gold));
}

.rock-picker {
  display: flex;
  overflow-x: auto;
  gap: 8px;
  padding-bottom: 4px;
  scrollbar-width: thin;
}

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

.field-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

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

.field .sub-label {
  margin-top: 8px;
  font-size: 0.78rem;
}

.input,
.textarea,
.select {
  width: 100%;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  min-height: 48px;
  padding: 12px 14px;
  outline: none;
}

.textarea {
  min-height: 128px;
  resize: vertical;
  line-height: 1.5;
}

.textarea.compact {
  min-height: 76px;
}

.input:focus,
.textarea:focus,
.select:focus {
  border-color: rgba(89, 213, 150, 0.55);
  box-shadow: 0 0 0 4px rgba(89, 213, 150, 0.1);
}

.voice-btn {
  min-height: 32px;
  padding: 0 12px;
  font-size: 0.72rem;
  letter-spacing: 0;
}

.voice-btn.listening {
  color: #08100c;
  background: linear-gradient(135deg, var(--cyan), var(--green));
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 0 24px rgba(88, 199, 232, 0.18);
}

.notification-card {
  border-color: rgba(56, 189, 248, 0.18);
  background:
    linear-gradient(155deg, rgba(56, 189, 248, 0.08), rgba(16, 185, 129, 0.045)),
    rgba(255, 255, 255, 0.035);
}

.compact-head {
  margin-bottom: 10px;
}

.settings-stack {
  display: grid;
  gap: 9px;
  margin-bottom: 10px;
}

.toggle-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.045);
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.toggle-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--green);
}

.update-banner {
  position: fixed;
  left: 50%;
  bottom: max(18px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 30;
  width: min(620px, calc(100vw - 28px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px 12px 16px;
  border: 1px solid rgba(245, 197, 66, 0.3);
  border-radius: var(--radius-md);
  background:
    linear-gradient(135deg, rgba(245, 197, 66, 0.12), rgba(16, 185, 129, 0.08)),
    rgba(5, 8, 13, 0.94);
  box-shadow: var(--shadow-soft), 0 0 44px rgba(16, 185, 129, 0.14);
  backdrop-filter: blur(18px);
}

.update-banner div {
  display: grid;
  gap: 2px;
}

.update-banner span {
  color: var(--muted);
  font-size: 0.86rem;
}

.notification-examples {
  margin: 10px 0;
}

.campaign-simulator {
  border-color: rgba(217, 182, 109, 0.25);
  background:
    linear-gradient(155deg, rgba(217, 182, 109, 0.09), rgba(88, 199, 232, 0.045)),
    rgba(12, 16, 24, 0.86);
}

.simulator-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.simulator-controls label {
  color: var(--muted);
  font-weight: 850;
}

.day-input {
  width: 128px;
}

.preview-day-buttons {
  flex: 1;
  min-width: min(420px, 100%);
}

.preview-day-buttons .btn {
  min-height: 36px;
  padding: 0 12px;
}

.preview-day-buttons .btn.active {
  color: #08100c;
  background: linear-gradient(135deg, var(--gold), var(--green));
}

.simulator-grid .module.flat {
  min-height: 100%;
}

.proof-preview {
  border-left: 4px solid var(--green);
  padding: 14px 16px;
  background: rgba(89, 213, 150, 0.075);
  border-radius: var(--radius-sm);
  color: #dffbec;
  line-height: 1.55;
}

.proof-preview.elevated {
  margin-top: 14px;
  margin-bottom: 14px;
  border-left-color: var(--gold);
  background:
    linear-gradient(90deg, rgba(217, 182, 109, 0.12), rgba(89, 213, 150, 0.08)),
    rgba(255, 255, 255, 0.035);
  box-shadow: inset 0 0 0 1px rgba(217, 182, 109, 0.12);
}

.evidence-wall {
  display: grid;
  gap: 12px;
}

.proof-card {
  display: grid;
  gap: 10px;
  border-left: 4px solid var(--rock-color, var(--gold));
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--rock-color, var(--gold)) 11%, transparent), rgba(255, 255, 255, 0.025)),
    rgba(10, 14, 21, 0.88);
}

.proof-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.proof-card blockquote {
  margin: 0;
  color: #f6f7ef;
  font-size: 1rem;
  line-height: 1.55;
}

.identity-reinforcement {
  color: var(--gold) !important;
  font-weight: 900;
}

.delete-link {
  border: 0;
  color: #ffaaa5;
  background: transparent;
  font-weight: 800;
}

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

.achievement-card {
  min-height: 150px;
  display: grid;
  gap: 10px;
  align-content: start;
  position: relative;
  overflow: hidden;
}

.achievement-card::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--green), var(--cyan));
  opacity: 0.7;
}

.achievement-card.locked {
  opacity: 0.58;
}

.achievement-card.locked::after {
  opacity: 0.16;
}

.phase-map {
  display: grid;
  grid-template-columns: repeat(30, 1fr);
  gap: 5px;
}

.day-dot {
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.day-dot.done {
  background: var(--green);
}

.day-dot.current {
  background: var(--gold);
  box-shadow: 0 0 16px rgba(217, 182, 109, 0.42);
}

.day-dot.future {
  opacity: 0.34;
}

.phase-card.current {
  border-color: rgba(217, 182, 109, 0.42);
  box-shadow: 0 18px 46px rgba(217, 182, 109, 0.12);
}

.phase-card:not(.current) {
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.052), rgba(255, 255, 255, 0.018)),
    rgba(10, 14, 21, 0.76);
}

.phase-card.completed {
  border-color: rgba(89, 213, 150, 0.26);
}

.phase-card.locked {
  opacity: 0.62;
}

.identity-card {
  min-height: 270px;
  display: grid;
  gap: 12px;
  align-content: start;
  border-top: 4px solid var(--rock-color, var(--gold));
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--rock-color, var(--gold)) 13%, transparent), rgba(255, 255, 255, 0.026)),
    rgba(10, 14, 21, 0.88);
}

.identity-details {
  display: grid;
  gap: 7px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.035);
}

.identity-details p {
  display: grid;
  gap: 2px;
}

.identity-details strong {
  color: var(--text);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

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

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(14px);
}

.modal-card {
  width: min(720px, 100%);
  max-height: min(86vh, 780px);
  overflow: auto;
  padding: 24px;
}

.return-steps {
  display: grid;
  gap: 12px;
  counter-reset: step;
}

.return-step {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.045);
}

.return-step strong {
  color: var(--gold);
}

.toast-region {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 20;
  display: grid;
  gap: 10px;
  width: min(360px, calc(100vw - 36px));
}

.toast {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  color: var(--text);
  background: rgba(13, 18, 28, 0.96);
  box-shadow: var(--shadow-soft);
  line-height: 1.45;
}

.toast.success {
  border-color: rgba(89, 213, 150, 0.36);
}

.toast.error {
  border-color: rgba(240, 95, 87, 0.38);
}

.mobile-nav {
  display: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@media (max-width: 1180px) {
  .command-grid {
    grid-template-columns: 1fr;
  }

  .command-rail {
    position: static;
  }
}

@media (max-width: 1040px) {
  .shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    display: none;
  }

  .topbar {
    top: 0;
  }

  .rock-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid.three,
  .grid.four,
  .achievement-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mobile-nav {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 6;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 4px;
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 8px;
    background: rgba(7, 10, 15, 0.88);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(18px);
  }

  .mobile-nav button {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 3px;
    min-height: 54px;
    padding: 4px 2px;
    border-radius: 16px;
    text-align: center;
    font-size: 0.72rem;
  }

  .mobile-nav button.active {
    color: var(--text);
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--line);
  }

  .mobile-nav .nav-icon {
    width: 26px;
    height: 22px;
    font-size: 0.68rem;
  }
}

@media (max-width: 720px) {
  .locked-card {
    padding: 26px 20px;
  }

  .locked-title {
    font-size: 2.75rem;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px;
  }

  .topbar .button-row {
    width: 100%;
  }

  .topbar .btn {
    flex: 1;
  }

  .content {
    padding: 18px 14px 102px;
  }

  .hero-command {
    min-height: 360px;
  }

  .hero-title {
    font-size: 3.2rem;
  }

  .hero-copy {
    font-size: 1.02rem;
  }

  .root-identity-card h2 {
    font-size: 2rem;
  }

  .grid.two,
  .grid.three,
  .grid.four,
  .rock-grid,
  .achievement-grid,
  .form-grid,
  .install-grid {
    grid-template-columns: 1fr;
  }

  .section-head {
    display: grid;
  }

  .phase-map {
    grid-template-columns: repeat(18, 1fr);
  }

  .btn {
    min-height: 48px;
  }
}

@media (max-width: 420px) {
  .hero-title {
    font-size: 2.4rem;
  }

  .stat-value {
    font-size: 1.9rem;
  }

  .phase-map {
    grid-template-columns: repeat(15, 1fr);
  }
}
