:root {
  --ink:#183234;
  --muted:#6c7e80;
  --line:#e1e8e7;
  --green:#147d64;
  --paper:#f5f7f6;
  --dark:#102a2b}
* {
  box-sizing:border-box}
body {
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font:14px/1.55 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
button,input,select,textarea {
  font:inherit}
button,a,summary,input,select {
  outline-offset:4px}
a {
  color:var(--green)}
a:hover {
  color:#0a5545}
button {
  cursor:pointer}
button:disabled {
  cursor:wait;
  opacity:.55}
[hidden] {
  display:none!important}
.topbar {
  height:76px;
  background:var(--dark);
  color:#d8e5e1;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 40px}
.brand {
  display:flex;
  align-items:center;
  gap:12px;
  font-size:19px;
  font-weight:650;
  color:#fff}
.brand:hover {
  color:#fff;
  text-decoration:none}
.brand-mark {
  display:grid;
  place-items:center;
  background:#285346;
  width:34px;
  height:36px;
  border-radius:9px;
  color:#9ee1bc;
  font-size:26px}
.brand-tag {
  font-size:9px;
  letter-spacing:1.4px;
  color:#aac2b9;
  margin-left:10px;
  border:1px solid #45605b;
  padding:4px 7px;
  border-radius:4px}
.environment {
  font-size:12px;
  color:#b8ccc5;
  display:flex;
  align-items:center;
  gap:9px}
.status-dot {
  display:inline-block;
  width:7px;
  height:7px;
  border-radius:50%;
  background:#53bf8c;
  margin-right:5px;
  flex-shrink:0}
.app-shell {
  max-width:1680px;
  padding:36px 40px}
.page-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  margin-bottom:28px}
.eyebrow {
  font-size:10px;
  font-weight:700;
  letter-spacing:1.4px;
  color:var(--muted);
  margin:0 0 10px}
h1 {
  font-size:32px;
  letter-spacing:-1.2px;
  font-weight:650;
  margin:0 0 8px}
.subtitle {
  color:var(--muted);
  margin:0;
  font-size:13px}
.heading-actions {
  display:flex;
  gap:10px}
.button {
  border:1px solid var(--green);
  border-radius:7px;
  background:var(--green);
  color:#fff;
  padding:10px 16px;
  font-weight:600;
  font-size:12px;
  display:inline-block;
  white-space:nowrap}
.button:hover {
  background:#09654f;
  color:#fff;
  text-decoration:none}
.button.secondary {
  background:#fff;
  color:var(--ink);
  border-color:#cbd8d3}
.button.secondary:hover {
  background:#edf4f1}
.metrics {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:18px;
  margin-bottom:26px}
.metric {
  padding:20px 24px;
  border:1px solid var(--line);
  border-radius:11px;
  background:#fff;
  position:relative;
  min-height:127px}
.metric span {
  display:block;
  color:#627672;
  font-size:12px}
.metric strong {
  display:block;
  font-size:32px;
  line-height:1.4;
  font-weight:600;
  letter-spacing:-1px}
.metric small {
  color:#81908c;
  font-size:11px}
.metric:nth-child(3) strong {
  color:#a86d16}
.toolbar {
  display:flex;
  align-items:center;
  gap:14px;
  margin-bottom:20px}
.search-box {
  margin:0;
  display:flex;
  align-items:center;
  gap:10px;
  flex:1;
  max-width:540px;
  background:#fff;
  border:1px solid #d7e0dc;
  padding:9px 13px;
  border-radius:7px}
.search-box span {
  font-size:23px;
  color:#6e827c;
  line-height:1}
.search-box input {
  width:100%;
  border:0;
  background:transparent;
  font-size:12px;
  color:var(--ink);
  outline:none}
.filter-label {
  margin:0 0 0 auto;
  display:flex;
  gap:10px;
  align-items:center;
  font-size:12px;
  color:var(--muted)}
select {
  padding:9px 10px;
  border:1px solid #d7e0dc;
  background:#fff;
  border-radius:6px;
  color:var(--ink);
  max-width:100%}
.tools-menu {
  position:relative}
.tools-menu summary {
  list-style:none;
  background:#fff;
  border:1px solid #d7e0dc;
  border-radius:7px;
  padding:10px 14px;
  font-size:12px;
  cursor:pointer}
.tools-menu summary::after {
  content:' ⌄';
  margin-left:10px}
.tools-menu>div {
  position:absolute;
  right:0;
  top:46px;
  background:#fff;
  border:1px solid var(--line);
  padding:8px;
  min-width:250px;
  z-index:5;
  border-radius:8px;
  box-shadow:0 10px 30px #1233261a}
.tools-menu a {
  display:block;
  padding:7px 10px;
  font-size:12px}
.menu-label {
  display:block;
  padding:5px 10px;
  font-size:10px;
  text-transform:uppercase;
  color:var(--muted);
  letter-spacing:1px}
.tools-menu hr {
  margin:6px 0}
.card {
  border:1px solid var(--line);
  border-radius:10px;
  background:#fff;
  margin-bottom:20px;
  overflow:hidden}
.card .header {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  border-bottom:1px solid var(--line);
  padding:18px 22px;
  font-size:13px;
  font-weight:650;
  color:var(--ink);
  background:#fff}
.server-host {
  color:#8a9994;
  font-size:11px;
  font-weight:400;
  margin-left:15px}
.badge {
  font-size:11px;
  font-weight:500;
  padding:5px 9px;
  border-radius:5px;
  line-height:1.4;
  display:inline-block;
  white-space:normal;
  text-align:left}
.badge.neutral {
  font-size:9px;
  background:#f2f5f3;
  color:#738780;
  letter-spacing:1px}
.badge.current {
  background:#edf6f0;
  color:#267953}
.badge.behind {
  background:#fff5e3;
  color:#a56d1b}
.badge.unknown {
  background:#f0f2f2;
  color:#677878}
.table-scroll {
  overflow:auto}
table {
  width:100%;
  border-collapse:collapse}
th {
  text-align:left}
thead th {
  font-size:10px;
  color:#85968f;
  text-transform:uppercase;
  letter-spacing:1px;
  padding:13px 22px;
  background:#fafcfb;
  font-weight:600;
  border-bottom:1px solid var(--line)}
td {
  padding:16px 22px;
  border-bottom:1px solid #edf1ee;
  vertical-align:middle}
.customer-group th {
  padding:9px 22px;
  background:#f6f9f7;
  color:#526d60;
  font-size:11px;
  font-weight:600;
  border-bottom:1px solid #e8eeeb}
.customer-group span {
  font-weight:400;
  color:#8b9b92;
  margin-left:10px;
  font-size:10px}
.domain-row:hover {
  background:#fafdfb}
.domain {
  font-weight:550;
  color:#23483b;
  display:block;
  min-width:220px}
.domain:hover {
  text-decoration:none;
  color:var(--green)}
.row-arrow {
  font-size:14px;
  color:#a4b5aa;
  margin-left:10px}
.repo {
  color:#7a8e84;
  font:11px/1.7 ui-monospace,SFMono-Regular,monospace;
  overflow-wrap:anywhere}
.version {
  min-width:175px}
.last-update {
  color:#778b80;
  white-space:nowrap;
  font-size:11px;
  font-variant-numeric:tabular-nums}
.notice {
  background:#eaf4ee;
  border:1px solid #ccdfd2;
  border-radius:7px;
  padding:13px 18px;
  margin-bottom:20px;
  font-size:13px}
.notice.error {
  background:#fff0e9;
  border-color:#eed1be;
  color:#9a4b28}
.empty-state,.empty-filter {
  text-align:center;
  color:var(--muted);
  padding:38px;
  font-size:13px}
.empty-filter {
  margin:0}
.app-footer {
  display:flex;
  justify-content:space-between;
  color:#90a096;
  border-top:1px solid var(--line);
  padding-top:20px;
  margin-top:15px;
  font-size:11px}
.detail-layout {
  display:grid;
  grid-template-columns:290px minmax(0,1fr);
  gap:24px;
  align-items:start}
.customer-card h2 {
  font-size:17px;
  overflow-wrap:anywhere;
  margin:10px 0 4px}
.customer_info_table td {
  padding:20px}
.customer_info_table .button {
  width:100%;
  text-align:center}
.repo-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:20px;
  align-items:start}
.repo-card {
  margin:0}
.content {
  padding:22px}
.github {
  font-size:11px;
  font-weight:500;
  white-space:nowrap}
.repository-name {
  font-size:12px;
  overflow-wrap:anywhere;
  margin:0 0 20px}
.active-branch {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:0 0 20px;
  font-size:12px}
.repo-card textarea {
  display:block;
  width:100%;
  height:150px;
  resize:vertical;
  border:1px solid var(--line);
  border-radius:6px;
  background:#f8faf9;
  color:#63796d;
  font:11px/1.7 ui-monospace,monospace;
  padding:12px;
  margin:5px 0 18px}
.repo-card .update-button {
  width:100%}
.branch-section {
  border-top:1px solid var(--line);
  padding-top:18px;
  margin-top:20px}
.branch-section>label {
  font-size:12px;
  font-weight:600;
  margin:0 0 10px}
.text-button {
  padding:0;
  border:0;
  background:none;
  color:var(--green);
  font-size:11px}
.refresh-branches {
  float:right}
.branch-controls {
  display:flex;
  gap:8px}
.branch-controls select {
  min-width:0;
  flex:1;
  font-size:12px}
.help-text {
  font-size:11px;
  color:var(--muted);
  margin:10px 0 0}
.help-text.warning {
  color:#a56d1b}
.spinner {
  display:inline-block;
  width:14px;
  height:14px;
  border:2px solid #c2dace;
  border-top-color:var(--green);
  border-radius:50%;
  animation:spin .8s linear infinite;
  margin-right:7px;
  vertical-align:middle}
@keyframes spin {
  to {
  transform:rotate(360deg)}
}
#overlay {
  position:fixed;
  inset:0;
  background:#102a2b80;
  z-index:1000;
  display:grid;
  align-items:start;
  justify-items:center;
  padding:8vh 20px;
  overflow:auto}
.dialog {
  width:100%;
  max-width:680px;
  box-shadow:0 20px 80px #061b2840}
.overlay-close {
  border:0;
  background:#eff4f0;
  border-radius:5px;
  color:var(--ink);
  font-size:20px;
  line-height:1;
  padding:3px 8px}
.dialog .content {
  overflow-wrap:anywhere;
  max-height:65vh;
  overflow:auto}
.action-output {
  white-space:pre-wrap;
  font-size:11px;
  padding:12px;
  background:#f4f6f5}
.deployment-result+.deployment-result {
  border-top:1px solid var(--line);
  padding-top:16px}
.iframe_popup {
  position:fixed;
  inset:25px;
  z-index:100;
  background:#fff;
  border-radius:10px;
  box-shadow:0 0 0 50px #102a2b80;
  overflow:hidden}
.iframe_popup .header {
  padding:16px 22px;
  background:var(--dark);
  color:#fff;
  display:flex;
  justify-content:space-between;
  align-items:center}
.close-update {
  border:1px solid #6a8c7e;
  color:#fff;
  background:transparent;
  border-radius:5px;
  padding:5px 12px}
.iframe_popup iframe {
  width:100%;
  height:calc(100% - 70px);
  border:0}
.login-page {
  min-height:100vh;
  display:grid;
  place-items:center;
  padding:20px;
  background:var(--dark)}
.login-card {
  width:100%;
  max-width:400px;
  padding:35px}
.login-card h1 {
  font-size:26px}
.login-card label {
  display:block;
  font-size:12px;
  margin:24px 0 8px}
.login-card input {
  width:100%;
  border:1px solid var(--line);
  border-radius:7px;
  padding:11px;
  margin-bottom:18px}
.login-card button {
  width:100%}
@media(min-width:1600px) {
  td {
  padding-top:19px;
  padding-bottom:19px}
}
@media(max-width:1150px) {
  .repo-grid {
  grid-template-columns:1fr}
.detail-layout {
  grid-template-columns:260px minmax(0,1fr)}
td,thead th {
  padding-left:16px;
  padding-right:16px}
.server-host {
  display:none}
}
@media(max-width:720px) {
  .topbar {
  padding:0 20px;
  height:64px}
.environment,.brand-tag {
  display:none}
.app-shell {
  padding:24px 16px}
.page-heading {
  align-items:start;
  flex-direction:column;
  gap:16px}
h1 {
  font-size:28px}
.metrics {
  gap:8px}
.metric {
  padding:14px 12px;
  min-height:116px}
.metric span {
  font-size:10px;
  min-height:30px}
.metric strong {
  font-size:26px}
.metric small {
  font-size:9px}
.toolbar {
  flex-wrap:wrap;
  gap:10px}
.search-box {
  max-width:none;
  flex-basis:100%}
.filter-label {
  margin-left:0;
  flex:1}
.detail-layout {
  grid-template-columns:1fr;
  gap:0}
.repo-grid {
  gap:16px}
.card .header {
  padding:16px}
.branch-controls {
  flex-wrap:wrap}
.branch-controls select {
  flex-basis:100%}
.branch-controls button {
  width:100%}
.iframe_popup {
  inset:10px}
.subtitle {
  font-size:12px}
.app-footer {
  font-size:10px}
.customer-group th {
  padding-left:16px}
}
@media(prefers-reduced-motion:reduce) {
  .spinner {
  animation:none}
}
/* Overview: readable snapshots, actionable status and independent filters. */
.overview-metrics { grid-template-columns:repeat(4,minmax(0,1fr)); }
.metric-filter { width:100%;text-align:left;color:inherit;transition:border-color .15s,box-shadow .15s; }
.metric-filter:hover,.metric-filter[aria-pressed="true"] { border-color:#80ad96;box-shadow:0 0 0 1px #80ad9633; }
.overview-toolbar { flex-wrap:wrap;align-items:end;gap:12px; }
.overview-toolbar .search-box { flex-basis:320px;max-width:none;min-width:220px;align-self:end; }
.overview-toolbar .filter-label { display:flex;flex-direction:column;align-items:stretch;gap:4px;margin:0;font-size:10px; }
.overview-toolbar select { max-width:225px;font-size:11px;min-height:39px; }
.overview-toolbar .tools-menu { align-self:end; }
.overview-toolbar .tools-menu summary { min-height:39px; }
.server-freshness { margin:0;text-align:right;font-weight:400;font-size:10px; }
.row-secondary { display:block;font-size:10px;line-height:1.6;color:#7b8d84;max-width:260px;white-space:normal;margin-top:5px; }
.environment-label { display:block;font-size:9px;color:#8c9b93; }
.branch-label { font:11px/1.6 ui-monospace,monospace;overflow-wrap:anywhere; }
.customer_table .version { min-width:60px;font-size:12px;white-space:nowrap; }
.customer_table td { padding:14px 16px; }
.customer_table thead th { padding:13px 16px;white-space:nowrap; }
.customer_table .domain { min-width:190px;font-size:12px; }
.customer_table .repo { min-width:140px;max-width:250px; }
.deployment-status { min-width:170px;max-width:230px; }
.badge.error,.badge.diverged { background:#fceee9;color:#aa4528; }
.badge.checking { background:#eef3f4;color:#607b83; }
.badge.ahead { background:#eff0fa;color:#686195; }
.stale-data { color:#a16b21; }
.last-update code { display:block;font-size:10px;color:#81938a;margin-top:3px; }
.domain-row[data-status="error"] td:first-child,.domain-row[data-status="diverged"] td:first-child { box-shadow:inset 3px 0 #c36b4a; }
.domain-row[data-status="behind"] td:first-child { box-shadow:inset 3px 0 #d8af58; }
@media(max-width:900px) { .overview-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); }.overview-toolbar .search-box { flex-basis:100%; }.overview-toolbar .filter-label { flex:1;min-width:140px; }.overview-toolbar select { max-width:none; }.server-card .header { align-items:start; }.server-freshness { max-width:48%; } }
@media(prefers-reduced-motion:reduce) { .metric-filter { transition:none; } }
.overview-toolbar .search-box { flex:1 1 calc(100% - 160px); }
.overview-toolbar .tools-menu { order:1; }
.overview-toolbar .filter-label { order:2;flex:1;min-width:135px; }
.overview-toolbar select { max-width:none; }
@media(max-width:720px) { .overview-toolbar .search-box { flex-basis:100%; }.overview-toolbar .tools-menu { order:3; }.overview-metrics .metric span { min-height:0; } }
