:root {
  --navy: #07111c;
  --panel: #102334;
  --panel-2: #152b3d;
  --line: #29495f;
  --text: #eef6fb;
  --muted: #9fb5c3;
  --blue: #35b8ff;
  --green: #29b765;
  --amber: #d79212;
  --red: #d9413c;
}

body {
  margin: 0;
  background: var(--navy);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

.landing {
  min-height: 100vh;
  background:
    radial-gradient(circle at top right, rgba(53, 184, 255, .18), transparent 34%),
    linear-gradient(180deg, #07111c, #0d1e2c);
}

.hero {
  padding: 5rem 0 3rem;
}

.policy-page {
  background: #07111c;
  min-height: 100vh;
}

.policy-container {
  padding-bottom: 4rem;
  padding-top: 2rem;
}

.policy-card {
  background: linear-gradient(180deg, rgba(21, 43, 61, .96), rgba(14, 30, 43, .96));
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .32);
  padding: clamp(1.4rem, 3vw, 2.5rem);
}

.policy-card h1 {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 950;
}

.policy-note {
  background: rgba(53, 184, 255, .12);
  border: 1px solid rgba(53, 184, 255, .35);
  border-radius: 12px;
  color: var(--text);
  font-weight: 800;
  margin: 1.4rem 0;
  padding: 1rem;
}

.policy-section {
  border-top: 1px solid var(--line);
  padding: 1.15rem 0;
}

.policy-section h2 {
  font-size: 1.1rem;
  font-weight: 900;
}

.policy-section p {
  color: var(--muted);
  font-weight: 700;
  margin: 0;
}

.landing-grid {
  align-items: stretch;
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  font-weight: 850;
  letter-spacing: -.04em;
}

.eyebrow {
  color: var(--blue);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .78rem;
}

.hero-panel,
.hero-copy-card,
.pricing-card,
.panel,
.kpi-card,
.machine-card {
  background: linear-gradient(180deg, rgba(21, 43, 61, .96), rgba(14, 30, 43, .96));
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .28);
}

.hero-copy-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 460px;
  padding: 2.4rem;
}

.hero-panel {
  padding: 2rem;
  min-height: 460px;
}

.why-card {
  display: block;
  background: rgba(255, 255, 255, .045);
  border: 1px solid var(--line);
  border-left: 5px solid var(--blue);
  border-radius: 14px;
  color: var(--white);
  margin-top: 1.6rem;
  padding: 1.15rem 1.2rem;
  text-decoration: none;
}

.why-card h2 {
  font-size: 1.05rem;
  font-weight: 900;
  margin: 0 0 .45rem;
}

.why-card p {
  color: var(--muted);
  font-size: .94rem;
  font-weight: 650;
  line-height: 1.58;
  margin: 0 0 .85rem;
}

.why-card p:last-child {
  margin-bottom: 0;
}

.why-card-link {
  transition: border-color .18s ease, transform .18s ease, background .18s ease;
}

.why-card-link:hover {
  background: rgba(56, 189, 248, .1);
  border-color: rgba(56, 189, 248, .55);
  color: var(--white);
  transform: translateY(-2px);
}

.why-card-link span {
  color: var(--blue);
  display: inline-block;
  font-weight: 900;
  margin-top: .7rem;
}

.why-page-card {
  max-width: 980px;
}

.why-page-copy {
  margin-top: 1.6rem;
}

.why-page-copy p {
  color: var(--muted);
  font-size: 1.05rem;
  font-weight: 650;
  line-height: 1.75;
  margin: 0 0 1.25rem;
}

.why-page-copy p:last-child {
  margin-bottom: 0;
}

.contact-card {
  max-width: 860px;
}

.contact-panel {
  background: rgba(56, 189, 248, .08);
  border: 1px solid rgba(56, 189, 248, .35);
  border-radius: 14px;
  margin-top: 1.8rem;
  padding: 1.4rem;
}

.contact-panel span {
  color: var(--muted);
  display: block;
  font-weight: 800;
  margin-bottom: .35rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.contact-panel a {
  color: var(--white);
  display: inline-block;
  font-size: 1.55rem;
  font-weight: 900;
  text-decoration: none;
}

.contact-panel a:hover {
  color: var(--blue);
}

.contact-panel p {
  color: var(--muted);
  font-weight: 700;
  margin: .6rem 0 0;
}

.status-row {
  display: flex;
  gap: .7rem;
  margin-bottom: 2.5rem;
}

.health {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-block;
}

.green { background: var(--green); }
.amber { background: var(--amber); }
.red { background: var(--red); }

.pricing-card {
  padding: 2rem;
  margin: 0 auto;
  max-width: 100%;
}

.auth-page {
  min-height: 100vh;
}

.auth-wrap {
  align-items: center;
  display: flex;
  justify-content: center;
  min-height: calc(100vh - 78px);
  padding-bottom: 4rem;
  padding-top: 3rem;
}

.auth-card {
  background: linear-gradient(180deg, rgba(21, 43, 61, .96), rgba(14, 30, 43, .96));
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .34);
  max-width: 560px;
  padding: 2.2rem;
  width: 100%;
}

.auth-card h1 {
  font-weight: 900;
}

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

.price-grid div {
  background: rgba(255, 255, 255, .035);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.2rem;
}

.price-grid span,
.price-grid small {
  color: var(--muted);
  display: block;
  font-weight: 850;
}

.price-grid strong {
  display: block;
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 950;
  line-height: 1;
  margin: .5rem 0;
}

.app-shell {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}

.sidebar {
  background: #081521;
  border-right: 1px solid var(--line);
  padding: 1.25rem;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.brand {
  display: flex;
  align-items: center;
  gap: .7rem;
  color: var(--text);
  font-size: 1.25rem;
  font-weight: 900;
  text-decoration: none;
  margin-bottom: 1.1rem;
}

.brand-with-logo {
  align-items: center;
  display: inline-flex;
  gap: .7rem;
}

.logo-mark {
  display: grid;
  gap: 4px;
  width: 46px;
}

.logo-mark i {
  border-radius: 999px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, .22);
  display: block;
  height: 7px;
}

.logo-mark i:nth-child(1) {
  background: #ffffff;
  margin-left: 18px;
  width: 28px;
}

.logo-mark i:nth-child(2) {
  background: #169df2;
  margin-left: 10px;
  width: 34px;
}

.logo-mark i:nth-child(3) {
  background: #ff3131;
  width: 32px;
}

.logo-mark i:nth-child(4) {
  background: #ffffff;
  margin-left: 26px;
  margin-top: -11px;
  width: 22px;
}

.logo-mark i:nth-child(5) {
  background: #169df2;
  margin-left: 14px;
  width: 30px;
}

.sidebar .nav-link {
  color: var(--muted);
  border-radius: 10px;
  padding: .62rem .85rem;
  margin-bottom: .28rem;
  font-weight: 750;
}

.sidebar .nav-link.active,
.sidebar .nav-link:hover {
  background: #142b3e;
  color: var(--text);
  box-shadow: inset 4px 0 0 var(--blue);
}

.sidebar-footer {
  border-top: 1px solid var(--line);
  margin-top: 1rem;
  padding-top: 1rem;
}

.sample-type-nav {
  border-top: 1px solid var(--line);
  margin-top: 1rem;
  padding-top: .8rem;
}

.sample-type-nav span {
  color: var(--muted);
  display: block;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .1em;
  margin-bottom: .55rem;
  text-transform: uppercase;
}

.sample-type-link {
  background: rgba(255, 255, 255, .035);
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--muted);
  display: block;
  font-weight: 800;
  margin-bottom: .32rem;
  padding: .46rem .7rem;
  text-decoration: none;
}

.sample-type-link.active,
.sample-type-link:hover {
  background: #142b3e;
  border-color: var(--line);
  color: var(--text);
  box-shadow: inset 4px 0 0 var(--blue);
}

.content {
  padding: 2rem;
  min-width: 0;
}

.app-policy-footer {
  border-top: 1px solid rgba(53, 184, 255, .18);
  display: flex;
  flex-wrap: wrap;
  gap: 1.7rem;
  margin-top: 3rem;
  padding: 1.7rem 0 .6rem;
}

.app-policy-footer a {
  color: #8fd6e1;
  font-weight: 800;
  text-decoration: none;
}

.app-policy-footer a:hover {
  color: #c9f7ff;
}

.app-policy-footer span {
  color: rgba(143, 214, 225, .42);
  font-weight: 900;
}

.landing-policy-footer {
  border-top: 1px solid rgba(53, 184, 255, .18);
  display: flex;
  flex-wrap: wrap;
  gap: 1.7rem;
  padding-bottom: 2rem;
  padding-top: 1.7rem;
}

.landing-policy-footer a {
  color: #8fd6e1;
  font-weight: 800;
  text-decoration: none;
}

.landing-policy-footer a:hover {
  color: #c9f7ff;
}

.landing-policy-footer span {
  color: rgba(143, 214, 225, .42);
  font-weight: 900;
}

.topbar,
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.topbar h1 {
  margin: 0;
  font-weight: 900;
}

.signed-in {
  color: var(--muted);
  display: block;
  font-weight: 700;
  margin-top: .35rem;
}

.top-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  justify-content: flex-end;
  min-width: 0;
}

.notification-bell {
  margin-left: auto;
  order: 10;
  position: relative;
}

.notification-bell summary {
  align-items: center;
  background: #142b3e;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  cursor: pointer;
  display: inline-flex;
  height: 48px;
  justify-content: center;
  list-style: none;
  position: relative;
  width: 52px;
}

.notification-bell.has-alerts summary {
  background: rgba(34, 197, 94, .18);
  border-color: rgba(34, 197, 94, .7);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, .12);
}

.notification-bell summary::-webkit-details-marker {
  display: none;
}

.bell-icon {
  border: 2px solid #ffffff;
  border-bottom: 0;
  border-radius: 13px 13px 6px 6px;
  display: block;
  height: 20px;
  position: relative;
  width: 18px;
}

.bell-icon::before {
  background: #ffffff;
  border-radius: 999px;
  content: "";
  height: 5px;
  left: 5px;
  position: absolute;
  top: -7px;
  width: 5px;
}

.bell-icon::after {
  background: #ffffff;
  border-radius: 0 0 999px 999px;
  bottom: -5px;
  content: "";
  height: 5px;
  left: -3px;
  position: absolute;
  width: 20px;
}

.notification-bell summary::after {
  background: #ffffff;
  border-radius: 50%;
  bottom: 9px;
  content: "";
  height: 5px;
  left: 50%;
  position: absolute;
  transform: translateX(-50%);
  width: 5px;
}

.notification-bell em {
  align-items: center;
  background: #22c55e;
  border: 2px solid #07111c;
  border-radius: 999px;
  color: #ffffff;
  display: flex;
  font-size: .72rem;
  font-style: normal;
  font-weight: 900;
  height: 23px;
  justify-content: center;
  min-width: 23px;
  padding: 0 .28rem;
  position: absolute;
  right: -8px;
  top: -8px;
}

.notification-menu {
  background: #10283b;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .42);
  display: none;
  min-width: 340px;
  padding: .75rem;
  position: absolute;
  right: 0;
  top: calc(100% + .65rem);
  z-index: 60;
}

.notification-bell[open] .notification-menu {
  display: block;
}

.notification-head {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  margin-bottom: .55rem;
  padding: .2rem .25rem .65rem;
}

.notification-head strong {
  font-weight: 900;
}

.notification-head form {
  margin: 0;
}

.notification-head button {
  background: transparent;
  border: 0;
  color: #8fd6e1;
  font-weight: 850;
}

.notification-item,
.notification-empty {
  border-radius: 12px;
  display: block;
  padding: .7rem .75rem;
}

.notification-item {
  color: var(--text);
  text-decoration: none;
}

.notification-item:hover {
  background: rgba(255, 255, 255, .055);
}

.notification-item.unread {
  background: rgba(34, 197, 94, .12);
  box-shadow: inset 4px 0 0 #22c55e;
}

.notification-item strong,
.notification-item span,
.notification-item small {
  display: block;
}

.notification-item span,
.notification-item small,
.notification-empty {
  color: var(--muted);
  font-weight: 750;
}

.notification-item strong {
  font-weight: 900;
}

.notification-item small {
  font-size: .75rem;
  margin-top: .25rem;
}

.login-form {
  display: grid;
  gap: .7rem;
  margin-top: 1.2rem;
}

.login-form label {
  color: var(--muted);
  font-weight: 800;
}

.login-form .form-control {
  background: #eef6fb;
  border: 1px solid #bcd0dc;
  color: #07111c;
  min-height: 48px;
}

.kpi-card {
  padding: 1.2rem;
  border-top: 5px solid var(--blue);
  min-height: 132px;
}

.kpi-card.amber { border-top-color: var(--amber); }
.kpi-card.red { border-top-color: var(--red); }
.kpi-card.grey { border-top-color: #8aa1ad; }

.kpi-card span,
.machine-card span {
  color: var(--muted);
  text-transform: uppercase;
  font-weight: 850;
  font-size: .78rem;
}

.kpi-card strong {
  display: block;
  font-size: 2.7rem;
  line-height: 1;
  margin-top: .8rem;
}

.panel {
  padding: 1.2rem;
  min-width: 0;
}

.panel h2 {
  font-size: 1.15rem;
  font-weight: 850;
}

.card-link {
  color: inherit;
  display: block;
  text-decoration: none;
}

.card-link:hover .kpi-card,
.card-link:hover .health-card {
  border-color: #5e91ad;
  transform: translateY(-2px);
}

.filters {
  display: flex;
  gap: .7rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.filters.wide {
  justify-content: flex-start;
}

.search {
  max-width: 300px;
  min-width: 240px;
}

.filter-select {
  max-width: 170px;
}

.trend-select {
  max-width: 360px;
  min-height: 44px;
  min-width: 260px;
  width: 360px;
}

.trend-machinery-control {
  flex: 0 0 380px;
}

.trend-date-control {
  flex: 0 0 170px;
}

.trend-machinery-control .form-label,
.trend-date-control .form-label {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .08em;
  margin-bottom: .45rem;
  text-transform: uppercase;
}

.parameter-picker {
  background: rgba(255, 255, 255, .035);
  border: 1px solid var(--line);
  border-radius: 14px;
  display: flex;
  flex: 1 1 520px;
  flex-wrap: wrap;
  gap: .55rem;
  padding: .8rem;
}

.parameter-picker-head {
  align-items: center;
  display: flex;
  flex-basis: 100%;
  flex-wrap: wrap;
  gap: .7rem;
  justify-content: space-between;
}

.parameter-picker-head > span {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.parameter-chip {
  align-items: center;
  background: #203547;
  border: 1px solid #365a72;
  border-radius: 999px;
  color: var(--text);
  cursor: pointer;
  display: inline-flex;
  font-weight: 800;
  gap: .45rem;
  padding: .48rem .75rem;
}

.parameter-chip:has(input:checked) {
  background: rgba(53, 184, 255, .22);
  border-color: var(--blue);
  box-shadow: 0 0 0 2px rgba(53, 184, 255, .18);
}

.parameter-chip input {
  accent-color: var(--blue);
}

.select-all-chip {
  background: rgba(53, 184, 255, .14);
  border-color: var(--blue);
}

.table {
  --bs-table-bg: transparent;
  --bs-table-border-color: var(--line);
}

.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table-responsive .table {
  min-width: 760px;
}

.badge {
  min-width: 70px;
  padding: .45rem .7rem;
}

.status-green { background: var(--green); }
.status-amber { background: var(--amber); }
.status-red { background: var(--red); }
.status-awaiting {
  background: #168de2;
  color: #ffffff;
}

.awaiting-status-pill {
  background: linear-gradient(180deg, #22a8f4, #0878cf);
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(8, 120, 207, .35);
  color: #ffffff;
  display: inline-flex;
  font-size: 1.05rem !important;
  font-weight: 900;
  justify-content: center;
  letter-spacing: .02em;
  line-height: 1.2 !important;
  padding: .7rem 1rem;
  text-transform: uppercase;
}

.click-row {
  cursor: pointer;
}

.click-row:hover td {
  background: rgba(53, 184, 255, .08);
}

.health-card {
  align-items: center;
  background: linear-gradient(180deg, rgba(21, 43, 61, .96), rgba(14, 30, 43, .96));
  border: 1px solid var(--line);
  border-top: 5px solid var(--blue);
  border-radius: 14px;
  display: flex;
  gap: 1rem;
  min-height: 94px;
  padding: 1rem;
  transition: .18s ease;
}

.green-border { border-top-color: var(--green); }
.amber-border { border-top-color: var(--amber); }
.red-border { border-top-color: var(--red); }

.health-card strong {
  font-size: 2.1rem;
  line-height: 1;
}

.health-card small {
  color: var(--muted);
  font-weight: 750;
  text-transform: uppercase;
}

.system-title {
  border-left: 5px solid var(--blue);
  color: var(--text);
  font-size: .9rem;
  font-weight: 900;
  letter-spacing: .08em;
  margin: 1.2rem 0 .8rem;
  padding-left: .75rem;
  text-transform: uppercase;
}

.machine-card {
  padding: 1rem;
  min-height: 126px;
}

.machine-card.tall {
  min-height: 188px;
}

.machine-card-link {
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.machine-card-link:hover {
  border-color: var(--blue);
  box-shadow: 0 20px 56px rgba(53, 184, 255, .18);
  transform: translateY(-2px);
}

.machine-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin-top: 1rem;
}

.machine-actions .btn {
  flex: 1 1 9rem;
}

.machine-product-pill {
  background: rgba(53, 184, 255, .12);
  border: 1px solid rgba(53, 184, 255, .35);
  border-radius: 12px;
  margin: .75rem 0;
  padding: .65rem .75rem;
}

.machine-product-pill span {
  color: var(--blue);
  display: block;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.machine-product-pill strong {
  color: var(--text);
  font-size: .95rem;
  margin: .2rem 0 0;
}

.vessel-card {
  background: linear-gradient(180deg, rgba(21, 43, 61, .96), rgba(14, 30, 43, .96));
  border: 1px solid var(--line);
  border-left: 5px solid var(--blue);
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .22);
  padding: 1.2rem;
}

.vessel-card span,
.muted {
  color: var(--muted);
  font-weight: 800;
}

.vessel-card strong,
.vessel-card small {
  display: block;
}

.vessel-card strong {
  font-size: 1.45rem;
  margin: .35rem 0;
}

.sample-heading {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}

.sample-heading p {
  color: var(--muted);
  font-weight: 700;
  margin: .3rem 0 0;
}

.small-kpi {
  font-size: 1.45rem !important;
  line-height: 1.15 !important;
}

.detail-table td:first-child {
  color: var(--muted);
  font-weight: 850;
  width: 38%;
}

.settings-form {
  display: grid;
  gap: .75rem;
}

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

.sample-update-form {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.settings-form .form-control,
.settings-form .form-select,
.panel .form-select,
.machinery-form .form-control,
.sample-update-form .form-control {
  background: #eef6fb;
  border: 1px solid #bcd0dc;
  color: #07111c;
  min-height: 48px;
}

.sample-update-form-readonly .form-control:disabled,
.sample-update-form-readonly .form-select:disabled {
  background: rgba(238, 246, 251, .82);
  color: #07111c;
  cursor: default;
  opacity: 1;
}

.machinery-form .form-control::placeholder,
.settings-form .form-control::placeholder {
  color: #07111c;
  opacity: .78;
}

.machinery-form .form-control:placeholder-shown {
  color: #07111c;
}

.form-wide {
  grid-column: 1 / -1;
}

.autocomplete-field {
  position: relative;
}

.autocomplete-menu {
  background: #ffffff;
  border: 1px solid #bcd0dc;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 18px 34px rgba(0, 0, 0, .28);
  display: none;
  left: 0;
  max-height: 260px;
  overflow-y: auto;
  position: absolute;
  right: 0;
  top: calc(100% - 1px);
  z-index: 30;
}

.autocomplete-menu.open {
  display: block;
}

.autocomplete-menu button {
  background: #ffffff;
  border: 0;
  color: #07111c;
  display: block;
  font-weight: 800;
  padding: .72rem .9rem;
  text-align: left;
  width: 100%;
}

.autocomplete-menu button:hover {
  background: #e8f4ff;
}

.form-subtitle {
  border-top: 1px solid var(--line);
  color: var(--blue);
  font-size: .85rem;
  font-weight: 900;
  letter-spacing: .08em;
  margin-top: .5rem;
  padding-top: 1rem;
  text-transform: uppercase;
}

.settings-row {
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .9rem 0;
}

.settings-row span {
  color: var(--muted);
  font-weight: 850;
}

.settings-actions {
  display: grid;
  gap: .75rem;
}

.payment-summary {
  background: rgba(53, 184, 255, .12);
  border: 1px solid rgba(53, 184, 255, .34);
  border-radius: 12px;
  color: var(--text);
  font-weight: 850;
  padding: .8rem 1rem;
}

.payment-onboarding-panel {
  scroll-margin-top: 1rem;
}

.setup-lock-banner {
  background: rgba(245, 159, 19, .12);
  border: 1px solid rgba(245, 159, 19, .45);
  border-radius: 14px;
  display: grid;
  gap: .25rem;
  padding: 1rem 1.15rem;
}

.setup-lock-banner strong {
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 900;
}

.setup-lock-banner span {
  color: var(--muted);
  font-weight: 800;
}

.payment-prompt {
  background: rgba(56, 189, 248, .12);
  border: 1px solid rgba(56, 189, 248, .45);
  border-radius: 12px;
  display: grid;
  gap: .25rem;
  margin-bottom: 1rem;
  padding: 1rem;
}

.payment-prompt strong {
  color: var(--white);
  font-size: 1.05rem;
}

.payment-prompt span {
  color: var(--muted);
  font-weight: 750;
}

.cancelled-summary {
  background: rgba(239, 68, 68, .14);
  border: 1px solid rgba(239, 68, 68, .5);
  border-radius: 12px;
  display: grid;
  gap: .25rem;
  margin-bottom: 1rem;
  padding: 1rem;
}

.cancelled-summary strong {
  color: var(--white);
  font-size: 1.05rem;
  font-weight: 900;
}

.cancelled-summary span {
  color: var(--muted);
  font-weight: 750;
}

.cancel-account-form {
  border-top: 1px solid var(--line);
  display: grid;
  gap: .55rem;
  margin-top: 1rem;
  padding-top: 1rem;
}

.cancel-account-form small {
  color: var(--muted);
  font-weight: 750;
}

.guide-flow {
  display: grid;
  gap: 1rem;
}

.guide-step {
  background: rgba(255, 255, 255, .035);
  border: 1px solid var(--line);
  border-radius: 16px;
  display: grid;
  gap: .9rem;
  padding: 1rem;
}

.guide-step strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 900;
}

.guide-step p {
  color: var(--muted);
  font-weight: 700;
  margin: .35rem 0 0;
}

.guide-shot {
  background: #eef6fb;
  border: 1px solid #bcd0dc;
  border-radius: 14px;
  min-height: 130px;
  overflow: hidden;
  padding: .8rem;
  position: relative;
}

.guide-shot-dark {
  background: linear-gradient(180deg, #122d40, #0b1d2b);
  border-color: rgba(53, 184, 255, .34);
}

.guide-topbar {
  background: #0b1b28;
  border-radius: 999px;
  height: 12px;
  margin-bottom: .75rem;
  width: 42%;
}

.guide-card,
.guide-table {
  background: #ffffff;
  border: 1px solid #c8d8e4;
  border-radius: 12px;
  color: #07111c;
  padding: .7rem;
}

.guide-card.wide {
  width: 76%;
}

.guide-card span,
.guide-card small {
  color: #577081;
  display: block;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.guide-card strong {
  color: #07111c;
  margin: .2rem 0;
}

.guide-grid {
  display: grid;
  gap: .55rem;
  grid-template-columns: 1fr 1fr;
}

.guide-table {
  align-items: center;
  display: grid;
  gap: .4rem;
  grid-template-columns: 1fr;
  font-weight: 900;
  width: 78%;
}

.blue-pill {
  background: #35b8ff;
  border-radius: 999px;
  color: #07111c;
  display: inline-block;
  padding: .3rem .65rem;
  width: max-content;
}

.guide-dropzone {
  align-items: center;
  border: 2px dashed #3d7b9b;
  border-radius: 16px;
  color: #07111c;
  display: flex;
  flex-direction: column;
  font-weight: 900;
  justify-content: center;
  min-height: 95px;
  width: 72%;
}

.guide-dropzone small {
  color: #577081;
  font-weight: 800;
}

.guide-chart {
  background:
    linear-gradient(#29495f 1px, transparent 1px),
    linear-gradient(90deg, #29495f 1px, transparent 1px),
    #0b1b28;
  background-size: 100% 25%, 25% 100%, auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  height: 112px;
  margin: 0;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.guide-chart i {
  background: #35b8ff;
  border: 2px solid #eef6fb;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(53, 184, 255, .55);
  height: 11px;
  position: absolute;
  width: 11px;
  z-index: 2;
}

.guide-chart i:nth-child(1) { bottom: 25px; left: 12%; }
.guide-chart i:nth-child(2) { bottom: 45px; left: 36%; }
.guide-chart i:nth-child(3) { bottom: 38px; left: 60%; }
.guide-chart i:nth-child(4) { bottom: 72px; left: 84%; }

.guide-chart::after {
  background: linear-gradient(90deg, #35b8ff, #29b765);
  content: "";
  height: 4px;
  left: 13%;
  position: absolute;
  top: 55px;
  transform: rotate(-15deg);
  transform-origin: left center;
  width: 72%;
}

.guide-chart::before {
  bottom: 9px;
  color: #9fb5c3;
  content: "Date | Running hours";
  font-size: .68rem;
  font-weight: 800;
  left: 14px;
  position: absolute;
}

.guide-trend-preview {
  background: #081722;
  border: 1px solid rgba(83, 129, 160, .75);
  border-radius: 12px;
  padding: .7rem;
}

.guide-trend-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: .35rem;
}

.guide-trend-head span {
  color: var(--blue);
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.guide-trend-head strong {
  color: #eef6fb;
  font-size: .82rem;
  font-weight: 900;
}

.guide-trend-preview svg {
  display: block;
  height: 92px;
  width: 100%;
}

.guide-trend-preview line {
  stroke: rgba(116, 155, 181, .32);
  stroke-width: 1;
}

.guide-trend-preview polyline {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 4;
}

.guide-trend-preview .trend-line-main {
  stroke: #35b8ff;
}

.guide-trend-preview .trend-line-limit {
  stroke: #f59f13;
  stroke-width: 2;
}

.guide-trend-preview circle {
  fill: #35b8ff;
  stroke: #eef6fb;
  stroke-width: 2;
}

.guide-trend-meta {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
}

.guide-trend-meta span {
  background: rgba(53, 184, 255, .1);
  border: 1px solid rgba(53, 184, 255, .25);
  border-radius: 999px;
  color: #cfe4ef;
  font-size: .68rem;
  font-weight: 850;
  padding: .25rem .45rem;
}

.guide-lights {
  display: flex;
  gap: .45rem;
  margin: .8rem 0 0 .5rem;
}

.guide-lights span {
  border-radius: 50%;
  height: 14px;
  width: 14px;
}

.guide-lights .ok { background: #2fd25f; }
.guide-lights .warn { background: #f59f13; }
.guide-lights .bad { background: #ff453d; }

.settings-contact-footer {
  background: #e8eef3;
  border: 1px solid #c9d6df;
  border-radius: 12px;
  color: #1f2933;
  margin-top: 1.5rem;
  padding: 1rem 1.2rem;
}

.settings-contact-footer strong,
.settings-contact-footer span {
  display: block;
}

.settings-contact-footer strong {
  font-size: 1.05rem;
  font-weight: 900;
}

.settings-contact-footer span {
  color: #3f4951;
  font-weight: 700;
  margin-top: .2rem;
}

.trend-chart-wrap {
  background: #0b1b28;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow-x: auto;
  padding: 1rem;
  position: relative;
}

.trend-canvas {
  display: block;
  max-width: 100%;
  min-width: 760px;
}

.trend-tooltip {
  background: rgba(238, 246, 251, .98);
  border: 1px solid #bcd0dc;
  border-radius: 12px;
  box-shadow: 0 16px 32px rgba(0, 0, 0, .28);
  color: #07111c;
  display: none;
  min-width: 185px;
  padding: .7rem .8rem;
  pointer-events: none;
  position: absolute;
  z-index: 20;
}

.trend-tooltip.show {
  display: block;
}

.trend-tooltip strong,
.trend-tooltip span,
.trend-tooltip small {
  display: block;
}

.trend-tooltip strong {
  font-weight: 900;
}

.trend-tooltip span {
  color: #0b73b7;
  font-size: 1.25rem;
  font-weight: 900;
  margin: .1rem 0;
}

.trend-tooltip small {
  color: #51606c;
  font-weight: 750;
}

.trend-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}

.trend-legend span {
  align-items: center;
  color: var(--muted);
  display: inline-flex;
  font-weight: 800;
  gap: .45rem;
}

.trend-legend i {
  border-radius: 999px;
  display: inline-block;
  height: 12px;
  width: 28px;
}

.empty-chart {
  background: rgba(215, 146, 18, .14);
  border: 1px solid rgba(215, 146, 18, .42);
  border-radius: 14px;
  color: #ffe3a3;
  font-weight: 800;
  padding: 1rem;
}

.table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.table-actions form {
  margin: 0;
}

.machine-card strong,
.machine-card small {
  display: block;
}

.machine-card strong {
  margin: .5rem 0;
  font-size: 1.1rem;
}

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

.upload-panel {
  max-width: 760px;
}

.dropzone {
  align-items: center;
  background: rgba(255, 255, 255, .04);
  border: 2px dashed #3b6882;
  border-radius: 18px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: .35rem;
  justify-content: center;
  min-height: 220px;
  padding: 2rem;
  text-align: center;
}

.dropzone span {
  font-size: 1.5rem;
  font-weight: 900;
}

.dropzone small {
  color: var(--muted);
}

.dropzone input {
  margin-top: 1rem;
}

.awaiting-attach-row td {
  background: rgba(53, 184, 255, .04) !important;
  border-bottom: 1px solid var(--line);
  padding: 1rem !important;
}

.sent-sample-list {
  display: grid;
  gap: 1rem;
}

.sent-sample-card {
  background: rgba(8, 21, 33, .72);
  border: 2px solid #3b6882;
  border-radius: 18px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, .22);
  padding: 1rem;
}

.sent-sample-summary {
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin-bottom: 1rem;
  padding: .4rem .35rem 1rem;
}

.sent-sample-summary span {
  color: var(--muted);
  display: block;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .06em;
  margin-bottom: .35rem;
  text-transform: uppercase;
}

.sent-sample-summary strong {
  color: var(--text);
  font-size: 1.15rem;
}

.inline-attach-panel {
  align-items: center;
  background: rgba(16, 35, 52, .92);
  border: 1px solid var(--line);
  border-radius: 14px;
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(220px, .8fr) minmax(320px, 1.4fr) auto;
  padding: 1rem;
}

.inline-attach-panel strong,
.inline-attach-panel small {
  display: block;
}

.inline-attach-panel small {
  color: var(--muted);
  font-weight: 750;
  margin-top: .25rem;
}

.mini-dropzone {
  align-items: center;
  border: 2px dashed #3b6882;
  border-radius: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1rem;
  justify-content: space-between;
  margin: 0;
  padding: .8rem 1rem;
}

.mini-dropzone span {
  font-weight: 900;
}

.mini-dropzone small {
  color: var(--muted);
}

.management-users,
.management-content-grid {
  display: grid;
  gap: 1rem;
}

.management-user-card,
.management-content-card {
  background: rgba(255, 255, 255, .035);
  border: 1px solid var(--line);
  border-radius: 14px;
  display: grid;
  gap: .8rem;
  padding: 1rem;
}

.management-user-card {
  align-items: end;
  grid-template-columns: minmax(220px, 1.2fr) minmax(220px, 1.4fr) minmax(220px, 1fr) auto auto;
}

.management-user-card span {
  color: var(--muted);
  display: block;
  font-weight: 850;
  margin-bottom: .35rem;
}

.management-user-stats {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
}

.management-check {
  align-items: center;
  color: var(--text);
  display: flex;
  font-weight: 850;
  gap: .45rem;
  min-height: 48px;
}

.management-check input {
  accent-color: var(--blue);
  height: 18px;
  width: 18px;
}

.management-user-actions {
  display: flex;
  gap: .45rem;
}

.management-user-stats small,
.management-content-card small {
  background: rgba(53, 184, 255, .1);
  border: 1px solid rgba(53, 184, 255, .25);
  border-radius: 999px;
  color: var(--muted);
  font-weight: 800;
  padding: .3rem .55rem;
}

.management-user-stats .cancelled-badge {
  background: rgba(239, 68, 68, .16);
  border-color: rgba(239, 68, 68, .55);
  color: #fecaca;
}

.management-user-stats .active-badge {
  background: rgba(34, 197, 94, .13);
  border-color: rgba(34, 197, 94, .45);
  color: #bbf7d0;
}

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

.management-content-card .form-control,
.management-user-card .form-control {
  background: #eef6fb;
  border: 1px solid #bcd0dc;
  color: #07111c;
}

.management-content-card small {
  border-radius: 10px;
  line-height: 1.45;
}

@media (max-width: 900px) {
  .landing-grid,
  .price-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy-card,
  .hero-panel {
    min-height: auto;
  }

  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    border-bottom: 1px solid var(--line);
    border-right: 0;
    height: auto;
    max-height: 48vh;
    overflow-y: auto;
    padding: 1rem;
    position: sticky;
    top: 0;
    z-index: 50;
  }

  .brand {
    margin-bottom: .75rem;
  }

  .sidebar > .nav-link {
    display: inline-flex;
    margin: 0 .35rem .45rem 0;
    white-space: nowrap;
  }

  .sidebar .nav-link.active,
  .sidebar .nav-link:hover {
    box-shadow: inset 0 -4px 0 var(--blue);
  }

  .sample-type-nav {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin-top: .65rem;
    padding-top: .65rem;
  }

  .sample-type-nav span {
    flex-basis: 100%;
    margin-bottom: .1rem;
  }

  .sample-type-link {
    display: inline-flex;
    margin: 0;
    white-space: nowrap;
  }

  .sample-type-link.active,
  .sample-type-link:hover {
    box-shadow: inset 0 -4px 0 var(--blue);
  }

  .sidebar-footer {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: .75rem;
    padding-top: .75rem;
  }

  .sidebar-footer .btn {
    margin-top: 0 !important;
    width: auto !important;
  }

  .content {
    padding: 1rem;
  }

  .topbar,
  .panel-head {
    align-items: stretch;
    flex-direction: column;
  }

  .search {
    max-width: 100%;
  }

  .filters,
  .filter-select,
  .trend-select {
    max-width: 100%;
    width: 100%;
  }

  .trend-machinery-control {
    flex-basis: 100%;
  }

  .parameter-picker {
    flex-basis: 100%;
  }

  .inline-attach-panel {
    grid-template-columns: 1fr;
  }

  .sent-sample-summary {
    grid-template-columns: 1fr 1fr;
  }

  .sample-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .machinery-form {
    grid-template-columns: 1fr;
  }

  .sample-update-form {
    grid-template-columns: 1fr;
  }

  .management-user-card,
  .management-content-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .content {
    padding: .75rem;
  }

  .sidebar {
    max-height: 56vh;
    padding: .85rem;
  }

  .brand {
    font-size: 1.05rem;
  }

  .topbar h1 {
    font-size: clamp(2rem, 12vw, 3.2rem);
    line-height: .95;
    word-break: break-word;
  }

  .top-actions {
    justify-content: stretch;
  }

  .top-actions .btn,
  .top-actions details {
    flex: 1 1 auto;
  }

  .notification-bell {
    margin-left: 0;
    order: 0;
  }

  .notification-bell summary {
    justify-content: center;
    width: 100%;
  }

  .notification-menu {
    left: 0;
    max-width: calc(100vw - 1.5rem);
    right: auto;
    width: calc(100vw - 1.5rem);
  }

  .panel {
    border-radius: 14px;
    padding: .9rem;
  }

  .kpi-card strong {
    font-size: 2.15rem;
  }

  .sent-sample-summary {
    grid-template-columns: 1fr;
  }

  .mini-dropzone,
  .dropzone {
    align-items: stretch;
    min-height: 140px;
    padding: 1rem;
  }

  .table-responsive .table {
    min-width: 680px;
  }

  .btn {
    white-space: normal;
  }
}

@media (max-width: 430px) {
  .sidebar > .nav-link,
  .sample-type-link {
    width: 100%;
  }

  .sidebar-footer .btn,
  .top-actions .btn {
    width: 100% !important;
  }
}
