html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

.nav-item { font-size: 15px; }
.profile strong { font-size: 13px; }
.profile small { font-size: 10px; }
.eyebrow,
.kicker { font-size: 11px; }
.welcome p,
.finance-intro p { font-size: 15px; line-height: 1.5; }
.metric-top { font-size: 13px; }
.metric-card > small { font-size: 12px; }
.panel-head h3 { font-size: 18px; }
.transport-main strong { font-size: 14px; }
.transport-main small,
.owner small,
.eta strong { font-size: 11px; }
.eta small,
.eta em,
.tag,
.status { font-size: 10px; }
.attention-card h4 { font-size: 16px; }
.attention-card p { font-size: 12px; }
.deadline,
.deadline strong { font-size: 11px; }
.timeline strong { font-size: 13px; }
.timeline small,
.timeline p,
.info-card dt,
.info-card dd,
.docs-card li { font-size: 11px; }
.finance-table th { font-size: 10px; }
.finance-table td { font-size: 12px; }
.finance-table td small,
.cost-line,
.insight { font-size: 10px; }

.source-note {
  display: flex;
  gap: 8px;
  margin-top: 12px !important;
  padding: 10px;
  border-radius: 9px;
  background: #f0f1f8;
  color: #6c6f91 !important;
}
.source-note i { font-style: normal; font-weight: 900; }
.source-note span,
.source-note strong { display: block; }
.source-note strong { margin-bottom: 3px; }
.compact-metric { font-size: 24px !important; }
.documents-panel { margin-top: 16px; }
.document-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 18px; }
.document-card { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 12px; min-height: 92px; border: 1px solid #e8e9ef; border-radius: 13px; padding: 14px; background: #fff; color: inherit; text-align: left; cursor: pointer; }
.document-card:hover { border-color: #aeb2d5; background: #fafaff; }
.document-card div strong,
.document-card div small,
.document-card div em { display: block; }
.document-card div strong { font-size: 14px; }
.document-card div small { margin-top: 5px; color: #76798c; font-size: 12px; }
.document-card div em { margin-top: 5px; color: #9a9cab; font-size: 10px; font-style: normal; }
.file-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 11px; font-size: 10px; font-weight: 900; }
.file-icon.pdf { background: #fff0ee; color: #c95d52; }
.file-icon.image { background: #eaf3fa; color: #4b86ac; }
.file-icon.waiting { background: #fff3e3; color: #cb7d20; }
.doc-state { padding: 6px 8px; border-radius: 99px; font-size: 10px; font-weight: 800; }
.doc-state.ready { background: #e9f7f1; color: #1f8a60; }
.doc-state.waiting { background: #fff0dc; color: #c67413; }
.pending-document { background: #fffaf3; border-color: #f1d7b6; }
.document-disclaimer { margin: 0 18px 18px; padding: 12px; border-radius: 10px; background: #f4f5f8; color: #74778b; font-size: 11px; }
.document-disclaimer i { margin-right: 6px; font-style: normal; font-weight: 900; }
.document-dialog { width: min(430px, calc(100% - 30px)); border: 0; border-radius: 18px; padding: 28px; color: #17182b; box-shadow: 0 25px 80px rgba(16,16,39,.28); }
.document-dialog::backdrop { background: rgba(16,16,39,.55); backdrop-filter: blur(4px); }
.document-dialog h2 { margin: 8px 0; font-size: 24px; }
.document-dialog > p:not(.eyebrow) { color: #74778b; font-size: 13px; line-height: 1.55; }
.document-dialog dl div { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid #ececf1; font-size: 12px; }
.document-dialog dd { margin: 0; font-weight: 800; }
.dialog-close { position: absolute; right: 16px; top: 14px; border: 0; background: transparent; font-size: 24px; cursor: pointer; }
.dialog-action { width: 100%; margin-top: 18px; border: 0; border-radius: 10px; padding: 12px; background: #101027; color: #fff; font-weight: 800; cursor: pointer; }

@media (max-width: 760px) {
  .concept-bar {
    overflow: hidden;
    white-space: nowrap;
  }

  .app-shell,
  main,
  .view,
  .panel {
    min-width: 0;
    max-width: 100%;
  }
  .document-grid { grid-template-columns: 1fr; padding: 12px; }
  .document-card { grid-template-columns: 40px 1fr; }
  .document-card .doc-state { grid-column: 2; width: max-content; }
}
