/* v307 - unified AmSpec workspace theme, Atlas decision surface and Studio viewport */
:root {
  --v307-red: #c8101e;
  --v307-red-dark: #9f111b;
  --v307-red-soft: #fff1f2;
  --v307-navy: #122033;
  --v307-text: #101c2d;
  --v307-muted: #66758a;
  --v307-line: #dfe6ee;
  --v307-line-strong: #cfd9e5;
  --v307-bg: #f5f7fa;
  --v307-surface: #ffffff;
  --v307-green: #17845d;
  --v307-amber: #c77b12;
  --v307-shadow: 0 7px 24px rgba(18, 32, 51, .055);
  --v307-shadow-raised: 0 15px 38px rgba(18, 32, 51, .10);
  --v307-radius: 12px;
}

html { background: var(--v307-bg); }
body { font-family: Inter, "Segoe UI", Arial, sans-serif; color: var(--v307-text); }
body:not(.endpoint-auth-login) { background: var(--v307-bg) !important; }
body:not(.endpoint-auth-login) .app-shell {
  display: grid !important;
  grid-template-columns: 224px minmax(0, 1fr) !important;
  min-height: 100vh;
  background: var(--v307-bg) !important;
}
body:not(.endpoint-auth-login) .content {
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  padding: 0 16px 34px !important;
  background: var(--v307-bg) !important;
}

/* Light, quiet navigation matching the supplied workspace reference. */
body .platform-sidebar-v295.sidebar.sidebar-dense {
  position: sticky !important;
  top: 0 !important;
  width: 224px !important;
  min-width: 224px !important;
  height: 100vh !important;
  padding: 16px 14px !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  color: var(--v307-text) !important;
  border-right: 1px solid var(--v307-line) !important;
  background: #fff !important;
  box-shadow: none !important;
}
body .platform-sidebar-v295 .brand-panel-premium {
  min-height: 126px !important;
  margin: 0 0 16px !important;
  padding: 6px 8px 15px !important;
  border: 0 !important;
  border-bottom: 1px solid #edf1f5 !important;
  border-radius: 0 !important;
  background: transparent !important;
}
body .platform-sidebar-v295 .brand-logo-large {
  width: 132px !important;
  max-width: 132px !important;
  height: 60px !important;
  object-fit: contain !important;
  object-position: left center !important;
}
body .platform-sidebar-v295 .brand-subtitle { color: var(--v307-text) !important; font-size: 10px !important; letter-spacing: .055em !important; }
body .platform-sidebar-v295 .brand-tag { color: var(--v307-muted) !important; font-size: 9px !important; }
body .platform-sidebar-v295 .platform-nav-v295 { gap: 8px !important; padding-top: 2px !important; }
body .platform-sidebar-v295 .nav-module-v294 {
  overflow: hidden !important;
  border: 1px solid transparent !important;
  border-radius: 11px !important;
  background: transparent !important;
}
body .platform-sidebar-v295 .nav-module-v294[open] {
  border-color: var(--v307-line) !important;
  background: #fff !important;
  box-shadow: var(--v307-shadow) !important;
}
body .platform-sidebar-v295 .nav-module-v294 summary {
  min-height: 50px !important;
  padding: 9px 10px !important;
  grid-template-columns: 20px minmax(0, 1fr) 14px !important;
  gap: 9px !important;
  color: var(--v307-text) !important;
}
body .platform-sidebar-v295 .nav-module-v294 summary > svg { color: #53647a !important; }
body .platform-sidebar-v295 .nav-module-v294 summary span { color: var(--v307-text) !important; font-size: 12.5px !important; font-weight: 800 !important; }
body .platform-sidebar-v295 .nav-module-v294 summary small { color: var(--v307-muted) !important; font-size: 9px !important; font-weight: 600 !important; }
body .platform-sidebar-v295 .nav-module-body-v294 { gap: 3px !important; padding: 2px 7px 9px !important; }
body .platform-sidebar-v295 .nav-module-body-v294 .nav-link {
  min-height: 36px !important;
  height: 36px !important;
  padding: 0 9px !important;
  grid-template-columns: 18px minmax(0,1fr) !important;
  gap: 8px !important;
  color: #425269 !important;
  border-radius: 8px !important;
  font-size: 10.5px !important;
  font-weight: 750 !important;
  white-space: normal !important;
}
body .platform-sidebar-v295 .nav-module-body-v294 .nav-link:hover { color: var(--v307-red) !important; background: #fff6f6 !important; }
body .platform-sidebar-v295 .nav-module-body-v294 .nav-link.active {
  color: #fff !important;
  background: var(--v307-red) !important;
  box-shadow: 0 8px 18px rgba(200,16,30,.18) !important;
}
body .platform-sidebar-v295 .sidebar-footer { border-top-color: var(--v307-line) !important; }
body .platform-sidebar-v295 .platform-language-v306,
body .platform-sidebar-v295 .platform-quick-v295,
body .platform-sidebar-v295 .user-card,
body .platform-sidebar-v295 .logout-link { border-color: var(--v307-line) !important; background: #f8fafc !important; color: #425269 !important; }

/* Header and common chrome. */
body .platform-topbar-v295 {
  width: calc(100% + 32px) !important;
  height: 108px !important;
  min-height: 108px !important;
  margin: 0 -16px 12px !important;
  overflow: visible !important;
  border: 0 !important;
  border-bottom: 1px solid var(--v307-line) !important;
  border-radius: 0 !important;
  background: rgba(255,255,255,.98) !important;
  box-shadow: 0 4px 18px rgba(18,32,51,.035) !important;
}
body .platform-topbar-v295 .ops-topbar-row-v291 {
  height: 66px !important;
  min-height: 66px !important;
  padding: 8px 18px !important;
  grid-template-columns: minmax(220px,270px) minmax(340px,1fr) auto auto auto !important;
  gap: 14px !important;
}
body .ops-topbar-brand-v291 { gap: 10px !important; }
body .ops-topbar-brand-v291 img { width: 90px !important; height: 38px !important; }
body .ops-topbar-brand-v291 small { color: var(--v307-red) !important; font-size: 9px !important; letter-spacing: .08em !important; }
body .ops-topbar-brand-v291 strong { color: var(--v307-text) !important; font-size: 11.5px !important; }
body .ops-command-v291 {
  width: min(100%, 560px) !important;
  height: 42px !important;
  justify-self: center;
  border-color: var(--v307-line-strong) !important;
  border-radius: 10px !important;
  background: #fff !important;
  box-shadow: 0 5px 15px rgba(18,32,51,.05) !important;
}
body .ops-command-v291 button { width: 44px !important; height: 40px !important; border-radius: 8px !important; background: var(--v307-red) !important; }
body .ops-live-v291 { min-width: 128px !important; }
body .platform-language-top-v306 { height: 38px !important; border-radius: 8px !important; }
body .ops-tools-v291 a { color: #415269 !important; border-color: transparent !important; background: transparent !important; box-shadow: none !important; }
body .platform-topbar-v295 .ops-tabs-v291 {
  height: 42px !important;
  min-height: 42px !important;
  padding: 0 18px !important;
  gap: 18px !important;
  border-top: 1px solid #f0f3f6 !important;
  background: #fff !important;
}
body .ops-tabs-v291 a { min-height: 41px !important; padding: 0 8px !important; color: #26354a !important; font-size: 10.5px !important; font-weight: 800 !important; }
body .ops-tabs-v291 a.active { color: var(--v307-red) !important; border-bottom-color: var(--v307-red) !important; }
body .ops-tabs-v291 .atlas-link-v291 { height: 36px !important; min-height: 36px !important; margin-left: auto !important; padding: 0 15px !important; border-radius: 8px !important; color: #fff !important; background: var(--v307-red) !important; box-shadow: 0 8px 20px rgba(200,16,30,.18) !important; }

body .panel, body .card, body .cc-panel-v291, body .stuffing-panel-v295 {
  border: 1px solid var(--v307-line) !important;
  border-radius: var(--v307-radius) !important;
  background: #fff !important;
  box-shadow: var(--v307-shadow) !important;
}
body input, body select, body textarea { border-color: var(--v307-line-strong) !important; border-radius: 8px !important; font-family: inherit; }
body .btn, body .btn-primary, body .btn-secondary, body .stuffing-primary-v295 {
  min-height: 40px !important;
  height: 40px !important;
  border-radius: 8px !important;
  font-size: 11px !important;
}

/* Command Center faithful to the supplied theme. */
body.endpoint-main-dashboard .command-center-v291 { max-width: 1680px !important; gap: 12px !important; }
body.endpoint-main-dashboard .cc-hero-amspec-v297.cc-hero-v291 {
  min-height: 205px !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 1px solid var(--v307-line) !important;
  border-radius: 12px !important;
  background-image: url('img/amspec-command-hero-bg.jpeg') !important;
  background-position: center center !important;
  background-size: cover !important;
  box-shadow: var(--v307-shadow) !important;
}
body.endpoint-main-dashboard .cc-hero-amspec-v297::before,
body.endpoint-main-dashboard .cc-hero-amspec-v297::after { content: none !important; }
body.endpoint-main-dashboard .cc-hero-copy-v297 { max-width: 520px !important; padding: 35px 34px !important; }
body.endpoint-main-dashboard .cc-hero-copy-v297 > span { color: var(--v307-red) !important; font-size: 9px !important; }
body.endpoint-main-dashboard .cc-hero-v291 h1 { margin: 8px 0 10px !important; color: var(--v307-text) !important; font-size: 30px !important; line-height: 1.08 !important; }
body.endpoint-main-dashboard .cc-hero-v291 p { max-width: 410px !important; color: #26364b !important; font-size: 13px !important; line-height: 1.5 !important; }
body.endpoint-main-dashboard .cc-hero-actions-v297.cc-quick-actions-v291 {
  top: 25px !important;
  right: 25px !important;
  gap: 7px !important;
  padding: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  backdrop-filter: none !important;
}
body.endpoint-main-dashboard .cc-hero-actions-v297 a {
  min-width: 88px !important;
  height: 38px !important;
  border: 1px solid rgba(204,214,226,.9) !important;
  border-radius: 8px !important;
  color: var(--v307-text) !important;
  background: rgba(255,255,255,.9) !important;
  box-shadow: 0 5px 14px rgba(18,32,51,.055) !important;
  font-size: 10px !important;
}
body.endpoint-main-dashboard .cc-hero-actions-v297 a:first-child { color: #fff !important; border-color: var(--v307-red) !important; background: var(--v307-red) !important; }
body.endpoint-main-dashboard .cc-metrics-icons-v297.cc-metrics-v291 { gap: 10px !important; grid-template-columns: repeat(5,minmax(0,1fr)) !important; }
body.endpoint-main-dashboard .cc-metrics-icons-v297 article {
  min-height: 104px !important;
  padding: 16px !important;
  gap: 13px !important;
  border-radius: 11px !important;
}
body.endpoint-main-dashboard .cc-kpi-icon-v297 { flex: 0 0 46px !important; width: 46px !important; height: 46px !important; border-radius: 10px !important; }
body.endpoint-main-dashboard .cc-kpi-icon-v297 svg { width: 25px !important; height: 25px !important; }
body.endpoint-main-dashboard .cc-kpi-copy-v297 small { color: var(--v307-muted) !important; font-size: 8px !important; letter-spacing: .07em !important; }
body.endpoint-main-dashboard .cc-kpi-copy-v297 strong { color: #a61723 !important; font-size: clamp(15px,1.25vw,20px) !important; }
body.endpoint-main-dashboard .cc-kpi-copy-v297 span { color: #27374b !important; font-size: 9px !important; }
body .cc-kpi-icon-operating-v307 { position: relative !important; }
body .cc-kpi-icon-operating-v307 .cc-berth-ship-v307 { width: 27px !important; height: 27px !important; }
body .cc-kpi-icon-operating-v307 .cc-berth-anchor-v307 {
  position: absolute !important;
  right: 5px !important;
  bottom: 4px !important;
  width: 14px !important;
  height: 14px !important;
  padding: 2px;
  color: var(--v307-green) !important;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #e8f7f0;
}
body.endpoint-main-dashboard .cc-layout-v291 { grid-template-columns: minmax(0,1fr) 320px !important; gap: 12px !important; }
body.endpoint-main-dashboard .cc-panel-v291 { border-radius: 11px !important; }
body.endpoint-main-dashboard .cc-panel-v291 > header { min-height: 66px !important; padding: 14px 16px !important; }
body.endpoint-main-dashboard .cc-panel-v291 h2 { font-size: 15px !important; }
body.endpoint-main-dashboard .cc-panel-v291 header span { font-size: 8px !important; }
body.endpoint-main-dashboard .cc-table-wrap-v291 table { font-size: 10px !important; }
body.endpoint-main-dashboard .cc-table-wrap-v291 th { height: 35px !important; font-size: 8px !important; }
body.endpoint-main-dashboard .cc-table-wrap-v291 td { height: 50px !important; padding: 7px 12px !important; }

/* Stuffing: operational hierarchy, compact automation and clear active workspace. */
body .stuffing-command-v295, body .stuffing-workspace-v295 { width: 100% !important; max-width: 1680px !important; margin: 0 auto !important; padding: 0 0 28px !important; gap: 12px !important; }
body .stuffing-command-head-v295, body .stuffing-booking-head-v295 {
  min-height: 88px !important;
  padding: 18px 20px !important;
  border: 1px solid var(--v307-line) !important;
  border-radius: 12px !important;
  background: #fff !important;
  box-shadow: var(--v307-shadow) !important;
}
body .stuffing-command-head-v295 h1, body .stuffing-booking-title-v295 h1 { font-size: 27px !important; letter-spacing: -.02em !important; }
body .stuffing-command-head-v295 p, body .stuffing-booking-title-v295 p { color: var(--v307-muted) !important; font-size: 12px !important; }
body .stuffing-command-head-v295 a, body .stuffing-command-head-v295 button,
body .stuffing-booking-state-v295 a { height: 38px !important; min-height: 38px !important; border-radius: 8px !important; font-size: 10px !important; }
body .stuffing-command-kpis-v295 { grid-template-columns: repeat(6,minmax(0,1fr)) !important; gap: 9px !important; }
body .stuffing-command-kpis-v295 a { min-height: 92px !important; padding: 14px !important; gap: 10px !important; border-radius: 11px !important; }
body .stuffing-command-kpis-v295 > a > svg { flex: 0 0 26px !important; width: 26px !important; height: 26px !important; }
body .stuffing-command-kpis-v295 b { font-size: 25px !important; }
body .stuffing-command-kpis-v295 small { font-size: 9px !important; }
body .stuffing-command-layout-v295 { grid-template-columns: minmax(0,1fr) 330px !important; gap: 12px !important; }
body .stuffing-command-main-v295, body .stuffing-command-side-v295 > section { border-radius: 12px !important; box-shadow: var(--v307-shadow) !important; }
body .stuffing-command-filters-v295 { padding: 10px !important; }
body .stuffing-command-table-v295 { border-radius: 0 0 11px 11px !important; box-shadow: none !important; }
body .stuffing-command-table-v295 .head,
body .stuffing-command-table-v295 .row {
  grid-template-columns: 105px 135px minmax(165px,1.2fr) minmax(125px,.9fr) 75px 120px 90px 20px !important;
  gap: 8px !important;
  min-width: 0 !important;
  padding-inline: 12px !important;
}
body .stuffing-command-table-v295 .head { background: var(--v307-navy) !important; }
body .stuffing-command-table-v295 .row { min-height: 62px !important; }
body .stuffing-command-side-v295 { grid-template-columns: 1fr !important; gap: 12px !important; }
body .stuffing-command-side-v295 form > label:first-of-type { position: relative; }
body .stuffing-command-side-v295 form > label:first-of-type input[type="file"] {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  opacity: 0 !important;
  cursor: pointer !important;
}
body .stuffing-command-side-v295 form.is-importing { opacity: .7; pointer-events: none; }
body .stuffing-booking-label-line {
  grid-template-columns: 35.5mm minmax(0,1fr) !important;
  column-gap: 1mm !important;
}
body .stuffing-booking-label-line span { font-size: 6pt !important; }
body .stuffing-booking-label-line b { font-size: 6.5pt !important; }
body .stuffing-booking-label-line.qr-safe b { font-size: 5.5pt !important; }
body .stuffing-booking-strip-v295 { overflow: hidden; border: 1px solid var(--v307-line) !important; border-radius: 11px !important; background: #fff; box-shadow: var(--v307-shadow); }
body .stuffing-booking-strip-v295 > div { min-height: 76px !important; padding: 13px 15px !important; }
body .stuffing-workspace-nav-v295 {
  gap: 4px !important;
  padding: 7px !important;
  overflow-x: auto !important;
  flex-wrap: nowrap !important;
  border: 1px solid var(--v307-line) !important;
  border-radius: 11px !important;
  background: #fff !important;
  box-shadow: var(--v307-shadow) !important;
}
body .stuffing-workspace-nav-v295 a { flex: 1 0 92px !important; min-width: 92px !important; min-height: 52px !important; padding: 6px 7px !important; border-radius: 8px !important; font-size: 10px !important; }
body .stuffing-workspace-nav-v295 a.active { color: #fff !important; background: var(--v307-red) !important; box-shadow: 0 7px 16px rgba(200,16,30,.17) !important; }
body .stuffing-workspace-nav-v295 a em { display: grid; min-width: 19px; height: 19px; padding: 0 4px; place-items: center; border-radius: 10px; color: #53647a; background: #edf2f7; font-size: 8px; font-style: normal; font-weight: 900; }
body .stuffing-workspace-nav-v295 a em.attention { color: #9a4f00; background: #fff0d6; }
body .stuffing-workspace-nav-v295 a.active em { color: var(--v307-red); background: #fff; }
body .stuffing-next-action-v307 {
  display: grid;
  grid-template-columns: 36px minmax(0,1fr) minmax(130px,180px) auto;
  align-items: center;
  gap: 12px;
  min-height: 72px;
  padding: 11px 14px;
  border: 1px solid #f1cbd0;
  border-left: 4px solid var(--v307-red);
  border-radius: 10px;
  background: linear-gradient(90deg,#fff7f8,#fff 42%);
  box-shadow: var(--v307-shadow);
}
body .stuffing-next-action-v307 > svg { width: 24px; height: 24px; color: var(--v307-red); }
body .stuffing-next-action-v307 > span { display: grid; min-width: 0; }
body .stuffing-next-action-v307 small { color: var(--v307-red); font-size: 8px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
body .stuffing-next-action-v307 b { margin-top: 2px; font-size: 13px; }
body .stuffing-next-action-v307 p { margin: 2px 0 0; color: var(--v307-muted); font-size: 9.5px; }
body .stuffing-next-action-v307 > div { display: grid; grid-template-columns: auto minmax(90px,1fr); align-items: center; gap: 8px; }
body .stuffing-next-action-v307 > div strong { color: var(--v307-red); font-size: 13px; }
body .stuffing-next-action-v307 > div span { position: relative; height: 6px; overflow: hidden; border-radius: 4px; background: #e8edf3; }
body .stuffing-next-action-v307 > div i { position: absolute; inset: 0 auto 0 0; border-radius: inherit; background: var(--v307-red); }
body .stuffing-next-action-v307 > a { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 0 12px; border-radius: 7px; color: #fff; background: var(--v307-red); font-size: 9.5px; font-weight: 850; text-decoration: none; white-space: nowrap; }
body .stuffing-next-action-v307 > a svg { width: 14px; }
body [data-auto-import].is-importing { opacity: .68; pointer-events: none; }
body .stuffing-kpis-v295 { gap: 9px !important; }
body .stuffing-kpis-v295 a { min-height: 86px !important; padding: 13px !important; border-radius: 10px !important; }
body .stuffing-container-ribbon-v295 { border-radius: 11px !important; border-color: var(--v307-line) !important; box-shadow: var(--v307-shadow) !important; }
body .stuffing-workflow-board-v295 a, body .stuffing-ai-panel-v295 article { border-radius: 9px !important; }

/* Photo Studio: one scroll surface, centered responsive A4 canvas. */
body .stuffing-photo-studio-shell-v299 {
  grid-template-columns: minmax(220px,250px) minmax(520px,1fr) minmax(235px,270px) !important;
  gap: 12px !important;
  align-items: start !important;
}
body .stuffing-studio-library-v299, body .stuffing-studio-preview-v299, body .stuffing-studio-actions-v299 > section { border-radius: 11px !important; }
body .stuffing-studio-section-v299 { gap: 6px !important; padding: 8px 0 !important; }
body .stuffing-studio-section-v299 button { min-height: 64px !important; grid-template-columns: 62px minmax(0,1fr) !important; gap: 8px !important; padding: 7px !important; border-radius: 9px !important; }
body .stuffing-studio-section-v299 img { width: 62px !important; height: 48px !important; border-radius: 6px !important; }
body .stuffing-studio-section-v299 span { font-size: 10px !important; line-height: 1.25 !important; }
body .stuffing-studio-library-v299 {
  align-self: start;
  position: sticky;
  top: 80px;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  scrollbar-gutter: stable;
}
body .stuffing-studio-preview-v299 > header { min-height: 70px !important; padding: 14px 16px !important; }
body .stuffing-studio-preview-v299 h2 { font-size: 17px !important; }
body .stuffing-studio-preview-v299 p { font-size: 10px !important; }
body .stuffing-report-options-v302 { grid-template-columns: repeat(2,minmax(0,1fr)) !important; gap: 8px !important; margin: 9px 0 !important; padding: 11px !important; border-radius: 9px !important; }
body .stuffing-report-options-v302 label { font-size: 9px !important; }
body .stuffing-report-options-v302 select, body .stuffing-report-options-v302 button { height: 38px !important; min-height: 38px !important; font-size: 11px !important; }
body .stuffing-report-options-v302 button { grid-column: 1 / -1 !important; }
body .studio-preview-frame-host-v302 {
  position: relative !important;
  display: flex !important;
  justify-content: center !important;
  align-items: flex-start !important;
  height: clamp(620px, calc(100vh - 350px), 820px) !important;
  min-height: 620px !important;
  padding: 20px !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  scrollbar-gutter: stable;
  border: 1px solid var(--v307-line-strong) !important;
  border-radius: 10px !important;
  background: #e9eef4 !important;
}
body .studio-preview-canvas-v307 { position: relative; flex: 0 0 auto; min-width: 1px; min-height: 1px; }
body .studio-preview-frame-host-v302 iframe {
  position: absolute !important;
  inset: 0 auto auto 0 !important;
  width: 794px !important;
  min-width: 794px !important;
  margin: 0 !important;
  overflow: hidden !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #fff !important;
  transform-origin: top left !important;
  box-shadow: 0 15px 36px rgba(18,32,51,.16) !important;
}
body .stuffing-studio-actions-v299 { gap: 12px !important; }
body .stuffing-studio-actions-v299 .stuffing-panel-v295 > header { padding: 13px 14px !important; }
body .stuffing-studio-actions-v299 h2 { font-size: 15px !important; }
body .stuffing-studio-actions-v299 p { font-size: 9px !important; }

/* Atlas: a decision surface, not a decorative pin map. */
body.endpoint-main-operations_atlas .content { height: 100vh !important; padding-bottom: 8px !important; overflow: hidden !important; }
body .atlas-control-v295 {
  height: calc(100vh - 128px) !important;
  min-height: 720px !important;
  grid-template-rows: 58px 62px 58px minmax(470px,1fr) 92px !important;
  gap: 9px !important;
}
body .atlas-command-head-v295 { min-height: 58px !important; padding: 8px 12px !important; border-radius: 10px !important; }
body .atlas-command-head-v295 h1 { font-size: 22px !important; }
body .atlas-command-head-v295 p { color: var(--v307-muted) !important; font-size: 9.5px !important; }
body .atlas-command-actions-v295 button, body .atlas-command-actions-v295 a { height: 36px !important; min-height: 36px !important; border-radius: 7px !important; font-size: 9px !important; }
body .atlas-kpi-rail-v296 { height: 62px !important; border-radius: 10px !important; border-color: var(--v307-line) !important; box-shadow: var(--v307-shadow) !important; }
body .atlas-kpi-rail-v296 a { min-height: 61px !important; padding: 8px 12px !important; }
body .atlas-kpi-rail-v296 small { font-size: 7.5px !important; }
body .atlas-kpi-rail-v296 b { font-size: 18px !important; }
body .atlas-filterbar-v295 { padding: 8px !important; border-radius: 10px !important; border-color: var(--v307-line) !important; }
body .atlas-filterbar-v295 select, body .atlas-filterbar-v295 input { height: 34px !important; min-height: 34px !important; font-size: 9.5px !important; }
body .atlas-view-modes-v295 button { height: 34px !important; min-height: 34px !important; border-radius: 6px !important; }
body .atlas-workspace-v295 { grid-template-columns: 270px minmax(0,1fr) 310px !important; height: 100% !important; gap: 10px !important; }
body .atlas-queue-v295, body .atlas-intelligence-v295 {
  position: relative !important;
  inset: auto !important;
  width: auto !important;
  height: 100% !important;
  border: 1px solid var(--v307-line) !important;
  border-radius: 10px !important;
  background: rgba(255,255,255,.985) !important;
  box-shadow: var(--v307-shadow) !important;
  backdrop-filter: none !important;
}
body .atlas-map-stage-v295 {
  position: relative !important;
  inset: auto !important;
  width: auto !important;
  min-width: 0 !important;
  height: 100% !important;
  border-color: #cbd6e2 !important;
  border-radius: 10px !important;
  box-shadow: var(--v307-shadow-raised) !important;
}
body .atlas-map-stage-v295::before, body .atlas-map-stage-v295::after { content: none !important; }
body .atlas-map-status-v295 { left: 12px !important; top: 12px !important; border-radius: 6px !important; }
body .atlas-layer-switch-v295 { left: 12px !important; top: 50px !important; }
body .atlas-layer-switch-v295 button { min-height: 28px !important; border-radius: 6px !important; }
body .atlas-map-legend-v295 { left: 12px !important; bottom: 12px !important; border-radius: 6px !important; }
body .atlas-port-context-v296 { left: auto !important; right: 12px !important; bottom: 12px !important; border-radius: 6px !important; }
body .atlas-terminal-hub-v296 {
  position: relative !important;
  display: grid !important;
  place-items: center !important;
  width: 30px !important;
  height: 30px !important;
  max-width: none !important;
  padding: 0 !important;
  border: 2px solid #fff !important;
  border-radius: 50% !important;
  color: #fff !important;
  background: var(--v307-navy) !important;
  box-shadow: 0 7px 18px rgba(18,32,51,.25) !important;
}
body .atlas-terminal-hub-v296 > svg { width: 14px !important; color: #fff !important; }
body .atlas-terminal-hub-v296 span {
  position: absolute !important;
  left: 36px !important;
  display: none !important;
  width: max-content;
  max-width: 180px;
  padding: 6px 8px;
  border-radius: 6px;
  color: #fff;
  background: rgba(18,32,51,.94);
}
body .atlas-terminal-hub-v296:hover span, body .atlas-terminal-hub-v296:focus-visible span { display: grid !important; }
body .atlas-marker-v295 { width: 34px !important; height: 34px !important; border-width: 2px !important; box-shadow: 0 5px 13px rgba(18,32,51,.24) !important; }
body .atlas-marker-v295::before { content: none !important; }
body .atlas-marker-v295.vessel { width: 40px !important; height: 30px !important; border-radius: 13px 13px 8px 8px !important; }
body .atlas-marker-v295 span { display: none !important; top: 34px !important; padding: 4px 7px !important; font-size: 8px !important; }
body .atlas-marker-v295:hover span, body .atlas-marker-v295.selected span { display: block !important; }
body .atlas-marker-v295.selected { z-index: 20 !important; transform: scale(1.12) !important; box-shadow: 0 0 0 5px rgba(200,16,30,.14),0 7px 17px rgba(18,32,51,.26) !important; }
body .atlas-object-drawer-v295 {
  top: 12px !important;
  right: 12px !important;
  width: min(300px,calc(100% - 24px)) !important;
  padding: 13px !important;
  border-radius: 9px !important;
  box-shadow: 0 18px 48px rgba(18,32,51,.20) !important;
}
body .atlas-object-drawer-v295 h2 { font-size: 17px !important; }
body .atlas-drawer-actions-v295 a { min-height: 31px !important; border-radius: 6px !important; }
body .atlas-queue-list-v295, body .atlas-action-list-v295, body .atlas-critical-list-v295 { scrollbar-width: thin; }
body .atlas-queue-item-v295 { min-height: 72px !important; }
body .atlas-queue-item-v295.selected { background: var(--v307-red-soft) !important; box-shadow: inset 3px 0 var(--v307-red) !important; }
body .atlas-critical-list-v295 a { min-height: 64px !important; }
body .atlas-bottom-deck-v295 { grid-template-columns: minmax(0,1.7fr) minmax(250px,.65fr) !important; gap: 10px !important; }
body .atlas-timeline-v295, body .atlas-summary-v295 { border: 1px solid var(--v307-line) !important; border-radius: 10px !important; box-shadow: var(--v307-shadow) !important; }

@media (max-width: 1320px) {
  body .platform-topbar-v295 .ops-topbar-row-v291 { grid-template-columns: minmax(190px,230px) minmax(280px,1fr) auto auto !important; }
  body .ops-tools-v291 { display: none !important; }
  body.endpoint-main-dashboard .cc-layout-v291 { grid-template-columns: minmax(0,1fr) 290px !important; }
  body .stuffing-command-layout-v295 { grid-template-columns: minmax(0,1fr) 300px !important; }
  body .stuffing-photo-studio-shell-v299 { grid-template-columns: 220px minmax(480px,1fr) !important; }
  body .stuffing-photo-studio-shell-v299 > .stuffing-studio-actions-v299 { grid-column: 1 / -1; display: grid !important; grid-template-columns: repeat(3,minmax(0,1fr)) !important; }
  body .atlas-workspace-v295 { grid-template-columns: 240px minmax(0,1fr) 280px !important; }
}

@media (max-width: 980px) {
  body:not(.endpoint-auth-login) .app-shell { display: block !important; }
  body .platform-sidebar-v295.sidebar.sidebar-dense {
    position: fixed !important;
    z-index: 300 !important;
    width: min(280px,86vw) !important;
    min-width: 0 !important;
    transform: translateX(-105%);
    box-shadow: 22px 0 52px rgba(18,32,51,.2) !important;
  }
  body.sidebar-open-v295 .platform-sidebar-v295.sidebar.sidebar-dense { transform: translateX(0); }
  body .platform-topbar-v295 .ops-topbar-row-v291 { grid-template-columns: 40px minmax(0,1fr) auto !important; }
  body .ops-command-v291, body .ops-live-v291, body .ops-tools-v291 { display: none !important; }
  body .stuffing-command-layout-v295 { grid-template-columns: 1fr !important; }
  body .stuffing-command-side-v295 { grid-template-columns: repeat(2,minmax(0,1fr)) !important; }
  body .stuffing-photo-studio-shell-v299 { display: block !important; }
  body .stuffing-photo-studio-shell-v299 > * { margin-bottom: 12px; }
  body .stuffing-studio-library-v299 { position: static; max-height: 340px; overflow-y: auto; }
  body .stuffing-photo-studio-shell-v299 > .stuffing-studio-actions-v299 { display: grid !important; grid-template-columns: repeat(2,minmax(0,1fr)) !important; }
  body.endpoint-main-operations_atlas .content { height: auto !important; overflow: visible !important; }
  body .atlas-control-v295 { height: auto !important; min-height: 0 !important; grid-template-rows: auto !important; }
  body .atlas-workspace-v295 { display: grid !important; grid-template-columns: 220px minmax(0,1fr) !important; height: 680px !important; }
  body .atlas-intelligence-v295 { display: none !important; }
}

@media (max-width: 700px) {
  body:not(.endpoint-auth-login) .content { padding: 0 8px 76px !important; }
  body .platform-topbar-v295 { width: calc(100% + 16px) !important; height: 100px !important; min-height: 100px !important; margin: 0 -8px 9px !important; }
  body .platform-topbar-v295 .ops-topbar-row-v291 { display: flex !important; height: 57px !important; min-height: 57px !important; padding: 7px 8px !important; }
  body .platform-topbar-v295 .ops-topbar-brand-v291 { flex: 0 0 92px !important; width: 92px !important; }
  body .platform-topbar-v295 .ops-topbar-brand-v291 img { width: 92px !important; }
  body .platform-topbar-v295 .ops-tabs-v291 { height: 43px !important; min-height: 43px !important; padding: 0 7px !important; gap: 5px !important; overflow-x: auto !important; }
  body .ops-tabs-v291 a { min-width: 78px !important; padding: 0 8px !important; }
  body .ops-tabs-v291 .atlas-link-v291 { min-width: 46px !important; padding: 0 9px !important; font-size: 0 !important; }
  body .ops-tabs-v291 .atlas-link-v291 svg { width: 17px; }
  body.endpoint-main-dashboard .cc-hero-amspec-v297.cc-hero-v291 { min-height: 325px !important; background-position: 62% center !important; }
  body.endpoint-main-dashboard .cc-hero-copy-v297 { padding: 22px 18px 8px !important; }
  body.endpoint-main-dashboard .cc-hero-v291 h1 { max-width: 260px; font-size: 27px !important; }
  body.endpoint-main-dashboard .cc-hero-v291 p { max-width: 285px !important; font-size: 11.5px !important; }
  body.endpoint-main-dashboard .cc-hero-actions-v297.cc-quick-actions-v291 { position: static !important; display: grid !important; grid-template-columns: repeat(2,minmax(0,1fr)) !important; margin: 8px 18px 18px !important; }
  body.endpoint-main-dashboard .cc-metrics-icons-v297.cc-metrics-v291 { grid-template-columns: repeat(2,minmax(0,1fr)) !important; }
  body.endpoint-main-dashboard .cc-metrics-icons-v297 article:last-child { grid-column: 1/-1; }
  body.endpoint-main-dashboard .cc-layout-v291 { grid-template-columns: 1fr !important; }
  body .stuffing-command-head-v295, body .stuffing-booking-head-v295 { padding: 15px !important; }
  body .stuffing-command-kpis-v295 { grid-template-columns: repeat(2,minmax(0,1fr)) !important; }
  body .stuffing-command-table-v295 { overflow: visible !important; }
  body .stuffing-command-table-v295 .head { display: none !important; }
  body .stuffing-command-table-v295 .row {
    position: relative;
    grid-template-columns: repeat(2,minmax(0,1fr)) !important;
    gap: 10px 12px !important;
    min-width: 0 !important;
    min-height: 0 !important;
    margin: 8px;
    padding: 14px !important;
    border: 1px solid var(--v307-line) !important;
    border-radius: 9px;
    background: #fff;
  }
  body .stuffing-command-table-v295 .row > span { gap: 2px; padding-top: 13px; }
  body .stuffing-command-table-v295 .row > span::before { position: absolute; margin-top: -13px; color: #7a889a; font-size: 7px; font-weight: 900; text-transform: uppercase; }
  body .stuffing-command-table-v295 .row > span:nth-child(1)::before { content: "Forecast"; }
  body .stuffing-command-table-v295 .row > span:nth-child(2)::before { content: "Booking / OS"; }
  body .stuffing-command-table-v295 .row > span:nth-child(3)::before { content: "Client / product"; }
  body .stuffing-command-table-v295 .row > span:nth-child(4)::before { content: "Place"; }
  body .stuffing-command-table-v295 .row > span:nth-child(5)::before { content: "Containers"; }
  body .stuffing-command-table-v295 .row > span:nth-child(6)::before { content: "Readiness"; }
  body .stuffing-command-table-v295 .row > span:nth-child(7)::before { content: "Status"; }
  body .stuffing-command-table-v295 .row > span:nth-child(3),
  body .stuffing-command-table-v295 .row > span:nth-child(4),
  body .stuffing-command-table-v295 .row > span:nth-child(7) { grid-column: 1 / -1; }
  body .stuffing-command-table-v295 .row > svg { position: absolute; right: 10px; top: 10px; }
  body .stuffing-command-side-v295 { grid-template-columns: 1fr !important; }
  body .stuffing-next-action-v307 { grid-template-columns: 32px minmax(0,1fr); }
  body .stuffing-next-action-v307 > div, body .stuffing-next-action-v307 > a { grid-column: 2; }
  body .stuffing-photo-studio-shell-v299 > .stuffing-studio-actions-v299 { grid-template-columns: 1fr !important; }
  body .studio-preview-frame-host-v302 { height: 68vh !important; min-height: 520px !important; padding: 12px !important; }
  body .atlas-kpi-rail-v296 { grid-template-columns: repeat(2,minmax(0,1fr)) !important; height: auto !important; }
  body .atlas-filterbar-v295 { grid-template-columns: 1fr 1fr !important; }
  body .atlas-filterbar-v295 label:nth-child(3), body .atlas-filterbar-v295 label:nth-child(4) { display: none !important; }
  body .atlas-search-filter-v295, body .atlas-view-modes-v295 { grid-column: 1/-1 !important; }
  body .atlas-workspace-v295 { display: flex !important; flex-direction: column; height: auto !important; }
  body .atlas-map-stage-v295 { order: 1; height: 60vh !important; min-height: 470px !important; }
  body .atlas-queue-v295 { order: 2; height: 270px !important; margin-top: 9px; }
  body .atlas-intelligence-v295 { order: 3; display: block !important; height: auto !important; margin-top: 9px; }
  body .atlas-object-drawer-v295 { top: auto !important; right: 8px !important; bottom: 8px !important; width: calc(100% - 16px) !important; max-height: 72%; overflow-y: auto; }
  body .atlas-bottom-deck-v295 { grid-template-columns: 1fr !important; }
}

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

/* v308 - dashboard alignment and command-center refinement */
body.endpoint-main-dashboard .command-center-v291 {
  max-width: 100% !important;
  gap: 14px !important;
}
body.endpoint-main-dashboard .cc-hero-amspec-v297.cc-hero-v291 {
  min-height: 188px !important;
  background-image:
    linear-gradient(90deg, rgba(255,255,255,.96) 0%, rgba(255,255,255,.92) 24%, rgba(255,255,255,.60) 46%, rgba(255,255,255,.10) 66%, rgba(255,255,255,0) 100%),
    url('img/amspec-command-hero-worldmap.jpg') !important;
  background-position: left center, center center !important;
  background-size: cover, cover !important;
}
body.endpoint-main-dashboard .cc-hero-copy-v297 {
  max-width: 430px !important;
  padding: 30px 30px 24px !important;
}
body.endpoint-main-dashboard .cc-hero-copy-v297 > span {
  letter-spacing: .22em !important;
}
body.endpoint-main-dashboard .cc-hero-v291 h1 {
  margin: 8px 0 12px !important;
  font-size: 31px !important;
  letter-spacing: -.03em !important;
}
body.endpoint-main-dashboard .cc-hero-v291 p {
  max-width: 360px !important;
  font-size: 13px !important;
  line-height: 1.42 !important;
}
body.endpoint-main-dashboard .cc-hero-actions-v297.cc-quick-actions-v291 {
  top: 22px !important;
  right: 22px !important;
  gap: 8px !important;
}
body.endpoint-main-dashboard .cc-hero-actions-v297 a {
  min-width: 84px !important;
  height: 36px !important;
  padding: 0 14px !important;
  border-radius: 10px !important;
  font-size: 10px !important;
  font-weight: 850 !important;
}
body.endpoint-main-dashboard .cc-metrics-v291 {
  gap: 14px !important;
}
body.endpoint-main-dashboard .cc-metrics-v291 article {
  min-height: 112px !important;
  padding: 18px 16px !important;
  align-items: center !important;
  gap: 14px !important;
  border-radius: 14px !important;
}
body.endpoint-main-dashboard .cc-kpi-icon-v297 {
  width: 66px !important;
  height: 66px !important;
  border-radius: 16px !important;
  background: linear-gradient(180deg,#fff7f7 0%,#fff1f1 100%) !important;
}
body.endpoint-main-dashboard .cc-kpi-copy-v297 strong {
  letter-spacing: -.02em !important;
}
body.endpoint-main-dashboard .cc-layout-v291 {
  grid-template-columns: minmax(0,1fr) 320px !important;
  gap: 14px !important;
  align-items: start !important;
}
body.endpoint-main-dashboard .cc-main-v291,
body.endpoint-main-dashboard .cc-rail-v291 {
  gap: 14px !important;
}
body.endpoint-main-dashboard .cc-panel-v291 {
  overflow: hidden !important;
  border-radius: 14px !important;
}
body.endpoint-main-dashboard .cc-panel-v291 > header {
  min-height: 76px !important;
  padding: 16px 18px !important;
}
body.endpoint-main-dashboard .cc-panel-v291 header span {
  font-size: 9px !important;
  letter-spacing: .22em !important;
}
body.endpoint-main-dashboard .cc-panel-v291 h2 {
  font-size: 16px !important;
  letter-spacing: -.02em !important;
}
body.endpoint-main-dashboard .cc-panel-v291 header a {
  height: 44px !important;
  min-height: 44px !important;
  padding: 0 18px !important;
  border-radius: 12px !important;
  font-size: 11px !important;
}
body.endpoint-main-dashboard .cc-lineup-v291 > header {
  padding-bottom: 14px !important;
}
body.endpoint-main-dashboard .cc-table-wrap-v291 {
  padding: 0 !important;
}
body.endpoint-main-dashboard .cc-lineup-table-v307 {
  width: 100% !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  table-layout: fixed !important;
}
body.endpoint-main-dashboard .cc-lineup-table-v307 .cc-col-etb { width: 11%; }
body.endpoint-main-dashboard .cc-lineup-table-v307 .cc-col-terminal { width: 10.5%; }
body.endpoint-main-dashboard .cc-lineup-table-v307 .cc-col-vessel { width: 13.5%; }
body.endpoint-main-dashboard .cc-lineup-table-v307 .cc-col-client { width: 10.5%; }
body.endpoint-main-dashboard .cc-lineup-table-v307 .cc-col-product { width: 11.5%; }
body.endpoint-main-dashboard .cc-lineup-table-v307 .cc-col-qty { width: 12%; }
body.endpoint-main-dashboard .cc-lineup-table-v307 .cc-col-status { width: 10%; }
body.endpoint-main-dashboard .cc-lineup-table-v307 .cc-col-os { width: 11%; }
body.endpoint-main-dashboard .cc-table-wrap-v291 th {
  height: 36px !important;
  padding: 0 14px !important;
  font-size: 8px !important;
}
body.endpoint-main-dashboard .cc-table-wrap-v291 td {
  height: 46px !important;
  padding: 9px 12px !important;
  font-size: 10px !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  word-break: normal !important;
}
body.endpoint-main-dashboard .cc-lineup-v291 td:nth-child(1),
body.endpoint-main-dashboard .cc-lineup-v291 td:nth-child(2),
body.endpoint-main-dashboard .cc-lineup-v291 td:nth-child(3) {
  width: auto !important;
}
body.endpoint-main-dashboard .cc-lineup-v291 td strong {
  display: block !important;
  font-size: 10.5px !important;
  line-height: 1.2 !important;
}
body.endpoint-main-dashboard .cc-lineup-v291 td small {
  margin-top: 2px !important;
  line-height: 1.18 !important;
}
body.endpoint-main-dashboard .cc-lineup-v291 td:nth-child(5) {
  max-width: 0;
}
body.endpoint-main-dashboard .cc-lineup-v291 td:nth-child(6),
body.endpoint-main-dashboard .cc-lineup-v291 th:nth-child(6) {
  text-align: right !important;
}
body.endpoint-main-dashboard .cc-lineup-v291 td:nth-child(7),
body.endpoint-main-dashboard .cc-lineup-v291 th:nth-child(7) {
  text-align: center !important;
}
body.endpoint-main-dashboard .cc-lineup-v291 td:nth-child(8) a,
body.endpoint-main-dashboard .cc-lineup-v291 td:nth-child(8) {
  white-space: nowrap !important;
}
body.endpoint-main-dashboard .cc-lineup-v291 mark {
  min-width: 82px !important;
  justify-content: center !important;
}
body.endpoint-main-dashboard .cc-ai-v291,
body.endpoint-main-dashboard .cc-weather-v291,
body.endpoint-main-dashboard .cc-atlas-quick-v297 {
  align-self: start !important;
}
body.endpoint-main-dashboard .cc-ai-v291 a {
  min-height: 54px !important;
  padding: 0 16px !important;
  border-radius: 12px !important;
  font-size: 12px !important;
}
body.endpoint-main-dashboard .cc-weather-v291 > header button {
  height: 36px !important;
  min-height: 36px !important;
  padding: 0 14px !important;
  border-radius: 10px !important;
}
body.endpoint-main-dashboard .cc-weather-days-v291 {
  grid-template-columns: repeat(5, minmax(0,1fr)) !important;
  gap: 10px !important;
}
body.endpoint-main-dashboard .cc-weather-days-v291 article {
  min-height: 88px !important;
  border-radius: 12px !important;
}
@media (max-width: 1280px) {
  body.endpoint-main-dashboard .cc-layout-v291 {
    grid-template-columns: minmax(0,1fr) 300px !important;
  }
  body.endpoint-main-dashboard .cc-lineup-table-v307 .cc-col-client { width: 9.5%; }
  body.endpoint-main-dashboard .cc-lineup-table-v307 .cc-col-product { width: 10%; }
  body.endpoint-main-dashboard .cc-lineup-table-v307 .cc-col-os { width: 10%; }
}
@media (max-width: 1080px) {
  body.endpoint-main-dashboard .cc-hero-amspec-v297.cc-hero-v291 {
    min-height: 270px !important;
    background-position: 66% center !important;
  }
}
