/* GoldCar12 / Centurion edition. Gold is decorative; teal and coral encode scores. */
:root { --gc-score-positive:#0b7a50; --gc-score-negative:#b91c1c; }
.gc-vault { position:relative; isolation:isolate; padding:24px; color:#f4ead2; border-radius:20px; border:1px solid #8c784e; background:linear-gradient(130deg,#32352f,#111813 60%,#34342a); box-shadow:0 20px 40px -25px #171d1980,inset 0 1px 1px #e4d2a166; overflow:hidden; }
.gc-vault-top,.gc-vault-bottom,.gc-vault-chart-heading { display:flex; align-items:center; justify-content:space-between; gap:16px; }
.gc-vault-top .gc-eyebrow { font-size:9px; letter-spacing:2px; color:#c5af7e; }
.gc-vault-top img { object-fit:contain; }
.gc-vault h2,.gc-vault h3 { margin:14px 0 8px; font-size:16px; font-weight:600; color:#f4ead2; }
.gc-vault-balance { display:flex; align-items:baseline; gap:12px; flex-wrap:wrap; }
.gc-vault-balance strong { font-size:clamp(32px,3.4vw,44px); font-weight:600; letter-spacing:-1.2px; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; color:#ffffff; }
.gc-vault-balance>span { font-size:13px; color:#c6bc9e; }
.gc-vault-vnd { margin-top:8px; font-size:14px; font-variant-numeric:tabular-nums; color:#f4ead2; }
.gc-vault-rate { color:#b9b7a7; font-size:12px; margin:4px 0 20px; }
.gc-vault-chart { border-top:1px solid #c3ae7733; padding-top:16px; }
.gc-vault-chart-heading { color:#c0b394; font-size:12px; }
#vaultSparkline { color:#dfc58a; }
#vaultSparkline svg { width:100%; height:80px; display:block; margin-top:8px; }
.gc-chart-empty { min-height:65px; padding:16px 0; font-size:12px; color:#b9b7a7; }
.gc-chart-range { display:flex; justify-content:space-between; font-size:11px; color:#c0b7a0; }
.gc-chart-details { font-size:12px; margin-top:12px; }
.gc-chart-details summary { cursor:pointer; min-height:32px; padding:8px 0; color:#f7df98; font-weight:600; }
.gc-chart-details div { display:flex; justify-content:space-between; padding:4px 0; border-bottom:1px solid rgba(255,255,255,0.06); }
.gc-vault-bottom { margin-top:20px; font-size:10px; letter-spacing:2px; color:#c9b887; }
#retryVault { min-height:44px; padding:8px 16px; border:1px solid #c9b887; border-radius:8px; color:#f4ead2; background:rgba(255,255,255,0.06); }
.gc-overview-heading { margin-top:28px; }
.gc-table-toolbar { grid-template-columns:minmax(0,1fr); gap:20px; }
.gc-search { max-width:none; }
.gc-command-filters { min-width:0; }
.gc-field-label { display:block; font-size:12px; color:#626b59; margin-bottom:8px; }
.gc-filter-chips { display:flex; flex-wrap:wrap; gap:8px; }
.gc-filter-chips button,.gc-month-switch button { min-height:44px; padding:10px 16px; border:1px solid #dcdfd4; border-radius:24px; background:#fafaf6; font-size:12px; font-weight:600; white-space:nowrap; transition:background .15s,border-color .15s; }
.gc-filter-chips button { padding-inline:13px; }
.gc-filter-chips button:hover,.gc-month-switch button:hover { border-color:#9c8a5c; background:#efeadd; }
.gc-filter-chips button[aria-pressed=true] { background:#222b24; color:#f4ead5; border-color:#222b24; }
.gc-filter-chips button:active,.gc-month-switch button:active { transform:translateY(1px); }
.gc-contact-plate { display:inline-block; padding:4px 8px; border:1px solid #d3d7cc; border-radius:6px; background:#f6f7f1; font-family:'JetBrains Mono',monospace; font-size:12px; letter-spacing:.3px; }
.gc-contact-phone { margin-top:6px; }
.gc-points-positive { color:var(--gc-score-positive)!important; }
.gc-points-negative { color:var(--gc-score-negative)!important; }
.gc-points-zero { color:#687064!important; }
.gc-table tbody tr { transition:background .15s; }
.gc-month-switch { display:flex; gap:8px; margin:24px 0; overflow-x:auto; padding:2px 0 8px; }
.gc-month-switch button { border-radius:8px; min-width:80px; }
.gc-month-switch button[aria-pressed=true] { background:#e9ddbd; color:#665126; border-color:#bda571; }
.gc-monthly-panel { padding:32px; }
.gc-podium { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); align-items:end; gap:20px; padding:24px 8px 12px; }
.gc-podium-card { position:relative; display:flex; flex-direction:column; align-items:center; justify-content:flex-start; gap:0; min-width:0; border-radius:16px 16px 6px 6px; padding:24px 16px 32px; min-height:250px; background:linear-gradient(145deg,#f4f2e9,#e4e4d9); border:1px solid #d2d3c2; box-shadow:0 10px 0 -2px #c8cab9,0 22px 28px -20px #26302570; transform:none; text-align:center; }
.gc-podium-card::after { content:''; position:absolute; left:12px; right:12px; bottom:8px; border-top:1px solid #78856933; }
.gc-place-1 { order:2; min-height:300px; background:linear-gradient(135deg,#3d4433,#19271f 65%,#313627)!important; border-color:#af965c; box-shadow:0 12px 0 -2px #9b8655,0 26px 32px -20px #28302590; }
.gc-place-2 { order:1; }
.gc-place-3 { order:3; min-height:230px; }
.gc-podium-card>.gc-avatar { margin:16px 0; width:52px; height:52px; }
.gc-podium-rank { font-size:10px; letter-spacing:1px; margin:0; }
.gc-podium-name { min-height:44px; width:100%; font-size:14px; line-height:1.5; overflow-wrap:anywhere; }
.gc-podium-number { margin:16px 0 0; font-size:32px; line-height:1.2; }
.gc-podium-unit { margin:4px 0 0; font-size:11px; }
.gc-rank-list { margin-top:32px; }
.gc-drawer-position { position:relative; height:100%; width:100%; display:flex; justify-content:flex-end; pointer-events:none; }
.gc-drawer-panel { pointer-events:auto; background:#fff; width:min(620px,100%); height:100%; display:flex; flex-direction:column; box-shadow:-24px 0 60px #111a2133; animation:gc-drawer-in .28s ease-out; }
@keyframes gc-drawer-in { from {transform:translateX(100%);} to {transform:translateX(0);} }
.gc-drawer-scroll { overflow-y:auto; flex:1; min-height:0; padding-bottom:env(safe-area-inset-bottom); overscroll-behavior:contain; }
.gc-profile-meta { display:flex; align-items:center; flex-wrap:wrap; gap:16px; margin-top:20px; }
.gc-profile-balance { font-size:24px; font-weight:600; font-variant-numeric:tabular-nums; }
.gc-profile-balance small { font-size:12px; font-weight:400; color:#687064; }
.gc-profile-chart { margin:24px; padding:24px; background:#f7f7f0; border:1px solid #e5e5d8; border-radius:16px; }
.gc-profile-chart-title h4 { font-size:14px; font-weight:600; }
.gc-profile-chart-title>span,.gc-profile-chart>p { font-size:11px; color:#687064; }
.gc-profile-chart>p { margin-top:16px; }
.gc-bar-chart { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:20px; margin-top:24px; }
.gc-bar-column { text-align:center; min-width:0; font-variant-numeric:tabular-nums; font-size:12px; }
.gc-bar-column b { overflow-wrap:anywhere; }
.gc-bar-track { height:88px; margin:8px auto; width:min(36px,100%); display:flex; align-items:flex-end; background:#e8e8dd; border-radius:5px; overflow:hidden; }
.gc-bar-track span { display:block; width:100%; background:linear-gradient(#c6a65c,#867442); border-radius:5px; }
.gc-journal-title { margin:24px 24px 0; font-size:16px; font-weight:700; }
.gc-journal-note { margin:4px 24px 20px; font-size:12px; color:#687064; }
#modalHistory table { table-layout:fixed; }
#modalHistory th:first-child { width:26%; } #modalHistory th:last-child { width:24%; }
#historyList td { overflow-wrap:anywhere; vertical-align:top; font-size:12px; line-height:1.6; }
#modalHistory .gc-drawer-panel>div:first-child { background:#f5f4eb; }
#modalBaremView>div.relative>div { border-radius:20px; box-shadow:0 24px 80px #101d1940; }
#modalBaremView>div.relative>div>div:first-child { background:#202b23; border:0; padding:24px; }
#modalBaremView>div.relative>div>div:first-child h3 { color:#f1e5c5; font-size:20px; }
#modalBaremView>div.relative>div>div:first-child p { color:#c2c8b8; }
#modalBaremView>div.relative>div>div:first-child button { color:#f1e5c5; }
#rulesContentArea { background:#fafaf5; }
#rulesContentInner { font-size:15px; }
@media(max-width:640px) {
 .gc-table-toolbar { gap:16px; }
 .gc-filter-chips { display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); }
 .gc-filter-chips button { padding:6px 8px; white-space:normal; line-height:1.3; }
 .gc-monthly-panel { padding:20px 12px; }
 .gc-podium { gap:6px; padding:24px 0 12px; }
 .gc-podium-card { display:flex; padding:16px 6px 24px; min-height:218px; border-radius:10px 10px 4px 4px; }
 .gc-place-1 { min-height:254px; } .gc-place-3 { min-height:202px; }
 .gc-podium-rank { font-size:8px; letter-spacing:0; }
 .gc-podium-card>.gc-avatar { width:34px; height:34px; font-size:11px; margin:12px 0; }
 .gc-podium-name { font-size:11px; min-height:48px; }
 .gc-podium-number { font-size:22px; margin-top:12px; overflow-wrap:anywhere; max-width:100%; }
 .gc-podium-unit { font-size:9px; }
 .gc-rank-list { margin-top:24px; }
 .gc-profile-chart { margin:16px; padding:20px 16px; } .gc-bar-chart { gap:12px; }
 .gc-drawer-panel { width:100%; }
 .gc-drawer-panel>div:first-child { padding-top:max(20px,env(safe-area-inset-top)); }
 #modalBaremView>div.relative { padding:0; } #modalBaremView>div.relative>div { border-radius:0; border:0; }
 #modalBaremView>div.relative>div>div:first-child { padding:20px 16px; }
 #modalBaremView>div.relative>div>div:first-child h3 { font-size:16px; }
 .gc-month-switch { gap:6px; } .gc-month-switch button { padding:8px 12px; min-width:64px; }
}
@media(prefers-reduced-motion:reduce) { .gc-drawer-panel { animation:none; } }

/* Override the shared centered-dialog shell for the edge-to-edge profile. */
#modalHistory>.gc-drawer-position { padding:0; height:100dvh; }
#modalHistory>.gc-drawer-position>.gc-drawer-panel { max-height:100dvh; height:100dvh; border-radius:0; border:0; }
