/* Home quick actions and badges anchored to the glyph, not the button/label. */
.lc-home-actions {
  display: flex; flex: none; align-items: center; gap: 5px;
}
.lc-home-actions > .lc-round { width: var(--ds-touch); height: var(--ds-touch); }
.lc-home-actions > [hidden] { display: none; }
.lc-indicator-icon { display: inline-grid; position: relative; flex: none; place-items: center; }
.lc-indicator-icon > :is(.lc-nav-dot,.inbox-badge), #lc-nav-start[data-call-live] .lc-indicator-icon::after {
  position: absolute; inset: -2px -3px auto auto; z-index: 1; pointer-events: none;
  width: 7px; height: 7px; border-radius: 50%; background: var(--lc-accent);
  box-shadow: 0 0 0 2px var(--lc-card);
}
.lc-indicator-icon > [hidden] { display: none; }
#lc-nav-start[data-call-live] .lc-indicator-icon::after { content: ''; background: var(--ds-green); }
#lc-nav-start[data-call-live] .lc-indicator-icon:has(.lc-nav-dot:not([hidden]))::after { inset-block: auto -2px; }
@media (forced-colors: active) {
  .lc-indicator-icon > :is(.lc-nav-dot,.inbox-badge), #lc-nav-start[data-call-live] .lc-indicator-icon::after { background: Highlight; forced-color-adjust: none; }
}

/* Private wallet, using the reference's single column balance/subscription/history cards. */
.lc-wallet { display: grid; gap: var(--ds-space-4); padding: 0 var(--lc-gutter) var(--ds-space-4); }
.lc-wallet[hidden] { display: none; }
.lc-wallet-card {
  display: grid; justify-items: start; gap: var(--ds-space-1); min-inline-size: 0;
  padding: var(--ds-space-4); border: 1px solid var(--ds-edge); border-radius: var(--ds-radius-card);
  background: var(--lc-card); color: var(--lc-text);
}
.lc-wallet-caption, .lc-wallet-actions, .lc-wallet-card h3 { display: flex; align-items: center; gap: var(--ds-space-2); }
.lc-wallet-card h3, .lc-wallet-card p { margin: 0; }
.lc-wallet-card h3 { font: 700 var(--ds-fs-label)/1.3 var(--lc-font); color: var(--lc-muted); }
.lc-wallet-card h3 .lc-icon { width: 18px; height: 18px; color: var(--lc-accent); }
.lc-wallet-total { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--ds-space-2); }
.lc-wallet-total strong { color: var(--lc-text); font: 800 clamp(28px, 4vw, 36px)/1.05 var(--lc-font); font-variant-numeric: tabular-nums; }
.lc-wallet-total span, .lc-wallet-muted { color: var(--lc-muted); font: 500 var(--ds-fs-label)/1.35 var(--lc-font); }
.lc-wallet-muted:empty, .lc-wallet-history:empty { display: none; }
.lc-wallet-actions, .lc-wallet-link, .lc-wallet-card .lc-topup, .lc-wallet-card .lc-shop-note { margin-block-start: var(--ds-space-2); }
.lc-wallet-card .lc-shop-note { margin-inline: 0; }
.lc-wallet-actions .lc-icon { width: 17px; height: 17px; }
.lc-wallet-actions #lc-pocket-hide { position: relative; }
#lc-pocket-hide[aria-pressed="true"]::after { content: ''; position: absolute; width: 18px; height: 1.5px; background: currentColor; rotate: 45deg; }
.lc-wallet-history { align-self: stretch; justify-self: stretch; margin: 0; padding: 0; list-style: none; }
.lc-wallet-history li { display: grid; grid-template-columns: 16px minmax(0,1fr) auto; align-items: center; gap: var(--ds-space-2); padding-block: 8px; }
.lc-wallet-history li + li { border-block-start: 1px solid var(--ds-edge); }
.lc-wallet-history li > .lc-icon { width: 16px; height: 16px; color: var(--lc-muted); }
.lc-wallet-history li span { min-inline-size: 0; overflow-wrap: anywhere; }
.lc-wallet-history :is(time,strong) { display: block; }
.lc-wallet-history time { color: var(--lc-muted); font-size: var(--ds-fs-micro); }
.lc-wallet-history :is(b,strong) { font-size: var(--ds-fs-label); }
.lc-wallet-history b[data-credit="true"] { color: color-mix(in srgb, var(--lc-accent) 65%, var(--lc-text)); }
@media (max-width: 30rem) {
  .lc-wallet-actions { inline-size: 100%; }
  .lc-wallet-actions #lc-pocket-topup { flex: 1; }
}

/* Keep the touch/keyboard scroll in the attach menu. Hide only the chrome. */
.chat-lc-attach-menu { scrollbar-width: none; }
.chat-lc-attach-menu::-webkit-scrollbar { display: none; }

/* Dimensions of sealed frames. The synthetic veil belongs to the button, not the text bubble. */
.chat-lc-sealed.chat-lc-spoiler-toggle {
  position: relative; display: grid; place-items: center; isolation: isolate; min-height: var(--ds-touch);
  inline-size: min(248px, 66vw); max-inline-size: 100%; overflow: hidden; padding: 0;
  background: #171717; color: #fff; border: 0; border-radius: var(--ds-radius-lg); aspect-ratio: 5 / 1;
}
.chat-lc-sealed:is([data-cover="photo"], [data-cover="album"]) { aspect-ratio: 4 / 3; }
.chat-lc-sealed[data-cover="video"] { aspect-ratio: 16 / 10; }
.chat-lc-sealed[data-cover="circle"] { inline-size: min(250px, 64vw); aspect-ratio: 1; border-radius: 50%; }
.chat-lc-view-once .lc-icon { width: 20px; height: 20px; }
.chat-lc-quote .lc-icon { align-self: center; width: 18px; height: 18px; }
button.lc-msg-avatar { cursor: pointer; }
.lc-game-avatar {
  cursor: pointer; display: grid; place-items: center; border-radius: 50%; border: 0; padding: 0;
  width: var(--ds-touch); height: var(--ds-touch); color: var(--lc-text); background: var(--lc-control); grid-area: opponent;
}
.lc-game-avatar .lc-icon { width: 19px; height: 19px; }
button.lc-msg-avatar:focus-visible, .lc-game-avatar:focus-visible, .chat-lc-ava:focus-visible { outline: var(--ds-focus-ring); }
.ct-game-head:has(.lc-game-avatar) { grid-template-columns: 18px minmax(0,1fr) auto auto; grid-template-areas: 'icon name opponent expand' '. status status status'; }

.lc-wallet .lc-topup { inline-size: 100%; box-sizing: border-box; }

.chat-lc-attachment-gone { color: var(--lc-muted); font-size: var(--ds-fs-label); }
