/* 智能选线系统 — 深色科技 GIS 主题 */
:root {
  --sci-bg: #050810;
  --sci-bg-panel: rgba(8, 18, 32, 0.82);
  --sci-border: rgba(0, 212, 255, 0.35);
  --sci-border-strong: rgba(0, 212, 255, 0.65);
  --sci-cyan: #00d4ff;
  --sci-cyan-dim: #4dd9ff;
  --sci-cyan-glow: 0 0 20px rgba(0, 212, 255, 0.45);
  --sci-text: #e8f4ff;
  --sci-text-dim: rgba(200, 230, 255, 0.65);
  --sci-glass: rgba(6, 16, 30, 0.75);
  --sci-radius: 10px;
  --sci-radius-pill: 20px;

  --color-primary: #00d4ff;
  --color-primary-hover: #4de4ff;
  --color-primary-light: rgba(0, 212, 255, 0.12);
  --color-bg-page: #050810;
  --color-pure-white: rgba(12, 24, 42, 0.9);
  --color-ink-black: #e8f4ff;
  --color-charcoal: #b8d4e8;
  --color-dim: rgba(180, 210, 230, 0.7);
  --color-ash: rgba(150, 180, 200, 0.5);
  --color-bone: rgba(0, 212, 255, 0.15);
  --color-border: rgba(0, 212, 255, 0.25);
  --color-parchment: rgba(0, 212, 255, 0.06);
  --color-header-bg: transparent;
  --color-sidebar-bg: rgba(6, 14, 28, 0.85);
  --shadow-card: 0 0 24px rgba(0, 100, 150, 0.15), inset 0 0 0 1px var(--sci-border);
}

body { background: var(--sci-bg); color: var(--sci-text); }

/* 正式入口：公网访问直接进入登录页，不展示原型导航。 */
.proto-nav { display: none !important; }
.page { padding-top: 0 !important; }
.sci-login {
  min-height: 100vh;
  width: 100%;
  box-sizing: border-box;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.sci-login-panel {
  box-sizing: border-box;
  width: min(400px, calc(100vw - 32px)) !important;
  max-width: 400px !important;
  margin: 0 auto;
}
.sci-login-form,
.sci-login-form > label,
.sci-login-form > input,
.sci-login-form > .sci-login-pass-wrap,
.sci-login-form > .sci-login-remember,
.sci-login-form > .sci-login-btn {
  box-sizing: border-box;
}

/* ── 登录页 ── */
.sci-login {
  position: relative;
  min-height: calc(100vh - 38px);
  display: flex;
  align-items: var(--login-panel-valign, center);
  justify-content: var(--login-panel-align, center);
  overflow: hidden;
}
.sci-login-bg {
  position: absolute;
  inset: 0;
  bottom: var(--login-bg-crop-bottom, 0px);
  background-color: #030610;
  background-image: var(--login-bg-image);
  background-size: var(--login-bg-size);
  background-position: var(--login-bg-position);
  background-repeat: no-repeat;
}
/* 兜底遮盖右下角可能残留的水印 */
.sci-login::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 0;
  width: 180px;
  height: 48px;
  background: linear-gradient(135deg, transparent 30%, rgba(3, 8, 18, 0.85) 70%);
  pointer-events: none;
  z-index: 1;
}
.sci-login-overlay {
  position: absolute;
  inset: 0;
  background: var(--login-bg-overlay);
  pointer-events: none;
}
.sci-login-panel {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--login-panel-max-width);
  padding: var(--login-panel-padding);
  background: var(--login-panel-bg);
  border: 1px solid var(--login-panel-border);
  border-radius: var(--login-panel-radius);
  box-shadow: var(--login-panel-shadow);
  backdrop-filter: blur(var(--login-panel-blur));
}
.sci-login-head {
  text-align: center;
  margin-bottom: 24px;
}
.sci-login-brand {
  font-size: var(--login-brand-size);
  font-weight: 700;
  color: #fff;
  text-align: center;
  letter-spacing: 0.12em;
  margin-bottom: 6px;
  text-shadow: 0 0 16px rgba(0, 212, 255, 0.45);
}
.sci-login-title {
  font-size: var(--login-title-size);
  font-weight: 500;
  color: var(--sci-text-dim);
  text-align: center;
  margin-bottom: 28px;
}
.sci-login-form > label:not(.sci-login-remember) {
  display: block;
  font-size: 13px;
  color: var(--sci-text-dim);
  margin-bottom: 6px;
}
.sci-login-form input[type="text"],
.sci-login-form input[type="password"] {
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 18px;
  background: var(--login-input-bg);
  border: 1px solid var(--login-input-border);
  border-radius: 6px;
  font-size: 14px;
  color: var(--login-input-text);
  font-family: var(--font-main);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.sci-login-pass-wrap {
  position: relative;
  margin-bottom: 18px;
}
.sci-login-pass-wrap input[type="password"],
.sci-login-pass-wrap input[type="text"] {
  margin-bottom: 0;
  padding-right: 44px;
}
.sci-login-pass-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: rgba(0, 212, 255, 0.65);
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}
.sci-login-pass-toggle:hover {
  color: var(--login-accent);
  background: rgba(0, 212, 255, 0.08);
}
.sci-login-pass-toggle:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(0, 212, 255, 0.25);
}
.sci-login-pass-icon {
  width: 20px;
  height: 20px;
}
.sci-login-pass-icon--hide {
  display: none;
}
.sci-login-pass-toggle.is-visible .sci-login-pass-icon--show {
  display: none;
}
.sci-login-pass-toggle.is-visible .sci-login-pass-icon--hide {
  display: block;
}
.sci-login-form input[type="text"]::placeholder,
.sci-login-form input[type="password"]::placeholder {
  color: rgba(180, 210, 230, 0.45);
}
.sci-login-form input:focus {
  outline: none;
  border-color: var(--login-accent);
  box-shadow: 0 0 0 2px rgba(0, 212, 255, 0.15);
}

.sci-login-remember {
  display: flex !important;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  font-size: 13px;
  color: var(--sci-text-dim);
  cursor: pointer;
  user-select: none;
  position: relative;
}
.sci-login-remember input[type="checkbox"] {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  margin: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 1;
}
.sci-login-remember-box {
  display: inline-block;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  border: 1px solid rgba(0, 212, 255, 0.55);
  border-radius: 3px;
  background: rgba(0, 20, 40, 0.75);
  position: relative;
  transition: background 0.2s, border-color 0.2s;
  box-sizing: border-box;
}
.sci-login-remember input:checked + .sci-login-remember-box {
  background: rgba(0, 212, 255, 0.2);
  border-color: var(--login-accent);
}
.sci-login-remember input:checked + .sci-login-remember-box::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 1px;
  width: 5px;
  height: 9px;
  border: solid var(--login-accent);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.sci-login-remember:hover .sci-login-remember-box {
  border-color: var(--login-accent);
}

.sci-login-btn {
  width: 100%;
  padding: 13px;
  margin-top: 0;
  background: var(--login-btn-bg);
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  color: var(--login-btn-text);
  cursor: pointer;
  font-family: var(--font-main);
  transition: box-shadow 0.2s, transform 0.15s;
  box-shadow: var(--login-btn-glow);
}
.sci-login-btn:hover {
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.6);
  transform: translateY(-1px);
}

/* ── 系统首页（参考主界面布局 + 主页面背景.png） ── */
.sci-home {
  position: relative;
  min-height: calc(100vh - 38px);
  overflow: hidden;
}
.sci-home-bg {
  position: absolute;
  inset: 0;
  background-color: #030610;
  background-image: url('assets/主页面背景.png');
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  z-index: 0;
}
/* 兜底遮盖右下角可能残留的水印 */
.sci-home::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 0;
  width: 200px;
  height: 52px;
  background: linear-gradient(135deg, transparent 25%, rgba(3, 8, 18, 0.88) 65%);
  pointer-events: none;
  z-index: 2;
}
.sci-home-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(3, 8, 18, 0.12) 0%,
    rgba(3, 8, 18, 0.02) 35%,
    rgba(3, 8, 18, 0.08) 100%
  );
  z-index: 1;
  pointer-events: none;
}
.sci-home-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 20px 32px;
  pointer-events: none;
}
.sci-home-header > * {
  pointer-events: auto;
}
.sci-home-brand {
  grid-column: 1;
  justify-self: start;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.sci-home-project-title {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.06em;
  text-shadow: 0 0 14px rgba(0, 212, 255, 0.5);
  white-space: nowrap;
}
.sci-home-project-title[hidden] {
  display: none !important;
}
.sci-home-header-right {
  grid-column: 3;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 16px;
  --home-ctrl-h: 38px;
  min-width: 0;
  max-width: 100%;
}
.sci-home-back-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: var(--home-ctrl-h);
  height: var(--home-ctrl-h);
  padding: 0;
  border: 1px solid rgba(0, 212, 255, 0.55);
  border-radius: 50%;
  background: rgba(4, 10, 18, 0.85);
  color: var(--sci-cyan);
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  flex-shrink: 0;
  box-sizing: border-box;
}
.sci-home-back-btn svg {
  width: 20px;
  height: 20px;
}
.sci-home-back-btn:hover {
  border-color: var(--sci-cyan);
  background: rgba(0, 212, 255, 0.12);
  box-shadow: 0 0 16px rgba(0, 212, 255, 0.45);
}
.sci-home-project-nav {
  display: none;
  align-items: flex-start;
  flex-wrap: nowrap;
  gap: 8px;
  flex-shrink: 0;
  min-width: 0;
  max-width: 100%;
  overflow: visible;
  white-space: nowrap;
}
.sci-home-project-nav-wrap {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: stretch;
  flex: 0 0 auto;
  min-width: max-content;
}
.sci-home-project-sub-menu {
  left: 0;
  width: 100%;
  min-width: 156px;
}
.sci-home-project-nav-item {
  flex: 0 0 auto;
  padding: 0 14px;
  height: var(--home-ctrl-h);
  border: 1px solid rgba(0, 212, 255, 0.35);
  border-radius: 19px;
  background: rgba(4, 10, 18, 0.75);
  color: var(--sci-text-dim);
  font-size: 13px;
  font-family: var(--font-main);
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s, border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.sci-home-project-nav::-webkit-scrollbar {
  height: 4px;
}
.sci-home-project-nav::-webkit-scrollbar-track {
  background: transparent;
}
.sci-home-project-nav::-webkit-scrollbar-thumb {
  background: rgba(0, 212, 255, 0.42);
  border-radius: 4px;
}
@media (max-width: 520px) {
  .sci-home-project-nav {
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 2px;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 212, 255, 0.42) transparent;
  }
}
.sci-home-project-plan-current {
  display: block;
  width: 100%;
  max-width: 132px;
  margin-top: 4px;
  padding: 0 4px;
  box-sizing: border-box;
  overflow: hidden;
  color: rgba(158, 238, 246, 0.72);
  font-size: 10px;
  line-height: 1.2;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sci-home-project-nav-item:hover {
  color: var(--sci-cyan);
  border-color: rgba(0, 212, 255, 0.55);
  background: rgba(0, 212, 255, 0.08);
}
.sci-home-project-nav-item.active {
  color: #fff;
  border-color: var(--sci-cyan);
  background: rgba(0, 212, 255, 0.18);
  box-shadow: 0 0 14px rgba(0, 212, 255, 0.25);
}
.sci-home--project-open #home-nav-pills {
  display: none;
}
.sci-home--project-open #home-project-nav {
  display: flex;
}
.sci-home--project-open #home-back-btn {
  display: inline-flex;
}
.sci-home--project-open #home-layer-panel {
  display: flex;
}
.sci-home-layer-dock {
  display: none;
  flex-direction: row;
  position: absolute;
  top: 88px;
  left: 24px;
  z-index: 8;
  max-height: calc(100% - 132px);
  border-radius: 14px;
  border: 1px solid rgba(0, 212, 255, 0.42);
  background: linear-gradient(145deg, rgba(8, 18, 32, 0.92) 0%, rgba(4, 10, 22, 0.88) 100%);
  backdrop-filter: blur(18px);
  box-shadow:
    0 0 0 1px rgba(0, 212, 255, 0.08) inset,
    0 0 40px rgba(0, 212, 255, 0.12),
    0 20px 50px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}
.sci-home-layer-dock.is-collapsed .sci-home-layer-main,
.sci-home-layer-dock.is-collapsed .sci-home-annotate-main {
  display: none;
}
.sci-home-dock-tabs {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  align-self: stretch;
}
.sci-home-dock-tab {
  writing-mode: vertical-rl;
  text-orientation: upright;
  white-space: nowrap;
  flex: 1 1 auto;
  min-height: 108px;
  padding: 18px 12px;
  border: none;
  border-right: 1px solid rgba(0, 212, 255, 0.12);
  border-bottom: 1px solid rgba(0, 212, 255, 0.08);
  border-radius: 0;
  background: rgba(0, 20, 40, 0.35);
  color: var(--sci-text-dim);
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font-main);
  letter-spacing: 0.08em;
  line-height: 1;
  cursor: pointer;
  transition: all 0.25s;
  flex-shrink: 0;
}
.sci-home-dock-tab:last-child {
  border-bottom: none;
}
.sci-home-dock-tab:hover {
  background: linear-gradient(180deg, rgba(0, 212, 255, 0.14) 0%, rgba(0, 100, 140, 0.08) 100%);
  color: var(--sci-cyan);
}
.sci-home-dock-tab.active {
  background: linear-gradient(180deg, rgba(0, 212, 255, 0.22) 0%, rgba(0, 120, 160, 0.12) 100%);
  color: #fff;
  box-shadow: inset 0 0 20px rgba(0, 212, 255, 0.1);
}
.sci-home-layer-dock.is-annotate-active #home-layer-main {
  display: none !important;
}
.sci-home-layer-dock.is-annotate-active .sci-home-annotate-main {
  width: auto;
  max-width: min(760px, calc(100vw - 72px));
}
.sci-home-annotate-main {
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: rgba(6, 14, 26, 0.88);
}
.sci-home-annotate-main[hidden] {
  display: none !important;
}
.sci-home-annotate-body-wrap {
  flex: 1;
  min-height: 0;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
}
.sci-home-annotate-cost-layout {
  flex: 1 1 auto;
  min-height: 220px;
  width: auto;
  max-width: 100%;
  align-self: flex-start;
}
.sci-home-annotate-main .sci-home-cost-tree-panel {
  width: 128px;
}
.sci-home-annotate-main .sci-home-cost-tree-item {
  padding: 8px 10px;
  font-size: 11px;
  white-space: nowrap;
}
.sci-home-annotate-main .sci-home-cost-content {
  flex: 1 1 auto;
  width: auto;
  max-width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.sci-home-annotate-main .sci-home-cost-table-wrap {
  flex: 1;
  min-height: 0;
  overflow-x: auto;
}
.sci-home-annotate-main .sci-home-cost-content-head {
  gap: 8px;
  flex-wrap: wrap;
}
.sci-home-annotate-main .home-annot-category {
  min-width: 130px;
  max-width: 180px;
}
.sci-home-annotate-main .sci-home-annotate-table {
  min-width: 0;
  width: 100%;
}
.sci-home-annotate-table {
  table-layout: fixed;
}
.sci-home-annotate-table .col-seq,
.sci-home-annotate-table .col-seq-h {
  width: 56px;
  text-align: center;
}
.sci-home-annotate-table .col-name {
  width: auto;
}
.sci-home-annotate-table .col-ops {
  width: 112px;
  text-align: center;
}
.sci-home-annotate-main .sci-home-cost-table-wrap {
  overflow: hidden;
}
.sci-home-annotate-table th,
.sci-home-annotate-table td {
  min-width: 0;
  max-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sci-home-annotate-table th:nth-child(1),
.sci-home-annotate-table td:nth-child(1) { width: 8%; }
.sci-home-annotate-table th:nth-child(2),
.sci-home-annotate-table td:nth-child(2) { width: 18%; }
.sci-home-annotate-table th:nth-child(3),
.sci-home-annotate-table td:nth-child(3) { width: 17%; }
.sci-home-annotate-table th:nth-child(4),
.sci-home-annotate-table td:nth-child(4) { width: 15%; }
.sci-home-annotate-table th:nth-child(5),
.sci-home-annotate-table td:nth-child(5) { width: 22%; }
.sci-home-annotate-table th:nth-child(6),
.sci-home-annotate-table td:nth-child(6) { width: 20%; }
.sci-home-annotate-ops {
  max-width: 100%;
  padding: 2px;
  gap: 3px;
  overflow: visible;
}
.sci-home-annotate-ops .sci-home-act-pin {
  color: #ffc247;
  background: rgba(255, 174, 30, 0.18);
  border-color: rgba(255, 194, 71, 0.7);
}
.sci-home-annotate-ops .sci-home-act-pin svg { filter: drop-shadow(0 0 3px rgba(255, 180, 40, 0.45)); }
.sci-home-annotate-table tr.is-annot-hidden .col-name {
  color: var(--sci-text-dim);
  opacity: 0.72;
}
.sci-home-annotate-th-check,
.sci-home-annotate-row-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}
.sci-home-annotate-seq {
  min-width: 14px;
  text-align: center;
}
.sci-home-annotate-ops {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: nowrap;
  padding: 2px 5px;
  border: 1px solid rgba(93, 174, 214, 0.28);
  border-radius: 9px;
  background: rgba(4, 23, 38, 0.72);
}
.sci-home-annotate-terrain-list {
  padding: 12px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sci-home-annotate-terrain-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--sci-text);
  padding: 8px 10px;
  border: 1px solid rgba(0, 212, 255, 0.15);
  border-radius: 6px;
  background: rgba(0, 20, 40, 0.35);
}
.sci-home-annotate-terrain-item:hover {
  border-color: rgba(0, 212, 255, 0.35);
  background: rgba(0, 212, 255, 0.06);
}
.sci-home-annotate-terrain-item.is-annot-hidden .sci-home-annotate-terrain-label {
  color: var(--sci-text-dim);
  opacity: 0.72;
}
.sci-home-annotate-terrain-label {
  flex: 1;
  min-width: 0;
}
.sci-home-annotate-terrain-item .sci-home-act-eye {
  flex-shrink: 0;
}
.sci-home-act-pin,
.sci-home-act-del,
.sci-home-act-eye {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
}
.sci-home-act-eye {
  color: #35d9ff;
  background: rgba(0, 190, 230, 0.12);
  border-color: rgba(53, 217, 255, 0.42);
}
.sci-home-act-eye svg {
  width: 18px;
  height: 18px;
}
.sci-home-act-eye:hover {
  background: rgba(0, 212, 255, 0.28);
  border-color: rgba(53, 217, 255, 0.82);
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.2);
}
.sci-home-act-eye.is-off {
  color: #9fb1bf;
  background: rgba(159, 177, 191, 0.12);
  border-color: rgba(159, 177, 191, 0.42);
  opacity: 1;
}
.sci-home-act-eye.is-off:hover {
  background: rgba(159, 177, 191, 0.24);
  border-color: rgba(205, 220, 230, 0.75);
}
.sci-home-path-manage-table tr.is-path-hidden .col-name {
  color: var(--sci-text-dim);
  opacity: 0.72;
}
.sci-home-act-pin:hover {
  background: rgba(245, 166, 35, 0.24);
  border-color: rgba(255, 190, 75, 0.82);
  box-shadow: 0 0 10px rgba(245, 166, 35, 0.18);
}
.sci-home-act-pin {
  /* 定位按钮基础配色：置于共享布局块之后确保生效。任何上下文（图层行/路径管理/
     地形管理等）都保持高可见琥珀色，避免继承面板灰暗文字色导致图标发黑看不清。 */
  color: #ffc247;
  background: rgba(255, 174, 30, 0.18);
  border-color: rgba(255, 194, 71, 0.7);
}
.sci-home-act-pin svg {
  filter: drop-shadow(0 0 3px rgba(255, 180, 40, 0.45));
}
.sci-home-act-pin svg {
  width: 19px;
  height: 19px;
}
.sci-home-act-del {
  color: #ff6678;
  background: rgba(255, 75, 96, 0.16);
  border-color: rgba(255, 102, 120, 0.58);
}
.sci-home-act-del svg {
  width: 19px;
  height: 19px;
}
.sci-home-act-del:hover {
  background: rgba(255, 75, 96, 0.32);
  border-color: rgba(255, 142, 154, 0.9);
  color: #ff9eaa;
  box-shadow: 0 0 10px rgba(255, 75, 96, 0.18);
}
.sci-home-layer-row-actions .sci-home-act-pin {
  width: 24px;
  height: 24px;
}
.sci-home-layer-row-actions .sci-home-act-pin svg {
  width: 16px;
  height: 16px;
}
.sci-home-layer-row-actions .sci-home-act-eye {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}
.sci-home-layer-row-actions .sci-home-act-eye svg {
  width: 16px;
  height: 16px;
}
.sci-home-layer-main {
  display: flex;
  flex-direction: column;
  width: 380px;
  min-height: 300px;
  max-height: calc(100vh - 200px);
}
.sci-home-layer-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px 14px;
  flex-shrink: 0;
  border-bottom: 1px solid rgba(0, 212, 255, 0.12);
  background: linear-gradient(180deg, rgba(0, 212, 255, 0.07) 0%, transparent 100%);
}
.sci-home-layer-list-title {
  display: flex;
  align-items: center;
  gap: 10px;
}
.sci-home-layer-list-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(0, 212, 255, 0.12);
  border: 1px solid rgba(0, 212, 255, 0.25);
  color: var(--sci-cyan);
  box-shadow: 0 0 12px rgba(0, 212, 255, 0.15);
}
.sci-home-layer-list-icon svg {
  width: 16px;
  height: 16px;
}
.sci-home-layer-list-head h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.04em;
}
.sci-home-layer-bulk {
  display: flex;
  gap: 6px;
}
.sci-home-layer-bulk-btn {
  padding: 5px 12px;
  border: 1px solid rgba(0, 212, 255, 0.28);
  border-radius: 14px;
  background: rgba(0, 20, 40, 0.5);
  color: var(--sci-text-dim);
  font-size: 11px;
  font-family: var(--font-main);
  cursor: pointer;
  transition: all 0.2s;
}
.sci-home-layer-bulk-btn:hover {
  border-color: var(--sci-cyan);
  color: var(--sci-cyan);
  background: rgba(0, 212, 255, 0.1);
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.2);
}
.sci-home-layer-body {
  flex: 1;
  overflow-y: auto;
  padding: 14px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.sci-home-layer-body::-webkit-scrollbar {
  width: 5px;
}
.sci-home-layer-body::-webkit-scrollbar-thumb {
  background: rgba(0, 212, 255, 0.25);
  border-radius: 3px;
}
.sci-home-layer-section {
  border-radius: 10px;
  border: 1px solid rgba(0, 212, 255, 0.18);
  background: rgba(0, 12, 28, 0.55);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}
.sci-home-layer-section-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: linear-gradient(90deg, rgba(0, 212, 255, 0.1) 0%, transparent 100%);
  border-bottom: 1px solid rgba(0, 212, 255, 0.1);
}
.sci-home-layer-section.is-collapsed .sci-home-layer-section-head {
  border-bottom-color: transparent;
}
.sci-home-layer-section.is-collapsed .sci-home-layer-section-list {
  display: none;
}
.sci-home-layer-section-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  min-width: 0;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-main);
}
.sci-home-layer-section-arrow {
  flex-shrink: 0;
  width: 0;
  height: 0;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 5px solid var(--sci-cyan-dim);
  transition: transform 0.15s;
}
.sci-home-layer-section.is-expanded > .sci-home-layer-section-head .sci-home-layer-section-arrow {
  transform: rotate(90deg);
}
.sci-home-layer-section-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--sci-cyan);
  letter-spacing: 0.08em;
}
.sci-home-layer-section-toggle:hover .sci-home-layer-section-label {
  color: #fff;
}
.sci-home-layer-section-add {
  margin-left: auto;
  padding: 2px 8px;
  font-size: 10px;
  flex-shrink: 0;
}
.sci-home-layer-section-add svg {
  width: 11px;
  height: 11px;
}
.sci-home-layer-section-list {
  padding: 6px 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sci-home-layer-section--thematic .sci-home-layer-section-list {
  gap: 4px;
  padding: 4px 6px;
}
.sci-home-layer-thematic-category {
  overflow: hidden;
  border: 1px solid rgba(0, 212, 255, 0.11);
  border-radius: 8px;
  background: rgba(0, 19, 35, 0.32);
}
.sci-home-layer-thematic-category.is-collapsed .sci-home-layer-thematic-category-head {
  border-bottom-color: transparent;
}
.sci-home-layer-thematic-category.is-collapsed .sci-home-layer-thematic-category-list {
  display: none;
}
.sci-home-layer-thematic-category-head {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 0 10px;
  border-bottom: 1px solid rgba(0, 212, 255, 0.08);
  background: linear-gradient(90deg, rgba(0, 212, 255, 0.075), rgba(0, 212, 255, 0.015));
  border: 0;
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: left;
}
.sci-home-layer-thematic-category-head:hover {
  background: linear-gradient(90deg, rgba(0, 212, 255, 0.13), rgba(0, 212, 255, 0.025));
}
.sci-home-layer-thematic-category-arrow {
  width: 0;
  height: 0;
  flex-shrink: 0;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 5px solid var(--sci-cyan-dim);
  transition: transform 0.16s ease;
}
.sci-home-layer-thematic-category.is-expanded .sci-home-layer-thematic-category-arrow {
  transform: rotate(90deg);
}
.sci-home-layer-thematic-category-mark {
  width: 6px;
  height: 6px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--sci-cyan);
  box-shadow: 0 0 7px rgba(0, 212, 255, 0.65);
}
.sci-home-layer-thematic-category-name {
  min-width: 0;
  overflow: hidden;
  color: var(--sci-text);
  font-size: 11px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sci-home-layer-thematic-category-count {
  min-width: 17px;
  margin-left: auto;
  padding: 1px 5px;
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 9px;
  color: var(--sci-cyan-dim);
  font-size: 10px;
  line-height: 15px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.sci-home-layer-thematic-category-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
  position: relative;
  padding: 5px 5px 6px 18px;
}
.sci-home-layer-thematic-category-list::before {
  position: absolute;
  top: 0;
  bottom: 8px;
  left: 10px;
  width: 1px;
  background: linear-gradient(to bottom, rgba(0, 212, 255, 0.32), rgba(0, 212, 255, 0.06));
  content: '';
}
.sci-home-layer-thematic-category-list .sci-home-layer-row {
  position: relative;
  padding: 7px 8px 7px 12px;
}
.sci-home-layer-thematic-category-list .sci-home-layer-row::before {
  position: absolute;
  top: 50%;
  left: -8px;
  width: 9px;
  height: 1px;
  background: rgba(0, 212, 255, 0.28);
  content: '';
}
.sci-home-layer-thematic-tree {
  width: 100%;
}
.sci-home-layer-thematic-tree-root,
.sci-home-layer-thematic-tree-root ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.sci-home-layer-thematic-tree-root > li.is-collapsed > ul,
.sci-home-layer-thematic-tree-root li.is-collapsed > ul,
.sci-home-layer-thematic-tree-root li.is-collapsed > .sci-home-layer-thematic-tree-layers {
  display: none;
}
.sci-home-layer-thematic-tree-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  box-sizing: border-box;
  border: none;
  background: transparent;
  color: var(--sci-text-dim);
  font-size: 11px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
}
.sci-home-layer-thematic-tree-toggle:hover {
  background: rgba(0, 212, 255, 0.08);
  color: var(--sci-text);
}
.sci-home-layer-thematic-tree-toggle--depth-0 { padding-left: 8px; }
.sci-home-layer-thematic-tree-toggle--depth-1 { padding-left: 20px; }
.sci-home-layer-thematic-tree-toggle--depth-2 { padding-left: 32px; }
.sci-home-layer-thematic-tree-toggle--depth-3 { padding-left: 44px; }
.sci-home-layer-thematic-tree-arrow {
  flex-shrink: 0;
  width: 0;
  height: 0;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 5px solid var(--sci-cyan-dim);
  transition: transform 0.15s;
}
.is-expanded > .sci-home-layer-thematic-tree-toggle .sci-home-layer-thematic-tree-arrow {
  transform: rotate(90deg);
}
.sci-home-layer-thematic-tree-label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sci-home-layer-thematic-tree-layers {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 2px 8px 6px 28px;
}
.sci-home-layer-thematic-tree-toggle--depth-1 + .sci-home-layer-thematic-tree-layers { padding-left: 40px; }
.sci-home-layer-thematic-tree-toggle--depth-2 + .sci-home-layer-thematic-tree-layers { padding-left: 52px; }
.sci-home-layer-thematic-tree-toggle--depth-3 + .sci-home-layer-thematic-tree-layers { padding-left: 64px; }
.sci-home-layer-thematic-tree-layers .sci-home-layer-row {
  padding: 6px 8px;
}
.sci-home-layer-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid transparent;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
  cursor: pointer;
}
.sci-home-layer-row:hover {
  background: rgba(0, 212, 255, 0.06);
  border-color: rgba(0, 212, 255, 0.12);
}
.sci-home-layer-row.selected {
  background: rgba(0, 212, 255, 0.1);
  border-color: rgba(0, 212, 255, 0.28);
  box-shadow: 0 0 12px rgba(0, 212, 255, 0.08);
}
.sci-home-layer-row.is-hidden .sci-home-layer-name {
  color: var(--sci-text-dim);
  opacity: 0.6;
}
.sci-home-layer-row.is-nonrender {
  background: rgba(145, 160, 175, 0.06);
  border-color: rgba(145, 160, 175, 0.16);
  cursor: default;
}
.sci-home-layer-row.is-nonrender .sci-home-layer-name {
  color: var(--sci-text-dim);
  opacity: 0.78;
}
.sci-home-layer-render-state {
  display: inline-flex;
  align-items: center;
  min-width: 48px;
  height: 22px;
  padding: 0 8px;
  border: 1px solid rgba(145, 160, 175, 0.34);
  border-radius: 11px;
  color: var(--sci-text-dim);
  background: rgba(145, 160, 175, 0.08);
  font-size: 11px;
  line-height: 1;
  white-space: nowrap;
}
.sci-home-layer-check {
  position: relative;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.sci-home-layer-check input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  margin: 0;
}
.sci-home-layer-check-box {
  position: relative;
  display: block;
  width: 16px;
  height: 16px;
  border: 1px solid rgba(0, 212, 255, 0.5);
  border-radius: 4px;
  background: rgba(0, 20, 40, 0.6);
  transition: all 0.2s;
}
.sci-home-layer-check input:checked + .sci-home-layer-check-box {
  background: rgba(0, 212, 255, 0.25);
  border-color: var(--sci-cyan);
  box-shadow: 0 0 8px rgba(0, 212, 255, 0.35);
}
.sci-home-layer-check input:checked + .sci-home-layer-check-box::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 1px;
  width: 4px;
  height: 8px;
  border: solid var(--sci-cyan);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.sci-home-layer-name {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--sci-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sci-home-layer-row-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.sci-home-layer-act {
  flex-shrink: 0;
  width: 42px;
  height: 24px;
  padding: 0;
  border-radius: 12px;
  font-size: 11px;
  font-family: var(--font-main);
  line-height: 1;
  cursor: pointer;
  transition: all 0.2s;
  box-sizing: border-box;
}
.sci-home-layer-act--locate {
  border: 1px solid rgba(0, 212, 255, 0.35);
  background: rgba(0, 212, 255, 0.08);
  color: var(--sci-cyan);
}
.sci-home-layer-act--locate:hover {
  background: rgba(0, 212, 255, 0.18);
  border-color: var(--sci-cyan);
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.25);
}
.sci-home-layer-act--remove {
  border: 1px solid rgba(255, 100, 120, 0.4);
  background: rgba(255, 60, 80, 0.08);
  color: #ff8a9a;
}
.sci-home-layer-act--remove:hover {
  background: rgba(255, 60, 80, 0.18);
  border-color: #ff8a9a;
}
.sci-home-layer-empty {
  padding: 12px 14px;
  font-size: 12px;
  color: var(--sci-text-dim);
  opacity: 0.65;
  text-align: center;
}
.sci-home-bg.is-locating {
  animation: sci-home-locate-pulse 0.8s ease;
}
@keyframes sci-home-locate-pulse {
  0%, 100% { filter: brightness(1); }
  40% { filter: brightness(1.15) saturate(1.1); }
}
.sci-home-coords-pill.is-updated {
  border-color: var(--sci-cyan);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.35);
}
.sci-home-brand-text {
  margin: 0;
  font-size: 34px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.1em;
  line-height: 1.1;
  text-shadow:
    0 0 6px rgba(0, 255, 255, 0.95),
    0 0 14px rgba(0, 212, 255, 0.85),
    0 0 28px rgba(0, 180, 255, 0.55),
    0 0 48px rgba(0, 140, 220, 0.35),
    0 1px 0 rgba(255, 255, 255, 0.9);
}
.sci-home-brand-line {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 1px;
  background: linear-gradient(
    90deg,
    rgba(0, 255, 255, 1) 0%,
    rgba(0, 230, 255, 0.9) 35%,
    rgba(0, 212, 255, 0.45) 65%,
    rgba(0, 212, 255, 0) 100%
  );
  box-shadow:
    0 0 6px rgba(0, 255, 255, 0.8),
    0 0 14px rgba(0, 212, 255, 0.45);
}
.sci-home-pills {
  display: flex;
  align-items: center;
  gap: 10px;
}
.sci-home-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: var(--home-ctrl-h);
  padding: 0 24px;
  box-sizing: border-box;
  border: 1px solid rgba(0, 212, 255, 0.45);
  border-radius: calc(var(--home-ctrl-h) / 2);
  background: rgba(8, 16, 28, 0.72);
  backdrop-filter: blur(8px);
  color: var(--sci-text);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  font-family: var(--font-main);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s, color 0.2s;
  white-space: nowrap;
}
.sci-home-pill:hover {
  border-color: var(--sci-cyan);
  background: rgba(0, 212, 255, 0.12);
  color: var(--sci-cyan);
  box-shadow: 0 0 18px rgba(0, 212, 255, 0.25);
}
.sci-home-pill.is-active {
  border-color: var(--sci-cyan);
  background: linear-gradient(180deg, #5ce8ff 0%, #00c8e8 100%);
  color: #0a1520;
  font-weight: 600;
  box-shadow: 0 0 18px rgba(0, 212, 255, 0.35);
}
.sci-home-pill--return {
  border-color: rgba(0, 212, 255, 0.55);
  color: var(--sci-cyan);
}
.sci-home-pill--return:hover {
  background: rgba(0, 212, 255, 0.18);
}
.sci-home-pill-wrap {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: stretch;
}
.sci-home-data-menu {
  display: none;
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  width: 100%;
  box-sizing: border-box;
  flex-direction: column;
  padding: 6px 0;
  border-radius: 10px;
  border: 1px solid rgba(0, 212, 255, 0.55);
  background: rgba(6, 14, 26, 0.92);
  backdrop-filter: blur(14px);
  box-shadow: 0 0 28px rgba(0, 212, 255, 0.2), 0 16px 48px rgba(0, 0, 0, 0.45);
  z-index: 20;
}
.sci-home-data-menu.open {
  display: flex;
}
.sci-home-data-menu-item {
  display: block;
  width: 100%;
  padding: 10px 18px;
  border: none;
  background: transparent;
  color: var(--sci-text);
  font-size: 13px;
  font-family: var(--font-main);
  text-align: left;
  cursor: pointer;
  white-space: nowrap;
}
.sci-home-data-menu-item:hover {
  background: rgba(0, 212, 255, 0.12);
  color: var(--sci-cyan);
}
.sci-home-cost-panel {
  display: none;
  pointer-events: none;
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: fit-content;
  min-width: 420px;
  max-width: min(1160px, calc(100vw - 48px));
  flex-direction: column;
  border-radius: 10px;
  border: 1px solid rgba(0, 212, 255, 0.55);
  background: rgba(6, 14, 26, 0.88);
  backdrop-filter: blur(14px);
  box-shadow: 0 0 28px rgba(0, 212, 255, 0.2), 0 16px 48px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  z-index: 20;
}
.sci-home-cost-panel.open {
  display: flex;
  pointer-events: auto;
  flex-direction: column;
}
.sci-home-cost-panel.is-floating {
  position: fixed;
  right: auto;
  z-index: 100;
}
.sci-home-cost-drag-handle {
  cursor: move;
  user-select: none;
}
.sci-home-cost-drag-handle h2 {
  cursor: move;
}
.sci-home-cost-body {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  max-width: 100%;
  padding: 14px 18px 18px;
  min-height: 0;
  flex: 1;
  box-sizing: border-box;
}
.sci-home-cost-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  width: 100%;
  box-sizing: border-box;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(0, 212, 255, 0.2);
  margin-bottom: 12px;
}
.sci-home-cost-tool {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  min-height: 28px;
  padding: 0 12px;
  border: 1px solid rgba(0, 212, 255, 0.35);
  border-radius: 14px;
  background: rgba(0, 212, 255, 0.08);
  color: var(--sci-text);
  font-size: 12px;
  line-height: 1;
  font-family: var(--font-main);
  cursor: pointer;
  box-sizing: border-box;
}
.sci-home-cost-tool svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}
.sci-home-cost-tool:hover {
  border-color: var(--sci-cyan);
  background: rgba(0, 212, 255, 0.15);
  color: var(--sci-cyan);
}
.sci-home-cost-tool--add:hover {
  border-color: rgba(80, 220, 120, 0.6);
  background: rgba(80, 220, 120, 0.12);
  color: #7dffb0;
}
.sci-home-cost-tool--remove:hover {
  border-color: rgba(255, 120, 130, 0.6);
  background: rgba(255, 100, 110, 0.12);
  color: #ff9aa8;
}
.sci-home-cost-tool:disabled {
  cursor: not-allowed;
}
.sci-home-cost-tool--primary {
  border-color: rgba(0, 212, 255, 0.55);
  background: rgba(0, 212, 255, 0.18);
  color: var(--sci-cyan);
}
.sci-home-cost-tool--danger:hover {
  border-color: rgba(255, 120, 130, 0.6);
  background: rgba(255, 100, 110, 0.12);
  color: #ff9aa8;
}
.sci-home-cost-layout {
  display: inline-flex;
  align-self: flex-start;
  gap: 0;
  flex: 0 0 auto;
  width: auto;
  max-width: 100%;
  min-height: 280px;
  border: 1px solid rgba(0, 212, 255, 0.25);
  border-radius: 8px;
  overflow: hidden;
}
.sci-home-cost-layout:has(.sci-home-cost-content--hscroll) {
  width: 100%;
  align-self: stretch;
}
.sci-home-cost-tree-panel {
  width: 188px;
  flex-shrink: 0;
  border-right: 1px solid rgba(0, 212, 255, 0.25);
  background: rgba(0, 20, 40, 0.45);
  overflow-y: auto;
  padding: 8px 0;
}
.sci-home-cost-tree {
  list-style: none;
  margin: 0;
  padding: 0;
}
.sci-home-cost-tree ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.sci-home-cost-tree > li.collapsed > ul {
  display: none;
}
.sci-home-cost-tree-group {
  display: block;
  width: 100%;
  padding: 8px 14px;
  border: none;
  background: transparent;
  color: var(--sci-cyan-dim);
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font-main);
  text-align: left;
  cursor: pointer;
}
.sci-home-cost-tree-group:hover {
  background: rgba(0, 212, 255, 0.08);
}
.sci-home-cost-tree-item {
  display: block;
  width: 100%;
  padding: 8px 14px 8px 28px;
  border: none;
  background: transparent;
  color: var(--sci-text-dim);
  font-size: 12px;
  font-family: var(--font-main);
  text-align: left;
  cursor: pointer;
}
.sci-home-cost-tree-item:hover {
  background: rgba(0, 212, 255, 0.1);
  color: var(--sci-text);
}
.sci-home-cost-tree-item.active {
  background: rgba(0, 212, 255, 0.18);
  color: var(--sci-cyan);
  font-weight: 500;
}
.sci-home-cost-content {
  flex: 0 0 auto;
  width: auto;
  max-width: none;
  min-width: 0;
  display: inline-flex;
  flex-direction: column;
  vertical-align: top;
  background: rgba(0, 12, 24, 0.35);
}
.sci-home-cost-content.sci-home-cost-content--hscroll {
  flex: 1 1 auto;
  width: auto;
  max-width: 100%;
  align-self: stretch;
}
.sci-home-cost-content-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: auto;
  align-self: stretch;
  box-sizing: border-box;
  padding: 5px 14px;
  min-height: 32px;
  border-bottom: 1px solid rgba(0, 212, 255, 0.15);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  color: #fff;
  flex-shrink: 0;
}
.sci-home-cost-content-head > span:first-child {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sci-home-cost-page-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}
.sci-home-cost-page-actions[hidden] {
  display: none;
}
.sci-home-cost-page-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 11px;
  line-height: 1.3;
  font-family: var(--font-main);
  cursor: pointer;
  background: rgba(0, 212, 255, 0.08);
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.sci-home-cost-page-btn svg {
  width: 12px;
  height: 12px;
}
.sci-home-cost-page-btn--add {
  border: 1px solid rgba(80, 220, 120, 0.5);
  color: #7dffb0;
}
.sci-home-cost-page-btn--add:hover {
  background: rgba(80, 220, 120, 0.15);
  border-color: rgba(80, 220, 120, 0.75);
}
.sci-home-cost-page-btn--import {
  border: 1px solid rgba(0, 212, 255, 0.5);
  color: #7dd4ff;
}
.sci-home-cost-page-btn--import:hover {
  background: rgba(0, 212, 255, 0.15);
  border-color: rgba(0, 212, 255, 0.75);
}
.sci-home-cost-page-btn--remove {
  border: 1px solid rgba(255, 90, 100, 0.65);
  color: #ff6b7a;
  background: rgba(255, 70, 85, 0.12);
}
.sci-home-cost-page-btn--remove:hover {
  background: rgba(255, 70, 85, 0.22);
  border-color: rgba(255, 90, 100, 0.85);
  color: #ff8a96;
}
.sci-home-cost-search {
  width: 160px;
  padding: 3px 8px;
  border: 1px solid rgba(0, 212, 255, 0.25);
  border-radius: 4px;
  background: rgba(0, 20, 40, 0.65);
  color: var(--sci-text);
  font-size: 11px;
  font-family: var(--font-main);
  box-sizing: border-box;
}
.sci-home-cost-search::placeholder {
  color: var(--sci-text-dim);
}
.sci-home-cost-search:focus {
  outline: none;
  border-color: rgba(0, 212, 255, 0.5);
}
.sci-home-cost-search[hidden] {
  display: none;
}
.sci-home-cost-table-wrap {
  flex: 0 0 auto;
  width: fit-content;
  max-width: 100%;
  overflow: auto;
  padding: 4px 14px 8px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  box-sizing: border-box;
}
.sci-home-cost-table-wrap.sci-home-cost-table-wrap--hscroll {
  width: 100%;
  max-width: 100%;
  align-self: stretch;
  overflow: visible;
}
.sci-home-cost-grid-wrap--hscroll {
  width: 100%;
  max-width: 100%;
  align-self: stretch;
  overflow: visible;
}
.sci-home-cost-h-scroll {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-gutter: stable;
}
.sci-home-cost-h-scroll::-webkit-scrollbar {
  height: 8px;
}
.sci-home-cost-h-scroll::-webkit-scrollbar-track {
  background: rgba(0, 212, 255, 0.06);
  border-radius: 4px;
}
.sci-home-cost-h-scroll::-webkit-scrollbar-thumb {
  background: rgba(0, 212, 255, 0.35);
  border-radius: 4px;
}
.sci-home-cost-h-scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 212, 255, 0.5);
}
.sci-home-cost-h-scroll .sci-home-cost-table--haul,
.sci-home-cost-h-scroll .sci-home-cost-table--altitude {
  width: max-content;
  max-width: none;
}
.sci-home-cost-table-wrap > .sci-home-cost-table {
  width: max-content;
  max-width: 100%;
}
.sci-home-cost-list {
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.sci-home-cost-list-head {
  display: grid;
  grid-template-columns: var(--cost-cols, 1fr 1fr 1fr 1fr);
  column-gap: 8px;
  padding: 5px 0 6px;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--sci-cyan-dim);
  border-bottom: 1px solid rgba(0, 212, 255, 0.2);
  background: rgba(0, 212, 255, 0.05);
  flex-shrink: 0;
  align-items: end;
}
.sci-home-cost-list-head > span {
  min-width: 0;
}
.sci-home-cost-list-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 6px;
}
.sci-home-cost-list-item {
  display: grid;
  grid-template-columns: var(--cost-cols, 1fr 1fr 1fr 1fr);
  column-gap: 8px;
  align-items: center;
  padding: 6px 0;
  border: 1px solid rgba(0, 212, 255, 0.18);
  border-radius: 8px;
  background: rgba(0, 212, 255, 0.03);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.sci-home-cost-list--base .sci-home-cost-col-voltage {
  text-align: center;
}
.sci-home-cost-list--base .sci-home-cost-col-scheme {
  text-align: left;
}
.sci-home-cost-list--base .sci-home-cost-col-num {
  text-align: right;
}
.sci-home-cost-list--base .sci-home-cost-col-voltage .sci-home-cost-cell-select {
  width: 64px;
  margin: 0 auto;
  display: block;
}
.sci-home-cost-list--base .sci-home-cost-col-num .sci-home-cost-cell-input {
  text-align: right;
}
.sci-home-cost-list-cell {
  min-width: 0;
}
.sci-home-cost-list-cell--cat {
  font-size: 12px;
  font-weight: 600;
  color: var(--sci-cyan);
}
.sci-home-cost-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.sci-home-cost-table th,
.sci-home-cost-table td {
  padding: 9px 12px;
  text-align: left;
  border-bottom: 1px solid rgba(0, 212, 255, 0.12);
}
.sci-home-cost-table th {
  color: var(--sci-cyan-dim);
  font-weight: 500;
  background: rgba(0, 212, 255, 0.06);
  white-space: nowrap;
}
.sci-home-cost-table td {
  color: var(--sci-text);
}
.sci-home-cost-table tr:hover td {
  background: rgba(0, 212, 255, 0.06);
}
.sci-home-cost-table tr.selected td {
  background: rgba(0, 212, 255, 0.14);
}
.sci-home-cost-grid-wrap {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow-x: auto;
}
.sci-home-cost-grid-wrap--fit {
  width: fit-content;
  max-width: 100%;
  align-self: flex-start;
}
.sci-home-cost-table--grid {
  width: max-content;
  max-width: 100%;
  table-layout: auto;
}
.sci-home-cost-table--crossing {
  width: auto;
}
.sci-home-cost-table--crossing td.col-cat,
.sci-home-cost-table--crossing td.col-type,
.sci-home-cost-table--channel td.col-cat,
.sci-home-cost-table--channel td.col-type {
  font-size: 12px;
  font-family: var(--font-main);
  color: var(--sci-text);
  font-weight: 400;
}
.sci-home-cost-table--crossing td.col-cat.sci-home-cost-merged,
.sci-home-cost-table--channel td.col-cat.sci-home-cost-merged {
  font-weight: 400;
  color: var(--sci-text);
}
.sci-home-cost-table--grid th.col-type-head {
  text-align: center;
}
.sci-home-cost-table--grid thead th {
  padding: 9px 12px;
  color: var(--sci-cyan-dim);
  font-size: 12px;
  font-family: var(--font-main);
  font-weight: 500;
  line-height: 1.3;
  box-sizing: border-box;
}
.sci-home-cost-table--grid th {
  text-align: center;
  background: rgba(0, 212, 255, 0.08);
}
.sci-home-cost-table--grid th,
.sci-home-cost-table--grid td {
  border-top: none;
  border-bottom: 1px solid rgba(0, 212, 255, 0.12);
  border-right: 1px solid rgba(0, 212, 255, 0.12);
  white-space: nowrap;
}
.sci-home-cost-table--grid th:first-child,
.sci-home-cost-table--grid td:first-child {
  border-left: 1px solid rgba(0, 212, 255, 0.12);
}
.sci-home-cost-table--grid th:last-child,
.sci-home-cost-table--grid td:last-child {
  border-right: 1px solid rgba(0, 212, 255, 0.12);
}
.sci-home-cost-table--grid td.col-voltage,
.sci-home-cost-table--grid td.col-scheme,
.sci-home-cost-table--grid td.col-num,
.sci-home-cost-table--grid td.col-cat,
.sci-home-cost-table--grid td.col-type,
.sci-home-cost-table--grid td.col-unit,
.sci-home-cost-table--grid td.col-circuit {
  width: auto;
  text-align: center;
  padding: 0;
}
.sci-home-cost-table--grid td.sci-home-cost-merged,
.sci-home-cost-table--grid td.sci-home-cost-readonly {
  padding: 9px 12px;
  text-align: center;
  vertical-align: middle;
}
.sci-home-cost-table--grid td.sci-home-cost-merged .sci-home-cost-cell-select {
  display: block;
  width: 100%;
  border: none;
  border-radius: 0;
  background: transparent;
  text-align: center;
  padding: 0;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}
.sci-home-cost-table--grid .col-cat.sci-home-cost-merged {
  font-weight: 600;
  color: var(--sci-cyan);
}
.sci-home-cost-table--grid.sci-home-cost-table--matrix th.col-num,
.sci-home-cost-table--grid.sci-home-cost-table--matrix td.col-num,
.sci-home-cost-table--grid.sci-home-cost-table--matrix td.col-voltage,
.sci-home-cost-table--grid.sci-home-cost-table--matrix td.col-cat {
  text-align: center;
}
.sci-home-cost-table--grid.sci-home-cost-table--matrix .sci-home-cost-corner {
  border-left: 1px solid rgba(0, 212, 255, 0.12);
}
.sci-home-cost-table--grid.sci-home-cost-table--haul {
  width: max-content;
  max-width: none;
}
.sci-home-cost-table--grid .sci-home-cost-cell-input,
.sci-home-cost-table--grid .sci-home-cost-cell-select {
  display: block;
  width: 100%;
  min-width: 0;
  padding: 9px 12px;
  border: none;
  border-radius: 0;
  background: transparent;
  box-sizing: border-box;
  text-align: center;
  appearance: none;
  -webkit-appearance: none;
}
.sci-home-cost-table--grid .col-voltage .sci-home-cost-cell-select,
.sci-home-cost-table--grid .col-circuit .sci-home-cost-cell-select,
.sci-home-cost-table--grid .col-cat .sci-home-cost-cell-select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='5' viewBox='0 0 8 5'%3E%3Cpath fill='%2300d4ff' d='M0 0l4 5 4-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 24px;
}
.sci-home-cost-table--grid .sci-home-cost-cell-input:focus,
.sci-home-cost-table--grid .sci-home-cost-cell-select:focus {
  outline: none;
  background-color: rgba(0, 212, 255, 0.06);
}
.sci-home-cost-table--grid .sci-home-cost-cell-input--error {
  border: none;
  box-shadow: inset 0 0 0 1px rgba(255, 100, 120, 0.75);
}
.sci-home-cost-table--grid tr:hover .sci-home-cost-cell-input,
.sci-home-cost-table--grid tr:hover .sci-home-cost-cell-select {
  background-color: rgba(0, 212, 255, 0.06);
}
.sci-home-cost-table--grid tr.selected .sci-home-cost-cell-input,
.sci-home-cost-table--grid tr.selected .sci-home-cost-cell-select {
  background-color: transparent;
}
.sci-home-cost-empty {
  text-align: center;
  color: var(--sci-text-dim);
  padding: 24px !important;
}
.sci-home-cost-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 0 4px;
  font-size: 11px;
  color: var(--sci-text-dim);
  flex-shrink: 0;
}
.sci-home-cost-page-nums {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.sci-home-cost-page-nav,
.sci-home-cost-page-num {
  padding: 2px 8px;
  border: 1px solid rgba(0, 212, 255, 0.25);
  border-radius: 4px;
  background: rgba(0, 20, 40, 0.5);
  color: var(--sci-text);
  font-size: 11px;
  font-family: var(--font-main);
  cursor: pointer;
  line-height: 1.4;
}
.sci-home-cost-page-nav:hover:not(:disabled),
.sci-home-cost-page-num:hover:not(.active) {
  border-color: rgba(0, 212, 255, 0.45);
  background: rgba(0, 212, 255, 0.08);
}
.sci-home-cost-page-nav:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.sci-home-cost-page-num.active {
  border-color: rgba(0, 212, 255, 0.6);
  color: var(--sci-cyan);
  background: rgba(0, 212, 255, 0.12);
}
.sci-home-cost-page-info,
.sci-home-cost-page-size {
  margin: 0 2px;
}
.sci-home-cost-actions {
  box-sizing: border-box;
}
.sci-home-weight-footer > .sci-home-cost-actions,
.sci-home-grid-cost-footer > .sci-home-cost-actions {
  width: auto;
  flex: 0 0 auto;
}
.sci-home-cost-actions--block {
  width: 100%;
}
.sci-home-cost-list-item:hover {
  border-color: rgba(0, 212, 255, 0.35);
  background: rgba(0, 212, 255, 0.08);
}
.sci-home-cost-list-item.selected {
  border-color: rgba(0, 212, 255, 0.55);
  background: rgba(0, 212, 255, 0.14);
  box-shadow: 0 0 12px rgba(0, 212, 255, 0.12);
}
.sci-home-cost-cell-input,
.sci-home-cost-cell-select {
  width: 100%;
  min-width: 0;
  padding: 3px 6px;
  border: 1px solid rgba(0, 212, 255, 0.25);
  border-radius: 4px;
  background: rgba(0, 20, 40, 0.65);
  color: var(--sci-text);
  font-size: 12px;
  font-family: var(--font-main);
  box-sizing: border-box;
}
.sci-home-cost-cell-input--error {
  border-color: rgba(255, 100, 120, 0.75);
  box-shadow: 0 0 0 2px rgba(255, 80, 100, 0.15);
}
.sci-home-cost-readonly {
  color: var(--sci-text-dim);
}
.sci-home-cost-merged {
  vertical-align: middle;
  text-align: center;
  background: rgba(0, 212, 255, 0.04);
}
.sci-home-cost-table--matrix th,
.sci-home-cost-table--matrix td {
  text-align: center;
  white-space: nowrap;
}
.sci-home-cost-table--grid.sci-home-cost-table--matrix th,
.sci-home-cost-table--grid.sci-home-cost-table--matrix td {
  border-top: none;
  border-bottom: 1px solid rgba(0, 212, 255, 0.12);
  border-right: 1px solid rgba(0, 212, 255, 0.12);
}
.sci-home-cost-table--haul {
  min-width: 0;
}
.sci-home-cost-table--altitude {
  min-width: 0;
}
.sci-home-cost-table--altitude th.col-num {
  min-width: 92px;
  padding: 9px 10px;
  white-space: nowrap;
}
.sci-home-cost-table--altitude td.col-num {
  min-width: 72px;
}
.sci-home-cost-table--altitude .sci-home-cost-corner--altitude,
.sci-home-cost-table--altitude .sci-home-cost-corner {
  min-width: 158px;
  height: 66px;
}
.sci-home-cost-table--altitude .sci-home-cost-corner-col {
  top: 8px;
  right: 5px;
  left: 38%;
}
.sci-home-cost-table--altitude .sci-home-cost-corner-row {
  left: 5px;
  bottom: 8px;
  right: 38%;
}
.sci-home-cost-table--terrain {
  width: max-content;
  table-layout: auto;
}
.sci-home-cost-table--terrain .sci-home-cost-corner {
  width: auto;
  min-width: 128px;
  height: 58px;
  padding: 0 !important;
  background: rgba(0, 212, 255, 0.08);
  overflow: visible;
}
.sci-home-cost-table--haul .sci-home-cost-corner--haul,
.sci-home-cost-table--haul .sci-home-cost-corner {
  min-width: 156px;
  height: 66px;
}
.sci-home-cost-table--terrain .sci-home-cost-corner::before,
.sci-home-cost-table--terrain .sci-home-cost-corner::after {
  display: none;
}
.sci-home-cost-table--terrain .sci-home-cost-corner-slash {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}
.sci-home-cost-table--terrain .sci-home-cost-corner-slash line {
  stroke: rgba(140, 210, 255, 0.9);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}
.sci-home-cost-table--terrain tbody td.col-voltage {
  padding: 0;
  width: auto;
  white-space: nowrap;
}
.sci-home-cost-table--terrain tbody td.col-cat {
  padding: 9px 10px;
  width: auto;
  white-space: nowrap;
  text-align: center;
}
.sci-home-cost-table--terrain tbody td.col-voltage .sci-home-cost-cell-select {
  display: inline-block;
  width: auto;
  min-width: 3.5em;
  padding: 9px 22px 9px 10px;
  border: none;
  border-radius: 0;
  background: transparent;
  text-align: center;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='5' viewBox='0 0 8 5'%3E%3Cpath fill='%2300d4ff' d='M0 0l4 5 4-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
}
.sci-home-cost-table--terrain tbody td.col-num {
  width: auto;
  white-space: nowrap;
}
.sci-home-cost-table--terrain .sci-home-cost-cell-input {
  display: inline-block;
  width: auto;
  min-width: 2.5em;
  box-sizing: content-box;
  field-sizing: content;
  padding: 9px 10px;
}
.sci-home-cost-table--terrain .sci-home-cost-corner-col {
  top: 7px;
  right: 6px;
  left: 50%;
  text-align: right;
  font-size: 12px;
  font-family: var(--font-main);
  color: var(--sci-cyan-dim);
  font-weight: 500;
  line-height: 1.25;
  z-index: 2;
  padding: 1px 3px;
  background: rgba(0, 212, 255, 0.08);
}
.sci-home-cost-table--terrain .sci-home-cost-corner-row {
  left: 6px;
  bottom: 7px;
  right: 50%;
  text-align: left;
  font-size: 12px;
  font-family: var(--font-main);
  color: var(--sci-cyan-dim);
  font-weight: 500;
  line-height: 1.25;
  z-index: 2;
  padding: 1px 3px;
  background: rgba(0, 212, 255, 0.08);
}
.sci-home-cost-table--haul .sci-home-cost-corner-col {
  top: 8px;
  right: 5px;
  left: 42%;
}
.sci-home-cost-table--haul .sci-home-cost-corner-row {
  left: 5px;
  bottom: 8px;
  right: 42%;
}
.sci-home-cost-corner {
  position: relative;
  width: 110px;
  min-width: 110px;
  height: 52px;
  padding: 0 !important;
  background: rgba(0, 212, 255, 0.08);
  overflow: hidden;
}
.sci-home-cost-corner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 49.5%, rgba(0, 212, 255, 0.35) 50%, transparent 50.5%);
}
.sci-home-cost-corner-col,
.sci-home-cost-corner-row {
  position: absolute;
  font-size: 11px;
  color: var(--sci-cyan-dim);
  line-height: 1.2;
}
.sci-home-cost-corner-col {
  top: 8px;
  right: 8px;
  text-align: right;
}
.sci-home-cost-corner-row {
  left: 8px;
  bottom: 8px;
  text-align: left;
}
.sci-home-cost-layout {
  min-height: 360px;
}
.sci-home-project-panel {
  display: none;
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 640px;
  flex-direction: column;
  border-radius: 10px;
  border: 1px solid rgba(0, 212, 255, 0.55);
  background: rgba(6, 14, 26, 0.88);
  backdrop-filter: blur(14px);
  box-shadow: 0 0 28px rgba(0, 212, 255, 0.2), 0 16px 48px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  z-index: 20;
}
.sci-home-project-panel.open {
  display: flex;
}
.sci-home-project-panel.has-add {
  width: 520px;
}
.sci-home-project-panel.has-add .sci-home-project-list {
  display: none;
}
.sci-home-project-panel-body {
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.sci-home-add-form {
  display: none;
  flex-direction: column;
  padding: 18px 20px 20px;
  flex: 1;
  min-height: 0;
}
.sci-home-project-panel.has-add .sci-home-add-form {
  display: flex;
}
.sci-home-add-form[hidden] {
  display: none !important;
}
.sci-home-add-fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  min-height: 0;
}
.sci-home-field-label--req::after {
  content: ' *';
  color: #ff8a9a;
}
.sci-home-combobox {
  position: relative;
}
.sci-home-combobox-list {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  margin: 0;
  padding: 4px 0;
  list-style: none;
  max-height: 160px;
  overflow-y: auto;
  border-radius: 8px;
  border: 1px solid rgba(0, 212, 255, 0.35);
  background: rgba(6, 14, 26, 0.96);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  z-index: 30;
}
.sci-home-combobox-list li {
  padding: 8px 12px;
  font-size: 13px;
  color: var(--sci-text);
  cursor: pointer;
}
.sci-home-combobox-list li:hover,
.sci-home-combobox-list li.active {
  background: rgba(0, 212, 255, 0.12);
  color: var(--sci-cyan);
}
.sci-home-combobox-list .sci-home-combobox-empty {
  color: var(--sci-text-dim);
  cursor: default;
  pointer-events: none;
}
.sci-home-combobox--multi .sci-home-member-tags:not(:empty) {
  margin-bottom: 4px;
}
.sci-home-combobox-list[hidden] {
  display: none;
}
.sci-home-member-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 0;
}
.sci-home-member-tags:empty {
  display: none;
}
.sci-home-member-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px 3px 10px;
  border-radius: 12px;
  border: 1px solid rgba(0, 212, 255, 0.35);
  background: rgba(0, 212, 255, 0.1);
  font-size: 12px;
  color: var(--sci-text);
}
.sci-home-member-tag button {
  border: none;
  background: transparent;
  color: var(--sci-text-dim);
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  padding: 0 2px;
}
.sci-home-member-tag button:hover {
  color: #ff8a9a;
}
.sci-home-field--error input,
.sci-home-field--error select,
.sci-home-field--error textarea {
  border-color: rgba(255, 100, 120, 0.65);
  box-shadow: 0 0 0 2px rgba(255, 80, 100, 0.12);
}
.sci-home-project-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  border-bottom: 1px solid rgba(0, 212, 255, 0.25);
  background: rgba(0, 212, 255, 0.06);
}
.sci-home-project-panel-head h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
}
.sci-home-panel-close {
  padding: 4px 14px;
  border: 1px solid rgba(0, 212, 255, 0.45);
  border-radius: 14px;
  background: rgba(0, 212, 255, 0.12);
  color: var(--sci-cyan);
  font-size: 12px;
  font-family: var(--font-main);
  cursor: pointer;
}
.sci-home-panel-close:hover {
  background: rgba(0, 212, 255, 0.22);
}
.sci-home-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sci-home-field span {
  font-size: 12px;
  color: var(--sci-text-dim);
}
.sci-home-field input,
.sci-home-field select,
.sci-home-field textarea {
  padding: 8px 10px;
  border: 1px solid rgba(0, 212, 255, 0.25);
  border-radius: 6px;
  background: rgba(0, 20, 40, 0.65);
  color: var(--sci-text);
  font-size: 13px;
  font-family: var(--font-main);
}
.sci-home-field--readonly input[readonly] {
  opacity: 0.72;
  cursor: not-allowed;
  background: rgba(0, 20, 40, 0.4);
  border-color: rgba(0, 212, 255, 0.15);
}
.sci-home-field textarea {
  resize: vertical;
  min-height: 72px;
}
.sci-home-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.sci-home-add-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 16px;
}
.sci-home-btn-primary {
  padding: 7px 16px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(180deg, #5ce8ff 0%, #00c8e8 100%);
  color: #0a1520;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-main);
  cursor: pointer;
}
.sci-home-btn-ghost {
  padding: 7px 16px;
  border: 1px solid rgba(0, 212, 255, 0.35);
  border-radius: 14px;
  background: transparent;
  color: var(--sci-text-dim);
  font-size: 13px;
  font-family: var(--font-main);
  cursor: pointer;
}
.sci-home-project-list {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.sci-home-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  border-bottom: 1px solid rgba(0, 212, 255, 0.12);
  font-size: 13px;
  color: var(--sci-text-dim);
}
.sci-home-list-head em {
  font-style: normal;
  color: var(--sci-text);
}
.sci-home-list-search {
  padding: 10px 18px 0;
}
.sci-home-list-search input {
  width: 100%;
  padding: 8px 12px 8px 34px;
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 6px;
  background: rgba(0, 20, 40, 0.65) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' viewBox='0 0 16 16'%3E%3Ccircle cx='7' cy='7' r='4.5' stroke='%2300d4ff' stroke-width='1.2'/%3E%3Cpath stroke='%2300d4ff' stroke-width='1.2' stroke-linecap='round' d='M10.5 10.5L14 14'/%3E%3C/svg%3E") 10px center no-repeat;
  color: var(--sci-text);
  font-size: 13px;
  font-family: var(--font-main);
  box-sizing: border-box;
}
.sci-home-list-search input::placeholder {
  color: rgba(180, 210, 230, 0.45);
}
.sci-home-list-search input:focus {
  outline: none;
  border-color: var(--sci-cyan);
  box-shadow: 0 0 0 2px rgba(0, 212, 255, 0.12);
}
.sci-home-project-items {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  max-height: 320px;
  padding-bottom: 8px;
}
.sci-home-list-empty {
  margin: 24px 18px;
  text-align: center;
  font-size: 13px;
  color: var(--sci-text-dim);
}
.sci-home-btn-add {
  padding: 5px 16px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(180deg, #5ce8ff 0%, #00c8e8 100%);
  color: #0a1520;
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font-main);
  cursor: pointer;
}
.sci-home-project-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border: 1px solid rgba(0, 212, 255, 0.2);
  margin: 14px 18px;
  border-radius: 8px;
  background: rgba(0, 212, 255, 0.03);
}
.sci-home-project-item-info h4 {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}
.sci-home-project-item-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 0;
  font-size: 12px;
  color: var(--sci-text-dim);
}
.sci-home-project-item-row--primary {
  margin-bottom: 6px;
}
.sci-home-project-item-name {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}
.sci-home-project-item-code {
  color: var(--sci-cyan-dim);
}
.sci-home-project-item-voltage {
  padding: 2px 8px;
  border-radius: 10px;
  border: 1px solid rgba(0, 212, 255, 0.35);
  background: rgba(0, 212, 255, 0.1);
  font-size: 11px;
  color: var(--sci-cyan);
  white-space: nowrap;
}
.sci-home-project-item-meta em {
  font-style: normal;
  color: var(--sci-text-dim);
  margin-right: 6px;
  opacity: 0.75;
}
.sci-home-project-item-info p {
  margin: 0;
  font-size: 12px;
  color: var(--sci-text-dim);
}
.sci-home-project-item-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.sci-home-act {
  padding: 5px 14px;
  border: 1px solid rgba(0, 212, 255, 0.4);
  border-radius: 14px;
  background: transparent;
  color: var(--sci-cyan-dim);
  font-size: 12px;
  font-family: var(--font-main);
  cursor: pointer;
  white-space: nowrap;
}
.sci-home-act--on {
  border-color: var(--sci-cyan);
  background: linear-gradient(180deg, #5ce8ff 0%, #00c8e8 100%);
  color: #0a1520;
  font-weight: 600;
}
.sci-home-act--danger {
  border-color: rgba(255, 100, 120, 0.5);
  color: #ff8a9a;
}
.sci-home-user {
  position: relative;
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
}
.sci-home-user-trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--home-ctrl-h);
  height: var(--home-ctrl-h);
  padding: 0;
  border: 1px solid rgba(0, 212, 255, 0.55);
  border-radius: 50%;
  background: rgba(4, 10, 18, 0.85);
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, opacity 0.25s, transform 0.25s;
  flex-shrink: 0;
  box-sizing: border-box;
}
.sci-home-user-trigger:hover {
  border-color: var(--sci-cyan);
  box-shadow: 0 0 16px rgba(0, 212, 255, 0.45);
}
.sci-home-user.open .sci-home-user-trigger {
  opacity: 0;
  transform: scale(0.85);
  pointer-events: none;
  position: absolute;
  right: 0;
}
.sci-home-user-avatar-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid rgba(0, 212, 255, 0.45);
  background: rgba(0, 40, 60, 0.5);
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.25);
  flex-shrink: 0;
}
.sci-home-user-avatar-icon--lg {
  width: 26px;
  height: 26px;
}
.sci-home-user-avatar-dot {
  display: block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #7ee8ff 0%, #00d4ff 55%, #00a8cc 100%);
  box-shadow: 0 0 8px rgba(0, 212, 255, 0.65);
}
.sci-home-user-avatar-icon--lg .sci-home-user-avatar-dot {
  width: 13px;
  height: 13px;
}
.sci-home-user-expand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: var(--home-ctrl-h);
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  margin-right: 0;
  padding: 0;
  border: 1px solid transparent;
  border-radius: calc(var(--home-ctrl-h) / 2);
  background: rgba(4, 10, 18, 0.92);
  backdrop-filter: blur(10px);
  box-sizing: border-box;
  transition: max-width 0.38s ease, opacity 0.3s ease, padding 0.38s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  white-space: nowrap;
}
.sci-home-user.open .sci-home-user-expand {
  max-width: 340px;
  opacity: 1;
  padding: 0 8px 0 12px;
  border-color: rgba(0, 212, 255, 0.55);
  box-shadow: 0 0 22px rgba(0, 212, 255, 0.18);
}
.sci-home-user-info {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.sci-home-user-name {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.03em;
  line-height: 1;
}
.sci-home-logout {
  padding: 4px 14px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(180deg, #5ce8ff 0%, #00c8e8 100%);
  color: #0a1520;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  font-family: var(--font-main);
  cursor: pointer;
  transition: box-shadow 0.2s, transform 0.15s;
  flex-shrink: 0;
  box-shadow: 0 0 8px rgba(0, 212, 255, 0.3);
}
.sci-home-logout:hover {
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.55);
  transform: translateY(-1px);
}
.sci-home-coords-pill {
  position: absolute;
  left: 50%;
  bottom: 40px;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 8px 22px;
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 20px;
  background: rgba(4, 10, 20, 0.78);
  backdrop-filter: blur(8px);
  font-size: 12px;
  color: var(--sci-text-dim);
  white-space: nowrap;
}
.sci-home-coords-pill span + span {
  padding-left: 20px;
  border-left: 1px solid rgba(0, 212, 255, 0.25);
}
.sci-home-status-hint {
  position: absolute;
  left: 28px;
  bottom: 22px;
  z-index: 6;
  max-width: min(620px, calc(100vw - 480px));
  padding: 7px 11px;
  border: 1px solid rgba(0, 212, 255, 0.28);
  border-radius: 7px;
  background: rgba(4, 14, 25, 0.84);
  backdrop-filter: blur(9px);
  font-size: 12px;
  font-weight: 600;
  color: var(--sci-cyan);
  text-shadow: 0 0 10px rgba(0, 212, 255, 0.45);
  pointer-events: auto;
  user-select: none;
}
.sci-home-status-hint[data-level="error"] {
  border-color: rgba(255, 142, 124, 0.52);
  color: #ffd0c5;
  text-shadow: 0 0 10px rgba(255, 90, 70, 0.32);
}
.sci-home-status-hint[hidden] {
  display: none !important;
}
.sci-home-bg.is-grid-cost-specify {
  cursor: crosshair;
}
.sci-home-version {
  position: absolute;
  right: 28px;
  bottom: 22px;
  z-index: 5;
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.04em;
  white-space: nowrap;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.85),
    0 2px 6px rgba(0, 0, 0, 0.65),
    0 0 12px rgba(0, 0, 0, 0.45);
  pointer-events: none;
  user-select: none;
}

/* 固定显示工程和方案上下文，避免在浮动面板之间切换时丢失数据归属。 */
.selectline-active-context {
  position: absolute;
  right: 28px;
  bottom: 58px;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: min(690px, calc(100vw - 56px));
  min-height: 30px;
  padding: 5px 7px 5px 11px;
  box-sizing: border-box;
  border: 1px solid rgba(89, 202, 230, 0.34);
  border-radius: 8px;
  background: rgba(4, 14, 25, 0.86);
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(10px);
  color: rgba(225, 247, 252, 0.7);
  font-size: 11px;
  white-space: nowrap;
}
.selectline-active-context[hidden] { display: none !important; }
.selectline-active-context-label { color: rgba(225, 247, 252, 0.48); }
.selectline-active-context-project,
.selectline-active-context-plan {
  max-width: 170px;
  overflow: hidden;
  color: #f0fdff;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.selectline-active-context-separator { color: rgba(128, 211, 226, 0.42); }
.selectline-active-context-state {
  padding: 3px 7px;
  border: 1px solid rgba(255, 189, 74, 0.34);
  border-radius: 999px;
  color: #ffd27e;
  font-size: 10px;
  font-weight: 700;
}
.selectline-active-context-state.is-ready {
  border-color: rgba(98, 223, 155, 0.34);
  color: #92edbc;
}
.selectline-active-context-state.is-busy {
  border-color: rgba(80, 209, 255, 0.44);
  color: #9eeeff;
}
.selectline-active-context-action {
  min-height: 24px;
  padding: 2px 9px;
  border: 1px solid rgba(79, 203, 232, 0.45);
  border-radius: 5px;
  background: rgba(13, 73, 96, 0.42);
  color: #b5f2ff;
  font: 700 10px/1 var(--font-main, sans-serif);
  cursor: pointer;
}
.selectline-active-context-action:hover,
.selectline-active-context-action:focus-visible { border-color: #00d4ff; color: #fff; outline: none; }
@media (max-width: 760px) {
  .selectline-active-context { right: 12px; left: 12px; bottom: 56px; max-width: none; overflow: hidden; }
  .selectline-active-context-label { display: none; }
  .selectline-active-context-project,
  .selectline-active-context-plan { max-width: 26vw; }
}

/* ── GIS 主场景背景 ── */
.sci-hub-bg {
  position: fixed;
  inset: 38px 0 0 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 45% at 55% 45%, rgba(20, 60, 90, 0.5) 0%, transparent 55%),
    radial-gradient(circle at 50% 50%, rgba(0, 40, 70, 0.3) 0%, transparent 50%),
    #030810;
}
.sci-hub-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 15% 25%, rgba(255,255,255,0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 85% 15%, rgba(255,255,255,0.4) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 45% 85%, rgba(255,255,255,0.35) 0%, transparent 100%),
    radial-gradient(1px 1px at 75% 65%, rgba(255,255,255,0.3) 0%, transparent 100%);
}
.sci-hub-bg::after {
  content: '';
  position: absolute;
  left: 30%;
  top: 20%;
  width: 42%;
  height: 55%;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 40%, rgba(40, 100, 60, 0.35) 0%, rgba(20, 50, 80, 0.2) 40%, transparent 70%);
  box-shadow: inset -20px -20px 60px rgba(0, 0, 0, 0.4);
}

.sci-page .app-shell,
.sci-page .workspace,
.sci-page > .top-bar { position: relative; z-index: 1; }

/* ── 顶栏 ── */
.sci-page .app-header,
.sci-page .top-bar {
  background: rgba(4, 12, 24, 0.75);
  border-bottom: 1px solid var(--sci-border);
  backdrop-filter: blur(8px);
  box-shadow: none;
}
.sci-page .app-header-brand,
.sci-page .logo-area { min-width: auto; }
.sci-page .app-brand-text,
.sci-page .logo-text,
.sci-page .project-title {
  color: var(--sci-text);
  text-shadow: 0 0 12px rgba(0, 212, 255, 0.3);
}
.sci-page .app-brand-icon path { fill: var(--sci-cyan); }

.sci-title-glow {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 0 16px rgba(0, 212, 255, 0.6);
  letter-spacing: 0.05em;
}

.app-header-nav,
.sci-pill-nav {
  display: flex;
  gap: 8px;
  align-items: center;
}
.sci-page .app-nav-item,
.sci-pill {
  padding: 8px 22px;
  border-radius: var(--sci-radius-pill);
  border: 1px solid var(--sci-border);
  background: transparent;
  color: var(--sci-cyan-dim);
  font-size: 14px;
  font-family: var(--font-main);
  cursor: pointer;
  transition: all 0.2s;
}
.sci-page .app-nav-item:hover,
.sci-pill:hover {
  border-color: var(--sci-cyan);
  color: #fff;
  box-shadow: 0 0 12px rgba(0, 212, 255, 0.2);
}
.sci-page .app-nav-item.active,
.sci-pill.active {
  background: var(--sci-cyan);
  border-color: var(--sci-cyan);
  color: #0a1520;
  font-weight: 600;
  box-shadow: var(--sci-cyan-glow);
}
.sci-page .app-nav-item svg { display: none; }

.sci-page .user-name { color: var(--sci-text); }
.sci-page .user-avatar {
  background: linear-gradient(135deg, var(--sci-cyan), #0088aa);
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.4);
}
.sci-page .user-trigger:hover { background: rgba(0, 212, 255, 0.1); }
.sci-page .user-menu {
  background: rgba(8, 20, 36, 0.95);
  border: 1px solid var(--sci-border);
  box-shadow: var(--sci-cyan-glow);
}
.sci-page .user-menu-item { color: var(--sci-text); }
.sci-page .user-menu-item:hover { background: rgba(0, 212, 255, 0.1); }

/* ── 玻璃面板 ── */
.glass-panel {
  background: var(--sci-glass);
  border: 1px solid var(--sci-border);
  border-radius: var(--sci-radius);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-card);
}

.sci-page .app-sidebar,
.sci-page .app-rail .rail-panel,
.sci-page .app-main,
.sci-page .basic-layout,
.sci-page .terrain-card,
.sci-page .weight-section,
.sci-page .module-icon-toolbar,
.sci-page .sidebar,
.sci-page .right-panel {
  background: var(--sci-glass);
  border-color: var(--sci-border);
  color: var(--sci-text);
  box-shadow: var(--shadow-card);
}
.sci-page .app-main { margin: 12px; }
.sci-page .app-sidebar,
.sci-page .basic-tree-panel {
  background: rgba(6, 14, 28, 0.85);
  border-right: 1px solid var(--sci-border);
}
.sci-page .sidebar-search input,
.sci-page .search-input,
.sci-page .select-sm,
.sci-page .weight-input,
.sci-page .terrain-filter-input {
  background: rgba(0, 20, 40, 0.6);
  border-color: var(--sci-border);
  color: var(--sci-text);
}
.sci-page .sidebar-item,
.sci-page .basic-tree-item,
.sci-page .basic-tree-group {
  color: var(--sci-text-dim);
}
.sci-page .sidebar-item.active,
.sci-page .basic-tree-item.active {
  background: var(--color-primary-light);
  color: var(--sci-cyan);
  border-left-color: var(--sci-cyan);
}
.sci-page .sidebar-group-title { color: var(--sci-text); }

.sci-page .data-table th,
.sci-page .data-table td {
  border-color: var(--sci-border);
  color: var(--sci-text);
}
.sci-page .data-table th {
  background: rgba(0, 212, 255, 0.08);
  color: var(--sci-cyan-dim);
}
.sci-page .data-table tbody tr:hover,
.sci-page .app-table tbody tr:hover { background: rgba(0, 212, 255, 0.08); }
.sci-page .data-table tbody tr.selected { background: rgba(0, 212, 255, 0.15); }

.sci-page .btn {
  background: rgba(0, 30, 50, 0.6);
  border-color: var(--sci-border);
  color: var(--sci-text);
}
.sci-page .btn:hover {
  border-color: var(--sci-cyan);
  color: var(--sci-cyan);
}
.sci-page .btn-primary {
  background: linear-gradient(180deg, #4de4ff, #00b8e6);
  border-color: var(--sci-cyan);
  color: #0a1520;
  font-weight: 600;
}
.sci-page .btn-primary:hover {
  box-shadow: var(--sci-cyan-glow);
  color: #0a1520;
}

.sci-page .toolbar-title,
.sci-page .module-page-title,
.sci-page .terrain-page-title,
.sci-page .basic-page-title,
.sci-page .weight-section-title {
  color: #fff;
}
.sci-page .module-page-sub,
.sci-page .terrain-page-sub,
.sci-page .basic-page-sub,
.sci-page .hint-text {
  color: var(--sci-text-dim);
}

/* ── 工程管理 Hub 布局 ── */
.sci-hub-layout {
  display: flex;
  flex: 1;
  min-height: 0;
  padding: 16px 20px 48px;
  gap: 16px;
  position: relative;
  z-index: 1;
}
.sci-dock {
  width: 260px;
  flex-shrink: 0;
  display: flex;
  border-radius: var(--sci-radius);
  overflow: hidden;
  border: 1px solid var(--sci-border);
  background: var(--sci-glass);
  backdrop-filter: blur(10px);
}
.sci-dock-tabs {
  width: 36px;
  display: flex;
  flex-direction: column;
  background: rgba(0, 0, 0, 0.3);
  border-right: 1px solid var(--sci-border);
}
.sci-dock-tab {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  padding: 16px 8px;
  border: none;
  background: transparent;
  color: var(--sci-text-dim);
  font-size: 12px;
  font-family: var(--font-main);
  cursor: pointer;
  letter-spacing: 0.1em;
  transition: all 0.2s;
}
.sci-dock-tab.active {
  color: var(--sci-cyan);
  background: rgba(0, 212, 255, 0.1);
  box-shadow: inset 2px 0 0 var(--sci-cyan);
}
.sci-dock-content {
  flex: 1;
  padding: 12px;
  overflow-y: auto;
}
.sci-project-quick {
  padding: 12px;
  margin-bottom: 8px;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
}
.sci-project-quick:hover { border-color: var(--sci-border); background: rgba(0,212,255,0.05); }
.sci-project-quick.active {
  border-color: var(--sci-cyan);
  background: rgba(0, 212, 255, 0.12);
  box-shadow: 0 0 12px rgba(0, 212, 255, 0.15);
}
.sci-project-quick h4 {
  font-size: 14px;
  color: #fff;
  margin-bottom: 4px;
}
.sci-project-quick p {
  font-size: 11px;
  color: var(--sci-text-dim);
  line-height: 1.5;
}
.sci-project-quick .sci-tag-active {
  display: inline-block;
  font-size: 11px;
  color: var(--sci-cyan);
  margin-top: 6px;
}
.sci-project-quick .btn-switch {
  margin-top: 8px;
  padding: 4px 12px;
  font-size: 12px;
  border-radius: 12px;
  border: 1px solid var(--sci-border);
  background: transparent;
  color: var(--sci-cyan-dim);
  cursor: pointer;
  font-family: var(--font-main);
}
.sci-project-quick .btn-switch:hover {
  border-color: var(--sci-cyan);
  color: var(--sci-cyan);
}

.sci-main-panel {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  border-radius: var(--sci-radius);
  border: 1px solid var(--sci-border-strong);
  background: var(--sci-glass);
  backdrop-filter: blur(12px);
  box-shadow: var(--sci-cyan-glow);
  overflow: hidden;
}
.sci-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--sci-border);
  background: rgba(0, 212, 255, 0.05);
}
.sci-panel-head h2 {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}
.sci-panel-close {
  padding: 4px 14px;
  border-radius: 14px;
  border: 1px solid var(--sci-border);
  background: transparent;
  color: var(--sci-text-dim);
  font-size: 13px;
  cursor: pointer;
  font-family: var(--font-main);
}
.sci-panel-subhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  border-bottom: 1px solid rgba(0, 212, 255, 0.1);
}
.sci-panel-subhead span { color: var(--sci-text-dim); font-size: 13px; }
.sci-project-card {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(0, 212, 255, 0.1);
  transition: background 0.2s;
}
.sci-project-card:hover { background: rgba(0, 212, 255, 0.05); }
.sci-project-card h3 {
  font-size: 15px;
  color: #fff;
  margin-bottom: 8px;
}
.sci-project-meta {
  font-size: 12px;
  color: var(--sci-text-dim);
  margin-bottom: 10px;
  line-height: 1.6;
}
.sci-project-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.sci-project-actions .btn-sci {
  padding: 5px 16px;
  border-radius: 14px;
  border: 1px solid var(--sci-border);
  background: transparent;
  color: var(--sci-cyan-dim);
  font-size: 13px;
  cursor: pointer;
  font-family: var(--font-main);
  transition: all 0.2s;
}
.sci-project-actions .btn-sci:hover,
.sci-project-actions .btn-sci--primary {
  border-color: var(--sci-cyan);
  color: var(--sci-cyan);
  box-shadow: 0 0 8px rgba(0, 212, 255, 0.2);
}
.sci-project-actions .btn-sci--primary {
  background: rgba(0, 212, 255, 0.15);
}
.sci-project-actions .btn-sci--danger {
  border-color: rgba(255, 100, 120, 0.5);
  color: #ff8a9a;
}
.sci-project-actions .btn-sci--danger:hover {
  box-shadow: 0 0 8px rgba(255, 80, 100, 0.3);
}

/* ── 底部状态栏 ── */
.sci-status-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  background: rgba(4, 10, 20, 0.9);
  border-top: 1px solid var(--sci-border);
  font-size: 12px;
  color: var(--sci-text-dim);
}
.sci-status-bar .sci-coords span { margin-right: 20px; }

/* ── 工作台 / 地图 ── */
.sci-page .top-bar .tab {
  color: var(--sci-text-dim);
  border: 1px solid transparent;
  border-radius: var(--sci-radius-pill);
}
.sci-page .top-bar .tab.active {
  background: rgba(0, 212, 255, 0.15);
  border-color: var(--sci-cyan);
  color: var(--sci-cyan);
}
.sci-page .flow-bar {
  background: rgba(4, 12, 24, 0.8);
  border-bottom: 1px solid var(--sci-border);
}
.sci-page .flow-step { color: var(--sci-text-dim); }
.sci-page .flow-step.active { color: var(--sci-cyan); }
.sci-page .map-area { background: transparent; }
.sci-page .status-bar {
  background: rgba(4, 10, 20, 0.9);
  border-top: 1px solid var(--sci-border);
  color: var(--sci-text-dim);
}
.sci-page .menu-item,
.sci-page .menu-title { color: var(--sci-text-dim); }
.sci-page .menu-item.active,
.sci-page .menu-item:hover { color: var(--sci-cyan); background: rgba(0,212,255,0.08); }
.sci-page .panel-header {
  border-bottom: 1px solid var(--sci-border);
  background: rgba(0, 212, 255, 0.05);
}
.sci-page .panel-header h3 { color: #fff; }

/* ── 弹窗 ── */
.sci-page .modal-dialog,
.modal-dialog {
  background: rgba(8, 18, 32, 0.95);
  border: 1px solid var(--sci-border);
  box-shadow: var(--sci-cyan-glow);
  color: var(--sci-text);
}
.sci-page .modal-header,
.modal-header {
  border-bottom: 1px solid var(--sci-border);
  background: rgba(0, 212, 255, 0.05);
}
.sci-page .modal-header h3,
.modal-header h3 { color: #fff; }
.sci-page .modal-body .form-group label,
.modal-body .form-group label { color: var(--sci-text-dim); }
.sci-page .modal-body input,
.sci-page .modal-body select,
.sci-page .modal-body textarea,
.modal-body input,
.modal-body select,
.modal-body textarea {
  background: rgba(0, 20, 40, 0.6);
  border-color: var(--sci-border);
  color: var(--sci-text);
}
.sci-page .modal-footer,
.modal-footer { border-top: 1px solid var(--sci-border); }
.sci-page .modal-backdrop,
.modal-backdrop { background: rgba(0, 5, 15, 0.75); }

/* Unified dark-native controls: the browser option list must remain legible
   when a panel is opened over the GIS viewport. */
.sci-page select,
.sci-home select,
.sci-home-field select,
.sci-page .select-sm,
.sci-page .modal-body select,
.modal select {
  color-scheme: dark;
  color: var(--sci-text) !important;
  background: rgba(0, 20, 40, 0.86) !important;
  border-color: var(--sci-border) !important;
}
.sci-page select option,
.sci-home select option,
.sci-home-field select option,
.sci-page .modal select option,
.modal select option {
  color: #eaf8ff !important;
  background: #07192b !important;
}
.sci-page select option:checked,
.sci-home select option:checked,
.sci-home-field select option:checked,
.sci-page .modal select option:checked,
.modal select option:checked {
  color: #06121d !important;
  background: #45d9f0 !important;
}

.sci-page .terrain-tab.active,
.sci-page .tab-inner.active,
.sci-page .factor-tab.active {
  color: var(--sci-cyan);
  border-bottom-color: var(--sci-cyan);
  background: rgba(0, 212, 255, 0.08);
}
.sci-page .voltage-tag {
  background: rgba(0, 212, 255, 0.15);
  color: var(--sci-cyan);
}
.sci-page .table-actions a { color: var(--sci-cyan); }

.sci-page.app-page { background: transparent; }
.sci-page .app-shell { background: transparent; min-height: calc(100vh - 38px); }
.sci-page .app-body { background: transparent; }
.sci-page .top-bar--dark {
  background: rgba(4, 12, 24, 0.85);
  border-bottom: 1px solid var(--sci-border);
}
.sci-page .top-bar--dark .user-badge {
  background: rgba(0, 212, 255, 0.1);
  border-color: var(--sci-border);
  color: var(--sci-cyan-dim);
}
.sci-page.app-page .app-shell { padding-bottom: 36px; }


/* 公共库上传区 */
.sci-upload-form {
  padding: 20px;
  display: grid;
  gap: 14px;
}
.sci-upload-form .form-row {
  display: grid;
  grid-template-columns: 100px 1fr;
  align-items: center;
  gap: 12px;
}
.sci-upload-form label { color: var(--sci-text-dim); font-size: 13px; }
.sci-lib-tabs {
  display: flex;
  gap: 0;
  padding: 0 20px;
  border-bottom: 1px solid var(--sci-border);
}
.sci-lib-tab {
  padding: 10px 20px;
  border: none;
  background: transparent;
  color: var(--sci-text-dim);
  font-size: 14px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  font-family: var(--font-main);
}
.sci-lib-tab.active {
  color: var(--sci-cyan);
  border-bottom-color: var(--sci-cyan);
}

/* ── 工程内基础数据管理浮层 ── */
.sci-home-basic-panel {
  width: 1020px;
  max-width: min(1180px, calc(100vw - 40px));
}
.sci-home-basic-panel.open {
  display: flex;
}

/* ── 基础数据 — 添加图层数据二级浮层 ── */
.sci-home-basic-layer-panel {
  width: 900px;
  max-width: min(980px, calc(100vw - 40px));
}
.sci-home-basic-layer-panel.open {
  display: flex;
  flex-direction: column;
  min-height: 420px;
  z-index: 101;
}
.sci-home-basic-layer-body {
  display: flex;
  flex-direction: column;
  min-height: 0;
  width: 100%;
  box-sizing: border-box;
}
.sci-home-basic-layer-body #home-basic-layer-host {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 2px;
}
.sci-home-basic-layer-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.sci-home-basic-layer-search {
  flex: 1 1 auto;
  min-width: 160px;
  max-width: 280px;
}
.sci-home-basic-layer-cat {
  margin-left: auto;
  font-size: 12px;
  color: var(--sci-text-muted);
  white-space: nowrap;
}
.sci-home-basic-layer-cat strong {
  color: var(--sci-cyan);
  font-weight: 600;
}
.sci-home-basic-layer-layout {
  flex: 1;
  min-height: 280px;
}
.sci-home-basic-layer-side-head {
  gap: 8px;
}
.sci-home-basic-layer-count {
  margin-left: auto;
  font-size: 11px;
  color: var(--sci-text-muted);
  white-space: nowrap;
}
.sci-home-basic-layer-table-wrap {
  max-height: 300px;
  overflow: auto;
}
.sci-home-basic-layer-table .col-seq {
  width: 56px;
  text-align: center;
}
.sci-home-basic-layer-table .col-data-name {
  min-width: 120px;
}
.sci-home-basic-layer-table .col-layer-name {
  min-width: 100px;
}
.sci-home-basic-layer-table .col-op {
  width: 72px;
  text-align: center;
}
.sci-home-basic-layer-footer {
  margin-top: 0;
  padding: 10px 18px 12px;
}

/* ── 工程内地形特性分析浮层（参考原图 + 选线造价风格） ── */
.sci-home-terrain-feature-panel {
  width: 420px;
  max-width: min(480px, calc(100vw - 40px));
}
.sci-home-terrain-feature-panel.open {
  display: flex;
}
.sci-home-terrain-feature-body {
  display: flex;
  flex-direction: column;
  min-height: 0;
  width: 100%;
  box-sizing: border-box;
}
.sci-home-terrain-feature-content {
  flex: 1;
  min-height: 0;
  padding: 16px 18px 12px;
  background: rgba(0, 12, 24, 0.35);
  box-sizing: border-box;
}
.sci-home-terrain-feature-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.sci-home-terrain-name-row {
  display: grid;
  grid-template-columns: 48px 1fr;
  align-items: center;
  gap: 10px;
}
.sci-home-terrain-name-label {
  font-size: 13px;
  color: var(--sci-text-dim);
  text-align: right;
}
.sci-home-terrain-name-row .sci-home-cost-cell-input {
  width: 100%;
  box-sizing: border-box;
}
.sci-home-terrain-points-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.sci-home-terrain-point-group {
  margin: 0;
  min-width: 0;
  padding: 12px 14px 14px;
  border: 1px solid rgba(0, 212, 255, 0.22);
  border-radius: 8px;
  background: rgba(0, 10, 20, 0.4);
}
.sci-home-terrain-point-group legend {
  padding: 0 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--sci-cyan);
}
.sci-home-terrain-coord-row {
  display: grid;
  grid-template-columns: 40px 1fr;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}
.sci-home-terrain-coord-row:first-of-type {
  margin-top: 6px;
}
.sci-home-terrain-coord-label {
  font-size: 12px;
  color: var(--sci-text-dim);
  text-align: right;
}
.sci-home-terrain-coord-input {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.sci-home-terrain-coord-input .sci-home-cost-cell-input {
  flex: 1;
  min-width: 0;
  box-sizing: border-box;
}
.sci-home-terrain-coord-unit {
  flex-shrink: 0;
  font-size: 13px;
  color: var(--sci-text-dim);
  min-width: 14px;
}
.sci-home-terrain-feature-form.is-readonly .sci-home-terrain-point-group .sci-home-cost-cell-input:read-only {
  color: var(--sci-text-dim);
  cursor: default;
}

/* DEM extraction panel */
.selectline-dem-export-form { display: flex; flex-direction: column; gap: 16px; }
.selectline-dem-export-summary { padding: 14px 16px; border: 1px solid rgba(0,212,255,.2); border-radius: 10px; background: linear-gradient(135deg, rgba(0,212,255,.1), rgba(5,18,33,.55)); }
.selectline-dem-export-eyebrow { color: var(--sci-text-dim); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.selectline-dem-export-title { margin-top: 6px; color: var(--sci-text); font-size: 18px; font-weight: 650; }
.selectline-dem-export-range { margin-top: 7px; color: var(--sci-text-dim); font-size: 12px; line-height: 1.5; word-break: break-all; }
.selectline-dem-export-form .sci-home-field { display: flex; flex-direction: column; gap: 7px; }
.selectline-dem-export-form .sci-home-field select { width: 100%; min-height: 36px; padding: 0 10px; border: 1px solid rgba(142,185,208,.24); border-radius: 7px; color: var(--sci-text); background: rgba(5,14,24,.85); }
.selectline-dem-export-source-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.selectline-dem-export-source-tab { display: flex; align-items: center; justify-content: space-between; gap: 6px; min-height: 38px; padding: 0 11px; border: 1px solid rgba(142,185,208,.24); border-radius: 7px; color: var(--sci-text-dim); background: rgba(5,14,24,.72); cursor: pointer; font-size: 12px; }
.selectline-dem-export-source-tab span { color: var(--sci-text-dim); font-size: 10px; }
.selectline-dem-export-source-tab.is-active { border-color: rgba(0,212,255,.62); color: var(--sci-text); background: rgba(0,160,210,.18); box-shadow: 0 0 0 1px rgba(0,212,255,.12) inset; }
.selectline-dem-export-source-tab:disabled { cursor: not-allowed; opacity: .45; }
.selectline-dem-export-help { color: var(--sci-text-dim); font-size: 11px; line-height: 1.45; }
.selectline-dem-export-precision { margin-top: 7px; color: #8ed8c2; font-size: 11px; line-height: 1.45; }
.selectline-dem-export-progress { padding: 12px 13px; border-radius: 8px; background: rgba(7,22,37,.72); }
.selectline-dem-export-progress[hidden] { display: none; }
.selectline-dem-export-progress-head { display: flex; justify-content: space-between; gap: 12px; color: var(--sci-text-dim); font-size: 12px; }
.selectline-dem-export-progress-head strong { color: var(--sci-cyan); font-variant-numeric: tabular-nums; }
.selectline-dem-export-progress-track { height: 6px; margin-top: 9px; overflow: hidden; border-radius: 99px; background: rgba(255,255,255,.1); }
.selectline-dem-export-progress-track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #00b8d9, #00e5a0); transition: width .22s ease; }
.selectline-dem-export-meta { margin-top: 7px; color: var(--sci-text-dim); font-size: 11px; }
.selectline-dem-export-result { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border: 1px solid rgba(0,229,160,.24); border-radius: 8px; color: #a8e8d0; font-size: 12px; }
.selectline-dem-export-result .sci-home-btn-primary { flex: 0 0 auto; padding: 7px 12px; text-decoration: none; }
.selectline-dem-export-footer-status { min-width: 0; flex: 1; color: var(--sci-text-dim); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sci-home-terrain-footer-mode {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex-wrap: wrap;
}
.sci-home-terrain-switch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
  flex-shrink: 0;
}
.sci-home-terrain-switch input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.sci-home-terrain-switch-track {
  position: relative;
  width: 36px;
  height: 20px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.22);
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
  flex-shrink: 0;
}
.sci-home-terrain-switch-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(210, 225, 235, 0.9);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease, background 0.2s;
}
.sci-home-terrain-switch input:checked + .sci-home-terrain-switch-track {
  background: rgba(0, 212, 255, 0.25);
  border-color: rgba(0, 212, 255, 0.55);
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.18);
}
.sci-home-terrain-switch input:checked + .sci-home-terrain-switch-track .sci-home-terrain-switch-thumb {
  transform: translateX(16px);
  background: #fff;
}
.sci-home-terrain-switch-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--sci-text);
}

/* ── 工程内地形分析管理浮层（对齐选线造价-基准价） ── */
.sci-home-terrain-manage-panel {
  width: fit-content;
  min-width: 420px;
  max-width: min(520px, calc(100vw - 40px));
}
.sci-home-terrain-manage-panel.open {
  display: flex;
}
.sci-home-terrain-manage-body {
  display: flex;
  flex-direction: column;
  min-height: 0;
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px 0;
}
.sci-home-terrain-manage-content {
  flex: 0 0 auto;
  width: 100%;
  min-height: 0;
  padding: 0;
  background: transparent;
}
.sci-home-terrain-manage-table-wrap {
  flex: 0 0 auto;
  min-height: 0;
  padding: 0;
}
.sci-home-terrain-manage-table th.col-display,
.sci-home-terrain-manage-table td.col-display {
  width: 88px;
  text-align: center;
}
.sci-home-terrain-manage-table th.col-name,
.sci-home-terrain-manage-table td.col-name {
  width: 110px;
  text-align: center;
}
.sci-home-terrain-manage-table th.col-ops,
.sci-home-terrain-manage-table td.col-ops {
  width: 140px;
  text-align: center;
}
.sci-home-terrain-manage-table .sci-home-annotate-th-check,
.sci-home-terrain-manage-table .sci-home-annotate-row-check {
  justify-content: center;
}
.sci-home-terrain-manage-table .sci-home-weight-op-btns {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: nowrap;
}
.sci-home-terrain-manage-footer {
  padding: 10px 14px 12px;
  margin-top: 0;
}
.sci-home-terrain-manage-actions {
  width: 100%;
  justify-content: space-between;
  margin-top: 0;
  padding-top: 0;
  margin-left: 0;
}
.sci-home-terrain-manage-actions-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* ── 地形分析管理：采样参数区、任务进度、结果配色与切片等级 ── */
/* 状态列后共 6 列，需比原先更宽才不挤压颜色与切片等级两列。 */
.sci-home-terrain-manage-panel {
  min-width: 660px;
  max-width: min(860px, calc(100vw - 40px));
}
.sci-home-terrain-run-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 2px 0 10px;
}
.sci-home-terrain-run-field {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: rgba(198, 224, 255, 0.85);
}
.sci-home-terrain-run-field .sci-home-cost-cell-input {
  width: 88px;
}
.sci-home-terrain-run-btn {
  flex-shrink: 0;
}
.sci-home-terrain-run-hint {
  font-size: 11px;
  color: rgba(198, 224, 255, 0.55);
}
.sci-home-terrain-job {
  padding: 8px 10px;
  margin: 0 0 10px;
  border: 1px solid rgba(0, 212, 255, 0.25);
  border-radius: 8px;
  background: rgba(0, 60, 92, 0.25);
}
.sci-home-terrain-job-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  color: rgba(198, 224, 255, 0.9);
}
.sci-home-terrain-job-percent {
  font-variant-numeric: tabular-nums;
  color: #00d4ff;
}
.sci-home-terrain-job-bar {
  height: 4px;
  margin-top: 6px;
  border-radius: 2px;
  background: rgba(0, 212, 255, 0.15);
  overflow: hidden;
}
.sci-home-terrain-job-bar span {
  display: block;
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, #00d4ff, #38e1ff);
  transition: width 0.4s ease;
}
/* 行高与单元格垂直对齐统一：有数据行的输入框/色块与无数据行的占位符同高，
   各行内容都严格居中，避免出现逐行参差。 */
.sci-home-terrain-manage-table tbody td {
  height: 46px;
  vertical-align: middle;
  text-align: center;
  padding-top: 0;
  padding-bottom: 0;
}
.sci-home-terrain-manage-table td.col-color,
.sci-home-terrain-manage-table td.col-zoom {
  line-height: 1;
}
.sci-home-terrain-manage-table th.col-seq,
.sci-home-terrain-manage-table td.col-seq {
  width: 56px;
  text-align: center;
}

.sci-home-terrain-manage-table th.col-status,
.sci-home-terrain-manage-table td.col-status {
  width: 132px;
  text-align: center;
}
/* 两种状态文案字数不同，定宽居中后徽标左右边界在各行对齐，不随文案长短跳动。 */
.sci-home-terrain-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 104px;
  height: 26px;
  font-style: normal;
  font-size: 12px;
  line-height: 1;
  padding: 0 10px;
  box-sizing: border-box;
  border-radius: 999px;
  white-space: nowrap;
}
.sci-home-terrain-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}
.sci-home-terrain-status.is-ok {
  color: #35e08e;
  border: 1px solid rgba(53, 224, 142, 0.4);
  background: rgba(53, 224, 142, 0.12);
}
.sci-home-terrain-status.is-missing {
  color: rgba(255, 179, 102, 0.92);
  border: 1px solid rgba(255, 179, 102, 0.38);
  background: rgba(255, 179, 102, 0.1);
}
.sci-home-terrain-manage-table th.col-color,
.sci-home-terrain-manage-table td.col-color {
  width: 132px;
  text-align: center;
}
.sci-home-terrain-manage-table th.col-zoom,
.sci-home-terrain-manage-table td.col-zoom {
  width: 160px;
  text-align: center;
}
.sci-home-terrain-name-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: nowrap;
}
.sci-home-terrain-name-line strong {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
/* 占位符与有数据行的控件同高（28px），保证占位行与数据行的基线一致。 */
.sci-home-terrain-manage-table .sci-home-terrain-empty {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  line-height: 1;
}
.sci-home-terrain-empty {
  color: rgba(198, 224, 255, 0.4);
}
.sci-home-terrain-row-display {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.sci-home-terrain-eye-disabled {
  color: rgba(198, 224, 255, 0.35);
  font-size: 12px;
}
/* 无数据结果的显隐按钮：占位但不可点击，保持各行操作列宽度一致。 */
.sci-home-act-eye.is-disabled {
  color: rgba(198, 224, 255, 0.3);
  background: rgba(159, 177, 191, 0.06);
  border-color: rgba(159, 177, 191, 0.22);
  cursor: not-allowed;
  opacity: 1;
}
.sci-home-act-eye.is-disabled:hover {
  background: rgba(159, 177, 191, 0.06);
  border-color: rgba(159, 177, 191, 0.22);
  box-shadow: none;
}
.sci-home-act-eye.is-disabled svg {
  opacity: 0.55;
}

.sci-home-terrain-palette {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 28px;
}
.sci-home-terrain-palette-item {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}
.sci-home-terrain-palette-item input[type="color"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  border: none;
  padding: 0;
}
.sci-home-terrain-palette-swatch {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  display: inline-block;
  pointer-events: none;
}
.sci-home-terrain-zoom {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 28px;
}
.sci-home-terrain-zoom .sci-home-cost-cell-input {
  width: 56px;
  height: 28px;
  text-align: center;
}
.sci-home-terrain-zoom span {
  font-size: 11px;
  color: rgba(198, 224, 255, 0.55);
}
.sci-home-terrain-foot-hint {
  margin: 10px 0 0;
  font-size: 11px;
  color: rgba(198, 224, 255, 0.5);
}

/* ── 工程内计算网格成本浮层（对齐地形特性分析） ── */
.sci-home-grid-cost-panel {
  width: 440px;
  max-width: min(500px, calc(100vw - 40px));
}
.sci-home-grid-cost-panel.open {
  display: flex;
}
.sci-home-grid-cost-body {
  display: flex;
  flex-direction: column;
  min-height: 0;
  width: 100%;
  box-sizing: border-box;
}
.sci-home-grid-cost-content {
  flex: 1;
  min-height: 0;
  padding: 0 18px 8px;
  background: rgba(0, 12, 24, 0.35);
  box-sizing: border-box;
}
.sci-home-grid-cost-tabs {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin: 0 -18px 12px;
  padding: 0 18px;
  border-bottom: 1px solid rgba(0, 212, 255, 0.2);
}
.sci-home-grid-cost-tab {
  padding: 8px 16px;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  background: transparent;
  color: var(--sci-text-dim);
  font-size: 13px;
  font-family: var(--font-main);
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}
.sci-home-grid-cost-tab:hover {
  color: var(--sci-cyan);
}
.sci-home-grid-cost-tab.active {
  color: var(--sci-cyan);
  border-bottom-color: var(--sci-cyan);
  font-weight: 600;
}
.sci-home-grid-cost-tab-panel {
  min-height: 0;
}
.sci-home-grid-cost-basic-form .sci-home-grid-cost-method-group,
.sci-home-grid-cost-basic-form .sci-home-grid-cost-range-group {
  margin: 0;
}
.sci-home-grid-cost-basic-form .sci-home-grid-cost-range-group .sci-home-terrain-points-row {
  gap: 12px;
}
.sci-home-grid-cost-method-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 4px;
}
.sci-home-grid-cost-check--cost {
  margin-left: auto;
}
.sci-home-grid-cost-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--sci-text);
  cursor: pointer;
  user-select: none;
}
.sci-home-grid-cost-check input {
  accent-color: var(--sci-cyan);
}
.sci-home-grid-cost-table-wrap {
  padding: 0;
  min-height: 0;
}
.sci-home-grid-cost-factor-group .sci-home-grid-cost-table-wrap {
  width: 100%;
  max-width: 100%;
  align-self: stretch;
  align-items: stretch;
  overflow: visible;
}
.sci-home-grid-cost-table .col-seq {
  width: 88px;
  text-align: center;
}
.sci-home-grid-cost-table .col-name,
.sci-home-grid-cost-table .col-factor {
  text-align: center;
}
.sci-home-grid-cost-factor-group .sci-home-cost-grid-wrap--fit {
  width: 100%;
  max-width: 100%;
  align-self: stretch;
}
.sci-home-grid-cost-factor-group .sci-home-grid-cost-table {
  width: 100%;
  max-width: 100%;
  table-layout: fixed;
}
.sci-home-grid-cost-factor-group .sci-home-grid-cost-table .col-seq {
  width: 88px;
}
.sci-home-grid-cost-factor-group .sci-home-grid-cost-table .col-factor {
  width: auto;
  text-align: left;
  padding-left: 14px;
  padding-right: 14px;
  white-space: normal;
  word-break: keep-all;
  overflow-wrap: break-word;
}
.sci-home-grid-cost-factor-group .sci-home-grid-cost-table th.col-factor,
.sci-home-grid-cost-factor-group .sci-home-grid-cost-table td.col-factor {
  white-space: normal;
}
.sci-home-grid-cost-factor-group .sci-home-grid-cost-table th.col-factor {
  text-align: left;
  padding-left: 14px;
}
.sci-home-grid-cost-factor-group .sci-home-grid-cost-table td.col-factor.sci-home-cost-readonly {
  text-align: left;
}
.sci-home-grid-cost-table .col-name .sci-home-cost-cell-input {
  width: 100%;
  box-sizing: border-box;
}
.sci-home-grid-cost-table-wrap.sci-home-grid-cost-table-wrap--weight {
  width: 100%;
  max-width: 100%;
  align-self: stretch;
  align-items: stretch;
}
.sci-home-grid-cost-table-wrap--weight .sci-home-cost-grid-wrap--fit {
  width: 100%;
  max-width: 100%;
  align-self: stretch;
}
.sci-home-grid-cost-table-wrap--weight .sci-home-grid-cost-table {
  width: 100%;
  max-width: 100%;
  table-layout: fixed;
}
.sci-home-grid-cost-table-wrap--weight .sci-home-grid-cost-table .col-name {
  text-align: left;
  padding-left: 14px;
}
.sci-home-grid-cost-scheme-row {
  display: grid;
  grid-template-columns: 72px 1fr;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.sci-home-grid-cost-scheme-label {
  font-size: 13px;
  color: var(--sci-text-dim);
  text-align: right;
}
.sci-home-grid-cost-scheme-row .sci-home-cost-cell-select {
  width: 100%;
  box-sizing: border-box;
}
.sci-home-grid-cost-cost-form {
  width: 100%;
  box-sizing: border-box;
}
.sci-home-grid-cost-factor-group {
  margin: 0;
  padding-bottom: 10px;
  width: 100%;
  box-sizing: border-box;
}
.sci-home-grid-cost-factor-group legend {
  margin-bottom: 8px;
}
.sci-home-grid-cost-footer {
  margin-top: 0;
  padding: 10px 18px 12px;
}
.sci-home-grid-cost-footer.sci-home-weight-footer {
  flex-wrap: nowrap;
  align-items: center;
  gap: 10px;
}
.sci-home-grid-cost-footer .sci-home-weight-footer-left {
  flex-shrink: 0;
}
.sci-home-grid-cost-footer .sci-home-add-actions {
  flex-wrap: nowrap;
  gap: 6px;
  margin-left: auto;
}

/* ── 工程内智能选线浮层（对齐计算网格成本） ── */
.sci-home-smart-line-panel {
  width: 880px;
  max-width: min(980px, calc(100vw - 28px));
  max-height: min(760px, calc(100vh - 28px));
}
.sci-home-smart-line-panel.open,
.sci-home-smart-line-settings-panel.open,
.sci-home-smart-line-results-panel.open {
  display: flex;
  flex-direction: column;
}
.sci-home-smart-line-body {
  display: flex;
  flex-direction: column;
  min-height: 0;
  width: 100%;
  box-sizing: border-box;
}
.sci-home-smart-line-content {
  flex: 1;
  min-height: 0;
  padding: 0 18px 12px;
  background: rgba(0, 12, 24, 0.35);
  box-sizing: border-box;
  overflow: auto;
}
.sci-home-smart-line-tabs {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 0;
  margin: 0 -18px 12px;
  padding: 0 12px;
  border-bottom: 1px solid rgba(0, 212, 255, 0.2);
}
.home-smart-line-readiness {
  display: grid;
  gap: 8px;
  margin: 0 -4px 12px;
  padding: 9px 11px;
  border: 1px solid rgba(85, 186, 220, 0.22);
  border-radius: 8px;
  background: rgba(8, 28, 47, 0.58);
}
.home-smart-line-readiness-head,
.home-smart-line-readiness-items { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.home-smart-line-readiness-head { justify-content: space-between; color: #b9d9e8; font-size: 11px; }
.home-smart-line-readiness-head strong { font-size: 11px; }
.home-smart-line-readiness-head strong.is-ready { color: #8ce9b6; }
.home-smart-line-readiness-head strong.is-pending { color: #ffd27e; }
.home-smart-line-readiness-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 26px;
  padding: 3px 8px;
  border: 1px solid rgba(136, 207, 220, 0.18);
  border-radius: 5px;
  background: rgba(5, 25, 36, 0.75);
  color: rgba(226, 248, 252, 0.7);
  font: 600 10px/1 var(--font-main, sans-serif);
  cursor: pointer;
}
.home-smart-line-readiness-item small { color: #ffcf73; font-size: 9px; }
.home-smart-line-readiness-item.is-ready small { color: #8ce9b6; }
.home-smart-line-readiness-item:hover,
.home-smart-line-readiness-item:focus-visible { border-color: #00d4ff; color: #f2feff; outline: none; }
.sci-home-smart-line-tab {
  padding: 8px 12px;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  background: transparent;
  color: var(--sci-text-dim);
  font-size: 12px;
  font-family: var(--font-main);
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s, border-color 0.15s;
}
.sci-home-smart-line-tab:hover {
  color: var(--sci-cyan);
}
.sci-home-smart-line-tab.active {
  color: var(--sci-cyan);
  border-bottom-color: var(--sci-cyan);
  font-weight: 600;
}
.sci-home-smart-line-tab-panel {
  min-height: 0;
}
.sci-home-smart-line-layout {
  display: grid;
  grid-template-columns: minmax(248px, 30%) minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
  min-height: 430px;
}
.sci-home-smart-line-layout.is-list-only {
  grid-template-columns: minmax(0, 1fr);
}
.sci-home-smart-line-layout.is-list-only .home-smart-line-path-manager {
  min-height: 430px;
}
.home-smart-line-path-manager,
.home-smart-line-path-editor {
  min-width: 0;
  border: 1px solid rgba(0, 212, 255, 0.18);
  border-radius: 8px;
  background: rgba(6, 18, 31, 0.64);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}
.home-smart-line-path-manager {
  display: flex;
  flex-direction: column;
  padding: 12px;
  min-height: 0;
}
.home-smart-line-manager-head,
.home-smart-line-editor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.home-smart-line-editor-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.home-smart-line-manager-head > div,
.home-smart-line-editor-head > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.home-smart-line-manager-head strong,
.home-smart-line-editor-head strong {
  overflow: hidden;
  color: var(--sci-text);
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.home-smart-line-eyebrow {
  color: var(--sci-cyan);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.home-smart-line-add-btn {
  flex-shrink: 0;
  padding: 6px 10px;
  font-size: 12px;
}
.home-smart-line-search {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 10px;
  color: var(--sci-text-dim);
  font-size: 11px;
}
.home-smart-line-search input {
  width: 100%;
  min-height: 30px;
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 5px;
  padding: 5px 8px;
  color: var(--sci-text);
  background: rgba(0, 8, 18, 0.72);
  box-sizing: border-box;
}
.home-smart-line-bulkbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 9px;
  padding: 6px 8px;
  border: 1px solid rgba(126, 170, 194, 0.14);
  border-radius: 5px;
  color: var(--sci-text-muted, #8297a6);
  background: rgba(0, 8, 18, 0.36);
  font-size: 11px;
}
.home-smart-line-bulkbar strong {
  color: var(--sci-cyan);
  font-weight: 600;
}
.home-smart-line-bulk-actions {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.home-smart-line-link-btn {
  border: 0;
  padding: 2px 0;
  color: var(--sci-text-dim);
  background: transparent;
  font: inherit;
  cursor: pointer;
}
.home-smart-line-link-btn:hover,
.home-smart-line-link-btn--accent {
  color: var(--sci-cyan);
}
.home-smart-line-link-btn:disabled {
  color: var(--sci-text-muted, #8297a6);
  cursor: not-allowed;
  opacity: 0.45;
}
.home-smart-line-path-list {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 7px;
  min-height: 0;
  overflow: auto;
  padding-right: 2px;
}
.home-smart-line-path-row {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 6px;
  min-height: 62px;
  border: 1px solid rgba(126, 170, 194, 0.16);
  border-radius: 6px;
  padding: 7px 6px;
  color: var(--sci-text-dim);
  background: rgba(2, 11, 20, 0.5);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
}
.home-smart-line-path-row:hover {
  border-color: rgba(0, 212, 255, 0.42);
  background: rgba(0, 113, 148, 0.14);
  transform: translateY(-1px);
}
.home-smart-line-path-row.active {
  border-color: rgba(0, 212, 255, 0.72);
  background: linear-gradient(135deg, rgba(0, 140, 177, 0.24), rgba(4, 20, 34, 0.76));
  box-shadow: inset 3px 0 0 var(--sci-cyan), 0 0 14px rgba(0, 212, 255, 0.08);
}
.home-smart-line-path-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.home-smart-line-path-check input {
  accent-color: var(--sci-cyan);
}
.home-smart-line-path-row-main {
  min-width: 0;
}
.home-smart-line-path-row-title {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  color: var(--sci-text);
  font-size: 12px;
}
.home-smart-line-path-row-title strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.home-smart-line-path-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  color: var(--sci-cyan);
  background: rgba(0, 212, 255, 0.12);
  font-size: 10px;
}
.home-smart-line-path-status {
  color: var(--sci-cyan);
  font-size: 10px;
}
.home-smart-line-path-row-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 4px;
  overflow: hidden;
  color: var(--sci-text-muted, #8297a6);
  font-size: 10px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.home-smart-line-icon-btn {
  border: 0;
  padding: 4px 3px;
  color: var(--sci-text-dim);
  background: transparent;
  font-size: 10px;
  cursor: pointer;
}
.home-smart-line-icon-btn:hover { color: var(--sci-cyan); }
.home-smart-line-icon-btn--danger:hover { color: #ff7480; }
.home-smart-line-path-empty,
.home-smart-line-manager-tip {
  color: var(--sci-text-muted, #8297a6);
  font-size: 11px;
  line-height: 1.5;
}
.home-smart-line-path-empty {
  padding: 18px 8px;
  text-align: center;
}
.home-smart-line-manager-tip {
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px solid rgba(126, 170, 194, 0.12);
}
.home-smart-line-path-editor {
  padding: 14px 16px;
}
.home-smart-line-path-editor .home-smart-line-editor-head {
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(0, 212, 255, 0.14);
}
.home-smart-line-name-row { margin-bottom: 12px; }
.home-smart-line-name-row input { min-width: 0; width: 100%; box-sizing: border-box; }
.home-smart-line-param-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.home-smart-line-point-switch {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: 13px 0 7px;
  color: var(--sci-text-dim);
  font-size: 11px;
}
.home-smart-line-point-switch span { margin-right: 4px; }
.home-smart-line-point-switch button,
.home-smart-line-point-view-btn {
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 4px;
  padding: 4px 8px;
  color: var(--sci-text-dim);
  background: rgba(0, 18, 30, 0.65);
  font-size: 11px;
  cursor: pointer;
}
.home-smart-line-point-switch button:hover,
.home-smart-line-point-switch button.active,
.home-smart-line-point-view-btn:hover {
  border-color: rgba(0, 212, 255, 0.66);
  color: var(--sci-cyan);
  background: rgba(0, 150, 188, 0.18);
}
.home-smart-line-point-group { position: relative; }
.home-smart-line-point-group.is-point-hidden { display: none; }
.home-smart-line-point-view-btn {
  position: absolute;
  top: 1px;
  right: 4px;
  padding: 3px 7px;
  font-size: 10px;
}

@media (max-width: 760px) {
  .sci-home-smart-line-layout { grid-template-columns: 1fr; }
  .home-smart-line-path-manager { max-height: 240px; }
  .home-smart-line-param-grid { grid-template-columns: 1fr; }
  .home-smart-line-scheme-summary { align-items: flex-start; flex-direction: column; }
  .home-smart-line-run-summary { max-width: 160px; }
}
.sci-home-smart-line-basic-form {
  width: 100%;
  box-sizing: border-box;
}
.sci-home-smart-line-basic-form .sci-home-grid-cost-scheme-row,
.sci-home-smart-line-basic-form .sci-home-smart-line-param-row {
  display: grid;
  grid-template-columns: 72px 1fr;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.sci-home-smart-line-basic-form .sci-home-grid-cost-scheme-row {
  margin-bottom: 10px;
}
.sci-home-smart-line-basic-form .sci-home-grid-cost-scheme-label,
.sci-home-smart-line-basic-form .sci-home-smart-line-param-label,
.sci-home-smart-line-basic-form .sci-home-terrain-coord-label {
  font-size: 13px;
  color: var(--sci-text-dim);
  text-align: right;
}
.sci-home-smart-line-basic-form .sci-home-terrain-coord-row {
  grid-template-columns: 72px 1fr;
  gap: 10px;
}
.sci-home-smart-line-basic-form .sci-home-terrain-coord-input .sci-home-cost-cell-input,
.sci-home-smart-line-basic-form .sci-home-grid-cost-scheme-row .sci-home-cost-cell-select {
  width: 100%;
  box-sizing: border-box;
}
.sci-home-smart-line-basic-form .sci-home-terrain-points-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 2px;
}
.sci-home-smart-line-basic-form .sci-home-terrain-point-group {
  margin: 0;
  width: 100%;
  box-sizing: border-box;
}
.sci-home-smart-line-param-row {
  display: grid;
  grid-template-columns: 72px 1fr;
  align-items: center;
  gap: 10px;
}
.sci-home-smart-line-param-row .sci-home-terrain-coord-input {
  min-width: 0;
}
.sci-home-smart-line-param-row .sci-home-terrain-coord-input .sci-home-cost-cell-input {
  flex: 1;
  min-width: 0;
  box-sizing: border-box;
}
.sci-home-smart-line-table-wrap {
  padding: 0;
  min-height: 0;
  width: 100%;
  max-width: 100%;
  align-self: stretch;
  align-items: stretch;
}
.home-smart-line-scheme-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  padding: 8px 10px;
  border: 1px solid rgba(0, 212, 255, 0.16);
  border-radius: 6px;
  color: var(--sci-text-dim);
  background: rgba(0, 18, 30, 0.46);
  font-size: 11px;
}
.home-smart-line-scheme-summary > div {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}
.home-smart-line-scheme-summary strong {
  color: var(--sci-text);
  font-weight: 600;
}
.home-smart-line-scheme-summary-jobs {
  flex-shrink: 0;
  color: var(--sci-cyan);
}
.sci-home-smart-line-table-wrap .sci-home-cost-grid-wrap--fit {
  width: 100%;
  max-width: 100%;
  align-self: stretch;
}
.sci-home-smart-line-scheme-table {
  width: 100%;
  max-width: 100%;
  table-layout: fixed;
}
.sci-home-smart-line-scheme-table .col-seq {
  width: 88px;
  text-align: center;
}
.sci-home-smart-line-scheme-table .col-method {
  width: 72px;
  text-align: center;
}
.sci-home-smart-line-scheme-table .col-color {
  width: 64px;
  text-align: center;
}
.sci-home-smart-line-scheme-table .col-name {
  text-align: left;
  padding-left: 14px;
}
.sci-home-smart-line-color-pick {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: pointer;
}
.sci-home-smart-line-color-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}
.sci-home-smart-line-color-swatch {
  display: inline-block;
  width: 28px;
  height: 16px;
  border: 1px solid rgba(0, 212, 255, 0.35);
  border-radius: 3px;
}
.sci-home-smart-line-color-swatch--lg {
  width: 40px;
  height: 18px;
}
.sci-home-smart-line-footer {
  margin-top: 0;
  padding: 10px 18px 12px;
}
.sci-home-smart-line-footer .sci-home-btn-ghost,
.sci-home-smart-line-footer .sci-home-btn-primary {
  padding: 6px 10px;
  font-size: 12px;
  white-space: nowrap;
  flex-shrink: 0;
}
.home-smart-line-run-summary {
  max-width: 230px;
  overflow: hidden;
  color: var(--sci-text-muted, #8297a6);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sci-home-smart-line-footer .sci-home-btn-primary:disabled {
  cursor: wait;
  opacity: 0.6;
}
.sci-home-smart-line-settings-panel {
  width: 440px;
  max-width: min(500px, calc(100vw - 40px));
}
.sci-home-smart-line-settings-body {
  display: flex;
  flex-direction: column;
  min-height: 0;
  width: 100%;
  box-sizing: border-box;
}
.sci-home-smart-line-settings-content {
  flex: 1;
  min-height: 0;
  padding: 0 18px 8px;
  background: rgba(0, 12, 24, 0.35);
  box-sizing: border-box;
}
.sci-home-smart-line-settings-group {
  margin: 0 0 10px;
}
.sci-home-smart-line-settings-row {
  display: grid;
  grid-template-columns: 72px 1fr 24px;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-size: 13px;
  color: var(--sci-text-dim);
}
.sci-home-smart-line-settings-row:first-of-type {
  margin-top: 4px;
}
.sci-home-smart-line-settings-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  font-size: 13px;
  color: var(--sci-text);
  cursor: pointer;
  user-select: none;
}
.sci-home-smart-line-settings-check input {
  accent-color: var(--sci-cyan);
}
.sci-home-smart-line-settings-footer {
  margin-top: 0;
  padding: 10px 18px 12px;
}
.sci-home-smart-line-results-panel {
  width: 880px;
  height: 460px;
  min-width: 560px;
  min-height: 320px;
  max-width: min(calc(100vw - 24px), 1200px);
  max-height: calc(100vh - 24px);
  z-index: 102;
  overflow: hidden;
  position: relative;
}
.sci-home-smart-line-results-panel.is-resizable {
  resize: both;
}
.sci-home-smart-line-results-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}
.sci-home-smart-line-results-content {
  flex: 1;
  min-height: 0;
  padding: 12px 16px 8px;
  background: rgba(0, 12, 24, 0.35);
  box-sizing: border-box;
  overflow: auto;
}
.sci-home-smart-line-optimize-wrap {
  width: max-content;
  min-width: 100%;
  max-width: none;
}
.sci-home-smart-line-optimize-table--horizontal {
  width: max-content;
  min-width: 100%;
}
.sci-home-smart-line-optimize-table--horizontal thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: rgba(6, 14, 26, 0.96);
  white-space: nowrap;
  padding: 9px 14px;
  min-width: 88px;
}
.sci-home-smart-line-optimize-table--horizontal thead th.col-total {
  color: var(--sci-cyan);
  font-weight: 600;
}
.sci-home-smart-line-optimize-table--horizontal tbody td.col-value {
  min-width: 88px;
  text-align: center;
  vertical-align: middle;
  padding: 9px 14px;
}
.sci-home-smart-line-optimize-table--horizontal tbody td.col-multiline {
  white-space: pre-line;
  line-height: 1.45;
  text-align: left;
  min-width: 132px;
}
.sci-home-smart-line-optimize-table--horizontal tbody td.is-total {
  font-weight: 600;
  color: var(--sci-cyan);
  background: rgba(0, 212, 255, 0.1);
}
.sci-home-smart-line-optimize-table--horizontal thead th:first-child,
.sci-home-smart-line-optimize-table--horizontal tbody td:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  background: rgba(6, 14, 26, 0.96);
  box-shadow: 1px 0 0 rgba(0, 212, 255, 0.12);
}
.sci-home-smart-line-optimize-table--horizontal thead th:first-child {
  z-index: 3;
}
.sci-home-panel-resize-handle {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 16px;
  height: 16px;
  cursor: nwse-resize;
  z-index: 5;
  background: linear-gradient(135deg, transparent 50%, rgba(0, 212, 255, 0.55) 50%);
  border-bottom-right-radius: 10px;
}
.sci-home-panel-resize-handle:hover {
  background: linear-gradient(135deg, transparent 45%, rgba(0, 212, 255, 0.85) 45%);
}
body.is-panel-resizing {
  cursor: nwse-resize;
  user-select: none;
}
.sci-home-smart-line-results-footer {
  margin-top: 0;
  padding: 10px 18px 12px;
  flex-shrink: 0;
}
.sci-home-bg.is-smart-line-specify {
  cursor: crosshair;
}

/* 智能选线点位标注与服务端采集进度 */
.home-smart-line-point-marker {
  position: absolute;
  /* 仅覆盖三维地图，不覆盖智能选线等界面面板（浮窗 z-index 更高）。 */
  z-index: 5 !important;
  width: 0;
  height: 0;
  pointer-events: none;
  /* marker 的 left/top 就是鼠标落点，图片通过负偏移把旗杆底端对准该点。 */
  transform: none;
}
.home-smart-line-marker-layer {
  position: fixed;
  inset: 0;
  z-index: 5 !important;
  pointer-events: none;
  overflow: hidden;
}
.home-smart-line-point-marker-image {
  display: block;
  position: absolute;
  left: calc(-20.8px * var(--smart-line-marker-scale, 1));
  top: calc(-35.8px * var(--smart-line-marker-scale, 1));
  width: calc(38px * var(--smart-line-marker-scale, 1));
  height: calc(38px * var(--smart-line-marker-scale, 1));
  object-fit: contain;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.48));
}
.home-smart-line-point-marker-label {
  position: absolute;
  left: calc(30px * var(--smart-line-marker-scale, 1));
  top: calc(-10px * var(--smart-line-marker-scale, 1));
  min-width: 34px;
  padding: 3px 7px;
  border: 1px solid rgba(0, 212, 255, 0.42);
  border-radius: 4px;
  background: rgba(4, 16, 30, 0.92);
  color: #e8fbff;
  font-size: 12px;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.32);
  transform: scale(var(--smart-line-marker-scale, 1));
  transform-origin: left top;
}
.home-smart-line-collection-card {
  margin-bottom: 14px;
  padding: 14px 16px 13px;
  border: 1px solid rgba(0, 212, 255, 0.24);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(0, 75, 105, 0.22), rgba(2, 16, 32, 0.54));
}
.home-smart-line-collection-card-head,
.home-smart-line-collection-progress-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.home-smart-line-collection-card-head strong {
  color: var(--sci-text);
  font-size: 14px;
}
.home-smart-line-collection-card-head span {
  color: var(--sci-cyan);
  font-size: 12px;
}
.home-smart-line-collection-card p {
  margin: 9px 0 10px;
  color: var(--sci-text-dim);
  font-size: 12px;
  line-height: 1.5;
}
.home-smart-line-collection-progress {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(148, 191, 209, 0.16);
}
.home-smart-line-collection-progress span {
  display: block;
  height: 100%;
  min-width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #008cc4, #00d4ff);
  box-shadow: 0 0 12px rgba(0, 212, 255, 0.42);
  transition: width .24s ease;
}
.home-smart-line-collection-progress-meta {
  margin-top: 7px;
  color: var(--sci-text-dim);
  font-size: 11px;
}
.home-smart-line-collection-progress-meta strong {
  color: var(--sci-cyan);
  font-size: 12px;
}
.home-smart-line-collection-success {
  margin-top: 10px;
  padding: 7px 9px;
  border-left: 3px solid #43d17b;
  background: rgba(67, 209, 123, 0.09);
  color: #a9edc3;
  font-size: 12px;
  line-height: 1.45;
}
.home-smart-line-collection-path {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 9px;
  color: var(--sci-text-dim);
  font-size: 11px;
}
.home-smart-line-collection-path code {
  min-width: 0;
  overflow: hidden;
  color: rgba(215, 243, 250, 0.82);
  font-family: var(--font-mono, Consolas, monospace);
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── 工程内路径管理浮层（对齐地形分析管理） ── */
.sci-home-terrain-manage-panel.sci-home-path-manage-panel {
  width: 640px;
  min-width: 560px;
  max-width: min(760px, calc(100vw - 40px));
}
.sci-home-path-manage-panel {
  width: 640px;
  min-width: 560px;
  max-width: min(760px, calc(100vw - 40px));
  max-height: calc(100vh - 24px);
}
.sci-home-path-manage-panel.open,
.sci-home-path-draw-panel.open,
.sci-home-path-compare-panel.open,
.sci-home-path-scheme-panel.open {
  display: flex;
}
.sci-home-path-manage-body {
  width: 100%;
  box-sizing: border-box;
}
.sci-home-path-manage-content {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  overflow: hidden;
}
.sci-home-path-manage-toolbar {
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 0;
  flex-wrap: nowrap;
  gap: 6px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(0, 212, 255, 0.2);
}
.sci-home-path-manage-toolbar .sci-home-cost-tool {
  padding: 0 10px;
  font-size: 11px;
  white-space: nowrap;
  flex-shrink: 0;
}
.sci-home-path-manage-toolbar .sci-home-cost-tool span {
  white-space: nowrap;
}
.sci-home-path-manage-table-wrap {
  width: 100%;
  max-width: 100%;
  padding: 4px 0 8px;
  align-self: stretch;
  align-items: stretch;
  box-sizing: border-box;
  min-height: 0;
  overflow: auto;
}
.sci-home-path-manage-table-wrap .sci-home-cost-grid-wrap {
  width: 100%;
  max-width: 100%;
  align-self: stretch;
}
.sci-home-path-manage-table-wrap .sci-home-cost-table.sci-home-path-manage-table {
  width: 100%;
  max-width: 100%;
  table-layout: fixed;
}
.sci-home-path-manage-table .col-seq {
  width: 96px;
  text-align: center;
}
.sci-home-path-manage-table .col-name {
  width: auto;
  min-width: 0;
  text-align: center;
}
.sci-home-path-manage-table td.col-name > span {
  display: block;
  /* 路径名整段显示：结果名带方案前缀后会很长，截断后无法区分不同方案。 */
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.35;
}
.sci-home-path-data-error {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  color: #ff8a9a;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sci-home-path-manage-table .col-color {
  width: 80px;
  text-align: center;
}
.sci-home-path-manage-table th.col-ops,
.sci-home-path-manage-table td.col-ops {
  width: 120px;
  text-align: center;
}
.sci-home-path-manage-table .sci-home-weight-op-btns {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: nowrap;
}
.sci-home-path-manage-color-pick {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: pointer;
}
.sci-home-path-manage-color-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}
.sci-home-path-manage-color-swatch {
  display: inline-block;
  width: 36px;
  height: 18px;
  border: 1px solid rgba(0, 212, 255, 0.35);
  border-radius: 3px;
}
.sci-home-path-manage-footer {
  padding: 10px 14px 12px;
}
.sci-home-path-draw-panel,
.sci-home-path-scheme-panel {
  width: 400px;
  max-width: min(440px, calc(100vw - 40px));
}
.sci-home-path-compare-panel {
  width: 560px;
  max-width: min(640px, calc(100vw - 40px));
}
.sci-home-path-draw-body,
.sci-home-path-compare-body,
.sci-home-path-scheme-body {
  display: flex;
  flex-direction: column;
  min-height: 0;
  width: 100%;
}
.sci-home-path-draw-content,
.sci-home-path-scheme-content {
  padding: 14px 18px 8px;
  background: rgba(0, 12, 24, 0.35);
}
.sci-home-path-compare-content {
  padding: 12px 16px 8px;
  background: rgba(0, 12, 24, 0.35);
  max-height: 400px;
  overflow: auto;
}
.sci-home-path-draw-row {
  display: grid;
  grid-template-columns: 72px 1fr;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 13px;
  color: var(--sci-text-dim);
}
.sci-home-path-draw-row .sci-home-cost-cell-input {
  width: 100%;
  box-sizing: border-box;
}
.sci-home-path-draw-hint {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--sci-text-dim);
}
.sci-home-path-scheme-tip {
  margin: 0 0 14px;
  font-size: 13px;
  color: var(--sci-text-dim);
  line-height: 1.5;
}
.sci-home-path-scheme-copy-option {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 2px 0 8px;
  color: var(--sci-text-dim);
  font-size: 12px;
  cursor: pointer;
}
.sci-home-path-scheme-copy-option input {
  width: 15px;
  height: 15px;
  accent-color: var(--sci-cyan);
}
.sci-home-path-draw-footer,
.sci-home-path-compare-footer,
.sci-home-path-scheme-footer {
  padding: 10px 18px 12px;
}
.sci-home-path-compare-scroll {
  overflow-x: auto;
}
.sci-home-path-compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.sci-home-path-compare-table th,
.sci-home-path-compare-table td {
  border: 1px solid rgba(0, 212, 255, 0.12);
  padding: 8px 12px;
  text-align: center;
  color: var(--sci-text);
}
.sci-home-path-compare-label {
  text-align: right;
  color: var(--sci-cyan-dim);
  font-weight: 500;
  background: rgba(0, 212, 255, 0.08);
  white-space: nowrap;
}

@media (max-width: 620px) {
  .sci-home-terrain-manage-panel.sci-home-path-manage-panel,
  .sci-home-path-manage-panel,
  .sci-home-path-draw-panel,
  .sci-home-path-compare-panel,
  .sci-home-path-scheme-panel,
  .sci-home-path-adjust-result-panel {
    left: 12px !important;
    width: calc(100vw - 24px);
    min-width: 0;
    max-width: calc(100vw - 24px);
    transform: none !important;
  }
  .sci-home-path-manage-table .col-seq {
    width: 62px;
  }
  .sci-home-path-manage-table .col-color {
    width: 62px;
  }
  .sci-home-path-manage-table th.col-ops,
  .sci-home-path-manage-table td.col-ops {
    width: 106px;
  }
}

@media (max-height: 620px) {
  .sci-home-path-manage-panel.is-floating {
    top: 12px !important;
    max-height: calc(100vh - 24px);
  }
  .sci-home-path-manage-body {
    overflow: hidden;
  }
}

/* ── 路径管理 — 自由调整结果 ── */
.sci-home-path-adjust-result-panel {
  width: 620px;
  max-width: min(720px, calc(100vw - 40px));
  z-index: 103;
}
.sci-home-path-adjust-result-panel.open {
  display: flex;
  flex-direction: column;
}
.sci-home-path-adjust-result-body {
  display: flex;
  flex-direction: column;
  min-height: 0;
  width: 100%;
  padding-bottom: 0;
}
.sci-home-path-adjust-result-content {
  padding: 8px 14px 10px;
  background: rgba(0, 12, 24, 0.35);
}
.sci-home-path-adjust-result-path {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--sci-text-dim);
}
.sci-home-path-adjust-result-path strong {
  color: var(--sci-cyan);
  font-weight: 600;
}
.sci-home-path-adjust-chart {
  border: 1px solid rgba(0, 212, 255, 0.25);
  border-radius: 6px;
  background: linear-gradient(180deg, rgba(8, 24, 48, 0.95) 0%, rgba(4, 14, 32, 0.98) 100%);
  overflow: hidden;
}
.sci-home-path-adjust-chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.sci-home-path-adjust-chart-legend {
  font-size: 13px;
  font-weight: 600;
  color: var(--sci-text);
}
.sci-home-path-adjust-chart-sub {
  font-size: 11px;
  color: var(--sci-text-dim);
}
.sci-home-path-adjust-chart-body {
  display: flex;
  gap: 8px;
  padding: 10px 10px 8px 4px;
  min-height: 260px;
}
.sci-home-path-adjust-chart-y {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-shrink: 0;
  width: 36px;
  padding: 4px 0 22px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.75);
  text-align: right;
}
.sci-home-path-adjust-chart-plot {
  position: relative;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
}
.sci-home-path-adjust-zero-line {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: rgba(255, 255, 255, 0.35);
  z-index: 1;
  pointer-events: none;
}
.sci-home-path-adjust-bars {
  display: flex;
  align-items: stretch;
  gap: 6px;
  min-width: max-content;
  height: 220px;
  padding-bottom: 22px;
  box-sizing: border-box;
}
.sci-home-path-adjust-bar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 46px;
  flex-shrink: 0;
}
.sci-home-path-adjust-bar-stack {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 198px;
  flex-shrink: 0;
}
.sci-home-path-adjust-bar-half {
  flex: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 0;
}
.sci-home-path-adjust-bar-half.is-bottom {
  align-items: flex-start;
}
.sci-home-path-adjust-bar {
  width: 34px;
  min-height: 2px;
  background: #b8d430;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.sci-home-path-adjust-bar span {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.65);
}
.sci-home-path-adjust-bar.is-pos span {
  top: -16px;
}
.sci-home-path-adjust-bar.is-neg span {
  bottom: -16px;
}
.sci-home-path-adjust-bar-label {
  margin-top: 4px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.85);
  white-space: nowrap;
  text-align: center;
}
.sci-home-path-adjust-result-footer {
  padding: 10px 18px 12px;
}

.sci-home-bg.is-path-manage-draw,
.sci-home-bg.is-path-manage-adjust {
  cursor: crosshair;
}

.sci-home-basic-body {
  display: flex;
  flex-direction: column;
  min-height: 0;
  width: 100%;
  box-sizing: border-box;
}
.sci-home-basic-layout {
  flex: 1;
  min-height: 400px;
  align-self: stretch;
  width: 100%;
}
.sci-home-basic-layout .sci-home-cost-tree-panel {
  width: 220px;
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}
.sci-home-basic-tree-label {
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--sci-cyan);
  background: rgba(0, 30, 55, 0.65);
  border-bottom: 1px solid rgba(0, 212, 255, 0.2);
  flex-shrink: 0;
}
.sci-home-basic-tree {
  list-style: none;
  margin: 0;
  padding: 6px 0 12px;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  font-size: 12px;
}
.sci-home-basic-tree ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.sci-home-basic-tree > li.collapsed > ul,
.sci-home-basic-tree li.collapsed > ul {
  display: none;
}
.sci-home-basic-tree-group,
.sci-home-basic-tree-item {
  display: block;
  width: 100%;
  border: none;
  background: transparent;
  text-align: left;
  font-family: var(--font-main);
  cursor: pointer;
  box-sizing: border-box;
}
.sci-home-basic-tree-group {
  padding: 7px 12px;
  font-weight: 600;
  color: var(--sci-text);
  line-height: 1.4;
}
.sci-home-basic-tree-group:hover {
  background: rgba(0, 212, 255, 0.08);
}
.sci-home-basic-tree-group--depth-0 { padding-left: 12px; }
.sci-home-basic-tree-group--depth-1 { padding-left: 24px; }
.sci-home-basic-tree-group--depth-2 { padding-left: 36px; }
.sci-home-basic-tree-item {
  padding: 7px 12px;
  color: var(--sci-text-dim);
  border-left: 3px solid transparent;
  line-height: 1.4;
}
.sci-home-basic-tree-item--depth-1 { padding-left: 28px; }
.sci-home-basic-tree-item--depth-2 { padding-left: 40px; }
.sci-home-basic-tree-item--depth-3 { padding-left: 52px; }
.sci-home-basic-tree-item:hover {
  background: rgba(0, 212, 255, 0.08);
  color: var(--sci-text);
}
.sci-home-basic-tree-item.active {
  background: rgba(0, 212, 255, 0.18);
  color: var(--sci-cyan);
  font-weight: 600;
  border-left-color: var(--sci-cyan);
}
.sci-home-basic-layout .sci-home-cost-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: rgba(0, 12, 24, 0.35);
}
.sci-home-basic-content-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(0, 212, 255, 0.15);
  flex-shrink: 0;
}
.sci-home-basic-current-cat {
  font-size: 13px;
  font-weight: 600;
  color: var(--sci-cyan);
}
.sci-home-basic-table-wrap {
  flex: 1;
  min-height: 160px;
}
.sci-home-basic-table .col-load {
  width: 56px;
  text-align: center;
}
.sci-home-basic-table .col-code {
  width: 100px;
}
.sci-home-basic-table .col-producer {
  width: 110px;
}
.sci-home-basic-table .col-time {
  width: 130px;
}
.sci-home-basic-table .col-ops {
  width: 100px;
  text-align: center;
}
.sci-home-basic-table .sci-home-weight-op-btns {
  justify-content: center;
}
.sci-home-basic-footer {
  border-top: 1px solid rgba(0, 212, 255, 0.2);
}
.sci-home-project-data-toolbar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
}
.sci-home-weight-footer .sci-home-project-data-toolbar {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}
.sci-home-weight-footer .sci-home-project-data-toolbar .sci-home-cost-tool {
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── 首页权重方案管理浮层 ── */
.sci-home-weight-panel {
  width: 1120px;
  max-width: min(1160px, calc(100vw - 32px));
  overflow: hidden;
}
.sci-home-weight-panel.open {
  display: flex;
}
.sci-home-weight-body {
  min-height: 0;
  width: 100%;
  box-sizing: border-box;
}
.sci-home-weight-split {
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
  width: 100%;
  min-height: 0;
}
.sci-home-weight-layout {
  display: flex;
  width: 100%;
  min-height: 0;
  border: 1px solid rgba(0, 212, 255, 0.25);
  border-radius: 8px;
  overflow: hidden;
  box-sizing: border-box;
  overflow: hidden;
}
@media (max-width: 760px) {
  .sci-home-weight-layout { flex-direction: column; }
  .sci-home-weight-side { width: 100%; border-right: none; border-bottom: 1px solid rgba(0, 212, 255, 0.25); }
  .sci-home-weight-side-head .sci-home-cost-page-actions { justify-content: flex-start; }
  .sci-home-weight-side-head .sci-home-cost-search { flex: 1 1 140px; }
}
.sci-home-weight-side {
  width: 52%;
  min-width: 0;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
  border-right: 1px solid rgba(0, 212, 255, 0.25);
  background: rgba(0, 20, 40, 0.45);
  box-sizing: border-box;
}
.sci-home-weight-side-head {
  flex-shrink: 0;
  gap: 12px;
  border-bottom: 1px solid rgba(0, 212, 255, 0.15);
  background: rgba(0, 212, 255, 0.06);
}
.sci-home-weight-side-head > span {
  flex: 0 0 auto;
  white-space: nowrap;
}
.sci-home-weight-side-head .sci-home-cost-page-actions {
  flex: 1 1 auto;
  flex-wrap: nowrap;
  gap: 6px;
  min-width: 0;
  justify-content: flex-end;
}
.sci-home-weight-side-head .sci-home-cost-search {
  width: 150px;
  flex: 1 1 auto;
  min-width: 128px;
  max-width: 220px;
}
.sci-home-weight-side-head .sci-home-cost-page-btn {
  flex: 0 0 auto;
  white-space: nowrap;
}
.sci-home-weight-scheme-table thead th,
.sci-home-weight-detail-table thead th {
  padding: 6px 10px;
}
.sci-home-weight-scheme-table tbody td,
.sci-home-weight-detail-table tbody td {
  vertical-align: middle;
}
.sci-home-weight-scheme-table .sci-home-cost-cell-input,
.sci-home-weight-detail-table .sci-home-cost-cell-input {
  padding: 5px 10px;
}
.sci-home-weight-scheme-table tbody td.col-name {
  padding: 5px 10px;
  font-size: 12px;
  font-family: var(--font-main);
  color: var(--sci-text);
  text-align: center;
}
.sci-home-weight-detail-table tbody td.col-seq,
.sci-home-weight-detail-table tbody td.col-factor,
.sci-home-weight-detail-table tbody td.col-chk {
  padding: 5px 10px;
  font-size: 12px;
  font-family: var(--font-main);
  color: var(--sci-text);
}
.sci-home-weight-detail-head {
  background: rgba(0, 212, 255, 0.06);
}
.sci-home-weight-side .sci-home-weight-table-wrap {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  padding: 4px 8px 8px;
  display: flex;
  flex-direction: column;
}
.sci-home-weight-side .sci-home-weight-scheme-table {
  width: 100%;
  table-layout: fixed;
}
.sci-home-weight-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: rgba(0, 12, 24, 0.35);
  box-sizing: border-box;
}
.sci-home-weight-scheme-label {
  font-size: 12px;
  color: var(--sci-text-muted);
  margin-left: auto;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 50%;
}
.sci-home-weight-scheme-label strong {
  color: var(--sci-cyan);
  font-weight: 600;
}
.sci-home-weight-main .sci-home-weight-table-wrap {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  padding: 4px 10px 8px;
}
.sci-home-weight-detail-table {
  width: 100%;
  table-layout: fixed;
}
.sci-home-weight-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(0, 212, 255, 0.2);
}
.sci-home-weight-footer-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  flex: 0 1 auto;
  min-width: 0;
}
.sci-home-weight-footer .sci-home-add-actions {
  margin-top: 0;
  padding-top: 0;
  margin-left: auto;
  flex-shrink: 0;
  flex-wrap: nowrap;
  gap: 6px;
}
.sci-home-weight-scheme-table .col-seq {
  width: 14%;
}
.sci-home-weight-scheme-table tbody td.col-seq {
  padding: 5px 10px;
  text-align: center;
  font-size: 12px;
  font-family: var(--font-main);
  color: var(--sci-text);
  font-weight: 400;
}
.sci-home-weight-scheme-table .col-name {
  width: 32%;
}
.sci-home-weight-scheme-table .col-cost {
  width: 24%;
}
.sci-home-weight-scheme-table .col-op {
  width: 30%;
}
.sci-home-weight-scheme-table th,
.sci-home-weight-scheme-table td,
.sci-home-weight-detail-table th,
.sci-home-weight-detail-table td {
  box-sizing: border-box;
  min-width: 0;
  overflow: hidden;
}
.sci-home-weight-scheme-table tbody td.col-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sci-home-weight-scheme-table tbody td.col-name .sci-home-cost-cell-input {
  display: block;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sci-home-weight-scheme-table tbody td.col-cost,
.sci-home-weight-scheme-table tbody td.col-op {
  white-space: nowrap;
  text-align: center;
}
.sci-home-weight-op-btns {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-wrap: nowrap;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}
.sci-home-weight-op-btns > button,
.sci-home-weight-link-btn {
  flex: 0 1 auto;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sci-home-weight-link-btn {
  padding: 2px 7px;
  border: 1px solid rgba(0, 212, 255, 0.35);
  border-radius: 12px;
  background: rgba(0, 212, 255, 0.08);
  color: var(--sci-cyan);
  font-size: 11px;
  font-family: var(--font-main);
  cursor: pointer;
  white-space: nowrap;
}
.sci-home-weight-link-btn:hover {
  background: rgba(0, 212, 255, 0.18);
}
.sci-home-weight-row-download {
  padding: 2px 8px;
  border: 1px solid rgba(0, 212, 255, 0.35);
  border-radius: 12px;
  background: rgba(0, 212, 255, 0.08);
  color: var(--sci-cyan);
  font-size: 11px;
  font-family: var(--font-main);
  cursor: pointer;
  line-height: 1.4;
  white-space: nowrap;
}
.sci-home-weight-row-download:hover {
  background: rgba(0, 212, 255, 0.18);
}
.sci-home-weight-row-delete {
  padding: 2px 8px;
  border: 1px solid rgba(255, 90, 100, 0.65);
  border-radius: 12px;
  background: rgba(255, 70, 85, 0.12);
  color: #ff6b7a;
  font-size: 11px;
  font-family: var(--font-main);
  cursor: pointer;
  line-height: 1.4;
  white-space: nowrap;
}
.sci-home-weight-row-delete:hover {
  background: rgba(255, 70, 85, 0.22);
  border-color: rgba(255, 90, 100, 0.85);
  color: #ff8a96;
}
.sci-home-weight-sum-bar {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  border-top: 1px solid rgba(0, 212, 255, 0.15);
  background: rgba(0, 212, 255, 0.04);
  font-size: 12px;
  color: var(--sci-text);
  flex-shrink: 0;
}
.sci-home-weight-sum-bar strong {
  color: var(--sci-cyan);
  font-size: 14px;
  margin: 0 4px;
}
.sci-home-weight-sum-bar strong.is-warning { color: #ffbd4a; }
.sci-home-weight-sum-bar strong.is-valid { color: #62df9b; }
.sci-home-weight-sum-hint { color: var(--sci-text-muted); font-size: 11px; }
.home-weight-normalize-btn {
  margin-left: auto;
  border: 1px solid rgba(0, 212, 255, 0.25);
  border-radius: 4px;
  padding: 3px 7px;
  color: var(--sci-cyan);
  background: rgba(0, 212, 255, 0.08);
  font-size: 11px;
  cursor: pointer;
}
.home-weight-normalize-btn:hover {
  border-color: rgba(0, 212, 255, 0.6);
  background: rgba(0, 212, 255, 0.16);
}
/* 权重因子表：勾选列写明“是否为禁止区域”，每行结构一致 */
.sci-home-weight-th-label {
  display: block;
  font-size: 11px;
  line-height: 1.2;
  margin-bottom: 2px;
  white-space: nowrap;
}
.sci-home-weight-legend {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  padding: 6px 12px 8px;
  border-top: 1px solid rgba(0, 212, 255, 0.1);
  font-size: 11px;
  line-height: 1.5;
  color: var(--sci-text-muted);
  flex-shrink: 0;
}
.sci-home-weight-legend strong {
  color: var(--sci-cyan);
  font-weight: 600;
}
.sci-home-weight-main .col-chk {
  width: 24%;
}
.sci-home-weight-main .col-seq {
  width: 10%;
}
.sci-home-weight-main .col-factor {
  width: 38%;
}
.sci-home-weight-main .col-weight {
  width: 28%;
}
.sci-home-weight-main input[type="checkbox"] {
  accent-color: var(--sci-cyan);
  cursor: pointer;
}
.sci-home-weight-side .sci-home-cost-pagination {
  flex-shrink: 0;
  margin-top: 4px;
}

@media (max-width: 900px) {
  .sci-home-weight-side-head {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .sci-home-weight-side-head > span {
    flex: 1 0 100%;
  }
  .sci-home-weight-side-head .sci-home-cost-page-actions {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
  }
  .sci-home-weight-side-head .sci-home-cost-search {
    flex: 1 1 180px;
    max-width: none;
  }
}

/* ── 权重方案 — 成本因素二级浮层 ── */
.sci-home-weight-factor-panel {
  width: 600px;
  max-width: min(680px, calc(100vw - 48px));
}
.sci-home-weight-factor-panel.open {
  display: flex;
  flex-direction: column;
  min-height: 420px;
  z-index: 101;
}
.sci-home-weight-factor-body {
  min-height: 0;
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}
.sci-home-weight-factor-body #home-weight-factor-host {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.sci-home-weight-factor-footer {
  flex-shrink: 0;
  margin-top: 12px;
}
.sci-home-weight-factor-footer .sci-home-add-actions {
  margin-top: 0;
  padding-top: 0;
}
.sci-home-weight-factor-layout {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  width: 100%;
  border: 1px solid rgba(0, 212, 255, 0.25);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(0, 12, 24, 0.35);
  box-sizing: border-box;
}
.sci-home-weight-factor-tabs {
  display: flex;
  flex-wrap: nowrap;
  overflow: hidden;
  flex-shrink: 0;
  border-bottom: 1px solid rgba(0, 212, 255, 0.2);
  background: rgba(0, 212, 255, 0.04);
}
.sci-home-weight-factor-tab {
  flex-shrink: 0;
  padding: 8px 10px;
  border: none;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--sci-text-dim);
  font-size: 12px;
  font-family: var(--font-main);
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.sci-home-weight-factor-tab:hover {
  color: var(--sci-text);
  background: rgba(0, 212, 255, 0.06);
}
.sci-home-weight-factor-tab.active {
  color: var(--sci-cyan);
  border-bottom-color: var(--sci-cyan);
  background: rgba(0, 212, 255, 0.1);
  font-weight: 600;
}
.sci-home-weight-factor-toolbar {
  flex-shrink: 0;
  background: rgba(0, 212, 255, 0.06);
}
.sci-home-weight-factor-table-wrap {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 8px 10px;
}
.sci-home-weight-factor-table {
  width: 100%;
  table-layout: fixed;
}
.sci-home-weight-factor-table .col-label {
  width: 55%;
}
.sci-home-weight-factor-table .col-cost-val {
  width: 45%;
}
.sci-home-weight-factor-table thead th {
  padding: 6px 10px;
}
.sci-home-weight-factor-table tbody td.col-label {
  padding: 0;
  text-align: center;
  font-size: 12px;
  font-family: var(--font-main);
  color: var(--sci-text);
}
.sci-home-weight-factor-table tbody td.col-label:not(:has(input)) {
  padding: 5px 10px;
}
.sci-home-weight-factor-table tbody td.col-cost-val {
  padding: 0;
}
.sci-home-weight-factor-table .sci-home-cost-cell-input,
.sci-home-weight-factor-table .sci-home-cost-cell-select {
  padding: 5px 10px;
}
.sci-home-weight-factor-note {
  flex-shrink: 0;
  margin: 0;
  padding: 8px 12px;
  border-top: 1px solid rgba(0, 212, 255, 0.15);
  background: rgba(0, 212, 255, 0.04);
  font-size: 12px;
  color: var(--sci-text-muted);
}

/* ── 首页测量管理浮层 ── */
.sci-home-measure-panel {
  width: 820px;
  max-width: min(920px, calc(100vw - 48px));
}
.sci-home-measure-panel.open {
  display: flex;
}
.sci-home-measure-body {
  min-height: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}
.sci-home-measure-body #home-measure-host {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.sci-home-measure-footer {
  flex-shrink: 0;
  margin-top: 12px;
}
.sci-home-measure-layout {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  border: 1px solid rgba(0, 212, 255, 0.25);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(0, 12, 24, 0.35);
}
.sci-home-measure-tabs {
  display: flex;
  flex-shrink: 0;
  border-bottom: 1px solid rgba(0, 212, 255, 0.2);
  background: rgba(0, 212, 255, 0.04);
}
.sci-home-measure-tab {
  flex: 1;
  padding: 5px 12px;
  border: none;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--sci-text-dim);
  font-size: 12px;
  line-height: 1.2;
  font-family: var(--font-main);
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.sci-home-measure-tab:hover {
  color: var(--sci-text);
  background: rgba(0, 212, 255, 0.06);
}
.sci-home-measure-tab.active {
  color: var(--sci-cyan);
  border-bottom-color: var(--sci-cyan);
  background: rgba(0, 212, 255, 0.1);
  font-weight: 600;
}
.sci-home-measure-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-shrink: 0;
  padding: 6px 12px;
  border-bottom: 1px solid rgba(0, 212, 255, 0.12);
  background: rgba(0, 212, 255, 0.04);
}
.sci-home-measure-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.sci-home-measure-search {
  width: 180px;
  flex-shrink: 0;
}
.sci-home-measure-table-wrap {
  flex: 1;
  min-height: 0;
  overflow: visible;
  padding: 8px 10px 10px;
  display: flex;
  flex-direction: column;
}
.sci-home-measure-table {
  width: 100%;
  table-layout: fixed;
}
.sci-home-measure-table thead th {
  padding: 3px 8px;
  line-height: 1.2;
}
.sci-home-measure-table .col-seq {
  width: 8%;
}
.sci-home-measure-table .col-data-name {
  width: 20%;
}
.sci-home-measure-table--terrain .col-seq {
  width: 7%;
}
.sci-home-measure-table--terrain .col-data-name {
  width: 16%;
}
.sci-home-measure-table--terrain .col-layer-type {
  width: 11%;
}
.sci-home-measure-table--terrain .col-layer-name {
  width: 13%;
}
.sci-home-measure-table--terrain .col-layer-desc {
  width: 20%;
}
.sci-home-measure-table--terrain .col-level-range {
  width: 11%;
}
.sci-home-measure-table--terrain .col-op {
  width: 22%;
}
.sci-home-measure-table .col-layer-name {
  width: 16%;
}
.sci-home-measure-table .col-layer-desc {
  width: 26%;
}
.sci-home-measure-table .col-level-range,
.sci-home-measure-table .col-layer-color {
  width: 13%;
}
.sci-home-measure-table .col-op {
  width: 17%;
}
.sci-home-measure-table tbody td.col-seq {
  padding: 2px 6px;
  text-align: center;
  font-size: 12px;
  font-family: var(--font-main);
  color: var(--sci-text);
  font-weight: 400;
  vertical-align: middle;
  line-height: 1.2;
}
.sci-home-measure-table tbody td.col-data-name,
.sci-home-measure-table tbody td.col-layer-name.is-readonly,
.sci-home-measure-table tbody td.col-layer-desc,
.sci-home-measure-table tbody td.col-level-range,
.sci-home-measure-table tr.is-processed td.col-layer-name,
.sci-home-measure-table tr.is-processed td.col-layer-desc,
.sci-home-measure-table tr.is-processed td.col-level-range {
  padding: 2px 6px;
  text-align: center;
  font-size: 12px;
  font-family: var(--font-main);
  color: var(--sci-text);
  vertical-align: middle;
  line-height: 1.2;
}
.sci-home-measure-table tbody td.col-layer-color {
  padding: 2px 6px;
  text-align: center;
  vertical-align: middle;
}
.sci-home-measure-color-cell {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.sci-home-measure-color-input {
  width: 22px;
  height: 18px;
  padding: 0;
  border: 1px solid rgba(0, 212, 255, 0.35);
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
}
.sci-home-measure-color-input::-webkit-color-swatch-wrapper {
  padding: 2px;
}
.sci-home-measure-color-input::-webkit-color-swatch {
  border: none;
  border-radius: 2px;
}
.sci-home-measure-color-value {
  font-size: 11px;
  font-family: var(--font-main);
  color: var(--sci-cyan-dim);
  text-transform: uppercase;
}
.sci-home-measure-table tbody td.col-data-name {
  font-weight: 500;
  color: #fff;
}
.sci-home-measure-table tbody td.col-layer-name,
.sci-home-measure-table tbody td.col-layer-desc,
.sci-home-measure-table tbody td.col-level-range {
  padding: 0;
}
.sci-home-measure-table tbody td.col-layer-type,
.sci-home-measure-table tr.is-processed td.col-layer-name,
.sci-home-measure-table tr.is-processed td.col-layer-type {
  padding: 2px 6px;
  text-align: center;
  font-size: 12px;
  font-family: var(--font-main);
  color: var(--sci-text);
  vertical-align: middle;
  line-height: 1.2;
}
.sci-home-measure-table tbody td.col-layer-color {
  padding: 2px 6px;
}
.sci-home-measure-table .sci-home-cost-cell-input {
  padding: 2px 6px;
}
.sci-home-measure-table tbody td.col-op {
  padding: 2px 4px;
  text-align: center;
  vertical-align: middle;
}
.sci-home-measure-table .sci-home-weight-row-download,
.sci-home-measure-table .sci-home-weight-row-delete {
  padding: 1px 7px;
  font-size: 11px;
  line-height: 1.3;
}
.sci-home-measure-table .sci-home-weight-op-btns {
  gap: 3px;
}
.sci-home-measure-table-wrap .sci-home-cost-pagination {
  flex-shrink: 0;
  margin-top: 6px;
}

/* ── 首页用户管理浮层 ── */
.sci-home-admin-user-panel {
  width: 900px;
  max-width: min(960px, calc(100vw - 48px));
}
.sci-home-admin-user-body {
  min-height: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}
.sci-home-admin-user-body #home-admin-user-host {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.sci-home-admin-user-footer {
  flex-shrink: 0;
  margin-top: 12px;
}
.sci-home-admin-user-layout {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  border: 1px solid rgba(0, 212, 255, 0.25);
  border-radius: 8px;
  overflow: visible;
  background: rgba(0, 12, 24, 0.35);
}
.sci-home-admin-user-toolbar {
  flex-shrink: 0;
}
.sci-home-admin-user-search {
  width: 180px;
  flex-shrink: 0;
}
.sci-home-admin-user-table-wrap {
  flex: 1;
  min-height: 0;
  overflow: visible;
  padding: 8px 10px 10px;
  display: flex;
  flex-direction: column;
}
.sci-home-admin-user-table {
  width: 100%;
  table-layout: fixed;
}
.sci-home-admin-user-table thead th {
  padding: 3px 6px;
  line-height: 1.2;
  font-size: 12px;
}
.sci-home-admin-user-table .col-seq {
  width: 6%;
}
.sci-home-admin-user-table .col-job-no {
  width: 10%;
}
.sci-home-admin-user-table .col-name {
  width: 10%;
}
.sci-home-admin-user-table .col-gender {
  width: 7%;
}
.sci-home-admin-user-table .col-roles {
  width: 18%;
}
.sci-home-admin-user-table .col-phone {
  width: 13%;
}
.sci-home-admin-user-table .col-status {
  width: 9%;
}
.sci-home-admin-user-table .col-op {
  width: 17%;
}
.sci-home-admin-user-table tbody td {
  padding: 2px 4px;
  vertical-align: middle;
  line-height: 1.2;
}
.sci-home-admin-user-table tbody td.col-seq {
  text-align: center;
  font-size: 12px;
}
.sci-home-admin-user-table tbody td.col-op {
  text-align: center;
}
.sci-home-admin-user-table .sci-home-weight-op-btns {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 3px;
}
.sci-home-admin-user-cell-text {
  display: block;
  font-size: 12px;
  color: var(--sci-text);
  line-height: 1.3;
  word-break: break-all;
}
.sci-home-admin-user-table tbody td.col-roles .sci-home-admin-user-cell-text {
  font-size: 11px;
}
.sci-home-admin-user-edit-panel,
.sci-home-admin-user-add-panel {
  width: 420px;
  max-width: min(460px, calc(100vw - 48px));
}
.sci-home-admin-user-edit-body {
  padding: 0;
}
.sci-home-admin-user-edit-form {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 14px 18px 18px;
}
.sci-home-admin-user-edit-form .sci-home-add-fields {
  gap: 10px;
}
.sci-home-admin-user-field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.sci-home-admin-user-field-grid .sci-home-field {
  min-width: 0;
}
.sci-home-admin-user-edit-roles {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  padding: 8px 10px;
  border: 1px solid rgba(0, 212, 255, 0.25);
  border-radius: 6px;
  background: rgba(0, 20, 40, 0.35);
}
.sci-home-admin-user-edit-role-opt {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--sci-text);
  cursor: pointer;
  white-space: nowrap;
}
.sci-home-admin-user-edit-role-opt:hover {
  color: var(--sci-cyan);
}
.sci-home-admin-user-edit-role-opt input {
  accent-color: var(--sci-cyan);
}
.sci-home-admin-user-edit-form .sci-home-add-actions {
  margin-top: 14px;
}
.sci-home-admin-user-status-group {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 6px 0;
}
.sci-home-admin-user-status-opt {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--sci-text);
  cursor: pointer;
  white-space: nowrap;
}
.sci-home-admin-user-status-opt:hover {
  color: var(--sci-cyan);
}
.sci-home-admin-user-status-opt input {
  accent-color: var(--sci-cyan);
}
.sci-home-admin-user-table .sci-home-weight-row-download,
.sci-home-admin-user-table .sci-home-weight-row-delete {
  padding: 1px 6px;
  font-size: 11px;
  line-height: 1.3;
}
.sci-home-admin-user-table-wrap .sci-home-cost-pagination {
  flex-shrink: 0;
  margin-top: 6px;
}

/* ── 首页电压等级管理浮层 ── */
.sci-home-admin-voltage-panel {
  width: 520px;
  max-width: min(560px, calc(100vw - 48px));
}
.sci-home-admin-voltage-body {
  min-height: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}
.sci-home-admin-voltage-body #home-admin-voltage-host {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.sci-home-admin-voltage-footer {
  flex-shrink: 0;
  margin-top: 12px;
}
.sci-home-admin-voltage-layout {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  border: 1px solid rgba(0, 212, 255, 0.25);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(0, 12, 24, 0.35);
}
.sci-home-admin-voltage-toolbar {
  flex-shrink: 0;
}
.sci-home-admin-voltage-add-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  width: 100%;
}
.sci-home-admin-voltage-type-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
  flex-wrap: wrap;
}
.sci-home-admin-voltage-type-opt {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--sci-text);
  cursor: pointer;
  white-space: nowrap;
}
.sci-home-admin-voltage-type-opt:hover {
  color: var(--sci-cyan);
}
.sci-home-admin-voltage-type-opt input[type="radio"] {
  accent-color: var(--sci-cyan);
}
.sci-home-admin-voltage-dc-opt {
  gap: 8px;
}
.sci-home-admin-voltage-add-input {
  padding: 4px 8px;
  border: 1px solid rgba(0, 212, 255, 0.25);
  border-radius: 6px;
  background: rgba(0, 20, 40, 0.65);
  color: var(--sci-text);
  font-size: 12px;
  font-family: var(--font-main);
  width: 160px;
  flex-shrink: 0;
}
.sci-home-admin-voltage-add-input:focus {
  outline: none;
  border-color: rgba(0, 212, 255, 0.5);
}
.sci-home-admin-voltage-type-group .sci-home-cost-page-btn--add {
  flex-shrink: 0;
}
.sci-home-admin-voltage-table-wrap {
  flex: 1;
  min-height: 0;
  overflow: visible;
  padding: 8px 10px 10px;
  display: flex;
  flex-direction: column;
}
.sci-home-admin-voltage-table {
  width: 100%;
  table-layout: fixed;
}
.sci-home-admin-voltage-table thead th {
  padding: 3px 8px;
  line-height: 1.2;
  font-size: 12px;
}
.sci-home-admin-voltage-table .col-seq {
  width: 18%;
}
.sci-home-admin-voltage-table .col-level {
  width: 52%;
}
.sci-home-admin-voltage-table .col-op {
  width: 30%;
}
.sci-home-admin-voltage-table tbody td {
  padding: 2px 6px;
  vertical-align: middle;
  line-height: 1.2;
  text-align: center;
}
.sci-home-admin-voltage-cell-text {
  display: block;
  font-size: 12px;
  color: var(--sci-text);
}
.sci-home-admin-voltage-table .sci-home-weight-op-btns {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 3px;
}
.sci-home-admin-voltage-table .sci-home-weight-row-delete {
  padding: 1px 6px;
  font-size: 11px;
  line-height: 1.3;
}
.sci-home-admin-voltage-table-wrap .sci-home-cost-pagination {
  flex-shrink: 0;
  margin-top: 6px;
}

/* ── 首页操作日志浮层 ── */
.sci-home-admin-log-panel {
  width: 920px;
  max-width: min(960px, calc(100vw - 48px));
}
.sci-home-admin-log-body {
  min-height: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  padding-bottom: 14px;
}
.sci-home-admin-log-body #home-admin-log-host {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.sci-home-admin-log-layout {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  border: 1px solid rgba(0, 212, 255, 0.25);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(0, 12, 24, 0.35);
  margin: 0 18px;
}
.sci-home-admin-log-table-wrap {
  flex: 1;
  min-height: 0;
  overflow: visible;
  padding: 8px 10px 10px;
  display: flex;
  flex-direction: column;
}
.sci-home-admin-log-table {
  width: 100%;
  table-layout: fixed;
}
.sci-home-admin-log-table thead th {
  padding: 3px 6px;
  line-height: 1.2;
  font-size: 12px;
}
.sci-home-admin-log-table .col-seq {
  width: 6%;
}
.sci-home-admin-log-table .col-time {
  width: 14%;
}
.sci-home-admin-log-table .col-operator {
  width: 9%;
}
.sci-home-admin-log-table .col-op-type {
  width: 8%;
}
.sci-home-admin-log-table .col-target {
  width: 11%;
}
.sci-home-admin-log-table .col-content {
  width: 38%;
}
.sci-home-admin-log-table .col-status {
  width: 8%;
}
.sci-home-admin-log-table tbody td {
  padding: 2px 4px;
  vertical-align: middle;
  line-height: 1.2;
  text-align: center;
}
.sci-home-admin-log-table tbody td.col-content {
  text-align: left;
}
.sci-home-admin-log-cell-text {
  display: block;
  font-size: 11px;
  color: var(--sci-text);
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sci-home-admin-log-table tbody td.col-content .sci-home-admin-log-cell-text {
  text-align: left;
}
.sci-home-admin-log-status {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 11px;
  line-height: 1.3;
}
.sci-home-admin-log-status--ok {
  color: #3dd68c;
  background: rgba(61, 214, 140, 0.12);
}
.sci-home-admin-log-status--fail {
  color: #ff8a8a;
  background: rgba(255, 100, 100, 0.12);
}
.sci-home-admin-log-table-wrap .sci-home-cost-pagination {
  flex-shrink: 0;
  margin-top: 6px;
}
.home-smart-line-collections-panel{display:flex;flex-direction:column;gap:14px;padding:4px 2px}.home-smart-line-collections-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;border:1px solid rgba(80,180,220,.22);border-radius:10px;background:linear-gradient(135deg,rgba(9,39,64,.8),rgba(8,24,43,.72))}.home-smart-line-collections-head strong{display:block;color:#e9f7ff;font-size:16px}.home-smart-line-collections-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.home-smart-line-collections-active{font-size:12px;color:#8fe3ff}.home-smart-line-collection-list{display:flex;flex-direction:column;gap:8px;max-height:430px;overflow:auto}.home-smart-line-collection-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 14px;border:1px solid rgba(100,150,190,.22);border-radius:9px;background:rgba(7,25,44,.72);transition:border-color .18s,transform .18s}.home-smart-line-collection-row:hover{border-color:rgba(80,210,255,.56);transform:translateY(-1px)}.home-smart-line-collection-row.success{border-left:3px solid #36d399}.home-smart-line-collection-row.danger{border-left:3px solid #ff7d8a}.home-smart-line-collection-row.active{border-left:3px solid #5edbff}.home-smart-line-collection-row-main{min-width:0;flex:1}.home-smart-line-collection-row-title{display:flex;align-items:center;gap:8px}.home-smart-line-collection-row-title strong{color:#edf9ff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.home-smart-line-collection-status{padding:2px 7px;border-radius:999px;background:rgba(80,180,220,.13);color:#a8d8eb;font-size:11px}.home-smart-line-collection-row-meta{display:flex;gap:12px;flex-wrap:wrap;margin-top:7px;color:#8ea9bb;font-size:12px}.home-smart-line-collection-row p{margin:7px 0 0;color:#b7d3e4;font-size:12px}.home-smart-line-collection-warnings{display:flex;gap:6px;flex-wrap:wrap;margin-top:6px;color:#ffc77d;font-size:11px}.home-smart-line-collection-row-actions{display:flex;gap:6px;flex-shrink:0}.home-smart-line-collection-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;min-height:180px;border:1px dashed rgba(100,150,190,.3);border-radius:10px;color:#8ea9bb}.home-smart-line-collection-empty strong{color:#dff5ff;font-size:15px}.home-smart-line-icon-btn--danger:hover{color:#ff7d8a}@media(max-width:700px){.home-smart-line-collections-head,.home-smart-line-collection-row{align-items:flex-start;flex-direction:column}.home-smart-line-collection-row-actions{width:100%}}
.home-smart-line-parameter-panel{display:flex;flex-direction:column;gap:14px;padding:4px 2px}.home-smart-line-public-library-selectors{display:grid;grid-template-columns:minmax(220px,1fr) minmax(260px,1fr);gap:12px;align-items:end;margin:12px 0 0;padding:12px 14px;border:1px solid rgba(86,170,255,.22);border-radius:10px;background:linear-gradient(135deg,rgba(20,42,70,.72),rgba(16,27,47,.72))}.home-smart-line-public-library-selectors label{display:grid;gap:6px;min-width:0}.home-smart-line-public-library-selectors label>span{color:#a9c7e8;font-size:12px}.home-smart-line-public-library-selectors select{width:100%;min-height:34px}.home-smart-line-public-library-selectors small{grid-column:1/-1;color:#7f9aba;font-size:12px}.home-smart-line-param-grid--template{grid-template-columns:repeat(2,minmax(0,1fr))}.home-smart-line-parameter-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.home-smart-line-parameter-columns fieldset{min-width:0;padding:12px;border:1px solid rgba(80,180,220,.2);border-radius:8px}.home-smart-line-parameter-columns legend{padding:0 6px;color:#8fe3ff}.home-smart-line-parameter-stats{display:flex;gap:8px;flex-wrap:wrap}.home-smart-line-parameter-stats span{padding:6px 9px;border-radius:999px;background:rgba(30,125,170,.18);color:#b7d3e4;font-size:12px}.home-smart-line-parameter-hint{margin:0;color:#8ea9bb;font-size:12px}@media(max-width:760px){.home-smart-line-public-library-selectors{grid-template-columns:1fr}.home-smart-line-public-library-selectors small{grid-column:auto}.home-smart-line-param-grid--template,.home-smart-line-parameter-columns{grid-template-columns:1fr}}

/* 参数来源下拉框使用统一的自定义菜单，避免 Windows 原生 option 列表脱离深色主题。 */
.home-smart-line-public-library-field {
  position: relative;
  display: grid;
  gap: 6px;
  min-width: 0;
}
.home-smart-line-public-library-field > span {
  color: #a9c7e8;
  font-size: 12px;
}
.home-smart-line-select {
  position: relative;
  min-width: 0;
  z-index: 1;
}
.home-smart-line-select.is-open {
  z-index: 30;
}
.home-smart-line-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 36px;
  padding: 7px 10px;
  border: 1px solid rgba(0, 205, 255, 0.48);
  border-radius: 2px;
  color: #e8f6ff;
  background: rgba(3, 19, 34, 0.9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  font: inherit;
  font-size: 13px;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}
.home-smart-line-select-trigger:hover,
.home-smart-line-select.is-open .home-smart-line-select-trigger,
.home-smart-line-select-trigger:focus-visible {
  border-color: #42def8;
  background: rgba(5, 31, 52, 0.98);
  box-shadow: 0 0 0 2px rgba(0, 212, 255, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  outline: none;
}
.home-smart-line-select-trigger:disabled {
  color: rgba(190, 215, 230, 0.52);
  border-color: rgba(94, 140, 165, 0.28);
  cursor: not-allowed;
}
.home-smart-line-select-value {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.home-smart-line-select-chevron {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  margin: -4px 2px 0 0;
  border-right: 1px solid #bdeeff;
  border-bottom: 1px solid #bdeeff;
  transform: rotate(45deg);
  transition: transform 0.16s ease, margin 0.16s ease;
}
.home-smart-line-select.is-open .home-smart-line-select-chevron {
  margin-top: 4px;
  transform: rotate(225deg);
}
.home-smart-line-select-menu {
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  right: 0;
  max-height: 230px;
  overflow-y: auto;
  padding: 4px;
  border: 1px solid rgba(0, 205, 255, 0.52);
  border-radius: 3px;
  background: rgba(4, 20, 36, 0.98);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.42), 0 0 18px rgba(0, 174, 220, 0.12);
}
.home-smart-line-select-option {
  display: block;
  width: 100%;
  min-height: 32px;
  padding: 7px 9px;
  border: 1px solid transparent;
  border-radius: 2px;
  color: #dcefff;
  background: transparent;
  font: inherit;
  font-size: 12px;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
  transition: color 0.14s ease, background 0.14s ease, border-color 0.14s ease;
}
.home-smart-line-select-option:hover,
.home-smart-line-select-option:focus-visible {
  color: #f4fcff;
  background: rgba(0, 177, 220, 0.18);
  border-color: rgba(0, 212, 255, 0.35);
  outline: none;
}
.home-smart-line-select-option.is-selected {
  color: #041420;
  background: #4bd7ed;
  border-color: #72e6f7;
  font-weight: 600;
}
.home-smart-line-select-menu::-webkit-scrollbar { width: 7px; }
.home-smart-line-select-menu::-webkit-scrollbar-track { background: rgba(2, 11, 20, 0.55); }
.home-smart-line-select-menu::-webkit-scrollbar-thumb { background: rgba(67, 190, 220, 0.44); border-radius: 6px; }
.home-smart-line-select-menu::-webkit-scrollbar-thumb:hover { background: rgba(67, 220, 244, 0.68); }

/* 标注面板：保留足够宽度，保证表头、字段和操作按钮完整可读。 */
.sci-home-layer-dock.is-annotate-active .sci-home-annotate-main{width:min(980px,calc(100vw - 80px));min-width:860px;max-width:none;box-sizing:border-box}
.sci-home-layer-dock.is-annotate-active .sci-home-annotate-body-wrap{width:100%;box-sizing:border-box}
.sci-home-layer-dock.is-annotate-active .sci-home-annotate-cost-layout{display:flex;width:100%;max-width:none;align-self:stretch}
.sci-home-layer-dock.is-annotate-active .sci-home-annotate-main .sci-home-cost-tree-panel{width:148px;flex:0 0 148px}
.sci-home-layer-dock.is-annotate-active .sci-home-annotate-main .sci-home-cost-content{width:auto;min-width:0;flex:1 1 auto}
.sci-home-layer-dock.is-annotate-active .sci-home-annotate-main .sci-home-cost-table-wrap{width:100%;max-width:none;overflow-x:auto;align-items:stretch}
.sci-home-annotate-table{width:100%;min-width:690px;table-layout:fixed}
.sci-home-annotate-table th,.sci-home-annotate-table td{min-width:0;max-width:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;vertical-align:middle}
.sci-home-annotate-table th{white-space:nowrap}
.sci-home-annotate-table th:nth-child(1),.sci-home-annotate-table td:nth-child(1){width:58px;text-align:center}
.sci-home-annotate-table th:nth-child(2),.sci-home-annotate-table td:nth-child(2){width:132px}
.sci-home-annotate-table th:nth-child(3),.sci-home-annotate-table td:nth-child(3){width:124px}
.sci-home-annotate-table th:nth-child(4),.sci-home-annotate-table td:nth-child(4){width:92px}
.sci-home-annotate-table th:nth-child(5),.sci-home-annotate-table td:nth-child(5){width:156px}
.sci-home-annotate-table th:nth-child(6),.sci-home-annotate-table td:nth-child(6){width:128px;text-align:center}
.sci-home-annotate-table .sci-home-annotate-ops{width:max-content;min-width:112px;margin:0 auto;box-sizing:border-box}
@media(max-width:920px){.sci-home-layer-dock.is-annotate-active .sci-home-annotate-main{width:calc(100vw - 56px);min-width:0}}
@media(max-width:720px){
  .sci-home-layer-dock.is-annotate-active .sci-home-annotate-main .sci-home-cost-tree-panel{width:118px;flex-basis:118px}
  .sci-home-annotate-table{min-width:0;width:100%}
  .sci-home-annotate-table th:nth-child(5),.sci-home-annotate-table td:nth-child(5){display:none}
  .sci-home-annotate-table th:nth-child(1),.sci-home-annotate-table td:nth-child(1){width:38px}
  .sci-home-annotate-table th:nth-child(2),.sci-home-annotate-table td:nth-child(2){width:62px}
  .sci-home-annotate-table th:nth-child(3),.sci-home-annotate-table td:nth-child(3){width:58px}
  .sci-home-annotate-table th:nth-child(4),.sci-home-annotate-table td:nth-child(4){width:48px}
  .sci-home-annotate-table th:nth-child(6),.sci-home-annotate-table td:nth-child(6){width:108px}
  .sci-home-annotate-table th,.sci-home-annotate-table td{padding-left:4px;padding-right:4px;font-size:11px}
  .sci-home-annotate-table .sci-home-annotate-ops{min-width:102px;gap:2px;padding-left:2px;padding-right:2px}
  .sci-home-annotate-table .sci-home-act-pin,.sci-home-annotate-table .sci-home-act-del,.sci-home-annotate-table .sci-home-act-eye{width:26px;height:26px}
}

/* 让标注列表与右侧内容区同宽；覆盖通用费用表的 max-content 规则。 */
.sci-home-layer-dock.is-annotate-active .sci-home-annotate-main .sci-home-cost-table-wrap > .sci-home-annotate-table {
  width: 100% !important;
  min-width: 0;
  max-width: none !important;
  align-self: stretch;
  box-sizing: border-box;
}
.sci-home-layer-dock.is-annotate-active .sci-home-annotate-main .sci-home-annotate-cost-layout,
.sci-home-layer-dock.is-annotate-active .sci-home-annotate-main .sci-home-cost-table-wrap {
  width: 100% !important;
  max-width: none !important;
  box-sizing: border-box;
}
.sci-home-layer-dock.is-annotate-active .sci-home-annotate-main .sci-home-cost-content {
  width: auto !important;
  max-width: none !important;
  min-width: 0;
  flex: 1 1 auto;
}
/* 桌面端按内容区比例铺满，避免固定最小宽度造成右侧空白。 */
@media(min-width:721px){
  .sci-home-layer-dock.is-annotate-active .sci-home-annotate-table th:nth-child(1),
  .sci-home-layer-dock.is-annotate-active .sci-home-annotate-table td:nth-child(1){width:8%}
  .sci-home-layer-dock.is-annotate-active .sci-home-annotate-table th:nth-child(2),
  .sci-home-layer-dock.is-annotate-active .sci-home-annotate-table td:nth-child(2){width:18%}
  .sci-home-layer-dock.is-annotate-active .sci-home-annotate-table th:nth-child(3),
  .sci-home-layer-dock.is-annotate-active .sci-home-annotate-table td:nth-child(3){width:17%}
  .sci-home-layer-dock.is-annotate-active .sci-home-annotate-table th:nth-child(4),
  .sci-home-layer-dock.is-annotate-active .sci-home-annotate-table td:nth-child(4){width:15%}
  .sci-home-layer-dock.is-annotate-active .sci-home-annotate-table th:nth-child(5),
  .sci-home-layer-dock.is-annotate-active .sci-home-annotate-table td:nth-child(5){width:22%}
  .sci-home-layer-dock.is-annotate-active .sci-home-annotate-table th:nth-child(6),
  .sci-home-layer-dock.is-annotate-active .sci-home-annotate-table td:nth-child(6){width:20%}
}

/* 连续距离测量：保持地图为主视图，面板只承载实时数据和必要操作。 */
.sci-home-distance-trigger,
.sci-home-project-nav-distance {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.sci-home-distance-trigger svg,
.sci-home-project-nav-distance svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
}
.sci-home-project-nav-distance {
  flex: 0 0 auto;
}
.sci-home-distance-panel {
  top: 88px;
  right: 28px;
  width: 336px;
  min-width: 0;
  max-width: min(336px, calc(100vw - 40px));
  overflow: hidden;
  border-color: rgba(72, 226, 255, 0.72);
  box-shadow: 0 0 34px rgba(0, 212, 255, 0.22), 0 18px 48px rgba(0, 0, 0, 0.52);
}
.sci-home-distance-panel.open {
  display: flex;
}
.sci-home-distance-head {
  min-height: 58px;
  padding: 10px 14px 10px 16px;
  border-bottom-color: rgba(0, 212, 255, 0.22);
}
.sci-home-distance-title {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.sci-home-distance-title > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.sci-home-distance-title h2 {
  margin: 0;
  color: #f2fdff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.sci-home-distance-title span:not(.sci-home-distance-icon) {
  color: rgba(168, 223, 239, 0.7);
  font-size: 11px;
  white-space: nowrap;
}
.sci-home-distance-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  border: 1px solid rgba(86, 232, 255, 0.55);
  border-radius: 8px;
  color: #6eeeff;
  background: rgba(0, 212, 255, 0.12);
  box-shadow: inset 0 0 14px rgba(0, 212, 255, 0.12);
}
.sci-home-distance-icon svg {
  width: 20px;
  height: 20px;
}
.sci-home-distance-body {
  display: grid;
  gap: 12px;
  padding: 14px 16px 12px;
}
.sci-home-distance-total-card {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px 12px;
  border: 1px solid rgba(73, 226, 255, 0.38);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(0, 185, 220, 0.17), rgba(4, 26, 46, 0.72));
}
.sci-home-distance-total-label {
  align-self: center;
  color: rgba(186, 232, 242, 0.76);
  font-size: 12px;
  white-space: nowrap;
}
.sci-home-distance-total-value {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  color: #ffffff;
  white-space: nowrap;
}
.sci-home-distance-total-value strong {
  color: #75efff;
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}
.sci-home-distance-total-value span {
  color: #c9f8ff;
  font-size: 13px;
  font-weight: 700;
}
.sci-home-distance-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.sci-home-distance-stats > div {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 9px 11px;
  border: 1px solid rgba(136, 196, 218, 0.18);
  border-radius: 6px;
  background: rgba(5, 23, 39, 0.6);
}
.sci-home-distance-stats span {
  color: rgba(168, 208, 222, 0.6);
  font-size: 11px;
}
.sci-home-distance-stats strong {
  overflow: hidden;
  color: #e8fbff;
  font-size: 13px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.sci-home-distance-hint {
  min-height: 18px;
  margin: 0;
  color: rgba(164, 219, 233, 0.72);
  font-size: 11px;
  line-height: 1.5;
  text-align: right;
}
.sci-home-distance-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  padding: 11px 16px 14px;
  border-top: 1px solid rgba(0, 212, 255, 0.16);
}
.sci-home-distance-action {
  min-height: 30px;
  padding: 0 11px;
  border: 1px solid rgba(0, 212, 255, 0.34);
  border-radius: 5px;
  color: #bdeef6;
  background: rgba(0, 212, 255, 0.08);
  font-family: var(--font-main);
  font-size: 11px;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.16s, border-color 0.16s, background 0.16s, box-shadow 0.16s;
}
.sci-home-distance-action:hover {
  border-color: #58e9ff;
  color: #ffffff;
  background: rgba(0, 212, 255, 0.16);
  box-shadow: 0 0 12px rgba(0, 212, 255, 0.18);
}
.sci-home-distance-action--primary {
  border-color: rgba(82, 231, 255, 0.7);
  color: #06202a;
  background: linear-gradient(180deg, #8bf2ff 0%, #40d6ef 100%);
  font-weight: 700;
}
.sci-home-distance-action--primary:hover {
  color: #04141c;
  background: linear-gradient(180deg, #b2f8ff 0%, #55e0f4 100%);
}
.sci-home-distance-action[hidden] {
  display: none;
}
.sci-home.is-distance-measuring .sci-home-distance-trigger,
.sci-home.is-distance-measuring .sci-home-project-nav-distance {
  border-color: #6cecff;
  color: #061722;
  background: linear-gradient(180deg, #8bf2ff 0%, #35d4ef 100%);
  box-shadow: 0 0 18px rgba(0, 212, 255, 0.36);
}
.sci-home-bg.is-distance-measuring {
  cursor: crosshair;
}
@media (max-width: 760px) {
  .sci-home-distance-panel {
    top: 74px;
    right: 16px;
    max-width: calc(100vw - 32px);
  }
}
@media (max-width: 460px) {
  .sci-home-distance-actions {
    justify-content: stretch;
  }
  .sci-home-distance-action {
    flex: 1 1 0;
    padding-inline: 6px;
  }
}

/* 智能选线：把起终点方式与参数来源收敛为可扫描的业务状态。 */
.home-smart-line-endpoint-strategy {
  display: grid;
  gap: 9px;
  margin: 12px 0 2px;
  padding: 11px 12px;
  border: 1px solid rgba(0, 212, 255, 0.18);
  border-radius: 7px;
  background: rgba(0, 24, 38, 0.46);
}
.home-smart-line-endpoint-strategy-head,
.home-smart-line-endpoint-strategy-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.home-smart-line-endpoint-strategy-head {
  justify-content: space-between;
}
.home-smart-line-endpoint-strategy-head > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.home-smart-line-endpoint-strategy-head strong {
  color: var(--sci-text);
  font-size: 13px;
}
.home-smart-line-endpoint-strategy-hint {
  color: var(--sci-text-muted, #8297a6);
  font-size: 11px;
}
.home-smart-line-endpoint-strategy-actions {
  flex-wrap: wrap;
}
.home-smart-line-mode-btn,
.home-smart-line-map-action {
  min-height: 29px;
  padding: 0 11px;
  border: 1px solid rgba(0, 212, 255, 0.22);
  border-radius: 5px;
  color: var(--sci-text-dim);
  background: rgba(2, 14, 25, 0.72);
  font-size: 11px;
  cursor: pointer;
}
.home-smart-line-mode-btn:hover,
.home-smart-line-mode-btn.active {
  border-color: rgba(0, 212, 255, 0.72);
  color: #061218;
  background: #54d4e8;
}
.home-smart-line-map-action {
  margin-left: auto;
  border-color: rgba(84, 212, 232, 0.55);
  color: #9eeef6;
}
.home-smart-line-map-action:hover {
  color: #061218;
  background: #9eeef6;
}
.home-smart-line-template-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
  padding: 11px 12px;
  border: 1px solid rgba(0, 212, 255, 0.18);
  border-radius: 7px;
  background: rgba(0, 24, 38, 0.46);
}
.home-smart-line-template-summary > div:first-child {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.home-smart-line-template-summary strong {
  color: var(--sci-text);
  font-size: 14px;
}
.home-smart-line-template-summary small {
  color: var(--sci-text-muted, #8297a6);
  font-size: 10px;
}
.home-smart-line-template-summary-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}
.home-smart-line-template-summary-meta span {
  padding: 4px 7px;
  border: 1px solid rgba(126, 170, 194, 0.2);
  border-radius: 4px;
  color: var(--sci-text-dim);
  background: rgba(2, 12, 21, 0.48);
  font-size: 10px;
}
.sci-home-path-manage-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 2px 10px;
  border-bottom: 1px solid rgba(0, 212, 255, 0.16);
}
.sci-home-path-manage-summary > div:first-child {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.sci-home-path-manage-summary-label {
  color: var(--sci-text-dim);
  font-size: 11px;
}
.sci-home-path-manage-summary strong {
  color: var(--sci-text);
  font-size: 15px;
}
.sci-home-path-manage-summary-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--sci-text-muted, #8297a6);
  font-size: 10px;
}
.sci-home-path-manage-summary-meta .is-ready { color: #62df9b; }
.sci-home-path-manage-summary-meta .is-warning { color: #ffbd4a; }
.sci-home-path-name-line {
  display: block !important;
}
.sci-home-path-name-line strong {
  /* 路径名整段显示，不再省略号截断：多条方案并存时靠全名才能区分。 */
  display: block;
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.35;
  font-weight: 600;
}
.sci-home-path-source-tag {
  flex: 0 0 auto;
  padding: 2px 5px;
  border: 1px solid rgba(126, 170, 194, 0.24);
  border-radius: 3px;
  color: var(--sci-text-muted, #8297a6);
  font-size: 9px;
  font-style: normal;
  font-weight: 600;
}
.sci-home-path-source-tag--optimize { color: #54d4e8; border-color: rgba(84, 212, 232, 0.44); }
.sci-home-path-source-tag--final { color: #62df9b; border-color: rgba(98, 223, 155, 0.42); }
.sci-home-path-metric-line {
  display: block;
  margin-top: 3px;
  color: var(--sci-text-muted, #8297a6);
  font-size: 10px;
}
.sci-home-path-final-source {
  display: grid;
  gap: 3px;
  margin-bottom: 14px;
  padding: 10px 11px;
  border-left: 2px solid #54d4e8;
  background: rgba(0, 24, 38, 0.48);
}
.sci-home-path-final-source span,
.sci-home-path-final-source small {
  color: var(--sci-text-muted, #8297a6);
  font-size: 10px;
}
.sci-home-path-final-source strong {
  color: var(--sci-text);
  font-size: 13px;
}
@media (max-width: 620px) {
  .home-smart-line-template-summary,
  .home-smart-line-endpoint-strategy-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .home-smart-line-template-summary-meta { justify-content: flex-start; }
  .home-smart-line-map-action { margin-left: 0; }
  .sci-home-path-manage-summary { align-items: flex-start; flex-direction: column; }
}
/* 数据准备记录：计算数据勾选（复用路径勾选样式）与头部提示 */
.home-smart-line-collection-check{display:flex;align-items:center;flex-shrink:0;cursor:pointer}
.home-smart-line-collection-check input[type="checkbox"]{cursor:pointer}
.home-smart-line-collection-check input[type="checkbox"]:disabled{cursor:not-allowed;opacity:.35}
.home-smart-line-collections-tip{display:block;margin-top:4px;color:#8ea9bb;font-size:12px;max-width:520px}
/* 起终点坐标行式对齐网格：点位|经度|纬度|高程|操作 同列严格对齐，通道宽度等参数独占行 */
.home-smart-line-coord-table{display:flex;flex-direction:column;gap:6px;margin-top:10px;width:100%}
.home-smart-line-coord-thead,.home-smart-line-coord-tr{display:grid;grid-template-columns:56px minmax(0,1.3fr) minmax(0,1.3fr) minmax(0,.9fr) auto;gap:8px;align-items:center}
.home-smart-line-coord-thead{padding:0 10px;color:#7fa3b8;font-size:11px;letter-spacing:.04em}
.home-smart-line-coord-thead span,.home-smart-line-coord-tr>span{white-space:nowrap}
.home-smart-line-coord-tr{padding:8px 10px;border:1px solid rgba(100,150,190,.22);border-radius:9px;background:rgba(7,25,44,.72);transition:border-color .18s}
.home-smart-line-coord-tr:hover{border-color:rgba(80,210,255,.45)}
.home-smart-line-coord-tr.is-point-hidden{display:none}
.home-smart-line-coord-pt{color:#dff5ff;font-size:13px;font-weight:600}
.home-smart-line-coord-tr .sci-home-terrain-coord-input{flex:1;min-width:0}
.home-smart-line-coord-tr .sci-home-cost-cell-input{width:100%;min-width:0}
.home-smart-line-coord-tr .sci-home-terrain-coord-unit{margin-left:4px}
.home-smart-line-param-grid--stack{display:flex;flex-direction:column;gap:8px}
.home-smart-line-param-grid--stack .sci-home-smart-line-param-row,.home-smart-line-param-grid--stack .home-smart-line-param-row{width:100%;margin:0}
.home-smart-line-param-grid--stack .sci-home-terrain-coord-input{max-width:220px}
@media(max-width:760px){.home-smart-line-coord-thead{display:none}.home-smart-line-coord-tr{grid-template-columns:1fr;gap:6px}.home-smart-line-coord-tr .home-smart-line-point-view-btn{justify-self:start}}
/* 数据准备记录头部：生产级重排 —— 标题+状态徽章一行，提示一行，操作按钮整行等宽 */
.home-smart-line-collections-head{display:flex;flex-direction:column;align-items:stretch;gap:9px;padding:13px 15px;border:1px solid rgba(80,180,220,.22);border-radius:10px;background:linear-gradient(135deg,rgba(9,39,64,.8),rgba(8,24,43,.72))}
.home-smart-line-collections-title{display:flex;align-items:center;gap:10px}
.home-smart-line-collections-title strong{color:#e9f7ff;font-size:15px;letter-spacing:.02em}
.home-smart-line-collections-badge{display:inline-flex;align-items:center;padding:2px 9px;border-radius:999px;background:rgba(54,211,153,.14);border:1px solid rgba(54,211,153,.45);color:#7ef0c2;font-size:11px;line-height:1.5}
.home-smart-line-collections-badge.is-busy{background:rgba(94,219,255,.13);border-color:rgba(94,219,255,.5);color:#9fe8ff}
.home-smart-line-collections-tip{margin:0;color:#8ea9bb;font-size:12px;line-height:1.5}
.home-smart-line-collections-actions{display:flex;gap:8px;margin-top:2px}
.home-smart-line-collections-actions .sci-home-btn-primary{flex:1.5;justify-content:center;margin:0}
.home-smart-line-collections-actions .sci-home-btn-ghost{flex:1;justify-content:center;margin:0}
@media(max-width:700px){.home-smart-line-collections-actions{flex-wrap:wrap}.home-smart-line-collections-actions .sci-home-btn-primary,.home-smart-line-collections-actions .sci-home-btn-ghost{flex:1 1 45%}}
.home-smart-line-collections-actions .sci-home-btn-primary,.home-smart-line-collections-actions .sci-home-btn-ghost{display:inline-flex;align-items:center;justify-content:center;height:32px;padding:0 12px;white-space:nowrap}
/* 路径管理：从智能选线跳转而来时的“返回计算参数”按钮 */
.sci-home-path-manage-return{flex-shrink:0;height:30px;padding:0 14px;white-space:nowrap}
/* 路径管理底部返回栏：与工具栏按钮同款式，置于表格下方 */

