/* ===== tokens ===== */
:root {
  --bg: #170b11;
  --bg-2: #2a1019;
  --ink: #2b1d14;
  --ink-soft: #7a5f49;
  --paper: #fbf3e2;
  --paper-2: #f3e4c7;
  --gold: #f2c14e;
  --gold-deep: #c8912a;
  --velvet: #9b1d33;
  --velvet-dark: #5c0f1f;
  --text: #fbefdc;
  --text-dim: #d8c3a8;
  --ok: #2f7a4a;
  --danger: #b3261e;
  --font-title: "Kaisei Decol", "Hiragino Mincho ProN", serif;
  --font-body: "Zen Maru Gothic", system-ui, -apple-system, "Hiragino Sans", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(ellipse at 50% -10%, #3d1524 0%, var(--bg) 60%) fixed, var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.7;
  -webkit-text-size-adjust: 100%;
}

a {
  color: inherit;
}

button {
  font: inherit;
}

[tabindex="-1"]:focus {
  outline: none;
}

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

/* ===== header / footer ===== */
.site-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 720px;
  margin: 0 auto;
  padding: 16px;
}

.logo {
  font-family: var(--font-title);
  font-size: 1.3rem;
  color: var(--gold);
  text-decoration: none;
  letter-spacing: 0.04em;
}

.member-chip {
  padding: 4px 12px;
  border: 1px solid var(--gold-deep);
  border-radius: 999px;
  font-size: 0.8rem;
  color: var(--gold);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 60%;
}

#app {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 16px 48px;
}

.site-foot {
  padding: 32px 16px 48px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* ===== buttons / forms ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 28px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 4px 0 var(--ink);
  transition:
    transform 0.08s ease,
    box-shadow 0.08s ease;
}

.btn:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 var(--ink);
}

.btn:disabled {
  opacity: 0.6;
  cursor: progress;
}

.btn:focus-visible,
.choice:focus-visible,
.text-input:focus-visible,
.link:focus-visible,
.back:focus-visible,
.tabs a:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.btn-primary {
  background: linear-gradient(var(--gold), var(--gold-deep));
  color: var(--ink);
}

.btn-secondary {
  background: var(--paper);
  color: var(--ink);
}

.link {
  padding: 4px;
  border: none;
  background: none;
  color: inherit;
  text-decoration: underline;
  cursor: pointer;
}

.field {
  display: grid;
  gap: 6px;
  font-weight: 700;
  font-size: 0.95rem;
}

.field small {
  font-weight: 500;
  color: var(--ink-soft);
}

.text-input {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 2px solid var(--ink);
  border-radius: 12px;
  background: #fffdf7;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  font-weight: 500;
}

.field-row {
  display: flex;
  gap: 8px;
}

.field-row .text-input {
  flex: 1;
  min-width: 0;
}

.field-row .btn {
  min-height: 52px;
  padding: 8px 20px;
  white-space: nowrap;
}

.form-note {
  margin: 0;
  font-size: 0.82rem;
  color: var(--ink-soft);
  line-height: 1.6;
}

.form-error {
  margin: 0;
  padding: 10px 14px;
  border-radius: 10px;
  background: #fde8ea;
  color: var(--danger);
  font-weight: 700;
  font-size: 0.9rem;
}

.form-ok {
  margin: 8px 0 0;
  color: var(--ok);
  font-weight: 700;
  font-size: 0.9rem;
}

/* ===== メールまわり ===== */
.login-entry {
  margin: 20px 0 0;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.95rem;
}

.login-entry .link {
  color: var(--gold);
  font-weight: 700;
}

.login {
  padding-top: 24px;
}

.login-title {
  margin: 0;
  font-family: var(--font-title);
  font-size: 1.5rem;
  color: var(--velvet);
  text-align: center;
}

.login p {
  margin: 0;
  line-height: 1.8;
}

.form-error p {
  margin: 0 0 8px;
}

.form-error p:last-child,
.form-error .btn {
  margin-bottom: 0;
}

.form-error .btn {
  width: 100%;
  min-height: 44px;
  font-size: 0.95rem;
}

.verify-note {
  margin: 20px 0 0;
  font-size: 0.85rem;
  color: var(--text-dim);
  text-align: left;
  line-height: 1.7;
}

.verified,
.unverified {
  margin-left: 8px;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}

.verified {
  background: #e3f3e8;
  color: var(--ok);
}

.unverified {
  background: #fde8ea;
  color: var(--danger);
}

.verify-box {
  display: grid;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fff4dc;
}

.verify-box p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.7;
}

.verify-box .form-note:empty {
  display: none;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 100;
  width: min(480px, calc(100vw - 32px));
  margin: 0;
  padding: 14px 18px;
  border: 2px solid var(--gold);
  border-radius: 14px;
  background: var(--bg-2);
  color: var(--text);
  font-weight: 700;
  text-align: center;
  transform: translateX(-50%);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  animation: toast-in 0.3s ease-out;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translate(-50%, 12px);
  }
}

/* ===== landing ===== */
.opening {
  padding: 40px 0 24px;
  text-align: center;
}

.whos-there {
  margin: 0;
  font-family: var(--font-title);
  font-size: clamp(3rem, 16vw, 5rem);
  line-height: 1.1;
  color: var(--paper);
  text-shadow: 0 0 40px rgba(242, 193, 78, 0.35);
  animation: emerge 1.6s ease-out both;
}

.opening-source {
  margin: 8px 0 0;
  font-size: 0.85rem;
  color: var(--text-dim);
  animation: emerge 1.6s ease-out 0.6s both;
}


@keyframes emerge {
  from {
    opacity: 0;
    filter: blur(6px);
  }
}

.landing-intro {
  margin: 0 0 24px;
  font-size: 1rem;
  line-height: 1.9;
}

.landing-intro strong {
  color: var(--gold);
}

.merits {
  display: grid;
  gap: 10px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}

.merits li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 16px;
  border: 1px solid rgba(242, 193, 78, 0.35);
  border-radius: 14px;
  background: rgba(255, 250, 240, 0.05);
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--text-dim);
}

.merits strong {
  display: block;
  font-size: 1rem;
  color: var(--text);
}

.merit-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(242, 193, 78, 0.15);
  font-size: 1.2rem;
}

.register,
.card-panel {
  display: grid;
  gap: 16px;
  padding: 24px 20px;
  border: 3px solid var(--gold-deep);
  border-radius: 18px;
  background: var(--paper);
  color: var(--ink);
}

.register h2 {
  margin: 0;
  font-family: var(--font-title);
  font-size: 1.3rem;
  color: var(--velvet);
  text-align: center;
}

.register .btn {
  width: 100%;
}

/* ===== キャラの絵 ===== */
.figure-frame {
  width: 150px;
  margin: 0 auto;
  padding: 18px 12px 6px;
  border-radius: 50% 50% 16px 16px;
  background: radial-gradient(circle at 50% 40%, #fff3c7, var(--gold) 70%, var(--gold-deep));
}

.figure-frame svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

/* 静止画なので、目は開けて口は閉じた顔だけを見せる */
.eyes-closed,
.mouth-talk {
  display: none;
}

.figure-frame .shadow {
  fill: rgba(0, 0, 0, 0.2);
}

.figure-frame.is-large {
  width: 190px;
  margin-top: 20px;
}

.figure-frame.is-small {
  width: 84px;
  padding: 10px 6px 4px;
}

/* ===== プロスペロー ===== */
.welcome {
  padding-top: 24px;
  text-align: center;
}

.speaker {
  margin: 16px 0 0;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.welcome-title {
  margin: 4px 0 16px;
  font-family: var(--font-title);
  font-size: clamp(1.8rem, 8vw, 2.4rem);
  color: var(--paper);
}

.welcome-text {
  text-align: left;
  font-size: 1.02rem;
  line-height: 2;
}

.welcome-text p {
  margin: 0 0 12px;
}

.quote {
  margin: 24px 0;
  padding: 18px 20px;
  border-left: 3px solid var(--gold);
  background: rgba(255, 250, 240, 0.05);
  border-radius: 0 12px 12px 0;
  text-align: left;
}

.quote p {
  margin: 0;
  font-family: var(--font-title);
  font-size: 1.1rem;
  line-height: 1.8;
}

.quote p[lang="en"] {
  margin-top: 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-size: 0.9rem;
  color: var(--text-dim);
}

.welcome .btn {
  min-width: 220px;
}

.welcome-start-top {
  margin-bottom: 24px;
}

/* ===== 問い ===== */
.question {
  padding-top: 16px;
}

.progress {
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 250, 240, 0.12);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--gold);
  transition: width 0.3s ease;
}

.question-count {
  margin: 16px 0 0;
  font-family: var(--font-title);
  font-size: 1.4rem;
  color: var(--gold);
}

.question-count span {
  font-size: 0.9rem;
  color: var(--text-dim);
}

.question-text {
  margin: 6px 0 24px;
  font-family: var(--font-title);
  font-size: clamp(1.35rem, 6vw, 1.75rem);
  line-height: 1.6;
  color: var(--paper);
}

.choices {
  display: grid;
  gap: 12px;
}

.choice {
  display: flex;
  gap: 14px;
  align-items: center;
  width: 100%;
  min-height: 64px;
  padding: 14px 16px;
  border: 2px solid rgba(242, 193, 78, 0.45);
  border-radius: 14px;
  background: rgba(255, 250, 240, 0.06);
  color: var(--text);
  text-align: left;
  font-size: 1rem;
  line-height: 1.6;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition:
    background 0.15s ease,
    border-color 0.15s ease;
}

@media (hover: hover) {
  .choice:hover {
    background: rgba(242, 193, 78, 0.12);
  }
}

.choice.is-picked {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--ink);
}

.choice:disabled {
  cursor: default;
}

.choice-label {
  flex: none;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid currentColor;
  font-weight: 700;
  font-size: 0.9rem;
}

.back {
  display: block;
  margin: 24px auto 0;
  min-height: 44px;
  padding: 8px 16px;
  border: none;
  background: none;
  color: var(--text-dim);
  font-size: 0.95rem;
  cursor: pointer;
}

.back:disabled {
  visibility: hidden;
}

.casting-wait {
  display: grid;
  place-items: center;
  gap: 16px;
  min-height: 50vh;
  text-align: center;
  font-family: var(--font-title);
  font-size: 1.2rem;
  color: var(--gold);
}

.casting-wait p {
  animation: breathe 1.6s ease-in-out infinite alternate;
}

@keyframes breathe {
  to {
    opacity: 0.45;
  }
}

/* ===== 配役発表 ===== */
.tabs {
  display: flex;
  gap: 4px;
  margin: 8px 0 24px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 250, 240, 0.08);
}

.tabs a {
  flex: 1;
  padding: 8px;
  border-radius: 999px;
  text-align: center;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-dim);
}

.tabs a[aria-current="page"] {
  background: var(--gold);
  color: var(--ink);
}

.role-head {
  text-align: center;
}

.role-label {
  margin: 0;
  color: var(--text-dim);
  font-size: 1rem;
}

.role-name {
  margin: 4px 0 0;
  font-family: var(--font-title);
  font-size: clamp(2.4rem, 12vw, 3.4rem);
  line-height: 1.2;
  color: var(--paper);
  text-shadow: 0 0 40px rgba(242, 193, 78, 0.4);
}

.role-play {
  margin: 4px 0 0;
  color: var(--gold);
}

.role-types {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 20px 0 0;
  font-weight: 700;
  color: var(--text-dim);
}

.role-types span {
  padding: 4px 14px;
  border: 1px solid var(--gold-deep);
  border-radius: 999px;
  color: var(--gold);
}

.badge {
  display: inline-block;
  margin: 12px 0 0;
  padding: 4px 14px;
  border-radius: 999px;
  background: var(--velvet);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
}

.casting-text {
  margin: 28px 0 0;
  padding: 24px 20px;
  border-radius: 16px;
  background: var(--paper);
  color: var(--ink);
}

.casting-text p {
  margin: 0;
  font-size: 1.08rem;
  line-height: 2;
}

.casting-text p + p {
  margin-top: 10px;
}

.casting-text p:last-child {
  margin-top: 16px;
  font-family: var(--font-title);
  font-size: 1.25rem;
  color: var(--velvet);
}

.role-section {
  margin-top: 28px;
}

.role-section h2 {
  margin: 0 0 8px;
  font-family: var(--font-title);
  font-size: 1.2rem;
  color: var(--gold);
}

.role-section p {
  margin: 0;
  line-height: 1.9;
}

.stats-line {
  padding: 16px;
  border-radius: 14px;
  background: rgba(255, 250, 240, 0.06);
  text-align: center;
}

.stats-line:empty {
  display: none;
}

.stats-line .count {
  white-space: nowrap;
  font-family: var(--font-title);
  font-size: 1.8rem;
  color: var(--gold);
}

.stats-line small {
  display: block;
  color: var(--text-dim);
}

.costar {
  padding: 16px 18px;
  border: 1px solid rgba(242, 193, 78, 0.35);
  border-radius: 14px;
}

.costar-body {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 10px;
}

.costar-body .figure-frame {
  margin: 0;
  flex: none;
}

.costar-types {
  margin-top: 2px !important;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.costar-name {
  font-weight: 700;
  font-size: 1.1rem;
}

.costar-name small {
  font-weight: 500;
  color: var(--text-dim);
}

.actions {
  display: grid;
  gap: 12px;
  margin-top: 32px;
}

.about {
  margin-top: 28px;
  padding: 14px 18px;
  border-radius: 14px;
  background: rgba(255, 250, 240, 0.06);
}

.about summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--gold);
}

.about p {
  margin: 12px 0 0;
  font-size: 0.95rem;
  line-height: 1.9;
  color: var(--text-dim);
}

.retake {
  margin-top: 24px;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-dim);
}

/* 配役発表の幕開け */
.role.is-reveal .role-label {
  animation: emerge 0.8s ease-out both;
}

.role.is-reveal .role-name {
  animation: emerge 1.2s ease-out 0.5s both;
}

.role.is-reveal .role-play,
.role.is-reveal .figure-frame,
.role.is-reveal .role-types,
.role.is-reveal .badge {
  animation: emerge 1s ease-out 1.1s both;
}

/* キャラカードのプレビュー */
.card-preview {
  width: min(480px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  padding: 16px;
  border: 2px solid var(--gold-deep);
  border-radius: 18px;
  background: var(--bg);
  color: var(--text);
  overflow-y: auto;
}

.card-preview::backdrop {
  background: rgba(0, 0, 0, 0.75);
}

.card-preview img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  /* iPhone で長押し保存できるようにする */
  -webkit-touch-callout: default;
}

.card-preview-hint {
  margin: 10px 0 0;
  font-size: 0.82rem;
  color: var(--text-dim);
  text-align: center;
}

.card-preview-status {
  margin: 10px 0 0;
  text-align: center;
  font-weight: 700;
  color: var(--gold);
}

.card-preview-status:empty {
  display: none;
}

.card-preview-actions {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

/* ===== 会員証 ===== */
.member-card {
  position: relative;
  padding: 20px;
  border: 3px solid var(--gold);
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 40%),
    linear-gradient(160deg, #5c0f1f, #2a0a14);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), inset 0 0 0 6px rgba(242, 193, 78, 0.15);
}

.member-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.brand {
  margin: 0;
  font-weight: 700;
  letter-spacing: 0.3em;
  font-size: 0.8rem;
  color: var(--gold);
}

.founding {
  margin: 0;
  padding: 2px 12px;
  border-radius: 999px;
  background: linear-gradient(var(--gold), var(--gold-deep));
  color: var(--ink);
  font-weight: 700;
  font-size: 0.8rem;
}

.member-card-body {
  display: flex;
  gap: 16px;
  align-items: center;
  margin: 16px 0;
}

.member-card-body .figure-frame {
  margin: 0;
  flex: none;
}

.member-no {
  margin: 0;
  font-family: var(--font-title);
  /* 会員番号は8桁。スマホでもカードからはみ出さない大きさに */
  font-size: clamp(1.35rem, 6.4vw, 2.1rem);
  white-space: nowrap;
  line-height: 1.1;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}

.member-name {
  margin: 4px 0 0;
  font-weight: 700;
  font-size: 1.15rem;
  overflow-wrap: anywhere;
}

.member-role {
  margin: 2px 0 0;
  color: var(--text-dim);
}

.member-role small {
  margin-left: 4px;
}

.member-meta {
  display: flex;
  gap: 24px;
  margin: 0;
  padding-top: 12px;
  border-top: 1px solid rgba(242, 193, 78, 0.3);
  font-size: 0.85rem;
}

.member-meta dt,
.member-info dt {
  color: var(--text-dim);
}

.member-meta dd,
.member-info dd {
  margin: 0;
  font-weight: 700;
}

.member-info dt {
  color: var(--ink-soft);
}

.member-note {
  margin: 12px 0 0;
  font-size: 0.85rem;
  color: var(--text-dim);
  text-align: center;
}

.reward {
  margin-top: 28px;
  padding: 24px 20px;
  border: 2px dashed var(--gold-deep);
  border-radius: 18px;
  text-align: center;
}

.reward .lock {
  margin: 0;
  font-size: 2rem;
}

.reward h2 {
  margin: 4px 0 8px;
  font-family: var(--font-title);
  color: var(--gold);
}

.reward p {
  margin: 0;
  color: var(--text-dim);
}

.member-section {
  display: grid;
  gap: 10px;
  margin-top: 20px;
  padding: 20px;
  border-radius: 16px;
  background: var(--paper);
  color: var(--ink);
}

.member-section h2 {
  margin: 0;
  font-size: 1.05rem;
}

.member-section h2 small {
  font-weight: 500;
  color: var(--ink-soft);
}

.member-info {
  margin: 0;
}

.member-info dd {
  overflow-wrap: anywhere;
}

/* ===== 管理画面 ===== */
.admin-page #admin {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 16px 64px;
}

.admin-login {
  display: grid;
  gap: 16px;
  max-width: 360px;
  margin: 15vh auto 0;
  padding: 24px;
  border-radius: 16px;
  background: var(--paper);
  color: var(--ink);
}

.admin-login h1,
.admin-head h1 {
  margin: 0;
  font-size: 1.3rem;
}

.admin-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.admin-stats .stat {
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 250, 240, 0.08);
}

.admin-stats .stat p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.admin-stats .stat strong {
  font-size: 1.8rem;
  font-variant-numeric: tabular-nums;
}

.admin-stats .stat small {
  margin-left: 6px;
  color: var(--text-dim);
}

.admin-stats .stat.is-alert {
  outline: 2px solid var(--gold);
}

.followup {
  margin: 0 0 20px;
  padding: 16px 18px;
  border: 2px solid var(--gold-deep);
  border-radius: 14px;
}

.followup h2 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  color: var(--gold);
}

.followup p {
  margin: 0 0 10px;
}

.followup details {
  margin: 0 0 10px;
}

.followup summary {
  cursor: pointer;
  font-weight: 700;
}

.followup-subject {
  margin-top: 8px !important;
  font-weight: 700;
}

.followup-text {
  margin: 0;
  padding: 12px;
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.85rem;
  white-space: pre-wrap;
}

.followup .btn {
  min-height: 44px;
  font-size: 0.95rem;
}

.followup-result {
  margin-top: 10px !important;
  font-weight: 700;
  color: var(--gold);
}

.admin-note {
  margin: 0 0 16px;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

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

.filter {
  min-height: 40px;
  padding: 4px 16px;
  border: 2px solid var(--gold-deep);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
}

.filter[aria-pressed="true"] {
  background: var(--gold);
  color: var(--ink);
}

.admin-toolbar .btn {
  min-height: 40px;
  padding: 6px 18px;
  font-size: 0.9rem;
}

.table-wrap {
  overflow-x: auto;
  border-radius: 12px;
  background: var(--paper);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  color: var(--ink);
  font-size: 0.88rem;
}

.admin-table th,
.admin-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(43, 29, 20, 0.12);
  text-align: left;
  white-space: nowrap;
}

.admin-table td:nth-child(6) {
  white-space: normal;
  min-width: 160px;
}

.admin-table th {
  background: var(--paper-2);
  font-size: 0.8rem;
}

.admin-table .empty {
  text-align: center;
  color: var(--ink-soft);
}

.tag {
  margin-left: 6px;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 700;
}

.tag.is-alert {
  margin: 0;
  background: #fde8ea;
  color: var(--danger);
}

.link.danger {
  color: var(--danger);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    transition-duration: 0.01ms !important;
  }
}
