:root {
  color-scheme: dark;
  --bg: #07090d;
  --phone: #0b0e13;
  --surface: #11161d;
  --surface-2: #151b24;
  --surface-3: #1b2430;
  --line: rgba(207, 222, 247, 0.13);
  --line-strong: rgba(221, 233, 255, 0.24);
  --text: #f4f6f8;
  --muted: #adb7c5;
  --soft: #7f8b9b;
  --blue: #5b8def;
  --blue-2: #8db3ff;
  --gold: #c7a35a;
  --gold-soft: rgba(199, 163, 90, 0.12);
  --green: #65d6a1;
  --radius: 16px;
  font-family:
    Inter, "SF Pro Text", "SF Pro Display", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui,
    -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 50% 0%, rgba(91, 141, 239, 0.12), transparent 34rem),
    var(--bg);
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
  cursor: pointer;
}

.prototype-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 20px;
}

.phone {
  width: min(100vw, 430px);
  height: min(100vh - 40px, 920px);
  min-height: 720px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(79, 140, 255, 0.09), transparent 180px),
    var(--phone);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 34px;
  box-shadow:
    0 28px 90px rgba(0, 0, 0, 0.46),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  position: relative;
}

.status-bar {
  height: 38px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: 0 24px;
  color: rgba(244, 247, 251, 0.78);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0;
}

.status-bar > :first-child { justify-self: start; }
.status-bar .theme-toggle { justify-self: end; }

.theme-toggle {
  width: 28px;
  height: 26px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: var(--soft);
  font-size: 14px;
  line-height: 1;
}

.theme-toggle:hover,
.theme-toggle.light { border-color: var(--line); color: var(--gold); background: rgba(216, 173, 90, 0.1); }

.lang-th,
.lang-th button,
.lang-th input,
.lang-th textarea { font-family: Tahoma, "Noto Sans Thai", Arial, sans-serif; }

.app {
  height: calc(100% - 38px);
  overflow-y: auto;
  padding: 0 18px 92px;
  scrollbar-width: none;
}

.app::-webkit-scrollbar {
  display: none;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  gap: 10px;
  min-height: 70px;
  padding: 10px 0 12px;
  background: linear-gradient(180deg, #080b12 72%, rgba(8, 11, 18, 0));
  transition: background 160ms ease;
}

.app.header-scrolled .topbar {
  background: transparent;
}

.topbar h1 {
  margin: 0;
  font-size: 22px;
  line-height: 1.12;
  letter-spacing: 0;
}

.topbar-leading { width: 44px; height: 44px; }
.topbar-title-copy { min-width: 0; }

.topbar-title-row {
  display: inline-flex;
  align-items: flex-start;
  gap: 5px;
  max-width: 100%;
}

.brand-help-badge {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  min-height: 17px !important;
  margin-top: -4px;
  padding: 0;
  border: 1px solid rgba(116, 166, 255, .58);
  border-radius: 50%;
  background: rgba(74, 128, 221, .12);
  color: var(--blue-2);
  font-size: 10px;
  font-weight: 850;
  line-height: 1;
}

.brand-help-badge:hover,
.brand-help-badge:focus-visible {
  border-color: var(--blue-2);
  background: rgba(74, 128, 221, .22);
}

.topbar p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.3;
  transition: opacity 120ms ease;
}

.app.header-collapsed .topbar {
  grid-template-columns: 34px minmax(0, 1fr) 34px;
  gap: 8px;
  min-height: 48px;
  padding-top: 5px;
  padding-bottom: 6px;
  background: rgba(8, 11, 18, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.app.header-collapsed .topbar h1 {
  overflow: hidden;
  font-size: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app.header-collapsed .topbar p { display: none; }

.app.header-collapsed .topbar .brand-mark,
.app.header-collapsed .topbar .icon-button {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  font-size: 17px;
}

.app.header-collapsed .topbar .quick-publish { font-size: 20px; }

.record-topbar {
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 12px;
  min-height: 92px;
  padding: 8px 0 10px;
  align-items: center;
}

.record-topbar-spacer {
  width: 40px;
}

.record-report {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: transparent;
  color: var(--soft);
}

.record-report svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.record-topbar .icon-button {
  margin-top: 0;
}

.record-topbar-copy {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
  width: 100%;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  text-align: left;
}

.record-topbar-copy h1 {
  margin: 0;
  font-size: 18px;
  line-height: 1.1;
}

.record-topbar-copy p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.record-topbar-copy > div > span {
  display: block;
  margin-top: 5px;
  color: var(--soft);
  font-size: 11px;
  line-height: 1.25;
}

.record-topbar-copy > img {
  width: 46px;
  height: 46px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  object-fit: cover;
}

.app.header-collapsed .record-topbar {
  min-height: 48px;
  align-items: center;
}

.app.header-collapsed .record-topbar .icon-button {
  margin-top: 0;
}

.app.header-collapsed .record-topbar-copy > div > span {
  display: none;
}

.market-topbar {
  grid-template-columns: 44px minmax(0, 1fr) auto 40px;
  position: relative;
}

.market-topbar > .brand-mark { grid-column: 1; }
.market-topbar-title { grid-column: 2; min-width: 0; }
.market-topbar-tools { grid-column: 3; display: flex; align-items: center; gap: 5px; }
.market-topbar > .quick-publish,
.market-topbar > .market-message-button { grid-column: 4; }

.market-topbar-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--blue-2);
  font-size: 18px;
  font-weight: 760;
}

.market-message-button {
  position: relative;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
}

.market-message-button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linejoin: round;
}

.market-message-button b {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 14px;
  height: 14px;
  padding: 0 3px;
  border-radius: 999px;
  background: #e35d5d;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  line-height: 14px;
}

.live-record-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.live-bookmark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: transparent;
  color: var(--soft);
}

.live-bookmark svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linejoin: round;
}

.live-bookmark.is-saved {
  color: var(--blue-2);
  border-color: rgba(109, 158, 255, 0.55);
}

.live-bookmark.is-saved svg { fill: currentColor; }

.following-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  margin: 14px 0;
  padding: 5px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.045);
}

.following-tabs button {
  min-height: 42px;
  padding: 8px 5px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: var(--muted);
  font-weight: 760;
}

.following-tabs button.active {
  color: var(--text);
  background: var(--blue-deep);
}

.following-tabs span {
  margin-left: 4px;
  color: var(--blue-2);
  font-size: 12px;
}

.following-list {
  display: grid;
  border-top: 1px solid var(--line);
}

.following-list-group { margin-top: 24px; }
.following-tabs + .following-list-group { margin-top: 0; }
.following-list-group + .following-list-group { margin-top: 30px; }
.following-list-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 10px;
}
.following-list-title h2 { margin: 0; font-size: 17px; }
.following-list-title span { color: var(--blue-2); font-size: 13px; font-weight: 760; }

.following-feed {
  display: grid;
  border-top: 1px solid var(--line);
}

.following-update {
  display: block;
  width: 100%;
  padding: 16px 2px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  text-align: left;
}

.following-update-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
}

.following-update-meta span {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 6px;
}

.following-update-meta img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
}

.following-update-meta time {
  flex: 0 0 auto;
  white-space: nowrap;
}

.following-update strong {
  display: block;
  margin-top: 10px;
  font-size: 18px;
  line-height: 1.35;
}

.following-update strong em {
  display: inline-block;
  margin-right: 8px;
  color: var(--gold);
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
}

.following-update p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.following-update small {
  display: block;
  margin-top: 11px;
  color: var(--blue-2);
  font-size: 13px;
  font-weight: 760;
}

.following-update.knight-activity {
  position: relative;
  padding: 0;
}

.following-update-main {
  width: 100%;
  padding: 16px 2px;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}


.following-person-link {
  position: absolute;
  right: 2px;
  bottom: 16px;
  border: 0;
  background: transparent;
  color: var(--blue-2);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.following-row {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  gap: 12px;
  width: 100%;
  align-items: center;
  padding: 15px 2px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  text-align: left;
}

.following-row img {
  width: 46px;
  height: 46px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  object-fit: cover;
}

.following-row > div { min-width: 0; }
.following-row strong,
.following-row span,
.following-row em,
.following-row small { display: block; }
.following-row strong { font-size: 16px; }
.following-row span,
.following-row small { margin-top: 2px; color: var(--muted); font-size: 12px; }
.following-row em { margin-top: 5px; color: var(--blue-2); font-size: 13px; font-style: normal; }
.following-row .following-role-badge {
  display: inline-flex;
  margin: 0 6px 0 0;
  padding: 1px 5px;
  border: 1px solid rgba(109, 158, 255, 0.58);
  border-radius: 999px;
  color: var(--blue-2);
  font-size: 10px;
  font-style: normal;
  line-height: 1.25;
  vertical-align: 1px;
}
.following-row .following-role-badge.king {
  border-color: rgba(225, 177, 76, 0.58);
  color: var(--gold);
}
.following-row > b { color: var(--blue-2); font-size: 22px; font-weight: 500; }

.following-row.content { grid-template-columns: 46px minmax(0, 1fr) auto; }
.following-row.content strong { margin-top: 5px; line-height: 1.35; }
.following-content-mark {
  display: grid !important;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(225, 177, 76, 0.56);
  border-radius: 50%;
  color: var(--gold);
  font-size: 21px !important;
}

.person-follow-button {
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--blue-2);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.person-follow-button.is-following {
  border: 0;
  background: transparent;
  color: var(--muted);
}

.market-compact-search {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  left: 0;
  display: none;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(12, 17, 27, 0.98);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(16px);
}

.market-compact-search.open { display: grid; }

.epic-topbar {
  grid-template-columns: 44px minmax(0, 1fr) auto;
  position: relative;
}

.epic-topbar-tools {
  display: flex;
  align-items: center;
  gap: 6px;
}

.epic-compact-search {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  left: 0;
  z-index: 22;
  display: none;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(12, 17, 27, 0.98);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(16px);
}

.epic-compact-search.open { display: grid; }

.app.header-collapsed .epic-topbar {
  grid-template-columns: 34px minmax(0, 1fr) auto;
}

.app.header-collapsed .epic-topbar .market-topbar-icon {
  width: 32px;
  min-width: 32px;
  height: 32px;
  border-radius: 9px;
  font-size: 16px;
}

.market-explore-settings {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  z-index: 32;
  display: none;
  width: min(100%, 316px);
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(12, 17, 27, 0.98);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(16px);
}

.market-explore-settings.open { display: grid; }

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

.market-explore-settings-head strong { font-size: 14px; }

.market-explore-settings-head button {
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 20px;
}

.market-explore-settings label {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
}

.market-explore-settings input[type="range"] {
  width: 100%;
  accent-color: var(--blue-2);
}

.market-explore-open {
  min-height: 36px;
  border: 1px solid rgba(121, 168, 255, 0.52);
  border-radius: 8px;
  background: rgba(79, 140, 255, 0.14);
  color: var(--blue-2);
  font-size: 12px;
  font-weight: 720;
}

.market-compact-search-input {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 58px;
}

.market-compact-search-input input,
.market-compact-search-input button {
  min-width: 0;
  height: 44px;
  border: 0;
  background: transparent;
  color: var(--text);
}

.market-compact-search-input input { padding: 0 14px; outline: 0; }

.market-compact-search-input button {
  border-left: 1px solid var(--line);
  color: var(--blue-2);
  font-weight: 760;
}

.screen-market.header-collapsed .market-topbar {
  grid-template-columns: 40px minmax(0, 1fr) auto 40px;
  min-height: 52px;
  padding: 6px 0;
  background: transparent;
  border-bottom: 0;
  backdrop-filter: none;
}

.screen-market.header-collapsed .market-topbar-title { display: none; }

.screen-market.header-collapsed .market-topbar-tools {
  grid-column: 3;
  display: flex;
  gap: 5px;
}

.screen-market.header-collapsed .market-topbar > .quick-publish,
.screen-market.header-collapsed .market-topbar > .market-message-button { grid-column: 4; }

.screen-market.header-collapsed .market-topbar > .brand-mark,
.screen-market.header-collapsed .market-topbar .market-topbar-icon,
.screen-market.header-collapsed .market-topbar > .quick-publish {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 12px;
  opacity: 1;
  backdrop-filter: none;
}

.screen-market.header-collapsed .market-topbar > .brand-mark,
.screen-market.header-collapsed .market-topbar .market-topbar-icon {
  background: #151c29;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.screen-market.header-collapsed .market-topbar > .quick-publish {
  background: linear-gradient(135deg, #ffe0a1, var(--gold));
}

.brand-mark,
.icon-button {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.075);
  color: var(--blue-2);
  font-size: 18px;
  font-weight: 760;
}

.icon-button {
  font-size: 26px;
  line-height: 1;
}

.quick-publish {
  color: #06101f;
  border-color: rgba(216, 173, 90, 0.7);
  background:
    linear-gradient(135deg, #ffe0a1, var(--gold));
  box-shadow:
    0 10px 26px rgba(216, 173, 90, 0.18),
    inset 0 0 0 1px rgba(255, 255, 255, 0.34);
  font-size: 24px;
}

.hero-panel,
.open-month,
.seat-panel,
.pass-card,
.archive-summary,
.studio-form,
.info-block,
.checkout-panel {
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.06));
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.hero-panel h2,
.detail-title h2,
.archive-summary h2,
.pass-card h2,
.studio-form h2 {
  margin: 8px 0;
  font-size: 26px;
  line-height: 1.15;
  letter-spacing: 0;
}

.seat-overview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.seat-overview div {
  padding: 14px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.075);
}

.seat-overview strong {
  display: block;
  color: var(--text);
  font-size: 24px;
  line-height: 1.1;
}

.seat-overview span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.seat-dashboard {
  display: block;
}

.portfolio-total {
  color: var(--gold);
  font-size: inherit;
  font-weight: 800;
}

.seat-mode-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding: 5px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
}

.seat-mode-tabs button {
  display: grid;
  min-height: 70px;
  align-content: center;
  gap: 6px;
  padding: 9px 6px;
  border: 0;
  border-radius: 10px;
  color: var(--muted);
  font: inherit;
  font-weight: 800;
  text-align: left;
  background: transparent;
}

.seat-mode-tabs button > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.seat-mode-tabs button > div span {
  font-size: 12px;
  white-space: nowrap;
}

.seat-mode-tabs button.active {
  color: var(--text);
  background: rgba(79, 140, 255, 0.2);
  box-shadow: inset 0 0 0 1px rgba(127, 176, 255, 0.34);
}

.seat-mode-tabs b {
  min-width: 24px;
  padding: 3px 7px;
  border-radius: 999px;
  color: var(--soft);
  background: rgba(255, 255, 255, 0.08);
  font-size: 11px;
}

.seat-mode-tabs button.active b {
  color: #06101f;
  background: var(--gold);
}

.seat-mode-tabs b.has-alert {
  box-shadow: 0 0 0 3px rgba(232, 185, 82, 0.12);
}

.seat-mode-tabs small {
  color: var(--soft);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.35;
}

.seat-mode-tabs button.active small {
  color: var(--muted);
}

.seat-reminder-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  min-height: 54px;
  margin-top: 7px;
  padding: 9px 4px;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: inherit;
  background: transparent;
  text-align: left;
}

.seat-reminder-entry div,
.seat-reminder-entry strong,
.seat-reminder-entry span {
  display: block;
}

.seat-reminder-entry strong {
  font-size: 13px;
}

.seat-reminder-entry div span {
  margin-top: 3px;
  color: var(--soft);
  font-size: 10px;
}

.seat-reminder-entry > b {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--blue-2);
  font-size: 15px;
  font-weight: 500;
}

.seat-reminder-entry > b span {
  padding: 3px 7px;
  border-radius: 999px;
  color: #07101e;
  background: var(--gold);
  font-size: 10px;
  font-weight: 800;
}

.seat-reminder-entry.active {
  background: rgba(79, 140, 255, 0.07);
  box-shadow: inset 2px 0 0 var(--blue-2);
}

.seat-utility-entries {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  border-bottom: 1px solid var(--line);
}

.seat-utility-entries .seat-reminder-entry {
  margin-top: 0;
  border-bottom: 0;
}

.seat-utility-entries .seat-reminder-entry > b {
  align-items: flex-end;
  flex-direction: column;
  font-size: 12px;
}

.seat-resale-entry.active {
  background: rgba(222, 174, 76, 0.08);
  box-shadow: inset 2px 0 0 var(--gold);
}

.seat-activity-center {
  padding: 8px 0 0;
  border-bottom: 1px solid var(--line);
}

.seat-activity-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 4px 7px;
}

.seat-activity-heading div {
  display: flex;
  gap: 8px;
  align-items: center;
}

.seat-activity-heading strong {
  font-size: 13px;
}

.seat-activity-heading span {
  padding: 2px 7px;
  border-radius: 999px;
  color: #07101e;
  background: var(--gold);
  font-size: 10px;
  font-weight: 800;
}

.seat-activity-heading small {
  color: var(--soft);
  font-size: 10px;
}

.seat-activity-row {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr) auto auto;
  gap: 9px;
  align-items: center;
  width: 100%;
  padding: 10px 4px;
  border: 0;
  border-top: 1px solid rgba(110, 123, 143, 0.28);
  color: inherit;
  text-align: left;
  background: transparent;
}

.seat-activity-row.active {
  background: rgba(79, 140, 255, 0.07);
}

.activity-signal {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue-2);
}

.activity-signal.fresh {
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(216, 173, 90, 0.12);
}

.seat-activity-row div,
.seat-activity-row strong,
.seat-activity-row small {
  display: block;
}

.seat-activity-row strong {
  font-size: 12px;
}

.seat-activity-row small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
}

.seat-activity-row b {
  color: var(--gold);
  font-size: 10px;
  white-space: nowrap;
}

.seat-activity-row em {
  color: var(--blue-2);
  font-size: 11px;
  font-style: normal;
  font-weight: 750;
  white-space: nowrap;
}

.seat-resale-list {
  display: grid;
}


.transfer-state-panel {
  display: grid;
  padding-bottom: 100px;
}

.transfer-offer-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  padding: 15px 4px;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: inherit;
  text-align: left;
  background: transparent;
}

.transfer-offer-row > div {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.transfer-offer-row p,
.transfer-offer-row small {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
}

.transfer-offer-row > b {
  color: var(--gold);
  font-size: 15px;
}

.transfer-offer-row > em {
  color: var(--blue-2);
  font-size: 11px;
  font-style: normal;
  white-space: nowrap;
}

.seat-resale-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  padding: 16px 4px;
  border-bottom: 1px solid var(--line);
}

.seat-resale-row p {
  margin: 5px 0 10px;
  color: var(--muted);
  font-size: 12px;
}

.seat-resale-row .row-between span {
  color: var(--gold);
  font-weight: 800;
}

.trade-section-label {
  margin: 4px 0 2px;
  color: var(--soft);
  font-size: 12px;
  font-weight: 820;
}

.buy-bid-row {
  border-color: rgba(127, 176, 255, 0.38);
  background: rgba(79, 140, 255, 0.07);
}

.resale-row-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.resale-row-actions > span {
  margin-right: auto;
  color: var(--soft);
  font-size: 11px;
}

.resale-row-actions button {
  padding: 7px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  color: var(--blue-2);
  background: transparent;
}

.resale-row-actions .muted-action {
  color: var(--muted);
}

.seat-tab-content {
  margin-top: 12px;
  padding-bottom: 96px;
}

.seat-reminders {
  display: grid;
}

.seat-reminder-intro {
  display: grid;
  gap: 3px;
  padding: 4px 4px 12px;
  border-bottom: 1px solid var(--line);
}

.seat-reminder-intro strong {
  font-size: 14px;
}

.seat-reminder-intro span {
  color: var(--muted);
  font-size: 11px;
}

.seat-reminder-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 11px;
  align-items: center;
  width: 100%;
  padding: 15px 4px;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: inherit;
  background: transparent;
  text-align: left;
}

.seat-reminder-row.fresh {
  box-shadow: inset 3px 0 0 var(--gold);
}

.seat-reminder-row .row-between span {
  color: var(--soft);
  font-size: 10px;
}

.seat-reminder-row.fresh .row-between span,
.seat-reminder-row.fresh > b {
  color: var(--gold);
}

.seat-reminder-row h3 {
  margin: 4px 0 3px;
  font-size: 15px;
}

.seat-reminder-row p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.seat-reminder-row > b {
  color: var(--blue-2);
  font-size: 11px;
  white-space: nowrap;
}

.archived-seat-cards {
  display: grid;
  gap: 10px;
}

.archived-seat-cards > button {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 10px;
  width: 100%;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  color: inherit;
  font: inherit;
  text-align: left;
  background: rgba(255, 255, 255, 0.07);
}

.archived-seat-cards .row-between {
  gap: 8px;
}

.archived-seat-cards .row-between span,
.archived-seat-cards p {
  color: var(--muted);
  font-size: 12px;
}

.archived-seat-cards p {
  margin-top: 5px;
}

.archived-seat-cards .archive-value {
  color: var(--gold);
  font-size: inherit;
}

.archived-seat-cards > button > b {
  color: var(--blue-2);
  font-size: 12px;
  white-space: nowrap;
}

.seat-holdings {
  display: grid;
  gap: 12px;
}

.holding-card {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 12px;
  width: 100%;
  padding: 14px;
  border: 1px solid rgba(216, 173, 90, 0.52);
  border-radius: 20px;
  color: inherit;
  font: inherit;
  text-align: left;
  background:
    linear-gradient(135deg, rgba(216, 173, 90, 0.12), rgba(255, 255, 255, 0.065));
}

.holding-card h3 {
  margin: 9px 0 4px;
  font-size: 20px;
  line-height: 1.25;
}

.holding-card p {
  color: var(--muted);
  font-size: 14px;
}

.holding-card .row-between strong {
  color: var(--gold);
}

.seat-price-pair {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 10px;
  text-align: right;
}

.seat-price-pair > span {
  display: grid;
  gap: 2px;
}

.seat-price-pair small {
  color: var(--soft);
  font-size: 9px;
  font-weight: 600;
  white-space: nowrap;
}

.seat-price-pair b {
  color: var(--muted);
  font-size: 14px;
  line-height: 1;
}

.seat-price-pair > span:last-child b {
  color: var(--gold);
}

.seat-rights-summary {
  margin-top: 12px;
  color: var(--soft);
  font-size: 11px;
  line-height: 1.45;
}

.seat-rights-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.seat-rights-row > button {
  padding: 4px 0;
  border: 0;
  color: var(--blue-2);
  background: transparent;
  font-size: 10px;
  font-weight: 760;
  white-space: nowrap;
}

.seat-certificate {
  padding: 10px 0 14px;
}

.certificate-border {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 15px;
  min-height: 360px;
  padding: 18px;
  border: 1px solid rgba(216, 173, 90, 0.62);
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(216, 173, 90, 0.13), rgba(79, 140, 255, 0.1) 42%, rgba(255, 255, 255, 0.055)),
    rgba(8, 11, 18, 0.92);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.055),
    inset 0 0 0 8px rgba(8, 11, 18, 0.28);
}

.certificate-border::before,
.certificate-border::after {
  content: "";
  position: absolute;
  width: 140px;
  height: 140px;
  border: 1px solid rgba(216, 173, 90, 0.22);
  border-radius: 50%;
}

.certificate-border::before {
  top: -62px;
  right: -42px;
}

.certificate-border::after {
  bottom: -72px;
  left: -52px;
}

.certificate-kicker,
.certificate-title,
.certificate-relationship {
  position: relative;
  z-index: 1;
}

.certificate-kicker {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--soft);
  font-size: 10px;
  font-weight: 820;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.certificate-kicker b {
  color: var(--gold);
  font-weight: 860;
}

.certificate-title {
  display: grid;
  gap: 4px;
}

.certificate-title h2 {
  margin: 9px 0 4px;
  font-size: 24px;
  line-height: 1.15;
}

.certificate-title p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.certificate-rights {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 4px;
  border-top: 1px solid rgba(216, 173, 90, 0.28);
  border-bottom: 1px solid rgba(216, 173, 90, 0.28);
  background: rgba(3, 8, 17, 0.44);
}

.certificate-rights > div {
  min-width: 0;
  padding: 10px 8px;
  border-right: 1px solid rgba(216, 173, 90, 0.2);
}

.certificate-rights > div:last-child {
  border-right: 0;
}

.certificate-rights span {
  display: block;
  margin-bottom: 4px;
  color: var(--soft);
  font-size: 10px;
  font-weight: 760;
}

.certificate-rights strong {
  display: block;
  color: var(--text);
  font-size: 12px;
  line-height: 1.35;
}

.certificate-relationship {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 78px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  padding: 13px 0;
  border-top: 1px solid rgba(216, 173, 90, 0.28);
  border-bottom: 1px solid rgba(216, 173, 90, 0.28);
}

.certificate-person {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.certificate-person.knight {
  grid-template-columns: minmax(0, 1fr) 42px;
  text-align: right;
}

.certificate-person .avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
}

.certificate-person.king .avatar {
  border-color: rgba(216, 173, 90, 0.72);
}

.certificate-person.knight .avatar {
  border-color: rgba(109, 158, 255, 0.78);
}

.certificate-person-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.certificate-person span,
.certificate-person small {
  color: var(--soft);
  font-size: 10px;
  font-weight: 760;
  line-height: 1.25;
}

.certificate-person strong {
  color: var(--text);
  overflow: hidden;
  font-size: 16px;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.certificate-relationship-link {
  display: grid;
  grid-template-columns: minmax(8px, 1fr) auto minmax(8px, 1fr);
  align-items: center;
  gap: 3px;
}

.certificate-relationship-link i {
  height: 1px;
  background: linear-gradient(90deg, rgba(216, 173, 90, 0.16), rgba(216, 173, 90, 0.88));
}

.certificate-relationship-link i:last-child {
  background: linear-gradient(90deg, rgba(109, 158, 255, 0.88), rgba(109, 158, 255, 0.16));
}

.certificate-relationship-link b {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(216, 173, 90, 0.68);
  border-radius: 50%;
  background: rgba(14, 19, 30, 0.92);
  color: var(--gold);
  font-size: 10px;
  font-weight: 880;
}

.same-month-seat-group {
  display: grid;
  gap: 10px;
  margin: 0 0 16px;
  padding: 12px;
  border: 1px solid rgba(216, 173, 90, 0.28);
  border-radius: 18px;
  background: rgba(216, 173, 90, 0.06);
}

.same-month-seat-group > div:first-child {
  display: grid;
  gap: 3px;
}

.same-month-seat-group span {
  color: var(--soft);
  font-size: 10px;
  font-weight: 760;
}

.same-month-seat-group strong {
  color: var(--text);
  font-size: 14px;
}

.same-month-seat-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.same-month-seat-list button {
  display: grid;
  gap: 3px;
  min-height: 48px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: inherit;
  background: rgba(255, 255, 255, 0.045);
  text-align: left;
}

.same-month-seat-list button.active {
  border-color: rgba(216, 173, 90, 0.68);
  background: rgba(216, 173, 90, 0.15);
}

.same-month-seat-list button strong {
  color: var(--gold);
  font-size: 15px;
}

.same-month-seat-list button span {
  color: var(--muted);
  font-size: 9px;
}

.seat-history-values {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid rgba(216, 173, 90, 0.28);
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.16);
}

.seat-history-values > div {
  display: grid;
  gap: 4px;
  padding: 11px 9px;
}

.seat-history-values > div + div { border-left: 1px solid rgba(216, 173, 90, 0.22); }
.seat-history-values span { color: var(--soft); font-size: 9px; }
.seat-history-values strong { color: var(--gold); font-size: 16px; }

.certificate-seal {
  position: absolute;
  right: 18px;
  bottom: 18px;
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  border: 1px solid rgba(216, 173, 90, 0.58);
  border-radius: 50%;
  color: var(--gold);
  background: rgba(216, 173, 90, 0.08);
  transform: rotate(-8deg);
}

.certificate-seal span {
  font-size: 20px;
  font-weight: 900;
}

.certificate-seal strong {
  font-size: 8px;
  letter-spacing: 0.08em;
}

.seat-history-log {
  margin-top: 4px;
  padding: 16px 4px 8px;
  border-top: 1px solid rgba(216, 173, 90, 0.26);
}

.seat-history-log > h3 {
  margin-bottom: 12px;
  color: var(--gold);
  font-size: 16px;
}

.seat-history-log article {
  display: grid;
  grid-template-columns: 42px 12px minmax(0, 1fr);
  gap: 8px;
  min-height: 78px;
}

.seat-history-log time {
  color: var(--soft);
  font-size: 10px;
  font-weight: 760;
}

.seat-history-log i {
  position: relative;
  width: 8px;
  height: 8px;
  margin-top: 2px;
  border: 2px solid var(--blue-2);
  border-radius: 50%;
}

.seat-history-log i::after {
  content: "";
  position: absolute;
  top: 8px;
  left: 2px;
  width: 1px;
  height: 62px;
  background: var(--line-strong);
}

.seat-history-log article:last-child i::after { display: none; }
.seat-history-log article.current i { border-color: var(--gold); }
.seat-history-log article.current strong { color: var(--gold); }
.seat-history-log p { margin: 5px 0 0; color: var(--muted); font-size: 11px; line-height: 1.45; }

.seat-history-tax-note {
  margin: 0 4px 96px;
  padding: 13px 0;
  border-top: 1px solid rgba(216, 173, 90, 0.36);
}

.seat-history-tax-note span,
.seat-history-tax-note strong { color: var(--gold); }
.seat-history-tax-note span { font-size: 11px; font-weight: 800; }
.seat-history-tax-note p { margin: 5px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }

.certificate-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 8px 4px 12px;
  padding: 13px;
  border: 1px solid rgba(216, 173, 90, 0.34);
  border-radius: 18px;
  background: rgba(216, 173, 90, 0.07);
}

.certificate-actions > div {
  grid-column: 1 / -1;
  display: grid;
  gap: 4px;
}

.certificate-actions span {
  color: var(--gold);
  font-size: 11px;
  font-weight: 820;
}

.certificate-actions strong {
  font-size: 14px;
}

.certificate-actions .primary {
  grid-column: 1 / -1;
}

.seat-management-actions {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 8px;
  margin-top: 12px;
}

.seat-management-actions.single {
  grid-template-columns: 1fr;
}

.seat-management-actions .primary,
.seat-management-actions .secondary {
  min-height: 40px;
  margin-top: 0;
  border-radius: 7px;
  font-size: 12px;
}

.holding-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.holding-meta span {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.06);
  font-size: 12px;
  font-weight: 700;
}

.holding-card .event-action {
  margin-top: 12px;
}

.holding-card .event-action b {
  color: var(--blue-2);
}

.archived-holdings {
  display: grid;
  gap: 8px;
  padding-bottom: 96px;
}

.compact-hero {
  padding: 16px;
}

.compact-hero h2 {
  font-size: 24px;
}

p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.62;
  margin: 0;
}

.eyebrow,
.section-label {
  display: inline-flex;
  align-items: center;
  color: var(--blue-2);
  font-size: 12px;
  font-weight: 720;
}

.primary,
.secondary {
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 16px;
  font-size: 15px;
  font-weight: 760;
  margin-top: 16px;
}

.primary {
  color: #06101f;
  background: linear-gradient(135deg, #7fb0ff, var(--blue));
  box-shadow:
    0 12px 32px rgba(79, 140, 255, 0.32),
    inset 0 0 0 1px rgba(255, 255, 255, 0.45);
}

.secondary {
  color: var(--text);
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.08);
}

.filter-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 18px 0 10px;
}

.market-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 14px 0 12px;
  padding: 6px;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.07);
}

.market-switch button {
  min-height: 54px;
  border: 0;
  border-radius: 13px;
  color: var(--muted);
  background: transparent;
  text-align: left;
  padding: 9px 11px;
}

.market-switch strong,
.market-switch span {
  display: block;
}

.market-switch strong {
  color: inherit;
  font-size: 15px;
}

.market-switch span {
  margin-top: 3px;
  font-size: 11px;
  color: var(--soft);
}

.market-switch button.selected {
  color: var(--text);
  background:
    linear-gradient(135deg, rgba(79, 140, 255, 0.22), rgba(255, 255, 255, 0.07));
  box-shadow: inset 0 0 0 1px rgba(127, 176, 255, 0.22);
}

.market-switch button.selected span {
  color: var(--blue-2);
}

.time-market-map {
  display: grid;
  gap: 8px;
  margin: 12px 0 10px;
}

.section-head.compact {
  padding: 0 2px;
}

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

.time-stage-card {
  display: grid;
  min-height: 122px;
  align-content: start;
  gap: 5px;
  padding: 13px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  color: inherit;
  font: inherit;
  text-align: left;
  background: rgba(255, 255, 255, 0.062);
}

.time-stage-card.future,
.time-stage-current.future {
  border-color: rgba(216, 173, 90, 0.5);
  background: linear-gradient(135deg, rgba(216, 173, 90, 0.13), rgba(255, 255, 255, 0.055));
}

.time-stage-card.live {
  border-color: rgba(127, 176, 255, 0.48);
  background: linear-gradient(135deg, rgba(79, 140, 255, 0.14), rgba(255, 255, 255, 0.055));
}

.time-stage-card.past {
  border-color: rgba(181, 191, 211, 0.36);
}

.time-stage-card.chronicle {
  border-color: rgba(140, 214, 176, 0.42);
  background: linear-gradient(135deg, rgba(53, 176, 119, 0.11), rgba(255, 255, 255, 0.052));
}

.time-stage-card span,
.time-stage-card b {
  color: var(--blue-2);
  font-size: 10px;
  font-weight: 800;
}

.time-stage-card.future span,
.time-stage-card.future b {
  color: var(--gold);
}

.time-stage-card strong {
  font-size: 16px;
  line-height: 1.2;
}

.time-stage-card p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.42;
}

.time-stage-card b {
  margin-top: auto;
}

.market-search-tools {
  margin-top: 6px;
  margin-bottom: 10px;
}

.market-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 60px;
  align-items: center;
  min-height: 52px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.07);
}

.market-search input {
  width: 100%;
  height: 100%;
  padding: 0 12px;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
  font-size: 14px;
}

.market-search input::placeholder {
  color: rgba(196, 208, 226, 0.48);
}

.market-search-action {
  align-self: stretch;
  width: 60px;
  padding: 0;
  border: 0;
  border-left: 1px solid var(--line);
  color: var(--blue-2);
  background: rgba(79, 140, 255, 0.14);
  font-size: 13px;
  font-weight: 850;
}

.global-results {
  display: grid;
  gap: 12px;
  padding-bottom: 96px;
}

.global-result {
  display: grid;
  gap: 7px;
  width: 100%;
  padding: 14px;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  color: inherit;
  font: inherit;
  text-align: left;
  background: rgba(255, 255, 255, 0.075);
  cursor: pointer;
}

.global-result h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.28;
}

.global-result strong {
  color: var(--blue-2);
  font-size: 13px;
}

.global-result p {
  color: var(--muted);
  font-size: 14px;
}

.global-result .row-between > span:last-child {
  color: var(--muted);
  font-size: 12px;
}

.global-result.gold-result {
  border-color: rgba(216, 173, 90, 0.58);
  background:
    linear-gradient(135deg, rgba(216, 173, 90, 0.13), rgba(255, 255, 255, 0.065));
}

.explore-search-topbar {
  grid-template-columns: 44px minmax(0, 1fr);
}

.explore-search-field {
  display: flex;
  align-items: center;
  width: 100%;
  min-width: 0;
  min-height: 40px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.explore-search-field input {
  flex: 1;
  min-width: 0;
  height: 40px;
  padding: 0 14px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  outline: 0;
}

.explore-search-field button {
  flex: none;
  width: 42px;
  height: 40px;
  border: 0;
  border-left: 1px solid var(--line);
  background: transparent;
  color: var(--blue-2);
  font: inherit;
  font-size: 16px;
  cursor: pointer;
}

.explore-results {
  display: grid;
  gap: 12px;
  padding-bottom: 28px;
}

.explore-hit {
  display: grid;
  gap: 8px;
  width: 100%;
  padding: 16px;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.explore-hit h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 760;
  line-height: 1.35;
}

.explore-hit p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.explore-hit-user,
.explore-person {
  display: grid;
  align-items: center;
}

.explore-hit-user {
  grid-template-columns: 36px minmax(0, 1fr) auto;
  gap: 10px;
  margin-top: 4px;
}

.explore-person {
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.explore-hit-user img,
.explore-person img {
  display: block;
  flex: none;
  border-radius: 50%;
  object-fit: cover;
}

.explore-hit-user img { width: 36px; max-width: 36px; height: 36px; }
.explore-person img { width: 46px; max-width: 46px; height: 46px; }

.explore-hit-user > span,
.explore-person > span { min-width: 0; }

.explore-hit-user strong,
.explore-person strong {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
}

.explore-hit-user small,
.explore-person small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.explore-king-mark {
  display: inline-flex;
  align-items: center;
  padding: 0 5px;
  border-radius: 999px;
  background: rgba(199, 163, 90, 0.16);
  color: var(--gold);
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
  line-height: 1.6;
}

.explore-scope {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  white-space: nowrap;
}

.explore-person em {
  display: block;
  margin-top: 6px;
  color: var(--blue-2);
  font-size: 13px;
  font-style: normal;
  line-height: 1.45;
}

.explore-person-meta { margin-top: 8px; }

.explore-knight-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.explore-knight-stats > span { display: grid; gap: 2px; }
.explore-knight-stats b { color: var(--text); font-size: 16px; font-weight: 760; }
.explore-knight-stats small { margin-top: 0; font-size: 11px; }

.explore-project-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.explore-project-foot b {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--blue-2);
  font-weight: 680;
}

.explore-project-foot svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.explore-hit-project.knight-only {
  border-color: rgba(216, 173, 90, 0.45);
}

.explore-hit-project.knight-only .explore-project-foot b { color: var(--gold); }

.empty-state {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.055);
}

.chip,
.badge,
.knight-badge {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.075);
  color: var(--muted);
  white-space: nowrap;
  font-size: 13px;
  font-weight: 650;
}

.chip.selected {
  color: var(--text);
  border-color: rgba(127, 176, 255, 0.82);
  background: rgba(79, 140, 255, 0.24);
}

.badge {
  display: inline-flex;
  padding: 6px 10px;
  color: var(--blue-2);
}

.badge.gold,
.knight-badge,
.section-label.gold {
  color: var(--gold);
  border-color: rgba(216, 173, 90, 0.32);
  background: var(--gold-soft);
}

.section-head,
.row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.section-head {
  margin: 10px 0 12px;
}

.section-head h3,
.timeline h3,
.discussion h3,
.info-block h3,
.soft-plan h3 {
  margin: 0;
  font-size: 17px;
  letter-spacing: 0;
}

.section-head span,
.discussion .row-between span {
  color: var(--soft);
  font-size: 12px;
}

.month-list {
  display: grid;
  gap: 12px;
}

.live-records {
  display: grid;
  gap: 10px;
}

.live-record {
  display: grid;
  gap: 10px;
  padding: 14px;
  text-align: left;
  border: 1px solid var(--line-strong);
  border-radius: 19px;
  background: rgba(255, 255, 255, 0.075);
}

.live-record h3 {
  margin: 0 0 7px;
  font-size: 16px;
  line-height: 1.32;
}

.live-record p {
  font-size: 14px;
  line-height: 1.52;
}

.live-context {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  margin-top: 10px;
}

.live-context .avatar.tiny {
  width: 24px;
  height: 24px;
}

.live-context span {
  color: var(--soft);
  font-size: 12px;
  font-weight: 680;
}

.live-context strong {
  color: var(--blue-2);
  font-size: 13px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-context time {
  color: var(--soft);
  font-size: 11px;
  font-weight: 720;
  justify-self: end;
  white-space: nowrap;
}

.live-signals {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.live-signals span {
  min-height: 26px;
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.045);
  font-size: 11px;
  font-weight: 700;
}

.live-meta {
  color: var(--soft);
  font-size: 12px;
  font-weight: 700;
}

.content-access-pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 9px;
  border: 1px solid rgba(121, 168, 255, 0.42);
  border-radius: 999px;
  color: var(--blue-2);
  background: rgba(79, 140, 255, 0.11);
  font-size: 11px;
  font-weight: 820;
  line-height: 1.2;
}

.content-access-pill.gold {
  color: var(--gold);
  border-color: rgba(216, 173, 90, 0.42);
  background: rgba(216, 173, 90, 0.13);
}

.live-locked {
  border-color: rgba(216, 173, 90, 0.46);
  background:
    linear-gradient(135deg, rgba(216, 173, 90, 0.13), rgba(255, 255, 255, 0.065));
}

.live-locked .event-action button {
  background: var(--gold);
}

.live-locked .live-context strong {
  color: #ffe0a1;
}

.live-locked .live-signals span {
  border-color: rgba(216, 173, 90, 0.32);
  color: #ffe0a1;
  background: rgba(216, 173, 90, 0.1);
}

.month-card {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 12px;
  text-align: left;
  padding: 14px;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.075);
}

.avatar,
.profile-avatar {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.avatar.small {
  width: 42px;
  height: 42px;
  border-radius: 14px;
}

.avatar.tiny {
  width: 34px;
  height: 34px;
  border-radius: 12px;
}

.card-main h4,
.open-month h3,
.seat-panel h3 {
  margin: 6px 0;
  font-size: 16px;
  line-height: 1.25;
}

.price {
  color: var(--gold);
  font-weight: 800;
}

.price.big {
  font-size: 28px;
}

.seat-panel .note.gold {
  color: var(--gold);
  font-weight: 800;
}

.seat-line {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  color: var(--soft);
  font-size: 12px;
}

.meter {
  height: 6px;
  overflow: hidden;
  margin-top: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
}

.meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold), var(--blue));
}

.bottom-tabs {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
  padding: 8px;
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  background: rgba(10, 15, 24, 0.96);
  backdrop-filter: blur(18px);
}

.tab {
  min-height: 44px;
  border: 0;
  border-radius: 16px;
  background: transparent;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 0 4px;
  font-size: 10px;
  font-weight: 680;
}

.tab svg {
  display: block;
  width: 23px;
  height: 23px;
  margin: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tab-label {
  display: block;
  line-height: 1;
  white-space: nowrap;
}

.tab.active svg {
  stroke-width: 2;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.tab.active {
  color: var(--text);
  background: rgba(79, 140, 255, 0.16);
}

.profile-hero {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 16px;
  align-items: center;
  padding: 16px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(79, 140, 255, 0.13), rgba(216, 173, 90, 0.08));
  border: 1px solid var(--line-strong);
}

.profile-hero.compact {
  grid-template-columns: 76px 1fr;
}

.profile-hero.king-compact {
  grid-template-columns: 68px 1fr;
  padding: 14px;
}

.profile-avatar {
  width: 92px;
  height: 92px;
  border-radius: 26px;
}

.profile-hero.compact .profile-avatar {
  width: 76px;
  height: 76px;
}

.account-hero {
  padding: 14px;
}

.account-hero .row-between > button {
  margin-left: auto;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  color: var(--blue-2);
  background: rgba(79, 140, 255, 0.08);
  font-size: 11px;
  font-weight: 740;
}

.account-hero h2 small {
  color: var(--soft);
  font-size: 12px;
  font-weight: 600;
}

.profile-edit-bar {
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.app.header-collapsed .profile-edit-bar {
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.topbar.profile-edit-bar h1 {
  text-align: center;
  font-size: 18px;
}

.profile-edit-cancel,
.profile-edit-save {
  min-height: 36px;
  padding: 0 2px;
  border: 0;
  background: transparent;
  color: var(--blue-2);
  font-size: 15px;
  font-weight: 740;
}

.profile-edit-save:disabled {
  color: var(--soft);
  cursor: default;
}

.profile-edit {
  display: grid;
  gap: 18px;
  padding: 12px 6px 48px;
}

.profile-edit-avatar {
  position: relative;
  justify-self: center;
  width: 112px;
  height: 112px;
  margin: 10px 0 6px;
  cursor: pointer;
}

.profile-edit-avatar img {
  width: 112px;
  height: 112px;
  border-radius: 32px;
  object-fit: cover;
  border: 1px solid var(--line-strong);
}

.profile-edit-camera {
  position: absolute;
  right: -2px;
  bottom: -2px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--text);
  color: var(--phone);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
}

.profile-edit-camera svg {
  width: 18px;
  height: 18px;
  display: block;
}

.profile-edit label:not(.profile-edit-avatar) {
  display: grid;
  gap: 8px;
}

.profile-edit label:not(.profile-edit-avatar) > span {
  color: var(--text);
  font-size: 15px;
  font-weight: 680;
}

.profile-edit input,
.profile-edit textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.085);
  outline: none;
  font: inherit;
}

.profile-edit input {
  min-height: 48px;
  padding: 0 14px;
}

.profile-edit textarea {
  min-height: 96px;
  padding: 14px;
  resize: vertical;
  line-height: 1.5;
}

.profile-edit input::placeholder,
.profile-edit textarea::placeholder {
  color: var(--soft);
}

.profile-edit-error {
  margin: -6px 0 0;
  color: #ff9c9c;
  font-size: 12px;
  line-height: 1.4;
}

.profile-edit-error:empty {
  display: none;
}

.settings-group {
  margin-top: 16px;
}

.settings-group > h3 {
  margin: 0 2px 5px;
  color: var(--muted);
  font-size: 13px;
}

.settings-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px;
  width: 100%;
  min-height: 58px;
  align-items: center;
  padding: 9px 2px;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: inherit;
  font: inherit;
  text-align: left;
  background: transparent;
}

.settings-row strong,
.settings-row span {
  display: block;
}

.settings-row strong {
  font-size: 14px;
}

.settings-row span {
  margin-top: 4px;
  color: var(--soft);
  font-size: 11px;
}

.settings-row > em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

.settings-row > b,
.settings-row > .switch {
  grid-column: -1;
}

.settings-row > b {
  color: var(--soft);
  font-size: 22px;
  font-weight: 400;
}

.storage-settings-row > div { min-width: 0; }
.storage-mini-meter {
  display: block;
  width: min(220px, 100%);
  height: 4px;
  margin-top: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}
.storage-mini-meter > b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--blue-2));
}

.storage-overview-card {
  margin-top: 12px;
  padding: 20px;
  border: 1px solid rgba(121, 168, 255, 0.32);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(34, 73, 132, 0.34), rgba(7, 13, 24, 0.76));
}
.storage-overview-head,
.storage-meter-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
}
.storage-overview-head span,
.storage-overview-head p,
.storage-meter-meta { color: var(--muted); }
.storage-overview-head span { display: block; margin-bottom: 5px; font-size: 12px; }
.storage-overview-head strong { font-size: 34px; line-height: 1; }
.storage-overview-head strong small { font-size: 13px; }
.storage-overview-head p { margin: 0 0 2px; font-size: 13px; }
.storage-main-meter {
  height: 10px;
  margin: 20px 0 9px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}
.storage-main-meter > i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #4f8cff, #79a8ff);
  box-shadow: 0 0 18px rgba(79, 140, 255, 0.4);
}
.storage-meter-meta { align-items: center; font-size: 11px; }
.storage-meter-meta strong { color: var(--text); }
.storage-breakdown { margin-top: 22px; }
.storage-breakdown h3 { margin: 0 0 8px; color: var(--muted); font-size: 12px; }
.storage-breakdown-row {
  display: grid;
  grid-template-columns: 9px minmax(90px, .7fr) minmax(110px, 1fr);
  gap: 11px;
  align-items: center;
  min-height: 54px;
  border-bottom: 1px solid var(--line);
}
.storage-breakdown-row > div { display: flex; justify-content: space-between; gap: 10px; }
.storage-breakdown-row strong { font-size: 13px; }
.storage-breakdown-row span { color: var(--muted); font-size: 11px; }
.storage-dot { width: 8px; height: 8px; border-radius: 50%; background: #79a8ff; }
.storage-dot.type-1 { background: #d6ad55; }
.storage-dot.type-2 { background: #71c6ae; }
.storage-dot.type-3 { background: #8e91a8; }
.storage-breakdown-row em { height: 5px; overflow: hidden; border-radius: 999px; background: rgba(255,255,255,.07); }
.storage-breakdown-row em b { display: block; height: 100%; border-radius: inherit; background: rgba(121,168,255,.72); }
.storage-archive-note {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 14px;
  margin-top: 22px;
  padding: 16px;
  border: 1px solid rgba(214, 173, 85, 0.3);
  border-radius: 17px;
  background: rgba(214, 173, 85, 0.07);
}
.storage-archive-note > span { color: var(--gold); font-size: 12px; font-weight: 760; }
.storage-archive-note strong { font-size: 13px; }
.storage-archive-note p { margin: 6px 0 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.storage-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 18px 0 104px; }

.switch {
  position: relative;
  width: 44px;
  height: 26px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.switch i {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--muted);
  transition: transform 160ms ease, background 160ms ease;
}

.switch.on {
  border-color: rgba(127, 176, 255, 0.5);
  background: rgba(79, 140, 255, 0.32);
}

.switch.on i {
  background: var(--blue-2);
  transform: translateX(18px);
}

.profile-last-group {
  padding-bottom: 104px;
}

.settings-detail {
  display: grid;
  margin-top: 8px;
  padding-bottom: 96px;
}

.settings-detail.with-danger {
  padding-bottom: 0;
}

.settings-detail-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  width: 100%;
  min-height: 66px;
  align-items: center;
  padding: 12px 2px;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: inherit;
  font: inherit;
  text-align: left;
  background: transparent;
}

.settings-detail-row strong,
.settings-detail-row span {
  display: block;
}

.settings-detail-row span {
  margin-top: 5px;
  color: var(--soft);
  font-size: 12px;
}

.settings-detail-row > b {
  color: var(--soft);
  font-size: 22px;
  font-weight: 400;
}

.report-row {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  gap: 10px;
  width: 100%;
  align-items: center;
  padding: 14px 2px;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: inherit;
  font: inherit;
  text-align: left;
  background: transparent;
}

.report-row img,
.report-king img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
}

.report-row-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.report-row-head strong {
  min-width: 0;
}

.report-row strong,
.report-row span,
.report-king span {
  display: block;
}

.report-row span,
.report-king span {
  margin-top: 4px;
  color: var(--soft);
  font-size: 12px;
  line-height: 1.4;
}

.report-row em {
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
}

.report-row > b {
  color: var(--soft);
  font-size: 22px;
  font-weight: 400;
}

.report-king {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  margin-bottom: 16px;
}

.report-king strong {
  font-size: 16px;
}

.report-detail h2 {
  margin: 0 0 10px;
}

.report-detail p {
  margin: 0 0 8px;
  color: var(--muted);
  line-height: 1.5;
}

.report-shots {
  display: flex;
  gap: 8px;
  margin: 4px 0 12px;
}

.report-shots img {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  object-fit: cover;
}

.danger-action {
  width: 100%;
  min-height: 46px;
  margin: 16px 0 96px;
  border: 1px solid rgba(255, 112, 112, 0.35);
  border-radius: 12px;
  color: #ff9c9c;
  background: rgba(255, 80, 80, 0.06);
  font-weight: 740;
}

.account-exit {
  display: grid;
  justify-items: center;
  margin-bottom: 96px;
}

.account-exit .danger-action {
  margin-bottom: 0;
}

.delete-account-note {
  margin: 14px 0 0;
  color: var(--soft);
  font-size: 12px;
}

.delete-account {
  min-height: 0;
  margin-top: 16px;
  padding: 2px 8px;
  border: 0;
  background: transparent;
  color: #d98b8b;
  font-size: 13px;
  font-weight: 650;
}

.account-subpage {
  padding-bottom: 48px;
}

.screen-notificationSettings .settings-group,
.screen-privacySettings .settings-group {
  margin-top: 18px;
  border-top: 1px solid var(--line);
}

.screen-notificationSettings .settings-group > h3,
.screen-privacySettings .settings-group > h3 {
  margin: 0;
  padding: 13px 4px 7px;
  color: var(--blue-2);
  font-size: 12px;
}

.privacy-choice {
  display: grid;
  gap: 10px;
  padding: 14px 2px;
  border-bottom: 1px solid var(--line);
}

.privacy-choice strong {
  font-size: 15px;
}

.privacy-choice div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.privacy-choice button {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
}

.privacy-choice button.active {
  border-color: rgba(121, 168, 255, 0.65);
  background: rgba(79, 140, 255, 0.12);
  color: var(--text);
}

.unblock-person {
  border: 0;
  background: transparent;
  color: var(--blue-2);
  font-size: 12px;
  font-weight: 740;
}

.block-sheet {
  gap: 10px;
}

.knight-private-note {
  margin: 8px 0 0;
  color: var(--soft);
  font-size: 13px;
}

.profile-hero.king-compact .profile-avatar {
  width: 68px;
  height: 68px;
  border-radius: 22px;
}

.profile-hero h2 {
  margin: 8px 0;
  font-size: 22px;
}

.profile-hero.king-compact h2 {
  margin: 7px 0 5px;
  font-size: 18px;
}

.profile-hero.king-compact p {
  font-size: 13px;
  line-height: 1.45;
}

.king-overview {
  display: grid;
  gap: 12px;
  padding: 15px;
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(79, 140, 255, 0.14), rgba(216, 173, 90, 0.08));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.king-overview-head {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 12px;
  align-items: center;
}

.king-overview-head .profile-avatar {
  width: 62px;
  height: 62px;
  border-radius: 20px;
}

.king-overview h2 {
  margin: 7px 0 4px;
  font-size: 19px;
  line-height: 1.25;
}

.king-overview p {
  font-size: 12px;
  line-height: 1.4;
}

.king-metrics {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
}

.king-metrics div,
.king-metrics button {
  padding: 10px 8px;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: inherit;
  font: inherit;
  text-align: left;
  background: rgba(255, 255, 255, 0.055);
}

.king-metrics strong,
.king-metrics span {
  display: block;
}

.king-metrics strong {
  color: var(--text);
  font-size: 17px;
}

.king-metrics .value-metric strong {
  color: var(--gold);
}

.king-metrics span {
  margin-top: 3px;
  color: var(--soft);
  font-size: 11px;
}

.king-metrics .medal-metric {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  min-height: 58px;
  column-gap: 12px;
  align-items: center;
  align-content: center;
}

.king-metrics .guard-avatar {
  position: relative;
  grid-row: 1 / 3;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  margin-top: 0;
  overflow: visible;
  border: 1px solid rgba(142, 153, 175, 0.5);
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(142, 153, 175, 0.24), rgba(255, 255, 255, 0.04));
}

.king-metrics .guard-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  filter: saturate(1.08);
}

.king-metrics .medal-metric.guarded .guard-avatar {
  border-color: rgba(216, 173, 90, 0.75);
  box-shadow:
    0 0 0 2px rgba(8, 13, 22, 0.92),
    0 0 0 4px rgba(216, 173, 90, 0.28);
}

.king-metrics .medal-metric.guarded .guard-avatar::before {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  background:
    conic-gradient(from 20deg, #ffd978, #7fb0ff, #8cd6b0, #ffd978);
  opacity: 0.9;
  z-index: -1;
  mask: radial-gradient(circle, transparent 58%, #000 60%);
}

.king-metrics .medal-metric.unguarded .guard-avatar::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(181, 191, 211, 0.36);
  box-shadow: 0 10px 0 5px rgba(181, 191, 211, 0.22);
}

.king-metrics .medal-metric strong,
.king-metrics .medal-metric span {
  grid-column: 2;
  margin-top: 0;
}

.king-month-card {
  display: grid;
  gap: 10px;
  padding: 13px 12px;
  border: 1px solid rgba(216, 173, 90, 0.34);
  border-radius: 18px;
  background: rgba(216, 173, 90, 0.075);
}

.king-seat-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3px 12px;
  width: 100%;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid rgba(216, 173, 90, 0.3);
  border-radius: 14px;
  color: inherit;
  font: inherit;
  text-align: left;
  background: rgba(216, 173, 90, 0.055);
}

.king-seat-strip div {
  min-width: 0;
}

.king-seat-strip span,
.king-seat-strip small {
  display: block;
}

.king-seat-strip span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 760;
}

.king-seat-strip small {
  margin-top: 4px;
  overflow: hidden;
  color: var(--soft);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.king-seat-strip strong {
  grid-row: 1;
  grid-column: 2;
  color: var(--gold);
  font-size: 15px;
}

.king-seat-strip b {
  grid-row: 2;
  grid-column: 2;
  color: var(--blue-2);
  font-size: 11px;
  white-space: nowrap;
}

.king-seat-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 0;
  border: 0;
  color: inherit;
  font: inherit;
  text-align: left;
  background: transparent;
}

.king-seat-strip-actions {
  display: flex;
  grid-column: 1 / -1;
  gap: 14px;
  justify-content: flex-end;
}

.king-seat-strip-actions button {
  padding: 2px 0;
  border: 0;
  color: var(--blue-2);
  font: inherit;
  font-size: 11px;
  font-weight: 750;
  background: transparent;
}

.king-seat-strip-actions .king-seat-resale {
  color: var(--gold);
}

.king-seat-strip-actions .king-seat-resale b,
.king-seat-strip-actions .king-seat-resale small {
  display: block;
  color: inherit;
  line-height: 1.2;
  text-align: right;
}

.king-seat-strip-actions .king-seat-resale small {
  margin-top: 2px;
  font-size: 9px;
  font-weight: 650;
}

.king-resale-list-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.king-resale-list-summary > div {
  display: grid;
  gap: 3px;
  padding: 14px 10px;
}

.king-resale-list-summary > div + div {
  border-left: 1px solid var(--line);
}

.king-resale-list-summary strong {
  color: var(--gold);
  font-size: 18px;
}

.king-resale-list-summary span,
.king-resale-offer-body,
.king-resale-offer-foot {
  color: var(--soft);
  font-size: 10px;
}

.king-resale-offers {
  display: grid;
  padding-bottom: 92px;
}

.king-resale-offer {
  display: grid;
  gap: 10px;
  width: 100%;
  padding: 17px 4px;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: inherit;
  font: inherit;
  text-align: left;
  background: transparent;
}

.king-resale-offer-head,
.king-resale-offer-body,
.king-resale-offer-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.king-resale-offer-head span {
  font-size: 15px;
  font-weight: 780;
}

.king-resale-offer-head strong,
.king-resale-offer-foot b {
  color: var(--gold);
}

.king-resale-offers { gap: 14px; padding-top: 16px; }
.king-resale-offer.seat-trade-ticket { display: grid; grid-template-columns: minmax(0, 1fr) 122px; gap: 0; padding: 0; overflow: hidden; border: 1px solid rgba(216,173,90,.34); border-radius: 14px; background: linear-gradient(135deg, rgba(35,33,27,.72), rgba(10,15,24,.98)); text-align: left; }
.king-resale-offer.seat-trade-ticket.bid-ticket { border-color: rgba(121,168,255,.38); background: linear-gradient(135deg, rgba(20,39,66,.78), rgba(10,15,24,.98)); }
.seat-trade-ticket-main { display: grid; align-content: start; min-width: 0; padding: 15px; }
.seat-trade-source { color: var(--gold); font-size: 10px; font-weight: 850; letter-spacing: .05em; }
.bid-ticket .seat-trade-source { color: var(--blue-2); }
.seat-trade-owner { display: grid; grid-template-columns: 40px minmax(0,1fr); gap: 10px; align-items: center; margin-top: 13px; }
.seat-trade-owner img { width: 40px; height: 40px; border: 1px solid rgba(216,173,90,.35); border-radius: 9px; object-fit: cover; }
.bid-ticket .seat-trade-owner img { border-color: rgba(121,168,255,.42); border-radius: 50%; }
.seat-trade-owner > div { display: grid; gap: 2px; min-width: 0; }
.seat-trade-owner strong { color: var(--text); font-size: 14px; }
.seat-trade-owner span, .seat-trade-ticket-main p { color: var(--muted); font-size: 10px; line-height: 1.45; }
.seat-trade-ticket-main h3 { margin: 13px 0 0; color: var(--text); font-size: 16px; line-height: 1.3; }
.seat-trade-ticket-main p { margin: 5px 0 0; }
.seat-trade-ticket-stub { position: relative; display: grid; align-content: start; gap: 5px; padding: 15px 12px 13px 16px; border-left: 1px dashed rgba(216,173,90,.45); background: rgba(216,173,90,.045); }
.bid-ticket .seat-trade-ticket-stub { border-left-color: rgba(121,168,255,.48); background: rgba(79,140,255,.055); }
.seat-trade-ticket-stub::before, .seat-trade-ticket-stub::after { position: absolute; left: -7px; width: 14px; height: 14px; border-radius: 50%; background: #080b12; content: ""; }
.seat-trade-ticket-stub::before { top: -7px; }
.seat-trade-ticket-stub::after { bottom: -7px; }
.seat-trade-ticket-stub > span { color: var(--soft); font-size: 10px; font-weight: 800; }
.seat-trade-ticket-stub > strong { margin-bottom: 8px; color: var(--gold); font-size: 22px; line-height: 1; }
.bid-ticket .seat-trade-ticket-stub > strong { color: var(--blue-2); }
.seat-trade-ticket-stub > div { display: grid; gap: 2px; padding-top: 7px; border-top: 1px solid var(--line); }
.seat-trade-ticket-stub small { color: var(--muted); font-size: 9px; }
.seat-trade-ticket-stub b { color: var(--soft); font-size: 10px; white-space: nowrap; }
.seat-trade-ticket-stub em { margin-top: 7px; color: var(--gold); font-size: 9px; font-style: normal; font-weight: 800; }
.bid-ticket .seat-trade-ticket-stub em { color: var(--blue-2); }

.king-month-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.king-month-card span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 730;
}

.king-month-card strong {
  display: block;
  margin: 4px 0;
  font-size: 15px;
}

.seat-compact-line {
  display: flex;
  align-items: center;
  gap: 8px;
}

.seat-compact-line strong {
  margin: 0;
  color: var(--text);
  font-size: 15px;
}

.seat-compact-line span {
  color: var(--soft);
}

.seat-compact-line button {
  margin-left: auto;
  padding: 0;
  border: 0;
  color: var(--blue-2);
  background: transparent;
  font-size: 12px;
  font-weight: 760;
}

.avatar-stack {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
}

.avatar-stack img {
  width: 25px;
  height: 25px;
  margin-left: -8px;
  border: 2px solid #1c2533;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(216, 173, 90, 0.26);
}

.current-knights {
  display: grid;
  gap: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
}

.current-knights-head {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.current-knights span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 740;
}

.current-knights strong {
  display: block;
  margin-top: 0;
  color: var(--text);
  font-size: 14px;
  line-height: 1;
}

.current-knights em {
  color: var(--soft);
  font-size: 12px;
  font-style: normal;
  font-weight: 720;
}

.current-knights p {
  font-size: 12px;
  line-height: 1.35;
}

.king-month-card > p {
  font-size: 12px;
  line-height: 1.35;
}

.knight-avatar-strip {
  display: flex;
  gap: 9px;
  overflow-x: auto;
  padding: 2px 2px 4px;
  scrollbar-width: none;
}

.knight-avatar-strip::-webkit-scrollbar {
  display: none;
}

.knight-avatar-strip img,
.knight-avatar-strip b {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border: 2px solid rgba(216, 173, 90, 0.26);
  border-radius: 50%;
  object-fit: cover;
}

.knight-avatar-strip b {
  display: grid;
  place-items: center;
  color: #ffe0a1;
  background: rgba(216, 173, 90, 0.2);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.king-actions {
  display: block;
}

.compact-actions {
  display: grid;
  grid-template-columns: 1fr 112px;
  gap: 8px;
}

.king-actions .primary {
  margin-top: 0;
}

.compact-secondary {
  min-height: 42px;
  margin: 0;
  padding: 0 10px;
}

.next-month-preorder {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.045);
  text-align: left;
}

.next-month-preorder span {
  color: var(--blue-2);
  font-size: 12px;
  font-weight: 740;
}

.next-month-preorder strong {
  display: block;
  margin: 4px 0;
  color: var(--text);
  font-size: 14px;
}

.next-month-preorder small {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin: 2px 0 6px;
  padding: 0 8px;
  border: 1px solid rgba(127, 176, 255, 0.42);
  border-radius: 999px;
  color: var(--blue-2);
  background: rgba(79, 140, 255, 0.12);
  font-size: 11px;
  font-weight: 760;
}

.next-month-preorder p {
  font-size: 12px;
  line-height: 1.35;
}

.next-month-preorder em {
  color: var(--gold);
  font-size: 15px;
  font-style: normal;
  font-weight: 820;
}

.detail-preorder {
  width: 100%;
  margin-top: 12px;
}

.king-mini-cta-wrap {
  position: sticky;
  top: 72px;
  z-index: 24;
  display: flex;
  justify-content: flex-end;
  height: 0;
  padding: 0 2px;
  background: linear-gradient(180deg, rgba(6, 11, 20, 0.96), rgba(6, 11, 20, 0));
  transition: height 160ms ease, padding 160ms ease;
  pointer-events: none;
}

.show-king-mini .king-mini-cta-wrap {
  height: 44px;
  padding-top: 6px;
}

.king-mini-cta {
  display: flex;
  min-height: 36px;
  height: 36px;
  align-items: center;
  gap: 7px;
  padding: 0 13px;
  border: 1px solid rgba(216, 173, 90, 0.62);
  border-radius: 999px;
  color: var(--gold);
  background: rgba(9, 16, 29, 0.94);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.24);
  font-size: 12px;
  font-weight: 820;
  opacity: 0;
  transform: translateY(-8px) scale(0.96);
  transition: opacity 160ms ease, transform 160ms ease;
}

.king-mini-cta span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(216, 173, 90, 0.12);
}

.king-mini-cta b {
  color: var(--text);
  font-size: 11px;
}

.king-mini-cta em {
  color: var(--gold);
  font-size: 12px;
  font-style: normal;
}

.show-king-mini .king-mini-cta {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.section-link {
  min-height: 32px;
  padding: 0 11px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--blue-2);
  background: rgba(79, 140, 255, 0.12);
  font-size: 12px;
  font-weight: 730;
}

.knight-list-summary {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(216, 173, 90, 0.5);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(216, 173, 90, 0.13), rgba(255, 255, 255, 0.06));
}

.knight-list-summary h2 {
  margin: 8px 0 4px;
  font-size: 23px;
}

.knight-list-summary button {
  min-height: 38px;
  padding: 0 12px;
  border: 0;
  border-radius: 14px;
  color: #06101f;
  background: var(--gold);
  font-weight: 780;
}

.compact-rights div {
  min-height: 62px;
}

.knight-holder-list {
  display: grid;
  gap: 0;
  margin-top: 6px;
  padding-bottom: 96px;
}

.knight-holder-list article {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 66px;
  padding: 10px 4px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

.knight-holder-list p {
  margin-top: 3px;
  font-size: 12px;
}

.knight-holder-avatar {
  position: relative;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
}

.knight-holder-avatar img {
  position: relative;
  z-index: 1;
}

.knight-holder-row.active .knight-holder-avatar::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: conic-gradient(from 15deg, #ffd978, #7fb0ff, #8cd6b0, #ffd978);
  opacity: 0.86;
  mask: radial-gradient(circle, transparent 57%, #000 60%);
}

.knight-holder-row.chronicle .knight-holder-avatar::before {
  content: "";
  position: absolute;
  inset: -3px;
  border: 1px solid rgba(127, 176, 255, 0.5);
  border-radius: 50%;
}

.knight-holder-row.sold {
  opacity: 0.62;
}

.knight-holder-row.sold img {
  filter: grayscale(1) brightness(0.75);
}

.knight-holder-list em {
  padding: 4px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--blue-2);
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
}

.knight-holder-row.active em {
  color: var(--gold);
  border-color: rgba(216, 173, 90, 0.4);
  background: rgba(216, 173, 90, 0.08);
}

.knight-holder-row.sold em {
  color: var(--soft);
}

.knight-holder-list article > button {
  padding: 6px 0;
  border: 0;
  color: var(--blue-2);
  background: transparent;
  font-size: 11px;
  font-weight: 780;
  white-space: nowrap;
}

.knight-holder-list.month-seat-certificate-list {
  gap: 12px;
  margin-top: 14px;
}

.month-seat-certificate-list .month-seat-certificate {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 128px;
  gap: 0;
  min-height: 112px;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(127, 176, 255, 0.32);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(79, 140, 255, 0.14), rgba(10, 15, 24, 0.82));
}

.month-seat-holder {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 16px;
}

.month-seat-holder strong,
.month-seat-holder p,
.month-seat-status {
  display: block;
}

.month-seat-holder strong { margin-top: 0; font-size: 16px; }
.month-seat-holder p { margin-top: 4px; }

.month-seat-status {
  color: var(--gold);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.month-seat-stub {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 14px 14px 12px 18px;
  border-left: 1px dashed rgba(216, 173, 90, 0.45);
  background: rgba(216, 173, 90, 0.07);
}

.month-seat-stub::before,
.month-seat-stub::after {
  content: "";
  position: absolute;
  left: -7px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #0b1728;
}

.month-seat-stub::before { top: -7px; }
.month-seat-stub::after { bottom: -7px; }
.month-seat-stub > span { color: var(--soft); font-size: 9px; letter-spacing: 0.08em; }
.month-seat-stub > strong { margin-top: 5px; color: var(--gold); font-size: 22px; }
.month-seat-stub > small { margin-top: 2px; color: var(--muted); font-size: 9px; }

.month-seat-stub > button {
  align-self: flex-start;
  margin-top: 10px;
  padding: 0;
  border: 0;
  color: var(--blue-2);
  background: transparent;
  font-size: 10px;
  font-weight: 800;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 14px 0;
}

.stats-grid div {
  padding: 14px 10px;
  text-align: center;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.075);
}

.stats-grid strong {
  display: block;
  font-size: 20px;
}

.stats-grid span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.timeline,
.discussion,
.archive-list,
.menu-list {
  margin-top: 18px;
}

.current-month {
  margin-top: 12px;
  padding: 15px;
}

.current-month .primary {
  margin-top: 14px;
}

.feed-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  margin-top: 18px;
}

.king-timeline-head {
  position: relative;
  align-items: start;
}

.king-timeline-actions {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 8px;
}

.king-month-picker {
  position: relative;
  min-width: 0;
}

.king-timeline-picker-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.king-current-month-label { display: inline-flex; align-items: center; min-height: 30px; }
.king-current-month-label .king-month-summary { gap: 8px; }
.king-current-month-label .king-month-summary strong { color: var(--text); font-size: 16px; font-weight: 900; line-height: 1; letter-spacing: -.02em; }
.king-current-month-label .current-month-badge { min-height: 0; padding: 0; border: 0; border-radius: 0; background: transparent; color: var(--blue-2); font-size: 10px; font-weight: 800; }
.king-content-tabs button { display: inline-flex; gap: 5px; align-items: center; }
.king-content-tabs button b { color: inherit; font-size: 10px; font-weight: 850; opacity: .8; }

.king-timeline-view-tabs {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
}

.king-timeline-view-tabs button {
  min-height: 24px;
  padding: 0 8px;
  border: 0;
  border-radius: 0;
  color: var(--soft);
  background: transparent;
  font-size: 11px;
  font-weight: 760;
  white-space: nowrap;
}

.king-timeline-view-tabs button + button { border-left: 1px solid var(--line); }

.king-timeline-view-tabs button.active {
  color: var(--blue-2);
  background: rgba(76, 126, 220, 0.15);
}

.king-month-trigger {
  width: auto;
  max-width: 100%;
  min-height: 0;
  display: inline-flex;
  gap: 7px;
  align-items: center;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: var(--soft);
  background: transparent;
  box-shadow: none;
  text-align: left;
}

.king-month-trigger > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
}

.king-month-trigger .king-month-summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  overflow: visible;
}

.king-month-summary strong {
  color: var(--muted);
  font: inherit;
}

.king-month-summary small {
  color: var(--soft);
  font: inherit;
}

.chronicle-month-badge,
.current-month-badge {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 7px;
  border: 1px solid;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
}

.chronicle-month-badge {
  color: var(--gold);
  border-color: rgba(220, 174, 76, 0.58);
  background: rgba(220, 174, 76, 0.13);
}

.current-month-badge {
  color: var(--blue);
  border-color: rgba(104, 156, 255, 0.5);
  background: rgba(76, 126, 220, 0.14);
}

.king-month-trigger i {
  color: var(--gold);
  font-size: 12px;
  font-style: normal;
}

.king-month-popover {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 30;
  width: 218px;
  padding: 6px;
  border: 1px solid rgba(127, 176, 255, 0.24);
  border-radius: 14px;
  background: #101722;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.58);
}

.king-month-popover-title {
  display: grid;
  gap: 2px;
  padding: 8px 10px 9px;
  border-bottom: 1px solid rgba(142, 153, 175, 0.18);
}

.king-month-popover-title strong {
  color: var(--text);
  font-size: 12px;
}

.king-month-popover-title span {
  color: var(--soft);
  font-size: 10px;
}

.king-month-popover button {
  width: 100%;
  display: grid;
  gap: 3px;
  padding: 9px 10px;
  border: 0;
  border-radius: 10px;
  color: var(--text);
  background: transparent;
  text-align: left;
}

.king-month-popover button + button {
  margin-top: 2px;
}

.king-month-popover button.active {
  color: #ffffff;
  background: rgba(79, 140, 255, 0.26);
}

.king-month-popover strong {
  min-width: 0;
  font-size: 13px;
}

.king-month-popover button span {
  color: var(--soft);
  font-size: 10px;
}

.king-month-popover button.active span {
  color: rgba(255, 255, 255, 0.7);
}

.king-submit-inline {
  min-height: 34px;
  padding: 0 15px;
  border: 1px solid rgba(216, 173, 90, 0.42);
  border-radius: 12px;
  color: #0b0d12;
  background: linear-gradient(135deg, #ffe0a1, var(--gold));
  box-shadow: 0 10px 22px rgba(216, 173, 90, 0.16);
  font-size: 12px;
  font-weight: 800;
}

.king-project-inline {
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--blue-2);
  font-size: 11px;
  font-weight: 800;
}

.month-timeline {
  display: grid;
  gap: 12px;
  position: relative;
}

.month-event {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 10px;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.event-date {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--soft);
  font-size: 12px;
  font-weight: 780;
}

.event-date::after {
  content: "";
  position: absolute;
  top: 32px;
  bottom: -14px;
  width: 1px;
  background: var(--line-strong);
}

.month-event:last-child .event-date::after {
  display: none;
}

.event-date i {
  width: 13px;
  height: 13px;
  margin-top: 8px;
  border: 2px solid var(--blue-2);
  border-radius: 50%;
  background: var(--phone);
  box-shadow: 0 0 0 5px rgba(79, 140, 255, 0.16);
  z-index: 1;
}

.event-card {
  padding: 14px;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.075);
}

.event-locked .event-date i {
  border-color: var(--gold);
  box-shadow: 0 0 0 5px rgba(216, 173, 90, 0.16);
}

.event-locked .event-card {
  border-color: rgba(216, 173, 90, 0.46);
  background:
    linear-gradient(135deg, rgba(216, 173, 90, 0.13), rgba(255, 255, 255, 0.065));
}

.event-meta,
.event-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.event-meta > span:last-child,
.event-action span {
  color: var(--soft);
  font-size: 12px;
  line-height: 1.35;
}

.event-card h3 {
  margin: 12px 0 8px;
  font-size: 16px;
  line-height: 1.32;
}

.event-card p {
  font-size: 14px;
  line-height: 1.58;
}

.event-action {
  margin-top: 14px;
}

.event-action.public-action {
  justify-content: flex-end;
}

.event-action button {
  min-width: 54px;
  min-height: 32px;
  border: 0;
  border-radius: 999px;
  color: #07101e;
  background: var(--blue-2);
  font-size: 12px;
  font-weight: 760;
}

.event-locked .event-action button {
  background: var(--gold);
}

.archive-preview {
  margin-top: 10px;
}

.timeline-item,
.archive-row,
.menu-list button {
  width: 100%;
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  padding: 14px 0;
  text-align: left;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
}

.archive-row {
  grid-template-columns: 82px 1fr;
}

.archive-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 2px;
}

.archive-stats div,
.archive-stats > button {
  padding: 9px 8px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: inherit;
  font: inherit;
  background: rgba(255, 255, 255, 0.052);
}

.archive-stats strong,
.archive-stats span {
  display: block;
}

.archive-stats strong {
  color: var(--text);
  font-size: 17px;
}

.archive-stats span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}

.archive-stats > button {
  position: relative;
  border-color: rgba(127, 176, 255, 0.48);
  background: rgba(79, 140, 255, 0.1);
}

.archive-stats > button b {
  display: block;
  margin-top: 3px;
  color: var(--blue-2);
  font-size: 9px;
}

.king-directory-search {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: center;
  min-height: 48px;
  padding: 0 13px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
}

.king-directory-search > span {
  color: var(--blue-2);
  font-size: 12px;
  font-weight: 760;
}

.king-directory-search input {
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
}

.king-alphabet {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: 4px;
  margin-top: 10px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
}

.king-alphabet button {
  min-width: 0;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 7px;
  color: rgba(198, 210, 230, 0.28);
  background: transparent;
  font-size: 10px;
  font-weight: 760;
}

.king-alphabet button:first-child {
  color: var(--muted);
  font-size: 9px;
}

.king-alphabet button.available {
  color: var(--text);
  background: rgba(79, 140, 255, 0.14);
}

.king-directory {
  display: grid;
  gap: 8px;
  padding: 10px 0 96px;
}

.king-letter-group {
  scroll-margin-top: 92px;
}

.king-letter-group > h3 {
  margin: 0 2px 1px;
  color: var(--blue-2);
  font-size: 15px;
}

.king-directory-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto 12px;
  gap: 9px;
  width: 100%;
  align-items: center;
  padding: 9px 2px;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: inherit;
  font: inherit;
  text-align: left;
  background: transparent;
}

.king-directory-copy,
.king-directory-copy > div,
.king-directory-row strong,
.king-directory-row span,
.king-directory-row p {
  display: block;
}

.king-directory-copy { min-width: 0; }
.king-directory-copy > div { display: flex; align-items: baseline; gap: 6px; min-width: 0; }

.king-directory-copy strong {
  font-size: 15px;
}

.king-directory-copy span {
  overflow: hidden;
  color: var(--soft);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.king-directory-copy p {
  overflow: hidden;
  margin: 3px 0 0;
  color: var(--blue-2);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.king-directory-total {
  display: grid;
  justify-items: end;
  gap: 3px;
  min-width: 64px;
}

.king-directory-total strong { color: var(--gold); font-size: 13px; }
.king-directory-total span { color: var(--muted); font-size: 10px; white-space: nowrap; }

.king-directory-row .avatar.small {
  width: 40px;
  height: 40px;
}

.king-directory-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding-top: 12px;
}

.king-directory-card {
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
  min-height: 146px;
  padding: 13px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  text-align: left;
  position: relative;
}

.king-directory-grid .king-directory-card.is-featured {
  grid-column: 1 / -1;
  min-height: 146px;
  padding: 17px;
  border-color: rgba(79, 140, 255, 0.48);
  background: linear-gradient(118deg, rgba(47, 88, 142, 0.3), rgba(18, 27, 42, 0.7));
}

.king-directory-grid .king-directory-card.is-featured .king-card-identity { grid-template-columns: 50px minmax(0, 1fr); }
.king-directory-grid .king-directory-card.is-featured .king-card-identity .avatar { width: 50px; height: 50px; }
.king-directory-grid .king-directory-card.is-featured .king-card-identity strong { font-size: 16px; }

.king-directory-card:hover { border-color: rgba(121, 168, 255, 0.62); background: rgba(79, 140, 255, 0.08); }

.king-card-identity {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
}

.king-card-identity .avatar { width: 42px; height: 42px; }
.king-card-identity > div { display: grid; gap: 3px; min-width: 0; }
.king-card-identity strong { overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.king-card-identity span { overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }

.king-directory-card > p {
  display: -webkit-box;
  min-height: 34px;
  overflow: hidden;
  margin: 0;
  color: var(--blue-2);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 12px;
  line-height: 1.42;
}

.king-directory-card footer {
  display: grid;
  gap: 4px;
  margin-top: auto;
  padding-top: 9px;
  border-top: 1px solid var(--line);
}

.king-card-stats { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; }
.king-directory-card footer span { color: var(--muted); font-size: 10px; white-space: nowrap; }
.king-directory-card footer b { color: var(--gold); font-size: 13px; }
.king-directory-card footer .king-guard-count b { color: var(--blue-2); }
.king-directory-card footer small { color: var(--soft); font-size: 10px; }

@media (max-width: 460px) {
  .king-directory-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .king-directory-card { min-height: 138px; }
}

.king-directory-row > b {
  color: var(--soft);
  font-size: 22px;
  font-weight: 400;
}

.record-directory-search {
  margin-bottom: 10px;
}

.record-sort-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 4px 0 10px;
}

.record-sort-bar strong {
  font-size: 16px;
}

.record-sort-bar span {
  color: var(--soft);
  font-size: 11px;
}

.chronicle-records {
  display: grid;
  gap: 10px;
  padding-bottom: 96px;
}

.chronicle-record {
  padding: 14px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.065);
}

.chronicle-record.locked {
  border-color: rgba(216, 173, 90, 0.44);
  background: linear-gradient(135deg, rgba(216, 173, 90, 0.1), rgba(255, 255, 255, 0.055));
}

.chronicle-record time {
  color: var(--soft);
  font-size: 11px;
}

.chronicle-record h3 {
  margin: 10px 0 6px;
  font-size: 17px;
  line-height: 1.35;
}

.chronicle-record > p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.chronicle-record-context {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  margin-top: 11px;
}

.chronicle-record-context .avatar.tiny {
  width: 26px;
  height: 26px;
}

.chronicle-record-context strong,
.chronicle-record-context span {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chronicle-record-context strong {
  font-size: 11px;
}

.chronicle-record-context span,
.chronicle-record-context > b {
  color: var(--soft);
  font-size: 10px;
}

.chronicle-record.locked .chronicle-record-context > b {
  color: var(--gold);
}

.record-video-preview {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  margin: 10px 0;
  border-radius: 10px;
  background: #0c111a;
}

.record-video-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 34%;
  filter: brightness(0.68) saturate(0.82);
  transform: scale(1.02);
}

.record-video-preview.playing img {
  filter: brightness(0.82) saturate(1);
}

.record-video-preview button {
  position: absolute;
  top: 50%;
  left: 50%;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  color: #fff;
  background: rgba(5, 9, 15, 0.68);
  font-size: 12px;
  font-weight: 760;
  transform: translate(-50%, -50%);
  backdrop-filter: blur(10px);
}

.record-video-preview > span {
  position: absolute;
  right: 8px;
  bottom: 7px;
  padding: 3px 6px;
  border-radius: 6px;
  color: #fff;
  background: rgba(0, 0, 0, 0.68);
  font-size: 10px;
  font-weight: 720;
}

.record-audio-player {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  margin: 10px 0;
  padding: 9px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(79, 140, 255, 0.04);
}

.record-audio-player > button {
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid rgba(127, 176, 255, 0.48);
  border-radius: 999px;
  color: var(--blue-2);
  background: rgba(79, 140, 255, 0.1);
  font-size: 10px;
  font-weight: 760;
}

.record-audio-player strong,
.record-audio-player span {
  display: block;
}

.record-audio-player strong {
  font-size: 11px;
}

.record-audio-player div > span {
  height: 3px;
  overflow: hidden;
  margin-top: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.record-audio-player div > span i {
  display: block;
  width: 18%;
  height: 100%;
  border-radius: inherit;
  background: var(--blue-2);
}

.record-audio-player.playing div > span i {
  width: 46%;
}

.record-audio-player > time {
  color: var(--soft);
  font-size: 10px;
}

.record-file-download {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid rgba(216, 173, 90, 0.34);
  border-bottom: 1px solid rgba(216, 173, 90, 0.34);
  background: rgba(216, 173, 90, 0.035);
}

.record-file-download > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.record-file-download strong {
  overflow: hidden;
  color: var(--text);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.record-file-download span {
  color: var(--soft);
  font-size: 10px;
}

.record-file-download a,
.record-file-download > button {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid rgba(216, 173, 90, 0.58);
  border-radius: 7px;
  color: #07101c;
  background: var(--gold);
  font-size: 11px;
  font-weight: 820;
  text-decoration: none;
}

.year-calendar {
  display: grid;
  gap: 9px;
}

.year-calendar-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
  padding: 5px;
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.04);
}

.year-calendar-tabs button {
  min-height: 36px;
  border: 0;
  border-radius: 9px;
  color: var(--muted);
  background: transparent;
  font-weight: 760;
}

.year-calendar-tabs button.selected {
  color: var(--text);
  background: rgba(79, 140, 255, 0.2);
  box-shadow: inset 0 0 0 1px rgba(127, 176, 255, 0.4);
}

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

.month-calendar button {
  display: grid;
  min-height: 54px;
  align-content: center;
  gap: 3px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: rgba(198, 210, 230, 0.35);
  background: rgba(255, 255, 255, 0.025);
}

.month-calendar button.available {
  color: var(--text);
  border-color: rgba(127, 176, 255, 0.38);
  background: rgba(79, 140, 255, 0.09);
}

.month-calendar strong,
.month-calendar span {
  display: block;
}

.month-calendar strong {
  font-size: 12px;
}

.month-calendar span {
  color: var(--soft);
  font-size: 9px;
}

.month-directory {
  display: grid;
  gap: 14px;
  padding: 16px 0 96px;
}

.month-directory-group {
  scroll-margin-top: 92px;
}

.month-directory-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}

.month-directory-heading h3 {
  font-size: 15px;
}

.month-directory-heading span {
  color: var(--soft);
  font-size: 11px;
}

.month-directory-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 10px;
  width: 100%;
  align-items: center;
  padding: 11px 2px;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: inherit;
  font: inherit;
  text-align: left;
  background: transparent;
}

.month-directory-row strong,
.month-directory-row span {
  display: block;
}

.month-directory-row strong {
  font-size: 13px;
}

.month-directory-row span {
  margin-top: 4px;
  color: var(--soft);
  font-size: 11px;
}

.month-directory-row > b {
  color: var(--soft);
  font-size: 22px;
  font-weight: 400;
}

.project-directory-search {
  margin-bottom: 9px;
}

.project-directory-list {
  display: grid;
  gap: 10px;
  padding: 12px 0 96px;
}

.project-directory-card {
  padding: 14px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.065);
}

.project-directory-owner {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.project-directory-owner .avatar.tiny {
  width: 26px;
  height: 26px;
}

.project-directory-owner span,
.project-directory-owner time {
  color: var(--soft);
  font-size: 10px;
}

.project-directory-card h3 {
  margin: 10px 0 5px;
  font-size: 17px;
}

.project-directory-card > p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.project-directory-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 11px;
}

.project-directory-meta span {
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--soft);
  font-size: 10px;
}

.archive-category-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 0 2px;
}

.archive-filter-panel {
  display: grid;
  gap: 8px;
  padding: 10px 0 4px;
}

.archive-filter-line {
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  gap: 8px;
}

.archive-filter-line > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.archive-filter-line > div {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.archive-filter-line .chip {
  padding: 7px 11px;
  font-size: 12px;
}

.archive-project-filter {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 10px;
  width: 100%;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  color: inherit;
  font: inherit;
  text-align: left;
  background: rgba(255, 255, 255, 0.07);
}

.archive-project-filter strong {
  font-size: 14px;
}

.archive-project-filter small {
  color: var(--muted);
  font-size: 12px;
}

.archive-project-filter b {
  grid-row: 1 / span 2;
  grid-column: 2;
  align-self: center;
  color: var(--blue-2);
  font-size: 13px;
}

.archive-filter-summary {
  color: var(--muted);
  font-size: 12px;
  padding-left: 50px;
}

.archive-card-row {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
  margin-bottom: 10px;
  text-align: left;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.075);
}

.archive-kind {
  align-self: start;
  color: var(--gold);
  font-size: 12px;
  font-weight: 780;
  line-height: 1.35;
}

.archive-card-row strong {
  display: block;
  color: var(--text);
  font-size: 15px;
  line-height: 1.35;
}

.archive-card-row p {
  margin-top: 6px;
  font-size: 13px;
}

.archive-month-signals {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 10px;
  margin-top: 9px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.archive-month-signals span { color: var(--soft); font-size: 10px; }
.archive-month-signals span:last-child { color: var(--gold); }

.archive-compact-controls {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 8px;
  margin: 12px 0 18px;
}

.archive-compact-controls label,
.archive-project-compact {
  display: grid;
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  background: rgba(255,255,255,.045);
  color: inherit;
  text-align: left;
}

.archive-compact-controls label > span,
.archive-project-compact > span { color: var(--muted); font-size: 9px; font-weight: 760; }
.archive-compact-controls select { width: 100%; margin-top: 3px; padding: 0; border: 0; outline: 0; background: transparent; color: var(--text); font: inherit; font-size: 12px; font-weight: 800; }
.archive-project-compact { position: relative; padding-right: 28px; }
.archive-project-compact strong { overflow: hidden; margin-top: 3px; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.archive-project-compact b { position: absolute; right: 10px; top: 50%; color: var(--blue-2); transform: translateY(-10%); }

.archive-timeline-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; padding: 0 2px 13px; border-bottom: 1px solid var(--line); }
.archive-timeline-head div { display: flex; align-items: baseline; gap: 9px; }
.archive-timeline-head strong { font-size: 24px; }
.archive-timeline-head span { color: var(--muted); font-size: 10px; }
.archive-sort-select { position: relative; display: grid; min-width: 126px; padding: 7px 28px 7px 10px; border: 1px solid var(--line-strong); border-radius: 12px; background: rgba(255,255,255,.045); }
.archive-sort-select::after { position: absolute; right: 10px; top: 50%; color: var(--blue-2); font-size: 10px; content: "⌄"; transform: translateY(-25%); pointer-events: none; }
.archive-sort-select > span { color: var(--muted); font-size: 8px; font-weight: 760; }
.archive-sort-select select { width: 100%; margin-top: 2px; padding: 0; border: 0; outline: 0; appearance: none; background: transparent; color: var(--text); font: inherit; font-size: 11px; font-weight: 800; }

.archive-timeline { position: relative; display: grid; gap: 0; padding: 4px 0 104px; }
.archive-timeline::before { position: absolute; top: 5px; bottom: 110px; left: 37px; width: 1px; background: linear-gradient(var(--blue), rgba(103,159,255,.08)); content: ""; }
.archive-timeline-entry { position: relative; display: grid; grid-template-columns: 56px 1px minmax(0,1fr); gap: 12px; padding: 14px 0; }
.archive-timeline-entry > time { display: flex; flex-wrap: wrap; align-content: start; align-items: baseline; justify-content: flex-end; gap: 2px; color: var(--soft); }
.archive-timeline-entry > time strong { font-size: 16px; }
.archive-timeline-entry > time span { font-size: 9px; }
.archive-timeline-entry > time small { flex-basis: 100%; color: var(--muted); font-size: 8px; text-align: right; }
.archive-timeline-entry > i { z-index: 1; width: 9px; height: 9px; margin: 6px 0 0 -4px; border: 2px solid var(--blue-2); border-radius: 50%; background: var(--bg); box-shadow: 0 0 0 5px rgba(79,140,255,.1); }
.archive-month-stack { display: grid; gap: 9px; min-width: 0; }
.archive-timeline .archive-card-row { margin: 0; padding: 13px; border-radius: 16px; }
.archive-timeline .archive-card-row > header { display: grid; grid-template-columns: 30px minmax(0,1fr) auto; gap: 8px; align-items: center; }
.archive-timeline .archive-card-row > header img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.archive-timeline .archive-card-row > header span,
.archive-timeline .archive-card-row > header strong,
.archive-timeline .archive-card-row > header small { display: block; }
.archive-timeline .archive-card-row > header strong { font-size: 12px; }
.archive-timeline .archive-card-row > header small { margin-top: 2px; color: var(--muted); font-size: 9px; }
.archive-timeline .archive-card-row > header b { color: var(--blue-2); font-size: 17px; font-weight: 400; }
.archive-timeline .archive-card-row h3 { margin: 11px 0 0; font-size: 15px; }

.archive-flat {
  display: grid;
  gap: 10px;
  padding: 14px 0 104px;
}

.archive-flat .archive-card-row { margin: 0; padding: 13px; border-radius: 16px; }
.archive-flat .archive-card-row > header { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.archive-flat .archive-card-row > header img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.archive-flat .archive-card-row > header span,
.archive-flat .archive-card-row > header strong,
.archive-flat .archive-card-row > header small,
.archive-flat .archive-card-month { display: block; }
.archive-flat .archive-card-row > header strong { font-size: 12px; }
.archive-flat .archive-card-row > header small { margin-top: 2px; color: var(--muted); font-size: 9px; }
.archive-flat .archive-card-month { margin-top: 3px; color: var(--soft); font-size: 11px; font-style: normal; }
.archive-flat .archive-card-row > header b { color: var(--blue-2); font-size: 17px; font-weight: 400; }
.archive-flat .archive-card-row h3 { margin: 11px 0 0; font-size: 15px; }

@media (max-width: 520px) {
  .archive-compact-controls { grid-template-columns: 82px minmax(0, 1fr); gap: 6px; }
}

.project-directory-card.selected {
  border-color: rgba(79, 140, 255, 0.68);
  background: rgba(79, 140, 255, 0.1);
}

.project-picker-tools {
  position: sticky;
  z-index: 8;
  top: 0;
  padding: 5px 0 10px;
  background: linear-gradient(180deg, var(--bg) 82%, transparent);
}

.project-picker-status {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.project-picker-status::-webkit-scrollbar { display: none; }
.project-picker-status .chip { flex: 0 0 auto; padding: 7px 11px; font-size: 11px; }

.project-picker-all {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 15px;
  background: rgba(255,255,255,.045);
  color: inherit;
  text-align: left;
}

.project-picker-all span,
.project-picker-all strong,
.project-picker-all small { display: block; }
.project-picker-all small { margin-top: 3px; color: var(--muted); font-size: 11px; }
.project-picker-all b { min-width: 28px; color: var(--blue-2); text-align: center; }
.project-picker-all.selected { border-color: rgba(79,140,255,.68); background: rgba(79,140,255,.11); }

.project-picker-groups { display: grid; gap: 12px; padding: 12px 0 100px; }
.project-owner-group { overflow: hidden; border: 1px solid var(--line-strong); border-radius: 17px; background: rgba(255,255,255,.035); }
.project-owner-group > header { display: grid; grid-template-columns: 34px minmax(0,1fr); gap: 10px; align-items: center; padding: 11px 13px; border-bottom: 1px solid var(--line); background: rgba(103,159,255,.055); }
.project-owner-group > header img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.project-owner-group > header span,
.project-owner-group > header strong,
.project-owner-group > header small { display: block; }
.project-owner-group > header strong { font-size: 13px; }
.project-owner-group > header small { margin-top: 2px; color: var(--muted); font-size: 10px; }
.project-picker-row { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 13px; border-bottom: 1px solid var(--line); background: transparent; color: inherit; text-align: left; }
.project-picker-row:last-child { border-bottom: 0; }
.project-picker-row span,
.project-picker-row strong,
.project-picker-row small { display: block; min-width: 0; }
.project-picker-row strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.project-picker-row small { margin-top: 4px; color: var(--muted); font-size: 10px; }
.project-picker-row > b { flex: 0 0 auto; color: var(--blue-2); font-size: 11px; }
.project-picker-row.selected { background: rgba(79,140,255,.12); }
.project-picker-empty { padding: 30px 0; color: var(--muted); font-size: 12px; text-align: center; }

.archive-row span {
  color: var(--gold);
  font-size: 13px;
  font-weight: 760;
}

.timeline-item strong,
.archive-row strong {
  font-size: 15px;
}

.timeline-item p,
.archive-row p {
  margin-top: 4px;
  font-size: 13px;
}

.dot {
  width: 10px;
  height: 10px;
  margin: 5px auto 0;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 5px rgba(79, 140, 255, 0.11);
}

.gold-dot {
  background: var(--gold);
  box-shadow: 0 0 0 5px rgba(216, 173, 90, 0.13);
}

.detail-title {
  padding: 14px 2px 18px;
}

.time-stage-rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
  margin: 2px 0 12px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.045);
}

.time-stage-step {
  position: relative;
  display: grid;
  min-width: 0;
  gap: 3px;
  padding: 8px 5px;
  border-radius: 10px;
  color: var(--muted);
}

.time-stage-step span {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--soft);
  font-size: 10px;
  font-weight: 800;
}

.time-stage-step strong,
.time-stage-step small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.time-stage-step strong {
  font-size: 11px;
}

.time-stage-step small {
  color: var(--soft);
  font-size: 9px;
}

.time-stage-step.active {
  color: var(--text);
  background: rgba(216, 173, 90, 0.12);
  box-shadow: inset 0 0 0 1px rgba(216, 173, 90, 0.34);
}

.time-stage-step.active span {
  border-color: var(--gold);
  color: #07101e;
  background: var(--gold);
}

.time-stage-step.done span {
  border-color: rgba(127, 176, 255, 0.42);
  color: var(--blue-2);
}

.time-stage-current,
.archive-conversion {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
}

.time-stage-current div,
.archive-conversion div {
  display: grid;
  gap: 4px;
}

.time-stage-current span,
.archive-conversion span {
  color: var(--soft);
  font-size: 11px;
}

.time-stage-current strong,
.archive-conversion strong {
  font-size: 15px;
}

.time-stage-current p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.archive-conversion {
  margin-top: 14px;
}

.archive-conversion h3 {
  margin: 0;
  font-size: 15px;
}

.archive-conversion div {
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.info-block dl {
  margin: 14px 0 0;
  display: grid;
  gap: 12px;
}

.info-block div {
  display: grid;
  gap: 4px;
}

dt {
  color: var(--soft);
  font-size: 12px;
}

dd {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
}

.seat-panel {
  margin-top: 14px;
}

.note {
  margin-top: 12px;
  color: var(--soft);
  font-size: 12px;
}

.record {
  display: grid;
  gap: 14px;
}

.author-line {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-line span {
  display: block;
  margin-top: 3px;
  color: var(--soft);
  font-size: 12px;
}

.seat-resale-action {
  min-height: 32px;
  margin-left: auto;
  padding: 0 10px;
  border: 1px solid rgba(216, 173, 90, 0.48);
  border-radius: 9px;
  color: var(--gold);
  background: rgba(216, 173, 90, 0.07);
  font-size: 11px;
  font-weight: 760;
  white-space: nowrap;
}

.record-resale-action {
  width: fit-content;
  margin: 8px 0 2px;
  padding: 0 12px;
}

.knight-record .author-line strong {
  color: var(--text);
}

.knight-record .author-line span {
  color: var(--soft);
}

.content-section {
  padding: 16px;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.075);
}

.content-section h2,
.content-section h3 {
  margin: 8px 0;
  line-height: 1.25;
}

.content-state-screen {
  padding-bottom: 104px;
}

.content-state-summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 15px;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.075);
}

.content-state-summary h2 {
  margin: 9px 0 5px;
  font-size: 21px;
  line-height: 1.22;
}

.content-state-summary p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.content-state-summary > strong {
  flex: 0 0 auto;
  padding: 7px 9px;
  border: 1px solid rgba(127, 176, 255, 0.42);
  border-radius: 999px;
  color: var(--blue-2);
  background: rgba(79, 140, 255, 0.12);
  font-size: 11px;
}

.content-state-summary.resale,
.content-state-summary.bid,
.content-state-summary.owned,
.content-state-summary.chronicle {
  border-color: rgba(216, 173, 90, 0.4);
  background: rgba(216, 173, 90, 0.08);
}

.content-state-summary.resale > strong,
.content-state-summary.bid > strong,
.content-state-summary.owned > strong,
.content-state-summary.chronicle > strong {
  color: var(--gold);
  border-color: rgba(216, 173, 90, 0.42);
  background: rgba(216, 173, 90, 0.12);
}

.content-state-permissions {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.content-state-permissions div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.content-state-permissions span {
  color: var(--soft);
  font-size: 12px;
  font-weight: 720;
}

.content-state-permissions strong {
  max-width: 62%;
  color: var(--text);
  text-align: right;
  font-size: 12px;
  line-height: 1.35;
}

.content-state-action {
  margin-top: 14px;
}

.record-context-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.record-project-chip {
  min-width: 0;
  padding: 5px 0;
  border: 0;
  color: var(--blue-2);
  background: transparent;
  font: inherit;
  font-size: 12px;
  font-weight: 760;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.record-project-chip span {
  margin-left: 3px;
  color: var(--soft);
}

.record-project-chip.gold {
  color: var(--gold);
}

.project-link {
  width: 100%;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  padding: 16px;
  border: 1px solid rgba(127, 176, 255, 0.55);
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(79, 140, 255, 0.18), rgba(255, 255, 255, 0.07));
}

.project-link h3 {
  margin: 8px 0;
  font-size: 19px;
  line-height: 1.3;
}

.project-link p {
  font-size: 14px;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.project-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--blue-2);
  background: rgba(79, 140, 255, 0.12);
  font-size: 12px;
  font-weight: 720;
}

.knight-only.locked {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.075);
  box-shadow: none;
}

.knight-only.unlocked {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.075);
  box-shadow: none;
}

.knight-project {
  border-color: rgba(216, 173, 90, 0.62);
  background:
    linear-gradient(135deg, rgba(216, 173, 90, 0.14), rgba(79, 140, 255, 0.1));
}

.knight-project .project-meta span {
  color: #ffe0a1;
  border-color: rgba(216, 173, 90, 0.46);
  background: rgba(216, 173, 90, 0.12);
}

.project-summary {
  padding: 18px;
  border: 1px solid rgba(127, 176, 255, 0.58);
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(79, 140, 255, 0.18), rgba(255, 255, 255, 0.07));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09);
}

.project-summary h2 {
  margin: 8px 0;
  font-size: 28px;
  line-height: 1.18;
}

.project-summary p {
  font-size: 15px;
  color: var(--muted);
}

.project-filter {
  padding-top: 0;
}

.project-timeline {
  display: grid;
  gap: 18px;
  padding-bottom: 96px;
}

.project-month {
  display: grid;
  gap: 10px;
}

.project-month-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  color: var(--text);
}

.project-month-head strong {
  font-size: 18px;
}

.project-month-head span {
  color: var(--muted);
  font-size: 13px;
}

.project-record-row {
  display: grid;
  gap: 8px;
  width: 100%;
  padding: 14px;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  color: inherit;
  font: inherit;
  text-align: left;
  background: rgba(255, 255, 255, 0.075);
  cursor: pointer;
}

.project-record-row h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.3;
}

.project-record-row p {
  font-size: 14px;
  color: var(--muted);
}

.project-record-row .row-between > span:last-child {
  color: var(--muted);
  font-size: 12px;
}

.project-record-row.locked {
  border-color: rgba(216, 173, 90, 0.56);
  background:
    linear-gradient(135deg, rgba(216, 173, 90, 0.13), rgba(255, 255, 255, 0.065));
}

.project-record-row.node {
  border-color: rgba(127, 176, 255, 0.55);
  background:
    linear-gradient(135deg, rgba(79, 140, 255, 0.15), rgba(255, 255, 255, 0.06));
}

.unlock-cta {
  display: grid;
  gap: 12px;
  margin: 14px 0 12px;
  padding: 14px;
  border: 1px solid rgba(216, 173, 90, 0.55);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(216, 173, 90, 0.25), rgba(79, 140, 255, 0.08));
  box-shadow: 0 14px 34px rgba(216, 173, 90, 0.12);
}

.unlock-cta strong {
  display: block;
  color: #ffe0a1;
  font-size: 17px;
}

.unlock-cta span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.comment {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.comment-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.knight-badge {
  padding: 4px 8px;
  font-size: 11px;
}

.comment p {
  margin-top: 6px;
  font-size: 13px;
}

.inline-discussion {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.inline-discussion-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
}

.inline-discussion-head strong {
  font-size: 14px;
}

.inline-discussion-head span {
  color: var(--soft);
  font-size: 12px;
}

.compact-comment {
  padding: 10px 0;
}

.reply-box {
  display: grid;
  grid-template-columns: 1fr 66px;
  gap: 8px;
  padding: 12px 0 8px;
  background: transparent;
}

.inline-reply {
  padding-bottom: 0;
}

.reply-box input,
.studio-form input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.085);
  padding: 0 12px;
  outline: none;
}

.studio-form textarea {
  width: 100%;
  min-height: 132px;
  resize: vertical;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.085);
  padding: 12px;
  outline: none;
  line-height: 1.55;
}

.reply-box button {
  border: 0;
  border-radius: 14px;
  color: #06101f;
  background: var(--blue-2);
  font-weight: 750;
}

.studio-form {
  display: grid;
  gap: 12px;
}

.studio-form label {
  display: grid;
  gap: 7px;
}

.studio-form label span {
  color: var(--soft);
  font-size: 12px;
}

.studio-form .optional-project-field {
  margin-top: 2px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.studio-form .optional-project-field input {
  min-height: 40px;
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.045);
}

.publish-time {
  display: grid;
  gap: 5px;
  padding: 13px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
}

.publish-time span {
  color: var(--soft);
  font-size: 12px;
}

.publish-time strong {
  font-size: 18px;
}

.publish-time p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.project-picker {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(127, 176, 255, 0.72);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(79, 140, 255, 0.18), rgba(255, 255, 255, 0.055));
}

.project-picker .row-between span {
  color: var(--blue-2);
  font-size: 12px;
  font-weight: 760;
}

.project-picker .row-between button {
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--blue-2);
  background: rgba(255, 255, 255, 0.075);
  font-size: 12px;
  font-weight: 750;
}

.project-picker strong {
  font-size: 19px;
}

.project-picker p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

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

.project-options button {
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.055);
  font-size: 12px;
  font-weight: 730;
}

.project-options button.selected {
  color: var(--text);
  border-color: rgba(127, 176, 255, 0.86);
  background: rgba(79, 140, 255, 0.24);
}

.project-select {
  display: grid;
  gap: 7px;
}

.project-select > span {
  color: var(--soft);
  font-size: 12px;
}

.project-select-trigger {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  width: 100%;
  align-items: center;
  min-height: 58px;
  padding: 10px 12px;
  border: 1px solid rgba(127, 176, 255, 0.64);
  border-radius: 14px;
  color: inherit;
  font: inherit;
  text-align: left;
  background: rgba(79, 140, 255, 0.1);
}

.project-select-trigger strong,
.project-select-trigger small,
.project-select-menu strong,
.project-select-menu small {
  display: block;
}

.project-select-trigger small,
.project-select-menu small {
  margin-top: 3px;
  color: var(--soft);
  font-size: 11px;
}

.project-select-trigger > b {
  color: var(--blue-2);
  font-size: 12px;
}

.project-select-menu {
  display: grid;
  gap: 6px;
  padding: 8px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: rgba(7, 13, 24, 0.96);
}

.project-search {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 9px;
  align-items: center;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
}

.project-search input {
  min-height: 38px;
  padding: 0;
  border: 0;
  background: transparent;
}

.project-select-menu > button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  width: 100%;
  align-items: center;
  padding: 10px;
  border: 0;
  border-radius: 10px;
  color: inherit;
  font: inherit;
  text-align: left;
  background: transparent;
}

.project-select-menu > button.selected {
  background: rgba(79, 140, 255, 0.16);
}

.project-select-menu > button > b {
  color: var(--blue-2);
  font-size: 11px;
}

.project-management {
  display: grid;
  gap: 7px;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.055);
}

.project-management h3 {
  margin-top: 4px;
}

.project-create {
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(127, 176, 255, 0.52);
  border-radius: 10px;
  color: var(--blue-2);
  background: rgba(79, 140, 255, 0.1);
  font-weight: 760;
}

.project-admin-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  width: 100%;
  align-items: center;
  padding: 10px 0;
  border: 0;
  border-top: 1px solid var(--line);
  color: inherit;
  font: inherit;
  text-align: left;
  background: transparent;
}

.project-admin-row strong,
.project-admin-row span {
  display: block;
}

.project-admin-row span {
  margin-top: 3px;
  color: var(--soft);
  font-size: 11px;
}

.project-admin-row b {
  color: var(--gold);
  font-size: 11px;
}

.media-composer {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.media-add {
  width: 48px;
  height: 48px;
  border: 1px dashed rgba(127, 176, 255, 0.66);
  border-radius: 12px;
  color: var(--blue-2);
  background: rgba(79, 140, 255, 0.08);
  font-size: 28px;
  font-weight: 400;
  line-height: 1;
}

.media-composer strong,
.media-composer span {
  display: block;
}

.media-composer span {
  margin-top: 3px;
  color: var(--soft);
  font-size: 11px;
}

.content-composer {
  display: grid;
  gap: 7px;
}

.content-composer > span {
  color: var(--soft);
  font-size: 12px;
}

.content-media-grid {
  display: grid;
  grid-template-columns: repeat(3, 72px);
  gap: 8px;
}

.content-media-tile,
.content-media-add {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 8px;
  overflow: hidden;
}

.content-media-tile {
  background: rgba(255, 255, 255, 0.06);
  cursor: grab;
}

.content-media-tile img,
.content-media-tile video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.content-media-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 16px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
  pointer-events: none;
}

.content-media-tile button {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 18px;
  height: 18px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.62);
  color: white;
  font-size: 12px;
  line-height: 18px;
}

.content-media-add {
  display: grid;
  place-items: center;
  border: 1px dashed rgba(127, 176, 255, 0.66);
  background: rgba(79, 140, 255, 0.08);
  color: var(--blue-2);
  font-size: 28px;
  line-height: 1;
}

.media-options {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  padding: 8px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
}

.media-options button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.055);
  font-weight: 720;
}

.publish-format {
  display: grid;
  gap: 7px;
}

.publish-format > span {
  color: var(--soft);
  font-size: 12px;
}

.publish-format > div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
  padding: 5px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
}

.publish-format button {
  min-height: 40px;
  border: 0;
  border-radius: 10px;
  color: var(--muted);
  background: transparent;
  font-weight: 760;
}

.publish-format button.selected {
  color: var(--text);
  background: rgba(79, 140, 255, 0.2);
  box-shadow: inset 0 0 0 1px rgba(127, 176, 255, 0.4);
}

.publish-king-field input {
  border-color: rgba(216, 173, 90, 0.42);
  color: var(--gold);
  background: rgba(216, 173, 90, 0.08);
  font-weight: 760;
}

.primary-media {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  min-height: 112px;
  align-items: center;
  padding: 16px;
  border: 1px dashed rgba(127, 176, 255, 0.62);
  border-radius: 16px;
  background: rgba(79, 140, 255, 0.07);
}

.primary-media strong,
.primary-media span {
  display: block;
}

.primary-media span {
  margin-top: 6px;
  color: var(--soft);
  font-size: 12px;
  line-height: 1.45;
}

.primary-media button {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(127, 176, 255, 0.58);
  border-radius: 11px;
  color: var(--blue-2);
  background: rgba(79, 140, 255, 0.13);
  font-weight: 760;
  white-space: nowrap;
}

.primary-media.video {
  border-color: rgba(216, 173, 90, 0.5);
  background: rgba(216, 173, 90, 0.06);
}

.primary-media.video button {
  color: var(--gold);
  border-color: rgba(216, 173, 90, 0.5);
  background: rgba(216, 173, 90, 0.1);
}

.media-caption textarea {
  min-height: 96px;
}

.soft-plan {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 4px;
}

.soft-plan h3 {
  grid-column: 1 / -1;
}

.soft-plan button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--muted);
  font-size: 13px;
}

.soft-plan button.selected {
  color: var(--gold);
  border-color: rgba(216, 173, 90, 0.58);
  background: rgba(216, 173, 90, 0.1);
}

.soft-plan > button:only-of-type {
  grid-column: 1 / -1;
}

.menu-list button {
  grid-template-columns: 1fr;
  color: var(--text);
  font-weight: 700;
}

.checkout-panel {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

.purchase-summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.purchase-summary > strong {
  color: var(--gold);
  font-size: 25px;
  line-height: 1.1;
}

.knight-purchase-card {
  border-color: rgba(216, 173, 90, 0.62);
  background:
    linear-gradient(135deg, rgba(216, 173, 90, 0.16), rgba(255, 255, 255, 0.06));
  box-shadow: inset 0 1px 0 rgba(255, 224, 161, 0.12);
}

.knight-purchase-card h2 {
  color: #fff2d1;
}

.knight-purchase-card p {
  color: rgba(255, 224, 161, 0.74);
}

.purchase-rights {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(216, 173, 90, 0.42);
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(216, 173, 90, 0.1), rgba(255, 255, 255, 0.065));
}

.knight-purchase-rights {
  border-color: rgba(216, 173, 90, 0.62);
  background:
    linear-gradient(135deg, rgba(216, 173, 90, 0.15), rgba(255, 255, 255, 0.06));
  box-shadow: inset 0 1px 0 rgba(255, 224, 161, 0.1);
}

.knight-purchase-rights h3 {
  color: #fff2d1;
}

.purchase-rights h3 {
  margin: 0;
  font-size: 17px;
}

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

.rights-grid div {
  min-height: 72px;
  padding: 10px;
  border: 1px solid rgba(216, 173, 90, 0.24);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
}

.knight-purchase-rights .rights-grid div {
  border-color: rgba(216, 173, 90, 0.34);
  background: rgba(216, 173, 90, 0.075);
}

.knight-purchase-rights .rights-grid .fund-distribution-right {
  grid-column: 1 / -1;
  min-height: 64px;
}

.purchase-rights strong {
  color: #ffe0a1;
  font-size: 14px;
}

.purchase-rights p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.knight-room-preview {
  padding: 16px;
  border: 1px solid rgba(216, 173, 90, 0.42);
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(216, 173, 90, 0.1), rgba(255, 255, 255, 0.065));
}

.knight-room-preview h3 {
  margin: 0;
  font-size: 17px;
}

.knight-room-preview .row-between span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 720;
}

.knight-room-preview .comment:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.checkout-panel .row-between {
  color: var(--muted);
  font-size: 14px;
}

.checkout-panel strong {
  color: var(--text);
}

.knight-checkout {
  border-color: rgba(216, 173, 90, 0.56);
  background:
    linear-gradient(135deg, rgba(216, 173, 90, 0.12), rgba(255, 255, 255, 0.055));
}

.knight-checkout .secondary {
  border-color: rgba(216, 173, 90, 0.42);
  color: #fff2d1;
  background: rgba(216, 173, 90, 0.07);
}

.checkout-panel .total {
  color: var(--text);
}

.checkout-panel .total strong {
  color: var(--gold);
  font-size: 22px;
}

.knight-checkout .guild-fee-note {
  margin: -8px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.visibility-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.07);
}

.visibility-toggle button {
  min-height: 42px;
  border: 0;
  border-radius: 13px;
  color: var(--muted);
  background: transparent;
  font-size: 14px;
  font-weight: 720;
}

.visibility-toggle button.selected {
  color: var(--text);
  background: rgba(79, 140, 255, 0.18);
}

.publish-note {
  padding: 12px;
  border: 1px solid rgba(216, 173, 90, 0.24);
  border-radius: 16px;
  color: #e2c37e;
  background: rgba(216, 173, 90, 0.1);
  font-size: 13px;
  line-height: 1.5;
}

.compact-menu {
  margin-top: 12px;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.075);
}

/* Social-feed density pass: content fills the viewport; framing is reserved for controls and gated actions. */
.app {
  padding-right: 10px;
  padding-left: 10px;
  padding-bottom: 78px;
}

.topbar {
  padding-right: 4px;
  padding-left: 4px;
}

.brand-mark,
.icon-button {
  border-radius: 11px;
}

.bottom-tabs {
  right: 14px;
  bottom: 14px;
  left: 14px;
  padding: 8px;
  border: 1px solid var(--line-strong);
  border-radius: 24px;
}

.tab {
  min-height: 44px;
  border-radius: 16px;
}

.hero-panel,
.archive-summary,
.info-block,
.studio-form,
.king-overview,
.profile-hero,
.project-management,
.compact-menu {
  padding-right: 4px;
  padding-left: 4px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.king-metrics {
  gap: 0;
}

.king-metrics div,
.king-metrics button {
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

.king-metrics div:last-child,
.king-metrics button:last-child {
  border-right: 0;
}

.king-seat-strip {
  border-right: 0;
  border-left: 0;
  border-radius: 0;
  background: rgba(216, 173, 90, 0.035);
}

.live-records,
.month-list,
.chronicle-records,
.project-directory-list,
.seat-holdings,
.archived-seat-cards,
.knight-holder-list {
  gap: 0;
}

.live-record,
.month-card,
.chronicle-record,
.project-directory-card,
.holding-card,
.archived-seat-cards > button,
.knight-holder-list article {
  padding: 15px 4px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

.live-record:first-child,
.month-card:first-child,
.chronicle-record:first-child,
.project-directory-card:first-child {
  border-top: 1px solid var(--line);
}

.live-record h3,
.chronicle-record h3,
.project-directory-card h3 {
  font-size: 18px;
}

.live-record p,
.chronicle-record > p,
.project-directory-card > p {
  font-size: 14px;
  line-height: 1.58;
}

.live-locked,
.chronicle-record.locked {
  padding-left: 4px;
  border-left: 0;
  background: transparent;
}

.month-event {
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 6px;
}

.event-card {
  padding: 13px 3px 16px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

.event-locked .event-card {
  padding-left: 11px;
  border-left: 2px solid rgba(216, 173, 90, 0.72);
  background: rgba(216, 173, 90, 0.035);
}

.event-card h3 {
  font-size: 18px;
}

.event-card p {
  font-size: 14px;
}

.archive-stats {
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.archive-stats div,
.archive-stats > button {
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

.archive-stats > :last-child {
  border-right: 0;
}

.archive-stats > button {
  background: rgba(79, 140, 255, 0.035);
}

.content-section {
  padding: 15px 4px;
  border: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

.content-section.knight-only {
  padding-left: 4px;
  border-left: 0;
  background: transparent;
}

.project-link {
  padding: 15px 4px;
  border-right: 0;
  border-left: 0;
  border-radius: 0;
  background: rgba(79, 140, 255, 0.035);
}

.project-meta span,
.live-signals span,
.holding-meta span,
.project-directory-meta span {
  background: transparent;
}

.archive-row,
.timeline-item,
.settings-row,
.settings-detail-row,
.month-directory-row,
.king-directory-row,
.project-admin-row {
  padding-right: 4px;
  padding-left: 4px;
}

.seat-dashboard,
.year-calendar-tabs,
.king-alphabet {
  border-right: 0;
  border-left: 0;
  border-radius: 0;
  background: transparent;
}

.seat-mode-tabs {
  border-right: 0;
  border-left: 0;
  border-radius: 0;
}

.publish-note {
  border-right: 0;
  border-left: 0;
  border-radius: 0;
}

/* Primary navigation screens share the Time Market's open, content-first rhythm. */
.screen-seats .topbar,
.screen-archive .topbar,
.screen-profile .topbar {
  margin-bottom: 6px;
}

.screen-seats .seat-dashboard,
.screen-archive .archive-stats,
.screen-profile .account-hero {
  margin-right: 0;
  margin-left: 0;
}

.screen-seats .seat-mode-tabs {
  gap: 0;
  padding: 5px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: transparent;
}

.screen-seats .seat-mode-tabs button {
  min-height: 66px;
  padding: 8px 10px;
  border-radius: 0;
}

.screen-seats .seat-mode-tabs button + button {
  border-left: 1px solid var(--line);
}

.screen-seats .seat-mode-tabs button.active {
  background: rgba(79, 140, 255, 0.13);
  box-shadow: inset 0 -2px 0 rgba(127, 176, 255, 0.75);
}

.screen-seats .seat-mode-tabs .seat-mode-sold {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 6px 4px;
  border-left: 1px solid var(--line);
  color: var(--soft);
  text-align: center;
}

.screen-seats .seat-mode-tabs .seat-mode-sold span {
  font-size: 10px;
  line-height: 1.15;
}

.screen-seats .seat-mode-tabs .seat-mode-sold b {
  min-width: 20px;
  padding: 2px 5px;
  font-size: 9px;
}

.screen-seats .seat-mode-tabs .seat-mode-sold.active {
  color: var(--text);
}

.seat-mode-composite {
  position: relative;
  min-width: 0;
  min-height: 66px;
  border-left: 1px solid var(--line);
  color: var(--muted);
}

.seat-mode-composite.active {
  color: var(--text);
  background: rgba(79, 140, 255, 0.13);
  box-shadow: inset 0 -2px 0 rgba(127, 176, 255, 0.75);
}

.screen-seats .seat-mode-tabs .seat-mode-main {
  min-height: 66px;
  padding: 8px 46px 8px 10px;
  color: inherit;
  background: transparent;
  box-shadow: none;
}

.seat-mode-composite.active .seat-mode-main b {
  color: #06101f;
  background: var(--gold);
}

.screen-seats .seat-mode-tabs .seat-mode-history {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 36px;
  min-height: 66px;
  gap: 4px;
  padding: 4px;
  border: 0;
  border-left: 1px solid var(--line);
  color: var(--blue-2);
  background: rgba(8, 13, 22, 0.24);
  box-shadow: none;
  font-size: 10px;
  font-weight: 750;
}

.screen-seats .seat-mode-tabs .seat-mode-history span {
  writing-mode: vertical-rl;
  text-orientation: upright;
  letter-spacing: 1px;
}

.screen-seats .seat-mode-tabs .seat-mode-history b {
  min-width: 18px;
  padding: 2px 5px;
  color: var(--blue-2);
  background: rgba(127, 176, 255, 0.12);
  font-size: 9px;
  line-height: 1.1;
}

.screen-seats .seat-mode-tabs .seat-mode-composite button + button {
  border-left: 0;
}

.screen-seats .seat-tab-content {
  margin-top: 4px;
}

.seat-all-list {
  display: grid;
  gap: 12px;
}

.seat-stage-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.045);
}

.seat-stage-tabs button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  gap: 6px;
  border: 0;
  border-radius: 12px;
  color: var(--muted);
  background: transparent;
  font-size: 12px;
  font-weight: 850;
}

.seat-stage-tabs button.active {
  color: var(--text);
  background: rgba(79, 140, 255, 0.2);
  box-shadow: inset 0 0 0 1px rgba(127, 176, 255, 0.42);
}

.seat-stage-tabs b {
  min-width: 18px;
  padding: 2px 5px;
  border-radius: 999px;
  color: #07101f;
  background: var(--gold);
  font-size: 10px;
  line-height: 1.1;
}

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

.time-seat-section {
  display: grid;
  gap: 8px;
  padding: 2px 0 6px;
  border-bottom: 1px solid var(--line);
}

.time-seat-section[hidden] {
  display: none;
}

.time-seat-section:last-child {
  border-bottom: 0;
}

.seat-list-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 4px 7px;
}

.seat-list-heading div {
  display: grid;
  gap: 2px;
}

.seat-list-heading h3 {
  margin: 0;
  font-size: 15px;
}

.seat-list-heading span {
  color: var(--muted);
  font-size: 10px;
}

.seat-list-heading > b {
  color: var(--soft);
  font-size: 12px;
}

.seat-list-heading.archive-heading {
  margin-top: 8px;
  border-top: 1px solid var(--line);
}

.time-seat-card.future {
  border-color: rgba(216, 173, 90, 0.48);
}

.time-seat-card {
  position: relative;
  grid-template-columns: 92px minmax(0, 1fr);
  align-items: start;
  gap: 14px;
  overflow: hidden;
  padding: 14px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 92% 14%, rgba(216, 173, 90, 0.16), transparent 26%),
    radial-gradient(circle at 10% 100%, rgba(127, 176, 255, 0.11), transparent 34%),
    linear-gradient(135deg, rgba(14, 31, 53, 0.94), rgba(8, 13, 22, 0.96));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.035),
    0 14px 34px rgba(0, 0, 0, 0.18);
}

.time-seat-card::before {
  content: "FANS' NOMOS SEAT CERTIFICATE";
  position: absolute;
  top: 16px;
  left: 120px;
  max-width: calc(100% - 146px);
  color: var(--soft);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.08em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.time-seat-card::after {
  content: "FN";
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(216, 173, 90, 0.5);
  border-radius: 50%;
  color: rgba(216, 173, 90, 0.72);
  font-size: 16px;
  font-weight: 950;
  transform: rotate(-10deg);
}

.seat-card-identity {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: center;
  justify-items: center;
  align-self: stretch;
  gap: 9px;
  min-width: 0;
  padding: 10px 8px;
  text-align: center;
  border: 1px solid rgba(216, 173, 90, 0.16);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(216, 173, 90, 0.08), rgba(127, 176, 255, 0.07) 70%, transparent);
}

.time-seat-card .seat-card-identity > .avatar {
  position: relative;
  z-index: 1;
  width: 54px;
  height: 54px;
  margin-top: 0;
  border: 1px solid rgba(216, 173, 90, 0.42);
  box-shadow:
    0 0 0 4px rgba(216, 173, 90, 0.08),
    0 10px 18px rgba(0, 0, 0, 0.26);
}

.seat-card-stats {
  display: grid;
  gap: 6px;
  width: 100%;
  justify-items: center;
}

.seat-card-stats .badge {
  width: fit-content;
  max-width: 100%;
  justify-self: center;
}

.seat-card-stats > span:not(.badge) {
  display: grid;
  justify-items: center;
  gap: 2px;
  width: 100%;
  min-width: 0;
  padding: 6px 7px;
  border: 1px solid rgba(142, 153, 175, 0.16);
  border-radius: 10px;
  background: rgba(7, 11, 18, 0.34);
}

.seat-card-stats small {
  color: var(--soft);
  font-size: 9px;
  font-weight: 760;
  line-height: 1.1;
}

.seat-card-stats b {
  overflow: hidden;
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.time-seat-card > div:not(.seat-card-identity) {
  position: relative;
  z-index: 1;
  display: grid;
  min-width: 0;
  align-self: stretch;
  gap: 8px;
  padding-top: 25px;
}

.time-seat-card .row-between {
  align-items: start;
  min-height: 0;
  padding-bottom: 0;
  border-bottom: 1px solid rgba(216, 173, 90, 0.22);
}

.time-seat-card h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.18;
}

.time-seat-card p {
  margin: 0;
  font-size: 12px;
}

.time-seat-card .holding-meta span,
.time-seat-card .seat-rights-summary {
  color: var(--soft);
}

.time-seat-card .holding-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.time-seat-card .holding-meta span {
  padding: 4px 8px;
  border: 1px solid rgba(142, 153, 175, 0.2);
  border-radius: 999px;
  background: rgba(7, 11, 18, 0.28);
  font-size: 11px;
  line-height: 1.1;
}

.time-seat-card .seat-rights-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  margin-top: 2px;
  padding-top: 10px;
  border-top: 1px solid rgba(142, 153, 175, 0.18);
}

.time-seat-card .seat-rights-row button {
  white-space: nowrap;
}

.time-seat-card .seat-management-actions {
  position: relative;
  z-index: 2;
  margin-top: auto;
  padding-right: 54px;
}

.time-seat-card.live {
  border-color: rgba(127, 176, 255, 0.48);
  background:
    radial-gradient(circle at 92% 14%, rgba(127, 176, 255, 0.17), transparent 26%),
    radial-gradient(circle at 10% 100%, rgba(127, 176, 255, 0.11), transparent 34%),
    linear-gradient(135deg, rgba(17, 34, 58, 0.96), rgba(8, 13, 22, 0.96));
}

.time-seat-card.past {
  border-color: rgba(181, 191, 211, 0.38);
  background:
    radial-gradient(circle at 92% 14%, rgba(181, 191, 211, 0.12), transparent 26%),
    radial-gradient(circle at 10% 100%, rgba(127, 176, 255, 0.08), transparent 34%),
    linear-gradient(135deg, rgba(20, 27, 39, 0.96), rgba(8, 13, 22, 0.96));
}

.time-seat-card.chronicle {
  border-color: rgba(140, 214, 176, 0.42);
  background:
    radial-gradient(circle at 92% 14%, rgba(140, 214, 176, 0.14), transparent 26%),
    radial-gradient(circle at 10% 100%, rgba(216, 173, 90, 0.1), transparent 34%),
    linear-gradient(135deg, rgba(14, 39, 37, 0.96), rgba(8, 13, 22, 0.96));
}

.time-seat-card.past .badge,
.time-seat-card.chronicle .badge {
  color: var(--blue-2);
  border-color: rgba(127, 176, 255, 0.34);
}

.holding-card.archived .badge {
  color: var(--blue-2);
  border-color: rgba(127, 176, 255, 0.34);
}

.holding-card.archived .archive-value {
  color: var(--gold);
}

.profile-message-entry,
.profile-saved-entry,
.profile-submissions-entry {
  grid-template-columns: minmax(0, 1fr) auto auto;
}

.profile-message-entry em,
.profile-saved-entry em,
.profile-submissions-entry em {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  color: #07101e;
  background: var(--gold);
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
}

.message-filter {
  display: flex;
  gap: 8px;
  padding: 8px 4px 12px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
}

.message-filter button {
  padding: 7px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  white-space: nowrap;
}

.message-filter button.active {
  color: var(--text);
  border-color: var(--blue-2);
  background: rgba(79, 140, 255, 0.14);
}

.message-list {
  display: grid;
  padding-bottom: 100px;
}

.message-row {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  padding: 16px 4px;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: inherit;
  text-align: left;
  background: transparent;
}

.message-row .message-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--line-strong);
}

.message-row.unread .message-dot {
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(216, 173, 90, 0.12);
}

.message-row > div {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.message-row .row-between span,
.message-row small,
.message-row p {
  color: var(--muted);
  font-size: 10px;
}

.message-row strong {
  font-size: 13px;
}

.message-row p {
  margin: 0;
}

.message-row > b {
  color: var(--blue-2);
}

.screen-seats .holding-card,
.screen-seats .seat-reminder-row,
.screen-seats .archived-seat-cards > button {
  padding-top: 16px;
  padding-bottom: 16px;
}

.screen-archive .archive-filter-panel {
  margin-top: 6px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.screen-archive .archive-list {
  display: grid;
  gap: 0;
  margin-top: 0;
}

.screen-archive .archive-card-row {
  margin: 0;
  padding: 16px 4px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  color: inherit;
  background: transparent;
}

.screen-archive .archive-card-row:first-child {
  border-top: 1px solid var(--line);
}

.screen-profile .account-hero {
  padding: 12px 4px 16px;
  border-bottom: 1px solid var(--line);
}

.screen-profile .account-hero .profile-avatar {
  border-radius: 50%;
}

.screen-profile .settings-group {
  margin-top: 18px;
  border-top: 1px solid var(--line);
}

.screen-profile .settings-group > h3 {
  margin: 0;
  padding: 13px 4px 7px;
  color: var(--blue-2);
  font-size: 12px;
}

.screen-profile .settings-row {
  min-height: 60px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.screen-profile .profile-last-group {
  padding-bottom: 96px;
}

@media (max-width: 520px) {
  .prototype-shell {
    padding: 0;
  }

  .phone {
    width: 100vw;
    height: 100vh;
    min-height: 100vh;
    border: 0;
    border-radius: 0;
  }

  .app {
    padding-right: 8px;
    padding-left: 8px;
  }
}

/* Final light-theme authority. Keep after every component override. */
body.theme-light {
  --bg: #edf1f5;
  --phone: #fbfcfd;
  --surface: #ffffff;
  --surface-2: #f4f6f9;
  --surface-3: #e9eef4;
  --line: rgba(30, 47, 70, .12);
  --line-strong: rgba(30, 47, 70, .22);
  --text: #172131;
  --muted: #56657a;
  --soft: #7a8798;
  --blue: #286fd1;
  --blue-2: #2467bd;
  --gold: #9a6b1d;
  --gold-soft: rgba(154, 107, 29, .1);
  --green: #258866;
  color: var(--text);
  background: linear-gradient(180deg, #e8edf4 0, #f3f5f8 420px, #edf1f5 100%);
}

body.theme-light .phone {
  border-color: rgba(30, 47, 70, .16);
  background: var(--phone);
  box-shadow: 0 24px 64px rgba(34, 50, 72, .14), inset 0 1px rgba(255, 255, 255, .94);
}

body.theme-light :is(.topbar, .market-topbar, .record-topbar),
body.theme-light .app.header-scrolled .topbar {
  background: rgba(251, 252, 253, .94);
}

body.theme-light :is(
  .king-social-profile,
  .king-info-panel,
  .month-card,
  .seat-market-card,
  .seat-ticket-stub,
  .seat-certificate,
  .seat-certificate-card,
  .holding-card,
  .epic-person-card,
  .king-directory-card,
  .knight-resume-hero,
  .knight-resume-metrics,
  .knight-current-guards,
  .knight-action-row,
  .seat-dashboard,
  .seat-stage-panel,
  .transfer-state-panel,
  .settings-group,
  .profile-hero,
  .account-hero,
  .storage-summary,
  .storage-breakdown,
  .purchase-success-card,
  .checkout-seat,
  .auth-prompt,
  .quick-create-sheet,
  .prototype-role-sheet
) {
  border-color: var(--line);
  background-color: var(--surface);
  background-image: none;
  box-shadow: none;
}

body.theme-light :is(
  .seat-market-tabs,
  .epic-tabs,
  .knight-resume-tabs,
  .submission-tabs,
  .following-tabs,
  .screen-seats .seat-mode-tabs,
  .seat-stage-tabs
) > button {
  border-color: var(--line);
  background: #fff;
  color: var(--muted);
}

body.theme-light :is(
  .seat-market-tabs,
  .epic-tabs,
  .knight-resume-tabs,
  .submission-tabs,
  .following-tabs,
  .screen-seats .seat-mode-tabs,
  .seat-stage-tabs
) > button.active {
  border-color: rgba(40, 111, 209, .52);
  background: #e9f2ff;
  color: #174f99;
  box-shadow: inset 0 0 0 1px rgba(40, 111, 209, .06);
}

body.theme-light :is(button.primary, .primary, .event-action button, .record-action.primary) {
  border-color: transparent;
  background: var(--blue);
  color: #fff;
}

body.theme-light :is(button.secondary, .secondary) {
  border-color: var(--line-strong);
  background: #fff;
  color: var(--text);
}

body.theme-light .bottom-tabs {
  border-color: rgba(30, 47, 70, .18);
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 10px 30px rgba(34, 50, 72, .12);
}

body.theme-light .bottom-tabs .tab { color: #69778a; }
body.theme-light .bottom-tabs .tab.active { background: #e7f0fc; color: #174f99; }

body.theme-light :is(input, textarea, select) {
  border-color: var(--line-strong);
  background: #fff;
  color: var(--text);
}

body.theme-light .home-onboarding-card { background: #eef5ff; }
body.theme-light .home-guide-link { color: #68778a; }

/* Complete light theme: neutral reading canvas with restrained blue signals. */
body.theme-light {
  --bg: #edf1f5;
  --phone: #fbfcfd;
  --surface: #ffffff;
  --surface-2: #f4f6f9;
  --surface-3: #e9eef4;
  --line: rgba(30, 47, 70, .12);
  --line-strong: rgba(30, 47, 70, .22);
  --text: #172131;
  --muted: #56657a;
  --soft: #7a8798;
  --blue: #286fd1;
  --blue-2: #2467bd;
  --gold: #9a6b1d;
  --gold-soft: rgba(154, 107, 29, .1);
  --green: #258866;
  background: linear-gradient(180deg, #e8edf4 0, #f3f5f8 420px, #edf1f5 100%);
}

body.theme-light .phone {
  border-color: rgba(30, 47, 70, .16);
  background: var(--phone);
  box-shadow: 0 24px 64px rgba(34, 50, 72, .14), inset 0 1px rgba(255, 255, 255, .94);
}

body.theme-light .topbar,
body.theme-light .market-topbar,
body.theme-light .record-topbar,
body.theme-light .app.header-scrolled .topbar {
  background: rgba(251, 252, 253, .94);
}

body.theme-light .explore-search-field,
body.theme-light .explore-hit {
  background: #fff;
}

body.theme-light .brand-mark,
body.theme-light .guest-state-icon,
body.theme-light .market-topbar-icon,
body.theme-light .record-topbar-tools > button,
body.theme-light .topbar > button {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, .78);
  color: var(--blue-2);
}

body.theme-light button.primary,
body.theme-light .primary,
body.theme-light .event-action button,
body.theme-light .record-action.primary,
body.theme-light .month-card button.primary {
  border-color: transparent;
  background: var(--blue);
  color: #fff;
}

body.theme-light button.secondary,
body.theme-light .secondary {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, .72);
  color: var(--text);
}

body.theme-light .home-onboarding-card {
  border-left-color: var(--blue);
  background: #eef5ff;
}

body.theme-light .home-onboarding-close {
  background: #dce9fb;
  color: var(--blue-2);
}

body.theme-light .live-record { background: transparent; }
body.theme-light .live-record:hover { background: rgba(40, 111, 209, .025); }

body.theme-light :is(
  .king-social-profile,
  .king-info-panel,
  .king-metrics,
  .month-card,
  .seat-market-card,
  .seat-ticket-stub,
  .seat-certificate,
  .seat-certificate-card,
  .holding-card,
  .epic-person-card,
  .king-directory-card,
  .knight-resume-hero,
  .knight-resume-metrics,
  .knight-current-guards,
  .knight-action-row,
  .seat-dashboard,
  .seat-stage-panel,
  .transfer-state-panel,
  .settings-group,
  .profile-hero,
  .account-hero,
  .storage-summary,
  .storage-breakdown,
  .purchase-success-card,
  .checkout-seat,
  .auth-prompt,
  .quick-create-sheet,
  .prototype-role-sheet
) {
  border-color: var(--line);
  background-color: var(--surface);
  background-image: none;
  box-shadow: none;
}

body.theme-light :is(
  .seat-market-card,
  .king-directory-card,
  .epic-person-card,
  .knight-action-row,
  .settings-row
):hover {
  border-color: rgba(40, 111, 209, .28);
  background-color: #f8fbff;
}

body.theme-light :is(
  .seat-market-tabs,
  .epic-tabs,
  .knight-resume-tabs,
  .submission-tabs,
  .following-tabs,
  .screen-seats .seat-mode-tabs,
  .seat-stage-tabs
) {
  background: transparent;
}

body.theme-light :is(
  .seat-market-tabs,
  .epic-tabs,
  .knight-resume-tabs,
  .submission-tabs,
  .following-tabs,
  .screen-seats .seat-mode-tabs,
  .seat-stage-tabs
) > button {
  border-color: var(--line);
  background: #fff;
  color: var(--muted);
}

body.theme-light :is(
  .seat-market-tabs,
  .epic-tabs,
  .knight-resume-tabs,
  .submission-tabs,
  .following-tabs,
  .screen-seats .seat-mode-tabs,
  .seat-stage-tabs
) > button.active {
  border-color: rgba(40, 111, 209, .52);
  background: #e9f2ff;
  color: #174f99;
  box-shadow: inset 0 0 0 1px rgba(40, 111, 209, .06);
}

body.theme-light .seat-ticket-stub::before,
body.theme-light .seat-ticket-stub::after,
body.theme-light .seat-trade-ticket-stub::before,
body.theme-light .seat-trade-ticket-stub::after,
body.theme-light .event-date i,
body.theme-light .knight-action-row i {
  background: var(--phone);
}

body.theme-light :is(input, textarea, select) {
  border-color: var(--line-strong);
  background: #fff;
  color: var(--text);
}

body.theme-light :is(input, textarea)::placeholder { color: #8995a5; }

body.theme-light :is(
  .content-access-pill,
  .badge,
  .live-signals span,
  .current-month-badge
) {
  border-color: var(--line-strong);
  background: #f5f7fa;
}

body.theme-light :is(.badge.gold, .content-access-pill.gold) {
  border-color: rgba(154, 107, 29, .28);
  background: #fbf5e8;
  color: #815914;
}

body.theme-light .bottom-tabs {
  border-color: rgba(30, 47, 70, .18);
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 10px 30px rgba(34, 50, 72, .12);
}

body.theme-light .bottom-tabs .tab { color: #69778a; }
body.theme-light .bottom-tabs .tab.active {
  background: #e7f0fc;
  color: #174f99;
}

body.theme-light .auth-prompt-backdrop,
body.theme-light .quick-create-backdrop,
body.theme-light .prototype-role-backdrop {
  background: rgba(35, 47, 65, .24);
  backdrop-filter: blur(8px);
}

body.theme-light .status-language-menu {
  border-color: var(--line);
  background: #fff;
  box-shadow: 0 14px 34px rgba(34, 50, 72, .16);
}

body.theme-light .king-social-profile::before {
  background: linear-gradient(180deg, transparent, rgba(251, 252, 253, .98) 76%);
}

body.theme-light .home-guide-link { color: #68778a; }
body.theme-light .home-guide-link:hover { color: var(--blue-2); }
.seat-content-summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px 20px 14px;
  border-bottom: 1px solid var(--line);
}

.seat-content-summary > div { min-width: 0; }

.seat-content-summary p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.seat-content-summary .text-button {
  color: var(--blue);
  font-weight: 800;
  white-space: nowrap;
}

.seat-content-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  margin: 12px 20px 0;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
}

.seat-content-tabs button {
  min-height: 42px;
  color: var(--muted);
  font-weight: 800;
}

.seat-content-tabs button.active {
  color: var(--text);
  border-radius: 6px;
  background: rgba(79, 140, 255, 0.18);
}

.seat-content-tabs span {
  margin-left: 3px;
  color: var(--blue);
}

.seat-content-list { padding: 6px 20px 106px; }

.seat-content-row {
  display: grid;
  grid-template-columns: 45px minmax(0, 1fr);
  width: 100%;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  text-align: left;
}

.seat-content-row.locked {
  margin-left: -8px;
  padding-left: 8px;
  border-left: 2px solid var(--gold);
  background: linear-gradient(90deg, rgba(215, 168, 72, 0.08), transparent 72%);
}

.seat-content-date {
  padding-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.seat-content-copy { min-width: 0; }

.seat-content-copy h3 {
  margin: 7px 0 6px;
  font-size: 18px;
  line-height: 1.35;
}

.seat-content-copy > p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.seat-content-copy .record-meta {
  color: var(--muted);
  font-size: 12px;
}

.seat-content-context {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  color: var(--blue);
  font-size: 12px;
}

.seat-content-context b { white-space: nowrap; }

/* Knight entries are identified by their timeline, not a gold content rail. */
.event-locked .event-card {
  padding-left: 3px;
  border-left: 0;
  background: transparent;
}

.event-date::after {
  background: rgba(121, 168, 255, 0.62);
}

.event-locked .event-date::after {
  width: 2px;
  background: var(--gold);
  box-shadow: 0 0 8px rgba(216, 173, 90, 0.28);
}

.live-record.live-locked {
  width: 100%;
  margin-left: 0;
  padding-left: 4px;
}

.live-media {
  margin: 11px 0 10px;
}

.record-image-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  grid-template-rows: repeat(2, 92px);
  gap: 3px;
  overflow: hidden;
  border-radius: 7px;
  background: #0c111a;
}

.record-image-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.record-image-grid img:first-child {
  grid-row: 1 / 3;
}

.record-image-grid > span {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 4px 7px;
  border-radius: 5px;
  color: #fff;
  background: rgba(0, 0, 0, 0.72);
  font-size: 11px;
  font-weight: 800;
}

.king-chronicle-owner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 13px;
  align-items: start;
  padding: 16px 4px 18px;
  border-bottom: 1px solid var(--line);
}

.king-chronicle-owner h2 {
  margin: 6px 0;
  font-size: 21px;
}

.king-chronicle-owner p,
.archive-month-summary p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.king-chronicle-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--line);
}

.king-chronicle-stats div {
  display: grid;
  gap: 3px;
  padding: 14px 8px;
  border-right: 1px solid var(--line);
}

.king-chronicle-stats div:last-child { border-right: 0; }
.king-chronicle-stats strong { font-size: 20px; }
.king-chronicle-stats span { color: var(--muted); font-size: 12px; }

.king-chronicle-filters {
  display: grid;
  gap: 8px;
  padding: 14px 0 4px;
  overflow: hidden;
}

.king-chronicle-filters .filter-line {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.king-chronicle-filters .filter-line > span {
  flex: 0 0 36px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.king-chronicle-filters .chip { flex: 0 0 auto; }

.chronicle-project-select {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  max-width: 220px;
}

.chronicle-project-select::after {
  position: absolute;
  right: 12px;
  top: 50%;
  color: var(--blue-2);
  font-size: 10px;
  content: "⌄";
  transform: translateY(-58%);
  pointer-events: none;
}

.chronicle-project-select select {
  width: 100%;
  min-height: 34px;
  padding: 0 32px 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  appearance: none;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
}

.chronicle-project-empty {
  margin: 8px 4px 0;
  color: var(--muted);
  font-size: 14px;
}

.king-chronicle-head { margin-top: 16px; }

.king-chronicle-months { padding-bottom: 100px; }

.king-chronicle-months > button {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 17px 4px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  text-align: left;
}

.king-chronicle-month-label {
  display: grid;
  gap: 5px;
}

.king-chronicle-month-label strong { font-size: 13px; }
.king-chronicle-month-label span { color: var(--gold); font-size: 11px; }
.king-chronicle-months h3 { margin: 5px 0; font-size: 17px; }
.king-chronicle-months p { margin: 0; color: var(--muted); font-size: 12px; }
.king-chronicle-months > button > b { color: var(--blue-2); font-size: 24px; }

.archive-month-summary {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: end;
  padding: 12px 4px 16px;
  border-bottom: 1px solid var(--line);
}

.archive-month-summary h2 { margin: 6px 0 0; font-size: 21px; }
.archive-month-summary > p { text-align: right; }
.archived-month-timeline { margin-top: 14px; padding-bottom: 96px; }

.king-social-profile {
  position: relative;
  margin: 0 -10px 18px;
  padding: 8px 8px 14px;
  overflow: hidden;
  border: 1px solid rgba(216, 173, 90, 0.42);
  border-radius: 30px;
  background:
    radial-gradient(circle at 78% 12%, rgba(216, 173, 90, 0.3), transparent 28%),
    radial-gradient(circle at 10% 20%, rgba(79, 140, 255, 0.24), transparent 34%),
    linear-gradient(180deg, rgba(25, 47, 78, 0.78), rgba(6, 10, 17, 0.96) 56%),
    linear-gradient(135deg, rgba(216, 173, 90, 0.18), transparent 42%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 0 0 1px rgba(121, 168, 255, 0.12),
    0 0 0 1px rgba(216, 173, 90, 0.07),
    0 26px 64px rgba(0, 0, 0, 0.36),
    0 0 42px rgba(79, 140, 255, 0.08);
}

.king-social-profile::before {
  content: "";
  position: absolute;
  inset: 10px;
  z-index: 0;
  border: 1px solid rgba(216, 173, 90, 0.14);
  border-radius: 23px;
  pointer-events: none;
}

.king-social-profile > * {
  position: relative;
  z-index: 1;
}

.king-cover {
  position: relative;
  height: 168px;
  overflow: hidden;
  border: 1px solid rgba(216, 173, 90, 0.32);
  border-radius: 22px 22px 14px 14px;
  background:
    linear-gradient(135deg, rgba(216, 173, 90, 0.28), transparent 36%),
    linear-gradient(180deg, #102542 0%, #07111f 58%, #05080f 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    0 16px 36px rgba(0, 0, 0, 0.28);
}

.king-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 73% 18%, rgba(255, 224, 161, 0.24), transparent 18%),
    linear-gradient(90deg, transparent 0 18%, rgba(216, 173, 90, 0.34) 18.2%, transparent 18.8% 81%, rgba(216, 173, 90, 0.26) 81.3%, transparent 82%),
    repeating-linear-gradient(90deg, rgba(127, 176, 255, 0.09) 0 1px, transparent 1px 42px),
    repeating-linear-gradient(0deg, rgba(216, 173, 90, 0.075) 0 1px, transparent 1px 34px);
  opacity: 0.82;
  pointer-events: none;
}

.king-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(3, 6, 12, 0.84), rgba(5, 12, 23, 0.18) 52%, rgba(3, 6, 12, 0.76)),
    linear-gradient(180deg, rgba(15, 38, 70, 0.08), rgba(4, 7, 12, 0.82));
  pointer-events: none;
}

.king-cover > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 58%;
  opacity: 0.66;
  filter: saturate(1.24) contrast(1.16);
}

.king-cover .icon-button {
  position: absolute;
  top: 12px;
  z-index: 2;
  border-color: rgba(255, 255, 255, 0.58);
  background: rgba(5, 8, 13, 0.68);
  backdrop-filter: blur(10px);
}

.king-cover-back { left: 18px; }
.king-cover-publish { right: 18px; }

.king-cover .king-cover-publish {
  border-color: #ffe0a1;
  color: #0a0d12;
  background: linear-gradient(135deg, #ffe0a1, var(--gold));
}

.king-social-body {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 11px;
  margin: -14px 8px 0;
  padding: 0 10px 0;
}

.king-avatar-column {
  position: relative;
  z-index: 3;
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 8px;
  margin-top: -37px;
}

.king-social-avatar {
  position: relative;
  z-index: 2;
  width: 78px;
  height: 78px;
  margin-top: 0;
  border: 4px solid rgba(8, 12, 19, 0.96);
  border-radius: 50%;
  object-fit: cover;
  box-shadow:
    0 0 0 1px rgba(216, 173, 90, 0.58),
    0 0 0 7px rgba(216, 173, 90, 0.08),
    0 16px 30px rgba(0, 0, 0, 0.34);
}

.king-avatar-follow {
  width: auto;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--blue-2);
  font-size: 12px;
}

.king-avatar-follow.is-following {
  border: 0;
  background: transparent;
  color: var(--muted);
}

.king-social-copy {
  position: relative;
  z-index: 3;
  min-width: 0;
  margin-top: -28px;
  padding-top: 2px;
}

.king-social-copy .king-name-line {
  min-height: 28px;
  color: var(--text);
}

.king-name-line {
  display: flex;
  align-items: center;
  gap: 8px;
}

.king-name-line h1 {
  margin: 0;
  font-size: 24px;
  line-height: 1.1;
}

.king-name-line span {
  padding: 3px 7px;
  border: 1px solid rgba(216, 173, 90, 0.42);
  border-radius: 999px;
  color: var(--gold);
  background: rgba(216, 173, 90, 0.11);
  font-size: 11px;
  font-weight: 800;
}

.king-name-line .king-knight-badge {
  min-height: 0;
  padding: 3px 7px;
  border: 1px solid rgba(121, 168, 255, 0.5);
  border-radius: 999px;
  background: rgba(79, 140, 255, 0.12);
  color: var(--blue-2);
  font-size: 11px;
  font-weight: 800;
}

.king-name-line .king-name-follow { margin-left: 1px; padding: 2px 0; color: var(--blue-2); font-size: 11px; font-weight: 850; white-space: nowrap; }
.king-name-line .king-name-follow.is-following { color: var(--muted); }

.king-handle {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.king-project-context {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  width: 100%;
  gap: 7px;
  margin-top: 7px;
  padding: 0;
  border: 0;
  color: var(--text);
  background: transparent;
  font: inherit;
  text-align: left;
}

.king-project-context span {
  color: var(--soft);
  font-size: 11px;
  font-weight: 700;
}

.king-project-context strong {
  overflow: hidden;
  font-size: 12px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.king-project-context b {
  color: var(--blue-2);
  font-size: 17px;
  font-weight: 500;
  line-height: 1;
}

.king-bio {
  margin: 8px 0 0;
  color: var(--text);
  font-size: 13px;
  line-height: 1.48;
}

.king-social-profile .king-metrics {
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) minmax(0, 1fr);
  margin: 11px 10px 0;
  overflow: hidden;
  border: 1px solid rgba(142, 153, 175, 0.2);
  border-radius: 18px;
  background: rgba(7, 11, 18, 0.36);
}

.king-social-profile .king-metrics.four-part {
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr) minmax(0, 0.82fr) minmax(0, 0.78fr);
}

.king-social-profile .king-metrics div,
.king-social-profile .king-metrics button {
  padding: 10px 9px;
}

.king-social-profile .king-metrics .medal-metric {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  align-content: center;
  column-gap: 12px;
  padding-left: 14px;
  text-align: left;
}

.king-social-profile .king-metrics.four-part .medal-metric {
  grid-template-columns: 30px minmax(0, 1fr);
  column-gap: 8px;
  padding-left: 10px;
}

.king-social-profile .king-metrics.four-part .medal-metric .guard-avatar {
  width: 30px;
  height: 30px;
}

.king-social-profile .king-metrics.four-part .medal-metric strong { font-size: 12px; }
.king-social-profile .king-metrics.four-part .medal-metric span:not(.guard-avatar) { font-size: 9px; }

.king-social-profile .king-metrics .medal-metric .guard-avatar {
  grid-column: 1;
  grid-row: 1 / 3;
  justify-self: start;
}

.king-social-profile .king-metrics .medal-metric strong,
.king-social-profile .king-metrics .medal-metric span:not(.guard-avatar) {
  grid-column: 2;
  justify-self: start;
}

.king-social-profile .king-metrics .seat-market-metric {
  display: grid;
  align-content: center;
  gap: 4px;
  min-width: 0;
  text-align: left;
}

.king-social-profile .king-metrics .seat-market-metric strong {
  overflow: hidden;
  color: var(--text);
  font-size: 14px;
  line-height: 1.08;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.king-social-profile .king-metrics .seat-market-metric small {
  color: var(--soft);
  font-size: 10px;
  line-height: 1.1;
}

.king-social-profile .king-metrics.four-part .seat-market-metric {
  gap: 3px;
  text-align: left;
}

.king-social-profile .king-metrics.four-part .seat-market-metric strong {
  font-size: 12px;
}

.king-social-profile .king-metrics.four-part .seat-market-metric > span {
  color: var(--blue-2);
  font-size: 9px;
  font-weight: 750;
}

.king-social-profile .king-metrics.four-part .seat-status-metric > span {
  color: var(--gold);
}

.king-social-profile .king-metrics .value-metric {
  display: grid;
  align-content: center;
  justify-items: end;
  text-align: right;
}

.king-info-tabs {
  position: absolute;
  top: 154px;
  right: 70px;
  z-index: 18;
  display: none;
  width: min(300px, calc(100% - 92px));
  margin: 0;
}

.king-info-tabs.open { display: block; }
.king-info-tabs.fund { top: 190px; }

.king-info-tabs::after {
  position: absolute;
  top: 18px;
  right: -7px;
  width: 12px;
  height: 12px;
  border-top: 1px solid var(--line-strong);
  border-right: 1px solid var(--line-strong);
  background: rgba(12, 17, 27, 0.98);
  content: "";
  transform: rotate(45deg);
}

.king-info-rail {
  display: grid;
  grid-template-rows: repeat(2, 1fr);
  align-self: start;
  height: 96px;
  margin-top: -31px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(8, 11, 18, 0.9);
  backdrop-filter: blur(12px);
}

.king-info-rail > button {
  display: grid;
  place-content: center;
  gap: 4px;
  min-height: 48px;
  padding: 6px 4px;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  background: transparent;
  font: inherit;
}

.king-info-rail > button:last-child { border-bottom: 0; }

.king-info-rail > button.active {
  color: var(--blue-2);
  background: rgba(79, 140, 255, 0.12);
  box-shadow: inset -3px 0 0 var(--blue);
}

.king-info-rail span {
  font-size: 10px;
  font-weight: 800;
  line-height: 1.05;
}

.king-info-rail b {
  font-size: 10px;
  font-weight: 760;
  line-height: 1.05;
}

.king-guild-entry {
  position: relative;
  display: grid;
  align-self: start;
  margin-top: -37px;
  gap: 3px;
  width: 70px;
  min-height: 78px;
  padding: 8px 5px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: rgba(8, 11, 18, 0.9);
  color: var(--text);
  text-align: center;
}

.king-guild-entry::before {
  content: "";
  position: absolute;
  top: 25px;
  right: 100%;
  width: 15px;
  border-top: 1px solid rgba(216, 173, 90, 0.55);
  box-shadow: 0 2px 0 rgba(91, 145, 246, 0.38);
}

.king-guild-entry::after {
  content: "";
  position: absolute;
  top: 21px;
  right: calc(100% + 13px);
  width: 7px;
  height: 7px;
  border: 1px solid rgba(216, 173, 90, 0.7);
  border-radius: 50%;
  background: var(--phone);
  box-shadow: 0 0 0 3px rgba(79, 140, 255, 0.1);
}

.king-guild-entry span,
.king-guild-entry small { color: var(--muted); font-size: 10px; font-weight: 760; }
.king-guild-entry b { font-size: 13px; }

.king-info-panel {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: rgba(12, 17, 27, 0.98);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.46);
  backdrop-filter: blur(16px);
}

.king-info-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 12px;
}

.king-info-heading > div { display: grid; gap: 3px; }
.king-info-heading span { color: var(--soft); font-size: 10px; }
.king-info-heading strong { font-size: 15px; }

.king-info-heading > button,
.king-info-actions button {
  padding: 5px 0;
  border: 0;
  color: var(--blue-2);
  background: transparent;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
}

.king-fund-value { color: var(--gold); font-size: 19px !important; }

.king-knight-compact-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
  margin-top: 12px;
}

.king-knight-compact-list > button {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 6px;
  align-items: center;
  min-width: 0;
  padding: 6px 3px;
  border: 0;
  color: inherit;
  text-align: left;
  background: transparent;
}

.king-knight-compact-list img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
}

.king-knight-compact-list span { min-width: 0; }
.king-knight-compact-list strong,
.king-knight-compact-list small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.king-knight-compact-list strong { font-size: 10px; }
.king-knight-compact-list small { margin-top: 2px; color: var(--soft); font-size: 8px; }

.king-info-note {
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.king-info-actions {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
  margin-top: 8px;
}

.king-fund-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.king-fund-actions button {
  min-height: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  color: var(--blue-2);
  background: rgba(79, 140, 255, 0.08);
  font-size: 11px;
  font-weight: 820;
}

.event-action .content-access-pill {
  color: var(--blue-2);
  font-size: 11px;
  font-weight: 820;
}

.event-action .content-access-pill.gold {
  color: var(--gold);
}

.month-event.knight-submission-event .event-date i {
  border-color: var(--blue-2);
  box-shadow: 0 0 0 5px rgba(79, 140, 255, 0.16);
}

.month-event.knight-submission-event .event-card {
  padding-left: 3px;
  border-left: 0;
  background: transparent;
}

.event-meta .section-label.submission {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 7px;
  border: 1px solid rgba(216, 173, 90, 0.5);
  border-radius: 999px;
  color: var(--gold);
  font-size: 10px;
  font-weight: 820;
  letter-spacing: 0;
  background: rgba(216, 173, 90, 0.09);
}

.event-meta .section-label.submission::before {
  content: "+";
  display: inline-grid;
  place-items: center;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  color: #10161f;
  background: var(--gold);
  font-size: 11px;
  line-height: 1;
}

.timeline-submitter {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  color: var(--soft);
  font-size: 10px;
}

.month-event.knight-submission-event .timeline-submitter {
  color: var(--soft);
}

.timeline-submitter img { width: 18px; height: 18px; border: 1px solid var(--line-strong); border-radius: 50%; object-fit: cover; }

.month-event.knight-submission-event .event-action span {
  color: var(--blue-2);
  font-weight: 760;
}

.pending-submissions-panel {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.pending-submissions-timeline { min-height: 320px; }

.pending-submissions-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pending-submissions-head > div { display: grid; gap: 6px; }
.pending-submissions-head strong { font-size: 14px; line-height: 1.35; }
.pending-submissions-head button { padding: 0; border: 0; color: var(--blue-2); background: transparent; font-size: 12px; font-weight: 760; }

.pending-submissions-list { display: grid; }

.pending-submission-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: inherit;
  background: transparent;
  text-align: left;
}

.pending-submission-row:last-child { border-bottom: 0; }
.pending-submission-row img { width: 28px; height: 28px; border: 1px solid var(--line-strong); border-radius: 50%; object-fit: cover; }
.pending-submission-row div { display: grid; min-width: 0; gap: 3px; }
.pending-submission-row span { color: var(--blue-2); font-size: 10px; font-weight: 760; }
.pending-submission-row strong { overflow: hidden; color: var(--text); font-size: 13px; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.pending-submission-row p { overflow: hidden; margin: 0; color: var(--soft); font-size: 11px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.pending-submission-row > b { color: var(--blue-2); font-size: 18px; font-weight: 500; }
.pending-submissions-panel > small { color: var(--muted); font-size: 10px; }

.submission-expanded-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
  padding: 16px 0;
  cursor: pointer;
}
.submission-expanded-card:first-child { padding-top: 0; }
.submission-expanded-card header { display: flex; align-items: center; gap: 9px; }
.submission-expanded-card header div { display: grid; gap: 2px; }
.submission-expanded-card header strong { font-size: 12px; white-space: normal; }
.submission-expanded-card h3 { margin: 0; color: var(--text); font-size: 16px; line-height: 1.4; }
.submission-expanded-card p { overflow: visible; color: var(--soft); font-size: 12px; line-height: 1.65; text-overflow: clip; white-space: normal; }
.submission-expanded-card footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.submission-expanded-card footer span { color: var(--muted); font-size: 10px; }
.submission-expanded-card footer button { padding: 6px 10px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--blue-2); background: transparent; font-size: 10px; font-weight: 760; }

/* King home: quieter hierarchy and consistent alignment */
.king-social-profile.king-home-profile {
  margin: 0 0 20px;
  padding: 0 0 16px;
  border-color: rgba(121, 168, 255, 0.22);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(18, 38, 65, 0.76), rgba(6, 11, 19, 0.96) 48%);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
}
.king-social-profile.king-home-profile::before { display: none; }
.king-social-profile.king-home-profile .king-cover {
  height: 154px;
  border: 0;
  border-bottom: 1px solid rgba(121, 168, 255, 0.18);
  border-radius: 21px 21px 0 0;
  box-shadow: none;
}
.king-social-profile.king-home-profile .king-cover::before { opacity: 0.34; }
.king-social-profile.king-home-profile .king-cover::after {
  background: linear-gradient(180deg, rgba(4, 8, 14, 0.12), rgba(5, 10, 18, 0.9));
}
.king-social-profile.king-home-profile .king-social-body {
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 14px;
  margin: -22px 20px 0;
  padding: 0;
}
.king-social-profile.king-home-profile .king-avatar-column { margin-top: -30px; }
.king-social-profile.king-home-profile .king-social-avatar { width: 72px; height: 72px; }
.king-social-profile.king-home-profile .king-social-copy { margin-top: -18px; padding: 0; }
.king-social-profile.king-home-profile .king-name-line { gap: 7px; min-height: 25px; }
.king-social-profile.king-home-profile .king-name-line h1 { font-size: 21px; }
.king-social-profile.king-home-profile .king-handle { margin-top: 6px; }
.king-social-profile.king-home-profile .king-bio { margin-top: 10px; color: var(--soft); line-height: 1.55; }

.king-social-profile .king-primary-metrics {
  margin: 18px 16px 0;
  border-color: rgba(142, 153, 175, 0.22);
  border-radius: 15px;
  background: rgba(4, 9, 16, 0.52);
}
.king-primary-metrics .king-owned-metrics { background: rgba(216, 173, 90, 0.025); }
.king-primary-metrics .king-metric-group + .king-metric-group { border-top-color: rgba(142, 153, 175, 0.24); }
.king-primary-metrics .king-metric-group button {
  grid-template-rows: 26px 15px 14px;
  min-height: 78px;
  gap: 1px;
  padding: 10px 7px;
  border-right-color: rgba(142, 153, 175, 0.22);
}
.king-primary-metrics .king-metric-group button strong { font-size: 17px; letter-spacing: -.01em; }
.king-primary-metrics .king-metric-group button small { font-size: 10px; line-height: 14px; }
.king-primary-metrics .king-metric-group button > span:not(.metric-primary) { font-size: 9px; line-height: 14px; }

.king-timeline-head {
  align-items: center;
  grid-template-columns: minmax(0, 1fr) 58px;
  gap: 12px;
  margin: 0 2px 14px;
  padding: 4px 0 14px;
  border-bottom: 1px solid rgba(142, 153, 175, 0.2);
}
.king-timeline-picker-row {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}
.king-current-month-label { min-height: 40px; }
.king-current-month-label .king-month-summary { display: grid; gap: 3px; }
.king-current-month-label .king-month-summary strong { font-size: 18px; }
.king-current-month-label .current-month-badge { justify-self: start; font-size: 9px; }
.king-timeline-view-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
  min-height: 40px;
  border-radius: 10px;
}
.king-timeline-view-tabs button {
  justify-content: center;
  min-width: 0;
  min-height: 40px;
  padding: 0 9px;
  white-space: nowrap;
}
.king-submit-inline { min-width: 58px; min-height: 40px; border-radius: 12px; }

@media (max-width: 430px) {
  .king-social-profile.king-home-profile .king-social-body { margin-right: 14px; margin-left: 14px; }
  .king-social-profile .king-primary-metrics { margin-right: 12px; margin-left: 12px; }
  .king-timeline-head { grid-template-columns: minmax(0, 1fr) 54px; gap: 8px; }
  .king-timeline-picker-row { gap: 9px; }
  .king-current-month-label .king-month-summary strong { font-size: 16px; }
  .king-timeline-view-tabs button { padding: 0 5px; font-size: 10px; }
  .king-submit-inline { min-width: 54px; }
}

/* Prototype role testing lives in Settings instead of the simulated status bar. */
.prototype-debug-entry {
  margin-top: 4px;
  padding: 7px 10px;
  border: 0;
  color: var(--muted);
  background: transparent;
  font-size: 10px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.prototype-role-backdrop {
  position: absolute;
  z-index: 180;
  inset: 0;
  display: grid;
  align-items: end;
  padding: 18px;
  background: rgba(2, 5, 10, 0.7);
  backdrop-filter: blur(7px);
}
.prototype-role-sheet {
  display: grid;
  gap: 12px;
  width: 100%;
  max-height: calc(100% - 12px);
  overflow: auto;
  padding: 18px;
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  background: #0d1420;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.48);
}
.prototype-role-sheet header { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.prototype-role-sheet header div { display: grid; gap: 3px; }
.prototype-role-sheet header span { color: var(--blue-2); font-size: 11px; font-weight: 800; }
.prototype-role-sheet h2 { margin: 0; font-size: 19px; }
.prototype-role-sheet header > button { width: 32px; height: 32px; padding: 0; border: 1px solid var(--line); border-radius: 50%; color: var(--soft); background: transparent; font-size: 20px; }
.prototype-role-sheet > p { margin: 0; color: var(--soft); font-size: 11px; line-height: 1.5; }
.prototype-role-options { display: grid; gap: 8px; }
.prototype-role-options > button { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; gap: 10px; align-items: center; min-height: 58px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 13px; color: var(--text); background: rgba(255,255,255,.02); text-align: left; }
.prototype-role-options > button.active { border-color: rgba(121,168,255,.65); background: rgba(79,140,255,.12); }
.prototype-role-options i { width: 16px; height: 16px; border: 1px solid var(--line-strong); border-radius: 50%; }
.prototype-role-options button.active i { border: 4px solid var(--blue-2); }
.prototype-role-options div { display: grid; gap: 2px; }
.prototype-role-options strong { font-size: 13px; line-height: 1.35; }
.prototype-role-options span { color: var(--soft); font-size: 10px; }
.prototype-role-options b { color: var(--blue-2); font-size: 10px; }

/* The APK uses the real device viewport; the desktop phone mock remains browser-only. */
html.native-app,
html.native-app body { width: 100%; height: 100%; min-height: 0; background: var(--phone); }
html.native-app .prototype-shell { display: block; width: 100%; height: 100%; min-height: 0; padding: 0; }
html.native-app .phone { width: 100%; height: 100%; min-height: 0; border: 0; border-radius: 0; box-shadow: none; }
html.native-app .status-bar { display: none; }
html.native-app .mobile-theme-toggle {
  position: absolute;
  z-index: 41;
  left: 18px;
  bottom: 24px;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(13, 20, 32, 0.94);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}
html.native-app .app.has-bottom-nav ~ .mobile-theme-toggle { bottom: 102px; }
body.theme-light .mobile-theme-toggle { background: rgba(255, 255, 255, 0.96); }
html.native-app .app {
  height: 100%;
  padding-top: env(safe-area-inset-top, 0px);
  padding-right: 18px;
  padding-bottom: calc(92px + env(safe-area-inset-bottom, 0px));
  padding-left: 18px;
}
html.native-app .prototype-role-backdrop { position: fixed; padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px)); }

@media (max-width: 560px) {
  .pending-submissions-head strong { font-size: 13px; }
}

.king-fund-actions button.active {
  color: #07101f;
  border-color: rgba(216, 173, 90, 0.7);
  background: var(--gold);
  box-shadow: 0 0 0 1px rgba(216, 173, 90, 0.24);
}

.king-fund-actions .fund-donate-action { border-color: rgba(216, 173, 90, 0.5); color: #16110a; background: var(--gold); }

.knight-fund-hero {
  display: grid;
  gap: 8px;
  margin: 8px 0 14px;
  padding: 20px;
  border: 1px solid rgba(216, 173, 90, 0.44);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(216, 173, 90, 0.12), rgba(16, 23, 35, 0.72));
}

.knight-fund-hero > span { color: var(--soft); font-size: 11px; font-weight: 760; }
.knight-fund-hero > strong { color: var(--gold); font-size: 30px; line-height: 1; }
.knight-fund-hero p { margin: 2px 0 6px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.knight-fund-hero .primary { justify-self: start; min-height: 36px; padding: 0 16px; }
.king-guild-fund-summary > div { display: flex; flex-wrap: wrap; gap: 8px; }
.king-guild-fund-summary .secondary,
.king-guild-fund-summary .primary { min-height: 36px; padding: 0 14px; }

.knight-fund-rules {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 18px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.knight-fund-rules div { display: grid; gap: 4px; padding: 12px 6px; }
.knight-fund-rules div + div { border-left: 1px solid var(--line); }
.knight-fund-rules span { color: var(--muted); font-size: 10px; }
.knight-fund-rules strong { font-size: 12px; line-height: 1.4; }

.knight-fund-ledger { display: grid; padding-bottom: 110px; }
.knight-fund-ledger .section-head { margin: 0; padding: 0 0 8px; }
.knight-fund-ledger article { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 9px; align-items: center; padding: 13px 4px; border-top: 1px solid var(--line); }
.knight-fund-ledger time { color: var(--soft); font-size: 10px; }
.knight-fund-ledger article div { display: grid; gap: 4px; min-width: 0; }
.knight-fund-ledger article strong { font-size: 13px; }
.knight-fund-ledger article span { overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.knight-fund-ledger article b { font-size: 13px; }
.knight-fund-ledger article b.income { color: var(--blue-2); }
.knight-fund-ledger article b.expense { color: var(--gold); }

.knight-fund-donation { display: grid; gap: 14px; margin-top: 8px; padding-bottom: 110px; }
.knight-fund-donation > span { color: var(--muted); font-size: 12px; }
.knight-fund-amount { display: grid; grid-template-columns: 24px minmax(0, 1fr); align-items: center; border: 1px solid var(--line-strong); border-radius: 8px; background: rgba(255, 255, 255, 0.04); }
.knight-fund-amount b { padding-left: 14px; color: var(--gold); font-size: 18px; }
.knight-fund-amount input { min-width: 0; min-height: 52px; border: 0; background: transparent; color: var(--text); font-size: 20px; font-weight: 780; }
.knight-fund-amount-options { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; }
.knight-fund-amount-options button { min-height: 34px; border: 1px solid var(--line-strong); border-radius: 7px; background: transparent; color: var(--soft); font-weight: 760; }
.knight-fund-amount-options button.active { border-color: rgba(79, 140, 255, 0.58); background: rgba(79, 140, 255, 0.14); color: var(--blue-2); }
.knight-fund-donation p { margin: 0; padding: 12px; border-left: 2px solid rgba(216, 173, 90, 0.55); color: var(--muted); font-size: 12px; line-height: 1.6; }

/* Light mode keeps the product's blue and gold signals while opening the reading surface. */
body.theme-light {
  color-scheme: light;
  --bg: #e8edf4;
  --phone: #f8fafc;
  --surface: #ffffff;
  --surface-2: #eef3f8;
  --surface-3: #e3ebf4;
  --line: rgba(32, 50, 76, 0.18);
  --line-strong: rgba(32, 50, 76, 0.3);
  --text: #132033;
  --muted: #52647b;
  --soft: #71829a;
  --blue: #236fe0;
  --blue-2: #256fd6;
  --gold: #a97824;
  --gold-soft: rgba(169, 120, 36, 0.13);
  background: radial-gradient(circle at 50% 0%, rgba(79, 140, 255, 0.16), transparent 32rem), #e8edf4;
}

body.theme-light .phone {
  background: linear-gradient(180deg, rgba(79, 140, 255, 0.1), transparent 180px), var(--phone);
  border-color: rgba(26, 45, 70, 0.22);
  box-shadow: 0 28px 90px rgba(36, 55, 80, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

body.theme-light .status-bar { color: rgba(19, 32, 51, 0.72); }
body.theme-light .status-language-trigger { color: rgba(19, 32, 51, 0.72); }
body.theme-light .status-language-menu { background: #ffffff; box-shadow: 0 12px 28px rgba(36, 55, 80, 0.18); }
body.theme-light .topbar { background: linear-gradient(180deg, #f8fafc 72%, rgba(248, 250, 252, 0)); }
body.theme-light .app.header-scrolled .topbar { background: transparent; }
body.theme-light .bottom-tabs { background: rgba(255, 255, 255, 0.92); box-shadow: 0 -8px 24px rgba(36, 55, 80, 0.08); }
body.theme-light .bottom-tabs .tab.active { background: rgba(35, 111, 224, 0.14); color: #1b5ab5; }

body.theme-light .king-social-profile,
body.theme-light .king-info-panel,
body.theme-light .event-card,
body.theme-light .epic-person-card,
body.theme-light .king-directory-card,
body.theme-light .month-card,
body.theme-light .holding-card,
body.theme-light .seat-certificate,
body.theme-light .knight-fund-hero,
body.theme-light .knight-fund-donation { background-color: rgba(255, 255, 255, 0.92); }

body.theme-light .king-social-profile::before { background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(248, 250, 252, 0.96) 72%); }
body.theme-light .king-cover { box-shadow: inset 0 -36px 30px rgba(19, 32, 51, 0.2); }
body.theme-light .king-social-profile .king-metrics div,
body.theme-light .king-social-profile .king-metrics button,
body.theme-light .king-info-panel,
body.theme-light .epic-person-card.knight,
body.theme-light .king-directory-card { background-color: rgba(255, 255, 255, 0.82); }
body.theme-light .event-locked .event-card { background: rgba(169, 120, 36, 0.08); }
body.theme-light .event-date i { background: var(--phone); }

.king-info-list-entry {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-top: 8px;
  padding: 8px 0 0;
  border: 0;
  border-top: 1px solid var(--line);
  color: var(--blue-2);
  background: transparent;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  text-align: left;
}

.king-info-list-entry span {
  min-width: 24px;
  padding: 2px 7px;
  border-radius: 999px;
  color: var(--text);
  background: rgba(79, 140, 255, 0.16);
  text-align: center;
}

.king-list-summary,
.king-value-summary {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}

.king-list-summary p,
.king-value-summary p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.king-value-summary > span {
  color: var(--soft);
  font-size: 10px;
}

.king-value-summary > strong {
  display: block;
  margin-top: 4px;
  color: var(--gold);
  font-size: 28px;
}

.king-value-list {
  padding: 0 18px 100px;
}

.king-value-list > button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  padding: 15px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: inherit;
  text-align: left;
  background: transparent;
}

.king-value-list p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.king-value-list span { color: var(--gold); font-weight: 800; }
.king-value-list b { color: var(--blue-2); }

.king-order-presence {
  margin: 0 18px;
  padding: 12px 4px;
  border-bottom: 1px solid var(--line);
}

.king-order-head {
  display: block;
}

.king-order-head > button {
  display: grid;
  gap: 3px;
  padding: 0;
  border: 0;
  color: inherit;
  font: inherit;
  text-align: left;
  background: transparent;
}

.king-order-head span {
  color: var(--soft);
  font-size: 10px;
}

.king-order-head strong {
  font-size: 15px;
}

.king-order-fund {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.king-order-fund > div {
  display: grid;
  gap: 3px;
}

.king-order-fund > div:last-child {
  text-align: right;
}

.king-order-fund small {
  color: var(--muted);
  font-size: 10px;
}

.king-order-fund strong {
  color: var(--gold);
  font-size: 18px;
}

.king-order-avatars {
  display: flex;
  align-items: center;
  width: 100%;
  margin-top: 11px;
  padding: 0;
  overflow-x: auto;
  border: 0;
  color: inherit;
  background: transparent;
  scrollbar-width: none;
}

.king-order-avatars::-webkit-scrollbar { display: none; }

.king-order-avatars img,
.king-order-avatars > span {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border: 2px solid var(--phone);
  border-radius: 50%;
}

.king-order-avatars img {
  object-fit: cover;
}

.king-order-avatars img + img,
.king-order-avatars > span {
  margin-left: -7px;
}

.king-order-avatars > span {
  display: grid;
  place-items: center;
  color: var(--gold);
  background: #20283a;
  font-size: 10px;
  font-weight: 800;
}

.king-order-presence > p {
  margin: 9px 0 0;
  color: var(--soft);
  font-size: 10px;
  line-height: 1.45;
}

.king-social-profile .king-seat-strip {
  width: calc(100% - 36px);
  margin: 10px 18px 0;
  padding: 9px 4px;
  border-top: 0;
  border-bottom: 0;
}

.king-social-profile + .king-mini-cta-wrap { top: 0; }

.king-projects-preview {
  margin-top: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.king-projects-preview .section-head { margin: 0 0 9px; }

.king-projects-preview .section-head span {
  color: var(--muted);
  font-size: 12px;
}

.king-projects-scroll {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
}

.king-projects-scroll::-webkit-scrollbar { display: none; }

.king-projects-scroll button {
  flex: 0 0 168px;
  display: grid;
  gap: 5px;
  padding: 8px 14px 8px 4px;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  text-align: left;
  scroll-snap-align: start;
}

.king-projects-scroll button + button { padding-left: 14px; }
.king-projects-scroll strong { font-size: 14px; }
.king-projects-scroll span { color: var(--blue-2); font-size: 11px; }

.seat-month-summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px 4px 16px;
  border-bottom: 1px solid var(--line);
}

.seat-month-summary > div { min-width: 0; }

.seat-month-summary h2 {
  margin: 7px 0 5px;
  font-size: 21px;
  line-height: 1.25;
}

.seat-month-summary p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.seat-month-summary > strong {
  align-self: start;
  padding-top: 4px;
  color: var(--gold);
  font-size: 18px;
}

.seat-cost-basis {
  align-self: start;
  padding-top: 3px;
  text-align: right;
}

.seat-cost-basis span,
.seat-cost-basis strong {
  display: block;
}

.seat-cost-basis span {
  color: var(--soft);
  font-size: 10px;
}

.seat-cost-basis strong {
  margin-top: 2px;
  color: var(--gold);
  font-size: 18px;
}

.seat-resale-snapshot {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
  grid-column: 1 / -1;
  gap: 0;
  align-items: stretch;
  margin-top: 2px;
  border-top: 1px solid var(--line);
}

.seat-resale-snapshot > div {
  padding: 10px 10px 0 0;
}

.seat-resale-snapshot > div + div {
  padding-left: 10px;
  border-left: 1px solid var(--line);
}

.seat-resale-snapshot span,
.seat-resale-snapshot strong,
.seat-resale-snapshot small {
  display: block;
}

.seat-resale-snapshot span {
  color: var(--soft);
  font-size: 10px;
}

.seat-resale-snapshot strong {
  margin-top: 3px;
  color: var(--text);
  font-size: 15px;
}

.seat-resale-snapshot small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 9px;
}

.seat-resale-snapshot button {
  align-self: end;
  margin: 10px 0 0 10px;
  padding: 6px 0;
  border: 0;
  color: var(--gold);
  font-weight: 750;
  background: transparent;
  white-space: nowrap;
}

.seat-month-head { margin-top: 18px; }
.seat-month-head h3 { white-space: nowrap; }
.seat-month-head .king-timeline-view-tabs { width: auto; flex: 0 1 auto; }
.seat-month-timeline .event-meta .timeline-submitter { margin-right: auto; }
.seat-month-timeline { padding-bottom: 96px; }

.king-history-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.king-history-actions .section-link {
  min-height: 30px;
  padding: 0 9px;
  font-size: 11px;
}

.king-history-actions .chronicle-link {
  border-color: rgba(121, 168, 255, 0.72);
  color: #f7fbff;
  background: rgba(79, 140, 255, 0.26);
}

.king-history-actions .project-list-link {
  color: var(--muted);
  background: transparent;
}

.king-project-list {
  padding-bottom: 96px;
}

.king-project-list > button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  width: 100%;
  padding: 18px 4px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  text-align: left;
}

.king-project-list > button:first-child { border-top: 1px solid var(--line); }
.king-project-list h3 { margin: 0 0 6px; font-size: 18px; }
.king-project-list p { margin: 0 0 9px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.king-project-list small { color: var(--blue-2); font-size: 11px; }
.king-project-list > button > b { align-self: center; color: var(--blue-2); font-size: 24px; }

.recommendation-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  margin: 0;
  padding: 7px 12px;
  border: 0;
  background: transparent;
  text-align: left;
}

.recommendation-launch {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 68px 60px;
  min-height: 52px;
  margin-bottom: 10px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.07);
}

.recommendation-params {
  display: flex;
  align-items: center;
  min-width: 0;
  padding: 0 12px;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.recommendation-explore {
  width: 60px;
  padding: 0;
  border: 0;
  border-left: 1px solid var(--line);
  color: var(--blue-2);
  background: rgba(79, 140, 255, 0.14);
  font-size: 13px;
  font-weight: 850;
}

.recommendation-tune {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 68px;
  padding: 0;
  border: 0;
  border-left: 1px solid var(--line);
  color: var(--soft);
  background: transparent;
  font-size: 12px;
  font-weight: 700;
}

.recommendation-tune span {
  color: var(--soft);
  font-size: 14px;
  font-weight: 500;
}

.recommendation-tuning-panel {
  display: grid;
  gap: 15px;
  margin: -2px 0 12px;
  padding: 14px 4px 15px;
  border-bottom: 1px solid rgba(121, 168, 255, 0.34);
  background: rgba(79, 140, 255, 0.035);
}

.recommendation-axis {
  display: grid;
  gap: 8px;
}

.recommendation-axis > div {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
}

.recommendation-axis > div span:last-child { text-align: right; }

.recommendation-axis > div strong {
  color: var(--text);
  font-size: 12px;
}

.recommendation-axis input[type="range"] {
  width: 100%;
  height: 6px;
  margin: 0;
  border-radius: 999px;
  appearance: none;
  outline: 0;
  background: linear-gradient(90deg, var(--blue) 0 var(--range), rgba(196, 208, 226, 0.18) var(--range) 100%);
}

.recommendation-axis input[type="range"]::-webkit-slider-thumb {
  width: 20px;
  height: 20px;
  border: 3px solid var(--phone);
  border-radius: 50%;
  appearance: none;
  background: var(--blue-2);
  box-shadow: 0 0 0 1px rgba(121, 168, 255, 0.7);
}

.recommendation-axis input[type="range"]::-moz-range-thumb {
  width: 15px;
  height: 15px;
  border: 3px solid var(--phone);
  border-radius: 50%;
  background: var(--blue-2);
}

.recommendation-generate {
  min-height: 42px;
  border: 1px solid rgba(121, 168, 255, 0.66);
  border-radius: 7px;
  color: var(--text);
  background: rgba(79, 140, 255, 0.22);
  font-weight: 800;
}

.recommendation-entry div { display: grid; gap: 3px; }
.recommendation-entry strong { font-size: 14px; }
.recommendation-entry span { color: var(--muted); font-size: 11px; line-height: 1.4; }
.recommendation-entry b { color: var(--blue-2); font-size: 12px; }

.recommendation-intro {
  padding: 13px 4px 15px;
  border-bottom: 1px solid var(--line);
}

.recommendation-intro strong { font-size: 17px; }
.recommendation-intro p { margin: 6px 0 0; color: var(--muted); font-size: 13px; line-height: 1.55; }

.recommendation-filters {
  display: flex;
  gap: 8px;
  margin: 12px 0 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.recommendation-filters::-webkit-scrollbar { display: none; }
.recommendation-filters .chip { flex: 0 0 auto; }

.recommendation-feed { padding-bottom: 96px; }

.recommended-record {
  padding: 17px 4px;
  border-bottom: 1px solid var(--line);
}

.recommended-record.locked {
  margin-left: -18px;
  padding-left: 22px;
  border-left: 2px solid var(--gold);
  background: rgba(216, 173, 90, 0.035);
}

.recommendation-reason {
  color: var(--blue-2);
  font-size: 12px;
  font-weight: 800;
}

.recommended-record.locked .recommendation-reason { color: var(--gold); }
.recommended-record .row-between b { color: var(--muted); font-size: 11px; }
.recommended-record h3 { margin: 9px 0 7px; font-size: 18px; line-height: 1.35; }
.recommended-record > p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.58; }

.recommendation-author {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
}

.recommendation-author strong { color: var(--blue-2); }
.recommendation-author em { margin-left: auto; color: var(--muted); font-size: 10px; font-style: normal; }

.screen-recommendations {
  position: relative;
  overflow: hidden;
  padding-bottom: 0;
}

.screen-recommendations .topbar {
  min-height: 70px;
}

.screen-recommendations.header-collapsed .recommendation-snap-feed {
  height: 100%;
}

.recommendation-snap-feed {
  height: calc(100% - 70px);
  overflow-y: auto;
  padding-bottom: 126px;
  scroll-snap-type: y mandatory;
  overscroll-behavior-y: contain;
  scrollbar-width: none;
}

.recommendation-snap-feed::-webkit-scrollbar {
  display: none;
}

.recommendation-story {
  position: relative;
  display: flex;
  min-height: calc(100% - 76px);
  flex-direction: column;
  padding: 15px 4px 118px;
  border-bottom: 1px solid var(--line);
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.recommendation-story-type,
.recommendation-story-author,
.recommendation-story-actions {
  display: flex;
  align-items: center;
}

.recommendation-story-type {
  justify-content: space-between;
  gap: 12px;
}

.recommendation-story-type time {
  color: var(--soft);
  font-size: 10px;
}

.recommendation-story-type {
  margin-top: 0;
  padding-right: 0;
}

.recommendation-story h2 {
  margin: 10px 0 2px;
  font-size: 23px;
  line-height: 1.22;
}

.recommendation-media,
.recommendation-cover {
  width: 100%;
  margin: 12px 0 10px;
}

.recommendation-cover {
  height: 210px;
  object-fit: cover;
  border-radius: 7px;
}

.recommendation-story-copy {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.56;
}

.recommendation-story-author {
  gap: 9px;
  margin-top: 13px;
}

.recommendation-story-author > div {
  display: grid;
  min-width: 0;
}

.recommendation-story-author > div strong {
  font-size: 13px;
}

.recommendation-story-author > div span {
  color: var(--soft);
  font-size: 10px;
}

.recommendation-story-author > button {
  margin-left: auto;
  padding: 6px 0;
  border: 0;
  color: var(--blue-2);
  background: transparent;
  font-size: 11px;
  font-weight: 760;
}

.recommendation-story-project {
  justify-content: space-between;
}

.recommendation-story-project > span {
  color: var(--soft);
  font-size: 10px;
}

.recommendation-story.locked .recommendation-story-author > button,
.recommendation-story.locked .recommendation-reason {
  color: var(--gold);
}

.recommendation-story-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.recommendation-story-stats span {
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.recommendation-discussion {
  margin-top: 16px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
}

.recommendation-discussion-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 2px;
}

.recommendation-discussion-head strong {
  font-size: 14px;
}

.recommendation-discussion-head span {
  color: var(--soft);
  font-size: 10px;
}

.recommendation-comment {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 9px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.recommendation-comment p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.52;
}

.recommendation-comment .knight-badge {
  font-size: 9px;
}

.recommendation-topbar {
  min-height: 70px;
  padding-top: 10px;
  padding-bottom: 12px;
  background: transparent;
}

.screen-recommendations.header-collapsed .recommendation-topbar {
  position: sticky;
  top: 0;
  min-height: 64px;
  height: auto;
  padding: 8px 0 10px;
  border-bottom: 1px solid rgba(128, 146, 178, 0.22);
  background: rgba(6, 10, 18, 0.78);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(18px);
  pointer-events: auto;
  z-index: 8;
}

.screen-recommendations.header-collapsed .recommendation-topbar > .icon-button {
  pointer-events: auto;
  border-color: rgba(127, 176, 255, 0.38);
  background: #111925;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.32);
}

.screen-recommendations.header-collapsed .recommendation-topbar > .quick-publish {
  border-color: rgba(216, 173, 90, 0.72);
  background: linear-gradient(135deg, #ffe0a1, var(--gold));
}

.screen-recommendations.header-collapsed .recommendation-topbar-copy {
  visibility: visible;
}

.recommendation-fixed-reply {
  position: absolute;
  right: 60px;
  bottom: 86px;
  left: 10px;
  z-index: 48;
  display: none;
  padding: 8px;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: rgba(8, 11, 18, 0.94);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.44);
  backdrop-filter: blur(16px);
}

.recommendation-fixed-reply.open { display: flex; }

.recommendation-floating-actions {
  position: absolute;
  right: 10px;
  bottom: 86px;
  z-index: 45;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.screen-recommendations .bottom-tabs {
  z-index: 50;
}

.recommendation-floating-actions button {
  width: 42px;
  min-height: 42px;
  padding: 0 5px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  color: var(--blue-2);
  background: rgba(12, 17, 27, 0.94);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(14px);
  font-size: 12px;
  font-weight: 780;
}

.recommendation-floating-actions.collapsed {
  gap: 0;
}

.recommendation-floating-actions.collapsed button:not(.record-actions-toggle):not(.recommendation-actions-toggle) {
  display: none;
}

.recommendation-floating-actions .recommendation-actions-toggle {
  color: var(--blue-2);
  background: rgba(12, 17, 27, 0.9);
  font-size: 14px;
  letter-spacing: 0;
}

.recommendation-floating-actions.open .recommendation-actions-toggle {
  color: var(--soft);
}

.recommendation-floating-actions .recommendation-fab-unlock {
  color: #07101c;
  background: var(--gold);
  border-color: rgba(216, 173, 90, 0.72);
}

.recommendation-floating-actions .recommendation-fab-comment {
  margin-top: 3px;
  color: #07101c;
  background: var(--blue-2);
  border-color: rgba(126, 177, 255, 0.8);
}

.recommendation-floating-actions .recommendation-fab-next {
  width: 50px;
  color: #07101c;
  background: linear-gradient(135deg, #d9e8ff, var(--blue-2));
  border-color: rgba(126, 177, 255, 0.85);
}

.record-floating-actions .record-fab-home {
  color: var(--blue-2);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
}

.record-floating-actions .record-fab-next {
  width: 42px;
  min-height: 42px;
  color: var(--blue-2);
  background: rgba(12, 17, 27, 0.94);
  border-color: var(--line-strong);
  font-size: 19px;
  line-height: 1;
}

.recommendation-floating-actions .hidden { display: none; }

.record-flow-page {
  padding-bottom: 92px;
}

.record-next-cue {
  width: 100%;
  margin-top: 18px;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  color: var(--blue-2);
  background: rgba(79, 140, 255, 0.08);
  font-size: 12px;
  font-weight: 800;
  text-align: left;
}

.record-floating-actions {
  bottom: 86px;
}

.record-floating-actions.exploration-settings-only .record-explore-fab {
  display: block;
  width: 44px;
  min-height: 44px;
  border-color: rgba(121, 168, 255, 0.58);
  background: rgba(17, 34, 58, 0.94);
  font-size: 20px;
}

.record-floating-actions.exploration-settings-only .record-explore-fab[aria-expanded="true"] {
  color: #07101c;
  background: var(--blue-2);
}

.record-floating-actions.collapsed {
  gap: 0;
}

.record-floating-actions.collapsed button:not(.record-actions-toggle) {
  display: none;
}

.record-floating-actions .record-actions-toggle {
  color: var(--blue-2);
  background: rgba(12, 17, 27, 0.9);
  font-size: 14px;
  letter-spacing: 0;
}

.record-floating-actions.has-unlock.collapsed .record-actions-toggle {
  color: #07101c;
  background: linear-gradient(135deg, #f4d47d, var(--gold));
  border-color: rgba(216, 173, 90, 0.82);
}

.record-floating-actions.open .record-actions-toggle {
  color: var(--soft);
}

.record-topbar-tools { display: flex; gap: 7px; align-items: center; justify-content: flex-end; }
.record-topbar-tools .record-explore-settings { width: 38px; min-height: 38px; border-radius: 12px; color: var(--blue-2); font-size: 18px; }
.record-topbar-tools .record-explore-settings[aria-expanded="true"] { border-color: rgba(121,168,255,.65); background: rgba(79,140,255,.18); }
.record-explore-panel { display: grid; gap: 13px; margin: -7px 0 16px; padding: 14px; border: 1px solid rgba(121,168,255,.34); border-radius: 14px; background: linear-gradient(135deg, rgba(25,43,70,.82), rgba(10,15,24,.97)); box-shadow: 0 12px 28px rgba(0,0,0,.26); }
.record-explore-panel-head { display: flex; gap: 12px; align-items: start; justify-content: space-between; }
.record-explore-panel-head > div { display: grid; gap: 3px; }
.record-explore-panel-head strong { color: var(--text); font-size: 13px; }
.record-explore-panel-head span { color: var(--blue-2); font-size: 10px; }
.record-explore-panel-head button { width: 28px; min-height: 28px; padding: 0; border: 0; background: transparent; color: var(--muted); font-size: 20px; }
.record-explore-panel .recommendation-axis { gap: 5px; }
.record-explore-panel input[type="range"] { width: 100%; accent-color: var(--blue-2); }

.recommendation-fixed-reply input {
  min-width: 0;
}

.recommendation-story-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 8px;
  margin-top: auto;
  padding-top: 14px;
}

.recommendation-story-actions .primary,
.recommendation-story-actions .secondary {
  min-height: 42px;
  margin: 0;
  border-radius: 7px;
  font-size: 12px;
}

.recommendation-swipe-cue {
  padding: 13px 0 72px;
  color: var(--soft);
  font-size: 9px;
  text-align: center;
}

.recommendation-skip-button {
  align-self: center;
  min-height: 34px;
  margin: 14px 58px 72px 0;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--soft);
  background: rgba(255, 255, 255, 0.045);
  font-size: 10px;
  font-weight: 780;
}

.recommendation-skip-button:active {
  color: var(--text);
  border-color: rgba(127, 176, 255, 0.58);
  background: rgba(79, 140, 255, 0.12);
}

.seat-listing-heading {
  display: flex;
  align-items: center;
  gap: 8px;
}

.seat-listing-heading > span {
  color: var(--blue-2);
  font-size: 10px;
  font-weight: 800;
}

.resale-listing .seat-listing-heading > span {
  color: var(--gold);
}

.seat-resale-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 11px;
  color: var(--soft);
  font-size: 11px;
}

.seat-resale-meta b {
  color: var(--gold);
  white-space: nowrap;
}

.holding-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
  white-space: nowrap;
}

.holding-resale-action {
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
}

/* Seat resale flow */
.resale-seat-summary,
.checkout-seat {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 15px 4px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.resale-seat-summary h2,
.checkout-seat h2 {
  margin: 6px 0 4px;
  font-size: 20px;
}

.resale-seat-summary p,
.checkout-seat p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.checkout-seat > strong {
  align-self: start;
  color: var(--gold);
  font-size: 20px;
}

.resale-form {
  display: grid;
  gap: 16px;
  padding: 16px 4px 110px;
}

.resale-section-title,
.resale-duration-row {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.resale-section-title h3 {
  margin: 0;
  font-size: 16px;
}

.resale-section-title span,
.resale-duration-row > span {
  color: var(--muted);
  font-size: 11px;
}

.resale-mode-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  overflow: hidden;
}

.resale-mode-switch button {
  padding: 12px;
  border: 0;
  color: var(--muted);
  text-align: left;
  background: transparent;
}

.resale-mode-switch button + button {
  border-left: 1px solid var(--line-strong);
}

.resale-mode-switch button.active {
  color: var(--text);
  background: rgba(79, 140, 255, 0.15);
}

.resale-mode-switch strong,
.resale-mode-switch span {
  display: block;
}

.resale-mode-switch strong {
  font-size: 14px;
}

.resale-mode-switch span {
  margin-top: 4px;
  font-size: 10px;
}

.resale-price-field {
  display: grid;
  gap: 7px;
}

.resale-price-field > span {
  color: var(--muted);
  font-size: 11px;
}

.resale-price-field > div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  border-bottom: 1px solid var(--line-strong);
}

.resale-price-field b {
  color: var(--gold);
  font-size: 26px;
}

.resale-price-field input {
  min-width: 0;
  padding: 9px 8px;
  border: 0;
  color: var(--text);
  font-size: 28px;
  font-weight: 800;
  background: transparent;
}

.resale-reference-grid,
.offer-summary,
.resale-context-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

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

.resale-reference-grid > div,
.offer-summary > div,
.resale-context-strip > div {
  min-width: 0;
  padding: 10px 8px;
}

.resale-reference-grid > div + div,
.offer-summary > div + div,
.resale-context-strip > div + div {
  border-left: 1px solid var(--line);
}

.resale-reference-grid span,
.resale-reference-grid strong,
.offer-summary span,
.offer-summary strong,
.resale-context-strip span,
.resale-context-strip strong {
  display: block;
}

.resale-reference-grid span,
.offer-summary span,
.resale-context-strip span {
  color: var(--soft);
  font-size: 9px;
}

.resale-reference-grid strong,
.offer-summary strong,
.resale-context-strip strong {
  margin-top: 4px;
  color: var(--gold);
  font-size: 13px;
}

.resale-duration-row > div {
  display: flex;
  gap: 7px;
}

.resale-duration-row button {
  padding: 7px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
}

.resale-duration-row button.active {
  border-color: var(--blue-2);
  color: var(--text);
  background: rgba(79, 140, 255, 0.14);
}

.resale-settlement,
.transfer-rights-summary {
  display: grid;
  border-top: 1px solid var(--line);
}

.resale-settlement > div,
.transfer-rights-summary > div {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}

.resale-settlement span,
.transfer-rights-summary span {
  color: var(--muted);
  font-size: 11px;
}

.resale-settlement strong,
.transfer-rights-summary strong {
  text-align: right;
  font-size: 12px;
}

.resale-settlement .total strong {
  color: var(--gold);
  font-size: 18px;
}

.resale-rights-note {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid rgba(216, 173, 90, 0.34);
  border-radius: 8px;
  background: rgba(216, 173, 90, 0.05);
}

.resale-rights-note strong {
  color: var(--gold);
  font-size: 12px;
}

.resale-rights-note span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.resale-rules-compact {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.resale-rules-compact span {
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--soft);
  font-size: 10px;
}

.resale-listing-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  padding: 16px 4px;
  border-top: 1px solid var(--line);
}

.resale-listing-owner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 11px;
  align-items: center;
}

.resale-listing-owner span,
.resale-listing-owner p,
.resale-listing-price span,
.resale-listing-price small {
  color: var(--muted);
  font-size: 10px;
}

.resale-listing-owner h2 {
  margin: 5px 0;
  font-size: 19px;
}

.resale-listing-owner p {
  margin: 0;
}

.resale-listing-price {
  display: grid;
  gap: 3px;
  text-align: right;
}

.resale-listing-price strong {
  color: var(--gold);
  font-size: 22px;
}

.resale-rights-list {
  padding: 12px 4px;
}

.resale-rights-list h3,
.transfer-rights-summary h3 {
  margin: 0 0 7px;
  font-size: 16px;
}

.resale-rights-list > div {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.resale-rights-list strong {
  font-size: 12px;
}

.resale-rights-list span {
  color: var(--muted);
  font-size: 11px;
}

.resale-listing-actions,
.transfer-actions,
.offer-footer {
  display: grid;
  gap: 10px;
  padding: 10px 4px 110px;
}

.resale-listing-actions p {
  margin: 0;
  color: var(--soft);
  font-size: 10px;
  line-height: 1.5;
}

.offer-summary {
  margin-top: 6px;
}

.offer-list {
  display: grid;
}

.offer-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  padding: 16px 4px;
  border-bottom: 1px solid var(--line);
}

.offer-row > div {
  min-width: 0;
}

.offer-row p,
.offer-row small {
  display: block;
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 10px;
}

.offer-row > b {
  color: var(--gold);
  font-size: 16px;
}

.offer-row > button {
  padding: 7px 10px;
  border: 1px solid var(--blue-2);
  border-radius: 6px;
  color: var(--blue-2);
  background: transparent;
}

.transfer-rights-summary,
.resale-checkout-panel {
  margin-top: 14px;
}

.transfer-status {
  padding: 20px 4px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.transfer-status-mark {
  color: var(--blue-2);
  font-size: 11px;
  font-weight: 800;
}

.transfer-status.complete .transfer-status-mark {
  color: var(--gold);
}

.transfer-status h2 {
  margin: 7px 0;
  font-size: 22px;
}

.transfer-status p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.transfer-steps {
  padding: 12px 4px;
}

.transfer-steps > div {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  color: var(--soft);
}

.transfer-steps b {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font-size: 10px;
}

.transfer-steps .active,
.transfer-steps .done {
  color: var(--text);
}

.transfer-steps .active b {
  border-color: var(--blue-2);
  color: var(--blue-2);
}

.transfer-steps .done b {
  border-color: var(--gold);
  color: #07101e;
  background: var(--gold);
}

.transfer-steps strong,
.transfer-steps small {
  display: block;
}

.transfer-steps small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.resale-history {
  padding: 18px 4px 110px;
}

.resale-history > button {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--text);
  text-align: left;
  background: transparent;
}

.resale-history > button div {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.resale-history > button span {
  color: var(--muted);
  font-size: 10px;
}

.resale-history > button b {
  color: var(--gold);
}

@media (max-width: 520px) {
  .offer-row {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .offer-row > button {
    grid-column: 2 / 4;
    justify-self: end;
  }
}

/* High-fidelity prototype scale: a larger canvas with calmer rhythm. */
.prototype-shell {
  padding: 26px;
}

.phone {
  width: min(100vw - 48px, 560px);
  height: min(100vh - 48px, 1040px);
  min-height: 760px;
  border-radius: 40px;
}

.status-bar {
  height: 44px;
  padding: 0 30px;
  font-size: 13px;
}

.app {
  height: calc(100% - 44px);
  padding-right: 30px;
  padding-left: 30px;
  padding-bottom: 120px;
}

.topbar {
  min-height: 88px;
  gap: 14px;
  padding-top: 16px;
  padding-bottom: 20px;
}

.topbar h1 {
  font-size: 22px;
  line-height: 1.14;
}

.topbar p {
  font-size: 13px;
  line-height: 1.38;
}

.market-topbar {
  grid-template-columns: 44px minmax(0, 1fr) auto 40px;
}

.market-switch {
  margin-bottom: 24px;
}

.market-switch button {
  min-height: 74px;
  padding: 15px 20px;
}

.market-switch strong {
  font-size: 17px;
}

.market-switch span,
.section-head span,
.live-context span,
.live-context time,
.live-signals span,
.chip,
.badge,
.knight-badge,
.tab {
  font-size: 11px;
}

.filter-row {
  gap: 10px;
}

.chip {
  padding: 7px 12px;
}

.live-records,
.month-list,
.global-results {
  gap: 22px;
}

.live-record {
  padding: 22px 4px;
  border-right: 0;
  border-left: 0;
  border-radius: 0;
  background: transparent;
}

.live-record h3,
.screen-market .live-record h3 {
  margin-bottom: 12px;
  font-size: 17px;
  line-height: 1.36;
}

.live-record p,
.screen-market .live-record p {
  font-size: 13px;
  line-height: 1.72;
}

.live-context {
  margin-top: 14px;
  gap: 9px;
}

.live-context strong {
  font-size: 12px;
}

.live-signals {
  gap: 8px;
  margin-top: 12px;
}

.live-signals span {
  min-height: 24px;
  padding: 4px 8px;
}

.record-video-preview {
  margin-top: 2px;
  margin-bottom: 14px;
}

.record-video-preview button {
  min-height: 34px;
  padding: 0 14px;
  font-size: 12px;
}

.event-action button {
  min-height: 30px;
  padding: 0 14px;
  font-size: 11px;
}

.bottom-tabs {
  right: 24px;
  left: 24px;
  bottom: 20px;
  padding: 8px;
  z-index: 80;
}

.tab {
  min-height: 48px;
}

.section-head {
  margin: 28px 0 16px;
}

.section-head h3,
.studio-form h1,
.seat-dashboard h1,
.profile-hero h1,
.king-social-copy h1,
.record-topbar-copy h1,
.recommendation-story h2,
.purchase-summary h1,
.certificate-title,
.project-detail h1 {
  font-size: 20px;
  line-height: 1.22;
}

.king-social-copy p,
.profile-hero p,
.record-body,
.record-summary,
.purchase-rights p,
.seat-card p,
.holding-card p,
.project-detail p,
.studio-form label,
.settings-row p {
  font-size: 13px;
  line-height: 1.68;
}

.king-metrics,
.seat-mode-tabs,
.record-card,
.purchase-card,
.certificate-card,
.project-card,
.month-card,
.global-result,
.studio-form,
.settings-panel,
.king-info-panel {
  gap: 12px;
}

.king-metrics > button,
.seat-mode-tabs > button,
.record-card,
.purchase-card,
.certificate-card,
.project-card,
.month-card,
.global-result,
.settings-row {
  padding: 14px 16px;
}

.king-metrics strong,
.seat-card h3,
.holding-card h3,
.record-card h3,
.purchase-card h3,
.certificate-card h3,
.project-card h3,
.month-card h3,
.global-result h3 {
  font-size: 17px;
  line-height: 1.28;
}

.king-metrics small,
.seat-card small,
.holding-card small,
.record-card small,
.purchase-card small,
.certificate-card small,
.project-card small,
.month-card small,
.global-result small {
  font-size: 11px;
  line-height: 1.4;
}

.icon-button,
.quick-publish,
.market-topbar-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 14px;
  font-size: 18px;
}

.quick-publish {
  font-size: 22px;
}

.app.screen-publish,
.app.screen-seats,
.app.screen-profile,
.app.screen-king,
.app.screen-project,
.app.screen-record,
.app.screen-recommendations {
  padding-top: 14px;
}

.app.screen-seats {
  padding-bottom: 132px;
}

/* Locked market cards share the public-card treatment; gold only marks access. */
.live-record.live-locked {
  border-color: var(--line);
}

.live-locked .live-context strong {
  color: var(--blue-2);
}

.live-locked .live-signals span {
  border-color: var(--line);
  color: var(--soft);
  background: transparent;
}

/* Seat market: quote-card anatomy shared with the held-seat certificate language. */
.month-list {
  gap: 14px;
}

.month-card.seat-market-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0;
  padding: 18px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(25, 38, 58, 0.9), rgba(12, 17, 27, 0.96));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.month-card.seat-market-card.resale-listing {
  border-color: rgba(216, 173, 90, 0.38);
  background: linear-gradient(135deg, rgba(45, 38, 22, 0.42), rgba(12, 17, 27, 0.96));
}

.seat-market-card-head {
  display: contents;
}

.seat-market-source {
  align-self: start;
  color: var(--blue-2);
  font-size: 11px;
  font-weight: 780;
}

.resale-listing .seat-market-source { color: var(--gold); }

.seat-market-price {
  display: grid;
  justify-items: end;
  gap: 2px;
}

.seat-market-price small {
  color: var(--muted);
  font-size: 10px;
}

.seat-market-price strong {
  color: var(--gold);
  font-size: 22px;
  line-height: 1;
}

.seat-market-owner {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 11px;
  align-items: center;
  margin-top: 18px;
}

.seat-market-owner .avatar {
  width: 48px;
  height: 48px;
  border-radius: 8px;
}

.seat-market-owner > div {
  display: grid;
  gap: 3px;
}

.seat-market-owner strong {
  color: var(--text);
  font-size: 16px;
}

.seat-market-owner span,
.seat-market-card > p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.month-card.seat-market-card > h3 {
  grid-column: 1 / -1;
  margin: 16px 0 0;
  color: var(--text);
  font-size: 18px;
  line-height: 1.3;
}

.month-card.seat-market-card > p {
  grid-column: 1 / -1;
  margin: 7px 0 0;
}

.seat-market-progress {
  grid-column: 1 / -1;
  margin-top: 16px;
}

.seat-market-progress > div:first-child,
.seat-market-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.seat-market-progress > div:first-child {
  color: var(--soft);
  font-size: 12px;
}

.seat-market-progress b { color: var(--blue-2); }

.seat-market-progress .meter {
  height: 4px;
  margin-top: 8px;
}

.seat-market-progress .meter span { background: var(--blue-2); }

.seat-market-footer {
  grid-column: 1 / -1;
  margin-top: 16px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.seat-market-footer b {
  color: var(--blue-2);
  font-size: 12px;
}

.seat-market-footer.resale b { color: var(--gold); }

/* Seat market tickets borrow the certificate language without losing scan speed. */
.month-card.seat-market-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 132px;
  min-height: 238px;
  padding: 0;
  border-color: rgba(121, 168, 255, 0.38);
  background: linear-gradient(135deg, rgba(25, 38, 58, 0.92), rgba(12, 17, 27, 0.98));
}

.month-card.seat-market-card.resale-listing {
  border-color: rgba(216, 173, 90, 0.3);
  background: linear-gradient(135deg, rgba(35, 33, 27, 0.56), rgba(12, 17, 27, 0.98));
}

.seat-ticket-main {
  display: grid;
  align-content: start;
  gap: 0;
  min-width: 0;
  padding: 16px;
}

.seat-ticket-main .seat-market-owner {
  grid-template-columns: 40px minmax(0, 1fr);
  margin-top: 18px;
}

.seat-ticket-main .seat-market-owner .avatar {
  width: 40px;
  height: 40px;
  border-radius: 8px;
}

.seat-ticket-main .seat-market-owner strong { font-size: 15px; }
.seat-ticket-main > h3 { margin: 16px 0 0; font-size: 18px; line-height: 1.3; }
.seat-ticket-main > p { margin: 7px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.seat-ticket-main .seat-market-progress { margin-top: 16px; }

.seat-ticket-stub {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  align-content: start;
  min-width: 0;
  padding: 16px 13px 14px 17px;
  border-left: 1px dashed rgba(121, 168, 255, 0.46);
  background: rgba(79, 140, 255, 0.055);
}

.resale-listing .seat-ticket-stub {
  border-left-color: rgba(216, 173, 90, 0.42);
  background: rgba(216, 173, 90, 0.045);
}

.seat-ticket-stub::before,
.seat-ticket-stub::after {
  position: absolute;
  left: -7px;
  width: 14px;
  height: 14px;
  content: "";
  border-radius: 50%;
  background: #080b12;
}

.seat-ticket-stub::before { top: -7px; }
.seat-ticket-stub::after { bottom: -7px; }

.seat-ticket-stub-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  color: var(--soft);
  font-size: 10px;
  font-weight: 760;
}

.seat-ticket-stub-head b { color: var(--blue-2); font-size: 10px; }
.resale-listing .seat-ticket-stub-head b { color: var(--gold); }

.seat-ticket-stub .seat-market-price {
  align-self: start;
  justify-items: start;
  margin-top: 13px;
}

.seat-ticket-stub .seat-market-price strong { font-size: 22px; }

.seat-ticket-number {
  display: grid;
  gap: 4px;
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.seat-ticket-number small { color: var(--muted); font-size: 9px; }
.seat-ticket-number strong { color: var(--soft); font-size: 10px; letter-spacing: 0; white-space: nowrap; }

.seat-ticket-stub .seat-market-footer {
  display: grid;
  gap: 5px;
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 10px;
}

.seat-ticket-stub .seat-market-footer b { font-size: 10px; }

@media (max-width: 420px) {
  .month-card.seat-market-card { grid-template-columns: minmax(0, 1fr) 118px; }
  .seat-ticket-main { padding: 14px; }
  .seat-ticket-stub { padding-right: 10px; padding-left: 14px; }
  .seat-ticket-number strong { font-size: 9px; }
}

/* The market is for scanning. Two independent columns keep its mixed material dense. */
.screen-market .market-waterfall {
  display: block;
  column-count: 2;
  column-gap: 14px;
}

.screen-market .market-waterfall > article {
  break-inside: avoid;
  width: 100%;
  margin: 0 0 14px;
}

.screen-market .market-waterfall .seat-market-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-height: 0;
}

.screen-market .market-waterfall .seat-ticket-main { padding: 14px; }
.screen-market .market-waterfall .seat-ticket-main .seat-market-owner { margin-top: 14px; }
.screen-market .market-waterfall .seat-ticket-main > h3 { margin-top: 14px; font-size: 16px; }
.screen-market .market-waterfall .seat-ticket-main .seat-market-progress { margin-top: 13px; }

.screen-market .market-waterfall .seat-ticket-stub {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: auto auto auto;
  gap: 0 10px;
  padding: 12px 14px;
  border-top: 0;
  border-left: 0;
  background: transparent;
}

.screen-market .market-waterfall .seat-ticket-stub::before,
.screen-market .market-waterfall .seat-ticket-stub::after {
  display: none;
}

.screen-market .market-waterfall .seat-ticket-stub-head,
.screen-market .market-waterfall .seat-ticket-stub .seat-market-footer { grid-column: 1 / -1; }

.screen-market .market-waterfall .seat-ticket-stub .seat-market-price { margin-top: 11px; }
.screen-market .market-waterfall .seat-ticket-number { margin-top: 11px; }
.screen-market .market-waterfall .seat-ticket-stub .seat-market-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 11px;
  padding-top: 9px;
  border-top: 0;
}

@media (max-width: 420px) {
  .screen-market .market-waterfall { column-count: 1; }
}

/* Outbound submissions: contribution management in the same quiet utility language. */
.submission-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
  margin: 8px 0 20px;
  padding: 5px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.submission-tabs button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 6px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
}

.submission-tabs button.active {
  color: var(--text);
  background: rgba(79, 140, 255, 0.16);
}

.submission-tabs b {
  min-width: 19px;
  padding: 2px 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--soft);
  font-size: 10px;
}

.submission-list {
  display: grid;
  gap: 12px;
  padding-bottom: 110px;
}

.submission-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.submission-card.opens-detail { cursor: pointer; }
.submission-card.published { border-color: rgba(79, 140, 255, 0.36); }

.submission-actions button:disabled {
  opacity: 0.4;
  cursor: default;
}
.submission-card.hidden { border-color: rgba(225, 173, 67, 0.3); opacity: 0.82; }
.submission-card.readable { cursor: pointer; }
.submission-card.draft { background: rgba(255, 255, 255, 0.025); }

.submission-card-top,
.submission-target,
.submission-actions {
  display: flex;
  align-items: center;
}

.submission-card-top {
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 11px;
}

.submission-card-top > span {
  color: var(--blue-2);
  font-weight: 760;
}

.submission-card.draft .submission-card-top > span { color: var(--soft); }

.submission-target { gap: 10px; }

.submission-target > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.submission-target strong { font-size: 13px; }
.submission-target span { color: var(--muted); font-size: 11px; }

.submission-card h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.34;
}

.submission-card p {
  margin: -4px 0 0;
  color: var(--soft);
  font-size: 13px;
  line-height: 1.6;
}

.submission-card.comment-card .submission-target strong {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.submission-card.comment-card .submission-target span {
  color: var(--soft);
}

.submission-card.comment-card p {
  margin: 0;
  color: var(--text);
  font-size: 15px;
  line-height: 1.65;
}

.proto-note-launch {
  position: absolute;
  z-index: 40;
  right: 18px;
  bottom: 24px;
  min-height: 36px;
  padding: 0 14px;
  border: 1px dashed rgba(141, 179, 255, 0.75);
  border-radius: 999px;
  background: rgba(13, 20, 32, 0.94);
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

.app.has-bottom-nav .proto-note-launch {
  bottom: 102px;
}

body.theme-light .proto-note-launch {
  background: rgba(255, 255, 255, 0.96);
  color: #172131;
}

.proto-seat-toggle {
  position: absolute;
  z-index: 40;
  left: 18px;
  bottom: 24px;
  min-height: 36px;
  padding: 0 14px;
  border: 1px dashed rgba(216, 173, 90, 0.8);
  border-radius: 999px;
  background: rgba(13, 20, 32, 0.94);
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

.app.has-bottom-nav .proto-seat-toggle {
  bottom: 102px;
}

body.theme-light .proto-seat-toggle {
  background: rgba(255, 255, 255, 0.96);
  color: #172131;
}

.preview-copy .preview-fade {
  display: block;
  -webkit-mask-image: linear-gradient(180deg, #000 0, #000 calc(100% - 1.45em), transparent);
  mask-image: linear-gradient(180deg, #000 0, #000 calc(100% - 1.45em), transparent);
}

.app .preview-join {
  display: inline-block;
  width: auto;
  min-height: 0;
  margin: 2px 0 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: var(--blue-2);
  font-size: inherit;
  font-weight: 760;
  line-height: inherit;
  vertical-align: baseline;
}

.preview-single,
.preview-stack > img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 10px;
}

.preview-stack {
  display: grid;
  gap: 8px;
}

.preview-more {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  color: #07101e;
  background: var(--blue-2);
  font-size: 12px;
  font-weight: 760;
}

.preview-lock {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  background: #0c111a;
}

.preview-lock img.is-blurred {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(18px);
  transform: scale(1.18);
}

.preview-lock > .preview-lock-label,
.record-video-preview.preview-locked > .preview-lock-label {
  position: absolute;
  top: 50%;
  right: auto;
  bottom: auto;
  left: 50%;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  max-width: calc(100% - 28px);
  height: auto;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  color: #fff;
  background: rgba(5, 9, 15, 0.68);
  font-size: 12px;
  font-weight: 760;
  line-height: 1;
  white-space: nowrap;
  transform: translate(-50%, -50%);
  backdrop-filter: blur(10px);
}

.preview-video-fallback {
  width: 100%;
  height: 100%;
  background: #151b24;
}

.preview-player {
  width: 100%;
  border-radius: 10px;
  background: #0c111a;
}

.seat-join-backdrop {
  position: absolute;
  z-index: 180;
  inset: 0;
  display: grid;
  align-items: end;
  padding: 18px;
  background: rgba(2, 5, 10, 0.7);
}

.seat-join-card {
  margin: 0;
  background: #101722;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.48);
}

body.theme-light .seat-join-card {
  background: #f6f3ec;
}

.seat-join-card .secondary {
  background: rgba(255, 255, 255, 0.06);
}

body.theme-light .seat-join-card .secondary {
  background: rgba(23, 33, 49, 0.06);
}

.seat-join-card .primary,
.seat-join-card .secondary {
  width: 100%;
}

.seat-join-card button:disabled {
  opacity: 0.55;
}

.proto-field-sheet h3 {
  margin: 10px 0 0;
  color: var(--blue-2);
  font-size: 12px;
}

.proto-field-sheet ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.proto-field-sheet li {
  color: var(--soft);
  font-size: 13px;
  line-height: 1.55;
}

.proto-field-sheet b {
  display: block;
  margin-bottom: 2px;
  color: var(--text);
  font-size: 13px;
  font-weight: 650;
}

.proto-field-sheet code {
  color: var(--blue-2);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
}

.submission-actions {
  justify-content: flex-end;
  gap: 9px;
  margin-top: 2px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.submission-actions button {
  min-height: 34px;
  padding: 0 13px;
  border-radius: 6px;
  font-size: 12px;
}

.timeline-submissions-empty {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 34px 20px;
  border: 1px dashed var(--line-strong);
  border-radius: 10px;
  text-align: center;
  background: rgba(79, 140, 255, 0.035);
}

.timeline-submissions-empty strong { font-size: 16px; }
.timeline-submissions-empty p { margin: 0; color: var(--muted); font-size: 12px; }
.timeline-submissions-empty button {
  min-height: 36px;
  margin-top: 6px;
  padding: 0 15px;
  border: 1px solid rgba(79, 140, 255, 0.5);
  border-radius: 7px;
  color: var(--blue-2);
  background: rgba(79, 140, 255, 0.1);
  font-weight: 760;
}

/* King journey: establish a public identity first, then keep its homepage current. */
.king-creation-intro {
  padding: 16px 4px 20px;
  border-bottom: 1px solid var(--line);
}

.king-creation-intro h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.28;
}

.king-creation-intro p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.king-creation-form { padding-top: 20px; }

.king-identity-verification {
  display: grid;
  gap: 12px;
  margin-top: 4px;
  padding: 16px 4px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.king-verification-head h3 {
  margin: 0;
  font-size: 16px;
}

.king-verification-head span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.king-verification-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--soft);
  font-size: 12px;
}

.king-verification-row b {
  color: var(--blue-2);
  font-size: 12px;
}

.king-verification-confirm {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  padding: 10px 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  text-align: left;
  font-size: 12px;
  line-height: 1.45;
}

.king-verification-confirm i {
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  color: #07101e;
  font-size: 12px;
  font-style: normal;
}

.king-verification-confirm.selected { color: var(--text); }
.king-verification-confirm.selected i { border-color: var(--blue-2); background: var(--blue-2); }
.king-creation-form > .primary:disabled { cursor: not-allowed; opacity: 0.42; }

.king-home-settings-intro {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin: 8px 0 20px;
  padding: 14px 4px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.king-home-settings-intro > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.king-home-settings-intro strong { font-size: 15px; }
.king-home-settings-intro span { color: var(--muted); font-size: 12px; }

.king-home-settings-intro button {
  padding: 6px 0;
  border: 0;
  background: transparent;
  color: var(--blue-2);
  font-size: 12px;
  font-weight: 760;
}

.king-home-settings-form { padding-bottom: 110px; }
.king-home-settings-form h2 { margin: 0 0 6px; font-size: 20px; }

.king-settings-group {
  display: grid;
  gap: 12px;
}

.king-settings-group + .king-settings-group {
  margin-top: 10px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.king-settings-group-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
}

.king-settings-group-head > div {
  display: grid;
  gap: 3px;
}

.king-settings-group-head h2 { margin: 0; }
.king-settings-group-head span { color: var(--muted); font-size: 12px; }
.king-settings-group-head b { color: var(--blue-2); font-size: 11px; white-space: nowrap; }

.king-cover-upload { cursor: pointer; }

.king-cover-upload > input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.king-cover-upload-preview {
  display: grid;
  grid-template-columns: 98px minmax(0, 1fr);
  min-height: 76px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.king-cover-upload-preview img {
  width: 98px;
  height: 76px;
  object-fit: cover;
}

.king-cover-upload-preview > div {
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 12px;
}

.king-cover-upload-preview strong { font-size: 14px; }
.king-cover-upload-preview small { color: var(--muted); font-size: 12px; }

.king-pause-control {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 8px;
  padding: 16px 4px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.king-pause-control > div {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.king-pause-control strong { font-size: 14px; }
.king-pause-control span { color: var(--muted); font-size: 12px; line-height: 1.5; }
.king-pause-control.paused strong { color: var(--gold); }

/* Personal chronicle: only the months this account can continue to enter. */
.my-chronicle-intro {
  display: grid;
  gap: 5px;
  margin: 8px 0 16px;
  padding: 14px 4px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.my-chronicle-intro strong { font-size: 15px; }
.my-chronicle-intro span { color: var(--muted); font-size: 12px; }

.my-chronicle-list {
  display: grid;
  padding-bottom: 110px;
  border-top: 1px solid var(--line);
}

.my-chronicle-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 16px 4px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  text-align: left;
}

.my-chronicle-row > div {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.my-chronicle-row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 11px;
}

.my-chronicle-row-head b { color: var(--blue-2); }
.my-chronicle-row strong { font-size: 16px; }
.my-chronicle-row p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.my-chronicle-row i { color: var(--blue-2); font-size: 20px; font-style: normal; }

/* Epic: people first, chronicles as a secondary way to look back. */
.epic-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
  margin: 8px 0 20px;
  padding: 5px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.epic-tabs button {
  min-height: 44px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 720;
}

.epic-tabs button.active {
  background: rgba(79, 140, 255, 0.16);
  color: var(--text);
}

.epic-people-tabs {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(86px, 1fr));
  gap: 4px;
  margin: -6px 0 14px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
}

.epic-people-tabs button {
  min-height: 34px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.epic-people-tabs button.active {
  background: rgba(91, 141, 239, 0.17);
  color: var(--text);
}

.epic-king-person-card .king-card-identity {
  grid-template-columns: 58px minmax(0, 1fr) !important;
  margin-top: 12px;
}

.epic-king-person-card .king-card-identity .avatar {
  width: 58px !important;
  height: 58px !important;
}

.epic-king-person-card .king-card-identity strong { font-size: 17px; }
.epic-king-person-card .king-card-identity span { font-size: 11px; }
.epic-king-person-card .king-card-identity small {
  overflow: hidden;
  margin-top: 2px;
  color: var(--blue-2);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.epic-king-person-card footer { margin-top: 14px; }

body.theme-light .epic-people-tabs { background: rgba(29, 61, 103, 0.035); }
body.theme-light .epic-people-tabs button.active { background: #e9f2ff; color: #174f99; }

.epic-intro {
  display: grid;
  gap: 5px;
  margin-bottom: 14px;
  padding: 4px;
}

.epic-intro strong { font-size: 18px; }
.epic-intro span { color: var(--muted); font-size: 13px; line-height: 1.55; }

.epic-knight-sort {
  display: flex;
  gap: 8px;
  margin: 8px 0 16px;
  overflow-x: auto;
  scrollbar-width: none;
}

.epic-knight-sort::-webkit-scrollbar { display: none; }

.epic-knight-sort button {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
}

.epic-knight-sort button.active {
  border-color: rgba(79, 140, 255, 0.58);
  background: rgba(79, 140, 255, 0.14);
  color: var(--blue-2);
}

.epic-list {
  display: grid;
  gap: 12px;
  padding-bottom: 110px;
}

.epic-kings-featured { padding-bottom: 0; }
.epic-directory-head { margin-top: 28px; }

.epic-directory-view { padding-bottom: 110px; }

.epic-directory-back {
  margin: 0 0 8px;
  padding: 7px 0;
  border: 0;
  background: transparent;
  color: var(--blue-2);
  font-size: 12px;
  font-weight: 760;
}

.epic-directory-view .king-directory { padding-bottom: 0; }

.epic-person-card {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 13px;
  width: 100%;
  padding: 16px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  text-align: left;
}

.epic-person-card.knight { background: rgba(79, 140, 255, 0.045); }
.epic-person-card.knight { cursor: pointer; }

.epic-knight-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-items: start;
}

.epic-knight-grid .epic-person-card.knight {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 9px;
  min-height: 162px;
  padding: 13px;
  background: rgba(79, 140, 255, 0.045);
  position: relative;
}

.epic-knight-grid .epic-person-card.knight.is-featured {
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1fr);
  min-height: 146px;
  padding: 17px;
  border-color: rgba(79, 140, 255, 0.48);
  background: linear-gradient(118deg, rgba(47, 88, 142, 0.34), rgba(18, 27, 42, 0.72));
}

.epic-knight-grid .epic-person-card.knight.is-featured .epic-knight-identity { grid-template-columns: 50px minmax(0, 1fr); }
.epic-knight-grid .epic-person-card.knight.is-featured .epic-knight-identity .avatar { width: 50px; height: 50px; }
.epic-knight-grid .epic-person-card.knight.is-featured .epic-knight-identity strong { font-size: 16px; }
.epic-knight-grid .epic-person-card.knight.is-featured h3 { font-size: 17px; }

.epic-knight-grid .epic-knight-identity {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
}

.epic-knight-identity .avatar { width: 42px; height: 42px; }
.epic-knight-identity > div { display: grid; gap: 3px; min-width: 0; }
.epic-knight-identity strong { overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.epic-knight-identity span { color: var(--muted); font-size: 10px; }

.epic-knight-grid .epic-person-card h3 {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 13px;
  line-height: 1.42;
}

.epic-knight-king-strip { display: flex; align-items: center; justify-content: space-between; gap: 7px; min-width: 0; }
.epic-knight-king-strip > div { display: flex; min-width: 0; padding-left: 5px; }
.epic-knight-king-strip img { width: 24px; height: 24px; margin-left: -5px; border: 2px solid #0b111c; border-radius: 50%; object-fit: cover; }
.epic-knight-king-strip span { overflow: hidden; color: var(--soft); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }

.epic-knight-grid .epic-person-card footer {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 9px;
}

.epic-knight-grid .epic-person-card footer span { overflow: hidden; color: var(--soft); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.epic-knight-grid .epic-person-card footer div { display: grid; justify-items: end; gap: 1px; }
.epic-knight-grid .epic-person-card footer small { color: var(--muted); font-size: 9px; }
.epic-knight-grid .epic-person-card footer b { color: var(--gold); font-size: 13px; }

@media (max-width: 460px) {
  .epic-knight-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.epic-person-card > div {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.epic-card-head {
  display: flex;
  align-items: baseline;
  gap: 7px;
}

.epic-card-head strong { font-size: 15px; }
.epic-card-head span { color: var(--muted); font-size: 11px; }
.epic-person-card h3 { margin: 0; font-size: 17px; line-height: 1.32; }
.epic-person-card p { margin: 0; color: var(--soft); font-size: 12px; line-height: 1.58; }

.epic-person-card footer {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}

.epic-person-card footer b { color: var(--blue-2); white-space: nowrap; }

.epic-chronicle-list { gap: 0; padding-bottom: 0; border-top: 1px solid var(--line); }

.epic-chronicle-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 16px 4px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  text-align: left;
}

.epic-chronicle-row > div { display: grid; gap: 4px; min-width: 0; }
.epic-chronicle-row strong { font-size: 14px; }
.epic-chronicle-row span { color: var(--muted); font-size: 11px; line-height: 1.45; }
.epic-chronicle-row > b { color: var(--blue-2); font-size: 20px; font-weight: 400; }

.epic-directory-link {
  width: 100%;
  margin: 0 0 110px;
  padding: 14px 4px;
  border: 0;
  border-top: 1px solid var(--line);
  background: transparent;
  color: var(--blue-2);
  font-size: 12px;
  font-weight: 760;
  text-align: left;
}

.knight-resume-hero {
  position: relative;
  margin: 0 -10px 20px;
  padding: 8px 8px 14px;
  overflow: hidden;
  border: 1px solid rgba(121, 168, 255, 0.34);
  border-radius: 30px;
  background:
    radial-gradient(circle at 78% 12%, rgba(121, 168, 255, 0.22), transparent 28%),
    radial-gradient(circle at 12% 18%, rgba(216, 173, 90, 0.12), transparent 32%),
    linear-gradient(180deg, rgba(21, 43, 73, 0.82), rgba(6, 10, 17, 0.97) 58%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 22px 54px rgba(0, 0, 0, 0.3);
}

.knight-resume-hero::before {
  position: absolute;
  z-index: 0;
  inset: 10px;
  content: "";
  border: 1px solid rgba(121, 168, 255, 0.14);
  border-radius: 23px;
  pointer-events: none;
}

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

.knight-resume-cover {
  position: relative;
  height: 154px;
  overflow: hidden;
  border: 1px solid rgba(121, 168, 255, 0.3);
  border-radius: 22px 22px 14px 14px;
  background: #091522;
}

.knight-resume-cover::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  content: "";
  background:
    repeating-linear-gradient(90deg, rgba(127, 176, 255, 0.08) 0 1px, transparent 1px 42px),
    linear-gradient(90deg, rgba(3, 6, 12, 0.84), rgba(5, 12, 23, 0.14) 55%, rgba(3, 6, 12, 0.7)),
    linear-gradient(180deg, rgba(8, 21, 40, 0.08), rgba(3, 6, 12, 0.86));
  pointer-events: none;
}

.knight-resume-cover > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 58%;
  opacity: 0.58;
  filter: saturate(0.92) contrast(1.1);
}

.knight-resume-cover .icon-button {
  position: absolute;
  top: 12px;
  z-index: 2;
  border-color: rgba(255, 255, 255, 0.58);
  background: rgba(5, 8, 13, 0.68);
}

.knight-resume-back { left: 18px; }
.knight-resume-publish { right: 18px; }
.knight-resume-cover .knight-resume-publish { border-color: #ffe0a1; color: #0a0d12; background: linear-gradient(135deg, #ffe0a1, var(--gold)); }

.knight-resume-body {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 11px;
  margin: -14px 14px 0;
}

.knight-resume-portrait {
  position: relative;
  z-index: 2;
  margin-top: -37px;
  display: grid;
  justify-items: center;
  gap: 7px;
}

.knight-resume-avatar {
  width: 78px;
  height: 78px;
  margin: 0;
  border: 4px solid rgba(8, 12, 19, 0.96);
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(121, 168, 255, 0.62), 0 0 0 7px rgba(121, 168, 255, 0.08), 0 16px 30px rgba(0, 0, 0, 0.34);
}

.knight-resume-portrait span { color: var(--soft); font-size: 9px; line-height: 1; white-space: nowrap; }

.knight-resume-copy { min-width: 0; margin-top: -28px; padding-top: 2px; }
.knight-resume-name-line { display: flex; align-items: center; gap: 8px; min-height: 28px; }
.knight-resume-name-line h1 { margin: 0; font-size: 24px; line-height: 1.1; }
.knight-resume-name-line span { padding: 3px 7px; border: 1px solid rgba(121, 168, 255, 0.5); border-radius: 999px; color: var(--blue-2); background: rgba(79, 140, 255, 0.12); font-size: 11px; font-weight: 800; }
.knight-current-guards {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  margin: 10px -14px 0;
  padding: 9px 14px;
  border: 1px solid rgba(121, 168, 255, 0.2);
  border-radius: 11px;
  background: rgba(79, 140, 255, 0.04);
}

.knight-current-guards > span {
  color: var(--blue-2);
  font-size: 10px;
  font-weight: 760;
  white-space: nowrap;
}

.knight-current-guards > div {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.knight-current-guards > div::-webkit-scrollbar { display: none; }

.knight-current-guards button {
  display: flex;
  flex: 0 0 46px;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 0;
  padding: 3px 2px;
  border: 0;
  border-radius: 7px;
  color: var(--text);
  background: transparent;
  text-align: center;
}

.knight-current-guards img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
}

.knight-current-guards strong { width: 100%; overflow: hidden; font-size: 10px; line-height: 1.15; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 430px) {
  .knight-current-guards { gap: 7px; padding: 8px 14px; }
  .knight-current-guards > div { gap: 2px; }
  .knight-current-guards button { flex-basis: 42px; padding: 3px 1px; }
  .knight-current-guards img { width: 28px; height: 28px; }
}

.knight-resume-context {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  width: 100%;
  gap: 7px;
  margin-top: 7px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  text-align: left;
}

.knight-resume-context span { color: var(--soft); font-size: 11px; font-weight: 700; }
.knight-resume-context strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.knight-resume-context b { color: var(--blue-2); font-size: 17px; font-weight: 500; line-height: 1; }
.knight-resume-bio { max-width: 520px; margin: 9px 0 0; color: var(--soft); font-size: 12px; line-height: 1.55; }

.knight-resume-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 12px 10px 0;
  overflow: hidden;
  border: 1px solid rgba(142, 153, 175, 0.2);
  border-radius: 18px;
  background: rgba(7, 11, 18, 0.36);
}

.knight-resume-metrics > div,
.knight-resume-metrics > button {
  display: grid;
  min-width: 0;
  gap: 3px;
  padding: 10px 5px;
  border: 0;
  background: transparent;
  color: var(--text);
  text-align: center;
}

.knight-resume-metrics > * + * { border-left: 1px solid var(--line); }
.knight-resume-metrics strong { font-size: 16px; }
.knight-resume-metrics span { overflow: hidden; color: var(--soft); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.knight-resume-metrics > button strong { color: var(--blue-2); }

.knight-resume-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 0 6px;
  padding: 5px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
}

.knight-resume-tabs button {
  min-height: 38px;
  padding: 0 10px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.knight-resume-tabs button.active {
  background: rgba(79, 140, 255, 0.19);
  color: var(--text);
}

.knight-resume-seat-panel {
  display: grid;
  gap: 12px;
  margin: 0;
}

.knight-seat-certificate-list { margin-top: 8px; }

.knight-resume-seat-panel article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 148px;
  overflow: hidden;
  width: 100%;
  min-height: 106px;
  padding: 0;
  border: 1px solid rgba(91, 151, 255, 0.42);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(19, 48, 82, 0.78), rgba(10, 17, 29, 0.95));
  box-shadow: inset 0 0 0 1px rgba(126, 174, 255, 0.06);
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.knight-resume-seat-panel article.is-static { cursor: default; }

.knight-resume-seat-panel article.is-archived {
  border-color: rgba(126, 143, 168, 0.36);
  background: linear-gradient(135deg, rgba(27, 35, 47, 0.86), rgba(10, 14, 21, 0.96));
}

.compact-seat-main {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 16px;
}

.knight-resume-seat-panel .compact-seat-main img {
  width: 48px;
  height: 48px;
  border: 2px solid rgba(121, 168, 255, 0.42);
  border-radius: 50%;
  object-fit: cover;
}

.compact-seat-copy { display: grid; gap: 4px; min-width: 0; }
.compact-seat-copy span { color: var(--blue-2); font-size: 11px; font-weight: 760; }
.compact-seat-copy strong { overflow: hidden; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.compact-seat-copy p { overflow: hidden; margin: 0; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }

.compact-seat-stub {
  position: relative;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 3px;
  min-width: 0;
  padding: 13px 10px;
  border-left: 1px dashed rgba(121, 168, 255, 0.46);
  background: rgba(5, 11, 20, 0.38);
  text-align: center;
}

.compact-seat-stub::before,
.compact-seat-stub::after {
  position: absolute;
  left: -7px;
  width: 12px;
  height: 12px;
  border: 1px solid rgba(91, 151, 255, 0.36);
  border-radius: 50%;
  background: #080d16;
  content: "";
}
.compact-seat-stub::before { top: -7px; }
.compact-seat-stub::after { bottom: -7px; }
.compact-seat-stub small { color: var(--muted); font-size: 8px; font-weight: 760; letter-spacing: 0.08em; }
.compact-seat-stub strong { color: var(--text); font-size: 22px; line-height: 1; }
.compact-seat-stub span { overflow: hidden; width: 100%; color: var(--blue-2); font-size: 8px; font-weight: 720; text-overflow: ellipsis; white-space: nowrap; }
.compact-seat-stub b { margin-top: 5px; color: var(--blue-2); font-size: 10px; }

@media (max-width: 560px) {
  .knight-resume-seat-panel article { grid-template-columns: minmax(0, 1fr) 116px; }
  .compact-seat-main { grid-template-columns: 40px minmax(0, 1fr); gap: 9px; padding: 13px; }
  .knight-resume-seat-panel .compact-seat-main img { width: 40px; height: 40px; }
  .compact-seat-stub strong { font-size: 19px; }
}

.knight-action-profile {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  margin: 8px 0 16px;
  padding: 16px 4px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.knight-action-profile > div { display: grid; gap: 4px; min-width: 0; }
.knight-action-profile span { color: var(--blue-2); font-size: 11px; font-weight: 760; }
.knight-action-profile h2 { margin: 0; font-size: 18px; line-height: 1.32; }
.knight-action-profile p { margin: 0; color: var(--muted); font-size: 12px; }

.knight-action-guarded-kings { display: flex; align-items: center; gap: 5px; min-width: 0; }
.knight-action-guarded-kings img { width: 22px; height: 22px; border: 2px solid #080b12; border-radius: 50%; object-fit: cover; }
.knight-action-guarded-kings img + img { margin-left: -10px; }
.knight-action-guarded-kings strong { overflow: hidden; margin-left: 4px; color: var(--soft); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }

.knight-action-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 18px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.knight-action-stats div { display: grid; gap: 3px; padding: 13px 5px; text-align: center; }
.knight-action-stats div + div { border-left: 1px solid var(--line); }
.knight-action-stats strong { color: var(--text); font-size: 17px; }
.knight-action-stats span { color: var(--muted); font-size: 10px; }

.knight-profile-links {
  display: grid;
  margin: 0 0 16px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.knight-profile-links button,
.knight-linked-row {
  display: grid;
  width: 100%;
  align-items: center;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  font: inherit;
  text-align: left;
}

.knight-profile-links button {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  padding: 13px 4px;
}

.knight-profile-links button:last-child,
.knight-linked-row:last-child { border-bottom: 0; }
.knight-profile-links div { display: grid; gap: 4px; min-width: 0; }
.knight-profile-links strong { font-size: 14px; }
.knight-profile-links span { overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.knight-profile-links b,
.knight-linked-row > b { color: var(--blue-2); font-size: 20px; font-weight: 400; line-height: 1; }

.knight-profile-info {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 0 0 18px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.knight-profile-info > span {
  grid-column: 1 / -1;
  padding: 10px 4px 4px;
  color: var(--blue-2);
  font-size: 11px;
  font-weight: 760;
}

.knight-profile-info div { display: grid; gap: 4px; padding: 9px 4px 12px; }
.knight-profile-info div + div { padding-left: 12px; border-left: 1px solid var(--line); }
.knight-profile-info p { margin: 0; color: var(--muted); font-size: 10px; }
.knight-profile-info strong { font-size: 12px; line-height: 1.4; }

.knight-linked-list { display: grid; padding-bottom: 110px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.knight-linked-row { grid-template-columns: 50px minmax(0, 1fr) auto; gap: 12px; padding: 14px 4px; }
.knight-linked-row > div { display: grid; gap: 3px; min-width: 0; }
.knight-linked-row strong { font-size: 15px; }
.knight-linked-row span,
.knight-linked-row p { overflow: hidden; margin: 0; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.knight-linked-row p { color: var(--soft); }
.knight-seat-list .knight-linked-row { grid-template-columns: 50px minmax(0, 1fr) auto auto; }
.knight-linked-row em { color: var(--gold); font-size: 15px; font-style: normal; font-weight: 780; }

.knight-action-list { display: grid; padding-bottom: 110px; }

.knight-action-section-title {
  margin: 18px 0 0;
  padding: 0 4px 10px;
  border-bottom: 1px solid var(--line);
  color: var(--blue-2);
  font-size: 12px;
}

.knight-action-row {
  display: grid;
  grid-template-columns: 40px 12px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  width: 100%;
  padding: 15px 4px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  text-align: left;
}

.knight-action-row time { color: var(--soft); font-size: 11px; padding-top: 3px; }
.knight-action-row i { width: 9px; height: 9px; margin-top: 5px; border: 2px solid var(--blue-2); border-radius: 50%; background: #080b12; }
.knight-action-row > div { display: grid; gap: 5px; min-width: 0; }
.knight-action-row span { color: var(--blue-2); font-size: 11px; font-weight: 760; }
.knight-action-row strong { font-size: 14px; line-height: 1.45; }
.knight-action-row p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.knight-action-row > b { color: var(--blue-2); font-size: 20px; font-weight: 400; line-height: 1; }
.knight-action-row.is-static { grid-template-columns: 40px 12px minmax(0, 1fr); cursor: default; }

/* Native device viewport: use the entire screen instead of the desktop prototype frame. */
@media (max-width: 600px) {
  .prototype-shell {
    display: block;
    min-height: 100dvh;
    padding: 0;
  }

  .phone {
    width: 100vw;
    height: 100dvh;
    min-height: 100dvh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .status-bar {
    padding-right: 20px;
    padding-left: 20px;
  }

  .app {
    padding-right: 16px;
    padding-left: 16px;
  }
}

/* 2026-07 core-flow clarification */
.home-onboarding-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  margin: 6px 0 20px;
  padding: 14px 16px;
  border: 1px solid rgba(121, 168, 255, .34);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(31, 76, 137, .28), rgba(12, 19, 31, .55));
}
.home-onboarding-card div { display: grid; gap: 4px; }
.home-onboarding-card span { color: var(--blue-2); font-size: 12px; font-weight: 800; }
.home-onboarding-card strong { font-size: 14px; line-height: 1.4; }
.home-onboarding-card button { min-height: 38px; padding: 0 13px; border: 0; border-radius: 11px; background: var(--blue); color: #07101f; font-weight: 850; }

.seat-market-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0 0 18px; }
.seat-market-tabs button { display: grid; gap: 4px; min-height: 64px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.025); color: var(--text); text-align: left; }
.seat-market-tabs button.active { border-color: rgba(121,168,255,.65); background: rgba(58,112,190,.22); }
.seat-market-tabs strong { font-size: 14px; }
.seat-market-tabs span { color: var(--muted); font-size: 12px; line-height: 1.35; }
.seat-market-validity { display: grid; gap: 4px; margin-top: 12px; }
.seat-market-validity small { color: var(--muted); font-size: 12px; }
.seat-market-validity strong { color: var(--soft); font-size: 12px; line-height: 1.35; }

.concept-guide { display: grid; align-content: start; min-height: 650px; padding: 48px 10px 130px; }
.concept-guide-progress { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-bottom: 54px; }
.concept-guide-progress i { height: 3px; border-radius: 99px; background: rgba(255,255,255,.1); }
.concept-guide-progress i.active { background: var(--blue); }
.concept-guide-number { display: grid; width: 70px; height: 70px; place-items: center; border: 1px solid rgba(216,173,90,.5); border-radius: 24px; color: var(--gold); background: rgba(216,173,90,.09); font-size: 18px; font-weight: 900; }
.concept-guide h2 { margin: 26px 0 12px; font-size: 32px; }
.concept-guide > p { max-width: 460px; margin: 0; color: var(--soft); font-size: 17px; line-height: 1.75; }
.concept-guide-summary { display: grid; gap: 10px; margin-top: 26px; }
.concept-guide-summary span { padding: 12px 14px; border-left: 2px solid var(--gold); background: rgba(216,173,90,.06); color: var(--soft); font-size: 13px; }
.concept-guide-actions { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; margin-top: auto; padding-top: 50px; }
.concept-guide-actions .primary:only-child { grid-column: 1 / -1; }

.purchase-boundaries h3 { font-size: 15px; }
.purchase-not-included { margin-top: 16px; padding: 14px; border: 1px solid rgba(216,173,90,.28); border-radius: 13px; background: rgba(216,173,90,.055); }
.purchase-not-included h3 { margin: 0 0 7px; color: var(--gold); }
.purchase-not-included p { margin: 0; color: var(--soft); font-size: 13px; line-height: 1.55; }
.purchase-confirm-check { display: grid; grid-template-columns: 20px minmax(0,1fr); gap: 9px; align-items: start; margin: 15px 0; color: var(--soft); font-size: 12px; line-height: 1.5; }
.purchase-confirm-check input { width: 17px; height: 17px; margin: 1px 0 0; accent-color: var(--blue); }
.knight-checkout .primary:disabled { opacity: .4; cursor: not-allowed; }

.king-primary-metrics { display: grid !important; grid-template-columns: 1fr !important; gap: 0; background: rgba(5,12,22,.72); }
.king-primary-metrics .king-metric-group { display: grid; min-width: 0; }
.king-primary-metrics .king-metric-group + .king-metric-group { border-top: 1px solid var(--line); }
.king-primary-metrics .king-owned-metrics { background: linear-gradient(100deg, rgba(216,173,90,.075), rgba(216,173,90,.015) 72%, transparent); }
.king-primary-metrics .king-metric-group > div { display: grid; min-width: 0; }
.king-primary-metrics .king-owned-metrics > div { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.king-primary-metrics .king-community-metrics > div { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.king-primary-metrics .king-community-metrics > div:not(:has(> .king-viewer-identity)) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.king-primary-metrics .king-metric-group button { display: grid; grid-template-rows: 32px 16px 15px; gap: 2px; min-width: 0; min-height: 86px; align-content: center; justify-items: center; padding: 10px 8px; border: 0; border-right: 1px solid var(--line); background: transparent; color: var(--text); text-align: center; }
.king-primary-metrics .king-metric-group button:last-child { border-right: 0; }
.king-primary-metrics .king-metric-group button strong { align-self: end; font-size: 18px; }
.king-primary-metrics .king-metric-group button small { grid-row: 2; color: var(--soft); font-size: 11px; font-weight: 800; line-height: 15px; }
.king-primary-metrics .king-metric-group button > span:not(.metric-primary) { grid-row: 3; font-size: 10px; font-weight: 500; line-height: 15px; }
.king-primary-metrics.king-primary-metrics-compact .king-metric-group button {
  grid-template-rows: 23px 13px 13px;
  gap: 1px;
  min-height: 62px;
  padding: 6px 6px;
}
.king-primary-metrics.king-primary-metrics-compact .king-metric-group button strong {
  font-size: 16px;
}
.king-primary-metrics.king-primary-metrics-compact .king-metric-group button small {
  font-size: 9px;
  line-height: 13px;
}
.king-primary-metrics.king-primary-metrics-compact .king-metric-group button > span:not(.metric-primary) {
  font-size: 9px;
  line-height: 13px;
}
.king-primary-metrics.king-primary-metrics-compact .king-viewer-identity .metric-primary img {
  width: 24px;
  height: 24px;
}

.knight-submission-detail { display: grid; gap: 16px; margin: 12px 0 96px; padding: 18px; border: 1px solid var(--line-strong); border-radius: 18px; background: linear-gradient(145deg, rgba(21,35,58,.86), rgba(8,12,20,.98)); }
.knight-submission-detail > header { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: start; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.knight-submission-detail > header > div { display: grid; gap: 4px; }
.knight-submission-detail > header span, .knight-submission-detail > header p { color: var(--muted); font-size: 11px; }
.knight-submission-detail > header strong { font-size: 18px; }
.knight-submission-detail > header > b { padding: 5px 8px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--blue-2); font-size: 10px; }
.knight-submission-detail > header > b.accepted { color: var(--gold); border-color: rgba(216,173,90,.45); }
.knight-submission-detail > section { display: grid; gap: 12px; }
.knight-submission-detail > section p { color: var(--soft); font-size: 13px; line-height: 1.75; }
.knight-submission-detail > footer { display: flex; gap: 14px; align-items: center; justify-content: space-between; padding-top: 14px; border-top: 1px solid var(--line); }
.knight-submission-detail > footer div { display: grid; gap: 3px; }
.knight-submission-detail > footer small { color: var(--muted); font-size: 10px; }
.knight-submission-detail > footer strong { font-size: 12px; }
.king-primary-metrics .king-viewer-identity .metric-primary { grid-row: 1; align-self: end; justify-content: center; }
.king-primary-metrics .king-viewer-identity em { grid-row: 3; }
.king-primary-metrics small { color: var(--muted); font-size: 11px; line-height: 1.2; }
.king-primary-metrics strong { overflow: hidden; font-size: 16px; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.king-primary-metrics span { color: var(--blue-2); font-size: 10px; line-height: 1.25; }
.king-primary-metrics .king-viewer-identity { gap: 3px; }
.king-viewer-identity .metric-primary { display: flex; gap: 6px; align-items: center; justify-content: center; }
.king-viewer-identity img { width: 30px; height: 30px; border: 1px solid rgba(216,173,90,.55); border-radius: 50%; object-fit: cover; }
.king-viewer-identity strong, .king-primary-project strong { overflow: hidden; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.king-viewer-identity em { color: var(--gold); font-size: 10px; font-style: normal; line-height: 1.2; }
.king-viewer-identity:not(.is-knight) strong { font-size: 12px; white-space: normal; }
.king-primary-project span { font-size: 11px; }
.seat-certificate-detail { position: relative; display: grid; grid-template-columns: 62px minmax(0,1fr); gap: 14px; margin: 0 0 20px; padding: 17px; overflow: hidden; border: 1px solid rgba(216,173,90,.35); border-radius: 17px; background: linear-gradient(135deg, rgba(20,51,88,.8), rgba(25,25,25,.8)); }
.seat-certificate-seal { display: grid; width: 58px; height: 58px; place-items: center; border: 1px solid var(--gold); border-radius: 50%; color: var(--gold); font-size: 18px; font-weight: 900; transform: rotate(-8deg); }
.seat-certificate-detail > div:nth-child(2) { display: grid; gap: 4px; min-width: 0; }
.seat-certificate-detail > div:nth-child(2) span { color: var(--gold); font-size: 11px; letter-spacing: .08em; }
.seat-certificate-detail h3 { margin: 0; font-size: 15px; }
.seat-certificate-detail p { margin: 0; color: var(--soft); font-size: 12px; }
.seat-certificate-detail dl { grid-column: 1 / -1; display: grid; gap: 8px; margin: 2px 0 0; padding-top: 12px; border-top: 1px solid rgba(216,173,90,.2); }
.seat-certificate-detail dl div { display: grid; grid-template-columns: 72px 1fr; gap: 8px; font-size: 12px; }
.seat-certificate-detail dt { color: var(--muted); }
.seat-certificate-detail dd { margin: 0; color: var(--soft); line-height: 1.4; }
@media (max-width: 430px) {
  .home-onboarding-card { grid-template-columns: 1fr; }
  .home-onboarding-card button { justify-self: start; }
  .king-primary-metrics strong { font-size: 16px; }
}

.epic-explainer {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  margin: 0 0 16px;
  padding: 11px 13px;
  border-left: 2px solid var(--blue-2);
  background: rgba(79, 140, 255, .07);
}
.epic-explainer strong { color: var(--blue-2); font-size: 13px; }
.epic-explainer span { color: var(--soft); font-size: 12px; line-height: 1.45; }

.quick-create-backdrop {
  position: absolute;
  z-index: 120;
  inset: 0;
  display: grid;
  align-items: end;
  padding: 18px;
  background: rgba(2, 5, 10, .72);
  backdrop-filter: blur(8px);
}
.quick-create-sheet {
  width: min(100%, 640px);
  margin: 0 auto;
  padding: 18px;
  border: 1px solid rgba(121, 168, 255, .35);
  border-radius: 22px;
  background: #0d1420;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .48);
}
.quick-create-head { display: flex; align-items: start; justify-content: space-between; margin-bottom: 12px; }
.quick-create-head div { display: grid; gap: 3px; }
.quick-create-head span { color: var(--blue-2); font-size: 12px; font-weight: 800; }
.quick-create-head h2 { margin: 0; font-size: 20px; }
.quick-create-head > button { width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--soft); font-size: 21px; }
.quick-create-sheet > button { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; gap: 12px; align-items: center; width: 100%; padding: 13px 4px; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--text); text-align: left; }
.quick-create-sheet > button i { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 12px; background: rgba(79, 140, 255, .12); color: var(--blue-2); font-size: 11px; font-style: normal; font-weight: 850; }
.quick-create-sheet > button div { display: grid; gap: 4px; }
.quick-create-sheet > button strong { font-size: 14px; }
.quick-create-sheet > button span { color: var(--muted); font-size: 12px; line-height: 1.4; }
.quick-create-sheet > button b { color: var(--blue-2); font-size: 20px; font-weight: 400; }
.quick-create-sheet > p { margin: 13px 2px 2px; color: var(--muted); font-size: 11px; text-align: center; }

/* Final prototype pass: readable secondary text and transaction governance. */
.app small,
.app .section-label,
.app .badge,
.app .tab-label,
.app .content-access-pill { font-size: 12px; }
.app button { min-height: 44px; }
.bottom-tabs .tab { min-height: 58px; }

.market-topbar.compact-actions { grid-template-columns: 44px minmax(0,1fr) 44px; }
.market-topbar.compact-actions .market-topbar-tools { grid-column: 3; }
.home-onboarding-card { position: relative; }
.home-onboarding-close { position: absolute; top: 5px; right: 6px; width: 32px; min-height: 32px !important; padding: 0; border: 0; background: transparent; color: var(--muted); font-size: 19px; }

/* Prototype-only role switcher */
.status-bar {
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  gap: 7px;
  position: relative;
  z-index: 220;
}

.prototype-role-switcher {
  display: flex;
  justify-content: center;
  gap: 3px;
  min-width: 0;
  position: relative;
  z-index: 221;
}

.prototype-role-switcher button {
  min-width: 0;
  min-height: 23px;
  padding: 0 6px;
  border: 1px solid rgba(121, 168, 255, 0.2);
  border-radius: 999px;
  background: rgba(13, 22, 37, 0.58);
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.prototype-role-switcher button:hover {
  border-color: rgba(121, 168, 255, 0.5);
  color: var(--text);
}

.prototype-role-switcher button.active {
  border-color: rgba(121, 168, 255, 0.72);
  background: rgba(79, 140, 255, 0.2);
  color: var(--blue-2);
  box-shadow: inset 0 0 0 1px rgba(79, 140, 255, 0.12);
}

body.theme-light .prototype-role-switcher button {
  background: rgba(255, 255, 255, 0.68);
}

body.theme-light .prototype-role-switcher button.active {
  background: rgba(35, 111, 224, 0.14);
  color: #1b5ab5;
}

@media (max-width: 420px) {
  .status-bar { gap: 4px; padding-right: 12px; padding-left: 12px; }
  .prototype-role-switcher { gap: 2px; }
  .prototype-role-switcher button { padding: 0 4px; font-size: 8px; }
}

/* Guest experience and account boundary */
.home-onboarding-card small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.home-onboarding-actions {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px !important;
}

.home-onboarding-actions button {
  white-space: nowrap;
}

.home-onboarding-actions .secondary {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
}

.discussion-login {
  width: 100%;
  min-height: 42px;
  margin-top: 12px;
  border: 1px solid rgba(121, 168, 255, 0.34);
  border-radius: 12px;
  background: rgba(79, 140, 255, 0.09);
  color: var(--blue-2);
  font-weight: 800;
}

.guest-empty-state {
  display: grid;
  justify-items: center;
  gap: 12px;
  margin: 28px 8px 110px;
  padding: 38px 22px 26px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(150deg, rgba(27, 52, 88, 0.34), rgba(8, 12, 19, 0.82));
  text-align: center;
}

.guest-state-icon {
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  border: 1px solid rgba(121, 168, 255, 0.48);
  border-radius: 19px;
  background: rgba(79, 140, 255, 0.12);
  color: var(--blue-2);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 1px;
}

.guest-state-icon.chair-icon {
  border-color: rgba(216, 173, 90, 0.48);
  background: rgba(216, 173, 90, 0.1);
  color: var(--gold);
}

.guest-state-icon.chair-icon svg { width: 32px; height: 32px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.guest-empty-state h2 { margin: 4px 0 0; font-size: 21px; }
.guest-empty-state > p { max-width: 420px; margin: 0; color: var(--muted); line-height: 1.65; }
.guest-empty-state > button { width: min(100%, 320px); }

.guest-benefit-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: 100%;
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}

.guest-benefit-list span + span { border-left: 1px solid var(--line); }
.guest-create-intro { padding: 0 4px; font-size: 12px !important; line-height: 1.6; text-align: left !important; }

.auth-prompt-backdrop {
  position: absolute;
  z-index: 130;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(2, 6, 12, 0.76);
  backdrop-filter: blur(10px);
}

.auth-prompt {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 12px;
  width: min(100%, 390px);
  padding: 30px 24px 22px;
  border: 1px solid rgba(121, 168, 255, 0.38);
  border-radius: 24px;
  background: #0b111d;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.55);
  text-align: center;
}

.auth-prompt-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  min-height: 34px !important;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 20px;
}

.auth-prompt-mark {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 17px;
  background: rgba(79, 140, 255, 0.14);
  color: var(--blue-2);
  font-weight: 900;
}

.auth-prompt h2 { margin: 0; }
.auth-prompt .resale-price-field { width: 100%; text-align: left; }
.auth-prompt .resale-settlement { width: 100%; text-align: left; }
.auth-prompt p { margin: 0 0 4px; color: var(--muted); line-height: 1.6; }
.auth-prompt > button:not(.auth-prompt-close) { width: 100%; }
.auth-prompt small { color: var(--muted); font-size: 10px; }
.auth-fields { display: grid; gap: 8px; width: 100%; }
.auth-prompt .return-reason-field,
.auth-fields .return-reason-field { width: 100%; margin-top: 0; text-align: left; }
.auth-fields .return-reason-field small { display: block; margin-top: 4px; }
.auth-mode-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; }
.auth-mode-switch button { border: 1px solid var(--line); border-radius: 12px; background: transparent; color: var(--text); }
.auth-mode-switch button.active { border-color: var(--blue-2); background: rgba(79, 140, 255, 0.12); }
.code-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  width: 100%;
  min-height: 48px;
  padding: 4px 4px 4px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
}
.code-field input {
  width: 100%;
  height: 40px;
  min-height: 40px;
  margin: 0;
  padding: 0 8px 0 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text);
  box-shadow: none;
}
.code-field input:focus { outline: none; }
.code-fetch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 68px;
  height: 36px;
  min-height: 36px !important;
  padding: 0 12px;
  border: 0;
  border-radius: 9px;
  background: rgba(91, 141, 239, 0.2);
  color: var(--blue-2);
  font-size: 13px;
  font-weight: 750;
  line-height: 1;
}
.code-fetch:disabled {
  background: rgba(255, 255, 255, 0.05);
  color: var(--soft);
  cursor: default;
}
body.theme-light .code-field { background: #fff; }
body.theme-light .code-field input { background: transparent; color: var(--text); }
body.theme-light .code-fetch:disabled { background: rgba(23, 33, 49, 0.05); }

.purchase-payment-method {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.purchase-payment-method > span { grid-column: 1 / -1; color: var(--muted); font-size: 11px; }
.purchase-payment-method button { display: grid; gap: 3px; min-height: 54px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 12px; background: transparent; color: var(--text); text-align: left; }
.purchase-payment-method button.selected { border-color: var(--blue-2); background: rgba(79, 140, 255, 0.12); }
.purchase-payment-method button small { color: var(--muted); font-size: 10px; }
.purchase-demo-note { margin: 4px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; text-align: center; }

body.theme-light .guest-empty-state,
body.theme-light .auth-prompt {
  background: #f8fbff;
}

@media (max-width: 520px) {
  .home-onboarding-actions { justify-content: stretch; }
  .home-onboarding-actions button { width: 100%; }
  .guest-benefit-list { grid-template-columns: 1fr; gap: 9px; }
  .guest-benefit-list span + span { padding-top: 9px; border-top: 1px solid var(--line); border-left: 0; }
}
.screen-market .market-waterfall { column-count: 1; }

.purchase-success-card { display: grid; gap: 12px; margin: 20px 0; padding: 22px; border: 1px solid rgba(101,214,161,.42); border-radius: 20px; background: linear-gradient(145deg, rgba(27,91,70,.25), rgba(12,19,31,.7)); }
.purchase-success-mark { justify-self: start; padding: 6px 10px; border-radius: 99px; background: rgba(101,214,161,.13); color: var(--green); font-size: 12px; font-weight: 850; }
.purchase-success-card h2 { margin: 0; font-size: 22px; }
.purchase-success-card > p { margin: 0 0 4px; color: var(--soft); font-size: 13px; line-height: 1.6; }
.purchase-success-card > div { display: flex; justify-content: space-between; gap: 12px; padding-top: 11px; border-top: 1px solid var(--line); }
.purchase-success-card > div span { color: var(--muted); font-size: 12px; }
.purchase-success-card > div strong { font-size: 13px; text-align: right; }
.purchase-success-actions { display: grid; gap: 9px; padding-bottom: 100px; }

.submission-target-search { display: grid; gap: 6px; margin-bottom: 14px; }
.submission-target-search span { color: var(--muted); font-size: 12px; }
.submission-target-search input { min-height: 44px; padding: 0 13px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--text); }
.submission-target-list { display: grid; padding-bottom: 100px; }
.submission-target-list > button { display: grid; grid-template-columns: 48px minmax(0,1fr) auto; gap: 12px; align-items: center; padding: 13px 2px; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--text); text-align: left; }
.submission-target-list img { width: 48px; height: 48px; border-radius: 14px; object-fit: cover; }
.submission-target-list div { display: grid; gap: 3px; }
.submission-target-list strong { font-size: 14px; }
.submission-target-list span,
.submission-target-list small { color: var(--muted); font-size: 12px; }
.submission-target-list b { color: var(--blue-2); font-size: 20px; font-weight: 400; }

.issue-form { display: grid; gap: 15px; padding-bottom: 100px; }
.issue-form label { display: grid; gap: 7px; }
.issue-form label > span { color: var(--muted); font-size: 12px; }
.issue-form select,
.issue-form textarea { width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--text); font: inherit; }
.issue-form select { min-height: 44px; }
.issue-form textarea { min-height: 130px; resize: vertical; }
.issue-form > p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.issue-upload { border: 1px dashed var(--line-strong); border-radius: 12px; background: transparent; color: var(--blue-2); }
.issue-success { display: grid; gap: 12px; margin-top: 28px; padding: 24px; border: 1px solid rgba(101,214,161,.4); border-radius: 20px; background: rgba(101,214,161,.07); }
.issue-success > span { color: var(--green); font-size: 12px; font-weight: 850; }
.issue-success h2 { margin: 0; font-size: 21px; }
.issue-success p { margin: 0 0 8px; color: var(--soft); font-size: 13px; line-height: 1.6; }

.feedback-page { display: flex; flex-direction: column; min-height: 100%; }
.feedback-form { display: flex; flex-direction: column; gap: 16px; flex: 1; }
.feedback-form fieldset { display: grid; margin: 0; padding: 0; border: 0; }
.feedback-form legend,
.feedback-form label > span { display: flex; gap: 4px; align-items: center; margin-bottom: 8px; color: var(--text); font-size: 14px; font-weight: 700; }
.feedback-form legend i,
.feedback-form label > span i { color: #ff5d6c; font-style: normal; }
.feedback-form fieldset button { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 52px; padding: 0 2px; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--text); font: inherit; text-align: left; }
.feedback-form fieldset button b { color: var(--blue-2); font-weight: 500; }
.feedback-form textarea { width: 100%; min-height: 112px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.04); color: var(--text); font: inherit; resize: vertical; }
.feedback-shots { display: flex; gap: 8px; }
.feedback-shots span { position: relative; width: 72px; height: 72px; }
.feedback-shots img { width: 72px; height: 72px; border-radius: 10px; object-fit: cover; }
.feedback-shots button { position: absolute; top: -6px; right: -6px; width: 22px; height: 22px; border: 0; border-radius: 50%; background: rgba(8,11,18,.82); color: #fff; font-size: 14px; line-height: 1; }
.feedback-upload { display: grid; }
.feedback-upload span { color: var(--muted) !important; font-weight: 500 !important; }
.feedback-upload.full { opacity: .45; pointer-events: none; }
.feedback-error { min-height: 18px; margin: 0; color: #ff8d98; font-size: 12px; }
.feedback-submit { margin-top: auto; }
.feedback-submit:disabled { opacity: .4; }

.about-app-brand { display: grid; justify-items: center; gap: 8px; padding: 28px 0 26px; }
.about-app-logo { display: grid; width: 84px; height: 84px; place-items: center; border-radius: 22px; background: linear-gradient(180deg, #6ea2ff, #2f62d6); color: #fff; font-size: 28px; font-weight: 800; }
.about-app-brand strong { font-size: 20px; }
.about-app-brand span { color: var(--muted); font-size: 13px; }
.about-app-row { display: grid; grid-template-columns: minmax(0, 1fr) auto 18px; gap: 8px; align-items: center; width: 100%; min-height: 56px; padding: 0 2px; border: 0; border-top: 1px solid var(--line); background: transparent; color: inherit; font: inherit; text-align: left; }
.about-app-row b { color: var(--soft); font-weight: 500; }
.about-app-row i { color: var(--soft); font-style: normal; font-size: 22px; font-weight: 400; }
div.about-app-row { cursor: default; }

.app-toast { position: absolute; left: 50%; bottom: 118px; z-index: 240; padding: 10px 16px; border-radius: 12px; background: rgba(22, 27, 36, .94); color: #fff; font-size: 13px; opacity: 0; pointer-events: none; transform: translate(-50%, 8px); transition: opacity 160ms ease, transform 160ms ease; }
.app-toast.show { opacity: 1; transform: translate(-50%, 0); }

.system-state-demo { margin: 0 0 18px; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.025); }
.system-state-demo-head { display: grid; gap: 10px; margin-bottom: 12px; }
.system-state-demo-head h3 { margin: 0; font-size: 15px; }
.system-state-demo-head > div { display: flex; gap: 6px; }
.system-state-demo-head button { min-height: 32px !important; padding: 0 9px; border: 1px solid var(--line); border-radius: 99px; background: transparent; color: var(--muted); font-size: 11px; }
.system-state-demo-head button.active { border-color: var(--blue-2); color: var(--blue-2); background: rgba(79,140,255,.1); }
.state-loading { display: grid; grid-template-columns: repeat(3,1fr); gap: 7px; }
.state-loading i { height: 38px; border-radius: 8px; background: linear-gradient(90deg, rgba(255,255,255,.04), rgba(255,255,255,.1), rgba(255,255,255,.04)); }
.state-loading span { grid-column: 1 / -1; color: var(--muted); font-size: 12px; }
.state-feedback { display: grid; gap: 6px; }
.state-feedback strong { font-size: 13px; }
.state-feedback span { color: var(--muted); font-size: 12px; line-height: 1.5; }
.state-feedback button { justify-self: start; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 10px; background: transparent; color: var(--blue-2); font-size: 12px; }
.state-feedback.removed strong { color: var(--gold); }

.trade-rule-intro,
.trade-status-dictionary,
.trade-exception-list,
.governance-actions { margin-bottom: 18px; }
.trade-rule-intro { padding: 16px; border: 1px solid rgba(216,173,90,.34); border-radius: 16px; background: rgba(216,173,90,.07); }
.trade-rule-intro strong { color: var(--gold); font-size: 15px; }
.trade-rule-intro p { margin: 7px 0 0; color: var(--soft); font-size: 13px; line-height: 1.6; }
.trade-status-dictionary h3,
.trade-exception-list h3 { margin: 0; padding: 0 2px 10px; font-size: 15px; }
.trade-status-dictionary article { display: grid; grid-template-columns: 74px minmax(0,1fr); gap: 12px; padding: 12px 2px; border-bottom: 1px solid var(--line); }
.trade-status-dictionary article > span { align-self: start; padding: 5px 8px; border: 1px solid rgba(121,168,255,.38); border-radius: 99px; color: var(--blue-2); font-size: 12px; font-weight: 800; text-align: center; }
.trade-status-dictionary article div { display: grid; gap: 4px; }
.trade-status-dictionary strong { font-size: 13px; }
.trade-status-dictionary p { margin: 0; color: var(--muted); font-size: 12px; }
.trade-exception-list { display: grid; padding-bottom: 100px; }
.trade-exception-list div { display: grid; gap: 4px; padding: 12px 2px; border-bottom: 1px solid var(--line); }
.trade-exception-list strong { font-size: 13px; }
.trade-exception-list span { color: var(--muted); font-size: 12px; line-height: 1.5; }
.governance-actions { display: grid; gap: 9px; padding-bottom: 100px; }
.governance-actions p { margin: 2px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.checkout-rules-link { width: 100%; border: 0; background: transparent; color: var(--blue-2); font-size: 12px; font-weight: 800; }
.transfer-safety-note { margin: 0 0 10px; padding: 11px 12px; border-left: 2px solid var(--gold); background: rgba(216,173,90,.07); color: var(--soft); font-size: 12px; line-height: 1.5; }
.king-studio-dashboard { display: grid; gap: 16px; padding: 4px 0 110px; }
.king-studio-welcome { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 16px; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(135deg, rgba(103,159,255,.16), rgba(230,181,76,.08)); }
.king-studio-welcome h2, .king-studio-welcome p { margin: 2px 0; }
.king-studio-welcome button { color: var(--blue); white-space: nowrap; }
.king-studio-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.king-studio-metrics button { min-width: 0; padding: 14px 6px; border-right: 1px solid var(--line); background: rgba(255,255,255,.02); text-align: center; }
.king-studio-metrics button:last-child { border-right: 0; }
.king-studio-metrics strong, .king-studio-metrics span { display: block; }
.king-studio-metrics strong { font-size: 20px; }
.king-studio-metrics span { margin-top: 4px; color: var(--muted); font-size: 11px; }
.king-studio-links { margin: 0; }
.studio-month-records { margin: 0; }
.studio-month-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.studio-month-head h3 { margin: 0; color: var(--blue-2); font-size: 13px; }
.studio-record-filter { position: relative; }
.studio-record-filter > button { padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--text); font-size: 12px; }
.studio-record-filter-menu { position: absolute; z-index: 6; top: calc(100% + 6px); right: 0; display: grid; min-width: 156px; padding: 6px; border: 1px solid var(--line); border-radius: 12px; background: #121a28; box-shadow: 0 12px 28px rgba(0,0,0,.28); }
.studio-record-filter-menu button { display: flex; justify-content: space-between; gap: 12px; width: 100%; padding: 8px 10px; border: 0; border-radius: 8px; background: transparent; color: inherit; font-size: 13px; text-align: left; }
.studio-record-filter-menu button.active { color: var(--blue-2); }
.studio-record-filter-menu b { color: var(--muted); font-weight: 700; }
.studio-month-timeline { padding-bottom: 8px; }
.studio-record-status { margin-right: auto; color: var(--blue-2); font-size: 12px; font-weight: 760; }
.studio-record-reason { margin: 16px 0 0; padding: 10px 12px; border-radius: 12px; background: rgba(8, 14, 24, 0.55); box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28); color: var(--muted); font-size: 13px; line-height: 1.5; }
body.theme-light .studio-record-reason { background: rgba(15, 23, 36, 0.06); box-shadow: 0 6px 16px rgba(20, 32, 51, 0.08); }
.studio-month-records .event-action button { width: auto; margin-left: auto; }
.studio-month-records .event-action button:disabled { opacity: .42; cursor: not-allowed; }
body.theme-light .studio-record-filter-menu { background: #fff; }
.return-reason-field { display: grid; gap: 7px; margin-top: 12px; }
.return-reason-field textarea { min-height: 88px; }
.menu-first-intro { position: fixed; z-index: 90; right: 50%; bottom: 92px; display: grid; width: min(470px, calc(100vw - 54px)); grid-template-columns: minmax(0,1fr) auto; gap: 12px; align-items: center; padding: 13px 14px; border: 1px solid rgba(121,168,255,.42); border-radius: 15px; background: rgba(12,22,38,.96); box-shadow: 0 14px 34px rgba(0,0,0,.34); transform: translateX(50%); }
.menu-first-intro strong { color: var(--blue-2); font-size: 13px; }
.menu-first-intro p { margin: 3px 0 0; color: var(--soft); font-size: 12px; line-height: 1.45; }
.menu-first-intro button { padding: 7px 10px; border: 0; border-radius: 9px; background: rgba(103,159,255,.15); color: var(--blue-2); font-size: 11px; white-space: nowrap; }

/* 2026-07 UX consistency pass */
.menu-first-intro { display: none !important; }

.home-onboarding-card {
  grid-template-columns: minmax(0, 1fr) minmax(210px, auto);
  padding: 13px 44px 13px 15px;
}

.home-onboarding-actions { justify-content: end; }

.epic-sort-control {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  margin: 0 0 14px;
}

.epic-sort-control label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
}

.epic-sort-control select {
  min-height: 40px;
  padding: 0 34px 0 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, .035);
  color: var(--text);
  font: inherit;
  font-size: 12px;
  font-weight: 760;
}

.guest-empty-state { gap: 10px; padding-block: 32px 24px; }
.guest-empty-state > p { color: var(--soft); font-size: 13px; }
.guest-empty-state > button { min-height: 46px; }
.guest-benefit-list span { min-height: 44px; display: grid; place-items: center; padding: 8px 5px; line-height: 1.35; }

.seat-market-progress > div:first-child { font-size: 12px; }
.seat-market-progress b { font-weight: 760; }

@media (max-width: 520px) {
  .home-onboarding-card { grid-template-columns: 1fr; }
  .home-onboarding-actions { justify-content: start; }
}

/* Epic directory differentiation: kings are project archives, knights are action resumes. */
.epic-king-archive-wall {
  gap: 12px;
  padding-top: 0;
}

.epic-king-archive-wall .king-directory-card {
  min-height: 188px;
  gap: 8px;
  padding: 16px;
  border-color: rgba(221, 176, 78, .28);
  background:
    radial-gradient(circle at 92% 8%, rgba(221, 176, 78, .13), transparent 42%),
    linear-gradient(145deg, rgba(35, 31, 23, .78), rgba(13, 18, 28, .94));
}

.epic-king-archive-wall .king-directory-card.is-featured {
  min-height: 214px;
  padding: 20px;
  border-color: rgba(221, 176, 78, .62);
  background:
    radial-gradient(circle at 88% 0%, rgba(237, 193, 94, .23), transparent 48%),
    linear-gradient(125deg, rgba(54, 43, 24, .88), rgba(15, 22, 34, .96));
}

.epic-king-card-kicker {
  color: var(--gold);
  font-size: 9px;
  font-weight: 820;
  letter-spacing: .14em;
}

.epic-king-archive-wall .epic-king-project {
  display: block;
  min-height: auto;
  margin: 1px 0 7px;
  color: var(--text);
  font-size: 18px;
  font-weight: 820;
  line-height: 1.32;
}

.epic-king-archive-wall .king-card-identity {
  grid-template-columns: 34px minmax(0, 1fr);
}

.epic-king-archive-wall .king-card-identity .avatar {
  width: 34px;
  height: 34px;
}

.epic-king-archive-wall .king-directory-card.is-featured .king-card-identity {
  grid-template-columns: 42px minmax(0, 1fr);
}

.epic-king-archive-wall .king-directory-card.is-featured .king-card-identity .avatar {
  width: 42px;
  height: 42px;
}

.epic-king-archive-wall .epic-project-card,
.epic-king-archive-wall .epic-project-card.is-featured {
  min-height: 0;
  padding: 16px;
}

.epic-king-archive-wall .epic-project-card .epic-king-project {
  margin: 0 0 6px;
}

.epic-king-archive-wall .epic-project-card .epic-project-summary {
  display: -webkit-box;
  min-height: 0;
  margin: 0 0 12px;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  font-weight: 460;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.epic-king-archive-wall .epic-project-card .king-card-identity,
.epic-king-archive-wall .epic-project-card.is-featured .king-card-identity {
  grid-template-columns: 34px minmax(0, 1fr);
}

.epic-king-archive-wall .epic-project-card .king-card-identity .avatar,
.epic-king-archive-wall .epic-project-card.is-featured .king-card-identity .avatar {
  width: 34px;
  height: 34px;
}

.epic-king-archive-wall .epic-project-card.is-featured .king-card-identity strong {
  font-size: 14px;
}

.epic-king-archive-wall .epic-project-records {
  display: block;
  min-height: 0;
  margin: 8px 0 0;
  overflow: visible;
  color: var(--soft);
  font-size: 12px;
  line-height: 1.4;
  text-align: left;
  -webkit-line-clamp: unset;
}

.epic-king-archive-wall .king-directory-card footer {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 10px;
  padding-top: 11px;
}

.epic-king-continuity {
  color: var(--soft) !important;
  font-size: 10px !important;
}

.epic-king-archive-wall .king-card-stats {
  gap: 10px;
  justify-content: end;
}

.epic-king-archive-wall .king-card-stats span {
  display: grid;
  justify-items: end;
  gap: 1px;
}

.epic-knight-roster {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
}

.epic-knight-roster .epic-person-card.knight,
.epic-knight-roster .epic-person-card.knight.is-featured {
  display: grid;
  grid-column: auto;
  grid-template-columns: minmax(190px, 1.2fr) minmax(220px, 1fr);
  min-height: 112px;
  gap: 8px 18px;
  align-items: center;
  padding: 14px;
  border-color: rgba(99, 150, 228, .23);
  border-radius: 13px;
  background: linear-gradient(100deg, rgba(40, 76, 125, .19), rgba(12, 18, 28, .56));
}

.epic-knight-roster .epic-person-card.knight.is-featured {
  border-color: rgba(103, 159, 255, .5);
  background: linear-gradient(100deg, rgba(46, 91, 151, .34), rgba(12, 20, 32, .7));
}

.epic-knight-roster .epic-knight-identity,
.epic-knight-roster .epic-person-card.knight.is-featured .epic-knight-identity {
  grid-template-columns: 50px minmax(0, 1fr);
  gap: 12px;
}

.epic-knight-roster .epic-knight-identity .avatar,
.epic-knight-roster .epic-person-card.knight.is-featured .epic-knight-identity .avatar {
  width: 50px;
  height: 50px;
}

.epic-knight-roster .epic-knight-identity strong,
.epic-knight-roster .epic-person-card.knight.is-featured .epic-knight-identity strong {
  font-size: 16px;
}

.epic-knight-roster .epic-knight-identity span {
  display: -webkit-box;
  overflow: hidden;
  color: var(--soft);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 11px;
  line-height: 1.45;
  white-space: normal;
}

.epic-knight-action-stats {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 !important;
  border: 1px solid rgba(99, 150, 228, .18);
  border-radius: 9px;
  background: rgba(4, 10, 18, .32);
}

.epic-knight-action-stats span {
  display: grid;
  justify-items: center;
  gap: 2px;
  padding: 8px 5px;
  color: var(--muted);
  font-size: 9px;
  white-space: nowrap;
}

.epic-knight-action-stats span + span { border-left: 1px solid rgba(99, 150, 228, .16); }
.epic-knight-action-stats b { color: var(--blue-2); font-size: 15px; }

.epic-knight-roster .epic-person-card footer {
  grid-column: 1 / -1;
  align-items: center;
  margin: 0;
  padding-top: 8px;
  border-top: 1px solid rgba(99, 150, 228, .16);
}

.epic-knight-roster .epic-person-card footer > b {
  color: var(--blue-2);
  font-size: 20px;
}

.epic-knight-roster .epic-person-card footer .epic-knight-king-strip {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  min-width: 0;
}

.epic-knight-roster .epic-person-card footer .epic-knight-king-strip > div {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  min-width: auto;
  padding-left: 6px;
}

.epic-knight-roster .epic-person-card footer .epic-knight-king-strip img {
  width: 26px;
  height: 26px;
  margin-left: -6px;
}

.epic-knight-roster .epic-person-card footer .epic-knight-king-strip span {
  display: block;
  overflow: hidden;
  min-width: 0;
  color: var(--soft);
  font-size: 10px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 620px) {
  .epic-knight-roster .epic-person-card.knight,
  .epic-knight-roster .epic-person-card.knight.is-featured {
    grid-template-columns: minmax(0, 1fr);
  }

  .epic-knight-action-stats { grid-column: 1; }
}

/* 2026-08 editorial system refresh */
.phone {
  border-color: rgba(221, 233, 255, .16);
  border-radius: 30px;
  background: var(--phone);
  box-shadow: 0 28px 80px rgba(0, 0, 0, .38);
}

.topbar h1,
.market-topbar-title h1,
.record-topbar h1 {
  font-weight: 680;
  letter-spacing: -.025em;
}

.topbar p,
.market-topbar-title p,
.record-topbar p { color: var(--muted); }

.topbar,
.market-topbar,
.record-topbar { border-bottom-color: var(--line); }

.brand-mark,
.guest-state-icon {
  border-color: var(--line-strong);
  border-radius: 12px;
  background: rgba(255, 255, 255, .035);
  box-shadow: none;
}

button.primary,
.primary,
.event-action button,
.record-action.primary,
.month-card button.primary {
  border-color: transparent;
  background: var(--blue);
  color: #07101f;
  box-shadow: none;
}

button.secondary,
.secondary {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, .025);
  box-shadow: none;
}

.badge.gold,
.content-access-pill.gold,
.content-access-pill.restricted {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, .035);
  color: var(--muted);
}

.home-onboarding-card {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  padding: 15px 16px;
  border: 0;
  border-left: 2px solid var(--blue);
  border-radius: 8px;
  background: rgba(91, 141, 239, .065);
  box-shadow: none;
}

.home-onboarding-card strong {
  max-width: 34rem;
  font-size: 14px;
  font-weight: 620;
  line-height: 1.5;
}

.home-onboarding-actions { justify-content: flex-end; }
.home-onboarding-actions button { min-height: 38px; padding-inline: 13px; }

.live-record,
.epic-person-card,
.month-card,
.seat-certificate-card,
.profile-card,
.settings-group,
.guest-empty-state,
.storage-summary,
.storage-breakdown {
  border-color: var(--line);
  border-radius: 14px;
  box-shadow: none;
}

.live-record {
  padding-inline: 4px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

.live-record h3 {
  font-weight: 660;
  letter-spacing: -.018em;
}

/* Compact record metadata: identity stays readable while signals and actions share one baseline. */
.live-record-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin-top: 9px;
}

.live-record-footer .live-signals,
.live-record-footer .event-action {
  margin-top: 0;
}

.live-record-footer .live-signals {
  flex-wrap: nowrap;
  min-width: 0;
  overflow: hidden;
}

.live-record-footer .live-signals span {
  flex: 0 0 auto;
  min-height: 24px;
  padding: 3px 8px;
  white-space: nowrap;
}

.live-record-footer .event-action {
  gap: 7px;
  white-space: nowrap;
}

.app .live-record-footer .event-action button {
  min-width: 48px;
  min-height: 32px;
  padding: 0 12px;
}

.live-record-footer .content-access-pill {
  min-height: 24px;
  padding: 3px 8px;
}

@media (max-width: 520px) {
  .live-record-footer { gap: 7px; }
  .live-record-footer .live-signals { gap: 5px; }
  .live-record-footer .live-signals span:nth-last-child(n + 4) { display: none; }
  .record-flow-page .live-record-footer .live-signals span:nth-last-child(n + 4) { display: inline-flex; }
}

.record-flow-page .live-record {
  padding-inline: 0;
  border-bottom: 0;
}

.record-flow-page .live-record h3 {
  margin: 0 0 12px;
}

.record-flow-page .detail-meta-row {
  margin-bottom: 10px;
}

.record-flow-page .live-record-footer .live-signals {
  flex-wrap: wrap;
  overflow: visible;
}

.record-archive {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  min-height: 36px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
}

.record-archive-icon {
  display: grid;
  width: 22px;
  height: 22px;
  flex: none;
  place-items: center;
  color: var(--blue-2);
}

.record-archive-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.record-archive-name {
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.record-archive-size {
  margin-left: auto;
  color: var(--soft);
  font-size: 12px;
  font-weight: 550;
  white-space: nowrap;
}

.live-record .record-edited-note {
  margin: 8px 0 0;
  color: var(--soft);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.45;
}

.record-flow-page .content-section {
  border-top: 0;
}

.comment-head time {
  margin-left: auto;
  color: var(--soft);
  font-size: 11px;
  font-weight: 650;
  white-space: nowrap;
}

.comment-reply-name {
  color: var(--blue-2);
  font-weight: 760;
}

.comment-row-actions {
  display: flex;
  gap: 12px;
  margin-top: 6px;
}

.comment-reply-action,
.comment-row-actions button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--soft);
  font-size: 12px;
  font-weight: 700;
}

.live-context,
.live-signals,
.event-action { justify-content: flex-start; }

.event-action { gap: 12px; }
.event-action button { margin-left: auto; }

.seat-market-tabs {
  border-color: var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, .018);
}

.seat-market-tabs button { text-align: left; }
.seat-market-tabs button.active {
  background: rgba(91, 141, 239, .14);
  box-shadow: inset 0 -2px var(--blue);
}

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

.bid-seat-picker { display: grid; gap: 8px; margin-top: 8px; }
.bid-seat-picker p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.bid-seat-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  text-align: left;
}
.bid-seat-option span { color: var(--muted); font-size: 12px; }
.bid-seat-option.is-selected { border-color: rgba(216, 173, 90, 0.7); }
.bid-seat-option:disabled { opacity: 0.5; }

.month-card.seat-market-card {
  border-color: var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, .022);
  box-shadow: none;
}

.month-card.seat-market-card:hover { border-color: rgba(91, 141, 239, .36); }
.seat-market-card .seat-ticket-number { display: none; }
.seat-ticket-stub {
  border-color: var(--line);
  background: rgba(255, 255, 255, .018);
}

.epic-person-card,
.epic-person-card.featured,
.epic-person-card.is-featured,
.epic-knight-roster .epic-person-card.knight,
.epic-knight-roster .epic-person-card.knight.is-featured {
  border-color: var(--line);
  background: rgba(255, 255, 255, .022);
  box-shadow: none;
}

.epic-person-card:hover { border-color: rgba(91, 141, 239, .34); }
.epic-person-card h3,
.epic-person-card strong { font-weight: 650; }

.king-directory-card,
.epic-king-archive-wall .king-directory-card,
.epic-king-archive-wall .king-directory-card.is-featured,
.king-directory-grid .king-directory-card.is-featured {
  border-color: var(--line);
  background: rgba(255, 255, 255, .022);
  box-shadow: none;
}

.king-directory-card:hover {
  border-color: rgba(91, 141, 239, .34);
  background: rgba(91, 141, 239, .055);
}

.king-directory-card footer b { color: var(--text); }
.king-directory-card footer .king-guard-count b { color: var(--blue-2); }

.epic-knight-action-stats {
  border: 0;
  border-left: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

.epic-knight-action-stats span + span { border-left-color: var(--line); }
.epic-knight-roster .epic-person-card footer { border-top-color: var(--line); }

.guest-empty-state {
  justify-items: start;
  min-height: 0;
  padding: 28px 4px 20px;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  text-align: left;
}

.guest-empty-state h2 {
  font-size: 24px;
  font-weight: 660;
  letter-spacing: -.025em;
}

.guest-empty-state > p { max-width: 34rem; }
.guest-empty-state > button { width: auto; min-width: 190px; }
.guest-benefit-list { justify-content: flex-start; width: 100%; }
.guest-benefit-list span { text-align: left; }

.profile-hero,
.account-hero,
.settings-group {
  background: transparent;
  box-shadow: none;
}

.settings-group { border-color: var(--line); }
.settings-row + .settings-row { border-top-color: var(--line); }

.storage-archive-note { display: none !important; }

.bottom-tabs {
  border-color: var(--line-strong);
  background: rgba(10, 14, 20, .94);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .32);
  backdrop-filter: blur(18px);
}

.bottom-tabs .tab.active {
  background: rgba(91, 141, 239, .16);
  color: var(--text);
}

@media (max-width: 620px) {
  .home-onboarding-card { grid-template-columns: minmax(0, 1fr); }
  .home-onboarding-actions { justify-content: flex-start; }
  .guest-empty-state > button { width: 100%; }
}

/* Shared primary tab pattern: independent, tactile segments like Market. */
:is(
  .epic-tabs,
  .knight-resume-tabs,
  .submission-tabs,
  .following-tabs,
  .screen-seats .seat-mode-tabs,
  .seat-stage-tabs
) {
  display: grid;
  gap: 8px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

:is(
  .epic-tabs,
  .knight-resume-tabs,
  .submission-tabs,
  .following-tabs,
  .screen-seats .seat-mode-tabs,
  .seat-stage-tabs
) > button {
  min-height: 58px;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, .022);
  color: var(--muted);
  box-shadow: none;
}

:is(
  .epic-tabs,
  .knight-resume-tabs,
  .submission-tabs,
  .following-tabs,
  .screen-seats .seat-mode-tabs,
  .seat-stage-tabs
) > button.active {
  border-color: rgba(141, 179, 255, .68);
  background: rgba(91, 141, 239, .16);
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(91, 141, 239, .12);
}

.screen-seats .seat-mode-tabs button + button,
.screen-seats .seat-mode-tabs .seat-mode-sold,
.screen-seats .seat-mode-tabs .seat-mode-composite {
  border-left: 1px solid var(--line);
}

.screen-seats .seat-mode-tabs .seat-mode-sold {
  min-height: 58px;
  border-radius: 14px;
}

.epic-tabs,
.knight-resume-tabs,
.submission-tabs,
.screen-seats .seat-mode-tabs,
.seat-stage-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.screen-seats .seat-mode-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.screen-seats .trade-stage-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }

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

@media (max-width: 520px) {
  :is(
    .epic-tabs,
    .knight-resume-tabs,
    .submission-tabs,
    .following-tabs,
    .screen-seats .seat-mode-tabs,
    .seat-stage-tabs
  ) { gap: 6px; }

  :is(
    .epic-tabs,
    .knight-resume-tabs,
    .submission-tabs,
    .following-tabs,
    .screen-seats .seat-mode-tabs,
    .seat-stage-tabs
  ) > button {
    min-height: 52px;
    padding-inline: 8px;
  }
}

/* Final light-theme authority — intentionally last in the stylesheet. */
body.theme-light {
  --bg: #edf1f5;
  --phone: #fbfcfd;
  --surface: #ffffff;
  --surface-2: #f4f6f9;
  --surface-3: #e9eef4;
  --line: rgba(30, 47, 70, .12);
  --line-strong: rgba(30, 47, 70, .22);
  --text: #172131;
  --muted: #56657a;
  --soft: #7a8798;
  --blue: #286fd1;
  --blue-2: #2467bd;
  --gold: #9a6b1d;
  --gold-soft: rgba(154, 107, 29, .1);
  --green: #258866;
  color: var(--text);
  background: linear-gradient(180deg, #e8edf4 0, #f3f5f8 420px, #edf1f5 100%);
}

body.theme-light .phone {
  border-color: rgba(30, 47, 70, .16);
  background: var(--phone);
  box-shadow: 0 24px 64px rgba(34, 50, 72, .14), inset 0 1px rgba(255, 255, 255, .94);
}

body.theme-light :is(.topbar, .market-topbar, .record-topbar),
body.theme-light .app.header-scrolled .topbar { background: rgba(251, 252, 253, .94); }

body.theme-light :is(
  .king-social-profile, .king-info-panel, .month-card, .seat-market-card,
  .seat-ticket-stub, .seat-certificate, .seat-certificate-card, .holding-card,
  .epic-person-card, .king-directory-card, .knight-resume-hero,
  .knight-resume-metrics, .knight-current-guards, .knight-action-row,
  .seat-dashboard, .seat-stage-panel, .transfer-state-panel, .settings-group,
  .profile-hero, .account-hero, .storage-summary, .storage-breakdown,
  .purchase-success-card, .checkout-seat, .auth-prompt, .quick-create-sheet,
  .prototype-role-sheet
) {
  border-color: var(--line);
  background-color: var(--surface);
  background-image: none;
  box-shadow: none;
}

body.theme-light :is(
  .seat-market-tabs, .epic-tabs, .knight-resume-tabs, .submission-tabs,
  .following-tabs, .screen-seats .seat-mode-tabs, .seat-stage-tabs
) > button {
  border-color: var(--line);
  background: #fff;
  color: var(--muted);
}

body.theme-light :is(
  .seat-market-tabs, .epic-tabs, .knight-resume-tabs, .submission-tabs,
  .following-tabs, .screen-seats .seat-mode-tabs, .seat-stage-tabs
) > button.active {
  border-color: rgba(40, 111, 209, .52);
  background: #e9f2ff;
  color: #174f99;
  box-shadow: inset 0 0 0 1px rgba(40, 111, 209, .06);
}

body.theme-light :is(button.primary, .primary, .event-action button, .record-action.primary) {
  border-color: transparent;
  background: var(--blue);
  color: #fff;
}

body.theme-light :is(button.secondary, .secondary) {
  border-color: var(--line-strong);
  background: #fff;
  color: var(--text);
}

body.theme-light .bottom-tabs {
  border-color: rgba(30, 47, 70, .18);
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 10px 30px rgba(34, 50, 72, .12);
}

body.theme-light .bottom-tabs .tab { color: #69778a; }
body.theme-light .bottom-tabs .tab.active { background: #e7f0fc; color: #174f99; }
body.theme-light :is(input, textarea, select) { border-color: var(--line-strong); background: #fff; color: var(--text); }
body.theme-light .home-onboarding-card { background: #eef5ff; }
body.theme-light .home-guide-link { color: #68778a; }

.bottom-tabs.king-nav { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.king-studio-metrics.metrics-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.king-studio-metrics.metrics-5 button { padding: 12px 2px; }
.king-studio-metrics.metrics-5 strong { font-size: 16px; }
.king-studio-metrics.metrics-5 span { font-size: 10px; line-height: 1.25; }
.interaction-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
button.submission-card { width: 100%; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.comment-located { border-radius: 12px; background: rgba(91, 141, 239, 0.1); box-shadow: inset 0 0 0 1px rgba(91, 141, 239, 0.85); }
.identity-switch-row > b { font-size: 13px; font-weight: 700; color: var(--blue-2); }
.revenue-screen { display: grid; gap: 14px; padding: 4px 0 110px; }
.revenue-hero { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.revenue-hero article, .revenue-chart-card, .revenue-recent { padding: 14px 10px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255, 255, 255, 0.02); }
.revenue-hero span { display: block; color: var(--muted); font-size: 11px; }
.revenue-hero strong { display: block; margin-top: 6px; font-size: 20px; }
.ledger-withdraw-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); margin-bottom: 12px; }
.ledger-withdraw-row .ledger-history {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  padding: 14px 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.ledger-withdraw-row .ledger-history > span { min-width: 0; }
.ledger-withdraw-row .ledger-history i,
.ledger-withdraw-row .ledger-history em { display: block; font-style: normal; }
.ledger-withdraw-row .ledger-history i { color: var(--muted); font-size: 11px; }
.ledger-withdraw-row .ledger-history em { margin-top: 6px; color: var(--text); font-size: 14px; font-weight: 600; }
.ledger-withdraw-row .ledger-history b { flex: none; color: var(--soft); font-size: 22px; font-weight: 400; }
.revenue-chart-card h3, .revenue-recent h3 { margin: 0 0 12px; font-size: 14px; }
.revenue-legend { display: flex; gap: 14px; margin-bottom: 10px; color: var(--muted); font-size: 11px; }
.revenue-legend i { display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 2px; vertical-align: middle; }
.revenue-legend .sub, .revenue-chart-bars .sub { background: #5b8def; }
.revenue-legend .seat, .revenue-chart-bars .seat { background: #d8ad5a; }
.revenue-chart { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; height: 132px; align-items: end; }
.revenue-chart-col { display: grid; grid-template-rows: 1fr auto; gap: 6px; height: 100%; }
.revenue-chart-bars { display: flex; align-items: flex-end; justify-content: center; gap: 3px; height: 100%; }
.revenue-chart-bars i { display: block; width: 14px; min-height: 4px; border-radius: 3px 3px 0 0; }
.revenue-chart-col span { color: var(--muted); font-size: 10px; text-align: center; }
.revenue-recent-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.revenue-recent-row strong, .revenue-recent-row span { display: block; }
.revenue-recent-row span { margin-top: 3px; color: var(--muted); font-size: 12px; }
.revenue-recent-row b { font-size: 14px; }
.revenue-all { width: 100%; }
.revenue-debug { display: grid; gap: 8px; padding: 12px; border: 1px dashed var(--line-strong); border-radius: 14px; }
.revenue-debug > span { color: var(--muted); font-size: 11px; font-weight: 700; }
.revenue-debug > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.revenue-debug button { min-height: 36px; padding: 0 8px; border: 1px solid var(--line); border-radius: 10px; background: transparent; color: var(--soft); font-size: 12px; }
.revenue-debug button.active { border-color: rgba(121,168,255,.65); background: rgba(79,140,255,.14); color: var(--text); }

.app:not(.has-bottom-nav) {
  padding-bottom: 28px;
}

.app:not(.has-bottom-nav) :is(
  .transfer-state-panel,
  .seat-tab-content,
  .archived-holdings,
  .global-results,
  .profile-last-group,
  .settings-detail,
  .storage-actions,
  .king-resale-offers,
  .knight-holder-list,
  .chronicle-records,
  .archive-timeline,
  .project-picker-groups,
  .content-state-screen,
  .project-timeline,
  .message-list,
  .king-chronicle-months,
  .archived-month-timeline,
  .seat-content-list,
  .knight-fund-ledger,
  .knight-fund-donation,
  .king-value-list,
  .seat-month-timeline,
  .king-project-list,
  .recommendation-feed,
  .recommendation-snap-feed,
  .recommendation-story,
  .record-flow-page,
  .resale-form,
  .resale-history,
  .submission-list,
  .king-home-settings-form,
  .my-chronicle-list,
  .epic-list,
  .epic-directory-view,
  .knight-linked-list,
  .knight-action-list,
  .concept-guide,
  .purchase-success-actions,
  .submission-target-list,
  .issue-form,
  .governance-actions,
  .king-studio-dashboard,
  .revenue-screen
) {
  padding-bottom: 28px;
}

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

.pay-method-card h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.28;
}

.pay-method-card strong + p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}
