
:root {
  color-scheme: light;
  --ink: #17202a;
  --muted: #64748b;
  --line: #d8dee8;
  --panel: #ffffff;
  --blue: #123b63;
  --green: #1f7a5a;
  --bg: #f4f7fb;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
}
.public-page {
  background: linear-gradient(180deg, #f7fbff 0%, #eef4fb 42%, #f7fbff 100%);
}
.public-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 32px;
  background: rgba(255,255,255,.94);
  border-bottom: 1px solid #e2e8f0;
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 10;
}
.public-brand,
.public-nav a {
  color: #123b63;
  text-decoration: none;
}
.public-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 850;
}
.public-brand > span {
  display: none;
}
.public-brand strong,
.public-brand small {
  display: grid;
  gap: 2px;
}
.public-logo {
  width: 292px;
  height: 72px;
  flex: 0 0 auto;
}
.public-logo .logo-curit-word {
  fill: url(#curitWordGradient);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 48px;
  font-weight: 950;
  letter-spacing: 0;
}
.public-logo .logo-online-word {
  fill: #123b63;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 20px;
  font-weight: 850;
  letter-spacing: .4px;
}
.public-logo .logo-swoosh {
  fill: none;
  stroke: #17a26b;
  stroke-width: 5;
  stroke-linecap: round;
  opacity: .82;
}
.public-logo .logo-dot {
  fill: #7dd3fc;
}
.public-brand small {
  color: #64748b;
  font-size: 12px;
  font-weight: 600;
}
.public-nav nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
  font-size: 14px;
  font-weight: 750;
}
.public-login-link,
.public-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border-radius: 8px;
  padding: 10px 14px;
  color: white !important;
  background: #123b63;
}
.public-main {
  max-width: none;
  padding: 0;
}
.public-hero {
  display: grid;
  grid-template-columns: minmax(320px, .95fr) minmax(360px, 1.05fr);
  gap: 36px;
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
  padding: 62px 24px 42px;
}
.public-hero-redesigned {
  position: relative;
  max-width: none;
  padding: 76px max(24px, calc((100vw - 1180px) / 2)) 64px;
  background:
    linear-gradient(120deg, rgba(18,59,99,.08), rgba(31,122,90,.08)),
    radial-gradient(circle at 76% 20%, rgba(125,211,252,.28), transparent 34%);
}
.public-kicker {
  margin-bottom: 10px;
  color: #1f7a5a;
  font-size: 13px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.public-hero h1 {
  color: #102033;
  font-size: 54px;
  line-height: 1.04;
  letter-spacing: 0;
}
.public-hero p,
.public-section p {
  color: #475569;
  font-size: 17px;
  line-height: 1.6;
}
.public-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}
.hero-proof-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}
.hero-proof-row span {
  border: 1px solid rgba(18,59,99,.16);
  border-radius: 999px;
  padding: 7px 10px;
  color: #123b63;
  background: rgba(255,255,255,.72);
  font-size: 13px;
  font-weight: 800;
}
.public-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 10px 14px;
  color: #123b63;
  text-decoration: none;
  font-weight: 800;
  background: white;
}
.public-product-shot {
  border: 1px solid #d8dee8;
  border-radius: 8px;
  overflow: hidden;
  background: white;
  box-shadow: 0 24px 54px rgba(15, 23, 42, .14);
}
.shot-top {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 48px;
  padding: 0 16px;
  color: white;
  background: #123b63;
}
.shot-top span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,.55);
}
.shot-top strong {
  margin-left: auto;
  font-size: 13px;
}
.shot-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 16px;
}
.shot-metrics div {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px;
  background: #f8fafc;
}
.shot-metrics small,
.public-product-shot p {
  color: #64748b;
  font-size: 12px;
}
.shot-metrics b {
  display: block;
  margin-top: 4px;
  font-size: 26px;
}
.public-product-shot table {
  width: calc(100% - 32px);
  margin: 0 16px 12px;
  border-collapse: collapse;
  font-size: 13px;
}
.public-product-shot th,
.public-product-shot td {
  border-bottom: 1px solid #e2e8f0;
  padding: 10px 8px;
  text-align: left;
}
.demo-pill {
  display: inline-flex;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 850;
}
.demo-pill.ok { color: #166534; background: #dcfce7; }
.demo-pill.warn { color: #9a3412; background: #ffedd5; }
.demo-pill.check { color: #1e40af; background: #dbeafe; }
.demo-pill.danger { color: #991b1b; background: #fee2e2; }
.demo-pill.muted { color: #334155; background: #e2e8f0; }
.public-product-shot p {
  margin: 0;
  padding: 0 16px 16px;
}
.public-section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 42px 24px;
}
.public-benefits,
.public-curit-screens,
.public-contact {
  max-width: none;
  padding-left: max(24px, calc((100vw - 1180px) / 2));
  padding-right: max(24px, calc((100vw - 1180px) / 2));
}
.public-benefits {
  background: #ffffff;
}
.public-contact {
  background: linear-gradient(135deg, #123b63, #1f7a5a);
}
.public-contact .public-kicker,
.public-contact h2,
.public-contact p {
  color: white;
}
.public-section h2 {
  max-width: 760px;
  font-size: 32px;
  line-height: 1.15;
}
.public-card-grid,
.service-photo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}
.public-card-grid article {
  min-height: 170px;
  border: 1px solid #d8dee8;
  border-radius: 8px;
  padding: 20px;
  background: white;
}
.public-card-grid h3 {
  margin: 0 0 10px;
  color: #123b63;
}
.public-card-grid p,
.service-photo-card p {
  margin: 0;
  font-size: 15px;
}
.public-curit-info {
  border-top: 1px solid #e2e8f0;
}
.curit-info-layout {
  display: grid;
  grid-template-columns: minmax(320px, 1.05fr) minmax(320px, .95fr);
  gap: 16px;
  margin-top: 22px;
}
.curit-info-main,
.curit-obligation-grid article {
  border: 1px solid #d8dee8;
  border-radius: 8px;
  background: white;
}
.curit-info-main {
  padding: 24px;
}
.curit-info-main h3 {
  margin: 0 0 12px;
  color: #123b63;
  font-size: 24px;
}
.curit-obligation-grid {
  display: grid;
  gap: 12px;
  min-width: 0;
}
.curit-obligation-grid article {
  display: grid;
  gap: 6px;
  padding: 18px;
}
.curit-obligation-grid strong {
  color: #123b63;
  font-size: 18px;
}
.curit-obligation-grid span {
  color: #475569;
  line-height: 1.45;
}
.official-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.official-links a {
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  padding: 9px 12px;
  color: #123b63;
  background: white;
  text-decoration: none;
  font-size: 14px;
  font-weight: 850;
}
.official-links a:hover {
  border-color: #123b63;
}
.service-photo-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.service-photo-card {
  overflow: hidden;
  border: 1px solid #d8dee8;
  border-radius: 8px;
  background: white;
}
.service-photo-card > div:last-child {
  padding: 18px;
}
.service-photo-card h3 {
  margin: 0 0 10px;
  color: #123b63;
}
.service-photo-frame {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 230px;
  overflow: hidden;
  background: #dbe4ee;
}
.plate-photo {
  background:
    linear-gradient(135deg, rgba(255,255,255,.35), rgba(255,255,255,0) 36%),
    linear-gradient(155deg, #45515e, #9aa7b5 46%, #eef2f7);
}
.receipt-photo {
  background:
    linear-gradient(135deg, rgba(255,255,255,.45), rgba(255,255,255,0) 38%),
    linear-gradient(155deg, #334155, #cbd5e1);
}
.phone-photo {
  background:
    linear-gradient(135deg, rgba(255,255,255,.42), rgba(255,255,255,0) 35%),
    linear-gradient(155deg, #163b63, #7fa4c7);
}
.photo-glare {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 12%, rgba(255,255,255,.55), transparent 24%);
}
.boiler-label,
.receipt-paper,
.phone-card {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 8px;
  width: min(78%, 250px);
  border-radius: 7px;
  padding: 18px;
  color: #17202a;
  background: rgba(255,255,255,.92);
  box-shadow: 0 16px 34px rgba(15,23,42,.22);
  transform: rotate(-2deg);
}
.receipt-paper {
  width: min(72%, 230px);
  border-radius: 3px;
  transform: rotate(2deg);
}
.phone-card {
  color: white;
  background: rgba(18,59,99,.92);
  transform: rotate(-1deg);
}
.boiler-label b,
.receipt-paper b,
.phone-card b {
  font-size: 18px;
}
.boiler-label small,
.receipt-paper span,
.phone-card span {
  color: inherit;
  opacity: .82;
}
.receipt-paper em {
  color: #166534;
  font-style: normal;
  font-weight: 850;
}
.public-sync {
  border-top: 1px solid #e2e8f0;
}
.public-curit-screens {
  border-top: 1px solid #e2e8f0;
}
.curit-screen-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}
.curit-screen-card {
  margin: 0;
  overflow: hidden;
  border: 1px solid #d8dee8;
  border-radius: 8px;
  background: white;
  box-shadow: 0 14px 30px rgba(15, 23, 42, .08);
}
.curit-screen-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.curit-screen-card figcaption {
  display: grid;
  gap: 4px;
  padding: 14px 16px 16px;
  color: #123b63;
  font-weight: 850;
}
.curit-screen-card figcaption span {
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}
.sync-layout {
  display: grid;
  grid-template-columns: minmax(320px, .9fr) minmax(360px, 1.1fr);
  gap: 22px;
  align-items: stretch;
  margin-top: 24px;
}
.sync-shot {
  border: 1px solid #d8dee8;
  border-radius: 8px;
  overflow: hidden;
  background: white;
  box-shadow: 0 18px 38px rgba(15, 23, 42, .08);
}
.sync-shot-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  color: white;
  background: #123b63;
}
.sync-shot-head span {
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 11px;
  text-transform: uppercase;
}
.sync-timeline {
  display: grid;
  gap: 10px;
  padding: 16px;
}
.sync-timeline div {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 2px 10px;
  align-items: center;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px;
  background: #f8fafc;
}
.sync-timeline b {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: white;
  background: #1f7a5a;
}
.sync-timeline span {
  font-weight: 850;
}
.sync-timeline small {
  color: #64748b;
}
.sync-status-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 16px 16px;
}
.sync-copy {
  border: 1px solid #d8dee8;
  border-radius: 8px;
  padding: 22px;
  background: white;
}
.public-check-list {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}
.public-check-list li {
  position: relative;
  padding-left: 26px;
  color: #334155;
  line-height: 1.45;
}
.public-check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #1f7a5a;
  box-shadow: inset 0 0 0 3px #dcfce7;
}
.public-flow ol {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding: 0;
  margin: 22px 0 0;
  list-style: none;
  counter-reset: flow;
}
.public-flow li {
  counter-increment: flow;
  min-height: 150px;
  border-left: 4px solid #1f7a5a;
  border-radius: 8px;
  padding: 18px;
  background: white;
}
.public-flow li::before {
  content: counter(flow, decimal-leading-zero);
  display: block;
  margin-bottom: 16px;
  color: #94a3b8;
  font-weight: 900;
}
.public-flow strong,
.public-flow span {
  display: block;
}
.public-flow span {
  margin-top: 8px;
  color: #64748b;
  line-height: 1.45;
}
.class-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}
.class-grid article {
  min-height: 170px;
  border: 1px solid #d8dee8;
  border-radius: 8px;
  padding: 18px;
  background: white;
}
.class-grid h3 {
  margin: 12px 0 8px;
  color: #123b63;
}
.class-grid p {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
}
.class-dot {
  display: block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
}
.class-dot.ok { background: #22c55e; }
.class-dot.warn { background: #f59e0b; }
.class-dot.danger { background: #ef4444; }
.class-dot.muted { background: #64748b; }
.class-dot.check { background: #3b82f6; }
.contact-form {
  margin-top: 24px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 8px;
  padding: 22px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 18px 40px rgba(15,23,42,.18);
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.contact-form label {
  display: grid;
  gap: 7px;
  color: #123b63;
  font-weight: 850;
}
.contact-form .wide {
  grid-column: 1 / -1;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 10px 12px;
  color: #17202a;
  background: white;
  font: inherit;
}
.contact-form textarea {
  resize: vertical;
}
.contact-form fieldset {
  margin: 16px 0;
  border: 0;
  padding: 0;
}
.contact-form legend {
  margin-bottom: 10px;
  color: #123b63;
  font-weight: 900;
}
.contact-checks {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}
.check-card {
  align-items: start;
  grid-template-columns: auto 1fr;
  min-height: 64px;
  border: 1px solid #d8dee8;
  border-radius: 8px;
  padding: 10px;
  background: #f8fafc;
}
.check-card input {
  width: auto;
  min-height: auto;
  margin-top: 3px;
}
.privacy-row {
  grid-template-columns: auto 1fr;
  align-items: start;
  margin-top: 14px;
}
.privacy-row input {
  width: auto;
  min-height: auto;
  margin-top: 3px;
}
.contact-form button {
  min-height: 48px;
  margin-top: 18px;
  border: 0;
  border-radius: 8px;
  padding: 12px 18px;
  color: white;
  background: #123b63;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}
.public-form-banner {
  max-width: 1180px;
  margin: 18px auto 0;
  border-radius: 8px;
  padding: 14px 18px;
  font-weight: 850;
}
.public-form-banner.ok {
  color: #166534;
  background: #dcfce7;
}
.public-form-banner.error {
  color: #991b1b;
  background: #fee2e2;
}
.login-page {
  min-height: 100vh;
  background: #eef4fb;
}
.login-shell {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 68px);
  max-width: none;
  padding: 28px;
}
.login-card {
  width: min(100%, 430px);
  border: 1px solid #d8dee8;
  border-radius: 8px;
  padding: 28px;
  background: white;
  box-shadow: 0 20px 44px rgba(15, 23, 42, .12);
}
.login-card h1 {
  color: #123b63;
  font-size: 30px;
}
.login-card p {
  color: #64748b;
  line-height: 1.5;
}
.login-card form {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}
.login-card label {
  display: grid;
  gap: 8px;
  color: #17202a;
  font-weight: 750;
}
.login-card input {
  min-height: 44px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 10px 12px;
  font: inherit;
}
.login-card button {
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  color: white;
  background: #123b63;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}
.login-message {
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  padding: 12px;
  color: #1e3a8a;
  background: #eff6ff;
  font-size: 14px;
}
.login-home {
  display: inline-flex;
  margin-top: 18px;
  color: #123b63;
  font-weight: 750;
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 32px;
  background: var(--blue);
  color: white;
}
.eyebrow {
  margin: 0 0 4px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .08em;
  opacity: .8;
}
h1, h2, p { margin-top: 0; }
h1 {
  margin-bottom: 0;
  font-size: 28px;
  font-weight: 750;
}
h2 {
  font-size: 18px;
  margin-bottom: 12px;
}
.status {
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 6px;
  padding: 8px 12px;
  font-weight: 650;
}
.catasto-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 8px;
  padding: 7px 12px;
  color: white;
  background: rgba(255,255,255,.08);
}
.catasto-status strong,
.catasto-status small {
  display: block;
  line-height: 1.2;
}
.catasto-status strong {
  font-weight: 800;
}
.catasto-status small {
  margin-top: 3px;
  color: rgba(255,255,255,.78);
  font-size: 12px;
  white-space: nowrap;
}
.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #35d07f;
  box-shadow: 0 0 0 4px rgba(53, 208, 127, .18);
  flex: 0 0 auto;
}
.toplink {
  color: white;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 6px;
  padding: 8px 12px;
  text-decoration: none;
  font-weight: 650;
}
.topbar-actions {
  display: grid;
  justify-items: end;
  gap: 10px;
}
.operator-menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}
.operator-menu a,
.operator-more > summary {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 6px;
  padding: 7px 10px;
  color: white;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  background: rgba(255,255,255,.08);
}
.operator-menu a:hover,
.operator-more > summary:hover {
  background: rgba(255,255,255,.16);
}
.operator-more {
  position: relative;
}
.operator-more > summary {
  list-style: none;
}
.operator-more > summary::-webkit-details-marker {
  display: none;
}
.operator-more[open] > div {
  position: absolute;
  right: 0;
  z-index: 20;
  display: grid;
  min-width: 220px;
  margin-top: 8px;
  padding: 8px;
  border: 1px solid rgba(18, 59, 99, .16);
  border-radius: 8px;
  background: white;
  box-shadow: 0 16px 34px rgba(15, 23, 42, .18);
}
.operator-more[open] > div a {
  color: var(--ink);
  border-color: transparent;
  background: transparent;
  justify-content: flex-start;
}
.operator-more[open] > div a:hover {
  background: #eef4fb;
}
main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px;
}
.site-credit {
  max-width: 1180px;
  margin: 4px auto 24px;
  padding: 0 24px;
  color: #7b8794;
  font-size: 11px;
  line-height: 1.4;
  text-align: center;
}
.operator-start {
  display: grid;
  grid-template-columns: minmax(360px, 1.25fr) minmax(280px, .9fr);
  gap: 14px;
  margin-bottom: 18px;
}
.operator-search,
.operator-actions,
.operator-mini-metrics {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}
.operator-search {
  grid-row: span 2;
}
.operator-search h2 {
  margin: 10px 0 8px;
  font-size: 25px;
}
.operator-search p {
  max-width: 680px;
  color: var(--muted);
  line-height: 1.45;
}
.operator-search .search-form {
  margin-top: 18px;
}
.operator-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.operator-action {
  display: grid;
  gap: 6px;
  min-height: 94px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: inherit;
  text-decoration: none;
  background: #fbfdff;
}
.operator-action:hover {
  border-color: var(--blue);
  box-shadow: 0 0 0 2px rgba(18, 59, 99, .08);
}
.operator-action strong {
  font-size: 17px;
}
.operator-action span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}
.operator-action.primary {
  color: white;
  background: var(--blue);
  border-color: var(--blue);
}
.operator-action.primary span {
  color: rgba(255,255,255,.82);
}
.operator-mini-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 12px;
}
.operator-mini-metrics .metric {
  min-height: 72px;
}
.operator-portfolio {
  scroll-margin-top: 16px;
}
.portfolio-classes {
  display: grid;
  grid-template-columns: minmax(240px, .42fr) minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}
.portfolio-classes h2 {
  margin: 6px 0 8px;
  font-size: 22px;
}
.portfolio-classes p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}
.portfolio-class-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  align-content: stretch;
}
.portfolio-class-card {
  display: grid;
  min-height: 92px;
  align-content: space-between;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: inherit;
  text-decoration: none;
  background: #fbfdff;
}
.portfolio-class-card span {
  color: var(--ink);
  font-size: 13px;
  font-weight: 750;
}
.portfolio-class-card strong {
  color: var(--blue);
  font-size: 28px;
  line-height: 1;
}
.portfolio-class-card small {
  color: var(--blue);
  font-size: 12px;
  font-weight: 750;
}
.portfolio-class-card:hover,
.portfolio-class-card:focus {
  border-color: var(--blue);
  outline: none;
  box-shadow: 0 0 0 2px rgba(18, 59, 99, .08);
}
.operator-breakdown {
  margin-bottom: 20px;
}
.advanced-home {
  margin: 20px 0 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}
.advanced-home > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  cursor: pointer;
}
.advanced-home > summary strong {
  font-size: 18px;
}
.advanced-home > summary span {
  color: var(--muted);
  font-size: 13px;
}
.advanced-home-content {
  display: grid;
  gap: 18px;
  padding: 0 18px 18px;
}
.advanced-home-content > .band,
.advanced-home-content > .grid,
.advanced-home-content > .metrics,
.advanced-home-content > .home-command,
.advanced-home-content > .home-service-board,
.advanced-home-content > .ops-path {
  margin-bottom: 0;
}
.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, .9fr);
  gap: 18px;
  margin-bottom: 20px;
}
.home-hero > div,
.home-next {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
}
.home-hero h2 {
  max-width: 760px;
  margin: 12px 0 10px;
  font-size: 26px;
  line-height: 1.18;
}
.home-hero p {
  max-width: 780px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}
.home-next h2 {
  margin-bottom: 12px;
}
.home-actions {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.home-actions a {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: inherit;
  text-decoration: none;
  background: #fafcff;
}
.home-actions a:hover {
  border-color: var(--blue);
  box-shadow: 0 0 0 2px rgba(18, 59, 99, .08);
}
.home-actions span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}
.home-score {
  align-self: start;
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  background: #e2eefc;
  color: #164f8b;
  font-weight: 750;
  white-space: nowrap;
}
.home-command {
  display: grid;
  grid-template-columns: minmax(280px, 1.2fr) repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}
.command-main,
.command-column {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 16px;
}
.command-main h2 {
  margin: 8px 0;
  font-size: 22px;
  line-height: 1.2;
}
.command-main p,
.command-column h3 {
  margin: 0 0 12px;
}
.command-main p {
  color: var(--muted);
  line-height: 1.45;
}
.command-ok {
  border-color: #bfe5d4;
  background: #f3fbf7;
}
.command-avviso {
  border-color: #f5dfa5;
  background: #fffaf0;
}
.command-simulazione {
  border-color: #cfe0f5;
  background: #f6faff;
}
.command-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 0;
  margin: 14px 0;
  list-style: none;
}
.command-facts li {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid rgba(18, 59, 99, .12);
  border-radius: 8px;
  background: rgba(255, 255, 255, .7);
}
.command-facts span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
}
.command-facts strong {
  font-size: 14px;
}
.command-column {
  display: grid;
  align-content: start;
  gap: 10px;
}
.command-column h3 {
  font-size: 15px;
}
.command-service-list {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.command-service-list li {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fafcff;
}
.command-service-list span {
  color: #164f8b;
  font-size: 12px;
  font-weight: 750;
}
.command-service-list small,
.compact-empty {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}
.ops-path {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 18px;
  margin-bottom: 20px;
}
.ops-path-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, .42fr);
  gap: 16px;
  align-items: start;
  margin-bottom: 14px;
}
.ops-path-head h2 {
  margin: 6px 0 8px;
  font-size: 24px;
}
.ops-path-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}
.ops-path-status {
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbff;
}
.ops-path-status span,
.ops-path-status small {
  color: var(--muted);
}
.ops-path-status strong {
  color: var(--blue);
  font-size: 18px;
}
.ops-path-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.ops-step {
  position: relative;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 10px;
  min-height: 150px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: inherit;
  text-decoration: none;
  background: #fbfdff;
}
.ops-step:hover {
  border-color: var(--blue);
  box-shadow: 0 0 0 2px rgba(18, 59, 99, .08);
}
.ops-step-number {
  display: inline-flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #e8f1ff;
  color: var(--blue);
  font-weight: 800;
}
.ops-step strong {
  display: block;
  padding-right: 70px;
  line-height: 1.2;
}
.ops-step p {
  margin: 8px 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}
.ops-step small {
  color: var(--blue);
  font-weight: 700;
}
.ops-step > .badge {
  position: absolute;
  top: 12px;
  right: 12px;
}
.ops-step-ok {
  border-color: #cdebd9;
  background: #f6fdf8;
}
.ops-step-blocco {
  border-color: #f0c0bd;
  background: #fff7f6;
}
.ops-step-avviso {
  border-color: #f0dda8;
  background: #fffaf0;
}
.home-service-board {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 18px;
  margin-bottom: 20px;
}
.home-service-board h2 {
  margin: 6px 0 8px;
  font-size: 23px;
}
.home-service-board p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}
.home-service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}
.home-service-card {
  display: grid;
  align-content: start;
  gap: 9px;
  min-height: 178px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: inherit;
  text-decoration: none;
  background: #fbfdff;
}
.home-service-card:hover {
  border-color: var(--blue);
  box-shadow: 0 0 0 2px rgba(18, 59, 99, .08);
}
.home-service-card strong {
  line-height: 1.2;
}
.home-service-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}
.home-service-card small {
  color: var(--blue);
  font-weight: 750;
}
.home-service-ok {
  border-color: #bfe5d4;
  background: #f5fcf8;
}
.home-service-avviso {
  border-color: #f0dda8;
  background: #fffaf0;
}
.home-service-blocco {
  border-color: #f3c9c3;
  background: #fff8f7;
}
.recall-route-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 12px 0;
}
.recall-route-grid > div {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .72);
}
.recall-route-grid > div > span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  text-transform: uppercase;
}
.service-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 0;
  margin: 16px 0 0;
  list-style: none;
}
.service-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  gap: 12px;
  min-height: 118px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fafcff;
}
.service-card p,
.service-card small {
  display: block;
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}
.service-pronto {
  border-color: #bfe5d4;
  background: #f3fbf7;
}
.service-da-configurare {
  border-color: #f3c9c3;
  background: #fff8f7;
}
.connector-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}
.connector-card {
  display: grid;
  gap: 12px;
  min-height: 230px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}
.connector-card h3 {
  margin: 8px 0 6px;
  font-size: 18px;
}
.connector-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.4;
}
.connector-card-blocco {
  border-color: #f0c0bd;
  background: #fff8f7;
}
.connector-card-simulazione {
  border-color: #ecd491;
  background: #fffaf0;
}
.connector-card-pronto {
  border-color: #bfe5d4;
  background: #f5fcf8;
}
.autopilot-command {
  display: grid;
  grid-template-columns: minmax(280px, 1.25fr) repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0;
}
.autopilot-command-main,
.autopilot-command-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #fafcff;
}
.autopilot-command-main {
  display: grid;
  align-content: start;
  gap: 10px;
}
.autopilot-command-main h3,
.autopilot-command-card h3 {
  margin: 0;
  font-size: 16px;
}
.autopilot-command-main p,
.autopilot-command-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}
.autopilot-command-card {
  display: grid;
  align-content: start;
  gap: 8px;
}
.autopilot-command-stats {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.autopilot-command-stats li {
  display: grid;
  gap: 3px;
  min-height: 64px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}
.autopilot-command-stats span {
  color: var(--muted);
  font-size: 12px;
}
.autopilot-command-stats strong {
  font-size: 24px;
  line-height: 1;
  color: var(--blue);
}
.autopilot-intake-guide {
  display: grid;
  gap: 14px;
  margin: 16px 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--blue);
  border-radius: 8px;
  background: #ffffff;
}
.autopilot-intake-guide h2 {
  margin: 6px 0 8px;
  font-size: 22px;
}
.autopilot-intake-guide p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}
.autopilot-intake-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.autopilot-intake-card {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 176px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: inherit;
  text-decoration: none;
  background: #fbfdff;
}
.autopilot-intake-card:hover {
  border-color: var(--blue);
  box-shadow: 0 0 0 2px rgba(18, 59, 99, .08);
}
.autopilot-intake-card > span {
  display: inline-flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #e8f1ff;
  color: var(--blue);
  font-weight: 800;
}
.autopilot-intake-card strong {
  line-height: 1.2;
}
.autopilot-intake-card p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}
.autopilot-intake-card small {
  color: var(--blue);
  font-weight: 750;
}
.intake-ok {
  border-color: #bfe5d4;
  background: #f5fcf8;
}
.intake-avviso {
  border-color: #f0dda8;
  background: #fffaf0;
}
.intake-blocco {
  border-color: #f3c9c3;
  background: #fff8f7;
}
.flow-panel {
  margin: 16px 0;
}
.flow-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}
.flow-card {
  display: grid;
  align-content: space-between;
  gap: 12px;
  min-height: 190px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}
.flow-card h3 {
  margin: 8px 0 6px;
  font-size: 15px;
}
.flow-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}
.flow-card strong {
  display: block;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.35;
}
.flow-ok {
  border-color: #bfe5d4;
  background: #f3fbf7;
}
.flow-avviso,
.flow-simulazione {
  border-color: #ead7a8;
  background: #fffaf0;
}
.flow-blocco {
  border-color: #f3c9c3;
  background: #fff8f7;
}
.curit-quick-status {
  display: grid;
  gap: 14px;
}
.curit-status-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.curit-status-card {
  display: grid;
  align-content: start;
  gap: 7px;
  min-height: 132px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fafcff;
}
.curit-status-card > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}
.curit-status-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}
.curit-status-card-ok {
  border-color: #bfe5d4;
  background: #f3fbf7;
}
.curit-status-card-avviso {
  border-color: #f5dfa5;
  background: #fffaf0;
}
.curit-status-card-blocco,
.curit-status-card-manca {
  border-color: #f3c9c3;
  background: #fff8f7;
}
.after-service-panel {
  display: grid;
  gap: 14px;
}
.after-service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.after-service-card {
  display: grid;
  align-content: start;
  gap: 7px;
  min-height: 150px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fafcff;
}
.after-service-card > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}
.after-service-card h3 {
  margin: 0;
  font-size: 14px;
}
.after-service-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}
.after-service-ok {
  border-color: #bfe5d4;
  background: #f3fbf7;
}
.after-service-avviso {
  border-color: #f5dfa5;
  background: #fffaf0;
}
.after-service-blocco,
.after-service-manca {
  border-color: #f3c9c3;
  background: #fff8f7;
}
.secondary-diagnostics {
  margin-top: -6px;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}
.ops-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  margin: 18px 0;
}
.metric, article, .band {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.metric {
  min-height: 86px;
  padding: 14px;
}
.metric-link {
  display: block;
  color: inherit;
  text-decoration: none;
}
.metric-link:hover {
  border-color: var(--blue);
  box-shadow: 0 0 0 2px rgba(18, 59, 99, .08);
}
.metric span {
  display: block;
  min-height: 36px;
  color: var(--muted);
  font-size: 13px;
}
.metric strong {
  font-size: 28px;
  line-height: 1;
}
.band {
  padding: 20px;
  margin-bottom: 20px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.steps {
  display: grid;
  gap: 12px;
}
.step {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  align-items: start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fafcff;
}
.step-num {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: white;
  background: var(--blue);
  font-weight: 750;
}
.step h3 {
  margin: 0 0 4px;
  font-size: 16px;
}
.step strong {
  display: inline-block;
  margin-bottom: 6px;
  color: var(--green);
}
article {
  padding: 18px;
  min-height: 180px;
}
.empty {
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: #fafcff;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
th, td {
  padding: 8px 7px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
th {
  color: white;
  background: var(--blue);
}
.band {
  overflow-x: auto;
}
.badge {
  display: inline-block;
  min-width: 84px;
  padding: 4px 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 750;
  text-align: center;
  white-space: nowrap;
}
.badge-attivo { background: #dff3e9; color: #145c43; }
.badge-in-scadenza { background: #fff1c7; color: #805b00; }
.badge-dormiente { background: #fde2df; color: #9f2f2f; }
.badge-migrato { background: #e8ebf2; color: #475569; }
.badge-da-verificare { background: #e2eefc; color: #164f8b; }
.badge-bozza { background: #eef2f7; color: #475569; }
.badge-compilata { background: #e2eefc; color: #164f8b; }
.badge-verificata { background: #dff3e9; color: #145c43; }
.badge-pronta_curit { background: #dff3e9; color: #145c43; }
.badge-inviata_curit { background: #dff3e9; color: #145c43; }
.badge-inviata { background: #dff3e9; color: #145c43; }
.badge-errore { background: #fde2df; color: #9f2f2f; }
.badge-errore_invio_curit { background: #fde2df; color: #9f2f2f; }
.badge-invio_bloccato { background: #fff1c7; color: #805b00; }
.badge-da_inviare_curit { background: #fff1c7; color: #805b00; }
.badge-da-completare { background: #fff1c7; color: #805b00; }
.badge-ricevuto { background: #eef2f7; color: #475569; }
.badge-bozza_generata { background: #e2eefc; color: #164f8b; }
.badge-promosso_a_pratica { background: #dff3e9; color: #145c43; }
.badge-generato { background: #e2eefc; color: #164f8b; }
.badge-valida_localmente { background: #dff3e9; color: #145c43; }
.badge-non_valida { background: #fde2df; color: #9f2f2f; }
.badge-bozza { background: #eef2f7; color: #475569; }
.badge-scaduto { background: #fde2df; color: #9f2f2f; }
.badge-scaduta { background: #fde2df; color: #9f2f2f; }
.badge-urgente { background: #fde2df; color: #9f2f2f; }
.badge-in_scadenza { background: #fff1c7; color: #805b00; }
.badge-pronto { background: #dff3e9; color: #145c43; }
.badge-contatto_senza_consenso { background: #fff1c7; color: #805b00; }
.badge-simulato { background: #e2eefc; color: #164f8b; }
.badge-da_inviare { background: #fff1c7; color: #805b00; }
.badge-inviato { background: #dff3e9; color: #145c43; }
.badge-errore_invio { background: #fde2df; color: #9f2f2f; }
.badge-bozza { background: #eef2f7; color: #475569; }
.badge-da_sincronizzare { background: #fff1c7; color: #805b00; }
.badge-sincronizzato { background: #dff3e9; color: #145c43; }
.badge-errore_sincronizzazione { background: #fde2df; color: #9f2f2f; }
.badge-valida_localmente { background: #dff3e9; color: #145c43; }
.badge-pronto_con_avvisi { background: #fff1c7; color: #805b00; }
.badge-da_verificare { background: #fff1c7; color: #805b00; }
.badge-da_collegare { background: #fff1c7; color: #805b00; }
.badge-disponibile { background: #dff3e9; color: #145c43; }
.badge-assegnato { background: #e2eefc; color: #164f8b; }
.badge-ok { background: #dff3e9; color: #145c43; }
.badge-manca { background: #fde2df; color: #9f2f2f; }
.badge-da_mappare { background: #fff1c7; color: #805b00; }
.badge-avviso { background: #fff1c7; color: #805b00; }
.badge-blocco { background: #fde2df; color: #9f2f2f; }
.badge-simulazione { background: #e2eefc; color: #164f8b; }
.badge-pratica { background: #dff3e9; color: #145c43; }
.badge-media { background: #e2eefc; color: #164f8b; }
.badge-attesa_dati { background: #fff1c7; color: #805b00; }
.mini-ok {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 6px;
  border-radius: 999px;
  background: #dff3e9;
  color: #145c43;
  font-size: 11px;
  font-weight: 750;
}
.autopilot-config {
  margin: 12px 0 18px;
}
.autopilot-config p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
}
.autopilot-cards {
  display: grid;
  gap: 14px;
}
.autopilot-card {
  min-height: 0;
  padding: 16px;
}
.autopilot-card h3 {
  margin: 0 0 4px;
  font-size: 16px;
}
.curit-read-panel {
  display: grid;
  gap: 10px;
  margin: 12px 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--blue);
  border-radius: 8px;
  background: #f8fafc;
}
.curit-read-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.curit-read-status small {
  color: var(--muted);
  line-height: 1.35;
}
.curit-read-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.curit-read-grid > div {
  min-height: 120px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}
.curit-read-grid h4 {
  margin: 0 0 8px;
  font-size: 13px;
}
.compact-curit-list li {
  align-items: flex-start;
  gap: 8px;
  padding: 7px 0;
}
.compact-curit-list span {
  font-size: 12px;
}
.compact-curit-list strong {
  color: var(--text);
  text-align: right;
  overflow-wrap: anywhere;
}
.compact-detail {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  margin: 12px 0;
}
.readiness {
  display: grid;
  gap: 14px;
}
.readiness-score {
  display: grid;
  gap: 4px;
  max-width: 520px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fafcff;
}
.readiness-score strong {
  font-size: 30px;
  color: var(--blue);
}
.readiness-score span {
  font-weight: 800;
}
.readiness-score small {
  color: var(--muted);
}
.next-actions {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--blue);
  border-radius: 8px;
  background: #fff;
}
.next-actions strong {
  color: var(--blue);
}
.next-actions ul {
  margin: 0;
  padding-left: 20px;
}
.next-actions li,
.next-actions p {
  margin: 4px 0;
  line-height: 1.45;
}
.pipeline-wrap {
  display: grid;
  gap: 14px;
}
.summary-callout {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  padding: 12px;
  border: 1px solid var(--line);
  border-left: 5px solid #64748b;
  border-radius: 8px;
  background: #ffffff;
}
.summary-callout strong {
  display: block;
  margin-bottom: 3px;
  color: var(--text);
}
.summary-callout p {
  margin: 0 0 4px;
  color: var(--text);
}
.summary-callout small {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
}
.summary-action {
  margin-top: 8px;
}
.summary-action .checkline {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin: 8px 0;
  color: var(--text);
  font-size: 13px;
  line-height: 1.35;
}
.summary-action .checkline input {
  width: auto;
  min-height: auto;
  margin-top: 2px;
}
.summary-ok {
  border-left-color: #15803d;
}
.summary-avviso {
  border-left-color: #b45309;
}
.summary-blocco {
  border-left-color: #b91c1c;
}
.send-readiness {
  display: grid;
  gap: 14px;
  margin: 16px 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-left: 6px solid #b91c1c;
  border-radius: 8px;
  background: #fff;
}
.send-readiness-avviso {
  border-left-color: #b45309;
  background: #fffaf0;
}
.send-readiness-ok {
  border-left-color: #15803d;
  background: #f5fcf8;
}
.send-readiness-main {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}
.send-readiness-main h3 {
  margin: 0 0 5px;
  font-size: 22px;
}
.send-readiness-main p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}
.send-readiness-grid {
  display: grid;
  grid-template-columns: minmax(240px, .8fr) minmax(0, 1.2fr);
  gap: 12px;
}
.send-readiness-grid > div {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.74);
}
.send-readiness-grid > div > strong {
  display: block;
  margin-bottom: 8px;
  color: var(--blue);
}
.send-readiness-grid ul,
.send-readiness-grid ol {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
}
.send-readiness-grid li {
  line-height: 1.4;
}
.send-missing {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}
.send-missing p,
.send-missing small {
  margin: 0;
  color: var(--muted);
  line-height: 1.35;
}
.send-missing strong {
  display: block;
  margin-bottom: 4px;
}
.send-missing-blocco {
  border-color: #f3c9c3;
  background: #fff8f7;
}
.send-missing-avviso {
  border-color: #f0dda8;
  background: #fffaf0;
}
.send-checks {
  display: grid;
  gap: 14px;
  margin: 16px 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-left: 6px solid #b45309;
  border-radius: 8px;
  background: #fffaf0;
}
.send-checks-ok {
  border-left-color: #15803d;
  background: #f5fcf8;
}
.send-checks-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}
.send-checks-head h3 {
  margin: 0 0 5px;
  font-size: 21px;
}
.send-checks-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}
.task-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.task-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}
.task-row-ok {
  border-color: #b9e6c9;
  background: #f8fffb;
}
.task-row-avviso {
  border-color: #f0dda8;
  background: #fffdf7;
}
.task-row strong {
  display: block;
  margin-bottom: 3px;
}
.task-row p,
.task-row small {
  margin: 0;
  color: var(--muted);
  line-height: 1.35;
}
.critical-form {
  display: grid;
  gap: 12px;
}
.critical-form fieldset {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.82);
}
.critical-form legend {
  padding: 0 6px;
  font-weight: 750;
  color: var(--blue);
}
.critical-form .wide {
  grid-column: 1 / -1;
}
.critical-form label {
  display: grid;
  gap: 6px;
  min-width: 0;
  align-content: start;
}
.critical-form input,
.critical-form select,
.critical-form textarea {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.critical-form textarea {
  min-height: 74px;
  resize: vertical;
}
.critical-form .checkline {
  display: flex;
  align-items: center;
  gap: 8px;
}
.critical-form .checkline input {
  width: auto;
  flex: 0 0 auto;
}
.pipeline-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.pipeline-step {
  min-height: 150px;
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 12px;
  border: 1px solid var(--line);
  border-top: 4px solid #64748b;
  border-radius: 8px;
  background: #ffffff;
}
.pipeline-step strong {
  color: var(--text);
}
.pipeline-step small,
.pipeline-step p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}
.pipeline-ok {
  border-top-color: #15803d;
}
.pipeline-avviso {
  border-top-color: #b45309;
}
.pipeline-manca,
.pipeline-blocco {
  border-top-color: #b91c1c;
}
.mini-pipeline {
  display: grid;
  gap: 8px;
  margin: 12px 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
}
.mini-pipeline-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.mini-pipeline-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.mini-pipeline ol {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.mini-pipeline-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px;
  align-items: start;
  min-height: 104px;
  padding: 10px;
  border: 1px solid var(--line);
  border-left: 4px solid #64748b;
  border-radius: 8px;
  background: #ffffff;
}
.mini-pipeline-step strong,
.mini-pipeline-step small,
.mini-pipeline-step p {
  display: block;
  margin: 0;
}
.mini-pipeline-step small,
.mini-pipeline-step p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}
.mini-pipeline-ok {
  border-left-color: #15803d;
}
.mini-pipeline-avviso {
  border-left-color: #b45309;
}
.mini-pipeline-manca,
.mini-pipeline-blocco {
  border-left-color: #b91c1c;
}
.package-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.package-grid h3 {
  margin: 0 0 8px;
  font-size: 15px;
  color: var(--blue);
}
.badge-pronto_per_invio_ufficiale,
.badge-pronto-per-invio-ufficiale,
.badge-pronto_per_prevalidazione,
.badge-pronto-per-prevalidazione {
  background: #dff3e9;
  color: #145c43;
}
.file-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.search-form {
  display: grid;
  gap: 8px;
  margin: 14px 0 18px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fafcff;
}
.search-form label {
  font-weight: 750;
  color: var(--blue);
}
.search-form div {
  display: flex;
  gap: 8px;
  align-items: center;
}
.search-form input[type="search"] {
  flex: 1;
  min-width: 180px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
}
.search-form button,
.search-form a,
.practice-form button,
.actions-row button,
.action-link {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--blue);
  border-radius: 6px;
  background: var(--blue);
  color: white;
  font: inherit;
  font-weight: 650;
  text-decoration: none;
}
.search-form a,
.action-link {
  background: white;
  color: var(--blue);
}
.practice-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  align-items: end;
  margin-top: 16px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fafcff;
}
.practice-form label {
  display: grid;
  gap: 6px;
  font-weight: 700;
  color: var(--blue);
}
.practice-form input,
.practice-form select {
  width: 100%;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
  color: var(--ink);
  background: white;
}
.actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 16px;
}
.actions-row form {
  margin: 0;
}
.note {
  margin: 14px 0 0;
  color: var(--muted);
}
.attachment-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  padding: 0;
  margin: 16px 0 0;
}
.attachment-list li {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 10px;
  min-height: 82px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fafcff;
}
.attachment-list li:has(.thumb) {
  grid-template-columns: 72px 1fr;
}
.attachment-list li:not(:has(.thumb)) {
  grid-template-columns: 1fr;
}
.attachment-list a {
  font-weight: 700;
  color: var(--blue);
}
.attachment-list span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
}
.thumb {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--line);
}
.control-form {
  display: grid;
  gap: 14px;
  margin: 10px 0 16px;
}
.control-form fieldset {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fafcff;
}
.control-form legend {
  padding: 0 6px;
  color: var(--blue);
  font-weight: 800;
}
.control-form label {
  display: grid;
  gap: 6px;
  color: var(--blue);
  font-weight: 700;
}
.control-form input,
.control-form select,
.control-form textarea {
  width: 100%;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
  color: var(--ink);
  background: white;
}
.control-form textarea {
  min-height: 80px;
  resize: vertical;
}
.control-form .checkline {
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--ink);
}
.control-form .checkline input {
  width: auto;
  min-height: auto;
}
.control-form .wide {
  grid-column: 1 / -1;
}
.upload-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  padding: 10px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: white;
}
.control-form button {
  justify-self: start;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--blue);
  border-radius: 6px;
  background: var(--blue);
  color: white;
  font: inherit;
  font-weight: 700;
}
.preview-box {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}
.preview-box h3 {
  margin: 0 0 10px;
  font-size: 15px;
}
.json-preview,
.message-preview {
  max-width: 420px;
  max-height: 180px;
  overflow: auto;
  margin: 0;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f8fafc;
  white-space: pre-wrap;
  font-size: 12px;
}
.message-preview {
  max-width: none;
  max-height: none;
  line-height: 1.55;
}
.compact-message {
  max-width: 320px;
  max-height: 150px;
  margin-top: 8px;
}
.copy-block {
  display: grid;
  gap: 6px;
  justify-items: start;
  margin-top: 8px;
}
.status-note {
  display: grid;
  gap: 4px;
  margin: 12px 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-left: 5px solid #2f6f88;
  border-radius: 8px;
  background: #f8fafc;
}
.status-note p {
  margin: 0;
}
.status-note span,
.status-note small {
  color: var(--muted);
}
.copy-button {
  min-height: 30px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--blue);
  background: #ffffff;
  font-weight: 650;
  cursor: pointer;
}
.compact-metrics {
  margin: 12px 0 18px;
}
.next-step {
  min-width: 220px;
  display: grid;
  gap: 4px;
  padding: 8px;
  border: 1px solid var(--line);
  border-left: 4px solid #64748b;
  border-radius: 6px;
  background: #ffffff;
  font-size: 12px;
  line-height: 1.35;
}
.next-step strong {
  color: var(--text);
}
.next-step span {
  color: var(--muted);
}
.next-step-pronto,
.next-step-pratica {
  border-left-color: #15803d;
  background: #f0fdf4;
}
.next-step-attesa_dati,
.next-step-media {
  border-left-color: #b45309;
  background: #fffbeb;
}
.next-step-da_collegare {
  border-left-color: #b91c1c;
  background: #fef2f2;
}
.evidence-box {
  min-width: 220px;
  display: grid;
  gap: 6px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  font-size: 12px;
  line-height: 1.35;
}
.evidence-box div {
  display: grid;
  gap: 2px;
}
.evidence-box strong {
  color: var(--text);
}
.evidence-box span {
  color: var(--muted);
}
.evidence-box .badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.media-panel {
  min-width: 260px;
  display: grid;
  gap: 8px;
}
.media-list {
  grid-template-columns: 1fr;
  margin-top: 0;
}
.tiny {
  padding: 8px;
  font-size: 12px;
}
.tiny-text {
  display: block;
  min-width: 220px;
  max-width: 360px;
  font-size: 12px;
  line-height: 1.35;
  color: var(--muted);
}
.message-cell {
  min-width: 320px;
  max-width: 520px;
  white-space: normal;
  line-height: 1.35;
}
.inline-contact {
  display: grid;
  gap: 6px;
  min-width: 180px;
}
.inline-contact input[type="text"],
.inline-contact input:not([type]),
.inline-contact textarea {
  width: 100%;
  min-height: 32px;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
}
.inline-contact textarea {
  min-height: 72px;
  resize: vertical;
}
.stacked-form {
  min-width: 220px;
}
.inline-contact label {
  display: flex;
  gap: 6px;
  align-items: center;
  color: var(--ink);
  font-size: 12px;
}
.inline-contact button {
  min-height: 32px;
  border: 1px solid var(--blue);
  border-radius: 6px;
  background: var(--blue);
  color: white;
  font: inherit;
  font-weight: 700;
}
.summary-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.summary-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}
.summary-list span, .summary-list a {
  overflow-wrap: anywhere;
}
.summary-list a {
  color: var(--blue);
  font-weight: 650;
  text-decoration: none;
}
.summary-list strong {
  color: var(--blue);
}
.route-day-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  margin: 14px 0;
}
.route-day-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}
.route-day-card span,
.route-day-card small {
  color: var(--muted);
}
.route-day-card strong {
  display: block;
  color: var(--blue);
}
.route-day-card ol {
  margin: 0;
  padding-left: 18px;
}
.route-day-card li {
  margin: 6px 0;
}
.coverage-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}
.coverage-grid div {
  min-height: 74px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fafcff;
}
.coverage-grid span {
  display: block;
  min-height: 32px;
  color: var(--muted);
  font-size: 12px;
}
.coverage-grid strong {
  display: block;
  overflow-wrap: anywhere;
  color: var(--blue);
  font-size: 20px;
}
.compact-coverage {
  margin-bottom: 14px;
}
.legend {
  list-style: none;
  margin: 0;
  padding: 0;
}
.legend li {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.legend strong {
  color: var(--blue);
}
.legend span {
  color: var(--ink);
}
.detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.detail-item {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fafcff;
}
.detail-item span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 12px;
}
.detail-item strong {
  overflow-wrap: anywhere;
  font-size: 14px;
}
.recent-curit-panel {
  display: grid;
  gap: 12px;
  margin: 16px 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--blue);
  border-radius: 8px;
  background: #fbfdff;
}
.recent-curit-panel h3 {
  margin: 4px 0 6px;
  font-size: 18px;
}
.recent-curit-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.4;
}
.recent-curit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
}
.recent-curit-card {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 10px;
  min-height: 126px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}
.recent-curit-card > span {
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #e8f1ff;
  color: var(--blue);
  font-weight: 800;
}
.recent-curit-card strong,
.recent-curit-card p,
.recent-curit-card small {
  display: block;
  margin: 0;
}
.recent-curit-card p {
  margin: 5px 0;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.35;
}
.recent-curit-card small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}
.contact-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbff;
}
.contact-panel span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 12px;
}
.contact-panel strong {
  overflow-wrap: anywhere;
  font-size: 14px;
}
.contact-panel p {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.missing {
  color: #9a3412;
  font-weight: 650;
}
.file-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.file-list a {
  color: var(--blue);
  font-weight: 650;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.file-list span {
  color: var(--muted);
  white-space: nowrap;
}
@media (max-width: 900px) {
  .public-hero, .public-card-grid, .public-flow ol, .sync-layout, .class-grid, .service-photo-grid, .curit-screen-grid, .curit-info-layout, .contact-grid { grid-template-columns: 1fr; }
  .curit-info-layout { grid-template-columns: minmax(0, 1fr) !important; }
  .curit-info-main, .curit-obligation-grid { min-width: 0; }
  .contact-checks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .public-hero { padding-top: 38px; }
  .public-hero h1 { font-size: 34px; }
  .public-nav { align-items: flex-start; flex-direction: column; }
  .public-nav nav { justify-content: flex-start; }
  .home-hero, .home-command, .operator-start, .operator-actions, .portfolio-classes, .ops-path-head, .ops-path-grid, .recall-route-grid, .autopilot-command, .autopilot-intake-grid, .flow-grid, .service-list, .curit-status-grid, .after-service-grid, .connector-grid { grid-template-columns: 1fr; }
  .send-readiness-grid { grid-template-columns: 1fr; }
  .task-list, .critical-form fieldset { grid-template-columns: 1fr; }
  .command-facts { grid-template-columns: 1fr; }
  .topbar-actions { justify-items: stretch; width: 100%; }
  .operator-menu { justify-content: flex-start; }
  .operator-mini-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .portfolio-class-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .autopilot-command-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .curit-read-grid { grid-template-columns: 1fr; }
  .metrics, .grid, .detail-grid, .coverage-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .public-nav { padding: 16px; }
  .public-brand { width: 100%; }
  .public-logo { width: min(100%, 248px); height: auto; }
  .public-nav nav { width: 100%; }
  .public-nav nav a { flex: 1 1 auto; }
  .public-cta, .public-secondary { width: 100%; }
  .public-hero, .public-section { padding-left: 16px; padding-right: 16px; }
  .public-hero h1 { font-size: 30px; }
  .public-section h2 { font-size: 25px; }
  .hero-proof-row { flex-direction: column; align-items: stretch; }
  .official-links, .contact-checks { grid-template-columns: 1fr; }
  .contact-form { padding: 16px; }
  .shot-metrics { grid-template-columns: 1fr; }
  .public-product-shot { overflow-x: auto; }
  .login-shell { padding: 16px; }
  .topbar { align-items: flex-start; flex-direction: column; padding: 20px; }
  main { padding: 16px; }
  .home-hero h2 { font-size: 22px; }
  .operator-menu a, .operator-more > summary { flex: 1 1 auto; justify-content: center; }
  .operator-search { grid-row: auto; }
  .operator-mini-metrics { grid-template-columns: 1fr; }
  .portfolio-class-grid { grid-template-columns: 1fr; }
  .advanced-home > summary { align-items: flex-start; flex-direction: column; }
  .service-card { grid-template-columns: 1fr; }
  .autopilot-command-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metrics, .grid, .detail-grid, .coverage-grid { grid-template-columns: 1fr; }
  .file-list li { flex-direction: column; }
}
