@font-face {
  font-family: "News Gothic Custom";
  src: url("../fonts/News_Gothic_Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
    --page-bg: #eef0f3;
    --page-bg-deep: #d9dde3;
    --surface: rgba(253, 254, 255, 0.94);
    --surface-strong: #f3f5f7;
    --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);
    --metric-blue: #0b2f5f;
    --metric-blue-strong: #082548;
    --metric-blue-led: #007aff;
    --metric-blue-led-strong: #08266d;
    --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;
    --mobile-topbar-height: 0px;
    --font-ui: "News Gothic Custom", "Segoe UI", sans-serif;
    --font-ui-strong: "News Gothic Custom", "Segoe UI", sans-serif;
}

html {
  font-size: 16px;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 8% 3%, rgba(71, 85, 105, 0.18), transparent 20%),
    radial-gradient(circle at 92% 0%, rgba(148, 163, 184, 0.12), transparent 16%),
    linear-gradient(180deg, var(--page-bg) 0%, #fbfcfd 58%, var(--surface-strong) 100%);
  color: var(--text-main);
  font-family: var(--font-ui);
}

.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(71, 85, 105, 0.16);
}

.ambient-orb-b {
  left: 1rem;
  bottom: 5rem;
  width: 12rem;
  height: 12rem;
  border-radius: 50%;
  background: rgba(148, 163, 184, 0.12);
}

.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;
  padding-top: env(safe-area-inset-top);
  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;
}

.mobile-topbar-shell {
  display: none;
}

.brand-nav {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.brand-back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  flex: 0 0 auto;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.10);
  color: #fff;
  text-decoration: none;
  transition: background 160ms ease, transform 160ms ease;
}

.brand-back-link:hover,
.brand-back-link:focus-visible {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  transform: translateX(-1px);
}

.brand-back-link:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.28);
  outline-offset: 2px;
}

.brand-back-link svg {
  width: 1rem;
  height: 1rem;
}

.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;
  flex: 0 0 auto;
  overflow: hidden;
  padding: 0.18rem;
  border-radius: 0.5rem;
  background: #fff;
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.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;
}

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

.application-version-label {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.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-profile {
  text-decoration: none;
  transition: background-color 180ms ease, box-shadow 180ms ease;
}

.user-chip-profile:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
}

.user-chip-profile:focus-visible {
  color: #fff;
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.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;
}

.dock-icon {
  width: 1.2rem;
  height: 1.2rem;
  flex: 0 0 auto;
}

.mobile-dock-items-1 {
  grid-template-columns: 1fr;
}

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

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

.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;
}

.auth-shell {
  display: grid;
  min-height: calc(100vh - 8rem);
  place-items: center;
  padding-block: 1.5rem;
}

.auth-card {
  width: min(100%, 38rem);
  padding: clamp(1rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.96);
}

.auth-card-header {
  margin-bottom: 1.5rem;
  text-align: center;
}

.auth-brand-image {
  display: block;
  width: min(100%, 30rem);
  height: auto;
  margin: 0 auto 1.25rem;
}

.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(253, 254, 255, 0.94), rgba(243, 245, 247, 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(253, 254, 255, 0.94), rgba(243, 245, 247, 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;
}

.entity-attachment-card {
  border: 1px solid var(--border-color, #d7dfdc);
  border-radius: 8px;
  background: var(--surface, #fff);
}

.entity-attachment-groups {
  border-top: 1px solid var(--line-soft);
}

.entity-attachment-group {
  border-bottom: 1px solid var(--line-soft);
}

.entity-attachment-group-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.25rem;
  padding: 0.75rem 0.25rem;
  color: var(--text-main);
  list-style: none;
  cursor: pointer;
}

.entity-attachment-group-summary::-webkit-details-marker {
  display: none;
}

.entity-attachment-group-summary::marker {
  content: "";
}

.entity-attachment-group-summary:focus-visible {
  border-radius: 0.45rem;
  outline: 2px solid rgba(15, 118, 110, 0.35);
  outline-offset: 2px;
}

.entity-attachment-group-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.75rem;
  min-width: 0;
}

.entity-attachment-group-title {
  overflow-wrap: anywhere;
  font-weight: 800;
}

.entity-attachment-group-count {
  color: var(--text-soft);
  font-size: 0.82rem;
  font-weight: 700;
}

.entity-attachment-group-chevron {
  flex: 0 0 auto;
  width: 0.65rem;
  height: 0.65rem;
  margin-right: 0.35rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}

.entity-attachment-group:not([open]) .entity-attachment-group-chevron {
  transform: rotate(-45deg);
}

.entity-attachment-group-body {
  padding: 0.15rem 0 1rem;
}

.entity-attachment-table th:first-child {
  width: 22%;
}

.entity-attachment-meta {
  display: grid;
  gap: 0.55rem;
  margin-bottom: 0;
}

.entity-attachment-meta > div {
  display: grid;
  grid-template-columns: minmax(6.5rem, 0.8fr) minmax(0, 1.2fr);
  gap: 0.75rem;
  align-items: start;
}

.entity-attachment-meta dt,
.entity-attachment-meta dd {
  margin: 0;
}

.entity-attachment-meta dt {
  color: var(--text-soft);
  font-size: 0.82rem;
  font-weight: 700;
}

.entity-attachment-meta dd {
  min-width: 0;
  overflow-wrap: anywhere;
}

.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;
  color: var(--metric-blue);
}

.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;
  }
}

@media (max-width: 1023.98px) {
  body.mobile-topbar-ready .topbar {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    transition:
      background-color 0.22s ease,
      box-shadow 0.22s ease;
  }

  body.mobile-topbar-ready .app-main {
    padding-top: calc(var(--mobile-topbar-height) + 1rem);
  }
}

.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: var(--metric-blue);
}

.app-main a:hover {
  color: var(--metric-blue-strong);
}

.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 {
  background: rgba(245, 158, 11, 0.12);
  color: var(--metric-blue);
}

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

.status-pill.is-pending-review {
  background: rgba(124, 58, 237, 0.12);
  color: #6d28d9;
}

.status-pill.is-completed {
  background: rgba(22, 163, 74, 0.12);
  color: #15803d;
}

.status-pill.is-reviewed {
  background: rgba(11, 47, 95, 0.12);
  color: var(--metric-blue);
}

.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-pending-review .work-progress-led-dot {
  background: #8c48ff;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.14), 0 0 10px rgba(124, 58, 237, 0.30);
}

.work-progress-led.is-reviewed .work-progress-led-dot {
  background: var(--metric-blue-led);
  box-shadow: 0 0 0 3px rgba(11, 47, 95, 0.14), 0 0 10px rgba(11, 47, 95, 0.28);
}

.work-progress-led.is-blocked .work-progress-led-dot {
  background: #000000;
  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);
}

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

.photo-gallery-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
}

.photo-gallery-media {
  position: relative;
  display: grid;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: 1rem;
  background: rgba(16, 32, 29, 0.05);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.10);
}

.photo-gallery-image-placeholder,
.photo-gallery-image {
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
}

.photo-gallery-image-placeholder {
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  color: var(--text-soft);
  font-size: 0.9rem;
  font-weight: 700;
  text-align: center;
}

.photo-gallery-media.is-unavailable .photo-gallery-image-placeholder {
  display: flex;
}

.photo-gallery-image {
  object-fit: cover;
}

.photo-gallery-media.is-unavailable .photo-gallery-image {
  display: none;
}

.photo-gallery-notes {
  display: grid;
  grid-template-rows: auto minmax(3.25rem, auto);
  gap: 0.25rem;
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line-soft);
}

.photo-gallery-note-text {
  min-height: 3.25rem;
  margin: 0;
  color: var(--text-main);
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.photo-gallery-notes.is-empty {
  border-top-color: transparent;
}

.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(249, 250, 252, 0.98), rgba(235, 238, 243, 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(246, 248, 251, 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;
}

.response-configuration-fields,
.response-multiple-settings,
.response-free-text-settings,
.response-options-section,
.response-option-inline-editor,
.response-option-note-fields {
  display: grid;
  gap: 1rem;
}

[data-response-configuration] [hidden] {
  display: none;
}

.response-toggle-card {
  align-self: end;
  min-height: 3rem;
}

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

.response-options-edit-table {
  min-width: 980px;
}

.response-options-edit-table [data-response-option-editor-row] td {
  padding: 0;
  background: rgba(246, 248, 251, 0.78);
}

.response-options-edit-table [data-response-option-editor-row]:hover {
  background: transparent;
}

.response-option-inline-editor {
  padding: 1rem;
  border-bottom: 1px solid rgba(17, 32, 56, 0.08);
}

.response-option-order-field {
  max-width: 12rem;
}

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

.response-options-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;
}

.response-section-heading {
  align-items: baseline;
  margin-bottom: 1rem;
}

.response-fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.response-choice-list,
.response-readonly-list {
  display: grid;
  gap: 0.75rem;
}

.response-choice-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(16, 32, 29, 0.18);
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.86);
  transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.response-choice-card:hover,
.response-choice-card:focus-within {
  border-color: rgba(15, 118, 110, 0.65);
}

.response-choice-card.is-selected {
  border-color: var(--accent);
  background: var(--accent-soft-2);
  box-shadow: inset 0.25rem 0 0 var(--accent);
}

.response-choice-selector {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 3.25rem;
  padding: 0.8rem 0.9rem;
  color: var(--text-main);
  font-weight: 700;
  cursor: pointer;
}

.response-choice-selector input {
  flex: 0 0 auto;
  width: 1.25rem;
  height: 1.25rem;
  margin: 0;
  accent-color: var(--accent);
}

.response-choice-selector span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.response-option-note {
  display: grid;
  gap: 0.45rem;
  padding: 0.85rem 0.9rem 0.95rem 2.9rem;
  border-top: 1px solid var(--line-soft);
}

.response-option-note[hidden] {
  display: none;
}

.response-readonly-item {
  display: grid;
  gap: 0.35rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line-soft);
}

.response-readonly-item:first-child {
  padding-top: 0;
}

.response-readonly-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.response-report-filter-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 2.75rem;
  padding: 0.65rem 0.8rem;
  border: 1px solid rgba(17, 32, 56, 0.12);
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.82);
  color: var(--text-main);
  font-weight: 700;
  cursor: pointer;
}

.response-report-filter-toggle .form-check-input {
  margin: 0;
}

.response-summary-table {
  min-width: 760px;
}

.response-summary-table th:nth-child(1) {
  width: 30%;
}

.response-summary-table th:nth-child(2) {
  width: 16%;
}

.response-summary-table th:nth-child(3) {
  width: 14%;
}

.response-report-coverage {
  color: var(--metric-blue);
  white-space: nowrap;
}

.response-report-result-list {
  display: grid;
  min-width: 14rem;
}

.response-report-option-result {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: start;
  padding: 0.42rem 0;
  border-bottom: 1px solid rgba(17, 32, 56, 0.08);
}

.response-report-option-result:first-child {
  padding-top: 0;
}

.response-report-option-result:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.response-report-option-label {
  min-width: 0;
  overflow-wrap: anywhere;
}

.response-report-option-values {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.25rem 0.55rem;
  color: var(--text-soft);
  font-size: 0.85rem;
  white-space: nowrap;
}

.response-report-option-values strong {
  color: var(--metric-blue);
  font-size: 1rem;
}

.response-detail-table {
  min-width: 860px;
}

.response-detail-table th:nth-child(1) {
  width: 27%;
}

.response-detail-table th:nth-child(2) {
  width: 31%;
}

.response-store-cell {
  vertical-align: top !important;
}

.response-store-heading,
.response-store-mobile-header {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.response-store-heading > .work-progress-led,
.response-store-mobile-header > .work-progress-led {
  flex: 0 0 auto;
  margin-top: 0.25rem;
}

.response-store-heading > div,
.response-store-mobile-header > div {
  min-width: 0;
}

.response-report-answer-cell,
.response-store-mobile-answer {
  overflow-wrap: anywhere;
}

.response-report-free-text,
.response-answer-selection-note span:last-child {
  white-space: pre-wrap;
}

.response-answer-selection-list {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding-left: 1.15rem;
}

.response-answer-selection-list.is-single {
  padding-left: 0;
  list-style: none;
}

.response-answer-selection-note {
  display: grid;
  gap: 0.1rem;
  margin-top: 0.2rem;
  color: var(--text-soft);
  font-size: 0.88rem;
}

.response-answer-selection-note span:first-child {
  color: var(--text-main);
  font-weight: 700;
}

.response-store-mobile-list {
  display: grid;
  gap: 0.9rem;
}

.response-store-mobile-group {
  overflow: hidden;
  border: 1px solid rgba(17, 32, 56, 0.14);
  border-radius: 0.5rem;
  background: rgba(253, 254, 255, 0.98);
  box-shadow: 0 5px 14px rgba(15, 23, 42, 0.055);
}

.response-store-mobile-header {
  padding: 0.85rem;
  border-bottom: 1px solid rgba(15, 118, 110, 0.16);
  background: rgba(15, 118, 110, 0.07);
}

.response-store-mobile-elements {
  display: grid;
}

.response-store-mobile-item {
  min-width: 0;
  padding: 0.9rem 0.85rem;
  border-bottom: 1px solid rgba(17, 32, 56, 0.10);
}

.response-store-mobile-item:last-child {
  border-bottom: 0;
}

.response-store-mobile-answer {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.7rem;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(17, 32, 56, 0.08);
}

.response-store-mobile-label {
  color: var(--text-soft);
  font-size: 0.76rem;
  font-weight: 800;
}

@media (max-width: 767.98px) {
  .response-report-filter-toggle {
    grid-column: 1 / -1;
    width: 100%;
  }

  .response-summary-table tbody tr {
    border-radius: 0.5rem;
  }

  .response-summary-table tbody td[data-label="Risultati"],
  .response-summary-table tbody td[data-label="Risultati"] > *,
  .response-summary-table .response-report-option-values {
    text-align: left;
  }

  .response-summary-table .response-report-result-list {
    width: 100%;
    min-width: 0;
  }

  .response-summary-table .response-report-option-values {
    justify-content: flex-start;
    white-space: normal;
  }

  .response-choice-selector {
    min-height: 3.5rem;
    padding: 0.9rem;
  }

  .response-option-note {
    padding: 0.85rem 0.9rem 1rem;
  }
}

.searchable-select {
  position: relative;
}

.searchable-select.has-toggle > .form-control {
  padding-right: 3rem;
}

.searchable-select-toggle {
  position: absolute;
  z-index: 2;
  top: 0;
  right: 0;
  display: inline-grid;
  width: 2.8rem;
  height: 100%;
  min-height: 2.75rem;
  padding: 0;
  place-items: center;
  border: 0;
  border-left: 1px solid rgba(17, 32, 56, 0.12);
  border-radius: 0 0.65rem 0.65rem 0;
  background: rgba(15, 118, 110, 0.07);
  color: var(--primary);
}

.searchable-select-toggle::before {
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  content: "";
  transform: translateY(-0.15rem) rotate(45deg);
  transition: transform 160ms ease;
}

.searchable-select-toggle[aria-expanded="true"]::before {
  transform: translateY(0.15rem) rotate(225deg);
}

.searchable-select-toggle:hover,
.searchable-select-toggle:focus-visible {
  background: rgba(15, 118, 110, 0.14);
  outline: 2px solid rgba(15, 118, 110, 0.22);
  outline-offset: -2px;
}

.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(249, 250, 252, 0.98), rgba(235, 238, 243, 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, 250, 252, 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-toggle-card {
  padding: 0;
  overflow: hidden;
}

.summary-toggle-card:not([open]) {
  padding: 0;
  overflow: visible;
  background: transparent;
  border: 0;
  box-shadow: none;
}

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

.summary-toggle-head::-webkit-details-marker {
  display: none;
}

.summary-toggle-head::marker {
  content: "";
}

.summary-toggle-head:focus-visible {
  outline: 2px solid rgba(15, 118, 110, 0.35);
  outline-offset: 4px;
  border-radius: 1rem;
}

.summary-toggle-card:not([open]) .summary-toggle-head {
  justify-content: flex-end;
  padding: 0;
}

.summary-toggle-title {
  font-family: Bahnschrift, "Segoe UI Semibold", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.summary-toggle-card:not([open]) .summary-toggle-title {
  display: none;
}

.summary-toggle-button {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.8rem;
  border: 1px solid rgba(16, 32, 29, 0.14);
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1;
}

.summary-toggle-text-closed {
  display: none;
}

.summary-toggle-card:not([open]) .summary-toggle-text-open {
  display: none;
}

.summary-toggle-card:not([open]) .summary-toggle-text-closed {
  display: inline;
}

.summary-toggle-chevron {
  width: 0.65rem;
  height: 0.65rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  transition: transform 180ms ease;
}

.summary-toggle-card:not([open]) .summary-toggle-chevron {
  transform: rotate(-135deg) translateY(-1px);
}

.summary-toggle-body {
  padding: 0 1.15rem 1.15rem;
}

.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-button {
  width: 100%;
  border: 0;
  appearance: none;
  text-align: left;
  font: inherit;
}

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

.summary-card-button:focus-visible {
  outline: 2px solid rgba(15, 118, 110, 0.45);
  outline-offset: 2px;
}

.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;
  color: var(--metric-blue);
}

.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;
}

.storage-quota-modal .modal-dialog {
  width: min(31rem, calc(100% - 2rem));
  margin-inline: auto;
}

.storage-quota-modal .modal-content {
  overflow: hidden;
  border: 0;
  border-radius: 0.5rem;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.24);
}

.storage-quota-modal-header {
  align-items: flex-start;
  gap: 0.9rem;
  padding: 1.25rem;
  border-bottom: 1px solid rgba(220, 38, 38, 0.16);
  background: rgba(220, 38, 38, 0.07);
}

.storage-quota-modal-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  flex: 0 0 2.6rem;
  border-radius: 50%;
  background: var(--danger);
  color: #fff;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1;
}

.storage-quota-modal-heading {
  min-width: 0;
  flex: 1 1 auto;
}

.storage-quota-modal-kicker {
  display: block;
  margin-bottom: 0.2rem;
  color: #991b1b;
  font-size: 0.82rem;
  font-weight: 700;
}

.storage-quota-modal .modal-title {
  color: var(--text-main);
  font-family: var(--font-ui-strong);
  font-size: 1.3rem;
  line-height: 1.2;
  letter-spacing: 0;
  text-wrap: balance;
}

.storage-quota-modal .btn-close {
  flex: 0 0 auto;
  margin: 0;
}

.storage-quota-modal-body {
  padding: 1.25rem;
  color: var(--text-main);
  font-size: 1rem;
  line-height: 1.5;
}

.storage-quota-modal-body p {
  margin: 0;
  overflow-wrap: anywhere;
}

.storage-quota-modal-hint {
  margin-top: 0.85rem !important;
  color: var(--text-soft);
}

.storage-quota-modal-footer {
  padding: 0 1.25rem 1.25rem;
  border-top: 0;
}

.storage-quota-modal-footer .btn {
  min-width: 8rem;
}

@media (max-width: 575.98px) {
  .storage-quota-modal .modal-dialog {
    width: calc(100% - 1.25rem);
  }

  .storage-quota-modal-header,
  .storage-quota-modal-body {
    padding: 1rem;
  }

  .storage-quota-modal-footer {
    padding: 0 1rem 1rem;
  }

  .storage-quota-modal-footer .btn {
    width: 100%;
    min-height: 3rem;
  }
}

.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);
}

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

.storage-size-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 5.5rem;
  gap: 0.55rem;
}

.storage-size-control .form-select {
  min-width: 0;
}

.subscription-custom-limit-control {
  grid-template-columns: minmax(0, 1fr) 5.5rem 2.75rem;
}

.subscription-custom-limit-control .btn {
  padding-inline: 0;
  font-size: 1.35rem;
  line-height: 1;
}

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

.plan-card-head > :first-child {
  min-width: 0;
}

.plan-mobile-card {
  border-radius: 8px;
  background: var(--surface, #fff);
}

.subscription-impact-item {
  min-width: 0;
  padding: 0.25rem 0;
}

.subscription-pricing-summary {
  display: grid;
  margin: 0;
}

.subscription-pricing-summary > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 1rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--line-soft);
}

.subscription-pricing-summary dt {
  color: var(--text-soft);
  font-weight: 700;
}

.subscription-pricing-summary dd {
  margin: 0;
  color: var(--metric-blue);
  font-weight: 700;
  text-align: right;
}

.subscription-pricing-summary .subscription-price-total {
  margin-top: 0.45rem;
  padding: 0.9rem;
  border: 0;
  border-radius: 0.5rem;
  background: var(--accent-soft-2);
}

.subscription-pricing-summary .subscription-price-total dt,
.subscription-pricing-summary .subscription-price-total dd {
  color: var(--accent-strong);
  font-size: 1.08rem;
}

@media (max-width: 575.98px) {
  .subscription-pricing-summary > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.25rem;
  }

  .subscription-pricing-summary dd {
    text-align: left;
  }
}

.subscription-impact-item + .subscription-impact-item {
  padding-top: 1rem;
  border-top: 1px solid var(--line-soft);
}

@media (min-width: 768px) {
  .subscription-impact-item + .subscription-impact-item {
    padding-top: 0.25rem;
    padding-left: 1rem;
    border-top: 0;
    border-left: 1px solid var(--line-soft);
  }
}

.toolbar-card {
  padding: 1rem;
}

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

.responsive-filter-disclosure {
  min-width: 0;
}

.responsive-filter-summary {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 2.75rem;
  padding: 0.65rem 0.8rem;
  border: 1px solid rgba(17, 32, 56, 0.12);
  border-radius: 0.55rem;
  background: rgba(255, 255, 255, 0.82);
  color: var(--text-main);
  font-weight: 800;
  list-style: none;
  cursor: pointer;
}

.responsive-filter-summary::-webkit-details-marker {
  display: none;
}

.responsive-filter-summary::marker {
  content: "";
}

.responsive-filter-summary:focus-visible {
  outline: 2px solid rgba(15, 118, 110, 0.35);
  outline-offset: 2px;
}

.responsive-filter-chevron {
  width: 0.6rem;
  height: 0.6rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translate(-1px, -1px);
  transition: transform 180ms ease-out;
}

.responsive-filter-disclosure[open] .responsive-filter-chevron {
  transform: rotate(225deg) translate(-1px, -1px);
}

.responsive-filter-body {
  min-width: 0;
}

.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: #f8fafc;
  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(--metric-blue);
}

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

.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(246, 248, 251, 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);
  padding: 0.35rem;
}

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

.data-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 0.95rem 1rem;
  background: #f8fafc;
  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:first-child {
  border-top-left-radius: 0.95rem;
  border-bottom-left-radius: 0.95rem;
}

.data-table thead th:last-child {
  border-top-right-radius: 0.95rem;
  border-bottom-right-radius: 0.95rem;
}

.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-top: 1px solid rgba(17, 32, 56, 0.07);
  border-bottom: 1px solid rgba(17, 32, 56, 0.07);
  background: rgba(255, 255, 255, 0.88);
  vertical-align: middle;
  color: var(--text-main);
  transition:
    background-color 0.16s ease,
    border-color 0.16s ease,
    box-shadow 0.16s ease,
    transform 0.16s ease;
}

.data-table tbody td:first-child {
  border-left: 1px solid rgba(17, 32, 56, 0.07);
  border-top-left-radius: 0.95rem;
  border-bottom-left-radius: 0.95rem;
}

.data-table tbody td:last-child {
  border-right: 1px solid rgba(17, 32, 56, 0.07);
  border-top-right-radius: 0.95rem;
  border-bottom-right-radius: 0.95rem;
}

.data-table tbody tr:hover td {
  background: rgba(15, 118, 110, 0.045);
  border-color: rgba(15, 118, 110, 0.16);
}

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

.data-table tbody tr.table-row-link td {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 250, 252, 0.94));
  border-color: rgba(17, 32, 56, 0.12);
  box-shadow:
    0 12px 26px rgba(15, 23, 42, 0.05),
    0 0 0 1px rgba(17, 32, 56, 0.03) inset,
    0 1px 0 rgba(255, 255, 255, 0.78) inset;
}

.data-table tbody tr.table-row-link td:first-child {
  border-top-left-radius: 1.25rem;
  border-bottom-left-radius: 1.25rem;
}

.data-table tbody tr.table-row-link td:last-child {
  border-top-right-radius: 1.25rem;
  border-bottom-right-radius: 1.25rem;
}

.data-table tbody tr.table-row-link:hover td {
  background: linear-gradient(180deg, rgba(240, 251, 249, 0.98), rgba(233, 247, 244, 0.96));
  border-color: rgba(15, 118, 110, 0.28);
  box-shadow:
    0 18px 36px rgba(15, 23, 42, 0.09),
    0 0 0 1px rgba(15, 118, 110, 0.11) inset;
  transform: translateY(-2px);
}

.data-table tbody tr.table-row-link:active td {
  transform: translateY(0);
  box-shadow:
    0 9px 18px rgba(15, 23, 42, 0.055),
    0 0 0 1px rgba(15, 118, 110, 0.14) inset;
}

.data-table tbody tr:last-child td {
  border-bottom: 1px solid rgba(17, 32, 56, 0.07);
}

@media (max-width: 767.98px) {
  .field-work-session-history-header {
    align-items: flex-start;
  }

  .field-work-session-history-header .page-header-actions,
  .field-work-session-history-header .page-header-actions form,
  .field-work-session-history-header .page-header-actions .btn {
    width: 100%;
  }

  .mobile-adaptive-table-shell {
    overflow: visible;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .mobile-adaptive-table {
    display: block;
    min-width: 0;
    border-spacing: 0;
  }

  .mobile-adaptive-table thead {
    display: none;
  }

  .mobile-adaptive-table,
  .mobile-adaptive-table tbody {
    display: block;
    width: 100%;
  }

  .mobile-adaptive-table tbody {
    display: grid;
    gap: 0.75rem;
  }

  .mobile-adaptive-table tbody tr {
    position: relative;
    display: grid;
    width: 100%;
    padding: 0.75rem 0.85rem;
    border: 1px solid rgba(17, 32, 56, 0.14);
    border-radius: 0.6rem;
    background: rgba(253, 254, 255, 0.96);
    box-shadow: 0 5px 14px rgba(15, 23, 42, 0.055);
  }

  .mobile-adaptive-table tbody tr.table-row-link {
    padding-right: 2.6rem;
    cursor: pointer;
    touch-action: manipulation;
  }

  .mobile-adaptive-table tbody tr.table-row-link::after {
    content: "";
    position: absolute;
    top: 1.15rem;
    right: 1rem;
    width: 0.65rem;
    height: 0.65rem;
    border-top: 2px solid var(--accent-strong);
    border-right: 2px solid var(--accent-strong);
    transform: rotate(45deg);
  }

  .mobile-adaptive-table tbody tr.table-row-link:hover,
  .mobile-adaptive-table tbody tr.table-row-link:active {
    border-color: rgba(15, 118, 110, 0.28);
    background: rgba(240, 251, 249, 0.98);
    box-shadow: 0 7px 18px rgba(15, 23, 42, 0.08);
  }

  .mobile-adaptive-table tbody tr:last-child {
    border-bottom: 1px solid rgba(17, 32, 56, 0.14);
  }

  .mobile-adaptive-table tbody td,
  .mobile-adaptive-table tbody tr.table-row-link td {
    display: grid;
    grid-template-columns: minmax(6.5rem, 34%) minmax(0, 1fr);
    gap: 0.75rem;
    width: 100%;
    padding: 0.42rem 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    text-align: right;
    transform: none;
  }

  .mobile-adaptive-table tbody td::before {
    content: attr(data-label);
    display: block;
    color: var(--text-soft);
    font-size: 0.76rem;
    font-weight: 800;
    line-height: 1.35;
    text-align: left;
  }

  .mobile-adaptive-table tbody td > * {
    grid-column: 2;
    min-width: 0;
    text-align: right;
  }

  .mobile-adaptive-table tbody td[data-label="Societa"],
  .mobile-adaptive-table tbody td[data-label="Localita"],
  .mobile-adaptive-table tbody tr.table-row-link td[data-label="Societa"],
  .mobile-adaptive-table tbody tr.table-row-link td[data-label="Localita"],
  .mobile-adaptive-table tbody td[data-label="Societa"] > *,
  .mobile-adaptive-table tbody td[data-label="Localita"] > *,
  .mobile-adaptive-table tbody tr.table-row-link td[data-label="Societa"] > *,
  .mobile-adaptive-table tbody tr.table-row-link td[data-label="Localita"] > * {
    text-align: left;
  }

  .mobile-adaptive-table tbody tr > td.table-title-cell {
    display: block;
    min-width: 0;
    padding-top: 0.15rem;
    padding-bottom: 0.65rem;
    border-bottom: 1px solid rgba(17, 32, 56, 0.10);
    text-align: left;
  }

  .mobile-adaptive-table tbody tr > td.table-title-cell::before,
  .mobile-adaptive-table tbody tr > td.table-led-cell::before {
    display: none;
  }

  .mobile-adaptive-table tbody tr > td.table-title-cell > *,
  .mobile-adaptive-table tbody tr > td.table-led-cell > * {
    grid-column: auto;
    text-align: left;
  }

  .mobile-adaptive-table .table-title-main {
    padding-right: 0.25rem;
    font-size: 1rem;
  }

  .mobile-adaptive-table tbody tr > td.table-led-cell {
    position: absolute;
    top: 1.05rem;
    left: 0.85rem;
    display: block;
    width: auto;
    padding: 0;
    border: 0;
  }

  .mobile-adaptive-table tbody tr > td.table-led-cell + td.table-title-cell {
    padding-left: 1.9rem;
  }

  .mobile-adaptive-table tbody td:not(.table-title-cell):not(.table-led-cell) {
    border-top: 1px solid rgba(17, 32, 56, 0.10);
  }

  .mobile-adaptive-table .table-actions-cell {
    align-items: start;
  }

  .mobile-adaptive-table .table-actions-cell > a,
  .mobile-adaptive-table .table-actions-cell > button,
  .mobile-adaptive-table .table-actions-cell > form,
  .mobile-adaptive-table .table-actions-cell > details {
    min-width: 0;
    max-width: 100%;
  }

  .mobile-adaptive-table .table-chip-link {
    min-height: 2.25rem;
    width: max-content;
  }

  .dashboard-activity-table .table-chip-link,
  .dashboard-store-table .table-chip-link {
    justify-self: end;
    width: auto;
    min-height: 0;
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: var(--metric-blue);
    font-size: 1.12rem;
    font-weight: 800;
  }

  .dashboard-activity-table .table-chip-link:hover,
  .dashboard-activity-table .table-chip-link:focus-visible,
  .dashboard-store-table .table-chip-link:hover,
  .dashboard-store-table .table-chip-link:focus-visible {
    background: transparent;
    color: var(--metric-blue-strong);
  }

  .work-session-attachments-table .attachment-note-editor {
    min-width: 0;
    margin-bottom: 0.4rem;
  }

  .work-session-attachments-table .attachment-note-editor summary {
    width: 100%;
  }
}

.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: #f8fafc;
  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;
}

.dashboard-activity-heading {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  min-width: 0;
}

.dashboard-activity-heading .work-progress-led {
  margin-top: 0.18rem;
  flex: 0 0 auto;
}

.dashboard-activity-heading-copy {
  min-width: 0;
}

.field-store-history-heading {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
}

.field-store-history-heading > .work-progress-led {
  flex: 0 0 auto;
  margin-top: 0.2rem;
}

.field-store-history-heading-copy {
  min-width: 0;
}

.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;
}

.table-center-cell {
  text-align: center;
  vertical-align: middle;
}

.attachment-add-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  padding-inline: 0.7rem;
}

.attachment-add-button svg {
  width: 1rem;
  height: 1rem;
}

.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;
}

.attachment-upload-panel {
  display: grid;
  gap: 1rem;
}

.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;
}

.document-dropzone {
  position: relative;
  display: grid;
  gap: 0.5rem;
  width: 100%;
  padding: 1.1rem 1rem;
  border: 2px dashed rgba(15, 118, 110, 0.24);
  border-radius: 1rem;
  background: rgba(15, 118, 110, 0.04);
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.document-dropzone:hover,
.document-dropzone:focus-visible,
.document-dropzone.is-drag-over {
  border-color: rgba(15, 118, 110, 0.55);
  background: rgba(15, 118, 110, 0.08);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.document-dropzone:focus-visible {
  outline: none;
}

.document-dropzone-body {
  display: grid;
  gap: 0.2rem;
}

.document-dropzone-title {
  color: var(--text);
  font-weight: 700;
}

.document-dropzone-hint {
  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(253, 254, 255, 0.94), rgba(243, 245, 247, 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(253, 254, 255, 0.92), rgba(243, 245, 247, 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(235, 239, 245, 0.96), rgba(243, 245, 247, 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;
  color: var(--metric-blue);
}

.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;
  color: var(--metric-blue);
}

.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;
  color: var(--metric-blue);
}

.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));
  }
}

.brand-mark,
.brand-label,
.hero-title,
.page-title,
.section-display,
.field-banner-activity,
.stat-value,
.section-title,
.feature-title,
.activity-icon-slot,
.card-title,
.metric-number,
.micro-stat-value,
.app-main > h1:first-child,
.app-main form#account h2,
.app-main .col-md-6 h3,
.record-title,
.cluster-title,
.summary-title,
.ops-kpi-value,
.ops-section-title,
.ops-panel-title,
.ops-progress-value,
.ops-signal-value {
  font-family: var(--font-ui-strong);
}

.admin-page .page-header-actions .btn-outline-primary,
.admin-page .page-header-actions .btn-primary,
.admin-page .ops-hero-actions .btn-outline-primary,
.admin-page .ops-hero-actions .btn-primary {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
  text-decoration: none;
}

.admin-page .page-header-actions .btn-outline-primary:hover,
.admin-page .page-header-actions .btn-outline-primary:focus,
.admin-page .page-header-actions .btn-primary:hover,
.admin-page .page-header-actions .btn-primary:focus,
.admin-page .ops-hero-actions .btn-outline-primary:hover,
.admin-page .ops-hero-actions .btn-outline-primary:focus,
.admin-page .ops-hero-actions .btn-primary:hover,
.admin-page .ops-hero-actions .btn-primary:focus {
  color: #fff;
  background: var(--accent-strong);
  border-color: var(--accent-strong);
}

.btn.btn-primary,
.btn.btn-primary:hover,
.btn.btn-primary:focus,
.btn.btn-primary:active,
.btn.btn-primary:visited,
.btn.btn-outline-primary:hover,
.btn.btn-outline-primary:focus,
.btn.btn-outline-primary:active {
  color: #fff;
}

.btn.btn-primary *,
.btn.btn-outline-primary:hover *,
.btn.btn-outline-primary:focus *,
.btn.btn-outline-primary:active * {
  color: inherit;
}

.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;
}

@media (max-width: 767.98px) {
  body {
    background: #f7f9f8;
  }

  .app-shell {
    width: calc(100% - 2rem);
  }

  .topbar {
    background: var(--accent-strong);
    border-bottom-color: rgba(255, 255, 255, 0.12);
    backdrop-filter: none;
  }

  .topbar-inner {
    display: block;
    padding: 0.48rem 0 0.55rem;
  }

  .desktop-topbar-content {
    display: none !important;
  }

  .mobile-topbar-shell {
    display: grid;
    grid-template-columns: 2.65rem minmax(0, 1fr) 2.65rem;
    align-items: center;
    gap: 0.5rem;
    min-height: 3.45rem;
  }

  .mobile-topbar-shell.has-custom-content:not(.has-back-link) {
    grid-template-columns: minmax(0, 1fr) 2.65rem;
  }

  .mobile-topbar-shell.has-custom-content:not(.has-back-link) > .mobile-header-spacer {
    display: none;
  }

  .mobile-header-menu {
    position: relative;
    justify-self: end;
    min-width: 0;
  }

  .mobile-header-icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.65rem;
    height: 2.65rem;
    color: #f4fbf9;
    list-style: none;
    cursor: pointer;
  }

  .mobile-header-icon-button::-webkit-details-marker {
    display: none;
  }

  .mobile-header-icon-button::marker {
    content: "";
  }

  .mobile-header-icon-button:focus-visible,
  .mobile-header-back:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.62);
    outline-offset: 2px;
    border-radius: 0.45rem;
  }

  .mobile-header-icon-button svg,
  .mobile-header-back svg {
    width: 1.55rem;
    height: 1.55rem;
  }

  .mobile-header-menu-panel {
    position: absolute;
    top: calc(100% + 0.55rem);
    right: 0;
    z-index: 40;
    display: grid;
    width: min(17rem, calc(100vw - 2rem));
    padding: 0.45rem;
    border: 1px solid rgba(17, 32, 56, 0.12);
    border-radius: 0.65rem;
    background: #f8fbfa;
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.18);
  }

  .mobile-header-menu-panel a,
  .mobile-header-menu-panel button {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 2.75rem;
    padding: 0.65rem 0.75rem;
    border: 0;
    border-radius: 0.45rem;
    background: transparent;
    color: var(--text-main);
    font: inherit;
    font-weight: 700;
    text-align: left;
    text-decoration: none;
  }

  .mobile-header-menu-panel a:hover,
  .mobile-header-menu-panel a:focus-visible,
  .mobile-header-menu-panel button:hover,
  .mobile-header-menu-panel button:focus-visible {
    background: rgba(15, 118, 110, 0.10);
    color: var(--accent-strong);
    outline: none;
  }

  .mobile-header-menu-panel form {
    margin: 0;
  }

  .mobile-header-menu-version {
    margin-top: 0.25rem;
    padding: 0.65rem 0.75rem 0.35rem;
    border-top: 1px solid rgba(17, 32, 56, 0.10);
    color: var(--text-soft);
    font-size: 0.78rem;
    font-weight: 700;
  }

  .mobile-header-menu-panel [hidden] {
    display: none;
  }

  .mobile-brand-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
  }

  .mobile-brand-nav.has-custom-content {
    justify-content: stretch;
  }

  .mobile-header-search {
    width: 100%;
    min-width: 0;
    margin: 0;
  }

  .mobile-header-search-input {
    display: block;
    width: 100%;
    min-width: 0;
    height: 2.75rem;
    padding: 0.55rem 0.75rem 0.55rem 2.3rem;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 0.5rem;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b5c56' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 0.78rem center;
    background-size: 1rem;
    color: var(--text-main);
    font: inherit;
    font-size: 1rem;
    line-height: 1.25;
  }

  .mobile-header-search-input::placeholder {
    color: var(--text-soft);
    opacity: 1;
  }

  .mobile-header-search-input:focus {
    border-color: #fff;
    outline: 2px solid rgba(255, 255, 255, 0.72);
    outline-offset: 2px;
  }

  .mobile-brand {
    display: grid;
    justify-items: center;
    min-width: 0;
    color: #f4fbf9;
    line-height: 1.05;
    text-decoration: none;
  }

  .mobile-brand-logo {
    display: block;
    width: 2.35rem;
    height: 2.35rem;
    padding: 0.12rem;
    border-radius: 0.4rem;
    background: #fff;
    object-fit: contain;
  }

  .mobile-brand span {
    display: block;
    max-width: min(58vw, 16rem);
    margin-top: 0.25rem;
    overflow: hidden;
    color: rgba(244, 251, 249, 0.82);
    font-size: 0.68rem;
    font-weight: 700;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
  }

  .mobile-header-back,
  .mobile-header-spacer {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.65rem;
    height: 2.65rem;
    color: #f4fbf9;
    text-decoration: none;
  }

  .mobile-header-back {
    border-radius: 0.45rem;
  }

  .mobile-dock {
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    transform: none;
    gap: 0;
    padding: 0.35rem 0.75rem calc(0.35rem + env(safe-area-inset-bottom));
    border: 0;
    border-top: 1px solid rgba(17, 32, 56, 0.12);
    border-radius: 0;
    background: rgba(253, 254, 255, 0.98);
    box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.07);
  }

  .dock-link {
    flex-direction: column;
    gap: 0.12rem;
    min-height: 3.75rem;
    border-radius: 0;
    background: transparent;
    color: #334155;
  }

  .dock-link.is-active {
    background: transparent;
    color: var(--accent-strong);
  }

  .dock-icon {
    width: 1.35rem;
    height: 1.35rem;
  }

  .dock-label {
    font-size: 0.72rem;
    line-height: 1.1;
  }

  .app-main {
    padding-bottom: calc(5.5rem + env(safe-area-inset-bottom));
  }

  .dashboard-view-selector {
    padding: 0;
    border-radius: 0.65rem;
    overflow: hidden;
  }

  .dashboard-view-selector .ops-section-head {
    display: none;
  }

  .dashboard-view-selector .ops-grid-two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
  }

  .dashboard-view-selector .ops-kpi-card {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-width: 0;
    min-height: 2.75rem;
    padding: 0.5rem 0.4rem;
    border: 0;
    border-radius: 0;
    background: rgba(253, 254, 255, 0.96);
    box-shadow: none;
    text-align: center;
  }

  .dashboard-view-selector .ops-kpi-card + .ops-kpi-card {
    border-left: 1px solid rgba(17, 32, 56, 0.14);
  }

  .dashboard-view-selector .ops-kpi-card.is-selected {
    background: var(--accent-strong);
  }

  .dashboard-view-selector .ops-kpi-card.is-selected .ops-kpi-label,
  .dashboard-view-selector .ops-kpi-card.is-selected .ops-kpi-value {
    color: #f4fbf9;
  }

  .dashboard-view-selector .ops-kpi-label {
    max-width: 100%;
    color: var(--text-main);
    font-size: 0.74rem;
    letter-spacing: 0;
    line-height: 1;
    text-transform: none;
  }

  .dashboard-view-selector .ops-kpi-value {
    font-size: 0.95rem;
  }

  .responsive-filter-summary {
    display: flex;
  }

  .responsive-filter-disclosure[open] .responsive-filter-summary {
    border-color: rgba(15, 118, 110, 0.30);
    background: rgba(15, 118, 110, 0.08);
  }

  .responsive-filter-body {
    padding-top: 0.75rem;
  }

  .dashboard-results-section {
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .dashboard-results-section .ops-section-head {
    margin-bottom: 0.75rem;
  }

  .table-toolbar-row,
  .responsive-filter-body .table-toolbar-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
  }

  .table-toolbar-row .table-search,
  .responsive-filter-body .table-toolbar-row .table-search {
    grid-column: 1 / -1;
    width: 100%;
    min-width: 0;
  }

  .table-toolbar-row > .btn,
  .responsive-filter-body .table-toolbar-row > .btn {
    width: 100%;
    min-height: 2.75rem;
  }

  .dashboard-search-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .dashboard-page-search,
  .dashboard-page-search-submit,
  .store-activity-page-search,
  .field-activity-stores-search-form {
    display: none;
  }

  .dashboard-search-row:not(.has-mobile-actions) {
    display: none;
  }

  .dashboard-search-row .table-search {
    grid-column: auto;
    min-height: 2.75rem;
    padding-left: 2.35rem;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314213d' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 0.8rem center;
    background-size: 1rem;
  }

  .dashboard-search-row > .btn {
    width: auto;
    min-width: 6.25rem;
  }

  .dashboard-search-row > .btn-primary {
    padding-left: 2.25rem;
    border-color: rgba(15, 118, 110, 0.62);
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b5c56' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 5h16l-6 7v5l-4 2v-7z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 0.72rem center;
    background-size: 1rem;
    color: var(--accent-strong);
  }

  .dashboard-search-row > .btn-primary:hover,
  .dashboard-search-row > .btn-primary:focus-visible,
  .dashboard-search-row > .btn-primary:active {
    border-color: var(--accent-strong);
    background-color: rgba(15, 118, 110, 0.08);
    color: var(--accent-strong);
  }

  .store-activity-filter-switches {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .store-activity-filter-toggle {
    justify-content: space-between;
    min-height: 2.75rem;
  }

  .store-activity-table .store-activity-chip-group {
    justify-content: flex-start;
    gap: 0.35rem 0.8rem;
    text-align: left;
  }

  .store-activity-table tbody tr.table-row-link td[data-label="Ultima lavorazione"],
  .store-activity-table tbody tr.table-row-link td[data-label="Ultima lavorazione"] > * {
    text-align: left;
  }

  .store-activity-table .store-activity-mini-badge {
    min-height: 0;
    padding: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: var(--text-main);
    font-size: 0.82rem;
  }

  .field-activity-stores-table tbody tr > td.field-store-gallery-cell {
    display: flex;
    justify-content: center;
    padding-top: 0.75rem;
  }

  .field-activity-stores-table tbody tr > td.field-store-gallery-cell::before {
    display: none;
  }

  .field-activity-stores-table .field-store-gallery-button,
  .field-store-map-button,
  .field-attachment-note-button {
    display: inline-flex;
    grid-column: auto;
    align-items: center;
    justify-content: center;
    width: min(100%, 12rem);
    min-width: 9rem;
    min-height: 2.75rem;
    border-color: rgba(15, 118, 110, 0.34);
    background: linear-gradient(135deg, #edf9f6 0%, #cfece4 100%);
    box-shadow: 0 4px 10px rgba(15, 118, 110, 0.12);
    color: var(--accent-strong);
    font-weight: 800;
    text-align: center;
  }

  .field-activity-stores-table .field-store-gallery-button:hover,
  .field-activity-stores-table .field-store-gallery-button:focus-visible,
  .field-activity-stores-table .field-store-gallery-button:active,
  .field-store-map-button:hover,
  .field-store-map-button:focus-visible,
  .field-store-map-button:active,
  .field-attachment-note-button:hover,
  .field-attachment-note-button:focus-visible,
  .field-attachment-note-button:active {
    border-color: rgba(15, 118, 110, 0.58);
    background: linear-gradient(135deg, #dff4ee 0%, #b9e2d7 100%);
    box-shadow: 0 5px 12px rgba(15, 118, 110, 0.18);
    color: #0b5c56;
  }

  .field-store-details-page,
  .field-store-details-page .content-card,
  .field-store-details-page .table-shell,
  .field-store-details-page .data-table {
    min-width: 0;
    max-width: 100%;
  }

  .field-store-details-summary-card .summary-grid {
    gap: 0;
  }

  .field-store-details-summary-card .summary-card {
    display: grid;
    grid-template-columns: minmax(6.5rem, 34%) minmax(0, 1fr);
    gap: 0.75rem;
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--line-soft);
    border-radius: 0;
    background: transparent;
  }

  .field-store-details-summary-card .summary-card:last-child {
    border-bottom: 0;
  }

  .field-store-details-summary-card .summary-label {
    align-self: start;
    text-align: left;
  }

  .field-store-details-summary-card .summary-value {
    min-width: 0;
    overflow-wrap: anywhere;
    text-align: right;
  }

  .field-store-details-summary-card .field-store-number-summary .summary-value,
  .field-store-details-summary-card .field-store-company-summary .summary-value {
    text-align: left;
  }

  .field-store-details-summary-card .summary-map-link {
    grid-column: 2;
    justify-self: end;
    min-height: 2.75rem;
  }

  .field-store-address-table-shell {
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .field-store-address-table,
  .field-store-address-table tbody {
    display: block;
    width: 100%;
  }

  .field-store-address-table tbody {
    display: grid;
  }

  .field-store-address-table tbody tr {
    display: grid;
    grid-template-columns: minmax(6.5rem, 34%) minmax(0, 1fr);
    gap: 0.75rem;
    width: 100%;
    border-bottom: 1px solid var(--line-soft);
  }

  .field-store-address-table tbody tr:last-child {
    border-bottom: 0;
  }

  .field-store-address-table tbody th,
  .field-store-address-table tbody td {
    display: block;
    min-width: 0;
    width: auto;
    padding: 0.7rem 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    overflow-wrap: anywhere;
  }

  .field-store-address-table tbody th {
    text-align: left;
  }

  .field-store-address-table tbody td {
    text-align: left;
  }

  .field-store-contacts-section,
  .field-store-history-section {
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .field-store-contacts-table tbody td,
  .field-store-history-table tbody td {
    overflow-wrap: anywhere;
  }

  .field-store-history-table tbody tr > td.field-store-history-action-cell {
    display: flex;
    justify-content: center;
    padding-top: 0.75rem;
  }

  .field-store-history-table tbody tr > td.field-store-history-action-cell::before {
    display: none;
  }

  .field-store-history-action {
    display: inline-flex;
    grid-column: auto;
    align-items: center;
    justify-content: center;
    width: min(100%, 12rem);
    min-height: 2.75rem;
    text-align: center;
  }

  .ops-switch-grid {
    gap: 0.55rem;
  }

  .ops-switch-card {
    min-height: 3rem;
    padding: 0.65rem 0.75rem;
    border-radius: 0.55rem;
  }

  .ops-filter-summary {
    width: 100%;
    gap: 0.4rem;
  }

  .ops-filter-summary .meta-pill {
    min-height: 1.8rem;
    padding: 0.28rem 0.55rem;
    font-size: 0.76rem;
  }

  .content-card.ops-section-card {
    border-radius: 0.7rem;
  }

  .mobile-adaptive-table .work-progress-led-dot {
    width: 0.82rem;
    height: 0.82rem;
    flex-basis: 0.82rem;
  }

  .dashboard-activity-table tbody tr.table-row-link {
    padding: 0.9rem 1rem;
    padding-right: 2.75rem;
  }

  .dashboard-activity-table .dashboard-activity-heading {
    align-items: flex-start;
    gap: 0.7rem;
  }

  .dashboard-activity-table .dashboard-activity-heading-copy {
    flex: 1 1 auto;
    min-width: 0;
  }

  .dashboard-activity-table .table-title-main {
    overflow: hidden;
    color: var(--metric-blue-strong);
    font-size: 1.05rem;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .dashboard-activity-table .table-title-sub {
    text-align: left;
  }

  .work-session-elements-table .status-pill {
    width: max-content;
  }

  .attachment-upload-panel .form-actions .btn,
  .admin-form-grid .form-actions .btn {
    min-height: 2.75rem;
  }
}

@media (min-width: 768px) {
  .responsive-filter-disclosure:not([open]) > .responsive-filter-body {
    display: block;
  }
}

@media (max-width: 767.98px) {
  .response-option-editor-grid,
  .response-option-toggles {
    grid-template-columns: 1fr;
  }

  .response-option-order-field {
    max-width: none;
  }

  .response-options-table-shell {
    overflow: visible;
    border: 0;
    background: transparent;
  }

  .response-options-edit-table,
  .response-options-edit-table tbody {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .response-options-edit-table thead {
    display: none;
  }

  .response-options-edit-table tbody {
    margin-bottom: 0.75rem;
    overflow: hidden;
    border: 1px solid rgba(14, 65, 55, 0.22);
    border-radius: 0.5rem;
    background: var(--surface);
  }

  .response-options-edit-table tbody:last-child {
    margin-bottom: 0;
  }

  .response-options-edit-table [data-response-option-summary-row] {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .response-options-edit-table [data-response-option-summary-row] > td {
    display: grid;
    grid-template-columns: minmax(5.5rem, 42%) minmax(0, 1fr);
    gap: 0.5rem;
    min-width: 0;
    padding: 0.65rem 0.75rem;
    border: 0;
    border-bottom: 1px solid var(--line-soft);
    text-align: left;
    overflow-wrap: anywhere;
  }

  .response-options-edit-table [data-response-option-summary-row] > td::before {
    content: attr(data-label);
    color: var(--text-soft);
    font-weight: 700;
  }

  .response-options-edit-table [data-response-option-summary-row] > .table-title-cell,
  .response-options-edit-table [data-response-option-summary-row] > .table-actions-cell {
    grid-column: 1 / -1;
  }

  .response-options-edit-table [data-response-option-summary-row] > .table-title-cell {
    display: block;
  }

  .response-options-edit-table [data-response-option-summary-row] > .table-title-cell::before,
  .response-options-edit-table [data-response-option-summary-row] > .table-actions-cell::before {
    display: none;
  }

  .response-options-edit-table [data-response-option-summary-row] > .table-actions-cell {
    display: block;
    border-bottom: 0;
  }

  .response-options-edit-table .table-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .response-options-edit-table .table-actions .btn {
    min-height: 2.75rem;
  }

  .response-options-edit-table [data-response-option-editor-row],
  .response-options-edit-table [data-response-option-editor-row] > td {
    display: block;
    width: 100%;
  }

  .response-options-edit-table [data-response-option-editor-row][hidden] {
    display: none;
  }
}
