:root {
  color-scheme: dark;
  --bg: #090b0b;
  --panel: #111414;
  --panel-soft: #151918;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.15);
  --text: #f5f7f5;
  --muted: #8d9791;
  --muted-bright: #b6beb9;
  --accent: #a6f46a;
  --accent-soft: rgba(166, 244, 106, 0.13);
  --accent-deep: #72c83c;
  --warning: #f0bd5d;
  --danger: #ff776f;
  --sidebar: 104px;
  --radius: 22px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    radial-gradient(circle at 72% -15%, rgba(116, 170, 86, 0.11), transparent 32%),
    var(--bg);
  color: var(--text);
}
button, input, textarea, select { font: inherit; }
button { color: inherit; }
button svg { width: 15px; height: 15px; stroke-width: 1.8; }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.app-shell { display: grid; grid-template-columns: var(--sidebar) 1fr; min-height: 100vh; }
.app-shell.desktop::before {
  content: "";
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 30;
  height: 34px;
  -webkit-app-region: drag;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 20;
  width: var(--sidebar);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 13px 20px;
  border-right: 1px solid var(--line);
  background: rgba(8, 10, 10, 0.88);
  backdrop-filter: blur(18px);
}
.app-shell.desktop .sidebar { padding-top: 55px; }
.brand { color: var(--text); text-decoration: none; display: grid; justify-items: center; gap: 9px; }
.brand-mark { width: 45px; height: 45px; display: block; filter: drop-shadow(0 0 12px rgba(166,244,106,.2)); }
.brand-copy { display: grid; text-align: center; font-size: 11px; line-height: 1; letter-spacing: -0.02em; }
.brand-copy small { color: var(--accent); font-size: 9px; margin-top: 3px; text-transform: uppercase; letter-spacing: .17em; }
.sidebar nav { display: grid; width: 100%; gap: 8px; margin-top: 70px; }
.nav-item { border: 0; background: transparent; color: #68706c; min-height: 64px; border-radius: 16px; display: grid; place-items: center; gap: 3px; cursor: pointer; transition: .2s ease; }
.nav-item svg { width: 20px; height: 20px; stroke-width: 1.55; }
.nav-item em { font-size: 9px; font-style: normal; font-weight: 650; letter-spacing: .03em; }
.nav-item:hover { color: var(--muted-bright); background: rgba(255,255,255,.035); }
.nav-item.active { color: var(--accent); background: var(--accent-soft); }
.sidebar-foot { margin-top: auto; display: grid; justify-items: center; gap: 6px; text-align: center; color: var(--muted); font-size: 9px; }
.sidebar-foot div { display: grid; gap: 2px; }
.sidebar-foot strong { color: var(--muted-bright); }
.sidebar-foot small { font-size: 8px; }
.local-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px rgba(166,244,106,.8); }

main { grid-column: 2; min-width: 0; }
.topbar { min-height: 106px; display: flex; align-items: center; justify-content: space-between; padding: 22px 42px; border-bottom: 1px solid var(--line); background: rgba(9,11,11,.72); backdrop-filter: blur(14px); position: sticky; top: 0; z-index: 15; }
.app-shell.desktop .topbar { padding-top: 34px; -webkit-app-region: drag; }
.app-shell.desktop button,
.app-shell.desktop input,
.app-shell.desktop textarea,
.app-shell.desktop select,
.app-shell.desktop a,
.app-shell.desktop dialog { -webkit-app-region: no-drag; }
.eyebrow, .section-kicker { margin: 0 0 7px; text-transform: uppercase; letter-spacing: .17em; color: var(--muted); font-size: 10px; font-weight: 750; }
.topbar h1 { margin: 0; font-size: 23px; letter-spacing: -.035em; font-weight: 620; }
.topbar-actions { display: flex; align-items: center; gap: 12px; }
.account-pill { min-width: 240px; max-width: 310px; border: 1px solid var(--line); border-radius: 15px; padding: 8px 12px 8px 8px; background: rgba(255,255,255,.025); display: grid; grid-template-columns: 38px 1fr auto; align-items: center; text-align: left; cursor: pointer; transition: .2s ease; }
.account-pill:hover { border-color: var(--line-strong); background: rgba(255,255,255,.045); }
.account-pill > span:nth-child(2) { min-width: 0; display: grid; gap: 2px; }
.account-pill strong, .account-pill small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-pill strong { font-size: 12px; font-weight: 620; }
.account-pill small { font-size: 10px; color: var(--muted); text-transform: capitalize; }
.account-pill > svg { width: 13px; height: 13px; color: var(--muted); }
.account-avatar { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; color: #0a0d0a; background: var(--accent); font-size: 12px; font-weight: 800; }
.primary-button, .hero-button, .secondary-button, .switch-button, .project-action { border: 0; cursor: pointer; transition: transform .18s ease, background .18s ease, border-color .18s ease, opacity .18s ease; }
.primary-button { min-height: 45px; padding: 0 18px; border-radius: 13px; background: var(--accent); color: #10150d; font-weight: 750; font-size: 12px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
.primary-button:hover, .hero-button:hover { transform: translateY(-1px); background: #b5ff79; }
.primary-button:disabled { opacity: .38; cursor: not-allowed; transform: none; }
.primary-button.large { min-height: 49px; padding: 0 21px; }

.content { width: min(1500px, 100%); margin: 0 auto; padding: 30px 42px 70px; }
.hero { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(350px, .7fr); gap: 22px; min-height: 390px; }
.hero-copy, .quota-card { border: 1px solid var(--line); border-radius: 27px; overflow: hidden; }
.hero-copy { min-height: 390px; position: relative; display: flex; align-items: center; padding: 58px 46px; background: linear-gradient(135deg, rgba(25,31,27,.95), rgba(13,16,15,.96)); }
.hero-copy::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(105deg, rgba(255,255,255,.025), transparent 45%); }
.hero-copy > div:last-child { position: relative; z-index: 2; max-width: 610px; }
.hero-copy h2 { margin: 0; font-size: clamp(38px, 4.2vw, 67px); line-height: .98; letter-spacing: -.06em; font-weight: 610; }
.hero-copy h2 span { color: #9ea69f; }
.hero-copy p { max-width: 560px; margin: 22px 0 28px; color: var(--muted-bright); line-height: 1.65; font-size: 13px; }
.hero-button { display: inline-flex; align-items: center; gap: 28px; padding: 0 21px; min-height: 48px; border-radius: 14px; background: var(--accent); color: #10150d; font-weight: 780; font-size: 12px; }
.hero-button svg { width: 17px; height: 17px; }
.section-kicker { display: flex; align-items: center; gap: 6px; }
.hero-orbit { position: absolute; width: 440px; height: 440px; right: -160px; top: -110px; opacity: .38; transform: rotate(20deg); }
.hero-orbit i { position: absolute; inset: 15%; border: 1px solid rgba(166,244,106,.18); border-radius: 50%; }
.hero-orbit i:nth-child(2) { inset: 6% 32%; }
.hero-orbit i:nth-child(3) { inset: 32% 6%; }
.hero-orbit i:nth-child(4) { inset: 45%; background: var(--accent); box-shadow: 0 0 80px 22px rgba(166,244,106,.35); border: 0; }

.quota-card { padding: 22px; background: linear-gradient(180deg, #131716, #0e1110); display: flex; flex-direction: column; }
.quota-head { display: flex; align-items: center; justify-content: space-between; }
.quota-head > div { display: flex; align-items: center; gap: 7px; }
.quota-head small { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .12em; }
.live-indicator { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px rgba(166,244,106,.65); }
.icon-button, .close-button { width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255,255,255,.025); color: var(--muted-bright); cursor: pointer; }
.icon-button, .close-button { display: inline-grid; place-items: center; }
.icon-button:hover, .close-button:hover { background: rgba(255,255,255,.07); color: var(--text); }
.spin { animation: spin .75s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.quota-main { display: flex; align-items: center; gap: 20px; margin: 25px 0 20px; }
.quota-ring { --quota: 0deg; position: relative; width: 104px; height: 104px; flex: 0 0 auto; padding: 7px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--accent) var(--quota), rgba(255,255,255,.08) 0); }
.quota-ring::before { content: ""; width: 86px; height: 86px; border-radius: 50%; position: absolute; background: #111514; }
.quota-ring > div { position: relative; z-index: 1; display: grid; justify-items: center; }
.quota-ring strong { font-size: 25px; letter-spacing: -.05em; }
.quota-ring small { color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.quota-copy { min-width: 0; display: grid; gap: 3px; }
.quota-copy > span { color: var(--muted); font-size: 10px; }
.quota-copy strong { font-size: 18px; letter-spacing: -.025em; }
.quota-copy p { margin: 4px 0 0; color: var(--muted); font-size: 10px; line-height: 1.45; }
.quota-windows { display: grid; gap: 11px; margin-top: auto; }
.window-row { display: grid; grid-template-columns: 60px 1fr 36px; gap: 10px; align-items: center; }
.window-row span, .window-row strong { font-size: 9px; }
.window-row span { color: var(--muted); }
.window-row strong { text-align: right; font-weight: 700; }
.usage-bar { height: 5px; border-radius: 999px; background: rgba(255,255,255,.07); overflow: hidden; }
.usage-bar i { display: block; height: 100%; border-radius: inherit; background: var(--accent); }
.switch-button { width: 100%; margin-top: 20px; min-height: 43px; border-radius: 12px; border: 1px solid var(--line); background: transparent; color: var(--muted-bright); font-size: 10px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.switch-button:hover { border-color: rgba(166,244,106,.32); color: var(--accent); background: var(--accent-soft); }
.quota-card.warning .quota-ring { background: conic-gradient(var(--warning) var(--quota), rgba(255,255,255,.08) 0); }
.quota-card.warning .live-indicator { background: var(--warning); box-shadow: 0 0 12px rgba(240,189,93,.65); }

.section { padding-top: 58px; scroll-margin-top: 105px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 20px; }
.section-heading h2 { margin: 0; font-size: 25px; letter-spacing: -.04em; }
.project-tools { display: flex; align-items: center; gap: 10px; }
.search-box { min-width: 230px; height: 38px; padding: 0 12px; border: 1px solid var(--line); border-radius: 11px; display: flex; align-items: center; gap: 8px; color: var(--muted); background: rgba(255,255,255,.02); }
.search-box svg { width: 14px; height: 14px; }
.search-box input { width: 100%; color: var(--text); border: 0; outline: 0; background: transparent; font-size: 11px; }
.search-box input::placeholder { color: #616964; }
.count-badge { border: 1px solid var(--line); border-radius: 999px; padding: 9px 12px; color: var(--muted); font-size: 9px; }
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.project-card { position: relative; min-height: 252px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); overflow: hidden; transition: .22s ease; }
.project-card::after { content: ""; position: absolute; width: 130px; height: 130px; border-radius: 50%; right: -80px; bottom: -90px; background: var(--accent); filter: blur(48px); opacity: 0; transition: opacity .25s ease; pointer-events: none; }
.project-card:hover { transform: translateY(-3px); border-color: rgba(166,244,106,.22); background: #131716; }
.project-card:hover::after { opacity: .12; }
.project-card.featured { grid-column: span 2; background: linear-gradient(125deg, rgba(26,34,29,.98), rgba(16,19,18,.98)); }
.project-card-head { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.project-icon { width: 41px; height: 41px; display: grid; place-items: center; border-radius: 12px; background: var(--accent-soft); color: var(--accent); font-size: 17px; font-weight: 750; }
.project-icon svg { width: 19px; height: 19px; stroke-width: 1.6; }
.project-status { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 9px; }
.project-status i { width: 5px; height: 5px; border-radius: 50%; background: var(--accent-deep); }
.project-card h3 { margin: 21px 0 8px; font-size: 19px; letter-spacing: -.03em; }
.project-card p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.project-card.featured p { max-width: 70%; }
.project-focus { display: block; margin-top: 10px; color: var(--muted-bright); font-size: 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.project-foot { position: absolute; z-index: 2; left: 22px; right: 22px; bottom: 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.stack-list { display: flex; flex-wrap: wrap; gap: 5px; }
.stack-list span { border: 1px solid var(--line); border-radius: 999px; padding: 5px 7px; color: var(--muted-bright); font-size: 8px; display: inline-flex; align-items: center; gap: 4px; }
.stack-list svg { width: 9px; height: 9px; }
.project-action { min-width: 86px; min-height: 31px; border-radius: 9px; color: #10150d; background: var(--accent); font-size: 9px; font-weight: 780; display: inline-flex; align-items: center; justify-content: center; gap: 5px; }
.project-action svg { width: 11px; height: 11px; }
.project-card.skeleton { min-height: 250px; background: linear-gradient(100deg, #101312 20%, #181c1a 45%, #101312 70%); background-size: 220% 100%; animation: shimmer 1.3s infinite; }
@keyframes shimmer { to { background-position: -220% 0; } }

.activity-section { padding-bottom: 20px; }
.privacy-note { color: var(--muted); font-size: 9px; display: flex; align-items: center; gap: 6px; }
.privacy-note svg { width: 11px; height: 11px; color: var(--accent); }
.activity-list { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); overflow: hidden; }
.empty-state { min-height: 190px; display: grid; place-items: center; align-content: center; gap: 7px; color: var(--muted); text-align: center; }
.empty-state > svg { width: 22px; height: 22px; color: var(--accent); }
.project-empty { grid-column: 1 / -1; min-height: 220px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.empty-state strong { color: var(--muted-bright); font-size: 12px; }
.empty-state p { margin: 0; font-size: 10px; }
.run-item { border-bottom: 1px solid var(--line); }
.run-item:last-child { border-bottom: 0; }
.run-summary { width: 100%; padding: 17px 19px; border: 0; background: transparent; display: grid; grid-template-columns: 10px minmax(120px,.7fr) minmax(180px,1.5fr) 90px 80px; gap: 13px; align-items: center; text-align: left; cursor: pointer; }
.run-summary:hover { background: rgba(255,255,255,.025); }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.status-dot.running { background: var(--accent); box-shadow: 0 0 10px rgba(166,244,106,.55); animation: pulse 1s infinite alternate; }
.status-dot.failed { background: var(--danger); }
.status-dot.completed { background: var(--accent-deep); }
@keyframes pulse { to { opacity: .4; } }
.run-project strong, .run-task { font-size: 10px; }
.run-project small { display: block; color: var(--muted); font-size: 8px; margin-top: 3px; }
.run-task { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted-bright); }
.run-mode, .run-state { color: var(--muted); font-size: 8px; text-transform: uppercase; letter-spacing: .08em; }
.run-detail { display: none; padding: 5px 20px 20px 42px; }
.run-item.open .run-detail { display: block; }
.run-detail pre { max-height: 340px; overflow: auto; white-space: pre-wrap; padding: 16px; margin: 0; border-radius: 12px; border: 1px solid var(--line); background: #090b0b; color: #c8d0ca; font: 10px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; }
.run-meta { display: flex; flex-wrap: wrap; gap: 12px; color: var(--muted); font-size: 8px; margin-bottom: 9px; }
.run-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 11px; }
.run-actions .secondary-button:disabled { opacity: .42; cursor: not-allowed; }
.run-pr-link { text-decoration: none; }
.danger-button { min-height: 36px; padding: 0 12px; border: 1px solid rgba(255,119,111,.28); border-radius: 10px; background: rgba(255,119,111,.07); color: #ffaaa5; font-size: 9px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.danger-button:hover { border-color: rgba(255,119,111,.48); background: rgba(255,119,111,.12); }
.danger-button:disabled { opacity: .45; cursor: wait; }
.continue-form { margin-top: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.018); display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: end; }
.continue-form label { display: grid; gap: 7px; }
.continue-form label > span { color: var(--muted-bright); font-size: 9px; font-weight: 700; }
.continue-form textarea { width: 100%; min-height: 78px; padding: 11px; resize: vertical; border: 1px solid var(--line); border-radius: 10px; background: #090b0b; color: var(--text); font-size: 10px; line-height: 1.5; }

.modal { width: min(760px, calc(100% - 28px)); max-height: calc(100vh - 36px); padding: 0; border: 1px solid var(--line-strong); border-radius: 25px; color: var(--text); background: #101312; box-shadow: 0 28px 100px rgba(0,0,0,.66); }
.modal::backdrop { background: rgba(0,0,0,.68); backdrop-filter: blur(7px); }
.modal-shell { padding: 26px; }
.switch-modal .modal-shell { max-height: calc(100vh - 38px); overflow: auto; }
.modal-head { display: flex; align-items: start; justify-content: space-between; gap: 20px; margin-bottom: 23px; }
.modal-head h2 { margin: 0; font-size: 25px; letter-spacing: -.04em; }
.close-button { font-size: 21px; line-height: 1; }
.field { display: grid; gap: 8px; margin-bottom: 18px; }
.field > span, .mode-picker legend, .context-row > div > span { color: var(--muted-bright); font-size: 10px; font-weight: 700; }
.field select, .field textarea { width: 100%; border: 1px solid var(--line); border-radius: 12px; background: #0b0e0d; color: var(--text); }
.field select { min-height: 45px; padding: 0 13px; }
.field textarea { padding: 13px; resize: vertical; min-height: 120px; line-height: 1.55; }
.field small { color: var(--muted); font-size: 9px; }
.template-panel { margin: -2px 0 19px; padding: 13px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.015); }
.template-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; color: var(--muted-bright); font-size: 10px; font-weight: 700; }
.template-heading small { color: var(--muted); font-size: 8px; font-weight: 500; }
.template-row, .template-save { display: grid; grid-template-columns: 1fr auto; gap: 7px; }
.template-save { margin-top: 7px; }
.template-row select, .template-save input { width: 100%; min-height: 38px; padding: 0 11px; border: 1px solid var(--line); border-radius: 9px; background: #0b0e0d; color: var(--text); font-size: 9px; }
.template-delete { width: 38px; min-height: 38px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 9px; background: transparent; color: #ffaaa5; cursor: pointer; }
.template-delete svg, .template-save svg { width: 13px; height: 13px; }
.template-delete:disabled, .template-save button:disabled { opacity: .4; cursor: not-allowed; }
.mode-picker { border: 0; padding: 0; margin: 0 0 19px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mode-picker legend { margin-bottom: 8px; }
.mode-picker label { cursor: pointer; }
.mode-picker input { position: absolute; opacity: 0; }
.mode-picker label > span { min-height: 78px; padding: 13px; border: 1px solid var(--line); border-radius: 12px; display: grid; grid-template-columns: 22px 1fr; align-content: center; column-gap: 5px; background: rgba(255,255,255,.015); }
.mode-picker label > span svg { grid-row: 1 / span 2; width: 15px; height: 15px; color: var(--accent); align-self: center; }
.mode-picker label > span b { font-size: 10px; }
.mode-picker label > span small { color: var(--muted); font-size: 8px; }
.mode-picker input:checked + span { border-color: rgba(166,244,106,.4); background: var(--accent-soft); }
.context-row { display: flex; justify-content: space-between; align-items: start; gap: 15px; }
.document-chips, .attachment-list { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.document-chips span, .attachment-list span { padding: 6px 8px; border-radius: 7px; background: rgba(255,255,255,.045); color: var(--muted); font-size: 8px; }
.attach-button input { position: absolute; opacity: 0; pointer-events: none; }
.attach-button span, .secondary-button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: transparent; color: var(--muted-bright); font-size: 9px; cursor: pointer; }
.attach-button span:hover, .secondary-button:hover { border-color: var(--line-strong); background: rgba(255,255,255,.045); }
.modal-actions { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 25px; padding-top: 20px; border-top: 1px solid var(--line); }
.modal-actions p { color: var(--muted); font-size: 9px; margin: 0; }
.shield { display: inline-grid; place-items: center; width: 17px; height: 17px; border-radius: 6px; background: var(--accent-soft); color: var(--accent); margin-right: 5px; }
.shield svg { width: 10px; height: 10px; }
.safety-banner { padding: 14px; border: 1px solid rgba(240,189,93,.2); border-radius: 13px; background: rgba(240,189,93,.07); display: flex; gap: 12px; align-items: start; }
.safety-banner > svg { flex: 0 0 auto; width: 19px; height: 19px; color: var(--warning); }
.safety-banner p { margin: 0; color: var(--muted-bright); font-size: 9px; line-height: 1.55; }
.switch-steps { margin: 22px 0 13px; padding: 0; display: grid; gap: 15px; list-style: none; }
.switch-steps li { display: grid; grid-template-columns: 27px 1fr auto; gap: 11px; align-items: center; }
.switch-steps li > span { width: 26px; height: 26px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 9px; color: var(--accent); font-size: 9px; }
.switch-steps strong { font-size: 10px; }
.switch-steps p { margin: 3px 0 0; color: var(--muted); font-size: 8px; line-height: 1.45; }
.switch-stage { margin: 20px 0 11px; display: grid; grid-template-columns: 27px 1fr auto; gap: 11px; align-items: center; }
.switch-stage-number { width: 26px; height: 26px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 9px; color: var(--accent); font-size: 9px; }
.switch-stage strong { font-size: 10px; }
.switch-stage p { margin: 3px 0 0; color: var(--muted); font-size: 8px; }
.account-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 8px 0 18px 38px; }
.account-choice { cursor: pointer; }
.account-choice input { position: absolute; opacity: 0; }
.account-choice > span { min-height: 59px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; display: grid; gap: 2px; background: rgba(255,255,255,.015); }
.account-choice strong { font-size: 9px; }
.account-choice small { color: var(--muted); font-size: 8px; }
.account-choice em { color: var(--accent); font-size: 7px; font-style: normal; }
.account-choice input:checked + span { border-color: rgba(166,244,106,.38); background: var(--accent-soft); }
.account-choice.current { opacity: .45; pointer-events: none; }
.prepare-button { margin-left: 38px; }
.prepared-note { margin-left: 38px; color: var(--accent); font-size: 8px; display: flex; align-items: center; gap: 6px; }
.prepared-note svg { width: 12px; height: 12px; }
.switch-checklist { margin: 15px 0 0 38px; padding: 0; border: 0; display: grid; gap: 7px; }
.switch-checklist legend { margin-bottom: 8px; color: var(--muted-bright); font-size: 9px; font-weight: 700; }
.switch-checklist:disabled { opacity: .45; }
.confirm-row { display: flex; align-items: center; gap: 9px; padding: 13px; border: 1px solid var(--line); border-radius: 12px; color: var(--muted-bright); font-size: 9px; cursor: pointer; }
.confirm-row input { accent-color: var(--accent-deep); }
.final-confirm { margin-top: 9px; border-color: rgba(166,244,106,.18); }
.switch-actions { align-items: end; }
.switch-actions p { max-width: 250px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.toast-region { position: fixed; right: 24px; bottom: 24px; z-index: 100; display: grid; gap: 9px; }
.toast { max-width: 360px; padding: 13px 15px; border: 1px solid var(--line-strong); border-radius: 12px; background: #181d1a; box-shadow: 0 16px 45px rgba(0,0,0,.4); color: var(--muted-bright); font-size: 10px; animation: toast-in .22s ease; }
.toast.error { border-color: rgba(255,119,111,.35); color: #ffd0cc; }
@keyframes toast-in { from { transform: translateY(9px); opacity: 0; } }

@media (max-width: 1050px) {
  .hero { grid-template-columns: 1fr; }
  .quota-card { min-height: 300px; }
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-card.featured { grid-column: span 2; }
}
@media (max-width: 760px) {
  :root { --sidebar: 0px; }
  .app-shell { display: block; }
  .sidebar { inset: auto 10px 10px; width: auto; height: 62px; padding: 7px; border: 1px solid var(--line); border-radius: 17px; flex-direction: row; background: rgba(12,15,14,.94); }
  .brand, .sidebar-foot { display: none; }
  .sidebar nav { margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
  .nav-item { min-height: 46px; display: flex; padding: 0 13px; gap: 6px; }
  .nav-item span { font-size: 17px; }
  main { grid-column: 1; }
  .topbar { min-height: 82px; padding: 15px 17px; }
  .topbar h1 { font-size: 18px; }
  .account-pill { min-width: 0; width: 42px; padding: 5px; display: block; }
  .account-pill > span:nth-child(2), .account-pill > svg { display: none; }
  .primary-button { padding: 0 12px; }
  .content { padding: 17px 14px 95px; }
  .hero-copy { min-height: 380px; padding: 38px 24px; }
  .hero-copy h2 { font-size: 42px; }
  .project-grid { grid-template-columns: 1fr; }
  .project-card.featured { grid-column: span 1; }
  .project-card.featured p { max-width: none; }
  .section-heading { align-items: start; flex-direction: column; }
  .project-tools { width: 100%; }
  .search-box { min-width: 0; flex: 1; }
  .mode-picker { grid-template-columns: 1fr; }
  .template-save { grid-template-columns: 1fr; }
  .context-row, .modal-actions { flex-direction: column; align-items: stretch; }
  .account-list { grid-template-columns: 1fr; margin-left: 0; }
  .switch-steps li { grid-template-columns: 27px 1fr; }
  .switch-steps .secondary-button { grid-column: 2; justify-self: start; }
  .switch-stage { grid-template-columns: 27px 1fr; }
  .switch-stage .secondary-button { grid-column: 2; justify-self: start; }
  .switch-checklist, .prepare-button, .prepared-note { margin-left: 0; }
  .run-summary { grid-template-columns: 9px 1fr 70px; }
  .run-task, .run-mode { display: none; }
  .continue-form { grid-template-columns: 1fr; }
}
