/* Approved direction 1, 2026-10-06.
   Tokens and geometry come from output/admin-directions-v2/design.css.
   Base glow follows the approved composition; a separate compositor layer
   adds owner-requested drifting mist and directional navigation feedback. */
:root {
  color-scheme: dark;
  --bg: #010805;
  --panel: #06170e;
  --panel2: #0e281c;
  --text: #f2f8f5;
  --muted: #a0b5aa;
  --green: #70e8ba;
  --accent: #70e8ba;
  --red: #f4a4a9;
  --line: #a8e2c626;
  --border: var(--line);
  --glass-solid: #102c1f;
  --glass-fill: linear-gradient(160deg,#1c3d309c,#071c13c9);
  --glass-edge: #c4ffdb32;
  --glass-shadow: inset 0 1px 0 #d2ffe24a, 0 12px 24px #01251377;
  --glass-blur: blur(24px) saturate(1.3);
  --glass-radius: 22px;
  --tg-header: #010805;
  --tg-bottom: #069960;
  --emerald-surface: linear-gradient(145deg,#04120cc7,#06170ebb);
}
body {
  font-family: Manrope, -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  isolation: isolate;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse 130% 50% at 50% 108%,#3de5a0 0,#069960 33%,#025033 63%,transparent 100%),linear-gradient(#010302 16%,#001008 66%,#045a34 100%);
}
.card,.metric,.wallet-card,.quick-action {
  background: var(--emerald-surface);
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 #ffffff05;
  border-radius: 22px;
}
.topbar {
  background: #010805ed;
  border-color: #a8e2c60c;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.topbar-logo,.workspace-avatar {
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  object-fit: contain;
}
.topbar-logo { width: 69px; height: 34px; }
.top-actions { gap: 9px; }
.top-actions .icon-button {
  width: 36px; height: 40px; min-height: 40px; min-width: 36px;
  border: 0; background: none; box-shadow: none; color: #9bafa6;
}
.top-actions .icon-button .ui-icon { width: 19px; height: 19px; }
.top-actions .user-avatar { width: 28px; height: 28px; font-size: 11px; }
.console-connection { display: inline-flex; align-items: center; gap: 5px; font-size: 9px; color: #a0b5aa; white-space: nowrap; }
.console-connection i { width: 5px; height: 5px; border-radius: 50%; background: #bdc4a2; }
.console-connection[data-state=ready] i { background: #70e8ba; box-shadow: 0 0 8px #71ecb755; }
.console-connection[data-state=stale] i { background: #f4bd8e; box-shadow: none; }
.sidebar { background: #010b079c; border-right: 1px solid #a8e2c619; }
.workspace { border-color: #a8e2c626; }
.content { padding-top: 24px; }
.page-heading { align-items: center; gap: 12px; }
.page-heading h1 { letter-spacing: -1px; }
.page-controls { gap: 7px; }
.select-control,.secondary-button {
  background: #ffffff09;
  border-color: var(--line);
  box-shadow: none;
  color: #c9d9d0;
}
.select-control { border-radius: 13px; font-size: 11px; min-height: 40px; padding: 7px 10px; }
.primary-button { background: linear-gradient(145deg,#258c60,#196444); border-color: #a8e2c637; }
.hero-card {
  background: radial-gradient(ellipse at 96% 0,#10694550,transparent 75%),var(--emerald-surface);
  border-color: var(--line);
  border-radius: 22px;
  box-shadow: inset 0 1px 0 #bef7d40e;
  padding: 22px 24px 0;
}
.hero-card::before,.hero-card::after { content: none; }
.hero-label { justify-content: space-between; font-size: 12px; font-weight: 400; color: #becfc5; }
.hero-label .ui-icon { width: 19px; height: 19px; color: #90bdab; }
.hero-amount { margin: 4px 0 0; font-size: 42px; font-weight: 600; line-height: 1.4; letter-spacing: -1.6px; }
.hero-amount small { color: #adbbb4; font-size: 11px; margin-left: 4px; }
.hero-profit { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 3px 0 16px; font-size: 11px; line-height: 1.7; color: var(--muted); }
.hero-profit strong { font-size: 11px; color: #70e8ba; font-weight: 600; }
.hero-profit .negative-text { color: var(--red); }
.hero-note { font-size: 11px; color: var(--muted); margin-bottom: 12px; }
.hero-footer { margin-top: auto; padding: 0; border-top: 1px solid #a1c8b31c; }
.hero-footer>.subtle-link { flex: 1; justify-content: space-between; color: #d9e9e1; min-height: 43px; font-size: 11px; padding: 10px 0; }
.hero-footer .ui-icon { width: 14px; height: 14px; }
.hero-grid { gap: 13px; margin-bottom: 18px; }
.wallet-card { padding: 14px 15px; }
.wallet-heading strong { font-weight: 600; }
.wallet-meta { border-color: var(--line); }
.wallet-meta strong { color: #c5dfd1; }
.overview-totals { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0; padding: 0 6px; margin-bottom: 19px; }
.overview-totals>div { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.overview-totals>div+div { border-left: 1px solid var(--line); padding-left: 19px; }
.overview-totals>div>span { display: flex; align-items: center; gap: 6px; font-size: 10px; color: var(--muted); }
.overview-totals .ui-icon { width: 12px; height: 12px; color: #adcbba; }
.overview-totals strong { font-size: 20px; font-weight: 600; letter-spacing: -.4px; overflow-wrap: anywhere; }
.overview-totals small { font-size: 9px; color: var(--muted); font-weight: 400; white-space: nowrap; }
.section-label { margin: 0 3px 11px; min-height: 20px; display: flex; align-items: center; }
.section-label h2 { font-size: 12px; font-weight: 600; letter-spacing: -.2px; }
.quick-actions { gap: 8px; margin-bottom: 17px; }
.quick-action { background: #02211499; padding: 10px 13px; min-height: 63px; gap: 12px; border-radius: 17px; flex-wrap: nowrap; align-items: center; }
.quick-action>.ui-icon:first-child { width: 34px; height: 34px; padding: 7px; background: #ffffff08; border-radius: 11px; color: #93e5c1; }
.quick-action>span { flex: 1; }
.quick-action strong { font-size: 12px; font-weight: 600; }
.quick-action small { font-size: 10px; margin-top: 2px; }
.quick-action small .status-dot { width: 4px; height: 4px; margin-right: 5px; background: #70e8ba; }
.quick-action>.ui-icon:last-child { display: block; width: 14px; height: 14px; color: #9fbdae; }
.players-shortcut { background: transparent; border-radius: 14px; width: 100%; display: flex; align-items: center; gap: 12px; text-align: left; padding: 0 3px; min-height: 44px; margin-bottom: 20px; }
.players-shortcut>span:nth-child(2) { flex: 1; min-width: 0; }
.players-shortcut strong { font-size: 11px; font-weight: 600; display: block; }
.players-shortcut small { display: block; font-size: 10px; color: var(--muted); margin-top: 1px; }
.players-shortcut>.ui-icon { width: 16px; height: 16px; color: #9cc6b1; }
.players-stack { display: flex; align-items: center; padding-left: 8px; }
.players-stack .person-avatar { width: 28px; height: 28px; margin-left: -8px; border: 2px solid #144433; font-size: 10px; }
.players-stack>.ui-icon { color: #93d2b4; width: 26px; height: 26px; }
.overview-details { margin-bottom: 16px; }
.overview-details>summary { padding: 16px 18px; font-size: 12px; color: #c5dace; cursor: pointer; }
.overview-extra { padding: 0 15px; grid-template-columns: 1fr 1fr; margin-top: 0; }
.chart-details>summary { color: #c5dace; font-size: 12px; }
.activity-card { background: transparent; box-shadow: none; border: 0; border-radius: 0; overflow: visible; }
.activity-toolbar { padding: 0; margin: 0 0 20px; }
.activity-toolbar .segmented { width: 100%; background: #ffffff07; border: 1px solid var(--line); min-height: 47px; border-radius: 26px; padding: 4px; }
.activity-toolbar .segmented button { min-height: 37px; font-size: 11px; border-radius: 23px; color: var(--muted); }
.activity-toolbar .segmented button[aria-selected=true] { color: #e0f7eb; font-weight: 600; }
.segmented-selection { border-radius: 24px; background: linear-gradient(150deg,#8affc822,#80d7ae10); border: 1px solid #b3fbd521; box-shadow: inset 0 1px 0 #fff2,0 2px 6px #0002; }
.activity-caption { padding: 0 3px 11px; font-size: 11px; color: #ceddd4; }
.live-caption { font-size: 9px; color: var(--muted); gap: 5px; }
.live-caption .status-dot { background: #70e8ba; width: 5px; height: 5px; box-shadow: 0 0 8px #71ecb755; }
.activity-summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 0 5px; margin: 0 0 22px; }
.activity-summary-label { display: block; font-size: 11px; color: var(--muted); }
.activity-summary-value { font-size: 32px; letter-spacing: -1px; font-weight: 600; margin-top: 4px; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.activity-summary-value small { color: #adbbb4; font-size: 10px; font-weight: 400; letter-spacing: 0; margin-left: 5px; }
.activity-summary-count { border-radius: 15px; background: #79daab0e; border: 1px solid #88d6b321; padding: 6px 9px; color: #b3d8c5; font-size: 9px; white-space: nowrap; }
.activity-list-surface { border-radius: 22px; background: var(--emerald-surface); border: 1px solid var(--line); padding: 0 13px; overflow: hidden; }
.activity-entry { gap: 10px; border-top: 1px solid #9bc4b01a; padding: 0; min-height: 75px; background: none; }
.activity-entry:first-child { border-top: 0; }
.activity-entry>.profile-shortcut { padding: 0; margin-left: 0; width: 40px; height: 44px; min-width: 40px; }
.activity-entry .person-avatar { width: 40px; height: 40px; border: 1px solid #e0ffee36; }
.activity-row { gap: 10px; border: 0; padding: 12px 0; min-height: 75px; }
.activity-row>.ui-icon { display: none; }
.activity-person strong { font-size: 13px; font-weight: 600; letter-spacing: 0; }
.activity-person small { font-size: 10px; line-height: 1.5; margin-top: 3px; }
.activity-person .activity-origin { display: inline; font-size: inherit; line-height: inherit; margin: 0; color: inherit; }
.activity-provider-icon { width: 11px; height: 11px; border-radius: 4px; margin-right: 4px; vertical-align: -1px; }
.activity-meta-dot { padding: 0 4px; color: #80a48f; }
.activity-value { min-width: 65px; font-variant-numeric: tabular-nums; }
.activity-value strong { font-size: 14px; font-weight: 600; letter-spacing: -.2px; }
.activity-value>small { font-size: 9px; }
.activity-value .activity-time { font-size: 10px; margin-top: 4px; color: #a0b5aa; }
.activity-value .state-completed { display: none; }
.activity-value .state-open { color: #70e8ba; }
.activity-day { padding: 14px 0 4px; font-size: 10px; font-weight: 600; color: #b9cfc2; }
.activity-day:first-child { padding-top: 11px; }
.activity-more { padding: 16px 0; }
.activity-more .secondary-button { font-size: 11px; }
.game-filters { display: flex; gap: 7px; margin: 0 0 16px; }
.game-filters button { border: 1px solid #a5cdb318; border-radius: 20px; min-height: 36px; padding: 7px 14px; font-size: 10px; color: #a6beaf; background: #ffffff03; }
.game-filters button[aria-pressed=true] { background: #9aeec11d; color: #d9f8e8; border-color: #a1f6c334; }
.game-summary { display: flex; align-items: center; gap: 12px; padding: 11px 13px; margin-bottom: 16px; background: var(--emerald-surface); border: 1px solid var(--line); border-radius: 20px; }
.game-summary>.ui-icon { color: #70e8ba; width: 34px; height: 34px; padding: 5px; background: #4ad3920d; border-radius: 12px; }
.game-summary strong { display: block; font-size: 12px; font-weight: 600; }
.game-summary small { display: block; font-size: 10px; color: var(--muted); margin-top: 3px; }
.game-summary>span:last-child { margin-left: auto; color: #b3d8c5; font-size: 10px; white-space: nowrap; }
.game-section-title { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 18px 3px 11px; }
.game-section-title h2 { font-size: 12px; font-weight: 600; }
.game-section-title>span { color: var(--muted); font-size: 10px; }
.game-open-list { display: grid; gap: 9px; }
.game-open-list .activity-entry { border: 1px solid var(--line); border-radius: 19px; padding: 0 13px; min-height: 74px; background: var(--emerald-surface); }
.game-open-list .activity-row { min-height: 74px; }
.game-open-list .activity-value .activity-time { display: inline-block; margin-left: 6px; font-size: 9px; }
.game-open-list .activity-value .state-open { display: inline-block; }
.game-finished-list { background: var(--emerald-surface); border: 1px solid var(--line); border-radius: 22px; padding: 0 13px; }
.activity-game-badge { display: grid; place-items: center; position: absolute; bottom: 0; right: -2px; width: 18px; height: 18px; border-radius: 6px; border: 2px solid #0d2119; background: #305c44; color: #c0f8dd; pointer-events: none; }
.activity-game-badge .ui-icon { width: 11px; height: 11px; }
.profile-shortcut { position: relative; }
.empty { background: var(--emerald-surface); border: 1px solid var(--line); border-radius: 22px; }
.sheet { --panel: #10281d; background: linear-gradient(150deg,#b7e5c211,#ffffff02),#10271ff5; border-color: #bbebcf35; }
.sheet input,.sheet select,.sheet textarea { background: #06170e; color: var(--text); border-color: #c1eacf30; }
.sheet::backdrop { background: #010b0690; }
.search { background: #06170ec9; border-color: #a8e2c630; }
.info-banner,.notice { background: #0b2c1be8; border-color: #a8e2c62c; color: #c4ddce; }
.history-notice,.stale-detail { background: #183124; color: #c9e2d2; }
.profile-shortcut:focus-visible { outline-color: var(--accent); }
.footer-note { font-size: 10px; }
@media(min-width:761px) {
  .content { max-width: 1180px; }
  .hero-rail { align-content: stretch; }
  .overview-totals { max-width: 660px; }
  .quick-actions { grid-template-columns: 1fr 1fr; }
  .activity-entry { min-height: 77px; }
  .activity-person small { max-width: none; }
}
@media(max-width:760px) {
  body { font-size: 13px; }
  .content { padding: 8px 18px calc(112px + env(safe-area-inset-bottom)); }
  .topbar { padding: 3px 18px; min-height: 53px; }
  .breadcrumb { gap: 0; }
  .breadcrumb .breadcrumb-separator,#breadcrumb-page { display: none; }
  .page-heading { flex-wrap: nowrap; gap: 10px; min-height: 38px; margin: 0 0 14px; }
  .page-heading h1 { font-size: 27px; font-weight: 700; letter-spacing: -1px; line-height: 1.2; }
  .page-controls { width: auto; margin-left: auto; flex-wrap: nowrap; align-items: center; justify-content: flex-end; }
  .select-control { width: auto; max-width: 113px; padding: 7px 8px; font-size: 10px; min-height: 36px; }
  .page-controls .primary-button { padding: 9px; font-size: 10px; min-height: 38px; }
  .page-controls .primary-button .ui-icon { width: 15px; height: 15px; }
  .page-subtitle { font-size: 11px; line-height: 1.5; margin-top: 8px; }
  .hero-grid { display: grid; grid-template-columns: 1fr; gap: 12px; margin-bottom: 18px; }
  .hero-card { padding: 18px 19px 0; min-height: 0; }
  .hero-label { font-size: 12px; }
  .hero-amount { font-size: 39px; margin: 4px 0 0; letter-spacing: -1.6px; }
  .hero-amount small { font-size: 11px; }
  .hero-footer { padding-top: 0; flex-wrap: nowrap; }
  .hero-rail { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .wallet-card { padding: 13px 12px; border-radius: 22px; }
  .wallet-heading { display: grid; grid-template-columns: 26px minmax(0,1fr); gap: 7px; }
  .wallet-heading strong { font-size: 11px; font-weight: 600; }
  .wallet-heading .provider-icon { width: 26px; height: 26px; border-radius: 9px; }
  .wallet-heading>div:not(.wallet-amount)>small { display: none; }
  .wallet-heading .wallet-amount { grid-column: 1/-1; font-size: 18px; line-height: 1.5; letter-spacing: -.6px; margin: 2px 0 0; text-align: left; font-weight: 600; }
  .wallet-amount small { display: inline; font-size: 8px; color: #adbbb4; font-weight: 400; letter-spacing: 0; margin-left: 4px; }
  .hero-rail .wallet-meta { display: none; }
  [data-current-page=treasury] .wallet-meta { display: flex; flex-direction: column; gap: 4px; font-size: 10px; }
  [data-current-page=treasury] .wallet-meta strong { display: inline; }
  .overview-totals strong { font-size: 16px; }
  .overview-totals small { font-size: 8px; }
  .quick-actions { grid-template-columns: 1fr; gap: 8px; margin-bottom: 17px; }
  .quick-action { padding: 10px 13px; }
  .quick-action small { font-size: 9px; }
  .quick-action>span { flex-basis: auto; }
  .activity-person small { max-width: 170px; font-size: 9px; }
  .activity-value strong { font-size: 13px; }
  .activity-value { min-width: 64px; }
  .activity-row { gap: 9px; padding: 12px 0; }
  .activity-entry>.profile-shortcut { width: 40px; min-width: 40px; }
  .navigation,.navigation.more-open { left: 13px; right: 13px; padding: 6px; border-radius: 38px; border-color: #c4ffdb32; }
  .navigation .nav-item,.navigation.more-open .nav-item { min-height: 59px; font-size: 9px; font-weight: 400; color: #a9c8b7; gap: 4px; border-radius: 29px; }
  .navigation .nav-icon,.navigation .nav-icon .ui-icon { width: 22px; height: 22px; }
  .navigation .nav-item.selected,.navigation .nav-item.selected .nav-icon { color: #dcffed; }
  .nav-selection { border-radius: 29px; background: linear-gradient(145deg,#6affbc42,#35d58b19); border-color: #b6ffda33; box-shadow: inset 0 1px 0 #eaffee31,0 4px 10px #0001; }
  .navigation.more-open .nav-overflow { background: linear-gradient(150deg,#d9f2e910,#ffffff02),#0e271cf7; }
  .navigation.more-open .nav-overflow .nav-item { font-size: 11px; }
  .content>section+section.card { margin-top: 16px; }
  .sheet-heading h2 { font-size: 22px; }
}
@media(max-width:359px) {
  .content { padding-inline: 13px; }
  .topbar { padding-inline: 13px; }
  .page-heading h1 { font-size: 24px; }
  .page-controls { gap: 4px; }
  .page-controls .primary-button { font-size: 9px; padding: 7px; }
  .hero-amount { font-size: 34px; }
  .wallet-card { padding: 11px 9px; }
  .wallet-heading .wallet-amount { font-size: 16px; }
  .wallet-amount small { font-size: 7px; }
  .activity-person small { max-width: 123px; font-size: 8px; }
  .activity-person strong { font-size: 12px; }
  .activity-entry { gap: 8px; }
  .activity-value strong { font-size: 12px; }
  .activity-summary-value { font-size: 29px; }
  .game-filters button { padding-inline: 11px; }
}
@media(hover:hover) and (pointer:fine) {
  .quick-action:hover,.activity-row:hover,.players-shortcut:hover { background: #b8f3d209; }
  .secondary-button:hover:not(:disabled),.select-control:hover { background-color: #1d3b2b; }
}
@media(prefers-reduced-transparency:reduce),(prefers-contrast:more) {
  body::before { background: linear-gradient(#010805,#062016); }
  .card,.wallet-card,.quick-action,.game-summary,.activity-list-surface,.game-open-list .activity-entry,.game-finished-list { background: #081e13; border-color: #88b398; }
  .topbar,.sheet,.navigation::before,.navigation.more-open .nav-overflow { background: #0c2117; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .nav-selection { background: #30513d; border-color: #b2e7c3; }
}

.live-caption[data-state=stale] .status-dot { background: #f4bd8e; box-shadow: none; }
.live-caption[data-state=history] .status-dot,.live-caption[data-state=loading] .status-dot { background: #a0b5aa; box-shadow: none; }
@media(prefers-reduced-transparency:reduce),(prefers-contrast:more) {
 .navigation,.navigation.more-open { background: #102c1f; }
}

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

/* Separate avatar and operation targets share the row without an invisible offset. */
.activity-entry { display: flex; align-items: center; }
.activity-entry>.profile-shortcut { position: relative; left: auto; top: auto; transform: none; flex: 0 0 40px; }
.activity-entry>.activity-row { padding-left: 0; flex: 1; min-width: 0; }

.ambient-glow { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: -1; contain: strict; }
.ambient-flow { position: absolute; inset: 0; transform: translate3d(0,0,0); }
.ambient-mist {
 position: absolute; left: -24%; right: -24%; bottom: -14%; height: 68%;
 background: radial-gradient(ellipse 27% 47% at 25% 70%,#6effc38c,transparent 85%),radial-gradient(ellipse 31% 36% at 70% 65%,#02ec85a8,transparent 90%),radial-gradient(ellipse 40% 40% at 45% 102%,#20cc8299,transparent 94%);
 opacity: .72; transform: translate3d(-9%,3%,0) scale(1.02);
 animation: emerald-drift 12s ease-in-out infinite alternate;
 will-change: transform,opacity;
}
@keyframes emerald-drift {
 from { transform: translate3d(-9%,3%,0) scale(1.02); opacity: .72; }
 to { transform: translate3d(9%,-5%,0) scale(1.07); opacity: .94; }
}
.ambient-paused .ambient-mist { animation-play-state: paused; }
.activity-game-badge[data-game=crew] { background: #23634a; }
.activity-game-badge[data-game=razlom] { background: #805e26; color: #ffe1a4; }
.activity-game-badge[data-game=slots] { background: #604b7a; color: #e9d5ff; }
.activity-game-badge[data-game=dice] { background: #355d73; color: #cfecff; }
@media(prefers-reduced-motion:reduce),(prefers-reduced-transparency:reduce),(prefers-contrast:more) {
 .ambient-glow { display: none; }
 .ambient-mist { animation: none; will-change: auto; }
}

/* Matte control surfaces use the same glass family; the mist colors them
   through alpha, so there is no independent flashing color animation. */
.activity-toolbar .segmented { background: linear-gradient(140deg,#e0fff20a,#132d2080); box-shadow: inset 0 1px 0 #dcffe916,0 2px 12px #0002; }
.game-filters button { background: linear-gradient(150deg,#ecfff905,#08201599); box-shadow: inset 0 1px 0 #dcffe90a; }
.game-filters button[aria-pressed=true] { background: linear-gradient(145deg,#b8ffdb25,#28593b66); box-shadow: inset 0 1px 0 #e6ffee23; }
.select-control { background: linear-gradient(145deg,#f1fff909,#082015b3); }
.welcome-dialog { position: fixed; inset: 0; margin: 0; padding: max(36px,env(safe-area-inset-top)) 28px max(42px,env(safe-area-inset-bottom)); width: 100%; max-width: none; height: 100dvh; max-height: none; border: 0; background: transparent; color: var(--text); overflow: auto; }
.welcome-dialog[open] { display: flex; flex-direction: column; align-items: center; }
.welcome-dialog::backdrop { background: #01080515; }
.welcome-open .shell,.welcome-open .demo-bar { visibility: hidden; }
.welcome-mark { object-fit: contain; }
.welcome-message { margin: auto 0; width: 100%; max-width: 550px; text-align: center; padding: 38px 0; }
.welcome-message h1 { font-size: clamp(34px,7.2vw,49px); line-height: 1.28; letter-spacing: -1.4px; font-weight: 600; text-wrap: balance; }
.welcome-word { display: inline-block; max-width: 100%; overflow-wrap: anywhere; }
.welcome-letter { display: inline-block; }
.welcome-message p { margin-top: 23px; color: #afc9bc; font-size: 13px; }
.welcome-message h1:focus { outline: none; }
.welcome-enter { display: flex; align-items: center; justify-content: space-between; gap: 40px; width: 240px; max-width: 100%; padding: 8px 9px 8px 25px; min-height: 64px; border: 1px solid #c1ffe03d; border-radius: 36px; background: linear-gradient(125deg,#b5ffdc1c,#d3ffed08),#032e2263; color: #edfff5; font-size: 16px; font-weight: 500; letter-spacing: -.2px; box-shadow: inset 0 1px 0 #e6fff124,0 10px 30px #001d1730; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); transition: transform 180ms cubic-bezier(.16,1,.3,1),background-color 180ms ease-out; -webkit-tap-highlight-color: transparent; }
.welcome-arrow { display: grid; place-items: center; width: 46px; height: 46px; flex: 0 0 46px; border-radius: 50%; background: linear-gradient(140deg,#d4ffe322,#e0fff107); box-shadow: inset 0 1px 0 #e9fff625; }
.welcome-arrow svg { width: 23px; height: 23px; transition: transform 180ms cubic-bezier(.16,1,.3,1); }
.welcome-enter:active { transform: scale(.97); background-color: #07513b80; }
.welcome-enter:active .welcome-arrow svg { transform: translateX(2px); }
.welcome-enter:focus-visible { outline: 2px solid #c7ffdf; outline-offset: 5px; }
@media(hover:hover) and (pointer:fine) { .welcome-enter:hover { background-color: #07513b80; } .welcome-enter:hover .welcome-arrow svg { transform: translateX(2px); } }
@media(prefers-reduced-transparency:reduce),(prefers-contrast:more) { .welcome-enter { background: #123e2e; backdrop-filter: none; -webkit-backdrop-filter: none; border-color: #a9dfc3; } .welcome-arrow { background: #285b45; } }
@media(min-width:761px) { .welcome-dialog { padding-block: 60px; } }
@media(prefers-reduced-motion:reduce) { .welcome-letter { transform: none; opacity: 1; } .welcome-enter,.welcome-arrow svg { transition: none; transform: none; } .welcome-enter:active,.welcome-enter:active .welcome-arrow svg,.welcome-enter:hover .welcome-arrow svg { transform: none; } }

.rule-fold { padding: 0; }
.rule-fold>summary { list-style: none; position: relative; padding: 19px 40px 19px 20px; cursor: pointer; }
.rule-fold>summary::-webkit-details-marker { display: none; }
.rule-fold>summary::after { content: '+'; position: absolute; right: 19px; top: 50%; transform: translateY(-50%); color: #a9d6bd; font-size: 20px; font-weight: 400; }
.rule-fold[open]>summary::after { content: '−'; }
.rule-fold .rule-number { margin-bottom: 8px; font-size: 9px; letter-spacing: 1px; color: #93b7a4; }
.rule-fold h3 { margin: 0; font-size: 15px; line-height: 1.45; }
.rule-content { padding: 0 20px 22px; }
.rule-content p { font-size: 12px; line-height: 1.75; color: #bfd2c6; }
.game-filters button { position: relative; }
.game-filters button::before { content: ''; position: absolute; inset: -4px 0; }
@media(hover:hover) and (pointer:fine) { .rule-fold>summary:hover { background: #dcffe707; } }

/* Keep the native checkbox's keyboard, form and confirmation semantics. */
.protection-toggle input { appearance: none; -webkit-appearance: none; position: relative; width: 50px; height: 30px; padding: 0; border: 1px solid #bbefd133; border-radius: 18px; background: #20372c; box-shadow: inset 0 1px 2px #0003; }
.protection-toggle input::before { content: ''; display: block; position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: #cce0d5; box-shadow: 0 2px 4px #0003; transform: translateX(0); transition: transform 180ms cubic-bezier(.16,1,.3,1); }
.protection-toggle input:checked { background: #16815b; border-color: #87eab34d; }
.protection-toggle input:checked::before { background: #ecfff4; transform: translateX(20px); }
.protection-toggle input:disabled { opacity: .5; cursor: default; }
@media(prefers-reduced-motion:reduce) { .protection-toggle input::before { transition: none; } }
@media(forced-colors:active) { .protection-toggle input { appearance: auto; -webkit-appearance: auto; } .protection-toggle input::before { display: none; } }

/* One restrained material for text fields, search, links and native pickers. */
.sheet input:not([type=hidden]):not([type=checkbox]),.sheet select,.sheet textarea,.group-invite input,.search,.protection-percent-field {
 background: linear-gradient(145deg,#d4ffe10b,#b9ffe103),#041a10b3;
 border: 1px solid #bdedcf2b; border-radius: 17px; color: #effaf3;
 box-shadow: inset 0 1px 0 #e2ffe90c,0 2px 5px #00110817;
 caret-color: #9cf6c7; transition: border-color 160ms ease,background-color 160ms ease;
}
.sheet input:not([type=hidden]):not([type=checkbox]),.sheet textarea,.group-invite input { appearance: none; -webkit-appearance: none; }
.sheet input:not([type=hidden]):not([type=checkbox]),.sheet select,.sheet textarea,.group-invite input { min-height: 52px; padding: 13px 15px; font-size: 16px; }
.sheet input::placeholder,.sheet textarea::placeholder,.search input::placeholder { color: #8da99a; opacity: 1; }
.sheet input:focus-visible,.sheet select:focus-visible,.sheet textarea:focus-visible,.group-invite input:focus-visible,.search:focus-within,.protection-percent-field:focus-within {
 outline: none; border-color: #8deab48c; box-shadow: inset 0 1px 0 #e2ffe917,0 0 0 3px #69e9ab0c; background-color: #082d1db3;
}
.sheet input:disabled,.sheet select:disabled,.sheet textarea:disabled { opacity: .55; cursor: default; }
.sheet input[readonly],.sheet textarea[readonly] { color: #b6cfbf; }
.sheet input[aria-invalid=true],.sheet input:user-invalid,.sheet textarea:user-invalid { border-color: #e894987a; }
.sheet select option,.select-control option { background: #0a2015; color: #effaf3; }
.sheet input:-webkit-autofill { -webkit-text-fill-color: #effaf3; box-shadow: inset 0 0 0 1000px #102c1c; }
.search { min-height: 52px; border-radius: 27px; }
.search input { appearance: none; -webkit-appearance: none; background: transparent; box-shadow: none; border: none; outline: none; caret-color: #9cf6c7; font-size: 16px; min-height: 50px; }
.search .ui-icon { color: #a3c7b2; }
.protection-toggle { gap: 20px; }
.protection-percent-field { display: flex; align-items: center; gap: 14px; min-height: 60px; padding: 0 18px; }
.protection-card .protection-percent-field input[name=percent] { appearance: none; -webkit-appearance: none; max-width: none; min-width: 0; width: 100%; flex: 1; padding: 12px 0; margin: 0; background: transparent; border: 0; border-radius: 0; outline: none; box-shadow: none; font-size: 24px; line-height: 1.4; font-weight: 500; letter-spacing: -.4px; font-variant-numeric: tabular-nums; caret-color: #9cf6c7; }
.protection-percent-field>span { color: #a7c5b3; font-size: 17px; }
.protection-card .card-heading .status { border-radius: 12px; font-size: 10px; border: 1px solid #e1cba314; }
@media(prefers-reduced-motion:reduce) {
 .sheet input:not([type=hidden]):not([type=checkbox]),.sheet select,.sheet textarea,.group-invite input,.search,.protection-percent-field { transition: none; }
}
@media(prefers-reduced-transparency:reduce),(prefers-contrast:more) {
 .sheet input:not([type=hidden]):not([type=checkbox]),.sheet select,.sheet textarea,.group-invite input,.search,.protection-percent-field { background: #0e2519; border-color: #89b79a; }
}
@media(forced-colors:active) {
 .sheet input:focus-visible,.sheet select:focus-visible,.sheet textarea:focus-visible,.group-invite input:focus-visible,.search:focus-within,.protection-percent-field:focus-within { outline: 2px solid Highlight; }
}

/* The approved welcome glass is shared by primary actions throughout the cabinet. */
.primary-button,.hero-footer .primary-button,.bank-panel .primary-button,.hero-card .primary-button {
 background: linear-gradient(125deg,#b5ffdc1c,#d3ffed08),#032e2263;
 border: 1px solid #c1ffe03d; color: #edfff5; font-weight: 500;
 border-radius: 30px; min-height: 48px; padding: 8px 18px;
 box-shadow: inset 0 1px 0 #e6fff124,0 8px 24px #001d1726;
 backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
 transition: transform 180ms cubic-bezier(.16,1,.3,1),background-color 180ms ease-out;
}
.primary-button>span:last-child { display: grid; place-items: center; flex: 0 0 32px; width: 32px; height: 32px; font-size: 20px; border-radius: 50%; background: linear-gradient(140deg,#d4ffe322,#e0fff107); box-shadow: inset 0 1px 0 #e9fff625; }
.primary-button:has(>span:last-child) { padding-right: 8px; gap: 18px; justify-content: space-between; }
.primary-button:active:not(:disabled) { transform: scale(.98); background-color: #07513b80; }
.secondary-button { border-radius: 24px; background: linear-gradient(125deg,#b5ffdc0d,#d3ffed04),#032e222e; box-shadow: inset 0 1px 0 #e6fff110; }
.page-heading:has([data-new-group], [data-team-add], [data-owner-add]) { flex-wrap: wrap; align-items: flex-start; }
.page-heading:has([data-new-group], [data-team-add], [data-owner-add]) .page-controls { flex: 1 0 100%; justify-content: space-between; margin-top: 3px; }
.page-controls .primary-button { min-height: 48px; font-size: 12px; padding: 7px 8px 7px 18px; white-space: nowrap; flex-shrink: 0; }
#content[aria-busy=true] { cursor: progress; }
.nav-item[data-pending] .nav-icon { opacity: .55; }
.activity-card[aria-busy=true] .activity-entry { pointer-events: none; }
[data-player-id][aria-busy=true] .activity-person,[data-open-player][aria-busy=true] { opacity: .65; }
@media(hover:hover) and (pointer:fine) {
 .primary-button:hover:not(:disabled),.hero-footer .primary-button:hover,.bank-panel .primary-button:hover,.hero-card .primary-button:hover { background: linear-gradient(125deg,#b5ffdc1c,#d3ffed08),#07513b80; box-shadow: inset 0 1px 0 #e6fff124,0 8px 24px #001d1726; }
}
@media(prefers-reduced-motion:reduce) { .primary-button { transition: none; } .primary-button:active:not(:disabled) { transform: none; } }
@media(prefers-reduced-transparency:reduce),(prefers-contrast:more) { .primary-button { background: #123e2e; backdrop-filter: none; -webkit-backdrop-filter: none; border-color: #a9dfc3; } }
/* A page can slide within the viewport without creating horizontal scrolling. */
html { overflow-x: clip; }
body { overflow-x: clip; }

/* Ownership is a compact identity list, not a project/team table. */
.owners-access { display: flex; align-items: center; gap: 16px; padding: 22px; margin-bottom: 20px; }
.owner-access-icon { display: grid; place-items: center; width: 44px; height: 44px; flex-shrink: 0; border-radius: 15px; color: #96e6bb; background: #a6ffcf0a; }
.owners-access h2 { font-size: 15px; }.owners-access p { color: var(--muted); font-size: 12px; margin-top: 5px; }
.owner-member { display: grid; grid-template-columns: 42px minmax(0,1fr) 42px; align-items: center; gap: 13px; padding: 20px 24px; }
.owner-member+.owner-member { border-top: 1px solid var(--line); }
.owner-member-copy { min-width: 0; }.owner-member-copy strong,.owner-member-copy>span,.owner-member-copy small { display: block; overflow-wrap: anywhere; }
.owner-member-copy strong { font-size: 14px; }.owner-member-copy>span { font-size: 11px; color: var(--muted); margin-top: 3px; }
.owner-member-copy small { color: #9bc5ad; font-size: 10px; margin-top: 5px; }.owner-revoked .owner-member-copy small { color: var(--muted); }
.owner-access-status { color: #89d8af; text-align: center; }.owner-remove { color: #c7b3b5; }
.owner-confirmation { padding: 18px; border: 1px solid #b0ffd229; border-radius: 20px; background: #14342366; margin: 18px 0; }
.owner-confirmation strong,.owner-confirmation>span { display: block; overflow-wrap: anywhere; }.owner-confirmation>span { color: var(--muted); font-size: 12px; margin-top: 5px; }.owner-confirmation p { font-size: 12px; color: #b3d2c0; margin-top: 15px; }
#owner-repeat,#owner-revoke-repeat { margin-top: 12px; }#owner-edit { margin-top: 12px; }
@media(max-width:760px){.owner-member{padding:18px 16px;gap:10px}.owners-access{padding:18px}.owners-list .card-heading{padding-inline:16px}}

#owner-dialog .primary-button,#owner-revoke-dialog .primary-button { font-size:14px; min-height:48px; }
.partner-wallets { margin: 20px 0; }
.partner-wallets .section-label { display: flex; justify-content: space-between; align-items: center; }
.partner-wallets .hero-rail { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
.partner-wallets .wallet-heading { display: grid; grid-template-columns: 30px minmax(0,1fr); gap: 8px; align-items: center; }
.partner-wallets .wallet-amount { grid-column: 1/-1; text-align: left; margin-left: 0; }

/* Lifetime archive stays visually distinct from the selected live period. */
.legacy-history{margin:24px 0 20px;padding:18px 0 0;border-top:1px solid rgba(150,224,190,.14)}
.legacy-history h3{margin:0 0 6px;font-size:16px;line-height:1.35;font-weight:600;color:var(--text)}
.legacy-history>.form-footnote{margin:0 0 10px}
