/* QR studio layout: clear header, focused preview, accessible settings. */
.gov-header { height: auto !important; min-height: 64px; position: relative; }
.gov-header-inner { display: flex !important; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 20px; height: auto !important; }
.gov-brand { flex-shrink: 0; }
.gov-brand-badge, .gov-offline-badge { display: none; }
.gov-header-nav { display: flex !important; width: auto; flex-wrap: wrap; gap: 8px; margin-left: auto; }
.gov-header-nav > a:not(:first-child), #qrBtnHeaderPrint, #qrBtnHeaderDownload, #qrBtnTopPrint, #btnStageResetAll, #qrBtnSidebarPrint, #floatingSheetZoomDock { display: none !important; }
.header-actions { display: flex; position: static !important; transform: none !important; align-items: center; gap: 8px; margin: 0 !important; }
.studio-workspace-grid { display: grid; grid-template-columns: 350px minmax(0, 1fr); gap: 16px; padding: 16px; align-items: start; }
.floating-tools-sidebar { border-radius: 14px; max-height: calc(100dvh - 110px); overflow-y: auto; scrollbar-width: thin; }
.stage-main-wrapper { border-radius: 14px; overflow: hidden; height: auto; }
.stage-top-bar { display: flex; flex-direction: column; align-items: stretch; padding: 12px; gap: 10px; }
.stage-step-pills { display: flex; flex-wrap: wrap; gap: 6px; width: 100%; }
.stage-step-pill { flex: 1 1 auto; min-height: 40px; }
#stagePaperSizeWrap, #qrStandeePaperBadge { display: none !important; }
.is-standee #stagePaperSizeWrap { display: flex !important; flex: 1 1 100%; gap: 10px; align-items: center; }
.is-standee #qrStandeePaperBadge { display: inline-flex !important; }
#qrLiveModeBadge { display: none; }
.stage-top-bar > div:last-child { justify-content: space-between; }
.stage-viewport-box { display: flex; align-items: center; justify-content: center; padding: 24px; min-height: 400px; height: auto; }
#qrSingleCanvasHolder { width: min(100%, 480px) !important; height: auto !important; min-height: 0 !important; max-height: none !important; aspect-ratio: 1 !important; margin: auto; padding: 20px; }
#qrSingleCanvasHolder #qrCanvas { width: 100% !important; height: auto !important; max-height: none !important; aspect-ratio: 1; }
.stage-action-bar { display: flex; flex-direction: column; padding: 14px; gap: 12px; }
.stage-buttons-group { display: flex; flex-wrap: wrap; gap: 8px; }
.stage-buttons-group .btn { min-height: 40px; font-size: 12px !important; }
.qr-preset-chips { display: none; }
#qrValidationStatus { font-size: 12px; }
.qr-settings-summary { list-style: none; cursor: pointer; }
.qr-settings-summary::-webkit-details-marker { display: none; }
.qr-settings-summary::after { content: '+'; margin-left: auto; font-size: 18px; color: #64748b; }
details[open] > .qr-settings-summary::after { content: '\2212'; }
.qr-settings-body { display: flex; flex-direction: column; gap: 12px; }
@media(max-width:760px) {
  .gov-header-inner { padding: 10px 12px; gap: 8px; }
  .gov-brand-title { font-size: 14px; }
  .gov-brand-subtitle { font-size: 10px; }
  .gov-header-nav { margin-left: 0; }
  .studio-workspace-grid { grid-template-columns: minmax(0,1fr); padding: 10px; gap: 12px; }
  .stage-main-wrapper { order: -1; }
  .floating-tools-sidebar { max-height: none; overflow: visible; }
  .stage-top-bar { padding: 10px; }
  .stage-top-bar > div:last-child { gap: 8px !important; }
  .stage-viewport-box { min-height: 0; padding: 16px; }
  #qrSingleCanvasHolder { width: 100% !important; padding: 14px; }
  .stage-buttons-group .btn { flex: 1 1 calc(50% - 8px); min-height: 44px; }
  .form-control, .form-select { min-height: 40px; }
}
/* Keep mode, paper, resolution and zoom in one horizontal toolbar. */
#qrMainStage .stage-top-bar { flex-direction: row; flex-wrap: nowrap; align-items: center; gap: 12px; overflow-x: auto; scrollbar-width: thin; padding: 10px 12px; }
#qrMainStage .stage-step-pills { flex: 0 0 auto; width: auto; flex-wrap: nowrap; align-items: center; gap: 6px; }
#qrMainStage .stage-step-pill { flex: 0 0 auto; white-space: nowrap; padding: 8px 12px; }
#qrMainStage.is-standee #stagePaperSizeWrap { flex: 0 0 auto; flex-direction: row; width: auto; padding: 6px 8px; gap: 8px; margin: 0; }
#stagePaperSizeWrap .form-label { margin: 0; white-space: nowrap; }
#stagePaperSizeWrap .form-select { width: 220px; min-width: 220px; }
#qrMainStage .stage-top-bar > div:last-child { flex: 0 0 auto; flex-wrap: nowrap !important; margin-left: auto; gap: 10px !important; }
#qrMainStage .stage-top-bar > div:last-child > div { flex-shrink: 0; white-space: nowrap; }
#qrMainStage #qrStandeePaperBadge { display: none !important; }
#qrSelDpiExport { max-width: 190px; }
#qrZoomControls { flex-wrap: nowrap; }
@media(max-width:760px) { #qrMainStage .stage-top-bar { gap: 8px; } #qrMainStage .stage-step-pill { padding: 8px; } }
/* Export controls sit above the preview, outside the settings sidebar. */
.qr-toolbar-export { display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: #fff; border-bottom: 1px solid #e2e8f0; overflow-x: auto; flex-shrink: 0; scrollbar-width: thin; }
.qr-toolbar-export > * { flex-shrink: 0; }
.qr-toolbar-export label { font-size: 11px; font-weight: 600; color: #64748b; white-space: nowrap; }
.qr-toolbar-export #qrSelSinglePaperSize { width: 230px; min-height: 36px; font-size: 11px !important; }
.qr-toolbar-export .btn { font-size: 11px !important; min-height: 36px; white-space: nowrap; }
.qr-toolbar-export #qrBtnSidebarPrint { display: inline-flex !important; }
#qrBtnStagePrint, #qrBtnStageDlPng, #qrBtnStageDlSvg, #qrBtnStageDlPdf { display: none !important; }
@media(max-width:760px) { .qr-toolbar-export .btn, .qr-toolbar-export #qrSelSinglePaperSize { min-height: 44px; } }
/* One compact row for mode, preview and export controls. */
#qrMainStage .stage-top-bar { justify-content: flex-start; gap: 10px; padding: 9px 10px; }
#qrMainStage .stage-step-pill { padding: 8px 9px; font-size: 11px !important; min-height: 36px; }
#qrMainStage .stage-top-bar > div:nth-child(2) { margin-left: 0; flex: 0 0 auto; gap: 7px !important; }
#qrMainStage .stage-top-bar .qr-toolbar-export { display: flex; flex: 0 0 auto; align-items: center; gap: 6px; padding: 0 0 0 10px; margin-left: auto; border: 0; border-left: 1px solid #e2e8f0; overflow: visible; background: transparent; }
#qrMainStage .qr-toolbar-export #qrSelSinglePaperSize { width: 185px; min-height: 34px; }
#qrMainStage .qr-toolbar-export .btn { padding: 7px 9px; min-height: 34px; font-size: 11px !important; }
#qrSelDpiExport { width: 155px !important; }
@media(max-width:760px) { #qrMainStage .stage-top-bar { gap: 8px; } #qrMainStage .qr-toolbar-export .btn, #qrMainStage .qr-toolbar-export #qrSelSinglePaperSize { min-height: 44px; } }
.upi-blog { max-width: 1100px; margin: 24px auto; padding: clamp(20px, 4vw, 44px); }
.upi-blog-eyebrow { color: #ea580c; font-size: 11px; letter-spacing: 1.5px; font-weight: 700; margin-bottom: 10px; }
.upi-blog h1 { font-size: clamp(26px, 3vw, 38px); line-height: 1.25; letter-spacing: -.7px; margin-bottom: 16px; }
.upi-blog-intro { max-width: 800px; color: #64748b; line-height: 1.8; }
.upi-blog-toc { display: flex; flex-wrap: wrap; gap: 10px; padding: 20px 0; border-bottom: 1px solid #e2e8f0; margin-bottom: 24px; }
.upi-blog-toc a { padding: 8px 12px; background: #fff7ed; color: #c2410c; border-radius: 8px; font-size: 12px; text-decoration: none; }
.upi-blog h2 { font-size: 21px; margin: 30px 0 12px; line-height: 1.4; }
.upi-blog p, .upi-blog li { line-height: 1.85; }
.upi-blog li { margin-bottom: 10px; }
.upi-blog a { color: #c2410c; text-underline-offset: 3px; }
.upi-blog-faq { padding: 16px 0; border-bottom: 1px solid #e2e8f0; }
.upi-blog-faq summary { font-weight: 600; cursor: pointer; }
.upi-blog-faq p { margin-top: 12px; color: #64748b; }
.upi-blog-cta { margin-top: 24px; padding: 16px; background: #fff7ed; border-radius: 10px; }
/* Payment-app caption below a single UPI QR; keep the QR quiet zone clear. */
.qr-payment-strip { display: none; width: 100%; padding: 18px 0 2px; border-top: 1px solid #f1f5f9; margin-top: 16px; text-align: center; }
.has-upi-payment #qrSingleCanvasHolder { flex-direction: column; aspect-ratio: auto !important; }
.has-upi-payment #qrSingleCanvasHolder .qr-payment-strip { display: block; }
.qr-payment-strip p { color: #475569; font-size: 13px; margin: 0 0 14px; }
.qr-upi-wordmark { display: flex; align-items: center; justify-content: center; gap: 20px; color: #727578; font: italic 800 30px 'Inter', sans-serif; letter-spacing: -1px; }
.qr-upi-wordmark i { color: #f97316; font-style: normal; text-shadow: 4px 0 #15803d; font-size: 24px; }
.qr-payment-apps { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 14px; padding-top: 16px; font-size: 14px; font-weight: 700; }
.qr-gpay { color: #4285f4; }
.qr-phonepe { color: #6739b7; }
.qr-paytm { color: #172b75; }
.qr-amazonpay { color: #202124; font-size: 12px; }
.qr-amazonpay b { color: #e88b00; }
@media(max-width:760px) { .qr-payment-apps { gap: 10px; font-size: 12px; } .qr-payment-strip p { font-size: 12px; } }
#qrStandeeMockup .qr-standee-payment-strip { display: block; background: #fff; border-radius: 9px; padding: 10px 8px; margin: 10px 0 0; border: 0; flex-shrink: 0; }
#qrStandeeMockup .qr-payment-strip p { font-size: 10px; margin-bottom: 7px; }
#qrStandeeMockup .qr-upi-wordmark { font-size: 24px; gap: 14px; }
#qrStandeeMockup .qr-payment-apps { padding-top: 8px; gap: 9px; font-size: 10px; }
#qrStandeeMockup .qr-amazonpay { font-size: 9px; }
/* Standee preview displays the same artwork generator used for PNG/PDF/print. */
#qrStandeeMockup > :not(#qrStandeeRenderCanvas) { display: none !important; }
#qrStandeeMockup.standee-acrylic-mockup { padding: 0 !important; width: min(100%, 420px) !important; height: auto !important; min-height: 0 !important; max-height: none !important; max-width: 100% !important; aspect-ratio: auto !important; border: 0; border-radius: 0; overflow: hidden; }
#qrStandeeRenderCanvas { display: block; width: 100%; height: auto; }
.qr-upi-wordmark img { width: 130px; height: 40px; object-fit: contain; }
.qr-payment-apps img { width: 80px; height: 25px; object-fit: contain; }
@media(max-width:760px) { .qr-upi-wordmark img { width: 110px; height: 32px; } .qr-payment-apps img { width: 62px; height: 22px; } }
