:root {
    color-scheme: light;
    --canvas: #fbfbfa;
    --surface: #ffffff;
    --surface-subtle: #f4f3f1;
    --surface-accent: #f0edff;
    --surface-danger: #fff5f3;
    --text: #17171c;
    --text-muted: #6d6b74;
    --text-soft: #96939d;
    --border: #e5e2de;
    --border-strong: #d4d0cb;
    --accent: #6647e8;
    --accent-hover: #5538d0;
    --accent-text: #ffffff;
    --success: #187252;
    --success-soft: #eaf6f0;
    --warning: #9a5a08;
    --warning-soft: #fff3dc;
    --danger: #bd3b31;
    --danger-hover: #9f2f27;
    --danger-soft: #fdecea;
    --neutral-soft: #eeece9;
    --focus: #7559ee;
    --signal: #e3882d;
    --shadow-menu: 0 20px 50px rgba(28, 24, 45, .14);
    --shadow-drawer: -18px 0 48px rgba(28, 24, 45, .12);
    --radius-control: 7px;
    --radius-surface: 10px;
    --sidebar-expanded: 248px;
    --sidebar-collapsed: 72px;
    --sidebar-width: var(--sidebar-expanded);
    --emulator-width: 0px;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--canvas); color: var(--text); font: 14px/1.5 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: var(--accent); }
[hidden] { display: none !important; }
svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
code, .resource-key, .sidebar-cost { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--focus) 38%, transparent); outline-offset: 2px; }

.workspace-shell { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: var(--sidebar-width) minmax(0, 1fr) var(--emulator-width); }
.workspace-shell-no-sidebar { grid-template-columns: minmax(0, 1fr) var(--emulator-width); }
.project-nav-shell { position: sticky; top: 0; z-index: 30; height: 100vh; height: 100dvh; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; overflow: visible; border-right: 1px solid var(--border); background: #f4f3f1; }
.sidebar-header { padding: 24px 14px 10px; }
.brand-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 28px; }
.brand { min-width: 0; display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-size: 16px; font-weight: 760; letter-spacing: -.025em; text-decoration: none; white-space: nowrap; }
.brand-mark { width: 24px; height: 30px; object-fit: contain; }
.sidebar-toggle { flex: 0 0 auto; border-color: transparent !important; background: transparent !important; color: var(--text-muted) !important; }
.sidebar-toggle svg { transform: rotate(90deg); transition: transform 180ms ease; }
.project-label { display: block; margin: 0 8px 7px; color: var(--text-soft); font-size: 10px; font-weight: 760; letter-spacing: .1em; text-transform: uppercase; }
.project-controls { display: flex; align-items: center; gap: 5px; }
.project-switcher { position: relative; min-width: 0; flex: 1; }
.project-trigger { width: 100%; min-height: 42px; display: flex; align-items: center; gap: 8px; padding: 7px 10px; border: 1px solid transparent; border-radius: var(--radius-control); background: transparent; color: var(--text); cursor: pointer; }
.project-trigger:hover { border-color: var(--border); background: rgba(255,255,255,.65); }
.project-trigger-key { min-width: 0; overflow: hidden; flex: 1; color: var(--accent); font: 750 11px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .045em; text-align: left; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.project-chevron { display: grid; margin-left: auto; color: var(--text-soft); }
.project-chevron svg { width: 14px; height: 14px; }
.resource-key { color: var(--accent); font-size: 10px; font-weight: 750; letter-spacing: .045em; text-transform: uppercase; }
.project-menu { position: absolute; top: calc(100% + 7px); left: 0; z-index: 50; width: min(320px, calc(100vw - 32px)); padding: 6px; border: 1px solid var(--border); border-radius: var(--radius-surface); background: var(--surface); box-shadow: var(--shadow-menu); }
.project-menu nav { max-height: 300px; overflow-y: auto; }
.project-menu nav a, .project-menu-more, .project-menu-create { min-height: 42px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 10px; border-radius: 6px; color: var(--text); font-weight: 620; text-decoration: none; }
.project-menu nav a:hover, .project-menu-more:hover, .project-menu-create:hover { background: var(--surface-subtle); }
.project-menu nav a[aria-current="page"] { background: var(--surface-accent); color: var(--accent); }
.project-menu-more, .project-menu-create { margin-top: 4px; border-top: 1px solid var(--border); border-radius: 0; color: var(--text-muted); font-size: 12px; }
.project-menu-create { justify-content: flex-start; color: var(--accent); }
.project-menu-create.is-disabled { color: var(--text-soft); cursor: not-allowed; }
.project-nav { display: grid; align-content: start; gap: 3px; padding: 8px 12px; overflow-y: auto; }
.project-nav a { position: relative; min-height: 43px; display: flex; align-items: center; gap: 12px; padding: 9px 11px; border-radius: var(--radius-control); color: #5f5d66; font-weight: 640; text-decoration: none; }
.project-nav a:hover { color: var(--text); background: rgba(255,255,255,.62); }
.project-nav a[aria-current="page"] { color: var(--accent); background: var(--surface-accent); }
.project-nav a[aria-current="page"]::before { content: ""; position: absolute; left: -12px; top: 9px; bottom: 9px; width: 2px; border-radius: 0 2px 2px 0; background: var(--accent); }
.sidebar-footer { display: grid; gap: 3px; padding: 12px 12px 18px; border-top: 1px solid var(--border); }
.sidebar-cost, .sidebar-account, .sidebar-logout { min-height: 38px; display: flex; align-items: center; gap: 11px; padding: 7px 10px; border-radius: var(--radius-control); color: var(--text-muted); font-size: 12px; text-decoration: none; white-space: nowrap; }
.sidebar-cost { color: var(--text); font-weight: 700; }
.sidebar-account { min-width: 0; }
.sidebar-account[aria-current="page"] { color: var(--accent); background: var(--accent-soft); }
.sidebar-account .sidebar-copy { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.cost-signal { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 3px color-mix(in srgb, var(--signal) 14%, transparent); }
.sidebar-account svg, .sidebar-logout svg { width: 17px; height: 17px; }
.sidebar-logout:hover { background: rgba(255,255,255,.62); color: var(--text); }
.sidebar-backdrop { display: none; }

html[data-sidebar-state="collapsed"] { --sidebar-width: var(--sidebar-collapsed); }
html[data-sidebar-state="collapsed"] .sidebar-copy { display: none; }
html[data-sidebar-state="collapsed"] .sidebar-header { padding-inline: 9px; }
html[data-sidebar-state="collapsed"] .brand-row { flex-direction: column; margin-bottom: 20px; }
html[data-sidebar-state="collapsed"] .brand { margin-top: 2px; }
html[data-sidebar-state="collapsed"] .sidebar-toggle svg { transform: rotate(-90deg); }
html[data-sidebar-state="collapsed"] .project-controls { justify-content: center; }
html[data-sidebar-state="collapsed"] .project-switcher { flex: 0 0 auto; }
html[data-sidebar-state="collapsed"] .project-trigger { width: 54px; min-height: 42px; gap: 3px; padding: 6px 5px; }
html[data-sidebar-state="collapsed"] .project-trigger-key { font-size: 9px; }
html[data-sidebar-state="collapsed"] .project-chevron svg { width: 12px; height: 12px; }
html[data-sidebar-state="collapsed"] .project-menu { top: 0; left: calc(100% + 12px); }
html[data-sidebar-state="collapsed"] .project-nav { padding-inline: 10px; }
html[data-sidebar-state="collapsed"] .project-nav a { justify-content: center; padding-inline: 8px; }
html[data-sidebar-state="collapsed"] .project-nav a[aria-current="page"]::before { left: -10px; }
html[data-sidebar-state="collapsed"] .sidebar-footer { padding-inline: 10px; }
html[data-sidebar-state="collapsed"] .sidebar-cost, html[data-sidebar-state="collapsed"] .sidebar-account, html[data-sidebar-state="collapsed"] .sidebar-logout { justify-content: center; padding-inline: 4px; }

.main-content { min-width: 0; min-height: 100vh; min-height: 100dvh; overflow: auto; }
.content-frame { width: min(100%, 1440px); margin: 0 auto; padding: 44px 42px; }
.page-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 34px; }
.page-heading h1 { margin: 0; font-size: clamp(28px, 2.6vw, 38px); line-height: 1.08; letter-spacing: -.045em; }
.page-heading p:not(.eyebrow) { max-width: 720px; margin: 9px 0 0; color: var(--text-muted); }
.page-heading-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.eyebrow { margin: 0 0 7px; color: var(--accent); font-size: 10px; font-weight: 780; letter-spacing: .11em; text-transform: uppercase; }
.section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.section-heading h2, .side-section h2, .danger-zone h2 { margin: 0; font-size: 18px; letter-spacing: -.025em; }
.section-heading p, .side-section > p, .danger-zone > p { margin: 5px 0 0; color: var(--text-muted); }
.section-block { margin-top: 32px; }
.muted { color: var(--text-muted); }

.capability-reference { width: min(100%, 880px); overflow-wrap: anywhere; }
.capability-reference h2 { margin: 54px 0 22px; padding-top: 28px; border-top: 1px solid var(--border); font-size: 26px; line-height: 1.18; letter-spacing: -.035em; }
.capability-reference h2:first-child { margin-top: 0; }
.capability-reference h3 { margin: 38px 0 18px; color: var(--text-muted); font-size: 12px; letter-spacing: .09em; text-transform: uppercase; }
.capability-reference h4 { margin: 30px 0 14px; font-size: 19px; line-height: 1.3; letter-spacing: -.02em; }
.capability-reference h5 { margin: 16px 0 8px; font-size: 14px; line-height: 1.4; }
.capability-reference p { margin: 9px 0; }
.capability-reference strong { font-weight: 720; }
.capability-reference code { padding: 2px 5px; border-radius: 4px; background: var(--surface-subtle); font-size: .9em; overflow-wrap: anywhere; word-break: break-word; }
.capability-reference ol { margin: 10px 0 0; padding-left: 24px; }
.capability-reference li { margin: 5px 0; padding-left: 3px; }

.button, .icon-button { border: 0; border-radius: var(--radius-control); cursor: pointer; text-decoration: none; transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease, opacity 150ms ease; }
.button { min-height: 38px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 8px 13px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.button.primary { background: var(--accent); color: var(--accent-text); box-shadow: 0 1px 2px rgba(65,42,157,.18); }
.button.primary:hover { background: var(--accent-hover); }
.button.secondary { border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); }
.button.secondary:hover { border-color: #bdb8b2; background: var(--surface-subtle); }
.button.quiet { background: transparent; color: var(--text-muted); }
.button.quiet:hover { background: var(--surface-subtle); color: var(--text); }
.button.warning { background: var(--warning-soft); color: var(--warning); }
.button.danger { background: var(--danger); color: var(--accent-text); }
.button.danger:hover { background: var(--danger-hover); }
.button.danger-outline { border: 1px solid color-mix(in srgb, var(--danger) 34%, var(--border)); background: transparent; color: var(--danger); }
.button.danger-outline:hover { background: var(--danger-soft); }
.button:disabled, .button[aria-disabled="true"], select:disabled, input:disabled { opacity: .48; cursor: not-allowed; }
.icon-button { width: 38px; height: 38px; display: inline-grid; place-items: center; border: 1px solid var(--border); background: var(--surface); color: var(--text); }
.icon-button:hover { background: var(--surface-subtle); }
.danger-text { color: var(--danger) !important; }

input, textarea, select { width: 100%; border: 1px solid var(--border-strong); border-radius: var(--radius-control); padding: 9px 11px; background: var(--surface); color: var(--text); }
input, select { min-height: 40px; }
textarea { resize: vertical; line-height: 1.55; }
input:hover, textarea:hover, select:hover { border-color: color-mix(in srgb, var(--accent) 38%, var(--border-strong)); }
input:focus, textarea:focus, select:focus { outline: 3px solid color-mix(in srgb, var(--focus) 25%, transparent); border-color: var(--focus); }
input[readonly] { background: var(--surface-subtle); color: var(--text-muted); }
.stack-form { display: grid; gap: 16px; }
.stack-form label, .side-section label, .mcp-session > label, [data-mcp-connection] > label { display: grid; gap: 7px; color: var(--text); font-size: 13px; font-weight: 680; }
.stack-form .checkbox-option { display: flex; align-items: center; gap: 10px; min-height: 36px; cursor: pointer; }
.checkbox-option input { width: auto; min-height: auto; margin: 0; }
.form-page { max-width: 880px; margin: 0 auto; }
.compact-form-page { max-width: 680px; padding-top: 5vh; }
.content-section, .form-section { padding: 24px 0 30px; border: 0; border-top: 1px solid var(--border); background: transparent; }
.history-section { background: transparent; }
.side-section { display: grid; gap: 16px; padding: 0 0 24px; border-bottom: 1px solid var(--border); background: transparent; }
.side-section:last-child { border-bottom: 0; }
.form-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 9px; margin-top: 5px; }
.form-actions form { margin: 0; }
.form-help { margin: 0; color: var(--text-muted); font-size: 12px; font-weight: 450; }
.form-error { margin: 0; color: var(--danger); font-size: 13px; }
.page-error { margin-bottom: 18px; padding: 12px 14px; border-left: 3px solid var(--danger); background: var(--danger-soft); color: var(--danger); }
.form-help.padded { padding: 14px 0; }
.compile-button { min-width: 150px; }
.button-spinner { display: none; width: 14px; height: 14px; border: 2px solid color-mix(in srgb, var(--accent-text) 45%, transparent); border-top-color: currentColor; border-radius: 50%; }
.compile-button.is-loading .button-spinner, .snapshot-save-button[aria-busy="true"] .button-spinner { display: block; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.table-surface { border: 0; background: transparent; }
.table-wrap { position: relative; overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.data-table th { padding: 10px 14px 12px; border-bottom: 1px solid var(--border-strong); background: transparent; color: var(--text-soft); font-size: 10px; font-weight: 760; letter-spacing: .08em; text-align: left; text-transform: uppercase; white-space: nowrap; }
.data-table td { padding: 18px 14px; border-bottom: 1px solid var(--border); color: var(--text-muted); vertical-align: middle; }
.data-table tbody tr { transition: background-color 140ms ease; }
.data-table tbody tr:hover { background: rgba(244,243,241,.72); }
.data-table td strong, .data-table td code { color: var(--text); }
.resource-link, .run-summary { display: grid; gap: 3px; color: var(--text); font-weight: 700; text-decoration: none; }
.resource-link:hover > span:first-child { color: var(--accent); }
.resource-description { color: var(--text-muted); font-size: 12px; font-weight: 450; }
.row-actions, .history-actions { display: flex; align-items: center; justify-content: flex-end; gap: 7px; }
.current-apk-summary { min-width: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin: -14px 0 26px; padding: 12px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); color: var(--text-muted); overflow-wrap: anywhere; }
.current-apk-summary strong { color: var(--text); }
.automation-presentation { min-width: 220px; display: grid; justify-items: start; gap: 6px; }
.automation-presentation .form-help { max-width: 320px; }
.automation-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.automation-run-form { display: inline-flex; min-width: 0; }
.automation-run-form .button { max-width: 100%; white-space: normal; text-align: center; }
.next-run { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.inline-run-form { min-width: 220px; display: flex; gap: 7px; }
.inline-run-form select { min-width: 130px; padding: 7px 9px; }
.suite-run-form, .suite-run-submit-form { display: inline-flex; }
.suite-run-submit-form .button { min-width: 104px; }
.suite-execution { display: grid; gap: 16px; }
.suite-execution .section-heading { margin-bottom: 0; }
.suite-run-overview { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.suite-run-summary { margin: 0; color: var(--text-muted); }
.suite-run-items { margin-top: 2px; }
.suite-run-items td:nth-child(4) { display: grid; justify-items: start; gap: 5px; }
.suite-run-items .error-text { color: var(--danger); }
.test-case-table { min-width: 980px; }
.test-case-table th:nth-child(1) { width: 27%; }
.test-case-table th:nth-child(5) { text-align: right; }
.pagination-link { display: inline-block; margin-top: 16px; font-weight: 680; text-decoration: none; }
.count-badge { min-width: 28px; padding: 3px 0; border-bottom: 1px solid var(--border-strong); color: var(--text-muted); font: 700 12px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; text-align: center; }
.data-table .resource-key, .status-badge { white-space: nowrap; }
.status-badge { position: relative; display: inline-flex; align-items: center; gap: 7px; color: var(--text-muted); font-size: 10px; font-weight: 780; letter-spacing: .035em; text-transform: uppercase; }
.status-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--text-soft); }
.status-badge.queued { color: var(--accent); }.status-badge.queued::before { background: var(--accent); }
.status-badge.starting_emulator, .status-badge.installing_app, .status-badge.running_scenario, .status-badge.finalizing, .status-badge.starting, .status-badge.stopping, .status-badge.saving, .status-badge.uploading, .status-badge.published, .status-badge.deleting { color: var(--warning); }
.status-badge.starting_emulator::before, .status-badge.installing_app::before, .status-badge.running_scenario::before, .status-badge.finalizing::before, .status-badge.starting::before, .status-badge.stopping::before, .status-badge.saving::before, .status-badge.uploading::before, .status-badge.published::before, .status-badge.deleting::before { background: var(--warning); }
.status-badge.done, .status-badge.ready, .status-badge.stopped { color: var(--success); }.status-badge.done::before, .status-badge.ready::before, .status-badge.stopped::before { background: var(--success); }
.status-badge.failed, .status-badge.canceled, .status-badge.expired, .status-badge.incompatible { color: var(--danger); }.status-badge.failed::before, .status-badge.canceled::before, .status-badge.expired::before, .status-badge.incompatible::before { background: var(--danger); }
.status-badge.current, .status-badge.implemented, .status-badge.automated { color: var(--success); }.status-badge.current::before, .status-badge.implemented::before, .status-badge.automated::before { background: var(--success); }
.status-badge.needs-version-check, .status-badge.needs-adaptation, .status-badge.candidate { color: var(--warning); }.status-badge.needs-version-check::before, .status-badge.needs-adaptation::before, .status-badge.candidate::before { background: var(--warning); }
.status-badge.not-implemented, .status-badge.not-applicable, .status-badge.no-current, .status-badge.unavailable { color: var(--text-muted); }
.empty-state { min-height: 300px; display: grid; place-content: center; justify-items: center; padding: 44px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); text-align: center; }
.empty-state.compact { min-height: 160px; }
.empty-state h2, .empty-state h3 { margin: 12px 0 0; }
.empty-state p { max-width: 480px; margin: 7px 0 18px; color: var(--text-muted); }
.empty-icon { width: 44px; height: 44px; display: grid; place-items: center; color: var(--accent); }
.empty-icon svg { width: 24px; height: 24px; }

.detail-layout { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(280px, .75fr); gap: 42px; align-items: start; }
.detail-rail { display: grid; gap: 24px; padding-left: 32px; border-left: 1px solid var(--border); }
.settings-layout { max-width: 920px; display: grid; gap: 32px; }
.settings-divider { height: 1px; background: var(--border); margin: 4px 0; }
.account-credentials-form { display: grid; }
.account-credential-list { min-width: 0; display: grid; }
.account-credential-row { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 360px); align-items: center; gap: 32px; padding: 18px 0; border-bottom: 1px solid var(--border); }
.account-credential-copy { min-width: 0; }
.account-credential-copy h2 { margin: 0; font-size: 14px; letter-spacing: -.01em; overflow-wrap: anywhere; }
.account-credential-copy p { margin: 4px 0 0; color: var(--text-muted); font-size: 12px; overflow-wrap: anywhere; }
.account-credential-field, .account-credential-input-shell { min-width: 0; }
.account-credential-input-shell { position: relative; }
.account-credential-field.is-configured input { padding-right: 46px; }
.account-credential-clear { position: absolute; top: 4px; right: 4px; width: 32px; height: 32px; display: grid; place-items: center; padding: 0; border: 0; border-radius: var(--radius-control); background: transparent; color: var(--text-muted); cursor: pointer; transition: background-color 150ms ease, color 150ms ease, opacity 150ms ease; }
.account-credential-clear:hover, .account-credential-clear:focus-visible { background: var(--danger-soft); color: var(--danger); }
.account-credential-clear svg { width: 16px; height: 16px; }
.account-credential-clear-form { display: none; }
.account-credentials-form .form-actions { margin-top: 20px; }
.settings-values { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--border); }
.settings-values > div { display: grid; gap: 4px; padding: 14px; background: var(--canvas); overflow-wrap: anywhere; }
.settings-values span { color: var(--text-muted); font-size: 12px; }
.settings-values strong { font-size: 13px; }
.danger-zone { padding: 20px; border: 1px solid color-mix(in srgb, var(--danger) 22%, var(--border)); border-radius: var(--radius-surface); background: var(--surface-danger); }
.danger-zone.compact { padding: 20px; }
.inline-confirmation { margin-top: 14px; padding-top: 14px; border-top: 1px solid color-mix(in srgb, var(--danger) 22%, var(--border)); }
.inline-confirmation p { margin: 0 0 12px; color: var(--text-muted); }
.table-confirmation { min-width: 300px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 7px; }
.tag-list a { padding: 5px 0; border-bottom: 1px solid var(--border); color: var(--text); font-size: 12px; text-decoration: none; }
.page-tabs { display: flex; gap: 24px; margin-bottom: 28px; border-bottom: 1px solid var(--border); }
.page-tabs a { display: inline-flex; align-items: center; gap: 7px; padding: 10px 2px; border-bottom: 2px solid transparent; color: var(--text-muted); font-weight: 680; text-decoration: none; }
.page-tabs a[aria-current="page"] { border-color: var(--accent); color: var(--accent); }
.page-tabs a span { color: var(--text-soft); font-size: 10px; }
.run-history { display: grid; }
.history-run-link { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 0 4px; border-bottom: 1px solid var(--border); }
.history-run-primary { min-width: 0; display: grid; grid-template-columns: 86px 72px minmax(136px, 1fr) minmax(130px, 1fr) 76px 62px; align-items: center; gap: 11px; padding: 16px 0; color: var(--text-muted); font-size: 12px; text-decoration: none; }
.history-run-primary:hover strong { color: var(--accent); }
.history-run-primary strong { color: var(--text); }
.history-failure-reason { grid-column: 1 / -1; color: var(--danger); overflow-wrap: anywhere; }
.back-link { display: inline-block; margin-bottom: 30px; color: var(--text-muted); font-size: 12px; font-weight: 680; text-decoration: none; }
.back-link:hover { color: var(--accent); }
.run-detail { width: min(920px, 100%); min-width: 0; margin: 0 auto; }
.run-detail-header { min-width: 0; margin-bottom: 42px; }
.run-detail-header .eyebrow { display: flex; align-items: center; gap: 9px; }
.run-detail-header h1 { max-width: 820px; margin: 7px 0 0; font-size: clamp(30px, 4.2vw, 52px); line-height: 1.04; letter-spacing: -.045em; overflow-wrap: anywhere; }
.run-description { max-width: 720px; margin: 14px 0 0; color: var(--text-muted); font-size: 15px; overflow-wrap: anywhere; }
.run-stopwatch { display: block; margin: 0 0 20px; color: var(--text); font: 760 clamp(42px, 7vw, 76px)/.9 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-variant-numeric: tabular-nums; letter-spacing: -.07em; }
.run-environment { min-width: 0; margin-bottom: 46px; border-top: 1px solid var(--border-strong); border-bottom: 1px solid var(--border); }
.run-environment h2, .run-timeline-section h2, .run-network-diagnostics h2 { margin: 0; padding: 15px 0 11px; font-size: 12px; letter-spacing: .02em; }
.run-environment dl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; }
.run-environment dl > div { min-width: 0; padding: 14px 16px 16px 0; }
.run-environment dt { margin-bottom: 4px; color: var(--text-soft); font-size: 11px; }
.run-environment dd { min-width: 0; margin: 0; color: var(--text); font-size: 13px; font-weight: 680; overflow-wrap: anywhere; }
.run-timeline-section { min-width: 0; }
.section-heading { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--border-strong); }
.timeline-stale { margin: 10px 0 0; color: var(--warning); font-size: 12px; }
.run-timeline { min-width: 0; margin: 0; padding: 22px 0 4px; list-style: none; }
.run-timeline-event { position: relative; min-width: 0; display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; gap: 13px; padding: 0 0 22px; }
.run-timeline-event::before { position: absolute; top: 13px; bottom: -3px; left: 5px; width: 1px; background: var(--border-strong); content: ""; }
.run-timeline-event:last-child::before { display: none; }
.timeline-marker { position: relative; z-index: 1; width: 11px; height: 11px; margin-top: 5px; border: 2px solid var(--border-strong); border-radius: 50%; background: var(--canvas); }
.timeline-copy { min-width: 0; display: grid; gap: 3px; }
.timeline-title { min-width: 0; color: var(--text); font-size: 14px; font-weight: 650; line-height: 1.45; white-space: normal; overflow-wrap: anywhere; }
.timeline-state { color: var(--text-soft); font-size: 10px; font-weight: 760; letter-spacing: .08em; text-transform: uppercase; }
.timeline-duration { min-width: 54px; padding-top: 1px; color: var(--text-muted); font: 650 12px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-variant-numeric: tabular-nums; text-align: right; }
.run-timeline-event.is-pending, .run-timeline-event.is-skipped { opacity: .42; }
.run-timeline-event.is-running .timeline-marker { border-color: var(--accent); background: var(--accent); }
.run-timeline-event.is-running .timeline-title, .run-timeline-event.is-running .timeline-duration { color: var(--accent); }
.run-timeline-event.is-passed .timeline-marker { border-color: var(--success); background: var(--success); }
.run-timeline-event.is-failed .timeline-marker { border-color: var(--danger); background: var(--danger); }
.run-timeline-event.is-canceled .timeline-marker { border-color: var(--warning); background: var(--warning); }
.run-total { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-top: 10px; padding: 20px 0; border-top: 1px solid var(--border-strong); border-bottom: 1px solid var(--border); }
.run-total span { color: var(--text-muted); font-size: 12px; font-weight: 680; }
.run-total strong { font: 760 24px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-variant-numeric: tabular-nums; }
.run-error { margin: 28px 0 0; padding: 14px 0; border-bottom: 1px solid color-mix(in srgb, var(--danger) 32%, var(--border)); color: var(--danger); overflow-wrap: anywhere; }
.run-network-diagnostics { min-width: 0; margin-top: 42px; border-top: 1px solid var(--border-strong); }
.run-network-diagnostics h3 { margin: 22px 0 9px; font-size: 13px; }
.run-network-diagnostics .network-diagnostic-list { min-width: 0; }
.run-network-diagnostics li, .run-network-diagnostics li span, .network-diagnostic-list li { min-width: 0; white-space: normal; overflow-wrap: anywhere; word-break: break-word; }
.run-detail-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 32px; }
.network-mocks-layout { min-width: 0; display: grid; gap: 20px; }
.network-summary { min-width: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.network-summary > div { min-width: 0; display: grid; gap: 3px; padding: 12px 14px; border-right: 1px solid var(--border); }
.network-summary > div:last-child { border-right: 0; }
.network-summary dt, .network-provenance dt { color: var(--text-muted); font-size: 11px; }
.network-summary dd, .network-provenance dd { min-width: 0; margin: 0; color: var(--text); font-size: 13px; font-weight: 700; overflow-wrap: anywhere; }
.network-provenance { min-width: 0; border-bottom: 1px solid var(--border); }
.network-provenance > summary, .network-new-requests > summary { min-height: 38px; display: flex; align-items: center; gap: 12px; list-style: none; color: var(--text-muted); cursor: pointer; font-size: 12px; font-weight: 700; }
.network-provenance > summary::-webkit-details-marker, .network-new-requests > summary::-webkit-details-marker, .network-response-upload > summary::-webkit-details-marker { display: none; }
.network-disclosure-description { margin-left: auto; color: var(--text-soft); font-weight: 450; text-align: right; }
.network-disclosure-icon { display: inline-grid; place-items: center; margin-left: auto; color: var(--text-soft); }
.network-disclosure-description + .network-disclosure-icon { margin-left: 0; }
.network-disclosure-icon svg { width: 14px; height: 14px; transition: transform 160ms ease; }
details[open] > summary .network-disclosure-icon svg { transform: rotate(180deg); }
.network-provenance > dl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 8px 0 14px; }
.network-provenance > dl > div { min-width: 0; display: grid; gap: 3px; }
.network-revision-picker { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 10px; }
.network-revision-picker label { display: grid; gap: 7px; color: var(--text); font-size: 13px; font-weight: 680; }
.network-diff { display: flex; flex-wrap: wrap; gap: 18px; padding: 12px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); color: var(--text-muted); font-size: 12px; }
.network-diff strong { color: var(--text); }
.network-new-requests { min-width: 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.network-new-requests > summary { color: var(--text); }
.network-new-requests > summary .network-count { min-width: 24px; margin-left: auto; padding: 2px 7px; border-radius: 999px; background: var(--warning-soft); color: var(--warning); text-align: center; font-size: 11px; }
.network-new-requests > summary .network-count + .network-disclosure-icon { margin-left: 0; }
.network-new-requests ul { max-height: 280px; margin: 0; padding: 8px 8px 14px 24px; overflow-y: auto; color: var(--text-muted); font-size: 12px; }
.network-new-requests li { overflow-wrap: anywhere; }
.network-new-requests li + li { margin-top: 6px; }
.network-request-list { min-width: 0; margin: 0; padding: 0; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-panel); background: var(--surface); list-style: none; }
.network-request-item { min-width: 0; }
.network-request-item + .network-request-item { border-top: 1px solid var(--border); }
.network-request-disclosure { min-width: 0; }
.network-request-disclosure > summary { min-width: 0; min-height: 52px; display: grid; grid-template-columns: 54px minmax(58px, auto) minmax(0, 1fr) 24px; align-items: center; gap: 12px; padding: 10px 14px; list-style: none; cursor: pointer; }
.network-request-disclosure > summary::-webkit-details-marker { display: none; }
.network-request-disclosure > summary:hover { background: var(--surface-subtle); }
.network-request-disclosure[open] > summary { background: var(--surface-accent); }
.network-request-disclosure > summary .network-disclosure-icon { margin-left: 0; }
.network-request-number { color: var(--text-soft); font-size: 12px; font-variant-numeric: tabular-nums; }
.network-request-method { color: var(--text); font-size: 12px; font-weight: 750; }
.network-request-url { min-width: 0; color: var(--text); font-size: 13px; overflow-wrap: anywhere; }
.network-request-details { min-width: 0; display: grid; gap: 14px; padding: 14px; border-top: 1px solid var(--border); }
.network-response-facts { min-width: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0; }
.network-response-facts > div { min-width: 0; display: grid; gap: 3px; }
.network-response-facts dt { color: var(--text-muted); font-size: 11px; }
.network-response-facts dd { min-width: 0; margin: 0; color: var(--text); font-size: 12px; font-weight: 700; overflow-wrap: anywhere; }
.network-response-upload { min-width: 0; }
.network-response-upload > summary { width: max-content; min-height: 34px; display: inline-flex; align-items: center; gap: 5px; padding: 6px 0; list-style: none; color: var(--accent); cursor: pointer; font-size: 12px; font-weight: 700; }
.network-response-upload > summary:hover { color: var(--accent-hover); }
.network-response-upload > summary .network-disclosure-icon { margin-left: 0; }
.network-response-upload form { min-width: 0; display: grid; gap: 9px; padding: 10px 0 4px; border-top: 1px solid var(--border); }
.network-upload-actions { min-width: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.network-body-override-actions { min-width: 0; }
.network-body-override-actions > .button { padding-left: 0; }
.network-body-override-actions .inline-confirmation { max-width: 680px; }
.network-file-picker { position: relative; min-height: 38px; display: inline-flex; align-items: center; justify-content: center; padding: 8px 13px; overflow: hidden; border: 1px solid var(--border-strong); border-radius: var(--radius-control); background: var(--surface); color: var(--text); cursor: pointer; font-size: 13px; font-weight: 700; }
.network-file-picker:hover { background: var(--surface-subtle); }
.network-file-picker:focus-within { outline: 3px solid color-mix(in srgb, var(--focus) 38%, transparent); outline-offset: 2px; }
.network-file-picker input[type="file"] { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.network-upload-metadata { min-width: 0; overflow-wrap: anywhere; }
.network-upload-metadata.is-error { color: var(--danger); }
.network-matcher-panel { min-width: 0; padding: 14px; border-top: 1px solid color-mix(in srgb, var(--accent) 22%, var(--border)); }
.network-matcher-panel .section-heading { align-items: center; margin-bottom: 12px; }
.network-matcher-panel .section-heading h2 { font-size: 14px; }
.network-matcher-panel .section-heading p { font-size: 12px; }
.network-matcher-panel pre { max-width: 100%; max-height: 360px; margin: 0; padding: 14px; overflow: auto; border-radius: var(--radius-control); background: var(--surface); color: var(--text); white-space: pre; }
.network-matcher-fallback { width: max-content; }
.network-diagnostic-list { display: grid; gap: 7px; margin: 0; padding-left: 20px; color: var(--text-muted); font-size: 12px; }
.case-picker { max-height: 270px; overflow-y: auto; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.case-option { min-height: 44px; display: flex !important; align-items: center; gap: 10px !important; padding: 9px 3px; border-bottom: 1px solid var(--border); cursor: pointer; }.case-option:last-child { border-bottom: 0; }.case-option:hover { background: var(--surface-subtle); }.case-option input { width: auto; min-height: auto; margin: 0; }
.drag-handle { width: 38px; height: 38px; display: grid; place-items: center; border: 0; background: transparent; color: var(--text-soft); cursor: grab; }[data-suite-case-id].is-dragging { opacity: .45; }
.apk-upload-form { display: grid; margin-bottom: 26px; }
.apk-upload-form > input[type="file"] { margin-bottom: 16px; }
.apk-upload-form.is-enhanced > input[type="file"] { display: none; }
.apk-dropzone { width: 100%; min-height: 184px; display: grid; place-items: center; align-content: center; gap: 12px; padding: 28px; border: 1px dashed color-mix(in srgb, var(--accent) 34%, var(--border-strong)); border-radius: var(--radius-surface); background: transparent; color: var(--text); text-align: center; cursor: pointer; transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease; }
.apk-dropzone:hover, .apk-dropzone.dragover { border-color: var(--accent); background: var(--surface-accent); color: var(--accent); }
.apk-dropzone:focus-visible { border-color: var(--focus); outline-offset: 4px; }
.apk-upload-form[aria-busy="true"] .apk-dropzone { cursor: wait; opacity: .66; }
.apk-dropzone-icon { width: 48px; height: 48px; display: grid; place-items: center; color: var(--accent); }
.apk-dropzone-icon svg { width: 28px; height: 28px; stroke-width: 1.65; }
.dropzone-copy { display: grid; gap: 5px; }
.dropzone-copy strong { color: var(--accent); font-size: 16px; }
.dropzone-copy span, .selected-file { color: var(--text-muted); }
.apk-upload-selection { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 12px; }
.apk-upload-selection .selected-file { min-width: 0; overflow-wrap: anywhere; }
.apk-upload-selection .form-actions { flex: 0 0 auto; margin: 0; }
.apk-upload-form.is-enhanced:not(.has-file) .apk-upload-selection { display: none; }
.apk-upload-form.is-enhanced [data-upload-submit] { display: none; }
.apk-upload-progress { display: grid; gap: 7px; margin-top: 12px; }
.apk-upload-progress progress { width: 100%; height: 6px; border: 0; accent-color: var(--accent); }
.apk-upload-feedback { min-height: 18px; color: var(--text-muted); font-size: 12px; overflow-wrap: anywhere; }
.apk-upload-feedback.is-error { color: var(--danger); }
.mcp-layout { display: grid; grid-template-columns: minmax(300px, .8fr) minmax(420px, 1.2fr); column-gap: 42px; align-items: start; }.mcp-section { min-width: 0; }.mcp-session { display: grid; gap: 16px; }.content-mcp-start { display: none; }.secret-control, .copy-control { display: flex; gap: 8px; margin-top: 7px; }.secret-control input, .copy-control input { min-width: 0; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }.mcp-actions { display: flex; flex-wrap: wrap; gap: 8px; }.mcp-connections { grid-column: 1 / -1; border-bottom: 1px solid var(--border); }.status-text { font-weight: 700; text-transform: capitalize; }.status-text.active { color: var(--success); }.status-text.revoked { color: var(--text-muted); }.inline-actions { display: flex; justify-content: flex-end; gap: 7px; }.snapshot-save-button { min-width: 142px; }.snapshot-progress { display: grid; gap: 7px; color: var(--text-muted); font-size: 12px; }.snapshot-progress-track { position: relative; height: 3px; overflow: hidden; background: var(--neutral-soft); }.snapshot-progress-track::after { content: ""; position: absolute; inset: 0 auto 0 -35%; width: 35%; background: var(--accent); animation: snapshot-progress 1.1s ease-in-out infinite; }@keyframes snapshot-progress { to { transform: translateX(390%); } }.notice { margin-top: 16px; padding: 14px; border-left: 3px solid var(--warning); background: var(--warning-soft); color: var(--warning); }.notice p { margin: 0 0 5px; }.notice a { color: inherit; font-weight: 720; }
.mcp-instruction-composer { position: fixed; left: var(--sidebar-width); right: var(--emulator-width); bottom: 0; z-index: 20; border-top: 1px solid var(--border); background: var(--surface); }.mcp-instruction-composer-inner { width: min(100%, 1440px); margin: 0 auto; padding: 11px 42px 13px; }.mcp-instruction-form { display: grid; gap: 6px; }.mcp-instruction-form > label { color: var(--text); font-size: 12px; font-weight: 680; }.mcp-instruction-row { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }.mcp-instruction-row .button { min-width: 96px; }.mcp-instruction-progress ol { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 2px 0 0; padding: 0; list-style: none; }.mcp-instruction-progress li { display: inline-flex; align-items: center; gap: 7px; color: var(--text-muted); font-size: 12px; }.mcp-instruction-progress li span { width: 7px; height: 7px; flex: 0 0 7px; border-radius: 999px; background: var(--border-strong); }.mcp-instruction-progress li.is-complete { color: var(--text); }.mcp-instruction-progress li.is-complete span { background: var(--success); }.mcp-instruction-progress li.is-active { color: var(--text); font-weight: 650; }.mcp-instruction-progress li.is-active span { background: var(--accent); box-shadow: 0 0 0 3px var(--surface-accent); }.mcp-instruction-progress.is-error li.is-active span { background: var(--danger); box-shadow: 0 0 0 3px var(--danger-soft); }.mcp-instruction-feedback { margin: 0; color: var(--success); font-size: 12px; }.mcp-instruction-feedback.is-error { color: var(--danger); }
.emulator-drawer { position: sticky; top: 0; align-self: start; width: var(--emulator-width); min-width: 0; height: 100vh; height: 100dvh; display: flex; flex-direction: column; background: var(--surface); border-left: 1px solid var(--border); box-shadow: var(--shadow-drawer); overflow: hidden; }.emulator-header { min-height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--border); }.emulator-header div { min-width: 0; display: grid; gap: 3px; }.emulator-header strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.emulator-header span { color: var(--text-muted); font-size: 11px; text-transform: capitalize; }.emulator-screen { flex: 1; min-height: 0; display: grid; place-items: center; overflow: hidden; background: var(--text); }#frame-viewer { width: 100%; height: 100%; border: 0; display: grid; place-items: center; position: relative; }#frame-image { width: 100%; height: 100%; object-fit: contain; }#frame-loading { color: var(--text-soft); }.phone-button { color: var(--success); }
.login-page, .consent-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; }.login-surface { width: min(440px, 100%); display: grid; justify-items: center; padding: 42px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); text-align: center; }.login-mark { width: 72px; height: 92px; object-fit: contain; }.login-surface h1 { margin: 5px 0 0; font-size: 30px; letter-spacing: -.03em; }.login-surface > p:not(.eyebrow) { margin: 10px 0 22px; color: var(--text-muted); }.g_id_signin { display: inline-block; }.consent-surface { width: min(680px, 100%); padding: 36px; border: 1px solid var(--border); border-radius: var(--radius-surface); background: var(--surface); }.consent-surface .login-mark { display: block; width: 52px; height: 64px; margin-bottom: 12px; }.consent-surface h1 { margin: 0; font-size: 28px; letter-spacing: -.03em; }.consent-surface > p:not(.eyebrow) { color: var(--text-muted); }.consent-details { display: grid; gap: 1px; margin: 22px 0; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-control); }.consent-details div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 14px; padding: 12px 14px; background: var(--surface-subtle); }.consent-details dt { color: var(--text-muted); font-weight: 650; }.consent-details dd { margin: 0; color: var(--text); overflow-wrap: anywhere; }.consent-permissions { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }.consent-permissions li { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }.consent-permissions span { display: grid; gap: 2px; }.consent-permissions strong { font-size: 13px; }.consent-permissions small { color: var(--text-muted); line-height: 1.45; }.consent-permissions code { flex: 0 0 auto; color: var(--text-muted); font-size: 11px; }.consent-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 22px; }

.oauth-handoff-surface { text-align: left; }
.oauth-handoff-actions { align-items: center; }
.oauth-handoff-actions .button { max-width: 100%; white-space: normal; text-align: center; }

.error-page { min-height: 100vh; min-height: 100dvh; }
.error-main { width: min(100%, 1180px); min-height: 100vh; min-height: 100dvh; display: grid; grid-template-rows: auto 1fr; margin: 0 auto; padding: clamp(28px, 5vw, 64px); }
.error-brand { width: max-content; display: inline-flex; align-items: center; gap: 11px; color: var(--text); font-size: 16px; font-weight: 760; letter-spacing: -.025em; text-decoration: none; }
.error-brand-mark { width: 29px; height: 36px; object-fit: contain; }
.error-content { max-width: 660px; align-self: center; padding: 48px 0 15vh; }
.error-code { margin: 0 0 20px; color: var(--accent); font: 780 clamp(76px, 14vw, 164px)/.78 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: -.085em; }
.error-content h1 { margin: 0; font-size: clamp(32px, 5vw, 58px); line-height: 1.03; letter-spacing: -.05em; }
.error-description { max-width: 560px; margin: 18px 0 28px; color: var(--text-muted); font-size: 17px; line-height: 1.6; }
.error-action { width: max-content; min-width: 136px; }

@media (max-width: 1180px) {
    :root { --sidebar-width: var(--sidebar-collapsed); }
    .sidebar-copy { display: none; }
    .sidebar-header { padding-inline: 9px; }.brand-row { flex-direction: column; margin-bottom: 20px; }.brand { margin-top: 2px; }.sidebar-toggle svg { transform: rotate(-90deg); }.project-controls { justify-content: center; }.project-switcher { flex: 0 0 auto; }.project-trigger { width: 54px; min-height: 42px; gap: 3px; padding: 6px 5px; }.project-trigger-key { font-size: 9px; }.project-chevron svg { width: 12px; height: 12px; }.project-menu { top: 0; left: calc(100% + 12px); }.project-nav { padding-inline: 10px; }.project-nav a { justify-content: center; padding-inline: 8px; }.sidebar-footer { padding-inline: 10px; }.sidebar-cost, .sidebar-account, .sidebar-logout { justify-content: center; padding-inline: 4px; }
    html[data-sidebar-state="expanded"] .project-nav-shell { position: fixed; left: 0; top: 0; width: var(--sidebar-expanded); box-shadow: 20px 0 54px rgba(28,24,45,.16); }
    html[data-sidebar-state="expanded"] .sidebar-copy { display: initial; }
    html[data-sidebar-state="expanded"] .brand-row { flex-direction: row; margin-bottom: 28px; }
    html[data-sidebar-state="expanded"] .sidebar-toggle svg { transform: rotate(90deg); }
    html[data-sidebar-state="expanded"] .project-controls { justify-content: initial; }
    html[data-sidebar-state="expanded"] .project-switcher { flex: 1; }
    html[data-sidebar-state="expanded"] .project-trigger { width: 100%; min-height: 42px; gap: 8px; padding: 7px 10px; }
    html[data-sidebar-state="expanded"] .project-trigger-key { font-size: 11px; }
    html[data-sidebar-state="expanded"] .project-chevron svg { width: 14px; height: 14px; }
    html[data-sidebar-state="expanded"] .project-menu { top: calc(100% + 7px); left: 0; }
    html[data-sidebar-state="expanded"] .project-nav { padding-inline: 12px; }
    html[data-sidebar-state="expanded"] .project-nav a { justify-content: initial; padding-inline: 11px; }
    html[data-sidebar-state="expanded"] .sidebar-footer { padding-inline: 12px; }
    html[data-sidebar-state="expanded"] .sidebar-cost, html[data-sidebar-state="expanded"] .sidebar-account, html[data-sidebar-state="expanded"] .sidebar-logout { justify-content: initial; padding-inline: 10px; }
    html[data-sidebar-state="expanded"] .sidebar-backdrop { position: fixed; inset: 0; z-index: 25; display: block; background: rgba(23,23,28,.24); backdrop-filter: blur(2px); }
    .content-frame { padding: 36px 30px; }.mcp-instruction-composer-inner { padding-inline: 30px; }.detail-layout, .mcp-layout { grid-template-columns: 1fr; }.detail-rail { padding: 28px 0 0; border-top: 1px solid var(--border); border-left: 0; }.mcp-connections { grid-column: auto; }
    .history-run-primary { grid-template-columns: 80px 68px minmax(0, 1fr) 108px; }.history-run-primary > :nth-child(5), .history-run-primary > :nth-child(6) { display: none; }
    .run-environment dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
    .error-main { padding: 24px; }.error-content { padding: 42px 0 10vh; }.error-description { font-size: 15px; }
    .workspace-shell, .workspace-shell-no-sidebar { grid-template-columns: var(--sidebar-collapsed) minmax(0, 1fr); }
    .workspace-shell-no-sidebar { display: block; }
    .content-frame { padding: 28px 18px; }.mcp-instruction-composer-inner { padding-inline: 18px; }
    .page-heading { align-items: stretch; flex-direction: column; margin-bottom: 26px; }.page-heading > .button { align-self: flex-start; }.page-heading-actions { justify-content: space-between; }
    .page-tabs { gap: 16px; overflow-x: auto; white-space: nowrap; }
    .settings-values { grid-template-columns: 1fr; }.account-credential-row { grid-template-columns: minmax(0, 1fr); gap: 12px; }.history-run-link { grid-template-columns: minmax(0, 1fr); padding-block: 4px 12px; }.history-run-primary { grid-template-columns: 76px 66px minmax(0, 1fr); }.history-run-primary > :nth-child(4), .history-run-primary > :nth-child(5), .history-run-primary > :nth-child(6) { display: none; }.history-run-link .history-actions { justify-self: start; }
    .run-detail-header { margin-bottom: 32px; }.run-environment { margin-bottom: 34px; }.run-environment dl { grid-template-columns: 1fr; }.run-environment dl > div { padding-block: 11px; border-top: 1px solid var(--border); }.run-timeline-event { grid-template-columns: 18px minmax(0, 1fr); }.timeline-duration { grid-column: 2; text-align: left; }.run-stopwatch { letter-spacing: -.055em; }
    .network-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }.network-summary > div:nth-child(2) { border-right: 0; }.network-summary > div:nth-child(-n+2) { border-bottom: 1px solid var(--border); }.network-provenance > dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }.network-disclosure-description { display: none; }
    .network-revision-picker { grid-template-columns: 1fr; }
    .network-request-disclosure > summary { grid-template-columns: 42px minmax(52px, auto) minmax(0, 1fr) 20px; gap: 8px; padding-inline: 10px; }
    .network-response-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .apk-dropzone { min-height: 160px; padding: 24px 18px; }.apk-upload-selection { align-items: stretch; flex-direction: column; }.apk-upload-selection .form-actions { justify-content: stretch; }.apk-upload-selection .button { width: 100%; }
    .emulator-drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 40; width: min(92vw, var(--emulator-width)); height: auto; }.content-mcp-start { display: inline-flex; }
    .consent-surface { padding: 24px; }.consent-details div { grid-template-columns: 1fr; gap: 3px; }.consent-permissions li { display: grid; gap: 4px; }.consent-permissions code { justify-self: start; }
}

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }.snapshot-progress-track::after { inset: 0; width: 58%; animation: none; } }
