/* Member portal. Kept separate from the public realm's editorial styling. */
.member-view { background: #11141b; color: #bcc2ce; }
.member-view::before { display: none; }
.member-view .site-header { background: #11141bf5; border-bottom-color: #ffffff0c; box-shadow: none; }
.member-view .site-footer { padding: 26px 0; background: #0e1117; border-color: #ffffff0b; }
.member-view .footer-grid { display: none; }
.member-view .footer-bottom { margin: 0; padding: 0; border: 0; }
.member-view .nav a { font-size: .82rem; }
.member-view .realm-pill { border-color: #ffffff15; background: transparent; }
.member-view .app {
  --ivory: #f0f1f4; --ivory-2: #c9ced8; --muted: #9aa3b4; --muted-2: #8893a5;
  --gold: #d9bc85; --gold-hi: #e7c995; --gold-line: #d9bc8538; --line-soft: #ffffff0e;
  max-width: 1392px; grid-template-columns: 218px minmax(0, 1fr); gap: 42px;
  padding-top: 36px; padding-bottom: 64px; min-height: calc(100vh - 155px);
}
.app h1, .app h2, .app h3, .app h4 { font-family: var(--font-body); letter-spacing: -.035em; }
.app .card { border: 1px solid #ffffff0e; border-radius: 12px; background: #191d26; box-shadow: none; }
.app .app-side { top: 112px; padding: 0 20px 20px 0; border: 0; border-right: 1px solid #ffffff0d; border-radius: 0; background: transparent; min-height: 620px; }
.portal-label { padding: 0 12px; margin-bottom: 25px; color: #737f92; font-size: .64rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.app .app-profile { gap: 11px; padding: 0 9px 24px; border: 0; }
.app .app-profile .avatar { width: 39px; height: 39px; border-radius: 11px; background: #d7bb8520; border: 1px solid #d7bb8533; color: #e7c995; font: 600 1rem var(--font-body); }
.app .app-who strong { font: 600 .88rem var(--font-body); }
.app .badge { padding: 0; background: none; color: #8f9aab; font-size: .64rem; letter-spacing: .035em; text-transform: none; }
.app .badge.ok { color: #93bfa9; }
.app .app-nav { gap: 5px; margin: 6px 0; }
.app .app-nav a { gap: 11px; padding: 11px 12px; border-radius: 8px; font-size: .85rem; font-weight: 500; color: #929dad; }
.app .app-nav a svg { width: 17px; height: 17px; color: inherit; opacity: .9; }
.app .app-nav a:hover { background: #ffffff06; color: #e4e7ef; }
.app .app-nav a[aria-current=page] { background: #d7bb8510; color: #e7c995; }
.app .app-nav a[aria-current=page]::before { left: 0; top: 13px; bottom: 13px; width: 2px; border-radius: 1px; }
.app-side-bottom { margin: 160px 12px 20px; font-size: .72rem; }
.app-side-bottom p { color: #6f7a8b; margin-bottom: 10px; }
.app-side-bottom a { color: #a8b1bf; text-decoration: none; }
.app-side-bottom a span { margin-left: 10px; }
.app .app-logout { min-height: 35px; justify-content: flex-start; padding: 8px 12px; border-color: transparent; background: none; color: #8e99aa; font-size: .8rem; }
.app .app-head { margin-bottom: 27px; }
.app .eyebrow { margin-bottom: 12px; color: #7e899c; font: 500 .72rem var(--font-body); letter-spacing: .025em; text-transform: none; }
.app .app-title { font-size: clamp(1.65rem, 2.4vw, 2.1rem); line-height: 1.25; font-weight: 600; letter-spacing: -.045em; }
.app .app-lead { margin-top: 8px; max-width: 680px; color: #8f9aac; font-size: .84rem; line-height: 1.7; }
.portal-banner { position: relative; isolation: isolate; overflow: hidden; padding: 28px 30px; margin-bottom: 24px; border: 1px solid #d1b68030; border-radius: 12px; background: linear-gradient(110deg, #26262c, #1a2029); }
.portal-banner::before { content: ''; position: absolute; z-index: -1; inset: 7px 20px 7px auto; width: 40%; background: url('/art/realm-matsuka.png') center / contain no-repeat; opacity: .4; pointer-events: none; }
.portal-kicker { display: block; margin-bottom: 9px; color: #bba781; font-size: .61rem; font-weight: 700; letter-spacing: .18em; }
.portal-banner h2 { font-size: 1.55rem; font-weight: 550; }
.portal-banner p { margin: 8px 0 18px; font-size: .8rem; color: #b1b1b8; }
.portal-banner .btn { min-height: 36px; padding: 10px 15px; font-size: .75rem; }
.portal-banner-mark { position: absolute; z-index: -1; right: 24px; bottom: 3px; color: #f5dfb821; font: 600 clamp(3rem, 8vw, 7rem)/1.1 var(--font-display); letter-spacing: -.08em; }
.app .btn { border-radius: 7px; min-height: 40px; font-size: .8rem; letter-spacing: 0; box-shadow: none; }
.app .btn svg { flex: none; width: 16px; height: 16px; }
.app .eyebrow::before { display: none; }
.app .btn-gold { color: #201a11; background: #ddc18d; border: 1px solid #e6cb9a; }
.app .btn-gold:hover { background: #edd3a6; color: #201a11; }
.app .btn-small { min-height: 34px; padding: 8px 12px; font-size: .74rem; }
.app .stat-grid { gap: 12px; margin-bottom: 24px; }
.app .stat { padding: 18px; gap: 9px; }
.app .stat-label { color: #929dad; font-size: .7rem; font-weight: 500; letter-spacing: 0; text-transform: none; }
.app .stat-value { font: 550 1.65rem/1.15 var(--font-body); letter-spacing: -.045em; }
.app .stat-value.gold { color: #e7c995; }
.app .stat-note { color: #7e899b; font-size: .69rem; line-height: 1.6; }
.app .app-grid { gap: 18px; }
.app .panel, .app .characters { padding: 23px; }
.app .panel h2 { margin-bottom: 18px; font-size: .94rem; font-weight: 600; letter-spacing: -.015em; }
.app .panel h3 { font-size: .9rem; color: #d3d8e3; }
.app .activity li { gap: 12px; padding: 15px 0; font-size: .74rem; }
.app .activity-what { color: #aab3c2; }
.app .activity-delta { font-size: .71rem; font-weight: 500; }
.app .activity time { font-size: .67rem; }
.app .quick { gap: 4px; }
.app .quick-link { padding: 12px 0; gap: 13px; border-radius: 0; border-top: 1px solid #ffffff09; }
.app .quick-link svg { width: 19px; height: 19px; color: #bdab89; }
.app .quick-link strong { font-size: .78rem; font-weight: 500; }
.app .quick-link small { display: block; margin-top: 3px; font-size: .7rem; color: #8390a4; }
.app .char-list { gap: 14px; }
.app .char { padding: 20px 16px; border-radius: 9px; background: #ffffff02; }
.app .char .class-icon { border: 1px solid #d7bb8522; background: #d7bb850b; color: #d7bb85; border-radius: 10px; }
.app .char strong { font-size: .9rem; }
.app .char span { font-size: .75rem; }
.app .input { border: 1px solid #ffffff18; border-radius: 7px; background-color: #11151d; color: #e3e7ef; min-height: 43px; padding: 10px 12px; font-size: .83rem; }
.app .input:focus { border-color: #c7af7f; box-shadow: 0 0 0 3px #d7bb850b; }
.app .input::placeholder { color: #657184; }
.app .field label { font-size: .75rem; font-weight: 500; color: #b6bfcd; }
.app .field-unit { float: right; color: #748096; font-size: .65rem; }
.app .hint, .app .fineprint { color: #7e8a9d; font-size: .7rem; line-height: 1.8; }
.app .security p, .app .panel-text { font-size: .82rem; line-height: 1.8; }
.app .alert { border-radius: 8px; font-size: .76rem; margin-bottom: 22px; }
.app .alert.notice { background: #d7bb8507; border-color: #d7bb851c; color: #aeb7c6; padding: 11px 15px; }
.app .support { padding: 0; background: none; border: 0; overflow: visible; }
.app .support-grid { grid-template-columns: minmax(0, 1fr) 288px; gap: 20px; margin-top: 0; align-items: start; }
.app .support-pay, .app .support-move { padding: 25px; border-radius: 12px; border: 1px solid #ffffff0e; background: #191d26; }
.support-aside { display: grid; gap: 18px; min-width: 0; }
.panel-heading { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 22px; }
.panel-heading .step-number { display: grid; place-items: center; flex: none; width: 29px; height: 29px; border: 1px solid #d7bb8525; border-radius: 8px; color: #c3ad85; font-size: .64rem; font-weight: 600; }
.app .panel-heading h2 { margin: 2px 0 6px; font-size: .94rem; font-weight: 550; letter-spacing: -.02em; }
.panel-heading p { color: #8894a8; font-size: .72rem; line-height: 1.8; }
.panel-heading p strong { color: #b7c0ce; font-weight: 500; }
.contribution-options { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
.contribution { position: relative; display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 17px 4px 15px; min-height: 102px; border: 1px solid #ffffff10; border-radius: 8px; color: #c6cedb; background: #ffffff02; font-family: var(--font-body); cursor: pointer; }
.contribution:hover { border-color: #d7bb8550; }
.contribution[aria-pressed=true] { border-color: #d7bb85; background: #d7bb8509; box-shadow: inset 0 0 0 1px #d7bb8520; }
.contribution strong { font-size: 1.25rem; font-weight: 550; letter-spacing: -.05em; color: #ececf0; }
.contribution span { font-size: .61rem; color: #98a2b4; white-space: nowrap; }
.contribution-bonus { color: #d7bb85; font-size: .57rem; font-weight: 500; }
.app .calc { padding-top: 0; border-top: 0; margin-top: 22px; }
.app .calc label { display: flex; justify-content: space-between; color: #a5afbf; font-size: .73rem; font-weight: 500; }
.app .calc label span { font-size: .64rem; color: #78859a; }
.app .calc-row { position: relative; gap: 18px; flex-wrap: nowrap; }
.app .calc-row .input { width: 115px; padding-left: 27px; }
.app .calc-row .currency-prefix { position: absolute; left: 13px; color: #8a96a8; font-size: .8rem; }
.app .calc-arrow { color: #617086; }
.calc-receive { display: grid; gap: 2px; }
.app .calc-receive span { color: #7e8b9e; font-size: .64rem; }
.unsung-coin { display: block; flex: none; }
.calc-value, .contribution-reward { display: flex; align-items: center; gap: 7px; }
.contribution-reward { gap: 4px; }
.app .app-nav .unsung-coin { width: 18px; height: 18px; }
.app .quick-link .unsung-coin { width: 22px; height: 22px; }
.app .stat-label-coin { display: inline-flex; align-items: center; gap: 6px; }
.app .stat-label-coin .unsung-coin { width: 17px; height: 17px; }
.app .calc-row strong { font: 500 1rem var(--font-body); color: #dfc695; white-space: nowrap; }
.app .calc .hint { margin-top: 10px; font-size: .65rem; }
.payment-heading { padding-top: 24px; margin-top: 25px; border-top: 1px solid #ffffff0c; }
.app .network-chips { display: grid; grid-template-columns: repeat(auto-fit, minmax(112px, 1fr)); gap: 8px; margin-bottom: 21px; }
.app .chip { display: flex; align-items: center; justify-content: flex-start; gap: 8px; min-height: 43px; padding: 9px; border-radius: 7px; border-color: #ffffff10; background: #ffffff02; color: #9ea9bb; font-size: .68rem; }
.app .chip[aria-pressed=true] { border-color: #d7bb85aa; background: #d7bb8509; color: #eddbb8; }
.network-symbol { display: grid; place-items: center; flex: none; width: 25px; height: 25px; border-radius: 50%; background: #ffffff08; font-size: .52rem; font-weight: 650; }
.crypto-logo { display: block; flex: none; width: 24px; height: 24px; object-fit: contain; border-radius: 50%; }
.network-symbol:has(.crypto-logo) { background: none; }
.payment-assets { display: flex; flex-wrap: wrap; gap: 7px; margin: 12px 0 16px; }
.payment-asset { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px; border: 1px solid #ffffff0e; border-radius: 6px; color: #aeb9ca; background: #ffffff02; font-size: .64rem; }
.payment-asset .crypto-logo { width: 17px; height: 17px; }
.network-name { overflow-wrap: anywhere; text-align: left; }
.pay-box { padding: 17px; border: 1px solid #d7bb8528; border-radius: 8px; background: #12161e; }
.address-heading { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; color: #c4cbd8; font-size: .73rem; font-weight: 500; }
.network-label { color: #d1bd95; font-size: .65rem; }
.app .pay-what { color: #8795ab; font-size: .7rem; margin-bottom: 10px; }
.app .address-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.app .address-row code { padding: 12px; border: 1px solid #ffffff0e; border-radius: 6px; background: #0c1017; color: #c6cfdd; font-size: .72rem; line-height: 1.8; }
.app .address-row .btn { justify-self: start; border-color: #ffffff18; background: #ffffff05; color: #bfc8d5; }
.app .pay-notes { padding-left: 14px; color: #7e8ba1; font-size: .65rem; line-height: 1.85; margin-top: 15px; }
.app .pay-notes li + li { margin-top: 6px; }
.payment-assurance { display: flex; align-items: flex-start; gap: 9px; margin-top: 18px; color: #75839a; font-size: .65rem; line-height: 1.8; }
.payment-assurance svg { flex: none; width: 15px; height: 15px; margin-top: 3px; color: #8ba593; }
.wallet-card { display: grid; justify-items: start; padding: 24px; border: 1px solid #d7bb8533; border-radius: 12px; background: radial-gradient(ellipse at top right, #ccb17b13, transparent 70%), #1c2027; }
.wallet-icon { display: grid; place-items: center; width: 35px; height: 35px; margin-bottom: 18px; border: 1px solid #d7bb8526; border-radius: 10px; color: #d7bb85; background: #d7bb8508; }
.wallet-icon svg { width: 21px; height: 21px; }
.wallet-card .wallet-icon { width: 44px; height: 44px; border: 0; background: none; }
.wallet-icon .unsung-coin { width: 44px; height: 44px; }
.wallet-label { color: #a6afbe; font-size: .72rem; }
.wallet-card strong { margin-top: 7px; color: #e7ce9f; font-size: 2.5rem; line-height: 1.2; font-weight: 500; letter-spacing: -.06em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; max-width: 100%; }
.wallet-unit { margin-top: 4px; color: #a28f70; font-size: .59rem; letter-spacing: .14em; }
.wallet-card p { padding-top: 18px; margin-top: 18px; width: 100%; border-top: 1px solid #ffffff0b; color: #7e899a; font-size: .68rem; }
.app .support-move { padding: 23px; }
.support-move .panel-heading { gap: 9px; margin-bottom: 22px; }
.app .support-move .panel-heading h2 { font-size: .84rem; }
.app .support-move .panel-heading p { font-size: .67rem; }
.app .support-move .btn { justify-content: space-between; margin-top: 7px; width: 100%; }
.app .support-move .fineprint { margin-top: 14px; font-size: .63rem; }
.history-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 31px 0 17px; }
.app .history-title { margin: 0 0 5px; font-size: .98rem; font-weight: 550; }
.history-heading p { color: #7f8ca1; font-size: .72rem; }
.app .table-wrap { border-radius: 9px; border-color: #ffffff0e; background: #191d26; }
.app .deposits { font-size: .74rem; }
.app .deposits th { padding: 14px 16px; background: #ffffff02; color: #7d8ba0; letter-spacing: .04em; font-size: .61rem; font-weight: 550; }
.app .deposits td { padding: 16px; color: #a8b4c6; }
.app .deposits td.num { color: #d9c296; font-weight: 500; }
.app .deposits a { color: #8b9aaf; text-decoration: none; }
.app .status { padding: 4px 8px; font-size: .6rem; font-weight: 550; border-radius: 5px; }
.app .status.credited { background: #8eb79b12; color: #95bda6; }
.app .status.seen, .app .status.confirmed { background: #c2a86b12; color: #cbb47c; }
.app .empty { font-size: .78rem; }
.app .section-label { font-size: 1rem; margin-top: 28px; }
@media (max-width: 1200px) {
  .member-view .app { grid-template-columns: 185px minmax(0, 1fr); gap: 25px; }
  .app .support-grid { grid-template-columns: minmax(0, 1fr) 250px; gap: 16px; }
  .app .support-pay { padding: 20px; }
  .contribution { min-height: 95px; }
}
@media (max-width: 1000px) {
  .app .support-grid { grid-template-columns: minmax(0, 1fr); }
  .support-aside { grid-template-columns: .9fr 1.1fr; align-items: start; }
  .app .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .member-view .app { grid-template-columns: minmax(0, 1fr); padding-top: 18px; gap: 26px; }
  .app .app-side { position: static; display: grid; grid-template-columns: 1fr auto; min-height: 0; padding: 0 0 10px; border: 0; border-bottom: 1px solid #ffffff0e; }
  .portal-label, .app-side-bottom { display: none; }
  .app .app-profile { padding: 0 0 12px; }
  .app .app-nav { grid-column: 1 / -1; grid-row: 2; flex-direction: row; gap: 4px; margin: 7px 0 0; overflow: auto; }
  .app .app-nav a { flex: none; padding: 9px 11px; font-size: .75rem; border: 0; }
  .app .app-nav a[aria-current=page]::before { display: none; }
  .app .app-logout { grid-column: 2; grid-row: 1; width: auto; align-self: start; }
  .app .app-head { margin-bottom: 23px; }
  .portal-banner { padding: 24px; }
  .portal-banner::before { right: 4px; width: 48%; opacity: .18; }
  .app .app-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 480px) {
  .support-aside { grid-template-columns: minmax(0, 1fr); }
  .app .support-pay, .app .support-move { padding: 19px; }
  .contribution-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contribution { min-height: 99px; }
  .app .calc-row { gap: 13px; }
  .app .calc-row .input { width: 100px; }
  .app .calc-row strong { font-size: .87rem; }
  .calc-receive { min-width: 0; }
  .calc-value { gap: 5px; }
  .calc-value .unsung-coin { width: 21px; height: 21px; }
  .app .calc-value strong { white-space: normal; }
  .app .activity li { grid-template-columns: minmax(0, 1fr) auto; }
  .app .activity time { grid-column: 1; }
  .app .stat { padding: 16px; }
  .app .stat-value { font-size: 1.5rem; }
}
