:root {
  color-scheme: light;
  --bg: #f4f7fb;
  --bg-soft: #eef5f8;
  --surface: #ffffff;
  --surface-subtle: #f8fbfd;
  --text: #102033;
  --text-strong: #071523;
  --muted: #607186;
  --muted-2: #8795a7;
  --line: #dce5ee;
  --line-strong: #c4d2df;
  --teal: #07847f;
  --teal-dark: #036363;
  --teal-soft: #e7f6f3;
  --blue: #145fd7;
  --blue-soft: #e9f1ff;
  --green: #0f8a50;
  --amber: #bc7313;
  --red: #c23b22;
  --shadow-sm: 0 10px 24px rgba(16, 32, 51, 0.07);
  --shadow-md: 0 22px 60px rgba(16, 32, 51, 0.12);
  --radius: 8px;
  --sidebar: 282px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, #fbfdff 0, var(--bg) 460px);
  color: var(--text);
  font-family: "Microsoft JhengHei", "PingFang TC", "Noto Sans TC", system-ui, sans-serif;
  letter-spacing: 0;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

svg {
  display: block;
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex: 0 0 auto;
}

h1,
h2,
h3,
p {
  margin: 0;
}

.app-root {
  min-height: 100vh;
}

.shell {
  display: grid;
  grid-template-columns: var(--sidebar) minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
  padding: 28px 18px 20px;
  border-right: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
}

.brand {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 12px;
  align-items: center;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 58px;
  height: 52px;
  border-radius: var(--radius);
  background: linear-gradient(145deg, #079a92, #075a72);
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(7, 132, 127, 0.28);
}

.brand-mark::before {
  content: "";
  position: absolute;
  top: -10px;
  width: 26px;
  height: 14px;
  border: 4px solid #102033;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
}

.brand-name {
  display: block;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.3;
  color: var(--text-strong);
}

.brand-sub {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.2;
}

.nav {
  display: grid;
  gap: 8px;
  margin-top: 30px;
}

.nav a {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 46px;
  padding: 0 12px;
  border-radius: var(--radius);
  color: #44546a;
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
}

.nav a span:last-child {
  color: var(--muted-2);
  font-size: 11px;
  font-weight: 800;
}

.nav a:hover,
.nav a.active {
  background: linear-gradient(90deg, #e8f8f5, #eff7ff);
  color: var(--teal);
}

.nav a.disabled {
  opacity: 0.64;
  pointer-events: none;
}

.privacy-card {
  display: grid;
  gap: 10px;
  margin-top: 28px;
  padding: 16px;
  border: 1px solid #cbe8dc;
  border-radius: var(--radius);
  background: #f4fbf7;
}

.privacy-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: var(--radius);
  background: #dff6ec;
  color: var(--green);
}

.privacy-card strong,
.panel-title {
  color: var(--text-strong);
  font-size: 15px;
  font-weight: 900;
}

.privacy-card p {
  color: #567063;
  font-size: 13px;
  line-height: 1.7;
}

.sidebar-foot {
  display: flex;
  gap: 9px;
  align-items: center;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #13a35d;
  box-shadow: 0 0 0 4px rgba(19, 163, 93, 0.12);
}

.main {
  min-width: 0;
  padding: 26px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  min-height: 42px;
  margin-bottom: 18px;
}

.topbar-status {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 900;
}

.hero-band {
  position: relative;
  display: grid;
  align-items: center;
  min-height: 430px;
  padding: 52px 56px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.94) 44%, rgba(255, 255, 255, 0.62) 62%, rgba(255, 255, 255, 0.12) 100%),
    url("illustrations/hero-background.png") center / cover no-repeat;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.hero-content {
  display: grid;
  gap: 24px;
  max-width: 620px;
}

h1 {
  max-width: 820px;
  color: var(--text-strong);
  font-size: clamp(34px, 4.2vw, 50px);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: 0;
}

h2 {
  color: var(--text-strong);
  font-size: 24px;
  font-weight: 900;
  line-height: 1.25;
}

h3 {
  color: var(--text-strong);
  font-size: 19px;
  font-weight: 900;
  line-height: 1.35;
}

.lead {
  max-width: 780px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.85;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.trust-row span {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  color: #234358;
  font-size: 13px;
  font-weight: 900;
}

.trust-row span:first-child {
  color: var(--green);
}

.toolbox-illustration {
  display: grid;
  place-items: center;
  min-height: 260px;
}

.toolbox-illustration img {
  width: min(440px, 100%);
  aspect-ratio: 1.88 / 1;
  object-fit: cover;
  object-position: center;
  border: 1px solid rgba(190, 209, 219, 0.72);
  border-radius: var(--radius);
  box-shadow: 0 26px 48px rgba(16, 32, 51, 0.16);
}

.toolbox-bin {
  position: relative;
  display: grid;
  place-items: end center;
  width: 230px;
  height: 170px;
  border-radius: 18px 18px 26px 26px;
  background: linear-gradient(145deg, #0c918c, #07566d);
  box-shadow: 0 26px 46px rgba(8, 78, 100, 0.22);
}

.toolbox-bin::before {
  content: "";
  position: absolute;
  top: 20px;
  width: 270px;
  height: 38px;
  border-radius: 14px;
  background: linear-gradient(145deg, #13a9a1, #08706f);
  box-shadow: inset 0 -8px 16px rgba(0, 0, 0, 0.12);
}

.toolbox-bin span {
  position: relative;
  z-index: 3;
  margin-bottom: 34px;
  padding: 8px 12px;
  border-radius: 6px;
  background: #e9fbf8;
  color: var(--teal-dark);
  font-weight: 900;
}

.sheet,
.clipboard-asset {
  position: absolute;
  bottom: 106px;
  z-index: 2;
  width: 74px;
  height: 96px;
  border: 2px solid #9fb5c5;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 10px 18px rgba(16, 32, 51, 0.14);
}

.sheet::before,
.sheet::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  height: 8px;
  border-radius: 2px;
  background: #d6e2eb;
}

.sheet::before {
  top: 20px;
}

.sheet::after {
  top: 38px;
}

.sheet-a {
  left: 48px;
  transform: rotate(-10deg);
}

.sheet-b {
  right: 52px;
  transform: rotate(11deg);
}

.clipboard-asset {
  left: 84px;
  bottom: 116px;
  width: 78px;
  height: 112px;
  background: linear-gradient(#ffffff, #f5fafc);
}

.clipboard-asset::before {
  content: "";
  position: absolute;
  top: -13px;
  left: 20px;
  width: 34px;
  height: 22px;
  border-radius: 8px 8px 4px 4px;
  background: #1967ad;
}

.home-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 22px;
  align-items: start;
  margin-top: 22px;
}

.home-primary,
.home-aside {
  display: grid;
  gap: 20px;
}

.section {
  margin-top: 22px;
}

.home-primary .section,
.home-aside .section {
  margin-top: 0;
}

.module-section,
.tool-preview-card,
.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-sm);
}

.module-section,
.tool-preview-card {
  padding: 20px;
}

.panel.pad {
  padding: 20px;
}

.section-head,
.preview-head,
.page-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.section-head p,
.preview-head p {
  max-width: 680px;
  margin-top: 7px;
  color: var(--muted);
  line-height: 1.7;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.search,
.category-select,
.field input,
.field textarea,
.field select,
.unit-row input,
.text-preview {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--text);
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.search {
  width: min(360px, 100%);
  min-height: 42px;
  padding: 0 13px;
}

.category-select {
  min-height: 42px;
  padding: 0 36px 0 12px;
  font-weight: 800;
}

.search:focus,
.category-select:focus,
.field input:focus,
.field textarea:focus,
.field select:focus,
.unit-row input:focus,
.text-preview:focus {
  border-color: rgba(7, 132, 127, 0.55);
  box-shadow: 0 0 0 4px rgba(7, 132, 127, 0.1);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.chip,
.button,
.ghost-button,
.danger-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  padding: 0 14px;
  background: #fff;
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
}

.button svg,
.ghost-button svg,
.danger-button svg,
.chip svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: currentColor;
}

.chip {
  min-height: 34px;
  color: var(--muted);
  font-size: 13px;
}

.chip.active {
  border-color: rgba(7, 132, 127, 0.35);
  background: var(--teal-soft);
  color: var(--teal-dark);
}

.button {
  border-color: transparent;
  background: linear-gradient(135deg, var(--teal), var(--blue));
  color: #fff;
  box-shadow: 0 12px 24px rgba(20, 95, 215, 0.18);
}

.ghost-button:hover,
.chip:hover {
  border-color: var(--line-strong);
  background: #f9fbfd;
}

.danger-button {
  border-color: #f2c8bd;
  background: #fff7f4;
  color: var(--red);
}

.button:disabled,
.ghost-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

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

.home-primary .tool-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tool-card {
  display: grid;
  gap: 14px;
  min-height: 300px;
  padding: 20px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--teal);
  border-radius: var(--radius);
  background: var(--surface);
  color: inherit;
  text-decoration: none;
  box-shadow: 0 12px 24px rgba(16, 32, 51, 0.06);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.tool-card-art {
  overflow: hidden;
  min-height: 118px;
  border: 1px solid rgba(205, 218, 230, 0.78);
  border-radius: var(--radius);
  background-color: #f5fafb;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.tool-card-art.image-art img {
  display: block;
  width: 100%;
  height: 140px;
  object-fit: cover;
  object-position: center;
}

.tool-card-art.sprite-art {
  height: 140px;
  background-image: url("illustrations/tool-suite-grid.png");
  background-repeat: no-repeat;
  background-size: 206%;
}

.meeting-art {
  background-position: 0 0;
}

.supervision-art {
  background-position: 100% 0;
}

.pipeline-art {
  background-position: 100% 100%;
}

.tool-card:hover {
  transform: translateY(-2px);
  border-color: rgba(7, 132, 127, 0.38);
  box-shadow: var(--shadow-md);
}

.tool-card.blue {
  border-top-color: var(--blue);
}

.tool-card.green {
  border-top-color: var(--green);
}

.tool-card.future-card {
  min-height: 190px;
  border-top-color: #a5b1bf;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
}

.tool-card-head,
.tool-card-foot {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 14px;
  align-items: stretch;
}

.tool-index {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: var(--radius);
  background: var(--teal-soft);
  color: var(--teal);
}

.blue .tool-index {
  background: var(--blue-soft);
  color: var(--blue);
}

.green .tool-index {
  background: #e8f7ee;
  color: var(--green);
}

.future-card .tool-index {
  background: #eef2f6;
  color: #6a7786;
}

.badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--teal-soft);
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 900;
}

.badge.muted {
  background: #eef2f6;
  color: #687686;
}

.tool-card p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.format-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.format-list span {
  padding: 5px 8px;
  border-radius: 999px;
  background: #f0f4f8;
  color: #516173;
  font-size: 12px;
  font-weight: 800;
}

.card-action {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--teal), #087f94);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.blue .card-action {
  background: linear-gradient(135deg, var(--blue), #0781cc);
  color: #fff;
}

.green .card-action {
  background: linear-gradient(135deg, var(--green), #07847f);
  color: #fff;
}

.tool-preview-card {
  display: grid;
  gap: 16px;
}

.preview-flow {
  display: grid;
  grid-template-columns: 1fr 1.25fr 1fr;
  gap: 14px;
}

.mini-panel {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-subtle);
}

.mini-panel strong {
  color: var(--text-strong);
  font-size: 14px;
}

.mini-panel small {
  color: var(--muted);
  font-weight: 700;
  line-height: 1.5;
}

.drop-demo {
  display: grid;
  place-items: center;
  gap: 8px;
  min-height: 104px;
  border: 1.5px dashed #75c4be;
  border-radius: var(--radius);
  background: #f3fcfa;
  color: var(--teal-dark);
  text-align: center;
  font-size: 14px;
  font-weight: 900;
}

.fake-table {
  display: grid;
  grid-template-columns: 92px 1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  font-size: 13px;
}

.fake-table span,
.fake-table b {
  min-height: 38px;
  padding: 10px;
  border-bottom: 1px solid var(--line);
}

.fake-table span {
  background: #f3f7fb;
  color: var(--muted);
}

.fake-table b {
  color: var(--text-strong);
  font-weight: 900;
}

.fake-table span:nth-last-child(-n + 2),
.fake-table b:nth-last-child(-n + 1) {
  border-bottom: 0;
}

.demo-button {
  min-height: 52px;
}

.panel-title {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
}

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

.check-list li {
  position: relative;
  padding-left: 24px;
  color: #365063;
  font-size: 14px;
  line-height: 1.55;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 10px;
  height: 6px;
  border-left: 2px solid var(--green);
  border-bottom: 2px solid var(--green);
  transform: rotate(-45deg);
}

.workflow-panel {
  display: grid;
  gap: 12px;
}

.workflow-step {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  align-items: start;
}

.workflow-step b {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: linear-gradient(145deg, var(--teal), var(--blue));
  color: #fff;
  font-size: 14px;
}

.workflow-step strong {
  display: block;
  color: var(--text-strong);
  font-size: 14px;
}

.workflow-step span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.tool-layout {
  display: grid;
  grid-template-columns: minmax(330px, 0.86fr) minmax(0, 1.14fr);
  gap: 18px;
  align-items: start;
}

.tool-page-head {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, #fff, #f4fbfd);
  box-shadow: var(--shadow-sm);
}

.tool-page-head h1 {
  font-size: clamp(30px, 4vw, 46px);
}

.upload-panel {
  display: grid;
  gap: 14px;
}

.upload-box {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1.5px dashed #7ebfbd;
  border-radius: var(--radius);
  background: #f4fcfb;
}

.upload-title {
  color: var(--text-strong);
  font-weight: 900;
}

.upload-box small {
  color: var(--muted);
  line-height: 1.55;
}

.upload-box input {
  width: 100%;
}

.status {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--muted);
  line-height: 1.6;
}

.status.success {
  border-color: #b9e6d3;
  background: #f1fbf6;
  color: var(--green);
}

.status.warning {
  border-color: #f8d49a;
  background: #fff8eb;
  color: var(--amber);
}

.status.danger {
  border-color: #f3b9a9;
  background: #fff4f0;
  color: var(--red);
}

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

.field-grid.single {
  grid-template-columns: 1fr;
}

label.field {
  display: grid;
  gap: 6px;
}

label.field span {
  color: #4d5f73;
  font-size: 13px;
  font-weight: 900;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 11px 12px;
}

.field textarea {
  min-height: 96px;
  resize: vertical;
  line-height: 1.65;
}

.wide {
  grid-column: 1 / -1;
}

.fieldset {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.fieldset-title {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--text-strong);
  font-weight: 900;
}

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

.unit-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.unit-row input {
  width: 100%;
  padding: 10px 12px;
}

.preview-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 14px;
}

.preview-table th,
.preview-table td {
  border: 1px solid var(--line);
  padding: 10px;
  text-align: left;
  vertical-align: top;
  word-break: break-word;
}

.preview-table th {
  background: #f1f6fa;
  color: var(--text-strong);
}

.text-preview {
  width: 100%;
  min-height: 180px;
  padding: 12px;
  line-height: 1.7;
  resize: vertical;
}

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

.report-item {
  display: grid;
  gap: 3px;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-subtle);
  color: var(--muted);
  line-height: 1.55;
  cursor: pointer;
}

.report-item strong {
  color: var(--text-strong);
}

.report-item span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.report-item.active {
  border-color: rgba(13, 148, 136, 0.55);
  background: rgba(13, 148, 136, 0.08);
  box-shadow: inset 3px 0 0 var(--teal);
}

.compact-fields {
  margin-bottom: 12px;
}

.geo-head {
  background:
    linear-gradient(135deg, rgba(255,255,255,.98), rgba(241,251,246,.92)),
    linear-gradient(120deg, #ffffff, #eef9f3);
}

.geo-layout {
  grid-template-columns: minmax(340px, 0.92fr) minmax(0, 1.08fr);
}

.command-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f7fbfd;
}

.command-box code,
.launch-list code {
  font-family: "Cascadia Mono", "Consolas", monospace;
  font-size: 12px;
  line-height: 1.55;
  word-break: break-all;
}

.launch-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.launch-list div,
.geo-schema div {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-subtle);
}

.launch-list strong,
.geo-schema strong {
  color: var(--text-strong);
  font-size: 14px;
}

.launch-list span,
.geo-schema span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.geo-schema {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.geo-schema.compact {
  grid-template-columns: 1fr;
  margin-top: 14px;
}

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

.field.wide,
.check-row.wide,
.geo-settings-grid .segmented,
.geo-settings-grid .status {
  grid-column: 1 / -1;
}

.upload-zone.compact {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-height: 108px;
  padding: 18px;
  border: 1.5px dashed #98d5cf;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #f7fefd, #f8fbff);
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.upload-zone.compact:hover {
  border-color: var(--teal);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.upload-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: linear-gradient(145deg, var(--teal), var(--blue));
  color: white;
  box-shadow: 0 12px 26px rgba(13, 145, 136, 0.22);
}

.upload-icon svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.upload-copy {
  display: grid;
  gap: 4px;
}

.upload-copy strong {
  color: var(--text-strong);
  font-size: 15px;
}

.upload-copy small {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.upload-zone.compact input {
  grid-column: 2;
  width: 100%;
}

.segmented {
  display: flex;
  gap: 8px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-subtle);
}

.segmented button {
  flex: 1;
  min-height: 40px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
}

.segmented button.active {
  background: var(--surface);
  color: var(--text-strong);
  box-shadow: var(--shadow-sm);
}

.check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
}

.check-row input {
  width: 18px;
  height: 18px;
}

.parsed-card,
.geo-location-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

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

.parsed-card div,
.geo-location-list div {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-subtle);
}

.parsed-card strong,
.geo-location-list strong {
  color: var(--text-strong);
  font-size: 13px;
}

.parsed-card span,
.geo-location-list span,
.geo-location-list small,
.muted-note {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.details-box {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.details-box summary {
  cursor: pointer;
  font-weight: 700;
}

.route-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.route-list label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-subtle);
  font-size: 13px;
  line-height: 1.5;
}

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

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

.table-wrap th,
.table-wrap td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  white-space: nowrap;
}

.table-wrap th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--surface-subtle);
  color: var(--text-strong);
  font-size: 12px;
}

.table-wrap td:last-child {
  white-space: normal;
  min-width: 260px;
}

.empty-state {
  display: grid;
  min-height: 120px;
  place-items: center;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  color: var(--muted);
  background: var(--surface-subtle);
}

.geo-correction-panel {
  display: grid;
  gap: 12px;
  margin: 16px 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-subtle);
}

.compact-head {
  gap: 12px;
  margin: 0;
}

.compact-head h3 {
  margin: 0 0 4px;
  font-size: 18px;
}

.compact-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.status.warning {
  border-color: #f1c35d;
  background: #fff8e7;
  color: #795100;
}

.geo-point-editor table {
  min-width: 920px;
}

.geo-point-editor th:first-child,
.geo-point-editor td:first-child {
  width: 60px;
  text-align: center;
}

.geo-point-editor input[type="text"],
.geo-point-editor input:not([type]) {
  width: 100%;
  min-width: 150px;
  padding: 8px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text-strong);
  font: inherit;
}

.geo-map-panel {
  display: grid;
  gap: 10px;
  margin: 16px 0;
}

.geo-map-toolbar {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: baseline;
  gap: 12px;
}

.geo-map-toolbar strong {
  color: var(--text-strong);
}

.geo-map-toolbar em {
  padding: 4px 8px;
  border-radius: 999px;
  background: #fee2e2;
  color: #991b1b;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

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

.geo-route-picker {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 0 6px;
}

.geo-route-picker button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 360px;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.geo-route-picker button span {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #fee2e2;
  color: #991b1b;
  font-size: 12px;
}

.geo-route-picker button.active {
  border-color: rgba(185, 28, 28, 0.35);
  background: #fff5f5;
  color: #7f1d1d;
  box-shadow: var(--shadow-sm);
}

.geo-map {
  position: relative;
  height: 430px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #eef1ef;
  cursor: grab;
  user-select: none;
  touch-action: none;
}

.geo-map.dragging {
  cursor: grabbing;
}

.geo-map[data-map-mode="pick"] {
  cursor: crosshair;
}

.geo-map-layer,
.geo-map-svg {
  position: absolute;
  inset: 0;
}

.geo-map-svg {
  pointer-events: none;
  z-index: 2;
}

.geo-map-tile {
  position: absolute;
  width: 256px;
  height: 256px;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

.geo-route-segment {
  position: absolute;
  z-index: 2;
  height: 8px;
  margin-top: -4px;
  border-radius: 999px;
  background: rgba(220, 56, 56, 0.58);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.72), 0 2px 10px rgba(127, 29, 29, 0.26);
  pointer-events: none;
  transform-origin: 0 50%;
}

.geo-route-segment.selected {
  z-index: 2;
  height: 12px;
  margin-top: -6px;
  background: rgba(185, 28, 28, 0.78);
  box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.82), 0 3px 14px rgba(127, 29, 29, 0.34);
}

.geo-route-polyline.selected {
  filter: drop-shadow(0 2px 3px rgba(127, 29, 29, 0.32));
}

.geo-map-point {
  position: absolute;
  z-index: 3;
  width: 14px;
  height: 14px;
  margin-left: -7px;
  margin-top: -7px;
  border: 2px solid white;
  border-radius: 50%;
  background: #dc3838;
  box-shadow: 0 2px 8px rgba(16, 32, 51, 0.28);
  pointer-events: none;
}

.geo-map-point.selected {
  width: 22px;
  height: 22px;
  margin-left: -11px;
  margin-top: -11px;
  border: 3px solid #ffffff;
  background: #0f766e;
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.24), 0 2px 10px rgba(16, 32, 51, 0.3);
}

.geo-map-point.pending {
  background: #f59e0b;
}

.geo-map-modebar {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 4;
  display: flex;
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-sm);
}

.geo-map-modebar button {
  min-width: 58px;
  padding: 8px 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 800;
}

.geo-map-modebar button.active {
  background: var(--text-strong);
  color: white;
}

.geo-map-controls {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 4;
  display: grid;
  gap: 6px;
}

.geo-map-controls button {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text-strong);
  cursor: pointer;
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
  box-shadow: var(--shadow-sm);
}

.geo-map-hint {
  position: absolute;
  right: 12px;
  bottom: 12px;
  left: 12px;
  z-index: 4;
  padding: 10px 12px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text-strong);
  font-size: 13px;
  box-shadow: var(--shadow-sm);
}

.hidden {
  display: none !important;
}

@media (max-width: 1180px) {
  .shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

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

  .privacy-card,
  .sidebar-foot {
    display: none;
  }

  .hero-band,
  .home-layout,
  .tool-layout,
  .geo-layout {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 760px) {
  .main {
    padding: 16px;
  }

  .brand {
    grid-template-columns: 52px 1fr;
  }

  .brand-mark {
    width: 52px;
    height: 48px;
    font-size: 16px;
  }

  .nav,
  .tool-grid,
  .home-primary .tool-grid,
  .preview-flow,
  .field-grid,
  .home-aside,
  .geo-schema,
  .geo-settings-grid,
  .parsed-card,
  .command-box {
    grid-template-columns: 1fr;
  }

  .nav a {
    grid-template-columns: 24px minmax(0, 1fr);
  }

  .nav a span:last-child {
    display: none;
  }

  .topbar,
  .section-head,
  .preview-head,
  .page-head {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-band,
  .tool-page-head {
    padding: 22px;
  }

  .toolbox-illustration {
    display: grid;
    min-height: 170px;
  }

  .toolbox-illustration img {
    width: 100%;
  }

  .toolbar {
    width: 100%;
  }

  .search,
  .category-select,
  .toolbar .ghost-button,
  .toolbar .button {
    width: 100%;
  }

  .unit-row {
    grid-template-columns: 1fr;
  }
}
