/* Workspace page: 3PL requests, platform explorer adjustments,
   collaboration tiles and the shipment-item link map.
   Mock UI colours follow the app palette used in commercial-demo.css. */

.ws-hero { background: linear-gradient(180deg, #fcfcfd 0%, #f7f8fa 78%, #fff 100%); }
.ws-hero::after { border-color: #e9ecf0; }

.flow-heading h2 { max-width: 560px; }

/* ── 3PL requests ──────────────────────────────────────────────────────── */

.sr-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 340px);
  align-items: end;
  gap: 48px;
  margin-bottom: 40px;
}

.sr-head .section-head { margin-bottom: 0; }

.sr-aside {
  padding-left: 18px;
  border-left: 2px solid var(--line);
  font-size: 13px;
  line-height: 1.75;
}

.sr-aside strong { color: var(--ink); font-weight: 600; }

.sr-window {
  overflow: hidden;
  border: 1px solid #d3dfeb;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 8px rgb(20 40 63 / 6%);
  color: #152d4b;
  text-align: left;
  font-variant-numeric: tabular-nums;
}

.sr-window p { margin: 0; color: inherit; }

.sr-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 50px;
  padding: 0 20px;
  border-bottom: 1px solid #e8ecf2;
  color: #4b5b73;
  font-size: 13px;
}

.sr-crumb { display: inline-flex; align-items: center; gap: 8px; min-width: 0; white-space: nowrap; }
.sr-crumb .icon { width: 16px; height: 16px; }
.sr-crumb .icon:nth-of-type(2) { width: 14px; height: 14px; transform: rotate(-90deg); color: #9aa7b9; }
.sr-crumb strong { color: #152d4b; font-weight: 600; }
.sr-bar-org { font-weight: 600; color: #152d4b; white-space: nowrap; }

.sr-body { display: grid; grid-template-columns: 250px minmax(0, 1fr); }

.sr-categories {
  padding: 18px 12px;
  border-right: 1px solid #e8ecf2;
  background: #fbfcfe;
}

.sr-categories > .sr-label { margin: 0 10px 10px; }

.sr-tabs { display: flex; flex-direction: column; gap: 2px; }

.sr-tab {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #34465f;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  text-align: left;
  white-space: nowrap;
  transition: background-color 0.15s, color 0.15s;
}

.sr-tab .icon { width: 18px; height: 18px; color: #6b7d95; transition: color 0.15s; }
.sr-tab:hover { background: #eef3f9; color: #152d4b; }
.sr-tab[aria-selected='true'] { background: #0f5bab; color: #fff; font-weight: 600; }
.sr-tab[aria-selected='true'] .icon { color: #fff; }
.sr-tab:focus-visible { outline: 2px solid #0f5bab; outline-offset: 2px; }

.sr-form { min-width: 0; padding: 26px 30px 0; }
.sr-form:focus-visible { outline: 2px solid #0f5bab; outline-offset: -4px; }
.sr-form-inner { animation: sr-in 0.18s ease-out; }

@keyframes sr-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}

.sr-form-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }

.sr-kind {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #0b5cb5 !important;
  font-size: 13px;
  font-weight: 600;
}

.sr-kind .icon { width: 16px; height: 16px; }

.sr-form h3 {
  margin-top: 6px;
  font-size: 22px;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: #152d4b;
}

.sr-scope { margin-top: 4px !important; color: #5f6f86 !important; font-size: 14px; }

.sr-status {
  flex-shrink: 0;
  padding: 3px 10px;
  border-radius: 999px;
  background: #f2f4f7;
  color: #4b5b73;
  font-size: 12px;
  font-weight: 600;
}

.sr-label {
  margin: 24px 0 9px !important;
  color: #8a97ab !important;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

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

.sr-fields > div {
  min-width: 0;
  padding: 9px 12px;
  border: 1px solid #dfe5ee;
  border-radius: 8px;
}

.sr-fields dt { color: #7d8ba2; font-size: 12px; line-height: 1.4; }
.sr-fields dd { margin: 3px 0 0; font-size: 14px; font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; }

.sr-relations { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }

.sr-links,
.sr-providers,
.sr-files {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sr-links li {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 12px 6px 10px;
  border: 1px solid #cfe0f7;
  border-radius: 8px;
  background: #f3f8ff;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
}

.sr-links .icon { width: 16px; height: 16px; color: #0b5cb5; }
.sr-links small { display: block; color: #6c7d95; font-size: 11px; font-weight: 500; }

.sr-providers li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 5px;
  border: 1px solid #e4e8ef;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
}

.sr-avatar {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #e7eef8;
  color: #0f5bab;
  font-size: 11px;
  font-weight: 700;
}

.sr-files li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px 7px 8px;
  border: 1px solid #e4e8ef;
  border-radius: 8px;
  font-size: 13px;
}

.sr-file-type {
  padding: 2px 5px;
  border: 1px solid #d8e6fa;
  border-radius: 4px;
  background: #edf4ff;
  color: #1768ed;
  font-size: 10px;
  font-weight: 700;
}

.sr-files .sr-file-add { border-style: dashed; border-color: #c3cfdf; color: #5d7189; }
.sr-file-add .icon { width: 15px; height: 15px; }

.sr-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 26px;
  padding: 16px 0 20px;
  border-top: 1px solid #eef1f5;
}

.sr-foot p { flex: 1; color: #6c7d95 !important; font-size: 13px; line-height: 1.5; }

.sr-btn {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border: 1px solid #d7dfeb;
  border-radius: 7px;
  background: #fff;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}

.sr-btn.primary { border-color: #0f5bab; background: #0f5bab; color: #fff; font-weight: 600; }

/* ── Platform explorer ─────────────────────────────────────────────────── */

/* Every panel shares one grid cell, so the box keeps the tallest panel's height. */
.explorer-panels { display: grid; }

.explorer-panel {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.explorer-panel:not(.is-active) { visibility: hidden; }
.explorer-panel .panel-box { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.explorer-panel .panel-content { flex: 1; display: flex; flex-direction: column; }
.explorer-panel .panel-end { margin-top: auto; }
.explorer-panel .panel-content > :has(+ .panel-end) { margin-bottom: 22px; }

.journey-track:before { left: 12.5%; right: 12.5%; }

.journey-track:after {
  content: '';
  position: absolute;
  top: 25px;
  left: 12.5%;
  width: 50%;
  height: 2px;
  background: #8fd0b8;
}

.party-meta { margin-top: 0; }
.journey-stop { text-align: center; }
.journey-stop i { margin-inline: auto; }

.document-row.is-requested { border-style: dashed; background: #fbfcfe; }
.document-row.is-requested .file-icon { border-style: dashed; background: #fff; color: #7d8ba2; }
.document-row.is-requested .file-icon .icon { width: 14px; height: 14px; }

/* ── Collaboration ─────────────────────────────────────────────────────── */

.team-section { padding: 100px 0; }
.team-section .section-head { max-width: 700px; }

.tm-rows { display: flex; flex-direction: column; gap: 72px; }

.tm-row {
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
  gap: 28px 48px;
  align-items: center;
}

.tm-row.is-flip { grid-template-columns: minmax(0, 1fr) minmax(220px, 320px); }
.tm-row.is-flip .tm-copy { order: 2; }

.tm-copy h3 { font-size: 22px; line-height: 1.3; letter-spacing: -0.025em; }
.tm-copy p { margin-top: 8px; color: var(--muted); font-size: 15px; line-height: 1.65; }

.tm-show-panel {
  display: flex;
  height: 420px;
  min-width: 0;
}

.tm-visual-inner {
  position: relative;
  flex: 1;
  display: flex;
  width: 100%;
  min-width: 0;
  color: #152d4b;
  font-size: 12px;
  line-height: 1.45;
  text-align: left;
  font-variant-numeric: tabular-nums;
  user-select: none;
}

.tm-visual-inner > * {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  border: 1px solid #dbe4ef;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 2px 8px rgb(20 40 63 / 5%);
  overflow: hidden;
  transition: opacity 0.4s ease;
}

.tm-visual-inner > .is-leaving { opacity: 0; }
.tm-visual-inner p { margin: 0; color: inherit; }
.tm-visual-inner .icon { width: 15px; height: 15px; stroke-width: 1.8; }

.tm-sub { color: #7d8ba2 !important; font-size: 11px; }
.tm-label { color: #8a97ab !important; font-size: 10px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }

.tm-avatar {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
}

.tm-avatar.blue { background: #0f5bab; }
.tm-avatar.teal { background: #0e7c86; }
.tm-avatar.amber { background: #b86e12; }

.tm-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border: 1px solid #d7dfeb;
  border-radius: 7px;
  background: #fff;
  font-weight: 600;
  white-space: nowrap;
  transition: transform 0.12s, background-color 0.15s;
}

.tm-btn.primary { border-color: #0f5bab; background: #0f5bab; color: #fff; }
.tm-btn.is-pressed { transform: scale(0.95); background: #0b4a8c; }

/* Chat */
.tm-chat { display: flex; flex-direction: column; }

.tm-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid #e8ecf2;
}

.tm-record { font-size: 13px; font-weight: 700; }

.tm-assigned { display: flex; align-items: center; gap: 8px; color: #5f6f86; font-size: 11px; white-space: nowrap; }
.tm-stack { display: flex; }
.tm-stack .tm-avatar { width: 24px; height: 24px; border: 2px solid #fff; font-size: 9px; }
.tm-stack .tm-avatar + .tm-avatar { margin-left: -7px; }

.tm-thread {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  min-height: 0;
  height: 0;
  padding: 12px 16px;
  overflow: hidden;
}

.tm-message { display: flex; align-items: flex-end; gap: 8px; max-width: 86%; }
.tm-message.is-mine { align-self: flex-end; text-align: right; }
.tm-meta { margin-bottom: 3px !important; color: #7d8ba2 !important; font-size: 10.5px; }

.tm-bubble {
  display: inline-block;
  padding: 8px 11px;
  border-radius: 12px 12px 12px 4px;
  background: #f1f4f8;
  text-align: left;
}

.tm-bubble b { color: #0b5cb5; font-weight: 600; }
.tm-message.is-mine .tm-bubble { border-radius: 12px 12px 4px 12px; background: #0f5bab; color: #fff; }
.tm-message.is-mine .tm-bubble b { color: #fff; }

.tm-file {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 7px;
  padding: 6px 9px;
  border: 1px solid #dbe4ef;
  border-radius: 7px;
  background: #fff;
  font-weight: 500;
}

.tm-file span { padding: 1px 4px; border-radius: 3px; background: #edf4ff; color: #1768ed; font-size: 9px; font-weight: 700; }

.tm-reminder {
  display: flex;
  align-items: center;
  gap: 8px;
  align-self: center;
  max-width: 100%;
  padding: 6px 12px;
  border: 1px solid #f3dcae;
  border-radius: 999px;
  background: #fff8ea;
  color: #8a560c;
  font-weight: 500;
}

.tm-reminder .icon { flex-shrink: 0; }

.tm-message.is-writing .tm-bubble { display: flex; gap: 4px; padding: 11px 12px; }

.tm-message.is-writing i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #9aa7b9;
  animation: tm-dot 1s ease-in-out infinite;
}

.tm-message.is-writing i:nth-child(2) { animation-delay: 0.15s; }
.tm-message.is-writing i:nth-child(3) { animation-delay: 0.3s; }

@keyframes tm-dot {
  0%, 60%, 100% { opacity: 0.35; transform: none; }
  30% { opacity: 1; transform: translateY(-2px); }
}

.is-new { animation: tm-in 0.24s ease-out; }

@keyframes tm-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.tm-composer {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 16px;
  padding: 7px 7px 7px 12px;
  border: 1px solid #dfe5ee;
  border-bottom: 0;
  border-radius: 9px 9px 0 0;
  color: #8a97ab;
  transition: border-color 0.15s;
}

.tm-composer > span:first-child { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tm-composer.is-drafting { border-color: #0f5bab; color: #152d4b; }

.tm-send {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: #e7eef8;
  color: #0f5bab;
  transition: background-color 0.15s, color 0.15s;
}

.tm-composer.is-drafting .tm-send { background: #0f5bab; color: #fff; }

.tm-caret {
  display: inline-block;
  width: 1px;
  height: 13px;
  margin-left: 1px;
  vertical-align: -2px;
  background: #0f5bab;
  animation: tm-caret 0.9s steps(1) infinite;
}

@keyframes tm-caret { 50% { opacity: 0; } }

/* Share */
.tm-share { position: relative; display: flex; flex-direction: column; }
.tm-dialog-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid #e8ecf2; }

.tm-dialog-icon {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #eaf3ff;
  color: #0f5bab;
}

.tm-dialog-icon.violet { background: #f0ecfb; color: #6b4fc0; }
.tm-dialog-title { font-size: 13px; font-weight: 700; }

.tm-share-body { flex: 1; display: grid; grid-template-columns: 120px minmax(0, 1fr); min-height: 0; }

.tm-sections { margin: 0; padding: 10px 8px; list-style: none; border-right: 1px solid #eef1f5; }

.tm-sections li {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 6px;
  color: #5f6f86;
  white-space: nowrap;
}

.tm-sections small { margin-left: auto; color: #9aa7b9; font-size: 10px; }

.tm-check {
  display: inline-grid;
  place-items: center;
  width: 14px;
  height: 14px;
  border: 1px solid #c3cfdf;
  border-radius: 3px;
  background: #fff;
  color: transparent;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.tm-check .icon { width: 10px !important; height: 10px !important; stroke-width: 3 !important; }
.tm-sections li.is-on { color: #152d4b; }
.tm-sections li.is-on .tm-check { border-color: #0f5bab; background: #0f5bab; color: #fff; }

.tm-page {
  margin: 12px 14px 0;
  padding: 12px 12px 0;
  border: 1px solid #e4e8ef;
  border-bottom: 0;
  border-radius: 4px 4px 0 0;
  box-shadow: 0 1px 4px rgb(20 40 63 / 6%);
  overflow: hidden;
}

.tm-page-head {
  display: flex;
  align-items: center;
  gap: 7px;
  padding-bottom: 8px;
  margin-bottom: 8px;
  border-bottom: 2px solid #0f5bab;
}

.tm-logo { width: 14px; height: 14px; border-radius: 3px; background: #0f5bab; }
.tm-page-org { font-size: 10px; font-weight: 700; }
.tm-page-kind { margin-left: auto; color: #0b5cb5; font-size: 10px; font-weight: 800; text-align: right; line-height: 1.2; }
.tm-page-kind small { display: block; color: #152d4b; font-size: 8px; font-weight: 600; }

.tm-block {
  margin-bottom: 7px;
  padding: 5px 7px;
  border: 1px dashed #d5dde8;
  border-radius: 4px;
  opacity: 0.45;
  transition: opacity 0.25s, border-color 0.25s, background-color 0.25s;
}

.tm-block small { display: block; margin-bottom: 4px; font-size: 8.5px; font-weight: 700; }
.tm-block span { display: block; height: 3px; margin-top: 3px; border-radius: 2px; background: #e3e8ef; }
.tm-block span:nth-child(3) { width: 80%; }
.tm-block span:nth-child(4) { width: 55%; }
.tm-block.is-on { border-style: solid; border-color: #e4e8ef; background: #fafbfd; opacity: 1; }
.tm-block.is-on span { background: #cfd8e4; }

.tm-share-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  border-top: 1px solid #e8ecf2;
  background: #fff;
}

.tm-format { display: inline-flex; padding: 2px; border: 1px solid #dfe5ee; border-radius: 7px; font-size: 11px; }
.tm-format > * { padding: 3px 9px; border-radius: 5px; color: #7d8ba2; }
.tm-format b { background: #eaf3ff; color: #0b5cb5; }

.tm-toast {
  position: absolute;
  left: 50%;
  bottom: 62px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border-radius: 8px;
  background: #10294a;
  color: #fff;
  font-weight: 500;
  white-space: nowrap;
  transform: translateX(-50%);
  animation: tm-toast 0.24s ease-out;
}

.tm-toast .icon { color: #4ade80; }

@keyframes tm-toast {
  from { opacity: 0; transform: translate(-50%, 6px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* Orders table */
.tm-board-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid #e8ecf2;
}

.tm-table-scroll { overflow-x: auto; }
.tm-table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 12.5px; }
.tm-table th { padding: 9px 16px; background: #f8fafc; color: #7d8ba2; font-size: 11px; font-weight: 600; text-align: left; }
.tm-table th:nth-child(1) { width: 30%; }
.tm-table th:nth-child(3) { width: 26%; }
.tm-table th:nth-child(4) { width: 22%; }
.tm-table td { padding: 12px 16px; border-bottom: 1px solid #eef1f5; vertical-align: middle; }
.tm-table td b { display: block; font-weight: 700; }
.tm-table td small { display: block; margin-top: 1px; color: #7d8ba2; font-size: 11px; }
.tm-table td:nth-child(2) { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tm-table tr.is-shifting td,
.tm-table tr.is-moved td { background: #f5f9ff; }

.tm-status {
  display: inline-flex;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.tm-status.blue { background: #e7f0fb; color: #0b5cb5; }
.tm-status.amber { background: #fdf3e3; color: #a8670b; }
.tm-status.green { background: #e5f6ee; color: #0b7a47; }

.tm-fulfill { display: flex; align-items: center; gap: 8px; width: 100%; }
.tm-fulfill b { display: block; flex: none; min-width: 36px; font-size: 11px; font-weight: 600; text-align: right; }

.tm-orders-foot {
  margin-top: auto;
  padding: 12px 16px;
  border-top: 1px solid #e8ecf2;
  font-size: 12px;
  line-height: 1.45;
}

.tm-visual-inner .tm-orders-foot { margin-top: auto; color: #7d8ba2; }
.tm-visual-inner .tm-orders-foot.is-on { color: #14634f; font-weight: 600; }

.tm-bar { flex: 1; height: 4px; border-radius: 4px; background: #e3ebf6; overflow: hidden; }
.tm-bar span { display: block; height: 100%; border-radius: inherit; background: #0f5bab; transition: width 0.45s cubic-bezier(0.4, 0, 0.2, 1); }
.tm-orders.is-open .tm-bar span { transition: none; }
.tm-bar span.amber { background: #d88431; }
.tm-bar span.green { background: #08785d; }

/* Reschedule */
.tm-visual-inner > .tm-update {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
}
.tm-reschedule { display: flex; flex-direction: column; border-right: 1px solid #e8ecf2; }
.tm-field-label { margin: 10px 14px 4px !important; font-size: 11px; font-weight: 500; }

.tm-field {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 14px !important;
  padding: 6px 9px;
  border: 1px solid #dfe5ee;
  border-radius: 6px;
}

.tm-field .icon { color: #7d8ba2; }

.tm-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 10px 14px 0;
  padding: 7px 10px;
  border: 1px solid #e4e8ef;
  border-radius: 7px;
  transition: border-color 0.2s, background-color 0.2s;
}

.tm-toggle p { font-size: 11px; font-weight: 600; }
.tm-toggle small { color: #7d8ba2; font-size: 10px; }
.tm-toggle.is-on { border-color: #cfe0f7; background: #f5f9ff; }

.tm-switch {
  position: relative;
  flex-shrink: 0;
  width: 28px;
  height: 16px;
  border-radius: 999px;
  background: #d5dce6;
  transition: background-color 0.2s;
}

.tm-switch i {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgb(15 23 42 / 25%);
  transition: transform 0.2s;
}

.tm-toggle.is-on .tm-switch { background: #0f5bab; }
.tm-toggle.is-on .tm-switch i { transform: translateX(12px); }

.tm-create { align-self: flex-end; margin: auto 14px 14px; }

.tm-timeline { display: flex; flex-direction: column; padding: 14px 16px 0; }
.tm-timeline ol { position: relative; margin: 10px 0 0; padding: 0; list-style: none; }

.tm-timeline ol::before {
  content: '';
  position: absolute;
  top: 8px;
  bottom: 22px;
  left: 5px;
  width: 2px;
  background: #e1e7ef;
}

.tm-timeline ol > li {
  position: relative;
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) auto;
  gap: 10px;
  padding-bottom: 13px;
}

.tm-dot {
  width: 12px;
  height: 12px;
  margin-top: 3px;
  border: 2px solid #c3cfdf;
  border-radius: 50%;
  background: #fff;
  transition: border-color 0.25s, background-color 0.25s;
}

.tm-stop { font-weight: 600; }
.tm-timeline li small { display: block; color: #7d8ba2; font-size: 10.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tm-dates { display: flex; flex-direction: column; align-items: flex-end; font-size: 11px; line-height: 1.35; }
.tm-dates s { color: transparent; font-size: 10px; transition: color 0.25s; }
.tm-dates b { font-weight: 600; transition: color 0.25s; }

.tm-timeline li.is-shifted .tm-dot { border-color: #0f5bab; background: #0f5bab; }
.tm-timeline li.is-shifted .tm-dates s { color: #9aa7b9; }
.tm-timeline li.is-shifted .tm-dates b { color: #0b5cb5; animation: tm-in 0.25s ease-out; }

.tm-notified {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: auto;
  padding: 9px 10px;
  border: 1px solid #c7e4d9;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  background: #edf7f3;
  color: #14634f;
  font-weight: 600;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s, transform 0.3s;
}

.tm-notified.is-on { opacity: 1; transform: none; }
.tm-notified .icon { flex-shrink: 0; }
.tm-notified > span { flex: 1; min-width: 0; }
.tm-notified ul { display: flex; margin: 0; padding: 0; list-style: none; }

.tm-notified li {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 2px solid #edf7f3;
  border-radius: 50%;
  background: #fff;
  color: #33604f;
  font-size: 8.5px;
  font-weight: 700;
}

.tm-notified li + li { margin-left: -6px; }

/* ── Shipment-item link map ────────────────────────────────────────────── */

.il-section .section-head { max-width: 720px; }

.il-map {
  --il-wires: on;
  --il-buy: #0f5bab;
  --il-sell: #0b7a47;
  --il-fin: #c46f16;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr) minmax(0, 1fr);
  grid-template-areas:
    'po item so'
    '. inv .';
  align-items: start;
  gap: 56px 56px;
  padding: 44px 40px 48px;
  border: 1px solid #dfe8f2;
  border-radius: 16px;
  background: #f6f9fd;
  color: #152d4b;
  text-align: left;
  font-variant-numeric: tabular-nums;
}

.il-wires { position: absolute; inset: 0; z-index: 0; overflow: visible; pointer-events: none; }
.il-wire path { fill: none; stroke-width: 2; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 0.9s cubic-bezier(0.4, 0, 0.2, 1); }
.il-map.is-drawn .il-wire path { stroke-dashoffset: 0; }
.il-wire.buy path { stroke: var(--il-buy); }
.il-wire.buy circle { fill: var(--il-buy); }
.il-wire.sell path { stroke: var(--il-sell); }
.il-wire.sell circle { fill: var(--il-sell); }
.il-wire.fin path { stroke: var(--il-fin); }
.il-wire.fin circle { fill: var(--il-fin); }

.il-node { position: relative; z-index: 1; min-width: 0; margin: 0; }
.il-po { grid-area: po; }
.il-item { grid-area: item; }
.il-so { grid-area: so; }
.il-inv { grid-area: inv; display: flex; flex-direction: column-reverse; }

.il-node figcaption { margin-bottom: 12px; font-size: 13px; line-height: 1.6; color: var(--muted); }
.il-inv figcaption { margin: 12px 0 0; }
.il-node figcaption span { display: block; margin-top: 2px; }

.il-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.il-tag::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--il-buy); }
.il-tag.sell::before { background: var(--il-sell); }
.il-tag.fin::before { background: var(--il-fin); }
.il-tag.link::before { background: #fff; border: 2px solid var(--ink); width: 8px; height: 8px; }

.il-card {
  padding: 14px 16px;
  border: 1px solid #d8e2ee;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 2px 8px rgb(20 40 63 / 6%);
  font-size: 12px;
  line-height: 1.45;
}

.il-card p { margin: 0; color: inherit; }

.il-card-head { display: flex; align-items: flex-start; gap: 10px; }
.il-card-head > div { flex: 1; min-width: 0; }

.il-card-icon {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border: 1px solid #e4e8ef;
  border-radius: 7px;
  color: #4b5b73;
}

.il-card-icon .icon { width: 16px; height: 16px; }
.il-kind { color: #7d8ba2 !important; font-size: 11px; }
.il-title { font-size: 14px; font-weight: 700; line-height: 1.3; }
.il-party { color: #4b5b73 !important; font-size: 12px; }

.il-chip {
  flex-shrink: 0;
  padding: 2px 8px;
  border: 1px solid #f3dcae;
  border-radius: 999px;
  background: #fff4de;
  color: #a8670b;
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
}

.il-line { margin-top: 12px !important; font-weight: 500; }

.il-qty { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 12px 0 0; }
.il-qty dt { color: #7d8ba2; font-size: 11px; }
.il-qty dd { margin: 2px 0 0; font-size: 14px; font-weight: 700; }
.il-qty dd.blue { color: #0b5cb5; }
.il-qty dd.amber { color: #a8670b; }

.il-progress { height: 5px; margin-top: 10px; border-radius: 5px; background: #e3ebf6; overflow: hidden; }
.il-progress span { display: block; width: 50%; height: 100%; border-radius: inherit; background: #0f5bab; }

.il-table { width: 100%; margin-top: 12px; border-collapse: collapse; table-layout: fixed; font-size: 11.5px; }
.il-table th { padding: 6px 7px; background: #f8fafc; color: #4b5b73; font-weight: 600; line-height: 1.25; text-align: left; vertical-align: bottom; }
.il-table th:first-child { width: 37%; border-radius: 6px 0 0 6px; }
.il-table th:last-child { border-radius: 0 6px 6px 0; }
.il-table th.num { width: 15%; }
.il-table td { padding: 8px 7px; border-bottom: 1px solid #eff1f5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.il-table td:first-child { white-space: normal; line-height: 1.3; }
.il-table tr:last-child td { border-bottom: 0; }
.il-table .num { text-align: right; }
.il-table tr.is-muted td { color: #8a97ab; }
.il-table tr.is-linked td { background: #f5f9ff; font-weight: 600; }

.il-ref { display: inline-flex; padding: 1px 7px; border-radius: 5px; font-weight: 700; }
.il-ref.buy { background: #e6effa; color: var(--il-buy); }
.il-ref.sell { background: #e3f4ea; color: var(--il-sell); }

.il-sublabel {
  margin: 14px 0 6px !important;
  padding-top: 10px;
  border-top: 1px solid #eef1f5;
  color: #8a97ab !important;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.il-fin-row,
.il-records > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 9px;
  border-radius: 7px;
}

.il-fin-row { border: 1px solid #f2d7b5; background: #fff7ec; }
.il-fin-row b,
.il-records b { font-weight: 700; }
.il-fin-row > span:last-child,
.il-records > div > span:last-child { font-weight: 700; white-space: nowrap; }

.il-records { display: grid; gap: 6px; margin-top: 12px; }
.il-records small { display: block; color: #7d8ba2; font-size: 10.5px; }
.il-records .is-linked { border: 1px solid #f2d7b5; background: #fff7ec; }
.il-records .is-muted { border: 1px solid #eef1f5; color: #8a97ab; }

/* ── 3PL request draft ─────────────────────────────────────────────────── */

.sr-head { display: block; }
.sr-body { grid-template-columns: 210px minmax(0, 1fr) 290px; }
.sr-form { min-width: 0; padding: 22px 26px; }
.sr-sheet { display: flex; flex-direction: column; gap: 14px; animation: sr-in 0.18s ease-out; }
.sr-field { display: grid; gap: 6px; min-width: 0; }
.sr-field > span:first-child { color: #6c7d95; font-size: 12px; font-weight: 600; }
.sr-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.sr-input {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid #d5deea;
  border-radius: 8px;
  background: #fff;
  font-size: 14px;
  line-height: 1.35;
}

.sr-input.is-blank { background: #fbfcfe; }
.sr-input b { font-weight: 600; }

.sr-caret {
  display: block;
  width: 1px;
  height: 16px;
  background: #1768ed;
  animation: sr-blink 1s steps(1) infinite;
}

.sr-recipients { display: flex; flex-wrap: wrap; gap: 8px; min-height: 40px; margin: 0; padding: 0; list-style: none; }

.sr-recipients li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px 4px 4px;
  border: 1px solid #e1e7ef;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
}

.sr-recipients em { color: #08785d; font-size: 12px; font-style: normal; font-weight: 600; }

.sr-status.is-sent { background: #e6f5ee; color: #08785d; }

.sr-live {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  padding: 20px;
  border-left: 1px solid #e8ecf2;
  background: #f6f8fb;
}

.sr-live-tags { display: flex; gap: 6px; }

.sr-tag {
  padding: 3px 10px;
  border: 1px solid #dfe5ee;
  border-radius: 999px;
  background: #fff;
  color: #4b5b73;
  font-size: 12px;
  font-weight: 600;
}

.sr-window .sr-live-title { min-height: 2.7em; font-size: 16px; font-weight: 700; line-height: 1.35; letter-spacing: -0.01em; }
.sr-window .sr-live-kind { display: flex; align-items: center; gap: 6px; margin-top: -4px; color: #5f6f86; font-size: 13px; }
.sr-live-kind .icon { width: 15px; height: 15px; color: #1768ed; }

.sr-live-pic {
  display: flex;
  align-items: center;
  min-height: 132px;
  padding: 16px;
  border: 1px solid #e1e8f2;
  border-radius: 10px;
  background: #fff;
}

.sr-live-pic .sr-value { width: 100%; }

.sr-live-rows { margin: 0; }
.sr-live-rows > div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid #e6ebf2; font-size: 13px; }
.sr-live-rows > div:last-child { border-bottom: 0; }
.sr-live-rows dt { color: #6c7d95; }
.sr-live-rows dd { margin: 0; font-weight: 700; }
.sr-live-rows dd.is-sent { color: #08785d; }

.sr-window > .sr-foot {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin: 0;
  padding: 14px 20px;
  border-top: 1px solid #e8ecf2;
  background: #fff;
}

.sr-btn { gap: 6px; transition: opacity 0.15s, background-color 0.15s; }
.sr-btn .icon { width: 15px; height: 15px; }
.sr-btn.primary.is-waiting { opacity: 0.45; }
.sr-btn.primary.is-done { border-color: #08785d; background: #08785d; }

.sr-value { animation: sr-pop 0.2s ease; }

@keyframes sr-pop {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes sr-blink { 50% { opacity: 0; } }

.pic-route { display: grid; width: 100%; }
.pic-stop { display: flex; align-items: center; gap: 10px; min-width: 0; }
.pic-stop strong { overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }

.pic-stop i {
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  border: 2px solid #1768ed;
  border-radius: 50%;
  background: #fff;
}

.pic-stop.is-end i { background: #1768ed; }

.pic-leg {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 5px;
  padding: 12px 0 12px 15px;
  border-left: 2px dashed #b9cbe0;
  color: #5f6f86;
  font-size: 12px;
}

.pic-leg .icon { width: 16px; height: 16px; color: #1768ed; }

.pic-span { display: grid; gap: 8px; width: 100%; }
.pic-span > div { display: flex; justify-content: space-between; color: #4b5b73; font-size: 12px; font-weight: 600; }
.pic-span i { display: block; height: 8px; border-radius: 99px; background: #1768ed; }
.pic-span strong { font-size: 14px; }

.pic-checks { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.pic-checks li { display: flex; align-items: center; gap: 8px; color: #152d4b; font-size: 13px; font-weight: 600; }
.pic-checks .icon { width: 15px; height: 15px; color: #08785d; }

.pic-big small { display: block; color: #1768ed; font-size: 12px; font-weight: 700; }
.pic-big strong { display: block; margin: 2px 0; font-size: 26px; letter-spacing: -0.03em; line-height: 1.15; }
.pic-big strong.is-text { font-size: 18px; letter-spacing: -0.01em; }
.pic-big span { color: #5f6f86; font-size: 13px; }

.pic-split { display: flex; align-items: center; justify-content: space-around; gap: 12px; width: 100%; }
.pic-split strong { display: block; font-size: 28px; letter-spacing: -0.04em; line-height: 1; }
.pic-split small { color: #5f6f86; font-size: 12px; }
.pic-split .icon { width: 18px; height: 18px; color: #1768ed; }

/* ── Platform explorer panels ──────────────────────────────────────────── */

.ex-split { display: grid; flex: 1; grid-template-columns: minmax(0, 1fr) 220px; }
.ex-main { min-width: 0; padding: 22px 24px; }
.ex-side { min-width: 0; padding: 22px 20px; border-left: 1px solid #e9edf4; background: #fafbfd; }
.ex-split .badge,
.ex-order .badge { font-size: 11px; }

.ex-label,
.ex-side-label { margin: 18px 0 8px !important; color: #6c7d95 !important; font-size: 12px; font-weight: 600; }
.ex-main > .ex-label:first-child,
.ex-side > .ex-side-label:first-child { margin-top: 0 !important; }

.ex-overview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px 18px;
  margin: 0;
  padding: 14px 16px;
  border: 1px solid #e3eaf2;
  border-radius: 10px;
  background: #f8fafc;
}

.ex-overview dt { color: #7d8ba2; font-size: 11px; }
.ex-overview dd { margin: 2px 0 0; font-size: 14px; font-weight: 700; line-height: 1.35; }
.ex-overview small { display: block; color: #6c7d95; font-size: 12px; font-weight: 500; }

.ex-records { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }

.ex-records li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 8px;
  padding: 10px 12px;
  border: 1px solid #e3eaf2;
  border-radius: 8px;
  font-size: 13px;
}

.ex-records .icon { width: 16px; height: 16px; color: #1768ed; }
.ex-records span { font-weight: 600; }
.ex-records b { font-size: 14px; }
.ex-records small { grid-column: 2 / 4; color: #6c7d95; font-size: 12px; }

.ex-time { margin: 0; padding: 0; list-style: none; }
.ex-time li { position: relative; padding: 0 0 16px 20px; }
.ex-time li strong { display: block; font-size: 13px; line-height: 1.35; }
.ex-time li small { display: block; color: #6c7d95; font-size: 12px; line-height: 1.4; }

.ex-time li::before {
  content: '';
  position: absolute;
  top: 3px;
  left: 0;
  width: 8px;
  height: 8px;
  border: 2px solid #c5d2e2;
  border-radius: 50%;
  background: #fff;
}

.ex-time li::after {
  content: '';
  position: absolute;
  top: 15px;
  bottom: 0;
  left: 5px;
  width: 2px;
  background: #e3ebf3;
}

.ex-time li:last-child { padding-bottom: 0; }
.ex-time li:last-child::after { display: none; }
.ex-time .is-done::before { border-color: #08785d; background: #08785d; }
.ex-time .is-done::after { background: #b7ddd0; }
.ex-time .is-now::before { border-color: #1768ed; background: #1768ed; box-shadow: 0 0 0 3px #e3edff; }
.ex-time .is-now strong { color: #1768ed; }

.ex-table { width: 100%; border-collapse: collapse; font-size: 13px; line-height: 1.4; }
.ex-table th { padding: 8px 10px; background: #f5f7fa; color: #6c7d95; font-size: 12px; font-weight: 600; text-align: left; }
.ex-table td { padding: 9px 10px; border-bottom: 1px solid #eef1f5; }
.ex-table tr:last-child td { border-bottom: 0; }
.ex-table .n { text-align: right; white-space: nowrap; }
.ex-table .is-blue,
.ex-stats .is-blue { color: #1768ed; }
.ex-table .is-amber,
.ex-stats .is-amber { color: #b86e12; }

.ex-recipients { margin: 0; padding: 0; list-style: none; }
.ex-recipients li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid #eef1f5; font-size: 13px; }
.ex-recipients li:last-child { border-bottom: 0; }
.ex-recipients b { flex: 1; font-weight: 600; }

.ex-avatar {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e7eef8;
  color: #0f5bab;
  font-size: 11px;
  font-weight: 700;
}

.ex-facts { margin: 0; }
.ex-facts > div { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid #edf1f6; font-size: 13px; }
.ex-facts dt { color: #6c7d95; }
.ex-facts dd { margin: 0; font-weight: 700; }

.ex-activity { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.ex-activity li { position: relative; padding-left: 14px; font-size: 13px; font-weight: 600; line-height: 1.35; }
.ex-activity li::before { content: ''; position: absolute; top: 6px; left: 0; width: 6px; height: 6px; border-radius: 50%; background: #9db6dc; }
.ex-activity small { display: block; color: #6c7d95; font-size: 12px; font-weight: 500; }

.panel-content.ex-order { padding: 22px 24px; }
.ex-order-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.ex-order-head h3 { font-size: 18px; letter-spacing: -0.03em; }
.ex-order-head p { margin-top: 2px; font-size: 12px; }
.ex-order-total { text-align: right; }
.ex-order-total small { display: block; color: #6c7d95; font-size: 12px; }
.ex-order-total strong { font-size: 22px; letter-spacing: -0.03em; }
.ex-order-total span { display: block; margin-top: 2px; color: #0f5bab; font-size: 12px; font-weight: 600; }

.ex-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid #e3eaf2;
  border-radius: 10px;
  background: #f8fafc;
}

.ex-stats small { display: block; color: #6c7d95; font-size: 11px; line-height: 1.3; }
.ex-stats strong { display: block; margin-top: 3px; font-size: 18px; letter-spacing: -0.03em; }
.ex-stats .ex-meter { margin-top: 6px; }

.ex-meter { display: block; height: 6px; overflow: hidden; border-radius: 99px; background: #e2e9f1; }
.ex-meter i { display: block; height: 100%; border-radius: inherit; background: #1768ed; }
.ex-progress { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.ex-progress .ex-meter { width: 56px; }

.file-glyph { display: block; flex-shrink: 0; width: 22px; height: 28px; }
.document-row .file-glyph { width: 28px; height: 35px; }
.tm-file .file-glyph { width: 14px; height: 18px; }

/* ── Connected operations ──────────────────────────────────────────────── */

.cf {
  --cf-fill: 0;
  --cf-col: calc((100% - 80px) / 5);
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cf::before,
.cf::after {
  content: '';
  position: absolute;
  top: 27px;
  left: calc(var(--cf-col) / 2);
  height: 2px;
  background: #dbe4ee;
}

.cf::before { right: calc(var(--cf-col) / 2); }
.cf::after { width: calc((100% - var(--cf-col)) * var(--cf-fill)); background: #1768ed; transition: width 0.45s ease; }

.cf-step { position: relative; display: flex; flex-direction: column; align-items: center; min-width: 0; text-align: center; }

.cf-node {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 2px solid #dbe4ee;
  border-radius: 50%;
  background: #fff;
  color: #7d8ba2;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.cf-node .icon { width: 22px; height: 22px; }
.cf-step.is-reached .cf-node { border-color: #1768ed; background: #1768ed; color: #fff; }

.cf-num { margin-top: 14px; color: #7d8ba2; font-size: 12px; font-weight: 600; }
.cf-step h3 { margin-top: 2px; font-size: 16px; line-height: 1.35; }
.cf-step p { max-width: 210px; margin-top: 6px; font-size: 13px; line-height: 1.5; }

.cf-record {
  margin-top: 12px;
  padding: 4px 10px;
  border: 1px solid #dbe4ee;
  border-radius: 6px;
  background: #fff;
  color: #4b5b73;
  font-size: 12.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.cf-step.is-reached .cf-record { border-color: #bcd3f6; background: #eef4ff; color: #1658c0; }

/* ── Supporting details ────────────────────────────────────────────────── */

.detail-board {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  grid-template-areas:
    'cal contact log'
    'cal item files';
  gap: 14px;
}

.detail-cal { grid-area: cal; }
.detail-contact { grid-area: contact; }
.detail-log { grid-area: log; }
.detail-files { grid-area: files; }
.detail-item { grid-area: item; }

.detail-card {
  min-width: 0;
  padding: 18px 18px 16px;
  border: 1px solid #dce5ee;
  border-radius: 12px;
  background: #fff;
}

.detail-card h3 { margin-bottom: 12px; font-size: 15px; }
.detail-card p { font-size: 13px; }

.cal-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(130px, 0.8fr); gap: 16px; align-items: center; }
.cal-month { margin-bottom: 8px; font-size: 13px; font-weight: 700; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; text-align: center; }

.cal-grid span {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: 7px;
  color: #24384f;
  font-size: 12px;
  font-weight: 600;
}

.cal-grid .cal-dow { aspect-ratio: auto; padding-bottom: 4px; color: #8a97ab; font-size: 10px; }
.cal-grid .is-on { background: #e8f0fe; color: #1658c0; }
.cal-agenda { display: grid; align-content: center; gap: 10px; margin: 0; padding: 0; list-style: none; }
.cal-agenda li { color: #24384f; font-size: 13px; font-weight: 600; line-height: 1.35; }
.cal-agenda time { display: block; color: #1768ed; font-size: 12px; }

.who { display: flex; align-items: center; gap: 12px; }

.who-avatar {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #e7eef8;
  color: #0f5bab;
  font-size: 13px;
  font-weight: 700;
}

.who strong { display: block; font-size: 16px; }
.who small { color: #5f6f86; font-size: 13px; }
.who-link { display: flex; align-items: center; gap: 8px; margin-top: 16px !important; color: #152d4b !important; font-weight: 700; }
.who-link .icon { width: 16px; height: 16px; color: #1768ed; }

.log-list,
.sheet-list { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.log-list li,
.sheet-list li { display: flex; align-items: center; gap: 10px; min-width: 0; font-size: 13px; font-weight: 600; }
.log-list .icon { width: 15px; height: 15px; color: #08785d; }
.log-list .is-open .icon { color: #b86e12; }
.log-list li > span { flex: 1; }
.log-list b { color: #5f6f86; font-weight: 600; }

.item-name { display: block; font-size: 16px; }
.item-tags { display: flex; gap: 6px; margin: 10px 0; }
.item-tags span { padding: 2px 8px; border-radius: 999px; background: #eef3fb; color: #1658c0; font-size: 12px; font-weight: 700; }
.item-tags span:last-child { background: #e7f6ee; color: #08785d; }

/* ── Responsive ────────────────────────────────────────────────────────── */

@media (max-width: 1100px) {
  .sr-body { grid-template-columns: 196px minmax(0, 1fr); }
  .sr-categories { grid-row: 1 / span 2; }
  .sr-live { grid-column: 2; border-left: 0; border-top: 1px solid #e8ecf2; }
  .ex-split { grid-template-columns: minmax(0, 1fr) 190px; }
  .ex-main { padding: 20px; }
  .cf p { font-size: 12.5px; }
  .tm-row,
  .tm-row.is-flip { gap: 20px 32px; }
  .il-chip { display: none; }
  .il-map { gap: 56px 44px; padding: 36px 28px 40px; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr) minmax(0, 1fr); }
  .il-table th:nth-child(2),
  .il-table td:nth-child(2) { display: none; }
}

@media (max-width: 880px) {
  .sr-body { grid-template-columns: minmax(0, 1fr); }
  .sr-categories { grid-row: auto; padding: 12px 0 0; border-right: 0; border-bottom: 1px solid #e8ecf2; }
  .sr-categories > .sr-label { margin: 0 16px 8px !important; }
  .sr-tabs { flex-direction: row; gap: 4px; padding: 0 12px 12px; overflow-x: auto; scrollbar-width: thin; }
  .sr-tab { flex: none; width: auto; }
  .sr-form { padding: 22px 20px; }
  .sr-live { grid-column: auto; }

  .cf { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .cf::before,
  .cf::after { display: none; }
  .cf-step {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: start;
    column-gap: 16px;
    padding-bottom: 26px;
    text-align: left;
  }
  .cf-num { margin-top: 2px; }
  .cf-step p { max-width: none; }
  .cf-step > :not(.cf-node) { grid-column: 2; justify-self: start; }
  .cf-node { grid-row: 1 / span 4; margin: 0; }
  .cf-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 46px;
    bottom: 2px;
    left: 21px;
    width: 2px;
    background: #dbe4ee;
  }
  .cf-step.is-reached:not(:last-child)::after { background: #1768ed; }

  .detail-board {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      'cal cal'
      'contact log'
      'item files';
  }

  .tm-row,
  .tm-row.is-flip { grid-template-columns: minmax(0, 1fr); }
  .tm-row.is-flip .tm-copy { order: 0; }
  .tm-copy { margin-bottom: 14px; }

  .il-map {
    --il-wires: none;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: 'po' 'item' 'so' 'inv';
    gap: 0;
    padding: 28px 20px;
  }

  .il-node + .il-node { padding-top: 44px; }
  .il-inv { flex-direction: column; }
  .il-inv figcaption { margin: 0 0 12px; }

  .il-node + .il-node::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 26px;
    width: 2px;
    height: 28px;
    border-radius: 2px;
    background: var(--il-buy);
  }

  .il-so::before { background: var(--il-sell) !important; }
  .il-inv::before { background: var(--il-fin) !important; }
  .il-table th:nth-child(2),
  .il-table td:nth-child(2) { display: table-cell; }
}

@media (max-width: 540px) {
  .sr-field-row,
  .cal-layout,
  .ex-records { grid-template-columns: minmax(0, 1fr); }
  .ex-overview { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 12px 14px; }
  .sr-foot { padding: 12px 16px; }
  .ex-split { grid-template-columns: minmax(0, 1fr); }
  .ex-main { padding: 18px 16px; }
  .ex-side { padding: 18px 16px; border-left: 0; border-top: 1px solid #e9edf4; }
  .panel-content.ex-order { padding: 18px 16px; }
  .ex-stats { grid-template-columns: 1fr 1fr; }
  .cf-node { width: 44px; height: 44px; }
  .ex-order-head { flex-direction: column; align-items: flex-start; }
  .ex-order-total { text-align: left; }
  .ex-table.is-wide th:nth-child(3),
  .ex-table.is-wide td:nth-child(3),
  .ex-table.is-wide th:nth-child(4),
  .ex-table.is-wide td:nth-child(4) { display: none; }
  .detail-board {
    grid-template-columns: 1fr;
    grid-template-areas: 'cal' 'contact' 'log' 'item' 'files';
  }

  .team-section { padding: 64px 0; }
  .tm-rows { gap: 48px; }
  .tm-copy h3 { font-size: 19px; }
  .tm-show-panel { height: auto; min-height: 0; }
  .tm-visual-inner > * { flex: none; width: 100%; max-width: 100%; height: auto; }
  .tm-thread { height: 240px; flex: none; }
  .tm-table { min-width: 0; table-layout: auto; }
  .tm-table thead { display: none; }
  .tm-table,
  .tm-table tbody,
  .tm-table tr,
  .tm-table td { display: block; width: auto; max-width: none; }
  .tm-table tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: 'order stage' 'vendor fulfill';
    gap: 4px 12px;
    padding: 12px 14px;
    border-bottom: 1px solid #eef1f5;
  }
  .tm-table td { padding: 0; border: 0; overflow: visible; white-space: normal; text-overflow: clip; }
  .tm-table td:nth-child(1) { grid-area: order; }
  .tm-table td:nth-child(2) { grid-area: vendor; max-width: none; overflow: visible; white-space: normal; text-overflow: clip; }
  .tm-table td:nth-child(3) { grid-area: stage; align-self: center; }
  .tm-table td:nth-child(4) { grid-area: fulfill; display: flex; align-items: center; justify-content: flex-end; gap: 8px; width: 108px; }
  .tm-bar { flex: none; width: 58px; }
  .tm-visual-inner > .tm-update { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; }
  .tm-reschedule { border-right: 0; border-bottom: 1px solid #e8ecf2; }
  .tm-share-body { grid-template-columns: 104px minmax(0, 1fr); }
  .tm-message { max-width: 94%; }
  .tm-fulfill { min-width: 0; }
  .tm-assigned > span:last-child { display: none; }

  .il-map { padding: 22px 14px; }
  .il-card { padding: 12px; }
  .il-table th:nth-child(2),
  .il-table td:nth-child(2) { display: none; }
  .il-qty dd { font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  .sr-tab,
  .tm-visual-inner > *,
  .tm-bar span,
  .tm-check,
  .tm-block,
  .tm-switch,
  .tm-switch i,
  .tm-notified,
  .il-node,
  .il-wire path { transition: none; }
  .cf-node,
  .cf-record,
  .cf::after { transition: none; }
  .sr-form-inner,
  .sr-value,
  .sr-caret,
  .is-new,
  .tm-toast,
  .tm-caret,
  .tm-message.is-writing i { animation: none; }
}
