/* ═══════════════════════════════════════════════════════════════════════
   AETERIA — THE RELIQUARY  ·  batch 6, the Micheli pass

   The room where a mind is sealed into glass and woken again.
   Floating glass with weight · hairline light · amber glowing from
   within · one curve per surface · the 4-second breath throughout.
   Museum light: one frame, one ember, deep shadow around it.
   ═══════════════════════════════════════════════════════════════════════ */

/* ── the stage ───────────────────────────────────────────────────────────── */

.reliquary-page main.reliquary-stage {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xl);
  width: min(1040px, calc(100% - 48px));
  margin: 0 auto;
  padding: clamp(40px, 7vh, 88px) var(--space-md) var(--space-2xl);
  animation: reliquary-arrive 0.8s var(--ease-out) both;
}
@keyframes reliquary-arrive {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

#water-ground { opacity: 0.6; }

/* ── the rooms — gallery air between each one ────────────────────────────── */

.rq-room {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
/* the vault — the artifact's room; it owns real height, the frame floats in it */
.rq-room--vault {
  justify-content: center;
  min-height: min(720px, 78vh);
  padding: var(--space-lg) 0;
}
/* the rites — the plinth beneath the artifact */
.rq-room--rites { padding: 0; }
/* the bench — the second life; it exists only once asked for */
.rq-room--bench {
  width: min(680px, 100%);
  gap: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--hairline);
}
.rq-room--bench:has(#wake-zone[hidden]):has(#sealed-preview[hidden]) { display: none; }

/* ── the masthead — eyebrow, title, one line ─────────────────────────────── */

.rq-mast {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  text-align: center;
  animation: reliquary-arrive 0.9s var(--ease-out) both;
}
.rq-eyebrow {
  margin: 0;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--accent-bright);
}
.rq-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(30px, 4.6vw, 46px);
  font-weight: 480;
  letter-spacing: 0.01em;
  line-height: 1.12;
  color: var(--text-primary);
  text-shadow: 0 0 44px rgba(232, 100, 26, 0.14);
}
.rq-oneliner {
  margin: 0;
  max-width: 52ch;
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--text-tertiary);
}
.rq-mast::after {
  content: "";
  width: 72px;
  height: 1px;
  margin-top: var(--space-md);
  background: linear-gradient(90deg, transparent, rgba(233, 180, 102, 0.45), transparent);
}
/* a room's own header — quieter than the masthead */
.rq-room-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  margin-bottom: var(--space-sm);
}
.rq-room-head .rq-eyebrow { color: var(--text-tertiary); }
.rq-room-title {
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-2xl);
  font-weight: 520;
  color: var(--text-primary);
}
.rq-room-head .rq-oneliner { font-size: var(--text-sm); }

/* ── the rite scrim — the room dims while a mind is sealed ───────────────── */

.seal-scrim {
  position: fixed;
  inset: 0;
  z-index: 1040;
  background:
    radial-gradient(72% 58% at 50% 46%, transparent 30%, rgba(6, 5, 4, 0.72) 100%),
    rgba(6, 5, 4, 0.35);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.9s var(--ease);
}
.seal-scrim.on { opacity: 1; }
/* the slow amber vignette — it breathes only while the rite is cut */
.seal-scrim::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(58% 46% at 50% 44%, transparent 42%, rgba(232, 100, 26, 0.10) 78%, rgba(232, 100, 26, 0.17) 100%);
  opacity: 0;
  pointer-events: none;
}
.seal-scrim.on::after { animation: scrim-amber-breath 5.2s var(--ease) infinite; }
@keyframes scrim-amber-breath {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 1; }
}
:root[data-theme="light"] .seal-scrim::after {
  background: radial-gradient(58% 46% at 50% 44%, transparent 42%, rgba(184, 94, 18, 0.08) 78%, rgba(184, 94, 18, 0.14) 100%);
}
:root[data-theme="light"] .seal-scrim {
  background:
    radial-gradient(72% 58% at 50% 46%, transparent 30%, rgba(250, 246, 238, 0.78) 100%),
    rgba(250, 246, 238, 0.4);
}
/* the focused rite — the frame steps forward, everything else steps back */
.reliquary-stage:has(.seal-scrim.on) .reliquary-frame {
  transform: scale(1.03);
  transition: transform 0.9s var(--ease);
}
.reliquary-stage:has(.seal-scrim.on) .reliquary-actions,
.reliquary-stage:has(.seal-scrim.on) .reliquary-guidance,
.reliquary-stage:has(.seal-scrim.on) .artifact-line {
  opacity: 0.25;
  transition: opacity 0.9s var(--ease);
}

/* ── the guidance line ───────────────────────────────────────────────────── */

.reliquary-guidance {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-lg);
  color: var(--text-secondary);
  text-align: center;
  max-width: 52ch;
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reliquary-guidance.gone { opacity: 0; transform: translateY(-8px); }

/* ── the frame (the reliquary itself) ────────────────────────────────────── */

.reliquary-frame {
  position: relative;
  width: min(500px, 100%);
  aspect-ratio: 3 / 4.1;
  animation: frame-arrive 1.2s var(--ease-out) both;
  transition: transform 0.9s var(--ease);
}
@keyframes frame-arrive {
  from { opacity: 0; transform: scale(0.94) translateY(14px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.frame-glass {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-slab);
  background:
    linear-gradient(160deg, rgba(255, 246, 236, 0.045) 0%, rgba(255, 246, 236, 0.01) 34%, rgba(232, 100, 26, 0.03) 72%, rgba(255, 246, 236, 0.025) 100%),
    var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow:
    0 44px 110px -32px rgba(0, 0, 0, 0.78),
    0 10px 30px -16px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 246, 236, 0.08);
  /* the render bloom — once, softly, as the artifact finishes arriving */
  animation: vault-bloom 1.8s 0.9s var(--ease-out) 1 both;
}
@keyframes vault-bloom {
  0% {
    box-shadow:
      0 44px 110px -32px rgba(0, 0, 0, 0.78),
      0 10px 30px -16px rgba(0, 0, 0, 0.55),
      inset 0 1px 0 rgba(255, 246, 236, 0.08);
  }
  38% {
    box-shadow:
      0 44px 110px -32px rgba(0, 0, 0, 0.78),
      0 0 90px -12px rgba(232, 100, 26, 0.32),
      inset 0 0 64px rgba(232, 100, 26, 0.10),
      inset 0 1px 0 rgba(255, 246, 236, 0.08);
  }
  100% {
    box-shadow:
      0 44px 110px -32px rgba(0, 0, 0, 0.78),
      0 10px 30px -16px rgba(0, 0, 0, 0.55),
      inset 0 1px 0 rgba(255, 246, 236, 0.08);
  }
}
:root[data-theme="light"] .frame-glass {
  background: linear-gradient(160deg, rgba(255, 253, 249, 0.78), rgba(248, 243, 235, 0.6));
  box-shadow: 0 34px 80px -28px rgba(92, 77, 48, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

/* the luminous barcode — it breathes light from within, on the 4-second law.
   the engine inlines width:100% on the canvas; the frame insists on its
   padding so the artifact sits IN the glass, never edge-to-edge. */
#barcode-canvas {
  position: absolute;
  top: 42%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 76% !important;
  filter: drop-shadow(0 0 14px rgba(232, 100, 26, 0.16));
  animation: barcode-lumen var(--breath) var(--ease) infinite;
}
@keyframes barcode-lumen {
  0%, 100% { filter: drop-shadow(0 0 10px rgba(232, 100, 26, 0.12)); opacity: 0.94; }
  50% { filter: drop-shadow(0 0 22px rgba(232, 100, 26, 0.3)); opacity: 1; }
}

/* the drifting embers — four cheap sparks, rising off the glass */
.glass-embers { position: absolute; inset: 0; pointer-events: none; overflow: hidden; border-radius: inherit; }
.glass-embers i {
  position: absolute;
  bottom: 8%;
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--accent-bright);
  box-shadow: 0 0 8px rgba(232, 100, 26, 0.6);
  opacity: 0;
  animation: ember-drift 9s var(--ease) infinite;
}
.glass-embers i:nth-child(1) { left: 22%; animation-delay: 0s; }
.glass-embers i:nth-child(2) { left: 48%; animation-delay: 2.8s; width: 2px; height: 2px; }
.glass-embers i:nth-child(3) { left: 67%; animation-delay: 5.1s; }
.glass-embers i:nth-child(4) { left: 81%; animation-delay: 7.2s; width: 2px; height: 2px; }
@keyframes ember-drift {
  0% { transform: translateY(0) translateX(0); opacity: 0; }
  12% { opacity: 0.85; }
  55% { opacity: 0.5; }
  100% { transform: translateY(-210px) translateX(14px); opacity: 0; }
}

.arrival-layer { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; }

/* one hairline ring of light, breathing — given room to separate from the glass */
.frame-border {
  position: absolute;
  inset: -20px;
  border-radius: calc(var(--radius-slab) + 14px);
  border: 1px solid var(--hairline-amber);
  pointer-events: none;
}
.frame-border::before {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: inherit;
  border: 1px solid rgba(233, 180, 102, 0.1);
}
@keyframes border-breathe {
  0%, 100% { box-shadow: 0 0 34px -8px rgba(233, 180, 102, 0.16); border-color: var(--hairline-amber); }
  50% { box-shadow: 0 0 54px -8px rgba(232, 100, 26, 0.3); border-color: rgba(232, 100, 26, 0.42); }
}
.frame-border { animation: border-breathe var(--breath) var(--ease) infinite; }
.frame-border.flaring { animation: border-flare 0.9s var(--ease); }
@keyframes border-flare {
  0% { box-shadow: 0 0 0 0 rgba(233, 180, 102, 0.5); }
  30% { box-shadow: 0 0 70px -4px rgba(232, 100, 26, 0.55); border-color: rgba(255, 154, 77, 0.75); }
  100% { box-shadow: 0 0 34px -8px rgba(233, 180, 102, 0.16); }
}

.seal-ring {
  position: absolute;
  top: 42%;
  left: 50%;
  width: 200px; height: 200px;
  transform: translate(-50%, -50%) scale(0.4);
  border-radius: 50%;
  border: 1.5px solid rgba(232, 100, 26, 0.65);
  box-shadow: 0 0 44px -6px rgba(232, 100, 26, 0.45), inset 0 0 30px rgba(232, 100, 26, 0.14);
  opacity: 0;
  transition: opacity 0.8s var(--ease-out), transform 0.9s var(--ease-out);
  pointer-events: none;
}
.seal-ring.revealed { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.seal-ring::after {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 50%;
  border: 1px dashed rgba(233, 180, 102, 0.4);
}

.frame-caption {
  position: absolute;
  left: 50%; bottom: 30px;
  transform: translateX(-50%);
  width: 84%;
  text-align: center;
  animation: caption-arrive 1s 0.4s var(--ease-out) both;
}
@keyframes caption-arrive {
  from { opacity: 0; transform: translate(-50%, 10px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}
.frame-hash {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--text-tertiary);
  word-break: break-all;
}
.frame-grant {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin-top: 10px;
}
.frame-grant .grant-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(232, 100, 26, 0.5);
}
.frame-grant .grant-dot.spent {
  background: var(--hairline-strong);
  box-shadow: none;
  opacity: 0.5;
}

.frame-reflection {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  display: flex;
  justify-content: center;
  opacity: 0.9;
}
.frame-reflection canvas { max-width: 100%; }

.ember-layer { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; }

/* the artifact line — a museum plaque under the exhibit, with the light
   still dripping into it from above (the text reliquary.js writes shows) */
.artifact-line {
  position: relative;
  width: min(720px, 100%);
  margin: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-align: center;
  color: var(--text-tertiary);
}
.artifact-line::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -128px;
  width: 1px;
  height: 120px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, transparent, rgba(233, 180, 102, 0.45));
  animation: artifact-grow 2.6s var(--ease) infinite;
  pointer-events: none;
}
@keyframes artifact-grow {
  0% { height: 0; opacity: 0; }
  30% { opacity: 0.9; }
  100% { height: 120px; opacity: 0; }
}

/* ── the memory tooltip — a fragment surfacing, as glass ─────────────────── */

.memory-tooltip {
  position: fixed;
  z-index: 1050;
  max-width: min(300px, calc(100vw - 24px));
  padding: 13px 16px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-slab);
  background: var(--glass);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: 0 26px 60px -22px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 246, 236, 0.07);
  pointer-events: none;
  opacity: 0;
  transform: translateY(6px) scale(0.97);
  transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}
.memory-tooltip.bloom { opacity: 1; transform: translateY(0) scale(1); }
:root[data-theme="light"] .memory-tooltip { background: rgba(255, 253, 249, 0.9); box-shadow: 0 22px 50px -20px rgba(92, 77, 48, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.85); }
.tooltip-date {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--text-tertiary);
}
.tooltip-fragment { font-size: var(--text-sm); line-height: 1.55; margin-top: 5px; overflow-wrap: break-word; }
.tooltip-meta { display: flex; gap: 8px; margin-top: 8px; font-size: var(--text-xs); color: var(--text-tertiary); }
.tooltip-mood { display: inline-flex; align-items: center; gap: 5px; }
.mood-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px rgba(232, 100, 26, 0.45); }
.tooltip-intensity { display: flex; align-items: center; gap: 6px; }
:root[data-theme="light"] .tooltip-intensity { color: var(--text-secondary); }
.tooltip-intensity .intensity-bar {
  width: 60px; height: 3px;
  border-radius: 99px;
  background: var(--hairline-strong);
  overflow: hidden;
  position: relative;
}
.tooltip-intensity .intensity-bar::after {
  content: "";
  position: absolute; inset: 0;
  width: var(--i, 50%);
  border-radius: inherit;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(232, 100, 26, 0.5);
}
.tooltip-sealed { margin-top: 8px; font-size: var(--text-xs); color: var(--text-secondary); }
.lock-glyph { color: var(--text-secondary); }

/* ── the memory sheet (a day, opened) ────────────────────────────────────── */

.memory-sheet {
  position: fixed;
  inset: 0;
  z-index: 1060;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(6, 5, 4, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-2) var(--ease);
}
.memory-sheet.show { opacity: 1; pointer-events: auto; }
@keyframes sheet-arrive {
  from { transform: translateY(22px) scale(0.97); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}
.sheet-card {
  position: relative;
  width: min(560px, 100%);
  max-height: 80dvh;
  overflow-y: auto;
  padding: var(--space-xl);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-slab);
  background:
    linear-gradient(180deg, rgba(255, 246, 236, 0.03), rgba(255, 246, 236, 0.006) 42%),
    var(--glass);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: 0 40px 90px -28px rgba(0, 0, 0, 0.75), inset 0 1px 0 rgba(255, 246, 236, 0.07);
}
.memory-sheet.show .sheet-card { animation: sheet-arrive 0.5s var(--ease-out) both; }
:root[data-theme="light"] .sheet-card { background: linear-gradient(180deg, rgba(255, 253, 249, 0.94), rgba(248, 243, 235, 0.96)); }
.sheet-date {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.18em;
  color: var(--accent-bright);
}
.sheet-fragment {
  margin-top: 12px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-lg);
  line-height: 1.55;
  overflow-wrap: break-word;
}
.sheet-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.sheet-intensity { display: inline-flex; align-items: center; gap: 7px; font-size: var(--text-xs); color: var(--text-tertiary); }
.sheet-mood { display: inline-flex; align-items: center; gap: 7px; font-size: var(--text-xs); color: var(--text-tertiary); }
.sheet-close {
  position: absolute;
  top: 14px; right: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  color: var(--text-tertiary);
  background: transparent;
  border: 1px solid var(--hairline);
  border-radius: 50%;
  cursor: pointer;
  transition: color var(--dur-1) var(--ease), border-color var(--dur-1) var(--ease), transform var(--dur-1) var(--ease);
}
.sheet-close:hover { color: var(--accent-bright); border-color: var(--hairline-amber); transform: rotate(90deg); }

/* ── the actions ─────────────────────────────────────────────────────────── */

.reliquary-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-md);
}
.reliquary-actions .droplet, .reliquary-actions .btn-droplet {
  width: auto;
  min-width: 150px;
  height: 40px;
  padding: 0 20px;
  font-size: var(--text-sm);
  border-radius: 99px;
}
.reliquary-actions .droplet.soft-disabled { opacity: 0.4; pointer-events: none; }

/* ── the wake zone (a sealed PNG dropped home) ───────────────────────────── */

.wake-zone {
  width: 100%;
  border: 1.5px dashed var(--hairline-amber);
  border-radius: var(--radius-slab);
  padding: var(--space-xl);
  text-align: center;
  background: rgba(255, 246, 236, 0.015);
  transition: border-color var(--dur-2) var(--ease), background var(--dur-2) var(--ease), transform var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease);
}
.wake-panel { display: flex; flex-direction: column; align-items: center; gap: var(--space-md); }
@keyframes wake-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(232, 100, 26, 0); }
  50% { box-shadow: inset 0 0 30px rgba(232, 100, 26, 0.06), 0 0 30px -6px rgba(232, 100, 26, 0.18); }
}
.wake-zone { animation: wake-pulse var(--breath) var(--ease) infinite; }
.wake-title { font-family: var(--font-display); font-size: var(--text-lg); font-weight: 560; }
.wake-hint { font-size: var(--text-sm); color: var(--text-tertiary); }
.wake-zone.drag-over {
  border-color: rgba(232, 100, 26, 0.7);
  background: var(--accent-soft);
  transform: scale(1.015);
  animation: none;
}

/* ── the sealed preview (a woken mind, vouched) ──────────────────────────── */

.sealed-preview {
  width: 100%;
  animation: preview-arrive 0.7s var(--ease-out) both;
}
@keyframes preview-arrive {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
.preview-card {
  padding: var(--space-xl);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-slab);
  background:
    linear-gradient(180deg, rgba(255, 246, 236, 0.03), rgba(255, 246, 236, 0.006) 42%),
    var(--glass);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: 0 34px 80px -28px rgba(0, 0, 0, 0.72), inset 0 1px 0 rgba(255, 246, 236, 0.07);
}
:root[data-theme="light"] .preview-card { box-shadow: 0 28px 64px -24px rgba(92, 77, 48, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.85); }
.preview-card h3 { margin: 0 0 4px; font-size: var(--text-xl); }
.preview-name { font-family: var(--font-display); font-size: var(--text-2xl); font-weight: 520; }
.preview-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.preview-grant { margin-top: 14px; display: flex; align-items: center; gap: 6px; }
.preview-grant .grant-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(232, 100, 26, 0.5);
}
.preview-grant .grant-dot.spent { background: var(--hairline-strong); box-shadow: none; opacity: 0.5; }
.preview-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

.fork-notice {
  margin-top: 14px;
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  border-left: 2px solid var(--hairline-amber);
  padding-left: 12px;
  line-height: 1.6;
}

/* the quiet confirmation — one line of light */
.seal-confirmation {
  position: fixed;
  left: 50%;
  bottom: 9dvh;
  transform: translateX(-50%);
  z-index: 1065;
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-lg);
  color: var(--text-primary);
  text-align: center;
  padding: 14px 26px;
  background: var(--glass);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--hairline-amber);
  border-radius: 99px;
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.7), inset 0 0 30px rgba(232, 100, 26, 0.05);
  animation: seal-pop 0.6s var(--ease-out) both;
}
@keyframes seal-pop {
  from { opacity: 0; transform: translateX(-50%) scale(0.9); }
  to { opacity: 1; transform: translateX(-50%) scale(1); }
}
@keyframes confirm-glow {
  0%, 100% { text-shadow: 0 0 18px rgba(233, 180, 102, 0.25); }
  50% { text-shadow: 0 0 30px rgba(232, 100, 26, 0.45); }
}
.seal-confirmation .display { animation: confirm-glow var(--breath) var(--ease) infinite; }

/* ── the waking theatre ──────────────────────────────────────────────────── */

.waking-overlay {
  position: fixed;
  inset: 0;
  z-index: 1070;
  display: grid;
  place-items: center;
  background:
    radial-gradient(80% 60% at 50% 42%, rgba(232, 100, 26, 0.07), transparent 68%),
    rgba(6, 5, 4, 0.96);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s var(--ease);
}
.waking-overlay:not([hidden]) { opacity: 1; pointer-events: auto; }
:root[data-theme="light"] .waking-overlay { background: radial-gradient(80% 60% at 50% 42%, rgba(184, 94, 18, 0.07), transparent 68%), rgba(248, 244, 236, 0.97); }
.waking-overlay canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
/* the engine's rite layer — beneath the words, above the old canvas */
.rite-layer { pointer-events: none; }
.waking-text {
  position: relative;
  z-index: 2;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(20px, 3.4vw, 30px);
  text-align: center;
  color: var(--text-primary);
  max-width: 30ch;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  padding: 0 24px;
}
.waking-text.shown { opacity: 1; transform: translateY(0); }

/* ── the life summary & brushes (reliquary deep views) ───────────────────── */

.life-summary { width: min(720px, 100%); }
.intensity-legend {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  justify-content: center;
  margin-bottom: 14px;
}
[data-theme="light"] .intensity-legend { color: var(--text-secondary); }
.il-sample { width: 22px; height: 4px; border-radius: 99px; display: inline-block; vertical-align: middle; margin-right: 5px; }
.il-quiet { background: var(--hairline-strong); }
.il-loud { background: var(--accent); box-shadow: 0 0 8px rgba(232, 100, 26, 0.5); }
.il-erased { background: repeating-linear-gradient(90deg, var(--hairline-strong) 0 4px, transparent 4px 7px); }

.brush-card {
  padding: 18px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  background: var(--glass-bg);
  transition: border-color var(--dur-2) var(--ease), transform var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease);
}
.brush-card:hover {
  border-color: var(--hairline-amber);
  transform: translateY(-2px);
  box-shadow: 0 14px 38px -14px rgba(0, 0, 0, 0.55), inset 0 0 30px rgba(232, 100, 26, 0.04);
}
@keyframes brush-arrive { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.brush-card { animation: brush-arrive 0.5s var(--ease-out) both; }

.deep-card {
  position: relative;
  width: min(720px, 100%);
  max-height: 82dvh;
  overflow-y: auto;
  padding: 28px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-slab);
  background:
    linear-gradient(180deg, rgba(255, 246, 236, 0.03), rgba(255, 246, 236, 0.006) 42%),
    var(--glass);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: 0 40px 90px -28px rgba(0, 0, 0, 0.75), inset 0 1px 0 rgba(255, 246, 236, 0.07);
}
.deep-card:not([open]) { display: none; }
.deep-card .dc-inner { display: flex; flex-direction: column; gap: 14px; }
.deep-card .dc-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 34px; height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-tertiary);
  background: transparent;
  border: 1px solid var(--hairline);
  border-radius: 50%;
  cursor: pointer;
  transition: color var(--dur-1) var(--ease), border-color var(--dur-1) var(--ease);
}
.deep-card .dc-close:hover { color: var(--accent-bright); border-color: var(--hairline-amber); }
.deep-card .dc-date {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.16em;
  color: var(--accent-bright);
}
.deep-card .dc-fragment { font-family: var(--font-display); font-style: italic; font-size: var(--text-lg); line-height: 1.55; }
.deep-card .dc-messages { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.dc-msg {
  padding: 10px 14px;
  font-size: var(--text-sm);
  background: rgba(255, 246, 236, 0.03);
  border: 1px solid var(--hairline);
  border-radius: 12px;
}
.dc-msg .who {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-right: 8px;
}

/* ── the compare theatre — two glass panes, one hairline between ─────────── */

.compare-zone {
  width: min(760px, 100%);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 14px;
  align-items: stretch;
}
.compare-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: var(--space-lg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-slab);
  background:
    linear-gradient(180deg, rgba(255, 246, 236, 0.03), rgba(255, 246, 236, 0.006) 42%),
    var(--glass);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 246, 236, 0.06);
}
.compare-title { font-size: var(--text-xs); letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-tertiary); }
.compare-drop {
  flex: 1;
  min-height: 180px;
  display: grid;
  place-items: center;
  border: 1.5px dashed var(--hairline-amber);
  border-radius: var(--radius-md);
  color: var(--text-tertiary);
  font-size: var(--text-sm);
  transition: border-color var(--dur-2) var(--ease), background var(--dur-2) var(--ease);
}
.compare-slot { width: 100%; }
.compare-slot:hover { border-color: rgba(232, 100, 26, 0.5); background: var(--accent-soft); }
.compare-vs {
  align-self: center;
  font-family: var(--font-display);
  font-style: italic;
  color: var(--accent-bright);
  border-left: 1px solid var(--hairline);
  padding-left: 14px;
}
.compare-canvas { width: 100%; height: 220px; display: block; }
[data-theme="light"] .compare-canvas { background: rgba(255, 253, 249, 0.5); border-radius: var(--radius-sm); }
:root[data-theme="light"] .compare-panel { background: rgba(255, 253, 249, 0.72); box-shadow: 0 20px 50px -22px rgba(92, 77, 48, 0.28); }
:root[data-theme="light"] .compare-vs { border-left-color: var(--hairline); }

/* ── courtesy ────────────────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  .reliquary-page main.reliquary-stage, .reliquary-frame, .frame-caption, .frame-glass,
  .reliquary-guidance, #water-ground, .frame-border, .artifact-line, .artifact-line::before,
  .wake-zone, #barcode-canvas, .glass-embers i, .seal-confirmation, .seal-confirmation .display,
  .rq-mast, .rq-mast::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }
  .seal-scrim.on::after { animation: none !important; opacity: 0.7; }
  .memory-tooltip, .frame-border, .seal-scrim { transition-duration: 0.01ms !important; }
}

@media (max-width: 640px) {
  .reliquary-page main.reliquary-stage { width: calc(100% - 28px); padding-top: 20px; gap: var(--space-lg); }
  .rq-room--vault { min-height: min(560px, 72vh); }
  /* the hairline ring stays on the slab — it never leaves the room */
  .frame-border { inset: -10px; border-radius: calc(var(--radius-slab) + 6px); }
  /* the rites: compact pills that wrap, not a stack of slabs */
  .reliquary-actions { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 10px; }
  .reliquary-actions .droplet, .reliquary-actions .btn-droplet { width: auto; min-width: 0; flex: 0 1 auto; }
  .memory-tooltip { max-width: calc(100vw - 24px); }
  .frame-caption { bottom: 18px; }
  .frame-hash { font-size: 9px; }
  .reliquary-frame:hover { transform: none; }
  .compare-zone { grid-template-columns: 1fr; }
  .compare-vs { border-left: 0; border-top: 1px solid var(--hairline); padding-left: 0; padding-top: 10px; text-align: center; }
}/* DASHBOARD STYLES */
.rq-dashboard {
  display: flex;
  flex-direction: column;
  gap: 32px;
  width: 100%;
}
.rq-mast {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 24px;
}
.rq-mast-title .rq-eyebrow {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}
.rq-mast-title .rq-title {
  font-family: var(--font-serif);
  font-size: 32px;
  margin-bottom: 8px;
}
.rq-telemetry {
  display: flex;
  gap: 24px;
}
.rq-tel-box {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-left: 16px;
  border-left: 1px solid var(--hairline);
}
.rq-tel-box .tel-lbl {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.rq-tel-box .tel-val {
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--text-primary);
}
.rq-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
  align-items: start;
}
@media (max-width: 900px) {
  .rq-grid { grid-template-columns: 1fr; }
  .rq-mast { flex-direction: column; align-items: flex-start; gap: 24px; }
}
.rq-pane--console {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding-left: 32px;
  border-left: 1px solid var(--hairline);
  min-height: 500px;
}
@media (max-width: 900px) {
  .rq-pane--console { padding-left: 0; border-left: none; min-height: auto; }
}

/* ── TABS ── */
.rq-tabs {
  display: flex;
  gap: 10px;
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 14px;
  width: 100%;
}
.rq-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1px solid var(--hairline);
  color: var(--text-tertiary);
  padding: 8px 18px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.rq-tab-btn:hover {
  color: var(--text-primary);
  border-color: rgba(232, 100, 26, 0.4);
  background: var(--accent-soft);
}
.rq-tab-btn.active {
  color: var(--text-primary);
  background: rgba(232, 100, 26, 0.14);
  border-color: var(--accent);
  box-shadow: 0 0 16px rgba(232, 100, 26, 0.18);
}
.tab-badge {
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  padding: 1px 7px;
  font-size: 10px;
  font-weight: 700;
}
.rq-view-pane[hidden] {
  display: none !important;
}

/* ── NEURAL SEAL STAGE ── */
.rq-qr-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 36px;
  align-items: start;
}
@media (max-width: 900px) {
  .rq-qr-grid { grid-template-columns: 1fr; }
}
.neural-seal-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: 100%;
}
.neural-seal-frame {
  position: relative;
  width: 100%;
  max-width: 480px;
  aspect-ratio: 1 / 1;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: radial-gradient(circle at 50% 50%, rgba(20, 22, 28, 0.95), rgba(7, 8, 11, 0.98));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 24px 64px -16px rgba(0, 0, 0, 0.8), 0 0 40px -10px var(--seal-glow, rgba(232, 100, 26, 0.2));
  transition: box-shadow 0.4s ease;
}
[data-theme="light"] .neural-seal-frame {
  background: radial-gradient(circle at 50% 50%, rgba(255, 252, 248, 0.98), rgba(243, 237, 227, 0.95));
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 20px 50px -16px rgba(92, 77, 48, 0.22), 0 0 32px -8px var(--seal-glow, rgba(232, 100, 26, 0.2));
}
.seal-halo {
  position: absolute;
  inset: -20px;
  border-radius: 40px;
  background: radial-gradient(circle, var(--seal-glow, rgba(232, 100, 26, 0.15)) 0%, transparent 70%);
  pointer-events: none;
  animation: seal-pulse 4s ease-in-out infinite alternate;
}
@keyframes seal-pulse {
  from { opacity: 0.4; transform: scale(0.96); }
  to { opacity: 0.85; transform: scale(1.03); }
}
.seal-viewport {
  position: relative;
  z-index: 2;
  width: 86%;
  height: 86%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.seal-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px;
  gap: 12px;
}
.seal-loading-spinner {
  width: 32px;
  height: 32px;
  border: 2px solid rgba(232, 100, 26, 0.2);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.seal-ph-title {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--text-primary);
  margin: 0;
}
.seal-ph-sub {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-tertiary);
  max-width: 30ch;
  margin: 0;
}
.seal-svg-wrap {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: seal-emerge 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.seal-svg-wrap svg {
  width: 100%;
  height: 100%;
  border-radius: 16px;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.35));
}
@keyframes seal-emerge {
  from { opacity: 0; transform: scale(0.92); filter: blur(4px); }
  to { opacity: 1; transform: scale(1); filter: blur(0); }
}
.seal-monogram-tag {
  position: absolute;
  bottom: 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  background: rgba(0, 0, 0, 0.4);
  padding: 2px 10px;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  z-index: 3;
}
[data-theme="light"] .seal-monogram-tag {
  background: rgba(255, 255, 255, 0.7);
}
.seal-caption {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-tertiary);
  text-align: center;
  letter-spacing: 0.04em;
}

/* ── NEURAL CONTROLS & TELEMETRY ── */
.neural-controls {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.telemetry-panel {
  border-radius: 18px;
  border: 1px solid var(--hairline);
  padding: 20px;
  background: rgba(18, 20, 26, 0.6);
  backdrop-filter: blur(16px);
}
[data-theme="light"] .telemetry-panel {
  background: rgba(255, 253, 249, 0.7);
}
.panel-heading {
  margin: 0 0 16px 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-bright);
}
.telemetry-rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.t-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.06);
  padding-bottom: 6px;
}
[data-theme="light"] .t-row {
  border-bottom-color: rgba(0, 0, 0, 0.06);
}
.t-lbl { color: var(--text-tertiary); font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; }
.t-val { color: var(--text-primary); font-weight: 500; }
.t-val.font-mono { font-family: var(--font-mono); font-size: 11px; }
.t-val.highlight { color: #22c55e; font-family: var(--font-mono); font-size: 11px; font-weight: 600; }

.qr-action-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.minted-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  animation: reliquary-arrive 0.4s ease both;
}
.share-box {
  display: flex;
  gap: 8px;
}
.share-box input {
  flex: 1;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--hairline);
  border-radius: 8px;
  padding: 6px 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-primary);
  outline: none;
}
[data-theme="light"] .share-box input {
  background: rgba(255, 255, 255, 0.6);
}
.download-row {
  display: flex;
  gap: 8px;
}
.download-row .droplet,
.download-row .btn,
.download-row .btn-droplet {
  flex: 1;
  width: auto;
  min-width: 0;
  height: 38px;
  padding: 0 14px;
  font-size: 12px;
  border-radius: 99px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

/* Universal button rules for reliquary actions — ensures full legibility and proper pill shape */
.qr-action-stack .btn,
.qr-action-stack .btn-droplet,
.qr-action-stack .droplet,
.handshake-actions .btn,
.handshake-actions .btn-droplet,
.handshake-actions .droplet,
.preview-actions .btn,
.preview-actions .btn-droplet,
.preview-actions .droplet,
.reliquary-actions .btn,
.reliquary-actions .btn-droplet,
.reliquary-actions .droplet,
.wake-panel .btn,
.wake-panel .btn-droplet,
.wake-panel .droplet {
  width: auto;
  min-width: 130px;
  height: 42px;
  padding: 0 22px;
  border-radius: 99px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-size: var(--text-sm, 13px);
  font-weight: 500;
  white-space: nowrap;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  overflow: visible;
  transition: all var(--dur-1, 150ms) var(--ease, ease);
}

.qr-action-stack #btn-mint-qr {
  width: 100%;
  height: 46px;
  font-size: 14px;
  font-weight: 600;
}
.qr-explanation {
  border-radius: 12px;
  border: 1px solid var(--hairline);
  padding: 12px 14px;
  background: var(--accent-soft);
}
.exp-title {
  margin: 0 0 6px 0;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-bright);
}
.exp-body {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-tertiary);
}

/* ── SCANNER HANDSHAKE CARD ── */
.scanned-handshake-card {
  width: 100%;
  border-radius: 20px;
  border: 1.5px solid var(--accent);
  background: linear-gradient(135deg, rgba(232, 100, 26, 0.12), rgba(15, 17, 23, 0.85));
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 12px 32px -8px rgba(232, 100, 26, 0.25);
  animation: reliquary-arrive 0.5s ease both;
}
.handshake-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}
.handshake-glyph {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(232, 100, 26, 0.2);
  border: 1px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--accent-bright);
}
.handshake-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--accent);
  color: #fff;
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 600;
}
.handshake-title {
  margin: 4px 0 2px 0;
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--text-primary);
}
.handshake-subtitle {
  margin: 0;
  font-size: 13px;
  color: var(--text-tertiary);
}

.handshake-steps {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 16px 0 20px 0;
  padding: 10px 14px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 12px;
  border: 1px solid var(--hairline);
}
[data-theme="light"] .handshake-steps { background: rgba(255, 255, 255, 0.6); }
.h-step {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-tertiary);
  transition: all 0.3s ease;
}
.h-step.active {
  color: var(--accent-bright);
  font-weight: 700;
  text-shadow: 0 0 10px rgba(232, 100, 26, 0.4);
}
.h-step-line {
  flex: 1;
  height: 1px;
  background: var(--hairline);
  margin: 0 10px;
}
.handshake-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.hs-beacon-box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 10px;
  background: rgba(232, 100, 26, 0.08);
  border: 1px dashed rgba(232, 100, 26, 0.3);
}
.hs-beacon-ring {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  animation: beacon-pulse 1.8s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes beacon-pulse {
  0% { transform: scale(0.9); opacity: 0.6; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.6; }
}
.hs-beacon-box p {
  margin: 0;
  font-size: 13px;
  color: var(--text-primary);
}
.handshake-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ── OWNER KEYRING ROOM ── */
.keyring-room {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.keyring-header {
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 14px;
}
.keyring-title {
  margin: 0 0 6px 0;
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--text-primary);
}
.keyring-desc {
  margin: 0;
  font-size: 13px;
  color: var(--text-tertiary);
}
.keyring-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}
.keyring-empty {
  grid-column: 1 / -1;
  padding: 36px;
  text-align: center;
  border-radius: 16px;
  border: 1px dashed var(--hairline);
  color: var(--text-tertiary);
  font-size: 13px;
}
.keyring-card {
  border-radius: 16px;
  border: 1px solid var(--hairline);
  padding: 18px;
  background: rgba(18, 20, 26, 0.5);
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.keyring-card:hover {
  transform: translateY(-2px);
  border-color: rgba(232, 100, 26, 0.4);
}
.keyring-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.keyring-res-name {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--text-primary);
  margin: 0;
}
.keyring-status-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 999px;
  text-transform: uppercase;
  font-weight: 600;
}
.keyring-status-badge.sealed { background: rgba(255, 255, 255, 0.1); color: var(--text-tertiary); }
.keyring-status-badge.pending_release {
  background: #f59e0b;
  color: #000;
  animation: beacon-pulse 1.4s ease-in-out infinite;
}
.keyring-status-badge.confirmed { background: #22c55e; color: #fff; }
.keyring-status-badge.woken { background: #3b82f6; color: #fff; }
.keyring-meta-list {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-tertiary);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

