:root {
  --tc-yellow: #ffc900;
  --tc-yellow-dark: #e6b400;
  --tc-navy: #1a1a2e;
  --tc-navy-light: #252542;
  --tc-blue: #00b4d8;
  --tc-purple: #7b2ff7;
  --tc-pink: #ff006e;
  --tc-ink: #f4f6fb;
  --tc-muted: #9aa3b8;
  --tc-line: rgba(255, 255, 255, 0.1);
  --tc-surface: #12121f;
  --tc-panel: #1e1e32;
  --tc-success: #22c55e;
  --tc-warning: #f59e0b;
  --tc-danger: #ef4444;
  --tc-shadow: 0 18px 42px rgba(0, 0, 0, 0.35);
  font-family: "Segoe UI", Arial, sans-serif;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  color: var(--tc-ink);
  background: var(--tc-navy);
}

#workspaceView {
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

[hidden] {
  display: none !important;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

/* Loader */
.app-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--tc-navy) 0%, #0d0d18 100%);
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.app-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-card {
  display: grid;
  justify-items: center;
  gap: 16px;
}

.loader-spinner {
  width: 56px;
  height: 56px;
  border: 3px solid rgba(255, 201, 0, 0.2);
  border-top-color: var(--tc-yellow);
  border-radius: 50%;
  animation: tc-spin 0.8s linear infinite;
}

.loader-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--tc-ink);
}

.tc-brand-logo {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.tc-brand-logo--loader {
  height: 76px;
}

.tc-brand-logo--hero {
  height: 92px;
  margin-bottom: 4px;
}

.tc-brand-logo--panel {
  height: 68px;
  margin: 0 auto;
}

.tc-brand-logo--sidebar {
  height: 72px;
  margin: 0 auto;
}

@keyframes tc-spin {
  to { transform: rotate(360deg); }
}

/* Auth */
body[data-view="auth"] .tc-shell,
body[data-view="workspace"] .auth-page {
  display: none;
}

body[data-view="auth"] {
  overflow: auto;
}

.auth-page {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1fr 440px;
}

.auth-hero {
  position: relative;
  display: grid;
  place-items: center;
  padding: 48px;
  overflow: hidden;
  background:
    radial-gradient(circle at 25% 35%, rgba(255, 201, 0, 0.12), transparent 45%),
    radial-gradient(circle at 75% 65%, rgba(0, 180, 216, 0.08), transparent 40%),
    linear-gradient(145deg, #0d0d18 0%, var(--tc-navy) 55%, #12122a 100%);
}

.auth-hero__grid {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(255, 201, 0, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 201, 0, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at center, #000 30%, transparent 80%);
}

.auth-hero__content {
  position: relative;
  z-index: 1;
  max-width: 480px;
}

.auth-hero__content h1 {
  margin: 24px 0 8px;
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--tc-yellow);
}

.auth-hero__content > p {
  margin: 0 0 28px;
  font-size: 16px;
  color: var(--tc-muted);
}

.auth-hero__features {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.auth-hero__features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--tc-ink);
}

.auth-hero__features li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--tc-yellow);
  box-shadow: 0 0 10px rgba(255, 201, 0, 0.5);
}

.auth-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 36px;
  background: var(--tc-surface);
  border-left: 1px solid var(--tc-line);
}

.auth-panel__header {
  margin-bottom: 28px;
}

.auth-panel__header h2 {
  margin: 20px 0 6px;
  font-size: 24px;
  font-weight: 700;
}

.auth-panel__header p {
  margin: 0;
  font-size: 14px;
  color: var(--tc-muted);
  line-height: 1.5;
}

.auth-panel__footer {
  display: flex;
  justify-content: space-between;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--tc-line);
  font-size: 11px;
  color: var(--tc-muted);
}

.tc-field {
  display: grid;
  gap: 6px;
  margin-bottom: 16px;
}

.tc-field span {
  font-size: 13px;
  color: var(--tc-muted);
}

.tc-field input,
.tc-field select {
  padding: 10px 14px;
  border: 1px solid var(--tc-line);
  border-radius: 8px;
  background: var(--tc-surface);
  color: var(--tc-ink);
  outline: none;
  transition: border-color 0.2s;
}

.tc-field input:focus,
.tc-field select:focus {
  border-color: var(--tc-yellow);
}

.tc-field input:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.tc-field--password .tc-password-wrap {
  position: relative;
}

.tc-password-wrap input {
  width: 100%;
  padding-right: 44px;
}

.tc-password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--tc-muted);
}

.tc-password-toggle:hover {
  color: var(--tc-yellow);
  background: rgba(255, 201, 0, 0.08);
}

.login-form__options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.tc-remember {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--tc-muted);
  cursor: pointer;
}

.tc-remember input {
  accent-color: var(--tc-yellow);
}

.tc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  transition: background 0.2s, transform 0.15s;
}

.tc-btn--primary {
  width: 100%;
  background: var(--tc-yellow);
  color: var(--tc-navy);
}

.tc-btn--primary:hover:not(:disabled) {
  background: var(--tc-yellow-dark);
}

.tc-btn--primary:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.tc-btn.is-loading {
  position: relative;
}

.tc-btn__spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(26, 26, 46, 0.2);
  border-top-color: var(--tc-navy);
  border-radius: 50%;
  animation: tc-spin 0.7s linear infinite;
}

.tc-btn--ghost {
  background: transparent;
  color: var(--tc-yellow);
  border: 1px solid var(--tc-line);
  padding: 6px 12px;
  font-size: 12px;
}

.login-form__message {
  margin: 14px 0 0;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  min-height: 18px;
  background: rgba(34, 197, 94, 0.1);
  color: var(--tc-success);
}

.login-form__message:empty {
  display: none;
}

.login-form__message.is-error {
  background: rgba(239, 68, 68, 0.1);
  color: var(--tc-danger);
}

.login-form__message.is-success {
  background: rgba(34, 197, 94, 0.1);
  color: var(--tc-success);
}

/* Workspace Shell */
.tc-shell {
  display: grid;
  grid-template-columns: 260px 1fr;
  height: 100vh;
  overflow: hidden;
}

.tc-sidebar {
  display: flex;
  flex-direction: column;
  background: var(--tc-surface);
  border-right: 1px solid var(--tc-line);
  padding: 20px 16px;
  overflow-y: auto;
}

.tc-sidebar__brand {
  display: grid;
  gap: 10px;
  margin-bottom: 24px;
  justify-items: center;
  text-align: center;
}

.tc-sidebar__brand strong {
  font-size: 14px;
  color: var(--tc-yellow);
}

.tc-sidebar__brand-text {
  display: grid;
  gap: 3px;
}

.tc-sidebar__brand-text span {
  display: block;
  font-size: 11px;
  color: var(--tc-muted);
  line-height: 1.35;
}

.tc-sidebar__brand-tagline {
  color: var(--tc-blue);
  font-size: 10px;
}

.tc-sidebar__profile {
  display: grid;
  gap: 4px;
  padding: 16px;
  margin-bottom: 20px;
  border-radius: 12px;
  background: var(--tc-panel);
  text-align: center;
}

.tc-sidebar__avatar {
  width: 48px;
  height: 48px;
  margin: 0 auto 8px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--tc-yellow);
  color: var(--tc-navy);
  font-size: 20px;
  font-weight: 700;
}

.tc-sidebar__profile span {
  font-size: 12px;
  color: var(--tc-muted);
}

.tc-sidebar__profile small {
  font-size: 11px;
  color: var(--tc-blue);
}

.tc-sidebar__nav {
  display: grid;
  gap: 4px;
  flex: 1;
}

.tc-nav__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--tc-muted);
  font-size: 13px;
  text-align: left;
  transition: background 0.2s, color 0.2s;
}

.tc-nav__item:hover {
  background: rgba(255, 201, 0, 0.08);
  color: var(--tc-ink);
}

.tc-nav__item.is-active {
  background: rgba(255, 201, 0, 0.15);
  color: var(--tc-yellow);
}

.tc-sidebar__logout {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--tc-line);
  border-radius: 8px;
  background: transparent;
  color: var(--tc-muted);
  font-size: 13px;
}

.tc-sidebar__logout:hover {
  border-color: var(--tc-danger);
  color: var(--tc-danger);
}

.tc-sidebar__footer {
  margin-top: auto;
  padding-top: 16px;
  display: grid;
  gap: 10px;
}

.tc-sidebar__meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.tc-sidebar__meta .tc-version {
  margin-left: 0;
}

/* Topbar */
.tc-workspace {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
  height: 100%;
}

.tc-topbar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--tc-line);
  background: var(--tc-surface);
}

.tc-topbar__info {
  flex: 1;
}

.tc-topbar__eyebrow {
  font-size: 11px;
  color: var(--tc-yellow);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.tc-topbar h1 {
  margin: 4px 0 0;
  font-size: 20px;
}

.tc-topbar p {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--tc-muted);
}

.tc-workspace.is-map-mode .tc-topbar {
  display: none;
}

.tc-status-pill {
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(34, 197, 94, 0.15);
  color: var(--tc-success);
  font-size: 11px;
  font-weight: 600;
}

.tc-version {
  font-size: 11px;
  color: var(--tc-muted);
}

/* Workspace Body */
.tc-workspace__body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 20px 24px;
}

.tc-workspace__body.is-map-view {
  overflow: hidden;
  padding: 0;
  display: flex;
  flex-direction: column;
}

/* Metrics */
.tc-metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.tc-metric {
  padding: 20px;
  border-radius: 12px;
  background: var(--tc-panel);
  border: 1px solid var(--tc-line);
}

.tc-metric span {
  font-size: 12px;
  color: var(--tc-muted);
}

.tc-metric strong {
  display: block;
  margin: 8px 0 4px;
  font-size: 28px;
  color: var(--tc-yellow);
}

.tc-metric small {
  font-size: 11px;
  color: var(--tc-muted);
}

.tc-panel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
}

.tc-card {
  padding: 20px;
  border-radius: 12px;
  background: var(--tc-panel);
  border: 1px solid var(--tc-line);
}

.tc-card h3 {
  margin: 0 0 16px;
  font-size: 15px;
}

.tc-activity-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.tc-activity-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 13px;
  border-bottom: 1px solid var(--tc-line);
}

.tc-activity-list li:last-child {
  border-bottom: none;
}

.tc-activity__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.tc-activity__dot--ok { background: var(--tc-success); }
.tc-activity__dot--warn { background: var(--tc-warning); }
.tc-activity__dot--info { background: var(--tc-blue); }

/* Map */
.tc-panel--map {
  flex: 1;
  min-height: 0;
  height: 100%;
  padding: 0;
  margin: 0;
}

.tc-map-layout {
  height: 100%;
  min-height: 0;
}

.tc-map-stage-wrap.is-tkgm-pick-active .tc-map-stage {
  cursor: crosshair;
}

.tc-map-stage-wrap {
  position: relative;
  min-height: 0;
  height: 100%;
  overflow: hidden;
}

.tc-map-stage-wrap.is-parcel-dock-open .tc-map-stage {
  bottom: var(--tc-dock-height, min(34vh, 320px));
}

.tc-map-main {
  position: relative;
  min-height: 0;
  height: 100%;
  width: 100%;
}

.tc-map-stage {
  position: absolute;
  inset: 0;
}

#tcMapContainer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 320px;
  background: #0a0a14;
  z-index: 1;
}

.tc-map-error {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-content: center;
  gap: 12px;
  padding: 24px;
  text-align: center;
  background: rgba(10, 10, 20, 0.92);
}

.tc-map-error strong {
  color: var(--tc-yellow);
  font-size: 18px;
}

.tc-map-error p {
  margin: 0;
  color: var(--tc-muted);
  font-size: 14px;
}

.tc-map-overlay {
  position: absolute;
  inset: 0;
  z-index: 1000;
  pointer-events: none;
}

.tc-map-basemap,
.tc-map-tools-stack {
  pointer-events: auto;
}

.tc-map-basemap {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 1001;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 8px;
  align-items: stretch;
  max-width: calc(100% - 180px);
}

.tc-shade-control {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  gap: 3px;
  flex: 0 0 auto;
  width: max-content;
  max-width: 168px;
  align-self: stretch;
  min-height: 62px;
  padding: 4px 7px;
  box-sizing: border-box;
  border-radius: 8px;
  background: rgba(12, 12, 22, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.tc-shade-control.is-hidden {
  display: none;
}

.tc-shade-control__label {
  flex: 0 0 auto;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(244, 246, 251, 0.62);
  white-space: nowrap;
  text-align: center;
  line-height: 1;
}

.tc-shade-control__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.tc-shade-control__btn {
  min-width: 26px;
  padding: 3px 5px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(244, 246, 251, 0.92);
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
}

.tc-shade-control__btn:hover {
  background: rgba(255, 201, 0, 0.14);
  border-color: rgba(255, 201, 0, 0.35);
}

.tc-shade-control__time {
  min-width: 0;
  flex: 0 1 auto;
  padding: 0 2px;
  text-align: center;
  font-size: 10px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: rgba(244, 246, 251, 0.9);
  white-space: nowrap;
}

.tc-shade-control__hint {
  flex: 0 0 auto;
  font-size: 8px;
  line-height: 1.2;
  text-align: center;
}

.tc-shade-control__hint[hidden] {
  display: none;
}

.tc-shade-control__hint[data-state="error"] {
  color: #ffb4b4;
}

.tc-shade-control__hint[data-state="loading"],
.tc-shade-control__hint[data-state="rendering"] {
  color: rgba(255, 201, 0, 0.88);
}

.tc-map-coord {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 1001;
  padding: 4px 8px;
  border-radius: 5px;
  text-align: right;
  font-size: 9px;
  font-family: "SF Mono", "Consolas", monospace;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.25;
  color: rgba(244, 246, 251, 0.82);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  background: rgba(12, 12, 22, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  pointer-events: none;
}

.tc-map-coord[data-basemap-notice="error"] {
  color: #ffb4b4;
  max-width: min(320px, 45vw);
  white-space: normal;
  text-align: left;
}

.tc-map-stage .leaflet-control-attribution {
  display: none;
}

.tc-map-tools-stack {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 1002;
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: var(--tc-tools-stack-width, 280px);
  min-width: var(--tc-tools-stack-width, 280px);
  max-width: var(--tc-tools-stack-width, 280px);
  max-height: calc(100% - 80px);
  overflow-y: auto;
  overflow-x: hidden;
  pointer-events: auto;
}

.tc-tools-card {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  pointer-events: auto;
  border-radius: 12px;
  background: rgba(18, 18, 31, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  overflow: hidden;
}

.tc-tools-card__head {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  padding: 7px 10px;
  border: none;
  background: rgba(255, 201, 0, 0.06);
  color: var(--tc-ink);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  line-height: 1.2;
}

.tc-tools-card__head svg:first-child {
  color: var(--tc-yellow);
  flex-shrink: 0;
}

.tc-tools-card__head span {
  flex: 1;
}

.tc-tools-card__chevron {
  color: var(--tc-muted);
  transition: transform 0.2s ease;
}

.tc-tools-card.is-collapsed .tc-tools-card__chevron {
  transform: rotate(-90deg);
}

.tc-tools-card__body {
  overflow-y: auto;
  overflow-x: hidden;
  padding: 5px 8px 6px;
  transition: max-height 0.2s ease, padding 0.2s ease, opacity 0.15s ease;
}

#tcLayersCard:not(.is-collapsed) .tc-tools-card__body {
  max-height: 240px;
}

#tcInfraCard:not(.is-collapsed) .tc-tools-card__body {
  max-height: 420px;
  pointer-events: auto;
}

#tcTkgmCard:not(.is-collapsed) .tc-tools-card__body,
#tcMaksCard:not(.is-collapsed) .tc-tools-card__body {
  max-height: 280px;
  padding: 5px 8px 6px;
  pointer-events: auto;
}

#tcSiteCard:not(.is-collapsed) {
  flex-shrink: 0;
  overflow: visible;
}

#tcSiteCard:not(.is-collapsed) .tc-tools-card__body {
  max-height: none;
  overflow: visible;
  padding: 4px 8px 6px;
  pointer-events: auto;
}

.leaflet-image-layer.tc-viewshed-overlay {
  mix-blend-mode: multiply;
  pointer-events: none !important;
  clip-path: circle(50% at 50% 50%);
  -webkit-clip-path: circle(50% at 50% 50%);
}

.tc-tools-card.is-collapsed .tc-tools-card__body {
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
}

.tc-tools-card .tkgm-parcel-tool {
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  min-width: 0;
}

.tc-tools-card .tkgm-parcel-tool__form {
  gap: 2px;
}

.tc-tools-card .tkgm-parcel-tool__title {
  display: none;
}

.tc-tools-card .tkgm-parcel-tool__row,
.tc-tools-card .tkgm-parcel-tool__form label {
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 4px;
  font-size: 10px;
  line-height: 1.1;
  margin: 0;
  color: #b8c4d4;
}

.tc-tools-card .tkgm-parcel-tool__label {
  color: #b8c4d4;
  font-weight: 600;
}

.tc-tools-card .tkgm-parcel-tool__form select,
.tc-tools-card .tkgm-parcel-tool__form input,
.tc-query-tool__row select {
  min-width: 0;
  width: 100%;
  height: 26px;
  padding: 0 8px;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.3;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  background-color: #252542;
  color: #f0f3fa;
  color-scheme: dark;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.18);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.tc-tools-card .tkgm-parcel-tool__form select:focus,
.tc-tools-card .tkgm-parcel-tool__form input:focus,
.tc-query-tool__row select:focus {
  outline: none;
  border-color: var(--tc-yellow);
  box-shadow: 0 0 0 2px rgba(255, 201, 0, 0.22);
}

.tc-tools-card .tkgm-parcel-tool__form select option,
.tc-query-tool__row select option {
  background-color: #1e1e32;
  color: #f0f3fa;
}

.tc-tools-card .tkgm-parcel-tool__form select:disabled,
.tc-query-tool__row select:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background-color: #1a1a2e;
  color: #9aa3b8;
}

.tc-tools-card .tkgm-parcel-tool__form input::placeholder {
  color: #8a93a8;
}

.tc-tools-card .tkgm-parcel-tool__actions {
  gap: 4px;
  margin-top: 2px;
}

.tc-tools-card .tkgm-parcel-tool__actions button {
  height: 24px;
  padding: 0 6px;
  font-size: 10px;
  border-radius: 5px;
  line-height: 1;
}

.tc-tools-card .tkgm-parcel-tool__actions button[data-role="search"] {
  background: var(--tc-yellow);
  color: var(--tc-navy);
}

.tc-tools-card .tkgm-parcel-tool__actions button[data-role="map-pick"] {
  background: rgba(255, 255, 255, 0.1);
  color: var(--tc-ink);
}

.tc-tools-card .tkgm-parcel-tool__actions button[data-role="map-pick"].is-active {
  background: #17a110;
  color: #fff;
}

.tc-query-tool {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.tc-query-tool__row {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 4px;
  font-size: 10px;
  line-height: 1.1;
  color: #b8c4d4;
  margin: 0;
}

.tc-query-tool__row > span {
  color: #b8c4d4;
  font-weight: 600;
}

.tc-query-tool__row select {
  min-width: 0;
  width: 100%;
}

.tc-query-tool__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-top: 2px;
}

.tc-query-tool__actions button {
  height: 24px;
  padding: 0 6px;
  border: none;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
}

.tc-query-tool__actions button[data-role="search"] {
  background: var(--tc-yellow);
  color: var(--tc-navy);
}

.tc-query-tool__actions button[data-role="search"]:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.tc-query-tool__ghost {
  background: rgba(255, 255, 255, 0.1) !important;
  color: var(--tc-ink) !important;
}

.tc-query-tool__status {
  min-height: 0;
  margin-top: 2px;
  font-size: 10px;
  line-height: 1.25;
  color: var(--tc-muted);
}

.tc-tools-card .tkgm-parcel-tool__status {
  min-height: 0;
  margin-top: 2px;
  font-size: 10px;
  line-height: 1.25;
}

.tc-query-tool__status[data-type="error"] {
  color: #ff6b6b;
}

.tc-query-tool__status[data-type="success"] {
  color: #7dffb3;
}

.tc-query-tool__status[data-type="loading"] {
  color: var(--tc-yellow);
}

.tc-site-analysis {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.tc-site-analysis__row {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  align-items: center;
  gap: 5px;
  margin: 0;
  font-size: 10px;
  line-height: 1.15;
  color: #b8c4d4;
}

.tc-site-analysis__row > span {
  min-width: 0;
  font-weight: 600;
  color: #b8c4d4;
}

.tc-site-analysis__row--profile {
  grid-template-columns: 1fr;
  align-items: stretch;
  gap: 4px;
}

.tc-site-analysis__row--profile > span {
  font-size: 10px;
  font-weight: 600;
  color: rgba(244, 246, 251, 0.9);
}

.tc-site-analysis__profile-select,
.tc-site-analysis__row--profile select {
  width: 100%;
  min-width: 0;
  min-height: 26px;
  padding: 0 8px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background-color: #252542;
  color: #f4f6fb;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.3;
  color-scheme: dark;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.18);
}

.tc-site-analysis__profile-select:focus,
.tc-site-analysis__row--profile select:focus {
  outline: none;
  border-color: var(--tc-yellow);
  box-shadow: 0 0 0 2px rgba(255, 201, 0, 0.22);
}

.tc-site-analysis__profile-select option,
.tc-site-analysis__row--profile select option {
  background-color: #1e1e32;
  color: #f0f3fa;
  padding: 6px 8px;
  font-size: 12px;
}

.tc-site-analysis__profile-select optgroup,
.tc-site-analysis__row--profile select optgroup {
  background-color: #18182a;
  color: #ffc900;
  font-size: 11px;
  font-weight: 700;
  font-style: normal;
  padding: 4px 0;
}

.tc-site-analysis__row select:not(.tc-site-analysis__profile-select),
.tc-site-analysis__row input {
  width: 100%;
  min-width: 0;
  height: 26px;
  padding: 0 8px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background-color: #252542;
  color: #f0f3fa;
  font-size: 11px;
  font-weight: 500;
  color-scheme: dark;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.18);
}

.tc-site-analysis__row input:focus,
.tc-site-analysis__profile-select:focus,
.tc-site-analysis__row--profile select:focus {
  outline: none;
  border-color: var(--tc-yellow);
  box-shadow: 0 0 0 2px rgba(255, 201, 0, 0.22);
}

.tc-site-analysis__beam-rows {
  display: grid;
  gap: 5px;
  padding-top: 2px;
}

.tc-site-analysis__beam-row {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.tc-site-analysis__beam-fields {
  display: flex;
  align-items: center;
  flex: 1;
  gap: 5px;
  min-width: 0;
}

.tc-site-analysis__beam-fields--3 .tc-site-analysis__mini-field {
  flex: 1 1 0;
}

.tc-site-analysis__beam-fields--2 .tc-site-analysis__mini-field {
  flex: 1 1 0;
}

.tc-site-analysis__mini-field {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 3px;
  min-width: 0;
  margin: 0;
}

.tc-site-analysis__mini-field > span {
  flex-shrink: 0;
  font-size: 9px;
  font-weight: 600;
  line-height: 1.2;
  color: #9aa8bc;
  white-space: nowrap;
}

.tc-site-analysis__mini-field input {
  flex: 1 1 0;
  width: 0;
  min-width: 0;
  height: 26px;
  padding: 0 4px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background-color: #252542;
  color: #f0f3fa;
  font-size: 10px;
  font-weight: 500;
  text-align: center;
  color-scheme: dark;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.18);
}

.tc-site-analysis__mini-field input:focus {
  outline: none;
  border-color: var(--tc-yellow);
  box-shadow: 0 0 0 2px rgba(255, 201, 0, 0.22);
}

.tc-site-analysis__beam-title {
  flex: 0 0 auto;
  margin: 0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: rgba(255, 201, 0, 0.85);
  line-height: 1.2;
  white-space: nowrap;
}

.tc-site-analysis__footer {
  display: grid;
  gap: 4px;
  padding-top: 2px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.tc-site-analysis__bands {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 10px;
  color: rgba(244, 246, 251, 0.82);
}

.tc-site-analysis__status {
  margin: 0;
  min-height: 0;
}

.tc-site-analysis__bands label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.tc-site-analysis__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-top: 2px;
}

.tc-site-analysis__pick,
.tc-site-analysis__ghost {
  flex: none;
  width: 100%;
  height: 26px;
  padding: 0 6px;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
}

.tc-site-analysis__pick {
  border: 1px solid rgba(255, 201, 0, 0.35);
  background: rgba(255, 201, 0, 0.12);
  color: #ffe082;
}

.tc-site-analysis__pick.is-active {
  border-color: #ffc900;
  background: rgba(255, 201, 0, 0.24);
  box-shadow: 0 0 0 1px rgba(255, 201, 0, 0.2);
}

.tc-site-analysis__ghost {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(244, 246, 251, 0.72);
}

.tc-site-analysis__detail-open {
  width: 100%;
  margin-top: 0;
  padding: 5px 8px;
  border: 1px dashed rgba(123, 47, 247, 0.45);
  border-radius: 6px;
  background: rgba(123, 47, 247, 0.08);
  color: #d4b8ff;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.tc-site-analysis__detail-open:hover {
  background: rgba(123, 47, 247, 0.14);
  border-color: rgba(123, 47, 247, 0.65);
}

.tc-site-screen {
  z-index: 1003;
}

.tc-site-screen .tc-site-detail {
  left: 12px;
  right: auto;
  top: auto;
  bottom: 12px;
  width: min(340px, calc(100% - 180px));
  max-width: 360px;
  min-width: 280px;
  max-height: min(42vh, 300px);
  border-color: rgba(123, 47, 247, 0.38);
  transform: translateY(6px) scale(0.98);
  transform-origin: bottom left;
}

.tc-site-screen.is-visible .tc-site-detail {
  transform: translateY(0) scale(1);
}

.is-site-detail-open .tc-map-basemap {
  transition: bottom 0.24s ease;
}

.tc-site-screen .tc-parcel-info__head {
  background: rgba(123, 47, 247, 0.1);
}

.tc-site-screen .tc-parcel-info__title {
  color: #d4b8ff;
}

.tc-site-detail__section {
  padding: 4px 0 2px;
}

.tc-site-detail__section + .tc-site-detail__section {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: 4px;
  padding-top: 6px;
}

.tc-site-detail__section-title {
  margin: 0 0 4px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(212, 184, 255, 0.85);
}

.tc-site-detail__band {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.tc-site-detail__band i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.tc-site-detail__band em {
  color: var(--tc-muted);
  font-style: normal;
}

.tc-site-detail__gradient-note {
  display: block;
  margin-top: 4px;
  font-size: 10px;
  color: var(--tc-muted);
  font-style: normal;
}

.tc-site-detail__loading,
.tc-site-detail__empty,
.tc-site-detail__footnote {
  margin: 8px 0 0;
  font-size: 11px;
  line-height: 1.4;
  color: var(--tc-muted);
}

.tc-site-detail__loading {
  color: #d4b8ff;
}

.tc-site-detail .tc-site-analysis__legend-gradient {
  display: flex;
  width: 100%;
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
}

.tc-site-detail .tc-site-analysis__legend-gradient i {
  flex: 1;
  min-width: 0;
}

.tc-site-analysis__location {
  margin: 0;
  font-size: 9px;
  line-height: 1.35;
  color: rgba(255, 201, 0, 0.88);
  word-break: break-word;
}

.tc-site-analysis__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
}

.tc-site-analysis__legend-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 9px;
  color: rgba(244, 246, 251, 0.78);
}

.tc-site-analysis__legend-item i {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  opacity: 0.85;
}

.tc-site-analysis__legend-adj {
  font-style: normal;
  color: rgba(255, 201, 0, 0.9);
  font-weight: 600;
}

.tc-site-analysis__report,
.tc-site-analysis__report-loading,
.tc-site-analysis__report-empty {
  margin: 0;
  padding: 6px 8px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 9px;
  line-height: 1.4;
  color: rgba(244, 246, 251, 0.78);
}

.tc-site-analysis__report-loading {
  color: rgba(255, 201, 0, 0.72);
}

.tc-site-analysis__report strong {
  display: block;
  font-size: 10px;
  color: #dce4f0;
  margin-bottom: 4px;
}

.tc-site-analysis__report span {
  font-weight: 400;
  color: rgba(244, 246, 251, 0.45);
}

.tc-site-analysis__report ul {
  margin: 0;
  padding-left: 14px;
}

.tc-site-analysis__report li {
  margin: 2px 0;
}

.tc-site-analysis__report--buildings {
  margin-top: 6px;
}

.leaflet-image-layer.tc-buffer-heatmap {
  pointer-events: none;
  clip-path: circle(50% at 50% 50%);
  -webkit-clip-path: circle(50% at 50% 50%);
}

path.tc-building-reach {
  transition: fill-opacity 0.15s ease;
  pointer-events: visiblePainted;
}

path.tc-building-reach--impacted {
  filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.45));
}

.tc-building-reach-tip {
  font-size: 11px;
  line-height: 1.45;
}

.tc-building-reach__flag {
  color: #ffab40;
  font-weight: 600;
}

.tc-site-analysis__legend-item--gradient {
  flex: 1 1 100%;
  align-items: center;
}

.tc-site-analysis__legend-gradient {
  display: inline-flex;
  flex: 1 1 auto;
  min-width: 72px;
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.tc-site-analysis__legend-gradient i {
  display: block;
  flex: 1 1 0;
  height: 100%;
  width: auto;
  border-radius: 0;
  opacity: 1;
}

.tc-site-analysis__legend-item--gradient em {
  font-style: normal;
  font-size: 8px;
  color: rgba(244, 246, 251, 0.62);
  white-space: nowrap;
}

.tc-site-analysis__candidates {
  display: grid;
  gap: 5px;
  padding-top: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.tc-site-analysis__candidates-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-size: 10px;
  font-weight: 700;
  color: rgba(255, 201, 0, 0.85);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tc-site-analysis__candidates-clear {
  border: 0;
  background: transparent;
  color: rgba(244, 246, 251, 0.55);
  font-size: 9px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}

.tc-site-analysis__candidates-clear:hover {
  color: #ff8a80;
}

.tc-site-analysis__candidate-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
  max-height: 108px;
  overflow: auto;
}

.tc-site-analysis__candidate-empty {
  margin: 0;
  font-size: 9px;
  color: rgba(244, 246, 251, 0.5);
  font-style: italic;
}

.tc-site-analysis__candidate-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 20px;
  gap: 4px;
  align-items: center;
}

.tc-site-analysis__candidate-focus {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  padding: 4px 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.tc-site-analysis__candidate-focus:hover {
  border-color: rgba(255, 201, 0, 0.35);
  background: rgba(255, 201, 0, 0.06);
}

.tc-site-analysis__candidate-badge {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
  color: #101018;
}

.tc-site-analysis__candidate-meta {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.tc-site-analysis__candidate-meta strong,
.tc-site-analysis__candidate-meta em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-style: normal;
}

.tc-site-analysis__candidate-meta strong {
  font-size: 10px;
  color: #f0f3fa;
}

.tc-site-analysis__candidate-meta em {
  font-size: 9px;
  color: rgba(244, 246, 251, 0.62);
}

.tc-site-analysis__candidate-remove {
  width: 20px;
  height: 20px;
  border: 0;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(244, 246, 251, 0.65);
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
}

.tc-site-analysis__candidate-remove:hover {
  background: rgba(255, 82, 82, 0.18);
  color: #ff8a80;
}

.tc-site-analysis__candidate-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
}

.tc-site-analysis__add-candidate,
.tc-site-analysis__compare {
  min-height: 26px;
  padding: 4px 6px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
}

.tc-site-analysis__add-candidate {
  border: 1px solid rgba(79, 195, 247, 0.45);
  background: rgba(79, 195, 247, 0.1);
  color: #9fe8ff;
}

.tc-site-analysis__add-candidate:hover:not(:disabled) {
  background: rgba(79, 195, 247, 0.18);
}

.tc-site-analysis__compare {
  border: 1px solid rgba(102, 187, 106, 0.45);
  background: rgba(102, 187, 106, 0.1);
  color: #b9f6ca;
}

.tc-site-analysis__compare:hover:not(:disabled) {
  background: rgba(102, 187, 106, 0.18);
}

.tc-site-analysis__add-candidate:disabled,
.tc-site-analysis__compare:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.tc-site-analysis__scenarios {
  display: grid;
  gap: 5px;
  padding-top: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.tc-site-analysis__scenarios-head {
  font-size: 10px;
  font-weight: 700;
  color: rgba(255, 201, 0, 0.85);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tc-site-analysis__scenario-save {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px;
}

.tc-site-analysis__scenario-name {
  width: 100%;
  min-width: 0;
  height: 26px;
  padding: 0 6px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: #252542;
  color: #f0f3fa;
  font-size: 10px;
}

.tc-site-analysis__scenario-name:focus {
  outline: none;
  border-color: var(--tc-yellow);
}

.tc-site-analysis__save-scenario {
  min-height: 26px;
  padding: 0 8px;
  border-radius: 6px;
  border: 1px solid rgba(123, 47, 247, 0.45);
  background: rgba(123, 47, 247, 0.12);
  color: #d4b8ff;
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
}

.tc-site-analysis__save-scenario:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.tc-site-analysis__scenario-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
  max-height: 88px;
  overflow: auto;
}

.tc-site-analysis__scenario-empty {
  margin: 0;
  font-size: 9px;
  color: rgba(244, 246, 251, 0.5);
  font-style: italic;
}

.tc-site-analysis__scenario-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 20px;
  gap: 4px;
  align-items: center;
}

.tc-site-analysis__scenario-load {
  display: grid;
  gap: 1px;
  min-width: 0;
  padding: 4px 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.tc-site-analysis__scenario-load strong,
.tc-site-analysis__scenario-load em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-style: normal;
}

.tc-site-analysis__scenario-load strong {
  font-size: 10px;
  color: #f0f3fa;
}

.tc-site-analysis__scenario-load em {
  font-size: 9px;
  color: rgba(244, 246, 251, 0.6);
}

.tc-site-analysis__scenario-delete {
  width: 20px;
  height: 20px;
  border: 0;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(244, 246, 251, 0.65);
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
}

.tc-site-analysis__export-row,
.tc-site-compare__export {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  margin-top: 6px;
}

.tc-site-analysis__export-pdf,
.tc-site-analysis__export-csv {
  min-height: 26px;
  padding: 4px 6px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
}

.tc-site-analysis__export-pdf {
  border: 1px solid rgba(255, 201, 0, 0.45);
  background: rgba(255, 201, 0, 0.1);
  color: #ffe082;
}

.tc-site-analysis__export-csv {
  border: 1px solid rgba(79, 195, 247, 0.45);
  background: rgba(79, 195, 247, 0.1);
  color: #9fe8ff;
}

.tc-site-analysis__export-pdf:disabled,
.tc-site-analysis__export-csv:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.tc-candidate-marker-wrap {
  background: transparent;
  border: 0;
}

.tc-candidate-marker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--cand-color, #4fc3f7);
  color: #101018;
  font-size: 13px;
  font-weight: 800;
  border: 2px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

.tc-site-compare-screen {
  z-index: 1004;
}

.tc-site-compare-screen .tc-site-compare {
  left: 12px;
  right: 12px;
  top: auto;
  bottom: 12px;
  width: auto;
  max-width: none;
  min-width: 0;
  max-height: min(46vh, 340px);
  border-color: rgba(102, 187, 106, 0.42);
  transform: translateY(8px) scale(0.98);
  transform-origin: bottom center;
}

.tc-site-compare-screen.is-visible .tc-site-compare {
  transform: translateY(0) scale(1);
}

.tc-site-compare__intro {
  margin: 0 0 8px;
  font-size: 11px;
  color: rgba(244, 246, 251, 0.86);
}

.tc-site-compare__intro strong {
  color: #b9f6ca;
}

.tc-site-compare__table-wrap {
  overflow: auto;
  max-height: min(30vh, 220px);
}

.tc-site-compare__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 10px;
}

.tc-site-compare__table th,
.tc-site-compare__table td {
  padding: 5px 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  vertical-align: middle;
}

.tc-site-compare__table tbody th {
  text-align: left;
  color: rgba(244, 246, 251, 0.72);
  font-weight: 600;
  white-space: nowrap;
}

.tc-site-compare__table thead th {
  color: #f0f3fa;
  font-weight: 700;
}

.tc-site-compare__head-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  color: #101018;
  font-size: 11px;
  font-weight: 800;
}

.tc-site-compare__table td.is-best {
  background: rgba(102, 187, 106, 0.16);
  color: #c8f7d8;
  font-weight: 700;
}

.tc-site-compare__table th.is-overall-best,
.tc-site-compare__table td.is-overall-best {
  box-shadow: inset 0 0 0 1px rgba(102, 187, 106, 0.28);
}

.tc-site-compare__footnote,
.tc-site-compare__empty {
  margin: 8px 0 0;
  font-size: 9px;
  color: rgba(244, 246, 251, 0.55);
  line-height: 1.35;
}

.is-site-compare-open .tc-map-basemap {
  filter: brightness(0.92);
}

.tc-map-stage-wrap.is-site-pick-active .tc-map-stage {
  cursor: crosshair;
}

.tkgm-parcel-tool__status[data-type="error"],
.tc-tools-card .tkgm-parcel-tool__status[data-type="error"] {
  color: #ff6b6b;
}

.tkgm-parcel-tool__status[data-type="success"],
.tc-tools-card .tkgm-parcel-tool__status[data-type="success"] {
  color: #7dffb3;
}

.tc-infra-add {
  display: grid;
  gap: 6px;
  pointer-events: auto;
}

.tc-infra-add__geom-btn,
.tc-infra-add__tool-btn,
.tc-infra-add__coord-add,
.tc-infra-add__coord-remove,
.tc-infra-add__bulk-apply,
.tc-infra-add__submit {
  pointer-events: auto;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.tc-infra-add__toolbar {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 3px;
  padding: 3px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow-x: auto;
  scrollbar-width: none;
}

.tc-infra-add__toolbar::-webkit-scrollbar {
  display: none;
}

.tc-infra-add__toolbar-sep {
  flex: 0 0 1px;
  align-self: stretch;
  margin: 4px 1px;
  background: rgba(255, 255, 255, 0.12);
}

.tc-infra-add__geom-btn,
.tc-infra-add__tool-btn {
  flex: 1 1 0;
  min-width: 0;
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 30px;
  padding: 4px 5px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
  color: rgba(180, 190, 210, 0.92);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.tc-infra-add__geom-btn svg,
.tc-infra-add__tool-btn svg {
  flex-shrink: 0;
  opacity: 0.88;
}

.tc-infra-add__geom-btn span,
.tc-infra-add__tool-btn span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.tc-infra-add__geom-btn:hover,
.tc-infra-add__tool-btn:hover {
  border-color: rgba(255, 201, 0, 0.35);
  color: var(--tc-ink);
  background: rgba(255, 201, 0, 0.06);
}

.tc-infra-add__geom-btn.is-active {
  border-color: var(--tc-yellow);
  color: var(--tc-yellow);
  background: rgba(255, 201, 0, 0.12);
  box-shadow: 0 0 0 1px rgba(255, 201, 0, 0.2);
}

.tc-infra-add__geom-btn.is-active svg {
  opacity: 1;
}

.tc-infra-add__tool-btn.is-active {
  border-color: rgba(255, 201, 0, 0.55);
  color: var(--tc-yellow);
  background: rgba(255, 201, 0, 0.1);
}

.tc-infra-add__row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 4px;
  align-items: center;
  margin: 0;
  font-size: 10px;
  line-height: 1.1;
  color: #b8c4d4;
}

.tc-infra-add__row span {
  font-weight: 600;
}

.tc-infra-add__row select,
.tc-infra-add__row input,
.tc-infra-add__coord-row input,
.tc-infra-add__bulk textarea {
  width: 100%;
  min-width: 0;
  padding: 5px 6px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  background: #12121f;
  color: #f4f6fb;
  font-size: 11px;
  color-scheme: dark;
}

.tc-infra-add__row select:focus,
.tc-infra-add__row input:focus,
.tc-infra-add__coord-row input:focus,
.tc-infra-add__bulk textarea:focus {
  outline: none;
  border-color: rgba(255, 201, 0, 0.55);
}

.tc-infra-add__coords {
  display: grid;
  gap: 4px;
  padding: 6px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.tc-infra-add__coords-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-size: 10px;
  font-weight: 700;
  color: #b8c4d4;
}

.tc-infra-add__coord-add {
  width: 22px;
  height: 22px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--tc-yellow);
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
}

.tc-infra-add__coord-add:hover {
  border-color: rgba(255, 201, 0, 0.45);
  background: rgba(255, 201, 0, 0.08);
}

.tc-infra-add__coord-rows {
  display: grid;
  gap: 3px;
  max-height: 88px;
  overflow-y: auto;
}

.tc-infra-add__coord-row {
  display: grid;
  grid-template-columns: 18px 1fr 1fr 22px;
  gap: 3px;
  align-items: center;
}

.tc-infra-add__coord-index {
  font-size: 9px;
  font-weight: 700;
  color: rgba(255, 201, 0, 0.75);
  text-align: center;
}

.tc-infra-add__coord-row input {
  padding: 4px 5px;
  font-size: 10px;
}

.tc-infra-add__coord-remove {
  width: 22px;
  height: 22px;
  padding: 0;
  border: none;
  border-radius: 5px;
  background: transparent;
  color: rgba(255, 143, 143, 0.85);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}

.tc-infra-add__coord-remove:hover {
  background: rgba(239, 68, 68, 0.12);
  color: #ff8f8f;
}

.tc-infra-add__bulk {
  display: grid;
  gap: 3px;
  margin: 0;
  font-size: 9px;
  font-weight: 600;
  color: #9aa3b8;
}

.tc-infra-add__bulk textarea {
  resize: vertical;
  min-height: 52px;
  font-family: "SF Mono", "Consolas", monospace;
  font-size: 10px;
  line-height: 1.35;
}

.tc-infra-add__bulk-apply {
  padding: 5px 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  color: #d7deea;
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
}

.tc-infra-add__bulk-apply:hover {
  border-color: rgba(0, 180, 216, 0.45);
  color: #9ddcff;
}

.tc-infra-add__submit {
  width: 100%;
  margin-top: 2px;
  padding: 7px 10px;
  border-radius: 8px;
  border: 1px solid var(--tc-yellow);
  background: var(--tc-yellow);
  color: var(--tc-navy);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.tc-infra-add__submit:hover {
  background: var(--tc-yellow-dark);
  border-color: var(--tc-yellow-dark);
}

.tc-infra-add__status {
  margin: 2px 0 0;
  font-size: 10px;
  line-height: 1.3;
  color: #b8c4d4;
}

.tc-infra-add__status[data-type="error"] {
  color: #ff8f8f;
}

.tc-infra-add__status[data-type="success"] {
  color: #7dffb3;
}

.tc-infra-add__status[data-type="info"] {
  color: #9ddcff;
}

.tc-basemap-switch {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 5px;
  max-width: 360px;
  padding: 5px;
  border-radius: 8px;
  background: rgba(12, 12, 22, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.tc-basemap-switch__btn {
  position: relative;
  display: block;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.35);
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.tc-basemap-switch__btn--shade {
  border-color: rgba(74, 111, 165, 0.55);
}

.tc-basemap-switch__btn--shade.is-active {
  border-color: #7aa0d8;
  box-shadow: 0 0 0 1px rgba(122, 160, 216, 0.45), 0 2px 10px rgba(1, 17, 47, 0.45);
}

.tc-basemap-switch__shade-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 201, 0, 0.12) 0%, rgba(1, 17, 47, 0.78) 68%);
  pointer-events: none;
}

.tc-basemap-switch__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 3px;
  z-index: 1;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
  color: rgba(244, 246, 251, 0.95);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.85);
  pointer-events: none;
}

.tc-map-stage.is-shademap-basemap {
  box-shadow: inset 0 0 0 2px rgba(74, 111, 165, 0.45);
}

.tc-basemap-switch__btn:hover {
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-1px);
}

.tc-basemap-switch__btn.is-active {
  border-color: var(--tc-yellow);
  box-shadow: 0 0 0 1px rgba(255, 201, 0, 0.3), 0 2px 8px rgba(0, 0, 0, 0.3);
}

.tc-basemap-switch__thumb {
  display: block;
  width: 100%;
  height: 100%;
  background-color: #1a2030;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.tc-layer-row__info > span {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.tc-layer-row__hint {
  display: block;
  font-size: 9px;
  font-weight: 500;
  line-height: 1.25;
  color: rgba(244, 246, 251, 0.45);
}

.tc-layers-group + .tc-layers-group {
  margin-top: 4px;
  padding-top: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.tc-layers-group__title {
  margin-bottom: 3px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tc-muted);
  line-height: 1.2;
}

.tc-layers-group__list {
  display: grid;
  gap: 1px;
}

.tc-layer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 3px 6px;
  min-height: 26px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.tc-layer-row:hover {
  background: rgba(255, 255, 255, 0.05);
}

.tc-layer-row.is-disabled {
  opacity: 0.45;
}

.tc-layer-row.is-disabled .tc-layer-switch input {
  pointer-events: none;
  cursor: not-allowed;
}

.tc-layer-row__info {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  line-height: 1.2;
  min-width: 0;
}

.tc-layer-row__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 6px currentColor;
}

.tc-layer-switch {
  position: relative;
  flex-shrink: 0;
  width: 36px;
  height: 20px;
}

.tc-layer-switch input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

.tc-layer-switch__track {
  position: relative;
  display: block;
  width: 36px;
  height: 20px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.15);
  transition: background 0.2s ease;
}

.tc-layer-switch__track::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s ease;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.tc-layer-switch input:checked + .tc-layer-switch__track {
  background: var(--tc-yellow);
}

.tc-layer-switch input:checked + .tc-layer-switch__track::after {
  transform: translateX(16px);
}

.tc-province-label {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  margin: 0 !important;
  width: auto !important;
  height: auto !important;
}

.tc-province-label__text {
  display: block;
  transform: translate(-50%, -50%);
  color: #4dd4f5;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.1;
  pointer-events: none;
  text-align: center;
  text-shadow:
    0 0 4px rgba(0, 0, 0, 0.95),
    0 1px 2px rgba(0, 0, 0, 0.85),
    0 0 1px rgba(0, 0, 0, 1);
  white-space: nowrap;
}

.tc-district-label {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  margin: 0 !important;
  width: auto !important;
  height: auto !important;
}

.tc-district-label__text {
  display: block;
  transform: translate(-50%, -50%);
  color: #ffe566;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.1;
  pointer-events: none;
  text-align: center;
  text-shadow:
    0 0 4px rgba(0, 0, 0, 0.95),
    0 1px 2px rgba(0, 0, 0, 0.85),
    0 0 1px rgba(0, 0, 0, 1);
  white-space: nowrap;
}

.tc-parcel-label {
  background: rgba(18, 18, 31, 0.88) !important;
  border: 1px solid rgba(255, 201, 0, 0.55) !important;
  border-radius: 6px !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35) !important;
  color: #fff !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em;
  padding: 4px 8px !important;
  pointer-events: none !important;
  white-space: nowrap;
}

.tc-parcel-label::before {
  display: none !important;
}

.tc-parcel-screen {
  position: absolute;
  inset: 0;
  z-index: 1200;
  pointer-events: none;
}

.tc-parcel-screen[hidden] {
  display: none !important;
}

.tc-parcel-screen .tc-parcel-info {
  position: absolute;
  z-index: 1;
  width: min(400px, calc(100vw - 48px));
  max-width: 420px;
  min-width: 280px;
  height: auto;
  max-height: calc(100% - 24px);
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  background: rgba(22, 22, 38, 0.98);
  border: 1px solid rgba(255, 201, 0, 0.3);
  box-shadow: 0 20px 56px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  overflow: hidden;
  pointer-events: auto;
  opacity: 0;
  transform: translateX(-50%) translateY(8px) scale(0.98);
  transition: opacity 0.24s ease, transform 0.24s ease;
}

.tc-parcel-screen.is-visible .tc-parcel-info {
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1);
}

.tc-site-screen .tc-parcel-info.tc-site-detail {
  left: 12px;
  right: auto;
  top: auto;
  bottom: 12px;
  width: min(340px, calc(100% - 180px));
  max-width: 360px;
  min-width: 280px;
  max-height: min(42vh, 300px);
  transform: translateY(6px) scale(0.98);
  transform-origin: bottom left;
}

.tc-site-screen.is-visible .tc-parcel-info.tc-site-detail {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.tc-parcel-screen .tc-parcel-info__body {
  flex: 0 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
}

.tc-site-screen .tc-parcel-info__body {
  flex: 1 1 auto;
  max-height: calc(min(42vh, 300px) - 44px);
}

.tc-parcel-info__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-shrink: 0;
  padding: 8px 12px;
  background: rgba(255, 201, 0, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.tc-parcel-info__titles {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.tc-parcel-info__title {
  color: var(--tc-yellow);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.15;
}

.tc-parcel-info__subtitle {
  color: var(--tc-muted);
  font-size: 10px;
  line-height: 1.25;
}

.tc-parcel-info__close {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: none;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--tc-ink);
  cursor: pointer;
  transition: background 0.15s ease;
}

.tc-parcel-info__close:hover {
  background: rgba(255, 255, 255, 0.14);
}

.tc-parcel-info__body {
  padding: 6px 10px 8px;
}

.tc-parcel-info__list {
  margin: 0;
  display: grid;
  gap: 0;
}

.tc-parcel-info__row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 6px;
  align-items: center;
  min-height: 22px;
  padding: 3px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.tc-parcel-info__row:last-child {
  border-bottom: none;
}

.tc-parcel-info__row dt {
  margin: 0;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--tc-muted);
  line-height: 1.2;
}

.tc-parcel-info__row dd {
  margin: 0;
  font-size: 11px;
  line-height: 1.25;
  color: var(--tc-ink);
  word-break: break-word;
}

.tc-parcel-info__empty {
  margin: 0;
  font-size: 11px;
  color: var(--tc-muted);
}

.tc-bts-marker {
  background: none !important;
  border: none !important;
}

.tc-bts-marker__dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 8px rgba(255, 201, 0, 0.6);
}

/* Table */
.tc-panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.tc-panel-heading h2 {
  margin: 0;
  font-size: 18px;
}

.tc-table-wrap {
  overflow: auto;
  border-radius: 12px;
  border: 1px solid var(--tc-line);
}

.tc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.tc-table th,
.tc-table td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--tc-line);
}

.tc-table th {
  background: var(--tc-panel);
  color: var(--tc-muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tc-table tr:hover td {
  background: rgba(255, 201, 0, 0.04);
}

/* Leaflet overrides */
.leaflet-container {
  width: 100%;
  height: 100%;
  background: #0a0a14;
  font-family: inherit;
  z-index: 1;
}

.leaflet-control-zoom,
.leaflet-control-scale,
.leaflet-control-attribution {
  display: none !important;
}

.leaflet-popup-content-wrapper {
  background: var(--tc-panel);
  color: var(--tc-ink);
  border-radius: 8px;
}

.leaflet-popup-tip {
  background: var(--tc-panel);
}

/* Responsive */
@media (max-width: 900px) {
  .auth-page {
    grid-template-columns: 1fr;
  }

  .auth-hero {
    display: none;
  }

  .auth-panel {
    border-left: none;
    min-height: 100vh;
    min-height: 100dvh;
  }

  .tc-shell {
    grid-template-columns: 1fr;
  }

  .tc-sidebar {
    display: none;
  }

  .tc-map-basemap {
    left: 10px;
    bottom: 10px;
    max-width: calc(100% - 120px);
    gap: 6px;
  }

  .tc-shade-control {
    min-height: 54px;
    max-width: 152px;
    padding: 3px 6px;
  }

  .tc-map-coord {
    right: 10px;
    bottom: 10px;
    max-width: calc(100% - 160px);
    padding: 3px 6px;
    font-size: 8px;
  }

  .tc-basemap-switch {
    gap: 4px;
    padding: 4px;
  }

  .tc-basemap-switch__btn {
    width: 46px;
    height: 46px;
  }

  .tc-map-tools-stack {
    top: 10px;
    left: auto;
    right: 10px;
    width: min(var(--tc-tools-stack-width, 280px), calc(100vw - 20px));
    min-width: 0;
    max-width: min(var(--tc-tools-stack-width, 280px), calc(100vw - 20px));
    max-height: calc(100% - 120px);
  }

  .tc-parcel-screen .tc-parcel-info {
    width: min(400px, calc(100% - 24px));
    min-width: 0;
    max-height: min(52vh, calc(100% - 24px));
  }

  .tc-parcel-info__row {
    grid-template-columns: 80px minmax(0, 1fr);
    min-height: 20px;
  }
}

/* Tapu / Kadastro alt dock */
.tc-parcel-dock-screen {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1250;
  pointer-events: none;
  height: var(--tc-dock-height, min(34vh, 320px));
  min-height: 160px;
}

.tc-parcel-dock-screen[hidden] {
  display: none !important;
}

.tc-parcel-dock {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  pointer-events: auto;
  background: rgba(18, 18, 31, 0.98);
  border-top: 1px solid rgba(255, 201, 0, 0.35);
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.tc-parcel-dock__resize {
  position: absolute;
  top: -4px;
  left: 0;
  right: 0;
  height: 10px;
  cursor: ns-resize;
  z-index: 2;
  touch-action: none;
}

.tc-parcel-dock__resize::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 44px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  transition: background 0.15s ease;
}

.tc-parcel-dock__resize:hover::before,
.tc-parcel-dock__resize:focus-visible::before {
  background: rgba(255, 201, 0, 0.6);
}

.tc-parcel-dock-screen.is-visible .tc-parcel-dock {
  opacity: 1;
  transform: translateY(0);
}

.tc-parcel-dock__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}

.tc-parcel-dock__titles {
  min-width: 0;
  flex: 1;
}

.tc-parcel-dock__title {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tc-parcel-dock__subtitle {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.55);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tc-parcel-dock__actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.tc-parcel-dock__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
}

.tc-parcel-dock__close:hover {
  background: rgba(255, 201, 0, 0.15);
  color: #ffc900;
}

.tc-parcel-dock__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 16px;
  height: 16px;
  margin-left: 6px;
  padding: 0 5px;
  border-radius: 999px;
  background: rgba(255, 201, 0, 0.2);
  color: #ffc900;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}

.tc-parcel-dock__badge[hidden] {
  display: none !important;
}

.tc-parcel-dock__body {
  flex: 1;
  min-height: 0;
  display: flex;
  gap: 1px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.tc-parcel-dock__col {
  flex: 1 1 50%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: rgba(18, 18, 31, 0.98);
}

.tc-parcel-dock__col--kadastro {
  flex: 0 0 20%;
}

.tc-parcel-dock__col--tapu {
  flex: 1 1 80%;
}

.tc-parcel-dock__col-title {
  margin: 0;
  padding: 8px 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #ffc900;
  background: rgba(255, 201, 0, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.tc-parcel-dock__col-body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 8px 12px 12px;
}

.tc-parcel-dock__table-wrap {
  overflow: auto;
  max-height: 100%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
}

.tc-parcel-dock__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.tc-parcel-dock__table--attrs th {
  width: 38%;
  text-align: left;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 7px 10px;
  vertical-align: top;
}

.tc-parcel-dock__table--attrs td {
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 7px 10px;
  vertical-align: top;
}

.tc-parcel-dock__table--owners thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  text-align: left;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
  background: rgba(22, 22, 38, 0.98);
  border-bottom: 1px solid rgba(255, 201, 0, 0.25);
  padding: 8px 10px;
  white-space: nowrap;
}

.tc-parcel-dock__table--owners td {
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 7px 10px;
  white-space: nowrap;
}

.tc-parcel-dock__rownum {
  color: rgba(255, 255, 255, 0.4) !important;
  font-variant-numeric: tabular-nums;
  text-align: right;
  width: 1%;
}

.tc-parcel-dock__table--owners tbody tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.02);
}

.tc-parcel-dock__row--demo td {
  color: rgba(255, 201, 0, 0.85);
  font-style: italic;
}

.tc-parcel-dock__notice {
  margin-bottom: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 11px;
  line-height: 1.45;
}

.tc-parcel-dock__notice--warn {
  background: rgba(255, 145, 0, 0.12);
  border: 1px solid rgba(255, 145, 0, 0.35);
  color: #ffcc80;
}

.tc-parcel-dock__notice--info {
  background: rgba(0, 180, 216, 0.1);
  border: 1px solid rgba(0, 180, 216, 0.3);
  color: #80deea;
}

.tc-parcel-dock__empty {
  margin: 0;
  padding: 16px 8px;
  text-align: center;
  color: rgba(255, 255, 255, 0.45);
  font-size: 12px;
}

@media (max-width: 720px) {
  .tc-parcel-dock-screen {
    height: var(--tc-dock-height, min(42vh, 280px));
    min-height: 150px;
  }

  .tc-map-stage-wrap.is-parcel-dock-open .tc-map-stage {
    bottom: var(--tc-dock-height, min(42vh, 280px));
  }

  .tc-parcel-dock__table--owners {
    font-size: 11px;
  }
}

@media (max-width: 560px) {
  .tc-parcel-dock__body {
    flex-direction: column;
    overflow: auto;
  }

  .tc-parcel-dock__col {
    flex: 1 1 auto;
    min-height: 120px;
  }
}

/* En İyi Nokta Tarama */
.tc-best {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tc-best__hint {
  margin: 0;
  font-size: 11px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.55);
}

.tc-best__field {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
}

.tc-best__field input,
.tc-best__field select {
  padding: 6px 8px;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-size: 12px;
}

.tc-best__actions {
  display: flex;
  gap: 6px;
  margin-top: 2px;
}

.tc-best__actions .tc-btn {
  flex: 1;
}

.tc-best__status {
  font-size: 11px;
  min-height: 14px;
  color: rgba(255, 255, 255, 0.6);
}

.tc-best__status[data-type="success"] {
  color: #69f0ae;
}

.tc-best__status[data-type="error"] {
  color: #ff6b6b;
}

.tc-best__results {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.tc-best__item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.tc-best__rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 201, 0, 0.18);
  color: #ffc900;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

.tc-best__meta {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.tc-best__meta b {
  font-size: 12px;
  color: #fff;
}

.tc-best__meta small {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.5);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tc-best-marker {
  display: flex;
  align-items: center;
  justify-content: center;
}

.tc-best-marker span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #1565c0;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.tc-best-marker--best span {
  background: #00c853;
  width: 30px;
  height: 30px;
  font-size: 15px;
}

/* PDF okuma ekranı (modal) */
.tc-pdf-viewer {
  position: fixed;
  inset: 0;
  z-index: 4000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.tc-pdf-viewer[hidden] {
  display: none !important;
}

.tc-pdf-viewer.is-visible {
  opacity: 1;
}

.tc-pdf-viewer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 8, 16, 0.72);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.tc-pdf-viewer__panel {
  position: relative;
  z-index: 1;
  width: min(1180px, 96vw);
  height: min(92vh, 900px);
  display: flex;
  flex-direction: column;
  background: #2a2a3a;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  transform: translateY(10px) scale(0.99);
  transition: transform 0.2s ease;
}

.tc-pdf-viewer.is-visible .tc-pdf-viewer__panel {
  transform: translateY(0) scale(1);
}

.tc-pdf-viewer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  background: rgba(18, 18, 31, 0.98);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.tc-pdf-viewer__title {
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tc-pdf-viewer__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.tc-pdf-viewer__actions .tc-btn {
  text-decoration: none;
}

.tc-pdf-viewer__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
}

.tc-pdf-viewer__close:hover {
  background: rgba(255, 80, 80, 0.2);
  color: #ff6b6b;
}

.tc-pdf-viewer__frame {
  flex: 1;
  width: 100%;
  border: 0;
  background: #525659;
}
