/* EVA Boot Sequence & Integrity Gate + Member/Tenant Release Updates (EVA Classic Design, 100% scoped) */
body.has-boot-gate { overflow: hidden; }

#eva-boot-gate {
  color-scheme: dark;
  --bg: #090e0c;
  --surface: #0d1510;
  --surface-2: #111c15;
  --surface-3: #17241b;
  --border: #28392d;
  --border-soft: #1d2a22;
  --text: #e1eade;
  --muted: #92a395;
  --dim: #738579;
  --accent: #c4e5ab;
  --accent-rgb: 196, 229, 171;
  --accent-ink: #182515;
  --green: #7fe7ae;
  --amber: #e8be66;
  --red: #ec9c97;
  --danger: #f39c96;
  --cyan: #8cc8cb;
  --radius: 9px;
  --gap: 12px;
  --pad: 15px;
  --row: 10px;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  position: fixed;
  inset: 0;
  z-index: 9500;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  overflow: auto;
  scrollbar-color: #3d5144 #0b120e;
}

#eva-boot-gate *, #eva-boot-gate *::before, #eva-boot-gate *::after { box-sizing: border-box; }
#eva-boot-gate h1, #eva-boot-gate h2, #eva-boot-gate h3, #eva-boot-gate h4, #eva-boot-gate p { margin: 0; }
#eva-boot-gate button, #eva-boot-gate input, #eva-boot-gate select, #eva-boot-gate textarea { font: inherit; color: inherit; }
#eva-boot-gate button { cursor: pointer; border: 0; background: none; padding: 0; text-decoration: none; -webkit-tap-highlight-color: transparent; }
#eva-boot-gate button:disabled { cursor: not-allowed; opacity: .4; }
#eva-boot-gate button:focus-visible, #eva-boot-gate input:focus-visible, #eva-boot-gate textarea:focus-visible, #eva-boot-gate summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
#eva-boot-gate input::placeholder, #eva-boot-gate textarea::placeholder { color: var(--dim); }
#eva-boot-gate svg { vertical-align: middle; flex: 0 0 auto; }
#eva-boot-gate [hidden] { display: none !important; }

#eva-boot-gate .mono { font-family: var(--mono); }
#eva-boot-gate .muted { color: var(--muted); }
#eva-boot-gate .dim { color: var(--dim); }
#eva-boot-gate .success { color: var(--green); }
#eva-boot-gate .warning { color: var(--amber); }
#eva-boot-gate .danger { color: var(--danger); }
#eva-boot-gate .accent { color: var(--accent); }
#eva-boot-gate .tiny { font-size: .75rem; }
#eva-boot-gate .small { font-size: .875rem; }
#eva-boot-gate .truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#eva-boot-gate .row { display: flex; align-items: center; gap: 10px; min-width: 0; }
#eva-boot-gate .between { justify-content: space-between; }
#eva-boot-gate .grow { flex: 1; min-width: 0; }
#eva-boot-gate .stack { display: flex; flex-direction: column; gap: var(--gap); min-width: 0; }
#eva-boot-gate .icon { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
#eva-boot-gate .screen-reader { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

#eva-boot-gate .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 36px; padding: 8px 12px; border: 1px solid var(--border); border-radius: calc(var(--radius) - 3px); background: var(--surface-2); font-size: .875rem; line-height: 1.3; transition: border-color .15s, background .15s; white-space: nowrap; }
#eva-boot-gate .btn:hover:not(:disabled) { background: var(--surface-3); border-color: var(--dim); }
#eva-boot-gate .btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 650; }
#eva-boot-gate .btn.primary:hover:not(:disabled) { filter: brightness(1.08); }
#eva-boot-gate .btn.ghost { background: transparent; border-color: transparent; }
#eva-boot-gate .btn.ghost:hover:not(:disabled) { border-color: var(--border); background: var(--surface-2); }
#eva-boot-gate .btn.danger-btn { border-color: #6c3838; color: var(--danger); background: #221314; }
#eva-boot-gate .btn.danger-btn:hover:not(:disabled) { background: #30191b; border-color: #8f4d4d; }
#eva-boot-gate .btn.small-btn { min-height: 29px; padding: 5px 9px; font-size: .75rem; }
#eva-boot-gate .btn.icon-btn { padding: 8px; width: 36px; }
#eva-boot-gate .btn.active { border-color: var(--accent); color: var(--accent); background: rgba(var(--accent-rgb), .08); }

#eva-boot-gate .segmented { display: inline-flex; padding: 3px; border: 1px solid var(--border); border-radius: 5px; gap: 2px; background: var(--bg); }
#eva-boot-gate .segmented button { color: var(--muted); padding: 5px 9px; font-size: .75rem; border-radius: 3px; white-space: nowrap; }
#eva-boot-gate .segmented button[aria-pressed="true"] { background: var(--surface-3); color: var(--accent); }

/* Phase 1: Centered Boot Sequence Console */
#eva-boot-gate .boot-overlay { min-height: 100dvh; display: flex; align-items: center; justify-content: center; padding: 28px; background: var(--bg); }
#eva-boot-gate .boot-console { width: min(1180px, 100%); max-height: calc(100dvh - 56px); display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: calc(var(--radius) + 3px); box-shadow: 0 26px 100px #0006; overflow: hidden; }
#eva-boot-gate .boot-console-head { padding: 24px 26px 20px; border-bottom: 1px solid var(--border-soft); }
#eva-boot-gate .boot-label { display: flex; gap: 9px; align-items: center; color: var(--accent); font: .75rem var(--mono); letter-spacing: .08em; }
#eva-boot-gate .boot-console-head h1 { font: 500 1.2rem/1.5 var(--mono); margin-top: 12px; color: var(--text); }
#eva-boot-gate .boot-meta { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 10px; color: var(--dim); font: .75rem/1.6 var(--mono); }
#eva-boot-gate .boot-lines { padding: 20px 25px; overflow: auto; min-height: 0; font: .8125rem/1.7 var(--mono); scrollbar-color: var(--border) transparent; }
#eva-boot-gate .init-line { display: grid; grid-template-columns: 56px 64px 168px minmax(0, 1fr); gap: 10px; padding: 5px 0; align-items: baseline; width: 100%; text-align: left; }
#eva-boot-gate button.init-line:hover strong { color: var(--accent); text-decoration: underline; }
#eva-boot-gate .init-time { color: var(--dim); font-size: .75rem; text-align: right; }
#eva-boot-gate .init-state { color: var(--green); white-space: pre; }
#eva-boot-gate .init-line strong { font-weight: 600; color: var(--text); font-size: .8125rem; }
#eva-boot-gate .init-detail { color: var(--muted); overflow-wrap: anywhere; }
#eva-boot-gate .init-line.warn .init-state { color: var(--amber); }
#eva-boot-gate .init-line.fail .init-state, #eva-boot-gate .init-line.fail strong, #eva-boot-gate .init-line.fail .init-detail { color: var(--danger); }
#eva-boot-gate .init-line.fail { background: rgba(243, 156, 150, .06); margin: 0 -10px; padding: 5px 10px; border-radius: 3px; width: calc(100% + 20px); }
#eva-boot-gate .boot-console-foot { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; padding: 18px 25px; border-top: 1px solid var(--border); background: var(--surface-2); }
#eva-boot-gate .boot-outcome { flex: 1; min-width: 210px; }
#eva-boot-gate .init-counts { display: flex; gap: 16px; font: .75rem var(--mono); }
#eva-boot-gate .boot-outcome p { font-size: .8125rem; line-height: 1.6; color: var(--muted); margin-top: 8px; }
#eva-boot-gate .boot-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
#eva-boot-gate .boot-actions .btn { min-height: 42px; font-size: .875rem; padding: 10px 16px; }
#eva-boot-gate .boot-actions .primary { min-width: 200px; }
#eva-boot-gate .action-error { display: flex; gap: 8px; align-items: flex-start; width: 100%; color: var(--danger); font-size: .875rem; line-height: 1.6; }
#eva-boot-gate .action-error svg { margin-top: 3px; }

/* Phase 2: Owner Werkbank */
#eva-boot-gate .app-shell { width: min(100%, 1600px); margin: 0 auto; padding: 0 30px 24px; }
#eva-boot-gate .topbar { height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--border-soft); margin-bottom: 16px; }
#eva-boot-gate .brand { display: flex; align-items: center; gap: 12px; }
#eva-boot-gate .brandmark { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--accent); border-radius: 6px; color: var(--accent); position: relative; }
#eva-boot-gate .brandmark::before, #eva-boot-gate .brandmark::after { content: ""; position: absolute; width: 8px; height: 8px; background: var(--bg); }
#eva-boot-gate .brandmark::before { right: -2px; top: -2px; }
#eva-boot-gate .brandmark::after { left: -2px; bottom: -2px; }
#eva-boot-gate .wordmark { font-size: 1.35rem; font-weight: 700; letter-spacing: .12em; }
#eva-boot-gate .brand-divider { height: 22px; width: 1px; background: var(--border); margin: 0 6px; }
#eva-boot-gate .brand-label { font: .75rem var(--mono); letter-spacing: .14em; color: var(--muted); }
#eva-boot-gate .top-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }

#eva-boot-gate .gate-heading { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 4px 0 16px; }
#eva-boot-gate .eyebrow { font: .6875rem var(--mono); text-transform: uppercase; color: var(--dim); letter-spacing: .1em; margin-bottom: 4px; }
#eva-boot-gate .gate-heading h1 { font: 500 clamp(1.05rem, 1.65vw, 1.35rem)/1.45 var(--mono); letter-spacing: .015em; }
#eva-boot-gate .release-sub { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin-top: 6px; color: var(--muted); font: .75rem var(--mono); }
#eva-boot-gate .release-sub span { display: inline-flex; gap: 5px; align-items: center; }
#eva-boot-gate .release-sub strong { color: var(--text); font-weight: 400; }
#eva-boot-gate .release-sub .sep { height: 12px; width: 1px; background: var(--border); }
#eva-boot-gate .heading-side { text-align: right; }
#eva-boot-gate .status-badge { display: inline-flex; align-items: center; gap: 7px; padding: 6px 9px; border: 1px solid #6b542d; background: #241e11; color: var(--amber); border-radius: 5px; font: .75rem var(--mono); }
#eva-boot-gate .status-badge.ready { border-color: #345f42; background: #102319; color: var(--green); }
#eva-boot-gate .status-badge.failed { color: var(--danger); background: #291718; border-color: #754140; }
#eva-boot-gate .heading-side p { color: var(--muted); font-size: .75rem; margin-top: 6px; }
#eva-boot-gate .owner-badge { color: var(--accent); font: .6875rem var(--mono); }

#eva-boot-gate .panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); min-width: 0; overflow: hidden; }
#eva-boot-gate .panel-head { min-height: 41px; padding: 10px var(--pad); display: flex; justify-content: space-between; align-items: center; gap: 12px; border-bottom: 1px solid var(--border-soft); background: rgba(255, 255, 255, .012); }
#eva-boot-gate .panel-title { font: .6875rem var(--mono); letter-spacing: .09em; text-transform: uppercase; color: var(--muted); display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
#eva-boot-gate .panel-meta { color: var(--dim); font: .75rem var(--mono); white-space: nowrap; }
#eva-boot-gate .panel-body { padding: var(--pad); }
#eva-boot-gate .count { display: inline-grid; place-items: center; height: 20px; min-width: 22px; padding: 0 5px; background: var(--surface-3); border: 1px solid var(--border); border-radius: 4px; font: .6875rem var(--mono); color: var(--muted); }

#eva-boot-gate .gate-alert { border: 1px solid #5f4b25; border-radius: var(--radius); background: #1b180f; overflow: hidden; }
#eva-boot-gate .gate-alert-head { display: flex; align-items: center; gap: 12px; padding: 13px 16px; }
#eva-boot-gate .gate-alert-head > .icon { color: var(--amber); }
#eva-boot-gate .gate-alert h2 { font-size: .875rem; font-weight: 600; color: #e7d4a8; }
#eva-boot-gate .gate-alert p { font-size: .8125rem; color: #b4a78a; line-height: 1.6; margin-top: 3px; }
#eva-boot-gate .gate-alert .btn { flex: 0 0 auto; border-color: #5b4b2c; background: transparent; }
#eva-boot-gate .gate-alert.ok { border-color: #365b41; background: #102017; }
#eva-boot-gate .gate-alert.ok h2, #eva-boot-gate .gate-alert.ok .icon { color: var(--green); }
#eva-boot-gate .gate-alert.ok p { color: #9db5a3; }
#eva-boot-gate .gate-alert.ok .btn { border-color: #34563f; }
#eva-boot-gate .gate-alert.fail { border-color: #723c3c; background: #211314; }
#eva-boot-gate .gate-alert.fail h2, #eva-boot-gate .gate-alert.fail .gate-alert-head > .icon { color: var(--danger); }
#eva-boot-gate .gate-alert.fail p { color: #c5a2a0; }
#eva-boot-gate .gate-alert.fail .btn { border-color: #68403e; color: #e8b8b3; }
#eva-boot-gate .blocker-list { max-height: 185px; overflow: auto; border-top: 1px solid #512c2c; padding: 2px 16px 8px; }
#eva-boot-gate .blocker-item { padding: 10px 0; border-bottom: 1px solid #3c2525; }
#eva-boot-gate .blocker-item:last-child { border-bottom: 0; }
#eva-boot-gate .blocker-item strong { color: var(--red); font-size: .8125rem; font-weight: 500; }
#eva-boot-gate .blocker-item ul { margin: 7px 0; padding-left: 19px; font-size: .8125rem; color: #ecc0ba; line-height: 1.65; }

#eva-boot-gate .boot-panel .head-btn { width: 100%; text-align: left; }
#eva-boot-gate .boot-summary { display: flex; align-items: center; gap: 12px; font: .75rem var(--mono); color: var(--muted); }
#eva-boot-gate .boot-preview { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 28px; padding: 10px var(--pad); }
#eva-boot-gate .boot-line { display: flex; gap: 9px; font: .75rem/1.8 var(--mono); min-width: 0; align-items: baseline; }
#eva-boot-gate .boot-line-button { width: 100%; text-align: left; }
#eva-boot-gate .boot-line-button:hover .check-name { text-decoration: underline; color: var(--accent); }
#eva-boot-gate .boot-line .check-time { width: 52px; text-align: right; flex: 0 0 auto; color: var(--dim); }
#eva-boot-gate .check-state { color: var(--green); flex: 0 0 auto; }
#eva-boot-gate .check-state.warning { color: var(--amber); }
#eva-boot-gate .check-state.danger { color: var(--danger); }
#eva-boot-gate .check-name { color: var(--text); flex-shrink: 0; }
#eva-boot-gate .boot-line .check-detail { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#eva-boot-gate .boot-all { padding: 10px var(--pad); max-height: 245px; overflow: auto; }
#eva-boot-gate .boot-all .boot-line { min-width: 680px; min-height: 24px; }
#eva-boot-gate .boot-all .check-name { min-width: 145px; }

#eva-boot-gate .release-summary-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(260px, 1fr); gap: 22px; padding: 14px var(--pad); }
#eva-boot-gate .release-summary-grid h3 { font-size: .875rem; font-weight: 550; }
#eva-boot-gate .release-changelog-md { margin-top: 8px; max-height: 150px; overflow: auto; font-size: .8125rem; line-height: 1.6; color: var(--muted); }
#eva-boot-gate .release-changelog-md h4 { font: .75rem/1.4 var(--mono); color: var(--accent); margin: 6px 0 4px; text-transform: uppercase; letter-spacing: .04em; }
#eva-boot-gate .release-changelog-md ul { margin: 4px 0 6px 18px; padding: 0; display: grid; gap: 3px; }
#eva-boot-gate .release-changelog-md code { font: .75rem var(--mono); color: #a8cbb1; background: var(--surface-2); border: 1px solid var(--border-soft); padding: 1px 4px; border-radius: 3px; }
#eva-boot-gate .release-metadata { display: grid; gap: 6px; align-content: start; }
#eva-boot-gate .release-metadata > div { display: flex; align-items: baseline; gap: 12px; font-size: .75rem; }
#eva-boot-gate .release-metadata span { color: var(--dim); width: 92px; flex: 0 0 auto; }
#eva-boot-gate .release-metadata strong { color: var(--muted); font-weight: 400; }
#eva-boot-gate .release-metadata code { font-size: .75rem; color: var(--muted); }

/* Workbench 2-Column Split */
#eva-boot-gate .workbench { display: grid; grid-template-columns: minmax(250px, 330px) minmax(0, 1fr); gap: var(--gap); align-items: start; }
#eva-boot-gate .workbench > * { min-width: 0; }
#eva-boot-gate .files-panel { min-height: 440px; }
#eva-boot-gate .file-toolbar { padding: 10px 12px; border-bottom: 1px solid var(--border-soft); }
#eva-boot-gate .search-field { position: relative; }
#eva-boot-gate .search-field svg { position: absolute; left: 10px; top: 10px; color: var(--dim); pointer-events: none; }
#eva-boot-gate .search-field input { background: var(--bg); border: 1px solid var(--border); border-radius: 5px; padding: 7px 9px 7px 32px; width: 100%; font-size: .8125rem; min-height: 34px; }
#eva-boot-gate .filter-tabs { display: flex; gap: 6px; margin-top: 9px; }
#eva-boot-gate .filter-tabs button { color: var(--muted); font-size: .75rem; padding: 4px 8px; border-radius: 4px; }
#eva-boot-gate .filter-tabs button[aria-pressed="true"] { background: var(--surface-3); color: var(--accent); }
#eva-boot-gate .file-list { padding: 6px; max-height: 450px; overflow: auto; }
#eva-boot-gate .file-item { display: flex; gap: 9px; align-items: flex-start; text-align: left; width: 100%; padding: 8px 10px; border: 1px solid transparent; border-radius: 5px; margin-bottom: 4px; position: relative; }
#eva-boot-gate .file-item:hover { background: var(--surface-2); }
#eva-boot-gate .file-item.selected { background: rgba(var(--accent-rgb), .05); border-color: rgba(var(--accent-rgb), .42); }
#eva-boot-gate .file-item.selected::before { content: ""; position: absolute; width: 2px; left: -1px; top: 8px; bottom: 8px; background: var(--accent); }
#eva-boot-gate .change-badge { min-width: 20px; height: 21px; display: inline-grid; place-items: center; flex: 0 0 auto; border-radius: 4px; border: 1px solid #695229; background: #29200f; color: var(--amber); font: .6875rem var(--mono); margin-top: 1px; }
#eva-boot-gate .change-A { color: var(--green); background: #112a1b; border-color: #366545; }
#eva-boot-gate .change-D { color: var(--red); background: #30191c; border-color: #714348; }
#eva-boot-gate .file-info { flex: 1; min-width: 0; }
#eva-boot-gate .file-name { display: block; font: .8125rem/1.45 var(--mono); color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#eva-boot-gate .file-path { display: block; font: .6875rem var(--mono); color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#eva-boot-gate .file-details { display: flex; align-items: center; gap: 7px; margin-top: 4px; flex-wrap: wrap; }
#eva-boot-gate .file-tag { font: .625rem var(--mono); padding: 1px 4px; border: 1px solid var(--border); border-radius: 3px; color: var(--muted); }
#eva-boot-gate .delta { font: .75rem var(--mono); display: inline-flex; gap: 6px; white-space: nowrap; }
#eva-boot-gate .delta .add { color: var(--green); }
#eva-boot-gate .delta .remove { color: var(--red); }
#eva-boot-gate .file-reviewed { color: var(--green); margin-top: 3px; flex: 0 0 auto; }
#eva-boot-gate .file-pending { width: 14px; height: 14px; border: 1px solid var(--border); border-radius: 50%; margin-top: 4px; flex: 0 0 auto; }
#eva-boot-gate .files-footer { margin: 8px 12px 12px; padding: 10px 2px 0; border-top: 1px solid var(--border-soft); }
#eva-boot-gate .files-progress { display: block; width: 100%; height: 4px; margin-top: 8px; border: 0; border-radius: 2px; background: var(--surface-3); overflow: hidden; appearance: none; }
#eva-boot-gate .files-progress::-webkit-progress-bar { background: var(--surface-3); border-radius: 2px; }
#eva-boot-gate .files-progress::-webkit-progress-value { background: var(--accent); border-radius: 2px; transition: width .25s; }
#eva-boot-gate .files-progress::-moz-progress-bar { background: var(--accent); border-radius: 2px; }

/* Diff Panel */
#eva-boot-gate .diff-panel { display: flex; flex-direction: column; min-width: 0; }
#eva-boot-gate .diff-titlebar { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 11px var(--pad); border-bottom: 1px solid var(--border-soft); }
#eva-boot-gate .diff-filename { font: .875rem var(--mono); display: flex; align-items: center; gap: 9px; min-width: 0; }
#eva-boot-gate .diff-breadcrumb { color: var(--muted); font: .75rem var(--mono); margin-top: 3px; overflow-wrap: anywhere; }
#eva-boot-gate .diff-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; padding: 7px var(--pad); border-bottom: 1px solid var(--border-soft); gap: 8px; }
#eva-boot-gate .diff-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
#eva-boot-gate .diff-meta { font: .75rem var(--mono); color: var(--muted); }
#eva-boot-gate .impact-strip { display: flex; gap: 8px; padding: 8px var(--pad); background: rgba(232, 190, 102, .035); border-bottom: 1px solid var(--border-soft); align-items: center; flex-wrap: wrap; font-size: .75rem; }
#eva-boot-gate .impact-strip .impact-label { color: var(--muted); display: flex; gap: 7px; align-items: center; }
#eva-boot-gate .caller-chip { border: 1px solid #5b4829; color: var(--amber); background: #292112; border-radius: 4px; font: .6875rem var(--mono); padding: 3px 7px; display: inline-flex; gap: 5px; align-items: center; }
#eva-boot-gate .caller-chip.viewed { color: var(--green); background: #12251a; border-color: #2c523b; }
#eva-boot-gate .caller-unchanged { font-size: .625rem; color: #b6a074; padding-left: 2px; }
#eva-boot-gate .split-labels { display: grid; grid-template-columns: 1fr 1fr; font: .6875rem var(--mono); color: var(--muted); padding: 6px 12px; background: var(--surface-2); border-bottom: 1px solid var(--border); }
#eva-boot-gate .split-labels span:nth-child(2) { border-left: 1px solid var(--border); padding-left: 12px; }
#eva-boot-gate .code-scroll { background: var(--bg); overflow: auto; width: 100%; max-width: 100%; height: 400px; flex: 0 0 auto; min-height: 240px; max-height: 580px; -webkit-overflow-scrolling: touch; }
#eva-boot-gate .code-scroll.has-split-panes { overflow-x: hidden; overflow-y: auto; }
#eva-boot-gate .split-panes { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); width: 100%; min-width: 0; }
#eva-boot-gate .split-pane { min-width: 0; overflow-x: auto; overflow-y: hidden; }
#eva-boot-gate .split-pane-right { border-left: 1px solid var(--border); }
#eva-boot-gate .code-table { width: max-content; min-width: 100%; border-collapse: collapse; font: .75rem/1.8 var(--mono); table-layout: auto; }
#eva-boot-gate .code-table td { vertical-align: top; }
#eva-boot-gate .code-table .col-ln { width: 42px; }
#eva-boot-gate .code-table .col-sign { width: 22px; }
#eva-boot-gate .code-table .ln { width: 42px; min-width: 42px; text-align: right; user-select: none; color: #6f8376; padding: 0 9px 0 3px; font-variant-numeric: tabular-nums; border-right: 1px solid rgba(100, 145, 113, .08); }
#eva-boot-gate[data-numbers="false"] .code-table .ln, #eva-boot-gate[data-numbers="false"] .code-table .col-ln { display: none; }
#eva-boot-gate .code-table .sign { width: 22px; min-width: 22px; padding: 0 6px; color: var(--dim); user-select: none; }
#eva-boot-gate .code-table .source { white-space: pre; padding: 0 16px 0 6px; color: #c7d4cb; }
#eva-boot-gate .code-table tr.add { background: #122d1d; }
#eva-boot-gate .code-table tr.add .source, #eva-boot-gate .code-table tr.add .sign { color: #a7ecc0; }
#eva-boot-gate .code-table tr.remove { background: #301b1c; }
#eva-boot-gate .code-table tr.remove .source, #eva-boot-gate .code-table tr.remove .sign { color: #eeb6b0; }
#eva-boot-gate .code-table tr.hunk { background: #102127; }
#eva-boot-gate .code-table tr.hunk .source { color: var(--cyan); }
#eva-boot-gate .code-table tr:first-child td { padding-top: 8px; }
#eva-boot-gate .code-table tr:last-child td { padding-bottom: 12px; }
#eva-boot-gate .code-table .kw { color: #a8c6ef; }
#eva-boot-gate .code-table .comment { color: #738c7e; }
#eva-boot-gate .code-table.wrap { table-layout: fixed; width: 100%; min-width: 0; }
#eva-boot-gate .code-table.wrap .source { white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word; overflow: hidden; }
#eva-boot-gate .code-table.split-table { table-layout: fixed; width: 100%; min-width: 0; }
#eva-boot-gate .code-table.split-table .split-divider { border-left: 1px solid var(--border); }
#eva-boot-gate .code-table.split-table td.add, #eva-boot-gate .code-table.split-half td.add { background: #122d1d; color: #a7ecc0; }
#eva-boot-gate .code-table.split-table td.remove, #eva-boot-gate .code-table.split-half td.remove { background: #301b1c; color: #eeb6b0; }
#eva-boot-gate .code-table.split-table td.hunk, #eva-boot-gate .code-table.split-half td.hunk { background: #102127; color: var(--cyan); }
#eva-boot-gate .code-table.split-table td.blank, #eva-boot-gate .code-table.split-half td.blank { background: rgba(255, 255, 255, .015); }
#eva-boot-gate .code-table.split-half td { height: 1.8em; white-space: pre; }
#eva-boot-gate .diff-foot { display: flex; align-items: center; justify-content: space-between; padding: 10px var(--pad); border-top: 1px solid var(--border-soft); gap: 10px; }
#eva-boot-gate .diff-foot .summary-text { color: var(--muted); font-size: .75rem; }
#eva-boot-gate .review-check { display: inline-flex; align-items: center; gap: 7px; color: var(--green); font-size: .75rem; white-space: nowrap; }

#eva-boot-gate .empty-diff { min-height: 360px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px 24px; text-align: center; gap: 14px; background: linear-gradient(135deg, var(--surface), var(--bg)); }
#eva-boot-gate .empty-diff-icon { color: var(--dim); }
#eva-boot-gate .empty-diff h2 { font-size: 1.15rem; font-weight: 500; }
#eva-boot-gate .empty-diff p { max-width: 480px; font-size: .875rem; line-height: 1.7; color: var(--muted); }
#eva-boot-gate .empty { padding: 32px 16px; color: var(--muted); text-align: center; font-size: .8125rem; }
#eva-boot-gate .empty p { margin-bottom: 10px; }

/* Collapsible Context & Owner Note */
#eva-boot-gate .workbench-context { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
#eva-boot-gate .context-toggle { display: flex; align-items: center; gap: 8px; width: 100%; padding: 11px 14px; text-align: left; color: var(--muted); font-size: .8125rem; }
#eva-boot-gate .context-toggle svg:last-child { margin-left: auto; }
#eva-boot-gate .focus-context { border-top: 1px solid var(--border); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
#eva-boot-gate .context-section { padding: 14px; border-bottom: 1px solid var(--border-soft); }
#eva-boot-gate .context-section:last-child { grid-column: 1 / -1; border-bottom: 0; }
#eva-boot-gate .context-section h3 { font: .6875rem var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 9px; }
#eva-boot-gate .context-section p { color: var(--muted); font-size: .8125rem; line-height: 1.65; }
#eva-boot-gate .context-section textarea { width: 100%; resize: vertical; min-height: 75px; background: var(--bg); border: 1px solid var(--border); border-radius: 5px; padding: 9px; font-size: .8125rem; line-height: 1.6; }
#eva-boot-gate .caller-card { padding: 9px; border: 1px solid var(--border); border-radius: 5px; text-align: left; width: 100%; margin-bottom: 6px; background: var(--surface-2); }
#eva-boot-gate .caller-card span { display: block; font: .75rem var(--mono); overflow-wrap: anywhere; }
#eva-boot-gate .caller-card p { font-size: .75rem; margin-top: 4px; }

/* EVA .eva/development/ Panel (strictly separate from coreDigest seal) */
#eva-boot-gate .eva-dev-panel { border: 1px solid #355447; border-radius: var(--radius); background: var(--surface); overflow: hidden; }
#eva-boot-gate .eva-dev-body { padding: 12px var(--pad); display: flex; flex-direction: column; gap: 9px; max-height: 300px; overflow: auto; }
#eva-boot-gate .eva-dev-row { padding: 10px 12px; border-radius: 6px; border: 1px solid var(--border-soft); background: var(--bg); display: flex; flex-direction: column; gap: 6px; font-size: .8125rem; }
#eva-boot-gate .eva-dev-row.is-err { border-color: #723c3c; background: #211314; }
#eva-boot-gate .eva-dev-row.is-warn { border-color: #5f4b25; background: #1b180f; }
#eva-boot-gate .eva-dev-row code { font: .75rem var(--mono); color: var(--accent); }
#eva-boot-gate .eva-dev-row pre { margin: 4px 0 0; padding: 9px; border-radius: 5px; background: var(--surface); border: 1px solid var(--border-soft); font: .75rem/1.5 var(--mono); overflow: auto; max-height: 180px; color: var(--muted); }
#eva-boot-gate .eva-dev-actions { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 2px; }
#eva-boot-gate .eva-dev-note { font-size: .75rem; color: var(--dim); line-height: 1.5; }

/* Bottom Sticky Bar & Footer */
#eva-boot-gate .bottom-bar { position: sticky; bottom: 12px; z-index: 12; margin-top: 16px; display: flex; align-items: center; gap: 14px; padding: 12px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 8px 24px #0005; }
#eva-boot-gate .bottom-state { display: flex; gap: 11px; align-items: center; flex: 1; min-width: 0; }
#eva-boot-gate .gate-state-icon { flex: 0 0 auto; width: 32px; display: grid; place-items: center; }
#eva-boot-gate .bottom-state strong { font-size: .8125rem; font-weight: 550; display: block; }
#eva-boot-gate .bottom-state p { color: var(--muted); font-size: .75rem; }
#eva-boot-gate .bottom-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
#eva-boot-gate .bottom-bar .primary { min-height: 39px; padding: 9px 16px; }
#eva-boot-gate .footer-meta { display: flex; justify-content: space-between; gap: 10px; font: .6875rem var(--mono); color: var(--dim); padding: 14px 3px 0; flex-wrap: wrap; }
#eva-boot-gate .keyboard-hint { display: flex; gap: 12px; }
#eva-boot-gate kbd { font: .6875rem var(--mono); padding: 1px 5px; border: 1px solid var(--border); border-radius: 3px; color: var(--muted); }

/* Inspector Drawer */
#eva-boot-gate .drawer-backdrop { position: fixed; inset: 0; z-index: 40; background: #0009; backdrop-filter: blur(3px); }
#eva-boot-gate .inspector-drawer { position: fixed; right: 0; top: 0; bottom: 0; width: min(1060px, 89vw); z-index: 41; background: var(--bg); border-left: 1px solid var(--border); padding: 20px; overflow: auto; box-shadow: -20px 0 70px #0006; }
#eva-boot-gate .drawer-title { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 16px; }
#eva-boot-gate .drawer-title h2 { font-size: 1rem; font-weight: 550; }
#eva-boot-gate .drawer-body { display: grid; gap: var(--gap); }
#eva-boot-gate .drawer-body .code-scroll { height: 50vh; max-height: none; }
#eva-boot-gate .drawer-note { display: flex; flex-direction: column; gap: 7px; }
#eva-boot-gate .drawer-note label { color: var(--muted); font-size: .8125rem; }
#eva-boot-gate .drawer-note textarea { width: 100%; resize: vertical; padding: 11px; border: 1px solid var(--border); background: var(--surface); border-radius: var(--radius); min-height: 75px; font-size: .875rem; }

/* Scoped Modal Dialog */
#eva-boot-gate .gate-modal { width: min(580px, calc(100vw - 30px)); padding: 0; background: var(--surface); border: 1px solid var(--border); border-radius: calc(var(--radius) + 2px); color: var(--text); box-shadow: 0 30px 100px #000a; margin: auto; }
#eva-boot-gate .gate-modal::backdrop { background: #000a; backdrop-filter: blur(4px); }
#eva-boot-gate .modal-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--border); }
#eva-boot-gate .modal-head h2 { font-size: 1.05rem; font-weight: 500; }
#eva-boot-gate .modal-body { padding: 20px; max-height: 72vh; overflow: auto; }
#eva-boot-gate .modal-body > p { color: var(--muted); font-size: .875rem; line-height: 1.7; }
#eva-boot-gate .modal-body .code-path { padding: 11px; border: 1px solid var(--border); background: var(--bg); border-radius: 4px; font: .8125rem/1.6 var(--mono); overflow-wrap: anywhere; margin-bottom: 12px; color: var(--accent); }
#eva-boot-gate .modal-actions { display: flex; justify-content: flex-end; align-items: center; gap: 9px; padding: 14px 20px; border-top: 1px solid var(--border); }
#eva-boot-gate .modal-highlight { padding: 12px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 5px; margin-top: 14px; font: .75rem/1.75 var(--mono); color: var(--muted); overflow-wrap: anywhere; }
#eva-boot-gate .diagnostic-list { padding-left: 18px; margin: 12px 0; color: var(--text); font-size: .875rem; line-height: 1.75; }
#eva-boot-gate .diagnostic-remedy { border-left: 2px solid var(--accent); padding: 10px 12px; background: var(--surface-2); margin: 14px 0; font-size: .875rem; color: var(--muted); line-height: 1.65; }
#eva-boot-gate .snapshot-pair { display: grid; grid-template-columns: minmax(0, 1fr) 22px minmax(0, 1fr); gap: 10px; padding: 16px; align-items: center; }
#eva-boot-gate .snapshot-pair strong { display: block; font: 1.05rem var(--mono); margin-bottom: 4px; }
#eva-boot-gate .snapshot-pair code { display: block; font: .75rem var(--mono); color: var(--muted); overflow-wrap: anywhere; }
#eva-boot-gate .snapshot-pair .setting-label { display: block; color: var(--muted); font-size: .75rem; margin-bottom: 4px; }
#eva-boot-gate .snapshot-divider { color: var(--dim); }
#eva-boot-gate .snapshot-note { padding: 0 16px 14px; color: var(--dim); font-size: .75rem; }
#eva-boot-gate .modal-spacer-top { margin-top: 12px; }
#eva-boot-gate .modal-spacer-bottom { margin-bottom: 14px; }
#eva-boot-gate .copy-fallback { width: 100%; min-height: 200px; padding: 12px; margin-top: 12px; background: var(--bg); color: var(--text); border: 1px solid var(--border); font: .75rem/1.65 var(--mono); resize: vertical; }

/* Member & Tenant "Wat is er nieuw?" View */
#eva-boot-gate .updates-shell { width: min(760px, calc(100% - 48px)); margin: 36px auto; }
#eva-boot-gate .updates-header { display: flex; align-items: center; justify-content: space-between; padding: 0 0 22px; border-bottom: 1px solid var(--border); }
#eva-boot-gate .updates-brand { display: flex; align-items: center; gap: 10px; color: var(--accent); }
#eva-boot-gate .updates-brand strong { font-size: 1.1rem; letter-spacing: .14em; }
#eva-boot-gate .version-label { font: .75rem var(--mono); padding: 5px 9px; border: 1px solid var(--border); border-radius: 4px; color: var(--muted); }
#eva-boot-gate .updates-intro { margin: 28px 0 22px; }
#eva-boot-gate .updates-intro h1 { font-size: 1.75rem; line-height: 1.3; font-weight: 500; letter-spacing: -.02em; margin: 8px 0 10px; }
#eva-boot-gate .updates-intro > p:not(.eyebrow) { color: var(--muted); font-size: 1rem; line-height: 1.65; }
#eva-boot-gate .updates-range { display: inline-block; font-size: .8125rem; color: var(--dim); margin-top: 9px; }
#eva-boot-gate .human-overview { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 22px; }
#eva-boot-gate .human-overview h2, #eva-boot-gate .changelog-heading h2 { font-size: 1rem; font-weight: 600; }
#eva-boot-gate .human-overview > p { font-size: .9375rem; line-height: 1.7; color: var(--muted); margin-top: 10px; }
#eva-boot-gate .human-summary { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
#eva-boot-gate .human-summary li { display: grid; grid-template-columns: 68px minmax(0, 1fr); gap: 12px; align-items: baseline; }
#eva-boot-gate .summary-version { font: .75rem var(--mono); color: var(--accent); }
#eva-boot-gate .human-summary p { font-size: .9375rem; line-height: 1.6; color: var(--text); }
#eva-boot-gate .user-changelog { margin-top: 28px; }
#eva-boot-gate .changelog-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--border); padding-bottom: 12px; }
#eva-boot-gate .changelog-heading > span { font-size: .8125rem; color: var(--dim); }
#eva-boot-gate .user-release { padding: 22px 0; border-bottom: 1px solid var(--border-soft); }
#eva-boot-gate .user-release header { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
#eva-boot-gate .user-release h3 { font-size: .9375rem; font-weight: 600; }
#eva-boot-gate .user-release time { font-size: .8125rem; color: var(--dim); }
#eva-boot-gate .user-release ul { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-direction: column; gap: 11px; }
#eva-boot-gate .user-release li { display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: 12px; font-size: .9375rem; line-height: 1.6; color: var(--muted); }
#eva-boot-gate .change-kind { font-size: .6875rem; line-height: 1.6; align-self: start; margin-top: 2px; border: 1px solid var(--border); border-radius: 3px; padding: 2px 6px; text-align: center; color: var(--muted); }
#eva-boot-gate .change-kind.nieuw { color: var(--accent); background: var(--surface-2); }
#eva-boot-gate .change-kind.opgelost { color: var(--green); }
#eva-boot-gate .no-updates { padding: 20px 0; color: var(--dim); font-size: .875rem; }
#eva-boot-gate .updates-footer { position: sticky; bottom: 0; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; padding: 16px 0; background: var(--bg); border-top: 1px solid var(--border); margin-top: 22px; }
#eva-boot-gate .updates-footer > p:not(.action-error) { color: var(--muted); font-size: .8125rem; line-height: 1.6; flex: 1; }
#eva-boot-gate .updates-footer .primary { min-width: 148px; min-height: 42px; font-size: .875rem; }

@media (max-width: 900px) {
  #eva-boot-gate .app-shell { padding: 0 18px 20px; }
  #eva-boot-gate .gate-heading { flex-direction: column; align-items: flex-start; gap: 10px; }
  #eva-boot-gate .heading-side { text-align: left; }
  #eva-boot-gate .release-summary-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  #eva-boot-gate .workbench { grid-template-columns: minmax(220px, 32%) minmax(0, 1fr); }
  #eva-boot-gate .brand-label, #eva-boot-gate .brand-divider { display: none; }
  #eva-boot-gate .boot-preview { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  #eva-boot-gate .diff-mode-switch { display: none; }
  #eva-boot-gate .workbench { grid-template-columns: minmax(0, 1fr); }
  #eva-boot-gate .files-panel { min-height: 0; }
  #eva-boot-gate .file-list { max-height: 230px; }
  #eva-boot-gate .bottom-bar { flex-direction: column; align-items: stretch; gap: 10px; padding: 12px; bottom: 8px; }
  #eva-boot-gate .bottom-state { width: 100%; }
  #eva-boot-gate .bottom-actions { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; width: 100%; }
  #eva-boot-gate .bottom-actions .btn { width: 100%; min-width: 0; padding: 8px 10px; font-size: .8125rem; }
  #eva-boot-gate .bottom-actions .primary { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  #eva-boot-gate .boot-overlay { padding: 12px; }
  #eva-boot-gate .boot-console { max-height: calc(100dvh - 24px); border-radius: 7px; }
  #eva-boot-gate .boot-console-head { padding: 16px 15px 13px; }
  #eva-boot-gate .boot-lines { padding: 10px 14px; }
  #eva-boot-gate .init-line { grid-template-columns: 44px 56px minmax(0, 1fr); gap: 3px 8px; padding: 8px 0; border-bottom: 1px solid var(--border-soft); }
  #eva-boot-gate .init-detail { grid-column: 2 / -1; font-size: .75rem; }
  #eva-boot-gate .boot-console-foot { padding: 13px 14px; gap: 12px; }
  #eva-boot-gate .boot-actions { width: 100%; }
  #eva-boot-gate .boot-actions .primary { flex: 1; min-width: 0; }
  #eva-boot-gate .app-shell { padding: 0 12px 16px; }
  #eva-boot-gate .code-scroll { height: 340px; }
  #eva-boot-gate .code-table .col-ln, #eva-boot-gate .code-table .ln { width: 34px; min-width: 34px; padding: 0 6px 0 2px; }
  #eva-boot-gate .focus-context { grid-template-columns: minmax(0, 1fr); }
  #eva-boot-gate .inspector-drawer { width: 100%; padding: 14px 12px; }
  #eva-boot-gate .updates-shell { width: calc(100% - 28px); margin: 20px auto; }
  #eva-boot-gate .human-summary li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  #eva-boot-gate .user-release li { grid-template-columns: 68px minmax(0, 1fr); gap: 9px; font-size: .875rem; }
  #eva-boot-gate .keyboard-hint { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  #eva-boot-gate *, #eva-boot-gate *::before, #eva-boot-gate *::after { animation: none !important; transition: none !important; }
}
