/* Daily Targets & Quota Burn — scoped to #sec-targets. Light & Gold on --sh-* tokens. */
#sec-targets { color: var(--sh-on-surface); font-family: var(--sh-font); padding-top: 24px; }
#sec-targets .material-symbols-outlined { font-size: 18px; line-height: 1; vertical-align: middle; flex-shrink: 0; }
#sec-targets .tg-root { display: flex; flex-direction: column; gap: 24px; min-width: 0; }

#sec-targets .tg-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; background: var(--sh-surface-lowest); box-shadow: var(--sh-shadow); border-radius: 12px; padding: 20px 24px; position: relative; overflow: hidden; }
#sec-targets .tg-head::after { content: ''; position: absolute; right: 0; top: 0; bottom: 0; width: 320px; background: linear-gradient(270deg, rgba(245, 158, 11, .14), transparent); pointer-events: none; }
#sec-targets .tg-head > * { position: relative; z-index: 1; min-width: 0; }
#sec-targets .tg-head h1 { margin: 4px 0 0; font-size: 28px; line-height: 36px; font-weight: 700; letter-spacing: -.02em; }
#sec-targets .tg-head p { margin: 6px 0 0; font-size: 14px; color: var(--sh-on-surface-variant); max-width: 640px; }
#sec-targets .tg-kicker { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 700; color: var(--sh-on-surface-variant); text-transform: uppercase; letter-spacing: .06em; }
#sec-targets .tg-chip { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 999px; background: var(--sh-surface-container); }
#sec-targets .tg-chip i { width: 6px; height: 6px; border-radius: 50%; background: var(--sh-primary-container); }
#sec-targets .tg-head-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

#sec-targets .btn { display: inline-flex; align-items: center; gap: 6px; border-radius: 8px; font-family: var(--sh-font); font-weight: 600; cursor: pointer; }
#sec-targets .btn-sm { font-size: 12px; padding: 7px 12px; }
#sec-targets .btn-secondary { background: var(--sh-surface-lowest); color: var(--sh-on-surface); border: none; box-shadow: var(--sh-shadow); }
#sec-targets .btn-secondary:hover { background: var(--sh-surface-low); }
#sec-targets .btn-ghost { background: transparent; color: var(--sh-on-surface-variant); border: none; }
#sec-targets .tg-gold { background: var(--sh-primary-container); color: var(--sh-on-primary-container); border: none; font-weight: 700; box-shadow: 0 1px 3px rgba(133, 83, 0, .2); }
#sec-targets .tg-gold:hover { filter: brightness(.97); }
#sec-targets .tg-gold[disabled] { opacity: .6; cursor: default; }
#sec-targets .tg-danger:hover { color: var(--sh-error); }

#sec-targets .tg-tabs { display: inline-flex; gap: 2px; padding: 3px; background: var(--sh-surface-low); border-radius: 10px; flex-wrap: wrap; }
#sec-targets .tg-tabs button { border: none; background: transparent; font-family: inherit; font-size: 12px; font-weight: 600; padding: 6px 12px; border-radius: 8px; color: var(--sh-on-surface-variant); cursor: pointer; }
#sec-targets .tg-tabs button:hover { background: var(--sh-surface-container); color: var(--sh-on-surface); }
#sec-targets .tg-tabs button.active { background: var(--sh-surface-lowest); color: var(--sh-on-surface); font-weight: 700; box-shadow: var(--sh-shadow); }

#sec-targets .tg-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
#sec-targets .tg-tile { position: relative; overflow: hidden; background: var(--sh-surface-lowest); box-shadow: var(--sh-shadow); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
#sec-targets .tg-tile::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--sh-surface-high); }
#sec-targets .tg-tile:first-child::before { background: var(--sh-primary-container); }
#sec-targets .tg-tile-top { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
#sec-targets .tg-lbl { font-size: 11px; font-weight: 700; color: var(--sh-on-surface-variant); text-transform: uppercase; letter-spacing: .06em; }
#sec-targets .tg-val { margin-top: 4px; font-size: 22px; line-height: 28px; font-weight: 800; letter-spacing: -.02em; overflow-wrap: anywhere; }
#sec-targets .tg-ico { width: 32px; height: 32px; border-radius: 8px; background: var(--sh-surface-low); color: var(--sh-primary); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
#sec-targets .tg-tile-body { display: flex; flex-direction: column; gap: 8px; font-size: 12px; }
#sec-targets .tg-big { font-size: 28px; line-height: 32px; font-weight: 800; letter-spacing: -.02em; }
#sec-targets .tg-big small { font-size: 12px; font-weight: 600; color: var(--sh-on-surface-variant); letter-spacing: 0; }
#sec-targets .tg-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
#sec-targets .tg-row .material-symbols-outlined { margin-right: 4px; }
#sec-targets .tg-muted { color: var(--sh-on-surface-variant); }
#sec-targets .tg-pct { font-weight: 800; color: var(--sh-primary); }
#sec-targets .tg-note { margin: 0; font-size: 12px; color: var(--sh-on-surface-variant); }
#sec-targets .tg-sub { font-size: 11px; color: var(--sh-on-surface-variant); }

#sec-targets .tg-bar { position: relative; height: 8px; border-radius: 999px; background: var(--sh-surface-highest); overflow: visible; }
#sec-targets .tg-bar-fill { height: 100%; border-radius: 999px; background: var(--sh-primary-container); max-width: 100%; }
#sec-targets .tg-bar-mark { position: absolute; top: -3px; width: 2px; height: 14px; background: var(--sh-on-surface); border-radius: 1px; transform: translateX(-1px); }
#sec-targets .tg-split { display: flex; height: 8px; border-radius: 999px; overflow: hidden; background: var(--sh-surface-highest); }
#sec-targets .tg-split i.bot { background: var(--sh-primary-container); }
#sec-targets .tg-split i.human { background: var(--sh-secondary); }
#sec-targets .tg-pill { display: inline-flex; padding: 2px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; background: var(--sh-surface-container); color: var(--sh-on-surface-variant); }
#sec-targets .tg-pill.ok { background: var(--sh-ok-bg); color: var(--sh-ok); }
#sec-targets .tg-pill.warn { background: #fff4d6; color: var(--sh-secondary); }

#sec-targets .tg-grid2 { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 16px; }
#sec-targets .tg-card { background: var(--sh-surface-lowest); box-shadow: var(--sh-shadow); border-radius: 12px; padding: 20px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
#sec-targets .tg-card.tg-wide { grid-column: 1 / -1; }
#sec-targets .tg-card-hdr { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
#sec-targets .tg-card-hdr h2 { margin: 0; font-size: 18px; line-height: 24px; font-weight: 700; display: flex; align-items: center; gap: 6px; }
#sec-targets .tg-card-hdr p { margin: 4px 0 0; font-size: 12px; color: var(--sh-on-surface-variant); }

#sec-targets .tg-chart { width: 100%; height: 240px; }
#sec-targets .tg-chart.faded { opacity: .35; }
#sec-targets .tg-svg { width: 100%; height: 100%; display: block; overflow: visible; }
#sec-targets .tg-grid { stroke: var(--sh-surface-container); stroke-width: 1; }
#sec-targets .tg-line { fill: none; stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
#sec-targets .tg-line-planned { stroke: var(--sh-outline); stroke-dasharray: 6 5; stroke-width: 2; }
#sec-targets .tg-line-cumulative { stroke: var(--sh-primary-container); stroke-width: 3.5; }
#sec-targets .tg-line-human { stroke: var(--sh-secondary); }
#sec-targets .tg-line-bot { stroke: var(--sh-tertiary); }
#sec-targets .tg-bar-human { fill: var(--sh-secondary); }
#sec-targets .tg-bar-bot { fill: var(--sh-primary-container); }
#sec-targets .tg-tick { font-size: 10px; fill: var(--sh-on-surface-variant); font-family: var(--sh-font); }
#sec-targets .tg-tick.today { fill: var(--sh-primary); font-weight: 700; }
#sec-targets .tg-legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12px; color: var(--sh-on-surface-variant); }
#sec-targets .tg-legend span { display: inline-flex; align-items: center; gap: 6px; }
#sec-targets .sw { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
#sec-targets .sw.human { background: var(--sh-secondary); }
#sec-targets .sw.bot { background: var(--sh-tertiary); }
#sec-targets .sw.total { background: var(--sh-primary-container); }
#sec-targets .sw.plan { background: var(--sh-outline); }

#sec-targets .tg-untracked { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
#sec-targets .tg-untracked li { display: flex; gap: 12px; align-items: center; padding: 12px; background: var(--sh-surface-low); border-radius: 10px; }
#sec-targets .tg-untracked .material-symbols-outlined { color: var(--sh-outline); }
#sec-targets .tg-untracked strong { display: block; font-size: 13px; }
#sec-targets .tg-untracked span:not(.material-symbols-outlined) { font-size: 12px; color: var(--sh-on-surface-variant); }

#sec-targets .tg-empty { display: flex; align-items: center; gap: 10px; padding: 18px 16px; border-radius: 10px; background: var(--sh-surface-low); color: var(--sh-on-surface-variant); font-size: 13px; }
#sec-targets .tg-tablewrap { overflow-x: auto; }
#sec-targets .tg-table { width: 100%; border-collapse: collapse; font-size: 13px; }
#sec-targets .tg-table th { text-align: left; padding: 10px 12px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--sh-on-surface-variant); background: var(--sh-surface-low); white-space: nowrap; }
#sec-targets .tg-table td { padding: 12px; border-top: 1px solid var(--sh-surface-container); vertical-align: middle; }
#sec-targets .tg-rank { font-weight: 800; color: var(--sh-primary); width: 40px; }
#sec-targets .tg-who { display: flex; align-items: center; gap: 10px; min-width: 160px; }
#sec-targets .tg-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--sh-surface-container); color: var(--sh-on-surface-variant); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
#sec-targets .tg-avatar.bot { background: #fff4d6; color: var(--sh-secondary); }

#sec-targets .tg-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
#sec-targets .tg-field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
#sec-targets .tg-field label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--sh-on-surface-variant); }
#sec-targets .tg-field input, #sec-targets .tg-field select { font-family: inherit; font-size: 13px; padding: 9px 10px; border: 1px solid var(--sh-outline-variant); border-radius: 8px; background: var(--sh-surface-lowest); color: var(--sh-on-surface); min-width: 0; }
#sec-targets .tg-field input:focus, #sec-targets .tg-field select:focus { outline: 2px solid var(--sh-primary-container); outline-offset: 1px; }
#sec-targets .tg-actions { display: flex; gap: 8px; flex-wrap: wrap; }

@media (max-width: 1100px) {
  #sec-targets .tg-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #sec-targets .tg-grid2 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  #sec-targets .tg-tiles { grid-template-columns: minmax(0, 1fr); }
  #sec-targets .tg-form { grid-template-columns: minmax(0, 1fr); }
  #sec-targets .tg-head { padding: 16px; }
  #sec-targets .tg-head h1 { font-size: 22px; line-height: 28px; }
  #sec-targets .tg-chart { height: 200px; }
}
