/* King's Grill Payroll Pipeline — Utilitarian Freeze-Pane Sheet Stylesheet */

*, *::before, *::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: var(--bg-canvas);
  color: var(--ink-primary);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  margin: 0;
  color: var(--ink-primary);
  line-height: 1.32;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

a {
  color: var(--accent-primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.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;
}

.num, .mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.num-right {
  text-align: right;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}

.icon-lg {
  width: 18px;
  height: 18px;
}

/* ==================== LAYOUT SHELL ==================== */

.app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-bottom: 52px; /* room for pinned summary footer */
}

.container-band {
  width: 100%;
  max-width: 1420px;
  margin: 0 auto;
  padding-inline: 16px;
}

/* ==================== DUAL-TIER TOP COMMAND RIBBON ==================== */

.top-ribbon {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-default);
  box-shadow: var(--shadow-sm);
}

.ribbon-tier-1 {
  border-bottom: 1px solid var(--border-default);
}

.ribbon-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding-block: 6px;
  flex-wrap: wrap;
}

.brand-cluster {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-md);
  background: var(--accent-primary);
  color: var(--accent-contrast);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.brand-text {
  min-width: 0;
}

.brand-title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-sub {
  font-size: 12px;
  color: var(--ink-secondary);
  line-height: 1.35;
}

.ribbon-utilities {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.ribbon-tier-2 {
  background: var(--bg-subtle);
}

.controls-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.controls-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.field-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.field-inline label {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-secondary);
  white-space: nowrap;
}

.select-control, .input-control {
  min-height: 36px;
  padding: 6px 10px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  color: var(--ink-primary);
  font-size: 13px;
  line-height: 1.35;
  transition: border-color var(--motion-fast), background-color var(--motion-fast);
}

.select-control:hover, .input-control:hover {
  border-color: var(--accent-primary);
}

.select-control:disabled, .input-control:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  background: var(--bg-subtle);
}

.input-control.is-error {
  border-color: var(--status-danger);
  background: var(--status-danger-bg);
}

/* Segmented Mode Switch */
.segmented-control {
  display: inline-flex;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  padding: 2px;
  gap: 2px;
}

.segmented-btn {
  min-height: 32px;
  padding: 4px 10px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--ink-secondary);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background-color var(--motion-fast), color var(--motion-fast);
}

.segmented-btn:hover:not(:disabled) {
  background: var(--bg-hover);
  color: var(--ink-primary);
}

.segmented-btn[aria-pressed="true"] {
  background: var(--accent-primary);
  color: var(--accent-contrast);
}

.segmented-btn.mode-live[aria-pressed="true"] {
  background: var(--status-danger);
  color: #FFFFFF;
}

/* ==================== BUTTONS (ALL 9 STATES) ==================== */

.btn {
  min-height: 36px;
  padding: 7px 13px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-strong);
  background: var(--bg-surface);
  color: var(--ink-primary);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color var(--motion-fast), border-color var(--motion-fast), color var(--motion-fast), transform var(--motion-fast);
}

.btn:hover:not(:disabled) {
  background: var(--bg-hover);
  border-color: var(--accent-primary);
}

.btn:active:not(:disabled) {
  transform: translateY(1px);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: var(--accent-contrast);
}

.btn-primary:hover:not(:disabled) {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--accent-contrast);
}

.btn-primary:active:not(:disabled) {
  background: var(--accent-active);
}

.btn-danger {
  background: var(--status-danger);
  border-color: var(--status-danger);
  color: #FFFFFF;
}

.btn-danger:hover:not(:disabled) {
  filter: brightness(0.92);
  border-color: var(--status-danger);
}

.btn-warning {
  background: var(--status-warning-bg);
  border-color: var(--status-warning-border);
  color: var(--status-warning);
}

.btn-warning:hover:not(:disabled) {
  filter: brightness(0.96);
}

.btn-ghost {
  background: transparent;
  border-color: transparent;
  color: var(--ink-secondary);
}

.btn-ghost:hover:not(:disabled) {
  background: var(--bg-subtle);
  border-color: var(--border-default);
  color: var(--ink-primary);
}

.btn-sm {
  min-height: 32px;
  padding: 4px 9px;
  font-size: 12px;
}

.btn-icon {
  min-width: 36px;
  padding: 7px;
}

/* ==================== STATUS PILLS ==================== */

.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-default);
  background: var(--bg-subtle);
  color: var(--ink-secondary);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
}

.pill-success {
  background: var(--status-success-bg);
  border-color: var(--status-success-border);
  color: var(--status-success);
}

.pill-warning {
  background: var(--status-warning-bg);
  border-color: var(--status-warning-border);
  color: var(--status-warning);
}

.pill-danger {
  background: var(--status-danger-bg);
  border-color: var(--status-danger-border);
  color: var(--status-danger);
}

.pill-accent {
  background: var(--accent-soft);
  border-color: var(--border-strong);
  color: var(--accent-primary);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

/* ==================== MAIN WORKSPACE ==================== */

.workspace-main {
  flex: 1;
  padding-block: 14px 20px;
}

.workspace-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ==================== 5-STAGE SEQUENTIAL PIPELINE RAIL ==================== */

.pipeline-section {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-default);
  background: var(--bg-subtle);
  flex-wrap: wrap;
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: -0.005em;
}

.pipeline-progress-track {
  height: 3px;
  width: 100%;
  background: var(--bg-subtle);
  overflow: hidden;
}

.pipeline-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--accent-primary);
  transition: width var(--motion-base);
}

.pipeline-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.stage-cell {
  padding: 12px 13px;
  border-right: 1px solid var(--border-default);
  display: flex;
  flex-direction: column;
  gap: 7px;
  position: relative;
  background: var(--bg-surface);
  transition: background-color var(--motion-fast);
}

.stage-cell:last-child {
  border-right: 0;
}

.stage-cell.is-selected {
  background: var(--accent-soft);
  box-shadow: inset 0 -2px 0 var(--accent-primary);
}

.stage-cell.state-running {
  background: var(--accent-soft);
}

.stage-cell.state-done {
  box-shadow: inset 0 2px 0 var(--status-success);
}

.stage-cell.state-paused {
  background: var(--status-warning-bg);
  box-shadow: inset 0 2px 0 var(--status-warning);
}

.stage-cell.state-error {
  background: var(--status-danger-bg);
  box-shadow: inset 0 2px 0 var(--status-danger);
}

.stage-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.stage-code {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-secondary);
  letter-spacing: 0.04em;
}

.stage-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-primary);
  line-height: 1.35;
}

.stage-summary {
  font-size: 12px;
  color: var(--ink-secondary);
  line-height: 1.45;
  min-height: 34px;
  word-break: break-word;
}

.stage-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-top: auto;
  padding-top: 6px;
  border-top: 1px dashed var(--border-default);
}

.stage-duration {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 11.5px;
  color: var(--ink-secondary);
}

/* ==================== ALERT / GATE BANNERS ==================== */

.banner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-default);
  background: var(--bg-surface);
  flex-wrap: wrap;
}

.banner-warning {
  background: var(--status-warning-bg);
  border-color: var(--status-warning-border);
}

.banner-danger {
  background: var(--status-danger-bg);
  border-color: var(--status-danger-border);
}

.banner-info {
  background: var(--accent-soft);
  border-color: var(--border-strong);
}

.banner-body {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  flex: 1 1 320px;
  min-width: 0;
}

.banner-title {
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.35;
}

.banner-warning .banner-title { color: var(--status-warning); }
.banner-danger .banner-title { color: var(--status-danger); }
.banner-info .banner-title { color: var(--accent-primary); }

.banner-desc {
  font-size: 12.5px;
  color: var(--ink-primary);
  margin-top: 3px;
  line-height: 1.5;
}

.banner-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* ==================== SPLIT WORKSPACE (LEDGER + INSPECTOR) ==================== */

.split-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.72fr) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.column-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-width: 0;
}

.panel-body {
  padding: 12px 14px;
}

/* ==================== DATA TABLES (SPREADSHEET-NATIVE GRID) ==================== */

.table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.ledger-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.ledger-table th {
  text-align: left;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--ink-secondary);
  background: var(--bg-subtle);
  padding: 8px 10px;
  border-bottom: 1px solid var(--border-strong);
  white-space: nowrap;
}

.ledger-table th.num-right {
  text-align: right;
}

.ledger-table td {
  padding: 7px 10px;
  border-bottom: 1px solid var(--border-default);
  vertical-align: middle;
  min-height: var(--row-height);
  line-height: 1.4;
}

.ledger-table tbody tr:hover {
  background: var(--bg-hover);
}

.ledger-table tbody tr:last-child td {
  border-bottom: 0;
}

.sheet-name-code {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-primary);
  word-break: break-word;
}

.time-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.time-chip {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 11.5px;
  padding: 1px 6px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-default);
  background: var(--bg-subtle);
  color: var(--ink-primary);
}

/* Toolbar inside KIỂM TRA panel */
.table-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 14px;
  border-bottom: 1px solid var(--border-default);
  background: var(--bg-surface);
  flex-wrap: wrap;
}

.search-box {
  position: relative;
  flex: 1 1 220px;
  max-width: 340px;
}

.search-box .icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-secondary);
  pointer-events: none;
}

.search-box .input-control {
  width: 100%;
  padding-left: 32px;
}

/* ==================== STEP 2 ZALO EDITOR & CONTROLS ==================== */

.textarea-control {
  width: 100%;
  min-height: 120px;
  padding: 9px 11px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  color: var(--ink-primary);
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.5;
  resize: vertical;
}

.textarea-control:hover {
  border-color: var(--accent-primary);
}

.helper-text {
  font-size: 12px;
  color: var(--ink-secondary);
  margin: 0 0 8px 0;
  line-height: 1.48;
}

.btn-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 9px;
}

.preview-list {
  margin-top: 10px;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.checkbox-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px 4px 2px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  min-height: 44px;
  transition: background-color var(--motion-fast), border-color var(--motion-fast);
}

.check-row:hover {
  background: var(--bg-hover);
  border-color: var(--border-default);
}

.check-row input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 40px;
  height: 40px;
  margin: 0;
  border: 0;
  background: transparent;
  position: relative;
  flex-shrink: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.check-row input[type="checkbox"]::before {
  content: '';
  width: 18px;
  height: 18px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-strong);
  background: var(--bg-surface);
  transition: background-color var(--motion-fast), border-color var(--motion-fast);
}

.check-row input[type="checkbox"]:checked::before {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
}

.check-row input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  width: 5px;
  height: 10px;
  border-right: 2px solid var(--accent-contrast);
  border-bottom: 2px solid var(--accent-contrast);
  transform: rotate(40deg) translate(-1px, -1px);
}

.check-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-primary);
  line-height: 1.4;
}

.check-hint {
  display: block;
  font-size: 11.5px;
  color: var(--ink-secondary);
  margin-top: 1px;
}

/* ==================== EXECUTION LOG CONSOLE ==================== */

.log-console {
  max-height: 240px;
  overflow-y: auto;
  background: var(--bg-canvas);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 8px 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.5;
}

.log-entry {
  display: grid;
  grid-template-columns: 62px 52px minmax(0, 1fr);
  gap: 8px;
  padding: 3px 0;
  border-bottom: 1px dashed var(--border-default);
}

.log-entry:last-child {
  border-bottom: 0;
}

.log-time {
  color: var(--ink-secondary);
  font-variant-numeric: tabular-nums;
}

.log-tag {
  font-weight: 700;
}

.log-tag.ok { color: var(--status-success); }
.log-tag.warn { color: var(--status-warning); }
.log-tag.err { color: var(--status-danger); }
.log-tag.info { color: var(--accent-primary); }

.log-msg {
  color: var(--ink-primary);
  word-break: break-word;
}

/* ==================== EMPTY & LOADING STATES ==================== */

.empty-state {
  padding: 24px 16px;
  text-align: center;
  color: var(--ink-secondary);
}

.empty-state-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink-primary);
  margin: 6px 0 3px;
}

.empty-state-desc {
  font-size: 12.5px;
  color: var(--ink-secondary);
  margin: 0;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.spin {
  animation: spin 0.9s linear infinite;
}

/* ==================== PINNED BOTTOM SUMMARY FOOTER ==================== */

.pinned-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 25;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-strong);
  box-shadow: 0 -2px 10px rgba(16, 24, 40, 0.06);
}

.footer-metrics {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 44px;
  padding-block: 6px;
  overflow-x: auto;
}

.footer-group {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: nowrap;
}

.metric-inline {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  white-space: nowrap;
  font-size: 12.5px;
}

.metric-label {
  color: var(--ink-secondary);
  font-weight: 500;
}

.metric-value {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--ink-primary);
}

.metric-value.ok { color: var(--status-success); }
.metric-value.warn { color: var(--status-warning); }
.metric-value.err { color: var(--status-danger); }

/* ==================== AUTH GATE & CONFIRMATION MODAL ==================== */

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(15, 23, 36, 0.56);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-backdrop[hidden] {
  display: none;
}

.modal-card {
  width: 100%;
  max-width: 440px;
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.modal-header {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-default);
  background: var(--bg-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.modal-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-field label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-primary);
}

.form-field .input-control {
  width: 100%;
}

.form-error {
  padding: 8px 10px;
  border-radius: var(--radius-md);
  border: 1px solid var(--status-danger-border);
  background: var(--status-danger-bg);
  color: var(--status-danger);
  font-size: 12.5px;
  font-weight: 500;
}

.modal-footer {
  padding: 12px 16px;
  border-top: 1px solid var(--border-default);
  background: var(--bg-subtle);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

/* ==================== TOAST NOTIFICATION ==================== */

.toast-region {
  position: fixed;
  right: 16px;
  bottom: 58px;
  z-index: 70;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 360px;
}

.toast {
  padding: 10px 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-strong);
  background: var(--bg-surface);
  color: var(--ink-primary);
  box-shadow: var(--shadow-md);
  font-size: 13px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.toast-success { border-left: 3px solid var(--status-success); }
.toast-warning { border-left: 3px solid var(--status-warning); }
.toast-danger { border-left: 3px solid var(--status-danger); }

/* ==================== RESPONSIVE BREAKPOINTS ==================== */

@media (max-width: 1120px) {
  .pipeline-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .stage-cell {
    border-bottom: 1px solid var(--border-default);
  }
  .split-workspace {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 768px) {
  .container-band {
    padding-inline: 12px;
  }
  .pipeline-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .pipeline-grid .stage-cell:nth-child(2n) {
    border-right: 0;
  }
  .pipeline-grid .stage-cell:last-child {
    grid-column: 1 / -1;
    border-right: 0;
    border-bottom: 0;
  }
  .btn, .btn-sm, .select-control, .input-control, .segmented-btn {
    min-height: 44px;
  }
  .btn-icon {
    min-width: 44px;
    min-height: 44px;
  }
  .check-row {
    min-height: 48px;
    padding: 4px 8px 4px 2px;
  }
  .check-row input[type="checkbox"] {
    width: 44px;
    height: 44px;
  }
  .brand-sub {
    display: none;
  }
}

@media (max-width: 520px) {
  .pipeline-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .stage-cell {
    border-right: 0;
  }
  .controls-left, .controls-right {
    width: 100%;
  }
  .controls-right .btn-primary {
    flex: 1 1 100%;
  }
  .segmented-control {
    width: 100%;
  }
  .segmented-btn {
    flex: 1 1 50%;
    justify-content: center;
  }
  .footer-group {
    gap: 12px;
  }
}
