:root {
  --ink: #09090b;
  --ink-2: #18181b;
  --muted: #71717a;
  --paper: #f4f4f6;
  --surface: #ffffff;
  --surface-2: #f4f4f5;
  --line: #e4e4e7;
  --line-strong: #a1a1aa;
  --green: #09090b;
  --green-2: #18181b;
  --lime: #ff5500;
  --orange: #ff5500;
  --orange-2: #e64d00;
  --amber: #d97706;
  --red: #dc2626;
  --blue: #09090b;
  --focus: #ff5500;
  --shadow: 0 12px 34px rgba(9, 9, 11, 0.06);
  --shadow-hover: 0 18px 44px rgba(9, 9, 11, 0.12);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  font-weight: 450;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--paper);
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

::selection { color: #ffffff; background: #ff5500; }

h1, h2, h3, strong { text-wrap: balance; }
b, strong { font-weight: 650; }
.topbar h1,
.section-heading h2,
.kpi strong,
.stock-card strong,
.system-card .metric,
.readiness-card strong,
dialog h2,
.login-brand h1 {
  font-family: "Avenir Next", Avenir, "Segoe UI Variable", Inter, ui-sans-serif, system-ui, sans-serif;
  font-weight: 650;
}

.eyebrow { color: var(--green-2); font-weight: 700; }
.login-brand .eyebrow { color: #ff9b84; }
.login-card .eyebrow { color: #b8422a; }
.product-name,
.wordmark { font-weight: 650; }
.nav-item { font-weight: 560; }
.nav-glyph { font-weight: 650; }
.primary,
.secondary,
.text-button { min-height: 2.75rem; font-weight: 620; }
.login-card label,
.settings-form label,
.compact-form label,
dialog label,
.field-label { font-weight: 580; }
.settings-form legend,
.count-chip,
.status { font-weight: 650; }
.mobile-nav button,
.ready-message { font-weight: 580; }
th { font-weight: 650; }
.brand-mark { font-weight: 700; }

.release-badge {
  display: inline-flex;
  align-items: center;
  margin-left: 0.35rem;
  padding: 0.18rem 0.42rem;
  border-radius: 999px;
  color: #004e72;
  background: #eaf3f7;
  border: 1px solid #c9dce5;
  font-size: 0.62rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  vertical-align: middle;
}

.topbar-version {
  margin-left: 0.5rem;
  vertical-align: middle;
}

.sidebar-version {
  color: #ffd3c7;
  background: rgba(255, 104, 69, 0.13);
  border-color: rgba(255, 104, 69, 0.28);
}

.section-copy {
  max-width: 48rem;
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.field-help {
  display: block;
  margin-top: 0.15rem;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 520;
  line-height: 1.45;
}

.page-progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 120;
  height: 3px;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  transition: opacity 180ms ease;
}

.page-progress span {
  display: block;
  width: 42%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff6845, #004e72);
  transform: translateX(-120%);
}

.page-progress.active { opacity: 1; }
.page-progress.active span { animation: progress-sweep 1.1s ease-in-out infinite; }

button,
.nav-item,
.panel,
.kpi,
.stock-card,
.system-card,
.readiness-card,
input,
select,
textarea {
  transition: transform 160ms ease, box-shadow 200ms ease, border-color 180ms ease, background-color 180ms ease, color 180ms ease, opacity 180ms ease;
}

button,
.nav-item {
  position: relative;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}

button:hover:not(:disabled),
a.nav-item:hover { transform: translateY(-1px); }
button:active:not(:disabled),
a.nav-item:active { transform: translateY(1px) scale(0.975); }

button:focus-visible,
.nav-item:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(0, 78, 114, 0.25);
  outline-offset: 2px;
}

.primary {
  background: linear-gradient(135deg, #004e72, #006b91);
  box-shadow: 0 7px 18px rgba(0, 78, 114, 0.2);
}

.primary:hover:not(:disabled) {
  background: linear-gradient(135deg, #00618b, #007ba3);
  box-shadow: 0 10px 24px rgba(0, 78, 114, 0.28);
}

.secondary:hover:not(:disabled) { border-color: #a9c5d2; background: #f1f7f9; }
.text-button:hover:not(:disabled) { background: rgba(0, 78, 114, 0.08); }
button:disabled { cursor: wait; opacity: 0.66; }
button.is-working { padding-right: 2.7rem; }

button.is-working::after,
button:disabled[data-busy="true"]::after {
  content: "";
  position: absolute;
  right: 0.9rem;
  width: 0.85rem;
  height: 0.85rem;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 650ms linear infinite;
}

.button-ripple {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.2;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0);
  animation: button-ripple 520ms ease-out forwards;
}

.sidebar {
  background:
    radial-gradient(circle at 20% 0, rgba(255, 104, 69, 0.18), transparent 14rem),
    linear-gradient(180deg, #092634, #061a24);
  box-shadow: 12px 0 36px rgba(9, 38, 52, 0.13);
}

.nav-item.active {
  background: rgba(255, 255, 255, 0.13);
  box-shadow: inset 3px 0 0 var(--lime);
}

.nav-item.active .nav-glyph { color: #ff8b70; }
.topbar { background: rgba(249, 249, 249, 0.94); box-shadow: 0 8px 30px rgba(9, 38, 52, 0.05); }

.panel,
.kpi,
.stock-card,
.system-card,
.readiness-card {
  border-color: rgba(215, 226, 231, 0.96);
  box-shadow: 0 7px 22px rgba(9, 38, 52, 0.045);
}

.panel:hover,
.kpi:hover,
.stock-card:hover,
.system-card:hover,
.readiness-card:hover {
  border-color: #a9c5d2;
  box-shadow: var(--shadow-hover);
}

.kpi.accent {
  background:
    radial-gradient(circle at 90% 10%, rgba(255, 104, 69, 0.28), transparent 7rem),
    linear-gradient(145deg, #092634, #004e72);
}

.system-strip {
  background: linear-gradient(130deg, #092634, #004e72);
  box-shadow: 0 12px 30px rgba(9, 38, 52, 0.16);
}

.pilot-hardware-layout {
  display: grid;
  grid-template-columns: minmax(30rem, 1.15fr) minmax(22rem, 0.85fr);
  gap: 0.8rem;
  margin: 0.8rem 0;
}

.pilot-readiness-panel .muted { margin: 0.25rem 0 0; max-width: 42rem; font-size: 0.74rem; line-height: 1.5; }
.readiness-counts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.65rem; margin-bottom: 0.8rem; }
.readiness-count { padding: 0.85rem; border: 1px solid #d7e2e7; border-radius: 0.8rem; background: #f4f8fa; }
.readiness-count span, .readiness-count small { display: block; color: var(--muted); font-size: 0.68rem; }
.readiness-count strong { display: block; margin: 0.25rem 0; font-size: 1.5rem; font-weight: 620; color: var(--ink); }
.hardware-requirements { display: grid; margin-bottom: 0.9rem; }
.hardware-requirement { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; padding: 0.72rem 0; border-top: 1px solid #e3ecef; }
.hardware-requirement:first-child { border-top: 0; }
.hardware-requirement > div:first-child { min-width: 0; }
.hardware-requirement strong, .hardware-requirement small { display: block; }
.hardware-requirement strong { font-size: 0.82rem; }
.hardware-requirement small { margin-top: 0.18rem; color: var(--muted); font-size: 0.67rem; line-height: 1.35; }
.hardware-state { flex: 0 0 auto; text-align: right; }
.hardware-state small { margin-top: 0.3rem; }
.hardware-blockers { margin: 0.7rem 0; }
.hardware-blocker { display: grid; grid-template-columns: 1.3rem 1fr; gap: 0.5rem; align-items: start; padding: 0.5rem 0.6rem; margin-top: 0.38rem; border-radius: 0.65rem; background: #fff0ea; color: #6e3428; }
.hardware-blocker span { width: 1.2rem; height: 1.2rem; display: grid; place-items: center; border-radius: 50%; background: #ffc7b9; font-weight: 750; font-size: 0.7rem; }
.hardware-blocker p { margin: 0; font-size: 0.7rem; line-height: 1.45; }
.architecture-panel { background: radial-gradient(circle at 100% 0, rgba(0, 78, 114, 0.1), transparent 13rem), var(--surface); }
.architecture-flow { display: grid; gap: 0.45rem; }
.architecture-flow > div { padding: 0.8rem; border: 1px solid #d7e2e7; border-radius: 0.8rem; background: rgba(255, 255, 255, 0.82); }
.architecture-flow span { float: left; margin-right: 0.65rem; color: var(--green-2); font-size: 0.65rem; font-weight: 750; }
.architecture-flow strong, .architecture-flow small { display: block; }
.architecture-flow strong { font-size: 0.82rem; }
.architecture-flow small { margin-top: 0.22rem; color: var(--muted); font-size: 0.67rem; line-height: 1.4; }
.architecture-flow b { text-align: center; color: var(--green-2); font-weight: 500; }
.architecture-rule { margin: 0.9rem 0 0; padding: 0.75rem; border-left: 3px solid #ff6845; border-radius: 0.2rem 0.7rem 0.7rem 0.2rem; background: #fff0ea; color: #526b77; font-size: 0.7rem; line-height: 1.5; }

.reports-layout {
  display: grid;
  grid-template-columns: minmax(18rem, 0.72fr) minmax(32rem, 1.28fr);
  gap: 0.8rem;
  align-items: start;
}

.reports-layout > *,
.report-history-panel,
.report-history-panel .table-wrap {
  min-width: 0;
  max-width: 100%;
}

.report-builder {
  display: grid;
  gap: 1.2rem;
  background:
    radial-gradient(circle at 100% 0, rgba(255, 104, 69, 0.12), transparent 12rem),
    var(--surface);
}

.report-builder h3 { margin-top: 0.2rem; font-size: 1.2rem; }
.report-builder .muted { line-height: 1.6; }
.report-form { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.report-form label { display: grid; gap: 0.4rem; color: var(--ink); font-size: 0.76rem; font-weight: 580; }
.report-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-column: 1 / -1; gap: 0.65rem; }
.report-actions button { min-height: 3rem; }
.report-note { margin: 0; padding: 0.75rem; border: 1px solid #d7e2e7; border-radius: 0.75rem; background: #f4f8fa; color: var(--muted); font-size: 0.72rem; line-height: 1.5; }
.report-history-head { padding: 1.1rem 1.1rem 0; align-items: flex-start; }
.report-history-head .muted { margin: 0.28rem 0 0; font-size: 0.72rem; }
.report-history-panel table { min-width: 52rem; }
.report-history-panel td small { display: block; margin-top: 0.18rem; color: var(--muted); }

.plant-only-badge {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  padding: 0.48rem 0.72rem;
  border: 1px solid #c9dce5;
  border-radius: 999px;
  color: #004e72;
  background: #eaf3f7;
  font-size: 0.7rem;
  font-weight: 650;
}

.access-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.8rem; margin-bottom: 0.8rem; }
.access-summary-card { padding: 1rem; border: 1px solid var(--line); border-radius: 1rem; background: var(--surface); box-shadow: 0 7px 22px rgba(9, 38, 52, 0.045); }
.access-summary-card span, .access-summary-card small { display: block; color: var(--muted); font-size: 0.7rem; }
.access-summary-card strong { display: block; margin: 0.3rem 0; color: var(--ink); font-size: 1.7rem; font-weight: 620; }
.access-layout { display: grid; grid-template-columns: minmax(25rem, 1.08fr) minmax(22rem, 0.92fr); gap: 0.8rem; margin-bottom: 0.8rem; align-items: start; }
.role-guide { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.65rem; }
.role-card { padding: 0.85rem; border: 1px solid #d7e2e7; border-radius: 0.85rem; background: #fbfdfd; }
.role-card-head { display: flex; justify-content: space-between; align-items: center; gap: 0.6rem; }
.role-card-head strong { font-size: 0.8rem; }
.role-card p { margin: 0.42rem 0 0.55rem; color: var(--muted); font-size: 0.69rem; line-height: 1.48; }
.role-level { padding: 0.25rem 0.42rem; border-radius: 999px; color: #004e72; background: #eaf3f7; font-size: 0.56rem; font-weight: 680; white-space: nowrap; }
.role-areas { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.role-areas span { padding: 0.22rem 0.38rem; border-radius: 0.4rem; color: #526b77; background: #edf4f6; font-size: 0.58rem; }
.role-restriction { display: block; margin-top: 0.5rem; color: #a05b29; font-size: 0.61rem; }
.role-temporary { border-color: #edcf9d; background: #fffbf2; }
.role-read_only { border-color: #d6e0e8; background: #f8fbfd; }
.access-add-panel { background: radial-gradient(circle at 100% 0, rgba(255, 104, 69, 0.12), transparent 12rem), var(--surface); }
.access-form { display: grid; grid-template-columns: 1fr 1fr; gap: 0.72rem; }
.access-form label { display: grid; gap: 0.35rem; color: var(--ink); font-size: 0.74rem; font-weight: 580; }
.access-form .access-reason, .access-form button { grid-column: 1 / -1; }
.access-form button { min-height: 2.8rem; }
.required-expiry { color: #9a5827 !important; }
.required-expiry::after { content: "Required for temporary access"; color: #a05b29; font-size: 0.62rem; font-weight: 520; }
.access-table-head { padding: 1.1rem 1.1rem 0; align-items: flex-start; }
.access-table { min-width: 66rem; }
.access-person strong, .access-person small { display: block; }
.access-person small { margin-top: 0.18rem; color: var(--muted); }
.current-user { display: inline-flex; margin-top: 0.35rem; padding: 0.2rem 0.4rem; border-radius: 999px; color: #004e72; background: #eaf3f7; font-size: 0.58rem; font-weight: 650; }
.role-pill { display: inline-flex; padding: 0.34rem 0.52rem; border-radius: 999px; color: #004e72; background: #eaf3f7; font-size: 0.66rem; font-weight: 650; white-space: nowrap; }
.role-pill-read_only { color: #426477; background: #eaf2f6; }
.role-pill-temporary { color: #80561e; background: #fff0ce; }
.access-row-actions { display: grid; grid-template-columns: minmax(10rem, 1fr) minmax(10rem, 1fr); gap: 0.42rem; min-width: 22rem; }
.access-row-actions select, .access-row-actions input { min-width: 0; font-size: 0.7rem; }
.access-row-actions button { min-height: 2.15rem; padding: 0.42rem 0.55rem; font-size: 0.68rem; }
.access-row-actions .danger { justify-self: start; }
.invitation-table-panel { margin-bottom: 0.8rem; }
.invitation-table { min-width: 52rem; }
.form-message { margin: 0; padding: 0.72rem; border: 1px solid #b9d6c4; border-radius: 0.7rem; color: #17623a; background: #eef8f1; font-size: 0.78rem; line-height: 1.5; }
.form-message.error { border-color: #e5ada6; color: var(--red); background: #fff8f7; }
.account-button { white-space: nowrap; color: var(--green-2); }
.account-security-dialog { width: min(68rem, calc(100% - 2rem)); max-width: 68rem; max-height: min(52rem, calc(100dvh - 2rem)); overflow: auto; }
.security-dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding: 1.4rem; border-bottom: 1px solid var(--line); background: #f6fafb; }
.security-dialog-head h2 { margin: 0.15rem 0 0; }
.security-dialog-head p { margin: 0.35rem 0 0; }
#security-loading { margin: 1.4rem; }
#security-content { padding: 1.4rem; }
.security-grid { display: grid; grid-template-columns: minmax(21rem, 0.9fr) minmax(25rem, 1.1fr); gap: 0.9rem; align-items: start; }
.security-card { min-width: 0; padding: 1.1rem; border: 1px solid var(--line); border-radius: 1rem; background: var(--surface); }
.security-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.7rem; }
.security-card h3 { margin: 0.18rem 0 0; font-size: 1rem; }
.security-card > .muted { font-size: 0.76rem; line-height: 1.55; }
.security-form { display: grid; gap: 0.75rem; margin-top: 0.85rem; padding-top: 0.85rem; border-top: 1px solid var(--line); }
.security-form label { display: grid; gap: 0.35rem; font-size: 0.74rem; font-weight: 580; }
.security-instruction { margin: 0; padding: 0.7rem; border-radius: 0.7rem; color: #004e72; background: #eaf3f7; font-size: 0.72rem; line-height: 1.5; }
.danger-button { min-height: 2.75rem; border: 1px solid #d99a92; border-radius: 0.72rem; color: #8f352d; background: #fff4f2; font-weight: 620; }
.danger-button:hover { background: #fce7e3; }
.recovery-codes-panel { margin-top: 0.85rem; padding: 0.9rem; border: 1px solid #edcf9d; border-radius: 0.8rem; background: #fffaf0; }
.recovery-codes-panel p { margin: 0.3rem 0 0.6rem; color: var(--muted); font-size: 0.72rem; }
.recovery-codes-panel pre { max-height: 13rem; overflow: auto; padding: 0.75rem; border-radius: 0.65rem; color: #fff; background: #092634; font: 600 0.78rem/1.65 ui-monospace, SFMono-Regular, Menlo, monospace; user-select: all; }
.recovery-codes-panel button { margin: 0.25rem 0.35rem 0 0; }
.account-session-list { display: grid; gap: 0.55rem; }
.account-session { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; padding: 0.8rem; border: 1px solid #e1e9ec; border-radius: 0.8rem; background: #fbfdfd; }
.account-session.current { border-color: #a9cad7; background: #f1f8fa; }
.account-session strong, .account-session small { display: block; }
.account-session strong { font-size: 0.78rem; }
.account-session small { margin-top: 0.2rem; color: var(--muted); font-size: 0.65rem; }
.account-session > div:last-child { display: flex; align-items: center; justify-content: flex-end; gap: 0.45rem; flex-wrap: wrap; }

.status { text-transform: capitalize; }
.view-section.active > * { animation: content-enter 420ms cubic-bezier(0.2, 0.75, 0.25, 1) both; }
.view-section.active > *:nth-child(2) { animation-delay: 45ms; }
.view-section.active > *:nth-child(3) { animation-delay: 90ms; }
.view-section.active > *:nth-child(4) { animation-delay: 135ms; }
.data-updated { animation: data-pulse 580ms ease; }

.toast {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  background: #092634 !important;
  border: 1px solid rgba(255, 255, 255, 0.13);
  animation: toast-enter 260ms cubic-bezier(0.2, 0.8, 0.25, 1) both;
}

.toast::before { content: "✓"; color: #ff9b84; font-weight: 700; }
.toast.error { background: #8f352d !important; }
.toast.error::before { content: "!"; color: #fff1d1; }
.toast.is-leaving { animation: toast-leave 180ms ease forwards; }
.connection-dot { animation: connection-pulse 2.4s ease-out infinite; }
.connection-dot.offline { animation: none; }
.login-card { box-shadow: -24px 0 70px rgba(4, 22, 17, 0.12); }

.login-brand {
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 104, 69, 0.25), transparent 29%),
    linear-gradient(140deg, #092634, #004e72);
}

.brand-mark {
  background: linear-gradient(145deg, #ff8b70, #ff6845);
  color: #092634;
  box-shadow: 0 9px 22px rgba(9, 38, 52, 0.24);
}

@keyframes progress-sweep { 50% { transform: translateX(90vw); } 100% { transform: translateX(240vw); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes button-ripple { to { transform: translate(-50%, -50%) scale(18); opacity: 0; } }
@keyframes content-enter { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes data-pulse { 0%, 100% { background-color: transparent; } 40% { background-color: rgba(255, 104, 69, 0.2); } }
@keyframes toast-enter { from { opacity: 0; transform: translateY(-10px) scale(0.98); } }
@keyframes toast-leave { to { opacity: 0; transform: translateY(-8px) scale(0.98); } }
@keyframes connection-pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 104, 69, 0.38); } 70%, 100% { box-shadow: 0 0 0 8px rgba(255, 104, 69, 0); } }

@media (max-width: 1180px) and (min-width: 821px) {
  .reports-layout { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  body { overflow-x: hidden; }
  .workspace, #main-content, .view-section { min-width: 0; max-width: 100%; }
  #main-content { padding-bottom: 8.5rem; }
  .table-wrap { width: 100%; max-width: 100%; overflow-x: auto; overscroll-behavior-inline: contain; }
  .section-copy { font-size: 0.82rem; }
  .section-heading { align-items: flex-start; }
  .mobile-nav button.active { box-shadow: inset 0 2px 0 var(--green-2); }
  .reports-layout { grid-template-columns: 1fr; }
  .pilot-hardware-layout { grid-template-columns: 1fr; }
  .access-layout { grid-template-columns: 1fr; }
  .access-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .security-grid { grid-template-columns: 1fr; }
  .mobile-nav { display: flex; grid-template-columns: none; overflow-x: auto; justify-content: flex-start; }
  .mobile-nav button { flex: 0 0 4.4rem; }
}

@media (max-width: 520px) {
  .readiness-counts { grid-template-columns: 1fr; }
  .hardware-requirement { align-items: flex-start; }
  .report-form { grid-template-columns: 1fr; }
  .report-actions { grid-template-columns: 1fr; grid-column: auto; }
  .report-history-head { flex-direction: column; align-items: stretch; }
  .access-summary { grid-template-columns: 1fr 1fr; }
  .role-guide { grid-template-columns: 1fr; }
  .access-form { grid-template-columns: 1fr; }
  .access-form .access-reason, .access-form button { grid-column: auto; }
  .account-security-dialog { width: calc(100% - 0.8rem); max-height: calc(100dvh - 0.8rem); }
  .security-dialog-head, #security-content { padding: 1rem; }
  .account-session { align-items: flex-start; flex-direction: column; }
  .account-session > div:last-child { justify-content: flex-start; }
}

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

.access-scope-label {
  margin: .28rem 0 0;
  color: var(--muted);
  font-size: .75rem;
}

.save-mode-label {
  max-width: 16rem;
  padding: .4rem .65rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: .7rem;
  line-height: 1.25;
  text-align: center;
}

.device-setup-layout {
  display: grid;
  grid-template-columns: minmax(23rem, .9fr) minmax(28rem, 1.1fr);
  gap: .8rem;
  margin: .8rem 0;
}

.device-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
}

.device-form label,
.device-field {
  display: grid;
  align-content: start;
  gap: .35rem;
  color: var(--ink);
  font-size: .76rem;
  font-weight: 580;
}

.device-connection-fields {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .7rem;
  margin: .1rem 0;
  padding: 1rem;
  border: 1px solid #cbdce4;
  border-radius: .9rem;
  background: #f5fafc;
}

.device-connection-fields legend { padding: 0 .4rem; color: var(--green-2); font-size: .72rem; font-weight: 650; }
.device-connection-fields .empty { grid-column: 1 / -1; background: #fff; }
.device-field.check-field { display: flex; align-items: center; gap: .55rem; min-height: 2.7rem; }
.device-field.check-field input { width: auto; }
.device-reason,
.device-form-actions { grid-column: 1 / -1; }
.device-form-actions { display: flex; justify-content: flex-end; gap: .55rem; }

.device-profile-list,
.device-diagnostic-list { display: grid; }
.device-profile,
.device-diagnostic { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .75rem; padding: .85rem .15rem; border-top: 1px solid #e3ecef; }
.device-profile:first-child,
.device-diagnostic:first-child { border-top: 0; }
.device-profile-copy strong,
.device-profile-copy small,
.device-diagnostic-copy strong,
.device-diagnostic-copy small { display: block; }
.device-profile-copy strong,
.device-diagnostic-copy strong { font-size: .82rem; }
.device-profile-copy small,
.device-diagnostic-copy small { margin-top: .2rem; color: var(--muted); font-size: .68rem; line-height: 1.4; }
.device-actions { display: flex; align-items: center; justify-content: flex-end; gap: .35rem; flex-wrap: wrap; }
.device-actions button { min-height: 2.1rem; padding: .4rem .58rem; font-size: .68rem; }
.device-diagnostic .status { align-self: start; }
.diagnostic-safety-note { margin-top: .35rem; color: #80561e !important; }
.status.AWAITING_DEVICE { color: #276676; background: #e5eff3; }
.status.CANCELLED { color: #6d6173; background: #efebf1; }
#device-credential-token { font: 600 .72rem/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; word-break: break-all; }

@media (max-width: 820px) {
  .save-mode-label { display: none; }
  .access-scope-label {
    max-width: 14rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .device-setup-layout { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .device-form,
  .device-connection-fields { grid-template-columns: 1fr; }
  .device-profile,
  .device-diagnostic { grid-template-columns: 1fr; }
.device-actions { justify-content: flex-start; }
}

/* CrusherOS v0.8 studio visual system: calm workspace, clear hierarchy, safety-first status colour. */
:root {
  --ink: #242235;
  --muted: #706f80;
  --paper: #f2f3f8;
  --surface: #ffffff;
  --line: #e3e4ed;
  --green: #6657e8;
  --green-2: #5848d6;
  --lime: #8173f3;
  --blue: #6657e8;
  --focus: #6657e8;
  --amber: #e67a43;
  --red: #b83f48;
  --shadow: 0 12px 34px rgba(43, 39, 85, 0.075);
  --shadow-hover: 0 18px 44px rgba(43, 39, 85, 0.12);
}

body {
  background:
    radial-gradient(circle at 94% 3%, rgba(102, 87, 232, 0.08), transparent 27rem),
    var(--paper);
}

::selection { color: #fff; background: #6657e8; }

.crusher-logo {
  display: block;
  flex: 0 0 auto;
  object-fit: contain;
  filter: drop-shadow(0 5px 10px rgba(9, 9, 11, 0.15));
}

.full-brand-logo.login-logo, .gate-login-logo {
  width: auto;
  max-width: 14rem;
  height: 3.5rem;
  border-radius: 0;
}

.sidebar-logo {
  width: auto;
  height: 2.2rem;
  flex: 0 0 auto;
  border-radius: 0;
}

.login-shell { background: #29243f; }
.login-brand {
  background:
    radial-gradient(circle at 20% 18%, rgba(255, 255, 255, 0.14), transparent 24rem),
    radial-gradient(circle at 82% 82%, rgba(159, 145, 255, 0.34), transparent 25rem),
    linear-gradient(140deg, #29243f 0%, #5c4fd2 60%, #7465ed 100%);
}
.login-brand .eyebrow { color: #ddd8ff; }
.login-brand h1 span { color: #dcd7ff; }
.login-brand > p:not(.eyebrow) { color: #eeecff; }
.trust-row span { border-color: rgba(255,255,255,.28); background: rgba(255,255,255,.08); }
.login-card { background: #fff; box-shadow: -24px 0 70px rgba(35, 29, 76, 0.16); }
.login-card .eyebrow { color: #6657e8; }
.login-card input,
input,
select,
textarea { border-color: #d9dae6; background: #fff; }
.login-card input:focus,
input:focus,
select:focus,
textarea:focus { border-color: #6657e8; box-shadow: 0 0 0 3px rgba(102,87,232,.14); }

.app-shell { grid-template-columns: 15rem minmax(0, 1fr); }
.sidebar {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.98);
  border-right: 1px solid var(--line);
  box-shadow: 8px 0 28px rgba(48, 44, 85, 0.045);
}
.wordmark { color: var(--ink); margin-bottom: 2.15rem; }
.wordmark > span { display: flex; align-items: center; gap: .2rem; flex-wrap: wrap; }
.sidebar-version { color: #5848d6; background: #f0edff; border-color: #dcd6ff; }
.sidebar nav { gap: .28rem; }
.nav-item { color: #716f7f; border-radius: .82rem; }
.nav-item:hover { color: #4e42bd; background: #f5f3ff; }
.nav-item.active {
  color: #5142ca;
  background: #efedff;
  box-shadow: none;
}
.nav-glyph {
  min-width: 1.65rem;
  height: 1.65rem;
  display: grid;
  place-items: center;
  border-radius: .5rem;
  color: #7163e4;
  background: #f2f0ff;
}
.nav-item.active .nav-glyph { color: #fff; background: #6657e8; }
.sidebar-foot { color: #757383; border-color: var(--line); }
.sidebar-foot .text-button { color: #6657e8; }
.connection-dot { background: #45a877; box-shadow: 0 0 0 4px rgba(69,168,119,.12); }

.topbar {
  background: rgba(255, 255, 255, 0.91);
  border-bottom-color: var(--line);
  box-shadow: 0 7px 24px rgba(43, 39, 85, 0.045);
}
.topbar h1 { color: var(--ink); }
.release-badge { color: #5848d6; background: #f0edff; border-color: #dcd6ff; }
.eyebrow { color: #6657e8; }
.save-mode-label { color: #656375; background: #f7f7fb; }

.primary {
  color: #fff;
  background: linear-gradient(135deg, #6f61ec, #5848d6);
  box-shadow: 0 7px 18px rgba(88, 72, 214, 0.2);
}
.primary:hover:not(:disabled) {
  background: linear-gradient(135deg, #7a6cf1, #6253df);
  box-shadow: 0 10px 25px rgba(88, 72, 214, 0.28);
}
.secondary { color: #3f3c57; background: #f5f5fa; border-color: #dedee8; }
.secondary:hover:not(:disabled) { color: #5142ca; border-color: #cfc9f7; background: #f1efff; }
.text-button { color: #5a4bd4; }
.text-button:hover:not(:disabled) { background: rgba(102,87,232,.08); }
button:focus-visible,
.nav-item:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible { outline-color: rgba(102,87,232,.32); }
.page-progress span { background: linear-gradient(90deg, #8a7df5, #5a4bd4); }

.section-heading h2 { color: #26233a; }
.section-copy { color: #747283; }
.panel,
.kpi,
.stock-card,
.system-card,
.readiness-card,
.access-summary-card,
.security-card {
  border-color: var(--line);
  border-radius: 1.05rem;
  background: #fff;
  box-shadow: 0 8px 25px rgba(43, 39, 85, 0.045);
}
.panel:hover,
.kpi:hover,
.stock-card:hover,
.system-card:hover,
.readiness-card:hover { border-color: #d2cef1; box-shadow: var(--shadow-hover); }
.kpi.accent {
  color: #fff;
  border-color: #6556df;
  background:
    radial-gradient(circle at 92% 9%, rgba(255,255,255,.2), transparent 7rem),
    linear-gradient(145deg, #7566ed, #5546cf);
}
.kpi.accent span { color: #e8e4ff; }
.kpi.accent small { color: #dcd7ff; }
.system-strip { background: linear-gradient(130deg, #2c2940, #45405f); box-shadow: 0 12px 28px rgba(35,32,62,.14); }
.system-strip span { color: #c7c3da; }
.architecture-panel,
.access-add-panel,
.report-builder { background: radial-gradient(circle at 100% 0, rgba(102,87,232,.1), transparent 13rem), #fff; }
.architecture-rule { border-left-color: #e67a43; color: #6f5143; background: #fff4ed; }
.role-level,
.role-pill,
.current-user,
.plant-only-badge { color: #5848d6; background: #f0edff; border-color: #dcd6ff; }
.role-areas span { color: #676576; background: #f3f3f8; }
.security-instruction { color: #5142ca; background: #f0edff; }
.account-session.current { border-color: #cbc5f4; background: #f6f4ff; }
.recovery-codes-panel { border-color: #ebc7ae; background: #fff8f3; }
.recovery-codes-panel pre { background: #29263d; }
.toast { background: #2a273e !important; }
.toast::before { color: #b7adff; }

.status.SENT,
.status.COMPLETED,
.status.ONLINE,
.status.PASS,
.status.PASSED,
.status.ACTIVATED,
.status.VERIFIED { color: #17623a; background: #e6f5ec; }
.status.PROCESSING,
.status.LOADING,
.status.AWAITING_DEVICE { color: #5142ca; background: #efedff; }
.status.PENDING,
.status.ARRIVED,
.status.FIRST_WEIGHT_CAPTURED,
.status.SECOND_WEIGHT_CAPTURED,
.status.APPROVED,
.status.TESTING,
.status.IN_PROGRESS { color: #80501d; background: #fff1df; }
.status.EXPIRED,
.status.REVOKED { color: #7a3140; background: #fae9ed; }

.activation-panel { margin-bottom: .85rem; }
.activation-layout { display: grid; grid-template-columns: minmax(17rem, .72fr) minmax(22rem, 1.28fr); gap: 1rem; align-items: start; }
.activation-form { padding: 0; border-bottom: 0; }
.activation-history-head { margin-top: 0; padding-top: 0; border-top: 0; }
.activation-list { display: grid; gap: .6rem; }
.activation-row { display: flex; align-items: center; justify-content: space-between; gap: .85rem; padding: .85rem; border: 1px solid var(--line); border-radius: .9rem; background: #fbfaff; }
.activation-copy { min-width: 0; display: grid; gap: .22rem; }
.activation-copy strong { color: #2c2940; overflow-wrap: anywhere; }
.activation-copy small { color: #747283; line-height: 1.45; }
.activation-actions { flex: 0 0 auto; display: flex; align-items: center; justify-content: flex-end; gap: .45rem; flex-wrap: wrap; }
#activation-package { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: .82rem; line-height: 1.5; overflow-wrap: anywhere; }

.mobile-nav { background: rgba(255,255,255,.96); border-top-color: var(--line); }
.mobile-nav button.active { color: #5848d6; background: #efedff; box-shadow: inset 0 2px 0 #6657e8; }

@keyframes data-pulse { 0%,100% { background-color: transparent; } 40% { background-color: rgba(102,87,232,.15); } }
@keyframes connection-pulse { 0% { box-shadow: 0 0 0 0 rgba(69,168,119,.34); } 70%,100% { box-shadow: 0 0 0 8px rgba(69,168,119,0); } }

.setup-readiness-panel { display: grid; gap: 1rem; margin-bottom: 1rem; overflow: hidden; background: linear-gradient(145deg, #fff, #f7f6ff); }
.setup-readiness-head { display: flex; align-items: start; justify-content: space-between; gap: 1rem; }
.setup-readiness-head h3 { margin: .15rem 0; }
.setup-readiness-head p { margin: 0; }
.setup-progress { flex: 0 0 auto; display: grid; min-width: 6.5rem; padding: .75rem .9rem; border: 1px solid #dcd6ff; border-radius: .85rem; color: #5848d6; background: #fff; text-align: center; }
.setup-progress strong { font-size: 1.2rem; }
.setup-progress span { color: var(--muted); font-size: .68rem; }
.setup-progress-track { height: .5rem; overflow: hidden; border-radius: 999px; background: #e7e5ef; }
.setup-progress-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #6f61ec, #ff6845); transition: width 360ms ease; }
.setup-checklist { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .65rem; }
.setup-step { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: start; gap: .7rem; padding: .8rem; border: 1px solid #dfdee8; border-radius: .8rem; background: #fff; }
.setup-step.needs-action { border-color: #efcabb; background: #fff9f6; }
.setup-step-marker { display: grid; place-items: center; width: 1.7rem; height: 1.7rem; border-radius: 50%; color: #fff; background: #ff6845; font-size: .72rem; font-weight: 700; }
.setup-step.complete .setup-step-marker { background: #6657e8; }
.setup-step-copy { min-width: 0; }
.setup-step-copy strong { display: block; font-size: .82rem; }
.setup-step-copy p { margin: .22rem 0 0; color: var(--muted); font-size: .7rem; line-height: 1.45; }
.setup-step-copy small { display: block; margin-top: .32rem; color: #a44732; font-size: .67rem; }
.setup-step-status { color: #9b3f2c; font-size: .63rem; font-weight: 650; white-space: nowrap; }
.setup-step-status.complete { color: #5848d6; }
.settings-form fieldset:first-of-type { grid-column: 1/-1; }
.fieldset-copy { grid-column: 1/-1; margin: 0; color: var(--muted); font-size: .72rem; line-height: 1.5; }
.settings-field-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .75rem; }
.uppercase-input { text-transform: uppercase; }
.settings-form :disabled:not([data-busy="true"]) { cursor: not-allowed; }

@media (max-width: 900px) {
  .setup-checklist,.settings-field-grid { grid-template-columns: 1fr; }
  .settings-form fieldset:first-of-type { grid-column: auto; }
}

@media (max-width: 560px) {
  .setup-readiness-head { align-items: stretch; flex-direction: column; }
  .setup-progress { grid-template-columns: auto auto; align-items: baseline; justify-content: center; gap: .35rem; }
  .setup-step { grid-template-columns: auto minmax(0,1fr); }
  .setup-step-status { grid-column: 2; }
}

@media (max-width: 820px) {
  .topbar { background: rgba(255,255,255,.95); }
  .activation-layout { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .activation-row { align-items: flex-start; flex-direction: column; }
  .activation-actions { width: 100%; justify-content: space-between; }
}

/* --- 7-Day Trial Banner --- */
.trial-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: linear-gradient(90deg, #18181b 0%, #27272a 100%);
  border-bottom: 1px solid rgba(255, 85, 0, 0.35);
  color: #f4f4f5;
  padding: 0.65rem clamp(1rem, 3vw, 3rem);
  font-size: 0.85rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.trial-banner-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.trial-badge {
  background: #ff5500;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  text-transform: uppercase;
}
.trial-expiry-note {
  color: #a1a1aa;
  font-size: 0.8rem;
}
.trial-banner-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.trial-action-btn {
  font-size: 0.76rem !important;
  min-height: 2rem !important;
  padding: 0.35rem 0.75rem !important;
}

/* --- Customer Onboarding Forms & Wizard --- */
.wizard-fieldset {
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  padding: 1rem;
  margin-bottom: 0.85rem;
  display: grid;
  gap: 0.75rem;
  background: #fff;
}
.fieldset-heading {
  margin: 0 0 0.4rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.chips-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.35rem;
}
.chip-item {
  display: flex !important;
  align-items: center;
  gap: 0.45rem !important;
  font-size: 0.78rem !important;
  background: var(--surface-2);
  border: 1px solid var(--line);
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  cursor: pointer;
  user-select: none;
}
.chip-item:hover {
  border-color: var(--orange);
}
.chip-item input[type="checkbox"] {
  width: auto;
  margin: 0;
}
.trial-callout {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 0.85rem;
  padding: 0.95rem;
  margin: 0.5rem 0;
}
.trial-callout-head {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: #c2410c;
  font-size: 0.84rem;
  margin-bottom: 0.25rem;
}
.trial-callout p {
  margin: 0;
  font-size: 0.75rem;
  color: #7c2d12;
  line-height: 1.45;
}
.launch-trial-btn {
  background: #ff5500 !important;
  color: #fff !important;
  font-size: 0.95rem !important;
  padding: 0.85rem 1.2rem !important;
}
.launch-trial-btn:hover {
  background: #e64d00 !important;
}

/* --- SMS Setup & Provider Guide --- */
.sms-status-card {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  padding: 0.85rem 1rem;
  margin: 0.8rem 0;
}
.sms-status-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  margin-bottom: 0.35rem;
}
.provider-guide-box {
  margin-top: 1rem;
}
.provider-guide-box h4 {
  margin: 0 0 0.35rem;
  font-size: 0.84rem;
}
.provider-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
  margin-top: 0.5rem;
}
.provider-option {
  background: #fafafa;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  padding: 0.6rem;
  font-size: 0.72rem;
  display: grid;
  gap: 0.2rem;
}
.provider-option code {
  background: #f1f1f4;
  padding: 0.15rem 0.3rem;
  border-radius: 0.25rem;
  font-family: monospace;
  font-size: 0.7rem;
  color: #09090b;
}
.trial-feature-list {
  display: grid;
  gap: 0.5rem;
  margin: 1rem 0;
  font-size: 0.85rem;
}
.trial-feature-item {
  color: #166534;
  font-weight: 550;
}
@media (max-width: 600px) {
  .provider-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Choice Cards for Plant Operational Setup Questions ── */
.choice-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin-top: 0.4rem;
}
.choice-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  border: 1.5px solid var(--line);
  border-radius: 0.6rem;
  padding: 0.75rem 0.85rem;
  background: #ffffff;
  cursor: pointer;
  transition: all 0.18s ease;
}
.choice-card:hover {
  border-color: #ff8b70;
  background: #fffbf9;
}
.choice-card:has(input:checked) {
  border-color: #ff6845;
  background: #fff7f4;
  box-shadow: 0 0 0 1.5px #ff6845;
}
.choice-card input[type="radio"] {
  margin-top: 0.15rem;
  accent-color: #ff6845;
  cursor: pointer;
}
.choice-card .card-content {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.choice-card .card-content strong {
  font-size: 0.84rem;
  color: #092634;
  font-weight: 650;
}
.choice-card .card-content p {
  margin: 0;
  font-size: 0.73rem;
  color: #64748b;
  line-height: 1.35;
}

/* ── Feature Locks Banner (User ID Binding) ── */
.feature-locks-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  background: #0f172a;
  color: #f8fafc;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  margin-bottom: 0.75rem;
  font-size: 0.78rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.lock-indicator-badge {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #facc15;
}
.lock-attributes-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}
.lock-pill {
  background: rgba(255, 255, 255, 0.1);
  padding: 0.18rem 0.55rem;
  border-radius: 1rem;
  font-size: 0.72rem;
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.lock-pill strong {
  color: #ffffff;
}

@media (max-width: 650px) {
  .choice-cards-grid {
    grid-template-columns: 1fr;
  }
  .feature-locks-banner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Enforce strict hidden behavior so dashboard sidebar NEVER leaks into login */
#app-view[hidden],
#app-view[hidden] *,
.app-shell[hidden],
.app-shell[hidden] *,
[hidden] {
  display: none !important;
  visibility: hidden !important;
}

/* CrusherOS Left Side Fixed on Login Page */
@media (min-width: 821px) {
  .login-shell:not([hidden]) {
    height: 100vh !important;
    height: 100dvh !important;
    overflow: hidden !important;
  }
  .login-shell:not([hidden]) .login-brand {
    position: sticky !important;
    top: 0 !important;
    height: 100vh !important;
    height: 100dvh !important;
    overflow-y: auto !important;
  }
  .login-shell:not([hidden]) .login-card {
    height: 100vh !important;
    height: 100dvh !important;
    overflow-y: auto !important;
    overscroll-behavior: contain !important;
  }
}

/* CrusherOS Permanent Fixed Left Sidebar on Dashboard ONLY WHEN LOGGED IN */
@media (min-width: 821px) {
  .app-shell:not([hidden]) {
    display: flex !important;
    min-height: 100vh !important;
    width: 100% !important;
  }
  .app-shell:not([hidden]) .sidebar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    bottom: 0 !important;
    width: 15.5rem !important;
    height: 100vh !important;
    height: 100dvh !important;
    overflow-y: auto !important;
    overscroll-behavior: contain !important;
    z-index: 100 !important;
    flex: 0 0 15.5rem !important;
    box-sizing: border-box !important;
    display: flex !important;
    visibility: visible !important;
  }
  .app-shell:not([hidden]) .workspace {
    margin-left: 15.5rem !important;
    width: calc(100% - 15.5rem) !important;
    min-width: 0 !important;
    flex: 1 1 auto !important;
  }
}



