﻿:root {
  color-scheme: dark;
  --bg: #07060b;
  --panel: #121018;
  --panel-soft: #191520;
  --gold: #e8c66a;
  --gold-strong: #ffd978;
  --ink: #f7eddb;
  --muted: #b7a98d;
  --line: rgba(232, 198, 106, 0.28);
  --danger: #f08d8d;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

@keyframes panelIn {
  from {
    opacity: 0;
    transform: translateY(0.7rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(0.9rem) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes cardReveal {
  from {
    opacity: 0;
    transform: rotateY(18deg) scale(0.965);
    filter: brightness(0.75);
  }
  to {
    opacity: 1;
    transform: rotateY(0) scale(1);
    filter: brightness(1);
  }
}

@keyframes softPulse {
  0%, 100% {
    box-shadow: 0 0.55rem 1rem rgba(0, 0, 0, 0.58), 0 0 0 1px rgba(255, 217, 120, 0.28);
  }
  50% {
    box-shadow: 0 0.9rem 1.8rem rgba(0, 0, 0, 0.64), 0 0 1.2rem rgba(255, 217, 120, 0.2);
  }
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 20% 10%, rgba(103, 65, 166, 0.22), transparent 32rem),
    radial-gradient(circle at 78% 18%, rgba(224, 170, 65, 0.2), transparent 28rem),
    linear-gradient(145deg, #030307, #101018 52%, #07060b);
  color: var(--ink);
}

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

button {
  cursor: pointer;
}

.app-shell {
  display: grid;
  grid-template-columns: minmax(18rem, 31rem) minmax(0, 1fr);
  min-height: 100vh;
  width: 100%;
  max-width: 100vw;
}

.brand-panel {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 1.25rem;
  border-right: 1px solid var(--line);
  background: rgba(5, 4, 10, 0.68);
}

.cover-art {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 1px solid var(--line);
  box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.48);
}

.brand-panel picture {
  display: block;
  width: 100%;
  height: 100%;
}

.work-panel {
  padding: clamp(1rem, 3vw, 2.5rem);
  min-width: 0;
  max-width: 100vw;
  animation: panelIn 420ms ease both;
}

.sound-toggle {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 260;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.85rem;
  padding: 0 0.95rem;
  border: 1px solid rgba(232, 198, 106, 0.32);
  border-radius: 999px;
  background: rgba(7, 6, 11, 0.82);
  color: var(--muted);
  box-shadow: 0 0.8rem 1.8rem rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(14px);
  transition: border-color 180ms ease, color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.sound-toggle:hover,
.sound-toggle.is-on {
  border-color: rgba(255, 217, 120, 0.72);
  color: var(--gold-strong);
  box-shadow: 0 0.9rem 2rem rgba(0, 0, 0, 0.42), 0 0 1.2rem rgba(255, 217, 120, 0.12);
}

.sound-toggle:hover {
  transform: translateY(-1px);
}

.sound-toggle svg {
  width: 1.1rem;
  height: 1.1rem;
  stroke-width: 1.9;
}

.sound-toggle span {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.feedback-beta-button {
  position: fixed;
  right: 1.1rem;
  bottom: 4.45rem;
  z-index: 260;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.85rem;
  padding: 0 1rem;
  border: 1px solid rgba(255, 217, 120, 0.42);
  border-radius: 999px;
  background: rgba(18, 16, 24, 0.9);
  color: var(--gold-strong);
  box-shadow: 0 0.8rem 1.8rem rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(14px);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.feedback-beta-button:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 217, 120, 0.82);
  box-shadow: 0 1rem 2.2rem rgba(0, 0, 0, 0.46), 0 0 1.1rem rgba(255, 217, 120, 0.16);
}

.feedback-beta-button svg {
  width: 1.05rem;
  height: 1.05rem;
}

.feedback-beta-button span {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.app-toast {
  position: fixed;
  right: 1.1rem;
  bottom: 7.85rem;
  z-index: 320;
  width: min(22rem, calc(100vw - 2rem));
  padding: 0.9rem 1rem;
  border: 1px solid rgba(255, 217, 120, 0.52);
  background: rgba(12, 10, 16, 0.94);
  color: var(--gold-strong);
  box-shadow: 0 1rem 2.4rem rgba(0, 0, 0, 0.52);
  animation: modalIn 180ms ease both;
}

.app-toast.is-error {
  border-color: rgba(240, 141, 141, 0.62);
  color: #ffd0d0;
}

.login-card {
  width: min(34rem, 100%);
  margin: min(10vh, 6rem) auto;
  padding: clamp(1.25rem, 4vw, 2rem);
  border: 1px solid var(--line);
  background: rgba(18, 16, 24, 0.84);
}

.journey-callout {
  display: grid;
  gap: 0.65rem;
  margin: 1.2rem 0 0.95rem;
  padding: 0.9rem 0 1rem;
  border-block: 1px solid rgba(232, 198, 106, 0.32);
}

.journey-callout strong {
  max-width: 16ch;
  color: var(--gold-strong);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.65rem, 3.4vw, 3rem);
  font-weight: 600;
  line-height: 1.05;
}

.journey-callout p {
  max-width: 31rem;
  margin: 0;
  color: var(--muted);
  font-size: clamp(0.98rem, 1.8vw, 1.08rem);
  line-height: 1.58;
}

.eyebrow {
  margin: 0 0 0.65rem;
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  line-height: 1.05;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 600;
}

h1 {
  font-size: clamp(2rem, 5vw, 4.8rem);
  color: var(--gold-strong);
}

h2 {
  font-size: clamp(1.35rem, 3vw, 2.2rem);
  color: var(--gold-strong);
}

.lead,
.oracle-intro p,
.confirm-modal p {
  color: var(--muted);
  line-height: 1.6;
}

.ritual-steps,
.journey-protocol {
  display: grid;
  gap: 0.55rem;
  margin: 1rem 0 0;
  padding-left: 1.2rem;
  color: var(--ink);
  line-height: 1.5;
}

.ritual-steps li::marker,
.journey-protocol li::marker {
  color: var(--gold-strong);
  font-weight: 700;
}

.form-stack {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.auth-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.35rem;
  margin-top: 1.5rem;
  padding: 0.35rem;
  border: 1px solid var(--line);
  background: rgba(5, 4, 10, 0.72);
}

.auth-switch button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 2.45rem;
  border: 1px solid transparent;
  color: var(--muted);
  background: transparent;
}

.auth-switch button.is-active {
  color: #1d1306;
  background: var(--gold-strong);
  border-color: var(--gold-strong);
  font-weight: 800;
}

.auth-note {
  margin: 1rem 0 0;
  color: var(--muted);
  line-height: 1.55;
}

label {
  display: grid;
  gap: 0.45rem;
  color: var(--muted);
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #09070d;
  color: var(--ink);
  padding: 0.85rem 0.95rem;
  outline: none;
}

select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%);
  background-position: calc(100% - 1.05rem) 50%, calc(100% - 0.72rem) 50%;
  background-size: 0.38rem 0.38rem, 0.38rem 0.38rem;
  background-repeat: no-repeat;
  padding-right: 2.25rem;
}

textarea {
  resize: vertical;
  min-height: 9rem;
  line-height: 1.55;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--gold);
}

.password-field {
  position: relative;
  display: block;
}

.password-field input {
  padding-right: 3.1rem;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 0.42rem;
  width: 2.25rem;
  min-height: 2.25rem;
  padding: 0;
  border-color: transparent;
  background: transparent;
  color: var(--muted);
  transform: translateY(-50%);
}

.password-toggle:hover {
  color: var(--gold-strong);
  border-color: rgba(255, 224, 140, 0.26);
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-50%);
  box-shadow: none;
}

.auth-actions {
  display: flex;
  justify-content: flex-end;
  min-height: 1.8rem;
}

.text-button {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--gold);
  font-size: 0.9rem;
  font-weight: 700;
}

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

.text-button svg {
  width: 0.95rem;
  height: 0.95rem;
}

.primary-button,
.ghost-button,
.danger-button,
.icon-button,
.demo-access button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.75rem;
  border: 1px solid var(--line);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.04);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.primary-button svg,
.ghost-button svg,
.danger-button svg,
.icon-button svg,
.demo-access button svg,
.admin-tabs button svg {
  width: 1.05rem;
  height: 1.05rem;
  flex: 0 0 auto;
}

.primary-button:hover,
.ghost-button:hover,
.danger-button:hover,
.demo-access button:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 224, 140, 0.56);
  box-shadow: 0 0.65rem 1.4rem rgba(0, 0, 0, 0.22);
}

button:disabled,
input:disabled {
  cursor: wait;
  opacity: 0.68;
}

.primary-button.is-loading {
  animation: softPulse 1.1s ease-in-out infinite;
}

.primary-button {
  background: linear-gradient(135deg, #c99535, #ffe08c);
  color: #1d1306;
  font-weight: 800;
  border-color: rgba(255, 224, 140, 0.8);
}

.ghost-button,
.danger-button,
.demo-access button {
  padding: 0.65rem 1rem;
}

.danger-button {
  border-color: rgba(240, 141, 141, 0.5);
  color: #ffd0d0;
  background: rgba(128, 30, 30, 0.22);
}

.icon-button {
  width: 2.75rem;
  font-size: 1.6rem;
  padding: 0;
}

.button-row,
.demo-access,
.topbar nav {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
}

.demo-access {
  margin-top: 1rem;
}

.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.oracle-intro,
.admin-controls,
.notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 1rem;
  border: 1px solid var(--line);
  background: rgba(18, 16, 24, 0.72);
}

.oracle-intro p {
  margin: 0;
}

.oracle-intro span,
.notice {
  color: var(--gold);
}

.oracle-room {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 34rem;
  max-height: calc(100vh - 10rem);
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(4, 3, 8, 0.06), rgba(5, 4, 8, 0.2)),
    url("../public/assets/system/table-bg.webp") center / cover no-repeat,
    #050409;
  box-shadow: inset 0 0 3rem rgba(0, 0, 0, 0.64), 0 1.4rem 4rem rgba(0, 0, 0, 0.42);
}

.oracle-room::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, transparent 34%, rgba(0, 0, 0, 0.28) 100%);
  pointer-events: none;
}

.deck-spread {
  position: absolute;
  inset: 0;
}

.card-back {
  position: absolute;
  left: var(--x);
  top: var(--y);
  z-index: var(--z);
  display: grid;
  place-items: center;
  gap: 0.4rem;
  width: clamp(3.2rem, 5.1vw, 5.6rem);
  aspect-ratio: 7 / 11;
  border: 0;
  border-radius: 0.42rem;
  background: url("../public/assets/system/card-back.webp") center / cover no-repeat;
  box-shadow: 0 0.55rem 1rem rgba(0, 0, 0, 0.58), 0 0 0 1px rgba(255, 217, 120, 0.28);
  transform: translate(-50%, -50%) rotate(var(--rot));
  transform-origin: 50% 76%;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
  animation: softPulse 5.6s ease-in-out infinite;
  will-change: transform;
}

.card-back::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(120deg, transparent 20%, rgba(255, 255, 255, 0.18), transparent 44%);
  opacity: 0;
  transform: translateX(-35%);
  transition: opacity 160ms ease, transform 240ms ease;
  pointer-events: none;
}

.card-back:hover {
  z-index: 80;
  transform: translate(-50%, -58%) rotate(var(--rot)) scale(1.07);
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.68), 0 0 1rem rgba(255, 217, 120, 0.28);
}

.card-back:hover::after {
  opacity: 1;
  transform: translateX(35%);
}

.is-blocked {
  opacity: 0.45;
  pointer-events: none;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.78);
}

.guide-layer {
  z-index: 210;
}

.reveal-layer {
  z-index: 240;
  padding: 0.75rem;
}

.feedback-layer {
  z-index: 300;
}

.confirm-modal,
.reveal-modal {
  width: min(38rem, 100%);
  border: 1px solid var(--line);
  background: #111018;
  padding: clamp(1.25rem, 4vw, 2rem);
  box-shadow: 0 2rem 5rem rgba(0, 0, 0, 0.65);
  animation: modalIn 260ms ease both;
}

.modal-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.modal-heading h2 {
  margin: 0.1rem 0 0;
}

.feedback-modal p {
  color: var(--muted);
  line-height: 1.55;
}

.feedback-context-note {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  padding: 0.8rem;
  border: 1px solid rgba(232, 198, 106, 0.18);
  background: rgba(5, 4, 10, 0.55);
  color: var(--muted);
  line-height: 1.45;
}

.feedback-context-note svg {
  width: 1.1rem;
  height: 1.1rem;
  flex: 0 0 auto;
  color: var(--gold);
}

.reveal-modal {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: min(100rem, 100%);
  height: min(96vh, 62rem);
  overflow: hidden;
  padding: clamp(0.8rem, 2vw, 1.25rem);
}

.reveal-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: start;
  margin-bottom: 0.75rem;
}

.reveal-toolbar {
  display: flex;
  gap: 0.45rem;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.reveal-toolbar span {
  min-width: 3.2rem;
  color: var(--gold-strong);
  font-size: 0.9rem;
  text-align: center;
}

.reveal-viewer {
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--line);
  background: #050407;
}

.reveal-guidance {
  display: grid;
  gap: 0.35rem;
  margin: 0.75rem 0;
  padding: 0.8rem 0;
  border-block: 1px solid rgba(232, 198, 106, 0.22);
}

.reveal-guidance strong {
  color: var(--gold-strong);
}

.reveal-guidance p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.reveal-zoom-frame {
  display: grid;
  place-items: start center;
  width: max(100%, calc(100% * var(--reveal-zoom)));
  min-height: 100%;
  padding: clamp(0.35rem, 1vw, 0.75rem);
}

.revealed-image {
  display: block;
  width: 100%;
  max-width: calc(88rem * var(--reveal-zoom));
  max-height: none;
  object-fit: contain;
  animation: cardReveal 520ms ease both;
  transform-origin: center center;
}

.history-list,
.reading-feed {
  display: grid;
  gap: 1rem;
}

.history-item,
.reading-feed article,
.admin-stats article {
  border: 1px solid var(--line);
  background: rgba(18, 16, 24, 0.72);
}

.history-item {
  display: grid;
  grid-template-columns: 12rem 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
}

.history-item img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.admin-tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  padding: 0.5rem;
  border: 1px solid var(--line);
  background: rgba(5, 4, 10, 0.58);
}

.admin-tabs button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.6rem;
  padding: 0.55rem 1rem;
  border: 1px solid transparent;
  color: var(--muted);
  background: transparent;
  transition: background 160ms ease, transform 160ms ease, border-color 160ms ease;
}

.admin-tabs button:hover {
  transform: translateY(-1px);
  border-color: rgba(232, 198, 106, 0.24);
  background: rgba(255, 255, 255, 0.04);
}

.admin-tabs button.is-active {
  color: #1d1306;
  background: var(--gold-strong);
  border-color: var(--gold-strong);
  font-weight: 800;
}

.admin-content {
  display: grid;
  gap: 1rem;
}

.admin-stats article {
  display: grid;
  gap: 0.3rem;
  padding: 1rem;
}

.admin-stats strong {
  color: var(--gold-strong);
  font-size: 2rem;
}

.admin-stats span,
.reading-feed small,
.empty-state {
  color: var(--muted);
}

.feedback-admin,
.shared-entries-admin {
  display: grid;
  gap: 1rem;
}

.feedback-status-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.feedback-status-strip article,
.feedback-card,
.shared-entry-card {
  border: 1px solid var(--line);
  background: rgba(18, 16, 24, 0.72);
}

.feedback-status-strip article {
  display: grid;
  gap: 0.2rem;
  padding: 0.9rem;
}

.feedback-status-strip strong {
  color: var(--gold-strong);
  font-size: 1.65rem;
}

.feedback-status-strip span {
  color: var(--muted);
}

.feedback-list,
.shared-entry-list {
  display: grid;
  gap: 1rem;
}

.feedback-card,
.shared-entry-card {
  display: grid;
  gap: 0.9rem;
  padding: 1rem;
}

.feedback-card header,
.shared-entry-card header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(11rem, 14rem);
  gap: 1rem;
  align-items: start;
}

.feedback-card h3,
.shared-entry-card h3 {
  margin: 0.15rem 0 0.25rem;
}

.feedback-card small,
.feedback-card p,
.shared-entry-card small,
.shared-entry-card p {
  color: var(--muted);
}

.feedback-card p,
.shared-entry-card p {
  margin: 0;
  line-height: 1.6;
}

.shared-entry-card p {
  color: var(--ink);
  font-size: 1.02rem;
}

.shared-entry-card-meta {
  display: grid;
  gap: 0.2rem;
  justify-items: end;
  padding: 0.75rem;
  border: 1px solid rgba(232, 198, 106, 0.14);
  background: rgba(5, 4, 10, 0.36);
  text-align: right;
}

.shared-entry-card-meta span {
  color: var(--gold-strong);
  font-weight: 800;
}

.feedback-context {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  margin: 0;
}

.feedback-context div {
  padding: 0.7rem;
  border: 1px solid rgba(232, 198, 106, 0.14);
  background: rgba(5, 4, 10, 0.36);
}

.feedback-context dt {
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.feedback-context dd {
  margin: 0.22rem 0 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(18rem, 0.65fr);
  gap: 1rem;
}

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

.admin-summary-panel {
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
  border: 1px solid var(--line);
  background: rgba(18, 16, 24, 0.72);
  animation: panelIn 360ms ease both;
}

.admin-summary-panel p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.admin-users {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
  margin-bottom: 0.75rem;
}

.section-heading span {
  color: var(--muted);
}

.admin-client-form,
.profile-panel {
  display: grid;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--line);
  background: rgba(18, 16, 24, 0.72);
}

.admin-client-form {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: end;
}

.admin-client-form.compact {
  grid-template-columns: minmax(16rem, 1fr) auto;
  padding: 0.75rem 1rem;
  background: rgba(9, 8, 14, 0.58);
}

.admin-client-form.inline {
  width: 100%;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  padding: 0;
  border: 0;
  background: transparent;
}

.user-list {
  display: grid;
  gap: 0.75rem;
}

.user-list article {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  border: 1px solid var(--line);
  background: rgba(18, 16, 24, 0.72);
}

.user-list article.is-editing {
  display: block;
}

.user-list div {
  display: grid;
  gap: 0.2rem;
}

.user-list strong {
  color: var(--gold-strong);
}

.user-list span,
.user-list small {
  color: var(--muted);
}

.client-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
}

.table-wrap {
  max-height: 60vh;
  overflow: auto;
  border: 1px solid var(--line);
}

table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(18, 16, 24, 0.72);
}

th,
td {
  padding: 0.7rem;
  border-bottom: 1px solid rgba(232, 198, 106, 0.14);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--gold);
  position: sticky;
  top: 0;
  background: #15121c;
}

.reading-feed article {
  display: grid;
  gap: 0.25rem;
  padding: 1rem;
}

.reading-feed.spacious {
  margin-top: 0.75rem;
}

.toggle {
  display: flex;
  grid-template-columns: auto 1fr;
  align-items: center;
}

.toggle input {
  width: 1.2rem;
}

.form-error {
  color: var(--danger);
  margin: 0;
}

.form-success {
  color: var(--gold-strong);
  margin: 0;
}

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

  .brand-panel {
    position: relative;
    height: 32vh;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .topbar,
  .oracle-intro,
  .admin-controls {
    align-items: stretch;
    flex-direction: column;
  }

  .history-item,
  .admin-grid,
  .admin-stats,
  .admin-overview-grid,
  .feedback-status-strip,
  .feedback-card header,
  .shared-entry-card header,
  .feedback-context,
  .admin-client-form,
  .admin-client-form.inline {
    grid-template-columns: 1fr;
  }

  .shared-entry-card-meta {
    justify-items: start;
    text-align: left;
  }

  .feedback-beta-button {
    right: auto;
    left: 1rem;
    bottom: 1rem;
    max-width: calc(100vw - 6.5rem);
  }

  .sound-toggle {
    right: 1rem;
    bottom: 1rem;
  }

  .app-toast {
    left: 1rem;
    right: 1rem;
    bottom: 4.4rem;
    width: auto;
  }

  .admin-client-form.compact {
    grid-template-columns: 1fr;
  }

  .user-list article {
    align-items: stretch;
    flex-direction: column;
  }

  .client-actions {
    justify-content: flex-start;
  }

  .oracle-room {
    min-height: 29rem;
    max-height: none;
    background-image:
      linear-gradient(180deg, rgba(4, 3, 8, 0.06), rgba(5, 4, 8, 0.2)),
      url("../public/assets/system/table-bg-mobile.webp");
  }

  .card-back {
    background-image: url("../public/assets/system/card-back-mobile.webp");
  }

  .route-login .brand-panel {
    height: 100svh;
    min-height: 36rem;
    padding: 0.7rem;
    background: #030307;
  }

  .route-login .cover-art {
    object-fit: contain;
    background: #030307;
  }

  .route-login .work-panel {
    padding: clamp(1rem, 5vw, 1.4rem);
  }

  .route-login .login-card {
    margin: 0 auto 2rem;
  }

  .route-oracle {
    display: block;
    position: relative;
    min-height: 100svh;
    overflow: hidden;
  }

  .route-oracle .brand-panel {
    display: none;
  }

  .route-oracle .work-panel {
    padding: 0;
  }

  .route-oracle .topbar {
    position: absolute;
    inset: 0 0 auto;
    z-index: 60;
    margin: 0;
    width: 100%;
    max-width: 100vw;
    padding: 0.85rem;
    background: linear-gradient(180deg, rgba(5, 4, 10, 0.64), transparent);
    border: 0;
    pointer-events: none;
  }

  .route-oracle .topbar > div {
    display: none;
  }

  .route-oracle .topbar nav {
    width: auto;
    margin-left: auto;
    display: grid;
    grid-template-columns: repeat(4, 3.15rem);
    justify-content: end;
    gap: 0.55rem;
    min-width: 0;
    pointer-events: auto;
  }

  .route-oracle .topbar nav button {
    width: 3.15rem;
    min-height: 3.15rem;
    min-width: 0;
    padding: 0;
    overflow: hidden;
    border-radius: 999px;
    border-color: rgba(255, 224, 140, 0.42);
    background: rgba(5, 4, 10, 0.74);
    box-shadow: 0 0.65rem 1.4rem rgba(0, 0, 0, 0.38), inset 0 0 0 1px rgba(255, 217, 120, 0.08);
    backdrop-filter: blur(12px);
  }

  .route-oracle .topbar nav button:hover {
    transform: translateY(-1px);
  }

  .route-oracle .topbar nav svg {
    width: 1.35rem;
    height: 1.35rem;
    color: var(--gold-strong);
    stroke-width: 2.1;
  }

  .route-oracle .topbar nav span {
    font-size: 0.82rem;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .route-oracle .oracle-intro {
    display: none;
  }

  .route-oracle .notice {
    margin: 0;
    border-width: 0 0 1px;
  }

  .route-oracle .oracle-room {
    height: 100svh;
    min-height: 100svh;
    max-height: none;
    aspect-ratio: auto;
    border-width: 0;
    width: 100%;
    max-width: 100vw;
    background-position: center;
  }

  .route-history .work-panel,
  .route-profile .work-panel,
  .route-journey .work-panel {
    padding: 1rem;
  }
}

@media (max-width: 560px) {
  .work-panel {
    padding: 1rem;
  }

  .sound-toggle {
    right: 0.8rem;
    bottom: 0.8rem;
    min-height: 3rem;
    padding: 0 0.8rem;
  }

  .sound-toggle svg {
    width: 1.22rem;
    height: 1.22rem;
  }

  .sound-toggle span {
    font-size: 0.76rem;
  }

  .oracle-room {
    min-height: 28rem;
    aspect-ratio: 9 / 12;
    background-size: cover;
  }

  .card-back {
    width: 2.65rem;
  }

  .cover-art {
    object-position: center 42%;
  }

  .route-login .brand-panel {
    min-height: 100svh;
    padding: 0.45rem;
  }

  .route-login .work-panel {
    padding: 0.85rem;
  }

  .route-login .login-card {
    width: 100%;
    padding: 1rem;
  }

  .route-oracle .topbar {
    padding: 0.85rem 0.75rem;
  }

  .route-oracle .topbar nav {
    grid-template-columns: repeat(4, 3.05rem);
    gap: 0.5rem;
  }

  .route-oracle .topbar nav button {
    width: 3.05rem;
    min-height: 3.05rem;
  }

  .route-oracle .topbar nav span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .route-oracle .topbar nav svg {
    width: 1.32rem;
    height: 1.32rem;
  }

  .route-oracle .oracle-room {
    min-height: 100svh;
    height: 100svh;
  }

  .route-oracle .card-back {
    left: var(--mx);
    top: var(--my);
    width: clamp(4.75rem, 21vw, 5.8rem);
    border-radius: 0.48rem;
    box-shadow: 0 0.75rem 1.45rem rgba(0, 0, 0, 0.62), 0 0 0 1px rgba(255, 217, 120, 0.34);
    transform: translate(-50%, -50%) rotate(var(--mrot));
  }

  .route-oracle .card-back:hover {
    transform: translate(-50%, -54%) rotate(var(--mrot)) scale(1.045);
  }

  .reveal-layer {
    display: block;
    padding: 0;
    overflow: auto;
    background:
      linear-gradient(180deg, rgba(5, 4, 10, 0.18), rgba(5, 4, 10, 0.8)),
      url("../public/assets/system/table-bg-mobile.webp") center / cover no-repeat,
      #050409;
  }

  .reveal-modal {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    width: 100%;
    min-height: 100svh;
    max-height: none;
    overflow: visible;
    padding: 0.85rem;
    border: 0;
    background: rgba(5, 4, 10, 0.62);
    box-shadow: none;
  }

  .reveal-header {
    align-items: start;
    margin-bottom: 0.75rem;
  }

  .reveal-header h2 {
    font-size: clamp(1.35rem, 7vw, 2rem);
  }

  .reveal-toolbar {
    gap: 0.35rem;
  }

  .reveal-toolbar span {
    min-width: 2.75rem;
    font-size: 0.82rem;
  }

  .reveal-modal .icon-button {
    width: 2.75rem;
    min-height: 2.75rem;
    border-radius: 999px;
    background: rgba(5, 4, 10, 0.72);
    backdrop-filter: blur(12px);
  }

  .reveal-viewer {
    min-height: 0;
    max-height: calc(100svh - 10rem);
  }

  .reveal-zoom-frame {
    align-items: start;
    width: max(100%, calc(100% * var(--reveal-zoom)));
    padding: 0.35rem;
  }

  .revealed-image {
    align-self: center;
    justify-self: center;
    width: 100%;
    max-width: calc(54rem * var(--reveal-zoom));
    max-height: none;
    border-color: rgba(255, 224, 140, 0.42);
    box-shadow: 0 1.2rem 3rem rgba(0, 0, 0, 0.52);
  }

  .reveal-modal .button-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }

  .reveal-modal .button-row button {
    width: 100%;
  }
}

.journey-hero {
  display: grid;
  grid-template-columns: minmax(17rem, 0.55fr) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: stretch;
  padding: clamp(1rem, 3vw, 1.5rem);
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(255, 217, 120, 0.08), transparent 38%),
    rgba(18, 16, 24, 0.78);
  animation: panelIn 360ms ease both;
}

.journey-card-stage {
  display: grid;
  place-items: center;
  min-height: 32rem;
  border: 1px solid rgba(232, 198, 106, 0.2);
  background:
    radial-gradient(circle at 50% 35%, rgba(232, 198, 106, 0.13), transparent 16rem),
    #050407;
}

.journey-copy {
  display: grid;
  gap: 1rem;
  align-content: center;
}

.journey-copy p,
.practice-card p,
.journey-note p {
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
}

.journey-lead {
  font-size: 1.05rem;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.card-meta span {
  padding: 0.45rem 0.65rem;
  border: 1px solid rgba(232, 198, 106, 0.22);
  color: var(--gold);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.86rem;
}

.journey-progress {
  display: grid;
  gap: 0.65rem;
}

.journey-progress-bar {
  height: 0.7rem;
  overflow: hidden;
  border: 1px solid rgba(232, 198, 106, 0.28);
  background: rgba(255, 255, 255, 0.06);
}

.journey-progress-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #9f6f28, #ffe08c);
}

.journey-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.45rem;
}

.journey-days span {
  display: grid;
  place-items: center;
  min-height: 2.1rem;
  border: 1px solid rgba(232, 198, 106, 0.2);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
}

.journey-days .is-complete {
  color: #1d1306;
  background: var(--gold-strong);
  border-color: var(--gold-strong);
  font-weight: 800;
}

.journey-dashboard {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.journey-stat,
.practice-card,
.journey-note,
.journey-diary {
  display: grid;
  gap: 0.5rem;
  padding: 1rem;
  border: 1px solid var(--line);
  background: rgba(18, 16, 24, 0.72);
}

.journey-stat strong {
  color: var(--gold-strong);
  font-size: clamp(1.35rem, 2vw, 2rem);
}

.journey-stat span {
  color: var(--muted);
}

.journey-practice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.journey-diary {
  gap: 1rem;
  margin-top: 1rem;
  background:
    linear-gradient(135deg, rgba(255, 217, 120, 0.07), transparent 34%),
    rgba(18, 16, 24, 0.78);
}

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

.diary-share {
  display: flex;
  grid-template-columns: none;
  align-items: center;
  gap: 0.65rem;
  color: var(--muted);
}

.diary-share input {
  width: 1.05rem;
  height: 1.05rem;
  accent-color: var(--gold-strong);
}

.diary-list {
  display: grid;
  gap: 0.75rem;
}

.diary-list article,
.admin-entry-preview {
  display: grid;
  gap: 0.45rem;
  padding: 0.85rem;
  border: 1px solid rgba(232, 198, 106, 0.2);
  background: rgba(255, 255, 255, 0.035);
}

.diary-list article > div {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.6rem;
}

.diary-list strong {
  color: var(--gold-strong);
}

.diary-list small,
.admin-entry-preview em {
  color: var(--muted);
  font-size: 0.84rem;
}

.diary-list p,
.admin-entry-preview p {
  margin: 0;
  color: var(--ink);
  line-height: 1.6;
  white-space: pre-wrap;
}

.admin-entry-preview {
  margin-top: 0.65rem;
}

.practice-card h2,
.journey-note h2 {
  font-size: clamp(1.2rem, 2vw, 1.65rem);
}

.journey-note {
  grid-template-columns: minmax(0, 0.9fr) minmax(18rem, 1.1fr);
  align-items: center;
  margin-top: 1rem;
}

.journey-image {
  width: 100%;
  max-height: 74vh;
  object-fit: contain;
  border: 1px solid var(--line);
  background: #050407;
  animation: cardReveal 520ms ease both;
}

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

@media (max-width: 900px) {
  .journey-hero,
  .journey-dashboard,
  .journey-practice-grid,
  .journey-note {
    grid-template-columns: 1fr;
  }

  .journey-card-stage {
    min-height: 24rem;
  }
}
