:root {
  --bg: #090b0f;
  --surface: #101319;
  --surface-2: #151922;
  --surface-3: #1c222d;
  --line: #252c38;
  --line-bright: #343e4e;
  --text: #f4f5f7;
  --muted: #8b94a5;
  --subtle: #626c7d;
  --orange: #ff7849;
  --orange-2: #ff9b68;
  --cyan: #5ad4c9;
  --yellow: #f7cf62;
  --red: #ef6a75;
  --radius: 18px;
  --shadow: 0 24px 80px rgb(0 0 0 / 32%);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); }
body { min-height: 100vh; margin: 0; background: radial-gradient(circle at 88% -10%, rgb(255 120 73 / 9%), transparent 30rem), var(--bg); }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: .45rem; font-size: clamp(2rem, 3.3vw, 3.4rem); line-height: 1.02; letter-spacing: -.052em; }
h2 { margin-bottom: .3rem; font-size: 1.25rem; letter-spacing: -.025em; }
h3 { margin-bottom: .25rem; }

.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 10; display: flex; width: 240px; flex-direction: column; padding: 28px 18px; border-right: 1px solid var(--line); background: rgb(10 12 16 / 92%); backdrop-filter: blur(24px); }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 12px; color: #101115; background: linear-gradient(145deg, var(--orange-2), var(--orange)); box-shadow: 0 10px 32px rgb(255 120 73 / 24%); font-weight: 900; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: .96rem; letter-spacing: -.02em; }
.brand small, .operator small { margin-top: 2px; color: var(--subtle); font-size: .68rem; letter-spacing: .04em; text-transform: uppercase; }
.sidebar nav { display: grid; gap: 6px; margin-top: 52px; }
.sidebar nav a { display: flex; align-items: center; gap: 13px; padding: 11px 12px; border: 1px solid transparent; border-radius: 11px; color: var(--muted); font-size: .9rem; font-weight: 600; }
.sidebar nav a span { width: 20px; color: var(--subtle); text-align: center; }
.sidebar nav a:hover, .sidebar nav a.active { border-color: var(--line); color: var(--text); background: var(--surface-2); }
.sidebar nav a.active span { color: var(--orange); }
.sidebar-foot { display: grid; gap: 18px; margin-top: auto; padding: 18px 8px 0; border-top: 1px solid var(--line); }
.operator { display: flex; align-items: center; gap: 10px; font-size: .82rem; }
.avatar { display: grid; flex: 0 0 auto; width: 30px; height: 30px; place-items: center; border: 1px solid var(--line-bright); border-radius: 50%; color: var(--orange-2); background: var(--surface-3); font-size: .72rem; font-weight: 800; }
.text-button { padding: 0; border: 0; color: var(--subtle); background: transparent; cursor: pointer; font-size: .75rem; }
.text-button:hover { color: var(--text); }

.shell { width: min(1480px, calc(100% - 240px)); min-height: 100vh; margin-left: 240px; padding: 52px clamp(28px, 5vw, 76px) 80px; }
.auth-shell { min-height: 100vh; }
.topbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; margin-bottom: 42px; }
.topbar.compact { align-items: center; }
.topbar .lede { max-width: 720px; }
.eyebrow { margin-bottom: 9px; color: var(--orange-2); font-size: .68rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.lede { margin-bottom: 0; color: var(--muted); font-size: .98rem; line-height: 1.65; }
.back { display: inline-block; margin-bottom: 28px; color: var(--muted); font-size: .8rem; }
.back:hover { color: var(--text); }
.primary, .secondary, .danger { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; gap: 20px; padding: 0 17px; border: 1px solid transparent; border-radius: 10px; cursor: pointer; font-size: .82rem; font-weight: 750; }
.primary { color: #15100e; background: linear-gradient(135deg, var(--orange-2), var(--orange)); box-shadow: 0 10px 30px rgb(255 120 73 / 17%); }
.primary:hover { filter: brightness(1.07); transform: translateY(-1px); }
.secondary { border-color: var(--line-bright); color: var(--muted); background: var(--surface-2); }
.danger { border-color: rgb(239 106 117 / 25%); color: var(--red); background: rgb(239 106 117 / 8%); }
.full { width: 100%; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-bottom: 48px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(135deg, var(--surface-2), var(--surface)); box-shadow: var(--shadow); }
.stats > div { min-height: 126px; padding: 24px 28px; border-right: 1px solid var(--line); }
.stats > div:last-child { border: 0; }
.stats span, .stats small { display: block; color: var(--subtle); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; }
.stats strong { display: block; margin: 10px 0 5px; font-size: 1.8rem; letter-spacing: -.04em; }
.stats .status-good { color: var(--cyan); font-size: 1.35rem; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.section-head h2, .section-head p { margin-bottom: 0; }
.section-head > a { color: var(--orange-2); font-size: .78rem; }
.project-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 16px; margin-bottom: 46px; }
.project-card { display: flex; min-height: 250px; flex-direction: column; justify-content: space-between; padding: 23px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg, var(--surface-2), var(--surface)); transition: border-color .2s, transform .2s, background .2s; }
.project-card:hover { border-color: #465165; background: linear-gradient(145deg, #181d26, #11151b); transform: translateY(-3px); }
.card-top { display: flex; justify-content: space-between; }
.project-glyph, .provider-mark { display: grid; width: 43px; height: 43px; place-items: center; border: 1px solid rgb(255 120 73 / 28%); border-radius: 13px; color: var(--orange-2); background: rgb(255 120 73 / 9%); font-weight: 850; }
.project-glyph.large { width: 58px; height: 58px; border-radius: 17px; font-size: 1.15rem; }
.project-card h3 { font-size: 1.2rem; }
.project-card p { overflow: hidden; margin-bottom: 0; color: var(--subtle); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .68rem; text-overflow: ellipsis; white-space: nowrap; }
.pill, .count, .shortcut, .live-dot { display: inline-flex; align-items: center; width: fit-content; border: 1px solid var(--line-bright); border-radius: 999px; color: var(--muted); background: rgb(255 255 255 / 2%); font-size: .66rem; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; }
.pill { height: 26px; padding: 0 9px; }
.pill.running, .pill.queued, .pill.waiting { border-color: rgb(247 207 98 / 20%); color: var(--yellow); background: rgb(247 207 98 / 7%); }
.pill.succeeded, .pill.approved { color: var(--cyan); }
.pill.failed, .pill.rejected { color: var(--red); }
.card-metrics { display: flex; align-items: center; gap: 20px; padding-top: 17px; border-top: 1px solid var(--line); color: var(--subtle); font-size: .68rem; }
.card-metrics strong { color: var(--muted); font-size: .72rem; }
.card-metrics .arrow { margin-left: auto; color: var(--orange); font-size: 1rem; }

.activity-panel, .panel, .form-card, .command-card { border: 1px solid var(--line); border-radius: var(--radius); background: rgb(16 19 25 / 78%); box-shadow: var(--shadow); }
.activity-panel, .panel { padding: 24px; }
.live-dot { gap: 7px; border: 0; color: var(--cyan); background: transparent; }
.live-dot::before { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); content: ""; }
.event-list, .work-list, .run-list { margin: 0; padding: 0; list-style: none; }
.event-list li, .work-list li, .run-list li { display: flex; align-items: center; gap: 13px; padding: 14px 0; border-top: 1px solid var(--line); }
.event-list li:first-child, .work-list li:first-child, .run-list li:first-child { border-top: 0; }
.event-list p, .work-list p, .run-list p { margin: 3px 0 0; color: var(--subtle); font-size: .72rem; }
.event-list time { margin-left: auto; color: var(--subtle); font-size: .68rem; }
.event-icon { color: var(--orange); font-size: 1.8rem; line-height: 0; }
.muted { color: var(--muted); }
.empty-state { display: grid; min-height: 330px; place-items: center; align-content: center; padding: 50px; border: 1px dashed var(--line-bright); border-radius: var(--radius); text-align: center; }
.empty-state p { max-width: 480px; color: var(--muted); line-height: 1.6; }
.empty-mark { display: grid; width: 54px; height: 54px; margin-bottom: 18px; place-items: center; border-radius: 18px; color: var(--orange); background: rgb(255 120 73 / 10%); font-size: 1.4rem; }

.form-card { padding: 30px; }
.form-card.narrow { max-width: 720px; }
.stack-form { display: grid; gap: 20px; }
.stack-form label { display: grid; gap: 8px; color: var(--muted); font-size: .75rem; font-weight: 700; }
.stack-form label small { color: var(--subtle); font-weight: 400; }
input, textarea, select { width: 100%; border: 1px solid var(--line-bright); border-radius: 10px; outline: none; color: var(--text); background: #0c0f14; transition: border-color .2s, box-shadow .2s; }
input, select { height: 44px; padding: 0 13px; }
textarea { padding: 16px; resize: vertical; line-height: 1.55; }
input:focus, textarea:focus, select:focus { border-color: rgb(255 120 73 / 68%); box-shadow: 0 0 0 3px rgb(255 120 73 / 9%); }
select { appearance: none; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; padding-top: 4px; }
.alert { padding: 12px 14px; border: 1px solid rgb(239 106 117 / 26%); border-radius: 10px; color: #ffb1b8; background: rgb(239 106 117 / 8%); font-size: .8rem; }
.init-banner, .attention-strip, .confirm-bar, .success-banner { display: flex; align-items: center; gap: 20px; margin-bottom: 22px; padding: 22px 24px; border: 1px solid var(--line-bright); border-radius: var(--radius); background: linear-gradient(135deg, rgb(255 120 73 / 9%), var(--surface)); }
.init-banner > div, .attention-strip > div, .confirm-bar > div { flex: 1; }
.init-banner p, .attention-strip p, .confirm-bar p { margin: 4px 0 0; color: var(--muted); font-size: .78rem; line-height: 1.5; }
.attention-strip { border-color: rgb(247 207 98 / 24%); background: linear-gradient(135deg, rgb(247 207 98 / 8%), var(--surface)); }
.attention-strip > a { color: var(--yellow); font-size: .78rem; font-weight: 750; }
.attention-mark { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 50%; color: #17130b; background: var(--yellow); font-weight: 900; }
.muted-command { opacity: .78; }
.profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 22px 0 0; }
.profile-grid div { padding: 14px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface-2); }
.profile-grid dt { color: var(--subtle); font-size: .65rem; letter-spacing: .08em; text-transform: uppercase; }
.profile-grid dd { margin: 7px 0 0; color: var(--text); font-size: .8rem; }
.command-list { display: grid; gap: 12px; }
.command-list > div { display: grid; gap: 7px; padding: 14px; border: 1px solid var(--line); border-radius: 11px; }
.command-list code, .confirm-bar code { color: var(--cyan); font-size: .72rem; }
.scan-warnings { margin-top: 18px; padding: 14px; border-radius: 10px; color: var(--yellow); background: rgb(247 207 98 / 7%); font-size: .72rem; }
.scan-warnings ul { margin-bottom: 0; padding-left: 18px; }
.source-panel { margin-bottom: 20px; }
.source-list { display: grid; max-height: 520px; margin: 0; padding: 0; overflow: auto; list-style: none; }
.source-list li { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.source-list li:first-child { border: 0; }
.source-list p { margin: 3px 0 0; color: var(--subtle); font-size: .66rem; }
.source-kind { width: 96px; color: var(--orange-2); font-size: .62rem; text-transform: uppercase; }
.success-banner { justify-content: center; color: var(--cyan); }
.question-list { display: grid; gap: 18px; }
.question-card { padding: 26px; border: 1px solid var(--line-bright); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.question-meta { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 24px; }
.question-meta > div { flex: 1; }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.choice { display: flex !important; grid-template-columns: none !important; align-items: flex-start; gap: 11px !important; padding: 15px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface-2); cursor: pointer; }
.choice input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--orange); }
.choice span { display: grid; gap: 4px; }
.choice small { color: var(--subtle); font-weight: 400; }
.attention-toast { position: fixed; right: 24px; bottom: 24px; z-index: 50; display: flex; width: min(390px, calc(100vw - 48px)); align-items: center; gap: 13px; padding: 16px; border: 1px solid rgb(247 207 98 / 32%); border-radius: 14px; background: #171912; box-shadow: var(--shadow); animation: toast-in .25s ease-out; }
.attention-toast > span { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; color: #17130b; background: var(--yellow); font-weight: 900; }
.attention-toast div { display: grid; gap: 3px; }
.attention-toast small { overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px); } }

.project-hero { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.project-title { display: flex; align-items: center; gap: 18px; }
.project-title h1 { font-size: 2.2rem; }
.project-title p:last-child { margin: 0; color: var(--subtle); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .7rem; }
.hero-status { display: grid; justify-items: end; gap: 8px; color: var(--subtle); font-size: .7rem; }
.command-card { margin-bottom: 22px; padding: 25px; background: radial-gradient(circle at 88% 0%, rgb(255 120 73 / 8%), transparent 24rem), var(--surface); }
.command-head { display: flex; align-items: flex-start; justify-content: space-between; }
.shortcut { padding: 5px 9px; }
.command-card textarea { min-height: 130px; border: 0; background: transparent; font-size: 1.02rem; }
.command-card textarea:focus { box-shadow: none; }
.route-row { display: flex; align-items: stretch; gap: 8px; padding-top: 16px; border-top: 1px solid var(--line); }
.route { display: flex; min-width: 120px; align-items: center; padding: 9px 11px; border: 1px solid transparent; border-radius: 9px; color: var(--muted); cursor: pointer; }
.route:hover, .route.active { border-color: var(--line-bright); color: var(--text); background: var(--surface-3); }
.route input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.route strong, .route small { display: block; }
.route strong { font-size: .72rem; }
.route small { margin-top: 3px; color: var(--subtle); font-size: .62rem; }
.command-submit { margin-left: auto; }
.project-columns { display: grid; grid-template-columns: 1.3fr 1fr; gap: 18px; margin-bottom: 18px; }
.count { min-width: 28px; height: 26px; justify-content: center; }
.priority { width: 34px; color: var(--orange-2); font-family: ui-monospace, monospace; font-size: .67rem; }
.work-list li > span:last-child { margin-left: auto; color: var(--subtle); }
.run-state { width: 8px; height: 8px; border-radius: 50%; background: var(--subtle); }
.run-state.queued, .run-state.waiting { background: var(--yellow); }
.run-state.running { background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.run-state.failed { background: var(--red); }
.mini-empty { display: grid; min-height: 120px; place-items: center; padding: 20px; border: 1px dashed var(--line); border-radius: 12px; color: var(--subtle); font-size: .8rem; text-align: center; }
.mini-empty p { margin: 0; }
.agent-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; }
.agent-strip > div { display: grid; justify-items: center; gap: 7px; padding: 18px 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); text-align: center; }
.agent-orb { display: grid; width: 35px; height: 35px; place-items: center; border-radius: 50%; color: var(--cyan); background: rgb(90 212 201 / 9%); font-weight: 800; }
.agent-strip small { color: var(--subtle); font-size: .65rem; }
.workflow-panel { margin-bottom: 18px; }
.stage-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.stage-card { display: flex; align-items: flex-start; gap: 11px; padding: 14px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface-2); }
.stage-card .run-state { flex: 0 0 auto; margin-top: 5px; }
.stage-card p { margin: 4px 0; color: var(--muted); font-size: .7rem; }
.stage-card small { color: var(--subtle); font-family: ui-monospace, monospace; font-size: .61rem; }
.danger { color: var(--red) !important; }

.conversation-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; }
.thread { display: grid; align-content: start; gap: 18px; }
.message { display: flex; gap: 13px; max-width: 840px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.message.user { margin-left: 8%; background: var(--surface-2); }
.message.system { color: var(--muted); }
.message small { color: var(--orange-2); font-size: .64rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.message p { margin: 7px 0 0; white-space: pre-wrap; line-height: 1.65; }
.run-rail { display: grid; align-content: start; gap: 12px; }
.run-card { padding: 17px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); }
.run-card h3 { margin-top: 18px; }
.run-card p { overflow: hidden; color: var(--subtle); font-family: ui-monospace, monospace; font-size: .62rem; text-overflow: ellipsis; }
.run-card small { color: var(--muted); }

.provider-list { display: grid; gap: 9px; margin-bottom: 16px; }
.provider-list > div { display: flex; align-items: center; gap: 12px; padding: 13px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.provider-list > div > div { min-width: 0; flex: 1; }
.provider-list p, .provider-list small { overflow: hidden; margin: 2px 0 0; color: var(--subtle); font-size: .68rem; text-overflow: ellipsis; white-space: nowrap; }
details { margin-top: 14px; border-top: 1px solid var(--line); }
summary { padding-top: 16px; color: var(--orange-2); cursor: pointer; font-size: .76rem; font-weight: 700; }
.inset { margin-top: 18px; }
.horizontal-form { grid-template-columns: 1.1fr 1fr 1.1fr 1fr auto; align-items: end; }
.approval-list { display: grid; gap: 14px; }
.approval-card { display: flex; align-items: center; gap: 10px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.approval-card > div { flex: 1; }
.approval-card code { color: var(--subtle); font-size: .68rem; }
.integration-layout { display: grid; grid-template-columns: minmax(300px, .8fr) minmax(420px, 1.2fr); gap: 18px; align-items: start; }
.integration-form form { display: grid; gap: 15px; }
.integration-form label { display: grid; gap: 7px; color: var(--muted); font-size: .78rem; font-weight: 650; }
.integration-form input, .integration-form select, .integration-form textarea { width: 100%; }
.integration-form small, .optional { color: var(--subtle); font-size: .68rem; font-weight: 500; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.integration-list { display: grid; gap: 12px; }
.integration-card { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: color-mix(in srgb, var(--surface) 90%, white 2%); }
.integration-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; color: var(--accent); background: var(--accent-soft); font-weight: 800; }
.integration-title { display: flex; gap: 10px; align-items: center; }
.integration-title h3 { margin: 0; }
.integration-card p { margin: 3px 0; color: var(--muted); font-size: .75rem; word-break: break-all; }
.integration-card small { color: var(--subtle); }
.integration-actions { display: flex; gap: 8px; }
.tool-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 9px; }
.tool-chips span { padding: 3px 7px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: .66rem; }
.integration-assignments { margin-top: 18px; }
.integration-assignment-form { grid-template-columns: 1fr 1fr 1.5fr auto; }
.assignment-list { display: grid; gap: 8px; margin-top: 18px; }
.assignment-list > div { display: grid; grid-template-columns: 1fr auto 1fr 1.5fr; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); }
.assignment-list small { overflow: hidden; color: var(--subtle); text-overflow: ellipsis; white-space: nowrap; }

.login-wrap { position: relative; display: grid; min-height: 100vh; place-items: center; overflow: hidden; padding: 30px; }
.login-wrap::before { position: absolute; width: 600px; height: 600px; border: 1px solid rgb(255 255 255 / 3%); border-radius: 50%; background: radial-gradient(circle, rgb(255 120 73 / 8%), transparent 67%); content: ""; }
.login-card { position: relative; z-index: 2; display: grid; width: min(100%, 460px); gap: 35px; padding: 42px; border: 1px solid var(--line-bright); border-radius: 24px; background: rgb(14 17 22 / 88%); box-shadow: 0 40px 120px rgb(0 0 0 / 52%); backdrop-filter: blur(26px); }
.login-brand { margin-bottom: 6px; }
.login-card h1 { font-size: 2.25rem; }
.microcopy { margin: -14px 0 0; color: var(--subtle); font-size: .68rem; text-align: center; }
.login-orbit { position: absolute; width: 820px; height: 820px; border: 1px solid rgb(255 255 255 / 3%); border-radius: 50%; animation: orbit 60s linear infinite; }
.login-orbit span { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 24px var(--orange); }
.login-orbit span:nth-child(1) { top: 12%; left: 27%; }
.login-orbit span:nth-child(2) { right: 3%; bottom: 34%; background: var(--cyan); }
.login-orbit span:nth-child(3) { bottom: 7%; left: 23%; width: 4px; height: 4px; }
@keyframes orbit { to { transform: rotate(360deg); } }

@media (max-width: 980px) {
  .sidebar { position: static; width: 100%; height: auto; flex-direction: row; align-items: center; padding: 14px 20px; }
  .sidebar nav { display: flex; margin: 0 0 0 auto; }
  .sidebar-foot { display: none; }
  .shell { width: 100%; margin: 0; padding: 34px 22px 64px; }
  .project-columns, .conversation-layout { grid-template-columns: 1fr; }
  .horizontal-form { grid-template-columns: 1fr 1fr; }
  .horizontal-form button { align-self: end; }
  .run-rail { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
  .route-row { flex-wrap: wrap; }
  .command-submit { width: 100%; margin: 5px 0 0; }
}

@media (max-width: 680px) {
  .integration-layout, .form-grid { grid-template-columns: 1fr; }
  .integration-card { grid-template-columns: auto 1fr; }
  .integration-actions { grid-column: 1 / -1; }
  .sidebar { gap: 8px; padding: 12px; }
  .sidebar .brand { gap: 8px; }
  .sidebar .brand small, .sidebar nav a { font-size: 0; }
  .sidebar nav a { gap: 0; padding: 9px 7px; }
  .sidebar nav a span { width: 16px; font-size: 1rem; }
  .sidebar nav { gap: 2px; }
  .topbar, .project-hero { align-items: flex-start; flex-direction: column; }
  .stats { grid-template-columns: 1fr; }
  .stats > div { min-height: 100px; border-right: 0; border-bottom: 1px solid var(--line); }
  .project-grid { grid-template-columns: 1fr; }
  .route { min-width: calc(50% - 4px); flex: 1; }
  .hero-status { justify-items: start; }
  .login-card { padding: 28px 22px; }
  .approval-card { align-items: stretch; flex-direction: column; }
  .approval-card form, .approval-card button { width: 100%; }
  .init-banner, .attention-strip, .confirm-bar, .question-meta { align-items: stretch; flex-direction: column; }
  .profile-grid { grid-template-columns: 1fr; }
  .horizontal-form { grid-template-columns: 1fr; }
  .integration-assignment-form, .assignment-list > div { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
