.zoom-control { position: relative; }
.quick-actions .zoom-toggle { min-width: 118px; justify-content: center; color: #355b88; font-weight: 650; }
.zoom-toggle span { color: var(--primary); font-variant-numeric: tabular-nums; }
.zoom-panel { position: absolute; top: calc(100% + 8px); left: 0; z-index: 61; width: min(300px, calc(100vw - 32px)); padding: 16px; border: 1px solid #dbe6f2; border-radius: 16px; background: #fff; box-shadow: 0 14px 32px #182f5030; color: #26364a; font-size: 14px; }
.zoom-panel[hidden] { display: none; }
.zoom-panel label { display: flex; justify-content: space-between; align-items: center; font-weight: 600; }
.zoom-panel strong { color: var(--primary); font-variant-numeric: tabular-nums; }
.zoom-panel input[type="range"] { display: block; width: 100%; margin: 14px 0; accent-color: var(--primary); cursor: pointer; }
.zoom-actions { display: grid; grid-template-columns: 40px 1fr 40px; gap: 8px; align-items: center; text-align: center; color: #566e89; font-size: 13px; }
.zoom-actions button { min-height: 36px; border: 1px solid #dbe6f2; border-radius: 9px; background: #f8fbff; color: #355b88; cursor: pointer; font-size: 16px; }
.zoom-actions button:hover { background: #eaf2ff; }
.lookup-page .quick-actions { flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 8px; }
.lookup-page .quick-actions .quick-action { flex: 0 0 auto; padding: 9px 14px; gap: 7px; font-size: 14px; min-height: 40px; }
.lookup-page .zoom-control, .lookup-page .theme-control { flex: 0 0 auto; width: auto; }
.lookup-page .theme-control { margin-right: auto; }
.lookup-page .quick-actions .zoom-toggle { min-width: 106px; width: auto; }
.lookup-page .quick-actions .theme-toggle { min-width: 132px; width: auto; }
@media (max-width: 600px) {
  .lookup-page .quick-actions { gap: 6px; padding: 4px 0; }
  .lookup-page .quick-actions .quick-action { padding: 8px 11px; font-size: 13px; min-height: 38px; }
  .lookup-page .quick-actions .zoom-toggle { min-width: auto; }
  .lookup-page .quick-actions .theme-toggle { min-width: auto; }
  .theme-panel, .zoom-panel { position: fixed; left: 16px; right: 16px; top: 72px; width: auto; max-height: calc(100svh - 90px); overflow-y: auto; }
  .lookup-page #zoomValue { display: none; }
}
@media (max-width: 360px) { .lookup-page .quick-actions { overflow-x: auto; scrollbar-width: none; } .lookup-page .quick-actions::-webkit-scrollbar { display: none; } }
/* Reflow the central panel; no page zoom, transform scaling or fixed content height. */
.zoom-panel .zoom-height-label { margin-top: 18px; }
#panelSizingHint { margin: 14px 0 12px; font-size: 13px; line-height: 1.65; color: #536880; }
.zoom-reset { width: 100%; min-height: 38px; border: 1px solid #dbe6f2; border-radius: 10px; background: #f3f6fb; color: #355b88; font-size: 14px; font-weight: 550; cursor: pointer; }
.zoom-reset:hover { background: #eaf0fa; }
.zoom-actions button:disabled { opacity: .4; cursor: not-allowed; }
.lookup-page .container { width: 100%; max-width: var(--workspace-width, 780px); }
.lookup-page .query-layout { display: flex; flex-direction: column; align-items: stretch; gap: 0; min-height: 0; padding-bottom: 0; }
.lookup-page .query-card { flex: 0 0 auto; }
.lookup-page .quote-card { display: flex; flex: 1 0 auto; flex-direction: column; }
.lookup-page .quote-paper { display: flex; flex: 1 0 auto; flex-direction: column; min-width: 0; }
.lookup-page .quote-empty { flex: 1 0 auto; }
.lookup-page .quote-foot { position: static; top: auto; margin-top: auto; flex: 0 0 auto; }
.lookup-page .quote-toolbar { flex-wrap: wrap; }
