:root {
  --bg:#020914;
  --panel:rgba(7,22,38,.88);
  --panel-strong:#091a2d;
  --panel-soft:rgba(10,31,51,.72);
  --text:#f8f1df;
  --muted:#aebdcc;
  --line:rgba(216,161,58,.28);
  --line-strong:rgba(240,197,111,.58);
  --gold:#d8a13a;
  --gold-2:#f0c56f;
  --blue:#14385a;
  --danger:#ff7b7b;
  --safe:#77d46b;
  --shadow:0 30px 90px rgba(0,0,0,.46);
  --radius:28px;
  font-family:Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 8% 6%, rgba(216,161,58,.15), transparent 28rem),
    radial-gradient(circle at 86% 18%, rgba(24,76,120,.26), transparent 34rem),
    radial-gradient(circle at 55% 95%, rgba(240,197,111,.08), transparent 28rem),
    linear-gradient(135deg,#020914 0%,#061426 52%,#020914 100%);
  overflow-x: hidden;
}

body::before {
  content:"";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(216,161,58,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(216,161,58,.028) 1px, transparent 1px);
  background-size: 42px 42px;
  opacity: .45;
  z-index: 0;
}

button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.is-hidden { display: none !important; }

#particleField {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: .48;
  mix-blend-mode: screen;
}

.glass-card {
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 16% 0%, rgba(240,197,111,.11), transparent 28%),
    linear-gradient(145deg, rgba(9,29,48,.92), rgba(3,12,22,.96));
  border-radius: var(--radius);
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(255,255,255,.035);
  backdrop-filter: blur(18px);
}

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

.login-panel {
  width: min(1120px, 100%);
  padding: clamp(26px, 4vw, 48px);
  position: relative;
  z-index: 2;
  overflow: hidden;
}

.login-panel::after,
.card::after,
.preview-visual::after {
  content:"";
  position:absolute;
  inset:-1px;
  pointer-events:none;
  border-radius: inherit;
  background:linear-gradient(120deg, transparent 12%, rgba(240,197,111,.18), transparent 38%);
  transform: translateX(-115%);
  animation: panelSheen 9s ease-in-out infinite;
}

.login-brand-zone {
  display: grid;
  grid-template-columns: minmax(220px, 340px) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}

.brand-logo-wrap {
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 25%, rgba(255,255,255,.14), rgba(216,161,58,.10) 22%, rgba(11,24,43,.45) 58%, rgba(7,17,31,0) 72%);
  padding: 8px;
  overflow: visible;
  box-shadow: 0 0 0 1px rgba(240,197,111,.16), 0 16px 40px rgba(0,0,0,.28);
  width: 72px;
  height: 72px;
  flex: 0 0 auto;
}

.brand-logo-wrap.large {
  width: min(340px, 100%);
  height: auto;
  aspect-ratio: 1;
  margin: 0 auto;
}

.brand-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
  filter: drop-shadow(0 22px 34px rgba(0,0,0,.55));
  animation: badgeBreath 6.5s ease-in-out infinite;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--gold-2);
  text-transform: uppercase;
  font-size: .76rem;
  letter-spacing: .24em;
  font-weight: 950;
}

h1, h2, h3, p { margin-top: 0; }
h1 {
  margin-bottom: 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.5rem, 6.2vw, 5.6rem);
  line-height: .94;
  letter-spacing: -.045em;
}
h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1;
  letter-spacing: -.035em;
}
h3 { margin-bottom: 8px; color: #fff4d8; }
p { color: var(--muted); line-height: 1.6; }
.muted, .tiny-note { color: var(--muted); }
.tiny-note { font-size: .86rem; margin: 16px 0 0; }

.login-form {
  display: grid;
  gap: 14px;
  width: min(470px, 100%);
  margin: 32px 0 0 auto;
}
.login-form label {
  display: grid;
  gap: 8px;
  color: #f2d891;
  font-weight: 800;
}
.login-form input, .form-control {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 15px 16px;
  background: rgba(2,9,20,.54);
  color: var(--text);
  outline: none;
}
.login-form input:focus, .form-control:focus {
  border-color: var(--gold-2);
  box-shadow: 0 0 0 4px rgba(216,161,58,.12);
}
.login-form button,
.primary-btn,
.ghost-btn {
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  padding: 14px 18px;
  color: #06101f;
  background: linear-gradient(180deg,#f5cf7d,#c78a25);
  font-weight: 950;
  letter-spacing: .03em;
  position: relative;
  overflow: hidden;
}
.login-form button:hover,
.primary-btn:hover { transform: translateY(-2px); box-shadow: 0 18px 40px rgba(216,161,58,.18); }

.ghost-btn {
  color: var(--gold-2);
  background: rgba(9,26,43,.72);
  width: 100%;
  text-align: center;
}
.error-text { min-height: 22px; color: var(--danger); font-weight: 900; }

.private-preview-note {
  display: grid;
  gap: 6px;
  margin: 22px 0 0 auto;
  width: min(470px, 100%);
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(216,161,58,.08);
}
.private-preview-note span { color: var(--muted); font-size: .92rem; line-height: 1.4; }

.login-helper-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 26px 0 0 auto;
  width: min(470px, 100%);
}
.login-helper-grid span,
.badge {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  color: #f2d891;
  background: rgba(255,255,255,.035);
  font-size: .86rem;
  font-weight: 800;
}

.legal-notice {
  margin-top: 26px;
  padding-top: 16px;
  border-top: 1px solid rgba(216,161,58,.20);
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.45;
}
.legal-notice strong { color: #f8fbff; }

.app-shell {
  height: 100vh;
  min-height: 0;
  display: grid;
  grid-template-columns: 320px 1fr;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  min-height: 0;
  padding: 18px;
  border-right: 1px solid var(--line);
  background: rgba(3,12,22,.86);
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

.sidebar::-webkit-scrollbar { width: 8px; }
.sidebar::-webkit-scrollbar-thumb { background: rgba(216,161,58,.36); border-radius: 999px; }

.side-brand,
.topbar,
.session-pill,
.stat-row {
  display: flex;
  align-items: center;
  gap: 14px;
}
.side-brand { flex: 0 0 auto; }
.side-brand strong {
  display: block;
  font-size: 1.35rem;
  letter-spacing: .10em;
  color: #fff4d8;
}
.side-brand span { display: block; color: var(--muted); font-size: .82rem; }

.nav-list {
  display: grid;
  gap: 8px;
  flex: 0 0 auto;
  min-height: auto;
  overflow: visible;
  padding-right: 0;
}

.nav-group {
  border: 1px solid rgba(216,161,58,.16);
  border-radius: 16px;
  background: rgba(255,255,255,.035);
  overflow: hidden;
}
.nav-group summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 12px;
  color: var(--text);
  font-weight: 950;
  font-size: .86rem;
}
.nav-group summary:hover { background: rgba(216,161,58,.08); }
.nav-group summary::-webkit-details-marker { display: none; }
.nav-group summary::before {
  content: '▸';
  color: var(--gold-2);
  margin-right: 4px;
  transition: transform .18s ease;
}
.nav-group[open] summary::before { transform: rotate(90deg); }
.nav-group summary span { flex: 1; }
.nav-group summary small {
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 8px;
}

.nav-group-items {
  display: grid;
  gap: 6px;
  padding: 0 8px 10px 8px;
}

.nav-item {
  border: 1px solid transparent;
  border-radius: 13px;
  color: var(--muted);
  background: transparent;
  padding: 10px 11px;
  text-align: left;
  font-weight: 850;
  width: 100%;
}
.nav-item.active,
.nav-item:hover {
  color: var(--text);
  border-color: rgba(240,197,111,.45);
  background: rgba(216,161,58,.08);
}

.side-status {
  margin-top: auto;
  padding: 14px;
  border: 1px solid rgba(216,161,58,.20);
  border-radius: 18px;
  background: rgba(255,255,255,.035);
}
.side-status strong { display: block; color: var(--gold-2); }
.side-status span { color: var(--muted); font-size: .84rem; }

.workspace {
  min-width: 0;
  overflow-y: auto;
  padding: clamp(18px, 3vw, 32px);
}

.topbar {
  justify-content: space-between;
  padding: 24px;
  margin-bottom: 24px;
  position: sticky;
  top: 0;
  z-index: 10;
}
.session-pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(2,9,20,.42);
}
.session-pill span {
  color: var(--safe);
  font-size: .76rem;
  font-weight: 950;
}
.session-pill strong { color: #fff4d8; }

.content-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}
.card {
  grid-column: span 6;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 12% 0%, rgba(240,197,111,.08), transparent 30%),
    rgba(255,255,255,.045);
  border-radius: 22px;
  padding: 22px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 18px 42px rgba(0,0,0,.20);
}
.card.full { grid-column: 1 / -1; }
.card.third { grid-column: span 4; }
.card.quarter { grid-column: span 3; }
.card ul { margin: 12px 0 0 18px; padding: 0; color: var(--muted); }
.card li { margin: 8px 0; line-height: 1.45; }

.stat-card strong {
  display: block;
  font-size: clamp(2rem, 4vw, 3.3rem);
  font-family: Georgia, "Times New Roman", serif;
  color: var(--gold-2);
}
.stat-card span { color: var(--muted); }

.command-chain {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.command-chain span {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #f2d891;
  background: rgba(2,9,20,.42);
  font-weight: 850;
}

.table-list { display: grid; gap: 8px; margin-top: 12px; }
.table-row {
  display: grid;
  grid-template-columns: 1.25fr .8fr 1fr;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
  color: var(--muted);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 10px;
  align-items: end;
  margin-top: 14px;
}
.form-row label { display: grid; gap: 6px; color: var(--muted); font-weight: 850; }
.form-row input, .form-row select, textarea {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  background: rgba(255,255,255,.06);
  color: var(--text);
}
textarea { width: 100%; min-height: 110px; resize: vertical; }

.preview-visual {
  grid-column: 1 / -1;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  padding: 18px;
  background: rgba(2,9,20,.54);
  position: relative;
  overflow: hidden;
}
.preview-visual img {
  width: 100%;
  border-radius: 20px;
  border: 1px solid rgba(216,161,58,.24);
  box-shadow: 0 26px 70px rgba(0,0,0,.42);
}

.tica-chat {
  display: grid;
  gap: 10px;
}
.tica-chat p {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid rgba(216,161,58,.24);
  border-radius: 14px;
  background: rgba(2,9,20,.38);
}

.app-legal-footer {
  margin-top: 24px;
  padding: 16px 18px;
  border: 1px solid rgba(216,161,58,.18);
  border-radius: 18px;
  background: rgba(255,255,255,.025);
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.45;
}

@keyframes panelSheen {
  0%, 42% { transform: translateX(-115%); opacity: 0; }
  50% { opacity: .8; }
  64% { transform: translateX(115%); opacity: 0; }
  100% { transform: translateX(115%); opacity: 0; }
}
@keyframes badgeBreath {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-2px) scale(1.012); }
}

@media (max-width: 1040px) {
  .login-brand-zone { grid-template-columns: 1fr; text-align: center; }
  .login-form, .private-preview-note, .login-helper-grid { margin-left: auto; margin-right: auto; }
  .app-shell { grid-template-columns: 1fr; height: auto; min-height: 100vh; overflow: visible; }
  .sidebar { position: relative; height: auto; max-height: none; overflow: visible; }
  .nav-list { max-height: 70vh; overflow-y: auto; }
  .workspace { overflow: visible; }
  .content-grid, .form-row { grid-template-columns: 1fr; }
  .card, .card.third, .card.quarter { grid-column: 1 / -1; }
  .topbar { position: relative; flex-direction: column; align-items: flex-start; }
  .table-row { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  #particleField { display: none !important; }
}


/* TICS retained styling block. */
body:has(.true-login-shell) {
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% -8%, rgba(240,197,111,.13), transparent 28rem),
    radial-gradient(circle at 12% 74%, rgba(19,82,132,.20), transparent 34rem),
    radial-gradient(circle at 92% 32%, rgba(216,161,58,.08), transparent 30rem),
    linear-gradient(135deg,#020914 0%,#071729 54%,#020914 100%) !important;
}

.true-login-shell {
  min-height: 100vh !important;
  width: 100% !important;
  display: grid !important;
  place-items: center !important;
  padding: clamp(16px, 3vw, 42px) !important;
  position: relative !important;
}

.true-login-card {
  position: relative !important;
  z-index: 2 !important;
  width: min(710px, 100%) !important;
  min-height: min(850px, calc(100vh - 38px)) !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: clamp(14px, 2vh, 24px) !important;
  padding: clamp(30px, 5vw, 62px) clamp(22px, 4vw, 58px) !important;
  border: 1px solid rgba(240,197,111,.58) !important;
  border-radius: 5px !important;
  background:
    linear-gradient(135deg, rgba(240,197,111,.46) 0 3px, transparent 3px 50px, rgba(240,197,111,.16) 50px 52px, transparent 52px) top left/132px 132px no-repeat,
    linear-gradient(225deg, rgba(240,197,111,.46) 0 3px, transparent 3px 50px, rgba(240,197,111,.16) 50px 52px, transparent 52px) top right/132px 132px no-repeat,
    linear-gradient(45deg, rgba(240,197,111,.46) 0 3px, transparent 3px 50px, rgba(240,197,111,.16) 50px 52px, transparent 52px) bottom left/132px 132px no-repeat,
    linear-gradient(315deg, rgba(240,197,111,.46) 0 3px, transparent 3px 50px, rgba(240,197,111,.16) 50px 52px, transparent 52px) bottom right/132px 132px no-repeat,
    radial-gradient(circle at 50% 0%, rgba(240,197,111,.12), transparent 32%),
    linear-gradient(180deg, rgba(8,30,51,.96), rgba(3,14,28,.985) 70%, rgba(2,8,18,.995)) !important;
  box-shadow:
    0 34px 100px rgba(0,0,0,.62),
    0 0 0 1px rgba(255,255,255,.03) inset,
    0 0 60px rgba(216,161,58,.07) inset !important;
  overflow: hidden !important;
}

.true-login-card::before {
  content: "" !important;
  position: absolute !important;
  inset: 28px !important;
  border: 1px solid rgba(240,197,111,.24) !important;
  clip-path: polygon(8% 0, 92% 0, 100% 8%, 100% 92%, 92% 100%, 8% 100%, 0 92%, 0 8%) !important;
  pointer-events: none !important;
}

.true-login-card::after {
  content: "" !important;
  position: absolute !important;
  inset: -1px !important;
  pointer-events: none !important;
  background:
    linear-gradient(90deg, transparent, rgba(240,197,111,.36), transparent) 50% 100%/62% 1px no-repeat,
    linear-gradient(120deg, transparent 12%, rgba(240,197,111,.16), transparent 38%) !important;
  transform: translateX(-115%) !important;
  animation: trueLoginSheen 8s ease-in-out infinite !important;
}

.true-login-version {
  position: absolute !important;
  top: 13px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  color: rgba(240,197,111,.90) !important;
  font-size: 11px !important;
  letter-spacing: .22em !important;
  font-weight: 950 !important;
  text-transform: uppercase !important;
  z-index: 3 !important;
}

.corner-line {
  position: absolute !important;
  width: 86px !important;
  height: 86px !important;
  border-color: rgba(240,197,111,.92) !important;
  filter: drop-shadow(0 0 10px rgba(216,161,58,.34)) !important;
  pointer-events: none !important;
  z-index: 3 !important;
}

.corner-top-left { top: 0 !important; left: 0 !important; border-top: 4px solid !important; border-left: 4px solid !important; clip-path: polygon(0 0, 100% 0, 100% 10%, 12% 10%, 10% 100%, 0 100%) !important; }
.corner-top-right { top: 0 !important; right: 0 !important; border-top: 4px solid !important; border-right: 4px solid !important; clip-path: polygon(0 0, 100% 0, 100% 100%, 90% 100%, 90% 10%, 0 10%) !important; }
.corner-bottom-left { bottom: 0 !important; left: 0 !important; border-bottom: 4px solid !important; border-left: 4px solid !important; clip-path: polygon(0 0, 10% 0, 10% 90%, 100% 90%, 100% 100%, 0 100%) !important; }
.corner-bottom-right { bottom: 0 !important; right: 0 !important; border-bottom: 4px solid !important; border-right: 4px solid !important; clip-path: polygon(90% 0, 100% 0, 100% 100%, 0 100%, 0 90%, 90% 90%) !important; }

.true-login-logo-frame {
  width: min(392px, 74vw) !important;
  aspect-ratio: 1 !important;
  display: grid !important;
  place-items: center !important;
  border-radius: 50% !important;
  margin: 8px auto -2px !important;
  background:
    radial-gradient(circle at 50% 46%, rgba(240,197,111,.16), transparent 59%),
    radial-gradient(circle, rgba(3,10,20,.28), transparent 64%) !important;
  filter:
    drop-shadow(0 30px 44px rgba(0,0,0,.56))
    drop-shadow(0 0 18px rgba(216,161,58,.28)) !important;
}

.true-login-logo-frame img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  border-radius: 50% !important;
  animation: badgeBreath 6.5s ease-in-out infinite !important;
}

.true-login-heading {
  text-align: center !important;
  width: min(520px, 100%) !important;
  z-index: 2 !important;
}

.true-login-heading h1 {
  margin: 0 0 8px !important;
  color: var(--gold-2) !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: clamp(2rem, 5vw, 3.35rem) !important;
  line-height: 1 !important;
  letter-spacing: -.025em !important;
  text-shadow: 0 10px 28px rgba(0,0,0,.42) !important;
}

.true-login-heading p {
  margin: 0 !important;
  color: #c6d1dc !important;
  font-size: clamp(.98rem, 1.8vw, 1.12rem) !important;
}

.true-login-form {
  width: min(520px, 100%) !important;
  display: grid !important;
  gap: 16px !important;
  margin-top: 6px !important;
  z-index: 2 !important;
}

.true-field {
  position: relative !important;
  display: block !important;
}

.true-field input {
  width: 100% !important;
  height: 58px !important;
  border: 1px solid rgba(240,197,111,.48) !important;
  border-radius: 8px !important;
  padding: 0 56px 0 58px !important;
  background: rgba(2,9,20,.60) !important;
  color: #f8f1df !important;
  outline: none !important;
  font-size: 1.08rem !important;
  font-weight: 750 !important;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.02),
    0 10px 24px rgba(0,0,0,.18) !important;
}

.true-field input::placeholder {
  color: rgba(232,238,246,.62) !important;
  font-weight: 700 !important;
}

.true-field input:focus {
  border-color: rgba(240,197,111,.94) !important;
  box-shadow:
    0 0 0 3px rgba(216,161,58,.12),
    0 0 24px rgba(216,161,58,.12),
    inset 0 0 0 1px rgba(255,255,255,.035) !important;
}

.field-symbol,
.field-eye {
  position: absolute !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  color: var(--gold-2) !important;
  opacity: .92 !important;
  pointer-events: none !important;
  z-index: 3 !important;
}

.field-symbol {
  left: 20px !important;
  font-size: 1.35rem !important;
}

.field-eye {
  right: 20px !important;
  font-size: 1.20rem !important;
  opacity: .72 !important;
}

.true-login-button {
  height: 62px !important;
  border: 1px solid rgba(255,225,151,.92) !important;
  border-radius: 8px !important;
  margin-top: 4px !important;
  color: #06101f !important;
  background:
    linear-gradient(180deg, #ffdc82 0%, #dfa943 45%, #b9761e 100%) !important;
  box-shadow:
    0 16px 32px rgba(216,161,58,.30),
    inset 0 1px 0 rgba(255,255,255,.45),
    inset 0 -2px 0 rgba(83,45,8,.34) !important;
  text-transform: uppercase !important;
  letter-spacing: .18em !important;
  font-weight: 950 !important;
  font-size: 1.02rem !important;
  display: grid !important;
  grid-template-columns: 1fr auto !important;
  align-items: center !important;
  padding: 0 26px !important;
  overflow: hidden !important;
  position: relative !important;
}

.true-login-button::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.36), transparent) !important;
  transform: translateX(-120%) skewX(-18deg) !important;
  transition: transform .65s ease !important;
}

.true-login-button:hover {
  transform: translateY(-2px) !important;
  box-shadow:
    0 22px 45px rgba(216,161,58,.36),
    inset 0 1px 0 rgba(255,255,255,.52),
    inset 0 -2px 0 rgba(83,45,8,.34) !important;
}

.true-login-button:hover::before {
  transform: translateX(120%) skewX(-18deg) !important;
}

.true-login-button span,
.true-login-button strong {
  position: relative !important;
  z-index: 2 !important;
}

.true-login-button strong {
  font-size: 1.55rem !important;
  line-height: 1 !important;
}

.true-error {
  min-height: 20px !important;
  margin: -2px 0 0 !important;
  text-align: center !important;
}

.true-secure-note {
  width: min(520px, 100%) !important;
  display: grid !important;
  grid-template-columns: 22px auto !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 10px !important;
  color: #cdd7e1 !important;
  font-size: .96rem !important;
  margin-top: -2px !important;
  position: relative !important;
  z-index: 2 !important;
}

.true-secure-note::before,
.true-secure-note::after {
  content: "" !important;
  height: 1px !important;
  width: 82px !important;
  background: linear-gradient(90deg, transparent, rgba(216,161,58,.26)) !important;
}

.true-secure-note::before {
  position: absolute !important;
  left: 0 !important;
}

.true-secure-note::after {
  position: absolute !important;
  right: 0 !important;
  transform: rotate(180deg) !important;
}

.true-secure-note span {
  color: var(--gold-2) !important;
}

.true-secure-note strong {
  font-weight: 650 !important;
  color: #d6dee6 !important;
}

.true-hold-note {
  width: min(520px, 100%) !important;
  display: grid !important;
  gap: 4px !important;
  padding: 12px 16px !important;
  border: 1px solid rgba(216,161,58,.22) !important;
  border-radius: 12px !important;
  background: rgba(255,255,255,.028) !important;
  color: var(--muted) !important;
  font-size: .82rem !important;
  text-align: center !important;
  z-index: 2 !important;
}

.true-hold-note strong {
  color: #fff4d8 !important;
}

.true-hold-note span {
  color: #aebdcc !important;
}

@keyframes trueLoginSheen {
  0%, 42% { transform: translateX(-115%); opacity: 0; }
  50% { opacity: .65; }
  64% { transform: translateX(115%); opacity: 0; }
  100% { transform: translateX(115%); opacity: 0; }
}

@media (max-width: 760px) {
  .true-login-card {
    min-height: calc(100vh - 28px) !important;
    padding: 34px 20px !important;
    gap: 14px !important;
  }

  .true-login-logo-frame {
    width: min(286px, 76vw) !important;
  }

  .true-secure-note::before,
  .true-secure-note::after {
    width: 40px !important;
  }
}


/* TICS retained styling block. */
#loginView.is-hidden,
.true-login-shell.is-hidden,
body.is-authenticated #loginView {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

#appView.is-hidden {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

body.is-authenticated #appView {
  display: grid !important;
  visibility: visible !important;
  pointer-events: auto !important;
}


/* TICS retained styling block. */
body.is-authenticated[data-route="dashboard"] {
  background:
    radial-gradient(circle at 8% 6%, rgba(216,161,58,.10), transparent 28rem),
    radial-gradient(circle at 88% 14%, rgba(24,76,120,.20), transparent 34rem),
    linear-gradient(135deg,#020914 0%,#061426 52%,#020914 100%) !important;
}

body.is-authenticated[data-route="dashboard"] .app-shell {
  grid-template-columns: 270px 1fr !important;
  background:
    radial-gradient(circle at 88% 10%, rgba(216,161,58,.07), transparent 23rem),
    linear-gradient(180deg, rgba(2,9,20,.35), rgba(2,9,20,.86)) !important;
}

body.is-authenticated[data-route="dashboard"] .sidebar {
  background:
    radial-gradient(circle at 48% 6%, rgba(240,197,111,.10), transparent 12rem),
    linear-gradient(180deg, rgba(2,12,24,.96), rgba(3,18,32,.96)) !important;
  border-right-color: rgba(216,161,58,.35) !important;
  padding: 20px 14px !important;
}

body.is-authenticated[data-route="dashboard"] .side-brand {
  display: grid !important;
  justify-items: center !important;
  text-align: center !important;
  gap: 10px !important;
  padding: 4px 4px 16px !important;
}

body.is-authenticated[data-route="dashboard"] .side-brand .brand-logo-wrap {
  width: 210px !important;
  height: 210px !important;
  padding: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}

body.is-authenticated[data-route="dashboard"] .side-brand strong {
  display: none !important;
}

body.is-authenticated[data-route="dashboard"] .side-brand span {
  display: none !important;
}

body.is-authenticated[data-route="dashboard"] .nav-group {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  border-bottom: 1px solid rgba(216,161,58,.20) !important;
  padding: 8px 0 !important;
}

body.is-authenticated[data-route="dashboard"] .nav-group summary {
  display: none !important;
}

body.is-authenticated[data-route="dashboard"] .nav-group-items {
  padding: 0 !important;
  gap: 7px !important;
}

body.is-authenticated[data-route="dashboard"] .nav-item {
  border-color: transparent !important;
  border-radius: 10px !important;
  color: #d5dce4 !important;
  background: transparent !important;
  padding: 12px 13px !important;
  font-size: .95rem !important;
}

body.is-authenticated[data-route="dashboard"] .nav-item.active,
body.is-authenticated[data-route="dashboard"] .nav-item:hover {
  color: #fff4d8 !important;
  border-color: rgba(240,197,111,.60) !important;
  background: linear-gradient(90deg, rgba(216,161,58,.20), rgba(216,161,58,.06)) !important;
  box-shadow: 0 0 24px rgba(216,161,58,.16) !important;
}

body.is-authenticated[data-route="dashboard"] .side-status {
  border-color: rgba(216,161,58,.24) !important;
  background: rgba(255,255,255,.03) !important;
}

body.is-authenticated[data-route="dashboard"] .workspace {
  padding: 0 28px 22px !important;
  overflow-y: auto !important;
}

body.is-authenticated[data-route="dashboard"] .topbar {
  position: sticky !important;
  top: 0 !important;
  z-index: 20 !important;
  margin: 0 -28px 24px !important;
  padding: 22px 34px !important;
  border-radius: 0 !important;
  border-width: 0 0 1px 0 !important;
  background:
    linear-gradient(90deg, rgba(3,15,28,.96), rgba(3,18,32,.92)) !important;
  box-shadow: 0 20px 45px rgba(0,0,0,.25) !important;
  display: grid !important;
  grid-template-columns: minmax(210px, .6fr) minmax(360px, 1fr) auto !important;
  align-items: center !important;
  gap: 24px !important;
}

.topbar-title {
  display: flex;
  align-items: center;
  gap: 16px;
}

.hamburger-btn {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(216,161,58,.35);
  border-radius: 10px;
  background: rgba(2,9,20,.48);
  color: var(--gold-2);
  font-size: 1.4rem;
}

.topbar-control {
  display: grid;
  gap: 12px;
  justify-items: center;
}

.topbar-motto {
  margin: 0;
  color: var(--gold-2);
  text-transform: uppercase;
  letter-spacing: .48em;
  font-size: .72rem;
  font-weight: 950;
}

.topbar-search {
  width: min(430px, 100%);
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  border: 1px solid rgba(216,161,58,.33);
  border-radius: 10px;
  background: rgba(2,9,20,.55);
  padding: 0 12px;
}

.topbar-search span {
  color: var(--gold-2);
  font-size: 1.2rem;
}

.topbar-search input {
  height: 42px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.icon-action {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(216,161,58,.32);
  border-radius: 50%;
  background: rgba(2,9,20,.48);
  color: var(--gold-2);
}

body.is-authenticated[data-route="dashboard"] .session-pill {
  border-color: rgba(216,161,58,.40) !important;
  padding: 8px 14px !important;
}

body.is-authenticated[data-route="dashboard"] .content-grid.dashboard-mockup-grid {
  display: grid !important;
  grid-template-columns: repeat(12, minmax(0, 1fr)) !important;
  gap: 18px !important;
  max-width: 1580px !important;
  margin: 0 auto !important;
}

.mock-dashboard-hero,
.tica-command-panel,
.mock-kpi-card,
.mock-activity-card,
.mock-procurement-card,
.mock-health-card,
.mock-assets-card {
  border: 1px solid rgba(216,161,58,.42);
  background:
    radial-gradient(circle at 72% 24%, rgba(216,161,58,.08), transparent 24rem),
    linear-gradient(145deg, rgba(7,24,42,.90), rgba(2,11,22,.96));
  box-shadow: 0 22px 60px rgba(0,0,0,.28), inset 0 0 0 1px rgba(255,255,255,.025);
  overflow: hidden;
  position: relative;
}

.mock-dashboard-hero::before,
.tica-command-panel::before,
.mock-procurement-card::before,
.mock-health-card::before,
.mock-assets-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(216,161,58,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(216,161,58,.025) 1px, transparent 1px);
  background-size: 36px 36px;
  opacity: .24;
}

.mock-dashboard-hero {
  grid-column: span 8;
  border-radius: 18px;
  padding: 32px 36px 26px;
  min-height: 220px;
  display: grid;
  align-content: space-between;
}

.hero-copy,
.hero-meta,
.mock-card-head,
.donut-layout,
.health-layout,
.assets-summary,
.tica-panel-head,
.activity-list,
.mock-kpi-card > * {
  position: relative;
  z-index: 2;
}

.hero-copy h3 {
  margin: 0 0 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 3vw, 2.95rem);
  color: var(--gold-2);
  line-height: 1;
}

.hero-copy p {
  max-width: 640px;
  margin-bottom: 0;
  color: #d8e0e7;
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  padding-top: 20px;
  margin-top: 20px;
  border-top: 1px solid rgba(216,161,58,.28);
}

.hero-meta div {
  border-right: 1px solid rgba(216,161,58,.20);
  min-width: 0;
}

.hero-meta div:last-child {
  border-right: 0;
}

.hero-meta span,
.summary-row span,
.assets-summary span {
  display: block;
  color: var(--muted);
  font-size: .82rem;
  margin-bottom: 6px;
}

.hero-meta strong,
.summary-row strong,
.assets-summary strong {
  color: #fff4d8;
  font-size: 1.02rem;
}

.hero-meta i {
  display: inline-block;
  width: 10px;
  height: 10px;
  background: #77d46b;
  border-radius: 50%;
  margin-right: 6px;
}

.tica-command-panel {
  grid-column: span 4;
  grid-row: span 2;
  border-radius: 18px;
  padding: 24px;
  display: grid;
  gap: 13px;
}

.tica-panel-head {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  align-items: start;
  margin-bottom: 6px;
}

.tica-panel-head span {
  color: var(--gold-2);
  font-size: 1.4rem;
}

.tica-panel-head h3,
.mock-card-head h3 {
  margin: 0;
  color: var(--gold-2);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
}

.tica-panel-head p {
  margin: 8px 0 0;
  line-height: 1.5;
}

.tica-command-panel button,
.mock-card-head button {
  border: 1px solid rgba(216,161,58,.38);
  background: rgba(2,9,20,.40);
  color: #e8edf2;
  border-radius: 9px;
}

.tica-command-panel button {
  height: 50px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: 0 16px;
  text-align: left;
}

.tica-command-panel b {
  color: var(--gold-2);
  font-size: 1.55rem;
}

.tica-ask {
  display: grid;
  grid-template-columns: 1fr 42px;
  align-items: center;
  height: 55px;
  margin-top: 10px;
  border: 1px solid rgba(216,161,58,.32);
  border-radius: 10px;
  overflow: hidden;
  background: rgba(2,9,20,.42);
}

.tica-ask input {
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  padding: 0 14px;
}

.tica-ask span {
  color: var(--gold-2);
  text-align: center;
}

.mock-kpi-strip {
  grid-column: span 8;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.mock-kpi-card {
  border-radius: 14px;
  padding: 21px 18px;
  min-height: 170px;
  text-align: center;
}

.kpi-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin: 0 auto 15px;
  color: var(--gold-2);
  border: 1px solid rgba(216,161,58,.55);
  border-radius: 50%;
  font-size: 1.8rem;
}

.mock-kpi-card p {
  margin: 0 0 10px;
  color: var(--gold-2);
  text-transform: uppercase;
  letter-spacing: .22em;
  font-weight: 950;
  font-size: .74rem;
}

.mock-kpi-card strong {
  display: block;
  color: #fff8ea;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.55rem, 2vw, 2rem);
  line-height: 1;
}

.mock-kpi-card em,
.assets-summary em {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-style: normal;
  font-size: .82rem;
}

.mock-kpi-card em.up,
.assets-summary em.up {
  color: #77d46b;
}

.mock-kpi-card em.down {
  color: #ff5d5d;
}

.mock-kpi-card small {
  color: var(--muted);
}

.mock-activity-card {
  grid-column: span 4;
  border-radius: 18px;
  padding: 22px;
}

.mock-procurement-card {
  grid-column: span 4;
  border-radius: 18px;
  padding: 22px;
}

.mock-health-card,
.mock-assets-card {
  grid-column: span 4;
  border-radius: 18px;
  padding: 22px;
}

.mock-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.mock-card-head button {
  color: var(--gold-2);
  border: 0;
  background: transparent;
  padding: 0;
}

.activity-list {
  display: grid;
  gap: 0;
}

.activity-list div {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 13px 0;
  border-top: 1px solid rgba(216,161,58,.18);
}

.activity-list span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(216,161,58,.50);
  border-radius: 50%;
  color: var(--gold-2);
}

.activity-list span.ok {
  color: #77d46b;
}

.activity-list span.warn {
  color: #f0c56f;
}

.activity-list p {
  margin: 0;
  line-height: 1.25;
}

.activity-list strong {
  color: #eaf0f6;
  font-size: .94rem;
}

.activity-list small {
  display: block;
  color: var(--muted);
  margin-top: 4px;
}

.activity-list em {
  color: var(--muted);
  font-style: normal;
  font-size: .78rem;
}

.donut-layout,
.health-layout {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 20px;
  align-items: center;
}

.status-donut,
.health-ring {
  width: 145px;
  height: 145px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  align-content: center;
  margin: auto;
  box-shadow: inset 0 0 0 14px rgba(2,9,20,.72), 0 18px 36px rgba(0,0,0,.25);
}

.status-donut {
  background: conic-gradient(#429fe4 0 68deg, #d8a13a 68deg 169deg, #62bf6c 169deg 248deg, #9b53c7 248deg 293deg, #67c5c8 293deg 360deg);
}

.health-ring {
  background: conic-gradient(#77d46b 0 313deg, #d8a13a 313deg 337deg, #ff9a34 337deg 354deg, #ff5d5d 354deg 360deg);
}

.status-donut::before,
.health-ring::before {
  content: "";
  position: absolute;
}

.status-donut strong,
.health-ring strong {
  color: #fff8ea;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.2rem;
  line-height: 1;
  position: relative;
  z-index: 2;
}

.status-donut span,
.health-ring span {
  color: var(--muted);
  position: relative;
  z-index: 2;
}

.legend-list,
.health-list {
  display: grid;
  gap: 10px;
}

.legend-list p,
.health-list p {
  margin: 0;
  display: grid;
  grid-template-columns: 16px 1fr auto auto;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: .90rem;
}

.legend-list i,
.health-list i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.blue { background:#429fe4; }
.gold { background:#d8a13a; }
.green { background:#77d46b; }
.purple { background:#9b53c7; }
.teal { background:#67c5c8; }
.orange { background:#ff9a34; }
.red { background:#ff5d5d; }

.legend-list strong,
.health-list strong {
  color: #fff4d8;
}

.legend-list span,
.health-list span {
  color: var(--gold-2);
}

.summary-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  border-top: 1px solid rgba(216,161,58,.22);
  margin-top: 20px;
  padding-top: 18px;
}

.summary-row strong {
  font-size: 1.6rem;
  font-family: Georgia, "Times New Roman", serif;
}

.assets-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  align-items: center;
}

.assets-summary > div + div {
  border-left: 1px solid rgba(216,161,58,.22);
  padding-left: 22px;
}

.assets-summary strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  margin: 8px 0;
}

.assets-summary b {
  display: block;
  height: 14px;
  border: 1px solid rgba(216,161,58,.35);
  border-radius: 999px;
  margin-top: 12px;
  background: rgba(2,9,20,.60);
  overflow: hidden;
}

.assets-summary b i {
  display: block;
  width: 63%;
  height: 100%;
  background: linear-gradient(90deg, #9b6b21, #ffd978);
  box-shadow: 0 0 18px rgba(216,161,58,.44);
}

.mock-dashboard-note {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 18px 0;
  color: #cbd5df;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .78rem;
}

.mock-dashboard-note span {
  color: var(--gold-2);
}

.mock-dashboard-note em {
  color: var(--muted);
  font-style: normal;
  text-transform: none;
  letter-spacing: 0;
}

@media (max-width: 1320px) {
  body.is-authenticated[data-route="dashboard"] .topbar {
    grid-template-columns: 1fr;
  }
  .topbar-control {
    justify-items: stretch;
  }
  .topbar-motto {
    text-align: left;
  }
  .mock-dashboard-hero,
  .tica-command-panel,
  .mock-kpi-strip,
  .mock-activity-card,
  .mock-procurement-card,
  .mock-health-card,
  .mock-assets-card {
    grid-column: 1 / -1;
  }
  .mock-kpi-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  body.is-authenticated[data-route="dashboard"] .app-shell {
    grid-template-columns: 1fr !important;
    height: auto !important;
    overflow: visible !important;
  }
  body.is-authenticated[data-route="dashboard"] .sidebar {
    position: relative !important;
    height: auto !important;
  }
  body.is-authenticated[data-route="dashboard"] .workspace {
    padding: 0 16px 20px !important;
  }
  body.is-authenticated[data-route="dashboard"] .topbar {
    margin: 0 -16px 18px !important;
    padding: 18px !important;
  }
  .hero-meta,
  .mock-kpi-strip,
  .donut-layout,
  .health-layout,
  .assets-summary {
    grid-template-columns: 1fr !important;
  }
}


/* TICS retained styling block. */
body:not(.is-authenticated):has(.true-login-shell) {
  min-height: 100svh !important;
  height: 100svh !important;
  overflow: hidden !important;
}

.true-login-shell {
  min-height: 100svh !important;
  height: 100svh !important;
  padding: clamp(8px, 2svh, 24px) !important;
  overflow: hidden !important;
  align-items: center !important;
  justify-items: center !important;
}

.true-login-card {
  width: min(640px, 96vw) !important;
  min-height: 0 !important;
  height: min(860px, calc(100svh - clamp(16px, 4svh, 48px))) !important;
  max-height: calc(100svh - clamp(16px, 4svh, 48px)) !important;
  padding: clamp(18px, 3.2svh, 48px) clamp(20px, 4vw, 54px) !important;
  gap: clamp(9px, 1.45svh, 19px) !important;
  justify-content: center !important;
  overflow: hidden !important;
}

.true-login-card::before {
  inset: clamp(16px, 3svh, 28px) !important;
}

.true-login-version {
  top: clamp(7px, 1.2svh, 13px) !important;
  font-size: clamp(8px, 1.1svh, 11px) !important;
  letter-spacing: clamp(.14em, .36vw, .22em) !important;
}

.true-login-logo-frame {
  width: clamp(190px, 34svh, 340px) !important;
  max-width: min(58vw, 340px) !important;
  margin: clamp(2px, .6svh, 8px) auto clamp(-4px, -.2svh, 0px) !important;
}

.true-login-heading h1 {
  font-size: clamp(2rem, 4.8svh, 3.25rem) !important;
  margin-bottom: clamp(4px, .9svh, 8px) !important;
}

.true-login-heading p {
  font-size: clamp(.86rem, 1.7svh, 1.05rem) !important;
}

.true-login-form {
  gap: clamp(9px, 1.35svh, 16px) !important;
  margin-top: clamp(2px, .6svh, 6px) !important;
}

.true-field input {
  height: clamp(44px, 6.4svh, 58px) !important;
  font-size: clamp(.92rem, 1.7svh, 1.08rem) !important;
}

.true-login-button {
  height: clamp(48px, 6.7svh, 62px) !important;
  font-size: clamp(.82rem, 1.55svh, 1.02rem) !important;
}

.true-secure-note {
  font-size: clamp(.76rem, 1.5svh, .96rem) !important;
  margin-top: clamp(-4px, -.2svh, 0px) !important;
}

.true-hold-note {
  padding: clamp(7px, 1.25svh, 12px) 14px !important;
  font-size: clamp(.68rem, 1.25svh, .82rem) !important;
}

.corner-line {
  width: clamp(56px, 10svh, 86px) !important;
  height: clamp(56px, 10svh, 86px) !important;
}

/* Short laptop screens: compress the login further, but keep everything visible. */
@media (max-height: 820px) {
  .true-login-card {
    width: min(610px, 94vw) !important;
    padding-top: 24px !important;
    padding-bottom: 20px !important;
    gap: 10px !important;
  }

  .true-login-logo-frame {
    width: clamp(178px, 30svh, 270px) !important;
  }

  .true-login-heading h1 {
    font-size: clamp(1.8rem, 4.4svh, 2.65rem) !important;
  }

  .true-secure-note::before,
  .true-secure-note::after {
    width: 54px !important;
  }
}

@media (max-height: 720px) {
  .true-login-card {
    width: min(580px, 94vw) !important;
    padding: 20px 34px 16px !important;
    gap: 8px !important;
  }

  .true-login-logo-frame {
    width: clamp(150px, 27svh, 220px) !important;
  }

  .true-login-heading h1 {
    font-size: clamp(1.65rem, 4.2svh, 2.25rem) !important;
  }

  .true-field input {
    height: 44px !important;
  }

  .true-login-button {
    height: 48px !important;
  }

  .true-hold-note {
    display: none !important;
  }
}

@media (max-width: 760px) {
  body:not(.is-authenticated):has(.true-login-shell) {
    overflow-y: auto !important;
  }

  .true-login-shell {
    height: auto !important;
    min-height: 100svh !important;
    overflow: visible !important;
  }

  .true-login-card {
    height: auto !important;
    min-height: calc(100svh - 18px) !important;
    max-height: none !important;
    width: min(94vw, 520px) !important;
  }
}


/* TICS retained styling block. */

/* Refined premium chart system. */
.refined-chart {
  position: relative !important;
  width: 164px !important;
  height: 164px !important;
  border-radius: 50% !important;
  display: grid !important;
  place-items: center !important;
  margin: auto !important;
  background:
    radial-gradient(circle at 50% 50%, rgba(240,197,111,.10), transparent 50%),
    linear-gradient(145deg, rgba(2,9,20,.92), rgba(7,26,44,.92)) !important;
  box-shadow:
    0 18px 44px rgba(0,0,0,.35),
    0 0 0 1px rgba(240,197,111,.18) inset,
    0 0 35px rgba(216,161,58,.08) !important;
}

.refined-chart::before {
  content: "" !important;
  position: absolute !important;
  inset: 15px !important;
  border-radius: 50% !important;
  background:
    radial-gradient(circle at 50% 42%, rgba(255,255,255,.08), transparent 34%),
    linear-gradient(145deg, rgba(7,24,42,.96), rgba(2,10,20,.99)) !important;
  box-shadow:
    inset 0 0 0 1px rgba(240,197,111,.16),
    inset 0 0 28px rgba(0,0,0,.56) !important;
  z-index: 1 !important;
}

.refined-chart::after {
  content: "" !important;
  position: absolute !important;
  inset: 34px !important;
  border-radius: 50% !important;
  border: 1px solid rgba(240,197,111,.14) !important;
  background:
    radial-gradient(circle at 50% 42%, rgba(240,197,111,.10), transparent 42%),
    rgba(2,9,20,.86) !important;
  z-index: 3 !important;
}

.refined-chart svg {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  transform: rotate(-90deg) !important;
  z-index: 2 !important;
  overflow: visible !important;
}


.refined-chart .outline-ring {
  fill: none !important;
  stroke: rgba(226,179,78,.92) !important;
  stroke-width: 15.5 !important;
  opacity: .74 !important;
}

.refined-chart .track {
  fill: none !important;
  stroke: rgba(201,143,42,.90) !important;
  stroke-width: 13.5 !important;
  filter: drop-shadow(0 0 5px rgba(216,161,58,.10)) !important;
}

.refined-chart .seg,
.refined-chart .health-seg {
  fill: none !important;
  stroke-width: 11.5 !important;
  stroke-linecap: butt !important;
  filter: drop-shadow(0 0 4px rgba(240,197,111,.10)) !important;
}

.procurement-chart .seg-draft {
  stroke: #56b8f6 !important;
  stroke-dasharray: 18 82 !important;
  stroke-dashoffset: 0 !important;
}

.procurement-chart .seg-sent {
  stroke: #e5ad3e !important;
  stroke-dasharray: 27.3 72.7 !important;
  stroke-dashoffset: -19.2 !important;
}

.procurement-chart .seg-received {
  stroke: #77d46b !important;
  stroke-dasharray: 21.1 78.9 !important;
  stroke-dashoffset: -47.7 !important;
}

.procurement-chart .seg-evaluating {
  stroke: #b967dd !important;
  stroke-dasharray: 11.7 88.3 !important;
  stroke-dashoffset: -69.6 !important;
}

.procurement-chart .seg-awarded {
  stroke: #70d2d5 !important;
  stroke-dasharray: 18 82 !important;
  stroke-dashoffset: -82.5 !important;
}

.health-chart .health-healthy {
  stroke: #78d76d !important;
  stroke-dasharray: 83 17 !important;
  stroke-dashoffset: 0 !important;
  filter: drop-shadow(0 0 9px rgba(120,215,109,.28)) !important;
}

.health-chart .health-risk {
  stroke: #e5ad3e !important;
  stroke-dasharray: 5.8 94.2 !important;
  stroke-dashoffset: -84.2 !important;
}

.health-chart .health-slow {
  stroke: #ff9a34 !important;
  stroke-dasharray: 4.9 95.1 !important;
  stroke-dashoffset: -90.8 !important;
}

.health-chart .health-stockout {
  stroke: #ff5d5d !important;
  stroke-dasharray: 1.3 98.7 !important;
  stroke-dashoffset: -96.9 !important;
}

.chart-center {
  position: relative !important;
  z-index: 5 !important;
  width: 90px !important;
  height: 90px !important;
  border-radius: 50% !important;
  display: grid !important;
  place-items: center !important;
  align-content: center !important;
  background:
    radial-gradient(circle at 50% 35%, rgba(240,197,111,.14), transparent 46%),
    linear-gradient(145deg, rgba(6,21,36,.98), rgba(2,9,20,.99)) !important;
  box-shadow:
    0 0 0 1px rgba(240,197,111,.16),
    inset 0 0 26px rgba(0,0,0,.52) !important;
}

.chart-center strong {
  color: #fff5d9 !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: 2.15rem !important;
  line-height: .95 !important;
  text-shadow: 0 0 12px rgba(240,197,111,.20) !important;
}

.chart-center span {
  color: #aebdcc !important;
  font-size: .82rem !important;
  margin-top: 4px !important;
}

.refined-legend {
  gap: 12px !important;
}

.refined-legend p {
  border-bottom: 1px solid rgba(216,161,58,.11) !important;
  padding-bottom: 8px !important;
}

.refined-legend p:last-child {
  border-bottom: 0 !important;
}

.refined-legend i {
  width: 11px !important;
  height: 11px !important;
  box-shadow: 0 0 10px currentColor !important;
}

.refined-legend strong {
  font-size: .96rem !important;
}

.refined-legend span {
  min-width: 46px !important;
  text-align: right !important;
  font-weight: 800 !important;
}

/* Neutralize older rough filled-pie styling for the refined SVG charts. */
.status-donut.refined-chart,
.health-ring.refined-chart {
  background:
    radial-gradient(circle at 50% 50%, rgba(240,197,111,.10), transparent 50%),
    linear-gradient(145deg, rgba(2,9,20,.92), rgba(7,26,44,.92)) !important;
  box-shadow:
    0 18px 44px rgba(0,0,0,.35),
    0 0 0 1px rgba(240,197,111,.18) inset,
    0 0 35px rgba(216,161,58,.08) !important;
}

.status-donut.refined-chart strong,
.health-ring.refined-chart strong {
  position: static !important;
}

.status-donut.refined-chart span,
.health-ring.refined-chart span {
  position: static !important;
}

@media (max-width: 900px) {
  .refined-chart {
    width: 150px !important;
    height: 150px !important;
  }

  .chart-center {
    width: 82px !important;
    height: 82px !important;
  }

  .chart-center strong {
    font-size: 1.8rem !important;
  }
}

/* TICS retained styling block. */
body.is-authenticated[data-route="owner-control-room"] {
  background:
    radial-gradient(circle at 10% 10%, rgba(216,161,58,.13), transparent 30rem),
    radial-gradient(circle at 90% 8%, rgba(67,159,228,.14), transparent 34rem),
    linear-gradient(135deg,#020914 0%,#071729 52%,#020914 100%) !important;
}

body.is-authenticated[data-route="owner-control-room"] .workspace {
  padding: 0 28px 22px !important;
}

body.is-authenticated[data-route="owner-control-room"] .topbar {
  border-color: rgba(216,161,58,.45) !important;
  background:
    radial-gradient(circle at 80% 20%, rgba(216,161,58,.10), transparent 20rem),
    linear-gradient(135deg, rgba(7,24,42,.92), rgba(2,9,20,.96)) !important;
}

.owner-control-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 18px !important;
  max-width: 1560px !important;
  margin: 0 auto !important;
}

.owner-room-hero,
.owner-alert-strip,
.owner-command-grid {
  grid-column: 1 / -1;
}

.owner-room-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  align-items: center;
  gap: 24px;
  padding: 32px;
  border: 1px solid rgba(216,161,58,.52);
  border-radius: 20px;
  background:
    radial-gradient(circle at 84% 10%, rgba(240,197,111,.12), transparent 24rem),
    linear-gradient(145deg, rgba(7,24,42,.94), rgba(2,9,20,.98));
  box-shadow: 0 28px 80px rgba(0,0,0,.38), inset 0 0 0 1px rgba(255,255,255,.03);
  overflow: hidden;
  position: relative;
}

.owner-room-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(216,161,58,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(216,161,58,.025) 1px, transparent 1px);
  background-size: 38px 38px;
  opacity: .3;
  pointer-events: none;
}

.owner-room-hero > * {
  position: relative;
  z-index: 2;
}

.owner-room-hero h3 {
  margin: 0 0 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 4vw, 4.1rem);
  line-height: .95;
  color: var(--gold-2);
}

.owner-room-hero p {
  max-width: 850px;
  color: #d5dee7;
  font-size: 1.05rem;
}

.owner-room-seal {
  display: grid;
  place-items: center;
  text-align: center;
  gap: 6px;
}

.owner-room-seal img {
  width: 160px;
  height: 160px;
  object-fit: contain;
  filter: drop-shadow(0 20px 34px rgba(0,0,0,.45)) drop-shadow(0 0 18px rgba(216,161,58,.24));
}

.owner-room-seal strong {
  color: #fff4d8;
  letter-spacing: .22em;
  font-size: .86rem;
}

.owner-room-seal span {
  color: var(--muted);
  font-size: .82rem;
}

.owner-alert-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.owner-alert-strip article,
.owner-control-panel {
  border: 1px solid rgba(216,161,58,.38);
  border-radius: 18px;
  background:
    radial-gradient(circle at 78% 12%, rgba(216,161,58,.08), transparent 18rem),
    linear-gradient(145deg, rgba(7,24,42,.90), rgba(2,10,22,.97));
  box-shadow: 0 20px 55px rgba(0,0,0,.28), inset 0 0 0 1px rgba(255,255,255,.025);
  position: relative;
  overflow: hidden;
}

.owner-alert-strip article {
  padding: 18px;
}

.owner-alert-strip span,
.owner-control-panel p,
.owner-check-list span,
.owner-count-stack span,
.deploy-gate span,
.roadmap-control-board span,
.review-board span,
.tica-control-lanes span,
.owner-metrics span,
.activation-matrix span {
  color: var(--muted);
}

.owner-alert-strip strong {
  display: block;
  color: #fff4d8;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.6rem;
  margin: 6px 0;
}

.owner-alert-strip em {
  color: var(--gold-2);
  font-style: normal;
  font-size: .84rem;
}

.owner-command-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.owner-control-panel {
  padding: 22px;
}

.owner-control-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(216,161,58,.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(216,161,58,.022) 1px, transparent 1px);
  background-size: 34px 34px;
  opacity: .20;
  pointer-events: none;
}

.owner-control-panel > * {
  position: relative;
  z-index: 2;
}

.owner-span-1 { grid-column: span 1; }
.owner-span-2 { grid-column: span 2; }
.owner-span-4 { grid-column: 1 / -1; }

.owner-panel-head {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 14px;
  align-items: start;
  margin-bottom: 18px;
}

.owner-panel-head.compact {
  grid-template-columns: 42px 1fr;
}

.owner-panel-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(240,197,111,.58);
  border-radius: 50%;
  color: var(--gold-2);
  background:
    radial-gradient(circle at 50% 50%, rgba(240,197,111,.18), transparent 58%),
    linear-gradient(145deg, rgba(4,17,31,.98), rgba(1,8,18,.98));
  box-shadow: 0 0 20px rgba(216,161,58,.14), inset 0 0 14px rgba(0,0,0,.44);
  font-weight: 950;
}

.owner-panel-head h3 {
  margin: 0;
  color: var(--gold-2);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.6rem;
}

.owner-panel-head p {
  margin: 7px 0 0;
  line-height: 1.45;
}

.owner-metrics,
.activation-matrix,
.tica-control-lanes,
.review-board,
.roadmap-control-board {
  display: grid;
  gap: 10px;
}

.owner-metrics {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.owner-metrics div,
.activation-matrix div,
.tica-control-lanes div,
.review-board div,
.roadmap-control-board div,
.owner-count-stack div {
  border: 1px solid rgba(216,161,58,.18);
  border-radius: 12px;
  background: rgba(2,9,20,.38);
  padding: 13px;
}

.owner-metrics strong,
.activation-matrix strong,
.tica-control-lanes strong,
.review-board strong,
.owner-check-list strong,
.deploy-gate strong {
  display: block;
  color: #fff4d8;
  margin-top: 4px;
}

.owner-metrics strong.warn,
.deploy-gate strong {
  color: #ffcf70;
}

.owner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.owner-actions button {
  border: 1px solid rgba(240,197,111,.48);
  border-radius: 999px;
  color: #06101f;
  background: linear-gradient(180deg, #ffdc82, #d49a31);
  padding: 10px 14px;
  font-weight: 900;
}

.owner-result {
  min-height: 18px;
  margin: 12px 0 0;
  color: #77d46b !important;
  font-size: .85rem;
}

.owner-check-list {
  display: grid;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.owner-check-list li {
  display: grid;
  gap: 3px;
  border-bottom: 1px solid rgba(216,161,58,.12);
  padding-bottom: 10px;
}

.owner-check-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.owner-count-stack {
  display: grid;
  gap: 10px;
}

.owner-count-stack strong {
  display: block;
  color: var(--gold-2);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
}

.activation-matrix {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.activation-matrix em {
  display: inline-block;
  margin-top: 9px;
  color: #ffcf70;
  font-style: normal;
  border: 1px solid rgba(240,197,111,.34);
  border-radius: 999px;
  padding: 4px 9px;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .10em;
}

.tica-control-lanes {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.tica-small-mark {
  position: relative;
  overflow: hidden;
}

.tica-small-mark::before {
  content: "T";
  font-family: Georgia, "Times New Roman", serif;
  color: #fff3cf;
  font-weight: 950;
  position: relative;
  z-index: 2;
}

.tica-small-mark i {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold-2);
  box-shadow:
    -10px -7px 0 rgba(240,197,111,.70),
    10px 7px 0 rgba(240,197,111,.70),
    9px -8px 0 rgba(240,197,111,.52),
    -8px 9px 0 rgba(240,197,111,.52);
}

.review-board {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.review-board em {
  display: block;
  margin-top: 8px;
  color: var(--gold-2);
  font-style: normal;
  font-size: .82rem;
}

.deploy-gate {
  border: 1px solid rgba(255,207,112,.42);
  border-radius: 14px;
  padding: 16px;
  background: rgba(255,207,112,.06);
}

.roadmap-control-board {
  grid-template-columns: repeat(8, minmax(0, 1fr));
}

.roadmap-control-board b {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(240,197,111,.50);
  border-radius: 50%;
  color: var(--gold-2);
  margin-bottom: 10px;
}

.roadmap-control-board strong {
  display: block;
  color: #fff4d8;
  margin-bottom: 6px;
}

@media (max-width: 1320px) {
  .owner-control-grid,
  .owner-command-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .owner-span-1,
  .owner-span-2,
  .owner-span-4,
  .owner-room-hero,
  .owner-alert-strip,
  .owner-command-grid {
    grid-column: 1 / -1 !important;
  }
  .activation-matrix,
  .tica-control-lanes,
  .review-board,
  .roadmap-control-board,
  .owner-alert-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 760px) {
  .owner-room-hero,
  .owner-alert-strip,
  .owner-command-grid,
  .owner-metrics,
  .activation-matrix,
  .tica-control-lanes,
  .review-board,
  .roadmap-control-board {
    grid-template-columns: 1fr !important;
  }
  .owner-room-seal img {
    width: 120px;
    height: 120px;
  }
}


/* TICS retained styling block. */
body.is-authenticated[data-route="owner-control-room"] .session-pill span::after {
  content: " / CONTROL ROOM";
  color: var(--gold-2);
}

.owner-room-hero::after {
  content: "Private control layer — separated from normal dashboard logins.";
  position: absolute;
  right: 28px;
  bottom: 18px;
  color: rgba(240,197,111,.72);
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  z-index: 3;
}

@media (max-width: 760px) {
  .owner-room-hero::after {
    position: relative;
    right: auto;
    bottom: auto;
    display: block;
    margin-top: 10px;
  }
}


/* TICS retained styling block. */
.tica-brass-icon {
  display: block;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-image: url('./assets/tica-brass-approved.png');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: 0 0 0 1px rgba(240,197,111,.16) inset, 0 0 16px rgba(216,161,58,.10);
}

.tica-panel-head {
  grid-template-columns: 38px 1fr;
  gap: 12px;
  align-items: start;
}

.tica-panel-head span {
  color: transparent;
  font-size: 0;
}

.kpi-icon.tica-kpi-mark {
  background: transparent !important;
  box-shadow: none !important;
  width: 46px !important;
  height: 46px !important;
  border-radius: 50% !important;
  display: block !important;
  margin: 0 auto 2px !important;
}

.tica-kpi-mark::before,
.tica-kpi-mark::after,
.tica-kpi-mark i,
.tica-kpi-mark b {
  display: none !important;
  content: none !important;
}

.kpi-icon.tica-kpi-mark.tica-brass-icon {
  background-image: url('./assets/tica-brass-approved.png') !important;
  background-size: contain !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}


/* TICS retained styling block. */
body.is-authenticated[data-route="owner-control-room"] .sidebar::after {
  content: "OWNER MANAGEMENT SIDEBAR";
  display: block;
  margin: 14px 16px 0;
  padding: 10px 12px;
  border: 1px solid rgba(216,161,58,.32);
  border-radius: 12px;
  color: var(--gold-2);
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .16em;
  text-align: center;
  background: rgba(216,161,58,.06);
}


/* TICS retained styling block. */
body.is-authenticated .nav-group .nav-item[data-route="dashboard"] {
  border-color: rgba(216,161,58,.42);
}


/* TICS retained styling block. */
.refined-chart .outline-ring {
  stroke-linecap: round !important;
}
.refined-chart .track {
  opacity: .88 !important;
}
.procurement-chart .seg,
.health-chart .health-seg {
  stroke-linejoin: round !important;
}


/* TICS retained styling block. */
body.is-authenticated[data-route="dashboard"] .owner-dashboard-hero {
  border-color: rgba(240,197,111,.62) !important;
  box-shadow:
    0 28px 80px rgba(0,0,0,.38),
    0 0 0 1px rgba(255,255,255,.04) inset,
    0 0 70px rgba(216,161,58,.08) inset !important;
}

body.is-authenticated[data-route="dashboard"] .owner-dashboard-hero h3 {
  max-width: 980px;
}

.owner-dashboard-strip article strong {
  color: var(--gold-2) !important;
}

.owner-dashboard-panels .owner-control-panel {
  min-height: 100%;
}

.owner-single-col {
  grid-template-columns: 1fr !important;
}

body.is-authenticated[data-route="dashboard"] .topbar .title-block h1::after {
  content: " / Owner Governance";
  display: block;
  color: var(--gold-2);
  font-size: clamp(.82rem, 1vw, 1rem);
  letter-spacing: .18em;
  text-transform: uppercase;
  margin-top: 6px;
  font-family: Inter, system-ui, sans-serif;
}


/* TICS retained styling block. */
.feature-todo-panel {
  border-color: rgba(240,197,111,.50) !important;
}

.feature-todo-progress {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 12px;
  margin: 18px 0 20px;
}

.feature-todo-progress div,
.feature-todo-progress button {
  border: 1px solid rgba(216,161,58,.20);
  border-radius: 14px;
  background: rgba(2,9,20,.38);
  padding: 14px;
}

.feature-todo-progress strong {
  display: block;
  color: var(--gold-2);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.8rem;
  line-height: 1;
}

.feature-todo-progress span {
  display: block;
  color: var(--muted);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-top: 6px;
}

.feature-todo-progress button {
  color: #fff4d8;
  font-weight: 850;
  cursor: pointer;
  align-self: stretch;
}

.feature-todo-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.feature-todo-group {
  border: 1px solid rgba(216,161,58,.16);
  border-radius: 16px;
  background: rgba(0,0,0,.12);
  padding: 14px;
}

.feature-todo-group h4 {
  margin: 0 0 10px;
  color: var(--gold-2);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
}

.feature-todo-list {
  display: grid;
  gap: 8px;
}

.feature-todo-item {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  align-items: start;
  padding: 10px;
  border: 1px solid rgba(216,161,58,.12);
  border-radius: 12px;
  background: rgba(2,9,20,.30);
  cursor: pointer;
}

.feature-todo-item input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.feature-todo-item .todo-box {
  width: 18px;
  height: 18px;
  border: 1px solid rgba(240,197,111,.56);
  border-radius: 5px;
  margin-top: 2px;
  display: grid;
  place-items: center;
  background: rgba(2,9,20,.62);
}

.feature-todo-item.is-complete .todo-box::after {
  content: "✓";
  color: #07101d;
  font-weight: 950;
}

.feature-todo-item.is-complete .todo-box {
  background: linear-gradient(180deg, #ffdc82, #d49a31);
  border-color: rgba(255,225,151,.92);
}

.feature-todo-item b {
  display: block;
  color: #fff4d8;
  font-size: .94rem;
}

.feature-todo-item small {
  display: block;
  color: var(--muted);
  line-height: 1.35;
  margin-top: 3px;
}

.feature-todo-item.is-complete b,
.feature-todo-item.is-complete small {
  opacity: .62;
  text-decoration: line-through;
  text-decoration-color: rgba(240,197,111,.55);
}

@media (max-width: 980px) {
  .feature-todo-progress,
  .feature-todo-groups {
    grid-template-columns: 1fr;
  }
}


/* TICS retained styling block. */
.connected-network-roadmap-card {
  border-color: rgba(112, 210, 213, .38) !important;
}
.connected-network-roadmap-card .owner-panel-icon {
  color: #70d2d5 !important;
  border-color: rgba(112, 210, 213, .55) !important;
  box-shadow: 0 0 20px rgba(112,210,213,.12), inset 0 0 14px rgba(0,0,0,.44) !important;
}


/* TICS retained styling block. */
.connected-network-todo-card,
.connected-network-roadmap-card {
  border-color: rgba(112,210,213,.44) !important;
}

.todo-check-row {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  align-items: start;
  margin-top: 16px;
  padding: 14px;
  border: 1px solid rgba(216,161,58,.18);
  border-radius: 14px;
  background: rgba(2,9,20,.38);
}

.todo-check-row input {
  margin-top: 3px;
  accent-color: #d8a13a;
}

.todo-check-row strong {
  display: block;
  color: #fff4d8;
}

.todo-check-row em {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-style: normal;
  line-height: 1.4;
}


/* TICS retained styling block. */
.readiness-hero {
  border-color: rgba(227, 184, 101, 0.42);
}
.readiness-strip article strong {
  letter-spacing: -0.02em;
}
.readiness-readiness-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  grid-column: 1 / -1;
}
.readiness-risk-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}
.readiness-risk-grid div {
  border: 1px solid rgba(227, 184, 101, 0.22);
  background: rgba(8, 22, 42, 0.66);
  border-radius: 18px;
  padding: 14px;
}
.readiness-risk-grid strong,
.readiness-risk-grid span {
  display: block;
}
.readiness-risk-grid strong {
  color: var(--gold, #e7bd69);
  margin-bottom: 5px;
}
.readiness-risk-grid span {
  color: rgba(232, 239, 250, 0.72);
  font-size: 0.88rem;
}
.readiness-closeout-panel {
  box-shadow: 0 20px 70px rgba(19, 44, 77, 0.22);
}
@media (max-width: 980px) {
  .readiness-readiness-board,
  .readiness-risk-grid {
    grid-template-columns: 1fr;
  }
}


/* TICS retained styling block. */
.source-lock-hero { border-color: rgba(240, 197, 111, .42); }
.source-lock-board .owner-check-list li span { text-align: right; }


/* TICS retained styling block. */
body.is-authenticated[data-route="dashboard"] .mock-procurement-card.command-dashboard-card,
body.is-authenticated[data-route="dashboard"] .mock-health-card.command-dashboard-card,
body.is-authenticated[data-route="operational-preview"] .mock-procurement-card.command-dashboard-card,
body.is-authenticated[data-route="operational-preview"] .mock-health-card.command-dashboard-card {
  grid-column: span 6;
  padding: 24px;
  min-height: 520px;
  border-radius: 18px;
  border-color: rgba(227,184,101,.55);
  background:
    linear-gradient(180deg, rgba(8,29,50,.94), rgba(3,13,27,.98)),
    radial-gradient(circle at 30% 0%, rgba(112,183,255,.10), transparent 26rem);
  box-shadow:
    0 26px 70px rgba(0,0,0,.34),
    inset 0 0 0 1px rgba(255,255,255,.025),
    inset 0 18px 44px rgba(112,183,255,.035);
}

.command-dashboard-card::after {
  content: "";
  position: absolute;
  left: 22px;
  right: 22px;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,220,143,.72), transparent);
  opacity: .75;
  pointer-events: none;
}

.command-card-head {
  display: grid;
  grid-template-columns: 46px 1fr auto;
  align-items: center;
  margin-bottom: 16px;
}

.command-card-head h3 {
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: clamp(1.15rem, 1.9vw, 1.65rem);
  color: #ffd98a;
  text-shadow: 0 0 18px rgba(216,161,58,.16);
}

.command-card-head button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #ffd98a;
  font-size: .9rem;
  border: 0;
  background: transparent;
  text-transform: none;
}

.command-card-head button b {
  font-size: 1.25rem;
  line-height: 1;
}

.command-card-icon,
.command-footer-icon,
.command-kpi-icon,
.health-shield {
  display: grid;
  place-items: center;
  color: #ffd98a;
  border: 1px solid rgba(227,184,101,.50);
  background: rgba(3,13,27,.56);
  box-shadow: 0 0 18px rgba(216,161,58,.08), inset 0 0 18px rgba(0,0,0,.26);
}

.command-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  font-size: 1.1rem;
}

.command-kpi-strip {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 0;
  border: 1px solid rgba(112,183,255,.20);
  background:
    linear-gradient(180deg, rgba(10,36,62,.72), rgba(4,17,33,.62)),
    radial-gradient(circle at 10% 0%, rgba(112,183,255,.10), transparent 18rem);
  border-radius: 14px;
  margin-bottom: 18px;
  overflow: hidden;
}

.procurement-kpi-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.inventory-health-strip {
  grid-template-columns: minmax(0, 1.35fr) minmax(210px, .75fr);
  align-items: stretch;
}

.command-kpi-strip article {
  min-width: 0;
  padding: 18px 20px;
  display: grid;
  grid-template-columns: 44px 1fr;
  column-gap: 14px;
  align-items: center;
  border-right: 1px solid rgba(227,184,101,.18);
}

.command-kpi-strip article:last-child {
  border-right: 0;
}

.command-kpi-strip p {
  margin: 0 0 5px;
  color: #b9c8d7;
  text-transform: uppercase;
  letter-spacing: .10em;
  font-size: .74rem;
  font-weight: 800;
}

.command-kpi-strip strong {
  display: block;
  color: #fff6df;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.65rem, 2.3vw, 2.35rem);
  line-height: 1;
}

.command-kpi-strip em {
  display: block;
  grid-column: 2;
  margin-top: 6px;
  color: #aebdcc;
  font-style: normal;
  font-size: .82rem;
}

.command-kpi-icon {
  grid-row: span 3;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  font-size: 1.15rem;
}

.command-kpi-icon.blue { color: #62b8ff; border-color: rgba(98,184,255,.45); }
.command-kpi-icon.gold { color: #ffd15d; border-color: rgba(255,209,93,.46); }
.command-kpi-icon.green { color: #82da73; border-color: rgba(130,218,115,.46); }

.inventory-main-kpi {
  grid-template-columns: 76px 1fr !important;
  gap: 18px !important;
}

.inventory-main-kpi .health-shield {
  grid-row: span 2;
  width: 68px;
  height: 68px;
  border-radius: 18px;
  color: #ffd98a;
  font-size: 2rem;
}

.inventory-main-kpi strong {
  font-size: clamp(2.3rem, 4.2vw, 4rem);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 950;
  letter-spacing: -.04em;
}

.inventory-main-kpi p {
  grid-column: 2;
  margin-top: -12px;
}

.inventory-health-status {
  align-content: center;
  grid-template-columns: 1fr !important;
}

.healthy-badge {
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  color: #83dc76;
  border: 1px solid rgba(131,220,118,.42);
  border-radius: 999px;
  background: rgba(31,82,42,.18);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.inventory-health-status em {
  grid-column: auto;
  color: #b8c6d4;
  line-height: 1.35;
  max-width: 190px;
}

.command-table {
  position: relative;
  z-index: 2;
  border: 1px solid rgba(112,183,255,.16);
  background: rgba(4,16,30,.44);
  border-radius: 12px;
  overflow: hidden;
}

.command-table-head,
.command-row {
  display: grid;
  align-items: center;
  min-width: 0;
}

.command-procurement-table .command-table-head,
.command-procurement-table .command-row {
  grid-template-columns: minmax(135px, 1.3fr) minmax(58px, .45fr) minmax(90px, .65fr) minmax(110px, .80fr);
}

.command-health-table .command-table-head,
.command-health-table .command-row {
  grid-template-columns: minmax(145px, 1.3fr) minmax(90px, .80fr) minmax(92px, .70fr) minmax(120px, .90fr);
}

.command-table-head {
  min-height: 42px;
  padding: 0 18px;
  color: #e0bc73;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .72rem;
  font-weight: 900;
  border-bottom: 1px solid rgba(227,184,101,.16);
}

.command-row {
  min-height: 52px;
  padding: 0 18px;
  border-bottom: 1px solid rgba(112,183,255,.12);
  color: #eef5fc;
}

.command-row:last-child { border-bottom: 0; }

.command-row span {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-weight: 750;
}

.command-row span i {
  width: 11px;
  height: 11px;
  flex: 0 0 auto;
  border-radius: 50%;
  box-shadow: 0 0 12px currentColor;
}

.command-row strong,
.command-row b {
  color: #fff6df;
  font-size: .95rem;
  font-weight: 900;
}

.command-row b { color: #ffd98a; }

.bar {
  display: block;
  width: 100%;
  height: 9px;
  border-radius: 999px;
  background: rgba(169,190,211,.10);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.035);
}

.bar small {
  display: block;
  height: 100%;
  border-radius: inherit;
  min-width: 3px;
  box-shadow: 0 0 12px currentColor;
}

.bar.blue small { background:#62b8ff; color:#62b8ff; }
.bar.gold small { background:#ffd15d; color:#ffd15d; }
.bar.green small { background:#82da73; color:#82da73; }
.bar.purple small { background:#b967dd; color:#b967dd; }
.bar.teal small { background:#70d2d5; color:#70d2d5; }
.bar.orange small { background:#ff9a34; color:#ff9a34; }
.bar.red small { background:#ff5d5d; color:#ff5d5d; }

.command-action-strip {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 0;
  margin-top: 16px;
  border: 1px solid rgba(227,184,101,.22);
  background: rgba(4,18,34,.54);
  border-radius: 14px;
  overflow: hidden;
}

.procurement-summary-strip,
.inventory-action-strip {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.command-action-strip > div {
  display: grid;
  grid-template-columns: 44px 1fr;
  column-gap: 14px;
  align-items: center;
  padding: 17px 20px;
  border-right: 1px solid rgba(227,184,101,.18);
}

.command-action-strip > div:last-child { border-right: 0; }

.command-footer-icon {
  grid-row: span 2;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  font-size: 1.05rem;
}

.command-action-strip p {
  margin: 0 0 5px;
  color: #e0bc73;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 900;
  font-size: .72rem;
}

.command-action-strip strong {
  color: #fff6df;
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  line-height: 1.15;
}

.command-action-strip strong b {
  color: #ffd98a;
  font-size: 1.2rem;
}

@media (max-width: 1320px) {
  body.is-authenticated[data-route="dashboard"] .mock-procurement-card.command-dashboard-card,
  body.is-authenticated[data-route="dashboard"] .mock-health-card.command-dashboard-card,
  body.is-authenticated[data-route="operational-preview"] .mock-procurement-card.command-dashboard-card,
  body.is-authenticated[data-route="operational-preview"] .mock-health-card.command-dashboard-card {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .procurement-kpi-strip,
  .inventory-health-strip,
  .procurement-summary-strip,
  .inventory-action-strip,
  .command-procurement-table .command-table-head,
  .command-procurement-table .command-row,
  .command-health-table .command-table-head,
  .command-health-table .command-row {
    grid-template-columns: 1fr;
  }
  .command-row,
  .command-table-head {
    gap: 8px;
    padding: 14px 16px;
  }
  .command-action-strip > div,
  .command-kpi-strip article {
    border-right: 0;
    border-bottom: 1px solid rgba(227,184,101,.16);
  }
  .command-action-strip > div:last-child,
  .command-kpi-strip article:last-child {
    border-bottom: 0;
  }
}


/* TICS retained styling block. */
body.is-authenticated[data-route="dashboard"] .app-shell,
body.is-authenticated[data-route="operational-preview"] .app-shell {
  grid-template-columns: 240px 1fr !important;
}

body.is-authenticated[data-route="dashboard"] .sidebar,
body.is-authenticated[data-route="operational-preview"] .sidebar {
  padding: 16px 12px !important;
}

body.is-authenticated[data-route="dashboard"] .side-brand,
body.is-authenticated[data-route="operational-preview"] .side-brand {
  display: grid !important;
  grid-template-columns: 92px 1fr !important;
  align-items: center !important;
  justify-items: start !important;
  text-align: left !important;
  gap: 12px !important;
  padding: 2px 6px 12px !important;
}

body.is-authenticated[data-route="dashboard"] .side-brand .brand-logo-wrap,
body.is-authenticated[data-route="operational-preview"] .side-brand .brand-logo-wrap {
  width: 92px !important;
  height: 92px !important;
}

body.is-authenticated[data-route="dashboard"] .side-brand strong,
body.is-authenticated[data-route="operational-preview"] .side-brand strong {
  display: block !important;
  font-size: 1.1rem !important;
  letter-spacing: .06em !important;
}

body.is-authenticated[data-route="dashboard"] .side-brand span,
body.is-authenticated[data-route="operational-preview"] .side-brand span {
  display: block !important;
  font-size: .74rem !important;
}

body.is-authenticated[data-route="dashboard"] .nav-list,
body.is-authenticated[data-route="operational-preview"] .nav-list {
  gap: 4px !important;
}

body.is-authenticated[data-route="dashboard"] .nav-group,
body.is-authenticated[data-route="operational-preview"] .nav-group {
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
}

body.is-authenticated[data-route="dashboard"] .nav-group:not(:last-child),
body.is-authenticated[data-route="operational-preview"] .nav-group:not(:last-child) {
  border-bottom: 1px solid rgba(216,161,58,.16) !important;
  margin-bottom: 4px !important;
  padding-bottom: 6px !important;
}

body.is-authenticated[data-route="dashboard"] .nav-group-items,
body.is-authenticated[data-route="operational-preview"] .nav-group-items {
  gap: 6px !important;
}

body.is-authenticated[data-route="dashboard"] .nav-item,
body.is-authenticated[data-route="operational-preview"] .nav-item {
  padding: 10px 12px !important;
  font-size: .90rem !important;
}

body.is-authenticated[data-route="dashboard"] .workspace,
body.is-authenticated[data-route="operational-preview"] .workspace {
  padding: 0 24px 20px !important;
}

body.is-authenticated[data-route="dashboard"] .topbar,
body.is-authenticated[data-route="operational-preview"] .topbar {
  margin: 0 -24px 18px !important;
  padding: 16px 26px !important;
  grid-template-columns: minmax(240px, .9fr) minmax(320px, 1fr) auto !important;
  gap: 18px !important;
}

body.is-authenticated[data-route="dashboard"] #pageEyebrow,
body.is-authenticated[data-route="operational-preview"] #pageEyebrow {
  margin: 0 0 4px !important;
  font-size: .72rem !important;
  letter-spacing: .34em !important;
}

body.is-authenticated[data-route="dashboard"] #pageTitle,
body.is-authenticated[data-route="operational-preview"] #pageTitle {
  margin: 0 !important;
  font-size: clamp(1.55rem, 2vw, 1.95rem) !important;
  line-height: 1.05 !important;
}

body.is-authenticated[data-route="dashboard"] .topbar-motto,
body.is-authenticated[data-route="operational-preview"] .topbar-motto {
  font-size: .68rem !important;
  letter-spacing: .42em !important;
}

body.is-authenticated[data-route="dashboard"] .topbar-search,
body.is-authenticated[data-route="operational-preview"] .topbar-search {
  width: min(360px, 100%) !important;
}

body.is-authenticated[data-route="dashboard"] .content-grid.dashboard-mockup-grid,
body.is-authenticated[data-route="operational-preview"] .content-grid.dashboard-mockup-grid {
  gap: 16px !important;
  max-width: 1680px !important;
}

body.is-authenticated[data-route="dashboard"] .mock-dashboard-hero,
body.is-authenticated[data-route="operational-preview"] .mock-dashboard-hero {
  grid-column: span 9 !important;
  min-height: 0 !important;
  padding: 26px 28px 22px !important;
}

body.is-authenticated[data-route="dashboard"] .hero-copy h3,
body.is-authenticated[data-route="operational-preview"] .hero-copy h3 {
  font-size: clamp(2.1rem, 3vw, 2.95rem) !important;
}

body.is-authenticated[data-route="dashboard"] .hero-copy p,
body.is-authenticated[data-route="operational-preview"] .hero-copy p {
  max-width: 720px !important;
}

body.is-authenticated[data-route="dashboard"] .hero-meta,
body.is-authenticated[data-route="operational-preview"] .hero-meta {
  gap: 14px !important;
  padding-top: 18px !important;
  margin-top: 18px !important;
}

body.is-authenticated[data-route="dashboard"] .tica-command-panel,
body.is-authenticated[data-route="operational-preview"] .tica-command-panel {
  grid-column: span 3 !important;
  grid-row: span 1 !important;
  align-self: start !important;
  padding: 18px 18px 16px !important;
  gap: 10px !important;
}

body.is-authenticated[data-route="dashboard"] .tica-command-panel button,
body.is-authenticated[data-route="operational-preview"] .tica-command-panel button {
  height: 46px !important;
}

body.is-authenticated[data-route="dashboard"] .mock-kpi-strip,
body.is-authenticated[data-route="operational-preview"] .mock-kpi-strip {
  grid-column: span 9 !important;
  gap: 12px !important;
}

body.is-authenticated[data-route="dashboard"] .mock-kpi-card,
body.is-authenticated[data-route="operational-preview"] .mock-kpi-card {
  min-height: 154px !important;
  padding: 18px 14px !important;
}

body.is-authenticated[data-route="dashboard"] .mock-activity-card,
body.is-authenticated[data-route="operational-preview"] .mock-activity-card {
  grid-column: span 3 !important;
  grid-row: span 2 !important;
  padding: 18px 18px 12px !important;
}

body.is-authenticated[data-route="dashboard"] .activity-list div,
body.is-authenticated[data-route="operational-preview"] .activity-list div {
  grid-template-columns: 30px 1fr auto !important;
}

body.is-authenticated[data-route="dashboard"] .mock-procurement-card,
body.is-authenticated[data-route="operational-preview"] .mock-procurement-card {
  grid-column: span 5 !important;
  padding: 20px !important;
}

body.is-authenticated[data-route="dashboard"] .mock-health-card,
body.is-authenticated[data-route="operational-preview"] .mock-health-card {
  grid-column: span 4 !important;
  padding: 20px !important;
}

body.is-authenticated[data-route="dashboard"] .mock-assets-card,
body.is-authenticated[data-route="operational-preview"] .mock-assets-card {
  grid-column: 1 / -1 !important;
  padding: 18px 20px !important;
}

@media (max-width: 1320px) {
  body.is-authenticated[data-route="dashboard"] .app-shell,
  body.is-authenticated[data-route="operational-preview"] .app-shell {
    grid-template-columns: 220px 1fr !important;
  }
  body.is-authenticated[data-route="dashboard"] .mock-dashboard-hero,
  body.is-authenticated[data-route="dashboard"] .tica-command-panel,
  body.is-authenticated[data-route="dashboard"] .mock-kpi-strip,
  body.is-authenticated[data-route="dashboard"] .mock-activity-card,
  body.is-authenticated[data-route="dashboard"] .mock-procurement-card,
  body.is-authenticated[data-route="dashboard"] .mock-health-card,
  body.is-authenticated[data-route="dashboard"] .mock-assets-card,
  body.is-authenticated[data-route="operational-preview"] .mock-dashboard-hero,
  body.is-authenticated[data-route="operational-preview"] .tica-command-panel,
  body.is-authenticated[data-route="operational-preview"] .mock-kpi-strip,
  body.is-authenticated[data-route="operational-preview"] .mock-activity-card,
  body.is-authenticated[data-route="operational-preview"] .mock-procurement-card,
  body.is-authenticated[data-route="operational-preview"] .mock-health-card,
  body.is-authenticated[data-route="operational-preview"] .mock-assets-card {
    grid-column: 1 / -1 !important;
    grid-row: auto !important;
  }
}


/* TICS retained styling block. */
body.is-authenticated[data-route="dashboard"] .sidebar,
body.is-authenticated[data-route="operational-preview"] .sidebar {
  gap: 10px !important;
}

body.is-authenticated[data-route="dashboard"] .nav-list,
body.is-authenticated[data-route="operational-preview"] .nav-list {
  flex: 1 1 auto !important;
  overflow-y: auto !important;
  padding-right: 2px !important;
}

body.is-authenticated[data-route="dashboard"] .nav-group,
body.is-authenticated[data-route="operational-preview"] .nav-group {
  border: 1px solid rgba(216,161,58,.18) !important;
  border-radius: 12px !important;
  background: rgba(255,255,255,.025) !important;
  padding: 0 !important;
  margin: 0 0 6px !important;
}

body.is-authenticated[data-route="dashboard"] .nav-group:not(:last-child),
body.is-authenticated[data-route="operational-preview"] .nav-group:not(:last-child) {
  border-bottom: 1px solid rgba(216,161,58,.18) !important;
  padding-bottom: 0 !important;
}

body.is-authenticated[data-route="dashboard"] .nav-group summary,
body.is-authenticated[data-route="operational-preview"] .nav-group summary {
  display: flex !important;
  align-items: center !important;
  padding: 10px 12px !important;
  font-size: .78rem !important;
  font-weight: 900 !important;
  letter-spacing: .18em !important;
  text-transform: uppercase !important;
  color: var(--gold-2) !important;
}

body.is-authenticated[data-route="dashboard"] .nav-group summary small,
body.is-authenticated[data-route="operational-preview"] .nav-group summary small {
  font-size: .68rem !important;
  color: #d6dce3 !important;
  border-color: rgba(216,161,58,.25) !important;
}

body.is-authenticated[data-route="dashboard"] .nav-group-items,
body.is-authenticated[data-route="operational-preview"] .nav-group-items {
  padding: 0 8px 10px !important;
  gap: 6px !important;
}

body.is-authenticated[data-route="dashboard"] .nav-item,
body.is-authenticated[data-route="operational-preview"] .nav-item {
  padding: 10px 12px !important;
  font-size: .89rem !important;
  font-weight: 800 !important;
  line-height: 1.15 !important;
}

body.is-authenticated[data-route="dashboard"] .topbar,
body.is-authenticated[data-route="operational-preview"] .topbar {
  grid-template-columns: minmax(300px, .95fr) minmax(320px, 1fr) auto !important;
}

body.is-authenticated[data-route="dashboard"] .topbar-title,
body.is-authenticated[data-route="operational-preview"] .topbar-title {
  align-items: flex-start !important;
  gap: 14px !important;
}

body.is-authenticated[data-route="dashboard"] #pageTitle,
body.is-authenticated[data-route="operational-preview"] #pageTitle {
  font-size: clamp(1.7rem, 2.4vw, 2.25rem) !important;
  line-height: 1.02 !important;
  letter-spacing: -.02em !important;
}

body.is-authenticated[data-route="dashboard"] .topbar .title-block h1::after,
body.is-authenticated[data-route="operational-preview"] .topbar .title-block h1::after {
  font-size: .84rem !important;
}

body.is-authenticated[data-route="dashboard"] .topbar-search,
body.is-authenticated[data-route="operational-preview"] .topbar-search {
  width: min(340px, 100%) !important;
}

body.is-authenticated[data-route="dashboard"] .mock-kpi-card p,
body.is-authenticated[data-route="operational-preview"] .mock-kpi-card p {
  font-size: .68rem !important;
  letter-spacing: .18em !important;
}

body.is-authenticated[data-route="dashboard"] .mock-kpi-card strong,
body.is-authenticated[data-route="operational-preview"] .mock-kpi-card strong {
  font-size: clamp(1.4rem, 1.8vw, 1.8rem) !important;
}

body.is-authenticated[data-route="dashboard"] .mock-kpi-card em,
body.is-authenticated[data-route="operational-preview"] .mock-kpi-card em {
  font-size: .78rem !important;
}

body.is-authenticated[data-route="dashboard"] .mock-card-head h3,
body.is-authenticated[data-route="dashboard"] .tica-panel-head h3,
body.is-authenticated[data-route="operational-preview"] .mock-card-head h3,
body.is-authenticated[data-route="operational-preview"] .tica-panel-head h3 {
  font-size: clamp(1.22rem, 1.55vw, 1.55rem) !important;
  line-height: 1.1 !important;
}

body.is-authenticated[data-route="dashboard"] .command-card-head h3,
body.is-authenticated[data-route="operational-preview"] .command-card-head h3 {
  font-size: clamp(1.2rem, 1.7vw, 1.65rem) !important;
  letter-spacing: .04em !important;
}

body.is-authenticated[data-route="dashboard"] .command-table-head,
body.is-authenticated[data-route="operational-preview"] .command-table-head {
  font-size: .72rem !important;
  letter-spacing: .14em !important;
}

body.is-authenticated[data-route="dashboard"] .command-row,
body.is-authenticated[data-route="operational-preview"] .command-row {
  font-size: .96rem !important;
}

body.is-authenticated[data-route="dashboard"] .command-row strong,
body.is-authenticated[data-route="dashboard"] .command-row b,
body.is-authenticated[data-route="operational-preview"] .command-row strong,
body.is-authenticated[data-route="operational-preview"] .command-row b {
  font-size: 1rem !important;
}

body.is-authenticated[data-route="dashboard"] .inventory-main-kpi strong,
body.is-authenticated[data-route="operational-preview"] .inventory-main-kpi strong {
  font-size: clamp(2.6rem, 4vw, 3.15rem) !important;
}

body.is-authenticated[data-route="dashboard"] .inventory-main-kpi p,
body.is-authenticated[data-route="operational-preview"] .inventory-main-kpi p,
body.is-authenticated[data-route="dashboard"] .command-kpi-strip article p,
body.is-authenticated[data-route="operational-preview"] .command-kpi-strip article p {
  font-size: .74rem !important;
  letter-spacing: .16em !important;
}

body.is-authenticated[data-route="dashboard"] .command-kpi-strip article strong,
body.is-authenticated[data-route="operational-preview"] .command-kpi-strip article strong {
  font-size: clamp(1.75rem, 2.2vw, 2.2rem) !important;
  line-height: 1 !important;
}

body.is-authenticated[data-route="dashboard"] .activity-list strong,
body.is-authenticated[data-route="operational-preview"] .activity-list strong {
  font-size: .96rem !important;
  line-height: 1.2 !important;
}

body.is-authenticated[data-route="dashboard"] .activity-list small,
body.is-authenticated[data-route="operational-preview"] .activity-list small {
  font-size: .82rem !important;
  line-height: 1.35 !important;
}

body.is-authenticated[data-route="dashboard"] .activity-list em,
body.is-authenticated[data-route="operational-preview"] .activity-list em {
  font-size: .76rem !important;
  white-space: nowrap !important;
}

body.is-authenticated[data-route="dashboard"] .side-status strong,
body.is-authenticated[data-route="operational-preview"] .side-status strong {
  font-size: .96rem !important;
}

body.is-authenticated[data-route="dashboard"] .side-status span,
body.is-authenticated[data-route="operational-preview"] .side-status span,
body.is-authenticated[data-route="dashboard"] #logoutBtn,
body.is-authenticated[data-route="operational-preview"] #logoutBtn {
  font-size: .88rem !important;
}


/* TICS retained styling block. */
.access-scoped-hero .access-restriction-note {
  margin-top: 10px;
  color: #d6dce4;
  font-size: .92rem;
  line-height: 1.45;
}

.access-scoped-hero .access-restriction-note strong {
  color: var(--gold-2);
}

.access-hero-meta strong {
  line-height: 1.2;
}

.access-matrix-table {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.access-matrix-row {
  display: grid;
  grid-template-columns: minmax(160px, .75fr) minmax(150px, .7fr) minmax(280px, 1.35fr) minmax(280px, 1.4fr);
  gap: 14px;
  align-items: center;
  border: 1px solid rgba(216,161,58,.18);
  border-radius: 12px;
  padding: 12px 14px;
  background: rgba(2,9,20,.36);
}

.access-matrix-row strong {
  color: #fff4d8;
}

.access-matrix-row span {
  color: var(--gold-2);
  font-weight: 900;
}

.access-matrix-row em {
  color: #dbe4ec;
  font-style: normal;
}

.access-matrix-row small {
  color: var(--muted);
  line-height: 1.35;
}

@media (max-width: 1100px) {
  .access-matrix-row {
    grid-template-columns: 1fr;
  }
}


/* TICS retained styling block. */
body.is-authenticated[data-route="dashboard"] .nav-list,
body.is-authenticated[data-route="operational-preview"] .nav-list {
  display: flex !important;
  flex-direction: column !important;
  align-content: stretch !important;
  gap: 8px !important;
}

body.is-authenticated[data-route="dashboard"] .nav-group,
body.is-authenticated[data-route="operational-preview"] .nav-group {
  flex: 0 0 auto !important;
  align-self: stretch !important;
  height: auto !important;
  min-height: 0 !important;
  overflow: hidden !important;
  margin: 0 !important;
}

body.is-authenticated[data-route="dashboard"] .nav-group summary,
body.is-authenticated[data-route="operational-preview"] .nav-group summary {
  min-height: 48px !important;
  cursor: pointer !important;
}

body.is-authenticated[data-route="dashboard"] .nav-group:not([open]),
body.is-authenticated[data-route="operational-preview"] .nav-group:not([open]) {
  padding-bottom: 0 !important;
}

body.is-authenticated[data-route="dashboard"] .nav-group:not([open]) .nav-group-items,
body.is-authenticated[data-route="operational-preview"] .nav-group:not([open]) .nav-group-items {
  display: none !important;
}

body.is-authenticated[data-route="dashboard"] .nav-group[open] .nav-group-items,
body.is-authenticated[data-route="operational-preview"] .nav-group[open] .nav-group-items {
  display: grid !important;
}

body.is-authenticated[data-route="dashboard"] .nav-group[open] summary,
body.is-authenticated[data-route="operational-preview"] .nav-group[open] summary {
  border-bottom: 1px solid rgba(216,161,58,.14) !important;
}

body.is-authenticated[data-route="dashboard"] .nav-group-items,
body.is-authenticated[data-route="operational-preview"] .nav-group-items {
  padding: 8px !important;
}


/* TICS retained styling block. */
.module-step-card {
  display: flex !important;
  flex-direction: column !important;
  gap: 14px !important;
}

.module-step-head {
  display: grid !important;
  grid-template-columns: 44px minmax(0, 1fr) !important;
  align-items: start !important;
  gap: 14px !important;
}

.module-step-head h3 {
  margin: 0 !important;
  padding-top: 2px !important;
  line-height: 1.08 !important;
  word-break: normal !important;
}

.module-step-badge {
  width: 38px !important;
  height: 38px !important;
  min-width: 38px !important;
  padding: 0 !important;
  display: grid !important;
  place-items: center !important;
  line-height: 1 !important;
  font-size: .78rem !important;
  border-radius: 999px !important;
}

.owner-panel-icon.tica-brass-icon,
.owner-panel-icon.tica-brain-icon {
  display: block !important;
  width: 46px !important;
  height: 46px !important;
  min-width: 46px !important;
  border-radius: 999px !important;
  color: transparent !important;
  font-size: 0 !important;
  background-image: url('./assets/tica-brass-approved.png') !important;
  background-size: contain !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-color: transparent !important;
  box-shadow: 0 0 0 1px rgba(240,197,111,.18) inset, 0 0 18px rgba(216,161,58,.12) !important;
}

.owner-panel-icon.tica-brass-icon::before,
.owner-panel-icon.tica-brass-icon::after,
.owner-panel-icon.tica-brain-icon::before,
.owner-panel-icon.tica-brain-icon::after {
  content: none !important;
  display: none !important;
}


/* TICS retained styling block. */
:root {
  --tics-font-primary: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --tics-font-display: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html,
body,
button,
input,
select,
textarea,
.app-shell,
.true-login-shell,
.sidebar,
.workspace,
.card,
.glass-card,
.mock-dashboard,
.owner-room,
.readiness-guide-card,
.readiness-feedback-card {
  font-family: var(--tics-font-primary) !important;
}

h1,
h2,
h3,
h4,
.true-login-heading h1,
.topbar-title h2,
.hero-copy h3,
.owner-room-hero h3,
.card h3,
.stat-card strong,
.chart-center strong,
.owner-alert-strip strong,
.readiness-guide-card h3,
.readiness-feedback-card h3,
.mock-kpi-card strong,
.tica-panel h3,
.side-brand strong {
  font-family: var(--tics-font-display) !important;
}

.true-login-heading h1,
.topbar-title h2,
.hero-copy h3,
.owner-room-hero h3,
.card h3,
.readiness-guide-card h3,
.readiness-feedback-card h3 {
  font-weight: 900 !important;
}

.stat-card strong,
.chart-center strong,
.owner-alert-strip strong,
.mock-kpi-card strong {
  font-weight: 850 !important;
}

/* v45.2.0 Inventory and Vendor Beta Operations additions */
.workflow-form,
.csv-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: end;
}
.form-field {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: .85rem;
}
.form-field input,
.form-field select,
.form-field textarea,
.csv-form textarea {
  width: 100%;
  border: 1px solid rgba(240,197,111,.24);
  border-radius: 14px;
  background: rgba(1, 8, 16, .58);
  color: var(--text);
  padding: 11px 12px;
  outline: none;
}
.form-field textarea,
.csv-form textarea { min-height: 96px; resize: vertical; }
.form-field-wide,
.csv-form textarea,
.csv-form .form-result { grid-column: 1 / -1; }
.workflow-form .primary-action,
.csv-form .primary-action,
.danger-action {
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: #07111f;
  font-weight: 800;
  padding: 12px 18px;
  box-shadow: 0 12px 30px rgba(216,161,58,.22);
}
.danger-action { background: linear-gradient(135deg, #ff8b8b, #ffd0d0); color: #240709; }
.form-result { min-height: 20px; color: var(--gold-2); font-size: .9rem; margin: 0; }
.table-wrap { width: 100%; overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.data-table th,
.data-table td { text-align: left; padding: 11px 10px; border-bottom: 1px solid rgba(240,197,111,.12); vertical-align: top; }
.data-table th { color: var(--gold-2); font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; }
.status-badge { display: inline-flex; align-items: center; border: 1px solid rgba(240,197,111,.25); border-radius: 999px; padding: 4px 9px; color: var(--gold-2); background: rgba(240,197,111,.07); font-size: .75rem; font-weight: 700; text-transform: uppercase; }
.tiny-btn { border: 1px solid rgba(240,197,111,.25); border-radius: 999px; background: rgba(4, 14, 24, .7); color: var(--text); padding: 6px 10px; margin: 2px; }
.empty-state { border: 1px dashed rgba(240,197,111,.25); border-radius: 18px; padding: 18px; color: var(--muted); background: rgba(3, 12, 22, .46); }
.check-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.check-pill { border: 1px solid rgba(240,197,111,.2); border-radius: 999px; padding: 8px 11px; color: var(--text); background: rgba(3, 12, 22, .54); }
.progress-rail { height: 12px; border-radius: 999px; overflow: hidden; background: rgba(255,255,255,.08); border: 1px solid rgba(240,197,111,.18); }
.progress-rail span { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-2)); }
.task-list { color: var(--muted); line-height: 1.8; }
.big-number { display: block; font-size: 2.4rem; color: var(--gold-2); margin: 8px 0; }
.json-preview { white-space: pre-wrap; border: 1px solid rgba(240,197,111,.16); border-radius: 18px; padding: 16px; background: rgba(0,0,0,.22); color: var(--muted); }
.danger-card { border-color: rgba(255, 123, 123, .35); }
@media (max-width: 900px) { .workflow-form, .csv-form { grid-template-columns: 1fr; } }

/* =========================================================
   v46.13.0 Procurement Standards and Tester Feedback polish layer
   ========================================================= */
:root {
  --product-bg-0: #020711;
  --product-bg-1: #061321;
  --product-panel: rgba(7, 18, 31, .86);
  --product-panel-2: rgba(11, 28, 45, .76);
  --product-line: rgba(240, 197, 111, .28);
  --product-line-bright: rgba(240, 197, 111, .58);
  --product-text: #fff6df;
  --product-muted: #b8c7d8;
  --product-cyan: #7fc7ff;
  --product-success: #9df08e;
  --product-radius-lg: 30px;
  --product-radius-md: 18px;
  --product-shadow: 0 28px 80px rgba(0, 0, 0, .38);
}

body {
  background:
    radial-gradient(circle at 14% 10%, rgba(216,161,58,.14), transparent 28rem),
    radial-gradient(circle at 90% 4%, rgba(93,161,255,.16), transparent 32rem),
    linear-gradient(145deg, var(--product-bg-0), var(--product-bg-1) 48%, #030912) !important;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 50% 0%, rgba(255,255,255,.08), transparent 34rem);
  opacity: .54;
  z-index: 0;
}

.product-login-card {
  width: min(560px, calc(100vw - 32px)) !important;
  border-color: rgba(240,197,111,.52) !important;
  box-shadow: 0 42px 140px rgba(0,0,0,.56), inset 0 0 0 1px rgba(255,255,255,.055) !important;
}

.true-login-heading h1 {
  max-width: 12ch;
  margin-left: auto;
  margin-right: auto;
}

.true-login-heading p {
  max-width: 46rem;
  margin-left: auto;
  margin-right: auto;
}

.true-field,
.form-field input,
.form-field select,
.form-field textarea,
.workflow-form input,
.workflow-form select,
.workflow-form textarea {
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 12px 30px rgba(0,0,0,.16);
}

.app-shell {
  grid-template-columns: 306px minmax(0, 1fr) !important;
  background: linear-gradient(180deg, rgba(255,255,255,.018), rgba(0,0,0,.04));
}

.sidebar {
  padding: 20px 16px !important;
  background:
    radial-gradient(circle at 50% 0%, rgba(240,197,111,.13), transparent 14rem),
    linear-gradient(180deg, rgba(3,12,22,.97), rgba(4,16,29,.97)) !important;
  border-right: 1px solid rgba(240,197,111,.30) !important;
  box-shadow: 18px 0 60px rgba(0,0,0,.24);
}

.side-brand {
  padding: 6px 4px 18px;
  border-bottom: 1px solid rgba(240,197,111,.18);
}

.side-brand .brand-logo-wrap {
  width: 76px;
  height: 76px;
  border: 1px solid rgba(240,197,111,.24);
  background: radial-gradient(circle, rgba(240,197,111,.10), rgba(3,12,22,.08) 64%);
}

.side-brand strong {
  font-size: 1.42rem !important;
  letter-spacing: .16em !important;
}

.side-brand span {
  color: #c6d6e8 !important;
}

.nav-list {
  gap: 10px !important;
}

.product-nav-group {
  border-color: rgba(240,197,111,.18) !important;
  background: linear-gradient(180deg, rgba(255,255,255,.044), rgba(255,255,255,.018)) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035);
}

.product-nav-group summary {
  color: #fff6df !important;
  letter-spacing: .025em;
}

.product-nav-group summary small {
  min-width: 30px;
  text-align: center;
  color: #06101f !important;
  background: linear-gradient(180deg,#f0c56f,#b47a20);
  border: 0 !important;
  font-weight: 950;
}

.nav-group-items {
  padding: 0 8px 10px !important;
}

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  color: #c4d2e4 !important;
  transition: transform .16s ease, background .16s ease, border-color .16s ease;
}

.nav-item::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-right: 10px;
  border-radius: 50%;
  background: rgba(240,197,111,.30);
  box-shadow: 0 0 0 4px rgba(240,197,111,.06);
  flex: 0 0 auto;
}

.nav-item span {
  flex: 1;
}

.nav-item.active {
  color: #fff7df !important;
  background: linear-gradient(90deg, rgba(216,161,58,.22), rgba(21,65,100,.16)) !important;
  border-color: rgba(240,197,111,.52) !important;
  box-shadow: 0 14px 34px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.06);
}

.nav-item.active::before {
  background: var(--product-success);
  box-shadow: 0 0 18px rgba(157,240,142,.52);
}

.nav-item:hover {
  transform: translateX(3px);
}

.side-status,
.session-pill,
.product-env-strip,
.status-badge {
  backdrop-filter: blur(18px);
}

.workspace {
  padding: clamp(20px, 2.4vw, 34px) !important;
}

.topbar {
  border: 1px solid rgba(240,197,111,.26) !important;
  border-radius: 24px !important;
  background:
    radial-gradient(circle at 14% 0%, rgba(240,197,111,.12), transparent 30%),
    linear-gradient(145deg, rgba(9,28,47,.94), rgba(2,10,19,.96)) !important;
  box-shadow: var(--product-shadow), inset 0 1px 0 rgba(255,255,255,.05) !important;
}

.product-env-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.product-env-strip span,
.product-env-strip em {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border: 1px solid rgba(240,197,111,.20);
  border-radius: 999px;
  color: #c5d5e7;
  font-size: .72rem;
  font-style: normal;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: rgba(255,255,255,.035);
}

.product-env-strip strong {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 12px;
  border-radius: 999px;
  color: #07101c;
  font-size: .72rem;
  font-weight: 950;
  letter-spacing: .10em;
  text-transform: uppercase;
  background: linear-gradient(180deg, #ffe198, #c28b2b);
  box-shadow: 0 10px 22px rgba(216,161,58,.16);
}

.content-grid {
  gap: 20px !important;
}

.card {
  border-color: rgba(240,197,111,.24) !important;
  background:
    radial-gradient(circle at 10% 0%, rgba(240,197,111,.10), transparent 30%),
    linear-gradient(145deg, rgba(10,30,49,.78), rgba(3,12,22,.80)) !important;
  box-shadow: 0 20px 56px rgba(0,0,0,.26), inset 0 1px 0 rgba(255,255,255,.045) !important;
}

.card:hover {
  border-color: rgba(240,197,111,.42) !important;
}

.product-hero-card {
  grid-column: 1 / -1 !important;
  min-height: 280px;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
  gap: 28px;
  align-items: center;
  overflow: hidden;
  border-color: rgba(240,197,111,.44) !important;
  background:
    radial-gradient(circle at 80% 50%, rgba(127,199,255,.16), transparent 22rem),
    radial-gradient(circle at 16% 0%, rgba(240,197,111,.18), transparent 28rem),
    linear-gradient(135deg, rgba(12,33,55,.94), rgba(2,10,19,.98)) !important;
}

.product-hero-card::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(240,197,111,.13);
  border-radius: 22px;
  pointer-events: none;
}

.product-hero-copy {
  position: relative;
  z-index: 1;
}

.product-hero-copy h3 {
  font-size: clamp(2.2rem, 4.4vw, 4.4rem);
  line-height: .94;
  letter-spacing: -.055em;
  max-width: 13ch;
  margin-bottom: 16px;
}

.product-hero-copy p:not(.eyebrow) {
  max-width: 70ch;
  font-size: 1.03rem;
  color: #cbd8e8;
}

.product-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.secondary-action,
.product-hero-actions button:not(.primary-action) {
  border: 1px solid rgba(240,197,111,.32);
  border-radius: 14px;
  color: #f8d98c;
  background: rgba(255,255,255,.035);
  padding: 12px 16px;
  font-weight: 950;
}

.product-hero-orbit {
  position: relative;
  width: min(360px, 100%);
  aspect-ratio: 1;
  margin: 0 auto;
  border-radius: 50%;
  border: 1px solid rgba(240,197,111,.30);
  background:
    radial-gradient(circle, rgba(240,197,111,.22), transparent 16%),
    radial-gradient(circle, rgba(127,199,255,.10), rgba(255,255,255,.02) 62%, transparent 63%);
  box-shadow: inset 0 0 50px rgba(127,199,255,.08), 0 30px 60px rgba(0,0,0,.22);
}

.product-hero-orbit::before,
.product-hero-orbit::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(240,197,111,.16);
}

.product-hero-orbit::before { inset: 16%; }
.product-hero-orbit::after { inset: 31%; border-color: rgba(127,199,255,.22); }

.product-hero-orbit span {
  position: absolute;
  display: grid;
  place-items: center;
  min-width: 90px;
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid rgba(240,197,111,.34);
  border-radius: 999px;
  color: #fff6df;
  background: rgba(2,10,19,.72);
  font-size: .75rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.product-hero-orbit span:nth-child(1) { top: 2%; left: 50%; transform: translateX(-50%); }
.product-hero-orbit span:nth-child(2) { top: 45%; right: -6%; }
.product-hero-orbit span:nth-child(3) { bottom: 3%; left: 50%; transform: translateX(-50%); }
.product-hero-orbit span:nth-child(4) { top: 45%; left: -8%; }

.product-status-rail {
  grid-column: 1 / -1 !important;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 14px !important;
  background: linear-gradient(90deg, rgba(255,255,255,.035), rgba(255,255,255,.018)) !important;
}

.product-status-rail div {
  min-height: 82px;
  padding: 14px;
  border: 1px solid rgba(240,197,111,.18);
  border-radius: 16px;
  background: rgba(2,10,19,.38);
}

.product-status-rail span {
  display: block;
  color: #9fb0c4;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-weight: 950;
}

.product-status-rail strong {
  display: block;
  margin-top: 8px;
  color: #fff6df;
  font-size: 1.05rem;
}

.product-stat {
  min-height: 170px;
}

.product-stat span {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  color: #b9cadc !important;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .72rem;
  font-weight: 950;
}

.product-stat strong {
  text-shadow: 0 10px 30px rgba(240,197,111,.10);
}

.table-wrap {
  border: 1px solid rgba(240,197,111,.18);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(2,10,19,.34);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th {
  color: #f0d28c;
  background: rgba(240,197,111,.08);
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.data-table th,
.data-table td {
  padding: 13px 14px;
  border-bottom: 1px solid rgba(240,197,111,.13);
  text-align: left;
  vertical-align: top;
}

.data-table tr:hover td {
  background: rgba(255,255,255,.025);
}

.workflow-form,
.form-grid {
  border: 1px solid rgba(240,197,111,.16);
  border-radius: 18px;
  padding: 16px;
  background: rgba(2,10,19,.30);
}

.form-field span {
  color: #f0d28c;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.primary-action,
.danger-action,
.true-login-button,
.login-form button,
.primary-btn {
  min-height: 46px;
  border-radius: 14px !important;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.empty-state {
  border: 1px dashed rgba(240,197,111,.34);
  border-radius: 18px;
  padding: 26px;
  color: #b9c8d8;
  background: rgba(2,10,19,.36);
}

.app-legal-footer {
  color: #92a5ba !important;
  background: rgba(2,10,19,.34) !important;
}

@media (max-width: 1180px) {
  .app-shell { grid-template-columns: 270px minmax(0, 1fr) !important; }
  .topbar { display: grid !important; gap: 16px !important; }
  .product-hero-card { grid-template-columns: 1fr; }
  .product-hero-orbit { width: min(300px, 100%); }
  .product-status-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .app-shell { display: block !important; height: auto !important; overflow: visible !important; }
  .sidebar { position: relative !important; height: auto !important; max-height: none !important; }
  .workspace { overflow: visible !important; }
  .product-status-rail { grid-template-columns: 1fr; }
  .product-hero-copy h3 { font-size: 2.35rem; }
  .product-hero-orbit { display: none; }
}

/* v46.13.0 — Procurement Standards and Tester Feedback Experience */
.tica-live-note {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(340px, calc(100vw - 44px));
  padding: 12px 14px;
  border: 1px solid rgba(226, 185, 88, 0.32);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(19, 25, 41, 0.94), rgba(42, 34, 18, 0.9));
  box-shadow: 0 18px 50px rgba(0,0,0,0.32), inset 0 1px 0 rgba(255,255,255,0.08);
  backdrop-filter: blur(18px);
  color: rgba(255,255,255,0.92);
}
.tica-live-note img { width: 42px; height: 42px; object-fit: contain; border-radius: 50%; filter: drop-shadow(0 8px 14px rgba(226,185,88,0.22)); }
.tica-live-note strong { display: block; font-size: 0.88rem; letter-spacing: 0.02em; }
.tica-live-note span { display: block; margin-top: 2px; font-size: 0.74rem; color: rgba(255,255,255,0.66); }
body:not(.is-authenticated) .tica-live-note { display: none; }

.tica-dock-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  border-color: rgba(226,185,88,0.34) !important;
  background: radial-gradient(circle at 8% 20%, rgba(226,185,88,0.16), transparent 30%), linear-gradient(135deg, rgba(11,18,32,0.88), rgba(26,35,55,0.92)) !important;
  position: relative;
  overflow: hidden;
}
.tica-dock-card::after {
  content: "";
  position: absolute;
  inset: auto -80px -120px auto;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(226,185,88,0.16), transparent 68%);
  pointer-events: none;
}
.tica-dock-avatar {
  width: 78px;
  height: 78px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, rgba(226,185,88,0.18), rgba(255,255,255,0.04));
  border: 1px solid rgba(226,185,88,0.24);
}
.tica-dock-avatar img { width: 64px; height: 64px; object-fit: contain; filter: drop-shadow(0 16px 18px rgba(0,0,0,0.24)); }
.tica-dock-copy h3 { margin: 0.2rem 0 0.35rem; }
.tica-dock-copy p:last-child { margin-bottom: 0; }
.tica-dock-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }

.tica-guidance-card {
  border-color: rgba(226,185,88,0.32) !important;
  background: linear-gradient(160deg, rgba(226,185,88,0.13), rgba(20,28,46,0.88)) !important;
}
.tica-card-head { display: flex; align-items: center; gap: 10px; color: rgba(226,185,88,0.95); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 800; }
.tica-card-head img { width: 32px; height: 32px; object-fit: contain; }
.tica-guidance-card small { color: rgba(255,255,255,0.62); line-height: 1.45; display: block; margin-top: 10px; }

.tica-command-panel {
  background: radial-gradient(circle at 14% 20%, rgba(226,185,88,0.20), transparent 32%), linear-gradient(145deg, rgba(11,18,32,0.94), rgba(26,37,60,0.92)) !important;
  border-color: rgba(226,185,88,0.34) !important;
}
.tica-command-hero { display: grid; grid-template-columns: 128px minmax(0,1fr); gap: 24px; align-items: center; }
.tica-command-hero img { width: 128px; height: 128px; object-fit: contain; border-radius: 30px; background: rgba(255,255,255,0.04); border: 1px solid rgba(226,185,88,0.24); padding: 10px; filter: drop-shadow(0 22px 28px rgba(0,0,0,0.3)); }
.tica-command-hero h3 { margin: 0.25rem 0 0.45rem; font-size: clamp(1.45rem, 2vw, 2.2rem); }
.tica-rule-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; margin-top: 22px; }
.tica-rule-grid div { padding: 14px; border-radius: 16px; background: rgba(255,255,255,0.055); border: 1px solid rgba(255,255,255,0.08); }
.tica-rule-grid span { display: block; color: rgba(226,185,88,0.94); text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.7rem; font-weight: 800; }
.tica-rule-grid strong { display: block; margin: 6px 0; color: rgba(255,255,255,0.94); }
.tica-rule-grid p { margin: 0; font-size: 0.82rem; color: rgba(255,255,255,0.66); }
.tica-list { margin: 0.7rem 0 0; padding-left: 1.1rem; color: rgba(255,255,255,0.75); }
.tica-list li { margin: 0.45rem 0; }
.tica-list.guarded li::marker { color: rgba(226,185,88,0.95); }
.tica-list.guided li::marker { color: rgba(120, 220, 170, 0.95); }

@media (max-width: 900px) {
  .tica-dock-card { grid-template-columns: 1fr; }
  .tica-dock-actions { justify-content: flex-start; }
  .tica-command-hero { grid-template-columns: 1fr; }
  .tica-rule-grid { grid-template-columns: 1fr; }
  .tica-live-note { position: static; margin: 16px; width: auto; }
}

/* v46.13.0 Procurement Standards and Tester Feedback: responsive finished-product login. */
body:not(.is-authenticated):has(.true-login-shell) {
  min-height: 100svh !important;
  height: auto !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
}

.true-login-shell.product-login-shell {
  min-height: 100svh !important;
  height: auto !important;
  padding: clamp(18px, 3.2vw, 46px) !important;
  display: grid !important;
  place-items: center !important;
  overflow: visible !important;
}

.true-login-card.product-login-card {
  width: min(1080px, calc(100vw - clamp(32px, 6vw, 96px))) !important;
  min-height: 0 !important;
  height: auto !important;
  max-height: none !important;
  display: grid !important;
  grid-template-columns: minmax(260px, .82fr) minmax(360px, 1fr) !important;
  grid-template-areas:
    "logo heading"
    "logo form"
    "logo secure"
    "logo note" !important;
  align-items: center !important;
  justify-items: stretch !important;
  column-gap: clamp(28px, 5vw, 70px) !important;
  row-gap: 16px !important;
  padding: clamp(46px, 6vw, 76px) clamp(42px, 6vw, 78px) clamp(34px, 5vw, 58px) !important;
  overflow: hidden !important;
}

.true-login-card.product-login-card::before {
  inset: clamp(18px, 2.6vw, 32px) !important;
}

.true-login-card.product-login-card .corner-line {
  width: clamp(62px, 7vw, 88px) !important;
  height: clamp(62px, 7vw, 88px) !important;
}

.true-login-card.product-login-card .true-login-version {
  top: 15px !important;
  letter-spacing: .26em !important;
}

.true-login-card.product-login-card .true-login-logo-frame {
  grid-area: logo !important;
  width: clamp(255px, 27vw, 360px) !important;
  max-width: 100% !important;
  margin: 0 auto !important;
  align-self: center !important;
}

.true-login-card.product-login-card .true-login-heading {
  grid-area: heading !important;
  width: 100% !important;
  text-align: left !important;
  align-self: end !important;
}

.true-login-card.product-login-card .true-login-heading h1 {
  font-size: clamp(2.55rem, 4.8vw, 4.45rem) !important;
  line-height: .92 !important;
  margin: 0 0 16px !important;
  max-width: 520px !important;
}

.true-login-card.product-login-card .true-login-heading p {
  max-width: 560px !important;
  font-size: clamp(.95rem, 1.2vw, 1.08rem) !important;
  line-height: 1.55 !important;
}

.true-login-card.product-login-card .true-login-form {
  grid-area: form !important;
  width: 100% !important;
  max-width: 520px !important;
  margin: 4px 0 0 !important;
  gap: 14px !important;
}

.true-login-card.product-login-card .true-field input {
  height: 56px !important;
}

.true-login-card.product-login-card .true-login-button {
  height: 58px !important;
  margin-top: 2px !important;
  width: 100% !important;
  transform: none !important;
}

.true-login-card.product-login-card .true-login-button:hover {
  transform: translateY(-1px) !important;
}

.true-login-card.product-login-card .true-error {
  min-height: 18px !important;
  margin: -3px 0 0 !important;
}

.true-login-card.product-login-card .true-secure-note {
  grid-area: secure !important;
  width: 100% !important;
  max-width: 520px !important;
  margin: 0 !important;
  justify-content: start !important;
}

.true-login-card.product-login-card .true-secure-note::before,
.true-login-card.product-login-card .true-secure-note::after {
  display: none !important;
}

.true-login-card.product-login-card .true-hold-note {
  grid-area: note !important;
  width: 100% !important;
  max-width: 520px !important;
  margin: 0 !important;
  padding: 13px 16px !important;
}

@media (max-width: 980px) {
  .true-login-card.product-login-card {
    width: min(620px, calc(100vw - 28px)) !important;
    grid-template-columns: 1fr !important;
    grid-template-areas:
      "logo"
      "heading"
      "form"
      "secure"
      "note" !important;
    justify-items: center !important;
    padding: 48px clamp(22px, 6vw, 48px) 30px !important;
    row-gap: 13px !important;
  }

  .true-login-card.product-login-card .true-login-logo-frame {
    width: clamp(180px, 35svh, 270px) !important;
  }

  .true-login-card.product-login-card .true-login-heading {
    text-align: center !important;
  }

  .true-login-card.product-login-card .true-login-heading h1 {
    max-width: none !important;
    font-size: clamp(2rem, 5svh, 3rem) !important;
    margin-bottom: 10px !important;
  }

  .true-login-card.product-login-card .true-login-heading p,
  .true-login-card.product-login-card .true-login-form,
  .true-login-card.product-login-card .true-secure-note,
  .true-login-card.product-login-card .true-hold-note {
    max-width: 520px !important;
  }

  .true-login-card.product-login-card .true-secure-note {
    justify-content: center !important;
  }
}

@media (max-height: 760px) and (min-width: 981px) {
  .true-login-shell.product-login-shell {
    padding-top: 14px !important;
    padding-bottom: 14px !important;
  }

  .true-login-card.product-login-card {
    padding-top: 42px !important;
    padding-bottom: 30px !important;
    row-gap: 11px !important;
  }

  .true-login-card.product-login-card .true-login-logo-frame {
    width: clamp(230px, 28vw, 310px) !important;
  }

  .true-login-card.product-login-card .true-login-heading h1 {
    font-size: clamp(2.3rem, 4.3vw, 3.75rem) !important;
    margin-bottom: 10px !important;
  }

  .true-login-card.product-login-card .true-field input {
    height: 50px !important;
  }

  .true-login-card.product-login-card .true-login-button {
    height: 52px !important;
  }

  .true-login-card.product-login-card .true-hold-note {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
  }
}

@media (max-width: 520px) {
  .true-login-shell.product-login-shell {
    padding: 10px !important;
  }

  .true-login-card.product-login-card {
    width: calc(100vw - 20px) !important;
    padding: 42px 18px 24px !important;
  }

  .true-login-card.product-login-card .true-login-logo-frame {
    width: 180px !important;
  }

  .true-login-card.product-login-card .true-login-heading h1 {
    font-size: 2rem !important;
  }

  .true-login-card.product-login-card .true-login-heading p {
    font-size: .9rem !important;
  }
}

/* v46.13.0 — Procurement Standards and Tester Feedback: TICA belongs in navigation, not as a floating popup. */
.tica-live-note {
  display: none !important;
}

.tica-sidebar-panel {
  margin: 12px 16px 14px;
  padding: 0;
}

.tica-sidebar-card {
  width: 100%;
  border: 1px solid rgba(226,185,88,0.34);
  border-radius: 18px;
  background: radial-gradient(circle at 18% 18%, rgba(226,185,88,0.18), transparent 34%), linear-gradient(145deg, rgba(12,20,34,0.96), rgba(25,31,45,0.94));
  color: rgba(255,255,255,0.92);
  padding: 11px 12px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  text-align: left;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 14px 28px rgba(0,0,0,0.18);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.tica-sidebar-card:hover,
.tica-sidebar-card.active {
  transform: translateY(-1px);
  border-color: rgba(255,211,117,0.72);
  background: radial-gradient(circle at 18% 18%, rgba(255,211,117,0.24), transparent 36%), linear-gradient(145deg, rgba(15,24,40,0.98), rgba(43,35,18,0.94));
}

.tica-sidebar-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(226,185,88,0.12);
  border: 1px solid rgba(226,185,88,0.26);
  overflow: hidden;
}

.tica-sidebar-icon img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  filter: drop-shadow(0 8px 10px rgba(0,0,0,0.28));
}

.tica-sidebar-copy strong {
  display: block;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255,214,132,0.96);
}

.tica-sidebar-copy small {
  display: block;
  margin-top: 3px;
  color: rgba(255,255,255,0.62);
  font-size: 0.72rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tica-sidebar-panel p {
  margin: 8px 2px 0;
  color: rgba(255,255,255,0.58);
  font-size: 0.72rem;
  line-height: 1.35;
}

/* Keep the detailed TICA guidance only on dashboards or the Ask TICA page, not as an unavoidable dock. */
.tica-dock-card {
  display: none !important;
}

@media (max-width: 760px) {
  .tica-sidebar-panel {
    margin: 12px 16px;
  }
}


/* v46.13.0 — Procurement Standards and Tester Feedback */
.product-hero-purpose {
  position: relative;
  width: min(420px, 100%);
  margin: 0 auto;
  padding: 18px;
  border: 1px solid rgba(240,197,111,.26);
  border-radius: 28px;
  background:
    radial-gradient(circle at 50% 18%, rgba(240,197,111,.18), transparent 28%),
    linear-gradient(145deg, rgba(6,28,45,.88), rgba(2,10,19,.82));
  box-shadow: inset 0 0 46px rgba(127,199,255,.08), 0 26px 70px rgba(0,0,0,.26);
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 16px;
  align-items: center;
  overflow: hidden;
}

.product-hero-purpose::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(240,197,111,.12);
  border-radius: 22px;
  pointer-events: none;
}

.product-hero-purpose::after {
  content: "";
  position: absolute;
  width: 230px;
  height: 230px;
  right: -90px;
  bottom: -115px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(127,199,255,.12), transparent 68%);
  pointer-events: none;
}

.purpose-logo-wrap {
  width: 132px;
  height: 132px;
  border: 1px solid rgba(240,197,111,.28);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(2,10,19,.48);
  box-shadow: 0 18px 42px rgba(0,0,0,.24), inset 0 0 30px rgba(240,197,111,.08);
  z-index: 1;
}

.purpose-logo-wrap img {
  width: 112px;
  height: 112px;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,.32));
}

.purpose-copy {
  z-index: 1;
}

.purpose-copy h4 {
  margin: 4px 0 8px;
  color: #fff8e8;
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  line-height: 1.05;
}

.purpose-copy p:not(.eyebrow) {
  margin: 0 0 14px;
  color: rgba(236,242,255,.78);
  font-weight: 650;
  line-height: 1.45;
}

.purpose-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.purpose-steps span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border: 1px solid rgba(240,197,111,.22);
  border-radius: 999px;
  background: rgba(255,255,255,.045);
  color: #fff6df;
  font-size: .76rem;
  font-weight: 900;
}

.purpose-steps strong {
  display: inline-grid;
  place-items: center;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: linear-gradient(180deg, #f8d98c, #d89b2a);
  color: #061221;
  font-size: .68rem;
}

@media (max-width: 980px) {
  .product-hero-purpose {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
  .purpose-steps { justify-content: center; }
}

/* v46.13.0 - RFQ/PO contact detail guidance */
.contact-guidance {
  border: 1px solid rgba(245, 193, 91, 0.25);
  background: rgba(245, 193, 91, 0.06);
  padding: 12px 14px;
  border-radius: 14px;
}
.contact-guidance span {
  color: var(--gold, #f5c15b);
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: .75rem;
  font-weight: 800;
}
.contact-guidance p {
  margin: 6px 0 0;
  color: rgba(238, 242, 247, 0.75);
  font-size: .9rem;
  line-height: 1.45;
}

/* v46.13.0 - Procurement document preview layouts */
.doc-actions {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  align-items: center;
}
.document-preview-card {
  overflow: hidden;
}
.proc-document {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(162, 178, 205, 0.45);
  border-radius: 22px;
  padding: 1.35rem;
  color: #102033;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.75), 0 18px 45px rgba(6, 12, 28, 0.18);
}
.proc-document.empty-doc {
  background: rgba(240, 245, 252, 0.7);
  border-style: dashed;
  color: var(--muted, #7b879a);
}
.doc-header {
  display: flex;
  gap: 1rem;
  align-items: center;
  border-bottom: 1px solid rgba(162, 178, 205, 0.45);
  padding-bottom: 1rem;
  margin-bottom: 1rem;
}
.doc-header img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  flex: 0 0 auto;
}
.doc-header h2 {
  margin: 0.1rem 0 0.25rem;
  color: #102033;
}
.doc-header p:not(.eyebrow) {
  margin: 0;
  color: #52657f;
}
.doc-meta-grid,
.doc-two-col,
.doc-total-grid {
  display: grid;
  gap: 0.85rem;
  margin: 1rem 0;
}
.doc-meta-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.doc-two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.doc-total-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.doc-meta-grid > div,
.doc-block,
.doc-total-grid > div {
  border: 1px solid rgba(162, 178, 205, 0.45);
  border-radius: 16px;
  background: rgba(246, 249, 253, 0.9);
  padding: 0.85rem;
}
.doc-meta-grid strong,
.doc-total-grid span {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #60718c;
}
.doc-meta-grid span,
.doc-total-grid strong {
  display: block;
  margin-top: 0.25rem;
  color: #102033;
}
.doc-block h4 {
  margin: 0 0 0.6rem;
  color: #102033;
}
.doc-block p {
  margin: 0.25rem 0;
  color: #2b3c54;
}
.doc-line-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 12px;
}
.doc-line-table th,
.doc-line-table td {
  border: 1px solid rgba(162, 178, 205, 0.45);
  padding: 0.6rem;
  text-align: left;
  vertical-align: top;
  color: #102033;
  font-size: 0.86rem;
}
.doc-line-table th {
  background: rgba(229, 236, 247, 0.95);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.contact-guidance p {
  margin: 0.2rem 0 0;
  color: var(--muted, #7b879a);
  font-size: 0.85rem;
}
@media (max-width: 860px) {
  .doc-meta-grid,
  .doc-two-col,
  .doc-total-grid {
    grid-template-columns: 1fr;
  }
  .doc-header {
    align-items: flex-start;
  }
}

/* v46.13.0 tester workflow hardening */
.csv-import-card .section-heading h3 {
  margin-bottom: 0.35rem;
}

.csv-upload-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(280px, 1.2fr);
  gap: 1rem;
  align-items: stretch;
}

.csv-import-card input[type="file"] {
  width: 100%;
  padding: 0.85rem;
  border: 1px dashed rgba(255, 211, 111, 0.45);
  border-radius: 14px;
  background: rgba(4, 20, 36, 0.82);
  color: var(--text, #f8fbff);
}

.csv-import-card textarea {
  min-height: 150px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.csv-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin: 0.35rem 0 0.85rem;
}

.csv-preview-target {
  grid-column: 1 / -1;
}

.csv-preview-box {
  border: 1px solid rgba(255, 211, 111, 0.28);
  border-radius: 18px;
  padding: 1rem;
  background: rgba(0, 16, 31, 0.55);
  box-shadow: inset 0 0 24px rgba(255, 211, 111, 0.04);
}

.csv-preview-box p {
  margin: 0 0 0.8rem;
  color: var(--muted, #a8b8c8);
}

.decision-card {
  border-color: rgba(255, 211, 111, 0.34);
  background: linear-gradient(135deg, rgba(255, 211, 111, 0.09), rgba(2, 18, 34, 0.86));
}

@media (max-width: 860px) {
  .csv-upload-grid {
    grid-template-columns: 1fr;
  }
}

/* v46.13.0 visual comfort pass: thinner, calmer typography */
:root {
  --tics-font-primary: Aptos, "Segoe UI Variable Text", "Segoe UI", Inter, "Helvetica Neue", Arial, sans-serif;
  --tics-font-display: Aptos, "Segoe UI Variable Display", "Segoe UI", Inter, "Helvetica Neue", Arial, sans-serif;
}

body,
button,
input,
select,
textarea,
.sidebar,
.workspace,
.true-login-card,
.card,
.glass-card,
.data-table,
.proc-document {
  font-family: var(--tics-font-primary) !important;
  font-weight: 400;
}

h1,
h2,
h3,
h4,
.true-login-heading h1,
.topbar-title h2,
.card h3,
.section-heading h3,
.doc-header h2,
.doc-block h4,
.stat-card strong,
.metric-card strong,
.brand-wordmark,
.owner-hero h2 {
  font-family: var(--tics-font-display) !important;
  font-weight: 520 !important;
  letter-spacing: -0.018em !important;
}

h1,
.true-login-heading h1 {
  font-size: clamp(2.05rem, 4.8vw, 4.45rem) !important;
  line-height: 1.03 !important;
}

h2,
.topbar-title h2,
.owner-hero h2 {
  font-size: clamp(1.55rem, 3vw, 2.75rem) !important;
  line-height: 1.08 !important;
}

h3,
.card h3,
.section-heading h3 {
  font-size: clamp(1.05rem, 1.65vw, 1.42rem) !important;
  line-height: 1.2 !important;
}

strong,
b,
button,
.true-login-button,
.primary-btn,
.secondary-btn,
.ghost-btn,
.tiny-btn,
.nav-item,
.session-pill strong,
.side-brand strong,
.field-symbol,
.field-eye {
  font-weight: 560 !important;
}

.eyebrow,
.true-login-version,
.side-status strong,
.product-env-strip span,
.product-env-strip strong,
.product-env-strip em,
.nav-group-title,
.status-badge,
.data-table th,
.doc-meta-grid strong,
.doc-total-grid span,
.doc-line-table th,
.tica-card-head,
.tica-rule-grid span,
.control-label,
label {
  font-weight: 580 !important;
  letter-spacing: 0.075em !important;
}

.true-login-heading p,
.topbar-motto,
.card p,
.muted,
.empty-state,
.tica-live-note,
.doc-block p {
  font-weight: 400 !important;
}

.true-login-button,
.primary-btn,
.secondary-btn,
.ghost-btn,
.tiny-btn,
.icon-action {
  letter-spacing: 0.01em !important;
}

.data-table td,
.proc-document,
.doc-line-table td {
  font-weight: 400 !important;
}

/* v46.13.0 sidebar logout button fit correction */
.sidebar {
  padding-bottom: 28px !important;
}

.sidebar .side-status {
  flex: 0 0 auto !important;
}

#logoutBtn.ghost-btn {
  flex: 0 0 auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 44px !important;
  padding: 10px 16px !important;
  margin: 0 0 10px 0 !important;
  line-height: 1.15 !important;
  text-align: center !important;
  overflow: visible !important;
  box-sizing: border-box !important;
}

/* v46.16.0 Visual Consistency Polish Pass */
.tester-mission-card,
.task-coach-card {
  border-color: rgba(255, 211, 111, 0.28);
  background: linear-gradient(135deg, rgba(255, 211, 111, 0.07), rgba(3, 20, 36, 0.9));
}

.mission-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.mission-header p,
.task-coach-card p {
  max-width: 78ch;
}

.mission-score {
  min-width: 112px;
  padding: 0.75rem 0.9rem;
  border: 1px solid rgba(255, 211, 111, 0.22);
  border-radius: 18px;
  background: rgba(2, 16, 30, 0.65);
  text-align: center;
}

.mission-score strong {
  display: block;
  color: var(--gold, #ffd36f);
  font-size: 1.35rem;
}

.mission-score span {
  display: block;
  color: var(--muted, #a8b8c8);
  font-size: 0.78rem;
}

.mission-progress {
  margin: 0.75rem 0 1rem;
}

.mission-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 0.85rem 0;
}

.mission-step-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 0.7rem;
  margin-top: 1rem;
}

.mission-step {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas: "num title" "num note";
  gap: 0.15rem 0.65rem;
  width: 100%;
  min-height: 78px;
  padding: 0.75rem;
  border: 1px solid rgba(151, 185, 218, 0.22);
  border-radius: 16px;
  background: rgba(3, 21, 38, 0.72);
  color: var(--text, #edf6ff);
  text-align: left;
  cursor: pointer;
}

.mission-step:hover,
.mission-step:focus-visible {
  border-color: rgba(255, 211, 111, 0.52);
  transform: translateY(-1px);
}

.mission-step span {
  grid-area: num;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: rgba(255, 211, 111, 0.12);
  color: var(--gold, #ffd36f);
  font-weight: 560;
}

.mission-step strong {
  grid-area: title;
  line-height: 1.2;
}

.mission-step small {
  grid-area: note;
  color: var(--muted, #a8b8c8);
  line-height: 1.35;
}

.mission-step.done {
  border-color: rgba(82, 232, 170, 0.32);
  background: linear-gradient(135deg, rgba(82, 232, 170, 0.08), rgba(3, 21, 38, 0.76));
}

.task-coach-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.task-coach-grid div {
  padding: 0.85rem;
  border: 1px solid rgba(151, 185, 218, 0.18);
  border-radius: 16px;
  background: rgba(2, 16, 30, 0.58);
}

.task-coach-grid span {
  display: block;
  color: var(--gold, #ffd36f);
  font-size: 0.76rem;
  letter-spacing: 0.075em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.task-coach-grid p {
  margin: 0;
}

@media (max-width: 760px) {
  .mission-header {
    flex-direction: column;
  }
  .mission-score {
    width: 100%;
  }
}

/* v46.16.0 tester completion signoff polish */
.evidence-brief-card .readiness-risk-grid div {
  min-height: 96px;
}
.evidence-brief-card h3,
.task-coach-card h3,
.tester-mission-card h3 {
  font-weight: 520;
}
.mission-step small,
.task-coach-grid p,
.evidence-brief-card p {
  line-height: 1.55;
}

/* v46.16.0 soft gold / copper button tone refresh */
:root {
  --button-soft-gold-1: #ecd6a3;
  --button-soft-gold-2: #d8b172;
  --button-soft-copper: #b77946;
  --button-soft-ink: #0b1524;
  --button-soft-outline: rgba(244, 213, 149, 0.75);
  --button-soft-glow: rgba(195, 132, 65, 0.24);
}

.primary-action,
.login-form button,
.primary-btn,
.true-login-button {
  color: var(--button-soft-ink) !important;
  border: 1px solid var(--button-soft-outline) !important;
  background: linear-gradient(180deg, var(--button-soft-gold-1) 0%, var(--button-soft-gold-2) 52%, var(--button-soft-copper) 100%) !important;
  box-shadow: 0 14px 28px var(--button-soft-glow), inset 0 1px 0 rgba(255,255,255,.34), inset 0 -1px 0 rgba(86,49,20,.22) !important;
}

.primary-action:hover,
.login-form button:hover,
.primary-btn:hover,
.true-login-button:hover {
  background: linear-gradient(180deg, #f1deb3 0%, #ddb97f 52%, #bf8451 100%) !important;
  box-shadow: 0 18px 34px rgba(195,132,65,.28), inset 0 1px 0 rgba(255,255,255,.4), inset 0 -1px 0 rgba(86,49,20,.24) !important;
}

.secondary-action,
.product-hero-actions button:not(.primary-action),
.ghost-btn,
.tiny-btn,
.icon-action {
  border: 1px solid rgba(233, 196, 132, 0.42) !important;
  background: linear-gradient(180deg, rgba(179, 121, 70, 0.18) 0%, rgba(120, 75, 39, 0.12) 100%) !important;
  color: #f1d39b !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 8px 18px rgba(0,0,0,.12) !important;
}

.secondary-action:hover,
.product-hero-actions button:not(.primary-action):hover,
.ghost-btn:hover,
.tiny-btn:hover,
.icon-action:hover {
  background: linear-gradient(180deg, rgba(205, 151, 90, 0.24) 0%, rgba(137, 88, 49, 0.16) 100%) !important;
  border-color: rgba(240, 205, 146, 0.60) !important;
}

#logoutBtn.ghost-btn {
  color: #f3d6a0 !important;
}


/* v46.37.7 — Phase 1 Tester Credential Copy Cards */
.secondary-btn,
button.secondary-btn {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid rgba(240, 197, 111, .38);
  border-radius: 16px;
  padding: 13px 18px;
  color: var(--gold-2);
  background:
    radial-gradient(circle at 20% 0%, rgba(240, 197, 111, .18), transparent 36%),
    rgba(9, 26, 43, .72);
  font-weight: 900;
  letter-spacing: .02em;
  line-height: 1;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .035);
  cursor: pointer;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.secondary-btn:hover,
button.secondary-btn:hover,
.secondary-btn:focus-visible,
button.secondary-btn:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(240, 197, 111, .62);
  background:
    radial-gradient(circle at 20% 0%, rgba(240, 197, 111, .22), transparent 38%),
    rgba(14, 35, 55, .86);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .22), inset 0 0 0 1px rgba(255, 255, 255, .05);
  outline: none;
}

.phase1-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 18px;
}

.phase1-action-row .primary-btn,
.phase1-action-row .secondary-btn {
  margin: 0;
}


/* v46.46.0 — Self-Building Enterprise OS Blueprint Console */
.self-os-mode-card {
  border-color: rgba(240, 197, 111, .32);
  background: linear-gradient(155deg, rgba(9, 25, 44, .94), rgba(5, 14, 27, .94));
}

.self-os-build-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.self-os-build-card {
  border: 1px solid rgba(240, 197, 111, .22);
  border-radius: 18px;
  padding: 16px;
  background: rgba(255, 255, 255, .035);
  min-height: 150px;
}

.self-os-build-card span {
  display: inline-flex;
  border: 1px solid rgba(119, 212, 107, .32);
  border-radius: 999px;
  padding: 4px 9px;
  color: #bdf7b6;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.self-os-build-card h4 {
  margin: 12px 0 8px;
  color: #fff4d8;
}

.self-os-build-card p {
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

@media (max-width: 1200px) {
  .self-os-build-grid { grid-template-columns: repeat(2, minmax(180px, 1fr)); }
}

@media (max-width: 760px) {
  .self-os-build-grid { grid-template-columns: 1fr; }
}

/* v46.46.0 — Self-Building OS UI Alignment + Layout Fit Fix */
.product-hero-card {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px) !important;
  gap: clamp(22px, 4vw, 54px) !important;
}

.product-hero-copy {
  min-width: 0;
  max-width: none !important;
}

.product-hero-copy h3 {
  max-width: min(34ch, 100%) !important;
  font-size: clamp(1.75rem, 2.8vw, 3.15rem) !important;
  line-height: 1.05 !important;
  letter-spacing: -.04em !important;
}

.product-hero-copy p:not(.eyebrow) {
  max-width: min(78ch, 100%) !important;
}

.self-os-mode-card .doc-meta-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
  gap: 14px !important;
  align-items: stretch;
}

.self-os-mode-card .doc-meta-grid > div {
  min-width: 0;
  border: 1px solid rgba(240, 197, 111, .24) !important;
  border-radius: 18px !important;
  padding: 16px !important;
  background:
    radial-gradient(circle at 16% 0%, rgba(240, 197, 111, .12), transparent 34%),
    linear-gradient(145deg, rgba(9, 26, 43, .88), rgba(3, 12, 22, .92)) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04), 0 16px 34px rgba(0, 0, 0, .18) !important;
}

.self-os-mode-card .doc-meta-grid strong {
  display: block;
  color: var(--gold-2) !important;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .72rem;
  margin-bottom: 8px;
}

.self-os-mode-card .doc-meta-grid span {
  display: block;
  color: #eef5ff !important;
  font-size: .98rem;
  line-height: 1.35;
}

.self-os-build-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 16px !important;
  align-items: stretch;
  max-width: 100%;
  overflow: hidden;
}

.self-os-build-card {
  min-width: 0;
  height: 100%;
  padding: 18px !important;
  overflow-wrap: anywhere;
  background:
    radial-gradient(circle at 18% 0%, rgba(240, 197, 111, .10), transparent 34%),
    linear-gradient(145deg, rgba(9, 26, 43, .86), rgba(4, 14, 26, .94)) !important;
  border-color: rgba(240, 197, 111, .28) !important;
}

.self-os-build-card h4,
.self-os-build-card p {
  min-width: 0;
  overflow-wrap: anywhere;
}

@media (max-width: 1280px) {
  .self-os-build-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 980px) {
  .product-hero-card {
    grid-template-columns: 1fr !important;
  }
  .product-hero-copy h3 {
    max-width: 100% !important;
  }
}

@media (max-width: 760px) {
  .self-os-build-grid,
  .self-os-mode-card .doc-meta-grid {
    grid-template-columns: 1fr !important;
  }
}

/* v46.46.0 — TICA Internal Control Registry & Owner Command View */
.tica-readiness-metrics {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)) !important;
  gap: 14px !important;
}

.tica-readiness-metrics > div {
  min-width: 0;
  border: 1px solid rgba(240, 197, 111, .24) !important;
  border-radius: 18px !important;
  padding: 16px !important;
  background:
    radial-gradient(circle at 16% 0%, rgba(240, 197, 111, .12), transparent 34%),
    linear-gradient(145deg, rgba(9, 26, 43, .88), rgba(3, 12, 22, .92)) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04), 0 16px 34px rgba(0, 0, 0, .18) !important;
}

.tica-readiness-metrics strong {
  display: block;
  color: var(--gold-2) !important;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .72rem;
  margin-bottom: 8px;
}

.tica-readiness-metrics span {
  display: block;
  color: #eef5ff !important;
  font-size: 1.35rem;
  line-height: 1.25;
  font-weight: 800;
}

.tica-evidence-packet-card h4 {
  line-height: 1.18;
}

.tica-evidence-packet-card p + p {
  margin-top: 10px;
}

.tica-approval-metrics {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)) !important;
  gap: 14px !important;
}

.tica-approval-metrics > div {
  min-width: 0;
  border: 1px solid rgba(240, 197, 111, .24) !important;
  border-radius: 18px !important;
  padding: 16px !important;
  background:
    radial-gradient(circle at 16% 0%, rgba(240, 197, 111, .12), transparent 34%),
    linear-gradient(145deg, rgba(9, 26, 43, .88), rgba(3, 12, 22, .92)) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04), 0 16px 34px rgba(0, 0, 0, .18) !important;
}

.tica-approval-metrics strong {
  display: block;
  color: var(--gold-2) !important;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .72rem;
  margin-bottom: 8px;
}

.tica-approval-metrics span {
  display: block;
  color: #eef5ff !important;
  font-size: 1.35rem;
  line-height: 1.25;
  font-weight: 800;
}

.tica-human-gate-grid {
  margin-top: 16px;
}

.tica-human-gate-card h4 {
  line-height: 1.18;
}

/* v46.46.0 — TICA Internal Control Registry & Owner Command View */
.tica-prototype-metrics {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)) !important;
  gap: 14px !important;
}

.tica-prototype-metrics > div {
  min-width: 0;
  border: 1px solid rgba(240, 197, 111, .24) !important;
  border-radius: 18px !important;
  padding: 16px !important;
  background:
    radial-gradient(circle at 16% 0%, rgba(240, 197, 111, .12), transparent 34%),
    linear-gradient(145deg, rgba(9, 26, 43, .88), rgba(3, 12, 22, .92)) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04), 0 16px 34px rgba(0, 0, 0, .18) !important;
}

.tica-prototype-metrics strong {
  display: block;
  color: var(--gold-2) !important;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .72rem;
  margin-bottom: 8px;
}

.tica-prototype-metrics span {
  display: block;
  color: #eef5ff !important;
  font-size: 1.35rem;
  line-height: 1.25;
  font-weight: 800;
}

.tica-prototype-scope-card h4,
.tica-prototype-sequence-card h4 {
  line-height: 1.18;
}

.tica-prototype-scope-card p + p,
.tica-prototype-sequence-card p + p {
  margin-top: 10px;
}


/* v46.46.0 — TICA Internal Control Registry & Owner Command View */
.tica-build-ticket-metrics {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)) !important;
  gap: 14px !important;
}

.tica-build-ticket-metrics > div {
  min-width: 0;
  border: 1px solid rgba(240, 197, 111, .24) !important;
  border-radius: 18px !important;
  padding: 16px !important;
  background:
    radial-gradient(circle at 16% 0%, rgba(240, 197, 111, .12), transparent 34%),
    linear-gradient(145deg, rgba(9, 26, 43, .88), rgba(3, 12, 22, .92)) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04), 0 16px 34px rgba(0, 0, 0, .18) !important;
}

.tica-build-ticket-metrics strong {
  display: block;
  color: var(--gold-2) !important;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .72rem;
  margin-bottom: 8px;
}

.tica-build-ticket-metrics span {
  display: block;
  color: #eef5ff !important;
  font-size: 1.35rem;
  line-height: 1.25;
  font-weight: 800;
}

.tica-build-ticket-card h4,
.tica-build-ticket-sequence-card h4 {
  line-height: 1.18;
}

.tica-build-ticket-card p + p,
.tica-build-ticket-sequence-card p + p {
  margin-top: 10px;
}


/* v46.46.0 — TICA Internal Control Registry & Owner Command View */
.tica-owner-command-grid,
.tica-internal-control-grid {
  margin-top: 16px;
}

.tica-owner-command-card span,
.tica-internal-registry-metrics strong {
  color: var(--gold-2) !important;
}

.tica-owner-command-policy-card,
.tica-internal-registry-card,
.tica-internal-process-map-card,
.oi-owner-visibility-card {
  border-color: rgba(240, 197, 111, .28) !important;
}

.tica-internal-registry-metrics {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)) !important;
  gap: 14px !important;
  margin-bottom: 18px;
}

.tica-internal-registry-metrics > div {
  min-width: 0;
  border: 1px solid rgba(240, 197, 111, .24) !important;
  border-radius: 18px !important;
  padding: 16px !important;
  background:
    radial-gradient(circle at 16% 0%, rgba(240, 197, 111, .12), transparent 34%),
    linear-gradient(145deg, rgba(9, 26, 43, .88), rgba(3, 12, 22, .92)) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04), 0 16px 34px rgba(0, 0, 0, .18) !important;
}

.tica-internal-registry-metrics strong {
  display: block;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .72rem;
  margin-bottom: 8px;
}

.tica-internal-registry-metrics span {
  display: block;
  color: #eef5ff !important;
  font-size: 1.2rem;
  line-height: 1.25;
  font-weight: 800;
}

.oi-internal-control-grid .oi-flow-node span {
  background: rgba(240, 197, 111, .14);
  border-color: rgba(240, 197, 111, .32);
}


/* v46.47.0 — Owner decision inbox keeps TICA background work hidden until it matters. */
.tica-owner-decision-inbox-card {
  border-color: rgba(211, 168, 92, 0.36);
}
.tica-owner-decision-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.tica-owner-decision-card p {
  margin-bottom: 0.55rem;
}
.tica-owner-decision-metrics div {
  min-width: 0;
}

/* TICS UI Design System Guard foundation */
.tics-ui-metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
  margin: 18px 0;
  align-items: stretch;
}

.tics-ui-metric-grid > div {
  min-width: 0;
  border: 1px solid rgba(240, 197, 111, .28);
  border-radius: 18px;
  padding: 16px;
  background:
    radial-gradient(circle at 18% 0%, rgba(240, 197, 111, .12), transparent 36%),
    linear-gradient(145deg, rgba(9, 26, 43, .90), rgba(4, 14, 26, .96));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .045), 0 16px 34px rgba(0, 0, 0, .18);
  overflow: hidden;
}

.tics-ui-metric-grid strong {
  display: block;
  color: var(--gold-2);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .72rem;
  line-height: 1.2;
  margin-bottom: 8px;
}

.tics-ui-metric-grid span {
  display: block;
  color: #f8f1df;
  font-size: clamp(1rem, 1.3vw, 1.28rem);
  line-height: 1.25;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.tics-ui-metric-grid small {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  line-height: 1.35;
}

.tics-ui-design-guard-card,
.tics-ui-design-guard-card .self-os-build-card,
.tics-ui-component-card {
  border-color: rgba(240, 197, 111, .34) !important;
}

.tics-ui-design-guard-card {
  background:
    radial-gradient(circle at 12% 0%, rgba(240, 197, 111, .12), transparent 28%),
    linear-gradient(155deg, rgba(9, 25, 44, .95), rgba(5, 14, 27, .96)) !important;
}

.tics-ui-component-grid {
  grid-template-columns: repeat(auto-fit, minmax(235px, 1fr)) !important;
}

.tics-ui-component-card p + p {
  margin-top: 8px;
}

.tics-ui-checklist {
  margin-top: 18px;
}

.tics-ui-guard-metrics > div:first-child {
  border-color: rgba(119, 212, 107, .34);
}

.tics-btn,
.tics-btn-primary,
.tics-btn-secondary {
  appearance: none;
  -webkit-appearance: none;
  border-radius: 16px;
  padding: 13px 18px;
  font-weight: 900;
  letter-spacing: .02em;
  line-height: 1;
  cursor: pointer;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.tics-btn-primary {
  color: var(--button-soft-ink);
  border: 1px solid var(--button-soft-outline);
  background: linear-gradient(180deg, var(--button-soft-gold-1) 0%, var(--button-soft-gold-2) 52%, var(--button-soft-copper) 100%);
  box-shadow: 0 14px 28px var(--button-soft-glow), inset 0 1px 0 rgba(255,255,255,.34), inset 0 -1px 0 rgba(86,49,20,.22);
}

.tics-btn-secondary {
  color: var(--gold-2);
  border: 1px solid rgba(240, 197, 111, .38);
  background:
    radial-gradient(circle at 20% 0%, rgba(240, 197, 111, .18), transparent 36%),
    rgba(9, 26, 43, .72);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .035);
}

.tics-btn:hover,
.tics-btn-primary:hover,
.tics-btn-secondary:hover {
  transform: translateY(-1px);
}

/* Keep document-preview styling in document surfaces only. TICS command surfaces use .tics-ui-metric-grid. */
.card:not(.document-card):not(.proc-document) > .doc-meta-grid:not(.print-only-doc-grid) > div {
  border-color: rgba(240, 197, 111, .24);
  background:
    radial-gradient(circle at 16% 0%, rgba(240, 197, 111, .12), transparent 34%),
    linear-gradient(145deg, rgba(9, 26, 43, .88), rgba(3, 12, 22, .92));
}

.card:not(.document-card):not(.proc-document) > .doc-meta-grid:not(.print-only-doc-grid) strong {
  color: var(--gold-2);
}

.card:not(.document-card):not(.proc-document) > .doc-meta-grid:not(.print-only-doc-grid) span {
  color: #eef5ff;
}


/* v46.51.0 — TICA Owner Command Brief & Explanation Packet */
.owner-decision-pinned-card {
  border-color: rgba(225, 176, 78, 0.48);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.035);
}
.owner-decision-pinned-card > h3 {
  max-width: 980px;
}
.decision-inbox-action-row {
  display: flex;
  justify-content: flex-start;
  gap: 12px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.tica-owner-decision-inbox-card .tics-ui-metric-grid > div,
.tica-internal-registry-card .tics-ui-metric-grid > div,
.tica-proposal-foundation-metrics > div {
  background: linear-gradient(145deg, rgba(7, 21, 34, 0.95), rgba(12, 35, 53, 0.88));
  border: 1px solid rgba(214, 163, 70, 0.28);
  color: var(--paper);
}
.tica-owner-decision-inbox-card .tics-ui-metric-grid strong,
.tica-internal-registry-card .tics-ui-metric-grid strong,
.tica-proposal-foundation-metrics strong {
  color: var(--gold);
}
.tica-owner-decision-inbox-card .tics-ui-metric-grid span,
.tica-internal-registry-card .tics-ui-metric-grid span,
.tica-proposal-foundation-metrics span {
  color: var(--paper);
}
.tica-owner-decision-card {
  min-width: 0;
}


/* v46.51.0 — TICA Owner Command Brief & Explanation Packet */
.tica-owner-action-queue-card {
  border-color: rgba(119, 212, 107, 0.28);
  background:
    radial-gradient(circle at 8% 0%, rgba(119, 212, 107, 0.10), transparent 26%),
    linear-gradient(150deg, rgba(6, 20, 34, 0.96), rgba(4, 13, 24, 0.96));
}
.owner-action-pinned-card {
  box-shadow: 0 22px 62px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.035);
}
.tica-owner-action-grid {
  grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
}
.tica-owner-action-card {
  min-width: 0;
  border-color: rgba(119, 212, 107, 0.26);
}
.tica-owner-action-card span {
  border-color: rgba(119, 212, 107, 0.34);
  color: #c9ffc2;
}
.tica-owner-action-metrics > div {
  background: linear-gradient(145deg, rgba(6, 22, 34, 0.95), rgba(10, 39, 49, 0.84));
  border-color: rgba(119, 212, 107, 0.22);
}
.tica-owner-action-metrics strong {
  color: var(--gold);
}
.tica-owner-action-metrics span {
  color: var(--paper);
}

/* v46.51.0 — TICA Owner Command Brief & Explanation Packet */
.tica-owner-command-brief-card {
  border-color: rgba(240, 197, 111, 0.42);
  background:
    radial-gradient(circle at 10% 0%, rgba(240, 197, 111, 0.12), transparent 28%),
    linear-gradient(150deg, rgba(7, 22, 38, 0.96), rgba(4, 13, 24, 0.97));
}
.owner-command-brief-pinned-card {
  box-shadow: 0 24px 72px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.tica-command-brief-metrics > div {
  border-color: rgba(240, 197, 111, 0.28);
  background: linear-gradient(145deg, rgba(7, 21, 34, 0.95), rgba(18, 39, 54, 0.86));
}
.tica-command-brief-metrics strong {
  color: var(--gold);
}
.tica-command-brief-metrics span {
  color: var(--paper);
}
.tica-command-brief-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.tica-command-brief-packet {
  min-width: 0;
  border-color: rgba(240, 197, 111, 0.30);
}
.tica-command-brief-packet span {
  border-color: rgba(240, 197, 111, 0.34);
  color: var(--gold-2);
}
.tica-command-brief-packet p {
  margin-bottom: 0.55rem;
}

/* v46.52.0 — TICA Managed Build Lifecycle & Owner Review Path Foundation */
.tica-managed-lifecycle-section,
.tica-owner-review-path-section {
  border-color: rgba(212, 175, 55, 0.22);
}

.tica-managed-lifecycle-grid,
.tica-owner-review-path-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.tica-managed-lifecycle-card,
.tica-owner-review-path-card {
  min-width: 0;
}

.tica-managed-lifecycle-card h4,
.tica-owner-review-path-card h4 {
  line-height: 1.2;
}

.tica-lifecycle-rules {
  margin-top: 1rem;
}


/* v46.53.0 — TICA Sandbox Readiness Gate & Non-Execution Seal Foundation */
.tica-sandbox-readiness-section .tica-sandbox-readiness-card strong { color: var(--gold, #d6ad5f); }
.tica-sandbox-readiness-section .tica-sandbox-readiness-rules { margin-top: 16px; }


/* =========================================================
   v50.60.0 Pilot launch table readability fix
   Prevent wide Owner pilot tables from clipping right-side columns.
   ========================================================= */
.table-wrap,
.table-scroll {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  -webkit-overflow-scrolling: touch;
  border-radius: 18px;
}

.table-wrap .data-table,
.table-scroll table {
  border-collapse: collapse;
  width: max-content !important;
  min-width: 100% !important;
}

body[data-route="phase1-launch-console"] .phase1-login-card .table-wrap .data-table {
  min-width: 1120px !important;
}

body[data-route="phase1-launch-console"] .phase1-login-card .data-table th,
body[data-route="phase1-launch-console"] .phase1-login-card .data-table td {
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
}

body[data-route="phase1-launch-console"] .phase1-login-card .data-table td:nth-child(2),
body[data-route="phase1-launch-console"] .phase1-login-card .data-table td:nth-child(4) {
  min-width: 230px;
}

body[data-route="phase1-launch-console"] .phase1-login-card .data-table td:nth-child(3),
body[data-route="phase1-launch-console"] .phase1-login-card .data-table td:nth-child(5),
body[data-route="phase1-launch-console"] .phase1-login-card .data-table code {
  white-space: nowrap !important;
  overflow-wrap: normal !important;
  word-break: keep-all !important;
}

.table-readability-note {
  margin-top: -4px;
  margin-bottom: 14px;
  color: rgba(245, 238, 220, .72) !important;
}

@media (max-width: 1100px) {
  body[data-route="phase1-launch-console"] .phase1-login-card .table-wrap {
    box-shadow: inset -18px 0 22px rgba(0, 0, 0, .22);
  }
}

/* =========================================================
   v50.92.0 Test data reset + searchable supply selector
   ========================================================= */
.inventory-search-field {
  position: relative;
  align-self: stretch;
}

.inventory-search-field input[type="search"] {
  font-weight: 800;
  letter-spacing: .01em;
}

.supply-search-hint {
  color: rgba(245, 238, 220, .68);
  line-height: 1.45;
}

.supply-search-results {
  display: grid;
  gap: 8px;
  margin-top: 6px;
  max-height: 280px;
  overflow-y: auto;
  padding-right: 4px;
}

.supply-search-result {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(120px, .7fr) minmax(180px, 1.2fr);
  gap: 4px 12px;
  align-items: start;
  text-align: left;
  border: 1px solid rgba(240,197,111,.2);
  border-radius: 16px;
  background: rgba(3, 14, 26, .72);
  color: var(--text);
  padding: 10px 12px;
  cursor: pointer;
}

.supply-search-result:hover,
.supply-search-result:focus {
  border-color: rgba(240,197,111,.55);
  box-shadow: 0 0 0 2px rgba(240,197,111,.08);
}

.supply-search-result strong {
  color: var(--gold-2);
  font-size: .86rem;
}

.supply-search-result span {
  font-weight: 800;
}

.supply-search-result small {
  grid-column: 1 / -1;
  color: rgba(245, 238, 220, .7);
  line-height: 1.35;
}

.supply-search-selected {
  margin: 0;
  border: 1px solid rgba(56, 211, 159, .35);
  border-radius: 14px;
  padding: 9px 11px;
  color: #bdf8df;
  background: rgba(56, 211, 159, .08);
  font-weight: 800;
}

.supply-search-empty {
  margin: 0;
  padding: 12px !important;
}

@media (max-width: 760px) {
  .supply-search-result {
    grid-template-columns: 1fr;
  }
}

.handoff-pre {
  white-space: pre-wrap;
  overflow-x: auto;
  border: 1px solid rgba(240, 197, 111, .24);
  border-radius: 18px;
  padding: 16px;
  background: rgba(2, 10, 20, .66);
  color: var(--text);
  line-height: 1.55;
  font-size: .9rem;
}

/* v50.98.0 — Core Inventory & Vendor Beta Readiness */
.core-master-readiness-card {
  display: grid;
  gap: 1rem;
}

.core-master-filter-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(220px, 1fr);
  gap: 0.9rem;
  align-items: end;
}

.core-master-search-status {
  margin: 0;
  padding: 0.75rem 0.9rem;
  border: 1px solid rgba(96, 165, 250, 0.24);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.48);
  color: var(--muted, #9fb0c8);
  font-size: 0.9rem;
}

tr[data-master-row][hidden] {
  display: none !important;
}

@media (max-width: 760px) {
  .core-master-filter-grid {
    grid-template-columns: 1fr;
  }
}


/* v50.99.0 — Procurement, RFQ & Quote Management Readiness
   Reuses the established core-master readiness/search visual system for RFQ and quote readiness controls. */


/* v51.1.0 Unified Data Explorer */
.data-explorer-shell { padding: clamp(18px, 2.4vw, 30px); }
.data-explorer-search-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
  position: sticky;
  top: 10px;
  z-index: 8;
  padding: 12px;
  margin: -4px -4px 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(3, 12, 22, .94);
  backdrop-filter: blur(14px);
}
.data-explorer-search-wrap label { display: grid; gap: 8px; color: var(--gold-2); font-weight: 900; }
.data-explorer-search-wrap input {
  width: 100%;
  min-height: 54px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: rgba(8, 24, 41, .96);
  color: var(--text);
  padding: 0 16px;
  outline: none;
}
.data-explorer-search-wrap input:focus { box-shadow: 0 0 0 3px rgba(216, 161, 58, .18); }
.data-explorer-example-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 10px 0 8px; }
.data-explorer-example-row > span { color: var(--muted); font-size: .88rem; font-weight: 800; }
.data-explorer-search-status { margin: 8px 0 18px; font-size: .9rem; }
.data-explorer-results-window { display: grid; gap: 16px; }
.data-explorer-summary-bar { display: flex; flex-wrap: wrap; gap: 8px; }
.data-explorer-count-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel-soft);
  color: var(--muted);
  font-size: .84rem;
}
.data-explorer-count-pill strong { color: var(--gold-2); font-size: 1rem; }
.data-explorer-tica-card {
  display: grid;
  grid-template-columns: minmax(220px, .8fr) minmax(0, 1.4fr);
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(216,161,58,.12), rgba(8,28,48,.9));
}
.data-explorer-tica-card ul { margin: 0; padding-left: 20px; color: var(--muted); }
.data-explorer-type { display: inline-block; color: var(--gold-2); font-size: .72rem; font-weight: 950; letter-spacing: .13em; text-transform: uppercase; }
.data-explorer-section {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(7,22,38,.74);
}
.data-explorer-section-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.data-explorer-section-heading h3 { margin: 0; }
.data-explorer-card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); gap: 12px; }
.data-explorer-result-card {
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(216,161,58,.2);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(9,29,48,.86), rgba(3,12,22,.92));
}
.data-explorer-result-card h4 { margin: 6px 0 8px; color: #fff4d8; line-height: 1.3; }
.data-explorer-result-card p { margin: 0 0 7px; font-size: .88rem; line-height: 1.45; overflow-wrap: anywhere; }
.data-explorer-card-footer { display: flex; justify-content: space-between; gap: 10px; align-items: center; margin-top: 10px; color: var(--muted); font-size: .78rem; }
.data-explorer-card-footer > span:last-child { text-align: right; }
.data-explorer-more { margin: 10px 0 0; font-size: .82rem; }
@media (max-width: 760px) {
  .data-explorer-search-wrap { grid-template-columns: 1fr; position: static; }
  .data-explorer-tica-card { grid-template-columns: 1fr; }
  .data-explorer-section-heading { align-items: flex-start; flex-direction: column; }
  .data-explorer-card-footer { align-items: flex-start; flex-direction: column; }
  .data-explorer-card-footer > span:last-child { text-align: left; }
}


/* v51.5.0 — Verified Vertical Search Runtime */
.vertical-search-shell {
  grid-column: 1 / -1;
  width: 100%;
  max-width: none;
  height: calc(100dvh - 220px);
  min-height: 650px;
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr);
  gap: 7px;
  padding: 14px;
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(3,12,22,.98), rgba(7,24,40,.96));
  overflow: hidden;
}

body.is-authenticated[data-route="data-explorer"] .workspace { overflow-y: hidden; }
body.is-authenticated[data-route="data-explorer"] #content { width: 100%; min-width: 0; min-height: 0; }
body.is-authenticated[data-route="data-explorer"] #content > .vertical-search-shell { grid-column: 1 / -1; }

.vertical-search-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}
.vertical-search-field { display: grid; gap: 5px; min-width: 0; color: var(--gold-2); font-size: .78rem; font-weight: 950; letter-spacing: .04em; }
.vertical-search-field input {
  width: 100%;
  height: 50px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: rgba(8,24,41,.98);
  color: var(--text);
  padding: 0 15px;
  outline: none;
  font-size: .95rem;
}
.vertical-search-field input:focus { box-shadow: 0 0 0 3px rgba(216,161,58,.18); }
.vertical-search-clear { height: 50px; min-width: 88px; }
.vertical-search-examples { display: flex; gap: 6px; align-items: center; overflow-x: auto; scrollbar-width: none; }
.vertical-search-examples::-webkit-scrollbar { display: none; }
.vertical-search-examples > span { color: var(--muted); font-size: .72rem; font-weight: 850; white-space: nowrap; }
.vertical-search-examples .tiny-btn { padding: 5px 8px; font-size: .7rem; white-space: nowrap; }
.vertical-search-status { margin: 0; min-height: 18px; color: var(--muted); font-size: .76rem; }
#unifiedDataExplorerResults { min-height: 0; overflow: hidden; }

.vertical-search-empty-state,
.vertical-search-no-results {
  height: 100%;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 28px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(7,22,38,.7);
}
.vertical-search-empty-state strong,
.vertical-search-no-results strong { color: #fff4d8; font-size: 1rem; }
.vertical-search-empty-state span,
.vertical-search-no-results span { max-width: 720px; color: var(--muted); line-height: 1.5; }
.vertical-search-no-results { border-color: rgba(255,174,79,.35); background: rgba(105,55,14,.12); }

.vertical-search-results {
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 7px;
}
.vertical-search-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: baseline;
  min-height: 24px;
  padding: 3px 8px;
  color: var(--muted);
  font-size: .74rem;
}
.vertical-search-summary strong { color: var(--gold-2); }

.vertical-search-stack {
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(180px, 1.28fr) minmax(180px, 1.28fr) minmax(150px, 1.08fr) minmax(96px, .72fr);
  gap: 7px;
}
.vertical-search-band {
  min-width: 0;
  min-height: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(7,22,38,.78);
  overflow: hidden;
}
.vertical-primary-band { background: linear-gradient(145deg, rgba(14,36,57,.94), rgba(4,15,26,.96)); }
.vertical-tica-band { background: linear-gradient(155deg, rgba(216,161,58,.09), rgba(6,21,36,.94)); }
.vertical-band-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  margin-bottom: 7px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255,255,255,.065);
}
.vertical-band-heading > span { color: var(--gold-2); font-size: .72rem; font-weight: 950; letter-spacing: .09em; text-transform: uppercase; }
.vertical-band-heading > small { color: var(--muted); font-size: .7rem; text-align: right; }

.vertical-primary-content { min-height: 0; height: calc(100% - 31px); overflow: hidden; }
.vertical-primary-content > .data-explorer-type { display: none; }
.vertical-primary-content h2 { margin: 0 0 7px; color: #fff4d8; font-size: clamp(1rem, 1.4vw, 1.35rem); line-height: 1.2; overflow-wrap: anywhere; }
.one-screen-primary-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; margin-bottom: 7px; }
.one-screen-metric { padding: 7px 9px; border: 1px solid rgba(216,161,58,.18); border-radius: 10px; background: rgba(3,13,23,.72); }
.one-screen-metric span { display: block; color: var(--muted); font-size: .62rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.one-screen-metric strong { display: block; margin-top: 2px; color: #fff4d8; font-size: .9rem; overflow-wrap: anywhere; }
.one-screen-metric.tone-warning { border-color: rgba(255,174,79,.48); background: rgba(105,55,14,.18); }
.one-screen-metric.tone-good { border-color: rgba(91,210,151,.35); background: rgba(22,86,61,.18); }
.one-screen-primary-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 18px; }
.one-screen-detail-row { display: grid; grid-template-columns: minmax(92px, .7fr) minmax(0, 1.2fr) auto; gap: 7px; align-items: center; padding: 5px 0; border-bottom: 1px solid rgba(255,255,255,.05); font-size: .75rem; }
.one-screen-detail-row > span { color: var(--muted); }
.one-screen-detail-row > strong { color: var(--text); overflow-wrap: anywhere; }
.one-screen-detail-row > em { font-style: normal; }

.vertical-result-list { min-height: 0; height: calc(100% - 31px); display: grid; align-content: start; gap: 4px; overflow: auto; scrollbar-width: thin; }
.vertical-result-row {
  width: 100%;
  min-height: 28px;
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  padding: 5px 8px;
  border: 1px solid rgba(255,255,255,.055);
  border-radius: 9px;
  background: rgba(3,13,23,.58);
  color: var(--text);
  text-align: left;
  cursor: pointer;
}
.vertical-result-row:hover { border-color: rgba(216,161,58,.35); background: rgba(18,41,61,.8); }
.vertical-result-row.tone-warning { border-color: rgba(255,174,79,.32); background: rgba(105,55,14,.12); }
.vertical-result-kind { color: var(--gold-2); font-size: .65rem; font-weight: 950; letter-spacing: .04em; text-transform: uppercase; }
.vertical-result-copy { min-width: 0; display: grid; grid-template-columns: minmax(150px, .45fr) minmax(0, 1fr); gap: 8px; align-items: center; }
.vertical-result-copy strong,
.vertical-result-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vertical-result-copy strong { color: #fff4d8; font-size: .74rem; }
.vertical-result-copy small { color: var(--muted); font-size: .69rem; }
.vertical-result-row em { color: var(--gold-2); font-size: .69rem; font-style: normal; white-space: nowrap; }
.vertical-band-empty { margin: 8px 0 0; color: var(--muted); font-size: .75rem; }

.vertical-tica-notes { display: flex; flex-wrap: wrap; gap: 5px 8px; }
.vertical-tica-notes p { margin: 0; padding: 5px 8px; border: 1px solid rgba(216,161,58,.14); border-radius: 9px; background: rgba(3,13,23,.45); color: var(--text); font-size: .72rem; line-height: 1.3; }
.vertical-search-guardrail { margin: 6px 0 0; color: var(--gold-2); font-size: .67rem; font-weight: 800; }

@media (max-width: 1100px) {
  body.is-authenticated[data-route="data-explorer"] .workspace { overflow-y: auto; }
  .vertical-search-shell { height: auto; min-height: 0; overflow: visible; }
  #unifiedDataExplorerResults { overflow: visible; }
  .vertical-search-stack { grid-template-rows: auto; }
  .vertical-search-band { min-height: 0; overflow: visible; }
  .vertical-primary-content,
  .vertical-result-list { height: auto; overflow: visible; }
  .one-screen-primary-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .one-screen-primary-details { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .vertical-search-shell { padding: 10px; border-radius: 18px; }
  .vertical-search-toolbar { grid-template-columns: 1fr; }
  .vertical-search-clear { width: 100%; }
  .vertical-band-heading { align-items: flex-start; flex-direction: column; gap: 3px; }
  .vertical-band-heading > small { text-align: left; }
  .vertical-result-row { grid-template-columns: 64px minmax(0, 1fr); }
  .vertical-result-row > em { grid-column: 2; }
  .vertical-result-copy { grid-template-columns: 1fr; gap: 1px; }
}

/* v51.6.0 — Purchase Order, Receiving & Inventory Ledger Readiness: reuses existing TICS cards/tables and the accepted vertical Search TICS layout. */


/* v51.7.0 — Expanded Purchase, Receiving & Ledger Search View
   Uses the available desktop width to show POs, receipts, and ledger evidence side by side,
   avoiding internal scrolling for normal connected-result counts. */
.vertical-orders-band {
  overflow: hidden;
}
.vertical-order-grid {
  min-height: 0;
  height: calc(100% - 31px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.vertical-order-column {
  min-width: 0;
  min-height: 0;
  padding: 7px;
  border: 1px solid rgba(216,161,58,.16);
  border-radius: 11px;
  background: rgba(3,13,23,.5);
  overflow: hidden;
}
.vertical-order-column-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 5px;
  padding: 0 2px 5px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.vertical-order-column-heading > span {
  color: #fff4d8;
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .035em;
}
.vertical-order-column-heading > small {
  min-width: 21px;
  height: 21px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(216,161,58,.28);
  border-radius: 999px;
  color: var(--gold-2);
  font-size: .64rem;
  font-weight: 950;
}
.vertical-order-column-list {
  min-height: 0;
  display: grid;
  align-content: start;
  gap: 4px;
  overflow: visible;
}
.vertical-order-column .vertical-result-row {
  min-height: 34px;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 7px;
  padding: 5px 7px;
}
.vertical-order-column .vertical-result-copy {
  grid-template-columns: 1fr;
  gap: 1px;
}
.vertical-order-column .vertical-result-copy strong,
.vertical-order-column .vertical-result-copy small {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.vertical-order-column .vertical-result-row > em {
  grid-column: 1 / -1;
  padding-left: 65px;
  margin-top: -2px;
  color: var(--gold-2);
  white-space: normal;
}

@media (max-width: 1280px) {
  .vertical-order-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vertical-order-column:last-child { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .vertical-order-grid { height: auto; grid-template-columns: 1fr; }
  .vertical-order-column:last-child { grid-column: auto; }
  .vertical-orders-band { overflow: visible; }
}


/* =========================================================
   v51.9.0 — Single-Page PO Print & PDF Layout
   Full-width desktop PO table with no horizontal scrolling on normal desktop widths.
   ========================================================= */
body.is-authenticated[data-route="purchase-orders"] #content > .purchase-orders-table-card {
  grid-column: 1 / -1 !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  overflow: visible !important;
}

body.is-authenticated[data-route="purchase-orders"] .purchase-orders-table-heading {
  margin-bottom: 12px;
}

body.is-authenticated[data-route="purchase-orders"] .purchase-orders-table-heading h3,
body.is-authenticated[data-route="purchase-orders"] .purchase-orders-table-heading p {
  margin-top: 0;
}

@media (min-width: 1181px) {
  body.is-authenticated[data-route="purchase-orders"] .purchase-orders-table-card .table-wrap {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
    overflow-y: visible !important;
  }

  body.is-authenticated[data-route="purchase-orders"] .purchase-orders-table-card .data-table {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    table-layout: fixed !important;
  }

  body.is-authenticated[data-route="purchase-orders"] .purchase-orders-table-card .data-table th,
  body.is-authenticated[data-route="purchase-orders"] .purchase-orders-table-card .data-table td {
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: normal !important;
    padding: 9px 7px !important;
    line-height: 1.28;
    font-size: .75rem;
  }

  body.is-authenticated[data-route="purchase-orders"] .purchase-orders-table-card .data-table th {
    font-size: .67rem;
    letter-spacing: .05em;
  }

  body.is-authenticated[data-route="purchase-orders"] .purchase-orders-table-card .data-table th:nth-child(1),
  body.is-authenticated[data-route="purchase-orders"] .purchase-orders-table-card .data-table td:nth-child(1) { width: 7%; }
  body.is-authenticated[data-route="purchase-orders"] .purchase-orders-table-card .data-table th:nth-child(2),
  body.is-authenticated[data-route="purchase-orders"] .purchase-orders-table-card .data-table td:nth-child(2) { width: 8%; }
  body.is-authenticated[data-route="purchase-orders"] .purchase-orders-table-card .data-table th:nth-child(3),
  body.is-authenticated[data-route="purchase-orders"] .purchase-orders-table-card .data-table td:nth-child(3) { width: 8%; }
  body.is-authenticated[data-route="purchase-orders"] .purchase-orders-table-card .data-table th:nth-child(4),
  body.is-authenticated[data-route="purchase-orders"] .purchase-orders-table-card .data-table td:nth-child(4) { width: 13%; }
  body.is-authenticated[data-route="purchase-orders"] .purchase-orders-table-card .data-table th:nth-child(5),
  body.is-authenticated[data-route="purchase-orders"] .purchase-orders-table-card .data-table td:nth-child(5) { width: 10%; }
  body.is-authenticated[data-route="purchase-orders"] .purchase-orders-table-card .data-table th:nth-child(6),
  body.is-authenticated[data-route="purchase-orders"] .purchase-orders-table-card .data-table td:nth-child(6) { width: 5%; }
  body.is-authenticated[data-route="purchase-orders"] .purchase-orders-table-card .data-table th:nth-child(7),
  body.is-authenticated[data-route="purchase-orders"] .purchase-orders-table-card .data-table td:nth-child(7) { width: 5%; }
  body.is-authenticated[data-route="purchase-orders"] .purchase-orders-table-card .data-table th:nth-child(8),
  body.is-authenticated[data-route="purchase-orders"] .purchase-orders-table-card .data-table td:nth-child(8) { width: 7%; }
  body.is-authenticated[data-route="purchase-orders"] .purchase-orders-table-card .data-table th:nth-child(9),
  body.is-authenticated[data-route="purchase-orders"] .purchase-orders-table-card .data-table td:nth-child(9) { width: 7%; }
  body.is-authenticated[data-route="purchase-orders"] .purchase-orders-table-card .data-table th:nth-child(10),
  body.is-authenticated[data-route="purchase-orders"] .purchase-orders-table-card .data-table td:nth-child(10) { width: 7%; }
  body.is-authenticated[data-route="purchase-orders"] .purchase-orders-table-card .data-table th:nth-child(11),
  body.is-authenticated[data-route="purchase-orders"] .purchase-orders-table-card .data-table td:nth-child(11) { width: 7%; }
  body.is-authenticated[data-route="purchase-orders"] .purchase-orders-table-card .data-table th:nth-child(12),
  body.is-authenticated[data-route="purchase-orders"] .purchase-orders-table-card .data-table td:nth-child(12) { width: 8%; }
  body.is-authenticated[data-route="purchase-orders"] .purchase-orders-table-card .data-table th:nth-child(13),
  body.is-authenticated[data-route="purchase-orders"] .purchase-orders-table-card .data-table td:nth-child(13) { width: 8%; }

  body.is-authenticated[data-route="purchase-orders"] .purchase-orders-table-card .tiny-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    white-space: normal !important;
    text-align: center;
    line-height: 1.15;
    padding: 5px 7px;
    margin: 2px 2px 2px 0;
    font-size: .68rem;
  }
}

@media (max-width: 1180px) {
  body.is-authenticated[data-route="purchase-orders"] .purchase-orders-table-card .table-wrap {
    overflow-x: auto !important;
  }
}


/* ============================================================
   v51.11.0 — Documents, Audit, Compliance & Reporting Readiness
   Uses existing TICS cards, metric grids, and tables. No layout override required.
   ============================================================ */


/* ============================================================
   v51.11.0 — Whole-App UI Simplification & Clutter Reduction
   Keep the work visible. Move explanations behind help/details.
   ============================================================ */
:root {
  --compact-gap: 12px;
  --compact-radius: 15px;
}

body.is-authenticated .workspace {
  padding: clamp(14px, 1.8vw, 22px) !important;
}

body.is-authenticated .content-grid {
  gap: var(--compact-gap) !important;
  align-items: start;
}

body.is-authenticated .card {
  padding: 16px !important;
  border-radius: var(--compact-radius) !important;
  box-shadow: 0 10px 26px rgba(0,0,0,.16) !important;
}

body.is-authenticated .wide-card {
  grid-column: 1 / -1 !important;
}

body.is-authenticated .card h3 {
  margin: 0 0 6px !important;
}

body.is-authenticated .card p {
  margin-top: 6px;
  margin-bottom: 8px;
  line-height: 1.42;
}

body.is-authenticated .eyebrow {
  margin-bottom: 5px !important;
}

.compact-page-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 0 !important;
  background: rgba(255,255,255,.035) !important;
}

.compact-page-intro-copy {
  min-width: 0;
}

.compact-page-intro-copy h3 {
  font-size: clamp(1.25rem, 2vw, 1.8rem) !important;
}

.compact-page-description {
  max-width: 82ch;
  color: var(--muted);
}

.compact-page-actions,
.compact-mission-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

.compact-stat-card {
  grid-column: span 3 !important;
  min-height: 0 !important;
  padding: 13px 15px !important;
}

.compact-stat-card span,
.compact-stat-card small {
  display: block;
  color: var(--muted);
}

.compact-stat-card strong {
  font-size: clamp(1.35rem, 2.2vw, 2rem) !important;
  line-height: 1.05;
  margin: 4px 0 3px;
}

.compact-stat-card small {
  font-size: .76rem;
  line-height: 1.3;
}

.compact-status-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 0;
  padding: 0 !important;
  overflow: hidden;
}

.compact-status-strip > div {
  min-width: 0;
  padding: 13px 16px;
  border-right: 1px solid var(--line);
}
.compact-status-strip > div:last-child { border-right: 0; }
.compact-status-strip span,
.compact-status-strip small { display:block; color:var(--muted); }
.compact-status-strip strong { display:block; margin-top:3px; color:var(--gold-2); font-size:1.35rem; }
.compact-status-strip small { margin-top:2px; font-size:.74rem; }

.compact-workflow-disclosure,
.compact-help-card,
.compact-info-disclosure {
  padding: 0 !important;
  overflow: hidden;
}

.compact-workflow-disclosure > summary,
.compact-help-card > summary,
.compact-info-disclosure > summary,
.compact-inline-details > summary {
  list-style: none;
  cursor: pointer;
}

.compact-workflow-disclosure > summary::-webkit-details-marker,
.compact-help-card > summary::-webkit-details-marker,
.compact-info-disclosure > summary::-webkit-details-marker,
.compact-inline-details > summary::-webkit-details-marker { display:none; }

.compact-workflow-disclosure > summary,
.compact-help-card > summary {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:14px 16px;
}

.compact-summary-main { display:grid; gap:2px; }
.compact-summary-main small {
  color:var(--gold-2);
  text-transform:uppercase;
  letter-spacing:.08em;
  font-size:.7rem;
}
.compact-summary-main strong { color:var(--text); font-size:1rem; }
.compact-summary-toggle { color:var(--gold-2); font-size:.78rem; white-space:nowrap; }

.compact-workflow-disclosure[open] > summary,
.compact-help-card[open] > summary { border-bottom:1px solid var(--line); }
.compact-disclosure-body,
.compact-help-body { padding:14px 16px 16px; }
.compact-form-note { margin-top:0 !important; }

.compact-info-disclosure > summary {
  padding:11px 14px;
  color:var(--muted);
  font-weight:560;
}
.compact-info-disclosure[open] > summary { border-bottom:1px solid var(--line); color:var(--text); }
.compact-info-disclosure > p { padding:0 14px 12px; }

.compact-mission-card { padding:14px 16px !important; }
.compact-mission-main {
  display:grid;
  grid-template-columns:minmax(0,1fr) auto auto;
  gap:14px;
  align-items:center;
}
.compact-mission-progress { min-width:72px; text-align:center; }
.compact-mission-progress strong { display:block; color:var(--gold-2); font-size:1.25rem; }
.compact-mission-progress span { color:var(--muted); font-size:.72rem; }
.compact-inline-details { margin-top:10px; border-top:1px solid var(--line); padding-top:9px; }
.compact-inline-details > summary { color:var(--muted); font-size:.8rem; }

.compact-beta-data-bar {
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  gap:14px;
}
.compact-beta-data-bar .form-result { grid-column:1/-1; margin:0; }

/* Keep search/filter controls; remove repeated explanatory marketing blocks inside them. */
body.is-authenticated .core-master-readiness-card .section-heading > p:not(.eyebrow),
body.is-authenticated .core-master-readiness-card .readiness-risk-grid {
  display:none !important;
}
body.is-authenticated .core-master-readiness-card .section-heading { margin-bottom:10px; }

/* The sidebar no longer repeats screen instructions under Ask TICA. */
#ticaSidebarPanel > p { display:none !important; }

/* Reduce oversized empty-space patterns across work screens. */
body.is-authenticated .readiness-risk-grid,
body.is-authenticated .task-coach-grid,
body.is-authenticated .metrics-grid {
  gap:10px !important;
}
body.is-authenticated .readiness-risk-grid > div {
  min-height:0 !important;
  padding:12px !important;
}

/* Forms are hidden behind one clear action disclosure until needed. */
body.is-authenticated details.action-card { grid-column:1/-1 !important; }
body.is-authenticated details.action-card .workflow-form { margin-top:8px; }

/* Tables and real records should dominate the workspace. */
body.is-authenticated .data-table-wrap,
body.is-authenticated .table-wrap { margin-top:8px; }
body.is-authenticated .data-table th,
body.is-authenticated .data-table td { padding-top:9px !important; padding-bottom:9px !important; }

/* Remove redundant prose in specific record/table headings. */
.purchase-orders-table-heading p.muted { display:none !important; }

@media (max-width: 1100px) {
  .compact-stat-card { grid-column:span 6 !important; }
  .compact-status-strip { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .compact-status-strip > div:nth-child(2) { border-right:0; }
  .compact-status-strip > div:nth-child(-n+2) { border-bottom:1px solid var(--line); }
  .compact-mission-main { grid-template-columns:1fr auto; }
  .compact-mission-actions { grid-column:1/-1; justify-content:flex-start; }
}

@media (max-width: 720px) {
  .compact-page-intro,
  .compact-beta-data-bar { display:block; }
  .compact-page-actions { justify-content:flex-start; margin-top:10px; }
  .compact-stat-card { grid-column:1/-1 !important; }
  .compact-status-strip { grid-template-columns:1fr; }
  .compact-status-strip > div { border-right:0 !important; border-bottom:1px solid var(--line); }
  .compact-status-strip > div:last-child { border-bottom:0; }
  .compact-mission-main { grid-template-columns:1fr; }
  .compact-mission-progress { text-align:left; }
}


/* ============================================================
   v51.12.0 — Search TICS Header Clearance & Route Reset
   Keep the accepted vertical search layout fully below the sticky page header.
   ============================================================ */
body.is-authenticated[data-route="data-explorer"] .topbar {
  margin-bottom: 12px !important;
}

/* Search TICS has its own dedicated search field; hide the generic header search
   on this route so the user sees one clear search box rather than two. */
body.is-authenticated[data-route="data-explorer"] .topbar-search {
  display: none !important;
}

body.is-authenticated[data-route="data-explorer"] #content {
  position: relative;
  z-index: 1;
}

body.is-authenticated[data-route="data-explorer"] .vertical-search-shell {
  margin-top: 0 !important;
}


/* =========================================================
   v51.13.0 — Internal Messaging & Collaboration Center Foundation
   ========================================================= */
.messaging-center-layout {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.55fr);
  gap: 12px;
  align-items: stretch;
}
.message-thread-list-panel,
.message-thread-detail-panel {
  min-width: 0;
}
.message-thread-list {
  display: grid;
  gap: 7px;
  max-height: 58vh;
  overflow: auto;
  padding-right: 2px;
}
.message-thread-row {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  text-align: left;
  border: 1px solid rgba(206, 164, 83, 0.26);
  background: rgba(5, 17, 29, 0.76);
  color: var(--text, #f5f0df);
  border-radius: 12px;
  padding: 11px 12px;
  cursor: pointer;
}
.message-thread-row:hover,
.message-thread-row.active {
  border-color: rgba(239, 190, 91, 0.8);
  background: rgba(31, 45, 57, 0.92);
}
.message-thread-title,
.message-thread-meta {
  min-width: 0;
  display: grid;
  gap: 3px;
}
.message-thread-title strong,
.message-thread-meta small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.message-thread-title small,
.message-thread-meta,
.message-linked-record,
.message-guardrail-note {
  color: var(--muted, #9eacba);
  font-size: 0.82rem;
}
.message-thread-meta {
  text-align: right;
}
.message-thread-detail-panel {
  display: flex;
  flex-direction: column;
  min-height: 520px;
}
.message-thread-detail-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  border-bottom: 1px solid rgba(206, 164, 83, 0.2);
  padding-bottom: 10px;
  margin-bottom: 10px;
}
.message-thread-detail-header h3 { margin: 2px 0 4px; }
.message-bubble-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  overflow: auto;
  max-height: 42vh;
  padding: 2px 4px 8px 0;
}
.message-bubble {
  width: min(78%, 760px);
  border: 1px solid rgba(206, 164, 83, 0.24);
  background: rgba(6, 20, 33, 0.82);
  border-radius: 14px 14px 14px 4px;
  padding: 10px 12px;
}
.message-bubble.mine {
  align-self: flex-end;
  border-radius: 14px 14px 4px 14px;
  background: rgba(55, 46, 27, 0.56);
  border-color: rgba(239, 190, 91, 0.48);
}
.message-bubble header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 5px;
  font-size: 0.78rem;
  color: var(--muted, #9eacba);
}
.message-bubble p { margin: 0; line-height: 1.5; white-space: pre-wrap; }
.message-reply-form {
  margin-top: auto;
  border-top: 1px solid rgba(206, 164, 83, 0.2);
  padding-top: 10px;
}
.message-reply-field textarea { min-height: 78px; }
.message-compose-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.message-compose-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 9px;
}
.compact-message-search { margin: 8px 0 10px; }
.message-guardrail-note {
  grid-column: 1 / -1;
  margin: 0;
  padding: 3px 2px;
}
.messaging-status-strip { grid-column: 1 / -1; }
@media (max-width: 1050px) {
  .messaging-center-layout { grid-template-columns: 1fr; }
  .message-thread-detail-panel { min-height: 460px; }
  .message-compose-grid { grid-template-columns: 1fr; }
}


/* =========================================================
   v51.14.0 — Messaging Notifications, Searchable Recipients & TICA Thread Summaries
   ========================================================= */
.message-icon-action {
  position: relative;
}
.message-icon-action.has-unread {
  border-color: rgba(245, 194, 88, 0.92) !important;
  box-shadow: 0 0 0 3px rgba(216, 161, 58, 0.10), 0 0 22px rgba(216, 161, 58, 0.18) !important;
}
.message-unread-badge {
  position: absolute;
  top: -6px;
  right: -7px;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 2px solid #071421;
  background: #e3a83a;
  color: #07111d;
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1;
}
.message-unread-badge[hidden] { display: none !important; }
.message-thread-row.unread {
  border-left: 4px solid #e7b34d;
  background: rgba(40, 48, 48, 0.92);
}
.message-thread-signals,
.message-bubble-signals,
.message-thread-header-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.message-thread-signals { margin-top: 4px; }
.message-signal {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 3px 7px;
  border: 1px solid rgba(214, 170, 83, 0.32);
  border-radius: 999px;
  background: rgba(19, 31, 42, 0.92);
  color: #d6e0e8;
  font-size: 0.69rem;
  font-style: normal;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.035em;
}
.message-signal.unread,
.message-signal.mention { color: #f5d58d; border-color: rgba(239, 190, 91, 0.6); }
.message-signal.priority.high { color: #f3c778; }
.message-signal.priority.urgent { color: #ffae8f; border-color: rgba(255, 128, 90, 0.62); }
.message-signal.action-open { color: #f2d79b; }
.message-signal.resolved { color: #a8e7be; border-color: rgba(99, 203, 139, 0.45); }
.message-bubble-signals { margin-top: 8px; }
.message-bubble-signals span {
  color: var(--muted, #9eacba);
  font-size: 0.72rem;
}
.message-recipient-picker { position: relative; z-index: 7; }
.message-recipient-suggestions {
  position: absolute;
  z-index: 20;
  top: calc(100% - 18px);
  left: 0;
  right: 0;
  display: grid;
  gap: 4px;
  max-height: 280px;
  overflow: auto;
  padding: 7px;
  border: 1px solid rgba(225, 181, 91, 0.5);
  border-radius: 10px;
  background: #081725;
  box-shadow: 0 18px 38px rgba(0,0,0,.48);
}
.message-recipient-suggestions[hidden] { display: none !important; }
.message-recipient-suggestion {
  display: grid;
  gap: 2px;
  width: 100%;
  padding: 9px 10px;
  text-align: left;
  border: 1px solid transparent;
  border-radius: 8px;
  background: rgba(12, 30, 45, 0.82);
  color: var(--text, #f5f0df);
  cursor: pointer;
}
.message-recipient-suggestion:hover,
.message-recipient-suggestion:focus {
  border-color: rgba(239, 190, 91, 0.68);
  background: rgba(45, 49, 43, 0.94);
}
.message-recipient-suggestion span,
.message-recipient-suggestion small,
.message-recipient-empty,
#messageRecipientHint {
  color: var(--muted, #9eacba);
  font-size: 0.76rem;
}
.tica-thread-summary {
  display: grid;
  gap: 6px;
  margin: 0 0 10px;
  padding: 10px 12px;
  border: 1px solid rgba(213, 170, 82, 0.30);
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(20, 38, 51, 0.88), rgba(9, 24, 37, 0.86));
}
.tica-thread-summary p { margin: 0; line-height: 1.42; }
.message-thread-header-actions { justify-content: flex-end; }
@media (max-width: 760px) {
  .message-thread-detail-header { flex-direction: column; }
  .message-thread-header-actions { justify-content: flex-start; }
}


/* =========================================================
   v51.15.0 — Email-Style Messaging Center Redesign
   Familiar three-pane mail client: folders, message list, reading pane.
   ========================================================= */
.email-message-center {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 188px minmax(290px, 0.78fr) minmax(430px, 1.45fr);
  min-height: 610px;
  max-height: calc(100vh - 190px);
  overflow: hidden;
  border: 1px solid rgba(206, 164, 83, 0.28);
  border-radius: 16px;
  background: rgba(5, 16, 27, 0.82);
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.26);
}
.email-mailbox-sidebar,
.email-thread-column,
.email-reading-pane { min-width: 0; min-height: 0; }
.email-mailbox-sidebar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 12px;
  border-right: 1px solid rgba(206, 164, 83, 0.18);
  background: linear-gradient(180deg, rgba(8, 26, 40, 0.98), rgba(5, 17, 29, 0.96));
}
.email-mailbox-heading h3 { margin: 2px 0 0; font-size: 1.25rem; }
.email-compose-shell { position: relative; }
.email-compose-shell > summary { list-style: none; }
.email-compose-shell > summary::-webkit-details-marker { display: none; }
.email-compose-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid rgba(229, 182, 88, 0.72);
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(191, 137, 44, 0.95), rgba(228, 176, 74, 0.94));
  color: #09131d;
  font-weight: 900;
  cursor: pointer;
}
.email-compose-floating {
  position: fixed;
  z-index: 140;
  right: 26px;
  bottom: 24px;
  width: min(680px, calc(100vw - 52px));
  max-height: calc(100vh - 96px);
  overflow: auto;
  padding: 16px;
  border: 1px solid rgba(231, 183, 88, 0.62);
  border-radius: 14px;
  background: #071624;
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.58);
}
.email-compose-floating > header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(206, 164, 83, 0.2);
}
.email-compose-floating > header h3 { margin: 2px 0 0; }
.email-compose-floating > header span { color: var(--muted, #9eacba); font-size: 0.76rem; }
.email-mailbox-folders { display: grid; gap: 3px; }
.email-mailbox-folder {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #c7d1da;
  text-align: left;
  cursor: pointer;
}
.email-mailbox-folder:hover,
.email-mailbox-folder.active {
  border-color: rgba(219, 173, 82, 0.34);
  background: rgba(205, 157, 65, 0.12);
  color: #f4d48d;
}
.email-mailbox-folder strong {
  min-width: 24px;
  text-align: right;
  font-size: 0.76rem;
  color: #d7e1e8;
}
.email-mailbox-security {
  margin-top: auto;
  padding: 10px;
  border-top: 1px solid rgba(206, 164, 83, 0.16);
  color: var(--muted, #9eacba);
  font-size: 0.72rem;
  line-height: 1.4;
}
.email-mailbox-security strong,
.email-mailbox-security span { display: block; }
.email-thread-column {
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(206, 164, 83, 0.18);
  background: rgba(5, 19, 31, 0.72);
}
.email-thread-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 70px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(206, 164, 83, 0.18);
}
.email-thread-toolbar h3 { margin: 0; font-size: 1.05rem; }
.email-thread-toolbar span { color: var(--muted, #9eacba); font-size: 0.74rem; }
.email-thread-search { width: min(210px, 52%); }
.email-thread-search input {
  width: 100%;
  min-height: 36px;
  padding: 8px 10px;
  border: 1px solid rgba(206, 164, 83, 0.28);
  border-radius: 9px;
  background: rgba(4, 15, 25, 0.85);
  color: var(--text, #f5f0df);
}
.email-thread-list {
  flex: 1;
  min-height: 0;
  overflow: auto;
}
.email-thread-row {
  position: relative;
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr);
  gap: 8px;
  width: 100%;
  padding: 12px 12px 11px;
  border: 0;
  border-bottom: 1px solid rgba(206, 164, 83, 0.13);
  background: transparent;
  color: var(--text, #f5f0df);
  text-align: left;
  cursor: pointer;
}
.email-thread-row:hover { background: rgba(255, 255, 255, 0.035); }
.email-thread-row.active { background: rgba(213, 164, 67, 0.13); box-shadow: inset 3px 0 0 #d8a84a; }
.email-thread-row.unread .email-thread-subject,
.email-thread-row.unread .email-thread-line-one strong { color: #fff3cf; font-weight: 900; }
.email-thread-unread-dot {
  width: 7px;
  height: 7px;
  margin-top: 6px;
  border-radius: 50%;
  background: transparent;
}
.email-thread-row.unread .email-thread-unread-dot { background: #e6ad40; box-shadow: 0 0 8px rgba(230, 173, 64, 0.5); }
.email-thread-copy { min-width: 0; display: grid; gap: 3px; }
.email-thread-line-one { display: flex; justify-content: space-between; gap: 8px; min-width: 0; }
.email-thread-line-one strong,
.email-thread-line-one time,
.email-thread-subject,
.email-thread-preview { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.email-thread-line-one strong { font-size: 0.81rem; }
.email-thread-line-one time { flex: 0 0 auto; color: var(--muted, #9eacba); font-size: 0.68rem; }
.email-thread-subject { color: #dbe5ec; font-size: 0.84rem; font-weight: 750; }
.email-thread-preview { color: var(--muted, #9eacba); font-size: 0.74rem; }
.email-thread-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-top: 3px; }
.email-thread-tags small { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #8fa0ae; font-size: 0.66rem; }
.email-thread-tags .message-signal { min-height: 18px; padding: 2px 5px; font-size: 0.58rem; }
.email-mailbox-empty {
  margin: auto;
  padding: 24px;
  color: var(--muted, #9eacba);
  text-align: center;
}
.email-reading-pane {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: rgba(7, 22, 35, 0.82);
}
.email-reading-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px 13px;
  border-bottom: 1px solid rgba(206, 164, 83, 0.18);
}
.email-reading-subject { min-width: 0; }
.email-reading-subject h2 { margin: 2px 0 6px; font-size: clamp(1.1rem, 1.8vw, 1.55rem); line-height: 1.2; }
.email-reading-subject .message-linked-record { margin: 7px 0 0; }
.email-message-stack {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 4px 18px 14px;
}
.email-message-card {
  padding: 15px 0 16px;
  border-bottom: 1px solid rgba(206, 164, 83, 0.15);
}
.email-message-card.mine { background: linear-gradient(90deg, rgba(220, 170, 70, 0.035), transparent 55%); }
.email-message-header {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  margin-bottom: 11px;
}
.email-sender-avatar {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(216, 171, 80, 0.45);
  border-radius: 50%;
  background: rgba(209, 161, 64, 0.14);
  color: #f1cf83;
  font-weight: 900;
}
.email-message-addresses { min-width: 0; display: grid; gap: 1px; }
.email-message-addresses strong { color: #f2ead7; }
.email-message-addresses span,
.email-message-header time { color: var(--muted, #9eacba); font-size: 0.7rem; }
.email-message-body { color: #dbe4ea; line-height: 1.58; white-space: pre-wrap; }
.email-message-flags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.email-message-flags span { color: #d4bd86; font-size: 0.7rem; }
.email-tica-summary {
  margin: 10px 18px 0;
  border: 1px solid rgba(206, 164, 83, 0.24);
  border-radius: 9px;
  background: rgba(13, 31, 44, 0.74);
}
.email-tica-summary > summary {
  padding: 9px 11px;
  color: #dcc17f;
  font-size: 0.78rem;
  font-weight: 850;
  cursor: pointer;
}
.email-tica-summary-body { display: grid; gap: 5px; padding: 0 11px 11px; }
.email-tica-summary-body p { margin: 0; color: #c7d2da; line-height: 1.45; }
.email-reply-form {
  margin: 0 18px 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(206, 164, 83, 0.18);
}
.email-reply-field textarea { min-height: 76px; }
.email-reading-empty {
  margin: auto;
  display: grid;
  gap: 6px;
  padding: 32px;
  text-align: center;
  color: var(--muted, #9eacba);
}
.email-reading-empty strong { color: #d9e2e8; font-size: 1rem; }
.message-guardrail-note { grid-column: 1 / -1; }
@media (max-width: 1180px) {
  .email-message-center { grid-template-columns: 170px minmax(280px, 0.9fr) minmax(360px, 1.2fr); }
}
@media (max-width: 930px) {
  .email-message-center { grid-template-columns: 160px minmax(0, 1fr); max-height: none; overflow: visible; }
  .email-reading-pane { grid-column: 1 / -1; min-height: 520px; border-top: 1px solid rgba(206, 164, 83, 0.18); }
  .email-thread-column { border-right: 0; }
}
@media (max-width: 680px) {
  .email-message-center { display: block; max-height: none; }
  .email-mailbox-sidebar { border-right: 0; border-bottom: 1px solid rgba(206, 164, 83, 0.18); }
  .email-mailbox-folders { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .email-thread-column { min-height: 430px; border-bottom: 1px solid rgba(206, 164, 83, 0.18); }
  .email-reading-pane { min-height: 560px; }
  .email-reading-header { flex-direction: column; }
  .email-thread-toolbar { align-items: stretch; flex-direction: column; }
  .email-thread-search { width: 100%; }
  .email-compose-floating { right: 10px; bottom: 10px; width: calc(100vw - 20px); max-height: calc(100vh - 20px); }
}


/* =========================================================
   v51.17.0 — Team channels and human task follow-up
   ========================================================= */
.email-channel-section { display: grid; gap: 6px; padding-top: 10px; border-top: 1px solid rgba(206, 164, 83, 0.16); }
.email-channel-section > strong { padding: 0 10px; color: #9eacba; font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; }
.email-channel-folder span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.message-signal.channel { color: #a9d8ef; border-color: rgba(100, 181, 220, 0.38); }
.message-signal.overdue { color: #ffb09b; border-color: rgba(255, 128, 90, 0.62); }
.email-task-followup { margin: 10px 18px 0; border: 1px solid rgba(206, 164, 83, 0.22); border-radius: 9px; background: rgba(10, 27, 39, 0.78); }
.email-task-followup > summary { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 9px 11px; cursor: pointer; list-style: none; }
.email-task-followup > summary::-webkit-details-marker { display: none; }
.email-task-followup > summary span { color: #9eacba; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; }
.email-task-followup > summary strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #e8dfca; font-size: 0.78rem; }
.email-task-followup > summary em { color: #ffb09b; font-size: 0.68rem; font-style: normal; font-weight: 900; text-transform: uppercase; }
.message-task-form { padding: 0 11px 11px; }
.message-task-grid { grid-template-columns: minmax(0, 1.5fr) minmax(170px, 0.8fr) minmax(145px, 0.6fr); }
@media (max-width: 760px) { .message-task-grid { grid-template-columns: 1fr; } }


/* =========================================================
   v51.17.0 — Collaboration polish and workflow notifications
   ========================================================= */
.workflow-notification-action {
  position: relative;
}
.workflow-notification-action.has-attention {
  border-color: rgba(245, 194, 88, 0.92) !important;
  box-shadow: 0 0 0 3px rgba(216, 161, 58, 0.10), 0 0 20px rgba(216, 161, 58, 0.16) !important;
}
.workflow-notification-badge {
  position: absolute;
  top: -6px;
  right: -7px;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 2px solid #071421;
  background: #e3a83a;
  color: #07111d;
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1;
}
.workflow-notification-badge[hidden] { display: none !important; }
.workflow-notification-popover {
  position: fixed;
  z-index: 190;
  top: 72px;
  right: 22px;
  width: min(430px, calc(100vw - 28px));
  max-height: min(620px, calc(100vh - 92px));
  overflow: hidden;
  border: 1px solid rgba(222, 174, 78, 0.55);
  border-radius: 13px;
  background: #071624;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.58);
}
.workflow-notification-popover[hidden] { display: none !important; }
.workflow-notification-header,
.workflow-notification-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 13px;
  border-bottom: 1px solid rgba(206, 164, 83, 0.18);
}
.workflow-notification-header > div { display: grid; gap: 1px; }
.workflow-notification-header strong { color: #f2d38c; font-size: 0.96rem; }
.workflow-notification-header span,
.workflow-notification-footer span { color: #98a8b5; font-size: 0.7rem; }
.workflow-notification-header button,
.workflow-notification-footer button {
  border: 0;
  background: transparent;
  color: #d8bb78;
  cursor: pointer;
  font-weight: 850;
}
.workflow-notification-header button { font-size: 1.25rem; line-height: 1; }
.workflow-notification-list {
  max-height: 470px;
  overflow: auto;
}
.workflow-notification-row {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr);
  gap: 9px;
  width: 100%;
  padding: 11px 13px;
  border: 0;
  border-bottom: 1px solid rgba(206, 164, 83, 0.12);
  background: transparent;
  color: #e7edf1;
  text-align: left;
  cursor: pointer;
}
.workflow-notification-row:hover { background: rgba(216, 161, 58, 0.08); }
.workflow-notification-dot {
  width: 7px;
  height: 7px;
  margin-top: 5px;
  border-radius: 50%;
  background: #d9a74a;
  box-shadow: 0 0 8px rgba(217, 167, 74, 0.38);
}
.workflow-notification-row.severity-5 .workflow-notification-dot { background: #ff826e; box-shadow: 0 0 9px rgba(255, 130, 110, 0.48); }
.workflow-notification-row.severity-4 .workflow-notification-dot { background: #ffc45c; }
.workflow-notification-copy { min-width: 0; display: grid; gap: 3px; }
.workflow-notification-copy strong { color: #f2ead8; font-size: 0.8rem; line-height: 1.35; }
.workflow-notification-copy small { color: #9eacb7; font-size: 0.7rem; line-height: 1.35; }
.workflow-notification-empty {
  display: grid;
  gap: 4px;
  padding: 26px 18px;
  color: #9eacb7;
  text-align: center;
}
.workflow-notification-empty strong { color: #dce5eb; }
.workflow-notification-footer {
  border-top: 1px solid rgba(206, 164, 83, 0.18);
  border-bottom: 0;
  background: rgba(3, 14, 23, 0.55);
}
.workflow-notification-footer button { flex: 0 0 auto; color: #e1bd70; font-size: 0.72rem; }
@media (max-width: 680px) {
  .workflow-notification-popover { top: 66px; right: 8px; width: calc(100vw - 16px); }
}

/* v51.18.0 SaaS & Commercial Readiness */
.saas-readiness-shell .compact-copy{max-width:980px;margin:.35rem 0 0;}
.saas-readiness-shell .status-pill{white-space:nowrap;}
@media (max-width:760px){.saas-readiness-shell .section-heading-row{align-items:flex-start;}.saas-readiness-shell .status-pill{white-space:normal;}}


/* v51.19.0 Industry Templates & Implementation Packs + SaaS readability fix */
.saas-readable-table .table-wrap,
.industry-pack-table .table-wrap {
  overflow-x: auto;
}
.saas-readable-table .data-table,
.industry-pack-table .data-table {
  table-layout: fixed;
  width: 100%;
}
.saas-readable-table .data-table th,
.saas-readable-table .data-table td,
.industry-pack-table .data-table th,
.industry-pack-table .data-table td {
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
  min-width: 0;
  line-height: 1.45;
}
.saas-tenant-table .data-table th:nth-child(1),
.saas-tenant-table .data-table td:nth-child(1) { width: 42%; }
.saas-tenant-table .data-table th:nth-child(2),
.saas-tenant-table .data-table td:nth-child(2) { width: 18%; }
.saas-tenant-table .data-table th:nth-child(3),
.saas-tenant-table .data-table td:nth-child(3) { width: 22%; }
.saas-tenant-table .data-table th:nth-child(4),
.saas-tenant-table .data-table td:nth-child(4) { width: 18%; }
.industry-packs-shell .compact-copy { max-width: 1040px; margin: .35rem 0 0; }
.industry-pack-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}
.industry-pack-card {
  min-width: 0;
  border: 1px solid rgba(240,197,111,.18);
  border-radius: 16px;
  padding: 16px;
  background: rgba(2,10,19,.34);
}
.industry-pack-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.industry-pack-card-head h4 { margin: 0; color: #fff4d8; }
.industry-pack-card p { margin: .45rem 0 .75rem; color: var(--muted); line-height: 1.55; }
.industry-pack-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 12px; }
.industry-pack-tags span {
  border: 1px solid rgba(240,197,111,.22);
  border-radius: 999px;
  padding: 4px 8px;
  font-size: .72rem;
  color: var(--gold-2);
  background: rgba(240,197,111,.06);
}
.industry-pack-facts { display: grid; gap: 10px; margin: 0; }
.industry-pack-facts div { display: grid; gap: 3px; }
.industry-pack-facts dt { color: var(--gold-2); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 800; }
.industry-pack-facts dd { margin: 0; color: var(--muted); line-height: 1.45; overflow-wrap: anywhere; }
.industry-pack-subline { display: block; margin-top: 4px; color: var(--muted); }
.industry-pack-table .data-table th:nth-child(1),
.industry-pack-table .data-table td:nth-child(1) { width: 19%; }
.industry-pack-table .data-table th:nth-child(2),
.industry-pack-table .data-table td:nth-child(2) { width: 22%; }
.industry-pack-table .data-table th:nth-child(3),
.industry-pack-table .data-table td:nth-child(3) { width: 30%; }
.industry-pack-table .data-table th:nth-child(4),
.industry-pack-table .data-table td:nth-child(4) { width: 29%; }
@media (max-width: 1180px) {
  .industry-pack-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .industry-pack-grid { grid-template-columns: 1fr; }
  .saas-readable-table .data-table,
  .industry-pack-table .data-table { table-layout: auto; min-width: 760px; }
}


/* v51.20.0 — Industry pack onboarding and pilot validation */
.pack-onboarding-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}
.pack-onboarding-steps div {
  border: 1px solid rgba(244, 202, 117, .22);
  background: rgba(255,255,255,.035);
  border-radius: 14px;
  padding: 14px;
  min-height: 112px;
}
.pack-onboarding-steps strong {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: rgba(244, 202, 117, .18);
  color: var(--gold);
  margin-bottom: 10px;
}
.pack-onboarding-steps span { display: block; color: #fff4d8; font-weight: 900; margin-bottom: 6px; }
.pack-onboarding-steps small { color: var(--muted); line-height: 1.35; }
.pack-fit-meter { height: 8px; background: rgba(255,255,255,.06); border-radius: 999px; overflow: hidden; margin: 10px 0; border: 1px solid rgba(244,202,117,.16); }
.pack-fit-meter span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, rgba(244,202,117,.55), rgba(255,232,176,.9)); }
.pilot-validation-table .data-table { table-layout: fixed; width: 100%; }
.pilot-validation-table .data-table th:nth-child(1),
.pilot-validation-table .data-table td:nth-child(1) { width: 20%; }
.pilot-validation-table .data-table th:nth-child(2),
.pilot-validation-table .data-table td:nth-child(2) { width: 24%; }
.pilot-validation-table .data-table th:nth-child(3),
.pilot-validation-table .data-table td:nth-child(3) { width: 18%; }
.pilot-validation-table .data-table th:nth-child(4),
.pilot-validation-table .data-table td:nth-child(4) { width: 38%; }
.pilot-validation-table .data-table td { overflow-wrap: anywhere; white-space: normal; }
@media (max-width: 1180px) { .pack-onboarding-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) { .pack-onboarding-steps { grid-template-columns: 1fr; } }


/* v51.23.0 Pilot feedback readability + implementation decision board */
.pilot-feedback-triage-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}
.pilot-feedback-triage-card,
.owner-decision-queue-card {
  min-width: 0;
  border: 1px solid rgba(240,197,111,.2);
  border-radius: 16px;
  padding: 15px;
  background: rgba(2,10,19,.4);
  overflow: hidden;
}
.pilot-feedback-card-head,
.owner-decision-queue-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.pilot-feedback-card-head > div,
.owner-decision-queue-head > div { min-width: 0; }
.pilot-feedback-gap-id {
  display: block;
  color: var(--gold-2);
  font-weight: 900;
  letter-spacing: .035em;
  overflow-wrap: anywhere;
}
.pilot-feedback-card-head small,
.owner-decision-queue-card small {
  display: block;
  color: var(--muted);
  line-height: 1.45;
  margin-top: 3px;
}
.pilot-feedback-card-title { margin: 12px 0 10px; }
.pilot-feedback-card-title h4,
.owner-decision-queue-head h4 {
  margin: 0;
  color: var(--text);
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.pilot-feedback-card-title span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.pilot-feedback-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 10px 0;
}
.pilot-feedback-meta > div,
.owner-decision-boundary {
  min-width: 0;
  border: 1px solid rgba(240,197,111,.12);
  border-radius: 12px;
  padding: 10px;
  background: rgba(255,255,255,.018);
}
.pilot-feedback-meta span,
.pilot-feedback-copy-block > span,
.owner-decision-boundary span {
  display: block;
  color: var(--gold-2);
  font-size: .69rem;
  font-weight: 800;
  letter-spacing: .055em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.pilot-feedback-meta strong,
.owner-decision-boundary strong {
  display: block;
  color: var(--text);
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.pilot-feedback-copy-block {
  min-width: 0;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(240,197,111,.1);
}
.pilot-feedback-copy-block p,
.owner-decision-queue-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  overflow-wrap: anywhere;
  white-space: normal;
}
.pilot-feedback-copy-block.recommended p { color: var(--text); }
.owner-decision-summary-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin: 14px 0;
}
.owner-decision-summary-strip > div {
  min-width: 0;
  border: 1px solid rgba(240,197,111,.16);
  border-radius: 12px;
  padding: 10px;
  background: rgba(2,10,19,.36);
}
.owner-decision-summary-strip span {
  display: block;
  color: var(--muted);
  font-size: .7rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.owner-decision-summary-strip strong {
  display: block;
  margin-top: 4px;
  color: var(--gold-2);
  font-size: 1.2rem;
}
.owner-decision-queue-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.owner-decision-queue-card { display: grid; gap: 10px; }
.owner-decision-state {
  flex: 0 0 auto;
  max-width: 44%;
  border: 1px solid rgba(240,197,111,.28);
  border-radius: 999px;
  padding: 5px 9px;
  color: var(--gold-2);
  background: rgba(240,197,111,.07);
  font-size: .7rem;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  overflow-wrap: anywhere;
}
@media (max-width: 1100px) {
  .pilot-feedback-triage-grid,
  .owner-decision-queue-grid { grid-template-columns: 1fr; }
  .owner-decision-summary-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .pilot-feedback-meta,
  .owner-decision-summary-strip { grid-template-columns: 1fr; }
  .pilot-feedback-card-head,
  .owner-decision-queue-head { flex-direction: column; }
  .owner-decision-state { max-width: 100%; }
}


/* v51.25.0 Owner-approved refinement evidence pack & build handoff */
.refinement-handoff-summary { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.refinement-handoff-grid-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}
.refinement-handoff-card {
  min-width: 0;
  display: grid;
  gap: 12px;
  border: 1px solid rgba(240,197,111,.2);
  border-radius: 16px;
  padding: 15px;
  background: rgba(2,10,19,.4);
  overflow: hidden;
}
.refinement-handoff-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.refinement-handoff-head > div { min-width: 0; }
.refinement-handoff-head h4 { margin: 4px 0 0; overflow-wrap: anywhere; }
.refinement-handoff-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}
.refinement-handoff-grid > div,
.refinement-build-authority {
  min-width: 0;
  border: 1px solid rgba(240,197,111,.12);
  border-radius: 12px;
  padding: 10px;
  background: rgba(255,255,255,.018);
}
.refinement-handoff-grid span,
.refinement-build-authority span {
  display: block;
  color: var(--gold-2);
  font-size: .69rem;
  font-weight: 800;
  letter-spacing: .055em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.refinement-handoff-grid p,
.refinement-build-authority strong {
  display: block;
  margin: 0;
  color: var(--text);
  line-height: 1.5;
  overflow-wrap: anywhere;
  white-space: normal;
}
@media (max-width: 1100px) {
  .refinement-handoff-grid-list { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .refinement-handoff-summary,
  .refinement-handoff-grid { grid-template-columns: 1fr; }
  .refinement-handoff-head { flex-direction: column; }
  .refinement-handoff-head .owner-decision-state { max-width: 100%; }
}


/* v51.25.0 — Controlled Refinement Spec Review & Test Matrix */
.controlled-refinement-spec-summary { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.controlled-refinement-spec-list { display: grid; gap: 12px; margin-top: 14px; }
.controlled-refinement-spec-card {
  border: 1px solid rgba(212, 167, 74, .30);
  border-radius: 14px;
  background: rgba(8, 24, 38, .58);
  overflow: hidden;
}
.controlled-refinement-spec-card > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 14px;
  color: var(--text, #f4ecd9);
  font-weight: 700;
}
.controlled-refinement-spec-card > summary::-webkit-details-marker { display: none; }
.controlled-refinement-spec-card[open] > summary { border-bottom: 1px solid rgba(212, 167, 74, .20); }
.controlled-refinement-spec-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 12px 14px 14px;
}
.controlled-refinement-spec-grid > div {
  min-width: 0;
  border: 1px solid rgba(144, 177, 202, .18);
  border-radius: 10px;
  padding: 10px;
  background: rgba(255,255,255,.025);
}
.controlled-refinement-spec-grid > div.full-span { grid-column: 1 / -1; }
.controlled-refinement-spec-grid span {
  display: block;
  margin-bottom: 5px;
  color: #d8ad57;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.controlled-refinement-spec-grid p {
  margin: 0;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
@media (max-width: 900px) {
  .controlled-refinement-spec-summary,
  .controlled-refinement-spec-grid { grid-template-columns: 1fr; }
  .controlled-refinement-spec-grid > div.full-span { grid-column: auto; }
  .controlled-refinement-spec-card > summary { align-items: flex-start; flex-direction: column; }
}


/* v51.26.0 — Owner Signoff Ledger & Explicit Build Authorization Boundary */
.owner-signoff-ledger-shell {
  overflow: hidden;
}
.owner-signoff-ledger-summary {
  margin-top: 12px;
}
.owner-signoff-ledger-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}
.owner-signoff-ledger-card {
  border: 1px solid rgba(224, 178, 88, 0.28);
  border-radius: 14px;
  padding: 14px;
  background: rgba(5, 18, 31, 0.72);
  min-width: 0;
}
.owner-signoff-ledger-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.owner-signoff-ledger-head h4 {
  margin: 4px 0 0;
}
.owner-signoff-stage-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.owner-signoff-stage-strip > div {
  min-width: 0;
  border: 1px solid rgba(214, 174, 92, 0.18);
  border-radius: 10px;
  padding: 10px;
  display: grid;
  gap: 3px;
  background: rgba(255, 255, 255, 0.025);
}
.owner-signoff-stage-strip > div > span {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  font-weight: 800;
  border: 1px solid rgba(214, 174, 92, 0.4);
  color: var(--gold, #e7bd69);
}
.owner-signoff-stage-strip strong,
.owner-signoff-stage-strip small {
  overflow-wrap: anywhere;
}
.owner-signoff-stage-strip .complete {
  border-color: rgba(108, 214, 142, 0.42);
}
.owner-signoff-stage-strip .complete > span {
  border-color: rgba(108, 214, 142, 0.72);
  color: #8ee3a9;
}
.owner-signoff-stage-strip .pending {
  opacity: 0.86;
}
.owner-signoff-stage-strip .locked {
  border-color: rgba(230, 126, 113, 0.42);
}
.owner-signoff-stage-strip .locked > span {
  border-color: rgba(230, 126, 113, 0.7);
  color: #f0a093;
}
@media (max-width: 1050px) {
  .owner-signoff-stage-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .owner-signoff-ledger-head {
    flex-direction: column;
  }
  .owner-signoff-stage-strip {
    grid-template-columns: 1fr;
  }
}


/* v52.0.0 — Enterprise Pilot Readiness & Guided Implementation */
.authorized-build-intake-shell { overflow: hidden; }
.authorized-build-intake-summary { margin-top: 12px; }
.authorized-build-intake-list { display: grid; gap: 12px; margin-top: 14px; }
.authorized-build-intake-card {
  min-width: 0;
  border: 1px solid rgba(224, 178, 88, .26);
  border-radius: 14px;
  padding: 14px;
  background: rgba(5, 18, 31, .68);
}
.authorized-build-intake-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.authorized-build-intake-head h4 { margin: 4px 0 0; overflow-wrap: anywhere; }
.authorized-build-intake-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.authorized-build-intake-grid > div {
  min-width: 0;
  border: 1px solid rgba(214, 174, 92, .15);
  border-radius: 10px;
  padding: 10px;
  background: rgba(255,255,255,.025);
}
.authorized-build-intake-grid span {
  display: block;
  color: var(--gold-2);
  font-size: .69rem;
  font-weight: 800;
  letter-spacing: .055em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.authorized-build-intake-grid strong { display: block; overflow-wrap: anywhere; }
@media (max-width: 1000px) {
  .authorized-build-intake-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 650px) {
  .authorized-build-intake-head { flex-direction: column; }
  .authorized-build-intake-grid { grid-template-columns: 1fr; }
}


/* v52.0.0 — Enterprise Pilot Readiness & Guided Implementation */
.implementation-progress{height:8px;border-radius:999px;background:rgba(255,255,255,.08);overflow:hidden;margin:.7rem 0 1rem}.implementation-progress span{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#b99044,#e0c06c)}.implementation-progress.compact{height:5px;min-width:100px;margin:.35rem 0 0}.enterprise-guided-implementation-card table td{vertical-align:top}.enterprise-pilot-hero{padding-bottom:1rem}.enterprise-pilot-status{margin-bottom:1rem}.enterprise-pilot-priority-grid{grid-template-columns:repeat(auto-fit,minmax(240px,1fr))}.enterprise-pilot-priority-card{min-height:150px}.pilot-blocker-chip{display:inline-block;padding:.2rem .45rem;margin:.1rem;border:1px solid rgba(224,192,108,.35);border-radius:999px;font-size:.72rem;color:#e6d3a2;background:rgba(185,144,68,.08)}.enterprise-import-preview .table-wrap{max-height:360px;overflow:auto}.csv-validation-strip{margin:.7rem 0}.enterprise-import-preview td small{display:block;max-width:260px;white-space:normal}.compact-guidance-card{padding-top:1rem;padding-bottom:1rem}.enterprise-pilot-hero .button-row,.enterprise-import-readiness-card .button-row{display:flex;gap:.65rem;flex-wrap:wrap;margin-top:1rem}@media(max-width:900px){.enterprise-pilot-status{grid-template-columns:repeat(2,minmax(0,1fr))}.enterprise-pilot-priority-grid{grid-template-columns:1fr}}


/* v53.0.0 — Advanced Procurement, Vendor Catalogs & Contract Pricing */
.csv-import-status-banner{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.85rem 1rem;margin:.7rem 0;border-radius:14px;border:1px solid rgba(224,192,108,.28);background:rgba(4,20,36,.86)}
.csv-import-status-banner[hidden]{display:none}
.csv-import-status-banner strong{color:#f3d98d}.csv-import-status-banner span{color:var(--muted,#a8b8c8);font-size:.9rem;text-align:right}
.csv-import-status-banner.success{border-color:rgba(93,210,145,.45);background:rgba(21,92,61,.16)}
.csv-import-status-banner.review{border-color:rgba(241,176,75,.45);background:rgba(107,69,14,.18)}
.csv-import-status-banner.loading{border-color:rgba(120,174,255,.45);background:rgba(30,72,120,.16)}
.csv-action-row button:disabled{opacity:.45;cursor:not-allowed;filter:saturate(.45)}
.csv-preview-target{scroll-margin-top:110px}
.advanced-procurement-card{border-color:rgba(224,192,108,.32);background:linear-gradient(135deg,rgba(185,144,68,.07),rgba(3,17,31,.94))}
.advanced-procurement-card .compact-status-strip{margin-top:1rem}
@media(max-width:760px){.csv-import-status-banner{align-items:flex-start;flex-direction:column}.csv-import-status-banner span{text-align:left}}


/* v54.0.0 — Forecasting, shortage intelligence & TICA decision support */
.forecast-command-card,
.forecast-table-card { grid-column: 1 / -1; min-width: 0; }
.forecast-brief-list { display: grid; gap: 8px; }
.forecast-brief-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 10px 12px; border: 1px solid rgba(255,255,255,.08); border-radius: 10px; background: rgba(255,255,255,.025); }
.forecast-brief-row > div:first-child { min-width: 0; display: grid; gap: 3px; }
.forecast-brief-row strong { overflow-wrap: anywhere; }
.forecast-brief-row span { color: var(--text-muted, #aeb7c7); line-height: 1.35; }
.forecast-brief-meta { display: grid; justify-items: end; gap: 4px; text-align: right; }
.forecast-brief-meta small { color: var(--text-muted, #aeb7c7); white-space: nowrap; }
.forecast-filter-grid { display: grid; grid-template-columns: minmax(280px, 1fr) minmax(220px, .42fr); gap: 12px; margin: 10px 0 8px; }
.forecast-risk-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 70px; padding: 3px 8px; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: .02em; border: 1px solid rgba(255,255,255,.12); }
.forecast-risk-badge.risk-critical { color: #ffd8d8; background: rgba(196, 53, 53, .2); border-color: rgba(255, 101, 101, .38); }
.forecast-risk-badge.risk-high { color: #ffe7c2; background: rgba(194, 111, 33, .2); border-color: rgba(255, 174, 87, .38); }
.forecast-risk-badge.risk-medium { color: #fff1b7; background: rgba(178, 143, 28, .18); border-color: rgba(235, 199, 71, .34); }
.forecast-risk-badge.risk-stable { color: #c8f7df; background: rgba(35, 139, 89, .18); border-color: rgba(83, 204, 140, .34); }
.forecast-covered-note { color: #8ee3b5; font-weight: 700; }
.forecast-vendor-risk-note { color: #ffb3a7; font-weight: 700; }
.forecast-negative strong { color: #ff9f92; }
.forecast-positive strong { color: #9de5bc; }
.forecast-recommendation-cell { min-width: 240px; line-height: 1.35; }
.forecast-risk-note { margin: 10px 0 0; padding: 9px 11px; border-left: 3px solid rgba(255, 177, 77, .7); background: rgba(255, 177, 77, .06); border-radius: 6px; }
.forecast-table-wrap { max-width: 100%; overflow-x: auto; }
.forecast-table { width: 100%; min-width: 1220px; table-layout: auto; }
.forecast-table th, .forecast-table td { vertical-align: top; }
@media (max-width: 980px) {
  .forecast-filter-grid { grid-template-columns: 1fr; }
  .forecast-brief-row { grid-template-columns: 1fr; }
  .forecast-brief-meta { justify-items: start; text-align: left; }
}


/* v55.0.0 — Production Hardening, Billing & Commercial Launch Readiness */
.production-launch-shell { grid-column: 1 / -1; }
.commercial-launch-status { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.launch-gate-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.launch-gate-card { min-width: 0; padding: 14px; border: 1px solid rgba(255,255,255,.09); border-radius: 14px; background: rgba(255,255,255,.025); }
.launch-gate-card.is-pass { border-color: rgba(63, 196, 138, .35); }
.launch-gate-card.is-blocked { border-color: rgba(232, 175, 73, .3); }
.launch-gate-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.launch-gate-card p { margin: 8px 0 0; color: var(--muted, #aab3c5); line-height: 1.45; overflow-wrap: anywhere; }
.hardening-evidence-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.hardening-evidence-card { min-width: 0; display: flex; flex-direction: column; gap: 5px; padding: 14px; border: 1px solid rgba(255,255,255,.08); border-radius: 14px; background: rgba(255,255,255,.02); }
.hardening-evidence-card span { color: var(--muted, #aab3c5); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
.hardening-evidence-card strong { font-size: 1.05rem; }
.hardening-evidence-card small { color: var(--muted, #aab3c5); line-height: 1.4; overflow-wrap: anywhere; }
.launch-boundary-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 10px 0 14px; }
.launch-boundary-list > div { min-width: 0; display: flex; flex-direction: column; gap: 5px; padding: 12px; border: 1px solid rgba(255,255,255,.08); border-radius: 12px; background: rgba(255,255,255,.02); }
.launch-boundary-list span { color: var(--muted, #aab3c5); }
.commercial-plan-table table, .saas-tenant-table table { width: 100%; table-layout: fixed; }
.commercial-plan-table td, .commercial-plan-table th, .saas-tenant-table td, .saas-tenant-table th { white-space: normal; overflow-wrap: anywhere; vertical-align: top; }
@media (max-width: 1250px) {
  .commercial-launch-status { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .launch-gate-grid, .hardening-evidence-grid, .launch-boundary-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .commercial-launch-status, .launch-gate-grid, .hardening-evidence-grid, .launch-boundary-list { grid-template-columns: 1fr; }
}


/* v56.0.0 — Enterprise Reporting, Integrations & Customer Pilot Operations */
.enterprise-report-status { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.enterprise-report-table { width: 100%; overflow: auto; }
.enterprise-report-table table { width: 100%; table-layout: fixed; }
.enterprise-report-table th:nth-child(1), .enterprise-report-table td:nth-child(1) { width: 20%; }
.enterprise-report-table th:nth-child(2), .enterprise-report-table td:nth-child(2) { width: 10%; }
.enterprise-report-table th:nth-child(8), .enterprise-report-table td:nth-child(8) { width: 25%; white-space: normal; overflow-wrap: anywhere; }
.pilot-attention-list { display: grid; gap: 10px; }
.pilot-attention-row { display: grid; grid-template-columns: minmax(240px, 2fr) repeat(3, minmax(120px, 1fr)); gap: 10px; align-items: center; padding: 12px 14px; border: 1px solid rgba(214, 168, 73, .24); border-radius: 14px; background: rgba(255,255,255,.018); }
.pilot-attention-row > div { display: grid; gap: 2px; min-width: 0; }
.pilot-attention-row strong { font-size: .96rem; }
.pilot-attention-row span { color: var(--muted); font-size: .78rem; overflow-wrap: anywhere; }
@media (max-width: 1180px) {
  .enterprise-report-status { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pilot-attention-row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .enterprise-report-status, .pilot-attention-row { grid-template-columns: 1fr; }
}


/* v57.0.0 — Customer Deployment Operations & Controlled Integrations */
.saas-tenant-table .data-table th:nth-child(1),
.saas-tenant-table .data-table td:nth-child(1) { width: 37%; }
.saas-tenant-table .data-table th:nth-child(2),
.saas-tenant-table .data-table td:nth-child(2) { width: 13%; }
.saas-tenant-table .data-table th:nth-child(3),
.saas-tenant-table .data-table td:nth-child(3) { width: 20%; }
.saas-tenant-table .data-table th:nth-child(4),
.saas-tenant-table .data-table td:nth-child(4) { width: 16%; }
.saas-tenant-table .data-table th:nth-child(5),
.saas-tenant-table .data-table td:nth-child(5) {
  width: 14%;
  min-width: 110px;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: keep-all;
  text-align: center;
}
.saas-tenant-table .data-table td:nth-child(5) .status-pill,
.saas-tenant-table .data-table td:nth-child(5) span {
  white-space: nowrap;
  writing-mode: horizontal-tb;
  word-break: keep-all;
}
.customer-deployment-status { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.customer-deployment-table,
.controlled-integration-table { width: 100%; overflow-x: auto; }
.customer-deployment-table table,
.controlled-integration-table table { width: 100%; table-layout: fixed; }
.customer-deployment-table th:nth-child(1), .customer-deployment-table td:nth-child(1) { width: 23%; }
.customer-deployment-table th:nth-child(2), .customer-deployment-table td:nth-child(2) { width: 12%; }
.customer-deployment-table th:nth-child(3), .customer-deployment-table td:nth-child(3) { width: 13%; }
.customer-deployment-table th:nth-child(4), .customer-deployment-table td:nth-child(4) { width: 11%; }
.customer-deployment-table th:nth-child(5), .customer-deployment-table td:nth-child(5) { width: 18%; }
.customer-deployment-table th:nth-child(6), .customer-deployment-table td:nth-child(6) { width: 23%; }
.controlled-integration-table th:nth-child(1), .controlled-integration-table td:nth-child(1) { width: 19%; }
.controlled-integration-table th:nth-child(2), .controlled-integration-table td:nth-child(2) { width: 12%; }
.controlled-integration-table th:nth-child(3), .controlled-integration-table td:nth-child(3) { width: 15%; }
.controlled-integration-table th:nth-child(4), .controlled-integration-table td:nth-child(4) { width: 20%; }
.controlled-integration-table th:nth-child(5), .controlled-integration-table td:nth-child(5) { width: 34%; }
.customer-deployment-table th, .customer-deployment-table td,
.controlled-integration-table th, .controlled-integration-table td {
  white-space: normal;
  overflow-wrap: anywhere;
  vertical-align: top;
}
.deployment-sequence-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.deployment-sequence-list li { min-width: 0; display: flex; gap: 10px; align-items: flex-start; padding: 13px; border: 1px solid rgba(255,255,255,.08); border-radius: 13px; background: rgba(255,255,255,.025); }
.deployment-sequence-list li > span { flex: 0 0 28px; width: 28px; height: 28px; border-radius: 999px; display: grid; place-items: center; background: rgba(226,177,79,.16); border: 1px solid rgba(226,177,79,.35); color: #f4c86d; font-weight: 800; }
.deployment-sequence-list p { margin: 2px 0 0; color: var(--muted, #aab3c5); line-height: 1.45; }
@media (max-width: 1250px) {
  .customer-deployment-status { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .deployment-sequence-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .saas-tenant-table .data-table { min-width: 820px; }
  .customer-deployment-table table { min-width: 980px; }
  .controlled-integration-table table { min-width: 980px; }
}
@media (max-width: 760px) {
  .customer-deployment-status, .deployment-sequence-list { grid-template-columns: 1fr; }
}


/* v58.0.0 — Production Backup, Restore & Incident Readiness */
.recovery-readiness-shell { grid-column: 1 / -1; }
.recovery-readiness-status { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.recovery-readiness-status > div { min-width: 0; }
.recovery-readiness-status strong { white-space: normal; overflow-wrap: anywhere; }
.recovery-readiness-shell + .recovery-readiness-status { margin-top: 0; }
[data-recovery-checks] .launch-gate-card p { overflow-wrap: anywhere; }
[data-recovery-state-evidence] .hardening-evidence-card small { overflow-wrap: anywhere; word-break: break-word; }
[data-recovery-objectives] > div { align-items: flex-start; gap: 1rem; }
[data-recovery-objectives] span { max-width: 70%; text-align: right; overflow-wrap: anywhere; }
@media (max-width: 1180px) {
  .recovery-readiness-status { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .recovery-readiness-status { grid-template-columns: 1fr; }
  [data-recovery-objectives] > div { display: block; }
  [data-recovery-objectives] span { display: block; max-width: none; text-align: left; margin-top: .35rem; }
}


/* v59 enterprise identity */
.identity-directory-search {
  display: grid;
  gap: 0.35rem;
  margin: 0.75rem 0;
  max-width: 720px;
}
.identity-directory-search span {
  color: var(--gold, #f3c969);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.identity-directory-search input {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(243, 201, 105, 0.35);
  border-radius: 10px;
  background: rgba(4, 17, 30, 0.85);
  color: #f7f2df;
  padding: 0.7rem 0.85rem;
}
.identity-directory-card .table-wrap td,
.identity-directory-card .table-wrap th {
  vertical-align: top;
  white-space: normal;
  overflow-wrap: anywhere;
}
.identity-directory-card .table-wrap th:nth-child(1) { width: 18%; }
.identity-directory-card .table-wrap th:nth-child(2) { width: 10%; }
.identity-directory-card .table-wrap th:nth-child(3) { width: 20%; }
.identity-directory-card .table-wrap th:nth-child(4) { width: 14%; }
.identity-directory-card .table-wrap th:nth-child(5) { width: 14%; }
.identity-directory-card .table-wrap th:nth-child(6) { width: 12%; }
.identity-directory-card .table-wrap th:nth-child(7) { width: 12%; }
.identity-current-session-strip strong {
  overflow-wrap: anywhere;
}
@media (max-width: 1180px) {
  .identity-directory-card .table-wrap { overflow-x: auto; }
  .identity-directory-card table { min-width: 1000px; }
}


/* v60.0.0 — Enterprise Automation, Workflow Rules & Human-in-the-Loop TICA Operations */
.automation-simulation-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(180px, 260px);
  gap: 12px;
  margin: 14px 0 10px;
}
.automation-simulation-toolbar input,
.automation-simulation-toolbar select {
  width: 100%;
}
.automation-rule-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.automation-rule-card {
  min-height: 0;
}
.automation-rule-card p {
  margin: 6px 0;
}
.runtime-version-mismatch-banner {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 99999;
  padding: 10px 18px;
  background: #7b1d1d;
  color: #fff7e6;
  border-bottom: 1px solid #f1c66d;
  text-align: center;
  font-size: 14px;
  box-shadow: 0 8px 30px rgba(0,0,0,.35);
}
.runtime-version-mismatch-banner span { opacity: .88; }
html[data-version-authority="mismatch"] body { padding-top: 42px; }
@media (max-width: 900px) {
  .automation-rule-grid,
  .automation-simulation-toolbar { grid-template-columns: 1fr; }
}


/* v62.0.0 — Enterprise customer administration, subscription operations & support readiness */
.customer-ops-summary-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  padding: 0;
  overflow: hidden;
}
.customer-ops-summary-strip > div {
  display: grid;
  gap: .2rem;
  min-width: 0;
  padding: 1rem 1.1rem;
  border-right: 1px solid rgba(216,170,75,.2);
}
.customer-ops-summary-strip > div:last-child { border-right: 0; }
.customer-ops-summary-strip span { color: var(--muted); font-size: .78rem; }
.customer-ops-summary-strip strong { color: var(--gold-2, #f0c66c); font-size: 1.45rem; line-height: 1; }
.customer-ops-summary-strip small { color: var(--muted); }
.customer-ops-search {
  width: min(34rem, 100%);
  min-height: 2.65rem;
  border: 1px solid rgba(216,170,75,.35);
  border-radius: .7rem;
  background: rgba(3,17,30,.74);
  color: var(--text);
  padding: .65rem .85rem;
}
.customer-ops-table table { table-layout: fixed; width: 100%; }
.customer-ops-table th:nth-child(1), .customer-ops-table td:nth-child(1) { width: 24%; }
.customer-ops-table th:nth-child(2), .customer-ops-table td:nth-child(2) { width: 13%; }
.customer-ops-table th:nth-child(3), .customer-ops-table td:nth-child(3) { width: 9%; white-space: nowrap; }
.customer-ops-table th:nth-child(4), .customer-ops-table td:nth-child(4) { width: 16%; }
.customer-ops-table th:nth-child(5), .customer-ops-table td:nth-child(5) { width: 15%; }
.customer-ops-table th:nth-child(6), .customer-ops-table td:nth-child(6) { width: 10%; }
.customer-ops-table th:nth-child(7), .customer-ops-table td:nth-child(7) { width: 13%; }
.customer-ops-table td, .customer-ops-table th { overflow-wrap: anywhere; vertical-align: top; }
.customer-account-form { margin-top: 1rem; }
.compact-number { width: 4rem; text-align: center; font-weight: 800; color: var(--gold-2, #f0c66c); }
@media (max-width: 1250px) {
  .customer-ops-summary-strip { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .customer-ops-summary-strip > div { border-bottom: 1px solid rgba(216,170,75,.16); }
  .customer-ops-table { overflow-x: auto; }
  .customer-ops-table table { min-width: 1050px; }
}
@media (max-width: 720px) {
  .customer-ops-summary-strip { grid-template-columns: 1fr; }
  .section-heading-row { align-items: stretch; }
  .customer-ops-search { width: 100%; }
}


/* v63.0.0 Customer Success Analytics, SLA Planning & Service Operations */
.customer-success-summary-strip { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.customer-success-table table,
.service-operations-table table,
.sla-planning-table table { width: 100%; table-layout: fixed; }
.customer-success-table th:nth-child(1), .customer-success-table td:nth-child(1) { width: 20%; }
.customer-success-table th:nth-child(2), .customer-success-table td:nth-child(2) { width: 11%; white-space: normal; }
.customer-success-table th:nth-child(3), .customer-success-table td:nth-child(3) { width: 16%; }
.customer-success-table th:nth-child(4), .customer-success-table td:nth-child(4) { width: 17%; }
.customer-success-table th:nth-child(5), .customer-success-table td:nth-child(5) { width: 13%; }
.customer-success-table th:nth-child(6), .customer-success-table td:nth-child(6) { width: 23%; }
.service-operations-table th:nth-child(1), .service-operations-table td:nth-child(1) { width: 9%; }
.service-operations-table th:nth-child(2), .service-operations-table td:nth-child(2) { width: 17%; }
.service-operations-table th:nth-child(3), .service-operations-table td:nth-child(3) { width: 9%; }
.service-operations-table th:nth-child(4), .service-operations-table td:nth-child(4) { width: 13%; }
.service-operations-table th:nth-child(5), .service-operations-table td:nth-child(5) { width: 14%; }
.service-operations-table th:nth-child(6), .service-operations-table td:nth-child(6) { width: 24%; }
.service-operations-table th:nth-child(7), .service-operations-table td:nth-child(7) { width: 14%; }
.sla-planning-table th:nth-child(1), .sla-planning-table td:nth-child(1) { width: 18%; }
.sla-planning-table th:nth-child(2), .sla-planning-table td:nth-child(2),
.sla-planning-table th:nth-child(3), .sla-planning-table td:nth-child(3),
.sla-planning-table th:nth-child(4), .sla-planning-table td:nth-child(4),
.sla-planning-table th:nth-child(5), .sla-planning-table td:nth-child(5) { width: 14%; }
.sla-planning-table th:nth-child(6), .sla-planning-table td:nth-child(6) { width: 26%; }
.customer-success-table td, .customer-success-table th,
.service-operations-table td, .service-operations-table th,
.sla-planning-table td, .sla-planning-table th { overflow-wrap: anywhere; vertical-align: top; }
@media (max-width: 1180px) {
  .customer-success-summary-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .customer-success-table, .service-operations-table, .sla-planning-table { overflow-x: auto; }
  .customer-success-table table { min-width: 1050px; }
  .service-operations-table table { min-width: 1100px; }
  .sla-planning-table table { min-width: 900px; }
}
@media (max-width: 720px) { .customer-success-summary-strip { grid-template-columns: 1fr; } }


/* v64 Enterprise Security Controls, Privacy Operations & Compliance Evidence */
.commercial-rule-summary-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}
.commercial-rule-summary-strip > div,
.commercial-scenario-results > div {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  background: rgba(255,255,255,.025);
  min-width: 0;
}
.commercial-rule-summary-strip span,
.commercial-scenario-results span {
  display: block;
  font-size: .78rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
}
.commercial-rule-summary-strip strong,
.commercial-scenario-results strong {
  display: block;
  margin-top: 5px;
  font-size: 1.25rem;
  overflow-wrap: anywhere;
}
.commercial-rule-summary-strip small { display:block; margin-top:4px; color:var(--muted); }
.commercial-scenario-inputs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0;
}
.commercial-scenario-inputs label { display:grid; gap:6px; font-size:.82rem; color:var(--muted); }
.commercial-scenario-inputs input { width:100%; }
.commercial-scenario-results {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0;
}
.commercial-launch-gate-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 12px;
  margin: 14px 0 18px;
}
.commercial-launch-gate {
  display:grid;
  grid-template-columns: 1fr auto;
  gap: 6px 12px;
  border:1px solid var(--border);
  border-radius:14px;
  padding:14px;
  min-width:0;
}
.commercial-launch-gate small { grid-column:1 / -1; color:var(--muted); }
.commercial-launch-gate.passed strong { color: var(--success); }
.commercial-launch-gate.blocked strong { color: var(--warning); }
.commercial-plan-design-table th,
.commercial-rule-table th,
.billing-event-table th { white-space: nowrap; }
@media (max-width: 1100px) {
  .commercial-rule-summary-strip { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .commercial-scenario-inputs { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .commercial-scenario-results { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 720px) {
  .commercial-rule-summary-strip,
  .commercial-scenario-inputs,
  .commercial-scenario-results,
  .commercial-launch-gate-grid { grid-template-columns: 1fr; }
}


/* v65 Enterprise Security Controls, Privacy Operations & Compliance Evidence */
.stripe-account-status-card {
  position: relative;
  overflow: hidden;
}
.stripe-account-status-card::after {
  content: 'TEST MODE ONLY';
  position: absolute;
  right: 18px;
  bottom: 14px;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .16em;
  opacity: .22;
}
body[data-route="pricing-preview"] .launch-gate-card code,
body[data-route="pricing-preview"] .saas-readable-table code {
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
}
body[data-route="pricing-preview"] .saas-readable-table {
  overflow-x: auto;
}
body[data-route="pricing-preview"] .saas-readable-table table {
  min-width: 900px;
}


/* v66 Enterprise Security Controls, Privacy Operations & Compliance Evidence */
.security-evidence-status-card {
  position: relative;
  overflow: hidden;
}
.security-evidence-status-card::after {
  content: 'EVIDENCE · NOT CERTIFICATION';
  position: absolute;
  right: 18px;
  bottom: 14px;
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .14em;
  opacity: .2;
}
body[data-route="compliance-readiness"] .saas-readable-table {
  overflow-x: auto;
}
body[data-route="compliance-readiness"] .saas-readable-table table {
  min-width: 1040px;
}
body[data-route="compliance-readiness"] .launch-gate-card p {
  overflow-wrap: anywhere;
}

/* v67.0.0 — align KPI/summary cards across the full workspace.
   Metrics containers are direct children of the 12-column content grid; without an
   explicit full-width grid they collapse into one narrow column. */
body.is-authenticated .content-grid > .metrics-grid {
  grid-column: 1 / -1 !important;
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  align-items: stretch !important;
  gap: 10px !important;
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
}

body.is-authenticated .content-grid > .metrics-grid > .compact-stat-card {
  grid-column: auto !important;
  width: auto !important;
  min-width: 0 !important;
  min-height: 108px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
}

body.is-authenticated .content-grid > .metrics-grid > .compact-stat-card strong {
  overflow-wrap: anywhere;
}

@media (max-width: 1180px) {
  body.is-authenticated .content-grid > .metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 720px) {
  body.is-authenticated .content-grid > .metrics-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  body.is-authenticated .content-grid > .metrics-grid > .compact-stat-card {
    min-height: 0 !important;
  }
}


/* v91.0.0 — Executive dashboard KPI layout repair.
   The KPI group must be a full-width child of the 12-column workspace grid and
   each metric must own a stable grid cell at desktop, tablet, and mobile widths. */
body.is-authenticated[data-route="executive-dashboard"] .executive-operations-kpis {
  grid-column: 1 / -1 !important;
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 12px !important;
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
}
body.is-authenticated[data-route="executive-dashboard"] .executive-operations-kpis > .compact-stat-card {
  grid-column: auto !important;
  width: auto !important;
  min-width: 0 !important;
  min-height: 108px !important;
}
body.is-authenticated[data-route="executive-dashboard"] .executive-operations-kpis > .compact-stat-card strong,
body.is-authenticated[data-route="executive-dashboard"] .executive-operations-kpis > .compact-stat-card small {
  overflow-wrap: anywhere;
}
@media (max-width: 1180px) {
  body.is-authenticated[data-route="executive-dashboard"] .executive-operations-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 720px) {
  body.is-authenticated[data-route="executive-dashboard"] .executive-operations-kpis {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

/* v94.0.0 — Warehouse Operations Workspace */
body.is-authenticated[data-route="warehouse-locations"] .warehouse-workspace-hero,
body.is-authenticated[data-route="warehouse-locations"] .warehouse-control-bar,
body.is-authenticated[data-route="warehouse-locations"] .warehouse-kpi-ribbon,
body.is-authenticated[data-route="warehouse-locations"] .warehouse-workspace-grid,
body.is-authenticated[data-route="warehouse-locations"] .warehouse-transfer-card,
body.is-authenticated[data-route="warehouse-locations"] .warehouse-activity-card {
  grid-column: 1 / -1;
  min-width: 0;
}
.warehouse-workspace-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px;
  border: 1px solid var(--line, rgba(213,170,76,.28));
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(213,170,76,.07), rgba(9,19,31,.8));
}
.warehouse-workspace-hero h2 { margin: 4px 0 8px; }
.warehouse-workspace-hero p { max-width: 820px; }
.warehouse-quick-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.warehouse-control-bar {
  display: grid;
  grid-template-columns: minmax(180px,.8fr) minmax(320px,2fr) minmax(180px,.8fr);
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line, rgba(213,170,76,.22));
  border-radius: 14px;
  background: rgba(8,17,29,.76);
}
.warehouse-control-bar label { display: grid; gap: 6px; }
.warehouse-control-bar label > span { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--gold, #e8bd63); }
.warehouse-control-bar input, .warehouse-control-bar select { width: 100%; }
.warehouse-kpi-ribbon {
  display: grid;
  grid-template-columns: repeat(6, minmax(0,1fr));
  border: 1px solid var(--line, rgba(213,170,76,.22));
  border-radius: 14px;
  overflow: hidden;
  background: rgba(8,17,29,.72);
}
.warehouse-kpi-ribbon > div { padding: 14px 16px; border-right: 1px solid rgba(213,170,76,.18); }
.warehouse-kpi-ribbon > div:last-child { border-right: 0; }
.warehouse-kpi-ribbon span { display:block; font-size:10px; letter-spacing:.1em; text-transform:uppercase; color:#aeb9c8; font-weight:800; }
.warehouse-kpi-ribbon strong { display:block; margin-top:5px; font-size:23px; color:var(--gold, #e8bd63); overflow-wrap:anywhere; }
.warehouse-workspace-grid { display:grid; grid-template-columns:minmax(0,3fr) minmax(260px,1fr); gap:12px; align-items:start; }
.warehouse-primary-grid { min-width:0; }
.warehouse-primary-grid .table-wrap { max-height: 560px; overflow:auto; }
.warehouse-primary-grid thead { position: sticky; top:0; z-index:2; }
.warehouse-intelligence-panel { position:sticky; top:16px; }
.warehouse-attention-item { display:grid; grid-template-columns:28px 1fr; gap:10px; align-items:start; padding:12px 0; border-bottom:1px solid rgba(213,170,76,.14); }
.warehouse-attention-item span { display:grid; place-items:center; width:24px; height:24px; border-radius:50%; background:rgba(213,170,76,.14); color:var(--gold,#e8bd63); font-weight:900; }
.warehouse-attention-item p { margin:2px 0 0; }
.warehouse-intelligence-panel > button { margin-top:14px; width:100%; }
.warehouse-transfer-form { display:grid; grid-template-columns:minmax(240px,1.1fr) minmax(240px,1fr) minmax(280px,1.4fr) auto; gap:12px; align-items:end; }
.warehouse-transfer-form .form-result { grid-column:1 / -1; }
@media (max-width: 1180px) {
  .warehouse-kpi-ribbon { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .warehouse-kpi-ribbon > div:nth-child(3) { border-right:0; }
  .warehouse-workspace-grid { grid-template-columns:1fr; }
  .warehouse-intelligence-panel { position:static; }
  .warehouse-transfer-form { grid-template-columns:1fr 1fr; }
}
@media (max-width: 760px) {
  .warehouse-workspace-hero { align-items:flex-start; flex-direction:column; }
  .warehouse-quick-actions { justify-content:flex-start; }
  .warehouse-control-bar { grid-template-columns:1fr; }
  .warehouse-kpi-ribbon { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .warehouse-kpi-ribbon > div { border-right:1px solid rgba(213,170,76,.18); }
  .warehouse-kpi-ribbon > div:nth-child(even) { border-right:0; }
  .warehouse-transfer-form { grid-template-columns:1fr; }
}


/* v95.0.0 — SKU readability and multi-location internal transfers */
body.is-authenticated[data-route="warehouse-locations"] .warehouse-primary-grid table { min-width: 1040px; table-layout: fixed; }
body.is-authenticated[data-route="warehouse-locations"] .warehouse-primary-grid th:nth-child(1),
body.is-authenticated[data-route="warehouse-locations"] .warehouse-primary-grid td:nth-child(1) { width: 15%; }
body.is-authenticated[data-route="warehouse-locations"] .warehouse-primary-grid th:nth-child(2),
body.is-authenticated[data-route="warehouse-locations"] .warehouse-primary-grid td:nth-child(2) { width: 32%; min-width: 320px; white-space: normal; line-height: 1.3; }
body.is-authenticated[data-route="warehouse-locations"] .warehouse-primary-grid th:nth-child(n+3),
body.is-authenticated[data-route="warehouse-locations"] .warehouse-primary-grid td:nth-child(n+3) { white-space: nowrap; }
.warehouse-internal-transfer-card { grid-column:1 / -1; min-width:0; }
.bin-reassignment-details { margin-top:18px; border-top:1px solid rgba(213,170,76,.18); padding-top:14px; }
.bin-reassignment-details summary { cursor:pointer; color:var(--gold,#e8bd63); font-weight:800; }
.compact-bin-move { margin-top:14px; }
@media (max-width:1180px) { .warehouse-transfer-form { grid-template-columns:repeat(2,minmax(0,1fr)); } }

/* v97 Simplified Purchase Order Workspace */
.po-workspace{padding:24px}.po-workspace-heading,.po-workspace-actions,.po-item-picker .section-heading{display:flex;justify-content:space-between;gap:18px;align-items:flex-start}.po-workspace-status{padding:8px 12px;border-radius:999px;background:var(--surface-soft,#eef3f8);font-weight:700}.po-workspace-section{margin-top:18px;padding:18px;border:1px solid var(--border,#d9e1ea);border-radius:16px;background:var(--surface,#fff)}.po-header-grid,.po-address-grid,.po-final-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.po-address-card{border:1px solid var(--border,#d9e1ea);border-radius:14px;padding:15px;background:var(--surface-soft,#f8fafc)}.po-address-card h4{margin:0 0 12px}.po-address-card label{display:block;font-size:12px;font-weight:700;margin-top:9px}.po-address-card input,.po-address-card textarea{width:100%;margin-top:4px}.po-address-content{display:grid;gap:6px}.po-address-content span{display:block}.po-item-search{min-width:320px}.po-item-results{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;max-height:300px;overflow:auto;margin-top:14px}.po-item-result{display:grid;grid-template-columns:1fr auto auto;gap:12px;align-items:center;text-align:left;padding:12px;border:1px solid var(--border,#d9e1ea);border-radius:12px;background:var(--surface,#fff);cursor:pointer}.po-item-result span{display:grid;gap:3px}.po-item-result b{white-space:nowrap}.po-lines-table-wrap{overflow:auto}.po-lines-table{width:100%;border-collapse:collapse}.po-lines-table th,.po-lines-table td{padding:10px;border-bottom:1px solid var(--border,#d9e1ea);text-align:left}.po-lines-table td:first-child{min-width:300px}.po-lines-table td:first-child small{display:block}.po-lines-table input{width:110px}.po-final-grid{grid-template-columns:180px 1fr}.po-final-grid .form-field-wide{grid-column:auto}.po-live-totals{grid-column:1/-1;margin-left:auto;min-width:320px;display:grid;gap:8px}.po-live-totals div{display:flex;justify-content:space-between;gap:40px;padding:8px 0}.po-grand-total{font-size:1.25rem;border-top:2px solid var(--border,#d9e1ea)}.po-workspace-actions{align-items:center;margin-top:18px;flex-wrap:wrap}.po-workspace-actions .form-result{margin-left:auto}@media(max-width:900px){.po-header-grid,.po-address-grid,.po-final-grid,.po-item-results{grid-template-columns:1fr}.po-item-picker .section-heading,.po-workspace-heading{display:block}.po-item-search{min-width:0;margin-top:12px}.po-live-totals{min-width:0;width:100%}}


/* v98 corrected Purchase Order Workspace theme and interaction states */
body.is-authenticated[data-route="purchase-orders"] .po-workspace{background:linear-gradient(180deg,rgba(8,25,42,.96),rgba(4,16,29,.96));border:1px solid rgba(240,197,111,.28);color:var(--text);}
body.is-authenticated[data-route="purchase-orders"] .po-workspace-section{background:rgba(7,22,38,.88);border-color:rgba(240,197,111,.22);color:var(--text);}
body.is-authenticated[data-route="purchase-orders"] .po-address-card{background:rgba(10,31,51,.72);border-color:rgba(240,197,111,.22);color:var(--text);}
body.is-authenticated[data-route="purchase-orders"] .po-workspace-status{background:rgba(240,197,111,.12);border:1px solid rgba(240,197,111,.32);color:#f3c96f;}
body.is-authenticated[data-route="purchase-orders"] .po-item-result{background:rgba(3,14,25,.78);border-color:rgba(240,197,111,.2);color:var(--text);}
body.is-authenticated[data-route="purchase-orders"] .po-item-result:hover{border-color:#f0c56f;transform:translateY(-1px);box-shadow:0 8px 22px rgba(0,0,0,.24);}
body.is-authenticated[data-route="purchase-orders"] .po-item-result.added{border-color:#72d69a;background:rgba(32,94,64,.34);}
body.is-authenticated[data-route="purchase-orders"] .po-item-result.duplicate-blocked{border-color:#ff8b8b;animation:poShake .25s linear 2;}
body.is-authenticated[data-route="purchase-orders"] .po-workspace input,body.is-authenticated[data-route="purchase-orders"] .po-workspace select,body.is-authenticated[data-route="purchase-orders"] .po-workspace textarea{background:rgba(2,12,22,.86);border:1px solid rgba(240,197,111,.28);color:var(--text);}
body.is-authenticated[data-route="purchase-orders"] .po-workspace input::placeholder,body.is-authenticated[data-route="purchase-orders"] .po-workspace textarea::placeholder{color:#91a0b4;}
body.is-authenticated[data-route="purchase-orders"] .po-lines-table th,body.is-authenticated[data-route="purchase-orders"] .po-lines-table td{border-color:rgba(240,197,111,.17);color:var(--text);}
body.is-authenticated[data-route="purchase-orders"] .po-lines-table th{color:#f3c96f;}
body.is-authenticated[data-route="purchase-orders"] .po-live-totals{background:rgba(2,12,22,.7);border:1px solid rgba(240,197,111,.2);border-radius:14px;padding:12px 16px;}
body.is-authenticated[data-route="purchase-orders"] .po-grand-total{border-color:#f0c56f;}
body.is-authenticated[data-route="purchase-orders"] .form-result.error{color:#ff9d9d;}
@keyframes poShake{0%,100%{transform:translateX(0)}25%{transform:translateX(-4px)}75%{transform:translateX(4px)}}


/* v99 production Purchase Order Workspace */
body.is-authenticated[data-route="purchase-orders"] .po-workspace-v100{padding:0!important;overflow:hidden;background:#071525!important;border:1px solid rgba(232,187,95,.42)!important;box-shadow:0 18px 50px rgba(0,0,0,.28)!important;color:#eef4fb!important}
.po-workspace-v100 .po-command-bar{display:flex;justify-content:space-between;gap:24px;align-items:center;padding:22px 24px;background:linear-gradient(135deg,#0b2238,#081725);border-bottom:1px solid rgba(232,187,95,.28)}
.po-workspace-v100 .po-command-bar h3{margin:3px 0 4px;font-size:1.55rem;color:#fff}.po-workspace-v100 .po-command-bar p{margin:0;color:#aebed0}.po-command-status{display:grid;gap:3px;text-align:right}.po-command-status span{font-size:.68rem;letter-spacing:.16em;color:#d7ad59}.po-command-status strong{padding:8px 12px;border:1px solid rgba(232,187,95,.35);border-radius:999px;background:rgba(232,187,95,.1);color:#f0c66f}
.po-workspace-v100 .po-workspace-form{padding:18px 20px 22px}.po-order-header{display:grid;grid-template-columns:1.5fr .8fr .85fr 1fr 1fr 1fr;gap:12px;padding:15px;background:#0b1d2e;border:1px solid #1d3850;border-radius:12px}.po-order-header label,.po-detail-fields label,.po-notes-block label,.po-total-block label{display:grid;gap:6px}.po-order-header label>span,.po-detail-fields label>span,.po-notes-block label>span,.po-total-block label>span{font-size:.7rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#ddb968}
.po-workspace-v100 input,.po-workspace-v100 select,.po-workspace-v100 textarea{box-sizing:border-box;width:100%;background:#06111e!important;border:1px solid #2a465e!important;border-radius:8px!important;color:#f2f6fa!important;padding:10px 11px!important;min-height:39px}.po-workspace-v100 textarea{min-height:72px;resize:vertical}.po-workspace-v100 input:focus,.po-workspace-v100 select:focus,.po-workspace-v100 textarea:focus{outline:none!important;border-color:#d8aa4e!important;box-shadow:0 0 0 3px rgba(216,170,78,.12)!important}.po-workspace-v100 input:disabled{opacity:.72}
.po-workbench{display:grid;grid-template-columns:minmax(270px,.8fr) minmax(480px,1.5fr) minmax(300px,.9fr);gap:14px;margin-top:14px;align-items:stretch}.po-catalog-panel,.po-lines-panel,.po-details-panel{background:#0a1b2b;border:1px solid #1e3a51;border-radius:12px;min-width:0;overflow:hidden}.po-panel-title{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:14px 15px;border-bottom:1px solid #1c3448;background:#0d2235}.po-panel-title>div{display:flex;align-items:center;gap:9px}.po-panel-title h4{margin:0;color:#fff}.po-panel-title small{color:#91a5b8}.po-step{display:grid;place-items:center;width:25px;height:25px;border-radius:50%;background:#d8aa4e;color:#07111b;font-weight:900;font-size:.78rem}
.po-search-box{display:flex;align-items:center;gap:8px;margin:12px;background:#06111e;border:1px solid #29475f;border-radius:9px;padding:0 10px}.po-search-box span{font-size:1.2rem;color:#d8aa4e}.po-search-box input{border:0!important;box-shadow:none!important;padding-left:0!important}.po-vendor-lock-note{margin:0 12px 10px;padding:9px 10px;border-radius:8px;background:rgba(216,170,78,.08);border:1px solid rgba(216,170,78,.18);font-size:.75rem;color:#d1dbe5}.po-item-results{display:block!important;max-height:570px!important;overflow:auto!important;margin:0!important;padding:0 8px 10px!important}.po-catalog-row{display:grid!important;grid-template-columns:minmax(0,1fr) auto auto 26px!important;gap:9px!important;align-items:center!important;width:100%;padding:11px 8px!important;border:0!important;border-bottom:1px solid #173047!important;border-radius:0!important;background:transparent!important;color:#eaf1f7!important;text-align:left;cursor:pointer}.po-catalog-row:hover{background:#102a40!important}.po-catalog-row.added{background:rgba(59,156,101,.16)!important}.po-catalog-row.duplicate-blocked{background:rgba(190,63,63,.18)!important}.po-catalog-main{display:grid;min-width:0}.po-catalog-main strong{color:#f2c86f}.po-catalog-main small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#c0cfdb}.po-catalog-stock{font-size:.7rem;color:#8fa5b7;white-space:nowrap}.po-catalog-price{font-weight:800;color:#fff;white-space:nowrap}.po-catalog-action{font-size:1.25rem;color:#d8aa4e;text-align:center}
.po-lines-table-wrap{max-height:570px;overflow:auto}.po-lines-table{width:100%;border-collapse:separate;border-spacing:0}.po-lines-table thead{position:sticky;top:0;z-index:2}.po-lines-table th{padding:11px 10px!important;background:#071624!important;color:#d9b45f!important;border-bottom:1px solid #27455c!important;font-size:.7rem;text-transform:uppercase;letter-spacing:.06em}.po-lines-table td{padding:11px 10px!important;border-bottom:1px solid #173047!important;color:#eaf0f5!important;vertical-align:middle}.po-lines-table td:first-child{min-width:220px!important}.po-lines-table td:first-child strong{display:block;color:#f2c86f}.po-lines-table td:first-child small{display:block;color:#b6c5d1}.po-lines-table input{width:92px!important;min-height:34px!important;padding:7px 8px!important}.po-empty-lines{display:grid;place-items:center;gap:5px;padding:72px 20px;color:#8297aa}.po-empty-lines strong{color:#c4d0db}.po-line-help{display:flex;justify-content:space-between;gap:12px;padding:10px 13px;background:#071624;color:#8095a8;font-size:.72rem}
.po-details-panel{max-height:650px;overflow:auto}.po-detail-group{border-bottom:1px solid #193249}.po-detail-group summary{cursor:pointer;padding:12px 14px;color:#f0c66f;font-weight:800;background:#091827}.po-detail-content,.po-detail-fields{display:grid;gap:8px;padding:12px 14px;color:#c4d1dc}.po-detail-content strong{color:#fff;font-size:1rem}.po-detail-content span{line-height:1.35}.po-detail-fields label>span{font-size:.64rem}.po-detail-fields input,.po-detail-fields textarea{min-height:34px!important;padding:7px 8px!important;font-size:.78rem}.po-detail-fields textarea{min-height:58px!important}
.po-footer-workspace{display:grid;grid-template-columns:1fr 330px;gap:14px;margin-top:14px}.po-notes-block,.po-total-block{background:#0a1b2b;border:1px solid #1e3a51;border-radius:12px;padding:14px}.po-notes-block{display:grid;grid-template-columns:1fr 2fr;gap:12px}.po-notes-block label:last-child{grid-column:1/-1}.po-total-block{display:grid;gap:9px}.po-total-block>div{display:flex;justify-content:space-between;gap:30px;padding:6px 2px;color:#c8d4de}.po-total-block>div strong{color:#fff}.po-total-block .po-grand-total{margin-top:3px;padding-top:12px;border-top:2px solid #d8aa4e!important;font-size:1.18rem}.po-total-block .po-grand-total span,.po-total-block .po-grand-total strong{color:#f1c66c}
.po-workspace-v100 .po-workspace-actions{display:flex;justify-content:flex-end;align-items:center;gap:9px;margin-top:14px;padding-top:14px;border-top:1px solid #1c354a}.po-workspace-v100 .po-workspace-actions .form-result{margin-right:auto;margin-left:0}.po-workspace-v100 .secondary-btn,.po-workspace-v100 .primary-btn{min-width:116px}
@media(max-width:1300px){.po-order-header{grid-template-columns:repeat(3,1fr)}.po-workbench{grid-template-columns:320px 1fr}.po-details-panel{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,1fr);max-height:none}.po-details-panel>.po-panel-title{grid-column:1/-1}.po-detail-group{border-right:1px solid #193249}}
@media(max-width:900px){.po-order-header,.po-workbench,.po-footer-workspace,.po-notes-block{grid-template-columns:1fr}.po-details-panel{display:block}.po-workspace-v100 .po-command-bar{align-items:flex-start}.po-command-status{display:none}.po-workspace-v100 .po-workspace-actions{justify-content:stretch;flex-wrap:wrap}.po-workspace-v100 .po-workspace-actions button{flex:1}}


/* v101 PO catalog interaction and vendor-lock validation */
.po-workspace-v100 [data-po-add-item][hidden],
.po-workspace [data-po-add-item][hidden] { display: none !important; }
.po-workspace [data-po-add-item]:not(:disabled) { cursor: pointer; }
.po-workspace [data-po-add-item]:disabled { display: none !important; pointer-events: none; }
.po-workspace [data-po-add-item].added { outline: 1px solid rgba(238,190,92,.9); background: rgba(238,190,92,.12); }

/* v103 multi-line purchase request workspace */
.pr-workspace{margin:18px 0;border:1px solid rgba(214,164,65,.45);border-radius:16px;background:#0b1c2b;color:#eef4fb;overflow:hidden}.pr-workspace-header{display:flex;justify-content:space-between;gap:20px;padding:22px;border-bottom:1px solid rgba(214,164,65,.35);background:linear-gradient(135deg,#0c2134,#0a1724)}.pr-workspace-header h3{margin:2px 0 4px;font-size:24px}.pr-workspace-header p{margin:0;color:#aebdd0}.pr-total{text-align:right}.pr-total span{display:block;color:#d9ad50;text-transform:uppercase;font-size:11px;font-weight:800;letter-spacing:.12em}.pr-total strong{font-size:24px;color:#f0c76e}.pr-header-grid{display:grid;grid-template-columns:repeat(7,minmax(130px,1fr));gap:10px;padding:14px 16px;background:#0d2234;border-bottom:1px solid rgba(214,164,65,.2)}.pr-workspace label{display:flex;flex-direction:column;gap:6px;color:#e0b75e;font-size:11px;font-weight:800;text-transform:uppercase}.pr-workspace input,.pr-workspace select,.pr-workspace textarea{width:100%;box-sizing:border-box;background:#071522;color:#eef4fb;border:1px solid #29455d;border-radius:7px;padding:10px;text-transform:none;font-weight:500}.pr-workspace textarea{min-height:90px;resize:vertical}.pr-workspace-grid{display:grid;grid-template-columns:minmax(280px,.8fr) minmax(520px,1.5fr) minmax(290px,.85fr);gap:12px;padding:12px}.pr-panel{min-height:480px;border:1px solid #29455d;border-radius:12px;background:#0c2031;overflow:hidden;padding:12px}.pr-panel-title{display:flex;align-items:center;gap:8px;margin:-12px -12px 12px;padding:12px;border-bottom:1px solid #29455d;background:#10283b;font-weight:800}.pr-panel-title b{display:grid;place-items:center;width:22px;height:22px;border-radius:50%;background:#e0ae49;color:#071522}.pr-panel-title small{margin-left:auto;color:#9fb0c2}.pr-search{margin-bottom:10px}.pr-catalog{display:flex;flex-direction:column;max-height:430px;overflow:auto}.pr-catalog-row{display:flex;justify-content:space-between;align-items:center;gap:12px;text-align:left;background:transparent;color:#eef4fb;border:0;border-bottom:1px solid #29455d;padding:11px 4px;cursor:pointer}.pr-catalog-row:hover{background:#122c41}.pr-catalog-row span:first-child{display:flex;flex-direction:column}.pr-catalog-row strong{color:#f0c76e}.pr-catalog-row small{color:#b7c3d0}.pr-catalog-meta{display:flex;align-items:center;gap:10px}.pr-catalog-meta b{font-size:22px;color:#f0c76e}.pr-catalog-row.is-added{opacity:.55;cursor:default}.pr-lines{display:flex;flex-direction:column;gap:8px}.pr-line-row{display:grid;grid-template-columns:minmax(190px,1.5fr) 85px 90px minmax(170px,1fr) 120px 76px;gap:8px;align-items:end;padding:10px;border:1px solid #29455d;border-radius:9px;background:#091927}.pr-line-row>div{display:flex;flex-direction:column;align-self:center}.pr-line-row>div strong{color:#f0c76e}.pr-line-row>div span{color:#b7c3d0;font-size:12px}.pr-line-row label{font-size:9px}.pr-line-row input,.pr-line-row select{padding:8px}.pr-empty-state{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:180px;color:#9fb0c2;text-align:center}.pr-empty-state strong{color:#f0c76e;font-size:18px}.pr-workspace-actions{display:flex;justify-content:flex-end;align-items:center;gap:10px;padding:14px 16px;border-top:1px solid #29455d;background:#0a1825}.pr-workspace-actions .form-result{margin-right:auto;color:#f0c76e}@media(max-width:1300px){.pr-header-grid{grid-template-columns:repeat(4,1fr)}.pr-workspace-grid{grid-template-columns:1fr}.pr-panel{min-height:auto}.pr-line-row{grid-template-columns:1.4fr 80px 90px 1fr 110px 75px}}@media(max-width:760px){.pr-header-grid{grid-template-columns:1fr 1fr}.pr-line-row{grid-template-columns:1fr 1fr}.pr-line-row>div{grid-column:1/-1}.pr-workspace-header{flex-direction:column}.pr-total{text-align:left}}

/* v112.0.0 — Purchase Request workspace full-width layout repair.
   Route renderers return multiple direct children into the shared 12-column grid.
   The Purchase Request workspace must explicitly span the complete grid rather
   than inheriting a single 1/12-column auto-placement cell. */
body.is-authenticated[data-route="purchase-requests"] .content-grid > .pr-workspace {
  grid-column: 1 / -1 !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  box-sizing: border-box !important;
}

body.is-authenticated[data-route="purchase-requests"] .pr-workspace-grid,
body.is-authenticated[data-route="purchase-requests"] .pr-panel,
body.is-authenticated[data-route="purchase-requests"] .pr-lines-panel {
  min-width: 0 !important;
}


/* v112.0.0 — compact action pills and single-line Warehouse SKU / Item cells. */
body.is-authenticated[data-route="purchase-requests"] .pr-line-row .tiny-btn[data-pr-remove-line],
body.is-authenticated[data-route="purchase-orders"] .tiny-btn[data-po-remove-line] {
  min-width: 66px;
  padding: 6px 8px;
  font-size: 11px;
  line-height: 1;
  white-space: nowrap;
  text-align: center;
}
body.is-authenticated[data-route="warehouse-locations"] .warehouse-primary-grid table {
  min-width: 1180px;
}
body.is-authenticated[data-route="warehouse-locations"] .warehouse-primary-grid th:nth-child(2),
body.is-authenticated[data-route="warehouse-locations"] .warehouse-primary-grid td:nth-child(2) {
  width: 38%;
  min-width: 410px;
  white-space: nowrap;
}
body.is-authenticated[data-route="warehouse-locations"] .warehouse-primary-grid td.warehouse-sku-item {
  overflow: hidden;
  text-overflow: ellipsis;
}
body.is-authenticated[data-route="warehouse-locations"] .warehouse-primary-grid td.warehouse-sku-item strong,
body.is-authenticated[data-route="warehouse-locations"] .warehouse-primary-grid td.warehouse-sku-item span {
  display: inline;
  white-space: nowrap;
}
body.is-authenticated[data-route="warehouse-locations"] .warehouse-primary-grid td.warehouse-sku-item span {
  margin-left: 10px;
  color: var(--muted, #aeb9c8);
}

/* v113.0.0 — final PR action-button fit and full-width Warehouse table balance. */
body.is-authenticated[data-route="purchase-requests"] .pr-line-row {
  grid-template-columns: minmax(190px, 1.5fr) 78px 86px minmax(160px, 1fr) 112px 92px !important;
}
body.is-authenticated[data-route="purchase-requests"] .pr-line-row > button.tiny-btn[data-pr-remove-line] {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 84px !important;
  min-width: 84px !important;
  max-width: 84px !important;
  height: 34px !important;
  padding: 0 8px !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  font-size: 10px !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  white-space: nowrap !important;
  overflow: visible !important;
}

body.is-authenticated[data-route="warehouse-locations"] .warehouse-workspace-grid {
  grid-template-columns: minmax(0, 1fr) !important;
  width: 100% !important;
}
body.is-authenticated[data-route="warehouse-locations"] .warehouse-primary-grid,
body.is-authenticated[data-route="warehouse-locations"] .warehouse-intelligence-panel {
  width: 100% !important;
  min-width: 0 !important;
}
body.is-authenticated[data-route="warehouse-locations"] .warehouse-intelligence-panel {
  position: static !important;
}
body.is-authenticated[data-route="warehouse-locations"] .warehouse-primary-grid .table-wrap {
  width: 100% !important;
  overflow-x: hidden !important;
}
body.is-authenticated[data-route="warehouse-locations"] .warehouse-primary-grid table {
  width: 100% !important;
  min-width: 0 !important;
  table-layout: fixed !important;
}
body.is-authenticated[data-route="warehouse-locations"] .warehouse-primary-grid th,
body.is-authenticated[data-route="warehouse-locations"] .warehouse-primary-grid td {
  padding-left: 12px !important;
  padding-right: 12px !important;
}
body.is-authenticated[data-route="warehouse-locations"] .warehouse-primary-grid th:nth-child(1),
body.is-authenticated[data-route="warehouse-locations"] .warehouse-primary-grid td:nth-child(1) { width: 16% !important; }
body.is-authenticated[data-route="warehouse-locations"] .warehouse-primary-grid th:nth-child(2),
body.is-authenticated[data-route="warehouse-locations"] .warehouse-primary-grid td:nth-child(2) { width: 31% !important; min-width: 0 !important; }
body.is-authenticated[data-route="warehouse-locations"] .warehouse-primary-grid th:nth-child(3),
body.is-authenticated[data-route="warehouse-locations"] .warehouse-primary-grid td:nth-child(3),
body.is-authenticated[data-route="warehouse-locations"] .warehouse-primary-grid th:nth-child(4),
body.is-authenticated[data-route="warehouse-locations"] .warehouse-primary-grid td:nth-child(4),
body.is-authenticated[data-route="warehouse-locations"] .warehouse-primary-grid th:nth-child(5),
body.is-authenticated[data-route="warehouse-locations"] .warehouse-primary-grid td:nth-child(5),
body.is-authenticated[data-route="warehouse-locations"] .warehouse-primary-grid th:nth-child(6),
body.is-authenticated[data-route="warehouse-locations"] .warehouse-primary-grid td:nth-child(6) { width: 8% !important; }
body.is-authenticated[data-route="warehouse-locations"] .warehouse-primary-grid th:nth-child(7),
body.is-authenticated[data-route="warehouse-locations"] .warehouse-primary-grid td:nth-child(7) { width: 11% !important; }
body.is-authenticated[data-route="warehouse-locations"] .warehouse-primary-grid th:nth-child(8),
body.is-authenticated[data-route="warehouse-locations"] .warehouse-primary-grid td:nth-child(8) { width: 10% !important; }
body.is-authenticated[data-route="warehouse-locations"] .warehouse-primary-grid td.warehouse-sku-item {
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}
body.is-authenticated[data-route="warehouse-locations"] .warehouse-primary-grid td.warehouse-sku-item strong,
body.is-authenticated[data-route="warehouse-locations"] .warehouse-primary-grid td.warehouse-sku-item span {
  display: inline !important;
  white-space: nowrap !important;
}
body.is-authenticated[data-route="warehouse-locations"] .warehouse-primary-grid td.warehouse-sku-item span {
  margin-left: 6px !important;
}


/* v114 multi-line RFQ workspace */
.rfq-workspace{grid-column:1/-1;width:100%;min-width:0;background:linear-gradient(180deg,rgba(17,31,45,.98),rgba(10,22,33,.98));border:1px solid rgba(198,157,72,.38);border-radius:24px;padding:22px;box-shadow:0 20px 55px rgba(0,0,0,.28)}
.rfq-header-grid{display:grid;grid-template-columns:repeat(4,minmax(170px,1fr));gap:12px;margin:16px 0}.rfq-header-grid label,.rfq-details-grid label,.rfq-line-row label{display:grid;gap:6px;font-size:.72rem;font-weight:800;text-transform:uppercase;letter-spacing:.05em;color:#c9d3dc}.rfq-header-grid input,.rfq-header-grid select,.rfq-details-grid input,.rfq-details-grid select,.rfq-details-grid textarea,.rfq-line-row input{width:100%;min-width:0;background:#07141f;border:1px solid rgba(148,163,184,.28);border-radius:12px;padding:10px 12px;color:#f7fafc;text-transform:none;letter-spacing:0;font-weight:600}
.rfq-workspace-grid{display:grid;grid-template-columns:minmax(250px,.8fr) minmax(470px,1.7fr) minmax(280px,1fr);gap:14px;align-items:stretch}.rfq-details-grid{display:grid;grid-template-columns:repeat(3,minmax(260px,1fr));gap:14px;margin-top:14px}.rfq-details-grid textarea{min-height:96px;resize:vertical}
.rfq-lines{display:grid;gap:10px;max-height:490px;overflow:auto;padding-right:3px}.rfq-line-row{display:grid;grid-template-columns:minmax(210px,1.6fr) 82px 90px 115px 82px;gap:8px;align-items:end;border:1px solid rgba(148,163,184,.2);border-radius:14px;padding:10px;background:rgba(4,13,22,.48)}.rfq-line-item{min-width:0;display:flex;flex-direction:column;gap:3px;align-self:center}.rfq-line-item strong,.rfq-line-item span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.rfq-line-item span{font-size:.78rem;color:#b9c5cf}.rfq-remove-btn{min-width:76px!important;padding:8px 10px!important;font-size:.7rem!important;line-height:1!important;white-space:nowrap!important;overflow:visible!important}
.rfq-vendors{display:grid;gap:8px;max-height:490px;overflow:auto}.rfq-vendor-card{display:grid;grid-template-columns:auto 1fr;gap:9px;align-items:start;border:1px solid rgba(148,163,184,.22);border-radius:13px;padding:10px;background:rgba(4,13,22,.44);cursor:pointer}.rfq-vendor-card.is-selected{border-color:rgba(198,157,72,.8);background:rgba(198,157,72,.09)}.rfq-vendor-card span{display:grid;gap:3px}.rfq-vendor-card small{color:#aebbc6;font-size:.72rem;line-height:1.25}
@media(max-width:1250px){.rfq-workspace-grid{grid-template-columns:1fr}.rfq-details-grid{grid-template-columns:1fr 1fr}.rfq-header-grid{grid-template-columns:repeat(2,minmax(170px,1fr))}}@media(max-width:760px){.rfq-header-grid,.rfq-details-grid{grid-template-columns:1fr}.rfq-line-row{grid-template-columns:1fr 1fr}.rfq-line-item{grid-column:1/-1}.rfq-remove-btn{width:100%}}

/* v115 guided receiving workspace */
.receiving-hero{display:flex;justify-content:space-between;gap:28px;align-items:flex-start}.receiving-hero>div:first-child{max-width:780px}.receiving-progress{display:grid;grid-template-columns:repeat(4,minmax(120px,1fr));gap:8px;width:min(620px,100%)}.receiving-progress span{padding:11px 12px;border:1px solid var(--border-color,#d7dee8);border-radius:10px;background:#f7f9fc;font-size:.78rem;font-weight:700;text-align:center}.receiving-progress span.active{background:#12243d;color:#fff}.receiving-layout{display:grid;grid-template-columns:minmax(250px,320px) minmax(0,1fr);gap:18px;grid-column:1/-1}.receiving-queue,.receiving-workspace{margin:0}.receiving-queue-list{display:grid;gap:10px}.receiving-queue-card{width:100%;display:grid;grid-template-columns:1fr auto;gap:8px 14px;text-align:left;padding:14px;border:1px solid #d7dee8;border-radius:12px;background:#fff;cursor:pointer}.receiving-queue-card:hover,.receiving-queue-card.active{border-color:#315c92;box-shadow:0 0 0 2px rgba(49,92,146,.1)}.receiving-queue-card span{display:flex;flex-direction:column}.receiving-queue-card small{color:#667085;margin-top:3px}.receiving-queue-card .status-badge{grid-column:1/-1;width:max-content}.receiving-po-header{display:flex;justify-content:space-between;gap:18px;align-items:flex-start;margin-bottom:18px}.receiving-methods{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px}.receiving-table-wrap{overflow:auto;border:1px solid #d7dee8;border-radius:12px}.receiving-lines-table{min-width:1040px;margin:0}.receiving-lines-table input,.receiving-lines-table select{min-width:95px;width:100%;padding:8px}.receiving-line-check{display:flex;align-items:flex-start;gap:10px}.receiving-line-check span{display:flex;flex-direction:column}.receiving-line-check small{color:#667085}.receiving-destination{margin-top:18px;padding:18px;border:1px solid #d7dee8;border-radius:12px;background:#f8fafc}.receiving-destination-grid,.receiving-proof-grid{display:grid;grid-template-columns:repeat(4,minmax(150px,1fr));gap:12px}.receiving-destination-grid label,.receiving-proof-grid label,.receiving-notes{display:flex;flex-direction:column;gap:6px;font-weight:700;font-size:.82rem}.receiving-destination-grid input,.receiving-proof-grid input,.receiving-notes textarea{padding:10px;border:1px solid #cdd5df;border-radius:9px;background:#fff}.receiving-proof-grid{margin-top:16px}.receiving-notes{margin-top:16px}.receiving-notes textarea{min-height:84px}.receiving-summary{position:sticky;bottom:0;margin:18px -18px -18px;padding:14px 18px;display:flex;align-items:center;gap:22px;background:#fff;border-top:1px solid #d7dee8;box-shadow:0 -8px 18px rgba(16,24,40,.06);z-index:4}.receiving-summary>div{display:flex;flex-direction:column}.receiving-summary span{font-size:.75rem;color:#667085}.receiving-summary strong{font-size:1.15rem}.receiving-post-btn{margin-left:auto;min-width:180px}.receiving-summary .form-result{max-width:320px;color:#344054}@media(max-width:1100px){.receiving-hero{flex-direction:column}.receiving-layout{grid-template-columns:1fr}.receiving-queue-list{grid-template-columns:repeat(auto-fit,minmax(240px,1fr))}.receiving-destination-grid,.receiving-proof-grid{grid-template-columns:repeat(2,minmax(150px,1fr))}}@media(max-width:680px){.receiving-progress{grid-template-columns:repeat(2,1fr)}.receiving-po-header{flex-direction:column}.receiving-methods{justify-content:flex-start}.receiving-destination-grid,.receiving-proof-grid{grid-template-columns:1fr}.receiving-summary{flex-wrap:wrap}.receiving-post-btn{margin-left:0;width:100%}}


/* v116 Enterprise Knowledge & Fulfillment */
.knowledge-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:0 0 18px}.knowledge-decision-form{display:grid;grid-template-columns:2fr 1fr;gap:16px}.knowledge-decision-form .wide{grid-column:1/-1}.fulfillment-controls{display:grid;grid-template-columns:minmax(220px,1fr) minmax(180px,.6fr) auto;gap:16px;align-items:end}.workspace-footer{display:flex;justify-content:flex-end;padding-top:18px}.knowledge-decision-form label,.fulfillment-controls label{display:flex;flex-direction:column;gap:7px}.knowledge-decision-form input,.knowledge-decision-form select,.knowledge-decision-form textarea,.fulfillment-controls input,.fulfillment-controls select{width:100%}@media(max-width:900px){.knowledge-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.knowledge-decision-form,.fulfillment-controls{grid-template-columns:1fr}.knowledge-decision-form .wide{grid-column:auto}}


/* v117 TICA Cognitive Core */
.cognitive-lifecycle{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;margin-top:16px}.cognitive-step{display:flex;align-items:center;gap:10px;border:1px solid var(--border);border-radius:14px;padding:14px;background:var(--surface)}.cognitive-step span{display:grid;place-items:center;width:30px;height:30px;border-radius:999px;background:var(--accent);color:#fff;font-weight:700}.knowledge-principles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.knowledge-principles>div{border:1px solid var(--border);border-radius:14px;padding:16px}.knowledge-principles p{margin:8px 0 0}@media(max-width:900px){.cognitive-lifecycle{grid-template-columns:repeat(2,minmax(0,1fr))}.knowledge-principles{grid-template-columns:1fr}}


/* v118 Intelligent Receiving Foundation */
.intelligent-receiving-panel{border:1px solid var(--border);border-radius:18px;padding:18px;margin-bottom:18px;background:linear-gradient(180deg,rgba(212,175,55,.08),transparent)}
.intelligent-receiving-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.intelligent-receiving-grid .wide{grid-column:1/-1}.intelligent-receiving-grid label{display:grid;gap:6px;font-weight:700}.intelligent-receiving-grid input,.intelligent-receiving-grid textarea{width:100%}.intelligent-receiving-grid textarea{min-height:96px;resize:vertical}.intelligent-receiving-actions{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-top:12px}.intelligent-receiving-output{display:grid;gap:8px;margin-top:12px}.receiving-analysis-summary{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:10px;padding:12px;border:1px solid var(--border);border-radius:14px}.receiving-analysis-summary small{color:var(--muted)}.receiving-analysis-warning{padding:10px 12px;border-left:4px solid #b7791f;background:rgba(183,121,31,.08);border-radius:8px}@media(max-width:760px){.intelligent-receiving-grid{grid-template-columns:1fr}.intelligent-receiving-grid .wide{grid-column:auto}.receiving-analysis-summary{grid-template-columns:1fr}}

/* ============================================================
   v120.0.0 — Returns & RMA Workspace Stabilization
   Prevent the return form from collapsing into one content-grid track.
   ============================================================ */
body.is-authenticated[data-route="returns-rma"] .content-grid > .returns-rma-layout {
  grid-column: 1 / -1 !important;
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(520px, 1.35fr) minmax(320px, .65fr);
  gap: 12px;
  align-items: start;
}

body.is-authenticated[data-route="returns-rma"] .returns-rma-layout > .card {
  grid-column: auto !important;
  width: 100%;
  min-width: 0;
  margin: 0;
}

body.is-authenticated[data-route="returns-rma"] .returns-rma-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  width: 100%;
  min-width: 0;
}

body.is-authenticated[data-route="returns-rma"] .returns-rma-form label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
  color: #f4f7fb;
  font-size: .82rem;
  font-weight: 800;
}

body.is-authenticated[data-route="returns-rma"] .returns-rma-form .wide {
  grid-column: 1 / -1;
}

body.is-authenticated[data-route="returns-rma"] .returns-rma-form input,
body.is-authenticated[data-route="returns-rma"] .returns-rma-form select,
body.is-authenticated[data-route="returns-rma"] .returns-rma-form textarea {
  display: block;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 11px 12px;
  border: 1px solid rgba(240,197,111,.24);
  border-radius: 10px;
  color: #f7f9fc;
  background: rgba(2,10,19,.72);
}

body.is-authenticated[data-route="returns-rma"] .returns-rma-form select option {
  color: #111827;
  background: #ffffff;
}

body.is-authenticated[data-route="returns-rma"] .returns-rma-form textarea {
  min-height: 108px;
  resize: vertical;
}

body.is-authenticated[data-route="returns-rma"] .returns-rma-form .form-actions {
  display: flex;
  justify-content: flex-start;
  padding-top: 2px;
}

body.is-authenticated[data-route="returns-rma"] .returns-rma-form .primary-btn {
  min-width: 220px;
}

@media (max-width: 1120px) {
  body.is-authenticated[data-route="returns-rma"] .content-grid > .returns-rma-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  body.is-authenticated[data-route="returns-rma"] .returns-rma-form {
    grid-template-columns: 1fr;
  }
  body.is-authenticated[data-route="returns-rma"] .returns-rma-form .wide {
    grid-column: auto;
  }
  body.is-authenticated[data-route="returns-rma"] .returns-rma-form .primary-btn {
    width: 100%;
    min-width: 0;
  }
}

/* ============================================================
   v122.0.0 — Returns & RMA Native Control Theme Correction
   Keep workflow steps and numeric controls inside the dark TICS theme.
   ============================================================ */
body.is-authenticated[data-route="returns-rma"] .receiving-progress span {
  border-color: rgba(240,197,111,.28) !important;
  background: rgba(8,20,33,.92) !important;
  color: #d9e1ea !important;
  box-shadow: none !important;
}

body.is-authenticated[data-route="returns-rma"] .receiving-progress span.active {
  border-color: rgba(240,197,111,.72) !important;
  background: linear-gradient(180deg, rgba(28,52,78,.98), rgba(13,31,49,.98)) !important;
  color: #ffffff !important;
}

body.is-authenticated[data-route="returns-rma"] .returns-rma-form input[type="number"] {
  color-scheme: dark;
  appearance: textfield;
  -moz-appearance: textfield;
}

body.is-authenticated[data-route="returns-rma"] .returns-rma-form input[type="number"]::-webkit-inner-spin-button,
body.is-authenticated[data-route="returns-rma"] .returns-rma-form input[type="number"]::-webkit-outer-spin-button {
  margin: 0;
  -webkit-appearance: none;
  appearance: none;
}

body.is-authenticated[data-route="returns-rma"] .returns-rma-form input::placeholder,
body.is-authenticated[data-route="returns-rma"] .returns-rma-form textarea::placeholder {
  color: rgba(210,220,231,.58);
  opacity: 1;
}
