*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0d1117;
  --surface: #161b22;
  --border: #30363d;
  --text: #e6edf3;
  --muted: #8b949e;
  --blue: #58a6ff;
  --green: #3fb950;
  --yellow: #d29922;
  --red: #f85149;
  --purple: #bc8cff;
  --orange: #e3b341;
}

body { background: var(--bg); color: var(--text); font-family: 'Inter', system-ui, sans-serif; font-size: 14px; line-height: 1.5; }

/* Header */
header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 24px; background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 10; flex-wrap: wrap; }
.header-left { display: flex; align-items: center; gap: 0; flex-shrink: 0; }
.logo { font-size: 1.1rem; font-weight: 700; color: var(--blue); }
.subtitle { color: var(--muted); margin-left: 10px; font-size: .78rem; }
.header-center { display: flex; gap: 6px; flex: 1; justify-content: center; flex-wrap: wrap; }
.cost-pill { background: #1c2128; border: 1px solid var(--border); border-radius: 20px; padding: 3px 12px; font-size: .75rem; color: var(--muted); white-space: nowrap; }
.cost-pill strong { color: var(--text); margin-left: 4px; }
.cost-pill.accent { border-color: var(--blue); }
.cost-pill.accent strong { color: var(--blue); }
.header-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.header-actions { display: flex; gap: 8px; }
.user-label { color: var(--muted); font-size: .85rem; }
.btn-ghost { background: none; border: 1px solid var(--border); border-radius: 6px; color: var(--muted); padding: 5px 12px; cursor: pointer; font-size: .8rem; transition: all .2s; }
.btn-ghost:hover { border-color: var(--text); color: var(--text); }
.btn-primary { background: var(--blue); border: none; border-radius: 6px; color: #fff; padding: 6px 14px; cursor: pointer; font-size: .82rem; font-weight: 600; transition: opacity .2s; }
.btn-primary:hover { opacity: .85; }

/* Dropdown */
.dropdown { position: relative; }
.dropdown-menu { position: absolute; top: calc(100% + 6px); right: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 12px; min-width: 240px; z-index: 100; display: flex; flex-direction: column; gap: 6px; box-shadow: 0 8px 24px rgba(0,0,0,.4); }
.dropdown-menu.hidden { display: none; }
.dropdown-label { font-size: .7rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin-top: 4px; }
.dropdown-menu select, .dropdown-menu input { background: #0d1117; border: 1px solid var(--border); border-radius: 6px; color: var(--text); padding: 6px 8px; font-size: .82rem; width: 100%; }
.field-label { font-size: .75rem; color: var(--muted); display: block; margin-bottom: 4px; }

/* Main */
main { max-width: 1100px; margin: 0 auto; padding: 16px 24px 24px; display: flex; flex-direction: column; gap: 20px; }

/* Sub-tabs (within Pipeline) */
.sub-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 4px; }
.sub-tab { background: none; border: none; border-bottom: 2px solid transparent; color: var(--muted); padding: 7px 14px; cursor: pointer; font-size: .83rem; transition: all .15s; margin-bottom: -1px; }
.sub-tab:hover { color: var(--text); }
.sub-tab.active { color: var(--blue); border-bottom-color: var(--blue); font-weight: 600; }

/* Backlog list */
.backlog-project-group { margin-bottom: 20px; }
.backlog-project-title { font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 8px; padding-bottom: 4px; border-bottom: 1px solid var(--border); }
.backlog-item { display: flex; align-items: center; justify-content: space-between; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 10px 14px; margin-bottom: 6px; gap: 12px; transition: border-color .15s; }
.backlog-item:hover { border-color: #444c56; }
.backlog-item-left { flex: 1; min-width: 0; }
.backlog-item-title { font-size: .88rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.backlog-item-desc { font-size: .75rem; color: var(--muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.backlog-item-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.priority-badge { font-size: .7rem; padding: 2px 8px; border-radius: 10px; font-weight: 600; }
.priority-Critical { background: rgba(248,81,73,.15); color: var(--red); }
.priority-High { background: rgba(227,179,65,.15); color: var(--orange); }
.priority-Medium { background: rgba(88,166,255,.12); color: var(--blue); }
.priority-Low { background: #21262d; color: var(--muted); }
.status-badge { font-size: .7rem; padding: 2px 8px; border-radius: 10px; background: #21262d; color: var(--muted); }
.status-badge.In\ Progress { color: var(--blue); background: rgba(88,166,255,.12); }
.status-badge.Done { color: var(--green); background: rgba(63,185,80,.12); }
.status-badge.In\ Review { color: var(--yellow); background: rgba(210,153,34,.12); }
.btn-sprint { background: rgba(63,185,80,.15); border: 1px solid rgba(63,185,80,.3); border-radius: 5px; color: var(--green); font-size: .72rem; font-weight: 600; padding: 3px 10px; cursor: pointer; white-space: nowrap; }
.btn-sprint:hover { background: rgba(63,185,80,.25); }

/* Agents today bar */
.agents-today-bar { background: var(--surface); border-bottom: 1px solid var(--border); padding: 14px 24px; }
.agents-bar-inner { max-width: 1100px; margin: 0 auto; display: flex; gap: 32px; flex-wrap: wrap; }
.agents-section { flex: 1; min-width: 280px; }
.agents-section-title { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 8px; }
.agents-table { width: 100%; border-collapse: collapse; font-size: .82rem; }
.agents-table th { text-align: left; padding: 4px 8px 6px; color: var(--muted); font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; border-bottom: 1px solid var(--border); }
.agents-table td { padding: 5px 8px; border-bottom: 1px solid #1c2128; }
.agents-table tr:last-child td { border-bottom: none; }
.model-badge { background: #21262d; border: 1px solid var(--border); border-radius: 4px; padding: 1px 7px; font-size: .72rem; color: var(--purple); font-family: monospace; white-space: nowrap; }
.model-config-grid { display: flex; flex-wrap: wrap; gap: 6px; }
.model-config-item { display: flex; align-items: center; gap: 6px; background: #161b22; border: 1px solid var(--border); border-radius: 6px; padding: 4px 10px; }
.model-config-agent { font-size: .78rem; color: var(--text); min-width: 70px; }

/* Cost bar (legado — mantido para compatibilidade) */
.cost-bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.cost-card { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 16px 20px; }
.cost-card.accent { border-color: var(--blue); }
.cost-label { color: var(--muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 6px; }
.cost-value { font-size: 1.6rem; font-weight: 700; color: var(--text); }
.cost-card.accent .cost-value { color: var(--blue); }

/* Credits */
.credits-card { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 18px 22px; display: flex; align-items: center; justify-content: space-between; gap: 32px; margin-bottom: 10px; }
.credits-remaining { font-size: 2rem; font-weight: 700; color: var(--green); }
.credits-remaining.warn { color: var(--yellow); }
.credits-remaining.danger { color: var(--red); }
.credits-sub { color: var(--muted); font-size: .8rem; margin-left: 8px; }
.credits-bar-wrap { background: #21262d; border-radius: 4px; height: 8px; width: 300px; margin-top: 10px; overflow: hidden; }
.credits-bar { height: 100%; background: var(--green); border-radius: 4px; transition: width .6s ease; }
.credits-bar.warn { background: var(--yellow); }
.credits-bar.danger { background: var(--red); }
.credits-detail { color: var(--muted); font-size: .78rem; margin-top: 8px; }
.credits-stats { display: flex; flex-direction: column; gap: 8px; min-width: 220px; }
.credits-stat-row { display: flex; justify-content: space-between; font-size: .85rem; padding: 4px 0; border-bottom: 1px solid var(--border); }
.credits-stat-row:last-child { border-bottom: none; }
.credits-stat-label { color: var(--muted); }
.credits-stat-value { font-weight: 600; }

/* Topup form */
.topup-form { background: var(--surface); border: 1px solid var(--blue); border-radius: 10px; padding: 18px 22px; margin-bottom: 10px; }
.topup-form.hidden { display: none; }
.topup-form h4 { font-size: .9rem; margin-bottom: 14px; color: var(--blue); }
.topup-fields { display: flex; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.topup-fields > div { display: flex; flex-direction: column; gap: 5px; flex: 1; min-width: 140px; }
.topup-fields label { font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.topup-fields input { background: #0d1117; border: 1px solid var(--border); border-radius: 6px; color: var(--text); padding: 8px 10px; font-size: .9rem; outline: none; transition: border .2s; }
.topup-fields input:focus { border-color: var(--blue); }
.topup-actions { display: flex; gap: 10px; }
.btn-save { background: #238636; border: none; border-radius: 6px; color: #fff; padding: 8px 18px; font-size: .9rem; font-weight: 600; cursor: pointer; }
.btn-save:hover { background: #2ea043; }

/* Topup history table */
.topup-table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.topup-table th { text-align: left; padding: 8px 12px; color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; border-bottom: 1px solid var(--border); }
.topup-table td { padding: 10px 12px; border-bottom: 1px solid #21262d; }
.topup-table tr:last-child td { border-bottom: none; }
.topup-table .amount { color: var(--green); font-weight: 600; font-family: monospace; }
.topup-table .del-btn { background: none; border: none; color: var(--muted); cursor: pointer; font-size: .8rem; padding: 2px 6px; border-radius: 4px; }
.topup-table .del-btn:hover { color: var(--red); background: rgba(248,81,73,.1); }

/* Stories filters */
.stories-filters { display: flex; gap: 10px; margin: 14px 0 10px; flex-wrap: wrap; }
.stories-filters select { background: var(--surface); border: 1px solid var(--border); border-radius: 6px; color: var(--text); padding: 6px 10px; font-size: .85rem; outline: none; }
.stories-filters select:focus { border-color: var(--blue); }

/* Section */
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.section-header h2 { font-size: 1rem; font-weight: 600; }
.section-header select { background: var(--surface); border: 1px solid var(--border); border-radius: 6px; color: var(--text); padding: 4px 8px; font-size: .8rem; outline: none; }

/* Live dot */
.dot-live { width: 8px; height: 8px; background: var(--green); border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.5;transform:scale(1.3)} }

/* Runs list */
.runs-list { display: flex; flex-direction: column; gap: 8px; }
.empty-state { color: var(--muted); text-align: center; padding: 32px; background: var(--surface); border: 1px dashed var(--border); border-radius: 10px; }

/* Run card */
.run-card { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 14px 18px; cursor: pointer; transition: border-color .2s; }
.run-card:hover { border-color: var(--blue); }
.run-card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.run-title { font-weight: 600; font-size: .95rem; }
.run-meta { display: flex; gap: 12px; color: var(--muted); font-size: .8rem; align-items: center; }
.run-cost { color: var(--orange); font-weight: 600; }

/* Status badge */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 20px; font-size: .75rem; font-weight: 600; }
.badge-running  { background: rgba(88,166,255,.15); color: var(--blue); }
.badge-completed{ background: rgba(63,185,80,.15);  color: var(--green); }
.badge-failed   { background: rgba(248,81,73,.15);  color: var(--red); }
.badge-paused   { background: rgba(210,153,34,.15); color: var(--yellow); }

/* Cost bar global (sempre visível no topo) */
.cost-bar-global { display: flex; gap: 0; background: var(--surface); border-bottom: 1px solid var(--border); padding: 0; }
.cost-bar-global .cost-card { border: none; border-right: 1px solid var(--border); border-radius: 0; flex: 1; padding: 12px 20px; }
.cost-bar-global .cost-card:last-child { border-right: none; }
.cost-bar-global .cost-value { font-size: 1.2rem; }

/* Tabs */
.tabs { display: flex; gap: 0; border-bottom: 1px solid var(--border); background: var(--surface); padding: 0 24px; }
.tab { background: none; border: none; border-bottom: 2px solid transparent; color: var(--muted); padding: 12px 20px; font-size: .88rem; cursor: pointer; margin-bottom: -1px; transition: all .2s; }
.tab:hover { color: var(--text); }
.tab.active { color: var(--blue); border-bottom-color: var(--blue); font-weight: 600; }
.hidden { display: none !important; }

/* Kanban board */
.kanban-board { display: flex; gap: 0; overflow-x: auto; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 0; min-height: 200px; }
.kb-col { flex: 1; min-width: 120px; border-right: 1px solid var(--border); display: flex; flex-direction: column; }
.kb-col:last-child { border-right: none; }
.kb-col-head { padding: 12px 10px 10px; border-bottom: 1px solid var(--border); }
.kb-col-name { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.kb-col-count { font-size: .65rem; color: var(--muted); margin-top: 2px; }
.kb-col.active .kb-col-name { color: var(--blue); }
.kb-col.has-failed .kb-col-name { color: var(--red); }
.kb-col-body { flex: 1; padding: 8px 6px; display: flex; flex-direction: column; gap: 6px; }

/* Kanban run card */
.kb-card { border-radius: 8px; padding: 10px 10px 8px; cursor: pointer; border: 1.5px solid var(--border); background: #0d1117; transition: border-color .2s, transform .2s; }
.kb-card:hover { transform: translateY(-1px); border-color: var(--blue); }
.kb-card.running { border-color: var(--blue); background: rgba(88,166,255,.06); animation: kb-pulse 2s infinite; }
.kb-card.failed  { border-color: var(--red);  background: rgba(248,81,73,.06); }
.kb-card.paused  { border-color: var(--yellow); background: rgba(210,153,34,.06); }
.kb-card.completed { border-color: var(--green); background: rgba(63,185,80,.06); }
.kb-card.skipped { opacity: .5; }
@keyframes kb-pulse { 0%,100%{border-color:var(--blue)} 50%{border-color:rgba(88,166,255,.3)} }
.kb-card-project { font-size: .7rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 4px; }
.kb-card-id { font-size: .65rem; color: var(--muted); font-family: monospace; margin-bottom: 6px; }
.kb-card-cost { font-size: .8rem; font-weight: 700; color: var(--orange); }
.kb-card-time { font-size: .68rem; color: var(--muted); margin-top: 3px; }
.kb-card-status { display: inline-block; font-size: .62rem; font-weight: 700; padding: 1px 6px; border-radius: 10px; margin-top: 4px; }
.kb-card-status.running  { background: rgba(88,166,255,.2);  color: var(--blue); }
.kb-card-status.failed   { background: rgba(248,81,73,.2);   color: var(--red); }
.kb-card-status.paused   { background: rgba(210,153,34,.2);  color: var(--yellow); }
.kb-card-status.completed{ background: rgba(63,185,80,.2);   color: var(--green); }
.kb-card-blocker { font-size: .67rem; color: var(--red); margin-top: 4px; line-height: 1.3; }

/* Done column */
.kb-col.done-col .kb-col-name { color: var(--green); }

/* Pipeline progress */
.pipeline-progress { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.stage-pill { padding: 3px 8px; border-radius: 20px; font-size: .7rem; font-weight: 600; border: 1px solid var(--border); color: var(--muted); background: transparent; }
.stage-pill.done    { background: rgba(63,185,80,.15); color: var(--green); border-color: var(--green); }
.stage-pill.running { background: rgba(88,166,255,.2); color: var(--blue); border-color: var(--blue); animation: blink 1.5s infinite; }
.stage-pill.failed  { background: rgba(248,81,73,.15); color: var(--red); border-color: var(--red); }
.stage-pill.skipped { background: rgba(139,148,158,.1); color: var(--muted); }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.6} }

/* Modal stages table */
.modal-stages-table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.modal-stages-table th { text-align: left; padding: 7px 10px; color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; border-bottom: 1px solid var(--border); }
.modal-stages-table td { padding: 9px 10px; border-bottom: 1px solid #21262d; vertical-align: top; }
.modal-stages-table tr:last-child td { border-bottom: none; }

/* Modal context */
.modal-context-wrap { padding: 10px 24px 14px; border-bottom: 1px solid var(--border); }
.modal-context-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-right: 8px; }
.modal-context-text { font-size: .85rem; color: var(--text); }

/* Story tooltip */
.story-tooltip {
  position: fixed;
  z-index: 999;
  background: #1c2128;
  border: 1px solid var(--blue);
  border-radius: 10px;
  padding: 14px 16px;
  width: 300px;
  box-shadow: 0 8px 32px rgba(0,0,0,.5);
  pointer-events: none;
  opacity: 0;
  transition: opacity .15s ease;
  font-size: .82rem;
  line-height: 1.5;
}
.story-tooltip.visible { opacity: 1; }
.story-tooltip-id { font-family: monospace; color: var(--blue); font-size: .75rem; margin-bottom: 4px; }
.story-tooltip-title { font-weight: 700; color: var(--text); margin-bottom: 10px; line-height: 1.3; }
.story-tooltip-row { display: flex; justify-content: space-between; padding: 3px 0; border-bottom: 1px solid #21262d; }
.story-tooltip-row:last-child { border-bottom: none; }
.story-tooltip-label { color: var(--muted); }
.story-tooltip-value { color: var(--text); text-align: right; max-width: 160px; }
.story-tooltip-status-dev       { color: var(--blue); }
.story-tooltip-status-qa_approved { color: var(--green); }
.story-tooltip-status-qa_rejected { color: var(--red); }
.story-tooltip-status-backlog   { color: var(--muted); }
.story-tooltip-notes { margin-top: 8px; padding-top: 8px; border-top: 1px solid #21262d; color: var(--yellow); font-size: .75rem; line-height: 1.4; }

/* Kb card updated fields */
.kb-card-sprint { font-size: .65rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 3px; }
.kb-card-title { font-size: .8rem; font-weight: 600; color: var(--text); margin-bottom: 6px; line-height: 1.3; }
.kb-card-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 4px; }
.kb-card-stories { font-size: .72rem; background: rgba(88,166,255,.15); color: var(--blue); padding: 1px 6px; border-radius: 10px; font-weight: 600; }

/* Modal */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.7); display: flex; align-items: center; justify-content: center; z-index: 100; padding: 20px; }
.modal-overlay.hidden { display: none; }
.modal { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; width: 100%; max-width: 780px; max-height: 85vh; overflow-y: auto; }
.modal-header { display: flex; align-items: flex-start; justify-content: space-between; padding: 20px 24px 16px; border-bottom: 1px solid var(--border); }
.modal-header h3 { font-size: 1rem; font-weight: 700; }
.run-id-badge { color: var(--muted); font-size: .75rem; font-family: monospace; }

/* Kanban */
.kanban { display: flex; gap: 8px; padding: 20px 24px; overflow-x: auto; }
.kanban-col { min-width: 120px; flex: 1; }
.kanban-col-header { font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 8px; padding-bottom: 6px; border-bottom: 2px solid var(--border); }
.kanban-col-header.active { color: var(--blue); border-color: var(--blue); }
.kanban-col-header.done { color: var(--green); border-color: var(--green); }
.kanban-col-header.failed { color: var(--red); border-color: var(--red); }
.kanban-stage-cost { font-size: .7rem; color: var(--orange); margin-top: 4px; }
.kanban-tokens { font-size: .65rem; color: var(--muted); }

/* Gates */
/* Pending gate banner in stories view */
.gate-banner { display:flex; align-items:center; justify-content:space-between; background:rgba(210,153,34,.1); border:1px solid rgba(210,153,34,.35); border-radius:8px; padding:10px 16px; margin-bottom:8px; gap:16px; }
.gate-banner-info { display:flex; align-items:center; gap:12px; }
.gate-banner-icon { font-size:1.2rem; }
.gate-banner-title { font-size:.85rem; font-weight:600; color:var(--yellow); }
.gate-banner-sub { font-size:.75rem; color:var(--muted); margin-top:2px; }
.gate-banner-actions { display:flex; gap:8px; flex-shrink:0; }

/* Story action buttons */
.story-action-btn { display: block; width: 100%; margin-top: 6px; padding: 4px 0; border: none; border-radius: 5px; font-size: .75rem; font-weight: 600; cursor: pointer; transition: opacity .15s; }
.story-action-btn:hover { opacity: .85; }
.story-action-btn.deploy { background: rgba(63,185,80,.18);   color: var(--green);  border: 1px solid rgba(63,185,80,.35); }
.story-action-btn.dev    { background: rgba(88,166,255,.15);  color: var(--blue);   border: 1px solid rgba(88,166,255,.3); }
.story-action-btn.done   { background: rgba(188,140,255,.15); color: var(--purple); border: 1px solid rgba(188,140,255,.3); }
.story-action-btn.logs   { background: rgba(210,153,34,.15);  color: var(--yellow); border: 1px solid rgba(210,153,34,.3); }
.story-action-group { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; }
.story-action-group .story-action-btn { margin-top: 0; }

/* Deploy logs modal */
.deploy-log-entry  { border: 1px solid var(--border); border-radius: 6px; padding: 10px 12px; margin-bottom: 10px; background: rgba(255,255,255,.03); }
.deploy-log-header { font-weight: 600; margin-bottom: 6px; color: var(--fg); }
.log-uuid          { font-family: monospace; font-size: .75rem; color: var(--muted); margin-left: 6px; }
.deploy-log-err    { color: var(--red); font-size: .8rem; margin-bottom: 6px; }
.deploy-log-pre    { font-family: monospace; font-size: .73rem; white-space: pre-wrap; word-break: break-all; color: var(--muted); background: rgba(0,0,0,.25); border-radius: 4px; padding: 8px; max-height: 300px; overflow-y: auto; margin: 0; }

.gates-section { padding: 0 24px 16px; }
.gates-section h4 { font-size: .85rem; color: var(--muted); margin-bottom: 10px; }
.gates-section.hidden { display: none; }
.gate-item { display: flex; align-items: center; justify-content: space-between; background: rgba(210,153,34,.08); border: 1px solid rgba(210,153,34,.3); border-radius: 8px; padding: 10px 14px; margin-bottom: 8px; }
.gate-name { font-weight: 600; font-size: .85rem; }
.gate-actions { display: flex; gap: 8px; }
.btn-approve { background: var(--green); border: none; border-radius: 6px; color: #fff; padding: 5px 14px; font-size: .8rem; font-weight: 600; cursor: pointer; }
.btn-reject  { background: var(--red);   border: none; border-radius: 6px; color: #fff; padding: 5px 14px; font-size: .8rem; font-weight: 600; cursor: pointer; }

/* Modal costs */
.modal-costs { display: flex; gap: 24px; padding: 14px 24px 20px; color: var(--muted); font-size: .85rem; border-top: 1px solid var(--border); }
.modal-costs strong { color: var(--text); }
