:root {
  --bg: #f5f7f8;
  --panel: #ffffff;
  --text: #172026;
  --muted: #66737b;
  --line: #dfe6e8;
  --accent: #24282a;
  --accent-strong: #000000;
  --action: #24282a;
  --action-strong: #000000;
  --warn: #f2b84b;
}

* {
  box-sizing: border-box;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  margin: 0;
}

a {
  color: var(--accent-strong);
  font-weight: 700;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.app-topbar {
  align-items: center;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  min-height: 64px;
  padding: 0 28px;
  position: sticky;
  top: 0;
  z-index: 1030;
}

.brand {
  align-items: center;
  display: inline-flex;
  margin: 0;
}

.brand-logo {
  display: block;
  height: 30px;
  width: auto;
}

.topbar-company {
  min-width: 0;
}

.topbar-company-name,
.topbar-company-switcher {
  align-items: center;
  color: var(--text);
  display: flex;
  gap: 9px;
  margin: 0;
  max-width: 250px;
  min-height: 40px;
  min-width: 0;
}

.topbar-company-name {
  border-radius: 6px;
  padding: 0 8px;
  position: relative;
  z-index: 1;
}

.topbar-company-name:hover,
.topbar-company-name:focus-visible {
  background: #eef1f2;
  color: var(--text);
  text-decoration: none;
}

.topbar-company-name svg,
.topbar-company-switcher svg {
  fill: none;
  flex: 0 0 20px;
  height: 20px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  width: 20px;
}

.topbar-company-logo {
  border-radius: 4px;
  flex: 0 0 22px;
  height: 22px;
  object-fit: contain;
  width: 22px;
}

.topbar-company-name span {
  font-size: 14px;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar-company-switcher {
  border-radius: 6px;
  padding-left: 8px;
}

.topbar-company-switcher:focus-within,
.topbar-company-switcher:hover {
  background: #eef1f2;
}

.topbar-company-switcher select {
  appearance: auto;
  background: transparent;
  border: 0;
  color: var(--text);
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
  height: 40px;
  max-width: 210px;
  min-width: 0;
  outline: none;
  padding: 0 8px 0 0;
  text-overflow: ellipsis;
}

.topbar-start {
  align-items: center;
  display: flex;
  flex: 0 0 auto;
  gap: 12px;
}

.global-search {
  flex: 1 1 620px;
  margin: 0 auto;
  max-width: 620px;
  min-width: 180px;
  position: relative;
}

.global-search-field {
  position: relative;
}

.global-search-mobile-toggle {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: #454d52;
  display: none;
  height: 40px;
  justify-content: center;
  padding: 0;
  width: 40px;
}

.global-search-mobile-toggle:hover,
.global-search-mobile-toggle:focus-visible,
.global-search.mobile-open .global-search-mobile-toggle {
  background: #eef1f2;
  color: var(--text);
  outline: none;
}

.global-search-mobile-toggle svg {
  fill: none;
  height: 20px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 20px;
}

.global-search-icon {
  fill: none;
  height: 19px;
  left: 13px;
  pointer-events: none;
  position: absolute;
  stroke: #68747a;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  top: 50%;
  transform: translateY(-50%);
  width: 19px;
  z-index: 2;
}

.global-search-input {
  background: #f4f6f7;
  border: 1px solid #dce2e4;
  border-radius: 6px;
  color: var(--text);
  font-size: 14px;
  height: 42px;
  outline: none;
  padding: 0 42px;
  text-overflow: ellipsis;
  transition: background 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
  width: 100%;
}

.global-search-input:hover {
  background: #f8f9f9;
  border-color: #cbd4d7;
}

.global-search-input:focus {
  background: #ffffff;
  border-color: #8c989e;
  box-shadow: 0 0 0 3px rgba(37, 42, 45, 0.09);
}

.global-search-input::-webkit-search-cancel-button {
  display: none;
}

.global-search-clear {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 5px;
  color: #68747a;
  display: inline-flex;
  height: 30px;
  justify-content: center;
  padding: 0;
  position: absolute;
  right: 6px;
  top: 6px;
  width: 30px;
  z-index: 2;
}

.global-search-clear:hover,
.global-search-clear:focus-visible {
  background: #e5e9ea;
  color: var(--text);
  outline: none;
}

.global-search-clear svg {
  fill: none;
  height: 16px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 2;
  width: 16px;
}

.global-search-results {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 18px 48px rgba(23, 32, 38, 0.17);
  left: 0;
  max-height: min(560px, calc(100vh - 92px));
  overflow-y: auto;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 1090;
}

.global-search-status {
  color: var(--muted);
  font-size: 13px;
  padding: 22px 18px;
  text-align: center;
}

.global-search-group + .global-search-group {
  border-top: 1px solid var(--line);
}

.global-search-group-title {
  color: #768188;
  font-size: 11px;
  font-weight: 700;
  padding: 11px 14px 5px;
  text-transform: uppercase;
}

.global-search-result {
  align-items: center;
  color: var(--text);
  display: grid;
  font-weight: 400;
  gap: 11px;
  grid-template-columns: 34px minmax(0, 1fr) 16px;
  min-height: 58px;
  padding: 8px 13px;
  text-decoration: none;
}

.global-search-result:hover,
.global-search-result:focus-visible,
.global-search-result.active {
  background: #f1f4f4;
  color: var(--text);
  outline: none;
  text-decoration: none;
}

.global-search-result-icon {
  align-items: center;
  background: #edf0f1;
  border-radius: 6px;
  color: #4e585d;
  display: inline-flex;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.global-search-result-icon-city {
  background: #eef1f2;
  color: #4e585d;
}

.global-search-result-icon-project {
  background: #eef1f7;
  color: #52658a;
}

.global-search-result-icon-map {
  background: #f5f0e8;
  color: #8a6732;
}

.global-search-result-icon-point {
  background: #f6eceb;
  color: #a24e46;
}

.global-search-result-icon svg {
  fill: none;
  height: 18px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  width: 18px;
}

.global-search-result-content {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.global-search-result-content strong,
.global-search-result-content small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.global-search-result-content strong {
  font-size: 14px;
}

.global-search-result-content small {
  color: var(--muted);
  font-size: 12px;
}

.global-search-result-arrow {
  color: #8a9499;
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
}

.system-menu-toggle {
  align-items: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--text);
  display: inline-flex;
  height: 40px;
  justify-content: center;
  padding: 0;
  width: 40px;
}

.system-menu-toggle:hover,
.system-menu-toggle:focus-visible {
  background: #f4f6f7;
  border-color: var(--line);
  color: var(--accent-strong);
  outline: none;
}

.system-menu-toggle svg {
  fill: none;
  height: 21px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 21px;
}

.app-topbar nav {
  align-items: center;
  display: flex;
  gap: 18px;
}

.topbar-navigation {
  align-items: center;
  display: flex;
  gap: 14px;
  margin-left: auto;
  min-width: 0;
}

.notification-toggle,
.topbar-icon-link {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: #454d52;
  cursor: pointer;
  display: inline-flex;
  height: 40px;
  justify-content: center;
  padding: 0;
  position: relative;
  width: 40px;
}

.notification-toggle:hover,
.notification-toggle:focus-visible,
.notification-toggle[aria-expanded="true"],
.topbar-icon-link:hover,
.topbar-icon-link:focus-visible,
.topbar-icon-link.active {
  background: #eef1f2;
  color: var(--text);
  outline: none;
}

.notification-toggle > svg,
.topbar-icon-link > svg {
  fill: none;
  height: 21px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  width: 21px;
}

.topbar-favorites-link.active > svg { fill:#d5a514; stroke:#8c6b08; }

.notification-unread-indicator {
  background: #d92d20;
  border: 2px solid #ffffff;
  border-radius: 50%;
  height: 10px;
  position: absolute;
  right: 7px;
  top: 6px;
  width: 10px;
}

.notification-dropdown {
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 18px 48px rgba(23, 32, 38, 0.16);
  overflow: hidden;
  padding: 0;
  width: min(390px, calc(100vw - 24px));
  z-index: 1080;
}

.notification-dropdown-header {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  min-height: 54px;
  padding: 0 16px;
}

.notification-dropdown-header strong {
  font-size: 15px;
}

.notification-dropdown-header span {
  color: #b42318;
  font-size: 12px;
  font-weight: 700;
}

.notification-preview-list {
  max-height: min(430px, calc(100vh - 170px));
  overflow-y: auto;
}

.notification-preview-form,
.notification-page-item-form {
  margin: 0;
}

.notification-preview {
  align-items: start;
  background: #ffffff;
  border: 0;
  color: var(--text);
  cursor: pointer;
  display: grid;
  gap: 11px;
  grid-template-columns: 12px minmax(0, 1fr) 8px;
  min-height: 78px;
  padding: 13px 16px;
  text-align: left;
  width: 100%;
}

.notification-preview-form + .notification-preview-form {
  border-top: 1px solid var(--line);
}

.notification-preview:hover,
.notification-preview:focus-visible,
.notification-preview.unread {
  background: #f7f9f9;
}

.notification-preview:focus-visible {
  box-shadow: inset 0 0 0 2px rgba(37, 42, 45, 0.18);
  outline: none;
}

.notification-kind-icon {
  background: #6b7479;
  border-radius: 50%;
  display: inline-block;
  height: 10px;
  margin-top: 5px;
  width: 10px;
}

.notification-kind-success {
  background: #6b7479;
}

.notification-kind-warning {
  background: #c47b12;
}

.notification-kind-error {
  background: #c4372c;
}

.notification-kind-info {
  background: #326fa8;
}

.notification-preview-content {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.notification-preview-content strong {
  font-size: 14px;
  line-height: 1.35;
}

.notification-preview-content small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
}

.notification-preview-content time,
.notification-page-content time {
  color: #7a8388;
  font-size: 11px;
}

.notification-item-dot {
  background: #d92d20;
  border-radius: 50%;
  display: inline-block;
  height: 7px;
  margin-top: 6px;
  width: 7px;
}

.notification-empty-preview {
  display: grid;
  gap: 5px;
  padding: 28px 18px;
  text-align: center;
}

.notification-empty-preview strong {
  font-size: 14px;
}

.notification-empty-preview span {
  color: var(--muted);
  font-size: 12px;
}

.notification-dropdown-footer {
  border-top: 1px solid var(--line);
  color: var(--text);
  display: block;
  font-size: 13px;
  font-weight: 700;
  padding: 13px 16px;
  text-align: center;
  text-decoration: none;
}

.notification-dropdown-footer:hover,
.notification-dropdown-footer:focus-visible {
  background: #eef1f2;
  color: var(--text);
  text-decoration: none;
}

.system-sidebar {
  --bs-offcanvas-width: min(310px, 88vw);
  border-right: 1px solid var(--line) !important;
}

.system-sidebar-header {
  align-items: start;
  border-bottom: 1px solid var(--line);
  min-height: 82px;
  padding: 18px 20px;
}

.system-sidebar-logo {
  display: block;
  height: 18px;
  margin-bottom: 7px;
  width: auto;
}

.system-sidebar-header h2 {
  font-size: 22px;
  margin: 0;
}

.system-sidebar-body {
  display: flex;
  padding: 14px;
}

.system-navigation {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 5px;
  min-height: 100%;
  width: 100%;
}

.system-nav-settings {
  border-top: 1px solid var(--line);
  margin-top: auto;
  padding-top: 10px;
}

.system-nav-link {
  align-items: center;
  border-radius: 6px;
  color: var(--text);
  display: flex;
  font-size: 14px;
  font-weight: 700;
  gap: 12px;
  min-height: 46px;
  padding: 0 12px;
}

button.system-nav-link {
  background: transparent;
  border: 0;
  text-align: left;
  width: 100%;
}

.system-nav-link:hover {
  background: #f4f6f7;
  color: var(--accent-strong);
  text-decoration: none;
}

.system-nav-link.active {
  background: #e5e9ea;
  color: var(--accent-strong);
}

.system-nav-link svg {
  fill: none;
  flex: 0 0 20px;
  height: 20px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  width: 20px;
}

.system-nav-group-toggle .system-nav-chevron {
  height: 16px;
  margin-left: auto;
  transition: transform 160ms ease;
  width: 16px;
}

.system-nav-group-toggle[aria-expanded="true"] .system-nav-chevron {
  transform: rotate(90deg);
}

.system-nav-children {
  border-left: 1px solid var(--line);
  display: grid;
  gap: 3px;
  margin: 4px 0 6px 21px;
  padding-left: 12px;
}

.system-nav-child-link {
  border-radius: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  padding: 10px 12px;
}

.system-nav-child-link:hover,
.system-nav-child-link.active {
  background: #f4f6f7;
  color: var(--accent-strong);
  text-decoration: none;
}

.user-menu-toggle {
  align-items: center;
  background: transparent;
  border: 0;
  color: var(--text);
  display: inline-flex;
  gap: 9px;
  min-height: 42px;
  padding: 0;
}

.user-menu-toggle:hover .user-avatar,
.user-menu-toggle:focus-visible .user-avatar {
  box-shadow: 0 0 0 3px rgba(37, 42, 45, 0.16);
}

.user-menu-toggle:focus-visible {
  outline: none;
}

.user-menu-toggle > svg {
  fill: none;
  height: 16px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 16px;
}

.user-avatar,
.account-avatar {
  align-items: center;
  background: var(--accent);
  border: 2px solid #ffffff;
  border-radius: 999px;
  box-shadow: 0 0 0 1px rgba(23, 32, 38, 0.12);
  color: #ffffff;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 800;
  height: 36px;
  justify-content: center;
  width: 36px;
}

img.user-avatar,
img.account-avatar {
  object-fit: cover;
}

.user-menu-name {
  font-size: 14px;
  font-weight: 700;
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-dropdown {
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(23, 32, 38, 0.15);
  margin-top: 8px !important;
  min-width: 270px;
  padding: 8px;
}

.user-dropdown-summary {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 8px 10px;
}

.user-dropdown-summary strong,
.user-dropdown-summary span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-dropdown-summary strong {
  font-size: 14px;
}

.user-dropdown-summary span {
  color: var(--muted);
  font-size: 12px;
}

.user-menu-item {
  align-items: center;
  border-radius: 6px;
  color: var(--text);
  display: flex;
  font-size: 14px;
  font-weight: 600;
  gap: 10px;
  min-height: 40px;
}

.user-menu-item:hover,
.user-menu-item:focus {
  background: #f4f6f7;
  color: var(--accent-strong);
  text-decoration: none;
}

.user-menu-item svg {
  fill: none;
  flex: 0 0 18px;
  height: 18px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 18px;
}

.user-dropdown form,
.user-dropdown form .user-menu-item {
  width: 100%;
}

.user-menu-logout {
  color: #9b2c2c;
}

.logout-confirmation-modal .modal-dialog {
  max-width: min(430px, calc(100vw - 32px));
}

.logout-confirmation-modal .modal-content {
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 28px 80px rgba(23, 32, 38, 0.24);
  padding: 22px;
}

.logout-confirmation-header {
  align-items: start;
  display: flex;
  justify-content: space-between;
}

.logout-confirmation-icon {
  align-items: center;
  background: #fbeaea;
  border-radius: 999px;
  color: #9b2c2c;
  display: inline-flex;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.logout-confirmation-icon svg {
  fill: none;
  height: 20px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 20px;
}

.logout-confirmation-body {
  padding: 18px 0 24px;
}

.logout-confirmation-body h2 {
  font-size: 20px;
  margin: 0;
}

.logout-confirmation-body p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  margin: 8px 0 0;
}

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

.logout-confirmation-actions form {
  margin: 0;
}

.logout-confirmation-actions .secondary-action,
.logout-confirmation-submit {
  min-height: 42px;
  min-width: 128px;
}

.logout-confirmation-submit {
  background: #9b2c2c;
  border: 0;
  border-radius: 6px;
  color: #ffffff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  padding: 0 16px;
}

.logout-confirmation-submit:hover,
.logout-confirmation-submit:focus-visible {
  background: #7f2222;
}

.session-timeout-modal .modal-content {
  border: 0;
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(23, 32, 38, 0.22);
}

.session-timeout-modal .modal-body {
  display: grid;
  gap: 12px;
}

.session-timeout-modal .modal-body p {
  color: var(--muted);
  margin: 0;
}

.session-timeout-countdown {
  background: #f4f7f8;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: #172026;
  display: inline-flex;
  font-size: 18px;
  justify-self: start;
  padding: 10px 12px;
}

.session-timeout-modal .modal-footer form {
  margin: 0;
}

.app-topbar form {
  margin: 0;
}

.topbar-button {
  background: transparent;
  border: 0;
  color: var(--accent-strong);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  padding: 0;
}

.app-main {
  margin: 0 auto;
  max-width: 1440px;
  padding: 28px;
}

.auth-main {
  min-height: 100vh;
}

.app-toast-container {
  margin-top: 72px;
  z-index: 1100;
}

.auth-layout .app-toast-container {
  margin-top: 16px;
}

.toast {
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(23, 32, 38, 0.14);
  min-width: min(360px, calc(100vw - 32px));
}

.toast-header {
  border-bottom: 0;
}

.toast-body {
  font-size: 14px;
  line-height: 1.45;
}

.page-header {
  align-items: end;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin-bottom: 24px;
}

.page-actions {
  display: flex;
  gap: 10px;
}

.eyebrow {
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  margin: 0 0 8px;
  text-transform: uppercase;
}

h1,
h2 {
  letter-spacing: 0;
}

h1 {
  font-size: 34px;
  line-height: 1.1;
  margin: 0;
}

h2 {
  font-size: 17px;
  margin: 0;
}

.search-bar {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(260px, 420px) auto;
}

.project-search-bar {
  align-items: center;
  grid-template-columns: minmax(260px, 420px) max-content;
  margin-bottom: 22px;
  width: fit-content;
}

.project-status-filter {
  background: #e9edee;
  border-radius: 6px;
  display: inline-flex;
  gap: 3px;
  margin-bottom: 14px;
  padding: 3px;
}

.project-new-action {
  align-items: center;
  background: #ffffff;
  border: 1px solid #24282a;
  border-radius: 6px;
  color: #24282a;
  display: inline-flex;
  font-size: 13px;
  font-weight: 700;
  gap: 7px;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
}

.project-new-action:hover {
  background: #24282a;
  color: #ffffff;
}

.project-new-action svg {
  fill: none;
  height: 17px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 17px;
}

.project-status-option {
  align-items: center;
  border-radius: 4px;
  color: #526067;
  display: inline-flex;
  font-size: 13px;
  font-weight: 700;
  gap: 8px;
  min-height: 36px;
  padding: 0 12px;
}

.project-status-option:hover {
  color: var(--text);
}

.project-status-option.active {
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(24, 31, 34, 0.12);
  color: var(--text);
}

.project-status-option span {
  color: var(--muted);
  font-size: 11px;
}

.page-actions form {
  margin: 0;
}

.project-archived-badge {
  align-items: center;
  background: #e8ecee;
  border-radius: 4px;
  color: #4c575c;
  display: inline-flex;
  font-size: 12px;
  font-weight: 700;
  min-height: 38px;
  padding: 0 10px;
}

.project-share-modal .modal-content {
  border: 0;
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(20, 27, 30, 0.22);
}

.project-share-modal .modal-header,
.project-share-modal .modal-body {
  padding: 20px 22px;
}

.project-share-modal .modal-header {
  align-items: start;
}

.project-share-modal .modal-header .eyebrow {
  margin-bottom: 5px;
}

.project-share-modal .modal-body > p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  margin: 0 0 18px;
}

.project-public-link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
}

.project-public-link input {
  background: #f5f7f7;
  border: 1px solid var(--line);
  border-radius: 6px 0 0 6px;
  color: var(--text);
  font-size: 13px;
  min-width: 0;
  padding: 0 11px;
}

.project-copy-action {
  align-items: center;
  background: #24282a;
  border: 1px solid #24282a;
  border-radius: 0 6px 6px 0;
  color: #ffffff;
  display: inline-flex;
  justify-content: center;
  min-height: 42px;
}

.project-copy-action svg {
  fill: none;
  height: 17px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  width: 17px;
}

.project-copy-status {
  color: #526067;
  display: block;
  font-size: 12px;
  min-height: 18px;
  padding-top: 5px;
}

.project-share-actions {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-top: 14px;
}

.project-share-actions form {
  margin: 0;
}

.project-revoke-action {
  color: #9a3333;
}

.project-sharing-notes {
  background: #f5f7f7;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
  padding: 14px;
}

.project-sharing-notes span {
  color: #526067;
  font-size: 13px;
}

.project-sharing-notes span::before {
  color: #24282a;
  content: "\2713";
  font-weight: 700;
  margin-right: 8px;
}

.project-enable-sharing {
  width: 100%;
}

.public-layout {
  background: #f4f6f6;
  color: #24282a;
  min-height: 100vh;
}

.public-header {
  align-items: center;
  background: #ffffff;
  border-bottom: 1px solid #dde2e3;
  display: flex;
  justify-content: space-between;
  min-height: 64px;
  padding: 0 max(24px, calc((100vw - 1120px) / 2));
}

.public-header img {
  height: 25px;
  width: auto;
}

.public-header span {
  color: #697479;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.public-main {
  margin: 0 auto;
  max-width: 1120px;
  padding: 54px 24px 72px;
}

.public-project-heading {
  max-width: 760px;
}

.public-project-heading h1 {
  font-size: 38px;
}

.public-project-heading > p:not(.eyebrow) {
  color: #526067;
  font-size: 17px;
  line-height: 1.6;
  margin: 16px 0 10px;
}

.public-project-heading small {
  color: #788287;
}

.public-project-summary {
  border-bottom: 1px solid #dce1e2;
  border-top: 1px solid #dce1e2;
  display: flex;
  gap: 64px;
  margin: 34px 0 42px;
  padding: 18px 0;
}

.public-project-summary div {
  display: grid;
  gap: 2px;
}

.public-project-summary span {
  color: #697479;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.public-project-summary strong {
  font-size: 24px;
}

.public-project-section + .public-project-section {
  margin-top: 44px;
}

.public-section-heading {
  margin-bottom: 16px;
}

.public-section-heading .eyebrow {
  margin-bottom: 4px;
}

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

.public-map-item {
  align-items: center;
  background: #ffffff;
  border: 1px solid #dce1e2;
  border-radius: 6px;
  display: grid;
  gap: 12px;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  padding: 15px;
}

.public-map-icon {
  align-items: center;
  background: #eef1f2;
  border-radius: 5px;
  display: flex;
  height: 40px;
  justify-content: center;
  width: 40px;
}

.public-map-icon svg {
  fill: none;
  height: 20px;
  stroke: #24282a;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
  width: 20px;
}

.public-map-item h3 {
  font-size: 14px;
  margin: 0 0 3px;
}

.public-map-item p,
.public-map-item > span {
  color: #697479;
  font-size: 12px;
  margin: 0;
}

.public-empty-state {
  border: 1px dashed #cbd2d4;
  border-radius: 6px;
  color: #697479;
  padding: 24px;
  text-align: center;
}

.public-points-table {
  background: #ffffff;
  border: 1px solid #dce1e2;
  border-radius: 6px;
}

@media (max-width: 720px) {
  .public-main {
    padding: 34px 16px 48px;
  }

  .public-header {
    padding: 0 16px;
  }

  .public-header span {
    font-size: 10px;
  }

  .public-project-heading h1 {
    font-size: 30px;
  }

  .public-map-grid {
    grid-template-columns: 1fr;
  }

  .project-share-actions {
    align-items: stretch;
    flex-direction: column;
  }
}

.location-import-status-cell {
  min-width: 220px;
}

.location-import-status-cell > small {
  color: #68757b;
  display: block;
  font-size: 0.72rem;
  margin-top: 5px;
}

.location-import-progress {
  background: #e8eced;
  border-radius: 3px;
  height: 4px;
  margin-top: 8px;
  overflow: hidden;
  width: 170px;
}

.location-import-progress > span {
  background: #16855b;
  display: block;
  height: 100%;
  transition: width 240ms ease;
}

.location-import-refresh {
  background: transparent;
  border: 0;
  color: #176246;
  cursor: pointer;
  font-size: 0.74rem;
  font-weight: 800;
  margin-top: 5px;
  padding: 0;
}

.location-import-refresh[hidden] {
  display: none;
}

/* Network and customer intelligence */
.network-workspace { background: #fff; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 18px; overflow: hidden; }
.network-workspace-header { align-items: flex-start; background: #f6f9f7; border-bottom: 1px solid var(--line); display: flex; gap: 24px; justify-content: space-between; padding: 22px; }
.network-workspace-header h2 { font-size: 22px; margin: 0; }
.network-workspace-header p:not(.eyebrow) { color: #596469; margin: 7px 0 0; max-width: 760px; }
.network-analysis-form, .persona-form { padding: 22px; }
.network-form-grid { display: grid; gap: 16px; grid-template-columns: 1.2fr 1fr 1.4fr .7fr .7fr; }
.network-form-grid .field, .persona-form .field { margin: 0; }
.network-form-grid label, .persona-form label { color: #3e474b; display: block; font-size: 12px; font-weight: 750; margin-bottom: 7px; }
.network-form-grid input, .network-form-grid select, .persona-form input, .persona-form select, .persona-form textarea { background: #fff; border: 1px solid #ccd3d5; border-radius: 6px; min-height: 42px; padding: 9px 11px; width: 100%; }
.network-financial-details { border-top: 1px solid #e2e7e5; margin-top: 20px; padding-top: 16px; }
.network-financial-details summary { color: #465155; cursor: pointer; font-size: 13px; font-weight: 750; }
.network-financial-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); margin-top: 16px; }
.network-form-actions { align-items: center; border-top: 1px solid #e2e7e5; color: #677176; display: flex; justify-content: space-between; margin-top: 20px; padding-top: 18px; }
.network-form-actions strong { color: #202628; }
.network-empty-state { align-items: center; display: flex; gap: 24px; justify-content: space-between; padding: 24px; }
.network-empty-state strong { display: block; font-size: 16px; }
.network-empty-state p { color: #687277; margin: 5px 0 0; }
.network-history { border-top: 1px solid var(--line); padding: 18px 22px 8px; }
.network-history h3 { font-size: 14px; margin-bottom: 10px; }
.network-history-row { align-items: center; border-top: 1px solid #edf0ef; display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr) auto auto; padding: 12px 0; }
.network-history-row:first-of-type { border-top: 0; }
.network-history-row > div:first-child, .customer-import-row > span { display: grid; gap: 3px; }
.network-history-row small, .customer-import-row small { color: #748085; font-size: 12px; }
.network-run-status { align-items: center; display: flex; gap: 8px; }
.customer-import-form { align-items: center; display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr) auto; padding: 18px; }
.customer-import-history { border-top: 1px solid var(--line); }
.customer-import-row { align-items: center; color: inherit; display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr) auto auto; padding: 13px 18px; text-decoration: none; }
.customer-import-row + .customer-import-row { border-top: 1px solid #edf0ef; }
.customer-import-row:hover { background: #f8faf9; color: inherit; }
.persona-layout { align-items: start; display: grid; gap: 18px; grid-template-columns: minmax(340px, .8fr) minmax(0, 1.2fr); }
.persona-form-card { position: sticky; top: 88px; }
.persona-form { display: grid; gap: 16px; }
.persona-criteria-grid { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
.persona-list { display: grid; gap: 12px; }
.persona-card { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 18px; }
.persona-card-heading { align-items: flex-start; display: flex; justify-content: space-between; }
.persona-card-heading span { color: #6d777b; font-size: 11px; font-weight: 750; text-transform: uppercase; }
.persona-card-heading h2 { font-size: 19px; margin-top: 3px; }
.persona-card > p { color: #616c70; margin: 10px 0; }
.persona-card > small { color: #6a7579; display: block; margin-top: 12px; }
.persona-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.persona-tags span { background: #eef3f0; border: 1px solid #d9e2dd; border-radius: 4px; color: #435149; font-size: 12px; padding: 5px 8px; }
.icon-delete-action { align-items: center; background: #fff7f7; border: 1px solid #f0cccc; border-radius: 6px; color: #b12929; display: inline-flex; font-size: 19px; height: 32px; justify-content: center; width: 32px; }
.network-run-header .status-badge, .customer-profile-header > .status-badge { align-self: flex-start; }
.network-run-summary { display: grid; gap: 12px; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 18px; }
.network-run-summary article { background: #fff; border: 1px solid var(--line); border-radius: 8px; display: grid; gap: 8px; min-height: 102px; padding: 16px; }
.network-run-summary article > span { color: #667176; font-size: 12px; font-weight: 750; text-transform: uppercase; }
.network-run-summary article > strong { align-self: end; font-size: 24px; }
.network-run-summary article small { color: #788287; font-size: 13px; margin-left: 4px; }
.network-processing-panel { background: #f3f8f5; border: 1px solid #cdded4; border-radius: 8px; margin-bottom: 18px; padding: 18px; }
.network-processing-panel > div:first-child { display: flex; justify-content: space-between; }
.network-processing-panel p { color: #68746e; font-size: 12px; margin: 9px 0 0; }
.network-progress { background: #dce5e0; border-radius: 3px; height: 6px; margin-top: 14px; overflow: hidden; }
.network-progress span { background: #287552; display: block; height: 100%; transition: width .25s ease; }
.network-progress.is-indeterminate span { animation: network-progress 1.5s ease-in-out infinite; width: 35%; }
@keyframes network-progress { from { transform: translateX(-110%); } to { transform: translateX(310%); } }
.network-dimension-strip { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin-bottom: 18px; }
.network-dimension-strip article { background: #fff; border: 1px solid var(--line); border-radius: 7px; padding: 13px; }
.network-dimension-strip span { color: #647075; display: block; font-size: 11px; min-height: 32px; text-transform: uppercase; }
.network-dimension-strip strong { font-size: 21px; }
.network-dimension-strip div, .customer-city-list i { background: #e5e9e7; display: block; height: 4px; margin-top: 8px; overflow: hidden; }
.network-dimension-strip i, .customer-city-list b { background: #287552; display: block; height: 100%; }
.network-ranking-list { overflow-x: auto; }
.network-ranking-row { align-items: center; display: grid; gap: 14px; grid-template-columns: 34px minmax(220px, 1fr) repeat(3, 82px) 150px 36px; min-width: 850px; padding: 13px 18px; }
.network-ranking-row + .network-ranking-row { border-top: 1px solid #e8ecea; }
.network-rank { align-items: center; background: #eef3f0; border-radius: 50%; color: #3f4d45; display: inline-flex; flex: 0 0 auto; font-size: 12px; font-weight: 800; height: 28px; justify-content: center; width: 28px; }
.network-store-main, .network-score, .network-verdict { display: grid; gap: 3px; }
.network-store-main small, .network-score span, .network-verdict small { color: #778186; font-size: 11px; }
.network-score strong { font-size: 20px; }
.network-open-result { align-items: center; border: 1px solid #d8dddf; border-radius: 6px; color: #252c2f; display: inline-flex; font-size: 20px; height: 34px; justify-content: center; text-decoration: none; width: 34px; }
.network-failures, .customer-coverage-warning { background: #fff9f1; border: 1px solid #ead8b9; border-radius: 8px; color: #674f2d; margin-bottom: 18px; padding: 15px 18px; }
.customer-privacy-note { align-items: center; background: #eef7f1; border: 1px solid #cfe3d6; border-radius: 8px; display: flex; gap: 12px; margin-bottom: 18px; padding: 13px 16px; }
.customer-privacy-note strong { flex: 0 0 auto; }
.customer-privacy-note span { color: #516159; font-size: 13px; }
.customer-profile-layout { align-items: start; display: grid; gap: 18px; grid-template-columns: minmax(0, 1.5fr) minmax(300px, .7fr); }
.customer-indicator-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.customer-indicator-grid article { display: grid; gap: 5px; min-height: 125px; padding: 17px; }
.customer-indicator-grid article:not(:nth-child(3n + 1)) { border-left: 1px solid #e7ebea; }
.customer-indicator-grid article:nth-child(n + 4) { border-top: 1px solid #e7ebea; }
.customer-indicator-grid span { color: #647075; font-size: 12px; }
.customer-indicator-grid strong { align-self: end; font-size: 19px; }
.customer-indicator-grid small { color: #81898d; font-size: 10px; }
.customer-city-list article { align-items: center; display: grid; gap: 10px; grid-template-columns: 28px minmax(0, 1fr) auto; padding: 12px 16px; }
.customer-city-list article + article { border-top: 1px solid #e7ebea; }
.customer-city-list article > div { display: grid; gap: 2px; }
.customer-city-list small { color: #778186; font-size: 11px; }
.customer-coverage-warning { display: flex; gap: 12px; }

@media (max-width: 1100px) {
  .network-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .network-financial-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .customer-profile-layout { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .network-workspace-header, .network-empty-state, .network-form-actions, .customer-privacy-note, .customer-coverage-warning { align-items: flex-start; flex-direction: column; }
  .network-form-grid, .network-financial-grid, .persona-layout, .persona-criteria-grid, .network-run-summary, .customer-import-form { grid-template-columns: 1fr; }
  .persona-form-card { position: static; }
  .network-history-row, .customer-import-row { align-items: flex-start; grid-template-columns: 1fr; }
  .customer-indicator-grid { grid-template-columns: 1fr 1fr; }
  .customer-indicator-grid article:not(:nth-child(3n + 1)) { border-left: 0; }
  .customer-indicator-grid article:nth-child(n + 4) { border-top: 0; }
  .customer-indicator-grid article:nth-child(even) { border-left: 1px solid #e7ebea; }
  .customer-indicator-grid article:nth-child(n + 3) { border-top: 1px solid #e7ebea; }
}

.project-search-bar.with-clear-action {
  grid-template-columns: minmax(260px, 420px) max-content max-content;
}

.project-search-submit {
  white-space: nowrap;
  width: auto;
}

.filters-bar {
  align-items: end;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(240px, 360px) minmax(220px, 300px) auto;
}

.filter-field {
  display: grid;
  gap: 6px;
}

.filter-field label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.search-bar input[type="search"],
.filters-bar input[type="search"],
.filters-bar select {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  font-size: 15px;
  min-height: 42px;
  padding: 0 12px;
}

.search-bar input[type="submit"],
.filters-bar input[type="submit"],
.secondary-action,
.pagination a {
  align-items: center;
  background: var(--accent);
  border: 0;
  border-radius: 6px;
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  font-size: 14px;
  font-weight: 700;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
}

.filter-actions {
  align-items: center;
  display: flex;
  gap: 8px;
}

.secondary-action,
.pagination a {
  background: #e3eeee;
  color: var(--accent-strong);
}

.link-action {
  background: transparent;
  border: 0;
  color: var(--accent-strong);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  justify-self: start;
  padding: 0;
}

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

.primary-action {
  align-items: center;
  background: var(--accent);
  border: 0;
  border-radius: 6px;
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  font-size: 14px;
  font-weight: 700;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
}

.app-main:has(.map-workbench) {
  max-width: none;
  padding: 0;
}

.map-workbench {
  height: calc(100vh - 65px);
  min-height: 620px;
  position: relative;
}

.map-stage {
  background: #ffffff;
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  height: 100%;
  min-width: 0;
  overflow: hidden;
}

.map-address-toggle {
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 14px 40px rgba(23, 32, 38, 0.15);
  color: #171c1f;
  cursor: pointer;
  display: inline-flex;
  height: 42px;
  justify-content: center;
  left: 18px;
  position: absolute;
  top: 18px;
  width: 42px;
  z-index: 700;
}

.map-address-toggle:hover,
.map-address-toggle[aria-expanded="true"] {
  background: #171c1f;
  color: #ffffff;
}

.map-address-toggle svg,
.map-address-search form svg {
  fill: none;
  height: 21px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 21px;
}

.map-drawing-tools {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 14px 40px rgba(23, 32, 38, 0.15);
  display: grid;
  gap: 4px;
  left: 18px;
  padding: 4px;
  position: absolute;
  top: 72px;
  z-index: 700;
}

.map-drawing-tools button {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 5px;
  color: #171c1f;
  cursor: pointer;
  display: inline-flex;
  height: 32px;
  justify-content: center;
  padding: 0;
  width: 32px;
}

.map-drawing-tools button:hover,
.map-drawing-tools button.is-active {
  background: #171c1f;
  color: #ffffff;
}

.map-drawing-tools svg {
  fill: none;
  height: 19px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 19px;
}

.sector-map-canvas.is-drawing {
  cursor: crosshair;
}

.map-drawing-label {
  background: #171c1f;
  border-radius: 999px;
  box-shadow: 0 8px 22px rgba(23, 32, 38, 0.22);
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  padding: 6px 8px;
  white-space: nowrap;
}

.map-address-search {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 18px 55px rgba(23, 32, 38, 0.2);
  left: 18px;
  padding: 14px;
  position: absolute;
  top: 70px;
  width: min(430px, calc(100vw - 36px));
  z-index: 760;
}

.map-address-search header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 11px;
}

.map-address-search header h2 {
  font-size: 15px;
}

.map-legend {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(217, 224, 227, 0.95);
  border-radius: 6px;
  bottom: 18px;
  box-shadow: 0 18px 55px rgba(23, 32, 38, 0.18);
  color: #171c1f;
  display: grid;
  gap: 10px;
  left: 18px;
  max-height: min(46vh, 420px);
  overflow-y: auto;
  padding: 12px;
  position: absolute;
  width: min(360px, calc(100vw - 36px));
  z-index: 650;
}

.map-legend-small {
  max-height: min(28vh, 240px);
  gap: 6px;
  padding: 9px 10px;
  width: min(230px, calc(100vw - 36px));
}

.map-legend-small .map-legend-header > div:first-child {
  display: none;
}

.map-legend-small .map-legend-header {
  justify-content: end;
  margin-bottom: -2px;
}

.map-legend-small .map-legend-controls button {
  height: 22px;
  width: 22px;
}

.map-legend-small .map-legend-list {
  gap: 6px;
}

.map-legend-small .map-legend-scale {
  gap: 4px;
}

.map-legend-small .map-legend-scale-title {
  font-size: 11px;
}

.map-legend-small .map-legend-scale-track {
  height: 8px;
}

.map-legend-small .map-legend-scale-values {
  font-size: 10px;
  gap: 5px;
}

.map-legend-small .map-legend-scale-values small {
  display: none;
}

.map-legend-large {
  max-height: min(62vh, 560px);
  width: min(460px, calc(100vw - 36px));
}

.map-legend-header {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: space-between;
}

.map-legend-header > div:first-child {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.map-legend-header strong {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.map-legend-header span {
  color: var(--muted);
  font-size: 11px;
}

.map-legend-controls {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 4px;
}

.map-legend-controls button {
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: #172026;
  cursor: pointer;
  display: inline-flex;
  font-size: 14px;
  font-weight: 800;
  height: 24px;
  justify-content: center;
  line-height: 1;
  padding: 0;
  width: 24px;
}

.map-legend-controls button svg {
  fill: none;
  height: 14px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  width: 14px;
}

.map-legend-controls button:hover {
  background: #f5f7f8;
}

.map-legend-show {
  align-items: center;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(217, 224, 227, 0.95);
  border-radius: 6px;
  bottom: 18px;
  box-shadow: 0 10px 30px rgba(23, 32, 38, 0.16);
  color: #263238;
  cursor: pointer;
  display: inline-flex;
  height: 38px;
  justify-content: center;
  left: 18px;
  padding: 0;
  position: absolute;
  width: 38px;
  z-index: 650;
}

.map-legend-show:hover {
  background: #f5f7f8;
}

.map-legend-show svg {
  fill: none;
  height: 19px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
  width: 19px;
}

.map-workbench .leaflet-pane > svg {
  pointer-events: none;
}

.map-workbench .leaflet-pane > svg .leaflet-interactive {
  pointer-events: auto;
}

.map-pole-marker-container {
  background: transparent;
  border: 0;
}

.map-pole-marker {
  align-items: center;
  background-color: var(--pole-color, #1f6f63);
  background-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.22) 0 3px, transparent 3px 6px);
  border: 2px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--pole-color, #1f6f63), 0 4px 9px rgba(23, 32, 38, 0.28);
  color: #ffffff;
  display: inline-flex;
  height: 24px;
  justify-content: center;
  width: 24px;
}

.map-pole-marker svg {
  fill: none;
  height: 14px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 14px;
}

.map-pole-cluster {
  align-items: center;
  background: #ffffff;
  border: 3px double #1f6f63;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(23, 32, 38, 0.25);
  color: #155b53;
  display: inline-flex;
  font-size: 11px;
  font-weight: 800;
  height: 100%;
  justify-content: center;
  width: 100%;
}

.map-legend-compact i.map-pole-legend-mark {
  background-color: var(--pole-color, #1f6f63);
  background-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.45) 0 2px, transparent 2px 4px);
  border: 1px solid #ffffff;
  box-shadow: 0 0 0 1px var(--pole-color, #1f6f63);
}

.map-legend-list {
  display: grid;
  gap: 9px;
}

.map-legend-item {
  min-width: 0;
}

.map-legend-list > .map-legend-item + .map-legend-item {
  border-top: 1px solid #e8ecee;
  padding-top: 9px;
}

.map-legend-small .map-legend-list > .map-legend-item + .map-legend-item {
  padding-top: 6px;
}

.map-legend-compact {
  align-items: center;
  color: #3e484d;
  display: flex;
  font-size: 12px;
  gap: 7px;
  line-height: 1.25;
}

.map-legend-compact i {
  border: 1px solid rgba(23, 32, 38, 0.12);
  border-radius: 50%;
  flex: 0 0 12px;
  height: 12px;
  width: 12px;
}

.map-legend-scale {
  display: grid;
  gap: 6px;
}

.map-legend-scale-title {
  color: #1e2528;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.map-legend-scale-track {
  border: 1px solid rgba(23, 32, 38, 0.12);
  border-radius: 999px;
  height: 10px;
  width: 100%;
}

.map-legend-scale-values {
  color: #3e484d;
  display: grid;
  font-size: 11px;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.map-legend-scale-values span {
  display: grid;
  gap: 2px;
  line-height: 1.15;
  min-width: 0;
  overflow: hidden;
}

.map-legend-scale-values span:nth-child(2) {
  text-align: center;
}

.map-legend-scale-values span:nth-child(3) {
  text-align: right;
}

.map-legend-scale-values small {
  color: var(--muted);
  display: block;
  font-size: 9px;
  font-weight: 800;
  line-height: 1.15;
  text-transform: uppercase;
}

.map-legend-scale-values strong {
  color: #3e484d;
  display: block;
  font-size: inherit;
  font-weight: 700;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.map-address-search form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
}

.map-address-search input {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 6px 0 0 6px;
  color: var(--text);
  font-size: 14px;
  min-height: 42px;
  min-width: 0;
  padding: 0 11px;
}

.map-address-search form button {
  align-items: center;
  background: #171c1f;
  border: 1px solid #171c1f;
  border-radius: 0 6px 6px 0;
  color: #ffffff;
  display: inline-flex;
  justify-content: center;
}

.map-address-status {
  color: var(--muted);
  font-size: 12px;
  margin: 9px 0 0;
  min-height: 18px;
}

.map-address-status.is-loading::before {
  animation: spinner-border 0.75s linear infinite;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  content: "";
  display: inline-block;
  height: 12px;
  margin-right: 7px;
  vertical-align: -1px;
  width: 12px;
}

.map-address-results {
  display: grid;
  margin: 5px -6px -6px;
  max-height: 300px;
  overflow-y: auto;
}

.map-address-result {
  background: transparent;
  border: 0;
  border-top: 1px solid var(--line);
  color: var(--text);
  display: grid;
  gap: 4px;
  padding: 11px 7px;
  text-align: left;
}

.map-address-result:hover,
.map-address-result:focus-visible {
  background: #f5f7f8;
}

.map-address-result strong {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}

.map-address-result small {
  color: var(--muted);
  font-size: 11px;
}

.map-address-attribution {
  color: var(--muted);
  display: block;
  font-size: 11px;
  font-weight: 700;
  padding: 8px 7px 3px;
  text-align: right;
}

.map-panel-toggle {
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 14px 40px rgba(23, 32, 38, 0.15);
  color: var(--accent-strong);
  cursor: pointer;
  display: inline-flex;
  font-size: 14px;
  font-weight: 700;
  height: 42px;
  justify-content: center;
  min-height: 42px;
  padding: 0;
  position: absolute;
  right: 18px;
  top: 18px;
  width: 42px;
  z-index: 700;
}

.map-panel-toggle svg {
  fill: none;
  height: 22px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 22px;
}

.map-quick-save {
  align-items: center;
  background: var(--accent);
  border: 0;
  border-radius: 6px;
  box-shadow: 0 14px 40px rgba(23, 32, 38, 0.15);
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  font-size: 14px;
  font-weight: 700;
  height: 42px;
  justify-content: center;
  min-height: 42px;
  padding: 0;
  position: absolute;
  right: 234px;
  top: 18px;
  width: 42px;
  z-index: 700;
}

.map-export-button {
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 14px 40px rgba(23, 32, 38, 0.15);
  color: #171c1f;
  cursor: pointer;
  display: inline-flex;
  height: 42px;
  justify-content: center;
  position: absolute;
  right: 180px;
  top: 18px;
  width: 42px;
  z-index: 700;
}

.map-export-button:hover:not(:disabled) {
  background: #f5f7f8;
}

.map-export-button:disabled {
  color: #899399;
  cursor: wait;
}

.map-export-button svg {
  fill: none;
  height: 21px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 21px;
}

.map-assistant-toggle {
  align-items: center;
  background: #171c1f;
  border: 1px solid #171c1f;
  border-radius: 6px;
  box-shadow: 0 14px 40px rgba(23, 32, 38, 0.15);
  color: #ffffff;
  display: inline-flex;
  height: 42px;
  justify-content: center;
  position: absolute;
  right: 126px;
  top: 18px;
  width: 42px;
  z-index: 700;
}

.map-analysis-toggle {
  align-items: center;
  background: #1f6f63;
  border: 1px solid #1f6f63;
  border-radius: 6px;
  box-shadow: 0 14px 40px rgba(23, 32, 38, 0.15);
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  height: 42px;
  justify-content: center;
  position: absolute;
  right: 72px;
  top: 18px;
  width: 42px;
  z-index: 700;
}

.map-analysis-toggle:hover:not(:disabled) { background: #18594f; }
.map-analysis-toggle:disabled { background: #eef0f1; border-color: #d7dcde; color: #8b969b; cursor: not-allowed; }
.map-analysis-toggle svg { fill: none; height: 22px; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; width: 22px; }
.map-analysis-mark { background: #1f6f63; }
.map-analysis-actions { display: flex; justify-content: flex-end; }
.map-analysis-actions .primary-action { gap: 7px; }
.map-analysis-actions svg { fill: none; height: 17px; stroke: currentColor; stroke-width: 1.8; width: 17px; }
.map-ai-analysis-empty { color: var(--muted); margin: 0; }

.map-assistant-toggle:hover:not(:disabled) {
  background: #30383c;
}

.map-assistant-toggle:disabled {
  background: #eef0f1;
  border-color: #d7dcde;
  color: #8b969b;
  cursor: not-allowed;
}

.map-assistant-toggle svg,
.map-assistant-submit svg,
.map-assistant-mark svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.map-assistant-toggle svg {
  height: 23px;
  width: 23px;
}

.map-assistant-panel {
  --bs-offcanvas-height: auto;
  background: transparent;
  border: 0;
  padding: 0 18px 18px;
  pointer-events: none;
}

.map-assistant-shell {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 22px 65px rgba(23, 32, 38, 0.2);
  margin: 0 auto;
  max-width: 820px;
  padding: 18px;
  pointer-events: auto;
  width: 100%;
  max-height: calc(100vh - 36px);
  overflow-y: auto;
}

.map-ai-analysis { align-items: center; background: #eef6f4; border: 1px solid #c8ded9; border-radius: 7px; display: flex; gap: 16px; justify-content: space-between; margin-bottom: 14px; padding: 12px 14px; }
.map-ai-analysis > div { display: grid; gap: 2px; }
.map-ai-analysis strong { color: #173f39; font-size: 14px; }
.map-ai-analysis span { color: #526a66; font-size: 12px; }
.map-ai-analysis .primary-action { flex: 0 0 auto; gap: 7px; min-height: 38px; }
.map-ai-analysis .primary-action svg { fill: none; height: 17px; stroke: currentColor; stroke-width: 1.8; width: 17px; }
.map-ai-analysis .primary-action:disabled { cursor: wait; opacity: .6; }
.map-ai-analysis-result { border: 1px solid var(--line); border-radius: 7px; display: grid; gap: 14px; margin-bottom: 14px; padding: 16px; }
.map-ai-analysis-result.is-error { background: #fff2f2; border-color: #e5bcbc; color: #8a2929; }
.map-ai-result-header { align-items: center; display: flex; gap: 12px; }
.map-ai-result-header > div:last-child { display: grid; gap: 2px; }
.map-ai-result-header span { color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.map-ai-result-header h3 { font-size: 17px; margin: 0; }
.map-ai-score { align-items: baseline; border-radius: 6px; color: #fff; display: flex; flex: 0 0 auto; gap: 2px; padding: 8px 10px; }
.map-ai-score strong { font-size: 22px; line-height: 1; }
.map-ai-score span { color: inherit; font-size: 10px; }
.map-ai-score-favorable { background: #23745d; }
.map-ai-score-attention { background: #a46916; }
.map-ai-score-insufficient { background: #68757a; }
.map-ai-summary { color: #354247; line-height: 1.5; margin: 0; }
.map-ai-result-grid { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.map-ai-result-grid section { background: #f7f9f9; border-left: 3px solid #93aaa5; padding: 10px 12px; }
.map-ai-analysis-result h4 { font-size: 12px; margin: 0 0 7px; text-transform: uppercase; }
.map-ai-analysis-result ul { display: grid; gap: 5px; margin: 0; padding-left: 17px; }
.map-ai-analysis-result li { color: #4b585d; font-size: 12px; line-height: 1.4; }
.map-ai-analysis-result details { border-top: 1px solid var(--line); padding-top: 10px; }
.map-ai-analysis-result summary { cursor: pointer; font-size: 12px; font-weight: 800; }
.map-ai-analysis-result details section { margin-top: 10px; }
.map-ai-analysis-result footer { color: var(--muted); font-size: 10px; }
.map-ai-loading { align-items: center; display: flex; gap: 9px; }
.map-ai-loading i { animation: spinner-border .75s linear infinite; border: 2px solid #1f6f63; border-radius: 50%; border-right-color: transparent; height: 15px; width: 15px; }

.map-assistant-heading {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  margin-bottom: 14px;
}

.map-assistant-heading h2 {
  font-size: 18px;
  margin: 2px 0 0;
}

.map-assistant-heading .eyebrow {
  margin: 0;
}

.map-assistant-mark {
  align-items: center;
  background: #171c1f;
  border-radius: 6px;
  color: #ffffff;
  display: inline-flex;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.map-assistant-mark svg {
  height: 21px;
  width: 21px;
}

.map-assistant-form {
  align-items: end;
  border: 1px solid #bac2c6;
  border-radius: 7px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 40px;
  padding: 7px;
}

.map-assistant-form:focus-within {
  border-color: #171c1f;
  box-shadow: 0 0 0 3px rgba(23, 28, 31, 0.1);
}

.map-assistant-form textarea {
  border: 0;
  max-height: 110px;
  min-height: 48px;
  outline: 0;
  padding: 7px 9px;
  resize: none;
}

.map-assistant-submit {
  align-items: center;
  background: #171c1f;
  border: 0;
  border-radius: 6px;
  color: #ffffff;
  display: inline-flex;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.map-assistant-submit:disabled {
  opacity: 0.55;
}

.map-assistant-submit svg {
  height: 18px;
  width: 18px;
}

.map-assistant-examples {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}

.map-assistant-examples button {
  background: #f4f6f7;
  border: 1px solid #dce1e3;
  border-radius: 5px;
  color: #4e5a60;
  font-size: 12px;
  padding: 6px 9px;
}

.map-assistant-examples button:hover {
  background: #e9edef;
  color: #171c1f;
}

.map-assistant-feedback {
  color: #526168;
  font-size: 13px;
  min-height: 20px;
  padding-top: 9px;
}

.map-assistant-feedback.is-loading::before {
  animation: spinner-border 0.75s linear infinite;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  content: "";
  display: inline-block;
  height: 12px;
  margin-right: 7px;
  vertical-align: -1px;
  width: 12px;
}

@media (max-width: 640px) {
  .map-ai-analysis { align-items: stretch; flex-direction: column; }
  .map-ai-analysis .primary-action { justify-content: center; }
  .map-ai-result-grid { grid-template-columns: 1fr; }
}

.map-quick-save:hover {
  background: var(--accent-strong);
}

.map-quick-save svg {
  fill: none;
  height: 22px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 22px;
}

.map-panel-toggle:hover {
  background: #f5f7f8;
}

.map-loading-overlay {
  align-items: center;
  background: rgba(255, 255, 255, 0.58);
  display: flex;
  inset: 0;
  justify-content: center;
  position: absolute;
  z-index: 680;
}

.map-dynamics-insights {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(23, 32, 38, 0.16);
  border-radius: 8px;
  bottom: 24px;
  box-shadow: 0 14px 40px rgba(23, 32, 38, 0.18);
  left: 24px;
  max-width: min(620px, calc(100vw - 116px));
  padding: 14px;
  position: absolute;
  width: 620px;
  z-index: 670;
}

.map-dynamics-insights > header {
  align-items: start;
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
}

.map-dynamics-insights > header div {
  display: grid;
  gap: 1px;
}

.map-dynamics-insights > header strong {
  color: var(--text);
  font-size: 14px;
}

.map-dynamics-insights > header span {
  color: var(--muted);
  font-size: 11px;
}

.map-dynamics-insights > header button {
  background: transparent;
  border: 0;
  color: #68777c;
  font-size: 22px;
  line-height: 1;
  padding: 0 2px;
}

.map-dynamics-metrics {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 12px;
}

.map-dynamics-metrics div {
  background: #f4f6f7;
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 9px 10px;
}

.map-dynamics-metrics div:first-child {
  border-radius: 6px 0 0 6px;
}

.map-dynamics-metrics div:last-child {
  border-radius: 0 6px 6px 0;
}

.map-dynamics-metrics span {
  color: var(--muted);
  font-size: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.map-dynamics-metrics strong {
  color: #171c1f;
  font-size: 18px;
  font-variant-numeric: tabular-nums;
}

.map-dynamics-metrics strong.is-negative {
  color: #b42318;
}

.map-dynamics-chart {
  align-items: end;
  border-bottom: 1px solid #dce2e4;
  display: grid;
  gap: 3px;
  grid-template-columns: repeat(24, minmax(3px, 1fr));
  height: 54px;
}

.map-dynamics-chart-month {
  align-items: end;
  display: flex;
  gap: 1px;
  height: 100%;
  justify-content: center;
}

.map-dynamics-chart-month i {
  border-radius: 2px 2px 0 0;
  display: block;
  max-width: 7px;
  min-height: 2px;
  width: 45%;
}

.map-dynamics-chart .is-opened,
.map-dynamics-chart-legend .is-opened {
  background: #30383c;
}

.map-dynamics-chart .is-closed,
.map-dynamics-chart-legend .is-closed {
  background: #dc3545;
}

.map-dynamics-chart-legend {
  color: var(--muted);
  display: flex;
  font-size: 10px;
  gap: 12px;
  justify-content: flex-end;
  padding-top: 6px;
}

.map-dynamics-chart-legend span {
  align-items: center;
  display: inline-flex;
  gap: 4px;
}

.map-dynamics-chart-legend i {
  border-radius: 2px;
  display: inline-block;
  height: 7px;
  width: 7px;
}

.map-loading-dialog {
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(23, 32, 38, 0.18);
  color: var(--text);
  display: grid;
  gap: 8px;
  justify-items: center;
  min-width: min(320px, calc(100vw - 40px));
  padding: 22px 24px;
  text-align: center;
}

.map-loading-dialog strong {
  font-size: 16px;
}

.map-loading-dialog span {
  color: var(--muted);
  font-size: 13px;
}

.map-offcanvas {
  --bs-offcanvas-width: min(470px, 100vw);
}

.map-sector-detail {
  --bs-offcanvas-width: min(760px, 100vw);
}

.map-point-analysis {
  --bs-offcanvas-width: min(560px, 100vw);
}

.map-sidebar {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
}

.map-offcanvas .offcanvas-header {
  align-items: start;
  border-bottom: 1px solid var(--line);
  padding: 18px;
}

.map-offcanvas h1 {
  font-size: 28px;
  margin: 0;
}

.map-sidebar-context {
  background: #f7f9fa;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr);
  padding: 14px 18px;
}

.map-sidebar-tabs {
  border-bottom: 1px solid var(--line);
  display: grid;
  flex: 0 0 auto;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  padding: 0 6px;
}

.map-sidebar-tabs button {
  align-items: center;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  color: #68777c;
  display: flex;
  font-size: 11px;
  font-weight: 700;
  gap: 4px;
  justify-content: center;
  min-height: 52px;
  padding: 0 3px;
  position: relative;
}

.map-sidebar-tabs button:hover {
  color: var(--text);
}

.map-sidebar-tabs button:disabled {
  color: #aab2b6;
  cursor: not-allowed;
  opacity: 0.58;
}

.map-sidebar-tabs button:disabled:hover {
  color: #aab2b6;
}

.map-sidebar-tabs button.active {
  border-bottom-color: #172026;
  color: #172026;
}

.map-sidebar-tabs svg {
  fill: none;
  flex: 0 0 17px;
  height: 17px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  width: 17px;
}

.map-sidebar-tabs i {
  align-items: center;
  background: #e8edef;
  border-radius: 999px;
  color: #526166;
  display: inline-flex;
  font-size: 10px;
  font-style: normal;
  height: 18px;
  justify-content: center;
  min-width: 18px;
  padding: 0 5px;
}

.map-sidebar-tabs button.active i {
  background: #172026;
  color: #ffffff;
}

.map-sidebar-content {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 18px;
}

.map-sidebar-panel {
  display: grid;
  gap: 18px;
}

.map-sidebar-panel[hidden] {
  display: none;
}

.map-panel-heading {
  display: grid;
  gap: 3px;
}

.map-panel-heading .eyebrow {
  margin: 0;
}

.map-panel-heading h2 {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
}

.map-settings-group {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 14px;
  padding-top: 16px;
}

.map-settings-group summary {
  align-items: center;
  color: var(--text);
  display: flex;
  font-size: 13px;
  font-weight: 700;
  gap: 9px;
}

.map-settings-group summary {
  cursor: pointer;
  margin-bottom: 14px;
}

.map-data-source-list {
  border: 1px solid var(--line);
  border-radius: 7px;
  overflow: visible;
}

.map-data-source + .map-data-source {
  border-top: 1px solid var(--line);
}

.map-data-source summary {
  align-items: center;
  background: #ffffff;
  cursor: pointer;
  display: grid;
  gap: 10px;
  grid-template-columns: 28px minmax(0, 1fr) 16px;
  list-style: none;
  min-height: 58px;
  padding: 8px 12px;
}

.map-data-source summary::-webkit-details-marker {
  display: none;
}

.map-data-source summary:hover {
  background: #f7f9fa;
}

.map-data-source[open] summary {
  background: #f7f9fa;
}

.map-data-source-title {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.map-data-source-title strong {
  font-size: 13px;
}

.map-data-source-title small {
  color: var(--muted);
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.map-data-source-chevron {
  fill: none;
  height: 16px;
  stroke: #6b777c;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  transition: transform 160ms ease;
  width: 16px;
}

.map-data-source[open] .map-data-source-chevron {
  transform: rotate(90deg);
}

.map-data-source-content {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 14px;
  padding: 14px 12px 16px 50px;
}

.map-layer-visualization {
  align-self: center;
  border: 0;
  grid-column: 2;
  grid-row: 3;
  justify-self: end;
  margin: 0;
  min-width: 0;
  padding: 0;
}

.map-layer-visualization legend {
  margin: 0;
}

.map-layer-visualization > div {
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 5px;
  display: inline-flex;
  gap: 0;
  height: 28px;
  overflow: hidden;
}

.map-layer-visualization label {
  align-items: center;
  border: 0;
  border-radius: 0;
  color: #536066;
  cursor: pointer;
  display: flex;
  font-size: 11px;
  font-weight: 700;
  gap: 0;
  margin: 0;
  min-height: 26px;
  padding: 0 8px;
  position: relative;
}

.map-layer-visualization label + label {
  border-left: 1px solid var(--line);
}

.map-layer-visualization label:has(input:checked) {
  background: #172026;
  color: #ffffff;
}

.map-layer-visualization label:has(input:disabled) {
  background: #f3f5f6;
  color: #9aa3a7;
  cursor: not-allowed;
}

.map-layer-visualization input {
  height: 1px;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  width: 1px;
}

.map-company-status-filter {
  border: 0;
  margin: 0;
  min-width: 0;
  padding: 0;
}

.map-company-status-filter legend {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 7px;
  text-transform: uppercase;
}

.map-company-status-options {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.map-company-status-options label {
  cursor: pointer;
  margin: 0;
  position: relative;
}

.map-company-status-options input {
  opacity: 0;
  pointer-events: none;
  position: absolute;
}

.map-company-status-options span {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: #59666b;
  display: inline-flex;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 9px;
}

.map-company-status-options input:checked + span {
  background: #232a2d;
  border-color: #232a2d;
  color: #ffffff;
}

.map-company-status-options input:focus-visible + span {
  box-shadow: 0 0 0 3px rgba(35, 42, 45, 0.18);
}

.map-company-status-filter > small {
  color: var(--muted);
  display: block;
  font-size: 11px;
  margin-top: 7px;
}

.map-layer-enable {
  align-items: center;
  cursor: pointer;
  display: flex;
  font-size: 13px;
  font-weight: 700;
  gap: 8px;
  margin: 0;
}

.map-layer-enable input {
  accent-color: #24282a;
  height: 16px;
  width: 16px;
}

.map-period-options {
  border: 0;
  margin: 0;
  padding: 0;
}

.map-period-options legend,
.map-reference-month label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 7px;
  text-transform: uppercase;
}

.map-period-options > div {
  display: grid;
  gap: 5px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.map-period-options label {
  cursor: pointer;
  margin: 0;
  position: relative;
}

.map-period-options input {
  opacity: 0;
  pointer-events: none;
  position: absolute;
}

.map-period-options span {
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: #59666b;
  display: flex;
  font-size: 11px;
  font-weight: 700;
  justify-content: center;
  min-height: 34px;
}

.map-period-options input:checked + span {
  background: #232a2d;
  border-color: #232a2d;
  color: #ffffff;
}

.map-reference-month {
  display: grid;
  gap: 5px;
}

.map-reference-month > div {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.map-reference-month label {
  margin: 0;
}

.map-reference-month output {
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
}

.map-reference-month input[type="range"] {
  accent-color: #24282a;
  cursor: pointer;
  width: 100%;
}

.map-reference-month small {
  color: var(--muted);
  font-size: 10px;
}

.map-add-icon {
  align-items: center;
  background: #edf1f2;
  border-radius: 6px;
  color: #3f4d52;
  display: inline-flex;
  height: 28px;
  justify-content: center;
  width: 28px;
}

.map-add-icon svg {
  fill: none;
  height: 17px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  width: 17px;
}

.map-sidebar-feedback {
  background: #f7f9fa;
  border-top: 1px solid var(--line);
  flex: 0 0 auto;
  min-height: 0;
  padding: 10px 18px;
}

.map-sidebar-feedback:empty {
  display: none;
}

.map-completion-panel {
  align-content: start;
}

.map-completion-state {
  align-items: center;
  background: #f3f6f7;
  border-left: 3px solid #7d898e;
  border-radius: 6px;
  display: grid;
  gap: 11px;
  grid-template-columns: 34px minmax(0, 1fr);
  padding: 12px 14px;
}

.map-completion-state[data-state="ready"],
.map-completion-state[data-state="saved"] {
  background: #f1f3f4;
  border-left-color: #6b7479;
}

.map-completion-state[data-state="pending"],
.map-completion-state[data-state="saving"] {
  background: #fff7e8;
  border-left-color: #c47b12;
}

.map-completion-state[data-state="error"] {
  background: #fff0ee;
  border-left-color: #c4372c;
}

.map-completion-state-icon {
  align-items: center;
  display: inline-flex;
  height: 30px;
  justify-content: center;
  width: 30px;
}

.map-completion-state-icon svg,
.map-completion-save svg {
  fill: none;
  height: 19px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  width: 19px;
}

.map-completion-state > div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.map-completion-state strong {
  font-size: 14px;
}

.map-completion-state span:not(.map-completion-state-icon) {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.map-completion-summary {
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  margin: 0;
}

.map-completion-summary > div {
  align-items: center;
  display: grid;
  gap: 18px;
  grid-template-columns: 82px minmax(0, 1fr);
  min-height: 44px;
}

.map-completion-summary > div + div {
  border-top: 1px solid #edf0f1;
}

.map-completion-summary dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.map-completion-summary dd {
  font-size: 14px;
  font-weight: 700;
  margin: 0;
  overflow: hidden;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.map-completion-fields {
  display: grid;
  gap: 14px;
}

.map-completion-save {
  background: var(--action);
  gap: 8px;
  width: 100%;
}

.map-completion-save:hover,
.map-completion-save:focus-visible {
  background: var(--action-strong);
}

.map-completion-save:disabled {
  cursor: wait;
  opacity: 0.65;
}

.map-section-title {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  padding-top: 14px;
  text-transform: uppercase;
}

.map-control-group {
  display: grid;
  gap: 6px;
}

.map-control-group label,
.map-layer-list label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.map-control-group input,
.map-control-group textarea,
.map-control-group select {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  font-size: 14px;
  min-height: 40px;
  padding: 0 10px;
}

.map-control-group textarea {
  min-height: 92px;
  padding: 10px;
  resize: vertical;
}

.map-control-group .ts-wrapper {
  position: relative;
  width: 100%;
}

.map-control-group .ts-wrapper.dropdown-active {
  z-index: 20;
}

.map-control-group .ts-wrapper.single .ts-control {
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: none;
  color: var(--text);
  display: flex;
  font-size: 14px;
  min-height: 40px;
  padding: 0 10px;
}

.map-control-group .ts-wrapper.focus .ts-control {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 42, 45, 0.12);
}

.map-control-group .ts-wrapper.focus .ts-control input::placeholder {
  color: transparent;
}

.map-control-group .ts-wrapper .ts-dropdown {
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 18px 40px rgba(23, 32, 38, 0.12);
  font-size: 14px;
  margin-top: 4px;
  overflow: hidden;
}

.map-control-group .ts-wrapper .option,
.map-control-group .ts-wrapper .no-results {
  padding: 10px 12px;
}

.map-control-group .ts-wrapper .active {
  background: #f5f7f8;
  color: var(--text);
}

.map-floating-dropdown {
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 18px 40px rgba(23, 32, 38, 0.18);
  font-size: 14px;
  overflow: hidden;
  z-index: 1100;
}

.map-floating-dropdown .option,
.map-floating-dropdown .no-results {
  padding: 10px 12px;
}

.map-floating-dropdown .active {
  background: #f5f7f8;
  color: var(--text);
}

.map-color-scale-dropdown {
  min-width: 220px;
}

.map-indicator-dropdown {
  max-width: calc(100vw - 24px);
  min-width: min(400px, calc(100vw - 24px));
}

.map-indicator-dropdown .ts-dropdown-content {
  max-height: min(46vh, 360px);
}

.map-basemap-picker {
  border: 0;
  margin: 0;
  padding: 0;
}

.map-basemap-picker legend {
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 2px;
}

.map-basemap-picker > p {
  color: var(--muted);
  font-size: 11px;
  margin: 0 0 9px;
}

.map-basemap-picker > div {
  display: grid;
  gap: 7px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.map-basemap-option {
  cursor: pointer;
  display: grid;
  gap: 5px;
  min-width: 0;
  position: relative;
}

.map-basemap-option input {
  height: 1px;
  opacity: 0;
  position: absolute;
  width: 1px;
}

.map-basemap-preview {
  background: #eef1ed;
  border: 2px solid transparent;
  border-radius: 5px;
  display: block;
  height: 48px;
  overflow: hidden;
  position: relative;
}

.map-basemap-preview::before,
.map-basemap-preview::after,
.map-basemap-preview i {
  content: "";
  position: absolute;
}

.map-basemap-preview::before {
  border: solid #ffffff;
  border-width: 3px 0;
  height: 14px;
  left: -8px;
  top: 15px;
  transform: rotate(-14deg);
  width: calc(100% + 16px);
}

.map-basemap-preview::after {
  border-left: 2px solid #ffffff;
  height: 62px;
  left: 55%;
  top: -8px;
  transform: rotate(25deg);
}

.map-basemap-preview i:first-child {
  background: rgba(101, 154, 109, 0.38);
  border-radius: 50%;
  height: 24px;
  left: 6px;
  top: 3px;
  width: 27px;
}

.map-basemap-preview i:nth-child(2) {
  border: 1px solid rgba(80, 102, 111, 0.45);
  height: 18px;
  right: 7px;
  top: 5px;
  width: 22px;
}

.map-basemap-preview i:nth-child(3) {
  background: rgba(66, 135, 181, 0.3);
  bottom: -8px;
  height: 20px;
  left: -3px;
  transform: rotate(8deg);
  width: 55px;
}

.map-basemap-option-light .map-basemap-preview {
  background: #f2f3f3;
}

.map-basemap-option-light .map-basemap-preview i:first-child {
  background: #e0e4e1;
}

.map-basemap-option-dark .map-basemap-preview {
  background: #25292c;
}

.map-basemap-option-dark .map-basemap-preview::before,
.map-basemap-option-dark .map-basemap-preview::after {
  border-color: #646c70;
}

.map-basemap-option-dark .map-basemap-preview i:first-child {
  background: #39453f;
}

.map-basemap-option-dark .map-basemap-preview i:nth-child(2) {
  border-color: #778086;
}

.map-basemap-option input:checked + .map-basemap-preview {
  border-color: #111111;
  box-shadow: 0 0 0 1px #ffffff inset;
}

.map-basemap-option input:focus-visible + .map-basemap-preview {
  box-shadow: 0 0 0 3px rgba(33, 37, 41, 0.2);
}

.map-basemap-option strong {
  font-size: 11px;
  overflow-wrap: anywhere;
  text-align: center;
}

.map-control-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr 1fr;
}

.map-rais-summary {
  background: #f5faf8;
  border: 1px solid #d5e7e1;
  border-radius: 7px;
  display: grid;
  gap: 12px;
  padding: 13px;
}

.map-rais-heading {
  display: grid;
  gap: 2px;
}

.map-rais-heading span {
  color: #13715f;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.map-rais-heading strong {
  color: #172026;
  font-size: 15px;
}

.map-rais-heading small,
.map-rais-summary p {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

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

.map-rais-kpis article {
  background: #ffffff;
  border: 1px solid #dbe9e4;
  border-radius: 6px;
  min-width: 0;
  padding: 9px;
}

.map-rais-kpis span {
  color: #607078;
  display: block;
  font-size: 9px;
  font-weight: 800;
  line-height: 1.25;
  min-height: 24px;
  text-transform: uppercase;
}

.map-rais-kpis strong {
  color: #172026;
  display: block;
  font-size: 18px;
  line-height: 1.2;
  margin-top: 4px;
}

.map-rais-summary p {
  margin: 0;
}

.map-layer-list {
  display: grid;
  gap: 8px;
}

.map-point-list {
  display: grid;
  gap: 8px;
}

.map-empty-list {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
}

.map-layer-row {
  align-items: center;
  background: #f9fbfb;
  border: 1px solid var(--line);
  border-radius: 6px;
  column-gap: 10px;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  min-height: 72px;
  padding: 9px 10px;
  row-gap: 7px;
}

.map-layer-row > label {
  align-items: center;
  color: var(--text);
  display: flex;
  gap: 8px;
  grid-column: 2;
  grid-row: 1;
  margin: 0;
  min-width: 0;
  text-transform: none;
}

.map-layer-name,
.map-indicator-selected {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.map-layer-name {
  max-width: 100%;
}

.map-indicator-option {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.map-indicator-option strong,
.map-indicator-option small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.map-indicator-option small {
  color: var(--muted);
  font-size: 11px;
}

.map-layer-drag-handle {
  align-items: center;
  background: transparent;
  border: 0;
  color: #7a898e;
  cursor: grab;
  display: inline-flex;
  flex: 0 0 24px;
  height: 30px;
  justify-content: center;
  padding: 0;
  touch-action: none;
  width: 24px;
}

.map-layer-row > .map-layer-drag-handle {
  grid-column: 1;
  grid-row: 1;
}

.map-layer-drag-handle:active {
  cursor: grabbing;
}

.map-layer-drag-handle svg {
  fill: currentColor;
  height: 20px;
  width: 20px;
}

.map-layer-row-chosen {
  box-shadow: 0 8px 24px rgba(23, 32, 38, 0.14);
}

.map-layer-row-ghost {
  background: #edf0f1;
  opacity: 0.48;
}

.map-layer-row-segment {
  background: #ffffff;
}

.map-layer-row-indicator {
  background: #fbfbff;
}

.map-layer-row-dynamics {
  background: #f5f7f8;
}

.map-heat-swatch {
  background: radial-gradient(circle, #111719 0, #8c989e 42%, rgba(215, 221, 224, 0.25) 74%);
  border-radius: 999px;
  display: inline-block;
  flex: 0 0 18px;
  height: 18px;
  width: 18px;
}

.map-color-dot {
  border: 1px solid rgba(23, 32, 38, 0.18);
  border-radius: 999px;
  display: inline-block;
  flex: 0 0 auto;
  height: 10px;
  width: 10px;
}

.map-color-dot-square {
  border-radius: 3px;
}

.map-color-gradient {
  border: 1px solid rgba(23, 32, 38, 0.18);
  border-radius: 999px;
  display: inline-block;
  flex: 0 0 auto;
  height: 10px;
  width: 34px;
}

.map-layer-actions {
  align-items: center;
  display: grid;
  gap: 6px;
  grid-column: 2;
  grid-row: 2;
  grid-template-columns: 62px 124px 30px;
  justify-self: end;
  width: 228px;
}

.map-layer-actions > input[type="color"],
.map-layer-actions > .map-color-scale-picker {
  grid-column: 1;
  justify-self: end;
}

.map-layer-actions > .map-layer-opacity {
  grid-column: 2;
}

.map-layer-actions > .map-layer-remove {
  grid-column: 3;
}

.map-layer-row .map-layer-opacity {
  align-items: center;
  color: #5f6b70;
  display: inline-flex;
  flex: 0 0 auto;
  gap: 5px;
  margin: 0;
  width: auto;
}

.map-layer-opacity svg {
  fill: #d9dfe1;
  flex: 0 0 16px;
  height: 16px;
  stroke: #5f6b70;
  stroke-width: 1.5;
  width: 16px;
}

.map-layer-opacity svg path {
  fill: #5f6b70;
  stroke: none;
}

.map-layer-opacity input[type="range"] {
  accent-color: #24282a;
  cursor: pointer;
  height: 20px;
  margin: 0;
  padding: 0;
  width: 66px;
}

.map-layer-opacity output {
  color: #5f6b70;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  min-width: 32px;
  text-align: right;
}

.map-layer-actions input[type="color"] {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
  height: 28px;
  padding: 2px;
  width: 32px;
}

.map-layer-actions button {
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  cursor: pointer;
  display: inline-flex;
  font-weight: 700;
  height: 28px;
  justify-content: center;
  width: 30px;
}

.map-layer-actions button:hover {
  background: #f4f6f7;
}

.map-layer-actions .map-layer-remove {
  color: #b42318;
}

.map-layer-actions .map-layer-remove:hover {
  background: #fff1f0;
  border-color: #f4b8b2;
  color: #912018;
}

.map-layer-actions .map-layer-remove svg {
  fill: none;
  height: 16px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  width: 16px;
}

.map-layer-actions .map-color-scale-toggle {
  gap: 5px;
  padding: 0 7px;
  width: 62px;
}

.map-color-scale-toggle::after {
  border-left-width: 4px;
  border-right-width: 4px;
  border-top-width: 5px;
  margin-left: 0;
}

.map-color-scale-strip {
  border: 1px solid rgba(23, 32, 38, 0.18);
  border-radius: 3px;
  display: block;
  flex: 0 0 auto;
  height: 13px;
  width: 40px;
}

.map-color-scale-menu {
  min-width: 84px;
  padding: 6px;
}

.map-layer-actions .map-color-scale-option {
  border: 1px solid transparent;
  height: 30px;
  padding: 7px 8px;
  width: 70px;
}

.map-layer-actions .map-color-scale-option + .map-color-scale-option {
  margin-top: 3px;
}

.map-layer-actions .map-color-scale-option .map-color-scale-strip {
  height: 14px;
  width: 52px;
}

.map-layer-actions .map-color-scale-option.is-active {
  background: #eef1f2;
  border-color: #7b878c;
}

.map-point-row {
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  min-height: 44px;
  padding: 8px 10px;
}

.map-point-row label {
  align-items: center;
  color: var(--text);
  display: flex;
  font-size: 13px;
  font-weight: 700;
  gap: 8px;
  margin: 0;
  min-width: 0;
}

.map-point-row label span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.map-point-color {
  border: 2px solid #ffffff;
  border-radius: 999px;
  box-shadow: 0 0 0 1px rgba(23, 32, 38, 0.18);
  flex: 0 0 12px;
  height: 12px;
  width: 12px;
}

.map-point-row button {
  background: #f4f6f7;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--accent-strong);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  min-height: 28px;
  padding: 0 10px;
}

.map-point-row-actions {
  align-items: center;
  display: flex;
  flex: 0 0 auto;
  gap: 6px;
}

.map-point-row .map-point-delete {
  align-items: center;
  background: #fff5f5;
  color: #9b2c2c;
  display: inline-flex;
  justify-content: center;
  padding: 0;
  width: 30px;
}

.map-point-row .map-point-favorite,
.map-favorite-remove {
  align-items: center;
  display: inline-flex;
  justify-content: center;
  padding: 0;
  width: 30px;
}

.map-point-favorite svg,
.map-favorite-open svg,
.map-favorite-remove svg,
.popup-favorite-button svg,
.sector-detail-favorite svg {
  fill: none;
  height: 16px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  width: 16px;
}

.map-point-favorite svg.is-active,
.map-favorite-open svg,
.popup-favorite-button svg.is-active,
.sector-detail-favorite svg.is-active {
  fill: currentColor;
}

.map-favorites-section {
  border-top: 1px solid var(--line);
  margin-top: 18px;
  padding-top: 16px;
}

.map-favorites-heading { margin-bottom: 10px; }
.map-favorites-heading h3 { font-size: 16px; margin: 0; }
.map-favorites-list { display: grid; gap: 7px; }

.map-favorite-row {
  align-items: center;
  background: #fffdf2;
  border: 1px solid #ebe1b9;
  border-radius: 6px;
  display: flex;
  gap: 6px;
  min-height: 48px;
  padding: 5px 6px 5px 8px;
}

.map-favorite-open {
  align-items: center;
  background: transparent;
  border: 0;
  color: var(--text);
  display: flex;
  flex: 1 1 auto;
  gap: 9px;
  min-width: 0;
  padding: 2px;
  text-align: left;
}

.map-favorite-open > svg { color: #a87900; flex: 0 0 auto; }
.map-favorite-open span { display: grid; min-width: 0; }
.map-favorite-open strong { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.map-favorite-open small { color: var(--muted); font-size: 11px; }
.map-favorite-remove { background: transparent; border: 0; color: #8d4a4a; }
.map-favorite-remove:hover { background: #fff1f1; }

.map-point-delete svg {
  fill: none;
  height: 15px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 15px;
}

.map-layer-actions button[aria-label^="Remover"] {
  color: #9b2c2c;
}

.map-scale-library-link {
  align-items: center;
  color: #4d5b61;
  display: inline-flex;
  font-size: 12px;
  font-weight: 700;
  gap: 6px;
  margin-top: 2px;
  text-decoration: none;
  width: fit-content;
}

.map-scale-library-link:hover {
  color: #171c1f;
  text-decoration: underline;
}

.map-scale-library-link svg {
  fill: none;
  height: 14px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 14px;
}

.color-scale-option {
  align-items: center;
  display: flex;
  gap: 8px;
}

.color-scale-selected {
  align-items: center;
  display: flex;
  min-width: 0;
  width: 100%;
}

.color-scale-selected-preview {
  border: 1px solid rgba(23, 32, 38, 0.18);
  border-radius: 4px;
  display: block;
  height: 16px;
  width: min(170px, 100%);
}

.color-scale-preview {
  border: 1px solid rgba(23, 32, 38, 0.18);
  border-radius: 999px;
  flex: 0 0 auto;
  height: 10px;
  width: 36px;
}

.color-scale-page-header > div > p:last-child {
  color: var(--muted);
  margin: 7px 0 0;
}

.color-scale-page-header .secondary-action {
  gap: 8px;
  white-space: nowrap;
}

.color-scale-page-header .secondary-action svg {
  fill: none;
  flex: 0 0 18px;
  height: 18px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 18px;
}

.color-scale-workspace {
  align-items: start;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 390px);
}

.color-scale-library {
  min-width: 0;
}

.color-scale-library .section-heading {
  align-items: end;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  padding-bottom: 14px;
}

.color-scale-library .section-heading h2,
.color-scale-editor h2 {
  font-size: 20px;
  margin: 2px 0 0;
}

.color-scale-library .section-heading > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.color-scale-section-label {
  color: #5e6a70;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  padding: 22px 2px 8px;
  text-transform: uppercase;
}

.color-scale-list {
  border: 1px solid var(--line);
  border-radius: 7px;
  overflow: hidden;
}

.color-scale-row {
  align-items: center;
  background: #ffffff;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(150px, 1fr) minmax(180px, 0.8fr) 86px;
  min-height: 76px;
  padding: 12px 14px;
}

.color-scale-row + .color-scale-row {
  border-top: 1px solid var(--line);
}

.color-scale-row-main {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.color-scale-row-main strong {
  font-size: 14px;
}

.color-scale-row-main span {
  color: var(--muted);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.color-scale-strip {
  border: 1px solid rgba(23, 32, 38, 0.18);
  border-radius: 5px;
  display: grid;
  grid-auto-columns: 1fr;
  grid-auto-flow: column;
  height: 28px;
  overflow: hidden;
}

.color-scale-strip i {
  background: var(--scale-color);
  display: block;
}

.color-scale-badge {
  background: #edf0f1;
  border-radius: 4px;
  color: #4f5c62;
  font-size: 10px;
  font-weight: 800;
  justify-self: end;
  padding: 5px 7px;
}

.color-scale-row-actions {
  align-items: center;
  display: flex;
  gap: 6px;
  justify-self: end;
}

.color-scale-row-actions form {
  display: contents;
}

.icon-action {
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: #4f5c62;
  display: inline-flex;
  height: 34px;
  justify-content: center;
  padding: 0;
  text-decoration: none;
  width: 34px;
}

.icon-action:hover {
  background: #f4f6f7;
  color: #171c1f;
}

.icon-action-danger {
  color: #9b2c2c;
}

.icon-action svg {
  fill: none;
  height: 16px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 16px;
}

.color-scale-empty {
  border: 1px dashed #cbd2d5;
  border-radius: 7px;
  color: var(--muted);
  font-size: 13px;
  padding: 24px;
  text-align: center;
}

.color-scale-editor {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 20px;
  position: sticky;
  top: 84px;
}

.color-scale-form {
  margin-top: 18px;
}

.color-scale-form input[type="text"],
.color-scale-form textarea {
  width: 100%;
}

.color-scale-color-fields {
  border: 0;
  margin: 2px 0 0;
  padding: 0;
}

.color-scale-color-fields legend {
  float: none;
  font-size: 13px;
  font-weight: 800;
  margin: 0;
}

.color-scale-color-fields > p {
  color: var(--muted);
  font-size: 11px;
  margin: 3px 0 10px;
}

.color-scale-color-fields > div {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.color-scale-color-fields label {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.color-scale-color-fields label span {
  color: var(--muted);
  font-size: 10px;
  text-align: center;
}

.color-scale-color-fields input[type="color"] {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 5px;
  cursor: pointer;
  height: 42px;
  min-width: 0;
  padding: 3px;
  width: 100%;
}

@media (max-width: 900px) {
  .color-scale-workspace {
    grid-template-columns: 1fr;
  }

  .color-scale-editor {
    position: static;
  }
}

@media (max-width: 620px) {
  .color-scale-row {
    gap: 10px;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .color-scale-strip {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .color-scale-badge,
  .color-scale-row-actions {
    grid-column: 2;
    grid-row: 1;
  }
}

.map-actions {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr 1fr;
}

.map-status {
  color: var(--muted);
  font-size: 13px;
  min-height: 20px;
}

.legend-empty {
  background: #dfe6e8;
}

.legend-indicator {
  border-radius: 999px;
}

.legend-low {
  background: #9aa6ac;
}

.legend-mid {
  background: #f2b84b;
}

.legend-high {
  background: #d95d39;
}

.sector-map-canvas {
  height: 100%;
  min-height: 0;
  width: 100%;
}

.poi-modal .modal-header {
  align-items: start;
}

.poi-modal .modal-title {
  font-size: 24px;
}

.poi-modal .modal-body {
  display: grid;
  gap: 14px;
}

.poi-indicator-scope {
  border: 1px solid var(--line);
  border-radius: 6px;
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 12px;
}

.poi-travel-fields {
  background: #f5f7f8;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) minmax(120px, 0.55fr);
  padding: 12px;
}

.poi-travel-fields[hidden],
.map-control-group[hidden] {
  display: none;
}

.poi-travel-time-control {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) 58px;
  min-height: 32px;
}

.poi-travel-time-control input[type="range"] {
  appearance: none;
  background: linear-gradient(to right, #24282a 0 var(--range-progress, 15.25%), #d8dee1 var(--range-progress, 15.25%) 100%);
  border-radius: 999px;
  cursor: pointer;
  height: 6px;
  margin: 0;
  padding: 0;
  width: 100%;
}

.poi-travel-time-control input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  background: #24282a;
  border: 3px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px #24282a, 0 2px 5px rgba(23, 32, 38, 0.22);
  height: 18px;
  width: 18px;
}

.poi-travel-time-control input[type="range"]::-moz-range-thumb {
  background: #24282a;
  border: 3px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px #24282a, 0 2px 5px rgba(23, 32, 38, 0.22);
  height: 12px;
  width: 12px;
}

.poi-travel-time-control input[type="range"]:focus-visible {
  outline: 3px solid rgba(36, 40, 42, 0.18);
  outline-offset: 5px;
}

.poi-travel-time-control input[type="range"]:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.poi-travel-time-control output {
  background: #24282a;
  border-radius: 6px;
  color: #ffffff;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  line-height: 30px;
  min-width: 58px;
  text-align: center;
}

.poi-travel-time-limits {
  color: var(--muted);
  display: flex;
  font-size: 10px;
  justify-content: space-between;
  margin-right: 68px;
  margin-top: -2px;
}

.poi-area-help {
  color: var(--muted);
  font-size: 12px;
  grid-column: 1 / -1;
  margin: 0;
}

.poi-analysis-travel-fields label {
  display: grid;
  gap: 6px;
}

.poi-analysis-travel-fields input {
  width: 100%;
}

.travel-mode-picker {
  border: 0;
  grid-column: 1 / -1;
  margin: 0;
  min-width: 0;
  padding: 0;
}

.travel-mode-picker legend {
  color: var(--text);
  float: none;
  font-size: 13px;
  font-weight: 700;
  margin: 0 0 8px;
  width: auto;
}

.travel-mode-options {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.travel-mode-option {
  align-items: center;
  background: #ffffff;
  border: 1px solid #d7dde3;
  border-radius: 6px;
  color: var(--muted);
  cursor: pointer;
  display: flex !important;
  flex-direction: column;
  font-size: 12px;
  font-weight: 700;
  gap: 6px !important;
  justify-content: center;
  min-height: 72px;
  padding: 8px 4px;
  text-align: center;
}

.travel-mode-option:has(input:checked) {
  background: #202426;
  border-color: #202426;
  color: #ffffff;
}

.travel-mode-option:has(input:focus-visible) {
  box-shadow: 0 0 0 3px rgba(32, 36, 38, 0.18);
}

.travel-mode-option:has(input:disabled) {
  cursor: not-allowed;
  opacity: 0.55;
}

.travel-mode-option input {
  height: 1px;
  opacity: 0;
  position: absolute;
  width: 1px !important;
}

.travel-mode-icon {
  fill: none;
  height: 25px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  width: 25px;
}

.travel-mode-icon-motorcycle .motorcycle-body {
  fill: currentColor;
}

.travel-mode-icon-motorcycle .motorcycle-engine {
  fill: #ffffff;
}

.travel-mode-option:has(input:checked) .travel-mode-icon-motorcycle .motorcycle-engine {
  fill: #202426;
}

@media (max-width: 560px) {
  .travel-mode-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.poi-indicator-scope legend {
  color: var(--muted);
  float: none;
  font-size: 12px;
  font-weight: 700;
  margin: 0 0 2px;
  text-transform: uppercase;
  width: auto;
}

.poi-indicator-scope label {
  align-items: center;
  display: flex;
  font-size: 14px;
  gap: 9px;
}

.poi-color-field {
  align-items: center;
  background: #f7f8f8;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: grid;
  gap: 14px;
  grid-template-columns: 54px minmax(0, 1fr);
  padding: 12px;
}

.poi-color-controls {
  display: grid;
  gap: 8px;
}

.poi-color-controls > label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.poi-color-options {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.poi-color-swatch {
  background: var(--swatch-color);
  border: 2px solid #ffffff;
  border-radius: 999px;
  box-shadow: 0 0 0 1px rgba(23, 32, 38, 0.22);
  cursor: pointer;
  height: 24px;
  padding: 0;
  width: 24px;
}

.poi-color-swatch:hover,
.poi-color-swatch:focus-visible {
  box-shadow: 0 0 0 3px rgba(37, 42, 45, 0.2);
  outline: none;
}

.poi-color-options input[type="color"] {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
  height: 28px;
  padding: 2px;
  width: 34px;
}

.poi-marker-preview,
.poi-map-marker {
  display: block;
  filter: drop-shadow(0 4px 4px rgba(23, 32, 38, 0.28));
  height: 46px;
  width: 38px;
}

.poi-marker-preview svg,
.poi-map-marker svg {
  display: block;
  height: 100%;
  overflow: visible;
  width: 100%;
}

.poi-marker-preview path,
.poi-map-marker path {
  fill: var(--poi-color, #24282a);
  stroke: #ffffff;
  stroke-width: 2;
}

.poi-marker-preview circle,
.poi-map-marker circle {
  fill: #ffffff;
  stroke: rgba(23, 32, 38, 0.16);
  stroke-width: 1;
}

.poi-marker-container {
  background: transparent;
  border: 0;
}

.poi-coordinates {
  color: var(--muted);
  font-size: 13px;
}

.sector-popup {
  display: grid;
  gap: 6px;
  min-width: 180px;
}

.sector-popup strong,
.sector-popup span {
  display: block;
}

.popup-detail-button {
  align-items: center;
  background: var(--accent);
  border: 0;
  border-radius: 6px;
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  font-size: 13px;
  font-weight: 700;
  justify-content: center;
  margin-top: 4px;
  min-height: 32px;
  padding: 0 12px;
}

.popup-detail-button:hover {
  background: var(--accent-strong);
}

.sector-popup-actions { display: grid; gap: 6px; grid-template-columns: 1fr 1fr; }
.sector-popup-actions .popup-detail-button { margin-top: 4px; padding: 0 9px; text-decoration: none; }
.sector-popup-actions button.popup-detail-button { background: #edf0f1; color: #202426; }
.sector-popup-actions button.popup-detail-button:hover { background: #dfe3e5; }
.leaflet-container .sector-popup-actions a.popup-detail-button,
.leaflet-container .sector-popup-actions a.popup-detail-button:hover { color: #fff; text-decoration: none; }
.popup-favorite-button {
  align-items: center;
  background: #fff9e5;
  border: 1px solid #e7d18a;
  border-radius: 6px;
  color: #75580a;
  display: inline-flex;
  grid-column: 2;
  justify-content: center;
  min-height: 30px;
  justify-self: end;
  padding: 0;
  width: 30px;
}

.popup-favorite-button.is-active,
.sector-detail-favorite.is-active { background: #ffeaa1; border-color: #c9a83a; }

.popup-favorite-button:disabled,
.sector-detail-favorite:disabled { cursor: wait; opacity: 0.58; }

.map-company-popup {
  display: grid;
  gap: 10px;
  padding: 2px;
}

.leaflet-container a.map-company-popup-action,
.leaflet-container a.map-company-popup-action:hover,
.leaflet-container a.map-company-popup-action:focus-visible {
  color: #ffffff;
  text-decoration: none;
}

.map-company-popup-heading {
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 8px;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 9px;
}

.map-company-popup-heading strong {
  font-size: 15px;
  word-break: break-word;
}

.map-company-popup-delete-action {
  align-items: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  color: #89959b;
  cursor: pointer;
  display: inline-flex;
  height: 24px;
  justify-content: center;
  line-height: 1;
  padding: 0;
  width: 24px;
}

.map-company-popup-delete-action:hover {
  background: #fff5f5;
  border-color: #f5c2c2;
  color: #9b2c2c;
}

.map-company-popup-delete-action svg {
  fill: none;
  height: 13px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 13px;
}

.map-company-popup-heading span,
.map-company-popup-caption,
.map-company-popup-loading {
  color: var(--muted);
  font-size: 12px;
}

.map-company-popup-loading {
  align-items: center;
  display: flex;
  gap: 8px;
  min-height: 42px;
}

.map-company-preview-list {
  display: grid;
  gap: 0;
  list-style: none;
  margin: 0;
  max-height: 310px;
  overflow-y: auto;
  padding: 0;
}

.map-company-preview-list li {
  align-items: start;
  border-bottom: 1px solid #edf0f1;
  display: grid;
  gap: 8px;
  grid-template-columns: 22px minmax(0, 1fr);
  padding: 8px 0;
}

.map-company-preview-list li > span {
  align-items: center;
  background: #eef1f2;
  border-radius: 50%;
  color: #596267;
  display: inline-flex;
  font-size: 11px;
  font-weight: 700;
  height: 22px;
  justify-content: center;
  width: 22px;
}

.map-company-preview-list li > div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.map-company-preview-list strong,
.map-company-preview-list small {
  overflow-wrap: anywhere;
}

.map-company-preview-list strong {
  font-size: 12px;
  line-height: 1.35;
}

.map-company-popup-name {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.leaflet-container .map-company-popup-name a {
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
}

.leaflet-container .map-company-popup-name a:hover {
  color: #000000;
  text-decoration: none;
}

.company-type-badge {
  background: #eef0f1;
  border: 1px solid #d9dddf;
  border-radius: 4px;
  color: #3f474b;
  display: inline-flex;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  padding: 4px 6px;
  white-space: nowrap;
}

.map-company-preview-list small,
.table-secondary-line {
  color: var(--muted);
  display: block;
  font-size: 11px;
  line-height: 1.35;
}

.map-companies-header > div > p:last-child {
  color: var(--muted);
  margin: 7px 0 0;
}

.sector-detail-body {
  background: #f4f6f7;
  display: grid;
  gap: 14px;
  padding: 18px;
}

.sector-detail-metrics {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.sector-detail-metrics article {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 6px;
  border-top: 3px solid #3f6f8f;
  min-height: 88px;
  padding: 13px 14px;
}

.sector-detail-metrics article:nth-child(2) { border-top-color: #3f7d6d; }
.sector-detail-metrics article:nth-child(3) { border-top-color: #a6577e; }
.sector-detail-metrics article:nth-child(4) { border-top-color: #d99a3e; }

.sector-detail-metrics span,
.sector-detail-list dt,
.sector-detail-muted {
  color: var(--muted);
  font-size: 12px;
}

.sector-detail-metrics strong {
  color: var(--text);
  display: block;
  font-size: 21px;
  margin-top: 8px;
}

.sector-detail-section {
  display: grid;
  gap: 10px;
}

.sector-detail-section h2 {
  font-size: 16px;
  margin: 0;
}

.sector-detail-loading {
  align-items: center;
  background: #f4f7f8;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  display: flex;
  font-size: 13px;
  font-weight: 700;
  gap: 8px;
  padding: 12px;
}

.sector-detail-skeleton {
  display: grid;
  gap: 14px;
}

.sector-detail-skeleton-hero {
  align-items: center;
  background: #172026;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  min-height: 112px;
  padding: 20px;
}

.sector-detail-skeleton-hero > div {
  display: grid;
  gap: 10px;
  width: min(360px, 70%);
}

.sector-detail-skeleton-metrics,
.sector-detail-skeleton-grid {
  display: grid;
  gap: 10px;
}

.sector-detail-skeleton-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.sector-detail-skeleton-metrics > div,
.sector-detail-skeleton-grid > section,
.sector-detail-skeleton-wide {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 7px;
  display: grid;
  gap: 11px;
  padding: 16px;
}

.sector-detail-skeleton-metrics > div {
  min-height: 88px;
}

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

.sector-detail-shimmer {
  animation: sector-detail-shimmer 1.25s ease-in-out infinite;
  background: linear-gradient(90deg, #e7ebec 20%, #f7f9f9 45%, #e7ebec 70%);
  background-size: 240% 100%;
  border-radius: 4px;
  display: block;
  height: 11px;
  width: 100%;
}

.sector-detail-skeleton-hero .sector-detail-shimmer {
  background: linear-gradient(90deg, #354147 20%, #4a575c 45%, #354147 70%);
  background-size: 240% 100%;
}

.sector-detail-shimmer.is-short { width: 34%; }
.sector-detail-shimmer.is-medium { width: 68%; }
.sector-detail-shimmer.is-title { height: 24px; width: 82%; }
.sector-detail-shimmer.is-heading { height: 18px; width: 54%; }
.sector-detail-shimmer.is-value { height: 27px; width: 62%; }
.sector-detail-shimmer.is-action { height: 34px; width: 112px; }
.sector-detail-shimmer.is-chart { height: 112px; }

@keyframes sector-detail-shimmer {
  from { background-position: 100% 0; }
  to { background-position: -100% 0; }
}

@media (prefers-reduced-motion: reduce) {
  .sector-detail-shimmer {
    animation: none;
  }
}

.sector-detail-hero {
  align-items: center;
  background: #172026;
  border-radius: 8px;
  color: #ffffff;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding: 17px 18px;
}

.sector-detail-identity { min-width: 0; }

.sector-detail-identity small {
  color: rgba(255, 255, 255, 0.72);
  display: block;
  font-size: 11px;
  margin-top: 5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sector-detail-identity .sector-detail-neighborhood {
  color: #dce9e5;
  font-size: 12px;
  margin-top: 5px;
  text-transform: none;
}

.sector-detail-identity .sector-detail-neighborhood b {
  color: #ffffff;
  font-weight: 800;
}

.sector-detail-hero > div:last-child {
  align-items: center;
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}

.sector-detail-favorite {
  align-items: center;
  background: #fff8dc;
  border: 1px solid #e7d18a;
  border-radius: 6px;
  color: #6d5309;
  display: inline-flex;
  justify-content: center;
  min-height: 32px;
  padding: 0;
  width: 32px;
}

.sector-detail-favorite-standalone { justify-self: start; }

.sector-detail-hero span {
  color: rgba(255, 255, 255, 0.68);
  display: block;
  font-size: 11px;
  font-weight: 800;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.sector-detail-hero strong {
  display: block;
  font-size: 18px;
}

.sector-detail-hero a {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 6px;
  color: #ffffff;
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 800;
  padding: 8px 10px;
  text-decoration: none;
}

.sector-detail-ai-action {
  align-items: center;
  background: #ffffff;
  border: 1px solid #ffffff;
  border-radius: 6px;
  color: #172026;
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  gap: 7px;
  min-height: 34px;
  padding: 0 10px;
}

.sector-detail-ai-action:hover,
.sector-detail-ai-action:focus-visible { background: #dce9e5; border-color: #dce9e5; outline: none; }
.sector-detail-ai-action svg { fill: none; flex: 0 0 16px; height: 16px; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; width: 16px; }
.sector-detail-ai-action span { color: inherit; font-size: inherit; margin: 0; text-transform: none; }

.sector-detail-metrics-rich {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.sector-detail-panel {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
}

.sector-detail-section-heading {
  align-items: end;
  border-bottom: 1px solid #e7ebed;
  display: flex;
  justify-content: space-between;
  padding-bottom: 10px;
}

.sector-detail-section-heading span {
  color: #66757b;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.sector-detail-section-heading h2 { font-size: 16px; }

.sector-detail-reference {
  background: #e9edef;
  border-radius: 8px;
  padding: 13px 15px 15px;
}

.sector-detail-reference-title {
  color: #66757b;
  display: block;
  font-size: 9px;
  font-weight: 800;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.sector-detail-reference dl {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 1.2fr;
  margin: 0;
}

.sector-detail-reference dl > div {
  border-left: 1px solid #d3dade;
  min-width: 0;
  padding: 0 14px;
}

.sector-detail-reference dl > div:first-child {
  border-left: 0;
  padding-left: 0;
}

.sector-detail-reference dt {
  color: #718087;
  font-size: 9px;
  font-weight: 800;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.sector-detail-reference dd {
  color: #2d383d;
  font-size: 12px;
  font-weight: 750;
  margin: 0;
  overflow-wrap: anywhere;
}

.sector-detail-reference .is-code dd,
.sector-detail-reference .is-coordinate dd {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
}

.sector-detail-signals {
  background: #172026;
  border-radius: 8px;
  color: #ffffff;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
}

.sector-detail-signals article {
  border-right: 1px solid rgba(255, 255, 255, 0.13);
  min-width: 0;
  padding: 13px 15px;
}

.sector-detail-signals article:last-child { border-right: 0; }

.sector-detail-signals span,
.sector-detail-signals small {
  color: rgba(255, 255, 255, 0.66);
  display: block;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.sector-detail-signals strong {
  display: block;
  font-size: 21px;
  margin: 4px 0 2px;
}

.sector-detail-signals .is-positive strong { color: #72d6b0; }
.sector-detail-signals .is-negative strong { color: #ff9b9b; }
.sector-detail-signals .is-neutral strong { color: #ffffff; }

.sector-detail-dashboard-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
}

.sector-detail-mini-metrics,
.sector-detail-lifecycle {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sector-detail-mini-metrics article,
.sector-detail-lifecycle div {
  border-left: 1px solid #e5eaec;
  min-width: 0;
  padding: 4px 10px;
}

.sector-detail-mini-metrics article:first-child,
.sector-detail-lifecycle div:first-child { border-left: 0; padding-left: 0; }

.sector-detail-mini-metrics span,
.sector-detail-lifecycle span {
  color: var(--muted);
  display: block;
  font-size: 10px;
  font-weight: 800;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.sector-detail-mini-metrics strong,
.sector-detail-lifecycle strong {
  color: var(--text);
  display: block;
  font-size: 17px;
  overflow-wrap: anywhere;
}

.sector-detail-demographic {
  align-items: center;
  display: grid;
  gap: 16px;
  grid-template-columns: 116px minmax(0, 1fr);
  min-height: 136px;
}

.sector-detail-donut {
  align-items: center;
  background: conic-gradient(#3f6f8f 0 var(--men-ratio), #b85e7d var(--men-ratio) 100%);
  border-radius: 50%;
  display: flex;
  height: 112px;
  justify-content: center;
  position: relative;
  width: 112px;
}

.sector-detail-donut::after {
  background: #ffffff;
  border-radius: 50%;
  content: "";
  height: 70px;
  position: absolute;
  width: 70px;
}

.sector-detail-donut > div {
  position: relative;
  text-align: center;
  z-index: 1;
}

.sector-detail-donut strong { display: block; font-size: 18px; }
.sector-detail-donut span { color: var(--muted); font-size: 9px; text-transform: uppercase; }

.sector-detail-demographic-legend,
.sector-detail-chart-legend {
  display: flex;
  gap: 10px;
}

.sector-detail-demographic-legend { flex-direction: column; }

.sector-detail-demographic-legend span,
.sector-detail-chart-legend span {
  align-items: center;
  color: var(--muted);
  display: inline-flex;
  font-size: 12px;
  gap: 6px;
}

.sector-detail-demographic-legend span > i,
.sector-detail-demographic-legend span > b,
.sector-detail-chart-legend i,
.sector-detail-chart-legend b {
  border-radius: 999px;
  display: inline-block;
  height: 8px;
  width: 8px;
}

.sector-detail-demographic-legend span > i,
.sector-detail-chart-legend i {
  background: #3f6f8f;
}

.sector-detail-demographic-legend span > b,
.sector-detail-chart-legend b {
  background: #b85e7d;
}

.sector-detail-demographic-legend strong {
  color: var(--text);
}

.sector-detail-housing {
  border-top: 1px solid #e7ebed;
  margin-top: 14px;
  padding-top: 13px;
}

.sector-detail-housing h3 {
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
  margin: 0 0 9px;
}

.sector-detail-housing-track {
  background: #edf1f2;
  border-radius: 999px;
  display: flex;
  height: 10px;
  overflow: hidden;
}

.sector-detail-housing-track i {
  display: block;
  height: 100%;
}

.sector-detail-housing-track .is-1,
.sector-detail-housing-legend .is-1 { background: #3f7d6d; }
.sector-detail-housing-track .is-2,
.sector-detail-housing-legend .is-2 { background: #526f94; }
.sector-detail-housing-track .is-3,
.sector-detail-housing-legend .is-3 { background: #d99a3e; }

.sector-detail-housing-legend {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}

.sector-detail-housing-legend > div,
.sector-detail-housing-legend span {
  align-items: center;
  display: flex;
}

.sector-detail-housing-legend > div {
  color: #536066;
  font-size: 11px;
  justify-content: space-between;
}

.sector-detail-housing-legend span { gap: 7px; }

.sector-detail-housing-legend span i {
  border-radius: 50%;
  height: 8px;
  width: 8px;
}

.sector-detail-housing-legend strong {
  color: var(--text);
  font-size: 11px;
}

.sector-detail-housing-legend small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  margin-left: 3px;
}

.sector-detail-business-balance {
  align-items: end;
  background: #eef6f3;
  border-left: 4px solid #3f7d6d;
  border-radius: 5px;
  display: flex;
  justify-content: space-between;
  padding: 10px 12px;
}

.sector-detail-business-balance.is-negative { background: #fff1f1; border-left-color: #b85050; }
.sector-detail-business-balance.is-neutral { background: #f3f5f6; border-left-color: #8b989e; }
.sector-detail-business-balance span { color: var(--muted); display: block; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.sector-detail-business-balance strong { color: #2e715d; display: block; font-size: 25px; line-height: 1; margin-top: 4px; }
.sector-detail-business-balance.is-negative strong { color: #a53f3f; }
.sector-detail-business-balance.is-neutral strong { color: #536066; }
.sector-detail-business-balance p { display: flex; gap: 12px; margin: 0; }
.sector-detail-business-balance p span { font-size: 9px; }

.sector-detail-timeline {
  align-items: end;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 5px;
  grid-template-columns: repeat(12, minmax(10px, 1fr));
  height: 112px;
  margin-top: 4px;
  overflow: hidden;
}

.sector-detail-timeline span {
  display: grid;
  grid-template-rows: minmax(0, 1fr) 15px;
  height: 100%;
}

.sector-detail-timeline em {
  align-items: end;
  display: flex;
  gap: 2px;
  justify-content: center;
  min-height: 0;
}

.sector-detail-timeline small {
  color: var(--muted);
  font-size: 8px;
  font-style: normal;
  text-align: center;
}

.sector-detail-timeline i,
.sector-detail-timeline b {
  display: block;
  min-height: 2px;
  width: 6px;
}

.sector-detail-timeline i {
  background: #2f80ed;
}

.sector-detail-timeline b {
  background: #c44569;
}

.sector-detail-chart-legend {
  justify-content: flex-end;
  margin-top: 7px;
}

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

.sector-detail-chart-block {
  border-top: 1px solid #e7ebed;
  margin-top: 16px;
  padding-top: 14px;
}

.sector-detail-chart-block h3 {
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
  margin: 0 0 12px;
}

.sector-detail-bars > div {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(96px, 1fr) minmax(90px, 1.2fr) 42px;
}

.sector-detail-bars span {
  color: var(--text);
  font-size: 12px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sector-detail-bars i {
  background: #edf1f2;
  border-radius: 999px;
  display: block;
  height: 8px;
  overflow: hidden;
}

.sector-detail-bars b {
  background: var(--accent);
  display: block;
  height: 100%;
  min-width: 2px;
}

.sector-detail-bars strong {
  font-size: 12px;
  text-align: right;
}

.sector-detail-segment-bars b {
  background: #172026;
}

.sector-detail-indicator-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sector-detail-indicator-card {
  background: #f8fafb;
  border: 1px solid #e2e7e9;
  border-radius: 8px;
  display: grid;
  gap: 9px;
  min-width: 0;
  padding: 12px;
}

.sector-detail-indicator-card header {
  min-width: 0;
}

.sector-detail-indicator-card header > div {
  align-items: center;
  display: flex;
  gap: 7px;
  justify-content: space-between;
  margin-bottom: 5px;
}

.sector-detail-indicator-card header span {
  color: var(--muted);
  display: block;
  font-size: 9px;
  font-weight: 800;
  margin-bottom: 0;
  text-transform: uppercase;
}

.sector-detail-indicator-card header b {
  background: #e8f2ee;
  border-radius: 999px;
  color: #356c5b;
  flex: 0 0 auto;
  font-size: 8px;
  padding: 3px 6px;
  text-transform: uppercase;
}

.sector-detail-indicator-card header b.is-lower_range { background: #edf1f7; color: #466381; }
.sector-detail-indicator-card header b.is-middle_range { background: #fff3d7; color: #80601c; }

.sector-detail-indicator-card header strong {
  color: var(--text);
  display: block;
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sector-detail-indicator-value {
  color: #172026;
  font-size: 18px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.sector-detail-indicator-scale {
  background: linear-gradient(90deg, #4f46e5, #12b4a6, #ffc857);
  border-radius: 999px;
  height: 8px;
  position: relative;
}

.sector-detail-indicator-scale i {
  background: #ffffff;
  border: 2px solid #172026;
  border-radius: 999px;
  box-shadow: 0 2px 7px rgba(23, 32, 38, 0.2);
  height: 14px;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 14px;
}

.sector-detail-indicator-card footer {
  display: flex;
  gap: 8px;
  justify-content: space-between;
}

.sector-detail-indicator-card footer span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sector-detail-indicator-position {
  color: #66757b;
  font-size: 9px;
  font-weight: 700;
}

@media (max-width: 575.98px) {
  .sector-detail-metrics,
  .sector-detail-metrics-rich,
  .sector-detail-signals,
  .sector-detail-dashboard-grid,
  .sector-detail-mini-metrics,
  .sector-detail-lifecycle,
  .sector-detail-indicator-grid,
  .sector-detail-skeleton-metrics,
  .sector-detail-skeleton-grid {
    grid-template-columns: 1fr;
  }

  .sector-detail-skeleton-hero {
    align-items: stretch;
    flex-direction: column;
  }

  .sector-detail-skeleton-hero > div {
    width: 100%;
  }

  .sector-detail-hero {
    align-items: stretch;
    flex-direction: column;
  }

  .sector-detail-hero a {
    text-align: center;
  }

  .sector-detail-hero > div:last-child { flex-wrap: wrap; }
  .sector-detail-ai-action { flex: 1 1 auto; justify-content: center; }

  .sector-detail-signals article { border-bottom: 1px solid rgba(255, 255, 255, 0.13); border-right: 0; }
  .sector-detail-signals article:last-child { border-bottom: 0; }

  .sector-detail-demographic { grid-template-columns: 100px minmax(0, 1fr); }
  .sector-detail-donut { height: 96px; width: 96px; }
  .sector-detail-donut::after { height: 60px; width: 60px; }

  .sector-detail-business-balance { align-items: start; flex-direction: column; gap: 9px; }

  .sector-detail-reference dl { grid-template-columns: 1fr; }
  .sector-detail-reference dl > div { border-left: 0; border-top: 1px solid #d3dade; padding: 10px 0; }
  .sector-detail-reference dl > div:first-child { border-top: 0; padding-top: 0; }
  .sector-detail-reference dl > div:last-child { padding-bottom: 0; }

  .sector-detail-bars > div {
    grid-template-columns: minmax(0, 1fr) 46px;
  }

  .sector-detail-bars i {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}

.point-report-link {
  gap: 8px;
  margin-top: 4px;
  width: 100%;
}

.point-report-link:hover {
  background: var(--accent-strong);
  color: #ffffff;
  text-decoration: none;
}

.poi-report-page {
  margin: 0 auto;
  max-width: 1280px;
}

.poi-report-header {
  align-items: end;
  display: flex;
  gap: 32px;
  justify-content: space-between;
  margin-bottom: 24px;
}

.poi-report-back {
  display: inline-flex;
  font-size: 13px;
  gap: 7px;
  margin-bottom: 24px;
}

.poi-report-description {
  color: var(--muted);
  line-height: 1.55;
  margin: 10px 0 0;
  max-width: 720px;
}

.poi-pdf-action {
  flex: 0 0 auto;
  gap: 8px;
}

.poi-report-actions {
  align-items: center;
  display: flex;
  flex: 0 0 auto;
  gap: 10px;
}

.poi-report-actions form {
  margin: 0;
}

.poi-delete-action {
  background: #fff1f0;
  color: #b42318;
  gap: 8px;
}

.poi-delete-action:hover {
  background: #fee4e2;
  color: #912018;
}

.poi-delete-action svg {
  fill: none;
  height: 18px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  width: 18px;
}

.poi-similarity-action {
  background: #edf5f2;
  border-color: #b7d7cd;
  color: #126352;
}

.similarity-page {
  margin: 0 auto;
  max-width: 1240px;
}

.similarity-header {
  align-items: end;
  margin-bottom: 24px;
}

.similarity-header > div > p:last-child {
  color: var(--muted);
  margin: 8px 0 0;
  max-width: 650px;
}

.similarity-reference {
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 28px;
}

.similarity-reference > div {
  min-width: 0;
  padding: 17px 20px;
}

.similarity-reference > div + div { border-left: 1px solid var(--line); }
.similarity-reference span, .similarity-reference small { color: var(--muted); display: block; font-size: 11px; }
.similarity-reference span { font-size: 10px; font-weight: 800; text-transform: uppercase; }
.similarity-reference strong { display: block; font-size: 17px; margin: 8px 0 4px; overflow-wrap: anywhere; }

.similarity-profile,
.similarity-results {
  border-bottom: 1px solid var(--line);
  padding: 0 0 28px;
}

.similarity-profile { margin-bottom: 30px; }
.similarity-profile > header, .similarity-results > header { align-items: end; display: flex; gap: 28px; justify-content: space-between; margin-bottom: 16px; }
.similarity-profile h2, .similarity-results h2 { font-size: 24px; margin: 4px 0 0; }
.similarity-profile > header > p, .similarity-results > header > p { color: var(--muted); font-size: 12px; line-height: 1.5; margin: 0; max-width: 430px; }
.similarity-profile > div { border: 1px solid var(--line); display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.similarity-profile article { min-width: 0; padding: 15px; }
.similarity-profile article + article { border-left: 1px solid var(--line); }
.similarity-profile span, .similarity-profile small { color: var(--muted); display: block; font-size: 10px; }
.similarity-profile span { font-weight: 800; min-height: 26px; text-transform: uppercase; }
.similarity-profile strong { display: block; font-size: 17px; margin: 8px 0 5px; overflow-wrap: anywhere; }

.similarity-results-list { border-top: 1px solid var(--line); }
.similarity-results-list > article { align-items: center; border-bottom: 1px solid var(--line); display: grid; gap: 18px; grid-template-columns: 34px minmax(150px, 0.9fr) 110px minmax(240px, 1.4fr) 34px; padding: 16px 4px; }
.similarity-rank { align-items: center; background: #202a2e; color: #fff; display: inline-flex; font-size: 12px; font-weight: 800; height: 28px; justify-content: center; width: 28px; }
.similarity-city strong, .similarity-evidence strong { display: block; font-size: 14px; }
.similarity-city small, .similarity-evidence span, .similarity-evidence small, .similarity-score span, .similarity-score small { color: var(--muted); display: block; font-size: 10px; }
.similarity-city small { margin-top: 4px; }
.similarity-score { border-left: 1px solid var(--line); padding-left: 16px; }
.similarity-score > strong { color: #176e5c; display: block; font-size: 24px; line-height: 1; margin-top: 6px; }
.similarity-score > strong small { display: inline; margin-left: 2px; }
.similarity-evidence strong { margin: 5px 0 4px; }
.similarity-open { align-items: center; border: 1px solid #b7d7cd; color: #126352; display: inline-flex; font-size: 20px; height: 32px; justify-content: center; width: 32px; }
.similarity-open:hover { background: #126352; color: #fff; text-decoration: none; }
.similarity-details { grid-column: 2 / -1; }
.similarity-details summary { color: #176e5c; cursor: pointer; font-size: 11px; font-weight: 800; }
.similarity-details > div { display: grid; gap: 8px; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 10px; }
.similarity-details p { border-left: 2px solid #dce7e2; display: flex; font-size: 11px; justify-content: space-between; margin: 0; padding-left: 8px; }
.similarity-details p span { color: var(--muted); }
.similarity-sector-suggestions { border-top: 1px dashed #cfd9d5; grid-column: 2 / -1; padding-top: 12px; }
.similarity-sector-suggestions > span { color: #4d5a5e; display: block; font-size: 10px; font-weight: 800; margin-bottom: 8px; text-transform: uppercase; }
.similarity-sector-suggestions > div { display: grid; gap: 8px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.similarity-sector-suggestions a { background: #f6f9f8; border-left: 3px solid #2b8069; color: #1c282b; display: grid; gap: 2px; min-width: 0; padding: 9px 10px; }
.similarity-sector-suggestions a:hover { background: #eaf3ef; text-decoration: none; }
.similarity-sector-suggestions a > strong { color: #176e5c; font-size: 17px; line-height: 1; }
.similarity-sector-suggestions a > strong small { color: #68767a; font-size: 9px; }
.similarity-sector-suggestions a > span { font-size: 11px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.similarity-sector-suggestions a > small { color: var(--muted); font-size: 9px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 900px) {
  .similarity-profile > div { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .similarity-profile article:nth-child(4) { border-left: 0; }
  .similarity-profile article:nth-child(n + 4) { border-top: 1px solid var(--line); }
}

@media (max-width: 767.98px) {
  .similarity-header, .similarity-profile > header, .similarity-results > header { align-items: stretch; flex-direction: column; }
  .similarity-reference { grid-template-columns: 1fr; }
  .similarity-reference > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .similarity-profile > div { grid-template-columns: 1fr; }
  .similarity-profile article + article, .similarity-profile article:nth-child(4) { border-left: 0; border-top: 1px solid var(--line); }
  .similarity-results-list > article { align-items: start; grid-template-columns: 30px minmax(0, 1fr) 32px; }
  .similarity-score, .similarity-evidence { border-left: 0; grid-column: 2; padding-left: 0; }
  .similarity-open { grid-column: 3; grid-row: 1; }
  .similarity-details { grid-column: 2 / -1; }
  .similarity-details > div { grid-template-columns: 1fr; }
  .similarity-sector-suggestions { grid-column: 2 / -1; }
  .similarity-sector-suggestions > div { grid-template-columns: 1fr 1fr; }
}

.poi-pdf-action:hover {
  background: var(--accent-strong);
  color: #ffffff;
  text-decoration: none;
}

.poi-pdf-action svg {
  fill: none;
  height: 18px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 18px;
}

.poi-report-context {
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 24px;
}

.poi-report-context div {
  border-right: 1px solid var(--line);
  min-width: 0;
  padding: 16px 18px;
}

.poi-report-context div:first-child {
  padding-left: 0;
}

.poi-report-context div:last-child {
  border-right: 0;
}

.poi-report-context span,
.poi-report-kpis span,
.poi-lifecycle-grid span {
  color: var(--muted);
  display: block;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 7px;
  text-transform: uppercase;
}

.poi-report-context strong {
  display: block;
  font-size: 14px;
  overflow-wrap: anywhere;
}

.poi-view-mode-bar {
  align-items: center;
  background: #f5f7f7;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: flex;
  justify-content: space-between;
  margin: -8px 0 24px;
  padding: 10px 12px 10px 14px;
}

.poi-view-mode-bar > div:first-child { display: grid; gap: 2px; }
.poi-view-mode-bar > div:first-child span { color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.poi-view-mode-bar > div:first-child strong { font-size: 13px; }

.poi-view-mode-controls {
  background: #e7ebeb;
  border-radius: 6px;
  display: flex;
  padding: 3px;
}

.poi-view-mode-controls button {
  background: transparent;
  border: 0;
  border-radius: 4px;
  color: #526166;
  font-size: 12px;
  font-weight: 800;
  min-height: 31px;
  padding: 0 11px;
}

.poi-view-mode-controls button.is-active { background: #ffffff; box-shadow: 0 1px 2px rgba(22, 37, 42, .13); color: #163c36; }
.poi-full-report[hidden] { display: none; }

@media (max-width: 560px) {
  .poi-view-mode-bar { align-items: stretch; flex-direction: column; gap: 10px; }
  .poi-view-mode-controls { width: 100%; }
  .poi-view-mode-controls button { flex: 1; }
}

.poi-report-kpis {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 34px;
}

.poi-report-kpis article {
  background: #ffffff;
  border-left: 5px solid var(--accent);
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(23, 32, 38, 0.06);
  min-height: 138px;
  padding: 20px;
}

.poi-report-kpis article.poi-kpi-danger {
  border-left-color: #c44569;
}

.poi-report-kpis article.poi-kpi-blue {
  border-left-color: #2f80ed;
}

.poi-report-kpis article.poi-kpi-warning {
  border-left-color: #d08c2d;
}

.poi-report-kpis strong {
  display: block;
  font-size: 30px;
  line-height: 1;
  margin: 14px 0 8px;
}

.poi-report-kpis small {
  color: var(--muted);
  font-size: 12px;
}

.poi-report-grid {
  align-items: start;
  display: grid;
  gap: 42px;
  grid-template-columns: minmax(0, 1fr) 320px;
}

.poi-report-content,
.poi-report-aside {
  display: grid;
  gap: 38px;
}

.poi-report-section {
  min-width: 0;
}

.poi-section-heading {
  border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
  padding-bottom: 12px;
}

.poi-section-heading .eyebrow,
.poi-report-aside .eyebrow {
  margin-bottom: 5px;
}

.poi-section-heading h2,
.poi-report-aside h2 {
  font-size: 20px;
}

.poi-section-heading-actions {
  align-items: end;
  display: flex;
  gap: 18px;
  justify-content: space-between;
}

.poi-competition-section {
  border-top: 4px solid #202426;
  padding-top: 18px;
}

.poi-competition-context {
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 14px;
}

.poi-competition-context div {
  border-right: 1px solid var(--line);
  padding: 13px 15px;
}

.poi-competition-context div:last-child {
  border-right: 0;
}

.poi-competition-context span,
.poi-competition-kpis span,
.poi-competition-insights span {
  color: var(--muted);
  display: block;
  font-size: 10px;
  font-weight: 700;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.poi-competition-context strong {
  display: block;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.poi-competition-kpis {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.poi-competition-kpis article {
  background: #f7f8f8;
  border-bottom: 3px solid #202426;
  min-height: 112px;
  padding: 14px;
}

.poi-competition-kpis article:nth-child(3) {
  border-bottom-color: #2f80ed;
}

.poi-competition-kpis article:nth-child(4) {
  border-bottom-color: #c44569;
}

.poi-competition-kpis strong {
  display: block;
  font-size: 24px;
  margin: 12px 0 4px;
}

.poi-competition-kpis small {
  color: var(--muted);
  font-size: 11px;
}

.poi-competition-insights {
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 22px;
}

.poi-competition-insights div {
  border-right: 1px solid var(--line);
  padding: 16px 12px;
}

.poi-competition-insights div:last-child {
  border-right: 0;
}

.poi-competition-insights strong {
  font-size: 14px;
}

.poi-competition-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 24px;
}

.poi-competition-grid h3,
.poi-subsection-heading h3,
.poi-competition-empty h3 {
  font-size: 15px;
  margin: 0 0 14px;
}

.poi-competition-bars {
  display: grid;
  gap: 11px;
}

.poi-competition-bars > div {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: 100px minmax(0, 1fr) 34px;
}

.poi-competition-bars span,
.poi-competition-bars strong {
  font-size: 11px;
}

.poi-competition-bars i {
  background: #e7eaeb;
  display: block;
  height: 7px;
}

.poi-competition-bars b {
  background: #202426;
  display: block;
  height: 100%;
  min-width: 2px;
}

.poi-competition-bars strong {
  text-align: right;
}

.poi-competition-evolution {
  align-items: end;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 4px;
  grid-template-columns: repeat(12, minmax(12px, 1fr));
  height: 132px;
  overflow: hidden;
}

.poi-competition-evolution > div {
  display: grid;
  gap: 4px;
  grid-template-rows: 108px 16px;
  min-width: 0;
}

.poi-competition-evolution > div > span {
  align-items: end;
  display: flex;
  gap: 2px;
  justify-content: center;
}

.poi-competition-evolution i {
  display: block;
  min-height: 1px;
  width: 6px;
}

.poi-competition-evolution i.opened {
  background: #2f80ed;
}

.poi-competition-evolution i.closed {
  background: #c44569;
}

.poi-competition-evolution small {
  color: var(--muted);
  font-size: 8px;
  overflow: hidden;
  text-align: center;
}

.poi-competition-legend {
  display: flex;
  gap: 14px;
  justify-content: flex-end;
  margin-top: 8px;
}

.poi-competition-legend span {
  color: var(--muted);
  font-size: 10px;
}

.poi-competition-legend span::before {
  content: "";
  display: inline-block;
  height: 7px;
  margin-right: 5px;
  width: 7px;
}

.poi-competition-legend .opened::before {
  background: #2f80ed;
}

.poi-competition-legend .closed::before {
  background: #c44569;
}

.poi-competitor-list {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.poi-competitor-list table {
  min-width: 820px;
}

.poi-subsection-heading {
  align-items: baseline;
  display: flex;
  justify-content: space-between;
}

.poi-subsection-heading span {
  color: var(--muted);
  font-size: 11px;
}

.poi-competition-empty {
  background: #f5f6f6;
  border: 1px solid var(--line);
  padding: 24px;
}

.poi-competition-empty p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  margin: 0 0 18px;
  max-width: 560px;
}

.poi-processing-studies {
  border-left: 3px solid #d5a021;
}

.poi-processing-study {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #edf0ef;
}

.poi-processing-study .spinner-border {
  color: #a87200;
  flex: 0 0 auto;
}

.poi-processing-study div {
  display: grid;
  gap: 2px;
}

.poi-processing-study small,
.poi-processing-note {
  color: #68737a;
}

.poi-processing-note {
  display: block;
  margin-top: 10px;
}

/* Point report reading hierarchy */
.poi-report-nav {
  position: sticky;
  top: 70px;
  z-index: 20;
}

.poi-report-nav a {
  align-items: center;
  display: inline-flex;
  gap: 7px;
}

.poi-report-nav a > span {
  color: #8b969a;
  font-size: 9px;
}

.poi-overview-grid {
  grid-template-columns: minmax(360px, 0.85fr) minmax(500px, 1.15fr);
}

.poi-decision-panel {
  display: block;
}

.poi-decision-lead {
  align-items: center;
  display: grid;
  gap: 18px;
  grid-template-columns: 96px minmax(0, 1fr);
  padding: 20px;
}

.poi-decision-score {
  align-items: baseline;
  aspect-ratio: 1;
  border: 7px solid #d6a62d;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  padding-top: 28px;
}

.poi-decision-score.is-promising {
  border-color: #4bb68e;
}

.poi-decision-score.is-unfavorable {
  border-color: #d76560;
}

.poi-decision-score strong {
  font-size: 31px;
  line-height: 1;
}

.poi-decision-score span {
  color: #aeb9bd;
  font-size: 10px;
}

.poi-decision-lead h3 {
  color: #ffffff;
  font-size: 19px;
  margin: 7px 0 5px;
}

.poi-decision-lead p,
.poi-decision-empty p {
  color: #bdc7ca;
  font-size: 12px;
  line-height: 1.5;
  margin: 0;
}

.poi-decision-empty {
  padding: 24px 20px;
}

.poi-decision-empty h3 {
  color: #ffffff;
  font-size: 18px;
}

.poi-decision-signals {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.poi-decision-signals span,
.poi-decision-signals small {
  font-size: 10px;
}

.poi-decision-signals span {
  min-height: auto;
}

.poi-decision-signals strong {
  font-size: 22px;
}

.poi-decision-signals .is-muted strong {
  color: #97a3a7;
}

.poi-decision-footer {
  align-items: center;
  display: flex;
  font-size: 11px;
  justify-content: space-between;
  padding: 13px 20px;
}

.poi-decision-footer > span {
  color: #aeb9bd;
}

.poi-decision-footer > span strong {
  color: #ffffff;
}

.poi-decision-footer a {
  color: #9bd4c5;
  font-weight: 800;
  text-decoration: none;
}

.poi-section-index {
  align-items: center;
  color: #647177;
  display: flex;
  font-size: 11px;
  font-weight: 800;
  gap: 7px;
  text-transform: uppercase;
}

.poi-section-index span {
  color: #1f6f63;
}

.poi-chapter-heading {
  align-items: center;
  border-bottom: 2px solid #202a2e;
  display: flex;
  gap: 14px;
  margin: 10px 0 -12px;
  padding-bottom: 12px;
}

.poi-chapter-heading > span {
  align-items: center;
  background: #202a2e;
  border-radius: 50%;
  color: #ffffff;
  display: flex;
  flex: 0 0 38px;
  font-size: 11px;
  font-weight: 800;
  height: 38px;
  justify-content: center;
}

.poi-chapter-heading p {
  color: #68757a;
  font-size: 9px;
  font-weight: 800;
  margin: 0 0 2px;
  text-transform: uppercase;
}

.poi-chapter-heading h2 {
  font-size: 21px;
  margin: 0;
}

.poi-report-content {
  gap: 34px;
}

.poi-report-content .poi-section-heading h2 {
  font-size: 18px;
}

.poi-support-details details {
  border: 1px solid var(--line);
  border-radius: 7px;
  overflow: hidden;
}

.poi-support-details summary {
  cursor: pointer;
  display: grid;
  gap: 3px;
  list-style: none;
  padding: 15px 16px;
}

.poi-support-details summary::-webkit-details-marker {
  display: none;
}

.poi-support-details summary span {
  font-size: 13px;
  font-weight: 800;
}

.poi-support-details summary small {
  color: var(--muted);
  font-size: 11px;
}

.poi-support-details details > p,
.poi-support-details details > dl {
  margin-left: 16px;
  margin-right: 16px;
}

.poi-support-details details[open] summary {
  background: #f4f7f6;
  border-bottom: 1px solid var(--line);
  margin-bottom: 12px;
}

.poi-support-details .poi-method-note {
  border-top: 1px solid var(--line) !important;
  padding-top: 12px;
}

@media (max-width: 991.98px) {
  .poi-report-nav {
    top: 62px;
  }

  .poi-overview-grid {
    grid-template-columns: 1fr;
  }

  .poi-overview-map {
    height: 330px;
  }
}

@media (max-width: 575.98px) {
  .poi-decision-lead {
    align-items: start;
    grid-template-columns: 76px minmax(0, 1fr);
    padding: 16px;
  }

  .poi-decision-score {
    border-width: 5px;
    padding-top: 22px;
  }

  .poi-decision-score strong {
    font-size: 25px;
  }

  .poi-decision-signals {
    grid-template-columns: 1fr;
  }

  .poi-decision-signals article {
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    border-right: 0;
  }

  .poi-decision-signals article:last-child {
    border-bottom: 0;
  }

  .poi-decision-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
}

.poi-rais-section {
  border-top: 4px solid #136f63;
  padding-top: 18px;
}

.poi-rais-kpis {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 20px;
}

.poi-rais-kpis article {
  background: #f6faf8;
  border: 1px solid #d7e8e2;
  min-height: 112px;
  padding: 14px;
}

.poi-rais-kpis span,
.poi-rais-row span {
  color: var(--muted);
  display: block;
  font-size: 10px;
  font-weight: 700;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.poi-rais-kpis strong {
  display: block;
  font-size: 24px;
  margin: 12px 0 4px;
}

.poi-rais-kpis small,
.poi-rais-note {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.poi-rais-bars {
  border: 1px solid var(--line);
}

.poi-rais-row {
  align-items: center;
  background: #ffffff;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1.6fr) minmax(120px, 0.8fr) 84px;
  padding: 12px 14px;
}

.poi-rais-row:first-child {
  border-top: 0;
}

.poi-rais-row strong {
  display: block;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.poi-rais-row i {
  background: #e6eeee;
  display: block;
  height: 9px;
}

.poi-rais-row b {
  background: #136f63;
  display: block;
  height: 100%;
  min-width: 2px;
}

.poi-rais-row em {
  font-size: 13px;
  font-style: normal;
  font-weight: 800;
  text-align: right;
}

.poi-rais-note {
  margin: 12px 0 0;
}

.poi-lifecycle-grid {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  background: var(--line);
  border: 1px solid var(--line);
}

.poi-lifecycle-grid div {
  background: #ffffff;
  min-height: 105px;
  padding: 18px;
}

.poi-lifecycle-grid strong {
  display: block;
  font-size: 24px;
}

.poi-segment-chart {
  display: grid;
  gap: 18px;
}

.poi-segment-row > div:first-child {
  align-items: baseline;
  display: flex;
  font-size: 13px;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 7px;
}

.poi-segment-row span {
  overflow-wrap: anywhere;
}

.poi-segment-track {
  background: #e8eeee;
  height: 8px;
}

.poi-segment-track i {
  background: var(--accent);
  display: block;
  height: 100%;
  min-width: 2px;
}

.poi-indicator-table {
  border: 1px solid var(--line);
}

.poi-indicator-header,
.poi-indicator-row {
  align-items: center;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1.6fr) minmax(100px, 0.6fr) minmax(140px, 0.8fr);
  padding: 12px 14px;
}

.poi-indicator-header {
  background: #eef3f3;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.poi-indicator-row {
  background: #ffffff;
  border-top: 1px solid var(--line);
  font-size: 13px;
}

.poi-report-aside {
  position: sticky;
  top: 92px;
}

.poi-report-aside section {
  border-top: 3px solid var(--accent);
  padding-top: 16px;
}

.poi-report-aside p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.poi-report-aside p strong {
  color: var(--text);
}

.poi-report-aside dl {
  margin: 14px 0 0;
}

.poi-report-aside dl div {
  align-items: baseline;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 10px 0;
}

.poi-report-aside dt {
  color: var(--muted);
  font-size: 12px;
}

.poi-report-aside dd {
  font-size: 13px;
  font-weight: 700;
  margin: 0;
}

.poi-analysis-history {
  display: grid;
  margin-top: 12px;
}

.poi-analysis-history a {
  border-bottom: 1px solid var(--line);
  color: var(--text);
  display: grid;
  gap: 3px;
  padding: 10px 8px;
}

.poi-analysis-history a.active,
.poi-analysis-history a:hover {
  background: #eef3f3;
  text-decoration: none;
}

.poi-analysis-history span {
  font-size: 12px;
  font-weight: 700;
}

.poi-analysis-history small {
  color: var(--muted);
  font-size: 11px;
}

.poi-analysis-modal .modal-header {
  align-items: start;
}

.poi-analysis-modal .modal-body {
  display: grid;
  gap: 16px;
}

.poi-analysis-modal .ts-wrapper {
  width: 100%;
}

.analysis-loading-modal .modal-dialog {
  max-width: 300px;
}

.analysis-loading-modal .modal-content {
  align-items: center;
  border: 0;
  display: flex;
  gap: 14px;
  justify-content: center;
  min-height: 150px;
}

.poi-method-note {
  border-top-color: #d08c2d !important;
}

.poi-empty-copy {
  color: var(--muted);
  font-size: 13px;
}

.poi-report-page {
  max-width: 1480px;
}

.poi-city-analysis-link {
  align-items: center;
  color: #1f6f63;
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  gap: 7px;
  margin-top: 9px;
  text-decoration: none;
}

.poi-city-analysis-link:hover {
  color: #164f47;
}

.poi-report-nav {
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 7px;
  display: flex;
  gap: 4px;
  margin: -8px 0 20px;
  overflow-x: auto;
  padding: 5px;
  scrollbar-width: thin;
}

.poi-report-nav a {
  border-radius: 5px;
  color: #536066;
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 800;
  padding: 9px 11px;
  text-decoration: none;
}

.poi-report-nav a:hover {
  background: #edf5f2;
  color: #1f6f63;
}

.poi-overview-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1.15fr) minmax(390px, 0.85fr);
  margin-bottom: 18px;
  scroll-margin-top: 88px;
}

.poi-overview-map {
  background: #eef2f1;
  border: 1px solid var(--line);
  border-radius: 7px;
  height: 380px;
  min-width: 0;
  overflow: hidden;
  position: relative;
}

.poi-overview-map-status {
  align-items: center;
  color: #647077;
  display: flex;
  font-size: 12px;
  font-weight: 700;
  gap: 9px;
  inset: 0;
  justify-content: center;
  position: absolute;
  z-index: 2;
}

.poi-overview-map-status span {
  animation: map-loading-pulse 1s ease-in-out infinite alternate;
  background: #1f6f63;
  border-radius: 50%;
  height: 8px;
  width: 8px;
}

.poi-overview-map.has-map-error .poi-overview-map-status {
  background: #f7f9fa;
  color: #8b3a34;
  padding: 24px;
  text-align: center;
}

.poi-decision-panel {
  background: #202a2e;
  border-radius: 7px;
  color: #ffffff;
  display: grid;
  min-width: 0;
  overflow: hidden;
}

.poi-decision-panel > header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding: 18px 20px 15px;
}

.poi-decision-panel > header span {
  color: #a9c9c2;
  display: block;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.poi-decision-panel > header h2 {
  color: #ffffff;
  font-size: 19px;
  margin: 4px 0 0;
}

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

.poi-decision-signals article {
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  min-width: 0;
  padding: 18px 14px;
}

.poi-decision-signals article:last-child {
  border-right: 0;
}

.poi-decision-signals span,
.poi-decision-signals small {
  color: #aeb9bd;
  display: block;
  font-size: 9px;
  line-height: 1.35;
}

.poi-decision-signals span {
  font-weight: 800;
  min-height: 26px;
  text-transform: uppercase;
}

.poi-decision-signals strong {
  color: #ffffff;
  display: block;
  font-size: 25px;
  line-height: 1;
  margin: 11px 0 7px;
  overflow-wrap: anywhere;
}

.poi-decision-signals .is-positive strong {
  color: #71d4ae;
}

.poi-decision-signals .is-negative strong {
  color: #ff8e85;
}

.poi-decision-signals .is-warning strong {
  color: #f1c84b;
}

.poi-analysis-update-callout {
  align-items: center;
  align-self: end;
  background: #2d383d;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  gap: 14px;
  justify-content: space-between;
  padding: 14px 16px;
}

.poi-analysis-update-callout > div {
  display: grid;
  gap: 3px;
}

.poi-analysis-update-callout strong {
  font-size: 12px;
}

.poi-analysis-update-callout span {
  color: #aeb9bd;
  font-size: 10px;
  line-height: 1.35;
}

.poi-analysis-update-callout .secondary-action {
  background: #ffffff;
  border-color: #ffffff;
  flex: 0 0 auto;
  font-size: 11px;
}

.poi-viability-section {
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  margin: 30px 0;
  padding: 28px 0;
  scroll-margin-top: 88px;
}

.poi-opening-moment {
  border-bottom: 1px solid var(--line);
  margin: 30px 0;
  padding-bottom: 30px;
  scroll-margin-top: 88px;
}

.poi-opening-moment > header {
  align-items: flex-start;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin-bottom: 18px;
}

.poi-opening-moment h2 {
  font-size: 26px;
  margin: 4px 0 6px;
}

.poi-opening-moment > header > div:first-child > p:last-child {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
  max-width: 650px;
}

.poi-opening-moment-score {
  align-items: baseline;
  background: #202a2e;
  border-bottom: 5px solid #d6a62d;
  color: #ffffff;
  display: flex;
  flex: 0 0 150px;
  flex-wrap: wrap;
  justify-content: center;
  padding: 12px 14px 10px;
}

.poi-opening-moment-score.is-favorable { border-bottom-color: #23866a; }
.poi-opening-moment-score.is-unfavorable { border-bottom-color: #bc4b4b; }
.poi-opening-moment-score strong { font-size: 33px; line-height: 1; }
.poi-opening-moment-score > span { color: #b9c3c7; font-size: 12px; }
.poi-opening-moment-score small { flex-basis: 100%; font-size: 9px; font-weight: 800; margin-top: 6px; text-align: center; text-transform: uppercase; }

.poi-opening-moment-body {
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(260px, 0.7fr) minmax(0, 1.3fr);
}

.poi-opening-moment-summary {
  background: #f3f6f5;
  border-left: 5px solid #1f6f63;
  padding: 19px;
}

.poi-opening-moment-summary h3 { font-size: 18px; margin: 8px 0; }
.poi-opening-moment-summary > p { color: #536066; font-size: 12px; line-height: 1.55; margin: 0 0 12px; }
.poi-opening-moment-summary small { color: var(--muted); font-size: 10px; }

.poi-opening-moment-signals {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.poi-opening-moment-signals article {
  border: 1px solid var(--line);
  min-width: 0;
  padding: 14px;
}

.poi-opening-moment-signals article > div { align-items: center; display: flex; gap: 10px; justify-content: space-between; }
.poi-opening-moment-signals span { color: #4f5c61; font-size: 11px; font-weight: 800; }
.poi-opening-moment-signals strong { font-size: 20px; }
.poi-opening-moment-signals i { background: #e6ebea; display: block; height: 7px; margin: 10px 0 8px; overflow: hidden; }
.poi-opening-moment-signals i b { background: #d2a12a; display: block; height: 100%; }
.poi-opening-moment-signals i b.is-positive { background: #23866a; }
.poi-opening-moment-signals i b.is-warning { background: #bc4b4b; }
.poi-opening-moment-signals small { color: var(--muted); display: block; font-size: 10px; line-height: 1.4; }
.poi-opening-moment > footer { color: var(--muted); font-size: 10px; line-height: 1.5; margin-top: 14px; }

.poi-viability-header {
  align-items: center;
  display: flex;
  gap: 28px;
  justify-content: space-between;
  margin-bottom: 22px;
}

.poi-viability-header h2 {
  font-size: 27px;
  margin: 4px 0 6px;
}

.poi-viability-header > div:first-child > p:last-child {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
}

.poi-viability-score {
  align-items: baseline;
  background: #202a2e;
  border-bottom: 5px solid #d6a62d;
  border-radius: 7px;
  color: #ffffff;
  display: flex;
  flex: 0 0 190px;
  flex-wrap: wrap;
  justify-content: center;
  padding: 14px 16px 11px;
}

.poi-viability-score strong {
  font-size: 35px;
  line-height: 1;
}

.poi-viability-score > span {
  color: #b9c3c7;
  font-size: 12px;
}

.poi-viability-score small {
  flex-basis: 100%;
  font-size: 10px;
  font-weight: 800;
  margin-top: 6px;
  text-align: center;
  text-transform: uppercase;
}

.poi-viability-score.is-promising {
  border-bottom-color: #38a37f;
}

.poi-viability-score.is-unfavorable {
  border-bottom-color: #c74b4b;
}

.poi-viability-summary {
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(300px, 0.8fr) minmax(0, 1.2fr);
}

.poi-viability-verdict {
  background: #f3f6f5;
  border-left: 5px solid #1f6f63;
  padding: 20px;
}

.poi-trend-badge {
  color: #616c70;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.poi-trend-badge.is-growing {
  color: #187653;
}

.poi-trend-badge.is-declining {
  color: #a23e3e;
}

.poi-viability-verdict h3 {
  font-size: 19px;
  margin: 8px 0;
}

.poi-viability-verdict > p {
  color: #536066;
  font-size: 12px;
  line-height: 1.55;
  margin: 0 0 18px;
}

.poi-viability-verdict dl {
  border-top: 1px solid #d9e1df;
  margin: 0;
}

.poi-viability-verdict dl div {
  align-items: center;
  border-bottom: 1px solid #d9e1df;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 9px 0;
}

.poi-viability-verdict dt,
.poi-viability-verdict dd {
  font-size: 11px;
  margin: 0;
}

.poi-viability-verdict dt {
  color: var(--muted);
}

.poi-viability-dimensions {
  display: grid;
  gap: 11px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.poi-viability-dimensions article {
  border: 1px solid var(--line);
  min-width: 0;
  padding: 15px;
}

.poi-viability-dimensions article > div {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.poi-viability-dimensions span {
  color: #4f5c61;
  font-size: 11px;
  font-weight: 800;
}

.poi-viability-dimensions strong {
  font-size: 20px;
}

.poi-viability-dimensions i {
  background: #e6ebea;
  display: block;
  height: 7px;
  margin: 11px 0 7px;
  overflow: hidden;
}

.poi-viability-dimensions i b {
  background: #d2a12a;
  display: block;
  height: 100%;
}

.poi-viability-dimensions i b.is-positive {
  background: #23866a;
}

.poi-viability-dimensions i b.is-warning {
  background: #bc4b4b;
}

.poi-viability-dimensions small {
  color: var(--muted);
  font-size: 9px;
}

.poi-viability-factor-list {
  border-top: 1px solid var(--line);
  margin-top: 10px;
  padding-top: 8px;
}

.poi-viability-factor-list summary {
  color: #1f6f63;
  cursor: pointer;
  font-size: 9px;
  font-weight: 800;
}

.poi-viability-factor-list p {
  align-items: baseline;
  display: flex;
  gap: 8px;
  justify-content: space-between;
  margin: 8px 0 0;
}

.poi-viability-factor-list p span,
.poi-viability-factor-list p strong {
  font-size: 9px;
}

.poi-viability-factor-list p span {
  color: var(--muted);
  font-weight: 500;
}

.poi-viability-findings {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  margin-top: 22px;
  padding-top: 22px;
}

.poi-viability-findings h3 {
  font-size: 14px;
  margin: 0 0 13px;
}

.poi-viability-findings > div > p {
  align-items: flex-start;
  color: #4f5b60;
  display: flex;
  font-size: 12px;
  gap: 9px;
  line-height: 1.45;
  margin: 9px 0;
}

.poi-viability-findings > div > p > span {
  background: #7a878c;
  border-radius: 50%;
  flex: 0 0 8px;
  height: 8px;
  margin-top: 4px;
}

.poi-viability-findings > div > p.is-positive > span {
  background: #23866a;
}

.poi-viability-findings > div > p.is-warning > span {
  background: #c44c4c;
}

.poi-viability-findings aside {
  background: #fff8e7;
  border-left: 4px solid #d6a62d;
  padding: 17px;
}

.poi-viability-findings aside p {
  color: #655d4b;
  font-size: 11px;
  line-height: 1.55;
}

.poi-viability-findings aside .primary-action,
.poi-viability-findings aside .secondary-action {
  font-size: 11px;
  justify-content: center;
  margin-top: 7px;
  width: 100%;
}

.poi-financial-analysis {
  background: #202a2e;
  color: #ffffff;
  margin-top: 24px;
  padding: 22px;
}

.poi-financial-analysis .poi-section-heading {
  border-bottom-color: rgba(255, 255, 255, 0.14);
}

.poi-financial-analysis .eyebrow {
  color: #8fc5b8;
}

.poi-financial-analysis h3 {
  color: #ffffff;
  font-size: 18px;
  margin: 4px 0 0;
}

.poi-financial-kpis,
.poi-financial-scenarios {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.poi-financial-kpis article,
.poi-financial-scenarios article {
  border: 1px solid rgba(255, 255, 255, 0.14);
  min-width: 0;
  padding: 14px;
}

.poi-financial-kpis span,
.poi-financial-scenarios span {
  color: #aeb9bd;
  display: block;
  font-size: 9px;
  font-weight: 800;
  min-height: 24px;
  text-transform: uppercase;
}

.poi-financial-kpis strong,
.poi-financial-scenarios strong {
  display: block;
  font-size: 19px;
  margin: 9px 0 5px;
  overflow-wrap: anywhere;
}

.poi-financial-kpis small,
.poi-financial-scenarios small {
  color: #9eaaae;
  font-size: 9px;
  line-height: 1.4;
}

.poi-financial-scenarios {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 10px;
}

.poi-financial-scenarios strong.is-positive {
  color: #71d4ae;
}

.poi-financial-scenarios strong.is-negative {
  color: #ff9188;
}

.poi-viability-disclaimer {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
  margin: 14px 0 0;
}

.poi-financial-fields {
  background: #f7f9f8;
  border: 1px solid #dce3e1;
  border-radius: 7px;
  margin-top: 8px;
  padding: 18px;
}

.poi-financial-fields legend {
  align-items: center;
  color: #20282b;
  display: flex;
  float: none;
  font-size: 15px;
  font-weight: 800;
  gap: 9px;
  margin: 0;
  padding: 0;
  width: auto;
}

.poi-financial-fields-icon {
  align-items: center;
  background: #dfeee9;
  border-radius: 5px;
  color: #1f6f63;
  display: inline-flex;
  height: 30px;
  justify-content: center;
  width: 30px;
}

.poi-financial-fields-icon svg {
  fill: none;
  height: 17px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  width: 17px;
}

.poi-financial-fields > p {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
  margin: 8px 0 17px;
  max-width: 660px;
}

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

.record-form .poi-financial-fields label {
  color: #465156;
  gap: 7px;
  min-width: 0;
  text-transform: none;
}

.record-form .poi-financial-fields label > span:first-child {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.poi-financial-input {
  align-items: center;
  background: #ffffff;
  border: 1px solid #cdd6d3;
  border-radius: 6px;
  display: flex;
  min-height: 44px;
  overflow: hidden;
}

.poi-financial-input:focus-within {
  border-color: #1f6f63;
  box-shadow: 0 0 0 3px rgba(31, 111, 99, 0.13);
}

.poi-financial-input b {
  color: #69757a;
  flex: 0 0 auto;
  font-size: 11px;
  padding: 0 11px;
  white-space: nowrap;
}

.poi-financial-input input[type="number"] {
  appearance: textfield;
  background: transparent;
  border: 0;
  color: #20282b;
  flex: 1 1 auto;
  font-size: 15px;
  min-height: 42px;
  min-width: 0;
  outline: 0;
  padding: 0 11px;
  width: 100%;
}

.poi-financial-input b + input[type="number"] {
  border-left: 1px solid #edf0ef;
}

.poi-financial-input input[type="number"] + b {
  border-left: 1px solid #edf0ef;
}

.poi-financial-input input[type="number"]::-webkit-inner-spin-button,
.poi-financial-input input[type="number"]::-webkit-outer-spin-button {
  appearance: none;
  margin: 0;
}

.poi-financial-investment-field {
  border-top: 1px solid #dce3e1;
  margin-top: 17px;
  padding-top: 16px;
}

.poi-financial-investment-field > span:first-child small {
  background: #e7ecea;
  border-radius: 4px;
  color: #667277;
  font-size: 9px;
  font-weight: 800;
  padding: 3px 6px;
  text-transform: uppercase;
}

.poi-financial-investment-field em {
  color: #768187;
  font-size: 10px;
  font-style: normal;
  font-weight: 500;
  line-height: 1.4;
}

.poi-report-kpis {
  margin-bottom: 28px;
}

.poi-report-grid {
  gap: 30px;
  grid-template-columns: minmax(0, 1fr) 300px;
}

.poi-report-content,
.poi-report-aside {
  gap: 30px;
}

.poi-consumer-section,
#poi-business-dynamics,
#poi-formal-economy,
#competition-analysis,
#poi-indicators {
  scroll-margin-top: 88px;
}

.poi-consumer-headline {
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.poi-consumer-headline article {
  border-right: 1px solid var(--line);
  min-height: 118px;
  padding: 16px;
}

.poi-consumer-headline article:last-child {
  border-right: 0;
}

.poi-consumer-headline span,
.poi-consumer-headline small {
  color: var(--muted);
  display: block;
  font-size: 10px;
}

.poi-consumer-headline span {
  font-weight: 800;
  text-transform: uppercase;
}

.poi-consumer-headline strong {
  display: block;
  font-size: 22px;
  line-height: 1.12;
  margin: 10px 0 5px;
  overflow-wrap: anywhere;
}

.poi-consumer-grid {
  border: 1px solid var(--line);
  border-top: 0;
  display: grid;
  grid-template-columns: 0.85fr 1.25fr 0.9fr;
}

.poi-consumer-grid > section {
  min-width: 0;
  padding: 17px;
}

.poi-consumer-grid > section + section {
  border-left: 1px solid var(--line);
}

.poi-consumer-grid h3 {
  font-size: 13px;
  margin: 0 0 16px;
}

.poi-profile-bar {
  display: grid;
  gap: 6px;
  margin-top: 12px;
}

.poi-profile-bar > div {
  align-items: baseline;
  display: flex;
  gap: 8px;
  justify-content: space-between;
}

.poi-profile-bar span,
.poi-profile-bar strong {
  font-size: 11px;
}

.poi-profile-bar span {
  color: #566268;
}

.poi-profile-bar i {
  background: #e9eeee;
  border-radius: 2px;
  display: block;
  height: 6px;
  overflow: hidden;
}

.poi-profile-bar b {
  background: #1f8b78;
  display: block;
  height: 100%;
  min-width: 2px;
}

.poi-profile-bar b.tone-1 {
  background: #2878a8;
}

.poi-profile-bar b.tone-2 {
  background: #d88755;
}

.poi-profile-empty {
  background: #f7f9fa;
  border: 1px solid var(--line);
  padding: 22px;
}

.poi-profile-empty strong {
  font-size: 14px;
}

.poi-profile-empty p {
  color: var(--muted);
  font-size: 12px;
  margin: 5px 0 0;
}

.poi-indicator-details {
  border: 1px solid var(--line);
}

.poi-indicator-details > summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  list-style: none;
  padding: 14px;
}

.poi-indicator-details > summary::-webkit-details-marker {
  display: none;
}

.poi-indicator-details > summary span {
  color: var(--muted);
  font-size: 11px;
}

.poi-indicator-details > summary strong {
  color: #1f6f63;
  font-size: 11px;
}

.poi-indicator-details[open] > summary {
  background: #f7f9fa;
  border-bottom: 1px solid var(--line);
}

.poi-indicator-details .poi-indicator-table {
  border: 0;
}

@media (max-width: 1100px) {
  .poi-overview-grid,
  .poi-report-grid,
  .poi-viability-summary,
  .poi-opening-moment-body {
    grid-template-columns: 1fr;
  }

  .poi-report-aside {
    position: static;
  }
}

@media (max-width: 767.98px) {
  .poi-overview-map {
    height: 300px;
  }

  .poi-decision-signals,
  .poi-consumer-headline,
  .poi-consumer-grid,
  .poi-viability-dimensions,
  .poi-viability-findings,
  .poi-financial-kpis,
  .poi-financial-scenarios,
  .poi-financial-operating-fields {
    grid-template-columns: 1fr;
  }

  .poi-viability-header {
    align-items: stretch;
    flex-direction: column;
  }

  .poi-viability-score {
    flex-basis: auto;
  }

  .poi-opening-moment > header {
    align-items: stretch;
    flex-direction: column;
  }

  .poi-opening-moment-score {
    flex-basis: auto;
  }

  .poi-opening-moment-signals {
    grid-template-columns: 1fr;
  }

  .poi-decision-signals article,
  .poi-consumer-headline article,
  .poi-consumer-grid > section + section {
    border-bottom: 1px solid var(--line);
    border-left: 0;
    border-right: 0;
  }

  .poi-decision-signals article {
    border-bottom-color: rgba(255, 255, 255, 0.12);
  }

  .poi-analysis-update-callout {
    align-items: stretch;
    flex-direction: column;
  }

  .poi-analysis-update-callout .secondary-action {
    justify-content: center;
    width: 100%;
  }
}

.sector-detail-list {
  display: grid;
  gap: 8px;
  margin: 0;
}

.sector-detail-list div {
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 2px;
  padding-bottom: 8px;
}

.sector-detail-list dd {
  color: var(--text);
  font-weight: 700;
  margin: 0;
}

.sector-detail-table {
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}

.sector-detail-row {
  align-items: center;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 10px 12px;
}

.sector-detail-row:last-child {
  border-bottom: 0;
}

.sector-detail-row span {
  align-items: center;
  display: inline-flex;
  gap: 8px;
  min-width: 0;
}

.sector-detail-row i {
  border: 1px solid rgba(23, 32, 38, 0.18);
  border-radius: 999px;
  flex: 0 0 auto;
  height: 10px;
  width: 10px;
}

.sector-detail-row .sector-detail-square {
  border-radius: 3px;
}

.sector-detail-row strong {
  white-space: nowrap;
}

.sector-detail-empty,
.sector-detail-muted {
  margin: 0;
}

.metric-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin-bottom: 18px;
}

.metric-card,
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.metric-card {
  min-height: 116px;
  padding: 16px;
}

.metric-card span,
.metric-card small,
.panel-header span {
  color: var(--muted);
  font-size: 13px;
}

.metric-card strong {
  display: block;
  font-size: 28px;
  margin: 14px 0 4px;
}

.content-grid,
.detail-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1.25fr) minmax(360px, 0.75fr);
  margin-bottom: 18px;
}

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

.current-summary {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(280px, 1.4fr) repeat(4, minmax(150px, 0.65fr));
  margin-bottom: 18px;
}

.summary-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 112px;
  padding: 16px;
}

.summary-card span {
  color: var(--muted);
  display: block;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.summary-card strong {
  display: block;
  font-size: 26px;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.summary-card small {
  color: var(--muted);
  display: block;
  font-size: 13px;
  margin-top: 10px;
}

.summary-card-wide strong {
  font-size: 22px;
}

.panel {
  margin-bottom: 18px;
  overflow: hidden;
}

.panel-header {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  min-height: 54px;
  padding: 0 16px;
}

.table-wrap {
  overflow-x: auto;
}

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

th,
td {
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
}

th {
  background: #f9fbfb;
  color: #4b5960;
  font-size: 12px;
  text-transform: uppercase;
}

tbody tr:hover {
  background: #fbfdfd;
}

.table-actions-heading,
.table-actions-cell {
  text-align: right;
  width: 62px;
}

.table-icon-action {
  align-items: center;
  background: #f1f3f4;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  display: inline-flex;
  height: 36px;
  justify-content: center;
  width: 36px;
}

.table-icon-action:hover {
  background: #e4e7e8;
  color: #000000;
  text-decoration: none;
}

.table-icon-action svg {
  fill: none;
  height: 17px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  width: 17px;
}

.status {
  background: #f4f6f7;
  border-radius: 999px;
  color: var(--accent-strong);
  display: inline-flex;
  font-size: 12px;
  font-weight: 700;
  min-height: 24px;
  padding: 4px 10px;
}

.event-list {
  display: grid;
}

.event-row {
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 4px;
  padding: 13px 16px;
}

.event-row:last-child {
  border-bottom: 0;
}

.event-row span,
.event-row small {
  color: var(--muted);
}

.history-panel {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 18px;
  overflow: hidden;
}

.history-panel > summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  list-style: none;
  min-height: 64px;
  padding: 0 18px;
}

.history-panel > summary::-webkit-details-marker {
  display: none;
}

.history-panel > summary::after {
  color: var(--accent);
  content: "+";
  font-size: 26px;
  font-weight: 700;
}

.history-panel[open] > summary {
  border-bottom: 1px solid var(--line);
}

.history-panel[open] > summary::after {
  content: "-";
}

.history-panel summary strong {
  display: block;
  font-size: 17px;
  margin-bottom: 4px;
}

.history-panel summary span {
  color: var(--muted);
  font-size: 13px;
}

.history-panel > .panel,
.history-panel > .content-grid {
  border: 0;
  margin: 0;
}

.history-panel > .content-grid {
  padding: 0 18px 18px;
}

.timeline {
  display: grid;
  padding: 18px 18px 8px;
}

.timeline-item {
  display: grid;
  gap: 14px;
  grid-template-columns: 18px minmax(0, 1fr);
  position: relative;
}

.timeline-item::before {
  background: var(--line);
  bottom: 0;
  content: "";
  left: 8px;
  position: absolute;
  top: 18px;
  width: 2px;
}

.timeline-item:last-child::before {
  display: none;
}

.timeline-marker {
  background: #ffffff;
  border: 3px solid var(--muted);
  border-radius: 50%;
  height: 18px;
  margin-top: 10px;
  position: relative;
  width: 18px;
  z-index: 1;
}

.timeline-item.is-current .timeline-marker {
  border-color: var(--accent);
}

.timeline-card {
  background: #fbfdfd;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 14px;
  padding: 14px;
}

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

.timeline-heading strong {
  color: var(--accent-strong);
  font-size: 12px;
  text-transform: uppercase;
}

.timeline-heading h3 {
  font-size: 16px;
  margin: 5px 0 0;
}

.timeline-heading span {
  background: #f4f6f7;
  border-radius: 999px;
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 700;
  padding: 5px 10px;
}

.timeline-period,
.timeline-note {
  color: var(--muted);
  font-size: 14px;
  margin: 10px 0 0;
}

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

.change-list li {
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(140px, 0.6fr) minmax(0, 1fr) auto minmax(0, 1fr);
  padding: 10px;
}

.change-list span {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.change-list strong {
  font-size: 13px;
}

.change-list em {
  color: var(--accent);
  font-style: normal;
  font-weight: 700;
}

.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  padding: 6px 16px 16px;
}

.facts div {
  border-bottom: 1px solid var(--line);
  min-height: 70px;
  padding: 14px 8px;
}

.facts dt {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.facts dd {
  font-size: 15px;
  font-weight: 700;
  margin: 0;
}

.pagination {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding: 14px 16px;
}

.auth-shell {
  align-items: center;
  display: flex;
  min-height: calc(100vh - 120px);
  justify-content: center;
}

.auth-shell-split {
  align-items: stretch;
  background: #ffffff;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: calc(100vh - 120px);
}

.auth-visual {
  background-position: center;
  background-size: cover;
  display: grid;
  min-height: 620px;
  overflow: hidden;
  padding: 44px;
  position: relative;
}

.auth-visual::before {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.72));
  content: "";
  inset: 0;
  position: absolute;
}

.auth-visual-content {
  align-self: end;
  color: var(--text);
  max-width: 520px;
  position: relative;
  z-index: 1;
}

.auth-visual-content .eyebrow {
  color: var(--accent);
}

.auth-visual-content h1 {
  font-size: clamp(34px, 5vw, 56px);
}

.auth-visual-content p:last-child {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
  margin: 18px 0 0;
}

.auth-form-side {
  align-items: center;
  background: var(--bg);
  display: flex;
  justify-content: center;
  padding: 44px;
}

.auth-panel {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  max-width: 420px;
  padding: 28px;
  width: 100%;
}

.password-auth-shell {
  min-height: 100vh;
  min-height: 100svh;
  padding: 24px;
}

.password-auth-panel {
  max-width: 460px;
}

.locale-switcher {
  display: flex;
  gap: 4px;
  justify-content: flex-end;
  margin-bottom: 18px;
}

.locale-switcher-option {
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 6px;
  text-decoration: none;
}

.locale-switcher-option:hover,
.locale-switcher-option.active {
  border-bottom-color: var(--text);
  color: var(--text);
  text-decoration: none;
}

.password-auth-brand {
  display: flex;
  justify-content: center;
  margin-bottom: 34px;
}

.password-auth-brand img {
  display: block;
  height: auto;
  width: 165px;
}

.password-auth-panel h1 {
  font-size: 30px;
  margin: 0;
}

.auth-form {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.auth-hint {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
  margin: 14px 0 0;
}

.auth-form label {
  color: var(--muted);
  display: grid;
  font-size: 13px;
  font-weight: 700;
  gap: 8px;
  text-transform: uppercase;
}

.auth-form input[type="email"],
.auth-form input[type="password"],
.auth-form .password-visibility-input {
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  font-size: 16px;
  min-height: 44px;
  padding: 0 12px;
}

.auth-form input[type="submit"] {
  background: var(--action);
  border: 0;
  border-radius: 6px;
  color: #ffffff;
  cursor: pointer;
  font-weight: 700;
  min-height: 44px;
}

.auth-form input[type="submit"]:hover,
.auth-form input[type="submit"]:focus-visible {
  background: var(--action-strong);
}

.auth-form input[type="submit"]:disabled {
  cursor: wait;
  opacity: 0.72;
}

.auth-links {
  font-size: 14px;
  margin-top: 18px;
}

.auth-links-inline {
  margin-top: -6px;
}

.login-page {
  background: #f4f6f9;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(440px, 1fr);
  min-height: 100vh;
}

.login-visual {
  background-color: #eef2f4;
  background-position: center center;
  background-size: cover;
  min-height: 100vh;
}

.login-form-side {
  align-items: center;
  display: flex;
  justify-content: center;
  padding: clamp(32px, 6vw, 80px);
}

.login-panel {
  max-width: 540px;
  width: 100%;
}

.login-brand {
  display: flex;
  justify-content: center;
  margin-bottom: 58px;
}

.login-brand img {
  display: block;
  height: auto;
  width: min(210px, 52vw);
}

.login-panel h1 {
  font-size: 34px;
  margin-bottom: 24px;
}

.login-panel .auth-form {
  gap: 18px;
}

.login-panel .auth-form input[type="email"],
.login-panel .auth-form input[type="password"],
.login-panel .auth-form .password-visibility-input {
  background: #ffffff;
  border-color: #d7dde3;
  border-radius: 6px;
  font-size: 17px;
  min-height: 54px;
}

.login-panel .auth-form input[type="submit"] {
  background: var(--action);
  border-radius: 8px;
  font-size: 20px;
  margin-top: 34px;
  min-height: 60px;
}

.login-forgot-link {
  display: flex;
  font-size: 16px;
  justify-content: flex-end;
}

.login-divider {
  align-items: center;
  color: var(--muted);
  display: grid;
  font-size: 13px;
  gap: 12px;
  grid-template-columns: 1fr auto 1fr;
  margin: 24px 0 16px;
  text-transform: uppercase;
}

.login-divider::before,
.login-divider::after {
  background: #d7dde3;
  content: "";
  height: 1px;
}

.sso-login-actions {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sso-login-actions form {
  margin: 0;
}

.sso-login-button {
  align-items: center;
  background: #ffffff;
  border: 1px solid #b8c0c6;
  border-radius: 6px;
  color: #252a2d;
  display: flex;
  font-size: 14px;
  font-weight: 700;
  gap: 9px;
  justify-content: center;
  min-height: 50px;
  padding: 0 12px;
  width: 100%;
}

.sso-login-button:hover,
.sso-login-button:focus-visible {
  background: #f2f4f5;
  border-color: #252a2d;
}

.sso-login-button:disabled {
  background: #f4f6f7;
  border-color: #d7dde3;
  color: #78838a;
  cursor: not-allowed;
}

.login-signup-button {
  align-items: center;
  border-color: #252a2d;
  border-radius: 6px;
  display: flex;
  font-size: 15px;
  font-weight: 700;
  justify-content: center;
  margin-top: 16px;
  min-height: 50px;
  width: 100%;
}

.sso-google-mark {
  color: #4285f4;
  flex: 0 0 18px;
  font-size: 19px;
  font-weight: 800;
  line-height: 1;
}

.sso-microsoft-mark {
  display: grid;
  flex: 0 0 17px;
  gap: 2px;
  grid-template-columns: repeat(2, 7px);
  grid-template-rows: repeat(2, 7px);
}

.sso-microsoft-mark i:nth-child(1) { background: #212529; }
.sso-microsoft-mark i:nth-child(2) { background: #495057; }
.sso-microsoft-mark i:nth-child(3) { background: #868e96; }
.sso-microsoft-mark i:nth-child(4) { background: #adb5bd; }

.form-panel {
  padding: 18px;
}

.account-page-header p:last-child,
.help-page-header p:last-child {
  color: var(--muted);
  margin: 8px 0 0;
}

.account-settings-modal .modal-dialog {
  max-width: min(920px, calc(100vw - 40px));
}

.account-settings-modal .modal-content {
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 28px 80px rgba(23, 32, 38, 0.24);
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  height: min(680px, calc(100vh - 48px));
  overflow: hidden;
}

.account-settings-sidebar {
  background: #f4f6f6;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 24px 14px;
}

.account-settings-heading {
  align-items: center;
  display: flex;
  gap: 11px;
  min-width: 0;
  padding: 0 8px;
}

.account-settings-heading > div {
  display: grid;
  min-width: 0;
}

.account-settings-heading strong,
.account-settings-heading span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-settings-heading strong {
  font-size: 14px;
}

.account-settings-heading span:last-child {
  color: var(--muted);
  font-size: 12px;
}

.account-settings-avatar {
  align-items: center;
  background: var(--accent);
  border-radius: 999px;
  color: #ffffff;
  display: inline-flex;
  flex: 0 0 38px;
  font-size: 13px;
  font-weight: 800;
  height: 38px;
  justify-content: center;
  object-fit: cover;
  width: 38px;
}

.account-settings-navigation {
  align-content: start;
  display: grid;
  gap: 5px;
}

.account-settings-navigation .nav-link {
  align-items: center;
  border-radius: 6px;
  color: #435158;
  display: flex;
  font-size: 14px;
  font-weight: 700;
  gap: 11px;
  min-height: 44px;
  padding: 0 12px;
  text-align: left;
}

.account-settings-navigation .nav-link:hover {
  background: #f1f3f5;
  color: var(--text);
}

.account-settings-navigation .nav-link.active {
  background: #dee2e6;
  color: var(--accent-strong);
}

.account-settings-navigation svg {
  fill: none;
  flex: 0 0 20px;
  height: 20px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  width: 20px;
}

.account-settings-content {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}

.account-settings-content-header {
  align-items: start;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  padding: 24px 28px 20px;
}

.account-settings-content-header .eyebrow {
  margin: 0 0 5px;
}

.account-settings-content-header h2 {
  font-size: 21px;
  margin: 0;
}

.account-settings-tab-content {
  flex: 1;
  overflow-y: auto;
  padding: 28px;
}

.account-settings-section-heading {
  margin-bottom: 24px;
}

.account-settings-section-heading h3 {
  font-size: 19px;
  margin: 0;
}

.account-settings-section-heading p {
  color: var(--muted);
  font-size: 14px;
  margin: 7px 0 0;
}

.account-settings-form {
  max-width: 560px;
}

.profile-avatar-editor {
  align-items: center;
  background: #f7f8f8;
  border: 1px solid var(--line);
  border-radius: 7px;
  display: flex;
  gap: 16px;
  padding: 16px;
}

.profile-avatar-preview-wrap {
  border-radius: 999px;
  display: inline-flex;
  position: relative;
}

.profile-avatar-preview {
  align-items: center;
  background: var(--accent);
  border: 3px solid #fff;
  border-radius: 999px;
  box-shadow: 0 0 0 1px rgba(23, 32, 38, .14);
  color: #fff;
  display: inline-flex;
  flex: 0 0 72px;
  font-size: 21px;
  font-weight: 800;
  height: 72px;
  justify-content: center;
  object-fit: cover;
  width: 72px;
}

.profile-avatar-delete {
  align-items: center;
  background: #d62828;
  border: 1px solid #b61e1e;
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font-size: 14px;
  height: 20px;
  justify-content: center;
  line-height: 1;
  padding: 0;
  position: absolute;
  right: -4px;
  top: -4px;
  width: 20px;
}

.profile-avatar-delete:hover {
  background: #b61e1e;
}

.profile-avatar-error {
  color: #b61e1e;
  display: block;
  font-size: 11px;
  margin-top: 4px;
  min-height: 14px;
}

.profile-avatar-editor.has-avatar-error .profile-avatar-upload {
  border-color: #d4a0a0;
}

.profile-avatar-editor.avatar-pending-removal .profile-avatar-preview {
  filter: grayscale(1);
  opacity: 0.45;
}

.profile-avatar-controls {
  min-width: 0;
}

.profile-avatar-controls > strong {
  display: block;
  font-size: 14px;
}

.profile-avatar-controls > p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  margin: 3px 0 10px;
}

.record-form label.profile-avatar-upload {
  align-items: center;
  background: #fff;
  border: 1px solid #7b858a;
  border-radius: 6px;
  color: var(--text);
  cursor: pointer;
  display: inline-flex;
  font-size: 12px;
  gap: 7px;
  min-height: 34px;
  padding: 0 10px;
  position: relative;
  text-transform: none;
  width: fit-content;
}

.record-form label.profile-avatar-upload:hover {
  background: #eef1f2;
}

.profile-avatar-upload svg {
  fill: none;
  height: 16px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  width: 16px;
}

.profile-avatar-upload input {
  cursor: pointer;
  inset: 0;
  opacity: 0;
  position: absolute;
}

.profile-avatar-filename {
  color: var(--muted);
  display: block;
  font-size: 11px;
  margin-top: 6px;
  max-width: 320px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 767px) {
  .profile-avatar-editor {
    align-items: flex-start;
    flex-direction: column;
  }

  .profile-avatar-preview {
    flex-basis: 60px;
    height: 60px;
    width: 60px;
  }

  .profile-avatar-controls {
    width: 100%;
  }

  .profile-avatar-filename {
    max-width: 100%;
    white-space: normal;
  }
}

.account-settings-actions {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 8px;
}

.account-settings-actions .secondary-action,
.account-settings-actions input[type="submit"] {
  min-width: 128px;
}

.account-layout {
  max-width: 760px;
}

.account-form-panel .record-form {
  max-width: none;
}

.profile-email-action {
  align-items: center;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  margin-top: -6px;
}

.profile-email-action > span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.profile-email-action .secondary-action {
  flex: 0 0 auto;
}

.record-form input:disabled {
  background: #f1f3f4;
  color: #616a6f;
  cursor: not-allowed;
}

.email-change-summary {
  background: #f3f5f5;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: grid;
  gap: 5px;
  margin: 24px 0;
  padding: 14px 16px;
}

.email-change-pending {
  background: #f3f5f5;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: grid;
  gap: 4px;
  margin-bottom: 20px;
  padding: 14px 16px;
}

.email-change-pending span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.email-change-pending strong {
  overflow-wrap: anywhere;
}

.email-change-pending small {
  color: var(--muted);
  line-height: 1.4;
}

.email-change-summary span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.email-change-summary strong {
  overflow-wrap: anywhere;
}

.auth-primary-action {
  background: #252a2d;
  border: 1px solid #252a2d;
  border-radius: 6px;
  color: #ffffff;
  font-weight: 700;
  min-height: 46px;
  width: 100%;
}

@media (max-width: 560px) {
  .profile-email-action {
    align-items: stretch;
    flex-direction: column;
  }

  .profile-email-action .secondary-action {
    justify-content: center;
  }
}

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

.help-link {
  align-items: start;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  display: flex;
  gap: 14px;
  min-height: 126px;
  padding: 18px;
}

.help-link:hover {
  border-color: #8c989e;
  box-shadow: 0 10px 28px rgba(23, 32, 38, 0.08);
  color: var(--text);
  text-decoration: none;
}

.help-link > svg {
  fill: none;
  flex: 0 0 24px;
  height: 24px;
  stroke: var(--accent);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 24px;
}

.help-link div {
  display: grid;
  gap: 7px;
}

.help-link strong {
  font-size: 15px;
}

.help-link span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
}

.record-form {
  display: grid;
  gap: 16px;
  max-width: 720px;
}

.record-form label {
  color: var(--muted);
  display: grid;
  font-size: 13px;
  font-weight: 700;
  gap: 8px;
  text-transform: uppercase;
}

.record-form input[type="text"],
.record-form input[type="email"],
.record-form input[type="password"],
.record-form .password-visibility-input,
.record-form select,
.record-form textarea {
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  font-size: 15px;
  min-height: 42px;
  padding: 0 12px;
}

.record-form textarea {
  line-height: 1.5;
  padding-bottom: 10px;
  padding-top: 10px;
  resize: vertical;
}

.password-visibility-field {
  position: relative;
  width: 100%;
}

.password-visibility-input {
  padding-right: 48px !important;
  width: 100%;
}

.password-visibility-toggle {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: #526067;
  cursor: pointer;
  display: inline-flex;
  height: 38px;
  justify-content: center;
  padding: 0;
  position: absolute;
  right: 3px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
}

.password-visibility-toggle:hover {
  background: #eef1f2;
  color: var(--text);
}

.password-visibility-toggle:focus-visible {
  box-shadow: 0 0 0 2px rgba(36, 40, 42, 0.2);
  color: var(--text);
  outline: none;
}

.password-visibility-toggle svg {
  fill: none;
  height: 19px;
  pointer-events: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  width: 19px;
}

.password-visibility-hide-icon,
.password-visibility-toggle[aria-pressed="true"] .password-visibility-show-icon {
  display: none;
}

.password-visibility-toggle[aria-pressed="true"] .password-visibility-hide-icon {
  display: block;
}

.record-form input[type="submit"] {
  background: var(--accent);
  border: 0;
  border-radius: 6px;
  color: #ffffff;
  cursor: pointer;
  font-weight: 700;
  min-height: 42px;
  width: fit-content;
  padding: 0 18px;
}

.mcp-page-header > div > p:last-child { color: var(--muted); margin: 8px 0 0; max-width: 680px; }
.mcp-endpoint { background: #fff; border: 1px solid var(--line); border-radius: 8px; display: grid; gap: 4px; min-width: 270px; padding: 12px 14px; }
.mcp-endpoint span { color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; }.mcp-endpoint code { color: var(--text); font-size: 13px; }
.mcp-token-reveal { align-items: flex-start; background: #eaf5f2; border: 1px solid #b9ddd4; border-radius: 8px; display: flex; gap: 16px; margin: 0 0 18px; padding: 20px; }.mcp-token-reveal .eyebrow { color: #247a67; margin-bottom: 4px; }.mcp-token-reveal h2 { font-size: 18px; }.mcp-token-reveal p:not(.eyebrow) { color: #49645e; margin: 5px 0 12px; }.mcp-token-reveal > div:last-child { min-width: 0; width: 100%; }
.mcp-token-icon { align-items: center; background: #fff; border: 1px solid #c7e5dd; border-radius: 8px; color: #247a67; display: flex; flex: 0 0 42px; height: 42px; justify-content: center; }.mcp-token-icon svg, .mcp-token-value button svg, .mcp-revoke svg { fill: none; height: 20px; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; width: 20px; }
.mcp-token-value { display: flex; gap: 8px; max-width: 760px; }.mcp-token-value textarea { background: #fff; border: 1px solid #a8d1c6; border-radius: 6px; flex: 1; font-family: monospace; font-size: 13px; padding: 10px; resize: none; }.mcp-token-value button, .mcp-revoke { align-items: center; background: #fff; border: 1px solid #a8d1c6; border-radius: 6px; color: #247a67; cursor: pointer; display: inline-flex; justify-content: center; width: 42px; }.mcp-token-reveal [data-clipboard-target="status"] { color: #247a67; display: block; font-size: 12px; font-weight: 700; min-height: 18px; padding-top: 5px; }
.mcp-create-panel { align-items: end; background: #fff; border: 1px solid var(--line); border-radius: 8px; display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); margin-bottom: 18px; padding: 20px; }.mcp-create-panel .eyebrow, .mcp-integrations-panel header .eyebrow { margin-bottom: 4px; }.mcp-create-panel p:not(.eyebrow) { color: var(--muted); margin: 7px 0 0; }.mcp-create-form { display: flex; gap: 8px; min-width: 0; }.mcp-create-form input[type="text"] { border: 1px solid var(--line); border-radius: 6px; flex: 1 1 auto; min-width: 0; min-height: 42px; padding: 0 12px; }.mcp-create-form input[type="submit"] { background: var(--action); border: 0; border-radius: 6px; color: #fff; cursor: pointer; flex: 0 0 auto; font-weight: 700; min-height: 42px; padding: 0 16px; white-space: nowrap; }
.mcp-integrations-panel { overflow: hidden; padding: 0; }.mcp-integrations-panel > header { align-items: center; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; padding: 18px 20px; }.mcp-integrations-panel > header > span { background: #eef1f2; border-radius: 999px; color: #526067; font-size: 12px; font-weight: 700; padding: 6px 10px; }.mcp-integrations-table { margin: 0; }.mcp-integrations-table th { background: #f8f9f9; color: #66737b; font-size: 11px; text-transform: uppercase; }.mcp-integrations-table td, .mcp-integrations-table th { border-color: var(--line); padding: 13px 20px; }.mcp-integrations-table td { color: #526067; font-size: 13px; }.mcp-integrations-table td strong { color: var(--text); display: block; font-size: 14px; }.mcp-integrations-table td small { color: #889399; display: block; font-size: 11px; margin-top: 3px; }.mcp-status { background: #f1f3f4; border-radius: 999px; color: #687277; display: inline-block; font-size: 12px; font-weight: 700; padding: 5px 9px; }.mcp-status.is-active { background: #e4f4ee; color: #247a67; }.mcp-revoke { border-color: #efcaca; color: #b34f4f; height: 34px; width: 34px; }.mcp-empty-state { color: var(--muted); display: grid; gap: 5px; padding: 28px 20px; }.mcp-empty-state strong { color: var(--text); }
@media (max-width: 900px) { .mcp-page-header { align-items: flex-start; flex-direction: column; }.mcp-endpoint { min-width: 0; width: 100%; }.mcp-create-panel { grid-template-columns: 1fr; }.mcp-create-form { flex-direction: column; }.mcp-create-form input[type="submit"] { width: 100%; } }

.company-settings-form {
  gap: 18px;
  max-width: none;
  width: 100%;
}

.company-settings-header > div > p:last-child {
  color: var(--muted);
  margin: 8px 0 0;
  max-width: 720px;
}

.company-settings-identity {
  align-items: center;
  display: flex;
  gap: 22px;
  padding: 24px;
}

.company-settings-logo-preview {
  align-items: center;
  background: #f0f2f3;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #17191a;
  display: flex;
  flex: 0 0 104px;
  font-size: 36px;
  font-weight: 800;
  height: 104px;
  justify-content: center;
  overflow: hidden;
  width: 104px;
}

.company-settings-logo-preview img {
  height: 100%;
  object-fit: contain;
  padding: 10px;
  width: 100%;
}

.company-settings-identity-copy {
  min-width: 0;
}

.company-settings-identity-copy h2 {
  font-size: 22px;
  margin: 2px 0 5px;
}

.company-settings-identity-copy > p:not(.eyebrow) {
  color: var(--muted);
  margin: 0 0 14px;
}

.record-form label.company-logo-upload {
  align-items: center;
  cursor: pointer;
  display: inline-flex;
  margin: 0;
  width: fit-content;
}

.company-logo-upload > span {
  background: #17191a;
  border: 1px solid #17191a;
  border-radius: 6px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 9px 13px;
}

.company-logo-upload:focus-within > span,
.company-logo-upload:hover > span {
  background: #34383a;
}

.company-logo-upload input {
  height: 1px;
  opacity: 0;
  overflow: hidden;
  position: absolute;
  width: 1px;
}

.company-logo-remove {
  display: inline-flex;
  margin-left: 12px;
}

.company-settings-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, .8fr);
}

.plan-limit-grid,
.plan-usage-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.plan-usage-grid article {
  background: #f7f9fa;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px;
}

.plan-usage-grid span {
  color: var(--muted);
  display: block;
  font-size: 10px;
  font-weight: 800;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.plan-usage-grid strong {
  color: var(--text);
  display: block;
  font-size: 15px;
}

.company-settings-panel {
  align-content: start;
  display: grid;
  gap: 17px;
}

.company-settings-panel header h2 {
  font-size: 20px;
  margin: 2px 0 0;
}

.company-settings-panel .field-hint {
  color: var(--muted);
  font-size: 13px;
  margin: -8px 0 0;
}

.company-sector-colors {
  border: 1px solid var(--line);
  border-radius: 6px;
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 14px;
}

.company-sector-colors legend {
  float: none;
  font-size: 13px;
  font-weight: 800;
  margin: 0;
  padding: 0 4px;
  width: auto;
}

.company-sector-colors p {
  color: var(--muted);
  font-size: 12px;
  margin: 0;
}

.company-sector-colors > div,
.company-sector-color-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.company-sector-colors label,
.company-sector-color-grid label {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  margin: 0;
  padding: 10px 12px;
}

.company-sector-colors input[type="color"],
.company-sector-color-grid input[type="color"] {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 5px;
  cursor: pointer;
  flex: 0 0 auto;
  height: 38px;
  padding: 3px;
  width: 52px;
}

.company-settings-actions {
  display: flex;
  justify-content: flex-end;
}

@media (max-width: 640px) {
  .company-sector-colors > div,
  .company-sector-color-grid {
    grid-template-columns: 1fr;
  }
}

.company-settings-actions input[type="submit"] {
  min-width: 150px;
}

@media (max-width: 767px) {
  .company-settings-identity {
    align-items: flex-start;
    padding: 18px;
  }

  .company-settings-logo-preview {
    flex-basis: 76px;
    height: 76px;
    width: 76px;
  }

  .company-settings-grid {
    grid-template-columns: 1fr;
  }

  .plan-limit-grid,
  .plan-usage-grid {
    grid-template-columns: 1fr;
  }

  .company-logo-remove {
    display: flex;
    margin: 12px 0 0;
  }

  .company-settings-actions input[type="submit"] {
    width: 100%;
  }
}

.form-actions,
.table-actions {
  align-items: center;
  display: flex;
  gap: 10px;
}

.table-actions {
  justify-content: flex-end;
  white-space: nowrap;
}

.table-actions form {
  margin: 0;
}

.team-members-table td {
  vertical-align: middle;
}

.team-members-table .team-actions-heading,
.team-members-table .team-actions-cell {
  text-align: right;
  width: 210px;
}

.team-members-table .table-actions {
  justify-content: flex-end;
  min-height: 38px;
}

.team-actions-empty {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

@media (max-width: 767.98px) {
  .team-members-table .team-actions-heading,
  .team-members-table .team-actions-cell {
    width: 170px;
  }
}

.permission-heading {
  align-items: end;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 20px;
  justify-content: space-between;
  margin-top: 10px;
  padding-bottom: 14px;
}

.permission-heading span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.permission-heading p {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
}

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

.permission-group {
  border: 1px solid var(--line);
  border-radius: 6px;
  margin: 0;
  padding: 14px;
}

.permission-group legend {
  color: var(--text);
  float: none;
  font-size: 13px;
  font-weight: 700;
  margin: 0 0 8px;
  padding: 0;
  width: auto;
}

.record-form .permission-option {
  align-items: start;
  cursor: pointer;
  display: flex;
  gap: 10px;
  padding: 8px 0;
  text-transform: none;
}

.permission-option input {
  margin-top: 3px;
}

.permission-option span,
.user-access-summary {
  display: grid;
  gap: 3px;
}

.protected-profile-badge {
  background: #e8ecee;
  border-radius: 4px;
  color: #3f484c;
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  margin-left: 6px;
  padding: 3px 6px;
  text-transform: uppercase;
  vertical-align: 2px;
}

.permission-option strong {
  color: var(--text);
  font-size: 14px;
}

.permission-option small,
.user-access-summary span,
table td small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
}

.user-access-summary {
  background: #f5f7f7;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 14px;
}

@media (max-width: 720px) {
  .permission-groups {
    grid-template-columns: 1fr;
  }

  .permission-heading {
    align-items: start;
    flex-direction: column;
  }
}

.company-edit-panel,
.company-onboarding-panel {
  padding: 0;
}

.company-edit-form,
.company-onboarding-form {
  max-width: 760px;
  padding: 24px;
}

.form-section-heading {
  border-bottom: 1px solid var(--line);
  margin-bottom: 2px;
  padding-bottom: 14px;
}

.form-section-heading span {
  color: var(--muted);
  display: block;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.form-section-heading h2 {
  font-size: 18px;
}

.company-owner-heading {
  margin-top: 16px;
}

.form-guidance {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  margin: -6px 0 2px;
}

.owner-selector,
.owner-fields {
  display: grid;
  gap: 16px;
}

.owner-mode-selector {
  background: #f1f3f4;
  border-radius: 6px;
  display: grid;
  gap: 4px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 4px;
}

.record-form .owner-mode-selector label {
  cursor: pointer;
  display: block;
  margin: 0;
  position: relative;
}

.owner-mode-selector input {
  opacity: 0;
  pointer-events: none;
  position: absolute;
}

.owner-mode-selector span {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 5px;
  color: var(--muted);
  display: flex;
  font-size: 13px;
  justify-content: center;
  min-height: 40px;
  text-transform: none;
}

.owner-mode-selector input:checked + span {
  background: #ffffff;
  border-color: var(--line);
  color: var(--text);
  box-shadow: 0 1px 3px rgba(23, 32, 38, 0.08);
}

.owner-mode-selector input:focus-visible + span {
  outline: 2px solid #202426;
  outline-offset: 1px;
}

.company-edit-actions {
  align-items: center;
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

.check-field {
  align-items: center;
  display: flex !important;
  flex-direction: row;
}

.form-errors {
  background: #fff7e3;
  border: 1px solid #ead39b;
  border-radius: 6px;
  color: #6c4b00;
  padding: 12px;
}

.form-errors ul {
  margin: 8px 0 0;
  padding-left: 20px;
}

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

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

.access-report-panel {
  overflow: visible;
}

.admin-company-search {
  align-items: end;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(260px, 1fr) auto;
  padding: 16px;
}

.admin-company-search label {
  color: var(--muted);
  display: grid;
  font-size: 12px;
  font-weight: 800;
  gap: 7px;
  text-transform: uppercase;
}

.admin-company-search input[type="search"] {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  min-height: 42px;
  padding: 0 12px;
  text-transform: none;
}

.admin-company-search input[type="submit"] {
  min-height: 42px;
}

.admin-company-metrics {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.admin-company-detail-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
}

.admin-company-definition-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 16px;
}

.admin-company-definition-list div {
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 4px;
  grid-template-columns: minmax(130px, .45fr) minmax(0, 1fr);
  padding-bottom: 12px;
}

.admin-company-definition-list div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.admin-company-definition-list dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.admin-company-definition-list dd {
  margin: 0;
}

.admin-company-list {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.admin-company-list article {
  background: #f7f9fa;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: grid;
  gap: 4px;
  padding: 12px;
}

.admin-company-list span,
.admin-company-list small,
.admin-company-city-card summary span,
.admin-company-city-card td small {
  color: var(--muted);
}

.admin-company-city-list {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.admin-company-city-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.admin-company-city-card > summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  list-style: none;
  padding: 14px 16px;
}

.admin-company-city-card > summary::-webkit-details-marker {
  display: none;
}

.admin-company-city-card > summary::after {
  color: var(--muted);
  content: "+";
  font-weight: 800;
}

.admin-company-city-card[open] > summary {
  border-bottom: 1px solid var(--line);
}

.admin-company-city-card[open] > summary::after {
  content: "-";
}

.admin-company-city-card summary strong,
.admin-company-city-card summary span,
.admin-company-city-card td strong,
.admin-company-city-card td small {
  display: block;
}

.access-report-filters {
  align-items: end;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(210px, 1.3fr) minmax(190px, 1fr) 150px 150px auto;
  padding: 16px;
}

.client-access-report-filters {
  grid-template-columns: minmax(260px, 1fr) minmax(150px, 190px) minmax(150px, 190px) auto;
}

.access-last-seen {
  font-size: 17px !important;
}

.access-report-filters input[type="search"],
.access-report-filters input[type="date"],
.access-report-filters select {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  font-size: 14px;
  min-height: 42px;
  padding: 0 10px;
  width: 100%;
}

.access-report-filters input[type="submit"] {
  align-items: center;
  background: var(--accent);
  border: 0;
  border-radius: 6px;
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  font-size: 14px;
  font-weight: 700;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
}

.access-report-table table {
  min-width: 980px;
}

.access-date {
  white-space: nowrap;
}

.table-secondary-text {
  color: var(--muted);
  display: block;
  margin-top: 3px;
}

.legacy-company {
  color: var(--muted);
  font-size: 13px;
}

.access-method-badge {
  background: #eef3f3;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #263033;
  display: inline-flex;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  padding: 6px 9px;
  white-space: nowrap;
}

.access-user-agent {
  color: var(--muted);
  font-size: 13px;
  max-width: 380px;
  overflow-wrap: anywhere;
}

.empty-table-cell {
  color: var(--muted);
  padding: 36px 16px;
  text-align: center;
}

.access-pagination {
  align-items: center;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin: 0;
  padding: 14px 16px;
}

.access-pagination span {
  color: var(--muted);
  font-size: 13px;
}

.action-list {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.action-list a,
.empty-state {
  padding: 16px;
}

.map-sidebar-project-field {
  grid-column: 1 / -1;
}

.project-description {
  color: var(--muted);
  line-height: 1.55;
  margin: 10px 0 0;
  max-width: 720px;
  white-space: pre-line;
}

.project-back-link {
  color: var(--muted);
  display: inline-flex;
  font-size: 13px;
  gap: 6px;
  margin-bottom: 16px;
  text-decoration: none;
}

.project-back-link:hover {
  color: var(--text);
}

.project-list,
.project-resource-list {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}

.project-list-item,
.project-resource-row {
  align-items: center;
  color: var(--text);
  display: grid;
  gap: 14px;
  min-height: 74px;
  padding: 14px 16px;
  text-decoration: none;
}

.project-list-item {
  grid-template-columns: 38px minmax(0, 1fr) auto auto 18px;
}

.project-resource-row {
  grid-template-columns: 38px minmax(0, 1fr) auto 18px;
}

.project-list-item + .project-list-item,
.project-resource-row + .project-resource-row {
  border-top: 1px solid var(--line);
}

.project-list-item:hover,
.project-resource-row:hover {
  background: #f7f8f8;
}

.project-list-icon,
.project-resource-icon {
  align-items: center;
  background: #eef1f2;
  border-radius: 6px;
  color: #252a2d;
  display: inline-flex;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.project-list-icon svg,
.project-resource-icon svg,
.project-list-chevron,
.project-resource-chevron {
  fill: none;
  height: 19px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  width: 19px;
}

.favorites-total {
  align-items: center;
  background: #fff9e5;
  border: 1px solid #e8d48c;
  border-radius: 6px;
  color: #71570c;
  display: flex;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
}

.favorites-total svg,
.favorite-card-icon svg,
.favorite-open svg,
.favorite-remove svg,
.favorites-empty-icon svg {
  fill: none;
  height: 19px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  width: 19px;
}

.favorites-total svg,
.favorites-empty-icon svg { fill: currentColor; }
.favorite-city-groups { display: grid; gap: 32px; }
.favorite-city-group { min-width: 0; }
.favorite-city-heading {
  align-items: end;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 12px;
}
.favorite-city-heading > div:first-child { min-width: 0; }
.favorite-city-heading > div:first-child > span {
  color: #1f6f63;
  display: block;
  font-size: 10px;
  font-weight: 800;
  margin-bottom: 3px;
  text-transform: uppercase;
}
.favorite-city-heading h2 { font-size: 21px; margin: 0; }
.favorite-city-heading small { color: var(--muted); display: block; font-size: 11px; margin-top: 4px; }
.favorite-city-heading-actions { align-items: center; display: flex; flex: 0 0 auto; gap: 12px; }
.favorite-city-heading-actions strong { color: var(--muted); font-size: 11px; font-weight: 700; }
.favorite-city-heading-actions a {
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--accent-strong);
  font-size: 11px;
  font-weight: 800;
  padding: 7px 10px;
  text-decoration: none;
}
.favorite-city-heading-actions a:hover { background: #edf5f2; border-color: #bdd4ce; }
.favorite-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

.favorite-card {
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: flex;
  gap: 12px;
  min-height: 86px;
  padding: 12px;
}

.favorite-card-icon {
  align-items: center;
  background: #fff9e5;
  border: 1px solid #e8d48c;
  border-radius: 6px;
  color: #8a6905;
  display: inline-flex;
  flex: 0 0 38px;
  height: 38px;
  justify-content: center;
}

.favorite-card-content { display: grid; gap: 3px; min-width: 0; }
.favorite-card-content > span, .favorite-card-content small { color: var(--muted); font-size: 11px; }
.favorite-card-content strong { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.favorite-card-actions { display: flex; gap: 5px; margin-left: auto; }
.favorite-open, .favorite-remove {
  align-items: center;
  background: #f4f6f7;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--accent-strong);
  display: inline-flex;
  height: 32px;
  justify-content: center;
  padding: 0;
  width: 32px;
}
.favorite-remove { background: #fff5f5; color: #944343; }
.favorite-open:hover { background: #e9edef; }
.favorite-remove:hover { background: #ffe9e9; }
.favorites-empty-state { align-items: center; display: grid; justify-items: center; min-height: 290px; text-align: center; }
.favorites-empty-icon { color: #9a7607; }

@media (max-width: 575.98px) {
  .favorite-city-heading { align-items: flex-start; flex-direction: column; gap: 10px; }
  .favorite-city-heading-actions { justify-content: space-between; width: 100%; }
}

.project-list-content,
.project-resource-main {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.project-list-content strong,
.project-resource-main strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-list-content small,
.project-resource-main small,
.project-list-meta,
.project-resource-meta {
  color: var(--muted);
  font-size: 13px;
}

.project-list-content small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-list-chevron,
.project-resource-chevron {
  color: #879096;
}

.project-workspace {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 6px;
  margin: 8px 0 34px;
  overflow: hidden;
}

.project-workspace-overview {
  align-items: center;
  background: #f5f7f7;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  padding: 21px 22px;
}

.project-workspace-overview .eyebrow { margin-bottom: 5px; }
.project-workspace-overview h2 { font-size: 20px; margin: 0; }
.project-workspace-overview p:not(.eyebrow) { color: var(--muted); font-size: 13px; margin: 5px 0 0; }

.project-workspace-open {
  align-items: center;
  background: #1f6f63;
  border-radius: 6px;
  color: #ffffff;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 800;
  gap: 14px;
  min-height: 42px;
  padding: 0 14px;
  text-decoration: none;
}

.project-workspace-open:hover { background: #15594f; color: #ffffff; }
.project-workspace-open span:last-child { font-size: 18px; line-height: 1; }

.project-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.project-summary div {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 17px 20px;
}

.project-summary div + div { border-left: 1px solid var(--line); }

.project-summary span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.project-summary strong {
  font-size: 22px;
}

.project-summary small { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.project-section + .project-section {
  margin-top: 34px;
}

.project-section-heading {
  align-items: end;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin-bottom: 14px;
}

.project-section-empty {
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  color: var(--muted);
  padding: 28px 4px;
}

.project-next-step {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
}

.project-next-step strong { color: var(--text); }
.project-next-step .secondary-action { margin-left: auto; }

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

.project-point-card {
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  display: grid;
  gap: 12px;
  grid-template-columns: 5px minmax(0, 1fr) auto 18px;
  min-height: 88px;
  padding: 14px;
  text-decoration: none;
}

.project-point-card:hover { background: #f7f8f8; border-color: #cfd5d7; color: var(--text); }
.project-point-card .project-point-color { height: 44px; width: 5px; }
.project-point-card-main, .project-point-card-meta { display: grid; gap: 4px; min-width: 0; }
.project-point-card-main strong { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.project-point-card-main small, .project-point-card-meta small { color: var(--muted); font-size: 12px; }
.project-point-card-meta { justify-items: end; text-align: right; }
.project-point-card-meta strong { font-size: 12px; }
.project-point-card-arrow { color: var(--accent-strong); font-size: 19px; }

@media (max-width: 760px) {
  .project-workspace-overview { align-items: stretch; flex-direction: column; gap: 15px; }
  .project-workspace-open { justify-content: space-between; }
  .project-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-summary div:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
  .project-summary div:nth-child(4) { border-top: 1px solid var(--line); }
}

@media (max-width: 480px) {
  .project-summary { grid-template-columns: 1fr; }
  .project-summary div + div { border-left: 0; border-top: 1px solid var(--line); }
  .project-summary div { padding: 15px; }
  .project-point-card { grid-template-columns: 5px minmax(0, 1fr) 18px; }
  .project-point-card-meta { display: none; }
  .project-next-step .secondary-action { margin-left: 0; width: 100%; }
}

.project-rais-section {
  border-bottom: 1px solid var(--line);
  border-top: 4px solid #136f63;
  margin-bottom: 34px;
  padding: 20px 0 22px;
}

.project-rais-overview {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 18px;
}

.project-rais-overview article {
  background: #f6faf8;
  border: 1px solid #d7e8e2;
  min-height: 104px;
  padding: 16px;
}

.project-rais-overview span,
.project-rais-city-row small {
  color: var(--muted);
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.project-rais-overview strong {
  display: block;
  font-size: 28px;
  margin-top: 12px;
}

.project-rais-city-list {
  border: 1px solid var(--line);
}

.project-rais-city-row {
  align-items: center;
  background: #ffffff;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1.2fr) minmax(120px, 1fr) 96px;
  padding: 13px 14px;
}

.project-rais-city-row:first-child {
  border-top: 0;
}

.project-rais-city-row span strong {
  display: block;
  font-size: 13px;
  margin-bottom: 4px;
}

.project-rais-city-row i {
  background: #e6eeee;
  display: block;
  height: 9px;
}

.project-rais-city-row b {
  background: #136f63;
  display: block;
  height: 100%;
  min-width: 2px;
}

.project-rais-city-row em {
  font-size: 13px;
  font-style: normal;
  font-weight: 800;
  text-align: right;
}

.project-rais-note {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  margin: 12px 0 0;
}

.project-editor {
  padding: 24px;
}

.project-form {
  max-width: 760px;
}

.project-visibility-selector {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 8px 0 0;
  padding: 22px 0 0;
}

.project-visibility-selector legend {
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
}

.project-visibility-selector > p,
.project-collaborator-selector > small {
  color: var(--muted);
  display: block;
  font-size: 13px;
  margin: 0 0 12px;
}

.project-visibility-options {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.project-visibility-option {
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  gap: 10px;
  padding: 14px;
  text-transform: none;
}

.project-visibility-option:has(input:checked) {
  background: #f1f3f5;
  border-color: #6c757d;
}

.project-visibility-option input {
  flex: 0 0 auto;
  margin-top: 3px;
}

.project-visibility-option span,
.project-collaborator-options span {
  display: grid;
  gap: 3px;
}

.project-visibility-option small,
.project-collaborator-options small {
  color: var(--muted);
  font-weight: 400;
}

.project-collaborator-selector {
  margin-top: 18px;
}

.project-collaborator-selector[hidden] {
  display: none;
}

.project-collaborator-selector > strong {
  display: block;
  font-size: 14px;
  margin-bottom: 3px;
}

.project-collaborator-options {
  border: 1px solid var(--line);
  border-radius: 6px;
  max-height: 260px;
  overflow-y: auto;
}

.project-collaborator-search {
  margin-bottom: 8px;
  width: 100%;
}

.project-collaborator-options label {
  align-items: center;
  cursor: pointer;
  display: flex;
  gap: 12px;
  padding: 11px 14px;
  text-transform: none;
}

.project-collaborator-options label + label {
  border-top: 1px solid var(--line);
}

.project-collaborator-options label:hover {
  background: #f7f8f8;
}

.project-collaborator-options input {
  flex: 0 0 auto;
  height: 17px;
  width: 17px;
}

.project-map-selector {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 8px 0 0;
  padding: 22px 0 0;
}

.project-map-selector legend {
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 12px;
}

.project-map-options {
  border: 1px solid var(--line);
  border-radius: 6px;
  max-height: 330px;
  overflow-y: auto;
}

.project-map-options label {
  align-items: center;
  cursor: pointer;
  display: flex;
  gap: 12px;
  padding: 12px 14px;
  text-transform: none;
}

.project-map-options label + label {
  border-top: 1px solid var(--line);
}

.project-map-options label:hover {
  background: #f7f8f8;
}

.project-map-options input {
  flex: 0 0 auto;
  height: 17px;
  width: 17px;
}

.project-map-options span {
  display: grid;
  gap: 3px;
}

.project-map-options small {
  color: var(--muted);
  font-weight: 400;
}

.project-point-color {
  background: var(--point-color, #252a2d);
  border-radius: 50%;
  display: inline-block;
  height: 10px;
  margin-right: 8px;
  width: 10px;
}

.project-visibility-badge {
  background: #f1f3f5;
  border-radius: 999px;
  color: #495057;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 8px;
  white-space: nowrap;
}

.project-empty-state {
  align-items: start;
  display: grid;
  gap: 14px;
}

.notification-page-header {
  align-items: center;
}

.notification-mark-all {
  border: 0;
}

.notification-filters {
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 24px;
  margin-bottom: 18px;
}

.notification-filters a {
  align-items: center;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  display: inline-flex;
  font-size: 14px;
  gap: 7px;
  margin-bottom: -1px;
  min-height: 40px;
  text-decoration: none;
}

.notification-filters a:hover,
.notification-filters a.active {
  border-bottom-color: var(--text);
  color: var(--text);
}

.notification-filters a span {
  align-items: center;
  background: #e8ebec;
  border-radius: 999px;
  display: inline-flex;
  font-size: 11px;
  height: 21px;
  justify-content: center;
  min-width: 21px;
  padding: 0 6px;
}

.notification-page-list {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}

.notification-page-item-form + .notification-page-item-form {
  border-top: 1px solid var(--line);
}

.notification-page-item {
  align-items: start;
  background: #ffffff;
  border: 0;
  color: var(--text);
  cursor: pointer;
  display: grid;
  gap: 14px;
  grid-template-columns: 14px minmax(0, 1fr) 20px;
  min-height: 92px;
  padding: 17px 18px;
  text-align: left;
  width: 100%;
}

.notification-page-item:hover,
.notification-page-item:focus-visible {
  background: #f7f8f8;
}

.notification-page-item.unread {
  background: #f8fbfb;
}

.notification-page-item:focus-visible {
  box-shadow: inset 0 0 0 2px rgba(37, 42, 45, 0.18);
  outline: none;
}

.notification-page-content {
  display: grid;
  gap: 5px;
}

.notification-page-title {
  align-items: center;
  display: flex;
  gap: 8px;
}

.notification-page-title strong {
  font-size: 15px;
}

.notification-page-content > span:not(.notification-page-title) {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.notification-page-chevron {
  fill: none;
  height: 20px;
  margin-top: 2px;
  stroke: #879096;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  width: 20px;
}

.notification-page-empty {
  padding: 52px 24px;
  text-align: center;
}

.notification-page-empty p {
  color: var(--muted);
  margin: 8px 0 0;
}

.notification-pagination {
  background: #ffffff;
  border: 1px solid var(--line);
  border-top: 0;
}

.empty-state p {
  color: var(--muted);
  margin: 8px 0 0;
}

.dashboard-header {
  align-items: end;
  display: flex;
  gap: 28px;
  justify-content: space-between;
  margin-bottom: 26px;
  padding: 4px 0 2px;
}

.dashboard-heading > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
  margin: 10px 0 13px;
}

.dashboard-company-context {
  align-items: center;
  color: #4f5b61;
  display: inline-flex;
  font-size: 13px;
  font-weight: 700;
  gap: 7px;
}

.dashboard-company-context i {
  background: #6b7479;
  border-radius: 50%;
  height: 7px;
  width: 7px;
}

.dashboard-actions,
.dashboard-onboarding-actions {
  align-items: center;
  display: flex;
  gap: 9px;
}

.dashboard-action {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 6px;
  display: inline-flex;
  font-size: 14px;
  font-weight: 700;
  gap: 9px;
  justify-content: center;
  min-height: 42px;
  padding: 0 15px;
  text-decoration: none;
}

.dashboard-action:hover,
.dashboard-action:focus-visible {
  text-decoration: none;
}

.dashboard-action svg {
  fill: none;
  height: 18px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
  width: 18px;
}

.dashboard-action-primary {
  background: var(--action);
  color: #ffffff;
}

.dashboard-action-primary:hover,
.dashboard-action-primary:focus-visible {
  background: var(--action-strong);
  color: #ffffff;
}

.dashboard-action-secondary {
  background: #ffffff;
  border-color: #ccd4d7;
  color: var(--text);
}

.dashboard-action-secondary:hover,
.dashboard-action-secondary:focus-visible {
  background: #eef1f2;
  color: var(--text);
}

.dashboard-metrics {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 34px;
}

.dashboard-metric {
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  display: grid;
  gap: 13px;
  grid-template-columns: 42px minmax(0, 1fr) 18px;
  min-height: 108px;
  padding: 15px;
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.dashboard-metric:hover,
.dashboard-metric:focus-visible {
  border-color: #bec8cc;
  box-shadow: 0 10px 28px rgba(23, 32, 38, 0.08);
  color: var(--text);
  outline: none;
  text-decoration: none;
  transform: translateY(-1px);
}

.dashboard-metric-icon {
  align-items: center;
  background: #edf0f1;
  border-radius: 7px;
  color: #475258;
  display: inline-flex;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.dashboard-metric-projects {
  background: #edf0f7;
  color: #52658a;
}

.dashboard-metric-maps {
  background: #eef1f2;
  color: #4e585d;
}

.dashboard-metric-points {
  background: #f6eceb;
  color: #a24e46;
}

.dashboard-metric-analyses {
  background: #f3eef7;
  color: #76558a;
}

.dashboard-metric-icon svg,
.dashboard-metric-arrow,
.dashboard-list-icon svg,
.dashboard-map-thumbnail svg,
.dashboard-point-marker svg,
.dashboard-list-chevron,
.dashboard-onboarding-icon svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.dashboard-metric-icon svg {
  height: 21px;
  width: 21px;
}

.dashboard-metric-content {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.dashboard-metric-content > strong {
  font-size: 25px;
  line-height: 1;
  margin-bottom: 5px;
}

.dashboard-metric-content > span {
  font-size: 13px;
  font-weight: 700;
}

.dashboard-metric-content small {
  color: var(--muted);
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-metric-arrow,
.dashboard-list-chevron {
  color: #8c969b;
  height: 18px;
  width: 18px;
}

.dashboard-work-grid {
  display: grid;
  gap: 34px;
  grid-template-columns: minmax(0, 1.18fr) minmax(340px, 0.82fr);
  margin-bottom: 36px;
}

.dashboard-section {
  min-width: 0;
}

.dashboard-section-header {
  align-items: end;
  border-bottom: 1px solid #cfd7da;
  display: flex;
  justify-content: space-between;
  min-height: 58px;
  padding-bottom: 13px;
}

.dashboard-section-header .eyebrow {
  font-size: 11px;
  margin-bottom: 5px;
}

.dashboard-section-header h2 {
  font-size: 19px;
}

.dashboard-section-header > a {
  color: #4e595f;
  font-size: 12px;
  padding: 6px 0;
}

.dashboard-list,
.dashboard-point-list {
  background: #ffffff;
}

.dashboard-list-item {
  align-items: center;
  color: var(--text);
  display: grid;
  gap: 12px;
  min-height: 76px;
  padding: 11px 12px;
  text-decoration: none;
}

.dashboard-list-item + .dashboard-list-item,
.dashboard-point-item + .dashboard-point-item {
  border-top: 1px solid #e7ebec;
}

.dashboard-list-item:hover,
.dashboard-list-item:focus-visible,
.dashboard-point-item:hover,
.dashboard-point-item:focus-visible {
  background: #f6f8f8;
  color: var(--text);
  outline: none;
  text-decoration: none;
}

.dashboard-project-item {
  grid-template-columns: 38px minmax(0, 1fr) auto 18px;
}

.dashboard-map-item {
  grid-template-columns: 48px minmax(0, 1fr) 18px;
}

.dashboard-list-icon,
.dashboard-map-thumbnail {
  align-items: center;
  background: #edf0f7;
  border-radius: 6px;
  color: #52658a;
  display: inline-flex;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.dashboard-map-thumbnail {
  background: #eef1f2;
  color: #4e585d;
  height: 48px;
  width: 48px;
}

.dashboard-list-icon svg {
  height: 19px;
  width: 19px;
}

.dashboard-map-thumbnail svg {
  height: 22px;
  width: 22px;
}

.dashboard-list-content {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.dashboard-list-content > strong,
.dashboard-list-content > small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-list-content > strong {
  font-size: 14px;
}

.dashboard-list-content > small {
  color: var(--muted);
  font-size: 12px;
}

.dashboard-list-stats {
  display: flex;
  gap: 6px;
  margin-top: 3px;
}

.dashboard-list-stats i,
.dashboard-resource-context {
  background: #edf0f1;
  border-radius: 4px;
  color: #59656b;
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
  padding: 3px 6px;
  width: fit-content;
}

.dashboard-list-date {
  color: #7a858a;
  font-size: 11px;
  white-space: nowrap;
}

.dashboard-list-empty {
  align-items: start;
  color: var(--muted);
  display: grid;
  font-size: 13px;
  gap: 6px;
  min-height: 118px;
  padding: 20px 12px;
}

.dashboard-list-empty strong {
  color: var(--text);
  font-size: 14px;
}

.dashboard-list-empty a {
  font-size: 12px;
  margin-top: 4px;
  width: fit-content;
}

.dashboard-points-section {
  margin-bottom: 20px;
}

.dashboard-point-item {
  align-items: center;
  color: var(--text);
  display: grid;
  gap: 14px;
  grid-template-columns: 40px minmax(0, 1fr) minmax(150px, 0.35fr) 18px;
  min-height: 72px;
  padding: 10px 12px;
  text-decoration: none;
}

.dashboard-point-marker {
  align-items: center;
  background: color-mix(in srgb, var(--point-color) 12%, white);
  border-radius: 7px;
  color: var(--point-color);
  display: inline-flex;
  height: 40px;
  justify-content: center;
  width: 40px;
}

.dashboard-point-marker svg {
  height: 21px;
  width: 21px;
}

.dashboard-point-analysis {
  display: grid;
  gap: 2px;
}

.dashboard-point-analysis strong {
  font-size: 12px;
}

.dashboard-point-analysis small {
  color: var(--muted);
  font-size: 11px;
}

.dashboard-onboarding {
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--action);
  border-radius: 6px;
  display: grid;
  gap: 18px;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  min-height: 148px;
  padding: 24px;
}

.dashboard-onboarding-icon {
  align-items: center;
  background: #edf0f1;
  border-radius: 8px;
  color: var(--text);
  display: inline-flex;
  height: 54px;
  justify-content: center;
  width: 54px;
}

.dashboard-onboarding-icon svg {
  height: 24px;
  width: 24px;
}

.dashboard-onboarding h2 {
  font-size: 20px;
}

.dashboard-onboarding p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.5;
  margin: 7px 0 0;
}

@media (max-width: 980px) {
  .page-header {
    align-items: stretch;
    flex-direction: column;
  }

  .dashboard-header {
    align-items: stretch;
    flex-direction: column;
  }

  .dashboard-actions {
    justify-content: flex-start;
  }

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

  .dashboard-work-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-onboarding {
    grid-template-columns: 54px minmax(0, 1fr);
  }

  .dashboard-onboarding-actions {
    grid-column: 1 / -1;
    padding-left: 72px;
  }

  .project-header .page-actions,
  .project-section-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .project-header .page-actions form,
  .project-header .page-actions .primary-action,
  .project-header .page-actions .secondary-action {
    width: 100%;
  }

  .app-topbar {
    gap: 14px;
    padding: 0 14px;
  }

  .topbar-navigation {
    margin-left: auto;
  }

  .global-search {
    flex-basis: 420px;
  }

  .user-menu-name {
    display: none;
  }

  .app-main {
    padding: 20px;
  }

  .search-bar,
  .project-search-bar.with-clear-action,
  .filters-bar,
  .access-report-filters,
  .poi-competition-grid,
  .content-grid,
  .detail-grid,
  .poi-report-grid {
    grid-template-columns: 1fr;
  }

  .project-search-bar.with-clear-action {
    width: auto;
  }

  .project-search-bar,
  .project-search-bar.with-clear-action {
    grid-template-columns: max-content max-content;
    width: 100%;
  }

  .project-search-bar input[type="search"] {
    grid-column: 1 / -1;
    width: 100%;
  }

  .project-search-submit,
  .project-search-bar .secondary-action {
    justify-self: start;
  }

  .access-report-filters .filter-actions {
    justify-content: flex-start;
  }

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

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

  .account-settings-modal .modal-content {
    grid-template-columns: 86px minmax(0, 1fr);
  }

  .account-settings-sidebar {
    padding: 18px 10px;
  }

  .account-settings-heading {
    justify-content: center;
    padding: 0;
  }

  .account-settings-heading > div,
  .account-settings-navigation .nav-link span {
    display: none;
  }

  .account-settings-navigation .nav-link {
    justify-content: center;
    padding: 0;
  }

  .poi-report-aside {
    position: static;
  }

  .filter-actions {
    align-items: stretch;
  }

  .filter-actions input[type="submit"],
  .filter-actions .secondary-action {
    flex: 1;
  }

  .map-stage {
    grid-template-rows: minmax(0, 1fr);
  }

  .map-address-toggle {
    left: 12px;
    top: 12px;
  }

  .map-address-search {
    left: 8px;
    top: 62px;
    width: calc(100vw - 16px);
  }

  .map-drawing-tools {
    left: 12px;
    top: 62px;
  }

  .map-legend {
    bottom: 12px;
    left: 12px;
    max-height: 38vh;
    width: calc(100vw - 24px);
  }

  .map-legend-show {
    bottom: 12px;
    left: 12px;
  }

  .map-panel-toggle {
    right: 12px;
    top: 12px;
  }

  .map-quick-save {
    right: 212px;
    top: 12px;
  }

  .map-export-button {
    right: 162px;
    top: 12px;
  }

  .map-assistant-toggle {
    right: 112px;
    top: 12px;
  }

  .map-analysis-toggle {
    right: 62px;
    top: 12px;
  }

  .map-assistant-panel {
    padding: 0 8px 8px;
  }

  .map-assistant-shell {
    padding: 14px;
  }

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

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

  .summary-card-wide {
    grid-column: 1 / -1;
  }

  .change-list li {
    align-items: start;
    grid-template-columns: 1fr;
  }

  .auth-shell-split {
    grid-template-columns: 1fr;
  }

  .auth-visual {
    min-height: 360px;
  }

  .auth-form-side {
    padding: 28px 20px;
  }

  .login-page {
    grid-template-columns: 1fr;
  }

  .login-visual {
    display: none;
  }

  .login-form-side {
    min-height: 100vh;
    min-height: 100svh;
    padding: 36px 20px;
  }

  .login-brand {
    font-size: 28px;
    margin-bottom: 34px;
  }
}

@media (max-width: 680px) {
  .app-topbar {
    gap: 7px;
    min-height: 58px;
    padding: 0 8px;
  }

  .topbar-start {
    gap: 3px;
  }

  .topbar-company-name,
  .topbar-company-switcher {
    gap: 5px;
    max-width: 130px;
  }

  .topbar-company-name {
    padding: 0 5px;
  }

  .topbar-company-switcher {
    padding-left: 5px;
  }

  .topbar-company-switcher select {
    max-width: 100px;
  }

  .brand-logo {
    height: 24px;
    max-width: 74px;
  }

  .global-search {
    flex: 0 0 38px;
    margin: 0 0 0 auto;
    min-width: 38px;
  }

  .global-search-mobile-toggle {
    display: inline-flex;
    height: 38px;
    width: 38px;
  }

  .global-search-field {
    background: #ffffff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 10px 24px rgba(23, 32, 38, 0.1);
    display: none;
    left: 0;
    padding: 10px 12px;
    position: fixed;
    right: 0;
    top: 58px;
    z-index: 1085;
  }

  .global-search.mobile-open .global-search-field {
    display: block;
  }

  .global-search-field .global-search-input {
    height: 38px;
    padding-left: 37px;
    padding-right: 34px;
  }

  .global-search-field .global-search-icon {
    left: 23px;
  }

  .global-search-field .global-search-clear {
    height: 28px;
    right: 17px;
    top: 15px;
    width: 28px;
  }

  .global-search-field .global-search-results {
    left: 12px;
    max-height: calc(100vh - 132px);
    right: 12px;
    top: calc(100% + 1px);
  }

  .topbar-navigation {
    gap: 4px;
  }
}

@media (max-width: 480px) {
  .app-topbar .brand,
  .topbar-company-name svg,
  .topbar-company-switcher svg {
    display: none;
  }

  .topbar-company-name,
  .topbar-company-switcher {
    max-width: 105px;
  }

  .topbar-company-switcher select {
    max-width: 105px;
  }

  .system-menu-toggle,
  .topbar-icon-link,
  .notification-toggle,
  .user-menu-toggle {
    height: 38px;
  }

  .dashboard-metrics {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 560px) {
  h1 {
    font-size: 28px;
  }

  .dashboard-actions,
  .dashboard-onboarding-actions {
    align-items: stretch;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .dashboard-metrics {
    gap: 9px;
    margin-bottom: 28px;
  }

  .dashboard-metric {
    min-height: 94px;
    padding: 12px;
  }

  .dashboard-project-item {
    grid-template-columns: 38px minmax(0, 1fr) 18px;
  }

  .dashboard-list-date {
    display: none;
  }

  .dashboard-point-item {
    grid-template-columns: 40px minmax(0, 1fr) 18px;
  }

  .dashboard-point-analysis {
    display: none;
  }

  .dashboard-onboarding {
    align-items: start;
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .dashboard-onboarding-actions {
    grid-column: auto;
    padding-left: 0;
  }

  .notification-page-header form,
  .notification-mark-all {
    width: 100%;
  }

  .notification-page-item {
    gap: 10px;
    grid-template-columns: 12px minmax(0, 1fr) 16px;
    padding: 15px 12px;
  }

  .project-list-item,
  .project-resource-row {
    grid-template-columns: 34px minmax(0, 1fr) 16px;
    padding: 13px 12px;
  }

  .project-list-meta,
  .project-resource-meta,
  .project-visibility-badge {
    display: none;
  }

  .project-list-icon,
  .project-resource-icon {
    height: 34px;
    width: 34px;
  }

  .project-summary {
    grid-template-columns: 1fr;
  }

  .project-summary div + div {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .project-editor {
    padding: 18px;
  }

  .project-visibility-options {
    grid-template-columns: 1fr;
  }

  .metric-grid,
  .current-summary,
  .facts,
  .poi-competition-context,
  .poi-competition-kpis,
  .poi-competition-insights,
  .poi-report-context,
  .poi-report-kpis,
  .poi-lifecycle-grid {
    grid-template-columns: 1fr;
  }

  .poi-section-heading-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .poi-competition-context div,
  .poi-competition-insights div {
    border-bottom: 1px solid var(--line);
    border-right: 0;
  }

  .poi-competition-context div:last-child,
  .poi-competition-insights div:last-child {
    border-bottom: 0;
  }

  .poi-competition-evolution {
    overflow-x: auto;
  }

  .poi-report-header {
    align-items: stretch;
    flex-direction: column;
  }

  .poi-pdf-action {
    width: 100%;
  }

  .poi-report-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .poi-report-actions form {
    width: 100%;
  }

  .poi-report-actions .secondary-action,
  .poi-report-actions .poi-pdf-action {
    justify-content: center;
    width: 100%;
  }

  .poi-report-context div,
  .poi-report-context div:first-child {
    border-bottom: 1px solid var(--line);
    border-right: 0;
    padding: 14px 0;
  }

  .poi-report-context div:last-child {
    border-bottom: 0;
  }

  .poi-indicator-header {
    display: none;
  }

  .poi-indicator-row {
    align-items: start;
    grid-template-columns: 1fr;
  }

  .auth-visual {
    min-height: 280px;
    padding: 28px;
  }

  .auth-visual-content h1 {
    font-size: 30px;
  }

  .login-panel h1 {
    font-size: 28px;
  }

  .login-panel .auth-form input[type="submit"] {
    font-size: 18px;
    min-height: 54px;
  }

  .sso-login-actions {
    grid-template-columns: 1fr;
  }

  .map-control-grid,
  .map-actions {
    grid-template-columns: 1fr;
  }

  .map-sidebar-context {
    grid-template-columns: 1fr;
  }

  .map-sidebar-tabs button {
    flex-direction: column;
    gap: 2px;
    min-height: 60px;
  }

  .map-sidebar-tabs i {
    position: absolute;
    right: 3px;
    top: 5px;
  }

  .map-sidebar-content {
    padding: 16px;
  }

  .map-sidebar-feedback {
    padding: 9px 14px;
  }

  .map-dynamics-insights {
    bottom: 76px;
    left: 12px;
    max-width: calc(100vw - 72px);
    padding: 11px;
    width: calc(100vw - 72px);
  }

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

  .map-dynamics-metrics div:first-child,
  .map-dynamics-metrics div:last-child {
    border-radius: 0;
  }

  .map-dynamics-metrics strong {
    font-size: 16px;
  }

  .map-dynamics-chart {
    height: 42px;
  }
}

.location-group-list { border-top: 1px solid #dfe3e5; }
.location-groups-page-header .page-actions { align-items: center; flex-wrap: nowrap; }
.location-groups-page-header .page-actions > a { flex: 0 0 auto; white-space: nowrap; }
.location-groups-page-header .page-actions svg { fill: none; height: 17px; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; width: 17px; }
.location-group-row { align-items: center; border-bottom: 1px solid #e7eaec; color: #202426; display: grid; gap: 18px; grid-template-columns: 22px minmax(0, 1fr) 110px 110px 20px; padding: 17px 8px; text-decoration: none; }
.location-group-row:hover { background: #f7f8f8; }
.location-group-marker { background: var(--location-color, #212529); border: 3px solid #fff; border-radius: 50% 50% 50% 0; box-shadow: 0 0 0 1px #9ca5a9; display: inline-block; height: 18px; rotate: -45deg; vertical-align: middle; width: 18px; }
h1 .location-group-marker { margin-right: 12px; }
.location-group-main, .location-group-stat { display: flex; flex-direction: column; min-width: 0; }
.location-group-main small, .location-group-stat small { color: #697277; }
.location-group-stat strong { font-size: 17px; }
.location-import-workspace { margin: 0 auto; max-width: 960px; }
.location-import-page-header { align-items: start; margin-bottom: 8px; }
.location-import-intro { color: #697277; line-height: 1.5; margin: 10px 0 0; max-width: 620px; }
.location-import-form { gap: 0; margin: 0; max-width: none; }
.location-import-form > *, .location-import-form .form-grid, .location-import-form .field { max-width: 100%; min-width: 0; width: 100%; }
.location-import-form .field > input[type="text"], .location-import-form .field > select, .location-import-form .field > textarea { width: 100%; }
.location-import-form .field > small { color: #697277; display: block; font-size: 12px; margin-top: 6px; }
.location-import-form .form-section { border-top: 1px solid #dfe3e5; display: grid; gap: 18px; padding: 26px 0; }
.location-import-form .form-grid { display: grid; gap: 18px; grid-template-columns: minmax(0, 1.35fr) minmax(240px, 0.65fr); }
.location-import-form .color-field { width: max-content; }
.location-import-form .color-field input[type="color"] { background: #fff; border: 1px solid var(--line); border-radius: 6px; cursor: pointer; height: 42px; padding: 3px; width: 58px; }
.form-section-heading { align-items: flex-start; display: flex; gap: 14px; margin-bottom: 20px; }
.location-import-form .form-section-heading { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; margin-bottom: 0; }
.form-section-heading > span { align-items: center; background: #202426; border-radius: 50%; color: #fff; display: flex; flex: 0 0 28px; height: 28px; justify-content: center; width: 28px; }
.form-section-heading h2 { font-size: 18px; margin: 1px 0 4px; }
.form-section-heading p { color: #697277; margin: 0; }
.location-template-action { align-self: center; gap: 7px; white-space: nowrap; }
.location-template-action svg { fill: none; height: 17px; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; width: 17px; }
.location-file-drop { align-items: center; background: #fff; border: 1px dashed #939da2; cursor: pointer; display: flex; flex-direction: column; gap: 6px; justify-content: center; min-height: 190px; overflow: hidden; padding: 26px; position: relative; text-align: center; text-transform: none; }
.location-file-drop:hover, .location-file-drop.has-file { background: #fafbfb; border-color: #202426; }
.location-file-drop:focus-within { box-shadow: 0 0 0 3px rgba(36, 40, 42, 0.14); outline: none; }
.location-file-drop-icon { align-items: center; background: #eef1f2; border-radius: 6px; color: #202426; display: inline-flex; height: 46px; justify-content: center; margin-bottom: 3px; width: 46px; }
.location-file-drop-icon svg { fill: none; height: 24px; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; width: 24px; }
.location-file-drop span { color: #697277; font-size: 13px; }
.location-file-drop .location-file-name { background: #eef1f2; border-radius: 4px; color: #30383c; display: block; margin-top: 8px; max-width: min(440px, 100%); overflow: hidden; padding: 7px 11px; text-overflow: ellipsis; white-space: nowrap; }
.location-file-input { cursor: pointer; inset: 0; opacity: 0; position: absolute; z-index: 2; }
.location-import-actions { border-top: 1px solid #dfe3e5; justify-content: flex-end; padding-top: 18px; }
.location-import-actions .secondary-action, .location-import-actions .primary-action { min-width: 126px; }
.location-group-detail-header > div > p:last-child { color: #697277; line-height: 1.5; margin: 8px 0 0; }
.location-group-metrics { display: grid; gap: 12px; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 4px 0 18px; }
.location-group-metric { background: #fff; border: 1px solid var(--line); border-radius: 8px; display: grid; gap: 11px; min-height: 104px; padding: 17px 18px; }
.location-group-metric span { color: #697277; font-size: 12px; font-weight: 700; text-transform: uppercase; }
.location-group-metric strong { align-self: end; font-size: 27px; line-height: 1.15; overflow-wrap: anywhere; }
.location-group-metric-reference strong { font-size: 17px; }
.location-group-metric-link { align-items: center; color: #202426; display: inline-flex; gap: 7px; text-decoration: none; }
.location-group-metric-link:hover { color: #000; text-decoration: underline; text-underline-offset: 3px; }
.location-group-metric-link svg { fill: none; flex: 0 0 16px; height: 16px; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; width: 16px; }
.location-group-tabs { border-bottom: 1px solid #cfd5d8; display: flex; gap: 24px; margin-bottom: 20px; overflow-x: auto; scrollbar-width: thin; }
.location-group-tab { align-items: center; border-bottom: 3px solid transparent; color: #687277; display: inline-flex; flex: 0 0 auto; font-size: 13px; font-weight: 750; gap: 8px; min-height: 46px; padding: 0 2px; text-decoration: none; }
.location-group-tab:hover { color: #202426; text-decoration: none; }
.location-group-tab.is-active { border-bottom-color: #202426; color: #202426; }
.location-group-tab strong { align-items: center; background: #e9edef; border-radius: 4px; color: #465156; display: inline-flex; font-size: 11px; height: 22px; justify-content: center; min-width: 24px; padding: 0 6px; }
.location-group-section-header { margin: 4px 0 16px; }
.location-group-section-header h2 { font-size: 24px; margin: 2px 0 5px; }
.location-group-section-header p:not(.eyebrow) { color: #687277; margin: 0; }
.location-group-card { background: #fff; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 18px; overflow: hidden; }
.location-group-card-header { align-items: center; border-bottom: 1px solid var(--line); display: flex; gap: 20px; justify-content: space-between; min-height: 72px; padding: 15px 18px; }
.location-group-card-header .eyebrow { margin-bottom: 5px; }
.location-group-card-header h2 { font-size: 18px; }
.location-group-card-header p:not(.eyebrow) { color: #697277; line-height: 1.45; margin: 5px 0 0; }
.location-group-card-header > small { color: #697277; flex: 0 0 auto; font-size: 12px; }
.location-group-card-link { align-items: center; color: #30383c; display: inline-flex; flex: 0 0 auto; font-size: 13px; gap: 7px; min-height: 36px; padding: 0 4px; white-space: nowrap; }
.location-group-card-link:hover { color: #000; text-decoration: none; }
.location-group-card-link svg { fill: none; height: 17px; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; width: 17px; }
.location-reimport-form { align-items: center; display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr) auto; padding: 18px; }
.location-reimport-file { align-items: center; background: #fafbfb; border: 1px dashed #a5adb1; border-radius: 6px; cursor: pointer; display: grid; gap: 12px; grid-template-columns: 38px minmax(0, 1fr); min-height: 58px; overflow: hidden; padding: 9px 12px; position: relative; text-transform: none; }
.location-reimport-file:hover, .location-reimport-file.has-file { border-color: #30383c; }
.location-reimport-file:focus-within { box-shadow: 0 0 0 3px rgba(36, 40, 42, 0.14); outline: none; }
.location-reimport-icon { align-items: center; background: #e9edef; border-radius: 6px; color: #30383c; display: inline-flex; height: 38px; justify-content: center; width: 38px; }
.location-reimport-icon svg { fill: none; height: 20px; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; width: 20px; }
.location-reimport-copy { display: grid; gap: 3px; min-width: 0; }
.location-reimport-copy strong { color: #202426; font-size: 14px; }
.location-reimport-copy small { color: #697277; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.location-reimport-form .primary-action { min-width: 112px; }
.location-group-card .table-wrap { margin: 0; }
.location-group-card table { margin: 0; }
.location-group-card th { background: #f7f9f9; }
.location-group-card tbody tr:last-child td { border-bottom: 0; }
.location-group-card-empty { color: #697277; padding: 28px 18px; }
.location-import-errors td { background: #fafafa; padding: 8px 16px 16px; }
.location-import-errors ul { color: #6b3333; margin: 10px 0 0; }
.location-group-locations-card td { vertical-align: middle; }
.location-group-locations-card .table-actions-cell { white-space: nowrap; width: 1%; }
.location-group-locations-card .table-actions-cell form { display: inline-flex; margin: 0; }
.location-group-list-controls { align-items: center; display: flex; gap: 14px; }
.location-group-list-controls > small { color: #697277; font-size: 12px; white-space: nowrap; }
.location-selection-cell { text-align: center; width: 44px; }
.location-selection-cell .form-check-input { border-color: #8e979c; cursor: pointer; float: none; margin: 0; }
.location-selection-cell .form-check-input:checked { background-color: #202426; border-color: #202426; }
.location-selection-cell .form-check-input:focus { border-color: #202426; box-shadow: 0 0 0 3px rgba(32, 36, 38, 0.14); }
.location-bulk-action { align-items: center; background: #202426; border: 1px solid #202426; border-radius: 6px; color: #fff; display: inline-flex; font-size: 12px; font-weight: 700; gap: 7px; justify-content: center; min-height: 36px; padding: 0 12px; white-space: nowrap; }
.location-bulk-action:hover:not(:disabled) { background: #000; border-color: #000; }
.location-bulk-action:disabled { background: #eceeef; border-color: #d6dadd; color: #8a9397; cursor: not-allowed; }
.location-bulk-action svg { fill: none; height: 16px; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; width: 16px; }
.location-poi-action { align-items: center; background: #fff; border: 1px solid #aeb5b9; border-radius: 6px; color: #202426; display: inline-flex; font-size: 12px; font-weight: 700; gap: 7px; justify-content: center; min-height: 34px; padding: 0 11px; text-decoration: none; white-space: nowrap; }
.location-poi-action:hover { background: #202426; border-color: #202426; color: #fff; text-decoration: none; }
.location-poi-action:focus-visible { box-shadow: 0 0 0 3px rgba(32, 36, 38, 0.16); outline: none; }
.location-poi-action svg { fill: none; flex: 0 0 15px; height: 15px; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; width: 15px; }
.location-poi-action-muted { color: #596267; font-weight: 600; }
.location-poi-action-created { background: #f1f3f4; border-color: #d7dbdd; color: #596267; font-weight: 600; }
.location-bulk-map { background: #f5f6f6; border: 1px solid #dfe3e5; border-radius: 6px; display: grid; gap: 3px; padding: 12px 14px; }
.location-bulk-map span { color: #697277; font-size: 11px; font-weight: 700; text-transform: uppercase; }
.location-bulk-map strong { color: #202426; }

@media (max-width: 767.98px) {
  .location-group-row { grid-template-columns: 22px minmax(0, 1fr) 20px; }
  .location-group-stat { display: none; }
  .location-group-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .location-group-tabs { gap: 18px; }
  .location-group-card-header { align-items: flex-start; flex-direction: column; gap: 10px; }
  .location-group-list-controls { align-items: flex-start; flex-direction: column; width: 100%; }
  .location-bulk-action { width: 100%; }
  .location-reimport-form { align-items: stretch; grid-template-columns: 1fr; }
  .location-reimport-form .primary-action { width: 100%; }
  .location-import-form .form-grid { grid-template-columns: 1fr; }
  .location-import-form .form-section-heading { grid-template-columns: 28px minmax(0, 1fr); }
  .location-template-action { grid-column: 2; justify-self: start; margin-top: 10px; }
  .location-file-drop { min-height: 170px; padding: 22px 16px; }
  .location-import-actions .secondary-action, .location-import-actions .primary-action { flex: 1 1 0; min-width: 0; }
}

@media (max-width: 480px) {
  .location-group-metrics { grid-template-columns: 1fr; }
}

.imported-location-editor { margin: 0 auto; max-width: 1040px; }
.imported-location-page-header { margin-bottom: 18px; }
.imported-location-page-header > div > p:last-child { color: #697277; line-height: 1.5; margin: 8px 0 0; max-width: 680px; }
.imported-location-summary { align-items: center; background: #262c2f; border-radius: 8px 8px 0 0; color: #fff; display: flex; gap: 24px; justify-content: space-between; min-height: 88px; padding: 17px 20px; }
.imported-location-summary-main { align-items: center; display: flex; gap: 15px; min-width: 0; }
.imported-location-summary-main .location-group-marker { border-color: #262c2f; box-shadow: 0 0 0 1px #b8c1c5; flex: 0 0 auto; height: 22px; width: 22px; }
.imported-location-summary-main div { display: grid; gap: 5px; min-width: 0; }
.imported-location-summary-main span:not(.location-group-marker) { color: #aeb8bc; font-size: 11px; font-weight: 700; text-transform: uppercase; }
.imported-location-summary-main strong { color: #fff; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.imported-location-summary-meta { align-items: flex-end; display: grid; flex: 0 0 auto; gap: 7px; justify-items: end; }
.imported-location-summary-meta small { color: #bfc7ca; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: 11px; }
.imported-location-status { align-items: center; background: #e7ecee; border-radius: 999px; color: #3e494e; display: inline-flex; font-size: 11px; font-weight: 800; gap: 7px; min-height: 28px; padding: 0 10px; }
.imported-location-status i { background: #718087; border-radius: 50%; height: 7px; width: 7px; }
.imported-location-status.is-found { background: #dff3e9; color: #23634f; }
.imported-location-status.is-found i { background: #2d8065; }
.imported-location-status.is-pending { background: #fff0cc; color: #735817; }
.imported-location-status.is-pending i { background: #bf8a0a; }
.imported-location-status.is-not_found, .imported-location-status.is-failed { background: #fee7e4; color: #8d3029; }
.imported-location-status.is-not_found i, .imported-location-status.is-failed i { background: #ba4138; }
.record-form.imported-location-form { background: #fff; border: 1px solid var(--line); border-radius: 0 0 8px 8px; gap: 0; max-width: none; overflow: hidden; }
.imported-location-errors { border-radius: 0; margin: 0; padding: 14px 20px; }
.imported-location-errors p { margin: 4px 0 0; }
.imported-location-form-section { display: grid; gap: 28px; grid-template-columns: 230px minmax(0, 1fr); padding: 28px 30px; }
.imported-location-form-section + .imported-location-form-section { border-top: 1px solid #e2e6e8; }
.imported-location-form-section > header { align-items: flex-start; display: grid; gap: 12px; grid-template-columns: 28px minmax(0, 1fr); }
.imported-location-form-section > header > span { align-items: center; background: #252b2e; border-radius: 50%; color: #fff; display: flex; font-size: 12px; font-weight: 800; height: 28px; justify-content: center; width: 28px; }
.imported-location-form-section > header .eyebrow { margin: 1px 0 4px; }
.imported-location-form-section > header h2 { font-size: 18px; margin: 0; }
.imported-location-form-section > header p:last-child { color: #707a7f; font-size: 12px; line-height: 1.5; margin: 7px 0 0; }
.imported-location-fields { display: grid; gap: 17px; min-width: 0; }
.imported-location-form .field { margin: 0; min-width: 0; }
.imported-location-form .field label { letter-spacing: 0; }
.imported-location-form .field input, .imported-location-form .field textarea { width: 100%; }
.imported-location-identity-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.imported-location-identity-grid .field-wide, .imported-location-identity-grid .field-full { grid-column: 1 / -1; }
.imported-location-address-grid { grid-template-columns: 140px minmax(220px, 1.5fr) 110px minmax(150px, 1fr); }
.imported-location-address-grid .field-street { grid-column: span 2; }
.imported-location-address-grid .field-complement { grid-column: span 2; }
.imported-location-address-grid .field-city { grid-column: span 2; }
.imported-location-coordinate-block { align-items: end; background: #f5f7f7; border: 1px solid #dfe4e6; border-radius: 7px; display: grid; gap: 16px; grid-column: 2; grid-template-columns: minmax(180px, 1fr) 150px 150px; padding: 16px; }
.imported-location-coordinate-copy { align-self: center; display: grid; gap: 4px; }
.imported-location-coordinate-copy strong { color: #30383c; font-size: 13px; }
.imported-location-coordinate-copy span { color: #6b757a; font-size: 11px; line-height: 1.45; }
.imported-location-form-actions { align-items: center; background: #f7f8f8; border-top: 1px solid #dfe3e5; display: flex; gap: 24px; justify-content: space-between; padding: 18px 30px; }
.imported-location-form-actions p { color: #6b757a; font-size: 11px; line-height: 1.45; margin: 0; max-width: 520px; }
.imported-location-form-actions > div { display: flex; flex: 0 0 auto; gap: 10px; }
.imported-location-form-actions .secondary-action, .imported-location-form-actions .primary-action { min-width: 116px; }

@media (max-width: 991.98px) {
  .imported-location-form-section { grid-template-columns: 1fr; }
  .imported-location-coordinate-block { grid-column: 1; }
}

@media (max-width: 767.98px) {
  .imported-location-summary { align-items: flex-start; flex-direction: column; gap: 14px; }
  .imported-location-summary-main strong { overflow: visible; white-space: normal; }
  .imported-location-summary-meta { align-items: flex-start; justify-items: start; }
  .imported-location-form-section { gap: 22px; padding: 24px 18px; }
  .imported-location-identity-grid, .imported-location-address-grid, .imported-location-coordinate-block { grid-template-columns: 1fr; }
  .imported-location-identity-grid .field-wide, .imported-location-identity-grid .field-full, .imported-location-address-grid .field-street, .imported-location-address-grid .field-complement, .imported-location-address-grid .field-city { grid-column: 1; }
  .imported-location-form-actions { align-items: stretch; flex-direction: column; padding: 18px; }
  .imported-location-form-actions > div { width: 100%; }
  .imported-location-form-actions .secondary-action, .imported-location-form-actions .primary-action { flex: 1 1 0; min-width: 0; }
}

.sector-overview-header { margin-bottom: 16px; }
.sector-overview-header > div > p:last-child { color: #697277; margin: 8px 0 0; }
.sector-overview-map { background: #e9edef; border: 1px solid #cfd5d8; border-radius: 8px; height: 340px; margin-bottom: 14px; overflow: hidden; width: 100%; }
.sector-overview-map .leaflet-control-attribution { font-size: 10px; }
.sector-overview-signals { background: #20282c; border-radius: 8px; color: #fff; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 14px; overflow: hidden; }
.sector-overview-signals article { border-right: 1px solid rgba(255, 255, 255, 0.14); min-width: 0; padding: 15px 18px; }
.sector-overview-signals article:last-child { border-right: 0; }
.sector-overview-signals span, .sector-overview-signals small { color: #aeb9be; display: block; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.sector-overview-signals strong { display: block; font-size: 25px; margin: 5px 0 3px; }
.sector-overview-signals .is-positive strong { color: #78d8b6; }
.sector-overview-signals .is-negative strong { color: #ff9d9d; }
.sector-ai-workspace { background: #fff; border: 1px solid #ccd8d5; border-radius: 8px; margin-bottom: 14px; overflow: hidden; }
.sector-ai-callout { align-items: center; background: #eef6f4; display: grid; gap: 16px; grid-template-columns: 44px minmax(0, 1fr) auto; padding: 17px 18px; }
.sector-ai-mark { align-items: center; background: #1f5f54; border-radius: 7px; color: #fff; display: flex; height: 44px; justify-content: center; width: 44px; }
.sector-ai-mark svg { fill: none; height: 23px; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; width: 23px; }
.sector-ai-callout .eyebrow { color: #477069; margin-bottom: 3px; }
.sector-ai-callout h2 { color: #173f39; font-size: 18px; margin: 0; }
.sector-ai-callout p:last-child { color: #526a66; font-size: 12px; line-height: 1.45; margin: 5px 0 0; }
.sector-ai-callout .primary-action { gap: 8px; min-width: 150px; }
.sector-ai-callout .primary-action svg { fill: none; height: 17px; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; width: 17px; }
.sector-ai-callout .primary-action:disabled { cursor: wait; opacity: 0.65; }
.sector-ai-result { border: 0; border-radius: 0; border-top: 1px solid #d8e3e0; margin: 0; padding: 20px; }
.sector-overview-metrics { display: grid; gap: 12px; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 18px; }
.sector-overview-metrics article { background: #fff; border: 1px solid var(--line); border-radius: 8px; border-top: 3px solid #3f6f8f; display: grid; gap: 10px; min-height: 96px; padding: 16px 18px; }
.sector-overview-metrics article:nth-child(2) { border-top-color: #b85050; }
.sector-overview-metrics article:nth-child(3) { border-top-color: #3f7d6d; }
.sector-overview-metrics article:nth-child(4) { border-top-color: #d99a3e; }
.sector-overview-metrics span { color: #697277; font-size: 11px; font-weight: 700; text-transform: uppercase; }
.sector-overview-metrics strong { align-self: end; color: #202426; font-size: 26px; }
.sector-overview-grid { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sector-overview-card { background: #fff; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.sector-overview-card > header { border-bottom: 1px solid var(--line); padding: 16px 18px; }
.sector-overview-card > header .eyebrow { margin-bottom: 4px; }
.sector-overview-card > header h2 { font-size: 18px; margin: 0; }
.sector-overview-card > header span { color: #697277; display: block; font-size: 12px; margin-top: 4px; }
.sector-overview-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; }
.sector-overview-details div { border-bottom: 1px solid #edf0f1; min-width: 0; padding: 13px 18px; }
.sector-overview-details div:nth-last-child(-n + 2) { border-bottom: 0; }
.sector-overview-details dt { color: #697277; font-size: 11px; font-weight: 700; text-transform: uppercase; }
.sector-overview-details dd { color: #202426; font-size: 14px; font-weight: 700; margin: 5px 0 0; overflow-wrap: anywhere; }
.sector-overview-reference-card .sector-overview-coordinate dd { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: 12px; }
.sector-overview-reference-card .sector-overview-coordinate { grid-column: 1 / -1; }
.sector-overview-timeline-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sector-overview-timeline-metrics div { border-bottom: 1px solid #edf0f1; padding: 14px 18px; }
.sector-overview-timeline-metrics span { color: #697277; display: block; font-size: 12px; }
.sector-overview-timeline-metrics strong { color: #202426; display: block; font-size: 20px; margin-top: 5px; }
.sector-overview-ranking { display: grid; padding: 5px 18px; }
.sector-overview-ranking > div { align-items: center; border-bottom: 1px solid #edf0f1; display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr) minmax(70px, 130px) auto; min-height: 43px; }
.sector-overview-ranking > div:last-child { border-bottom: 0; }
.sector-overview-ranking span { color: #30383c; font-size: 13px; min-width: 0; }
.sector-overview-ranking > div > div { background: #eceff0; border-radius: 2px; height: 5px; overflow: hidden; }
.sector-overview-ranking > div > div i { background: #30383c; display: block; height: 100%; }
.sector-overview-ranking strong { color: #202426; font-size: 13px; grid-column: 3; text-align: right; }
.sector-overview-wide-card { margin-top: 14px; }
.sector-overview-section-header { align-items: center; display: flex; gap: 24px; justify-content: space-between; }
.sector-overview-search { align-items: center; display: flex; gap: 8px; margin: 0; width: min(420px, 48%); }
.sector-overview-search input[type="search"] { border: 1px solid #cbd1d4; border-radius: 6px; min-height: 38px; min-width: 0; padding: 0 11px; width: 100%; }
.sector-overview-search input[type="submit"] { background: #202426; border: 0; border-radius: 6px; color: #fff; font-size: 13px; font-weight: 700; min-height: 38px; padding: 0 14px; }
.sector-indicator-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 16px 18px; }
.sector-indicator-card { background: #fbfcfc; border: 1px solid #e1e6e8; border-radius: 8px; display: grid; gap: 12px; min-width: 0; padding: 15px; }
.sector-indicator-card > header { align-items: start; display: flex; gap: 12px; justify-content: space-between; min-width: 0; }
.sector-indicator-card > header > div { min-width: 0; }
.sector-indicator-card > header span { color: #647077; display: block; font-size: 10px; font-weight: 800; margin-bottom: 5px; text-transform: uppercase; }
.sector-indicator-card h3 { color: #202426; font-size: 14px; line-height: 1.3; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sector-indicator-card > header small { background: #e8f2ee; border-radius: 999px; color: #356c5b; flex: 0 0 auto; font-size: 9px; font-weight: 800; line-height: 1; padding: 6px 8px; text-transform: uppercase; }
.sector-indicator-card > header small.is-lower_range { background: #edf1f7; color: #466381; }
.sector-indicator-card > header small.is-middle_range { background: #fff3d7; color: #80601c; }
.sector-indicator-card > strong { color: #171c1f; display: block; font-size: 24px; line-height: 1.1; overflow-wrap: anywhere; }
.sector-indicator-scale { background: linear-gradient(90deg, #4f46e5 0%, #12b4a6 48%, #ffc857 100%); border: 1px solid rgba(23, 32, 38, 0.12); border-radius: 999px; height: 10px; position: relative; }
.sector-indicator-scale i { background: #ffffff; border: 2px solid #171c1f; border-radius: 999px; box-shadow: 0 2px 8px rgba(23, 32, 38, 0.25); height: 18px; position: absolute; top: 50%; transform: translate(-50%, -50%); width: 18px; }
.sector-indicator-range { display: flex; gap: 12px; justify-content: space-between; }
.sector-indicator-range span { color: #68747a; display: grid; font-size: 10px; font-weight: 800; gap: 2px; min-width: 0; text-transform: uppercase; }
.sector-indicator-range span:last-child { text-align: right; }
.sector-indicator-range b { color: #30383c; font-size: 11px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; text-transform: none; white-space: nowrap; }
.sector-indicator-card footer { align-items: center; border-top: 1px solid #edf0f1; color: #727d82; display: flex; font-size: 11px; gap: 12px; justify-content: space-between; padding-top: 10px; }
.sector-indicator-card footer span { color: #536066; font-size: 10px; font-weight: 700; }
.sector-indicator-card footer small { font-size: 10px; text-align: right; }
.sector-overview-wide-card table { margin: 0; }
.sector-overview-wide-card td { vertical-align: middle; }
.sector-overview-wide-card td a { color: #202426; text-decoration: none; }
.sector-overview-wide-card td a:hover { text-decoration: underline; text-underline-offset: 3px; }
.sector-overview-pagination { border-top: 1px solid var(--line); margin: 0; padding: 12px 18px; }
.sector-overview-empty { color: #697277; margin: 0; padding: 24px 18px; }

@media (max-width: 991.98px) {
  .sector-overview-map { height: 290px; }
  .sector-overview-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767.98px) {
  .sector-overview-map { border-radius: 0; height: 250px; margin-left: -16px; width: calc(100% + 32px); }
  .sector-overview-grid { grid-template-columns: 1fr; }
  .sector-overview-signals { grid-template-columns: 1fr; }
  .sector-overview-signals article { border-bottom: 1px solid rgba(255, 255, 255, 0.14); border-right: 0; }
  .sector-overview-signals article:last-child { border-bottom: 0; }
  .sector-overview-section-header { align-items: stretch; flex-direction: column; }
  .sector-overview-search { width: 100%; }
  .sector-ai-callout { align-items: stretch; grid-template-columns: 44px minmax(0, 1fr); }
  .sector-ai-callout .primary-action { grid-column: 1 / -1; justify-content: center; width: 100%; }
}

@media (max-width: 480px) {
  .sector-overview-metrics { grid-template-columns: 1fr; }
  .sector-overview-details { grid-template-columns: 1fr; }
  .sector-overview-details div:nth-last-child(2) { border-bottom: 1px solid #edf0f1; }
  .sector-indicator-card footer { align-items: flex-start; flex-direction: column; }
  .sector-indicator-card footer small { text-align: left; }
}

.dashboard-customize-button { cursor: pointer; }
.dashboard-custom-grid { display: grid; gap: 18px; grid-template-columns: repeat(12, minmax(0, 1fr)); margin-bottom: 32px; }
.dashboard-widget { min-width: 0; position: relative; }
.dashboard-widget.is-hidden { display: none; }
.dashboard-widget-metric { grid-column: span 3; }
.dashboard-widget-project, .dashboard-widget-map { background: #fff; border: 1px solid var(--line); border-radius: 8px; grid-column: span 6; overflow: hidden; }
.dashboard-widget-point { background: #fff; border: 1px solid var(--line); border-radius: 8px; grid-column: 1 / -1; overflow: hidden; }
.dashboard-widget-project .dashboard-section, .dashboard-widget-map .dashboard-section, .dashboard-widget-point .dashboard-section { padding: 0 16px 8px; }
.dashboard-widget .dashboard-points-section { margin-bottom: 0; }
.dashboard-widget-controls { align-items: center; background: #fff; border: 1px solid #cbd2d5; border-radius: 6px; box-shadow: 0 5px 18px rgba(26, 33, 37, 0.1); display: none; gap: 2px; padding: 2px; position: absolute; right: 8px; top: 8px; z-index: 3; }
.is-customizing .dashboard-widget-controls { display: flex; }
.dashboard-widget-controls button { align-items: center; background: transparent; border: 0; border-radius: 4px; color: #566167; cursor: pointer; display: inline-flex; height: 29px; justify-content: center; padding: 0; width: 29px; }
.dashboard-widget-controls button:hover, .dashboard-widget-controls button:focus-visible { background: #e9edef; color: #171b1d; outline: none; }
.dashboard-widget-controls svg, .dashboard-hidden-widget svg, .dashboard-reset-layout svg { fill: none; height: 17px; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; width: 17px; }
.dashboard-widget-drag { cursor: grab !important; }
.dashboard-widget-drag:active { cursor: grabbing !important; }
.is-customizing .dashboard-widget:not(.dashboard-widget-metric) .dashboard-section-header { padding-right: 72px; }
.is-customizing .dashboard-widget { outline: 1px dashed #9da7ac; outline-offset: 3px; }
.dashboard-widget-ghost { opacity: 0.35; }
.dashboard-layout-toolbar { align-items: center; background: #252a2d; border-radius: 7px; color: #fff; display: none; gap: 24px; justify-content: space-between; margin: -8px 0 18px; padding: 11px 14px; }
.is-customizing .dashboard-layout-toolbar { display: flex; }
.dashboard-layout-toolbar > div { align-items: center; display: flex; gap: 9px; }
.dashboard-layout-toolbar strong { font-size: 13px; }
.dashboard-layout-toolbar span { color: #c7ced1; font-size: 12px; }
.dashboard-layout-toolbar button { background: transparent; border: 1px solid #687176; border-radius: 5px; color: #fff; cursor: pointer; font-size: 12px; min-height: 32px; padding: 0 10px; }
.dashboard-layout-toolbar button:hover, .dashboard-layout-toolbar button:focus-visible { background: #3a4145; outline: none; }
.dashboard-layout-status.is-error { color: #ffb4b4; }
.dashboard-all-hidden { background: #fff; border: 1px dashed #b8c0c4; border-radius: 8px; margin-bottom: 30px; padding: 34px; text-align: center; }
.dashboard-all-hidden h2 { font-size: 19px; }
.dashboard-all-hidden p { color: var(--muted); font-size: 14px; margin: 7px auto 18px; }
.dashboard-layout-panel { z-index: 1090; }
.dashboard-layout-panel .offcanvas-header { align-items: flex-start; border-bottom: 1px solid var(--line); padding: 20px; }
.dashboard-layout-panel .offcanvas-header h2 { font-size: 20px; margin: 3px 0 0; }
.dashboard-layout-panel-hint { color: var(--muted); font-size: 13px; line-height: 1.5; }
.dashboard-hidden-list { display: grid; gap: 7px; margin: 18px 0 24px; }
.dashboard-hidden-list.is-empty::before { color: var(--muted); content: attr(data-empty-label); font-size: 13px; }
.dashboard-hidden-widget { align-items: center; background: #fff; border: 1px solid #d3d9dc; border-radius: 6px; color: #252b2e; cursor: pointer; display: flex; font-size: 13px; font-weight: 700; justify-content: space-between; min-height: 44px; padding: 0 12px; text-align: left; width: 100%; }
.dashboard-hidden-widget:hover, .dashboard-hidden-widget:focus-visible { background: #f1f3f4; border-color: #aeb7bb; outline: none; }
.dashboard-reset-layout { align-items: center; background: transparent; border: 0; border-top: 1px solid var(--line); color: #424b50; cursor: pointer; display: flex; font-size: 13px; font-weight: 700; gap: 8px; padding: 16px 0 0; width: 100%; }

@media (max-width: 1100px) {
  .dashboard-widget-metric { grid-column: span 6; }
  .dashboard-widget-project, .dashboard-widget-map { grid-column: 1 / -1; }
}

@media (max-width: 767.98px) {
  .dashboard-custom-grid { grid-template-columns: 1fr; }
  .dashboard-widget-metric, .dashboard-widget-project, .dashboard-widget-map, .dashboard-widget-point { grid-column: 1; }
  .dashboard-layout-toolbar { align-items: flex-start; flex-direction: column; }
  .dashboard-layout-toolbar > div { justify-content: space-between; width: 100%; }
  .dashboard-layout-toolbar > div:first-child { align-items: flex-start; flex-direction: column; }
}

.sector-overview-hero-grid { display: grid; gap: 14px; grid-template-columns: minmax(0, 1.6fr) minmax(310px, 0.7fr); margin-bottom: 14px; }
.sector-overview-hero-grid .sector-overview-map { height: 360px; margin: 0; position: relative; }
.sector-overview-map-status { align-items: center; background: rgba(255, 255, 255, 0.94); border: 1px solid #d5dbde; border-radius: 6px; color: #4f5a5f; display: flex; font-size: 12px; font-weight: 700; gap: 9px; left: 50%; padding: 9px 12px; position: absolute; top: 50%; transform: translate(-50%, -50%); z-index: 800; }
.sector-overview-map-status span { animation: sector-map-pulse 900ms ease-in-out infinite alternate; background: #3f6f8f; border-radius: 50%; height: 7px; width: 7px; }
.sector-overview-map-status[data-state="error"] span { animation: none; background: #b85050; }
.sector-overview-map.has-tile-error { background: #e4e9eb; }
.sector-census-snapshot { background: #24292c; border-radius: 8px; color: #fff; overflow: hidden; }
.sector-census-snapshot > header { border-bottom: 1px solid #454c50; padding: 18px; }
.sector-census-snapshot .eyebrow { color: #bfc7ca; margin-bottom: 5px; }
.sector-census-snapshot h2 { color: #fff; font-size: 20px; margin: 0; }
.sector-census-snapshot header > span { color: #aeb7bb; display: block; font-size: 11px; margin-top: 6px; }
.sector-census-highlights { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sector-census-highlights article { border-bottom: 1px solid #454c50; min-height: 105px; padding: 17px 18px; }
.sector-census-highlights article:nth-child(odd) { border-right: 1px solid #454c50; }
.sector-census-highlights article:nth-last-child(-n + 2) { border-bottom: 0; }
.sector-census-highlights span { color: #aeb7bb; display: block; font-size: 11px; line-height: 1.35; }
.sector-census-highlights strong { color: #fff; display: block; font-size: 23px; margin-top: 10px; overflow-wrap: anywhere; }
.sector-analytics-grid { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 14px 0; }
.sector-chart-card { background: #fff; border: 1px solid var(--line); border-radius: 8px; min-width: 0; overflow: hidden; }
.sector-chart-card-wide { grid-column: 1 / -1; }
.sector-chart-card > header { align-items: center; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; min-height: 72px; padding: 14px 18px; }
.sector-chart-card > header .eyebrow { margin-bottom: 4px; }
.sector-chart-card > header h2 { font-size: 18px; margin: 0; }
.sector-chart-card > header > span { color: #707b80; font-size: 11px; font-weight: 700; }
.sector-chart-frame { height: 280px; padding: 16px 18px 12px; position: relative; }
.sector-chart-frame-wide { height: 310px; }
.sector-chart-frame-segments { height: 320px; }
.sector-chart-frame canvas { height: 100% !important; max-width: 100%; width: 100% !important; }
.sector-chart-empty, .sector-chart-fallback { align-items: center; color: #727d82; display: flex; font-size: 13px; justify-content: center; margin: 0; min-height: 220px; padding: 24px; text-align: center; }
.sector-chart-fallback { inset: 0; position: absolute; }

@keyframes sector-map-pulse {
  from { opacity: 0.35; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1.1); }
}

@media (max-width: 991.98px) {
  .sector-overview-hero-grid { grid-template-columns: 1fr; }
  .sector-overview-hero-grid .sector-overview-map { height: 320px; }
  .sector-indicator-grid { grid-template-columns: 1fr; }
}

@media (max-width: 767.98px) {
  .sector-overview-hero-grid { margin-left: -16px; width: calc(100% + 32px); }
  .sector-overview-hero-grid .sector-overview-map { height: 260px; margin: 0; width: 100%; }
  .sector-census-snapshot { border-radius: 0; }
  .sector-analytics-grid { grid-template-columns: 1fr; }
  .sector-chart-card-wide { grid-column: 1; }
  .sector-chart-card > header { align-items: flex-start; flex-direction: column; gap: 6px; }
  .sector-chart-frame, .sector-chart-frame-wide { height: 270px; }
}

.company-search-workspace { margin: 0 auto; max-width: 1500px; }
.company-search-header { align-items: end; }
.company-search-header > div > p:last-child { color: var(--muted); margin: 7px 0 0; max-width: 720px; }
.company-search-export { align-items: center; display: inline-flex; gap: 8px; white-space: nowrap; }
.company-search-export svg, .company-search-filter-actions svg { fill: none; height: 17px; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; width: 17px; }
.company-search-filters { margin-bottom: 14px; padding: 0; }
.company-search-filter-heading { align-items: center; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; min-height: 70px; padding: 14px 18px; }
.company-search-filter-heading > div, .company-search-results .panel-header > div { align-items: center; display: flex; gap: 11px; }
.company-search-filter-heading > div > span, .company-search-step { align-items: center; background: #252a2d; border-radius: 50%; color: #fff; display: inline-flex; flex: 0 0 28px; font-size: 12px; font-weight: 800; height: 28px; justify-content: center; }
.company-search-filter-heading strong { display: block; font-size: 15px; }
.company-search-filter-heading small { color: var(--muted); display: block; font-size: 12px; margin-top: 2px; }
.company-search-filter-grid { display: grid; gap: 14px; grid-template-columns: minmax(220px, 1.3fr) minmax(110px, 0.4fr) minmax(230px, 0.8fr) minmax(280px, 1.2fr) minmax(130px, 0.45fr) minmax(130px, 0.45fr); padding: 18px; }
.company-search-filters .form-field { margin: 0; min-width: 0; }
.company-search-filters .form-field > label { color: #4e585d; display: block; font-size: 11px; font-weight: 800; margin-bottom: 6px; text-transform: uppercase; }
.company-search-filters .form-field > input, .company-search-filters .form-field > select { border: 1px solid #cdd4d8; border-radius: 6px; height: 42px; padding: 0 11px; width: 100%; }
.company-search-filters .form-field > small { color: var(--muted); display: block; font-size: 10px; line-height: 1.35; margin-top: 5px; }
.company-search-filters .ts-wrapper { min-height: 42px; }
.company-search-filters .ts-control { border-color: #cdd4d8; border-radius: 6px; min-height: 42px; padding: 8px 10px; }
.company-search-filters .ts-wrapper.multi .ts-control > div { background: #e8ebed; border-radius: 4px; color: #262c2f; }
.company-search-choice-grid { border-top: 1px solid #edf0f1; display: grid; gap: 28px; grid-template-columns: 1fr 1fr; padding: 17px 18px; }
.company-search-choice-grid legend { color: #4e585d; float: none; font-size: 11px; font-weight: 800; margin: 0 0 9px; text-transform: uppercase; }
.company-search-checks { display: flex; flex-wrap: wrap; gap: 7px; }
.company-search-checks label { cursor: pointer; margin: 0; position: relative; }
.company-search-checks input { height: 1px; opacity: 0; position: absolute; width: 1px; }
.company-search-checks span { background: #fff; border: 1px solid #cdd4d8; border-radius: 5px; color: #4d575c; display: block; font-size: 12px; font-weight: 700; padding: 7px 10px; }
.company-search-checks input:checked + span { background: #252a2d; border-color: #252a2d; color: #fff; }
.company-search-checks input:focus-visible + span { outline: 3px solid rgba(37, 42, 45, 0.18); outline-offset: 1px; }
.company-search-filter-actions { align-items: center; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; padding: 13px 18px; }
.company-search-filter-actions button { align-items: center; display: inline-flex; gap: 8px; }
.company-search-error { background: #fff2f2; border-top: 1px solid #efcaca; color: #9e2f2f; font-size: 13px; margin: 0; padding: 10px 18px; }
.company-search-results { min-height: 300px; }
.company-search-results .panel-header > div h2 { font-size: 16px; margin: 0; }
.company-search-results .panel-header > div div > span { color: var(--muted); font-size: 12px; }
.company-search-results .panel-header > small { color: #7a5555; max-width: 500px; text-align: right; }
.company-search-table th { white-space: nowrap; }
.company-search-table td:first-child { min-width: 310px; }
.company-search-table td:nth-child(3) { max-width: 190px; }
.company-search-table td:nth-child(5) { min-width: 150px; }
.company-search-table a { color: #22292c; text-decoration: none; }
.company-search-table a:hover { text-decoration: underline; }
.company-search-empty { align-items: center; color: var(--muted); display: flex; flex-direction: column; justify-content: center; min-height: 230px; padding: 30px; text-align: center; }
.company-search-empty svg { fill: none; height: 38px; margin-bottom: 14px; stroke: #778287; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.5; width: 38px; }
.company-search-empty strong { color: #30373a; font-size: 15px; }
.company-search-empty p { font-size: 13px; margin: 6px 0 0; max-width: 540px; }

.city-analysis-header > div > p:last-child {
  color: var(--muted);
  margin: 7px 0 0;
  max-width: 760px;
}

.city-section-frame {
  display: block;
  margin-bottom: 18px;
}

.city-score-frame {
  align-self: center;
  margin: 0;
  position: relative;
  z-index: 1;
}

.city-section-loading {
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  display: flex;
  font-size: 13px;
  font-weight: 700;
  gap: 9px;
  justify-content: center;
  min-height: var(--loading-height);
}

.city-section-loading.is-compact {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.2);
  color: rgba(255,255,255,.78);
  min-height: 230px;
}

.city-section-frame > .city-snapshot-grid,
.city-section-frame > .city-caged-panel,
.city-section-frame > .city-infra-strip {
  margin-bottom: 0;
}

.city-section-frame > .city-profile-panel + .city-infra-strip,
.city-section-frame > .city-analytics-grid + .city-caged-panel {
  margin-top: 18px;
}

.city-section-frame > .city-analytics-grid {
  grid-template-columns: 1fr;
}

.city-intel-hero {
  background:
    linear-gradient(135deg, rgba(21, 31, 36, .95), rgba(42, 63, 70, .86)),
    radial-gradient(circle at 85% 18%, rgba(242, 201, 76, .34), transparent 28%),
    linear-gradient(90deg, #172126, #24353b);
  border-radius: 8px;
  color: #ffffff;
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
  margin-bottom: 18px;
  min-height: 280px;
  overflow: hidden;
  padding: 30px;
  position: relative;
}

.city-intel-hero::after {
  background-image:
    linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 34px 34px;
  content: "";
  inset: 0;
  opacity: .28;
  pointer-events: none;
  position: absolute;
}

.city-intel-copy,
.city-intel-score-card {
  position: relative;
  z-index: 1;
}

.city-intel-copy {
  align-content: center;
  display: grid;
  gap: 13px;
}

.city-intel-copy .eyebrow {
  color: rgba(255,255,255,.72);
}

.city-intel-copy h1 {
  color: #ffffff;
  font-size: 46px;
  letter-spacing: 0;
  line-height: 1;
  margin: 0;
}

.city-intel-copy p:not(.eyebrow) {
  color: rgba(255,255,255,.78);
  font-size: 16px;
  line-height: 1.55;
  margin: 0;
  max-width: 690px;
}

.city-intel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.city-intel-actions .secondary-action {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.24);
  color: #ffffff;
}

.city-intel-score-card {
  align-self: center;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 8px;
  display: grid;
  gap: 18px;
  justify-items: center;
  padding: 22px;
  text-align: center;
}

.city-intel-score-ring {
  align-items: center;
  background:
    radial-gradient(circle at center, #1c292e 0 58%, transparent 59%),
    conic-gradient(#f2c94c var(--score), rgba(255,255,255,.18) 0);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  height: 144px;
  justify-content: center;
  width: 144px;
}

.city-intel-score-ring strong {
  color: #ffffff;
  font-size: 42px;
  line-height: 1;
}

.city-intel-score-ring span,
.city-intel-score-card > div:last-child span,
.city-intel-score-card p {
  color: rgba(255,255,255,.72);
}

.city-intel-score-card > div:last-child span {
  display: block;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 7px;
  text-transform: uppercase;
}

.city-intel-score-card p {
  margin: 0;
}

.city-snapshot-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 18px;
}

.city-snapshot-grid article {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 128px;
  padding: 16px;
}

.city-snapshot-grid span,
.city-snapshot-grid small {
  color: var(--muted);
  display: block;
}

.city-snapshot-grid span {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.city-snapshot-grid strong {
  color: var(--text);
  display: block;
  font-size: 27px;
  line-height: 1.08;
  margin: 13px 0 6px;
}

.city-analytics-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
}

.city-profile-content {
  display: grid;
  gap: 18px;
  padding: 16px;
}

.city-gender-split,
.city-age-bars {
  display: grid;
  gap: 10px;
}

.city-gender-split div,
.city-age-bars div {
  display: grid;
  gap: 6px;
}

.city-gender-split span,
.city-age-bars span,
.city-market-content span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.city-gender-split strong,
.city-age-bars strong {
  font-size: 16px;
}

.city-gender-split i,
.city-age-bars i,
.city-infra-strip i {
  background: #edf1f2;
  border-radius: 999px;
  display: block;
  height: 8px;
  overflow: hidden;
}

.city-gender-split b,
.city-age-bars b {
  background: linear-gradient(90deg, #2f80ed, #16a085);
  display: block;
  height: 100%;
}

.city-market-content {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 16px;
}

.city-market-content div {
  background: #f7f9fa;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px;
}

.city-market-content strong {
  display: block;
  font-size: 22px;
  line-height: 1.1;
  margin-top: 8px;
}

.city-market-content small,
.city-market-content .empty-state {
  color: var(--muted);
  grid-column: 1 / -1;
}

.city-caged-panel {
  margin-bottom: 18px;
}

.city-caged-panel .panel-header small {
  color: var(--muted);
  font-weight: 700;
}

.city-caged-kpis {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 16px 16px 0;
}

.city-caged-kpis article {
  background: #f7f9fa;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  padding: 14px;
}

.city-caged-kpis span,
.city-caged-kpis small,
.city-caged-sections span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.city-caged-kpis strong {
  font-size: 24px;
  line-height: 1.1;
}

.city-caged-kpis .positive,
.city-caged-sections .positive {
  color: #147a5a;
}

.city-caged-kpis .negative,
.city-caged-sections .negative {
  color: #b42318;
}

.city-caged-content {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr);
  padding: 16px;
}

.city-caged-timeline {
  align-items: end;
  background: linear-gradient(180deg, #f7f9fa, #ffffff);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  min-height: 210px;
  padding: 16px 12px 12px;
}

.city-caged-bar {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-rows: 1fr auto;
  height: 180px;
  justify-items: center;
}

.city-caged-bar i {
  align-self: end;
  border-radius: 999px 999px 4px 4px;
  display: block;
  min-height: 8px;
  width: 100%;
}

.city-caged-bar.positive i {
  background: linear-gradient(180deg, #20b486, #147a5a);
}

.city-caged-bar.negative i {
  background: linear-gradient(180deg, #f97066, #b42318);
}

.city-caged-bar span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.city-caged-sections {
  display: grid;
  gap: 10px;
}

.city-caged-sections h3 {
  font-size: 16px;
  margin: 0 0 4px;
}

.city-caged-sections article {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  padding: 12px;
}

.city-caged-sections strong {
  display: block;
  font-size: 13px;
  line-height: 1.25;
}

.city-caged-sections b {
  font-size: 18px;
  white-space: nowrap;
}

.city-infra-strip {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 18px;
}

.city-infra-strip article {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  padding: 14px;
}

.city-infra-strip span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.city-infra-strip strong {
  font-size: 22px;
}

.city-infra-strip b {
  background: linear-gradient(90deg, #16a085, #f2c94c);
  display: block;
  height: 100%;
}

.city-search-panel {
  overflow: visible;
}

.city-search-form {
  align-items: end;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(260px, 1fr) auto;
  padding: 16px;
}

.city-search-form label {
  color: var(--muted);
  display: grid;
  font-size: 12px;
  font-weight: 800;
  gap: 7px;
  text-transform: uppercase;
}

.city-search-form input[type="search"] {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  min-height: 44px;
  padding: 0 12px;
  text-transform: none;
}

.city-search-form input[type="submit"] {
  min-height: 44px;
}

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

.city-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 18px;
  min-height: 180px;
  padding: 18px;
}

.city-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.city-card h2 {
  font-size: 24px;
  margin: 8px 0 4px;
}

.city-card p,
.city-empty-state p {
  color: var(--muted);
  margin: 0;
}

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

.city-empty-state {
  align-items: center;
  color: var(--muted);
  display: grid;
  justify-items: center;
  min-height: 220px;
  padding: 30px;
  text-align: center;
}

.city-empty-state strong {
  color: var(--text);
  font-size: 18px;
}

.city-analysis-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.city-comparison-panel .panel-header small {
  color: var(--muted);
  max-width: 440px;
  text-align: right;
}

.city-ranking-list {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.city-ranking-row {
  background: linear-gradient(180deg, #ffffff, #f8fafb);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(240px, 1.2fr) repeat(2, minmax(210px, 1fr));
  padding: 14px;
}

.city-ranking-heading,
.city-ranking-scope {
  display: grid;
  gap: 6px;
}

.city-ranking-heading span,
.city-ranking-heading small,
.city-ranking-scope span,
.city-ranking-scope small {
  color: var(--muted);
}

.city-ranking-heading span,
.city-ranking-scope span {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.city-ranking-heading strong,
.city-ranking-scope strong {
  color: var(--text);
}

.city-ranking-bar {
  background: #edf1f2;
  border-radius: 999px;
  height: 8px;
  overflow: hidden;
}

.city-ranking-bar i {
  background: linear-gradient(90deg, #2f80ed, #16a085, #f2c94c);
  display: block;
  height: 100%;
}

.city-highlight-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 16px;
}

.city-highlight-grid article {
  background: #f7f9fa;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  min-height: 128px;
  padding: 14px;
}

.city-highlight-grid span,
.city-highlight-grid small,
.city-indicators-panel td small {
  color: var(--muted);
}

.city-highlight-grid span {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.city-highlight-grid strong {
  color: var(--text);
  font-size: 25px;
  line-height: 1.1;
}

.city-highlight-grid small,
.city-indicators-panel td strong,
.city-indicators-panel td small {
  display: block;
}

.city-indicators-panel table {
  min-width: 980px;
}

/* City intelligence workspace */
.city-intelligence-page {
  margin: 0 auto;
  max-width: 1500px;
}

.city-intelligence-page .city-section-frame {
  scroll-margin-top: 90px;
}

.city-intel-hero {
  background: #ffffff;
  border: 1px solid var(--line);
  border-top: 4px solid #1f6f63;
  color: var(--text);
  grid-template-columns: minmax(0, 1fr) minmax(330px, 0.42fr);
  min-height: 230px;
  padding: 26px 28px;
}

.city-intel-hero::after {
  display: none;
}

.city-intel-copy {
  align-content: space-between;
  gap: 24px;
}

.city-back-link {
  align-items: center;
  color: #556167;
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  gap: 5px;
  justify-self: start;
  text-decoration: none;
  text-transform: uppercase;
}

.city-back-link:hover {
  color: #1f6f63;
}

.city-back-link svg,
.city-intel-actions svg {
  fill: none;
  height: 17px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 17px;
}

.city-intel-copy .eyebrow {
  color: #1f6f63;
  margin-bottom: 8px;
}

.city-intel-copy h1 {
  align-items: center;
  color: var(--text);
  display: flex;
  flex-wrap: wrap;
  font-size: 42px;
  gap: 12px;
  line-height: 1.08;
}

.city-intel-copy h1 span {
  background: #eaf3f0;
  border: 1px solid #cfe1dc;
  border-radius: 5px;
  color: #1f6f63;
  font-size: 12px;
  font-weight: 800;
  padding: 6px 8px;
}

.city-intel-copy p:not(.eyebrow) {
  color: #5c686e;
  font-size: 14px;
  line-height: 1.55;
  max-width: 780px;
}

.city-intel-actions {
  margin-top: 0;
}

.city-intel-actions a {
  align-items: center;
  display: inline-flex;
  gap: 8px;
}

.city-intel-actions .secondary-action {
  background: #ffffff;
  border-color: #cfd6d9;
  color: #30383c;
}

.city-intel-score-card {
  background: #202a2e;
  border: 0;
  grid-template-columns: 116px minmax(0, 1fr);
  justify-items: start;
  min-height: 178px;
  padding: 22px;
  text-align: left;
}

.city-intel-score-ring {
  background:
    radial-gradient(circle at center, #202a2e 0 57%, transparent 58%),
    conic-gradient(#f1c84b var(--score), #465156 0);
  height: 116px;
  width: 116px;
}

.city-intel-score-ring strong {
  font-size: 34px;
}

.city-intel-score-card > div:last-child {
  align-self: center;
}

.city-intel-score-card > div:last-child span {
  color: #f1c84b;
}

.city-intel-score-card p {
  color: #e0e5e7;
  font-size: 12px;
  line-height: 1.45;
}

.city-intel-score-card small {
  color: #aeb9bd;
  display: block;
  font-size: 10px;
  line-height: 1.4;
  margin-top: 9px;
}

.city-section-nav {
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 7px;
  display: flex;
  gap: 4px;
  margin-bottom: 18px;
  overflow-x: auto;
  padding: 5px;
  scrollbar-width: thin;
}

.city-section-nav a {
  border-radius: 5px;
  color: #536066;
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 800;
  padding: 9px 12px;
  text-decoration: none;
}

.city-section-nav a:hover {
  background: #eef3f2;
  color: #1f6f63;
}

.city-overview-section {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.city-section-heading {
  align-items: end;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  padding: 15px 18px;
}

.city-section-heading span,
.city-profile-block > header span {
  color: #1f6f63;
  display: block;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.city-section-heading h2 {
  font-size: 19px;
  margin: 3px 0 0;
}

.city-section-heading small,
.city-profile-panel .panel-header > small {
  color: var(--muted);
  font-size: 11px;
}

.city-snapshot-grid {
  gap: 0;
  margin: 0;
}

.city-snapshot-grid article {
  align-items: center;
  border: 0;
  border-radius: 0;
  border-right: 1px solid var(--line);
  display: grid;
  gap: 13px;
  grid-template-columns: 38px minmax(0, 1fr);
  min-height: 138px;
  padding: 18px;
}

.city-snapshot-grid article:last-child {
  border-right: 0;
}

.city-snapshot-grid article > svg {
  background: #edf5f2;
  border-radius: 6px;
  fill: none;
  height: 38px;
  padding: 9px;
  stroke: #1f6f63;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  width: 38px;
}

.city-snapshot-grid strong {
  font-size: 25px;
  margin: 8px 0 4px;
  overflow-wrap: anywhere;
}

.city-usage-strip {
  align-items: center;
  background: #f7f9fa;
  border-top: 1px solid var(--line);
  color: #647077;
  display: flex;
  font-size: 11px;
  gap: 10px 18px;
  justify-content: space-between;
  padding: 10px 18px;
}

.city-usage-strip strong {
  color: #30383c;
}

.city-profile-panel .panel-header {
  align-items: end;
}

.city-profile-content {
  gap: 0;
  grid-template-columns: 0.85fr 1.25fr 0.9fr;
  padding: 0;
}

.city-profile-block {
  align-content: start;
  display: grid;
  gap: 14px;
  min-height: 300px;
  padding: 20px;
}

.city-profile-block + .city-profile-block {
  border-left: 1px solid var(--line);
}

.city-profile-block > header {
  border-bottom: 1px solid #edf0f1;
  display: grid;
  gap: 4px;
  padding-bottom: 12px;
}

.city-profile-block > header strong {
  font-size: 14px;
}

.city-gender-split > div:not(.city-split-track) {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.city-split-track,
.city-housing-visual {
  background: #edf1f2;
  border-radius: 4px;
  display: flex;
  height: 16px;
  overflow: hidden;
}

.city-split-track i,
.city-housing-visual i {
  display: block;
  height: 100%;
}

.city-profile-block .tone-1 {
  background: #2878a8;
}

.city-profile-block .tone-2 {
  background: #d88755;
}

.city-age-bars div {
  grid-template-columns: minmax(0, 1fr) auto;
}

.city-age-bars div i {
  grid-column: 1 / -1;
}

.city-age-bars b {
  background: #1f8b78;
}

.city-housing-split > div:not(.city-housing-visual) {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: 10px minmax(0, 1fr) auto;
}

.city-housing-split > div > i {
  border-radius: 2px;
  height: 10px;
  width: 10px;
}

.city-housing-split span {
  color: var(--muted);
  font-size: 12px;
}

.city-housing-split strong {
  font-size: 14px;
}

.city-housing-visual {
  margin-top: 4px;
}

.city-market-panel {
  margin-bottom: 18px;
}

.city-market-content {
  gap: 0;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  padding: 0;
}

.city-market-content div {
  background: #ffffff;
  border: 0;
  border-radius: 0;
  border-right: 1px solid var(--line);
  min-height: 118px;
  padding: 18px;
}

.city-market-content div:nth-child(5) {
  border-right: 0;
}

.city-market-content > small {
  background: #f7f9fa;
  border-top: 1px solid var(--line);
  padding: 9px 18px;
}

.city-caged-kpis {
  gap: 0;
  padding: 0;
}

.city-caged-kpis article {
  background: #ffffff;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  border-right: 1px solid var(--line);
  padding: 18px;
}

.city-caged-kpis article:last-child {
  border-right: 0;
}

.city-caged-timeline {
  background: #f8faf9;
  border-radius: 6px;
}

.city-caged-bar.positive i {
  background: #1f8b78;
}

.city-caged-bar.negative i {
  background: #c5574d;
}

.city-caged-sections article {
  border-left: 3px solid #d7e5e1;
  border-radius: 4px;
}

.city-ranking-list {
  gap: 0;
  padding: 0;
}

.city-ranking-row {
  background: #ffffff;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  gap: 22px;
  padding: 18px;
}

.city-ranking-row:last-child {
  border-bottom: 0;
}

.city-ranking-heading strong {
  font-size: 14px;
}

.city-ranking-heading small {
  color: #1f6f63;
  font-size: 17px;
  font-weight: 800;
}

.city-ranking-scope > div:first-child {
  align-items: center;
  display: grid;
  gap: 3px 8px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.city-ranking-scope > div:first-child strong {
  font-size: 13px;
}

.city-ranking-scope > div:first-child b {
  background: #edf5f2;
  border-radius: 4px;
  color: #1f6f63;
  font-size: 10px;
  font-weight: 800;
  grid-column: 2;
  grid-row: 1 / span 2;
  padding: 5px 6px;
}

.city-ranking-bar {
  border-radius: 2px;
  height: 6px;
}

.city-ranking-bar i {
  background: #1f8b78;
}

.city-indicators-panel {
  overflow: hidden;
}

.city-indicators-panel > summary {
  cursor: pointer;
  list-style: none;
}

.city-indicators-panel > summary::-webkit-details-marker {
  display: none;
}

.city-indicators-panel > summary h2 {
  margin-bottom: 4px;
}

.city-indicators-panel > summary small {
  color: var(--muted);
  display: block;
  font-size: 11px;
}

.city-indicators-panel > summary svg {
  fill: none;
  height: 20px;
  stroke: #637076;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  transition: transform 160ms ease;
  width: 20px;
}

.city-indicators-panel[open] > summary svg {
  transform: rotate(90deg);
}

.city-indicators-panel[open] > summary {
  background: #f8faf9;
}

@media (max-width: 1250px) {
  .city-intel-hero,
  .city-analytics-grid,
  .city-caged-content {
    grid-template-columns: 1fr;
  }

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

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

  .city-ranking-row {
    grid-template-columns: 1fr;
  }

  .city-profile-content {
    grid-template-columns: 1fr 1fr;
  }

  .city-profile-block:last-child {
    border-left: 0;
    border-top: 1px solid var(--line);
    grid-column: 1 / -1;
    min-height: 0;
  }

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

  .city-market-content div:nth-child(3) {
    border-right: 0;
  }

  .city-market-content div:nth-child(n + 4) {
    border-top: 1px solid var(--line);
  }

  .company-search-filter-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .company-search-segment-field { grid-column: span 2; }
}

@media (max-width: 767.98px) {
  .city-intel-hero {
    gap: 18px;
    padding: 20px;
  }

  .city-intel-copy h1 {
    font-size: 32px;
  }

  .city-intel-score-card {
    grid-template-columns: 96px minmax(0, 1fr);
    min-height: 0;
    padding: 17px;
  }

  .city-intel-score-ring {
    height: 96px;
    width: 96px;
  }

  .city-intel-score-ring strong {
    font-size: 28px;
  }

  .city-intel-actions .primary-action,
  .city-intel-actions .secondary-action {
    justify-content: center;
    width: 100%;
  }

  .city-search-form,
  .city-card-grid,
  .city-highlight-grid,
  .city-snapshot-grid,
  .city-caged-kpis,
  .city-analysis-metrics,
  .city-infra-strip,
  .city-market-content {
    grid-template-columns: 1fr;
  }

  .city-snapshot-grid article {
    border-bottom: 1px solid var(--line);
    border-right: 0;
    min-height: 112px;
  }

  .city-snapshot-grid article:last-child {
    border-bottom: 0;
  }

  .city-usage-strip,
  .city-section-heading,
  .city-profile-panel .panel-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .city-profile-content,
  .city-market-content {
    grid-template-columns: 1fr;
  }

  .city-profile-block,
  .city-profile-block:last-child {
    border-left: 0;
    border-top: 1px solid var(--line);
    grid-column: auto;
    min-height: 0;
  }

  .city-profile-block:first-child {
    border-top: 0;
  }

  .city-market-content div,
  .city-market-content div:nth-child(3),
  .city-market-content div:nth-child(n + 4) {
    border-bottom: 1px solid var(--line);
    border-right: 0;
    border-top: 0;
    min-height: 96px;
  }

  .city-caged-timeline {
    gap: 5px;
    overflow-x: auto;
  }

  .city-caged-bar {
    min-width: 28px;
  }

  .city-card-actions .primary-action,
  .city-card-actions .secondary-action {
    justify-content: center;
    width: 100%;
  }

  .company-search-header { align-items: flex-start; }
  .company-search-header .company-search-export { margin-top: 12px; width: 100%; }
  .company-search-filter-heading { align-items: flex-start; gap: 12px; }
  .company-search-filter-heading small { max-width: 220px; }
  .company-search-filter-grid { grid-template-columns: 1fr; }
  .company-search-segment-field { grid-column: auto; }
  .company-search-choice-grid { grid-template-columns: 1fr; }
  .company-search-filter-actions .primary-action { justify-content: center; width: 100%; }
  .company-search-results .panel-header { align-items: flex-start; flex-direction: column; gap: 8px; }
  .company-search-results .panel-header > small { text-align: left; }
}

@media (max-width: 991.98px) {
  .admin-company-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .poi-rais-kpis,
  .project-rais-overview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .admin-company-search,
  .admin-company-detail-grid,
  .admin-company-definition-list div {
    grid-template-columns: 1fr;
  }

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

  .poi-rais-kpis,
  .project-rais-overview {
    grid-template-columns: 1fr;
  }

  .poi-rais-row,
  .project-rais-city-row {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

.poi-rais-row em,
.project-rais-city-row em {
  text-align: left;
  }
}

.sector-city-link {
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(36, 40, 42, .28);
  text-underline-offset: 3px;
}

.sector-city-link:hover {
  color: var(--accent);
  text-decoration-color: currentColor;
}

/* Concentration places */
.concentration-header p:last-child,
.concentration-detail-header > div > p:last-child { color: var(--muted); margin: 8px 0 0; }
.concentration-filter-form { align-items: end; display: grid; gap: 14px; grid-template-columns: minmax(260px, 1fr) 230px 84px auto; }
.concentration-filter-form label { color: var(--muted); display: grid; font-size: 12px; font-weight: 700; gap: 7px; }
.concentration-filter-form input,
.concentration-filter-form select { background: #fff; border: 1px solid var(--line); border-radius: 6px; color: var(--ink); min-height: 42px; padding: 0 12px; }
.concentration-summary-strip { display: flex; gap: 8px; margin: 18px 0; overflow-x: auto; padding-bottom: 4px; }
.concentration-category-chip { align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 6px; color: var(--ink); display: flex; flex: 0 0 auto; gap: 10px; padding: 8px 11px; text-decoration: none; }
.concentration-category-chip strong { background: #e8f3f0; border-radius: 4px; color: #17695f; font-size: 12px; padding: 2px 6px; }
.concentration-category-chip.active { border-color: var(--accent); }
.concentration-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.concentration-card { align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 7px; display: grid; gap: 14px; grid-template-columns: 52px minmax(0, 1fr) 42px; min-height: 116px; padding: 16px; }
.concentration-card-mark { align-items: center; aspect-ratio: 1; background: #e8f3f0; border-radius: 6px; color: #17695f; display: flex; font-size: 10px; font-weight: 800; justify-content: center; }
.concentration-card-body { min-width: 0; }
.concentration-card-body > span { color: var(--accent); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.concentration-card-body h2 { margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.concentration-card-body p { color: var(--muted); margin: 5px 0 2px; }
.concentration-card-body small { color: #7a858b; }
.concentration-card-open { align-items: center; border: 1px solid var(--line); border-radius: 6px; color: var(--ink); display: flex; height: 38px; justify-content: center; text-decoration: none; width: 38px; }
.concentration-detail-header { align-items: end; display: flex; gap: 20px; justify-content: space-between; margin-bottom: 22px; }
.concentration-detail-header .poi-report-back { margin-bottom: 16px; }
.concentration-favorite.is-active { color: #a97800; }
.concentration-hero-grid { display: grid; gap: 16px; grid-template-columns: minmax(0, 1.7fr) minmax(260px, .7fr); }
.concentration-map { align-items: center; background: #eef1ef; border: 1px solid var(--line); border-radius: 7px; display: flex; height: 370px; justify-content: center; overflow: hidden; position: relative; }
.concentration-map > span { color: var(--muted); }
.concentration-score-panel { background: #183e3a; border-radius: 7px; color: #fff; display: flex; flex-direction: column; justify-content: center; padding: 28px; }
.concentration-score-panel > span { color: #a9d8d0; font-size: 12px; font-weight: 800; text-transform: uppercase; }
.concentration-score-panel > strong { font-size: 64px; line-height: 1; margin: 14px 0 8px; }
.concentration-score-panel > strong small { color: #a9d8d0; font-size: 16px; }
.concentration-score-panel p { margin-bottom: 18px; }
.concentration-score-panel > small { color: #bad1cd; line-height: 1.4; }
.concentration-score-bar,
.concentration-dimension > div { background: rgba(255,255,255,.16); border-radius: 3px; height: 6px; overflow: hidden; }
.concentration-score-bar { margin-bottom: 18px; }
.concentration-score-bar i,
.concentration-dimension i { background: #55c8b5; display: block; height: 100%; }
.concentration-kpis { display: grid; gap: 12px; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 16px 0; }
.concentration-kpis article { background: #fff; border: 1px solid var(--line); border-radius: 7px; display: grid; gap: 3px; padding: 18px; }
.concentration-kpis span { color: var(--muted); font-size: 12px; font-weight: 700; }
.concentration-kpis strong { font-size: 28px; }
.concentration-kpis small { color: #7a858b; }
.concentration-analysis-grid { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 16px; }
.concentration-dimension { align-items: center; display: grid; gap: 12px; grid-template-columns: 120px minmax(0, 1fr) 30px; margin-top: 17px; }
.concentration-dimension > div { background: #e8eeec; }
.concentration-dimension strong { font-size: 12px; text-align: right; }
.concentration-segments > div { align-items: center; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; padding: 11px 0; }
.concentration-business-list table { width: 100%; }
.concentration-business-list th { color: var(--muted); font-size: 11px; padding: 10px; text-transform: uppercase; }
.concentration-business-list td { border-top: 1px solid var(--line); padding: 12px 10px; }
.concentration-business-list td:first-child { display: grid; }
.concentration-business-list td small { color: var(--muted); display: block; }
.concentration-status { border-radius: 4px; display: inline-block; font-size: 11px; font-weight: 800; padding: 4px 7px; }
.concentration-status.confirmed { background: #e1f3eb; color: #176848; }
.concentration-status.pending { background: #fff0d2; color: #805b0a; }

@media (max-width: 900px) {
  .concentration-filter-form,
  .concentration-hero-grid,
  .concentration-analysis-grid { grid-template-columns: 1fr; }
  .concentration-grid { grid-template-columns: 1fr; }
  .concentration-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .concentration-detail-header { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 520px) {
  .concentration-kpis { grid-template-columns: 1fr; }
  .concentration-detail-header .page-actions { align-items: stretch; flex-direction: column; width: 100%; }
  .concentration-map { height: 300px; }
}

/* Poles inside city and census-sector intelligence */
.city-places-section .city-section-heading > a,
.sector-nearby-places > header > a { color: #1f6f63; font-size: 12px; font-weight: 800; text-decoration: none; }
.city-places-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); }
.city-place-total { align-content: center; background: #183e3a; color: #fff; display: grid; gap: 5px; padding: 24px; }
.city-place-total span { color: #a9d8d0; font-size: 11px; font-weight: 800; text-transform: uppercase; }
.city-place-total strong { font-size: 42px; line-height: 1; margin: 7px 0; }
.city-place-total small { color: #bad1cd; line-height: 1.4; }
.city-place-categories { display: grid; gap: 13px; padding: 20px 24px; }
.city-place-categories > div { align-items: center; display: grid; gap: 12px; grid-template-columns: minmax(130px, 210px) minmax(80px, 1fr) 34px; }
.city-place-categories span { color: #364146; font-size: 12px; }
.city-place-categories > div > div { background: #e8eeec; border-radius: 3px; height: 6px; overflow: hidden; }
.city-place-categories i { background: #35a795; display: block; height: 100%; }
.city-place-categories strong { font-size: 12px; text-align: right; }
.city-featured-places { border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.city-featured-places > a { display: grid; gap: 5px; min-width: 0; padding: 16px 18px; text-decoration: none; }
.city-featured-places > a + a { border-left: 1px solid var(--line); }
.city-featured-places span { color: #1f6f63; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.city-featured-places strong { color: #202426; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.city-featured-places small { color: #697277; }
.city-places-empty { padding: 28px 18px; }
.city-places-empty p { color: var(--muted); margin: 6px 0 0; }
.sector-place-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sector-place-card { align-items: center; color: #202426; display: grid; gap: 12px; grid-template-columns: 44px minmax(0, 1fr) auto; min-height: 76px; padding: 13px 18px; text-decoration: none; }
.sector-place-card:nth-child(odd) { border-right: 1px solid var(--line); }
.sector-place-card:nth-child(n + 3) { border-top: 1px solid var(--line); }
.sector-place-kind { align-items: center; background: #f7e9e3; border-radius: 5px; color: #a34d2b; display: flex; font-size: 9px; font-weight: 800; height: 40px; justify-content: center; }
.sector-place-card > div { display: grid; min-width: 0; }
.sector-place-card small { color: #697277; font-size: 10px; text-transform: uppercase; }
.sector-place-card strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sector-place-distance { color: #697277; font-size: 12px; font-weight: 700; }
.sector-place-popup { display: grid; gap: 4px; min-width: 150px; }
.sector-place-popup small { color: #a34d2b; font-size: 10px; text-transform: uppercase; }
.sector-place-popup a { color: #1f6f63; font-weight: 700; margin-top: 4px; }
.map-concentration-categories { border: 0; margin: 2px 0 0; padding: 0; }
.map-concentration-categories legend { color: #697277; font-size: 11px; font-weight: 800; margin-bottom: 8px; text-transform: uppercase; }
.map-concentration-categories > div { display: grid; gap: 6px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.map-concentration-categories label { align-items: center; display: flex; gap: 7px; min-width: 0; }
.map-concentration-categories label span { font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.map-pole-swatch { background-color: #1f6f63; background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.42) 0 2px, transparent 2px 4px); border: 2px solid #fff; border-radius: 50%; box-shadow: 0 0 0 1px #1f6f63; flex: 0 0 auto; height: 11px; width: 11px; }

@media (max-width: 900px) {
  .city-featured-places { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .city-featured-places > a:nth-child(odd) { border-left: 0; }
  .city-featured-places > a:nth-child(n + 3) { border-top: 1px solid var(--line); }
}

@media (max-width: 640px) {
  .city-places-layout,
  .sector-place-grid { grid-template-columns: 1fr; }
  .city-place-categories > div { grid-template-columns: 120px minmax(60px, 1fr) 30px; }
  .sector-place-card:nth-child(odd) { border-right: 0; }
  .sector-place-card:nth-child(n + 2) { border-top: 1px solid var(--line); }
}
/* Security audit trail */
.security-log-details-link {
  display: inline-flex;
  min-height: 34px;
  padding: 7px 11px;
  white-space: nowrap;
}

.security-session-header {
  align-items: flex-end;
}

.security-session-back {
  align-items: center;
  color: #526068;
  display: inline-flex;
  font-size: 0.86rem;
  font-weight: 700;
  gap: 7px;
  margin-bottom: 18px;
  text-decoration: none;
}

.security-session-back:hover {
  color: #161c1f;
}

.security-session-status {
  background: #f1f3f4;
  border: 1px solid #dce1e3;
  border-radius: 6px;
  color: #526068;
  font-size: 0.82rem;
  font-weight: 800;
  padding: 8px 11px;
}

.security-session-status.is-active {
  background: #eaf6f1;
  border-color: #b9dfd0;
  color: #176246;
}

.security-session-summary {
  border-bottom: 1px solid #dfe4e6;
  border-top: 1px solid #dfe4e6;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
  margin-bottom: 24px;
}

.security-session-summary > div {
  min-width: 0;
  padding: 18px 20px 18px 0;
}

.security-session-summary span,
.security-session-summary small {
  color: #68757b;
  display: block;
  font-size: 0.76rem;
}

.security-session-summary strong {
  display: block;
  font-size: 0.94rem;
  margin: 4px 0 2px;
  overflow-wrap: anywhere;
}

.security-event-panel {
  padding: 0;
}

.security-event-heading {
  align-items: center;
  border-bottom: 1px solid #e4e8e9;
  display: flex;
  justify-content: space-between;
  padding: 20px 22px;
}

.security-event-heading h2,
.security-event-heading p {
  margin-bottom: 0;
}

.security-event-heading > strong {
  color: #68757b;
  font-size: 0.78rem;
}

.security-event-table table {
  min-width: 980px;
}

.security-event-table code {
  background: transparent;
  color: #364247;
  display: block;
  font-size: 0.75rem;
  max-width: 290px;
  overflow-wrap: anywhere;
  white-space: normal;
}

.security-event-type,
.security-response-status {
  background: #f1f3f4;
  border-radius: 4px;
  display: inline-flex;
  font-size: 0.74rem;
  font-weight: 800;
  padding: 5px 7px;
  white-space: nowrap;
}

.security-response-status.is-success {
  background: #eaf6f1;
  color: #176246;
}

.security-response-status.is-warning {
  background: #fff1ef;
  color: #a13b32;
}

.security-event-limit {
  border-top: 1px solid #e4e8e9;
  color: #68757b;
  font-size: 0.78rem;
  margin: 0;
  padding: 12px 22px;
}

@media (max-width: 720px) {
  .security-session-header {
    align-items: flex-start;
  }

  .security-event-heading {
    align-items: flex-start;
    gap: 12px;
  }
}
.brand-admin-identity { display:flex; align-items:center; gap:.75rem; }
.brand-admin-identity img,.brand-admin-identity>span { width:40px; height:40px; border-radius:6px; object-fit:contain; background:#fff; border:1px solid #dfe4e6; display:grid; place-items:center; color:#fff; background-color:var(--brand-color); font-weight:700; }
.brand-admin-identity div { display:flex; flex-direction:column; }
.brand-admin-identity small { color:#68777c; }
.brand-catalog-search { align-items:end; display:flex; gap:.75rem; padding:1rem; }
.brand-catalog-search label { flex:1; max-width:32rem; }
.brand-catalog-total { color:#68777c; font-size:.85rem; margin-left:auto; padding-bottom:.7rem; }
.map-brand-option { align-items:center; display:flex; gap:6px; justify-content:space-between; }
.map-brand-option label { flex:1; min-width:0; }
.map-brand-analysis-link { align-items:center; color:#5e6c71; display:flex; flex:0 0 28px; height:28px; justify-content:center; }
.map-brand-analysis-link:hover { color:var(--accent); }
.map-brand-analysis-link svg { fill:none; height:16px; stroke:currentColor; stroke-linecap:round; stroke-linejoin:round; stroke-width:1.8; width:16px; }
.brand-form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1rem; }
.brand-rule-list { display:grid; gap:.65rem; }

.brand-analysis-page { display:grid; gap:18px; margin:0 auto; max-width:1440px; padding:24px; }
.brand-analysis-hero { align-items:end; background:#172125; color:#fff; display:flex; justify-content:space-between; min-height:230px; padding:28px 32px; }
.brand-analysis-heading { display:grid; gap:34px; }
.brand-analysis-hero .city-back-link { color:#c7d2d5; }
.brand-analysis-identity { align-items:center; display:flex; gap:20px; }
.brand-analysis-identity > img,.brand-analysis-identity > span { align-items:center; background:#fff; border:1px solid #d8e0e2; border-radius:8px; color:#fff; display:flex; font-size:30px; font-weight:800; height:88px; justify-content:center; object-fit:contain; padding:8px; width:88px; }
.brand-analysis-identity > span { background-color:var(--brand-color); }
.brand-analysis-identity .eyebrow { color:#9fd1c7; margin:0 0 5px; }
.brand-analysis-identity h1 { color:#fff; font-size:36px; letter-spacing:0; margin:0; }
.brand-analysis-identity p:last-child { color:#c7d2d5; margin:7px 0 0; max-width:680px; }
.brand-analysis-verdict { border-left:3px solid #46c49b; display:grid; min-width:210px; padding:4px 0 4px 18px; }
.brand-analysis-verdict.is-negative { border-color:#e26d6d; }
.brand-analysis-verdict span,.brand-analysis-verdict small { color:#c7d2d5; font-size:12px; }
.brand-analysis-verdict strong { font-size:42px; line-height:1.15; }
.brand-analysis-metrics { display:grid; gap:1px; grid-template-columns:repeat(6,minmax(0,1fr)); }
.brand-analysis-metrics article { background:#fff; border:1px solid var(--line); display:grid; gap:7px; min-height:105px; padding:18px; }
.brand-analysis-metrics span { color:#68777c; font-size:12px; font-weight:700; }
.brand-analysis-metrics strong { color:#172125; font-size:27px; }
.brand-analysis-grid { display:grid; gap:18px; grid-template-columns:repeat(2,minmax(0,1fr)); }
.brand-analysis-panel { background:#fff; border:1px solid var(--line); border-radius:8px; min-width:0; }
.brand-analysis-panel-wide { grid-column:1/-1; }
.brand-analysis-panel > header { align-items:center; border-bottom:1px solid #e8edef; display:flex; justify-content:space-between; min-height:74px; padding:15px 20px; }
.brand-analysis-panel > header .eyebrow { margin:0 0 4px; }
.brand-analysis-panel > header h2 { font-size:18px; margin:0; }
.brand-analysis-panel > header > span { color:#68777c; font-size:12px; }
.brand-timeline { align-items:end; display:grid; gap:8px; grid-template-columns:repeat(12,minmax(42px,1fr)); min-height:260px; overflow-x:auto; padding:24px 20px 10px; }
.brand-timeline-month { display:grid; gap:5px; min-width:42px; text-align:center; }
.brand-timeline-bars { align-items:end; display:flex; gap:3px; height:165px; justify-content:center; }
.brand-timeline-bars i { border-radius:3px 3px 0 0; display:block; min-height:2px; width:11px; }
.brand-timeline .is-opened,.brand-chart-legend .is-opened { background:#2a9d78; }
.brand-timeline .is-closed,.brand-chart-legend .is-closed { background:#d95d5d; }
.brand-timeline-month strong { color:#38464b; font-size:11px; }
.brand-timeline-month span { color:#738086; font-size:10px; text-transform:uppercase; }
.brand-chart-legend { align-items:center; border-top:1px solid #edf0f1; display:flex; gap:18px; padding:12px 20px; }
.brand-chart-legend span { align-items:center; display:flex; font-size:12px; gap:6px; }
.brand-chart-legend i { border-radius:2px; display:block; height:8px; width:8px; }
.brand-chart-legend small { color:#738086; margin-left:auto; }
.brand-ranking-list { display:grid; gap:14px; padding:20px; }
.brand-ranking-list > div { align-items:center; display:grid; gap:10px; grid-template-columns:74px 1fr 42px; }
.brand-ranking-list > a { align-items:center; color:inherit; display:grid; gap:10px; grid-template-columns:74px 1fr 42px; margin:-4px -8px; padding:8px; text-decoration:none; }
.brand-ranking-list > a:hover,.brand-ranking-list > a.is-selected { background:#f1f6f4; }
.brand-ranking-list span { display:grid; }
.brand-ranking-list small { color:#7a878c; font-size:9px; }
.brand-ranking-list i { background:#edf1f2; border-radius:2px; display:block; height:8px; overflow:hidden; }
.brand-ranking-list b { background:#198b79; display:block; height:100%; }
.brand-ranking-list em,.brand-status-list em { color:#344247; font-size:12px; font-style:normal; font-weight:700; text-align:right; }
.brand-status-list { display:grid; padding:12px 20px; }
.brand-status-list > div { align-items:center; border-bottom:1px solid #edf0f1; display:grid; gap:10px; grid-template-columns:10px 1fr auto; padding:11px 0; }
.brand-status-dot { background:#829095; border-radius:50%; height:8px; width:8px; }
.brand-status-dot.is-02 { background:#2a9d78; }.brand-status-dot.is-08 { background:#d95d5d; }.brand-status-dot.is-03,.brand-status-dot.is-04 { background:#e4a63b; }
.brand-analysis-note { color:#6c797e; font-size:11px; margin:0; padding:0 20px 18px; }
.brand-analysis-table-panel .table-wrap { border:0; }
.brand-analysis-table-panel table { margin:0; }
.brand-clear-filter { color:#285f55; font-size:12px; font-weight:700; text-decoration:none; }
.brand-analysis-table-panel tr.is-selected { background:#eef6f3; }
.brand-analysis-table-panel .table-actions-cell { text-align:right; white-space:nowrap; }
.brand-city-actions { align-items:center; display:inline-flex; gap:6px; justify-content:flex-end; }
.brand-city-units,.brand-city-map { align-items:center; border:1px solid #cbd5d7; border-radius:5px; color:#425157; display:inline-flex; font-size:11px; font-weight:700; justify-content:center; min-height:32px; text-decoration:none; }
.brand-city-units { gap:6px; padding:0 10px; }
.brand-city-map { padding:0; width:32px; }
.brand-city-units svg,.brand-city-map svg { fill:none; height:15px; stroke:currentColor; stroke-linecap:round; stroke-linejoin:round; stroke-width:1.8; width:15px; }
.brand-city-units:hover,.brand-city-map:hover { background:#edf4f2; border-color:#95b4ac; color:#175f50; text-decoration:none; }
.brand-city-units.is-selected { background:#176e5b; border-color:#176e5b; color:#fff; }
.brand-geography-empty { color:#667479; padding:34px 20px; text-align:center; }
.brand-geography-empty strong { color:#263236; display:block; font-size:15px; }
.brand-geography-empty p { font-size:12px; margin:7px auto 0; max-width:520px; }
.brand-movement-tabs { border-bottom:1px solid #e2e7e9; display:flex; gap:4px; overflow-x:auto; padding:10px 20px 0; }
.brand-movement-tabs a { border-bottom:2px solid transparent; color:#647176; flex:0 0 auto; font-size:12px; font-weight:700; padding:10px 12px; text-decoration:none; }
.brand-movement-tabs a:hover,.brand-movement-tabs a.is-active { border-bottom-color:#17846a; color:#145d4d; }
.brand-units-empty { color:#707d82; padding:30px !important; text-align:center; }
.brand-event-note { border-top:1px solid #edf0f1; margin:0; padding-top:14px; }
.brand-scroll-target { scroll-margin-top:88px; }
.brand-city-search { align-items:end; background:#f7f9f9; border-bottom:1px solid #e3e8e9; display:grid; gap:5px 12px; grid-template-columns:minmax(220px,420px) auto; padding:14px 20px; }
.brand-city-search label { color:#536167; font-size:11px; font-weight:700; grid-column:1; }
.brand-city-search > div { grid-column:1; position:relative; }
.brand-city-search svg { fill:none; height:17px; left:11px; pointer-events:none; position:absolute; stroke:#748187; stroke-linecap:round; stroke-width:1.8; top:11px; width:17px; }
.brand-city-search input { background:#fff; border:1px solid #cbd4d6; border-radius:6px; color:#263236; height:40px; padding:0 36px; width:100%; }
.brand-city-search input:focus { border-color:#4b897a; box-shadow:0 0 0 3px rgba(45,128,106,.1); outline:0; }
.brand-city-search > span { color:#6e7b80; font-size:11px; grid-column:2; grid-row:2; white-space:nowrap; }
.brand-city-filter-empty td { color:#6e7b80; padding:28px !important; text-align:center; }
.brand-city-filter-empty[hidden],.brand-analysis-table-panel tr[hidden] { display:none; }
@media (max-width:600px) { .brand-city-search { align-items:start; grid-template-columns:1fr; } .brand-city-search > span { grid-column:1; grid-row:auto; } }
.network-search-panel { margin-bottom:18px; }
.network-catalog-grid { display:grid; gap:14px; grid-template-columns:repeat(3,minmax(0,1fr)); }
.network-catalog-item { background:#fff; border:1px solid var(--line); border-radius:8px; display:grid; min-height:156px; }
.network-catalog-identity { align-items:center; display:flex; gap:14px; padding:20px; }
.network-catalog-identity > img,.network-catalog-identity > span { align-items:center; background:#fff; border:1px solid #dfe4e6; border-radius:8px; color:#fff; display:flex; flex:0 0 58px; font-size:22px; font-weight:800; height:58px; justify-content:center; object-fit:contain; padding:5px; width:58px; }
.network-catalog-identity > span { background-color:var(--brand-color); }
.network-catalog-identity h2 { font-size:17px; margin:0 0 5px; }
.network-catalog-identity p { color:#6d797e; font-size:12px; margin:0; }
.network-catalog-open { align-items:center; border-top:1px solid #edf0f1; color:#245f56; display:flex; font-size:12px; font-weight:700; justify-content:space-between; padding:12px 20px; text-decoration:none; }
.network-catalog-open:hover { background:#f6f9f8; color:#17473f; }
.network-catalog-open svg { fill:none; height:16px; stroke:currentColor; stroke-linecap:round; stroke-linejoin:round; stroke-width:2; width:16px; }

@media (max-width: 900px) {
  .brand-analysis-page { padding:14px; }
  .brand-analysis-hero { align-items:flex-start; flex-direction:column; gap:24px; padding:22px; }
  .brand-analysis-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .brand-analysis-grid { grid-template-columns:1fr; }
  .brand-analysis-panel-wide { grid-column:1; }
  .brand-analysis-verdict { width:100%; }
  .network-catalog-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}

@media (max-width: 560px) {
  .brand-analysis-identity { align-items:flex-start; }
  .brand-analysis-identity > img,.brand-analysis-identity > span { height:64px; width:64px; }
  .brand-analysis-identity h1 { font-size:26px; }
  .brand-analysis-metrics article { min-height:88px; padding:14px; }
  .brand-analysis-metrics strong { font-size:22px; }
  .brand-chart-legend { align-items:flex-start; flex-wrap:wrap; }
  .brand-chart-legend small { flex-basis:100%; margin:0; }
  .network-catalog-grid { grid-template-columns:1fr; }
}
.brand-rule-row { display:grid; grid-template-columns:minmax(180px,.8fr) minmax(240px,1.5fr) 90px auto; gap:.65rem; align-items:end; }

.dashboard-intelligence { margin-bottom:24px; }
.dashboard-intelligence-header { align-items:end; display:flex; gap:24px; justify-content:space-between; margin-bottom:14px; }
.dashboard-intelligence-header h2 { font-size:21px; margin:3px 0 0; }
.dashboard-intelligence-header > p { color:#69767b; font-size:13px; margin:0; max-width:420px; text-align:right; }
.dashboard-pulse { background:#20282b; border-radius:8px; color:#fff; display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); margin-bottom:14px; }
.dashboard-pulse > div { display:grid; gap:5px; min-height:78px; padding:15px 18px; }
.dashboard-pulse > div + div { border-left:1px solid #414a4e; }
.dashboard-pulse span { color:#cbd2d4; font-size:11px; font-weight:700; text-transform:uppercase; }
.dashboard-pulse strong { font-size:25px; line-height:1; }
.dashboard-intelligence-grid { display:grid; gap:14px; grid-template-columns:repeat(3,minmax(0,1fr)); }
.dashboard-insight-panel { background:#fff; border:1px solid var(--line); border-radius:8px; display:flex; flex-direction:column; min-height:250px; padding:18px; }
.dashboard-insight-heading { align-items:center; display:flex; gap:11px; margin-bottom:16px; }
.dashboard-insight-heading h3 { font-size:16px; margin:2px 0 0; }
.dashboard-insight-heading .eyebrow { font-size:10px; margin:0; }
.dashboard-insight-icon { align-items:center; background:#edf0f1; border-radius:7px; color:#45545a; display:flex; flex:0 0 38px; height:38px; justify-content:center; }
.dashboard-insight-icon-growth { background:#e8f4ef; color:#187158; }
.dashboard-insight-icon-network { background:#f5eee7; color:#9a6233; }
.dashboard-insight-icon svg,.dashboard-continue-link svg,.dashboard-network-list svg { fill:none; height:18px; stroke:currentColor; stroke-linecap:round; stroke-linejoin:round; stroke-width:1.9; width:18px; }
.dashboard-continue-link { align-items:center; background:#f4f7f7; border-radius:6px; color:#202a2e; display:grid; gap:3px; grid-template-columns:1fr auto; padding:15px; text-decoration:none; }
.dashboard-continue-link strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.dashboard-continue-link span { color:#6c787d; font-size:11px; grid-column:1; }
.dashboard-continue-link svg { grid-column:2; grid-row:1/3; }
.dashboard-continue-link:hover { background:#eaf0ef; color:#164f45; text-decoration:none; }
.dashboard-favorite-shortcuts { display:flex; flex-wrap:wrap; gap:6px; margin-top:14px; }
.dashboard-favorite-shortcuts > span { color:#7a858a; flex-basis:100%; font-size:10px; font-weight:700; text-transform:uppercase; }
.dashboard-favorite-shortcuts a { border-bottom:1px solid #cad2d4; color:#435157; font-size:11px; max-width:100%; overflow:hidden; padding:3px 0; text-overflow:ellipsis; white-space:nowrap; }
.dashboard-ranking,.dashboard-network-list { display:grid; }
.dashboard-ranking a { align-items:center; border-top:1px solid #edf0f1; color:#263236; display:grid; gap:9px; grid-template-columns:23px 1fr auto; min-height:48px; text-decoration:none; }
.dashboard-ranking a:first-child { border-top:0; }
.dashboard-ranking a > span { align-items:center; background:#edf1f2; border-radius:50%; color:#556268; display:flex; font-size:10px; font-weight:800; height:22px; justify-content:center; }
.dashboard-ranking strong { font-size:12px; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.dashboard-ranking small { color:#7a858a; font-size:10px; }
.dashboard-ranking em { color:#168061; font-size:12px; font-style:normal; font-weight:800; }
.dashboard-ranking em.is-negative { color:#bc4f4f; }
.dashboard-network-list a { align-items:center; border-top:1px solid #edf0f1; color:#263236; display:grid; gap:10px; grid-template-columns:34px 1fr 16px; min-height:50px; text-decoration:none; }
.dashboard-network-list a:first-child { border-top:0; }
.dashboard-network-mark { align-items:center; background:#f2f4f4; border-radius:6px; display:flex; font-size:12px; font-weight:800; height:30px; justify-content:center; overflow:hidden; width:30px; }
.dashboard-network-mark img { height:100%; object-fit:contain; padding:2px; width:100%; }
.dashboard-network-list strong { display:grid; font-size:12px; }
.dashboard-network-list small { color:#798589; font-size:10px; font-weight:400; margin-top:2px; }
.dashboard-network-list svg { color:#8b969a; height:15px; width:15px; }
.dashboard-insight-empty { color:#727f84; font-size:12px; line-height:1.5; margin:auto 0; }
.dashboard-insight-footer-link { color:#285d54; font-size:11px; font-weight:700; margin-top:auto; padding-top:12px; text-decoration:none; }
@media (max-width:1000px) { .dashboard-intelligence-grid { grid-template-columns:1fr 1fr; } .dashboard-continue-panel { grid-column:1/-1; } }
@media (max-width:700px) { .dashboard-intelligence-header { align-items:flex-start; flex-direction:column; gap:6px; } .dashboard-intelligence-header > p { text-align:left; } .dashboard-pulse { grid-template-columns:repeat(2,1fr); } .dashboard-pulse > div:nth-child(3) { border-left:0; border-top:1px solid #414a4e; } .dashboard-pulse > div:nth-child(4) { border-top:1px solid #414a4e; } .dashboard-intelligence-grid { grid-template-columns:1fr; } .dashboard-continue-panel { grid-column:1; } }
.map-brand-marker-container { background:transparent; border:0; }
.map-brand-marker { width:32px; height:32px; display:grid; place-items:center; overflow:hidden; border:2px solid var(--brand-color); border-radius:50%; background:#fff; box-shadow:0 2px 7px rgb(0 0 0 / .25); color:var(--brand-color); font-size:14px; }
.map-brand-marker img { width:100%; height:100%; object-fit:contain; padding:3px; }
@media (max-width:720px) { .brand-form-grid,.brand-rule-row { grid-template-columns:1fr; } }
.brand-discovery-status { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:1rem; margin-bottom:1rem; }
.brand-discovery-status div { display:flex; flex-direction:column; gap:.2rem; }
.brand-discovery-status span,.brand-candidate-normalized { display:block; color:#68777c; font-size:.78rem; }
.brand-discovery-status strong { font-size:1.35rem; }
.brand-score { display:inline-grid; place-items:center; min-width:42px; margin-top:.4rem; padding:.2rem .45rem; border-radius:4px; background:#e7f2ed; color:#176b4d; font-weight:700; }
.brand-review-actions { display:flex; align-items:center; gap:.45rem; min-width:420px; }
.brand-link-form { display:flex; align-items:center; gap:.35rem; }
.brand-link-form select { max-width:180px; }
@media (max-width:900px) { .brand-discovery-status { grid-template-columns:repeat(2,1fr); } }
.map-work-swatch,
.map-work-marker {
  background: #e3a11a;
  border: 2px solid #704b05;
  box-shadow: 0 2px 7px rgba(17, 23, 25, 0.25);
}

.map-work-swatch {
  width: 14px;
  height: 14px;
  display: inline-block;
  transform: rotate(45deg);
}

.map-work-marker-container { background: transparent; border: 0; }

.map-work-marker {
  align-items: center;
  color: #302000;
  display: flex;
  font-size: 10px;
  font-weight: 800;
  height: 24px;
  justify-content: center;
  transform: rotate(45deg);
  width: 24px;
}

.map-work-marker b { transform: rotate(-45deg); }
.poi-decision-label {
  color: #66737b;
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  text-transform: uppercase;
}

.poi-decision-gates {
  border-bottom: 1px solid #dfe6e8;
  border-top: 1px solid #dfe6e8;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 1rem 0;
}

.poi-decision-gates article {
  align-items: center;
  display: flex;
  gap: 0.7rem;
  min-width: 0;
  padding: 0.8rem;
}

.poi-decision-gates article + article { border-left: 1px solid #dfe6e8; }
.poi-decision-gates article > span {
  align-items: center;
  background: #eef2f3;
  border-radius: 50%;
  color: #6b7478;
  display: flex;
  flex: 0 0 26px;
  font-size: 0.75rem;
  font-weight: 800;
  height: 26px;
  justify-content: center;
}
.poi-decision-gates article.is-complete > span { background: #dcefe5; color: #17633d; }
.poi-decision-gates strong, .poi-decision-gates small { display: block; }
.poi-decision-gates strong { color: #172026; font-size: 0.78rem; }
.poi-decision-gates small { color: #66737b; font-size: 0.69rem; margin-top: 0.15rem; }

.poi-strategic-context {
  background: #fff;
  border: 1px solid #dfe6e8;
  margin: 1rem 0 1.5rem;
  padding: 1.25rem;
}
.poi-strategic-context > header { align-items: end; display: flex; justify-content: space-between; gap: 2rem; }
.poi-strategic-context > header h2 { font-size: 1.15rem; margin: 0; }
.poi-strategic-context > header > p { color: #66737b; font-size: 0.82rem; margin: 0; max-width: 34rem; }
.poi-strategic-context > div { display: grid; gap: 1px; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 1rem; background: #dfe6e8; }
.poi-strategic-context article { align-items: center; background: #f8fafb; display: flex; gap: 0.8rem; min-width: 0; padding: 1rem; }
.poi-strategic-context article strong, .poi-strategic-context article span, .poi-strategic-context article small { display: block; }
.poi-strategic-context article strong { color: #172026; font-size: 1.35rem; }
.poi-strategic-context article span { color: #344e55; font-size: 0.78rem; font-weight: 700; }
.poi-strategic-context article small { color: #66737b; font-size: 0.7rem; }
.poi-strategic-context footer { color: #66737b; font-size: 0.72rem; margin-top: 0.8rem; }
.poi-strategic-icon { border: 3px solid #276a86; flex: 0 0 26px; height: 26px; }
.poi-strategic-icon.is-works { border-color: #ad7b21; transform: rotate(45deg); }
.poi-strategic-icon.is-poles { border-color: #33836f; border-radius: 50%; }
.poi-strategic-icon.is-brands { border-color: #c74646; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); }

@media (max-width: 900px) {
  .poi-decision-gates, .poi-strategic-context > div { grid-template-columns: 1fr; }
  .poi-decision-gates article + article { border-left: 0; border-top: 1px solid #dfe6e8; }
  .poi-strategic-context > header { align-items: start; flex-direction: column; gap: 0.4rem; }
}
