/* Reis Poker Admin â€” professional analytics workspace. No external fonts or assets. */
:root { color-scheme:light; --bg:#f4f5f7; --surface:#fff; --text:#242c2a; --ink:#242c2a; --muted:#66716c; --soft:#48574d; --border:#e2e6e4; --accent:#d6f578; --sidebar:#1b2421; --teal:#456128; --gold:#88642b; --danger:#a8393e; --radius:12px; font-family:"Segoe UI Variable Text","Segoe UI",Arial,sans-serif; font-synthesis:none; }
* { box-sizing:border-box; }
body { margin:0; background:var(--bg); color:var(--ink); font-size:13px; line-height:1.55; -webkit-font-smoothing:antialiased; }
button,input,select,textarea { font:inherit; } button,a,input,textarea { -webkit-tap-highlight-color:transparent; }
button { cursor:pointer; } button:disabled { cursor:not-allowed; opacity:.5; }
a { color:var(--ink); text-decoration:none; } a:hover { text-decoration:underline; text-underline-offset:3px; }
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,[tabindex]:focus-visible,summary:focus-visible { outline:3px solid #6c8e38; outline-offset:3px; }
h1,h2,h3,p { margin:0; } h1 { font-size:27px; line-height:1.25; letter-spacing:-.9px; font-weight:650; } h2 { font-size:15px; line-height:1.4; letter-spacing:-.2px; font-weight:650; } h3 { font-size:13px; } p { color:var(--muted); } strong { font-weight:650; } small { font-size:12px; } [hidden] { display:none!important; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.icon-definitions { position:absolute; width:0; height:0; overflow:hidden; }
.icon,.line-icon { width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:1.65; stroke-linecap:round; stroke-linejoin:round; flex-shrink:0; }
.skip-link { position:fixed; z-index:100; top:10px; left:10px; padding:12px 20px; background:var(--accent); border-radius:8px; }
.skip-link:not(:focus) { clip-path:inset(50%); width:1px; height:1px; padding:0; overflow:hidden; white-space:nowrap; }
.environment-banner { min-height:30px; padding:6px 16px; background:#eaf0df; color:#4f603e; border-bottom:1px solid #dce4d0; display:flex; justify-content:center; align-items:center; gap:10px; font-size:11px; }
.environment-banner strong { font-size:9px; letter-spacing:1px; } .environment-dot { width:5px; height:5px; border-radius:50%; background:#698743; }

/* Navigation and shell */
.app-shell { display:flex; min-height:calc(100dvh - 30px); }
.sidebar { width:218px; flex:0 0 218px; background:var(--sidebar); color:#f3f6ee; padding:27px 14px 18px; display:flex; flex-direction:column; }
.brand,.login-brand { color:#f7faef; display:flex; gap:11px; align-items:center; font-size:34px; line-height:.9; font-weight:750; letter-spacing:-2px; }
.brand { margin:0 12px 35px; } .brand:hover { text-decoration:none; }
.brand-caption { display:block; font-size:8px; line-height:1.3; letter-spacing:1.8px; font-weight:550; color:#b7c0ae; margin-top:8px; }
.brand-mark { display:grid; place-items:center; width:37px; height:40px; background:var(--accent); border-radius:10px 10px 10px 3px; color:#242d1b; transform:rotate(-5deg); flex-shrink:0; }
.brand-mark .icon { width:23px; height:23px; transform:rotate(5deg); }
.sidebar-label { margin:0 12px 11px; color:#9eaaa3; font-size:9px; letter-spacing:1.25px; }
.sidebar nav { display:grid; gap:5px; }
.nav-link { display:flex; align-items:center; min-height:42px; padding:10px 12px; gap:11px; color:#c2cbc6; border-radius:7px; font-size:12px; font-weight:500; transition:background .15s,color .15s; }
.nav-link .icon { width:18px; height:18px; } .nav-link:hover { background:#293630; color:#fff; text-decoration:none; }
.nav-link.active { background:#d6f578; color:#26341d; font-weight:650; }
.nav-current-dot { width:5px; height:5px; border-radius:50%; background:currentColor; margin-left:auto; display:none; } .nav-link.active .nav-current-dot { display:block; }
.nav-submenu { display:grid; margin:1px 0 7px 20px; padding-left:10px; border-left:1px solid #526056; gap:3px; }
.nav-submenu .nav-link { min-height:34px; font-size:11px; padding:7px 10px; } .nav-submenu .nav-link.active { color:#e0f5b2; background:#34432c; }
.sidebar-context { margin:auto 6px 19px; padding:35px 7px 0; display:grid; gap:4px; color:#9ca9a1; font-size:11px; }
.sidebar-context strong { color:#d7e0da; font-size:12px; } .context-label { font-size:8px; letter-spacing:1.1px; margin-bottom:7px; }
.sidebar-bottom { display:flex; align-items:center; gap:10px; padding:16px 10px 0; border-top:1px solid #344139; color:#d2dcd5; font-size:11px; }
.sidebar-bottom small { display:block; color:#9faea3; font-size:10px; margin-top:2px; } .secure-indicator { width:6px; height:6px; border-radius:50%; background:var(--accent); box-shadow:0 0 0 4px #35442b; }
.workspace { flex:1; min-width:0; }
.topbar { min-height:65px; padding:13px 28px; border-bottom:1px solid var(--border); display:flex; align-items:center; justify-content:space-between; gap:24px; background:#fff; }
.breadcrumb { font-size:11px; color:var(--muted); display:flex; align-items:center; gap:12px; white-space:nowrap; } .breadcrumb>span { color:#9aa59e; } .breadcrumb strong { font-weight:550; color:var(--ink); }
.global-search { display:flex; align-items:center; gap:8px; min-width:140px; width:250px; max-width:30%; margin-left:auto; border:1px solid var(--border); padding:0 9px; border-radius:7px; background:#f8f9fa; color:#6d7970; }
.global-search .icon { width:15px; height:15px; } .global-search input { border:0; background:transparent; min-width:0; width:100%; height:34px; font-size:11px; color:var(--ink); } .global-search input::placeholder { color:#69756e; }
.global-search button { border:0; background:transparent; color:#647369; padding:2px 4px; font-size:16px; }
.topbar-actions { display:flex; align-items:center; gap:15px; }
.environment-label { font-size:10px; color:#55644a; border:1px solid #dce4d2; background:#f1f5ea; border-radius:5px; padding:4px 8px; }
.user-summary { display:flex; align-items:center; gap:8px; font-size:11px; font-weight:550; } .user-avatar { width:28px; height:28px; border-radius:50%; background:#e8ede5; color:#526847; display:grid; place-items:center; font-size:9px; flex-shrink:0; }
.menu-toggle,.sidebar-close { display:none!important; }
main { max-width:1680px; margin:auto; padding:27px 28px 18px; }
.page-heading { display:flex; align-items:center; justify-content:space-between; gap:20px; margin-bottom:22px; }
.eyebrow { display:block; color:#637452; font-size:9px; letter-spacing:1.4px; font-weight:650; margin-bottom:7px; } .page-heading p { margin-top:6px; font-size:12px; max-width:650px; }
.heading-actions { display:flex; align-items:center; gap:8px; flex-shrink:0; } .heading-actions .button { font-size:11px; min-height:35px; }
.workspace-footer { display:flex; justify-content:space-between; gap:15px; margin-top:25px; padding-top:17px; border-top:1px solid var(--border); color:#68756d; font-size:10px; }
.workspace-footer>span:first-child { letter-spacing:1px; font-size:8px; display:flex; align-items:center; gap:8px; } .workspace-footer strong { font-size:19px; letter-spacing:-1px; line-height:1; color:#4c5b4e; }

/* Shared components */
.button { display:inline-flex; align-items:center; justify-content:center; gap:7px; min-height:37px; padding:8px 13px; border:1px solid transparent; border-radius:7px; font-size:12px; line-height:1.4; font-weight:600; transition:background .15s,border-color .15s; }
.button:hover { text-decoration:none; } .button svg { width:16px; height:16px; flex-shrink:0; }
.button-primary { color:#29371e; background:var(--accent); border-color:#c8e775; } .button-primary:hover:not(:disabled) { background:#c9ec67; border-color:#b4d258; }
.button-secondary { background:#fff; color:#455748; border-color:#d9e0da; } .button-secondary:hover:not(:disabled) { background:#f1f5ed; border-color:#bac8ae; }
.button-quiet { background:transparent; color:#5c6a61; } .button-quiet:hover:not(:disabled) { color:#293e22; background:#eaf0e4; }
.button-danger { color:#fff; background:#a13f43; border-color:#a13f43; } .button-danger:hover:not(:disabled) { background:#863236; }
.button-small { min-height:30px; padding:5px 10px; font-size:11px; } .icon-button { display:grid; place-items:center; width:35px; height:35px; border:1px solid #d8e0d5; color:var(--ink); background:#fff; border-radius:7px; }
.text-link { font-size:12px; font-weight:600; color:#526e35; } .text-muted { color:var(--muted); } .text-small { font-size:12px; } .text-positive { color:#367548; } .text-negative { color:#a53d49; } .text-gold { color:#88642b; }
.number,.metric-value { font-variant-numeric:tabular-nums; } .number { white-space:nowrap; } .mono { font-family:Consolas,"SFMono-Regular",monospace; font-size:11px; }
.status-pill { display:inline-flex; align-items:center; padding:3px 8px; font-size:10px; line-height:1.4; border-radius:5px; font-weight:600; white-space:nowrap; background:#edf4e5; color:#4d6c36; border:1px solid #dfebd3; }
.status-pill.muted { background:#f1f3f2; border-color:#e1e5e2; color:#637268; } .status-pill.warning { background:#fff5df; border-color:#f0e2bc; color:#806125; } .status-pill.danger { background:#fcecef; border-color:#efdadf; color:#9b3f50; }
.notice { margin-bottom:17px; padding:13px 16px; border:1px solid #dce5d4; border-radius:8px; background:#f0f5e9; color:#536743; font-size:12px; line-height:1.65; }
.notice p { color:inherit; font-size:11px; margin-top:3px; } .notice.warning { background:#fcf7eb; border-color:#eee0c1; color:#816431; } .notice.error { background:#fbeef0; border-color:#edcdd3; color:#933b48; }
.panel { min-width:0; border:1px solid var(--border); border-radius:var(--radius); background:var(--surface); overflow:hidden; }
.panel-heading { padding:19px 20px 15px; display:flex; align-items:flex-start; justify-content:space-between; gap:14px; } .panel-heading p { margin-top:4px; font-size:11px; } .panel-body { padding:0 20px 20px; }
.panel-footer { padding:12px 20px; background:#fafbfa; border-top:1px solid var(--border); color:var(--muted); font-size:11px; display:flex; justify-content:space-between; align-items:center; gap:16px; } .panel-spaced { margin-bottom:20px; }
.section-links { display:flex; flex-wrap:wrap; gap:10px; margin:0 0 20px; }

/* Context, saved views and filters */
.analytics-filterbar { border:1px solid var(--border); background:#fff; border-radius:10px; padding:17px 20px; margin-bottom:19px; }
.filter-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(145px,1fr)); align-items:end; gap:13px; }
.filter-grid .field { min-width:0; } .filter-grid .field input,.filter-grid .field select { min-height:37px; padding:7px 10px; font-size:12px; background:#fff; }
.filter-grid label { font-size:11px; } .filter-actions { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin-top:15px; }
.filter-actions label,.comparison-note { font-size:11px; color:#5e6d62; } input[type="checkbox"] { accent-color:#577b32; }
.filter-chips { display:flex; flex-wrap:wrap; align-items:center; gap:6px; margin:12px 0 0; }
.filter-chip { display:inline-flex; align-items:center; gap:7px; max-width:100%; padding:4px 9px; border:1px solid #dde5d5; border-radius:5px; color:#536b3b; background:#f2f6eb; font-size:10px; overflow-wrap:anywhere; }
button.filter-chip:hover { background:#e7f0d9; border-color:#b6c994; }
.query-meta { color:#67736b; font-size:10px; line-height:1.65; margin:10px 1px 17px; overflow-wrap:anywhere; }
.query-meta>span { display:block; }
.saved-views { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin:12px 0 0; padding-top:12px; border-top:1px solid #edf0ed; font-size:11px; }
.saved-views input { min-width:100px; max-width:210px; padding:7px 10px; border:1px solid var(--border); border-radius:6px; font-size:11px; }
.saved-view-item { display:inline-flex; max-width:100%; align-items:center; border:1px solid #dee5d7; background:#f8faf4; border-radius:6px; }
.saved-view-item button { border:0; background:transparent; color:#516641; font-size:11px; padding:6px 9px; max-width:100%; overflow-wrap:anywhere; }
.saved-view-item button+button { border-left:1px solid #dee5d7; }
details.saved-views { display:block; margin:0 0 20px; padding:0; }
details.saved-views>summary { padding:11px 18px; cursor:pointer; color:#587045; font-size:11px; font-weight:600; }
details.saved-views[open]>summary { border-bottom:1px solid var(--border); }
details.saved-views>.filter-grid { padding:17px 18px 10px; }
details.saved-views>.field-help { padding:0 18px 16px; }
details.saved-views input { max-width:none; }
.filter-grid>.confirmation-label { margin:0; min-height:37px; align-items:center; font-size:11px; }
.comparison-note { margin:7px 0 0; }

/* Summary and charts */
.metrics-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:15px; margin-bottom:20px; }
.metric-card { padding:19px 20px 17px; min-width:0; background:#fff; border:1px solid var(--border); border-radius:10px; }
.metric-top { display:flex; align-items:center; justify-content:space-between; gap:9px; } .metric-label { font-size:11px; color:#607062; } .metric-icon { color:#718963; width:17px; height:17px; flex-shrink:0; }
.metric-value { margin-top:12px; font-size:30px; line-height:1.2; letter-spacing:-.9px; font-weight:650; overflow-wrap:anywhere; }
.metric-note { margin-top:6px; font-size:10px; color:#6b776b; line-height:1.6; }
.metric-card:first-child { border-color:#cbdcab; background:#f7faef; } .metric-card:first-child .metric-value { color:#354b26; }
.charts-grid { display:grid; grid-template-columns:minmax(0,1.2fr) minmax(0,1fr); gap:20px; margin-bottom:20px; align-items:start; }
.analytics-chart { width:100%; display:block; min-width:0; padding:3px 17px 0; }
svg.analytics-chart { aspect-ratio:620/240; overflow:visible; } .analytics-chart svg { width:100%; display:block; }
.chart-axis { font:10px "Segoe UI",sans-serif; fill:#6a776d; } .chart-gridline { stroke:#e8ece8; stroke-width:1; }
.chart-series-a { fill:none; stroke:#638c34; stroke-width:2.5; stroke-linecap:round; stroke-linejoin:round; }
.chart-series-b { fill:none; stroke:#7e96b0; stroke-width:2; stroke-dasharray:5 4; stroke-linecap:round; }
.chart-point { fill:#fff; stroke:#638c34; stroke-width:2; cursor:pointer; } .chart-point:hover,.chart-point:focus { fill:#d6f578; stroke-width:3; }
.chart-hitarea { fill:transparent; cursor:pointer; } .chart-hitarea:hover { fill:#d6f57822; }
.chart-bars { fill:#8baa5e; } .chart-bars:hover { fill:#678d37; }
.chart-bar-a { fill:#6d8c41; } .chart-bar-b { fill:#7994b1; }
.chart-legend { display:flex; flex-wrap:wrap; align-items:center; gap:14px; padding:9px 20px 14px; color:#61715f; font-size:10px; }
.chart-legend>span { display:inline-flex; align-items:center; gap:6px; } .chart-legend i { display:inline-block; width:8px; height:8px; border-radius:2px; background:#638c34; }
.chart-legend i.previous { background:#7e96b0; }
.legend-series-a::before,.legend-series-b::before { content:""; width:8px; height:8px; border-radius:2px; background:#638c34; flex-shrink:0; }
.legend-series-b::before { background:#7994b1; }
.chart-table { border-top:1px solid var(--border); background:#fdfefd; }
.chart-table summary { cursor:pointer; padding:11px 20px; font-size:11px; color:#587343; font-weight:600; }
.chart-table[open] summary { border-bottom:1px solid var(--border); } .chart-table table { font-size:11px; }
.chart-table th,.chart-table td { padding:10px 15px; }
.attention-list { padding:0 20px 4px; }
.attention-row { display:flex; align-items:center; justify-content:space-between; gap:15px; padding:14px 0; border-top:1px solid #edf0eb; }
.attention-row:first-child { border-top:0; } .attention-row strong { font-size:12px; } .attention-row p,.attention-row small { font-size:11px; color:var(--muted); } .attention-row>div { min-width:0; }
.attention-row>span:not(.status-pill) { flex:1; }
.mfa-form { display:grid; gap:12px; margin-top:20px; }
.mfa-form label { font-weight:600; font-size:13px; }
.mfa-form input { width:100%; letter-spacing:.4em; font-size:22px; padding:12px; }
.catalogue-list { display:grid; gap:0; } .catalogue-list>article,.catalogue-list>div,.catalogue-list>li { padding:17px 20px; border-top:1px solid var(--border); } .catalogue-list p { margin-top:4px; font-size:12px; }
.overview-grid { display:grid; grid-template-columns:1fr 1fr; gap:20px; margin-bottom:20px; }
.coverage-note { display:flex; align-items:flex-start; gap:9px; padding:12px 15px; border-radius:8px; background:#edf2e6; margin-bottom:17px; }
.coverage-note p { font-size:11px; color:#5e7050; } .coverage-indicator { width:5px; height:5px; border-radius:50%; background:#718d48; margin-top:6px; flex-shrink:0; }

/* Data tables and player detail */
.toolbar { padding:18px 20px; display:flex; align-items:flex-end; justify-content:space-between; gap:18px; border-bottom:1px solid var(--border); } .search-form { display:flex; align-items:flex-end; flex:1; gap:12px; max-width:540px; }
.table-count { font-size:11px; color:#68776a; } .field { display:flex; flex-direction:column; gap:6px; min-width:0; } .field.grow { flex:1; } .field label,.field-label { font-size:12px; font-weight:600; color:#4f6051; }
.field input,.field select,.field textarea { width:100%; min-height:41px; border:1px solid #d5ded2; border-radius:7px; color:#293728; background:#fafbf8; padding:9px 11px; font-size:13px; }
.field input:focus,.field select:focus,.field textarea:focus { border-color:#819e60; background:#fff; } .field input::placeholder,.field textarea::placeholder { color:#74806e; } .field textarea { resize:vertical; min-height:105px; }
.field-help { font-size:11px; color:#63745c; line-height:1.65; } .field-row { display:grid; grid-template-columns:1fr 1fr; gap:17px; }
.table-wrap { overflow:auto; max-width:100%; overscroll-behavior-x:contain; } table { width:100%; border-collapse:collapse; text-align:left; }
th { padding:12px 19px; color:#5f6f62; background:#f8faf8; border-bottom:1px solid var(--border); white-space:nowrap; font-size:10px; letter-spacing:.4px; text-transform:uppercase; font-weight:650; }
td { padding:14px 19px; color:#586b5b; border-bottom:1px solid #edf0ec; font-size:12px; vertical-align:middle; } tbody tr:last-child td { border-bottom:0; } tbody tr:hover { background:#f6f9f2; } td strong { color:#30432c; } td a:not(.button) { font-weight:600; }
td:has(>.number) { text-align:right; } .player-cell { display:flex; align-items:center; gap:10px; min-width:165px; }
.player-avatar { width:32px; height:32px; flex-shrink:0; display:grid; place-items:center; color:#5b7345; background:#edf2e5; border-radius:8px; font-size:10px; font-weight:650; border:1px solid #e0e9d6; }
tbody tr:nth-child(3n+2) .player-avatar { background:#f1eddf; border-color:#e7dfc9; color:#7e6b3d; } tbody tr:nth-child(3n+3) .player-avatar { background:#eaf0ed; border-color:#dde6df; color:#597465; }
.player-sub { margin-top:3px; font-size:10px; color:#617456; } .player-avatar.large { width:52px; height:52px; font-size:18px; border-radius:12px; }
.pagination { display:flex; align-items:center; gap:7px; flex-shrink:0; } .pagination>span { margin-right:6px; font-size:11px; } .back-link { display:inline-block; margin-bottom:18px; color:#58723c; font-size:12px; }
.profile-header { padding:23px; display:flex; align-items:center; justify-content:space-between; gap:18px; } .profile-identity { display:flex; align-items:center; gap:14px; min-width:0; } .profile-identity h2 { font-size:22px; letter-spacing:-.6px; overflow-wrap:anywhere; } .profile-identity>div { min-width:0; } .profile-sub { display:flex; align-items:center; gap:10px; margin-top:6px; }
.detail-grid { margin:0 23px 23px; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:13px; } .detail-item { padding:18px; border:1px solid #dfe6d9; border-radius:9px; background:#f7f9f3; }
.detail-item:first-child { background:#273224; border-color:#273224; color:#f2f7e9; } .detail-item dt { color:#627854; font-size:11px; } .detail-item dd { margin:8px 0 0; font-size:27px; font-weight:550; letter-spacing:-.8px; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.detail-item small { display:block; font-size:10px; color:#617551; margin-top:8px; font-weight:400; } .detail-item:first-child dt,.detail-item:first-child small { color:#c1d2ad; }
.command-id { font-family:Consolas,monospace; font-size:10px; color:#637757; overflow-wrap:anywhere; } .audit-reason { max-width:240px; overflow-wrap:anywhere; }

/* Native modal preview keeps keyboard focus inside the selected player. */
dialog.player-preview { position:fixed; inset:0 0 0 auto; margin:0; width:min(460px,100vw); max-width:100vw; height:100dvh; max-height:100dvh; padding:0; border:0; border-left:1px solid var(--border); color:var(--ink); background:#fff; box-shadow:-16px 0 70px #10241726; }
dialog.player-preview[open] { display:flex; flex-direction:column; } dialog.player-preview::backdrop { background:#16221b66; backdrop-filter:blur(2px); }
.dialog-heading { display:flex; justify-content:space-between; align-items:center; gap:14px; padding:22px 24px; border-bottom:1px solid var(--border); }
.dialog-heading h2 { font-size:18px; } .dialog-body { padding:24px; overflow-y:auto; flex:1; } .dialog-body .detail-grid { margin:22px 0; grid-template-columns:1fr; }
.dialog-actions { display:flex; flex-wrap:wrap; gap:9px; padding:18px 24px; border-top:1px solid var(--border); background:#fafcf8; }
.dialog-body .preview-row dd { margin:0; font-size:17px; color:#364a2d; }
.dialog-body .preview-row:last-child { background:#f5f8f0; color:#647452; }
.dialog-body .preview-row:last-child dd { color:#364a2d; }
.compact-density td { padding-top:8px; padding-bottom:8px; } .compact-density .metric-card { padding-top:14px; padding-bottom:13px; } .compact-density .player-avatar { width:27px; height:27px; font-size:9px; }

/* Two-step wallet operation */
.form-layout { display:grid; grid-template-columns:minmax(0,1.12fr) minmax(300px,.88fr); gap:25px; align-items:start; } .form-panel { padding:27px; } .form-panel h2 { margin-bottom:7px; font-size:21px; letter-spacing:-.6px; } .form-panel>p { margin-bottom:25px; font-size:12px; } .form-stack { display:grid; gap:22px; }
.operation-options { padding:0; margin:0; border:0; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:7px; } .operation-options legend { margin-bottom:9px; color:#4a5a3d; font-size:12px; font-weight:600; }
.operation-choice { position:relative; } .operation-choice input { position:absolute; opacity:0; inset:0; width:100%; height:100%; margin:0; cursor:pointer; }
.operation-choice label { min-height:45px; padding:8px; display:flex; align-items:center; justify-content:center; border:1px solid #dce4d0; background:#f6f9f0; color:#61724d; border-radius:9px; pointer-events:none; font-size:11px; font-weight:550; }
.operation-choice input:checked+label { background:#293720; color:#e6f5cd; border-color:#293720; } .operation-choice input:focus-visible+label { outline:3px solid #8cac53; outline-offset:3px; } .operation-choice input:disabled+label { opacity:.5; }
.form-actions { display:flex; align-items:center; flex-wrap:wrap; gap:14px; padding-top:2px; } .form-actions .button { min-height:44px; } .form-note { color:#647653; font-size:10px; }
.preview-placeholder { min-height:305px; padding:35px 28px; display:flex; align-items:center; justify-content:center; flex-direction:column; text-align:center; background:repeating-linear-gradient(-45deg,#f8faf5,#f8faf5 8px,#f5f8f0 8px,#f5f8f0 9px); }
.preview-icon { width:53px; height:53px; border:1px solid #cedbbd; border-radius:50%; color:#5b7c35; background:#fff; font-size:25px; display:grid; place-items:center; margin-bottom:21px; } .preview-placeholder h2 { font-size:18px; } .preview-placeholder p { font-size:12px; max-width:275px; margin-top:9px; line-height:1.75; }
.preview-amounts { margin:23px 0; border:1px solid #dfe7d4; border-radius:13px; overflow:hidden; } .preview-row { display:flex; align-items:center; justify-content:space-between; gap:14px; padding:15px 18px; color:#647452; border-bottom:1px solid #e0e7d7; font-size:11px; }
.preview-row strong { color:#3a4b2c; font-size:15px; font-variant-numeric:tabular-nums; } .preview-row:last-child { background:#293821; color:#c6d7b0; padding-top:20px; padding-bottom:20px; border-bottom:0; } .preview-row:last-child strong { color:var(--accent); font-size:27px; letter-spacing:-.8px; overflow-wrap:anywhere; }
.preview-row { flex-wrap:wrap; }
.preview-row strong { min-width:0; overflow-wrap:anywhere; }
.operation-choice input:focus-visible+label { outline-color:#70962d; }
.preview-reason { padding:13px 16px; border:1px solid #e6ecdc; border-radius:9px; background:#f8faf4; color:#566a44; font-size:12px; overflow-wrap:anywhere; } .preview-reason>span { display:block; color:#647653; font-size:8px; letter-spacing:1.3px; margin-bottom:5px; text-transform:uppercase; }
.confirmation-label { display:flex; align-items:flex-start; gap:10px; font-size:12px; color:#5e724a; margin:22px 0; cursor:pointer; } .confirmation-label input { width:17px; height:17px; margin:2px 0 0; flex-shrink:0; accent-color:#627f3d; }
.preview-meta { font-size:10px!important; line-height:1.7; margin:13px 0 0!important; color:#63764f; } .result-icon { width:45px; height:45px; border-radius:50%; display:grid; place-items:center; background:var(--accent); color:#435f26; font-size:23px; margin-bottom:20px; }
.planned-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; } .planned-card { padding:27px; } .planned-card h2 { margin:17px 0 10px; } .planned-card p { font-size:13px; } .planned-card ul { margin:18px 0 0; padding-left:17px; color:#60744e; font-size:12px; line-height:1.8; } .planned-card li { margin:7px 0; }
.empty-state { padding:45px 27px; text-align:center; } .empty-symbol { display:block; font-size:33px; color:#718d4f; margin-bottom:15px; } .empty-state h2 { font-size:17px; margin-bottom:8px; } .empty-state p { max-width:420px; margin:auto; font-size:12px; }
.loading-state { min-height:230px; display:flex; justify-content:center; align-items:center; gap:12px; color:#62794d; font-size:12px; } .spinner { width:19px; height:19px; border:2px solid #d4e4c0; border-top-color:#6b8b43; border-radius:50%; animation:spin .7s linear infinite; }
.toast { position:fixed; bottom:24px; right:25px; z-index:60; max-width:min(440px,calc(100vw - 36px)); padding:17px 21px; border:1px solid #48632b; border-radius:13px; background:#293b20; color:#e2f4c9; box-shadow:0 12px 45px #243b2426; font-size:12px; }
@keyframes spin { to { transform:rotate(360deg); } }

/* Entrance: an editorial poster and custom playing cards. */
.login-page { min-height:calc(100dvh - 32px); display:grid; grid-template-columns:1.05fr 1fr; }
.login-poster { min-height:760px; position:relative; background:#1c221c; overflow:hidden; color:#f3f8e9; display:flex; flex-direction:column; padding:42px 60px 30px; isolation:isolate; }
.login-brand { font-size:41px; } .login-statement { margin-top:63px; position:relative; z-index:2; } .login-statement .eyebrow { color:#abbc93; font-size:9px; letter-spacing:2px; }
.login-statement h2 { color:#f3f8e9; font-size:clamp(46px,4.5vw,75px); line-height:1.05; font-weight:450; letter-spacing:-3px; margin-top:19px; } .login-statement h2 em { font-family:Georgia,serif; color:var(--accent); font-weight:400; }
.login-statement p { color:#adbd99; font-size:13px; line-height:1.8; margin-top:23px; } .card-art { position:relative; min-height:305px; max-width:490px; width:100%; margin:15px auto 5px; flex:1; }
.playing-card { position:absolute; width:144px; height:205px; border-radius:13px; top:43px; box-shadow:0 18px 30px #0003; }
.card-back { left:calc(50% - 119px); transform:rotate(-24deg); background:#c4de7c; color:#4c662b; border:6px solid #bed275; } .card-back>span { position:absolute; inset:20px; display:grid; place-items:center; border:1px solid #657e3b; font-family:Georgia,serif; font-style:italic; font-size:57px; border-radius:6px; }
.card-pattern { position:absolute; inset:4px; border:1px solid #728a43; border-radius:6px; } .card-front { left:calc(50% - 26px); transform:rotate(13deg); background:#f0f4e5; color:#26331d; }
.card-corner { position:absolute; left:13px; top:10px; font-family:Georgia,serif; font-size:20px; line-height:1; text-align:center; } .card-corner small { display:block; font-size:17px; margin-top:3px; } .bottom-corner { top:auto; left:auto; bottom:10px; right:13px; transform:rotate(180deg); }
.card-suit { position:absolute; inset:15px 0 30px; display:grid; place-items:center; font-family:Georgia,serif; font-size:105px; } .card-signature { position:absolute; bottom:33px; left:0; width:100%; text-align:center; color:#566742; font-size:6px; letter-spacing:2px; }
.art-orbit { position:absolute; width:360px; height:240px; border:1px solid #425331; border-radius:50%; top:7px; left:calc(50% - 180px); transform:rotate(-25deg); z-index:-1; } .orbit-two { width:435px; height:280px; left:calc(50% - 217px); top:-11px; border-style:dashed; border-color:#344329; }
.art-caption { position:absolute; bottom:0; width:100%; text-align:center; font-size:7px; color:#9bad83; letter-spacing:1.8px; } .poster-footer { display:flex; justify-content:space-between; gap:18px; font-size:8px; letter-spacing:1.6px; color:#acbd99; padding-top:30px; }
.login-access { min-width:0; display:flex; flex-direction:column; padding:45px 56px 30px; background:#f5f6f0; } .access-topline { display:flex; justify-content:space-between; align-items:center; gap:18px; color:#637550; font-size:8px; letter-spacing:1.5px; }
.access-dot { display:flex; align-items:center; gap:7px; font-size:7px; } .access-dot::before { content:""; width:4px; height:4px; background:#698d37; border-radius:50%; }
.login-card { width:min(100%,360px); margin:auto; padding:60px 0; } .login-step { color:#637950; font-size:9px; letter-spacing:1.8px; }
.login-card h1 { font-size:clamp(36px,3.5vw,53px); line-height:1.08; letter-spacing:-2px; font-weight:500; margin:22px 0 20px; } .login-card>p { font-size:13px; line-height:1.85; max-width:330px; color:#657650; }
.inline-state { margin-top:32px; color:#61754b; font-size:11px; line-height:1.7; padding:13px 15px; border:1px solid #dfe7d5; background:#edf2e5; border-radius:9px; } .inline-state.error { background:#f8e9e9; color:#8d4044; border-color:#eac7c9; }
.login-button { width:100%; min-height:50px; font-size:13px; margin-top:16px; justify-content:space-between; padding:14px 22px; } .login-button::after { content:"↗"; font-size:20px; line-height:1; }
.login-divider { height:1px; background:#dce4d1; margin:35px 0 25px; } .login-footnote { position:relative; padding-left:35px; color:#657951!important; font-size:11px!important; } .login-footnote svg { position:absolute; left:0; top:4px; width:20px; height:20px; color:#718759; }
.login-footer { display:flex; justify-content:space-between; gap:15px; color:#61764c; font-size:9px; } .no-script { position:fixed; inset:0; z-index:100; background:var(--bg); color:var(--ink); display:grid; place-items:center; padding:30px; }
.login-footnote { color:#586c45!important; }
.login-step { color:#576d44; }

/* Responsive workspace and retained entrance */
@media (min-width:1650px) { main { padding-top:32px; } .charts-grid { grid-template-columns:minmax(0,1.35fr) minmax(0,1fr); } }
@media (max-width:1250px) {
  .sidebar { width:198px; flex-basis:198px; padding-left:11px; padding-right:11px; } .brand { margin-left:10px; } .nav-link { padding-left:10px; font-size:11px; }
  .topbar { padding:13px 22px; gap:17px; } main { padding:24px 22px 18px; } .topbar-actions { gap:10px; } .global-search { width:200px; } .environment-label { display:none; }
  .metrics-grid { gap:11px; } .metric-card { padding:17px 16px; } .metric-value { font-size:27px; } .metric-icon { display:none; }
  .charts-grid { grid-template-columns:1fr 1fr; gap:16px; } .login-poster,.login-access { padding-left:42px; padding-right:42px; }
}
@media (max-width:1020px) {
  .breadcrumb { display:none; } .global-search { margin-right:auto; margin-left:0; max-width:44%; width:230px; } .metrics-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .charts-grid,.overview-grid,.form-layout { grid-template-columns:1fr; } .filter-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .toolbar { align-items:flex-start; flex-direction:column; gap:12px; } .search-form { width:100%; max-width:none; } .detail-grid { gap:9px; } .detail-item { padding:14px; } .detail-item dd { font-size:23px; } .planned-grid { grid-template-columns:1fr; }
  .login-poster { padding:35px 34px 25px; } .login-access { padding:39px 35px 25px; } .login-statement h2 { font-size:53px; } .login-statement { margin-top:65px; } .access-topline { letter-spacing:1px; flex-wrap:wrap; }
}
@media (max-width:760px) {
  .sidebar-close { display:grid!important; position:absolute; right:15px; top:18px; width:32px; height:32px; border-color:#506344; background:#283420; color:#e4efd4; font-size:22px; }
  .environment-banner { min-height:30px; padding:7px 11px; gap:8px; font-size:9px; } .environment-banner strong { font-size:8px; letter-spacing:.5px; } .environment-dot { display:none; }
  .sidebar { display:none; position:fixed; top:0; left:0; bottom:0; width:255px; z-index:40; padding:29px 17px 20px; overflow-y:auto; box-shadow:40px 0 100px #17231255; } .sidebar.open { display:flex; }
  .sidebar .brand { margin-bottom:32px; } .nav-link { font-size:12px; min-height:42px; } .sidebar-context { padding-top:25px; }
  .menu-toggle { display:grid!important; } .topbar { flex-wrap:wrap; padding:12px 17px; gap:12px; } .topbar-actions { gap:10px; margin-left:auto; }
  .global-search { order:3; max-width:100%; width:100%; margin:0; } .global-search input { font-size:12px; height:36px; }
  .user-summary { font-size:10px; max-width:148px; } #user-name { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; } .user-avatar { width:27px; height:27px; } .topbar .button { font-size:11px; }
  main { padding:22px 17px 18px; } .page-heading { align-items:flex-start; gap:12px; margin-bottom:19px; flex-wrap:wrap; } .page-heading h1 { font-size:25px; letter-spacing:-.7px; } .page-heading p { font-size:11px; }
  .heading-actions { width:100%; justify-content:flex-end; } .heading-actions .button { min-height:32px; padding:6px 10px; } .eyebrow { font-size:8px; }
  .analytics-filterbar { padding:15px; } .filter-grid { gap:11px; } .filter-actions { gap:7px; } .saved-views input { max-width:100%; flex:1; }
  .metric-card { padding:16px 14px; } .metric-label { font-size:10px; } .metric-value { font-size:26px; } .metric-note { font-size:10px; } .metrics-grid { gap:10px; margin-bottom:17px; }
  .charts-grid { gap:17px; margin-bottom:17px; } .panel-heading { padding:18px 16px 13px; } .panel-heading h2 { font-size:14px; } .panel-heading p { font-size:10px; }
  .analytics-chart { padding-left:10px; padding-right:10px; } svg.analytics-chart { aspect-ratio:620/300; } .chart-legend { padding:8px 16px 13px; gap:10px; }
  .attention-list { padding:0 16px 4px; } .attention-row { flex-wrap:wrap; gap:8px; } .query-meta { font-size:10px; }
  .chart-axis { font-size:16px; }
  .toolbar { padding:17px 16px; } .panel-footer { padding:13px 16px; flex-wrap:wrap; gap:12px; } th,td { padding-left:15px; padding-right:15px; } .table-count { font-size:10px; }
  .profile-header { padding:20px; flex-wrap:wrap; } .profile-identity h2 { font-size:21px; } .detail-grid { grid-template-columns:1fr; margin:0 20px 20px; } .detail-item { padding:16px; display:flex; justify-content:space-between; align-items:center; gap:16px; } .detail-item dd { margin:0; text-align:right; font-size:24px; } .detail-item small { margin-top:4px; } .detail-item dt { max-width:120px; }
  .form-panel { padding:22px 18px; } .form-layout { gap:19px; } .form-panel h2 { font-size:20px; } .form-stack { gap:19px; } .field-row { grid-template-columns:1fr; } .operation-choice label { font-size:10px; } .preview-placeholder { min-height:235px; } .planned-card { padding:22px 18px; }
  .dialog-heading,.dialog-body { padding:20px; } .dialog-actions { padding:16px 20px; } .dialog-body .detail-grid { margin:20px 0; }
  .workspace-footer { flex-wrap:wrap; font-size:9px; margin-top:24px; }
  .login-page { display:flex; flex-direction:column; } .login-poster { min-height:0; padding:26px 29px 30px; } .login-brand { font-size:32px; } .login-brand .brand-mark { width:36px; height:40px; }
  .login-statement { margin-top:31px; } .login-statement .eyebrow { font-size:8px; } .login-statement h2 { font-size:45px; line-height:1.08; letter-spacing:-2px; } .login-statement p { font-size:11px; margin-top:18px; } .card-art,.poster-footer { display:none; }
  .login-access { padding:25px 29px 23px; } .access-topline { font-size:7px; } .login-card { max-width:100%; padding:35px 0 33px; } .login-card h1 { font-size:39px; margin:15px 0; } .login-card h1 br { display:none; } .login-card>p { font-size:12px; max-width:400px; } .login-step { font-size:8px; } .inline-state { margin-top:24px; } .login-divider { margin:28px 0 22px; }
}
@media (max-width:380px) {
  main { padding-left:13px; padding-right:13px; } .topbar { padding-left:13px; padding-right:13px; } .filter-grid { grid-template-columns:1fr; }
  .metric-card { padding:14px 11px; } .metric-value { font-size:23px; } .metric-label { font-size:10px; } .metric-note { font-size:9px; }
  .pagination { gap:5px; flex-wrap:wrap; } .pagination .button { font-size:10px; padding:5px 8px; }
}
@media (prefers-reduced-motion:reduce) { *,*::before,*::after { animation-duration:.01ms!important; transition:none!important; scroll-behavior:auto!important; } }
