.zoom-control { position: relative; }
.quick-actions .zoom-toggle { min-width: 108px; justify-content: center; color: #355b88; font-weight: 700; }
.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(290px, calc(100vw - 32px)); padding: 15px; border: 1px solid #dbe6f2; border-radius: 15px; background: #fff; box-shadow: 0 14px 32px #182f5030; color: #26364a; font-size: 13px; }
.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: 38px 1fr 38px; gap: 7px; }
.zoom-actions button { min-height: 33px; border: 1px solid #dbe6f2; border-radius: 8px; background: #f8fbff; color: #355b88; cursor: pointer; }
.zoom-actions button:hover { background: #eaf2ff; }
.lookup-page .quick-actions { flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 6px; }
.lookup-page .quick-actions .quick-action { flex: 0 0 auto; padding: 7px 8px; gap: 5px; font-size: 11px; }
.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: 90px; width: auto; }
.lookup-page .quick-actions .theme-toggle { min-width: 125px; width: auto; }
@media (max-width: 600px) {
  .lookup-page .quick-actions { gap: 4px; padding: 4px; }
  .lookup-page .quick-actions .zoom-toggle { min-width: 78px; font-size: 10px; }
  .lookup-page .quick-actions .theme-toggle { min-width: 90px; font-size: 10px; }
  .lookup-page .quick-actions #btnHistory, .lookup-page .quick-actions #btnAddScheme, .lookup-page .quick-actions #btnMyLocks { min-width: 32px; padding: 6px; justify-content: center; }
  .lookup-page .quick-actions .round-icon { display: inline-flex; }
  .lookup-page .quick-actions #btnHistory > span:last-child, .lookup-page .quick-actions #btnAddScheme > span:last-child, .lookup-page .quick-actions #btnMyLocks > span:last-child { display: none; }
  .lookup-page .quick-actions > .quick-action:last-child { padding: 6px; }
  .theme-panel, .zoom-panel { position: fixed; left: 16px; right: 16px; top: 70px; width: auto; }
}
@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-actions { align-items: center; text-align: center; color: #657b96; font-size: 11px; }
.zoom-panel .zoom-height-label { margin-top: 20px; }
#panelSizingHint { margin: 15px 0 12px; font-size: 11px; line-height: 1.7; color: #60748b; }
.zoom-reset { width: 100%; min-height: 36px; border: 1px solid #dbe6f2; border-radius: 9px; background: #f3f6fb; color: #355b88; 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, 720px); }
.lookup-page .query-layout { display: flex; flex-direction: column; align-items: stretch; gap: 0; min-height: 100vh; min-height: var(--workspace-height, 100svh); 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; }
@media (max-width: 600px) { .lookup-page #zoomValue { display: none; } .zoom-panel { max-height: calc(100svh - 90px); overflow-y: auto; } }
