/* MRM Hosting Platform — Odoo-style backend theme (original stylesheet, Odoo design language) */
:root {
  --o-brand: #714b67;          /* Odoo purple */
  --o-brand-dark: #5f3e56;
  --o-brand-light: #f3eef2;
  --o-teal: #017e84;           /* Odoo secondary */
  --o-teal-dark: #01656a;
  --bg: #f9fafb; --surface: #ffffff; --surface-2: #f2f3f5;
  --text: #374151; --heading: #111827; --muted: #6b7280; --border: #d8dadd; --border-light: #e7e9ed;
  --ok: #28a745; --ok-bg: #d4edda; --ok-text: #155724;
  --warn: #e99d00; --warn-bg: #fff3cd; --warn-text: #856404;
  --err: #d23f3a; --err-bg: #f8d7da; --err-text: #721c24;
  --info: #017e84; --info-bg: #d1ecf1; --info-text: #0c5460;
  --radius: 4px; --radius-lg: 6px;
  --mono: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  --font: Roboto, "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 14px/1.5 var(--font); background: var(--bg); color: var(--text); }
a { color: var(--o-teal); text-decoration: none; }
a:hover { color: var(--o-teal-dark); text-decoration: underline; }
h1, h2, h3 { color: var(--heading); line-height: 1.25; margin: 0 0 .6rem; font-weight: 500; }
h1 { font-size: 1.45rem; } h2 { font-size: 1.1rem; } h3 { font-size: .98rem; }
p { margin: 0 0 .75rem; }
code, pre, .mono { font-family: var(--mono); font-size: .84em; }
code { background: var(--surface-2); padding: .05rem .3rem; border-radius: 3px; }
.muted { color: var(--muted); } .small { font-size: .85rem; }
hr { border: 0; border-top: 1px solid var(--border-light); margin: 1rem 0; }

/* ---------- Brand ---------- */
.brand { display: flex; align-items: center; gap: .55rem; font-weight: 500; color: inherit; }
.brand:hover { text-decoration: none; color: inherit; }
.brand-mark { width: 30px; height: 30px; border-radius: 6px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, #8f5f84, #714b67); font-size: .62rem; font-weight: 700; letter-spacing: .02em; }

/* ---------- Public site ---------- */
.public-header { display: flex; justify-content: space-between; align-items: center; padding: .9rem clamp(1rem, 4vw, 3rem);
  background: var(--surface); border-bottom: 1px solid var(--border-light); }
.public-header nav { display: flex; gap: 1rem; align-items: center; }
.hero { padding: clamp(2rem, 7vw, 5rem) clamp(1rem, 4vw, 3rem); max-width: 1140px; margin: 0 auto; display: grid;
  grid-template-columns: 1.15fr 1fr; gap: 3rem; align-items: center; }
.hero h1 { font-size: clamp(2rem, 4.4vw, 3rem); letter-spacing: -.01em; font-weight: 700; color: var(--heading); }
.hero h1 em { font-style: normal; color: var(--o-brand); }
.hero .lead { font-size: 1.12rem; color: var(--muted); }
.hero-card { background: var(--surface); border: 1px solid var(--border-light); border-radius: 10px; padding: 1.4rem;
  box-shadow: 0 10px 30px rgba(113, 75, 103, .12); }
.features { max-width: 1140px; margin: 0 auto; padding: 1rem clamp(1rem, 4vw, 3rem) 4rem; display: grid;
  grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.feature-num { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--o-brand-light);
  color: var(--o-brand); font-weight: 700; margin-bottom: .6rem; }
.public-footer { text-align: center; padding: 2rem 1rem; color: var(--muted); font-size: .82rem; border-top: 1px solid var(--border-light); background: var(--surface); }
@media (max-width: 820px) { .hero, .features { grid-template-columns: 1fr; } }

/* ---------- Backend: navbar ---------- */
.o-shell { min-height: 100vh; display: flex; flex-direction: column; }
.o-navbar { display: flex; align-items: stretch; height: 46px; background: var(--o-brand); color: #fff; padding: 0 .5rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .15); position: sticky; top: 0; z-index: 30; }
.o-navbar a, .o-navbar button { color: rgba(255, 255, 255, .9); }
.o-navbar .o-apps { display: flex; align-items: center; padding: 0 .65rem; }
.o-navbar .o-app-name { display: flex; align-items: center; gap: .5rem; padding: 0 .9rem 0 .25rem; font-size: 1.05rem; font-weight: 500; color: #fff; white-space: nowrap; }
.o-navbar .o-app-name .brand-mark { width: 26px; height: 26px; font-size: .55rem; background: rgba(255, 255, 255, .18); }
.o-navbar .o-app-name:hover { text-decoration: none; background: rgba(0, 0, 0, .08); }
.o-menu { display: flex; align-items: stretch; overflow-x: auto; scrollbar-width: none; }
.o-menu a { display: flex; align-items: center; padding: 0 .8rem; white-space: nowrap; font-size: .93rem; }
.o-menu a:hover { background: rgba(0, 0, 0, .08); text-decoration: none; color: #fff; }
.o-menu a.active { background: rgba(0, 0, 0, .14); color: #fff; }
.o-systray { margin-left: auto; display: flex; align-items: center; gap: .55rem; padding-left: .5rem; }
.o-systray select { background: rgba(255, 255, 255, .12); color: #fff; border: 1px solid rgba(255, 255, 255, .25); padding: .2rem .4rem;
  border-radius: var(--radius); font-size: .82rem; max-width: 200px; width: auto; }
.o-systray select option { color: var(--text); }
.o-user { display: flex; align-items: center; gap: .45rem; font-size: .88rem; white-space: nowrap; }
.o-avatar { width: 28px; height: 28px; border-radius: 4px; background: #b48aa9; display: grid; place-items: center; font-weight: 700; color: #fff; font-size: .8rem; overflow: hidden; }
.o-avatar img { width: 100%; height: 100%; object-fit: cover; }
.o-navbar .o-logout { background: none; border: 1px solid rgba(255, 255, 255, .3); border-radius: var(--radius); padding: .15rem .55rem; cursor: pointer; font: inherit; font-size: .8rem; }
.o-navbar .o-logout:hover { background: rgba(255, 255, 255, .12); }

/* ---------- Backend: control panel ---------- */
.o-control-panel { background: var(--surface); border-bottom: 1px solid var(--border-light); padding: .7rem 1.25rem .65rem; }
.o-cp-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.o-breadcrumb { display: flex; align-items: center; gap: .45rem; font-size: 1.15rem; color: var(--heading); min-width: 0; flex-wrap: wrap; }
.o-breadcrumb a { color: var(--o-teal); }
.o-breadcrumb .sep { color: var(--muted); }
.o-breadcrumb h1 { font-size: 1.15rem; margin: 0; font-weight: 500; display: inline; }
.o-cp-sub { color: var(--muted); font-size: .85rem; margin-top: .15rem; }
.o-cp-buttons { display: flex; gap: .4rem; align-items: center; flex-wrap: wrap; }
.o-content { padding: 1rem 1.25rem 2rem; flex: 1; min-width: 0; }

/* ---------- Components ---------- */
.card { background: var(--surface); border: 1px solid var(--border-light); border-radius: var(--radius-lg); padding: 1.1rem 1.2rem; margin-bottom: 1rem; }
.card > h2, .card > h3 { display: flex; justify-content: space-between; align-items: center; gap: .5rem; flex-wrap: wrap; }
.card > h2 { font-size: 1rem; font-weight: 500; padding-bottom: .55rem; border-bottom: 1px solid var(--border-light); margin-bottom: .8rem; }
.grid { display: grid; gap: 1rem; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
.stat { font-size: 1.55rem; font-weight: 500; color: var(--heading); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .35rem; padding: .36rem .8rem; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; font-size: .9rem; font-weight: 500;
  cursor: pointer; line-height: 1.4; white-space: nowrap; }
.btn:hover { text-decoration: none; background: var(--surface-2); color: var(--heading); }
.btn-primary { background: var(--o-brand); border-color: var(--o-brand); color: #fff; }
.btn-primary:hover { background: var(--o-brand-dark); border-color: var(--o-brand-dark); color: #fff; }
.btn-success { background: var(--o-teal); border-color: var(--o-teal); color: #fff; }
.btn-success:hover { background: var(--o-teal-dark); border-color: var(--o-teal-dark); color: #fff; }
.btn-danger { color: var(--err); border-color: #e9b4b2; background: var(--surface); }
.btn-danger:hover { background: var(--err); color: #fff; border-color: var(--err); }
.btn-github { background: #24292f; color: #fff; border-color: #24292f; width: 100%; padding: .65rem 1rem; font-size: .95rem; }
.btn-github:hover { background: #32383f; color: #fff; }
.btn-sm { padding: .2rem .55rem; font-size: .82rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.actions { display: flex; gap: .4rem; flex-wrap: wrap; align-items: center; }
form.inline { display: inline; }

.badge { display: inline-block; padding: .1rem .55rem; border-radius: 999px; font-size: .74rem; font-weight: 500; line-height: 1.5; white-space: nowrap; border: 1px solid transparent; }
.badge-ready, .badge-succeeded, .badge-verified, .badge-ok, .badge-active, .badge-processed, .badge-imported, .badge-promoted { background: var(--ok-bg); color: var(--ok-text); }
.badge-queued, .badge-provisioning, .badge-running, .badge-building, .badge-testing, .badge-fetching, .badge-deploying, .badge-maintenance, .badge-deleting, .badge-candidate, .badge-new { background: var(--info-bg); color: var(--info-text); }
.badge-failed, .badge-denied, .badge-revoked, .badge-disconnected, .badge-recovered { background: var(--err-bg); color: var(--err-text); }
.badge-stopped, .badge-deleted, .badge-superseded, .badge-expired, .badge-ignored, .badge-cancelled, .badge-none { background: var(--surface-2); color: var(--muted); }
.badge-v19 { background: var(--o-brand-light); color: var(--o-brand); border-color: #e2d3de; }
.badge-v20 { background: #e0f2f1; color: var(--o-teal-dark); border-color: #b9dfdf; }
.badge-staging, .badge-test, .badge-demo { background: var(--warn-bg); color: var(--warn-text); }
.badge-production { background: var(--o-brand-light); color: var(--o-brand); }
.badge-development, .badge-standard, .badge-restore_test { background: var(--surface-2); color: var(--text); }

.alert { padding: .65rem .9rem; border-radius: var(--radius); margin-bottom: 1rem; border: 1px solid transparent; font-size: .92rem; }
.alert-success { background: var(--ok-bg); color: var(--ok-text); border-color: #c3e6cb; }
.alert-error { background: var(--err-bg); color: var(--err-text); border-color: #f5c6cb; }
.alert-info { background: var(--info-bg); color: var(--info-text); border-color: #bee5eb; }
.alert-warning { background: var(--warn-bg); color: var(--warn-text); border-color: #ffeeba; }
.error { color: var(--err); }

/* Odoo list view */
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { text-align: left; padding: .45rem .6rem; border-bottom: 1px solid var(--border-light); vertical-align: middle; }
thead th { font-weight: 600; color: var(--heading); background: var(--surface); border-bottom: 1px solid var(--border); font-size: .85rem; white-space: nowrap; }
tbody tr:hover { background: #f6f7f9; }
.table-wrap { overflow-x: auto; }
.o-list { background: var(--surface); border: 1px solid var(--border-light); border-radius: var(--radius-lg); overflow-x: auto; margin-bottom: 1rem; }
.o-list td.o-actions { text-align: right; white-space: nowrap; }
.o-list .o-row-title { font-weight: 500; color: var(--heading); }

/* Forms */
label { display: block; font-weight: 500; margin-bottom: .25rem; color: var(--heading); font-size: .9rem; }
input[type=text], input[type=email], input[type=search], input:not([type]), select, textarea {
  width: 100%; padding: .4rem .55rem; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface);
  color: var(--text); font: inherit; font-size: .92rem; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--o-teal); box-shadow: 0 0 0 .15rem rgba(1, 126, 132, .18); }
.field { margin-bottom: .95rem; }
.field .help { font-size: .82rem; color: var(--muted); margin-top: .2rem; }
.field .error { font-size: .82rem; margin-top: .2rem; }
.input-suffix { display: flex; align-items: stretch; }
.input-suffix input { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.input-suffix span { padding: .4rem .6rem; border: 1px solid var(--border); border-left: 0; border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--surface-2); color: var(--muted); white-space: nowrap; font-size: .9rem; }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: .6rem; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; }
.choice label { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: .7rem .8rem; cursor: pointer; font-weight: 400;
  height: 100%; background: var(--surface); display: flex; flex-direction: column; gap: .15rem; margin: 0; }
.choice label strong { font-weight: 500; color: var(--heading); }
.choice label:hover { border-color: #b48aa9; }
.choice input:checked + label { border-color: var(--o-brand); box-shadow: 0 0 0 1px var(--o-brand) inset; background: #fbf8fa; }
.choice input:focus-visible + label { outline: 2px solid var(--o-teal); }
.choice input:disabled + label { opacity: .5; cursor: not-allowed; }

/* Odoo form view: header with statusbar + sheet */
.o-form-header { display: flex; justify-content: space-between; align-items: center; gap: .75rem; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--border-light); border-bottom: 0; border-radius: var(--radius-lg) var(--radius-lg) 0 0; padding: .55rem .9rem; }
.o-statusbar { display: flex; flex-wrap: wrap; }
.o-statusbar span { padding: .28rem .85rem; font-size: .8rem; color: var(--muted); background: var(--surface-2);
  border: 1px solid var(--border-light); margin-left: -1px; white-space: nowrap; }
.o-statusbar span:first-child { border-radius: var(--radius) 0 0 var(--radius); }
.o-statusbar span:last-child { border-radius: 0 var(--radius) var(--radius) 0; }
.o-statusbar span.current { background: var(--o-brand); color: #fff; border-color: var(--o-brand); font-weight: 500; }
.o-statusbar span.current.failed { background: var(--err); border-color: var(--err); }
.o-sheet { background: var(--surface); border: 1px solid var(--border-light); border-radius: 0 0 var(--radius-lg) var(--radius-lg); padding: 1.4rem 1.6rem; margin-bottom: 1rem; }
.o-sheet-title { font-size: 1.6rem; font-weight: 500; color: var(--heading); margin: 0 0 .1rem; }
.o-button-box { display: flex; flex-wrap: wrap; justify-content: flex-end; border-bottom: 1px solid var(--border-light); margin: -1.4rem -1.6rem 1.1rem; }
.o-stat-button { display: flex; align-items: center; gap: .55rem; padding: .55rem 1rem; border-left: 1px solid var(--border-light); color: var(--text);
  font-size: .82rem; min-width: 130px; background: none; border-top: 0; border-right: 0; border-bottom: 0; cursor: pointer; font-family: inherit; text-align: left; }
.o-stat-button:hover { background: var(--surface-2); text-decoration: none; color: var(--heading); }
.o-stat-button .o-stat-icon { color: var(--o-brand); font-size: 1.05rem; width: 1.2rem; text-align: center; }
.o-stat-button strong { display: block; color: var(--heading); font-weight: 500; line-height: 1.2; font-size: .9rem; }
.o-stat-button.highlight { background: #f2fbfb; } .o-stat-button.highlight strong { color: var(--o-teal); }
.o-group { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 2.5rem; }
@media (max-width: 820px) { .o-group { grid-template-columns: 1fr; } }
.o-group dl { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: .45rem .8rem; margin: 0 0 .5rem; font-size: .9rem; }
.o-group dt { color: var(--heading); font-weight: 500; }
.o-group dd { margin: 0; word-break: break-word; }
.o-separator { font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--muted);
  border-bottom: 1px solid var(--border-light); padding-bottom: .3rem; margin: 1.2rem 0 .7rem; }
.o-chatter { background: var(--surface); border: 1px solid var(--border-light); border-radius: var(--radius-lg); padding: .9rem 1.2rem; }
.o-chatter h3 { font-size: .9rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }

/* Kanban */
.o-kanban { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: .75rem; }
.o-kanban-card { background: var(--surface); border: 1px solid var(--border-light); border-radius: var(--radius-lg); padding: .85rem .95rem;
  display: flex; flex-direction: column; gap: .4rem; border-left: 3px solid var(--border); min-height: 130px; }
.o-kanban-card:hover { box-shadow: 0 3px 10px rgba(0, 0, 0, .08); }
.o-kanban-card.st-ready { border-left-color: var(--ok); } .o-kanban-card.st-failed { border-left-color: var(--err); }
.o-kanban-card.st-provisioning, .o-kanban-card.st-queued, .o-kanban-card.st-maintenance { border-left-color: var(--o-teal); }
.o-kanban-card h3 { margin: 0; font-size: 1rem; }
.o-kanban-card h3 a { color: var(--heading); }
.o-kanban-card .o-kanban-footer { display: flex; justify-content: space-between; align-items: center; gap: .5rem; margin-top: auto; }
.o-kanban-new { display: flex; flex-direction: column; gap: .3rem; align-items: center; justify-content: center; border: 1px dashed var(--border);
  border-radius: var(--radius-lg); min-height: 130px; color: var(--muted); background: transparent; }
.o-kanban-new:hover { border-color: var(--o-brand); color: var(--o-brand); text-decoration: none; }
.o-kanban-new .plus { font-size: 1.6rem; line-height: 1; }

/* Progress steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; }
.steps li { display: flex; align-items: center; gap: .55rem; font-size: .9rem; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--border); flex: none; }
.dot-done { background: var(--ok); } .dot-running { background: var(--o-teal); animation: pulse 1s infinite alternate; } .dot-failed { background: var(--err); }
@keyframes pulse { from { opacity: .35; } to { opacity: 1; } }
.progress { height: 6px; background: var(--surface-2); border-radius: 99px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--o-teal); }

.logbox { background: #1e1e2a; color: #d7dae0; padding: .8rem 1rem; border-radius: var(--radius); max-height: 70vh; overflow: auto;
  font-family: var(--mono); font-size: .78rem; line-height: 1.45; white-space: pre-wrap; word-break: break-word; margin: 0; }
.events { list-style: none; padding: 0; margin: 0; font-size: .87rem; }
.events li { padding: .4rem 0; border-bottom: 1px solid var(--border-light); white-space: pre-wrap; word-break: break-word; }
.events li:last-child { border-bottom: 0; }
.events li.lvl-error { color: var(--err); }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: .35rem 1rem; font-size: .9rem; margin: 0; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; word-break: break-all; }
.empty { text-align: center; padding: 2.2rem 1rem; color: var(--muted); }
.empty strong { display: block; color: var(--heading); font-size: 1.05rem; font-weight: 500; margin-bottom: .3rem; }
.copy { display: flex; gap: .4rem; } .copy input { font-family: var(--mono); font-size: .8rem; }
.disabled-note { color: var(--muted); font-size: .88rem; border: 1px dashed var(--border); border-radius: var(--radius-lg); padding: .9rem 1rem; background: var(--surface); }
.disabled-note strong { color: var(--heading); }

/* ---------- Project workspace (Odoo.sh style) ---------- */
.ws { display: grid; grid-template-rows: auto 1fr; min-height: 100vh; }
.ws-top { display: flex; align-items: center; gap: .75rem; padding: 0 .75rem; height: 46px; background: var(--o-brand); color: #fff; font-size: .92rem;
  position: sticky; top: 0; z-index: 30; }
.ws-top a { color: rgba(255, 255, 255, .9); }
.ws-top .brand { color: #fff; }
.ws-top .brand-mark { width: 26px; height: 26px; font-size: .55rem; background: rgba(255, 255, 255, .18); }
.ws-top nav { display: flex; align-items: stretch; height: 100%; overflow-x: auto; scrollbar-width: none; }
.ws-top nav a { display: flex; align-items: center; padding: 0 .75rem; white-space: nowrap; }
.ws-top nav a.active { background: rgba(0, 0, 0, .15); color: #fff; }
.ws-top nav a:hover { text-decoration: none; background: rgba(0, 0, 0, .08); color: #fff; }
.ws-top .right { margin-left: auto; display: flex; gap: .55rem; align-items: center; }
.ws-top select { width: auto; padding: .2rem .45rem; font-size: .82rem; background: rgba(255, 255, 255, .12); color: #fff; border: 1px solid rgba(255, 255, 255, .25); max-width: 38vw; }
.ws-top select option { color: var(--text); }
.ws-top .btn { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .3); color: #fff; }
.ws-top .user-chip { display: flex; align-items: center; gap: .4rem; color: rgba(255, 255, 255, .9); }
.ws-top .user-chip img { width: 24px; height: 24px; border-radius: 4px; }
.icon-btn { position: relative; background: none; border: 0; color: rgba(255, 255, 255, .85); cursor: pointer; padding: .25rem; font: inherit; }
.icon-btn .count { position: absolute; top: -4px; right: -6px; background: var(--err); color: #fff; border-radius: 99px; font-size: .62rem; padding: 0 .3rem; }
.ws-body { display: grid; grid-template-columns: 250px minmax(0, 1fr); min-height: 0; }
.ws-side { background: #262a36; color: #c5c8d2; padding: .7rem .55rem; overflow-y: auto; font-size: .86rem; }
.ws-side input[type=search] { background: #31364a; border: 1px solid #3f4559; color: #e7e9ef; padding: .32rem .55rem; font-size: .84rem; }
.lane { margin-top: 1rem; }
.lane-head { display: flex; justify-content: space-between; align-items: center; color: #8e94a8; font-size: .7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em; padding: 0 .35rem .3rem; }
.lane-head a { color: #8e94a8; font-size: 1.05rem; line-height: 1; padding: 0 .2rem; }
.lane-head a:hover { color: #fff; text-decoration: none; }
.branch { display: flex; align-items: center; gap: .45rem; padding: .34rem .5rem; border-radius: 4px; color: #d4d7e0; }
.branch:hover { background: #31364a; text-decoration: none; color: #fff; }
.branch.active { background: var(--o-brand); color: #fff; }
.branch .name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.branch .ver { font-size: .65rem; color: #a7acbd; border: 1px solid #4a5068; border-radius: 3px; padding: 0 .28rem; }
.branch.active .ver { color: #f1e6ee; border-color: rgba(255, 255, 255, .35); }
.sdot { width: 9px; height: 9px; border-radius: 50%; flex: none; background: #6b7080; }
.sdot.ok { background: #3fbf6f; } .sdot.failed { background: #e5534b; } .sdot.running { background: #f0b429; animation: pulse 1s infinite alternate; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ws-main { min-width: 0; background: var(--bg); overflow-x: hidden; }
.ws-head { background: #353a4d; color: #fff; padding: .75rem 1.2rem 0; }
.ws-head h1 { font-size: 1.15rem; margin: 0; display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; color: #fff; font-weight: 500; }
.ws-head .stage { font-size: .66rem; padding: .12rem .45rem; border-radius: 3px; background: rgba(255, 255, 255, .14); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.ws-head .stage-production { background: var(--o-brand); }
.ws-head .stage-staging { background: #a87400; }
.ws-head .state { font-size: .85rem; font-weight: 400; color: #c4c8d6; }
.ws-actions { display: flex; gap: .3rem; flex-wrap: wrap; margin: .6rem 0 0; }
.ws-actions button, .ws-actions a, .ws-actions summary { background: transparent; border: 1px solid #5b627c; color: #e3e5ec; padding: .2rem .65rem;
  border-radius: 3px; font: inherit; font-size: .82rem; cursor: pointer; list-style: none; }
.ws-actions summary::-webkit-details-marker { display: none; }
.ws-actions button:hover, .ws-actions summary:hover, .ws-actions a:hover { background: #454b62; text-decoration: none; color: #fff; }
.ws-actions details { position: relative; }
.ws-actions details[open] > .pop { display: block; }
.pop { display: none; position: absolute; z-index: 20; top: 2rem; left: 0; min-width: 320px; background: var(--surface); color: var(--text);
  border: 1px solid var(--border); border-radius: var(--radius-lg); padding: .9rem; box-shadow: 0 8px 28px rgba(0, 0, 0, .2); font-size: .88rem; }
.ws-tabs { display: flex; margin-top: .7rem; overflow-x: auto; scrollbar-width: none; }
.ws-tabs a { color: #bfc3d1; padding: .5rem .85rem; border-radius: 4px 4px 0 0; font-size: .87rem; white-space: nowrap; }
.ws-tabs a:hover { color: #fff; text-decoration: none; }
.ws-tabs a.active { background: var(--bg); color: var(--heading); font-weight: 500; }
.ws-content { padding: 1rem 1.2rem; min-width: 0; }
.ws-toolbar { display: flex; justify-content: flex-end; gap: .4rem; margin-bottom: .8rem; flex-wrap: wrap; }
.side-toggle { display: none; }
.timeline-day { font-size: .74rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin: 1rem 0 .35rem; }
.tl { background: var(--surface); border: 1px solid var(--border-light); border-radius: var(--radius-lg); }
.tl-row { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: .75rem; padding: .55rem .85rem; border-bottom: 1px solid var(--border-light); align-items: center; font-size: .88rem; }
.tl-row:last-child { border-bottom: 0; }
.tl-row > div { min-width: 0; overflow-wrap: anywhere; }
.tl-row .time { color: var(--muted); font-size: .8rem; font-variant-numeric: tabular-nums; }
.tl-row .who { color: var(--muted); font-size: .8rem; }
.tl-row .subject { font-weight: 500; color: var(--heading); }
.tl-row.lvl-error .subject { color: var(--err); }
.sha { font-family: var(--mono); font-size: .76rem; background: var(--surface-2); padding: 0 .3rem; border-radius: 3px; color: var(--heading); }
.pager { display: flex; gap: .5rem; justify-content: center; align-items: center; margin-top: 1rem; }

@media (max-width: 820px) {
  .o-navbar .o-app-name .full, .o-user .o-user-name { display: none; }
  .o-control-panel, .o-content { padding-left: .75rem; padding-right: .75rem; }
  .o-sheet { padding: 1rem; } .o-button-box { margin: -1rem -1rem 1rem; }
  .o-systray select { max-width: 110px; }
  .ws-body { grid-template-columns: minmax(0, 1fr); }
  .ws-side { display: none; } .ws-side.open { display: block; }
  .side-toggle { display: inline-flex; }
  .ws-top nav, .ws-top .user-chip, .ws-top .brand span:last-child { display: none; }
  .ws-top select { max-width: 38vw; min-width: 0; }
  .ws-top .right { gap: .35rem; min-width: 0; }
  .ws-top .right .btn { padding: .2rem .4rem; font-size: .75rem; }
  .ws-top .right a.btn { display: none; } /* Console: reachable from the project switcher's MRM logo */
  .ws-head, .ws-content { padding-left: .75rem; padding-right: .75rem; }
  .tl-row { grid-template-columns: 42px minmax(0, 1fr); } .tl-row .actions { grid-column: 2; }
  .pop { min-width: 0; width: calc(100vw - 2rem); left: auto; right: 0; }
}

/* Browser terminal (xterm.js) */
.terminal { background: #14161c; border-radius: var(--radius); padding: .4rem; height: 26rem; max-height: 65vh; }
.terminal .xterm { height: 100%; }

/* Editor tab */
.editor-toolbar { display: flex; gap: .4rem; align-items: center; margin-bottom: .6rem; flex-wrap: wrap; }
.editor-grid { display: grid; grid-template-columns: minmax(12rem, 18rem) 1fr; gap: .8rem; min-height: 28rem; }
.editor-tree { border: 1px solid var(--border); border-radius: var(--radius); overflow: auto; max-height: 70vh; background: var(--surface-2); }
.editor-tree ul { list-style: none; margin: 0; padding: .25rem 0; }
.editor-tree li a, .editor-tree li > span { display: flex; justify-content: space-between; gap: .4rem; padding: .15rem .6rem;
  font-size: .8rem; color: var(--text); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.editor-tree li a .mono { overflow: hidden; text-overflow: ellipsis; }
.editor-tree li a:hover, .editor-tree li a.active { background: var(--o-brand-light); }
.editor-new { display: flex; gap: .3rem; padding: .4rem; border-bottom: 1px solid var(--border); }
.editor-new input { flex: 1; min-width: 0; font-size: .8rem; }
.ed-st { font-size: .7rem; font-weight: 700; padding: 0 .3rem; border-radius: 3px; }
.ed-modified { background: var(--warn-bg); color: var(--warn-text); }
.ed-added { background: var(--ok-bg); color: var(--ok-text); }
.ed-deleted { background: var(--err-bg); color: var(--err-text); }
.editor-main { min-width: 0; }
.editor-filebar { display: flex; align-items: center; gap: .6rem; margin-bottom: .4rem; }
.editor-filebar button { margin-left: auto; }
textarea.code { width: 100%; min-height: 26rem; height: 60vh; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .82rem; line-height: 1.45; tab-size: 4; background: #1e1e2a; color: #e6e6e6; border-radius: var(--radius); padding: .6rem; }
.editor-commit { margin-top: .6rem; display: grid; gap: .4rem; }
pre.diff { max-height: 50vh; }
@media (max-width: 760px) { .editor-grid { grid-template-columns: 1fr; } .editor-tree { max-height: 14rem; } }

/* Monitor charts: one series, one axis per chart; recessive grid; 2px line in the brand hue */
.monitor-filters { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-bottom: .8rem; }
.monitor-filters .seg { display: inline-flex; gap: .25rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8rem; }
@media (max-width: 900px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.chart { margin: 0; position: relative; }
.chart figcaption { display: flex; gap: .5rem; align-items: baseline; margin-bottom: .3rem; }
.chart-latest { margin-left: auto; font-variant-numeric: tabular-nums; font-weight: 600; color: var(--heading); }
.chart svg { width: 100%; height: 120px; display: block; overflow: visible; }
.chart .line { fill: none; stroke: var(--o-brand); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.chart .grid { stroke: var(--border-light); stroke-width: 1; vector-effect: non-scaling-stroke; }
.chart .tick { font-size: 10px; fill: var(--muted); }
.chart .crosshair { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 3 3; vector-effect: non-scaling-stroke; }
.chart .focus { fill: var(--o-brand); stroke: var(--surface); stroke-width: 2; }
.chart-tip { position: absolute; top: .4rem; right: .8rem; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: .15rem .45rem; font-size: .78rem; color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.chart-empty { padding: 2rem 0; text-align: center; }
.status-critical { background: var(--err-bg); color: var(--err-text); border-color: #f5c6cb; }
.status-serious { background: #fdecea; color: #8a2b1f; border-color: #f1b8ae; }
.status-warning { background: var(--warn-bg); color: var(--warn-text); border-color: #f3dca2; }
.status-good { color: var(--ok); } .status-critical-text { color: var(--err); }
.table-scroll { overflow-x: auto; }
.monitor-filters select { width: auto; }
.danger-zone { border: 1px solid #e9b4b2; border-radius: var(--radius); padding: .6rem .8rem; }
.public-top { display: flex; align-items: center; gap: 1rem; padding: .7rem 1rem; background: var(--o-brand); }
.public-top .brand { color: #fff; font-weight: 700; text-decoration: none; }
.public-top .muted { color: #e8d9e3; }
main.public { max-width: 1000px; margin: 1rem auto; padding: 0 16px; }
.o-bell { position: relative; text-decoration: none; margin-right: .4rem; }
.o-bell .count { position: absolute; top: -6px; right: -8px; background: var(--err); color: #fff; border-radius: 99px; font-size: .62rem; padding: 0 .3rem; }
.notifications li.unread { font-weight: 600; }

/* Operator console */
.ops-nav { display: flex; gap: .25rem; border-bottom: 1px solid var(--border); margin-bottom: 1rem; overflow-x: auto; scrollbar-width: none; }
.ops-nav a { padding: .5rem .9rem; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; font-size: .9rem; }
.ops-nav a:hover { color: var(--heading); text-decoration: none; }
.ops-nav a.active { color: var(--heading); border-bottom-color: var(--o-brand); font-weight: 500; }
.ops-filters { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-bottom: .8rem; }
.ops-filters input[type=search] { width: 240px; max-width: 100%; }
.ops-filters select { width: auto; max-width: 100%; }
.ops-actions { display: flex; gap: .3rem; flex-wrap: wrap; justify-content: flex-end; }
.ops-actions form { display: inline; }
.ops-sub { display: block; color: var(--muted); font-size: .8rem; }
.ops-quota { display: flex; gap: .3rem; align-items: center; }
.ops-quota input { width: 4.5rem; }

/* Connect (one-time sign-in to Odoo as a chosen user) */
form.connect-form { display: inline-flex; gap: .35rem; align-items: center; }
.connect-user { max-width: 14rem; padding: .3rem .4rem; font-size: .85rem; }

/* ---- Branch workspace, Odoo.sh-like header and History (docs/references/odoo-sh-branches.png) ---- */
.ws-head { padding: .6rem 1.2rem 0; }
.ws-head-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "title actions" "title clone"; gap: .3rem 1rem; align-items: start; }
.ws-head-row h1 { grid-area: title; padding-top: .25rem; }
.ws-head-row .ws-actions { grid-area: actions; margin: 0; justify-content: flex-end; gap: 0; background: #2c3041; border-radius: 3px 3px 0 0; }
.ws-head-row .ws-actions button, .ws-head-row .ws-actions a, .ws-head-row .ws-actions summary { border: 0; border-radius: 0; padding: .32rem .6rem; font-size: .78rem; color: #d9dce6; }
.ws-head-row .ws-actions details[open] > summary { background: #f7f8fa; color: #222; }
.ws-actions .ai { font-size: .8rem; opacity: .8; margin-right: .15rem; }
.ws-clone { grid-area: clone; display: flex; align-items: center; background: #fff; border-radius: 0 0 3px 3px; min-width: min(46rem, 60vw); }
.ws-clone .ai { padding: 0 .5rem; color: #6b7080; border-right: 1px solid #e3e5ea; }
.ws-clone input { border: 0; font-family: var(--mono, ui-monospace, monospace); font-size: .72rem; padding: .3rem .55rem; background: transparent; color: #2a2e3a; }
.ws-tabs { margin-top: .9rem; gap: .2rem; }
.ws-tabs a { font-size: .78rem; font-weight: 600; letter-spacing: .03em; color: #c6cad7; padding: .85rem 1rem .75rem; border-radius: 0; border-bottom: 3px solid transparent; }
.ws-tabs a.active { background: transparent; color: #fff; border-bottom-color: #21b799; }
.ws-content { padding: 0; }
.ws-content > .alert { margin: .8rem 1.2rem 0; }
.ws-toolbar { background: #eceef1; border-bottom: 1px solid #dfe2e7; padding: .55rem 1.2rem; margin: 0; }
.ws-content > :not(.ws-toolbar):not(.alert) { margin-left: 1.2rem; margin-right: 1.2rem; }
.sh-pager { display: flex; justify-content: center; margin: 1.3rem 0 .4rem; }
.sh-pager > * { padding: .42rem .8rem; border: 1px solid #d5d9df; margin-left: -1px; background: #fff; color: #0f7a8a; font-size: .9rem; }
.sh-pager > :first-child { border-radius: 3px 0 0 3px; } .sh-pager > :last-child { border-radius: 0 3px 3px 0; }
.sh-pager .cur { background: var(--o-brand); border-color: var(--o-brand); color: #fff; }
.sh-pager .off { color: #6b7080; background: #f1f2f4; }
.sh-pager a:hover { background: #f3f5f7; text-decoration: none; }
.sh-timeline { max-width: 1200px; margin: 0 auto 1.5rem; padding-left: 3rem; position: relative; }
.sh-timeline::before { content: ""; position: absolute; left: 1.2rem; top: 2.2rem; bottom: 0; width: 2px; background: #e1e4e8; }
.sh-day { font-size: .9rem; color: #2a2e3a; margin: 1.2rem 0 .45rem; }
.sh-card { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem; background: #fff; border: 1px solid #dfe2e7; border-radius: 3px; padding: .9rem 1rem; margin-bottom: .2rem; }
.sh-card.live { border-color: #8a8f9c; box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.sh-node { position: absolute; left: -2.35rem; top: 1rem; width: 14px; height: 14px; border: 2px solid #7a8090; border-radius: 50%; background: #fff; }
.sh-node::before, .sh-node::after { content: ""; position: absolute; top: 4px; width: 7px; height: 2px; background: #7a8090; }
.sh-node::before { left: -9px; } .sh-node::after { right: -9px; }
.sh-who { display: flex; align-items: center; gap: .4rem; font-size: .92rem; flex-wrap: wrap; }
.sh-who .muted { font-size: .78rem; }
.sh-avatar { width: 24px; height: 24px; border-radius: 3px; background: #8fd3b6; color: #fff; display: inline-grid; place-items: center; font-size: .75rem; font-weight: 700; }
.sh-tag { font-size: .66rem; border: 1px solid #ccd; border-radius: 3px; padding: 0 .3rem; color: #667; }
.sh-commits { list-style: none; margin: .45rem 0 0 2rem; padding: 0; border: 1px solid #e3e5ea; border-radius: 2px; max-width: 600px; }
.sh-commits li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .45rem; align-items: center; padding: .28rem .6rem; font-size: .8rem; border-top: 1px solid #eceef1; }
.sh-commits li:first-child { border-top: 0; }
.sh-commits .ic { color: #8a8f9c; font-size: .7rem; letter-spacing: -2px; }
.sh-commits .msg { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #2a2e3a; }
.sh-commits .sha { font-family: var(--mono, ui-monospace, monospace); color: #6b7080; font-size: .74rem; }
.sh-more { margin: .35rem 0 0 2rem; font-size: .76rem; }
.sh-meta { margin: .35rem 0 0 2rem; font-size: .72rem; }
.sh-card-side { display: flex; align-items: flex-start; gap: .9rem; }
.sh-test { font-size: .76rem; color: #3a3f4c; padding-top: .5rem; white-space: nowrap; }
.sh-test.t-success b { color: #1d8f4e; font-weight: 500; } .sh-test.t-warning b { color: #b07900; font-weight: 500; }
.sh-test.t-failed b { color: #c9302c; font-weight: 500; } .sh-test.t-pending b { color: #6b7080; font-weight: 500; }
.sh-btn { display: inline-flex; align-items: center; gap: .35rem; border: 1px solid #d5d9df; background: #fff; color: #3a3f4c; font-size: .8rem; font-weight: 500;
  letter-spacing: .04em; padding: .45rem .8rem; border-radius: 3px; cursor: pointer; text-decoration: none; }
.sh-btn:hover { background: #f3f5f7; text-decoration: none; }
.sh-btn.off { color: #5d6270; }
.sh-btn-danger { color: #c9302c; border-color: #efc2c0; }
form.sh-connect { display: inline-flex; position: relative; }
.sh-btn-connect { background: #eceef1; border-radius: 3px 0 0 3px; padding: .5rem .9rem; }
.sh-connect-as > summary { list-style: none; cursor: pointer; background: #eceef1; border: 1px solid #d5d9df; border-left: 0; border-radius: 0 3px 3px 0; padding: .46rem .55rem; font-size: .8rem; }
.sh-connect-as > summary::-webkit-details-marker { display: none; }
.sh-connect-as .pop { position: absolute; right: 0; top: 2.4rem; z-index: 20; background: #fff; border: 1px solid #d5d9df; border-radius: 3px; padding: .6rem; width: 16rem; box-shadow: 0 4px 12px rgba(0, 0, 0, .12); display: flex; flex-direction: column; }
.sh-activity { max-width: 1200px; margin: 0 auto 1.5rem; padding-left: 3rem; font-size: .84rem; }
.sh-activity summary { cursor: pointer; color: var(--muted); }
.sh-activity ul { list-style: none; padding: 0; margin: .4rem 0 0; background: #fff; border: 1px solid #e3e5ea; border-radius: 3px; }
.sh-activity li { padding: .35rem .7rem; border-top: 1px solid #eceef1; } .sh-activity li:first-child { border-top: 0; }
@media (max-width: 900px) {
  .ws-head-row { grid-template-columns: minmax(0, 1fr); grid-template-areas: "title" "actions" "clone"; }
  .ws-head-row .ws-actions { justify-content: flex-start; flex-wrap: wrap; }
  .ws-clone { min-width: 0; }
  .sh-timeline, .sh-activity { padding-left: 0; } .sh-timeline::before, .sh-node { display: none; }
  .sh-card { grid-template-columns: minmax(0, 1fr); } .sh-commits, .sh-more, .sh-meta { margin-left: 0; }
}

/* Project cards (Odoo.sh "Your Projects") */
.project-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.project-card { background: var(--surface); border: 1px solid var(--border-light); border-radius: var(--radius-lg); display: flex; flex-direction: column; min-width: 0; }
.project-card .pc-head { padding: .7rem .9rem; font-weight: 600; font-size: 1.02rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.project-card .pc-head a { color: var(--heading); }
.project-card .pc-body { display: grid; grid-template-columns: 6rem 1fr; margin: 0; font-size: .85rem; border-top: 1px solid var(--border-light); }
.project-card .pc-body dt, .project-card .pc-body dd { margin: 0; padding: .45rem .9rem; border-bottom: 1px solid var(--border-light); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.project-card .pc-body dt { font-weight: 600; color: var(--heading); }
.project-card .pc-body dd.ok { color: var(--ok); }
.project-card .pc-foot { display: grid; grid-template-columns: 1fr 1fr 1fr 1.3fr; margin-top: auto; }
.project-card .pc-foot > * { padding: .5rem; text-align: center; border-right: 1px solid var(--border-light); font-size: .85rem; color: var(--text); }
.project-card .pc-foot > *:last-child { border-right: 0; font-weight: 600; }
.project-card.project-new { border-style: dashed; align-items: center; justify-content: center; min-height: 12rem; color: var(--muted); gap: .4rem; text-decoration: none; }
.project-card.project-new .plus { font-size: 2.2rem; line-height: 1; }
table.collaborators .avatar { width: 20px; height: 20px; border-radius: 50%; vertical-align: middle; margin-right: .35rem; }

/* Branch sidebar: add form per stage, drag and drop (Odoo.sh) */
.lane-head .lane-add { background: none; border: 0; color: #8e94a8; font-size: 1.1rem; line-height: 1; padding: 0 .25rem; cursor: pointer; }
.lane-head .lane-add:hover, .lane-head .lane-add[aria-expanded="true"] { color: #fff; }
.lane-form { display: grid; grid-template-columns: 2.6rem minmax(0, 1fr); gap: .35rem .4rem; align-items: center; background: rgba(0, 0, 0, .2);
  padding: .55rem .5rem; margin: .3rem 0; border-radius: 4px; font-size: .78rem; color: #c6cbe0; }
.lane-form select, .lane-form input { font-size: .8rem; padding: .2rem .35rem; min-width: 0; }
.lane-form button { grid-column: 2; justify-self: start; }
.ws-side .branch .grip { color: #59607a; font-size: .7rem; letter-spacing: -2px; cursor: grab; margin-right: .1rem; }
.ws-side .drop-hint { display: none; }
.ws-side.dragging .lane-head.over, .ws-side.dragging .branch.over { outline: 2px dashed #8fa3ff; outline-offset: -2px; background: rgba(143, 163, 255, .12); }
.ws-side.dragging .over { flex-wrap: wrap; }
.ws-side.dragging .over > .drop-hint { display: block; flex-basis: 100%; color: #dfe5ff; font-size: .72rem; font-weight: 400; text-transform: none; letter-spacing: 0; padding-top: .15rem; }

/* Create project (Odoo.sh "Deploy Your Platform") */
.deploy-page { max-width: 620px; margin: 1rem auto 2rem; background: var(--surface); border: 1px solid var(--border-light); border-radius: var(--radius-lg); padding: 1.6rem 1.5rem; text-align: center; }
.deploy-page h1 { font-size: 1.9rem; font-weight: 700; margin-bottom: 1rem; }
.deploy-intro { background: #d9f1f4; color: #1f4f57; border-radius: 4px; padding: .9rem 1rem; margin-bottom: 1.2rem; font-size: .9rem; }
.deploy-field { border: 0; padding: 0; margin: 0 0 1.2rem; }
.deploy-field > legend, .deploy-field > label { display: block; width: 100%; font-size: 1.05rem; color: var(--heading); margin-bottom: .5rem; font-weight: 400; }
.deploy-radios { display: flex; justify-content: center; gap: 1.5rem; margin-bottom: .5rem; }
.deploy-radios label { font-weight: 600; font-size: .9rem; }
.deploy-repo { display: grid; grid-template-columns: minmax(0, 9rem) minmax(0, 1fr) auto; gap: .35rem; align-items: center; }
.deploy-repo select, .deploy-repo input { min-width: 0; }
.deploy-gh { font-size: .8rem; white-space: nowrap; }
.deploy-help { margin-top: .6rem; font-weight: 600; font-size: .9rem; }
.deploy-note { font-size: .8rem; color: var(--muted); margin-top: .35rem; }
.deploy-location { font-weight: 400; display: inline-flex; gap: .4rem; align-items: center; }
.deploy-advanced { text-align: left; margin-bottom: 1rem; font-size: .9rem; }
.deploy-submit { padding: .55rem 2.5rem; font-size: 1rem; }
@media (max-width: 560px) { .deploy-repo { grid-template-columns: minmax(0, 1fr); } .deploy-page { padding: 1.1rem .9rem; } }
.lane-form[hidden] { display: none; }

/* Live logs (Odoo.sh Logs tab) */
.livelog-bar { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin-bottom: .5rem; }
.livelog-bar select { width: auto; }
.livelog-search { display: inline-flex; gap: .3rem; align-items: center; flex: 1 1 18rem; min-width: 0; }
.livelog-search input { min-width: 0; flex: 1; }
.livelog-options { position: relative; }
.livelog-options summary { list-style: none; cursor: pointer; }
.livelog-options .pop { position: absolute; z-index: 20; right: 0; top: calc(100% + 4px); background: var(--surface); border: 1px solid var(--border);
  border-radius: 4px; padding: .5rem .75rem; display: grid; gap: .35rem; min-width: 14rem; box-shadow: 0 4px 14px rgba(0, 0, 0, .12); font-size: .85rem; }
#ll-follow .live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #3fbf6f; animation: pulse 1s infinite alternate; }
#ll-follow.paused .live-dot { background: #9aa0ad; animation: none; }
.livelog-box { background: #1e2230; color: #d5d9e4; font: .78rem/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; height: 62vh; min-height: 18rem;
  overflow: auto; border-radius: 4px; padding: .5rem .7rem; }
.livelog-box .ll { white-space: pre; }
.livelog-box.wrap .ll { white-space: pre-wrap; word-break: break-word; }
.livelog-box .l-warning { color: #f3c969; } .livelog-box .l-error, .livelog-box .l-critical, .livelog-box .l-tb { color: #ff8a80; }
.livelog-box .l-debug { color: #8f97ab; }
.livelog-box mark { background: #f0d36a; color: #1e2230; padding: 0 1px; border-radius: 2px; }
.livelog-box mark.current { background: #ff9f43; outline: 1px solid #fff; }
.livelog-older { text-align: center; margin-bottom: .4rem; }

/* Modal dialogs (Odoo.sh Merge dialog) */
dialog.modal { border: 0; border-radius: 6px; padding: 0; width: min(520px, calc(100vw - 2rem)); box-shadow: 0 12px 40px rgba(0, 0, 0, .35); color: var(--text); background: var(--surface); }
dialog.modal::backdrop { background: rgba(20, 22, 30, .55); }
dialog.modal form { padding: 0 1.2rem 1rem; }
dialog.modal header { display: flex; justify-content: space-between; align-items: center; margin: 0 -1.2rem .9rem; padding: .8rem 1.2rem; border-bottom: 1px solid var(--border-light); }
dialog.modal header h2 { font-size: 1.15rem; margin: 0; }
dialog.modal .close { background: none; border: 0; font-size: 1.4rem; line-height: 1; cursor: pointer; color: var(--muted); }
dialog.modal footer { display: flex; justify-content: flex-end; align-items: center; gap: .5rem; margin: 1rem -1.2rem -1rem; padding: .75rem 1.2rem; border-top: 1px solid var(--border-light); }
dialog.modal footer .busy { margin-right: auto; }

/* Odoo.sh-style settings sections (branch and project settings) */
.settings-section h2 { font-size: 1.05rem; margin-bottom: .25rem; }
.settings-section .h-sub { font-size: .92rem; margin: .9rem 0 .15rem; }
.radio-row { display: block; font-weight: 400; margin: .2rem 0; }
.radio-row input { margin-right: .35rem; }
.settings-save { margin: 0 0 1rem; }
.rev-table th { text-align: left; font-weight: 500; color: var(--muted); padding: .15rem 1rem .15rem 0; }
.rev-table td { word-break: break-all; }
.status-figures > div { display: flex; flex-direction: column; }
.status-figures strong { font-size: 1.6rem; }
.status-table { margin-top: 1rem; }
.status-table thead th { padding-top: .8rem; }
.ok-text { color: var(--ok, #1a7f37); }
#profiler .row, #platform-domain.row, .settings-section form.row { display: flex; flex-wrap: wrap; align-items: end; }
#profiler form.inline { display: inline-block; }
