:root {
  --page-bg: #edf3f2;
  --page-bg-deep: #dce8e4;
  --surface: rgba(252, 255, 254, 0.92);
  --surface-strong: #f2f7f5;
  --surface-dark: #10201d;
  --surface-dark-2: #17302b;
  --text-main: #10201d;
  --text-soft: #4c615b;
  --line-soft: rgba(16, 32, 29, 0.10);
  --shadow-soft: 0 24px 60px rgba(15, 23, 42, 0.08);
  --shadow-strong: 0 34px 80px rgba(15, 23, 42, 0.22);
  --accent: #0f766e;
  --accent-2: #115e59;
  --accent-strong: #0b5c56;
  --accent-soft: rgba(15, 118, 110, 0.14);
  --accent-soft-2: rgba(15, 118, 110, 0.08);
  --warm: #f59e0b;
  --danger: #dc2626;
  --success-soft: rgba(22, 163, 74, 0.10);
  --success-text: #15803d;
  --radius-xl: 1.8rem;
  --radius-lg: 1.35rem;
  --radius-md: 1rem;
}

html {
  font-size: 16px;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 8% 3%, rgba(15, 118, 110, 0.16), transparent 20%),
    radial-gradient(circle at 92% 0%, rgba(245, 158, 11, 0.10), transparent 16%),
    linear-gradient(180deg, var(--page-bg) 0%, #f8fbfa 58%, var(--surface-strong) 100%);
  color: var(--text-main);
  font-family: Bahnschrift, "Segoe UI", "Trebuchet MS", sans-serif;
}

.ambient-orb {
  position: fixed;
  z-index: 0;
  pointer-events: none;
  filter: blur(45px);
  opacity: 0.7;
}

.ambient-orb-a {
  top: 4rem;
  right: 2rem;
  width: 14rem;
  height: 14rem;
  border-radius: 50%;
  background: rgba(15, 118, 110, 0.16);
}

.ambient-orb-b {
  left: 1rem;
  bottom: 5rem;
  width: 12rem;
  height: 12rem;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.10);
}

.app-shell {
  position: relative;
  z-index: 1;
  width: min(1380px, calc(100% - 1.25rem));
  margin-inline: auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(18px);
  background: rgba(16, 32, 29, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 0.85rem 0 0.9rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  color: #fff;
  text-decoration: none;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 0.95rem;
  background: linear-gradient(135deg, var(--accent), #0b5c56);
  color: #f4fbf9;
  font-family: Bahnschrift, "Segoe UI Semibold", sans-serif;
  font-size: 0.92rem;
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.brand-copy {
  display: grid;
  line-height: 1.1;
}

.brand-label {
  font-family: Bahnschrift, "Segoe UI Semibold", sans-serif;
  font-size: 1rem;
  font-weight: 700;
}

.brand-subtitle {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.topnav {
  display: none;
  align-items: center;
  gap: 0.55rem;
}

.nav-link-strong {
  display: inline-flex;
  align-items: center;
  min-height: 2.65rem;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-weight: 700;
  transition: 180ms ease;
}

.nav-link-strong:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.nav-link-strong.is-active {
  color: #ffffff;
  background: rgba(15, 118, 110, 0.24);
}

.auth-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.user-chip {
  display: none;
  align-items: center;
  gap: 0.55rem;
  padding: 0.3rem 0.4rem 0.3rem 0.35rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.10);
  color: #fff;
}

.user-chip-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.95rem;
  height: 1.95rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  font-size: 0.8rem;
  font-weight: 800;
}

.user-chip-name {
  font-size: 0.85rem;
  max-width: 11rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-main {
  padding: 1rem 0 6rem;
}

.mobile-dock {
  position: fixed;
  left: 50%;
  bottom: 0.75rem;
  z-index: 25;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.35rem;
  width: min(94vw, 28rem);
  transform: translateX(-50%);
  padding: 0.45rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.2rem;
  background: rgba(16, 32, 29, 0.94);
  box-shadow: var(--shadow-strong);
}

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

.mobile-dock-single {
  grid-template-columns: 1fr;
  width: min(60vw, 14rem);
}

.dock-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  border-radius: 0.9rem;
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  font-weight: 700;
}

.dock-link.is-active {
  background: rgba(15, 118, 110, 0.24);
  color: #fff;
}

.dock-label {
  font-size: 0.92rem;
}

.hero-shell {
  padding: 1rem 0 1.5rem;
}

.hero-grid {
  display: grid;
  gap: 1rem;
}

.hero-content,
.hero-panel-card,
.page-banner,
.stat-card,
.content-card,
.touch-card,
.feature-panel,
.callout-band {
  border-radius: var(--radius-xl);
}

.hero-content-main {
  position: relative;
  overflow: hidden;
  padding: 1.35rem;
  background:
    linear-gradient(135deg, rgba(16, 32, 29, 0.98), rgba(23, 48, 43, 0.96)),
    var(--surface-dark);
  color: #fff;
  box-shadow: var(--shadow-strong);
}

.hero-content-main::before {
  content: "";
  position: absolute;
  right: -2.5rem;
  top: -2rem;
  width: 10rem;
  height: 10rem;
  border-radius: 2rem;
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.24), rgba(255, 255, 255, 0.03));
  transform: rotate(20deg);
}

.hero-panel {
  display: flex;
}

.hero-panel-card {
  width: 100%;
  padding: 1.15rem;
  background: rgba(252, 255, 254, 0.86);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-soft);
}

.hero-panel-head,
.hero-kicker-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.hero-panel-title,
.hero-inline-note {
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-panel-title {
  color: var(--text-main);
}

.hero-inline-note,
.hero-panel-status {
  color: rgba(255, 255, 255, 0.74);
}

.hero-panel-status {
  display: inline-flex;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.12);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

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

.hero-title,
.page-title {
  font-family: Bahnschrift, "Segoe UI Semibold", sans-serif;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.02;
  margin: 0.95rem 0 0.95rem;
  font-weight: 800;
}

.hero-copy,
.page-subtitle,
.section-caption,
.feature-copy,
.card-text {
  font-size: 1rem;
  line-height: 1.65;
}

.hero-copy {
  max-width: 58ch;
  color: rgba(255, 255, 255, 0.84);
}

.page-subtitle,
.section-caption,
.feature-copy,
.card-text {
  color: var(--text-soft);
}

.hero-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-top: 1.35rem;
}

.flow-list {
  margin: 1rem 0 0;
  padding-left: 1.1rem;
  color: #2a3953;
}

.flow-list li + li {
  margin-top: 0.7rem;
}

.page-section {
  padding-top: 1rem;
}

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

.compact-heading {
  margin-bottom: 0.75rem;
}

.section-display {
  margin: 0;
  font-family: Bahnschrift, "Segoe UI Semibold", sans-serif;
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  line-height: 1.1;
}

.page-banner {
  display: grid;
  gap: 1rem;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.page-banner-copy {
  min-width: 0;
}

.field-banner-store-link {
  display: inline-block;
  color: inherit;
  text-decoration: none;
}

.field-banner-store-link:hover .page-title,
.field-banner-store-link:focus-visible .page-title {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.18em;
}

.field-banner-activity,
.field-banner-meta {
  margin: 0;
}

.field-banner-activity {
  font-family: Bahnschrift, "Segoe UI Semibold", sans-serif;
  font-size: clamp(1rem, 2.4vw, 1.45rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
}

.field-banner-meta {
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--text-soft);
}

.store-filter-banner {
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
}

.store-filter-copy {
  min-width: 0;
  flex: 1 1 20rem;
}

.store-activity-toolbar {
  margin-bottom: 1.25rem;
}

.store-activity-filter-switches {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.store-activity-filter-toggle {
  display: inline-flex;
  gap: 0.55rem;
  align-items: center;
  min-height: 2.35rem;
  padding: 0.35rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 800;
}

.store-activity-filter-toggle .form-check {
  min-height: auto;
  margin: 0;
}

.store-activity-filter-toggle .form-check-input {
  float: none;
  margin: 0;
}

.store-activity-table {
  min-width: 980px;
}

.store-activity-row-selected td {
  background: rgba(15, 118, 110, 0.06);
}

.store-activity-status-stack,
.store-activity-chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}

.store-activity-mini-badge {
  min-height: 1.7rem;
  padding: 0.22rem 0.55rem;
  font-size: 0.74rem;
}

.store-activity-note {
  color: #9a5800;
}

.page-banner-actions,
.page-banner-side {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.stats-grid,
.feature-grid,
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 0.9rem;
}

.stat-card,
.content-card,
.touch-card,
.feature-panel,
.callout-band {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-soft);
}

.stat-card {
  padding: 1.05rem 1.1rem;
  background: linear-gradient(180deg, rgba(252, 255, 254, 0.92), rgba(242, 247, 245, 0.96));
}

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

.stat-card-link:hover {
  transform: translateY(-1px);
}

.stat-label {
  display: block;
  color: var(--text-soft);
  font-size: 0.88rem;
  margin-bottom: 0.45rem;
}

.stat-value {
  display: inline-block;
  font-family: Bahnschrift, "Segoe UI Semibold", sans-serif;
  font-size: 2.15rem;
  line-height: 1;
  color: var(--text-main);
}

.content-card,
.feature-panel,
.callout-band {
  padding: 1.2rem;
}

.content-card,
.feature-panel,
.touch-card,
.record-card,
.form-cluster,
.summary-panel,
.danger-shell {
  background: linear-gradient(180deg, rgba(252, 255, 254, 0.92), rgba(242, 247, 245, 0.98));
}

.section-title,
.feature-title {
  font-family: Bahnschrift, "Segoe UI Semibold", sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.feature-badge {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong, #115e59);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.85rem;
}

.feature-list {
  padding-left: 1.2rem;
}

.feature-list li + li {
  margin-top: 0.55rem;
}

.callout-band {
  background:
    linear-gradient(135deg, rgba(16, 32, 29, 0.96), rgba(23, 48, 43, 0.94)),
    var(--surface-dark);
  color: #fff;
}

.callout-band .section-caption {
  color: rgba(255, 255, 255, 0.74);
}

.mobile-card-stack {
  display: grid;
  gap: 0.95rem;
}

.touch-card {
  padding: 1rem;
}

.activity-card {
  position: relative;
  overflow: hidden;
}

.activity-card::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 5.5rem;
  height: 5.5rem;
  background: radial-gradient(circle, rgba(15, 118, 110, 0.14), transparent 70%);
}

.activity-card-top,
.activity-card-copy {
  display: flex;
  gap: 0.9rem;
  justify-content: space-between;
  align-items: start;
}

.activity-card-copy {
  min-width: 0;
  justify-content: start;
}

.activity-icon-slot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 0.95rem;
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.12), rgba(245, 158, 11, 0.10));
  color: var(--text-main);
  font-family: Bahnschrift, "Segoe UI Semibold", sans-serif;
  font-weight: 800;
}

.activity-subline {
  display: inline-block;
  color: var(--text-soft);
  font-size: 0.85rem;
}

.card-title {
  font-family: Bahnschrift, "Segoe UI Semibold", sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  margin: 0 0 0.15rem;
}

.card-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  color: var(--text-soft);
  font-weight: 600;
  font-size: 0.95rem;
}

.status-pill,
.legend-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}

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

.field-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1rem 0 1.15rem;
}

.legend-pill {
  background: rgba(16, 32, 29, 0.06);
  color: var(--text-main);
}

.metrics-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 0.65rem;
}

.metric-box,
.micro-stat {
  padding: 0.85rem 0.95rem;
  border-radius: 1rem;
  background: rgba(16, 32, 29, 0.05);
}

.metric-caption,
.micro-stat-label {
  display: block;
  color: var(--text-soft);
  font-size: 0.82rem;
  margin-bottom: 0.2rem;
}

.metric-number,
.micro-stat-value {
  font-family: Bahnschrift, "Segoe UI Semibold", sans-serif;
  font-size: 1.55rem;
  line-height: 1;
}

.field-checklist {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.9rem;
}

.field-checklist span {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.10);
  color: var(--accent-strong);
  font-size: 0.8rem;
  font-weight: 700;
}

.activity-actions {
  margin-top: 0.95rem;
}

.empty-state-card {
  border-style: dashed;
}

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

.btn-primary:hover,
.btn-primary:focus {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
  color: #ffffff;
}

.btn-outline-primary {
  color: var(--accent-strong);
  border-color: rgba(16, 32, 29, 0.14);
  background: rgba(255, 255, 255, 0.65);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  background: var(--surface-dark);
  border-color: var(--surface-dark);
  color: #ffffff;
}

.btn-outline-light,
.btn-outline-light-strong {
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
}

.btn-outline-light:hover,
.btn-outline-light:focus,
.btn-outline-light-strong:hover,
.btn-outline-light-strong:focus {
  background: rgba(255, 255, 255, 0.10);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.42);
}

.btn-lg {
  min-height: 3.25rem;
  border-radius: 1rem;
  font-weight: 700;
}

.btn-sm {
  border-radius: 0.85rem;
  font-weight: 700;
}

@media (min-width: 640px) {
  .stats-grid,
  .feature-grid,
  .dashboard-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  .app-shell {
    width: min(1120px, calc(100% - 2rem));
  }

  .topnav {
    display: inline-flex;
  }

  .user-chip {
    display: inline-flex;
  }

  .hero-grid {
    grid-template-columns: 1.55fr 0.95fr;
    align-items: stretch;
  }

  .hero-content-main,
  .hero-panel-card,
  .page-banner {
    padding: 1.65rem;
  }

  .hero-actions {
    grid-template-columns: repeat(2, minmax(0, max-content));
  }

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

  .page-banner {
    grid-template-columns: 1.4fr auto;
    align-items: center;
  }

}

@media (min-width: 992px) {
  .feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .mobile-dock {
    display: none;
  }

  .app-main {
    padding-bottom: 3rem;
  }
}

.app-main h1,
.app-main h2,
.app-main h3 {
  color: var(--text-main);
}

.app-main > h1:first-child {
  font-family: Bahnschrift, "Segoe UI Semibold", sans-serif;
  font-size: clamp(2rem, 4vw, 2.7rem);
  margin-bottom: 1.1rem;
}

.app-main .row {
  --bs-gutter-x: 1rem;
  --bs-gutter-y: 1rem;
}

.app-main .col-md-4 > section,
.app-main .col-md-6 > section,
.app-main .col-md-offset-2 > section {
  height: 100%;
  padding: 1.25rem;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-soft);
}

.app-main form#account h2,
.app-main .col-md-6 h3 {
  font-family: Bahnschrift, "Segoe UI Semibold", sans-serif;
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
}

.app-main hr {
  border-color: rgba(15, 23, 42, 0.08);
  opacity: 1;
}

.app-main .form-floating > .form-control,
.app-main .form-control {
  min-height: 3.5rem;
  border-radius: 1rem;
  border: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow: none;
}

.app-main .form-floating > label {
  color: #6b7280;
}

.app-main .form-control:focus {
  border-color: rgba(249, 115, 22, 0.38);
  box-shadow: 0 0 0 0.2rem rgba(249, 115, 22, 0.12);
}

.app-main .checkbox {
  margin-top: 0.25rem;
}

.app-main .checkbox .form-check-input {
  margin-right: 0.45rem;
}

.app-main #login-submit {
  margin-top: 0.4rem;
}

.app-main a {
  color: #b45309;
}

.app-main a:hover {
  color: #92400e;
}

.admin-page {
  padding-top: 0.35rem;
}

.compact-banner {
  gap: 1rem;
}

.admin-section-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.admin-section-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 3.2rem;
  padding: 0.8rem 1rem;
  border: 1px solid rgba(17, 32, 56, 0.08);
  border-radius: 1.2rem;
  background: rgba(252, 255, 254, 0.78);
  color: var(--text-main);
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
  transition: 180ms ease;
}

.admin-section-link:hover {
  color: var(--text-main);
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.08);
}

.admin-section-link.is-active {
  border-color: rgba(15, 118, 110, 0.20);
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.18), rgba(255, 255, 255, 0.94));
  color: var(--accent-strong);
}

.admin-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.empty-state {
  padding: 1.15rem 1.2rem;
  border: 1px dashed rgba(17, 32, 56, 0.12);
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.55);
  color: var(--text-soft);
}

.record-grid {
  display: grid;
  gap: 1rem;
}

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

.record-card {
  display: grid;
  gap: 1rem;
  padding: 1.15rem;
  border: 1px solid rgba(17, 32, 56, 0.08);
  border-radius: 1.4rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(250, 252, 255, 0.9));
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.06);
}

.record-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.record-kicker-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.record-title {
  margin: 0;
  font-family: Bahnschrift, "Segoe UI Semibold", sans-serif;
  font-size: 1.18rem;
}

.record-subtitle,
.record-copy {
  color: var(--text-soft);
}

.record-copy {
  margin: 0;
}

.record-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.meta-pill,
.status-pill,
.metric-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
}

.metric-chip {
  background: rgba(16, 32, 29, 0.08);
  color: var(--text-main);
}

.meta-pill {
  background: rgba(16, 32, 29, 0.06);
  color: var(--text-main);
}

.meta-pill.is-success,
.status-pill.is-active {
  background: rgba(15, 118, 110, 0.12);
  color: #0f766e;
}

.meta-pill.is-warning,
.status-pill.is-muted,
.status-pill.is-warning {
  background: rgba(245, 158, 11, 0.12);
  color: #a16207;
}

.work-progress-led {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.work-progress-led-dot {
  width: 0.72rem;
  height: 0.72rem;
  flex: 0 0 0.72rem;
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-radius: 50%;
}

.work-progress-led.is-not-started .work-progress-led-dot {
  background: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.14), 0 0 10px rgba(220, 38, 38, 0.32);
}

.work-progress-led.is-in-progress .work-progress-led-dot {
  background: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.16), 0 0 10px rgba(245, 158, 11, 0.32);
}

.work-progress-led.is-completed .work-progress-led-dot {
  background: #16a34a;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.14), 0 0 10px rgba(22, 163, 74, 0.30);
}

.work-progress-led.is-blocked .work-progress-led-dot {
  background: #111827;
  box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.16), 0 0 10px rgba(17, 24, 39, 0.30);
}

.status-pill.is-danger {
  background: rgba(220, 38, 38, 0.12);
  color: #b91c1c;
}

.record-actions,
.feature-actions,
.form-actions,
.stack-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.page-header-actions,
.page-banner-actions,
.record-actions,
.feature-actions,
.form-actions,
.stack-actions,
.table-actions {
  align-items: center;
}

.page-header-actions .btn,
.page-banner-actions .btn,
.record-actions .btn,
.feature-actions .btn,
.form-actions .btn,
.stack-actions .btn,
.table-actions .btn {
  flex: 0 0 auto;
  width: auto;
}

.form-actions form {
  margin: 0;
}

.form-actions label.btn {
  cursor: pointer;
}

.form-actions-end {
  justify-content: flex-end;
}

.placeholder-preview {
  display: grid;
  gap: 0.9rem;
}

.placeholder-preview-image {
  width: 100%;
  max-width: 15rem;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 1rem;
  border: 1px solid var(--line-soft);
  background: rgba(16, 32, 29, 0.05);
}

.placeholder-toggle {
  margin: 0;
}

.detail-add-panel {
  display: grid;
  gap: 0.85rem;
}

.detail-add-panel > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  list-style: none;
  cursor: pointer;
}

.detail-add-panel > summary::-webkit-details-marker {
  display: none;
}

.detail-table-header .btn {
  pointer-events: none;
}

.inline-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.75rem;
}

.inline-checks .form-check {
  min-height: auto;
  margin: 0;
}

.inline-checks .form-check-input {
  float: none;
  margin: 0 0.3rem 0 0;
}

.field-photo-picker {
  display: grid;
  gap: 0.9rem;
}

.field-photo-picker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.field-photo-picker-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.field-photo-shell {
  display: grid;
  place-items: center;
  min-height: 13rem;
  padding: 1rem;
  border: 1px dashed rgba(15, 118, 110, 0.28);
  border-radius: 1.2rem;
  background: linear-gradient(180deg, rgba(247, 250, 249, 0.98), rgba(236, 243, 241, 0.94));
}

.field-photo-shell.is-filled {
  border-style: solid;
  border-color: rgba(15, 118, 110, 0.18);
}

.field-photo-link {
  display: inline-flex;
  max-width: 100%;
  color: inherit;
  text-decoration: none;
}

.field-photo-link:focus-visible {
  outline: 2px solid rgba(15, 118, 110, 0.55);
  outline-offset: 0.25rem;
  border-radius: 1rem;
}

.field-photo-preview {
  width: 100%;
  max-width: 18rem;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 1rem;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.10);
}

.field-photo-empty {
  max-width: 24rem;
  color: var(--text-soft);
  text-align: center;
  line-height: 1.5;
}

.camera-capture-open {
  overflow: hidden;
}

.camera-capture-panel {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.camera-capture-panel.d-none {
  display: none;
}

.camera-capture-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 32, 29, 0.72);
}

.camera-capture-dialog {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1rem;
  width: min(42rem, 100%);
  max-height: min(44rem, calc(100vh - 2rem));
  overflow: auto;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 1.2rem;
  background: var(--surface);
  box-shadow: var(--shadow-strong);
}

.camera-capture-video {
  width: 100%;
  max-height: 65vh;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 1rem;
  background: rgba(16, 32, 29, 0.12);
}

.camera-capture-dialog .admin-alert {
  margin: 0;
}

.photo-requirement-card {
  gap: 1rem;
}

.photo-requirements-edit-section {
  display: grid;
  gap: 0.75rem;
}

.photo-requirements-edit-table {
  min-width: 760px;
}

.photo-requirements-edit-table [data-photo-requirement-editor-row] td {
  padding: 0;
  background: rgba(245, 249, 248, 0.78);
}

.photo-requirements-edit-table [data-photo-requirement-editor-row]:hover {
  background: transparent;
}

.photo-requirement-inline-editor {
  display: grid;
  gap: 1rem;
  padding: 1rem;
  border-bottom: 1px solid rgba(17, 32, 56, 0.08);
}

.photo-requirement-inline-editor .placeholder-preview {
  margin: 0;
}

.photo-requirements-edit-table .table-actions-cell {
  width: 1%;
  white-space: nowrap;
}

.inline-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
}

.admin-form-shell {
  width: min(72rem, 100%);
  margin-inline: auto;
  padding: 1.1rem;
}

.store-edit-shell {
  width: min(72rem, 100%);
  margin-inline: auto;
}

.admin-form-shell .admin-form-grid,
.store-edit-shell .admin-form-grid {
  gap: 1rem;
}

.admin-form-shell .form-grid,
.store-edit-shell .form-grid {
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

.admin-form-shell .form-cluster,
.admin-form-shell .summary-panel,
.store-edit-shell .form-cluster,
.store-edit-shell .summary-panel {
  display: grid;
  gap: 1rem;
  border-radius: 0.95rem;
  box-shadow: none;
}

.admin-form-shell .cluster-heading,
.store-edit-shell .cluster-heading {
  margin-bottom: 0;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(17, 32, 56, 0.08);
}

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

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

.store-form-edit {
  gap: 1rem;
}

.store-form-edit .store-form-sections {
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

.store-form-edit .form-cluster {
  display: grid;
  gap: 1rem;
  padding: 1.05rem;
}

.store-form-edit .cluster-heading {
  margin-bottom: 0;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(17, 32, 56, 0.08);
}

.store-form-edit .cluster-copy {
  max-width: 68ch;
}

.store-form-edit .store-form-actions {
  justify-content: flex-end;
  padding-top: 0.25rem;
}

.form-cluster,
.summary-panel,
.danger-shell {
  border: 1px solid rgba(17, 32, 56, 0.08);
  border-radius: 1.45rem;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.05);
}

.form-cluster,
.summary-panel {
  padding: 1.1rem;
}

.danger-shell {
  padding: 1.3rem;
}

.cluster-heading,
.danger-hero {
  margin-bottom: 1rem;
}

.cluster-title,
.summary-title {
  margin: 0;
  font-family: Bahnschrift, "Segoe UI Semibold", sans-serif;
  font-size: 1.08rem;
}

.cluster-copy {
  margin: 0.45rem 0 0;
  color: var(--text-soft);
}

.field-stack {
  display: grid;
  gap: 0.45rem;
}

.searchable-select {
  position: relative;
}

.searchable-select-menu {
  position: absolute;
  z-index: 60;
  top: calc(100% + 0.35rem);
  left: 0;
  right: 0;
  display: grid;
  gap: 0.2rem;
  max-height: min(18rem, 48vh);
  overflow-y: auto;
  padding: 0.35rem;
  border: 1px solid rgba(17, 32, 56, 0.14);
  border-radius: 0.8rem;
  background: var(--surface);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.14);
}

.searchable-select-menu[hidden] {
  display: none;
}

.searchable-select-option {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 0;
  border-radius: 0.6rem;
  background: transparent;
  color: var(--text-main);
  font: inherit;
  text-align: left;
  overflow-wrap: anywhere;
}

.searchable-select-option:hover,
.searchable-select-option:focus,
.searchable-select-option.is-active {
  background: rgba(15, 118, 110, 0.1);
  outline: none;
}

.searchable-select-empty {
  padding: 0.7rem 0.75rem;
  color: var(--text-soft);
}

.split-grid {
  display: grid;
  gap: 0.9rem;
}

.toggle-row {
  margin-top: 0.25rem;
}

.toggle-card {
  display: flex;
  gap: 0.85rem;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(17, 32, 56, 0.08);
  border-radius: 1.15rem;
  background: rgba(255, 255, 255, 0.7);
  cursor: pointer;
}

.toggle-card input {
  margin-top: 0.15rem;
}

.toggle-card small,
.form-note {
  color: var(--text-soft);
}

.assignment-list {
  display: grid;
  gap: 0.75rem;
}

.assignment-transfer {
  display: grid;
  gap: 1rem;
}

.assignment-transfer-layout {
  display: grid;
  gap: 0.9rem;
}

.assignment-panel {
  border: 1px solid rgba(17, 32, 56, 0.14);
  border-radius: 1.2rem;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  overflow: hidden;
}

.assignment-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.8rem 0.95rem;
  border-bottom: 1px solid rgba(17, 32, 56, 0.10);
  background: linear-gradient(180deg, rgba(247, 250, 249, 0.98), rgba(236, 243, 241, 0.96));
  font-size: 0.88rem;
  font-weight: 800;
}

.assignment-panel-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  min-height: 2rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(16, 32, 29, 0.08);
  color: var(--text-main);
  font-size: 0.8rem;
  font-weight: 800;
}

.assignment-panel-body {
  min-height: 18rem;
  max-height: 24rem;
  overflow: auto;
  padding: 0.35rem;
  display: grid;
  align-content: start;
  gap: 0.35rem;
}

.assignment-transfer-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
}

.assignment-transfer-action {
  min-width: 9rem;
  min-height: 2.85rem;
  border: 1px solid rgba(17, 32, 56, 0.14);
  border-radius: 1rem;
  background: #ffffff;
  color: var(--text-main);
  font-weight: 800;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.05);
}

.assignment-transfer-action:hover:not(:disabled),
.assignment-transfer-action:focus-visible:not(:disabled) {
  background: rgba(15, 118, 110, 0.08);
  border-color: rgba(15, 118, 110, 0.22);
  color: var(--accent-strong);
}

.assignment-transfer-action:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}

.assignment-transfer-item {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid transparent;
  border-radius: 0.95rem;
  background: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  transition: 160ms ease;
}

.assignment-transfer-item:hover {
  border-color: rgba(15, 118, 110, 0.18);
  background: rgba(15, 118, 110, 0.05);
}

.assignment-transfer-item.is-picked {
  border-color: rgba(15, 118, 110, 0.28);
  background: rgba(15, 118, 110, 0.10);
}

.assignment-transfer-pick {
  margin-top: 0.2rem;
  flex: 0 0 auto;
}

.assignment-transfer-copy {
  display: grid;
  gap: 0.18rem;
  min-width: 0;
  line-height: 1.35;
}

.assignment-transfer-copy strong {
  color: var(--text-main);
  font-size: 0.96rem;
}

.assignment-transfer-copy small {
  color: var(--text-soft);
  font-size: 0.82rem;
}

.assignment-transfer-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100%;
  padding: 1.25rem;
  border: 1px dashed rgba(17, 32, 56, 0.14);
  border-radius: 1rem;
  color: var(--text-soft);
  text-align: center;
  background: rgba(248, 251, 250, 0.95);
  font-weight: 700;
}

.assignment-role-grid {
  display: grid;
  gap: 1rem;
}

.assignment-role-card {
  display: grid;
  gap: 0.9rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(17, 32, 56, 0.12);
  border-radius: 1.15rem;
  background: rgba(255, 255, 255, 0.88);
}

.assignment-role-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.assignment-option {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(17, 32, 56, 0.08);
  border-radius: 1.15rem;
  background: rgba(255, 255, 255, 0.72);
  cursor: pointer;
}

.assignment-option input {
  margin-top: 0.2rem;
}

.assignment-option span {
  color: var(--text-main);
  line-height: 1.45;
}

.summary-grid {
  display: grid;
  gap: 0.9rem;
}

.summary-card {
  padding: 1rem;
  border-radius: 1.15rem;
  background: rgba(16, 32, 29, 0.05);
}

.summary-card-link {
  color: inherit;
  text-decoration: none;
  transition: background 160ms ease, transform 160ms ease;
}

.summary-card-link:hover {
  background: rgba(15, 118, 110, 0.09);
  color: inherit;
  transform: translateY(-1px);
}

.summary-label {
  display: block;
  color: var(--text-soft);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.summary-value {
  display: block;
  margin-top: 0.35rem;
  font-size: 1.1rem;
}

.summary-map-link {
  margin-top: 0.45rem;
}

.summary-map-coordinates {
  display: block;
  margin-top: 0.4rem;
  color: var(--text-soft);
  font-size: 0.84rem;
  font-weight: 700;
}

.admin-alert {
  display: flex;
  gap: 0.85rem;
  padding: 1rem 1.05rem;
  border-radius: 1.2rem;
  border: 1px solid transparent;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.05);
}

.admin-alert-mark {
  flex: 0 0 auto;
  width: 0.75rem;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.7;
}

.admin-alert.is-success {
  background: rgba(15, 118, 110, 0.1);
  border-color: rgba(15, 118, 110, 0.14);
  color: #0f766e;
}

.admin-alert.is-warning {
  background: rgba(217, 119, 6, 0.1);
  border-color: rgba(217, 119, 6, 0.14);
  color: #9a5800;
}

.admin-alert.is-danger {
  background: rgba(220, 38, 38, 0.09);
  border-color: rgba(220, 38, 38, 0.14);
  color: #b91c1c;
}

.feature-panel-link {
  position: relative;
  overflow: hidden;
}

.feature-panel-link::after {
  content: "";
  position: absolute;
  inset: auto -2rem -2rem auto;
  width: 7rem;
  height: 7rem;
  border-radius: 50%;
  background: rgba(255, 176, 32, 0.14);
  filter: blur(4px);
}

.validation-summary-errors {
  margin: 0;
  padding: 0.95rem 1rem 0.95rem 2rem;
  border-radius: 1rem;
  background: rgba(220, 38, 38, 0.08);
  color: #b91c1c;
}

.validation-summary-errors ul {
  margin: 0;
}

/* UI semplificata: rimuove testi di supporto e elementi ornamentali non essenziali */
.ambient-orb,
.brand-subtitle,
.eyebrow,
.page-subtitle,
.section-caption,
.hero-copy,
.feature-copy,
.cluster-copy,
.form-note,
.record-copy,
.flow-list,
.field-legend,
.toggle-card small,
.empty-state p,
.empty-state .mb-3,
.micro-stat-label {
  display: none !important;
}

.page-banner,
.hero-content-main,
.hero-panel-card,
.content-card,
.feature-panel,
.callout-band,
.form-cluster,
.summary-panel,
.danger-shell,
.record-card,
.touch-card {
  padding-top: 1rem;
}

.page-title,
.hero-title {
  margin: 0;
}

.section-heading,
.cluster-heading,
.danger-hero,
.record-card {
  margin-bottom: 0;
}

.empty-state {
  color: var(--text-main);
}

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

.page-header-actions {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.page-header-simple .page-title {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
}

.toolbar-card {
  padding: 1rem;
}

.table-toolbar {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.table-toolbar-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
}

.table-toolbar-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
}

.table-toolbar-row .btn,
.table-toolbar-row .table-chip-link,
.table-actions .btn {
  white-space: nowrap;
}

.table-toolbar-toggle {
  display: inline-flex;
  gap: 0.65rem;
  align-items: center;
  min-height: 2.5rem;
  padding: 0.45rem 0.8rem;
  border: 1px solid var(--line-soft);
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.78);
  color: var(--text-main);
  font-size: 0.86rem;
  font-weight: 800;
  cursor: pointer;
}

.table-toolbar-toggle .form-check {
  min-height: auto;
  margin: 0;
}

.table-toolbar-toggle .form-check-input {
  float: none;
  margin: 0;
}

.assignment-dialog {
  width: min(46rem, calc(100vw - 2rem));
  max-height: min(44rem, calc(100vh - 2rem));
  padding: 1.15rem;
  border: 1px solid var(--line-soft);
  border-radius: 1.25rem;
  background: #f8fbfa;
  box-shadow: var(--shadow-strong);
  color: var(--text-main);
}

.assignment-dialog[open] {
  display: grid;
  gap: 1rem;
}

.assignment-dialog::backdrop {
  background: rgba(16, 32, 29, 0.58);
  backdrop-filter: blur(4px);
}

.assignment-dialog-head {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  justify-content: space-between;
}

.assignment-dialog-table {
  max-height: min(28rem, 55vh);
}

.assignment-dialog-table .data-table {
  min-width: 36rem;
}

.table-search {
  min-width: min(100%, 20rem);
  flex: 1 1 18rem;
}

.table-chip-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 700;
  background: rgba(15, 118, 110, 0.1);
  color: var(--accent-strong);
}

.table-chip-link:hover {
  background: rgba(15, 118, 110, 0.18);
  color: var(--accent-strong);
}

.table-chip-button {
  border: 0;
  font: inherit;
  cursor: pointer;
}

.ops-selected-store-card {
  margin-bottom: 1.25rem;
  padding: 1.1rem;
  border: 1px solid rgba(17, 32, 56, 0.08);
  border-radius: 1.2rem;
  background: rgba(245, 249, 248, 0.72);
}

.field-store-card[data-row-href] {
  cursor: pointer;
}

.field-store-card[data-row-href]:hover {
  border-color: rgba(15, 118, 110, 0.24);
  background: rgba(245, 250, 249, 0.96);
}

.field-store-card-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.45rem;
  max-width: 15rem;
}

.table-shell {
  overflow: auto;
  border: 1px solid rgba(17, 32, 56, 0.08);
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.9);
}

.data-table {
  width: 100%;
  min-width: 900px;
  border-collapse: separate;
  border-spacing: 0;
}

.data-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 0.95rem 1rem;
  background: #f8fbfa;
  border-bottom: 1px solid rgba(17, 32, 56, 0.08);
  color: var(--text-soft);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.data-table thead th.is-sortable {
  padding-right: 2.35rem;
  cursor: pointer;
  user-select: none;
}

.data-table thead th.is-sortable::after {
  position: absolute;
  right: 0.9rem;
  color: rgba(17, 32, 56, 0.36);
  content: "\2195";
  font-size: 0.85rem;
}

.data-table thead th.is-sortable[aria-sort="ascending"]::after {
  color: var(--accent);
  content: "\2191";
}

.data-table thead th.is-sortable[aria-sort="descending"]::after {
  color: var(--accent);
  content: "\2193";
}

.data-table thead th.is-sortable:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -3px;
}

.data-table tbody td {
  padding: 0.95rem 1rem;
  border-bottom: 1px solid rgba(17, 32, 56, 0.08);
  vertical-align: middle;
  color: var(--text-main);
}

.data-table tbody tr:hover {
  background: rgba(15, 118, 110, 0.04);
}

.data-table tbody tr.table-row-link {
  cursor: pointer;
}

.data-table tbody tr.table-row-link:hover {
  background: rgba(15, 118, 110, 0.08);
}

.data-table tbody tr:last-child td {
  border-bottom: 0;
}

@media (max-width: 767.98px) {
  .store-activity-table,
  .work-session-elements-table {
    min-width: 0;
  }

  .store-activity-table thead,
  .work-session-elements-table thead {
    display: none;
  }

  .store-activity-table,
  .store-activity-table tbody,
  .store-activity-table tr,
  .store-activity-table td,
  .work-session-elements-table,
  .work-session-elements-table tbody,
  .work-session-elements-table tr,
  .work-session-elements-table td {
    display: block;
    width: 100%;
  }

  .store-activity-table tbody tr,
  .work-session-elements-table tbody tr {
    padding: 0.9rem;
    border-bottom: 1px solid rgba(17, 32, 56, 0.08);
  }

  .store-activity-table tbody tr:last-child,
  .work-session-elements-table tbody tr:last-child {
    border-bottom: 0;
  }

  .store-activity-table tbody td,
  .work-session-elements-table tbody td {
    padding: 0.45rem 0;
    border-bottom: 0;
  }

  .store-activity-table tbody td + td::before,
  .work-session-elements-table tbody td + td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 0.25rem;
    color: var(--text-soft);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  .store-activity-table .table-title-cell,
  .work-session-elements-table .table-title-cell {
    min-width: 0;
  }
}

.details-table {
  min-width: 100%;
}

.details-table tbody th {
  width: 15rem;
  padding: 0.95rem 1rem;
  border-bottom: 1px solid rgba(17, 32, 56, 0.08);
  background: #f8fbfa;
  color: var(--text-soft);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.details-table tbody td {
  min-width: 10rem;
}

.table-title-cell {
  min-width: 14rem;
}

.table-title-main {
  font-weight: 700;
}

.table-title-sub {
  margin-top: 0.2rem;
  color: var(--text-soft);
  font-size: 0.88rem;
}

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

.table-actions .btn {
  min-height: 2.35rem;
}

.table-actions-cell form {
  margin: 0;
}

.table-actions-cell {
  vertical-align: top;
}

.table-led-cell {
  width: 1%;
  white-space: nowrap;
  text-align: right;
  vertical-align: middle;
}

.attachment-note-editor {
  display: grid;
  gap: 0.65rem;
  min-width: min(22rem, 70vw);
  margin-bottom: 0.55rem;
}

.attachment-note-editor summary {
  width: max-content;
  list-style: none;
  cursor: pointer;
}

.attachment-note-editor summary::-webkit-details-marker {
  display: none;
}

.attachment-note-form {
  display: grid;
  gap: 0.65rem;
  padding: 0.85rem;
  border: 1px solid var(--line-soft);
  border-radius: 0.7rem;
  background: rgba(255, 255, 255, 0.72);
}

.document-picker {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
}

.document-picker-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  opacity: 0;
}

.document-picker-name {
  color: var(--text-soft);
  font-size: 0.92rem;
}

.dashboard-lookup-card {
  padding: 1rem;
  margin-bottom: 1rem;
}

.dashboard-lookup {
  position: relative;
}

.dashboard-lookup-hint {
  margin-top: 0.35rem;
  color: var(--text-soft);
  font-size: 0.85rem;
}

.dashboard-lookup-dropdown {
  position: absolute;
  top: calc(100% + 0.45rem);
  left: 0;
  right: 0;
  z-index: 12;
  display: grid;
  gap: 0.35rem;
  padding: 0.45rem;
  border: 1px solid rgba(17, 32, 56, 0.10);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
}

.dashboard-lookup-item,
.dashboard-lookup-empty {
  padding: 0.8rem 0.9rem;
  border-radius: 0.85rem;
}

.dashboard-lookup-item {
  display: grid;
  gap: 0.15rem;
  text-decoration: none;
  color: var(--text-main);
}

.dashboard-lookup-item:hover {
  background: rgba(15, 118, 110, 0.08);
  color: var(--text-main);
}

.dashboard-lookup-item-title {
  font-weight: 700;
}

.dashboard-lookup-item-meta,
.dashboard-lookup-empty {
  color: var(--text-soft);
  font-size: 0.86rem;
}

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

.stat-card-link.is-selected {
  outline: 2px solid rgba(15, 118, 110, 0.25);
  background: rgba(15, 118, 110, 0.08);
}

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

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

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

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

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

  .assignment-transfer-layout {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: stretch;
  }

  .assignment-transfer-actions {
    flex-direction: column;
    justify-content: center;
  }

  .dashboard-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 18rem));
  }
}

@media (min-width: 992px) {
  .record-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

.ops-hero {
  display: grid;
  gap: 1rem;
  margin-bottom: 1rem;
}

.ops-hero-main,
.ops-hero-side {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
}

.ops-hero-main {
  padding: 1.35rem;
  background:
    linear-gradient(140deg, rgba(16, 32, 29, 0.98), rgba(23, 48, 43, 0.96)),
    var(--surface-dark);
  color: #ffffff;
  box-shadow: var(--shadow-strong);
}

.ops-hero-main::after {
  content: "";
  position: absolute;
  inset: auto -3rem -3rem auto;
  width: 11rem;
  height: 11rem;
  border-radius: 2.5rem;
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.28), rgba(255, 255, 255, 0.04));
  transform: rotate(18deg);
}

.ops-hero-side {
  padding: 1.15rem;
  border: 1px solid var(--line-soft);
  background: linear-gradient(180deg, rgba(252, 255, 254, 0.94), rgba(242, 247, 245, 0.98));
  box-shadow: var(--shadow-soft);
}

.ops-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 0.9rem;
}

.ops-badge {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.10);
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.ops-badge.is-dark {
  background: rgba(16, 32, 29, 0.08);
  color: var(--text-main);
}

.ops-title {
  margin: 0;
}

.ops-copy {
  margin: 0.8rem 0 0;
  font-size: 0.98rem;
  line-height: 1.6;
}

.ops-hero-main .ops-copy {
  max-width: 62ch;
  color: rgba(255, 255, 255, 0.82);
}

.ops-hero-side .ops-copy,
.ops-copy.is-dark {
  color: var(--text-soft);
}

.ops-inline-stats,
.ops-filter-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.ops-inline-stats {
  margin-top: 1rem;
}

.ops-kpi-grid,
.ops-signal-grid,
.ops-two-column,
.ops-grid-two {
  display: grid;
  gap: 0.9rem;
}

.ops-kpi-card,
.ops-signal-card,
.ops-progress-card {
  border: 1px solid var(--line-soft);
  border-radius: 1.3rem;
  background: linear-gradient(180deg, rgba(252, 255, 254, 0.92), rgba(242, 247, 245, 0.98));
  box-shadow: var(--shadow-soft);
}

.ops-kpi-card {
  display: grid;
  gap: 0.35rem;
  padding: 1rem 1.05rem;
  color: var(--text-main);
  text-decoration: none;
}

.ops-kpi-card.is-link:hover {
  transform: translateY(-1px);
  color: var(--text-main);
}

.ops-kpi-card.is-selected {
  border-color: rgba(15, 118, 110, 0.24);
  background: linear-gradient(180deg, rgba(227, 248, 245, 0.96), rgba(242, 247, 245, 0.98));
}

.ops-kpi-label {
  color: var(--text-soft);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ops-kpi-value {
  font-family: Bahnschrift, "Segoe UI Semibold", sans-serif;
  font-size: 2rem;
  line-height: 1;
}

.ops-kpi-note {
  color: var(--text-soft);
  font-size: 0.88rem;
  line-height: 1.45;
}

.ops-section-card {
  padding: 1.1rem;
}

.ops-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.ops-section-title,
.ops-panel-title {
  margin: 0;
  font-family: Bahnschrift, "Segoe UI Semibold", sans-serif;
  font-weight: 800;
}

.ops-section-title {
  font-size: 1.25rem;
}

.ops-panel-title {
  font-size: 1rem;
}

.ops-panel-copy {
  margin: 0.35rem 0 0;
  color: var(--text-soft);
  font-size: 0.9rem;
  line-height: 1.55;
}

.ops-progress-grid {
  display: grid;
  gap: 0.85rem;
}

.ops-progress-card,
.ops-signal-card {
  padding: 1rem;
}

.ops-progress-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
}

.ops-progress-label {
  color: var(--text-soft);
  font-size: 0.82rem;
  font-weight: 700;
}

.ops-progress-value {
  font-family: Bahnschrift, "Segoe UI Semibold", sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
}

.ops-progress-track {
  height: 0.6rem;
  border-radius: 999px;
  background: rgba(16, 32, 29, 0.08);
  overflow: hidden;
}

.ops-progress-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), #2dd4bf);
}

.ops-progress-note {
  margin: 0.55rem 0 0;
  color: var(--text-soft);
  font-size: 0.86rem;
}

.ops-switch-grid {
  display: grid;
  gap: 0.75rem;
}

.ops-switch-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line-soft);
  border-radius: 1.1rem;
  background: rgba(16, 32, 29, 0.04);
  cursor: pointer;
}

.ops-switch-card .form-check {
  margin: 0;
  min-height: auto;
}

.ops-switch-card .form-check-input {
  margin: 0;
  float: none;
}

.ops-switch-title,
.ops-switch-copy {
  display: block;
}

.ops-switch-title {
  color: var(--text-main);
  font-size: 0.9rem;
  font-weight: 800;
}

.ops-switch-copy {
  margin-top: 0.2rem;
  color: var(--text-soft);
  font-size: 0.84rem;
  line-height: 1.45;
}

.ops-signal-card {
  display: grid;
  gap: 0.35rem;
  background: rgba(16, 32, 29, 0.04);
}

.ops-signal-value {
  font-family: Bahnschrift, "Segoe UI Semibold", sans-serif;
  font-size: 1.35rem;
  line-height: 1;
}

.ops-signal-label {
  color: var(--text-soft);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.ops-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1rem;
}

@media (min-width: 640px) {
  .ops-kpi-grid,
  .ops-signal-grid,
  .ops-grid-two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (min-width: 768px) {
  .ops-hero {
    grid-template-columns: minmax(0, 1.45fr) minmax(20rem, 0.95fr);
    align-items: stretch;
  }

  .ops-hero-main {
    padding: 1.6rem;
  }

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

@media (min-width: 992px) {
  .ops-kpi-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

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

.code-block {
  margin: 0;
  padding: 1rem 1.15rem;
  border-radius: 18px;
  background: #f4f7f6;
  border: 1px solid rgba(14, 65, 55, 0.12);
  white-space: pre-wrap;
  word-break: break-word;
  font-family: "Cascadia Code", "Consolas", monospace;
  font-size: 0.9rem;
  line-height: 1.5;
}
