:root {
  color-scheme: light;
  --ink: #152233;
  --muted: #687789;
  --line: #dfe6ee;
  --panel: #ffffff;
  --canvas: #eef3f8;
  --nav: #ffffff;
  --nav-soft: #e9f0ff;
  --accent: #1677ff;
  --accent-strong: #0f5fc9;
  --blue: #2f80ed;
  --teal: #0f766e;
  --indigo: #4f46e5;
  --rose: #be3b5b;
  --amber: #b7791f;
  --green: #1f7a4d;
  --warning: #b87300;
  --danger: #a33a3a;
  --success: #1f7a4d;
  --violet: #6f5cc2;
  --yellow-soft: #fff6d8;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--canvas);
  color: var(--ink);
}

.access-gate {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(238, 243, 248, 0.96);
}

.access-card {
  display: grid;
  gap: 14px;
  width: min(520px, 100%);
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(41, 64, 92, 0.18);
}

.access-card h1 {
  font-size: 28px;
}

.access-card p,
#accessError {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

#accessError {
  min-height: 20px;
  color: var(--danger);
  font-size: 13px;
  font-weight: 700;
}

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

button {
  cursor: pointer;
}

.app-shell {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 22px;
  min-height: 100vh;
  padding: 22px;
}

.sidebar {
  position: sticky;
  top: 22px;
  height: calc(100vh - 44px);
  overflow-y: auto;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--nav);
  color: var(--ink);
  box-shadow: 0 18px 50px rgba(41, 64, 92, 0.08);
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 24px;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 14px;
  background: #e5f0ff;
  color: var(--accent-strong);
  font-weight: 800;
}

.brand strong,
.brand span {
  display: block;
}

.brand span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
}

nav {
  display: grid;
  gap: 6px;
  margin-bottom: 22px;
}

nav a {
  padding: 11px 12px;
  border-radius: 14px;
  color: #445367;
  font-size: 14px;
  text-decoration: none;
}

nav a.active,
nav a:hover {
  background: var(--nav-soft);
  color: var(--accent-strong);
}

.mobile-quick-nav {
  display: none;
}

.access-panel {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #f8fbff;
}

.access-panel h2 {
  margin: 0 0 14px;
  font-size: 16px;
}

.access-panel label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 13px;
}

.access-panel select {
  width: 100%;
  min-height: 40px;
  border: 1px solid #d5dee9;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
}

.access-panel p {
  min-height: 44px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

main {
  padding: 0 0 26px;
}

.topbar {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 18px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(41, 64, 92, 0.08);
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 840px;
  margin: 0;
  font-size: 34px;
  line-height: 1.18;
}

.hero-subtitle {
  margin: 8px 0 0;
  color: var(--accent-strong);
  font-weight: 800;
}

.hero-copy {
  max-width: 880px;
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.scope-card {
  display: grid;
  gap: 6px;
  max-width: 780px;
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid #f0d77a;
  border-radius: 16px;
  background: var(--yellow-soft);
  color: #6d5210;
}

.scope-card span {
  line-height: 1.55;
}

.release-panel {
  display: grid;
  width: 230px;
  gap: 4px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #f8fbff;
}

.language-pill {
  justify-self: start;
  padding: 4px 10px;
  border-radius: 999px;
  background: #e9f0ff;
  color: var(--accent-strong);
  font-weight: 800;
}

.release-panel span,
.release-panel small {
  color: var(--muted);
  font-size: 13px;
}

.release-panel strong {
  font-size: 20px;
}

.kpi-grid,
.module-grid,
.checklist-grid,
.ops-grid,
.integration-grid,
.trend-grid,
.port-risk-grid {
  display: grid;
  gap: 14px;
}

.kpi-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 18px;
}

.kpi-card,
.module-card,
.check-card,
.ops-card,
.benchmark-item {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.kpi-card {
  padding: 16px;
  border-left: 4px solid var(--blue);
}

.kpi-card.high {
  border-left-color: var(--warning);
}

.kpi-card.danger {
  border-left-color: var(--danger);
}

.kpi-card.warn {
  border-left-color: var(--violet);
}

.kpi-card span,
.kpi-card small {
  display: block;
  color: var(--muted);
}

.kpi-card strong {
  display: block;
  margin: 8px 0 2px;
  font-size: 28px;
}

.module-board,
.panel {
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--panel);
  box-shadow: 0 16px 40px rgba(41, 64, 92, 0.07);
}

.module-board {
  padding: 18px;
}

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

.section-heading h2,
.panel-heading h2,
.risk-box h3,
.check-card h3,
.ops-card h3,
.integration-grid h3 {
  margin: 0;
}

.quiet-tag,
.pill {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: #e9f0ff;
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
}

.danger-pill {
  background: #f9e5e5;
  color: var(--danger);
}

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

.module-card {
  padding: 16px;
}

.module-card header {
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

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

.module-card p {
  min-height: 42px;
  margin: 8px 0 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.status-dot {
  display: inline-flex;
  align-items: center;
  min-width: 64px;
  justify-content: center;
  padding: 4px 8px;
  border-radius: 999px;
  background: #edf5ef;
  color: var(--success);
  font-size: 12px;
  font-weight: 750;
}

.status-dot.pending {
  background: #fff1dc;
  color: var(--warning);
}

.status-dot.future {
  background: #edf0f5;
  color: #5b6470;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  gap: 18px;
  margin-bottom: 18px;
}

.panel {
  padding: 20px;
}

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

.field-grid.five-fields {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

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

label {
  display: grid;
  gap: 7px;
  color: #33414f;
  font-size: 14px;
  font-weight: 650;
}

input,
select,
textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid #cbd5df;
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  outline: none;
  padding: 9px 10px;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(22, 119, 255, 0.14);
}

.full-span {
  grid-column: 1 / -1;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.hs-case-strip {
  display: grid;
  grid-template-columns: minmax(240px, 1.3fr) auto auto minmax(260px, 1fr);
  gap: 10px;
  align-items: end;
  margin: 14px 0 18px;
  padding: 12px;
  border: 1px solid #dce7f3;
  border-radius: 12px;
  background: linear-gradient(135deg, #f8fbff, #f4f8f2);
}

.hs-case-strip label {
  gap: 5px;
}

.hs-case-strip span {
  align-self: center;
  color: #5d6b7c;
  font-size: 13px;
  line-height: 1.45;
}

.primary-button,
.secondary-button,
.ghost-button {
  min-height: 38px;
  border-radius: 12px;
  border: 1px solid transparent;
  padding: 8px 13px;
  font-weight: 750;
}

.primary-button {
  background: var(--accent);
  color: #fff;
}

.secondary-button {
  border-color: var(--line);
  background: #fff;
  color: var(--ink);
}

.ghost-button {
  border-color: #d6e4ff;
  background: #f7fbff;
  color: var(--accent-strong);
}

.empty-state {
  display: grid;
  min-height: 140px;
  place-items: center;
  padding: 24px;
  border: 1px dashed #c8d5df;
  border-radius: 16px;
  color: var(--muted);
  text-align: center;
}

.empty-state strong {
  color: var(--ink);
}

.hidden {
  display: none !important;
}

.workspace-hidden,
.tab-panel {
  display: none !important;
}

.tab-panel.active {
  display: block !important;
}

#hs .tab-panel {
  grid-column: 1 / -1;
}

.hs-classification-grid.active {
  display: grid !important;
  grid-template-columns: minmax(0, 1.12fr) minmax(340px, 0.88fr);
  gap: 14px;
  align-items: start;
}

.workspace-title {
  grid-column: 1 / -1;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 14px;
  padding: 16px 18px;
  border: 1px solid #dbe7f3;
  border-left: 5px solid var(--accent);
  border-radius: 16px;
  background: linear-gradient(90deg, #f7fbff 0%, #ffffff 100%);
}

.workspace-title h2 {
  margin: 0;
  font-size: 22px;
}

.workspace-title span {
  max-width: 420px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
  text-align: right;
  line-height: 1.5;
}

.module-launcher {
  margin-bottom: 18px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(41, 64, 92, 0.07);
}

.launcher-heading {
  margin-bottom: 14px;
}

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

.module-launch-card {
  display: grid;
  gap: 8px;
  min-height: 150px;
  padding: 16px;
  border: 1px solid #dbe5ef;
  border-radius: 14px;
  background: #fbfdff;
  color: var(--ink);
  text-decoration: none;
  transition:
    transform 0.16s ease,
    border-color 0.16s ease,
    box-shadow 0.16s ease;
}

.module-launch-card:hover,
.module-launch-card.active {
  transform: translateY(-2px);
  border-color: #bcd5f4;
  box-shadow: 0 14px 34px rgba(41, 64, 92, 0.12);
}

.module-launch-card span {
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 850;
}

.module-launch-card strong {
  font-size: 18px;
}

.module-launch-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.tone-blue {
  border-left: 4px solid var(--blue);
}

.tone-green {
  border-left: 4px solid var(--green);
}

.tone-indigo {
  border-left: 4px solid var(--indigo);
}

.tone-amber {
  border-left: 4px solid var(--amber);
}

.tone-rose {
  border-left: 4px solid var(--rose);
}

.tone-slate {
  border-left: 4px solid #64748b;
}

.module-tabs {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
  padding: 5px;
  border: 1px solid #d9e4ef;
  border-radius: 14px;
  background: #f7fbff;
}

.module-tab {
  min-height: 34px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #526174;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 800;
}

.module-tab.active {
  background: #fff;
  color: var(--accent-strong);
  box-shadow: 0 5px 16px rgba(41, 64, 92, 0.12);
}

.result-state {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-bottom: 16px;
}

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

.credibility-card {
  padding: 12px;
  border: 1px solid #dbe5ef;
  border-top: 3px solid #64748b;
  border-radius: 10px;
  background: #fbfdff;
}

.credibility-card span {
  display: block;
  margin-bottom: 6px;
  color: #64748b;
  font-size: 11px;
  font-weight: 900;
}

.credibility-card strong {
  display: block;
  color: #102033;
  font-size: 16px;
}

.credibility-card p {
  margin: 6px 0 0;
  color: #5d6b7c;
  font-size: 13px;
  line-height: 1.45;
}

.credibility-card.tone-green {
  border-top-color: #0f766e;
  background: linear-gradient(180deg, #f0fdfa, #ffffff);
}

.credibility-card.tone-amber {
  border-top-color: #b7791f;
  background: linear-gradient(180deg, #fff8ed, #ffffff);
}

.credibility-card.tone-rose {
  border-top-color: #be3b5b;
  background: linear-gradient(180deg, #fff4f6, #ffffff);
}

.hs-case-status {
  margin: 12px 0;
  padding: 13px 14px;
  border: 1px solid #dbe5ef;
  border-left: 5px solid #0f766e;
  border-radius: 10px;
  background: #f8fffd;
}

.hs-case-status.failed {
  border-left-color: #be3b5b;
  background: #fff7f8;
}

.hs-case-status span,
.hs-suite-summary span,
.hs-suite-list span {
  display: block;
  color: #64748b;
  font-size: 11px;
  font-weight: 900;
}

.hs-case-status strong,
.hs-suite-summary strong,
.hs-suite-list strong {
  display: block;
  margin-top: 4px;
  color: #102033;
}

.hs-case-status p,
.hs-suite-summary p,
.hs-suite-list p,
.hs-suite-list small {
  color: #5d6b7c;
  line-height: 1.5;
}

.hs-suite-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.hs-suite-summary article,
.hs-suite-list article {
  padding: 13px;
  border: 1px solid #dbe5ef;
  border-radius: 10px;
  background: #fff;
}

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

.hs-suite-list article {
  border-left: 5px solid #0f766e;
}

.hs-suite-list article.failed {
  border-left-color: #be3b5b;
  background: #fff8f9;
}

.score-ring {
  display: grid;
  width: 104px;
  height: 104px;
  flex: 0 0 104px;
  place-items: center;
  border: 8px solid #d9f1f2;
  border-radius: 50%;
  text-align: center;
}

.score-ring span {
  font-size: 23px;
  font-weight: 850;
}

.score-ring small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.recommendation-copy h3 {
  margin: 0 0 6px;
  font-size: 28px;
}

.recommendation-copy p {
  margin: 6px 0 0;
  color: var(--muted);
}

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

.candidate-card {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fbfdfe;
}

.candidate-card header {
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.candidate-card strong,
.candidate-card span {
  display: block;
}

.candidate-card header > span {
  color: var(--accent-strong);
  font-weight: 850;
}

.candidate-card p,
.risk-box li {
  color: var(--muted);
  line-height: 1.5;
}

.classification-proof {
  display: grid;
  gap: 5px;
  margin: 10px 0;
  padding: 10px 12px;
  border: 1px solid #dbeafe;
  border-left: 4px solid #0f766e;
  border-radius: 10px;
  background: #f8fbff;
}

.classification-proof b {
  color: #102033;
  font-size: 13px;
}

.classification-proof span {
  color: #5d6b7c;
  font-size: 13px;
  line-height: 1.45;
}

.tariff-mini {
  display: grid;
  gap: 12px;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid #d8e7f4;
  border-radius: 12px;
  background: #f8fbff;
}

.tariff-collapsed summary {
  cursor: pointer;
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 900;
}

.tariff-collapsed[open] summary {
  margin-bottom: 10px;
}

.tariff-headline {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.tariff-headline span,
.tariff-component span {
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 850;
}

.tariff-headline strong {
  color: var(--ink);
  font-size: 14px;
}

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

.tariff-component {
  display: grid;
  gap: 6px;
  min-height: 116px;
  padding: 12px;
  border: 1px solid #e0e9f3;
  border-radius: 10px;
  background: #ffffff;
}

.tariff-component.focus {
  border-color: #bcd5ff;
  background: #f5f9ff;
}

.tariff-component.alert {
  border-color: #f2d49a;
  background: #fffaf0;
}

.tariff-component strong {
  color: var(--ink);
  font-size: 18px;
  line-height: 1.32;
}

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

.audience-note-grid div {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid #e1e8f0;
  border-radius: 10px;
  background: #ffffff;
}

.audience-note-grid b {
  color: var(--ink);
  font-size: 13px;
}

.tariff-mini b {
  color: var(--ink);
}

.tariff-mini small {
  color: var(--muted);
  line-height: 1.45;
}

.tariff-line-list {
  display: grid;
  gap: 7px;
}

.tariff-mini em {
  display: grid;
  gap: 3px;
  padding: 8px 10px;
  border-left: 3px solid var(--warning);
  border-radius: 8px;
  background: #fff8ea;
  color: #7c560e;
  font-style: normal;
  font-weight: 800;
}

.tariff-mini em.neutral {
  border-left-color: #9aa7b5;
  background: #f4f7fa;
  color: #536273;
}

.evidence-drawer {
  margin-top: 10px;
}

.evidence-drawer summary {
  cursor: pointer;
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 850;
}

.risk-box,
.decision-box {
  margin-top: 14px;
  padding: 14px;
  border-radius: 16px;
  background: #fff7eb;
  color: #6e4a16;
}

.merged-elements {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.panel-subheading {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 12px;
}

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

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

.decision-box.high-risk {
  background: #fff0f0;
  color: #763030;
}

.decision-box.medium-risk {
  background: #fff7eb;
  color: #6e4a16;
}

.decision-box.low-risk {
  background: #eef8f1;
  color: #225d3d;
}

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

.dg-card {
  min-height: 136px;
  padding: 14px;
  border: 1px solid #e0e8f0;
  border-top: 3px solid #c2410c;
  border-radius: 10px;
  background: #fff;
  color: #243044;
}

.dg-card.primary {
  border-top-color: #2563eb;
  background: linear-gradient(180deg, #f5f9ff, #fff 60%);
}

.dg-card.alert {
  border-top-color: #be3b5b;
  background: #fff7f8;
}

.dg-card.wide {
  grid-column: 1 / -1;
  min-height: 0;
}

body[data-active-module="battery"] #battery.two-column {
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}

#battery .panel {
  overflow: hidden;
}

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

#battery .result-panel {
  position: static;
  background:
    linear-gradient(180deg, #fff7ed, #ffffff 48%),
    #ffffff;
}

#batteryResult {
  min-height: 0;
}

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

.dg-card span {
  display: block;
  margin-bottom: 8px;
  color: #64748b;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.dg-card strong {
  display: block;
  color: #102033;
  font-size: 17px;
  line-height: 1.35;
}

.dg-card p,
.dg-card li {
  color: #566579;
  font-size: 13px;
  line-height: 1.55;
}

.dg-card ul {
  margin: 0;
  padding-left: 18px;
}

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

.check-card {
  padding: 14px;
}

.check-card h3 {
  font-size: 15px;
}

.check-card ul {
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.timeline {
  display: grid;
  gap: 12px;
}

.timeline-item {
  padding: 13px 0 13px 14px;
  border-left: 3px solid var(--accent);
}

.timeline-item time {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.timeline-item h3 {
  margin: 5px 0;
  font-size: 16px;
}

.timeline-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.source-list,
.benchmark-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.source-card,
.benchmark-item {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfe;
}

.source-card a {
  color: var(--accent-strong);
  font-weight: 800;
  font-size: 13px;
  text-decoration: none;
}

.source-card p,
.benchmark-item p,
.ops-card p,
.integration-grid p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.policy-live-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.policy-summary-card,
.policy-analysis-card,
.policy-news-card,
.summary-box {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fbfdff;
}

.policy-summary-card {
  background: #f7fbff;
}

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

.policy-analysis-card {
  background: #ffffff;
}

.policy-analysis-card span,
.risk-card span,
.api-option-card span {
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.policy-analysis-card ul,
.requirement-section ul,
.weather-card ul {
  margin: 8px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.55;
}

.source-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.source-chip-grid a {
  padding: 7px 9px;
  border: 1px solid #cfe0f2;
  border-radius: 8px;
  background: #f7fbff;
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.policy-brief-grid {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.policy-structured-grid {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.policy-structured-card {
  padding: 13px;
  border: 1px solid #dbe7f3;
  border-radius: 10px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
}

.policy-structured-card span {
  display: inline-flex;
  margin-bottom: 7px;
  padding: 4px 7px;
  border-radius: 999px;
  background: #ecfeff;
  color: #0e7490;
  font-size: 11px;
  font-weight: 900;
}

.policy-structured-card p {
  margin: 0;
  color: #334155;
  font-size: 13px;
  line-height: 1.55;
}

.policy-brief-card {
  min-height: 148px;
  padding: 14px;
  border: 1px solid #dbe5ef;
  border-top: 3px solid #6f5cc2;
  border-radius: 10px;
  background: #ffffff;
}

.policy-brief-card.trust {
  border-top-color: #0f766e;
  background: linear-gradient(180deg, #f1fbf8, #fff 60%);
}

.policy-brief-card span {
  display: inline-flex;
  margin-bottom: 8px;
  padding: 4px 7px;
  border-radius: 6px;
  background: #f2f6fb;
  color: #536275;
  font-size: 11px;
  font-weight: 900;
}

.policy-brief-card strong {
  display: block;
  color: #111827;
  font-size: 16px;
  line-height: 1.35;
}

.policy-brief-card p,
.policy-brief-card small {
  display: block;
  margin: 8px 0 0;
  color: #5d6b7c;
  line-height: 1.5;
}

.watch-keyword-panel {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fbfdff;
}

.watch-keyword-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.watch-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.watch-chip-grid button {
  border: 1px solid #cfe0f2;
  border-radius: 999px;
  background: #f7fbff;
  color: var(--accent-strong);
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 800;
}

.source-breakdown,
.indicator-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.source-breakdown span,
.indicator-strip span {
  padding: 6px 9px;
  border-radius: 999px;
  background: #edf2f7;
  color: #4d5a68;
  font-size: 12px;
  font-weight: 750;
}

.indicator-strip span {
  background: #eef8f1;
  color: #24533a;
}

.indicator-strip strong {
  margin-right: 6px;
}

.trend-insight-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.trend-insight-grid article {
  min-height: 120px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.trend-insight-grid span {
  display: block;
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 850;
}

.trend-insight-grid strong {
  display: block;
  margin-top: 7px;
  color: var(--ink);
  line-height: 1.35;
}

.trend-insight-grid p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.policy-summary-card p,
.policy-news-card p,
.summary-box p {
  margin: 7px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.query-card {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid #d9e4ef;
  border-radius: 16px;
  background: #f8fbff;
}

.policy-filter-form {
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  align-items: end;
}

.policy-news-card span {
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 800;
}

.policy-news-card h3 {
  margin: 5px 0;
  font-size: 15px;
}

.action-line {
  padding: 8px 10px;
  border-left: 3px solid #2f855a;
  background: #f0faf3;
  color: #24533a !important;
}

.policy-news-card a,
.summary-box a {
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.credibility-row {
  display: grid;
  gap: 3px;
  margin: 10px 0;
  padding: 10px;
  border-radius: 12px;
  background: #eef8f1;
  color: #225d3d;
}

.credibility-row strong {
  font-size: 13px;
}

.credibility-row small {
  line-height: 1.45;
}

.inline-search {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto auto;
  gap: 10px;
  align-items: end;
  margin: 0 0 14px;
}

.summary-box {
  margin-top: 12px;
  background: #f8fbff;
}

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

.ops-card {
  padding: 14px;
}

.ops-card h3 {
  font-size: 15px;
}

.ops-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.ops-meta span {
  padding: 4px 8px;
  border-radius: 999px;
  background: #edf2f7;
  color: #4d5a68;
  font-size: 12px;
}

.tracking-section {
  margin-bottom: 18px;
}

.tracking-title-card {
  display: grid;
  gap: 6px;
  background: linear-gradient(135deg, #ffffff 0%, #f7fbff 100%);
}

.tracking-title-card h2 {
  margin: 0;
  font-size: 28px;
}

.tracking-title-card span {
  color: var(--muted);
  line-height: 1.55;
}

.tracking-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(360px, 0.75fr);
  gap: 18px;
  margin-bottom: 18px;
}

.route-map {
  min-height: 360px;
  padding: 0;
  overflow: hidden;
}

.map-water {
  position: relative;
  width: 100%;
  min-height: 360px;
  background: #d9e7f3;
}

.vessel-real-map {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  border: 0;
  filter: saturate(0.95) contrast(1.02);
}

.vessel-leaflet-map {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  background: #d9e7f3;
}

.vessel-leaflet-map .leaflet-control-attribution {
  font-size: 10px;
}

.ship-map-icon {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #b12d2d;
  color: #fff;
  box-shadow: 0 8px 18px rgba(31, 41, 55, 0.25);
}

.ship-map-icon::after {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: #fff;
  content: "";
  transform: rotate(45deg);
}

.ship-map-tooltip {
  border: 0;
  border-radius: 8px;
  background: rgba(18, 60, 115, 0.94);
  color: #fff;
  font-weight: 850;
  box-shadow: 0 10px 24px rgba(18, 60, 115, 0.24);
}

.ship-map-tooltip::before {
  border-top-color: rgba(18, 60, 115, 0.94);
}

.map-placeholder {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-content: center;
  gap: 8px;
  text-align: center;
  color: #29405c;
  background:
    linear-gradient(rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0.45)),
    repeating-linear-gradient(0deg, transparent 0 31px, rgba(15, 95, 201, 0.12) 32px 33px),
    repeating-linear-gradient(90deg, transparent 0 45px, rgba(15, 95, 201, 0.12) 46px 47px),
    linear-gradient(135deg, #dff4ff 0%, #cfefff 45%, #b8e0f5 100%);
}

.map-placeholder strong {
  font-size: 22px;
}

.map-placeholder span {
  color: var(--muted);
  font-size: 14px;
}

.map-open-link {
  position: absolute;
  z-index: 6;
  right: 14px;
  bottom: 14px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 850;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(28, 42, 60, 0.12);
}

.coordinate-map {
  position: absolute;
  inset: 18px;
  z-index: 1;
  border: 1px solid rgba(15, 95, 201, 0.25);
  border-radius: 18px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.42)),
    repeating-linear-gradient(0deg, transparent 0 23px, rgba(15, 95, 201, 0.12) 24px 25px),
    repeating-linear-gradient(90deg, transparent 0 35px, rgba(15, 95, 201, 0.12) 36px 37px);
}

.coordinate-map::before {
  position: absolute;
  inset: 14px;
  border-radius: 48%;
  border: 1px dashed rgba(15, 95, 201, 0.28);
  content: "";
}

.coord-label {
  position: absolute;
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: #29405c;
  font-size: 11px;
  font-weight: 800;
}

.coord-label.north {
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
}

.coord-label.south {
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
}

.coord-label.west {
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
}

.coord-label.east {
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
}

.route-line {
  position: absolute;
  z-index: 2;
  left: 18%;
  right: 18%;
  top: 52%;
  height: 4px;
  border-radius: 999px;
  background: #1f7ae0;
  transform: rotate(-9deg);
  transform-origin: center;
}

.route-line::before,
.route-line::after {
  position: absolute;
  top: 50%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #0f5fc9;
  content: "";
  transform: translateY(-50%);
}

.route-line::before {
  left: -4px;
}

.route-line::after {
  right: -4px;
}

.vessel-marker {
  position: absolute;
  z-index: 4;
  left: 48%;
  top: 44%;
  padding: 10px 14px;
  border-radius: 999px;
  background: #123c73;
  color: #fff;
  font-size: 12px;
  font-weight: 850;
  box-shadow: 0 12px 24px rgba(18, 60, 115, 0.25);
}

.vessel-marker.live-position {
  background: #a33a3a;
  transform: translate(-50%, -50%);
}

.vessel-marker.live-position::before {
  position: absolute;
  left: 50%;
  top: 100%;
  width: 10px;
  height: 10px;
  background: inherit;
  content: "";
  transform: translate(-50%, -4px) rotate(45deg);
}

.map-chip {
  position: absolute;
  z-index: 3;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: #29405c;
  font-size: 13px;
  box-shadow: 0 10px 26px rgba(41, 64, 92, 0.1);
}

.map-chip.origin {
  left: 9%;
  bottom: 19%;
}

.map-chip.destination {
  right: 9%;
  top: 18%;
}

.wave {
  position: absolute;
  z-index: 2;
  width: 150px;
  height: 54px;
  border-top: 3px solid rgba(31, 122, 224, 0.18);
  border-radius: 50%;
}

.wave-one {
  left: 20%;
  top: 22%;
}

.wave-two {
  right: 16%;
  bottom: 24%;
}

.wave-three {
  left: 42%;
  bottom: 16%;
}

.map-caption {
  min-height: 48px;
  margin: 0;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  background: #fbfdff;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

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

.api-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

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

.manual-verify-panel {
  display: grid;
  gap: 12px;
  margin-top: 16px;
  padding: 16px;
  border: 1px solid #dbe5ef;
  border-left: 4px solid #0f766e;
  border-radius: 10px;
  background: linear-gradient(180deg, #f8fbff, #fff 64%);
}

.manual-verify-panel h3 {
  margin: 2px 0 4px;
  color: #102033;
  font-size: 18px;
}

.manual-verify-panel p {
  margin: 0;
  color: #5d6b7c;
  line-height: 1.55;
}

.manual-summary-card {
  padding: 14px;
  border: 1px solid #dbe5ef;
  border-radius: 10px;
  background: #ffffff;
}

.manual-summary-card > strong {
  display: block;
  color: #102033;
  font-size: 16px;
}

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

.manual-field-grid div {
  padding: 10px;
  border: 1px solid #e0e8f0;
  border-radius: 8px;
  background: #f8fafc;
}

.manual-field-grid span {
  display: block;
  margin-bottom: 5px;
  color: #64748b;
  font-size: 11px;
  font-weight: 900;
}

.manual-field-grid b {
  color: #111827;
  line-height: 1.35;
}

.manual-summary-card li {
  color: #566579;
  line-height: 1.55;
}

.source-evidence-drawer {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(248, 250, 252, 0.82);
  padding: 12px 14px;
}

.source-evidence-drawer summary {
  cursor: pointer;
  color: var(--text);
  font-weight: 900;
}

.source-evidence-drawer[open] summary {
  margin-bottom: 12px;
}

.source-probe-card {
  display: grid;
  gap: 9px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
}

.source-probe-card span {
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.source-probe-card h3 {
  margin: 4px 0 0;
  font-size: 15px;
}

.source-probe-card p,
.source-probe-card small {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.source-probe-card a {
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.script-query-card {
  display: grid;
  gap: 14px;
  margin: 14px 0 16px;
  padding: 16px;
  border: 1px solid #d9e4ef;
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(20, 184, 166, 0.08)),
    #fbfdff;
}

.script-result {
  display: grid;
  gap: 12px;
}

.script-result-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid #dbe5ef;
  border-radius: 10px;
  background: #fff;
}

.script-result-card.success {
  border-color: rgba(15, 118, 110, 0.28);
  background: linear-gradient(180deg, #f5fffc, #fff);
}

.script-result-card.warning {
  border-color: rgba(217, 119, 6, 0.32);
  background: linear-gradient(180deg, #fffaf0, #fff);
}

.script-result-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.script-result-head span {
  display: block;
  margin-bottom: 4px;
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.script-result-head strong {
  color: var(--ink);
  font-size: 16px;
}

.script-result-head b {
  padding: 5px 9px;
  border-radius: 999px;
  background: #eef6ff;
  color: #2563eb;
  font-size: 12px;
  white-space: nowrap;
}

.script-result-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.script-result-card .script-fallback-note {
  padding: 9px 10px;
  border: 1px solid #f5d08a;
  border-radius: 8px;
  background: #fff8e8;
  color: #7a4d12;
  font-size: 13px;
}

.script-raw-drawer {
  border-top: 1px solid #e7eef6;
  padding-top: 10px;
}

.script-raw-drawer summary {
  cursor: pointer;
  color: var(--accent-strong);
  font-weight: 850;
}

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

.history-card {
  display: grid;
  gap: 7px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
}

.history-card span {
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 850;
}

.history-card p,
.history-card small {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.manual-needed,
.source-ok {
  width: fit-content;
  padding: 5px 8px;
  border-radius: 999px;
  background: #fff7ed;
  color: #9a4d00;
  font-size: 12px;
}

.source-ok {
  background: #e9f8ef;
  color: #266341;
}

.alert-panel {
  margin-bottom: 18px;
}

.alert-watch-form {
  grid-template-columns: repeat(5, minmax(0, 1fr)) auto;
  align-items: end;
}

.alert-result,
.alert-list {
  display: grid;
  gap: 10px;
}

.alert-list {
  margin-top: 10px;
}

.alert-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fbfdff;
}

.alert-card span {
  display: block;
  margin-bottom: 4px;
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 800;
}

.alert-card strong {
  display: block;
}

.alert-card p,
.alert-card small {
  display: block;
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.alert-card.success {
  border-color: #b8dec7;
  background: #eef8f1;
}

.alert-card.muted {
  background: #f4f7fa;
}

.info-tile,
.customs-link-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fbfdff;
}

.info-tile span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.info-tile strong {
  display: block;
  color: var(--ink);
  line-height: 1.35;
}

.info-tile.warning {
  grid-column: 1 / -1;
  background: var(--yellow-soft);
  color: #6d5210;
}

.customs-query {
  margin-bottom: 16px;
}

.customs-advice {
  margin-bottom: 16px;
  padding: 16px;
  border: 1px solid #f0d77a;
  border-radius: 16px;
  background: var(--yellow-soft);
  color: #6d5210;
}

.customs-advice:empty {
  display: none;
}

.customs-advice p {
  margin: 8px 0 0;
}

.customs-advice ul {
  margin: 10px 0 0;
  padding-left: 20px;
  line-height: 1.55;
}

.port-query-helper {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: 18px;
  align-items: center;
  margin-bottom: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #f7fbfd;
}

.port-query-helper h3 {
  margin: 4px 0 8px;
}

.port-query-helper p,
.port-query-actions span {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.port-query-actions {
  display: grid;
  gap: 10px;
  justify-items: start;
}

.section-note {
  max-width: 900px;
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.6;
}

.requirement-form {
  grid-template-columns: minmax(0, 1.3fr) minmax(220px, 0.7fr) auto;
  align-items: end;
}

.requirement-result {
  margin-bottom: 14px;
}

.requirement-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid #d9e4ef;
  border-radius: 16px;
  background: #fbfdff;
}

.requirement-card > div {
  display: inline-grid;
  gap: 4px;
  margin-right: 14px;
}

.requirement-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.requirement-card h3 {
  margin: 0;
}

.requirement-card p,
.requirement-card li,
.requirement-card small {
  color: var(--muted);
  line-height: 1.55;
}

.trend-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 14px;
}

.hotspot-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin: 14px 0;
}

.hotspot-strip span {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid #dde7f1;
  border-radius: 10px;
  background: #ffffff;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.hotspot-strip strong {
  color: #172033;
}

.trend-card,
.risk-card {
  display: grid;
  gap: 9px;
  align-content: start;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fbfdff;
}

.trend-card span,
.risk-card span {
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.trend-card h3 {
  margin: 0;
  font-size: 15px;
  line-height: 1.35;
}

.trend-card p,
.risk-card p,
.risk-card li {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.trend-card a,
.risk-card a,
.mini-link-list a {
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.port-risk-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 14px;
}

#port-risk {
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(244, 63, 94, 0.045), rgba(37, 99, 235, 0.04)),
    #ffffff;
}

body[data-active-module="port-risk"] #port-risk .field-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

body[data-active-module="port-risk"] .port-risk-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
}

.port-risk-grid .risk-card {
  position: relative;
  min-height: 150px;
  overflow: hidden;
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.96)),
    #ffffff;
}

.port-risk-grid .risk-card::before {
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, #be3b5b, #f59e0b, #2563eb);
  content: "";
}

.port-risk-grid .risk-card strong {
  color: #111827;
  font-size: 18px;
  line-height: 1.35;
}

.port-risk-grid .dg-card {
  border-top: 0;
  border-color: #fed7aa;
  background: linear-gradient(180deg, #fff7ed, #ffffff 72%);
}

.port-risk-grid .weather-card {
  background: linear-gradient(180deg, #eff6ff, #ffffff 74%);
}

.port-risk-grid .articles-card {
  grid-column: span 2;
}

.port-risk-grid .articles-card a {
  display: block;
  margin-top: 8px;
}

.route-risk-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.route-risk-card h3 {
  margin: 0;
  color: #152238;
  font-size: 18px;
}

.route-risk-card ul {
  margin: 0;
  padding-left: 18px;
}

.learning-panel {
  border-top: 4px solid #0f766e;
}

.learning-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(260px, 0.8fr);
  gap: 16px;
  align-items: stretch;
  padding: 18px;
  border: 1px solid #d8e5ef;
  border-radius: 16px;
  background: linear-gradient(135deg, #f8fbff 0%, #eefdf8 100%);
}

.learning-hero h2 {
  margin: 4px 0 8px;
}

.learning-hero p {
  color: var(--muted);
  line-height: 1.6;
}

.learning-score {
  display: grid;
  gap: 8px;
  align-content: center;
  padding: 16px;
  border: 1px solid #cce1dc;
  border-radius: 14px;
  background: #ffffff;
}

.learning-score span,
.term-grid span,
.process-flow .step-node {
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.learning-score strong {
  color: #122033;
  font-size: 20px;
}

.learning-score small {
  color: var(--muted);
  line-height: 1.45;
}

.learning-controls {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  padding: 12px;
  border: 1px solid #dbe7ef;
  border-radius: 14px;
  background: #fbfdff;
}

.learning-controls div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.learning-controls span {
  min-width: 42px;
  color: #64748b;
  font-size: 12px;
  font-weight: 900;
}

.learning-filter,
.learning-role,
.learning-mode {
  min-height: 32px;
  border: 1px solid #dbe7ef;
  border-radius: 999px;
  background: #ffffff;
  color: #334155;
  cursor: pointer;
  font-weight: 900;
}

.learning-filter.active,
.learning-role.active,
.learning-mode.active {
  border-color: #2563eb;
  background: linear-gradient(135deg, #2563eb 0%, #0f766e 100%);
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.18);
}

.learning-map {
  position: relative;
  margin-top: 16px;
}

.learning-lane {
  position: absolute;
  inset: 44px 24px auto;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, #60a5fa, #22c55e, #f59e0b, #ef4444);
  opacity: 0.32;
}

.lane-dot {
  position: absolute;
  top: -5px;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: #ffffff;
  border: 3px solid #2563eb;
}

.lane-dot:nth-child(1) { left: 8%; }
.lane-dot:nth-child(2) { left: 28%; border-color: #0f766e; }
.lane-dot:nth-child(3) { left: 48%; border-color: #b7791f; }
.lane-dot:nth-child(4) { left: 68%; border-color: #be3b5b; }
.lane-dot:nth-child(5) { left: 88%; border-color: #64748b; }

.process-flow {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.learning-step-card,
.term-grid article {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
}

.learning-step-card {
  position: relative;
  grid-template-rows: 78px auto auto 1fr auto;
  min-height: 236px;
  width: 100%;
  appearance: none;
  font: inherit;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.learning-step-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, #2563eb, #14b8a6, #f59e0b);
}

.learning-step-card:nth-child(3n + 2)::before {
  background: linear-gradient(90deg, #0f766e, #22c55e, #84cc16);
}

.learning-step-card:nth-child(3n)::before {
  background: linear-gradient(90deg, #b7791f, #f59e0b, #ef4444);
}

.learning-step-card:hover,
.learning-step-card:focus-visible {
  transform: translateY(-3px);
  border-color: #9cc8ff;
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.12);
}

.learning-step-card small {
  align-self: end;
  color: #2563eb;
  font-weight: 900;
}

.learning-step-card .step-node {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  justify-content: center;
  padding: 5px 9px;
  border-radius: 999px;
  background: #eef6ff;
  color: #2563eb;
  box-shadow: 0 6px 14px rgba(37, 99, 235, 0.08);
}

.learning-empty {
  grid-column: 1 / -1;
  padding: 18px;
  border: 1px dashed #cbd5e1;
  border-radius: 14px;
  background: #f8fafc;
}

.step-visual {
  position: relative;
  height: 76px;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(180deg, #e0f2fe 0%, #f8fafc 56%, #dbeafe 57%, #e2e8f0 100%);
}

.learning-step-card strong,
.learning-step-card p,
.learning-step-card small,
.learning-step-card .step-node {
  position: relative;
  z-index: 2;
}

.visual-line {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 18px;
  height: 3px;
  border-radius: 999px;
  background: #94a3b8;
}

.visual-sun {
  position: absolute;
  right: 12px;
  top: 10px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fbbf24;
  box-shadow: 0 0 0 8px rgba(251, 191, 36, 0.18);
  animation: pulseSun 2.6s ease-in-out infinite;
}

.visual-box {
  position: absolute;
  bottom: 21px;
  width: 22px;
  height: 18px;
  border-radius: 4px;
  background: #38bdf8;
  border: 2px solid #0369a1;
}

.visual-box.one { left: 16px; }
.visual-box.two { left: 42px; background: #34d399; border-color: #047857; }

.visual-truck {
  position: absolute;
  left: 12px;
  bottom: 21px;
  width: 56px;
  height: 24px;
  border-radius: 5px 9px 5px 5px;
  background: #2563eb;
  box-shadow: 8px 0 0 #60a5fa inset;
  animation: driveTruck 3.2s ease-in-out infinite;
}

.visual-truck::before,
.visual-truck::after {
  content: "";
  position: absolute;
  bottom: -7px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #0f172a;
  border: 2px solid #cbd5e1;
}

.visual-truck::before { left: 8px; }
.visual-truck::after { right: 8px; }

.visual-ship {
  position: absolute;
  left: 18px;
  bottom: 20px;
  width: 74px;
  height: 22px;
  border-radius: 6px 6px 16px 18px;
  background: #0f766e;
  animation: floatShip 2.8s ease-in-out infinite;
}

.visual-ship::before {
  content: "";
  position: absolute;
  left: 16px;
  top: -16px;
  width: 34px;
  height: 16px;
  border-radius: 4px 4px 0 0;
  background: #f8fafc;
  border: 2px solid #0f766e;
}

.visual-crane {
  position: absolute;
  right: 18px;
  bottom: 21px;
  width: 34px;
  height: 48px;
  border-left: 6px solid #b7791f;
  border-top: 6px solid #b7791f;
}

.visual-crane::after {
  content: "";
  position: absolute;
  top: 5px;
  right: -9px;
  width: 3px;
  height: 30px;
  background: #b7791f;
  animation: craneHook 2.4s ease-in-out infinite;
}

.visual-doc {
  position: absolute;
  left: 18px;
  bottom: 18px;
  width: 42px;
  height: 52px;
  border-radius: 5px;
  background: #ffffff;
  border: 2px solid #94a3b8;
  box-shadow: 12px 0 0 rgba(255,255,255,0.65);
}

.visual-doc::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 14px;
  width: 24px;
  height: 3px;
  background: #60a5fa;
  box-shadow: 0 9px 0 #94a3b8, 0 18px 0 #94a3b8;
}

.visual-stamp {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 34px;
  height: 22px;
  border-radius: 999px;
  border: 4px solid #ef4444;
  transform: rotate(-12deg);
  animation: stampDrop 2.8s ease-in-out infinite;
}

.visual-contract .visual-doc,
.visual-customs .visual-doc,
.visual-stamp .visual-doc,
.visual-documents .visual-doc { animation: paperFloat 2.6s ease-in-out infinite; }

.visual-boxes .visual-truck,
.visual-contract .visual-ship,
.visual-carton .visual-ship,
.visual-documents .visual-truck,
.visual-stamp .visual-truck {
  display: none;
}

.visual-booking .visual-box,
.visual-truck .visual-box,
.visual-delivery .visual-box {
  animation: boxBounce 2.4s ease-in-out infinite;
}

.visual-ship .visual-truck,
.visual-ocean .visual-truck,
.visual-crane .visual-truck,
.visual-customs .visual-truck,
.visual-stamp .visual-truck {
  display: none;
}

.visual-carton .visual-truck,
.visual-booking .visual-ship,
.visual-customs .visual-ship,
.visual-documents .visual-ship,
.visual-stamp .visual-ship,
.visual-delivery .visual-ship {
  display: none;
}

.visual-boxes .visual-crane,
.visual-contract .visual-crane,
.visual-carton .visual-crane,
.visual-booking .visual-crane,
.visual-ocean .visual-crane,
.visual-documents .visual-crane,
.visual-stamp .visual-crane,
.visual-delivery .visual-crane {
  display: none;
}

.visual-boxes .visual-doc,
.visual-carton .visual-doc,
.visual-booking .visual-doc,
.visual-crane .visual-doc,
.visual-ocean .visual-doc,
.visual-delivery .visual-doc {
  display: none;
}

.visual-boxes .visual-stamp,
.visual-contract .visual-stamp,
.visual-carton .visual-stamp,
.visual-booking .visual-stamp,
.visual-crane .visual-stamp,
.visual-ocean .visual-stamp,
.visual-documents .visual-stamp,
.visual-delivery .visual-stamp {
  display: none;
}

.visual-contract .visual-box,
.visual-documents .visual-box,
.visual-stamp .visual-box {
  display: none;
}

.visual-crane .visual-ship,
.visual-ocean .visual-ship {
  display: block;
}

.visual-delivery .visual-truck {
  display: block;
}

@keyframes driveTruck {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(26px); }
}

@keyframes floatShip {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@keyframes craneHook {
  0%, 100% { height: 22px; }
  50% { height: 34px; }
}

@keyframes stampDrop {
  0%, 100% { transform: translateY(0) rotate(-12deg); opacity: 0.72; }
  45% { transform: translateY(-12px) rotate(-12deg); opacity: 1; }
}

@keyframes paperFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@keyframes boxBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

@keyframes pulseSun {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.08); opacity: 1; }
}

.process-flow strong,
.term-grid strong {
  color: #142238;
  font-size: 17px;
}

.learning-step-card p,
.term-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.term-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.learning-detail {
  display: grid;
  gap: 16px;
}

.learning-detail-hero {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid #dbe7ef;
  border-radius: 14px;
  background: #f8fbff;
}

.learning-detail-hero .step-visual {
  height: 104px;
}

.learning-detail-hero span,
.learning-detail-card span {
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.learning-detail-hero h3 {
  margin: 4px 0 6px;
  font-size: 22px;
}

.learning-detail-hero p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

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

.learning-detail-card {
  min-height: 160px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
}

.learning-detail-card ul {
  margin: 8px 0 0;
  padding-left: 18px;
}

.learning-detail-card li {
  color: var(--muted);
  line-height: 1.55;
  margin-top: 5px;
}

.learning-input-box {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  background: #eff6ff;
}

.learning-input-box div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.learning-input-box span {
  padding: 7px 10px;
  border-radius: 999px;
  background: #ffffff;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 900;
}

.suggestion-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -4px 0 12px;
}

.suggestion-strip button {
  min-height: 32px;
  border: 1px solid #d6e4ff;
  border-radius: 999px;
  background: #f7fbff;
  color: var(--accent-strong);
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 800;
}

.risk-card strong {
  color: var(--ink);
  font-size: 22px;
  line-height: 1.25;
}

.risk-card ul {
  margin: 0;
  padding-left: 18px;
}

.level-medium {
  background: var(--yellow-soft);
}

.level-watch {
  background: #eaf5ff;
}

.level-low {
  background: #eef8f1;
}

.dg-card {
  border-top: 3px solid #be3b5b;
  background: linear-gradient(180deg, #fff5f7, #ffffff 60%);
}

.dg-card strong {
  font-size: 18px;
}

.mini-link-list,
.articles-card {
  display: grid;
  gap: 8px;
}

.customs-link-card h3 {
  margin: 0;
  font-size: 15px;
}

.customs-link-card p {
  color: var(--muted);
  line-height: 1.5;
}

.customs-link-card a {
  color: var(--accent-strong);
  font-weight: 800;
  text-decoration: none;
}

.draft-box {
  min-height: 280px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  line-height: 1.55;
}

.issue-form {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 150px 130px 150px auto;
  gap: 10px;
  margin-bottom: 14px;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 10px 9px;
  text-align: left;
  vertical-align: top;
}

th {
  color: #445261;
  font-size: 12px;
  text-transform: uppercase;
}

td {
  color: #273544;
  font-size: 14px;
}

.compact table {
  min-width: 720px;
}

.status-button {
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 750;
}

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

.integration-grid > div {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfe;
}

.api-heading {
  margin-top: 22px;
}

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

.api-option-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfe;
}

.api-option-card h3 {
  margin: 4px 0 0;
  font-size: 15px;
}

.api-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.api-tags strong,
.api-tags em {
  padding: 5px 8px;
  border-radius: 999px;
  background: #edf2f7;
  color: #4d5a68;
  font-size: 12px;
  font-style: normal;
}

.api-tags em {
  background: #e9f8ef;
  color: #266341;
}

.api-option-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.api-option-card a {
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

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

.requirement-card > .requirement-summary-grid,
.requirement-card > .requirement-section-grid {
  display: grid;
  margin-right: 0;
}

.requirement-summary-grid > div,
.requirement-section {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfe;
}

.requirement-summary-grid span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.requirement-summary-grid strong {
  display: block;
  margin-top: 5px;
  color: var(--ink);
}

.requirement-section h3 {
  margin: 0;
  font-size: 15px;
}

.requirement-conclusion {
  padding: 13px;
  border: 1px solid #b8d8f5;
  border-radius: 8px;
  background: #f5fbff;
}

.requirement-conclusion p {
  margin: 7px 0 0;
}

.requirement-api-strip {
  display: grid;
  gap: 8px;
  margin: 10px 0;
}

.requirement-api-strip div {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border: 1px solid #d8e7f4;
  border-left: 4px solid #2563eb;
  border-radius: 10px;
  background: #f8fbff;
}

.requirement-api-strip span {
  color: #2563eb;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.requirement-api-strip strong {
  color: #243044;
  font-size: 14px;
  line-height: 1.45;
  text-align: right;
}

.requirement-card > small {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.5;
}

/* Premium clarity pass: calmer enterprise UI, clearer hierarchy, tighter cards. */
body {
  background:
    linear-gradient(180deg, rgba(37, 99, 235, 0.05), rgba(255, 255, 255, 0) 260px),
    #f5f7fa;
}

.app-shell {
  grid-template-columns: 258px minmax(0, 1fr);
  gap: 18px;
  padding: 18px;
}

.sidebar,
.topbar,
.panel,
.module-board,
.kpi-card,
.module-card,
.check-card,
.ops-card,
.candidate-card,
.source-card,
.policy-summary-card,
.policy-analysis-card,
.policy-news-card,
.summary-box,
.query-card,
.source-probe-card,
.risk-card,
.alert-card,
.requirement-card,
.requirement-summary-grid > div,
.requirement-section,
.requirement-conclusion,
.decision-box,
.risk-box,
.empty-state,
.release-panel,
.access-panel,
.access-card {
  border-radius: 8px;
}

.sidebar,
.topbar,
.panel,
.module-board {
  border-color: #d8e0ea;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.055);
}

.sidebar {
  padding: 18px;
  background: #ffffff;
}

.brand {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #edf1f5;
}

.brand-mark {
  border-radius: 8px;
  background:
    linear-gradient(135deg, #eaf2ff, #eefbf6);
  color: #174b91;
}

nav {
  gap: 4px;
}

nav a {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  border-radius: 8px;
  color: #3d4b5c;
  font-weight: 700;
}

nav a::before {
  display: grid;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 7px;
  background: #eef5ff;
  color: #2563eb;
  font-size: 12px;
  font-weight: 900;
  content: "•";
}

nav a[href="#dashboard"]::before { content: "总"; background: #eef5ff; color: #2563eb; }
nav a[href="#decision"]::before { content: "决"; background: #eef5ff; color: #2563eb; }
nav a[href="#hs"]::before { content: "HS"; background: #f0f9ff; color: #0369a1; }
nav a[href="#policy"]::before { content: "策"; background: #fef7ed; color: #b45309; }
nav a[href="#trends"]::before { content: "趋"; background: #f5f3ff; color: #6d28d9; }
nav a[href="#shipment"]::before { content: "船"; background: #ecfdf5; color: #047857; }
nav a[href="#customs"]::before { content: "箱"; background: #eff6ff; color: #1d4ed8; }
nav a[href="#air"]::before { content: "空"; background: #e0f2fe; color: #0369a1; }
nav a[href="#port-risk"]::before { content: "港"; background: #fff1f2; color: #be123c; }
nav a[href="#battery"]::before { content: "DG"; background: #fff7ed; color: #c2410c; }
nav a[href="#exception"]::before { content: "异"; background: #f8fafc; color: #475569; }
nav a[href="#matrix"]::before { content: "国"; background: #eef2ff; color: #4338ca; }

nav a.active,
nav a:hover {
  background: linear-gradient(90deg, #eef6ff, #f4fbf8);
  color: #1457b8;
}

nav a.active::before,
nav a:hover::before {
  background: #2563eb;
  color: #fff;
}

.access-panel {
  background: #f8fafc;
}

.topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 18px;
  padding: 22px;
  border-left: 4px solid #2563eb;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.07), rgba(15, 118, 110, 0.045) 42%, rgba(255, 255, 255, 0) 72%),
    #ffffff;
}

h1 {
  font-size: 30px;
  line-height: 1.2;
}

.hero-subtitle {
  display: inline-flex;
  width: fit-content;
  margin-top: 10px;
  padding: 5px 9px;
  border-radius: 6px;
  background: #edf8f3;
  color: #12613d;
  font-size: 13px;
}

.hero-copy {
  max-width: 860px;
  margin-top: 12px;
  color: #596879;
}

.release-panel {
  width: auto;
  background: #f8fafc;
}

.language-pill,
.quiet-tag,
.pill {
  border-radius: 6px;
  background: #eef5ff;
}

.kpi-grid {
  gap: 12px;
}

.kpi-card {
  padding: 14px;
  border-left: 0;
  border-top: 3px solid #2563eb;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
}

.kpi-card.high {
  border-top-color: var(--amber);
  background: linear-gradient(180deg, #fffaf0, #ffffff 58%);
}

.kpi-card.danger {
  border-top-color: var(--rose);
  background: linear-gradient(180deg, #fff4f6, #ffffff 58%);
}

.kpi-card.warn {
  border-top-color: var(--teal);
  background: linear-gradient(180deg, #effbf8, #ffffff 58%);
}

.kpi-card:not(.high):not(.danger):not(.warn) {
  background: linear-gradient(180deg, #f2f7ff, #ffffff 58%);
}

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

.starter-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  min-height: 118px;
  padding: 15px;
  border: 1px solid #dbe5ef;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.045);
}

.starter-card span {
  display: grid;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  font-weight: 900;
}

.starter-card strong {
  display: block;
  color: #111827;
}

.starter-card p {
  margin: 6px 0 0;
  color: #5d6b7a;
  font-size: 13px;
  line-height: 1.5;
}

.starter-card.tone-blue {
  background: linear-gradient(180deg, #f4f8ff, #fff);
}

.starter-card.tone-blue span {
  background: #2563eb;
}

.starter-card.tone-green {
  background: linear-gradient(180deg, #f1fbf6, #fff);
}

.starter-card.tone-green span {
  background: #047857;
}

.dashboard-source-board {
  display: grid;
  grid-template-columns: minmax(220px, 0.45fr) minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid #dbe5ef;
  border-radius: 12px;
  background: linear-gradient(90deg, #f8fbff, #ffffff);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.045);
}

.dashboard-source-board h2 {
  margin: 4px 0 0;
  font-size: 21px;
}

.compact-source-summary {
  margin: 0;
}

.starter-card.tone-amber {
  background: linear-gradient(180deg, #fff8eb, #fff);
}

.starter-card.tone-amber span {
  background: #b7791f;
}

.starter-card.tone-rose {
  background: linear-gradient(180deg, #fff4f6, #fff);
}

.starter-card.tone-rose span {
  background: #be3b5b;
}

.audience-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0 18px;
}

.audience-card {
  display: grid;
  gap: 8px;
  min-height: 132px;
  padding: 15px;
  border: 1px solid #dbe5ef;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.045);
}

.audience-card span {
  width: fit-content;
  padding: 5px 9px;
  border-radius: 999px;
  background: #eef5ff;
  color: #2563eb;
  font-size: 12px;
  font-weight: 850;
}

.audience-card strong {
  color: #111827;
  font-size: 17px;
}

.audience-card p {
  margin: 0;
  color: #5d6b7a;
  font-size: 13px;
  line-height: 1.5;
}

.audience-card.tone-green span {
  background: #eaf8f1;
  color: #047857;
}

.audience-card.tone-amber span {
  background: #fff3d6;
  color: #9a5b00;
}

.audience-card.tone-rose span {
  background: #fff0f3;
  color: #be3b5b;
}

.kpi-card strong {
  margin-top: 6px;
  font-size: 26px;
}

.panel {
  padding: 18px;
  background: #ffffff;
}

#hs.panel,
#hs .panel {
  border-top: 4px solid #2563eb;
}

#policy .panel {
  border-top: 4px solid #b7791f;
}

#trends {
  border-top: 4px solid #6f5cc2;
}

#shipment .panel {
  border-top: 4px solid #047857;
}

#port-risk {
  border-top: 4px solid #be3b5b;
}

#battery .panel {
  border-top: 4px solid #c2410c;
}

#exception {
  border-top: 4px solid #64748b;
}

#matrix {
  border-top: 4px solid #4338ca;
}

.panel-heading {
  padding-bottom: 12px;
  border-bottom: 1px solid #edf1f5;
}

.panel-heading h2 {
  font-size: 21px;
  letter-spacing: 0;
}

.eyebrow {
  color: #2563eb;
  font-size: 11px;
}

.section-note {
  padding: 11px 12px;
  border: 1px solid #e3eaf2;
  border-radius: 8px;
  background: #f8fafc;
  color: #58687a;
}

.compact-note {
  margin-bottom: 12px;
  font-size: 13px;
}

input,
select,
textarea,
.primary-button,
.secondary-button,
.ghost-button,
.status-button {
  border-radius: 8px;
}

input,
select,
textarea {
  min-height: 40px;
  border-color: #cfd8e3;
}

.primary-button {
  background: #2563eb;
}

.primary-button:hover {
  background: #1d4ed8;
}

.secondary-button,
.ghost-button {
  background: #ffffff;
}

.query-card {
  background: #f8fafc;
}

.result-state,
.candidate-card,
.policy-summary-card,
.policy-analysis-card,
.policy-news-card,
.summary-box,
.risk-card,
.requirement-section,
.requirement-summary-grid > div,
.source-probe-card {
  background: #ffffff;
}

.conclusion-card,
.requirement-conclusion {
  border-left: 4px solid #2563eb;
  background: #f7fbff;
}

.policy-summary-card strong,
.requirement-conclusion p:first-of-type,
.risk-card strong,
.summary-box > p:first-of-type {
  color: #111827;
}

.policy-analysis-card span,
.risk-card span,
.api-option-card span,
.trend-insight-grid span {
  color: #2563eb;
}

.source-list {
  grid-template-columns: 1fr;
  max-height: 720px;
  overflow: auto;
  padding-right: 4px;
}

.source-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.source-summary-grid span {
  display: grid;
  gap: 2px;
  min-height: 58px;
  padding: 9px 10px;
  border: 1px solid #dbe5ef;
  border-radius: 8px;
  background: #f8fafc;
  color: #627084;
  font-size: 12px;
  font-weight: 800;
}

.source-summary-grid strong {
  color: #172033;
  font-size: 18px;
}

.source-search {
  display: grid;
  gap: 7px;
  margin-bottom: 12px;
  color: #405064;
  font-size: 13px;
  font-weight: 800;
}

.source-card {
  padding: 11px 12px;
  border-left: 4px solid #d8e3f0;
  background: #ffffff;
}

.source-card span {
  display: inline-flex;
  margin-bottom: 5px;
  padding: 3px 6px;
  border-radius: 6px;
  background: #f2f6fb;
  color: #536275;
  font-size: 11px;
  font-weight: 900;
}

.source-card:nth-child(6n + 1) {
  border-left-color: #2563eb;
}

.source-card:nth-child(6n + 2) {
  border-left-color: #0f766e;
}

.source-card:nth-child(6n + 3) {
  border-left-color: #b7791f;
}

.source-card:nth-child(6n + 4) {
  border-left-color: #be3b5b;
}

.source-card:nth-child(6n + 5) {
  border-left-color: #6f5cc2;
}

.source-card:nth-child(6n) {
  border-left-color: #64748b;
}

.source-card a,
.source-chip-grid a,
.policy-news-card a,
.summary-box a,
.source-probe-card a {
  color: #1d4ed8;
}

.source-chip-grid a {
  border-color: #d7e3f4;
  background: #f8fbff;
}

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

.trend-insight-grid article {
  min-height: 112px;
  border-color: #dfe7ef;
}

.tracking-title-card {
  background: #ffffff;
  border-left: 4px solid #047857;
}

.tracking-title-card h2 {
  font-size: 24px;
}

.map-caption,
.api-note,
.source-probe-card p,
.source-probe-card small,
.trend-card p,
.risk-card p,
.requirement-card > small {
  color: #596879;
}

th {
  background: #f8fafc;
  color: #425064;
}

.sidebar {
  border-color: rgba(148, 163, 184, 0.22);
  background:
    linear-gradient(180deg, rgba(37, 99, 235, 0.18), rgba(15, 23, 42, 0) 240px),
    #111827;
  color: #e5edf7;
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.22);
}

.brand {
  border-bottom-color: rgba(226, 232, 240, 0.14);
}

.brand strong {
  color: #f8fafc;
}

.brand span {
  color: #9fb2c8;
}

.brand-mark {
  background: linear-gradient(135deg, #60a5fa, #2dd4bf);
  color: #07111f;
}

.nav-groups {
  gap: 10px;
}

.nav-home,
.nav-group {
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.45);
}

.nav-home {
  margin-bottom: 0;
}

.nav-group {
  overflow: hidden;
}

.nav-group summary {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 38px;
  padding: 10px 12px 10px 30px;
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  list-style: none;
  cursor: pointer;
}

.nav-group summary::-webkit-details-marker {
  display: none;
}

.nav-group summary::before {
  position: absolute;
  left: 12px;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #38bdf8;
  content: "";
}

.nav-group[open] summary::after {
  margin-left: auto;
  color: #64748b;
  font-size: 11px;
  content: "收起";
}

.nav-group:not([open]) summary::after {
  margin-left: auto;
  color: #64748b;
  font-size: 11px;
  content: "展开";
}

nav a,
.nav-home {
  color: #dbeafe;
}

nav a {
  min-height: 36px;
  margin: 0 8px 8px;
  padding: 9px 10px;
  color: #dbe4f0;
}

.nav-home {
  margin: 0;
}

nav a::before {
  background: rgba(226, 232, 240, 0.1);
  color: #bfdbfe;
}

nav a.active,
nav a:hover {
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.92), rgba(20, 184, 166, 0.72));
  color: #ffffff;
}

nav a.active::before,
nav a:hover::before {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.access-panel {
  border-color: rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.48);
}

.access-panel h2 {
  color: #f8fafc;
}

.access-panel label,
.access-panel p {
  color: #9fb2c8;
}

.access-panel select {
  border-color: rgba(148, 163, 184, 0.32);
  background: #0f172a;
  color: #e5edf7;
}

.category-divider {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  margin: 18px 0 14px;
  padding: 18px 20px;
  border: 1px solid #d8e2ee;
  border-left: 5px solid #2563eb;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.045);
}

.category-divider > span {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 8px;
  background: #eef5ff;
  color: #174b91;
  font-weight: 900;
}

.category-divider h2 {
  margin: 2px 0 4px;
  color: #111827;
  font-size: 22px;
}

.category-divider p {
  margin: 0;
  color: #5d6b7a;
  line-height: 1.5;
}

.category-decision {
  border-left-color: #2563eb;
  background: linear-gradient(90deg, #f5f9ff, #ffffff 62%);
}

.category-product {
  border-left-color: #0f766e;
  background: linear-gradient(90deg, #f1fbf8, #ffffff 62%);
}

.category-intel {
  border-left-color: #6f5cc2;
  background: linear-gradient(90deg, #f7f4ff, #ffffff 62%);
}

.category-logistics {
  border-left-color: #b7791f;
  background: linear-gradient(90deg, #fff8ed, #ffffff 62%);
}

.category-ops {
  border-left-color: #64748b;
  background: linear-gradient(90deg, #f8fafc, #ffffff 62%);
}

.decision-panel {
  border-top: 4px solid #2563eb;
}

.decision-form {
  margin-top: 14px;
}

.decision-result-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.tariff-check-panel {
  align-self: start;
}

.tariff-check-form {
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  align-items: end;
}

.tariff-check-form .full-span {
  grid-column: 1 / -2;
}

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

.customs-review-slip {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}

.customs-review-slip article {
  padding: 15px;
  border: 1px solid #d7e2ef;
  border-radius: 10px;
  background: #fbfdff;
}

.customs-review-slip article.primary {
  border-color: #b9d0ff;
  background: linear-gradient(135deg, #f3f7ff, #ffffff);
}

.customs-review-slip span {
  display: inline-flex;
  margin-bottom: 8px;
  padding: 4px 7px;
  border-radius: 6px;
  background: #edf3fb;
  color: #475569;
  font-size: 11px;
  font-weight: 900;
}

.customs-review-slip strong {
  display: block;
  color: #111827;
  font-size: 17px;
  line-height: 1.35;
}

.customs-review-slip p {
  margin: 8px 0 0;
  color: #5d6b7c;
  font-size: 13px;
  line-height: 1.55;
}

.tariff-check-grid .decision-card {
  min-height: 0;
}

.tariff-original-text {
  margin: 10px 0;
  padding: 12px;
  border: 1px solid #dbeafe;
  border-radius: 10px;
  background: #f8fbff;
  color: #1e293b;
  font: 800 13px/1.7 var(--font);
  white-space: pre-wrap;
}

.decision-card {
  min-height: 0;
  padding: 15px;
  border: 1px solid #dce5ef;
  border-top: 4px solid #2563eb;
  border-radius: 8px;
  background: #fff;
}

.decision-card > span {
  display: inline-flex;
  margin-bottom: 9px;
  padding: 4px 7px;
  border-radius: 6px;
  background: #f1f5f9;
  color: #475569;
  font-size: 11px;
  font-weight: 900;
}

.decision-card strong {
  display: block;
  color: #111827;
  font-size: 18px;
  line-height: 1.35;
}

.decision-card p,
.decision-card li {
  color: #566579;
  font-size: 13px;
  line-height: 1.55;
}

.decision-card ul {
  margin: 10px 0 0;
  padding-left: 18px;
}

.decision-card.tone-blue {
  border-top-color: #2563eb;
  background: linear-gradient(180deg, #f5f9ff, #fff 52%);
}

.decision-card.tone-green {
  border-top-color: #0f766e;
  background: linear-gradient(180deg, #f1fbf8, #fff 52%);
}

.decision-card.tone-indigo {
  border-top-color: #4f46e5;
  background: linear-gradient(180deg, #f5f3ff, #fff 52%);
}

.decision-card.tone-rose {
  border-top-color: #be3b5b;
  background: linear-gradient(180deg, #fff4f6, #fff 52%);
}

.decision-card.tone-amber {
  border-top-color: #b7791f;
  background: linear-gradient(180deg, #fff8ed, #fff 52%);
}

.decision-card.tone-slate {
  border-top-color: #64748b;
  background: linear-gradient(180deg, #f8fafc, #fff 52%);
}

.result-dialog[hidden] {
  display: none;
}

.result-dialog {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 24px;
}

.result-dialog-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 18, 32, 0.42);
  backdrop-filter: blur(8px);
}

.result-dialog-card {
  position: relative;
  z-index: 1;
  width: min(980px, 100%);
  max-height: min(82vh, 860px);
  overflow: hidden;
  border: 1px solid rgba(219, 229, 239, 0.96);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.28);
}

.result-dialog-card > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid #e2e8f0;
  background: linear-gradient(90deg, #f8fbff, #ffffff);
}

.result-dialog-card h2 {
  margin: 3px 0 0;
  font-size: 22px;
}

.icon-close {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid #dbe5ef;
  border-radius: 10px;
  background: #fff;
  color: #203044;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.result-dialog-body {
  max-height: calc(82vh - 84px);
  overflow: auto;
  padding: 18px 20px 22px;
}

.modal-open {
  overflow: hidden;
}

.modal-result-summary {
  display: grid;
  grid-template-columns: 1.5fr 0.8fr;
  gap: 12px;
  margin-bottom: 14px;
}

.modal-result-summary > div,
.modal-proof,
.modal-candidate {
  border: 1px solid #dbe5ef;
  border-radius: 10px;
  background: #fbfdff;
}

.modal-result-summary > div {
  padding: 14px;
}

.modal-result-summary span,
.modal-candidate span {
  display: inline-flex;
  margin-bottom: 6px;
  color: #64748b;
  font-size: 12px;
  font-weight: 900;
}

.modal-result-summary strong {
  display: block;
  color: #102033;
  font-size: 28px;
}

.modal-result-summary p,
.modal-proof li,
.modal-candidate p,
.modal-candidate small {
  color: #5d6b7c;
  line-height: 1.5;
}

.modal-proof {
  margin-bottom: 14px;
  padding: 14px 16px;
  border-left: 4px solid #0f766e;
}

.modal-proof h3 {
  margin: 0 0 8px;
}

.modal-proof ul {
  margin: 0;
  padding-left: 18px;
}

.classification-tree {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0;
}

.classification-tree article {
  min-height: 112px;
  padding: 12px;
  border: 1px solid #dbe5ef;
  border-top: 3px solid #0f766e;
  border-radius: 10px;
  background: #ffffff;
}

.classification-tree span {
  display: block;
  margin-bottom: 7px;
  color: #0f766e;
  font-size: 12px;
  font-weight: 900;
}

.classification-tree p {
  margin: 0;
  color: #566579;
  font-size: 13px;
  line-height: 1.45;
}

.required-field-matrix {
  margin: 14px 0;
  padding: 14px;
  border: 1px solid #dbe5ef;
  border-radius: 10px;
  background: #fbfdff;
}

.required-field-head {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 12px;
}

.required-field-head h3 {
  margin: 0;
  color: #102033;
  font-size: 16px;
}

.required-field-head p {
  max-width: 580px;
  margin: 0;
  color: #5d6b7c;
  font-size: 13px;
  line-height: 1.5;
}

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

.required-field-grid article {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid #e0e8f0;
  border-radius: 10px;
  background: #ffffff;
}

.required-field-grid article > strong {
  color: #102033;
  font-size: 14px;
}

.field-ok,
.field-missing {
  display: grid;
  gap: 3px;
  padding: 9px;
  border-radius: 8px;
  background: #eef8f1;
}

.field-missing {
  background: #fff2f2;
}

.field-ok span,
.field-missing span {
  color: #247049;
  font-size: 11px;
  font-weight: 900;
}

.field-missing span {
  color: #b4233c;
}

.field-ok b,
.field-missing b {
  color: #111827;
  font-size: 13px;
}

.field-ok small,
.field-missing small {
  color: #5d6b7c;
  line-height: 1.45;
}

.counter-evidence,
.review-checklist {
  margin: 14px 0;
  padding: 14px;
  border: 1px solid #dbe5ef;
  border-radius: 10px;
  background: #fbfdff;
}

.counter-evidence {
  border-left: 4px solid #be3b5b;
}

.review-checklist {
  border-left: 4px solid #b7791f;
}

.credibility-proof {
  border-left-color: #2563eb;
  background: #f8fbff;
}

.credibility-proof p {
  margin: 10px 0 0;
  color: #102033;
  font-weight: 750;
}

.counter-evidence h3,
.review-checklist h3 {
  margin: 0 0 10px;
  font-size: 16px;
}

.counter-evidence article {
  padding: 9px 0;
  border-top: 1px solid #e2e8f0;
}

.counter-evidence article:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.counter-evidence strong {
  display: block;
  color: #102033;
  font-size: 14px;
}

.counter-evidence p,
.review-checklist li {
  color: #5d6b7c;
  font-size: 13px;
  line-height: 1.5;
}

.review-checklist ul {
  margin: 0;
  padding-left: 18px;
}

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

.modal-candidate {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
}

.modal-candidate.primary {
  border-left: 4px solid #2563eb;
  background: #f8fbff;
}

.modal-candidate strong {
  display: block;
  color: #102033;
}

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

.owner-list div {
  display: grid;
  gap: 3px;
  padding: 9px;
  border: 1px solid #dbe5ef;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
}

.owner-list b {
  color: #111827;
  font-size: 14px;
}

.owner-list small {
  color: #5d6b7a;
  line-height: 1.45;
}

.history-panel {
  margin-top: 18px;
}

body[data-active-module] main {
  max-width: 1240px;
  margin: 0 auto;
}

body[data-active-module="dashboard"] main {
  max-width: none;
}

body[data-active-module] main {
  gap: 14px;
}

body[data-active-module] .two-column {
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}

body[data-active-module="policy"] #policy.two-column {
  grid-template-columns: minmax(0, 1fr);
}

body[data-active-module="policy"] #policy > .panel,
body[data-active-module="trends"] #trends,
body[data-active-module="hotspots"] #hotspots,
body[data-active-module="matrix"] #matrix,
body[data-active-module="exception"] #exception,
body[data-active-module="feedback"] #feedback,
body[data-active-module="decision"] #decision,
body[data-active-module="port-risk"] #port-risk,
body[data-active-module="customs"] #customs,
body[data-active-module="learn"] #learn {
  width: 100%;
}

body[data-active-module="policy"] #policy > .panel:not(.active):has(.module-tabs) {
  display: block;
}

body[data-active-module] .panel,
body[data-active-module] .module-launcher,
body[data-active-module] .kpi-card,
body[data-active-module] .starter-card,
body[data-active-module] .audience-card,
body[data-active-module] .candidate-card,
body[data-active-module] .decision-card,
body[data-active-module] .risk-card,
body[data-active-module] .trend-card,
body[data-active-module] .requirement-card,
body[data-active-module] .source-probe-card,
body[data-active-module] .alert-card {
  border-radius: 12px;
}

body[data-active-module] .panel {
  border-top: 3px solid #dbeafe;
  padding: 16px;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.055);
}

body[data-active-module="hs"] #hs .panel:first-of-type,
body[data-active-module="matrix"] #matrix,
body[data-active-module="battery"] #battery .panel:first-of-type {
  border-top-color: #0f766e;
}

body[data-active-module="policy"] #policy .panel,
body[data-active-module="trends"] #trends,
body[data-active-module="hotspots"] #hotspots {
  border-top-color: #6f5cc2;
}

body[data-active-module="shipment"] #shipment .panel,
body[data-active-module="port-risk"] #port-risk {
  border-top-color: #b7791f;
}

body[data-active-module="decision"] #decision {
  border-top-color: #2563eb;
}

body[data-active-module="exception"] #exception {
  border-top-color: #64748b;
}

body[data-active-module="learn"] #learn {
  border-top-color: #0f766e;
}

.result-panel,
.tracking-result,
.route-map {
  min-height: 0;
}

.result-panel .empty-state {
  min-height: 132px;
}

.tracking-section,
#port-risk,
#trends,
#hotspots,
#matrix,
#exception,
#feedback,
#learn,
#customs,
#decision {
  margin-bottom: 18px;
}

#policy .tab-panel.active {
  animation: moduleFadeIn 0.18s ease;
}

body[data-active-module="hs"] #hs,
body[data-active-module="battery"] #battery,
body[data-active-module="policy"] #policy {
  gap: 14px;
}

body[data-active-module="hs"] .classify-form .field-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body[data-active-module="hs"] #productForm {
  order: 1;
}

body[data-active-module="hs"] .hs-smart-panel {
  order: 2;
}

body[data-active-module="hs"] .result-panel {
  display: grid;
  gap: 12px;
  grid-column: 1 / -1;
  order: 3;
}

body[data-active-module="hs"] .tariff-check-panel {
  order: 4;
}

body[data-active-module="hs"] .risk-box {
  padding: 12px;
  border: 1px solid #e1e8f0;
  border-radius: 10px;
  background: #ffffff;
}

body[data-active-module="hs"] .compact-elements {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body[data-active-module="matrix"] #matrix {
  display: grid;
  gap: 14px;
  max-width: 1040px;
}

body[data-active-module="matrix"] .requirement-form {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(220px, 0.7fr) auto;
  gap: 12px;
  align-items: end;
}

body[data-active-module="matrix"] .requirement-result {
  display: grid;
  gap: 12px;
}

body[data-active-module="policy"] .policy-live-grid,
body[data-active-module="policy"] .source-list {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

body[data-active-module="policy"] .source-summary-grid {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

@keyframes moduleFadeIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.knowledge-switch {
  display: inline-flex;
  gap: 6px;
  margin: 16px 0 4px;
  padding: 5px;
  border: 1px solid #dbe7ef;
  border-radius: 12px;
  background: #f8fafc;
}

.knowledge-tab {
  min-height: 36px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #526174;
  padding: 7px 13px;
  font-weight: 900;
}

.knowledge-tab.active {
  background: linear-gradient(135deg, #2563eb, #0f766e);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.18);
}

.knowledge-panel {
  display: none;
}

.knowledge-panel.active {
  display: block;
  animation: moduleFadeIn 0.2s ease;
}

.glossary-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.42fr);
  gap: 14px;
  align-items: end;
  margin-top: 14px;
  padding: 16px;
  border: 1px solid #dbe7ef;
  border-radius: 14px;
  background:
    radial-gradient(circle at 12% 8%, rgba(37, 99, 235, 0.12), transparent 30%),
    linear-gradient(135deg, #f8fbff, #ffffff 55%, #effbf8);
}

.glossary-intro h3 {
  margin: 0 0 6px;
  font-size: 22px;
}

.glossary-intro p:last-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.glossary-search {
  color: #334155;
}

.glossary-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.glossary-category {
  min-height: 32px;
  border: 1px solid #dbe7ef;
  border-radius: 999px;
  background: #ffffff;
  color: #334155;
  padding: 5px 11px;
  font-size: 13px;
  font-weight: 900;
}

.glossary-category.active {
  border-color: #2563eb;
  background: #eef5ff;
  color: #1d4ed8;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.12);
}

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

.glossary-card,
.glossary-empty {
  min-height: 176px;
  padding: 14px;
  border: 1px solid #dbe5ef;
  border-radius: 13px;
  background: #ffffff;
}

.glossary-card {
  position: relative;
  display: grid;
  gap: 7px;
  overflow: hidden;
  appearance: none;
  color: var(--ink);
  text-align: left;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.glossary-card::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, #2563eb, #0f766e, #f59e0b);
  content: "";
}

.glossary-card::after {
  position: absolute;
  right: -24px;
  top: -24px;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.08);
  content: "";
  transition: transform 0.18s ease;
}

.glossary-card:hover,
.glossary-card:focus-visible {
  transform: translateY(-3px);
  border-color: #a7c7ee;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.1);
}

.glossary-card:hover::after,
.glossary-card:focus-visible::after {
  transform: scale(1.25);
}

.glossary-card span,
.glossary-detail-hero span,
.glossary-detail-grid span {
  color: #2563eb;
  font-size: 12px;
  font-weight: 900;
}

.glossary-card strong {
  color: #111827;
  font-size: 18px;
  line-height: 1.25;
}

.glossary-card em {
  color: #334155;
  font-style: normal;
  font-weight: 900;
}

.glossary-card p,
.glossary-card small,
.glossary-empty p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.glossary-card small {
  align-self: end;
  color: #0f766e;
  font-weight: 900;
}

.glossary-empty {
  grid-column: 1 / -1;
  display: grid;
  place-content: center;
  gap: 8px;
  border-style: dashed;
  background: #f8fafc;
  text-align: center;
}

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

.glossary-detail-hero {
  padding: 16px;
  border: 1px solid #dbe7ef;
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(15, 118, 110, 0.08)),
    #ffffff;
}

.glossary-detail-hero h3 {
  margin: 4px 0;
  font-size: 28px;
}

.glossary-detail-hero strong {
  display: block;
  color: #0f172a;
  font-size: 18px;
}

.glossary-detail-hero p,
.glossary-detail-grid p {
  color: var(--muted);
  line-height: 1.6;
}

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

.glossary-detail-grid article {
  padding: 14px;
  border: 1px solid #dbe5ef;
  border-radius: 12px;
  background: #ffffff;
}

nav a[href="#learn"]::before {
  content: "知";
  background: #ecfdf5;
  color: #047857;
}

.kpi-card,
.starter-card,
.module-launch-card,
.result-state,
.risk-card,
.trend-card,
.policy-summary-card,
.requirement-card,
.alert-card,
.glossary-card {
  position: relative;
  overflow: hidden;
}

.kpi-card > *,
.module-launch-card > *,
.risk-card > *,
.trend-card > *,
.glossary-card > * {
  position: relative;
  z-index: 1;
}

.kpi-card::after,
.module-launch-card::after,
.risk-card::after,
.trend-card::after {
  position: absolute;
  inset: -60% auto -60% -55%;
  width: 42%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.56), transparent);
  content: "";
  opacity: 0;
  transform: rotate(18deg);
  animation: insightSweep 7s ease-in-out infinite;
  pointer-events: none;
}

.kpi-card:nth-child(2)::after,
.module-launch-card:nth-child(2n)::after,
.trend-card:nth-child(2n)::after {
  animation-delay: 1.4s;
}

.kpi-card:nth-child(3)::after,
.module-launch-card:nth-child(3n)::after,
.risk-card:nth-child(3n)::after {
  animation-delay: 2.6s;
}

.kpi-card.danger strong,
.danger-pill,
.risk-card.level-high strong,
.risk-card.level-watch strong {
  animation: riskBreath 2.8s ease-in-out infinite;
}

.starter-card span,
.module-launch-card span,
.quiet-tag,
.pill {
  animation: softFloat 4.8s ease-in-out infinite;
}

.module-launch-card::before,
.risk-card::before,
.trend-card::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, #2563eb, #0f766e);
  content: "";
  opacity: 0.7;
}

.module-launch-card:hover::before,
.risk-card:hover::before,
.trend-card:hover::before {
  width: 5px;
}

.score-ring {
  position: relative;
  isolation: isolate;
  border-color: transparent;
  background:
    linear-gradient(#ffffff, #ffffff) padding-box,
    conic-gradient(from 0deg, #0f766e, #2563eb, #f59e0b, #0f766e) border-box;
  animation: confidenceGlow 4.4s ease-in-out infinite;
}

.score-ring::before {
  position: absolute;
  inset: -7px;
  z-index: -1;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(37, 99, 235, 0), rgba(37, 99, 235, 0.34), rgba(15, 118, 110, 0));
  content: "";
  animation: ringRotate 4s linear infinite;
}

.vessel-marker,
.ship-map-icon {
  position: relative;
  animation: vesselBob 2.8s ease-in-out infinite;
}

.vessel-marker.live-position {
  animation: vesselBobLive 2.8s ease-in-out infinite;
}

.vessel-marker.live-position::after,
.ship-map-icon::before {
  position: absolute;
  inset: -10px;
  border: 2px solid rgba(163, 58, 58, 0.28);
  border-radius: 999px;
  content: "";
  animation: mapPing 2.4s ease-out infinite;
}

.map-placeholder::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 32%, rgba(255, 255, 255, 0.38), transparent 68%);
  content: "";
  animation: oceanScan 5.8s ease-in-out infinite;
}

.tracking-cards .info-tile,
.requirement-summary-grid > div,
.source-summary-grid span {
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.tracking-cards .info-tile:hover,
.requirement-summary-grid > div:hover,
.source-summary-grid span:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

@keyframes insightSweep {
  0%, 58% {
    opacity: 0;
    transform: translateX(0) rotate(18deg);
  }
  66% {
    opacity: 0.75;
  }
  82%, 100% {
    opacity: 0;
    transform: translateX(440%) rotate(18deg);
  }
}

@keyframes riskBreath {
  0%, 100% {
    transform: scale(1);
    filter: saturate(1);
  }
  50% {
    transform: scale(1.025);
    filter: saturate(1.18);
  }
}

@keyframes softFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-1px);
  }
}

@keyframes quietFloat {
  0%, 100% {
    transform: translateY(0) scale(1);
    opacity: 0.72;
  }
  50% {
    transform: translateY(-5px) scale(1.04);
    opacity: 1;
  }
}

@keyframes confidenceGlow {
  0%, 100% {
    box-shadow: 0 0 0 rgba(37, 99, 235, 0);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(37, 99, 235, 0.07);
  }
}

@keyframes ringRotate {
  to {
    transform: rotate(360deg);
  }
}

@keyframes vesselBob {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

@keyframes vesselBobLive {
  0%, 100% {
    transform: translate(-50%, -50%) translateY(0);
  }
  50% {
    transform: translate(-50%, -50%) translateY(-4px);
  }
}

@keyframes mapPing {
  0% {
    opacity: 0.7;
    transform: scale(0.72);
  }
  100% {
    opacity: 0;
    transform: scale(1.55);
  }
}

@keyframes oceanScan {
  0%, 35% {
    transform: translateX(-110%);
  }
  70%, 100% {
    transform: translateX(110%);
  }
}

.nav-groups a,
.nav-home {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid transparent;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.nav-groups a::before {
  display: none !important;
  content: none !important;
}

.nav-groups a::after,
.nav-home::after {
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, #60a5fa, #2dd4bf);
  content: "";
  opacity: 0;
  transform: translateY(18%);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.nav-groups a:hover,
.nav-groups a.active,
.nav-home:hover,
.nav-home.active {
  transform: translateX(3px);
  border-color: rgba(96, 165, 250, 0.28);
  background:
    linear-gradient(90deg, rgba(37, 99, 235, 0.22), rgba(20, 184, 166, 0.1)),
    rgba(15, 23, 42, 0.56);
  box-shadow: 0 12px 24px rgba(2, 6, 23, 0.18);
}

.nav-groups a:hover::after,
.nav-groups a.active::after,
.nav-home:hover::after,
.nav-home.active::after {
  opacity: 1;
  transform: translateY(0);
}

.nav-groups a > span:last-child,
.nav-home > span:last-child {
  position: relative;
  z-index: 1;
}

.nav-icon {
  position: relative;
  z-index: 1;
  display: grid;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 9px;
  background:
    linear-gradient(135deg, rgba(96, 165, 250, 0.24), rgba(45, 212, 191, 0.13)),
    rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.nav-icon::before,
.nav-icon::after {
  position: absolute;
  content: "";
}

.nav-groups a:hover .nav-icon,
.nav-groups a.active .nav-icon,
.nav-home:hover .nav-icon,
.nav-home.active .nav-icon {
  border-color: rgba(255, 255, 255, 0.32);
  background: linear-gradient(135deg, #60a5fa, #2dd4bf);
  animation: iconPulse 2.8s ease-in-out infinite;
}

.nav-icon-dashboard::before {
  width: 5px;
  height: 5px;
  border-radius: 2px;
  background: #bfdbfe;
  box-shadow: 9px 0 0 #bfdbfe, 0 9px 0 #bfdbfe, 9px 9px 0 #2dd4bf;
}

.nav-icon-decision::before {
  width: 10px;
  height: 18px;
  background: #fde68a;
  clip-path: polygon(46% 0, 100% 0, 62% 43%, 100% 43%, 34% 100%, 48% 56%, 0 56%);
}

.nav-icon-hs::before {
  width: 11px;
  height: 11px;
  border: 2px solid #bfdbfe;
  border-radius: 50%;
}

.nav-icon-hs::after {
  right: 6px;
  bottom: 6px;
  width: 9px;
  height: 2px;
  border-radius: 999px;
  background: #bfdbfe;
  transform: rotate(45deg);
}

.nav-icon-matrix::before {
  width: 15px;
  height: 15px;
  border: 2px solid #c7d2fe;
  border-radius: 50%;
}

.nav-icon-matrix::after {
  width: 18px;
  height: 8px;
  border-top: 2px solid #c7d2fe;
  border-bottom: 2px solid #c7d2fe;
  border-radius: 50%;
}

.nav-icon-battery::before {
  width: 15px;
  height: 9px;
  border: 2px solid #fed7aa;
  border-radius: 3px;
}

.nav-icon-battery::after {
  right: 4px;
  width: 3px;
  height: 7px;
  border-radius: 0 2px 2px 0;
  background: #fed7aa;
}

.nav-icon-policy::before {
  width: 13px;
  height: 16px;
  border: 2px solid #fed7aa;
  border-radius: 3px;
}

.nav-icon-policy::after {
  width: 9px;
  height: 2px;
  background: #fed7aa;
  box-shadow: 0 5px 0 #fed7aa;
}

.nav-icon-trends::before {
  left: 6px;
  bottom: 7px;
  width: 16px;
  height: 11px;
  border-left: 2px solid #ddd6fe;
  border-bottom: 2px solid #ddd6fe;
}

.nav-icon-trends::after {
  left: 8px;
  bottom: 10px;
  width: 14px;
  height: 8px;
  border-top: 2px solid #ddd6fe;
  border-right: 2px solid #ddd6fe;
  transform: skew(-20deg) rotate(-18deg);
}

.nav-icon-hotspots::before {
  width: 15px;
  height: 17px;
  background: #fde68a;
  clip-path: polygon(50% 0, 82% 40%, 64% 40%, 92% 100%, 38% 55%, 55% 55%, 8% 100%, 35% 40%, 18% 40%);
}

.nav-icon-hotspots::after {
  bottom: 5px;
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: #fde68a;
}

.nav-icon-shipment::before {
  bottom: 7px;
  width: 18px;
  height: 8px;
  border-radius: 3px 3px 10px 10px;
  background: #bbf7d0;
}

.nav-icon-shipment::after {
  top: 6px;
  width: 9px;
  height: 8px;
  border-radius: 2px 2px 0 0;
  background: #bbf7d0;
}

.nav-icon-customs::before {
  width: 14px;
  height: 17px;
  border: 2px solid #a7f3d0;
  border-radius: 3px;
}

.nav-icon-customs::after {
  width: 9px;
  height: 2px;
  background: #a7f3d0;
  box-shadow: 0 5px 0 #a7f3d0, 0 10px 0 #a7f3d0;
}

.nav-icon-air::before {
  width: 20px;
  height: 16px;
  background: #bae6fd;
  clip-path: polygon(0 48%, 78% 0, 58% 42%, 100% 42%, 56% 60%, 72% 100%);
  transform: rotate(-8deg);
}

.nav-icon-air::after {
  left: 4px;
  bottom: 6px;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: #38bdf8;
  box-shadow: -5px 5px 0 rgba(56, 189, 248, 0.45);
}

.nav-icon-port::before {
  width: 13px;
  height: 13px;
  border: 2px solid #fecdd3;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
}

.nav-icon-port::after {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #fecdd3;
}

.nav-icon-exception::before {
  width: 17px;
  height: 15px;
  background: #e2e8f0;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.nav-icon-exception::after {
  width: 2px;
  height: 8px;
  border-radius: 999px;
  background: #0f172a;
  box-shadow: 0 10px 0 #0f172a;
  transform: translateY(1px);
}

.nav-icon-learn::before {
  left: 6px;
  width: 8px;
  height: 16px;
  border: 2px solid #bbf7d0;
  border-right: 0;
  border-radius: 3px 0 0 3px;
}

.nav-icon-learn::after {
  right: 6px;
  width: 8px;
  height: 16px;
  border: 2px solid #bbf7d0;
  border-left: 0;
  border-radius: 0 3px 3px 0;
}

.nav-icon-feedback::before {
  width: 16px;
  height: 12px;
  border: 2px solid #fbcfe8;
  border-radius: 5px;
}

.nav-icon-feedback::after {
  left: 8px;
  bottom: 5px;
  width: 7px;
  height: 7px;
  background: #fbcfe8;
  clip-path: polygon(0 0, 100% 0, 0 100%);
}

.nav-group summary {
  background:
    linear-gradient(90deg, rgba(56, 189, 248, 0.1), transparent 70%);
}

.nav-group summary::before {
  box-shadow: 0 0 0 5px rgba(56, 189, 248, 0.08);
  animation: navDotPulse 3.8s ease-in-out infinite;
}

.dashboard-command {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.75fr);
  gap: 14px;
  margin-bottom: 18px;
}

.command-main,
.command-radar {
  position: relative;
  overflow: hidden;
  border: 1px solid #dbe5ef;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.07);
}

.command-main {
  padding: 20px;
  background:
    radial-gradient(circle at 8% 0%, rgba(37, 99, 235, 0.14), transparent 34%),
    radial-gradient(circle at 92% 12%, rgba(15, 118, 110, 0.12), transparent 28%),
    #ffffff;
}

.command-main h2 {
  margin: 0 0 8px;
  font-size: 24px;
}

.command-main p {
  max-width: 820px;
  color: var(--muted);
  line-height: 1.6;
}

.command-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.command-steps a {
  position: relative;
  display: grid;
  gap: 7px;
  min-height: 112px;
  padding: 13px;
  overflow: hidden;
  border: 1px solid #dbe7f3;
  border-radius: 12px;
  background: rgba(248, 250, 252, 0.82);
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.command-steps a::before {
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, #2563eb, #0f766e, #f59e0b);
  content: "";
}

.command-steps a:hover {
  transform: translateY(-3px);
  border-color: #a7c7ee;
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.1);
}

.command-steps span {
  width: fit-content;
  padding: 4px 7px;
  border-radius: 999px;
  background: #eef5ff;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 900;
}

.command-steps strong {
  color: #111827;
  font-size: 16px;
}

.command-steps small {
  color: var(--muted);
  line-height: 1.45;
}

.command-radar {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 18px;
  background:
    linear-gradient(135deg, #0f172a, #13233d 58%, #0f766e);
  color: #e5edf7;
}

.radar-visual {
  position: relative;
  width: 154px;
  height: 154px;
  border: 1px solid rgba(191, 219, 254, 0.28);
  border-radius: 50%;
  background:
    repeating-radial-gradient(circle, transparent 0 24px, rgba(191, 219, 254, 0.16) 25px 26px),
    radial-gradient(circle, rgba(45, 212, 191, 0.22), rgba(37, 99, 235, 0.08) 45%, transparent 68%);
}

.radar-visual::before {
  position: absolute;
  inset: 50% 50% auto auto;
  width: 66px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(45, 212, 191, 0.95), transparent);
  content: "";
  transform-origin: left center;
  animation: radarSweep 3.8s linear infinite;
}

.radar-visual span {
  position: absolute;
  left: 52%;
  top: 32%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #2dd4bf;
  box-shadow: 0 0 0 8px rgba(45, 212, 191, 0.12);
}

.radar-visual i {
  position: absolute;
  left: 30%;
  top: 64%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fbbf24;
  box-shadow: 0 0 0 7px rgba(251, 191, 36, 0.12);
}

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

.radar-list div {
  display: grid;
  gap: 2px;
  padding: 9px 10px;
  border: 1px solid rgba(191, 219, 254, 0.16);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.07);
}

.radar-list span {
  color: #93c5fd;
  font-size: 11px;
  font-weight: 900;
}

.radar-list strong {
  color: #ffffff;
  font-size: 14px;
}

@keyframes iconPulse {
  0%, 100% {
    box-shadow: 0 0 0 rgba(45, 212, 191, 0);
  }
  50% {
    box-shadow: 0 0 0 5px rgba(45, 212, 191, 0.11);
  }
}

@keyframes navDotPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.75;
  }
  50% {
    transform: scale(1.25);
    opacity: 1;
  }
}

@keyframes radarSweep {
  to {
    transform: rotate(360deg);
  }
}

.smart-assist {
  min-width: 0;
}

.hs-elements-inline {
  grid-column: 1 / -1;
}

.smart-assist-card {
  display: grid;
  gap: 12px;
  margin-top: 0;
  padding: 14px;
  border: 1px solid #d9e7f3;
  border-left: 4px solid #0f766e;
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.08), rgba(37, 99, 235, 0.04)),
    #ffffff;
}

.hs-smart-panel {
  align-self: start;
}

.smart-judge-button {
  width: fit-content;
  margin-top: 4px;
}

.smart-assist-card span,
.hotspot-rank-card span,
.feedback-card span {
  color: #64748b;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.smart-assist-card strong {
  display: block;
  margin-top: 4px;
  color: #0f172a;
  font-size: 18px;
}

.smart-assist-card p {
  margin: 6px 0 0;
  color: #5d6b7c;
  line-height: 1.5;
}

.ccc-quick-guide {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid rgba(59, 130, 246, 0.22);
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(239, 246, 255, 0.95), rgba(255, 255, 255, 0.82));
}

.ccc-input-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.ccc-input-grid label {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.ccc-input-grid span {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.vessel-public-panel {
  margin-top: 16px;
}

.vessel-public-frame {
  width: 100%;
  min-height: 420px;
  border: 1px solid #d9e7f3;
  border-radius: 14px;
  background: #f8fbff;
}

.vessel-inline-fallback {
  margin-top: 14px;
}

.vessel-public-mini,
.air-hero,
.air-result-card,
.air-guide-card,
.air-checklist-panel,
.freight-tool-panel,
.freight-result-card,
.code-result-card,
.failure-dialog-body {
  border: 1px solid #dbe6f1;
  border-radius: 12px;
  background: linear-gradient(135deg, #f8fbff, #ffffff 58%, #f0fdfa);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
}

.freight-tool-panel {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  padding: 16px;
}

.code-desk-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

.code-desk-panel .freight-tool-panel {
  height: 100%;
  margin-top: 0;
}

.code-desk-panel .code-lookup-result {
  grid-template-columns: 1fr;
}

.embedded-tool {
  margin: 14px 0;
}

.compact-tool-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 12px;
}

.load-calc-form .field-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

#seaSpecialForm {
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
}

.sea-load-panel .freight-result-grid,
.air-calc-panel .freight-result-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.sea-special-panel .freight-result-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.terminal-verdict {
  border-color: #c4b5fd;
  background: linear-gradient(135deg, #f5f3ff, #ffffff);
}

.load-calc-form button {
  width: fit-content;
}

.code-lookup-result,
.freight-result-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.code-result-card,
.freight-result-card {
  min-height: 118px;
  padding: 14px;
}

.code-result-card span,
.freight-result-card span {
  display: inline-flex;
  margin-bottom: 7px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #e0f2fe;
  color: #075985;
  font-size: 11px;
  font-weight: 900;
}

.code-result-card strong,
.freight-result-card strong {
  display: block;
  color: #0f172a;
  font-size: 18px;
  line-height: 1.3;
}

.code-result-card p,
.code-result-card small,
.freight-result-card p,
.freight-result-card li {
  color: #58677a;
  font-size: 13px;
  line-height: 1.55;
}

.code-result-card.warning,
.freight-result-card.warning {
  border-color: #fed7aa;
  background: linear-gradient(135deg, #fff7ed, #ffffff);
}

.freight-result-card.primary {
  border-color: #bfdbfe;
  background: linear-gradient(135deg, #eff6ff, #ffffff);
}

.freight-result-card.wide {
  grid-column: span 2;
}

.vessel-public-mini {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.vessel-mini-head span,
.air-result-card > span,
.air-guide-card span,
.air-checklist-grid span {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #e0f2fe;
  color: #0369a1;
  font-size: 11px;
  font-weight: 900;
}

.vessel-mini-head strong,
.air-result-card strong,
.air-guide-card strong,
.air-checklist-grid strong {
  display: block;
  color: #0f172a;
  line-height: 1.35;
}

.vessel-mini-head small {
  display: block;
  margin-top: 4px;
  color: #64748b;
  line-height: 1.45;
}

.vessel-mini-screen {
  position: relative;
  min-height: 150px;
  overflow: hidden;
  border: 1px solid #cfe0ef;
  border-radius: 10px;
  background: linear-gradient(135deg, #dff7ff 0%, #d1fae5 42%, #fef3c7 43%, #fef3c7 62%, #dbeafe 63%);
}

.vessel-mini-search {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 30px;
  padding: 5px 8px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.94);
  color: #0f172a;
  font-size: 12px;
  font-weight: 900;
}

.vessel-mini-search i {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: #2563eb;
}

.vessel-mini-map {
  position: absolute;
  inset: 0;
}

.vessel-mini-map::before {
  position: absolute;
  right: 26%;
  bottom: 38%;
  width: 18px;
  height: 18px;
  border-radius: 999px 999px 999px 0;
  background: #ef4444;
  content: "";
  transform: rotate(-45deg);
  animation: vesselPinPulse 1.8s ease-in-out infinite;
}

.mini-coast {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 46%;
  height: 68%;
  border-radius: 50% 0 0 0;
  background: rgba(250, 204, 21, 0.22);
}

.mini-radar {
  position: absolute;
  right: 22%;
  bottom: 32%;
  width: 58px;
  height: 58px;
  border: 2px solid rgba(239, 68, 68, 0.28);
  border-radius: 999px;
  animation: radarRipple 2s ease-out infinite;
}

.vessel-mini-map b {
  position: absolute;
  right: 12px;
  bottom: 10px;
  color: #1e40af;
  font-size: 12px;
}

.failure-dialog-body {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.failure-board {
  display: grid;
  gap: 12px;
  margin: 16px 0;
  padding: 16px;
  border: 1px solid #dbe6f1;
  border-radius: 12px;
  background: linear-gradient(135deg, #f8fbff, #ffffff 56%, #fff7ed);
}

.failure-summary-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.failure-summary-grid article {
  padding: 12px;
  border: 1px solid #dbe6f1;
  border-radius: 10px;
  background: #fff;
}

.failure-summary-grid span,
.failure-event-card span {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #fff7ed;
  color: #b45309;
  font-size: 11px;
  font-weight: 900;
}

.failure-summary-grid strong {
  display: block;
  color: #0f172a;
  font-size: 24px;
}

.failure-summary-grid small {
  color: #64748b;
}

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

.failure-event-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 13px;
  border: 1px solid #dbe6f1;
  border-left: 4px solid #f59e0b;
  border-radius: 10px;
  background: #fff;
}

.failure-event-card.muted {
  border-left-color: #94a3b8;
  background: #f8fafc;
}

.failure-event-card strong {
  display: block;
  color: #0f172a;
}

.failure-event-card p,
.failure-event-card small {
  display: block;
  margin: 6px 0 0;
  color: #5d6b7a;
  line-height: 1.5;
}

.sad-animation {
  position: relative;
  justify-self: center;
  width: 108px;
  height: 78px;
}

.sad-animation span {
  position: absolute;
  inset: 10px 14px;
  border-radius: 20px 20px 24px 24px;
  background: linear-gradient(180deg, #dbeafe, #bfdbfe);
  animation: sadFloat 2.4s ease-in-out infinite;
}

.sad-animation span::before,
.sad-animation span::after {
  position: absolute;
  top: 23px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #1e3a8a;
  content: "";
}

.sad-animation span::before { left: 22px; }
.sad-animation span::after { right: 22px; }

.sad-animation i {
  position: absolute;
  left: 42px;
  bottom: 18px;
  width: 24px;
  height: 12px;
  border-top: 3px solid #1e3a8a;
  border-radius: 999px 999px 0 0;
}

.failure-copy {
  text-align: center;
}

.failure-copy h3 {
  margin: 0 0 6px;
  color: #0f172a;
}

.failure-copy p,
.failure-dialog-body li,
.air-guide-card p,
.air-result-card p,
.air-result-card li {
  color: #5d6b7a;
  line-height: 1.55;
}

.failure-copy strong {
  color: #be3b5b;
}

.air-desk-panel {
  display: grid;
  gap: 16px;
}

.air-guide-panel {
  display: grid;
  gap: 16px;
}

.hotspot-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
}

.hotspot-actions span {
  color: #64748b;
  font-size: 12px;
  font-weight: 900;
}

.air-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 18px;
  align-items: center;
  padding: 18px;
}

.air-guide-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 18px;
  align-items: center;
  padding: 18px;
  border: 1px solid #dbe6f1;
  border-radius: 12px;
  background: linear-gradient(135deg, #f0f9ff, #ffffff 58%, #ecfdf5);
}

.air-guide-hero h2 {
  margin: 0 0 8px;
}

.air-guide-hero p {
  margin: 0;
  color: #5d6b7a;
  line-height: 1.55;
}

.air-stage-strip {
  display: grid;
  gap: 8px;
}

.air-stage-strip span {
  padding: 10px 12px;
  border: 1px solid #cfe0ef;
  border-radius: 10px;
  background: #fff;
  color: #0f5fc9;
  font-weight: 900;
}

.air-hero h2 {
  margin: 0 0 8px;
}

.air-hero p {
  margin: 0;
  color: #5d6b7a;
  line-height: 1.55;
}

.air-hero-visual {
  position: relative;
  min-height: 130px;
  overflow: hidden;
  border-radius: 12px;
  background: linear-gradient(180deg, #dff7ff, #ffffff 58%, #e0f2fe);
}

.air-hero-visual span {
  position: absolute;
  left: 22px;
  top: 48px;
  width: 84px;
  height: 34px;
  background: #2563eb;
  clip-path: polygon(0 45%, 72% 0, 54% 38%, 100% 38%, 55% 58%, 72% 100%);
  animation: airGlide 3.8s ease-in-out infinite;
}

.air-hero-visual i {
  position: absolute;
  right: 22px;
  bottom: 22px;
  width: 72px;
  height: 42px;
  border-radius: 8px;
  background: #fef3c7;
  border: 2px solid #f59e0b;
}

.air-result-grid,
.air-knowledge-grid,
.air-checklist-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.air-result-card,
.air-guide-card,
.air-checklist-grid article {
  padding: 15px;
}

.air-result-card.primary {
  grid-column: span 2;
  border-top: 4px solid #2563eb;
}

.air-result-card.success {
  border-top-color: #0f766e;
  background: linear-gradient(135deg, #f0fdfa, #ffffff 62%);
}

.air-result-card.warning {
  grid-column: 1 / -1;
  border-top: 4px solid #b7791f;
}

.air-result-card.checklist {
  border-top: 4px solid #0f766e;
}

.air-guide-card.danger {
  border-top: 4px solid #be3b5b;
  background: linear-gradient(135deg, #fff4f6, #ffffff 62%);
}

.air-guide-jump {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  background: #eff6ff;
  color: #1d4ed8;
  font-weight: 900;
  text-decoration: none;
}

.air-checklist-panel {
  padding: 16px;
}

.air-guide-query {
  display: grid;
  gap: 12px;
}

.air-guide-result {
  display: grid;
  gap: 12px;
}

.air-guide-verdict,
.air-guide-result-grid article {
  padding: 15px;
  border: 1px solid #dbe6f1;
  border-radius: 12px;
  background: linear-gradient(135deg, #f8fbff, #ffffff 62%);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.055);
}

.air-guide-verdict {
  border-left: 5px solid #2563eb;
}

.air-guide-verdict span,
.air-guide-result-grid span {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 8px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #eef2ff;
  color: #3730a3;
  font-size: 11px;
  font-weight: 900;
}

.air-guide-verdict strong {
  display: block;
  color: #0f172a;
  font-size: 20px;
  line-height: 1.35;
}

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

.air-guide-result-grid ul {
  margin: 0;
  padding-left: 18px;
}

.air-guide-result-grid li {
  margin: 5px 0;
  color: #5d6b7a;
  line-height: 1.5;
}

.air-checklist-grid article {
  border: 1px solid #dbe6f1;
  border-radius: 10px;
  background: #ffffff;
}

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

.air-operation-grid article {
  padding: 15px;
  border: 1px solid #dbe6f1;
  border-radius: 12px;
  background: #ffffff;
}

.air-operation-grid span {
  display: inline-flex;
  margin-bottom: 7px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #fef3c7;
  color: #92400e;
  font-size: 11px;
  font-weight: 900;
}

.air-operation-grid strong {
  display: block;
  color: #0f172a;
  line-height: 1.35;
}

.air-operation-grid p {
  margin: 8px 0 0;
  color: #5d6b7a;
  line-height: 1.55;
}

@keyframes sadFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@keyframes radarRipple {
  0% { transform: scale(0.45); opacity: 0.8; }
  100% { transform: scale(1.25); opacity: 0; }
}

@keyframes vesselPinPulse {
  0%, 100% { transform: rotate(-45deg) scale(1); }
  50% { transform: rotate(-45deg) scale(1.14); }
}

@keyframes airGlide {
  0%, 100% { transform: translateX(0) translateY(0); }
  50% { transform: translateX(58px) translateY(-12px); }
}

.quiet-link {
  color: #2563eb;
  font-weight: 900;
  text-decoration: none;
}

.operation-guide-card {
  grid-column: 1 / -1;
  border-left: 5px solid #2563eb;
  background: linear-gradient(135deg, #f8fbff, #ffffff 55%, #f4fff8);
}

.operation-guide-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.operation-guide-list section {
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.82);
}

.operation-guide-list b {
  display: block;
  margin-bottom: 6px;
  color: #0f172a;
}

.operation-guide-list small {
  display: block;
  margin-top: 8px;
  color: #64748b;
  font-weight: 800;
}

.smart-chip-row,
.smart-fill-grid,
.element-pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.smart-chip-row button,
.smart-fill-grid button,
.element-pill-grid span {
  border: 1px solid #cfe0f2;
  border-radius: 999px;
  background: #f7fbff;
  color: #1457b8;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 850;
}

.smart-fill-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.smart-fill-grid div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-content: start;
  padding: 12px;
  border: 1px solid #e0e8f0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.76);
}

.smart-fill-grid b {
  flex-basis: 100%;
  color: #203044;
  font-size: 13px;
}

.smart-param-panel {
  display: grid;
  gap: 9px;
  padding: 13px;
  border: 1px solid #cfe0f2;
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(20, 184, 166, 0.08)),
    #ffffff;
}

.smart-param-panel > b {
  color: #102033;
  font-size: 14px;
}

.smart-param-panel > p {
  margin: 0;
  font-size: 12px;
}

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

.smart-param-grid label {
  gap: 6px;
  padding: 10px;
  border: 1px solid #e0e8f0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.78);
}

.smart-param-grid label span {
  color: #334155;
  font-size: 12px;
}

.smart-param-extra {
  grid-column: 1 / -1;
}

.ccc-decision-card {
  min-height: 0;
}

.ccc-proof {
  margin: 12px 0;
}

.ccc-proof .decision-card,
.ccc-inline-proof {
  border-left-color: #f59e0b;
  background: linear-gradient(180deg, #fffaf0, #ffffff 70%);
}

.modal-refill-panel {
  display: grid;
  gap: 10px;
  margin: 14px 0;
  padding: 14px;
  border: 1px solid #dbe5ef;
  border-left: 4px solid #2563eb;
  border-radius: 10px;
  background: #f8fbff;
}

.modal-refill-panel h3 {
  margin: 0;
}

.modal-refill-panel p {
  margin: 0;
  color: #5d6b7c;
  line-height: 1.5;
}

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

.merged-elements {
  background: linear-gradient(135deg, #f5fbff, #ffffff);
}

.duty-formula-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0;
}

.duty-formula-panel article {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid #dbe5ef;
  border-top: 3px solid #2563eb;
  border-radius: 10px;
  background: #ffffff;
}

.duty-formula-panel article.alert {
  border-top-color: #be3b5b;
  background: linear-gradient(180deg, #fff4f6, #ffffff 65%);
}

.duty-formula-panel span {
  color: #64748b;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.duty-formula-panel strong {
  color: #102033;
  font-size: 18px;
  line-height: 1.35;
}

.duty-formula-panel p {
  margin: 0;
  color: #5d6b7c;
  font-size: 13px;
  line-height: 1.5;
}

.tariff-total-card {
  grid-column: 1 / -1;
}

.trend-hotspot-board {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid #dbe5ef;
  border-top: 3px solid #6f5cc2;
  border-radius: 12px;
  background: #ffffff;
}

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

.hotspot-column {
  position: relative;
  overflow: hidden;
  padding: 14px;
  border: 1px solid #dbe5ef;
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.07), rgba(15, 118, 110, 0.06)),
    #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.hotspot-column::before {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(37, 99, 235, 0.22);
  background:
    radial-gradient(circle, rgba(45, 212, 191, 0.46) 0 4px, transparent 5px),
    radial-gradient(circle, rgba(37, 99, 235, 0.16), transparent 70%);
  content: "";
  animation: quietFloat 4.8s ease-in-out infinite;
}

.hotspot-column:nth-child(2)::before {
  background:
    radial-gradient(circle, rgba(245, 158, 11, 0.52) 0 4px, transparent 5px),
    radial-gradient(circle, rgba(111, 92, 194, 0.14), transparent 70%);
}

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

.hotspot-rank-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  max-height: 520px;
  overflow: auto;
  padding-right: 4px;
}

.hotspot-rank-card {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  padding: 12px;
  border: 1px solid #e0e8f0;
  border-radius: 10px;
  background: linear-gradient(180deg, #fbfdff, #ffffff);
}

.hotspot-rank-card:hover {
  transform: translateY(-2px);
  border-color: #b8d3f5;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.hotspot-rank-card > span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 8px;
  background: #eef5ff;
  color: #2563eb;
}

.hotspot-rank-card strong {
  color: #111827;
}

.hotspot-rank-card p,
.hotspot-rank-card small,
.feedback-card p {
  margin: 5px 0 0;
  color: #5d6b7c;
  font-size: 13px;
  line-height: 1.45;
}

.hotspot-rank-card a {
  align-self: center;
  color: #1457b8;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

.customs-status-panel,
.feedback-panel {
  width: 100%;
}

.customs-manual-panel {
  margin-top: 14px;
}

.feedback-form {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feedback-result,
.feedback-list {
  display: grid;
  gap: 10px;
}

.feedback-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
  padding: 14px;
  border: 1px solid #dbe5ef;
  border-radius: 10px;
  background: #fbfdff;
}

.feedback-card strong {
  display: block;
  color: #102033;
  line-height: 1.45;
}

.feedback-card.muted {
  display: grid;
  background: #f8fafc;
}

.query-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.28);
  backdrop-filter: blur(6px);
}

.query-overlay[hidden] {
  display: none !important;
}

.query-loader-card {
  width: min(420px, 100%);
  padding: 24px;
  border: 1px solid rgba(219, 229, 239, 0.92);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.22);
  text-align: center;
}

.query-loader-card h2 {
  margin: 6px 0;
  color: #102033;
}

.query-loader-card p:not(.eyebrow) {
  margin: 0;
  color: #5d6b7c;
  line-height: 1.55;
}

.query-loader-visual {
  position: relative;
  width: 86px;
  height: 86px;
  margin: 0 auto 12px;
  border: 1px solid #dbeafe;
  border-radius: 50%;
  background:
    repeating-radial-gradient(circle, transparent 0 14px, rgba(37, 99, 235, 0.13) 15px 16px),
    radial-gradient(circle, rgba(45, 212, 191, 0.16), rgba(37, 99, 235, 0.05));
}

.query-loader-visual::before {
  position: absolute;
  inset: 50% 50% auto auto;
  width: 40px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #2563eb, transparent);
  content: "";
  transform-origin: left center;
  animation: radarSweep 1.4s linear infinite;
}

.query-loader-visual span,
.query-loader-visual i {
  position: absolute;
  border-radius: 50%;
  background: #2dd4bf;
  box-shadow: 0 0 0 8px rgba(45, 212, 191, 0.12);
}

.query-loader-visual span {
  left: 52%;
  top: 32%;
  width: 10px;
  height: 10px;
}

.query-loader-visual i {
  left: 30%;
  top: 64%;
  width: 8px;
  height: 8px;
  background: #f59e0b;
  box-shadow: 0 0 0 7px rgba(245, 158, 11, 0.12);
}

body[data-active-module="customs"] #customs,
body[data-active-module="feedback"] #feedback {
  width: 100%;
}

body[data-active-module="customs"] #customs {
  border-top-color: #0f766e;
}

body[data-active-module="feedback"] #feedback {
  border-top-color: #be3b5b;
}

body[data-active-module="matrix"] .requirement-card {
  gap: 14px;
}

body[data-active-module="matrix"] .requirement-section-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

/* Executive workbench polish: unified density, symmetry and input rhythm. */
main {
  max-width: 1520px;
  margin: 0 auto;
}

body[data-active-module] .workspace-title,
body[data-active-module] .topbar,
body[data-active-module] .panel,
body[data-active-module] .module-launcher,
body[data-active-module] .query-card,
body[data-active-module] .risk-card,
body[data-active-module] .candidate-card,
body[data-active-module] .decision-card,
body[data-active-module] .source-probe-card,
body[data-active-module] .requirement-card,
body[data-active-module] .summary-box,
body[data-active-module] .empty-state {
  border-color: #d7e0ea;
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.055);
}

body[data-active-module] .panel {
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(248, 251, 255, 0.72), rgba(255, 255, 255, 0) 116px),
    #ffffff;
}

body[data-active-module] .workspace-title {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 360px);
  align-items: center;
  padding: 14px 16px;
  background:
    linear-gradient(90deg, rgba(37, 99, 235, 0.08), rgba(15, 118, 110, 0.045) 52%, rgba(255, 255, 255, 0)),
    #ffffff;
}

body[data-active-module] .workspace-title h2 {
  font-size: 24px;
  line-height: 1.18;
}

body[data-active-module] .workspace-title span {
  max-width: none;
  text-align: right;
}

.panel-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
}

.panel-heading h2 {
  font-size: 20px;
  line-height: 1.2;
}

.field-grid,
.query-card,
.requirement-form,
.tariff-check-form,
.policy-filter-form,
.customs-query,
.alert-watch-form,
.feedback-form,
.issue-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  align-items: end;
}

.field-grid.shipment-fields {
  grid-template-columns: repeat(3, minmax(220px, 1fr));
}

.field-grid.five-fields {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

label {
  min-width: 0;
  color: #253344;
  font-size: 13px;
  font-weight: 760;
}

input,
select,
textarea {
  min-height: 44px;
  padding: 10px 12px;
  border-color: #cfd8e3;
  border-radius: 8px;
  background: #fbfdff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

textarea {
  min-height: 92px;
}

input::placeholder,
textarea::placeholder {
  color: #93a3b5;
}

.query-card {
  padding: 14px;
  background:
    linear-gradient(180deg, rgba(248, 250, 252, 0.95), rgba(255, 255, 255, 0.92)),
    #ffffff;
}

.query-card > button,
.tariff-check-form > button,
.requirement-form > button,
.policy-filter-form > button {
  min-height: 44px;
  align-self: end;
}

.action-row {
  justify-content: flex-start;
  padding-top: 2px;
}

.primary-button,
.secondary-button,
.ghost-button,
.status-button {
  min-height: 40px;
  border-radius: 8px;
}

.module-tabs {
  padding: 4px;
  border-radius: 8px;
  background: #eef4fb;
}

.module-tab {
  border-radius: 6px;
}

.hs-classification-grid.active {
  grid-template-columns: minmax(0, 1fr) minmax(380px, 0.74fr);
  gap: 16px;
}

body[data-active-module="hs"] .classify-form .field-grid {
  grid-template-columns: repeat(2, minmax(220px, 1fr));
}

.result-panel {
  align-content: start;
}

.result-panel .empty-state {
  min-height: 96px;
  padding: 18px;
}

.result-state {
  align-items: stretch;
  padding: 12px;
  border: 1px solid #e0e8f1;
  border-radius: 8px;
  background: #fbfdff;
}

.score-ring {
  width: 88px;
  height: 88px;
  flex-basis: 88px;
  border-width: 7px;
}

.score-ring span {
  max-width: 66px;
  font-size: 15px;
  line-height: 1.12;
}

.score-ring[data-level="high"] {
  background:
    linear-gradient(#ffffff, #ffffff) padding-box,
    conic-gradient(from 0deg, #0f766e, #22c55e, #2563eb, #0f766e) border-box;
}

.score-ring[data-level="medium"] {
  background:
    linear-gradient(#ffffff, #ffffff) padding-box,
    conic-gradient(from 0deg, #b7791f, #2563eb, #f59e0b, #b7791f) border-box;
}

.score-ring[data-level="low"],
.score-ring[data-level="block"] {
  background:
    linear-gradient(#ffffff, #ffffff) padding-box,
    conic-gradient(from 0deg, #be3b5b, #f97316, #2563eb, #be3b5b) border-box;
}

.recommendation-copy h3 {
  font-size: 24px;
}

.candidate-card,
.risk-box,
.classification-proof,
.tariff-mini,
.decision-card,
.risk-card,
.source-probe-card,
.requirement-card {
  border-radius: 8px;
}

.candidate-card header,
.tariff-headline {
  align-items: flex-start;
}

.section-note {
  max-width: none;
  padding: 10px 12px;
}

.tracking-layout {
  grid-template-columns: minmax(0, 1fr) minmax(380px, 0.72fr);
  gap: 16px;
}

.tracking-cards,
.manual-field-grid,
.decision-result-grid,
.tariff-check-grid,
.requirement-summary-grid,
.requirement-section-grid,
.dg-result-grid,
.route-risk-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
}

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

.port-risk-grid .operation-guide-card,
.port-risk-grid .articles-card {
  grid-column: 1 / -1;
}

.risk-card {
  min-height: 0;
  padding: 14px;
}

.risk-card strong {
  font-size: 17px;
  line-height: 1.25;
}

.operation-guide-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body[data-active-module="matrix"] #matrix {
  max-width: none;
}

body[data-active-module="matrix"] .requirement-form,
body[data-active-module="hs"] .tariff-check-form {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.ccc-decision-card {
  display: grid;
  gap: 12px;
}

.ccc-decision-card > span {
  color: #2563eb;
  font-size: 12px;
  font-weight: 900;
}

.ccc-decision-card > strong {
  font-size: 22px;
  line-height: 1.22;
}

.ccc-verdict-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  background: #f8fbff;
}

.ccc-verdict-row em {
  min-width: 82px;
  padding: 5px 9px;
  border-radius: 999px;
  background: #eaf2ff;
  color: #1d4ed8;
  font-style: normal;
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.ccc-verdict-row small {
  color: #5b6b7d;
  line-height: 1.45;
}

.ccc-material-block {
  padding: 12px;
  border: 1px solid #e1e8f0;
  border-radius: 8px;
  background: #ffffff;
}

.ccc-material-block b {
  display: block;
  margin-bottom: 8px;
}

.ccc-material-block ul {
  columns: 2;
  margin: 0;
  padding-left: 18px;
}

.ccc-quick-guide,
.ccc-input-grid label,
.operation-guide-list section {
  border-radius: 8px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

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

  .sidebar {
    position: relative;
    height: auto;
  }

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

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

  .nav-home,
  .nav-group {
    min-width: 0;
  }

  .kpi-grid,
  .starter-grid,
  .audience-grid,
  .module-launch-grid,
  .module-grid,
  .ops-grid,
  .checklist-grid,
  .integration-grid,
  .shipping-source-grid,
  .history-list,
  .api-option-grid,
  .code-desk-grid,
  .policy-live-grid,
  .trend-insight-grid,
  .trend-grid,
  .hotspot-strip,
  .route-risk-grid,
  .process-flow,
  .term-grid,
  .glossary-grid,
  .port-risk-grid,
  .requirement-summary-grid,
  .requirement-section-grid,
  .field-grid.five-fields,
  .field-grid.shipment-fields,
  .customs-link-grid,
  .source-summary-grid,
  .decision-result-grid,
  .tariff-check-grid,
  .tariff-component-grid,
  .policy-brief-grid,
  .policy-structured-grid,
  .required-field-grid,
  .dg-result-grid,
  .manual-field-grid,
  .audience-note-grid,
  .hs-case-strip,
  .customs-review-slip,
  .hs-suite-summary,
  .inline-search,
  .policy-filter-form,
  .tariff-check-form,
  .alert-watch-form,
  .requirement-form,
  .compact-elements,
  .smart-param-grid,
  .smart-fill-grid,
  .ccc-input-grid,
  .operation-guide-list,
  .duty-formula-panel,
  .hotspot-rank-grid,
	  .air-result-grid,
	  .air-knowledge-grid,
	  .air-checklist-grid,
	  .air-guide-result-grid,
	  .air-operation-grid,
  .code-lookup-result,
  .freight-result-grid,
  .load-calc-form .field-grid,
  #seaSpecialForm,
  .sea-load-panel .freight-result-grid,
  .air-calc-panel .freight-result-grid,
  .sea-special-panel .freight-result-grid,
  .failure-summary-grid,
  .feedback-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .two-column,
  .tracking-layout,
  .learning-hero,
  .air-hero,
  .air-guide-hero,
  .dashboard-command {
    grid-template-columns: 1fr;
  }

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

  .process-flow article::after {
    display: none;
  }

  .workspace-title {
    display: grid;
  }

  .workspace-title span {
    max-width: none;
    text-align: left;
  }

  .modal-result-summary,
  .classification-tree,
  .credibility-strip,
  .dashboard-source-board,
  .hs-classification-grid.active,
  .result-dialog .tariff-check-grid {
    grid-template-columns: 1fr;
  }

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

  #battery .field-grid,
  body[data-active-module="port-risk"] #port-risk .field-grid,
  body[data-active-module="port-risk"] .port-risk-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .glossary-toolbar,
  .glossary-detail-grid,
  .modal-refill-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .app-shell {
    gap: 10px;
    padding: 10px;
  }

  .sidebar {
    position: static;
    height: auto;
    max-height: none;
    padding: 10px 12px;
    border-radius: 16px;
  }

  .brand {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: 0;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 10px;
  }

  .brand span,
  .sidebar .nav-groups,
  .access-panel {
    display: none;
  }

  .mobile-quick-nav {
    position: sticky;
    top: 58px;
    z-index: 45;
    display: flex;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    gap: 6px;
    padding: 7px;
    border: 1px solid rgba(148, 163, 184, 0.26);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 20px 54px rgba(15, 23, 42, 0.2);
    backdrop-filter: blur(14px);
    scrollbar-width: none;
  }

  .mobile-quick-nav::-webkit-scrollbar {
    display: none;
  }

  .mobile-quick-nav a {
    display: grid;
    flex: 0 0 68px;
    min-width: 0;
    min-height: 52px;
    place-items: center;
    align-content: center;
    gap: 4px;
    padding: 6px 2px;
    border-radius: 13px;
    color: #526174;
    font-size: 10px;
    font-weight: 900;
    text-align: center;
    text-decoration: none;
    transition: background 0.16s ease, color 0.16s ease, transform 0.16s ease;
  }

  .mobile-quick-nav a.active,
  .mobile-quick-nav a:hover {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.13), rgba(20, 184, 166, 0.14));
    color: #0f5fc9;
    transform: translateY(-1px);
  }

  .mobile-quick-nav .nav-icon {
    width: 24px;
    height: 24px;
    flex-basis: 24px;
  }

  main {
    padding: 0 0 10px;
  }

  .topbar,
  .section-heading,
  .panel-heading {
    display: grid;
  }

  .release-panel {
    width: 100%;
  }

  .nav-groups {
    grid-template-columns: 1fr;
  }

  .kpi-grid,
  .starter-grid,
  .audience-grid,
  .module-launch-grid,
  .module-grid,
  .ops-grid,
  .checklist-grid,
  .integration-grid,
  .shipping-source-grid,
  .history-list,
  .api-option-grid,
  .policy-live-grid,
  .trend-insight-grid,
  .trend-grid,
  .hotspot-strip,
  .route-risk-grid,
  .process-flow,
  .term-grid,
  .glossary-grid,
  .port-risk-grid,
  .requirement-summary-grid,
  .requirement-section-grid,
  .field-grid.five-fields,
  .field-grid.shipment-fields,
  .customs-link-grid,
  .source-summary-grid,
  .decision-result-grid,
  .tariff-check-grid,
  .tariff-component-grid,
  .policy-brief-grid,
  .required-field-grid,
  .dg-result-grid,
  .manual-field-grid,
  .audience-note-grid,
  .hs-case-strip,
  .customs-review-slip,
  .hs-suite-summary,
  .tracking-cards,
  .field-grid,
  .issue-form,
  .inline-search,
  .policy-filter-form,
  .tariff-check-form,
  .alert-watch-form,
  .requirement-form,
  .code-desk-grid,
  .policy-structured-grid,
  .code-lookup-result,
  .freight-result-grid,
  .compact-tool-form,
  #seaSpecialForm,
  .load-calc-form .field-grid,
  .compact-elements,
  .smart-param-grid,
  .hotspot-dual-board,
  .smart-fill-grid,
  .duty-formula-panel,
  .hotspot-rank-grid,
	  .air-result-grid,
	  .air-knowledge-grid,
	  .air-checklist-grid,
	  .air-guide-result-grid,
	  .air-operation-grid,
  .failure-summary-grid,
  .feedback-form {
    grid-template-columns: 1fr;
  }

  .failure-event-card {
    grid-template-columns: 1fr;
  }

  .air-result-card.primary {
    grid-column: auto;
  }

  .tariff-check-form .full-span {
    grid-column: auto;
  }

  body[data-active-module="hs"] .classify-form .field-grid {
    grid-template-columns: 1fr;
  }

  body[data-active-module="battery"] #battery.two-column,
  #battery .field-grid,
  body[data-active-module="port-risk"] #port-risk .field-grid,
  body[data-active-module="port-risk"] .port-risk-grid {
    grid-template-columns: 1fr;
  }

  #battery .result-panel {
    position: static;
  }

  .port-risk-grid .articles-card {
    grid-column: auto;
  }

  h1 {
    font-size: 26px;
  }

  .release-panel {
    width: 100%;
  }

  .map-chip.origin,
  .map-chip.destination {
    left: 18px;
    right: auto;
  }

  .map-chip.destination {
    top: 18px;
  }

  .map-chip.origin {
    bottom: 18px;
  }

  .result-dialog {
    padding: 10px;
  }

  .result-dialog-card {
    max-height: 90vh;
  }

  .result-dialog-card > header,
  .result-dialog-body {
    padding: 14px;
  }

	  .learning-detail-hero,
	  .learning-detail-grid,
	  .glossary-toolbar,
  .glossary-detail-grid,
  .modal-refill-grid,
  .command-steps,
  .command-radar,
  .ccc-verdict-row,
	  .operation-guide-list {
	    grid-template-columns: 1fr;
	  }

	  .hotspot-actions {
	    justify-content: flex-start;
	    flex-wrap: wrap;
	  }

  .ccc-material-block ul {
    columns: 1;
  }

  .radar-visual {
    justify-self: center;
  }

  .modal-candidate {
    display: grid;
  }

  body {
    overflow-x: hidden;
  }

  .app-shell {
    padding: 8px;
    gap: 8px;
  }

  .sidebar {
    position: sticky;
    top: 0;
    z-index: 42;
    display: flex;
    align-items: center;
    min-height: 52px;
    padding: 8px 10px;
    border-radius: 14px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  }

  .brand {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
    gap: 8px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    font-size: 13px;
  }

  .brand strong {
    overflow: hidden;
    max-width: calc(100vw - 84px);
    font-size: 14px;
    line-height: 1.2;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .mobile-quick-nav {
    top: 58px;
    grid-template-columns: none;
    gap: 5px;
    padding: 6px;
    border-radius: 16px;
  }

  .mobile-quick-nav a::before {
    display: none !important;
    content: none !important;
  }

  .mobile-quick-nav a {
    flex: 0 0 66px;
    min-height: 48px;
    padding: 5px 1px;
    border-radius: 12px;
    font-size: 10px;
    line-height: 1.1;
  }

  .mobile-quick-nav .nav-icon {
    width: 22px;
    height: 22px;
    flex-basis: 22px;
  }

  main {
    gap: 10px;
  }

  .topbar,
  .panel,
  .query-card,
  .module-launcher,
  .kpi-card,
  .candidate-card,
  .decision-card,
  .risk-card,
  .alert-card,
  .summary-box,
  .requirement-card,
  .source-probe-card,
  .air-result-card,
  .air-guide-card {
    padding: 12px;
    border-radius: 12px;
  }

  .topbar {
    gap: 12px;
  }

  .hero-main h1,
  .workspace-title h2 {
    font-size: 20px;
    line-height: 1.2;
  }

  .hero-subtitle,
  .hero-copy,
  .workspace-title span,
  .section-note {
    font-size: 12px;
    line-height: 1.45;
  }

  .workspace-title {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    justify-content: stretch;
    gap: 6px;
    margin-bottom: 10px;
    padding: 12px;
    border-left-width: 4px;
    border-radius: 12px;
  }

  .workspace-title > div,
  .workspace-title > span {
    min-width: 0;
    width: 100%;
  }

  .workspace-title .eyebrow,
  .workspace-title h2,
  .workspace-title span {
    writing-mode: horizontal-tb;
    word-break: normal;
    overflow-wrap: anywhere;
    text-align: left;
  }

  .workspace-title .eyebrow {
    display: block;
    white-space: normal;
  }

  .freight-result-card.wide {
    grid-column: auto;
  }

  .module-tabs {
    flex-wrap: nowrap;
    gap: 6px;
    overflow-x: auto;
    margin-bottom: 10px;
    padding: 4px;
    border-radius: 12px;
    scrollbar-width: none;
  }

  .module-tabs::-webkit-scrollbar {
    display: none;
  }

  .module-tab {
    flex: 0 0 auto;
    min-height: 32px;
    padding: 6px 10px;
    white-space: nowrap;
  }

  label,
  .field-grid label {
    gap: 5px;
    font-size: 12px;
  }

  input,
  select,
  textarea {
    min-height: 40px;
    border-radius: 10px;
    font-size: 15px;
  }

  textarea {
    min-height: 86px;
  }

  .action-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 12px;
  }

  .primary-button,
  .secondary-button,
  .ghost-button {
    width: 100%;
    min-height: 42px;
    border-radius: 11px;
  }

  .hs-case-strip {
    padding: 10px;
    gap: 8px;
    align-items: stretch;
  }

  .hs-case-strip span {
    font-size: 12px;
  }

  .result-state {
    display: grid;
    gap: 10px;
    margin-bottom: 12px;
  }

  .score-ring {
    display: flex;
    width: 100%;
    height: auto;
    min-height: 58px;
    justify-content: space-between;
    padding: 11px 12px;
    border: 1px solid #d8e6f2;
    border-radius: 12px;
    background: linear-gradient(135deg, #f7fbff, #f6fbf7);
  }

  .score-ring span {
    font-size: 19px;
  }

  .recommendation-copy h3 {
    font-size: 24px;
    line-height: 1.15;
  }

  .candidate-card header,
  .modal-result-summary,
  .customs-review-slip,
  .tariff-check-grid,
  .required-field-grid,
  .duty-formula-panel,
  .air-guide-result-grid {
    grid-template-columns: 1fr;
  }

  .candidate-card header {
    gap: 8px;
  }

  .source-chip-grid {
    gap: 7px;
  }

  .source-chip-grid a {
    min-height: 34px;
    justify-content: center;
    text-align: center;
  }

  .route-map,
  .vessel-map,
  .vessel-public-frame {
    min-height: 320px;
    border-radius: 12px;
  }

  .air-hero,
  .air-guide-hero,
  .learning-hero,
  .dashboard-command {
    gap: 10px;
  }

  .air-hero-visual,
  .air-guide-animation,
  .learning-visual {
    min-height: 150px;
  }

  .result-dialog {
    align-items: flex-end;
    padding: 0;
  }

  .result-dialog-card {
    width: 100%;
    max-height: 88dvh;
    border-radius: 18px 18px 0 0;
  }

  .result-dialog-card > header {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #fff;
  }

  .result-dialog-card h2 {
    font-size: 19px;
    line-height: 1.2;
  }

  .result-dialog-body {
    padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  }
}
