﻿:root {
  --ink-navy: #071a2b;
  --deep-navy: #0b3158;
  --signal-blue: #176bff;
  --blue-hover: #0d56d9;
  --sky-surface: #eef5ff;
  --warm-white: #f8fafc;
  --pure-white: #ffffff;
  --main-text: #0f172a;
  --secondary-text: #52606d;
  --border: #dce3ea;
  --safety-orange: #ff8a3d;
  --success: #16855b;
  --warning: #d97706;
  --danger: #dc3545;
  --radius: 8px;
  --shadow: 0 12px 32px rgba(7, 26, 43, 0.08);
}

* { box-sizing: border-box; }

html {
  color-scheme: light;
  font-family: Inter, Pretendard, "Noto Sans KR", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--main-text);
  background: var(--warm-white);
  font-size: 16px;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid rgba(23, 107, 255, 0.32);
  outline-offset: 3px;
}

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

.rail {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  padding: 36px 28px;
  background: var(--pure-white);
  border-right: 1px solid var(--border);
}

.brand {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 24px;
}

.brand strong {
  color: var(--ink-navy);
  font-size: 42px;
  line-height: 1;
  letter-spacing: 0;
}

.brand span {
  color: var(--secondary-text);
  font-size: 15px;
}

.rail-copy {
  margin: 22px 0 28px;
  color: var(--main-text);
  font-weight: 650;
}

.rail-section {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}

.rail-title {
  margin: 0 0 12px;
  color: var(--deep-navy);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

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

.rail-list a,
.feature-list li {
  color: var(--secondary-text);
  font-size: 14px;
}

.rail-list a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 5px 0;
}

.rail-list a:hover { color: var(--signal-blue); }

.dot {
  width: 17px;
  height: 17px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(23, 107, 255, 0.38);
  border-radius: 5px;
  color: var(--signal-blue);
  font-size: 11px;
}

.palette {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.swatch {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: 1px solid var(--border);
}

.main {
  min-width: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 28px;
  background: rgba(248, 250, 252, 0.92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px);
}

.topbar nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.topbar a {
  color: var(--secondary-text);
  font-size: 14px;
  font-weight: 650;
}

.topbar a:hover,
.topbar a[aria-current="page"] {
  color: var(--signal-blue);
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-btn,
.menu-btn {
  min-height: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--pure-white);
  color: var(--deep-navy);
  font-weight: 750;
}

.icon-btn {
  padding: 0 12px;
}

.menu-btn {
  display: none;
  width: 42px;
}

.page {
  width: min(100%, 1360px);
  margin: 0 auto;
  padding: 28px;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 330px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 34px;
  align-items: center;
  padding: 46px 48px;
  background:
    radial-gradient(circle at 82% 18%, rgba(23, 107, 255, 0.20), transparent 27%),
    linear-gradient(135deg, #ffffff 0%, #eef5ff 58%, #e8f1ff 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--signal-blue);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink-navy);
  letter-spacing: 0;
}

h1 {
  max-width: 680px;
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1.08;
}

.lead {
  max-width: 670px;
  margin: 16px 0 0;
  color: var(--secondary-text);
  font-size: 19px;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(100%, 620px);
  min-height: 56px;
  margin-top: 28px;
  padding: 8px;
  background: var(--pure-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.search-box input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 0 12px;
  color: var(--main-text);
}

.primary-btn,
.secondary-btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius);
  font-weight: 800;
}

.primary-btn {
  border: 1px solid var(--signal-blue);
  background: var(--signal-blue);
  color: #fff;
  padding: 0 18px;
}

.primary-btn:hover { background: var(--blue-hover); }

.secondary-btn {
  border: 1px solid var(--border);
  background: var(--pure-white);
  color: var(--deep-navy);
  padding: 0 16px;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 4px 11px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255,255,255,0.72);
  color: var(--deep-navy);
  font-size: 13px;
  font-weight: 700;
}

.route-map {
  position: relative;
  min-height: 260px;
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(23,107,255,0.13) 1px, transparent 1px),
    linear-gradient(0deg, rgba(23,107,255,0.13) 1px, transparent 1px),
    linear-gradient(145deg, #f7fbff, #d9eaff);
  background-size: 28px 28px, 28px 28px, auto;
  border: 1px solid rgba(23,107,255,0.18);
}

.route-map::before {
  content: "";
  position: absolute;
  inset: 48px 36px;
  border-top: 2px dashed rgba(23,107,255,0.42);
  border-radius: 50%;
  transform: rotate(-12deg);
}

.ship-card {
  position: absolute;
  right: 28px;
  bottom: 28px;
  width: 210px;
  padding: 18px;
  background: rgba(255,255,255,0.88);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.cargo-mark {
  width: 100%;
  height: 76px;
  margin-top: 10px;
  background:
    linear-gradient(90deg, #176bff 0 28%, #0b3158 28% 56%, #ff8a3d 56% 75%, #52606d 75% 100%);
  clip-path: polygon(0 36%, 72% 36%, 84% 54%, 100% 54%, 90% 78%, 10% 78%);
  opacity: 0.88;
}

.node {
  position: absolute;
  width: 12px;
  height: 12px;
  border: 3px solid var(--pure-white);
  border-radius: 50%;
  background: var(--signal-blue);
  box-shadow: 0 0 0 4px rgba(23,107,255,0.14);
}

.node.one { left: 18%; top: 38%; }
.node.two { left: 48%; top: 26%; }
.node.three { right: 20%; top: 45%; }

.section {
  margin-top: 28px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.section-head p {
  margin: 4px 0 0;
  color: var(--secondary-text);
}

.grid {
  display: grid;
  gap: 14px;
}

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

.card,
.tool-card,
.panel {
  background: var(--pure-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 4px 18px rgba(7, 26, 43, 0.04);
}

.card,
.tool-card {
  padding: 18px;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.card:hover,
.tool-card:hover {
  transform: translateY(-3px);
  border-color: rgba(23,107,255,0.45);
  box-shadow: var(--shadow);
}

.card h3,
.tool-card h3 { font-size: 17px; }

.card p,
.tool-card p,
.muted {
  color: var(--secondary-text);
}

.icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  border-radius: var(--radius);
  color: var(--signal-blue);
  background: var(--sky-surface);
  font-weight: 900;
}

.snapshot {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  background: linear-gradient(135deg, var(--ink-navy), #0b3158);
  color: #fff;
  border-radius: var(--radius);
  overflow: hidden;
}

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

.snapshot th,
.snapshot td {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.11);
  text-align: left;
  font-size: 14px;
}

.snapshot th { color: rgba(255,255,255,0.66); font-weight: 700; }

.world-panel {
  min-height: 210px;
  background:
    radial-gradient(circle at 28% 45%, rgba(255,255,255,0.52) 0 2px, transparent 3px),
    radial-gradient(circle at 64% 34%, rgba(255,255,255,0.52) 0 2px, transparent 3px),
    radial-gradient(circle at 72% 62%, rgba(255,138,61,0.8) 0 3px, transparent 4px),
    linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
}

.ad-slot {
  padding: 16px;
  border: 1px dashed #b8c7d9;
  border-radius: var(--radius);
  background: #f5f8fc;
  color: var(--secondary-text);
  text-align: center;
  font-size: 13px;
}

.footer {
  margin-top: 40px;
  padding: 34px 28px;
  background: var(--ink-navy);
  color: #fff;
}

.footer-inner {
  width: min(100%, 1360px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 28px;
}

.footer a,
.footer p { color: rgba(255,255,255,0.78); }

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

.footer-links h3 {
  color: #fff;
  font-size: 13px;
  text-transform: uppercase;
}

.footer-links a {
  display: block;
  margin-top: 7px;
  font-size: 14px;
}

.newsletter {
  display: grid;
  gap: 8px;
}

.newsletter input {
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.08);
  color: #fff;
}

.page-title {
  padding: 34px 0 16px;
}

.page-title h1 { font-size: clamp(32px, 4vw, 46px); }

.tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 16px 0;
}

.tab {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 999px;
  padding: 8px 14px;
  color: var(--secondary-text);
  font-weight: 750;
}

.tab.is-active {
  color: var(--signal-blue);
  border-color: rgba(23,107,255,0.45);
  background: var(--sky-surface);
}

.results-list {
  display: grid;
  gap: 12px;
}

.result-item {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
}

.kicker {
  color: var(--signal-blue);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.tool-category {
  padding: 22px;
}

.tool-category h2 {
  margin-bottom: 14px;
  font-size: 18px;
}

.status {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 2px 9px;
  border-radius: 999px;
  background: #edf4ff;
  color: var(--signal-blue);
  font-size: 12px;
  font-weight: 800;
}

.status.soon {
  background: #fff6ed;
  color: #b85c16;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  align-items: end;
}

.tracking-form-grid {
  grid-template-columns: minmax(0, 1fr) 220px auto;
}

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

.field label {
  color: var(--deep-navy);
  font-size: 13px;
  font-weight: 800;
}

.field input,
.field select {
  min-height: 44px;
  width: 100%;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
}

.calculator {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 18px;
}

.panel {
  padding: 22px;
}

.cargo-rows {
  display: grid;
  gap: 12px;
}

.summary-number {
  display: block;
  color: var(--ink-navy);
  font-size: 42px;
  font-weight: 850;
  line-height: 1;
}

.result-table {
  width: 100%;
  margin-top: 16px;
  border-collapse: collapse;
}

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

.notice {
  padding: 12px 14px;
  border-left: 3px solid var(--safety-orange);
  background: #fff8f1;
  color: #774112;
  border-radius: 0 var(--radius) var(--radius) 0;
}

.track-panel {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 18px;
}

.carrier-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.term-grid {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 18px;
}

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

.term-button {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  color: var(--deep-navy);
  text-align: left;
  font-weight: 800;
}

.term-button[aria-pressed="true"] {
  border-color: var(--signal-blue);
  background: var(--sky-surface);
}

.empty-state {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
}

.mobile-logo {
  display: none;
  color: var(--ink-navy);
  font-weight: 900;
  font-size: 20px;
}

@media (max-width: 1100px) {
  .shell { grid-template-columns: 1fr; }
  .rail { display: none; }
  .mobile-logo { display: block; }
  .menu-btn { display: inline-grid; place-items: center; }
  .topbar nav {
    position: fixed;
    inset: 58px 16px auto;
    display: none;
    padding: 16px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }
  .topbar nav.is-open {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hero,
  .snapshot,
  .calculator,
  .track-panel,
  .term-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }
  .grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .topbar { padding: 0 14px; }
  .page { padding: 16px; }
  .hero { padding: 28px 20px; }
  .search-box { align-items: stretch; flex-direction: column; }
  .search-box input,
  .search-box button { width: 100%; }
  .grid.cols-4,
  .grid.cols-3,
  .grid.cols-2 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr 1fr; }
  .tracking-form-grid { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* Global Trade Workspace home */
.workspace-shell {
  grid-template-columns: 236px minmax(0, 1fr);
}

.workspace-rail {
  padding: 28px 18px;
}

.compact-brand {
  margin-bottom: 22px;
}

.compact-brand strong {
  font-size: 32px;
  color: #0b3b82;
}

.compact-brand span {
  color: var(--deep-navy);
  font-size: 13px;
  font-weight: 750;
}

.workspace-nav {
  display: grid;
  gap: 18px;
}

.workspace-nav section {
  display: grid;
  gap: 7px;
}

.workspace-nav h2 {
  margin: 0 0 2px;
  color: var(--secondary-text);
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
}

.workspace-nav a {
  min-height: 26px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 3px 8px;
  border-radius: 6px;
  color: var(--deep-navy);
  font-size: 14px;
  font-weight: 650;
}

.workspace-nav a:hover,
.workspace-nav a.is-active {
  background: var(--sky-surface);
  color: var(--signal-blue);
}

.nav-home {
  min-height: 36px !important;
  margin-bottom: 2px;
  font-weight: 850 !important;
}

.nav-ico {
  color: var(--signal-blue);
  font-weight: 900;
}

.upgrade-card {
  margin-top: 30px;
  padding: 18px;
  border: 1px solid #cfe0f5;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #f8fbff, #eaf4ff);
}

.upgrade-card h3 {
  font-size: 17px;
}

.upgrade-card p {
  margin: 6px 0 14px;
  color: var(--secondary-text);
  font-size: 14px;
}

.workspace-topbar {
  height: 70px;
  gap: 16px;
}

.top-search {
  flex: 1;
  max-width: 940px;
  display: flex;
  min-height: 48px;
  margin: 0;
  background: var(--pure-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(7, 26, 43, 0.05);
}

.top-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  padding: 0 18px;
  outline: 0;
}

.top-search .primary-btn {
  min-height: 48px;
  border-radius: 0;
  padding: 0 28px;
}

.workspace-page {
  width: min(100%, 1680px);
  padding: 20px;
}

.workspace-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 18px;
  align-items: start;
}

.workspace-main {
  min-width: 0;
}

.workspace-aside {
  display: grid;
  gap: 18px;
  position: sticky;
  top: 90px;
}

.trade-hero {
  position: relative;
  min-height: 242px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.52fr);
  gap: 26px;
  align-items: center;
  overflow: hidden;
  padding: 30px 42px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(7, 26, 43, 0.86) 0%, rgba(7, 26, 43, 0.70) 42%, rgba(7, 26, 43, 0.24) 100%),
    url("trade-hero-port.jpg") center / cover no-repeat;
  box-shadow: 0 16px 34px rgba(7, 26, 43, 0.12);
}

.trade-hero h1,
.trade-hero p {
  color: #fff;
}

.trade-hero h1 {
  max-width: 540px;
  font-size: clamp(36px, 4.6vw, 56px);
}

.trade-hero p {
  margin: 10px 0 26px;
  font-size: 20px;
  font-weight: 700;
}

.trade-hero .chip {
  background: rgba(255, 255, 255, 0.78);
  color: #071a2b;
  border-color: rgba(255, 255, 255, 0.48);
}

.hero-kicker {
  align-self: center;
  color: rgba(255, 255, 255, 0.92);
}

.hero-ad {
  justify-self: end;
  background: rgba(255, 255, 255, 0.78) !important;
  backdrop-filter: blur(8px);
}

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

.span-2 { grid-column: span 2; }
.span-3 { grid-column: span 3; }
.span-4 { grid-column: span 4; }
.span-5 { grid-column: span 5; }
.span-6 { grid-column: span 6; }

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

.tracking-actions a,
.quick-list a,
.side-card > a,
.tool-icons a,
.news-item {
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: var(--radius);
}

.tracking-actions a {
  min-height: 72px;
  padding: 12px;
}

.tracking-actions a:hover,
.quick-list a:hover,
.tool-icons a:hover,
.news-item:hover {
  background: #f6f9ff;
}

.tracking-actions strong,
.quick-list strong {
  display: block;
  color: var(--main-text);
  font-size: 15px;
}

.tracking-actions small,
.quick-list small,
.side-card small,
.news-item small {
  display: block;
  color: var(--secondary-text);
  font-size: 12px;
}

.link-more {
  display: inline-flex;
  margin-top: 14px;
  color: var(--signal-blue);
  font-size: 14px;
  font-weight: 850;
}

.market-card {
  padding-bottom: 12px;
}

.mini-chart,
.line-chart {
  min-height: 70px;
  margin: 8px 0 10px;
  border-radius: 6px;
  background:
    linear-gradient(135deg, rgba(23, 107, 255, 0.2), rgba(7, 26, 43, 0.02)),
    repeating-linear-gradient(90deg, transparent 0 26px, rgba(23,107,255,0.08) 26px 27px),
    linear-gradient(160deg, transparent 0 36%, rgba(23,107,255,0.72) 37% 39%, transparent 40% 100%);
}

.line-chart {
  min-height: 110px;
}

.market-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.market-columns h3,
.product-panel h2,
.freight-panel h2,
.quick-list h2,
.side-card h2,
.ai-panel h2 {
  font-size: 17px;
}

dl {
  margin: 0;
}

dt,
dd {
  display: inline-block;
  margin: 0;
  padding: 6px 0;
  border-bottom: 1px solid #edf2f7;
  font-size: 13px;
}

dt {
  width: 44%;
  color: var(--deep-navy);
  font-weight: 750;
}

dd {
  width: 56%;
  text-align: right;
  color: var(--main-text);
  font-weight: 800;
}

.up { color: var(--success); font-size: 11px; }
.down { color: var(--danger); font-size: 11px; }

.quick-list {
  display: grid;
  gap: 6px;
}

.quick-list a {
  padding: 7px 0;
}

.news-panel .tabs {
  margin: 4px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.news-item {
  padding: 8px 0;
}

.thumb {
  flex: 0 0 88px;
  width: 88px;
  height: 60px;
  border-radius: 6px;
  background: var(--sky-surface);
  border: 1px solid var(--border);
}

.thumb.port {
  background: linear-gradient(rgba(11,49,88,0.12), rgba(11,49,88,0.12)), url("trade-hero-port.jpg") center / cover;
}

.thumb.air {
  background:
    linear-gradient(135deg, rgba(23,107,255,0.2), rgba(255,138,61,0.18)),
    linear-gradient(30deg, transparent 42%, #176bff 43% 48%, transparent 49%);
}

.thumb.customs {
  background:
    linear-gradient(135deg, #fff7ed, #eef5ff),
    repeating-linear-gradient(0deg, rgba(11,49,88,0.08) 0 5px, transparent 5px 12px);
}

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

.tool-icons a {
  min-height: 92px;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  color: var(--deep-navy);
  font-size: 12px;
  font-weight: 750;
}

.image-card {
  position: relative;
  min-height: 246px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 4px 18px rgba(7, 26, 43, 0.04);
}

.image-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(7, 26, 43, 0.88), rgba(7, 26, 43, 0.24));
}

.image-card-air img {
  filter: hue-rotate(12deg) saturate(0.9);
  transform: scale(1.05);
}

.image-card span {
  position: absolute;
  inset: auto 24px 24px 24px;
  z-index: 1;
  color: #fff;
}

.image-card strong {
  display: block;
  max-width: 260px;
  font-size: 28px;
  line-height: 1.1;
}

.image-card small,
.image-card em {
  display: block;
  margin-top: 8px;
  color: rgba(255,255,255,0.86);
  font-style: normal;
  font-weight: 750;
}

.ai-panel {
  display: grid;
  gap: 10px;
}

.ai-panel input {
  min-height: 42px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0 12px;
  background: #fff;
}

.ai-panel button {
  min-height: 34px;
  border: 0;
  border-radius: 999px;
  background: var(--sky-surface);
  color: var(--deep-navy);
  text-align: left;
  padding: 6px 12px;
  font-size: 13px;
}

.side-card {
  display: grid;
  gap: 12px;
}

.flag-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  text-align: center;
}

.flag-row span {
  font-size: 26px;
}

.flag-row small {
  margin-top: 2px;
}

.side-card > a {
  align-items: flex-start;
  flex-direction: column;
  gap: 0;
  padding: 6px 0;
  color: var(--deep-navy);
  font-weight: 850;
}

.ad-slot {
  display: grid;
  place-items: center;
  gap: 4px;
  min-height: 84px;
  border: 1px dashed #b8c7d9;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  color: #8b97a6;
  text-align: center;
}

.ad-slot span {
  font-size: 18px;
  color: #8b97a6;
}

.ad-slot small {
  display: block;
  font-size: 13px;
}

.ad-slot--leaderboard {
  width: min(100%, 728px);
  min-height: 90px;
}

.ad-slot--rectangle {
  width: 100%;
  min-height: 250px;
}

@media (max-width: 1380px) {
  .workspace-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .workspace-aside {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1180px) {
  .workspace-shell {
    grid-template-columns: 1fr;
  }
  .workspace-rail {
    display: none;
  }
  .workspace-topbar {
    height: auto;
    min-height: 70px;
    flex-wrap: wrap;
    padding: 12px 16px;
  }
  .top-search {
    order: 3;
    flex-basis: 100%;
  }
  .trade-hero,
  .workspace-grid {
    grid-template-columns: 1fr;
  }
  .span-2,
  .span-3,
  .span-4,
  .span-5,
  .span-6 {
    grid-column: auto;
  }
  .hero-ad {
    justify-self: start;
  }
}

@media (max-width: 760px) {
  .workspace-page {
    padding: 14px;
  }
  .trade-hero {
    min-height: 360px;
    padding: 24px;
  }
  .trade-hero h1 {
    font-size: 34px;
  }
  .top-actions .icon-btn:not(:first-child) {
    display: none;
  }
  .top-search {
    flex-direction: column;
  }
  .top-search .primary-btn {
    width: 100%;
  }
  .tracking-actions,
  .market-columns,
  .tool-icons,
  .workspace-aside {
    grid-template-columns: 1fr;
  }
  .ad-slot--leaderboard {
    min-height: 100px;
  }
  .ad-slot--rectangle {
    min-height: 160px;
  }
  .news-item {
    align-items: flex-start;
  }
  .thumb {
    flex-basis: 76px;
    width: 76px;
    height: 54px;
  }
}

/* Premium SaaS refinement */
:root {
  --ocean-blue: #0f6bff;
  --container-orange: #f97316;
  --premium-navy: #06172f;
  --premium-navy-2: #0a2347;
  --blue-glow: 0 18px 45px rgba(15, 107, 255, 0.16);
}

.workspace-rail {
  background:
    radial-gradient(circle at 18% 0%, rgba(23, 107, 255, 0.22), transparent 26%),
    linear-gradient(180deg, #06172f 0%, #071a2b 100%);
  border-right: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.82);
  scrollbar-color: rgba(255,255,255,0.24) transparent;
  scrollbar-width: thin;
}

.workspace-rail::-webkit-scrollbar {
  width: 8px;
}

.workspace-rail::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.22);
  border-radius: 999px;
}

.compact-brand {
  position: relative;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(255,255,255,0.10);
}

.sidebar-collapse {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 30;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 999px;
  background: #ffffff;
  color: var(--deep-navy);
  box-shadow: 0 10px 28px rgba(0,0,0,0.18);
}

.sidebar-collapse svg {
  width: 17px;
  height: 17px;
}

.compact-brand strong {
  color: #fff;
  letter-spacing: 0;
  text-shadow: 0 0 24px rgba(23,107,255,0.28);
}

.compact-brand span {
  color: rgba(255,255,255,0.72);
}

.workspace-nav {
  gap: 22px;
}

.workspace-nav section {
  padding-top: 4px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.workspace-nav h2 {
  margin-bottom: 8px;
  color: rgba(255,255,255,0.48);
  letter-spacing: 0.08em;
}

.workspace-nav a {
  position: relative;
  min-height: 34px;
  padding: 7px 10px 7px 12px;
  color: rgba(255,255,255,0.82);
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.workspace-nav a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  bottom: 9px;
  width: 3px;
  border-radius: 999px;
  background: transparent;
  transition: background 180ms ease;
}

.workspace-nav a:hover {
  background: rgba(255,255,255,0.08);
  color: #fff;
  transform: translateX(2px);
}

.workspace-nav a:hover::before,
.workspace-nav a.is-active::before {
  background: var(--ocean-blue);
}

.workspace-nav a.is-active {
  background: linear-gradient(135deg, rgba(23,107,255,0.95), rgba(13,86,217,0.86));
  color: #fff;
  box-shadow: 0 10px 24px rgba(23,107,255,0.25);
}

.workspace-nav svg,
.top-actions svg,
.hero-search svg,
.icon svg,
.ai-panel h2 svg {
  width: 18px;
  height: 18px;
  stroke-width: 2;
  flex: 0 0 auto;
}

.workspace-nav svg {
  width: 16px;
  height: 16px;
  color: rgba(255,255,255,0.72);
}

.workspace-nav a:hover svg,
.workspace-nav a.is-active svg {
  color: #fff;
}

.upgrade-card {
  background: linear-gradient(160deg, rgba(23,107,255,0.16), rgba(255,255,255,0.06));
  border-color: rgba(255,255,255,0.14);
  color: #fff;
}

.upgrade-card h3 {
  color: #fff;
}

.upgrade-card p {
  color: rgba(255,255,255,0.68);
}

.sidebar-collapsed {
  grid-template-columns: 86px minmax(0, 1fr);
}

.sidebar-collapsed .workspace-rail {
  padding-inline: 14px;
}

.sidebar-collapsed .compact-brand strong {
  font-size: 0;
}

.sidebar-collapsed .compact-brand strong::first-letter {
  font-size: 0;
}

.sidebar-collapsed .compact-brand::after {
  content: "L";
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--ocean-blue), #0d56d9);
  color: #fff;
  font-size: 24px;
  font-weight: 900;
}

.sidebar-collapsed .compact-brand span,
.sidebar-collapsed .workspace-nav h2,
.sidebar-collapsed .workspace-nav a:not(.nav-home),
.sidebar-collapsed .upgrade-card,
.sidebar-collapsed .nav-home {
  font-size: 0;
}

.sidebar-collapsed .workspace-nav a {
  justify-content: center;
  padding-inline: 0;
}

.sidebar-collapsed .workspace-nav svg {
  width: 19px;
  height: 19px;
}

.sidebar-collapsed .sidebar-collapse svg {
  transform: rotate(180deg);
}

.workspace-topbar {
  background: rgba(248, 251, 255, 0.86);
}

.topbar-spacer {
  flex: 1;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  background: rgba(255,255,255,0.88);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.icon-btn:hover {
  border-color: rgba(23,107,255,0.35);
  box-shadow: var(--blue-glow);
  transform: translateY(-1px);
}

.workspace-page {
  background:
    radial-gradient(circle at 20% 0%, rgba(23,107,255,0.08), transparent 26%),
    linear-gradient(180deg, #f7fbff 0%, #f8fafc 460px);
}

.trade-hero {
  min-height: 330px;
  padding: 44px 52px;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.38fr);
  background:
    linear-gradient(90deg, rgba(3, 15, 35, 0.92) 0%, rgba(5, 24, 50, 0.78) 46%, rgba(5, 24, 50, 0.20) 100%),
    linear-gradient(180deg, rgba(5,24,50,0.16), rgba(5,24,50,0.38)),
    url("trade-hero-port.jpg") center / cover no-repeat;
}

.trade-hero h1 {
  max-width: 650px;
  font-weight: 880;
}

.trade-hero p {
  margin-bottom: 20px;
  color: rgba(255,255,255,0.9);
}

.hero-search {
  width: min(100%, 820px);
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0 18px;
  padding: 8px 10px 8px 18px;
  border: 1px solid rgba(255,255,255,0.30);
  border-radius: 12px;
  background: rgba(255,255,255,0.94);
  box-shadow: 0 24px 60px rgba(0,0,0,0.22);
}

.hero-search svg {
  color: var(--deep-navy);
}

.hero-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--main-text);
  font-weight: 650;
}

.trade-hero .chip-row {
  align-items: center;
  margin-top: 0;
}

.trade-hero .chip {
  min-height: 34px;
  background: rgba(255,255,255,0.16);
  color: #fff;
  border-color: rgba(255,255,255,0.22);
  backdrop-filter: blur(10px);
}

.trade-hero .chip:hover {
  background: rgba(255,255,255,0.28);
}

.panel {
  border-color: rgba(189, 204, 226, 0.78);
  box-shadow: 0 10px 30px rgba(7, 26, 43, 0.045);
}

.panel h2,
.section-head h2 {
  position: relative;
  font-weight: 850;
}

.panel h2::before,
.section-head h2::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 16px;
  margin-right: 9px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--ocean-blue), #72a8ff);
  vertical-align: -2px;
}

.tracking-actions a,
.quick-list a,
.tool-icons a,
.news-item,
.side-card > a,
.image-card,
.sponsor-card {
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.tracking-actions a {
  border: 1px solid #e2ebf6;
  background: linear-gradient(180deg, #fff, #fbfdff);
}

.tracking-actions a:hover,
.quick-list a:hover,
.tool-icons a:hover,
.news-item:hover,
.side-card > a:hover {
  transform: translateY(-2px);
  border-color: rgba(23,107,255,0.40);
  box-shadow: var(--blue-glow);
  background: #fff;
}

.tracking-actions a:hover .icon,
.quick-list a:hover .icon,
.tool-icons a:hover .icon {
  color: #fff;
  background: linear-gradient(135deg, var(--ocean-blue), #0d56d9);
}

.icon {
  border: 1px solid #dbe8ff;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.icon svg {
  width: 20px;
  height: 20px;
}

.market-card {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.96), rgba(250,253,255,0.96)),
    radial-gradient(circle at 92% 0%, rgba(23,107,255,0.12), transparent 28%);
}

.spark-list dd {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.spark {
  width: 48px;
  height: 18px;
  display: inline-block;
  background:
    linear-gradient(145deg, transparent 0 18%, var(--ocean-blue) 19% 24%, transparent 25% 42%, var(--ocean-blue) 43% 48%, transparent 49% 66%, var(--ocean-blue) 67% 72%, transparent 73%);
  opacity: 0.92;
}

.spark.alt {
  background:
    linear-gradient(30deg, transparent 0 20%, var(--ocean-blue) 21% 26%, transparent 27% 45%, var(--ocean-blue) 46% 51%, transparent 52% 70%, var(--ocean-blue) 71% 76%, transparent 77%);
}

.spark-down {
  background:
    linear-gradient(35deg, transparent 0 16%, var(--danger) 17% 22%, transparent 23% 44%, var(--danger) 45% 50%, transparent 51% 70%, var(--danger) 71% 76%, transparent 77%);
}

.news-item strong {
  color: var(--ink-navy);
  line-height: 1.35;
}

.tool-icons a {
  position: relative;
  border: 1px solid transparent;
}

.tool-icons a::after {
  content: attr(data-tip);
  min-height: 16px;
  margin-top: 3px;
  color: var(--secondary-text);
  font-size: 11px;
  font-weight: 600;
  opacity: 0;
  transform: translateY(-2px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.tool-icons a:hover::after {
  opacity: 1;
  transform: translateY(0);
}

.thumb.air {
  background: linear-gradient(rgba(11,49,88,0.08), rgba(11,49,88,0.08)), url("trade-intermodal.jpg") center / cover;
}

.image-card img {
  transition: transform 240ms ease;
}

.image-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--blue-glow);
  border-color: rgba(23,107,255,0.38);
}

.image-card:hover img {
  transform: scale(1.04);
}

.image-card-air img {
  filter: none;
}

.commodity-list dt,
.commodity-list dd {
  padding: 9px 0;
}

.commodity {
  width: 28px;
  height: 28px;
  display: inline-block;
  margin-right: 8px;
  border-radius: 7px;
  vertical-align: middle;
  border: 1px solid var(--border);
}

.commodity.oil { background: linear-gradient(135deg, #111827, #475569); }
.commodity.copper { background: linear-gradient(135deg, #b45309, #f59e0b); }
.commodity.steel { background: linear-gradient(135deg, #94a3b8, #e2e8f0); }
.commodity.nickel { background: linear-gradient(135deg, #64748b, #cbd5e1); }

.ai-panel h2 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.ai-panel button:hover {
  background: #dceaff;
  color: var(--ocean-blue);
}

.sponsor-card {
  position: relative;
  min-height: 176px;
  overflow: hidden;
  display: grid;
  align-content: end;
  gap: 6px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: #fff;
  box-shadow: 0 10px 30px rgba(7, 26, 43, 0.08);
}

.sponsor-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sponsor-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(7,26,43,0.90), rgba(7,26,43,0.28));
}

.sponsor-card span,
.sponsor-card strong,
.sponsor-card small {
  position: relative;
  z-index: 1;
}

.sponsor-card span {
  color: rgba(255,255,255,0.78);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.sponsor-card strong {
  max-width: 210px;
  font-size: 22px;
  line-height: 1.16;
}

.sponsor-card small {
  max-width: 210px;
  color: rgba(255,255,255,0.82);
}

.sponsor-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 45px rgba(7, 26, 43, 0.18);
  border-color: rgba(23,107,255,0.38);
}

.ad-slot {
  background: linear-gradient(180deg, rgba(255,255,255,0.94), rgba(247,250,255,0.94));
  color: #64748b;
}

.ad-slot span {
  color: #334155;
  font-weight: 850;
}

.hero-ad {
  color: rgba(15,23,42,0.8);
}

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

@media (max-width: 760px) {
  .hero-search {
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
  }
  .hero-search svg {
    display: none;
  }
  .hero-search .primary-btn {
    width: 100%;
  }
  .trade-hero {
    padding: 28px 20px;
  }
}

/* Sidebar usability upgrade */
.workspace-shell {
  overflow: visible;
}

.workspace-rail {
  height: 100vh;
  overflow: visible;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.sidebar-header {
  position: static;
  flex-shrink: 0;
  padding: 0 0 18px;
}

.sidebar-nav {
  flex: 1;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 0 8px 0 0;
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
}

.sidebar-nav:hover {
  scrollbar-color: rgba(148, 163, 184, 0.46) transparent;
}

.sidebar-nav::-webkit-scrollbar {
  width: 5px;
}

.sidebar-nav::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar-nav::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0);
  border-radius: 999px;
}

.sidebar-nav:hover::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.42);
}

.sidebar-footer {
  flex-shrink: 0;
  display: grid;
  gap: 10px;
  padding-top: 16px;
  margin-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.11);
}

.sidebar-version {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.045);
  color: rgba(226, 232, 240, 0.74);
  font-size: 11px;
  line-height: 1.35;
}

.sidebar-version strong {
  color: #fff;
  font-size: 12px;
}

.sidebar-footer-action,
.theme-toggle {
  width: 100%;
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.055);
  color: rgba(226, 232, 240, 0.88);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.sidebar-footer-action:hover,
.theme-toggle:hover {
  border-color: rgba(96, 165, 250, 0.48);
  background: rgba(23, 107, 255, 0.20);
  color: #fff;
}

.nav-group {
  display: grid;
  gap: 0;
  padding: 11px 0 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
}

.nav-group:first-of-type {
  border-top: 0;
}

.nav-group-trigger {
  width: 100%;
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 10px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: rgba(203, 213, 225, 0.72);
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 180ms ease, color 180ms ease;
}

.nav-group-trigger:hover {
  background: rgba(255, 255, 255, 0.055);
  color: #fff;
}

.nav-group-trigger svg {
  width: 15px;
  height: 15px;
  stroke-width: 2.2;
  transition: transform 180ms ease;
}

.nav-group[data-open="true"] .nav-group-trigger svg {
  transform: rotate(0deg);
}

.nav-group-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 200ms ease;
}

.nav-group[data-open="true"] .nav-group-panel {
  grid-template-rows: 1fr;
}

.nav-group-panel-inner {
  min-height: 0;
  overflow: hidden;
  display: grid;
  gap: 3px;
  padding-top: 5px;
}

.workspace-nav h2 {
  display: none;
}

.sidebar-collapse {
  position: absolute;
  top: 22px;
  right: 18px;
  z-index: 90;
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 999px;
  pointer-events: auto;
  border: 1px solid rgba(203, 213, 225, 0.55);
  background: rgba(255, 255, 255, 0.96);
  color: var(--deep-navy);
  box-shadow: 0 12px 28px rgba(2, 8, 23, 0.22);
}

.sidebar-collapse svg {
  width: 18px;
  height: 18px;
  margin: 0;
  transition: transform 180ms ease;
}

.sidebar-drawer-close {
  display: none;
}

.workspace-nav a {
  min-height: 38px;
}

.workspace-nav a span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-collapsed .workspace-rail {
  width: 78px;
  padding-left: 14px;
  padding-right: 14px;
  overflow: visible;
}

.sidebar-collapsed .compact-brand {
  justify-content: center;
}

.sidebar-collapsed .compact-brand strong,
.sidebar-collapsed .compact-brand span,
.sidebar-collapsed .nav-group-trigger,
.sidebar-collapsed .workspace-nav a span,
.sidebar-collapsed .sidebar-footer,
.sidebar-collapsed .upgrade-card {
  display: none;
}

.sidebar-collapsed .nav-group {
  border-top: 0;
  padding: 3px 0;
}

.sidebar-collapsed .nav-group-panel {
  grid-template-rows: 1fr !important;
}

.sidebar-collapsed .nav-group-panel-inner {
  gap: 6px;
  padding-top: 0;
}

.sidebar-collapsed .workspace-nav a {
  position: relative;
  display: flex;
  justify-content: center;
  width: 48px;
  min-height: 46px;
  padding: 0;
  overflow: visible;
}

.sidebar-collapsed .workspace-nav a::after {
  content: attr(data-menu-label);
  position: absolute;
  left: calc(100% + 12px);
  top: 50%;
  z-index: 100;
  transform: translateY(-50%) translateX(-4px);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  padding: 7px 10px;
  border-radius: 8px;
  background: #0f172a;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 12px 24px rgba(2, 8, 23, 0.22);
  transition: opacity 160ms ease, transform 160ms ease;
}

.sidebar-collapsed .workspace-nav a:hover::after {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.sidebar-collapsed .workspace-nav svg {
  margin: 0;
}

.home-grid {
  align-items: start;
  gap: clamp(18px, 1.6vw, 26px);
}

.main-grid,
.lower-grid {
  align-items: start;
  gap: clamp(16px, 1.4vw, 22px);
}

.workspace-main {
  padding: clamp(20px, 2vw, 30px);
}

.card {
  padding: clamp(18px, 1.45vw, 24px);
}

.tracking-card {
  min-width: min(100%, 360px);
}

.quick-card {
  min-width: min(100%, 280px);
}

.image-card,
.sponsor-card {
  min-height: 220px;
}

.image-card img {
  object-position: center 54%;
}

.right-rail {
  min-width: min(100%, 300px);
}

.sidebar-overlay {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: none;
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(2px);
}

body.sidebar-drawer-active {
  overflow: hidden;
}

@media (max-width: 1600px) {
  .home-grid {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 330px);
  }
}

@media (max-width: 1280px) {
  .main-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  }
}

@media (max-width: 1180px) {
  .workspace-rail {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 80;
    width: min(340px, 88vw);
    max-width: 88vw;
    transform: translateX(-108%);
    transition: transform 210ms ease;
    box-shadow: 24px 0 60px rgba(2, 8, 23, 0.28);
  }

  .sidebar-drawer-open .workspace-rail {
    transform: translateX(0);
  }

  .sidebar-drawer-open .sidebar-overlay {
    display: block;
  }

  .sidebar-collapse {
    display: none;
  }

  .sidebar-drawer-close {
    position: absolute;
    top: 16px;
    right: 6px;
    z-index: 91;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.10);
    color: #fff;
    cursor: pointer;
  }

  .sidebar-drawer-close svg {
    width: 18px;
    height: 18px;
  }

  .sidebar-collapsed .workspace-rail {
    width: min(340px, 88vw);
    padding-left: 20px;
    padding-right: 14px;
  }

  .sidebar-collapsed .compact-brand strong,
  .sidebar-collapsed .compact-brand span,
  .sidebar-collapsed .nav-group-trigger,
  .sidebar-collapsed .workspace-nav a span,
  .sidebar-collapsed .sidebar-footer {
    display: initial;
  }

  .sidebar-collapsed .nav-group-trigger {
    display: flex;
  }

  .sidebar-collapsed .workspace-nav a {
    display: flex;
    justify-content: flex-start;
    width: auto;
    padding: 9px 10px;
  }
}

@media (max-width: 1024px) {
  .home-grid,
  .main-grid,
  .lower-grid {
    grid-template-columns: 1fr;
  }

  .right-rail {
    min-width: 0;
  }
}

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

  .card {
    padding: 18px;
  }

  .tracking-actions,
  .quick-list,
  .tool-icons {
    grid-template-columns: 1fr;
  }

  .image-card,
  .sponsor-card {
    min-height: 210px;
  }
}

/* Home dashboard bento layout refinement */
*,
*::before,
*::after {
  box-sizing: border-box;
}

.workspace-page {
  width: min(100%, 1760px);
  padding: clamp(20px, 2vw, 32px);
}

.workspace-layout {
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: clamp(20px, 1.6vw, 28px);
  align-items: start;
}

.workspace-main,
.workspace-aside,
.workspace-grid,
.workspace-grid > *,
.panel,
.image-card,
.sponsor-card {
  min-width: 0;
  max-width: 100%;
}

.workspace-main {
  display: grid;
  align-items: start;
}

.workspace-aside {
  gap: clamp(18px, 1.4vw, 24px);
}

.workspace-grid {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(18px, 1.35vw, 24px);
  margin-top: clamp(18px, 1.35vw, 24px);
  align-items: start;
}

.workspace-grid > * {
  align-self: start;
  height: auto;
}

.top-workspace .span-6 {
  grid-column: span 7;
}

.top-workspace .span-4 {
  grid-column: span 5;
}

.top-workspace .span-2 {
  grid-column: span 12;
}

.workspace-main > .workspace-grid:nth-of-type(3) .span-5 {
  grid-column: span 7;
}

.workspace-main > .workspace-grid:nth-of-type(3) .span-4 {
  grid-column: span 5;
}

.workspace-main > .workspace-grid:nth-of-type(3) .span-3 {
  grid-column: span 4;
}

.workspace-main > .workspace-grid:nth-of-type(4) .span-3 {
  grid-column: span 4;
}

.panel {
  padding: clamp(20px, 1.55vw, 26px);
  border-radius: 16px;
}

.section-head {
  gap: 14px;
  margin-bottom: 20px;
}

.section-head h2,
.panel > h2 {
  font-size: clamp(20px, 1.25vw, 24px);
  line-height: 1.2;
  word-break: keep-all;
}

.section-head p,
.panel p,
.muted {
  line-height: 1.55;
}

.trade-hero {
  min-height: clamp(300px, 24vw, 390px);
  padding: clamp(30px, 3vw, 52px);
  border-radius: 18px;
}

.hero-search {
  width: min(100%, 820px);
}

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

.tracking-actions a {
  min-height: 104px;
  align-items: flex-start;
  flex-direction: column;
  justify-content: flex-start;
  gap: 10px;
  padding: 17px;
}

.tracking-actions .icon,
.quick-list .icon,
.tool-icons .icon {
  flex: 0 0 auto;
}

.tracking-actions strong,
.quick-list strong,
.tool-icons a {
  line-height: 1.35;
  word-break: keep-all;
}

.tracking-actions strong,
.tracking-actions small,
.quick-list strong {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tracking-actions strong,
.quick-list strong {
  -webkit-line-clamp: 2;
}

.tracking-actions small {
  -webkit-line-clamp: 2;
  line-height: 1.45;
}

.quick-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-content: start;
}

.quick-list h2 {
  grid-column: 1 / -1;
  margin-bottom: 2px;
}

.quick-list a {
  min-height: 104px;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  padding: 16px 12px;
  border: 1px solid #e2ebf6;
  background: linear-gradient(180deg, #fff, #fbfdff);
  text-align: center;
}

.quick-list small {
  display: none;
}

.market-card {
  overflow: hidden;
}

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

.market-columns > div {
  min-width: 0;
}

.spark-list {
  display: grid;
  grid-template-columns: minmax(84px, 1fr) minmax(0, auto);
  column-gap: 12px;
}

.spark-list dt,
.spark-list dd {
  width: auto;
  min-width: 0;
  display: flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 0;
  white-space: nowrap;
}

.spark-list dd {
  justify-content: flex-end;
  gap: 8px;
}

.spark-list dd b {
  flex: 0 0 auto;
  white-space: nowrap;
}

.spark {
  flex: 0 0 52px;
}

.mini-chart {
  min-height: 92px;
  margin: 12px 0 16px;
}

.news-panel .tabs,
.freight-panel .tabs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 10px;
  scrollbar-width: none;
}

.news-panel .tabs::-webkit-scrollbar,
.freight-panel .tabs::-webkit-scrollbar {
  display: none;
}

.news-item {
  min-width: 0;
  gap: 14px;
  padding: 12px;
  border: 1px solid transparent;
}

.news-item > div {
  min-width: 0;
}

.news-item strong {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: keep-all;
}

.news-item:first-of-type {
  display: grid;
  grid-template-columns: minmax(132px, 170px) minmax(0, 1fr);
  align-items: center;
  margin-bottom: 8px;
  padding: 14px;
  border-color: #dbe8ff;
  background: linear-gradient(180deg, #f8fbff, #fff);
}

.news-item:first-of-type .thumb {
  width: 100%;
  height: 106px;
}

.thumb {
  flex-basis: 96px;
  width: 96px;
  height: 64px;
  object-fit: cover;
}

.thumb.air {
  background: linear-gradient(rgba(11,49,88,0.08), rgba(11,49,88,0.08)), url("trade-intermodal.jpg") 62% center / cover;
}

.thumb.customs {
  background:
    linear-gradient(135deg, rgba(255,255,255,0.04), rgba(23,107,255,0.10)),
    url("trade-night-port.jpg") 42% center / cover;
}

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

.tool-icons a {
  min-height: 116px;
  display: flex;
  overflow: visible;
  overflow-wrap: anywhere;
  white-space: normal;
  padding: 16px 12px;
  border: 1px solid #e2ebf6;
  border-radius: 14px;
  font-size: 14px;
}

.tool-icons .icon {
  width: 48px;
  height: 48px;
}

.freight-panel .tabs {
  margin-top: 14px;
  margin-bottom: 20px;
}

.line-chart {
  min-height: clamp(160px, 12vw, 190px);
  margin: 0 0 20px;
}

.commodity-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
}

.commodity-list dt,
.commodity-list dd {
  width: auto;
  min-height: 58px;
  display: flex;
  align-items: center;
  padding: 12px 0;
  white-space: nowrap;
}

.commodity-list dt {
  gap: 10px;
}

.commodity-list dd {
  justify-content: flex-end;
  gap: 12px;
}

.commodity-list dd b {
  white-space: nowrap;
}

.commodity {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  margin-right: 0;
}

.commodity.oil { background: radial-gradient(circle at 70% 25%, #f8fafc 0 10%, transparent 11%), linear-gradient(135deg, #111827, #475569); }
.commodity.copper { background: radial-gradient(circle at 72% 24%, #fed7aa 0 11%, transparent 12%), linear-gradient(135deg, #92400e, #f97316); }
.commodity.steel { background: radial-gradient(circle at 70% 24%, #f8fafc 0 11%, transparent 12%), linear-gradient(135deg, #64748b, #e2e8f0); }
.commodity.nickel { background: radial-gradient(circle at 70% 24%, #f1f5f9 0 11%, transparent 12%), linear-gradient(135deg, #475569, #cbd5e1); }

.ai-panel {
  align-content: start;
}

.ai-panel .section-head {
  flex-wrap: wrap;
}

.ai-panel input,
.ai-panel button {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.ai-panel button {
  min-height: 44px;
  border-radius: 12px;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.image-card {
  aspect-ratio: 16 / 10;
  min-height: 220px;
  max-height: 300px;
  border-radius: 18px;
}

.image-card span {
  inset: auto 26px 26px 26px;
  max-width: calc(100% - 52px);
}

.image-card strong {
  max-width: 320px;
  font-size: clamp(24px, 2vw, 32px);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.image-card small {
  max-width: 320px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.image-card:not(.image-card-air) img {
  object-position: center 58%;
}

.image-card-air img {
  object-position: 68% center;
  transform: none;
}

.sponsor-card {
  aspect-ratio: 4 / 3;
  min-height: 220px;
  max-height: 300px;
}

.sponsor-card img {
  object-position: 64% center;
}

.side-card {
  gap: 16px;
  padding: clamp(20px, 1.4vw, 24px);
}

.flag-row {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.flag-row span,
.flag-row small {
  min-width: 0;
}

.side-card dl {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
}

.side-card dt,
.side-card dd {
  width: auto;
  min-width: 0;
  white-space: nowrap;
}

.side-card > a {
  padding: 10px 0;
  border-bottom: 1px solid #edf2f7;
}

@media (max-width: 1599px) {
  .workspace-layout {
    grid-template-columns: minmax(0, 1fr) 310px;
  }

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

@media (max-width: 1439px) {
  .workspace-layout {
    grid-template-columns: 1fr;
  }

  .workspace-aside {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .workspace-aside > * {
    align-self: start;
  }

  .top-workspace .span-6,
  .top-workspace .span-4,
  .top-workspace .span-2 {
    grid-column: span 12;
  }

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

@media (max-width: 1279px) {
  .workspace-main > .workspace-grid:nth-of-type(3) .span-5,
  .workspace-main > .workspace-grid:nth-of-type(3) .span-4,
  .workspace-main > .workspace-grid:nth-of-type(3) .span-3,
  .workspace-main > .workspace-grid:nth-of-type(4) .span-3 {
    grid-column: span 6;
  }

  .market-columns {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 1023px) {
  .workspace-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .top-workspace .span-6,
  .top-workspace .span-4,
  .top-workspace .span-2,
  .workspace-main > .workspace-grid:nth-of-type(3) .span-5,
  .workspace-main > .workspace-grid:nth-of-type(3) .span-4,
  .workspace-main > .workspace-grid:nth-of-type(3) .span-3,
  .workspace-main > .workspace-grid:nth-of-type(4) .span-3 {
    grid-column: span 6;
  }

  .workspace-aside {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 767px) {
  .workspace-page {
    padding: 16px;
  }

  .workspace-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .top-workspace .span-6,
  .top-workspace .span-4,
  .top-workspace .span-2,
  .workspace-main > .workspace-grid:nth-of-type(3) .span-5,
  .workspace-main > .workspace-grid:nth-of-type(3) .span-4,
  .workspace-main > .workspace-grid:nth-of-type(3) .span-3,
  .workspace-main > .workspace-grid:nth-of-type(4) .span-3 {
    grid-column: 1 / -1;
  }

  .panel {
    padding: 16px;
    border-radius: 14px;
  }

  .trade-hero {
    min-height: 420px;
  }

  .tracking-actions {
    grid-template-columns: 1fr;
  }

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

  .quick-list a,
  .tool-icons a {
    min-height: 108px;
  }

  .news-item:first-of-type {
    grid-template-columns: 1fr;
  }

  .news-item:first-of-type .thumb {
    height: 150px;
  }

  .market-columns,
  .spark-list,
  .commodity-list,
  .side-card dl {
    grid-template-columns: 1fr;
  }

  .spark-list dt,
  .spark-list dd,
  .commodity-list dt,
  .commodity-list dd,
  .side-card dt,
  .side-card dd {
    border-bottom: 0;
  }

  .spark-list dd,
  .commodity-list dd,
  .side-card dd {
    justify-content: flex-start;
    padding-top: 0;
  }

  .image-card,
  .sponsor-card {
    aspect-ratio: 16 / 10;
    min-height: 220px;
  }
}

/* LOGILEE homepage premium dashboard refactor */
:root {
  --card-radius: 16px;
  --card-padding: clamp(22px, 1.6vw, 30px);
  --card-gap: clamp(20px, 1.6vw, 28px);
  --card-border: rgba(202, 213, 226, 0.78);
  --card-shadow: 0 18px 46px rgba(15, 23, 42, 0.065);
  --section-gap: clamp(22px, 1.8vw, 34px);
}

.home-layout {
  grid-template-columns: minmax(0, 1fr) minmax(360px, 420px);
  gap: var(--card-gap);
  align-items: start;
}

.home-layout .workspace-main,
.home-layout .dashboard-sidebar {
  display: grid;
  gap: var(--section-gap);
  padding: 0;
}

.home-layout .workspace-aside {
  position: static;
  top: auto;
}

.home-layout .panel,
.home-layout .trade-hero {
  border: 1px solid var(--card-border);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
}

.home-layout .panel {
  padding: var(--card-padding);
  background: rgba(255, 255, 255, 0.94);
}

.home-layout .section-head {
  align-items: flex-start;
  margin-bottom: clamp(16px, 1.25vw, 22px);
}

.home-layout .section-head h2,
.home-layout .panel > h2 {
  font-size: clamp(19px, 1.1vw, 23px);
  line-height: 1.22;
}

.home-layout .section-head p {
  margin-top: 6px;
  font-size: 14px;
}

.home-layout .trade-hero {
  min-height: clamp(390px, 28vw, 510px);
  display: flex;
  align-items: center;
  padding: clamp(38px, 4vw, 68px);
}

.home-layout .trade-hero h1 {
  max-width: 720px;
  font-size: clamp(42px, 4.8vw, 72px);
}

.home-layout .trade-hero p {
  max-width: 640px;
  font-size: clamp(18px, 1.35vw, 23px);
}

.home-layout .hero-search {
  max-width: 860px;
}

.tracking-panel-home .tracking-actions {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-layout .popular-tools .tool-icons {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

.guide-list a {
  min-width: 0;
  min-height: 148px;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 18px;
  border: 1px solid #e2ebf6;
  border-radius: 14px;
  background: linear-gradient(180deg, #fff, #fbfdff);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.guide-list a:hover {
  transform: translateY(-2px);
  border-color: rgba(23, 107, 255, 0.4);
  box-shadow: var(--blue-glow);
}

.guide-list strong {
  color: var(--ink-navy);
  font-size: 17px;
  line-height: 1.3;
}

.guide-list small {
  color: var(--secondary-text);
  line-height: 1.45;
}

.dashboard-sidebar {
  align-content: start;
}

.dashboard-sidebar .market-card,
.dashboard-sidebar .quick-list,
.dashboard-sidebar .market-side-card,
.dashboard-sidebar .latest-news {
  width: 100%;
}

.market-head {
  gap: 12px;
}

.market-head p {
  display: grid;
  gap: 3px;
}

.market-head p span,
.market-update-note span {
  color: var(--secondary-text);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.market-head p strong,
.market-update-note strong {
  color: var(--ink-navy);
  font-size: 14px;
  line-height: 1.25;
}

.market-update-note {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  margin: -4px 0 16px;
  padding: 12px 14px;
  border: 1px solid #dbe8ff;
  border-radius: 14px;
  background: linear-gradient(180deg, #f8fbff, #fff);
}

.info-tip {
  position: relative;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid #dbe8ff;
  border-radius: 999px;
  background: #fff;
  color: var(--signal-blue);
}

.info-tip svg {
  width: 16px;
  height: 16px;
}

.info-tip::after {
  content: attr(data-tooltip);
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  z-index: 10;
  width: min(300px, 72vw);
  padding: 12px 14px;
  border: 1px solid #dbe8ff;
  border-radius: 12px;
  background: #0f172a;
  color: #fff;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.5;
  text-align: left;
  box-shadow: 0 18px 36px rgba(2, 8, 23, 0.22);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.info-tip:hover::after,
.info-tip:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

.dashboard-sidebar .market-columns {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.dashboard-sidebar .market-columns h3 {
  margin-bottom: 8px;
  font-size: 15px;
}

.dashboard-sidebar .spark-list {
  grid-template-columns: minmax(72px, 0.8fr) minmax(0, 1.2fr);
  column-gap: 10px;
}

.dashboard-sidebar .spark-list dt,
.dashboard-sidebar .spark-list dd {
  min-height: 38px;
  padding: 8px 0;
  border-bottom: 1px solid #edf2f7;
  font-size: 13px;
}

.dashboard-sidebar .spark-list dd {
  display: grid;
  grid-template-columns: 44px minmax(44px, 1fr) auto;
  gap: 7px;
  align-items: center;
  justify-items: end;
}

.dashboard-sidebar .spark {
  width: 44px;
  flex-basis: 44px;
}

.dashboard-sidebar .spark-list dd span:not(.spark) {
  min-width: 0;
  font-variant-numeric: tabular-nums;
}

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

.data-status-list div {
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px solid #e2ebf6;
  border-radius: 14px;
  background: linear-gradient(180deg, #fff, #fbfdff);
}

.data-status-list strong {
  color: var(--ink-navy);
  font-size: 14px;
}

.data-status-list span,
.data-empty {
  color: var(--secondary-text);
  font-size: 13px;
}

.dashboard-sidebar .quick-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.dashboard-sidebar .quick-list h2 {
  grid-column: 1 / -1;
}

.dashboard-sidebar .quick-list a {
  min-height: 118px;
  padding: 16px 12px;
  border-radius: 14px;
}

.dashboard-sidebar .quick-list .icon {
  width: 42px;
  height: 42px;
  margin-bottom: 0;
}

.market-side-card {
  min-height: 188px;
  display: grid;
  align-content: start;
}

.dashboard-sidebar .product-panel {
  min-height: 188px;
}

.compact-data-card {
  gap: 12px;
}

.compact-data-card .tabs {
  margin: 4px 0 0;
}

.disabled-tabs .tab {
  cursor: not-allowed;
  opacity: 0.58;
}

.data-empty {
  margin-top: 4px;
  padding: 16px;
  border: 1px dashed #cbd5e1;
  border-radius: 14px;
  background: #f8fafc;
  line-height: 1.5;
}

.dashboard-sidebar .commodity-list {
  grid-template-columns: minmax(0, 1fr) auto;
}

.dashboard-sidebar .commodity-list dt,
.dashboard-sidebar .commodity-list dd {
  min-height: 58px;
}

.latest-news .tabs {
  margin: 0 0 12px;
}

.latest-news .news-item:first-of-type {
  display: flex;
  grid-template-columns: none;
}

.latest-news .news-item:first-of-type .thumb,
.latest-news .thumb {
  flex: 0 0 82px;
  width: 82px;
  height: 58px;
}

.home-ad {
  width: 100%;
  box-shadow: none;
}

@media (max-width: 1500px) {
  .home-layout {
    grid-template-columns: minmax(0, 1fr) minmax(340px, 390px);
  }

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

  .home-layout .popular-tools .tool-icons {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1180px) {
  .home-layout {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 360px);
  }

  .home-layout .trade-hero {
    min-height: 420px;
  }

  .dashboard-sidebar .market-columns {
    grid-template-columns: 1fr;
  }

  .guide-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .home-layout {
    grid-template-columns: 1fr;
  }

  .dashboard-sidebar {
    order: 2;
  }

  .home-layout .workspace-main {
    order: 1;
  }

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

@media (max-width: 767px) {
  .home-layout .trade-hero {
    min-height: 500px;
  }

  .tracking-panel-home .tracking-actions,
  .home-layout .popular-tools .tool-icons,
  .dashboard-sidebar .market-columns {
    grid-template-columns: 1fr;
  }

  .dashboard-sidebar .quick-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .market-update-note {
    grid-template-columns: 1fr auto;
  }

  .market-update-note span {
    grid-column: 1 / -1;
  }

  .dashboard-sidebar .spark-list {
    grid-template-columns: minmax(78px, 0.75fr) minmax(0, 1.25fr);
  }

  .dashboard-sidebar .spark-list dd {
    grid-template-columns: 36px minmax(44px, 1fr) auto;
    gap: 5px;
    font-size: 12px;
  }

  .dashboard-sidebar .spark {
    width: 36px;
    flex-basis: 36px;
  }

}

/* LOGILEE homepage compact UX update - final overrides */
.workspace-topbar {
  min-height: 64px;
  height: auto;
}

.header-search {
  position: relative;
  flex: 1 1 520px;
  max-width: 720px;
  min-width: 240px;
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 8px 0 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
}

.header-search > svg,
.header-search > i {
  flex: 0 0 auto;
  color: var(--secondary-text);
}

.header-search input {
  flex: 1;
  min-width: 0;
  height: 40px;
  border: 0;
  outline: 0;
  background: transparent;
}

.header-search button {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: var(--signal-blue);
  color: #fff;
}

.header-search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 40;
  display: none;
  max-height: min(420px, 70vh);
  overflow-y: auto;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.header-search.has-results .header-search-results {
  display: grid;
  gap: 6px;
}

.header-result-item {
  display: grid;
  gap: 2px;
  padding: 10px;
  border-radius: 8px;
}

.header-result-item:hover {
  background: #f6f9ff;
}

.header-result-item span {
  color: var(--signal-blue);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.header-result-item strong {
  color: var(--ink-navy);
  font-size: 14px;
  line-height: 1.25;
}

.header-result-item small,
.header-result-empty {
  color: var(--secondary-text);
  font-size: 12px;
  line-height: 1.45;
}

.header-result-empty {
  padding: 12px;
}

.language-menu {
  position: relative;
}

.language-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.language-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 45;
  min-width: 170px;
  display: none;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.language-menu.is-open .language-dropdown {
  display: grid;
  gap: 4px;
}

.language-dropdown span {
  padding: 6px 8px;
  color: var(--secondary-text);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.language-dropdown a {
  display: block;
  padding: 8px;
  border-radius: 8px;
  color: var(--deep-navy);
  font-size: 14px;
  font-weight: 750;
}

.language-dropdown a:hover,
.language-dropdown a.is-active {
  background: var(--sky-surface);
  color: var(--signal-blue);
}

.home-layout {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 380px);
  gap: 18px;
}

.home-layout .workspace-main,
.home-layout .dashboard-sidebar {
  gap: 18px;
}

.home-layout .panel,
.home-layout .trade-hero,
.guide-list a,
.tool-icons a,
.tracking-actions a,
.data-status-list div,
.data-empty {
  border-radius: 8px;
}

.home-layout .panel {
  padding: 20px;
}

.home-layout .trade-hero {
  min-height: clamp(238px, 19vw, 310px);
  padding: clamp(24px, 2.6vw, 38px);
  border-radius: 8px;
}

.home-layout .trade-hero h1 {
  max-width: 980px;
  font-size: clamp(28px, 2.4vw, 40px);
  line-height: 1.08;
  white-space: nowrap;
}

.home-layout .trade-hero p {
  max-width: 820px;
  margin: 8px 0 18px;
  font-size: clamp(15px, 1.15vw, 18px);
}

.home-layout .hero-search {
  max-width: 780px;
}

.trade-hero .chip-row {
  display: none;
}

.quick-tools-home .compact-tool-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.quick-tools-home .tool-icons a {
  min-height: 92px;
  justify-content: center;
  padding: 12px 8px;
  text-align: center;
  font-size: 13px;
}

.quick-tools-home .tool-icons .icon {
  width: 36px;
  height: 36px;
}

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

.compact-news-item {
  min-height: auto;
  padding: 11px 0;
  border-bottom: 1px solid #edf2f7;
}

.compact-news-item:last-child {
  border-bottom: 0;
}

.compact-news-item strong {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: var(--ink-navy);
  font-size: 14px;
  line-height: 1.35;
}

.compact-news-item small {
  display: block;
  margin-top: 4px;
  color: var(--secondary-text);
  font-size: 12px;
  line-height: 1.35;
}

.dashboard-sidebar .quick-list.sidebar-tools {
  display: none;
}

.market-section-label {
  padding: 0 0 4px;
  color: var(--signal-blue);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.market-data-list div {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.market-data-list span {
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.market-side-card {
  min-height: 132px;
}

.data-table-shell {
  display: grid;
  grid-template-columns: minmax(90px, 1fr) minmax(78px, 0.85fr) minmax(56px, 0.6fr) minmax(58px, 0.6fr);
  gap: 8px;
  padding: 8px 0 10px;
  border-bottom: 1px solid #edf2f7;
  color: var(--secondary-text);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.data-table-shell--commodity {
  grid-template-columns: minmax(100px, 1fr) minmax(78px, 0.8fr) minmax(56px, 0.6fr);
}

.skeleton-line {
  position: relative;
  overflow: hidden;
}

@media (max-width: 1180px) {
  .quick-tools-home .compact-tool-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .home-layout .trade-hero h1 {
    white-space: normal;
  }
}

@media (max-width: 860px) {
  .workspace-topbar {
    flex-wrap: wrap;
    padding: 10px 16px;
  }

  .mobile-logo {
    display: block;
  }

  .header-search {
    order: 3;
    flex-basis: 100%;
    max-width: none;
  }

  .home-layout {
    grid-template-columns: 1fr;
  }
}

/* Latest News + Posting */
.home-latest-panel {
  overflow: hidden;
}

.home-latest-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(16px, 1.6vw, 24px);
}

.home-latest-column {
  min-width: 0;
}

.home-latest-column + .home-latest-column {
  padding-left: clamp(16px, 1.6vw, 24px);
  border-left: 1px solid var(--border);
}

.home-latest-panel .section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
  margin-bottom: 12px;
}

.home-latest-panel .link-more {
  margin-top: 3px;
  white-space: nowrap;
}

.home-latest-panel .section-head p {
  font-size: 13px;
  line-height: 1.45;
}

.home-latest-panel .compact-news-list {
  gap: 0;
}

.home-latest-panel .compact-news-item {
  padding: 10px 0;
}

.home-latest-panel .compact-news-item:first-of-type {
  display: flex;
  grid-template-columns: none;
  margin-bottom: 0;
  padding: 10px 0;
  border-color: transparent;
  background: transparent;
}

.posting-slider {
  min-height: 0;
}

.posting-slider-card {
  display: grid;
  gap: 10px;
}

.posting-slide-link {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 46%) minmax(0, 54%);
  column-gap: clamp(16px, 1.5vw, 24px);
  align-items: center;
  min-height: clamp(170px, 12vw, 210px);
  padding: 0;
  box-sizing: border-box;
}

.posting-thumb {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: clamp(112px, 9vw, 148px);
  min-height: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(23, 107, 255, 0.18), rgba(255, 255, 255, 0.02)),
    linear-gradient(150deg, #071a2b 0%, #0d2748 62%, #123e70 100%);
  color: #fff;
  box-sizing: border-box;
}

.posting-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.posting-thumb::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 62%;
  background: linear-gradient(180deg, transparent, rgba(7, 26, 43, 0.72));
}

.posting-thumb span,
.posting-thumb strong {
  position: absolute;
  z-index: 1;
}

.posting-thumb span {
  top: 12px;
  left: 14px;
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.posting-thumb strong {
  left: 14px;
  right: 14px;
  bottom: 12px;
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.1;
}

.posting-thumb--compact {
  height: clamp(112px, 8.5vw, 140px);
  min-height: 0;
}

.posting-slide-copy {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  box-sizing: border-box;
}

.posting-slide-copy h3,
.posting-card h3 {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow-wrap: anywhere;
  word-break: keep-all;
  margin: 5px 0 7px;
  color: var(--ink-navy);
  font-size: clamp(17px, 1.1vw, 20px);
  line-height: 1.28;
}

.posting-slide-copy p,
.posting-card p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow-wrap: anywhere;
  word-break: keep-all;
  margin: 0;
  color: var(--secondary-text);
  font-size: 13px;
  line-height: 1.5;
}

.posting-slide-copy small,
.posting-card small {
  display: block;
  margin-top: 10px;
  color: var(--secondary-text);
  font-size: 12px;
}

.posting-slider-controls {
  width: min(240px, 100%);
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 32px;
  gap: 8px;
  align-items: center;
  justify-self: center;
}

.posting-slider-controls button {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--deep-navy);
}

.posting-slider-controls > button {
  width: 32px;
  height: 32px;
  display: inline-grid;
  place-items: center;
}

.posting-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.posting-dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border-radius: 999px;
  background: #d8e1ed;
}

.posting-dots button[aria-selected="true"] {
  width: 24px;
  background: var(--signal-blue);
}

.posts-archive-page {
  max-width: 1280px;
}

.posts-archive-hero {
  padding: clamp(20px, 2vw, 28px) 0;
}

.posts-archive-hero h1 {
  max-width: 780px;
  font-size: clamp(30px, 3.2vw, 48px);
}

.posts-archive-panel {
  margin-top: 10px;
}

.post-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

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

.posting-card {
  min-width: 0;
}

.posting-card a {
  height: 100%;
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  transition: border-color 160ms ease, transform 160ms ease;
}

.posting-card a:hover {
  border-color: rgba(23, 107, 255, 0.42);
  transform: translateY(-2px);
}

.posting-card a:hover .posting-thumb img {
  transform: scale(1.025);
}

.posting-card .posting-thumb img {
  transition: transform 220ms ease;
}

.posting-card-body {
  padding: 18px;
}

@media (max-width: 1180px) {
  .home-latest-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .posting-slide-link {
    grid-template-columns: minmax(0, 46%) minmax(0, 54%);
  }

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

@media (max-width: 760px) {
  .home-latest-grid,
  .posting-slide-link,
  .posting-grid {
    grid-template-columns: 1fr;
  }

  .home-latest-column + .home-latest-column {
    padding-top: 18px;
    padding-left: 0;
    border-top: 1px solid var(--border);
    border-left: 0;
  }

  .home-latest-panel .section-head {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .posting-thumb {
    height: auto;
    min-height: 0;
  }

  .posting-slide-link {
    min-height: 0;
  }
}

@media (max-width: 767px) {
  .home-layout .trade-hero {
    min-height: 300px;
  }

  .hero-search {
    align-items: stretch;
    flex-direction: column;
    padding: 10px;
  }

  .hero-search input,
  .hero-search button {
    width: 100%;
  }

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

  .dashboard-sidebar .quick-list {
    display: none;
  }

  .data-table-shell,
  .data-table-shell--commodity {
    grid-template-columns: 1fr;
  }
}
