/* Workspace: MailBox's Evalitic navy, white, and wave design language. */
:root {
  color-scheme: light;
  --navy: #0c1c48; --blue: #2446ac;
  --bg: #f3f6fc; --bg-soft: #fff; --bg-inset: #f1f5fc;
  --border: #d7dfef; --text: #13234b; --muted: #526080;
  --accent: #2446ac; --green: #16623f; --red: #b62346; --orange: #7a5200;
  --purple: #2446ac; --btn: #eef3ff; --btn-hover: #e2eafe;
  --diff-add: #e6f5ed; --diff-del: #fff0f3;
  --diff-add-strong: #ccead9; --diff-del-strong: #f6d4de;
  --shadow: 0 8px 0 -5px #e3e9f6, 0 14px 30px -24px #13234b35;
  --font: "DM Sans", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-d: "Manrope", "DM Sans", -apple-system, "Segoe UI", sans-serif;
  --header-height: 84px; --radius: 16px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--header-height) + 24px); }
body { margin: 0; font: 14px/1.6 var(--font); background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font-family: inherit; }
a, button, input, select, textarea, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
::selection { background: #dbe5ff; color: var(--navy); }
code, pre, .mono { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; }
img { max-width: 100%; }
.ui-icon { width: 21px; height: 21px; flex: 0 0 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 12px; left: 16px; z-index: 100; transform: translateY(-160%); padding: 10px 18px; border-radius: 8px; background: var(--navy); color: #fff; }
.skip-link:focus { transform: none; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
h1, h2, h3 { font-family: var(--font-d); letter-spacing: -.035em; line-height: 1.3; }
h1 { font-size: clamp(26px, 2.4vw, 34px); }
h2 { font-size: 21px; }
h3 { font-size: 16px; }
p { margin: 0 0 14px; }
.eyebrow { display: block; color: var(--blue); font-size: 10px; font-weight: 700; letter-spacing: 1.7px; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* Brand and application shell. */
.topnav { position: sticky; top: 0; z-index: 40; background: #fffffff5; border-bottom: 1px solid #dce3f0; box-shadow: 0 4px 20px #13234b05; backdrop-filter: blur(18px); }
.nav-inner { min-height: var(--header-height); padding: 16px 32px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 14px; color: var(--text); flex-shrink: 0; }
.brand:hover { text-decoration: none; }
.brand-logo { width: 86px; height: 40px; object-fit: contain; background: #fff; }
.brand-text { border-left: 1px solid #d5deef; padding-left: 14px; display: flex; flex-direction: column; }
.brand-name { font: 800 24px/1 var(--font-d); letter-spacing: -.8px; }
.brand-dot { color: var(--blue); }
.brand-tag { color: var(--muted); font-size: 9px; letter-spacing: .2px; margin-top: 7px; }
.header-search { display: flex; align-items: center; width: min(470px, 35vw); background: var(--bg); border: 1px solid var(--border); border-radius: 10px; margin-left: auto; }
.header-search:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px #2446ac12; }
.header-search input[type=text] { background: transparent; border: 0; font-size: 13px; padding: 11px 16px; min-width: 0; box-shadow: none; outline: none; }
.header-search button { display: grid; place-items: center; border: 0; background: none; color: var(--blue); padding: 10px 13px; cursor: pointer; border-radius: 8px; }
.header-note { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; }
.nav-right { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.nav-bell, .menu-toggle { position: relative; display: grid; place-items: center; width: 42px; height: 42px; color: var(--blue); border: 1px solid var(--border); background: var(--bg); border-radius: 11px; cursor: pointer; }
.nav-bell:hover, .menu-toggle:hover { background: #e8efff; }
.bell-count { position: absolute; top: -6px; right: -6px; background: var(--blue); color: #fff; border: 2px solid #fff; border-radius: 12px; font-size: 10px; padding: 0 5px; min-width: 22px; text-align: center; }
.usermenu { position: relative; }
.usermenu summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 4px 10px 4px 4px; border: 1px solid var(--border); border-radius: 12px; background: #fff; }
.usermenu summary::-webkit-details-marker { display: none; }
.usermenu summary > .ui-icon { width: 15px; height: 15px; flex-basis: 15px; }
.user-chip-name { font-size: 12px; font-weight: 600; line-height: 1.3; }
.user-chip-name small { display: block; color: var(--muted); font-size: 10px; font-weight: 400; margin-top: 4px; }
.usermenu-drop { position: absolute; right: 0; top: calc(100% + 10px); background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 8px; min-width: 240px; max-width: calc(100vw - 32px); box-shadow: 0 16px 40px #13234b20; z-index: 50; }
.usermenu-drop a { display: flex; align-items: center; gap: 10px; padding: 10px; color: var(--text); font-size: 12px; border-radius: 8px; }
.usermenu-drop a:hover { background: var(--bg-inset); text-decoration: none; }
.usermenu-name { padding: 8px 10px 12px; border-bottom: 1px solid var(--border); margin-bottom: 6px; overflow-wrap: anywhere; }
.usermenu-name span { display: block; }
.avatar { display: inline-flex; width: 32px; height: 32px; border-radius: 10px; background: var(--blue); color: #fff; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; flex-shrink: 0; }
.usermenu .avatar { width: 34px; height: 34px; }
.menu-toggle { display: none; }
.workspace-shell { display: flex; align-items: stretch; min-height: calc(100dvh - var(--header-height)); }
.workspace-rail { display: flex; flex-direction: column; gap: 5px; flex: 0 0 208px; position: sticky; top: var(--header-height); align-self: flex-start; height: calc(100dvh - var(--header-height)); overflow-y: auto; padding: 28px 12px 16px; background: var(--navy); color: #ccd6ef; scrollbar-width: thin; scrollbar-color: #526080 #0c1c48; }
.rail-heading { margin: 0 12px 16px; color: #acbee3; font-size: 10px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; }
.workspace-rail > a { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 10px 12px; border-radius: 9px; color: inherit; font-size: 12px; font-weight: 500; }
.workspace-rail > a:hover { color: #fff; background: #ffffff10; text-decoration: none; }
.workspace-rail > a.selected { color: #fff; background: var(--blue); }
.workspace-rail > a:focus-visible { outline-color: #c3d3ff; outline-offset: -2px; }
.rail-count { margin-left: auto; background: #ffffff26; color: #fff; border-radius: 6px; padding: 1px 6px; font-size: 10px; }
.rail-note { margin: auto 8px 18px; padding: 32px 8px 0; color: #a7b9df; font-size: 11px; line-height: 1.8; }
.rail-note > .ui-icon { color: #b8cdff; margin-bottom: 12px; }
.rail-note b { display: block; color: #fff; font-family: var(--font-d); font-size: 12px; margin-bottom: 4px; }
.workspace-rail .rail-signout { border-top: 1px solid #ffffff1a; border-radius: 0; padding-top: 16px; }
.workspace-body { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.main { flex: 1; width: 100%; max-width: 1480px; margin: 0 auto; padding: 28px clamp(20px, 2.5vw, 40px) 52px; min-width: 0; }
.footer { margin-top: 0; background: #fff; color: var(--muted); }
.footer-wave { height: 32px; background: var(--bg); -webkit-mask: url("img/section-wave.svg") center / 100% 100% no-repeat; mask: url("img/section-wave.svg") center / 100% 100% no-repeat; transform: rotate(180deg); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding-top: 32px; padding-bottom: 32px; }
.footer .brand-name { font-size: 21px; }
.footer-copy { color: var(--muted); font-size: 12px; line-height: 1.9; }
.footer-copy small { font-size: 10px; }
.footer-link { display: inline-flex; align-items: center; gap: 8px; color: var(--blue); font-size: 12px; font-weight: 700; border-bottom: 1px solid #ced9ef; padding: 6px 0; }
.footer-link:hover { border-color: var(--blue); text-decoration: none; }
.footer-link .ui-icon { width: 16px; height: 16px; flex-basis: 16px; }

/* MailBox wave-edged sections. */
.wave-panel { position: relative; isolation: isolate; overflow: hidden; }
.wave-panel::after { content: ""; position: absolute; bottom: -1px; left: -1px; width: calc(100% + 2px); height: 45px; z-index: 0; background: var(--wave-color, #f3f6fc); -webkit-mask: url("img/section-wave.svg") center / 100% 100% no-repeat; mask: url("img/section-wave.svg") center / 100% 100% no-repeat; pointer-events: none; }
.wave-panel > * { position: relative; z-index: 1; }
.view-heading { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 22px; min-height: 180px; padding: 28px 30px 56px; margin-bottom: 24px; border-radius: 16px 16px 0 0; background: radial-gradient(ellipse at 90% 30%, #2446ac, transparent 70%), var(--navy); color: #fff; }
.view-heading > div:first-child { flex: 1 1 240px; min-width: 0; }
.view-heading h1 { color: #fff; margin: 9px 0; overflow-wrap: anywhere; }
.view-heading p { color: #c4d2ec; font-size: 13px; margin: 0; max-width: 600px; }
.view-heading .eyebrow { color: #c1d3ff; font-size: 10px; }
.heading-actions, .toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.toolbar { justify-content: space-between; margin-bottom: 20px; }
.toolbar > p { margin: 0; }

/* Shared cards, grids, and feedback. */
.flash { padding: 13px 18px; border-radius: 12px; margin-bottom: 20px; border: 1px solid; }
.flash-success { background: #e6f5ed; color: var(--green); border-color: #b4ddc6; }
.flash-error { background: #fff0f3; color: #922a43; border-color: #efc3cf; }
.box { min-width: 0; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 22px; box-shadow: var(--shadow); }
.box-head { padding: 17px 20px; border-bottom: 1px solid #e5eaf5; font-weight: 700; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; border-radius: 16px 16px 0 0; background: linear-gradient(110deg, #fff, #f7f9ff); }
.box-head .ui-icon { color: var(--blue); margin-right: 6px; }
.box-body { padding: 22px; }
.box-body > :first-child { margin-top: 0; }
.box-body > :last-child { margin-bottom: 0; }
.box-row { padding: 15px 20px; border-bottom: 1px solid #e5eaf5; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; overflow-wrap: anywhere; }
.box-row:last-child { border-bottom: 0; border-radius: 0 0 16px 16px; }
.box-row:hover { background: #f8faff; }
.box-row > div { min-width: 0; }
.box-row > a { overflow-wrap: anywhere; }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cols { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(260px, 1fr); gap: 24px; align-items: start; }
.cols > div, .grid > div { min-width: 0; }
.stat { text-align: left; padding: 20px; position: relative; border-radius: 14px 30px 14px 14px; transition: border-color .2s, box-shadow .2s; }
.stat:hover { border-color: #a7b9e3; box-shadow: 0 8px 0 -5px #d6e0f5, 0 14px 35px -24px #13234b55; text-decoration: none; }
.stat-icon { display: grid; place-items: center; width: 38px; height: 38px; background: #edf2ff; color: var(--blue); border-radius: 11px; margin-bottom: 14px; }
.stat b { display: block; font: 800 32px/1.2 var(--font-d); color: var(--navy); margin-bottom: 6px; }
.stat span:not(.stat-icon) { color: var(--muted); font-size: 12px; }
.empty-state { padding: 32px 24px; text-align: center; }
.empty-state > .ui-icon { width: 36px; height: 36px; color: var(--blue); margin-bottom: 12px; }
.empty-state h2 { font-size: 18px; margin: 0 0 8px; }
.empty-state p { color: var(--muted); font-size: 13px; max-width: 430px; margin: 0 auto 18px; }

/* Actions and forms. */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 9px 16px; background: var(--btn); border: 1px solid #ced9ef; color: #173584; border-radius: 9px; cursor: pointer; font-size: 13px; line-height: 1.5; font-weight: 600; transition: background .2s, box-shadow .2s, transform .2s; text-align: center; }
.btn:hover { background: var(--btn-hover); box-shadow: 0 5px 16px #13234b12; transform: translateY(-1px); text-decoration: none; }
.btn > .ui-icon { width: 17px; height: 17px; flex-basis: 17px; }
.btn-primary { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: 0 6px 16px #2446ac20; }
.btn-primary:hover { background: #173584; color: #fff; }
.btn-danger { background: #fff0f3; color: #9b1f3c; border-color: #efc3cf; }
.btn-danger:hover { background: #ffe0e8; color: #9b1f3c; }
.btn-white { background: #fff; color: var(--blue); border-color: #fff; }
.btn-white:hover { background: #edf2ff; }
.btn-on-dark { background: #ffffff0d; color: #fff; border-color: #ffffff40; }
.btn-on-dark:hover { background: #ffffff20; }
.btn-sm { min-height: 32px; padding: 5px 11px; font-size: 12px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn:disabled:hover { transform: none; box-shadow: none; }
input[type=text], input[type=password], input[type=email], input[type=file], select, textarea {
  width: 100%; min-height: 44px; background: #fbfcff; color: var(--text); border: 1px solid #cdd7eb;
  border-radius: 9px; padding: 10px 12px; font-size: 14px; transition: border-color .2s, box-shadow .2s;
}
input::placeholder, textarea::placeholder { color: #657393; }
input:focus, select:focus, textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px #2446ac18; outline: none; }
input[type=checkbox], input[type=radio] { accent-color: var(--blue); }
input[type=checkbox]:focus-visible, input[type=radio]:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
input[type=file]::file-selector-button { border: 0; background: #edf2ff; color: var(--blue); padding: 5px 10px; margin-right: 10px; border-radius: 5px; cursor: pointer; }
textarea { min-height: 120px; resize: vertical; line-height: 1.6; }
select { max-width: 100%; }
label { display: block; margin: 18px 0 7px; font-weight: 600; font-size: 13px; color: #293d68; }
.field { margin-bottom: 20px; }
.field label { margin-top: 0; }
.inline-form { display: inline; }
.form-narrow { max-width: 680px; }
.form-narrow .box-body { padding: 28px; }
.form-narrow form > label:first-of-type { margin-top: 0; }
.field-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.field-row > * { width: auto; max-width: 100%; }
.field-row > input[type=text], .field-row > select, .field-row > input[type=file] { min-width: 150px; flex: 1 1 150px; }
.field-row label { font-weight: 500; }
.filter-tabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 6px; border: 1px solid var(--border); border-radius: 12px; width: fit-content; background: #fff; margin-bottom: 20px; }
.filter-tabs .btn:not(.btn-primary) { border-color: transparent; background: transparent; }
.filter-tabs .btn:not(.btn-primary):hover { background: var(--bg-inset); }
.toolbar .filter-tabs { margin-bottom: 0; }
.repo-search { display: flex; align-items: center; gap: 10px; flex: 1 1 300px; max-width: 520px; }
.repo-search input { min-width: 0; }
.repo-search .btn { min-height: 44px; }
.repository-row { padding: 22px; gap: 16px; }
.repository-icon { display: grid; place-items: center; width: 44px; height: 44px; flex-shrink: 0; border-radius: 12px; background: #edf2ff; color: var(--blue); }
.repository-info { flex: 1; min-width: 180px; }
.repository-info > a { font-size: 15px; font-weight: 700; }
.repository-info .small { margin-top: 6px; }
.repository-meta { margin-left: auto; font-size: 11px; color: var(--muted); }

/* Tables, state labels, and repository navigation. */
.table-scroll { overflow-x: auto; border-radius: var(--radius); scrollbar-width: thin; }
table.list { width: 100%; border-collapse: collapse; font-size: 13px; }
table.list th, table.list td { text-align: left; padding: 14px 18px; border-bottom: 1px solid #e5eaf5; vertical-align: top; }
table.list th { background: #f1f5fc; color: var(--muted); font-size: 10px; letter-spacing: .6px; text-transform: uppercase; font-weight: 700; }
table.list tr:hover td { background: #f6f8fe; }
table.list tr:last-child td { border-bottom: 0; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 600; border: 1px solid transparent; vertical-align: middle; }
.badge-open { background: #e6f5ed; color: var(--green); border-color: #b4ddc6; }
.badge-merged { background: #edf2ff; color: var(--blue); border-color: #bfceef; }
.badge-closed { background: #fff0f3; color: var(--red); border-color: #efc3cf; }
.badge-neutral { background: #f1f5fc; color: var(--muted); border-color: var(--border); }
.badge-warn { background: #fff6e5; color: var(--orange); border-color: #f3cf87; }
.label-chip { display: inline-block; background: #edf2ff; color: var(--accent); border-radius: 999px; padding: 2px 10px; font-size: 12px; margin-right: 4px; }
.repo-head { margin-bottom: 16px; }
.repo-head h1 { font-size: clamp(22px, 2.2vw, 30px); font-weight: 500; }
.repo-head h1 a { color: #fff; }
.repo-head h1 > .ui-icon { margin-right: 6px; color: #b8cdff; }
.repo-head .muted { color: #c4d2ec; font-size: 13px; }
.repo-head .badge-neutral { background: #ffffff12; color: #dbe5fa; border-color: #ffffff40; }
.repo-tabs { display: flex; gap: 4px; padding: 6px; border: 1px solid var(--border); border-radius: 12px; margin-bottom: 22px; overflow-x: auto; background: #fff; scrollbar-width: thin; }
.repo-tabs a { display: inline-flex; align-items: center; justify-content: center; gap: 7px; flex-shrink: 0; padding: 9px 13px; color: var(--muted); border-radius: 8px; font-size: 12px; }
.repo-tabs a .ui-icon { width: 16px; height: 16px; flex-basis: 16px; }
.repo-tabs a:hover { text-decoration: none; background: #f3f6fc; color: var(--blue); }
.repo-tabs a.active { background: #edf2ff; color: var(--blue); font-weight: 700; box-shadow: inset 0 -2px var(--blue); }
.filelist td.icon { width: 24px; color: var(--blue); }
.clone-box { background: var(--bg-inset); border: 1px solid var(--border); border-radius: 9px; padding: 8px 12px; font-family: ui-monospace, Consolas, monospace; font-size: 12px; overflow-x: auto; white-space: nowrap; max-width: 100%; }
.ref-select { display: inline-block; width: auto; }
.breadcrumb { font-size: 13px; margin-bottom: 16px; overflow-wrap: anywhere; }

/* Code and review retain semantic added/deleted colors. */
.markdown { line-height: 1.8; overflow-wrap: anywhere; }
.markdown pre { background: var(--bg-inset); padding: 16px; border-radius: 10px; overflow-x: auto; }
.markdown code { background: var(--bg-inset); border-radius: 4px; padding: 2px 5px; }
.markdown pre code { padding: 0; background: none; }
.markdown blockquote { border-left: 3px solid #b7c7ed; margin: 12px 0; padding: 4px 16px; color: var(--muted); }
.markdown table { display: block; max-width: 100%; overflow-x: auto; }
.code-view { counter-reset: ln; background: #fff; border: 1px solid var(--border); border-radius: 12px; overflow-x: auto; }
.code-view pre { margin: 0; padding: 18px; font-size: 12.5px; }
.diff-file { border: 1px solid var(--border); border-radius: 12px; margin-bottom: 22px; overflow-x: auto; background: #fff; scroll-margin-top: calc(var(--header-height) + 16px); }
.diff-file-head { background: #f1f5fc; padding: 14px 16px; font-family: ui-monospace, Consolas, monospace; font-size: 13px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px; overflow-wrap: anywhere; }
.diff-table { width: 100%; border-collapse: collapse; font-family: ui-monospace, Consolas, monospace; font-size: 12.5px; }
.diff-table td { padding: 3px 8px; white-space: pre-wrap; overflow-wrap: anywhere; vertical-align: top; }
.diff-table td:last-child { min-width: 160px; }
.diff-ln { width: 44px; min-width: 44px; text-align: right; color: var(--muted); user-select: none; background: #f1f5fc; border-right: 1px solid var(--border); }
.diff-table td.diff-ln { white-space: normal; }
.diff-add { background: var(--diff-add); }
.diff-add .diff-ln { background: var(--diff-add-strong); color: #16623f; }
.diff-del { background: var(--diff-del); }
.diff-del .diff-ln { background: var(--diff-del-strong); color: #922a43; }
.diff-hunk td { background: #edf2ff; color: #526080; padding: 8px 12px; }
.diff-stats { color: var(--muted); font-size: 12px; }
.added { color: var(--green); }
.deleted { color: var(--red); }
.comment-btn { opacity: .6; cursor: pointer; color: #fff; background: var(--accent); border: 0; border-radius: 5px; width: 22px; height: 22px; line-height: 20px; font-size: 15px; padding: 0; }
tr:hover .comment-btn, .comment-btn:focus-visible { opacity: 1; }
.inline-comment td { background: #f7f9ff; }
.diff-table .inline-comment td, .diff-table .comment-form-row td { white-space: normal; font-family: var(--font); }
.inline-comment-box { border: 1px solid var(--border); border-radius: 10px; margin: 8px 0; padding: 12px 16px; background: #fff; font-family: var(--font); }
.inline-comment-box.resolved { border-style: dashed; }
.comment-form-row td { background: #f7f9ff; padding: 14px; }
.comment { border: 1px solid var(--border); border-radius: 12px; margin-bottom: 16px; background: #fff; box-shadow: var(--shadow); }
.comment-head { background: #f1f5fc; padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: 12px; border-radius: 12px 12px 0 0; }
.comment-body { padding: 18px; }
.timeline-note { color: var(--muted); font-size: 12px; margin: 16px 0; padding-left: 16px; border-left: 2px solid #cdd7eb; }
.merge-box { border: 1px solid var(--border); border-radius: 12px; margin: 20px 0; background: #fff; }
.merge-ok { border-color: #b4ddc6; }
.merge-bad { border-color: #efc3cf; }
.merge-head { padding: 16px 20px; font-weight: 600; }
.merge-ok .merge-head { color: var(--green); background: #e6f5ed; border-radius: 12px 12px 0 0; }
.merge-bad .merge-head { color: var(--red); background: #fff0f3; border-radius: 12px 12px 0 0; }
.merge-body { padding: 18px 20px; }
.graph-pre { font-size: 12.5px; line-height: 1.6; overflow-x: auto; padding: 18px; margin: 0; }
.help-block { background: var(--bg-inset); border: 1px dashed #b8c8eb; border-radius: 12px; padding: 18px; font-size: 13px; overflow-x: auto; }
.conflict-pre { background: var(--bg-inset); border: 1px solid var(--border); border-radius: 10px; padding: 16px; overflow-x: auto; font-size: 12px; max-height: 420px; }
.notification-unread { background: #edf2ff; }
.notification-dot { width: 8px; height: 8px; border-radius: 50%; background: #cdd7eb; flex-shrink: 0; }
.notification-unread .notification-dot { background: var(--blue); box-shadow: 0 0 0 4px #2446ac0d; }

/* Welcoming, two-column authentication. */
.auth-page { background: #fff; }
.auth-page .main { max-width: none; padding: 0; }
.auth-page .flash { margin: 20px 24px; }
.auth-grid { display: grid; grid-template-columns: 1fr 1fr; min-height: max(690px, calc(100dvh - var(--header-height) - 66px)); }
.auth-story { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 65px clamp(28px, 6vw, 100px) 85px; background: radial-gradient(ellipse at 80% 25%, #2446ac, transparent 75%), var(--navy); color: #fff; --wave-color: #fff; }
.auth-story::after { height: 50px; }
.kicker { display: inline-flex; gap: 10px; align-items: center; font-size: 10px; font-weight: 700; letter-spacing: 1.7px; text-transform: uppercase; color: #c1d3ff; }
.kicker > span { width: 7px; height: 7px; flex-shrink: 0; background: #c1d3ff; border-radius: 50%; box-shadow: 0 0 0 5px #ffffff0d; }
.auth-story h1 { font-size: clamp(34px, 3.7vw, 56px); font-weight: 700; line-height: 1.2; margin: 24px 0; }
.auth-story h1 em { font-style: normal; color: #b6ccff; }
.auth-story > p { color: #c4d2ec; font-size: 14px; line-height: 1.9; max-width: 400px; }
.auth-benefits { display: grid; gap: 18px; margin: 28px 0 40px; }
.auth-benefits > span { display: flex; gap: 12px; align-items: center; color: #dbe5fa; font-size: 12px; }
.auth-benefits .ui-icon { color: #b8cdff; }
.auth-story > small { color: #b1c3e6; font-size: 11px; }
.auth-form { display: grid; place-items: center; padding: 55px 35px 75px; background: #fff; }
.login-card { width: min(100%, 370px); }
.login-icon { display: grid; place-items: center; width: 52px; height: 52px; background: #edf2ff; color: var(--blue); border-radius: 14px; margin-bottom: 28px; }
.login-icon .ui-icon { width: 26px; height: 26px; }
.login-card h2 { font-size: 32px; margin: 14px 0 10px; }
.login-card .sub { color: var(--muted); font-size: 14px; line-height: 1.8; margin-bottom: 28px; }
.login-card input { min-height: 46px; }
.login-card .btn { min-height: 46px; margin-top: 6px; }
.login-help { margin: 22px 0 0; color: var(--muted); font-size: 12px; line-height: 1.8; }
.login-security { display: flex; align-items: center; gap: 8px; margin-top: 26px; padding-top: 22px; border-top: 1px solid #e5eaf5; color: var(--muted); font-size: 11px; }
.login-security .ui-icon { width: 16px; height: 16px; flex-basis: 16px; color: var(--blue); }

@media (min-width: 1600px) { .nav-inner { padding-left: 40px; padding-right: 40px; } }
@media (max-width: 1200px) {
  .nav-inner { padding-left: 24px; padding-right: 24px; gap: 18px; }
  .workspace-rail { flex-basis: 188px; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cols { grid-template-columns: minmax(0, 1.6fr) minmax(240px, 1fr); }
}
@media (max-width: 1000px) {
  .header-search { width: min(330px, 30vw); }
  .cols { grid-template-columns: minmax(0, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .user-chip-name { display: none; }
  .auth-story { padding-left: 36px; padding-right: 28px; }
}
@media (max-width: 760px) {
  :root { --header-height: 74px; }
  .nav-inner { padding: 14px 18px; gap: 12px; }
  .brand { gap: 10px; }
  .brand-logo { width: 60px; height: 35px; }
  .brand-text { padding-left: 10px; }
  .brand-name { font-size: 21px; }
  .brand-tag { font-size: 8px; margin-top: 5px; }
  .header-search, .header-note { display: none; }
  .nav-right { gap: 9px; }
  .nav-bell, .menu-toggle { width: 36px; height: 36px; border-radius: 9px; }
  .usermenu summary { padding: 3px; }
  .usermenu summary > .ui-icon { display: none; }
  .usermenu .avatar { width: 28px; height: 28px; }
  .menu-toggle { display: grid; }
  .workspace-shell { flex-direction: column; }
  .workspace-rail { flex: 0 0 auto; position: static; height: auto; flex-direction: row; flex-wrap: wrap; padding: 12px; gap: 5px; }
  .workspace-rail > a { flex: 1 1 150px; min-height: 42px; }
  .workspace-rail .rail-heading, .rail-note, .workspace-rail .rail-signout { display: none; }
  .js-ready .workspace-rail:not(.is-open) { display: none; }
  .main { padding: 22px 18px 40px; }
  .view-heading { min-height: 175px; padding: 24px 22px 58px; gap: 18px; }
  .view-heading h1 { font-size: 27px; }
  .view-heading p { font-size: 12px; }
  .view-heading .eyebrow { font-size: 9px; letter-spacing: 1px; }
  .heading-actions .btn { font-size: 12px; }
  .grid, .cols { gap: 16px; }
  .grid-2, .grid-3 { grid-template-columns: minmax(0, 1fr); }
  .stat { padding: 18px; margin-bottom: 18px; }
  .stat b { font-size: 28px; }
  .stat span:not(.stat-icon) { font-size: 11px; }
  .box-head, .box-row { padding: 14px 16px; }
  .box-body, .form-narrow .box-body { padding: 20px; }
  .repo-tabs a { padding: 8px 11px; }
  table.list th, table.list td { padding: 12px; }
  .repository-meta { width: 100%; margin-left: 60px; }
  .repository-info { min-width: 140px; }
  .footer-bottom { padding: 26px 24px; gap: 22px; }
  .footer-copy { width: 100%; }
  .auth-grid { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .auth-story { padding: 42px 24px 75px; }
  .auth-story h1 { font-size: 38px; margin: 18px 0; }
  .auth-benefits { gap: 14px; margin: 18px 0 28px; }
  .auth-form { padding: 40px 24px 55px; }
  .login-card { width: min(100%, 420px); }
}
@media (max-width: 400px) {
  .brand-logo { width: 48px; }
  .brand-name { font-size: 18px; }
  .brand-tag { font-size: 7px; }
  .nav-inner { padding-left: 12px; padding-right: 12px; }
  .nav-right { gap: 6px; }
  .main { padding-left: 12px; padding-right: 12px; }
  .grid-4 { gap: 12px; }
  .stat { padding: 14px; }
  .repository-meta { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
  .btn:hover { transform: none; }
}
