: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);
}

.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));
}

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;
}

.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;
}

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

.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;
}

.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;
}

.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;
}

.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;
}

.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;
}

.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 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;
}

.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;
}

.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(3, minmax(0, 1fr));
  gap: 12px;
}

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

.requirement-summary-grid > div,
.requirement-section {
  padding: 13px;
  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: 14px;
  border: 1px solid #b8d8f5;
  border-radius: 8px;
  background: #f5fbff;
}

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

.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="#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;
}

.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;
}

.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;
}

.decision-card {
  min-height: 260px;
  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%);
}

.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;
}

@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,
  .module-grid,
  .ops-grid,
  .checklist-grid,
  .integration-grid,
  .shipping-source-grid,
  .history-list,
  .api-option-grid,
  .policy-live-grid,
  .trend-insight-grid,
  .trend-grid,
  .port-risk-grid,
  .requirement-summary-grid,
  .requirement-section-grid,
  .field-grid.five-fields,
  .customs-link-grid,
  .source-summary-grid,
  .decision-result-grid,
  .inline-search,
  .policy-filter-form,
  .alert-watch-form,
  .requirement-form,
  .compact-elements {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .two-column,
  .tracking-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .app-shell {
    padding: 12px;
  }

  main {
    padding: 0;
  }

  .topbar,
  .section-heading,
  .panel-heading {
    display: grid;
  }

  .release-panel {
    width: 100%;
  }

  .nav-groups {
    grid-template-columns: 1fr;
  }

  .kpi-grid,
  .starter-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,
  .port-risk-grid,
  .requirement-summary-grid,
  .requirement-section-grid,
  .field-grid.five-fields,
  .customs-link-grid,
  .source-summary-grid,
  .decision-result-grid,
  .tracking-cards,
  .field-grid,
  .issue-form,
  .inline-search,
  .policy-filter-form,
  .alert-watch-form,
  .requirement-form,
  .compact-elements {
    grid-template-columns: 1fr;
  }

  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;
  }
}
