/* Qwerty-style console structure, adapted to Top Golds' yellow/silver/white palette. */
:root {
 --tg-sidebar-width:245px; --tg-canvas:#f2f3f5; --tg-panel:#fff;
 --tg-ink:#292b31; --tg-muted:#555b66; --tg-border:#d9dde3;
 --tg-silver:#ebedf1; --tg-gold:#f6d46c; --tg-gold-light:#fff4cd; --tg-gold-ink:#614408;
 --tg-shadow:0 8px 24px #1923350d;
}
body.tg-qwerty {background:var(--tg-canvas);color:var(--tg-ink);font-family:Arial,sans-serif}
.tg-qwerty .workspace {background:var(--tg-canvas);min-height:100dvh}
.tg-qwerty main {padding-top:21px}
.tg-qwerty #crm-sidebar {
 inset:12px auto auto 12px;width:224px;height:calc(100dvh - 24px);padding:13px 11px;
 background:#fdfdfe;color:var(--tg-ink);border:1px solid #d7dbe3;border-radius:16px;
 box-shadow:var(--tg-shadow);transform:translateX(calc(-100% - 16px));
}
.tg-qwerty #crm-sidebar.open {transform:none;left:12px}
.tg-qwerty #crm-sidebar .brand {gap:8px;padding:1px 32px 12px 0}
.tg-qwerty #crm-sidebar .brand b {color:#30323a;font:800 12px Arial,sans-serif;letter-spacing:.05em}
.tg-qwerty #crm-sidebar .brand small {color:#606875;font:600 9px Arial,sans-serif;letter-spacing:.1em}
.tg-qwerty #crm-sidebar .brand-gem,.tg-qwerty .tg-workspace-icon {
 background:#f6d46c;color:#3d2a08;display:grid;place-items:center;width:30px;height:30px;flex:0 0 30px;font:800 10px Arial,sans-serif;border-radius:8px;clip-path:none;
}
.tg-qwerty #crm-sidebar #nav-close,.tg-qwerty #menu-button {
 color:#363943;border:1px solid #cbd0d7;background:#fff;border-radius:9px;box-shadow:none;
}
.tg-qwerty #crm-sidebar #nav-close {width:30px;height:30px;font-size:20px}
.tg-workspace-home,.tg-sidebar-footer {
 width:100%;text-align:left;display:flex;align-items:center;gap:9px;padding:8px;
 background:#edf0f3;color:var(--tg-ink);border:1px solid #dce0e5;border-radius:10px;margin:0 0 9px;
}
.tg-workspace-home {cursor:pointer}
.tg-workspace-home:hover {background:var(--tg-gold-light)}
.tg-sidebar-footer {margin:10px 0 0}
.tg-workspace-home strong,.tg-sidebar-footer strong {display:block;font-size:12px}
.tg-workspace-home small,.tg-sidebar-footer small {display:block;font-size:11px;color:var(--tg-muted);margin-top:3px}
.tg-qwerty #crm-sidebar nav {gap:3px}
.tg-qwerty #crm-sidebar .nav-item {
 display:grid;grid-template-columns:20px 1fr;min-height:37px;padding:7px 9px;gap:9px;
 border:1px solid transparent;border-radius:9px;box-shadow:none;background:none;color:#434a56;text-align:left;
}
.tg-qwerty #crm-sidebar .nav-item b {font:600 13px Arial,sans-serif;color:inherit}
.tg-qwerty #crm-sidebar .nav-item .tg-nav-icon {display:grid;place-items:center;color:inherit}
.tg-nav-icon svg {width:17px;height:17px}
.tg-qwerty #crm-sidebar .nav-item:hover {background:#ebedf1}
.tg-qwerty #crm-sidebar .nav-item.active {background:#f6d46c;border-color:#dfb549;color:#302609;box-shadow:0 3px 9px #ae80211e}
.tg-qwerty :is(button,input,select,a,[tabindex]):focus-visible {outline:2px solid #725112;outline-offset:3px}
.tg-qwerty .topbar {background:#ffffffee;border-color:var(--tg-border)}
.tg-qwerty .rate-ticker {background:#edf0f3;box-shadow:var(--tg-shadow);border-color:#d4d9e0}
.tg-qwerty .rate-ticker .gold-metal {background:linear-gradient(120deg,#fff1bc,#f5d775)}
.tg-qwerty .rate-ticker .silver-metal {background:linear-gradient(120deg,#fff,#dfe4eb)}
.tg-qwerty .rate-ticker .metal :is(small,strong) {color:#322b1c}
.tg-qwerty .rate-ticker .silver-metal :is(small,strong) {color:#343943}
.tg-qwerty .rate-ticker .ticker-led {
 position:relative;align-self:stretch;margin:4px;background:#323640;color:#fff0b4;
 border-color:#434a57;border-radius:9px;min-width:0;overflow:hidden;
}
.tg-qwerty .ticker-led b {color:#fff0b4}
#tg-rate-stamp {position:absolute;top:3px;left:8px;font:600 9px Arial,sans-serif;color:#f0dba0;z-index:1;white-space:nowrap}
.tg-qwerty .ticker-led {padding-top:9px}
.tg-qwerty .command-nav {background:#ebedf1;border-color:var(--tg-border)}
.tg-qwerty .quick-nav button {background:#fff;border-color:#d2d7df;color:#434b57;box-shadow:none;border-radius:10px}
.tg-qwerty .quick-nav button.active {background:#fff0b5;border-color:#d9b448;color:#4d360b;box-shadow:none}
.tg-qwerty .quick-nav button:hover {box-shadow:none}
.tg-qwerty .quick-nav .nav-token,.tg-qwerty .quick-nav button[data-view=whatsapp] .nav-token {background:#edf0f3;color:#444c59;border:1px solid #dce0e7;box-shadow:none}
.tg-qwerty .quick-nav button.active .nav-token {background:#f7db81;border-color:#e3bc54;color:#493915}
.tg-qwerty .page-header h1 {color:var(--tg-ink);font:750 clamp(26px,3vw,32px)/1.1 Arial,sans-serif;letter-spacing:-.025em}
.tg-qwerty .page-header :is(.eyebrow,>div>p:last-child) {color:#5e6068}
.tg-qwerty .page-header .eyebrow {color:#675010;font-family:Arial,sans-serif}
.tg-qwerty .page-header>div>p:last-child {color:var(--tg-muted)}
.tg-qwerty .metrics article {background:#fff;border:1px solid var(--tg-border);border-top:3px solid #dfb549;box-shadow:0 5px 14px #1923350d;border-radius:11px}
.tg-qwerty .metrics article :is(strong,b,small) {color:#333742;font-family:Arial,sans-serif}
.tg-qwerty .metrics article p {color:var(--tg-muted)}
.tg-qwerty .metrics article:after {display:none}
.tg-qwerty .metrics .metric-top>span {background:#fff3c8;border-color:#f2df9a;color:#654814;box-shadow:none}
.tg-qwerty .metrics .metric-top>span svg {width:16px;height:16px;display:block}
.tg-qwerty :is(.activity-card,.lead-toolbar,.lead-table-wrap,.wa-shell,.lead-hero,.detail-section,.lead-card) {background:var(--tg-panel);border-color:var(--tg-border);color:var(--tg-ink);box-shadow:var(--tg-shadow)}
.tg-qwerty .activity-card :is(header p,.chart-legend,.chart-table,.chart-empty,.outcome-summary>p,.attention-note) {color:var(--tg-muted)}
.tg-qwerty .activity-card :is(.eyebrow,.text-action) {color:var(--tg-gold-ink)}
.tg-qwerty .outcome-actions button {background:#fffdfa;border-color:#dcdfe5}
.tg-qwerty .lead-toolbar .segmented button.active {background:var(--tg-gold-light);color:#46370e;border-color:#d7ae42}
.tg-qwerty .lead-toolbar .segmented button b {color:inherit}
.tg-qwerty .lead-table-wrap {padding:16px;min-width:0;border-radius:16px}
.tg-qwerty .lead-table-wrap>h2 {font-size:17px;margin:0 0 14px}
.tg-table-scroll {max-width:100%;overflow:auto;border:1px solid var(--tg-border);border-radius:11px}
.tg-registry {width:100%;min-width:850px;border-collapse:collapse;font-size:13px;color:var(--tg-ink)}
.tg-registry th {background:#eceef2;text-align:left;font-size:12px;white-space:nowrap}
.tg-registry :is(th,td) {padding:12px 10px;vertical-align:middle;border-bottom:1px solid var(--tg-border)}
.tg-registry td:nth-child(5) {min-width:180px}
.tg-registry tr:last-child td {border-bottom:0}
.tg-registry tbody tr:nth-child(even) {background:#fafbfc}
.tg-registry tbody tr:hover {background:#fffaf0}
.tg-registry td small {display:block;margin-top:5px;line-height:1.35;color:var(--tg-muted);font-size:11px}
.tg-name {border:0;background:none;font:700 13px Arial,sans-serif;color:#332a15;padding:0;cursor:pointer;text-align:left}
.tg-name:hover {text-decoration:underline}
.tg-score {display:inline-block;padding:3px 6px;margin-top:5px;border-radius:5px;background:#edf0f3;color:#434953;text-transform:capitalize;font-size:10px;font-weight:700}
.tg-score.hot,.tg-score.warm {background:#fff0bb;color:#60440d}
.tg-attempts {display:flex;gap:4px}
.tg-attempts button {width:29px;height:29px;border:1px solid #d4d8df;border-radius:7px;background:#f0f1f3;color:#555e69;cursor:pointer;font-weight:700}
.tg-attempts .connected {background:#e1f2e8;color:#21573b;border-color:#b9d9c6}
.tg-attempts :is(.no-answer,.busy,.voicemail) {background:#fff2cc;color:#684909;border-color:#edd38a}
.tg-button,.tg-lead-controls select {border:1px solid #d2d7de;background:white;color:#333a46;border-radius:8px;min-height:34px;padding:6px 10px;font:700 12px Arial,sans-serif;cursor:pointer;white-space:nowrap}
.tg-button:hover {background:var(--tg-gold-light);border-color:#d7b044}
.tg-lead-controls,.tg-inline {display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.tg-lead-controls label {font-size:12px;color:var(--tg-muted)}
.tg-feature-panel>h3 {margin-top:0}
.tg-feature-panel :is(p,li) {color:var(--tg-muted);line-height:1.5}
.tg-records {list-style:none;margin:0;padding:0}
.tg-records li,.tg-tasks label {display:flex;gap:10px;align-items:center;justify-content:space-between;padding:12px 0;border-bottom:1px solid var(--tg-border)}
.tg-records li:last-child,.tg-tasks label:last-child {border-bottom:0}
.tg-records p {margin:4px 0 0}
.tg-tasks label {justify-content:flex-start;cursor:pointer}
.tg-tasks input {accent-color:#a7750d;width:17px;height:17px}
.tg-pipeline {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.tg-pipeline article {border:1px solid var(--tg-border);background:#fbfcfe;border-radius:12px;padding:14px}
#tg-attempt-dialog {color:var(--tg-ink);border:1px solid var(--tg-border);border-radius:16px;padding:24px;width:min(420px,calc(100% - 30px));box-shadow:0 22px 60px #18202d32}
#tg-attempt-dialog::backdrop {background:#18202d73}
#tg-attempt-dialog .eyebrow {color:var(--tg-gold-ink)}
.tg-attempt-close {float:right;border:1px solid var(--tg-border);background:#fdfdfd;border-radius:8px;font-size:20px;cursor:pointer}
@media (max-width:899px) {
 .tg-qwerty #crm-sidebar {width:min(82vw,270px)}
 .tg-qwerty .rate-ticker .ticker-led {margin:0;align-self:center;padding-top:7px}
 #tg-rate-stamp {top:0;font-size:8px;background:#323640;padding:1px 4px;border-radius:3px}
}
@media (max-width:580px) {
 .tg-lead-controls {margin-top:4px}
 .tg-pipeline {grid-template-columns:1fr}
 .tg-qwerty .lead-table-wrap {padding:10px}
}
