:root {
  --brand-red: #d9001b;
  --brand-red-dark: #b60017;
  --brand-red-soft: #fff0f2;
  --ink-950: #111318;
  --ink-800: #262a31;
  --ink-700: #3c424b;
  --ink-600: #58616d;
  --line: #dfe3e8;
  --line-strong: #c8ced6;
  --surface: #ffffff;
  --surface-muted: #f4f6f8;
  --success: #087a55;
  --warning: #9a5b00;
  --sidebar-width: 252px;
  --lds-gold: var(--brand-red);
  --lds-gold-light: #f12a40;
  --fleet-teal: var(--brand-red);
  --fleet-teal-light: var(--brand-red-dark);
  --fleet-teal-dark: #970012;
  --lds-navy: var(--ink-950);
  --lds-navy-light: var(--surface);
  --bs-body-font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", sans-serif;
  --bs-body-color: var(--ink-800);
  --bs-secondary-color: var(--ink-600);
}

body::before {
  position: fixed;
  z-index: 1100;
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--brand-red);
  box-shadow: 0 0 10px rgba(217, 0, 27, .5);
  content: '';
  opacity: 0;
  pointer-events: none;
}

body.lds-nav-loading::before {
  width: 72%;
  opacity: 1;
  animation: lds-navigation-progress 1.1s ease-in-out infinite;
}

body.lds-nav-loading #main-content {
  opacity: .72;
  pointer-events: none;
}

#main-content { transition: opacity .12s ease; }

@keyframes lds-navigation-progress {
  0% { transform: translateX(-100%); }
  55% { transform: translateX(35%); }
  100% { transform: translateX(145%); }
}

.billing-detail-row > td {
  background: rgba(11, 127, 123, 0.035) !important;
  border-bottom: 2px solid rgba(11, 127, 123, 0.16);
}

/* --- Staff login --- */
.login-page {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 80% 12%, rgba(230, 0, 35, .12), transparent 27rem),
    linear-gradient(145deg, #f7f8fa 0%, #eef0f4 100%);
  color: #17191d;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px 18px;
}

.login-card {
  width: min(100%, 460px);
  padding: clamp(28px, 6vw, 48px);
  border: 1px solid rgba(22, 25, 30, .09);
  border-radius: 24px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 24px 70px rgba(18, 22, 29, .13);
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 34px;
}

.login-logo-crop {
  display: block;
  width: 112px;
  height: 44px;
  overflow: hidden;
}

.login-logo-crop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.login-brand p {
  margin: 0;
  padding-left: 14px;
  border-left: 1px solid #d7d9de;
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .03em;
}

.login-eyebrow {
  color: #e00023;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .16em;
}

.login-copy h1 {
  margin: 8px 0 10px;
  font-size: clamp(1.65rem, 6vw, 2rem);
  font-weight: 800;
  letter-spacing: -.035em;
}

.login-copy p {
  margin-bottom: 26px;
  color: #676c75;
  font-size: .93rem;
  line-height: 1.7;
}

.login-form {
  display: grid;
  gap: 20px;
}

.login-form .form-label {
  margin-bottom: 8px;
  font-size: .86rem;
  font-weight: 700;
}

.login-form .form-control {
  min-height: 52px;
  border-color: #cfd3da;
  font-size: 1rem;
}

.login-form .form-control:focus {
  border-color: #e00023;
  box-shadow: 0 0 0 .2rem rgba(224, 0, 35, .12);
}

.login-note {
  margin: 22px 0 0;
  color: #747983;
  font-size: .78rem;
  text-align: center;
}

.session-email {
  display: block;
  max-width: 100%;
  overflow: hidden;
  color: #afb4be !important;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-logout {
  width: 100%;
  margin: 10px 0 4px;
  padding: 8px 10px;
  border: 1px solid #3c414b;
  border-radius: 8px;
  background: transparent;
  color: #d9dce2;
  font-size: .8rem;
  text-align: left;
}

.sidebar-logout:hover,
.sidebar-logout:focus-visible {
  border-color: #e00023;
  color: #fff;
}

@media (max-width: 480px) {
  .login-card { border-radius: 18px; }
  .login-brand { margin-bottom: 26px; }
}

html { scroll-behavior: smooth; }

body {
  min-width: 320px;
  background: var(--surface-muted);
  color: var(--ink-800);
  font-family: var(--bs-body-font-family);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand-red-dark); }
a:hover { color: #860010; }

.skip-link {
  position: fixed;
  z-index: 2000;
  top: 0.5rem;
  left: 0.5rem;
  padding: 0.65rem 0.9rem;
  border-radius: 0.45rem;
  background: #fff;
  color: var(--ink-950);
  font-weight: 700;
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

:focus-visible {
  outline: 3px solid #111 !important;
  outline-offset: 3px !important;
  box-shadow: 0 0 0 5px #fff !important;
}

.lds-navbar {
  min-height: 72px;
  padding: 0.45rem 1.15rem;
  border: 0;
  border-bottom: 3px solid var(--brand-red);
  background: var(--ink-950) !important;
  box-shadow: 0 2px 10px rgba(17, 19, 24, 0.2);
}

.lds-brand,
.navbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  min-height: 54px;
  margin: 0;
  color: #fff !important;
  font-size: 1rem;
  letter-spacing: 0;
}

.brand-logo-crop {
  position: relative;
  display: block;
  width: 138px;
  height: 48px;
  overflow: hidden;
  border-radius: 0.35rem;
  background: #fff;
}

.brand-logo-crop img {
  position: absolute;
  top: 50%;
  left: 0;
  display: block;
  width: 100%;
  height: auto;
  transform: translateY(-50%);
}

.brand-wording { display: flex; flex-direction: column; line-height: 1.15; }
.brand-wording strong { color: #fff; font-size: 1rem; font-weight: 750; }
.brand-wording small { margin-top: 0.22rem; color: #b7bec8; font-size: 0.64rem; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase; }

.navbar-toggler {
  width: 46px;
  height: 46px;
  border: 1px solid #4c535e;
  background: #fff;
}

.sidebar {
  top: 72px;
  width: var(--sidebar-width);
  height: calc(100vh - 72px);
  min-height: calc(100vh - 72px);
  flex: 0 0 var(--sidebar-width);
  border-right: 0;
  background: var(--ink-950);
}

.sidebar-brand {
  justify-content: space-between;
  padding: 1.2rem 1.25rem 0.75rem;
  border-bottom: 0;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: none;
}
.sidebar-brand small { color: #767f8c; font-size: 0.58rem; letter-spacing: 0.13em; }

.sidebar-nav { padding: 0.4rem 0.75rem 1rem; }
.sidebar-nav .nav-item + .nav-item { margin-top: 0.15rem; }
.sidebar-nav .nav-link {
  min-height: 48px;
  padding: 0.7rem 0.85rem;
  border-left: 3px solid transparent;
  border-radius: 0.5rem;
  color: #c2c8d0;
  font-size: 0.94rem;
  font-weight: 600;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.sidebar-nav .nav-link:hover { background: #20242b; color: #fff; }
.sidebar-nav .nav-link.active {
  border-left-color: var(--brand-red);
  background: #2a2023;
  color: #fff;
}
.sidebar-nav .nav-link i { color: #959eaa; }
.sidebar-nav .nav-link.active i { color: #ff4055; }

.sidebar-footer {
  display: grid;
  gap: 0.5rem;
  padding: 1rem 1.25rem 1.25rem;
  border-top: 1px solid #292e36;
  color: #858e9a;
}
.sidebar-footer small { color: #7a838e; font-size: 0.7rem; }
.security-presence { color: #c7ced6; font-size: 0.75rem; font-weight: 650; }
.security-presence i { color: #35c48b; }

.main-content {
  min-height: calc(100vh - 72px);
  background:
    linear-gradient(135deg, rgba(217, 0, 27, 0.025) 0, transparent 26%),
    var(--surface-muted);
}
.main-content > .container-fluid { max-width: 1560px; padding: 2rem 2.25rem !important; }

.page-header {
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
}
.page-header h1,
.company-detail-header h1 {
  margin: 0;
  color: var(--ink-950);
  font-size: clamp(1.55rem, 2.4vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.025em;
}
.page-header h1 i { color: var(--brand-red); }
.page-header p { margin-top: 0.35rem; }
.page-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 44px;
  max-width: 100%;
  margin-bottom: 0.65rem;
  padding: 0.48rem 0.8rem;
  border: 1px solid var(--line-strong);
  border-radius: 0.55rem;
  background: #fff;
  color: var(--ink-800);
  font-size: 0.88rem;
  font-weight: 720;
  line-height: 1.35;
  text-decoration: none;
}
.page-back-link i { color: var(--brand-red); font-size: 1rem; }
.page-back-link:hover,
.page-back-link:focus { border-color: var(--ink-950); background: var(--ink-950); color: #fff; }
.page-back-link:hover i,
.page-back-link:focus i { color: #fff; }
.section-kicker {
  margin-bottom: 0.25rem;
  color: var(--brand-red-dark);
  font-size: 0.69rem;
  font-weight: 850;
  letter-spacing: 0.14em;
}
.section-heading { align-items: center; margin-bottom: 1rem; }
.section-heading h2 { color: var(--ink-950); font-size: 1.2rem; font-weight: 780; }

.page-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.55rem; }

.priority-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.priority-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-height: 68px;
  padding: 0.8rem 1rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: #fff;
  color: var(--ink-800);
  text-decoration: none;
}
.priority-item:hover { border-color: var(--line-strong); color: var(--ink-950); box-shadow: 0 4px 12px rgba(17, 19, 24, 0.06); }
.priority-item > i { display: grid; width: 40px; height: 40px; flex: 0 0 40px; place-items: center; border-radius: 50%; background: #eef1f4; color: var(--ink-700); font-size: 1.1rem; }
.priority-item strong { display: block; color: var(--ink-950); font-size: 1.02rem; }
.priority-item span { display: block; color: var(--ink-600); font-size: 0.78rem; }
.priority-item.urgent { border-color: #f0a2ad; background: var(--brand-red-soft); }
.priority-item.urgent > i { background: #fff; color: var(--brand-red-dark); }

.termination-notice-card { border: 2px solid #dc3545; box-shadow: 0 6px 20px rgba(220, 53, 69, 0.14); scroll-margin-top: 1rem; }
.termination-notice-header { border-bottom-color: #f0a2ad; background: var(--brand-red-soft); color: var(--brand-red-dark); font-weight: 800; }
.termination-notice-row {
  display: grid;
  grid-template-columns: 42px minmax(180px, 1fr) minmax(230px, auto) auto 18px;
  align-items: center;
  gap: 0.85rem;
  min-height: 76px;
  color: var(--ink-800);
  text-decoration: none;
}
.termination-notice-row:hover { background: #fff8f8; color: var(--ink-950); }
.termination-notice-icon { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 50%; background: var(--brand-red-soft); color: var(--brand-red-dark); font-size: 1.05rem; }
.termination-notice-main { display: flex; flex-direction: column; gap: 0.12rem; }
.termination-notice-main strong { color: var(--ink-950); }
.termination-notice-main small { color: var(--ink-600); }
.termination-notice-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 0.12rem; }
.termination-notice-meta small { color: var(--ink-600); }
.termination-notice-meta strong { color: var(--brand-red-dark); font-size: 0.86rem; }
.termination-notice-arrow { color: var(--ink-500); }

.card,
.system-status-card,
.stat-card,
.metric-card,
.goal-card,
.company-detail-header {
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  background: var(--surface);
  box-shadow: 0 2px 8px rgba(17, 19, 24, 0.045);
}
.card { color: var(--ink-800); }
.card-header {
  min-height: 52px;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--line);
  background: #fbfcfd;
  color: var(--ink-950);
  font-weight: 720;
}
.card-footer { border-top-color: var(--line); background: #fbfcfd; }

.goal-card { padding: 1.4rem; border-top: 4px solid var(--brand-red); background: #fff; }
.goal-value { color: var(--ink-950); }
.goal-value span { color: var(--ink-600); }
.goal-icon { background: var(--brand-red-soft); color: var(--brand-red-dark); }
.goal-progress,
.capacity-progress { background: #e7eaee; }
.goal-progress .progress-bar,
.capacity-progress .progress-bar { background: var(--brand-red); }

.metric-card { min-height: 148px; background: #fff; }
.metric-card > i { color: var(--brand-red); }
.metric-card strong { color: var(--ink-950); }
.metric-card strong small,
.metric-label,
.metric-foot { color: var(--ink-600); }
.metric-card-link:hover .metric-card { border-color: #e26776; transform: translateY(-1px); }
.metric-alert { border-color: #e58591; background: var(--brand-red-soft); }

.stat-card { padding: 1.25rem; background: #fff; }
.stat-card:hover { transform: none; }
.stat-card .stat-value { color: var(--ink-950); }
.stat-card .stat-label { color: var(--ink-600); }
.stat-card .stat-icon { color: var(--brand-red); opacity: 0.72; }

.pipeline-board { border: 1px solid var(--line); background: #fff; }
.pipeline-stage { min-height: 66px; border-right-color: var(--line); color: var(--ink-700); }
.pipeline-stage:hover { background: #f8f9fb; color: var(--ink-950); }
.pipeline-stage i { color: var(--brand-red); }
.pipeline-stage strong { color: var(--ink-950); }
.pipeline-stage.stage-won { background: #eef9f4; }
.pipeline-stage.stage-won i { color: var(--success); }
.pipeline-stage.stage-negotiation { background: #fff8e8; }

.table { --bs-table-color: var(--ink-800); --bs-table-bg: transparent; --bs-table-hover-color: var(--ink-950); --bs-table-hover-bg: #f7f8fa; color: var(--ink-800); }
.table > :not(caption) > * > * { padding: 0.78rem 0.75rem; border-bottom-color: #e7eaee; }
.table thead th { padding-top: 0.8rem; padding-bottom: 0.8rem; color: var(--ink-600); font-size: 0.76rem; font-weight: 750; letter-spacing: 0.035em; text-transform: none; white-space: nowrap; }
.table-responsive { scrollbar-color: #b8bec6 #eef0f2; }

.company-name { color: var(--ink-950); }
.company-name:hover { color: var(--brand-red-dark); }
.row-overdue { box-shadow: inset 4px 0 var(--brand-red); }
.plan-pill { border-color: #df9da5; background: var(--brand-red-soft); color: var(--brand-red-dark); }
.plan-pill.plan-プレミアム { border-color: #d9b261; background: #fff8e7; color: #704200; }
.plan-pill.plan-ノーマル { border-color: var(--line-strong); background: #f4f6f8; color: var(--ink-700); }

.btn {
  min-height: 42px;
  padding: 0.48rem 0.85rem;
  border-radius: 0.5rem;
  font-weight: 700;
  line-height: 1.4;
}
.btn-sm { min-height: 36px; padding: 0.34rem 0.66rem; font-size: 0.82rem; }
.btn[aria-label] { min-width: 36px; }
.btn-lds,
.btn-fleet { border-color: var(--brand-red); background: var(--brand-red); color: #fff; }
.btn-lds:hover,
.btn-lds:focus,
.btn-fleet:hover,
.btn-fleet:focus { border-color: var(--brand-red-dark); background: var(--brand-red-dark); color: #fff; }
.btn-outline-lds,
.btn-outline-fleet { border-color: #b9c0c8; background: #fff; color: var(--ink-800); }
.btn-outline-lds:hover,
.btn-outline-lds:focus,
.btn-outline-fleet:hover,
.btn-outline-fleet:focus { border-color: var(--ink-950); background: var(--ink-950); color: #fff; }
.btn-outline-secondary { border-color: #b9c0c8; color: var(--ink-700); }
.btn-outline-warning { border-color: #cb8a14; color: #754600; }
.btn-link.text-danger { min-width: 36px; min-height: 36px; }

.form-label { margin-bottom: 0.38rem; color: var(--ink-700); font-size: 0.86rem; font-weight: 720; }
.form-control,
.form-select,
.input-group-text {
  min-height: 44px;
  border-color: #bfc6ce;
  background-color: #fff;
  color: var(--ink-950);
}
.form-control::placeholder { color: #818995; opacity: 1; }
.form-text { color: #68717d; font-size: 0.78rem; }
.wareki-input { font-variant-numeric: tabular-nums; }
.form-control:focus,
.form-select:focus { border-color: var(--ink-950); background: #fff; color: var(--ink-950); box-shadow: 0 0 0 3px rgba(217, 0, 27, 0.13); }
.form-control[readonly],
.form-control:disabled,
.form-select:disabled { background: #eef1f4; }
.input-group-text { background: #f5f7f9 !important; color: var(--ink-600) !important; }
.form-check-input:checked { border-color: var(--brand-red); background-color: var(--brand-red); }

.customer-switch { border-color: var(--line); background: #e9edf1; }
.customer-switch a,
.customer-switch button { min-height: 42px; color: var(--ink-600); }
.customer-switch a:hover,
.customer-switch button:hover { color: var(--ink-950); }
.customer-switch a.active,
.customer-switch button.active { background: #fff; color: var(--ink-950); box-shadow: 0 1px 4px rgba(17, 19, 24, 0.12); }

.company-detail-header { background: #fff; }
.detail-tabs {
  gap: 0.5rem;
  padding: 0.55rem;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  background: #fff;
  box-shadow: 0 5px 16px rgba(17, 19, 24, 0.06);
}
.detail-tabs a {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  padding: 0.7rem 0.9rem;
  border: 1px solid #d9dde2;
  border-radius: 0.62rem;
  background: #f7f8fa;
  color: var(--ink-700);
  box-shadow: 0 1px 2px rgba(17, 19, 24, 0.04);
}
.detail-tabs a:hover { border-color: #aeb5be; background: #fff; color: var(--ink-950); box-shadow: 0 3px 9px rgba(17, 19, 24, 0.09); }
.detail-tabs a.active { border-color: var(--ink-950); background: var(--ink-950); color: #fff; box-shadow: 0 4px 10px rgba(17, 19, 24, 0.2); }
.detail-tabs a.active::after { display: none; }
.detail-tabs a span { background: #e5e8ec; color: var(--ink-700); }
.detail-tabs a.active span { background: rgba(255, 255, 255, 0.16); color: #fff; }
.detail-grid dt,
.detail-grid dd { border-bottom-color: #e7eaee; }
.detail-grid dt { color: var(--ink-600); }
.detail-grid dd { color: var(--ink-800); }
.detail-grid a { color: var(--brand-red-dark); }
.next-action-card { border-color: #e6929c; }
.next-action-card .card-header { color: var(--brand-red-dark); }
.next-action-card h2 { color: var(--ink-950); }

.empty-state > i { color: #e06c7a; }
.empty-state h2 { color: var(--ink-950); }
.empty-state p { color: var(--ink-600); }
.activity-item:not(:last-child) .activity-marker::after { background: #d8dde3; }
.activity-marker { border-color: #e5a3ab; background: var(--brand-red-soft); color: var(--brand-red-dark); }
.activity-content { border-color: var(--line); background: #fbfcfd; }
.activity-type { color: var(--brand-red-dark); }
.activity-content time { color: var(--ink-600); }
.activity-content p { color: var(--ink-800); }
.activity-next { border-top-color: var(--line); color: var(--ink-600); }
.plan-comparison tr.selected { background: var(--brand-red-soft); }
.plan-comparison tr.selected td:first-child { color: var(--brand-red-dark); }
.fleet-check { border-color: #e9aab2; background: var(--brand-red-soft); }
.mini-definition dt { color: var(--ink-600); }
.mini-definition dd { color: var(--ink-950); }

.action-row { min-height: 64px; border-bottom-color: var(--line); color: var(--ink-700); }
.action-row:hover { background: #f8f9fb; color: var(--ink-950); }
.action-date { border-right-color: var(--line); }
.action-date strong,
.action-row .flex-grow-1 strong { color: var(--ink-950); }
.action-date span,
.action-row .flex-grow-1 span { color: var(--ink-600); }
.fleet-reminder { min-height: 58px; border-bottom-color: var(--line); color: var(--ink-700); }
.fleet-reminder:hover strong { color: var(--brand-red-dark); }
.fleet-reminder strong { color: var(--ink-950); }
.fleet-reminder span { color: var(--ink-600); }
.fleet-reminder time { color: var(--brand-red-dark); }

.system-status-card { padding: 1.15rem; background: #fff; }
.status-label,
.status-note { color: var(--ink-600); }
.status-value { color: var(--ink-950); }
.metric-mini { background: #f2f4f6; }
.metric-mini strong { color: var(--ink-950); }
.metric-mini span,
.system-detail-list dd { color: var(--ink-600); }
.system-detail-list dt,
.system-detail-list dd { border-bottom-color: var(--line); }
.security-check-list li { color: var(--ink-700); }
.security-check-list i { color: var(--success); }
.billing-preview { overflow: hidden; border: 1px solid var(--line); border-radius: 0.65rem; background: #f8f9fb; }
.billing-preview > div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.65rem 0.8rem; border-bottom: 1px solid var(--line); }
.billing-preview > div:last-child { border-bottom: 0; }
.billing-preview span { color: var(--ink-600); }
.billing-preview .total { background: #fff4f5; color: var(--brand-red-dark); }
.billing-preview .total span { color: var(--brand-red-dark); }
.billing-status-form { min-width: 106px; }
.billing-table td { vertical-align: middle; }
.cost-section-label { padding: 0.75rem 0.9rem; border-left: 3px solid var(--brand-red); background: #f5f6f8; color: var(--ink-800); font-weight: 700; }
.cost-breakdown { overflow: hidden; border: 1px solid var(--line); border-radius: 0.65rem; background: #f8f9fb; }
.cost-breakdown > div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.55rem 0.8rem; border-bottom: 1px solid var(--line); font-size: 0.9rem; }
.cost-breakdown > div:last-child { border-bottom: 0; }
.cost-breakdown span { color: var(--ink-600); }
.cost-breakdown .total { background: #fff4f5; color: var(--brand-red-dark); font-size: 1rem; }
.cost-breakdown .total span { color: var(--brand-red-dark); font-weight: 700; }

.reminder-item { border-left-color: #c88200; background: #fff8e8; }
.profit-warning { color: var(--brand-red-dark) !important; }
.text-teal,
.text-gold { color: var(--brand-red-dark) !important; }
.border-teal,
.border-gold { border-color: var(--line) !important; }
.breadcrumb-item a { color: var(--ink-700); }
.breadcrumb-item.active { color: var(--ink-600); }
.breadcrumb-item + .breadcrumb-item::before { color: #8b939e; }
.modal-content { border-color: var(--line); background: #fff; color: var(--ink-800); }
.list-group-item { color: var(--ink-800); }
code { color: #9d1530; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #eef0f2; }
::-webkit-scrollbar-thumb { border: 2px solid #eef0f2; border-radius: 8px; background: #aeb5be; }
::-webkit-scrollbar-thumb:hover { background: #8b949f; }

@media (max-width: 991.98px) {
  .lds-navbar { min-height: 66px; }
  .navbar-collapse { margin: 0.6rem -1.15rem -0.45rem; padding: 0.55rem 1.15rem 0.9rem; border-top: 1px solid #323740; background: var(--ink-950); }
  .lds-navbar .nav-link { min-height: 46px; padding: 0.65rem 0.75rem; border-radius: 0.4rem; color: #d7dbe1; }
  .lds-navbar .nav-link.active { background: #2a2023; color: #fff !important; }
  .main-content { min-height: calc(100vh - 66px); }
  .main-content > .container-fluid { padding: 1.5rem !important; }
  .pipeline-stage { border-bottom-color: var(--line); }
  .priority-strip { grid-template-columns: 1fr; }
  .termination-notice-row { grid-template-columns: 38px minmax(0, 1fr) auto; }
  .termination-notice-meta { grid-column: 2 / 4; align-items: flex-start; }
  .termination-notice-arrow { display: none; }
}

@media (max-width: 575.98px) {
  .lds-navbar { padding-right: 0.75rem; padding-left: 0.75rem; }
  .brand-logo-crop { width: 102px; height: 40px; }
  .brand-wording strong { font-size: 0.82rem; }
  .brand-wording small { display: none; }
  .main-content > .container-fluid { padding: 1.1rem 0.9rem 2rem !important; }
  .page-header { gap: 0.9rem !important; }
  .page-header > * { width: 100%; }
  .page-actions { justify-content: stretch; }
  .page-actions .btn { flex: 1 1 auto; }
  .priority-strip { grid-template-columns: 1fr; }
  .section-heading { flex-wrap: wrap; }
  .section-heading > a { width: 100%; }
  .customer-switch { width: 100%; }
  .table > :not(caption) > * > * { padding: 0.7rem 0.6rem; }
  .card-body { padding: 1rem; }
  .urgent-action-row { flex-wrap: wrap; }
  .urgent-action-row > .d-flex.gap-1 { width: 100%; justify-content: flex-end; }
  .urgent-action-row > .d-flex.gap-1 .btn { flex: 0 0 auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}
