/* AltCoin Super Intelligence: the month's book as a coin list and the coin dialog (owner, 22 November 2026: "Mockup is
   good"). Loaded by the AltCoin page beside guide.css and read into the admin's AltCoin panel; the tokens fall back to the
   site's values where the admin has none. Ember is the AltCoin colour; a loss is muted, never red. */
.g-ac { --ac-ember: var(--g-alt, #F0894A); --ac-ember-soft: rgba(240, 137, 74, 0.14); --ac-lilac: var(--g-lilac, #B9A6FF); --ac-dim: var(--g-dim, #7F8C9E); --ac-line: var(--border, #1F2B3B);
        --ac-card2: color-mix(in srgb, var(--card, #0B1A2A) 92%, white 8%); display: grid; gap: 0.875rem; min-width: 0; }
.g-ac-months { display: flex; flex-wrap: wrap; gap: 0.375rem 0.5rem; align-items: center; font-size: 0.8125rem; color: var(--muted-foreground, #9AA7B8); }
.g-ac-months a, .g-ac-months b { display: inline-flex; align-items: center; height: 1.75rem; padding: 0 0.625rem; border-radius: 999px; border: 1px solid var(--ac-line); color: inherit; text-decoration: none; white-space: nowrap; }
.g-ac-months b { border-color: var(--ac-ember); color: var(--ac-ember); font-weight: 600; }
.g-ac-months select { height: 1.75rem; border-radius: 0.5rem; border: 1px solid var(--ac-line); background: var(--background, #0D1117); color: var(--foreground, #E6EAF0); font: inherit; font-size: 0.8125rem; padding: 0 0.5rem; }
.g-ac-filters { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.g-ac-chip { height: 1.75rem; padding: 0 0.75rem; border-radius: 999px; border: 1px solid var(--ac-line); background: transparent; color: var(--muted-foreground, #9AA7B8); font: inherit; font-size: 0.8125rem; cursor: pointer; }
.g-ac-chip.on { border-color: var(--ac-ember); color: var(--ac-ember); background: var(--ac-ember-soft); }
.g-ac-search { margin-left: auto; height: 1.875rem; width: 11rem; max-width: 100%; min-width: 0; border-radius: 0.5rem; border: 1px solid var(--ac-line); background: var(--background, #0D1117); color: var(--foreground, #E6EAF0); padding: 0 0.625rem; font: inherit; font-size: 0.8125rem; }
.g-ac-coins { display: grid; grid-template-columns: repeat(auto-fill, minmax(7.375rem, 1fr)); gap: 0.5rem; }
.g-ac-coin { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "sym sym" "side res"; align-items: center; gap: 0.125rem 0.5rem; padding: 0.5rem 0.625rem; border-radius: 0.625rem; border: 1px solid var(--ac-line); background: var(--ac-card2); color: var(--foreground, #E6EAF0); font: inherit; text-align: left; cursor: pointer; min-width: 0; }
.g-ac-coin:hover, .g-ac-coin:focus-visible { border-color: var(--ac-ember); outline: none; }
.g-ac-coin .sym { grid-area: sym; font-weight: 600; font-size: 0.84375rem; min-width: 0; overflow-wrap: anywhere; }   /* the name takes its own full line (28 November 2026) */
.g-ac-coin .res { grid-area: res; align-self: start; font-variant-numeric: tabular-nums; font-size: 0.8125rem; font-weight: 600; color: var(--ac-ember); justify-self: end; }
.g-ac-coin .res.neg { color: var(--ac-dim); font-weight: 500; }
.g-ac-coin .side { grid-area: side; align-self: start; min-width: 0; font-size: 0.6875rem; color: var(--ac-dim); display: block; overflow-wrap: anywhere; }   /* the words wrap beside the result instead of being cut (28 November 2026) */
.g-ac-coin .side i { width: 0.375rem; height: 0.375rem; border-radius: 50%; background: var(--ac-dim); display: inline-block; margin-right: 0.375rem; vertical-align: 0.05em; }
.g-ac-coin .side i.open { background: var(--g-live, #4ADE80); }
.g-ac-coin .side i.rev { background: var(--ac-lilac); }
.g-ac-more { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; align-items: center; font-size: 0.8125rem; color: var(--muted-foreground, #9AA7B8); }
.g-ac-more b { color: var(--foreground, #E6EAF0); font-weight: 600; }
.g-ac-more button { height: 1.75rem; padding: 0 0.75rem; border-radius: 999px; border: 1px solid var(--ac-ember); background: transparent; color: var(--ac-ember); font: inherit; font-size: 0.8125rem; cursor: pointer; }
.g-ac-empty { color: var(--muted-foreground, #9AA7B8); font-size: 0.875rem; }

/* the dialog */
.g-ac-dialog { margin: auto; width: min(64rem, calc(100vw - 2rem)); max-height: calc(100dvh - 2rem); padding: 1.25rem; border: 1px solid var(--ac-ember, #F0894A); border-radius: 0.875rem; background: var(--card, #0B1A2A); color: var(--foreground, #E6EAF0); box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5); overflow: auto; }
.g-ac-dialog::backdrop { background: rgb(2 6 24 / 0.72); }
.g-ac-dialog .g-ac { gap: 1rem; }
.g-ac-head { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; align-items: baseline; justify-content: space-between; }
.g-ac-head .name { display: flex; align-items: baseline; gap: 0.625rem; flex-wrap: wrap; }
.g-ac-head .name b { font-size: 1.5rem; font-weight: 650; letter-spacing: -0.02em; }
.g-ac-head .name span { color: var(--muted-foreground, #9AA7B8); font-size: 0.875rem; }
.g-ac-close { height: 1.875rem; padding: 0 0.75rem; border-radius: 0.5rem; border: 1px solid var(--ac-line); background: transparent; color: var(--muted-foreground, #9AA7B8); font: inherit; font-size: 0.8125rem; cursor: pointer; }
.g-ac-kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: 0.625rem; margin: 0; }
.g-ac-kv div { display: grid; gap: 0.0625rem; min-width: 0; }
.g-ac-kv dt { font-size: 0.75rem; color: var(--muted-foreground, #9AA7B8); }
.g-ac-kv dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.g-ac-kv dd.g { color: var(--ac-ember); }
.g-ac-kv dd.l { color: var(--ac-dim); }
.g-ac-chart { position: relative; min-width: 0; }
.g-ac-chart svg { display: block; width: 100%; height: auto; }
.g-ac-legend { display: flex; flex-wrap: wrap; gap: 0.5rem 1.125rem; font-size: 0.78125rem; color: var(--muted-foreground, #9AA7B8); }
.g-ac-legend span { display: inline-flex; align-items: center; gap: 0.4375rem; }
.g-ac-legend i { display: inline-block; width: 1.125rem; height: 0; border-top: 2px solid var(--foreground, #E6EAF0); }
.g-ac-legend i.band { width: 1.125rem; height: 0.625rem; border: 0; background: var(--ac-ember-soft); border-radius: 2px; }
.g-ac-legend i.band.short { background: rgba(185, 166, 255, 0.16); }
.g-ac-legend i.dash { border-top-style: dashed; border-color: var(--ac-ember); }
.g-ac-legend i.dot { border-top-style: dotted; border-color: var(--muted-foreground, #9AA7B8); }
.g-ac-legs { width: 100%; border-collapse: collapse; font-size: 0.84375rem; font-variant-numeric: tabular-nums; }
.g-ac-legs th { text-align: left; font-weight: 500; color: var(--ac-dim); font-size: 0.75rem; letter-spacing: 0.04em; text-transform: uppercase; padding: 0.375rem 0.5rem; border-bottom: 1px solid var(--ac-line); white-space: nowrap; }
.g-ac-legs td { padding: 0.5625rem 0.5rem; border-bottom: 1px solid var(--ac-line); white-space: nowrap; }
.g-ac-legs td.r, .g-ac-legs th.r { text-align: right; }
.g-ac-legs .gain { color: var(--ac-ember); font-weight: 600; }
.g-ac-legs .lossv { color: var(--ac-dim); }
.g-ac-legs .tag { font-size: 0.6875rem; color: var(--muted-foreground, #9AA7B8); border: 1px solid var(--ac-line); border-radius: 999px; padding: 0.0625rem 0.4375rem; margin-left: 0.375rem; }
.g-ac-tablewrap { overflow-x: auto; }
.g-ac-note { font-size: 0.8125rem; color: var(--ac-dim); max-width: 80ch; margin: 0; }
.g-ac-wait { color: var(--muted-foreground, #9AA7B8); font-size: 0.875rem; }
@media (max-width: 48rem) {
  .g-ac-search { margin-left: 0; width: 100%; }
  .g-ac-dialog { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; border-radius: 0; border-width: 0 0 0 0; padding: 1rem; }
  .g-ac-legs thead { display: none; }
  .g-ac-legs tr { display: grid; grid-template-columns: 1fr 1fr; gap: 0.125rem 0.75rem; padding: 0.5rem 0; border-bottom: 1px solid var(--ac-line); }
  .g-ac-legs td { padding: 0; border: 0; white-space: normal; }
  .g-ac-legs td::before { content: attr(data-l) ": "; color: var(--ac-dim); font-size: 0.75rem; }
  .g-ac-legs td.r { text-align: left; }
}

/* the site styles buttons with their own display rule, so hidden needs weight here */
.g-ac [hidden], .g-ac-coin[hidden], .g-ac-more [hidden], .g-ac-dialog [hidden] { display: none !important; }
