html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
  background: #0f1728;
  color: #f8fafc;
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
}

.bg-nova {
  background: #0b1220;
  border-color: #1d2a3e !important;
}

.navbar-brand {
  letter-spacing: .08rem;
}

.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.page-heading h1 {
  margin: 0;
  font-size: 1.9rem;
  font-weight: 700;
}

.metric {
  min-height: 112px;
  padding: 1rem;
  border: 1px solid #4b5563;
  border-radius: 8px;
  background: #1f2427;
}

.metric span {
  display: block;
  min-height: 40px;
  color: #94a3b8;
  font-size: .9rem;
}

.metric strong {
  display: block;
  font-size: 2.1rem;
  line-height: 1;
}

.metric.danger {
  border-left: 5px solid #f97316;
}

.metric.warning {
  border-left: 5px solid #ffbf00;
}

section h2 {
  font-size: 1.2rem;
  margin-bottom: .85rem;
}

.form-panel {
  max-width: 1100px;
  padding: 1rem;
  border: 1px solid #4b5563;
  border-radius: 8px;
  background: #1f2427;
}

.info-panel {
  min-height: 100%;
  padding: 1rem;
  border: 1px solid #4b5563;
  border-radius: 8px;
  background: #1f2427;
}

.info-panel h2,
.info-panel h3 {
  margin-bottom: .85rem;
  font-size: 1.05rem;
  font-weight: 700;
}

.panel-subtitle {
  margin-bottom: .75rem;
  color: #94a3b8;
  font-size: .9rem;
}

.info-panel dd,
.info-panel p:last-child {
  margin-bottom: 0;
}

.scope-legend {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: .25rem .65rem;
  border: 1px solid #38506f;
  border-radius: 999px;
  color: #b8c9df;
  background: #111a2c;
  font-size: .78rem;
  font-weight: 700;
}

.contract-scope-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1rem;
}

.scope-card {
  position: relative;
  min-height: 230px;
  padding: 1rem;
  border: 1px solid #334155;
  border-radius: 8px;
  background: #121c2e;
}

.scope-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  border-radius: 8px 0 0 8px;
}

.scope-card-included {
  border-color: rgba(34, 197, 94, .4);
  background: linear-gradient(135deg, rgba(20, 120, 255, .10), rgba(18, 28, 46, .96) 48%, rgba(34, 197, 94, .08));
}

.scope-card-included::before {
  background: #22c55e;
}

.scope-card-excluded {
  border-color: rgba(245, 158, 11, .55);
  background: linear-gradient(135deg, rgba(245, 158, 11, .13), rgba(18, 28, 46, .96) 50%, rgba(249, 115, 22, .08));
}

.scope-card-excluded::before {
  background: #f59e0b;
}

.scope-card-header {
  display: flex;
  gap: .8rem;
  align-items: flex-start;
  margin-bottom: .9rem;
}

.scope-card-header h3 {
  margin: 0;
  font-size: 1rem;
}

.scope-card-header p {
  margin: .25rem 0 0;
  color: #aabbd0;
  font-size: .86rem;
}

.scope-icon {
  flex: 0 0 auto;
  min-width: 42px;
  padding: .28rem .45rem;
  border-radius: 7px;
  text-align: center;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .04rem;
}

.scope-card-included .scope-icon {
  color: #dcfce7;
  background: rgba(34, 197, 94, .25);
  border: 1px solid rgba(34, 197, 94, .4);
}

.scope-card-excluded .scope-icon {
  color: #fff7ed;
  background: rgba(245, 158, 11, .28);
  border: 1px solid rgba(245, 158, 11, .55);
}

.scope-content {
  display: grid;
  gap: .45rem;
}

.scope-line {
  padding: .55rem .7rem;
  border: 1px solid rgba(148, 163, 184, .16);
  border-radius: 7px;
  color: #f8fafc;
  background: rgba(15, 23, 40, .62);
  line-height: 1.42;
}

.scope-card-included .scope-line {
  border-left: 3px solid rgba(34, 197, 94, .85);
}

.scope-card-excluded .scope-line {
  border-left: 3px solid rgba(245, 158, 11, .9);
}

.scope-notes {
  grid-column: 1 / -1;
  padding-top: .1rem;
}

.visit-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1rem;
}

.visit-detail-grid .visit-report-summary {
  grid-column: 1 / -1;
}

.visit-report-page {
  display: grid;
  gap: 1rem;
  max-width: 1180px;
}

.visit-report-heading h1 {
  max-width: 980px;
}

.report-step {
  min-height: auto;
}

.report-step-title {
  display: flex;
  gap: .85rem;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.report-step-title > span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  color: #fff;
  background: #1478ff;
  font-weight: 800;
}

.report-step-title h2 {
  margin: 0;
}

.report-step-title p {
  margin: .25rem 0 0;
  color: #94a3b8;
}

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

.technician-checklist {
  display: grid;
  gap: .65rem;
}

.checkline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: .85rem;
  border: 1px solid #31445f;
  border-radius: 8px;
  background: #132033;
}

.checkline strong {
  display: block;
  margin-bottom: .45rem;
  line-height: 1.35;
}

.checkline-status {
  display: flex;
  gap: .4rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.checkline-status label,
.result-choice {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  min-height: 38px;
  padding: .35rem .65rem;
  border: 1px solid #38506f;
  border-radius: 8px;
  color: #e6f0ff;
  background: #101a2d;
  font-weight: 700;
}

.result-choice-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .65rem;
}

.result-choice {
  justify-content: center;
  min-height: 56px;
}

.report-files {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  align-items: center;
  margin-top: 1rem;
}

.report-files a {
  padding: .25rem .55rem;
  border: 1px solid #38506f;
  border-radius: 999px;
  background: #0f1728;
}

.report-submit-bar {
  position: sticky;
  bottom: 0;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid #38506f;
  border-radius: 8px;
  background: rgba(11, 18, 32, .96);
  box-shadow: 0 -12px 28px rgba(0, 0, 0, .22);
}

.report-submit-bar span {
  display: block;
  color: #94a3b8;
}

.mini-checklist {
  display: grid;
  gap: .45rem;
}

.mini-checklist div {
  display: flex;
  gap: .55rem;
  align-items: flex-start;
  padding: .45rem .55rem;
  border: 1px solid #263952;
  border-radius: 7px;
  background: #101a2d;
}

@media (max-width: 991.98px) {
  .contract-scope-grid {
    grid-template-columns: 1fr;
  }

  .visit-detail-grid,
  .report-quick-grid,
  .result-choice-grid {
    grid-template-columns: 1fr;
  }

  .checkline {
    grid-template-columns: 1fr;
  }

  .checkline-status {
    justify-content: stretch;
  }

  .checkline-status label {
    flex: 1 1 30%;
    justify-content: center;
  }

  .report-submit-bar {
    position: static;
    align-items: stretch;
    flex-direction: column;
  }

  .report-submit-bar .btn {
    width: 100%;
  }
}

.summary-kicker {
  margin-bottom: .45rem;
  color: #94a3b8;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .06rem;
  text-transform: uppercase;
}

.contract-summary-card h2 {
  margin-bottom: .65rem;
  font-size: 1.15rem;
}

.equipment-list {
  display: grid;
  gap: .65rem;
}

.equipment-item {
  overflow: hidden;
  border: 1px solid #374151;
  border-radius: 7px;
  background: #111827;
}

.equipment-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .8rem 1rem;
  cursor: pointer;
  list-style: none;
}

.equipment-item summary::-webkit-details-marker {
  display: none;
}

.equipment-item summary::before {
  content: "▶";
  color: #60a5fa;
  font-size: .75rem;
  transition: transform .15s ease;
}

.equipment-item[open] summary::before {
  transform: rotate(90deg);
}

.equipment-item summary > span:first-of-type {
  flex: 1;
}

.operation-count {
  padding: .2rem .55rem;
  border-radius: 999px;
  background: #1d4ed8;
  color: #eff6ff;
  font-size: .78rem;
  white-space: nowrap;
}

.operation-list {
  margin: 0;
  padding: .8rem 1.25rem 1rem 3rem;
  border-top: 1px solid #374151;
  background: #182033;
}

.operation-list li + li {
  margin-top: .45rem;
}

.contract-edit-form {
  max-width: none;
}

.table {
  --bs-table-bg: #1f2427;
  --bs-table-color: #f8fafc;
  --bs-table-border-color: #374151;
  --bs-table-striped-bg: #182033;
  --bs-table-hover-bg: #22314a;
  color: #f8fafc;
}

.list-group {
  --bs-list-group-bg: #1f2427;
  --bs-list-group-color: #f8fafc;
  --bs-list-group-border-color: #374151;
  --bs-list-group-action-hover-bg: #22314a;
  --bs-list-group-action-hover-color: #fff;
}

.text-muted {
  color: #94a3b8 !important;
}

.btn-primary {
  --bs-btn-bg: #1478ff;
  --bs-btn-border-color: #1478ff;
  --bs-btn-hover-bg: #0b66dd;
  --bs-btn-hover-border-color: #0b66dd;
}

.btn-outline-secondary {
  --bs-btn-color: #f8fafc;
  --bs-btn-border-color: #cbd5e1;
  --bs-btn-hover-bg: #334155;
  --bs-btn-hover-border-color: #cbd5e1;
  --bs-btn-active-color: #ffffff;
  --bs-btn-active-bg: #22314a;
  --bs-btn-active-border-color: #dbeafe;
}

.btn-outline-secondary,
.btn-link.nav-link,
.navbar-dark .navbar-nav .nav-link {
  color: #dbeafe;
}

.btn-outline-secondary:hover,
.btn-outline-secondary:focus,
.btn-link.nav-link:hover,
.btn-link.nav-link:focus,
.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link:focus {
  color: #ffffff;
}

.form-control,
.form-select {
  background-color: #111a2c;
  border-color: #465a7a;
  color: #f8fafc;
}

.site-selector {
  min-width: 190px;
}

.form-control:focus,
.form-select:focus {
  background-color: #111a2c;
  border-color: #1478ff;
  color: #fff;
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
  box-shadow: 0 0 0 .1rem #0f1728, 0 0 0 .25rem #1478ff;
}

.auth-page {
  display: grid;
  grid-template-columns: minmax(320px, 520px) minmax(320px, 1fr);
  gap: 1.5rem;
  align-items: stretch;
  min-height: calc(100vh - 180px);
  max-width: 1180px;
  margin: 1.5rem auto 0;
}

.auth-panel,
.auth-aside {
  border: 1px solid #263752;
  border-radius: 8px;
  background: #151f2f;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .22);
}

.auth-panel {
  padding: 2rem;
}

.auth-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2.25rem;
}

.auth-logo {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 .85rem;
  border: 1px solid #365173;
  border-radius: 6px;
  background: #0b1220;
  color: #ffffff;
  font-weight: 800;
  letter-spacing: .08rem;
}

.auth-kicker,
.auth-aside-label {
  color: #8fb4e8;
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.auth-heading {
  margin-bottom: 1.5rem;
}

.auth-heading h1 {
  margin: 0 0 .5rem;
  font-size: 2rem;
  font-weight: 750;
}

.auth-heading p,
.auth-aside p,
.auth-highlights dd {
  color: #b7c5d8;
}

.auth-form {
  display: grid;
  gap: 1rem;
}

.auth-form .form-floating > label {
  color: #cfe1f5;
  opacity: 1;
  height: auto;
  padding: .15rem .45rem;
  transform: translate(.55rem, -.62rem) scale(.88);
  background: #111a2c;
  border-radius: 6px;
}

.auth-form .form-floating > .form-control:focus ~ label,
.auth-form .form-floating > .form-control:not(:placeholder-shown) ~ label {
  color: #eaf6ff;
  background: #111a2c;
  border-radius: 6px;
  opacity: 1;
  transform: translate(.55rem, -.62rem) scale(.88);
}

.auth-form .form-floating > .form-control {
  min-height: 58px;
  padding-top: 1.25rem;
  padding-bottom: .65rem;
  color: #ffffff;
}

.auth-form .form-floating > .form-control:-webkit-autofill,
.auth-form .form-floating > .form-control:-webkit-autofill:hover,
.auth-form .form-floating > .form-control:-webkit-autofill:focus {
  -webkit-text-fill-color: #ffffff;
  box-shadow: 0 0 0 1000px #111a2c inset;
  caret-color: #ffffff;
}

.auth-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: #dbeafe;
}

.auth-options a {
  color: #66a8ff;
  text-decoration: none;
}

.auth-options a:hover {
  text-decoration: underline;
}

.public-contact {
  margin: 1rem 0 0;
  color: #dbeafe;
  font-size: .95rem;
}

.public-contact a {
  color: #8bdcff;
  font-weight: 850;
  text-decoration: none;
}

.public-contact a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.auth-contact {
  text-align: center;
}

.auth-submit {
  min-height: 48px;
  font-weight: 700;
}

.auth-validation:empty {
  display: none;
}

.auth-aside {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2rem;
  background:
    linear-gradient(135deg, rgba(20, 120, 255, .16), rgba(22, 163, 74, .08)),
    #121c2c;
}

.auth-aside h2 {
  max-width: 620px;
  margin: .5rem 0 .75rem;
  font-size: 1.85rem;
  font-weight: 750;
}

.auth-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .75rem;
  margin: 2rem 0 0;
}

.auth-highlights div {
  min-height: 120px;
  padding: 1rem;
  border: 1px solid #314766;
  border-radius: 8px;
  background: rgba(11, 18, 32, .58);
}

.auth-highlights dt {
  margin-bottom: .35rem;
  color: #ffffff;
  font-weight: 800;
}

.auth-highlights dd {
  margin: 0;
  font-size: .92rem;
}

@media (max-width: 900px) {
  .auth-page {
    grid-template-columns: 1fr;
    margin-top: .5rem;
  }

  .auth-highlights {
    grid-template-columns: 1fr;
  }
}

.admin-heading {
  margin-bottom: 1.1rem;
}

.nova-alert {
  border-color: #2f6e8b;
  background: #c9f2ff;
  color: #08405a;
}

.admin-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .9rem;
  margin-bottom: 1.25rem;
}

.admin-metric {
  min-height: 92px;
  padding: 1rem;
  border: 1px solid #30445f;
  border-radius: 8px;
  background: #162130;
}

.admin-metric span {
  display: block;
  color: #9fb4cf;
  font-size: .82rem;
  font-weight: 700;
  text-transform: uppercase;
}

.admin-metric strong {
  display: block;
  margin-top: .55rem;
  font-size: 2rem;
  line-height: 1;
}

.admin-section {
  margin-top: 1.25rem;
}

.admin-section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .75rem;
}

.admin-section-title h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 750;
}

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

.admin-user-card,
.admin-action-card,
.admin-table-panel {
  border: 1px solid #30445f;
  border-radius: 8px;
  background: #18212a;
}

.admin-user-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  min-height: 96px;
  padding: 1rem;
}

.admin-user-card h3,
.admin-action-card h3,
.admin-table-panel h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 750;
}

.admin-user-card p,
.admin-action-card p {
  margin: .3rem 0 0;
  color: #98abc4;
  font-size: .9rem;
}

.admin-badge-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .4rem;
  min-width: 120px;
}

.nova-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: .18rem .5rem;
  border-radius: 6px;
  background: #00c2e8;
  color: #06121f;
  font-size: .76rem;
  font-weight: 800;
}

.nova-badge.muted {
  background: #475569;
  color: #e2e8f0;
}

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

.admin-action-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 100%;
  padding: 1rem;
}

.admin-card-head {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
}

.admin-card-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid #355171;
  border-radius: 8px;
  background: #0d1726;
  color: #8fb4e8;
  font-weight: 800;
}

.admin-form-grid {
  display: grid;
  gap: .85rem;
}

.admin-action-card .btn {
  align-self: flex-start;
  margin-top: auto;
}

.admin-rights-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.admin-table-panel {
  padding: 1rem;
}

.admin-table-panel h3 {
  margin-bottom: .75rem;
}

.admin-table-panel .table {
  margin-bottom: 0;
}

.admin-table-panel td,
.admin-table-panel th {
  white-space: nowrap;
}

.quote-grid {
  display: grid;
  grid-template-columns: minmax(360px, 1.1fr) minmax(420px, .9fr);
  gap: 1rem;
  align-items: start;
}

.quote-form {
  margin: 0;
}

.quote-form h2,
.quote-detail h2 {
  margin: 0;
  font-size: 1.18rem;
  font-weight: 750;
}

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

.quote-options {
  display: grid;
  gap: .55rem;
  padding: .85rem;
  border: 1px solid #30445f;
  border-radius: 8px;
  background: #111a2c;
}

.quote-options-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.quote-options-title h3 {
  margin: 0;
  font-size: .98rem;
  font-weight: 750;
}

.quote-options-title span {
  color: #94a3b8;
  font-size: .82rem;
}

.quote-option {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: .55rem;
  align-items: start;
  padding: .55rem;
  border: 1px solid #263752;
  border-radius: 8px;
  background: #172236;
}

.quote-option strong,
.quote-option small {
  display: block;
}

.quote-option small {
  color: #9fb4cf;
}

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

.quote-summary div,
.quote-total-grid div {
  padding: .75rem;
  border: 1px solid #30445f;
  border-radius: 8px;
  background: #111a2c;
}

.quote-summary dt,
.quote-total-grid span {
  color: #9fb4cf;
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.quote-summary dd {
  margin: .25rem 0 0;
  color: #f8fafc;
  font-weight: 700;
}

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

.quote-total-grid strong {
  display: block;
  margin-top: .35rem;
  font-size: 1.25rem;
}

.quote-filter {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(160px, .7fr) repeat(2, minmax(150px, .6fr)) auto;
  gap: .75rem;
  align-items: end;
}

.intervention-list {
  gap: .65rem;
}

.intervention-list-row {
  border: 1px solid #273b58;
  border-radius: 8px;
  background: #172231;
  overflow: hidden;
}

.intervention-list-item {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  padding: .85rem 1rem;
  color: #f8fafc;
}

.intervention-list-row.is-late {
  border-color: #f97316;
  background: linear-gradient(90deg, rgba(249, 115, 22, .10), #172231 42%);
}

.late-note {
  color: #fb923c !important;
  font-weight: 800;
}

.date-chip.late {
  background: #f97316;
  color: #111827;
}

.intervention-row-actions {
  padding: 0 1rem .85rem;
}

.filter-check {
  align-self: end;
  display: flex;
  align-items: center;
  gap: .45rem;
  min-height: 38px;
  color: #cbd5e1;
  font-weight: 700;
}

.late-filter-banner {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin: .75rem 0 1rem;
  padding: .85rem 1rem;
  border: 1px solid #f97316;
  border-radius: 8px;
  background: rgba(249, 115, 22, .10);
  color: #fed7aa;
}

.late-filter-banner a {
  margin-left: auto;
  color: #fff;
  font-weight: 700;
}

.visit-card.is-late {
  border-color: #f97316;
  box-shadow: inset 4px 0 0 #f97316;
}

.visit-late-warning {
  margin: .7rem 0;
  padding: .65rem .8rem;
  border-left: 3px solid #f97316;
  background: rgba(249, 115, 22, .12);
  color: #fed7aa;
  font-weight: 700;
}

.action-hero {
  margin-bottom: 1.25rem;
}

.action-center {
  margin-bottom: 1.25rem;
}

.action-center-head,
.lane-title,
.priority-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.action-center-head {
  justify-content: space-between;
  margin-bottom: .85rem;
}

.action-center-head h2,
.lane-title h3 {
  margin: 0;
}

.action-board {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(320px, 1fr) minmax(320px, 1fr);
  gap: 1rem;
}

.action-lane {
  min-height: 230px;
  padding: 1rem;
  border: 1px solid #273b58;
  border-radius: 8px;
  background: #121d2f;
}

.action-lane.is-urgent {
  border-color: rgba(249, 115, 22, .65);
  background: linear-gradient(180deg, rgba(249, 115, 22, .10), #121d2f 36%);
}

.lane-title {
  margin-bottom: .85rem;
}

.lane-title small {
  color: #9fb4cf;
}

.summary-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.summary-strip a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: .9rem 1rem;
  border: 1px solid #273b58;
  border-radius: 8px;
  background: #121d2f;
  color: #f8fafc;
  text-decoration: none;
}

.summary-strip small {
  color: #9fb4cf;
  font-weight: 800;
  text-transform: uppercase;
}

.summary-strip strong {
  font-size: 1.35rem;
}

.compact-sites .site-card {
  min-height: 180px;
}

.site-card.needs-attention {
  border-color: rgba(249, 115, 22, .65);
}

.sites-index-page {
  max-width: 1700px;
}

.sites-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .85rem;
  margin: 0 0 1rem;
}

.sites-summary-grid > div {
  min-height: 92px;
  padding: 1rem;
  border: 1px solid #273b58;
  border-radius: 8px;
  background: #121d2f;
}

.sites-summary-grid > div.needs-attention {
  border-color: rgba(249, 115, 22, .55);
  background: linear-gradient(180deg, rgba(249, 115, 22, .10), #121d2f 65%);
}

.sites-summary-grid small,
.client-chip-row strong {
  color: #9fb4cf;
  font-size: .78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.sites-summary-grid strong {
  display: block;
  margin-top: .4rem;
  color: #ffffff;
  font-size: 1.75rem;
  line-height: 1;
}

.client-chip-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: .75rem;
  margin-bottom: 1.1rem;
}

.client-chip-row > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 54px;
  padding: .75rem .9rem;
  border: 1px solid #273b58;
  border-radius: 8px;
  background: rgba(18, 29, 47, .78);
  color: #ffffff;
  text-decoration: none;
}

.client-chip-row span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 850;
}

.site-directory-flat {
  margin-top: .5rem;
}

.all-sites-grid {
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  align-items: stretch;
}

.site-index-card {
  min-height: 210px;
  border-radius: 8px;
}

.site-index-card.needs-attention-soft {
  border-color: rgba(96, 165, 250, .5);
}

.site-index-card .site-client {
  min-height: 1rem;
}

.site-status-pill {
  padding: .25rem .55rem;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.site-status-pill.ok {
  background: rgba(34, 197, 94, .16);
  color: #86efac;
}

.site-status-pill.danger {
  background: rgba(249, 115, 22, .18);
  color: #fdba74;
}

.renewal-panel {
  margin-top: 1rem;
}

.site-priority-panel {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
  padding: 1.1rem 1.25rem;
  border: 1px solid #273b58;
  border-radius: 8px;
  background: #121d2f;
}

.site-priority-panel.has-alert {
  border-color: rgba(249, 115, 22, .70);
  background: linear-gradient(90deg, rgba(249, 115, 22, .12), #121d2f 45%);
}

.priority-main h2 {
  margin: .15rem 0 .35rem;
}

.priority-main p {
  margin: 0;
  color: #9fb4cf;
}

.site-alert-list {
  margin-bottom: 1rem;
}

.site-timeline .timeline-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .75rem;
  align-items: center;
  border: 1px solid #273b58;
  border-radius: 8px;
  background: #172231;
  margin-bottom: .65rem;
  padding: .65rem;
}

.site-timeline .timeline-item {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 1rem;
  align-items: center;
  color: #f8fafc;
}

.site-timeline .timeline-row.late {
  border-color: rgba(249, 115, 22, .70);
  box-shadow: inset 4px 0 0 #f97316;
}

.timeline-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .5rem;
  flex-wrap: wrap;
}

.timeline-actions form {
  margin: 0;
}

.quote-mail-panel {
  margin-bottom: 1rem;
}

.mail-preview {
  min-height: 220px;
  margin: 1rem 0 0;
  padding: 1rem;
  border: 1px solid #273b58;
  border-radius: 8px;
  background: #101827;
  color: #eef4ff;
  font: inherit;
  white-space: pre-wrap;
}

.table-subtext {
  display: block;
  max-width: 520px;
  margin-top: .25rem;
  color: #9fb4cf;
  font-size: .82rem;
}

.compact-summary {
  margin-bottom: 1rem;
}

.timeline-row time {
  display: grid;
  place-items: center;
  min-height: 56px;
  border-radius: 8px;
  background: #1d3353;
  color: #bfdbfe;
  text-transform: uppercase;
  font-weight: 900;
}

.timeline-row time strong {
  font-size: 1.35rem;
  line-height: 1;
}

.timeline-main small {
  display: block;
  color: #9fb4cf;
}

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

.workqueue-panel {
  min-height: 260px;
}

.workqueue-panel.is-urgent {
  border-color: rgba(249, 115, 22, .70);
  background: linear-gradient(180deg, rgba(249, 115, 22, .10), #121d2f 34%);
}

.work-items {
  display: grid;
  gap: .7rem;
}

.work-item {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: .85rem;
  border: 1px solid #273b58;
  border-radius: 8px;
  background: #172231;
}

.work-item.is-late {
  border-color: rgba(249, 115, 22, .70);
  box-shadow: inset 4px 0 0 #f97316;
}

.work-item h3 {
  margin: .15rem 0 .25rem;
  font-size: 1rem;
}

.work-item p {
  margin: 0;
  color: #9fb4cf;
}

.work-item-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: .45rem;
}

.work-empty {
  margin-bottom: 1rem;
}

.action-detail-hero {
  margin-bottom: 1rem;
}

.detail-note {
  margin: 0;
  color: #cbd5e1;
  white-space: pre-wrap;
}

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

.planning-origin-choice label {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  min-height: 96px;
  padding: .9rem;
  border: 1px solid #273b58;
  border-radius: 8px;
  background: #172231;
  cursor: pointer;
}

.planning-origin-choice input {
  margin-top: .25rem;
}

.planning-origin-choice strong,
.planning-origin-choice small {
  display: block;
}

.planning-origin-choice small {
  margin-top: .3rem;
  color: #9fb4cf;
}

.form-section {
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid #273b58;
}

.form-section:last-of-type {
  border-bottom: 0;
}

.field-help {
  display: block;
  margin-top: .35rem;
  color: #9fb4cf;
  font-size: .82rem;
}

.relance-body {
  min-height: 290px;
}

.relance-compose-card {
  max-width: 820px;
  margin: 2.5rem auto;
  padding: 1.4rem;
  border: 1px solid #315071;
  border-radius: 8px;
  background: #172131;
  box-shadow: 0 24px 60px rgb(2 6 23 / 28%);
}

.relance-compose-header {
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid #273b58;
}

.relance-compose-header h1 {
  margin: 0 0 .45rem;
  font-size: 1.7rem;
  font-weight: 800;
}

.relance-compose-header p:last-child {
  max-width: 640px;
  margin-bottom: 0;
  color: #9fb4cf;
}

.relance-compose-fields {
  display: grid;
  gap: 1rem;
}

.relance-compose-actions {
  display: flex;
  justify-content: flex-end;
  gap: .75rem;
  padding-top: 1rem;
  margin-top: 1rem;
  border-top: 1px solid #273b58;
}

@media (max-width: 1400px) {
  .admin-user-grid,
  .admin-action-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quote-grid {
    grid-template-columns: 1fr;
  }

  .action-board {
    grid-template-columns: 1fr;
  }

  .workqueue-grid,
  .action-detail-grid,
  .planning-origin-choice {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1200px) {
  .admin-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .admin-metrics,
  .admin-user-grid,
  .admin-action-grid,
  .quote-form-grid,
  .quote-summary,
  .quote-total-grid,
  .quote-filter,
  .summary-strip {
    grid-template-columns: 1fr;
  }

  .admin-user-card {
    flex-direction: column;
  }

  .admin-badge-list {
    justify-content: flex-start;
  }

  .action-center-head,
  .site-priority-panel,
  .priority-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .site-timeline .timeline-row,
  .site-timeline .timeline-row > a {
    grid-template-columns: 1fr;
  }

  .work-item {
    align-items: stretch;
    flex-direction: column;
  }

  .work-item-actions {
    justify-content: flex-start;
  }
}

.nova-home-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(320px, .86fr) minmax(420px, 1.14fr);
  gap: clamp(1.2rem, 2.5vw, 2.3rem);
  overflow: hidden;
  min-height: min(760px, calc(100vh - 120px));
  margin-bottom: 1.4rem;
  padding: clamp(1.35rem, 3vw, 2.4rem);
  border: 1px solid #263b58;
  border-radius: 8px;
  background:
    linear-gradient(115deg, rgba(13, 25, 45, .98), rgba(8, 15, 28, .92) 48%, rgba(5, 13, 24, .98)),
    #0b1220;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .32);
}

.nova-home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0, 194, 232, .05) 1px, transparent 1px),
    linear-gradient(0deg, rgba(96, 165, 250, .04) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, .45), transparent 70%);
}

.nova-home-copy,
.nova-home-visual,
.nova-home-metrics,
.nova-home-features {
  position: relative;
  z-index: 1;
}

.nova-home-copy {
  align-self: center;
  max-width: 660px;
}

.nova-home-copy h1 {
  margin: .25rem 0 .45rem;
  font-size: clamp(2.4rem, 5vw, 5rem);
  font-weight: 900;
  line-height: .95;
  letter-spacing: 0;
}

.nova-home-lead {
  max-width: 560px;
  margin: 0;
  color: #e8f3ff;
  font-size: clamp(1.3rem, 2.2vw, 2rem);
  font-weight: 750;
  line-height: 1.22;
}

.nova-home-subtitle {
  max-width: 620px;
  margin: 1rem 0 0;
  color: #b5c6da;
  font-size: 1.02rem;
  line-height: 1.7;
}

.nova-home-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin-top: 1.35rem;
}

.nova-home-keywords span {
  min-height: 34px;
  padding: .45rem .75rem;
  border: 1px solid rgba(0, 194, 232, .32);
  border-radius: 999px;
  background: rgba(0, 194, 232, .08);
  color: #9eeaff;
  font-size: .82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.nova-home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.6rem;
}

.nova-home-visual {
  align-self: center;
  min-width: 0;
}

.nova-visual-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(86, 141, 188, .42);
  border-radius: 8px;
  background: #06101d;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .38), 0 0 45px rgba(0, 194, 232, .10);
  transform: translate3d(var(--nova-parallax-x, 0), var(--nova-parallax-y, 0), 0);
  transition: transform .18s ease-out;
}

.nova-visual-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  display: block;
  filter: saturate(1.03) contrast(1.04);
}

.nova-visual-halo,
.nova-visual-scan,
.nova-line {
  position: absolute;
  pointer-events: none;
}

.nova-visual-halo {
  inset: 8% 38% 10% 14%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 194, 232, .20), rgba(0, 194, 232, .08) 34%, transparent 65%);
  mix-blend-mode: screen;
  animation: novaHaloPulse 5.8s ease-in-out infinite;
}

.nova-visual-scan {
  top: 8%;
  bottom: 8%;
  left: 41%;
  width: 2px;
  background: linear-gradient(180deg, transparent, rgba(137, 244, 255, .78), transparent);
  box-shadow: 0 0 18px rgba(0, 194, 232, .45);
  opacity: .46;
  animation: novaScan 6.5s ease-in-out infinite;
}

.nova-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 194, 232, .72), transparent);
  opacity: .55;
  animation: novaLinePulse 4.8s ease-in-out infinite;
}

.nova-line.line-a {
  top: 22%;
  right: 7%;
  width: 28%;
}

.nova-line.line-b {
  bottom: 24%;
  left: 8%;
  width: 36%;
  animation-delay: 1.1s;
}

.nova-line.line-c {
  top: 58%;
  right: 16%;
  width: 18%;
  animation-delay: 2s;
}

.nova-home-metrics {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .85rem;
}

.nova-home-metric {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 82px;
  padding: .95rem 1rem;
  border: 1px solid rgba(54, 83, 124, .95);
  border-radius: 8px;
  background: rgba(18, 29, 47, .86);
  color: #f8fafc;
  text-decoration: none;
}

.nova-home-metric small {
  color: #9fb4cf;
  font-weight: 850;
  text-transform: uppercase;
}

.nova-home-metric strong {
  color: #ffffff;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  line-height: 1;
}

.nova-home-features {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: .75rem;
}

.nova-feature-card {
  min-height: 104px;
  padding: .9rem;
  border: 1px solid rgba(49, 71, 102, .96);
  border-radius: 8px;
  background: rgba(9, 18, 32, .76);
  color: #f8fafc;
  text-decoration: none;
  opacity: 0;
  transform: translateY(12px);
  animation: novaFeatureIn .55s ease forwards;
}

.nova-feature-card:nth-child(2) { animation-delay: .08s; }
.nova-feature-card:nth-child(3) { animation-delay: .16s; }
.nova-feature-card:nth-child(4) { animation-delay: .24s; }
.nova-feature-card:nth-child(5) { animation-delay: .32s; }

.nova-feature-card strong,
.nova-feature-card span {
  display: block;
}

.nova-feature-card strong {
  margin-bottom: .35rem;
  color: #ffffff;
  font-weight: 900;
}

.nova-feature-card span {
  color: #a9bbd0;
  font-size: .9rem;
  line-height: 1.45;
}

.nova-feature-card:hover,
.nova-home-metric:hover {
  border-color: rgba(0, 194, 232, .7);
  color: #ffffff;
}

.nova-public-hero {
  margin-bottom: 1.4rem;
}

.discover-section {
  margin: 0 auto 2rem;
  max-width: 1500px;
}

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

.discover-grid article {
  min-height: 118px;
  padding: 1rem;
  border: 1px solid rgba(49, 71, 102, .96);
  border-radius: 8px;
  background: #151f2f;
}

.discover-grid strong,
.discover-grid span {
  display: block;
}

.discover-grid strong {
  margin-bottom: .45rem;
  color: #ffffff;
  font-weight: 900;
}

.discover-grid span {
  color: #a9bbd0;
  line-height: 1.5;
}

.auth-aside-visual {
  position: relative;
  overflow: hidden;
  gap: 1.1rem;
}

.auth-aside-copy {
  position: relative;
  z-index: 2;
}

.auth-keywords {
  margin-top: 1rem;
}

.auth-keywords span {
  font-size: .72rem;
}

.auth-visual-frame {
  z-index: 1;
  min-height: 300px;
  aspect-ratio: 16 / 10;
}

.auth-visual-frame img {
  object-fit: contain;
  object-position: center;
  background: #020812;
}

.auth-aside-visual .auth-highlights {
  position: relative;
  z-index: 2;
  margin-top: .35rem;
}

.cinema-page {
  max-width: 1680px;
  margin: 0 auto 2rem;
}

.cinema-stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(330px, .86fr) minmax(520px, 1.14fr);
  grid-template-rows: minmax(0, 1fr) auto;
  gap: clamp(1.2rem, 3vw, 3rem);
  min-height: min(800px, calc(100vh - 120px));
  overflow: hidden;
  padding: clamp(1.2rem, 3.4vw, 4rem);
  border: 1px solid rgba(51, 92, 145, .88);
  border-radius: 8px;
  background:
    radial-gradient(circle at 72% 32%, rgba(0, 194, 232, .14), transparent 31%),
    linear-gradient(135deg, rgba(20, 56, 104, .42), rgba(5, 12, 24, .96) 54%, rgba(3, 8, 17, .98));
  box-shadow: 0 26px 90px rgba(0, 0, 0, .34);
}

.cinema-background,
.cinema-dbp-badge,
.cinema-grid,
.cinema-orbit,
.cinema-scan {
  position: absolute;
  pointer-events: none;
}

.cinema-background {
  inset: 0;
  overflow: hidden;
}

.cinema-dbp-badge {
  top: clamp(1rem, 2.2vw, 2rem);
  left: clamp(1rem, 2.2vw, 2rem);
  z-index: 3;
  width: clamp(210px, 20vw, 330px);
}

.cinema-dbp-badge img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, .28);
}

.cinema-grid {
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 194, 232, .055) 1px, transparent 1px),
    linear-gradient(0deg, rgba(96, 165, 250, .045) 1px, transparent 1px);
  background-size: 76px 76px;
  mask-image: radial-gradient(circle at 64% 42%, rgba(0,0,0,.75), transparent 72%);
}

.cinema-orbit {
  width: 520px;
  height: 520px;
  border: 1px solid rgba(0, 194, 232, .16);
  border-radius: 50%;
  box-shadow: inset 0 0 28px rgba(0, 194, 232, .08);
  animation: cinemaOrbit 18s linear infinite;
}

.orbit-a {
  top: 8%;
  right: 31%;
}

.orbit-b {
  right: 12%;
  bottom: -24%;
  width: 720px;
  height: 720px;
  animation-duration: 26s;
  animation-direction: reverse;
}

.cinema-scan {
  top: 0;
  bottom: 0;
  left: 62%;
  width: 2px;
  background: linear-gradient(180deg, transparent, rgba(118, 238, 255, .65), transparent);
  opacity: .36;
  filter: blur(.2px);
  animation: cinemaStageScan 7s ease-in-out infinite;
}

.cinema-copy,
.cinema-visual,
.cinema-timeline {
  position: relative;
  z-index: 1;
  min-height: 0;
}

.cinema-copy {
  grid-row: 1;
  align-self: stretch;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: clamp(4.8rem, 7vw, 6.8rem);
}

.cinema-message {
  display: grid;
  grid-template-rows: clamp(270px, 20vw, 320px) clamp(105px, 8vw, 140px);
  align-content: start;
}

.cinema-copy h1 {
  margin: .35rem 0 .75rem;
  max-width: 760px;
  min-height: 0;
  height: auto;
  overflow: visible;
  color: #ffffff;
  font-size: clamp(2.55rem, 4.25vw, 4.95rem);
  font-weight: 950;
  line-height: 1.04;
  letter-spacing: 0;
  text-wrap: balance;
}

.cinema-copy p:not(.eyebrow) {
  max-width: 640px;
  min-height: 0;
  height: auto;
  overflow: visible;
  color: #c2d2e7;
  font-size: clamp(1.04rem, 1.4vw, 1.24rem);
  line-height: 1.72;
}

.cinema-words {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  margin: 1.45rem 0 0;
}

.cinema-words span {
  padding: .48rem .78rem;
  border: 1px solid rgba(0, 194, 232, .46);
  border-radius: 999px;
  background: rgba(0, 194, 232, .09);
  color: #a8efff;
  font-size: .8rem;
  font-weight: 950;
  text-transform: uppercase;
}

.cinema-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.65rem;
}

.cinema-visual {
  grid-row: 1;
  align-self: stretch;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.cinema-screen {
  overflow: hidden;
  width: min(100%, 920px);
  height: clamp(440px, 46vw, 560px);
  min-height: 0;
  aspect-ratio: auto;
  border-color: rgba(0, 194, 232, .34);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .45), 0 0 70px rgba(0, 194, 232, .14);
  transform: none !important;
  transition: border-color .28s ease, box-shadow .28s ease;
}

.cinema-screen img {
  object-fit: contain;
  object-position: center;
  background: #020812;
}

.cinema-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, .06);
  background: linear-gradient(110deg, transparent 8%, rgba(255, 255, 255, .08), transparent 22%);
  opacity: .45;
  transform: translateX(-120%);
  animation: cinemaGlass 8s ease-in-out infinite;
  pointer-events: none;
}

.cinema-overlay-card {
  position: absolute;
  display: grid;
  gap: .1rem;
  min-width: 150px;
  padding: .78rem .9rem;
  border: 1px solid rgba(99, 162, 214, .45);
  border-radius: 8px;
  background: rgba(9, 18, 32, .82);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .25);
  backdrop-filter: blur(8px);
  animation: cinemaFloat 5.4s ease-in-out infinite;
}

.cinema-overlay-card small {
  color: #8fb4e8;
  font-size: .72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.cinema-overlay-card strong {
  color: #ffffff;
  font-size: 2rem;
  line-height: 1;
}

.cinema-overlay-card span {
  color: #b9cbe0;
  font-size: .82rem;
}

.card-retards {
  left: 3%;
  bottom: 8%;
  border-color: rgba(249, 115, 22, .55);
}

.card-rapports {
  top: 7%;
  right: 5%;
  animation-delay: 1.2s;
}

.card-actions {
  right: 12%;
  bottom: 9%;
  border-color: rgba(34, 197, 94, .48);
  animation-delay: 2.1s;
}

.cinema-timeline {
  grid-column: 1 / -1;
  grid-row: 2;
  align-self: end;
}

.cinema-progress {
  height: 3px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(51, 92, 145, .55);
}

.cinema-progress span {
  display: block;
  width: var(--cinema-progress, 0%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #1783ff, #00c2e8);
  box-shadow: 0 0 18px rgba(0, 194, 232, .55);
  transition: width .28s ease;
}

.cinema-chapters {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: .5rem;
  margin-top: .75rem;
}

.cinema-chapters button {
  min-height: 42px;
  border: 1px solid rgba(49, 71, 102, .95);
  border-radius: 8px;
  background: rgba(9, 18, 32, .68);
  color: #9fb4cf;
  font-weight: 850;
}

.cinema-chapters button.is-active {
  border-color: rgba(0, 194, 232, .65);
  background: rgba(0, 194, 232, .12);
  color: #ffffff;
}

.cinema-feature-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .85rem;
  margin-top: .95rem;
}

.cinema-feature-strip article {
  min-height: 138px;
  padding: 1rem;
  border: 1px solid rgba(49, 71, 102, .96);
  border-radius: 8px;
  background: #151f2f;
}

.cinema-feature-strip span,
.cinema-feature-strip strong {
  display: block;
}

.cinema-feature-strip span {
  color: #67d9ff;
  font-size: .8rem;
  font-weight: 950;
}

.cinema-feature-strip strong {
  margin: .45rem 0 .35rem;
  color: #ffffff;
  font-size: 1.05rem;
}

.cinema-feature-strip p {
  margin: 0;
  color: #a9bbd0;
  line-height: 1.48;
}

.cinema-page[data-scene="1"] .cinema-screen {
  box-shadow: 0 30px 90px rgba(0, 0, 0, .45), 0 0 90px rgba(23, 131, 255, .22);
}

.cinema-page[data-scene="2"] .card-rapports,
.cinema-page[data-scene="3"] .card-actions,
.cinema-page[data-scene="4"] .cinema-screen {
  border-color: rgba(0, 194, 232, .9);
}

@keyframes novaHaloPulse {
  0%, 100% { opacity: .42; transform: scale(.98); }
  50% { opacity: .76; transform: scale(1.03); }
}

@keyframes novaScan {
  0%, 100% { transform: translateX(-8px); opacity: .26; }
  50% { transform: translateX(14px); opacity: .58; }
}

@keyframes novaLinePulse {
  0%, 100% { opacity: .22; transform: scaleX(.82); }
  50% { opacity: .72; transform: scaleX(1); }
}

@keyframes novaFeatureIn {
  to { opacity: 1; transform: translateY(0); }
}

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

@keyframes cinemaStageScan {
  0%, 100% { transform: translateX(-48px); opacity: .18; }
  50% { transform: translateX(48px); opacity: .5; }
}

@keyframes cinemaGlass {
  0%, 28%, 100% { transform: translateX(-120%); }
  42% { transform: translateX(120%); }
}

@keyframes cinemaFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

@media (max-width: 1400px) {
  .nova-home-features {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

@media (max-width: 1200px) {
  .nova-home-hero,
  .cinema-stage {
    grid-template-columns: 1fr;
  }

  .nova-home-copy {
    max-width: 840px;
  }

  .cinema-copy {
    max-width: 920px;
    align-self: auto;
    grid-row: 1;
  }

  .cinema-visual {
    grid-row: 2;
  }

  .cinema-timeline {
    grid-row: 3;
  }

  .cinema-visual {
    justify-content: center;
  }

  .cinema-feature-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .nova-home-hero,
  .cinema-stage {
    min-height: 0;
    padding: 1rem;
  }

  .cinema-dbp-badge {
    position: relative;
    top: auto;
    left: auto;
    grid-row: 1;
    width: min(100%, 290px);
  }

  .cinema-copy {
    grid-row: 2;
    padding-top: 0;
  }

  .cinema-message {
    grid-template-rows: minmax(4.2em, auto) minmax(6em, auto);
  }

  .cinema-copy h1,
  .cinema-copy p:not(.eyebrow) {
    height: auto;
  }

  .cinema-visual { grid-row: 3; }
  .cinema-timeline { grid-row: 4; }

  .nova-home-actions,
  .nova-home-actions .btn,
  .cinema-actions,
  .cinema-actions .btn {
    width: 100%;
  }

  .nova-home-metrics,
  .nova-home-features,
  .discover-grid,
  .cinema-chapters,
  .cinema-feature-strip {
    grid-template-columns: 1fr;
  }

  .nova-visual-frame {
    aspect-ratio: 4 / 3;
  }

  .cinema-screen {
    height: auto;
    min-height: 320px;
    aspect-ratio: 4 / 3;
  }

  .cinema-overlay-card {
    position: relative;
    inset: auto;
    display: inline-grid;
    min-width: 0;
    margin: .5rem;
    vertical-align: top;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nova-visual-frame,
  .nova-visual-halo,
  .nova-visual-scan,
  .nova-line,
  .nova-feature-card,
  .cinema-orbit,
  .cinema-scan,
  .cinema-screen::after,
  .cinema-overlay-card {
    animation: none !important;
    transform: none !important;
    transition: none !important;
  }

  .nova-feature-card {
    opacity: 1;
  }
}
/* Annuaire utilisateurs */
.user-filter-metrics .admin-metric {
  width: 100%;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color .18s ease, background-color .18s ease, transform .18s ease;
}

.user-filter-metrics .admin-metric small {
  display: block;
  color: var(--nova-muted, #8aa9cf);
  font-weight: 400;
  margin-top: .25rem;
}

.user-filter-metrics .admin-metric:hover,
.user-filter-metrics .admin-metric.active {
  border-color: #2487ff;
  background: rgba(36, 135, 255, .1);
  transform: translateY(-2px);
}

.user-directory-card {
  width: 100%;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color .18s ease, transform .18s ease;
}

.user-directory-card:hover {
  border-color: #2487ff;
  transform: translateY(-2px);
}

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

.site-choice-list {
  display: grid;
  gap: .5rem;
  max-height: 12rem;
  overflow-y: auto;
  padding: .65rem;
  border: 1px solid #29415f;
  border-radius: .45rem;
  background: #0d1828;
}

.site-choice {
  display: flex;
  align-items: center;
  gap: .55rem;
  margin: 0;
  cursor: pointer;
}

.site-choice input { accent-color: #2487ff; }

.admin-full-access-field {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .65rem;
  padding: .8rem;
  border: 1px solid #31557f;
  border-radius: .65rem;
  background: rgba(36, 135, 255, .08);
}

.admin-full-access-field > div {
  padding: .7rem .8rem;
  border-radius: .5rem;
  background: #15253a;
}

.admin-full-access-field span,
.admin-full-access-field strong { display: block; }
.admin-full-access-field span { color: #91add0; font-size: .78rem; }
.admin-full-access-field strong { margin-top: .15rem; color: #fff; }
.admin-full-access-field small { grid-column: 1 / -1; color: #91add0; }

.user-editor-grid > div:first-child,
.user-editor-grid > div:nth-child(2):last-child {
  grid-column: 1 / -1;
}

.modal-content {
  background: #111d2d;
  border: 1px solid #29415f;
  color: #f4f8ff;
}

.modal-header,
.modal-footer {
  border-color: #29415f;
}

@media (max-width: 767px) {
  .user-editor-grid { grid-template-columns: 1fr; }
  .user-editor-grid > div { grid-column: auto !important; }
}

/* Espace technicien */
.technician-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 1.4rem;
  padding: 1.6rem 1.8rem;
  border: 1px solid #29415f;
  border-radius: 1rem;
  background: linear-gradient(125deg, #172d4a 0%, #111d2d 62%, #102743 100%);
}

.technician-hero h1 { margin: .15rem 0 .35rem; }
.technician-hero p:last-child { margin: 0; color: #a8bfdb; }
.technician-hero-date {
  min-width: 8.5rem;
  padding: .8rem 1rem;
  border: 1px solid #3b5d84;
  border-radius: .8rem;
  text-align: center;
  background: rgba(8, 21, 38, .58);
}
.technician-hero-date strong { display: block; font-size: 2rem; line-height: 1; color: #fff; }
.technician-hero-date span { display: block; margin-top: .3rem; color: #9ec5f5; text-transform: capitalize; }

.technician-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .8rem;
  margin-bottom: 1.5rem;
}
.technician-metric {
  min-height: 7.4rem;
  padding: 1rem;
  border: 1px solid #29415f;
  border-radius: .8rem;
  color: inherit;
  text-align: left;
  background: #131f30;
}
button.technician-metric { cursor: pointer; transition: border-color .18s ease, transform .18s ease, background .18s ease; }
button.technician-metric:hover, .technician-metric.active { border-color: #2487ff; background: rgba(36, 135, 255, .12); transform: translateY(-2px); }
.technician-metric span, .technician-metric small { display: block; }
.technician-metric span { color: #9ec5f5; font-weight: 700; text-transform: uppercase; font-size: .76rem; letter-spacing: .04em; }
.technician-metric strong { display: block; margin: .2rem 0; font-size: 1.9rem; line-height: 1.15; }
.technician-metric small { color: #89a3c3; }

.technician-section {
  padding: 1.2rem;
  border: 1px solid #29415f;
  border-radius: .9rem;
  background: #101b2b;
}
.technician-section-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.technician-section-head h2 { margin: .1rem 0 0; }
.technician-section-head > span { color: #8fa9c9; }
.technician-visit-list { display: grid; gap: .75rem; }
.technician-visit-card {
  display: grid;
  grid-template-columns: 5.2rem 1fr;
  overflow: hidden;
  border: 1px solid #29415f;
  border-left: 4px solid #2487ff;
  border-radius: .75rem;
  background: #152234;
}
.technician-visit-card.is-late { border-left-color: #ff7a45; }
.technician-visit-card.is-done { border-left-color: #26b781; }
.technician-visit-date { display: grid; place-content: center; text-align: center; border-right: 1px solid #29415f; background: rgba(7, 19, 33, .42); }
.technician-visit-date strong { font-size: 1.7rem; line-height: 1; }
.technician-visit-date span { color: #9ec5f5; text-transform: uppercase; font-size: .78rem; }
.technician-visit-main { padding: 1rem; }
.technician-visit-title { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; }
.technician-visit-title p { margin: 0 0 .2rem; color: #68a9ff; font-size: .82rem; font-weight: 700; text-transform: uppercase; }
.technician-visit-title h3 { margin: 0; font-size: 1.08rem; }
.technician-status { flex: none; padding: .3rem .55rem; border-radius: 999px; color: #a9d0ff; background: #203957; font-size: .75rem; font-weight: 700; }
.is-late .technician-status { color: #ffb28e; background: rgba(209, 79, 26, .22); }
.is-done .technician-status { color: #82e2bc; background: rgba(20, 128, 88, .24); }
.technician-visit-meta { display: flex; flex-wrap: wrap; gap: .4rem 1rem; margin: .65rem 0; color: #91a9c5; font-size: .86rem; }
.technician-visit-actions { display: flex; justify-content: flex-end; gap: .55rem; }
.technician-empty { padding: 3rem 1rem; border: 1px dashed #36506f; border-radius: .8rem; color: #94adca; text-align: center; background: rgba(20, 34, 52, .65); }
.technician-empty span { display: inline-grid; place-content: center; width: 2.5rem; height: 2.5rem; margin-bottom: .5rem; border-radius: 50%; color: #76dcb5; background: rgba(24, 147, 101, .18); font-size: 1.3rem; }
.technician-empty h2 { color: #fff; }
.technician-empty.compact { padding: 1.4rem; }
.technician-empty.compact p { margin: 0; }

.site-provider-link-note {
  padding: .75rem .9rem;
  border: 1px dashed #36506f;
  border-radius: .55rem;
  color: #9eb5d1;
  background: rgba(20, 34, 52, .55);
  font-size: .86rem;
}

.report-site-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .65rem;
}
.report-site-summary > div { padding: .8rem; border: 1px solid #29415f; border-radius: .6rem; background: #132135; }
.report-site-summary span, .report-site-summary strong { display: block; }
.report-site-summary span { color: #8fa9c9; font-size: .75rem; text-transform: uppercase; }
.report-site-summary strong { margin-top: .15rem; }
.report-anomaly-list { display: grid; gap: .7rem; margin-bottom: .8rem; }
.report-anomaly-row { display: grid; grid-template-columns: 2fr 1fr auto; gap: .65rem; align-items: end; padding: .8rem; border: 1px solid #314964; border-radius: .65rem; background: #111f31; }
.report-anomaly-row .wide { grid-column: 1 / 3; }
.report-signature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.signature-box { padding: .8rem; border: 1px solid #314964; border-radius: .65rem; background: #111f31; }
.signature-box canvas { display: block; width: 100%; height: 150px; margin-top: .45rem; border: 1px dashed #4a6585; border-radius: .45rem; background: #0b1726; touch-action: none; }
.signature-actions { display: flex; justify-content: flex-end; margin-top: .45rem; }

@media (max-width: 767px) {
  .report-site-summary { grid-template-columns: 1fr 1fr; }
  .report-anomaly-row { grid-template-columns: 1fr; }
  .report-anomaly-row .wide { grid-column: auto; }
  .report-signature-grid { grid-template-columns: 1fr; }
  .report-submit-bar { align-items: stretch; flex-direction: column; }
  .report-submit-bar .btn { width: 100%; }
}

@media (max-width: 900px) {
  .technician-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .technician-hero { align-items: flex-start; padding: 1.1rem; }
  .technician-hero-date { min-width: 5.5rem; padding: .7rem .5rem; }
  .technician-hero-date strong { font-size: 1.55rem; }
  .technician-hero-date span { font-size: .72rem; }
  .technician-metrics { grid-template-columns: 1fr 1fr; gap: .55rem; }
  .technician-metric { min-height: 6.3rem; padding: .75rem; }
  .technician-metric strong { font-size: 1.5rem; }
  .technician-metric small { font-size: .72rem; }
  .technician-section { padding: .75rem; }
  .technician-section-head { align-items: flex-start; }
  .technician-section-head > span { font-size: .75rem; }
  .technician-visit-card { grid-template-columns: 3.7rem 1fr; }
  .technician-visit-date strong { font-size: 1.35rem; }
  .technician-visit-main { padding: .8rem; }
  .technician-visit-title { display: block; }
  .technician-status { display: inline-block; margin-top: .5rem; }
  .technician-visit-actions { display: grid; grid-template-columns: 1fr; }
  .technician-visit-actions .btn { width: 100%; padding: .55rem; }
}
.validation-summary-valid {
  display: none;
}

.report-saved-file {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.report-saved-file img {
  width: 96px;
  height: 72px;
  object-fit: cover;
  border: 1px solid var(--nova-border, #314968);
  border-radius: 0.5rem;
}

.report-saved-file > div {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.electronic-signature-notice {
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.4rem;
  padding: 1.25rem;
  border: 1px solid #287fff;
  border-radius: 0.65rem;
  background: #102036;
}

.electronic-signature-notice strong { color: #75adff; }
.electronic-signature-notice span { color: #fff; font-size: 1.25rem; font-weight: 700; }
.electronic-signature-notice small { color: #b8c9df; }

.visit-report-document {
  display: grid;
  grid-template-columns: auto minmax(120px, 1fr);
  gap: 0.35rem 0.75rem;
  align-items: center;
  padding: 0.75rem;
  border: 1px solid var(--nova-border, #314968);
  border-radius: 0.6rem;
}

.visit-report-document > span,
.visit-report-document > div { grid-column: 2; }
.visit-report-document img { grid-row: 1 / span 3; width: 88px; height: 70px; object-fit: cover; border-radius: 0.4rem; }

.contract-extracted-text summary {
  cursor: pointer;
  color: #75adff;
  font-weight: 700;
}

.contract-extracted-text pre {
  margin-top: 1rem;
  max-height: 34rem;
  overflow: auto;
  white-space: pre-wrap;
  font-family: inherit;
  font-size: 0.9rem;
  line-height: 1.55;
  color: #dce9f8;
  background: #0d192a;
  border: 1px solid #314968;
  border-radius: 0.65rem;
  padding: 1rem;
}

.contract-condition-list { display: grid; gap: 0.25rem; }
.contract-condition-list button {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(120px, 1fr);
  gap: 0.75rem;
  width: 100%;
  padding: 0.35rem 0.5rem;
  color: inherit;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 0.4rem;
  text-align: left;
}
.contract-condition-list button:hover,
.contract-condition-list button:focus-visible { background: #102744; border-color: #287fff; }
.contract-condition-list button span { color: #eef6ff; }
.contract-field-highlight { border-radius: 0.6rem; box-shadow: 0 0 0 3px rgba(40,127,255,.55); transition: box-shadow .2s ease; }
