.pricing-nav-button {
  background: transparent; border: 0; padding: 0; color: var(--blue);
  cursor: pointer; font: inherit;
}
.pricing-nav-button:hover { text-decoration: underline; }
.pricing-launcher { margin: 14px 0; }
.pricing-dock-enabled > .main { padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
.pricing-dock-enabled :is(input,textarea,button) { scroll-margin-bottom: 78px; }
.pricing-floating-window {
  position: fixed; top: var(--topbar-height, 68px); z-index: 90; display: flex; flex-direction: column;
  border: 1px solid #adb8c6; border-radius: 8px; background: #fff;
  box-shadow: 0 10px 36px #1f29332b; min-width: 0; overflow: hidden;
}
.pricing-floating-window[hidden],.pricing-window-bar[hidden] { display: none; }
.pricing-window-titlebar {
  flex: 0 0 auto; display: flex; justify-content: space-between; align-items: center;
  padding: 6px 8px 6px 14px; border-bottom: 1px solid #d9dee7; background: #f6f8fa;
  cursor: move; touch-action: none; user-select: none;
}
.pricing-window-titlebar h2 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 15px; }
.pricing-window-tools { display: flex; gap: 4px; }
.pricing-window-tool {
  width: 32px; height: 32px; flex-shrink: 0; border: 0; border-radius: 4px;
  background: transparent; color: #475467; display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.pricing-window-tool:hover { background: #e4eaf1; color: #142b49; }
.pricing-floating-window svg,.pricing-window-bar svg { width: 17px; height: 17px; flex-shrink: 0; }
.pricing-floating-window :focus-visible,.pricing-window-bar :focus-visible { outline: 2px solid #2457a6; outline-offset: -2px; }
.pricing-window-identity {
  flex-shrink: 0; display: grid; gap: 2px; padding: 9px 14px; border-bottom: 1px solid #e3e8ef;
  font-size: 12px; overflow-wrap: anywhere; max-height: 30%; overflow-y: auto;
}
.pricing-window-identity strong { font-size: 13px; }
.pricing-window-identity span { color: #536275; }
.pricing-window-toolbar {
  flex-shrink: 0; display: flex; justify-content: space-between; gap: 8px; align-items: center;
  padding: 5px 14px; font-size: 11px; border-bottom: 1px solid #e3e8ef;
}
.pricing-window-toolbar > span { min-width: 0; color: #526275; overflow-wrap: anywhere; }
.pricing-window-link { cursor: pointer; font: inherit; color: #2457a6; border: 0; padding: 3px 0; background: transparent; flex-shrink: 0; }
.pricing-window-link:hover { text-decoration: underline; }
.pricing-window-error { background: #fff1f0; color: #a32920; padding: 6px 14px; font-size: 12px; flex-shrink: 0; max-height: 22%; overflow-y: auto; }
.pricing-window-content { position: relative; flex: 1; min-height: 0; }
.pricing-window-content iframe { width: 100%; height: 100%; border: 0; display: block; }
.pricing-window-loading { position: absolute; inset: 0; background: #fff; padding: 25px; color: #667085; }
.pricing-floating-window.is-moving iframe { pointer-events: none; }
.pricing-floating-window:is(.is-maximized,.is-docked,.is-narrow) .pricing-window-resize { display: none; }
.pricing-floating-window:is(.is-maximized,.is-docked,.is-narrow) .pricing-window-titlebar { cursor: default; }
.pricing-floating-window:is(.is-docked,.is-narrow) { border-radius: 0; }
body.pricing-right-docked { padding-right: var(--pricing-dock-space, 520px); box-sizing: border-box; }
body.pricing-right-docked .app-shell { min-width: 0; }
body.pricing-right-docked .main { min-width: 0; }
.pricing-window-tool:disabled { opacity: .45; cursor: not-allowed; }
.pricing-window-resize {
  position: absolute; bottom: 1px; right: 1px; height: 18px; width: 18px; background: #edf2f6;
  border: 0; padding: 0; cursor: nwse-resize; color: #687b8d; touch-action: none; border-radius: 3px;
}
.pricing-window-bar {
  position: fixed; z-index: 90; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); right: 16px; max-width: calc(100% - 32px);
  display: flex; align-items: center; border: 1px solid #9fafc1; border-radius: 6px; padding: 4px;
  background: #fff; box-shadow: 0 3px 14px #1f293325;
}
#pricing-float-restore {
  border: 0; background: transparent; color: #20446d; cursor: pointer; display: flex; gap: 8px;
  align-items: center; padding: 7px 10px; font: inherit; font-size: 13px; min-width: 0; min-height: 38px;
}
#pricing-float-restore:hover { background: #eaf1ff; }
#pricing-float-bar-status { color: #a32920; font-size: 11px; }
.embedded-shell { background: #fff; overscroll-behavior: contain; }
.embedded-shell .main { padding: 10px 14px 24px; max-width: none; }
.embedded-shell .pricing-float-search { font-size: 12px; }
.embedded-shell .pricing-float-search > summary { cursor: pointer; font-weight: 600; color: #2457a6; }
.embedded-shell .pricing-search { padding: 8px 0; }
.embedded-shell .pricing-search .button { font-size: 12px; padding: 5px 9px; min-height: 34px; }
.embedded-shell .pricing-widget .pricing-widget-heading { display: none; }
.embedded-shell .pricing-widget-heading h2,.embedded-shell .pricing-identity { display: none; }
.embedded-shell .pricing-widget-heading p { font-size: 11px; margin: 4px 0; }
.embedded-shell .pricing-draft-status { font-size: 11px; }
.embedded-shell .pricing-input-result { padding-top: 10px; gap: 12px; }
.embedded-shell .pricing-input-section { padding-bottom: 12px; }
.embedded-shell .pricing-cost-grid { grid-template-columns: 1fr; gap: 6px; }
.embedded-shell .pricing-cost-row { grid-template-columns: 90px minmax(0,1fr) 88px 95px; gap: 6px; }
.embedded-shell .pricing-cost-row label,.embedded-shell .pricing-derived { grid-column: auto; }
.embedded-shell .pricing-derived { text-align: right; }
.embedded-shell .pricing-secondary-inputs { grid-template-columns: 1fr 1fr; gap: 8px; }
.embedded-shell .pricing-fixed-field { grid-column: 1 / -1; padding: 4px 8px; font-size: 12px; }
.embedded-shell .pricing-fixed-field .field-note { display: none; }
.embedded-shell .pricing-summary { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 5px; }
.embedded-shell .pricing-summary > div { padding: 5px 7px; }
.embedded-shell .pricing-actions { gap: 7px; flex-direction: row; justify-content: flex-start; margin-top: 10px; }
.embedded-shell .pricing-actions .button { font-size: 12px; min-height: 32px; padding: 4px 9px; }
.embedded-shell .pricing-actions #pricing-expand-link { display: none; }
.embedded-shell .pricing-actions .field-note { flex-basis: 100%; }
.embedded-shell .pricing-results-heading { display: block; margin-bottom: 6px; }
.embedded-shell .pricing-results-heading h3 { margin-bottom: 4px; }
.embedded-shell .pricing-selection { margin-top: 6px; min-height: 26px; padding: 4px 7px; }
.embedded-shell .pricing-table td,.embedded-shell .pricing-table th { padding: 6px 7px; }
.embedded-shell .pricing-row-actions { align-items: center; }
.embedded-shell .pricing-table .pricing-copy { min-height: 29px; font-size: 11px; }
.pricing-detail-toggle { display: flex; gap: 6px; align-items: center; font-size: 12px; font-weight: 400; }
.embedded-shell .pricing-results-section { min-width: 0; }
.embedded-shell .pricing-table-wrap { overflow-x: auto; overflow-y: visible; max-width: 100%; }
.embedded-shell .pricing-table { min-width: 1040px; table-layout: auto; }
.embedded-shell .pricing-input-section { padding: 16px; border: 1px solid #d7e0e9; border-radius: 8px; background: #fff; }
.embedded-shell .pricing-cost-row { grid-template-columns: minmax(112px,1fr) minmax(92px,1.2fr) 82px minmax(82px,1fr); align-items: start; }
.embedded-shell .pricing-cost-row label { padding-top: 9px; }
.embedded-shell .pricing-cost-row input,.embedded-shell .pricing-cost-row select { width: 100%; }
.embedded-shell .pricing-cost-row .field-error { grid-column: 1 / -1; }
.embedded-shell .pricing-results-section { padding: 0 2px 8px; }
.embedded-shell .pricing-source-table { min-width: 650px; }
.embedded-shell .pricing-history-item { font-size: 12px; }
.embedded-shell .pricing-history-item .button { min-height: 30px; padding: 4px 9px; font-size: 12px; }
@media (max-width: 700px) {
  body.pricing-right-docked { padding-right: 0; }
  .pricing-window-titlebar { cursor: default; }
  .pricing-window-resize { display: none; }
  .pricing-window-titlebar h2 { font-size: 14px; }
  .pricing-window-identity { padding: 5px 10px; font-size: 11px; }
  .pricing-window-toolbar { padding: 3px 10px; }
  .pricing-window-identity strong { font-size: 12px; }
}
@media (max-width: 440px) {
  .embedded-shell .main { padding: 8px 10px 24px; }
  .embedded-shell .pricing-cost-row { grid-template-columns: minmax(0,1fr) 83px; }
  .embedded-shell .pricing-cost-row label { grid-column: 1 / -1; }
  .embedded-shell .pricing-derived { grid-column: 1 / -1; text-align: left; }
  .embedded-shell .pricing-summary { grid-template-columns: 1fr; }
  .embedded-shell .pricing-table td,.embedded-shell .pricing-table th { padding: 5px 4px; font-size: 11px; }
  .embedded-shell .pricing-row-actions { flex-direction: column; gap: 3px; }
  .embedded-shell .pricing-table { min-width: 980px; }
}
@media print {
  .pricing-floating-window,.pricing-window-bar,.pricing-launcher,.pricing-nav-button { display: none; }
}
