:root {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #1b2838;
  background: #f4f6f8;
  font-synthesis: none;
  --ink: #1b2838;
  --muted: #65758b;
  --line: #dce2e8;
  --nav: #172d3f;
  --nav-hover: #24465d;
  --blue: #1769aa;
  --green: #13795b;
  --amber: #a05a00;
  --red: #b42318;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 3px solid #f5a623; outline-offset: 2px; }

.shell { min-height: 100vh; display: grid; grid-template-columns: 240px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; z-index: 5; display: flex; flex-direction: column; gap: 18px; padding: 20px 14px; color: #d8e4ec; background: var(--nav); }
.brand { display: flex; align-items: center; gap: 11px; padding: 0 8px; color: #fff; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 7px; background: #f5bd45; color: #172d3f; font-weight: 900; }
.brand strong, .brand small { display: block; letter-spacing: 0; }
.brand strong { font-size: 15px; }
.brand small { margin-top: 2px; color: #9db3c2; font-size: 10px; font-weight: 500; }
.environment { display: flex; justify-content: space-between; align-items: center; margin: 0 7px; padding: 9px 10px; border: 1px solid #36566b; border-radius: 6px; background: #1d394d; font-size: 11px; }
.dot { display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: #48c78e; }
.nav { min-height: 0; overflow-y: auto; }
.nav-group + .nav-group { margin-top: 15px; }
.nav-label { padding: 0 10px 5px; color: #829bad; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.nav-item { width: 100%; min-height: 40px; padding: 9px 10px; border: 0; border-radius: 6px; color: #c9d7e0; background: transparent; text-align: left; }
.nav-item:hover, .nav-item.active { color: #fff; background: var(--nav-hover); }
.nav-item.active { box-shadow: inset 3px 0 #f5bd45; }
.sidebar-foot { display: grid; grid-template-columns: 1fr auto; gap: 9px 6px; align-items: center; margin-top: auto; padding: 14px 7px 0; border-top: 1px solid #36566b; color: #9db3c2; font-size: 11px; }

.main { min-width: 0; }
.topbar { position: sticky; top: 0; z-index: 4; min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 9px 28px; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .97); }
.topbar > div:first-of-type b, .topbar > div:first-of-type span { display: block; }
.topbar > div:first-of-type b { font-size: 14px; }
.topbar > div:first-of-type span { margin-top: 2px; color: var(--muted); font-size: 11px; }
.top-actions, .actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.identity { min-height: 38px; display: flex; align-items: center; gap: 9px; padding: 5px 10px; border: 1px solid var(--line); border-radius: 6px; color: var(--ink); background: #fff; }
.identity span { padding: 3px 6px; border-radius: 4px; color: #36566b; background: #edf3f6; font-size: 10px; }
.identity b { max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.mobile-menu { display: none; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 5px; background: #fff; }
.content { width: min(1540px, 100%); margin: 0 auto; padding: 27px; }

.page-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
h1, h2, h3, p { letter-spacing: 0; }
h1 { margin: 0; color: #142838; font-size: 28px; line-height: 1.2; }
h2 { margin: 0; color: #142838; font-size: 17px; line-height: 1.35; }
h3 { margin: 0; color: #263b4a; font-size: 13px; }
p { line-height: 1.55; }
.page-title p, .panel-head p { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.btn, .link-btn { min-height: 36px; display: inline-flex; align-items: center; justify-content: center; padding: 8px 12px; border: 1px solid #b8c4cd; border-radius: 5px; color: #263b4a; background: #fff; font-size: 12px; font-weight: 750; }
.btn:hover { background: #f1f5f7; border-color: #728394; }
.btn.primary { color: #fff; border-color: var(--blue); background: var(--blue); }
.btn.primary:hover { background: #10598f; }
.link-btn { min-height: auto; padding: 4px; border: 0; color: var(--blue); background: transparent; }

.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.metric { min-height: 124px; padding: 17px; border: 1px solid var(--line); border-top: 3px solid #3b718f; border-radius: 6px; background: #fff; }
.metric.warning { border-top-color: #d88a20; }
.metric > span, .metric > small, td small { display: block; }
.metric > span { color: var(--muted); font-size: 11px; font-weight: 700; }
.metric > strong { display: block; margin: 12px 0 7px; color: #142838; font-size: 26px; }
.metric > small { color: var(--muted); font-size: 11px; line-height: 1.4; }
.panel { min-width: 0; padding: 19px; border: 1px solid var(--line); border-radius: 7px; background: #fff; box-shadow: 0 1px 2px rgba(20, 40, 56, .035); }
.panel + .panel { margin-top: 14px; }
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.split, .governance-layout, .studio-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(330px, .72fr); gap: 14px; align-items: start; }
.split > *, .governance-layout > *, .studio-grid > * { min-width: 0; }
.split.wide-left { grid-template-columns: minmax(0, 1.3fr) minmax(430px, .7fr); }
.split > .panel + .panel, .governance-layout > .panel + .panel, .studio-grid > .panel + .panel { margin-top: 0; }
hr { margin: 18px 0; border: 0; border-top: 1px solid #e8ecef; }

.table-wrap { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 12px; }
th { padding: 8px 9px; border-bottom: 1px solid var(--line); color: var(--muted); text-align: left; text-transform: uppercase; white-space: nowrap; font-size: 10px; letter-spacing: .05em; }
td { padding: 12px 9px; border-bottom: 1px solid #edf0f2; vertical-align: top; }
tr:last-child td { border-bottom: 0; }
tr.clickable { cursor: pointer; }
tr.clickable:hover { background: #f5f9fb; }
td small { margin-top: 4px; color: var(--muted); line-height: 1.45; }
code { font: 10px/1.45 ui-monospace, SFMono-Regular, Consolas, monospace; color: #37566b; overflow-wrap: anywhere; }
.progress { width: 90px; height: 6px; overflow: hidden; border-radius: 4px; background: #e4eaee; }
.progress span { display: block; height: 100%; background: var(--green); }
.status { display: inline-flex; align-items: center; width: fit-content; padding: 3px 7px; border-radius: 4px; font-size: 10px; font-weight: 800; white-space: nowrap; }
.status.good { color: #0e6048; background: #dff5ec; }
.status.warn { color: #8a4d00; background: #fff1d6; }
.status.bad { color: #9b2117; background: #fde8e6; }
.status.neutral { color: #526272; background: #edf1f4; }

.release-summary > div { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.release-summary dl, .case-summary dl { display: grid; grid-template-columns: 1fr 1.2fr; gap: 8px 12px; margin: 16px 0 0; font-size: 11px; }
dt { color: var(--muted); }
dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.attention-list { display: flex; flex-direction: column; margin-top: 10px; }
.attention-list button { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; padding: 10px 0; border: 0; border-bottom: 1px solid #edf0f2; background: transparent; text-align: left; font-size: 11px; }
.empty-inline { margin: 12px 0; color: var(--muted); font-size: 12px; }
.empty { min-height: 280px; display: grid; align-content: center; justify-items: center; padding: 30px; text-align: center; }
.empty h1, .empty h2 { margin-bottom: 5px; }
.empty p { max-width: 560px; margin: 5px 0 17px; color: var(--muted); font-size: 13px; }

.conversation-layout { min-height: 650px; display: grid; grid-template-columns: 310px minmax(0, 1fr); overflow: hidden; border: 1px solid var(--line); border-radius: 7px; background: #fff; }
.conversation-list { border-right: 1px solid var(--line); }
.section-toolbar { padding: 12px; border-bottom: 1px solid var(--line); }
.section-toolbar input { width: 100%; }
.conversation-row { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; padding: 13px; border: 0; border-bottom: 1px solid #edf0f2; background: #fff; text-align: left; }
.conversation-row:hover, .conversation-row.selected { background: #eef6fa; }
.conversation-row > span { min-width: 0; }
.conversation-row > span:last-child { display: grid; justify-items: end; gap: 6px; }
.conversation-row b, .conversation-row small { display: block; overflow: hidden; text-overflow: ellipsis; }
.conversation-row small { margin-top: 4px; color: var(--muted); font-size: 10px; }
.conversation-main { min-width: 0; }
.conversation-header { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.conversation-header p { margin: 3px 0 0; color: var(--muted); font-size: 11px; }
.conversation-body { display: grid; grid-template-columns: minmax(0, 1fr) 290px; min-height: 576px; }
.message-stream { display: flex; flex-direction: column; gap: 11px; padding: 18px; background: #f8fafb; }
.message { max-width: min(72%, 620px); padding: 10px 12px; border: 1px solid #dbe2e7; border-radius: 7px; background: #fff; }
.message.ai, .message.agent { align-self: flex-end; border-color: #bcd8e8; background: #eaf5fa; }
.message.agent { border-color: #bde2d2; background: #e8f7f1; }
.message small, .message time { color: var(--muted); font-size: 9px; }
.message p { margin: 4px 0; font-size: 12px; }
.case-summary { padding: 17px; border-left: 1px solid var(--line); }
.case-summary h3 { margin: 0 0 11px; }
.case-summary h3:not(:first-child) { margin-top: 22px; }
.case-summary > p { margin: 0 0 12px; font-size: 11px; }
.case-summary > p small { display: block; margin-top: 3px; color: var(--muted); }

input, textarea, select { width: 100%; padding: 9px 10px; border: 1px solid #b8c4cd; border-radius: 5px; color: var(--ink); background: #fff; }
textarea { min-height: 86px; resize: vertical; line-height: 1.5; }
label { display: grid; gap: 6px; color: #405465; font-size: 11px; font-weight: 750; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.form-grid .full { grid-column: 1 / -1; }
.campaign-group { padding: 10px 0 4px; border-top: 1px solid #e2e8ec; }
.campaign-group:first-child { border-top: 0; padding-top: 0; }
.campaign-group h3 { margin: 0 0 8px; font-size: 13px; color: #244052; }
.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.check-card { display: flex; align-items: flex-start; gap: 8px; padding: 8px 9px; border: 1px solid #d8e0e5; border-radius: 6px; background: #fbfcfd; font-size: 12px; line-height: 1.35; cursor: pointer; }
.check-card:hover { border-color: #1d6b55; background: #f1f8f5; }
.check-card input { margin-top: 2px; accent-color: #1d6b55; }
.check-field { display: flex !important; align-items: center; gap: 10px; min-height: 42px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 6px; background: #f8fafc; }
.check-field input { width: 18px !important; height: 18px !important; margin: 0; flex: 0 0 auto; }
.check-field span { color: var(--ink); font-weight: 650; }
.readiness-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.check-list { display: flex; flex-direction: column; gap: 0; margin: 0; padding: 0; list-style: none; }
.check-list li { padding: 11px 0; border-bottom: 1px solid #edf0f2; }
.check-list b, .check-list span { display: block; }
.check-list span { margin-top: 4px; color: var(--muted); font-size: 11px; line-height: 1.45; }
.version-row, .price-row, .check-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid #edf0f2; font-size: 11px; }
.version-row small, .price-row small, .check-row small { display: block; margin-top: 3px; color: var(--muted); }
.price-row > span:last-child { display: grid; justify-items: end; }
.price-missing { color: #8a5b00; font-weight: 700; }
.calc-line { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; padding: 8px 0; border-bottom: 1px solid #edf0f2; font-size: 10px; }
.calc-line small { display: block; margin-top: 3px; color: var(--muted); }
.calc-line > b { text-align: right; }
.price-version-toolbar { display: grid; grid-template-columns: minmax(260px, .8fr) minmax(200px, 1fr) auto; align-items: end; gap: 12px; margin-bottom: 14px; padding: 11px; border: 1px solid var(--line); border-radius: 5px; background: #f8fafb; }
.price-version-toolbar label { display: grid; gap: 4px; color: var(--muted); font-size: 10px; font-weight: 700; }
.price-version-toolbar select { height: 35px; padding: 0 9px; border: 1px solid var(--line); border-radius: 4px; background: white; }
.price-version-toolbar > span { align-self: center; color: var(--muted); font-size: 11px; }
.survey-table td { vertical-align: top; }
.survey-table td:first-child, .survey-table td:nth-child(2) { min-width: 190px; }
.survey-table td:last-child { min-width: 175px; }
.survey-table td small { display: block; margin-top: 5px; color: var(--muted); }
.survey-scope { display: block; max-width: 300px; line-height: 1.45; }
.brief-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 18px 0; }
.brief-grid > div { display: grid; gap: 4px; padding: 11px; border: 1px solid var(--line); border-radius: 5px; background: #f8fafb; }
.brief-grid small { color: var(--muted); }
.brief-list { margin-bottom: 18px; border-top: 1px solid var(--line); }
.brief-list > div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.brief-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.brief-tags span { padding: 4px 7px; border-radius: 4px; color: #526272; background: #edf1f4; font-size: 11px; }
.brief-notes { padding-left: 18px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.callout { margin-top: 17px; padding: 13px; border-left: 3px solid #d88a20; background: #fff8e9; }
.callout p { margin: 4px 0 0; color: #6f531f; font-size: 11px; }

.preview-column { min-width: 0; }
.preview-panel { padding: 14px; border-top: 3px solid #1769aa; }
.preview-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.preview-head p { margin: 3px 0 0; color: var(--muted); font-size: 10px; }
.icon-control { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid #b8c4cd; border-radius: 5px; color: #36566b; background: #fff; font-size: 20px; line-height: 1; }
.icon-control:hover { border-color: #728394; background: #f1f5f7; }
.preview-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 13px 0 10px; }
.segmented { display: inline-flex; padding: 2px; border: 1px solid #c8d1d8; border-radius: 5px; background: #edf1f4; }
.segmented button { min-height: 30px; padding: 5px 10px; border: 0; border-radius: 3px; color: #5a6b79; background: transparent; font-size: 10px; font-weight: 800; }
.segmented button.active { color: #173347; background: #fff; box-shadow: 0 1px 3px rgba(20, 40, 56, .13); }
.preview-note { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 9px; color: #546675; font-size: 9px; }
.preview-note span { display: flex; align-items: center; gap: 5px; }
.preview-note i { width: 7px; height: 7px; border-radius: 50%; background: #d88a20; }
.preview-note b { padding: 3px 6px; border-radius: 3px; color: #0e6048; background: #dff5ec; }
.preview-versions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; margin-bottom: 9px; }
.preview-versions label { display: grid; gap: 3px; color: var(--muted); font-size: 9px; font-weight: 700; }
.preview-versions select { min-width: 0; height: 30px; padding: 0 6px; border: 1px solid var(--line); border-radius: 4px; color: var(--ink); background: white; font-size: 10px; }
.preview-stage { width: 100%; min-height: 320px; display: grid; place-items: start center; overflow: hidden; padding: 10px; border: 1px solid #ccd5dc; border-radius: 6px; background: #e8edf0; }
.preview-stage.device-mobile { min-height: 740px; background: #dfe6ea; }
.preview-stage.device-desktop { align-content: center; min-height: 390px; }
.preview-frame-wrap { position: relative; overflow: hidden; border: 1px solid #8595a2; border-radius: 5px; background: #fff; box-shadow: 0 7px 20px rgba(20, 40, 56, .16); }
.device-mobile .preview-frame-wrap { border-width: 5px; border-color: #253746; border-radius: 16px; }
.preview-frame-wrap iframe { display: block; border: 0; transform-origin: top left; background: #fff; }
.preview-trace { margin-top: 9px; padding: 10px; border: 1px solid var(--line); border-radius: 5px; background: #f8fafb; font-size: 10px; }
.preview-trace-head { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 7px; }
.preview-trace-head span { color: var(--muted); }
.preview-trace dl { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 5px 9px; margin: 0; }
.preview-trace dt { color: var(--muted); }
.preview-trace dd { margin: 0; overflow-wrap: anywhere; }
.preview-trace code { font-size: 9px; }
.trace-result { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 7px; margin-top: 9px; padding-top: 8px; border-top: 1px solid var(--line); }
.trace-result small { grid-column: 1 / -1; color: var(--muted); }
.preview-foot { display: flex; justify-content: space-between; gap: 10px; margin-top: 9px; color: var(--muted); font-size: 9px; }
.preview-foot > span:last-child { display: flex; gap: 10px; align-items: center; }
.preview-foot a { color: var(--blue); font-weight: 800; }
.compact-release { margin-top: 14px; }

.release-pipeline { display: grid; grid-template-columns: auto 1fr auto 1fr auto 1fr auto 1fr auto; align-items: center; gap: 10px; font-size: 11px; font-weight: 800; }
.release-pipeline span { padding: 8px 10px; border: 1px solid var(--line); border-radius: 5px; background: #f8fafb; }
.release-pipeline i { height: 2px; background: #c9d2d9; }
.control-list article { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 13px; padding: 15px 0; border-bottom: 1px solid #e8ecef; }
.control-list article:first-child { padding-top: 0; }
.control-list article:last-child { border-bottom: 0; }
.control-list article > div > small { color: var(--blue); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.control-list h3 { margin-top: 5px; }
.control-list p { margin: 5px 0; color: var(--muted); font-size: 11px; }
.control-list footer { display: flex; gap: 14px; color: #536a79; font-size: 9px; }
.risk-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; align-items: start; padding: 12px 0; border-bottom: 1px solid #edf0f2; }
.risk-row small { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; }
.risk-row p { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: 10px; }
.risk-score { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 5px; color: #fff; background: #a05a00; font-size: 11px; }
.policy-row { padding: 11px 0; border-bottom: 1px solid #edf0f2; }
.policy-row p { margin: 3px 0; color: var(--muted); font-size: 10px; }
.policy-row small { color: #536a79; font-size: 9px; }

.loading { min-height: 70vh; display: grid; place-content: center; justify-items: center; color: var(--muted); font-size: 12px; }
.loading span { width: 28px; height: 28px; border: 3px solid #d8e1e7; border-top-color: var(--blue); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.toast { position: fixed; right: 20px; bottom: 20px; z-index: 20; max-width: min(420px, calc(100vw - 40px)); padding: 11px 14px; border-radius: 5px; color: #fff; background: #1b3a4d; box-shadow: 0 8px 25px rgba(20, 40, 56, .22); opacity: 0; transform: translateY(8px); pointer-events: none; transition: .18s; font-size: 12px; }
.toast.show { opacity: 1; transform: translateY(0); }
.toast[data-kind="error"] { background: #9b2117; }
.modal-backdrop { position: fixed; inset: 0; z-index: 15; display: grid; place-items: center; padding: 18px; background: rgba(15, 30, 42, .54); }
.modal { position: relative; width: min(520px, 100%); max-height: 90vh; overflow-y: auto; padding: 23px; border-radius: 7px; background: #fff; box-shadow: 0 22px 60px rgba(0, 0, 0, .24); }
.modal.wide { width: min(720px, 100%); }
.modal > p { color: var(--muted); font-size: 12px; }
.modal form > .actions, .modal .form-grid > .actions { justify-content: flex-end; margin-top: 12px; }
.modal-close { position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; border: 0; border-radius: 4px; color: var(--muted); background: transparent; font-size: 22px; }
.gate-list { margin-top: 15px; }

.research-grid {
  display: grid;
  grid-template-columns: minmax(260px, .8fr) minmax(420px, 1.2fr);
  gap: 24px;
  align-items: start;
}

.definition-list {
  display: grid;
  grid-template-columns: minmax(130px, .8fr) minmax(0, 1.2fr);
  gap: 10px 16px;
  margin: 16px 0 0;
}

.definition-list dt { color: var(--muted); }
.definition-list dd { margin: 0; font-weight: 650; overflow-wrap: anywhere; }

@media (max-width: 1120px) {
  .shell { grid-template-columns: 78px minmax(0, 1fr); }
  .sidebar { padding: 18px 9px; }
  .brand { justify-content: center; padding: 0; }
  .brand > span:last-child, .environment, .nav-label, .nav-item span, .sidebar-foot { display: none; }
  .nav-item { height: 40px; position: relative; }
  .nav-item::after { content: ""; width: 7px; height: 7px; position: absolute; inset: 0; margin: auto; border: 2px solid #a9bdc9; border-radius: 2px; }
  .nav-item.active::after { border-color: #f5bd45; background: #f5bd45; }
  .split, .split.wide-left, .governance-layout, .studio-grid, .research-grid { grid-template-columns: 1fr; }
  .conversation-body { grid-template-columns: 1fr; }
  .case-summary { border-top: 1px solid var(--line); border-left: 0; }
  .preview-column { width: 100%; max-width: 680px; }
}

@media (max-width: 760px) {
  .shell { display: block; }
  .sidebar { position: fixed; left: -250px; width: 240px; padding: 18px 13px; transition: left .18s; box-shadow: 10px 0 30px rgba(0, 0, 0, .2); }
  .sidebar.open { left: 0; }
  .sidebar .brand { justify-content: flex-start; padding: 0 8px; }
  .sidebar .brand > span:last-child, .sidebar .environment, .sidebar .nav-label, .sidebar .nav-item span, .sidebar .sidebar-foot { display: initial; }
  .sidebar .environment { display: flex; }
  .sidebar .sidebar-foot { display: grid; }
  .sidebar .nav-item::after { display: none; }
  .mobile-menu { display: grid; place-items: center; }
  .topbar { padding: 8px 12px; }
  .topbar > div:first-of-type { display: none; }
  .top-actions { margin-left: auto; }
  .identity span { display: none; }
  .identity b { max-width: 110px; }
  .content { padding: 18px 12px; }
  .page-title { display: block; }
  .page-title .actions { margin-top: 14px; }
  h1 { font-size: 23px; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric { min-height: 112px; padding: 14px; }
  .metric > strong { font-size: 21px; }
  .panel { padding: 14px; }
  .conversation-layout { min-height: auto; grid-template-columns: 1fr; overflow: visible; }
  .conversation-list { max-height: 330px; overflow-y: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .conversation-main { min-height: 420px; }
  .conversation-header { align-items: flex-start; }
  .message { max-width: 88%; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .full { grid-column: auto; }
  .readiness-grid { grid-template-columns: 1fr; }
  .release-pipeline { grid-template-columns: 1fr; }
  .release-pipeline i { width: 2px; height: 12px; margin-left: 18px; }
  .control-list footer { display: grid; gap: 3px; }
  .preview-toolbar { align-items: flex-start; }
}

@media (max-width: 420px) {
  .metrics { grid-template-columns: 1fr; }
  .metric { min-height: 100px; }
  .topbar .btn { display: none; }
  .page-title .btn, .page-title a { width: 100%; }
  .control-list article { grid-template-columns: 1fr; }
  .risk-row { grid-template-columns: minmax(0, 1fr) auto; }
  .risk-row .status { grid-column: 1 / -1; }
  .preview-toolbar { display: grid; }
  .segmented { width: 100%; }
  .segmented button { flex: 1; }
  .preview-stage.device-mobile { min-height: 620px; }
}
