:root {
  --paper: #eef7fc;
  --paper-line: #c8dde8;
  --sheet: #ffffff;
  --sheet-soft: #f7fcff;
  --ink: #0f1d2e;
  --ink-2: #0e2748;
  --muted: #4a5d70;
  --quiet: #7f95a8;
  --line: #c8dde8;
  --line-strong: #9fc3d7;
  --teal: #1a5fbb;
  --teal-deep: #0d3f7a;
  --teal-soft: #d6eef8;
  --clay: #c9a84c;
  --clay-soft: #fbf2cf;
  --blue: #2e8bc0;
  --blue-soft: #d6eef8;
  --danger: #ff4444;
  --success: #16845b;
  --status-free-bg: #dff6ed;
  --status-free-text: #0f6b49;
  --status-free-strong: #16845b;
  --status-reserved-bg: #fbf2cf;
  --status-reserved-text: #745916;
  --status-reserved-strong: #c9a84c;
  --status-sold-bg: #e8eef3;
  --status-sold-text: #4a5d70;
  --status-sold-strong: #7f95a8;
  --status-construction-bg: #d6eef8;
  --status-construction-text: #0d3f7a;
  --status-construction-strong: #1a5fbb;
  --status-neutral-bg: #eef7fc;
  --status-neutral-text: #4a5d70;
  --status-neutral-strong: #7f95a8;
  --shadow: 0 32px 90px rgba(10, 24, 41, .18);
  --shadow-soft: 0 16px 42px rgba(10, 24, 41, .09);
  --shadow-line: 0 1px 0 rgba(255,255,255,.82) inset, 0 0 0 1px rgba(10,24,41,.07);
  --radius: 8px;
  --radius-lg: 14px;
  --ease: cubic-bezier(.23, 1, .32, 1);
  --ease-in-out: cubic-bezier(.77, 0, .175, 1);
  --fast: 150ms;
  --medium: 240ms;
  color-scheme: light;
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 0 0, rgba(110,198,230,.22), transparent 30vw),
    linear-gradient(135deg, rgba(26,95,187,.06), transparent 38%),
    linear-gradient(90deg, rgba(10,24,41,.045) 1px, transparent 1px),
    linear-gradient(180deg, rgba(10,24,41,.04) 1px, transparent 1px),
    var(--paper);
  background-size: auto, auto, 74px 74px, 74px 74px, auto;
  -webkit-tap-highlight-color: rgba(26, 95, 187, .14);
}
button, input, select { font: inherit; }
button, a.button {
  border: 0;
  cursor: pointer;
  text-decoration: none;
  touch-action: manipulation;
}
button:disabled { cursor: wait; opacity: .58; }
button, a.button, input, select {
  transition-property: background-color, border-color, color, box-shadow, transform, opacity;
  transition-duration: var(--fast);
  transition-timing-function: var(--ease);
}
button:not(:disabled):active, a.button:active { transform: scale(.97); }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid rgba(26, 95, 187, .28);
  outline-offset: 2px;
}
svg { width: 18px; height: 18px; flex: 0 0 auto; stroke-width: 1.9; }
table {
  width: 100%;
  border-collapse: collapse;
  background: var(--sheet);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}
th, td { padding: 15px 18px; text-align: left; border-bottom: 1px solid var(--line); font-size: 14px; vertical-align: top; }
th { color: var(--muted); background: var(--sheet-soft); font-weight: 780; }
th, td { border-left: 0; border-right: 0; }
tr:last-child td { border-bottom: 0; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: -999px; top: 8px; }
.skip-link:focus { left: 8px; z-index: 100; padding: 10px 12px; color: var(--ink); background: var(--sheet); border-radius: var(--radius); box-shadow: var(--shadow); }

[data-tooltip] {
  position: relative;
}
[data-tooltip]::before,
[data-tooltip]::after {
  position: absolute;
  left: 50%;
  z-index: 120;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, 6px);
  transition: opacity var(--fast) var(--ease), transform var(--fast) var(--ease);
}
[data-tooltip]::before {
  content: "";
  top: calc(100% + 4px);
  border: 6px solid transparent;
  border-bottom-color: #0A1829;
}
[data-tooltip]::after {
  content: attr(data-tooltip);
  top: calc(100% + 15px);
  width: max-content;
  max-width: min(280px, 82vw);
  padding: 8px 10px;
  color: #fff;
  background: #0A1829;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  font-size: 12px;
  font-weight: 760;
  line-height: 1.25;
  text-align: center;
  white-space: normal;
}
[data-tooltip]:hover::before,
[data-tooltip]:hover::after,
[data-tooltip]:focus-visible::before,
[data-tooltip]:focus-visible::after,
[data-tooltip]:focus-within::before,
[data-tooltip]:focus-within::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

.portal-shell {
  width: min(100%, 1760px);
  min-height: 100dvh;
  margin: 0 auto;
  padding: 18px;
}
.command-bar {
  position: sticky;
  top: 14px;
  z-index: 30;
  min-height: 72px;
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 9px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(255,255,255,.12), transparent 40%),
    #0A1829;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 22px;
  box-shadow: 0 28px 80px rgba(10,24,41,.24);
  backdrop-filter: blur(18px);
}
.nav-toggle {
  display: none;
}
.mobile-nav-backdrop {
  display: none;
}
.brand-mark {
  min-height: 48px;
  display: grid;
  align-content: center;
  padding: 0 10px;
  color: #fff;
  text-decoration: none;
}
.brand-mark span {
  font-size: 24px;
  line-height: 1;
  font-weight: 880;
  letter-spacing: 0;
}
.brand-mark small {
  margin-top: 5px;
  color: rgba(255,255,255,.72);
  font-size: 11px;
  line-height: 1;
  text-transform: uppercase;
  font-weight: 780;
}
.module-nav {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 5px;
  overflow-x: auto;
  scrollbar-width: none;
}
.module-nav::-webkit-scrollbar { display: none; }
.module-nav-mobile {
  display: none;
}
.module-nav a {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  color: rgba(255,255,255,.72);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 760;
  text-decoration: none;
  white-space: nowrap;
}
.module-nav a:hover { color: #fff; background: rgba(255,255,255,.08); }
.module-nav a.active {
  color: var(--ink);
  background: #fff;
  box-shadow: 0 14px 34px rgba(0,0,0,.28);
}
.nav-badge {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  margin-left: auto;
  padding: 0 6px;
  color: #fff;
  font-size: 11px;
  font-weight: 880;
  line-height: 1;
  background: var(--danger);
  border-radius: 999px;
}
.nav-badge[hidden] { display: none; }
.operator-tools, .profile { display: flex; align-items: center; gap: 9px; }
.client-work-toggle {
  width: 46px;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: rgba(255,255,255,.82);
  background: rgba(255,255,255,.1);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
  border-radius: 999px;
}
.client-work-toggle:hover {
  color: #fff;
  background: rgba(255,255,255,.18);
}
.client-work-toggle.is-active {
  color: #0f1d2e;
  background: var(--clay-soft);
  box-shadow: 0 14px 30px rgba(0,0,0,.22), inset 0 0 0 1px rgba(201,168,76,.45);
}
body.is-client-work-mode .command-bar {
  box-shadow: 0 28px 80px rgba(10,24,41,.24), 0 0 0 3px rgba(201,168,76,.28);
}
.profile {
  min-height: 46px;
  padding: 3px 3px 3px 14px;
  color: #fff;
  background: rgba(255,255,255,.08);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
  border-radius: 999px;
}
.profile span {
  max-width: 170px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 780;
}
.icon-button {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: rgba(255,255,255,.82);
  background: rgba(255,255,255,.1);
  border-radius: 999px;
}
.icon-button:hover { color: #fff; background: rgba(255,255,255,.18); }
.top-news-button {
  position: relative;
  flex: 0 0 auto;
  text-decoration: none;
}
.top-news-button.active {
  color: var(--ink);
  background: #fff;
  box-shadow: 0 14px 30px rgba(0,0,0,.22);
}

.stage {
  display: grid;
  gap: 16px;
  padding: 24px 0 40px;
}
.page-hero {
  min-height: 132px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 16px;
  align-items: stretch;
  overflow: hidden;
  padding: clamp(18px, 2.4vw, 26px);
  color: #fff;
  background:
    linear-gradient(135deg, rgba(255,255,255,.12), transparent 34%),
    radial-gradient(circle at 86% 14%, rgba(26,95,187,.48), transparent 26%),
    linear-gradient(135deg, #0A1829, #0D3F7A);
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
  position: relative;
}
.page-hero-compact {
  grid-template-columns: 1fr;
}
.page-hero > div {
  width: min(980px, 100%);
  display: grid;
  position: relative;
  z-index: 1;
  align-content: center;
  gap: 7px;
}
.page-hero h1 {
  margin: 0;
  max-width: 24ch;
  font-size: clamp(30px, 3vw, 40px);
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0;
  text-wrap: balance;
}
.page-hero p:not(.eyebrow) {
  max-width: 68ch;
  margin: 0;
  color: rgba(255,255,255,.82);
  font-size: 15px;
  line-height: 1.4;
  text-wrap: pretty;
}
.hero-status-card {
  position: relative;
  z-index: 1;
  align-self: stretch;
  display: grid;
  align-content: center;
  gap: 10px;
  min-height: 104px;
  padding: 14px;
  color: #fff;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 16px;
  box-shadow: 0 16px 36px rgba(0,0,0,.16);
  backdrop-filter: blur(18px);
}
.hero-status-card strong {
  max-width: 22ch;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.05;
  text-wrap: balance;
}
.hero-status-card dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  overflow: visible;
  border-radius: 12px;
  background: transparent;
}
.hero-status-card div {
  min-height: 48px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 9px 10px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
}
.hero-status-card dt { color: rgba(255,255,255,.82); }
.hero-status-card dd { color: #fff; }
.page-body {
  display: grid;
  gap: 14px;
}
.eyebrow {
  margin: 0;
  color: var(--clay);
  font-size: 11px;
  line-height: 1.2;
  text-transform: uppercase;
  font-weight: 850;
  letter-spacing: 0;
}
.primary, .secondary, .ghost, .button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 15px;
  border-radius: 999px;
  font-weight: 820;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}
.primary { color: #fff; background: var(--teal); box-shadow: 0 14px 26px rgba(26,95,187,.18); }
.primary:hover { background: var(--blue); }
.secondary, .button { color: var(--ink); background: var(--sheet); box-shadow: inset 0 0 0 1px var(--line); }
.secondary:hover, .button:hover { background: var(--sheet-soft); box-shadow: inset 0 0 0 1px var(--line-strong); }
.ghost { color: var(--teal); background: transparent; }
.ghost:hover { background: var(--teal-soft); }

.login-screen {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(340px, 480px) minmax(360px, 680px);
  place-content: center;
  align-items: stretch;
  gap: 18px;
  padding: 24px;
  background:
    radial-gradient(circle at 12% 18%, rgba(26,95,187,.18), transparent 28%),
    radial-gradient(circle at 82% 82%, rgba(201,168,76,.18), transparent 30%),
    var(--paper);
}
.login-panel {
  width: 100%;
  display: grid;
  gap: 22px;
  align-content: start;
  padding: clamp(24px, 4vw, 40px);
  background: var(--sheet);
  border-radius: 28px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(10,24,41,.06);
}
.login-brand { color: var(--ink); font-size: 30px; font-weight: 900; }
.login-brand span { display: block; margin-top: 6px; color: var(--muted); font-size: 12px; text-transform: uppercase; font-weight: 780; }
.login-form { display: grid; gap: 12px; }
.login-form label, .number-field { display: grid; gap: 7px; color: var(--muted); font-size: 13px; font-weight: 780; }
.login-showcase {
  min-height: 520px;
  display: grid;
  align-content: end;
  gap: 18px;
  padding: clamp(24px, 4vw, 44px);
  color: #fff;
  background:
    linear-gradient(135deg, rgba(255,255,255,.12), transparent 38%),
    radial-gradient(circle at 72% 22%, rgba(26,95,187,.52), transparent 28%),
    linear-gradient(135deg, #0A1829, #0D3F7A);
  border-radius: 30px;
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}
.login-showcase::before {
  content: "";
  position: absolute;
  inset: 28px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 24px;
  pointer-events: none;
}
.login-showcase > span {
  width: max-content;
  padding: 7px 10px;
  background: rgba(255,255,255,.1);
  border-radius: 999px;
  color: rgba(255,255,255,.86);
  font-size: 12px;
  font-weight: 850;
}
.login-showcase strong {
  max-width: 15ch;
  font-size: clamp(38px, 5.8vw, 72px);
  line-height: .92;
  letter-spacing: 0;
  text-wrap: balance;
}
input, select {
  width: 100%;
  min-height: 46px;
  padding: 10px 13px;
  color: var(--ink);
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: 12px;
}
input:hover, select:hover { border-color: var(--line-strong); }
input[aria-invalid="true"] { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(180,35,24,.12); }
.form-error, .field-error { min-height: 20px; margin: 0; color: var(--danger); font-size: 13px; font-weight: 760; }

.workspace-intro {
  display: grid;
  grid-template-columns: minmax(300px, .9fr) minmax(420px, 1.1fr);
  gap: 12px;
  align-items: stretch;
}
.workspace-intro > div:first-child,
.workspace-intro > span {
  min-height: 88px;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 16px 18px;
  background:
    linear-gradient(135deg, rgba(26,95,187,.08), transparent 42%),
    var(--sheet);
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(10,24,41,.06);
}
.workspace-intro h2 {
  margin: 0;
  font-size: clamp(24px, 2.2vw, 32px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: 0;
  text-wrap: balance;
}
.workspace-intro p:not(.eyebrow) {
  max-width: 56ch;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.38;
}
.workspace-intro > span {
  min-height: 76px;
  align-content: center;
  justify-items: start;
  color: var(--teal);
  font-size: 22px;
  font-weight: 900;
  background: var(--teal-soft);
}
.quick-metrics {
  display: grid;
  grid-template-columns: minmax(96px, .72fr) minmax(116px, .86fr) minmax(96px, .72fr) minmax(220px, 1.35fr);
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(46,139,192,.16), transparent 46%),
    #0A1829;
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(255,255,255,.14);
}
.quick-metrics span {
  min-height: 88px;
  min-width: 0;
  position: relative;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 14px;
  color: rgba(255,255,255,.7);
  font-size: 12px;
}
.quick-metrics span + span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  bottom: 16px;
  width: 1px;
  background: rgba(255,255,255,.18);
}
.quick-metrics span:last-child {
  min-width: 220px;
}
.quick-metrics strong {
  color: #fff;
  font-size: clamp(21px, 1.7vw, 28px);
  line-height: 1;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.quick-metrics span:last-child strong {
  font-size: clamp(20px, 1.55vw, 26px);
  letter-spacing: .01em;
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) 190px 190px auto;
  gap: 10px;
  padding: 10px;
  background: rgba(255,255,255,.76);
  border: 1px solid rgba(255,255,255,.68);
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
}
.search-field, .select-field { position: relative; display: block; }
.search-field svg { position: absolute; left: 14px; top: 14px; color: var(--quiet); pointer-events: none; }
.search-field input { padding-left: 42px; }
.select-field select { appearance: none; padding-right: 38px; }
.select-field svg { position: absolute; right: 13px; top: 14px; width: 16px; height: 16px; color: var(--quiet); transform: rotate(90deg); pointer-events: none; }

.object-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
}
.object-card {
  min-height: 124px;
  display: grid;
  grid-template-columns: 178px minmax(0, 1fr);
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(26,95,187,.04), transparent 40%),
    var(--sheet);
  border: 1px solid rgba(10,24,41,.06);
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  transition: transform 180ms var(--ease), box-shadow 180ms var(--ease), border-color 180ms var(--ease);
}
.object-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: rgba(26,95,187,.22); }
.object-card:focus-visible {
  outline: 3px solid rgba(26,95,187,.42);
  outline-offset: 3px;
  border-color: rgba(26,95,187,.34);
}
.object-image, .detail-hero {
  min-height: 100%;
  position: relative;
  background-size: cover !important;
  background-position: var(--object-cover-position, center) !important;
  outline: 1px solid rgba(0,0,0,.1);
  outline-offset: -1px;
}
.object-image::after, .detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,.04), rgba(0,0,0,.18)),
    linear-gradient(135deg, rgba(255,255,255,.28), rgba(0,0,0,.04));
}
.status-badge, .object-image .status-badge, .detail-hero span {
  position: absolute;
  z-index: 2;
  left: 10px;
  top: 10px;
  right: auto;
  max-width: calc(100% - 20px);
  padding: 5px 8px;
  color: var(--ink);
  background: rgba(255,255,255,.9);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 850;
  box-shadow: 0 8px 20px rgba(10,24,41,.13);
}
.status-badge.status-badge--free {
  color: var(--status-free-text);
  background: var(--status-free-bg);
  box-shadow: 0 8px 20px rgba(22,132,91,.18);
}
.status-badge.status-badge--reserved {
  color: var(--status-reserved-text);
  background: var(--status-reserved-bg);
  box-shadow: 0 8px 20px rgba(201,168,76,.18);
}
.status-badge.status-badge--sold {
  color: var(--status-sold-text);
  background: var(--status-sold-bg);
  box-shadow: 0 8px 20px rgba(74,93,112,.13);
}
.status-badge.status-badge--construction {
  color: var(--status-construction-text);
  background: var(--status-construction-bg);
  box-shadow: 0 8px 20px rgba(26,95,187,.16);
}
.status-badge.status-badge--neutral {
  color: var(--status-neutral-text);
  background: var(--status-neutral-bg);
}
.object-card-body {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(300px, .95fr) minmax(132px, auto);
  gap: 12px;
  align-items: center;
  padding: 14px;
}
.object-heading { min-width: 0; }
.object-card h2, .section-header h2, .empty-state h2, .error-state h2, .files-space-header h2 {
  margin: 0;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.12;
  font-weight: 880;
  letter-spacing: 0;
  text-wrap: balance;
}
.object-card p, .empty-state p, .error-state p, .calc-note, .files-space-header p:not(.eyebrow), .files-upload-copy p:not(.eyebrow), .calculator-header-panel p:not(.eyebrow), .compare-intro p:not(.eyebrow), .form-section p {
  margin: 4px 0 0;
  color: var(--muted);
  line-height: 1.38;
  text-wrap: pretty;
}
dl { margin: 0; }
.object-card dl, .metrics, .result-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border-radius: 12px; overflow: hidden; }
dt, .metrics span, .result-list dt, .compare-metrics dt, .compare-summary-metric span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.2;
  font-weight: 850;
}
dd, .metrics strong, .result-list dd, .compare-metrics dd, .compare-summary-metric strong {
  margin: 3px 0 0;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  font-weight: 900;
}
.object-card dl div, .metrics div, .result-list div, .compare-metrics div, .compare-summary-metric {
  min-height: 54px;
  display: grid;
  align-content: center;
  padding: 8px 9px;
  background: rgba(247,249,245,.94);
}
.card-actions { display: grid; gap: 7px; justify-items: stretch; align-items: center; }
.object-card .button,
.object-card .ghost {
  min-height: 38px;
  padding: 0 12px;
}

.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: start; }
.detail-main, .detail-side, .calc-form, .calc-result, .calculator-header-panel, .compare-card, .compare-summary-card, .files-space-header, .files-panel, .files-upload-panel, .tree, .map-list {
  background: var(--sheet);
  border: 1px solid rgba(10,24,41,.06);
  border-radius: 26px;
  box-shadow: var(--shadow-soft);
}
.detail-main, .detail-side, .calc-form, .calc-result, .calculator-header-panel, .compare-summary-card, .files-space-header, .files-panel, .files-upload-panel, .tree { padding: 22px; }
.detail-hero { min-height: 360px; margin: -22px -22px 22px; border-radius: 26px 26px 0 0; }
.section-header { display: flex; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.detail-actions {
  align-self: flex-start;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}
.detail-actions .button,
.detail-actions .primary {
  align-self: center;
  min-height: 38px;
  padding: 0 13px;
  border-radius: 16px;
  font-size: 13px;
  font-weight: 850;
  box-shadow: inset 0 0 0 1px var(--line);
}
.detail-actions .primary {
  box-shadow: 0 10px 18px rgba(26,95,187,.14);
}
.detail-actions svg {
  width: 16px;
  height: 16px;
}

.object-step-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 8px;
}

.object-step-actions .button {
  justify-content: center;
  min-height: 40px;
  min-width: 0;
  padding-inline: 10px;
  font-size: 14px;
}

.button.is-disabled {
  color: rgba(74, 93, 112, .72);
  background: var(--soft);
  border-color: var(--line);
  box-shadow: none;
  cursor: default;
  pointer-events: none;
}
.tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 18px;
  padding: 6px;
  overflow-x: auto;
  background: #EEF7FC;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(10,24,41,.05);
}
.tabs button {
  min-height: 38px;
  padding: 0 14px;
  color: var(--muted);
  background: transparent;
  border-radius: 999px;
  white-space: nowrap;
}
.tabs .active { color: #fff; background: var(--ink); font-weight: 850; box-shadow: 0 10px 24px rgba(10,24,41,.16); }
.tab-panel { display: grid; gap: 14px; }
.metrics { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); margin: 16px 0; }
.internal-block { padding: 18px; color: #7a6324; background: var(--clay-soft); border-radius: 18px; box-shadow: inset 0 0 0 1px rgba(201,168,76,.13); }
.object-management-bar {
  display: flex;
  justify-content: flex-end;
}
.object-detail-stack,
.object-editor,
.object-editor-form {
  display: grid;
  gap: 16px;
}
.object-detail-section {
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--soft);
}
.object-dossier-view {
  margin-top: 10px;
}
.object-detail-section h3 {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
}
.object-description {
  display: grid;
  gap: 10px;
  color: var(--muted);
  line-height: 1.6;
}
.object-description p { margin: 0; }
.object-editor {
  padding: 22px;
  background: var(--sheet);
  border: 1px solid rgba(10,24,41,.06);
  border-radius: 26px;
  box-shadow: var(--shadow-soft);
}
.object-editor-cancel {
  align-self: flex-start;
  min-height: 36px;
  padding: 0 13px;
  color: var(--teal-deep);
  background: var(--teal-soft);
  border: 1px solid rgba(26,95,187,.2);
  box-shadow: none;
}
.object-editor-cancel:hover {
  color: #fff;
  background: var(--teal);
  border-color: transparent;
}
.draft-toolbar {
  min-height: 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  color: var(--muted);
  background: var(--sheet-soft);
  border: 1px solid var(--line);
  border-radius: 16px;
  font-size: 13px;
  font-weight: 780;
}
.draft-toolbar div {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}
.draft-toolbar button {
  min-height: 32px;
  padding: 0 11px;
  font-size: 12px;
}
.object-editor-submit {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
}
.object-editor-submit button {
  min-height: 40px;
  padding-inline: 14px;
}
.object-field-control {
  min-height: 44px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 0 10px 0 12px;
  background: var(--sheet-soft);
  border-radius: 14px;
  box-shadow: inset 0 0 0 1px var(--line), 0 1px 0 rgba(255,255,255,.72);
  transition-property: box-shadow, background-color;
  transition-duration: 160ms;
  transition-timing-function: ease;
}
.object-field-control:focus-within {
  background: var(--sheet);
  box-shadow: inset 0 0 0 2px var(--teal), 0 0 0 4px rgba(26,95,187,.11);
}
.object-field-control input {
  min-height: 44px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  font-variant-numeric: tabular-nums;
}
.object-field-control input:focus { outline: 0; }
.object-field-control small {
  min-width: max-content;
  color: var(--quiet);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}
.object-editor-wide,
.textarea-field {
  grid-column: 1 / -1;
}
.section-header-compact {
  margin-bottom: 8px;
}
.section-header-compact h3 {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
}
.object-dossier-editor {
  display: grid;
  gap: 14px;
}
.dossier-repeater {
  align-items: stretch;
}
.dossier-repeater-rows {
  grid-column: 1 / -1;
  display: grid;
  gap: 10px;
}
.dossier-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px;
  gap: 8px;
  padding: 12px;
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.dossier-row-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(130px, 1fr));
  gap: 10px;
}
.dossier-field {
  min-width: 0;
}
.dossier-field-wide {
  grid-column: span 2;
}
.dossier-field > span:first-child {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 820;
}
.dossier-field > input,
.dossier-field > textarea {
  width: 100%;
  min-height: 40px;
  padding: 10px 11px;
  color: var(--ink);
  background: var(--sheet-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  font: inherit;
  font-size: 13px;
}
.dossier-field textarea {
  resize: vertical;
  line-height: 1.4;
}
.dossier-checkbox {
  min-height: 40px;
  align-self: end;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  background: var(--sheet-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.dossier-checkbox input {
  width: 16px;
  min-height: 0;
  padding: 0;
  accent-color: var(--teal);
}
.dossier-checkbox span {
  margin: 0;
  color: var(--ink);
}
.dossier-row-remove {
  align-self: start;
  width: 38px;
  height: 38px;
  padding: 0;
  color: var(--danger);
  background: #fff;
  border: 1px solid rgba(188, 69, 69, .2);
  box-shadow: none;
}
.object-dossier-stack {
  gap: 18px;
}
.object-dossier-stack h3 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 17px;
}
.dossier-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--sheet);
}
.dossier-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  color: var(--ink);
  font-size: 13px;
}
.dossier-table th,
.dossier-table td {
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
.dossier-table th {
  color: var(--muted);
  background: var(--sheet-soft);
  font-size: 11px;
  font-weight: 880;
  text-transform: uppercase;
}
.dossier-table tr:last-child td {
  border-bottom: 0;
}
.dossier-table td {
  line-height: 1.45;
}
.dossier-table a {
  color: var(--teal-deep);
  font-weight: 850;
}
.object-files-table tr[data-open-object-file] {
  cursor: pointer;
}
.object-files-table tr[data-open-object-file]:hover td,
.object-files-table tr[data-open-object-file]:focus-visible td {
  background: var(--sheet-soft);
}
.object-files-table tr[data-open-object-file]:focus-visible {
  outline: 3px solid rgba(26, 95, 187, .28);
  outline-offset: -3px;
}
.dossier-download-button {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  color: var(--teal-deep);
  background: var(--blue-soft);
  border-radius: 999px;
  text-decoration: none;
}
.dossier-download-button:hover {
  color: #fff;
  background: var(--teal);
}
.dossier-file-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  white-space: nowrap;
}
.dossier-info-block {
  display: grid;
  gap: 10px;
  padding: 16px;
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.dossier-info-block + .dossier-info-block {
  margin-top: 10px;
}
.dossier-info-block strong,
.dossier-info-block p,
.dossier-info-block dl,
.dossier-info-block dd {
  margin: 0;
}
.dossier-info-block span,
.dossier-info-block small,
.dossier-info-block dt {
  color: var(--muted);
}
.dossier-info-block dl {
  display: grid;
  gap: 8px;
}
.dossier-info-block dd {
  color: var(--ink);
  line-height: 1.45;
}
.textarea-field textarea {
  min-height: 150px;
  resize: vertical;
  padding: 13px 14px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 14px;
  font: inherit;
  line-height: 1.45;
}
.rooms-field {
  position: relative;
  z-index: 4;
}
.rooms-field.is-open {
  z-index: 40;
}
.rooms-selector-button {
  width: 100%;
  min-height: 46px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 0 13px;
  color: var(--ink);
  text-align: left;
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: none;
}
.rooms-selector-button span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rooms-selector-button svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  color: var(--quiet);
  transform: rotate(90deg);
  transition: transform 160ms var(--ease);
}
.rooms-field.is-open .rooms-selector-button svg {
  transform: rotate(-90deg);
}
.rooms-popover {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 50;
  display: grid;
  gap: 4px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 18px 36px rgba(10,24,41,.14);
}
.rooms-popover[hidden] {
  display: none;
}
.rooms-popover label {
  min-height: 34px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 8px;
  color: var(--ink);
  border-radius: 10px;
  cursor: pointer;
}
.rooms-popover label:hover {
  background: var(--sheet-soft);
}
.rooms-popover input {
  width: 16px;
  height: 16px;
  min-height: 0;
  padding: 0;
  accent-color: var(--teal);
}
.object-docs-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
  padding-top: 12px;
}
.object-docs-form {
  grid-template-columns: minmax(0, 1fr) minmax(180px, 260px) auto;
}
.object-docs-upload .object-docs-form {
  grid-template-columns: minmax(0, 1fr) auto;
}
.object-docs-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 780;
}
.object-cover-picker {
  background:
    linear-gradient(135deg, rgba(26,95,187,.04), transparent 42%),
    var(--sheet);
}
.cover-picker-layout {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(360px, 1fr) minmax(260px, 340px);
  gap: 14px;
  align-items: stretch;
}
.cover-crop-stage {
  min-width: 0;
}
.cover-crop-preview {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 7;
  overflow: hidden;
  display: grid;
  place-items: center;
  color: var(--muted);
  background-size: cover !important;
  background-position: center !important;
  border: 1px solid var(--line);
  border-radius: 18px;
  cursor: pointer;
  user-select: none;
  touch-action: none;
}
.cover-crop-preview input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.cover-crop-preview::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.44), inset 0 -64px 80px rgba(10,24,41,.22);
}
.cover-crop-preview.has-cover-image {
  background: var(--sheet-soft) !important;
  cursor: grab;
}
.cover-crop-preview.is-dragging {
  cursor: grabbing;
}
.cover-crop-preview img {
  position: absolute;
  top: 50%;
  left: 50%;
  max-width: none;
  max-height: none;
  object-fit: initial;
  transform: translate(-50%, -50%);
  will-change: transform;
  pointer-events: none;
}
.cover-crop-preview span {
  position: relative;
  z-index: 1;
  max-width: 280px;
  padding: 10px 12px;
  text-align: center;
  background: rgba(255,255,255,.82);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 820;
}
.cover-crop-hint {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 720;
  line-height: 1.35;
}
.cover-crop-hint svg {
  width: 16px;
  height: 16px;
  color: var(--teal);
}
.cover-picker-panel {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 10px;
}
.cover-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.cover-panel-head strong {
  color: var(--ink);
  font-size: 14px;
}
.cover-picker-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}
.cover-thumbnails {
  min-height: 84px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: 8px;
  padding: 2px 0 4px;
}
.cover-thumb-item {
  position: relative;
  min-width: 0;
}
.cover-thumbnails [data-cover-thumb],
.cover-thumb-add {
  width: 100%;
  min-height: 82px;
  overflow: hidden;
  padding: 0;
  background: var(--sheet-soft);
  border: 2px solid transparent;
  border-radius: 12px;
  text-align: left;
}
.cover-thumbnails [data-cover-thumb].is-active,
.cover-thumb-item.is-active [data-cover-thumb] {
  border-color: var(--teal);
  box-shadow: 0 8px 18px rgba(26,95,187,.16);
}
.cover-thumbnails img {
  width: 100%;
  height: 56px;
  object-fit: cover;
  display: block;
}
.cover-thumbnails [data-cover-thumb] span {
  display: block;
  padding: 5px 8px 6px;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-weight: 820;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cover-thumb-delete {
  position: absolute;
  top: 5px;
  right: 5px;
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  padding: 0;
  color: #fff;
  background: rgba(10,24,41,.72);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 999px;
  box-shadow: 0 6px 14px rgba(10,24,41,.18);
}
.cover-thumb-delete svg {
  width: 14px;
  height: 14px;
}
.cover-thumb-add {
  display: grid;
  place-items: center;
  gap: 4px;
  color: var(--teal-deep);
  border-style: dashed;
  font-size: 12px;
  font-weight: 820;
}
.cover-thumb-add svg {
  width: 18px;
  height: 18px;
}
.detail-side {
  display: grid;
  align-content: start;
  gap: 12px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(255,255,255,.1), transparent 40%),
    #0A1829;
  border-color: rgba(255,255,255,.1);
}
.detail-side h3,
.detail-side p { margin: 0; }
.detail-side h3 { font-size: 24px; line-height: 1.15; }
.detail-side p { color: rgba(255,255,255,.82); font-size: 17px; line-height: 1.25; }
.detail-side .secondary { color: var(--ink); background: #fff; box-shadow: none; }
.detail-side .button { white-space: nowrap; }
.detail-map-link {
  width: 100%;
  margin-top: -2px;
  justify-content: center;
  min-height: 42px;
  border-radius: 999px;
}
.object-delete-button {
  width: 100%;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #ffe7e2;
  background: rgba(180,35,24,.18);
  border: 1px solid rgba(255,231,226,.28);
  border-radius: 999px;
  font-weight: 820;
}
.object-delete-button:hover {
  background: rgba(180,35,24,.26);
  border-color: rgba(255,231,226,.42);
}
.object-delete-button:disabled {
  opacity: .62;
  cursor: progress;
}

.map-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; min-height: 620px; }
.map-canvas {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  background: #D6EEF8;
  border-radius: 28px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(10,24,41,.08);
}
.provider-map,
.map-fallback {
  position: absolute;
  inset: 0;
}
.provider-map {
  z-index: 1;
  opacity: 0;
  transition-property: opacity;
  transition-duration: 220ms;
  transition-timing-function: ease;
}
.provider-map .leaflet-control-container {
  font-family: inherit;
}
.provider-map .leaflet-control-zoom a {
  width: 34px;
  height: 34px;
  line-height: 32px;
  color: var(--ink);
  font-weight: 900;
}
.map-fallback {
  z-index: 2;
  background:
    linear-gradient(90deg, rgba(255,255,255,.72) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255,255,255,.72) 1px, transparent 1px),
    #d7e2dd;
  background-size: 72px 72px;
  transition-property: opacity;
  transition-duration: 220ms;
  transition-timing-function: ease;
}
.is-provider-ready .provider-map { opacity: 1; }
.is-provider-ready .map-fallback {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.map-status {
  position: absolute;
  left: 18px;
  bottom: 18px;
  max-width: min(360px, calc(100% - 36px));
  padding: 10px 12px;
  color: var(--ink);
  background: rgba(255,255,255,.9);
  border-radius: 999px;
  box-shadow: 0 14px 30px rgba(10,24,41,.16);
  font-size: 12px;
  line-height: 1.35;
  font-weight: 850;
}
.map-marker {
  position: absolute;
  transform: translate(-50%, -50%);
  min-height: 38px;
  padding: 0 13px;
  color: #fff;
  background: var(--map-marker-bg, var(--ink));
  border-radius: 999px;
  box-shadow: 0 18px 34px rgba(10,24,41,.2);
  font-size: 12px;
  font-weight: 880;
  white-space: nowrap;
}
.map-marker:hover { background: var(--map-marker-hover, var(--teal)); }
.provider-map-marker {
  position: relative;
  width: 170px;
  height: 82px;
  display: block;
  padding: 0;
  color: inherit;
  background: transparent;
  border: 0;
  cursor: pointer;
}
.provider-map-label {
  position: absolute;
  left: 50%;
  bottom: 31px;
  min-width: 132px;
  display: grid;
  gap: 2px;
  padding: 9px 11px;
  text-align: left;
  color: #fff;
  background: var(--map-marker-bg, var(--ink));
  border-radius: 14px;
  box-shadow: 0 18px 34px rgba(10,24,41,.24);
  transform: translateX(-50%);
}
.provider-map-label::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -7px;
  width: 14px;
  height: 14px;
  background: inherit;
  transform: translateX(-50%) rotate(45deg);
}
.provider-map-pin {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 22px;
  height: 22px;
  background: var(--map-marker-pin, var(--teal));
  border: 3px solid #fff;
  border-radius: 50% 50% 50% 2px;
  box-shadow: 0 10px 22px rgba(10,24,41,.22);
  transform: translateX(-50%) rotate(-45deg);
}
.provider-map-pin::after {
  content: "";
  position: absolute;
  inset: 5px;
  background: #fff;
  border-radius: 50%;
}
.provider-map-marker:hover .provider-map-label,
.provider-map-marker.is-highlighted .provider-map-label {
  background: var(--map-marker-hover, var(--teal));
}

.map-marker.is-highlighted,
.provider-map-marker.is-highlighted {
  z-index: 30;
  outline: 0;
  transform: translate(-50%, -50%) scale(1.05);
}

.provider-map-marker.is-highlighted {
  transform: translateY(-2px) scale(1.04);
}
.map-marker.is-highlighted {
  box-shadow: 0 18px 34px rgba(10,24,41,.2), 0 0 0 4px rgba(26,95,187,.16);
}
.provider-map-marker.is-highlighted .provider-map-label {
  box-shadow: 0 18px 34px rgba(10,24,41,.24), 0 0 0 4px rgba(26,95,187,.14);
}
.provider-map-marker.is-highlighted .provider-map-pin {
  box-shadow: 0 10px 22px rgba(10,24,41,.22), 0 0 0 4px rgba(26,95,187,.16);
}
.map-marker.status-badge--free,
.provider-map-marker.status-badge--free {
  --map-marker-bg: var(--status-free-strong);
  --map-marker-hover: #0f6b49;
  --map-marker-pin: var(--status-free-strong);
}
.map-marker.status-badge--reserved,
.provider-map-marker.status-badge--reserved {
  --map-marker-bg: var(--status-reserved-strong);
  --map-marker-hover: #a18127;
  --map-marker-pin: var(--status-reserved-strong);
}
.map-marker.status-badge--sold,
.provider-map-marker.status-badge--sold {
  --map-marker-bg: var(--status-sold-strong);
  --map-marker-hover: #5f7183;
  --map-marker-pin: var(--status-sold-strong);
}
.map-marker.status-badge--construction,
.provider-map-marker.status-badge--construction {
  --map-marker-bg: var(--status-construction-strong);
  --map-marker-hover: var(--teal-deep);
  --map-marker-pin: var(--status-construction-strong);
}
.map-marker.status-badge--neutral,
.provider-map-marker.status-badge--neutral {
  --map-marker-bg: var(--status-neutral-strong);
  --map-marker-hover: #5f7183;
  --map-marker-pin: var(--status-neutral-strong);
}
.provider-map-marker strong {
  font-size: 13px;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.provider-map-marker em {
  max-width: 180px;
  overflow: hidden;
  color: rgba(255,255,255,.78);
  font-size: 11px;
  font-style: normal;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.map-list { padding: 16px; display: grid; align-content: start; gap: 8px; }
.map-list h2 { margin: 0 0 8px; font-size: 19px; }
.map-list-item {
  width: 100%;
  min-height: 64px;
  display: grid;
  gap: 4px;
  text-align: left;
  padding: 13px;
  color: var(--ink);
  background: var(--sheet-soft);
  box-shadow: inset 0 0 0 1px rgba(10,24,41,.05);
  border-radius: 16px;
}
.map-list-item:hover,
.map-list-item.is-highlighted {
  background: var(--teal-soft);
  transform: translateY(-1px);
}

.map-list-item.is-highlighted {
  border-color: rgba(26, 95, 187, .36);
  box-shadow: 0 12px 24px rgba(26, 95, 187, .14);
}

.calculator-screen, .mortgage-compare-screen, .files-space, .panel-list { display: grid; gap: 18px; }
.users-admin-panel,
.users-table-panel {
  display: grid;
  gap: 14px;
  padding: 18px;
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
}
.users-table-panel {
  overflow-x: auto;
}
.users-table-panel table {
  min-width: 1180px;
}
.users-table-panel th {
  text-align: left;
}
.user-row input,
.user-row select {
  min-height: 38px;
  padding: 8px 10px;
  border-radius: 12px;
  font-size: 13px;
}
.user-row input[name="password"] {
  min-width: 150px;
}
.user-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.user-row-actions button {
  width: auto;
  min-width: 0;
  min-height: 34px;
  height: auto;
  padding: 0 10px;
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
}
.user-row-actions .danger-button {
  display: inline-flex;
}
.user-row .field-error {
  min-height: 16px;
  margin-top: 6px;
  font-size: 12px;
}
.user-create-form {
  display: grid;
  grid-template-columns: repeat(5, minmax(150px, 1fr)) minmax(260px, 1.2fr) auto;
  gap: 10px;
  align-items: end;
}
.user-create-form label,
.manager-object-access {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 780;
}
.manager-object-access {
  margin: 0;
  padding: 0;
  border: 0;
  align-self: stretch;
}
.manager-object-access[hidden] {
  display: none;
}
.manager-object-access legend {
  margin-bottom: 6px;
  padding: 0;
  color: var(--muted);
}
.manager-object-access-list {
  display: grid;
  gap: 5px;
  max-height: 118px;
  min-width: 220px;
  overflow: auto;
  padding: 8px;
  background: var(--sheet-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.manager-object-access-list label {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  min-height: 24px;
  font-size: 12px;
  line-height: 1.35;
  color: var(--ink);
  font-weight: 680;
}
.manager-object-access-list input {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  min-height: 16px;
  margin-top: 1px;
  padding: 0;
}
.manager-object-access .muted {
  max-width: 240px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}
.user-create-form .field-error {
  grid-column: 1 / -1;
}
.audit-dashboard {
  display: grid;
  gap: 14px;
}
.audit-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.audit-summary-card {
  min-height: 96px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 16px;
  background:
    linear-gradient(135deg, rgba(26,95,187,.08), transparent 44%),
    var(--sheet);
  border: 1px solid rgba(10,24,41,.06);
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
}
.audit-summary-card span,
.audit-summary-card small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 820;
}
.audit-summary-card strong {
  color: var(--ink);
  font-size: 28px;
  line-height: 1;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}
.audit-table-panel {
  overflow: hidden;
  background: var(--sheet);
  border: 1px solid rgba(10,24,41,.08);
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
}
.audit-table-scroll {
  overflow-x: auto;
}
.audit-table {
  width: 100%;
  min-width: 920px;
  border-collapse: collapse;
  table-layout: fixed;
}
.audit-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 9px 12px;
  color: var(--muted);
  background: #F7FCFF;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  line-height: 1.2;
  font-weight: 880;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.audit-table th:nth-child(1) { width: 112px; }
.audit-table th:nth-child(2) { width: 300px; }
.audit-table th:nth-child(3) { width: 220px; }
.audit-table th:nth-child(4) { width: 112px; }
.audit-table th:nth-child(5) { width: auto; }
.audit-table td {
  height: 48px;
  padding: 7px 12px;
  border-bottom: 1px solid rgba(200,221,232,.72);
  vertical-align: middle;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.25;
}
.audit-table tbody tr {
  border-left: 4px solid var(--line-strong);
}
.audit-table tbody tr:hover {
  background: var(--sheet-soft);
}
.audit-table tbody tr:focus-within {
  outline: 2px solid var(--teal);
  outline-offset: -2px;
}
.audit-table tbody tr:last-child td {
  border-bottom: 0;
}
.audit-table tr.is-positive { border-left-color: var(--success); }
.audit-table tr.is-attention { border-left-color: var(--danger); }
.audit-table tr.is-read { border-left-color: var(--clay); }
.audit-time-cell,
.audit-actor-cell,
.audit-action-cell {
  min-width: 0;
}
.audit-time-cell strong {
  display: block;
  color: var(--ink);
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}
.audit-time-cell span,
.audit-actor-cell span {
  display: block;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.audit-action-cell {
  white-space: nowrap;
}
.audit-action-cell strong,
.audit-actor-cell strong,
.audit-details-cell > span {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  vertical-align: middle;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.audit-action-cell strong {
  max-width: calc(100% - 92px);
}
.audit-actor-cell strong {
  display: block;
  font-size: 13px;
}
.audit-action-pill {
  padding: 5px 8px;
  color: var(--teal-deep);
  background: var(--teal-soft);
  border-radius: 999px;
  font-size: 11px;
  line-height: 1;
  font-weight: 900;
}
.audit-table tr.is-attention .audit-action-pill {
  color: #7a1f1f;
  background: #fff0f0;
}
.audit-table tr.is-positive .audit-action-pill {
  color: var(--status-free-text);
  background: var(--status-free-bg);
}
.audit-table tr.is-read .audit-action-pill {
  color: var(--status-reserved-text);
  background: var(--status-reserved-bg);
}
.audit-entity-chip {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  color: var(--ink-2);
  background: var(--paper-line);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 780;
}
.audit-detail-chips {
  display: flex;
  flex-wrap: nowrap;
  gap: 4px;
  overflow: hidden;
}
.audit-detail-chips span {
  max-width: 150px;
  overflow: hidden;
  padding: 5px 7px;
  color: var(--ink-2);
  background: var(--sheet-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.calculator-header-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: end;
  background:
    linear-gradient(135deg, rgba(26,95,187,.08), transparent 44%),
    var(--sheet);
}
.calculator-header-panel h2, .compare-intro h2, .compare-card h3, .compare-summary-card h2, .form-section h2, .result-header h2, .files-upload-copy h3 {
  margin: 0;
  font-size: 26px;
  line-height: 1.1;
  font-weight: 880;
  letter-spacing: 0;
}
.calculator-layout { display: grid; grid-template-columns: minmax(360px, 620px) minmax(360px, 1fr); gap: 18px; align-items: start; }
.calc-form, .calc-result { display: grid; gap: 16px; }
.calc-result {
  position: sticky;
  top: 106px;
  background:
    linear-gradient(135deg, rgba(26,95,187,.08), transparent 40%),
    var(--sheet);
}
.calculator-object-picker {
  display: grid;
  grid-template-columns: minmax(300px, 430px) minmax(240px, 1fr);
  gap: 12px;
  align-items: stretch;
  padding: 14px;
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
}

.calculator-object-picker label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 780;
}

.calculator-object-picker select {
  min-height: 46px;
  padding: 0 12px;
  color: var(--ink);
  font: inherit;
  font-weight: 760;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.selected-object-summary {
  min-height: 64px;
  display: grid;
  align-content: center;
  gap: 3px;
  padding: 10px 16px;
  color: var(--muted);
  background: var(--sheet-soft);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.selected-object-summary span {
  min-width: 0;
  overflow: hidden;
  font-size: 13px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.selected-object-summary strong {
  color: var(--ink);
  font-size: 16px;
  line-height: 1.15;
  font-weight: 880;
}
.selected-object-summary.is-empty { background: #fff; }
.form-section { padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.field-group {
  margin: 0;
  padding: 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  border: 1px solid rgba(10,24,41,.08);
  border-radius: 20px;
  background: rgba(247,249,245,.68);
}
.field-group legend {
  float: left;
  width: 100%;
  grid-column: 1 / -1;
  padding: 0;
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.1;
  font-weight: 880;
}
.field-group legend + * { clear: left; }
.editor-section-legend {
  width: 100%;
  margin-bottom: 10px;
}
.editor-section-toggle {
  width: 100%;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  padding: 4px 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-radius: 14px;
  font: inherit;
  font-size: 14px;
  line-height: 1.1;
  font-weight: 880;
  text-align: left;
  cursor: pointer;
}
.editor-section-toggle:hover {
  color: var(--teal-deep);
  background: rgba(26,95,187,.06);
}
.editor-section-toggle:focus-visible {
  outline: 3px solid rgba(26,95,187,.24);
  outline-offset: 2px;
}
.editor-section-toggle svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  color: var(--teal);
  transition: transform 160ms ease;
}
.editor-section-toggle:hover svg {
  color: var(--teal-deep);
}
.editor-section-toggle[aria-expanded="true"] svg {
  transform: rotate(90deg);
}
.editor-section-content {
  display: contents;
}
.editor-section-content[hidden] {
  display: none;
}
.field-group.is-editor-section-collapsed {
  gap: 0;
  padding: 0;
  background: rgba(247,249,245,.46);
}
.field-group.is-editor-section-collapsed .editor-section-legend {
  margin: 0;
}
.field-group.is-editor-section-collapsed .editor-section-toggle {
  min-height: 48px;
  padding: 0 18px;
  border-radius: 20px;
}
.field-group.has-warning {
  border-color: rgba(201, 168, 76, .7);
  background: rgba(232, 201, 106, .13);
}
.field-error { grid-column: 1 / -1; }
.number-field small { margin-top: -3px; color: var(--quiet); font-size: 12px; font-weight: 700; }
.result-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.warning { display: flex; align-items: flex-start; gap: 10px; padding: 14px; color: #7a6324; background: var(--clay-soft); border-radius: 16px; }
.calc-note { font-size: 13px; }
.mortgage-compare-screen { gap: 16px; }
.compare-intro {
  padding: 18px 20px;
  background:
    linear-gradient(135deg, rgba(26,95,187,.08), transparent 40%),
    var(--sheet);
  border: 1px solid rgba(10,24,41,.06);
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
}
.compare-intro h2 { font-size: 24px; }
.mortgage-compare-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.compare-card {
  overflow: hidden;
  display: grid;
  align-content: start;
  background:
    linear-gradient(180deg, rgba(26,95,187,.08), rgba(255,255,255,0) 42%),
    var(--sheet);
}
.compare-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 18px 12px;
}
.scenario-index {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  color: var(--sheet);
  background: var(--ink);
  border-radius: 12px;
  font-size: 16px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 12px 24px rgba(10,24,41,.16);
}
.compare-inputs {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(118px, .65fr) minmax(132px, .75fr);
  gap: 8px;
  padding: 0 18px 18px;
}
.compare-input {
  min-width: 0;
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}
.compare-input > span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.compare-control {
  min-height: 44px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 0 10px 0 12px;
  background: var(--sheet-soft);
  border-radius: 14px;
  box-shadow: inset 0 0 0 1px var(--line), 0 1px 0 rgba(255,255,255,.72);
  transition-property: box-shadow, background-color, transform;
  transition-duration: 160ms;
  transition-timing-function: ease;
}
.compare-control:focus-within {
  background: var(--sheet);
  box-shadow: inset 0 0 0 2px var(--teal), 0 0 0 4px rgba(26,95,187,.11);
}
.compare-control input {
  min-height: 44px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  font-size: 18px;
  font-weight: 880;
  font-variant-numeric: tabular-nums;
}
.compare-control input:focus { outline: 0; }
.compare-control small {
  min-width: max-content;
  color: var(--quiet);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}
.compare-metrics { display: grid; gap: 1px; overflow: hidden; background: var(--line); border-radius: 18px; }
.compare-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0 18px 18px; }
.compare-metrics div {
  min-height: 58px;
  align-content: center;
  padding: 10px 12px;
}
.compare-metrics .is-emphasis {
  background: linear-gradient(135deg, var(--teal-soft), #F7FCFF);
}
.compare-metrics .is-emphasis dt { color: #0D3F7A; }
.compare-metrics .is-emphasis dd { font-size: 18px; }
.compare-summary-card { display: grid; gap: 18px; }
.compare-summary-layout {
  display: grid;
  grid-template-columns: minmax(280px, .8fr) minmax(0, 1.2fr);
  gap: 12px;
}
.compare-summary-stack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.compare-summary-metric {
  min-height: 88px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 16px 18px;
  background: var(--sheet-soft);
  border-radius: 20px;
  box-shadow: inset 0 0 0 1px rgba(10,24,41,.06);
}
.compare-summary-metric.is-primary {
  min-height: 104px;
  background: linear-gradient(135deg, var(--teal-soft), #F7FCFF);
}
.compare-summary-metric.is-primary strong { font-size: clamp(28px, 3.4vw, 38px); }
.compare-summary-metric strong { font-size: 24px; line-height: 1; }
.positive { color: var(--success); }
.negative { color: var(--danger); }

.files-space-header { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: end; }
.files-space-header {
  background:
    linear-gradient(135deg, rgba(45,95,128,.08), transparent 42%),
    var(--sheet);
}
.files-space-header h2 { font-size: clamp(30px, 4vw, 52px); }
.file-read-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(130px, 1fr));
  gap: 1px;
  overflow: hidden;
  background: rgba(10,24,41,.12);
  border-radius: 18px;
}
.file-read-summary span {
  min-height: 70px;
  display: grid;
  align-content: center;
  gap: 3px;
  padding: 10px 14px;
  color: var(--muted);
  background: #0A1829;
  font-size: 12px;
  font-weight: 760;
}
.file-read-summary span { color: rgba(255,255,255,.82); }
.file-read-summary strong { color: #fff; font-size: 24px; line-height: 1; font-variant-numeric: tabular-nums; }
.files-breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: var(--muted); }
.crumb-segment { display: inline-flex; align-items: center; gap: 6px; }
.crumb-link, .files-breadcrumb .current {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  font-weight: 800;
}
.crumb-link { color: var(--blue); background: var(--blue-soft); }
.crumb-link:hover { background: #d3e4ee; }
.files-breadcrumb .current { color: #fff; background: var(--ink); }
.folder-create-panel { display: grid; gap: 10px; }
.folder-create-form {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 10px;
  align-items: start;
}
.folder-create-form .field-error { grid-column: 1 / -1; }
.files-upload-panel { display: grid; gap: 14px; }
.files-upload-form, .files-upload-controls { display: grid; gap: 10px; }
.files-upload-controls { grid-template-columns: minmax(220px, 1fr) auto auto; align-items: center; }
.files-upload-list {
  min-height: 48px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 8px;
  padding: 10px 12px;
  color: var(--muted);
  background: var(--sheet-soft);
  border-radius: 14px;
}
.object-upload-list {
  grid-column: 1 / -1;
}
.upload-file-chip {
  min-height: 30px;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 10px;
  color: #fff;
  background: var(--ink);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 780;
  font-variant-numeric: tabular-nums;
}
.upload-file-chip span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.upload-file-chip button {
  width: 24px;
  height: 24px;
  min-height: 24px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  padding: 0;
  color: #fff;
  background: rgba(255,255,255,.14);
  border-radius: 999px;
  box-shadow: none;
}
.upload-file-chip button:hover {
  background: rgba(255,255,255,.24);
  transform: none;
}
.upload-file-chip svg {
  width: 14px;
  height: 14px;
}
.upload-progress {
  --upload-progress: 0%;
  grid-column: 1 / -1;
  min-height: 38px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  color: var(--muted);
  background: var(--sheet-soft);
  border: 1px solid var(--line);
  border-radius: 14px;
  font-size: 12px;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
}
.upload-progress[hidden] { display: none; }
.upload-progress span {
  height: 8px;
  overflow: hidden;
  background: rgba(26,95,187,.12);
  border-radius: 999px;
}
.upload-progress span::before {
  content: "";
  width: var(--upload-progress);
  height: 100%;
  display: block;
  background: var(--teal);
  border-radius: inherit;
  transition: width 160ms ease;
}
.folder-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
}
.folder-card {
  width: 100%;
  min-height: 118px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 16px;
  text-align: left;
  background:
    linear-gradient(135deg, rgba(201,168,76,.08), transparent 42%),
    var(--sheet);
  border: 1px solid rgba(10,24,41,.06);
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
  transition: transform 180ms var(--ease), box-shadow 180ms var(--ease), border-color 180ms var(--ease);
}
.folder-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: rgba(201,168,76,.2); }
.folder-open-button {
  min-width: 0;
  min-height: 70px;
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 0;
  color: inherit;
  text-align: left;
  background: transparent;
  box-shadow: none;
}
.folder-open-button:active { transform: none; }
.folder-delete-button { align-self: center; }
.folder-visual {
  width: 50px;
  height: 50px;
  position: relative;
  display: grid;
  place-items: center;
  color: var(--clay);
  background: var(--clay-soft);
  border-radius: 16px;
}
.folder-shell, .folder-front, .folder-paper { display: none; }
.folder-visual::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 17px;
  width: 25px;
  height: 18px;
  background: currentColor;
  border-radius: 3px;
}
.folder-visual::after {
  content: "";
  position: absolute;
  left: 13px;
  top: 12px;
  width: 13px;
  height: 8px;
  background: currentColor;
  border-radius: 3px 3px 0 0;
}
.folder-card-body { display: grid; gap: 4px; min-width: 0; }
.folder-card-body strong { font-size: 16px; line-height: 1.25; }
.folder-card-body span, .row-card span, .map-list-item span { color: var(--muted); font-size: 13px; line-height: 1.45; overflow-wrap: anywhere; }
.files-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.files-toolbar strong { font-size: 17px; }
.files-toolbar span { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.files-panel {
  overflow: hidden;
  padding: 10px 18px 10px;
}
.row-card, .file-row {
  min-height: 72px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background:
    linear-gradient(135deg, rgba(26,95,187,.04), transparent 40%),
    var(--sheet);
  border: 1px solid rgba(10,24,41,.06);
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
}
.file-row {
  min-height: 68px;
  padding: 12px 6px;
  background: transparent;
  border-left: 0;
  border-right: 0;
  border-top: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
  cursor: pointer;
  transition: transform 160ms var(--ease), box-shadow 160ms var(--ease), background 160ms var(--ease);
}
.file-row:last-child { border-bottom: 0; }
.file-row:hover {
  background: #F7FCFF;
  box-shadow: none;
  transform: none;
}
.file-row:focus-visible {
  outline: 3px solid rgba(56,126,164,.24);
  outline-offset: 3px;
}
.file-row .file-row-actions { cursor: default; }
.row-card > svg, .file-row > svg { color: var(--clay); }
.row-card > div, .file-row-main { min-width: 0; display: grid; gap: 4px; }
.row-card strong, .row-card span, .file-row strong, .file-row span { overflow-wrap: anywhere; }
.file-row-title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.read-badge {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 850;
}
.read-badge.read { color: var(--teal-deep); background: var(--teal-soft); }
.read-badge.unread { color: #7a6324; background: var(--clay-soft); }
.file-row-actions {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-end;
  align-items: center;
  gap: 7px;
}
.file-row-actions button { min-height: 38px; }
.file-action-button {
  width: 38px;
  height: 38px;
  min-height: 38px;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: transparent;
  border-radius: 999px;
  box-shadow: none;
}
.file-action-button:hover {
  color: var(--ink);
  background: var(--paper-line);
}
.danger-button {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: var(--danger);
  background: #fff5f3;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(180,35,24,.18);
}
.file-action-button.danger-button {
  width: 38px;
  height: 38px;
  min-height: 38px;
  box-shadow: none;
}
.file-move-popover {
  position: fixed;
  z-index: 110;
  width: min(360px, calc(100vw - 20px));
  max-height: min(560px, calc(100dvh - 20px));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  background: var(--sheet);
  border-radius: 18px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  animation: popover-in 160ms var(--ease);
  transform-origin: top right;
}
.file-move-popover header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 10px 8px;
  border-bottom: 1px solid var(--line);
}
.file-move-popover h2 {
  margin: 0;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 500;
}
.file-move-popover header span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
  font-weight: 400;
}
.file-move-form {
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto auto;
}
.file-move-tree {
  min-height: 0;
  display: grid;
  align-content: start;
  gap: 2px;
  overflow: auto;
  padding: 6px;
}
.file-move-option {
  min-height: 34px;
  display: grid;
  grid-template-columns: 18px 24px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 4px 7px 4px calc(7px + var(--folder-depth, 0) * 17px);
  border-radius: 9px;
  color: var(--ink);
  cursor: pointer;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 400;
}
.file-move-option:hover { background: var(--sheet-soft); }
.file-move-option.current { background: var(--teal-soft); }
.file-move-option input {
  width: 14px;
  height: 14px;
  margin: 0;
}
.file-move-option-mark {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: var(--paper-line);
  border-radius: 8px;
}
.file-move-option-mark svg { width: 14px; height: 14px; }
.file-move-option strong {
  display: block;
  font-size: 13px;
  line-height: 1.15;
  font-weight: 400;
}
.file-move-option small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.15;
  font-weight: 400;
}
.file-move-form .field-error {
  min-height: 16px;
  padding: 0 10px;
  font-size: 12px;
}
.file-move-form footer {
  display: flex;
  justify-content: flex-end;
  gap: 7px;
  padding: 8px 10px 10px;
  border-top: 1px solid var(--line);
}
.file-move-form footer button {
  min-height: 34px;
  padding: 0 11px;
  font-size: 13px;
}
.file-preview-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(10,24,41,.42);
  animation: fade-in 160ms var(--ease);
}
.file-preview-modal {
  width: min(1040px, 100%);
  max-height: min(840px, calc(100dvh - 48px));
  display: grid;
  grid-template-rows: auto minmax(280px, 1fr) auto;
  overflow: hidden;
  background: var(--sheet);
  border-radius: 22px;
  box-shadow: var(--shadow);
  animation: modal-in 220ms var(--ease);
}
.file-preview-modal header, .file-preview-modal footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}
.file-preview-modal footer { border-top: 1px solid var(--line); border-bottom: 0; justify-content: flex-end; }
.file-preview-modal h2 { margin: 0; font-size: 24px; line-height: 1.1; }
.file-preview-modal header span { color: var(--muted); font-size: 13px; }
.file-preview-body {
  min-height: 0;
  display: grid;
  place-items: center;
  overflow: auto;
  padding: 16px;
  background: var(--sheet-soft);
}
.file-preview-body img, .file-preview-body video {
  max-width: 100%;
  max-height: 68dvh;
  border-radius: 14px;
  background: #fff;
}
.file-preview-body iframe {
  width: 100%;
  min-height: 68dvh;
  border: 0;
  border-radius: 14px;
  background: #fff;
}
.preview-unavailable {
  display: grid;
  gap: 8px;
  text-align: center;
  color: var(--muted);
}
.preview-unavailable h3 { margin: 0; color: var(--ink); }
.file-preview-readers {
  display: grid;
  gap: 10px;
  padding: 14px 18px;
  border-top: 1px solid var(--line);
  background: var(--sheet);
}
.file-preview-readers-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.file-preview-readers h3 {
  margin: 0;
  color: var(--ink);
  font-size: 17px;
}
.file-reader-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
}
.file-reader-status {
  display: grid;
  gap: 3px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--sheet-soft);
}
.file-reader-status strong {
  color: var(--ink);
  font-size: 13px;
}
.file-reader-status small {
  color: var(--muted);
  font-size: 12px;
}
.file-reader-status.is-read {
  border-color: rgba(22,132,91,.2);
  background: var(--teal-soft);
}
.file-reader-status.is-unread {
  border-color: rgba(201,168,76,.24);
  background: var(--clay-soft);
}

.confirm-backdrop {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(10,24,41,.48);
  animation: fade-in 160ms var(--ease);
}

.confirm-dialog {
  width: min(420px, 100%);
  display: grid;
  gap: 14px;
  padding: 20px;
  background: var(--sheet);
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 20px;
  box-shadow: var(--shadow);
  animation: modal-in 180ms var(--ease);
}

.confirm-dialog h2,
.confirm-dialog p {
  margin: 0;
}

.confirm-dialog h2 {
  color: var(--ink);
  font-size: 22px;
  line-height: 1.15;
}

.confirm-dialog p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.danger-action {
  background: var(--danger);
}

.empty-state, .error-state {
  padding: 36px;
  display: grid;
  place-items: center;
  gap: 10px;
  text-align: center;
  color: var(--muted);
  background:
    linear-gradient(135deg, rgba(26,95,187,.06), transparent 42%),
    var(--sheet);
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(10,24,41,.06);
}
.empty-state p, .error-state p { max-width: 52ch; }
.error-state { text-align: left; grid-template-columns: auto minmax(0, 1fr) auto; place-items: center stretch; }
.error-state > svg { color: var(--danger); }
.skeleton-state { width: 100%; display: grid; gap: 10px; }
.skeleton-line, .skeleton-grid div {
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--sheet-soft), #fff, var(--sheet-soft));
  background-size: 220% 100%;
  animation: skeleton-shimmer 1.2s ease-in-out infinite;
}
.skeleton-line { width: 58%; }
.skeleton-line.wide { width: 82%; }
.skeleton-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.skeleton-grid div { height: 58px; border-radius: 16px; }

@keyframes skeleton-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

@keyframes popover-in {
  from { opacity: 0; transform: translateY(-4px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes modal-in {
  from { opacity: 0; transform: translateY(10px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

@media (max-width: 1180px) {
  .command-bar { grid-template-columns: 180px minmax(0, 1fr); }
  .operator-tools { grid-column: 1 / -1; justify-content: space-between; }
  .client-work-toggle { flex: 0 0 46px; }
  .page-hero, .workspace-intro, .detail-layout, .map-layout, .calculator-layout, .calculator-header-panel { grid-template-columns: 1fr; }
  .hero-status-card { min-height: 0; }
  .audit-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .audit-table { min-width: 860px; }
  .user-create-form { grid-template-columns: repeat(2, minmax(180px, 1fr)); }
  .files-space-header { grid-template-columns: 1fr; }
  .file-row { grid-template-columns: 32px minmax(0, 1fr); }
  .file-row-actions { grid-column: 1 / -1; justify-content: flex-start; }
  .quick-metrics { grid-template-columns: repeat(2, minmax(120px, 1fr)); }
  .object-card-body { grid-template-columns: minmax(0, 1fr); }
  .card-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .calc-result { position: static; }
  .map-canvas { min-height: 480px; }
}

@media (max-width: 820px) {
  .portal-shell { padding: 10px; }
  .login-screen {
    grid-template-columns: 1fr;
    padding: 12px;
  }
  .login-showcase {
    min-height: 340px;
    order: -1;
  }
  .login-showcase strong { font-size: clamp(32px, 11vw, 54px); }
  .command-bar {
    top: 8px;
    z-index: 100;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    gap: 10px;
    border-radius: 16px;
  }
  .nav-toggle {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    color: #fff;
    background: rgba(255,255,255,.1);
    border-radius: 14px;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.1);
  }
  .nav-toggle:hover {
    background: rgba(255,255,255,.18);
  }
  .brand-mark { min-height: 38px; padding: 0 6px; }
  .brand-mark span { font-size: 21px; }
  .module-nav-desktop {
    display: none;
  }
  .module-nav-mobile {
    position: fixed;
    top: 82px;
    bottom: 0;
    left: 0;
    z-index: 90;
    width: min(320px, 84vw);
    min-width: 0;
    display: grid;
    grid-template-columns: 1fr;
    align-content: start;
    gap: 8px;
    padding: 10px 14px 18px;
    overflow-y: auto;
    color: #fff;
    background:
      linear-gradient(135deg, rgba(255,255,255,.1), transparent 38%),
      #0A1829;
    border-right: 1px solid rgba(255,255,255,.12);
    box-shadow: 26px 0 70px rgba(10,24,41,.3);
    transform: translateX(-105%);
    transition: transform 220ms var(--ease);
  }
  body.is-mobile-nav-open .module-nav-mobile {
    transform: translateX(0);
  }
  .module-nav-mobile a {
    min-width: 0;
    min-height: 52px;
    justify-content: flex-start;
    gap: 10px;
    padding: 0 12px;
    border-radius: 14px;
    font-size: 15px;
    text-align: left;
    white-space: nowrap;
  }
  .module-nav-mobile a svg {
    width: 17px;
    height: 17px;
  }
  .module-nav-mobile a.active {
    box-shadow: 0 10px 20px rgba(10,24,41,.18);
  }
  .mobile-nav-backdrop {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: block;
    visibility: hidden;
    opacity: 0;
    background: rgba(10,24,41,.34);
    border-radius: 0;
    backdrop-filter: blur(2px);
    transition: opacity 180ms var(--ease), visibility 180ms var(--ease);
  }
  .mobile-nav-backdrop:active {
    transform: none;
  }
  body.is-mobile-nav-open .mobile-nav-backdrop {
    visibility: visible;
    opacity: 1;
  }
  body.is-mobile-nav-open {
    overflow: hidden;
  }
  .operator-tools {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    gap: 8px;
  }
  .client-work-toggle {
    width: 42px;
    min-height: 42px;
    justify-content: center;
    padding: 0;
    border-radius: 14px;
  }
  .profile {
    min-height: 42px;
    padding: 2px;
    background: transparent;
  }
  .profile span { display: none; }
  .stage { padding-top: 18px; }
  .page-hero {
    min-height: 0;
    padding: 18px;
    border-radius: 18px;
  }
  .page-hero h1 { max-width: 18ch; font-size: clamp(28px, 9vw, 38px); }
  .page-hero p:not(.eyebrow) { font-size: 14px; }
  .hero-status-card {
    min-height: 0;
    padding: 14px;
    border-radius: 16px;
  }
  .audit-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .audit-summary-card { min-height: 72px; padding: 12px; }
  .audit-summary-card strong { font-size: 23px; }
  .audit-table { min-width: 760px; }
  .audit-table th,
  .audit-table td {
    padding-inline: 9px;
  }
  .toolbar, .folder-create-form, .files-upload-controls, .mortgage-compare-grid, .compare-summary-layout, .compare-summary-stack { grid-template-columns: 1fr; }
  .calculator-layout,
  .calculator-header-panel,
  .calculator-object-picker,
  .calc-form,
  .calc-result {
    min-width: 0;
  }
  .calculator-object-picker { grid-template-columns: 1fr; }
  .selected-object-summary { min-height: auto; padding: 12px; }
  .selected-object-summary span { white-space: normal; }
  .calculator-tabs {
    flex-wrap: wrap;
    justify-content: flex-start;
  }
  .calculator-tabs button {
    white-space: normal;
  }
  .object-card { grid-template-columns: 1fr; }
  .object-image { min-height: 150px; }
  .metrics, .result-list, .compare-metrics { grid-template-columns: 1fr; }
  .object-card dl { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .quick-metrics span { min-width: 0; }
  .quick-metrics strong { overflow-wrap: anywhere; }
  .field-group { grid-template-columns: 1fr; }
  .dossier-row {
    grid-template-columns: 1fr;
  }
  .dossier-row-grid {
    grid-template-columns: 1fr;
  }
  .dossier-field-wide {
    grid-column: auto;
  }
  .dossier-row-remove {
    width: 100%;
  }
  .user-create-form { grid-template-columns: 1fr; }
  .object-docs-form {
    grid-template-columns: 1fr;
  }
  .cover-picker-layout {
    grid-template-columns: 1fr;
  }
  .cover-crop-preview {
    aspect-ratio: 4 / 3;
  }
  .object-editor {
    padding: 16px;
    border-radius: 18px;
  }
  .section-header, .files-toolbar { align-items: stretch; flex-direction: column; }
  .row-card { grid-template-columns: 32px minmax(0, 1fr); }
  .row-card .secondary, .row-card .primary, .row-card .button { grid-column: 1 / -1; }
  .file-preview-modal header, .file-preview-modal footer { align-items: stretch; flex-direction: column; }
}

@media (max-width: 520px) {
  .command-bar { padding: 8px; }
  .module-nav-mobile a { min-height: 50px; padding: 0 12px; font-size: 15px; }
  .quick-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quick-metrics span { min-height: 74px; }
  .file-read-summary { grid-template-columns: 1fr; }
  .hero-status-card dl { grid-template-columns: 1fr; }
  .file-row-actions {
    display: grid;
    grid-template-columns: repeat(3, 38px);
    justify-content: start;
  }
  .file-row-actions button { width: 38px; }
  .file-preview-backdrop { padding: 10px; }
  .file-move-popover { max-height: calc(100dvh - 20px); border-radius: 14px; }
  .file-move-popover header { padding: 10px; }
  .file-move-form footer { align-items: stretch; flex-direction: column; }
  .file-preview-modal { max-height: calc(100dvh - 20px); border-radius: 16px; }
  .compare-inputs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .compare-input:first-child { grid-column: 1 / -1; }
  .compare-input > span:first-child { white-space: normal; }
  .calculator-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-radius: 18px; }
  .calculator-tabs button {
    min-width: 0;
    padding: 0 10px;
    white-space: normal;
    text-align: center;
  }
  .primary, .secondary, .ghost, .button { width: 100%; }
  .card-actions { grid-template-columns: 1fr; }
  .folder-grid { grid-template-columns: 1fr; }
}

@media (min-width: 521px) {
  .file-row {
    grid-template-columns: 38px minmax(0, 1fr) minmax(170px, max-content);
  }
  .file-row .file-row-actions {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-end;
    align-items: center;
  }
}

@media (max-width: 380px) {
  .module-nav-mobile { width: min(300px, 86vw); }
}

/* AI sales-control workspace */
.nav-badge-critical {
  color: #fff;
  background: var(--danger);
}
.ai-rop-workspace {
  display: grid;
  gap: 14px;
}
.ai-rop-loading {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.ai-rop-loading span {
  height: 96px;
  border-radius: 16px;
  background: linear-gradient(90deg, var(--sheet-soft), #fff, var(--sheet-soft));
  background-size: 220% 100%;
  animation: skeleton-shimmer 1.2s ease-in-out infinite;
}
.ai-rop-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}
.ai-summary-card {
  min-height: 88px;
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 15px;
  color: var(--ink);
  background: var(--sheet);
  border: 1px solid var(--line);
  border-left: 4px solid var(--line-strong);
  border-radius: 15px;
  box-shadow: var(--shadow-soft);
}
.ai-summary-card span { color: var(--muted); font-size: 12px; font-weight: 780; }
.ai-summary-card strong { font-size: 28px; line-height: 1; font-variant-numeric: tabular-nums; }
.ai-summary-card.tone-critical { border-left-color: var(--danger); }
.ai-summary-card.tone-high, .ai-summary-card.tone-repeated { border-left-color: #d27a19; }
.ai-summary-card.tone-risk { border-left-color: var(--teal); }
.ai-summary-card.tone-new { border-left-color: var(--blue); }
.ai-rop-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1.5fr) minmax(140px, .7fr) minmax(150px, .8fr) auto auto minmax(120px, auto);
  gap: 10px;
  align-items: end;
  padding: 14px;
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
}
.ai-rop-toolbar label { display: grid; gap: 5px; color: var(--muted); font-size: 11px; font-weight: 800; }
.ai-rop-toolbar input,
.ai-rop-toolbar select { min-height: 42px; }
.ai-rop-freshness { display: grid; justify-items: end; color: var(--muted); font-size: 11px; }
.ai-rop-freshness strong { color: var(--ink-2); font-size: 12px; font-variant-numeric: tabular-nums; }
.ai-rop-table-panel,
.ai-rop-managers {
  overflow: hidden;
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
}
.ai-rop-table-panel > header,
.ai-rop-managers > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}
.ai-rop-table-panel > header div { display: flex; align-items: baseline; gap: 8px; }
.ai-rop-table-panel > header span,
.ai-rop-managers > header span { color: var(--muted); font-size: 12px; }
.ai-rop-table-scroll { overflow-x: auto; }
.ai-rop-table { width: 100%; min-width: 1180px; border-collapse: collapse; table-layout: fixed; }
.ai-rop-table th {
  padding: 9px 11px;
  color: var(--muted);
  background: #f7fcff;
  border-bottom: 1px solid var(--line);
  font-size: 10px;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.ai-rop-table th:nth-child(1) { width: 94px; }
.ai-rop-table th:nth-child(2) { width: 190px; }
.ai-rop-table th:nth-child(3) { width: 150px; }
.ai-rop-table th:nth-child(4) { width: 340px; }
.ai-rop-table th:nth-child(5) { width: 120px; }
.ai-rop-table th:nth-child(6) { width: 210px; }
.ai-rop-table td {
  padding: 10px 11px;
  border-bottom: 1px solid rgba(200,221,232,.72);
  vertical-align: top;
  font-size: 12px;
  line-height: 1.35;
}
.ai-rop-table tr { border-left: 4px solid var(--line-strong); }
.ai-rop-table tr.severity-critical { border-left-color: var(--danger); }
.ai-rop-table tr.severity-high { border-left-color: #d27a19; }
.ai-rop-table tbody tr:hover { background: var(--sheet-soft); }
.ai-rop-table tbody tr:focus-within { outline: 2px solid var(--teal); outline-offset: -2px; }
.ai-rop-table td > strong,
.ai-deal-link strong { display: block; color: var(--ink); font-size: 12px; }
.ai-deal-link { display: grid; gap: 3px; color: inherit; text-decoration: none; }
.ai-deal-link:hover strong { color: var(--blue); }
.ai-deal-link span,
.ai-cell-muted,
.ai-rop-table td small { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; }
.ai-evidence {
  display: -webkit-box;
  margin-top: 4px;
  overflow: hidden;
  color: var(--ink-2);
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.ai-severity,
.ai-status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 850;
  white-space: nowrap;
}
.ai-severity-critical { color: #851f1f; background: #fff0f0; }
.ai-severity-high { color: #81450a; background: #fff6e8; }
.ai-severity-medium { color: #24577b; background: #eaf6ff; }
.ai-status-new { color: #174f8e; background: #eaf3ff; }
.ai-status-repeated { color: #81450a; background: #fff6e8; }
.ai-status-acknowledged { color: #155f55; background: #e8f8f4; }
.ai-status-ignored { color: var(--muted); background: var(--sheet-soft); }
.ai-row-actions { display: flex; flex-wrap: wrap; gap: 5px; }
.ai-row-actions .secondary,
.ai-row-actions .ghost { min-height: 32px; width: auto; padding: 0 9px; font-size: 10px; }
.ai-rop-managers > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ai-rop-managers article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 58px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
}
.ai-rop-managers article:nth-child(odd) { border-right: 1px solid var(--line); }
.ai-rop-managers article div { display: grid; gap: 2px; }
.ai-rop-managers article span { color: var(--muted); font-size: 11px; }
.ai-rop-managers article b { font-size: 21px; font-variant-numeric: tabular-nums; }
.ai-rop-empty,
.ai-rop-error { padding: 30px; text-align: center; }
.ai-rop-empty p,
.ai-rop-error p { margin: 5px 0 0; color: var(--muted); }
.ai-rop-error { display: flex; align-items: center; justify-content: space-between; gap: 16px; text-align: left; background: #fff7f7; border: 1px solid #f0caca; border-radius: 16px; }

@media (max-width: 1100px) {
  .ai-rop-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ai-rop-toolbar { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ai-rop-freshness { justify-items: start; }
}

@media (max-width: 720px) {
  .ai-rop-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ai-rop-toolbar { grid-template-columns: 1fr; }
  .ai-rop-toolbar .primary,
  .ai-rop-toolbar .secondary { width: 100%; }
  .ai-rop-managers > div { grid-template-columns: 1fr; }
  .ai-rop-managers article:nth-child(odd) { border-right: 0; }
  .ai-rop-error { align-items: stretch; flex-direction: column; }
}
