@font-face {
  font-family: 'Host Grotesk';
  src: url('../fonts/host-grotesk.woff2') format('woff2');
  font-weight: 400 700;
  font-display: swap;
}
:root {
  color-scheme: light;
  font-family: 'Host Grotesk', system-ui, sans-serif;
  font-size: 16px;
  color: #17232f;
  background: #fff;
  --ink: #17232f;
  --hull: #122639;
  --foam: #f5f7f9;
  --line: #dce2e8;
  --control: #8291a0;
  --muted: #526173;
  --orange: #c74616;
  --mono: ui-monospace, SFMono-Regular, Menlo, monospace;
}
* { box-sizing: border-box; }
body { margin: 0; line-height: 1.55; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
a { color: inherit; text-decoration: none; text-underline-offset: 4px; }
button { cursor: pointer; border: 1px solid #b2bec9; background: #fff; border-radius: 8px; padding: 9px 18px; color: var(--ink); font-size: 15px; font-weight: 600; line-height: 24px; min-height: 44px; transition: background .15s, border-color .15s; }
button:hover { background: #edf1f5; border-color: #8191a0; }
button:disabled { cursor: not-allowed; opacity: .55; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
button.primary, button.accent { background: var(--hull); border-color: var(--hull); color: #fff; }
button.primary:hover, button.accent:hover { background: #28465f; border-color: #28465f; }
button.quiet { border-color: transparent; background: transparent; }
button.quiet:hover { background: #edf1f5; }
button.small { padding: 9px 12px; font-size: 14px; line-height: 20px; min-height: 40px; }
.text-button { border: 0; padding: 0; background: none; color: var(--hull); text-decoration: underline; border-radius: 2px; }
.danger { color: #a02e30 !important; }
.hidden { display: none !important; }
.skip { position: fixed; top: -90px; left: 20px; z-index: 20; padding: 10px; background: #fff; }
.skip:focus { top: 5px; }
.concept-bar { height: 42px; position: fixed; z-index: 10; inset: 0 0 auto; background: #edf1f5; border-bottom: 1px solid var(--line); color: #46576a; display: flex; align-items: center; justify-content: space-between; padding: 0 24px; font-size: 14px; }
.concept-bar > span { display: flex; align-items: center; gap: 12px; }
.concept-bar i { width: 6px; height: 6px; border-radius: 50%; background: var(--orange); }
.concept-note { border-left: 1px solid #aebbc7; padding-left: 12px; }
.concept-bar button { background: transparent; border: 0; font-size: 14px; padding: 4px 8px; min-height: 36px; color: #34485b; }
.concept-bar button span { margin-left: 8px; }
.sidebar { position: fixed; inset: 42px auto 0 0; width: 248px; padding: 32px 20px 24px; background: #f7f9fb; border-right: 1px solid var(--line); display: flex; flex-direction: column; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 28px; font-weight: 700; letter-spacing: -.04em; line-height: 1; padding-left: 4px; }
.dot { color: #a93b12; }
.tagline { font-size: 14px; color: var(--muted); margin: 12px 0 28px 33px; }
.project-avatar, .avatar { display: grid; place-items: center; width: 36px; height: 36px; flex-shrink: 0; border: 1px solid #b8c3ce; background: #fff; border-radius: 8px; font-weight: 600; }
.identity div span { display: block; color: var(--muted); font-size: 14px; margin-top: 2px; }
.nav-label, .eyebrow { font: 500 14px/1.5 'Host Grotesk', system-ui, sans-serif; color: var(--muted); letter-spacing: 0; text-transform: none; }
.nav-label { margin: 0 12px 12px; }
nav { display: grid; gap: 6px; }
nav a { display: flex; align-items: center; gap: 12px; padding: 12px; color: #415366; border-radius: 8px; font-size: 16px; font-weight: 500; min-height: 48px; }
nav a:hover { background: #edf1f5; }
nav a.active { background: transparent; color: var(--hull); font-weight: 650; }
nav a.active .nav-icon { stroke-width: 2; }
.nav-icon { width: 20px; height: 20px; stroke: currentColor; stroke-width: 1.6; fill: none; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.nav-icon circle { fill: #f7f9fb; }
.sidebar-bottom { margin-top: auto; padding-top: 48px; }
.identity { display: flex; align-items: center; gap: 12px; margin-top: 0; padding-top: 24px; border-top: 1px solid var(--line); }
.avatar { border-radius: 50%; font-size: 14px; background: #e9eef3; }
.identity strong { font-size: 14px; font-weight: 600; }
.identity div span { font-size: 14px; }
main { margin: 42px 0 0 248px; padding: 40px clamp(28px, 3.2vw, 52px) 32px; min-height: calc(100vh - 42px); max-width: 1680px; }
.page-head { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 32px; }
.page-head > div { min-width: 0; }
.page-head h1 { font-size: 36px; letter-spacing: -.035em; font-weight: 650; line-height: 1.15; margin: 7px 0 12px; overflow-wrap: anywhere; }
.page-head p { font-size: 16px; color: var(--muted); margin: 0; max-width: 640px; }
h2, h3 { letter-spacing: -.02em; line-height: 1.3; font-weight: 600; }
h2 { font-size: 24px; margin: 0 0 16px; }
h3 { font-size: 20px; margin: 0 0 8px; }
p { margin: 0 0 12px; }
.muted { color: var(--muted); }
.small-text { font-size: 14px; }
.mono { font-family: var(--mono); font-size: 14px; overflow-wrap: anywhere; }
.row { display: flex; align-items: center; gap: 12px; }
.between { justify-content: space-between; }
.wrap { flex-wrap: wrap; }
.gap-top { margin-top: 24px; }
.section-title { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.section-title h2 { font-size: 22px; margin: 0; }
.section-title p { margin: 8px 0 0; font-size: 16px; color: var(--muted); }
.section-title > button { flex-shrink: 0; }
.project-strip { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 32px; }
.project-strip > div { padding: 20px 24px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px 12px; }
.project-strip > div + div { border-left: 1px solid var(--line); }
.strip-label { font-size: 14px; color: var(--muted); }
.project-strip strong { font-size: 28px; font-weight: 600; letter-spacing: -.03em; grid-column: 1; grid-row: 2; }
.project-strip strong small { font-size: 16px; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.strip-note, .project-strip a { font-size: 14px; color: var(--muted); grid-column: 2; grid-row: 2; }
.project-strip a { color: #264762; text-decoration: underline; }
.filters { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 20px; }
.filters input { width: 256px; margin: 0; height: 44px; padding-block: 9px; font-size: 15px; line-height: 24px; }
.segmented { display: flex; gap: 5px; border: 1px solid var(--line); border-radius: 8px; padding: 3px; background: #f4f6f8; }
.segmented { flex-wrap: wrap; max-width: 100%; }
.segmented button { font-size: 15px; border: 1px solid transparent; background: transparent; padding: 6px 14px; min-height: 36px; font-weight: 500; border-radius: 5px; white-space: nowrap; }
.segmented button.active { background: #fff; border-color: #cbd4de; color: #162b3e; }
.apps-table { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.app-columns, .app-card { display: grid; grid-template-columns: minmax(205px, 1.4fr) 104px minmax(150px, 1fr) 130px 70px; gap: 16px; align-items: center; padding: 24px; }
.app-columns { background: #f7f9fb; padding-block: 13px; font-size: 14px; color: #4c5d6e; border-bottom: 1px solid var(--line); }
.app-card { min-height: 112px; background: #fff; }
.app-card + .app-card { border-top: 1px solid var(--line); }
.app-card:hover { background: #fafbfd; }
.app-identity { display: flex; align-items: center; gap: 16px; min-width: 0; }
.app-identity > div:last-child { min-width: 0; }
.app-name { border: 0; background: none; padding: 0; text-align: left; font-size: 18px; font-weight: 600; min-height: auto; border-radius: 2px; letter-spacing: -.015em; overflow-wrap: anywhere; }
.app-name:hover { background: none; color: #214e70; text-decoration: underline; text-underline-offset: 4px; }
.app-identity p { color: var(--muted); font-size: 14px; margin: 5px 0 0; }
.app-identity p span { margin-inline: 3px; }
.app-icon, .service-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 8px; background: #edf2f6; border: 1px solid #d0dbe5; color: #35516b; font: 16px var(--mono); flex-shrink: 0; }
.app-icon.task { background: #f1f3f5; color: #425264; }
.app-connections { display: grid; justify-items: start; gap: 5px; font-size: 14px; min-width: 0; overflow-wrap: anywhere; }
.connection-chip { display: inline-flex; align-items: center; gap: 7px; background: #f1f5f8; border: 1px solid #d3dde6; padding: 3px 9px; border-radius: 5px; font-size: 14px; color: #334d63; overflow-wrap: anywhere; max-width: 100%; }
.app-updated { font-size: 14px; color: var(--muted); }
.app-open { display: grid; place-items: center; justify-self: end; width: 40px; padding: 0 !important; }
.app-services { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; min-width: 0; }
.app-services .connection-chip { background: none; border: 0; padding: 0; line-height: 24px; color: var(--ink); }
.app-services .connection-chip + .connection-chip::before { content: '·'; color: var(--muted); }
.status { display: inline-flex; align-items: center; gap: 7px; padding: 4px 8px; border-radius: 6px; background: #edf6ef; color: #24603b; font-size: 14px; font-weight: 500; white-space: nowrap; }
.status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status.waiting { background: #fff4dd; color: #77510f; }
.status.neutral { background: #edf1f5; color: #40566a; }
.status.danger { background: #fbeaea; }
.panel { background: #f7f9fb; border: 1px solid var(--line); border-radius: 12px; padding: 24px; }
.panel h3 { font-size: 18px; }
.metric { margin: 20px 0; }
.metric .row { justify-content: space-between; font-size: 14px; margin-bottom: 10px; }
.meter { height: 6px; border-radius: 4px; background: #dfe6ed; overflow: hidden; }
.meter span { display: block; height: 100%; background: #4b6c88; border-radius: inherit; }
.summary-foot { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 20px; font-size: 14px; color: var(--muted); }
.summary-note { font-size: 14px; line-height: 1.65; color: var(--muted); margin: 20px 0; }
.breadcrumb { display: inline-flex; align-items: center; gap: 12px; color: #445c71; font-size: 15px; margin-bottom: 24px; }
.tabs { display: flex; gap: 32px; border-bottom: 1px solid var(--line); margin-bottom: 32px; overflow-x: auto; }
.tabs button { border: 0; border-radius: 0; padding: 0 0 14px; background: transparent; color: var(--muted); font-size: 16px; white-space: nowrap; font-weight: 500; }
.tabs button.active { color: var(--hull); box-shadow: inset 0 -3px var(--hull); }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; }
.box { border: 1px solid var(--line); border-radius: 12px; padding: 24px; margin-bottom: 24px; min-width: 0; }
.box p { color: var(--muted); font-size: 16px; }
.endpoint { border: 1px solid #c3ced8; border-radius: 8px; background: #f7f9fb; padding: 12px 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.endpoint code { font: 14px/1.6 var(--mono); overflow-wrap: anywhere; }
.endpoint button { flex-shrink: 0; }
.fact { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 15px; min-width: 0; }
.fact:last-child { border-bottom: 0; }
.fact span:first-child { color: var(--muted); }
.fact strong { font-weight: 500; text-align: right; overflow-wrap: anywhere; min-width: 0; }
.result { background: #142738; color: #eef4f8; border-radius: 8px; padding: 22px; font: 14px/1.8 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; margin-top: 20px; }
.log-lines { background: #142738; color: #e6eef5; border-radius: 12px; padding: 28px; font: 14px/2 var(--mono); overflow-x: auto; min-height: 300px; }
.log-lines .timestamp { color: #b1c4d4; margin-right: 18px; }
.log-lines .success { color: #a9ddb7; }
.deployment-progress { display: flex; align-items: center; gap: 16px; background: #f6f8fb; border: 1px solid #c8d4df; border-radius: 8px; padding: 20px 24px; margin-bottom: 26px; font-size: 16px; }
.deployment-progress .muted { font-size: 14px; margin-top: 4px; }
.spinner { width: 20px; height: 20px; border: 2px solid #c5d1dc; border-top-color: #234b6d; border-radius: 50%; animation: spin 1s linear infinite; flex-shrink: 0; }
@keyframes spin { to { transform: rotate(360deg); } }
.connection-row, .version-row, .service-row { display: flex; align-items: center; gap: 16px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.connection-row:last-child, .version-row:last-child, .service-row:last-child { border-bottom: 0; }
.connection-row .grow, .version-row .grow, .service-row .grow { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.connection-row p, .version-row p, .service-row p { font-size: 14px; color: var(--muted); margin: 6px 0 0; line-height: 1.65; }
.connection-row strong, .version-row strong, .service-row strong { font-size: 16px; font-weight: 600; }
.permission-note { border-left: 3px solid #59768f; padding: 8px 0 8px 18px; color: var(--muted); font-size: 14px; margin: 24px 0; max-width: 760px; }
.empty { padding: 48px 28px; background: #f7f9fb; border: 1px dashed #9baab8; border-radius: 8px; text-align: center; }
.apps-table .empty { border: 0; border-radius: 0; }
.empty p { color: var(--muted); font-size: 16px; }
.service-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.service-card { border: 1px solid var(--line); border-radius: 12px; padding: 24px; }
.service-card .service-icon { width: 44px; height: 44px; }
.service-card .row { margin-bottom: 24px; }
.service-card p { font-size: 16px; color: var(--muted); }
.service-card .fact { font-size: 15px; }
.service-card > button { margin-top: 24px; }
.notice { padding: 18px 20px; border: 1px solid #d0dbe5; border-radius: 8px; background: #f5f8fa; font-size: 14px; line-height: 1.65; color: #485b6d; margin: 22px 0; }
.usage-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.usage-value { font-size: 36px; letter-spacing: -.035em; margin: 24px 0 16px; }
.usage-value small { font-size: 16px; letter-spacing: 0; color: var(--muted); }
.bars { display: flex; align-items: flex-end; gap: 16px; height: 160px; border-bottom: 1px solid var(--line); margin-top: 28px; }
.bars div { flex: 1; background: #cbd8e4; border-radius: 4px 4px 0 0; }
.bars div:last-child { background: #355b7c; }
label { display: block; font-size: 16px; font-weight: 500; margin: 24px 0 9px; }
input, select, textarea { width: 100%; display: block; margin-top: 8px; border: 1px solid var(--control); border-radius: 8px; padding: 11px 14px; background: #fff; color: var(--ink); font-size: 16px; font-weight: 400; min-width: 0; line-height: 24px; }
input::placeholder { color: #5c6b7b; opacity: 1; }
input[type=checkbox] { width: 20px; height: 20px; margin: 0; accent-color: #193c59; }
textarea { min-height: 110px; resize: vertical; }
.field-help { font-size: 14px; color: var(--muted); margin-top: 10px; line-height: 1.65; overflow-wrap: anywhere; }
.error { color: #a32e2e; font-size: 15px; margin-top: 14px; }
.error:empty { display: none; }
.wizard-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; }
.steps { display: flex; gap: 16px; margin: 0 0 32px; padding: 0; list-style: none; counter-reset: step; border-bottom: 1px solid var(--line); }
.steps li { flex: 1; padding: 0 0 18px; font-size: 15px; color: var(--muted); position: relative; display: flex; align-items: center; gap: 10px; }
.steps li::before { counter-increment: step; content: counter(step); display: inline-grid; place-items: center; background: #f4f6f8; border: 1px solid #b5c2cd; border-radius: 50%; height: 28px; width: 28px; font-size: 14px; flex-shrink: 0; }
.steps li.current { color: var(--ink); font-weight: 600; box-shadow: 0 2px var(--hull); }
.steps li.current::before { background: var(--hull); border-color: var(--hull); color: #fff; }
.steps li.done::before { background: #eaf2ed; border-color: #9cbba7; color: #285c3e; }
.wizard-main { min-width: 0; }
.wizard-main h2 { font-size: 26px; margin-bottom: 10px; }
.wizard-main > p { color: var(--muted); font-size: 16px; }
.dropzone { border: 1px dashed #7f95a8; border-radius: 12px; background: #f7f9fb; padding: 38px 28px; text-align: center; margin: 28px 0; }
.dropzone.drag { border-color: #234f72; background: #eaf1f7; }
.dropzone .upload-icon { font-size: 24px; color: #3b5870; width: 48px; height: 48px; display: grid; place-items: center; margin: 0 auto 16px; }
.dropzone strong { display: block; font-size: 20px; font-weight: 600; }
.dropzone p { font-size: 16px; color: var(--muted); margin: 10px 0 24px; }
.dropzone .row { justify-content: center; }
.file-selected { display: flex; align-items: center; gap: 16px; background: #f2f7f4; border: 1px solid #b4cebf; padding: 20px; border-radius: 8px; margin-top: 26px; }
.file-selected > div { min-width: 0; overflow-wrap: anywhere; }
.file-selected strong { font-size: 16px; }
.file-selected p { font-size: 14px; margin: 5px 0 0; color: #48604f; }
.file-selected button { margin-left: auto; flex-shrink: 0; }
.choices { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 28px; }
.choice { border-radius: 12px; text-align: left; padding: 26px; position: relative; white-space: normal; font-weight: 400; }
.choice strong { display: block; font-size: 20px; margin: 22px 0 12px; }
.choice p { font-size: 16px; color: var(--muted); line-height: 1.6; margin: 0; }
.choice .choice-icon { font: 24px var(--mono); color: #3a5770; }
.choice.selected { border: 2px solid #274c6b; padding: 25px; background: #f4f8fb; }
.choice.selected::after { content: '✓'; position: absolute; right: 18px; top: 16px; color: #244e6d; font-size: 18px; }
.wizard-actions { display: flex; justify-content: space-between; border-top: 1px solid var(--line); margin-top: 32px; padding-top: 24px; gap: 20px; }
.wizard-summary { position: sticky; top: 66px; align-self: start; background: #f8fafb; }
.wizard-summary h3 { font-size: 20px; overflow-wrap: anywhere; }
.wizard-summary .fact { font-size: 14px; flex-direction: column; align-items: start; gap: 5px; padding: 16px 0; }
.wizard-summary .fact span:last-child { overflow-wrap: anywhere; }
.wizard-summary .fact strong { text-align: left; font-size: 15px; }
.summary-title { padding-bottom: 20px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.summary-title .gap-top { margin: 10px 0 0; }
.needs-section { padding: 32px 0; border-bottom: 1px solid var(--line); }
.needs-section:first-of-type { padding-top: 24px; }
.needs-section .row { flex-wrap: wrap; gap: 12px; }
.needs-section h3 { font-size: 20px; margin-bottom: 8px; }
.needs-section p { font-size: 16px; color: var(--muted); }
.needs-section p.field-help { font-size: 14px; }
.check-row { display: flex; align-items: center; gap: 16px; border: 1px solid #aebdca; padding: 18px; border-radius: 8px; margin-top: 14px; font-size: 16px; font-weight: 500; cursor: pointer; }
.check-row:has(input:checked) { border-color: #345d7b; background: #f0f5f9; }
.check-row small { color: var(--muted); font-weight: 400; display: block; font-size: 14px; margin-top: 4px; }
.check-row input { flex-shrink: 0; }
.inline-input { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.inline-input input { margin: 0; }
.inline-input button { flex-shrink: 0; }
.config-row { display: grid; grid-template-columns: 1fr 1fr 40px; gap: 12px; align-items: center; margin-top: 14px; }
.config-row input { margin: 0; font-size: 16px; }
.config-row button { padding: 4px; border: 0; font-size: 20px; }
.config-key { font-family: var(--mono); font-size: 14px; }
.sizes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 20px; }
.size { border-radius: 8px; text-align: left; padding: 16px; font-size: 16px; }
.size.selected { border: 2px solid #274c6b; padding: 15px; background: #f0f5f9; }
.size span { display: block; color: var(--muted); font-size: 14px; font-weight: 400; margin-top: 8px; }
details { margin-top: 22px; }
summary { cursor: pointer; font-size: 15px; color: #37536a; padding-block: 4px; }
.review-section { border: 1px solid var(--line); border-radius: 12px; margin-top: 24px; padding: 24px; }
.review-section h3 { font-size: 20px; }
.review-section .fact { font-size: 16px; }
.review-section .fact span:last-child, .review-section .fact strong { max-width: 65%; text-align: right; overflow-wrap: anywhere; }
.review-section p { font-size: 16px; color: var(--muted); margin: 14px 0 0; }
.bullet-check { color: #286440; margin-right: 8px; }
dialog { border: 1px solid #bdcad5; border-radius: 12px; padding: 32px; width: 580px; max-width: calc(100vw - 32px); max-height: calc(100dvh - 32px); overflow: auto; color: var(--ink); box-shadow: 0 20px 80px #10263d33; }
dialog::backdrop { background: #182a3d70; backdrop-filter: blur(2px); }
.modal-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 24px; }
.modal-head h2 { font-size: 26px; margin: 0; }
.modal-head button { border: 1px solid var(--line); padding: 0; background: #fff; font-size: 24px; width: 44px; height: 44px; min-height: 44px; line-height: 1; flex-shrink: 0; }
.modal-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
dialog > div > p { font-size: 16px; color: var(--muted); }
#toast { display: flex; align-items: center; gap: 16px; position: fixed; bottom: 24px; right: 24px; z-index: 30; background: #17324a; color: #fff; border: 1px solid #486982; border-radius: 8px; padding: 16px 22px; box-shadow: 0 6px 24px #10263d26; font-size: 15px; max-width: min(480px, calc(100vw - 48px)); }
#toast:empty { display: none; }
.settings-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(320px, 1fr); gap: 24px; align-items: start; }
.settings-grid .box { width: 100%; max-width: none; }
.settings-grid .box input, .settings-grid .box select { max-width: none; width: 100%; }
.empty-result { padding: 24px; color: var(--muted); }
@media (max-width: 1250px) {
  .sidebar { width: 228px; padding-inline: 16px; }
  main { margin-left: 228px; padding: 34px 28px; }
  .app-columns, .app-card { grid-template-columns: minmax(190px, 1.4fr) 102px minmax(140px, 1fr) 65px; gap: 14px; padding-inline: 20px; }
  .app-columns > span:nth-child(4), .app-updated { display: none; }
  .project-strip > div { grid-template-columns: 1fr; padding: 18px 20px; }
  .strip-note, .project-strip a { grid-column: 1; grid-row: 3; }
  .wizard-layout { grid-template-columns: minmax(0, 1fr) 250px; gap: 28px; }
  .wizard-summary { padding: 20px; }
  .detail-grid { grid-template-columns: minmax(0, 1fr) 250px; gap: 22px; }
  .sizes { grid-template-columns: 1fr; gap: 10px; }
  .size span { display: inline; margin-left: 16px; }
}
@media (max-width: 1050px) {
  .wizard-layout, .detail-grid { grid-template-columns: 1fr; }
  .wizard-summary { display: none; }
  .page-head { align-items: flex-start; }
  .app-columns, .app-card { grid-template-columns: minmax(190px, 1fr) 102px 64px; }
  .app-columns > span:nth-child(3), .app-connections { display: none; }
  .service-cards { grid-template-columns: 1fr; }
  .usage-value small { display: block; margin-top: 4px; }
  .settings-grid { grid-template-columns: 1fr; }
}
@media (min-width: 761px) and (max-width: 920px) {
  .sidebar { position: static; width: auto; margin-top: 42px; padding: 24px; border-right: 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 24px; }
  .sidebar .brand { margin: 0; padding: 0; }
  .sidebar .tagline, .sidebar .nav-label, .sidebar .sidebar-bottom { display: none; }
  .sidebar nav { display: flex; justify-content: flex-end; gap: 8px; }
  .sidebar nav a { padding: 10px 12px; }
  main { margin-left: 0; margin-top: 0; padding: 32px 24px; min-height: calc(100vh - 144px); }
  .usage-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .usage-value small { display: block; margin-top: 4px; }
}
@media (max-width: 760px) {
  .usage-grid { grid-template-columns: 1fr; }
  .concept-bar { padding: 0 16px; height: 42px; font-size: 14px; }
  .concept-note { display: none; }
  .sidebar { position: static; width: auto; margin-top: 42px; padding: 24px 20px 12px; border-right: 0; border-bottom: 1px solid var(--line); }
  .tagline, .nav-label, .sidebar-bottom { display: none; }
  .brand { font-size: 28px; margin-bottom: 24px; }
  .sidebar nav { display: flex; gap: 4px; justify-content: space-between; }
  .sidebar nav a { padding: 10px; font-size: 16px; gap: 8px; min-height: 46px; }
  .nav-icon { width: 18px; height: 18px; }
  main { margin: 0; padding: 32px 20px; min-height: 0; }
  .page-head { margin-bottom: 28px; flex-wrap: wrap; gap: 24px; }
  .page-head h1 { font-size: 32px; }
  .page-head .row { flex-wrap: wrap; }
  .page-head p { font-size: 16px; }
  .project-strip { margin-bottom: 28px; }
  .project-strip > div { padding: 16px; }
  .project-strip strong { font-size: 24px; }
  .strip-note, .project-strip a { font-size: 14px; }
  .filters { gap: 16px; }
  .filters input { width: 100%; font-size: 16px; }
  .app-columns { display: none; }
  .app-card { grid-template-columns: minmax(0, 1fr) auto; gap: 18px 12px; padding: 24px 20px; }
  .app-identity { grid-column: 1 / -1; gap: 12px; }
  .app-connections { display: grid; grid-column: 1 / -1; grid-row: 3; }
  .app-state { grid-column: 1; grid-row: 2; }
  .app-open { grid-column: 2; grid-row: 2; }
  .app-name { font-size: 20px; }
  .app-identity p { font-size: 14px; }
  .steps { gap: 12px; margin-bottom: 28px; }
  .steps li { font-size: 14px; align-items: flex-start; flex-direction: column; padding-bottom: 14px; gap: 10px; }
  .wizard-main h2 { font-size: 24px; }
  .choices { grid-template-columns: 1fr; }
  .choice { padding: 24px; }
  .choice.selected { padding: 23px; }
  .choice strong { margin-top: 16px; }
  .sizes { grid-template-columns: 1fr; }
  .size { padding: 18px; }
  .size.selected { padding: 17px; }
  .size span { display: inline; font-size: 14px; margin-left: 16px; }
  .config-row { grid-template-columns: 1fr 40px; }
  .config-row input:nth-child(2) { grid-row: 2; }
  .config-row button { grid-column: 2; grid-row: 1 / span 2; }
  .connection-row, .service-row { flex-wrap: wrap; gap: 14px; }
  .connection-row .grow { min-width: 0; }
  .version-row { flex-wrap: wrap; }
  .tabs { gap: 24px; }
  .tabs button { font-size: 16px; }
  .endpoint { flex-wrap: wrap; }
  .box, .service-card { padding: 20px; }
  .section-title { flex-wrap: wrap; }
  #toast { left: 16px; right: 16px; bottom: 16px; width: auto; max-width: none; font-size: 15px; }
  .inline-input { gap: 10px; }
  dialog { padding: 24px; }
  .modal-head h2 { font-size: 24px; }
  .review-section { padding: 20px; }
  .review-section .fact { flex-direction: column; align-items: flex-start; gap: 6px; }
  .review-section .fact span:last-child, .review-section .fact strong { text-align: left; max-width: 100%; }
  .file-selected { flex-wrap: wrap; }
  .file-selected .service-icon { display: none; }
  .dropzone { padding: 28px 20px; }
}
@media (max-width: 430px) {
  .nav-icon { display: none; }
  .sidebar nav a { padding-inline: 8px; }
  .project-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .project-strip > div { padding: 14px 12px; gap: 8px; }
  .project-strip .strip-note, .project-strip a { display: none; }
  .project-strip strong { font-size: 24px; }
  .project-strip strong small { font-size: 14px; }
  .needs-section .between > .row { gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation-duration: 0s !important; }
  .spinner { border-color: #234b6d; }
}

/* Shared component alignment and interaction states. */
.ui-icon { display: block; width: 20px; height: 20px; stroke: currentColor; stroke-width: 1.6; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.upload-icon .ui-icon, .choice-icon .ui-icon { width: 28px; height: 28px; }
h1:focus, .wizard-main h2:focus { outline: none; }
h2, h3 { overflow-wrap: anywhere; }
input:hover, select:hover, textarea:hover { border-color: #4d677e; }
button:active:not(:disabled) { transform: translateY(1px); }
button:focus-visible, a:focus-visible { scroll-margin: 80px; }
.tabs { padding-top: 4px; }
.tabs button:focus-visible { outline-offset: -3px; border-radius: 4px 4px 0 0; }
.settings-actions { border-top: 1px solid var(--line); margin-top: 28px; padding-top: 24px; display: flex; justify-content: flex-start; }
.member-row { display: flex; align-items: center; gap: 12px; padding-block: 24px; border-block: 1px solid var(--line); margin-top: 24px; }
.member-row > div { flex: 1; min-width: 0; }
.member-row strong { display: block; font-size: 16px; font-weight: 600; }
.member-row > div > span { display: block; color: var(--muted); font-size: 14px; margin-top: 4px; }
.member-label { font-size: 14px; color: var(--muted); }
.workspace-access .notice { margin-bottom: 0; }
.chart-labels { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 16px; margin-top: 16px; font-size: 14px; color: var(--muted); text-align: center; }
.usage-grid .panel > p:last-child { margin-bottom: 0; }
.inline-input > button { min-height: 48px; }
.connection-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto auto; align-items: center; }
.connection-row > .grow { min-width: 0; }
.connection-row > .status { justify-self: start; }
#toast button { min-width: 36px; width: 36px; height: 36px; min-height: 36px; padding: 0; background: transparent; border: 0; color: #fff; font-size: 22px; flex-shrink: 0; }
#toast button:hover { background: #ffffff1a; }
#toast-message { min-width: 0; }
@media (max-width: 620px) {
  .connection-row { grid-template-columns: 40px minmax(0, 1fr) auto; gap: 16px 12px; }
  .connection-row > .service-icon { align-self: start; grid-column: 1; grid-row: 1; }
  .connection-row > .grow { grid-column: 2 / -1; grid-row: 1; }
  .connection-row > .status { grid-column: 2; grid-row: 2; }
  .connection-row > button { grid-column: 3; grid-row: 2; }
  .chart-labels, .bars { gap: 8px; }
  .modal-head h2 { font-size: 24px; }
  .section-title { gap: 16px; }
}

.page-head p, .breadcrumb, .review-section p { overflow-wrap: anywhere; }
.needs-section:last-of-type { border-bottom: 0; padding-bottom: 0; }

/* Share primary and secondary tracks across desktop table cells. */
@media (min-width: 761px) {
  .app-card { grid-template-rows: minmax(32px, auto) auto; row-gap: 4px; align-items: center; }
  .app-identity { grid-column: 1; grid-row: 1 / span 2; display: grid; grid-template-columns: 40px minmax(0, 1fr); grid-template-rows: subgrid; column-gap: 16px; row-gap: inherit; }
  .app-identity > div:last-child { display: contents; }
  .app-identity .app-icon { grid-column: 1; grid-row: 1 / span 2; }
  .app-name { grid-column: 2; grid-row: 1; line-height: 24px; }
  .app-identity p { grid-column: 2; grid-row: 2; margin: 0; line-height: 24px; }
  .app-state { grid-column: 2; grid-row: 1 / span 2; }
  .app-state .status { line-height: 20px; }
  .app-connections { grid-column: 3; grid-row: 1 / span 2; grid-template-rows: subgrid; row-gap: inherit; align-items: center; line-height: 24px; }
  .app-connections > .app-services:only-child { grid-row: 1 / -1; }
  .app-updated { grid-column: 4; grid-row: 1 / span 2; line-height: 24px; }
  .app-open { grid-column: -2; grid-row: 1 / span 2; padding-block: 3px; min-height: 32px; line-height: 24px; }
}
@media (hover: hover) and (pointer: fine) {
  .app-open { opacity: 0; pointer-events: none; transition: opacity .15s, background .15s; }
  .app-card:hover .app-open, .app-card:focus-within .app-open { opacity: 1; pointer-events: auto; }
}

.trigger-options { display: grid; gap: 12px; margin-top: 28px; }
.trigger-option { display: grid; grid-template-columns: 20px 24px minmax(0, 1fr); align-items: center; gap: 16px; padding: 20px; margin: 0; border: 1px solid #aebdca; border-radius: 8px; cursor: pointer; }
.trigger-option.selected { border-color: #345d7b; background: #f0f5f9; }
.trigger-option.unavailable { background: #f7f9fb; cursor: default; }
.trigger-option strong { font-size: 18px; font-weight: 600; }
.trigger-description, .trigger-requirement { display: block; margin-top: 6px; font-size: 14px; font-weight: 400; color: var(--muted); overflow-wrap: anywhere; }
.trigger-requirement { color: #77510f; }
.trigger-option-icon { color: #35516b; }
.schedule-fields { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.schedule-fields h3 { margin-bottom: 0; }
.schedule-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.trigger-list { display: grid; gap: 20px; }
.trigger-card { border: 1px solid var(--line); border-radius: 12px; padding: 24px; }
.trigger-card-title { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 16px; }
.trigger-card h3 { margin: 0; font-size: 20px; }
.trigger-card p { color: var(--muted); font-size: 15px; margin: 6px 0 0; overflow-wrap: anywhere; }
.trigger-card-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; margin: 20px 0 0 56px; }
.run-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.run-row:last-child { border-bottom: 0; padding-bottom: 0; }
.run-row:first-child { padding-top: 0; }
.run-row > div { min-width: 0; }
.run-row strong { display: block; font-size: 16px; font-weight: 600; }
.run-row .small-text { display: block; margin-top: 6px; }
.workspace-context { padding: 24px 0; border-block: 1px solid var(--line); margin-bottom: 24px; }
.workspace-identity { display: flex; align-items: center; gap: 12px; padding-inline: 4px; }
.workspace-identity > div { min-width: 0; }
.workspace-identity strong { display: block; font-size: 16px; overflow-wrap: anywhere; }
.context-label { display: block; font-size: 14px; color: var(--muted); }
.workspace-context label { font-size: 14px; color: var(--muted); margin: 20px 4px 8px; }
.project-controls { display: flex; align-items: center; gap: 8px; }
.project-picker { position: relative; flex: 1; min-width: 0; }
.project-controls select { appearance: none; -webkit-appearance: none; margin: 0; height: 44px; padding: 9px 34px 9px 12px; border-color: var(--line); border-radius: 6px; background: #fff; font-size: 16px; font-weight: 500; text-overflow: ellipsis; cursor: pointer; }
.project-controls svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.project-picker > svg { position: absolute; right: 10px; top: 12px; pointer-events: none; color: var(--muted); }
.project-controls select:hover { border-color: #a5b3c0; }
.project-controls button { display: grid; place-items: center; flex: 0 0 40px; width: 40px; height: 44px; padding: 0; border-radius: 6px; color: var(--muted); }
.project-controls :focus-visible { outline: 2px solid #345d7b; outline-offset: -2px; }
.project-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.project-row:last-child { border-bottom: 0; padding-bottom: 0; }
.project-row strong { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-size: 16px; font-weight: 600; overflow-wrap: anywhere; }
.project-row p { font-size: 14px; margin: 6px 0 0; }
.project-row > div { min-width: 0; }
.project-row > button, .project-row > span { flex-shrink: 0; }
.default-project { font-size: 14px; color: var(--muted); font-weight: 400; }
@media (min-width: 761px) and (max-width: 920px) {
  .workspace-context { grid-column: 1 / -1; grid-row: 2; display: grid; grid-template-columns: 1fr auto minmax(200px, 1fr); align-items: center; gap: 16px; margin: 0; padding: 20px 0 0; border-bottom: 0; }
  .workspace-context label { margin: 0; }
}
@media (max-width: 760px) {
  .workspace-context { margin-bottom: 16px; padding: 20px 0; }
  .workspace-context label { margin-top: 16px; }
}
@media (max-width: 620px) {
  .schedule-grid { grid-template-columns: 1fr; gap: 0; }
  .trigger-option { grid-template-columns: 20px minmax(0, 1fr); padding: 16px; gap: 12px; }
  .trigger-option-icon { display: none; }
  .trigger-card { padding: 20px; }
  .trigger-card-title { grid-template-columns: 40px minmax(0, 1fr); }
  .trigger-card-title > .status { grid-column: 2; justify-self: start; }
  .trigger-card-actions { margin-left: 0; }
  .run-row { flex-wrap: wrap; }
  .project-row { flex-wrap: wrap; }
}
