:root {
  color-scheme: dark;
  --page-bg: #08111f;
  --panel: #111a2a;
  --panel-2: #172235;
  --panel-3: #1d2a3c;
  --line: #34445a;
  --line-soft: #27374d;
  --ink: #eff5ff;
  --muted: #98a8bd;
  --blue: #2f80ed;
  --blue-bright: #67b2ff;
  --green: #57d59a;
  --gold: #f0bd62;
  --red: #ec6a72;
  --drawer-width: clamp(365px, 25vw, 430px);
}

* { box-sizing: border-box; }
html { min-width: 1040px; background: var(--page-bg); scroll-behavior: smooth; }
body { min-height: 100vh; margin: 0; background: var(--page-bg); color: var(--ink); font-family: Inter, "Segoe UI", Arial, sans-serif; }
button, input { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible, [tabindex]:focus-visible { outline: 2px solid #84c4ff; outline-offset: 2px; }

.guide-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: safe center;
  padding: 24px calc(var(--drawer-width) + 28px) 34px 26px;
  background:
    radial-gradient(circle at 8% 0%, #15304f 0, transparent 29%),
    radial-gradient(circle at 93% 10%, #0c2946 0, transparent 23%),
    var(--page-bg);
}

.guide-header {
  width: min(1660px, 100%);
  min-height: 92px;
  flex: 0 0 auto;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin: 0 auto 18px;
}
.guide-title { min-width: 420px; }
.guide-title h1 { margin: 0; font-size: clamp(2.3rem, 3.2vw, 3.7rem); line-height: .98; letter-spacing: -.045em; }
.guide-title > p:last-child { max-width: 760px; margin: 10px 0 0; color: #9eb6d2; font-size: .9rem; line-height: 1.45; }
.eyebrow { margin: 0 0 5px; color: #4e9ffc; font-size: .72rem; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.guide-actions { display: flex; align-items: center; gap: 8px; }
.header-button { min-height: 42px; padding: 0 13px; border: 1px solid #3b5575; border-radius: 8px; background: #102039; cursor: pointer; font-size: 11px; font-weight: 700; white-space: nowrap; }
.header-button:hover { border-color: var(--blue); background: #172d4a; }

.guide-search { position: relative; width: min(350px, 28vw); height: 42px; display: flex; align-items: center; gap: 7px; padding: 0 11px; border: 1px solid #344d6d; border-radius: 8px; background: #0c1727; box-shadow: 0 10px 24px #0002; }
.guide-search > span { color: #7e94b0; font-size: 21px; }
.guide-search input { width: 100%; border: 0; outline: 0; background: transparent; color: white; font-size: 12px; }
.guide-search input::placeholder { color: #7588a2; }
.search-results { position: absolute; z-index: 200; top: 49px; right: 0; left: 0; max-height: 390px; overflow: auto; padding: 6px; border: 1px solid #405775; border-radius: 8px; background: #101d2f; box-shadow: 0 22px 55px #000d; }
.search-results button { width: 100%; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px; padding: 9px 10px; border: 0; border-radius: 5px; background: transparent; cursor: pointer; text-align: left; }
.search-results button:hover, .search-results button:focus-visible { background: #203958; }
.search-results strong { display: block; color: #eff6ff; font-size: 11px; }
.search-results em { display: block; margin-top: 2px; overflow: hidden; color: #93a7bf; font-size: 9px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.search-results small { color: #7fb3ed; font-size: 8px; font-weight: 750; letter-spacing: .07em; text-transform: uppercase; }
.search-empty { margin: 0; padding: 14px 10px; color: #93a7bf; font-size: 11px; text-align: center; }

.app-viewport { width: min(1660px, 100%); margin: 0 auto; overflow-x: auto; scrollbar-color: #42536c #0b1320; }
.app-shell { width: 100%; min-width: 1180px; max-width: 1680px; min-height: 0; height: auto; flex: 0 0 auto; display: flex; flex-direction: column; margin: 0 auto; overflow: hidden; border: 1px solid #2c3d54; border-radius: 4px; background: #0b1322; box-shadow: 0 25px 85px #000a; font-family: "Segoe UI", Arial, sans-serif; font-size: clamp(8px, .58vw, 11px); }
.app-titlebar { height: 29px; flex: 0 0 29px; display: flex; align-items: center; gap: 7px; padding: 0 7px; background: #242424; color: #f5f5f5; font-size: 10px; }
.app-titlebar strong { font-weight: 500; }
.overview-trigger { cursor: pointer; }
.overview-trigger:focus-visible { outline: 1px solid #4ba4ff; outline-offset: -2px; }
.app-mark { width: 16px; height: 16px; display: grid; place-items: center; border: 1px solid #8ea6bf; border-radius: 2px; background: #edf5ff; color: #14345d; font-size: 6px; font-weight: 900; }
.window-controls { height: 100%; display: flex; align-items: center; margin-left: auto; }
.window-controls span { width: 40px; height: 100%; display: grid; place-items: center; font-size: 13px; }
.app-menubar { position: relative; z-index: 40; height: 28px; flex: 0 0 28px; display: flex; align-items: center; padding: 0 6px; border-bottom: 1px solid #26364c; background: #172235; }
.app-menubar button { height: 23px; padding: 0 9px; border: 0; background: transparent; cursor: pointer; font-size: 10px; }
.app-menubar button:hover { background: #22324a; }
.appearance-menu { position: relative; height: 23px; }
.appearance-menu > .menu-target.open { background: #22324a; }
.appearance-dropdown { position: absolute; z-index: 80; top: 23px; left: 0; width: 134px; overflow: hidden; padding: 3px 0; border: 1px solid #394b63; border-radius: 0 7px 7px 7px; background: #1d2939; box-shadow: 0 10px 24px #0009; }
.appearance-dropdown[hidden] { display: none; }
.app-menubar .appearance-option { width: 100%; height: 27px; display: grid; grid-template-columns: 17px minmax(0, 1fr); align-items: center; gap: 1px; padding: 0 7px 0 2px; color: #f3f7fd; font-size: 10px; text-align: left; }
.app-menubar .appearance-option:hover, .app-menubar .appearance-option:focus-visible, .app-menubar .appearance-option.is-active { background: #2b3b50; }
.app-menubar .appearance-option.divider-before { height: 32px; margin-top: 2px; padding-top: 5px; border-top: 1px solid #41536b; }
.appearance-check { color: #dbe8f7; font-size: 11px; font-weight: 800; opacity: 0; }
.appearance-option[data-checked="true"] .appearance-check { opacity: 1; }
.app-heading { min-height: 57px; flex: 0 0 57px; padding: 8px 7px 5px; }
.app-heading h2 { margin: 0 0 5px; font-family: Georgia, serif; font-size: 17px; }
.app-heading p { margin: 0; color: #dfe9f6; font-size: 9px; }

.app-body { min-height: 0; flex: 1; display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 7px; padding: 0 7px 7px; transition: grid-template-columns .2s ease; }
.app-body.log-open { grid-template-columns: 250px minmax(610px, 1fr) 285px; }
.left-rail { min-height: 0; display: grid; grid-template-rows: minmax(310px, 1fr) 184px; gap: 8px; padding-right: 7px; border-right: 4px solid #34455d; }
.center-stage { min-width: 0; min-height: 0; overflow: auto; border: 1px solid #33445b; border-radius: 6px; background: #0d1626; scrollbar-color: #42536c #0b1320; }
.stage-toolbar { height: 48px; display: flex; align-items: center; justify-content: flex-end; gap: 9px; padding: 7px 14px; }
.screen-state { margin-right: auto; color: #8fa1b8; font-size: 9px; opacity: 0; transition: opacity .2s; }
.screen-state.visible { opacity: 1; }
.screen-state i { width: 6px; height: 6px; display: inline-block; border-radius: 50%; background: var(--green); }

fieldset { min-inline-size: 0; }
.panel { min-width: 0; margin: 0; padding: 12px; border: 1px solid #36475c; border-radius: 7px; background: #1a2636; }
.panel > legend { padding: 0 7px; color: #f5f8fd; background: #1a2636; font-size: 10px; }
.documents-panel { min-height: 0; display: grid; grid-template-rows: minmax(0, 1fr) auto; padding: 10px 13px 12px; }
.document-list { min-height: 0; overflow: auto; border: 1px solid #394a60; border-radius: 3px; background: #0d1626; scrollbar-color: #4a5c73 #0a1220; scrollbar-width: thin; }
.document-row { width: 100%; height: 25px; display: flex; align-items: center; gap: 5px; overflow: hidden; padding: 0 6px; border: 0; border-bottom: 1px solid #25354a; background: transparent; cursor: pointer; text-align: left; white-space: nowrap; }
.document-row:hover, .document-row.selected { background: #26344a; }
.document-row.root { height: 34px; padding-left: 6px; background: #26344a; color: #ffffff; }
.document-row.level-1 { padding-left: 5px; }
.document-row.level-2 { padding-left: 17px; }
.document-row.level-3 { padding-left: 30px; }
.document-row.level-4 { padding-left: 51px; }
.document-row span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.document-row.level-3.selected { background: #24558d; color: #ffffff; }
.tree-icon { color: #dce8f6; }
.button-row { display: flex; justify-content: flex-end; gap: 6px; margin-top: 10px; }
.button-row.compact .sim-button { width: auto; }
.matter-panel { padding: 10px 13px; }
.matter-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.matter-grid input, .package-name { min-width: 0; height: 27px; padding: 0 7px; border: 1px solid #3a4c63; border-radius: 4px; background: #0f1828; color: #edf4fd; font-size: 9px; }
.matter-grid .span-two { grid-column: 1 / -1; }
.matter-grid input::placeholder, .package-name::placeholder { color: #8294ac; }

.option-grid { display: grid; grid-template-columns: 275px minmax(520px, 1fr); gap: 15px 16px; align-items: stretch; padding: 8px 14px 12px; }
.source-panel, .extract-panel { display: grid; gap: 7px; }
.source-panel label, .extract-panel > label { color: #d7e3f1; font-size: 9px; }
.source-panel label span, .extract-panel label span { color: #a7bad2; }
.attachment-panel { min-height: 0; align-self: stretch; }
.attachment-modes { display: grid; grid-template-columns: max-content max-content; gap: 6px 14px; margin-bottom: 14px; }
.attachment-modes label:last-child { grid-column: 1; }
.dependent-grid, .processing-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.dependent-grid { transition: opacity .2s; }
.dependent-grid.is-disabled { opacity: .42; }
.mini-group { min-width: 0; margin: 0; padding: 11px 10px; border: 1px solid #2d3d52; border-radius: 7px; background: #151f30; }
.mini-group > legend { padding: 0 5px; color: #dfe9f6; background: #151f30; font-size: 9px; }
.mini-group label { margin-bottom: 8px; }
.mini-group label:last-child { margin-bottom: 0; }

.processing-panel { margin: 0; padding: 13px 12px 12px; }
.processing-grid { grid-template-columns: .9fr 1.05fr .95fr .95fr; }
.processing-grid .mini-group { min-height: 129px; }
.check-line, .radio-line { min-height: 20px; display: flex; align-items: center; gap: 6px; color: #eef4fc; font-size: 9px; cursor: pointer; }
.check-line input, .radio-line input { width: 14px; height: 14px; flex: 0 0 14px; margin: 0; accent-color: #4d91f6; }
.muted-control:has(input:disabled), input:disabled + span { color: #687a91; cursor: default; }
.small-label { display: block; margin: 3px 0 5px; color: #7f92aa; font-size: 8px; }
.package-name { width: 100%; }
.package-name[data-sim-disabled="true"] { color: #6f8096; background: #182437; cursor: help; }

.sim-button { min-height: 30px; padding: 0 10px; border: 1px solid #3a4d65; border-radius: 5px; background: #172438; color: #f4f8fe; cursor: pointer; font-size: 9px; }
.sim-button:hover:not(:disabled) { border-color: #67aefe; background: #1c3150; }
.sim-button:active:not(:disabled) { transform: translateY(1px); }
.sim-button:disabled { color: #6f8096; background: #233146; cursor: default; }
.sim-button[aria-disabled="true"], .sim-button[aria-disabled="true"]:hover { border-color: #3a4d65; background: #233146; color: #6f8096; }
.sim-button.wide { width: 100%; }
.sim-button.primary { border-color: #4f8ff4; background: #4f87ea; color: white; font-weight: 750; }
.sim-button.primary:hover { background: #5d96f5; }
.drawer-toggle { min-width: 73px; }
.drawer-toggle.open { border-color: #5ba9ff; background: #163c66; }
.bottom-toggle { margin: -2px 14px 12px; }

.run-panel { margin: 0 14px 10px; padding: 12px; }
.run-actions { display: grid; grid-template-columns: repeat(5, minmax(95px, 1fr)); gap: 5px; }
.progress-line { display: flex; justify-content: space-between; margin-top: 7px; color: #d9e5f4; font-size: 8px; }
.progress-track { height: 8px; overflow: hidden; margin-top: 7px; border: 1px solid #304158; border-radius: 3px; background: #07101d; }
.progress-track i { width: 0; height: 100%; display: block; background: linear-gradient(90deg, #2f80ed, #67b2ff); transition: width .28s ease; }

.triage-drawer { margin: 0 14px 14px; min-height: 180px; background: #162233; }
.triage-drawer > legend { background: #162233; }
.triage-table { height: 100%; border: 1px solid #3a4b61; border-radius: 3px; overflow: hidden; }
.triage-row { min-height: 32px; display: grid; grid-template-columns: 29% 16% 1fr; border-bottom: 1px solid #28384c; background: #0e1727; }
.triage-row span { display: flex; align-items: center; padding: 7px; border-right: 1px solid #34455b; }
.triage-row.header { background: #28364b; color: white; font-weight: 650; }
.status-ready { color: var(--green); }.status-warn { color: var(--gold); }
.log-drawer { min-width: 0; overflow: hidden; background: #172334; }
.log-drawer > legend { background: #172334; }
.log-lines { height: 100%; min-height: 400px; overflow: auto; padding: 9px; border: 1px solid #394a61; border-radius: 3px; background: #0c1524; color: #b8c8da; font: 9px/1.55 Consolas, monospace; }
.log-lines p { margin: 0 0 7px; overflow-wrap: anywhere; }
.log-lines time { color: #6eaef5; }
.log-lines .success { color: #79dda4; }.log-lines .warning { color: #f0c36d; }

.guide-target, .guide-subtarget { position: relative; }
.guide-target { cursor: help; outline: 1px solid transparent; outline-offset: -3px; transition: outline-color .16s ease, box-shadow .16s ease, background-color .16s ease; }
.guide-subtarget { cursor: help; border-radius: 4px; transition: box-shadow .16s ease, background-color .16s ease; }
.guide-target:hover, .guide-target:focus-visible, .guide-target.is-active { z-index: 8; outline-color: #55a8ff; box-shadow: inset 0 0 24px #3b9cff20; }
.guide-subtarget:hover, .guide-subtarget:focus-within, .guide-subtarget.is-active { z-index: 9; box-shadow: 0 0 0 1px #68b5ff, inset 0 0 14px #3b9cff22; }
.guide-target.is-active, .guide-subtarget.is-active { animation: guide-pulse .75s ease-out 1; }
@keyframes guide-pulse { 0% { box-shadow: 0 0 0 0 #55a8ff99, inset 0 0 28px #3b9cff35; } 100% { box-shadow: 0 0 0 8px #55a8ff00, inset 0 0 18px #3b9cff1c; } }

[data-guide]::after { display: none; }

.guide-drawer { position: fixed; z-index: 300; top: 0; right: 0; bottom: 0; width: var(--drawer-width); display: flex; flex-direction: column; overflow-y: auto; padding: 48px 31px 25px; border-left: 1px solid #c5d2df; background: #f4f8fd; color: #152439; box-shadow: -14px 0 45px #0008; scrollbar-color: #9db1c9 #eef4fa; }
.drawer-home { position: absolute; top: 18px; right: 19px; width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid #c3d0df; border-radius: 50%; background: white; color: #17283d; cursor: pointer; font-size: 18px; }
.drawer-home:hover { border-color: #6a9fd3; background: #e8f1fb; }
.drawer-kicker { margin: 0; color: #2f80ed; font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.drawer-content { min-height: 0; padding: 0 0 34px; }
.drawer-content h2 { margin: 0 0 13px; color: #102a4a; font-size: 31px; line-height: 1.06; letter-spacing: -.035em; }
.drawer-content h3 { margin: 26px 0 10px; padding-top: 18px; border-top: 1px solid #ccd9e7; color: #2268ac; font-size: 16px; }
.drawer-content h4 { margin: 17px 0 5px; color: #15385d; font-size: 12px; }
.drawer-content p { margin: 0 0 12px; color: #566e8b; font-size: 12.5px; line-height: 1.55; }
.drawer-content ul, .drawer-content ol { margin: 0 0 15px; padding-left: 20px; color: #536b87; font-size: 12px; line-height: 1.5; }
.drawer-content li { margin: 0 0 7px; }
.drawer-content strong { color: #173b61; }
.drawer-content > h2 { margin: 8px 0 10px; font-size: 31px; }
.drawer-content > h2.overview-title { margin-top: 13px; font-size: 43px; }
.drawer-overview-copy { margin-top: 22px; }
.drawer-overview-copy p { margin: 0 0 15px; color: #536a82; font-size: 15px; line-height: 1.65; }
.drawer-overview-prompt { display: grid; grid-template-columns: 32px minmax(0, 1fr); align-items: center; gap: 11px; margin-top: 30px; padding: 15px; border-left: 3px solid #397fc8; border-radius: 0 7px 7px 0; background: #e8f1fb; }
.drawer-overview-prompt span { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: #2f80ed; color: #ffffff; font-size: 16px; line-height: 1; }
.drawer-overview-prompt p { margin: 0; color: #294d72; font-size: 13px; font-weight: 700; line-height: 1.45; }
.drawer-summary { margin: 0 0 19px !important; color: #3f5771 !important; font-size: 15px !important; line-height: 1.5 !important; }
.drawer-copy p { color: #607188; font-size: 12px; line-height: 1.65; }
.drawer-section { margin: 28px 0; padding-top: 20px; border-top: 1px solid #ccd7e3; }
.drawer-section.focus-section { padding: 16px 12px 12px; border-left: 3px solid #397fc8; border-radius: 0 5px 5px 0; background: #e8f1fb; }
.drawer-section h3 { margin: 0 0 14px; padding-top: 0; border-top: 0; color: #2e6eaa; font-size: 18px; font-weight: 800; letter-spacing: -.01em; }
.drawer-section-description { margin: -3px 0 16px !important; color: #53677f !important; font-size: 12px !important; line-height: 1.55 !important; }
.drawer-controls-list { display: grid; gap: 12px; }
.drawer-control-row { min-width: 0; display: grid; grid-template-columns: 126px minmax(0, 1fr); align-items: start; gap: 12px; scroll-margin-block: 35vh; }
.drawer-control-row.focus { padding: 10px 12px; border-left: 3px solid #397fc8; border-radius: 0 5px 5px 0; background: #e8f1fb; }
.drawer-control-row.focus strong { color: #1b568e; }
.drawer-control-sample { min-width: 0; min-height: 30px; display: flex; align-items: center; justify-content: center; padding: 6px 7px; border: 1px solid #354a67; border-radius: 5px; background: #152238; color: #f4f7fb; box-shadow: 0 3px 8px #10233a1f; font-size: 9px; font-weight: 700; line-height: 1.25; text-align: center; overflow-wrap: anywhere; }
.drawer-control-sample.primary { border-color: #2f80ed; background: #2f80ed; }
.drawer-control-sample.text { justify-content: flex-start; padding-inline: 2px; border-color: transparent; background: transparent; color: #405773; box-shadow: none; text-align: left; }
.drawer-control-sample.field, .drawer-control-sample.select { justify-content: flex-start; background: #0d1829; color: #8fa1b8; font-weight: 550; text-align: left; }
.drawer-control-sample.progress-preview { --sidebar-progress: 0%; justify-content: flex-start; background: linear-gradient(90deg, #2f80ed 0 var(--sidebar-progress), #0d1829 var(--sidebar-progress) 100%); color: #f4f7fb; font-weight: 700; }
.drawer-control-sample.select { position: relative; padding-right: 22px; }
.drawer-control-sample.select::after { content: "⌄"; position: absolute; right: 8px; color: #9fc5ef; }
.drawer-control-sample.checkbox, .drawer-control-sample.radio { justify-content: flex-start; gap: 7px; padding-inline: 2px; border-color: transparent; background: transparent; color: #405773; box-shadow: none; text-align: left; }
.drawer-control-sample.checkbox::before, .drawer-control-sample.radio::before { content: ""; width: 15px; height: 15px; flex: 0 0 15px; border: 1px solid #647b95; background: #ffffff; box-shadow: inset 0 0 0 1px #dbe5ef; }
.drawer-control-sample.checkbox::before { border-radius: 3px; }
.drawer-control-sample.radio::before { border-radius: 50%; }
.drawer-control-row strong { display: block; margin: 1px 0 3px; color: #213f61; font-size: 12px; }
.drawer-control-row p { margin: 0; color: #53677f; font-size: 12px; line-height: 1.5; }
.callout { margin: 17px 0; padding: 13px 14px; border-left: 3px solid #2f80ed; border-radius: 0 6px 6px 0; background: #e3eefb; }
.callout p { margin: 0; color: #3e5a78; }
.reference-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 19px; }
.reference-card { min-height: 88px; padding: 12px; border: 1px solid #c4d3e4; border-radius: 8px; background: white; color: #244565; cursor: pointer; text-align: left; }
.reference-card:hover { border-color: #4d97e5; background: #edf6ff; }
.reference-card span { display: none; }
.reference-card strong { display: block; font-size: 11px; }
.reference-card small { display: block; margin-top: 4px; color: #71849b; font-size: 9px; line-height: 1.35; }
.drawer-footer { min-height: 46px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 20px; border-top: 1px solid #cbd7e5; background: #e8f0f8; color: #60758f; font-size: 9px; }
.drawer-footer span { display: flex; align-items: center; gap: 6px; }
.legend-swatch { width: 11px; height: 11px; display: inline-block; border: 2px solid #2f80ed; border-radius: 2px; background: #dcedff; }
kbd { padding: 2px 5px; border: 1px solid #b8c8d9; border-bottom-width: 2px; border-radius: 4px; background: white; color: #2e4967; font: 9px Consolas, monospace; }

.compat-group { margin-top: 18px; }
.compat-group h3 { margin: 0 0 6px; padding: 0; border: 0; font-size: 14px; }
.compat-table { width: 100%; border-collapse: collapse; color: #48617e; font-size: 9px; line-height: 1.35; }
.compat-table th { padding: 7px 6px; background: #15385d; color: white; text-align: left; font-size: 8px; text-transform: uppercase; }
.compat-table td { padding: 7px 6px; border: 1px solid #c6d4e3; vertical-align: top; }
.compat-table tr:nth-child(even) td { background: #e8f1fa; }
.new-badge { display: inline-block; margin-left: 4px; padding: 1px 4px; border-radius: 8px; background: #d8f5e7; color: #176446; font-size: 7px; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.message-card { margin: 0 0 9px; padding: 10px 11px; border: 1px solid #c9d6e4; border-radius: 6px; background: white; }
.message-card code { display: block; margin-bottom: 4px; color: #164c80; font: 9px/1.4 Consolas, monospace; overflow-wrap: anywhere; }
.message-card p { margin: 0; font-size: 10px; }

@media (max-width: 1380px) {
  :root { --drawer-width: 360px; }
  .guide-page { padding-left: 15px; padding-right: calc(var(--drawer-width) + 15px); }
  .guide-header { align-items: start; }
  .guide-actions { max-width: 470px; flex-wrap: wrap; justify-content: flex-end; }
  .guide-search { width: 100%; }
  .app-shell { font-size: 8px; }
  .app-body, .app-body.log-open { grid-template-columns: 205px minmax(590px, 1fr); }
  .app-body.log-open .log-drawer { position: absolute; z-index: 80; top: 114px; right: calc(var(--drawer-width) + 16px); bottom: 42px; width: 290px; box-shadow: -12px 0 35px #000a; }
  .left-rail { grid-template-rows: minmax(300px, 1fr) 177px; }
  .option-grid { grid-template-columns: 240px minmax(440px, 1fr); gap: 10px; }
}

@media (max-height: 820px) {
  .guide-page { padding-top: 14px; }
  .guide-header { min-height: 72px; margin-bottom: 11px; }
  .guide-title h1 { font-size: 2.5rem; }
  .app-shell { min-height: 0; height: auto; }
  .left-rail { grid-template-rows: minmax(260px, 1fr) 170px; }
  .option-grid { padding-top: 4px; padding-bottom: 8px; gap: 9px 10px; }
  .run-panel { margin-bottom: 7px; }
  .processing-grid .mini-group { min-height: 106px; }
  .triage-drawer { min-height: 140px; }
}
