.goal-root { min-width: 0; max-width: 100%; overflow-x: clip; display: grid; gap: 14px; color: var(--text); }
.goal-root > * { min-width: 0; max-width: 100%; }
.g-head { background: #101218; border: 1px solid #242833; border-radius: 16px; padding: 16px 16px 0; min-width: 0; max-width: 100%; overflow: hidden; }
.g-kicker { color: var(--gold); letter-spacing: .05em; font-size: 12px; font-weight: 750; text-transform: uppercase; }
.g-title-row { display: flex; justify-content: space-between; gap: 12px; align-items: start; flex-wrap: wrap; min-width: 0; }
.g-title-row h2 { font-size: 26px; font-weight: 800; letter-spacing: -0.025em; margin: 4px 0 10px; min-width: 0; max-width: 100%;
  white-space: normal; overflow-wrap: anywhere; }
.g-quarters { display: flex; gap: 6px; flex-wrap: wrap; }
.g-quarters button, .g-nav button, .g-modes button, .g-x { border: 0; background: #1a1e28; color: #c5cad6; border-radius: 999px; padding: 7px 12px; cursor: pointer; font: inherit; }
.g-quarters button[aria-pressed="true"] { background: var(--gold); color: var(--gold-ink); font-weight: 750; }
.g-clock { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; min-width: 0; margin: 16px 0 12px; font-size: 14px; }
.g-clock-bar { display: flex; align-items: center; gap: 12px; flex: 1 1 240px; min-width: 0; }
.g-track { flex: 1 1 48px; height: 8px; background: #1c2030; border-radius: 99px; min-width: 48px; position: relative; overflow: hidden; }
.g-track i { display: block; height: 100%; background: var(--gold); border-radius: 99px; }
.g-clock b { font-size: 14px; font-weight: 650; color: var(--text); white-space: nowrap; }
.g-clock span, .g-sub, .g-note, .g-foot { color: var(--muted); font-size: 12px; }
.g-nav { display: flex; gap: 4px; overflow-x: auto; max-width: 100%; border-top: 1px solid #1c2030; margin: 0 -16px; padding: 0 8px; }
.g-nav.g-nav-fade { -webkit-mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 28px), transparent);
  mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 28px), transparent); }
.g-nav button { background: none; border-radius: 0; padding: 12px 10px; white-space: nowrap; color: #9aa3b5; flex: 0 0 auto; }
.g-nav button[aria-selected="true"] { color: var(--text); box-shadow: inset 0 -2px 0 var(--gold); font-weight: 700; }
.g-banner { background: #1b1607; border: 1px solid #4a3a10; color: #f3dc9b; border-radius: 12px; padding: 10px 14px; }
.g-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; min-width: 0; }
.g-card, .g-panel, .g-step { background: #101218; border: 1px solid #242833; border-radius: 16px; min-width: 0; }
.g-card { padding: 20px; display: grid; gap: 6px; text-align: left; cursor: pointer; color: inherit; font: inherit; width: 100%; }
.g-card .top, .g-step .top { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.g-card .lab { color: var(--muted); font-size: 12px; font-weight: 750; letter-spacing: .05em; text-transform: uppercase; }
.g-step .lab { color: var(--text); font-size: 14px; font-weight: 750; letter-spacing: 0; text-transform: none; }
.g-pill { border-radius: 999px; padding: 2px 8px; font-size: 12px; font-weight: 750; border: 1px solid transparent; }
.g-pill.bad { color: #f32836; border-color: #f32836; }
.g-pill.close { color: #f5c542; border-color: #f5c542; }
.g-pill.good { color: #34d399; border-color: #34d399; }
.g-pill.thin { color: #8b93a7; border-color: #3a4154; }
.g-card .val { font-size: 36px; font-weight: 800; letter-spacing: -0.025em; }
.g-card .val small, .g-step .val small { font-size: 14px; color: #94a3b8; font-weight: 650; }
.g-pace b { font-weight: 750; }
.g-meter { height: 10px; background: #1c2030; border-radius: 99px; position: relative; overflow: hidden; margin-top: 6px; }
.g-meter i { display: block; height: 100%; border-radius: 99px; }
.g-meter .mark { position: absolute; top: -3px; width: 2px; height: 14px; background: #f4f6fb; }
.tone-bad { color: #f32836; }
.tone-close { color: #f5c542; }
.tone-good { color: #34d399; }
.tone-thin { color: #8b93a7; }
.tone-bad i, .g-meter.bad i { background: #f32836; }
.tone-close i, .g-meter.close i { background: #f5c542; }
.tone-good i, .g-meter.good i { background: #34d399; }
.g-books { background: #0c0e14; border-radius: 10px; padding: 8px 10px; display: flex; justify-content: space-between; gap: 8px; }
.g-books b { font-size: 13px; color: #f32836; }
.g-section h3 { margin: 8px 0 2px; font-size: 16px; font-weight: 750; letter-spacing: -0.025em; }
.g-funnel { display: flex; align-items: stretch; gap: 8px; min-width: 0; }
.g-step { flex: 1 1 0; padding: 16px; text-align: left; cursor: pointer; color: inherit; font: inherit; display: grid; gap: 4px; min-width: 0; }
.g-step .val { font-size: 30px; font-weight: 800; }
.g-arrow { display: flex; align-items: center; color: #cbd5e1; font-size: 20px; flex: 0 0 auto; }
.g-dot { width: 8px; height: 8px; border-radius: 99px; background: #8b93a7; }
.g-dot.bad { background: #f32836; }
.g-dot.close { background: #f5c542; }
.g-dot.good { background: #34d399; }
.g-dot.thin { background: #8b93a7; }
.g-split { display: grid; grid-template-columns: 1.3fr .9fr; gap: 12px; min-width: 0; }
.g-panel { padding: 20px; min-width: 0; overflow-x: auto; }
.g-panel h3 { margin-bottom: 2px; font-size: 16px; font-weight: 750; letter-spacing: -0.025em; }
.g-chart { width: 100%; max-width: 100%; height: 224px; display: block; }
.g-swing { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border: 0; cursor: pointer; background: none; color: inherit; font: inherit; width: 100%; text-align: left; }
.g-swing .who { font-weight: 700; }
.g-role { display: inline-block; margin-left: 6px; font-size: 10px; letter-spacing: .06em; color: #9aa3b5; border: 1px solid #2a2f3c; border-radius: 999px; padding: 1px 6px; }
.g-cost { color: #f32836; font-size: 12px; font-weight: 800; letter-spacing: .08em; }
.g-carry { color: #34d399; font-size: 12px; font-weight: 800; letter-spacing: .08em; }
.g-amt { font-weight: 800; white-space: nowrap; }
.g-amt.bad { color: #f32836; }
.g-amt.good { color: #34d399; }
.g-scroll { overflow-x: auto; max-width: 100%; min-width: 0; }
.g-scroll table { width: max-content; min-width: 100%; border-collapse: collapse; }
.g-scroll th, .g-scroll td { text-align: left; padding: 8px 10px; white-space: nowrap; border-top: 1px solid #1c2030; font-size: 13px; }
.g-scroll td.g-addr, .g-scroll td.g-addr a { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 320px; word-break: normal; overflow-wrap: normal; }
.g-scroll th { color: var(--dim); font-size: 11px; letter-spacing: .04em; }
.g-scroll tr.total td { font-weight: 800; }
.g-scroll a { color: var(--text); font-weight: 650; }
.g-chip { border-radius: 999px; padding: 2px 8px; font-size: 12px; font-weight: 700; }
.g-chip.pending { background: #1d3c63; color: #93c5fd; }
.g-chip.overdue { background: #3a2a12; color: #f5c542; }
.g-chip.closed { background: #0e3d28; color: #34d399; }
.g-behind { border: 1px solid #f32836; border-radius: 16px; padding: 16px; }
.g-behind.good { border-color: #145c3a; }
.g-behind h3 { color: #f32836; font-size: 22px; margin-bottom: 6px; }
.g-behind.good h3 { color: #34d399; }
.g-mini { height: 6px; background: #1c2030; border-radius: 99px; overflow: hidden; margin-top: 4px; }
.g-mini i { display: block; height: 100%; }
.g-row { cursor: pointer; }
.g-row:hover { background: #161922; }
.g-tag { display: block; font-size: 10px; letter-spacing: .08em; color: #9aa3b5; }
.g-current { background: #1b1607; }
.g-flag { display: inline-block; margin-left: 6px; font-size: 10px; font-weight: 800; letter-spacing: .04em;
  color: #1c1504; background: var(--gold); border-radius: 999px; padding: 1px 6px; vertical-align: middle; }
.g-how { background: #101218; border: 1px solid #242833; border-radius: 12px; }
.g-how summary { cursor: pointer; padding: 12px 14px; font-weight: 700; }
.g-how ul { margin: 0; padding: 0 18px 14px 32px; color: var(--muted); display: grid; gap: 8px; }
.g-modes { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0; }
.g-modes button { border: 1px solid #2a2f3c; background: #161922; }
.g-modes button[aria-pressed="true"] { background: #243044; color: var(--text); font-weight: 750; border-color: #3a4a66; }
.g-chev { display: inline-block; width: 14px; margin-right: 6px; color: #9aa3b5; transform-origin: 40% 55%; }
.g-open .g-chev { transform: rotate(90deg); }
.g-scroll tr.g-detail-row td { position: sticky; left: 0; padding: 0 0 8px; background: #0c0e14; border-top: 0; white-space: normal; }
.g-detail { min-width: 0; max-width: 100%; overflow: hidden; box-sizing: border-box; }
.g-detail-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.35fr); gap: 18px; padding: 4px 12px 8px 28px; align-items: start; max-width: 100%; }
.g-detail-grid > * { min-width: 0; max-width: 100%; }
.g-detail-lines { margin: 0; padding: 0 0 0 16px; color: #c5cad6; font-size: 13px; line-height: 1.45; display: grid; gap: 6px; max-width: 100%; overflow-wrap: anywhere; }
.g-detail-lines li::marker { color: #60a5fa; }
.g-detail-deals { overflow-x: auto; max-width: 100%; min-width: 0; width: 100%; }
.g-scroll.g-detail-deals table { width: 100%; max-width: 100%; min-width: 0; table-layout: fixed; }
.g-detail-deals td, .g-detail-deals th { overflow: hidden; }
.goal-modal { min-width: 0; }
.goal-modal table { min-width: 0; font-size: 14px; }
.goal-modal a, .goal-modal .g-addr a { font-weight: 400; text-decoration: none; color: var(--text); }
.g-x { border: 0; background: none; color: var(--muted); width: auto; height: auto; padding: 4px 6px; border-radius: 8px; }
.top .actions { grid-column: 3; }
@media (max-width: 900px) {
  .g-cards, .g-split { grid-template-columns: 1fr; }
  .g-funnel { flex-direction: column; }
  .g-arrow { display: none; }
  .g-head, .g-title-row, .g-nav { min-width: 0; max-width: 100%; }
  .g-title-row { flex-direction: column; align-items: stretch; }
  .g-title-row h2 { font-size: 22px; line-height: 1.15; flex: 1 1 100%; width: 100%; }
  .g-nav { flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; margin: 0 -16px; padding: 0 8px;
    width: auto; max-width: 100%; scrollbar-width: none; }
  .g-nav::-webkit-scrollbar { display: none; }
  .g-nav button { white-space: nowrap; flex: 0 0 auto; max-width: none; text-align: left; }
  .g-detail-grid { grid-template-columns: 1fr; padding: 4px 8px 8px; }
  .g-detail-deals th:nth-child(n+2), .g-detail-deals td:nth-child(n+2) { display: none; }
  .g-detail-deals td.g-addr, .g-detail-deals td.g-addr a { white-space: normal; max-width: none; }
  .g-scroll:not(.g-deals) { overflow-x: auto; }
  .g-deals table { width: max-content; min-width: 760px; table-layout: auto; }
  .g-deals td.g-addr, .g-deals td.g-addr a {
    display: block; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    word-break: normal; overflow-wrap: normal;
  }
  .top .actions { grid-column: auto; }
}
