/* ABYSS+ デモ — ログイン / マイページ共通（漆黒 × 金ライン） */

:root {
  --dash-gold: #c5a059;
  --dash-gold-dim: rgba(197, 160, 89, 0.35);
  --dash-bg: #030308;
  --dash-panel: rgba(8, 10, 18, 0.92);
  --dash-text: rgba(255, 255, 255, 0.88);
  --dash-muted: rgba(255, 255, 255, 0.52);
  --dash-mono: "Space Mono", ui-monospace, monospace;
  --dash-ui: "Space Grotesk", "Manrope", system-ui, sans-serif;
  --dash-display: "Cinzel", serif;
}

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

html,
body {
  margin: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

body.dash-page {
  min-height: 100dvh;
  font-family: "Noto Sans JP", var(--dash-ui);
  font-size: 0.875rem;
  color: var(--dash-text);
  background: var(--dash-bg);
  line-height: 1.5;
}

/* 背景グリッド */
.dash-bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(197, 160, 89, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(197, 160, 89, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 55% at 50% 40%, black 20%, transparent 72%);
}

/* -------------------------------------------------------------------------
   login.html — 会員ゲート / アイデンティティ
   ------------------------------------------------------------------------- */

.login-page {
  overflow-x: clip;
}

.login-page .dash-bg-grid {
  mask-image: radial-gradient(ellipse 72% 58% at 50% 38%, black 15%, transparent 70%);
  opacity: 0.85;
}

.login-vignette {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(
    ellipse 55% 45% at 50% 42%,
    transparent 0%,
    rgba(0, 0, 0, 0.55) 100%
  );
}

.login-shell {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: max(1rem, env(safe-area-inset-top, 0px));
  padding-bottom: max(1.25rem, env(safe-area-inset-bottom, 0px));
  padding-left: max(0.75rem, env(safe-area-inset-left, 0px));
  padding-right: max(0.75rem, env(safe-area-inset-right, 0px));
}

.login-portal {
  width: 100%;
  max-width: 56rem;
  box-sizing: border-box;
  padding: clamp(1.15rem, 4vw, 2.25rem) clamp(0.85rem, 4vw, 2rem);
  border: 1px solid rgba(197, 160, 89, 0.22);
  background:
    linear-gradient(145deg, rgba(197, 160, 89, 0.04) 0%, transparent 42%),
    linear-gradient(180deg, rgba(8, 10, 20, 0.75) 0%, rgba(3, 4, 10, 0.92) 100%);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.5),
    0 24px 80px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px);
}

.login-hero {
  text-align: center;
  margin-bottom: clamp(1.75rem, 4vw, 2.35rem);
}

.login-protocol {
  margin: 0 auto 0.65rem;
  max-width: 22rem;
  font-family: var(--dash-mono);
  font-size: clamp(0.5rem, 0.42rem + 0.9vw, 0.52rem);
  font-weight: 500;
  letter-spacing: clamp(0.1em, 0.06em + 0.8vw, 0.32em);
  line-height: 1.5;
  color: rgba(197, 160, 89, 0.45);
  word-break: break-word;
}

.login-brand {
  margin: 0;
  font-family: var(--dash-display);
  font-size: clamp(1.45rem, 6.5vw + 0.5rem, 2.65rem);
  font-weight: 500;
  letter-spacing: clamp(0.18em, 0.08em + 1.2vw, 0.42em);
  text-indent: clamp(0.18em, 0.08em + 1.2vw, 0.42em);
  color: rgba(250, 245, 235, 0.96);
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.login-brand-rule {
  width: min(12rem, 55%);
  height: 1px;
  margin: 1rem auto 0.85rem;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(197, 160, 89, 0.15) 15%,
    rgba(197, 160, 89, 0.65) 50%,
    rgba(197, 160, 89, 0.15) 85%,
    transparent
  );
}

.login-tagline {
  margin: 0 0 1.1rem;
  font-size: 0.62rem;
  letter-spacing: 0.26em;
  color: var(--dash-muted);
}

.login-heading {
  margin: 0 0 0.5rem;
  padding: 0 0.25rem;
  font-family: var(--dash-display);
  font-size: clamp(0.62rem, 0.55rem + 0.9vw, 0.78rem);
  font-weight: 500;
  letter-spacing: clamp(0.12em, 0.08em + 0.35vw, 0.24em);
  line-height: 1.45;
  color: var(--dash-gold);
}

.login-sub {
  margin: 0;
  padding: 0 0.35rem;
  font-size: clamp(0.62rem, 0.58rem + 0.45vw, 0.72rem);
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.38);
  line-height: 1.6;
}

.login-identities {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* モバイルファースト: 1 → 2 → 3 → 6 列 */
.login-identities--tiered {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.75rem;
}

@media (min-width: 28rem) {
  .login-identities--tiered {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
  }

  .login-identities--tiered > li:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    justify-self: center;
    width: 100%;
    max-width: min(20rem, 100%);
  }
}

@media (min-width: 42rem) {
  .login-identities--tiered > li:last-child:nth-child(odd) {
    grid-column: auto;
    justify-self: stretch;
    max-width: none;
  }

  .login-identities--tiered {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
  }
}

@media (min-width: 60rem) {
  .login-identities--tiered {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: clamp(0.65rem, 1.5vw, 1rem);
  }

  .login-identities--tiered > li:nth-child(1),
  .login-identities--tiered > li:nth-child(2),
  .login-identities--tiered > li:nth-child(3) {
    grid-column: span 2;
  }

  .login-identities--tiered > li:nth-child(4) {
    grid-column: 2 / span 2;
  }

  .login-identities--tiered > li:nth-child(5) {
    grid-column: 4 / span 2;
  }
}

.login-identity {
  --identity-accent: rgba(197, 160, 89, 0.85);
  --identity-glow: rgba(197, 160, 89, 0.12);
  position: relative;
  display: flex;
  align-items: stretch;
  width: 100%;
  min-width: 0;
  min-height: clamp(4.75rem, 12vw, 5.75rem);
  padding: 0;
  border: 1px solid rgba(197, 160, 89, 0.28);
  background: linear-gradient(
    118deg,
    rgba(197, 160, 89, 0.07) 0%,
    rgba(0, 0, 0, 0.42) 48%,
    rgba(0, 0, 0, 0.58) 100%
  );
  cursor: pointer;
  text-align: left;
  color: inherit;
  font: inherit;
  overflow: hidden;
  transition:
    border-color 0.35s ease,
    box-shadow 0.35s ease,
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.login-identity[data-plan="A"] {
  --identity-accent: rgba(200, 195, 175, 0.9);
  --identity-glow: rgba(200, 195, 175, 0.1);
}

.login-identity[data-plan="B"] {
  --identity-accent: rgba(160, 175, 200, 0.88);
  --identity-glow: rgba(160, 175, 200, 0.12);
}

.login-identity[data-plan="Y"] {
  --identity-accent: rgba(197, 160, 89, 0.92);
  --identity-glow: rgba(197, 160, 89, 0.14);
}

.login-identity[data-plan="S"] {
  --identity-accent: rgba(130, 200, 185, 0.9);
  --identity-glow: rgba(130, 200, 185, 0.12);
}

.login-identity[data-plan="SPLUS"],
.login-identity--splus {
  --identity-accent: rgba(220, 130, 140, 0.92);
  --identity-glow: rgba(200, 80, 95, 0.18);
}

.login-identity__rail {
  width: 3px;
  flex-shrink: 0;
  background: linear-gradient(
    180deg,
    transparent 5%,
    var(--identity-accent) 45%,
    var(--identity-accent) 55%,
    transparent 95%
  );
  opacity: 0.75;
}

.login-identity__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.2rem;
  padding: clamp(0.75rem, 2.5vw, 0.95rem) clamp(0.65rem, 2vw, 0.85rem)
    clamp(0.75rem, 2.5vw, 0.95rem) clamp(0.75rem, 2vw, 1rem);
}

.login-identity__tier {
  font-family: var(--dash-display);
  font-size: clamp(1.05rem, 4vw + 0.4rem, 1.5rem);
  font-weight: 500;
  letter-spacing: clamp(0.1em, 0.06em + 0.4vw, 0.18em);
  color: rgba(252, 248, 240, 0.96);
  line-height: 1.1;
}

.login-identity__code {
  font-family: var(--dash-mono);
  font-size: clamp(0.45rem, 0.35rem + 0.55vw, 0.52rem);
  font-weight: 500;
  letter-spacing: clamp(0.08em, 0.04em + 0.35vw, 0.2em);
  line-height: 1.35;
  color: var(--identity-accent);
  opacity: 0.88;
  overflow-wrap: anywhere;
}

.login-identity__name {
  font-size: clamp(0.58rem, 0.52rem + 0.35vw, 0.65rem);
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.42);
  margin-top: 0.1rem;
  line-height: 1.4;
}

.login-identity__corner {
  position: absolute;
  width: 0.55rem;
  height: 0.55rem;
  border-color: rgba(197, 160, 89, 0.35);
  border-style: solid;
  pointer-events: none;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.login-identity__corner--tl {
  top: 0.35rem;
  right: 0.35rem;
  border-width: 1px 1px 0 0;
}

.login-identity__corner--br {
  bottom: 0.35rem;
  left: 0.5rem;
  border-width: 0 0 1px 1px;
}

.login-identity:hover .login-identity__corner,
.login-identity:focus-visible .login-identity__corner {
  opacity: 1;
  border-color: rgba(197, 160, 89, 0.55);
}

.login-identity:hover,
.login-identity:focus-visible {
  outline: none;
  border-color: color-mix(in srgb, var(--identity-accent) 55%, rgba(197, 160, 89, 0.5));
  box-shadow:
    0 0 0 1px var(--identity-glow),
    0 12px 40px rgba(0, 0, 0, 0.35),
    0 0 32px var(--identity-glow);
  transform: translateY(-3px);
}

.login-identity--splus:hover,
.login-identity--splus:focus-visible {
  box-shadow:
    0 0 0 1px rgba(200, 70, 85, 0.2),
    0 12px 40px rgba(0, 0, 0, 0.4),
    0 0 36px rgba(180, 50, 65, 0.15);
}

.login-footer {
  margin-top: clamp(1.75rem, 4vw, 2.25rem);
  padding-top: 1.25rem;
  border-top: 1px solid rgba(197, 160, 89, 0.12);
  text-align: center;
}

.login-back {
  display: inline-block;
  box-sizing: border-box;
  min-height: 2.75rem;
  padding: 0.35rem 0.5rem;
  line-height: 1.6;
  font-family: var(--dash-mono);
  font-size: clamp(0.5rem, 0.45rem + 0.4vw, 0.55rem);
  letter-spacing: 0.22em;
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition:
    color 0.25s ease,
    border-color 0.25s ease,
    letter-spacing 0.25s ease;
}

.login-back:hover,
.login-back:focus-visible {
  color: var(--dash-gold);
  border-bottom-color: var(--dash-gold-dim);
  letter-spacing: 0.26em;
}

@media (max-width: 27.99rem) {
  .login-portal {
    padding-inline: max(0.65rem, env(safe-area-inset-left, 0px))
      max(0.65rem, env(safe-area-inset-right, 0px));
    border-left: 0;
    border-right: 0;
  }

  .login-tagline {
    letter-spacing: 0.18em;
  }
}

@supports not (color: color-mix(in srgb, white, black)) {
  .login-identity:hover,
  .login-identity:focus-visible {
    border-color: rgba(197, 160, 89, 0.55);
  }
}

/* 認証オーバーレイ（生体スキャン + 暗号解読） */
.auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: max(0.75rem, env(safe-area-inset-top, 0px))
    max(0.75rem, env(safe-area-inset-right, 0px))
    max(0.75rem, env(safe-area-inset-bottom, 0px))
    max(0.75rem, env(safe-area-inset-left, 0px));
  box-sizing: border-box;
  background: rgba(0, 0, 0, 0.94);
}

.auth-overlay.is-active {
  display: flex;
}

.auth-overlay__frame {
  position: relative;
  width: min(22rem, 100%);
  max-width: 100%;
  aspect-ratio: 3 / 4;
  border: 1px solid rgba(197, 160, 89, 0.4);
  background: rgba(4, 6, 14, 0.95);
  overflow: hidden;
}

.auth-overlay__silhouette {
  position: absolute;
  inset: 12% 18%;
  border: 1px solid rgba(197, 160, 89, 0.2);
  border-radius: 50% 50% 42% 42%;
  opacity: 0.35;
}

.auth-overlay__scan {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(197, 160, 89, 0.95),
    rgba(255, 230, 180, 0.9),
    rgba(197, 160, 89, 0.95),
    transparent
  );
  box-shadow: 0 0 18px rgba(197, 160, 89, 0.55);
  animation: auth-scan 1.6s ease-in-out infinite;
}

@keyframes auth-scan {
  0% {
    top: 8%;
    opacity: 0.4;
  }
  50% {
    opacity: 1;
  }
  100% {
    top: 92%;
    opacity: 0.4;
  }
}

.auth-overlay__label {
  margin-top: 1.75rem;
  font-family: var(--dash-mono);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  color: var(--dash-gold);
}

.auth-overlay__cipher {
  margin-top: 0.75rem;
  box-sizing: border-box;
  width: 100%;
  max-width: min(36rem, 100%);
  padding-inline: max(0.75rem, env(safe-area-inset-left, 0px))
    max(0.75rem, env(safe-area-inset-right, 0px));
  font-family: var(--dash-mono);
  font-size: clamp(0.55rem, 0.5rem + 0.5vw, 0.68rem);
  letter-spacing: 0.06em;
  color: rgba(180, 220, 200, 0.75);
  text-align: center;
  word-break: break-word;
  overflow-wrap: anywhere;
  line-height: 1.65;
  min-height: 3.2rem;
}

/* -------------------------------------------------------------------------
   mypage.html
   ------------------------------------------------------------------------- */

.mypage {
  --gold-lux: 0.65;
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* ライブステータスバー */
.status-bar {
  position: sticky;
  top: 0;
  z-index: 45;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 1rem;
  padding: 0.35rem clamp(0.75rem, 2vw, 1.25rem);
  border-bottom: 1px solid rgba(197, 160, 89, 0.18);
  background: rgba(0, 0, 0, 0.88);
  font-family: var(--dash-mono);
  font-size: 0.58rem;
  letter-spacing: 0.06em;
  color: var(--dash-muted);
}

.status-bar__item strong {
  color: rgba(230, 220, 200, 0.92);
  font-weight: 400;
}

.status-bar__sep {
  opacity: 0.35;
  user-select: none;
}

.status-bar__neural-slot {
  display: none;
  align-items: center;
  gap: 0.45rem;
  padding: 0.05rem 0;
}

.mypage--splus .status-bar__hr-item {
  display: none;
}

.mypage--splus .status-bar__neural-slot {
  display: inline-flex;
}

.status-bar__neural-canvas {
  display: block;
  width: min(200px, 42vw);
  height: auto;
  border: 1px solid rgba(197, 160, 89, 0.28);
  background: rgba(0, 0, 0, 0.4);
}

.status-bar__neural-caption {
  font-size: 0.5rem;
  letter-spacing: 0.2em;
  color: rgba(197, 160, 89, 0.5);
}

/* Chart.js ラッパ */
.chart-wrap {
  position: relative;
  width: 100%;
  height: min(260px, 52vw);
  margin-top: 0.25rem;
}

.chart-wrap canvas {
  max-height: 260px;
}

/* ゴールド輝度プレビュー */
.gold-lux-preview {
  height: 10px;
  border-radius: 2px;
  margin-top: 0.55rem;
  border: 1px solid rgba(197, 160, 89, 0.25);
  background: linear-gradient(90deg, #070605 0%, #1a1510 45%, #c5a059 100%);
  filter: brightness(calc(0.35 + var(--gold-lux) * 1.15));
  box-shadow:
    0 0 calc(6px + var(--gold-lux) * 28px) rgba(197, 160, 89, calc(0.12 + var(--gold-lux) * 0.38)),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  transition: filter 0.15s ease, box-shadow 0.15s ease;
}

/* UPGRADE PLAN */
.upgrade-match-label {
  margin: 0 0 0.4rem;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  color: var(--dash-muted);
}

.upgrade-progress-track {
  height: 3px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 1px;
  overflow: hidden;
  margin-bottom: 0.45rem;
}

.upgrade-progress-fill {
  height: 100%;
  width: 40%;
  background: linear-gradient(90deg, rgba(197, 160, 89, 0.25), rgba(197, 160, 89, 0.95));
  box-shadow: 0 0 12px rgba(197, 160, 89, 0.35);
  transition: width 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}

.upgrade-match-value {
  margin: 0;
  font-family: var(--dash-mono);
  font-size: 0.85rem;
  color: rgba(230, 215, 190, 0.9);
}

.upgrade-note {
  margin: 0.65rem 0 0;
  font-size: 0.72rem;
  line-height: 1.6;
  color: var(--dash-muted);
}

.upgrade-request-btn {
  margin-top: 1rem;
  padding: 0.55rem 1.1rem;
  border: 1px solid rgba(197, 160, 89, 0.55);
  background: rgba(197, 160, 89, 0.12);
  color: var(--dash-gold);
  font-family: var(--dash-mono);
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  cursor: pointer;
  transition:
    background 0.2s ease,
    box-shadow 0.25s ease,
    transform 0.2s ease;
}

.upgrade-request-btn:hover:not(:disabled),
.upgrade-request-btn:focus-visible:not(:disabled) {
  background: rgba(197, 160, 89, 0.22);
  box-shadow: 0 0 18px rgba(197, 160, 89, 0.2);
  outline: none;
}

.upgrade-request-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.upgrade-request-status {
  margin: 0.65rem 0 0;
  min-height: 1.25rem;
  font-family: var(--dash-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  color: rgba(197, 160, 89, 0.75);
}

.upgrade-request-status.is-analyzing {
  animation: upgrade-analyze-pulse 1.1s ease-in-out infinite;
}

@keyframes upgrade-analyze-pulse {
  0%,
  100% {
    opacity: 0.55;
  }
  50% {
    opacity: 1;
  }
}

/* リモート設定同期トースト（画面隅） */
.remote-config-toast {
  position: fixed;
  top: clamp(3.25rem, 10vw, 4.5rem);
  right: clamp(0.65rem, 2.5vw, 1.25rem);
  z-index: 140;
  max-width: min(16rem, calc(100vw - 1.5rem));
  padding: 0.4rem 0.55rem;
  border: 1px solid rgba(197, 160, 89, 0.18);
  background: rgba(4, 6, 10, 0.82);
  font-family: var(--dash-mono);
  font-size: 0.48rem;
  letter-spacing: 0.14em;
  line-height: 1.45;
  color: rgba(197, 160, 89, 0.42);
  text-align: right;
  opacity: 0;
  transform: translateY(-6px);
  transition:
    opacity 0.45s ease,
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

.remote-config-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* 到着前カスタマイズ */
.prearrival-grid {
  display: grid;
  gap: 1.15rem;
}

.scent-fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.scent-fieldset legend {
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  color: var(--dash-muted);
  margin-bottom: 0.45rem;
}

.segmented {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.segment {
  flex: 1;
  min-width: 5.5rem;
  padding: 0.45rem 0.5rem;
  border: 1px solid rgba(197, 160, 89, 0.28);
  background: rgba(0, 0, 0, 0.35);
  color: var(--dash-muted);
  font-family: var(--dash-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    color 0.2s ease,
    background 0.2s ease;
}

.segment:hover,
.segment:focus-visible {
  border-color: rgba(197, 160, 89, 0.5);
  outline: none;
}

.segment.is-active {
  border-color: rgba(197, 160, 89, 0.65);
  color: var(--dash-gold);
  background: rgba(197, 160, 89, 0.1);
}

.linen-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.linen-row__label {
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  color: var(--dash-muted);
}

.linen-toggle {
  display: flex;
  border: 1px solid rgba(197, 160, 89, 0.35);
  border-radius: 2px;
  overflow: hidden;
}

.linen-toggle__btn {
  padding: 0.4rem 0.85rem;
  border: 0;
  background: rgba(0, 0, 0, 0.4);
  color: var(--dash-muted);
  font-family: var(--dash-mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.linen-toggle__btn.is-active {
  background: rgba(197, 160, 89, 0.18);
  color: var(--dash-gold);
}

.linen-toggle__btn:hover,
.linen-toggle__btn:focus-visible {
  outline: none;
  color: var(--dash-gold);
}

/* Add-on テーブル */
.addon-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
}

.addon-table td {
  padding: 0.65rem 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  vertical-align: middle;
}

.addon-table td:first-child {
  font-family: var(--dash-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: rgba(230, 220, 205, 0.88);
}

.addon-table__price {
  text-align: right;
  font-family: var(--dash-mono);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  color: rgba(200, 185, 160, 0.65);
  white-space: nowrap;
  width: 5.5rem;
}

.addon-table__action {
  text-align: right;
  width: 7rem;
  vertical-align: middle;
}

.addon-total-row td {
  border-bottom: 0;
  border-top: 1px solid rgba(197, 160, 89, 0.22);
  padding-top: 0.85rem;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--dash-muted);
}

.addon-total-row td:first-child {
  color: var(--dash-muted);
}

.addon-total-value {
  display: inline-block;
  font-family: var(--dash-mono);
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
  color: rgba(230, 215, 190, 0.95);
  transition:
    transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    color 0.25s ease;
}

.addon-total-value.addon-total-value--tick {
  transform: scale(1.06);
  color: rgba(255, 235, 200, 1);
}

.addon-btn {
  padding: 0.38rem 0.65rem;
  border: 1px solid rgba(197, 160, 89, 0.45);
  background: transparent;
  color: var(--dash-gold);
  font-family: var(--dash-mono);
  font-size: 0.55rem;
  letter-spacing: 0.14em;
  cursor: pointer;
  transition: background 0.2s ease;
}

.addon-btn:hover,
.addon-btn:focus-visible {
  background: rgba(197, 160, 89, 0.12);
  outline: none;
}

.addon-btn.is-active {
  background: rgba(197, 160, 89, 0.22);
  color: rgba(255, 245, 220, 0.95);
}

/* Black-market Concierge（S+） */
.bm-fab {
  position: fixed;
  left: clamp(0.75rem, 3vw, 1.25rem);
  bottom: clamp(0.75rem, 3vw, 1.25rem);
  z-index: 160;
  padding: 0.65rem 0.85rem;
  border: 1px solid rgba(160, 48, 52, 0.55);
  background: rgba(18, 4, 6, 0.94);
  color: rgba(230, 120, 125, 0.92);
  font-family: var(--dash-mono);
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  cursor: pointer;
  box-shadow: 0 4px 28px rgba(0, 0, 0, 0.55);
  max-width: calc(100vw - 9rem);
  text-align: left;
  line-height: 1.35;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.bm-fab:hover,
.bm-fab:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(160, 48, 52, 0.25);
  outline: none;
}

.bm-terminal {
  position: fixed;
  left: clamp(0.5rem, 2vw, 1rem);
  bottom: clamp(3.5rem, 14vw, 5rem);
  z-index: 159;
  width: min(24rem, calc(100vw - 1.25rem));
  max-height: min(440px, 56vh);
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(160, 48, 52, 0.45);
  background: rgba(6, 2, 4, 0.98);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.6),
    0 12px 48px rgba(40, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px) scale(0.98);
  transition:
    opacity 0.35s ease,
    visibility 0.35s ease,
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.bm-terminal.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.bm-terminal__chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.45rem 0.55rem;
  border-bottom: 1px solid rgba(160, 48, 52, 0.28);
  font-family: var(--dash-mono);
  font-size: 0.52rem;
  letter-spacing: 0.1em;
  color: rgba(220, 100, 105, 0.85);
}

.bm-terminal__close {
  border: 0;
  background: transparent;
  color: rgba(200, 90, 95, 0.65);
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.1rem 0.35rem;
}

.bm-terminal__menu {
  padding: 0.45rem 0.55rem;
  border-bottom: 1px solid rgba(160, 48, 52, 0.15);
  font-size: 0.62rem;
  line-height: 1.55;
  color: var(--dash-muted);
}

.bm-terminal__menu code {
  font-family: var(--dash-mono);
  font-size: 0.58rem;
  color: rgba(200, 130, 120, 0.75);
}

.bm-terminal__body {
  flex: 1;
  overflow-y: auto;
  padding: 0.55rem 0.65rem;
  font-family: var(--dash-mono);
  font-size: 0.62rem;
  line-height: 1.55;
  color: rgba(235, 180, 175, 0.88);
  min-height: 9rem;
  max-height: 15rem;
}

.bm-terminal__line {
  margin: 0 0 0.35rem;
  word-break: break-word;
}

.bm-terminal__line--warn {
  color: rgba(200, 100, 95, 0.65);
}

.bm-terminal__line--cmd {
  color: rgba(255, 200, 190, 0.92);
}

.bm-terminal__input-row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.55rem;
  border-top: 1px solid rgba(160, 48, 52, 0.22);
  background: rgba(0, 0, 0, 0.5);
}

.bm-terminal__prompt {
  color: rgba(160, 48, 52, 0.9);
  font-family: var(--dash-mono);
  font-size: 0.75rem;
}

.bm-terminal__input-row input {
  flex: 1;
  border: 0;
  background: transparent;
  font-family: var(--dash-mono);
  font-size: 0.65rem;
  color: rgba(255, 220, 215, 0.95);
  outline: none;
}

.bm-terminal__exec {
  border: 1px solid rgba(160, 48, 52, 0.4);
  background: rgba(50, 8, 10, 0.6);
  color: rgba(235, 150, 145, 0.9);
  font-family: var(--dash-mono);
  font-size: 0.52rem;
  letter-spacing: 0.1em;
  padding: 0.35rem 0.5rem;
  cursor: pointer;
}

.butler-fab {
  position: fixed;
  right: clamp(0.75rem, 3vw, 1.25rem);
  bottom: clamp(0.75rem, 3vw, 1.25rem);
  z-index: 160;
  padding: 0.65rem 1rem;
  border: 1px solid rgba(197, 160, 89, 0.55);
  background: rgba(8, 10, 18, 0.92);
  color: var(--dash-gold);
  font-family: var(--dash-mono);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  cursor: pointer;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
}

.butler-fab:hover,
.butler-fab:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 0 22px rgba(197, 160, 89, 0.2);
  outline: none;
  background: rgba(197, 160, 89, 0.12);
}

.butler-terminal {
  position: fixed;
  right: clamp(0.5rem, 2vw, 1rem);
  bottom: clamp(3.5rem, 12vw, 4.5rem);
  z-index: 159;
  width: min(22rem, calc(100vw - 1.25rem));
  max-height: min(420px, 52vh);
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(80, 200, 120, 0.35);
  background: rgba(2, 6, 4, 0.97);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.5),
    0 12px 40px rgba(0, 0, 0, 0.55);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(0.98);
  transition:
    opacity 0.35s ease,
    visibility 0.35s ease,
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.butler-terminal.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.butler-terminal__chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.45rem 0.55rem;
  border-bottom: 1px solid rgba(80, 200, 120, 0.22);
  font-family: var(--dash-mono);
  font-size: 0.55rem;
  letter-spacing: 0.12em;
  color: rgba(140, 220, 160, 0.85);
  text-transform: uppercase;
}

.butler-terminal__close {
  border: 0;
  background: transparent;
  color: rgba(140, 220, 160, 0.65);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.1rem 0.35rem;
}

.butler-terminal__close:hover,
.butler-terminal__close:focus-visible {
  color: rgba(180, 255, 200, 0.95);
  outline: none;
}

.butler-terminal__body {
  flex: 1;
  overflow-y: auto;
  padding: 0.55rem 0.65rem;
  font-family: var(--dash-mono);
  font-size: 0.65rem;
  line-height: 1.55;
  color: rgba(160, 235, 190, 0.88);
  min-height: 10rem;
  max-height: 16rem;
}

.butler-terminal__line {
  margin: 0 0 0.35rem;
  word-break: break-word;
}

.butler-terminal__line--sys {
  color: rgba(120, 180, 150, 0.55);
}

.butler-terminal__line--in {
  color: rgba(200, 255, 215, 0.92);
}

.butler-terminal__input-row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.55rem;
  border-top: 1px solid rgba(80, 200, 120, 0.18);
  background: rgba(0, 0, 0, 0.45);
}

.butler-terminal__prompt {
  font-family: var(--dash-mono);
  font-size: 0.75rem;
  color: rgba(197, 160, 89, 0.85);
  flex-shrink: 0;
}

.butler-terminal__input-row input {
  flex: 1;
  border: 0;
  background: transparent;
  font-family: var(--dash-mono);
  font-size: 0.68rem;
  color: rgba(200, 245, 210, 0.95);
  outline: none;
}

.butler-terminal__exec {
  border: 1px solid rgba(80, 200, 120, 0.35);
  background: rgba(0, 40, 24, 0.5);
  color: rgba(160, 235, 190, 0.9);
  font-family: var(--dash-mono);
  font-size: 0.55rem;
  letter-spacing: 0.1em;
  padding: 0.35rem 0.5rem;
  cursor: pointer;
}

.butler-terminal__exec:hover,
.butler-terminal__exec:focus-visible {
  background: rgba(80, 200, 120, 0.15);
  outline: none;
}

.mypage-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 3vw, 2rem);
  border-bottom: 1px solid rgba(197, 160, 89, 0.22);
  background: rgba(2, 3, 8, 0.85);
  backdrop-filter: blur(10px);
}

.mypage-header__brand {
  font-family: var(--dash-display);
  font-size: 0.85rem;
  letter-spacing: 0.2em;
}

.mypage-header__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
}

.membership-capacity {
  font-family: var(--dash-mono);
  font-size: 0.55rem;
  letter-spacing: 0.14em;
  color: rgba(130, 200, 175, 0.55);
  padding: 0.25rem 0.45rem;
  border: 1px solid rgba(130, 200, 175, 0.22);
  background: rgba(0, 0, 0, 0.35);
  transition: color 0.35s ease, border-color 0.35s ease;
}

.membership-capacity.is-live-tick {
  color: rgba(160, 220, 195, 0.85);
  border-color: rgba(130, 200, 175, 0.38);
}

.mypage-plan-select {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.mypage-plan-select label {
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dash-muted);
}

.mypage-plan-select select {
  appearance: none;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid var(--dash-gold-dim);
  color: var(--dash-text);
  font-family: var(--dash-mono);
  font-size: 0.72rem;
  padding: 0.45rem 2rem 0.45rem 0.65rem;
  letter-spacing: 0.06em;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%23c5a059' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.55rem center;
  cursor: pointer;
}

.mypage-header__link {
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dash-muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.mypage-header__link:hover,
.mypage-header__link:focus-visible {
  color: var(--dash-gold);
  border-bottom-color: var(--dash-gold-dim);
}

.mypage-main {
  flex: 1;
  padding: clamp(1rem, 2.5vw, 1.75rem);
  width: min(112rem, 100%);
  margin-inline: auto;
}

/* ページ下部：予約カレンダー開閉 */
.mypage-bottom {
  margin-top: clamp(1.25rem, 3vw, 2rem);
  padding-bottom: clamp(1.5rem, 4vw, 2.5rem);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1rem;
}

.cal-toggle-btn {
  align-self: center;
  border: 1px solid rgba(197, 160, 89, 0.45);
  background: rgba(197, 160, 89, 0.1);
  color: var(--dash-gold);
  font-family: "Noto Sans JP", var(--dash-ui);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  padding: 0.75rem 1.75rem;
  cursor: pointer;
  transition:
    background 0.25s ease,
    box-shadow 0.25s ease;
}

.cal-toggle-btn:hover,
.cal-toggle-btn:focus-visible {
  background: rgba(197, 160, 89, 0.18);
  box-shadow: 0 0 20px rgba(197, 160, 89, 0.12);
  outline: none;
}

.cal-panel {
  margin-top: 0;
}

.mypage-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(12, 1fr);
}

/* -------------------------------------------------------------------------
   プロフィール / Identity（mypage）
   ------------------------------------------------------------------------- */

.biometric-entry-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.45s ease,
    visibility 0.45s ease;
  background: rgba(0, 0, 0, 0.72);
}

.biometric-entry-overlay.is-active {
  opacity: 1;
  visibility: visible;
}

.biometric-entry-overlay__scan {
  position: relative;
  width: min(22rem, 88vw);
  height: 2px;
  margin-bottom: 1.25rem;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(197, 160, 89, 0.2) 20%,
    rgba(197, 160, 89, 0.95) 50%,
    rgba(197, 160, 89, 0.2) 80%,
    transparent
  );
  box-shadow: 0 0 24px rgba(197, 160, 89, 0.45);
  animation: biometric-entry-scan 1.8s ease-in-out infinite;
}

@keyframes biometric-entry-scan {
  0% {
    transform: scaleX(0.3);
    opacity: 0.5;
  }
  50% {
    transform: scaleX(1);
    opacity: 1;
  }
  100% {
    transform: scaleX(0.3);
    opacity: 0.5;
  }
}

.biometric-entry-overlay__text {
  margin: 0;
  max-width: min(36rem, 92vw);
  padding: 0 1rem;
  font-family: var(--dash-mono);
  font-size: clamp(0.55rem, 0.48rem + 0.55vw, 0.72rem);
  letter-spacing: 0.14em;
  line-height: 1.65;
  color: rgba(230, 215, 190, 0.92);
  text-align: center;
}

.identity-card__layout {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.identity-card__avatar-wrap {
  position: relative;
  flex-shrink: 0;
  width: 4.5rem;
  height: 4.5rem;
}

.identity-card__avatar {
  width: 100%;
  height: 100%;
  border: 1px solid rgba(197, 160, 89, 0.35);
  background:
    radial-gradient(circle at 35% 30%, rgba(197, 160, 89, 0.25), transparent 55%),
    linear-gradient(160deg, rgba(20, 22, 32, 0.95), rgba(4, 6, 12, 0.98));
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
}

.identity-card__avatar--glitch {
  animation: identity-avatar-glitch 0.12s steps(2) 2;
  filter: contrast(1.25) saturate(1.4);
}

@keyframes identity-avatar-glitch {
  0% {
    transform: translate(0, 0);
    clip-path: inset(0 0 0 0);
  }
  25% {
    transform: translate(-2px, 1px);
    clip-path: inset(10% 0 25% 0);
  }
  50% {
    transform: translate(2px, -1px);
    clip-path: inset(30% 0 5% 0);
  }
  100% {
    transform: translate(0, 0);
    clip-path: inset(0 0 0 0);
  }
}

.identity-card__warn {
  position: absolute;
  left: 50%;
  bottom: -0.15rem;
  transform: translateX(-50%) translateY(100%);
  width: max-content;
  max-width: 12rem;
  font-family: var(--dash-mono);
  font-size: 0.42rem;
  letter-spacing: 0.12em;
  color: rgba(200, 90, 100, 0);
  pointer-events: none;
  transition: color 0.35s ease;
  text-align: center;
  visibility: hidden;
}

.mypage--splus .identity-card__warn {
  visibility: visible;
}

.mypage--splus .identity-card__avatar-wrap:hover .identity-card__warn,
.mypage--splus .identity-card__avatar-wrap:focus-within .identity-card__warn {
  color: rgba(220, 110, 120, 0.78);
}

.identity-card__meta {
  flex: 1;
  min-width: 0;
}

.identity-card__name {
  margin: 0 0 0.35rem;
  font-family: var(--dash-display);
  font-size: clamp(0.95rem, 0.85rem + 0.6vw, 1.15rem);
  letter-spacing: 0.12em;
  color: rgba(252, 248, 240, 0.96);
  line-height: 1.35;
}

.identity-card--s-gold .identity-card__name {
  text-shadow:
    0 0 20px rgba(197, 160, 89, 0.35),
    0 0 42px rgba(197, 160, 89, 0.18);
}

.identity-card__id {
  margin: 0 0 0.3rem;
  font-family: var(--dash-mono);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  color: var(--dash-muted);
}

.identity-card__id-label {
  display: block;
  font-size: 0.48rem;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 0.15rem;
}

.identity-card__plan {
  margin: 0 0 0.35rem;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  color: var(--dash-gold);
}

.identity-card__job {
  margin: 0 0 0.25rem;
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.45;
}

.identity-card__tagline {
  margin: 0;
  font-size: 0.62rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.42);
}

.profile-encrypted {
  font-family: var(--dash-mono);
  letter-spacing: 0.12em;
  color: rgba(200, 120, 130, 0.75);
}

.bio-terminal__hint {
  margin: 0 0 0.75rem;
  font-size: 0.58rem;
  color: rgba(130, 200, 175, 0.45);
  letter-spacing: 0.08em;
  min-height: 0;
}

.bio-terminal__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem 0.75rem;
  padding: 0.65rem 0.55rem;
  border: 1px solid rgba(197, 160, 89, 0.2);
  background: rgba(0, 0, 0, 0.35);
  font-family: var(--dash-mono);
}

@media (min-width: 40rem) {
  .bio-terminal__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.bio-cell {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
  padding: 0.35rem 0.25rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.25);
}

.bio-cell__label {
  font-size: 0.48rem;
  letter-spacing: 0.14em;
  color: rgba(160, 200, 180, 0.42);
  text-transform: uppercase;
}

.bio-cell__value {
  font-size: 0.62rem;
  letter-spacing: 0.05em;
  color: rgba(230, 225, 215, 0.88);
  line-height: 1.4;
  word-break: break-word;
}

.bio-neural-sync {
  margin-top: 0.85rem;
  padding: 0.55rem 0.5rem;
  border: 1px solid rgba(200, 100, 120, 0.35);
  background: rgba(20, 4, 8, 0.5);
}

.bio-neural-sync__label {
  display: block;
  font-family: var(--dash-mono);
  font-size: 0.52rem;
  letter-spacing: 0.2em;
  color: rgba(220, 130, 140, 0.75);
  margin-bottom: 0.4rem;
}

.bio-neural-sync canvas {
  display: block;
  width: 100%;
  max-width: 320px;
  height: auto;
}

.mental-archive__state {
  margin: 0 0 0.5rem;
  font-family: var(--dash-mono);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  color: var(--dash-muted);
}

.mental-archive__canvas-wrap {
  border: 1px solid rgba(197, 160, 89, 0.2);
  background: rgba(0, 0, 0, 0.4);
  padding: 0.35rem;
}

.mental-archive__canvas-wrap canvas {
  display: block;
  width: 100%;
  height: auto;
}

.prefs-list {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
}

.prefs-list__item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.prefs-list__k {
  font-family: var(--dash-mono);
  font-size: 0.5rem;
  letter-spacing: 0.16em;
  color: rgba(160, 200, 180, 0.45);
}

.prefs-list__v {
  font-size: 0.68rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.55);
}

.prefs-butler-relay {
  padding: 0.65rem 0.55rem;
  border: 1px solid rgba(197, 160, 89, 0.35);
  background: rgba(197, 160, 89, 0.06);
}

.prefs-butler-relay__label {
  display: block;
  font-family: var(--dash-mono);
  font-size: 0.52rem;
  letter-spacing: 0.18em;
  color: var(--dash-gold);
  margin-bottom: 0.35rem;
}

.prefs-butler-relay__line {
  display: block;
  font-family: var(--dash-mono);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  color: rgba(230, 220, 200, 0.88);
}

.prefs-butler-relay__note {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.55rem;
  color: var(--dash-muted);
}

.customize-save-hint {
  margin: 0 0 0.85rem;
  font-size: 0.65rem;
  color: var(--dash-muted);
  min-height: 1.2em;
}

.customize-save-row {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(197, 160, 89, 0.12);
}

.customize-save-btn {
  padding: 0.5rem 1rem;
  border: 1px solid rgba(197, 160, 89, 0.45);
  background: rgba(197, 160, 89, 0.1);
  color: var(--dash-gold);
  font-family: var(--dash-mono);
  font-size: 0.55rem;
  letter-spacing: 0.14em;
  cursor: pointer;
  transition: background 0.2s ease, opacity 0.2s ease;
}

.customize-save-btn:hover:not(:disabled),
.customize-save-btn:focus-visible:not(:disabled) {
  background: rgba(197, 160, 89, 0.2);
  outline: none;
}

.customize-save-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.customization-controls--save-only-locked {
  opacity: 0.97;
}

@media (prefers-reduced-motion: reduce) {
  .biometric-entry-overlay__scan {
    animation: none;
    opacity: 0.85;
  }

  .identity-card__avatar--glitch {
    animation: none;
  }

  .mypage--void-profile .mypage-main::after {
    animation: none;
    opacity: 0.07;
  }

  .mypage--plan-a .upgrade-request-btn {
    animation: none;
  }
}

.mypage--plan-a .upgrade-request-btn {
  box-shadow:
    0 0 0 1px rgba(197, 160, 89, 0.25),
    0 0 28px rgba(197, 160, 89, 0.22);
  animation: upgrade-cta-pulse 2.8s ease-in-out infinite;
}

@keyframes upgrade-cta-pulse {
  0%,
  100% {
    box-shadow:
      0 0 0 1px rgba(197, 160, 89, 0.25),
      0 0 28px rgba(197, 160, 89, 0.22);
  }
  50% {
    box-shadow:
      0 0 0 1px rgba(197, 160, 89, 0.45),
      0 0 40px rgba(197, 160, 89, 0.32);
  }
}

.depth-chill-canvas {
  width: 100%;
  max-height: 220px;
}

.mypage--void-profile .mypage-main {
  position: relative;
}

.mypage--void-profile .mypage-main::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.09;
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 3px,
      rgba(120, 40, 80, 0.12) 3px,
      rgba(120, 40, 80, 0.12) 4px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 4px,
      rgba(40, 20, 60, 0.1) 4px,
      rgba(40, 20, 60, 0.1) 5px
    );
  animation: void-profile-noise 0.15s steps(2) infinite;
}

.mypage--void-profile .mypage-grid,
.mypage--void-profile .mypage-bottom {
  position: relative;
  z-index: 1;
}

@keyframes void-profile-noise {
  0% {
    opacity: 0.06;
  }
  100% {
    opacity: 0.11;
  }
}

/* -------------------------------------------------------------------------
   DEVICE & AI SYNC（mypage）
   ------------------------------------------------------------------------- */

.device-ai-sync.dash-panel {
  grid-column: 1 / -1;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(197, 160, 89, 0.11);
  border-radius: 3px;
  background: linear-gradient(
    168deg,
    rgba(20, 19, 24, 0.98) 0%,
    rgba(8, 8, 12, 0.99) 42%,
    rgba(11, 10, 14, 0.98) 100%
  );
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
  font-family: "Noto Serif JP", "Noto Sans JP", serif;
  padding: 1.2rem 1.15rem 1.35rem;
}

.device-ai-sync.dash-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 5%, rgba(197, 160, 89, 0.4) 50%, transparent 95%);
  pointer-events: none;
}

.device-ai-sync__header {
  margin-bottom: 1.35rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.065);
}

.device-ai-sync__title-row {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}

.device-ai-sync__title {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
}

.device-ai-sync__title-ja {
  font-size: clamp(0.92rem, 0.8rem + 0.5vw, 1.06rem);
  font-weight: 600;
  letter-spacing: 0.12em;
  color: rgba(244, 238, 226, 0.96);
  line-height: 1.35;
}

.device-ai-sync__title .device-ai-sync__title-en {
  font-size: 0.52rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: rgba(197, 160, 89, 0.48);
}

.device-ai-sync__subtitle {
  margin: 0.65rem 0 0;
  font-size: 0.7rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.03em;
  max-width: 36rem;
}

.device-column {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.device-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 1rem 0.9rem 1.05rem;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.055);
  background: rgba(0, 0, 0, 0.26);
}

.device-ai-sync__label-en {
  display: block;
  font-family: var(--dash-mono);
  font-size: 0.5rem;
  letter-spacing: 0.18em;
  color: rgba(197, 160, 89, 0.55);
}

.device-ai-sync__label-ja {
  display: block;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.48);
  margin-top: 0.2rem;
  letter-spacing: 0.04em;
}

.device-mono {
  font-family: var(--dash-mono);
}

.device-serif {
  font-family: "Noto Serif JP", "Noto Sans JP", serif;
}

.device-ai-sync__devices {
  display: grid;
  gap: 1.1rem;
  align-items: stretch;
}

@media (min-width: 52rem) {
  .device-ai-sync__devices {
    grid-template-columns: minmax(0, 1fr) minmax(5.5rem, 7.5rem) minmax(0, 1fr);
    gap: 1rem 1.15rem;
  }
}

.device-column__head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.95rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.device-glyph {
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(145deg, rgba(28, 28, 34, 0.95), rgba(8, 8, 12, 0.98));
  transition:
    border-color 0.4s ease,
    box-shadow 0.4s ease;
}

.device-glyph--ring {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  box-shadow: inset 0 0 0 6px rgba(12, 12, 16, 0.95);
  background:
    radial-gradient(circle, transparent 42%, rgba(197, 160, 89, 0.12) 43%, rgba(197, 160, 89, 0.22) 48%, transparent 52%),
    linear-gradient(145deg, rgba(26, 26, 30, 0.98), rgba(6, 6, 10, 1));
}

.device-glyph--core {
  width: 2.85rem;
  height: 3.6rem;
  border-radius: 6px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.device-glyph--ring.is-pulse {
  border-color: rgba(197, 160, 89, 0.4);
  box-shadow:
    inset 0 0 18px rgba(197, 160, 89, 0.1),
    0 0 0 1px rgba(197, 160, 89, 0.22);
}

.device-glyph--core.is-pulse {
  border-color: rgba(120, 190, 200, 0.35);
  box-shadow:
    inset 0 0 14px rgba(100, 180, 200, 0.08),
    0 0 0 1px rgba(120, 190, 200, 0.2);
}

.device-status {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin: 0 0 0.75rem;
  padding: 0.5rem 0.6rem;
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  border-radius: 2px;
  border: 1px solid rgba(197, 160, 89, 0.14);
  background: rgba(197, 160, 89, 0.05);
}

.device-status--cyan {
  border-color: rgba(120, 200, 210, 0.18);
  background: rgba(80, 160, 175, 0.06);
}

.device-status__text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.device-status__ja {
  font-family: "Noto Serif JP", "Noto Sans JP", serif;
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.42);
  line-height: 1.4;
}

.device-status__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(197, 160, 89, 0.95);
  box-shadow: 0 0 10px rgba(197, 160, 89, 0.65);
  animation: device-status-blink 2.4s ease-in-out infinite;
}

.device-status__dot--cyan {
  background: rgba(120, 200, 210, 0.9);
  box-shadow: 0 0 10px rgba(120, 200, 210, 0.45);
  animation-duration: 3s;
}

@keyframes device-status-blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.45;
  }
}

.device-status--cyan .device-status__mono {
  color: rgba(160, 210, 220, 0.88);
}

.device-status--gold .device-status__mono {
  color: rgba(220, 200, 160, 0.92);
}

.device-live-bio {
  padding: 0.7rem 0.65rem;
  margin-bottom: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 2px;
  background: rgba(0, 0, 0, 0.22);
}

.device-live-bio__title {
  margin: 0 0 0.55rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  align-items: flex-start;
}

.device-live-bio__title-ja {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.52);
  font-family: "Noto Serif JP", "Noto Sans JP", serif;
}

.device-live-bio__title-en {
  font-family: var(--dash-mono);
  font-size: 0.48rem;
  letter-spacing: 0.16em;
  color: rgba(197, 160, 89, 0.35);
}

.device-k-en {
  font-size: 0.48rem;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.28);
  margin-left: 0.2rem;
}

.device-live-bio__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.device-live-bio__list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 0.5rem 0.85rem;
  padding: 0.42rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.045);
  font-size: 0.62rem;
}

.device-live-bio__list li:last-child {
  border-bottom: none;
}

.device-live-bio__k {
  color: rgba(255, 255, 255, 0.45);
  font-family: "Noto Serif JP", "Noto Sans JP", serif;
  font-size: 0.65rem;
  letter-spacing: 0.04em;
}

.device-live-bio__v {
  color: rgba(235, 230, 220, 0.92);
  letter-spacing: 0.04em;
}

.device-ring-neural {
  padding: 0.65rem 0.6rem;
  margin-bottom: 0.85rem;
  border: 1px solid rgba(197, 160, 89, 0.16);
  border-radius: 2px;
  background: rgba(0, 0, 0, 0.3);
}

.device-ring-neural__label {
  margin: 0 0 0.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.device-ring-neural__label .device-mono {
  font-size: 0.48rem;
  letter-spacing: 0.18em;
  color: rgba(197, 160, 89, 0.55);
}

.device-ring-neural__label-ja {
  font-family: "Noto Serif JP", "Noto Sans JP", serif;
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.45);
}

.device-ring-neural__trend {
  margin: 0 0 0.45rem;
  font-size: 0.68rem;
  color: rgba(230, 210, 180, 0.9);
}

.device-ring-neural__chart canvas {
  display: block;
  width: 100%;
  max-width: 280px;
  height: auto;
}

.device-line {
  margin: 0 0 0.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.device-line .device-mono {
  font-size: 0.55rem;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.48);
  line-height: 1.55;
}

.device-line__ja {
  font-family: "Noto Serif JP", "Noto Sans JP", serif;
  font-size: 0.65rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.42);
  letter-spacing: 0.04em;
}

.device-security {
  line-height: 1.6;
  margin-top: 0.15rem;
}

.device-security__id-block {
  padding: 0.55rem 0.6rem;
  margin-bottom: 0.75rem;
  border-radius: 2px;
  border: 1px solid rgba(255, 255, 255, 0.055);
  background: rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.device-security__id-en {
  font-size: 0.52rem;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.52);
  line-height: 1.45;
}

.device-security__id-ja {
  font-size: 0.62rem;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.38);
}

.device-security__sos-block {
  margin: 0;
  padding: 0.55rem 0.6rem;
  border-radius: 2px;
  border: 1px solid rgba(200, 100, 100, 0.12);
  background: rgba(45, 12, 16, 0.2);
}

.device-security__sos-row {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 0.2rem 0.75rem;
  align-items: center;
}

.device-security__sos-label {
  grid-column: 1;
  grid-row: 1;
  font-size: 0.5rem;
  letter-spacing: 0.1em;
  color: rgba(230, 180, 180, 0.65);
}

.device-security__sos-label-ja {
  grid-column: 1;
  grid-row: 2;
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.4);
}

.device-security__sos-row .device-sos-btn {
  grid-column: 2;
  grid-row: 1 / span 2;
  justify-self: end;
}

.device-security__sos-note {
  margin: 0.5rem 0 0;
  font-size: 0.58rem;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.36);
  line-height: 1.5;
}

.device-blocked-line {
  margin: 0.35rem 0 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.device-detox__subja {
  display: block;
  font-family: "Noto Serif JP", "Noto Sans JP", serif;
  font-size: 0.6rem;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.38);
  line-height: 1.45;
}

.device-silent-label-ja {
  font-family: "Noto Serif JP", "Noto Sans JP", serif;
  font-size: 0.58rem;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.35);
  margin-left: 0.25rem;
}

.device-security__ok {
  color: rgba(160, 200, 175, 0.88);
}

.device-sos-btn {
  margin: 0;
  padding: 0.38rem 0.75rem;
  border: 1px solid rgba(220, 120, 130, 0.35);
  border-radius: 2px;
  background: rgba(50, 14, 18, 0.55);
  color: rgba(240, 190, 190, 0.9);
  cursor: pointer;
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
}

.device-sos-btn__en {
  font-family: var(--dash-mono);
  font-size: 0.5rem;
  letter-spacing: 0.14em;
}

.device-sos-btn__sep {
  font-size: 0.55rem;
  opacity: 0.35;
}

.device-sos-btn__ja {
  font-family: "Noto Serif JP", "Noto Sans JP", serif;
  font-size: 0.6rem;
  letter-spacing: 0.06em;
}

.device-sos-btn:hover,
.device-sos-btn:focus-visible {
  border-color: rgba(220, 120, 120, 0.55);
  outline: none;
}

@media (max-width: 26rem) {
  .device-security__sos-row {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    justify-items: stretch;
  }

  .device-security__sos-label {
    grid-row: 1;
  }

  .device-security__sos-label-ja {
    grid-row: 2;
  }

  .device-security__sos-row .device-sos-btn {
    grid-column: 1;
    grid-row: 3;
    justify-self: stretch;
    justify-content: center;
    margin-top: 0.15rem;
  }
}

.device-ai-sync__flow {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: 0.35rem 0;
  align-self: center;
}

@media (max-width: 51.99rem) {
  .device-ai-sync__flow {
    order: 2;
    grid-column: 1 / -1;
  }

  .device-column--ring {
    order: 1;
  }

  .device-column--core {
    order: 3;
  }
}

.device-flow-svg {
  width: min(100%, 200px);
  height: 48px;
  overflow: visible;
}

.device-flow-svg__pulse {
  animation: device-flow-dash 2.8s linear infinite;
}

@keyframes device-flow-dash {
  to {
    stroke-dashoffset: -200;
  }
}

.device-flow-caption {
  margin-top: 0.35rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  text-align: center;
}

.device-flow-caption .device-mono {
  font-size: 0.45rem;
  letter-spacing: 0.2em;
  color: rgba(197, 160, 89, 0.35);
}

.device-flow-caption__ja {
  font-family: "Noto Serif JP", "Noto Sans JP", serif;
  font-size: 0.58rem;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.35);
}

.device-core-env {
  margin: 0 0 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.device-core-env .device-mono {
  font-size: 0.55rem;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.48);
}

.device-core-env__ja {
  font-family: "Noto Serif JP", "Noto Sans JP", serif;
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.45;
}

.device-detox {
  padding: 0.7rem 0.65rem;
  margin-bottom: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 2px;
  background: rgba(0, 0, 0, 0.22);
}

.device-detox__title {
  margin: 0 0 0.5rem;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.04em;
}

.device-silent-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0.5rem 0 0.35rem;
  padding: 0.45rem 0.5rem;
  flex-wrap: wrap;
  border-radius: 2px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(0, 0, 0, 0.18);
}

.device-silent-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.45rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  background: rgba(0, 0, 0, 0.35);
  cursor: pointer;
  color: inherit;
}

.device-silent-toggle__ui {
  width: 2.25rem;
  height: 1.1rem;
  border-radius: 999px;
  background: rgba(60, 60, 68, 0.9);
  position: relative;
  transition: background 0.25s ease;
}

.device-silent-toggle__ui::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: calc(50% - 4px);
  height: calc(100% - 4px);
  border-radius: 50%;
  background: rgba(220, 220, 230, 0.9);
  transition: transform 0.25s ease;
}

.device-silent-toggle[aria-pressed="true"] .device-silent-toggle__ui {
  background: rgba(120, 180, 160, 0.45);
}

.device-silent-toggle[aria-pressed="true"] .device-silent-toggle__ui::after {
  transform: translateX(100%);
}

.device-silent-toggle__text {
  font-size: 0.52rem;
  letter-spacing: 0.12em;
  min-width: 2.5rem;
}

.device-detox-icons {
  display: flex;
  gap: 0.65rem;
  margin-top: 0.35rem;
}

.device-detox-icon {
  font-family: var(--dash-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.42);
  padding: 0.2rem 0.45rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition:
    opacity 0.35s ease,
    transform 0.35s ease,
    filter 0.35s ease;
}

.device-ai-sync--silent-active .device-detox-icon {
  opacity: 0;
  transform: scale(0.85) skewX(-6deg);
  filter: blur(1px);
  animation: device-icon-glitch 0.45s steps(2) 1;
}

@keyframes device-icon-glitch {
  0% {
    clip-path: inset(0 0 0 0);
  }
  50% {
    clip-path: inset(20% 10% 30% 0);
  }
  100% {
    clip-path: inset(0 0 0 0);
  }
}

.device-env-block {
  margin-bottom: 0.85rem;
}

.device-env-block__title {
  margin: 0 0 0.55rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  align-items: flex-start;
}

.device-env-block__title-ja {
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.52);
  font-family: "Noto Serif JP", "Noto Sans JP", serif;
  letter-spacing: 0.06em;
}

.device-env-block__title-en {
  font-size: 0.48rem;
  letter-spacing: 0.16em;
  color: rgba(197, 160, 89, 0.38);
}

.device-env-locked {
  padding: 0.75rem 0.7rem;
  border: 1px dashed rgba(197, 160, 89, 0.2);
  border-radius: 2px;
  background: rgba(0, 0, 0, 0.22);
  font-size: 0.58rem;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.6;
}

.device-env-controls {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.device-cmd__label {
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
  margin-bottom: 0.45rem;
  align-items: flex-start;
}

.device-cmd__label-en {
  font-size: 0.48rem;
  letter-spacing: 0.14em;
  color: rgba(197, 160, 89, 0.45);
}

.device-cmd__label-ja {
  font-family: "Noto Serif JP", "Noto Sans JP", serif;
  font-size: 0.64rem;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.42);
  font-weight: 400;
}

.device-cmd--slider input[type="range"] {
  width: 100%;
  accent-color: rgba(197, 160, 89, 0.75);
}

.device-cmd__readout {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.55rem;
  color: rgba(230, 220, 200, 0.75);
}

.device-void-scale {
  display: flex;
  justify-content: space-between;
  font-size: 0.48rem;
  letter-spacing: 0.1em;
  color: rgba(120, 150, 200, 0.55);
  margin-bottom: 0.25rem;
}

.device-chiller-btns {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.device-chiller-btn {
  flex: 1 1 calc(50% - 0.3rem);
  min-width: min(100%, 8.5rem);
  min-height: 2.75rem;
  padding: 0.4rem 0.45rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  background: rgba(0, 0, 0, 0.32);
  color: rgba(200, 200, 210, 0.62);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
}

.device-chiller-btn__en {
  font-size: 0.44rem;
  letter-spacing: 0.12em;
}

.device-chiller-btn__ja {
  font-family: "Noto Serif JP", "Noto Sans JP", serif;
  font-size: 0.56rem;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.38);
}

.device-chiller-btn.is-active {
  border-color: rgba(197, 160, 89, 0.45);
  color: rgba(230, 210, 180, 0.95);
  background: rgba(197, 160, 89, 0.08);
}

.device-chiller-btn.is-active .device-chiller-btn__ja {
  color: rgba(230, 215, 195, 0.55);
}

.device-chiller-btn:hover,
.device-chiller-btn:focus-visible {
  outline: none;
  border-color: rgba(197, 160, 89, 0.35);
}

.device-feedback {
  margin: 0.85rem 0 0;
  padding: 0.65rem 0.65rem 0.7rem;
  font-size: 0.72rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.48);
  border-radius: 2px;
  border: 1px solid rgba(255, 255, 255, 0.045);
  background: rgba(0, 0, 0, 0.15);
}

.device-feedback__en {
  display: block;
  font-family: var(--dash-mono);
  font-size: 0.48rem;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.28);
  margin-top: 0.2rem;
}

.device-feedback__note {
  display: block;
  font-size: 0.58rem;
  color: rgba(255, 255, 255, 0.32);
  margin-top: 0.25rem;
}

.device-ai-advisor {
  margin-top: 1.45rem;
  padding: 1rem 0.95rem 1.1rem;
  border: 1px solid rgba(197, 160, 89, 0.1);
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.32);
}

.device-ai-advisor__heading {
  margin: 0 0 0.4rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
}

.device-ai-advisor__heading-ja {
  font-family: "Noto Serif JP", "Noto Sans JP", serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: rgba(230, 220, 200, 0.85);
}

.device-ai-advisor__heading-en {
  font-size: 0.5rem;
  letter-spacing: 0.2em;
  color: rgba(197, 160, 89, 0.45);
}

.device-ai-advisor__lead {
  margin: 0 0 0.15rem;
  font-family: "Noto Serif JP", "Noto Sans JP", serif;
  font-size: 0.64rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.36);
  letter-spacing: 0.03em;
  max-width: 40rem;
}

.device-ai-advisor__out {
  min-height: 5.75rem;
  margin-top: 0.5rem;
  padding: 0.65rem 0.7rem;
  border-radius: 2px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(0, 0, 0, 0.28);
  font-size: 0.56rem;
  line-height: 1.75;
  letter-spacing: 0.03em;
  color: rgba(225, 218, 205, 0.88);
  white-space: pre-wrap;
  word-break: break-word;
}

.device-ai-advisor__caret {
  display: inline-block;
  width: 0.45em;
  height: 1em;
  margin-left: 1px;
  background: rgba(197, 160, 89, 0.75);
  vertical-align: text-bottom;
  animation: device-caret-blink 0.9s step-end infinite;
}

@keyframes device-caret-blink {
  50% {
    opacity: 0;
  }
}

.device-system-log {
  margin-top: 1rem;
  padding: 0.85rem 0.85rem 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.22);
}

.device-system-log__heading {
  margin: 0 0 0.55rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
}

.device-system-log__heading-ja {
  font-family: "Noto Serif JP", "Noto Sans JP", serif;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.48);
}

.device-system-log__heading-en {
  font-size: 0.48rem;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.28);
}

.device-system-log__list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 7.5rem;
  overflow: auto;
}

.device-system-log__list li {
  font-size: 0.52rem;
  letter-spacing: 0.04em;
  color: rgba(180, 200, 190, 0.55);
  padding: 0.28rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  line-height: 1.45;
}

#mypageRoot.device-haptic-shake {
  animation: device-haptic-shake 0.28s ease-out;
}

@keyframes device-haptic-shake {
  0%,
  100% {
    transform: translate(0, 0);
  }
  15% {
    transform: translate(-2px, 1px);
  }
  30% {
    transform: translate(3px, -1px);
  }
  45% {
    transform: translate(-2px, -1px);
  }
  60% {
    transform: translate(2px, 1px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .device-flow-svg__pulse {
    animation: none;
    stroke-dashoffset: 0;
    opacity: 0.5;
  }

  .device-status__dot {
    animation: none;
  }

  #mypageRoot.device-haptic-shake {
    animation: none;
  }

  .device-ai-sync--silent-active .device-detox-icon {
    animation: none;
  }
}

.dash-panel {
  grid-column: span 12;
  border: 1px solid rgba(197, 160, 89, 0.22);
  background: var(--dash-panel);
  padding: 1rem 1.1rem;
  position: relative;
}

@media (min-width: 56.25em) {
  .dash-panel--half {
    grid-column: span 6;
  }

  .dash-panel--third {
    grid-column: span 4;
  }

  .dash-panel--wide {
    grid-column: span 8;
  }

  .dash-panel--narrow {
    grid-column: span 4;
  }

  .dash-panel--full {
    grid-column: 1 / -1;
  }

  /* 固定レイアウト: 指定順 + 指定ペアのみ横並び */
  .layout-slot-5,
  .layout-slot-7,
  .layout-slot-9,
  .layout-slot-10,
  .layout-slot-17,
  .layout-slot-18,
  .layout-slot-22 {
    grid-column: 1 / -1;
  }

  .layout-slot-1,
  .layout-slot-2,
  .layout-slot-3,
  .layout-slot-4,
  .layout-slot-6,
  .layout-slot-8,
  .layout-slot-11,
  .layout-slot-12,
  .layout-slot-13,
  .layout-slot-14,
  .layout-slot-15,
  .layout-slot-16,
  .layout-slot-19,
  .layout-slot-20,
  .layout-slot-21,
  .layout-slot-23 {
    grid-column: span 6;
  }

  /* 1を少し狭く、2を少し広く */
  .layout-slot-1 {
    grid-column: span 5;
  }

  .layout-slot-2 {
    grid-column: span 7;
  }

  /* 1〜4をコンパクト表示（PC） */
  .layout-slot-1,
  .layout-slot-2,
  .layout-slot-3,
  .layout-slot-4 {
    padding: 0.78rem 0.9rem;
  }

  .layout-slot-1 .dash-panel__title,
  .layout-slot-2 .dash-panel__title,
  .layout-slot-3 .dash-panel__title,
  .layout-slot-4 .dash-panel__title {
    margin-bottom: 0.58rem;
    font-size: 0.58rem;
    letter-spacing: 0.18em;
  }

  .layout-slot-1 .identity-card__layout {
    gap: 0.75rem;
  }

  .layout-slot-1 .identity-card__avatar-wrap {
    width: 3.85rem;
    height: 3.85rem;
  }

  .layout-slot-1 .identity-card__name {
    font-size: clamp(0.82rem, 0.76rem + 0.35vw, 0.95rem);
    margin-bottom: 0.2rem;
  }

  .layout-slot-2 .bio-terminal__grid {
    gap: 0.42rem 0.55rem;
    padding: 0.48rem 0.45rem;
  }

  .layout-slot-3 canvas {
    max-height: 66px;
  }

  .layout-slot-4 .prefs-list {
    margin-bottom: 0.62rem;
  }

  .layout-slot-4 .prefs-list__item {
    padding-top: 0.38rem;
    padding-bottom: 0.38rem;
  }

  .layout-slot-4 .prefs-butler-relay {
    padding: 0.5rem;
  }

  .layout-slot-1 {
    order: 1;
  }
  .layout-slot-2 {
    order: 2;
  }
  .layout-slot-3 {
    order: 3;
  }
  .layout-slot-4 {
    order: 4;
  }
  .layout-slot-7 {
    order: 5;
  }
  .layout-slot-6 {
    order: 6;
  }
  .layout-slot-8 {
    order: 7;
  }
  .layout-slot-5 {
    order: 8;
  }
  .layout-slot-10 {
    order: 9;
  }
  .layout-slot-9 {
    order: 10;
  }
  .layout-slot-11 {
    order: 11;
  }
  .layout-slot-12 {
    order: 12;
  }
  .layout-slot-13 {
    order: 13;
  }
  .layout-slot-14 {
    order: 14;
  }
  .layout-slot-15 {
    order: 15;
  }
  .layout-slot-16 {
    order: 16;
  }
  .layout-slot-17 {
    order: 17;
  }
  .layout-slot-18 {
    order: 18;
  }
  .layout-slot-19 {
    order: 19;
  }
  .layout-slot-20 {
    order: 20;
  }
  .layout-slot-21 {
    order: 21;
  }
  .layout-slot-23 {
    order: 22;
  }
  .layout-slot-22 {
    order: 23;
  }

}

.dash-panel__title {
  margin: 0 0 0.85rem;
  font-family: var(--dash-display);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--dash-gold);
}

.dash-panel__corner {
  position: absolute;
  width: 6px;
  height: 6px;
  border-color: rgba(197, 160, 89, 0.55);
  border-style: solid;
  pointer-events: none;
}

.dash-panel__corner--tl {
  top: -1px;
  left: -1px;
  border-width: 1px 0 0 1px;
}

.dash-panel__corner--tr {
  top: -1px;
  right: -1px;
  border-width: 1px 1px 0 0;
}

.dash-panel__corner--bl {
  bottom: -1px;
  left: -1px;
  border-width: 0 0 1px 1px;
}

.dash-panel__corner--br {
  bottom: -1px;
  right: -1px;
  border-width: 0 1px 1px 0;
}

/* カレンダー */
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  font-family: var(--dash-mono);
  font-size: 0.68rem;
}

.cal-grid__head {
  padding: 0.35rem 0;
  text-align: center;
  color: var(--dash-muted);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
}

.cal-grid__day {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.25);
  color: var(--dash-muted);
}

.cal-grid__day--muted {
  opacity: 0.35;
}

.cal-grid__day--booked {
  border-color: rgba(197, 160, 89, 0.45);
  color: var(--dash-gold);
  box-shadow: inset 0 0 0 1px rgba(197, 160, 89, 0.12);
}

/* 履歴 */
.history-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.history-list__item {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.78rem;
}

.history-list__date {
  font-family: var(--dash-mono);
  color: var(--dash-muted);
  font-size: 0.68rem;
}

/* 環境ステータス */
.env-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(7rem, 1fr));
  gap: 0.75rem;
}

.env-chip {
  border: 1px solid rgba(197, 160, 89, 0.18);
  padding: 0.55rem 0.65rem;
  background: rgba(0, 0, 0, 0.35);
}

.env-chip__label {
  display: block;
  font-size: 0.55rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dash-muted);
  margin-bottom: 0.2rem;
}

.env-chip__value {
  font-family: var(--dash-mono);
  font-size: 0.85rem;
  color: rgba(220, 210, 195, 0.95);
}

/* スライダー */
.dash-slider {
  margin-bottom: 1rem;
}

.dash-slider:last-child {
  margin-bottom: 0;
}

.dash-slider__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.35rem;
}

.dash-slider__label {
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dash-muted);
}

.dash-slider__readout {
  font-family: var(--dash-mono);
  font-size: 0.72rem;
  color: var(--dash-gold);
}

.dash-slider input[type="range"] {
  width: 100%;
  accent-color: var(--dash-gold);
  height: 4px;
}

/* 宿泊・チャット */
.stay-form {
  display: grid;
  gap: 0.65rem;
}

.stay-form label {
  display: grid;
  gap: 0.25rem;
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dash-muted);
}

.stay-form input {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(197, 160, 89, 0.25);
  color: var(--dash-text);
  font-family: var(--dash-mono);
  font-size: 0.75rem;
  padding: 0.5rem 0.6rem;
}

.stay-form button {
  margin-top: 0.25rem;
  border: 1px solid var(--dash-gold-dim);
  background: rgba(197, 160, 89, 0.12);
  color: var(--dash-gold);
  font-family: var(--dash-display);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  padding: 0.6rem;
  cursor: pointer;
}

.chat-log {
  max-height: 14rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
  padding-right: 0.25rem;
}

.chat-bubble {
  max-width: 92%;
  padding: 0.45rem 0.6rem;
  font-size: 0.78rem;
  line-height: 1.45;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.chat-bubble--them {
  align-self: flex-start;
  background: rgba(197, 160, 89, 0.08);
  border-color: rgba(197, 160, 89, 0.22);
}

.chat-bubble--me {
  align-self: flex-end;
  background: rgba(255, 255, 255, 0.04);
}

.chat-input-row {
  display: flex;
  gap: 0.5rem;
}

.chat-input-row input {
  flex: 1;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(197, 160, 89, 0.22);
  color: var(--dash-text);
  font-size: 0.78rem;
  padding: 0.45rem 0.55rem;
}

.chat-input-row button {
  border: 1px solid var(--dash-gold-dim);
  background: rgba(197, 160, 89, 0.15);
  color: var(--dash-gold);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  padding: 0 0.85rem;
  cursor: pointer;
}

.algo-canvas {
  width: 100%;
  height: min(200px, 36vw);
  display: block;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(197, 160, 89, 0.15);
}

.algo-legend {
  margin-top: 0.5rem;
  font-family: var(--dash-mono);
  font-size: 0.65rem;
  color: var(--dash-muted);
}

/* S+ 薄いスキャンライン（メイン領域は揺らさない） */
.mypage--splus::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  opacity: 0.06;
  background-image: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(255, 255, 255, 0.04) 2px,
    rgba(255, 255, 255, 0.04) 3px
  );
  animation: dash-noise-flicker 0.12s steps(2) infinite;
}

@keyframes dash-noise-flicker {
  0% {
    opacity: 0.04;
  }
  50% {
    opacity: 0.09;
  }
  100% {
    opacity: 0.05;
  }
}

.eeg-wrap {
  position: relative;
  height: 140px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(197, 160, 89, 0.25);
  overflow: hidden;
}

.eeg-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.eeg-wrap--sync {
  height: min(160px, 42vw);
}

.splus-panel-note {
  margin: 0 0 0.65rem;
  font-size: 0.68rem;
  line-height: 1.55;
  color: var(--dash-muted);
}

.cognitive-time-block {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.85rem 0.65rem;
  border: 1px solid rgba(197, 160, 89, 0.22);
  background: rgba(0, 0, 0, 0.38);
}

.cognitive-time-label {
  font-family: var(--dash-mono);
  font-size: 0.52rem;
  letter-spacing: 0.22em;
  color: rgba(200, 120, 180, 0.62);
}

.cognitive-time-readout {
  display: block;
  font-family: var(--dash-mono);
  font-size: clamp(0.82rem, 2.6vw, 1.02rem);
  letter-spacing: 0.1em;
  color: rgba(230, 210, 245, 0.92);
}

.cognitive-time-rate {
  font-size: 0.54rem;
  letter-spacing: 0.08em;
  color: var(--dash-muted);
}

.hijack-toggle-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem 1.75rem;
}

.hijack-toggle {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  cursor: pointer;
  font-family: var(--dash-mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  color: rgba(230, 200, 200, 0.82);
}

.hijack-toggle input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.hijack-toggle__ui {
  width: 2.65rem;
  height: 1.38rem;
  border-radius: 2px;
  background: rgba(60, 16, 22, 0.55);
  border: 1px solid rgba(200, 80, 90, 0.42);
  position: relative;
  flex-shrink: 0;
  transition:
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.hijack-toggle__ui::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: calc(50% - 4px);
  height: calc(100% - 4px);
  background: rgba(20, 6, 8, 0.92);
  border-radius: 1px;
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

.hijack-toggle input:checked + .hijack-toggle__ui {
  background: rgba(140, 40, 48, 0.38);
  box-shadow: 0 0 14px rgba(200, 60, 70, 0.22);
}

.hijack-toggle input:checked + .hijack-toggle__ui::after {
  transform: translateX(100%);
}

.hijack-toggle input:focus-visible + .hijack-toggle__ui {
  outline: 2px solid rgba(197, 160, 89, 0.45);
  outline-offset: 3px;
}

.splus-syslog-host {
  position: fixed;
  left: clamp(0.25rem, 1.2vw, 0.65rem);
  top: 50%;
  transform: translateY(-50%);
  z-index: 125;
  width: min(14.5rem, 46vw);
  max-height: 46vh;
  overflow: hidden;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.22rem;
  font-family: var(--dash-mono);
  font-size: 0.47rem;
  letter-spacing: 0.07em;
  line-height: 1.38;
}

.splus-syslog-line {
  color: rgba(120, 200, 155, 0.38);
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.85);
  animation: splus-syslog-in 0.55s ease forwards;
}

@keyframes splus-syslog-in {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.void-execute-btn {
  position: fixed;
  left: 50%;
  bottom: max(0.65rem, env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  z-index: 165;
  padding: 0.52rem 1.35rem;
  border: 1px solid rgba(210, 65, 80, 0.7);
  background: rgba(10, 2, 4, 0.94);
  color: rgba(255, 115, 125, 0.93);
  font-family: var(--dash-mono);
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  cursor: pointer;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.65),
    0 6px 36px rgba(60, 0, 10, 0.45);
  animation: void-btn-glitch 2.6s steps(2, end) infinite;
}

.void-execute-btn:hover,
.void-execute-btn:focus-visible {
  color: rgba(255, 200, 200, 0.98);
  box-shadow:
    0 0 0 1px rgba(255, 80, 100, 0.35),
    0 0 28px rgba(200, 40, 55, 0.35);
  outline: none;
}

@keyframes void-btn-glitch {
  0%,
  88%,
  100% {
    transform: translateX(-50%);
    text-shadow: none;
  }
  89% {
    transform: translateX(calc(-50% + 1px));
    text-shadow: 2px 0 rgba(255, 0, 60, 0.35);
  }
  90% {
    transform: translateX(calc(-50% - 2px));
    text-shadow: -2px 0 rgba(0, 200, 255, 0.25);
  }
  91% {
    transform: translateX(-50%);
  }
}

.void-crash-overlay {
  position: fixed;
  inset: 0;
  z-index: 920;
  background: #010102;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.2s ease,
    visibility 0.2s ease;
}

.void-crash-overlay.is-void-phase-black {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.void-crash-overlay.is-void-phase-reboot {
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(200, 60, 80, 0.07) 2px,
      rgba(200, 60, 80, 0.07) 3px
    ),
    #020003;
  animation: void-reboot-scan 0.08s steps(2) infinite;
}

@keyframes void-reboot-scan {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.92;
  }
  100% {
    opacity: 1;
  }
}

.void-crash-overlay.is-void-phase-flash {
  animation: void-white-flash 0.45s ease forwards;
  background: #e8e4ea;
}

@keyframes void-white-flash {
  0% {
    opacity: 1;
    visibility: visible;
  }
  35% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    visibility: hidden;
  }
}

body.void-seq-active {
  overflow: hidden;
}

.blackbox-btn {
  width: 100%;
  margin-top: 1rem;
  padding: 0.85rem;
  border: 1px solid rgba(197, 160, 89, 0.5);
  background: linear-gradient(180deg, rgba(197, 160, 89, 0.18), rgba(0, 0, 0, 0.6));
  color: var(--dash-gold);
  font-family: var(--dash-display);
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  cursor: pointer;
  text-transform: uppercase;
}

.blackbox-btn:hover,
.blackbox-btn:focus-visible {
  box-shadow: 0 0 28px rgba(197, 160, 89, 0.2);
  outline: none;
}

/* 再起動オーバーレイ（バイナリ） */
.reboot-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.97);
  font-family: var(--dash-mono);
}

.reboot-overlay.is-active {
  display: flex;
}

.reboot-overlay__label {
  font-size: 0.62rem;
  letter-spacing: 0.35em;
  color: var(--dash-gold);
  margin-bottom: 1rem;
}

.reboot-overlay__stream {
  width: min(42rem, 92vw);
  max-height: 40vh;
  overflow: hidden;
  font-size: 0.62rem;
  line-height: 1.35;
  color: rgba(160, 200, 170, 0.55);
  word-break: break-all;
  text-align: justify;
  animation: reboot-scroll 0.8s linear infinite;
}

@keyframes reboot-scroll {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-8px);
  }
}

[data-min-tier] {
  transition: opacity 0.35s ease;
}

[data-min-tier][hidden] {
  display: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .auth-overlay__scan,
  .reboot-overlay__stream,
  .mypage--splus::before {
    animation: none !important;
  }

  .login-identity:hover,
  .login-identity:focus-visible {
    transform: none;
  }

  .login-back:hover,
  .login-back:focus-visible {
    letter-spacing: 0.22em;
  }

  .butler-terminal {
    transition: none;
  }

  .bm-terminal {
    transition: none;
  }

  .remote-config-toast {
    transition: none;
    transform: none;
  }

  .upgrade-request-status.is-analyzing {
    animation: none;
    opacity: 0.85;
  }

  .addon-total-value {
    transition: none;
  }

  .addon-total-value.addon-total-value--tick {
    transform: none;
  }

  .void-execute-btn {
    animation: none;
  }

  .splus-syslog-line {
    animation: none;
    opacity: 0.55;
  }

  .void-crash-overlay.is-void-phase-reboot {
    animation: none;
  }
}
