:root {
  --bg: #110b0c;
  --bg-2: #1c1214;
  --panel: rgba(28, 19, 21, 0.96);
  --panel-soft: rgba(34, 22, 25, 0.94);
  --line: rgba(244, 182, 188, 0.12);
  --line-strong: rgba(244, 182, 188, 0.24);
  --text: #f2ebec;
  --muted: #bda8ac;
  --accent: #c92f41;
  --accent-2: #7e1225;
  --warning: #f1bb53;
  --danger: #f06a78;
  --ok: #64d97a;
  --shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
  --radius: 18px;
  --radius-sm: 12px;
  --mono: "IBM Plex Mono", monospace;
  --sans: "Barlow", sans-serif;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  min-height: 100%;
  background: radial-gradient(circle at 14% 8%, rgba(201, 47, 65, 0.08), transparent 42%),
              linear-gradient(180deg, #0d0809, #110b0c 42%, #0e090a);
  color: var(--text);
  font-family: var(--sans);
}

button, input, select {
  font: inherit;
}

body.menu-open {
  overflow: hidden;
}

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

.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(circle at center, black 35%, transparent 90%);
  opacity: 0.28;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 20px 16px;
  border-right: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(18, 12, 14, 0.98), rgba(21, 14, 16, 0.97));
  display: flex;
  flex-direction: column;
  gap: 16px;
  z-index: 20;
}

.brand {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(33, 22, 24, 0.96);
}

.brand__badge {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: transparent;
  border: none;
  color: #ffe7ea;
  font-weight: 700;
  letter-spacing: 0.1em;
  overflow: hidden;
  padding: 0;
}

.brand__logo {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  border-radius: 10px;
  background: transparent;
}

.brand h1 {
  margin: 0;
  font-size: 1.2rem;
  letter-spacing: 0.02em;
}

.brand__eyebrow {
  margin: 0 0 2px;
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--muted);
  text-transform: uppercase;
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nav__item {
  text-align: left;
  padding: 10px 12px;
  border-radius: 12px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text);
  cursor: pointer;
  transition: 160ms ease;
}

.nav__item:hover {
  background: rgba(201, 47, 65, 0.06);
  border-color: rgba(201, 47, 65, 0.12);
}

.nav__item.is-active {
  background: rgba(201, 47, 65, 0.08);
  border-color: rgba(201, 47, 65, 0.2);
  box-shadow: inset 3px 0 0 rgba(201, 47, 65, 0.8);
}

.sidebar__footer {
  margin-top: auto;
  display: grid;
  gap: 10px;
}

.user-chip {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px;
  background: var(--panel-soft);
}

.user-chip__avatar {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(201, 47, 65, 0.14);
  font-weight: 700;
}

.user-chip__name {
  font-weight: 600;
}

.user-chip__role {
  font-size: 0.8rem;
  color: var(--muted);
}

.main {
  min-width: 0;
  padding: 18px;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 14px;
}

.topbar {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(31, 21, 23, 0.96);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
}

.icon-btn {
  display: none;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
}

.topbar__eyebrow {
  margin: 0;
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: var(--mono);
}

.topbar h2 {
  margin: 2px 0 0;
  font-size: 1.15rem;
}

.topbar__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  padding: 8px 10px;
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--muted);
}

.status-pill__dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--ok);
  box-shadow: 0 0 6px rgba(100, 217, 122, 0.35);
}

.content {
  min-height: 0;
}

.view {
  display: none;
  animation: fadeSlide 180ms ease;
}

.view.is-visible {
  display: grid;
  gap: 14px;
}

@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(32, 22, 24, 0.98), rgba(26, 18, 20, 0.98)),
    radial-gradient(circle at 10% 10%, rgba(201, 47, 65, 0.08), transparent 55%);
  padding: 18px;
  box-shadow: var(--shadow);
}

.hero__intro {
  display: grid;
  gap: 12px;
  align-content: start;
}

.hero__header {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
}

.hero__seal {
  width: 86px;
  height: 86px;
  border-radius: 0;
  border: none;
  background: transparent;
  padding: 0;
  box-shadow: none;
}

.hero__seal-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  border-radius: 12px;
  background: transparent;
}

.hero__eyebrow {
  margin: 0;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  font-family: var(--mono);
}

.hero h3 {
  margin: 6px 0 8px;
  font-size: 1.5rem;
  line-height: 1.1;
}

.hero__copy {
  margin: 0;
  color: var(--muted);
  max-width: 64ch;
}

.hero__caption {
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-family: var(--mono);
}

.hero__meta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  align-content: start;
}

.metric {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.015);
  padding: 12px;
  display: grid;
  gap: 6px;
}

.metric span {
  color: var(--muted);
  font-size: 0.8rem;
}

.metric strong {
  font-size: 1.35rem;
}

.metric--focus {
  min-height: 100%;
  align-content: center;
  gap: 8px;
  padding: 16px;
  border-radius: 16px;
  border-color: rgba(201, 47, 65, 0.22);
  background:
    radial-gradient(circle at 12% 10%, rgba(201, 47, 65, 0.12), transparent 55%),
    rgba(255, 255, 255, 0.02);
}

.metric--focus .metric__label {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: var(--mono);
}

.metric--focus strong {
  font-size: clamp(2.2rem, 4vw, 3rem);
  line-height: 1;
  color: #fff1f3;
}

.metric__caption {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.grid {
  display: grid;
  gap: 14px;
}

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

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

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
  padding: 14px;
  min-width: 0;
}

.panel--inner {
  background: rgba(255, 255, 255, 0.012);
  box-shadow: none;
}

.panel--table-standalone {
  background: linear-gradient(180deg, rgba(23, 15, 17, 0.98), rgba(20, 13, 15, 0.98));
}

.panel__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.panel__head-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.panel__head h4 {
  margin: 0;
  font-size: 1rem;
}

.badge {
  border-radius: 999px;
  border: 1px solid rgba(201, 47, 65, 0.2);
  background: rgba(201, 47, 65, 0.08);
  color: #ffd6db;
  padding: 4px 9px;
  font-size: 0.75rem;
  white-space: nowrap;
}

.badge--warning {
  border-color: rgba(241, 187, 83, 0.25);
  background: rgba(241, 187, 83, 0.08);
  color: #ffd3ad;
}

.badge--danger {
  border-color: rgba(255, 111, 97, 0.25);
  background: rgba(255, 111, 97, 0.08);
  color: #ffc7bf;
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(220px, 1fr);
  gap: 12px;
}

.toolbar--compact {
  grid-template-columns: 1fr;
  margin-bottom: 12px;
}

.field {
  display: grid;
  gap: 6px;
  min-width: 0;
}

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

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

.field input,
.field select {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  border-radius: 12px;
  padding: 10px 12px;
  outline: none;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}

.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  border-radius: 12px;
  padding: 10px 12px;
  outline: none;
  resize: vertical;
  min-height: 84px;
  font: inherit;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}

.field select option {
  color: #f2ebec;
  background: #221518;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(201, 47, 65, 0.34);
  box-shadow: 0 0 0 2px rgba(201, 47, 65, 0.14);
}

.btn {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  border-radius: 12px;
  padding: 10px 12px;
  cursor: pointer;
  transition: 150ms ease;
}

.btn:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
}

.btn--ghost {
  background: transparent;
}

.btn--primary {
  background: linear-gradient(135deg, rgba(201, 47, 65, 0.2), rgba(126, 18, 37, 0.18));
  border-color: rgba(201, 47, 65, 0.22);
}

.btn--full {
  width: 100%;
}

.indagini-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 12px;
}

.status-picker {
  display: block;
}

.status-menu--form {
  width: 100%;
}

.status-menu--form .status-menu__summary {
  width: 100%;
  min-height: 40px;
  display: flex;
  align-items: center;
  padding: 10px 30px 10px 12px;
  font-size: 0.84rem;
}

.status-menu--form .status-menu__label {
  font-weight: 600;
}

.status-menu--form .status-menu__list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.status-btn {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
  font-size: 0.82rem;
  line-height: 1.15;
  transition: 140ms ease;
}

.status-btn:hover {
  filter: brightness(1.05);
}

.status-btn.is-active {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.status-btn--neutral {
  border-color: rgba(190, 198, 214, 0.2);
  background: rgba(190, 198, 214, 0.06);
  color: #dbe0ea;
}

.status-btn--warn {
  border-color: rgba(241, 187, 83, 0.22);
  background: rgba(241, 187, 83, 0.07);
  color: #ffe1a8;
}

.status-btn--ok {
  border-color: rgba(100, 217, 122, 0.22);
  background: rgba(100, 217, 122, 0.07);
  color: #bdf1c7;
}

.status-btn--danger {
  border-color: rgba(255, 111, 97, 0.22);
  background: rgba(255, 111, 97, 0.07);
  color: #ffc6be;
}

.status-btn--xs {
  padding: 4px 6px;
  font-size: 0.72rem;
  border-radius: 8px;
}

.indagini-form__actions {
  display: grid;
  gap: 8px;
}

.table-wrap {
  overflow: auto;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.02);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: rgba(28, 13, 17, 0.98);
  color: #e8cfd3;
  font-weight: 600;
  text-align: left;
  font-size: 0.82rem;
  padding: 10px;
  border-bottom: 1px solid var(--line);
}

tbody td {
  padding: 10px;
  border-bottom: 1px solid rgba(255, 176, 176, 0.08);
  vertical-align: top;
  font-size: 0.92rem;
}

tbody tr:hover {
  background: rgba(201, 47, 65, 0.035);
}

.code {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: #ffd3d8;
}

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

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 0.78rem;
  white-space: nowrap;
}

.pill--ok {
  color: #b8f1c4;
  border-color: rgba(100, 217, 122, 0.18);
  background: rgba(100, 217, 122, 0.06);
}

.pill--neutral {
  color: #d7d9df;
  border-color: rgba(190, 198, 214, 0.18);
  background: rgba(190, 198, 214, 0.06);
}

.pill--warn {
  color: #ffe0a4;
  border-color: rgba(241, 187, 83, 0.18);
  background: rgba(241, 187, 83, 0.06);
}

.pill--danger {
  color: #ffc3bc;
  border-color: rgba(255, 111, 97, 0.18);
  background: rgba(255, 111, 97, 0.06);
}

.timeline {
  display: grid;
  gap: 10px;
  max-height: 420px;
  overflow: auto;
  padding-right: 4px;
}

.timeline__item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.015);
}

.timeline__dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  margin-top: 4px;
  background: var(--accent);
  box-shadow: none;
}

.timeline__title {
  margin: 0;
  font-weight: 600;
}

.timeline__meta,
.timeline__desc {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.operatori-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}

.operatore-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    radial-gradient(circle at 10% 8%, rgba(201, 47, 65, 0.06), transparent 50%),
    rgba(255, 255, 255, 0.015);
  padding: 10px;
  display: grid;
  gap: 8px;
}

.operatore-card--commander {
  border-color: rgba(201, 47, 65, 0.34);
  box-shadow: inset 0 0 0 1px rgba(201, 47, 65, 0.12);
  background:
    radial-gradient(circle at 10% 8%, rgba(201, 47, 65, 0.12), transparent 55%),
    rgba(255, 255, 255, 0.02);
}

.operatore-card--covi {
  border-color: rgba(214, 167, 70, 0.42);
  box-shadow: inset 0 0 0 1px rgba(214, 167, 70, 0.16);
  background:
    radial-gradient(circle at 10% 8%, rgba(214, 167, 70, 0.14), transparent 55%),
    rgba(255, 255, 255, 0.02);
}

.operatore-card--carabinieri {
  border-color: rgba(230, 70, 70, 0.48);
  box-shadow: inset 0 0 0 1px rgba(230, 70, 70, 0.2);
  background:
    radial-gradient(circle at 10% 8%, rgba(230, 70, 70, 0.16), transparent 55%),
    rgba(255, 255, 255, 0.025);
}

.operatore-card--smd {
  border-color: rgba(86, 188, 105, 0.36);
  box-shadow: inset 0 0 0 1px rgba(86, 188, 105, 0.14);
  background:
    radial-gradient(circle at 10% 8%, rgba(86, 188, 105, 0.12), transparent 55%),
    rgba(255, 255, 255, 0.02);
}

.operatore-card--smd-chief {
  border-color: rgba(46, 210, 87, 0.48);
  box-shadow: inset 0 0 0 1px rgba(46, 210, 87, 0.2);
  background:
    radial-gradient(circle at 10% 8%, rgba(46, 210, 87, 0.16), transparent 55%),
    rgba(255, 255, 255, 0.025);
}

.operatore-card__head {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 10px;
  align-items: center;
}

.operatore-card__avatar {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
  image-rendering: pixelated;
}

.operatore-card__head h5 {
  margin: 0;
  font-size: 0.95rem;
}

.operatore-card__head p {
  margin: 3px 0 0;
  font-size: 0.82rem;
}

.operatore-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

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

.task {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.015);
}

.task h5 {
  margin: 0 0 4px;
  font-size: 0.95rem;
}

.task p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--muted);
}

.task__meta {
  margin-top: 8px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.stat-bars {
  display: grid;
  gap: 10px;
}

.stat-bar {
  display: grid;
  gap: 5px;
}

.stat-bar__label {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.86rem;
}

.stat-bar__track {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.03);
  overflow: hidden;
}

.stat-bar__fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.compact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.compact-list li {
  padding: 9px 10px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.015);
}

.compact-list small {
  display: block;
  color: var(--muted);
  margin-top: 2px;
}

.compact-list--alerts li {
  border-left: 3px solid rgba(241, 187, 83, 0.8);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 12px;
}

.workspace-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 12px;
}

.workspace-tab {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
  transition: 140ms ease;
}

.workspace-tab:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
}

.workspace-tab.is-active {
  border-color: rgba(201, 47, 65, 0.28);
  background: rgba(201, 47, 65, 0.1);
  box-shadow: inset 0 0 0 1px rgba(201, 47, 65, 0.12);
}

.workspace-pane {
  display: none;
}

.workspace-pane.is-visible {
  display: block;
}

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

.indagine-workspace {
  align-items: start;
}

.indagine-workspace__box {
  display: grid;
  gap: 8px;
}

.indagine-kv {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.015);
  padding: 10px;
}

.indagine-kv > span {
  color: var(--muted);
  font-size: 0.8rem;
}

.indagine-kv > strong {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
}

.table-wrap--rapporti {
  max-height: none;
  overflow-y: visible;
  overflow-x: auto;
  border-radius: 14px;
  border: 1px solid rgba(201, 47, 65, 0.14);
  background:
    linear-gradient(180deg, rgba(25, 16, 18, 0.96), rgba(21, 14, 16, 0.96));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
  padding: 4px;
}

.table-wrap--reclami {
  max-height: 620px;
  overflow: auto;
}

.table-wrap--civili {
  max-height: 520px;
  overflow: auto;
}

.civili-table {
  width: 100%;
  min-width: 980px;
}

.civili-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
}

.civili-table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.01);
}

.civili-avatar {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
  image-rendering: pixelated;
}

.reclami-table {
  width: 100%;
  min-width: 980px;
}

.reclami-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
}

.reclami-table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.01);
}

.reclami-table td:nth-child(1) {
  min-width: 150px;
}

.reclami-table td:nth-child(2) {
  min-width: 120px;
}

.reclami-table td:nth-child(3) {
  min-width: 110px;
}

.reclami-table td:nth-child(4),
.reclami-table td:nth-child(8) {
  min-width: 110px;
  white-space: nowrap;
}

.reclami-table td:nth-child(9) {
  min-width: 80px;
  white-space: nowrap;
}

.rapporti-table {
  width: 100%;
  min-width: 0;
  table-layout: auto;
  background: rgba(18, 12, 14, 0.65);
}

.rapporti-table thead th {
  white-space: normal;
  line-height: 1.2;
  top: 0;
  position: sticky;
  z-index: 2;
  background: rgba(35, 18, 22, 0.98);
  box-shadow: inset 0 -1px 0 var(--line);
}

.rapporti-table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.012);
}

.rapporti-table tbody td {
  line-height: 1.35;
  background: transparent;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
  padding: 8px 8px;
  font-size: 0.83rem;
}

.rapporti-table tbody td:last-child {
  background: rgba(255, 255, 255, 0.01);
}

.rapporti-table th:nth-child(1),
.rapporti-table td:nth-child(1) {
  width: 3%;
  min-width: 44px;
  white-space: nowrap;
}

.rapporti-table th:nth-child(2),
.rapporti-table td:nth-child(2) {
  width: 6%;
  min-width: clamp(88px, 8vw, 120px);
  white-space: nowrap;
}

.rapporti-table th:nth-child(3),
.rapporti-table td:nth-child(3) {
  width: 20%;
  min-width: 180px;
}

.rapporti-table th:nth-child(4),
.rapporti-table td:nth-child(4) {
  width: 10%;
}

.rapporti-table th:nth-child(5),
.rapporti-table td:nth-child(5) {
  width: 8%;
  white-space: normal;
}

.rapporti-table th:nth-child(6),
.rapporti-table td:nth-child(6) {
  width: 18%;
  min-width: 170px;
}

.rapporti-table th:nth-child(7),
.rapporti-table td:nth-child(7) {
  width: 10%;
}

.rapporti-table th:nth-child(8),
.rapporti-table td:nth-child(8) {
  width: 12%;
}

.rapporti-table th:nth-child(9),
.rapporti-table td:nth-child(9) {
  width: 7%;
}

.rapporti-table th:nth-child(10),
.rapporti-table td:nth-child(10) {
  width: 4%;
}

.rapporti-table__hint {
  margin: 0 0 10px;
  font-size: 0.82rem;
}

.rapporti-table .access-user__actions {
  flex-direction: column;
  align-items: stretch;
  min-width: 0;
}

.rapporti-table .access-user__actions .btn {
  padding: 6px 8px;
  font-size: 0.78rem;
  white-space: normal;
}

.rapporti-table .access-user__actions .btn--icon {
  min-width: 34px;
  width: 34px;
  height: 30px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  font-size: 0.95rem;
  line-height: 1;
}

.rapporti-col-desc {
  width: clamp(170px, 22vw, 300px);
  max-width: clamp(170px, 22vw, 300px);
}

.rapporti-col-desc .truncate-3 {
  line-height: 1.35;
}

.status-bulk-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.status-cell {
  display: grid;
  gap: 5px;
}

.status-cell__pending {
  color: var(--warning);
  font-size: 0.72rem;
  line-height: 1.25;
}

.status-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.status-quick--binary .status-btn {
  min-width: 0;
  flex: 1 1 44px;
}

.status-menu {
  position: relative;
}

.status-menu__summary {
  list-style: none;
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 6px 26px 6px 10px;
  font-size: 0.76rem;
  line-height: 1.15;
  white-space: nowrap;
  position: relative;
  user-select: none;
}

.status-menu__summary::-webkit-details-marker {
  display: none;
}

.status-menu__summary::after {
  content: "▾";
  position: absolute;
  right: 9px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.9;
  font-size: 0.78rem;
}

.status-menu[open] .status-menu__summary::after {
  content: "▴";
}

.status-menu__summary.status-btn--neutral {
  border-color: rgba(190, 198, 214, 0.2);
  background: rgba(190, 198, 214, 0.06);
  color: #dbe0ea;
}

.status-menu__summary.status-btn--warn {
  border-color: rgba(241, 187, 83, 0.22);
  background: rgba(241, 187, 83, 0.07);
  color: #ffe1a8;
}

.status-menu__summary.status-btn--ok {
  border-color: rgba(100, 217, 122, 0.22);
  background: rgba(100, 217, 122, 0.07);
  color: #bdf1c7;
}

.status-menu__summary.status-btn--danger {
  border-color: rgba(255, 111, 97, 0.22);
  background: rgba(255, 111, 97, 0.07);
  color: #ffc6be;
}

.status-menu__list {
  margin-top: 6px;
  display: grid;
  gap: 4px;
}

.status-menu--binary .status-menu__summary {
  min-width: 58px;
  text-align: center;
}

.status-menu--binary .status-menu__list .status-btn {
  min-width: 58px;
}

.rapporti-table td:nth-child(2),
.rapporti-table td:nth-child(6),
.rapporti-table td:nth-child(10) {
  overflow-wrap: anywhere;
}

.clip-links {
  min-width: 0;
}

.clip-links__summary {
  cursor: pointer;
  color: #ffb7c0;
  text-decoration: none;
  list-style: none;
  font-size: 0.82rem;
  white-space: nowrap;
}

.clip-links__summary::-webkit-details-marker {
  display: none;
}

.clip-links__summary::before {
  content: "▾";
  display: inline-block;
  margin-right: 6px;
  transform: rotate(-90deg);
  transition: transform 140ms ease;
}

.clip-links[open] .clip-links__summary::before {
  transform: rotate(0deg);
}

.clip-links__list {
  margin-top: 6px;
  display: grid;
  gap: 4px;
}

.clip-links__item {
  display: block;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.indagati-list {
  display: grid;
  gap: 10px;
  max-height: min(62vh, 640px);
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(201, 47, 65, 0.85) rgba(255, 255, 255, 0.03);
}

.indagati-list::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.indagati-list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 999px;
}

.indagati-list::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(201, 47, 65, 0.95), rgba(126, 18, 37, 0.9));
  border-radius: 999px;
  border: 2px solid rgba(24, 16, 18, 0.9);
}

.indagati-list::-webkit-scrollbar-thumb:hover {
  filter: brightness(1.06);
}

.indagato-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.015);
  padding: 10px;
  display: grid;
  gap: 8px;
}

.indagato-card__head {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 10px;
  align-items: center;
}

.indagato-card__avatar {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  image-rendering: pixelated;
}

.indagato-card__head h6 {
  margin: 0;
  font-size: 0.95rem;
}

.indagato-card__head p {
  margin: 2px 0 0;
  font-size: 0.8rem;
}

.indagato-card__note {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.case-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background:
    radial-gradient(circle at 12% 8%, rgba(201, 47, 65, 0.08), transparent 45%),
    linear-gradient(180deg, rgba(31, 20, 23, 0.98), rgba(24, 16, 18, 0.98));
  box-shadow: var(--shadow);
  padding: 13px;
  display: grid;
  gap: 10px;
  position: relative;
  overflow: hidden;
}

.case-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, rgba(201, 47, 65, 0.95), rgba(126, 18, 37, 0.9));
}

.case-card h5 {
  margin: 0;
  font-size: 1rem;
}

.case-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.35;
}

.case-card__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.case-card__meta {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.015);
}

.case-card__meta strong {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 3px;
}

.case-card__meta span {
  font-size: 0.88rem;
}

.case-card__hero {
  display: grid;
  gap: 8px;
  padding-left: 6px;
}

.case-card__label {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  border: 1px solid rgba(201, 47, 65, 0.2);
  background: rgba(201, 47, 65, 0.08);
  color: #ffd3d9;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 0.73rem;
  font-family: var(--mono);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.case-card__title-main {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.15;
  color: #fff1f3;
  letter-spacing: 0.02em;
  word-break: break-word;
}

.case-card__subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.35;
}

.case-card__footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
  padding-left: 6px;
}

.case-card__open {
  width: 100%;
  justify-self: stretch;
}

.case-card__delete {
  white-space: nowrap;
}

.list-scroll {
  max-height: 620px;
  overflow: auto;
  display: grid;
  gap: 10px;
}

.reclamo-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.015);
  padding: 10px;
}

.reclamo-card h5 {
  margin: 0 0 6px;
}

.reclamo-card__numbers {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.reclamo-card__numbers .pill {
  font-family: var(--mono);
}

.reclamo-card p {
  margin: 8px 0 0;
  font-size: 0.84rem;
  color: var(--muted);
}

.inventory {
  display: grid;
  gap: 10px;
}

.inventory__row {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.015);
}

.inventory__top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.inventory__top strong {
  font-size: 0.9rem;
}

.inventory__top span {
  color: var(--muted);
  font-size: 0.82rem;
}

.inventory__bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

.inventory__bar > i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #64d97a, #36c274);
}

.inventory__bar > i.warn {
  background: linear-gradient(90deg, #f1bb53, #ff9d45);
}

.inventory__bar > i.danger {
  background: linear-gradient(90deg, #ff6f61, #ff9f77);
}

.audit-box {
  display: grid;
  gap: 10px;
}

.audit-entry {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.015);
}

.audit-entry p {
  margin: 0;
}

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

.is-hidden {
  display: none !important;
}

.access-admin {
  margin-top: 14px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
  display: grid;
  gap: 12px;
}

.access-admin__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.access-admin__head h5 {
  margin: 0;
  font-size: 0.95rem;
}

.access-form {
  display: grid;
  gap: 10px;
}

.access-form--account {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.012);
  padding: 12px;
}

.account-preview {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background:
    radial-gradient(circle at 10% 8%, rgba(201, 47, 65, 0.06), transparent 55%),
    rgba(255, 255, 255, 0.015);
  padding: 10px;
}

.account-preview__avatar {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
  image-rendering: pixelated;
}

.account-preview__meta {
  display: grid;
  gap: 2px;
}

.account-preview__meta strong {
  font-size: 0.94rem;
}

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

.access-permissions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.access-perm-manager {
  display: grid;
  gap: 8px;
}

.access-perm-manager__row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.access-perm-manager__row select {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  border-radius: 10px;
  padding: 9px 10px;
}

.access-perm-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 38px;
}

.access-perm-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  border-radius: 999px;
  padding: 6px 10px;
  cursor: pointer;
}

.access-perm-chip:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
}

.access-perm-chip i {
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: rgba(201, 47, 65, 0.12);
  color: #ffd6dc;
  font-style: normal;
  font-size: 0.72rem;
  line-height: 1;
}

.access-perm {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.015);
  padding: 8px 10px;
  font-size: 0.85rem;
}

.access-perm input {
  accent-color: var(--accent);
}

.access-users {
  display: grid;
  gap: 8px;
}

.access-user {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.015);
  padding: 10px;
  display: grid;
  gap: 8px;
}

.access-user--commander {
  border-color: rgba(201, 47, 65, 0.34);
  box-shadow: inset 0 0 0 1px rgba(201, 47, 65, 0.12);
  background:
    radial-gradient(circle at 8% 12%, rgba(201, 47, 65, 0.09), transparent 45%),
    rgba(255, 255, 255, 0.02);
}

.access-user--covi {
  border-color: rgba(214, 167, 70, 0.42);
  box-shadow: inset 0 0 0 1px rgba(214, 167, 70, 0.16);
  background:
    radial-gradient(circle at 8% 12%, rgba(214, 167, 70, 0.12), transparent 45%),
    rgba(255, 255, 255, 0.02);
}

.access-user--carabinieri {
  border-color: rgba(230, 70, 70, 0.48);
  box-shadow: inset 0 0 0 1px rgba(230, 70, 70, 0.2);
  background:
    radial-gradient(circle at 8% 12%, rgba(230, 70, 70, 0.14), transparent 45%),
    rgba(255, 255, 255, 0.025);
}

.access-user--smd {
  border-color: rgba(86, 188, 105, 0.36);
  box-shadow: inset 0 0 0 1px rgba(86, 188, 105, 0.14);
  background:
    radial-gradient(circle at 8% 12%, rgba(86, 188, 105, 0.11), transparent 45%),
    rgba(255, 255, 255, 0.02);
}

.access-user--smd-chief {
  border-color: rgba(46, 210, 87, 0.48);
  box-shadow: inset 0 0 0 1px rgba(46, 210, 87, 0.2);
  background:
    radial-gradient(circle at 8% 12%, rgba(46, 210, 87, 0.14), transparent 45%),
    rgba(255, 255, 255, 0.025);
}

.pill--covi {
  color: #ffe6ad;
  border-color: rgba(214, 167, 70, 0.28);
  background: rgba(214, 167, 70, 0.08);
}

.pill--carabinieri {
  color: #ffd3d3;
  border-color: rgba(230, 70, 70, 0.32);
  background: rgba(230, 70, 70, 0.11);
}

.pill--smd {
  color: #c6ffd1;
  border-color: rgba(86, 188, 105, 0.24);
  background: rgba(86, 188, 105, 0.08);
}

.pill--smd-chief {
  color: #d7ffe0;
  border-color: rgba(46, 210, 87, 0.3);
  background: rgba(46, 210, 87, 0.1);
}

.access-user__top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: start;
}

.access-user__top h6 {
  margin: 0;
  font-size: 0.9rem;
}

.access-user__top p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.access-user__actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.access-user__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.access-locked {
  margin-top: 14px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.login-overlay {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 10% 10%, rgba(201, 47, 65, 0.08), transparent 35%),
    radial-gradient(circle at 90% 15%, rgba(126, 18, 37, 0.08), transparent 35%),
    rgba(8, 7, 8, 0.9);
  z-index: 50;
  padding: 16px;
}

.login-overlay.is-hidden {
  display: none;
}

.confirm-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 16px;
  background:
    radial-gradient(circle at 12% 10%, rgba(201, 47, 65, 0.08), transparent 36%),
    radial-gradient(circle at 88% 14%, rgba(126, 18, 37, 0.08), transparent 34%),
    rgba(10, 8, 9, 0.72);
  backdrop-filter: blur(4px);
}

.confirm-overlay.is-hidden {
  display: none;
}

.confirm-card {
  width: min(680px, 100%);
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(31, 21, 23, 0.98), rgba(22, 16, 18, 0.98));
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.35);
  padding: 14px;
  display: grid;
  gap: 12px;
}

.confirm-card__head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
}

.confirm-card__eyebrow {
  margin: 0;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: var(--mono);
  font-size: 0.72rem;
}

.confirm-card__head h3 {
  margin: 4px 0 0;
  font-size: 1.05rem;
}

.confirm-card__message {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.015);
  padding: 12px;
  color: var(--text);
  white-space: pre-wrap;
  line-height: 1.4;
  max-height: min(46vh, 360px);
  overflow: auto;
}

.confirm-card__actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.login-card {
  width: min(520px, 100%);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(31, 21, 23, 0.98), rgba(24, 17, 19, 0.98));
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.3);
  padding: 18px;
}

.login-card__header {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.login-card__brand {
  display: flex;
  justify-content: center;
  margin-bottom: 4px;
}

.login-card__logo-shell {
  width: 92px;
  height: 92px;
  border-radius: 0;
  border: none;
  background: transparent;
  padding: 0;
  box-shadow: none;
}

.login-card__logo {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  border-radius: 14px;
  background: transparent;
}

.login-card__eyebrow {
  margin: 0;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-family: var(--mono);
  font-size: 0.72rem;
}

.login-card__header h2 {
  margin: 2px 0 4px;
  font-size: 1.35rem;
  text-align: center;
}

.login-card__copy {
  margin: 0;
  color: var(--muted);
  text-align: center;
}

.login-form {
  display: grid;
  gap: 12px;
}

.login-form__row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.88rem;
}

.check input {
  accent-color: var(--accent);
}

.check--stack {
  display: grid;
  justify-items: start;
  gap: 6px;
}

.field--procura {
  align-content: start;
  padding-top: 6px;
}

.check--procura {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  padding: 10px 12px;
  gap: 8px;
}

.check--procura > span {
  color: var(--text);
  font-weight: 600;
  font-size: 0.84rem;
}

.check--procura input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--accent);
  filter: drop-shadow(0 0 6px rgba(201, 47, 65, 0.18));
}

.login-form__hint {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.login-form__hint.error {
  color: #ffc3bc;
}

.empty-state {
  border: 1px dashed var(--line-strong);
  border-radius: 14px;
  padding: 18px;
  text-align: center;
  color: var(--muted);
}

.empty-state h5 {
  margin: 0 0 6px;
  color: var(--text);
}

.empty-state p {
  margin: 0;
}

a.link {
  color: #ffb7c0;
  text-decoration: none;
}

a.link:hover {
  text-decoration: underline;
}

.truncate-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 1100px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero__header {
    grid-template-columns: 72px 1fr;
    align-items: start;
  }

  .hero__seal {
    width: 72px;
    height: 72px;
    border-radius: 16px;
    padding: 5px;
  }

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

  .access-permissions {
    grid-template-columns: 1fr;
  }

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

  .rapporti-table th:nth-child(6),
  .rapporti-table td:nth-child(6) {
    width: 16%;
    min-width: 150px;
  }
}

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

  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(82vw, 320px);
    transform: translateX(-104%);
    transition: transform 170ms ease;
    box-shadow: var(--shadow);
  }

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

  .icon-btn {
    display: inline-flex;
  }

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

  .topbar__actions {
    grid-column: 1 / -1;
    justify-content: space-between;
  }

  .grid--2,
  .toolbar {
    grid-template-columns: 1fr;
  }

  .main {
    padding: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}
