/*
 * Grid Tycoon UI (2026-11 redesign): theme tokens, the site header and footer, and the redesigned pages
 * (the dashboard first). Pages opt in to light mode with @section('themeable'); every other page stays dark
 * until it is redesigned. Classes are prefixed gt- so the GODLIKE theme's rules don't reach them.
 */
:root,
[data-theme="dark"] {
    --bg: #0E0E0E; --panel: #161616; --panel-2: #1E1E1E; --line: #2C2C2C; --line-2: #3A3A3A;
    --ink: #FFFFFF; --ink-2: #BBBBBB; --ink-3: #888888;
    --red: #DD163B; --red-2: #A11029; --red-soft: rgba(221, 22, 59, 0.14);
    --veil: linear-gradient(90deg, rgba(14,14,14,0.94) 0%, rgba(14,14,14,0.78) 55%, rgba(14,14,14,0.55) 100%);
    --nav: #0E0E0E; --green: #22C55E; --green-soft: rgba(34,197,94,0.14);
    --purple: #A78BFA; --purple-soft: rgba(139,92,246,0.16);
    --amber: #FBBF24; --amber-soft: rgba(255,193,7,0.16);
    --blue: #7DB3FF; --blue-soft: rgba(125,179,255,0.14);
    --track: #262626; --shadow: 0 1px 0 rgba(255,255,255,0.03) inset;
    --menu-shadow: 0 12px 32px rgba(0,0,0,0.55);
    color-scheme: dark;
}
[data-theme="light"] {
    --bg: #EEEDEA; --panel: #FFFFFF; --panel-2: #F6F5F2; --line: #DEDBD5; --line-2: #CFCBC3;
    --ink: #141414; --ink-2: #3E3E3E; --ink-3: #6A6A6A;
    --red: #C8102E; --red-2: #9C0C24; --red-soft: rgba(200,16,46,0.09);
    --veil: linear-gradient(90deg, rgba(246,245,242,0.96) 0%, rgba(246,245,242,0.86) 55%, rgba(246,245,242,0.62) 100%);
    --nav: #FFFFFF; --green: #15803D; --green-soft: rgba(21,128,61,0.10);
    --purple: #6D28D9; --purple-soft: rgba(109,40,217,0.09);
    --amber: #B45309; --amber-soft: rgba(180,83,9,0.10);
    --blue: #1D4ED8; --blue-soft: rgba(29,78,216,0.08);
    --track: #E6E3DD; --shadow: 0 1px 2px rgba(20,20,20,0.05);
    --menu-shadow: 0 12px 32px rgba(20,20,20,0.16);
    color-scheme: light;
}

/* Redesigned pages: plain themed background instead of the GODLIKE page image */
body.gt-themed { background: var(--bg); color: var(--ink); }
body.gt-themed .nk-page-background, body.gt-themed .nk-page-border { display: none; }

.gt-ui { color: var(--ink); font-family: 'Roboto Condensed', sans-serif; font-size: 14px; line-height: 1.4; }
.gt-ui *, .gt-ui *::before, .gt-ui *::after { box-sizing: border-box; }
.gt-ui a { color: var(--red); text-decoration: none; }
.gt-ui a:hover { color: var(--ink); text-decoration: none; }
.gt-ui h1, .gt-ui h2, .gt-ui h3, .gt-ui h4 { color: var(--ink); margin: 0; }
.gt-ui p { margin: 0; }
.gt-ui button { font-family: inherit; }
.gt-num { font-variant-numeric: tabular-nums; }
[x-cloak] { display: none !important; }

/* ------------------------------------------------------------------ Header */
.gt-header { position: sticky; top: 0; z-index: 2001; background: var(--nav); border-bottom: 1px solid var(--line); }
.gt-header-in { max-width: 1440px; margin: 0 auto; padding: 0 24px; height: 60px; display: flex; align-items: center; gap: 24px; }
.gt-brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.gt-brand img { width: 40px; height: 40px; border-radius: 6px; display: block; object-fit: contain; }
.gt-wordmark { font-family: 'Marcellus SC', serif; font-size: 19px; color: var(--ink); letter-spacing: .5px; white-space: nowrap; }
.gt-ui a.gt-brand:hover .gt-wordmark { color: var(--ink); }

.gt-tabs { display: flex; align-items: stretch; gap: 2px; height: 100%; flex: 1; min-width: 0; }
.gt-tab { position: relative; display: flex; align-items: stretch; }
.gt-ui .gt-tab > a { display: flex; align-items: center; gap: 6px; padding: 0 13px; font-weight: 600; font-size: 15px; white-space: nowrap;
    color: var(--ink-3); border-bottom: 3px solid transparent; border-top: 3px solid transparent; }
.gt-ui .gt-tab > a:hover, .gt-tab.is-open > a { color: var(--ink); }
.gt-ui .gt-tab.is-active > a { color: var(--ink); border-bottom-color: var(--red); }
.gt-caret { font-size: 10px; opacity: .6; }
.gt-badge { background: var(--red); color: #fff; font-size: 10px; font-weight: 700; border-radius: 9px; padding: 0 6px; line-height: 16px; min-width: 16px; text-align: center; }
.gt-badge.amber { background: var(--amber); color: #111; }
.gt-badge.green { background: var(--green); color: #fff; }

/* dropdown panels (tabs, messages, notifications, account) */
.gt-menu { position: absolute; top: 100%; left: 0; min-width: 250px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px;
    box-shadow: var(--menu-shadow); padding: 6px; z-index: 2002; }
.gt-menu.right { left: auto; right: 0; }
.gt-ui .gt-menu a.gt-mi { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 5px; color: var(--ink-2); font-size: 14px; font-weight: 500; white-space: nowrap; }
.gt-ui .gt-menu a.gt-mi:hover { background: var(--panel-2); color: var(--ink); }
.gt-mi .gt-mi-ic { width: 16px; text-align: center; color: var(--ink-3); flex-shrink: 0; }
.gt-mi .gt-badge { margin-left: auto; }
.gt-mi .gt-live { margin-left: auto; background: var(--red); color: #fff; font-size: 10px; font-weight: 700; padding: 0 6px; border-radius: 3px; line-height: 16px; }
.gt-menu-sep { height: 1px; background: var(--line); margin: 6px 4px; }
.gt-menu-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 10px; font-weight: 700; color: var(--ink); }
.gt-ui .gt-menu-head a { font-size: 12px; font-weight: 600; }
.gt-menu-label { padding: 8px 10px 4px; font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--ink-3); font-weight: 600; }

.gt-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.gt-ui a.gt-wallet { display: flex; align-items: center; gap: 12px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel-2); color: var(--ink); }
.gt-wallet-cash { font-weight: 700; font-size: 14px; white-space: nowrap; }
.gt-wallet-sep { width: 1px; height: 16px; background: var(--line-2); }
.gt-wallet-bp { font-weight: 700; font-size: 14px; color: var(--amber); white-space: nowrap; }
.gt-icon-btn { position: relative; width: 36px; height: 36px; border-radius: 6px; border: 1px solid var(--line); background: var(--panel-2); color: var(--ink);
    cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 15px; padding: 0; }
.gt-ui a.gt-icon-btn { color: var(--ink); }
.gt-icon-btn:hover { border-color: var(--line-2); }
.gt-icon-btn .gt-dot { position: absolute; top: -5px; right: -6px; }
.gt-drop { position: relative; }
.gt-user-btn { display: flex; align-items: center; gap: 8px; background: none; border: 0; padding: 0; cursor: pointer; color: var(--ink); }
.gt-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; display: block; }
.gt-avatar-initial { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, #DD163B, #A11029); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.gt-user-name { font-weight: 600; white-space: nowrap; max-width: 140px; overflow: hidden; text-overflow: ellipsis; }

.gt-feed { width: 340px; max-height: 420px; overflow-y: auto; }
.gt-feed-item { display: flex; gap: 10px; padding: 9px 10px; border-radius: 5px; align-items: flex-start; }
.gt-feed-item.unread { background: var(--red-soft); }
.gt-feed-item.clickable { cursor: pointer; }
.gt-feed-item:hover { background: var(--panel-2); }
.gt-ui a.gt-feed-item { color: var(--ink); }
.gt-feed-title { font-weight: 700; color: var(--ink); font-size: 13px; }
.gt-feed-text { font-size: 12px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gt-feed-time { font-size: 11px; color: var(--ink-3); margin-top: 2px; }
.gt-feed-ic { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; background: var(--panel-2); color: var(--ink-3); }
.gt-feed-ic.type-alert { color: #ef4444; } .gt-feed-ic.type-info { color: #3b82f6; } .gt-feed-ic.type-success { color: var(--green); }
.gt-feed-empty { padding: 20px; text-align: center; color: var(--ink-3); }
.gt-feed-count { min-width: 18px; height: 18px; border-radius: 9px; font-size: 10px; font-weight: 700; color: #fff; background: var(--red); display: flex; align-items: center; justify-content: center; padding: 0 5px; }
.gt-btn-line { background: transparent; border: 1px solid var(--red); color: var(--red); padding: 4px 12px; border-radius: 4px; font-size: 12px; cursor: pointer; }

.gt-ipbox { padding: 8px 10px 10px; font-size: 12px; }
.gt-ipbox-row { display: flex; justify-content: space-between; color: var(--ink-3); }
.gt-bar { height: 6px; border-radius: 3px; background: var(--track); overflow: hidden; }
.gt-bar > span { display: block; height: 100%; border-radius: 3px; }
.gt-burger { display: none; }

/* mobile drawer */
.gt-drawer-veil { position: fixed; inset: 0; background: rgba(0,0,0,0.55); z-index: 2100; }
.gt-drawer { position: fixed; top: 0; left: 0; bottom: 0; width: min(340px, 88vw); background: var(--panel); border-right: 1px solid var(--line); z-index: 2101; overflow-y: auto; padding: 14px 12px 40px; }
.gt-drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.gt-drawer .gt-menu-label { padding-top: 14px; }
.gt-ui .gt-drawer a.gt-mi { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 5px; color: var(--ink-2); font-weight: 500; }
.gt-ui .gt-drawer a.gt-mi:hover { background: var(--panel-2); color: var(--ink); }
.gt-drawer-wallet { display: flex; gap: 14px; padding: 10px; border-radius: 6px; background: var(--panel-2); margin: 6px 0; }

@media (max-width: 1250px) { .gt-wordmark { display: none; } .gt-ui .gt-tab > a { padding: 0 10px; } .gt-user-name { display: none; } }
@media (max-width: 1080px) { .gt-wallet { display: none !important; } }
@media (max-width: 900px) {
    .gt-tabs { display: none; }
    .gt-burger { display: flex; }
    .gt-header-in { padding: 0 16px; gap: 12px; }
    .gt-actions { margin-left: auto; }
    .gt-feed { width: min(340px, calc(100vw - 24px)); }
    .gt-drop.msg .gt-menu, .gt-drop.notif .gt-menu { position: fixed; top: 60px; right: 12px; left: auto; }
}

/* ------------------------------------------------------------------ Footer */
.gt-footer { border-top: 1px solid var(--line); background: var(--nav); position: relative; z-index: 1; }
.gt-footer-in { max-width: 1440px; margin: 0 auto; padding: 18px 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; font-size: 12px; color: var(--ink-3); }
.gt-footer-links { display: flex; flex-wrap: wrap; gap: 16px; margin-left: auto; align-items: center; }
.gt-ui .gt-footer-links a { color: var(--ink-2); }
.gt-ui .gt-footer-links a:hover { color: var(--ink); }

/* ------------------------------------------------------------------ Shared page pieces */
.gt-wrap { max-width: 1440px; margin: 0 auto; padding: 0 24px; }
.gt-card { border: 1px solid var(--line); border-radius: 8px; background: var(--panel); box-shadow: var(--shadow); }
.gt-card-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.gt-h2 { font-family: 'Marcellus SC', serif !important; font-weight: 400 !important; font-size: 20px !important; display: flex; align-items: center; gap: 10px; line-height: 1.2; }
.gt-h2::before { content: ''; width: 14px; height: 4px; background: var(--red); transform: skewX(-24deg); flex-shrink: 0; }
.gt-head-link { margin-left: auto; font-weight: 600; font-size: 13px; }
.gt-eyebrow { font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--ink-3); font-weight: 700; }
.gt-muted { color: var(--ink-3); }
.gt-small { font-size: 12px; }
.gt-tile { padding: 10px 12px; border-radius: 6px; background: var(--panel-2); }
.gt-btn { display: inline-flex; align-items: center; gap: 6px; background: var(--red); color: #fff !important; font-weight: 700; font-size: 13px; padding: 6px 14px; border-radius: 4px; border: 0; cursor: pointer; white-space: nowrap; }
.gt-btn:hover { background: var(--red-2); }
.gt-btn-ghost { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line-2); color: var(--ink) !important; font-weight: 600; font-size: 13px; padding: 5px 12px; border-radius: 4px; background: transparent; cursor: pointer; white-space: nowrap; }
.gt-btn-ghost:hover { background: var(--panel-2); }
.gt-chip { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; padding: 1px 8px; border-radius: 3px; }
.gt-chip.green { color: var(--green); background: var(--green-soft); }
.gt-chip.amber { color: var(--amber); background: var(--amber-soft); }
.gt-chip.purple { color: var(--purple); background: var(--purple-soft); }
.gt-chip.red { color: var(--red); background: var(--red-soft); }
.gt-note { display: flex; gap: 8px; font-size: 12px; color: var(--ink-3); line-height: 1.45; }
.gt-note i, .gt-note svg { margin-top: 2px; flex-shrink: 0; }
.gt-empty { padding: 22px; text-align: center; color: var(--ink-3); }

/* modal */
.gt-modal-veil { position: fixed; inset: 0; background: rgba(0,0,0,0.7); z-index: 2200; display: flex; align-items: center; justify-content: center; padding: 16px; }
.gt-modal { background: var(--panel); color: var(--ink); border: 1px solid var(--line); border-radius: 10px; width: 100%; max-width: 760px; max-height: 90vh; display: flex; flex-direction: column; box-shadow: var(--menu-shadow); font-family: 'Roboto Condensed', sans-serif; }
.gt-modal.sm { max-width: 420px; }
.gt-modal-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.gt-modal-body { padding: 16px 18px; overflow-y: auto; }
.gt-modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 18px; border-top: 1px solid var(--line); }
.gt-x { background: none; border: 0; color: var(--ink-3); font-size: 18px; cursor: pointer; }
.gt-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.gt-table th { position: sticky; top: 0; background: var(--panel-2); color: var(--ink-3); font-size: 11px; text-transform: uppercase; letter-spacing: 1px; text-align: left; padding: 8px 10px; }
.gt-table td { padding: 7px 10px; border-top: 1px solid var(--line); color: var(--ink-2); }
.gt-table tr.is-current td { background: var(--red-soft); color: var(--ink); font-weight: 700; }
.gt-table tr.is-milestone td { background: var(--panel-2); }
.gt-perk { display: inline-block; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 3px; margin: 1px 2px 1px 0; background: var(--green-soft); color: var(--green); }
.gt-perk.blue { background: var(--blue-soft); color: var(--blue); }
.gt-perk.gold { background: var(--amber-soft); color: var(--amber); }

/* ------------------------------------------------------------------ Dashboard */
.gt-hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.gt-hero-bg { position: absolute; inset: 0; background-position: center 40%; background-size: cover; background-repeat: no-repeat; }
.gt-hero-veil { position: absolute; inset: 0; background: var(--veil); }
.gt-hero-in { position: relative; max-width: 1440px; margin: 0 auto; padding: 28px 24px 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 24px 40px; }
.gt-hero-me { display: flex; align-items: center; gap: 20px; flex: 1 1 420px; min-width: 0; }
.gt-level { flex-shrink: 0; width: 80px; height: 72px; border: 0; border-radius: 8px; background: linear-gradient(135deg, #DD163B 0%, #A11029 100%); color: #fff; cursor: pointer;
    display: flex; flex-direction: column; align-items: center; justify-content: center; box-shadow: 0 4px 20px rgba(221,22,59,0.35); }
.gt-level b { font-weight: 700; font-size: 30px; line-height: 30px; }
.gt-level span { font-size: 10px; letter-spacing: 1px; color: rgba(255,255,255,0.85); }
.gt-hero-kicker { font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--ink-3); font-weight: 600; }
.gt-hero-title { margin: 2px 0 10px !important; font-family: 'Marcellus SC', serif !important; font-weight: 400 !important; font-size: 34px !important; line-height: 1.1 !important; overflow-wrap: anywhere; }
.gt-xp { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; max-width: 420px; }
.gt-xp .gt-xp-bar { min-width: 160px; }
.gt-xp-bar { flex: 1; height: 10px; border-radius: 6px; background: var(--track); overflow: hidden; border: 1px solid var(--line-2); }
.gt-xp-bar > span { display: block; height: 100%; background: linear-gradient(90deg, #DD163B 0%, #FF4D6A 100%); box-shadow: 0 0 8px rgba(221,22,59,0.5); }
.gt-xp-text { font-weight: 500; font-size: 12px; color: var(--ink-2); white-space: nowrap; }
.gt-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); flex: 1 1 560px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); overflow: hidden; box-shadow: var(--shadow); }
.gt-ui .gt-stat { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-left: 1px solid var(--line); color: var(--ink); min-width: 0; }
.gt-stat:first-child { border-left: 0; }
.gt-ui a.gt-stat:hover { background: var(--panel-2); color: var(--ink); }
.gt-stat-label { font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--ink-3); font-weight: 600; }
.gt-stat-value { font-weight: 700; font-size: 26px; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gt-stat-value small { font-size: 14px; color: var(--ink-3); font-weight: 600; }
.gt-stat-action { font-size: 12px; color: var(--red); font-weight: 600; }
.gt-stat-alert { font-size: 11px; color: var(--amber); font-weight: 600; }

.gt-strip { position: relative; color: #fff; background: linear-gradient(90deg, #DD163B 0%, #A11029 100%); }
.gt-strip.quiet { background: var(--panel); color: var(--ink); border-top: 1px solid var(--line); }
.gt-strip-in { max-width: 1440px; margin: 0 auto; padding: 10px 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; }
.gt-live { display: flex; align-items: center; gap: 7px; font-weight: 700; font-size: 12px; letter-spacing: 1.2px; text-transform: uppercase; background: rgba(0,0,0,0.25); padding: 3px 10px; border-radius: 4px; }
.gt-live::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px rgba(255,255,255,0.3); }
.gt-strip-title { font-family: 'Marcellus SC', serif; font-size: 18px; }
.gt-strip-text { font-size: 14px; opacity: .92; flex: 1 1 300px; }
.gt-strip-entries { display: flex; flex-wrap: wrap; gap: 16px; font-size: 13px; }
.gt-ui .gt-strip a.gt-strip-entry { color: inherit; }
.gt-ui .gt-strip-btn { background: #fff; color: #A11029; font-weight: 700; padding: 6px 14px; border-radius: 4px; font-size: 13px; white-space: nowrap; }
.gt-ui .gt-strip-btn:hover { background: #111; color: #fff; }
.gt-strip.quiet .gt-strip-label { font-weight: 700; font-size: 12px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--ink-3); }
.gt-strip.quiet .gt-strip-entries b { color: var(--ink); }

.gt-main { max-width: 1440px; margin: 0 auto; padding: 20px 24px 32px; display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.gt-col-main { flex: 2 1 640px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.gt-col-side { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }

/* season */
.gt-season { overflow: hidden; }
.gt-season-banner { position: relative; min-height: 150px; background-position: center 60%; background-size: cover; display: flex; align-items: flex-end; }
.gt-season-banner::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.78) 100%); }
.gt-season-banner-in { position: relative; width: 100%; padding: 18px 20px; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 18px; color: #fff; }
.gt-season-name { font-weight: 700; font-size: 28px; line-height: 1.1; color: #fff; }
.gt-season-num { font-size: 16px; color: rgba(255,255,255,0.75); }
.gt-pill { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 13px; padding: 3px 12px; border-radius: 20px; }
.gt-pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.gt-pill.amber { background: rgba(255,193,7,0.22); border: 1px solid rgba(255,193,7,0.5); color: #FFD54F; }
.gt-pill.green { background: rgba(34,197,94,0.22); border: 1px solid rgba(34,197,94,0.5); color: #86EFAC; }
.gt-season-when { font-size: 15px; color: rgba(255,255,255,0.85); }
.gt-season-when b { color: #fff; }
.gt-ui a.gt-glass { border: 1px solid rgba(255,255,255,0.35); background: rgba(255,255,255,0.1); color: #fff; padding: 7px 14px; border-radius: 6px; font-weight: 600; white-space: nowrap; }
.gt-ui a.gt-glass:hover { background: rgba(255,255,255,0.22); color: #fff; }
.gt-ui a.gt-glass.gold { border-color: rgba(234,179,8,0.6); color: #FDE68A; }
.gt-season-alert { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 12px 20px; background: var(--amber-soft); border-bottom: 1px solid var(--line); }
.gt-season-weeks { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); border-bottom: 1px solid var(--line); }
.gt-week { position: relative; padding: 14px 20px; background-size: cover; background-position: center; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; }
.gt-week + .gt-week { border-left: 1px solid var(--line); }
.gt-week.has-img { min-height: 110px; }
.gt-week.has-img::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0.25), rgba(0,0,0,0.85)); }
.gt-week > * { position: relative; }
.gt-week.has-img, .gt-week.has-img .gt-muted { color: #fff; }
.gt-week.has-img .gt-muted { opacity: .8; }
.gt-week-name { font-weight: 700; font-size: 17px; }
.gt-ui .gt-week.has-img a.gt-week-name { color: #fff; }
.gt-ui a.gt-week-name { color: var(--ink); }
.gt-week-race { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; font-size: 13px; margin-top: 4px; }
.gt-ok { color: var(--green); font-weight: 600; } .gt-no { color: #ef4444; font-weight: 600; }
.gt-week.has-img .gt-ok { color: #86EFAC; } .gt-week.has-img .gt-no { color: #FCA5A5; }
.gt-season-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.gt-season-col { padding: 16px 20px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.gt-season-col + .gt-season-col { border-left: 1px solid var(--line); }
.gt-col-title { font-size: 12px; letter-spacing: 1.2px; text-transform: uppercase; font-weight: 600; }
.gt-stand { display: flex; flex-direction: column; gap: 4px; }
.gt-stand-row { display: flex; align-items: center; gap: 10px; min-height: 28px; padding: 2px 10px; border-radius: 4px; background: var(--panel-2); font-size: 13px; }
.gt-stand-pos { width: 24px; font-weight: 700; font-size: 12px; color: var(--ink-3); }
.gt-stand-pos.gold { color: #fbbf24; } .gt-stand-pos.silver { color: #9ca3af; } .gt-stand-pos.bronze { color: #cd7f32; }
.gt-stand-name { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; overflow: hidden; white-space: nowrap; }
.gt-stand-name img { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; }
.gt-stand-name a { overflow: hidden; text-overflow: ellipsis; }
.gt-stand-ghost { flex: 1; height: 6px; border-radius: 3px; background: var(--track); }
.gt-segs { display: grid; gap: 3px; }
.gt-seg { height: 6px; border-radius: 2px; background: var(--track); }
.gt-seg.on { background: var(--red); }
.gt-seg.done { background: var(--green); }
.gt-marker-bar { position: relative; height: 6px; border-radius: 3px; background: var(--track); }
.gt-marker-bar > span { display: block; height: 100%; border-radius: 3px; background: var(--red); }
.gt-marker-bar > i { position: absolute; top: -3px; width: 2px; height: 12px; background: var(--ink-3); }
.gt-tier { display: flex; align-items: center; gap: 10px; }
.gt-tier img, .gt-tier .gt-tier-img { width: 36px; height: 36px; object-fit: contain; border-radius: 6px; }

/* car rotation */
.gt-seg-tabs { display: flex; background: var(--panel-2); border: 1px solid var(--line); border-radius: 6px; padding: 3px; }
.gt-seg-tabs button { border: 0; cursor: pointer; font-size: 13px; font-weight: 700; padding: 5px 12px; border-radius: 4px; background: transparent; color: var(--ink-2); }
.gt-seg-tabs button.on { background: var(--red); color: #fff; }
.gt-seg-tabs button span { opacity: .7; font-weight: 400; }
.gt-reset { margin-left: auto; display: flex; align-items: baseline; flex-wrap: wrap; justify-content: flex-end; gap: 4px 8px; }
.gt-reset-label { font-size: 12px; color: var(--ink-3); text-transform: uppercase; letter-spacing: 1px; }
.gt-reset-time { font-weight: 700; font-size: 20px; color: var(--ink); }
.gt-cars { padding: 16px 20px; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.gt-ui a.gt-car { border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: var(--panel-2); display: flex; flex-direction: column; color: var(--ink); }
.gt-ui a.gt-car:hover { border-color: var(--red); color: var(--ink); }
.gt-car-img { position: relative; aspect-ratio: 16 / 9; background: #1A1A1A; }
.gt-car-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.gt-car-tag { position: absolute; top: 8px; left: 8px; color: #fff; font-weight: 700; font-size: 12px; padding: 2px 7px; border-radius: 3px; }
.gt-car-year { position: absolute; top: 8px; right: 8px; background: rgba(0,0,0,0.7); color: #fff; font-size: 12px; padding: 2px 7px; border-radius: 3px; }
.gt-car-cart { position: absolute; bottom: 8px; left: 8px; background: var(--green); color: #fff; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 3px; }
.gt-car-over { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.gt-car-over span { width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 20px; }
.gt-car-over.purchased { background: rgba(34,197,94,0.25); } .gt-car-over.purchased span { background: #16a34a; }
.gt-car-over.locked { background: rgba(0,0,0,0.55); } .gt-car-over.locked span { background: #4b5563; }
.gt-car-over.financing { background: rgba(37,99,235,0.22); } .gt-car-over.financing span { background: #2563eb; }
.gt-car.is-locked { opacity: .75; }
.gt-car-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.gt-car-make { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-3); text-transform: uppercase; letter-spacing: 1px; }
.gt-car-make img { height: 16px; width: auto; }
.gt-car-model { font-weight: 600; font-size: 16px; line-height: 1.2; }
.gt-car-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; }
.gt-car-price { font-weight: 700; font-size: 18px; }
.gt-rarity { color: #fff; font-weight: 700; font-size: 11px; padding: 2px 8px; border-radius: 3px; text-transform: uppercase; letter-spacing: .5px; }
.gt-card-foot { padding: 0 20px 14px; }

/* midnight market */
.gt-market { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.gt-market-col { padding: 12px 14px 14px; min-width: 0; }
.gt-market-col + .gt-market-col { border-left: 1px solid var(--line); }
.gt-market-col .gt-col-title { color: var(--ink-3); margin: 2px 6px 8px; display: flex; align-items: center; gap: 6px; }
.gt-ui a.gt-listing { display: flex; align-items: center; gap: 10px; padding: 7px 6px; border-radius: 5px; color: var(--ink); }
.gt-ui a.gt-listing:hover { background: var(--panel-2); color: var(--ink); }
.gt-listing-ic { width: 36px; height: 36px; border-radius: 6px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; overflow: hidden; background: var(--panel-2); }
.gt-listing-ic img { width: 100%; height: 100%; object-fit: cover; }
.gt-listing-info { flex: 1; min-width: 0; }
.gt-listing-name { font-weight: 600; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gt-listing-meta { font-size: 11px; color: var(--ink-3); display: flex; gap: 8px; }
.gt-listing-bid { font-weight: 700; font-size: 13px; color: var(--green); white-space: nowrap; }
.gt-winning { font-size: 9px; font-weight: 700; color: #fff; background: var(--green); padding: 0 5px; border-radius: 3px; margin-left: 4px; vertical-align: middle; }

/* news (expandable, as Trophy Fishing Online's News) */
.gt-news { border-top: 1px solid var(--line); }
.gt-news:first-child { border-top: 0; }
.gt-news > summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 4px 12px; align-items: baseline; padding: 12px 20px; }
.gt-news > summary::-webkit-details-marker { display: none; }
.gt-news > summary:hover { background: var(--panel-2); }
.gt-news-caret { font-size: 10px; color: var(--red); transition: transform .15s; }
.gt-news[open] .gt-news-caret { transform: rotate(90deg); }
.gt-news-title { font-weight: 600; font-size: 15px; color: var(--ink); }
.gt-news-when { font-size: 12px; color: var(--ink-3); white-space: nowrap; }
.gt-news-body { padding: 0 20px 14px 42px; display: flex; flex-direction: column; gap: 6px; }
.gt-news-html { font-size: 13px; color: var(--ink-2); line-height: 1.55; overflow-wrap: anywhere; }
.gt-news-html p { margin: 0 0 6px; }
.gt-news-html ul, .gt-news-html ol { margin: 0 0 6px; padding-left: 18px; }
.gt-news-html li { margin: 2px 0; }
.gt-news-html img { max-width: 100%; height: auto; border-radius: 6px; margin: 4px 0; }
.gt-news-html h1, .gt-news-html h2, .gt-news-html h3 { font-family: 'Roboto Condensed', sans-serif !important; font-size: 14px !important; font-weight: 700 !important; margin: 6px 0 4px !important; }
.gt-news-html a { word-break: break-word; }

/* side column */
.gt-sec { padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; }
.gt-sec + .gt-sec { border-top: 1px solid var(--line); }
.gt-sec-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.gt-sec-title { font-weight: 600; font-size: 15px; }
.gt-streak { display: grid; gap: 4px; }
.gt-streak-day { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.gt-streak-day i { display: block; width: 100%; height: 10px; border-radius: 2px; transform: skewX(-18deg); background: var(--track); }
.gt-streak-day.on i { background: var(--red); box-shadow: 0 0 8px rgba(221,22,59,0.5); }
.gt-streak-day.last i { height: 14px; background: var(--green-soft); border: 1px solid var(--green); }
.gt-streak-day.last.on i { background: var(--green); }
.gt-streak-day b { font-size: 11px; color: var(--ink-3); font-weight: 400; }
.gt-reward-pop { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 6px; background: var(--green-soft); color: var(--green); font-weight: 700; font-size: 13px; }
.gt-quests { display: flex; flex-direction: column; gap: 6px; }
.gt-quest { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 6px; background: var(--panel-2); border: 1px solid transparent; }
.gt-quest.done { background: var(--green-soft); border-color: rgba(34,197,94,0.35); }
.gt-quest.empty { background: transparent; border: 1px dashed var(--line-2); color: var(--ink-3); }
.gt-quest-ic { width: 30px; height: 30px; border-radius: 6px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; background: var(--purple-soft); color: var(--purple); }
.gt-quest.done .gt-quest-ic { background: var(--green); color: #fff; }
.gt-quest.empty .gt-quest-ic { background: transparent; color: var(--ink-3); }
.gt-quest-info { flex: 1; min-width: 0; }
.gt-quest-name { font-weight: 600; font-size: 13px; }
.gt-quest-desc { font-size: 12px; color: var(--ink-3); }
.gt-quest-reward { font-size: 12px; color: var(--purple); font-weight: 600; }
.gt-quest-reward b { color: var(--green); }
.gt-quest-prog { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex-shrink: 0; min-width: 54px; }
.gt-quest-prog .gt-bar { width: 54px; }
.gt-quest-clear { background: none; border: 1px solid var(--line-2); color: var(--ink-3); width: 22px; height: 22px; border-radius: 4px; cursor: pointer; font-size: 11px; display: flex; align-items: center; justify-content: center; padding: 0; }
.gt-quest-clear:hover { color: #ef4444; border-color: #ef4444; }
.gt-done-toggle { background: none; border: 0; padding: 4px 0; color: var(--ink-2); font-weight: 600; font-size: 13px; cursor: pointer; display: flex; align-items: center; gap: 6px; }
.gt-streakbox { display: flex; flex-direction: column; gap: 2px; padding: 9px 12px; border-radius: 6px; background: var(--amber-soft); }
.gt-streakbox-title { font-weight: 600; color: var(--amber); }
.gt-streakbox-text { font-size: 13px; color: var(--ink-2); }
.gt-streakbox-text b { color: var(--green); }

.gt-pass-head { padding: 14px 18px; display: flex; align-items: center; gap: 10px; background: var(--purple-soft); border-bottom: 1px solid var(--line); border-radius: 8px 8px 0 0; }
.gt-pass-name { font-family: 'Marcellus SC', serif; font-size: 20px; line-height: 1.2; }
.gt-ui a.gt-btn-purple { border: 1px solid var(--purple); color: var(--purple); font-weight: 700; font-size: 13px; padding: 5px 12px; border-radius: 4px; white-space: nowrap; }
.gt-ui a.gt-btn-purple:hover { background: var(--purple); color: #fff; }
.gt-big { font-weight: 700; font-size: 30px; line-height: 1; }
.gt-boosts { display: flex; flex-direction: column; gap: 4px; margin-top: 4px; }
.gt-boost { display: flex; align-items: center; gap: 6px; font-size: 12px; }
.gt-boost-name { font-weight: 600; color: var(--ink); }
.gt-boost-time { margin-left: auto; color: var(--green); font-weight: 700; }

.gt-plan { display: flex; gap: 12px; align-items: center; padding: 8px; border-radius: 6px; background: var(--panel-2); }
.gt-ui a.gt-plan { color: var(--ink); }
.gt-ui a.gt-plan:hover { background: var(--line); color: var(--ink); }
.gt-plan img { width: 84px; height: 52px; object-fit: cover; border-radius: 4px; display: block; flex-shrink: 0; }
.gt-plan-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }

.gt-career-img { width: 84px; height: 56px; object-fit: cover; border-radius: 4px; flex-shrink: 0; background: var(--panel-2); display: flex; align-items: center; justify-content: center; color: var(--ink-3); }
.gt-rewards { display: flex; flex-wrap: wrap; gap: 10px; font-size: 12px; color: var(--ink-2); }

/* active racers */
.gt-racers { display: flex; flex-direction: column; }
.gt-racer { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6px 12px; padding: 10px 18px; border-top: 1px solid var(--line); }
.gt-racer:first-child { border-top: 0; }
.gt-racer-cell { display: flex; align-items: center; gap: 8px; min-width: 0; }
.gt-racer-cell.wide { grid-column: 1 / -1; }
.gt-racer-ic { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; flex-shrink: 0; background: var(--panel-2); display: flex; align-items: center; justify-content: center; color: var(--ink-3); }
.gt-racer-car { width: 46px; height: 28px; object-fit: contain; flex-shrink: 0; }
.gt-racer-text { min-width: 0; }
.gt-racer-p { font-weight: 600; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gt-racer-s { font-size: 12px; color: var(--ink-3); }
.gt-status-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; background: var(--ink-3); }
.gt-status-dot.racing { background: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.gt-status-dot.waiting { background: var(--amber); }
.gt-status-dot.griddash { background: #ff6600; }
.gt-status-dot.academy { background: #8b5cf6; }
.gt-status-dot.entered { background: #3b82f6; }
.gt-racers-empty { display: flex; align-items: center; gap: 12px; padding: 16px 18px; }

@media (max-width: 700px) {
    .gt-wrap, .gt-hero-in, .gt-strip-in, .gt-main, .gt-footer-in { padding-left: 16px; padding-right: 16px; }
    .gt-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .gt-stat:nth-child(3) { border-left: 0; }
    .gt-stat:nth-child(n+3) { border-top: 1px solid var(--line); }
    .gt-hero-title { font-size: 26px !important; }
    .gt-hero-me { flex-basis: 100%; }
    .gt-stats { flex-basis: 100%; }
    .gt-season-col + .gt-season-col, .gt-week + .gt-week, .gt-market-col + .gt-market-col { border-left: 0; border-top: 1px solid var(--line); }
    .gt-card-head { padding: 12px 16px; }
    .gt-cars { padding: 14px 16px; }
    .gt-reset { margin-left: 0; width: 100%; justify-content: flex-start; }
    .gt-news > summary { padding: 12px 16px; }
    .gt-news-body { padding: 0 16px 14px 16px; }
    .gt-footer-links { margin-left: 0; }
}

/* ------------------------------------------------------------------ Weekend event */
.gt-we-logo { width: 76px; height: 76px; flex-shrink: 0; border-radius: 8px; background: #F4F1EC; border: 1px solid var(--line-2); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.gt-we-logo img { width: 64px; height: 64px; object-fit: contain; }
.gt-we-live { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase; color: #fff; background: var(--red); padding: 2px 8px; border-radius: 3px; }
.gt-we-live::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #fff; }
.gt-we-live.upcoming { background: #2563eb; }
.gt-we-units { display: flex; gap: 6px; }
.gt-we-unit { min-width: 52px; padding: 6px 8px; border-radius: 6px; background: var(--panel); border: 1px solid var(--line); text-align: center; display: flex; flex-direction: column; }
.gt-we-unit b { font-weight: 700; font-size: 22px; line-height: 1; }
.gt-we-unit span { font-size: 10px; letter-spacing: 1px; text-transform: uppercase; color: var(--ink-3); margin-top: 3px; }
.gt-we-tiercard { flex: 1 1 360px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 14px 16px; border-radius: 8px; background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow); }
.gt-we-ticks { display: grid; gap: 2px; align-items: center; }
.gt-we-ticks span { height: 8px; border-radius: 2px; background: var(--track); }
.gt-we-ticks span.car { height: 12px; }
.gt-we-ticks span.on { background: var(--red); }
.gt-we-ticks span.next { background: var(--red-soft); outline: 1px solid var(--red); }
.gt-ui a.gt-we-deluxe-btn { flex-shrink: 0; display: flex; flex-direction: column; align-items: center; padding: 8px 14px; border-radius: 6px; background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%); color: #1A1206; box-shadow: 0 4px 16px rgba(245,158,11,0.3); }
.gt-ui a.gt-we-deluxe-btn:hover { color: #1A1206; filter: brightness(1.06); }
.gt-we-deluxe-btn span { font-weight: 700; font-size: 14px; white-space: nowrap; }
.gt-we-deluxe-btn small { font-size: 12px; font-weight: 600; }
.gt-we-deluxe-on { flex-shrink: 0; font-weight: 700; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--amber); background: var(--amber-soft); border: 1px solid var(--amber); padding: 6px 10px; border-radius: 4px; }
.gt-we-legend { margin-left: auto; display: flex; gap: 14px; font-size: 12px; color: var(--ink-3); }
.gt-we-legend span { display: flex; align-items: center; gap: 6px; }
.gt-we-legend i.free, .gt-we-legend i.deluxe { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }
.gt-we-legend i.free { background: var(--panel-2); border: 1px solid var(--line-2); }
.gt-we-legend i.deluxe { background: var(--amber-soft); border: 1px solid var(--amber); }
.gt-we-grid { padding: 16px 20px 20px; display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); grid-auto-flow: dense; gap: 10px; }
.gt-we-tile { display: flex; flex-direction: column; border-radius: 6px; overflow: hidden; background: var(--panel-2); border: 1px solid var(--line); }
.gt-we-tile.wide { grid-column: span 2; }
.gt-we-tile.is-next { border-color: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }
.gt-we-tile.is-done { opacity: .62; }
.gt-we-tile-head { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-bottom: 1px solid var(--line); min-height: 38px; }
.gt-we-num { min-width: 24px; height: 22px; padding: 0 6px; border-radius: 4px; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; transform: skewX(-10deg); background: var(--track); color: var(--ink-2); }
.gt-we-num.reached { background: var(--green); color: #fff; }
.gt-we-num.next { background: var(--red); color: #fff; }
.gt-we-claim { border: 0; cursor: pointer; background: var(--red); color: #fff; font-weight: 700; font-size: 12px; padding: 3px 10px; border-radius: 4px; }
.gt-we-claim:hover { background: var(--red-2); }
.gt-we-claim.deluxe { background: #D97706; }
.gt-we-claim:disabled { opacity: .6; cursor: default; }
.gt-we-claimed { font-size: 11px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--green); }
.gt-we-tile-body { display: flex; flex: 1; min-height: 0; }
.gt-ui a.gt-we-car { position: relative; flex: 0 0 46%; min-height: 104px; background: #1A1A1A; display: block; }
.gt-we-car img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gt-we-car-tags { position: absolute; left: 6px; top: 6px; display: flex; gap: 4px; }
.gt-we-car-tags span { color: #fff; font-weight: 700; font-size: 11px; padding: 1px 6px; border-radius: 3px; }
.gt-we-rewards { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.gt-we-free { padding: 9px 10px; display: flex; align-items: flex-start; gap: 9px; flex: 1; }
.gt-we-dx { margin-top: auto; display: flex; align-items: center; gap: 9px; padding: 7px 10px; background: var(--amber-soft); border-top: 1px solid var(--line); color: var(--ink-2); }
.gt-we-dx.owned { color: var(--ink); }
.gt-we-label { font-weight: 600; font-size: 14px; line-height: 1.25; text-wrap: pretty; overflow-wrap: anywhere; }
.gt-we-ic { width: 30px; height: 30px; flex-shrink: 0; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.gt-we-ic.cash { background: var(--green-soft); color: var(--green); }
.gt-we-ic.car { background: var(--red-soft); color: var(--red); }
.gt-we-ic.part { background: var(--blue-soft); color: var(--blue); }
.gt-we-ic.gear { background: var(--amber-soft); color: var(--amber); }
.gt-we-ic.drop { background: var(--purple-soft); color: var(--purple); }
.gt-we-random { font-weight: 700; background: linear-gradient(90deg, #9ca3af, #22c55e, #3b82f6, #f59e0b); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.gt-ui a.gt-we-past { display: flex; align-items: center; gap: 12px; padding: 11px 18px; border-top: 1px solid var(--line); color: var(--ink); }
.gt-we-past:first-child { border-top: 0; }
.gt-ui a.gt-we-past:hover { background: var(--panel-2); color: var(--ink); }
.gt-we-past-logo { width: 36px; height: 36px; flex-shrink: 0; border-radius: 6px; background: #fff; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; overflow: hidden; color: var(--ink-3); }
.gt-we-past-logo img { width: 30px; height: 30px; object-fit: contain; }
@media (max-width: 700px) {
    .gt-we-tile.wide { grid-column: span 1; }
    .gt-we-tile.wide .gt-we-tile-body { flex-direction: column; }
    .gt-ui .gt-we-tile.wide a.gt-we-car { flex-basis: auto; aspect-ratio: 16 / 9; min-height: 0; }
    .gt-we-grid { padding: 14px 16px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
    .gt-we-legend { margin-left: 0; }
}

/* ------------------------------------------------------------------ Parts Workshop (garage/workshop) */
.gt-ws-band { background: linear-gradient(90deg, #DD163B 0%, #A11029 100%); color: #fff; }
.gt-ws-band-in { max-width: 1440px; margin: 0 auto; padding: 14px 24px 0; display: flex; flex-direction: column; gap: 12px; }
.gt-ws-band-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; }
.gt-ui .gt-ws-back { color: rgba(255,255,255,0.85); font-size: 13px; font-weight: 600; }
.gt-ui .gt-ws-back:hover { color: #fff; }
.gt-ws-title { margin: 0 !important; font-family: 'Marcellus SC', serif !important; font-weight: 400 !important; font-size: 26px !important; line-height: 1.1 !important; color: #fff !important; }
.gt-ws-sub { font-size: 13px; color: rgba(255,255,255,0.88); flex: 1 1 320px; }
.gt-ws-cash { font-weight: 700; font-variant-numeric: tabular-nums; background: rgba(0,0,0,0.22); border-radius: 6px; padding: 5px 10px; white-space: nowrap; }
.gt-ws-search { display: flex; align-items: center; gap: 8px; background: rgba(0,0,0,0.22); border-radius: 6px; padding: 3px 10px; }
.gt-ws-search input { background: transparent; border: 0; outline: none; color: #fff; font-family: inherit; font-size: 14px; width: 150px; padding: 4px 0; }
.gt-ws-search input::placeholder { color: rgba(255,255,255,0.7); }
.gt-ws-tabs { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.gt-ws-tabs::-webkit-scrollbar { display: none; }
.gt-ws-tab { display: flex; align-items: center; gap: 8px; border: 0; cursor: pointer; font-family: inherit; font-size: 15px; font-weight: 600; padding: 10px 20px; border-radius: 6px 6px 0 0; white-space: nowrap; background: rgba(0,0,0,0.18); color: rgba(255,255,255,0.92); }
.gt-ws-tab:hover { background: rgba(0,0,0,0.28); }
.gt-ws-tab.on { background: var(--bg); color: var(--red); }
.gt-ws-tab .n { font-size: 11px; font-weight: 700; padding: 0 6px; border-radius: 8px; line-height: 16px; background: rgba(255,255,255,0.18); color: #fff; }
.gt-ws-tab.on .n { background: var(--red-soft); color: var(--red); }
.gt-ws-tab .fa-lock { font-size: 12px; opacity: 0.85; }

.gt-ws-rail { padding: 12px 16px; display: flex; flex-direction: column; gap: 10px; }
.gt-ws-rail-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.gt-ws-eyebrow { font-size: 12px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--ink-3); font-weight: 700; }
.gt-ws-equipped { display: flex; flex-wrap: wrap; gap: 6px; }
.gt-ws-eq { display: inline-flex; align-items: center; gap: 8px; padding: 3px 4px 3px 8px; border-radius: 5px; background: var(--panel-2); border: 1px solid var(--line); font-size: 13px; }
.gt-ws-eq .dot { width: 8px; height: 8px; border-radius: 2px; }
.gt-ws-eq button { width: 20px; height: 20px; border: 0; border-radius: 3px; background: transparent; color: var(--ink-3); cursor: pointer; font-size: 15px; line-height: 1; font-family: inherit; }
.gt-ws-eq button:hover { background: var(--red-soft); color: var(--red); }
.gt-ws-linkbtn { border: 0; background: transparent; color: var(--ink-3); font-family: inherit; font-size: 13px; font-weight: 600; cursor: pointer; padding: 0; }
.gt-ws-linkbtn:hover { color: var(--red); }
.gt-ws-note { border: 1px solid var(--line-2); border-radius: 8px; padding: 12px 16px; display: flex; gap: 10px; align-items: flex-start; color: var(--ink-2); font-size: 14px; background: var(--panel); }
.gt-ws-note.warn { border-color: var(--amber); background: var(--amber-soft); color: var(--ink); }

.gt-ws-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: 12px; }
.gt-ws-part { display: flex; flex-direction: column; border-radius: 6px; overflow: hidden; background: var(--panel); border: 1px solid var(--line); transition: border-color .15s, opacity .15s; }
.gt-ws-part.on { border-color: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }
.gt-ws-part.dim { opacity: 0.55; }
.gt-ws-part-art { position: relative; height: 140px; overflow: hidden; display: flex; align-items: center; justify-content: center; background: radial-gradient(ellipse at 50% 40%, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0) 62%); }
[data-theme="light"] .gt-ws-part-art { background: radial-gradient(ellipse at 50% 40%, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0) 62%); }
.gt-ws-part-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gt-ws-part-fam, .gt-ws-part-tag { z-index: 1; }
.gt-ws-part-fam { text-shadow: 0 1px 2px rgba(0,0,0,0.5); color: #fff !important; }
.gt-ws-part-fam { position: absolute; top: 8px; left: 10px; font-size: 11px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; color: var(--ink-3); }
.gt-ws-part-tag { position: absolute; top: 7px; right: 8px; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 3px; }
.gt-ws-part-tag.owned { color: var(--green); background: var(--green-soft); }
.gt-ws-ic { width: 64px; height: 64px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 26px; }
.gt-ws-part-bar { z-index: 1; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; }
.gt-ws-part-body { padding: 9px 12px 4px; background: var(--panel-2); flex: 1; }
.gt-ws-part-name { font-weight: 600; font-size: 15px; line-height: 1.2; }
.gt-ws-part-stat { font-weight: 700; font-size: 13px; font-variant-numeric: tabular-nums; margin-top: 2px; }
.gt-ws-part-why { font-size: 12px; color: var(--ink-3); margin-top: 3px; }
.gt-ws-part-foot { display: flex; align-items: center; gap: 8px; padding: 8px 12px 10px; background: var(--panel-2); }
.gt-ws-price { font-weight: 700; font-variant-numeric: tabular-nums; }
.gt-ws-btn { margin-left: auto; border: 0; cursor: pointer; font-family: inherit; font-weight: 700; font-size: 13px; padding: 5px 12px; border-radius: 4px; white-space: nowrap; }
.gt-ws-btn.buy { background: var(--green); color: #fff; }
.gt-ws-btn.equip { background: transparent; color: var(--ink); border: 1px solid var(--line-2); }
.gt-ws-btn.equipped { background: var(--red); color: #fff; }
.gt-ws-btn:disabled { background: var(--track); color: var(--ink-3); cursor: not-allowed; border: 0; }
.gt-ws-empty { border: 1px dashed var(--line-2); border-radius: 8px; padding: 28px; text-align: center; color: var(--ink-3); }

.gt-ws-car { position: sticky; top: 80px; overflow: hidden; }
.gt-ws-car-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.gt-ws-status { margin-left: auto; font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; padding: 2px 10px; border-radius: 3px; }
.gt-ws-status.stock { color: var(--green); background: var(--green-soft); border: 1px solid var(--green); }
.gt-ws-status.mod { color: #fff; background: #EA580C; }
.gt-ws-car-pic { position: relative; aspect-ratio: 16 / 8; background-position: center 60%; background-size: cover; background-repeat: no-repeat; background-color: var(--panel-2); }
.gt-ws-car-cap { position: absolute; inset: auto 0 0 0; padding: 24px 16px 10px; background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.82) 100%); color: #fff; display: flex; align-items: flex-end; gap: 8px; }
.gt-ws-car-cap b { font-size: 21px; line-height: 1.1; flex: 1; min-width: 0; }
.gt-ws-cls { color: #fff; font-weight: 700; font-size: 12px; padding: 2px 7px; border-radius: 3px; }
.gt-ws-stats { padding: 12px 16px 14px; display: flex; flex-direction: column; gap: 6px; }
.gt-ws-row { display: grid; grid-template-columns: 96px minmax(0,1fr) 92px; align-items: center; gap: 10px; height: 24px; }
.gt-ws-row > span:first-child { font-size: 13px; color: var(--ink-2); }
.gt-ws-track { position: relative; height: 6px; border-radius: 3px; background: var(--track); overflow: hidden; }
.gt-ws-track i { position: absolute; top: 0; bottom: 0; }
.gt-ws-val { text-align: right; font-weight: 700; font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.gt-ws-val small { font-size: 11px; margin-left: 4px; }
.gt-ws-pi { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 16px; border-top: 1px solid var(--line); font-size: 14px; }
.gt-ws-hover { padding: 10px 16px; border-top: 1px solid var(--line); background: var(--panel-2); display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-2); }
.gt-ws-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 2300; background: var(--panel); color: var(--ink); border: 1px solid var(--line-2); border-left: 4px solid var(--green); border-radius: 6px; padding: 10px 16px; box-shadow: var(--menu-shadow); font-size: 14px; max-width: calc(100vw - 32px); }
.gt-ws-toast.err { border-left-color: var(--red); }
@media (max-width: 700px) {
    .gt-ws-band-in { padding: 12px 16px 0; }
    .gt-ws-car { position: static; }
    .gt-ws-side { order: -1; }
    .gt-ws-tab { padding: 9px 14px; font-size: 14px; }
    .gt-ws-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .gt-ws-part-art { height: 88px; }
    .gt-ws-ic { width: 52px; height: 52px; font-size: 21px; }
    .gt-ws-part-foot { flex-wrap: wrap; gap: 6px; }
    .gt-ws-btn { margin-left: 0; width: 100%; }
}

/* ------------------------------------------------------------------ Car page (garage/show) */
.gt-cv { max-width: 1440px; margin: 0 auto; padding: 16px 24px 32px; display: flex; flex-direction: column; gap: 20px; }
.gt-cv-title { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 20px; }
.gt-cv-title-main { flex: 1 1 380px; min-width: 0; }
.gt-cv-crumb { font-size: 13px; color: var(--ink-3); display: flex; gap: 6px; }
.gt-ui .gt-cv-crumb a { font-weight: 600; }
.gt-cv-name { display: flex; align-items: center; gap: 14px; margin-top: 6px; }
.gt-cv-name h1 { margin: 0 !important; font-family: 'Marcellus SC', serif !important; font-weight: 400 !important; font-size: 36px !important; line-height: 1.05 !important; color: var(--ink) !important; overflow-wrap: anywhere; }
.gt-cv-logo { width: 52px; height: 52px; flex-shrink: 0; border-radius: 6px; background: #fff; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; padding: 5px; }
.gt-cv-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.gt-cv-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 4px; font-size: 14px; color: var(--ink-2); }
.gt-cv-chip { display: inline-block; color: #fff; font-weight: 700; font-size: 12px; padding: 1px 7px; border-radius: 3px; line-height: 1.5; }
.gt-cv-chip.lg { font-size: 15px; padding: 2px 10px; }
.gt-cv-tag { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; letter-spacing: 0.8px; text-transform: uppercase; padding: 1px 8px; border-radius: 3px; }
.gt-cv-tag.stock { color: var(--green); background: var(--green-soft); border: 1px solid var(--green); }
.gt-cv-tag.mod { color: #fff; background: #EA580C; }
.gt-cv-tag.busy { color: var(--amber); background: var(--amber-soft); border: 1px solid var(--amber); }
.gt-cv-custom { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-weight: 600; }
.gt-cv-mask { display: inline-block; width: 18px; height: 18px; -webkit-mask-size: contain; mask-size: contain; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: center; mask-position: center; }
.gt-cv-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: stretch; }
.gt-cv-actions .gt-btn, .gt-cv-actions .gt-btn-ghost { font-size: 14px; padding: 8px 14px; }
.gt-ui .is-off { opacity: 0.5; cursor: not-allowed; }
.gt-cv-more { position: relative; }
.gt-cv-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; min-width: 230px; background: var(--panel); border: 1px solid var(--line-2); border-radius: 6px; padding: 4px; box-shadow: var(--menu-shadow); display: flex; flex-direction: column; }
.gt-cv-menu a, .gt-cv-menu button, .gt-cv-menu span { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 4px; font-weight: 600; font-size: 14px; border: 0; background: transparent; text-align: left; font-family: inherit; cursor: pointer; color: var(--ink) !important; }
.gt-cv-menu a:hover, .gt-cv-menu button:hover { background: var(--panel-2); }
.gt-cv-menu .purple { color: var(--purple) !important; }
.gt-cv-menu .purple:hover { background: var(--purple-soft); }
.gt-cv-menu .red { color: var(--red) !important; }
.gt-cv-menu .red:hover { background: var(--red-soft); }
.gt-cv-menu .off { opacity: 0.45; cursor: not-allowed; }
.gt-cv-menu button:disabled { cursor: default; opacity: 0.7; }
.gt-cv-menu .sep { height: 1px; padding: 0; margin: 4px 0; background: var(--line); }

.gt-cv-hero { display: flex; flex-wrap: wrap; gap: 20px; }
.gt-cv-photo { flex: 3 1 560px; min-width: 0; position: relative; min-height: 380px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); background-color: #1A1A1A; }
.gt-cv-photo-img { position: absolute; inset: 0; background-position: center 55%; background-size: cover; background-repeat: no-repeat; }
.gt-cv-owned { z-index: 1; position: absolute; top: 12px; left: 12px; display: flex; align-items: center; gap: 6px; background: rgba(0,0,0,0.65); color: #fff; font-weight: 600; font-size: 13px; padding: 4px 10px; border-radius: 4px; }
.gt-cv-owned .dot { width: 7px; height: 7px; border-radius: 50%; background: #22C55E; }
.gt-cv-headline { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 16px 14px; background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.85) 100%); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; color: #fff; }
.gt-cv-headline > div { display: flex; flex-direction: column; min-width: 0; }
.gt-cv-headline span { font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase; color: rgba(255,255,255,0.7); font-weight: 600; }
.gt-cv-headline b { font-size: 26px; line-height: 1.1; white-space: nowrap; }
.gt-cv-headline small { font-size: 13px; font-weight: 400; color: rgba(255,255,255,0.75); margin-left: 3px; }
.gt-cv-side { flex: 2 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.gt-cv-box { padding: 14px 18px; display: flex; flex-direction: column; gap: 10px; }
.gt-cv-boxhead { display: flex; align-items: center; gap: 10px; }
.gt-cv-eyebrow { font-size: 12px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--ink-3); font-weight: 700; }
.gt-cv-character { margin-left: auto; font-size: 12px; font-weight: 700; color: var(--red); background: var(--red-soft); padding: 1px 8px; border-radius: 3px; }
.gt-cv-character .fa-wrench { color: var(--amber); margin-left: 4px; }
.gt-cv-perf { display: grid; grid-template-columns: 76px minmax(0, 1fr) 64px; align-items: center; gap: 10px; height: 24px; }
.gt-cv-perf > span:first-child { font-size: 13px; color: var(--ink-2); }
.gt-cv-segs { display: grid; grid-template-columns: repeat(10, 1fr); gap: 2px; }
.gt-cv-segs i { height: 10px; border-radius: 1px; transform: skewX(-14deg); }
.gt-cv-wear { height: 8px; border-radius: 4px; background: var(--track); overflow: hidden; }
.gt-cv-wear i { display: block; height: 100%; border-radius: 4px; }
.gt-cv-blue { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--blue); color: var(--blue) !important; background: transparent; font-family: inherit; font-weight: 700; font-size: 13px; padding: 6px 12px; border-radius: 4px; cursor: pointer; white-space: nowrap; }
.gt-cv-blue:hover { background: var(--blue-soft); }

.gt-cv-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.gt-cv-link { border: 0; background: transparent; color: var(--red); font-family: inherit; font-weight: 600; font-size: 13px; cursor: pointer; padding: 0; }
.gt-cv-storeicon { width: 40px; height: 40px; flex-shrink: 0; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 18px; }
.gt-cv-cap { flex: 1; height: 5px; border-radius: 3px; background: var(--track); overflow: hidden; }
.gt-cv-cap i { display: block; height: 100%; background: var(--ink-3); }

.gt-cv-details { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.gt-cv-tabs-card { flex: 3 1 620px; min-width: 0; }
.gt-cv-tabs { display: flex; gap: 2px; padding: 0 12px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.gt-cv-tabs::-webkit-scrollbar { display: none; }
.gt-cv-tabs button { border: 0; background: transparent; cursor: pointer; font-family: inherit; font-size: 14px; font-weight: 600; padding: 12px 14px; white-space: nowrap; color: var(--ink-3); border-bottom: 3px solid transparent; margin-bottom: -1px; }
.gt-cv-tabs button.on { color: var(--ink); border-bottom-color: var(--red); }
.gt-cv-specs { padding: 6px 20px 16px; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); column-gap: 32px; }
.gt-cv-specs > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 40px; border-bottom: 1px solid var(--line); }
.gt-cv-specs > div > span { color: var(--ink-3); }
.gt-cv-specs b { font-weight: 600; text-align: right; }
.gt-cv-pad { padding: 16px 20px; display: flex; flex-direction: column; gap: 18px; }
.gt-cv-timeline { display: flex; align-items: flex-start; overflow-x: auto; padding-bottom: 4px; }
.gt-cv-timeline > div { flex: 1 0 84px; display: flex; flex-direction: column; align-items: center; gap: 6px; position: relative; }
.gt-cv-timeline > div > i { position: absolute; top: 11px; left: 0; right: 0; height: 2px; background: var(--line-2); }
.gt-cv-timeline > div.first > i { left: 50%; }
.gt-cv-timeline > div.last > i { right: 50%; }
.gt-cv-timeline .gt-cv-chip { position: relative; z-index: 1; min-width: 40px; text-align: center; font-size: 13px; padding: 2px 8px; }
.gt-cv-timeline > div.last .gt-cv-chip { outline: 2px solid var(--red); box-shadow: 0 0 0 3px var(--red-soft); }
.gt-cv-timeline small { font-size: 12px; color: var(--ink-3); white-space: nowrap; }
.gt-cv-pill { display: inline-flex; align-items: center; gap: 8px; padding: 5px 10px; border-radius: 5px; background: var(--panel-2); border: 1px solid var(--line); }
.gt-cv-gridfax-head { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 6px; background: linear-gradient(90deg, #1E2A78 0%, #2B3A9A 100%); color: #fff; }
.gt-cv-gridfax-head > span { width: 34px; height: 34px; border-radius: 6px; background: #fff; color: #1E2A78; display: flex; align-items: center; justify-content: center; font-size: 16px; }
.gt-cv-fax { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.gt-cv-fax:last-child { border-bottom: 0; }
.gt-cv-fax-n { width: 28px; height: 28px; flex-shrink: 0; border-radius: 50%; background: var(--green-soft); color: var(--green); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; }
.gt-cv-fax-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 2px; }
.gt-cv-notes { flex: 1 1 320px; min-width: 0; }
.gt-cv-notes textarea { min-height: 140px; resize: vertical; background: var(--panel-2); color: var(--ink); border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; font-family: inherit; font-size: 14px; outline: none; width: 100%; }
.gt-cv-notes textarea::placeholder { color: var(--ink-3); }

/* car page modals */
.gt-cv-x { border: 0; background: transparent; color: var(--ink-3); font-size: 22px; line-height: 1; cursor: pointer; }
.gt-cv-x:hover { color: var(--red); }
.gt-cv-form { display: flex; flex-direction: column; gap: 8px; }
.gt-cv-form label { font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--ink-3); font-weight: 700; margin: 4px 0 0; }
.gt-cv-form input[type=text], .gt-cv-form input[type=number], .gt-cv-form select { width: 100%; background: var(--panel-2); color: var(--ink); border: 1px solid var(--line-2); border-radius: 5px; padding: 7px 10px; font-family: inherit; font-size: 14px; }
.gt-cv-preview { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 6px; background: #111; }
.gt-cv-color { display: flex; gap: 8px; align-items: center; }
.gt-cv-color input[type=color] { width: 40px; height: 34px; padding: 0; border: 1px solid var(--line-2); border-radius: 5px; background: transparent; cursor: pointer; }
.gt-cv-iconpick { display: flex; flex-direction: column; gap: 8px; border: 1px solid var(--line); border-radius: 6px; padding: 10px; }
.gt-cv-icongrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(40px, 1fr)); gap: 6px; max-height: 220px; overflow-y: auto; }
.gt-cv-icongrid button { height: 40px; border: 1px solid var(--line); border-radius: 5px; background: var(--panel-2); cursor: pointer; font-size: 18px; display: flex; align-items: center; justify-content: center; }
.gt-cv-icongrid button.on { border-color: var(--red); box-shadow: 0 0 0 2px var(--red-soft); }
.gt-cv-icongrid img { width: 22px; height: 22px; }
.gt-cv-pager { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 13px; }
.gt-cv-pager button { border: 1px solid var(--line-2); background: var(--panel-2); color: var(--ink); border-radius: 4px; padding: 2px 8px; cursor: pointer; }
.gt-cv-pager button:disabled { opacity: 0.4; cursor: default; }
.gt-cv-balance { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border-radius: 6px; background: var(--panel-2); }
.gt-cv-balance b { font-size: 18px; color: var(--green); }
.gt-cv-service { border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; cursor: pointer; transition: border-color .15s; }
.gt-cv-service:hover { border-color: var(--red); }
.gt-cv-service.off { opacity: 0.55; cursor: not-allowed; }
.gt-cv-service.off:hover { border-color: var(--line); }
.gt-cv-sum { border-radius: 6px; background: var(--panel-2); padding: 4px 12px; }
.gt-cv-sum > div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.gt-cv-sum > div:last-child { border-bottom: 0; }
.gt-cv-sum span { color: var(--ink-3); }
.gt-cv-sum b { text-align: right; }
.gt-cv-warn { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--red); background: var(--red-soft); border-radius: 6px; padding: 10px 12px; font-size: 13px; }
.gt-cv-warn > i { color: var(--red); margin-top: 2px; }
.gt-cv-money { position: relative; }
.gt-cv-money span { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--green); font-weight: 700; }
.gt-cv-money input { padding-left: 22px !important; font-weight: 700; font-size: 16px !important; }
.gt-cv-storeopt { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; cursor: pointer; text-transform: none !important; letter-spacing: 0 !important; font-size: 14px !important; }
.gt-cv-storeopt:hover { border-color: var(--line-2); background: var(--panel-2); }
.gt-cv-storeopt.off { opacity: 0.5; cursor: not-allowed; }

@media (max-width: 700px) {
    .gt-cv { padding: 12px 16px 24px; }
    .gt-cv-name h1 { font-size: 28px !important; }
    /* phones: the picture on top, the spec strip underneath it instead of over the car */
    .gt-cv-photo { min-height: 0; flex-basis: 100%; display: flex; flex-direction: column; }
    .gt-cv-photo-img { position: relative; inset: auto; aspect-ratio: 16 / 10; }
    .gt-cv-headline { position: static; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; padding: 10px 12px 12px; background: #141414; }
    .gt-cv-headline span { font-size: 10px; letter-spacing: 0.8px; }
    .gt-cv-headline b { font-size: 17px; }
    .gt-cv-headline small { font-size: 11px; margin-left: 2px; }
    .gt-cv-tabs-card { flex-basis: 100%; }
    .gt-cv-menu { right: auto; left: 0; }
}

/* ------------------------------------------------------------------ Dealership car (garage/dealership); shares gt-cv-* with the car page */
.gt-cv-headline.five { grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); }
.gt-cv-headline.five b { font-size: 24px; }
.gt-dl-hero { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.gt-dl-left { flex: 3 1 600px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.gt-dl-photo { flex: none; min-height: 0; aspect-ratio: 16 / 9; }
.gt-dl-nopic { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: #777; }
.gt-dl-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.gt-dl-about { margin: 0; font-size: 14px; line-height: 1.55; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.gt-dl-about.open { display: block; -webkit-line-clamp: unset; }
.gt-dl-buy { flex: 2 1 360px; min-width: 0; position: sticky; top: 80px; overflow: hidden; }
.gt-dl-buy-in { padding: 16px 18px; display: flex; flex-direction: column; gap: 14px; }
.gt-dl-price { font-weight: 700; font-size: 40px; line-height: 1; color: var(--green); }
.gt-dl-colors { display: flex; flex-wrap: wrap; gap: 8px; }
.gt-dl-colors button { position: relative; width: 64px; height: 48px; padding: 2px; border-radius: 6px; border: 2px solid var(--line); background: var(--panel-2); cursor: pointer; }
.gt-dl-colors button.on { border-color: var(--red); }
.gt-dl-colors button > img { width: 100%; height: 100%; object-fit: cover; border-radius: 3px; display: block; }
.gt-dl-colors .own { position: absolute; left: -5px; bottom: -5px; width: 18px; height: 18px; border-radius: 50%; background: var(--green); color: #fff; font-size: 10px; display: flex; align-items: center; justify-content: center; }
.gt-dl-colors .le { position: absolute; left: 3px; top: 3px; }
.gt-dl-colors .le img { height: 12px; display: block; }
.gt-dl-colors .qty { position: absolute; right: -5px; top: -5px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--red); color: #fff; font-size: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.gt-dl-collect { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border-radius: 6px; background: var(--panel-2); }
.gt-dl-segs { display: grid; gap: 3px; }
.gt-dl-segs i { height: 8px; border-radius: 2px; transform: skewX(-14deg); background: var(--track); }
.gt-dl-segs i.own { background: var(--green); }
.gt-dl-segs i.cur:not(.own) { background: var(--red-soft); outline: 1px dashed var(--red); }
.gt-dl-note { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; border-radius: 6px; font-size: 13px; color: var(--ink-2); }
.gt-dl-note.amber { background: var(--amber-soft); border: 1px solid var(--amber); }
.gt-dl-note.amber b { color: var(--amber); }
.gt-dl-note.blue { background: var(--blue-soft); border: 1px solid var(--blue); }
.gt-dl-note.blue b { color: var(--blue); }
.gt-dl-cta { flex: 1; border: 0; cursor: pointer; font-family: inherit; font-weight: 700; font-size: 16px; padding: 12px; border-radius: 6px; background: var(--red); color: #fff; }
.gt-dl-cta:hover { background: var(--red-2); }
.gt-dl-cta.added { background: var(--green); }
.gt-dl-cta:disabled { background: var(--track); color: var(--ink-3); cursor: not-allowed; }
.gt-ui .gt-dl-cartbtn { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; padding: 0 14px; border-radius: 6px; border: 1px solid var(--line-2); background: var(--panel-2); color: var(--ink); white-space: nowrap; }
.gt-ui .gt-dl-cartbtn.on { border-color: var(--amber); background: var(--amber-soft); color: var(--amber); }
.gt-dl-plan { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; border-radius: 6px; border: 1px solid var(--blue); background: var(--blue-soft); }
.gt-dl-plan > b { color: var(--blue); }
.gt-dl-plan.green { border-color: var(--green); background: var(--green-soft); }
.gt-dl-plan.green b { color: var(--green); }
.gt-dl-planlist { list-style: none; margin: 0; padding: 0; font-size: 12px; color: var(--ink-2); display: flex; flex-direction: column; gap: 4px; }
.gt-dl-planlist i { width: 16px; color: var(--blue); }
.gt-dl-firsts { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; border-radius: 6px; background: var(--green-soft); border: 1px solid var(--green); font-size: 13px; color: var(--ink-2); }
.gt-dl-firsts > b { color: var(--green); margin-bottom: 2px; }
.gt-dl-firsts .fa-star { color: var(--amber); font-size: 10px; margin-right: 4px; }
.gt-dl-firsts strong { color: var(--ink); }
.gt-dl-admin { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 18px; border-top: 1px solid var(--line); background: var(--purple-soft); }
.gt-dl-admin select { flex: 1; min-width: 0; background: var(--panel); color: var(--ink); border: 1px solid var(--line-2); border-radius: 4px; padding: 6px 8px; font-family: inherit; font-size: 13px; }
.gt-dl-banner { display: flex; gap: 14px; align-items: flex-start; padding: 14px 18px; }
.gt-dl-banner .ic, .gt-dl-rot-head .ic { width: 40px; height: 40px; flex-shrink: 0; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 18px; }
.gt-dl-banner.blue { border-color: var(--blue); }
.gt-dl-banner.blue .ic { background: var(--blue-soft); color: var(--blue); }
.gt-dl-banner .t, .gt-dl-rot-head .t { font-weight: 700; font-size: 17px; }
.gt-dl-rotation { padding: 14px 18px; display: flex; flex-direction: column; gap: 12px; border-color: var(--amber); }
.gt-dl-rotation.weekly { border-color: var(--purple); }
.gt-dl-rot-head { display: flex; align-items: center; gap: 14px; }
.gt-dl-rotation .ic { background: var(--amber-soft); color: var(--amber); }
.gt-dl-rotation.weekly .ic { background: var(--purple-soft); color: var(--purple); }
.gt-dl-rot-cars { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.gt-ui .gt-dl-rot-cars a { display: flex; flex-direction: column; gap: 3px; padding: 6px; border-radius: 6px; border: 1px solid var(--line); background: var(--panel-2); color: var(--ink); }
.gt-ui .gt-dl-rot-cars a.on { border-color: var(--green); }
.gt-dl-rot-cars img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; border-radius: 4px; }
.gt-dl-rot-cars .n { font-size: 13px; font-weight: 600; line-height: 1.2; }
.gt-dl-rot-cars .p { font-size: 13px; color: var(--green); font-weight: 700; }
.gt-dl-hist { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 24px; }
@media (max-width: 700px) {
    .gt-dl-photo { aspect-ratio: auto; }
    .gt-cv-headline.five { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .gt-cv-headline.five b { font-size: 17px; }
    .gt-dl-buy { position: static; }
    .gt-dl-price { font-size: 32px; }
    .gt-dl-hist { grid-template-columns: 1fr; }
}
