/* beta-frontend-v1 — shared app chrome for new workbench surfaces */
:root {
  --bg: #0b0f15;
  --surface: #1a1f2b;
  --surface-2: #121722;
  --bg-elevated: #0d1117;
  --accent: #4f8cff;
  --text: #e0e0e0;
  --text-muted: #8892a4;
  --text-primary: #e6edf3;
  --text-secondary: #8b949e;
  --border: #30363d;
  --border-hover: #58a6ff;
  --danger: #ff4d6a;
  --warn: #ffb020;
  --ok: #3dd68c;
  --radius: 10px;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.5 'Inter', system-ui, -apple-system, sans-serif; }
a { color: var(--accent); text-decoration: none; }
.ap-wrap { max-width: 1280px; margin: 0 auto; padding: 1.25rem 1.5rem 3rem; }
.ap-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.ap-logo { font-size: 1.15rem; font-weight: 800; color: #fff; }
.ap-logo span { color: var(--accent); }
.ap-kicker { color: var(--text-muted); font-size: .85rem; letter-spacing: .04em; text-transform: uppercase; }
h1 { color: #fff; font-size: 1.65rem; margin: .15rem 0 .35rem; }
h2 { color: #fff; font-size: 1.15rem; margin: 0 0 .75rem; }
.muted { color: var(--text-muted); }
.ap-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.ap-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.1rem; }
.ap-row { display: flex; gap: .65rem; flex-wrap: wrap; align-items: center; }
.btn { background: var(--accent); color: #fff; border: 0; border-radius: 8px; padding: .5rem .9rem; font-weight: 700; cursor: pointer; }
.btn:hover { filter: brightness(1.08); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.outline { background: transparent; border: 1px solid var(--accent); color: var(--accent); }
.btn.ghost { background: transparent; border: 1px solid var(--border); color: var(--text); }
.btn.danger { background: var(--danger); }
.btn.sm { padding: .3rem .6rem; font-size: .8rem; }
input, select, textarea {
  width: 100%; background: #0b0f15; border: 1px solid var(--border); border-radius: 8px;
  color: #fff; padding: .55rem .7rem; font: inherit;
}
textarea { min-height: 110px; resize: vertical; }
label { display: block; color: var(--text-muted); font-size: .82rem; margin: .35rem 0 .2rem; }
table.ap-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
table.ap-table th, table.ap-table td { text-align: left; padding: .5rem .4rem; border-bottom: 1px solid var(--border); vertical-align: top; }
table.ap-table th { color: var(--text-muted); font-weight: 600; font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; }
.badge { display: inline-block; font-size: .7rem; font-weight: 700; padding: .15rem .45rem; border-radius: 999px; border: 1px solid var(--border); text-transform: uppercase; }
.badge.red, .badge.red_line { color: var(--danger); border-color: var(--danger); }
.badge.shaded, .badge.shaded_zone { color: var(--warn); border-color: var(--warn); }
.badge.watch, .badge.ok { color: var(--ok); border-color: var(--ok); }
.badge.pro { color: #fff; background: var(--accent); border-color: var(--accent); }
.badge.premium, .badge.enterprise { color: #111; background: #a78bfa; border-color: #a78bfa; }
.tabs { display: flex; gap: .35rem; flex-wrap: wrap; margin: 1rem 0; }
.tabs button { background: transparent; border: 1px solid var(--border); color: var(--text-muted); border-radius: 999px; padding: .35rem .8rem; cursor: pointer; font-weight: 600; }
.tabs button.on { color: #fff; border-color: var(--accent); background: rgba(79,140,255,.16); }
.empty { color: var(--text-muted); text-align: center; padding: 2rem 1rem; }
.err { color: var(--danger); }
.ok { color: var(--ok); }
.scorebar { height: 8px; background: #0b0f15; border-radius: 99px; overflow: hidden; border: 1px solid var(--border); }
.scorebar > i { display: block; height: 100%; background: var(--accent); }
.tier-lock { border: 1px dashed var(--border); border-radius: var(--radius); padding: 1.25rem; text-align: center; color: var(--text-muted); }
.heat { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .5rem; }
.treemap { display: flex; flex-wrap: wrap; gap: 4px; }
.tree-cell { border-radius: 6px; padding: .5rem; color: #fff; overflow: hidden; }
.json { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .78rem; background: #0b0f15; border: 1px solid var(--border); border-radius: 8px; padding: .7rem; white-space: pre-wrap; max-height: 240px; overflow: auto; }
.ap-split { display: grid; grid-template-columns: 280px 1fr; gap: 1rem; }
@media (max-width: 860px) { .ap-split { grid-template-columns: 1fr; } .ap-wrap { padding: 1rem; } }
.kbd { background: #2a2f3a; padding: .1rem .35rem; border-radius: 4px; font-size: .78rem; border: 1px solid #3a3f4a; }
.progress { height: 6px; background: #0b0f15; border-radius: 99px; overflow: hidden; }
.progress > i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), #a78bfa); width: 40%; animation: apind 1.1s ease-in-out infinite; }
@keyframes apind { 0% { transform: translateX(-80%); } 100% { transform: translateX(280%); } }
.strength { height: 6px; border-radius: 99px; background: #2a2f3a; margin-top: .35rem; overflow: hidden; }
.strength > i { display: block; height: 100%; }
.list-item { padding: .7rem 0; border-bottom: 1px solid var(--border); cursor: pointer; }
.list-item:hover { color: #fff; }
.list-item.on { color: var(--accent); }
.swot { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
@media (max-width: 700px) { .swot { grid-template-columns: 1fr; } }
.swot .box { min-height: 120px; }
.swot .s { border-top: 3px solid var(--ok); }
.swot .w { border-top: 3px solid var(--warn); }
.swot .o { border-top: 3px solid var(--accent); }
.swot .t { border-top: 3px solid var(--danger); }
.graph-node { display: inline-flex; align-items: center; gap: .35rem; background: #0b0f15; border: 1px solid var(--border); border-radius: 999px; padding: .25rem .6rem; margin: .2rem; font-size: .8rem; }
.checkline { display: flex; gap: .5rem; align-items: center; margin: .35rem 0; }
.checkline input { width: auto; }
.meter { font-size: 1.7rem; font-weight: 800; color: #fff; }
.hint { font-size: .8rem; color: var(--text-muted); margin-top: .25rem; }
