/* CUADRA — sistema grafico "Modern Office"
   L'interfaccia mantiene i colori configurabili del tenant, ma usa una
   struttura professionale e coerente per navigazione, schede e moduli. */
:root {
  --bg: #f4f6f8;
  --surface: #ffffff;
  --surface-2: #eef1f5;
  --accent: #b88a2f;
  --accent-dark: #8f681c;
  --accent-2: #176b5b;
  --text: #172033;
  --text-muted: #667085;
  --danger: #b42318;
  --warning: #b54708;
  --success: #067647;
  --border: #dfe3e8;
  --font-heading: "Inter", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
  --radius-sm: 7px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .05);
  --shadow-md: 0 12px 32px rgba(16, 24, 40, .10);
  --shell: #111827;
  --shell-soft: #1d2939;
  --shell-text: #f8fafc;
  --shell-muted: #98a2b3;
  --content-max: 1440px;
  --sidebar-width: 252px;
  --header-height: 72px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { min-height: 100%; background: #f4f6f8; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(circle at 85% -15%, rgba(184, 138, 47, .09), transparent 28rem),
    #f4f6f8;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button, input, select, textarea { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }

h1, h2, h3, h4, .app-title, .section-title, .card-title, .nav-brand {
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  letter-spacing: -.025em;
}

.screen { min-height: 100vh; }

/* ---------- Login ---------- */
#login-screen {
  display: grid;
  place-items: center;
  padding: 32px;
  background:
    linear-gradient(118deg, rgba(17, 24, 39, .98), rgba(29, 41, 57, .96)),
    #111827;
}

.login-layout {
  width: min(1080px, 100%);
  min-height: 650px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(380px, .9fr);
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 24px;
  box-shadow: 0 32px 90px rgba(0, 0, 0, .32);
}

.login-brand-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(48px, 7vw, 84px);
  color: #fff;
  background:
    linear-gradient(145deg, rgba(17, 24, 39, .92), rgba(29, 41, 57, .98)),
    #111827;
  overflow: hidden;
}

.login-brand-panel::before {
  content: "7C";
  position: absolute;
  right: -22px;
  top: 36px;
  font-size: 13rem;
  font-weight: 800;
  letter-spacing: -.09em;
  color: rgba(255, 255, 255, .035);
  line-height: 1;
}

.login-brand-panel::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  border: 1px solid rgba(184, 138, 47, .28);
  border-radius: 50%;
  right: -120px;
  bottom: -110px;
  box-shadow: 0 0 0 52px rgba(184, 138, 47, .04);
}

.login-brand-logo {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, .18);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .28);
  margin-bottom: 32px;
}

.login-eyebrow, .login-kicker {
  color: #d6b75c;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.login-brand-panel h1 {
  margin: 8px 0 4px;
  color: #fff;
  font-size: clamp(3.2rem, 7vw, 5.3rem);
  line-height: .96;
  letter-spacing: -.065em;
  font-weight: 800;
}

.login-claim {
  margin: 12px 0;
  color: #d6b75c;
  font-size: 1.25rem;
  font-weight: 700;
}

.login-description {
  max-width: 510px;
  margin: 0 0 30px;
  color: #cbd5e1;
  font-size: 1rem;
  line-height: 1.75;
}

.login-office-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 470px;
}

.login-office-list span {
  padding: 7px 11px;
  color: #e5e7eb;
  background: rgba(255, 255, 255, .055);
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 6px;
  font-size: .76rem;
  font-weight: 700;
}

.login-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  padding: clamp(38px, 6vw, 72px);
  background: #fff;
}

.login-mobile-brand { display: none; }
.login-box h2 { margin: 8px 0 4px; font-size: 2rem; color: #172033; }
.subtitle { margin: 0 0 30px; color: #667085; }

form {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 14px;
}

form label {
  color: #344054;
  font-size: .78rem;
  font-weight: 700;
  margin-top: 4px;
}

input, select, textarea {
  width: 100%;
  min-height: 44px;
  padding: 11px 13px;
  color: var(--text);
  background: color-mix(in srgb, var(--surface) 94%, white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: 0 1px 2px rgba(16, 24, 40, .03);
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

input::placeholder, textarea::placeholder { color: #98a2b3; }
input[type="file"], textarea { border-radius: var(--radius-sm); }
textarea { resize: vertical; min-height: 104px; }
input[type="color"] { padding: 4px; height: 44px; cursor: pointer; }

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 15%, transparent);
  background: #fff;
}

button[type="submit"], .primary-button {
  min-height: 44px;
  padding: 11px 16px;
  color: #111827;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  border: 1px solid var(--accent-dark);
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 12px color-mix(in srgb, var(--accent) 22%, transparent);
  font-weight: 750;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}

button[type="submit"]:hover, .primary-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 7px 18px color-mix(in srgb, var(--accent) 25%, transparent);
  filter: saturate(1.05);
}

button[type="submit"]:active, .primary-button:active { transform: translateY(0); }

.link-button {
  padding: 8px;
  color: var(--accent-dark);
  background: transparent;
  border: 0;
  font-size: .86rem;
  font-weight: 650;
  cursor: pointer;
}

.link-button:hover { text-decoration: underline; }
.error { margin: 12px 0 0; color: var(--danger); font-size: .86rem; }

.login-security {
  margin: 28px 0 0;
  padding-top: 18px;
  color: #98a2b3;
  border-top: 1px solid #eaecf0;
  font-size: .72rem;
  text-align: center;
}

/* ---------- App shell ---------- */
#app-screen {
  min-height: 100vh;
  padding-top: var(--header-height);
  padding-left: var(--sidebar-width);
}

.app-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
  color: var(--shell-text);
  background: rgba(17, 24, 39, .98);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 3px 16px rgba(16, 24, 40, .14);
  backdrop-filter: blur(14px);
}

.header-brand { display: flex; align-items: center; gap: 12px; min-width: 220px; }
.header-logo { width: 38px; height: 38px; border-radius: 10px; object-fit: cover; }
.header-brand > div { display: flex; flex-direction: column; line-height: 1.1; }

.app-title {
  color: #fff;
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: .08em;
}

.app-subtitle {
  margin-top: 4px;
  color: var(--shell-muted);
  font-size: .67rem;
  letter-spacing: .02em;
}

.header-actions { display: flex; align-items: center; gap: 9px; }

.system-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-right: 6px;
  color: #d0d5dd;
  font-size: .72rem;
  font-weight: 650;
}

.system-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #32d583;
  box-shadow: 0 0 0 4px rgba(50, 213, 131, .12);
}

.icon-button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  color: #d0d5dd;
  background: rgba(255, 255, 255, .045);
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 8px;
  font-size: .78rem;
  cursor: pointer;
  transition: background .16s ease, border-color .16s ease, color .16s ease;
}

.icon-button:hover {
  color: #fff;
  background: rgba(255, 255, 255, .09);
  border-color: rgba(255, 255, 255, .16);
}

.icon-button b { font-weight: 650; }
.byteflow-badge { width: 27px; height: 27px; border-radius: 7px; object-fit: cover; display: block; }

#content {
  width: min(var(--content-max), 100%);
  min-height: calc(100vh - var(--header-height));
  margin: 0 auto;
  padding: 34px clamp(22px, 3vw, 48px) 56px;
}

.bottom-nav {
  position: fixed;
  top: var(--header-height);
  bottom: 0;
  left: 0;
  z-index: 40;
  width: var(--sidebar-width);
  display: flex;
  flex-direction: column;
  gap: 3px;
  overflow-y: auto;
  padding: 18px 12px 20px;
  color: var(--shell-text);
  background: var(--shell);
  border-right: 1px solid rgba(255, 255, 255, .07);
  scrollbar-width: thin;
  scrollbar-color: #344054 transparent;
}

.nav-section-label {
  margin: 15px 11px 6px;
  color: #667085;
  font-size: .61rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.nav-section-label:first-child { margin-top: 0; }

.nav-button {
  position: relative;
  flex: 0 0 auto;
  width: 100%;
  min-height: 42px;
  display: grid;
  grid-template-columns: 29px 1fr;
  align-items: center;
  gap: 9px;
  padding: 7px 10px;
  color: #aeb7c5;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  text-align: left;
  cursor: pointer;
  transition: color .16s ease, background .16s ease, border-color .16s ease;
}

.nav-button:hover {
  color: #fff;
  background: rgba(255, 255, 255, .055);
}

.nav-button.active {
  color: #fff;
  background: linear-gradient(90deg, rgba(184, 138, 47, .21), rgba(184, 138, 47, .08));
  border-color: rgba(214, 183, 92, .23);
}

.nav-button.active::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 8px;
  bottom: 8px;
  width: 3px;
  background: #d6b75c;
  border-radius: 0 3px 3px 0;
}

.nav-index {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  color: #7f8b9c;
  background: rgba(255, 255, 255, .045);
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 6px;
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: .62rem;
  font-weight: 700;
}

.nav-button.active .nav-index {
  color: #f6df9d;
  background: rgba(184, 138, 47, .13);
  border-color: rgba(214, 183, 92, .25);
}

.nav-button > span:last-child { font-size: .79rem; font-weight: 650; }

.nav-footer {
  margin: auto 10px 0;
  padding: 18px 0 0;
  color: #d6b75c;
  border-top: 1px solid rgba(255, 255, 255, .08);
  font-size: .72rem;
  font-weight: 750;
  line-height: 1.55;
}

.nav-footer span { color: #7f8b9c; font-weight: 500; }

/* ---------- Contenuti ---------- */
.section-title {
  position: relative;
  margin: 0 0 24px;
  color: #172033;
  font-size: clamp(1.7rem, 2.3vw, 2.25rem);
  line-height: 1.15;
  font-weight: 760;
  letter-spacing: -.045em;
}

.section-title::after {
  content: "";
  display: block;
  width: 42px;
  height: 3px;
  margin-top: 12px;
  background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 20%, transparent));
  border-radius: 3px;
}

.card {
  position: relative;
  padding: 20px;
  margin-bottom: 14px;
  color: var(--text);
  background: color-mix(in srgb, var(--surface) 96%, white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.card:hover {
  border-color: color-mix(in srgb, var(--accent) 24%, var(--border));
  box-shadow: 0 5px 18px rgba(16, 24, 40, .06);
}

.card h2 {
  margin: 0 0 16px;
  padding-bottom: 11px;
  color: #344054;
  border-bottom: 1px solid var(--border);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.card-code {
  display: inline-grid;
  place-items: center;
  width: 27px;
  height: 23px;
  margin-right: 7px;
  color: var(--accent-dark);
  background: color-mix(in srgb, var(--accent) 11%, white);
  border: 1px solid color-mix(in srgb, var(--accent) 24%, var(--border));
  border-radius: 5px;
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: .61rem;
  font-weight: 800;
  letter-spacing: 0;
  vertical-align: middle;
}

.kpi-card {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 5%, white), #fff 62%);
  border-color: color-mix(in srgb, var(--accent) 24%, var(--border));
}

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

.dashboard-grid > .card { margin-bottom: 0; }

.stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 38px;
  padding: 7px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--border) 72%, transparent);
}

.stat-row:last-child { border-bottom: 0; }
.stat-label { color: var(--text-muted); font-size: .86rem; }
.stat-value { color: #172033; font-size: 1.15rem; font-weight: 760; text-align: right; }
.stat-value.positive { color: var(--success); }
.stat-value.negative { color: var(--danger); }

.list-item {
  position: relative;
  padding: 13px 2px;
  border-bottom: 1px solid var(--border);
  transition: background .14s ease;
}

.list-item:last-child { border-bottom: 0; }
.list-item-title { color: #172033; font-size: .91rem; font-weight: 700; }
.list-item-meta { margin-top: 3px; color: var(--text-muted); font-size: .78rem; line-height: 1.55; }

.empty-state {
  margin: 0;
  padding: 30px 12px;
  color: var(--text-muted);
  text-align: center;
  font-size: .86rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 23px;
  padding: 3px 9px;
  color: #344054;
  background: #f2f4f7;
  border: 1px solid #e4e7ec;
  border-radius: 999px;
  font-size: .66rem;
  font-weight: 750;
  letter-spacing: .015em;
}

.badge.warn {
  color: var(--danger);
  background: #fef3f2;
  border-color: #fecdca;
}

.loading, .toast {
  margin: 20px 0;
  padding: 14px 16px;
  color: var(--text-muted);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.toast.error { color: var(--danger); background: #fef3f2; border-color: #fecdca; }
.toast.success { color: var(--success); background: #ecfdf3; border-color: #abefc6; }
.hr { height: 1px; margin: 18px 0; background: var(--border); }

/* ---------- Campi e anteprima ---------- */
.field { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.field label { color: var(--text-muted); font-size: .84rem; font-weight: 650; }
.field input { width: auto; flex: 0 0 78px; }

#aspetto-preview {
  margin-top: 18px;
  padding: 20px;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.aspetto-preview-title { margin-bottom: 12px; color: var(--accent); font-size: 1.25rem; font-weight: 750; }
.aspetto-preview-card { margin-bottom: 12px; padding: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.aspetto-preview-link { color: var(--accent-2); font-weight: 700; }
.aspetto-preview-button { padding: 10px 15px; color: #fff; background: var(--accent); border: 0; border-radius: var(--radius-sm); font-weight: 700; }

/* ---------- Dialoghi ---------- */
.dialog-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(15, 23, 42, .68);
  backdrop-filter: blur(5px);
}

.dialog {
  width: min(430px, 100%);
  padding: 28px;
  color: var(--text);
  background: #fff;
  border: 1px solid rgba(255, 255, 255, .75);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 64px rgba(15, 23, 42, .24);
  text-align: center;
}

.dialog-title { margin: 14px 0 5px; color: #172033; font-size: 1.35rem; }
.dialog-body { margin: 0 0 18px; color: var(--text-muted); font-size: .88rem; }

.dialog-contact-link {
  display: block;
  margin-bottom: 9px;
  padding: 11px 14px;
  color: #344054;
  background: #f8fafc;
  border: 1px solid #e4e7ec;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-size: .85rem;
  font-weight: 700;
}

.dialog-contact-link:hover { color: var(--accent-dark); border-color: color-mix(in srgb, var(--accent) 45%, #e4e7ec); }

/* ---------- Desktop: griglie automatiche ---------- */
@media (min-width: 900px) {
  #content > .card { max-width: 100%; }

  /* Le prime schede di riepilogo guadagnano respiro senza cambiare il markup. */
  #content {
    display: block;
  }

  .card form {
    max-width: 780px;
  }
}

/* ---------- Tablet e mobile ---------- */
@media (max-width: 899px) {
  :root { --header-height: 64px; }

  #app-screen { padding-left: 0; padding-bottom: 78px; }
  .app-header { height: var(--header-height); padding: 0 14px; }
  .header-logo { width: 34px; height: 34px; }
  .app-subtitle, .system-status, .assist-button span, .logout-button b { display: none; }
  .header-actions { gap: 7px; }
  .icon-button { min-width: 38px; justify-content: center; padding: 4px; }

  #content {
    min-height: calc(100vh - var(--header-height));
    padding: 24px 15px 34px;
  }

  .bottom-nav {
    top: auto;
    right: 0;
    width: auto;
    height: calc(72px + env(safe-area-inset-bottom, 0px));
    flex-direction: row;
    gap: 2px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 7px 8px env(safe-area-inset-bottom, 0px);
    background: rgba(17, 24, 39, .98);
    border-top: 1px solid rgba(255, 255, 255, .08);
    border-right: 0;
    box-shadow: 0 -5px 20px rgba(16, 24, 40, .16);
    scrollbar-width: none;
  }

  .bottom-nav::-webkit-scrollbar { display: none; }
  .nav-section-label, .nav-footer { display: none; }

  .nav-button {
    flex: 0 0 68px;
    width: 68px;
    min-height: 56px;
    grid-template-columns: 1fr;
    grid-template-rows: 26px 16px;
    place-items: center;
    gap: 3px;
    padding: 4px;
    text-align: center;
  }

  .nav-button.active::before {
    left: 12px;
    right: 12px;
    top: -7px;
    bottom: auto;
    width: auto;
    height: 3px;
    border-radius: 0 0 3px 3px;
  }

  .nav-index { width: 26px; height: 26px; }
  .nav-button > span:last-child { font-size: .61rem; line-height: 1; }

  .section-title { margin-bottom: 18px; font-size: 1.65rem; }
  .card { padding: 17px; border-radius: 11px; }
  .dashboard-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  #login-screen { padding: 0; background: #fff; }

  .login-layout {
    min-height: 100vh;
    grid-template-columns: 1fr;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .login-brand-panel { display: none; }
  .login-box { justify-content: flex-start; padding: 42px 24px; }

  .login-mobile-brand {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 58px;
    color: #172033;
    font-size: 1rem;
    font-weight: 850;
    letter-spacing: .08em;
  }

  .login-mobile-brand img { width: 42px; height: 42px; object-fit: cover; border-radius: 10px; }
  .login-box h2 { font-size: 1.85rem; }
}

@media (max-width: 520px) {
  .stat-row { align-items: flex-start; gap: 12px; }
  .stat-label { max-width: 58%; }
  .stat-value { font-size: 1.02rem; }
  .field { align-items: flex-start; flex-direction: column; }
  .field input { width: 100%; }
  .dialog { padding: 24px 18px; }
}

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

.office-hero{display:flex;justify-content:space-between;gap:24px;align-items:center;padding:30px;margin-bottom:18px;background:linear-gradient(135deg,#172033,#26344d);color:#fff;border-radius:14px;border-left:5px solid var(--accent)}
.office-hero h1{margin:7px 0 9px;font-size:clamp(1.7rem,3vw,2.6rem)}.office-hero p{max-width:760px;margin:0;color:#dbe3ef}.eyebrow{color:#e5c86c;font-weight:800;letter-spacing:.16em;font-size:.75rem}
.office-seal{min-width:90px;text-align:center;font-size:2.3rem;font-weight:900;color:#e5c86c}.office-seal small{font-size:.62rem;letter-spacing:.13em}
.agent-grid,.metric-grid,.office-grid{display:grid;gap:12px;margin-bottom:18px}.agent-grid{grid-template-columns:repeat(5,1fr)}.metric-grid{grid-template-columns:repeat(6,1fr)}.office-grid{grid-template-columns:repeat(2,1fr)}
.agent-card,.metric-card,.office-card{background:var(--surface);border:1px solid var(--border);border-radius:11px;padding:16px}.agent-card span,.office-card>span{font-weight:850;color:var(--accent-2);text-transform:uppercase;letter-spacing:.08em;font-size:.78rem}.agent-card p,.office-card p{color:var(--text-muted);font-size:.82rem;margin:7px 0 0}.metric-card b{display:block;font-size:1.6rem;color:#172033}.metric-card span{font-size:.72rem;color:var(--text-muted)}
.compact-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.compact-form label{display:grid;gap:6px;font-size:.78rem;font-weight:750;color:var(--text-muted)}.compact-form button{align-self:end}.profile-form{grid-template-columns:repeat(3,minmax(0,1fr))}.workflow-note{padding:11px 13px;background:#f7f1de;border-left:3px solid var(--accent);font-size:.82rem}.cultivation-row{display:flex;justify-content:space-between;gap:14px}.action-row{display:flex;gap:8px;flex-wrap:wrap}
@media(max-width:980px){.agent-grid{grid-template-columns:repeat(2,1fr)}.metric-grid{grid-template-columns:repeat(3,1fr)}.profile-form,.office-grid{grid-template-columns:1fr 1fr}}
@media(max-width:600px){.office-hero{align-items:flex-start;padding:22px}.office-seal{display:none}.agent-grid,.metric-grid,.office-grid,.compact-form,.profile-form{grid-template-columns:1fr}.cultivation-row{display:block}.action-row{margin-top:10px}}
