@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;450;500;550;600;650;700&family=Manrope:wght@400;500;600;650;700;750;800&display=swap');

/* Casino palette copied exactly from client_frontend/src/styles.css. */
:root {
  --casino-background: #090d0f;
  --casino-header: #0c1114;
  --casino-sidebar: #171d22;
  --casino-surface: #101416;
  --casino-border: #273038;
  --casino-accent: #176cdb;
}
:root { font-family: 'DM Sans', sans-serif; color: #202a30; background: #f4f6f8; font-synthesis: none; --green: #176cdb; --ink: #171d22; --muted: #7b867f; --border: #dce3e8; }
* { box-sizing: border-box; }
body { margin: 0; font-size: 16px; -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button, select { cursor: pointer; }
button { color: inherit; }
button, a { touch-action: manipulation; }
button { transition: background .16s, transform .16s, box-shadow .16s; }
button:active:not(:disabled) { transform: translateY(1px); }
button:disabled { cursor: not-allowed; opacity: .35; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 3px solid #6ad1c4; outline-offset: 4px; }
main:focus { outline: none; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3, .metric strong, .brand { font-family: 'Manrope', sans-serif; }
h1 { font-size: clamp(27px, 2.5vw, 37px); line-height: 1.25; font-weight: 650; letter-spacing: -1.6px; color: #171d22; }
h2 { font-size: 18px; font-weight: 750; letter-spacing: -.4px; }
h3 { font-size: 16px; font-weight: 750; }
small { font-size: 15px; color: var(--muted); }
.icon { width: 19px; height: 19px; flex: 0 0 auto; vertical-align: middle; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.skip-link { position: fixed; z-index: 10; top: -60px; left: 20px; padding: 12px; background: white; }
.skip-link:focus { top: 10px; }
.sidebar { overflow-y: auto; width: 238px; background: var(--casino-sidebar); color: #b2c0c7; position: fixed; inset: 0 auto 0 0; display: flex; flex-direction: column; padding: 33px 19px 15px; z-index: 3; }
.brand { color: #edf4f5; font-size: 30px; font-weight: 800; letter-spacing: -1.5px; padding-left: 16px; display: block; line-height: 1; }
.brand-dot { color: #83d8f4; }
.brand small { display: block; margin: 9px 0 0 2px; font-family: 'DM Sans', sans-serif; font-size: 13px; font-weight: 600; letter-spacing: 4.9px; color: #97a8b2; }
.workspace { display: flex; gap: 10px; align-items: center; padding: 13px 10px; margin-top: 37px; border: 1px solid var(--casino-border); border-radius: 9px; color: #dce7eb; font-size: 16px; }
.workspace-symbol { font: 750 18px 'Manrope', sans-serif; background: #2c373f; width: 32px; height: 32px; border: 1px solid #41515b; border-radius: 8px; display: grid; place-items: center; color: #c8e9f1; }
.workspace small { display: block; margin-top: 4px; color: #97a8b2; font-size: 14px; }
.workspace-indicator { width: 6px; height: 6px; border-radius: 50%; background: #83d8f4; margin-left: auto; }
.nav-caption { font-size: 13px; font-weight: 600; letter-spacing: 1.8px; color: #97a8b2; margin: 32px 15px 15px; }
.nav-item { display: flex; width: 100%; align-items: center; gap: 12px; min-height: 46px; padding: 0 14px; border-radius: 7px; margin-bottom: 6px; font-size: 16px; font-weight: 500; border: 0; background: transparent; text-align: left; color: #b2c0c7; }
.nav-item:hover { background: #252f36; color: white; }
.nav-item.active { background: var(--casino-accent); color: #ffffff; font-weight: 650; box-shadow: 0 3px 8px #0000000a; }
.nav-count { margin-left: auto; background: #ffffff12; border: 1px solid #ffffff18; padding: 2px 6px; border-radius: 4px; font-size: 14px; }
.active .nav-count { border-color: #233e2220; background: #ffffff30; }
.sidebar-bottom { margin-top: auto; padding-top: 45px; }
.help-card { background: radial-gradient(ellipse at top right, #25343c 0, #171d22 65%); border: 1px solid #35414a; border-radius: 10px; padding: 17px; margin: 0 4px 21px; overflow: hidden; }
.help-spark { display: block; color: #83d8f4; margin-bottom: 12px; }
.help-spark .icon { width: 26px; height: 26px; }
.help-card h3 { color: #edf4f5; font-size: 17px; }
.help-card p { font-size: 15px; line-height: 1.9; margin-top: 8px; color: #97a8b2; }
.help-card button { display: flex; align-items: center; justify-content: space-between; width: 100%; background: transparent; border: 0; padding: 17px 0 1px; color: #83d8f4; font-size: 15px; }
.help-button { font-size: 15px; padding-left: 11px; }
.help-button .icon:last-child { width: 14px; margin-left: auto; }
.profile { width: 100%; display: flex; gap: 10px; text-align: left; align-items: center; border: 0; border-top: 1px solid #273038; background: none; padding: 18px 9px 3px; margin-top: 13px; color: #dce7eb; font-size: 16px; }
.profile > .icon { width: 14px; margin-left: auto; }
.profile small { display: block; margin-top: 3px; color: #97a8b2; font-size: 14px; }
.avatar { width: 33px; height: 33px; border-radius: 50%; background: #2c373f; color: #dce7eb; display: grid; place-items: center; font-size: 15px; font-weight: 600; }
.workspace-main { margin-left: 238px; }
.topbar { height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 39px; border-bottom: 1px solid var(--border); background: #ffffffb3; }
.breadcrumbs { display: flex; align-items: center; gap: 15px; color: #8c948e; font-size: 15px; }
.breadcrumbs .icon { width: 12px; color: #9eaaa1; }
.breadcrumbs span { color: #35414a; font-weight: 500; }
.topbar-actions { display: flex; align-items: center; gap: 21px; }
.demo-switch { background: #eaf2fa; border: 1px solid #d4e4f3; color: #356883; display: flex; align-items: center; gap: 7px; border-radius: 6px; padding: 7px 10px; font-size: 14px; }
.demo-switch .icon { width: 12px; height: 12px; }
.demo-switch i { height: 5px; width: 5px; background: #89a76b; border-radius: 50%; }
.demo-switch:hover { background: #deebf8; }
.country { font-size: 18px; display: flex; align-items: center; gap: 7px; }
.country span { font-size: 15px; color: #627267; }
.icon-button { border: 1px solid transparent; background: transparent; padding: 7px; width: 34px; height: 34px; display: inline-grid; place-items: center; border-radius: 7px; color: #7d8b80; }
.icon-button:hover:not(:disabled) { background: #eaf2fa; color: var(--green); }
.icon-button .icon { width: 17px; height: 17px; }
main { max-width: 1510px; padding: 38px 39px 20px; margin: 0 auto; }
.page-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 33px; }
.eyebrow { font-size: 13px; letter-spacing: 1.8px; font-weight: 650; color: #789078; margin-bottom: 10px; }
.subtitle { color: #7c897f; font-size: 16px; margin-top: 11px; line-height: 1.6; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 39px; padding: 10px 15px; border: 1px solid #dfe6df; border-radius: 7px; background: #fff; color: #41515b; font-size: 15px; font-weight: 600; white-space: nowrap; }
.button .icon { width: 15px; height: 15px; }
.button:hover { background: #eaf2fa; }
.button.primary { background: #176cdb; border-color: #176cdb; color: #fff; box-shadow: 0 3px 5px #163f2912; }
.button.primary:hover { background: #0c72e8; box-shadow: 0 4px 12px #163f2925; }
.overview-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin: 0 0 17px; }
.section-label { display: flex; align-items: center; gap: 9px; font-size: 15px; font-weight: 600; }
.muted { color: #8c968e; font-weight: 400; }
.live-dot, .tiny-dot { width: 5px; height: 5px; border-radius: 50%; background: #589067; display: inline-block; }
.live-dot { box-shadow: 0 0 0 3px #e6eee2; margin-left: 3px; margin-right: 2px; }
.period-control { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.period-control > .icon { width: 14px; height: 14px; color: #818e80; }
.period-control > span { color: #7a877c; }
select { color: #41515b; padding: 9px 24px 9px 10px; border: 1px solid var(--border); border-radius: 6px; background: #fff; font-size: 15px; max-width: 100%; }
.period-control select { margin-left: 5px; }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; margin-bottom: 22px; }
.metric { background: #fff; border: 1px solid var(--border); padding: 19px 20px 18px; border-radius: 10px; min-width: 0; box-shadow: 0 2px 4px #193e2602; }
.metric-label { display: flex; justify-content: space-between; align-items: center; color: #6e7d72; font-size: 15px; }
.metric-label .icon { width: 16px; height: 16px; color: #8e9f8b; }
.metric strong { font-size: clamp(25px,2.35vw,34px); font-weight: 650; letter-spacing: -1.3px; color: #171d22; display: block; margin: 16px 0 9px; font-variant-numeric: tabular-nums; }
.metric-caption { font-size: 13px; color: #8c968b; display: flex; align-items: center; gap: 5px; }
.metric.highlight { background: #eaf2fa; border-color: #d4e4f3; }
.metric.highlight .metric-label { color: #356883; }
.metric.highlight .metric-caption { color: #61717c; }
.analytics-grid { display: grid; grid-template-columns: 1.8fr 1fr; gap: 21px; margin-bottom: 22px; }
.panel { border: 1px solid var(--border); background: #fff; border-radius: 11px; overflow: hidden; box-shadow: 0 3px 7px #253d2802; min-width: 0; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 22px 22px 19px; }
.panel-heading p { font-size: 14px; color: #929b92; margin-top: 7px; line-height: 1.6; }
.panel-heading > .icon { color: #91a08f; }
.segmented { display: flex; background: #edf2f6; border-radius: 6px; padding: 3px; }
.segmented button { border: 0; background: none; font-size: 13px; border-radius: 4px; padding: 6px 9px; color: #7d887a; }
.segmented button.selected { background: white; color: #176cdb; box-shadow: 0 1px 4px #00000010; }
.chart-key { display: flex; align-items: center; gap: 7px; padding: 1px 25px 0; font-size: 13px; color: #788b7b; }
.chart-key i { width: 7px; height: 7px; background: #176cdb; border-radius: 50%; }
.chart-key span { margin-left: auto; font-size: 12px; text-transform: uppercase; letter-spacing: .7px; color: #a0a99b; }
.chart { display: block; width: 100%; margin: 7px 0 6px; padding: 0 18px 0 7px; }
.chart text { font: 14px 'DM Sans',sans-serif; fill: #9aa498; }
.chart-point { opacity: 0; transition: opacity .2s; }
.chart-point:hover { opacity: 1; r: 6; }
.source-list { padding: 3px 21px 12px; }
.source-row { width: 100%; display: flex; align-items: center; gap: 11px; background: transparent; border: 0; text-align: left; padding: 10px 0; border-radius: 7px; }
.source-row:hover { background: #f4f6f8; }
.source-icon { width: 32px; height: 32px; border-radius: 8px; display: inline-grid; place-items: center; background: #edf2f6; color: #61717c; flex-shrink: 0; }
.source-icon .icon { width: 16px; height: 16px; }
.source-icon.tone-1 { background: #eff3f7; color: #8da4ba; }
.source-icon.tone-2 { background: #fbf4e9; color: #c4a06c; }
.source-icon.tone-3 { background: #f5f0f5; color: #ae97b2; }
.source-info { display: block; flex: 1; min-width: 0; }
.source-info > span:first-child { display: flex; justify-content: space-between; font-size: 14px; color: #61717c; }
.source-info strong { font-weight: 600; color: #35414a; }
.source-track { display: block; width: 100%; background: #e3e9ed; height: 4px; margin-top: 8px; border-radius: 5px; }
.source-track i { display: block; background: var(--bar); height: 4px; border-radius: 5px; }
.source-percent { font-size: 13px; color: #9ca497; width: 27px; text-align: right; }
.panel-footer { display: flex; align-items: center; justify-content: space-between; color: #8d9987; font-size: 13px; border-top: 1px solid #eef1eb; padding: 14px 23px; }
.panel-footer .icon { width: 13px; height: 13px; }
.text-button { display: inline-flex; gap: 7px; align-items: center; border: 0; background: transparent; color: #176cdb; font-size: 14px; padding: 4px 0; text-align: left; }
.text-button:hover { color: #0c72e8; text-decoration: underline; }
.text-button .icon { width: 13px; height: 13px; }
.count { font: 500 13px 'DM Sans',sans-serif; color: #356883; background: #eaf2fa; padding: 3px 6px; border-radius: 4px; margin-left: 6px; vertical-align: middle; }
.table-scroll { overflow-x: auto; position: relative; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: 15px; white-space: nowrap; }
thead { background: #f4f6f8; }
th { color: #859080; font-weight: 500; font-size: 13px; padding: 12px 15px; border-block: 1px solid #eef1e9; }
td { padding: 15px; border-bottom: 1px solid #eef1eb; color: #61717c; }
th:first-child, td:first-child { padding-left: 23px; }
th:last-child, td:last-child { padding-right: 20px; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #f4f6f8; }
.campaign-cell { display: flex; align-items: center; gap: 11px; }
.campaign-cell small { display: block; font-size: 13px; color: #96a08f; margin-top: 4px; }
.campaign-name { font-size: 15px; color: #35414a; font-weight: 500; padding: 0; }
.copy-link { display: flex; align-items: center; gap: 11px; border: 1px solid #e9eee3; background: #f4f6f8; border-radius: 5px; padding: 7px 9px; color: #61717c; font-size: 14px; }
.copy-link:hover { background: #eaf2fa; color: var(--green); }
.copy-link .icon { width: 12px; height: 12px; }
.copy-link span { max-width: 180px; overflow: hidden; text-overflow: ellipsis; }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 7px; border-radius: 5px; font-size: 13px; font-weight: 500; }
.badge i { width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.badge.green { background: #eff6e7; color: #709454; }
.badge.neutral { background: #f1f2ee; color: #8b9384; }
.badge.amber { background: #fff5e5; color: #ab8644; }
.bottom-note { display: flex; align-items: center; gap: 7px; font-size: 13px; color: #98a190; margin: 18px 2px 0; line-height: 1.8; }
.bottom-note .icon { width: 12px; height: 12px; }
footer { display: flex; justify-content: space-between; border-top: 1px solid #e5eae0; margin-top: 28px; padding-top: 17px; color: #a0a899; font-size: 13px; }
.table-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 18px 22px; }
.search-box { display: flex; gap: 9px; align-items: center; width: 250px; max-width: 100%; }
.search-box .icon { width: 16px; color: #93a18a; }
.search-box input { width: 100%; min-width: 0; background: transparent; border: 0; outline-offset: 3px; font-size: 15px; padding: 8px 0; color: #35414a; }
input::placeholder { color: #98a28f; }
.filters, .toolbar-actions { display: flex; align-items: center; gap: 10px; }
.filters select { max-width: 185px; }
.player-id { font-size: 15px; gap: 9px; color: #35414a; }
.player-avatar { width: 29px; height: 29px; display: grid; place-items: center; border: 1px solid #e8ecdf; background: #f8faf3; border-radius: 50%; color: #9aaa89; }
.player-avatar .icon { width: 14px; height: 14px; }
.pagination { display: flex; justify-content: space-between; padding: 16px 23px; border-top: 1px solid var(--border); align-items: center; font-size: 14px; color: #89977d; }
.pagination > div { display: flex; align-items: center; gap: 12px; }
.pagination .icon-button { border-color: var(--border); height: 29px; width: 29px; }
.flipped { transform: rotate(180deg); }
.empty { text-align: center; padding: 60px 20px; }
.empty > .icon { width: 34px; height: 34px; color: #96ac83; margin-bottom: 15px; }
.empty p { color: #8a9a7d; font-size: 16px; margin: 10px 0 20px; }
.earnings-layout { display: grid; grid-template-columns: 1.2fr 1fr; gap: 23px; margin: 23px 0; }
.earnings-hero { position: relative; overflow: hidden; border-radius: 12px; background: var(--casino-sidebar); color: #edf4f5; padding: 30px; }
.earnings-hero .eyebrow { display: block; color: #83d8f4; }
.earnings-hero strong { display: block; font: 600 48px 'Manrope',sans-serif; letter-spacing: -2px; margin: 18px 0 7px; position: relative; z-index: 1; }
.earnings-hero p { font-size: 15px; color: #97a8b2; position: relative; z-index: 1; }
.earnings-hero .badge { margin-top: 27px; border: 1px solid #41515b; color: #c8e9f1; position: relative; z-index: 1; }
.earnings-watermark { font: 700 280px 'Manrope',sans-serif; position: absolute; right: 8px; top: -55px; color: #202a30; transform: rotate(-15deg); user-select: none; }
.terms-card { padding: 26px; }
.terms-card h2 { margin-top: 15px; }
.terms-card p { font-size: 16px; color: #8a997c; line-height: 1.8; margin: 11px 0 17px; max-width: 360px; }
.amount { font-weight: 600; color: #35414a; }
dialog { border: 1px solid #e1e8db; background: #ffffff; border-radius: 16px; padding: 34px; width: min(480px, calc(100% - 32px)); max-height: calc(100dvh - 40px); color: var(--ink); box-shadow: 0 25px 120px #12231940; }
dialog::backdrop { background: #020709b8; backdrop-filter: blur(4px); }
dialog h2 { font-size: 25px; letter-spacing: -.9px; padding-right: 16px; line-height: 1.4; }
.dialog-close { position: absolute; top: 15px; right: 14px; }
.dialog-description { font-size: 16px; color: #87927e; line-height: 1.8; margin: 12px 0 25px; }
.dialog-icon { display: grid; place-items: center; width: 43px; height: 43px; background: #eaf2fa; color: #356883; border-radius: 12px; margin-bottom: 22px; }
form label, .standalone-label { display: block; font-size: 15px; font-weight: 600; margin: 18px 0; color: #41515b; }
form input, form select, .standalone-label input { display: block; width: 100%; border: 1px solid #dfe6d7; background: white; border-radius: 7px; padding: 12px; margin-top: 9px; font-size: 16px; color: #35414a; }
form small { display: block; font-size: 14px; font-weight: 400; margin-top: 8px; }
.tag-input { display: flex; align-items: center; border: 1px solid #dfe6d7; border-radius: 7px; background: #f4f6f8; margin-top: 9px; }
.tag-input span { padding: 0 10px; font-size: 15px; color: #99a28e; font-weight: 400; }
.tag-input input { margin: 0; border-width: 0 0 0 1px; border-radius: 0 7px 7px 0; min-width: 0; }
.form-note { background: #eaf2fa; padding: 13px; border-radius: 7px; font-size: 14px; line-height: 1.8; color: #356883; font-weight: 400; margin-top: 22px; }
.form-note .icon { width: 13px; height: 13px; margin-right: 5px; }
#form-error { font-size: 15px; color: #af503d; margin-top: 10px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 25px; }
.detail-stats { display: flex; gap: 20px; background: #eaf2fa; border: 1px solid #d4e4f3; border-radius: 9px; padding: 18px; margin-bottom: 20px; }
.detail-stats > div { flex: 1; }
.detail-stats strong { display: block; margin-top: 9px; font: 650 25px 'Manrope',sans-serif; }
dl { margin: 22px 0; }
dl > div { display: flex; justify-content: space-between; gap: 15px; padding: 13px 0; border-bottom: 1px solid #e9eee2; font-size: 15px; }
dt { color: #89977d; }
dd { margin: 0; text-align: right; color: #35414a; overflow-wrap: anywhere; }
.timeline { list-style: none; padding: 0; margin: 18px 0; }
.timeline li { display: flex; position: relative; gap: 12px; padding-bottom: 24px; }
.timeline li:not(:last-child)::before { content: ''; position: absolute; top: 28px; bottom: 0; left: 14px; border-left: 1px solid #dce5cd; }
.timeline li > i { width: 29px; height: 29px; border-radius: 50%; display: grid; place-items: center; border: 1px solid #dce7cd; background: #f1f7e8; color: #80a05f; flex-shrink: 0; }
.timeline .icon { width: 13px; height: 13px; }
.timeline strong { font-size: 15px; font-weight: 500; }
.timeline small { display: block; font-size: 14px; margin-top: 6px; }
.timeline .pending { opacity: .65; }
.guide-item { display: flex; gap: 17px; padding: 18px 0; border-top: 1px solid #e8eddf; }
.guide-item b { color: #a6b98e; font-size: 16px; }
.guide-item p { color: #8e9b81; font-size: 15px; line-height: 1.8; margin-top: 6px; }
.avatar.large { width: 50px; height: 50px; font-size: 18px; margin-bottom: 22px; }
#toast { position: fixed; bottom: 26px; left: calc(50% + 119px); transform: translate(-50%,20px); opacity: 0; pointer-events: none; display: flex; align-items: center; gap: 10px; background: #171d22; color: #edf4f5; border: 1px solid #41515b; padding: 14px 22px; border-radius: 10px; box-shadow: 0 8px 30px #0b231d25; z-index: 10; transition: opacity .2s, transform .2s; font-size: 16px; max-width: calc(100vw - 40px); width: max-content; }
#toast.visible { opacity: 1; transform: translate(-50%,0); }
#toast .icon { color: #83d8f4; width: 16px; height: 16px; }
@media (min-width: 1600px) { main { padding-top: 48px; } .metric { padding: 25px; } .panel-heading { padding-top: 26px; } .source-row { padding-block: 17px; } }
@media (max-width: 1200px) { .sidebar { width: 205px; padding-inline: 14px; } .workspace-main { margin-left: 205px; } .topbar { padding-inline: 25px; } main { padding-inline: 25px; } .page-heading { gap: 15px; } h1 { font-size: 29px; } .metrics { gap: 10px; } .metric { padding: 17px 13px; } .metric-caption { font-size: 12px; } .analytics-grid { grid-template-columns: 1.55fr 1fr; gap: 15px; } .panel-heading { padding-inline: 17px; } .performance .panel-heading { flex-wrap: wrap; } .source-list { padding-inline: 16px; } .sources h2 { font-size: 16px; } .period-control > span { display: none; } #toast { left: calc(50% + 102px); } }
@media (max-width: 940px) { .sidebar { width: 180px; } .workspace-main { margin-left: 180px; } .brand { font-size: 26px; padding-left: 9px; } .workspace { font-size: 14px; padding-inline: 7px; } .workspace-symbol { width: 25px; } main { padding: 28px 20px 20px; } .page-heading { align-items: flex-start; flex-direction: column; } .metrics { grid-template-columns: repeat(2,minmax(0,1fr)); } .analytics-grid { grid-template-columns: 1fr; } .performance .panel-heading { flex-wrap: wrap; } .source-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 25px; padding-bottom: 20px; } .source-row { padding: 15px 0; } .earnings-layout { grid-template-columns: 1fr; } .topbar { padding-inline: 20px; } .topbar-actions { gap: 10px; } .country { display: none; } .table-toolbar { flex-wrap: wrap; } .overview-toolbar { flex-wrap: wrap; } #toast { left: calc(50% + 90px); } }
@media (max-width: 640px) { .sidebar { position: relative; width: 100%; padding: 19px 16px 9px; } .brand { font-size: 25px; padding: 0; width: fit-content; } .brand small { font-size: 11px; letter-spacing: 4px; margin-top: 7px; } .workspace, .nav-caption, .sidebar-bottom { display: none; } nav { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); margin-top: 21px; gap: 4px; } .nav-item { justify-content: center; padding: 0 4px; gap: 6px; font-size: 14px; min-height: 39px; margin: 0; white-space: nowrap; } .nav-item .icon { width: 14px; height: 14px; } .nav-count { display: none; } .workspace-main { margin-left: 0; } .topbar { height: 57px; padding-inline: 18px; } .breadcrumbs { font-size: 14px; gap: 8px; } .topbar-actions { gap: 5px; } .demo-switch { font-size: 13px; padding: 6px 8px; } main { padding: 26px 17px 18px; } h1 { font-size: 29px; max-width: 330px; letter-spacing: -1px; } .page-heading { gap: 20px; margin-bottom: 27px; } .subtitle { font-size: 15px; max-width: 330px; } .page-heading .button { min-height: 41px; } .eyebrow { font-size: 12px; } .section-label { font-size: 14px; gap: 7px; } .section-label .muted { display: none; } .overview-toolbar { gap: 10px; } .period-control { gap: 4px; } .period-control select { font-size: 14px; padding: 8px 5px; } .period-control > .icon { display: none; } .metrics { gap: 10px; margin-bottom: 17px; } .metric { padding: 15px 13px; } .metric strong { font-size: 29px; margin: 15px 0 9px; } .metric-label { font-size: 14px; } .metric-label .icon { width: 13px; } .metric-caption { font-size: 12px; } .panel-heading { padding: 18px 16px; } h2 { font-size: 16px; } .performance .panel-heading { flex-wrap: wrap; gap: 12px; } .chart { min-height: 160px; padding-right: 10px; } .chart text { font-size: 16px; } .chart-key { padding-inline: 18px; } .source-list { display: block; padding-bottom: 8px; } .source-row { padding-block: 12px; } .sources h2 { font-size: 17px; } .source-info > span:first-child { font-size: 15px; } .links-panel .panel-heading p { max-width: 190px; } th:first-child, td:first-child { padding-left: 16px; } .bottom-note { align-items: flex-start; font-size: 13px; } .bottom-note .icon { margin-top: 3px; } footer { margin-top: 23px; font-size: 12px; } .table-toolbar { padding-inline: 16px; gap: 8px; } .search-box { width: 100%; } .filters { width: 100%; } .filters select { flex: 1; min-width: 0; font-size: 14px; } .toolbar-actions { width: 100%; justify-content: space-between; } .earnings-hero { padding: 25px; } .earnings-hero strong { font-size: 42px; } dialog { padding: 27px 23px; } dialog h2 { font-size: 23px; } .dialog-actions .button { font-size: 14px; padding-inline: 12px; } #toast { left: 50%; font-size: 15px; bottom: 20px; } }
/* Shared brand accents follow the casino's primary action and balance colours. */
.chart stop { stop-color: #2997ff; }
.chart polyline, .chart-point { stroke: #176cdb; }
.chart-key i { background: #176cdb; }
/* Readable type and controls in both palettes. */
:root { color-scheme: light; --muted: #61717c; }
.theme-toggle { min-height: 38px; }
.workspace-symbol, .workspace-indicator { flex-shrink: 0; }
.workspace { gap: 8px; }
.source-percent { width: 36px; flex-shrink: 0; }
.panel-heading, .table-toolbar { flex-wrap: wrap; }
.metric-caption { line-height: 1.5; }
.subtitle, .muted, .breadcrumbs, .panel-heading p, .metric-caption, .period-control > span,
.campaign-cell small, .bottom-note, footer, .panel-footer, .chart-key, .source-percent,
.dialog-description, .terms-card p, .guide-item p, .empty p, dt { color: var(--muted); }
th, .copy-link { color: #61717c; }
input::placeholder { color: #73816c; }
.badge.green { color: #4f7234; }
.badge.neutral { color: #687160; }
.badge.amber { color: #846126; }

:root[data-theme="dark"] { color-scheme: dark; background: var(--casino-background); color: #dce7eb; --green: #83d8f4; --ink: #edf4f5; --muted: #97a8b2; --border: var(--casino-border); }
[data-theme="dark"] .sidebar { background: var(--casino-sidebar); }
[data-theme="dark"] .topbar { background: var(--casino-header); }
[data-theme="dark"] :is(.panel, .metric, dialog, .skip-link) { background: var(--casino-surface); border-color: var(--border); }
[data-theme="dark"] :is(h1, h2, h3, .metric strong, .breadcrumbs span, .campaign-name, .source-info strong, .amount, dd, .player-id) { color: var(--ink); }
[data-theme="dark"] :is(.metric-label, .source-info > span:first-child, td, form label, .standalone-label, .country span) { color: #b2c0c7; }
[data-theme="dark"] :is(.subtitle, .muted, .breadcrumbs, .panel-heading p, .metric-caption, .period-control > span, .campaign-cell small, .bottom-note, footer, .panel-footer, .chart-key, .source-percent, .dialog-description, .terms-card p, .guide-item p, .empty p, dt) { color: var(--muted); }
[data-theme="dark"] :is(.button, select, form input, form select, .standalone-label input) { background: #1b252b; color: #dce7eb; border-color: #41515b; }
[data-theme="dark"] .search-box input { color: var(--ink); }
[data-theme="dark"] input::placeholder { color: #97a8b2; }
[data-theme="dark"] .button.primary { background: var(--casino-accent); color: #ffffff; border-color: var(--casino-accent); }
[data-theme="dark"] .button.primary:hover { background: #1976eb; }
[data-theme="dark"] :is(.button:not(.primary):hover, .icon-button:hover, .copy-link:hover, .demo-switch:hover) { background: #252f36; color: #edf4f5; }
[data-theme="dark"] :is(.metric.highlight, .form-note, .detail-stats, .dialog-icon, .count, .demo-switch) { background: #1a3444; border-color: #356883; color: #c8e9f1; }
[data-theme="dark"] .metric.highlight :is(.metric-label, .metric-caption) { color: #c8e9f1; }
[data-theme="dark"] :is(thead, .segmented, .tag-input) { background: var(--casino-header); }
[data-theme="dark"] .segmented button { color: #97a8b2; }
[data-theme="dark"] .segmented button.selected { background: #176cdb; color: #ffffff; }
[data-theme="dark"] :is(th, td, .panel-footer, footer, dl > div, .guide-item, .tag-input) { border-color: var(--border); }
[data-theme="dark"] th { color: #aab8c0; }
[data-theme="dark"] :is(tbody tr:hover, .source-row:hover) { background: #171d22; }
[data-theme="dark"] :is(.copy-link, .source-icon, .player-avatar, .timeline li > i) { background: #202a30; border-color: #35414a; color: #b2c0c7; }
[data-theme="dark"] .source-icon.tone-1 { background: #283744; color: #afc8df; }
[data-theme="dark"] .source-icon.tone-2 { background: #403629; color: #dcc095; }
[data-theme="dark"] .source-icon.tone-3 { background: #3a2f3c; color: #cbb4d0; }
[data-theme="dark"] .source-track { background: #273038; }
[data-theme="dark"] :is(.text-button, .eyebrow, .icon-button) { color: #83d8f4; }
[data-theme="dark"] .text-button:hover { color: #dcf7ff; }
[data-theme="dark"] .badge.green { background: #173d37; color: #bcebe3; }
[data-theme="dark"] .badge.neutral { background: #252e35; color: #b2c0c7; }
[data-theme="dark"] .badge.amber { background: #503518; color: #f9d289; }
[data-theme="dark"] .chart text { fill: #97a8b2; }
[data-theme="dark"] .chart line { stroke: var(--casino-border); }
[data-theme="dark"] .chart polyline { stroke: #83d8f4; }
[data-theme="dark"] .chart-point { fill: #83d8f4; }
[data-theme="dark"] .live-dot { box-shadow: 0 0 0 3px #202a30; }
[data-theme="dark"] #form-error { color: #ffae9a; }
@media (min-width: 641px) and (max-width: 940px) { .workspace { flex-wrap: wrap; } .nav-item { padding-inline: 7px; gap: 7px; } .nav-count { display: none; } .theme-toggle span { display: none; } }
@media (max-width: 640px) {
  .nav-item { flex-direction: column; gap: 5px; min-height: 58px; font-size: 13px; }
  .nav-item .icon { width: 18px; height: 18px; }
  .breadcrumbs { display: none; }
  .topbar { height: 65px; }
  .topbar-actions { width: 100%; justify-content: space-between; gap: 8px; }
  .theme-toggle { padding-inline: 10px; font-size: 13px; }
  .demo-switch { font-size: 12px; }
  .filters { flex-wrap: wrap; }
  .dialog-actions { flex-wrap: wrap; }
  .detail-stats { flex-wrap: wrap; }
  footer { gap: 20px; line-height: 1.6; }
}
.button.primary, [data-theme="dark"] .button.primary { background: linear-gradient(135deg, #0c72e8, #2997ff); border-color: #ffffff3d; color: #fff; }
.button.primary:hover, [data-theme="dark"] .button.primary:hover { background: linear-gradient(135deg, #1681f7, #3aa4ff); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }

/* Keep the partner workspace focused on navigation and account work. */
@media (min-width: 1201px) {
  .sidebar { width: 278px; }
  .workspace-main { margin-left: 278px; }
  #toast { left: calc(50% + 139px); }
}
.workspace, .help-card, .help-button, .demo-switch { display: none; }
.nav-caption { margin-top: 50px; }
.sidebar-bottom { padding-top: 24px; }
