:root {
  --localo-primary: #0f2744;
  --localo-primary-dark: #0a1a2e;
  --localo-accent: #2563eb;
  --localo-accent-hover: #1d4ed8;
  --localo-surface: #f4f7fb;
  --localo-border: #e2e8f0;
  --localo-text-muted: #64748b;
  --localo-dev: #312e81;
  --localo-manager: #0f4c5c;
}

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background-color: var(--localo-surface);
  color: #1e293b;
}

.auth-shell {
  min-height: 100vh;
  max-height: 100vh;
  overflow: hidden;
}

.auth-form-panel {
  max-height: 100vh;
  overflow-y: auto;
}

@media (min-width: 992px) {
  .auth-form-panel.auth-form-panel--fit {
    overflow-y: hidden;
  }
}

.auth-brand-panel {
  background: linear-gradient(145deg, var(--localo-primary-dark) 0%, var(--localo-primary) 55%, #1e3a5f 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.auth-brand-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 80%, rgba(37, 99, 235, 0.25), transparent 50%);
  pointer-events: none;
}

.auth-brand-panel.dev-panel {
  background: linear-gradient(145deg, #1e1b4b 0%, var(--localo-dev) 55%, #3730a3 100%);
}

.auth-brand-panel.manager-panel {
  background: linear-gradient(145deg, #0a2e36 0%, var(--localo-manager) 55%, #1a6b7a 100%);
}

.brand-logo {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-tagline {
  color: rgba(255, 255, 255, 0.78);
  max-width: 28rem;
  line-height: 1.6;
}

.auth-card {
  border: 1px solid var(--localo-border);
  border-radius: 1rem;
  box-shadow: 0 10px 40px rgba(15, 39, 68, 0.08);
}

.auth-card .card-header {
  background: transparent;
  border-bottom: 1px solid var(--localo-border);
  padding: 1.5rem 1.5rem 1rem;
}

.auth-card .card-body {
  padding: 1.5rem;
}

.auth-card.auth-card--compact .card-header {
  padding: 1rem 1.25rem 0.75rem;
}

.auth-card.auth-card--compact .card-body {
  padding: 0.75rem 1.25rem 1rem;
}

.auth-card.auth-card--compact .card-footer {
  padding: 0 1.25rem 1rem;
}

.form-field-compact .form-label {
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.form-field-compact .form-control {
  padding: 0.4rem 0.65rem;
  font-size: 0.875rem;
}

.form-field-compact .form-text {
  font-size: 0.7rem !important;
  line-height: 1.25;
  margin-top: 0.15rem !important;
}

.form-field-compact.mb-field {
  margin-bottom: 0.65rem;
}

.app-navbar {
  background: var(--localo-primary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.app-navbar.dev-navbar .btn-outline-light.active {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}

.app-navbar.manager-navbar {
  background: var(--localo-manager);
}

.nav-notification-bell {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  border-radius: 0.5rem;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.nav-notification-bell::after {
  display: none;
}

.nav-notification-bell:hover,
.nav-notification-bell:focus,
.nav-notification-bell.show {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.nav-notification-bell .bi-bell {
  font-size: 1.2rem;
  line-height: 1;
}

.nav-notification-badge {
  position: absolute;
  top: 0.1rem;
  right: 0.05rem;
  min-width: 1.1rem;
  height: 1.1rem;
  padding: 0 0.3rem;
  border-radius: 999px;
  background: #dc3545;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 1.1rem;
  text-align: center;
  box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.35);
}

.nav-notification-dropdown {
  position: relative;
}

.nav-notification-menu {
  width: min(22rem, calc(100vw - 1.5rem));
  padding: 0;
  margin-top: 0.5rem !important;
  border: 1px solid var(--localo-border);
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(15, 39, 68, 0.14);
}

.nav-notification-menu-header {
  padding: 0.75rem 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--localo-text, #0f2744);
  border-bottom: 1px solid var(--localo-border);
  background: #f8fafc;
}

.nav-notification-menu-list {
  max-height: 20rem;
  overflow-y: auto;
}

.nav-notification-item {
  display: block;
  padding: 0.75rem 1rem;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid var(--localo-border);
  transition: background-color 0.15s ease;
}

.nav-notification-item:last-child {
  border-bottom: 0;
}

.nav-notification-item:hover {
  background: #f8fafc;
}

.nav-notification-item.is-unread {
  background: #eff6ff;
}

.nav-notification-item.is-unread:hover {
  background: #e0effe;
}

.nav-notification-item-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #0f2744;
  margin-bottom: 0.15rem;
}

.nav-notification-item-body {
  font-size: 0.75rem;
  color: var(--localo-text-muted, #64748b);
  line-height: 1.4;
  margin-bottom: 0.25rem;
}

.nav-notification-item-time {
  font-size: 0.6875rem;
  color: #94a3b8;
}

.nav-notification-empty {
  padding: 1.5rem 1rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--localo-text-muted, #64748b);
}

.nav-notification-menu-footer {
  display: block;
  padding: 0.7rem 1rem;
  text-align: center;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--localo-accent, #2563eb);
  text-decoration: none;
  border-top: 1px solid var(--localo-border);
  background: #fff;
}

.nav-notification-menu-footer:hover {
  background: #f8fafc;
  color: var(--localo-accent, #2563eb);
}

.app-navbar .navbar-brand {
  font-weight: 700;
  letter-spacing: -0.02em;
}

.app-main {
  padding: 2rem 0 3rem;
}

.page-header {
  margin-bottom: 1.5rem;
}

.page-header h1 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.stat-card {
  border: 1px solid var(--localo-border);
  border-radius: 0.75rem;
  background: #fff;
  transition: box-shadow 0.2s ease;
}

.stat-card:hover {
  box-shadow: 0 4px 20px rgba(15, 39, 68, 0.06);
}

.mgr-chart-box {
  position: relative;
  height: 220px;
}

.mgr-chart-box--sm {
  height: 160px;
}

.mgr-chart-box canvas {
  max-height: 100%;
}

.btn-primary {
  background-color: var(--localo-accent);
  border-color: var(--localo-accent);
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--localo-accent-hover);
  border-color: var(--localo-accent-hover);
}

.btn-outline-primary {
  color: var(--localo-accent);
  border-color: var(--localo-accent);
}

.btn-outline-primary:hover {
  background-color: var(--localo-accent);
  border-color: var(--localo-accent);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--localo-accent);
  box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.15);
}

.helptext,
.form-text {
  color: var(--localo-text-muted) !important;
  font-size: 0.875rem;
}

.verification-code {
  font-size: 1.5rem;
  letter-spacing: 0.25em;
  font-weight: 600;
  color: var(--localo-primary);
}

.footer-mini {
  color: var(--localo-text-muted);
  font-size: 0.8125rem;
}

.dev-stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--localo-dev);
}

.dev-session-pill {
  background: #fff;
  border: 1px solid var(--localo-border);
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  min-width: 7rem;
}

.dev-module-table th {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--localo-text-muted);
  font-weight: 600;
}

.dev-module-badge {
  font-weight: 500;
  font-size: 0.7rem;
}

.dev-module-badge--active {
  background: rgba(22, 163, 74, 0.12);
  color: #15803d;
}

.dev-module-badge--models {
  background: rgba(37, 99, 235, 0.1);
  color: var(--localo-accent);
}

.dev-module-badge--empty {
  background: rgba(100, 116, 139, 0.12);
  color: var(--localo-text-muted);
}

.dev-quick-link {
  border-color: var(--localo-border);
  font-size: 0.875rem;
  border-radius: 0.5rem;
}

.dev-quick-link:hover {
  background: rgba(49, 46, 129, 0.06);
  border-color: var(--localo-dev);
  color: var(--localo-dev);
}

.dev-env-list .dev-env-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--localo-border);
  font-size: 0.875rem;
}

.dev-env-list .dev-env-row:last-child {
  border-bottom: 0;
}

.dev-env-list dt {
  color: var(--localo-text-muted);
  margin: 0;
  font-weight: 500;
}

.dev-env-list dd {
  margin: 0;
  font-weight: 600;
  text-align: right;
  max-width: 62%;
}

.dev-code-block {
  background: #0f172a;
  color: #e2e8f0;
  border: 1px solid var(--localo-border);
  border-radius: 0.5rem;
  padding: 0.5rem 0.75rem;
  word-break: break-all;
}

/* Dev portal dashboard */
body.dev-portal-page .app-main {
  padding-top: 1.25rem;
  padding-bottom: 2.5rem;
}

body.dev-portal-page .app-main > .container {
  max-width: 1280px;
}

.dev-dash-hero {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: stretch;
  gap: 1rem;
  padding: 1.35rem 1.5rem;
  margin-bottom: 1rem;
  border-radius: 1rem;
  background:
    radial-gradient(circle at 12% 20%, rgba(251, 191, 36, 0.18), transparent 42%),
    linear-gradient(135deg, #1e1b4b 0%, #312e81 48%, #1e3a5f 100%);
  color: #fff;
}

.dev-dash-kicker {
  margin: 0 0 0.25rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}

.dev-dash-hero h1 {
  margin: 0;
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.dev-dash-sub {
  margin: 0.35rem 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
}

.dev-dash-session {
  min-width: 8.5rem;
  padding: 0.85rem 1rem;
  border-radius: 0.75rem;
  background: rgba(15, 23, 42, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.12);
  text-align: right;
  align-self: center;
}

.dev-dash-session-time {
  font-size: 1.5rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.dev-dash-session.is-low {
  border-color: rgba(251, 191, 36, 0.55);
  background: rgba(120, 53, 15, 0.35);
}

.dev-dash-session.is-expired {
  border-color: rgba(248, 113, 113, 0.6);
  background: rgba(127, 29, 29, 0.4);
}

.dev-dash-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
  padding: 0.4rem;
  border: 1px solid var(--localo-border);
  border-radius: 0.75rem;
  background: #fff;
}

.dev-dash-nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.7rem;
  border-radius: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 550;
  color: #334155;
  text-decoration: none;
}

.dev-dash-nav a:hover {
  background: rgba(49, 46, 129, 0.08);
  color: var(--localo-dev);
}

.dev-dash-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.dev-stat {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 1rem;
  border: 1px solid var(--localo-border);
  border-radius: 0.85rem;
  background: #fff;
  min-height: 100%;
}

.dev-stat--warn {
  border-color: rgba(245, 158, 11, 0.45);
  background: linear-gradient(180deg, #fffbeb 0%, #fff 70%);
}

.dev-stat--danger {
  border-color: rgba(239, 68, 68, 0.35);
  background: linear-gradient(180deg, #fef2f2 0%, #fff 70%);
}

.dev-stat-icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.6rem;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: rgba(49, 46, 129, 0.1);
  color: var(--localo-dev);
}

.dev-stat .dev-stat-label {
  font-size: 0.72rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--localo-text-muted);
}

.dev-stat .dev-stat-value {
  font-size: 1.45rem;
  margin-top: 0.1rem;
}

.dev-stat-meta {
  font-size: 0.75rem;
  color: var(--localo-text-muted);
  margin-top: 0.15rem;
  line-height: 1.35;
}

.dev-dash-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 1rem;
  align-items: start;
}

.dev-dash-primary,
.dev-dash-side {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.dev-card {
  border: 1px solid var(--localo-border);
  border-radius: 0.9rem;
  background: #fff;
  padding: 1.1rem 1.15rem;
}

.dev-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.dev-card-head h2 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
}

.dev-card-head p {
  margin: 0.2rem 0 0;
  font-size: 0.78rem;
  color: var(--localo-text-muted);
}

.dev-table thead th {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--localo-text-muted);
  font-weight: 650;
  border-bottom-width: 1px;
}

.dev-row-danger {
  background: rgba(254, 226, 226, 0.45);
}

.dev-row-warn {
  background: rgba(254, 243, 199, 0.4);
}

.dev-level-bars {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.dev-level-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  border: 1px solid var(--localo-border);
  background: #f8fafc;
}

.dev-level-chip strong {
  font-variant-numeric: tabular-nums;
}

.dev-level-chip--critical,
.dev-level-chip--error {
  background: #fef2f2;
  border-color: #fecaca;
  color: #b91c1c;
}

.dev-level-chip--warning {
  background: #fffbeb;
  border-color: #fde68a;
  color: #b45309;
}

.dev-level-chip--info {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1d4ed8;
}

@media (max-width: 1199.98px) {
  .dev-dash-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .dev-dash-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575.98px) {
  .dev-dash-stats {
    grid-template-columns: 1fr;
  }
  .dev-dash-hero {
    padding: 1.1rem;
  }
}

.manager-shell {
  display: flex;
  min-height: calc(100vh - 56px);
}

.manager-sidebar {
  width: 260px;
  flex-shrink: 0;
  background: #fff;
  border-right: 1px solid var(--localo-border);
  padding: 1.25rem 0;
  overflow-y: auto;
}

.manager-main {
  flex: 1;
  background: var(--localo-surface);
  min-width: 0;
}

/* Dev portal shell — manager ile aynı iskelet, DEV renkleri */
.dev-shell {
  display: flex;
  min-height: calc(100vh - 56px);
}

.dev-sidebar {
  width: 260px;
  flex-shrink: 0;
  background: #fff;
  border-right: 1px solid var(--localo-border);
  padding: 1.25rem 0;
  overflow-y: auto;
}

.dev-main {
  flex: 1;
  background: var(--localo-surface);
  min-width: 0;
}

.dev-sidebar-nav .nav-link {
  color: #334155;
  font-size: 0.875rem;
  padding: 0.5rem 1.25rem;
  border-radius: 0;
}

.dev-sidebar-nav .nav-link:hover {
  background: rgba(49, 46, 129, 0.06);
  color: var(--localo-dev);
}

.dev-sidebar-nav .nav-link.active {
  background: rgba(49, 46, 129, 0.1);
  color: var(--localo-dev);
  font-weight: 600;
  border-right: 3px solid var(--localo-dev);
}

.dev-sidebar-group {
  margin-top: 1rem;
}

.dev-sidebar-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--localo-text-muted);
  padding: 0.25rem 1.25rem 0.5rem;
}

body.dev-portal-page {
  overflow: auto;
  height: auto;
  display: block;
}

@media (max-width: 991.98px) {
  .dev-shell {
    flex-direction: column;
  }
  .dev-sidebar {
    width: 100%;
    border-right: 0;
    border-bottom: 1px solid var(--localo-border);
    max-height: 40vh;
  }
}

.manager-sidebar {
  width: 260px;
  flex-shrink: 0;
  background: #fff;
  border-right: 1px solid var(--localo-border);
  padding: 1.25rem 0;
}

.manager-main {
  flex: 1;
  background: var(--localo-surface);
  min-width: 0;
}

.manager-sidebar-nav .nav-link {
  color: #334155;
  font-size: 0.875rem;
  padding: 0.5rem 1.25rem;
  border-radius: 0;
}

.manager-sidebar-nav .nav-link:hover {
  background: rgba(15, 76, 92, 0.06);
  color: var(--localo-manager);
}

.manager-sidebar-nav .nav-link.active {
  background: rgba(15, 76, 92, 0.1);
  color: var(--localo-manager);
  font-weight: 600;
  border-right: 3px solid var(--localo-manager);
}

.manager-sidebar-group {
  margin-top: 1rem;
}

.manager-sidebar-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--localo-text-muted);
  padding: 0.25rem 1.25rem 0.5rem;
}

@media (max-width: 991.98px) {
  .manager-shell {
    flex-direction: column;
  }
  .manager-sidebar {
    width: 100%;
    border-right: 0;
    border-bottom: 1px solid var(--localo-border);
  }
}

/* AI Agent chat */
body.agent-chat-page {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

body.agent-chat-page .app-navbar {
  flex-shrink: 0;
}

body.agent-chat-page .manager-shell {
  flex: 1;
  min-height: 0;
  height: auto;
  overflow: hidden;
}

body.agent-chat-page .manager-sidebar {
  min-height: 0;
  overflow-y: auto;
}

body.agent-chat-page .manager-main {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

body.agent-chat-page .manager-main > .container-fluid {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  padding-top: 0.75rem !important;
  padding-bottom: 0.75rem !important;
}

body.agent-chat-page .manager-main > .container-fluid > .alert {
  flex-shrink: 0;
}

.agent-chat-shell {
  display: flex;
  flex: 1;
  min-height: 0;
  height: 100%;
  margin: 0;
  border: 1px solid var(--localo-border);
  border-radius: 0.75rem;
  overflow: hidden;
  background: #fff;
}

.agent-chat-sidebar {
  width: 280px;
  flex-shrink: 0;
  border-right: 1px solid var(--localo-border);
  padding: 1rem;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.agent-chat-sidebar > .d-flex,
.agent-chat-sidebar > .small {
  flex-shrink: 0;
}

.agent-chat-list {
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  -webkit-overflow-scrolling: touch;
}

.agent-chat-item {
  display: block;
  padding: 0.65rem 0.75rem;
  border-radius: 0.5rem;
  color: inherit;
  text-decoration: none;
  margin-bottom: 0.25rem;
}

.agent-chat-item:hover {
  background: rgba(15, 23, 42, 0.04);
}

.agent-chat-item.active {
  background: rgba(37, 99, 235, 0.1);
}

.agent-chat-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: #fff;
}

.agent-chat-header {
  flex-shrink: 0;
}

.agent-chat-messages {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 1.25rem;
  -webkit-overflow-scrolling: touch;
}

.agent-chat-composer {
  flex-shrink: 0;
}

.agent-msg {
  max-width: 720px;
  margin-bottom: 1rem;
}

.agent-msg-user {
  margin-left: auto;
}

.agent-msg-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--localo-text-muted);
  margin-bottom: 0.25rem;
}

.agent-msg-body {
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  background: #f1f5f9;
  white-space: pre-wrap;
}

.agent-msg-user .agent-msg-body {
  background: rgba(37, 99, 235, 0.12);
}

.agent-msg-typing .agent-msg-body {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 1.25rem;
  padding-block: 0.9rem;
}

.agent-typing-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: #64748b;
  animation: agent-typing-bounce 1.2s ease-in-out infinite;
}

.agent-typing-dot:nth-child(2) {
  animation-delay: 0.15s;
}

.agent-typing-dot:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes agent-typing-bounce {
  0%,
  60%,
  100% {
    transform: translateY(0);
    opacity: 0.4;
  }
  30% {
    transform: translateY(-0.35rem);
    opacity: 1;
  }
}

.localo-typewriter-active::after {
  content: "";
  display: inline-block;
  width: 0.12em;
  height: 0.95em;
  margin-left: 0.12em;
  vertical-align: -0.08em;
  background: currentColor;
  border-radius: 1px;
  opacity: 0.7;
  animation: localo-typewriter-caret 0.85s steps(1) infinite;
}

@keyframes localo-typewriter-caret {
  0%,
  49% {
    opacity: 0.75;
  }
  50%,
  100% {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .localo-typewriter-active::after {
    animation: none;
    display: none;
  }
}

.agent-feedback {
  margin-top: 0.65rem;
  max-width: 28rem;
}

.agent-feedback-prompt {
  font-size: 0.8rem;
  color: var(--localo-text-muted);
  margin-bottom: 0.4rem;
}

.agent-feedback-stars-row {
  display: flex;
  gap: 0.15rem;
  align-items: center;
}

.agent-feedback-star {
  appearance: none;
  border: 0;
  background: transparent;
  color: #cbd5e1;
  font-size: 1.35rem;
  line-height: 1;
  padding: 0.15rem;
  cursor: pointer;
  transition: color 0.15s ease, transform 0.15s ease;
}

.agent-feedback-star:hover,
.agent-feedback-star.is-active {
  color: #eab308;
}

.agent-feedback-star:hover {
  transform: translateY(-1px) scale(1.06);
}

.agent-feedback-note-input {
  margin-bottom: 0.5rem;
}

.agent-feedback-note-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.agent-feedback-thanks {
  font-size: 0.85rem;
  color: #15803d;
  animation: agent-feedback-enter 0.35s ease both;
}

.agent-feedback-phase {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.agent-feedback-phase.is-leaving {
  opacity: 0;
  transform: translateY(-0.4rem) scale(0.98);
  pointer-events: none;
}

.agent-feedback-phase.is-entering {
  animation: agent-feedback-enter 0.35s ease both;
}

@keyframes agent-feedback-enter {
  from {
    opacity: 0;
    transform: translateY(0.45rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.agent-chat-composer textarea {
  resize: none;
}

/* Dev portal — agent transcript */
.dev-agent-msg-body {
  padding: 0.75rem 1rem;
  border-radius: 0.65rem;
  background: #f1f5f9;
  white-space: pre-wrap;
  word-break: break-word;
}

.dev-agent-msg-user .dev-agent-msg-body {
  background: rgba(37, 99, 235, 0.1);
}

.dev-agent-msg-assistant .dev-agent-msg-body {
  background: #f8fafc;
  border: 1px solid var(--localo-border, #e2e8f0);
}

.dev-agent-feedback {
  border-left: 3px solid #eab308;
  padding-left: 0.75rem;
}

.dev-agent-feedback-item + .dev-agent-feedback-item {
  margin-top: 0.65rem;
  padding-top: 0.65rem;
  border-top: 1px dashed #e2e8f0;
}

@media (max-width: 767.98px) {
  .agent-chat-shell {
    flex-direction: column;
  }
  .agent-chat-sidebar {
    width: 100%;
    border-right: 0;
    border-bottom: 1px solid var(--localo-border);
    max-height: 30%;
    flex: 0 0 auto;
  }
  .agent-chat-main {
    flex: 1;
    min-height: 0;
  }
}

@media (max-width: 991.98px) {
  body.agent-chat-page .manager-shell {
    flex-direction: column;
  }
  body.agent-chat-page .manager-sidebar {
    width: 100%;
    max-height: 40vh;
    flex-shrink: 0;
  }
}

/* Tam alan tıklanabilir yuvarlak toggle checkbox */
    .localo-toggle-field {
  margin: 0;
}

.localo-toggle {
  display: block;
  cursor: pointer;
  margin: 0;
  user-select: none;
}

.localo-toggle-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.localo-toggle-body {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid var(--localo-border);
  border-radius: 0.75rem;
  background: #fff;
  transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.localo-toggle:hover .localo-toggle-body {
  border-color: rgba(37, 99, 235, 0.35);
  background: rgba(37, 99, 235, 0.02);
}

.localo-toggle-input:focus-visible + .localo-toggle-body {
  outline: 2px solid rgba(37, 99, 235, 0.35);
  outline-offset: 2px;
}

.localo-toggle-input:checked + .localo-toggle-body {
  border-color: var(--localo-accent);
  background: rgba(37, 99, 235, 0.06);
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.08);
}

.localo-toggle-indicator {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.1rem;
  border: 2px solid #cbd5e1;
  border-radius: 50%;
  background: #fff;
  transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
  position: relative;
}

.localo-toggle-input:checked + .localo-toggle-body .localo-toggle-indicator {
  border-color: var(--localo-accent);
  background: var(--localo-accent);
  box-shadow: inset 0 0 0 3px #fff;
}

.localo-toggle-text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.localo-toggle-label {
  font-size: 0.9375rem;
  font-weight: 500;
  color: #1e293b;
  line-height: 1.35;
}

.localo-toggle-help {
  font-size: 0.8125rem;
  color: var(--localo-text-muted);
  line-height: 1.45;
}

.localo-toggle--disabled,
.localo-toggle-field--locked {
  cursor: not-allowed;
}

.localo-toggle--disabled .localo-toggle-body,
.localo-toggle-field--locked .localo-toggle-body {
  opacity: 0.72;
  background: #f1f5f9;
}

.localo-toggle--disabled:hover .localo-toggle-body,
.localo-toggle-field--locked:hover .localo-toggle-body {
  border-color: inherit;
  box-shadow: none;
}

.localo-toggle-grid {
  display: grid;
  gap: 0.625rem;
}

.localo-toggle-grid--2 {
  grid-template-columns: repeat(1, 1fr);
}

@media (min-width: 576px) {
  .localo-toggle-grid--2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ── Task panel UI ─────────────────────────────────────────── */
@keyframes task-fade-up {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.task-page.task-animate {
  animation: task-fade-up 0.35s ease both;
}

.task-stagger > tr.task-row,
.task-stagger > .col-6,
.task-stagger > .col-md-3 {
  animation: task-fade-up 0.4s ease both;
}

.task-stagger > tr.task-row:nth-child(1),
.task-stagger > *:nth-child(1) { animation-delay: 0.03s; }
.task-stagger > tr.task-row:nth-child(2),
.task-stagger > *:nth-child(2) { animation-delay: 0.06s; }
.task-stagger > tr.task-row:nth-child(3),
.task-stagger > *:nth-child(3) { animation-delay: 0.09s; }
.task-stagger > tr.task-row:nth-child(4),
.task-stagger > *:nth-child(4) { animation-delay: 0.12s; }
.task-stagger > tr.task-row:nth-child(5),
.task-stagger > *:nth-child(5) { animation-delay: 0.15s; }
.task-stagger > tr.task-row:nth-child(6),
.task-stagger > *:nth-child(6) { animation-delay: 0.18s; }
.task-stagger > tr.task-row:nth-child(7),
.task-stagger > *:nth-child(7) { animation-delay: 0.21s; }
.task-stagger > tr.task-row:nth-child(8),
.task-stagger > *:nth-child(8) { animation-delay: 0.24s; }

.task-form-card {
  transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.task-form-card:hover {
  box-shadow: 0 8px 28px rgba(15, 39, 68, 0.07);
}

.task-form-section-head {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.875rem;
  border-bottom: 1px solid var(--localo-border);
}

.task-form-section-num {
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #fff;
  background: var(--localo-manager, #0f4c5c);
}

.task-form-section-body .mb-3:last-child {
  margin-bottom: 0 !important;
}

.task-form-grid {
  display: grid;
  gap: 0 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .task-form-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.task-form-card .form-control,
.task-form-card .form-select {
  width: 100%;
  border-radius: 0.5rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.task-form-card .form-control:focus,
.task-form-card .form-select:focus {
  border-color: rgba(15, 76, 92, 0.45);
  box-shadow: 0 0 0 0.2rem rgba(15, 76, 92, 0.12);
}

.task-multi-select {
  min-height: 8.5rem;
  padding: 0.5rem;
}

.task-picker {
  border: 1px solid var(--localo-border);
  border-radius: 0.75rem;
  background: #fff;
  overflow: hidden;
}

.task-picker-search {
  position: relative;
  padding: 0.75rem;
  border-bottom: 1px solid var(--localo-border);
  background: #f8fafc;
}

.task-picker-search .bi-search {
  position: absolute;
  left: 1.35rem;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  pointer-events: none;
}

.task-picker-search .form-control {
  padding-left: 2.25rem;
  border-radius: 0.5rem;
}

.task-picker-count {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--localo-manager, #0f4c5c);
  background: rgba(15, 76, 92, 0.08);
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
}

.task-picker-list {
  max-height: 16rem;
  overflow-y: auto;
}

.task-picker-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin: 0;
  padding: 0.7rem 0.85rem;
  cursor: pointer;
  border-bottom: 1px solid #f1f5f9;
  transition: background-color 0.15s ease;
  user-select: none;
}

.task-picker-item:last-child {
  border-bottom: 0;
}

.task-picker-item:hover {
  background: rgba(15, 76, 92, 0.04);
}

.task-picker-item.is-checked {
  background: rgba(15, 76, 92, 0.07);
}

.task-picker-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.task-picker-box {
  flex-shrink: 0;
  width: 1.2rem;
  height: 1.2rem;
  margin-top: 0.1rem;
  border: 2px solid #cbd5e1;
  border-radius: 0.35rem;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  font-size: 0.75rem;
  transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.task-picker-item.is-checked .task-picker-box,
.task-picker-input:checked + .task-picker-box {
  border-color: var(--localo-manager, #0f4c5c);
  background: var(--localo-manager, #0f4c5c);
  color: #fff;
}

.task-picker-meta {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.task-picker-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.3;
}

.task-picker-subtitle {
  font-size: 0.75rem;
  color: var(--localo-text-muted);
  line-height: 1.35;
}

.task-picker-empty,
.task-picker-none {
  padding: 1.25rem 1rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--localo-text-muted);
}

.app-navbar.dev-navbar ~ .manager-shell .task-picker-count,
body:has(.dev-navbar) .task-picker-count {
  color: var(--localo-dev, #312e81);
  background: rgba(49, 46, 129, 0.08);
}

.app-navbar.dev-navbar ~ .manager-shell .task-picker-item.is-checked .task-picker-box,
body:has(.dev-navbar) .task-picker-item.is-checked .task-picker-box,
.app-navbar.dev-navbar ~ .manager-shell .task-picker-input:checked + .task-picker-box,
body:has(.dev-navbar) .task-picker-input:checked + .task-picker-box {
  border-color: var(--localo-dev, #312e81);
  background: var(--localo-dev, #312e81);
}

.task-target-panel {
  margin-top: 0.75rem;
  padding: 1rem;
  border: 1px dashed var(--localo-border);
  border-radius: 0.75rem;
  background: #f8fafc;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.task-target-panel.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.task-form-actions {
  position: sticky;
  bottom: 0.75rem;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.875rem 1rem;
  border: 1px solid var(--localo-border);
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 24px rgba(15, 39, 68, 0.08);
}

.task-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.2;
  border: 1px solid transparent;
}

.task-chip--success {
  color: #166534;
  background: #dcfce7;
  border-color: #bbf7d0;
}

.task-chip--muted {
  color: #475569;
  background: #f1f5f9;
  border-color: #e2e8f0;
}

.task-table-card .table tbody tr.task-row {
  transition: background-color 0.15s ease;
}

.task-table-card .table tbody tr.task-row:hover {
  background: rgba(15, 76, 92, 0.04);
}

.task-panel-head {
  padding: 0.75rem 1rem;
  font-weight: 600;
  font-size: 0.9375rem;
  border-bottom: 1px solid var(--localo-border);
  background: #f8fafc;
}

.task-stat-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.task-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(15, 39, 68, 0.08);
}

.task-side-card {
  transition: box-shadow 0.2s ease;
}

.task-side-card:hover {
  box-shadow: 0 6px 18px rgba(15, 39, 68, 0.06);
}

.task-lead {
  color: var(--localo-text-muted);
  max-width: 48rem;
}

.task-target-list li {
  padding: 0.4rem 0;
  border-bottom: 1px solid #f1f5f9;
}

.task-target-list li:last-child {
  border-bottom: 0;
}

.task-meta-dl dt {
  color: var(--localo-text-muted);
  font-weight: 500;
}

.task-meta-dl dd {
  margin-bottom: 0.5rem;
}

.task-timeline-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  border: 0 !important;
  border-bottom: 1px solid var(--localo-border) !important;
  padding: 0.85rem 1rem !important;
  transition: background-color 0.15s ease;
}

.task-timeline-item:hover {
  background: #f8fafc;
}

.task-timeline-dot {
  flex-shrink: 0;
  width: 0.55rem;
  height: 0.55rem;
  margin-top: 0.4rem;
  border-radius: 999px;
  background: var(--localo-manager, #0f4c5c);
  box-shadow: 0 0 0 3px rgba(15, 76, 92, 0.12);
}

.task-empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
  border: 1px dashed var(--localo-border);
  border-radius: 0.875rem;
  background: #fff;
  animation: task-fade-up 0.4s ease both;
}

.task-empty-icon {
  width: 3rem;
  height: 3rem;
  margin: 0 auto 1rem;
  border-radius: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  color: var(--localo-manager, #0f4c5c);
  background: rgba(15, 76, 92, 0.08);
}

.task-empty-inline {
  padding: 1rem;
  border-radius: 0.75rem;
  background: #f8fafc;
  color: var(--localo-text-muted);
  font-size: 0.875rem;
}

.app-navbar.dev-navbar .task-form-section-num,
body:has(.dev-navbar) .task-form-section-num {
  background: var(--localo-dev, #312e81);
}

.app-navbar.dev-navbar ~ .manager-shell .task-timeline-dot,
body:has(.dev-navbar) .task-timeline-dot {
  background: var(--localo-dev, #312e81);
  box-shadow: 0 0 0 3px rgba(49, 46, 129, 0.15);
}

@media (prefers-reduced-motion: reduce) {
  .task-page.task-animate,
  .task-stagger > *,
  .task-target-panel {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* —— Hesap paneli: rakip detay —— */
.competitor-hero {
  background:
    linear-gradient(135deg, rgba(15, 76, 92, 0.06), rgba(13, 110, 253, 0.04)),
    #fff;
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.competitor-metric {
  padding: 0.75rem 0.9rem;
  border-radius: 0.75rem;
  background: rgba(248, 250, 252, 0.9);
  border: 1px solid rgba(15, 23, 42, 0.05);
  height: 100%;
}

.competitor-metric-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--localo-text-muted, #64748b);
  margin-bottom: 0.25rem;
}

.competitor-metric-value {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--localo-text, #0f172a);
  line-height: 1.3;
}

.competitor-tabs .nav-link {
  color: var(--localo-text-muted, #64748b);
  font-weight: 500;
  border: none;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  padding: 0.65rem 1rem;
}

.competitor-tabs .nav-link.active {
  color: var(--localo-manager, #0f4c5c);
  border-bottom-color: var(--localo-manager, #0f4c5c);
  background: transparent;
}

.competitor-dl dt {
  color: var(--localo-text-muted, #64748b);
  font-weight: 500;
  font-size: 0.875rem;
  padding-top: 0.35rem;
}

.competitor-dl dd {
  font-size: 0.9rem;
  margin-bottom: 0.65rem;
  padding-top: 0.35rem;
}

.competitor-map-frame {
  aspect-ratio: 16 / 9;
  min-height: 220px;
  background: #e2e8f0;
}

.competitor-map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.competitor-raw-json {
  background: #0f172a;
  color: #e2e8f0;
  border-radius: 0.75rem;
  padding: 1rem 1.1rem;
  font-size: 0.78rem;
  max-height: 480px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

.letter-spacing {
  letter-spacing: 0.08em;
}

/* Rating progress (puan bandları: poor/fair/good/excellent — etiket yok) */
.rating-progress {
  --rating-color: #94a3b8;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 0;
}

.rating-progress-score {
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.15;
  color: var(--rating-color);
  font-variant-numeric: tabular-nums;
}

.rating-progress-sm .rating-progress-score {
  font-size: 1.05rem;
}

.rating-progress-track {
  height: 0.45rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.rating-progress-sm .rating-progress-track {
  height: 0.35rem;
}

.rating-progress-fill {
  height: 100%;
  border-radius: inherit;
  background: var(--rating-color);
  transition: width 0.35s ease;
  min-width: 0;
}

.rating-band-poor {
  --rating-color: #dc2626; /* kötü */
}

.rating-band-fair {
  --rating-color: #ea580c; /* orta */
}

.rating-band-good {
  --rating-color: #2563eb; /* iyi */
}

.rating-band-excellent {
  --rating-color: #16a34a; /* mükemmel */
}

.rating-band-empty {
  --rating-color: #94a3b8;
}

.competitor-metric-rating .rating-progress {
  margin-top: 0.15rem;
}

.competitor-review-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.competitor-review-card {
  padding: 1rem 1.1rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(15, 23, 42, 0.07);
  background: #f8fafc;
}

.competitor-review-text {
  font-size: 0.92rem;
  line-height: 1.55;
  color: #1e293b;
  white-space: pre-wrap;
}

.competitor-review-rating {
  min-width: 5.5rem;
  max-width: 7.5rem;
}

/* —— Hesap paneli: lokasyon detay sekmeleri —— */
.location-stat-chip {
  padding: 0.7rem 0.85rem;
  border-radius: 0.75rem;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.07);
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  height: 100%;
}

.location-stat-chip-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--localo-text-muted, #64748b);
}

.location-stat-chip-value {
  font-size: 1.15rem;
  font-weight: 650;
  color: var(--localo-text, #0f172a);
  font-variant-numeric: tabular-nums;
}

.location-tabs {
  border-bottom: 1px solid rgba(15, 23, 42, 0.1);
  gap: 0.15rem;
}

.location-tabs .nav-link {
  color: var(--localo-text-muted, #64748b);
  font-weight: 500;
  font-size: 0.9rem;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  padding: 0.65rem 0.85rem;
  white-space: nowrap;
}

.location-tabs .nav-link:hover {
  color: var(--localo-primary, #0f2744);
  border-color: transparent;
}

.location-tabs .nav-link.active {
  color: var(--localo-primary, #0f2744);
  background: transparent;
  border-color: var(--localo-accent, #2563eb);
  font-weight: 600;
}

.location-tabs .nav-link .badge {
  font-weight: 500;
}

.location-dl dt {
  font-weight: 500;
}

.location-dl dd {
  margin-bottom: 0.65rem;
}

.location-pre {
  max-height: 240px;
  overflow: auto;
}

.location-pre-tall {
  max-height: 480px;
}

/* Accounts panel chrome */
body.accounts-panel {
  --acc-ink: #0b1f33;
  --acc-muted: #5b6b7c;
  --acc-line: rgba(11, 31, 51, 0.1);
  --acc-sea: #1a6b7c;
  --acc-mist: #e8eef4;
  font-family: "Manrope", system-ui, sans-serif;
  background:
    radial-gradient(1200px 480px at 8% -10%, rgba(26, 107, 124, 0.12), transparent 55%),
    radial-gradient(900px 420px at 100% 0%, rgba(15, 39, 68, 0.08), transparent 50%),
    linear-gradient(180deg, #f3f6f9 0%, var(--acc-mist) 100%);
  color: var(--acc-ink);
}

body.accounts-panel .manager-main {
  background: transparent;
}

body.accounts-panel .app-navbar {
  background: linear-gradient(145deg, #071628 0%, #0f2744 52%, #143a52 100%);
}

body.accounts-panel .manager-sidebar {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(8px);
  border-right: 1px solid var(--acc-line);
}

/* Location detail page */
.loc-page {
  animation: loc-fade-in 0.45s ease both;
}

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

body.loc-detail-page {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

body.loc-detail-page .app-navbar {
  flex-shrink: 0;
}

body.loc-detail-page .manager-shell {
  flex: 1;
  min-height: 0;
  height: auto;
  overflow: hidden;
}

body.loc-detail-page > #modal-root,
body.loc-detail-page > .modal,
body.loc-detail-page > .modal-backdrop,
body.loc-detail-page > .loc-media-lightbox,
body.loc-detail-page > .review-share-lightbox {
  flex: none;
}

body.loc-detail-page .manager-sidebar {
  min-height: 0;
  overflow-y: auto;
}

body.loc-detail-page .manager-main {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

body.loc-detail-page .manager-main > .container-fluid {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  padding-top: 1rem !important;
  padding-bottom: 1rem !important;
}

body.loc-detail-page .manager-main > .container-fluid > .alert {
  flex-shrink: 0;
}

body.loc-detail-page .loc-page {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

body.loc-detail-page .loc-page > .loc-breadcrumb,
body.loc-detail-page .loc-page > .loc-hero,
body.loc-detail-page .loc-page > .loc-metrics,
body.loc-detail-page .loc-page > .loc-tabs-rail {
  flex-shrink: 0;
}

body.loc-detail-page .loc-tab-content {
  flex: 1 1 auto;
  min-height: 12rem;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

body.loc-detail-page .loc-panel-toolbar {
  position: sticky;
  top: -0.2rem;
  z-index: 4;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  padding-top: 0.2rem;
}

@media (max-width: 991.98px) {
  body.loc-detail-page .manager-sidebar {
    max-height: 32vh;
    flex-shrink: 0;
  }
}

.loc-breadcrumb .breadcrumb-item a {
  color: var(--acc-sea);
  text-decoration: none;
}

.loc-breadcrumb .breadcrumb-item a:hover {
  text-decoration: underline;
}

.loc-hero {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.25rem;
  padding: 1.5rem 1.6rem;
  border-radius: 1.1rem;
  color: #f8fafc;
  background:
    linear-gradient(125deg, rgba(7, 22, 40, 0.15), transparent 40%),
    linear-gradient(145deg, #0b1f33 0%, #123a4d 48%, #1a6b7c 100%);
  box-shadow: 0 18px 40px -28px rgba(7, 22, 40, 0.55);
}

.loc-hero-kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(248, 250, 252, 0.62);
}

.loc-hero-title {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 650;
  font-size: clamp(1.55rem, 2.4vw, 2.05rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.loc-hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.55rem;
  font-size: 0.9rem;
  color: rgba(248, 250, 252, 0.82);
}

.loc-meta-sep {
  opacity: 0.45;
}

.loc-status {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.55rem;
  border-radius: 0.35rem;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.loc-status-active {
  background: rgba(34, 197, 94, 0.2);
  border-color: rgba(134, 239, 172, 0.35);
}

.loc-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.loc-hero-btn {
  font-weight: 600;
}

.loc-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}

@media (min-width: 768px) {
  .loc-metrics {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

.loc-metric {
  padding: 0.85rem 0.95rem;
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--acc-line);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.loc-metric:hover {
  transform: translateY(-1px);
  border-color: rgba(26, 107, 124, 0.28);
}

.loc-metric.is-warn .loc-metric-value {
  color: #b45309;
}

.loc-metric-label {
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--acc-muted);
}

.loc-metric-value {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.45rem;
  font-weight: 560;
  font-variant-numeric: tabular-nums;
  color: var(--acc-ink);
  line-height: 1;
}

.loc-tabs-rail {
  position: relative;
  padding: 0.4rem;
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--acc-line);
  box-shadow: 0 8px 24px -22px rgba(11, 31, 51, 0.45);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.loc-tabs-rail::after {
  content: "";
  position: sticky;
  right: 0;
  top: 0;
  float: right;
  width: 2rem;
  height: 1px;
  margin-top: -1px;
  pointer-events: none;
}

.loc-tabs {
  border-bottom: 0;
  gap: 0.3rem;
  flex-wrap: nowrap;
  min-width: max-content;
}

.loc-tabs .nav-item {
  flex: 0 0 auto;
}

.loc-tabs .nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--acc-muted);
  font-weight: 600;
  font-size: 0.86rem;
  border: 1px solid transparent;
  border-radius: 0.65rem;
  padding: 0.55rem 0.85rem;
  white-space: nowrap;
  background: transparent;
  line-height: 1.2;
  transition:
    color 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.loc-tabs .nav-link:hover {
  color: var(--acc-ink);
  background: rgba(26, 107, 124, 0.06);
  border-color: transparent;
}

.loc-tabs .nav-link:focus-visible {
  outline: 2px solid rgba(26, 107, 124, 0.45);
  outline-offset: 2px;
}

.loc-tabs .nav-link.active {
  color: #fff;
  background: linear-gradient(145deg, #123a4d 0%, #1a6b7c 100%);
  border-color: transparent;
  font-weight: 700;
  box-shadow: 0 8px 18px -12px rgba(18, 58, 77, 0.7);
}

.loc-tabs .nav-link.active:hover {
  color: #fff;
  background: linear-gradient(145deg, #0f3142 0%, #175f6e 100%);
}

.loc-tab-icon {
  font-size: 0.95rem;
  opacity: 0.85;
  line-height: 1;
}

.loc-tabs .nav-link.active .loc-tab-icon {
  opacity: 1;
}

.loc-tab-label {
  letter-spacing: -0.01em;
}

.loc-tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 0.35rem;
  margin-left: 0.1rem;
  border-radius: 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--acc-ink);
  background: rgba(11, 31, 51, 0.06);
}

.loc-tabs .nav-link.active .loc-tab-count {
  color: #123a4d;
  background: rgba(255, 255, 255, 0.92);
}

.loc-panel {
  padding: 1.25rem 1.35rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--acc-line);
  box-shadow: 0 10px 30px -24px rgba(11, 31, 51, 0.35);
}

.loc-panel-muted {
  background: rgba(255, 255, 255, 0.55);
}

.loc-panel-title {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.15rem;
  font-weight: 650;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.loc-panel-subtitle {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--acc-muted);
  margin: 1.25rem 0 0.5rem;
}

.loc-facts {
  display: grid;
  gap: 0.85rem;
  margin: 0;
}

.loc-fact {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(11, 31, 51, 0.06);
}

.loc-fact:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.loc-fact dt {
  font-size: 0.78rem;
  font-weight: 650;
  color: var(--acc-muted);
  margin: 0;
}

.loc-fact dd {
  margin: 0;
  font-size: 0.95rem;
  word-break: break-word;
}

.loc-fact a {
  color: var(--acc-sea);
  text-decoration: none;
  font-weight: 600;
}

.loc-fact a:hover {
  text-decoration: underline;
}

.loc-web-preview {
  position: relative;
  display: inline-block;
  max-width: 100%;
  vertical-align: top;
}

.loc-web-preview-card {
  position: absolute;
  left: 0;
  top: calc(100% + 0.4rem);
  width: 20.5rem;
  max-width: min(20.5rem, calc(100vw - 2rem));
  background: #fff;
  border: 1px solid rgba(11, 31, 51, 0.1);
  border-radius: 0.85rem;
  box-shadow: 0 18px 40px -18px rgba(11, 31, 51, 0.45);
  overflow: hidden;
  z-index: 50;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s;
}

.loc-web-preview-card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -0.5rem;
  height: 0.5rem;
}

.loc-web-preview:hover .loc-web-preview-card,
.loc-web-preview:focus-within .loc-web-preview-card {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
}

.loc-web-preview-shot {
  background: linear-gradient(145deg, #0b1f33 0%, #123a4d 52%, #1a6b7c 100%);
  overflow: hidden;
}

.loc-web-preview-chrome {
  display: flex;
  align-items: center;
  gap: 0.28rem;
  padding: 0.4rem 0.55rem;
  background: rgba(7, 22, 40, 0.45);
}

.loc-web-preview-chrome span {
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
}

.loc-web-preview-chrome span:nth-child(1) { background: #f87171; }
.loc-web-preview-chrome span:nth-child(2) { background: #fbbf24; }
.loc-web-preview-chrome span:nth-child(3) { background: #34d399; }

.loc-web-preview-chrome em {
  flex: 1;
  margin-left: 0.35rem;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(248, 250, 252, 0.88);
  font-style: normal;
  font-size: 0.68rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.loc-web-preview-hero {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.2rem;
  min-height: 5.4rem;
  padding: 0.85rem 0.9rem 0.95rem;
  color: #f8fafc;
}

.loc-web-preview-hero strong {
  font-size: 0.92rem;
  font-weight: 650;
  line-height: 1.25;
}

.loc-web-preview-hero span {
  font-size: 0.72rem;
  opacity: 0.78;
}

.loc-web-preview-serp {
  padding: 0.7rem 0.85rem 0.85rem;
}

.loc-web-preview-kicker {
  margin: 0 0 0.45rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #5b6b7c;
}

.loc-web-preview-site {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.loc-web-preview-favicon {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 999px;
  background: #f1f5f9;
  flex-shrink: 0;
}

.loc-web-preview-sitename {
  display: block;
  font-size: 0.78rem;
  font-weight: 650;
  color: #202124;
  line-height: 1.2;
}

.loc-web-preview-url {
  display: block;
  font-size: 0.72rem;
  color: #4d5156;
  word-break: break-all;
}

.loc-web-preview-title {
  margin: 0 0 0.2rem;
  font-size: 1.05rem;
  font-weight: 650;
  line-height: 1.3;
  color: #1a0dab;
}

.loc-web-preview-desc {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.4;
  color: #4d5156;
}

.loc-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.loc-chip-list li {
  padding: 0.3rem 0.65rem;
  border-radius: 0.4rem;
  background: #f0f5f7;
  border: 1px solid var(--acc-line);
  font-size: 0.82rem;
  font-weight: 550;
}

.loc-hours li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(11, 31, 51, 0.06);
  font-size: 0.9rem;
}

.loc-hours li:last-child {
  border-bottom: 0;
}

.loc-hours-day {
  font-weight: 600;
  color: var(--acc-ink);
}

.loc-hours-time {
  color: var(--acc-muted);
  font-variant-numeric: tabular-nums;
}

.loc-hours-time.is-closed {
  color: #9f1239;
  font-weight: 650;
}

.loc-feed {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.loc-feed-item {
  padding: 0.95rem 1rem;
  border-radius: 0.75rem;
  background: #f7fafb;
  border: 1px solid rgba(11, 31, 51, 0.06);
}

a.loc-feed-item-link,
button.loc-feed-item-link {
  display: block;
  width: 100%;
  text-align: left;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  font: inherit;
  transition: border-color 0.15s ease, background 0.15s ease;
}

a.loc-feed-item-link:hover,
button.loc-feed-item-link:hover {
  background: #f1f5f8;
  border-color: rgba(11, 31, 51, 0.14);
}

.loc-feed-detail {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  margin-top: 0.55rem;
  font-size: 0.78rem;
  font-weight: 650;
  color: var(--acc-sea);
}

.loc-badge--failed {
  background: rgba(220, 38, 38, 0.12);
  color: #b91c1c;
}

.loc-badge--published {
  background: rgba(22, 163, 74, 0.12);
  color: #15803d;
}

.loc-badge--draft,
.loc-badge--scheduled {
  background: rgba(26, 107, 124, 0.1);
  color: var(--acc-sea);
}

.post-detail-thumb {
  display: block;
  max-width: 12rem;
  max-height: 12rem;
  border-radius: 0.55rem;
  object-fit: cover;
  border: 1px solid rgba(11, 31, 51, 0.08);
}

.loc-feed-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.75rem;
  margin-bottom: 0.4rem;
}

.loc-feed-time {
  margin-left: auto;
  font-size: 0.75rem;
  color: var(--acc-muted);
}

.loc-feed-body {
  font-size: 0.92rem;
  line-height: 1.55;
  color: #1e293b;
}

.loc-feed-reply {
  margin-top: 0.65rem;
  padding: 0.65rem 0.75rem;
  border-radius: 0.55rem;
  background: #fff;
  border-left: 3px solid var(--acc-sea);
  font-size: 0.86rem;
  color: #334155;
}

.loc-feed-reply-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--acc-sea);
  margin-bottom: 0.2rem;
}

.loc-stars {
  color: #ca8a04;
  letter-spacing: 0.05em;
  font-size: 0.85rem;
}

.loc-badge {
  display: inline-block;
  padding: 0.12rem 0.45rem;
  border-radius: 0.35rem;
  font-size: 0.72rem;
  font-weight: 650;
  background: rgba(26, 107, 124, 0.1);
  color: var(--acc-sea);
}

.loc-empty {
  color: var(--acc-muted);
  font-size: 0.9rem;
}

.loc-table thead th {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--acc-muted);
  font-weight: 650;
  border-bottom-color: var(--acc-line);
}

.loc-media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.75rem;
}

.loc-media-grid.is-size-sm {
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 0.5rem;
}

.loc-media-grid.is-size-md {
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

.loc-media-grid.is-size-lg {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.loc-media-item {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  border-radius: 0.75rem;
  background: #f7fafb;
  border: 1px solid rgba(11, 31, 51, 0.06);
}

.loc-media-open {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.loc-media-item img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: #e2e8f0;
}

.loc-media-grid.is-size-lg .loc-media-item img {
  aspect-ratio: 4 / 3;
}

.loc-media-zoom {
  position: absolute;
  right: 0.45rem;
  bottom: 0.45rem;
  width: 1.85rem;
  height: 1.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(7, 15, 25, 0.62);
  color: #fff;
  font-size: 0.78rem;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.loc-media-open:hover .loc-media-zoom,
.loc-media-open:focus-visible .loc-media-zoom {
  opacity: 1;
}

.loc-media-meta {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.45rem 0.55rem 0.55rem;
}

.loc-media-sizes {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.15rem;
  border-radius: 0.55rem;
  background: #f1f5f8;
  border: 1px solid rgba(11, 31, 51, 0.08);
}

.loc-media-size-btn {
  border: 0;
  background: transparent;
  color: #475569;
  font-size: 0.78rem;
  font-weight: 650;
  line-height: 1;
  padding: 0.35rem 0.55rem;
  border-radius: 0.4rem;
}

.loc-media-size-btn.is-active {
  background: #fff;
  color: #0b1f33;
  box-shadow: 0 1px 2px rgba(11, 31, 51, 0.08);
}

.loc-media-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(7, 15, 25, 0.92);
  padding: 3.2rem 4.2rem 1.5rem;
}

.loc-media-lightbox[hidden] {
  display: none !important;
}

body.loc-media-lightbox-open {
  overflow: hidden;
}

.loc-media-lightbox-stage {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  max-width: min(1100px, 100%);
}

.loc-media-lightbox-stage img {
  max-width: 100%;
  max-height: calc(100vh - 7rem);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 0.6rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.loc-media-lightbox-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.65rem 1rem;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.86rem;
}

.loc-media-lightbox-bar a {
  color: #fff;
  font-weight: 650;
}

.loc-media-lightbox-close,
.loc-media-lightbox-nav {
  position: absolute;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  width: 2.5rem;
  height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.loc-media-lightbox-close {
  top: 0.85rem;
  right: 0.85rem;
}

.loc-media-lightbox-nav.is-prev {
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
}

.loc-media-lightbox-nav.is-next {
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
}

.loc-media-lightbox-close:hover,
.loc-media-lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.22);
}

@media (max-width: 720px) {
  .loc-media-lightbox {
    padding: 3rem 0.75rem 1rem;
  }

  .loc-media-lightbox-nav {
    display: none;
  }
}

.location-dl dt {
  padding-top: 0.3rem;
}

.location-dl dd {
  margin-bottom: 0.55rem;
  padding-top: 0.3rem;
}

.location-pre {
  max-height: 220px;
  overflow: auto;
}

.location-pre-tall {
  max-height: 520px;
}

/* Yakın işletmeler haritası (Leaflet) */
.competitors-map-wrap {
  position: relative;
}

.competitors-map-stage {
  --cms-panel-dur: 0.55s;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 0px;
  gap: 0;
  border-radius: 0.85rem;
  border: 1px solid rgba(15, 23, 42, 0.12);
  overflow: hidden;
  background: #e8eef1;
  min-height: 420px;
  transition: grid-template-columns var(--cms-panel-dur) cubic-bezier(0.33, 1, 0.32, 1);
}

@media (min-width: 900px) {
  .competitors-map-stage.has-panel {
    grid-template-columns: minmax(0, 1fr) 320px;
  }
}

.competitors-map {
  height: 420px;
  width: 100%;
  border-radius: 0;
  border: 0;
  z-index: 0;
  background: #e8eef1;
}

.competitors-map-panel {
  display: block;
  background: #fff;
  border-top: 0;
  overflow: hidden;
  min-width: 0;
  max-width: 100%;
  height: 420px;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition:
    opacity 0.35s ease 0.12s,
    visibility 0s linear var(--cms-panel-dur, 0.55s);
}

.competitors-map-stage.has-panel .competitors-map-panel {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transition:
    opacity 0.4s ease 0.08s,
    visibility 0s linear 0s;
}

@media (min-width: 900px) {
  .competitors-map-panel {
    border-left: 1px solid rgba(15, 23, 42, 0.08);
  }
}

/* Mobil: panel haritanın altında kayarak açılsın */
@media (max-width: 899.98px) {
  .competitors-map-stage {
    grid-template-columns: 1fr;
    transition: none;
  }

  .competitors-map-panel {
    height: 0;
    max-height: 0;
    border-top: 1px solid transparent;
    transition:
      max-height var(--cms-panel-dur) cubic-bezier(0.33, 1, 0.32, 1),
      height var(--cms-panel-dur) cubic-bezier(0.33, 1, 0.32, 1),
      opacity 0.35s ease,
      visibility 0s linear var(--cms-panel-dur);
  }

  .competitors-map-stage.has-panel .competitors-map-panel {
    height: auto;
    max-height: 360px;
    border-top-color: rgba(15, 23, 42, 0.08);
    overflow: auto;
  }
}

.competitors-map-panel-inner {
  padding: 1rem 1.1rem 1.15rem;
  width: 320px;
  max-width: 100%;
  box-sizing: border-box;
  opacity: 0;
  transform: translateX(12px);
  transition:
    opacity 0.4s ease 0.18s,
    transform 0.5s cubic-bezier(0.33, 1, 0.32, 1) 0.12s;
}

.competitors-map-stage.has-panel .competitors-map-panel-inner {
  opacity: 1;
  transform: none;
}

@media (max-width: 899.98px) {
  .competitors-map-panel-inner {
    width: 100%;
    transform: translateY(8px);
  }
}

.competitors-map-panel-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
  min-height: 1.5rem;
}

.competitors-map-panel-badge {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  border-radius: 0.35rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(26, 107, 124, 0.12);
  color: #1a6b7c;
}

.competitors-map-panel-close {
  margin-left: auto;
  border: 0;
  background: #f1f5f9;
  color: #475569;
  width: 2rem;
  height: 2rem;
  border-radius: 0.45rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.competitors-map-panel-close:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.competitors-map-panel-title {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.15rem;
  font-weight: 650;
  line-height: 1.25;
  margin: 0 0 0.25rem;
  color: #0b1f33;
  letter-spacing: -0.01em;
}

.competitors-map-panel-kicker {
  font-size: 0.8rem;
  color: #64748b;
}

.competitors-map-panel-metrics {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 0.85rem;
  margin-bottom: 1rem;
  padding: 0.75rem 0.85rem;
  border-radius: 0.65rem;
  background: #f7fafb;
  border: 1px solid rgba(11, 31, 51, 0.06);
}

.competitors-map-panel-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 0.3rem;
}

.competitors-map-panel-review {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 560;
  color: #0b1f33;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.competitors-map-panel-address {
  font-size: 0.88rem;
  line-height: 1.45;
  color: #334155;
  margin-bottom: 1rem;
}

.competitors-map-panel-actions {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.competitors-map-legend {
  display: inline-block;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  vertical-align: middle;
  margin-right: 0.25rem;
}

.competitors-map-legend--self {
  background: var(--localo-manager, #0f4c5c);
}

.competitors-map-legend--rival {
  background: #c45c26;
}

.competitors-map-pin-wrap {
  background: transparent;
  border: none;
}

.competitors-map-pin {
  width: 36px;
  height: 36px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.28);
  border: 2px solid #fff;
}

.competitors-map-pin i {
  transform: rotate(45deg);
  font-size: 0.95rem;
  color: #fff;
  line-height: 1;
}

.competitors-map-pin--self {
  background: var(--localo-manager, #0f4c5c);
}

.competitors-map-pin--rival {
  background: #c45c26;
}

.competitors-map-tooltip {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.competitors-map-tooltip .leaflet-tooltip-tip {
  display: none;
}

.competitors-map-tip {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 0.45rem;
  padding: 0.45rem 0.65rem;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
  min-width: 140px;
  max-width: 220px;
}

.competitors-map-tip--card {
  min-width: 180px;
  max-width: 260px;
  padding: 0.65rem 0.75rem;
  border-radius: 0.65rem;
  border-color: rgba(196, 92, 38, 0.28);
  box-shadow: 0 10px 28px -14px rgba(15, 23, 42, 0.45);
}

.competitors-map-pin-wrap.is-table-hover .competitors-map-pin {
  transform: rotate(-45deg) scale(1.12);
  box-shadow: 0 4px 14px rgba(196, 92, 38, 0.45);
  z-index: 2;
}

.competitors-table-row {
  cursor: pointer;
  transition: background 0.15s ease;
}

.competitors-table-row.is-map-hover,
.competitors-table-row:hover {
  background: rgba(196, 92, 38, 0.07);
}

.competitors-map-tip-title {
  font-weight: 600;
  font-size: 0.85rem;
  color: #0f172a;
  line-height: 1.25;
  margin-bottom: 0.15rem;
}

.competitors-map-tip-meta {
  font-size: 0.75rem;
  color: #64748b;
}

@media (max-width: 576px) {
  .competitors-map-stage,
  .competitors-map {
    min-height: 320px;
  }
  .competitors-map {
    height: 320px;
  }
}

/* SEO panel AJAX preloader */
.seo-panel {
  min-height: 8rem;
}

.seo-preloader {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.72);
  border-radius: inherit;
  backdrop-filter: blur(1px);
}

.seo-preloader.d-none {
  display: none !important;
}

.seo-preloader-inner {
  text-align: center;
  padding: 1rem;
}

/* SEO neighbor firm tables + detail */
.seo-kw-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.85rem;
  height: 1.85rem;
  padding: 0;
  border: 0;
  border-radius: 0.45rem;
  background: rgba(11, 31, 51, 0.05);
  color: #64748b;
  line-height: 1;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.35s cubic-bezier(0.33, 1, 0.32, 1);
}

.seo-kw-toggle:hover {
  background: rgba(26, 107, 124, 0.12);
  color: #1a6b7c;
}

.seo-kw-toggle.is-open {
  background: rgba(26, 107, 124, 0.14);
  color: #1a6b7c;
  transform: rotate(180deg);
}

.seo-kw-row.is-expanded > td {
  background: rgba(26, 107, 124, 0.04);
}

.seo-neighbors-row > td {
  padding: 0 !important;
  border-bottom: 0 !important;
  background: transparent !important;
}

.seo-neighbors-anim {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.5s cubic-bezier(0.33, 1, 0.32, 1);
}

.seo-neighbors-row.is-open .seo-neighbors-anim {
  grid-template-rows: 1fr;
}

.seo-neighbors-anim-inner {
  overflow: hidden;
  min-height: 0;
  opacity: 0;
  transform: translateY(-6px);
  transition:
    opacity 0.35s ease 0.05s,
    transform 0.45s cubic-bezier(0.33, 1, 0.32, 1) 0.04s;
}

.seo-neighbors-row.is-open .seo-neighbors-anim-inner {
  opacity: 1;
  transform: none;
}

.seo-neighbors-cell .seo-neighbors-layout {
  margin: 0;
  padding: 0.85rem 1.1rem 1.1rem;
  background: #f4f8fa;
  border-top: 1px solid rgba(11, 31, 51, 0.06);
  border-radius: 0 0 0.65rem 0.65rem;
}

.seo-neighbors-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  width: 100%;
  max-width: none;
}

.seo-neighbors-layout-single {
  grid-template-columns: 1fr;
  width: 100%;
  max-width: none;
}

.seo-neighbors-heading {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 0.65rem;
  color: #0b1f33;
}

.seo-neighbor-block {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  width: 100%;
  max-width: none;
}

.seo-neighbor-table-host,
.seo-neighbor-pager-host,
.seo-firm-detail,
.seo-leaders {
  width: 100%;
  max-width: none;
}

.seo-firm-table {
  width: 100%;
  background: #fff;
  border: 1px solid rgba(11, 31, 51, 0.08);
  border-radius: 0.75rem;
  overflow: hidden;
}

.seo-firm-table thead th {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #5b6b7c;
  font-weight: 650;
  background: #f8fafb;
  border-bottom-color: rgba(11, 31, 51, 0.08);
  white-space: nowrap;
}

.seo-firm-row {
  cursor: pointer;
  transition: background 0.15s ease;
}

.seo-firm-row:hover {
  background: rgba(26, 107, 124, 0.05);
}

.seo-firm-row.is-selected {
  background: rgba(26, 107, 124, 0.1);
}

.seo-firm-row.is-own {
  background: linear-gradient(90deg, rgba(202, 138, 4, 0.18), rgba(253, 224, 71, 0.12));
  box-shadow: inset 3px 0 0 #ca8a04;
}

.seo-firm-row.is-own.is-selected {
  background: linear-gradient(90deg, rgba(202, 138, 4, 0.28), rgba(253, 224, 71, 0.18));
}

.seo-firm-row:focus-visible {
  outline: 2px solid #1a6b7c;
  outline-offset: -2px;
}

.seo-rank-badge.is-own {
  background: #fef3c7;
  border-color: rgba(202, 138, 4, 0.35);
  color: #92400e;
}

.seo-own-pill {
  display: inline-block;
  padding: 0.1rem 0.45rem;
  border-radius: 0.3rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  background: #fef3c7;
  color: #92400e;
  vertical-align: middle;
}

.seo-firm-detail .seo-own-pill {
  margin-bottom: 0.25rem;
}

.seo-rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.1rem;
  padding: 0.15rem 0.4rem;
  border-radius: 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  background: #eef3f6;
  color: #0b1f33;
  border: 1px solid rgba(11, 31, 51, 0.08);
}

.seo-firm-title-cell {
  max-width: none;
  width: 45%;
}

.seo-firm-rating-cell {
  min-width: 5.5rem;
  max-width: 7rem;
}

.seo-firm-detail {
  padding: 0.95rem 1rem;
  border-radius: 0.85rem;
  background: #fff;
  border: 1px solid rgba(11, 31, 51, 0.1);
  box-shadow: 0 8px 24px -20px rgba(11, 31, 51, 0.4);
}

.seo-firm-detail-empty {
  font-size: 0.85rem;
  color: #5b6b7c;
}

.seo-firm-detail-head {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 0.85rem;
}

.seo-firm-detail-name {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.05rem;
  font-weight: 650;
  margin: 0 0 0.15rem;
  line-height: 1.25;
  color: #0b1f33;
}

.seo-firm-detail-kw {
  font-size: 0.75rem;
  color: #5b6b7c;
}

.seo-firm-detail-metrics {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 0.85rem;
  margin-bottom: 0.85rem;
}

.seo-firm-detail-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #5b6b7c;
  margin-bottom: 0.35rem;
}

.seo-firm-detail-review-count {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 560;
  color: #0b1f33;
  font-variant-numeric: tabular-nums;
}

.seo-firm-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.seo-leaders {
  width: 100%;
  max-width: none;
  margin-top: 0.35rem;
  padding: 0.85rem 0.95rem;
  border-radius: 0.85rem;
  background: linear-gradient(180deg, #fff8e8 0%, #fff 70%);
  border: 1px solid rgba(202, 138, 4, 0.22);
}

.seo-leaders-heading {
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #92400e;
  margin-bottom: 0.65rem;
}

.seo-leaders-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
}

@media (min-width: 720px) {
  .seo-leaders-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.seo-leader-card {
  display: grid;
  grid-template-columns: auto auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 0.45rem;
  row-gap: 0.35rem;
  align-items: center;
  text-align: left;
  width: 100%;
  padding: 0.65rem 0.7rem;
  border-radius: 0.65rem;
  border: 1px solid rgba(11, 31, 51, 0.08);
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.seo-leader-card:hover {
  border-color: rgba(202, 138, 4, 0.35);
  box-shadow: 0 6px 16px -14px rgba(146, 64, 14, 0.55);
}

.seo-leader-card.is-selected {
  border-color: rgba(26, 107, 124, 0.35);
  background: rgba(26, 107, 124, 0.06);
}

.seo-leader-card.is-own {
  background: linear-gradient(90deg, rgba(202, 138, 4, 0.16), rgba(253, 224, 71, 0.1));
  border-color: rgba(202, 138, 4, 0.35);
  box-shadow: inset 3px 0 0 #ca8a04;
}

.seo-leader-card.is-own.is-selected {
  background: linear-gradient(90deg, rgba(202, 138, 4, 0.24), rgba(253, 224, 71, 0.14));
}

.seo-leader-medal {
  grid-row: 1 / span 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 0.4rem;
  font-size: 0.72rem;
  font-weight: 800;
  color: #fff;
}

.seo-leader-medal--1 {
  background: linear-gradient(145deg, #d4a017, #ca8a04);
}

.seo-leader-medal--2 {
  background: linear-gradient(145deg, #94a3b8, #64748b);
}

.seo-leader-medal--3 {
  background: linear-gradient(145deg, #c2410c, #9a3412);
}

.seo-leader-name-wrap {
  grid-column: 3;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
}

.seo-leader-name {
  font-size: 0.82rem;
  font-weight: 650;
  color: #0b1f33;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.seo-leader-rating {
  grid-column: 2 / span 2;
  min-width: 0;
  max-width: 6.5rem;
}

.seo-pager,
.seo-pager-host .seo-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
}

.seo-pager.is-empty {
  display: none;
}

.seo-pager-info {
  font-size: 0.8rem;
  font-weight: 600;
  color: #5b6b7c;
  font-variant-numeric: tabular-nums;
  min-width: 3.5rem;
  text-align: center;
}

.seo-pager-btn {
  min-width: 4.5rem;
}

.panel-reconnect-toast {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 1080;
  max-width: 22rem;
  background: #dc2626;
  color: #fff;
  padding: 0.95rem 1.15rem;
  border-radius: 0.35rem;
  box-shadow: 0 10px 28px rgba(185, 28, 28, 0.38);
  font-weight: 650;
  font-size: 0.9rem;
  line-height: 1.4;
}

.review-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin-top: 1.15rem;
}

.review-pager-btn,
.review-pager-num,
.review-pager-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.1rem;
  padding: 0.2rem 0.7rem;
  border-radius: 0.45rem;
  font-size: 0.82rem;
  font-weight: 650;
  text-decoration: none;
  color: #334155;
  background: #f1f5f8;
  border: 1px solid rgba(11, 31, 51, 0.08);
}

.review-pager-num {
  min-width: 2.1rem;
  padding-left: 0.45rem;
  padding-right: 0.45rem;
}

a.review-pager-btn:hover,
a.review-pager-num:hover {
  background: #e2eaf0;
  color: #0b1f33;
}

.review-pager-num.is-current {
  background: #1a6b7c;
  border-color: #1a6b7c;
  color: #fff;
}

.review-pager-btn.is-disabled {
  opacity: 0.42;
  pointer-events: none;
}

.review-pager-ellipsis {
  background: transparent;
  border: none;
  color: #64748b;
  min-width: 1.4rem;
  padding: 0 0.15rem;
}

.review-share-swatch {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(11, 31, 51, 0.18);
  cursor: pointer;
  padding: 0;
}

.review-share-swatch.is-active {
  box-shadow: 0 0 0 2px #1a6b7c;
}

.review-share-social {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
}

#modal-root {
  position: fixed;
  inset: 0;
  z-index: 1080;
  pointer-events: none;
}

#modal-root:empty {
  display: none;
}

#modal-root .modal,
body > .modal {
  pointer-events: auto;
  z-index: 1080;
}

.modal-backdrop {
  z-index: 1075;
}

#review-share-modal .modal-title {
  font-weight: 700;
}

#review-share-modal .modal-dialog {
  width: calc(100% - 1.5rem);
  max-width: 26.5rem;
  margin: 0.75rem auto;
}

#review-share-modal .review-share-modal-content {
  max-height: calc(100vh - 1.5rem);
  overflow: hidden;
  border: none;
  border-radius: 1rem;
  box-shadow: 0 24px 64px rgba(11, 31, 51, 0.28);
}

#review-share-modal .modal-body {
  padding-top: 0.35rem;
  overflow: auto;
}

@media (max-height: 760px) {
  .review-share-preview-wrap {
    width: min(15.5rem, 100%);
  }
}

.review-share-lead {
  font-size: 0.82rem;
  color: #5b6b7c;
  text-align: center;
  margin: 0 0 0.85rem;
}

.review-share-preview-wrap {
  position: relative;
  width: min(19.5rem, 100%);
  margin: 0 auto;
  aspect-ratio: 4 / 5;
  border-radius: 0.9rem;
  overflow: hidden;
  background: #0b1f33;
  box-shadow: 0 12px 28px rgba(11, 31, 51, 0.18);
  cursor: zoom-in;
}

.review-share-fullscreen-btn {
  position: absolute;
  left: 50%;
  bottom: 0.65rem;
  transform: translateX(-50%);
  border: 0;
  border-radius: 999px;
  background: rgba(11, 31, 51, 0.78);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 650;
  padding: 0.35rem 0.8rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.review-share-fullscreen-btn:hover {
  background: rgba(11, 31, 51, 0.92);
}

.review-share-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(7, 15, 25, 0.92);
  padding: 1.25rem;
}

.review-share-lightbox[hidden] {
  display: none !important;
}

.review-share-lightbox img {
  max-width: min(1080px, 100%);
  max-height: calc(100vh - 2.5rem);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 0.6rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.review-share-lightbox-close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  width: 2.4rem;
  height: 2.4rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.review-share-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.22);
}

.review-share-swatches {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
  margin: 0.85rem 0 0.65rem;
  max-width: 19.5rem;
  margin-left: auto;
  margin-right: auto;
}

#review-share-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.review-share-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.4rem 0.65rem;
  font-size: 0.86rem;
  text-align: center;
}

.review-share-footer {
  flex-direction: column;
  align-items: stretch;
  gap: 0.7rem;
  border-top: 1px solid rgba(11, 31, 51, 0.08);
}

.review-share-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.review-share-social-btn {
  width: 2.35rem;
  height: 2.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(11, 31, 51, 0.12);
  background: #f8fafc;
  color: #0b1f33;
  text-decoration: none;
  padding: 0;
}

.review-share-social-btn:hover {
  background: #eef3f6;
  color: #1a6b7c;
}

.review-share-hint {
  min-height: 1.1rem;
  margin: 0;
  font-size: 0.75rem;
  color: #5b6b7c;
  text-align: center;
}

.review-share-modes {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  margin: 0.75rem 0 0.5rem;
}

.review-share-mode {
  border: 1px solid rgba(11, 31, 51, 0.12);
  background: #f8fafc;
  color: #334155;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 650;
  padding: 0.28rem 0.85rem;
}

.review-share-mode.is-active {
  background: #1a6b7c;
  border-color: #1a6b7c;
  color: #fff;
}

.review-share-library {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.4rem;
  margin-bottom: 0.65rem;
}

.review-share-thumb {
  padding: 0;
  border: 2px solid transparent;
  border-radius: 0.45rem;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: #e2e8f0;
}

.review-share-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.review-share-thumb.is-selected {
  border-color: #1a6b7c;
}

.review-bg-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
  gap: 0.85rem;
}

.review-bg-card {
  border: 1px solid rgba(11, 31, 51, 0.08);
  border-radius: 0.75rem;
  overflow: hidden;
  background: #fff;
}

.review-bg-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: #0b1f33;
}

.review-bg-card-body {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 0.75rem;
  font-size: 0.82rem;
}

.page-assistant-fab {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 1040;
  width: 3.4rem;
  height: 3.4rem;
  border: 0;
  border-radius: 999px;
  background: #0b6e4f;
  color: #fff;
  box-shadow: 0 10px 24px rgba(11, 31, 51, 0.22);
  font-size: 1.35rem;
}

.page-assistant-fab:hover {
  background: #095c42;
}

.page-assistant-root.is-open .page-assistant-fab {
  display: none;
}

.page-assistant-panel {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 1045;
  width: min(400px, 100vw);
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-left: 1px solid rgba(11, 31, 51, 0.08);
  box-shadow: -12px 0 40px rgba(11, 31, 51, 0.12);
}

.page-assistant-panel[hidden] {
  display: none !important;
}

.page-assistant-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1rem 0.85rem;
  border-bottom: 1px solid rgba(11, 31, 51, 0.08);
}

.page-assistant-kicker {
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
  font-weight: 700;
}

.page-assistant-title {
  font-size: 1.05rem;
  margin: 0.15rem 0 0;
}

.page-assistant-close {
  border: 0;
  background: #f1f5f8;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 999px;
  color: #0b1f33;
}

.page-assistant-body {
  flex: 1;
  overflow: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.page-assistant-welcome {
  font-size: 0.9rem;
  color: #334155;
  margin: 0;
}

.page-assistant-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.page-assistant-chip {
  border: 1px solid rgba(11, 110, 79, 0.22);
  background: #f3fbf7;
  color: #0b6e4f;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 650;
  padding: 0.35rem 0.7rem;
  text-align: left;
}

.page-assistant-chip:hover {
  background: #e4f6ee;
}

.page-assistant-messages {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.page-assistant-msg-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #64748b;
  margin-bottom: 0.2rem;
}

.page-assistant-msg-body {
  font-size: 0.9rem;
  line-height: 1.45;
  padding: 0.65rem 0.75rem;
  border-radius: 0.75rem;
  background: #f8fafc;
}

.page-assistant-msg-user .page-assistant-msg-body {
  background: #0b6e4f;
  color: #fff;
}

.page-assistant-msg-body,
.agent-msg-body {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.page-assistant-msg-body.is-md,
.agent-msg-body.is-md {
  white-space: normal;
  line-height: 1.55;
}

.page-assistant-msg-body.is-md > :first-child,
.agent-msg-body.is-md > :first-child {
  margin-top: 0;
}

.page-assistant-msg-body.is-md > :last-child,
.agent-msg-body.is-md > :last-child {
  margin-bottom: 0;
}

.page-assistant-msg-body.is-md p,
.agent-msg-body.is-md p {
  margin: 0 0 0.65em;
  line-height: 1.55;
}

.page-assistant-msg-body.is-md h1,
.page-assistant-msg-body.is-md h2,
.page-assistant-msg-body.is-md h3,
.page-assistant-msg-body.is-md h4,
.agent-msg-body.is-md h1,
.agent-msg-body.is-md h2,
.agent-msg-body.is-md h3,
.agent-msg-body.is-md h4 {
  font-weight: 700;
  line-height: 1.3;
  margin: 0.9em 0 0.4em;
  color: var(--localo-primary, #0f2744);
}

.page-assistant-msg-body.is-md h1,
.agent-msg-body.is-md h1 {
  font-size: 1.14em;
}

.page-assistant-msg-body.is-md h2,
.agent-msg-body.is-md h2 {
  font-size: 1.08em;
}

.page-assistant-msg-body.is-md h3,
.page-assistant-msg-body.is-md h4,
.agent-msg-body.is-md h3,
.agent-msg-body.is-md h4 {
  font-size: 1.03em;
}

.page-assistant-msg-body.is-md ul,
.page-assistant-msg-body.is-md ol,
.agent-msg-body.is-md ul,
.agent-msg-body.is-md ol {
  margin: 0.35em 0 0.7em;
  padding-left: 1.4em;
  list-style-position: outside;
}

.page-assistant-msg-body.is-md ul,
.agent-msg-body.is-md ul {
  list-style-type: disc;
}

.page-assistant-msg-body.is-md ol,
.agent-msg-body.is-md ol {
  list-style-type: decimal;
}

.page-assistant-msg-body.is-md li,
.agent-msg-body.is-md li {
  display: list-item;
  margin: 0.22em 0;
  padding-left: 0.15em;
  line-height: 1.5;
}

.page-assistant-msg-body.is-md li + li,
.agent-msg-body.is-md li + li {
  margin-top: 0.28em;
}

.page-assistant-msg-body.is-md > ol > li,
.agent-msg-body.is-md > ol > li {
  margin-top: 0.7em;
}

.page-assistant-msg-body.is-md > ol > li:first-child,
.agent-msg-body.is-md > ol > li:first-child {
  margin-top: 0.15em;
}

.page-assistant-msg-body.is-md li > ul,
.page-assistant-msg-body.is-md li > ol,
.agent-msg-body.is-md li > ul,
.agent-msg-body.is-md li > ol {
  margin: 0.28em 0 0.4em;
  padding-left: 1.25em;
}

.page-assistant-msg-body.is-md ul ul,
.agent-msg-body.is-md ul ul {
  list-style-type: circle;
}

.page-assistant-msg-body.is-md ul ul ul,
.agent-msg-body.is-md ul ul ul {
  list-style-type: square;
}

.page-assistant-msg-body.is-md li > strong:first-child,
.agent-msg-body.is-md li > strong:first-child {
  font-weight: 700;
  font-size: 1.04em;
  color: var(--localo-primary, #0f2744);
}

.page-assistant-msg-body.is-md a,
.agent-msg-body.is-md a {
  color: var(--localo-accent, #2563eb);
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.page-assistant-msg-body.is-md code,
.agent-msg-body.is-md code {
  font-size: 0.86em;
  background: rgba(15, 39, 68, 0.08);
  padding: 0.1em 0.35em;
  border-radius: 0.25rem;
}

.page-assistant-msg-body.is-md pre,
.agent-msg-body.is-md pre {
  margin: 0.5em 0 0.75em;
  padding: 0.6rem 0.75rem;
  background: rgba(15, 39, 68, 0.06);
  border: 1px solid var(--localo-border, #e2e8f0);
  border-radius: 0.5rem;
  overflow-x: auto;
  white-space: pre;
}

.page-assistant-msg-body.is-md pre code,
.agent-msg-body.is-md pre code {
  background: none;
  padding: 0;
  font-size: 0.82em;
}

.page-assistant-msg-body.is-md blockquote,
.agent-msg-body.is-md blockquote {
  margin: 0.5em 0 0.75em;
  padding: 0.15em 0 0.15em 0.8em;
  border-left: 3px solid var(--localo-border, #e2e8f0);
  color: var(--localo-text-muted, #64748b);
}

.page-assistant-msg-body.is-md hr,
.agent-msg-body.is-md hr {
  margin: 0.85em 0;
  border: 0;
  border-top: 1px solid var(--localo-border, #e2e8f0);
}

.page-assistant-msg-user .page-assistant-msg-body.is-md h1,
.page-assistant-msg-user .page-assistant-msg-body.is-md h2,
.page-assistant-msg-user .page-assistant-msg-body.is-md h3,
.page-assistant-msg-user .page-assistant-msg-body.is-md h4,
.page-assistant-msg-user .page-assistant-msg-body.is-md li > strong:first-child,
.page-assistant-msg-user .page-assistant-msg-body.is-md a {
  color: inherit;
}

.page-assistant-msg-typing .page-assistant-msg-body {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 1.25rem;
  padding-block: 0.85rem;
}

.page-assistant-typing-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: #64748b;
  animation: page-assistant-typing-bounce 1.2s ease-in-out infinite;
}

.page-assistant-typing-dot:nth-child(2) {
  animation-delay: 0.15s;
}

.page-assistant-typing-dot:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes page-assistant-typing-bounce {
  0%,
  60%,
  100% {
    transform: translateY(0);
    opacity: 0.4;
  }
  30% {
    transform: translateY(-0.35rem);
    opacity: 1;
  }
}

.page-assistant-composer {
  display: flex;
  gap: 0.5rem;
  padding: 0.85rem 1rem 1rem;
  border-top: 1px solid rgba(11, 31, 51, 0.08);
}

.page-assistant-composer textarea {
  flex: 1;
  resize: none;
  border: 1px solid rgba(11, 31, 51, 0.12);
  border-radius: 0.6rem;
  padding: 0.55rem 0.7rem;
  font-size: 0.9rem;
}

.page-assistant-error {
  color: #b42318;
  font-size: 0.8rem;
  padding: 0 1rem 0.75rem;
  margin: 0;
}

body.agent-chat-page .page-assistant-root {
  display: none !important;
}

@media (max-width: 720px) {
  .page-assistant-panel {
    width: 100vw;
  }
}

.heading-with-hint {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.heading-with-hint h1,
.heading-with-hint h2,
.heading-with-hint h3 {
  margin-bottom: 0;
}

.log-filter-form label {
  font-size: 0.8rem;
  color: var(--localo-text-muted);
  margin-bottom: 0.2rem;
}

.help-hint {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  vertical-align: middle;
  z-index: 2;
}

.help-hint__btn {
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 999px;
  border: 1px solid var(--localo-border);
  background: #fff;
  color: var(--localo-text-muted);
  font-size: 0.7rem;
  line-height: 1;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: help;
}

.help-hint__btn:hover,
.help-hint__btn:focus,
.help-hint__btn:focus-visible {
  color: var(--localo-accent);
  border-color: var(--localo-accent);
  outline: none;
  box-shadow: 0 0 0 0.15rem rgba(37, 99, 235, 0.18);
}

.help-hint__pop {
  position: absolute;
  z-index: 40;
  left: 0;
  bottom: calc(100% + 0.4rem);
  width: max-content;
  max-width: 17.5rem;
  padding: 0.55rem 0.7rem;
  background: var(--localo-primary);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 400;
  line-height: 1.45;
  text-align: left;
  white-space: normal;
  border-radius: 0.5rem;
  box-shadow: 0 8px 24px rgba(15, 39, 68, 0.2);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity 0.12s ease, transform 0.12s ease, visibility 0.12s;
}

.help-hint:hover .help-hint__pop,
.help-hint:focus-within .help-hint__pop {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.help-hint__pop--below {
  bottom: auto;
  top: calc(100% + 0.4rem);
}

.help-hint__pop--end {
  left: auto;
  right: 0;
}

@media (prefers-reduced-motion: reduce) {
  .help-hint__pop {
    transition: none;
  }
}
