:root {
  --shell-bg: #f3f6fa;
  --shell-surface: #ffffff;
  --shell-surface-soft: #f8fafc;
  --shell-text: #14233a;
  --shell-muted: #64748b;
  --shell-line: rgba(16, 43, 76, 0.12);
  --shell-line-strong: rgba(16, 43, 76, 0.2);
  --shell-navy: #102b4c;
  --shell-orange: #f97316;
  --shell-green: #087f5b;
  --shell-red: #c92a2a;
  --shell-topbar: 68px;
  --shell-sidebar: 216px;
  --shell-radius: 8px;
  --shell-shadow: 0 12px 32px rgba(16, 43, 76, 0.08);
  --shell-glass: rgba(255, 255, 255, 0.78);
}

html {
  background: var(--shell-bg);
  scroll-padding-top: calc(var(--shell-topbar) + 16px);
}

body {
  min-height: 100%;
  background: var(--shell-bg) !important;
  color: var(--shell-text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

body::before,
body::after,
.summary-content::after,
section.panel::after {
  display: none !important;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
summary,
a,
select,
input[type="checkbox"] {
  touch-action: manipulation;
}

:focus-visible {
  outline: 3px solid rgba(249, 115, 22, 0.32);
  outline-offset: 2px;
}

.app-header {
  position: fixed !important;
  inset: 0 0 auto 0;
  z-index: 80;
  height: var(--shell-topbar);
  padding: 0 18px !important;
  display: block !important;
  background: var(--shell-glass) !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.84) !important;
  box-shadow: 0 1px 0 var(--shell-line), 0 10px 28px rgba(16, 43, 76, 0.06) !important;
  -webkit-backdrop-filter: saturate(145%) blur(24px);
  backdrop-filter: saturate(145%) blur(24px);
}

.header-primary {
  width: 100%;
  height: 100%;
  display: grid !important;
  grid-template-columns: minmax(190px, 1fr) minmax(360px, 640px) minmax(250px, 1fr) !important;
  align-items: center;
  gap: 16px !important;
}

.brand-bar {
  min-width: 0;
  gap: 11px !important;
}

.brand-logo {
  width: 92px !important;
  height: 42px !important;
  object-fit: contain;
  padding: 0 !important;
  border-radius: 6px !important;
  background: #fff !important;
  filter: none !important;
}

.brand-info {
  gap: 1px !important;
}

.brand-info h1 {
  color: var(--shell-navy) !important;
  font-size: 16px !important;
  font-weight: 760 !important;
  line-height: 1.2;
  letter-spacing: 0 !important;
  text-shadow: none !important;
}

.brand-info p {
  color: var(--shell-muted) !important;
  font-size: 11px !important;
  line-height: 1.2;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

.header-command-center {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.global-search {
  height: 40px;
  min-width: 180px;
  flex: 1 1 320px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  color: #758398;
  background: rgba(241, 245, 249, 0.8);
  border: 1px solid rgba(16, 43, 76, 0.1);
  border-radius: var(--shell-radius);
}

.global-search:focus-within {
  background: #fff;
  border-color: rgba(249, 115, 22, 0.62);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.12);
}

.global-search svg {
  width: 17px;
  height: 17px;
}

.global-search input {
  min-width: 0;
  height: 36px;
  flex: 1;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.global-search kbd {
  padding: 2px 6px;
  color: #718096;
  background: #fff;
  border: 1px solid var(--shell-line);
  border-radius: 5px;
  font-size: 10px;
  white-space: nowrap;
}

.header-action {
  min-height: 40px !important;
  padding: 0 12px !important;
  gap: 7px;
  white-space: nowrap;
}

.header-action svg,
.icon-button svg {
  width: 17px;
  height: 17px;
}

.header-metrics {
  min-width: 0;
  justify-self: end;
  display: flex !important;
  align-items: center;
  gap: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

.mini-metric {
  min-width: 76px !important;
  padding: 0 10px !important;
  gap: 2px !important;
  border-left: 1px solid var(--shell-line) !important;
}

.mini-metric span {
  color: #758398 !important;
  font-size: 9px !important;
  letter-spacing: 0 !important;
}

.mini-metric strong {
  overflow: hidden;
  color: var(--shell-navy) !important;
  font-size: 13px !important;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.icon-button {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: var(--shell-navy);
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid var(--shell-line);
  border-radius: var(--shell-radius);
  cursor: pointer;
}

.icon-button:hover {
  background: #fff;
  border-color: rgba(249, 115, 22, 0.36);
}

.tab-surface {
  position: fixed;
  inset: var(--shell-topbar) auto 0 0;
  z-index: 70;
  width: var(--shell-sidebar) !important;
  display: block !important;
  padding: 12px 10px 18px;
  overflow: hidden auto;
  background: rgba(248, 250, 252, 0.84);
  border-right: 1px solid rgba(16, 43, 76, 0.1);
  -webkit-backdrop-filter: saturate(135%) blur(22px);
  backdrop-filter: saturate(135%) blur(22px);
}

nav#tabs.app-nav {
  width: 100%;
  display: flex !important;
  flex-direction: column;
  align-items: stretch !important;
  gap: 12px !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

.nav-group {
  width: 100%;
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 3px !important;
  padding: 0 !important;
  border: 0 !important;
}

.nav-group-label {
  padding: 6px 9px 4px;
  color: #8794a6 !important;
  font-size: 9px !important;
  font-weight: 700;
  letter-spacing: 0.08em !important;
  text-transform: uppercase;
}

.nav-group .tab-btn {
  width: 100% !important;
  min-height: 36px !important;
  display: flex !important;
  align-items: center;
  justify-content: flex-start !important;
  gap: 9px;
  padding: 7px 9px !important;
  color: #45566d !important;
  background: transparent !important;
  border: 1px solid transparent !important;
  border-radius: 7px !important;
  box-shadow: none !important;
  font-size: 12px !important;
  text-align: left;
}

.nav-group .tab-btn:hover {
  color: var(--shell-navy) !important;
  background: rgba(255, 255, 255, 0.72) !important;
  border-color: rgba(16, 43, 76, 0.08) !important;
  transform: none !important;
}

.nav-group .tab-btn.active {
  color: var(--shell-navy) !important;
  background: rgba(255, 255, 255, 0.96) !important;
  border-color: rgba(16, 43, 76, 0.12) !important;
  box-shadow: 0 5px 14px rgba(16, 43, 76, 0.08) !important;
}

.tab-icon {
  width: 24px !important;
  height: 24px !important;
  flex: 0 0 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #66768a !important;
  background: transparent !important;
  border-radius: 6px !important;
  font-size: 9px !important;
}

.tab-icon svg {
  width: 17px;
  height: 17px;
  stroke-width: 1.8;
}

.tab-btn.active .tab-icon {
  color: var(--shell-orange) !important;
  background: #fff7ed !important;
}

.summary-panel,
main,
footer {
  width: auto !important;
  max-width: none !important;
  margin-right: 0 !important;
  margin-left: var(--shell-sidebar) !important;
}

.summary-panel {
  margin-top: var(--shell-topbar) !important;
  padding: 14px 18px 0 !important;
}

.summary-content {
  min-height: 90px;
  display: grid !important;
  grid-template-columns: minmax(230px, 1.1fr) minmax(500px, 1.6fr);
  align-items: center;
  gap: 20px;
  padding: 16px 18px !important;
  color: var(--shell-text) !important;
  background: var(--shell-surface) !important;
  border: 1px solid var(--shell-line) !important;
  border-radius: var(--shell-radius) !important;
  box-shadow: var(--shell-shadow) !important;
}

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

.workspace-copy {
  gap: 3px !important;
}

.workspace-eyebrow {
  margin-bottom: 3px !important;
  color: var(--shell-orange) !important;
  font-size: 9px !important;
  letter-spacing: 0.08em !important;
}

.workspace-copy h2 {
  color: var(--shell-navy) !important;
  font-size: 18px !important;
  line-height: 1.2;
}

.workspace-copy p {
  max-width: 540px;
  color: var(--shell-muted) !important;
  font-size: 11px !important;
  line-height: 1.45;
}

.workspace-meta,
.summary-notes {
  display: none !important;
}

.summary-kpis {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px !important;
}

.summary-panel .kpi {
  min-height: 58px !important;
  padding: 10px 12px !important;
  color: var(--shell-text) !important;
  background: var(--shell-surface-soft) !important;
  border: 1px solid rgba(16, 43, 76, 0.08) !important;
  border-radius: 7px !important;
  box-shadow: none !important;
}

.summary-panel .kpi .label {
  color: #7a8799 !important;
  font-size: 8px !important;
  line-height: 1.25;
  letter-spacing: 0.04em !important;
}

.summary-panel .kpi .value {
  margin-top: 5px;
  color: var(--shell-navy) !important;
  font-size: 16px !important;
}

main {
  flex: 1 0 auto;
  padding: 14px 18px 30px !important;
}

footer {
  padding: 16px 18px 22px !important;
  border-top: 1px solid var(--shell-line) !important;
  background: transparent !important;
}

section.panel {
  padding: 18px !important;
  color: var(--shell-text) !important;
  background: var(--shell-surface) !important;
  border: 1px solid var(--shell-line) !important;
  border-radius: var(--shell-radius) !important;
  box-shadow: 0 7px 22px rgba(16, 43, 76, 0.06) !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

.panel-head {
  min-height: 44px;
  align-items: center !important;
  gap: 16px !important;
  padding-bottom: 12px !important;
  border-bottom: 1px solid rgba(16, 43, 76, 0.08) !important;
}

.panel-head-copy h2,
section.panel h2 {
  margin: 0 !important;
  color: var(--shell-navy) !important;
  font-size: 20px !important;
  letter-spacing: 0 !important;
}

.panel-head-copy p {
  margin: 3px 0 0 !important;
  color: var(--shell-muted) !important;
  font-size: 11px !important;
}

.btn {
  min-height: 38px !important;
  padding: 8px 13px !important;
  color: #fff !important;
  background: var(--shell-orange) !important;
  border: 1px solid var(--shell-orange) !important;
  border-radius: 7px !important;
  box-shadow: none !important;
  font-weight: 700;
  letter-spacing: 0 !important;
}

.btn:hover {
  background: #e9640c !important;
  border-color: #e9640c !important;
  box-shadow: 0 7px 18px rgba(249, 115, 22, 0.2) !important;
  transform: none !important;
}

.btn.secondary,
.btn.ghost,
.chart-zoom,
.detail-tab,
.action-menu > summary {
  color: var(--shell-navy) !important;
  background: #fff !important;
  border: 1px solid var(--shell-line-strong) !important;
  border-radius: 7px !important;
  box-shadow: none !important;
}

.btn.secondary:hover,
.btn.ghost:hover,
.detail-tab:hover {
  color: var(--shell-navy) !important;
  background: var(--shell-surface-soft) !important;
  border-color: rgba(16, 43, 76, 0.3) !important;
}

.toolbar-card,
.module-collapse,
.section-collapse,
.section-block,
.inspector-card,
.account-card,
.data-card,
.chart-card,
.alert-card,
.estimate-card,
.callout,
.trip-item,
.agenda-card,
.entity-table-wrap {
  color: var(--shell-text) !important;
  background: #fff !important;
  border: 1px solid var(--shell-line) !important;
  border-radius: var(--shell-radius) !important;
  box-shadow: none !important;
}

.toolbar-card {
  padding: 11px !important;
  background: var(--shell-surface-soft) !important;
}

.module-collapse > summary,
.section-collapse > summary,
.dashboard-fold > summary {
  min-height: 44px;
  padding: 10px 12px !important;
  color: var(--shell-navy) !important;
  background: #fff !important;
  border: 0 !important;
  border-radius: 0 !important;
  font-size: 12px;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

.module-collapse > summary small {
  margin-top: 2px;
  color: var(--shell-muted) !important;
  font-size: 10px;
}

.module-collapse-body,
.section-collapse-body {
  padding: 12px !important;
  border-top: 1px solid rgba(16, 43, 76, 0.08) !important;
}

.field label,
label {
  color: #56667a !important;
  font-size: 10px !important;
  font-weight: 700;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

input,
select,
textarea,
.searchable-select-input {
  min-height: 40px;
  padding: 9px 10px !important;
  color: var(--shell-text) !important;
  background: #fff !important;
  border: 1px solid #c7d2df !important;
  border-radius: 7px !important;
  box-shadow: none !important;
}

textarea {
  min-height: 84px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus,
.searchable-select-input:focus {
  border-color: rgba(249, 115, 22, 0.78) !important;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.12) !important;
}

.compact-grid {
  gap: 8px !important;
}

.compact-stat,
.kpi,
.account-item,
.card-grid > div,
.trip-metric,
.estimate-item,
.detail-breakdown-item,
.insight-card {
  padding: 10px 12px !important;
  background: var(--shell-surface-soft) !important;
  border: 1px solid rgba(16, 43, 76, 0.08) !important;
  border-radius: 7px !important;
  box-shadow: none !important;
}

.entity-shell-split {
  min-height: 360px;
  display: grid !important;
  grid-template-columns: minmax(600px, 1.75fr) minmax(320px, 0.9fr);
  gap: 12px !important;
  align-items: start;
}

.entity-table-wrap {
  overflow: auto;
}

.entity-table thead th,
.table-scroll thead th,
th {
  color: #627086 !important;
  background: #f3f6f9 !important;
  font-size: 9px !important;
  letter-spacing: 0.04em !important;
}

.entity-table td,
.entity-table th,
.table-scroll td,
.table-scroll th {
  padding: 9px 10px !important;
}

.entity-table tbody tr {
  cursor: pointer;
}

.entity-table tbody tr:hover td,
.entity-table tbody tr.selected td,
tr:hover td {
  background: #fff8f1 !important;
}

.trip-scope-tabs {
  width: max-content;
  max-width: 100%;
  display: flex;
  gap: 3px;
  padding: 3px;
  overflow-x: auto;
  background: #edf2f7;
  border: 1px solid rgba(16, 43, 76, 0.08);
  border-radius: 7px;
}

.trip-scope-tabs button {
  min-width: 82px;
  min-height: 34px;
  padding: 6px 10px;
  color: #5b6a7d;
  background: transparent;
  border: 0;
  border-radius: 5px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
}

.trip-scope-tabs button.active {
  color: var(--shell-navy);
  background: #fff;
  box-shadow: 0 2px 7px rgba(16, 43, 76, 0.08);
}

#viajeComposer[open] {
  position: fixed;
  inset: var(--shell-topbar) 0 0 auto;
  z-index: 95;
  width: min(820px, calc(100vw - 52px));
  margin: 0 !important;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.94) !important;
  border: 0 !important;
  border-left: 1px solid rgba(16, 43, 76, 0.14) !important;
  border-radius: 0 !important;
  box-shadow: -28px 0 70px rgba(16, 43, 76, 0.18) !important;
  -webkit-backdrop-filter: saturate(135%) blur(24px);
  backdrop-filter: saturate(135%) blur(24px);
}

#viajeComposer[open]::before {
  content: "";
  position: fixed;
  inset: var(--shell-topbar) min(820px, calc(100vw - 52px)) 0 0;
  background: rgba(15, 23, 42, 0.25);
}

#viajeComposer[open] > summary {
  position: relative;
  z-index: 2;
  height: 62px;
  padding: 12px 58px 12px 18px !important;
  background: rgba(255, 255, 255, 0.84) !important;
  border-bottom: 1px solid var(--shell-line) !important;
}

#viajeComposer[open] .module-collapse-body {
  position: relative;
  z-index: 2;
  height: calc(100vh - var(--shell-topbar) - 62px);
  padding: 14px 18px 82px !important;
  overflow: auto;
  border: 0 !important;
}

.composer-close {
  display: none;
}

#viajeComposer[open] .composer-close {
  position: fixed;
  top: calc(var(--shell-topbar) + 11px);
  right: 12px;
  z-index: 98;
  display: inline-flex;
}

body.composer-open {
  overflow: hidden;
}

.trip-composer-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 12px;
  align-items: start;
}

.trip-form-sections {
  min-width: 0;
  display: grid;
  gap: 9px;
}

.trip-form-sections .module-collapse {
  margin: 0 !important;
  overflow: visible;
}

.form-step-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.field-span-2 {
  grid-column: 1 / -1;
}

.checkbox-field {
  align-self: end;
}

.checkbox-line {
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 9px;
  background: var(--shell-surface-soft);
  border: 1px solid rgba(16, 43, 76, 0.08);
  border-radius: 7px;
  font-size: 10px;
}

.checkbox-line input {
  min-height: 0;
}

.trip-estimate {
  position: sticky;
  top: 0;
  display: grid;
  gap: 11px;
  padding: 13px;
  color: var(--shell-text);
  background: rgba(248, 250, 252, 0.9);
  border: 1px solid var(--shell-line);
  border-radius: var(--shell-radius);
}

.trip-estimate-head {
  display: grid;
  gap: 4px;
}

.trip-estimate-head span,
.trip-estimate-grid span {
  color: var(--shell-muted);
  font-size: 9px;
}

.trip-estimate-head strong {
  color: var(--shell-navy);
  font-size: 22px;
}

.trip-estimate-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.trip-estimate-grid > div {
  display: grid;
  gap: 3px;
  padding: 8px;
  background: #fff;
  border: 1px solid rgba(16, 43, 76, 0.08);
  border-radius: 6px;
}

.trip-estimate-grid strong {
  color: var(--shell-navy);
  font-size: 12px;
}

.trip-estimate p {
  margin: 0;
  color: var(--shell-muted);
  font-size: 9px;
  line-height: 1.45;
}

.estimate-actuals summary {
  color: var(--shell-navy);
  cursor: pointer;
  font-size: 10px;
  font-weight: 700;
}

.estimate-actuals .trip-estimate-grid {
  margin-top: 8px;
  grid-template-columns: 1fr;
}

.trip-composer-actions {
  position: fixed;
  right: 0;
  bottom: 0;
  z-index: 97;
  width: min(820px, calc(100vw - 52px));
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.86);
  border-top: 1px solid var(--shell-line);
  -webkit-backdrop-filter: saturate(135%) blur(18px);
  backdrop-filter: saturate(135%) blur(18px);
}

.trip-progress {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 10px 0 12px;
}

.trip-progress-step {
  position: relative;
  display: grid;
  gap: 5px;
  padding-right: 7px;
  color: #8491a3;
  font-size: 9px;
  font-weight: 700;
}

.trip-progress-step::before {
  content: "";
  width: 100%;
  height: 4px;
  background: #dce4ed;
  border-radius: 2px;
}

.trip-progress-step.complete,
.trip-progress-step.current {
  color: var(--shell-navy);
}

.trip-progress-step.complete::before {
  background: var(--shell-green);
}

.trip-progress-step.current::before {
  background: var(--shell-orange);
}

.next-action {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 10px 0;
  padding: 10px 11px;
  color: var(--shell-navy);
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 7px;
  font-size: 10px;
  line-height: 1.45;
}

.next-action svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  color: var(--shell-orange);
}

.app-toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 200;
  max-width: min(380px, calc(100vw - 32px));
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 12px 14px;
  color: #fff;
  background: rgba(16, 43, 76, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--shell-radius);
  box-shadow: 0 16px 38px rgba(16, 43, 76, 0.25);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  font-size: 12px;
}

.app-toast.error {
  background: rgba(146, 32, 32, 0.96);
}

.mobile-nav,
.mobile-nav-sheet,
.mobile-nav-backdrop {
  display: none;
}

.production-host #btnSeed {
  display: none !important;
}

@media (max-width: 1180px) {
  :root {
    --shell-sidebar: 188px;
  }

  .header-primary {
    grid-template-columns: minmax(170px, 0.8fr) minmax(330px, 1.6fr) auto !important;
  }

  .mini-metric {
    display: none !important;
  }

  .entity-shell,
  .entity-shell-split {
    grid-template-columns: minmax(520px, 1.55fr) minmax(300px, 0.9fr);
  }
}

@media (max-width: 880px) {
  :root {
    --shell-topbar: 60px;
    --shell-sidebar: 0px;
  }

  body {
    padding-bottom: 66px;
  }

  .app-header {
    height: var(--shell-topbar) !important;
    padding: 0 12px !important;
  }

  .header-primary {
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 8px !important;
  }

  .brand-logo {
    width: 78px !important;
    height: 36px !important;
  }

  .brand-info h1 {
    font-size: 14px !important;
  }

  .brand-info p {
    display: none;
  }

  .header-command-center,
  .header-metrics .mini-metric {
    display: none !important;
  }

  .header-metrics {
    display: flex !important;
  }

  .tab-surface {
    display: none !important;
  }

  .summary-panel {
    display: none !important;
  }

  main {
    margin: var(--shell-topbar) 0 0 !important;
    padding: 10px 10px 18px !important;
  }

  footer {
    margin: 0 !important;
    padding: 14px 12px 18px !important;
  }

  section.panel {
    padding: 12px !important;
    border-right: 0 !important;
    border-left: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  .panel-head {
    min-height: 40px;
    align-items: flex-start !important;
  }

  .panel-head-copy h2,
  section.panel h2 {
    font-size: 18px !important;
  }

  .panel-head-copy p {
    display: none;
  }

  .panel-head-actions .btn {
    min-height: 36px !important;
    padding: 7px 10px !important;
    font-size: 11px;
  }

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

  .toolbar-card {
    padding: 9px !important;
  }

  .filter-inline {
    grid-template-columns: minmax(0, 1fr) auto !important;
  }

  .filter-inline .field:not(.search-wide):not(.tight) {
    display: none;
  }

  .entity-shell {
    min-height: 0;
    display: block !important;
  }

  .entity-table-wrap {
    border: 0 !important;
  }

  .entity-table {
    min-width: 0 !important;
  }

  .entity-table thead {
    display: none;
  }

  .entity-table tbody,
  .entity-table tr,
  .entity-table td {
    display: block;
    width: 100%;
  }

  .entity-table tr {
    position: relative;
    margin-bottom: 8px;
    padding: 10px;
    background: #fff;
    border: 1px solid var(--shell-line);
    border-radius: var(--shell-radius);
  }

  .entity-table td {
    padding: 2px 0 !important;
    border: 0 !important;
  }

  .entity-table td:empty {
    display: none;
  }

  .mobile-nav {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 110;
    height: 64px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: 5px max(8px, env(safe-area-inset-left)) max(5px, env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.86);
    border-top: 1px solid rgba(16, 43, 76, 0.12);
    -webkit-backdrop-filter: saturate(145%) blur(22px);
    backdrop-filter: saturate(145%) blur(22px);
  }

  .mobile-nav button {
    min-width: 0;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 2px;
    padding: 2px;
    color: #718096;
    background: transparent;
    border: 0;
    border-radius: 6px;
    font-size: 9px;
    font-weight: 700;
  }

  .mobile-nav button.active {
    color: var(--shell-orange);
  }

  .mobile-nav svg {
    width: 21px;
    height: 21px;
    stroke-width: 1.8;
  }

  .mobile-nav-backdrop:not(.hidden) {
    position: fixed;
    inset: 0;
    z-index: 112;
    display: block;
    background: rgba(15, 23, 42, 0.28);
  }

  .mobile-nav-sheet:not(.hidden) {
    position: fixed;
    right: 8px;
    bottom: calc(64px + env(safe-area-inset-bottom));
    left: 8px;
    z-index: 113;
    display: block;
    max-height: min(68vh, 560px);
    padding: 12px;
    overflow: auto;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.86);
    border-radius: var(--shell-radius);
    box-shadow: 0 24px 70px rgba(16, 43, 76, 0.24);
    -webkit-backdrop-filter: saturate(145%) blur(24px);
    backdrop-filter: saturate(145%) blur(24px);
  }

  .mobile-sheet-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
  }

  .mobile-sheet-head > div {
    display: grid;
    gap: 2px;
  }

  .mobile-sheet-head strong {
    color: var(--shell-navy);
    font-size: 14px;
  }

  .mobile-sheet-head span {
    color: var(--shell-muted);
    font-size: 9px;
  }

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

  .mobile-sheet-grid button {
    min-height: 62px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 5px;
    padding: 7px;
    color: var(--shell-navy);
    background: #f8fafc;
    border: 1px solid var(--shell-line);
    border-radius: 7px;
    font-size: 9px;
    font-weight: 700;
  }

  .mobile-sheet-grid svg {
    width: 19px;
    height: 19px;
    color: var(--shell-orange);
  }

  #viajeComposer[open] {
    inset: var(--shell-topbar) 0 0 0;
    width: 100%;
  }

  #viajeComposer[open]::before {
    display: none;
  }

  #viajeComposer[open] .module-collapse-body {
    padding: 10px 10px 82px !important;
  }

  .trip-composer-form {
    grid-template-columns: 1fr;
  }

  .form-step-grid {
    grid-template-columns: 1fr;
  }

  .field-span-2 {
    grid-column: auto;
  }

  .trip-estimate {
    position: static;
    order: 0;
  }

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

  .trip-composer-actions {
    width: 100%;
    bottom: calc(64px + env(safe-area-inset-bottom));
    padding: 10px;
  }

  .trip-composer-actions .btn:last-child {
    flex: 1;
  }

  .app-toast {
    right: 10px;
    bottom: 74px;
    left: 10px;
    max-width: none;
  }
}

@media (max-width: 520px) {
  .brand-info h1 {
    font-size: 13px !important;
  }

  .panel-head-actions .btn {
    font-size: 0;
  }

  .panel-head-actions .btn::after {
    content: none;
  }

  .panel-head-actions .btn svg {
    width: 18px;
    height: 18px;
  }

  .insight-grid {
    display: grid !important;
    grid-template-columns: none !important;
    grid-auto-flow: column;
    grid-auto-columns: minmax(235px, 78vw);
    gap: 8px !important;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline proximity;
    scrollbar-width: none;
  }

  .insight-grid::-webkit-scrollbar {
    display: none;
  }

  .insight-card {
    min-height: 112px;
    scroll-snap-align: start;
  }

  .compact-grid {
    grid-template-columns: 1fr 1fr !important;
  }

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

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

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

@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
  .app-header,
  .tab-surface,
  .mobile-nav,
  .mobile-nav-sheet:not(.hidden),
  #viajeComposer[open],
  .trip-composer-actions,
  .app-toast {
    background: #fff !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }

  .app-toast {
    color: #fff !important;
    background: var(--shell-navy) !important;
  }
}

/* Catalog lookup stays visible; editing is an explicit, reversible action. */
.catalog-table-scroll { overflow: auto; max-width: 100%; }
.catalog-table-scroll table { min-width: 720px; }
.catalog-table-scroll tr[hidden] { display: none !important; }
.catalog-editor { scroll-margin-top: 84px; }
.entity-shell-split > * { min-width: 0; }
@media (min-width: 901px) and (max-width: 1250px) {
  .entity-shell-split { grid-template-columns: minmax(0, 1fr) !important; }
}

/* Local UX review: stable navigation and task-first workspace. */
.app-header { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(255,255,255,.97) !important; }
.app-header .tab-surface { height: calc(100dvh - var(--shell-topbar)); max-height: none; }
nav#tabs.app-nav { overflow: visible; }
nav#tabs .tab-btn.hidden, nav#tabs .tab-btn[hidden] { display: none !important; }
body[data-active-tab] .summary-panel { display: none !important; }
body[data-active-tab] #layoutMain { padding-top: calc(var(--shell-topbar) + 20px); }
#viajesOverview { display: none; }
#panel-viajes .trips-list-first { display: grid; grid-template-columns: minmax(0,1fr); gap: 18px; }
#panel-viajes .entity-table { min-width: 760px; }
#panel-viajes .entity-table td { white-space: normal; }
#panel-viajes .entity-table td:first-child { min-width: 190px; }
#panel-viajes .entity-table th { font-size: 11px; }
#panel-viajes .table-scroll { overflow-x: auto; }
#tripInspector { scroll-margin-top: calc(var(--shell-topbar) + 16px); }
#viajesListPanel { scroll-margin-top: calc(var(--shell-topbar) + 16px); }
@media (max-width: 520px) {
  .panel-head-actions .btn { font-size: 13px !important; }
  .panel-head { flex-wrap: wrap; gap: 12px; }
}
body[data-active-tab] #layoutMain { padding-top: calc(var(--shell-topbar) + 20px) !important; }
.entity-table .sub, .table-pager .meta { color: #526378 !important; }
.header-metrics .mini-metric { display: none !important; }
.header-primary { grid-template-columns: minmax(180px, 1fr) minmax(320px, 640px) 44px !important; }

@media (max-width: 880px) {
  .header-primary { grid-template-columns: minmax(0,1fr) 44px !important; }
  .header-actions { display: none !important; }
}
@media (max-width: 600px) {
  #panel-viajes .entity-table { min-width: 0; width:100%; }
  #panel-viajes .entity-table thead { display:none; }
  #panel-viajes .entity-table tbody, #panel-viajes .entity-table tr { display:block; }
  #panel-viajes .entity-table tr { padding:12px; border-bottom:1px solid var(--shell-line); }
  #panel-viajes .entity-table td { display:grid; grid-template-columns:90px minmax(0,1fr); padding:6px 0; border:0; min-width:0; }
  #panel-viajes .entity-table td::before { content:attr(data-label); color:#526378; font-size:12px; }
  #panel-viajes .entity-table td > .sub { grid-column:2; }
  #panel-viajes .entity-table td:first-child { min-width:0; }
  #panel-viajes .entity-table td .btn { min-height:40px; }
}
#viajeComposer:not([open]) { display: none; }
@media (max-width:880px) {
  body[data-active-tab] #layoutMain { margin-top:0 !important; padding-top:calc(var(--shell-topbar) + 12px) !important; }
  .filter-inline .field:not(.search-wide):not(.tight) { display:flex; }
  #viajesFilterBar .filter-inline { grid-template-columns:repeat(2,minmax(0,1fr)) !important; }
  #viajesFilterBar .search-wide { grid-column:1 / -1; }
  .mobile-nav button { font-size:11px; }
}

/* A single visible account-view control; both keep the existing synchronized state. */
#cu_quick { display: none; }
#cuentasFilterBar label[for="cu_quick"] { display:none; }
#cuQuickButtons { flex-wrap: wrap; }
@media (max-width: 760px) {
  #cu_quick, #cuentasFilterBar label[for="cu_quick"] { display: block; }
  #cuQuickButtons { display: none; }
}
#cuentasForecast { scroll-margin-top: 90px; }

/* Compact workspace: preserve content rather than clipping the page. */
body { overflow-x: visible; }
#layoutMain, section.panel, .row, .field, .toolbar-card, .table-scroll,
.entity-table-wrap, .filter-bar { min-width: 0; max-width: 100%; }
section.panel.stack { gap: 12px; }
section.panel > h3 { margin: 4px 0; }
.table-scroll { overscroll-behavior-inline: contain; }
#dashboardAnalysis .insight-grid {
  grid-template-columns: repeat(auto-fit,minmax(min(230px,100%),1fr)) !important;
  grid-auto-flow: row; grid-auto-columns: auto; overflow: visible;
}
#dashboardAnalysis .insight-card { min-height: 0; }
@media (max-width: 880px) {
  .toolbar-card .filter-inline { gap: 8px; }
  .kpis { gap: 8px; }
  .kpi .value { overflow-wrap: anywhere; }
}
@media (max-width: 600px) {
  .table-scroll:has(.table-gastos), .table-scroll:has(.table-combustible) {
    max-height: none; overflow: visible;
  }
  .table-scroll table.table-gastos, .table-scroll table.table-combustible {
    min-width: 0; width: 100%;
  }
  .table-gastos thead, .table-combustible thead { display: none; }
  .table-gastos tbody, .table-combustible tbody,
  .table-gastos tr, .table-combustible tr { display: block; }
  .table-gastos tr, .table-combustible tr { padding: 10px; border-bottom: 1px solid var(--shell-line); }
  .table-scroll .table-gastos td, .table-scroll .table-combustible td {
    display: grid; grid-template-columns: 100px minmax(0,1fr); gap: 8px;
    padding: 4px 0; border: 0; text-align: left; white-space: normal;
    min-width: 0; max-width: none; overflow-wrap: anywhere;
  }
  .table-gastos td[data-label]::before, .table-combustible td[data-label]::before {
    content: attr(data-label); color: #526378; font-size: 12px;
  }
  .table-gastos td:not([data-label]), .table-combustible td:not([data-label]) {
    display: flex; flex-wrap: wrap; align-items: center;
  }
  input, select, textarea { max-width: 100%; min-width: 0; }
}

.secondary-filters { flex: 1 1 100%; width: 100%; }
.secondary-filters .fold-body { flex-wrap: wrap; }
.secondary-filters .field { flex: 1 1 180px; }
@media (max-width: 600px) {
  #panel-dashboard .filter-inline { grid-template-columns: repeat(2,minmax(0,1fr)) !important; }
  #panel-dashboard .filter-inline .field { min-width: 0; }
  #panel-dashboard .filter-inline .tight { grid-column: 1 / -1; }
  #panel-dashboard .filter-inline .tight .btn { width: 100%; }
}
/* The parent stack provides spacing; avoid adding a second vertical margin. */
.dashboard-fold, .module-collapse + .module-collapse { margin-top: 0; }
.dashboard-fold > summary { gap: 8px; }
.dashboard-fold > summary::after {
  content: ''; width: 7px; height: 7px; flex: 0 0 7px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(-45deg); margin-left: auto;
}
.dashboard-fold[open] > summary::after { transform: rotate(45deg); }
/* Keep the financial total visible; category analysis remains one click away. */
.expense-totals { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; }
.expense-totals > span { display:flex; flex-direction:column; gap:6px; min-width:0; padding:12px; background:var(--shell-surface-soft); border:1px solid var(--shell-line); border-radius:12px; }
.expense-totals > span:last-child { background:#edf3fa; border-color:#c7d5e6; }
.expense-totals strong { font-size:clamp(15px,1.8vw,21px); font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
@media(max-width:600px) {
  .expense-totals { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
#tablaGasto .table-summary { color: #526378; }
#tablaGasto .table-summary strong { color: var(--shell-navy); }
/* Expense list fits the workspace; secondary fields are available per record. */
.table-scroll table.table-gastos { min-width:0; width:100%; table-layout:fixed; }
.table-scroll table.table-gastos th, .table-scroll table.table-gastos td {
  min-width:0; white-space:normal; overflow-wrap:anywhere; vertical-align:top;
}
.table-gastos th:nth-child(1) { width:26%; }
.table-gastos th:nth-child(2) { width:28%; }
.table-gastos th:nth-child(3) { width:20%; }
.table-gastos .sub { color:#526378; margin-top:4px; }
.expense-detail { margin-top:8px; min-width:0; }
.expense-detail summary { cursor:pointer; min-height:36px; padding:8px 0; color:var(--shell-navy); }
.expense-detail dl { margin:8px 0; }
.expense-detail dt { color:#526378; font-size:12px; margin-top:8px; }
.expense-detail dd { margin:2px 0; overflow-wrap:anywhere; }
.expense-detail .btn { margin:4px 0; }
#tablaGasto > details .table-summary { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(150px,100%),1fr)); white-space:normal; gap:0; padding:4px 12px 12px; }
#tablaGasto > details .table-summary > span { display:flex; flex-direction:column; gap:4px; padding:10px 8px; border-bottom:1px solid var(--shell-line); overflow-wrap:anywhere; }
#tablaGasto > details .table-summary strong { font-variant-numeric:tabular-nums; }
.table-gastos td.amount { font-weight:650; font-variant-numeric:tabular-nums; }
.expense-detail[open] { padding:0 10px 10px; background:var(--shell-surface-soft); border:1px solid var(--shell-line); border-radius:10px; }
.expense-detail summary:focus-visible { outline:2px solid var(--shell-navy); outline-offset:3px; }
@media(max-width:600px) {
  .table-scroll .table-gastos td.expense-actions { display:block; }
  .table-gastos td > .sub { grid-column:2; }
}

/* Natural language quote preview: compact and readable on narrow screens. */
#q_text_preview dl { display:grid; grid-template-columns:minmax(100px,1fr) minmax(0,2fr); gap:8px 16px; }
#q_text_preview dd { margin:0; overflow-wrap:anywhere; font-weight:600; }
#q_text_preview dt { color:var(--muted,#667085); }
#q_text { width:100%; box-sizing:border-box; }
#q_capture > summary { cursor:pointer; padding:12px 0; font-weight:600; }

/* Transport quoting: compact content, deliberate disclosure, wrapping actions. */
#panel-cotizador { max-width: 1080px; margin-inline: auto; min-width: 0; }
#panel-cotizador [hidden] { display: none !important; }
#panel-cotizador .quote-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
#panel-cotizador .quote-heading h2 { margin: 0; }
#panel-cotizador .quote-steps { list-style: none; padding: 0; display: flex; gap: 8px; flex-wrap: wrap; font-size: 13px; color: #41546a; }
#panel-cotizador .quote-steps li { padding: 8px 12px; background: #f1f5f9; border-radius: 12px; }
#panel-cotizador .form-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,230px),1fr)); gap: 12px; }
#panel-cotizador .field { min-width: 0; }
#panel-cotizador input, #panel-cotizador select, #panel-cotizador textarea { width: 100%; min-width: 0; box-sizing: border-box; }
#panel-cotizador details { border: 1px solid #d9e2ec; border-radius: 16px; padding: 14px; }
#panel-cotizador summary { cursor: pointer; font-weight: 600; }
#panel-cotizador details[open] > summary { margin-bottom: 14px; }
#panel-cotizador .row { flex-wrap: wrap; }
#panel-cotizador .quote-prices { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
#panel-cotizador .quote-prices > div { padding: 18px; background: #f1f5f9; border-radius: 16px; }
#panel-cotizador .quote-prices span { display: block; color: #41546a; font-size: 13px; }
#panel-cotizador .quote-prices strong { font-size: clamp(20px,3vw,30px); color: #102b4c; }
#panel-cotizador p, #panel-cotizador li, #panel-cotizador dd { overflow-wrap: anywhere; }
#panel-cotizador .quote-list-item { text-align: left; white-space: normal; overflow-wrap: anywhere; border: 1px solid #d9e2ec; background: white; padding: 14px; border-radius: 12px; cursor: pointer; color: #102b4c; }
#panel-cotizador :focus-visible { outline: 3px solid #2563eb; outline-offset: 3px; }
#panel-cotizador #q_status:empty, #panel-cotizador #q_text_status:empty { display: none; }
@media(max-width:540px) { #panel-cotizador .quote-prices { grid-template-columns: 1fr; } #panel-cotizador .quote-actions .btn { flex: 1 1 140px; } }

/* Compact filter workspaces: preserve native controls and secondary options. */
.compact-filter-bar { padding:10px !important; border-radius:12px !important; }
.compact-filter-bar .field { min-width:0 !important; gap:4px; }
.compact-filter-bar label { font-size:12px !important; line-height:1.3; margin:0; }
.compact-filter-bar :is(input,select,.btn) { min-height:40px !important; height:40px; padding:7px 10px !important; font-size:14px !important; border-radius:8px !important; max-width:100%; }
.compact-filter-bar .dashboard-fold { margin:8px 0 0; box-shadow:none; border:0; }
.compact-filter-bar .dashboard-fold > summary { min-height:40px; padding:8px 10px !important; font-size:13px; border-radius:8px; }
.compact-filter-bar details:not([open]) > :not(summary) { display:none !important; }
.compact-filter-bar .fold-body { padding:8px 0 0 !important; }
#viajesFilterBar > .filter-inline { display:grid; grid-template-columns:minmax(0,1fr) minmax(120px,180px) auto !important; gap:8px; }
#viajesFilterBar .search-wide { grid-column:auto; }
#viajesFilterBar #viajesMoreFilters .filter-inline { display:grid; grid-template-columns:repeat(auto-fit,minmax(145px,1fr)) !important; gap:8px; }
#viajesFilterBar .field { display:flex !important; }
#tablaViajes .inspector-empty { min-height:120px !important; padding:24px 16px !important; }
#tablaViajes .inspector-empty h3 { font-size:14px; margin:0; }
#tablaViajes .inspector-empty p { font-size:14px; margin:6px 0 0; }
@media(max-width:600px) {
  #viajesFilterBar > .filter-inline { grid-template-columns:minmax(0,1fr) auto !important; }
  #viajesFilterBar .search-wide { grid-column:1 / -1; }
  #viajesFilterBar #viajesMoreFilters .filter-inline { grid-template-columns:repeat(2,minmax(0,1fr)) !important; }
  .compact-filter-bar :is(input,select,.btn) { min-height:44px !important; height:44px; font-size:16px !important; }
}

/* One reading scale across navigation, metrics and operational panels. */
:root { --ui-font: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
body { font-family: var(--ui-font); font-size: 14px; line-height: 1.45; }
h1,h2,h3,h4,h5,h6,button,input,select,textarea,summary { font-family: var(--ui-font); }
section.panel h2 { font-size: 22px; line-height: 1.25; letter-spacing: -.02em; }
section.panel h3, section.panel h4 { font-size: 16px; line-height: 1.35; letter-spacing: 0; text-transform: none; }
section.panel summary { font-size: 14px; font-weight: 600; letter-spacing: 0; }
.kpi .label, .compact-stat span, .account-item span, .trip-metric span,
.estimate-item .label, .insight-card .eyebrow {
  font-size: 13px; font-weight: 500; line-height: 1.4;
  letter-spacing: 0; text-transform: none; color: #52647c;
}
.kpi .value, .compact-stat strong, .account-item strong,
.trip-metric strong, .estimate-item .value, .account-balance {
  font-size: 24px; font-weight: 600; line-height: 1.25;
  letter-spacing: -.025em; font-variant-numeric: tabular-nums;
}
.insight-card { padding: 14px; gap: 6px; box-shadow: none; }
.insight-card strong { font-size: 20px; font-weight: 600; line-height: 1.3; letter-spacing: -.02em; }
.insight-card p { font-size: 13px; line-height: 1.5; margin: 0; color: #52647c; }
.compact-stat, .account-item, .kpi { padding: 12px 14px; box-shadow: none; min-width: 0; }
.account-header h4 { text-transform: none; letter-spacing: 0; }
.account-header p { color: #52647c; font-size: 13px; }
.account-balance { padding: 10px 14px; }
.shell-insights-more { grid-column: 1 / -1; }
.shell-insights-more > summary { cursor: pointer; padding: 8px 0; color: #52647c; }
#panel-dashboard .section-collapse-meta { font-size: 12px; letter-spacing: 0; font-weight: 400; }
#panel-dashboard .compact-grid { gap: 8px; grid-template-columns: repeat(auto-fit,minmax(min(170px,100%),1fr)); }
.app-header .btn { text-transform: none; letter-spacing: 0; font-size: 14px; }
@media (max-width:600px) {
  input,select,textarea { font-size:16px; }
  #panel-dashboard .compact-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .compact-stat strong, .account-item strong { font-size:22px; }
}

/* Help supports hover, keyboard activation and touch; no data is removed. */
.has-context-help { position: relative; padding-right: 48px; }
.context-help { position: absolute; top: 8px; right: 8px; z-index: 2; }
.context-help > summary {
  display: grid; place-items: center; width: 32px; height: 32px;
  padding: 0; border: 1px solid #c5ceda; border-radius: 50%;
  color: #52647c; background: #fff; cursor: pointer; list-style: none;
  font-size: 14px; font-weight: 600;
}
.context-help > summary::-webkit-details-marker { display: none; }
.context-help > p {
  display: none; position: absolute; top: 36px; right: 0;
  width: min(260px, calc(100vw - 56px)); padding: 12px;
  background: #fff; color: #24364d; border: 1px solid #c5ceda;
  border-radius: 10px; box-shadow: 0 8px 24px #102b4c1a;
  font-size: 13px; line-height: 1.5; margin: 0;
}
.context-help[open] { z-index: 10; }
.context-help[open] > p { display: block; }
@media (hover:hover) {
  .context-help:hover { z-index: 10; }
  .context-help:hover > p { display: block; }
}
@media (pointer:coarse) {
  .context-help > summary { width: 44px; height: 44px; }
  .has-context-help { padding-right: 60px; }
  .context-help > p { top: 48px; }
}
@media (hover:hover) {
  .context-help:hover::details-content { content-visibility: visible; }
}
.inline-help { color:#52647c; font-size:13px; }
.inline-help > summary { cursor:pointer; font-size:13px; padding:8px 0; }
.inline-help > p { margin:4px 0 12px; line-height:1.5; }
