@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap");

@font-face {
  font-family: "Nasalization";
  src: url("/fonts/nasalization-rg.ttf") format("truetype");
  font-display: block;
}

:root {
  --font-ui:
    "Inter",
    "Segoe UI Variable",
    "Segoe UI",
    "Trebuchet MS",
    Verdana,
    Arial,
    Helvetica,
    sans-serif;
  --bg-1: #edf2ff;
  --bg-2: #dbe5ff;
  --panel: rgba(255, 255, 255, 0.84);
  --panel-strong: #ffffff;
  --line: rgba(0, 37, 158, 0.14);
  --ink: #0f1f4d;
  --muted: #55658d;
  --accent: #00259e;
  --accent-strong: #00196c;
  --accent-soft: rgba(0, 37, 158, 0.12);
  --gold: #d9a441;
  --gold-soft: rgba(217, 164, 65, 0.16);
  --danger: #b24134;
  --danger-soft: rgba(178, 65, 52, 0.12);
  --success: #2f7a4d;
  --success-soft: rgba(47, 122, 77, 0.12);
  --list-hover-bg: rgba(214, 224, 248, 0.94);
  --list-hover-stroke: rgba(121, 145, 214, 0.36);
  --list-hover-edge: rgba(36, 79, 215, 0.95);
  --list-active-bg: rgba(203, 215, 244, 0.96);
  --shadow:
    0 16px 38px rgba(15, 31, 77, 0.035),
    0 4px 14px rgba(15, 31, 77, 0.018);
  --surface-border: rgba(255, 255, 255, 0.78);
  --surface-bg:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 247, 255, 0.95));
  --surface-glow:
    radial-gradient(circle at top right, rgba(217, 164, 65, 0.12), transparent 28%),
    radial-gradient(circle at top left, rgba(0, 37, 158, 0.1), transparent 38%);
  --surface-shadow-lg:
    0 18px 46px rgba(15, 31, 77, 0.038),
    0 6px 18px rgba(15, 31, 77, 0.018),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
  --surface-shadow-md:
    0 12px 30px rgba(15, 31, 77, 0.028),
    0 4px 12px rgba(15, 31, 77, 0.014),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --workspace-sidebar-width: 272px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font-ui);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-ui);
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(0, 37, 158, 0.28), transparent 34%),
    radial-gradient(circle at right center, rgba(0, 37, 158, 0.18), transparent 30%),
    linear-gradient(135deg, var(--bg-1), var(--bg-2));
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.16) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.18;
}

a {
  color: inherit;
}

button,
input,
select,
textarea,
option,
optgroup {
  font: inherit;
  font-family: var(--font-ui);
}

select,
select option,
select optgroup {
  font-family: var(--font-ui) !important;
}

button {
  cursor: pointer;
}

.app-shell {
  position: relative;
  min-height: 100vh;
  padding: 24px;
}

.app-shell :where(*:not(.nsp-wordmark-mark)) {
  font-family: var(--font-ui);
}

.login-shell,
.workspace-shell {
  max-width: 1400px;
  margin: 0 auto;
}

.login-shell.compact {
  min-height: calc(100vh - 48px);
  display: grid;
  place-items: center;
  font-family: var(--font-ui);
}

.notice-layer {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  z-index: 130;
}

.notice-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 31, 77, 0.2);
  backdrop-filter: blur(6px);
}

.notice {
  position: relative;
  z-index: 1;
  width: min(520px, calc(100vw - 32px));
  display: grid;
  gap: 12px;
  padding: 20px 22px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at top right, rgba(217, 164, 65, 0.08), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 247, 255, 0.96));
  box-shadow:
    0 26px 56px rgba(15, 31, 77, 0.16),
    0 10px 22px rgba(15, 31, 77, 0.08);
  animation: notice-in 0.18s ease;
}

.notice-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.notice-title {
  font-size: 1.05rem;
  color: var(--ink);
}

.notice p {
  margin: 0;
  color: var(--ink);
  line-height: 1.5;
}

.notice-close {
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(0, 37, 158, 0.12);
  background: rgba(255, 255, 255, 0.86);
  color: var(--accent);
  box-shadow: none;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  line-height: 1;
}

.notice.success {
  border-color: rgba(47, 122, 77, 0.18);
  background:
    radial-gradient(circle at top right, rgba(47, 122, 77, 0.12), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(236, 248, 241, 0.96));
}

.notice.error {
  border-color: rgba(178, 65, 52, 0.24);
  background:
    radial-gradient(circle at top right, rgba(178, 65, 52, 0.12), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(252, 240, 238, 0.97));
}

.login-hero {
  display: grid;
  grid-template-columns: minmax(280px, 1.25fr) minmax(320px, 0.95fr);
  gap: 24px;
  align-items: stretch;
}

.hero-panel,
.login-card,
.login-panel,
.card,
.table-card {
  background:
    var(--surface-glow),
    var(--surface-bg),
    var(--panel);
  backdrop-filter: blur(18px);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--surface-shadow-lg);
}

.hero-panel {
  padding: 40px;
  display: grid;
  gap: 28px;
}

.eyebrow {
  width: fit-content;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-panel h1,
.panel-title,
.section-title,
.wizard-title,
.page-title {
  margin: 0;
  font-family: var(--font-ui);
  letter-spacing: -0.02em;
}

.hero-panel h1 {
  font-size: clamp(2.4rem, 5vw, 4.6rem);
  line-height: 0.96;
}

.hero-panel p,
.muted {
  color: var(--muted);
}

.feature-grid,
.stats-grid,
.list-grid,
.summary-grid,
.dashboard-grid {
  display: grid;
  gap: 16px;
}

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

.feature-card,
.stat-card {
  padding: 18px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.72);
  background:
    radial-gradient(circle at top right, rgba(217, 164, 65, 0.09), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 248, 255, 0.9));
  box-shadow: var(--surface-shadow-md);
  backdrop-filter: blur(14px);
}

.stat-card {
  display: grid;
  gap: 8px;
}

.stat-card-action {
  width: 100%;
  text-align: left;
  font: inherit;
  color: var(--ink);
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.stat-card-action:hover {
  transform: translateY(-2px);
}

.stat-card-action-primary {
  border-color: rgba(0, 37, 158, 0.28);
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  box-shadow: 0 14px 28px rgba(0, 37, 158, 0.18);
}

.stat-card-action-primary strong,
.stat-card-action-primary .value {
  color: white;
}

.stat-card-action-primary small {
  color: rgba(255, 255, 255, 0.82);
}

.feature-card strong,
.stat-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1rem;
}

.login-card {
  padding: 32px;
  display: grid;
  gap: 24px;
}

.login-panel {
  width: min(100%, 460px);
  padding: 36px;
  display: grid;
  gap: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(245, 248, 255, 0.94)),
    var(--panel);
}

.login-brand {
  display: grid;
  gap: 18px;
  justify-items: center;
}

.nsp-wordmark {
  display: grid;
  gap: 10px;
}

.nsp-wordmark-button {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: inherit;
  justify-items: inherit;
}

.nsp-wordmark-button:focus-visible {
  outline: 2px solid rgba(0, 37, 158, 0.35);
  outline-offset: 6px;
}

.nsp-wordmark--login {
  justify-items: center;
  text-align: center;
}

.nsp-wordmark--sidebar {
  justify-items: start;
  text-align: left;
}

.nsp-wordmark--header {
  justify-items: start;
  text-align: left;
  gap: 4px;
}

.nsp-wordmark-mark {
  font-family: "Nasalization";
  line-height: 0.84;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--accent);
  text-rendering: geometricPrecision;
  font-weight: 700;
  transform: scaleX(1.04);
  transform-origin: center;
  -webkit-text-stroke: 1.45px var(--accent);
  paint-order: stroke fill;
  text-shadow:
    0 0 0 var(--accent),
    0.55px 0 0 var(--accent),
    -0.55px 0 0 var(--accent),
    0 0.55px 0 var(--accent),
    0 -0.55px 0 var(--accent),
    0.55px 0.55px 0 var(--accent),
    -0.55px 0.55px 0 var(--accent),
    0.55px -0.55px 0 var(--accent),
    -0.55px -0.55px 0 var(--accent);
}

.nsp-wordmark--login .nsp-wordmark-mark {
  font-size: clamp(5.2rem, 15vw, 9.4rem);
  -webkit-text-stroke-width: 3.5px;
  text-shadow:
    0 0 0 var(--accent),
    2px 0 0 var(--accent),
    -2px 0 0 var(--accent),
    0 2px 0 var(--accent),
    0 -2px 0 var(--accent),
    2px 2px 0 var(--accent),
    -2px 2px 0 var(--accent),
    2px -2px 0 var(--accent),
    -2px -2px 0 var(--accent);
}

.nsp-wordmark--sidebar .nsp-wordmark-mark {
  font-size: clamp(3rem, 6.4vw, 5.1rem);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: 0.03em;
  transform: translateZ(0) scaleX(1.04);
  backface-visibility: hidden;
  will-change: transform;
  -webkit-text-stroke-width: 1.52px;
  text-shadow:
    0 0 0 var(--accent),
    0.9px 0 0 var(--accent),
    -0.9px 0 0 var(--accent),
    0 0.9px 0 var(--accent),
    0 -0.9px 0 var(--accent),
    0.9px 0.9px 0 var(--accent),
    -0.9px 0.9px 0 var(--accent),
    0.9px -0.9px 0 var(--accent),
    -0.9px -0.9px 0 var(--accent);
}

.nsp-wordmark--header .nsp-wordmark-mark {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  -webkit-text-stroke-width: 0.78px;
  letter-spacing: 0.03em;
}

.nsp-wordmark-tagline {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0;
  justify-content: center;
  font-size: clamp(1.12rem, 2.7vw, 1.72rem);
}

.nsp-wordmark--sidebar .nsp-wordmark-tagline {
  justify-content: flex-start;
  font-size: 1rem;
}

.nsp-wordmark--header .nsp-wordmark-tagline {
  justify-content: flex-start;
  font-size: 0.68rem;
}

.nsp-wordmark-tagline-muted {
  color: #7b8599;
  font-weight: 500;
  margin-right: 0.3rem;
}

.nsp-wordmark--header .nsp-wordmark-tagline-muted {
  margin-right: 0.18rem;
}

.nsp-wordmark-tagline-strong {
  color: var(--accent);
  font-weight: 800;
}

.nsp-wordmark-tagline-dot {
  color: #7b8599;
  font-weight: 800;
}

.nsp-wordmark--sidebar .nsp-wordmark-tagline-strong {
  color: var(--accent);
  font-weight: 900;
}

.nsp-wordmark--sidebar .nsp-wordmark-tagline-dot {
  font-weight: 900;
}

.login-brand-copy {
  text-align: center;
}

.login-brand-copy strong {
  display: block;
  font-size: 1.08rem;
  color: var(--accent);
}

.login-brand-copy span {
  display: block;
  margin-top: 14px;
  color: var(--muted);
}

.brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(12, 107, 116, 0.25)),
    var(--panel-strong);
  border: 1px solid rgba(12, 107, 116, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
  position: relative;
}

.brand-logo::before,
.brand-logo::after {
  content: "";
  position: absolute;
  border-radius: 10px;
}

.brand-logo::before {
  inset: 10px 24px 10px 10px;
  background: var(--accent-strong);
}

.brand-logo::after {
  inset: 10px 10px 24px 24px;
  background: var(--gold);
}

.brand-copy strong {
  display: block;
  font-size: 1rem;
}

.brand-copy span {
  color: var(--muted);
  font-size: 0.94rem;
}

.form-grid {
  display: grid;
  gap: 16px;
}

.form-grid.two-columns,
.details-grid,
.manager-layout,
.admin-layout,
.content-grid {
  display: grid;
  gap: 18px;
}

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

.field {
  display: grid;
  gap: 8px;
}

.field label {
  font-size: 0.92rem;
  color: var(--muted);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(0, 37, 158, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 255, 0.96));
  color: var(--ink);
  outline: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 10px 24px rgba(15, 31, 77, 0.06);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.field textarea {
  min-height: 110px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(0, 37, 158, 0.42);
  transform: translateY(-1px);
  box-shadow:
    0 0 0 5px rgba(0, 37, 158, 0.08),
    0 16px 28px rgba(0, 37, 158, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.field input[readonly] {
  background:
    linear-gradient(180deg, rgba(244, 247, 255, 0.96), rgba(237, 241, 249, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 8px 18px rgba(15, 31, 77, 0.04);
}

.field select:disabled,
.field-readonly select,
.field-readonly input[readonly],
.field-readonly textarea[readonly] {
  color: rgba(13, 54, 78, 0.92);
  border-color: rgba(13, 54, 78, 0.12);
  background:
    linear-gradient(180deg, rgba(244, 247, 255, 0.96), rgba(237, 241, 249, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 8px 18px rgba(15, 31, 77, 0.04);
  cursor: default;
  opacity: 1;
}

.field select:disabled {
  -webkit-text-fill-color: rgba(13, 54, 78, 0.92);
}

.resource-rows {
  display: grid;
  border: 1px solid rgba(0, 37, 158, 0.12);
  border-radius: var(--radius-md);
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 255, 0.96));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 10px 24px rgba(15, 31, 77, 0.06);
}

.resource-row {
  display: grid;
  grid-template-columns: minmax(120px, 160px) minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
}

.resource-row + .resource-row {
  border-top: 1px solid rgba(0, 37, 158, 0.1);
}

.resource-row-label {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.resource-row input {
  min-height: 42px;
  margin: 0;
}

.resource-rows-readonly {
  background:
    linear-gradient(180deg, rgba(244, 247, 255, 0.96), rgba(237, 241, 249, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 8px 18px rgba(15, 31, 77, 0.04);
}

@media (max-width: 720px) {
  .resource-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }
}

.button-row,
.nav-row,
.wizard-footer,
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button-row.end,
.wizard-footer.end {
  justify-content: flex-end;
}

.button,
.icon-button,
.pill-button {
  border: none;
  border-radius: 999px;
  padding: 12px 18px;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.button:hover,
.icon-button:hover,
.pill-button:hover {
  transform: translateY(-1px);
}

.button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.button.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: white;
  box-shadow:
    0 16px 30px rgba(0, 37, 158, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.button.secondary {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 248, 255, 0.94));
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow:
    0 10px 22px rgba(15, 31, 77, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.button.warning {
  background: linear-gradient(135deg, #efbf5d, var(--gold));
  color: #3c2b08;
}

.button.danger {
  background: linear-gradient(135deg, #c55547, var(--danger));
  color: white;
}

.button.success {
  background: linear-gradient(135deg, #3f9c63, var(--success));
  color: white;
}

.button.ghost {
  background: transparent;
  border: 1px dashed rgba(13, 54, 78, 0.22);
  color: var(--muted);
}

.button.full-width {
  width: 100%;
  justify-content: center;
}

.button-small {
  padding: 9px 14px;
  font-size: 0.84rem;
}

.microsoft-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.9rem;
}

.microsoft-badge::before {
  content: "";
  width: 14px;
  height: 14px;
  box-shadow:
    0 0 0 8px #f25022 inset,
    16px 0 0 0 #7fba00 inset,
    0 16px 0 0 #00a4ef inset,
    16px 16px 0 0 #ffb900 inset;
  background: transparent;
  transform: scale(0.5);
  transform-origin: top left;
}

.demo-list {
  display: grid;
  gap: 10px;
}

.demo-account {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
}

.demo-account strong {
  display: block;
}

.demo-account span {
  color: var(--muted);
  font-size: 0.9rem;
}

.workspace-shell {
  display: grid;
  gap: 18px;
}

.topbar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 20px 24px;
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.topbar h2 {
  margin: 0;
  font-size: clamp(1.6rem, 2.4vw, 2.4rem);
  font-family: var(--font-ui);
}

.topbar p {
  margin: 6px 0 0;
  color: var(--muted);
}

.profile-chip {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(0, 37, 158, 0.07);
}

.profile-chip strong {
  display: block;
  font-size: 0.95rem;
}

.profile-chip span {
  display: block;
  color: var(--muted);
  font-size: 0.84rem;
}

.workspace-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 18px;
}

.sidebar {
  padding: 22px;
  background: rgba(255, 255, 255, 0.68);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  display: grid;
  gap: 18px;
  align-content: start;
}

.sidebar .button {
  width: 100%;
  justify-content: flex-start;
}

.sidebar .button.active {
  outline: 2px solid rgba(0, 37, 158, 0.24);
}

.panel-stack {
  display: grid;
  gap: 18px;
}

.card,
.table-card {
  padding: 24px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
}

.section-heading-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.section-refresh-badge {
  justify-content: center;
  min-width: 42px;
  padding-inline: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    opacity 0.18s ease;
}

.section-refresh-badge:not(:disabled):hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(0, 37, 158, 0.12);
}

.section-refresh-badge:disabled {
  cursor: wait;
  opacity: 0.82;
}

.section-refresh-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  line-height: 1;
}

.section-refresh-badge.is-loading .section-refresh-icon {
  animation: section-refresh-spin 0.8s linear infinite;
}

@keyframes section-refresh-spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.section-heading p,
.section-heading h3 {
  margin: 0;
}

.section-heading p {
  color: var(--muted);
}

.wizard-subtitle {
  font-size: 0.82rem;
  line-height: 1.25;
}

.stats-grid,
.summary-grid,
.dashboard-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stat-card .value {
  font-size: clamp(1.7rem, 3vw, 2.8rem);
  font-family: var(--font-ui);
}

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

.list-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.tech-intervention-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  align-items: stretch;
}

.intervention-card,
.summary-card,
.photo-card,
.review-card,
.recent-card {
  padding: 18px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.72);
  background:
    radial-gradient(circle at top right, rgba(217, 164, 65, 0.09), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(245, 248, 255, 0.92));
  box-shadow: var(--surface-shadow-md);
  backdrop-filter: blur(14px);
}

.intervention-card header,
.recent-card header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.intervention-card h4,
.recent-card h4,
.summary-card h4 {
  margin: 0;
  font-size: 1.06rem;
}

.intervention-card p,
.recent-card p,
.summary-card p,
.review-card p {
  margin: 0;
  color: var(--muted);
}

.tech-intervention-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transition:
    box-shadow 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.tech-intervention-card:hover,
.tech-intervention-card:focus-within {
  border-color: rgba(0, 37, 158, 0.2);
  background:
    radial-gradient(circle at top right, rgba(217, 164, 65, 0.1), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(239, 244, 255, 0.96));
  box-shadow:
    var(--surface-shadow-md),
    inset 4px 0 0 var(--list-hover-edge),
    inset 0 1px 0 var(--list-hover-stroke),
    inset 0 -1px 0 var(--list-hover-stroke);
}

.tech-intervention-card .button-row {
  margin-top: auto !important;
}

.tech-intervention-card .tech-card-actions {
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding-top: 18px;
}

.tech-intervention-card .tech-card-actions .button {
  min-width: 188px;
  justify-content: center;
  text-align: center;
}

.meta-list {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
}

.meta-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.92rem;
}

.meta-row span {
  flex: 0 0 auto;
}

.meta-row strong {
  flex: 1 1 auto;
  min-width: 0;
  margin-left: auto;
  text-align: right;
  font-weight: 600;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.review-edit-toggle {
  min-width: 104px;
  justify-content: center;
}

.review-general-form.is-locked {
  opacity: 0.98;
}

.review-general-helper {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.manager-revision-note-card textarea {
  min-height: 132px;
  resize: vertical;
}

.technician-revision-note-card,
.readonly-revision-note-card {
  margin: 4px 0 24px;
  padding: 20px 22px;
  border-radius: 24px;
}

.technician-revision-note-card {
  border: 1px solid rgba(180, 66, 48, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 248, 245, 0.98), rgba(255, 241, 235, 0.94)),
    radial-gradient(circle at top right, rgba(180, 66, 48, 0.12), transparent 34%);
  box-shadow:
    0 18px 34px rgba(180, 66, 48, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.readonly-revision-note-card {
  background:
    var(--surface-glow),
    var(--surface-bg),
    var(--panel);
  backdrop-filter: blur(18px);
  border: 1px solid var(--surface-border);
  box-shadow: var(--surface-shadow-lg);
}

.technician-revision-note-content,
.readonly-revision-note-content {
  color: var(--text);
  font-size: 0.96rem;
  line-height: 1.65;
  white-space: pre-wrap;
}

.pill-row-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.pill-row-stats .pill {
  justify-content: center;
  min-width: 0;
  padding: 6px 8px;
  font-size: 0.76rem;
  white-space: nowrap;
  text-align: center;
}

.pill-row-stats .pill:nth-child(1) {
  justify-content: flex-start;
  text-align: left;
}

.pill-row-stats .pill:nth-child(2) {
  justify-content: center;
  text-align: center;
}

.pill-row-stats .pill:nth-child(3) {
  justify-content: flex-end;
  text-align: right;
}

.pill-row-tech-status .pill:nth-child(1),
.pill-row-tech-status .pill:nth-child(2),
.pill-row-tech-status .pill:nth-child(3) {
  justify-content: center;
  text-align: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.pill.draft {
  background: rgba(100, 108, 114, 0.12);
  color: #4b545b;
}

.pill.pending {
  background: var(--gold-soft);
  color: #6a4b11;
}

.pill.warning {
  background: rgba(217, 164, 65, 0.18);
  color: #8b5b00;
}

.pill.approved {
  background: var(--success-soft);
  color: var(--success);
}

.pill.rejected {
  background: var(--danger-soft);
  color: var(--danger);
}

.pill.info {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.pill.user-active {
  background: var(--success-soft);
  color: var(--success);
}

.pill.user-inactive {
  background: rgba(85, 101, 141, 0.12);
  color: var(--muted);
}

.wizard-shell {
  display: grid;
  gap: 18px;
}

.step-track {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.step-chip {
  min-width: 0;
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 248, 255, 0.9));
  box-shadow: var(--surface-shadow-md);
  display: flex;
  gap: 10px;
  align-items: center;
  text-align: left;
  transition:
    transform 0.16s ease,
    border-color 0.16s ease,
    box-shadow 0.16s ease;
}

.step-chip:not(.active):hover {
  transform: translateY(-1px);
  border-color: rgba(0, 37, 158, 0.2);
  box-shadow: 0 18px 32px rgba(15, 31, 77, 0.12);
}

.step-chip:focus-visible {
  outline: 2px solid rgba(0, 37, 158, 0.3);
  outline-offset: 2px;
}

.step-chip.active {
  border-color: rgba(0, 37, 158, 0.28);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.88), var(--accent-soft));
}

.step-chip .index {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(18, 33, 45, 0.08);
  font-weight: 700;
}

.step-chip > div {
  min-width: 0;
}

.step-chip strong {
  display: block;
  font-size: 1rem;
  line-height: 1.1;
}

.step-chip .caption {
  line-height: 1.1;
}

.step-chip.active .index {
  background: var(--accent-strong);
  color: white;
}

.wizard-grid {
  display: grid;
  gap: 18px;
}

.wizard-grid.review {
  grid-template-columns: minmax(0, 1fr);
  min-width: 0;
}

.wizard-grid.review > * {
  min-width: 0;
}

.form-grid.one-column {
  grid-template-columns: minmax(0, 1fr);
}

.report-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
  align-items: start;
}

.report-layout.readonly {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.report-layout--ordinaria-impianto-readonly .report-card--summary,
.report-layout--ordinaria-impianto-readonly .report-card--checklist,
.report-layout--ordinaria-impianto-readonly .report-sidebar-stack--ordinaria-impianto,
.report-layout--ordinaria-impianto-readonly .report-card--operations,
.report-layout--ordinaria-impianto-readonly .report-card--signature {
  min-width: 0;
}

.report-sidebar-stack {
  display: grid;
  gap: 18px;
  align-content: start;
}

.report-layout--ordinaria-impianto-readonly .report-card--checklist .meta-row {
  align-items: flex-start;
  flex-wrap: wrap;
}

.report-layout--ordinaria-impianto-readonly .report-card--checklist .meta-row span,
.report-layout--ordinaria-impianto-readonly .report-card--checklist .meta-row strong {
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.report-layout--ordinaria-impianto-readonly .report-card--checklist .meta-row span {
  flex: 1 1 240px;
}

.report-layout--ordinaria-impianto-readonly .report-card--checklist .meta-row strong {
  flex: 1 1 280px;
  margin-left: 0;
  text-align: left;
}

.report-card {
  display: grid;
  gap: 16px;
  padding: 18px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.72);
  background:
    radial-gradient(circle at top right, rgba(217, 164, 65, 0.07), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 248, 255, 0.92));
  box-shadow: var(--surface-shadow-md);
  backdrop-filter: blur(14px);
}

.report-card-full-span {
  grid-column: 1 / -1;
}

.report-card-section {
  display: grid;
  gap: 12px;
}

.report-form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px 16px;
  align-items: start;
}

.report-pair-list {
  display: grid;
  gap: 12px;
}

.report-field-pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px 16px;
}

.report-field-pair > * {
  min-width: 0;
}

.report-card-section + .report-card-section {
  padding-top: 16px;
  border-top: 1px solid rgba(0, 37, 158, 0.1);
}

.report-card h4,
.report-card h5,
.report-card p {
  margin: 0;
}

.report-card h4 {
  font-size: 1.02rem;
}

.report-card h5 {
  font-size: 0.92rem;
  color: var(--accent-strong);
}

.report-field-full {
  grid-column: 1 / -1;
}

.checkbox-field {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(0, 37, 158, 0.12);
  background: rgba(255, 255, 255, 0.74);
  color: var(--ink);
  font-weight: 600;
}

.checkbox-field input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent-strong);
}

.report-checklist {
  display: grid;
  gap: 12px;
}

.report-checklist-item {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(0, 37, 158, 0.12);
  background: rgba(255, 255, 255, 0.76);
}

.report-checklist-item__header {
  display: flex;
  gap: 10px;
  align-items: baseline;
  color: var(--ink);
}

.report-checklist-item__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  font-size: 0.88rem;
  color: var(--muted);
}

.report-checklist-editor {
  display: grid;
  gap: 12px 16px;
}

.report-checklist-editor__inputs {
  display: grid;
  gap: 12px 16px;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
}

.report-checklist-editor__outcome {
  grid-column: 1 / -1;
}

.report-edile-row-grid {
  display: grid;
  gap: 12px 16px;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}

@media (min-width: 720px) {
  .report-edile-row-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 2fr);
  }

  .report-edile-row-grid textarea {
    min-height: 38px;
  }
}

.signature-panel {
  position: relative;
  padding: 10px;
  border-radius: var(--radius-lg);
  border: 1px dashed rgba(0, 37, 158, 0.22);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(242, 246, 255, 0.94));
}

.signature-canvas {
  display: block;
  width: 100%;
  height: 180px;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
  touch-action: none;
  cursor: crosshair;
}

.signature-canvas-large {
  height: 240px;
}

.signature-preview {
  display: grid;
  place-items: center;
  min-height: 132px;
  padding: 12px;
  border-radius: var(--radius-md);
  border: 1px dashed rgba(0, 37, 158, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(243, 247, 255, 0.95));
}

.signature-preview img {
  max-width: 100%;
  max-height: 120px;
  object-fit: contain;
}

.report-readonly-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  margin-top: 8px;
}

.report-readonly-table thead th {
  text-align: left;
  padding: 8px 10px;
  background: rgba(0, 37, 158, 0.08);
  color: var(--ink);
  font-weight: 600;
  border-bottom: 1px solid rgba(0, 37, 158, 0.16);
}

.report-readonly-table tbody td {
  padding: 8px 10px;
  border-bottom: 1px solid rgba(0, 37, 158, 0.08);
  vertical-align: top;
  color: var(--ink);
}

.report-readonly-table tbody tr:last-child td {
  border-bottom: none;
}

.report-readonly-block {
  display: grid;
  gap: 8px;
  padding: 14px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(0, 37, 158, 0.1);
  background: rgba(255, 255, 255, 0.72);
}

.report-readonly-block p {
  color: var(--ink);
  white-space: pre-wrap;
  word-break: break-word;
}

@media (min-width: 960px) {
  .report-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .report-field-pair {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: end;
  }

  .report-checklist-editor {
    grid-template-columns:
      minmax(0, calc((100% - 80px) / 6))
      minmax(0, calc((100% - 80px) / 6))
      minmax(0, calc((100% - 80px) / 6))
      minmax(0, calc((100% - 16px) / 2));
    align-items: start;
  }

  .report-checklist-editor__inputs {
    display: contents;
  }

  .report-checklist-editor__outcome {
    grid-column: auto;
  }

  .report-checklist-editor__note label {
    white-space: nowrap;
  }

  .report-checklist-editor__note textarea {
    min-height: 48px;
    height: 48px;
  }
}

@media (min-width: 1100px) {
  .report-layout--ordinaria-impianto-readonly {
    grid-template-columns:
      minmax(260px, 1fr)
      minmax(0, 1fr)
      minmax(0, 1fr)
      minmax(300px, 1fr);
  }

  .report-layout--ordinaria-impianto-readonly .report-card--summary {
    grid-column: 1;
    grid-row: 1 / span 2;
  }

  .report-layout--ordinaria-impianto-readonly .report-card--checklist {
    grid-column: 2 / span 2;
  }

  .report-layout--ordinaria-impianto-readonly .report-sidebar-stack--ordinaria-impianto {
    grid-column: 4;
  }
}

.review-main-card,
.review-submit-card {
  width: 100%;
}

.review-summary-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
}

.review-summary-grid .summary-card,
.review-summary-side {
  min-width: 0;
}

.review-summary-side {
  display: grid;
  gap: 16px;
  align-content: start;
}

@media (min-width: 861px) and (max-width: 1180px) {
  .review-summary-side {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.photo-upload-panel {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.72);
  background:
    radial-gradient(circle at top right, rgba(217, 164, 65, 0.09), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(245, 248, 255, 0.93));
  box-shadow: var(--surface-shadow-md);
  backdrop-filter: blur(14px);
}

.photo-upload-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.technician-media-upload-section + .technician-media-upload-section {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(13, 54, 78, 0.1);
}

.technician-media-upload-section-heading {
  margin-bottom: 14px;
}

.section-title-small {
  font-size: 1rem;
}

.photo-upload-button {
  display: inline-flex;
  align-items: center;
  min-width: 180px;
  justify-content: center;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.photo-card {
  position: relative;
  padding: 12px;
  overflow: hidden;
}

.photo-card-needs-replacement {
  box-shadow: 0 0 0 2px rgba(177, 43, 43, 0.22);
  background:
    radial-gradient(circle at top right, rgba(177, 43, 43, 0.08), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(255, 244, 244, 0.93));
}

.photo-card-tech-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(177, 43, 43, 0.92);
  color: white;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  box-shadow: 0 10px 22px rgba(88, 12, 12, 0.22);
}

.photo-card-tech-status-approved {
  background: rgba(15, 107, 70, 0.92);
  box-shadow: 0 10px 22px rgba(9, 61, 41, 0.22);
}

.photo-card-meta {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.photo-card-meta .caption {
  word-break: break-word;
}

.photo-card-approved-locked {
  box-shadow: 0 0 0 2px rgba(15, 107, 70, 0.16);
  background:
    radial-gradient(circle at top right, rgba(15, 107, 70, 0.06), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(244, 253, 248, 0.93));
}

.photo-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.manager-photo-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.manager-photo-grid .photo-card {
  padding: 8px;
}

.manager-photo-grid .photo-card img,
.manager-photo-grid .photo-preview-button img {
  aspect-ratio: 4 / 3;
  max-height: 140px;
  object-fit: cover;
}

.photo-card-sortable {
  cursor: grab;
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.photo-card-sortable.dragging {
  opacity: 0.45;
  transform: scale(0.98);
}

.photo-card-sortable.drop-before,
.photo-card-sortable.drop-after {
  box-shadow: 0 0 0 2px rgba(0, 37, 158, 0.12);
}

.photo-card-sortable.drop-before::before,
.photo-card-sortable.drop-after::after {
  content: "";
  position: absolute;
  top: 12px;
  bottom: 12px;
  width: 3px;
  border-radius: 999px;
  background: var(--accent);
  z-index: 2;
}

.photo-card-sortable.drop-before::before {
  left: 3px;
}

.photo-card-sortable.drop-after::after {
  right: 3px;
}

.photo-sort-hint {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.photo-preview-button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.photo-preview-button-approved {
  border-radius: var(--radius-md);
}

.photo-preview-button img {
  display: block;
}

.photo-card-review footer {
  justify-content: flex-start;
}

.photo-card footer {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
  align-items: center;
}

.photo-card .delete-photo {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: rgba(18, 33, 45, 0.82);
  color: white;
  display: grid;
  place-items: center;
  font-size: 1rem;
}

.review-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.photo-card-review .review-actions {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  align-items: center;
}

.photo-card-review .review-actions.review-actions-no-delete {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.review-actions .pill-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  min-width: 92px;
  padding: 10px 16px;
  border: 1px solid transparent;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: none;
}

.photo-card-review .review-actions .pill-button {
  min-height: 30px;
  min-width: 0;
  padding: 6px 10px;
  font-size: 0.74rem;
}

.photo-card-review .review-actions .pill-button:nth-child(1) {
  justify-self: start;
}

.photo-card-review .review-actions .pill-button:nth-child(2) {
  justify-self: center;
}

.photo-card-review .review-actions .pill-button:nth-child(3) {
  justify-self: end;
}

.photo-card-review .review-actions.review-actions-no-delete .pill-button:nth-child(1) {
  justify-self: start;
}

.photo-card-review .review-actions.review-actions-no-delete .pill-button:nth-child(2) {
  justify-self: end;
}

.review-pill-icon {
  display: none;
}

.review-actions .pill-button.approved {
  background: var(--success-soft);
  color: var(--success);
  border-color: rgba(47, 122, 77, 0.18);
}

.review-actions .pill-button.rejected {
  background: var(--gold-soft);
  color: #8a5a11;
  border-color: rgba(217, 164, 65, 0.22);
}

.review-actions .pill-button.delete {
  background: var(--danger-soft);
  color: var(--danger);
  border-color: rgba(178, 65, 52, 0.16);
}

.review-actions .pill-button.pending {
  background: rgba(18, 33, 45, 0.06);
  color: var(--ink);
  border-color: rgba(18, 33, 45, 0.08);
}

.review-actions .pill-button.active.approved {
  background: linear-gradient(135deg, #3f9c63, var(--success));
  color: white;
  box-shadow: 0 10px 22px rgba(47, 122, 77, 0.24);
}

.review-actions .pill-button.active.rejected {
  background: linear-gradient(135deg, #efbf5d, var(--gold));
  color: #3c2b08;
  box-shadow: 0 10px 22px rgba(217, 164, 65, 0.24);
}

.review-actions .pill-button.active.pending {
  background: var(--gold);
  color: #3d2b08;
}

.photo-lightbox-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(8, 14, 30, 0.72);
  backdrop-filter: blur(4px);
  z-index: 110;
}

.photo-lightbox {
  position: fixed;
  inset: 12px;
  z-index: 120;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 48px;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.photo-lightbox-close {
  position: absolute;
  top: 0;
  right: 0;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.16);
  color: white;
  box-shadow: 0 14px 28px rgba(8, 14, 30, 0.26);
  backdrop-filter: blur(16px);
}

.photo-lightbox-arrow {
  width: 52px;
  height: 52px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.16);
  color: white;
  font-size: 1.8rem;
  line-height: 1;
  box-shadow: 0 14px 28px rgba(8, 14, 30, 0.26);
  backdrop-filter: blur(16px);
}

.photo-lightbox-arrow:disabled {
  opacity: 0.34;
  cursor: default;
  transform: none;
}

.photo-lightbox-stage {
  position: relative;
  min-height: 0;
  height: 100%;
  width: 100%;
  padding: 8px;
  border-radius: 32px;
  border: none;
  background: transparent;
  display: block;
  overflow: auto;
  overscroll-behavior: contain;
  cursor: zoom-in;
}

.photo-lightbox-stage.zoomed {
  cursor: grab;
}

.photo-lightbox-stage.zoomed .photo-lightbox-image,
.photo-lightbox-stage.zoomed .photo-lightbox-canvas {
  cursor: grab;
}

.photo-lightbox-stage.zoomed.panning {
  cursor: grabbing;
}

.photo-lightbox-stage.zoomed.panning .photo-lightbox-image,
.photo-lightbox-stage.zoomed.panning .photo-lightbox-canvas {
  cursor: grabbing;
}

.photo-lightbox-canvas {
  position: relative;
  min-width: 100%;
  min-height: 100%;
  display: block;
  transition: none;
}

.photo-lightbox-image {
  position: absolute;
  display: block;
  max-width: min(100%, calc(100vw - 152px));
  max-height: min(84vh, calc(100vh - 156px));
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 22px;
  margin: 0;
  box-shadow: 0 30px 72px rgba(5, 10, 24, 0.34);
  will-change: transform, left, top;
  transform: translateZ(0) scale(1);
  transform-origin: center center;
  backface-visibility: hidden;
  transition: none;
  user-select: none;
  -webkit-user-drag: none;
}

.photo-lightbox-footer {
  grid-column: 1 / -1;
  width: min(100%, 1080px);
  justify-self: center;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background:
    radial-gradient(circle at top right, rgba(217, 164, 65, 0.08), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 248, 255, 0.92));
  box-shadow: var(--surface-shadow-lg);
}

.photo-lightbox-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  min-width: 0;
}

.photo-lightbox-meta-left {
  justify-content: flex-start;
  justify-self: start;
}

.photo-lightbox-meta strong {
  font-size: 1rem;
  max-width: min(100%, 28rem);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.photo-lightbox-meta span {
  color: var(--muted);
  font-size: 0.92rem;
}

.photo-lightbox-status {
  display: flex;
  justify-content: center;
  justify-self: center;
}

.photo-lightbox-status--readonly {
  justify-content: flex-end;
  justify-self: end;
}

.review-actions-lightbox {
  justify-content: flex-end;
  flex-wrap: nowrap;
  justify-self: end;
}

.review-actions-lightbox .review-actions.review-actions-no-delete {
  justify-content: flex-end;
}

.manager-review-media-layout {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.manager-review-media-panel {
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(13, 54, 78, 0.09);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(245, 248, 255, 0.9));
}

.manager-review-media-panel-main {
  grid-column: span 3;
}

.manager-review-media-panel-side {
  grid-column: span 1;
}

.manager-review-media-copy {
  margin-bottom: 14px;
}

.manager-review-media-copy h4 {
  margin: 0 0 6px;
  font-size: 1rem;
  color: var(--ink);
}

.manager-review-media-copy p {
  margin: 0;
  color: var(--muted);
}

.manager-photo-grid--review-main {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.manager-photo-grid--review-ddt {
  grid-template-columns: 1fr;
}

.placeholder-box {
  padding: 24px;
  border: 1px dashed rgba(13, 54, 78, 0.28);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at top right, rgba(217, 164, 65, 0.08), transparent 22%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(245, 248, 255, 0.88));
  box-shadow: var(--surface-shadow-md);
}

.placeholder-box strong {
  display: block;
  margin-bottom: 10px;
}

.big-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  width: min(100%, 540px);
  min-height: 84px;
  border: none;
  border-radius: 28px;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: white;
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  font-weight: 800;
  letter-spacing: 0.03em;
  line-height: 1.05;
  text-align: center;
  box-shadow: 0 18px 40px rgba(0, 37, 158, 0.24);
}

.big-submit span {
  display: block;
}

.center-actions {
  display: grid;
  justify-items: center;
  gap: 14px;
}

.manager-layout,
.admin-layout {
  grid-template-columns: 360px minmax(0, 1fr);
}

.manager-sidebar,
.admin-sidebar {
  display: grid;
  gap: 16px;
}

.selection-list {
  display: grid;
  gap: 12px;
}

.selection-item {
  width: 100%;
  text-align: left;
  padding: 16px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.72);
  background:
    radial-gradient(circle at top right, rgba(217, 164, 65, 0.08), transparent 22%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 248, 255, 0.9));
  box-shadow: var(--surface-shadow-md);
}

.selection-item.active {
  outline: 2px solid rgba(0, 37, 158, 0.24);
}

.selection-item strong {
  display: block;
  margin-bottom: 8px;
}

.selection-item span {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
}

.table-scroll {
  width: 100%;
  overflow-x: auto;
}

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

.table th,
.table td {
  padding: 14px 10px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  overflow-wrap: anywhere;
}

.table th {
  color: var(--muted);
  font-weight: 600;
}

.table th:last-child,
.table td:last-child {
  width: 240px;
  text-align: right;
}

.table td:last-child {
  white-space: nowrap;
}

.table-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.table-actions .caption {
  width: 100%;
  text-align: right;
}

.empty-state {
  padding: 28px;
  border: 1px dashed rgba(13, 54, 78, 0.22);
  border-radius: var(--radius-lg);
  text-align: center;
  color: var(--muted);
  background:
    radial-gradient(circle at top right, rgba(217, 164, 65, 0.08), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(245, 248, 255, 0.88));
  box-shadow: var(--surface-shadow-md);
}

.empty-state-inline {
  margin: 0;
  padding: 6px 0 2px;
  color: var(--muted);
  font-size: 0.98rem;
}

.subtle-text {
  color: var(--muted);
  font-size: 0.9rem;
}

.caption {
  color: var(--muted);
  font-size: 0.86rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@media (max-width: 1180px) {
  .login-hero,
  .workspace-layout,
  .manager-layout,
  .admin-layout,
  .wizard-grid.review {
    grid-template-columns: 1fr;
  }

  .sidebar {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }

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

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

}

@media (max-width: 860px) {
  .app-shell {
    padding: 14px;
  }

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

  .form-grid.two-columns,
  .details-grid,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .step-track {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

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

@media (max-width: 640px) {
  .hero-panel,
  .login-card,
  .login-panel,
  .card,
  .table-card {
    padding: 18px;
    border-radius: 22px;
  }

  .stats-grid,
  .summary-grid,
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

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

  .stats-grid-tech-home .stat-card {
    aspect-ratio: 1 / 1;
    min-height: 0;
    padding: 14px;
    align-content: stretch;
    justify-items: stretch;
    text-align: left;
    grid-template-rows: minmax(2.6em, auto) auto minmax(2.6em, auto);
  }

  .stats-grid-tech-home .stat-card strong,
  .stats-grid-tech-home .stat-card small,
  .stats-grid-tech-home .stat-card .value {
    margin: 0;
    text-align: left;
  }

  .stats-grid-tech-home .stat-card .value {
    font-size: clamp(1.45rem, 6vw, 2rem);
  }

  .manager-filter-popover {
    max-width: calc(100vw - 24px);
  }

  .manager-table-pagination {
    justify-content: stretch;
  }

  .manager-table-pagination-field {
    width: 100%;
    justify-content: space-between;
  }

  .manager-table-pagination-field select {
    min-width: 0;
    width: 100%;
    max-width: 180px;
  }

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

  .photo-grid {
    gap: 10px;
  }

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

  .manager-review-media-layout {
    grid-template-columns: 1fr;
  }

  .manager-review-media-panel-main,
  .manager-review-media-panel-side {
    grid-column: span 1;
  }

  .manager-photo-grid--review-main,
  .manager-photo-grid--review-ddt {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .step-track {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .app-shell-login {
    min-height: 100dvh;
    height: 100dvh;
    padding: 0 2px 2px;
    gap: 0;
  }

  .app-shell-login .login-shell.compact {
    max-width: none;
    min-height: 100%;
    height: 100%;
    overflow: hidden;
    padding: 0;
    width: 100%;
    place-items: stretch;
  }

  .app-shell-login .login-panel {
    position: relative;
    isolation: isolate;
    width: 100%;
    max-width: none;
    min-height: calc(100% - 2px);
    height: calc(100% - 2px);
    padding: 30px 20px max(34px, env(safe-area-inset-bottom));
    border-radius: 30px;
    gap: 24px;
    align-content: stretch;
    grid-template-rows: auto minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.78);
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 247, 255, 0.96)),
      radial-gradient(circle at top center, rgba(0, 37, 158, 0.12), transparent 42%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
  }

  .app-shell-login .login-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.45), transparent 22%),
      radial-gradient(circle at top right, rgba(217, 164, 65, 0.12), transparent 28%);
    z-index: -1;
  }

  .app-shell-login .login-brand {
    gap: 16px;
  }

  .app-shell-login .login-brand-copy strong {
    font-size: 1.18rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  .app-shell-login .login-brand-copy span {
    margin-top: 8px;
    font-size: 0.94rem;
    line-height: 1.35;
    letter-spacing: 0.03em;
  }

  .app-shell-login .form-grid {
    gap: 20px;
    align-content: end;
  }

  .app-shell-login .field {
    gap: 12px;
  }

  .app-shell-login .field input,
  .app-shell-login .field select,
  .app-shell-login .field textarea {
    min-height: 60px;
    padding: 18px 20px;
    border-color: rgba(0, 37, 158, 0.12);
    background: rgba(255, 255, 255, 0.98);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.95),
      0 10px 24px rgba(15, 31, 77, 0.06);
  }

  .app-shell-login .field input:focus,
  .app-shell-login .field select:focus,
  .app-shell-login .field textarea:focus {
    border-color: rgba(0, 37, 158, 0.42);
    box-shadow:
      0 0 0 5px rgba(0, 37, 158, 0.08),
      0 16px 28px rgba(0, 37, 158, 0.12);
  }

  .app-shell-login .button.primary {
    min-height: 60px;
    font-weight: 700;
    letter-spacing: 0.03em;
    box-shadow:
      0 18px 32px rgba(0, 37, 158, 0.28),
      inset 0 1px 0 rgba(255, 255, 255, 0.18);
  }

  .app-shell-login .nsp-wordmark--login .nsp-wordmark-mark {
    font-size: clamp(4.4rem, 21vw, 6.8rem);
  }

  .app-shell-login .nsp-wordmark-tagline {
    font-size: clamp(0.95rem, 4vw, 1.15rem);
  }

  .app-shell-login .login-brand-copy span {
    margin-top: 4px;
  }
}

html,
body {
  min-height: 100%;
  height: auto;
  overflow-x: hidden;
  overflow-y: scroll;
}

.app-shell {
  min-height: 100vh;
  height: auto;
  display: grid;
  grid-template-rows: auto auto;
  overflow: visible;
  padding: 18px;
  gap: 14px;
}

.login-shell.compact {
  min-height: calc(100vh - 36px);
  height: auto;
  overflow: visible;
  padding: 24px 0;
}

.workspace-shell {
  position: relative;
  height: auto;
  min-height: 0;
  max-width: none;
  display: grid;
  grid-template-columns: var(--workspace-sidebar-width) minmax(0, 1fr);
  gap: 16px;
}

.app-sidebar {
  inline-size: var(--workspace-sidebar-width);
  max-inline-size: 100%;
  min-height: 0;
  padding: 18px;
  background:
    var(--surface-glow),
    var(--surface-bg),
    var(--panel);
  border-radius: var(--radius-xl);
  border: 1px solid var(--surface-border);
  box-shadow: var(--surface-shadow-lg);
  backdrop-filter: blur(18px);
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 14px;
  overflow: auto;
}

.sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 72px;
}

.sidebar-brand {
  display: grid;
  gap: 10px;
  align-content: center;
  min-width: 0;
}

.sidebar-brand strong {
  display: block;
  font-size: 1rem;
}

.sidebar-brand span {
  color: var(--muted);
  font-size: 0.88rem;
}

.sidebar-nav {
  display: grid;
  gap: 10px;
  align-content: start;
}

@media (min-width: 1025px) {
  .workspace-shell {
    height: auto;
    align-items: start;
  }

  .sidebar-brand .nsp-wordmark--sidebar {
    inline-size: 178px;
    max-inline-size: 100%;
  }

  .app-sidebar {
    position: static;
    align-self: start;
    height: auto;
    overflow: visible;
    grid-template-rows: auto auto auto;
  }

  .workspace-main {
    min-height: 0;
    overflow: visible;
  }

  .workspace-content {
    height: auto;
    overflow: visible;
  }

  .app-shell--role-capo-commessa .sidebar-brand .nsp-wordmark--sidebar .nsp-wordmark-mark {
    -webkit-text-stroke-width: 3.4px;
    text-shadow:
      0 0 0 var(--accent),
      2.2px 0 0 var(--accent),
      -2.2px 0 0 var(--accent),
      0 2.2px 0 var(--accent),
      0 -2.2px 0 var(--accent),
      2.2px 2.2px 0 var(--accent),
      -2.2px 2.2px 0 var(--accent),
      2.2px -2.2px 0 var(--accent),
      -2.2px -2.2px 0 var(--accent);
  }
}

.sidebar-user-card {
  padding: 14px 16px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.72);
  background:
    radial-gradient(circle at top right, rgba(217, 164, 65, 0.08), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 248, 255, 0.91));
  box-shadow: var(--surface-shadow-md);
}

.sidebar-user-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
}

.sidebar-user-copy {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.sidebar-user-role {
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sidebar-user-name {
  display: block;
  font-size: 1rem;
  line-height: 1.12;
}

.sidebar-user-email {
  color: var(--muted);
  font-size: 0.86rem;
  overflow-wrap: anywhere;
}

.sidebar-user-actions {
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
}

.sidebar-section-label {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.nav-item {
  width: 100%;
  text-align: left;
  padding: 14px 16px;
  border: 1px solid transparent;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 248, 255, 0.9));
  display: grid;
  gap: 4px;
  color: var(--ink);
  box-shadow:
    0 10px 22px rgba(15, 31, 77, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

.nav-item:hover {
  transform: translateY(-1px);
}

.nav-item.active {
  border-color: rgba(0, 37, 158, 0.2);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(0, 37, 158, 0.1));
  box-shadow:
    inset 4px 0 0 var(--accent),
    0 10px 22px rgba(0, 37, 158, 0.08);
}

.nav-item-emphasis {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: white;
}

.nav-item-emphasis .nav-item-meta {
  color: rgba(255, 255, 255, 0.76);
}

.nav-item-emphasis.active {
  color: var(--ink);
}

.nav-item-emphasis.active .nav-item-meta {
  color: var(--muted);
}

.nav-item-create {
  position: relative;
  padding-right: 56px;
}

.nav-item-title {
  font-weight: 700;
}

.nav-item-plus {
  position: absolute;
  right: 16px;
  bottom: 14px;
  font-size: 1.85rem;
  line-height: 0.9;
  font-weight: 500;
  margin: 0;
}

.nav-item-meta {
  color: var(--muted);
  font-size: 0.88rem;
}

.sidebar-note {
  padding: 14px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.72);
  background:
    radial-gradient(circle at top right, rgba(217, 164, 65, 0.08), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(245, 248, 255, 0.9));
  box-shadow: var(--surface-shadow-md);
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.workspace-main {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 18px;
}

.content-header {
  display: grid;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  background:
    var(--surface-glow),
    var(--surface-bg),
    var(--panel);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--surface-shadow-lg);
  backdrop-filter: blur(18px);
  overflow: visible;
}

@media (min-width: 1025px) {
  .content-header {
    display: none;
  }

  .workspace-main {
    grid-template-rows: minmax(0, 1fr);
  }
}

.mobile-banner-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.banner-identity {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.banner-identity-mobile {
  gap: 2px;
  flex: 1;
  justify-items: end;
  text-align: right;
}

.banner-role {
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.banner-name {
  display: block;
  font-size: clamp(1rem, 1.7vw, 1.2rem);
  line-height: 1.05;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-menu-button {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.88);
  color: var(--accent);
  box-shadow: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.header-menu-icon {
  display: grid;
  gap: 4px;
}

.header-menu-icon span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.workspace-content {
  min-height: 0;
  overflow: auto;
  padding-right: 0;
  display: grid;
  gap: 16px;
  align-content: start;
  width: 100%;
  min-width: 0;
}

.app-shell--role-tecnico .workspace-content {
  grid-template-columns: minmax(0, 1120px);
  justify-content: center;
}

.app-shell--role-supervisor .workspace-content,
.app-shell--role-capo-commessa .workspace-content {
  grid-template-columns: minmax(0, 1440px);
  justify-content: center;
}

.app-sidebar,
.workspace-main,
.workspace-content,
.review-detail-drawer .drawer-body,
.drawer-body {
  scrollbar-width: thin;
  scrollbar-color: rgba(137, 157, 205, 0.52) rgba(255, 255, 255, 0.42);
  scrollbar-gutter: stable both-edges;
}

@media (min-width: 1025px) {
  .workspace-content {
    overflow: visible;
  }
}

.app-sidebar::-webkit-scrollbar,
.workspace-main::-webkit-scrollbar,
.workspace-content::-webkit-scrollbar,
.review-detail-drawer .drawer-body::-webkit-scrollbar,
.drawer-body::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.app-sidebar::-webkit-scrollbar-track,
.workspace-main::-webkit-scrollbar-track,
.workspace-content::-webkit-scrollbar-track,
.review-detail-drawer .drawer-body::-webkit-scrollbar-track,
.drawer-body::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.36);
  border-radius: 999px;
}

.app-sidebar::-webkit-scrollbar-thumb,
.workspace-main::-webkit-scrollbar-thumb,
.workspace-content::-webkit-scrollbar-thumb,
.review-detail-drawer .drawer-body::-webkit-scrollbar-thumb,
.drawer-body::-webkit-scrollbar-thumb {
  background: rgba(137, 157, 205, 0.52);
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.62);
}

.app-sidebar::-webkit-scrollbar-thumb:hover,
.workspace-main::-webkit-scrollbar-thumb:hover,
.workspace-content::-webkit-scrollbar-thumb:hover,
.review-detail-drawer .drawer-body::-webkit-scrollbar-thumb:hover,
.drawer-body::-webkit-scrollbar-thumb:hover {
  background: rgba(120, 143, 196, 0.68);
}

.menu-toggle,
.sidebar-close {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  color: var(--accent);
  box-shadow: none;
}

.sidebar-overlay {
  display: none;
}

.directory-shell {
  display: grid;
  grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.users-directory-layout {
  display: grid;
  width: 100%;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  align-content: start;
  justify-items: stretch;
  justify-content: stretch;
}

.users-directory-layout > .table-card,
.users-directory-layout > .manager-table-card {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  justify-self: stretch;
}

.supervisor-directory-layout {
  grid-template-columns: minmax(420px, 520px) minmax(0, 1fr);
}

.supervisor-page-shell {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  justify-items: stretch;
}

.supervisor-selection-card,
.supervisor-documents-card {
  min-width: 0;
  width: 100%;
  justify-self: stretch;
}

.supervisor-home-card {
  width: 100%;
  justify-self: stretch;
}

.app-shell--role-supervisor .workspace-content > .card,
.app-shell--role-supervisor .workspace-content > .table-card {
  width: 100%;
}

.supervisor-documents-card .section-heading,
.supervisor-selection-card .section-heading {
  margin-bottom: 14px;
}

.supervisor-search-toolbar {
  margin-bottom: 14px;
  align-items: end;
}

.supervisor-search-field {
  flex: 1 1 320px;
  max-width: 360px;
}

.supervisor-search-field input {
  min-height: 44px;
}

.supervisor-home-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

@media (min-width: 1025px) {
  .app-shell--role-supervisor .supervisor-home-card {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 18px;
  }

  .app-shell--role-supervisor .supervisor-home-card .section-heading {
    margin-bottom: 0;
  }

  .app-shell--role-supervisor .supervisor-home-grid {
    height: 100%;
    min-height: 0;
    grid-template-rows: minmax(0, 1fr);
  }

  .app-shell--role-supervisor .supervisor-home-action {
    min-height: 0;
    height: 100%;
  }
}

.supervisor-home-action {
  position: relative;
  min-height: clamp(505px, calc(100vh - 395px), 595px);
  display: grid;
  grid-template-rows: auto auto 1fr;
  align-content: end;
  justify-items: start;
  gap: 10px;
  overflow: hidden;
  text-align: left;
  padding: 28px;
  isolation: isolate;
}

.supervisor-home-action::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(217, 164, 65, 0.1), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(245, 248, 255, 0.95));
  pointer-events: none;
}

.supervisor-home-action::after {
  content: "";
  position: absolute;
  inset: 0;
  background-position: right bottom;
  background-repeat: no-repeat;
  background-size: auto 74%;
  opacity: 0.09;
  pointer-events: none;
  filter: saturate(0.55);
  z-index: 0;
}

.supervisor-home-action .value {
  margin-top: auto;
}

.supervisor-home-action > small::before {
  content: none;
}

.supervisor-home-action > strong,
.supervisor-home-action > .value,
.supervisor-home-action > small {
  position: relative;
  z-index: 1;
}

.supervisor-home-action > strong {
  font-size: 1.26rem;
}

.supervisor-home-action > .value {
  font-size: clamp(2.8rem, 4vw, 4rem);
  line-height: 1;
}

.supervisor-home-action > small {
  max-width: 18ch;
  font-size: 0.98rem;
  line-height: 1.35;
  max-width: 20ch;
}

.supervisor-home-action--technicians > small {
  white-space: nowrap;
}

.supervisor-home-action--managers::after,
.supervisor-home-action--technicians::after,
.supervisor-home-action--commesse::after {
  background-position: right bottom;
  background-size: auto 100%;
  opacity: 0.92;
  filter: grayscale(0.26) saturate(0.82) brightness(0.98);
}

.supervisor-home-action--managers::after {
  background-image: url("./illustrations/supervisor-manager-bg.png");
}

.supervisor-home-action--technicians::after {
  background-image: url("./illustrations/supervisor-technician-bg.png");
}

.supervisor-home-action--commesse::after {
  background-image: url("./illustrations/supervisor-commesse-bg.png?v=20260402-1052");
}

.supervisor-detail-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.supervisor-people-scroll {
  width: 100%;
  min-width: 0;
  overflow: auto;
}

.supervisor-people-table {
  width: 100%;
  min-width: 100%;
  table-layout: auto;
}

.supervisor-people-table th,
.supervisor-people-table td {
  padding: 12px 10px;
}

.supervisor-people-table th:last-child,
.supervisor-people-table td:last-child {
  width: auto;
  text-align: right;
}

.supervisor-people-table td:last-child {
  white-space: nowrap;
}

.supervisor-commesse-table {
  min-width: 820px;
  table-layout: fixed;
}

.supervisor-commesse-table th:nth-child(1),
.supervisor-commesse-table td:nth-child(1) {
  width: 24%;
  min-width: 180px;
}

.supervisor-commesse-table th:nth-child(2),
.supervisor-commesse-table td:nth-child(2) {
  width: 38%;
  min-width: 240px;
}

.supervisor-commesse-table th:nth-child(3),
.supervisor-commesse-table td:nth-child(3) {
  width: 14%;
  min-width: 110px;
}

.supervisor-commesse-table th:nth-child(4),
.supervisor-commesse-table td:nth-child(4) {
  width: 24%;
  min-width: 170px;
}

.supervisor-commesse-table td:nth-child(1),
.supervisor-commesse-table td:nth-child(2) {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.supervisor-commesse-table td:nth-child(3),
.supervisor-commesse-table td:nth-child(4) {
  white-space: nowrap;
}

.supervisor-people-table th:nth-child(1),
.supervisor-people-table td:nth-child(1) {
  min-width: 170px;
}

.supervisor-people-table th:nth-child(2),
.supervisor-people-table td:nth-child(2) {
  min-width: 200px;
}

.supervisor-people-table th:nth-child(3),
.supervisor-people-table td:nth-child(3) {
  min-width: 110px;
}

.supervisor-people-table tbody .supervisor-people-row:nth-child(odd) td {
  background: rgba(0, 37, 158, 0.04);
}

.supervisor-people-table tbody .supervisor-people-row:nth-child(even) td {
  background: rgba(255, 255, 255, 0.52);
}

.supervisor-people-row {
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.supervisor-people-row td:first-child {
  border-left: 3px solid transparent;
}

.supervisor-people-table tbody .supervisor-people-row:hover td,
.supervisor-people-table tbody .supervisor-people-row.active td {
  background: var(--list-hover-bg);
  box-shadow:
    inset 0 1px 0 var(--list-hover-stroke),
    inset 0 -1px 0 var(--list-hover-stroke);
}

.supervisor-people-table tbody .supervisor-people-row:hover td:first-child,
.supervisor-people-table tbody .supervisor-people-row.active td:first-child {
  border-left-color: var(--list-hover-edge);
}

.supervisor-directory-table {
  width: 100%;
  min-width: 860px;
  table-layout: fixed;
}

.supervisor-directory-table th,
.supervisor-directory-table td {
  padding: 12px 10px;
}

.supervisor-directory-table th:last-child,
.supervisor-directory-table td:last-child {
  text-align: center;
}

.supervisor-directory-table tbody .manager-table-row:nth-child(odd) td {
  background: rgba(0, 37, 158, 0.04);
}

.supervisor-directory-table tbody .manager-table-row:nth-child(even) td {
  background: rgba(255, 255, 255, 0.5);
}

.supervisor-directory-table tbody .manager-table-row:hover td,
.supervisor-directory-table tbody .manager-table-row.active td {
  background: var(--list-hover-bg);
  box-shadow:
    inset 0 1px 0 var(--list-hover-stroke),
    inset 0 -1px 0 var(--list-hover-stroke);
}

.supervisor-directory-table tbody .manager-table-row:hover td:first-child,
.supervisor-directory-table tbody .manager-table-row.active td:first-child {
  border-left-color: var(--list-hover-edge);
}

.supervisor-directory-table td {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.supervisor-directory-table th:nth-child(1),
.supervisor-directory-table td:nth-child(1) {
  min-width: 150px;
}

.supervisor-directory-table th:nth-child(2),
.supervisor-directory-table td:nth-child(2) {
  min-width: 170px;
}

.supervisor-directory-table th:nth-child(3),
.supervisor-directory-table td:nth-child(3) {
  min-width: 180px;
}

.supervisor-directory-table th:nth-child(4),
.supervisor-directory-table td:nth-child(4) {
  min-width: 160px;
}

.supervisor-directory-table th:nth-child(5),
.supervisor-directory-table td:nth-child(5) {
  min-width: 120px;
}

.supervisor-directory-table th:nth-child(6),
.supervisor-directory-table td:nth-child(6) {
  min-width: 140px;
}

@media (max-width: 1100px) {
  .supervisor-home-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .supervisor-home-action {
    min-height: 220px;
    padding: 24px;
  }

  .supervisor-home-action::after {
    background-position: right bottom;
    background-size: auto 66%;
  }

  .supervisor-home-action--managers::after,
  .supervisor-home-action--technicians::after {
    background-size: auto 78%;
  }

  .supervisor-directory-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

.directory-panel,
.detail-panel {
  min-height: 0;
}

/* Slightly lighter UI typography while keeping the NSP wordmark untouched. */
.app-shell {
  font-weight: 400;
}

.hero-panel h1,
.panel-title,
.section-title,
.wizard-title,
.page-title,
.recent-card h4,
.summary-card h4,
.selection-item strong,
.nav-item-title,
.sidebar-user-name,
.big-submit,
.pill,
.review-actions .pill-button,
.step-chip .index,
.row-tag {
  font-weight: 600;
}

.sidebar-user-role,
.sidebar-section-label,
.banner-role,
.manager-filter-popover-title,
.manager-photo-alert {
  font-weight: 700;
}

.meta-row strong,
.table th,
.manager-filter-option.active {
  font-weight: 500;
}

.user-table-card,
.compact-detail-panel {
  padding: 20px;
}

.user-table-card {
  width: 100%;
}

.user-table-card .section-heading,
.compact-detail-panel .section-heading {
  margin-bottom: 14px;
}

.user-table-scroll {
  overflow: auto;
}

.user-directory-table {
  width: 100%;
  min-width: 1080px;
  table-layout: auto;
}

.user-directory-table th,
.user-directory-table td {
  padding: 12px 10px;
}

.user-directory-table tbody .user-table-row:nth-child(odd) td {
  background: rgba(0, 37, 158, 0.04);
}

.user-directory-table tbody .user-table-row:nth-child(even) td {
  background: rgba(255, 255, 255, 0.5);
}

.user-directory-table th:last-child,
.user-directory-table td:last-child {
  width: auto;
  text-align: left;
}

.user-directory-table td:last-child {
  white-space: normal;
}

.user-directory-table th:nth-child(1),
.user-directory-table td:nth-child(1),
.user-directory-table th:nth-child(2),
.user-directory-table td:nth-child(2) {
  min-width: 120px;
}

.user-directory-table th:nth-child(3),
.user-directory-table td:nth-child(3) {
  min-width: 320px;
}

.user-directory-table th:nth-child(4),
.user-directory-table td:nth-child(4) {
  min-width: 120px;
}

.user-directory-table th:nth-child(5),
.user-directory-table td:nth-child(5),
.user-directory-table th:nth-child(6),
.user-directory-table td:nth-child(6) {
  min-width: 120px;
}

.manager-table-card {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  justify-self: stretch;
}

.manager-table-card .section-heading {
  margin-bottom: 10px;
}

.manager-table-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 14px;
}

.manager-table-pagination-field {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
}

.manager-table-pagination-field select {
  min-width: 84px;
  width: 108px;
  padding: 6px 8px;
  border-radius: 9px;
  border: 1px solid rgba(0, 37, 158, 0.14);
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  font-size: 0.8rem;
}

.manager-table-heading {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.manager-filter-trigger {
  width: 22px;
  height: 22px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(0, 37, 158, 0.14);
  background: rgba(255, 255, 255, 0.92);
  color: var(--muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.manager-filter-trigger::before {
  content: "▾";
  font-size: 0.8rem;
  line-height: 1;
  transform: translateY(-1px);
}

.manager-filter-trigger.active,
.manager-filter-trigger.open {
  color: var(--accent);
  border-color: rgba(0, 37, 158, 0.28);
  background: rgba(0, 37, 158, 0.1);
}

.manager-filter-popover {
  position: fixed;
  top: 0;
  left: 0;
  right: auto;
  z-index: 120;
  width: max-content;
  min-width: 0;
  max-width: calc(100vw - 24px);
  max-height: 280px;
  overflow: auto;
  padding: 8px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(0, 37, 158, 0.1);
  background: rgba(255, 255, 255, 0.97);
  box-shadow:
    0 14px 26px rgba(15, 31, 77, 0.08),
    0 4px 10px rgba(15, 31, 77, 0.04);
  backdrop-filter: blur(10px);
}

.manager-filter-popover-title {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.manager-filter-option {
  display: block;
  width: max-content;
  min-width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  font-size: 0.84rem;
  line-height: 1.25;
  white-space: nowrap;
}

.manager-filter-option:hover {
  background: rgba(0, 37, 158, 0.06);
}

.manager-filter-option.active {
  background: rgba(0, 37, 158, 0.1);
  color: var(--accent);
  font-weight: 700;
}

.manager-table-scroll {
  overflow: auto;
  width: 100%;
  min-width: 0;
}

.manager-directory-table {
  width: 100%;
  min-width: 960px;
  table-layout: fixed;
}

.manager-directory-table th,
.manager-directory-table td {
  padding: 12px 8px;
}

.manager-directory-table tbody .manager-table-row:nth-child(odd) td {
  background: rgba(0, 37, 158, 0.04);
}

.manager-directory-table tbody .manager-table-row:nth-child(even) td {
  background: rgba(255, 255, 255, 0.5);
}

.manager-directory-table th:last-child,
.manager-directory-table td:last-child {
  width: auto;
  text-align: left;
}

.manager-directory-table td:last-child {
  white-space: normal;
}

.manager-directory-table th:nth-child(1),
.manager-directory-table td:nth-child(1) {
  width: 10%;
}

.manager-directory-table th:nth-child(2),
.manager-directory-table td:nth-child(2) {
  width: 12%;
}

.manager-directory-table th:nth-child(3),
.manager-directory-table td:nth-child(3) {
  width: 11%;
}

.manager-directory-table th:nth-child(4),
.manager-directory-table td:nth-child(4) {
  width: 15%;
}

.manager-directory-table th:nth-child(5),
.manager-directory-table td:nth-child(5) {
  width: 16%;
}

.manager-directory-table th:nth-child(6),
.manager-directory-table td:nth-child(6) {
  width: 6%;
}

.manager-directory-table th:nth-child(7),
.manager-directory-table td:nth-child(7),
.manager-directory-table th:nth-child(8),
.manager-directory-table td:nth-child(8) {
  width: 8%;
}

.manager-directory-table.manager-directory-table-approved th:nth-child(1),
.manager-directory-table.manager-directory-table-approved td:nth-child(1) {
  width: 12%;
}

.manager-directory-table.manager-directory-table-approved th:nth-child(2),
.manager-directory-table.manager-directory-table-approved td:nth-child(2) {
  width: 11%;
}

.manager-directory-table.manager-directory-table-approved th:nth-child(3),
.manager-directory-table.manager-directory-table-approved td:nth-child(3) {
  width: 10%;
}

.manager-directory-table.manager-directory-table-approved th:nth-child(4),
.manager-directory-table.manager-directory-table-approved td:nth-child(4) {
  width: 15%;
}

.manager-directory-table.manager-directory-table-approved th:nth-child(5),
.manager-directory-table.manager-directory-table-approved td:nth-child(5) {
  width: 17%;
}

.manager-directory-table.manager-directory-table-approved th:nth-child(6),
.manager-directory-table.manager-directory-table-approved td:nth-child(6) {
  width: 6%;
  text-align: center;
}

.manager-directory-table.manager-directory-table-approved th:nth-child(7),
.manager-directory-table.manager-directory-table-approved td:nth-child(7) {
  width: 8%;
  text-align: center;
}

.manager-directory-table.manager-directory-table-approved th:nth-child(8),
.manager-directory-table.manager-directory-table-approved td:nth-child(8) {
  width: 6%;
  text-align: center;
}

.manager-directory-table.manager-directory-table-approved th:nth-child(9),
.manager-directory-table.manager-directory-table-approved td:nth-child(9) {
  width: 15%;
}

.manager-directory-table .row-tag {
  margin-left: 0;
}

.manager-cell-ellipsis {
  display: block;
  max-width: 220px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.manager-photo-cell {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.manager-photo-cell-alert {
  white-space: nowrap;
}

.manager-photo-alert {
  color: var(--danger);
  font-size: 0.92rem;
  font-weight: 900;
  line-height: 1;
}

.manager-approval-cell {
  text-align: center;
}

.manager-approval-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.92);
}

.manager-approval-dot.is-approved {
  background: var(--success);
}

.manager-approval-dot.is-empty {
  background: rgba(63, 156, 99, 0.3);
}

.manager-approval-dot.is-muted {
  background: rgba(85, 101, 141, 0.28);
}

.manager-table-row {
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.manager-directory-table tbody .manager-table-row:hover td,
.manager-directory-table tbody .manager-table-row.active td {
  background: var(--list-hover-bg);
  box-shadow:
    inset 0 1px 0 var(--list-hover-stroke),
    inset 0 -1px 0 var(--list-hover-stroke);
}

.manager-directory-table tbody .manager-table-row:hover td:first-child,
.manager-directory-table tbody .manager-table-row.active td:first-child {
  border-left-color: var(--list-hover-edge);
}

.manager-table-row td:first-child {
  border-left: 3px solid transparent;
}

.approved-summary-grid {
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.approved-summary-grid .summary-card {
  min-width: 0;
  padding: 14px;
}

.approved-summary-grid .summary-card h4 {
  font-size: 0.98rem;
}

.approved-summary-grid .summary-card p {
  font-size: 0.9rem;
  line-height: 1.35;
}

.approved-summary-table {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin-top: 12px;
  border: 1px solid rgba(13, 54, 78, 0.14);
  border-radius: 20px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 248, 255, 0.92));
  box-shadow: var(--surface-shadow-md);
}

.approved-summary-table-row {
  display: grid;
  grid-template-columns: minmax(132px, 180px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 14px 16px;
  border-right: 1px solid rgba(13, 54, 78, 0.08);
  border-bottom: 1px solid rgba(13, 54, 78, 0.08);
}

.approved-summary-table-row:nth-child(2n) {
  border-right: 0;
}

.approved-summary-table-row--full {
  grid-column: 1 / -1;
  border-right: 0;
}

.approved-summary-table-row--full:last-child {
  border-bottom: 0;
}

.approved-summary-table-row:nth-last-child(2):not(.approved-summary-table-row--full),
.approved-summary-table-row:last-child:not(.approved-summary-table-row--full) {
  border-bottom: 0;
}

.approved-summary-table-row span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.approved-summary-table-row strong {
  min-width: 0;
  font-size: 0.94rem;
  font-weight: 600;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.approved-report-layout {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 0;
  align-items: start;
  border: 1px solid rgba(13, 54, 78, 0.14);
  border-radius: 20px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 248, 255, 0.92));
  box-shadow: var(--surface-shadow-md);
}

.approved-report-layout .report-sidebar-stack {
  display: contents;
}

.approved-report-layout .report-card {
  min-width: 0;
  gap: 12px;
  padding: 16px 18px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.approved-report-layout > .report-card,
.approved-report-layout .report-sidebar-stack > .report-card {
  border-bottom: 1px solid rgba(13, 54, 78, 0.08);
}

.approved-report-layout .report-sidebar-stack > .report-card:last-child,
.approved-report-layout > .report-card:last-child {
  border-bottom: 0;
}

.approved-report-layout .meta-list {
  gap: 6px;
  margin-top: 8px;
}

.approved-report-layout .report-card--signature {
  grid-column: 1;
  align-self: end;
}

.approved-report-layout .report-card--summary,
.approved-report-layout .report-card--full-width,
.approved-report-layout .report-card--operations,
.approved-report-layout.report-layout--ordinaria-impianto-readonly .report-card--summary,
.approved-report-layout.report-layout--ordinaria-impianto-readonly .report-card--checklist,
.approved-report-layout.report-layout--ordinaria-impianto-readonly .report-card--operations {
  grid-column: 1 / -1;
}

.approved-report-layout.report-layout--ordinaria-impianto-readonly .report-card--signature {
  grid-column: 1;
}

.approved-report-layout .report-card--pdf-action {
  grid-column: 2;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  align-self: end;
  padding: 0 18px 18px 0;
}

.approved-report-layout .button-row--approved-report-action {
  width: 100%;
  justify-content: flex-end;
  margin-top: auto;
}

.approved-report-layout .report-card--summary .approved-report-microgrid {
  grid-template-columns: repeat(3, minmax(220px, 1fr));
}

.approved-report-layout .report-card--summary .approved-report-mini,
.approved-report-layout .report-card--operations .approved-report-mini {
  grid-template-columns: minmax(118px, 152px) minmax(0, 1fr);
}

.approved-report-layout .report-card--operations .approved-report-microgrid {
  grid-template-columns: repeat(2, minmax(360px, 1fr));
}

.approved-report-layout .report-card--operations .approved-report-mini {
  grid-template-columns: minmax(190px, 240px) minmax(0, 1fr);
  gap: 6px 14px;
}

.approved-report-layout .report-card h4 {
  font-size: 0.86rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.approved-report-microgrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 18px;
  align-items: start;
}

.approved-report-microgrid--checklist {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.approved-report-mini {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(92px, 132px) minmax(0, 1fr);
  gap: 6px 12px;
  align-items: start;
  padding: 4px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.approved-report-mini--full {
  grid-column: 1 / -1;
}

.approved-report-mini--stacked {
  grid-template-columns: minmax(92px, 132px) minmax(0, 1fr);
  gap: 6px 12px;
}

.approved-report-mini span {
  min-width: 0;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: rgba(13, 54, 78, 0.68);
  line-height: 1.45;
}

.approved-report-mini strong {
  min-width: 0;
  font-size: 0.94rem;
  font-weight: 600;
  line-height: 1.45;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.approved-report-entry-stack {
  display: grid;
  gap: 14px;
}

.approved-report-entry {
  display: grid;
  gap: 10px;
  padding: 12px 0 0;
  border: 0;
  border-top: 1px solid rgba(13, 54, 78, 0.1);
  border-radius: 0;
  background: transparent;
}

.approved-report-entry:first-child {
  padding-top: 0;
  border-top: 0;
}

.approved-report-entry-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  align-items: start;
}

.approved-report-entry-head span {
  min-width: 0;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.approved-report-issue-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 18px;
}

.approved-report-issue {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.approved-report-issue-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 14px;
  align-items: start;
}

.approved-report-issue-head span {
  min-width: 0;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.approved-report-issue-head strong {
  min-width: 0;
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.4;
  text-align: right;
}

.approved-report-layout .report-readonly-block {
  display: grid;
  gap: 10px;
  padding: 10px 0 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.approved-report-layout .report-readonly-block + .report-readonly-block {
  padding-top: 14px;
  border-top: 1px dashed rgba(13, 54, 78, 0.12);
}

.approved-report-layout .report-readonly-block h5 {
  margin: 0;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(13, 54, 78, 0.68);
}

.approved-report-layout .signature-preview {
  min-height: 120px;
  padding: 10px;
}

.photo-card-approved footer {
  justify-content: flex-start;
  min-height: 28px;
}

.approved-photo-archive {
  display: grid;
  gap: 14px;
}

.approved-photo-pile {
  overflow: hidden;
  border: 1px solid rgba(13, 54, 78, 0.1);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(246, 249, 255, 0.94));
  box-shadow: 0 14px 30px rgba(17, 35, 69, 0.06);
}

.approved-photo-pile__toggle {
  display: grid;
  grid-template-columns: minmax(148px, 188px) minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 14px 16px;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: background 0.18s ease;
}

.approved-photo-pile__toggle:hover {
  background: rgba(0, 37, 158, 0.035);
}

.approved-photo-pile.is-open .approved-photo-pile__toggle {
  border-bottom: 1px solid rgba(13, 54, 78, 0.08);
}

.approved-photo-pile__preview {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding-left: 14px;
}

.approved-photo-pile__preview--empty {
  padding-left: 0;
  justify-content: center;
  border: 1px dashed rgba(13, 54, 78, 0.18);
  border-radius: var(--radius-md);
  background: rgba(244, 247, 252, 0.92);
  color: rgba(13, 54, 78, 0.72);
  font-size: 0.78rem;
  font-weight: 700;
}

.approved-photo-pile__thumb {
  display: inline-flex;
  width: 60px;
  height: 44px;
  margin-left: -14px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.94);
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(17, 35, 69, 0.12);
  background: white;
}

.approved-photo-pile__thumb:first-child {
  margin-left: 0;
}

.approved-photo-pile__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.approved-photo-pile__copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.approved-photo-pile__copy strong {
  color: var(--text);
  font-size: 0.96rem;
  font-weight: 800;
}

.approved-photo-pile__copy span {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.approved-photo-pile__meta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.approved-photo-pile__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1;
}

.approved-photo-pile__count--approved {
  background: rgba(15, 107, 70, 0.12);
  color: #0f6b46;
}

.approved-photo-pile__count--replaced {
  background: rgba(198, 123, 8, 0.16);
  color: #a96307;
}

.approved-photo-pile__count--removed {
  background: rgba(177, 43, 43, 0.14);
  color: #b12b2b;
}

.approved-photo-pile__chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(13, 54, 78, 0.08);
  color: var(--text);
  font-size: 1rem;
  font-weight: 800;
}

.approved-photo-pile__content {
  padding: 14px 16px 16px;
}

.approved-photo-pile-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.photo-change-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.photo-card-approved .row-tag {
  margin-left: 0;
}

.photo-card-removed img {
  opacity: 0.74;
}

@media (max-width: 920px) {
  .approved-photo-pile__toggle {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .approved-photo-pile__preview {
    min-height: 44px;
    padding-left: 0;
  }

  .approved-photo-pile__meta {
    justify-content: space-between;
  }

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

.user-table-row {
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.user-directory-table tbody .user-table-row:hover td,
.user-directory-table tbody .user-table-row.active td {
  background: var(--list-hover-bg);
  box-shadow:
    inset 0 1px 0 var(--list-hover-stroke),
    inset 0 -1px 0 var(--list-hover-stroke);
}

.user-table-row td:first-child {
  border-left: 3px solid transparent;
}

.user-directory-table tbody .user-table-row:hover td:first-child,
.user-directory-table tbody .user-table-row.active td:first-child {
  border-left-color: var(--list-hover-edge);
}

.user-table-row.inactive td {
  color: var(--muted);
}

.user-table-row.inactive td strong {
  color: var(--muted);
}

.user-detail-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 19, 44, 0.18);
  z-index: 70;
}

.user-detail-drawer {
  position: fixed;
  top: 18px;
  right: 18px;
  bottom: 18px;
  width: min(560px, calc(100vw - 36px));
  padding: 22px 22px 18px;
  background:
    var(--surface-glow),
    var(--surface-bg),
    rgba(255, 255, 255, 0.97);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--surface-shadow-lg);
  backdrop-filter: blur(18px);
  z-index: 80;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 18px;
  animation: drawer-in 0.18s ease;
}

.review-detail-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 19, 44, 0.18);
  z-index: 70;
}

.review-detail-drawer {
  position: fixed;
  inset: 24px 24px 24px calc(24px + 272px + 16px);
  width: auto;
  padding: 22px 22px 18px;
  background:
    var(--surface-glow),
    var(--surface-bg),
    rgba(255, 255, 255, 0.97);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--surface-shadow-lg);
  backdrop-filter: blur(18px);
  z-index: 80;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 18px;
  animation: drawer-in 0.18s ease;
}

.review-detail-drawer.submission-preview-drawer {
  inset: auto;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(680px, calc(100vw - 48px));
  max-height: min(85vh, 720px);
  animation: none;
  gap: 6px;
}

.submission-preview-actions {
  justify-content: space-between;
  align-items: center;
}

.submission-preview-drawer .drawer-header {
  border-bottom: none;
  padding-bottom: 0;
}

.submission-preview-drawer .button {
  box-shadow: none;
}

.manager-review-media-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.tech-intervention-card {
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.tech-intervention-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(15, 31, 77, 0.12);
}

.tech-intervention-card--clickable {
  cursor: pointer;
}

.review-detail-drawer .drawer-body {
  min-height: 0;
  overflow: auto;
  padding-right: 4px;
}

.drawer-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.drawer-header h3,
.drawer-header p {
  margin: 0;
}

.drawer-header p {
  margin-top: 6px;
  color: var(--muted);
}

.drawer-body {
  min-height: 0;
  overflow: auto;
  padding-right: 4px;
}

.drawer-close {
  width: 42px;
  height: 42px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  color: var(--accent);
  box-shadow: none;
}

.row-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(0, 37, 158, 0.1);
  color: var(--accent-strong);
  font-size: 0.76rem;
  font-weight: 700;
  margin-left: 8px;
  white-space: nowrap;
}

.row-tag.tight {
  margin-left: 0;
}

.row-tag.approved {
  background: var(--success-soft);
  color: var(--success);
}

.row-tag.warning {
  background: rgba(217, 164, 65, 0.18);
  color: #8b5b00;
}

.row-tag.danger {
  background: var(--danger-soft);
  color: var(--danger);
}

.row-tag.muted {
  background: rgba(85, 101, 141, 0.12);
  color: var(--muted);
}

.directory-list {
  display: grid;
  gap: 10px;
}

.user-list-item {
  width: 100%;
  text-align: left;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background:
    radial-gradient(circle at top right, rgba(217, 164, 65, 0.08), transparent 22%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(245, 248, 255, 0.91));
  box-shadow: var(--surface-shadow-md);
  display: grid;
  gap: 8px;
}

.user-list-item.active {
  border-color: rgba(0, 37, 158, 0.24);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(0, 37, 158, 0.08));
  box-shadow: inset 4px 0 0 var(--accent);
}

.user-list-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.user-list-head strong {
  font-size: 1rem;
}

.user-list-role,
.user-list-email {
  color: var(--muted);
  font-size: 0.92rem;
  overflow-wrap: anywhere;
}

.detail-hero {
  margin-bottom: 18px;
  padding: 18px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.72);
  background:
    radial-gradient(circle at top right, rgba(217, 164, 65, 0.08), transparent 22%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 248, 255, 0.91));
  box-shadow: var(--surface-shadow-md);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.detail-hero.compact {
  margin-bottom: 14px;
  padding: 14px 16px;
}

.detail-readonly-grid .field input[readonly] {
  color: var(--ink);
}

.drawer-helper {
  margin: 0 0 14px;
  color: var(--muted);
}

.detail-hero strong {
  display: block;
  font-size: 1.08rem;
  margin-bottom: 4px;
}

.detail-hero span {
  color: var(--muted);
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--muted);
  font-size: 0.88rem;
}

.inline-note {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(0, 37, 158, 0.14);
  background: rgba(0, 37, 158, 0.08);
  color: var(--accent-strong);
  font-size: 0.92rem;
}

.compact-actions {
  gap: 8px;
}

.compact-actions .button {
  padding: 10px 14px;
}

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

@media (max-width: 1180px) {
  .directory-shell,
  .create-user-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1024px) {
  .workspace-shell {
    grid-template-columns: 1fr;
  }

  .workspace-main {
    display: block;
    overflow: auto;
  }

  .content-header {
    margin-bottom: 12px;
  }

  .content-header .nsp-wordmark--header {
    gap: 0;
  }

  .content-header .nsp-wordmark--header .nsp-wordmark-mark {
    font-size: clamp(2.2rem, 5.8vw, 2.8rem);
  }

  .content-header .nsp-wordmark--header .nsp-wordmark-tagline {
    display: none;
  }

  .workspace-content {
    min-height: auto;
    overflow: visible;
    padding-right: 0;
  }

  .app-sidebar {
    position: fixed;
    top: 14px;
    bottom: 14px;
    left: 14px;
    width: min(88vw, 320px);
    z-index: 40;
    transform: translateX(calc(-100% - 18px));
    transition: transform 0.24s ease;
  }

  .app-sidebar.open {
    transform: translateX(0);
  }

  .menu-toggle,
  .sidebar-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .sidebar-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(8, 16, 40, 0.32);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.24s ease;
    z-index: 30;
  }

  .sidebar-overlay.visible {
    opacity: 1;
    pointer-events: auto;
  }
}

@media (max-width: 860px) {
  .banner-name {
    font-size: 1rem;
  }

  .tech-intervention-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .app-shell {
    padding: 12px;
  }

  .workspace-main {
    gap: 12px;
  }

  .content-header,
  .app-sidebar {
    padding: 14px;
    border-radius: 20px;
  }

  .content-header {
    gap: 8px;
  }

  .mobile-banner-row {
    gap: 10px;
  }

  .signature-canvas-large {
    height: 170px;
  }

  .nsp-wordmark--header {
    display: flex;
    align-items: center;
    min-height: 40px;
    gap: 0;
  }

  .nsp-wordmark--header .nsp-wordmark-mark {
    font-size: clamp(2.35rem, 11vw, 3rem);
    line-height: 1;
  }

  .nsp-wordmark--header .nsp-wordmark-tagline {
    display: none;
  }

  .header-menu-button {
    width: 36px;
    height: 36px;
  }

  .header-menu-icon span {
    width: 16px;
  }

  .sidebar-user-main {
    gap: 10px;
  }

  .app-sidebar .nsp-wordmark--sidebar {
    gap: 6px;
  }

  .app-sidebar .nsp-wordmark--sidebar .nsp-wordmark-tagline {
    font-size: 0.8rem;
    gap: 0.16rem;
  }

  .photo-upload-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .photo-lightbox {
    inset: 8px;
    grid-template-columns: 42px minmax(0, 1fr) 42px;
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 12px;
  }

  .photo-lightbox-close {
    top: 0;
    right: 0;
    width: 42px;
    height: 42px;
  }

  .photo-lightbox-arrow {
    width: 42px;
    height: 42px;
    font-size: 1.45rem;
  }

  .photo-lightbox-stage {
    padding: 4px;
    border-radius: 18px;
  }

  .photo-lightbox-image {
    max-width: min(100%, calc(100vw - 92px));
    max-height: min(72vh, calc(100vh - 178px));
    border-radius: 16px;
  }

  .photo-lightbox-footer {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 14px;
    border-radius: 20px;
  }

  .photo-lightbox-meta {
    gap: 8px;
  }

  .photo-lightbox-meta-left {
    justify-content: flex-start;
  }

  .photo-lightbox-status {
    justify-content: center;
    justify-self: center;
  }

  .review-actions-lightbox {
    justify-content: stretch;
    flex-wrap: wrap;
    justify-self: stretch;
  }

  .review-actions-lightbox .pill-button {
    flex: 1;
    justify-content: center;
  }

  .review-actions .review-pill {
    min-width: 40px;
    padding: 8px 10px;
  }

  .review-pill-label {
    display: none;
  }

  .review-pill-icon {
    display: inline-block;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1;
  }

  .photo-upload-button {
    width: 100%;
    min-width: 0;
  }

  .wizard-shell {
    gap: 12px;
  }

  .step-track {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
  }

  .step-chip {
    padding: 8px 4px;
    gap: 0;
    justify-content: center;
    border-radius: 14px;
  }

  .step-chip > div {
    display: none;
  }

  .step-chip .index {
    width: 24px;
    height: 24px;
    font-size: 0.76rem;
  }

  .detail-hero,
  .user-list-head {
    flex-direction: column;
  }

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

  .approved-summary-table {
    grid-template-columns: 1fr;
  }

  .approved-summary-table-row,
  .approved-summary-table-row:nth-child(2n),
  .approved-summary-table-row--full {
    grid-column: auto;
    border-right: 0;
  }

  .approved-summary-table-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .approved-summary-table-row:last-child {
    border-bottom: 0;
  }

  .approved-report-layout {
    grid-template-columns: 1fr !important;
  }

  .approved-report-layout .report-sidebar-stack {
    display: grid;
    gap: 0;
  }

  .approved-report-microgrid,
  .approved-report-microgrid--checklist,
  .approved-report-issue-grid,
  .approved-report-entry-head,
  .approved-report-issue-head,
  .approved-report-mini {
    grid-template-columns: 1fr;
  }

  .approved-report-layout .report-card--signature {
    grid-column: auto;
    align-self: auto;
  }

  .approved-report-layout .report-card--pdf-action {
    grid-column: auto;
    justify-content: stretch;
  }

  .approved-report-layout .button-row--approved-report-action {
    justify-content: stretch;
  }

  .profile-chip {
    width: 100%;
  }

  .user-detail-drawer {
    top: 12px;
    right: 12px;
    bottom: 12px;
    width: calc(100vw - 24px);
    padding: 18px 18px 14px;
    border-radius: 22px;
  }

  .review-detail-drawer {
    top: 12px;
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: calc(100vw - 24px);
    padding: 18px 18px 14px;
    border-radius: 22px;
  }

  .notice-layer {
    padding: 14px;
  }

  .notice {
    width: min(100%, calc(100vw - 28px));
    padding: 18px;
    border-radius: 20px;
  }
}

@keyframes drawer-in {
  from {
    opacity: 0;
    transform: translateX(18px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes notice-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ---------------------------------------------------------------------------
   Utility classes
   --------------------------------------------------------------------------- */

.col-full { grid-column: 1 / -1; }
.spacer { flex: 1; }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-14 { margin-top: 14px; }
.mt-16 { margin-top: 16px; }
.gap-18 { height: 18px; }
.caption-mb-12 { margin: 0 0 12px; }
.text-left { text-align: left; }
