@import url("/brand/delegate/tokens.css");

:root {
  --font-sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-weight-light: 300;
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --text-xs: 12px;
  --text-sm: 13px;
  --text-base: 14px;
  --text-md: 15px;
  --text-lg: 18px;
  --text-xl: 22px;
  --text-2xl: 26px;
  --line-height-tight: 1.2;
  --line-height-normal: 1.45;
  --line-height-relaxed: 1.6;
  --bg: #ffffff;
  --app-bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f6f7f8;
  --surface-muted: #eef0f3;
  --ink: #111827;
  --text: #374151;
  --muted: #6b7280;
  --faint: #9ca3af;
  --border: #e5e7eb;
  --border-soft: #eef0f3;
  --border-strong: #d1d5db;
  --sidebar-bg: #f6f7f8;
  --sidebar-border: #e5e7eb;
  --sidebar-text: #374151;
  --sidebar-text-muted: #6b7280;
  --sidebar-item-hover: #eef0f3;
  --sidebar-item-active-bg: #ffffff;
  --sidebar-item-active-text: var(--delegate-brand-secondary, #103030);
  --accent: var(--delegate-brand-primary, #60d070);
  --accent-2: #0b6ee7;
  --success-bg: #dcfce7;
  --success: #166534;
  --warn-bg: #fef3c7;
  --warn: #92400e;
  --danger-bg: #fee2e2;
  --danger: #b91c1c;
  --info-bg: #dbeafe;
  --info: #1d4ed8;
  --shadow: 0 14px 34px rgba(17, 24, 39, .07);
  --radius: 8px;
  --font: var(--font-sans);
  --switch-width: 44px;
  --switch-height: 24px;
  --switch-thumb: 18px;
  --switch-off-bg: #cbd5e1;
  --switch-off-border: #94a3b8;
  --switch-on-bg: #0f3d35;
  --switch-on-border: #0f3d35;
  --switch-focus: rgba(96, 208, 112, .36);
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  min-height: 100%;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}
@supports not (overflow: clip) {
  html,
  body {
    overflow-x: hidden;
  }
}
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--text-base);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-normal);
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
.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;
}
.app-shell { min-height: 100vh; max-width: 100%; overflow-x: clip; display: grid; grid-template-columns: 260px minmax(0, 1fr); background: var(--surface); }
.mobile-appbar,
.mobile-tabbar,
.mobile-menu-backdrop,
.mobile-menu-sheet {
  display: none;
}
.sidebar {
  background: var(--sidebar-bg);
  color: var(--sidebar-text);
  border-right: 1px solid var(--sidebar-border);
  box-shadow: inset -14px 0 18px -20px rgba(17, 24, 39, .5);
  padding: 18px 14px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: auto;
  display: flex;
  flex-direction: column;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 8px 8px 18px; }
.brand-sidebar {
  display: flex;
  align-items: center;
  padding: 6px 8px 22px;
}
.brand-login {
  display: grid;
  justify-items: start;
  gap: 8px;
  padding: 0 0 22px;
  text-align: left;
}
.brand-logo {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}
.brand-logo-sidebar {
  max-width: 178px;
}
.brand-logo-login {
  width: min(214px, 72%);
}
.brand-portal-label {
  display: block;
  color: var(--sidebar-text-muted);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-medium);
}
.brand-mark {
  width: 34px; height: 34px; border-radius: 8px;
  display: grid; place-items: center;
  background: #e7f7eb; color: #063033; font-weight: var(--font-weight-semibold);
  overflow: hidden;
}
.brand-mark img { width: 100%; height: 100%; object-fit: contain; display: block; }
.brand strong { display: block; font-size: var(--text-base); color: var(--ink); font-weight: var(--font-weight-semibold); }
.brand span { display: block; font-size: var(--text-xs); color: var(--sidebar-text-muted); margin-top: 1px; font-weight: var(--font-weight-regular); }
.nav-section { margin-top: 10px; display: grid; gap: 3px; align-content: start; flex: 1 1 auto; }
.nav-label { color: var(--sidebar-text-muted); font-size: 11px; font-weight: var(--font-weight-regular); text-transform: uppercase; letter-spacing: .04em; padding: 10px 10px 6px; }
.nav-link {
  display: flex; align-items: center; gap: 10px;
  min-height: 38px; padding: 9px 10px;
  border-radius: var(--radius);
  color: var(--sidebar-text);
  font-weight: var(--font-weight-light);
}
.nav-link:hover { background: var(--sidebar-item-hover); color: var(--ink); }
.nav-link.active { background: var(--sidebar-item-active-bg); color: var(--sidebar-item-active-text); font-weight: var(--font-weight-light); box-shadow: 0 1px 2px rgba(17, 24, 39, .04); }
.nav-icon { width: 18px; height: 18px; flex: 0 0 18px; opacity: .88; }
.nav-group {
  margin: 1px 0;
}
.nav-group summary {
  list-style: none;
}
.nav-group summary::-webkit-details-marker {
  display: none;
}
.nav-group-summary {
  padding: 0;
  justify-content: space-between;
  gap: 4px;
}
.nav-group-hub {
  min-width: 0;
  flex: 1 1 auto;
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0 9px 10px;
}
.nav-group-toggle {
  width: 32px;
  height: 38px;
  border-radius: 8px;
  color: var(--sidebar-text-muted);
  display: grid;
  place-items: center;
  flex: 0 0 32px;
  transition: transform .16s ease, background .16s ease;
}
.nav-group-toggle:hover {
  background: rgba(17, 24, 39, .04);
}
.nav-group[open] .nav-group-toggle {
  transform: rotate(90deg);
}
.nav-children {
  display: grid;
  gap: 2px;
  margin: 2px 0 7px 28px;
}
.nav-child-link {
  min-height: 34px;
  border-radius: 8px;
  color: var(--sidebar-text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  font-size: var(--text-sm);
  font-weight: var(--font-weight-light);
}
.nav-child-link:hover {
  background: var(--sidebar-item-hover);
  color: var(--ink);
}
.nav-child-link.active {
  background: var(--sidebar-item-active-bg);
  color: var(--sidebar-item-active-text);
  font-weight: var(--font-weight-light);
  box-shadow: 0 1px 2px rgba(17, 24, 39, .04);
}
.sidebar-profile {
  margin-top: auto;
  padding: 14px 0 0;
  border-top: 1px solid var(--sidebar-border);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}
.sidebar-profile-main {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 12px;
  padding: 8px;
  color: var(--sidebar-text);
}
.sidebar-profile-main:hover { background: var(--sidebar-item-hover); }
.sidebar-profile-main span:last-child {
  min-width: 0;
  display: grid;
  gap: 1px;
}
.sidebar-profile-main strong {
  color: var(--ink);
  font-size: var(--text-sm);
  line-height: 1.2;
  font-weight: var(--font-weight-medium);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sidebar-profile-main small {
  color: var(--sidebar-text-muted);
  font-size: var(--text-xs);
  line-height: 1.2;
}
.sidebar-profile-action {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--sidebar-text-muted);
}
.sidebar-profile-action:hover {
  background: var(--sidebar-item-hover);
  color: var(--ink);
}
.profile-avatar {
  --avatar-bg: #e8f5ee;
  --avatar-fg: #0f5132;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  overflow: hidden;
  background: var(--avatar-bg);
  color: var(--avatar-fg);
  border: 1px solid rgba(255,255,255,.86);
  box-shadow: 0 1px 2px rgba(17, 24, 39, .08);
}
.profile-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.profile-avatar-icon { width: 20px; height: 20px; }
.profile-avatar-tone-1 { --avatar-bg: #dcfce7; --avatar-fg: #166534; }
.profile-avatar-tone-2 { --avatar-bg: #dbeafe; --avatar-fg: #1d4ed8; }
.profile-avatar-tone-3 { --avatar-bg: #ede9fe; --avatar-fg: #6d28d9; }
.profile-avatar-tone-4 { --avatar-bg: #fce7f3; --avatar-fg: #be185d; }
.profile-avatar-tone-5 { --avatar-bg: #fef3c7; --avatar-fg: #b45309; }
.profile-avatar-tone-6 { --avatar-bg: #ccfbf1; --avatar-fg: #0f766e; }
.profile-avatar-tone-7 { --avatar-bg: #e0f2fe; --avatar-fg: #0369a1; }
.profile-avatar-tone-8 { --avatar-bg: #fee2e2; --avatar-fg: #b91c1c; }
.profile-avatar-tone-9 { --avatar-bg: #f3e8ff; --avatar-fg: #7e22ce; }
.profile-avatar-tone-10 { --avatar-bg: #e2e8f0; --avatar-fg: #334155; }
.content { min-width: 0; max-width: 100%; display: flex; flex-direction: column; background: var(--surface); }
.topbar {
  min-height: 64px;
  background: rgba(255,255,255,.92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 24px;
  position: sticky; top: 0; z-index: 5;
}
.topbar-title { display: grid; gap: 4px; min-width: 0; }
.topbar h1 { margin: 0; font-size: var(--text-lg); line-height: var(--line-height-tight); color: var(--ink); letter-spacing: 0; font-weight: var(--font-weight-semibold); }
.topbar p { margin: 3px 0 0; color: var(--muted); font-size: 12px; }
.topbar-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.breadcrumbs { display: flex; align-items: center; gap: 5px; color: var(--text-faint); font-size: 10px; font-weight: var(--font-weight-regular); line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--ink); }
.search-form { display: flex; align-items: center; gap: 8px; }
.search-input {
  flex: 1 1 auto;
  min-width: 0;
  width: min(34vw, 360px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  min-height: 42px;
  padding: 0 12px;
  color: var(--ink);
}
.main { min-width: 0; max-width: 100%; padding: 22px 24px 38px; display: grid; gap: 18px; background: var(--surface); }
.manager-hub-head .topbar-actions { align-self: center; }
.manager-hub-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.hub-metric-card {
  min-height: 94px;
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  background: #fff;
  padding: 16px 15px 14px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "value icon" "label icon";
  gap: 6px 12px;
  align-content: center;
  position: relative;
  box-shadow: 0 8px 20px rgba(17, 24, 39, .035);
  overflow: hidden;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.hub-metric-card > i {
  display: none;
}
.hub-metric-card > span {
  grid-area: icon;
  align-self: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #f5f3ff;
  color: #7c3aed;
  display: grid;
  place-items: center;
}
.hub-metric-card:nth-child(2) > span { background: #fffbeb; color: #d97706; }
.hub-metric-card:nth-child(3) > span { background: #eef2ff; color: #3730a3; }
.hub-metric-card:nth-child(4) > span { background: #ecfeff; color: #0891b2; }
.hub-metric-card small {
  grid-area: label;
  color: var(--muted);
  font-size: var(--text-sm);
  line-height: 1.3;
}
.hub-metric-card strong {
  grid-area: value;
  color: var(--ink);
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1;
  font-weight: var(--font-weight-semibold);
}
.manager-hub-dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, .9fr);
  gap: 14px;
  align-items: stretch;
}
.manager-hub-panel {
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  background: #fff;
  padding: 16px;
  display: grid;
  gap: 14px;
  min-width: 0;
  box-shadow: 0 6px 18px rgba(17, 24, 39, .035);
}
.hub-distribution-panel,
.hub-map-panel { grid-column: 1 / -1; }
.hub-panel-head {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.hub-panel-head > span {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--surface-2);
  color: var(--sidebar-item-active-text);
  flex: 0 0 auto;
}
.hub-panel-head strong {
  display: block;
  color: var(--ink);
  font-size: var(--text-md);
  line-height: 1.25;
  font-weight: var(--font-weight-medium);
}
.hub-panel-head small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: var(--text-xs);
  line-height: 1.35;
}
.hub-column-chart {
  min-height: 220px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(72px, 1fr);
  align-items: end;
  gap: 12px;
  overflow-x: auto;
  padding: 6px 2px 0;
}
.hub-column {
  min-height: 200px;
  display: grid;
  grid-template-rows: auto minmax(96px, 1fr) auto;
  gap: 8px;
  align-items: end;
  justify-items: center;
}
.hub-column strong {
  color: var(--ink);
  font-size: var(--text-md);
  font-weight: var(--font-weight-semibold);
}
.hub-column > span {
  width: min(42px, 76%);
  height: 100%;
  min-height: 96px;
  border-radius: 999px;
  background: #f4f5f7;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(17, 24, 39, .03);
}
.hub-column i {
  display: block;
  width: 100%;
  min-height: 8px;
  border-radius: inherit;
  background: linear-gradient(180deg, #7c3aed, #3730a3);
}
.hub-column:nth-child(2n) i { background: linear-gradient(180deg, #f59e0b, #d97706); }
.hub-column:nth-child(3n) i { background: linear-gradient(180deg, #38bdf8, #2563eb); }
.hub-column small {
  max-width: 96px;
  min-height: 30px;
  color: var(--muted);
  font-size: var(--text-xs);
  line-height: 1.2;
  text-align: center;
}
.hub-health-body {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}
.hub-health-ring {
  width: 112px;
  aspect-ratio: 1;
  border-radius: 999px;
  background:
    radial-gradient(circle at center, var(--surface) 0 58%, transparent 59%),
    conic-gradient(var(--delegate-brand-secondary, #103030) calc(var(--score, 0) * 1%), #e5e7eb 0);
  display: grid;
  place-items: center;
  position: relative;
  box-shadow: inset 0 0 0 1px rgba(17, 24, 39, .04);
}
.hub-health-ring strong {
  color: var(--ink);
  font-size: 26px;
  font-weight: var(--font-weight-semibold);
  line-height: 1;
}
.hub-health-ring span {
  position: absolute;
  top: calc(50% + 18px);
  color: var(--muted);
  font-size: 11px;
  font-weight: var(--font-weight-medium);
}
.hub-health-copy {
  display: grid;
  gap: 6px;
}
.hub-health-copy strong {
  color: var(--ink);
  font-size: var(--text-lg);
  font-weight: var(--font-weight-medium);
}
.hub-health-copy p {
  margin: 0;
  color: var(--muted);
  font-size: var(--text-sm);
  line-height: 1.45;
}
.hub-status-bars {
  display: grid;
  gap: 11px;
}
.hub-status-bar {
  display: grid;
  gap: 7px;
  padding: 9px 0;
}
.hub-status-bar span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.hub-status-bar strong {
  color: var(--ink);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
}
.hub-status-bar em {
  color: var(--muted);
  font-style: normal;
  font-size: var(--text-xs);
  font-weight: var(--font-weight-medium);
}
.hub-status-bar b {
  display: block;
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-2);
}
.hub-status-bar i {
  display: block;
  height: 100%;
  min-width: 4px;
  border-radius: inherit;
  background: #64748b;
}
.hub-status-bar.is-info i { background: #2563eb; }
.hub-status-bar.is-success i { background: #16a34a; }
.hub-status-bar.is-warning i { background: #d97706; }
.hub-status-bar.is-risk i { background: #dc2626; }
.hub-recent-list {
  display: grid;
  gap: 3px;
}
.hub-recent-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 48px;
  padding: 9px 0;
  border-bottom: 1px solid var(--border-soft);
}
.hub-recent-item:last-child {
  border-bottom: 0;
}
.hub-recent-item strong {
  display: block;
  color: var(--ink);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
  line-height: 1.25;
}
.hub-recent-item small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: var(--text-xs);
  line-height: 1.25;
}
.hub-recent-item em {
  color: var(--muted);
  font-style: normal;
  font-size: var(--text-xs);
  white-space: nowrap;
}
.hub-chart {
  display: grid;
  gap: 9px;
}
.hub-chart-row {
  display: grid;
  grid-template-columns: minmax(120px, .42fr) minmax(100px, 1fr) minmax(46px, auto);
  gap: 10px;
  align-items: center;
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 6px 8px;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.hub-chart-label {
  color: var(--ink);
  font-size: var(--text-sm);
  line-height: 1.25;
  font-weight: var(--font-weight-medium);
}
.hub-chart-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-2);
}
.hub-chart-bar {
  display: block;
  height: 100%;
  min-width: 0;
  border-radius: inherit;
  background: var(--sidebar-item-active-text);
}
.hub-chart-row strong {
  color: var(--ink);
  font-size: var(--text-sm);
  line-height: 1;
  text-align: right;
  font-weight: var(--font-weight-medium);
}
.hub-attention-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.hub-attention-panel .hub-attention-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.hub-attention-item {
  min-height: 74px;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  background: var(--surface);
  padding: 13px 14px;
  display: grid;
  gap: 6px;
}
.hub-metric-card:hover,
.hub-chart-row:hover,
.hub-diagram-node:hover,
.hub-attention-item:hover,
.hub-module-card:hover {
  border-color: var(--border-strong);
  box-shadow: 0 8px 22px rgba(17, 24, 39, .06);
}
.hub-attention-item span {
  color: var(--muted);
  font-size: var(--text-sm);
}
.hub-attention-item strong {
  color: var(--ink);
  font-size: var(--text-xl);
  line-height: var(--line-height-tight);
  font-weight: var(--font-weight-semibold);
}
.hub-diagram {
  display: grid;
  grid-template-columns: minmax(180px, .34fr) minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
}
.hub-diagram-core {
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  background: var(--surface-2);
  color: var(--ink);
  padding: 16px;
  display: grid;
  gap: 10px;
  align-content: center;
  justify-items: start;
}
.hub-diagram-core span {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--surface);
  color: var(--sidebar-item-active-text);
  display: grid;
  place-items: center;
}
.hub-diagram-core strong {
  font-size: var(--text-lg);
  line-height: 1.2;
  font-weight: var(--font-weight-medium);
}
.hub-diagram-spokes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.hub-diagram-node {
  min-height: 78px;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  background: var(--surface);
  padding: 12px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.hub-diagram-node span {
  color: var(--sidebar-item-active-text);
}
.hub-diagram-node strong {
  color: var(--ink);
  font-size: var(--text-sm);
  line-height: 1.25;
  font-weight: var(--font-weight-medium);
}
.hub-diagram-node small {
  color: var(--muted);
  font-size: var(--text-xs);
  line-height: 1;
  font-weight: var(--font-weight-medium);
}
.hub-module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}
.hub-module-card {
  min-height: 68px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  padding: 12px 13px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.hub-module-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--sidebar-item-active-text);
  display: grid;
  place-items: center;
}
.hub-module-card strong {
  display: block;
  color: var(--ink);
  font-size: var(--text-md);
  line-height: 1.25;
  font-weight: var(--font-weight-medium);
}
.hub-module-card small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: var(--text-sm);
  line-height: 1.4;
}
.hub-module-card em {
  align-self: start;
  min-width: 38px;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--ink);
  padding: 3px 8px;
  text-align: center;
  font-style: normal;
  font-size: var(--text-xs);
  font-weight: var(--font-weight-medium);
}
.maintenance-workbench-head { align-items: center; }
.maintenance-signal-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 18px;
}
.maintenance-signal {
  min-height: 86px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
  color: var(--ink);
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.maintenance-signal:hover {
  border-color: var(--border-strong);
  box-shadow: 0 14px 34px rgba(15, 23, 42, .08);
  transform: translateY(-1px);
}
.maintenance-signal > span {
  width: 38px;
  height: 38px;
  border: 1px solid #d7eadf;
  border-radius: 12px;
  background: #eef6f1;
  color: var(--sidebar-item-active-text);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}
.maintenance-signal strong {
  display: block;
  font-size: 24px;
  font-weight: var(--font-weight-semibold);
  line-height: 1;
}
.maintenance-signal small,
.maintenance-signal em {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: var(--text-xs);
  font-style: normal;
  line-height: 1.35;
}
.maintenance-workbench-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr);
  gap: 16px;
}
.maintenance-workbench-panel {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(15, 23, 42, .04);
  overflow: hidden;
}
.maintenance-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--border);
  padding: 16px 18px;
}
.maintenance-panel-head strong {
  display: block;
  color: var(--ink);
  font-size: var(--text-md);
  font-weight: var(--font-weight-semibold);
}
.maintenance-panel-head small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: var(--text-xs);
}
.maintenance-queue-list,
.maintenance-mini-list,
.maintenance-rule-list {
  display: grid;
}
.maintenance-queue-row,
.maintenance-mini-list a,
.maintenance-rule-list article {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(140px, auto) auto;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border);
  color: var(--ink);
  padding: 13px 16px;
  text-decoration: none;
}
.maintenance-queue-row:last-child,
.maintenance-mini-list a:last-child,
.maintenance-rule-list article:last-child { border-bottom: 0; }
.maintenance-queue-row:hover,
.maintenance-mini-list a:hover { background: #f8fafc; }
.maintenance-queue-icon {
  width: 36px;
  height: 36px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f1f5f9;
  color: #334155;
  display: grid;
  place-items: center;
}
.maintenance-queue-main strong,
.maintenance-mini-list strong,
.maintenance-rule-list strong {
  display: block;
  overflow: hidden;
  color: var(--ink);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.maintenance-queue-main small,
.maintenance-queue-meta small,
.maintenance-mini-list small,
.maintenance-rule-list small {
  display: block;
  overflow: hidden;
  margin-top: 3px;
  color: var(--muted);
  font-size: var(--text-xs);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.maintenance-queue-meta { text-align: right; }
.maintenance-queue-meta em,
.maintenance-mini-list em {
  display: block;
  margin-top: 3px;
  color: var(--text);
  font-size: var(--text-xs);
  font-style: normal;
}
.maintenance-lifecycle-bars {
  display: grid;
  gap: 12px;
  padding: 16px 18px 18px;
}
.maintenance-lifecycle-bar span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 7px;
}
.maintenance-lifecycle-bar strong {
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semibold);
}
.maintenance-lifecycle-bar em {
  color: var(--muted);
  font-size: var(--text-xs);
  font-style: normal;
}
.maintenance-lifecycle-bar b {
  height: 8px;
  border-radius: 999px;
  background: #eef2f7;
  display: block;
  overflow: hidden;
}
.maintenance-lifecycle-bar i {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--sidebar-item-active-text), #60a5fa);
  display: block;
}
.maintenance-mini-list a,
.maintenance-rule-list article {
  grid-template-columns: minmax(0, 1fr) auto auto;
}
.maintenance-ai-list {
  display: grid;
  gap: 10px;
}
.maintenance-ai-list article {
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  background: #f8fafc;
  padding: 11px 12px;
}
.maintenance-ai-list strong,
.maintenance-ai-list span,
.maintenance-ai-list small {
  display: block;
}
.maintenance-ai-list strong {
  color: var(--ink);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
}
.maintenance-ai-list span {
  margin-top: 5px;
  color: var(--text);
  font-size: var(--text-sm);
  line-height: 1.45;
}
.maintenance-ai-list small {
  margin-top: 7px;
  color: var(--muted);
  font-size: var(--text-xs);
}
.owner-approval-command-panel {
  display: grid;
  grid-template-columns: minmax(280px, .8fr) minmax(0, 1.2fr);
  gap: 16px;
  margin: 0 0 18px;
}
.owner-approval-command-copy,
.owner-approval-workflow-card {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(15, 23, 42, .04);
}
.owner-approval-command-copy {
  padding: 18px;
}
.owner-approval-command-copy > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--sidebar-item-active-text);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.owner-approval-command-copy h3 {
  margin: 9px 0 8px;
  color: var(--ink);
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.08;
  font-weight: var(--font-weight-semibold);
}
.owner-approval-command-copy p {
  margin: 0;
  color: var(--text);
  font-size: var(--text-sm);
  line-height: 1.5;
}
.owner-approval-command-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.owner-approval-signal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.owner-approval-signal {
  min-height: 94px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
  color: var(--ink);
  padding: 14px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  text-decoration: none;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.owner-approval-signal:hover {
  border-color: var(--border-strong);
  box-shadow: 0 14px 34px rgba(15, 23, 42, .08);
  transform: translateY(-1px);
}
.owner-approval-signal > span {
  width: 38px;
  height: 38px;
  border: 1px solid #d7eadf;
  border-radius: 12px;
  background: #eef6f1;
  color: var(--sidebar-item-active-text);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}
.owner-approval-signal.is-warn > span {
  border-color: #fed7aa;
  background: #fff7ed;
  color: #b45309;
}
.owner-approval-signal.is-danger > span {
  border-color: #fecaca;
  background: #fff1f2;
  color: #be123c;
}
.owner-approval-signal.is-info > span {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #2563eb;
}
.owner-approval-signal strong {
  display: block;
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
  font-weight: var(--font-weight-semibold);
}
.owner-approval-signal small,
.owner-approval-signal em {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: var(--text-xs);
  line-height: 1.35;
  font-style: normal;
}
.owner-approval-workflow-layout {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: 16px;
  margin: 0 0 18px;
}
.owner-approval-workflow-card {
  padding: 16px;
}
.owner-approval-workflow-card .record-card-heading {
  margin-bottom: 12px;
}
.owner-approval-workflow-card .record-calm-state,
.owner-approval-workflow-card .workflow-dee-prompts {
  margin-top: 12px;
}
.owner-approval-recent-list {
  display: grid;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  overflow: hidden;
}
.owner-approval-recent-list a {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border-soft);
  color: var(--ink);
  padding: 12px;
  text-decoration: none;
}
.owner-approval-recent-list a:last-child {
  border-bottom: 0;
}
.owner-approval-recent-list a:hover {
  background: #f8fafc;
}
.owner-approval-recent-list a > span:first-child {
  width: 34px;
  height: 34px;
  border: 1px solid #e2e8f0;
  border-radius: 11px;
  background: #f1f5f9;
  color: #334155;
  display: grid;
  place-items: center;
}
.owner-approval-recent-list strong,
.owner-approval-recent-list small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.owner-approval-recent-list strong {
  color: var(--ink);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
}
.owner-approval-recent-list small {
  margin-top: 3px;
  color: var(--muted);
  font-size: var(--text-xs);
}
@media (max-width: 1180px) {
  .maintenance-signal-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .maintenance-workbench-layout {
    grid-template-columns: 1fr;
  }
  .owner-approval-command-panel,
  .owner-approval-workflow-layout {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 760px) {
  .maintenance-signal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .owner-approval-signal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .maintenance-signal {
    min-height: 78px;
    padding: 12px;
  }
  .owner-approval-command-copy,
  .owner-approval-workflow-card,
  .owner-approval-signal {
    border-radius: 12px;
  }
  .maintenance-signal strong {
    font-size: 20px;
  }
  .owner-approval-signal strong {
    font-size: 20px;
  }
  .maintenance-queue-row {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .maintenance-queue-meta,
  .maintenance-queue-status {
    grid-column: 2;
    text-align: left;
  }
  .maintenance-mini-list a,
  .maintenance-rule-list article {
    align-items: flex-start;
    grid-template-columns: 1fr;
  }
  .owner-approval-recent-list a {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .owner-approval-recent-list .smart-grid-badge {
    grid-column: 2;
    justify-self: start;
  }
}
@media (max-width: 520px) {
  .owner-approval-signal-grid {
    grid-template-columns: 1fr;
  }
}

.supplier-submission-command .owner-approval-metrics,
.supplier-credential-review-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.supplier-submission-workflow,
.supplier-credential-review-panel {
  margin-bottom: 18px;
}

.supplier-submission-workflow .workflow-step-list,
.supplier-credential-review-list,
.supplier-review-card-list {
  display: grid;
  gap: 12px;
}

.supplier-submission-workflow .workflow-step-card,
.supplier-credential-review-card,
.supplier-review-card {
  border: 1px solid var(--border-soft);
  border-radius: 13px;
  background: #fff;
  padding: 12px;
}

.supplier-submission-workflow .workflow-step-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
}

.supplier-submission-workflow .workflow-step-card > span {
  width: 34px;
  height: 34px;
  border: 1px solid #d7eadf;
  border-radius: 11px;
  background: #eef6f1;
  color: var(--sidebar-item-active-text);
  display: grid;
  place-items: center;
}

.supplier-submission-workflow .workflow-step-card strong,
.supplier-submission-workflow .workflow-step-card p,
.supplier-submission-workflow .workflow-step-card small,
.supplier-credential-review-main strong,
.supplier-credential-review-main span,
.supplier-credential-review-main small {
  display: block;
}

.supplier-submission-workflow .workflow-step-card p,
.supplier-credential-review-main span {
  margin: 4px 0 0;
  color: var(--text);
  font-size: var(--text-sm);
  line-height: 1.45;
}

.supplier-submission-workflow .workflow-step-card small,
.supplier-credential-review-main small {
  margin-top: 5px;
  color: var(--muted);
  font-size: var(--text-xs);
}

.supplier-dee-prompt-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.supplier-dee-prompt-grid a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #dbe4e8;
  border-radius: 999px;
  background: #f8fafc;
  color: var(--ink);
  padding: 8px 11px;
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semibold);
  text-decoration: none;
}

.supplier-credential-review-card,
.supplier-review-card {
  display: grid;
  gap: 12px;
}

.supplier-credential-review-main,
.supplier-review-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
}

.supplier-review-main strong,
.supplier-review-main span,
.supplier-review-main small {
  display: block;
}

.supplier-review-main span,
.supplier-review-main p {
  margin: 4px 0 0;
  color: var(--text);
  font-size: var(--text-sm);
  line-height: 1.45;
}

.supplier-review-main small {
  margin-top: 5px;
  color: var(--muted);
  font-size: var(--text-xs);
}

.supplier-credential-review-actions {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.supplier-credential-review-form,
.supplier-review-outcome-form {
  display: grid;
  grid-template-columns: minmax(150px, .42fr) minmax(180px, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.supplier-credential-review-form label,
.supplier-review-outcome-form label {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.supplier-credential-review-form label span,
.supplier-review-outcome-form label span {
  color: var(--muted);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semibold);
}

.supplier-credential-review-form select,
.supplier-credential-review-form textarea,
.supplier-review-outcome-form select,
.supplier-review-outcome-form textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: var(--text-sm);
  padding: 9px 10px;
}

.supplier-credential-review-form textarea,
.supplier-review-outcome-form textarea {
  resize: vertical;
}

.comment-visibility-field {
  display: grid;
  gap: 5px;
}

.comment-visibility-field span,
.comment-visibility-field small {
  color: var(--muted);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semibold);
}

.comment-visibility-field small {
  font-weight: var(--font-weight-regular);
  line-height: 1.45;
}

.comment-visibility-field select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: var(--text-sm);
  padding: 9px 10px;
}

.record-document-menu-panel .document-visibility-toggle {
  margin-top: 8px;
}

@media (max-width: 980px) {
  .supplier-submission-command .owner-approval-metrics,
  .supplier-credential-review-metrics,
  .supplier-credential-review-actions,
  .supplier-credential-review-form,
  .supplier-review-main,
  .supplier-review-outcome-form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .supplier-credential-review-main {
    grid-template-columns: 1fr;
  }
  .supplier-credential-review-main .smart-grid-badge {
    justify-self: start;
  }
  .supplier-dee-prompt-grid a {
    width: 100%;
    justify-content: center;
  }
}

.forms-command-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 0 16px;
}

.forms-command-grid article {
  align-items: flex-start;
  background: linear-gradient(180deg, #fff, #fbfcfd);
  border: 1px solid var(--border-subtle, #e5e7eb);
  border-radius: 14px;
  display: grid;
  gap: 11px;
  grid-template-columns: 38px minmax(0, 1fr);
  min-height: 142px;
  padding: 14px;
}

.forms-command-grid small {
  color: var(--muted);
  display: block;
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semibold);
  margin-bottom: 6px;
  text-transform: uppercase;
}

.forms-command-grid strong {
  color: var(--ink);
  display: block;
  font-size: var(--text-2xl);
  font-weight: var(--font-weight-semibold);
  line-height: 1;
  margin-bottom: 8px;
}

.forms-command-grid p {
  color: var(--muted);
  font-size: var(--text-xs);
  line-height: 1.42;
  margin: 0;
}

.forms-workflow-strip {
  background: #fff;
  border: 1px solid var(--border-subtle, #e5e7eb);
  border-radius: 14px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 0 16px;
  overflow: hidden;
}

.forms-workflow-strip article {
  display: grid;
  gap: 5px;
  grid-template-columns: 28px minmax(0, 1fr);
  padding: 14px;
}

.forms-workflow-strip article + article {
  border-left: 1px solid var(--border-subtle, #e5e7eb);
}

.forms-workflow-strip span {
  align-items: center;
  align-self: start;
  background: #f3f4f6;
  border-radius: 999px;
  color: var(--muted);
  display: inline-flex;
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semibold);
  height: 28px;
  justify-content: center;
  width: 28px;
}

.forms-workflow-strip strong {
  color: var(--ink);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
}

.forms-workflow-strip small {
  color: var(--muted);
  font-size: var(--text-xs);
  grid-column: 2;
  line-height: 1.42;
}

.signing-list-panel {
  overflow: hidden;
}

.signing-page-head .page-title p {
  max-width: 720px;
}

.signing-workspace-tabs {
  margin-top: -8px;
}

.signing-signal-grid {
  margin-bottom: 18px;
}

.signing-list-head {
  align-items: flex-start;
  gap: 16px;
}

.signing-list-head p {
  color: var(--muted);
  font-size: var(--text-sm);
  margin: 5px 0 0;
}

.signing-table-action-row {
  align-items: center;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 14px 16px;
}

.signing-filter-tabs {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.signing-table-action-row .signing-filter-tabs {
  justify-content: flex-start;
}

.signing-table-action-row .topbar-actions {
  flex: 0 0 auto;
}

.signing-filter-tabs a {
  align-items: center;
  border: 1px solid var(--border-subtle, #e5e7eb);
  border-radius: 999px;
  color: var(--text-secondary, #4b5563);
  display: inline-flex;
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semibold);
  gap: 7px;
  line-height: 1;
  padding: 8px 10px;
  text-decoration: none;
  transition: background .16s ease, border-color .16s ease, color .16s ease;
  white-space: nowrap;
}

.signing-filter-tabs a em {
  align-items: center;
  background: rgba(15, 23, 42, .06);
  border-radius: 999px;
  color: var(--text-primary);
  display: inline-flex;
  font-size: 11px;
  font-style: normal;
  font-weight: var(--font-weight-semibold);
  height: 20px;
  justify-content: center;
  min-width: 22px;
  padding: 0 7px;
}

.signing-filter-tabs a:hover,
.signing-filter-tabs a.active {
  background: #eef7f1;
  border-color: rgba(96, 208, 112, .34);
  color: var(--sidebar-item-active-text);
}

.signing-filter-tabs a.active em {
  background: rgba(96, 208, 112, .2);
  color: var(--sidebar-item-active-text);
}

.signing-command-panel {
  align-items: center;
  background: linear-gradient(135deg, #103030, #16433f);
  border: 1px solid rgba(16, 48, 48, .16);
  border-radius: 16px;
  color: #fff;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) minmax(360px, .75fr);
  margin-bottom: 18px;
  padding: 22px;
}

.signing-command-panel h3 {
  font-size: 22px;
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0;
  margin: 0;
}

.signing-command-panel p {
  color: rgba(255, 255, 255, .76);
  font-size: var(--text-sm);
  line-height: 1.48;
  margin: 7px 0 0;
  max-width: 680px;
}

.signing-command-metrics {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.signing-command-metrics a {
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 12px;
  color: #fff;
  display: grid;
  gap: 3px;
  min-height: 76px;
  padding: 13px;
  text-decoration: none;
}

.signing-command-metrics strong {
  font-size: 24px;
  font-weight: var(--font-weight-semibold);
  line-height: 1;
}

.signing-command-metrics span {
  color: rgba(255, 255, 255, .72);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-medium);
}

.signing-table {
  table-layout: fixed;
}

.signing-table th:nth-child(1) { width: 24%; }
.signing-table th:nth-child(2) { width: 29%; }
.signing-table th:nth-child(3) { width: 11%; }
.signing-table th:nth-child(4) { width: 15%; }
.signing-table th:nth-child(5) { width: 13%; }
.signing-table th:nth-child(6) { width: 8%; }

.signing-table td {
  vertical-align: top;
}

.signing-table td small,
.signing-envelope-title + small {
  color: var(--muted);
  display: block;
  font-size: var(--text-xs);
  line-height: 1.42;
  margin-top: 4px;
}

.signing-table td .button {
  min-height: 36px;
  white-space: nowrap;
}

.signing-envelope-toolbar .smart-grid-toolbar-row {
  grid-template-columns: minmax(260px, 1fr) minmax(170px, 220px) auto auto;
}
.signing-envelope-toolbar .smart-grid-filter-select {
  width: 100%;
}
.signing-envelope-grid {
  display: grid;
  gap: 10px;
}
.signing-envelope-smart-table table {
  min-width: 1180px;
}
.signing-envelope-smart-table td small {
  color: var(--muted);
  display: block;
  font-size: 11px;
  line-height: 1.35;
  margin-top: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.signing-envelope-smart-table .badge,
.signing-envelope-smart-table .smart-grid-badge {
  max-width: 100%;
}
.signing-envelope-actions {
  text-align: right;
}
.signing-envelope-actions .button,
.signing-envelope-actions form {
  max-width: 100%;
}
.signing-envelope-actions .button {
  min-height: 34px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.signing-table-workflow {
  min-width: 0;
}

.signing-workflow-steps {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.signing-workflow-steps article {
  align-items: center;
  background: #fff;
  border: 1px solid var(--border-subtle, #e5e7eb);
  border-radius: 12px;
  display: grid;
  gap: 8px;
  grid-template-columns: 26px minmax(0, 1fr);
  min-width: 0;
  padding: 10px;
}

.signing-workflow-steps article > span {
  align-items: center;
  background: #f1f5f9;
  border-radius: 999px;
  color: #64748b;
  display: inline-flex;
  height: 26px;
  justify-content: center;
  width: 26px;
}

.signing-workflow-steps strong,
.signing-workflow-steps small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.signing-workflow-steps strong {
  color: var(--ink);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semibold);
}

.signing-workflow-steps small {
  color: var(--muted);
  font-size: 11px;
  margin-top: 2px;
}

.signing-workflow-steps article.is-complete {
  background: #f0fdf4;
  border-color: #bbf7d0;
}

.signing-workflow-steps article.is-complete > span {
  background: #16a34a;
  color: #fff;
}

.signing-workflow-steps article.is-active {
  background: #fff;
  border-color: rgba(16, 48, 48, .28);
  box-shadow: 0 10px 24px rgba(15, 23, 42, .06);
}

.signing-workflow-steps article.is-active > span {
  background: #103030;
  color: #fff;
}

.signing-workflow-steps.is-compact {
  gap: 5px;
  grid-template-columns: repeat(5, 1fr);
}

.signing-workflow-steps.is-compact article {
  border-radius: 999px;
  display: block;
  height: 8px;
  min-height: 0;
  overflow: hidden;
  padding: 0;
}

.signing-workflow-steps.is-compact article > span,
.signing-workflow-steps.is-compact article div {
  display: none;
}

.signing-record-overview,
.signing-create-hero {
  margin-bottom: 18px;
}

.signing-record-summary,
.signing-create-hero {
  background: #fff;
  border: 1px solid var(--border-subtle, #e5e7eb);
  border-radius: 16px;
  display: grid;
  gap: 16px;
  padding: 18px;
}

.signing-record-summary {
  grid-template-columns: minmax(220px, .42fr) minmax(0, 1fr);
}

.signing-record-summary > div:first-child span,
.signing-create-hero p {
  color: var(--muted);
  font-size: var(--text-sm);
}

.signing-record-summary > div:first-child strong {
  color: var(--ink);
  display: block;
  font-size: var(--text-base);
  font-weight: var(--font-weight-semibold);
  line-height: 1.35;
  margin-top: 5px;
}

.signing-create-hero {
  align-items: center;
  grid-template-columns: minmax(0, 1fr) auto;
}

.signing-create-hero h3 {
  color: var(--ink);
  font-size: 20px;
  font-weight: var(--font-weight-semibold);
  margin: 0;
}

.signing-create-hero p {
  line-height: 1.48;
  margin: 6px 0 0;
  max-width: 760px;
}

.signing-create-steps {
  display: inline-grid;
  gap: 8px;
  grid-auto-flow: column;
}

.signing-create-steps span {
  align-items: center;
  background: #eef7f1;
  border: 1px solid rgba(96, 208, 112, .28);
  border-radius: 999px;
  color: var(--sidebar-item-active-text);
  display: inline-flex;
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
  height: 34px;
  justify-content: center;
  width: 34px;
}

.signing-new-guide,
.signing-prepare-sidebar {
  position: sticky;
  top: 18px;
}

.signing-guidance-list,
.signing-readiness-list {
  display: grid;
  gap: 10px;
}

.signing-guidance-list article,
.signing-readiness-list article,
.signing-linked-record-card {
  align-items: flex-start;
  background: #fbfcfd;
  border: 1px solid var(--border-subtle, #e5e7eb);
  border-radius: 12px;
  display: grid;
  gap: 10px;
  grid-template-columns: 32px minmax(0, 1fr);
  padding: 12px;
}

.signing-guidance-list article > span,
.signing-readiness-list article > span,
.signing-linked-record-card > span {
  align-items: center;
  background: #eef7f1;
  border-radius: 999px;
  color: var(--sidebar-item-active-text);
  display: inline-flex;
  height: 32px;
  justify-content: center;
  width: 32px;
}

.signing-guidance-list strong,
.signing-readiness-list strong,
.signing-linked-record-card strong {
  color: var(--ink);
  display: block;
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
}

.signing-guidance-list small,
.signing-readiness-list small,
.signing-linked-record-card small,
.signing-linked-record-card em {
  color: var(--muted);
  display: block;
  font-size: var(--text-xs);
  font-style: normal;
  line-height: 1.42;
  margin-top: 3px;
}

.signing-readiness-list article.is-needed > span {
  background: #f8fafc;
  color: #94a3b8;
}

.signing-readiness-list article.is-complete {
  background: #f0fdf4;
  border-color: #bbf7d0;
}

.signing-readiness-list article.is-complete > span {
  background: #16a34a;
  color: #fff;
}

.signing-linked-record-card {
  margin: 16px 0;
}

.signing-linked-record-card a {
  color: var(--sidebar-item-active-text);
  display: inline-flex;
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semibold);
  margin-top: 8px;
  text-decoration: none;
}

.signing-void-form {
  border-top: 1px solid var(--border-subtle, #e5e7eb);
  margin-top: 16px;
  padding-top: 16px;
}

.signing-prepare-block {
  border-top: 1px solid var(--border-subtle, #e5e7eb);
  display: grid;
  gap: 10px;
  margin-top: 16px;
  padding-top: 16px;
}

.signing-prepare-block:first-child {
  border-top: 0;
  margin-top: 0;
  padding-top: 0;
}

.signing-prepare-block h4 {
  color: var(--ink);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
  margin: 0;
}

.signing-review-workspace {
  align-items: start;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) minmax(340px, .72fr);
}

.signing-review-summary {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.signing-review-summary article {
  align-items: center;
  background: #fbfcfd;
  border: 1px solid var(--border-subtle, #e5e7eb);
  border-radius: 12px;
  display: grid;
  gap: 10px;
  grid-template-columns: 32px minmax(0, 1fr);
  padding: 12px;
}

.signing-review-summary article > span {
  align-items: center;
  background: #eef7f1;
  border-radius: 999px;
  color: var(--sidebar-item-active-text);
  display: inline-flex;
  height: 32px;
  justify-content: center;
  width: 32px;
}

.signing-review-summary strong {
  color: var(--ink);
  display: block;
  font-size: 20px;
  font-weight: var(--font-weight-semibold);
  line-height: 1;
}

.signing-review-summary small {
  color: var(--muted);
  display: block;
  font-size: var(--text-xs);
  margin-top: 3px;
}

.signing-send-form {
  border-top: 1px solid var(--border-subtle, #e5e7eb);
  margin-top: 16px;
  padding-top: 16px;
}

.signing-history-panel .panel-head {
  align-items: center;
}

.module-section-tabs {
  align-items: center;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin: -8px 0 0;
  padding: 0;
}

.module-section-tabs a {
  align-items: center;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  display: inline-flex;
  flex: 0 1 auto;
  font-size: var(--text-sm);
  font-weight: var(--font-weight-regular);
  gap: 8px;
  min-height: 42px;
  min-width: 0;
  padding: 9px 0 10px;
  text-decoration: none;
  transition: border-color .16s ease, color .16s ease;
  white-space: nowrap;
}

.module-section-tabs a:hover {
  border-bottom-color: rgba(16, 48, 48, .24);
  color: var(--sidebar-item-active-text);
}

.module-section-tabs a.active {
  border-bottom-color: var(--sidebar-item-active-text);
  color: var(--sidebar-item-active-text);
}

.module-section-tab-label {
  align-items: center;
  display: inline-flex;
  gap: 7px;
  min-width: 0;
}

.module-section-tab-label strong {
  font-weight: var(--font-weight-medium);
}

.module-section-tabs a em {
  align-items: center;
  background: #eef2f7;
  border-radius: 999px;
  color: #475569;
  display: inline-flex;
  font-size: 11px;
  font-style: normal;
  font-weight: var(--font-weight-semibold);
  height: 20px;
  justify-content: center;
  min-width: 24px;
  padding: 0 7px;
}

.module-section-tabs a.active em {
  background: #dcfce7;
  color: #166534;
}

.manager-context-tabs {
  margin: -10px 0 14px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.manager-context-tabs .module-section-tab-label {
  gap: 6px;
}

.manager-context-tabs .app-icon {
  flex: 0 0 15px;
  opacity: .78;
}

.signing-empty-state {
  min-height: 260px;
}

.signing-record-layout,
.signing-prepare-layout {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(240px, .75fr) minmax(0, 1.45fr) minmax(280px, .9fr);
  align-items: start;
}

.signing-left,
.signing-right {
  position: sticky;
  top: 18px;
}

.signing-document-list,
.signing-recipient-list,
.signing-field-list,
.signing-timeline {
  display: grid;
  gap: 10px;
}

.signing-document-list article,
.signing-recipient-list article,
.signing-field-list article {
  align-items: center;
  background: #fff;
  border: 1px solid var(--border-subtle, #e5e7eb);
  border-radius: 12px;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 12px;
}

.signing-document-list article > div {
  align-items: center;
  display: flex;
  gap: 10px;
  min-width: 0;
}

.signing-document-list small,
.signing-recipient-list small,
.signing-field-list span {
  color: var(--text-muted, #667085);
  display: block;
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.signing-timeline article {
  border-left: 2px solid rgba(16, 48, 48, .18);
  padding: 0 0 2px 14px;
}

.signing-timeline time {
  color: var(--text-muted, #667085);
  display: block;
  font-size: 12px;
  margin-bottom: 4px;
}

.signing-timeline p {
  color: var(--text-primary, #111827);
  margin: 0;
}

.signing-pdf-preview {
  background: #f8fafc;
  min-height: 620px;
  padding: 0;
}

.signing-pdf-preview iframe {
  border: 0;
  border-radius: 12px;
  display: block;
  min-height: 620px;
  width: 100%;
}

.signing-doc-chip {
  align-items: center;
  border: 1px solid var(--border-subtle, #e5e7eb);
  border-radius: 999px;
  color: var(--text-secondary, #4b5563);
  display: inline-flex;
  font-size: 13px;
  gap: 7px;
  margin: 10px 8px 0 0;
  max-width: 100%;
  padding: 7px 10px;
  text-decoration: none;
}

.signing-new-workspace {
  align-items: start;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, .85fr);
}

.signing-new-workspace-single {
  grid-template-columns: minmax(0, 980px);
}

.signing-new-composer {
  max-width: 980px;
  width: 100%;
}

.signing-new-panel {
  overflow: visible;
}

.signing-new-panel .panel-head h3 {
  align-items: center;
  display: inline-flex;
  gap: 8px;
}

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

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

.signing-new-form label {
  display: grid;
  gap: 7px;
}

.signing-new-form label > span {
  color: var(--muted);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
}

.signing-new-form input,
.signing-new-form select,
.signing-new-form textarea {
  width: 100%;
  border: 1px solid var(--border, #d6e0e6);
  border-radius: 12px;
  background: linear-gradient(180deg, #fff, #fbfcfd);
  color: var(--ink);
  font: inherit;
  min-height: 44px;
  padding: 10px 12px;
  box-shadow: 0 1px 0 rgba(17, 24, 39, .02);
}

.signing-new-form textarea {
  min-height: 128px;
  resize: vertical;
}

.signing-new-form input:focus,
.signing-new-form select:focus,
.signing-new-form textarea:focus {
  border-color: rgba(96, 208, 112, .72);
  box-shadow: 0 0 0 3px rgba(96, 208, 112, .16);
  outline: none;
}

.signing-new-submit {
  border-top: 1px solid var(--border-subtle, #e5e7eb);
  display: flex;
  justify-content: flex-end;
  margin-top: 18px;
  padding-top: 16px;
}

.signing-form-section {
  display: grid;
  gap: 14px;
}

.signing-form-section + .signing-form-section {
  border-top: 1px solid var(--border-subtle, #e5e7eb);
  margin-top: 18px;
  padding-top: 18px;
}

.signing-form-section h4,
.signing-section-heading h4 {
  color: var(--ink);
  font-size: var(--text-base);
  font-weight: var(--font-weight-semibold);
  margin: 0;
}

.signing-section-heading {
  align-items: flex-start;
  display: flex;
  gap: 14px;
  justify-content: space-between;
}

.signing-section-heading p {
  color: var(--muted);
  font-size: var(--text-sm);
  line-height: 1.45;
  margin: 5px 0 0;
}

.signing-linked-section {
  background: #fbfcfd;
  border: 1px solid var(--border-subtle, #e5e7eb);
  border-radius: 14px;
  padding: 16px;
}

.signing-linked-toolbar {
  align-items: stretch;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(260px, 1fr) auto;
}

.signing-linked-toolbar .modal-search-field {
  margin: 0;
}

.signing-record-type-tabs {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.signing-record-type-tabs button {
  background: #fff;
  border: 1px solid var(--border-subtle, #e5e7eb);
  border-radius: 999px;
  color: var(--text-secondary, #4b5563);
  cursor: pointer;
  font: inherit;
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semibold);
  min-height: 36px;
  padding: 8px 10px;
  transition: background .16s ease, border-color .16s ease, color .16s ease;
}

.signing-record-type-tabs button:hover,
.signing-record-type-tabs button.active {
  background: #eef7f1;
  border-color: rgba(96, 208, 112, .34);
  color: var(--sidebar-item-active-text);
}

.signing-linked-picker-fluid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-top: 12px;
}

.signing-linked-panel {
  position: sticky;
  top: 18px;
}

.signing-linked-search {
  align-items: stretch;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
  margin: 0 0 12px;
}

.signing-linked-search .modal-search-field {
  margin: 0;
}

.signing-linked-picker {
  display: grid;
  gap: 8px;
}

.signing-linked-option {
  align-items: center;
  border: 1px solid var(--border-subtle, #e5e7eb);
  border-radius: 12px;
  background: linear-gradient(180deg, #fff, #fbfcfd);
  cursor: pointer;
  display: grid;
  gap: 10px;
  grid-template-columns: 34px minmax(0, 1fr);
  min-height: 58px;
  padding: 10px 11px;
  position: relative;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.signing-linked-option:hover,
.signing-linked-option.selected,
.signing-linked-option:has(input:checked) {
  border-color: rgba(16, 48, 48, .24);
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .06);
}

.signing-linked-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.signing-linked-icon {
  align-items: center;
  align-self: center;
  background: #eef7f1;
  border: 1px solid rgba(96, 208, 112, .28);
  border-radius: 999px;
  color: var(--sidebar-item-active-text);
  display: inline-flex;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.signing-linked-option strong,
.signing-linked-option small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.signing-linked-option strong {
  color: var(--ink);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
  line-height: 1.25;
}

.signing-linked-option small {
  color: var(--muted);
  font-size: var(--text-xs);
  margin-top: 3px;
}

.signing-linked-empty {
  margin-top: 4px;
}

.forms-page-head {
  align-items: center;
}

.forms-hero {
  align-items: center;
  background:
    linear-gradient(135deg, rgba(16, 48, 48, .96), rgba(19, 91, 82, .9)),
    radial-gradient(circle at top right, rgba(96, 208, 112, .34), transparent 34%);
  border: 1px solid rgba(16, 48, 48, .14);
  border-radius: 18px;
  color: #fff;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) auto;
  margin-bottom: 18px;
  overflow: hidden;
  padding: 22px;
  position: relative;
}

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

.forms-hero h3 {
  color: #fff;
  font-size: var(--text-2xl);
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0;
  line-height: var(--line-height-tight);
  margin: 8px 0 8px;
  max-width: 720px;
}

.forms-hero p {
  color: rgba(255, 255, 255, .76);
  font-size: var(--text-sm);
  line-height: 1.55;
  margin: 0;
  max-width: 680px;
}

.forms-kicker {
  align-items: center;
  color: rgba(255, 255, 255, .78);
  display: inline-flex;
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semibold);
  gap: 7px;
  text-transform: uppercase;
}

.forms-hero-stats {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(100px, 1fr));
  min-width: 360px;
}

.forms-hero-stats span {
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 14px;
  display: grid;
  gap: 3px;
  padding: 14px;
}

.forms-hero-stats strong {
  color: #fff;
  font-size: var(--text-2xl);
  font-weight: var(--font-weight-semibold);
  line-height: 1;
}

.forms-hero-stats small {
  color: rgba(255, 255, 255, .72);
  font-size: var(--text-xs);
}

.forms-action-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 16px;
}

.forms-action-card {
  background: linear-gradient(180deg, #fff, #fbfcfd);
  border: 1px solid var(--border-subtle, #e5e7eb);
  border-radius: 16px;
  color: var(--ink);
  display: grid;
  gap: 10px;
  min-height: 190px;
  padding: 18px;
  text-decoration: none;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.forms-action-card:hover {
  border-color: rgba(16, 48, 48, .2);
  box-shadow: 0 16px 34px rgba(15, 23, 42, .08);
  transform: translateY(-1px);
}

.forms-action-card.primary {
  background: linear-gradient(180deg, #f5fbf6, #fff);
  border-color: rgba(96, 208, 112, .32);
}

.forms-action-card strong {
  font-size: var(--text-lg);
  font-weight: var(--font-weight-semibold);
}

.forms-action-card small {
  color: var(--muted);
  font-size: var(--text-sm);
  line-height: 1.48;
}

.forms-action-card > span:last-child {
  align-items: center;
  color: var(--sidebar-item-active-text);
  display: inline-flex;
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
  gap: 6px;
  margin-top: auto;
}

.forms-card-icon {
  align-items: center;
  background: #eef7f1;
  border: 1px solid rgba(96, 208, 112, .28);
  border-radius: 999px;
  color: var(--sidebar-item-active-text);
  display: inline-flex;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.forms-readiness-strip {
  background: #fff;
  border: 1px solid var(--border-subtle, #e5e7eb);
  border-radius: 16px;
  display: grid;
  gap: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
}

.forms-readiness-strip article {
  display: grid;
  gap: 5px;
  padding: 16px;
}

.forms-readiness-strip article + article {
  border-left: 1px solid var(--border-subtle, #e5e7eb);
}

.forms-readiness-strip strong {
  color: var(--ink);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
}

.forms-readiness-strip span {
  color: var(--muted);
  font-size: var(--text-xs);
  line-height: 1.45;
}

.forms-source-note {
  align-items: flex-start;
  background: #fff9ed;
  border: 1px solid #fed7aa;
  border-radius: 14px;
  color: #92400e;
  display: grid;
  gap: 10px;
  grid-template-columns: auto minmax(0, 1fr);
  margin-bottom: 14px;
  padding: 12px 14px;
}

.forms-source-note strong {
  color: #9a3412;
  display: block;
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
  margin-bottom: 2px;
}

.forms-source-note p {
  color: #9a3412;
  font-size: var(--text-xs);
  line-height: 1.45;
  margin: 0;
}

.forms-library-toolbar {
  align-items: stretch;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) minmax(220px, auto) auto;
  margin: 0 0 14px;
}

.forms-library-toolbar .modal-search-field {
  margin: 0;
}

.forms-library-toolbar select {
  background: linear-gradient(180deg, #fff, #fbfcfd);
  border: 1px solid var(--border, #d6e0e6);
  border-radius: 12px;
  color: var(--ink);
  min-height: 44px;
  padding: 10px 12px;
}

.forms-library-head {
  margin-bottom: 14px;
}

.forms-library-summary {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 14px;
}

.forms-library-summary article {
  align-items: flex-start;
  background: linear-gradient(180deg, #fff, #fbfcfd);
  border: 1px solid var(--border-subtle, #e5e7eb);
  border-radius: 14px;
  display: grid;
  gap: 11px;
  grid-template-columns: 38px minmax(0, 1fr);
  min-height: 126px;
  padding: 14px;
}

.forms-library-summary article > span {
  align-items: center;
  background: #eef7f1;
  border: 1px solid rgba(96, 208, 112, .28);
  border-radius: 999px;
  color: var(--sidebar-item-active-text);
  display: inline-flex;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.forms-library-summary strong {
  color: var(--ink);
  display: block;
  font-size: var(--text-2xl);
  font-weight: var(--font-weight-semibold);
  line-height: 1;
  margin-bottom: 7px;
}

.forms-library-summary small {
  color: var(--muted);
  display: block;
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
}

.forms-library-summary p {
  color: var(--muted);
  font-size: var(--text-xs);
  line-height: 1.42;
  margin: 7px 0 0;
}

.forms-library-toolbar .smart-grid-toolbar-row {
  grid-template-columns: minmax(260px, 1fr) minmax(150px, auto) minmax(170px, auto) minmax(170px, auto) auto auto;
}

.forms-state-summary {
  margin-bottom: 12px;
}

.forms-library-table .table-wrap {
  overflow-x: hidden;
}

.forms-library-table td {
  font-size: var(--text-sm);
}

.forms-table-title {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.forms-table-title strong,
.forms-table-title span {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.forms-table-title strong {
  color: var(--text);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
}

.forms-table-title span {
  color: var(--text-muted);
  font-size: var(--text-xs);
}

.forms-table-preview {
  display: inline-flex;
  min-width: 0;
  position: relative;
}

.forms-table-preview-trigger,
.forms-table-preview-missing {
  align-items: center;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  display: inline-flex;
  gap: 5px;
  max-width: 100%;
  min-height: 28px;
  padding: 4px 9px;
  text-decoration: none;
}

.forms-table-preview-trigger {
  background: #f8fafc;
  color: var(--text);
}

.forms-table-preview-trigger:hover,
.forms-table-preview-trigger:focus-visible {
  background: #eef6ff;
  border-color: #bfdbfe;
  outline: none;
}

.forms-table-preview-missing {
  background: #fff7ed;
  color: #9a3412;
}

.forms-table-preview-trigger span,
.forms-table-preview-missing span {
  font-size: var(--text-xs);
  font-weight: var(--font-weight-medium);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.forms-table-preview .forms-template-preview-popover {
  left: auto;
  right: calc(100% + 12px);
  top: -10px;
  width: min(480px, calc(100vw - 320px));
}

.forms-table-preview:hover .forms-template-preview-popover,
.forms-table-preview:focus-within .forms-template-preview-popover {
  display: block;
}

.forms-table-actions {
  align-items: center;
  display: flex;
  gap: 6px;
  min-width: 0;
}

.forms-table-actions .smart-grid-badge {
  max-width: 82px;
}

.forms-template-grid {
  display: grid;
  gap: 14px;
}

.forms-template-card {
  align-items: stretch;
  background: #fff;
  border: 1px solid var(--border-subtle, #e5e7eb);
  border-radius: 14px;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(168px, 210px) minmax(0, 1fr);
  padding: 14px;
  position: relative;
}

.forms-template-preview {
  align-self: stretch;
  background: #f8fafc;
  border: 1px solid var(--border-subtle, #e5e7eb);
  border-radius: 12px;
  min-height: 238px;
  overflow: visible;
  position: relative;
}

.forms-template-preview iframe {
  background: #fff;
  border: 0;
  border-radius: 11px;
  display: block;
  height: 100%;
  min-height: 238px;
  pointer-events: none;
  width: 100%;
}

.forms-template-preview-empty {
  align-items: center;
  color: var(--muted);
  display: grid;
  font-size: var(--text-sm);
  gap: 10px;
  height: 100%;
  justify-items: center;
  min-height: 238px;
  padding: 18px;
  text-align: center;
}

.forms-template-preview-empty svg {
  color: #94a3b8;
}

.forms-template-preview-popover {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, .12);
  border-radius: 16px;
  box-shadow: 0 24px 58px rgba(15, 23, 42, .18);
  display: none;
  height: min(74vh, 680px);
  left: calc(100% + 14px);
  overflow: hidden;
  padding: 8px;
  position: absolute;
  top: 0;
  width: min(520px, calc(100vw - 300px));
  z-index: 20;
}

.forms-template-preview:hover .forms-template-preview-popover,
.forms-template-preview:focus .forms-template-preview-popover,
.forms-template-preview:focus-within .forms-template-preview-popover {
  display: block;
}

.forms-template-preview-popover iframe {
  border-radius: 10px;
  height: 100%;
  min-height: 0;
  pointer-events: auto;
  width: 100%;
}

.forms-template-main {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.forms-template-title-row {
  align-items: flex-start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.forms-template-title-row > div {
  min-width: 0;
}

.forms-template-title-row span {
  color: var(--muted);
  display: block;
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semibold);
  margin-bottom: 4px;
  text-transform: uppercase;
}

.forms-template-title-row h3 {
  color: var(--ink);
  font-size: var(--text-lg);
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0;
  line-height: 1.24;
  margin: 0;
}

.forms-template-main > p {
  color: var(--muted);
  font-size: var(--text-sm);
  line-height: 1.48;
  margin: 0;
}

.forms-template-meta {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
}

.forms-template-meta div {
  background: #f8fafc;
  border: 1px solid var(--border-subtle, #e5e7eb);
  border-radius: 10px;
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 9px 10px;
}

.forms-template-meta dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
}

.forms-template-meta dd {
  color: var(--ink);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.forms-template-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.forms-version-upload {
  background: #fbfcfd;
  border: 1px solid var(--border-subtle, #e5e7eb);
  border-radius: 12px;
  padding: 0;
}

.forms-version-upload summary {
  align-items: center;
  color: var(--sidebar-item-active-text);
  cursor: pointer;
  display: inline-flex;
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
  gap: 7px;
  list-style: none;
  padding: 11px 12px;
}

.forms-version-upload summary::-webkit-details-marker {
  display: none;
}

.forms-version-upload form {
  border-top: 1px solid var(--border-subtle, #e5e7eb);
  display: grid;
  gap: 11px;
  padding: 12px;
}

.forms-version-upload label {
  display: grid;
  gap: 7px;
}

.forms-version-upload label > span {
  color: var(--muted);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
}

.forms-version-upload input {
  background: linear-gradient(180deg, #fff, #fbfcfd);
  border: 1px solid var(--border, #d6e0e6);
  border-radius: 12px;
  color: var(--ink);
  font: inherit;
  min-height: 44px;
  padding: 10px 12px;
  width: 100%;
}

.forms-template-modal {
  width: min(820px, calc(100vw - 28px));
}

.forms-template-modal .pretty-file-upload {
  min-height: 44px;
}

.forms-template-modal .filter-actions {
  justify-content: flex-end;
}

.forms-template-modal textarea {
  min-height: 96px;
  resize: vertical;
}

.forms-version-upload input:focus {
  border-color: rgba(96, 208, 112, .72);
  box-shadow: 0 0 0 3px rgba(96, 208, 112, .16);
  outline: none;
}

.forms-rta-grid {
  display: grid;
  gap: 12px;
}

.forms-rta-card {
  align-items: center;
  background: #fff;
  border: 1px solid var(--border-subtle, #e5e7eb);
  border-radius: 16px;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(280px, 1.25fr) minmax(360px, 1fr) auto;
  padding: 16px;
}

.forms-rta-card-main {
  min-width: 0;
}

.forms-rta-card-main h3 {
  color: var(--ink);
  font-size: var(--text-base);
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0;
  line-height: 1.28;
  margin: 8px 0 5px;
}

.forms-rta-card-main p {
  color: var(--muted);
  display: -webkit-box;
  font-size: var(--text-sm);
  line-height: 1.42;
  margin: 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

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

.forms-rta-meta span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.forms-rta-meta small {
  color: var(--muted);
  font-size: var(--text-xs);
}

.forms-rta-meta strong {
  color: var(--ink);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.forms-rta-empty {
  margin: 0;
}

.forms-generate-layout {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(300px, .8fr) minmax(0, 1.2fr);
}

.forms-version-summary {
  display: grid;
  gap: 12px;
}

.forms-version-summary span {
  border-bottom: 1px solid var(--border-subtle, #e5e7eb);
  display: grid;
  gap: 4px;
  padding-bottom: 10px;
}

.forms-version-summary span:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.forms-version-summary small {
  color: var(--muted);
  font-size: var(--text-xs);
}

.forms-version-summary strong {
  color: var(--ink);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
}

.soft-separator {
  border: 0;
  border-top: 1px solid var(--border-subtle, #e5e7eb);
  margin: 16px 0;
}

.settings-form.compact {
  gap: 10px;
}

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

.public-signing-body {
  background: radial-gradient(circle at top left, rgba(94, 211, 100, .14), transparent 34%), #f8fafc;
  color: var(--text-primary, #111827);
  font-family: var(--font-sans, "Inter", system-ui, sans-serif);
  margin: 0;
  min-height: 100vh;
}

.public-signing-shell {
  display: grid;
  min-height: 100vh;
  padding: 24px;
  place-items: center;
}

.public-signing-card {
  background: #fff;
  border: 1px solid var(--border-subtle, #e5e7eb);
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, .10);
  display: grid;
  gap: 22px;
  max-width: 620px;
  padding: 30px;
  width: 100%;
}

.public-signing-logo {
  height: auto;
  max-width: 180px;
}

.public-signing-head h1,
.public-signing-state h1 {
  font-size: 26px;
  font-weight: 600;
  line-height: 1.2;
  margin: 8px 0;
}

.public-signing-head p,
.public-signing-state p {
  color: var(--text-secondary, #4b5563);
  margin: 0;
}

.public-signing-form {
  display: grid;
  gap: 16px;
}

.public-signing-actions {
  align-items: start;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.public-signing-actions details {
  display: grid;
  gap: 10px;
}

.public-signing-actions summary {
  list-style: none;
}

.public-signing-actions summary::-webkit-details-marker {
  display: none;
}

.public-signing-state {
  display: grid;
  gap: 10px;
  text-align: left;
}

.public-signing-state.success svg {
  color: #12805c;
}

@media (max-width: 980px) {
  .signing-record-layout,
  .signing-prepare-layout,
  .signing-new-workspace,
  .signing-command-panel,
  .signing-record-summary,
  .signing-create-hero,
  .signing-review-workspace,
  .forms-hero,
  .forms-generate-layout {
    grid-template-columns: 1fr;
  }

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

  .forms-hero-stats,
  .forms-action-grid,
  .forms-library-summary,
  .forms-template-card,
  .forms-workflow-strip,
  .forms-readiness-strip,
  .forms-rta-card {
    grid-template-columns: 1fr;
  }

  .forms-workflow-strip article + article {
    border-left: 0;
    border-top: 1px solid var(--border-subtle, #e5e7eb);
  }

  .forms-hero-stats {
    min-width: 0;
  }

  .signing-left,
  .signing-right,
  .signing-linked-panel,
  .signing-new-guide,
  .signing-prepare-sidebar {
    position: static;
  }

  .signing-list-head,
  .signing-table-action-row,
  .signing-linked-toolbar {
    grid-template-columns: 1fr;
  }

  .signing-list-head {
    align-items: stretch;
    flex-direction: column;
  }

  .signing-table-action-row {
    align-items: stretch;
    flex-direction: column;
  }

  .signing-filter-tabs,
  .signing-record-type-tabs {
    justify-content: flex-start;
  }

  .signing-workflow-steps {
    grid-template-columns: 1fr;
  }

  .signing-workflow-steps.is-compact {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .forms-library-toolbar .smart-grid-toolbar-row,
  .forms-template-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .forms-template-preview-popover {
    left: 0;
    top: calc(100% + 10px);
    width: min(520px, calc(100vw - 56px));
  }

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

@media (max-width: 640px) {
  .public-signing-shell {
    padding: 14px;
  }

  .public-signing-card {
    border-radius: 16px;
    padding: 22px;
  }

  .forms-command-grid {
    grid-template-columns: 1fr;
  }

  .form-grid.two,
  .signing-linked-toolbar,
  .signing-linked-search,
  .signing-command-metrics,
  .signing-review-summary,
  .forms-library-toolbar,
  .forms-library-toolbar .smart-grid-toolbar-row,
  .forms-template-meta,
  .forms-rta-meta {
    grid-template-columns: 1fr;
  }

  .signing-command-panel,
  .signing-record-summary,
  .signing-create-hero {
    padding: 16px;
  }

  .signing-create-steps {
    grid-auto-flow: row;
    grid-template-columns: repeat(4, auto);
    justify-content: start;
  }

  .signing-linked-section {
    padding: 14px;
  }

  .signing-linked-picker-fluid {
    grid-template-columns: 1fr;
  }

  .forms-template-card {
    padding: 12px;
  }

  .forms-template-preview,
  .forms-template-preview-empty,
  .forms-template-preview iframe {
    min-height: 220px;
  }

  .forms-template-preview-popover {
    display: none !important;
  }

  .forms-template-title-row,
  .forms-template-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .forms-template-actions .button {
    width: 100%;
  }

  .signing-new-submit {
    justify-content: stretch;
  }

  .signing-new-submit .button {
    width: 100%;
  }
}
.page-head { min-width: 0; max-width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.page-title h1,
.page-title h2 { margin: 0; font-size: 28px; line-height: 1.14; color: var(--ink); letter-spacing: 0; font-weight: var(--font-weight-semibold); }
.page-head .page-title > p { display: none !important; }
.button, .icon-button {
  min-height: 42px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 0 12px;
  font-weight: var(--font-weight-medium);
  cursor: pointer;
}
.button.primary { background: var(--delegate-brand-secondary, #103030); color: #fff; border-color: var(--delegate-brand-secondary, #103030); }
.button:focus-visible, .icon-button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible {
  outline: 3px solid var(--delegate-focus-ring, rgba(96, 208, 112, .35));
  outline-offset: 2px;
}
.button[aria-disabled="true"], .button:disabled { opacity: .55; cursor: not-allowed; }
.icon-button { width: 42px; padding: 0; position: relative; }
.icon-button small {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--danger);
  color: #fff;
  border: 2px solid var(--surface);
  display: grid;
  place-items: center;
  font-size: 10px;
  line-height: 1;
}
.profile-pill {
  max-width: 190px;
  min-height: 42px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  font-weight: var(--font-weight-medium);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.profile-pill-avatar {
  width: 26px;
  height: 26px;
}
.profile-pill-avatar .profile-avatar-icon {
  width: 15px;
  height: 15px;
}
.profile-page-grid {
  display: grid;
  grid-template-columns: minmax(280px, .44fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.profile-identity-panel .panel-body {
  display: grid;
  gap: 18px;
}
.profile-identity-hero {
  display: flex;
  align-items: center;
  gap: 14px;
}
.profile-identity-avatar {
  width: 72px;
  height: 72px;
  flex: 0 0 72px;
  border-radius: 999px;
}
.profile-identity-avatar .profile-avatar-icon {
  width: 30px;
  height: 30px;
}
.profile-identity-hero strong {
  display: block;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.2;
  font-weight: var(--font-weight-semibold);
}
.profile-identity-hero span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}
.profile-readonly-grid {
  display: grid;
  gap: 8px;
}
.profile-readonly-field {
  display: grid;
  grid-template-columns: minmax(110px, .42fr) minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
  padding: 9px 0;
  border-top: 1px solid var(--border-soft);
}
.profile-readonly-field span {
  color: var(--muted);
  font-size: 12px;
}
.profile-readonly-field strong {
  min-width: 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: var(--font-weight-medium);
  overflow-wrap: anywhere;
}
.profile-form {
  max-width: 820px;
}
.profile-avatar {
  position: relative;
  overflow: hidden;
}
.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.profile-avatar-fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
}
.profile-avatar-fallback[hidden] {
  display: none;
}
.profile-photo-editor {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff, #f8faf9);
  padding: 16px;
  display: grid;
  gap: 14px;
}
.profile-photo-editor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.profile-photo-editor-head span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}
.profile-photo-editor-head strong {
  display: block;
  margin-top: 2px;
  color: var(--ink);
  font-size: 14px;
  font-weight: var(--font-weight-medium);
}
.profile-photo-editor-head small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}
.profile-photo-upload-button {
  position: relative;
  overflow: hidden;
  flex: 0 0 auto;
  width: min(260px, 100%);
  padding: 6px;
}
.profile-photo-upload-button input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.profile-photo-upload-button .pretty-file-button {
  min-height: 32px;
}
.profile-photo-upload-button.is-disabled {
  opacity: .55;
  cursor: not-allowed;
}
.profile-photo-editor-body {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
}
.profile-photo-current {
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  background: #fff;
  padding: 12px;
  display: grid;
  gap: 10px;
  place-items: center;
  color: var(--muted);
  font-size: 12px;
}
.profile-photo-current-avatar {
  width: 76px;
  height: 76px;
  border-radius: 999px;
}
.profile-photo-dropzone {
  min-height: 118px;
  border: 1px dashed #b8c3cf;
  border-radius: 14px;
  background: linear-gradient(180deg, #f8fafc, #ffffff);
  display: grid;
  place-items: center;
  text-align: center;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
.profile-photo-dropzone:focus-visible {
  outline: 3px solid rgba(13, 74, 72, .18);
  outline-offset: 2px;
}
.profile-photo-dropzone.is-dragging,
.profile-photo-dropzone:hover {
  border-color: var(--brand);
  background: #f0fdfa;
}
.profile-photo-dropzone > div {
  display: grid;
  gap: 5px;
  justify-items: center;
  color: var(--muted);
}
.profile-photo-dropzone strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: var(--font-weight-medium);
}
.profile-photo-dropzone span {
  color: var(--muted);
  font-size: 12px;
}
.profile-photo-cropper {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}
.profile-photo-cropper[hidden] {
  display: none;
}
.profile-photo-cropper canvas {
  width: 160px;
  height: 160px;
  border-radius: 999px;
  border: 1px solid var(--border);
  box-shadow: 0 12px 28px rgba(15, 23, 42, .08);
  cursor: grab;
  touch-action: none;
  background: #f6f7f8;
}
.profile-photo-cropper canvas:active {
  cursor: grabbing;
}
.profile-photo-controls {
  display: grid;
  gap: 10px;
  align-content: center;
}
.profile-photo-controls label {
  display: grid;
  gap: 6px;
}
.profile-photo-controls label span,
.profile-photo-help {
  color: var(--muted);
  font-size: 12px;
}
.profile-photo-controls input[type="range"] {
  width: 100%;
}
.profile-security-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid #dbeafe;
  background: #eff6ff;
  color: #1e3a8a;
  border-radius: 12px;
  padding: 12px;
}
.profile-security-note strong {
  font-weight: var(--font-weight-semibold);
}
.profile-security-note span {
  color: #1d4ed8;
  font-size: 13px;
  line-height: 1.4;
}
.profile-device-panel {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: linear-gradient(180deg, #fff, #f8fafc);
  padding: 16px;
  display: grid;
  gap: 14px;
}
.profile-readonly-grid > .profile-device-panel {
  margin-top: 12px;
  padding: 14px;
  border-color: #dbeafe;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
}
.profile-device-panel.is-readonly {
  margin-top: 16px;
}
.profile-device-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
}
.profile-device-head span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}
.profile-device-head strong {
  display: block;
  margin-top: 2px;
  color: var(--ink);
  font-size: 15px;
  font-weight: var(--font-weight-semibold);
}
.profile-device-head p {
  margin: 5px 0 0;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.45;
}
.profile-device-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}
.profile-device-field {
  min-width: 0;
  padding: 11px 12px;
  border-right: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}
.profile-device-field:nth-child(2n) {
  border-right: none;
}
.profile-device-field:nth-last-child(-n + 2) {
  border-bottom: none;
}
.profile-device-field:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  border-right: none;
}
.profile-device-field span,
.profile-device-panel small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}
.profile-device-field strong {
  display: block;
  margin-top: 3px;
  color: var(--ink);
  font-size: 13px;
  font-weight: var(--font-weight-medium);
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.profile-device-map-card {
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
}
.profile-device-map {
  width: 100%;
  min-height: 190px;
  background: #eef2f7;
}
.profile-device-map-card p {
  margin: 0;
  padding: 9px 11px;
  border-top: 1px solid var(--border-soft);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}
.profile-device-map-card p:empty {
  display: none;
}
.profile-device-map .leaflet-control-attribution {
  font-size: 10px;
}
.delegate-user-profile-page .profile-form {
  max-width: none;
}
.profile-form + .profile-device-panel,
.profile-device-panel + .profile-two-factor-card,
.profile-form + .profile-two-factor-card {
  margin-top: 18px;
}
.profile-form > .button.primary {
  justify-self: start;
  min-width: 210px;
  margin-top: 4px;
}
.profile-two-factor-card {
  border: 1px solid #f4b4b4;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #fffafa 100%);
  padding: 18px;
  display: grid;
  gap: 16px;
  box-shadow: 0 18px 45px rgba(127, 29, 29, .08);
}
.profile-two-factor-card.is-active {
  border-color: #bbf7d0;
  background: linear-gradient(180deg, #ffffff 0%, #f6fff9 100%);
  box-shadow: 0 18px 45px rgba(22, 101, 52, .08);
}
.profile-two-factor-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}
.profile-two-factor-head span {
  display: block;
  color: #b91c1c;
  font-size: 12px;
  font-weight: var(--font-weight-medium);
}
.profile-two-factor-card.is-active .profile-two-factor-head span {
  color: #166534;
}
.profile-two-factor-head strong {
  display: block;
  margin-top: 2px;
  color: #111827;
  font-size: 16px;
  font-weight: var(--font-weight-semibold);
}
.profile-two-factor-head p {
  margin: 5px 0 0;
  color: #6b7280;
  font-size: 13px;
  line-height: 1.45;
}
.profile-two-factor-card.is-active .profile-two-factor-head p {
  color: #3f6f4c;
}
.profile-two-factor-state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  border: 1px solid #fecaca;
  background: #fee2e2;
  color: #991b1b;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: var(--font-weight-medium);
  white-space: nowrap;
}
.profile-two-factor-state.is-active {
  border-color: #bbf7d0;
  background: #dcfce7;
  color: #166534;
}
.two-factor-setup-grid {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
.two-factor-qr-panel {
  display: grid;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}
.two-factor-qr {
  border: 1px solid #fee2e2;
  background: #fff;
  border-radius: 18px;
  padding: 16px;
  min-height: 264px;
  display: grid;
  place-items: center;
  color: #6b7280;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.7), 0 14px 34px rgba(127, 29, 29, .08);
}
.two-factor-qr-code {
  width: 224px;
  height: 224px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: #fff;
}
.two-factor-qr-code svg,
.two-factor-qr canvas {
  width: 220px;
  height: 220px;
  display: block;
}
.two-factor-qr-code span {
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}
.two-factor-qr-code span.is-error {
  color: #b91c1c;
}
.two-factor-verify-panel {
  display: grid;
  gap: 14px;
}
.two-factor-step-list {
  display: grid;
  gap: 10px;
}
.two-factor-step-list > div {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  background: #fff;
  padding: 12px;
}
.two-factor-step-list > div > span {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #fee2e2;
  color: #991b1b;
  font-size: 13px;
  font-weight: var(--font-weight-semibold);
}
.two-factor-step-list p {
  margin: 0;
  display: grid;
  gap: 2px;
}
.two-factor-step-list strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: var(--font-weight-medium);
}
.two-factor-step-list small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}
.two-factor-setup-key {
  display: grid;
  gap: 6px;
}
.two-factor-setup-key input {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  letter-spacing: .05em;
  background: #f9fafb;
}
.two-factor-confirm-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}
.two-factor-code-input {
  letter-spacing: .08em;
  font-variant-numeric: tabular-nums;
}
.two-factor-active-panel {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  border: 1px solid #bbf7d0;
  background: #f0fdf4;
  border-radius: 14px;
  padding: 12px;
}
.two-factor-active-panel > div {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #166534;
}
.two-factor-active-panel strong,
.two-factor-active-panel small {
  display: block;
}
.two-factor-active-panel strong {
  color: #14532d;
  font-weight: var(--font-weight-medium);
}
.two-factor-active-panel small {
  margin-top: 2px;
  color: #166534;
  font-size: 12px;
  line-height: 1.4;
}
.two-factor-required-banner {
  border: 1px solid #fecaca;
  background: linear-gradient(90deg, #991b1b, #b91c1c);
  color: #fff;
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  box-shadow: 0 16px 34px rgba(153, 27, 27, .18);
}
.two-factor-required-banner > div {
  display: flex;
  align-items: center;
  gap: 10px;
}
.two-factor-required-banner strong,
.two-factor-required-banner small {
  display: block;
}
.two-factor-required-banner strong {
  font-weight: var(--font-weight-semibold);
}
.two-factor-required-banner small {
  color: rgba(255, 255, 255, .84);
  font-size: 12px;
}
.two-factor-required-banner .button.danger {
  background: #fff;
  border-color: #fff;
  color: #991b1b;
}
.two-factor-lock-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: #fee2e2;
  color: #991b1b;
  margin-bottom: 8px;
}
@media (max-width: 720px) {
  .profile-page-grid {
    grid-template-columns: 1fr;
  }
  .profile-photo-editor-head,
  .profile-photo-editor-body,
  .profile-photo-cropper,
  .two-factor-setup-grid,
  .two-factor-confirm-form {
    grid-template-columns: 1fr;
  }
  .profile-photo-editor-head {
    align-items: stretch;
  }
  .profile-photo-upload-button {
    width: 100%;
    justify-content: center;
  }
  .profile-photo-cropper canvas {
    justify-self: center;
  }
  .profile-two-factor-head,
  .profile-device-head,
  .two-factor-active-panel,
  .two-factor-required-banner {
    flex-direction: column;
    align-items: stretch;
  }
  .profile-device-grid {
    grid-template-columns: 1fr;
  }
  .profile-device-field {
    border-right: none;
  }
}
.grid { display: grid; gap: 14px; }
.grid.metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.dashboard-welcome-hero {
  --hero-overlay-start: #103030;
  --hero-overlay-end: #2d6a4f;
  min-height: 210px;
  margin-bottom: 14px;
  border: 1px solid rgba(16, 48, 48, .12);
  border-radius: 16px;
  background:
    radial-gradient(circle at 88% 18%, rgba(99, 214, 112, .22), transparent 34%),
    linear-gradient(118deg, var(--hero-overlay-start), var(--hero-overlay-end));
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: clamp(22px, 3vw, 34px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
  gap: 22px;
  align-items: end;
  box-shadow: 0 18px 42px rgba(16, 48, 48, .13);
  overflow: hidden;
}
.dashboard-welcome-hero.has-photo {
  min-height: 240px;
}
.dashboard-welcome-copy {
  max-width: 760px;
  display: grid;
  gap: 8px;
}
.dashboard-welcome-copy p {
  margin: 0;
  color: rgba(255, 255, 255, .82);
  font-size: var(--text-md);
  line-height: 1.5;
  font-weight: var(--font-weight-medium);
}
.dashboard-welcome-copy h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(25px, 3vw, 38px);
  line-height: 1.08;
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0;
}
.dashboard-welcome-copy span {
  max-width: 620px;
  color: rgba(255, 255, 255, .82);
  font-size: var(--text-md);
  line-height: 1.5;
  font-weight: var(--font-weight-medium);
}
.dashboard-hero-side {
  justify-self: end;
  width: min(100%, 320px);
  display: grid;
  gap: 10px;
}
.dashboard-event-countdown,
.dashboard-weather-card,
.dashboard-time-clock {
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 14px;
  background: rgba(255, 255, 255, .14);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 15px 16px;
  display: grid;
  gap: 5px;
}
.dashboard-event-countdown small,
.dashboard-weather-card small,
.dashboard-time-clock small {
  color: rgba(255, 255, 255, .76);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-medium);
  text-transform: uppercase;
  letter-spacing: .05em;
}
.dashboard-event-countdown strong,
.dashboard-weather-card strong,
.dashboard-time-clock strong {
  color: #fff;
  font-size: 16px;
  font-weight: var(--font-weight-semibold);
  line-height: 1.25;
}
.dashboard-event-countdown span,
.dashboard-weather-card span,
.dashboard-time-clock span {
  color: rgba(255, 255, 255, .88);
  line-height: 1.15;
}
.dashboard-event-countdown span {
  font-size: 22px;
  font-weight: var(--font-weight-semibold);
}
.dashboard-time-clock strong {
  font-size: 21px;
}
.dashboard-time-clock span {
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
}
.staff-dashboard-command {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(15, 23, 42, .018);
  padding: 16px;
  margin-bottom: 14px;
}
.staff-dashboard-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}
.staff-dashboard-head > div:first-child {
  min-width: 0;
  display: grid;
  gap: 6px;
}
.staff-dashboard-head span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #0f766e;
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.staff-dashboard-head h2 {
  margin: 0;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.2;
  font-weight: var(--font-weight-semibold);
}
.staff-dashboard-head p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: var(--text-sm);
  line-height: 1.5;
}
.staff-dashboard-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}
.staff-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}
.staff-dashboard-card {
  min-width: 0;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  border: 1px solid var(--border-soft);
  border-radius: 13px;
  background: #fbfcfd;
  color: inherit;
  text-decoration: none;
  padding: 12px;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.staff-dashboard-card:hover {
  border-color: #b8c7d3;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .05);
  transform: translateY(-1px);
}
.staff-dashboard-card-icon {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #0f766e;
  background: #e8f5f1;
}
.staff-dashboard-card.is-warning .staff-dashboard-card-icon {
  color: #92400e;
  background: #fff7ed;
}
.staff-dashboard-card.is-danger .staff-dashboard-card-icon {
  color: #b42318;
  background: #fff1f2;
}
.staff-dashboard-card.is-success .staff-dashboard-card-icon {
  color: #047857;
  background: #ecfdf5;
}
.staff-dashboard-card.is-info .staff-dashboard-card-icon {
  color: #1d4ed8;
  background: #eff6ff;
}
.staff-dashboard-card-copy {
  min-width: 0;
  display: grid;
  gap: 5px;
}
.staff-dashboard-card-copy span {
  color: var(--muted);
  font-size: var(--text-xs);
  line-height: 1.25;
  font-weight: var(--font-weight-medium);
}
.staff-dashboard-card-copy strong {
  min-width: 0;
  color: var(--ink);
  font-size: 21px;
  line-height: 1.05;
  font-weight: var(--font-weight-semibold);
  overflow-wrap: anywhere;
}
.staff-dashboard-card-copy small {
  color: var(--muted);
  font-size: var(--text-xs);
  line-height: 1.35;
}
.staff-dashboard-workflows {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
.staff-dashboard-workflows a {
  min-width: 0;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 10px;
  row-gap: 4px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  color: inherit;
  text-decoration: none;
  padding: 13px;
}
.staff-dashboard-workflows a:hover {
  border-color: #b8c7d3;
  box-shadow: 0 8px 20px rgba(15, 23, 42, .04);
}
.staff-dashboard-workflows span {
  grid-row: 1 / span 2;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #0f766e;
  background: #e8f5f1;
}
.staff-dashboard-workflows strong {
  color: var(--ink);
  font-size: var(--text-sm);
  line-height: 1.25;
  font-weight: var(--font-weight-semibold);
}
.staff-dashboard-workflows small {
  color: var(--muted);
  font-size: var(--text-xs);
  line-height: 1.35;
}
.data-health-command {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(15, 23, 42, .018);
  padding: 16px;
  margin-bottom: 14px;
}
.data-health-command-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 14px;
}
.data-health-command-head > div {
  min-width: 0;
  display: grid;
  gap: 6px;
}
.data-health-command-head span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #0f766e;
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.data-health-command-head h3 {
  margin: 0;
  color: var(--ink);
  font-size: 19px;
  line-height: 1.2;
  font-weight: var(--font-weight-semibold);
}
.data-health-command-head p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: var(--text-sm);
  line-height: 1.5;
}
.data-health-command-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
.data-health-command-card {
  min-width: 0;
  border: 1px solid var(--border-soft);
  border-radius: 13px;
  background: #fbfcfd;
  padding: 12px;
  display: grid;
  gap: 7px;
}
.data-health-command-card span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-medium);
}
.data-health-command-card strong {
  color: var(--ink);
  font-size: 23px;
  line-height: 1.05;
  font-weight: var(--font-weight-semibold);
}
.data-health-command-card.is-success span { color: #047857; }
.data-health-command-card.is-warning span { color: #92400e; }
.data-health-command-card.is-danger span { color: #b42318; }
.data-health-command-card.is-info span { color: #1d4ed8; }
.data-health-command-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.data-health-command-columns > section {
  min-width: 0;
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  background: #fbfcfd;
  padding: 12px;
}
.data-health-batch-list,
.data-health-source-list,
.staff-import-batch-list {
  display: grid;
  gap: 9px;
}
.data-health-batch-list article,
.data-health-source-list article,
.staff-import-batch-list a {
  min-width: 0;
  border: 1px solid rgba(15, 23, 42, .06);
  border-radius: 12px;
  background: #fff;
  padding: 10px;
  display: grid;
  gap: 5px;
  color: inherit;
  text-decoration: none;
}
.staff-import-batch-list a:hover {
  border-color: #b8c7d3;
  box-shadow: 0 8px 20px rgba(15, 23, 42, .04);
}
.data-health-batch-list strong,
.data-health-source-list strong,
.staff-import-batch-list strong {
  min-width: 0;
  color: var(--ink);
  font-size: var(--text-sm);
  line-height: 1.3;
  font-weight: var(--font-weight-semibold);
  overflow-wrap: anywhere;
}
.data-health-batch-list span,
.staff-import-batch-list span {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.data-health-batch-list small,
.data-health-source-list span,
.data-health-source-list small,
.data-health-batch-list time,
.staff-import-batch-list small,
.staff-import-batch-list time {
  color: var(--muted);
  font-size: var(--text-xs);
  line-height: 1.35;
}
.staff-import-detail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
.staff-import-detail article {
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--surface);
  padding: 12px;
  display: grid;
  gap: 6px;
}
.staff-import-detail span {
  color: var(--muted);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-medium);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.staff-import-detail strong {
  color: var(--ink);
  font-size: 18px;
  line-height: 1.2;
  font-weight: var(--font-weight-semibold);
  overflow-wrap: anywhere;
}
.staff-report-command {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(15, 23, 42, .018);
  padding: 16px;
  margin-bottom: 14px;
}
.staff-report-command-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}
.staff-report-command-head > div:first-child {
  min-width: 0;
  display: grid;
  gap: 6px;
}
.staff-report-command-head span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #0f766e;
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.staff-report-command-head h3 {
  margin: 0;
  color: var(--ink);
  font-size: 19px;
  line-height: 1.2;
  font-weight: var(--font-weight-semibold);
}
.staff-report-command-head p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: var(--text-sm);
  line-height: 1.5;
}
.staff-report-command-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}
.staff-report-command-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}
.staff-report-card {
  min-width: 0;
  border: 1px solid var(--border-soft);
  border-radius: 13px;
  background: #fbfcfd;
  color: inherit;
  text-decoration: none;
  padding: 12px;
  display: grid;
  gap: 7px;
}
.staff-report-card:hover {
  border-color: #b8c7d3;
  box-shadow: 0 8px 20px rgba(15, 23, 42, .04);
}
.staff-report-card span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: var(--text-xs);
  line-height: 1.25;
  font-weight: var(--font-weight-medium);
}
.staff-report-card strong {
  color: var(--ink);
  font-size: 22px;
  line-height: 1.05;
  font-weight: var(--font-weight-semibold);
  overflow-wrap: anywhere;
}
.staff-report-card.is-success span { color: #047857; }
.staff-report-card.is-warning span { color: #92400e; }
.staff-report-card.is-danger span { color: #b42318; }
.staff-report-card.is-info span { color: #1d4ed8; }
.staff-activity-command {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
.staff-activity-card {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--surface);
  padding: 12px;
  display: grid;
  gap: 7px;
}
.staff-activity-card span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-medium);
}
.staff-activity-card strong {
  color: var(--ink);
  font-size: 23px;
  line-height: 1.05;
  font-weight: var(--font-weight-semibold);
}
.staff-activity-card.is-success span { color: #047857; }
.staff-activity-card.is-warning span { color: #92400e; }
.staff-activity-card.is-info span { color: #1d4ed8; }
.staff-activity-panel {
  margin-bottom: 14px;
}
.staff-activity-timeline {
  display: grid;
  gap: 0;
}
.staff-activity-timeline article {
  position: relative;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 10px;
  padding: 0 0 14px;
}
.staff-activity-timeline article:last-child {
  padding-bottom: 0;
}
.staff-activity-timeline i {
  position: relative;
  width: 11px;
  height: 11px;
  margin-top: 6px;
  border-radius: 999px;
  background: #0f766e;
  box-shadow: 0 0 0 4px #e8f5f1;
}
.staff-activity-timeline article:not(:last-child) i::after {
  content: "";
  position: absolute;
  top: 15px;
  left: 5px;
  width: 1px;
  height: calc(100% + 3px);
  background: var(--border-soft);
}
.staff-activity-main {
  min-width: 0;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  background: #fbfcfd;
  padding: 10px 11px;
  display: grid;
  gap: 4px;
}
.staff-activity-main time {
  color: var(--muted);
  font-size: var(--text-xs);
  line-height: 1.35;
}
.staff-activity-main strong {
  color: var(--ink);
  font-size: var(--text-sm);
  line-height: 1.35;
  font-weight: var(--font-weight-semibold);
}
.staff-activity-main span {
  color: var(--muted);
  font-size: var(--text-xs);
  line-height: 1.35;
}
.dashboard-weather-card {
  position: relative;
  padding-left: 54px;
}
.dashboard-weather-icon {
  position: absolute;
  left: 16px;
  top: 18px;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .18);
  color: #fff;
}
.dashboard-weather-card strong {
  font-size: 24px;
}
.dashboard-clock-strip {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(138px, 1fr));
  gap: 8px;
  margin-top: 2px;
}
.dashboard-clock-strip .dashboard-time-clock {
  min-height: 86px;
  padding: 12px 13px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, .1));
}
.dashboard-clock-strip .dashboard-time-clock strong {
  font-size: 20px;
}
.metric {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 16px;
  box-shadow: 0 8px 24px rgba(24, 39, 52, .04);
}
.metric span { color: var(--muted); font-size: var(--text-xs); font-weight: var(--font-weight-medium); text-transform: uppercase; letter-spacing: .04em; }
.metric strong { display: block; color: var(--ink); font-size: 26px; line-height: 1.1; margin-top: 8px; letter-spacing: 0; font-weight: var(--font-weight-semibold); }
.dashboard-analytics {
  display: grid;
  gap: 12px;
}
.dashboard-analytics-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
}
.dashboard-analytics-head > div {
  display: grid;
  gap: 5px;
}
.dashboard-analytics-head span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #0f766e;
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.dashboard-analytics-head h2 {
  margin: 0;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.2;
  font-weight: var(--font-weight-semibold);
}
.dashboard-analytics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.dashboard-analytics-card {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(15, 23, 42, .018);
  padding: 14px;
  display: grid;
  gap: 13px;
}
.dashboard-analytics-card header {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
}
.dashboard-analytics-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #0f766e;
  background: #e8f5f1;
}
.dashboard-analytics-card.is-warning .dashboard-analytics-icon {
  color: #92400e;
  background: #fff7ed;
}
.dashboard-analytics-card.is-danger .dashboard-analytics-icon {
  color: #b42318;
  background: #fff1f2;
}
.dashboard-analytics-card.is-info .dashboard-analytics-icon {
  color: #1d4ed8;
  background: #eff6ff;
}
.dashboard-analytics-card h3 {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.25;
  font-weight: var(--font-weight-semibold);
}
.dashboard-analytics-card p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: var(--text-xs);
  line-height: 1.4;
}
.dashboard-analytics-card header a {
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  color: #30424b;
  background: #fbfcfd;
  text-decoration: none;
  font-size: var(--text-xs);
  font-weight: var(--font-weight-medium);
  line-height: 1;
  padding: 8px 10px;
}
.dashboard-analytics-total {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-soft);
}
.dashboard-analytics-total strong {
  color: var(--ink);
  font-size: 28px;
  line-height: 1;
  font-weight: var(--font-weight-semibold);
}
.dashboard-analytics-total span {
  color: var(--muted);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-medium);
}
.dashboard-analytics-bars {
  display: grid;
  gap: 9px;
}
.dashboard-analytics-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 10px;
  align-items: center;
}
.dashboard-analytics-row span {
  min-width: 0;
  color: #30424b;
  font-size: var(--text-xs);
  line-height: 1.35;
  font-weight: var(--font-weight-medium);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dashboard-analytics-row strong {
  color: var(--ink);
  font-size: var(--text-sm);
  line-height: 1.2;
  font-weight: var(--font-weight-semibold);
}
.dashboard-analytics-track {
  grid-column: 1 / -1;
  height: 8px;
  border-radius: 999px;
  background: #eef3f5;
  overflow: hidden;
}
.dashboard-analytics-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #0f766e;
}
.dashboard-analytics-card.is-warning .dashboard-analytics-track i {
  background: #d97706;
}
.dashboard-analytics-card.is-danger .dashboard-analytics-track i {
  background: #dc2626;
}
.dashboard-analytics-card.is-info .dashboard-analytics-track i {
  background: #2563eb;
}
.technology-stack-panel {
  margin: 0 0 14px;
}
.dashboard-settings-preview .dashboard-welcome-hero {
  margin: 0;
  min-height: 220px;
}
.time-input-prefix {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: stretch;
  min-height: 42px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  overflow: hidden;
}
.time-input-prefix > span {
  min-width: 56px;
  padding: 0 11px;
  border-right: 1px solid var(--border-soft);
  color: var(--muted);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-medium);
  display: grid;
  place-items: center;
  pointer-events: none;
}
.time-input-prefix input {
  min-width: 0;
  border: 0;
  border-radius: 0;
  padding-left: 12px;
  background: transparent;
  box-shadow: none;
}
.field-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--ink);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
}
.timezone-clock-editor {
  display: grid;
  gap: 8px;
}
.dashboard-widget-settings {
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  background: linear-gradient(180deg, #fff, #f8faf9);
  padding: 13px;
  display: grid;
  gap: 12px;
}
.dashboard-widget-settings-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.dashboard-widget-settings-head span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}
.dashboard-widget-settings-head strong {
  display: block;
  margin-top: 2px;
  color: var(--ink);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
}
.timezone-clock-rows {
  display: grid;
  gap: 8px;
}
.timezone-clock-row {
  display: grid;
  grid-template-columns: minmax(120px, .45fr) minmax(0, 1fr) 38px;
  gap: 8px;
  align-items: center;
}
.technology-stack-panel .panel-head h3,
.technology-stack-settings .panel-head h3 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.technology-stack-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 10px;
}
.technology-stack-grid.is-preview {
  grid-template-columns: repeat(3, minmax(220px, 1fr));
}
.technology-stack-tile {
  min-width: 0;
  min-height: 56px;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #f4f6f7 100%);
  color: var(--ink);
  padding: 8px 10px;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  text-align: left;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .86), 0 1px 2px rgba(24, 39, 52, .04);
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease, background .16s ease;
}
.technology-stack-tile:hover {
  border-color: rgba(16, 48, 48, .22);
  background: linear-gradient(180deg, #ffffff 0%, #eef1f3 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 10px 24px rgba(24, 39, 52, .08);
  transform: translateY(-1px);
}
.technology-stack-icon {
  width: 32px;
  height: 32px;
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  background: #fff;
  display: grid;
  place-items: center;
  color: var(--sidebar-item-active-text);
  overflow: hidden;
}
.technology-stack-icon img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  display: block;
}
.technology-stack-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1px;
}
.technology-stack-name {
  width: 100%;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.25;
  font-weight: var(--font-weight-medium);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.technology-stack-team {
  max-width: 100%;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.technology-stack-form .file-input-clean::file-selector-button {
  margin-right: 10px;
  min-height: 34px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-muted);
  color: var(--ink);
  padding: 0 12px;
  font-family: inherit;
  font-weight: var(--font-weight-medium);
  cursor: pointer;
}
.technology-stack-toggle-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.technology-stack-settings-list {
  display: grid;
  gap: 10px;
}
.technology-stack-settings-item {
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
}
.technology-stack-settings-item summary {
  cursor: pointer;
  list-style: none;
  padding: 12px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
}
.technology-stack-settings-item summary::-webkit-details-marker {
  display: none;
}
.technology-stack-settings-item summary strong {
  display: block;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.2;
  font-weight: var(--font-weight-medium);
}
.technology-stack-settings-item summary small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}
.technology-stack-settings-edit {
  border-top: 1px solid var(--border-soft);
  padding: 14px;
  display: grid;
  gap: 12px;
}
.technology-stack-delete-form {
  display: flex;
  justify-content: flex-end;
}
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(24,39,52,.04);
}
.panel-head {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-soft);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.panel-head h3 { margin: 0; color: var(--ink); font-size: var(--text-md); letter-spacing: 0; font-weight: var(--font-weight-semibold); }
.panel-body { padding: 16px; }
.table-wrap {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable both-edges;
}
table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
  border-collapse: collapse;
}
th, td {
  height: 48px;
  max-height: 48px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-soft);
  text-align: left;
  vertical-align: middle;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
th {
  position: sticky;
  top: 0;
  z-index: 2;
  color: #5f6b76;
  font-size: var(--text-xs);
  font-weight: var(--font-weight-medium);
  letter-spacing: 0;
  background: #fbfcfd;
}
td { color: var(--text); font-size: var(--text-sm); font-weight: var(--font-weight-regular); }
.table-wrap th,
.table-wrap td {
  min-width: 0;
  overflow-wrap: normal;
}
.table-wrap td > *,
.table-wrap th > * {
  min-width: 0;
  max-width: 100%;
}
.table-wrap td > :is(div, form),
.table-wrap th > :is(div, form) {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
  white-space: nowrap;
  vertical-align: middle;
}
.table-wrap td :is(a, span, strong, small, em, p),
.table-wrap th :is(a, span, strong, small, em, p) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
tr:hover td { background: #fcfefd; }
.record-link { color: var(--ink); font-weight: var(--font-weight-medium); }
.muted { color: var(--muted); }
.badge {
  display: inline-flex; align-items: center; min-height: 24px;
  border-radius: 999px; padding: 3px 9px;
  border: 1px solid #cbd5e1;
  background: #eef2f7; color: #374151; font-size: var(--text-xs); font-weight: var(--font-weight-semibold);
  white-space: nowrap;
}
.badge.success { background: var(--success-bg); border-color: #86efac; color: var(--success); }
.badge.warn { background: var(--warn-bg); border-color: #fbbf24; color: var(--warn); }
.badge.danger { background: var(--danger-bg); border-color: #fca5a5; color: var(--danger); }
.badge.info { background: var(--info-bg); border-color: #93c5fd; color: var(--info); }
.badge.muted { background: #e5e7eb; border-color: #cbd5e1; color: #475569; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; border-bottom: 1px solid var(--border); padding: 0 4px; }
.tab { padding: 11px 12px; border-bottom: 2px solid transparent; color: var(--muted); font-weight: var(--font-weight-medium); }
.tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.detail-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 16px; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.field { border: 1px solid var(--border-soft); background: var(--surface-2); border-radius: var(--radius); padding: 12px; }
.field span { display: block; color: var(--muted); font-size: 11px; font-weight: var(--font-weight-medium); letter-spacing: 0; }
.field strong { display: block; color: var(--ink); margin-top: 5px; font-size: var(--text-base); font-weight: var(--font-weight-medium); word-break: break-word; }
.empty {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 22px;
  text-align: left;
  color: var(--muted);
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfd 100%);
  box-shadow: 0 1px 2px rgba(17, 24, 39, .025);
}
.empty strong { display:block; color: var(--ink); margin-bottom: 4px; font-weight: var(--font-weight-semibold); }
.empty .empty-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-grid;
  place-items: center;
  margin-bottom: 12px;
  color: var(--delegate-brand-primary, #0f3b3b);
  background: linear-gradient(135deg, rgba(96, 208, 112, .14), rgba(15, 59, 59, .07));
  border: 1px solid rgba(15, 59, 59, .08);
}
.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: radial-gradient(circle at top left, rgba(96,208,112,.16), transparent 32%), var(--bg);
}
.login-card {
  width: min(480px, 100%);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 28px;
}
.two-factor-login-card {
  box-shadow: 0 22px 50px rgba(17, 24, 39, .09);
}
.login-card h1 { color: var(--ink); margin: 0; font-size: var(--text-2xl); letter-spacing: 0; font-weight: var(--font-weight-semibold); }
.login-card p { color: var(--muted); margin: 10px 0 18px; }
.two-factor-login-card h1 {
  font-size: var(--text-2xl);
  line-height: 1.16;
}
.two-factor-login-card > p {
  margin-bottom: 18px;
  line-height: 1.5;
}
.two-factor-account-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fbfcfd;
}
.two-factor-account-strip > span {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--delegate-brand-primary, #0f3b3b);
  background: linear-gradient(135deg, rgba(96, 208, 112, .14), rgba(15, 59, 59, .07));
  border: 1px solid rgba(15, 59, 59, .08);
}
.two-factor-account-strip small,
.two-factor-account-strip strong {
  display: block;
}
.two-factor-account-strip small {
  color: var(--muted);
  font-size: 12px;
}
.two-factor-account-strip strong {
  margin-top: 1px;
  color: var(--ink);
  font-size: 14px;
  font-weight: var(--font-weight-semibold);
}
.two-factor-notice {
  margin-bottom: 16px;
}
.two-factor-login-form {
  gap: 13px;
}
.two-factor-login-form .two-factor-code-input {
  min-height: 52px;
  border-radius: var(--radius);
  text-align: center;
  font-size: 24px;
  font-weight: var(--font-weight-semibold);
  letter-spacing: .08em;
}
.two-factor-login-form .two-factor-code-input::placeholder {
  color: #aab4b2;
  font-weight: var(--font-weight-medium);
}
.two-factor-help-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 12px;
}
.two-factor-help-row .forgot-password-link {
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}
@media (max-width: 720px) {
  .two-factor-login-page {
    place-items: stretch;
    padding: 16px;
  }
  .two-factor-login-card {
    align-self: center;
    padding: 22px;
  }
  .two-factor-help-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
}
.google-signin-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 20px;
  border: 1px solid #747775;
  background: #fff;
  color: #1f1f1f;
  font-family: "Roboto", var(--font-sans);
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(60,64,67,.08);
  transition: background .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.google-signin-button:hover {
  background: #f8fafd;
  box-shadow: 0 1px 3px rgba(60,64,67,.16);
}
.google-signin-button:focus-visible {
  outline: 3px solid rgba(66,133,244,.2);
  outline-offset: 2px;
}
.google-signin-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 18px;
  background: #fff;
}
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  color: var(--muted);
  font-size: var(--text-sm);
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--border);
}
.password-login-form {
  display: grid;
  gap: 12px;
}
.password-login-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
}
.password-login-form input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0 12px;
  color: var(--ink);
  background: #fff;
  font: 400 var(--text-base)/var(--line-height-normal) var(--font-sans);
}
.password-login-form input::placeholder {
  color: var(--text-faint);
}
.password-login-form input:focus {
  outline: 3px solid rgba(14,69,66,.14);
  border-color: rgba(14,69,66,.38);
}
.full-width { width: 100%; justify-content: center; }
.forgot-password-link {
  display: inline-flex;
  justify-content: center;
  color: var(--brand-primary);
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
}
.forgot-password-link:hover { text-decoration: underline; }
.notice { border: 1px solid var(--border); border-radius: var(--radius); background: #fbfcfd; padding: 12px; color: var(--muted); }
.notice.warn { border-color: #efd488; background: var(--warn-bg); color: #5f4309; }
.notice.success { border-color: #9ed8b2; background: var(--success-bg); color: var(--success); }
.app-toast-region {
  bottom: max(22px, env(safe-area-inset-bottom));
  display: grid;
  justify-items: end;
  pointer-events: none;
  position: fixed;
  right: max(22px, env(safe-area-inset-right));
  z-index: 9000;
}
.app-toast {
  align-items: center;
  animation: app-toast-enter .18s ease-out;
  background: rgba(255, 255, 255, .98);
  border: 1px solid rgba(15, 23, 42, .1);
  border-left: 4px solid #64748b;
  border-radius: 16px;
  box-shadow: 0 18px 44px rgba(15, 23, 42, .18);
  color: var(--text-primary);
  display: grid;
  gap: 10px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  max-width: min(420px, calc(100vw - 32px));
  min-height: 54px;
  overflow: hidden;
  padding: 12px 12px 12px 14px;
  pointer-events: auto;
  position: relative;
}
.app-toast::after {
  animation: app-toast-progress 4.2s linear forwards;
  background: currentColor;
  bottom: 0;
  content: "";
  height: 2px;
  left: 0;
  opacity: .25;
  position: absolute;
  width: 100%;
}
.app-toast.is-leaving {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .18s ease, transform .18s ease;
}
.app-toast.is-success {
  border-left-color: #16a34a;
  color: #166534;
}
.app-toast.is-warn,
.app-toast.is-warning {
  border-left-color: #d97706;
  color: #7c2d12;
}
.app-toast.is-danger,
.app-toast.is-error {
  border-left-color: #dc2626;
  color: #991b1b;
}
.app-toast.is-info {
  border-left-color: #2563eb;
  color: #1d4ed8;
}
.app-toast-icon {
  align-items: center;
  background: rgba(100, 116, 139, .1);
  border-radius: 999px;
  display: inline-flex;
  height: 30px;
  justify-content: center;
  width: 30px;
}
.app-toast.is-success .app-toast-icon { background: #dcfce7; }
.app-toast.is-warn .app-toast-icon,
.app-toast.is-warning .app-toast-icon { background: #ffedd5; }
.app-toast.is-danger .app-toast-icon,
.app-toast.is-error .app-toast-icon { background: #fee2e2; }
.app-toast.is-info .app-toast-icon { background: #dbeafe; }
.app-toast p {
  color: var(--text-primary);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
  line-height: 1.35;
  margin: 0;
}
.app-toast-close {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 999px;
  color: var(--text-muted);
  cursor: pointer;
  display: inline-flex;
  height: 30px;
  justify-content: center;
  padding: 0;
  width: 30px;
}
.app-toast-close:hover {
  background: #f1f5f9;
  color: var(--text-primary);
}
@keyframes app-toast-enter {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes app-toast-progress {
  from { transform: scaleX(1); transform-origin: left; }
  to { transform: scaleX(0); transform-origin: left; }
}
@media (max-width: 760px) {
  .app-toast-region {
    bottom: max(86px, calc(env(safe-area-inset-bottom) + 76px));
    left: 14px;
    right: 14px;
  }
  .app-toast {
    max-width: none;
    width: 100%;
  }
}
.portal-action-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.portal-action-card,
.portal-request-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 8px 24px rgba(24,39,52,.04);
}
.portal-action-card {
  min-height: 116px;
  padding: 16px;
  display: grid;
  align-content: space-between;
}
.portal-action-card span {
  color: var(--muted);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-medium);
  letter-spacing: .04em;
  text-transform: uppercase;
}
.portal-action-card strong {
  color: var(--ink);
  font-size: 28px;
  line-height: 1;
  font-weight: var(--font-weight-semibold);
}
.portal-card-list {
  display: grid;
  gap: 10px;
}
.portal-request-card {
  padding: 14px 16px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
}
.portal-request-card strong {
  color: var(--ink);
  display: block;
}
.portal-request-card span {
  color: var(--muted);
  display: block;
  margin-top: 3px;
}
.portal-timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}
.portal-timeline li {
  border-left: 3px solid var(--border);
  padding: 2px 0 2px 12px;
}
.portal-timeline li.completed { border-color: var(--success); }
.portal-timeline li.active { border-color: var(--accent-2); }
.portal-timeline li.blocked { border-color: var(--danger); }
.portal-timeline strong {
  color: var(--ink);
  display: block;
}
.portal-timeline span {
  color: var(--muted);
  display: block;
  font-size: 12px;
  margin-top: 2px;
}
.tenant-command-panel {
  display: grid;
  grid-template-columns: minmax(280px, .75fr) minmax(0, 1.25fr);
  gap: 14px;
  margin: 18px 0;
}
.tenant-command-copy,
.tenant-workflow-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 8px 24px rgba(24,39,52,.04);
}
.tenant-command-copy {
  padding: 18px;
}
.tenant-command-copy > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--sidebar-item-active-text);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.tenant-command-copy h3 {
  margin: 9px 0 8px;
  color: var(--ink);
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.12;
  font-weight: var(--font-weight-semibold);
}
.tenant-command-copy p {
  margin: 0;
  color: var(--text);
  font-size: var(--text-sm);
  line-height: 1.5;
}
.tenant-command-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.tenant-command-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.tenant-command-summary article {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
  padding: 14px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.tenant-command-summary article > span {
  width: 34px;
  height: 34px;
  border: 1px solid #d7eadf;
  border-radius: 11px;
  background: #eef6f1;
  color: var(--sidebar-item-active-text);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}
.tenant-command-summary small,
.tenant-command-summary strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tenant-command-summary small {
  color: var(--muted);
  font-size: var(--text-xs);
}
.tenant-command-summary strong {
  margin-top: 4px;
  color: var(--ink);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
}
.portal-identity-grid,
.portal-job-context-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, .85fr) minmax(240px, .7fr);
  gap: 14px;
  margin: 0 0 18px;
}
.portal-identity-grid--owner {
  grid-template-columns: minmax(250px, .8fr) repeat(2, minmax(0, 1fr));
}
.portal-identity-grid--supplier,
.portal-job-context-grid {
  grid-template-columns: minmax(0, 1fr) minmax(280px, .9fr) minmax(240px, .7fr);
}
.portal-identity-card,
.portal-manager-card,
.portal-property-identity-card {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 14px 32px rgba(15, 23, 42, .05);
}
.portal-identity-card {
  padding: 16px;
  display: grid;
  align-content: start;
  gap: 12px;
}
.portal-identity-card > p,
.portal-manager-card p,
.portal-property-copy p {
  margin: 0;
  color: var(--muted);
  font-size: var(--text-sm);
  line-height: 1.45;
}
.portal-agency-mark {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.portal-agency-logo,
.portal-agency-initials,
.portal-identity-icon {
  width: 42px;
  height: 42px;
  border: 1px solid #d7eadf;
  border-radius: 12px;
  background: #eef6f1;
  color: var(--sidebar-item-active-text);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  font-weight: var(--font-weight-bold);
}
.portal-agency-logo {
  background: #fff;
  overflow: hidden;
}
.portal-agency-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.portal-agency-mark small,
.portal-manager-card small,
.portal-property-copy > span,
.supplier-property-context small {
  display: block;
  color: var(--muted);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0;
}
.portal-agency-mark strong,
.portal-manager-card strong,
.portal-property-copy h3,
.supplier-property-context strong {
  display: block;
  margin: 3px 0 0;
  color: var(--ink);
  font-weight: var(--font-weight-semibold);
  overflow-wrap: anywhere;
}
.portal-manager-card {
  padding: 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.portal-manager-card span:not(.profile-avatar) {
  display: block;
  margin: 3px 0 8px;
  color: var(--muted);
  font-size: var(--text-xs);
}
.portal-manager-avatar {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
}
.portal-property-identity-card {
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(160px, .78fr) minmax(0, 1fr);
}
.portal-property-photo {
  min-height: 184px;
  background: #eef3f2;
}
.portal-property-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.portal-property-photo.is-empty {
  padding: 18px;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 8px;
  color: var(--muted);
}
.portal-property-photo.is-empty span {
  width: 42px;
  height: 42px;
  border: 1px solid #d7eadf;
  border-radius: 12px;
  background: #fff;
  color: var(--sidebar-item-active-text);
  display: grid;
  place-items: center;
}
.portal-property-photo.is-empty strong {
  color: var(--ink);
  font-size: var(--text-sm);
}
.portal-property-photo.is-empty small {
  color: var(--muted);
  line-height: 1.4;
}
.portal-property-copy {
  min-width: 0;
  padding: 16px;
  display: grid;
  align-content: start;
  gap: 12px;
}
.portal-property-copy h3 {
  margin: 0;
  font-size: var(--text-lg);
}
.portal-property-mini-manager {
  border-top: 1px solid var(--border-soft);
  padding-top: 12px;
}
.portal-property-mini-manager strong,
.portal-property-mini-manager span {
  display: block;
}
.portal-property-mini-manager span {
  margin-top: 2px;
  color: var(--muted);
  font-size: var(--text-xs);
}
.supplier-job-card small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: var(--text-xs);
}
.supplier-property-context {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.tenant-workflow-panel {
  margin: 0 0 18px;
  overflow: hidden;
}
.tenant-workflow-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 16px;
}
.tenant-workflow-step {
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  background: #fff;
  padding: 12px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
}
.tenant-workflow-step i {
  width: 10px;
  height: 10px;
  margin-top: 4px;
  border-radius: 999px;
  background: #94a3b8;
  box-shadow: 0 0 0 4px #f1f5f9;
}
.tenant-workflow-step.is-success i { background: #16a34a; box-shadow: 0 0 0 4px #dcfce7; }
.tenant-workflow-step.is-warn i { background: #d97706; box-shadow: 0 0 0 4px #ffedd5; }
.tenant-workflow-step.is-info i { background: #2563eb; box-shadow: 0 0 0 4px #dbeafe; }
.tenant-workflow-step strong {
  display: block;
  color: var(--ink);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
}
.tenant-workflow-step span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: var(--text-xs);
  line-height: 1.35;
}
.tenant-workflow-panel .workflow-dee-prompts {
  padding: 0 16px 16px;
}
@media (max-width: 1040px) {
  .tenant-command-panel,
  .tenant-workflow-steps,
  .portal-identity-grid,
  .portal-job-context-grid,
  .portal-identity-grid--owner,
  .portal-identity-grid--supplier {
    grid-template-columns: 1fr 1fr;
  }
  .portal-property-identity-card {
    grid-column: span 2;
  }
}
@media (max-width: 760px) {
  .portal-action-grid,
  .tenant-command-panel,
  .tenant-command-summary,
  .tenant-workflow-steps,
  .portal-identity-grid,
  .portal-job-context-grid,
  .portal-identity-grid--owner,
  .portal-identity-grid--supplier {
    grid-template-columns: 1fr;
  }
  .portal-property-identity-card {
    grid-column: auto;
    grid-template-columns: 1fr;
  }
  .portal-request-card {
    grid-template-columns: 1fr;
  }
  .tenant-command-copy,
  .tenant-workflow-panel,
  .tenant-command-summary article {
    border-radius: 12px;
  }
}
.form-section {
  border-top: 1px solid var(--border-soft);
  padding-top: 14px;
  display: grid;
  gap: 12px;
}
.form-section h3 {
  margin: 0;
  color: var(--ink);
  font-size: var(--text-md);
  font-weight: var(--font-weight-semibold);
}
.check-row {
  display: flex !important;
  grid-template-columns: none !important;
  align-items: flex-start;
  gap: 10px !important;
}
.limit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.limit-grid .field {
  display: grid;
  gap: 8px;
}
.impersonation-banner {
  border: 1px solid #f3b4b4;
  border-radius: var(--radius);
  background: #fff1f1;
  color: #7f1d1d;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 10px 28px rgba(127, 29, 29, .09);
}
.impersonation-banner.danger {
  border-color: #ef8f8f;
  background: #fee2e2;
  color: #7f1d1d;
}
.impersonation-banner.is-expiring-soon {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, .12), 0 10px 28px rgba(127, 29, 29, .09);
}
.impersonation-banner strong { display: block; color: inherit; }
.impersonation-banner span { display: block; font-size: 12px; margin-top: 2px; }
.impersonation-banner form { flex: 0 0 auto; }
.impersonation-banner .button.primary {
  background: #dc2626;
  border-color: #dc2626;
  color: #ffffff;
}
.impersonation-banner .button.primary:hover {
  background: #b91c1c;
  border-color: #b91c1c;
}
.filter-panel { padding: 14px; }
.filter-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; align-items: end; }
.filter-grid label, .stack-form label, .stacked-form label { display: grid; gap: 6px; color: var(--muted); font-weight: var(--font-weight-medium); font-size: var(--text-sm); }
.filter-grid input, .filter-grid select, .stack-form input, .stack-form select, .stack-form textarea, .stacked-form input, .stacked-form select, .stacked-form textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  min-height: 42px;
  padding: 8px 10px;
}
.stack-form, .stacked-form { display: grid; gap: 12px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.colour-row { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 8px; align-items: center; }
.colour-row input[type="color"] { padding: 2px; min-height: 38px; }
.toggle-row,
.checkbox-row,
.check-row,
.checkbox-line,
.public-consent {
  display: flex !important;
  grid-template-columns: none !important;
  align-items: center;
  gap: 10px;
  color: var(--ink) !important;
  font-weight: var(--font-weight-medium);
  line-height: 1.35;
}
.toggle-row {
  justify-content: space-between;
}
.toggle-row:has(> input[type="checkbox"]:first-child) {
  justify-content: flex-start;
}
.checkbox-row,
.check-row,
.checkbox-line,
.public-consent {
  justify-content: flex-start;
}
.toggle-row input[type="checkbox"],
.checkbox-row input[type="checkbox"],
.check-row input[type="checkbox"],
.checkbox-line input[type="checkbox"],
.public-consent input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  flex: 0 0 auto;
  width: var(--switch-width) !important;
  height: var(--switch-height) !important;
  min-height: 0 !important;
  margin: 0;
  border: 1px solid var(--switch-off-border);
  border-radius: 999px;
  background: var(--switch-off-bg);
  box-shadow: inset 0 1px 1px rgba(15, 23, 42, .08);
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, box-shadow .18s ease, opacity .18s ease;
}
.toggle-row input[type="checkbox"]::after,
.checkbox-row input[type="checkbox"]::after,
.check-row input[type="checkbox"]::after,
.checkbox-line input[type="checkbox"]::after,
.public-consent input[type="checkbox"]::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: var(--switch-thumb);
  height: var(--switch-thumb);
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 2px 5px rgba(15, 23, 42, .22);
  transition: transform .18s ease;
}
.toggle-row input[type="checkbox"]:checked,
.checkbox-row input[type="checkbox"]:checked,
.check-row input[type="checkbox"]:checked,
.checkbox-line input[type="checkbox"]:checked,
.public-consent input[type="checkbox"]:checked {
  border-color: var(--switch-on-border);
  background: var(--switch-on-bg);
  box-shadow: 0 0 0 3px rgba(96, 208, 112, .22);
}
.toggle-row input[type="checkbox"]:checked::after,
.checkbox-row input[type="checkbox"]:checked::after,
.check-row input[type="checkbox"]:checked::after,
.checkbox-line input[type="checkbox"]:checked::after,
.public-consent input[type="checkbox"]:checked::after {
  transform: translateX(20px);
}
.toggle-row input[type="checkbox"]:focus-visible,
.checkbox-row input[type="checkbox"]:focus-visible,
.check-row input[type="checkbox"]:focus-visible,
.checkbox-line input[type="checkbox"]:focus-visible,
.public-consent input[type="checkbox"]:focus-visible {
  outline: 3px solid var(--switch-focus);
  outline-offset: 2px;
}
.toggle-row input[type="checkbox"]:disabled,
.checkbox-row input[type="checkbox"]:disabled,
.check-row input[type="checkbox"]:disabled,
.checkbox-line input[type="checkbox"]:disabled,
.public-consent input[type="checkbox"]:disabled {
  cursor: not-allowed;
  opacity: .58;
}
.toggle-row:has(input[type="checkbox"]:disabled),
.checkbox-row:has(input[type="checkbox"]:disabled),
.check-row:has(input[type="checkbox"]:disabled),
.checkbox-line:has(input[type="checkbox"]:disabled),
.public-consent:has(input[type="checkbox"]:disabled) {
  cursor: not-allowed;
  color: var(--muted) !important;
}
.filter-actions { display: flex; gap: 8px; }
.summary-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--border-soft);
}
.summary-strip div,
.summary-strip a { background: var(--surface); padding: 12px; min-width: 0; }
.summary-strip a:hover,
.summary-strip a.active { background: var(--surface-2); }
.summary-strip span { display: block; color: var(--muted); font-size: 11px; font-weight: var(--font-weight-medium); letter-spacing: 0; }
.summary-strip strong { display: block; color: var(--ink); margin-top: 5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: var(--font-weight-medium); }
.work-queue-review-lanes { margin: 12px 0; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.record-workspace {
  display: grid;
  gap: 16px;
}
.record-manager-alert {
  border: 1px solid #fecaca;
  border-radius: 14px;
  background: #fef2f2;
  color: #7f1d1d;
  padding: 14px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  box-shadow: 0 10px 28px rgba(127, 29, 29, .08);
}
.record-manager-alert.warn {
  border-color: #fed7aa;
  background: #fff7ed;
  color: #7c2d12;
  box-shadow: 0 10px 28px rgba(124, 45, 18, .08);
}
.record-manager-alert-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255,255,255,.72);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}
.record-manager-alert strong {
  display: block;
  color: inherit;
  font-size: var(--text-md);
  line-height: 1.25;
  font-weight: var(--font-weight-semibold);
}
.record-manager-alert p {
  margin: 4px 0 0;
  color: #991b1b;
  line-height: 1.42;
}
.record-manager-alert.warn p {
  color: #9a3412;
}
.record-manager-alert small {
  display: block;
  margin-top: 5px;
  color: color-mix(in srgb, currentColor 72%, #111827);
  font-size: var(--text-sm);
  line-height: 1.35;
}
.record-manager-alert .button {
  min-height: 38px;
  align-self: center;
}
.button.danger {
  background: #b91c1c;
  border-color: #b91c1c;
  color: #fff;
}
.button.danger:hover {
  background: #991b1b;
  border-color: #991b1b;
}
dialog.record-alert-dialog {
  width: min(680px, calc(100vw - 28px));
  border: none;
  border-radius: 18px;
  padding: 0;
  background: transparent;
  color: var(--text);
  outline: none;
  box-shadow: none;
}
dialog.record-alert-dialog[open] {
  display: block;
}
dialog.record-alert-dialog::backdrop {
  background: rgba(15, 23, 42, .34);
  backdrop-filter: blur(3px);
}
.record-alert-dialog-body {
  border: 1px solid #fecaca;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 28px 72px rgba(15, 23, 42, .22);
  overflow: hidden;
}
.record-alert-dialog header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  padding: 18px 18px 14px;
  border-bottom: 1px solid #fee2e2;
  background: #fef2f2;
}
.record-alert-dialog header strong {
  display: block;
  color: #7f1d1d;
  font-size: var(--text-lg);
  line-height: 1.2;
  font-weight: var(--font-weight-semibold);
}
.record-alert-dialog header span {
  display: block;
  margin-top: 4px;
  color: #991b1b;
  font-size: var(--text-sm);
}
.record-alert-list {
  display: grid;
  gap: 10px;
  padding: 16px 18px;
  max-height: min(58vh, 520px);
  overflow: auto;
}
.record-alert-list article {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  background: #fff;
}
.record-alert-list article > span {
  color: #b91c1c;
}
.record-alert-list strong {
  display: block;
  color: var(--ink);
  line-height: 1.35;
  font-weight: var(--font-weight-medium);
}
.record-alert-list small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: var(--text-sm);
  line-height: 1.35;
}
.record-alert-list a {
  display: inline-flex;
  margin-top: 8px;
  color: var(--sidebar-item-active-text);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
}
.record-alert-dialog .filter-actions {
  padding: 0 18px 18px;
  justify-content: flex-end;
}
.record-navigation-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.record-navigation-bar .button {
  min-height: 34px;
  font-size: var(--text-sm);
  border-radius: 8px;
  box-shadow: none;
}
.record-navigation-bar .is-disabled {
  opacity: .48;
  pointer-events: none;
}
.record-nav-spacer { flex: 1 1 auto; }
.record-workspace-header {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 8px 0 6px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  box-shadow: none;
}
.record-title-block {
  display: block;
  min-width: 0;
}
.record-icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  color: var(--record-accent, var(--accent));
  background: color-mix(in srgb, var(--record-accent, var(--accent)) 10%, #fff);
  flex: 0 0 32px;
}
.record-kicker {
  margin: 0 0 2px;
  color: var(--muted);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-medium);
}
.record-title-block h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(22px, 2.2vw, 29px);
  line-height: var(--line-height-tight);
  font-weight: var(--font-weight-semibold);
  overflow-wrap: anywhere;
}
.record-title-block p:last-child {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: var(--text-sm);
}
.record-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.record-header-actions .record-nav-adjacent.is-disabled {
  opacity: .48;
  pointer-events: none;
}
.record-create-menu {
  position: relative;
}
.record-create-menu summary {
  list-style: none;
  cursor: pointer;
}
.record-create-menu summary::-webkit-details-marker {
  display: none;
}
.record-create-menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 30;
  width: min(260px, calc(100vw - 32px));
  display: grid;
  gap: 4px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 20px 48px rgba(15, 23, 42, .18);
  padding: 8px;
}
.record-create-menu-panel a {
  min-height: 36px;
  display: flex;
  align-items: center;
  gap: 9px;
  border-radius: 9px;
  color: var(--ink);
  font-size: 13px;
  font-weight: var(--font-weight-medium);
  text-decoration: none;
  padding: 8px 10px;
}
.record-create-menu-panel a:hover {
  background: #f5f8fa;
}
.contact-magic-link-notice {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}
.contact-magic-link-notice span {
  color: var(--muted);
  font-size: var(--text-sm);
}
.contact-magic-link-notice input {
  grid-column: 1 / -1;
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  padding: 8px 10px;
  font: inherit;
  color: var(--ink);
}
.contact-portal-access-card {
  display: grid;
  gap: 12px;
}
.contact-portal-role-list {
  display: grid;
  gap: 10px;
}
.contact-portal-role-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  padding: 12px;
}
.contact-portal-role-card strong {
  display: block;
  color: var(--ink);
  font-size: var(--text-base);
  font-weight: var(--font-weight-medium);
}
.contact-portal-role-card small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: var(--text-sm);
}
.contact-portal-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}
.contact-portal-actions form {
  margin: 0;
}
.contact-portal-mode {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-right: 6px;
  color: var(--muted);
  font-size: var(--text-xs);
}
.contact-portal-mode select {
  min-height: 34px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  padding: 5px 8px;
}
.record-status-strip {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.record-status-pill {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 999px;
  min-height: 24px;
  padding: 3px 9px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.record-status-pill small {
  color: var(--muted);
  font-size: 12px;
  font-weight: var(--font-weight-medium);
}
.record-status-pill strong {
  color: var(--ink);
  font-size: 12px;
  font-weight: var(--font-weight-medium);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.record-status-pill.has-warning {
  border-color: #f1d391;
  background: var(--warn-bg);
}
.record-status-pill.is-clear {
  border-color: #bfe6cc;
  background: var(--success-bg);
}
.record-primary-facts {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--border-soft);
}
.record-primary-facts div {
  background: var(--surface);
  padding: 11px 12px;
  min-width: 0;
}
.record-primary-facts span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: var(--font-weight-medium);
}
.record-primary-facts strong {
  display: block;
  color: var(--ink);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
  margin-top: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.record-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  overflow: visible;
  border-bottom: 1px solid var(--border);
  padding: 0 0 12px;
}
.record-tabs .tab {
  flex: 1 1 132px;
  min-width: 0;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  min-height: 42px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 10px;
  padding: 9px 12px;
  color: var(--ink);
  font-size: 13px;
  font-weight: var(--font-weight-medium);
  box-shadow: 0 1px 2px rgba(15, 23, 42, .025);
}
.record-tabs .tab:hover {
  background: #fbfcfd;
  border-color: var(--border-strong);
}
.record-tabs .tab.active {
  border-color: color-mix(in srgb, var(--accent) 26%, var(--border));
  background: color-mix(in srgb, var(--accent) 8%, #fff);
  color: var(--accent);
}
.record-tab-count {
  margin-left: auto;
  min-width: 19px;
  height: 19px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--surface-muted);
  color: var(--muted);
  display: inline-grid;
  place-items: center;
  font-size: 11px;
  font-weight: var(--font-weight-medium);
}
.record-tabs .tab.active .record-tab-count {
  background: color-mix(in srgb, var(--accent) 14%, #fff);
  color: var(--accent);
}
.property-record-content > .record-tabs .tab {
  flex: 0 1 calc((100% - 32px) / 5);
}
.property-fees-panel .panel-body {
  background: #fff;
}
.property-fee-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--border-soft);
}
.property-fee-card {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}
.property-fee-card header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 13px;
}
.property-fee-card header span,
.management-fee-projection span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: var(--font-weight-medium);
  letter-spacing: .035em;
  line-height: 1.2;
  text-transform: uppercase;
}
.property-fee-card header strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-size: 17px;
  font-weight: var(--font-weight-semibold);
  line-height: 1.2;
}
.property-fee-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 24px;
  margin: 0;
  border-top: 1px solid var(--border-soft);
}
.property-fee-facts div {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(132px, .42fr) minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-soft);
}
.property-fee-facts dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: var(--font-weight-medium);
  margin: 0;
}
.property-fee-facts dd {
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: var(--font-weight-medium);
  overflow-wrap: anywhere;
}
.record-related-disclosure {
  border: 0;
  border-bottom: 1px solid var(--border-soft);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.record-related-disclosure summary {
  position: relative;
  min-height: 60px;
  display: grid;
  grid-template-rows: auto auto;
  gap: 5px;
  cursor: pointer;
  list-style: none;
  padding: 13px 34px 13px 2px;
  border-radius: 0;
  transition: background .16s ease, padding-left .16s ease;
}
.record-related-disclosure summary:hover {
  background: #fbfcfd;
  padding-left: 10px;
}
.record-related-disclosure summary::after {
  content: "";
  position: absolute;
  right: 10px;
  top: 23px;
  width: 8px;
  height: 8px;
  border-right: 1.6px solid var(--muted);
  border-bottom: 1.6px solid var(--muted);
  transform: rotate(45deg);
  transition: transform .16s ease, top .16s ease;
}
.record-related-disclosure[open] summary::after {
  top: 27px;
  transform: rotate(225deg);
}
.record-related-disclosure summary::-webkit-details-marker {
  display: none;
}
.record-related-summary-title,
.record-related-summary-meta {
  min-width: 0;
  display: flex;
  align-items: center;
}
.record-related-summary-title {
  gap: 8px;
  color: var(--ink);
  justify-content: flex-start;
}
.record-related-summary-title strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  font-weight: var(--font-weight-medium);
}
.record-related-summary-meta {
  gap: 7px;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
}
.record-related-summary-meta span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.record-related-summary-meta span:not(:last-child)::after {
  content: "·";
  margin-left: 7px;
  color: var(--text-faint);
}
.record-related-status-badge {
  margin-left: auto;
  flex: 0 0 auto;
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: var(--font-weight-medium);
}
.record-related-status-badge.is-unpaid {
  border-color: #fecaca;
  background: #fff1f2;
  color: #b42318;
}
.record-related-status-badge.is-paid {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #166534;
}
.record-related-status-badge.is-current,
.record-related-status-badge.is-open {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #166534;
}
.record-related-status-badge.is-upcoming {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
}
.record-related-status-badge.is-vacating {
  border-color: #fde68a;
  background: #fffbeb;
  color: #92400e;
}
.record-related-status-badge.is-closed,
.record-related-status-badge.is-archived,
.record-related-status-badge.is-completed {
  border-color: #d1d5db;
  background: #f3f4f6;
  color: #4b5563;
}
.record-related-status-badge.is-neutral {
  border-color: #dbe4ea;
  background: #f8fafc;
  color: #475569;
}
.record-related-disclosure[open] summary {
  border-bottom: 0;
  background: #fbfcfd;
}
.record-related-expanded {
  display: grid;
  gap: 12px;
  padding: 0 2px 16px 32px;
}
.record-related-expanded > .record-card-action {
  justify-self: flex-start;
  border: 0;
  background: transparent;
  color: var(--accent);
  padding: 0;
}
.record-related-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 24px;
  border-top: 1px solid var(--border-soft);
}
.record-related-field-grid div {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(132px, .42fr) minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
  border: 0;
  border-bottom: 1px solid var(--border-soft);
  border-radius: 0;
  background: transparent;
  padding: 10px 0;
}
.record-related-field-grid span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.25;
}
.record-related-field-grid .record-label-with-info {
  display: inline-flex;
}
.record-related-field-grid strong {
  display: block;
  margin-top: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ink);
  font-size: 13px;
  font-weight: var(--font-weight-medium);
}
.management-fee-projection {
  margin-top: 14px;
  border: 0;
  border-left: 3px solid #16a34a;
  border-radius: 0;
  background: #f6fdf8;
  padding: 11px 0 11px 14px;
}
.management-fee-projection > div {
  margin-bottom: 12px;
}
.management-fee-projection strong {
  display: block;
  margin-top: 4px;
  color: #14532d;
  font-size: 14px;
  font-weight: var(--font-weight-semibold);
}
.management-fee-projection small {
  display: block;
  margin-top: 3px;
  color: #476657;
  font-size: 12px;
}
.management-fee-projection dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 18px;
  margin: 0;
}
.management-fee-projection dl div {
  border: 0;
  border-top: 1px solid rgba(20, 83, 45, .14);
  border-radius: 0;
  background: transparent;
  padding: 9px 0 0;
}
.management-fee-projection dt {
  color: #476657;
  font-size: 11px;
  font-weight: var(--font-weight-medium);
  margin-bottom: 3px;
}
.management-fee-projection dd {
  margin: 0;
  color: #12331f;
  font-size: 16px;
  font-weight: var(--font-weight-semibold);
}
.management-fee-projection.is-unavailable {
  display: grid;
  gap: 4px;
  border-left-color: #f59e0b;
  background: #fffaf0;
  color: #92400e;
}
.management-fee-projection.is-unavailable strong {
  margin: 0;
  color: #92400e;
}
.management-fee-projection.is-unavailable span {
  color: #92400e;
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
}
.record-workspace-layout {
  display: grid;
  grid-template-columns: minmax(280px, .95fr) minmax(420px, 1.15fr) minmax(310px, .95fr);
  gap: 28px;
  align-items: start;
}
.property-record-layout {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  align-items: start;
}
.property-record-content {
  min-width: 0;
  display: grid;
  grid-column: 1 / span 2;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}
.property-record-columns {
  min-width: 0;
  display: contents;
}
.property-record-content > .record-tabs,
.property-record-content > .record-tab-content {
  grid-column: 1 / -1;
}
.record-main-panel {
  min-width: 0;
  display: grid;
  gap: 12px;
}
.record-summary-panel,
.record-activity-rail {
  display: grid;
  gap: 16px;
  position: sticky;
  top: 84px;
  min-width: 0;
}
.property-record-content > .record-summary-panel,
.property-record-columns > .record-summary-panel {
  position: static;
  top: auto;
}
.pipeline-record-workspace {
  gap: 18px;
}
.pipeline-record-header .record-title-block h2 {
  font-size: clamp(24px, 2.2vw, 30px);
  font-weight: var(--font-weight-semibold);
}
.pipeline-record-layout {
  margin-top: 0;
}
.pipeline-record-content {
  grid-column: 1 / span 2;
}
.pipeline-record-columns {
  min-width: 0;
  display: contents;
}
.pipeline-record-columns > .record-summary-card,
.pipeline-record-columns > .record-main-panel {
  min-width: 0;
  position: static;
  top: auto;
}
.staff-client-record-workspace {
  gap: 18px;
}
.staff-client-record-header .record-title-block h2 {
  font-size: clamp(24px, 2.2vw, 30px);
  font-weight: var(--font-weight-semibold);
}
.staff-client-record-content {
  grid-column: 1 / span 2;
}
.staff-client-record-content .property-record-columns {
  min-width: 0;
  display: contents;
}
.staff-client-record-tabs {
  margin-top: 0;
}
.staff-client-onboarding-columns {
  align-items: start;
}
.staff-client-overview-column,
.staff-client-onboarding-column {
  min-width: 0;
  display: grid;
  gap: 12px;
}
.staff-client-onboarding-column {
  align-content: start;
}
.staff-client-onboarding-form {
  display: grid;
  gap: 10px;
  margin: 0;
}
.staff-client-onboarding-steps {
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}
.staff-client-onboarding-heading {
  margin: 0 0 10px 58px;
  min-height: 34px;
}
.staff-client-onboarding-heading .renewal-process-progress {
  min-width: 190px;
}
.staff-client-onboarding-heading p {
  color: var(--muted);
  font-size: 12px;
  font-weight: var(--font-weight-medium);
  margin: 0;
}
.staff-client-onboarding-heading h3 {
  margin: 2px 0 0;
  color: var(--ink);
  font-size: var(--text-md);
  font-weight: var(--font-weight-medium);
}
.staff-client-onboarding-steps .workflow-group-card {
  background: #fff;
}
.staff-client-onboarding-steps .workflow-group-card::before {
  left: 29px;
}
.staff-client-onboarding-steps .workflow-group-body {
  padding-left: 58px;
}
.staff-client-step-description {
  margin: 0 0 12px;
  color: #63737b;
  font-size: var(--text-sm);
  line-height: 1.5;
}
.staff-client-step-checks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}
.staff-client-step-status,
.staff-client-step-toggle {
  min-width: 0;
  min-height: 56px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #e3ebef;
  border-radius: 12px;
  background: #fbfcfd;
  padding: 10px 11px;
  color: var(--ink);
  text-decoration: none;
  transition: border-color .16s ease, background .16s ease;
}
.staff-client-step-toggle {
  cursor: pointer;
}
.staff-client-step-toggle input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
}
.staff-client-step-status {
  justify-content: space-between;
}
.staff-client-step-status span,
.staff-client-step-toggle strong {
  min-width: 0;
  color: #354650;
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
  line-height: 1.25;
}
.staff-client-step-status strong {
  color: var(--ink);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
  white-space: nowrap;
}
.staff-client-step-toggle > span:last-child {
  min-width: 0;
  display: grid;
  gap: 3px;
}
.staff-client-step-toggle small {
  color: #6b7b84;
  font-size: var(--text-xs);
  font-weight: var(--font-weight-regular);
  line-height: 1.35;
}
.staff-client-step-status,
.staff-client-step-toggle {
  transition: border-color .16s ease, background .16s ease;
}
.staff-client-step-status.is-ready,
.staff-client-step-toggle.is-ready {
  border-color: #cfead9;
  background: #f6fdf8;
}
.staff-client-step-status.is-ready strong,
.staff-client-step-toggle.is-ready strong {
  color: #14532d;
}
.staff-client-step-status.is-needed,
.staff-client-step-toggle.is-needed {
  border-color: #fed7aa;
  background: #fffaf0;
}
.staff-client-step-status.is-needed strong,
.staff-client-step-toggle.is-needed strong {
  color: #9a3412;
}
.staff-client-step-toggle input:checked + .pipeline-waiver-switch {
  background: var(--switch-on-bg);
  border-color: var(--switch-on-border);
  box-shadow: 0 0 0 3px rgba(96, 208, 112, .14);
}
.staff-client-step-toggle input:checked + .pipeline-waiver-switch::after {
  transform: translateX(20px);
}
.staff-client-step-toggle:focus-within .pipeline-waiver-switch {
  outline: 3px solid var(--switch-focus);
  outline-offset: 2px;
}
.staff-client-onboarding-safety {
  margin: 0;
}
.staff-client-preferences-grid {
  align-items: start;
}
.staff-client-profile-card,
.staff-client-snapshot,
.staff-client-contacts-card {
  min-width: 0;
  position: static;
  top: auto;
}
.staff-client-profile-card .record-card-heading {
  align-items: flex-start;
}
.staff-client-profile-card .record-edit-form {
  margin-top: 2px;
}
.staff-client-profile-card .record-edit-grid {
  gap: 10px;
}
.staff-client-contacts-card {
  min-width: 0;
}
.staff-client-contact-list {
  display: grid;
  gap: 8px;
}
.staff-client-contact-list article {
  min-width: 0;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #edf2f5;
  padding: 8px 0;
}
.staff-client-contact-list article:last-child {
  border-bottom: 0;
}
.staff-client-contact-avatar {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #eef5f3;
  color: #17433a;
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
}
.staff-client-contact-list div {
  min-width: 0;
  display: grid;
  gap: 2px;
}
.staff-client-contact-list strong,
.staff-client-contact-list small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.staff-client-contact-list strong {
  color: var(--ink);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
}
.staff-client-contact-list small {
  color: var(--muted);
  font-size: var(--text-xs);
}
@media (max-width: 760px) {
  .staff-client-step-checks {
    grid-template-columns: 1fr;
  }
  .staff-client-onboarding-steps .workflow-group-body {
    padding-left: 0;
  }
  .staff-client-step-status,
  .staff-client-step-toggle {
    align-items: flex-start;
  }
}
.staff-client-updated-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
}
.staff-client-trading-name {
  margin: -4px 0 4px;
  color: var(--muted);
  font-size: 13px;
}
.staff-client-fact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 12px;
  margin: 0;
}
.staff-client-fact-grid div {
  min-width: 0;
  padding-bottom: 8px;
  border-bottom: 1px solid #eef2f5;
}
.staff-client-fact-grid dt {
  margin: 0 0 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: var(--font-weight-medium);
}
.staff-client-fact-grid dd {
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: var(--font-weight-medium);
  overflow-wrap: anywhere;
}
.staff-client-metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.staff-client-metric-grid a,
.staff-client-readiness-list a,
.staff-client-checklist a {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid #e4ebf0;
  border-radius: 12px;
  background: linear-gradient(180deg, #fff 0%, #f8fafb 100%);
  color: var(--ink);
  text-decoration: none;
  padding: 10px 11px;
}
.staff-client-metric-grid a:hover,
.staff-client-readiness-list a:hover,
.staff-client-checklist a:hover {
  border-color: #cedae2;
  background: #f7faf9;
}
.staff-client-metric-grid span,
.staff-client-readiness-list span,
.staff-client-checklist span {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #42515c;
  font-size: 13px;
  font-weight: var(--font-weight-medium);
}
.staff-client-metric-grid strong,
.staff-client-readiness-list strong,
.staff-client-checklist strong {
  color: var(--ink);
  font-size: 16px;
  font-weight: var(--font-weight-semibold);
  white-space: nowrap;
}
.staff-client-readiness-list,
.staff-client-checklist {
  display: grid;
  gap: 8px;
}
.staff-client-checklist {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.staff-client-checklist a.is-done {
  border-color: #cfead9;
  background: linear-gradient(180deg, #fbfffd 0%, #f1fbf5 100%);
}
.staff-client-checklist a.is-done span svg {
  color: #16a34a;
}
.staff-client-checklist a.is-open {
  border-color: #f3d5a5;
  background: linear-gradient(180deg, #fffdf8 0%, #fff8ec 100%);
}
.staff-client-checklist a.is-open span svg {
  color: #d97706;
}
.staff-client-overview-panel .panel-body {
  padding-top: 12px;
}
.pipeline-profile-form,
.pipeline-inline-form,
.pipeline-proposal-create,
.pipeline-send-form {
  display: grid;
  gap: 12px;
}
.pipeline-profile-form label,
.pipeline-inline-form label,
.pipeline-proposal-create label,
.pipeline-send-form label,
.public-decline-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
}
.pipeline-profile-form label span,
.pipeline-inline-form label span,
.pipeline-proposal-create label span,
.pipeline-send-form label span,
.public-decline-form label span {
  color: var(--muted);
  font-size: 12px;
  font-weight: var(--font-weight-medium);
}
.pipeline-profile-form input,
.pipeline-profile-form select,
.pipeline-profile-form textarea,
.pipeline-inline-form input,
.pipeline-inline-form select,
.pipeline-inline-form textarea,
.pipeline-proposal-create input,
.pipeline-proposal-create textarea,
.pipeline-send-form input,
.public-decline-form textarea {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: var(--text-sm);
  padding: 9px 11px;
  box-shadow: inset 0 1px 0 rgba(15, 23, 42, .02);
}
.pipeline-profile-form select.pipeline-tone-select,
.pipeline-inline-form select.pipeline-tone-select,
.smart-grid-bulk-form select.pipeline-tone-select,
.support-start-form select.pipeline-tone-select {
  font-weight: var(--font-weight-medium);
  background: #f8fafc;
  border-color: #d8e0e7;
  color: var(--ink);
}
.pipeline-profile-form select.pipeline-tone-select.is-info,
.pipeline-inline-form select.pipeline-tone-select.is-info,
.smart-grid-bulk-form select.pipeline-tone-select.is-info,
.support-start-form select.pipeline-tone-select.is-info {
  background: #eff7ff;
  border-color: #bfdbfe;
  color: #1d4f91;
}
.pipeline-profile-form select.pipeline-tone-select.is-success,
.pipeline-inline-form select.pipeline-tone-select.is-success,
.pipeline-profile-form select.pipeline-tone-select.is-green,
.pipeline-inline-form select.pipeline-tone-select.is-green,
.smart-grid-bulk-form select.pipeline-tone-select.is-success,
.smart-grid-bulk-form select.pipeline-tone-select.is-green,
.support-start-form select.pipeline-tone-select.is-success,
.support-start-form select.pipeline-tone-select.is-green {
  background: #eefaf2;
  border-color: #bbebc9;
  color: #166534;
}
.pipeline-profile-form select.pipeline-tone-select.is-blue,
.pipeline-inline-form select.pipeline-tone-select.is-blue,
.smart-grid-bulk-form select.pipeline-tone-select.is-blue,
.support-start-form select.pipeline-tone-select.is-blue {
  background: #eef6ff;
  border-color: #c7ddfb;
  color: #1e40af;
}
.pipeline-profile-form select.pipeline-tone-select.is-warn,
.pipeline-inline-form select.pipeline-tone-select.is-warn,
.smart-grid-bulk-form select.pipeline-tone-select.is-warn,
.support-start-form select.pipeline-tone-select.is-warn {
  background: #fff7ed;
  border-color: #fed7aa;
  color: #9a3412;
}
.pipeline-profile-form select.pipeline-tone-select.is-danger,
.pipeline-inline-form select.pipeline-tone-select.is-danger,
.smart-grid-bulk-form select.pipeline-tone-select.is-danger,
.support-start-form select.pipeline-tone-select.is-danger {
  background: #fff1f2;
  border-color: #fecdd3;
  color: #9f1239;
}
.pipeline-profile-form select.pipeline-tone-select.is-muted,
.pipeline-inline-form select.pipeline-tone-select.is-muted,
.smart-grid-bulk-form select.pipeline-tone-select.is-muted,
.support-start-form select.pipeline-tone-select.is-muted {
  background: #f8fafc;
  border-color: #d8e0e7;
  color: #475569;
}
.profile-form select.user-status-select {
  font-weight: var(--font-weight-medium);
}
.profile-form select.user-status-select.is-active {
  background: #eefaf2;
  border-color: #bbebc9;
  color: #166534;
}
.profile-form select.user-status-select.is-inactive {
  background: #f3f4f6;
  border-color: #9ca3af;
  color: #374151;
}
.pipeline-profile-form textarea,
.pipeline-inline-form textarea,
.pipeline-proposal-create textarea,
.public-decline-form textarea {
  resize: vertical;
  line-height: 1.45;
}
.pipeline-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
}
.pipeline-abn-field {
  grid-column: 1 / -1;
}
.pipeline-abn-snapshot {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: -3px;
  padding: 11px 12px;
  border: 1px solid rgba(37, 99, 235, .18);
  border-radius: 12px;
  background: linear-gradient(180deg, #f8fbff 0%, #eef6ff 100%);
  color: var(--ink);
}
.pipeline-abn-snapshot[hidden] {
  display: none;
}
.pipeline-abn-snapshot > div:first-child {
  min-width: 0;
  display: grid;
  gap: 2px;
}
.pipeline-abn-snapshot strong {
  color: var(--ink);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
}
.pipeline-abn-snapshot span,
.pipeline-abn-snapshot small {
  color: var(--muted);
  font-size: var(--text-xs);
  line-height: 1.35;
}
.pipeline-abn-snapshot-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.pipeline-abn-snapshot-actions a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 30px;
  padding: 0 9px;
  border: 1px solid rgba(37, 99, 235, .2);
  border-radius: 999px;
  background: rgba(255, 255, 255, .74);
  color: #2563eb;
  font-size: var(--text-xs);
  font-weight: var(--font-weight-medium);
  text-decoration: none;
}
.pipeline-abn-snapshot-actions a:hover {
  border-color: rgba(37, 99, 235, .34);
  background: #fff;
  color: #1d4ed8;
}
@media (max-width: 720px) {
  .pipeline-abn-snapshot {
    align-items: flex-start;
    flex-direction: column;
  }
  .pipeline-abn-snapshot-actions {
    justify-content: flex-start;
  }
}
.pipeline-url-input-shell {
  position: relative;
  display: block;
}
.pipeline-url-input-shell input {
  padding-right: 42px;
}
.pipeline-url-open {
  position: absolute;
  top: 50%;
  right: 7px;
  width: 30px;
  height: 30px;
  transform: translateY(-50%);
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(37, 99, 235, .2);
  border-radius: 999px;
  background: #eff6ff;
  color: #2563eb;
  text-decoration: none;
  line-height: 1;
  transition: background .16s ease, border-color .16s ease, color .16s ease, transform .16s ease;
}
.pipeline-url-open:hover {
  background: #dbeafe;
  border-color: rgba(37, 99, 235, .34);
  color: #1d4ed8;
  transform: translateY(-50%) translateX(1px);
}
.pipeline-url-open[hidden] {
  display: none;
}
.pipeline-logo-row {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid #dbe7ee;
  border-radius: 16px;
  background: linear-gradient(135deg, #f8fbfc 0%, #eef7f4 100%);
}
.pipeline-logo-preview {
  width: 132px;
  height: 96px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #fff;
  color: var(--accent);
  border: 1px solid rgba(15, 23, 42, .08);
}
.pipeline-logo-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
}
.pipeline-logo-empty {
  width: calc(100% - 18px);
  height: calc(100% - 18px);
  border: 1px dashed #cdd8df;
  border-radius: 12px;
  color: var(--muted);
  display: grid;
  place-items: center;
  font-size: var(--text-xs);
  font-weight: var(--font-weight-medium);
  background: #f8fafb;
}
.pipeline-logo-tools {
  min-width: 0;
  display: grid;
  gap: 8px;
}
.pipeline-logo-upload {
  min-height: 56px;
  justify-content: center;
  margin: 0;
}
.pipeline-logo-delete {
  width: fit-content;
  min-height: 34px;
  color: #b42318;
  border-color: #f1c9c3;
  background: #fff;
}
.pipeline-logo-delete:hover {
  background: #fff4f2;
}
.pipeline-brand-swatches {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-medium);
}
.pipeline-brand-swatches i {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--swatch);
  border: 1px solid rgba(15, 23, 42, .12);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .42);
}
.pipeline-inline-form .toggle-row {
  border: 1px solid #dce8df;
  border-radius: 11px;
  padding: 10px 12px;
  background: #f5fbf6;
  color: #174a2b;
}
.pipeline-waiver-toggle {
  width: fit-content;
  max-width: 100%;
  display: inline-flex !important;
  align-items: center;
  gap: 9px;
  min-height: 32px;
  margin: 0;
  padding: 4px 0;
  color: #34454f !important;
  font-size: 13px !important;
  font-weight: var(--font-weight-medium) !important;
  cursor: pointer;
}
.pipeline-waiver-toggle input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
}
.pipeline-waiver-switch {
  position: relative;
  width: var(--switch-width);
  height: var(--switch-height);
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--switch-off-bg);
  border: 1px solid var(--switch-off-border);
  transition: background .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.pipeline-waiver-switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: var(--switch-thumb);
  height: var(--switch-thumb);
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .2);
  transition: transform .18s ease;
}
.pipeline-waiver-toggle input:checked + .pipeline-waiver-switch {
  background: var(--switch-on-bg);
  border-color: var(--switch-on-border);
  box-shadow: 0 0 0 3px rgba(96, 208, 112, .14);
}
.pipeline-waiver-toggle input:checked + .pipeline-waiver-switch::after {
  transform: translateX(20px);
}
.pipeline-waiver-toggle:focus-within .pipeline-waiver-switch {
  outline: 3px solid var(--switch-focus);
  outline-offset: 2px;
}
.pipeline-stat-grid,
.pipeline-onboarding-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}
.pipeline-stat {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  padding: 10px;
}
.pipeline-stat span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: var(--font-weight-medium);
}
.pipeline-stat strong {
  display: block;
  margin-top: 5px;
  color: var(--ink);
  font-size: var(--text-md);
  font-weight: var(--font-weight-semibold);
  overflow: hidden;
  text-overflow: ellipsis;
}
.pipeline-stat.is-green,
.pipeline-stat.is-success { background: #f0fbf4; border-color: #bfe7ca; }
.pipeline-stat.is-blue,
.pipeline-stat.is-info { background: #f1f7ff; border-color: #c6dcfb; }
.pipeline-stat.is-amber,
.pipeline-stat.is-warn { background: #fff8ed; border-color: #f3d6a5; }
.pipeline-stat.is-danger { background: #fff1f2; border-color: #fecdd3; }
.pipeline-snapshot-list {
  display: grid;
  gap: 0;
  margin-top: 2px;
  border-top: 1px solid var(--border);
}
.pipeline-snapshot-list article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(120px, auto);
  gap: 12px;
  align-items: center;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
}
.pipeline-snapshot-list span {
  color: var(--muted);
  font-size: 12px;
  font-weight: var(--font-weight-medium);
}
.pipeline-snapshot-list strong {
  color: var(--ink);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
  text-align: right;
}
.pipeline-tab-shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.pipeline-proposal-list,
.pipeline-offer-list,
.pipeline-contact-list {
  display: grid;
  gap: 9px;
  margin-top: 12px;
}
.pipeline-proposal-card,
.pipeline-offer-list article,
.pipeline-contact-list > article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  border-top: 1px solid var(--border);
  padding-top: 11px;
}
.pipeline-proposal-card:first-child,
.pipeline-offer-list article:first-child,
.pipeline-contact-list > article:first-child {
  border-top: 0;
  padding-top: 0;
}
.pipeline-proposal-card strong,
.pipeline-offer-list strong,
.pipeline-contact-list > article strong {
  color: var(--ink);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
}
.pipeline-proposal-card span,
.pipeline-offer-list span,
.pipeline-contact-list > article span,
.pipeline-contact-list > article small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}
.pipeline-proposal-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.pipeline-send-form {
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  margin-top: 4px;
  padding: 10px;
  border-radius: 12px;
  background: #f8fafc;
}
.pipeline-proposal-builder {
  border: 1px solid #dbe7ee;
  border-radius: 16px;
  background: linear-gradient(135deg, #fbfdfc 0%, #f4faf7 100%);
  padding: 14px;
}
.pipeline-proposal-builder-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(15, 23, 42, .08);
}
.pipeline-proposal-builder-head span {
  display: block;
  color: #166534;
  font-size: 11px;
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.pipeline-proposal-builder-head strong {
  display: block;
  margin-top: 3px;
  color: var(--ink);
  font-size: 18px;
  font-weight: var(--font-weight-semibold);
}
.pipeline-proposal-builder-head p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: var(--text-sm);
  line-height: 1.4;
}
.pipeline-proposal-card {
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  padding: 12px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, .035);
}
.pipeline-contact-list > article {
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
}
.pipeline-contact-list .user-avatar {
  width: 38px;
  height: 38px;
  font-size: 13px;
}
.pipeline-contacts-panel .record-card-heading {
  align-items: center;
}
.pipeline-contact-modal {
  max-width: 640px;
}
.pipeline-contact-accordion {
  gap: 8px;
}
.pipeline-contact-card {
  border: 1px solid #dde7ee;
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.pipeline-contact-card[open] {
  border-color: #c7d8e5;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .06);
}
.pipeline-contact-card summary {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 58px;
  padding: 10px 12px;
  cursor: pointer;
  list-style: none;
}
.pipeline-contact-card summary::-webkit-details-marker {
  display: none;
}
.pipeline-contact-main {
  min-width: 0;
  display: grid;
  gap: 3px;
}
.pipeline-contact-main strong {
  color: var(--ink);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pipeline-contact-main small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pipeline-contact-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.pipeline-contact-hint {
  width: 28px;
  height: 28px;
  border: 1px solid #d5dee6;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  color: #475569;
  background: #f8fafc;
  transition: transform .18s ease, background .18s ease;
}
.pipeline-contact-card[open] .pipeline-contact-hint {
  transform: rotate(180deg);
  background: #eef6f3;
  color: var(--accent);
}
.pipeline-contact-detail {
  display: grid;
  gap: 12px;
  padding: 0 12px 12px 60px;
}
.pipeline-contact-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 18px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}
.pipeline-contact-fields article,
.pipeline-contact-notes {
  min-width: 0;
  display: grid;
  gap: 4px;
}
.pipeline-contact-fields span,
.pipeline-contact-notes span {
  color: var(--muted);
  font-size: 11px;
  font-weight: var(--font-weight-medium);
}
.pipeline-contact-fields strong,
.pipeline-contact-fields a,
.pipeline-contact-fields article > span:last-child,
.pipeline-contact-notes p {
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: var(--font-weight-medium);
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.pipeline-contact-fields a {
  color: var(--accent);
  text-decoration: none;
}
.pipeline-contact-fields a:hover {
  text-decoration: underline;
}
.pipeline-contact-notes {
  padding: 10px 12px;
  border: 1px solid #e3eaf0;
  border-radius: 12px;
  background: #f8fafc;
}
.pipeline-contact-edit-form {
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.pipeline-contact-edit-form .pipeline-form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.pipeline-contact-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 10px;
}
.pipeline-contact-delete-form {
  margin: -2px 0 0;
}
.pipeline-record-tabs {
  margin-top: 0;
}
.pipeline-bottom-tabs {
  margin-top: 2px;
}
.pipeline-workflow-panel {
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}
.smart-data-grid[data-entity-slug="staff-pipeline"] .table-wrap {
  overflow-x: hidden;
}
.smart-data-grid[data-entity-slug="staff-pipeline"] .smart-grid-table table {
  min-width: 0;
  width: 100%;
  table-layout: fixed;
}
.smart-data-grid[data-entity-slug="staff-pipeline"] .smart-grid-table col {
  width: var(--grid-col-width, auto) !important;
}
.smart-data-grid[data-entity-slug="staff-pipeline"] .smart-grid-table col:first-child {
  width: 38px !important;
}
.smart-data-grid[data-entity-slug="staff-pipeline"] .smart-grid-table th,
.smart-data-grid[data-entity-slug="staff-pipeline"] .smart-grid-table td {
  min-width: 0;
  max-width: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding-left: 8px;
  padding-right: 8px;
}
.smart-data-grid[data-entity-slug="staff-pipeline"] .smart-grid-table th.select-col,
.smart-data-grid[data-entity-slug="staff-pipeline"] .smart-grid-table td.select-col {
  padding-left: 7px;
  padding-right: 7px;
}
.smart-data-grid[data-entity-slug="forms-library"] .smart-grid-table table {
  min-width: 0;
  width: 100%;
  table-layout: fixed;
}
.smart-data-grid[data-entity-slug="forms-library"] .smart-grid-table col {
  width: var(--grid-col-width, auto) !important;
}
.smart-data-grid[data-entity-slug="forms-library"] .smart-grid-table th,
.smart-data-grid[data-entity-slug="forms-library"] .smart-grid-table td {
  min-width: 0;
  max-width: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding-left: 8px;
  padding-right: 8px;
}
.pipeline-progress-cell {
  --pipeline-progress-fill: 0%;
  --pipeline-progress-accent: #0e4542;
  --pipeline-progress-accent-soft: #60d070;
  display: grid;
  gap: 5px;
  min-width: 0;
  width: 100%;
}
.pipeline-progress-cell-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}
.pipeline-progress-cell-head strong {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 12px;
  font-weight: var(--font-weight-semibold);
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pipeline-progress-cell-head span {
  flex: 0 0 auto;
  color: #64748b;
  font-size: 11px;
  font-weight: var(--font-weight-semibold);
  line-height: 1;
}
.pipeline-progress-meter {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: #e5ebef;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .03);
}
.pipeline-progress-meter span {
  display: block;
  width: var(--pipeline-progress-fill);
  min-width: 8px;
  max-width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--pipeline-progress-accent) 0%, var(--pipeline-progress-accent-soft) 100%);
}
.pipeline-progress-cell.is-complete {
  --pipeline-progress-accent: #15803d;
  --pipeline-progress-accent-soft: #22c55e;
}
.pipeline-progress-cell.is-pending {
  --pipeline-progress-accent: #64748b;
  --pipeline-progress-accent-soft: #94a3b8;
}
.pipeline-step-form {
  border-top: 0;
  padding-top: 0;
}
.pipeline-step-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}
.pipeline-step-fields > label,
.pipeline-step-fields .pipeline-creatable-select {
  min-width: 0;
}
.pipeline-step-field-wide,
.pipeline-step-fields .pipeline-multi-select {
  grid-column: 1 / -1;
}
.pipeline-autosave-row {
  justify-content: flex-start;
  border-top: 1px solid var(--border-soft);
  margin-top: 12px;
  padding-top: 10px;
}
.pipeline-step-fields select[multiple] {
  min-height: 118px;
  padding: 6px;
}
.pipeline-field-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: var(--font-weight-medium);
}
.pipeline-pain-picker {
  display: grid;
  gap: 8px;
  min-width: 0;
}
.pipeline-selected-pain-list {
  min-height: 48px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  padding: 7px;
  box-shadow: inset 0 1px 0 rgba(15, 23, 42, .02), 0 1px 2px rgba(15, 23, 42, .03);
  transition: border-color .16s ease, box-shadow .16s ease;
}
.pipeline-selected-pain-list:focus-within {
  border-color: rgba(37, 99, 235, .52);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .10), inset 0 1px 0 rgba(15, 23, 42, .02);
}
.pipeline-selected-pain-empty {
  color: var(--muted);
  font-size: var(--text-sm);
  padding: 0 5px;
}
.pipeline-selected-pain-chip,
.pipeline-pain-option {
  --chip-bg: #f8fafc;
  --chip-border: #d8e0e7;
  --chip-text: #475569;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 100%;
  border: 1px solid var(--chip-border);
  border-radius: 999px;
  background: var(--chip-bg);
  color: var(--chip-text);
  font: inherit;
  font-size: var(--text-xs);
  font-weight: var(--font-weight-medium);
  line-height: 1.25;
  padding: 6px 9px;
}
.pipeline-selected-pain-chip span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pipeline-selected-pain-chip button {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: rgba(15, 23, 42, .08);
  color: inherit;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  padding: 0;
}
.pipeline-selected-pain-chip button:hover,
.pipeline-selected-pain-chip button:focus-visible {
  background: rgba(15, 23, 42, .14);
}
.pipeline-pain-token-input {
  flex: 1 1 180px;
  min-width: 148px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-left: 4px;
}
.pipeline-pain-token-input input {
  flex: 1 1 auto;
  min-width: 92px;
  height: 30px;
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0 2px;
}
.pipeline-pain-token-input input:focus {
  outline: 0;
  box-shadow: none;
}
.pipeline-token-add-button {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #f8fafc;
  color: var(--ink);
  cursor: pointer;
  padding: 0;
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}
.pipeline-token-add-button:hover,
.pipeline-token-add-button:focus-visible {
  background: #eef6ff;
  border-color: #bfdbfe;
  transform: translateY(-1px);
}
.pipeline-pain-option {
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.pipeline-pain-option:hover,
.pipeline-pain-option:focus-visible {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--chip-border) 42%, transparent);
  transform: translateY(-1px);
}
.pipeline-pain-option.is-selected {
  box-shadow: inset 0 0 0 1px var(--chip-text);
}
.pipeline-selected-pain-chip.is-info,
.pipeline-pain-option.is-info {
  --chip-bg: #eff7ff;
  --chip-border: #bfdbfe;
  --chip-text: #1d4f91;
}
.pipeline-selected-pain-chip.is-blue,
.pipeline-pain-option.is-blue {
  --chip-bg: #eef6ff;
  --chip-border: #c7ddfb;
  --chip-text: #1e40af;
}
.pipeline-selected-pain-chip.is-success,
.pipeline-selected-pain-chip.is-green,
.pipeline-pain-option.is-success,
.pipeline-pain-option.is-green {
  --chip-bg: #eefaf2;
  --chip-border: #bbebc9;
  --chip-text: #166534;
}
.pipeline-selected-pain-chip.is-warn,
.pipeline-pain-option.is-warn {
  --chip-bg: #fff7ed;
  --chip-border: #fed7aa;
  --chip-text: #9a3412;
}
.pipeline-selected-pain-chip.is-danger,
.pipeline-pain-option.is-danger {
  --chip-bg: #fff1f2;
  --chip-border: #fecdd3;
  --chip-text: #9f1239;
}
.pipeline-pain-option-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.pipeline-generated-link {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: var(--muted);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
}
.pipeline-generated-link span {
  color: var(--muted);
  font-size: 12px;
}
.pipeline-generated-link strong,
.pipeline-generated-link a {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-weight: var(--font-weight-semibold);
}
.pipeline-step-actions {
  border-top: 1px solid var(--border-soft);
  padding-top: 10px;
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}
.pipeline-step-action-form {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}
.pipeline-step-action-form label {
  min-width: min(260px, 100%);
}
.pipeline-event-timeline article {
  min-height: 42px;
}
.email-template-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
.email-template-metrics article {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(15, 23, 42, .018);
  padding: 13px;
  display: grid;
  gap: 8px;
}
.email-template-metrics span {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: var(--font-weight-medium);
}
.email-template-metrics strong {
  color: var(--ink);
  font-size: 22px;
  font-weight: var(--font-weight-semibold);
  line-height: 1.1;
}
.email-trigger-queue-context {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(15, 23, 42, .018);
  padding: 14px;
  margin-bottom: 14px;
}
.email-trigger-queue-metrics {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin: 10px 0;
}
.email-trigger-queue-metrics a {
  min-width: 0;
  display: grid;
  gap: 8px;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  background: #fbfcfd;
  color: inherit;
  text-decoration: none;
  padding: 11px 12px;
}
.email-trigger-queue-metrics a:hover {
  border-color: #b8c7d3;
  box-shadow: 0 8px 20px rgba(15, 23, 42, .04);
}
.email-trigger-queue-metrics span {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-medium);
}
.email-trigger-queue-metrics strong {
  color: var(--ink);
  font-size: 22px;
  font-weight: var(--font-weight-semibold);
  line-height: 1.05;
}
.email-trigger-status-cell,
.email-trigger-subject-cell,
.email-trigger-context-cell {
  min-width: 0;
  display: grid;
  gap: 4px;
}
.email-trigger-status-cell small,
.email-trigger-subject-cell small,
.email-trigger-context-cell small {
  min-width: 0;
  color: var(--muted);
  font-size: var(--text-xs);
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.email-trigger-subject-cell strong,
.email-trigger-context-cell strong {
  min-width: 0;
  color: var(--ink);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.email-trigger-context-cell .button.micro {
  width: fit-content;
  min-height: 26px;
  padding: 4px 8px;
}
.email-trigger-review-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}
.email-trigger-review-list td {
  vertical-align: top;
}
.email-trigger-review-list td > small,
.email-trigger-review-list td > strong {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}
.email-trigger-review-list td > small {
  color: var(--muted);
  font-size: var(--text-xs);
  line-height: 1.25;
  margin-top: 3px;
}
.email-trigger-review-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 160px;
}
.email-trigger-review-actions form {
  margin: 0;
}
.work-queue-operational-summary {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(15, 23, 42, .018);
  padding: 14px;
  margin: 12px 0 14px;
}
.work-queue-health-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: 10px 0;
}
.work-queue-health-grid a {
  min-width: 0;
  display: grid;
  gap: 7px;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  background: #fbfcfd;
  color: inherit;
  text-decoration: none;
  padding: 11px 12px;
}
.work-queue-health-grid a:hover {
  border-color: #b8c7d3;
  box-shadow: 0 8px 20px rgba(15, 23, 42, .04);
}
.work-queue-health-grid span {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-medium);
}
.work-queue-health-grid strong {
  color: var(--ink);
  font-size: 22px;
  font-weight: var(--font-weight-semibold);
  line-height: 1.05;
}
.work-queue-health-grid small {
  color: var(--muted);
  font-size: var(--text-xs);
  line-height: 1.3;
}
.email-template-filter-panel label {
  min-width: 150px;
}
.email-template-editor-panel {
  margin-bottom: 14px;
}
.email-template-editor-form textarea {
  min-height: 220px;
  resize: vertical;
}
.email-template-library-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, .95fr);
  gap: 14px;
  align-items: start;
  margin-top: 14px;
}
.email-template-list-panel,
.email-template-preview-panel {
  min-width: 0;
  display: grid;
  gap: 10px;
}
.email-template-card {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--surface);
  padding: 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}
.email-template-card.is-selected {
  border-color: #b7d8c3;
  box-shadow: 0 8px 20px rgba(16, 48, 48, .06);
}
.email-template-card > a {
  min-width: 0;
  display: grid;
  gap: 4px;
  color: inherit;
  text-decoration: none;
}
.email-template-card span,
.email-template-preview span,
.email-template-installed-triggers > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: var(--font-weight-medium);
}
.email-template-card strong {
  color: var(--ink);
  font-size: var(--text-md);
  font-weight: var(--font-weight-medium);
}
.email-template-card small {
  color: #50616d;
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.email-template-preview {
  display: grid;
  gap: 8px;
  margin: 12px 0;
}
.email-template-preview strong {
  color: var(--ink);
  font-size: var(--text-md);
  font-weight: var(--font-weight-medium);
}
.email-template-preview p {
  max-height: 320px;
  overflow: auto;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  background: #fbfcfd;
  color: #334155;
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
  padding: 12px;
}
.email-template-internal-preview .muted {
  margin: 0 0 10px;
}
.email-template-preview-send-form {
  margin-bottom: 10px;
}
.email-template-preview-history {
  display: grid;
  gap: 8px;
}
.email-template-preview-history > strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: var(--font-weight-semibold);
}
.email-template-preview-history article {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 8px;
  align-items: center;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  background: #fbfcfd;
  padding: 10px 12px;
}
.email-template-preview-history article span,
.email-template-preview-history article small {
  min-width: 0;
  overflow-wrap: anywhere;
}
.email-template-preview-history article span {
  color: var(--muted);
  font-size: 12px;
}
.email-template-preview-history article small {
  grid-column: 1 / -1;
  color: #7f1d1d;
  font-size: 12px;
}
.email-template-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.email-template-trigger-form {
  margin-bottom: 12px;
}
.email-template-mapping-list {
  display: grid;
  gap: 8px;
}
.email-template-mapping-list article {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 10px;
  align-items: center;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  background: #fbfcfd;
  padding: 10px 12px;
}
.email-template-mapping-list article strong,
.email-template-mapping-list article span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.email-template-mapping-list article span {
  color: var(--muted);
  font-size: 12px;
}
.email-template-mapping-list article .smart-grid-badge {
  grid-row: 1 / span 2;
  grid-column: 2;
}
.email-trigger-group-list,
.email-template-installed-triggers {
  display: grid;
  gap: 10px;
}
.email-trigger-group {
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  background: #fbfcfd;
  overflow: hidden;
}
.email-trigger-group summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 12px;
}
.email-trigger-group summary::-webkit-details-marker {
  display: none;
}
.email-trigger-group summary strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: var(--font-weight-medium);
}
.email-trigger-group summary span {
  min-width: 26px;
  border-radius: 999px;
  background: #eef6f0;
  color: #14532d;
  font-size: 12px;
  font-weight: var(--font-weight-semibold);
  text-align: center;
  padding: 3px 7px;
}
.email-trigger-group dl {
  border-top: 1px solid var(--border-soft);
  display: grid;
  gap: 0;
  margin: 0;
}
.email-trigger-group dl div {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 10px;
  padding: 9px 12px;
}
.email-trigger-group dl div + div {
  border-top: 1px solid #edf2f5;
}
.email-trigger-group dt,
.email-trigger-group dd {
  min-width: 0;
  margin: 0;
  font-size: 13px;
}
.email-trigger-group dt {
  color: var(--ink);
  font-weight: var(--font-weight-medium);
}
.email-trigger-group dd {
  color: var(--muted);
  overflow-wrap: anywhere;
}
.record-summary-card,
.record-edit-panel,
.record-quick-comment,
.record-recent-activity,
.record-documents-rail {
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(15, 23, 42, .018);
  padding: 14px;
  min-width: 0;
}
.property-photo-panel {
  overflow: hidden;
  border-color: #cfe1d6;
  background:
    radial-gradient(circle at 18% 0%, rgba(96, 211, 109, .12), transparent 32%),
    linear-gradient(180deg, #fbfefc 0%, #ffffff 66%);
}
.property-photo-count {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 5px 9px;
  border: 1px solid #d7e4ea;
  border-radius: 999px;
  background: #f5f8fa;
  color: #34505c;
  font-size: 12px;
  font-weight: var(--font-weight-medium);
}
.property-photo-upload {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: stretch;
  margin-bottom: 14px;
}
.property-photo-dropzone {
  min-width: 0;
  min-height: 118px;
  width: 100%;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 5px;
  border: 1px dashed #b7d6c0;
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.92), rgba(241, 250, 244, .88)),
    #f8fbfc;
  color: var(--muted);
  padding: 16px;
  text-align: center;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease, transform .16s ease;
}
.property-photo-dropzone:hover,
.property-photo-dropzone.is-dragover,
.property-photo-upload.has-files .property-photo-dropzone {
  border-color: #5fcf70;
  background:
    linear-gradient(135deg, rgba(255,255,255,.96), rgba(232, 248, 237, .96)),
    #f0f9f2;
  box-shadow: inset 0 0 0 1px rgba(95, 207, 112, .18), 0 14px 32px rgba(20, 83, 45, .055);
}
.property-photo-dropzone.is-dragover {
  transform: translateY(-1px);
}
.property-photo-dropzone input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.property-photo-drop-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: #e8f8ed;
  color: #14713a;
}
.property-photo-dropzone strong {
  color: var(--ink);
  font-size: 15px;
  font-weight: var(--font-weight-medium);
}
.property-photo-dropzone small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}
.property-photo-dropzone em {
  margin-top: 3px;
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, .82);
  color: #34505c;
  font-size: 12px;
  font-style: normal;
  font-weight: var(--font-weight-medium);
  padding: 4px 10px;
}
.property-photo-upload .button {
  align-self: stretch;
  min-width: 132px;
  border-radius: 14px;
}
.property-photo-empty {
  min-height: 190px;
  display: grid;
  place-items: center;
  text-align: center;
  border: 1px dashed #bfdbc8;
  border-radius: 16px;
  background:
    radial-gradient(circle at 50% 0%, rgba(96, 211, 109, .13), transparent 40%),
    #f8fbfc;
  padding: 26px;
}
.property-photo-empty span {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #edf8f1;
  color: #1c7b42;
  margin-bottom: 6px;
}
.property-photo-empty strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: var(--font-weight-medium);
}
.property-photo-empty p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}
.property-photo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.property-photo-item {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #d7e4ea;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .02);
}
.property-photo-item.is-dragging {
  opacity: .65;
  outline: 2px solid color-mix(in srgb, var(--accent) 24%, transparent);
}
.property-photo-preview {
  appearance: none;
  width: 100%;
  aspect-ratio: 4 / 3;
  display: block;
  border: 0;
  background: #eef3f6;
  padding: 0;
  cursor: zoom-in;
}
.property-photo-preview img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.property-photo-meta {
  display: grid;
  gap: 2px;
  padding: 9px 10px 8px;
}
.property-photo-meta strong {
  color: var(--ink);
  font-size: 12px;
  font-weight: var(--font-weight-medium);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.property-photo-meta small {
  color: var(--muted);
  font-size: 11px;
}
.property-photo-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 8px 9px;
}
.property-photo-actions .icon-button {
  width: 31px;
  height: 31px;
  min-height: 31px;
  border-radius: 9px;
  background: #f8fafb;
}
.property-photo-actions .icon-button.danger {
  color: #b42318;
  border-color: #fecaca;
  background: #fff7f7;
}
.property-photo-delete-form {
  margin-left: auto;
}
.property-photo-drag {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: var(--muted);
  cursor: grab;
}
.property-photo-panel {
  overflow: hidden;
  padding: 0;
  border-color: #cfdde5;
  border-radius: 17px;
  background: #fff;
}
.maintenance-photo-panel {
  border-color: #d7e4ea;
  background: #fff;
}
.maintenance-photo-panel .property-photo-stage {
  aspect-ratio: 4 / 3;
}
.maintenance-photo-panel .property-photo-dropzone {
  min-height: 82px;
  border-radius: 0;
  border-width: 1px 0 0 0;
  border-color: #d7e4ea;
  background: #f8fafc;
}
.maintenance-photo-panel .property-photo-drop-icon {
  width: 34px;
  height: 34px;
  border-radius: 11px;
}
.maintenance-photo-strip {
  border-top: 1px solid var(--border-soft);
}
.maintenance-owner-flags {
  border-color: #fed7aa;
  background: linear-gradient(180deg, #fffaf3 0%, #fff 72%);
}
.maintenance-owner-flags .record-card-heading svg {
  color: #b45309;
}
.maintenance-ai-list.is-bill-list article span {
  color: #0f766e;
  font-weight: var(--font-weight-semibold);
}
.property-photo-stage {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 0;
  border-radius: 16px 16px 0 0;
  background: #e9eff2;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.35);
}
.property-photo-hero {
  appearance: none;
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  background: #e9eff2;
  padding: 0;
  cursor: zoom-in;
}
.property-photo-hero img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.property-photo-stage.is-empty {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 28%, rgba(255,255,255,.9), rgba(248,251,252,.64) 36%, rgba(233,239,242,.92) 100%),
    linear-gradient(135deg, #f8fbfc, #edf5ef);
}
.property-photo-stage.is-empty .property-photo-upload {
  position: absolute;
  inset: 0;
  margin: 0;
}
.property-photo-nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 50%;
  background: rgba(15, 23, 42, .54);
  color: #fff;
  box-shadow: 0 10px 24px rgba(15,23,42,.18);
  transform: translateY(-50%);
  backdrop-filter: blur(8px);
}
.property-photo-nav:hover {
  background: rgba(15, 23, 42, .72);
}
.property-photo-nav.is-prev {
  left: 14px;
}
.property-photo-nav.is-next {
  right: 14px;
}
.property-photo-stage-actions {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 4;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
}
.property-photo-upload {
  margin: 0;
}
.property-photo-upload.is-empty {
  display: block;
}
.property-photo-upload.is-compact {
  display: block;
  min-width: min(188px, calc(100vw - 92px));
}
.property-photo-upload.is-empty .property-photo-dropzone,
.property-photo-upload.is-compact .property-photo-dropzone {
  min-height: 0;
  border-radius: 0;
}
.property-photo-upload.is-empty .property-photo-dropzone {
  height: 100%;
  border: 1px dashed rgba(20, 83, 45, .22);
  background: transparent;
}
.property-photo-upload.is-compact .property-photo-dropzone {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid rgba(255,255,255,.82);
  border-radius: 4px;
  background: rgba(20, 26, 27, .72);
  color: #fff;
  box-shadow: 0 10px 30px rgba(15,23,42,.24);
  backdrop-filter: blur(10px);
  padding: 6px 9px;
}
.property-photo-upload.is-compact .property-photo-dropzone:hover,
.property-photo-upload.is-compact .property-photo-dropzone.is-dragover {
  background: rgba(20, 26, 27, .84);
  border-color: #fff;
  box-shadow: 0 14px 34px rgba(15,23,42,.3);
}
.property-photo-upload.is-compact .property-photo-drop-icon {
  width: auto;
  height: auto;
  border-radius: 0;
  background: transparent;
  color: currentColor;
}
.property-photo-upload.is-compact .property-photo-dropzone strong {
  color: currentColor;
  font-size: 11px;
  line-height: 1.1;
  white-space: nowrap;
}
.property-photo-upload.is-compact .property-photo-dropzone em,
.property-photo-upload.is-empty .property-photo-dropzone em {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 58px;
  min-height: 0;
  background: rgba(15,23,42,.72);
  color: #fff;
  padding: 6px 10px;
}
.property-photo-dropzone em:empty {
  display: none;
}
.property-photo-upload.is-empty .property-photo-dropzone {
  align-content: center;
}
.property-photo-upload.is-empty .property-photo-drop-icon {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  background: rgba(255,255,255,.82);
  box-shadow: 0 12px 30px rgba(20,83,45,.08);
}
.property-photo-upload.is-empty .property-photo-dropzone strong {
  font-size: 14px;
}
.property-photo-upload.is-empty .property-photo-dropzone small {
  font-size: 12px;
}
.property-photo-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 12px;
  scrollbar-width: thin;
  background: #fff;
}
.property-photo-item {
  position: relative;
  flex: 0 0 60px;
  width: 60px;
  height: 54px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  box-shadow: none;
  touch-action: pan-y;
}
.property-photo-item[draggable="true"] {
  cursor: grab;
}
.property-photo-item[draggable="true"]:active {
  cursor: grabbing;
}
.property-photo-item.active {
  border-color: #0f3030;
  box-shadow: 0 0 0 2px rgba(96, 211, 109, .28);
}
.property-photo-thumb {
  appearance: none;
  overflow: hidden;
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  border-radius: 7px;
  background: #e9eff2;
  padding: 0;
  cursor: pointer;
}
.property-photo-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.property-photo-actions {
  position: absolute;
  inset: auto 3px 3px 3px;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 2px;
  padding: 0;
  opacity: 0;
  transition: opacity .16s ease;
}
.property-photo-actions,
.property-photo-delete-form {
  display: none;
}
.property-photo-item:hover .property-photo-actions,
.property-photo-item:focus-within .property-photo-actions {
  opacity: 1;
}
.property-photo-actions .icon-button {
  width: 22px;
  height: 22px;
  min-height: 22px;
  border-radius: 6px;
  background: rgba(255,255,255,.92);
  color: #0f3030;
}
.property-photo-actions .icon-button.danger {
  color: #b42318;
  border-color: rgba(254,202,202,.86);
  background: rgba(255,247,247,.94);
}
.property-photo-drag {
  position: absolute;
  right: 4px;
  bottom: 4px;
  z-index: 2;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: rgba(15, 23, 42, .66);
  color: #fff;
  opacity: 0;
  pointer-events: none;
  transition: opacity .14s ease;
}
.property-photo-item:hover .property-photo-drag,
.property-photo-item:focus-within .property-photo-drag {
  opacity: 1;
}
.property-photo-save-row {
  display: flex;
  justify-content: flex-end;
  min-height: 22px;
  padding: 0 12px 10px;
  margin-top: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: var(--font-weight-medium);
}
.property-photo-save-row [data-state="saving"] {
  color: #7c4a03;
}
.property-photo-save-row [data-state="saved"] {
  color: #157a3f;
}
.property-photo-save-row [data-state="error"] {
  color: #b42318;
}
.property-photo-dialog {
  width: min(980px, calc(100vw - 28px));
  max-height: calc(100vh - 44px);
  border: 1px solid rgba(15, 23, 42, .12);
  border-radius: 16px;
  background: #0f172a;
  color: #fff;
  padding: 12px;
  box-shadow: 0 24px 80px rgba(15, 23, 42, .34);
}
.property-photo-dialog::backdrop {
  background: rgba(15, 23, 42, .58);
}
.property-photo-dialog img {
  width: 100%;
  max-height: calc(100vh - 150px);
  display: block;
  object-fit: contain;
  border-radius: 11px;
  background: #111827;
}
.property-photo-dialog strong {
  display: block;
  font-size: 13px;
  font-weight: var(--font-weight-medium);
  color: rgba(255, 255, 255, .86);
}
.property-photo-dialog-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
}
.property-photo-dialog-delete {
  margin: 0;
  flex: 0 0 auto;
}
.property-photo-dialog-delete .button.danger {
  color: #fff;
  border-color: rgba(248, 113, 113, .46);
  background: #b42318;
}
.property-photo-dialog-close {
  position: absolute;
  top: 18px;
  right: 18px;
  color: #fff;
  border-color: rgba(255,255,255,.24);
  background: rgba(15, 23, 42, .72);
}
.property-photo-dialog-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.32);
  border-radius: 999px;
  background: rgba(15, 23, 42, .62);
  color: #fff;
  cursor: pointer;
  transform: translateY(-50%);
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}
.property-photo-dialog-nav:hover,
.property-photo-dialog-nav:focus-visible {
  border-color: rgba(255,255,255,.56);
  background: rgba(15, 23, 42, .82);
  transform: translateY(-50%) scale(1.03);
}
.property-photo-dialog-nav.is-prev {
  left: 22px;
}
.property-photo-dialog-nav.is-next {
  right: 22px;
}
.property-map-panel {
  overflow: hidden;
}
.property-map-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: var(--font-weight-medium);
  text-decoration: none;
}
.property-map-link:hover {
  color: var(--accent);
}
.property-map-canvas {
  overflow: hidden;
  width: 100%;
  height: 220px;
  border: 1px solid #d9e4e8;
  border-radius: 12px;
  background: #edf3f4;
}
.property-map-canvas .leaflet-control-attribution {
  font-family: var(--font-sans);
  font-size: 10px;
}
.property-map-status {
  min-height: 16px;
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 11px;
}
.property-local-intelligence,
.maintenance-external-context,
.tenant-local-alerts-panel {
  border-color: #dbe7df;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdfc 100%);
}
.local-intelligence-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
  margin-top: 12px;
}
.local-intelligence-grid div {
  min-width: 0;
  border-bottom: 1px solid #edf2ef;
  padding: 0 0 9px;
}
.local-intelligence-grid span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: var(--font-weight-medium);
}
.local-intelligence-grid strong {
  display: block;
  color: var(--ink);
  font-size: 14px;
  font-weight: var(--font-weight-medium);
  line-height: 1.35;
}
.local-intelligence-grid small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}
.local-alert-list {
  margin-top: 12px;
}
.property-local-updated {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 12px;
}
.tenant-local-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  gap: 16px;
}
.tenant-local-layout > .tenant-local-alerts-panel {
  grid-column: 1 / -1;
}
.tenant-property-map {
  min-height: 300px;
}
.property-intelligence-settings table td {
  vertical-align: middle;
}
.property-ai-inline {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  border: 1px solid #dbe6df;
  border-radius: 12px;
  background: linear-gradient(135deg, #fbfefc, #f5fbf7);
  padding: 10px 12px;
}
.property-ai-inline-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 10px;
  background: #e8f8ed;
  color: #157a3f;
}
.property-ai-inline div {
  min-width: 0;
  display: grid;
  gap: 1px;
  flex: 1 1 auto;
}
.property-ai-inline strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: var(--font-weight-medium);
}
.property-ai-inline span {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.property-feature-panel {
  border-color: #c9ead2;
  background: linear-gradient(180deg, #fbfffc 0%, #ffffff 58%);
}
.property-location-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  border: 1px solid #c9ead2;
  border-radius: 999px;
  background: #eefaf2;
  color: #176438;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: var(--font-weight-medium);
  white-space: nowrap;
}
.property-feature-form {
  display: grid;
  gap: 12px;
}
.property-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.property-feature-tile {
  position: relative;
  min-width: 0;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  border: 1px solid #dbe4ea;
  border-radius: 14px;
  background: #fbfdfe;
  padding: 10px;
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(15, 23, 42, .018);
}
.property-feature-tile.tone-success {
  border-color: #bfe6cc;
  background: #f0fbf4;
}
.property-feature-tile.tone-warning {
  border-color: #f2d28b;
  background: #fffaf0;
}
.property-feature-tile.tone-danger,
.property-feature-tile.tone-missing {
  border-color: #fecaca;
  background: #fff7f7;
}
.property-feature-tile.tone-info {
  border-color: #cfe0f7;
  background: #f4f9ff;
}
.property-feature-icon {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: #ffffff;
  color: var(--sidebar-item-active-text);
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .04);
}
.property-feature-tile.tone-success .property-feature-icon { color: #1c7b42; }
.property-feature-tile.tone-warning .property-feature-icon { color: #9b6500; }
.property-feature-tile.tone-danger .property-feature-icon,
.property-feature-tile.tone-missing .property-feature-icon { color: #b91c1c; }
.property-feature-tile.tone-info .property-feature-icon { color: #0b63ce; }
.property-feature-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}
.property-feature-copy small {
  color: var(--muted);
  font-size: 11px;
  font-weight: var(--font-weight-medium);
  line-height: 1.2;
}
.property-feature-copy strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: var(--font-weight-medium);
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.property-feature-copy input,
.property-feature-copy select {
  width: 100%;
  min-height: 34px;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 10px;
  background: rgba(255, 255, 255, .82);
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  font-weight: var(--font-weight-medium);
  padding: 6px 9px;
}
.property-feature-copy input:focus,
.property-feature-copy select:focus {
  outline: 2px solid color-mix(in srgb, var(--accent) 25%, transparent);
  border-color: color-mix(in srgb, var(--accent) 36%, var(--border));
  background: #fff;
}
.property-feature-value {
  display: grid;
  grid-template-columns: minmax(54px, 72px) auto;
  gap: 7px;
  align-items: center;
}
.property-feature-value input {
  font-size: 20px;
  line-height: 1;
  text-align: center;
}
.property-feature-value em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: var(--font-weight-medium);
}
.property-feature-actions {
  display: flex;
  justify-content: flex-end;
}
.property-people-card {
  border-color: #dbe4ea;
}
.record-card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.record-card-heading p {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: var(--font-weight-medium);
  letter-spacing: .035em;
  text-transform: uppercase;
}
.record-card-heading h3 {
  margin: 0;
  color: var(--ink);
  font-size: var(--text-md);
  font-weight: var(--font-weight-medium);
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.record-card-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 5px 9px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: #fbfcfd;
  color: var(--ink);
  font-size: 12px;
  font-weight: var(--font-weight-medium);
  white-space: nowrap;
}
.record-summary-subtitle {
  margin: -3px 0 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}
.record-summary-fields {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 12px;
}
.record-summary-fields div {
  min-width: 0;
}
.record-summary-fields dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: var(--font-weight-medium);
  margin-bottom: 3px;
}
.record-summary-fields dd {
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: var(--font-weight-medium);
  overflow-wrap: anywhere;
}
.record-summary-empty {
  grid-column: 1 / -1;
}
.record-attention-card {
  background: #fffdf8;
  border-color: #f2d28b;
}
.record-attention-card.has-warnings {
  background: #fff7ed;
  border-color: #fdba74;
  box-shadow: 0 8px 22px rgba(194, 65, 12, .07);
}
.record-attention-card.is-clear {
  background: #f4fbf6;
  border-color: #bfe6cc;
}
.record-attention-card .record-calm-state {
  background: #f6fff9;
  border-color: #c7ebd4;
}
.record-workflow-summary {
  background: #fffdf7;
  border-color: #f3ca79;
}
.record-action-stack {
  display: grid;
  gap: 8px;
}
.record-action-stack span {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--ink);
  font-size: 13px;
  font-weight: var(--font-weight-medium);
}
.record-calm-state {
  display: grid;
  gap: 4px;
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  background: #fbfcfd;
  padding: 11px;
}
.record-calm-state strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: var(--font-weight-medium);
}
.record-calm-state span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}
.smart-grid-create-income-preview {
  grid-column: 1 / -1;
}
.record-calm-state.warn {
  border-color: #f0d7a4;
  background: #fffbf0;
}
.record-calm-state.warn strong {
  color: #8a4d05;
}
.record-calm-state.success {
  border-color: #bde5cb;
  background: #f1fbf5;
}
.record-calm-state.success strong {
  color: #146c37;
}
.record-calm-state.danger {
  border-color: #fecaca;
  background: #fff1f2;
}
.record-calm-state.danger strong {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #b91c1c;
}
.record-calm-state.danger .button {
  justify-self: start;
  margin-top: 6px;
}
.invoice-inbound-panel .panel-body {
  display: grid;
  gap: 16px;
}
.invoice-inbound-header h3 {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.invoice-inbound-address-list {
  display: grid;
  gap: 12px;
}
.invoice-inbound-address-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfd 100%);
}
.invoice-inbound-address-main {
  min-width: 0;
  display: grid;
  gap: 4px;
}
.invoice-inbound-address-main span,
.invoice-inbound-status-grid span,
.invoice-inbound-route-note span {
  color: var(--muted);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-medium);
}
.invoice-inbound-address-main strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: var(--text-lg);
  font-weight: var(--font-weight-medium);
}
.invoice-inbound-address-main small,
.invoice-inbound-route-note small {
  color: var(--muted);
  font-size: var(--text-xs);
  line-height: 1.45;
}
.invoice-inbound-status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.invoice-inbound-status-grid > div {
  min-width: 0;
  display: grid;
  gap: 6px;
  align-content: start;
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
}
.invoice-inbound-status-grid strong {
  color: var(--ink);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
}
.invoice-inbound-route-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid #dbe7ee;
  border-radius: 14px;
  background: #f8fbfc;
}
.invoice-inbound-route-note > div {
  min-width: 0;
  display: grid;
  gap: 3px;
}
.invoice-inbound-route-note strong {
  color: var(--ink);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
}
.invoice-inbound-route-note span {
  overflow-wrap: anywhere;
}
.icon-button.micro {
  width: 22px;
  height: 22px;
  min-width: 22px;
  min-height: 22px;
  border-radius: 999px;
  vertical-align: middle;
}
@media (max-width: 720px) {
  .invoice-inbound-address-card,
  .invoice-inbound-route-note {
    align-items: stretch;
    flex-direction: column;
  }
  .invoice-inbound-status-grid {
    grid-template-columns: 1fr;
  }
}
.qbcc-panel .panel-head h3 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.qbcc-status-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  background: #fbfcfd;
}
.qbcc-status-card.success {
  border-color: rgba(29, 128, 82, .22);
  background: #f2fbf6;
}
.qbcc-status-card.warn {
  border-color: rgba(180, 103, 0, .25);
  background: #fff9ec;
}
.qbcc-status-card.danger {
  border-color: rgba(189, 48, 48, .25);
  background: #fff5f5;
}
.qbcc-status-card span,
.qbcc-detail-grid span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: var(--font-weight-medium);
}
.qbcc-status-card strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-size: 14px;
  font-weight: var(--font-weight-medium);
  line-height: 1.35;
}
.qbcc-status-card small,
.qbcc-disclaimer {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}
.qbcc-detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-top: 12px;
  border-top: 1px solid var(--border-soft);
}
.qbcc-detail-grid > div {
  display: grid;
  grid-template-columns: minmax(120px, .36fr) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-soft);
  background: transparent;
}
.qbcc-detail-grid strong {
  display: block;
  color: var(--ink);
  font-size: 13px;
  font-weight: var(--font-weight-medium);
  line-height: 1.4;
}
.qbcc-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 13px;
}
.qbcc-actions form {
  margin: 0;
}
.qbcc-review-form {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.qbcc-review-form input {
  min-height: 36px;
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 8px 10px;
}
.qbcc-risk-alert {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  margin: 14px 0;
  padding: 14px 15px;
  border: 1px solid rgba(189, 48, 48, .28);
  border-radius: 12px;
  background: #fff5f5;
  color: #7f1d1d;
}
.qbcc-risk-alert.warn {
  border-color: rgba(180, 103, 0, .28);
  background: #fff9ec;
  color: #7a4300;
}
.qbcc-risk-alert.info,
.qbcc-risk-alert.muted {
  border-color: var(--border-soft);
  background: #fbfcfd;
  color: var(--ink);
}
.qbcc-risk-alert-icon {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(189, 48, 48, .1);
  flex: 0 0 auto;
}
.qbcc-risk-alert.warn .qbcc-risk-alert-icon {
  background: rgba(180, 103, 0, .12);
}
.qbcc-risk-alert > div:first-of-type {
  min-width: 0;
  flex: 1;
}
.qbcc-risk-alert strong {
  display: block;
  color: inherit;
  font-size: 14px;
  font-weight: var(--font-weight-semibold);
}
.qbcc-risk-alert p {
  margin: 4px 0 0;
  color: inherit;
  font-size: 13px;
  line-height: 1.45;
}
.qbcc-risk-alert small {
  display: block;
  margin-top: 6px;
  color: rgba(69, 26, 3, .78);
  font-size: 12px;
  line-height: 1.4;
}
.qbcc-risk-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.qbcc-risk-dialog {
  width: min(560px, calc(100vw - 28px));
  border: 0;
  border-radius: 16px;
  padding: 0;
  box-shadow: 0 24px 70px rgba(15, 23, 42, .28);
}
.qbcc-risk-dialog::backdrop {
  background: rgba(15, 23, 42, .45);
}
.qbcc-risk-dialog-content {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  padding: 15px;
  border: 1px solid rgba(189, 48, 48, .2);
  border-radius: 12px;
  background: #fff5f5;
  color: #7f1d1d;
}
.qbcc-risk-dialog-content p {
  margin: 0;
  color: inherit;
  font-size: 14px;
  line-height: 1.45;
}
.qbcc-risk-dialog-content small {
  grid-column: 2;
  color: rgba(127, 29, 29, .75);
  font-size: 12px;
}
.qbcc-match-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}
.qbcc-match-list h4 {
  margin: 0;
  font-size: 13px;
  font-weight: var(--font-weight-medium);
  color: var(--ink);
}
.qbcc-match-list article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 11px;
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  background: #fff;
}
.qbcc-match-list strong,
.qbcc-match-list span {
  display: block;
}
.qbcc-match-list strong {
  font-size: 13px;
  font-weight: var(--font-weight-medium);
  color: var(--ink);
}
.qbcc-match-list span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}
.qbcc-affected-jobs {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding: 12px;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  background: #fff;
}
.qbcc-affected-jobs.is-risky {
  border-color: rgba(189, 48, 48, .22);
  background: #fffafa;
}
.qbcc-affected-jobs .panel-head {
  padding: 0;
  border: 0;
}
.record-edit-form {
  display: grid;
  gap: 14px;
}
.record-edit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px 12px;
}
.record-edit-field {
  display: grid;
  gap: 6px;
  min-width: 0;
}
.record-edit-field span {
  color: #30424b;
  font-size: 11px;
  font-weight: var(--font-weight-medium);
  line-height: 1.2;
}
.record-label-with-info {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: fit-content;
  max-width: 100%;
}
.record-label-with-info > span:first-child {
  min-width: 0;
}
.record-info-tooltip {
  position: relative;
  width: 16px;
  height: 16px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 999px;
  color: #64748b;
  cursor: help;
}
.record-info-tooltip:hover,
.record-info-tooltip:focus {
  color: #0f3030;
  outline: none;
}
.record-info-tooltip [role="tooltip"] {
  pointer-events: none;
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  z-index: 40;
  width: max-content;
  max-width: 240px;
  transform: translateX(-50%) translateY(3px);
  border-radius: 9px;
  background: #111827;
  color: #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, .2);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.35;
  padding: 7px 9px;
  opacity: 0;
  transition: opacity .14s ease, transform .14s ease;
}
.record-info-tooltip:hover [role="tooltip"],
.record-info-tooltip:focus [role="tooltip"] {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.record-edit-field input,
.record-edit-field select,
.record-edit-field textarea {
  width: 100%;
  min-height: 38px;
  border-radius: 9px;
  border: 1px solid #d6e0e6;
  background: #fbfdfe;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  padding: 8px 11px;
  box-shadow: inset 0 1px 1px rgba(15, 23, 42, .015);
}
.record-creatable-select,
.smart-grid-creatable-select {
  display: grid;
  gap: 7px;
}
.record-creatable-select select,
.record-creatable-select input,
.smart-grid-creatable-select select,
.smart-grid-creatable-select input {
  width: 100%;
}
.new-business-record-panel .pipeline-proposal-builder {
  margin-bottom: 14px;
}
.record-edit-field.tone-success input,
.record-edit-field.tone-success select {
  border-color: #bfe6cc;
  background: #f3fbf6;
  color: #14532d;
}
.record-edit-field.tone-warning input,
.record-edit-field.tone-warning select {
  border-color: #f2d28b;
  background: #fffaf0;
  color: #7c2d12;
}
.record-edit-field.tone-danger input,
.record-edit-field.tone-danger select,
.record-edit-field.tone-missing input,
.record-edit-field.tone-missing select {
  border-color: #fecaca;
  background: #fff7f7;
  color: #7f1d1d;
}
.record-edit-field.tone-info input,
.record-edit-field.tone-info select {
  border-color: #cfe0f7;
  background: #f4f9ff;
  color: #0b3b75;
}
.record-edit-field select.is-empty,
.record-edit-field.tone-missing select.is-empty {
  border-color: #d6e0e6;
  background: #f6f7f8;
  color: #7b8794;
}
.record-edit-field input:hover,
.record-edit-field select:hover,
.record-edit-field textarea:hover {
  border-color: #c5d3dc;
  background: #fff;
}
.record-edit-field textarea {
  min-height: 82px;
  resize: vertical;
}
.record-edit-field.is-full-width,
.record-edit-field:has(textarea) {
  grid-column: 1 / -1;
}
.record-edit-field.is-compact-textarea-field textarea {
  min-height: 88px;
}
.record-edit-field.is-two-line-textarea-field textarea {
  min-height: 62px;
}
.record-edit-field.is-renewal-select-field select {
  font-weight: var(--font-weight-medium);
}
.record-edit-field.is-renewal-select-tenant-intention select {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #1e3a8a;
}
.record-edit-field.is-renewal-select-renewal-instructions select {
  border-color: #fed7aa;
  background: #fff7ed;
  color: #9a3412;
}
.record-edit-field.is-renewal-select-offered-renewal-term select {
  border-color: #ddd6fe;
  background: #f5f3ff;
  color: #5b21b6;
}
.record-edit-field.is-renewal-select-renewal-outcome select {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #166534;
}
.record-edit-field.is-yes-no-status-field select,
.record-edit-field.is-yes-no-status-field select:has(option[value="No"]:checked) {
  border-color: #fecaca;
  background: #fff7f7;
  color: #991b1b;
  font-weight: var(--font-weight-medium);
}
.record-edit-field.is-yes-no-status-field select:has(option[value="Yes"]:checked) {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #166534;
}
.record-edit-field.is-hidden,
.record-edit-field[hidden] {
  display: none;
}
.record-edit-field input:focus,
.record-edit-field select:focus,
.record-edit-field textarea:focus {
  outline: 2px solid color-mix(in srgb, var(--accent) 25%, transparent);
  border-color: color-mix(in srgb, var(--accent) 35%, var(--border));
  background: #fff;
}
.record-star-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  border-radius: 9px;
  border: 1px solid #d6e0e6;
  background: #fbfdfe;
  padding: 6px 9px;
}
.record-star-rating input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.record-star-rating label {
  cursor: pointer;
  color: #cbd5e1;
  font-size: 19px;
  line-height: 1;
  transition: color .14s ease, transform .14s ease;
}
.record-star-rating label:hover {
  transform: translateY(-1px);
}
.record-star-rating[data-rating="1"] label[data-rating="1"],
.record-star-rating[data-rating="2"] label[data-rating="1"],
.record-star-rating[data-rating="2"] label[data-rating="2"],
.record-star-rating[data-rating="3"] label[data-rating="1"],
.record-star-rating[data-rating="3"] label[data-rating="2"],
.record-star-rating[data-rating="3"] label[data-rating="3"],
.record-star-rating[data-rating="4"] label[data-rating="1"],
.record-star-rating[data-rating="4"] label[data-rating="2"],
.record-star-rating[data-rating="4"] label[data-rating="3"],
.record-star-rating[data-rating="4"] label[data-rating="4"],
.record-star-rating[data-rating="5"] label {
  color: #f59e0b;
}
.record-star-rating input:focus-visible + label {
  outline: 2px solid color-mix(in srgb, var(--accent) 35%, transparent);
  outline-offset: 3px;
  border-radius: 5px;
}
.record-star-rating input:disabled + label {
  cursor: not-allowed;
}
.record-star-rating-empty {
  margin-left: auto;
  color: var(--muted);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-medium);
}
.record-edit-extra {
  border: 1px solid #dbe4ea;
  border-radius: 11px;
  background: #f8fafb;
  padding: 11px;
}
.record-edit-extra summary {
  cursor: pointer;
  color: var(--ink);
  font-size: 13px;
  font-weight: var(--font-weight-medium);
}
.record-edit-extra .record-edit-grid {
  margin-top: 10px;
}
.record-edit-actions {
  display: flex;
  justify-content: flex-end;
}
.record-autosave-status {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: var(--font-weight-medium);
}
.record-autosave-status[data-state="saving"] {
  color: #7c4a03;
}
.record-autosave-status[data-state="saved"] {
  color: #157a3f;
}
.record-autosave-status[data-state="error"] {
  color: #b42318;
}
.record-rail-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid #dce4ea;
  border-radius: 14px;
  background: linear-gradient(180deg, #f8fafc 0%, #eef3f6 100%);
  padding: 5px;
  gap: 4px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .74);
}
.record-rail-tabs a,
.record-rail-tabs span,
.record-rail-tabs button {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 10px;
  border: 0;
  background: transparent;
  color: #5b6874;
  cursor: pointer;
  font-size: 12px;
  font-weight: var(--font-weight-medium);
  font-family: inherit;
  white-space: nowrap;
}
.record-rail-tabs a.active,
.record-rail-tabs span.active,
.record-rail-tabs button.active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 8px 18px rgba(15, 23, 42, .07), 0 1px 2px rgba(15, 23, 42, .04);
}
.record-rail-tabs button > span {
  min-height: auto;
  display: inline;
  color: inherit;
  font-size: inherit;
}
.record-rail-tabs button b,
.record-rail-count {
  min-width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #e7edf2;
  color: #334155;
  font-size: 11px;
  font-weight: var(--font-weight-semibold);
  line-height: 1;
  padding: 0 7px;
}
.record-rail-tabs button.active b {
  background: #103030;
  color: #fff;
}
.record-rail-count {
  background: #f1f5f9;
  border: 1px solid #d8e2ea;
}
.record-rail-tabs button:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--accent) 25%, transparent);
  outline-offset: 2px;
}
.record-rail-panel {
  display: grid;
  gap: 0;
}
.record-rail-panel[hidden] {
  display: none;
}
.record-inline-comment {
  display: grid;
  gap: 12px;
}
.record-quick-comment {
  border: 0;
  border-bottom: 1px solid var(--border-soft);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 2px 0 18px;
}
.record-quick-comment .record-card-heading {
  margin-bottom: 12px;
}
.record-recent-comments {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 18px 0 0;
  min-width: 0;
}
.record-recent-activity,
.record-documents-rail {
  border-color: #dfe7ee;
  border-radius: 15px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfd 100%);
  box-shadow: 0 10px 26px rgba(15, 23, 42, .035);
}
.record-note-editor-shell {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 9px;
  border: 1px solid #d9e2e8;
  border-radius: 12px;
  background: #fff;
  padding: 9px;
  box-shadow: inset 0 1px 1px rgba(15, 23, 42, .012);
}
.record-note-editor-icon {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: #f2f7f6;
  color: #103030;
}
.record-inline-comment textarea {
  min-height: 112px;
  resize: vertical;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 5px 0 0;
  line-height: 1.45;
}
.record-inline-comment .button {
  justify-self: stretch;
  min-height: 40px;
  justify-content: center;
}
.record-comment-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}
.comment-topic-field {
  display: grid;
  gap: 5px;
}
.comment-topic-field span,
.comment-topic-menu-form label span {
  color: var(--muted);
  font-size: 11px;
  font-weight: var(--font-weight-medium);
}
.comment-topic-field input,
.comment-topic-field select,
.comment-topic-menu-form input,
.comment-topic-menu-form select {
  width: 100%;
  min-height: 34px;
  border: 1px solid #d6e0e6;
  border-radius: 9px;
  background: #fbfdfe;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  padding: 7px 10px;
}
.record-comment-stream {
  gap: 0;
  border-top: 1px solid var(--border-soft);
}
.comment.record-comment-card {
  position: relative;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--border-soft);
  border-radius: 0;
  padding: 15px 0;
  box-shadow: none;
}
.record-comment-card.is-pinned {
  border-left: 3px solid #d8b94a;
  background: #fffdf3;
  padding-left: 12px;
  box-shadow: none;
}
.comment-card-shell {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 11px;
  align-items: start;
}
.comment-author-avatar {
  width: 32px;
  height: 32px;
  font-size: 0;
  box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--border-soft);
}
.comment-card-main {
  min-width: 0;
  display: grid;
  gap: 7px;
}
.comment-card-main header {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: flex-start;
}
.comment-card-meta {
  min-width: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px 8px;
}
.comment-card-meta strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: var(--font-weight-semibold);
  line-height: 1.3;
}
.comment-card-meta span,
.record-mini-timeline time {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}
.comment-card-meta span:not(:first-of-type)::before {
  content: "·";
  margin-right: 8px;
  color: #a3adb7;
}
.comment-card-body {
  color: var(--ink);
  font-size: 13.5px;
  line-height: 1.58;
  word-break: break-word;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
}
.comment-card-body p,
.comment-card-body {
  margin: 0;
}
.comment-edit-form {
  display: grid;
  gap: 9px;
  margin-top: 2px;
}
.comment-edit-form[hidden] {
  display: none;
}
.comment-edit-form textarea {
  width: 100%;
  min-height: 104px;
  resize: vertical;
  border: 1px solid #d7e1e8;
  border-radius: 12px;
  background: #fbfdfe;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  line-height: 1.48;
  padding: 10px 11px;
  outline: 0;
}
.comment-edit-form textarea:focus {
  border-color: rgba(16, 48, 48, .3);
  box-shadow: 0 0 0 3px rgba(16, 48, 48, .08);
  background: #fff;
}
.comment-edit-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  align-items: center;
}
.comment-edit-actions .button {
  min-height: 34px;
}
.comment-menu {
  position: relative;
  flex: 0 0 auto;
}
.comment-card-actions {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
}
.comment-menu summary {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid #d5dee6;
  border-radius: 999px;
  background: #f8fafb;
  color: #374151;
  cursor: pointer;
  list-style: none;
}
.comment-menu summary::-webkit-details-marker {
  display: none;
}
.comment-menu[open] summary {
  color: #111827;
  border-color: #94a3b8;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(15, 23, 42, .07);
}
.comment-menu-panel {
  position: absolute;
  right: 0;
  top: 36px;
  z-index: 50;
  width: min(260px, 78vw);
  display: grid;
  gap: 6px;
  border: 1px solid #d9e1e7;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 46px rgba(15,23,42,.17);
  padding: 8px;
}
.comment-menu-panel a,
.comment-menu-panel button {
  width: 100%;
  min-height: 34px;
  display: flex;
  align-items: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  text-align: left;
  text-decoration: none;
  padding: 7px 9px;
  cursor: pointer;
  gap: 8px;
}
.comment-menu-panel a:hover,
.comment-menu-panel button:hover {
  background: #f5f8fa;
}
.comment-menu-panel button.danger {
  color: #b42318;
}
.comment-topic-menu-form {
  display: grid;
  gap: 6px;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  padding: 7px 0;
}
.comment-pin-chip,
.comment-topic-chip {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid #cfe0f7;
  border-radius: 999px;
  background: #f4f9ff;
  color: #0b3b75;
  font-size: 11px;
  font-weight: var(--font-weight-medium);
  padding: 3px 8px;
  margin-top: 0;
}
.comment-pin-chip {
  border-color: #f2d36c;
  background: #fff6c7;
  color: #8a5a00;
}
.record-mini-timeline {
  display: grid;
  gap: 0;
  position: relative;
}
.record-mini-timeline article {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 9px;
  padding: 0 0 14px;
}
.record-mini-timeline article:last-child {
  padding-bottom: 0;
}
.record-mini-timeline article i {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #103030;
  box-shadow: 0 0 0 4px rgba(16, 48, 48, .08);
  margin: 5px auto 0;
  position: relative;
}
.record-mini-timeline article:not(:last-child) i::after {
  content: "";
  position: absolute;
  top: 13px;
  left: 4px;
  width: 1px;
  height: calc(100% + 14px);
  background: #d9e2e9;
}
.record-mini-timeline strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: var(--font-weight-semibold);
  line-height: 1.35;
  margin-top: 3px;
}
.record-mini-timeline span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}
.record-document-list {
  display: grid;
  gap: 9px;
}
.record-document-list.is-panel {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  align-items: start;
}
.record-document-upload {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
  border: 1px solid #dbe4ea;
  border-radius: 14px;
  background: linear-gradient(180deg, #fbfcfd 0%, #f5f8fa 100%);
  padding: 11px;
  margin-bottom: 11px;
}
.record-document-upload:has(.record-document-type) {
  grid-template-columns: minmax(135px, 0.42fr) minmax(0, 1fr) auto;
}
.record-document-upload label {
  display: grid;
  gap: 7px;
  min-width: 0;
}
.record-document-upload label span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #30424b;
  font-size: 12px;
  font-weight: var(--font-weight-medium);
}
.record-document-upload input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  clip-path: inset(50%);
}
.record-document-upload .button {
  min-height: 38px;
}
.record-document-upload .record-document-type select {
  width: 100%;
  min-height: 40px;
  border: 1px solid #d4dde3;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  padding: 0 10px;
}
.tenancy-dispute-case-documents {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #e5ecef;
}
.tenancy-dispute-case-documents header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.tenancy-dispute-case-documents header p {
  margin: 0 0 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: var(--font-weight-semibold);
  letter-spacing: .05em;
  text-transform: uppercase;
}
.tenancy-dispute-case-documents header strong {
  display: block;
  color: var(--ink);
  font-size: 14px;
  font-weight: var(--font-weight-semibold);
}
.tenancy-dispute-document-upload {
  margin-bottom: 0;
}
.tenancy-dispute-drop-upload {
  min-height: 54px;
}
.record-input-with-unit {
  position: relative;
  display: block;
}
.record-input-with-unit input {
  width: 100%;
  padding-right: 48px;
}
.record-input-with-unit em {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  pointer-events: none;
}
.record-input-with-unit.is-currency input {
  padding-left: 30px;
  padding-right: 10px;
}
.record-input-with-unit.is-currency em {
  left: 12px;
  right: auto;
}
.pretty-file-upload {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  min-height: 40px;
  border: 1px dashed #cdd8df;
  border-radius: 11px;
  background: #fff;
  padding: 6px;
  cursor: pointer;
}
.pretty-file-upload input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.pretty-file-upload:hover,
.pretty-file-upload:focus-within {
  border-color: #91a6b0;
  background: #fbfcfd;
}
.pretty-file-button {
  min-height: 30px;
  border-radius: 8px;
  background: linear-gradient(180deg, #4b5563 0%, #374151 100%);
  border: 1px solid #374151;
  color: #ffffff !important;
  padding: 7px 11px;
  white-space: nowrap;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 13px !important;
  font-weight: var(--font-weight-medium) !important;
  line-height: 1.1;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .12);
}
.pretty-file-button:hover {
  background: linear-gradient(180deg, #374151 0%, #1f2937 100%);
  border-color: #1f2937;
  color: #ffffff !important;
}
.pretty-file-button .app-icon {
  color: #ffffff !important;
  stroke: #ffffff;
  flex: 0 0 auto;
}
.pretty-file-upload em {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}
.smart-grid-field-help {
  margin-top: 2px;
  color: var(--muted);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-regular);
  line-height: 1.45;
}
.smart-grid-upload-field {
  width: 100%;
}
.rail-search-field {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  min-height: 38px;
  border: 1px solid #d6e0e6;
  border-radius: 10px;
  background: #fff;
  color: var(--muted);
  padding: 0 10px;
  margin: 0 0 10px;
}
.rail-search-field input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  padding: 8px 0;
}
.rail-search-field input::placeholder {
  color: #8b99a5;
}
[data-rail-search-item][hidden],
[data-rail-search-empty][hidden] {
  display: none !important;
}
.record-calm-state.rail-search-empty[hidden] {
  display: none !important;
}
.rail-search-empty {
  padding: 9px 10px;
  border-style: dashed;
  background: #fbfcfd;
}
.rail-search-empty strong {
  color: #667085;
  font-size: 12px;
  font-weight: var(--font-weight-medium);
}
.panel-head-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}
.button.small {
  min-height: 30px;
  border-radius: 8px;
  font-size: 12px;
  padding: 5px 9px;
}
.input-action-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}
.input-action-row .button {
  white-space: nowrap;
}
.modal-search-field {
  min-width: 0;
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background:
    linear-gradient(180deg, #ffffff 0%, #fbfcfd 100%);
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 12px;
  box-shadow: 0 1px 0 rgba(17, 24, 39, .02);
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
.smart-grid-bulk-form label .modal-search-field,
.abn-lookup-field .modal-search-field,
.address-lookup-field .modal-search-field {
  color: var(--muted);
  font-size: var(--text-base);
  font-weight: var(--font-weight-regular);
}
.modal-search-field svg {
  flex: 0 0 auto;
  color: var(--text-faint);
}
.modal-search-field input,
.smart-grid-bulk-form .modal-search-field input,
.abn-lookup-field .modal-search-field input,
.address-lookup-field .modal-search-field input {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  height: 42px;
  border: 0;
  border-radius: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  padding: 0;
  box-shadow: none;
}
.modal-search-field input::placeholder {
  color: #9aa4b2;
}
.modal-search-field:focus-within {
  border-color: rgba(96, 208, 112, .72);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(96, 208, 112, .16), 0 1px 0 rgba(17, 24, 39, .02);
}
.modal-search-field:focus-within svg {
  color: var(--sidebar-item-active-text);
}
.modal-search-action-row {
  align-items: stretch;
}
.modal-search-action-row .button {
  min-height: 44px;
  border-radius: 12px;
  padding: 0 14px;
}
.abn-search-results,
.address-search-results {
  display: grid;
  gap: 7px;
  position: relative;
  z-index: 8;
  margin-top: 7px;
}
.abn-search-message,
.address-search-message,
.abn-result,
.address-result {
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  background: linear-gradient(180deg, #fff 0%, #f7f8fa 100%);
  color: var(--ink);
  padding: 9px 10px;
}
.abn-search-message,
.address-search-message {
  color: var(--muted);
  font-size: 13px;
}
.abn-result,
.address-result {
  display: grid;
  gap: 3px;
  text-align: left;
  cursor: pointer;
}
.abn-result:hover,
.address-result:hover {
  border-color: rgba(16, 48, 48, .22);
  background: linear-gradient(180deg, #fff 0%, #eef1f3 100%);
}
.abn-result strong,
.address-result strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: var(--font-weight-medium);
}
.abn-result span,
.address-result span {
  color: var(--muted);
  font-size: 12px;
}
.abn-result {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 0;
  overflow: hidden;
}
.abn-result-select {
  min-width: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  display: grid;
  gap: 3px;
  padding: 9px 10px;
  cursor: pointer;
}
.abn-result-open {
  width: 30px;
  height: 30px;
  margin-right: 8px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(37, 99, 235, .2);
  border-radius: 999px;
  background: #eff6ff;
  color: #2563eb;
  font-size: 14px;
  font-weight: var(--font-weight-semibold);
  line-height: 1;
  text-decoration: none;
}
.abn-result-open:hover {
  background: #dbeafe;
  border-color: rgba(37, 99, 235, .34);
  color: #1d4ed8;
}
.record-document-item {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: start;
  border: 1px solid #dfe7ee;
  border-radius: 13px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafb 100%);
  padding: 10px;
  color: inherit;
  box-shadow: 0 8px 20px rgba(15, 23, 42, .03);
}
.record-document-item:hover {
  border-color: #b9c8d4;
  background: #fff;
  box-shadow: 0 12px 26px rgba(15, 23, 42, .055);
}
.record-document-main {
  min-width: 0;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  color: inherit;
  text-decoration: none;
}
.record-document-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: color-mix(in srgb, var(--record-accent, var(--accent)) 9%, #fff);
  color: var(--record-accent, var(--accent));
}
.record-document-icon.is-image {
  background: #eef7ff;
  color: #0b63ce;
}
.record-document-icon.is-pdf {
  position: relative;
  background: #fff1f2;
  color: #c1121f;
}
.record-document-icon.is-pdf b {
  position: absolute;
  right: 3px;
  bottom: 2px;
  font-size: 7px;
  font-weight: 600;
  line-height: 1;
}
.record-document-icon.is-file {
  background: #f3f4f6;
  color: #4b5563;
}
.record-document-item strong,
.record-document-item small {
  display: block;
  min-width: 0;
}
.record-document-item strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: var(--font-weight-medium);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.record-document-item small {
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}
.record-document-preview {
  pointer-events: none;
  position: absolute;
  left: 44px;
  right: auto;
  top: 50%;
  z-index: 10;
  width: 210px;
  height: 150px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, .14);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(15, 23, 42, .2);
  opacity: 0;
  transform: translateY(-50%) translateX(-4px) scale(.98);
  transition: opacity .15s ease, transform .15s ease;
}
.record-document-preview img,
.record-document-preview iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  object-fit: cover;
  background: #fff;
}
.record-document-item:hover .record-document-preview,
.record-document-item:focus-within .record-document-preview {
  opacity: 1;
  transform: translateY(-50%) translateX(6px) scale(1);
}
.record-document-menu {
  position: relative;
}
.record-document-menu summary {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid #d5dee6;
  border-radius: 999px;
  background: #f8fafb;
  color: #374151;
  cursor: pointer;
  list-style: none;
}
.record-document-menu summary::-webkit-details-marker {
  display: none;
}
.record-document-menu[open] summary,
.record-document-menu summary:hover {
  color: #111827;
  border-color: #94a3b8;
  background: #fff;
}
.record-document-menu-panel {
  position: absolute;
  right: 0;
  top: 38px;
  z-index: 20;
  width: min(280px, calc(100vw - 40px));
  display: grid;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 18px 46px rgba(15, 23, 42, .18);
  padding: 11px;
}
.record-document-settings-form {
  display: grid;
  gap: 10px;
}
.record-document-settings-form label,
.record-document-settings-form fieldset {
  display: grid;
  gap: 6px;
  min-width: 0;
}
.record-document-settings-form input[type="text"],
.record-document-settings-form input:not([type]) {
  min-width: 0;
}
.record-document-settings-form fieldset {
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  padding: 8px;
}
.record-document-settings-form legend,
.record-document-settings-form label > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: var(--font-weight-medium);
}
.record-document-settings-form .checkbox-line {
  display: flex;
  grid-template-columns: none;
  align-items: center;
  gap: 7px;
  color: var(--ink);
  font-size: 13px;
}
.record-document-menu-note {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}
.record-main-panel > .panel,
.record-main-panel .detail-grid > .panel,
.record-overview-grid > .panel {
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .025);
}
.record-main-panel > .panel .panel-head,
.record-main-panel .detail-grid > .panel .panel-head,
.record-overview-grid > .panel .panel-head {
  background: #fbfcfd;
  border-bottom-color: var(--border-soft);
}
.record-main-panel .panel-head h3 {
  font-size: var(--text-md);
  font-weight: var(--font-weight-semibold);
}
.record-tab-content {
  display: grid;
  gap: 12px;
}
.record-side-panel {
  display: grid;
  gap: 12px;
  position: sticky;
  top: 84px;
}
.record-side-panel > section {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 14px;
  box-shadow: 0 8px 22px rgba(24, 39, 52, .03);
}
.record-side-panel h3 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: var(--text-md);
  font-weight: var(--font-weight-medium);
}
.record-side-panel p {
  margin: 0 0 12px;
  color: var(--muted);
}
.record-side-facts dl {
  margin: 0;
  display: grid;
  gap: 10px;
}
.record-side-facts div {
  border-top: 1px solid var(--border-soft);
  padding-top: 9px;
}
.record-side-facts div:first-child {
  border-top: 0;
  padding-top: 0;
}
.record-side-facts dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: var(--font-weight-medium);
}
.record-side-facts dd {
  margin: 3px 0 0;
  color: var(--ink);
  font-weight: var(--font-weight-medium);
  overflow-wrap: anywhere;
}
.record-overview-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.record-main-panel .detail-grid {
  grid-template-columns: 1fr;
  gap: 12px;
}
.record-main-panel .panel {
  width: 100%;
}
.record-linked-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--border-soft);
}
.record-linked-card {
  display: grid;
  gap: 4px;
  border: 0;
  border-bottom: 1px solid var(--border-soft);
  border-radius: 0;
  background: transparent;
  padding: 12px 2px;
}
.record-linked-card:hover {
  background: #fbfcfd;
}
.record-linked-card span {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-medium);
}
.record-linked-card strong {
  color: var(--ink);
  font-weight: var(--font-weight-medium);
}
.record-linked-card small {
  color: var(--muted);
}
.record-linked-card-actions {
  display: flex;
  justify-content: flex-start;
  padding-top: 4px;
}
.empty.compact {
  padding: 14px;
  text-align: left;
}
.related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.compact-list, .comment-list, .timeline, .task-list { display: grid; gap: 10px; }
.compact-list > div, .timeline > div {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  background: var(--surface-2);
  padding: 10px;
}
.compact-list > a {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  background: var(--surface-2);
  padding: 10px;
  display: block;
}
.compact-list strong, .timeline strong { display: block; color: var(--ink); font-weight: var(--font-weight-medium); }
.compact-list span, .timeline span { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.notifications-panel .panel-head {
  align-items: center;
}
.notification-toggle {
  width: auto;
  min-width: 230px;
  padding: 3px;
}
.notification-toggle a {
  gap: 7px;
  justify-content: center;
}
.notification-toggle a span {
  min-width: 22px;
  min-height: 20px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(17, 24, 39, .06);
  color: inherit;
  font-size: 11px;
}
.notification-list {
  display: grid;
  gap: 8px;
}
.notification-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  background: #fff;
  padding: 12px;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.notification-item:hover {
  border-color: rgba(13, 74, 72, .18);
  box-shadow: 0 10px 24px rgba(17, 24, 39, .055);
  transform: translateY(-1px);
}
.notification-item.is-unread {
  background: linear-gradient(180deg, #ffffff, #f8fffb);
  border-color: rgba(96, 208, 112, .26);
}
.notification-main {
  min-width: 0;
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  color: inherit;
}
.notification-main:hover strong {
  color: var(--brand);
}
.notification-dot {
  width: 8px;
  height: 8px;
  margin-top: 5px;
  border-radius: 999px;
  background: transparent;
}
.notification-item.is-unread .notification-dot {
  background: var(--delegate-brand-green, #60d070);
  box-shadow: 0 0 0 4px rgba(96, 208, 112, .14);
}
.notification-main strong {
  display: block;
  color: var(--ink);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
  line-height: 1.3;
}
.notification-main small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
}
.notification-main em {
  display: block;
  margin-top: 6px;
  color: var(--text-secondary);
  font-size: var(--text-sm);
  font-style: normal;
  line-height: 1.4;
}
.notification-read-form {
  margin: 0;
}
.notification-empty {
  border-style: dashed;
}
.comment, .task-item {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  background: var(--surface-2);
  padding: 12px;
}
.comment header, .task-item { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.comment header span, .task-item p { color: var(--muted); font-size: 12px; margin: 0; }
.comment p { margin: 10px 0 0; white-space: normal; }
.comment-actions, .task-actions { display: flex; align-items: center; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.task-item > div:first-child { min-width: 0; }
.task-actions { margin-top: 0; }
.warning-list { margin: 0; padding-left: 18px; color: #5f4309; }
.warning-list li + li { margin-top: 8px; }
.ai-panel { border-color: #cfe0ea; }
.document-page {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  background: var(--surface-2);
  padding: 12px;
  display: grid;
  gap: 8px;
}
.document-page pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 12px;
  color: var(--text);
}
.email-preview {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.email-preview-card {
  max-width: 520px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 20px;
  display: grid;
  gap: 12px;
}
.email-preview-card img { max-width: 190px; height: auto; }
.email-preview-card h4 { margin: 0; color: var(--ink); font-size: 18px; }
.email-preview-card p { margin: 0; color: var(--muted); }
.email-preview-card a {
  display: inline-flex;
  width: fit-content;
  border-radius: var(--radius);
  padding: 10px 14px;
  font-weight: var(--font-weight-medium);
}
.email-preview-card footer, .email-preview-card small { color: var(--muted); font-size: 12px; }
.email-office-photo { max-width: 100% !important; border-radius: var(--radius); }
.mobile-cards { display: none; }
.record-card { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); padding: 14px; display: grid; gap: 8px; }
.record-card strong { color: var(--ink); }
.record-card dl { margin: 0; display: grid; gap: 4px; }
.record-card div { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); }
.smart-data-grid {
  display: grid;
  gap: 14px;
  min-width: 0;
  max-width: 100%;
}
.smart-grid-toolbar {
  background: var(--surface);
  border-color: var(--border);
  position: relative;
}
.smart-grid-search-form {
  display: grid;
  gap: 8px;
}
.smart-grid-toolbar-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.smart-grid-search-field {
  flex: 1 1 360px;
  min-width: 220px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 9px;
}
.smart-grid-search-field input[type="search"] {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  min-width: 0;
  height: 36px;
  min-height: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  line-height: 36px;
  padding: 0;
  resize: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.smart-grid-search-field input[type="search"]::-webkit-search-decoration,
.smart-grid-search-field input[type="search"]::-webkit-search-cancel-button {
  display: none;
}
.smart-grid-search-field:focus-within {
  border-color: rgba(96, 208, 112, .72);
  box-shadow: 0 0 0 3px rgba(96, 208, 112, .18);
}
.smart-grid-clear-search {
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  display: grid;
  place-items: center;
  cursor: pointer;
}
.smart-grid-clear-search:hover {
  background: var(--surface-2);
  color: var(--ink);
}
.tenancy-workflow-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, .035);
  overflow: hidden;
}
.tenancy-workflow-metric {
  min-height: 78px;
  border: 0;
  border-right: 1px solid var(--border-subtle);
  border-radius: 0;
  background: transparent;
  padding: 15px 16px;
  display: grid;
  align-content: center;
  gap: 6px;
  box-shadow: none;
  position: relative;
  overflow: hidden;
}
.tenancy-workflow-metric:last-child {
  border-right: 0;
}
.tenancy-workflow-metric::before {
  display: none;
  content: none;
}
.tenancy-workflow-metric span {
  color: var(--text-muted);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-medium);
  line-height: 1.25;
}
.tenancy-workflow-metric strong {
  color: var(--ink);
  font-size: clamp(20px, 2vw, 28px);
  font-weight: var(--font-weight-semibold);
  line-height: 1.05;
  letter-spacing: 0;
}
.tenancy-workflow-metric.is-info strong { color: #1d4ed8; }
.tenancy-workflow-metric.is-success strong { color: #15803d; }
.tenancy-workflow-metric.is-warn strong { color: #b45309; }
.tenancy-workflow-metric.is-danger strong { color: #b91c1c; }
.tenancy-workflow-metric.is-neutral strong { color: var(--text-primary); }
.tenancy-workflow-toolbar {
  margin-top: -2px;
}
.tenancy-workflow-table table {
  table-layout: fixed;
  width: 100%;
  min-width: min(980px, 100%);
}
.tenancy-workflow-table th:nth-child(1),
.tenancy-workflow-table td:nth-child(1) { width: 22%; }
.tenancy-workflow-table th:nth-child(2),
.tenancy-workflow-table td:nth-child(2) { width: 25%; }
.tenancy-workflow-table th:nth-child(3),
.tenancy-workflow-table td:nth-child(3),
.tenancy-workflow-table th:nth-child(4),
.tenancy-workflow-table td:nth-child(4) { width: 12%; }
.tenancy-workflow-table th:nth-child(5),
.tenancy-workflow-table td:nth-child(5) { width: 11%; }
.tenancy-workflow-table th:nth-child(6),
.tenancy-workflow-table td:nth-child(6) { width: 12%; }
.tenancy-workflow-table th:nth-child(7),
.tenancy-workflow-table td:nth-child(7) { width: 10%; }
.tenancy-workflow-table.has-progress th:nth-child(1),
.tenancy-workflow-table.has-progress td:nth-child(1) { width: 18%; }
.tenancy-workflow-table.has-progress th:nth-child(2),
.tenancy-workflow-table.has-progress td:nth-child(2) { width: 22%; }
.tenancy-workflow-table.has-progress th:nth-child(3),
.tenancy-workflow-table.has-progress td:nth-child(3) { width: 11%; }
.tenancy-workflow-table.has-progress th:nth-child(4),
.tenancy-workflow-table.has-progress td:nth-child(4) { width: 9%; }
.tenancy-workflow-table.has-progress th:nth-child(5),
.tenancy-workflow-table.has-progress td:nth-child(5) { width: 20%; }
.tenancy-workflow-table.has-progress th:nth-child(6),
.tenancy-workflow-table.has-progress td:nth-child(6) { width: 9%; }
.tenancy-workflow-table.has-progress th:nth-child(7),
.tenancy-workflow-table.has-progress td:nth-child(7) { width: 11%; }
.tenancy-workflow-table.is-tenancy-arrears table {
  min-width: min(1120px, 100%);
}
.tenancy-workflow-table.is-tenancy-arrears.has-progress th:nth-child(1),
.tenancy-workflow-table.is-tenancy-arrears.has-progress td:nth-child(1) { width: 20%; }
.tenancy-workflow-table.is-tenancy-arrears.has-progress th:nth-child(2),
.tenancy-workflow-table.is-tenancy-arrears.has-progress td:nth-child(2) { width: 10%; }
.tenancy-workflow-table.is-tenancy-arrears.has-progress th:nth-child(3),
.tenancy-workflow-table.is-tenancy-arrears.has-progress td:nth-child(3) { width: 20%; }
.tenancy-workflow-table.is-tenancy-arrears.has-progress th:nth-child(4),
.tenancy-workflow-table.is-tenancy-arrears.has-progress td:nth-child(4) { width: 8%; }
.tenancy-workflow-table.is-tenancy-arrears.has-progress th:nth-child(5),
.tenancy-workflow-table.is-tenancy-arrears.has-progress td:nth-child(5) { width: 11%; }
.tenancy-workflow-table.is-tenancy-arrears.has-progress th:nth-child(6),
.tenancy-workflow-table.is-tenancy-arrears.has-progress td:nth-child(6) { width: 11%; }
.tenancy-workflow-table.is-tenancy-arrears.has-progress th:nth-child(7),
.tenancy-workflow-table.is-tenancy-arrears.has-progress td:nth-child(7) { width: 9%; }
.tenancy-workflow-table.is-tenancy-arrears.has-progress th:nth-child(8),
.tenancy-workflow-table.is-tenancy-arrears.has-progress td:nth-child(8) { width: 11%; }
.tenancy-workflow-table.is-tenancy-renewals table {
  min-width: min(1480px, 100%);
}
.tenancy-workflow-table.is-tenancy-renewals.has-progress th:nth-child(1),
.tenancy-workflow-table.is-tenancy-renewals.has-progress td:nth-child(1) { width: 17%; }
.tenancy-workflow-table.is-tenancy-renewals.has-progress th:nth-child(2),
.tenancy-workflow-table.is-tenancy-renewals.has-progress td:nth-child(2) { width: 8%; }
.tenancy-workflow-table.is-tenancy-renewals.has-progress th:nth-child(3),
.tenancy-workflow-table.is-tenancy-renewals.has-progress td:nth-child(3) { width: 18%; }
.tenancy-workflow-table.is-tenancy-renewals.has-progress th:nth-child(4),
.tenancy-workflow-table.is-tenancy-renewals.has-progress td:nth-child(4) { width: 7%; }
.tenancy-workflow-table.is-tenancy-renewals.has-progress th:nth-child(5),
.tenancy-workflow-table.is-tenancy-renewals.has-progress td:nth-child(5) { width: 8%; }
.tenancy-workflow-table.is-tenancy-renewals.has-progress th:nth-child(6),
.tenancy-workflow-table.is-tenancy-renewals.has-progress td:nth-child(6) { width: 8%; }
.tenancy-workflow-table.is-tenancy-renewals.has-progress th:nth-child(7),
.tenancy-workflow-table.is-tenancy-renewals.has-progress td:nth-child(7) { width: 11%; }
.tenancy-workflow-table.is-tenancy-renewals.has-progress th:nth-child(8),
.tenancy-workflow-table.is-tenancy-renewals.has-progress td:nth-child(8) { width: 8%; }
.tenancy-workflow-table.is-tenancy-renewals.has-progress th:nth-child(9),
.tenancy-workflow-table.is-tenancy-renewals.has-progress td:nth-child(9) { width: 6%; }
.tenancy-workflow-table.is-tenancy-renewals.has-progress th:nth-child(10),
.tenancy-workflow-table.is-tenancy-renewals.has-progress td:nth-child(10) { width: 9%; }
.tenancy-workflow-table.is-tenancy-vacates table {
  min-width: min(900px, 100%);
}
.tenancy-workflow-table.is-tenancy-vacates.has-progress th:nth-child(1),
.tenancy-workflow-table.is-tenancy-vacates.has-progress td:nth-child(1) { width: 30%; }
.tenancy-workflow-table.is-tenancy-vacates.has-progress th:nth-child(2),
.tenancy-workflow-table.is-tenancy-vacates.has-progress td:nth-child(2) { width: 14%; }
.tenancy-workflow-table.is-tenancy-vacates.has-progress th:nth-child(3),
.tenancy-workflow-table.is-tenancy-vacates.has-progress td:nth-child(3) { width: 28%; }
.tenancy-workflow-table.is-tenancy-vacates.has-progress th:nth-child(4),
.tenancy-workflow-table.is-tenancy-vacates.has-progress td:nth-child(4) { width: 12%; }
.tenancy-workflow-table.is-tenancy-vacates.has-progress th:nth-child(5),
.tenancy-workflow-table.is-tenancy-vacates.has-progress td:nth-child(5) { width: 16%; }
.leasing-workflow-table.has-progress th:nth-child(1),
.leasing-workflow-table.has-progress td:nth-child(1) { width: 20%; }
.leasing-workflow-table.has-progress th:nth-child(2),
.leasing-workflow-table.has-progress td:nth-child(2) { width: 11%; }
.leasing-workflow-table.has-progress th:nth-child(3),
.leasing-workflow-table.has-progress td:nth-child(3) { width: 12%; }
.leasing-workflow-table.has-progress th:nth-child(4),
.leasing-workflow-table.has-progress td:nth-child(4) { width: 11%; }
.leasing-workflow-table.has-progress th:nth-child(5),
.leasing-workflow-table.has-progress td:nth-child(5) { width: 20%; }
.leasing-workflow-table.has-progress th:nth-child(6),
.leasing-workflow-table.has-progress td:nth-child(6) { width: 15%; }
.leasing-workflow-table.has-progress th:nth-child(7),
.leasing-workflow-table.has-progress td:nth-child(7) { width: 11%; }
.tenancy-workflow-link {
  display: grid;
  gap: 3px;
  color: var(--ink);
  text-decoration: none;
}
.tenancy-workflow-link strong {
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tenancy-workflow-link small {
  color: var(--muted);
  font-size: var(--text-xs);
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tenancy-workflow-table .tenancy-workflow-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
}
.tenancy-workflow-table .tenancy-workflow-link strong,
.tenancy-workflow-table .tenancy-workflow-link small {
  min-width: 0;
}
.tenancy-workflow-property-inline {
  color: var(--text-secondary);
}
.tenancy-workflow-property {
  display: block;
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tenancy-workflow-rent {
  display: grid;
  gap: 3px;
  line-height: 1.2;
}
.tenancy-workflow-table .tenancy-workflow-rent {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
}
.tenancy-workflow-rent strong {
  color: var(--ink);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tenancy-workflow-rent small {
  color: var(--muted);
  font-size: var(--text-xs);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tenancy-workflow-money {
  color: var(--ink);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
  line-height: 1.2;
  white-space: nowrap;
}
.tenancy-workflow-money.is-arrears {
  color: #b91c1c;
}
.tenancy-workflow-money.is-part-paid {
  color: #047857;
}
.tenancy-workflow-muted {
  color: var(--muted);
  font-size: var(--text-xs);
  white-space: nowrap;
}
.tenancy-workflow-progress-cell {
  overflow: hidden;
}
.tenancy-workflow-table .tenancy-workflow-progress-cell {
  padding-left: 10px;
  padding-right: 10px;
}
.tenancy-workflow-badge-cell {
  min-width: 0;
  overflow: hidden;
}
.tenancy-workflow-badge-cell .smart-grid-badge {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tenancy-workflow-mobile-title {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.tenancy-workflow-mobile-title small {
  color: var(--text-secondary);
  font-size: var(--text-xs);
  line-height: 1.2;
}
.renewal-process-progress {
  display: grid;
  gap: 6px;
  min-width: 128px;
  max-width: 100%;
}
.tenancy-workflow-table .renewal-process-progress {
  display: block;
  width: 100%;
  min-width: 0;
}
.renewal-process-track {
  display: grid;
  grid-template-columns: repeat(var(--workflow-progress-steps, 4), minmax(10px, 1fr));
  gap: 4px;
}
.tenancy-workflow-table .renewal-process-track {
  gap: 5px;
  align-items: center;
}
.renewal-process-track span {
  height: 7px;
  border-radius: 999px;
  background: #e5e7eb;
}
.tenancy-workflow-table .renewal-process-track span {
  height: 9px;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .04);
}
.renewal-process-track span.is-complete {
  background: #16a34a;
}
.renewal-process-track span.is-active {
  background: #2563eb;
}
.renewal-process-track span.is-pending {
  background: #e5e7eb;
}
.renewal-process-progress small {
  color: var(--muted);
  font-size: 11px;
  font-weight: var(--font-weight-medium);
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tenancy-workflow-table .renewal-process-progress small {
  display: none;
}
.leasing-listing-activity {
  display: grid;
  gap: 4px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  min-width: 150px;
}
.leasing-listing-activity span {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.leasing-listing-activity strong {
  color: var(--ink);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
  line-height: 1;
}
.leasing-listing-activity small {
  color: var(--muted);
  font-size: 10px;
  font-weight: var(--font-weight-medium);
  line-height: 1.1;
  text-transform: uppercase;
}
.leasing-listings-table .renewal-process-progress {
  display: block;
  width: 100%;
  min-width: 0;
}
.leasing-listings-table .renewal-process-track {
  gap: 5px;
  align-items: center;
}
.leasing-listings-table .renewal-process-track span {
  height: 9px;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .04);
}
.leasing-listings-table .renewal-process-progress small {
  display: none;
}
.leasing-listings-table .leasing-listing-activity {
  min-width: 0;
}
.leasing-workflow-counts {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.leasing-workflow-counts strong {
  color: var(--ink);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.leasing-workflow-counts small {
  color: var(--muted);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-medium);
  line-height: 1.15;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tenancy-workflow-mobile-card header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.tenancy-workflow-mobile-card header strong {
  min-width: 0;
  line-height: 1.25;
}
.tenancy-workflow-mobile-card .smart-grid-badge {
  flex: 0 0 auto;
}
.workflow-record-workspace {
  gap: 18px;
}
.workflow-record-header {
  padding-top: 8px;
}
.workflow-record-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--workflow-accent, #334155) 12%, #fff);
  color: var(--workflow-accent, #334155);
  display: grid;
  place-items: center;
}
.workflow-record-header span {
  color: var(--muted);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-medium);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.workflow-record-header h2 {
  margin: 3px 0 0;
  color: var(--ink);
  font-size: var(--text-xl);
  font-weight: var(--font-weight-semibold);
  line-height: 1.15;
}
.workflow-record-header p {
  margin: 4px 0 0;
  color: var(--text-secondary);
  font-size: var(--text-sm);
}
.workflow-record-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}
.workflow-record-layout {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}
.workflow-record-content {
  grid-column: 1 / span 2;
}
.workflow-record-columns {
  display: contents;
}
.workflow-record-panel {
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  background: var(--surface);
  padding: 16px;
  display: grid;
  gap: 14px;
  box-shadow: 0 6px 18px rgba(17, 24, 39, .035);
}
.workflow-record-overview > p {
  margin: 0;
  max-width: 760px;
  color: var(--text-secondary);
  font-size: var(--text-sm);
  line-height: 1.45;
}
.workflow-record-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.workflow-record-kpis div,
.workflow-record-field-grid div {
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  background: #fbfcfd;
  padding: 11px 12px;
  display: grid;
  gap: 4px;
}
.workflow-record-kpis span,
.workflow-record-field-grid span {
  color: var(--muted);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-medium);
  line-height: 1.25;
}
.workflow-record-kpis strong,
.workflow-record-field-grid strong {
  min-width: 0;
  color: var(--ink);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.workflow-record-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.workflow-mini-summary.is-renewal-status-card {
  border-color: #fed7aa;
  background: linear-gradient(180deg, #fff7ed 0%, #fff 42%);
}
.workflow-mini-summary.is-renewal-status-card .record-card-heading {
  align-items: center;
  padding-bottom: 2px;
}
.workflow-mini-summary.is-renewal-status-card .record-card-heading svg {
  width: 38px;
  height: 38px;
  padding: 9px;
  border-radius: 12px;
  background: #ffedd5;
  color: #9a3412;
}
.workflow-mini-summary.is-renewal-status-card .record-card-heading p {
  color: #9a3412;
}
.workflow-mini-summary.is-renewal-status-card .record-card-heading h3 {
  font-size: var(--text-lg);
  font-weight: var(--font-weight-semibold);
}
.workflow-mini-summary.is-renewal-status-card .workflow-record-field-grid {
  gap: 8px;
}
.workflow-mini-summary.is-renewal-status-card .workflow-record-field-grid div {
  border-color: #fed7aa;
  background: rgba(255, 251, 235, .72);
}
.workflow-mini-summary.is-renewal-status-card .workflow-record-field-grid span {
  color: #92400e;
}
.workflow-tenancy-overview {
  position: static;
  top: auto;
}
.workflow-open-tenancy {
  width: 100%;
  justify-content: center;
  margin-top: 12px;
}
.workflow-groups-panel {
  align-content: start;
}
.workflow-step-meta-grid,
.maintenance-workflow-context-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}
.workflow-step-meta-grid div,
.maintenance-workflow-context-grid section,
.routine-inspection-checklist,
.routine-inspection-trigger-panel {
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  background: #fff;
}
.workflow-step-meta-grid div {
  display: grid;
  gap: 4px;
  padding: 11px 12px;
}
.workflow-step-meta-grid span,
.workflow-trigger-chip-list small {
  color: var(--muted);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-medium);
  line-height: 1.25;
}
.workflow-step-meta-grid strong {
  min-width: 0;
  color: var(--ink);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.maintenance-workflow-context-grid section,
.routine-inspection-checklist,
.routine-inspection-trigger-panel {
  padding: 13px;
}
.maintenance-workflow-context-grid {
  margin: 12px 0 14px;
}
.workflow-trigger-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0;
}
.workflow-trigger-chip-list span {
  display: grid;
  gap: 2px;
  min-width: 0;
  max-width: 240px;
  padding: 8px 10px;
  border: 1px solid #dbe4ee;
  border-radius: 999px;
  background: #f8fafc;
}
.workflow-trigger-chip-list strong {
  color: var(--ink);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semibold);
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.workflow-dee-prompts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.dee-ai-action-chip {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  max-width: 100%;
  border: 1px solid rgba(168, 178, 195, .55);
  border-radius: 999px;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(120deg, rgba(82, 121, 255, .5), rgba(231, 108, 255, .4), rgba(45, 212, 191, .45)) border-box;
  color: #1f2937;
  padding: 8px 12px;
  font: inherit;
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semibold);
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(31, 41, 55, .06);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.dee-ai-action-chip svg {
  flex: 0 0 auto;
  color: #6d5dfc;
}

.dee-ai-action-chip span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.dee-ai-action-chip:hover,
.dee-ai-action-chip:focus-visible {
  border-color: transparent;
  box-shadow: 0 12px 28px rgba(99, 102, 241, .14), 0 0 0 3px rgba(45, 212, 191, .1);
  transform: translateY(-1px);
}

.workflow-dee-prompts .button.dee-ai-action-chip,
.workflow-dee-prompts .dee-ai-action-chip,
.supplier-dee-prompt-grid .dee-ai-action-chip {
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(120deg, rgba(82, 121, 255, .5), rgba(231, 108, 255, .4), rgba(45, 212, 191, .45)) border-box;
  border-color: transparent;
  color: #1f2937;
}
.routine-inspection-section-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin: 12px 0;
}
.routine-inspection-section-grid article {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  padding: 10px;
  border: 1px solid #e5edf5;
  border-radius: 12px;
  background: #f8fafc;
}
.routine-inspection-section-grid article > span {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  color: #64748b;
}
.routine-inspection-section-grid strong {
  display: block;
  color: var(--ink);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
  line-height: 1.25;
}
.routine-inspection-section-grid p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: var(--text-xs);
  line-height: 1.35;
}
.renewal-countdown-panel {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 8px 24px rgba(15, 23, 42, .055);
  padding: 14px 15px;
  margin-bottom: 12px;
}
.renewal-countdown-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: #f1f5f9;
  color: #475569;
}
.renewal-countdown-copy,
.renewal-countdown-date {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.renewal-countdown-copy span,
.renewal-countdown-date span {
  color: var(--muted);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-medium);
  line-height: 1.2;
}
.renewal-countdown-copy strong {
  color: var(--ink);
  font-size: var(--text-2xl);
  font-weight: var(--font-weight-semibold);
  line-height: 1.12;
  letter-spacing: 0;
}
.renewal-countdown-copy small {
  color: #475569;
  font-size: var(--text-sm);
  line-height: 1.25;
}
.renewal-countdown-date {
  justify-items: end;
  text-align: right;
}
.renewal-countdown-date strong {
  color: var(--ink);
  font-size: var(--text-base);
  font-weight: var(--font-weight-medium);
}
.renewal-countdown-panel.is-red {
  border-color: #fecaca;
  background: linear-gradient(135deg, #fff7f7 0%, #fff 74%);
}
.renewal-countdown-panel.is-red .renewal-countdown-icon {
  background: #fee2e2;
  color: #991b1b;
}
.renewal-countdown-panel.is-red .renewal-countdown-copy strong {
  color: #991b1b;
}
.renewal-countdown-panel.is-orange {
  border-color: #fed7aa;
  background: linear-gradient(135deg, #fff7ed 0%, #fff 74%);
}
.renewal-countdown-panel.is-orange .renewal-countdown-icon {
  background: #ffedd5;
  color: #9a3412;
}
.renewal-countdown-panel.is-orange .renewal-countdown-copy strong {
  color: #9a3412;
}
.renewal-countdown-panel.is-blue {
  border-color: #bfdbfe;
  background: linear-gradient(135deg, #eff6ff 0%, #fff 74%);
}
.renewal-countdown-panel.is-blue .renewal-countdown-icon {
  background: #dbeafe;
  color: #1d4ed8;
}
.renewal-countdown-panel.is-blue .renewal-countdown-copy strong {
  color: #1d4ed8;
}
@media (max-width: 640px) {
  .workflow-step-meta-grid,
  .maintenance-workflow-context-grid,
  .routine-inspection-section-grid {
    grid-template-columns: 1fr;
  }
  .workflow-trigger-chip-list span {
    width: 100%;
    max-width: none;
  }
  .renewal-countdown-panel {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .renewal-countdown-date {
    grid-column: 1 / -1;
    justify-items: start;
    text-align: left;
    padding-top: 8px;
    border-top: 1px solid rgba(15, 23, 42, .08);
  }
}
.workflow-group-card {
  border: 1px solid var(--border-soft);
  border-radius: 15px;
  background: var(--surface);
  box-shadow: 0 4px 14px rgba(15, 23, 42, .035);
  overflow: hidden;
  position: relative;
}
.workflow-group-card + .workflow-group-card {
  margin-top: 10px;
}
.workflow-groups-panel.is-workflow-timeline {
  position: relative;
  padding-left: 0;
}
.workflow-groups-panel.is-workflow-timeline .workflow-group-card {
  overflow: visible;
}
.workflow-groups-panel.is-workflow-timeline .workflow-group-card + .workflow-group-card {
  margin-top: 14px;
}
.workflow-groups-panel.is-workflow-timeline .workflow-group-card::before {
  content: "";
  position: absolute;
  left: 29px;
  top: -14px;
  height: 78px;
  width: 2px;
  background: #d9e2ec;
  z-index: 0;
}
.workflow-groups-panel.is-workflow-timeline .workflow-group-card:first-of-type::before {
  top: 32px;
  height: 32px;
}
.workflow-groups-panel.is-workflow-timeline .workflow-group-card:last-of-type::before {
  height: 48px;
}
.workflow-groups-panel.is-workflow-timeline .workflow-group-card::after {
  content: attr(data-step);
  position: absolute;
  left: 14px;
  top: 18px;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  border: 2px solid #d9e2ec;
  background: #fff;
  color: #64748b;
  font-size: 13px;
  font-weight: var(--font-weight-semibold);
  box-shadow: 0 0 0 6px var(--surface);
  z-index: 1;
}
.workflow-groups-panel.is-workflow-timeline .workflow-group-card.is-complete::before {
  background: #86efac;
}
.workflow-groups-panel.is-workflow-timeline .workflow-group-card.is-complete::after {
  content: "✓";
  border-color: #86efac;
  background: #f0fdf4;
  color: #166534;
}
.workflow-groups-panel.is-workflow-timeline .workflow-group-card.is-active-step::after,
.workflow-groups-panel.is-workflow-timeline .workflow-group-card.is-current::after {
  border-color: #f59e0b;
  background: #fff7ed;
  color: #9a3412;
  box-shadow: 0 0 0 6px #fff7ed, 0 8px 18px rgba(217, 119, 6, .16);
}
.workflow-groups-panel.is-workflow-timeline .workflow-group-card.is-pending-step::after {
  background: #f8fafc;
}
.workflow-groups-panel.is-workflow-timeline .workflow-group-card summary {
  padding-left: 58px;
}
.workflow-group-card summary {
  cursor: pointer;
  list-style: none;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 11px;
  align-items: center;
  min-height: 64px;
  padding: 13px 14px;
}
.workflow-group-card summary::-webkit-details-marker {
  display: none;
}
.workflow-group-card summary strong {
  display: block;
  color: var(--ink);
  font-size: var(--text-base);
  font-weight: var(--font-weight-medium);
  line-height: 1.25;
}
.workflow-step-label {
  display: block;
  margin-bottom: 4px;
  color: #64748b;
  font-size: 11px;
  font-weight: var(--font-weight-semibold);
  letter-spacing: .01em;
  text-transform: uppercase;
}
.workflow-group-card.is-current .workflow-step-label {
  color: #b45309;
}
.workflow-group-card.is-complete .workflow-step-label {
  color: #15803d;
}
.workflow-group-card summary em {
  min-width: 54px;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  background: #f8fafc;
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
  font-weight: var(--font-weight-medium);
  text-align: center;
  padding: 5px 8px;
}
.workflow-group-icon {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: #f1f5f9;
  color: #475569;
}
.workflow-group-card.is-current {
  border-color: color-mix(in srgb, var(--workflow-accent, var(--accent)) 34%, var(--border-soft));
  box-shadow: 0 10px 28px rgba(15, 23, 42, .06);
}
.workflow-group-card.is-current .workflow-group-icon {
  background: color-mix(in srgb, var(--workflow-accent, var(--accent)) 12%, #fff);
  color: var(--workflow-accent, var(--accent));
}
.workflow-group-card.is-success summary em {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #166534;
}
.workflow-group-card.is-warn summary em {
  border-color: #fed7aa;
  background: #fff7ed;
  color: #9a3412;
}
.workflow-group-body {
  border-top: 1px solid var(--border-soft);
  padding: 14px;
  display: grid;
  gap: 12px;
}
.workflow-group-body .record-edit-form {
  gap: 10px;
}
.workflow-group-body .record-edit-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.workflow-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.workflow-inline-action {
  margin: 0;
}
.workflow-action-form {
  width: 100%;
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  background: #fff;
  padding: 12px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  align-items: end;
}
.workflow-action-form label {
  display: grid;
  gap: 5px;
  min-width: 0;
}
.workflow-action-form label span {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 500;
}
.workflow-action-form input,
.workflow-action-form select {
  width: 100%;
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  background: #f8fafc;
  color: var(--text-primary);
  min-height: 38px;
  padding: 8px 10px;
  font: inherit;
}
.workflow-action-note {
  grid-column: 1 / -2;
  margin: 0;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.45;
}
.maintenance-workflow-panel {
  --workflow-accent: #0f766e;
  display: grid;
  gap: 14px;
  align-content: start;
}
.maintenance-workflow-panel .record-card-heading {
  margin-bottom: 2px;
}
.maintenance-simple-panel {
  gap: 14px;
}
.maintenance-simple-heading {
  align-items: flex-start;
  border: 1px solid var(--border-soft);
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(15, 23, 42, .035);
  margin: 0;
  padding: 14px 15px;
}
.maintenance-simple-heading h3 {
  margin-bottom: 5px;
}
.maintenance-simple-heading span {
  color: var(--muted);
  display: block;
  font-size: var(--text-sm);
  line-height: 1.45;
  max-width: 720px;
}
.maintenance-simple-overview,
.maintenance-simple-mini-metrics {
  display: grid;
  gap: 8px;
}
.maintenance-simple-overview {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.maintenance-simple-mini-metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.maintenance-simple-step {
  align-items: stretch;
  display: grid;
  gap: 12px;
  grid-template-columns: 34px minmax(0, 1fr);
  position: relative;
}
.maintenance-simple-step + .maintenance-simple-step {
  margin-top: 4px;
}
.maintenance-simple-step::before {
  background: #dce6ee;
  bottom: -16px;
  content: "";
  left: 16px;
  position: absolute;
  top: 34px;
  width: 2px;
}
.maintenance-simple-step:last-child::before {
  display: none;
}
.maintenance-simple-step-marker {
  position: relative;
  z-index: 1;
}
.maintenance-simple-step-marker span {
  align-items: center;
  background: #f8fafc;
  border: 2px solid #dce6ee;
  border-radius: 999px;
  color: #64748b;
  display: inline-flex;
  font-size: 13px;
  font-weight: var(--font-weight-semibold);
  height: 34px;
  justify-content: center;
  width: 34px;
}
.maintenance-simple-step.is-complete .maintenance-simple-step-marker span {
  background: #f0fdf4;
  border-color: #86efac;
  color: #166534;
}
.maintenance-simple-step.is-active .maintenance-simple-step-marker span {
  background: #fff7ed;
  border-color: #fdba74;
  color: #9a3412;
  box-shadow: 0 0 0 5px rgba(251, 146, 60, .13);
}
.maintenance-simple-step.is-skipped .maintenance-simple-step-marker span {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #64748b;
}
.maintenance-simple-step.is-complete::before {
  background: #86efac;
}
.maintenance-simple-step-content {
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 13px;
}
.maintenance-simple-step.is-active .maintenance-simple-step-content {
  border-color: #fed7aa;
  box-shadow: 0 10px 26px rgba(217, 119, 6, .08);
}
.maintenance-simple-step-content header {
  align-items: flex-start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}
.maintenance-simple-step-content header > div {
  min-width: 0;
}
.maintenance-simple-step-content h4 {
  color: var(--ink);
  font-size: var(--text-base);
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0;
  line-height: 1.25;
  margin: 0 0 3px;
}
.maintenance-simple-step-content p {
  color: var(--muted);
  font-size: var(--text-sm);
  line-height: 1.42;
  margin: 0;
}
.maintenance-simple-step-body {
  display: grid;
  gap: 11px;
}
.maintenance-simple-note {
  background: #f8fafc;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  color: #475569;
  font-size: var(--text-sm);
  line-height: 1.45;
  margin: 0;
  padding: 10px 11px;
}
.maintenance-workflow-progress {
  border: 1px solid var(--border-soft);
  border-radius: 13px;
  background: #f8fafc;
  padding: 10px 11px;
}
.workflow-step-question {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-normal);
  line-height: 1.35;
}
.maintenance-workflow-step-body {
  gap: 11px;
}
.maintenance-step-fields {
  border: 1px solid var(--border-soft);
  border-radius: 13px;
  background: #fbfdff;
  padding: 12px;
}
.maintenance-step-fields .record-edit-form {
  margin: 0;
}
.maintenance-path-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.maintenance-path-card {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-content: start;
  gap: 10px;
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  padding: 12px;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.maintenance-path-card:hover {
  border-color: rgba(15, 118, 110, .24);
  box-shadow: 0 12px 28px rgba(15, 23, 42, .08);
  transform: translateY(-1px);
}
.maintenance-path-card > span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: #eef6f5;
  color: #0f766e;
}
.maintenance-path-card.is-approval > span {
  background: #fff7ed;
  color: #c2410c;
}
.maintenance-path-card.is-work-order > span {
  background: #eef6f5;
  color: #0f766e;
}
.maintenance-path-card.is-hold > span {
  background: #f1f5f9;
  color: #475569;
}
.maintenance-path-card small {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 6px;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 10px;
  font-weight: var(--font-weight-semibold);
  line-height: 1;
  padding: 4px 7px;
  text-transform: uppercase;
}
.maintenance-path-card strong {
  display: block;
  color: var(--ink);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
  line-height: 1.25;
}
.maintenance-path-card p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: var(--text-xs);
  line-height: 1.4;
}
.maintenance-path-card em {
  display: block;
  margin-top: 7px;
  color: #475569;
  font-size: 11px;
  font-style: normal;
  line-height: 1.4;
}
.maintenance-path-card .workflow-inline-action,
.maintenance-path-card .workflow-action-form {
  grid-column: 1 / -1;
}
.maintenance-step-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.maintenance-step-actions .workflow-inline-action {
  display: contents;
}
.maintenance-workflow-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.maintenance-workflow-metric {
  min-width: 0;
  display: grid;
  gap: 3px;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  background: #fbfdff;
  padding: 10px;
  text-decoration: none;
}
.maintenance-workflow-metric span {
  color: var(--muted);
  font-size: var(--text-xs);
  line-height: 1.2;
}
.maintenance-workflow-metric strong {
  color: var(--ink);
  font-size: var(--text-lg);
  font-weight: var(--font-weight-semibold);
  line-height: 1.1;
}
.maintenance-workflow-metric:hover {
  border-color: #b9d8d5;
  background: #f5fbfa;
}
.maintenance-workflow-note {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
}
.maintenance-workflow-note .workflow-note-icon {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #eef6f5;
  color: #0f766e;
}
.maintenance-workflow-empty {
  margin-top: 8px;
}
.maintenance-workflow-action .button,
.maintenance-snooze-form .button,
.maintenance-step-actions .button {
  min-height: 36px;
}
.maintenance-simple-note {
  margin: 0;
}
.maintenance-invoice-preview-trigger {
  position: relative;
  width: max-content;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ink);
  text-decoration: none;
}
.maintenance-invoice-preview-trigger > span {
  color: var(--muted);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-medium);
}
.maintenance-invoice-preview-empty {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--border-soft);
  border-radius: 11px;
  background: #f8fafc;
  color: var(--muted);
}
.maintenance-invoice-preview-popover {
  pointer-events: none;
  position: fixed;
  z-index: 80;
  width: min(360px, 42vw);
  height: 250px;
  left: min(520px, 48vw);
  top: 118px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, .14);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 24px 64px rgba(15, 23, 42, .22);
  opacity: 0;
  transform: translateY(8px) scale(.985);
  transition: opacity .16s ease, transform .16s ease;
}
.maintenance-invoice-preview-popover img,
.maintenance-invoice-preview-popover iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  object-fit: cover;
  background: #fff;
}
.maintenance-invoice-preview-trigger:hover .maintenance-invoice-preview-popover,
.maintenance-invoice-preview-trigger:focus-within .maintenance-invoice-preview-popover {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.maintenance-invoice-record-layout {
  display: grid;
  grid-template-columns: minmax(300px, 380px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.maintenance-invoice-record-left,
.maintenance-invoice-record-preview {
  min-width: 0;
}
.maintenance-invoice-record-left {
  display: grid;
  gap: 14px;
}
.maintenance-invoice-steps-card {
  gap: 13px;
}
.maintenance-invoice-progress {
  border: 1px solid var(--border-soft);
  border-radius: 13px;
  background: #f8fafc;
  padding: 10px 11px;
}
.maintenance-invoice-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.maintenance-invoice-facts > div,
.maintenance-invoice-linked-list > div,
.maintenance-invoice-extracted-fields > div {
  min-width: 0;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  background: #fbfdff;
  padding: 10px;
}
.maintenance-invoice-facts span,
.maintenance-invoice-linked-list span,
.maintenance-invoice-extracted-fields small {
  display: block;
  color: var(--muted);
  font-size: var(--text-xs);
  line-height: 1.2;
}
.maintenance-invoice-facts strong,
.maintenance-invoice-linked-list strong,
.maintenance-invoice-linked-list a,
.maintenance-invoice-extracted-fields strong {
  display: block;
  min-width: 0;
  margin-top: 3px;
  color: var(--ink);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.maintenance-invoice-linked-list,
.maintenance-invoice-extracted-fields {
  display: grid;
  gap: 8px;
}
.maintenance-invoice-ai-summary {
  display: grid;
  gap: 9px;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid #bfdbfe;
  border-radius: 14px;
  background: #eff6ff;
}
.maintenance-invoice-ai-summary > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #1d4ed8;
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: .02em;
}
.maintenance-invoice-ai-summary p {
  margin: 0;
  color: #1f2937;
  font-size: var(--text-sm);
  line-height: 1.5;
}
.maintenance-invoice-action {
  display: inline-flex;
}
.maintenance-invoice-pdf-panel {
  min-height: min(760px, calc(100vh - 190px));
  display: grid;
  grid-template-rows: auto minmax(420px, 1fr);
  border: 1px solid var(--border-soft);
  border-radius: 18px;
  overflow: hidden;
  background: #f8fafc;
  box-shadow: 0 18px 44px rgba(15, 23, 42, .06);
}
.maintenance-invoice-pdf-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--border-soft);
  background: #fff;
  padding: 12px 14px;
}
.maintenance-invoice-pdf-head span {
  display: block;
  color: var(--muted);
  font-size: var(--text-xs);
}
.maintenance-invoice-pdf-head strong {
  display: block;
  color: var(--ink);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
}
.maintenance-invoice-pdf-frame,
.maintenance-invoice-image-viewer {
  width: 100%;
  height: 100%;
  min-height: min(720px, calc(100vh - 250px));
  border: 0;
  background: #fff;
}
.maintenance-invoice-image-viewer {
  display: grid;
  place-items: start center;
  overflow: auto;
  padding: 18px;
}
.maintenance-invoice-image-viewer img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 14px 42px rgba(15, 23, 42, .14);
}
.maintenance-snooze-form {
  display: grid;
  grid-template-columns: minmax(0, 160px) minmax(0, 1fr) auto;
  gap: 8px;
  align-items: end;
}
.maintenance-snooze-form textarea {
  min-height: 38px;
  resize: vertical;
}
.maintenance-snooze-form .workflow-action-note {
  grid-column: 1 / -1;
}
.workflow-related-record {
  border: 1px solid var(--border-soft);
  border-radius: 13px;
  background: #fbfcfd;
  padding: 12px;
  display: grid;
  gap: 10px;
}
.workflow-related-record .record-card-heading {
  margin-bottom: 0;
}
.workflow-related-record .record-edit-form {
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: 11px;
}
.workflow-attachment-list {
  display: grid;
  gap: 10px;
}
.workflow-attachment-card {
  border: 1px solid var(--border-soft);
  border-radius: 13px;
  background: #fbfcfd;
  padding: 12px;
  display: grid;
  gap: 10px;
}
.workflow-linked-document {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--border-soft);
  border-radius: 11px;
  background: #fff;
  padding: 9px;
}
.workflow-linked-document strong {
  display: block;
  color: var(--ink);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.workflow-linked-document small {
  display: block;
  color: var(--muted);
  font-size: var(--text-xs);
}
.workflow-attachment-upload {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}
.button.danger-soft {
  color: #991b1b;
  border-color: #fecaca;
  background: #fff7f7;
}
.workflow-step-list {
  display: grid;
  gap: 8px;
}
.workflow-step-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  background: #fff;
  padding: 10px 11px;
}
.workflow-step-item i {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #94a3b8;
  box-shadow: 0 0 0 4px #f1f5f9;
}
.workflow-step-item.is-success i { background: #16a34a; box-shadow: 0 0 0 4px #dcfce7; }
.workflow-step-item.is-warn i { background: #d97706; box-shadow: 0 0 0 4px #ffedd5; }
.workflow-step-item.is-danger i { background: #dc2626; box-shadow: 0 0 0 4px #fee2e2; }
.workflow-step-item.is-info i { background: #2563eb; box-shadow: 0 0 0 4px #dbeafe; }
.workflow-step-item strong {
  display: block;
  color: var(--ink);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
  line-height: 1.25;
}
.workflow-step-item span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: var(--text-xs);
  line-height: 1.25;
}
.smart-grid-filter-toggle span {
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--surface-2);
  display: inline-grid;
  place-items: center;
  font-size: 11px;
}
.smart-grid-filter-popover {
  position: absolute;
  z-index: 30;
  top: calc(100% + 8px);
  left: 12px;
  right: 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 18px 42px rgba(17, 24, 39, .14);
  padding: 12px;
}
.smart-grid-filter-popover[hidden] {
  display: none;
}
.smart-grid-filter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.smart-grid-filter-grid label {
  display: grid;
  gap: 5px;
}
.smart-grid-filter-grid label span {
  color: var(--muted);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-medium);
}
.smart-grid-filter-grid select {
  height: 38px;
  min-height: 0;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--surface);
  color: var(--ink);
  padding: 0 10px;
}
.smart-grid-filter-chips {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 2px;
}
.grid-scope-filter-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  padding: 2px 0;
}
.grid-scope-filter-chip {
  min-height: 28px;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  font-size: var(--text-xs);
  font-weight: var(--font-weight-medium);
  line-height: 1.2;
  white-space: nowrap;
}
.grid-scope-filter-chip:hover {
  background: var(--surface-2);
  color: var(--ink);
}
.grid-scope-filter-chip.is-active {
  background: #eef8f0;
  border-color: rgba(96, 208, 112, .38);
  color: var(--delegate-brand-dark, #0b3732);
}
.smart-grid-record-state-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  background: linear-gradient(180deg, #fff, #f8fafc);
  min-height: 40px;
  white-space: nowrap;
}
.smart-grid-record-state-chip {
  min-height: 30px;
  border: 1px solid transparent;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 13px;
  font-size: var(--text-xs);
  font-weight: var(--font-weight-medium);
  line-height: 1.2;
  color: #64748b;
}
.smart-grid-record-state-chip.is-active {
  color: #166534;
}
.smart-grid-record-state-chip.is-archived {
  color: #475569;
}
.smart-grid-record-state-chip.is-selected.is-active {
  background: #ecfdf3;
  border-color: #bbf7d0;
}
.smart-grid-record-state-chip.is-selected.is-archived {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #334155;
}
.staff-pipeline-toolbar .smart-grid-toolbar-row {
  align-items: center;
}
.pipeline-state-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}
.pipeline-state-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  background: #fff;
  color: var(--text-muted);
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.pipeline-state-card:hover,
.pipeline-state-card:focus-visible {
  border-color: #cbd5e1;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
  outline: none;
}
.pipeline-state-card.is-active {
  border-color: #94a3b8;
  background: #f8fafc;
}
.pipeline-state-card .pipeline-state-label {
  font-size: var(--text-xs);
  font-weight: var(--font-weight-regular);
  letter-spacing: 0;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pipeline-state-card strong {
  font-size: var(--text-lg);
  line-height: 1;
  color: var(--text);
}
.pipeline-state-card .pipeline-state-value {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: var(--text-xs);
  color: var(--text);
  font-weight: var(--font-weight-medium);
}
.pipeline-state-card.is-qld.is-active { border-color: #f472b6; background: #fce7f3; }
.pipeline-state-card.is-nsw.is-active { border-color: #60a5fa; background: #dbeafe; }
.pipeline-state-card.is-vic.is-active { border-color: #818cf8; background: #e0e7ff; }
.pipeline-state-card.is-act.is-active { border-color: #38bdf8; background: #e0f2fe; }
.pipeline-state-card.is-sa.is-active { border-color: #fb7185; background: #ffe4e6; }
.pipeline-state-card.is-wa.is-active { border-color: #f59e0b; background: #fef3c7; }
.pipeline-state-card.is-tas.is-active { border-color: #4ade80; background: #dcfce7; }
.pipeline-state-card.is-nt.is-active { border-color: #fb923c; background: #ffedd5; }
.table-number-summary,
.tenancy-workflow-number-summary {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.table-number-card,
.tenancy-workflow-number-card {
  cursor: default;
}
.table-number-card.is-info strong,
.tenancy-workflow-number-card.is-info strong { color: #1d4ed8; }
.table-number-card.is-success strong,
.tenancy-workflow-number-card.is-success strong { color: #15803d; }
.table-number-card.is-warn strong,
.tenancy-workflow-number-card.is-warn strong { color: #b45309; }
.table-number-card.is-danger strong,
.tenancy-workflow-number-card.is-danger strong { color: #b91c1c; }
.table-number-card.is-neutral strong,
.tenancy-workflow-number-card.is-neutral strong { color: var(--text); }
.pipeline-state-badge {
  background: var(--pipeline-state-bg);
  border-color: var(--pipeline-state-border);
  color: var(--pipeline-state-text);
}
.pipeline-temperature-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  background: #f8fafc;
  min-height: 40px;
}
.pipeline-temperature-chip {
  min-height: 30px;
  border: 1px solid transparent;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 12px;
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semibold);
  line-height: 1.2;
  white-space: nowrap;
  color: #64748b;
}
.pipeline-temperature-chip.is-cold {
  color: #1d4ed8;
}
.pipeline-temperature-chip.is-warm {
  color: #b45309;
}
.pipeline-temperature-chip.is-hot {
  color: #be123c;
}
.pipeline-temperature-chip.is-active.is-cold {
  background: #dbeafe;
  border-color: #93c5fd;
}
.pipeline-temperature-chip.is-active.is-warm {
  background: #ffedd5;
  border-color: #fdba74;
}
.pipeline-temperature-chip.is-active.is-hot {
  background: #ffe4e6;
  border-color: #fb7185;
}
.staff-pipeline-card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
@media (max-width: 760px) {
  .staff-pipeline-toolbar .smart-grid-toolbar-row {
    grid-template-columns: 1fr 1fr;
  }
  .staff-pipeline-toolbar .smart-grid-search-field,
  .staff-pipeline-toolbar .pipeline-temperature-toggle,
  .staff-pipeline-toolbar .smart-grid-record-state-toggle {
    grid-column: 1 / -1;
  }
  .pipeline-state-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .table-number-summary,
  .tenancy-workflow-number-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .staff-pipeline-toolbar .pipeline-temperature-toggle,
  .staff-pipeline-toolbar .smart-grid-record-state-toggle {
    justify-content: space-between;
    width: 100%;
  }
  .staff-pipeline-toolbar .pipeline-temperature-chip,
  .staff-pipeline-toolbar .smart-grid-record-state-chip {
    flex: 1 1 0;
  }
}
.smart-grid-filter-chip {
  min-height: 26px;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  font-size: var(--text-xs);
  font-weight: var(--font-weight-medium);
  white-space: nowrap;
}
.smart-grid-result-count {
  align-self: start;
  font-weight: var(--font-weight-medium);
}
.smart-grid-selection-bar {
  position: sticky;
  top: 12px;
  z-index: 12;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 54px;
  padding: 10px 12px;
  border: 1px solid rgba(96, 208, 112, .26);
  border-radius: 12px;
  background: rgba(247, 255, 248, .96);
  box-shadow: 0 10px 26px rgba(17, 24, 39, .08);
  backdrop-filter: blur(14px);
}
.smart-grid-selection-bar[hidden] {
  display: none;
}
.smart-grid-selection-bar strong {
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
  color: var(--ink);
}
.smart-grid-selection-bar .button {
  white-space: nowrap;
}
.smart-data-grid.is-all-matching .smart-grid-selection-bar {
  border-color: rgba(11, 110, 231, .28);
  background: rgba(237, 246, 255, .96);
}
.smart-grid-table table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
}
.smart-grid-table col {
  width: auto !important;
}
.smart-grid-table col:first-child {
  width: 44px !important;
}
.smart-grid-table .table-wrap,
.tenancy-workflow-table .table-wrap {
  max-height: min(72vh, 760px);
  overflow: auto;
}
.smart-grid-table {
  min-width: 0;
  max-width: 100%;
}
.tenancy-workflow-table table,
.leasing-listings-table table,
.leasing-workflow-table table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
}
.smart-grid-table.panel,
.tenancy-workflow-table.panel {
  overflow: hidden;
}
.smart-grid-table th,
.smart-grid-table td {
  vertical-align: middle;
  width: auto;
  min-width: 0;
  max-width: none;
  height: 48px;
  max-height: 48px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.25;
}
.smart-grid-table tbody tr {
  height: 48px;
}
.smart-grid-table thead th {
  position: sticky;
  top: 0;
  z-index: 6;
  background: var(--surface);
  user-select: none;
}
.smart-grid-table td > *,
.smart-grid-table th > * {
  min-width: 0;
  max-width: 100%;
}
.smart-grid-table .record-link {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: middle;
}
.table-rent-amount {
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
  max-width: 100%;
  color: var(--ink);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
  line-height: 1.15;
  white-space: nowrap;
}
.table-rent-amount span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.table-rent-amount small {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 10px;
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0;
  text-transform: lowercase;
}
.smart-grid-table .select-col {
  width: 44px;
  min-width: 44px;
  max-width: 44px;
  position: sticky;
  left: 0;
  z-index: 3;
  background: var(--surface);
}
.smart-grid-table tbody .select-col {
  z-index: 1;
}
.smart-grid-table thead .select-col {
  z-index: 9;
  box-shadow: 1px 0 0 var(--border-soft);
}
.smart-grid-table th.col-role-wide,
.smart-grid-table td.col-role-wide {
  min-width: 0;
}
.smart-grid-table th.col-property-wide,
.smart-grid-table td.col-property-wide {
  min-width: 0;
}
.smart-grid-table th.col-account-wide,
.smart-grid-table td.col-account-wide {
  min-width: 0;
}
.smart-grid-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  max-width: 100%;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 3px 9px;
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semibold);
  line-height: 1.25;
  white-space: nowrap;
}
.smart-grid-badge.is-neutral {
  background: #e5e7eb;
  border-color: #cbd5e1;
  color: #374151;
}
.smart-grid-badge.is-muted {
  background: #eef2f7;
  border-color: #cbd5e1;
  color: #475569;
}
.smart-grid-badge.is-dark {
  background: #374151;
  border-color: #1f2937;
  color: #ffffff;
}
.smart-grid-badge.is-info {
  background: #dbeafe;
  border-color: #93c5fd;
  color: #1d4ed8;
}
.smart-grid-badge.is-blue {
  background: #dbeafe;
  border-color: #93c5fd;
  color: #1d4ed8;
}
.smart-grid-badge.is-account-1 {
  background: #dbeafe;
  border-color: #93c5fd;
  color: #1d4ed8;
}
.smart-grid-badge.is-account-2 {
  background: #dcfce7;
  border-color: #86efac;
  color: #166534;
}
.smart-grid-badge.is-account-3 {
  background: #ffedd5;
  border-color: #fdba74;
  color: #9a3412;
}
.smart-grid-badge.is-account-4 {
  background: #ede9fe;
  border-color: #c4b5fd;
  color: #5b21b6;
}
.smart-grid-badge.is-account-5 {
  background: #fce7f3;
  border-color: #f9a8d4;
  color: #9d174d;
}
.smart-grid-badge.is-account-6 {
  background: #cffafe;
  border-color: #67e8f9;
  color: #155e75;
}
.smart-grid-badge.is-account-7 {
  background: #fef3c7;
  border-color: #facc15;
  color: #854d0e;
}
.smart-grid-badge.is-account-8 {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #334155;
}
.smart-grid-badge.is-fee-dynamic,
.smart-grid-badge.is-inspection-type-dynamic,
.smart-grid-badge.is-alert-dynamic {
  background: hsl(var(--badge-hue, 210), var(--badge-saturation, 76%), 91%);
  border-color: hsl(var(--badge-hue, 210), 64%, 72%);
  color: hsl(var(--badge-hue, 210), 62%, 25%);
}
.smart-grid-badge.is-success {
  background: #dcfce7;
  border-color: #86efac;
  color: #166534;
}
.smart-grid-badge.is-warn {
  background: #ffedd5;
  border-color: #fdba74;
  color: #9a3412;
}
.smart-grid-badge.is-danger {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #991b1b;
}
.smart-grid-badge.is-renewal-days-red {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #991b1b;
}
.smart-grid-badge.is-renewal-days-orange {
  background: #ffedd5;
  border-color: #fdba74;
  color: #9a3412;
}
.smart-grid-badge.is-renewal-days-blue {
  background: #dbeafe;
  border-color: #93c5fd;
  color: #1d4ed8;
}
.select-col {
  width: 44px;
  text-align: center;
}
.select-col input,
.smart-grid-card-check input {
  width: 18px;
  height: 18px;
  appearance: none;
  -webkit-appearance: none;
  display: inline-grid;
  place-content: center;
  margin: 0;
  border: 1px solid #b8c2cc;
  border-radius: 4px;
  background: #ffffff;
  color: #ffffff;
  vertical-align: middle;
  cursor: pointer;
  transition: background .14s ease, border-color .14s ease, box-shadow .14s ease;
}
.select-col input::after,
.smart-grid-card-check input::after {
  content: "";
  width: 5px;
  height: 9px;
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(0);
  transform-origin: center;
  transition: transform .12s ease;
}
.select-col input:hover,
.smart-grid-card-check input:hover {
  border-color: #7c8a98;
}
.select-col input:focus-visible,
.smart-grid-card-check input:focus-visible {
  outline: 3px solid rgba(96, 208, 112, .24);
  outline-offset: 2px;
}
.select-col input:checked,
.smart-grid-card-check input:checked {
  background: var(--delegate-brand-primary, #60d070);
  border-color: var(--delegate-brand-primary, #60d070);
}
.select-col input:checked::after,
.smart-grid-card-check input:checked::after {
  transform: rotate(45deg) scale(1);
}
.smart-grid-column-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  color: var(--muted);
  font-weight: var(--font-weight-medium);
  min-width: 0;
}
.smart-grid-column-heading span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.grid-header-sortable {
  cursor: pointer;
}
.grid-header-sortable .smart-grid-sort-icon {
  opacity: 0;
  color: var(--text-faint);
  flex: 0 0 auto;
  transition: opacity .16s ease, color .16s ease;
}
.grid-header-sortable:hover .smart-grid-sort-icon,
.grid-header-sortable:focus-within .smart-grid-sort-icon,
.grid-header-sorted .smart-grid-sort-icon {
  opacity: 1;
}
.grid-header-sorted {
  color: var(--ink);
  background: #f8fafc;
}
.grid-header-sorted .smart-grid-column-heading {
  color: var(--ink);
}
.grid-header-sorted .smart-grid-sort-icon {
  color: var(--delegate-brand-primary, #60d070);
}
.smart-grid-load-more {
  display: grid;
  justify-items: center;
  gap: 8px;
  justify-content: center;
  padding: 4px 0 2px;
}
.smart-grid-load-more .button svg {
  animation: smart-grid-soft-spin 1.4s linear infinite;
}
.smart-grid-load-more .button:not(.is-loading) svg {
  animation-play-state: paused;
}
.smart-grid-bottom-skeleton {
  width: min(680px, 100%);
  display: grid;
  gap: 8px;
}
.smart-grid-bottom-skeleton[hidden] {
  display: none;
}
.smart-grid-empty {
  text-align: left;
  display: grid;
  justify-items: start;
  gap: 4px;
}
.smart-grid-empty p {
  margin: 0;
  max-width: 520px;
}
.smart-grid-empty-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.smart-grid-mobile-cards {
  position: relative;
}
.smart-grid-mobile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.smart-grid-select-mode-button {
  justify-self: start;
  margin-bottom: 2px;
}
.smart-grid-mobile-card {
  position: relative;
  transition: border-color .15s ease, background .15s ease, transform .15s ease;
}
.smart-grid-mobile-card:has([data-row-select]:checked) {
  border-color: rgba(96, 208, 112, .46);
  background: #fbfffb;
}
.smart-grid-mobile-card a {
  color: inherit;
  text-decoration: none;
}
.smart-grid-card-check {
  position: absolute;
  right: 12px;
  top: 12px;
  display: none;
  z-index: 2;
}
.smart-data-grid.is-selecting .smart-grid-card-check {
  display: block;
}
.smart-data-grid.is-selecting .smart-grid-mobile-card {
  padding-right: 46px;
}
.smart-grid-bulk-modal {
  width: min(760px, calc(100vw - 28px));
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 0;
  background: var(--surface);
  box-shadow: 0 24px 72px rgba(17, 24, 39, .24);
}
.smart-grid-bulk-modal::backdrop {
  background: rgba(17, 24, 39, .32);
  backdrop-filter: blur(4px);
}
.smart-grid-bulk-form {
  display: grid;
  gap: 14px;
  padding: 18px;
}
.smart-grid-bulk-form > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.smart-grid-bulk-form > header strong {
  display: block;
  color: var(--ink);
  font-size: var(--text-lg);
  font-weight: var(--font-weight-medium);
}
.smart-grid-bulk-form > header span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: var(--text-sm);
}
.smart-grid-bulk-form label {
  display: grid;
  gap: 6px;
  align-content: start;
  color: var(--muted);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
}
.smart-grid-bulk-form label span {
  color: var(--muted);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
}
.smart-grid-bulk-form .form-grid,
.smart-grid-bulk-form .filter-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}
.smart-grid-bulk-form .stack-form {
  display: grid;
  gap: 14px;
}
.smart-grid-bulk-form input,
.smart-grid-bulk-form select,
.smart-grid-bulk-form textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  padding: 10px 12px;
  font-size: var(--text-base);
  font-weight: var(--font-weight-regular);
  line-height: 1.35;
  box-shadow: 0 1px 0 rgba(17, 24, 39, .02);
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
.smart-grid-bulk-form .modal-search-field input,
.abn-lookup-field .modal-search-field input {
  min-height: 42px;
  height: 42px;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
  box-shadow: none;
}

.public-proposal-body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 8% -8%, color-mix(in srgb, var(--proposal-brand, #60d36d) 18%, transparent), transparent 28%),
    radial-gradient(circle at 96% 3%, color-mix(in srgb, var(--proposal-brand-secondary, var(--proposal-brand, #103030)) 14%, transparent), transparent 30%),
    linear-gradient(180deg, #f8fbfa 0%, #ffffff 46%, #f9fbfa 100%);
  color: var(--ink);
  font-family: var(--font-sans);
}
.public-proposal {
  width: min(1160px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 24px 0 60px;
  display: grid;
  gap: 18px;
}
.public-proposal-topbar {
  min-height: 58px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.public-proposal-delegate-logo {
  display: inline-flex;
  align-items: center;
  width: 174px;
  height: 46px;
}
.public-proposal-delegate-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
}
.public-proposal-prepared {
  display: grid;
  justify-items: end;
  gap: 2px;
}
.public-proposal-prepared small {
  color: var(--muted);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-regular);
}
.public-proposal-prepared span,
.public-proposal-brand-row span,
.public-proposal-section-head span,
.public-proposal-journey > div span {
  color: var(--muted);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-medium);
}
.public-proposal-prepared strong {
  color: var(--ink);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
}
.public-proposal-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
  gap: 26px;
  align-items: stretch;
  border: 1px solid color-mix(in srgb, var(--proposal-brand, #103030) 18%, #dfe8e3);
  border-radius: 28px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--proposal-brand, #103030) 9%, #fff) 0%, rgba(255,255,255,.94) 52%, #fff 100%);
  box-shadow: 0 28px 70px rgba(15, 23, 42, .10);
  padding: 30px;
  overflow: hidden;
}
.public-proposal-hero-copy {
  display: grid;
  align-content: center;
  gap: 18px;
  min-width: 0;
}
.public-proposal-brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.public-proposal-logo {
  width: 88px;
  height: 64px;
  flex: 0 0 auto;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: #fff;
  color: var(--proposal-brand, var(--accent));
  border: 1px solid color-mix(in srgb, var(--proposal-brand, #103030) 18%, var(--border));
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(15, 23, 42, .07);
}
.public-proposal-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 9px;
}
.public-proposal-brand-row strong {
  display: block;
  margin-top: 3px;
  color: var(--ink);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
}
.public-proposal-hero p {
  margin: 0;
  max-width: 680px;
  color: #34454f;
  font-size: 17px;
  line-height: 1.62;
}
.public-proposal-hero h1 {
  max-width: 760px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(36px, 5vw, 64px);
  line-height: .98;
  font-weight: var(--font-weight-semibold);
  letter-spacing: -0.02em;
}
.public-proposal-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.public-proposal-hero-actions .button,
.public-proposal-actions .button {
  min-height: 44px;
  border-radius: 12px;
}
.public-proposal-preview {
  min-height: 360px;
  border: 1px solid rgba(15, 23, 42, .09);
  border-radius: 22px;
  background: rgba(255,255,255,.86);
  box-shadow: 0 20px 44px rgba(15, 23, 42, .10);
  padding: 16px;
  display: grid;
  gap: 12px;
  align-content: start;
  position: relative;
}
.public-proposal-preview::before {
  content: "";
  position: absolute;
  inset: auto 18px 18px auto;
  width: 110px;
  height: 110px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--proposal-brand, #60d36d) 12%, transparent);
  filter: blur(24px);
  pointer-events: none;
}
.proposal-preview-top {
  display: flex;
  gap: 6px;
}
.proposal-preview-top span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #d8e1e3;
}
.proposal-preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-bottom: 6px;
}
.proposal-preview-header strong {
  color: var(--ink);
  font-size: var(--text-base);
  font-weight: var(--font-weight-semibold);
}
.proposal-preview-header em {
  color: var(--muted);
  font-size: var(--text-xs);
  font-style: normal;
}
.proposal-preview-screen {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  border: 1px solid color-mix(in srgb, var(--proposal-brand, #103030) 12%, #e4ebe8);
  border-radius: 16px;
  padding: 10px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--proposal-brand, #103030) 7%, #fff) 0%, #fff 100%);
}
.proposal-preview-screen div {
  min-width: 0;
  border-radius: 12px;
  padding: 10px;
  background: rgba(255,255,255,.74);
  border: 1px solid rgba(15, 23, 42, .05);
}
.proposal-preview-screen span,
.proposal-preview-screen strong {
  display: block;
}
.proposal-preview-screen span {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.2;
}
.proposal-preview-screen strong {
  margin-top: 4px;
  color: var(--ink);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semibold);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.proposal-preview-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 11px;
  align-items: center;
  border: 1px solid #e4ebe8;
  border-radius: 15px;
  background: #fff;
  padding: 12px;
}
.proposal-preview-row.is-hot {
  border-color: color-mix(in srgb, var(--proposal-brand, #60d36d) 34%, #dbe7e2);
  background: color-mix(in srgb, var(--proposal-brand, #60d36d) 6%, #fff);
}
.proposal-preview-row i {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--proposal-brand, #103030);
  background: color-mix(in srgb, var(--proposal-brand, #60d36d) 10%, #f8fafc);
}
.proposal-preview-row strong,
.proposal-preview-row span {
  display: block;
}
.proposal-preview-row strong {
  color: var(--ink);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
}
.proposal-preview-row span {
  margin-top: 2px;
  color: var(--muted);
  font-size: var(--text-xs);
  line-height: 1.35;
}
.public-proposal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.public-proposal-grid article,
.public-proposal-section,
.public-proposal-actions,
.public-proposal-journey,
.public-proposal-response {
  border: 1px solid var(--border);
  border-radius: 22px;
  background: #fff;
  padding: 22px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .025);
}
.public-proposal h2 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0;
}
.public-proposal p {
  margin: 0;
  color: var(--text-secondary);
  font-size: var(--text-base);
  line-height: 1.55;
}
.public-proposal-insights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.public-proposal-insights article {
  border: 1px solid #e4ebe8;
  border-radius: 18px;
  background: rgba(255,255,255,.84);
  padding: 16px;
}
.public-proposal-insights span,
.public-proposal-total span {
  display: block;
  color: var(--muted);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-medium);
}
.public-proposal-insights strong {
  display: block;
  margin-top: 7px;
  color: var(--ink);
  font-size: 20px;
  font-weight: var(--font-weight-semibold);
}
.public-proposal-section-head {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  margin-bottom: 16px;
}
.public-proposal-section-head h2 {
  margin: 3px 0 0;
}
.public-proposal-stack-grid,
.public-proposal-feature-grid {
  display: grid;
  gap: 12px;
}
.public-proposal-stack-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.public-proposal-stack-grid article,
.public-proposal-feature-grid article {
  min-width: 0;
  border: 1px solid #e3ebe8;
  border-radius: 18px;
  background: linear-gradient(180deg, #fff 0%, #f9fbfa 100%);
  padding: 15px;
}
.public-proposal-stack-grid article span {
  display: block;
  color: var(--muted);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-medium);
}
.public-proposal-stack-grid article strong {
  display: block;
  margin-top: 6px;
  color: var(--ink);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
  line-height: 1.35;
}
.public-proposal-feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.public-proposal-feature-grid article {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px 12px;
  align-items: start;
}
.public-proposal-feature-grid article i {
  grid-row: span 2;
  width: 38px;
  height: 38px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  color: var(--proposal-brand, #103030);
  background: color-mix(in srgb, var(--proposal-brand, #60d36d) 10%, #fff);
  border: 1px solid color-mix(in srgb, var(--proposal-brand, #60d36d) 20%, #dbe7e2);
}
.public-proposal-feature-grid article strong {
  color: var(--ink);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
}
.public-proposal-feature-grid article span {
  grid-column: 2;
  color: var(--muted);
  font-size: var(--text-sm);
  line-height: 1.45;
}
.public-proposal-items {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--border);
}
.public-proposal-items article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  background: #fff;
  padding: 15px 16px;
}
.public-proposal-items strong,
.public-proposal-total strong {
  display: block;
  color: var(--ink);
  font-weight: var(--font-weight-semibold);
}
.public-proposal-items span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: var(--text-sm);
}
.public-proposal-total {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.public-proposal-total div {
  border: 1px solid color-mix(in srgb, var(--proposal-brand, #103030) 18%, #cddfd5);
  border-radius: 18px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--proposal-brand, #103030) 6%, #fff) 0%, #fff 100%);
  padding: 17px;
}
.public-proposal-total strong {
  margin-top: 7px;
  color: var(--proposal-brand, var(--accent));
  font-size: 25px;
}
.public-proposal-waiver {
  margin-top: 12px;
  border: 1px solid color-mix(in srgb, var(--proposal-brand, #103030) 20%, #dbe7e2);
  border-radius: 16px;
  background: color-mix(in srgb, var(--proposal-brand, #60d36d) 7%, #fff);
  padding: 14px;
  display: grid;
  gap: 4px;
}
.public-proposal-waiver strong {
  color: var(--ink);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
}
.public-proposal-waiver span {
  color: var(--muted);
  font-size: var(--text-sm);
  line-height: 1.45;
}
.public-proposal-journey {
  display: grid;
  grid-template-columns: minmax(0, .62fr) minmax(0, 1fr);
  gap: 20px;
}
.public-proposal-journey h2 {
  margin: 4px 0 0;
}
.public-proposal-journey > div p {
  margin-top: 10px;
}
.public-proposal-journey ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  counter-reset: journey;
}
.public-proposal-journey li {
  counter-increment: journey;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  border: 1px solid #e5ece9;
  border-radius: 16px;
  padding: 12px;
  background: #fff;
}
.public-proposal-journey li::before {
  content: counter(journey);
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--proposal-brand, #60d36d) 12%, #fff);
  color: var(--proposal-brand, #103030);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
  border: 1px solid color-mix(in srgb, var(--proposal-brand, #60d36d) 22%, #dbe7e2);
}
.public-proposal-journey li strong {
  display: block;
  grid-column: 2;
  color: var(--ink);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
}
.public-proposal-journey li span {
  display: block;
  grid-column: 2;
  margin-top: 2px;
  color: var(--muted);
  font-size: var(--text-sm);
  line-height: 1.4;
}
.public-proposal-actions {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(280px, .72fr) minmax(280px, .78fr);
  gap: 14px;
  align-items: start;
}
.public-proposal-actions form {
  display: grid;
  gap: 10px;
  border: 1px solid #e3ebe8;
  border-radius: 18px;
  padding: 16px;
  background: #fff;
}
.public-proposal-actions label {
  display: grid;
  gap: 7px;
}
.public-proposal-actions label span {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
}
.public-proposal-actions input,
.public-proposal-actions textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  padding: 11px 12px;
  color: var(--ink);
  font: inherit;
}
.public-proposal-actions textarea {
  min-height: 108px;
  resize: vertical;
}
.public-proposal-accept-form {
  border-color: color-mix(in srgb, var(--proposal-brand, #103030) 22%, #dbe7e2) !important;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--proposal-brand, #103030) 6%, #fff) 0%, #fff 76%) !important;
}
.public-proposal-actions .button.primary {
  background: var(--proposal-brand, var(--accent));
  border-color: var(--proposal-brand, var(--accent));
}
.public-proposal-actions .button.primary:hover {
  background: color-mix(in srgb, var(--proposal-brand, var(--accent)) 88%, #000);
}
.public-proposal-response {
  display: grid;
  gap: 4px;
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #166534;
}
.public-proposal-response.is-warning {
  background: #fff7ed;
  border-color: #fed7aa;
  color: #9a3412;
}
.public-proposal-response.is-warning strong,
.public-proposal-response.is-warning span {
  color: #9a3412;
}
.public-proposal-response strong {
  color: #166534;
  font-size: var(--text-base);
  font-weight: var(--font-weight-semibold);
}
.public-proposal-response span {
  color: #166534;
  font-size: var(--text-sm);
}
.smart-grid-bulk-form select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position:
    calc(100% - 17px) 19px,
    calc(100% - 12px) 19px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 34px;
}
.smart-grid-bulk-form textarea {
  min-height: 104px;
  resize: vertical;
}
.smart-grid-bulk-form input::placeholder,
.smart-grid-bulk-form textarea::placeholder {
  color: var(--muted);
  opacity: .74;
}
.smart-grid-bulk-form input:hover,
.smart-grid-bulk-form select:hover,
.smart-grid-bulk-form textarea:hover {
  border-color: var(--border-strong);
}
.smart-grid-bulk-form input:focus,
.smart-grid-bulk-form select:focus,
.smart-grid-bulk-form textarea:focus {
  outline: none;
  border-color: rgba(96, 208, 112, .78);
  box-shadow: 0 0 0 3px rgba(96, 208, 112, .18);
}
.smart-grid-bulk-form .modal-search-field input:hover,
.smart-grid-bulk-form .modal-search-field input:focus,
.abn-lookup-field .modal-search-field input:hover,
.abn-lookup-field .modal-search-field input:focus {
  border-color: transparent;
  box-shadow: none;
}
.smart-grid-bulk-form input:disabled,
.smart-grid-bulk-form select:disabled,
.smart-grid-bulk-form textarea:disabled {
  background: var(--surface-2);
  color: var(--muted);
  cursor: not-allowed;
}
.smart-grid-bulk-form label:has(input[required]) > span::after,
.smart-grid-bulk-form label:has(select[required]) > span::after,
.smart-grid-bulk-form label:has(textarea[required]) > span::after {
  content: " *";
  color: #dc2626;
}
.smart-grid-bulk-form .toggle-row {
  min-height: 44px;
  align-self: end;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  padding: 10px 12px;
}
.smart-grid-bulk-form .toggle-row input[type="checkbox"] {
  width: var(--switch-width) !important;
  min-height: 0 !important;
  box-shadow: none;
}
.smart-grid-bulk-form > .filter-actions {
  justify-content: flex-end;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}
.smart-grid-bulk-preview {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: #fbfcfd;
}
.smart-grid-bulk-preview h3 {
  margin: 0;
  padding: 12px 14px 2px;
  font-size: var(--text-md);
  font-weight: var(--font-weight-medium);
}
.smart-grid-bulk-preview p {
  margin: 0;
  padding: 0 14px 10px;
  color: var(--muted);
  font-size: var(--text-sm);
}
.smart-grid-bulk-preview .table-wrap {
  max-height: 280px;
}
.smart-grid-bulk-preview table {
  min-width: 620px;
  background: var(--surface);
}
@keyframes smart-grid-soft-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
[data-tooltip] { position: relative; }
[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%);
  width: max-content;
  max-width: 280px;
  white-space: normal;
  background: #10242f;
  color: #fff;
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 12px;
  line-height: 1.35;
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s ease;
  z-index: 20;
}
[data-tooltip]:hover::after,
[data-tooltip]:focus-visible::after { opacity: 1; }
.has-floating-tooltips [data-tooltip]::after,
.has-floating-tooltips .record-info-tooltip [role="tooltip"] {
  display: none;
}
.floating-tooltip {
  position: fixed;
  z-index: 2147483000;
  max-width: min(300px, calc(100vw - 20px));
  border-radius: 9px;
  background: #111827;
  color: #fff;
  box-shadow: 0 16px 38px rgba(15, 23, 42, .24);
  padding: 8px 10px;
  font-size: 12px;
  font-weight: var(--font-weight-regular);
  line-height: 1.35;
  pointer-events: none;
  overflow-wrap: anywhere;
}
.floating-tooltip[hidden] {
  display: none;
}
.skeleton {
  border-radius: var(--radius);
  min-height: 72px;
  background: linear-gradient(90deg, var(--delegate-skeleton-base, #edf2f5) 25%, var(--delegate-skeleton-highlight, #f8fafb) 37%, var(--delegate-skeleton-base, #edf2f5) 63%);
  background-size: 400% 100%;
  animation: shimmer 1.2s ease-in-out infinite;
}
.mention-token {
  display: inline-flex;
  align-items: center;
  border-radius: 6px;
  background: rgba(96, 208, 112, .13);
  border: 1px solid rgba(96, 208, 112, .2);
  color: #0f5132;
  padding: 0 4px;
  font-weight: var(--font-weight-medium);
}
.comment-composer {
  position: relative;
}
.mention-suggestions {
  position: absolute;
  left: 46px;
  right: 10px;
  top: 84px;
  z-index: 30;
  max-height: 236px;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: 0 16px 36px rgba(17, 24, 39, .12);
  padding: 6px;
}
.mention-suggestion-item {
  width: 100%;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 8px;
  text-align: left;
  cursor: pointer;
}
.mention-suggestion-item:hover,
.mention-suggestion-item.is-active {
  background: var(--surface-muted);
}
.mention-suggestion-item strong {
  display: block;
  color: var(--ink);
  font-weight: var(--font-weight-medium);
  font-size: var(--text-base);
}
.mention-suggestion-item small {
  display: block;
  color: var(--muted);
  font-size: var(--text-xs);
  margin-top: 1px;
}
.mention-avatar {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: #eef6f0;
  color: #165c2a;
  display: grid;
  place-items: center;
  overflow: hidden;
  flex: 0 0 34px;
  font-size: var(--text-xs);
  font-weight: var(--font-weight-medium);
}
.mention-avatar-fallback {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
}
.mention-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mention-suggestion-state {
  padding: 12px;
  color: var(--muted);
  font-size: var(--text-sm);
}
.mention-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 0;
}
.mention-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(96, 208, 112, .22);
  border-radius: 999px;
  background: rgba(96, 208, 112, .12);
  color: #0f5132;
  padding: 3px 7px 3px 4px;
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
}
.mention-chip-avatar {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #eef6f0;
  color: #165c2a;
  display: grid;
  place-items: center;
  overflow: hidden;
  flex: 0 0 22px;
  font-size: 10px;
  font-weight: var(--font-weight-medium);
}
.mention-chip-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mention-chip button {
  width: 18px;
  height: 18px;
  border: 0;
  border-radius: 999px;
  background: rgba(15, 81, 50, .1);
  color: inherit;
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }

.rent-roll-brief {
  display: grid;
  grid-template-columns: minmax(280px, .9fr) minmax(0, 1.4fr);
  gap: 12px;
  margin-bottom: 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: linear-gradient(135deg, #ffffff 0%, #f7faf8 62%, #eef7f0 100%);
  box-shadow: 0 12px 28px rgba(16, 48, 48, .07);
  overflow: hidden;
}
.rent-roll-brief-primary {
  display: grid;
  align-content: center;
  gap: 7px;
  padding: 18px 20px;
  border-right: 1px solid rgba(16, 48, 48, .08);
}
.rent-roll-brief-primary span,
.rent-roll-brief-fact span {
  color: var(--muted);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-medium);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.rent-roll-brief-primary strong {
  color: var(--ink);
  font-size: clamp(26px, 3vw, 38px);
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0;
  line-height: 1;
}
.rent-roll-brief-primary p {
  margin: 0;
  color: var(--text-secondary);
  font-size: var(--text-sm);
}
.rent-roll-brief-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  gap: 1px;
  background: rgba(16, 48, 48, .08);
}
.rent-roll-brief-fact {
  display: grid;
  align-content: center;
  gap: 5px;
  min-height: 112px;
  padding: 14px 15px;
  background: rgba(255, 255, 255, .82);
}
.rent-roll-brief-fact strong {
  color: var(--ink);
  font-size: 24px;
  font-weight: var(--font-weight-semibold);
  line-height: 1.05;
}
.rent-roll-brief-fact small {
  color: var(--muted);
  font-size: var(--text-xs);
}
.rent-roll-brief-fact.is-positive {
  background: #f0fdf4;
}
.rent-roll-brief-fact.is-risk {
  background: #fff1f2;
}
.rent-roll-brief-fact.is-warning {
  background: #fffbeb;
}
.rent-roll-summary {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
.rent-roll-metric {
  display: grid;
  gap: 6px;
  padding: 13px 14px;
  border: 1px solid var(--border);
  border-left-width: 1px;
  border-radius: 12px;
  background: #fff;
  box-shadow: none;
}
.rent-roll-metric.is-aami {
  background: #f8fbff;
}
.rent-roll-metric.is-value {
  background: #f7fcf9;
}
.rent-roll-metric.is-included {
  background: #f8f8ff;
}
.rent-roll-metric.is-top {
  background: #f5fbf7;
}
.rent-roll-metric.is-low {
  background: #fff8f8;
}
.rent-roll-metric span {
  color: var(--muted);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-medium);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.rent-roll-metric strong {
  color: var(--ink);
  font-size: 21px;
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0;
  line-height: 1.1;
}
.rent-roll-metric small {
  color: var(--muted);
  font-size: var(--text-xs);
}
.rent-roll-metric.is-warning {
  background: #fffbeb;
}
.rent-roll-panel {
  overflow: hidden;
}
.rent-roll-threshold-strip {
  margin-bottom: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fbfcfc;
  padding: 12px;
}
.rent-roll-threshold-form {
  display: grid;
  grid-template-columns: minmax(210px, .9fr) repeat(2, minmax(170px, .55fr)) auto;
  gap: 10px;
  align-items: end;
}
.rent-roll-threshold-form > div:first-child {
  display: grid;
  gap: 3px;
  align-self: center;
}
.rent-roll-threshold-form > div:first-child strong {
  color: var(--ink);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
}
.rent-roll-threshold-form > div:first-child small {
  color: var(--muted);
  font-size: var(--text-xs);
}
.rent-roll-threshold-form label {
  display: grid;
  gap: 6px;
}
.rent-roll-threshold-form label span {
  color: var(--muted);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-medium);
}
.rent-roll-threshold-form input {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-weight: var(--font-weight-medium);
  padding: 8px 10px;
}
.rent-roll-threshold-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}
.rent-roll-controls {
  align-items: end;
  gap: 16px;
}
.rent-roll-controls > div:first-child {
  min-width: min(440px, 100%);
}
.rent-roll-controls p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-regular);
}
.rent-roll-controls label {
  display: grid;
  gap: 6px;
  min-width: 170px;
}
.rent-roll-controls label span,
.rent-roll-multiplier span {
  color: var(--muted);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-medium);
}
.rent-roll-controls input,
.rent-roll-multiplier input {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-weight: var(--font-weight-medium);
  padding: 8px 10px;
}
.rent-roll-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}
.rent-roll-table-wrap {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  overflow: auto;
}
.rent-roll-table {
  min-width: 1120px;
  border-collapse: collapse;
}
.rent-roll-check-all,
.rent-roll-table td:first-child {
  width: 36px;
  text-align: center;
}
.rent-roll-row-check,
.rent-roll-check-all input {
  width: 16px;
  height: 16px;
  accent-color: var(--delegate-brand-secondary, #103030);
}
.rent-roll-table th {
  white-space: nowrap;
  color: var(--muted);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-medium);
  letter-spacing: .02em;
}
.rent-roll-table td {
  vertical-align: middle;
  border-top: 1px solid var(--border);
}
.rent-roll-table td small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: var(--text-xs);
}
.rent-roll-property {
  display: grid;
  gap: 3px;
  min-width: 220px;
}
.rent-roll-property strong {
  color: var(--ink);
  font-weight: var(--font-weight-medium);
}
.rent-roll-multiplier {
  display: grid;
  gap: 4px;
  width: 116px;
}
.rent-roll-multiplier small {
  color: var(--info);
  font-size: 11px;
  font-weight: var(--font-weight-medium);
}
.rent-roll-status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 9px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-muted);
  color: var(--muted);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-medium);
  white-space: nowrap;
}
.rent-roll-performance {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 9px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-muted);
  color: var(--muted);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-medium);
  white-space: nowrap;
}
.rent-roll-performance-top-performer {
  border-color: #a7f3d0;
  background: #dcfce7;
  color: #166534;
}
.rent-roll-performance-under-performing {
  border-color: #fecaca;
  background: #fee2e2;
  color: #991b1b;
}
.rent-roll-performance-stable {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
}
.rent-roll-performance-not-ready,
.rent-roll-performance-not-configured,
.rent-roll-performance-thresholds-needed {
  border-color: var(--border);
  background: var(--surface-muted);
  color: var(--muted);
}
.due-diligence-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr);
  gap: 14px;
  margin-bottom: 16px;
}
.due-diligence-panel .panel-body {
  padding-top: 2px;
}
.diligence-pack-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.diligence-pack-list > div,
.diligence-flag-list > div {
  display: grid;
  gap: 5px;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  background: transparent;
}
.diligence-pack-list > div:last-child,
.diligence-flag-list > div:last-child {
  border-bottom: 0;
}
.diligence-pack-list strong {
  color: var(--ink);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
}
.diligence-pack-list span,
.diligence-flag-list p {
  margin: 0;
  color: var(--muted);
  font-size: var(--text-sm);
  line-height: 1.42;
}
.diligence-pack-list small {
  color: var(--text-faint);
  font-size: var(--text-xs);
}
.diligence-flag-list {
  display: grid;
  gap: 9px;
}
.diligence-exposure-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
}
.diligence-exposure-strip span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 28px;
  padding: 4px 9px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: var(--text-xs);
}
.diligence-exposure-strip strong {
  color: var(--ink);
  font-weight: var(--font-weight-semibold);
}
.diligence-risk {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  min-height: 24px;
  padding: 3px 9px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-muted);
  color: var(--muted);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-medium);
  white-space: nowrap;
}
.diligence-risk-sale-ready {
  border-color: #a7f3d0;
  background: #dcfce7;
  color: #166534;
}
.diligence-risk-needs-review {
  border-color: #fed7aa;
  background: #ffedd5;
  color: #9a3412;
}
.diligence-risk-high-risk {
  border-color: #fecaca;
  background: #fee2e2;
  color: #991b1b;
}
.due-diligence-table {
  min-width: 1240px;
}
.due-diligence-table td {
  vertical-align: middle;
}
.due-diligence-table td strong {
  color: var(--ink);
  font-weight: var(--font-weight-medium);
}
.due-diligence-table td small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: var(--text-xs);
  line-height: 1.35;
}
.diligence-score {
  display: grid;
  gap: 7px;
  min-width: 92px;
}
.diligence-score strong {
  font-size: var(--text-base);
}
.diligence-score span {
  display: block;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #e5e7eb;
}
.diligence-score span::before {
  content: "";
  display: block;
  width: var(--score, 0%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ef4444, #f59e0b 42%, #22c55e);
}
.rent-roll-status-ready {
  border-color: #bfe9ca;
  background: var(--success-bg);
  color: var(--success);
}
.rent-roll-status-missing-rent,
.rent-roll-status-missing-management-fee,
.rent-roll-status-missing-fee-percentage {
  border-color: #f7d7a8;
  background: var(--warn-bg);
  color: var(--warn);
}
.rent-roll-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 14px;
}
.rent-roll-settings-form,
.settings-form {
  display: grid;
  gap: 14px;
}
.settings-edit-layout {
  display: grid;
  gap: 14px;
}
.settings-edit-group .panel-head h3 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.settings-grid label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
}
.settings-grid input,
.settings-grid select,
.settings-grid textarea {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  padding: 8px 10px;
}
.settings-section-kicker {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding-top: 2px;
}
.settings-section-kicker span {
  color: var(--muted);
  font-size: 11px;
  font-weight: var(--font-weight-medium);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.settings-section-kicker strong {
  color: var(--ink);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
}
.settings-toggle-field {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: 10px;
  background: #fbfcfd;
}
.settings-save-row {
  display: flex;
  justify-content: flex-end;
  min-height: 28px;
}
.settings-grid small,
.settings-note {
  color: var(--muted);
  font-size: var(--text-sm);
}
.settings-impact-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.settings-impact-strip a {
  min-height: 42px;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  background: linear-gradient(180deg, #fff, #f8fafc);
  color: var(--ink);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
}
.settings-impact-strip a svg {
  color: var(--sidebar-item-active-text);
  flex: 0 0 auto;
}
.office-settings-layout {
  align-items: start;
}
.office-settings-list {
  display: grid;
  gap: 10px;
}
.office-settings-item {
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  background: #fff;
}
.office-settings-item summary {
  min-height: 58px;
  padding: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  list-style: none;
}
.office-settings-item summary::-webkit-details-marker {
  display: none;
}
.office-settings-item summary span {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.office-settings-item summary strong {
  color: var(--ink);
  font-weight: var(--font-weight-semibold);
}
.office-settings-item summary small {
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.office-settings-item summary em {
  flex: 0 0 auto;
  font-style: normal;
  color: var(--muted);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-medium);
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  padding: 4px 8px;
  background: #f8fafc;
}
.office-settings-item .office-settings-form {
  border-top: 1px solid var(--border-soft);
  padding: 12px;
}
.office-settings-toggles {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}
.renewal-advertising-alert {
  margin-bottom: 12px;
}
.leasing-campaign-candidates .panel-head h3 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.leasing-campaign-candidates .compact-list {
  gap: 0;
}
.leasing-campaign-candidates .search-result-link {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}
.leasing-campaign-candidates .search-result-link em {
  color: var(--muted);
  font-size: var(--text-xs);
  font-style: normal;
  font-weight: var(--font-weight-medium);
}

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

@media (max-width: 1023px) {
  .app-shell { grid-template-columns: 84px minmax(0, 1fr); }
  .brand span, .brand strong, .nav-label, .nav-text, .sidebar-profile-main span:last-child { display: none; }
  .brand { justify-content: center; padding-left: 0; padding-right: 0; }
  .brand-sidebar { display: flex; justify-content: center; padding: 6px 0 18px; overflow: hidden; }
  .brand-logo-sidebar { width: 42px; height: 42px; object-fit: cover; object-position: left center; }
  .rent-roll-brief {
    grid-template-columns: 1fr;
  }
  .rent-roll-brief-primary {
    border-right: 0;
    border-bottom: 1px solid rgba(16, 48, 48, .08);
  }
  .rent-roll-brief-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .rent-roll-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .rent-roll-controls {
    align-items: stretch;
  }
  .rent-roll-threshold-form {
    grid-template-columns: 1fr;
  }
  .rent-roll-actions {
    justify-content: flex-start;
  }
  .due-diligence-layout,
  .diligence-pack-list {
    grid-template-columns: 1fr;
  }
  .nav-link { justify-content: center; }
  .sidebar-profile {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 6px;
  }
  .sidebar-profile-main {
    justify-content: center;
    padding: 6px;
  }
  .sidebar-profile-action {
    width: 34px;
    height: 34px;
  }
  .nav-group-summary {
    justify-content: center;
  }
  .nav-group-hub {
    flex: 0 0 auto;
    justify-content: center;
    padding: 9px 0;
  }
  .nav-group-toggle {
    display: none;
  }
  .nav-children {
    margin: 2px 0 7px;
  }
  .nav-child-link {
    justify-content: center;
    padding: 8px 0;
  }
  .hub-attention-list,
  .hub-module-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .manager-hub-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .manager-hub-dashboard {
    grid-template-columns: 1fr;
  }
  .hub-map-panel {
    grid-column: auto;
  }
  .hub-diagram {
    grid-template-columns: 1fr;
  }
  .hub-diagram-spokes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .smart-grid-filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .dashboard-welcome-hero {
    grid-template-columns: 1fr;
    align-items: start;
  }
  .dashboard-hero-side {
    justify-self: start;
    width: min(100%, 360px);
  }
  .staff-dashboard-head {
    flex-direction: column;
    align-items: stretch;
  }
  .staff-dashboard-actions {
    justify-content: flex-start;
  }
  .staff-dashboard-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .staff-dashboard-workflows {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .data-health-command-head {
    flex-direction: column;
    align-items: stretch;
  }
  .data-health-command-grid,
  .data-health-command-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .staff-import-detail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .staff-report-command-head {
    flex-direction: column;
    align-items: stretch;
  }
  .staff-report-command-actions {
    justify-content: flex-start;
  }
  .staff-report-command-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .staff-activity-command {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .technology-stack-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .tenancy-workflow-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .workflow-record-layout,
  .workflow-record-header {
    grid-template-columns: 1fr;
  }
  .workflow-record-content {
    grid-column: auto;
    grid-template-columns: 1fr;
  }
  .workflow-record-columns {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .workflow-record-actions {
    justify-content: flex-start;
  }
  .workflow-record-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .technology-stack-grid.is-preview {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }
  .grid.metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-grid { grid-template-columns: 1fr; }
  .filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .portal-action-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .portal-request-card { grid-template-columns: 1fr; }
  .limit-grid { grid-template-columns: 1fr; }
  .summary-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .related-grid { grid-template-columns: 1fr; }
  .record-primary-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .record-workspace-layout { grid-template-columns: 1fr; }
  .pipeline-record-columns {
    grid-template-columns: 1fr;
  }
  .staff-client-checklist,
  .staff-client-metric-grid,
  .staff-client-fact-grid {
    grid-template-columns: 1fr;
  }
  .staff-client-overview-column,
  .staff-client-onboarding-column {
    gap: 14px;
  }
  .staff-client-onboarding-heading {
    margin-left: 0;
  }
  .pipeline-step-fields {
    grid-template-columns: 1fr;
  }
  .pipeline-step-actions,
  .pipeline-step-action-form {
    align-items: stretch;
    flex-direction: column;
  }
  .pipeline-step-action-form .button,
  .pipeline-step-actions .button {
    width: 100%;
    justify-content: center;
  }
  .email-template-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .email-trigger-queue-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .work-queue-health-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .email-template-library-layout {
    grid-template-columns: 1fr;
  }
  .pipeline-stat-grid,
  .pipeline-onboarding-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .public-proposal-hero,
  .public-proposal-grid,
  .public-proposal-section-head,
  .public-proposal-journey,
  .public-proposal-actions {
    grid-template-columns: 1fr;
  }
  .public-proposal-total,
  .public-proposal-insights,
  .public-proposal-stack-grid,
  .public-proposal-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .property-record-layout {
    grid-template-columns: 1fr;
  }
  .property-record-content {
    grid-column: auto;
    grid-template-columns: 1fr;
  }
  .property-record-columns {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .maintenance-invoice-record-layout {
    grid-template-columns: 1fr;
  }
  .maintenance-invoice-facts {
    grid-template-columns: 1fr;
  }
  .maintenance-invoice-pdf-panel {
    min-height: 560px;
    grid-template-rows: auto minmax(480px, 1fr);
  }
  .maintenance-invoice-pdf-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .maintenance-invoice-preview-popover {
    display: none;
  }
  .record-summary-panel,
  .record-activity-rail,
  .record-side-panel { position: static; }
  .record-summary-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .record-summary-card:first-child { grid-column: 1 / -1; }
  .property-photo-panel { grid-column: 1 / -1; }
  .property-photo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .record-activity-rail { grid-template-columns: 1fr; }
  .record-side-panel { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .record-overview-grid { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .input-action-row {
    grid-template-columns: 1fr;
  }
  .input-action-row .button {
    justify-content: center;
  }
  .modal-search-action-row .button {
    width: 100%;
  }
  .modal-search-field {
    min-height: 46px;
  }
  .modal-search-field input,
  .smart-grid-bulk-form .modal-search-field input,
  .abn-lookup-field .modal-search-field input {
    min-height: 44px;
    height: 44px;
    font-size: 16px;
  }
  .tenancy-workflow-summary {
    grid-template-columns: 1fr;
  }
  .tenancy-workflow-metric {
    min-height: 72px;
    padding: 13px;
  }
  .workflow-record-header,
  .workflow-record-panel {
    border-radius: 14px;
    padding: 14px;
  }
  .workflow-record-actions .button {
    width: 100%;
  }
  .workflow-record-kpis,
  .workflow-record-field-grid {
    grid-template-columns: 1fr;
  }
  .workflow-groups-panel.is-workflow-timeline {
    padding-left: 0;
  }
  .workflow-groups-panel.is-workflow-timeline .workflow-group-card::before,
  .workflow-groups-panel.is-workflow-timeline .workflow-group-card::after {
    display: none;
  }
  .workflow-groups-panel.is-workflow-timeline .workflow-group-card + .workflow-group-card {
    margin-top: 10px;
  }
  .staff-client-onboarding-steps .workflow-group-body,
  .workflow-groups-panel.is-workflow-timeline .workflow-group-card summary {
    padding-left: 14px;
  }
  .workflow-group-card summary {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .workflow-group-card summary em {
    grid-column: 2;
    justify-self: start;
  }
  .workflow-group-body .record-edit-grid {
    grid-template-columns: 1fr;
  }
  .workflow-action-row .button {
    width: 100%;
    justify-content: center;
  }
  .workflow-action-form {
    grid-template-columns: 1fr;
  }
  .email-template-card {
    grid-template-columns: 1fr;
  }
  .email-trigger-group dl div {
    grid-template-columns: 1fr;
  }
  .maintenance-path-grid,
  .maintenance-workflow-metrics,
  .maintenance-simple-overview,
  .maintenance-simple-mini-metrics,
  .maintenance-snooze-form {
    grid-template-columns: 1fr;
  }
  .maintenance-simple-step {
    grid-template-columns: 1fr;
  }
  .maintenance-simple-step::before,
  .maintenance-simple-step-marker {
    display: none;
  }
  .maintenance-simple-step-content header {
    align-items: flex-start;
    flex-direction: column;
  }
  .maintenance-step-actions .button,
  .maintenance-workflow-action .button {
    width: 100%;
    justify-content: center;
  }
  .workflow-action-note {
    grid-column: auto;
  }
  .workflow-attachment-upload,
  .workflow-linked-document {
    grid-template-columns: 1fr;
  }
  .workflow-step-item {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .workflow-step-item .smart-grid-badge {
    grid-column: 2;
    width: fit-content;
  }
  html { background: var(--surface); }
  .pipeline-form-grid,
  .pipeline-send-form,
  .pipeline-snapshot-list article,
  .public-proposal-items article,
  .public-proposal-insights,
  .public-proposal-total,
  .public-proposal-stack-grid,
  .public-proposal-feature-grid,
  .proposal-preview-screen {
    grid-template-columns: 1fr;
  }
  .public-proposal-feature-grid article {
    grid-template-columns: 36px minmax(0, 1fr);
  }
  .pipeline-snapshot-list strong {
    text-align: left;
  }
  .pipeline-logo-row,
  .public-proposal-hero {
    grid-template-columns: 1fr;
  }
  .pipeline-logo-preview,
  .public-proposal-logo {
    width: 128px;
    height: 92px;
  }
  .public-proposal-body {
    padding-bottom: 0;
  }
  .public-proposal {
    width: min(100% - 20px, 1080px);
    padding: 18px 0 34px;
  }
  .public-proposal-topbar {
    align-items: flex-start;
  }
  .public-proposal-delegate-logo {
    width: 148px;
  }
  .public-proposal-prepared {
    justify-items: start;
  }
  .public-proposal-hero {
    padding: 18px;
    border-radius: 20px;
  }
  .public-proposal-hero h1 {
    font-size: 34px;
    line-height: 1.04;
  }
  .public-proposal-hero p {
    font-size: var(--text-base);
  }
  .public-proposal-preview {
    min-height: 0;
    border-radius: 18px;
  }
  .public-proposal-actions .button,
  .public-proposal-hero-actions .button {
    width: 100%;
    justify-content: center;
  }
  .public-proposal-actions {
    padding: 18px;
  }
  .public-proposal-actions form {
    padding: 14px;
  }
  body {
    background: var(--bg);
    padding-bottom: calc(78px + env(safe-area-inset-bottom));
    -webkit-tap-highlight-color: transparent;
  }
  body.mobile-menu-open {
    overflow: hidden;
  }
  .app-shell {
    display: block;
    min-height: 100svh;
  }
  .sidebar {
    display: none;
  }
  .mobile-appbar {
    min-height: calc(58px + env(safe-area-inset-top));
    padding: calc(8px + env(safe-area-inset-top)) 14px 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(255, 255, 255, .94);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }
  .mobile-brand {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    background: #eef7f0;
    border: 1px solid var(--border-soft);
    flex: 0 0 auto;
    overflow: hidden;
  }
  .mobile-brand img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
  .mobile-brand span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
  .mobile-appbar-title {
    min-width: 0;
    flex: 1 1 auto;
  }
  .mobile-appbar-title strong {
    display: block;
    color: var(--ink);
    font-size: 16px;
    line-height: 1.15;
    font-weight: var(--font-weight-semibold);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .mobile-appbar-title span {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .mobile-appbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
  }
  .mobile-icon-button {
    width: 38px;
    height: 38px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
    color: var(--ink);
    display: inline-grid;
    place-items: center;
    position: relative;
    box-shadow: 0 1px 2px rgba(17, 24, 39, .04);
  }
  .mobile-icon-button small {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 17px;
    height: 17px;
    border-radius: 999px;
    background: var(--danger);
    color: #fff;
    border: 2px solid var(--surface);
    display: grid;
    place-items: center;
    font-size: 10px;
    line-height: 1;
  }
  .topbar {
    position: static;
    min-height: 0;
    padding: 10px 14px 12px;
    display: block;
    background: var(--surface);
    border-bottom: 1px solid var(--border-soft);
    backdrop-filter: none;
  }
  .topbar > div:first-child {
    display: none;
  }
  .topbar-actions,
  .search-form {
    width: 100%;
  }
  .topbar-actions {
    display: block;
  }
  .topbar-actions > .icon-button,
  .topbar-actions > .profile-pill,
  .topbar-actions > .button {
    display: none;
  }
  .search-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
  }
  .search-input { width: 100%; }
  .search-form .button {
    min-height: 44px;
    padding: 0 13px;
    border-radius: 12px;
  }
  .main {
    padding: 18px 14px 18px;
    gap: 16px;
  }
  .page-head { flex-direction: column; }
  .page-title h2 {
    font-size: 24px;
  }
  .page-title p {
    font-size: 14px;
    line-height: 1.5;
  }
  .dashboard-welcome-hero {
    min-height: 260px;
    border-radius: 14px;
    padding: 22px;
  }
  .dashboard-welcome-copy h2 {
    font-size: 28px;
  }
  .dashboard-hero-side {
    width: 100%;
  }
  .staff-dashboard-command {
    border-radius: 14px;
    padding: 12px;
  }
  .staff-dashboard-actions .button {
    width: 100%;
    justify-content: center;
  }
  .staff-dashboard-grid,
  .staff-dashboard-workflows,
  .dashboard-analytics-grid {
    grid-template-columns: 1fr;
  }
  .staff-dashboard-card-copy strong {
    font-size: 20px;
  }
  .dashboard-analytics-card {
    border-radius: 14px;
    padding: 12px;
  }
  .dashboard-analytics-card header {
    grid-template-columns: 36px minmax(0, 1fr);
  }
  .dashboard-analytics-card header a {
    grid-column: 1 / -1;
    justify-self: start;
  }
  .data-health-command {
    border-radius: 14px;
    padding: 12px;
  }
  .data-health-command-head .button {
    width: 100%;
    justify-content: center;
  }
  .data-health-command-grid,
  .data-health-command-columns {
    grid-template-columns: 1fr;
  }
  .staff-import-detail {
    grid-template-columns: 1fr;
  }
  .staff-report-command {
    border-radius: 14px;
    padding: 12px;
  }
  .staff-report-command-actions .button {
    width: 100%;
    justify-content: center;
  }
  .staff-report-command-grid {
    grid-template-columns: 1fr;
  }
  .staff-activity-command {
    grid-template-columns: 1fr;
  }
  .grid.metrics { grid-template-columns: 1fr; }
  .technology-stack-grid {
    grid-template-columns: 1fr;
  }
  .technology-stack-tile {
    min-height: 64px;
  }
  .technology-stack-settings-item summary {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .technology-stack-settings-item summary .badge {
    justify-self: start;
  }
  .metric {
    min-height: 112px;
    padding: 17px;
    border-radius: 12px;
  }
  .metric strong {
    font-size: 32px;
  }
  .portal-action-grid { grid-template-columns: 1fr; }
  .hub-attention-list,
  .hub-module-grid {
    grid-template-columns: 1fr;
  }
  .manager-hub-metrics,
  .hub-attention-panel .hub-attention-list,
  .hub-diagram-spokes {
    grid-template-columns: 1fr;
  }
  .manager-hub-panel {
    border-radius: 14px;
    padding: 14px;
  }
  .record-manager-alert {
    grid-template-columns: auto minmax(0, 1fr);
    border-radius: 14px;
  }
  .record-manager-alert .button {
    grid-column: 1 / -1;
    width: 100%;
  }
  .record-alert-dialog-body {
    border-radius: 16px;
  }
  .record-alert-dialog header,
  .record-alert-list,
  .record-alert-dialog .filter-actions {
    padding-left: 14px;
    padding-right: 14px;
  }
  .hub-chart-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    padding: 8px;
  }
  .hub-chart-track {
    grid-column: 1 / -1;
    order: 3;
  }
  .hub-diagram-node {
    min-height: 64px;
  }
  .hub-module-card {
    min-height: 96px;
    border-radius: 14px;
    grid-template-columns: auto minmax(0, 1fr) auto;
  }
  .desktop-table { display: none; }
  .mobile-cards { display: grid; gap: 10px; }
  .smart-data-grid {
    gap: 12px;
  }
  .smart-grid-toolbar-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 8px;
  }
  .smart-grid-search-field {
    min-width: 0;
    grid-column: 1 / -1;
    height: 40px;
  }
  .smart-grid-record-state-toggle {
    grid-column: 1 / -1;
    width: 100%;
    justify-content: space-between;
  }
  .smart-grid-record-state-chip {
    flex: 1 1 0;
  }
  .smart-grid-filter-popover {
    position: fixed;
    left: 10px;
    right: 10px;
    top: auto;
    bottom: calc(78px + env(safe-area-inset-bottom));
    max-height: min(70dvh, 520px);
    overflow: auto;
    border-radius: 18px;
    z-index: 58;
  }
  .smart-grid-filter-grid {
    grid-template-columns: 1fr;
  }
  .smart-grid-selection-bar {
    top: 76px;
    left: 12px;
    right: 12px;
    min-height: 50px;
    flex-wrap: wrap;
    border-radius: 14px;
  }
  .smart-grid-selection-bar .button {
    min-height: 40px;
  }
  .smart-grid-mobile-card {
    min-height: 86px;
    border-radius: 14px;
  }
  .smart-grid-mobile-card dl {
    gap: 7px;
  }
  .smart-grid-mobile-card div {
    align-items: flex-start;
  }
  .smart-grid-mobile-card dt {
    flex: 0 0 36%;
  }
  .smart-grid-mobile-card dd {
    text-align: right;
    overflow-wrap: anywhere;
  }
  .smart-grid-bulk-modal {
    width: calc(100vw - 18px);
    max-height: calc(100dvh - 34px);
    border-radius: 18px;
  }
  .smart-grid-bulk-form {
    padding: 16px;
  }
  .smart-grid-bulk-form > header {
    align-items: center;
  }
  .smart-grid-bulk-form .form-grid,
  .smart-grid-bulk-form .filter-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .smart-grid-bulk-form input,
  .smart-grid-bulk-form select,
  .smart-grid-bulk-form textarea {
    font-size: 16px;
  }
  .smart-grid-bulk-form > .filter-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
  .smart-grid-bulk-form > .filter-actions .button {
    width: 100%;
    justify-content: center;
  }
  .smart-grid-bulk-preview .table-wrap {
    max-height: 220px;
  }
  .fields { grid-template-columns: 1fr; }
  .filter-grid, .form-row, .summary-strip { grid-template-columns: 1fr; }
  .task-item, .comment header { display: grid; }
  .login-card { padding: 22px; }
  .impersonation-banner { align-items: stretch; flex-direction: column; }
  .impersonation-banner form, .impersonation-banner .button { width: 100%; }
  .mobile-tabbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 45;
    min-height: calc(64px + env(safe-area-inset-bottom));
    padding: 7px 8px calc(7px + env(safe-area-inset-bottom));
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
    background: rgba(255, 255, 255, .96);
    border-top: 1px solid var(--border);
    box-shadow: 0 -12px 28px rgba(17, 24, 39, .08);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
  }
  .mobile-tab {
    min-width: 0;
    min-height: 50px;
    border-radius: 14px;
    color: var(--muted);
    display: grid;
    place-items: center;
    align-content: center;
    gap: 3px;
    font-size: 10px;
    line-height: 1.1;
    font-weight: var(--font-weight-medium);
    text-align: center;
  }
  .mobile-tab svg {
    width: 20px;
    height: 20px;
  }
  .mobile-tab span {
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 0 2px;
  }
  .mobile-tab.active {
    color: var(--sidebar-item-active-text);
    background: #eef7f0;
  }
  .mobile-menu-backdrop {
    position: fixed;
    inset: 0;
    z-index: 60;
    background: rgba(17, 24, 39, .34);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
  }
  .mobile-menu-backdrop:not([hidden]) {
    display: block;
  }
  .mobile-menu-sheet {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    z-index: 61;
    max-height: min(78svh, 620px);
    overflow: auto;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--surface);
    box-shadow: 0 24px 70px rgba(17, 24, 39, .24);
    padding: 12px;
  }
  .mobile-menu-sheet:not([hidden]) {
    display: block;
  }
  .mobile-menu-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 4px 2px 12px;
  }
  .mobile-menu-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
  }
  .mobile-menu-avatar {
    width: 38px;
    height: 38px;
  }
  .mobile-menu-head strong {
    display: block;
    color: var(--ink);
    font-size: 18px;
    line-height: 1.2;
    font-weight: var(--font-weight-semibold);
  }
  .mobile-menu-head span {
    display: grid;
    color: var(--muted);
    font-size: 13px;
    margin-top: 2px;
  }
  .mobile-menu-head small {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.2;
    font-weight: var(--font-weight-regular);
  }
  .mobile-menu-list {
    display: grid;
    gap: 6px;
  }
  .mobile-nav-group {
    border: 1px solid var(--border-soft);
    border-radius: 14px;
    background: var(--surface);
    overflow: hidden;
  }
  .mobile-nav-group summary {
    list-style: none;
  }
  .mobile-nav-group summary::-webkit-details-marker {
    display: none;
  }
  .mobile-nav-group > summary {
    justify-content: space-between;
  }
  .mobile-nav-group > summary > span {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 11px;
  }
  .mobile-nav-group[open] > summary > svg:last-child {
    transform: rotate(90deg);
  }
  .mobile-nav-children {
    display: grid;
    gap: 2px;
    padding: 0 6px 7px 38px;
  }
  .mobile-menu-child {
    min-height: 40px;
    border-radius: 10px;
    color: var(--muted);
    font-size: 13px;
    padding-left: 10px;
  }
  .mobile-menu-link {
    min-height: 46px;
    border-radius: 12px;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 0 11px;
    font-size: 14px;
    font-weight: var(--font-weight-light);
  }
  .mobile-menu-link.active {
    color: var(--sidebar-item-active-text);
    background: #eef7f0;
  }
  .mobile-menu-link svg {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
  }
  .mobile-signout {
    width: 100%;
    margin-top: 12px;
    min-height: 46px;
    border-radius: 12px;
  }
  .record-navigation-bar {
    overflow-x: auto;
    padding-bottom: 2px;
    margin: -2px -2px 0;
    border-bottom: 0;
  }
  .record-navigation-bar .button {
    flex: 0 0 auto;
    min-height: 40px;
    border-radius: 12px;
  }
  .record-nav-spacer {
    display: none;
  }
  .record-workspace-header {
    grid-template-columns: 1fr;
    padding: 2px 0 4px;
    border-radius: 0;
  }
  .record-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    flex-basis: 34px;
  }
  .record-title-block h2 {
    font-size: 20px;
  }
  .record-header-actions {
    justify-content: stretch;
  }
  .record-header-actions .button {
    flex: 1 1 0;
    min-width: 0;
  }
  .record-status-strip {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .record-status-pill {
    min-width: 0;
    justify-content: flex-start;
    border-radius: 10px;
    min-height: 36px;
  }
  .record-primary-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-radius: 14px;
  }
  .record-primary-facts div {
    min-height: 64px;
  }
  .property-record-layout,
  .property-record-content,
  .property-record-columns {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .property-record-content {
    grid-column: auto;
  }
  .property-record-columns {
    display: grid;
  }
  .property-photo-upload {
    grid-template-columns: 1fr;
  }
  .property-photo-upload .button {
    width: 100%;
  }
  .property-photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .property-photo-actions {
    gap: 4px;
  }
  .property-photo-actions .icon-button {
    width: 34px;
    height: 34px;
  }
  .property-photo-dialog {
    width: calc(100vw - 18px);
    border-radius: 14px;
    padding: 9px;
  }
  .property-feature-grid {
    grid-template-columns: 1fr;
  }
  .property-feature-tile {
    grid-template-columns: 38px minmax(0, 1fr);
    border-radius: 13px;
  }
  .property-feature-icon {
    width: 38px;
    height: 38px;
  }
  .property-location-chip {
    width: 100%;
    justify-content: center;
    white-space: normal;
  }
  .record-tabs {
    margin-left: 0;
    margin-right: 0;
    padding: 0 0 10px;
    border-bottom: 1px solid var(--border);
  }
  .record-tabs .tab {
    flex: 1 1 calc(50% - 8px);
    min-height: 44px;
    padding: 10px 11px;
  }
  .property-record-content > .record-tabs .tab {
    flex: 1 1 calc(50% - 8px);
  }
  .property-fee-facts,
  .management-fee-projection dl,
  .record-related-field-grid {
    grid-template-columns: 1fr;
  }
  .record-related-expanded {
    padding-left: 10px;
  }
  .property-fee-facts div,
  .record-related-field-grid div {
    grid-template-columns: 1fr;
    gap: 3px;
  }
  .record-related-summary-meta {
    flex-wrap: wrap;
  }
  .record-summary-panel,
  .record-activity-rail {
    grid-template-columns: 1fr;
  }
  .record-summary-fields {
    grid-template-columns: 1fr;
  }
  .qbcc-status-card {
    display: grid;
  }
  .qbcc-risk-alert {
    display: grid;
  }
  .qbcc-risk-actions {
    justify-content: stretch;
  }
  .qbcc-risk-actions .button {
    width: 100%;
    justify-content: center;
  }
  .qbcc-detail-grid {
    grid-template-columns: 1fr;
  }
  .qbcc-detail-grid > div {
    grid-template-columns: 1fr;
    gap: 3px;
  }
  .qbcc-actions,
  .qbcc-actions .button,
  .qbcc-review-form,
  .qbcc-review-form input {
    width: 100%;
  }
  .record-edit-grid {
    grid-template-columns: 1fr;
  }
  .record-summary-card,
  .record-edit-panel,
  .record-quick-comment,
  .record-recent-activity,
  .record-documents-rail {
    border-radius: 14px;
    padding: 14px;
  }
  .record-card-heading {
    align-items: flex-start;
  }
  .record-card-action {
    min-height: 34px;
  }
  .record-rail-tabs {
    position: sticky;
    top: calc(58px + env(safe-area-inset-top));
    z-index: 4;
  }
  .record-inline-comment .button {
    width: 100%;
    justify-self: stretch;
  }
  .record-comment-controls {
    grid-template-columns: 1fr;
  }
  .record-document-upload {
    grid-template-columns: 1fr;
  }
  .record-document-upload .button {
    width: 100%;
  }
  .record-document-list.is-panel {
    grid-template-columns: 1fr;
  }
  .profile-page-grid {
    grid-template-columns: 1fr;
  }
  .profile-readonly-field {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .profile-identity-avatar {
    width: 60px;
    height: 60px;
    flex-basis: 60px;
  }
  .record-document-preview {
    left: 8px;
    right: auto;
    top: calc(100% + 8px);
    width: min(240px, calc(100vw - 64px));
    transform: translateY(0) translateX(0) scale(.98);
  }
  .record-document-item:hover .record-document-preview,
  .record-document-item:focus-within .record-document-preview {
    transform: translateY(0) translateX(0) scale(1);
  }
  .record-side-panel {
    grid-template-columns: 1fr;
  }
  .record-side-panel > section {
    border-radius: 14px;
  }
  .record-overview-grid {
    gap: 12px;
  }
  .record-linked-card {
    border-radius: 12px;
    min-height: 68px;
  }
  .rent-roll-brief-facts {
    grid-template-columns: 1fr;
  }
  .rent-roll-brief-fact {
    min-height: auto;
  }
  .rent-roll-summary {
    grid-template-columns: 1fr;
  }
  .rent-roll-controls {
    display: grid;
  }
  .rent-roll-controls label,
  .rent-roll-actions,
  .rent-roll-actions .button,
  .rent-roll-threshold-actions,
  .rent-roll-threshold-actions .button,
  .rent-roll-footer .button {
    width: 100%;
  }
  .rent-roll-actions {
    display: grid;
  }
  .rent-roll-table {
    min-width: 1040px;
  }
  .due-diligence-table {
    min-width: 1160px;
  }
  .pipeline-contacts-panel .record-card-heading {
    align-items: stretch;
  }
  .pipeline-contacts-panel .record-card-heading .button {
    width: 100%;
    justify-content: center;
  }
  .pipeline-contact-card summary {
    grid-template-columns: 36px minmax(0, 1fr) auto;
    padding: 10px;
  }
  .pipeline-contact-detail {
    padding: 0 10px 10px;
  }
  .pipeline-contact-fields {
    grid-template-columns: 1fr;
  }
  .pipeline-contact-edit-form .pipeline-form-grid {
    grid-template-columns: 1fr;
  }
  .pipeline-contact-actions {
    display: grid;
  }
  .pipeline-contact-actions .button {
    width: 100%;
    justify-content: center;
  }
  .pipeline-contact-modal .pipeline-form-grid {
    grid-template-columns: 1fr;
  }
  .settings-grid {
    grid-template-columns: 1fr;
  }
  .settings-impact-strip {
    grid-template-columns: 1fr;
  }
  .settings-section-kicker {
    display: grid;
    gap: 4px;
  }
  .office-settings-toggles,
  .office-settings-item summary {
    align-items: flex-start;
  }
  .office-settings-item summary {
    display: grid;
  }
}

.google-review-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 16px;
}

.google-review-summary-grid article {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 18px;
  min-height: 126px;
  display: grid;
  align-content: space-between;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
}

.google-review-summary-grid article.is-accent {
  border-color: rgba(20, 184, 166, 0.28);
  background: linear-gradient(135deg, rgba(236, 253, 245, 0.95), #ffffff 72%);
}

.google-review-summary-grid span,
.google-business-location span,
.google-review-author small,
.google-review-reply small {
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.35;
}

.google-review-summary-grid strong {
  color: var(--text-primary);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: 0;
}

.google-review-stars {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: #cbd5e1;
  font-size: 13px;
}

.google-review-stars .is-filled {
  color: #f59e0b;
}

.google-review-stars strong {
  margin-left: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

.google-business-location-list,
.google-review-feed {
  display: grid;
  gap: 12px;
}

.google-business-location {
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  background: #fff;
  padding: 14px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
}

.google-business-location > div:first-child {
  display: grid;
  gap: 5px;
}

.google-business-location strong,
.google-review-author strong {
  font-weight: 600;
  color: var(--text-primary);
}

.google-business-location-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.google-business-error {
  grid-column: 1 / -1;
  margin: 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fef2f2;
  color: #991b1b;
  font-size: 13px;
}

.google-review-item {
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  background: #fff;
  padding: 16px;
  display: grid;
  gap: 12px;
}

.google-review-item header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.google-review-author {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.google-review-author img,
.google-review-author > span {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  flex: 0 0 38px;
  object-fit: cover;
  display: inline-grid;
  place-items: center;
  background: #ecfdf5;
  color: #065f46;
  font-weight: 600;
}

.google-review-author div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.google-review-item p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.55;
}

.google-review-reply {
  border-left: 3px solid #14b8a6;
  background: #f0fdfa;
  border-radius: 10px;
  padding: 10px 12px;
  display: grid;
  gap: 4px;
}

.google-review-reply span {
  color: var(--text-primary);
  font-size: 13px;
}

.google-review-reply-form {
  display: grid;
  gap: 10px;
  background: #f8fafc;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 12px;
}

.google-review-reply-form textarea {
  width: 100%;
  resize: vertical;
  min-height: 88px;
}

@media (max-width: 760px) {
  .google-review-summary-grid {
    grid-template-columns: 1fr;
  }
  .google-business-location {
    grid-template-columns: 1fr;
  }
  .google-business-location-actions {
    display: grid;
  }
  .google-business-location-actions .button,
  .google-review-reply-form .button {
    width: 100%;
    justify-content: center;
  }
  .google-review-item header {
    display: grid;
  }
}

.hr-people-tabs {
  margin-bottom: 16px;
}

.hr-people-dialog {
  width: min(760px, calc(100vw - 28px));
  max-height: min(860px, calc(100vh - 28px));
  padding: 0;
  border-color: var(--border);
  border-radius: 16px;
  background: var(--surface);
  color: var(--ink);
  overflow: hidden;
  box-shadow: 0 24px 72px rgba(17, 24, 39, .24);
}

.hr-people-dialog::backdrop {
  background: rgba(17, 24, 39, .32);
  backdrop-filter: blur(4px);
}

.hr-people-dialog-form {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  max-height: inherit;
  padding: 0;
  gap: 0;
}

.hr-people-dialog-form > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 18px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.hr-people-dialog-form > header > div {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.hr-people-dialog-form > header strong {
  color: var(--ink);
  font-size: var(--text-lg);
  line-height: 1.2;
  font-weight: var(--font-weight-medium);
}

.hr-people-dialog-form > header span {
  color: var(--muted);
  font-size: var(--text-sm);
  line-height: 1.4;
  font-weight: var(--font-weight-regular);
}

.hr-people-dialog-form > header .icon-button {
  width: 34px;
  height: 34px;
  min-height: 34px;
  border-radius: 999px;
  border-color: var(--border);
  color: var(--muted);
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .05);
}

.hr-people-dialog-form > header .icon-button:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
}

.hr-people-dialog-body {
  display: grid;
  gap: 14px;
  padding: 16px 18px 18px;
  overflow: auto;
}

.hr-people-dialog .form-row {
  gap: 14px;
}

.hr-people-dialog label,
.hr-directory-edit-form label,
.hr-inline-edit-form label,
.hr-settings-card label,
.hr-statement-panel label {
  display: grid;
  gap: 6px;
  align-content: start;
  color: var(--muted);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
}

.hr-people-dialog label > span:first-child,
.hr-directory-edit-form label > span:first-child,
.hr-inline-edit-form label > span:first-child,
.hr-settings-card label > span:first-child,
.hr-statement-panel label > span:first-child {
  color: var(--muted);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
}

.hr-people-dialog input,
.hr-people-dialog select,
.hr-people-dialog textarea,
.hr-directory-edit-form input,
.hr-directory-edit-form select,
.hr-directory-edit-form textarea,
.hr-inline-edit-form input,
.hr-inline-edit-form select,
.hr-inline-edit-form textarea,
.hr-settings-card input,
.hr-settings-card select,
.hr-settings-card textarea,
.hr-statement-panel input,
.hr-statement-panel select,
.hr-statement-panel textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background-color: var(--surface);
  color: var(--ink);
  padding: 10px 12px;
  font-size: var(--text-base);
  font-weight: var(--font-weight-regular);
  line-height: 1.35;
  outline: 0;
  box-shadow: 0 1px 0 rgba(17, 24, 39, .02);
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.hr-people-dialog select,
.hr-directory-edit-form select,
.hr-inline-edit-form select,
.hr-settings-card select,
.hr-statement-panel select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position:
    calc(100% - 17px) 19px,
    calc(100% - 12px) 19px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 34px;
}

.hr-people-dialog textarea {
  min-height: 96px;
  resize: vertical;
}

.hr-people-dialog input:hover,
.hr-people-dialog select:hover,
.hr-people-dialog textarea:hover,
.hr-directory-edit-form input:hover,
.hr-directory-edit-form select:hover,
.hr-directory-edit-form textarea:hover,
.hr-inline-edit-form input:hover,
.hr-inline-edit-form select:hover,
.hr-inline-edit-form textarea:hover,
.hr-settings-card input:hover,
.hr-settings-card select:hover,
.hr-settings-card textarea:hover,
.hr-statement-panel input:hover,
.hr-statement-panel select:hover,
.hr-statement-panel textarea:hover {
  border-color: var(--border-strong);
}

.hr-people-dialog input:focus,
.hr-people-dialog select:focus,
.hr-people-dialog textarea:focus,
.hr-directory-edit-form input:focus,
.hr-directory-edit-form select:focus,
.hr-directory-edit-form textarea:focus,
.hr-inline-edit-form input:focus,
.hr-inline-edit-form select:focus,
.hr-inline-edit-form textarea:focus,
.hr-settings-card input:focus,
.hr-settings-card select:focus,
.hr-settings-card textarea:focus,
.hr-statement-panel input:focus,
.hr-statement-panel select:focus,
.hr-statement-panel textarea:focus {
  outline: none;
  border-color: rgba(96, 208, 112, .72);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(96, 208, 112, .16);
}

.hr-people-dialog input::placeholder,
.hr-people-dialog textarea::placeholder,
.hr-directory-edit-form input::placeholder,
.hr-directory-edit-form textarea::placeholder,
.hr-inline-edit-form input::placeholder,
.hr-inline-edit-form textarea::placeholder,
.hr-settings-card input::placeholder,
.hr-settings-card textarea::placeholder,
.hr-statement-panel input::placeholder,
.hr-statement-panel textarea::placeholder {
  color: var(--muted);
  opacity: .74;
}

.hr-people-dialog .pretty-file-upload {
  min-height: 48px;
  border-color: var(--border);
  border-radius: 12px;
  background: #fff;
  padding: 6px 8px;
}

.hr-people-dialog .pretty-file-button {
  min-height: 34px;
  border-radius: 10px;
  background: #4b5563;
  border-color: #4b5563;
  color: #fff;
  box-shadow: 0 4px 10px rgba(75, 85, 99, .14);
}

.hr-people-dialog .pretty-file-button svg {
  color: currentColor;
}

.hr-people-dialog .pretty-file-upload em {
  color: var(--muted);
  font-size: var(--text-sm);
}

.hr-people-dialog-form > footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 18px 18px;
  border-top: 1px solid var(--border);
  background: #fbfcfd;
}

.hr-people-dialog-form > footer .button {
  min-height: 40px;
  border-radius: 11px;
  padding: 0 16px;
}

.table-row-actions {
  text-align: right;
  white-space: nowrap;
}

.table-row-actions .button {
  justify-content: center;
}

.hr-record-edit-grid {
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, .55fr);
  align-items: start;
}

.hr-record-edit-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
}

.hr-record-edit-form input,
.hr-record-edit-form select,
.hr-record-edit-form textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background-color: var(--surface);
  color: var(--ink);
  padding: 10px 12px;
  font-size: var(--text-base);
  font-weight: var(--font-weight-regular);
  line-height: 1.35;
  outline: 0;
  box-shadow: 0 1px 0 rgba(17, 24, 39, .02);
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.hr-record-edit-form select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position:
    calc(100% - 17px) 19px,
    calc(100% - 12px) 19px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 34px;
}

.hr-record-edit-form textarea {
  resize: vertical;
}

.hr-record-edit-form input:hover,
.hr-record-edit-form select:hover,
.hr-record-edit-form textarea:hover {
  border-color: var(--border-strong);
}

.hr-record-edit-form input:focus,
.hr-record-edit-form select:focus,
.hr-record-edit-form textarea:focus {
  border-color: rgba(96, 208, 112, .72);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(96, 208, 112, .16);
}

.hr-record-edit-form .pretty-file-upload {
  min-height: 48px;
  border-color: var(--border);
  border-radius: 12px;
  background: #fff;
  padding: 6px 8px;
}

.hr-record-edit-form .pretty-file-upload input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.hr-record-edit-form .pretty-file-button {
  min-height: 34px;
  border-radius: 10px;
  background: #4b5563;
  border-color: #4b5563;
  color: #fff;
}

.hr-record-summary {
  display: grid;
  gap: 10px;
}

.hr-record-summary > strong {
  color: var(--ink);
  font-size: var(--text-lg);
  font-weight: var(--font-weight-semibold);
  line-height: 1.25;
}

.hr-record-summary > span {
  color: var(--muted);
  font-size: var(--text-sm);
}

.hr-asset-photo-thumb {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid var(--border);
  background: #f8fafc;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hr-asset-photo-preview {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #f8fafc;
  margin-bottom: 16px;
}

.hr-asset-photo-empty {
  min-height: 220px;
  border: 1px dashed var(--border-strong);
  border-radius: 14px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  color: var(--muted);
  background: #f8fafc;
  margin-bottom: 16px;
  text-align: center;
}

.hr-asset-photo-empty strong {
  color: var(--ink);
  font-weight: var(--font-weight-semibold);
}

.hr-people-command-panel {
  display: grid;
  grid-template-columns: minmax(280px, .72fr) minmax(0, 1.28fr);
  gap: 16px;
  align-items: stretch;
  margin-bottom: 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
  padding: 16px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, .035);
}

.hr-people-command-copy {
  display: grid;
  align-content: center;
  gap: 8px;
  min-width: 0;
}

.hr-people-command-copy > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  color: var(--accent);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
}

.hr-people-command-copy h3 {
  max-width: 560px;
  margin: 0;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.18;
  font-weight: var(--font-weight-medium);
}

.hr-people-command-copy p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: var(--text-sm);
  line-height: 1.55;
}

.hr-people-command-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.hr-people-command-metrics article {
  min-height: 88px;
  display: grid;
  align-content: center;
  gap: 5px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fbfcfd;
  padding: 13px 14px;
}

.hr-people-command-metrics span,
.hr-people-command-metrics small {
  color: var(--muted);
  font-size: var(--text-xs);
  line-height: 1.3;
}

.hr-people-command-metrics strong {
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
  font-weight: var(--font-weight-medium);
}

.hr-people-module-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.hr-people-module-strip a {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 10px;
  align-items: start;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  padding: 13px;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 1px 0 rgba(15, 23, 42, .02);
  transition: background .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.hr-people-module-strip a:hover {
  border-color: rgba(16, 48, 48, .18);
  background: #fbfcfd;
  box-shadow: 0 8px 22px rgba(15, 23, 42, .04);
}

.hr-people-module-strip a > span {
  grid-row: span 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #f8fafc;
  color: var(--accent);
}

.hr-people-module-strip strong {
  color: var(--text-primary);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
}

.hr-people-module-strip small {
  color: var(--text-muted);
  font-size: var(--text-xs);
  line-height: 1.4;
}

.hr-people-dashboard-grid {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
}

.hr-people-dashboard-grid .panel,
.hr-statement-panel,
.hr-settings-card {
  box-shadow: 0 8px 22px rgba(15, 23, 42, .035);
}

.hr-directory-filters {
  margin-bottom: 16px;
}

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

.hr-directory-card {
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  background: linear-gradient(180deg, #fff 0%, #fbfcfd 100%);
  padding: 16px;
  display: grid;
  gap: 14px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, .035);
}

.hr-directory-card > header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.hr-directory-card > header > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.hr-directory-card strong,
.hr-org-node strong,
.hr-staff-profile-card h3 {
  color: var(--text-primary);
  font-weight: var(--font-weight-semibold);
  line-height: 1.2;
}

.hr-directory-card > header span,
.hr-org-node span,
.hr-org-node small,
.hr-directory-card p {
  color: var(--text-muted);
  font-size: var(--text-sm);
  line-height: 1.4;
}

.hr-directory-card p {
  margin: 0;
}

.hr-directory-avatar,
.hr-org-avatar,
.hr-staff-avatar {
  border: 2px solid #fff;
  box-shadow: 0 5px 14px rgba(15, 23, 42, .08);
}

.hr-directory-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
}

.hr-directory-meta span {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text-secondary);
  font-size: var(--text-xs);
}

.hr-directory-meta svg {
  color: var(--text-muted);
  flex: 0 0 auto;
}

.hr-directory-stats {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.hr-directory-stats span {
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  background: #fff;
  padding: 5px 8px;
  color: var(--text-muted);
  font-size: var(--text-xs);
}

.hr-directory-stats strong {
  margin-right: 3px;
  font-size: var(--text-sm);
}

.hr-directory-stats .warn {
  border-color: rgba(217, 119, 6, .24);
  background: #fffbeb;
  color: #92400e;
}

.hr-directory-card > footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hr-directory-edit {
  border-top: 1px solid var(--border-subtle);
  padding-top: 12px;
}

.hr-directory-edit summary {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text-secondary);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
}

.hr-directory-edit-form {
  display: grid;
  gap: 12px;
  margin-top: 12px;
  border-top: 1px solid var(--border);
  padding-top: 12px;
}

.hr-directory-edit-form footer {
  display: flex;
  justify-content: flex-end;
  padding-top: 2px;
}

.hr-saved-view-strip {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: -4px 0 16px;
}

.hr-org-chart-shell {
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  background: #fff;
  overflow: auto;
  box-shadow: 0 8px 22px rgba(15, 23, 42, .035);
}

.hr-org-chart-toolbar {
  position: sticky;
  left: 0;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-subtle);
  background: #fbfcfd;
  color: var(--text-secondary);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
}

.hr-org-chart-toolbar span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hr-org-chart {
  min-width: 900px;
  padding: 22px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 20px;
}

.hr-org-node-wrap {
  display: grid;
  justify-items: center;
  gap: 18px;
  position: relative;
}

.hr-org-node {
  width: 260px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  background: linear-gradient(180deg, #fff 0%, #fbfcfd 100%);
  padding: 12px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, .05);
}

.hr-org-node > div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.hr-org-children {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 16px;
  position: relative;
}

.hr-org-children::before {
  content: "";
  position: absolute;
  top: -9px;
  left: 22px;
  right: 22px;
  border-top: 1px solid #d8e0e7;
}

.hr-org-children > .hr-org-node-wrap::before {
  content: "";
  position: absolute;
  top: -18px;
  height: 18px;
  border-left: 1px solid #d8e0e7;
}

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

.hr-responsibility-row {
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
}

.hr-responsibility-row > summary {
  cursor: pointer;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  list-style: none;
}

.hr-responsibility-row > summary::-webkit-details-marker {
  display: none;
}

.hr-responsibility-row > summary > span:first-child {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.hr-responsibility-row summary small,
.hr-responsibility-body p {
  color: var(--text-muted);
  font-size: var(--text-sm);
  line-height: 1.45;
}

.hr-row-badges {
  display: inline-flex;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.hr-responsibility-body {
  border-top: 1px solid var(--border-subtle);
  background: #fbfcfd;
  padding: 14px;
  display: grid;
  gap: 12px;
}

.hr-responsibility-body p {
  margin: 0;
}

.hr-responsibility-body dl,
.hr-staff-profile-card dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.hr-responsibility-body dl > div,
.hr-staff-profile-card dl > div {
  border: 1px solid var(--border-subtle);
  border-radius: 13px;
  background: #fff;
  padding: 10px;
}

.hr-responsibility-body dt,
.hr-staff-profile-card dt {
  color: var(--text-muted);
  font-size: var(--text-xs);
  margin-bottom: 4px;
}

.hr-responsibility-body dd,
.hr-staff-profile-card dd {
  margin: 0;
  color: var(--text-primary);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
}

.hr-inline-edit-form {
  display: grid;
  gap: 12px;
  margin-top: 4px;
  border-top: 1px solid var(--border);
  padding-top: 12px;
}

.hr-inline-edit-form footer {
  display: flex;
  justify-content: flex-end;
}

.hr-staff-record-grid {
  display: grid;
  grid-template-columns: minmax(280px, .72fr) minmax(0, 1.28fr);
  gap: 16px;
  align-items: start;
}

.hr-staff-profile-card {
  position: sticky;
  top: 18px;
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  background: linear-gradient(180deg, #fff 0%, #fbfcfd 100%);
  padding: 18px;
  display: grid;
  gap: 15px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, .035);
}

.hr-staff-avatar {
  width: 76px;
  height: 76px;
}

.hr-staff-profile-card h3 {
  margin: 0;
  font-size: var(--text-xl);
}

.hr-staff-profile-card > div > span {
  color: var(--text-muted);
  font-size: var(--text-sm);
}

.hr-staff-profile-card dl {
  grid-template-columns: 1fr;
}

.hr-staff-main,
.hr-staff-subgrid,
.hr-reporting-line,
.hr-direct-report-list,
.hr-compact-record-list,
.hr-small-row-list {
  display: grid;
  gap: 12px;
}

.hr-reporting-line {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.hr-reporting-line article,
.hr-direct-report-list a,
.hr-compact-record-list article,
.hr-small-row-list article {
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  background: #fff;
  padding: 12px;
}

.hr-reporting-line span,
.hr-direct-report-list span,
.hr-compact-record-list span,
.hr-small-row-list span {
  color: var(--text-muted);
  font-size: var(--text-sm);
  line-height: 1.4;
}

.hr-reporting-line strong,
.hr-direct-report-list a strong,
.hr-compact-record-list strong,
.hr-small-row-list strong {
  color: var(--text-primary);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
}

.hr-direct-report-list a,
.hr-compact-record-list article,
.hr-small-row-list article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-decoration: none;
}

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

.hr-staff-edit-panel {
  margin-top: 16px;
}

.hr-people-list,
.hr-rule-list,
.hr-settings-list {
  display: grid;
  gap: 10px;
}

.hr-person-row,
.hr-rule-list article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  background: #fff;
  padding: 12px 14px;
  box-shadow: 0 1px 0 rgba(15, 23, 42, .02);
}

.hr-person-row > div,
.hr-rule-list article > div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.hr-person-row strong,
.hr-rule-list strong {
  color: var(--text-primary);
  font-weight: var(--font-weight-semibold);
  font-size: var(--text-sm);
}

.hr-person-row span,
.hr-rule-list span {
  color: var(--text-muted);
  font-size: var(--text-sm);
  line-height: 1.35;
}

.hr-statement-panel {
  margin-top: 16px;
}

.hr-statement-panel .stack-form {
  grid-template-columns: minmax(260px, 1fr) auto;
  align-items: end;
}

.hr-settings-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  padding: 14px;
  display: grid;
  gap: 12px;
}

.hr-settings-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.hr-settings-card header > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.hr-settings-card header strong {
  color: var(--text-primary);
  font-size: var(--text-md);
  font-weight: var(--font-weight-semibold);
}

.hr-settings-card header span,
.muted-block {
  display: block;
  color: var(--text-muted);
  font-size: var(--text-xs);
  margin-top: 2px;
}

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

.form-row.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.smart-grid-view-modal {
  width: min(980px, calc(100vw - 28px));
}

.smart-grid-view-modal .smart-grid-view-form {
  max-width: 980px;
  gap: 16px;
  padding: 0;
}

.smart-grid-view-header {
  align-items: center;
  gap: 14px;
  padding: 18px 20px 16px;
  border-bottom: 1px solid var(--border-subtle);
  background: linear-gradient(180deg, #ffffff 0%, #f8faf9 100%);
}

.smart-grid-view-header > div {
  flex: 1;
  min-width: 0;
}

.smart-grid-view-header-icon {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(16, 48, 48, .1);
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-primary);
  background: rgba(96, 208, 112, .11);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8);
  flex: 0 0 auto;
}

.smart-grid-view-settings {
  display: grid;
  gap: 14px;
  padding: 0 20px;
}

.smart-grid-view-panel {
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(17, 24, 39, .025);
}

.smart-grid-group-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(220px, .8fr);
  gap: 18px;
  align-items: end;
  padding: 16px;
}

.smart-grid-view-panel-copy,
.smart-grid-view-panel-heading {
  min-width: 0;
}

.smart-grid-view-panel-heading {
  padding: 16px 16px 2px;
}

.smart-grid-view-panel-copy strong,
.smart-grid-view-panel-heading strong {
  display: block;
  color: var(--text-primary);
  font-size: var(--text-md);
  font-weight: var(--font-weight-medium);
  line-height: 1.25;
}

.smart-grid-view-panel-copy p,
.smart-grid-view-panel-heading p {
  margin: 5px 0 0;
  color: var(--text-muted);
  font-size: var(--text-sm);
  line-height: 1.45;
}

.smart-grid-view-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 7px;
  color: var(--text-secondary);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-medium);
}

.smart-grid-flag-builder {
  display: grid;
  gap: 0;
  overflow: hidden;
}

.smart-grid-flag-rule {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  margin: 0 16px;
  padding: 14px 0;
  border-top: 1px solid var(--border-subtle);
}

.smart-grid-flag-rule-number {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #f4f6f7;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-medium);
}

.smart-grid-flag-rule-fields {
  display: grid;
  grid-template-columns: minmax(150px, 1.15fr) minmax(140px, 1fr) minmax(120px, .85fr) minmax(150px, 1fr) minmax(110px, .75fr);
  gap: 10px;
  align-items: end;
}

.smart-grid-view-modal .filter-actions {
  margin: 0;
  padding: 16px 20px 18px;
  background: #fbfcfd;
  border-top: 1px solid var(--border-subtle);
}

.smart-grid-group-row td {
  background: #f8fafc;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0;
}

.smart-grid-group-toggle {
  align-items: center;
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  display: flex;
  font: inherit;
  gap: 0;
  min-height: 42px;
  padding: 10px 14px;
  text-align: left;
  width: 100%;
}

.smart-grid-group-toggle:hover {
  background: #f1f5f9;
}

.smart-grid-group-toggle:focus-visible {
  outline: 3px solid rgba(14, 69, 66, .16);
  outline-offset: -3px;
}

.smart-grid-group-row span,
.smart-grid-mobile-group span {
  color: var(--text-muted);
  font-size: var(--text-xs);
  margin-right: 8px;
}

.smart-grid-group-row strong,
.smart-grid-mobile-group strong {
  color: var(--text-primary);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
}

.smart-grid-group-row em,
.smart-grid-mobile-group em {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 22px;
  padding: 0 8px;
  margin-left: 8px;
  border-radius: 999px;
  background: #e5e7eb;
  color: var(--text-secondary);
  font-style: normal;
  font-size: var(--text-xs);
  font-weight: var(--font-weight-medium);
}

.smart-grid-group-toggle i {
  align-items: center;
  color: var(--text-muted);
  display: inline-flex;
  justify-content: center;
  margin-left: 8px;
  transition: transform .16s ease;
}

.smart-grid-group-toggle.is-collapsed i {
  transform: rotate(-90deg);
}

.smart-grid-table tr.is-flagged td:first-child,
.smart-grid-mobile-card.is-flagged {
  position: relative;
}

.smart-grid-table tr.is-flagged td:first-child::before,
.smart-grid-mobile-card.is-flagged::before {
  content: "";
  position: absolute;
  inset: 8px auto 8px 0;
  width: 3px;
  border-radius: 999px;
  background: var(--flag-colour, #3b82f6);
}

.smart-grid-table tr.is-flag-red,
.smart-grid-mobile-card.is-flag-red { --flag-colour: #dc2626; }
.smart-grid-table tr.is-flag-orange,
.smart-grid-mobile-card.is-flag-orange { --flag-colour: #ea580c; }
.smart-grid-table tr.is-flag-yellow,
.smart-grid-mobile-card.is-flag-yellow { --flag-colour: #d97706; }
.smart-grid-table tr.is-flag-green,
.smart-grid-mobile-card.is-flag-green { --flag-colour: #16a34a; }
.smart-grid-table tr.is-flag-blue,
.smart-grid-mobile-card.is-flag-blue { --flag-colour: #2563eb; }
.smart-grid-table tr.is-flag-purple,
.smart-grid-mobile-card.is-flag-purple { --flag-colour: #7c3aed; }
.smart-grid-table tr.is-flag-grey,
.smart-grid-mobile-card.is-flag-grey { --flag-colour: #6b7280; }

.smart-grid-row-flag {
  display: inline-flex;
  align-items: center;
  max-width: 140px;
  margin-left: 8px;
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--flag-colour, #2563eb) 28%, transparent);
  background: color-mix(in srgb, var(--flag-colour, #2563eb) 10%, #fff);
  color: color-mix(in srgb, var(--flag-colour, #2563eb) 72%, #111827);
  font-size: 11px;
  font-weight: var(--font-weight-medium);
  white-space: nowrap;
  vertical-align: middle;
}

.smart-grid-row-flag.is-red { --flag-colour: #dc2626; }
.smart-grid-row-flag.is-orange { --flag-colour: #ea580c; }
.smart-grid-row-flag.is-yellow { --flag-colour: #d97706; }
.smart-grid-row-flag.is-green { --flag-colour: #16a34a; }
.smart-grid-row-flag.is-blue { --flag-colour: #2563eb; }
.smart-grid-row-flag.is-purple { --flag-colour: #7c3aed; }
.smart-grid-row-flag.is-grey { --flag-colour: #6b7280; }

.smart-grid-mobile-group {
  display: block;
  padding: 8px 0 2px;
}

.smart-grid-mobile-group .smart-grid-group-toggle {
  background: #f8fafc;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  min-height: 40px;
  padding: 9px 11px;
}

.asset-summary-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.asset-summary-strip span {
  align-items: baseline;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  color: var(--text-secondary);
  display: flex;
  gap: 8px;
  min-height: 52px;
  padding: 12px 14px;
}

.asset-summary-strip strong {
  color: var(--text-primary);
  font-size: 20px;
  font-weight: var(--font-weight-semibold);
}

.asset-register-list {
  gap: 10px;
}

.asset-disclosure > summary {
  background: #fff;
}

.asset-disclosure .record-related-summary-meta {
  gap: 8px;
}

.asset-disclosure .record-related-summary-meta > span:last-child {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.asset-expanded {
  display: grid;
  gap: 12px;
}

.asset-tax-disclaimer {
  background: #fff8ed;
  border-color: #fed7aa;
  color: #7c2d12;
  margin-top: 14px;
}

.property-assets-panel .empty .button,
.maintenance-linked-assets-panel .empty .button {
  margin-top: 12px;
}

.marketing-page-head .page-title p {
  max-width: 680px;
}

.marketing-command-panel {
  align-items: stretch;
  background:
    linear-gradient(135deg, rgba(16, 48, 48, .96), rgba(13, 78, 73, .92)),
    radial-gradient(circle at 92% 0%, rgba(96, 208, 112, .26), transparent 32%);
  border: 1px solid rgba(16, 48, 48, .14);
  border-radius: 18px;
  color: #fff;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) minmax(340px, .62fr);
  margin: 0 0 16px;
  overflow: hidden;
  padding: 22px;
}

.marketing-command-copy {
  align-content: center;
  display: grid;
  gap: 10px;
}

.marketing-command-copy > span {
  align-items: center;
  color: rgba(255, 255, 255, .76);
  display: inline-flex;
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semibold);
  gap: 7px;
  text-transform: uppercase;
}

.marketing-command-copy h3 {
  color: #fff;
  font-size: var(--text-2xl);
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0;
  line-height: var(--line-height-tight);
  margin: 0;
  max-width: 760px;
}

.marketing-command-copy p {
  color: rgba(255, 255, 255, .75);
  font-size: var(--text-sm);
  line-height: 1.55;
  margin: 0;
  max-width: 720px;
}

.marketing-command-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.marketing-command-actions .button:not(.primary) {
  background: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .18);
  color: #fff;
}

.marketing-command-metrics,
.marketing-module-metrics {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.marketing-metric-pill {
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 14px;
  display: grid;
  gap: 4px;
  min-height: 72px;
  padding: 13px;
}

.marketing-module-metrics .marketing-metric-pill {
  background: #fff;
  border-color: var(--border-subtle, #e5e7eb);
}

.marketing-metric-pill strong {
  color: inherit;
  font-size: var(--text-xl);
  font-weight: var(--font-weight-semibold);
  line-height: 1;
}

.marketing-command-metrics .marketing-metric-pill strong {
  color: #fff;
}

.marketing-metric-pill small {
  color: currentColor;
  font-size: var(--text-xs);
  line-height: 1.3;
  opacity: .68;
}

.marketing-module-metrics .marketing-metric-pill.is-info,
.marketing-metric-pill.is-info {
  color: #1d4ed8;
}

.marketing-module-metrics .marketing-metric-pill.is-success,
.marketing-metric-pill.is-success {
  color: #047857;
}

.marketing-module-metrics .marketing-metric-pill.is-warn,
.marketing-metric-pill.is-warn {
  color: #b45309;
}

.marketing-module-metrics .marketing-metric-pill.is-danger,
.marketing-metric-pill.is-danger {
  color: #b91c1c;
}

.marketing-workflow-strip {
  background: #fff;
  border: 1px solid var(--border-subtle, #e5e7eb);
  border-radius: 16px;
  display: grid;
  gap: 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 16px 0;
  overflow: hidden;
}

.marketing-channel-panel,
.marketing-scheduler-panel {
  background: #fff;
  border: 1px solid var(--border-subtle, #e5e7eb);
  border-radius: 16px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.04);
  display: grid;
  gap: 14px;
  margin: 0 0 16px;
  padding: 16px;
}

.marketing-channel-copy {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: auto minmax(0, 1fr);
}

.marketing-channel-copy > span {
  align-items: center;
  background: #eef7f1;
  border: 1px solid rgba(96, 208, 112, .28);
  border-radius: 999px;
  color: var(--sidebar-item-active-text);
  display: inline-flex;
  height: 40px;
  justify-content: center;
  width: 40px;
}

.marketing-channel-copy strong,
.marketing-scheduler-head strong {
  color: var(--text-primary);
  display: block;
  font-size: var(--text-md);
  font-weight: var(--font-weight-semibold);
}

.marketing-channel-copy p,
.marketing-scheduler-head p,
.marketing-channel-note {
  color: var(--text-muted);
  font-size: var(--text-sm);
  line-height: 1.45;
  margin: 4px 0 0;
}

.marketing-channel-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.marketing-channel-card {
  align-items: center;
  background: #f8fafc;
  border: 1px solid var(--border-subtle, #e5e7eb);
  border-radius: 14px;
  display: grid;
  gap: 10px;
  grid-template-columns: auto minmax(0, 1fr);
  min-height: 68px;
  padding: 12px;
}

.marketing-channel-card > span {
  align-items: center;
  background: #fff;
  border: 1px solid var(--border-subtle, #e5e7eb);
  border-radius: 999px;
  color: var(--text-muted);
  display: inline-flex;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.marketing-channel-card strong,
.marketing-scheduler-list strong {
  color: var(--text-primary);
  display: block;
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.marketing-channel-card small,
.marketing-scheduler-list small {
  color: var(--text-muted);
  display: block;
  font-size: var(--text-xs);
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.marketing-channel-card.is-success {
  background: #ecfdf5;
  border-color: #a7f3d0;
}

.marketing-channel-card.is-success > span {
  color: #047857;
}

.marketing-channel-card.is-danger {
  background: #fef2f2;
  border-color: #fecaca;
}

.marketing-channel-card.is-danger > span {
  color: #b91c1c;
}

.marketing-channel-note {
  background: #f8fafc;
  border: 1px solid var(--border-subtle, #e5e7eb);
  border-radius: 12px;
  padding: 10px 12px;
}

.marketing-scheduler-head {
  align-items: flex-start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.marketing-scheduler-list {
  display: grid;
  gap: 8px;
}

.marketing-scheduler-list a {
  align-items: center;
  background: #f8fafc;
  border: 1px solid var(--border-subtle, #e5e7eb);
  border-radius: 12px;
  color: inherit;
  display: grid;
  gap: 10px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  padding: 11px 12px;
  text-decoration: none;
}

.marketing-scheduler-list a > span:first-child {
  align-items: center;
  background: #fff;
  border: 1px solid var(--border-subtle, #e5e7eb);
  border-radius: 999px;
  color: var(--sidebar-item-active-text);
  display: inline-flex;
  height: 32px;
  justify-content: center;
  width: 32px;
}

.marketing-workflow-strip article {
  align-items: center;
  display: grid;
  gap: 11px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  min-height: 92px;
  padding: 15px;
}

.marketing-workflow-strip article + article {
  border-left: 1px solid var(--border-subtle, #e5e7eb);
}

.marketing-workflow-strip article > span,
.marketing-action-card > span,
.marketing-empty-hero > span,
.marketing-module-icon {
  align-items: center;
  background: #eef7f1;
  border: 1px solid rgba(96, 208, 112, .28);
  border-radius: 999px;
  color: var(--sidebar-item-active-text);
  display: inline-flex;
  height: 40px;
  justify-content: center;
  width: 40px;
}

.marketing-workflow-strip strong {
  color: var(--text-primary);
  display: block;
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
}

.marketing-workflow-strip p {
  color: var(--text-muted);
  font-size: var(--text-xs);
  line-height: 1.35;
  margin: 3px 0 0;
}

.marketing-workflow-strip em {
  color: var(--text-primary);
  font-size: var(--text-xl);
  font-style: normal;
  font-weight: var(--font-weight-semibold);
}

.marketing-attention-list {
  display: grid;
  gap: 10px;
  margin: 0 0 16px;
}

.marketing-attention-list article {
  align-items: center;
  background: #fff;
  border: 1px solid var(--border-subtle, #e5e7eb);
  border-radius: 14px;
  display: grid;
  gap: 12px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  padding: 12px 14px;
}

.marketing-attention-list article > span {
  align-items: center;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 999px;
  color: #c2410c;
  display: inline-flex;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.marketing-attention-list article.is-danger > span {
  background: #fef2f2;
  border-color: #fecaca;
  color: #b91c1c;
}

.marketing-attention-list strong {
  color: var(--text-primary);
  display: block;
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
}

.marketing-attention-list p {
  color: var(--text-muted);
  font-size: var(--text-xs);
  line-height: 1.4;
  margin: 2px 0 0;
}

.marketing-empty-hero,
.marketing-action-card,
.marketing-module-panel {
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfd 100%);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.04);
}

.marketing-empty-hero {
  align-items: center;
  display: grid;
  gap: 14px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  margin: 16px 0;
  padding: 18px;
}

.marketing-empty-hero strong {
  color: var(--text-primary);
  display: block;
  font-size: var(--text-lg);
  font-weight: var(--font-weight-semibold);
}

.marketing-empty-hero p {
  color: var(--text-muted);
  margin: 4px 0 0;
}

.marketing-action-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0 28px;
}

.marketing-action-card {
  color: inherit;
  display: grid;
  gap: 10px;
  min-height: 174px;
  padding: 18px;
  text-decoration: none;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.marketing-action-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.07);
  transform: translateY(-1px);
}

.marketing-action-card strong {
  color: var(--text-primary);
  font-size: var(--text-md);
  font-weight: var(--font-weight-semibold);
}

.marketing-action-card p {
  color: var(--text-muted);
  font-size: var(--text-sm);
  line-height: 1.45;
  margin: 0;
}

.marketing-action-card em {
  align-items: center;
  color: var(--text-muted);
  display: inline-flex;
  font-size: var(--text-xs);
  font-style: normal;
  font-weight: var(--font-weight-medium);
  margin-top: auto;
}

.marketing-list-head .page-title p {
  max-width: 760px;
}

.marketing-module-panel {
  align-items: center;
  border-top: 3px solid var(--marketing-accent, #0f766e);
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) minmax(340px, auto);
  margin: 0 0 14px;
  padding: 16px;
}

.marketing-module-copy {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: auto minmax(0, 1fr);
}

.marketing-module-copy strong {
  color: var(--text-primary);
  display: block;
  font-size: var(--text-lg);
  font-weight: var(--font-weight-semibold);
}

.marketing-module-copy p {
  color: var(--text-muted);
  font-size: var(--text-sm);
  line-height: 1.45;
  margin: 4px 0 0;
  max-width: 760px;
}

.marketing-module-metrics {
  grid-template-columns: repeat(3, minmax(96px, 1fr));
}

.marketing-search-context {
  align-items: center;
  background: #f8fafc;
  border: 1px solid var(--border-subtle, #e5e7eb);
  border-radius: 14px;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: -4px 0 14px;
  padding: 10px 12px;
}

.marketing-search-context strong {
  color: var(--text-primary);
  font-size: var(--text-sm);
}

.marketing-search-context p {
  font-size: var(--text-sm);
  margin: 0;
}

@media (max-width: 1180px) {
  .hr-people-command-panel {
    grid-template-columns: 1fr;
  }
  .hr-people-module-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hr-people-dashboard-grid {
    grid-template-columns: 1fr;
  }
  .hr-directory-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hr-staff-record-grid,
  .hr-staff-subgrid,
  .hr-reporting-line {
    grid-template-columns: 1fr;
  }
  .hr-staff-profile-card {
    position: static;
  }
}

@media (max-width: 760px) {
  .hr-people-command-metrics,
  .hr-people-module-strip,
  .form-row.three,
  .form-row.four,
  .hr-directory-grid,
  .hr-directory-meta,
  .hr-responsibility-body dl,
  .hr-staff-profile-card dl {
    grid-template-columns: 1fr;
  }
  .hr-people-command-panel {
    padding: 14px;
    border-radius: 16px;
  }
  .hr-people-command-copy h3 {
    font-size: 20px;
  }
  .hr-people-dialog {
    width: calc(100vw - 20px);
    max-height: calc(100vh - 20px);
    border-radius: 16px;
  }
  .hr-people-dialog-form > header,
  .hr-people-dialog-body,
  .hr-people-dialog-form > footer {
    padding-left: 14px;
    padding-right: 14px;
  }
  .hr-people-dialog .form-row,
  .hr-statement-panel .stack-form {
    grid-template-columns: 1fr;
  }
  .hr-people-dialog-form > footer {
    display: grid;
  }
  .hr-people-dialog-form > footer .button {
    width: 100%;
    justify-content: center;
  }
  .hr-person-row,
  .hr-rule-list article,
  .hr-settings-card header,
  .hr-responsibility-row > summary,
  .hr-direct-report-list a,
  .hr-compact-record-list article,
  .hr-small-row-list article {
    align-items: flex-start;
    flex-direction: column;
  }
  .hr-directory-card > header {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .hr-directory-card > header .badge {
    grid-column: 1 / -1;
    justify-self: start;
  }
  .hr-responsibility-row > summary {
    display: flex;
  }
  .hr-row-badges {
    justify-content: flex-start;
  }
  .hr-org-chart {
    min-width: 760px;
    padding: 16px;
  }
  .smart-grid-flag-rule {
    grid-template-columns: 1fr;
  }
  .smart-grid-group-panel,
  .smart-grid-flag-rule-fields {
    grid-template-columns: 1fr;
  }
  .smart-grid-view-header {
    align-items: flex-start;
  }
  .asset-summary-strip {
    grid-template-columns: 1fr;
  }
  .asset-disclosure .record-related-summary-meta > span:last-child {
    justify-content: flex-start;
  }
  .marketing-command-panel,
  .marketing-workflow-strip,
  .marketing-module-panel,
  .marketing-channel-grid {
    grid-template-columns: 1fr;
  }
  .marketing-command-metrics,
  .marketing-module-metrics,
  .marketing-action-grid {
    grid-template-columns: 1fr;
  }
  .marketing-workflow-strip article + article {
    border-left: 0;
    border-top: 1px solid var(--border-subtle, #e5e7eb);
  }
  .marketing-empty-hero {
    align-items: flex-start;
    grid-template-columns: 1fr;
  }
  .marketing-attention-list article {
    align-items: flex-start;
    grid-template-columns: auto minmax(0, 1fr);
  }
  .marketing-attention-list .button {
    grid-column: 2;
    justify-self: start;
  }
  .marketing-empty-hero .button {
    justify-self: start;
  }
  .marketing-scheduler-head,
  .marketing-channel-copy {
    align-items: flex-start;
  }
  .marketing-scheduler-list a {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .marketing-scheduler-list a .smart-grid-badge {
    grid-column: 2;
    justify-self: start;
  }
}

.integration-provider-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin: 16px 0;
}

.integration-provider-card,
.integration-account-card {
  background: var(--surface, #fff);
  border: 1px solid var(--border-subtle, #e5e7eb);
  border-radius: 14px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.04);
}

.integration-provider-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
}

.integration-provider-head,
.integration-account-card,
.integration-account-title,
.integration-provider-actions {
  align-items: center;
  display: flex;
  gap: 12px;
}

.integration-provider-head {
  justify-content: flex-start;
}

.integration-provider-head strong,
.integration-account-title strong {
  color: var(--text-primary, #111827);
  display: block;
  font-size: 15px;
  font-weight: 600;
}

.integration-provider-head small,
.integration-account-main span,
.integration-account-main small,
.integration-provider-card p {
  color: var(--text-muted, #6b7280);
  font-size: 13px;
  line-height: 1.45;
}

.integration-provider-icon,
.integration-account-icon {
  align-items: center;
  background: linear-gradient(180deg, #f8fafc, #eef2f7);
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  color: #344054;
  display: inline-flex;
  height: 42px;
  justify-content: center;
  width: 42px;
}

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

.integration-capability-list li {
  align-items: center;
  color: var(--text-secondary, #4b5563);
  display: flex;
  font-size: 13px;
  gap: 8px;
}

.integration-provider-actions {
  flex-wrap: wrap;
  margin-top: auto;
}

.integration-account-list {
  display: grid;
  gap: 12px;
}

.integration-account-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  padding: 14px;
}

.integration-account-main {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.integration-account-title {
  flex-wrap: wrap;
}

.integration-account-main span,
.integration-account-main small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.polished-modal .modal-form {
  display: grid;
  gap: 14px;
}

.leasing-head .page-title p,
.public-rental-hero p {
  max-width: 720px;
}

.leasing-metric-row {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 0 18px;
}

.leasing-metric,
.leasing-panel,
.leasing-list-card,
.leasing-destination-card,
.public-listing-card,
.public-listing-detail,
.public-action-panels article,
.record-panel {
  background: #fff;
  border: 1px solid var(--border, #d9e1e8);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.045);
}

.leasing-metric {
  align-items: center;
  color: var(--text, #111827);
  display: grid;
  gap: 6px;
  grid-template-columns: auto minmax(0, 1fr);
  padding: 18px;
  text-decoration: none;
}

.leasing-metric span {
  align-items: center;
  background: linear-gradient(135deg, #edf7f0, #f7fafc);
  border: 1px solid #d8eee0;
  border-radius: 999px;
  color: #0f3d3a;
  display: inline-flex;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.leasing-metric strong {
  font-size: 28px;
  line-height: 1;
}

.leasing-metric small {
  color: var(--muted, #64748b);
  font-weight: 700;
  grid-column: 2;
}

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

.leasing-panel {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.leasing-panel.wide {
  grid-column: span 2;
}

.leasing-panel > header,
.leasing-destination-card > header {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.leasing-panel > header > span,
.leasing-destination-card > header > span {
  align-items: center;
  background: #f2f6f7;
  border: 1px solid #dfe8eb;
  border-radius: 999px;
  color: #123f3c;
  display: inline-flex;
  height: 36px;
  justify-content: center;
  width: 36px;
}

.leasing-action-list,
.leasing-mini-list,
.leasing-mobile-stop-list,
.leasing-attendee-list {
  display: grid;
  gap: 10px;
}

.leasing-action-list a,
.leasing-mini-list a,
.leasing-mobile-stop-list a {
  align-items: center;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  color: inherit;
  display: flex;
  justify-content: space-between;
  padding: 12px 14px;
  text-decoration: none;
}

.leasing-pipeline {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.leasing-pipeline a {
  background: linear-gradient(180deg, #f8fafc, #fff);
  border: 1px solid #dfe8eb;
  border-radius: 10px;
  color: inherit;
  display: grid;
  gap: 8px;
  min-height: 90px;
  padding: 14px;
  text-decoration: none;
}

.leasing-pipeline small {
  color: #64748b;
  font-weight: 700;
}

.leasing-pipeline strong {
  font-size: 24px;
}

.leasing-card-grid,
.leasing-destination-grid,
.public-listing-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.leasing-settings-hero {
  align-items: end;
  background:
    radial-gradient(circle at 90% 12%, rgba(31, 95, 91, 0.11), transparent 34%),
    linear-gradient(135deg, #f7fbf8 0%, #ffffff 58%, #f4f7fb 100%);
  border: 1px solid #dce7e4;
  border-radius: 18px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.06);
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) auto;
  margin-bottom: 16px;
  padding: 24px;
}

.leasing-settings-kicker {
  align-items: center;
  color: #1f5f5b;
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  gap: 8px;
  letter-spacing: 0;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.leasing-settings-hero h2 {
  color: #111827;
  font-size: 30px;
  line-height: 1.1;
  margin: 0;
}

.leasing-settings-hero p {
  color: #52616d;
  font-size: 14px;
  line-height: 1.55;
  margin: 10px 0 0;
  max-width: 760px;
}

.leasing-settings-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.leasing-settings-overview {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-bottom: 16px;
}

.leasing-settings-overview article {
  align-items: flex-start;
  background: #ffffff;
  border: 1px solid #dfe8eb;
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.04);
  display: grid;
  gap: 12px;
  grid-template-columns: auto minmax(0, 1fr);
  min-height: 106px;
  padding: 16px;
}

.leasing-settings-overview article > span {
  align-items: center;
  background: #f0f7f5;
  border: 1px solid #d6ebe5;
  border-radius: 12px;
  color: #1f5f5b;
  display: inline-flex;
  height: 40px;
  justify-content: center;
  width: 40px;
}

.leasing-settings-overview strong {
  color: #111827;
  display: block;
  font-size: 26px;
  line-height: 1;
}

.leasing-settings-overview small {
  color: #64748b;
  display: block;
  font-weight: 800;
  margin-top: 6px;
}

.leasing-settings-overview em {
  color: #7b8794;
  display: block;
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
  line-height: 1.35;
  margin-top: 4px;
}

.leasing-settings-intro {
  align-items: flex-start;
  background: #f7faf9;
  border: 1px solid #dfe8eb;
  border-radius: 14px;
  color: #334155;
  display: grid;
  gap: 12px;
  grid-template-columns: auto minmax(0, 1fr);
  margin-bottom: 16px;
  padding: 14px 16px;
}

.leasing-settings-intro > div {
  align-items: center;
  background: #ffffff;
  border: 1px solid #d9e6e2;
  border-radius: 999px;
  color: #1f5f5b;
  display: inline-flex;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.leasing-settings-intro p {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  margin: 0;
}

.leasing-list-card,
.public-listing-card {
  color: inherit;
  display: grid;
  gap: 10px;
  padding: 18px;
  text-decoration: none;
}

.leasing-record-layout {
  align-items: start;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.25fr) minmax(320px, 0.95fr);
}

.leasing-record-main,
.leasing-record-tabs,
.leasing-copy-preview {
  display: grid;
  gap: 14px;
}

.record-panel {
  padding: 18px;
}

.leasing-copy-preview {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 16px;
}

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

.leasing-record-tabs a {
  align-items: center;
  border: 1px solid #dfe8eb;
  border-radius: 10px;
  color: inherit;
  display: flex;
  justify-content: space-between;
  padding: 13px 14px;
  text-decoration: none;
}

.leasing-settings-grid {
  align-items: start;
}

.leasing-destination-card {
  background: #ffffff;
  border: 1px solid #dfe8eb;
  border-radius: 18px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.055);
  display: grid;
  gap: 14px;
  overflow: hidden;
  padding: 18px;
  position: relative;
}

.leasing-destination-card::before {
  background: linear-gradient(90deg, var(--destination-accent, #1f5f5b), transparent);
  content: "";
  height: 4px;
  inset: 0 0 auto 0;
  opacity: 0.9;
  position: absolute;
}

.leasing-destination-card.is-domain { --destination-accent: #6f2dbd; }
.leasing-destination-card.is-rea { --destination-accent: #e51b23; }
.leasing-destination-card.is-rent { --destination-accent: #0070c9; }
.leasing-destination-card.is-homely { --destination-accent: #11a66a; }
.leasing-destination-card.is-allhomes { --destination-accent: #00a3ad; }
.leasing-destination-card.is-custom { --destination-accent: #475569; }
.leasing-destination-card.is-delegate { --destination-accent: #1f5f5b; }

.leasing-settings-card {
  gap: 14px;
  overflow: hidden;
}

.leasing-destination-card-head {
  align-items: start;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding-top: 6px;
}

.leasing-destination-brand-block {
  min-width: 0;
}

.leasing-destination-logo {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: auto minmax(0, 1fr);
}

.leasing-destination-logo > img,
.leasing-destination-logo-mark {
  align-items: center;
  background: var(--destination-accent, #1f5f5b);
  border-radius: 14px;
  color: #ffffff;
  display: inline-flex;
  height: 46px;
  justify-content: center;
  width: 46px;
}

.leasing-destination-logo > img {
  background: #ffffff;
  border: 1px solid #d7e4df;
  object-fit: contain;
  padding: 8px;
}

.leasing-destination-logo strong {
  color: #111827;
  display: block;
  font-size: 17px;
  line-height: 1.1;
}

.leasing-destination-logo small {
  color: #64748b;
  display: block;
  font-size: 11px;
  font-weight: 800;
  margin-top: 3px;
  text-transform: uppercase;
}

.leasing-destination-logo.is-domain strong { color: #4b1688; }
.leasing-destination-logo.is-rea strong { color: #c8141b; }
.leasing-destination-logo.is-rent strong { color: #005ea8; }
.leasing-destination-logo.is-homely strong { color: #0d8354; }
.leasing-destination-logo.is-allhomes strong { color: #00838c; }

.leasing-destination-state {
  align-items: end;
  display: grid;
  gap: 5px;
  justify-items: end;
}

.leasing-destination-state small {
  color: #64748b;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.leasing-destination-card-body h3 {
  color: #111827;
  font-size: 18px;
  line-height: 1.2;
  margin: 0 0 6px;
}

.leasing-destination-card p {
  color: #64748b;
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
}

.leasing-destination-meta {
  background: #f8faf9;
  border: 1px solid #e3ebee;
  border-radius: 14px;
  display: grid;
  gap: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  overflow: hidden;
}

.leasing-destination-meta div {
  display: grid;
  gap: 4px;
  padding: 11px 12px;
}

.leasing-destination-meta div + div {
  border-left: 1px solid #e3ebee;
}

.leasing-destination-meta dt,
.leasing-destination-meta dd {
  margin: 0;
}

.leasing-destination-meta dt {
  color: #7b8794;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.leasing-destination-meta dd {
  color: #1f2937;
  font-size: 12px;
  font-weight: 900;
}

.leasing-destination-capabilities {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.leasing-destination-capabilities span {
  align-items: center;
  background: #f6f8fa;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  color: #334155;
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  gap: 6px;
  padding: 7px 10px;
}

.leasing-destination-readiness {
  align-items: flex-start;
  background: #f7faf9;
  border: 1px solid #e1eaed;
  border-radius: 12px;
  display: grid;
  gap: 8px;
  grid-template-columns: auto minmax(0, 1fr);
  padding: 10px 12px;
}

.leasing-destination-readiness > span {
  color: var(--destination-accent, #1f5f5b);
  display: inline-flex;
  margin-top: 1px;
}

.leasing-destination-readiness p {
  color: #475569;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.45;
}

.leasing-settings-warning {
  align-items: flex-start;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 10px;
  color: #9a3412;
  display: flex;
  font-size: 13px;
  font-weight: 700;
  gap: 8px;
  padding: 10px 12px;
}

.leasing-destination-manage {
  background: #fbfcfd;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
  padding: 0;
}

.leasing-destination-manage summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  list-style: none;
  padding: 14px 16px;
}

.leasing-destination-manage summary::-webkit-details-marker {
  display: none;
}

.leasing-destination-manage summary strong {
  color: #111827;
  display: block;
  font-size: 13px;
}

.leasing-destination-manage summary small {
  color: #64748b;
  display: block;
  font-size: 11px;
  font-weight: 750;
  margin-top: 2px;
}

.leasing-destination-manage[open] summary {
  border-bottom: 1px solid #e2e8f0;
}

.leasing-destination-manage[open] summary .app-icon {
  transform: rotate(180deg);
}

.leasing-destination-form {
  display: grid;
  gap: 0;
  padding: 0;
}

.leasing-destination-form-section {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(180px, 0.8fr) minmax(0, 1.5fr);
  padding: 16px;
}

.leasing-destination-form-section + .leasing-destination-form-section {
  border-top: 1px solid #e7eef0;
}

.leasing-destination-form-section h4 {
  color: #111827;
  font-size: 13px;
  margin: 0;
}

.leasing-destination-form-section p {
  color: #64748b;
  font-size: 12px;
  line-height: 1.45;
  margin: 4px 0 0;
}

.leasing-destination-form-section > .toggle-row {
  align-self: start;
}

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

.leasing-settings-toggles {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.leasing-destination-form > .filter-actions {
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  justify-content: flex-end;
  padding: 14px 16px;
}

@media (max-width: 1180px) {
  .leasing-settings-overview {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

.toggle-row {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.leasing-modal .full-span,
.smart-grid-bulk-form .full-span {
  grid-column: 1 / -1;
}

.leasing-property-search-field {
  gap: 8px;
}

.leasing-property-search-row {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.leasing-property-search-row .badge {
  justify-self: end;
  white-space: nowrap;
}

.leasing-applicant-section {
  display: grid;
  gap: 14px;
}

.leasing-applicant-cards {
  display: grid;
  gap: 12px;
}

.leasing-applicant-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
}

.leasing-applicant-card form,
.leasing-applicant-card header {
  display: grid;
  gap: 12px;
}

.leasing-applicant-card header {
  align-items: start;
  grid-template-columns: minmax(0, 1fr) auto;
}

.leasing-applicant-card header span {
  color: var(--muted);
  display: block;
  font-size: 12px;
  margin-top: 2px;
}

.leasing-applicant-form .filter-actions {
  justify-content: flex-end;
}

@media (max-width: 720px) {
  .leasing-property-search-row,
  .leasing-applicant-card header {
    grid-template-columns: 1fr;
  }

  .leasing-property-search-row .badge {
    justify-self: start;
  }
}

.public-leasing-body {
  background: #f5f7f8;
  color: #111827;
  font-family: "Inter", system-ui, sans-serif;
  margin: 0;
}

.public-leasing-shell {
  margin: 0 auto;
  max-width: 1180px;
  padding: 32px 18px 56px;
}

.public-rental-hero {
  background: linear-gradient(135deg, rgba(14, 74, 70, 0.95), rgba(19, 63, 60, 0.82));
  border-radius: 18px;
  color: #fff;
  margin-bottom: 18px;
  padding: 34px;
}

.public-rental-hero h1,
.public-listing-detail h1 {
  letter-spacing: 0;
  margin: 0 0 8px;
}

.public-listing-card span,
.public-rent {
  color: #0f3d3a;
  font-size: 20px;
  font-weight: 900;
}

.public-listing-detail {
  display: grid;
  gap: 12px;
  padding: 24px;
}

.public-feature-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.public-feature-row span {
  background: #eef7f1;
  border: 1px solid #d7eadc;
  border-radius: 999px;
  font-weight: 800;
  padding: 8px 12px;
}

.public-action-panels {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 16px;
}

.public-action-panels article,
.public-booking-form,
.applicant-public-tabs {
  display: grid;
  gap: 12px;
}

.public-booking-form input,
.public-booking-form textarea {
  border: 1px solid #d7dee7;
  border-radius: 10px;
  font: inherit;
  padding: 12px 13px;
}

.public-booking-form .public-consent input[type="checkbox"] {
  border-radius: 999px;
  padding: 0;
}

.public-consent {
  align-items: center;
  color: #475569;
  display: flex;
  gap: 8px;
  font-size: 13px;
}

.applicant-public-tabs {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 16px;
}

.applicant-public-tabs a {
  background: #fff;
  border: 1px solid #dfe8eb;
  border-radius: 10px;
  color: inherit;
  font-weight: 800;
  padding: 12px;
  text-align: center;
  text-decoration: none;
}

.applicant-command-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 0 16px;
}

.applicant-command-grid a,
.applicant-command-grid article {
  background: #fff;
  border: 1px solid #dfe8eb;
  border-radius: 14px;
  color: inherit;
  display: grid;
  gap: 8px;
  min-height: 138px;
  padding: 16px;
  text-decoration: none;
}

.applicant-command-grid a.is-active {
  border-color: #b9dacb;
  box-shadow: inset 0 0 0 1px #d9ede2, 0 12px 28px rgba(15, 61, 58, .08);
}

.applicant-command-grid span {
  align-items: center;
  background: #eef7f1;
  border: 1px solid #d7eadc;
  border-radius: 11px;
  color: #0f3d3a;
  display: inline-flex;
  height: 36px;
  justify-content: center;
  width: 36px;
}

.applicant-command-grid strong {
  color: #111827;
  font-size: 16px;
}

.applicant-command-grid p {
  color: #536171;
  font-size: 13px;
  line-height: 1.45;
  margin: 0;
}

.applicant-workflow-panel {
  background: #fff;
  border: 1px solid #dfe8eb;
  border-radius: 14px;
  margin-bottom: 16px;
  overflow: hidden;
}

.leasing-mobile-shell {
  background: #f8fafc;
  border: 1px solid #dfe8eb;
  border-radius: 22px;
  display: grid;
  gap: 16px;
  margin: 0 auto;
  max-width: 560px;
  padding: 18px;
}

.leasing-mobile-shell > header {
  align-items: center;
  background: #0f3d3a;
  border-radius: 18px;
  color: #fff;
  display: flex;
  gap: 12px;
  padding: 18px;
}

.leasing-attendee-list article {
  align-items: center;
  background: #fff;
  border: 1px solid #dfe8eb;
  border-radius: 14px;
  display: grid;
  gap: 12px;
  padding: 14px;
}

.leasing-attendance-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

@media (max-width: 760px) {
  .local-intelligence-grid,
  .tenant-local-layout {
    grid-template-columns: 1fr;
  }

  .tenant-local-layout > .tenant-local-alerts-panel {
    grid-column: auto;
  }

  .integration-account-card {
    align-items: flex-start;
    grid-template-columns: auto minmax(0, 1fr);
  }

  .integration-account-card form {
    grid-column: 1 / -1;
    width: 100%;
  }

  .integration-account-card form .button {
    justify-content: center;
    width: 100%;
  }

  .leasing-metric-row,
  .leasing-settings-overview,
  .leasing-command-grid,
  .leasing-pipeline,
  .leasing-card-grid,
  .leasing-destination-grid,
  .applicant-command-grid,
  .public-listing-grid,
  .leasing-record-layout,
  .leasing-record-tabs,
  .public-action-panels,
  .applicant-public-tabs {
    grid-template-columns: 1fr;
  }

  .leasing-panel.wide {
    grid-column: auto;
  }

  .leasing-destination-form .form-grid,
  .leasing-destination-form-section,
  .leasing-destination-meta,
  .leasing-settings-hero,
  .leasing-settings-toggles {
    grid-template-columns: 1fr;
  }

  .leasing-settings-hero {
    align-items: start;
    padding: 20px;
  }

  .leasing-settings-hero-actions {
    justify-content: flex-start;
  }

  .leasing-destination-card-head {
    grid-template-columns: 1fr;
  }

  .leasing-destination-state {
    align-items: start;
    justify-items: start;
  }

  .leasing-destination-meta div + div {
    border-left: 0;
    border-top: 1px solid #e3ebee;
  }

  .leasing-destination-form > .filter-actions {
    justify-content: stretch;
  }

  .leasing-destination-form > .filter-actions .button {
    justify-content: center;
    width: 100%;
  }

  .public-rental-hero {
    border-radius: 14px;
    padding: 24px;
  }
}

.help-topbar-button {
  background: #ffffff;
  border-color: #d9e2ea;
  color: #25323f;
}

.help-hero {
  align-items: center;
  background: linear-gradient(135deg, #f7fafc 0%, #ffffff 62%, #eef8f3 100%);
  border: 1px solid #dbe5ed;
  border-radius: 18px;
  box-shadow: 0 16px 44px rgba(15, 23, 42, 0.06);
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  margin-bottom: 22px;
  padding: 34px;
}

.help-hero h2,
.help-page-head h2,
.help-article-header h2,
.help-admin-form h2 {
  color: #111827;
  font-size: clamp(30px, 4vw, 48px);
  letter-spacing: 0;
  line-height: 1.04;
  margin: 0;
}

.help-hero p,
.help-page-head p,
.help-article-header p {
  color: #64748b;
  font-size: 16px;
  line-height: 1.55;
  margin: 10px 0 0;
}

.help-search-form {
  align-items: center;
  background: #ffffff;
  border: 1px solid #d9e2ea;
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 10px;
}

.help-search-form.compact {
  box-shadow: none;
  margin-top: 18px;
  max-width: 720px;
}

.help-search-form input,
.help-admin-form input,
.help-admin-form select,
.help-admin-form textarea {
  background: #ffffff;
  border: 1px solid #d9e2ea;
  border-radius: 12px;
  color: #111827;
  font: inherit;
  min-height: 46px;
  padding: 12px 14px;
  width: 100%;
}

.help-search-form input {
  border: 0;
  min-height: 44px;
  outline: none;
}

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

.help-category-card {
  background: #ffffff;
  border: 1px solid #dbe5ed;
  border-radius: 16px;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 185px;
  padding: 20px;
  text-decoration: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.help-category-card:hover {
  border-color: #a6d9c1;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.help-category-icon {
  align-items: center;
  background: #edf8f2;
  border: 1px solid #ccebdd;
  border-radius: 999px;
  color: #0f3d36;
  display: inline-flex;
  height: 44px;
  justify-content: center;
  width: 44px;
}

.help-category-card strong,
.help-article-row strong,
.help-admin-row strong {
  color: #111827;
  font-size: 17px;
  font-weight: 700;
}

.help-category-card p,
.help-article-row p {
  color: #64748b;
  line-height: 1.5;
  margin: 0;
}

.help-category-card small {
  color: #0f3d36;
  font-weight: 700;
  margin-top: auto;
}

.help-page-head,
.help-admin-panel,
.help-admin-form {
  background: #ffffff;
  border: 1px solid #dbe5ed;
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.05);
  margin-bottom: 18px;
  padding: 24px;
}

.help-breadcrumb {
  align-items: center;
  color: #7b8794;
  display: flex;
  flex-wrap: wrap;
  font-size: 13px;
  gap: 8px;
  margin-bottom: 16px;
}

.help-breadcrumb a {
  color: #0f3d36;
  font-weight: 700;
  text-decoration: none;
}

.help-title-row {
  align-items: center;
  display: flex;
  gap: 14px;
}

.help-article-list {
  background: #ffffff;
  border: 1px solid #dbe5ed;
  border-radius: 16px;
  overflow: hidden;
}

.help-article-row {
  align-items: center;
  color: inherit;
  display: grid;
  gap: 14px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  padding: 18px 20px;
  text-decoration: none;
}

.help-article-row + .help-article-row {
  border-top: 1px solid #edf2f7;
}

.help-article-row:hover {
  background: #f8fafc;
}

.help-article-layout {
  align-items: start;
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0, 1fr) 300px;
}

.help-article-main,
.help-related {
  background: #ffffff;
  border: 1px solid #dbe5ed;
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.05);
  padding: 26px;
}

.help-article-header small {
  color: #7b8794;
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-top: 14px;
}

.help-loom-frame {
  aspect-ratio: 16 / 9;
  background: #101828;
  border-radius: 16px;
  margin: 22px 0;
  overflow: hidden;
}

.help-loom-frame iframe {
  border: 0;
  height: 100%;
  width: 100%;
}

.help-article-body {
  color: #263442;
  font-size: 16px;
  line-height: 1.7;
}

.help-article-body h2,
.help-article-body h3 {
  color: #111827;
  letter-spacing: 0;
  line-height: 1.2;
  margin: 26px 0 10px;
}

.help-article-body a {
  color: #0f6b5f;
  font-weight: 700;
}

.help-feedback {
  border-top: 1px solid #edf2f7;
  margin-top: 28px;
  padding-top: 20px;
}

.help-feedback h3,
.help-related h3,
.help-admin-panel h3 {
  color: #111827;
  font-size: 17px;
  margin: 0;
}

.help-feedback-actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.help-related {
  position: sticky;
  top: 94px;
}

.help-related a {
  align-items: center;
  border-bottom: 1px solid #edf2f7;
  color: #263442;
  display: flex;
  gap: 8px;
  padding: 12px 0;
  text-decoration: none;
}

.help-admin-hero {
  margin-bottom: 16px;
}

.help-admin-metrics {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 16px;
}

.help-admin-metrics article {
  background: #ffffff;
  border: 1px solid #dbe5ed;
  border-radius: 14px;
  padding: 18px;
}

.help-admin-metrics small {
  color: #64748b;
  display: block;
  font-size: 12px;
  font-weight: 700;
}

.help-admin-metrics strong {
  color: #111827;
  display: block;
  font-size: 30px;
  margin-top: 6px;
}

.help-admin-ops-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr);
  margin-bottom: 16px;
}

.help-admin-ops-grid article,
.help-admin-filter-bar {
  background: #fff;
  border: 1px solid #dbe5ed;
  border-radius: 14px;
  padding: 16px;
}

.help-admin-ops-grid header {
  align-items: center;
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.help-admin-ops-grid header span {
  align-items: center;
  background: #eef7f1;
  border: 1px solid rgba(96, 208, 112, .28);
  border-radius: 999px;
  color: var(--sidebar-item-active-text);
  display: inline-flex;
  height: 32px;
  justify-content: center;
  width: 32px;
}

.help-admin-ops-grid header strong {
  color: var(--ink);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
}

.help-admin-audience-bars,
.help-admin-signal-list {
  display: grid;
  gap: 8px;
}

.help-admin-audience-bars {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.help-admin-audience-bars span,
.help-admin-signal-list span {
  background: #f8fafc;
  border: 1px solid #edf2f7;
  border-radius: 12px;
  display: grid;
  gap: 3px;
  padding: 12px;
}

.help-admin-audience-bars small,
.help-admin-signal-list small {
  color: var(--muted);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semibold);
}

.help-admin-audience-bars strong,
.help-admin-signal-list strong {
  color: var(--ink);
  font-size: var(--text-xl);
  font-weight: var(--font-weight-semibold);
  line-height: 1;
}

.help-admin-filter-bar {
  align-items: stretch;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) minmax(160px, auto) minmax(160px, auto) auto auto;
  margin-bottom: 14px;
}

.help-admin-filter-bar .modal-search-field {
  margin: 0;
}

.help-admin-filter-bar select {
  background: linear-gradient(180deg, #fff, #fbfcfd);
  border: 1px solid var(--border, #d6e0e6);
  border-radius: 12px;
  color: var(--ink);
  min-height: 44px;
  padding: 10px 12px;
}

.help-admin-panel header,
.help-admin-form header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
}

.help-admin-row {
  align-items: center;
  border-top: 1px solid #edf2f7;
  display: grid;
  gap: 12px;
  grid-template-columns: auto minmax(0, 1fr) auto minmax(260px, auto);
  padding: 14px 0;
}

.help-admin-row:first-of-type {
  border-top: 0;
}

.help-admin-row small {
  color: #64748b;
  display: block;
  margin-top: 4px;
}

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

.help-admin-row-actions form {
  margin: 0;
}

.help-admin-form form {
  display: grid;
  gap: 16px;
}

.help-admin-form label,
.help-admin-form fieldset {
  display: grid;
  gap: 8px;
}

.help-admin-form label > span,
.help-admin-form legend {
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
}

.help-admin-form fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

.help-icon-picker,
.help-check-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.help-icon-picker label,
.help-check-grid label {
  align-items: center;
  background: #ffffff;
  border: 1px solid #dbe5ed;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  gap: 9px;
  min-height: 46px;
  padding: 10px 12px;
}

.help-check-grid label::before {
  content: "";
  position: relative;
  flex: 0 0 auto;
  width: var(--switch-width);
  height: var(--switch-height);
  border: 1px solid var(--switch-off-border);
  border-radius: 999px;
  background:
    radial-gradient(circle at 12px 50%, #ffffff 0 8px, transparent 9px),
    var(--switch-off-bg);
  box-shadow: inset 0 1px 1px rgba(15, 23, 42, .08);
  transition: background .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.help-icon-picker label.selected,
.help-check-grid label:has(input:checked) {
  background: #edf8f2;
  border-color: #9bd8ba;
  color: #0f3d36;
}

.help-check-grid label:has(input:checked)::before {
  border-color: var(--switch-on-border);
  background:
    radial-gradient(circle at 32px 50%, #ffffff 0 8px, transparent 9px),
    var(--switch-on-bg);
  box-shadow: 0 0 0 3px rgba(96, 208, 112, .14);
}

.help-check-grid label:has(input:focus-visible)::before {
  outline: 3px solid var(--switch-focus);
  outline-offset: 2px;
}

.help-icon-picker input,
.help-check-grid input {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 0;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}

.help-icon-picker small,
.help-check-grid span {
  font-size: 12px;
  font-weight: 700;
}

.help-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.status-badge.status-published {
  background: #e7f7ed;
  color: #17603b;
}

.status-badge.status-draft {
  background: #eef2f7;
  color: #475569;
}

.status-badge.status-archived {
  background: #f3f4f6;
  color: #4b5563;
}

@media (max-width: 980px) {
  .help-hero,
  .help-article-layout,
  .help-admin-ops-grid,
  .help-admin-metrics {
    grid-template-columns: 1fr;
  }

  .help-related {
    position: static;
  }

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

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

  .help-admin-audience-bars,
  .help-admin-filter-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .help-hero,
  .help-page-head,
  .help-article-main,
  .help-related,
  .help-admin-panel,
  .help-admin-form {
    border-radius: 14px;
    padding: 18px;
  }

  .help-search-form,
  .help-category-grid,
  .help-admin-row,
  .help-admin-audience-bars,
  .help-admin-filter-bar,
  .help-icon-picker,
  .help-check-grid,
  .help-admin-form .form-grid.two {
    grid-template-columns: 1fr;
  }

  .help-admin-row {
    align-items: start;
  }

  .help-category-card {
    min-height: 0;
  }

  .help-topbar-button span {
    display: none;
  }
}

/* Dee assistant */
.dee-head .page-title p {
  max-width: 760px;
}

.dee-command-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.dee-command-strip article,
.dee-panel,
.dee-chat-card {
  background: #fff;
  border: 1px solid #dbe4e8;
  border-radius: 16px;
  box-shadow: 0 18px 55px rgba(15, 23, 42, .06);
}

.dee-command-strip article {
  padding: 18px 20px;
}

.dee-command-strip span {
  display: block;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.dee-command-strip strong {
  display: block;
  margin-top: 8px;
  color: #0f172a;
  font-size: 28px;
  line-height: 1;
}

.dee-overview-grid,
.dee-settings-grid,
.dee-record-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
}

.dee-record-layout {
  grid-template-columns: 300px minmax(0, 1fr) 320px;
  align-items: start;
}

.dee-panel {
  padding: 20px;
}

.dee-panel h3 {
  margin: 0 0 12px;
  color: #172033;
  font-size: 17px;
}

.dee-panel p {
  color: #64748b;
  line-height: 1.55;
}

.dee-step-list {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.dee-step-list span {
  border-left: 3px solid #6fd281;
  padding: 8px 12px;
  background: #f6fbf7;
  border-radius: 10px;
  color: #1f3d35;
  font-size: 13px;
  font-weight: 800;
}

.dee-code {
  white-space: pre-wrap;
  overflow: auto;
  margin: 14px 0 0;
  padding: 14px;
  background: #0f172a;
  color: #d8f5df;
  border-radius: 12px;
  font-size: 12px;
  line-height: 1.5;
}

.dee-definition-list {
  display: grid;
  gap: 10px;
  margin: 0 0 18px;
}

.dee-definition-list div {
  display: grid;
  grid-template-columns: 105px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding-bottom: 10px;
  border-bottom: 1px solid #edf2f5;
}

.dee-definition-list dt {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.dee-definition-list dd {
  margin: 0;
  color: #172033;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.dee-toggle-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.dee-toggle-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-height: 78px;
  padding: 14px;
  border: 1px solid #dbe4e8;
  border-radius: 12px;
  background: linear-gradient(180deg, #fff, #f8fafc);
  color: #172033;
  cursor: pointer;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.dee-toggle-card:hover {
  border-color: #b8c8ce;
  box-shadow: 0 12px 26px rgba(15, 23, 42, .07);
  transform: translateY(-1px);
}

.dee-toggle-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.dee-toggle-switch {
  position: relative;
  flex: 0 0 auto;
  width: var(--switch-width);
  height: var(--switch-height);
  margin-top: 1px;
  border-radius: 999px;
  background: var(--switch-off-bg);
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .08);
  transition: background .18s ease;
}

.dee-toggle-switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(15, 23, 42, .22);
  transition: transform .18s ease;
}

.dee-toggle-card input:checked + .dee-toggle-switch {
  background: var(--switch-on-bg);
}

.dee-toggle-card input:checked + .dee-toggle-switch::after {
  transform: translateX(20px);
}

.dee-toggle-card input:focus-visible + .dee-toggle-switch {
  outline: 3px solid var(--switch-focus);
  outline-offset: 3px;
}

.toggle-row input[type="checkbox"],
.checkbox-row input[type="checkbox"],
.check-row input[type="checkbox"],
.checkbox-line input[type="checkbox"],
.public-consent input[type="checkbox"] {
  width: var(--switch-width) !important;
  height: var(--switch-height) !important;
  min-height: 0 !important;
  padding: 0 !important;
  border-radius: 999px !important;
}

.toggle-row input[type="checkbox"]:checked,
.checkbox-row input[type="checkbox"]:checked,
.check-row input[type="checkbox"]:checked,
.checkbox-line input[type="checkbox"]:checked,
.public-consent input[type="checkbox"]:checked {
  border-color: var(--switch-on-border) !important;
  background: var(--switch-on-bg) !important;
}

.toggle-row input[type="checkbox"]:focus-visible,
.checkbox-row input[type="checkbox"]:focus-visible,
.check-row input[type="checkbox"]:focus-visible,
.checkbox-line input[type="checkbox"]:focus-visible,
.public-consent input[type="checkbox"]:focus-visible {
  outline: 3px solid var(--switch-focus);
  outline-offset: 2px;
}

.dee-toggle-card:has(input:checked) {
  border-color: #b8dcc0;
  background: linear-gradient(180deg, #fbfffc, #f0faf2);
}

.dee-toggle-copy {
  display: grid;
  gap: 4px;
}

.dee-toggle-copy strong {
  color: #172033;
  font-size: 14px;
  line-height: 1.2;
}

.dee-toggle-copy small {
  color: #66758a;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 700;
}

.dee-embed-panel {
  align-self: start;
}

.dee-snippet-field {
  display: grid;
  gap: 8px;
  margin: 14px 0 12px;
}

.dee-snippet-field span {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.dee-snippet-field textarea {
  width: 100%;
  min-height: 132px;
  resize: vertical;
  border: 1px solid #cdd9df;
  border-radius: 12px;
  padding: 13px 14px;
  background: #0f172a;
  color: #d8f5df;
  font: 700 12px/1.55 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.dee-transcript {
  min-height: 560px;
}

.dee-transcript-line {
  margin-bottom: 13px;
  padding: 13px 14px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid #e6edf0;
}

.dee-transcript-line.is-dee {
  background: #eef8f1;
  border-color: #d7efd9;
}

.dee-transcript-line.is-visitor,
.dee-transcript-line.is-portal_user {
  background: #f4f7fb;
}

.dee-transcript-line.is-staff {
  background: #fff9e6;
  border-color: #f3e2a1;
}

.dee-transcript-line header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.dee-transcript-line p {
  margin: 8px 0 0;
  color: #172033;
}

.dee-reply-form {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.dee-reply-form textarea {
  width: 100%;
  resize: vertical;
  border: 1px solid #dbe4e8;
  border-radius: 12px;
  padding: 13px 14px;
  font: inherit;
}

.dee-action-list {
  display: grid;
  gap: 11px;
}

.dee-action-list div {
  padding: 12px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #e6edf0;
}

.dee-action-list strong,
.dee-action-list span {
  display: block;
}

.dee-action-list strong {
  color: #172033;
  font-size: 13px;
}

.dee-action-list span {
  color: #64748b;
  font-size: 12px;
  margin-top: 3px;
}

.dee-action-list p {
  margin: 8px 0 0;
  font-size: 13px;
}

.dee-floating-assistant {
  position: fixed;
  right: max(22px, env(safe-area-inset-right));
  bottom: max(22px, env(safe-area-inset-bottom));
  z-index: 760;
  display: grid;
  justify-items: end;
  gap: 12px;
  font-family: "Inter", system-ui, sans-serif;
  pointer-events: none;
}

.dee-floating-assistant > * {
  pointer-events: auto;
}

.dee-floating-launcher {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  border: 1px solid transparent;
  border-radius: 999px;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(120deg, rgba(92, 124, 250, .68), rgba(232, 121, 249, .55), rgba(45, 212, 191, .6), rgba(250, 204, 21, .5)) border-box;
  color: #14213d;
  padding: 11px 16px;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 18px 48px rgba(15, 23, 42, .14), 0 0 32px rgba(99, 102, 241, .1);
  transition: transform .18s ease, box-shadow .18s ease;
}

.dee-floating-launcher::before {
  content: "";
  position: absolute;
  inset: -7px;
  z-index: -1;
  border-radius: inherit;
  background: conic-gradient(from 120deg, rgba(99, 102, 241, .16), rgba(236, 72, 153, .12), rgba(20, 184, 166, .14), rgba(250, 204, 21, .12), rgba(99, 102, 241, .16));
  filter: blur(14px);
  opacity: .62;
  transition: opacity .18s ease;
}

.dee-floating-launcher:hover,
.dee-floating-launcher:focus-visible,
.dee-floating-assistant.is-open .dee-floating-launcher {
  transform: translateY(-1px);
  box-shadow: 0 22px 58px rgba(15, 23, 42, .18), 0 0 36px rgba(99, 102, 241, .16);
}

.dee-floating-launcher:hover::before,
.dee-floating-launcher:focus-visible::before,
.dee-floating-assistant.is-open .dee-floating-launcher::before {
  opacity: .9;
}

.dee-floating-spark {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  color: #5b5ff7;
  background: linear-gradient(135deg, rgba(99, 102, 241, .12), rgba(45, 212, 191, .14));
  box-shadow: inset 0 0 0 1px rgba(99, 102, 241, .12);
}

.dee-floating-panel {
  width: min(420px, calc(100vw - 32px));
  max-height: min(640px, calc(100vh - 118px));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  overflow: hidden;
  border: 1px solid rgba(216, 226, 236, .96);
  border-radius: 22px;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 26px 80px rgba(15, 23, 42, .22);
}

.dee-floating-panel[hidden] {
  display: none;
}

.dee-floating-panel header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
  border-bottom: 1px solid #e7edf3;
  background: linear-gradient(135deg, #fff, #f8fbff);
}

.dee-floating-panel header > div {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.dee-floating-panel header strong,
.dee-floating-panel header small {
  display: block;
}

.dee-floating-panel header strong {
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
}

.dee-floating-panel header small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.dee-floating-log {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 220px;
  overflow: auto;
  padding: 16px;
  background: #f8fafc;
}

.dee-floating-line {
  max-width: 88%;
  border-radius: 16px;
  padding: 11px 13px;
  font-size: 14px;
  line-height: 1.45;
  box-shadow: 0 8px 18px rgba(15, 23, 42, .05);
}

.dee-floating-line.is-dee {
  align-self: flex-start;
  border: 1px solid #dcefe8;
  background: #f1faf5;
  color: #173f3c;
}

.dee-floating-line.is-visitor {
  align-self: flex-end;
  background: #14213d;
  color: #fff;
}

.dee-floating-line.is-typing {
  color: #64748b;
  font-style: italic;
}

.dee-floating-line.is-error {
  border-color: #f7d7d7;
  background: #fff7f7;
  color: #8a2a2a;
}

.dee-floating-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 14px 0;
  background: #fff;
}

.dee-floating-suggestions button {
  border: 1px solid rgba(203, 213, 225, .9);
  border-radius: 999px;
  background: #f8fafc;
  color: #27364a;
  padding: 8px 10px;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.dee-floating-suggestions button:hover,
.dee-floating-suggestions button:focus-visible {
  border-color: rgba(99, 102, 241, .35);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, .08);
}

.dee-floating-form {
  display: flex;
  gap: 9px;
  padding: 14px;
  background: #fff;
}

.dee-floating-form input {
  flex: 1;
  min-width: 0;
  border: 1px solid #d8e2ec;
  border-radius: 14px;
  padding: 12px 13px;
  font: inherit;
  font-size: 14px;
}

.dee-floating-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 0;
  border-radius: 14px;
  background: #14213d;
  color: #fff;
  padding: 0 14px;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.dee-public-body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at top right, color-mix(in srgb, var(--dee-accent, #d8f5df) 55%, transparent), transparent 34%),
    linear-gradient(180deg, #f7faf9, #fff);
  font-family: "Inter", system-ui, sans-serif;
  color: #172033;
}

.dee-public-shell {
  width: min(980px, calc(100% - 32px));
  margin: 0 auto;
  padding: 40px 0;
}

.dee-public-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
  margin-bottom: 18px;
  padding: 30px;
  border: 1px solid #dbe4e8;
  border-radius: 22px;
  background: rgba(255, 255, 255, .86);
  box-shadow: 0 24px 80px rgba(15, 23, 42, .08);
}

.dee-public-hero span {
  display: block;
  color: #64748b;
  font-size: 13px;
  font-weight: 800;
}

.dee-public-hero h1 {
  margin: 8px 0;
  font-size: clamp(38px, 8vw, 72px);
  line-height: .95;
  letter-spacing: 0;
}

.dee-public-hero p {
  max-width: 650px;
  margin: 0;
  color: #51606f;
  font-size: 16px;
  line-height: 1.6;
}

.dee-public-orb {
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  flex: 0 0 auto;
  border-radius: 24px;
  background: var(--dee-brand, #0f3d3a);
  color: #fff;
  box-shadow: 0 20px 50px rgba(15, 61, 58, .24);
}

.dee-chat-card {
  overflow: hidden;
}

.dee-chat-log {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 360px;
  max-height: 520px;
  overflow: auto;
  padding: 20px;
  background: #f8fafc;
}

.dee-chat-line {
  max-width: 78%;
  border-radius: 15px;
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.5;
}

.dee-chat-line.dee {
  align-self: flex-start;
  background: #ecf8ef;
  color: #173f3c;
}

.dee-chat-line.visitor {
  align-self: flex-end;
  background: var(--dee-brand, #0f3d3a);
  color: #fff;
}

.dee-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 13px 16px 0;
  background: #fff;
}

.dee-quick-actions button {
  border: 1px solid #dbe4e8;
  border-radius: 999px;
  background: #f8fafc;
  color: #172033;
  padding: 8px 11px;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.dee-chat-form {
  display: flex;
  gap: 10px;
  padding: 16px;
  background: #fff;
}

.dee-chat-form input {
  flex: 1;
  min-width: 0;
  border: 1px solid #dbe4e8;
  border-radius: 13px;
  padding: 13px 14px;
  font: inherit;
}

.dee-chat-form button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 13px;
  background: var(--dee-brand, #0f3d3a);
  color: #fff;
  padding: 0 18px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.dee-portal-chat {
  max-width: 900px;
}

@media (max-width: 1100px) {
  .dee-record-layout,
  .dee-overview-grid,
  .dee-settings-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .dee-command-strip {
    grid-template-columns: 1fr;
  }

  .dee-public-shell {
    width: min(100% - 20px, 980px);
    padding: 16px 0;
  }

  .dee-public-hero {
    align-items: flex-start;
    padding: 20px;
  }

  .dee-public-orb {
    width: 58px;
    height: 58px;
    border-radius: 18px;
  }

  .dee-toggle-list,
  .dee-definition-list div {
    grid-template-columns: 1fr;
  }

  .dee-chat-form {
    align-items: stretch;
    flex-direction: column;
  }

  .dee-chat-form button {
    justify-content: center;
    min-height: 44px;
  }

  .dee-floating-assistant {
    right: 12px;
    bottom: calc(76px + env(safe-area-inset-bottom));
    left: 12px;
    justify-items: end;
  }

  .dee-floating-launcher {
    min-height: 46px;
    padding: 10px 14px;
  }

  .dee-floating-panel {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: calc(82px + env(safe-area-inset-bottom));
    width: auto;
    max-height: min(76vh, 640px);
    border-radius: 20px 20px 18px 18px;
  }

  .dee-floating-log {
    min-height: 190px;
  }

  .dee-floating-form {
    align-items: stretch;
  }

  .dee-floating-form button span {
    display: none;
  }
}

/* Shared page-header standard: titles only, no explanatory strapline below. */
.page-head {
  align-items: center;
}

.page-head .page-title h1,
.page-head .page-title h2 {
  font-size: 28px;
  line-height: 1.14;
  letter-spacing: 0;
}

.page-head .page-title > p {
  display: none !important;
}

@media (max-width: 720px) {
  .page-head {
    align-items: flex-start;
  }

  .page-head .page-title h1,
  .page-head .page-title h2 {
    font-size: 24px;
  }
}
