/* Shared mobile experience. Desktop compositions and certificate artwork remain independent. */
:root { --mobile-nav-height: 72px; --mobile-action-height: 96px; --mobile-header-height: 64px; }
.skip-link { position:fixed; top:8px; left:12px; z-index:200; transform:translateY(-180%); padding:12px 18px; border-radius:6px; background:#ffd43a; color:#012b6f; font-weight:700; }
.skip-link:focus { transform:none; }
.mobile-nav,.mobile-help,.mobile-certificate-intro,.mobile-home-steps,.certificate-detail-list,.fan-mobile-actions,.wall-mobile-toolbar { display:none; }
.location-help { grid-column:1/-1; margin:0 0 18px; color:#526680; font-size:13px; }
.location-help summary { padding:10px 0; cursor:pointer; font-weight:600; }
.location-help p { margin:6px 0 0; line-height:1.6; }
.location-help a { text-decoration:underline; }
.field-help { font-size:13px; line-height:1.5; margin:0 0 14px; }
.field-error { color:#9b283d; font-size:13px; font-weight:500; line-height:1.45; margin:6px 0 0; }
[aria-invalid=true]:not(.field-error) { border-color:#a52b42; }
.account-page { display:flex; flex-direction:column; }
.account-page > .page-head { order:0; }
.account-page > .home-feature { order:2; }
.account-page > .shortcut-grid { order:3; }
.account-page > .notice { order:4; }
.account-page > .account-next { order:5; }
.account-next { margin:24px 0; }
.account-next .eyebrow { margin-bottom:10px; }
.account-next .notice { margin:10px 0; }
.cert-thumb-link { display:block; min-width:0; }
.settings-task > summary { list-style:none; cursor:pointer; font:700 20px/1.3 'Instrument Sans',sans-serif; }
.settings-task > summary::-webkit-details-marker { display:none; }
.settings-task > summary > span { display:block; margin-top:5px; font-size:13px; font-weight:400; color:#526680; }
.settings-task-content { padding-top:20px; }
.settings-task-content > p { margin:0 0 18px; overflow-wrap:anywhere; }
.settings-task:not([open]) > summary::after { content:'+'; float:right; }
.settings-task[open] > summary::after { content:'−'; float:right; }
.settings-task summary:focus-visible { outline:3px solid #d8a700; outline-offset:6px; }
.kapi-invitation-dismiss { position:absolute; top:-12px; right:80px; width:28px; height:28px; border:1px solid #d2deed; border-radius:50%; background:#fff; color:#526680; font-size:18px; z-index:1; }
.kapi-invitation-dismiss[hidden],.kapi-is-open .kapi-invitation-dismiss { display:none; }
.kapi.invitation-dismissed .kapi-invitation { display:none; }
.certificate-expand,.wall-full-preview { border:1px solid #bdcde1; border-radius:999px; background:#fff; color:#012b6f; padding:10px 15px; min-height:44px; font:600 13px/1.4 'Instrument Sans',sans-serif; cursor:pointer; }
.certificate-explorer-heading { flex-wrap:wrap; }
.wall-full-preview { display:block; margin:14px auto 0; }
.wall-save-help { margin-top:24px; padding:16px 0; border-top:1px solid #d4dfeb; font-size:14px; }
.wall-save-help summary { cursor:pointer; font-weight:600; padding:8px 0; }
.wall-save-help p { padding:12px 0 0; line-height:1.6; }
.image-viewer { width:min(1100px,calc(100vw - 32px)); max-height:94dvh; margin:auto; border:0; border-radius:16px; padding:0; background:#edf3f8; color:#012b6f; }
.image-viewer[open] { display:flex; flex-direction:column; }
.image-viewer::backdrop { background:#001637cf; }
.image-viewer-header { display:flex; align-items:center; justify-content:space-between; gap:12px; flex:0 0 auto; padding:12px 18px; background:white; border-bottom:1px solid #d4dfeb; }
.image-viewer-header h2 { font:700 17px/1.4 'Instrument Sans',sans-serif; }
.image-viewer-scroll { overflow:auto; min-height:0; padding:16px; overscroll-behavior:contain; }
.image-viewer-art { width:calc(100% * var(--viewer-scale,1)); margin:auto; }
.image-viewer-art > img,.image-viewer-art > canvas { display:block; width:100%; height:auto; }
.image-viewer-art > .fan-card { max-width:470px; margin:auto; }
.image-viewer-controls { display:flex; align-items:center; flex-wrap:wrap; gap:8px; flex:0 0 auto; padding:10px 18px; background:#fff; border-top:1px solid #d4dfeb; }
.image-viewer-controls button { min-width:44px; min-height:44px; border:1px solid #cbd8e9; border-radius:999px; padding:8px 12px; background:#fff; color:#012b6f; font-weight:600; }
.image-viewer-controls span { font-size:12px; color:#526680; }
.range-fine-controls { display:flex; align-items:center; gap:8px; margin-top:6px; }
.range-fine-controls button { width:44px; height:44px; border:1px solid #cbd8e9; border-radius:50%; background:#fff; color:#012b6f; font-size:21px; }
.range-fine-controls input { width:88px; min-width:0; min-height:44px; margin:0; padding:8px; text-align:center; font-size:16px; }
.range-fine-controls span { font-size:13px; }
.payment-stage-label { display:none; }
@media (max-width:800px), (max-width:960px) and (max-height:520px) {
  html { scroll-padding-top:calc(var(--mobile-header-height) + 18px); }
  body { font-size:16px; line-height:1.5; padding-bottom:env(safe-area-inset-bottom); }
  body.has-account { padding-bottom:calc(var(--mobile-nav-height) + env(safe-area-inset-bottom) + 12px); }
  main { min-width:0; }
  .wrap { padding-left:20px; padding-right:20px; }
  .top { position:sticky; top:0; height:var(--mobile-header-height); min-height:var(--mobile-header-height); padding:0 16px; gap:12px; }
  .brand { min-width:0; gap:0; }
  .brand img { width:105px; height:40px; }
  .brand-text,.top .music-toggle,.top .user-label,.top .top-actions > form { display:none; }
  .top-actions { gap:8px; }
  .top .avatar { min-width:44px; width:44px; height:44px; font-size:14px; }
  .top .top-actions .btn { min-height:44px; padding:10px 16px; font-size:14px; }
  .mobile-help { display:grid; place-items:center; width:44px; height:44px; border:1px solid #ffffff45; border-radius:50%; background:transparent; color:#fff; font-size:20px; font-weight:600; }
  .private-nav { display:none; }
  .mobile-nav { position:fixed; z-index:70; inset:auto 0 0; display:grid; grid-template-columns:var(--mobile-nav-columns,2.6fr 1fr 1fr 1fr); align-items:center; gap:4px; height:calc(var(--mobile-nav-height) + env(safe-area-inset-bottom)); padding:10px 12px calc(10px + env(safe-area-inset-bottom)); background:#fff; border-top:1px solid #dce5ee; box-shadow:0 -4px 18px #012b6f06; }
  .mobile-nav::before { content:''; position:absolute; top:10px; bottom:calc(10px + env(safe-area-inset-bottom)); left:0; width:var(--mobile-nav-width,0px); background:#012b6f; border-radius:999px; transform:translateX(var(--mobile-nav-left,12px)); pointer-events:none; }
  .mobile-nav.is-ready::before { transition:transform 360ms cubic-bezier(.22,.75,.25,1),width 360ms cubic-bezier(.22,.75,.25,1); }
  .mobile-nav a { position:relative; z-index:1; display:flex; min-width:0; min-height:52px; flex-direction:row; justify-content:center; align-items:center; gap:8px; padding:10px 8px; color:#61748b; font:600 13px/1.2 'Instrument Sans',sans-serif; -webkit-tap-highlight-color:transparent; }
  .mobile-nav a > span { display:none; white-space:nowrap; }
  .mobile-nav a.active { color:#fff; }
  .mobile-nav a.active > span { display:block; }
  .mobile-nav svg { flex:0 0 25px; width:25px; height:25px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linejoin:round; stroke-linecap:round; }
  .mobile-nav a:not(.active):hover { color:#012b6f; background:#edf3f8; border-radius:999px; }
  .mobile-nav a:focus-visible { outline-offset:0; border-radius:999px; }
  body.mobile-keyboard-open .mobile-nav { display:none; }
  .page { min-height:calc(100svh - 150px); padding-bottom:32px; }
  .page-head { padding:25px 0 22px; gap:16px; margin:0; }
  .page-head h1,.auth-panel h1 { font-size:clamp(28px,8vw,38px); line-height:1.13; overflow-wrap:anywhere; }
  .page-head p { font-size:15px; margin-top:10px; }
  .page-head .eyebrow { font-size:13px; margin-bottom:10px; }
  .field { min-width:0; font-size:14px; margin-bottom:18px; gap:7px; line-height:1.4; }
  .field input,.field select,.field textarea,input,select,textarea { min-width:0; max-width:100%; min-height:48px; font-size:16px; padding:12px; }
  textarea { min-height:100px; }
  .field > small,.field small,.muted { font-size:13px; line-height:1.55; }
  .form-grid,.geo-fields.form-grid,.phone-fields { grid-template-columns:minmax(0,1fr); gap:0; }
  .form-grid > *,.geo-fields > *,.phone-fields > * { min-width:0; }
  .geo-fields > input[type=hidden] { display:none; }
  .location-help { margin:2px 0 18px; font-size:13px; }
  .location-help summary { min-height:44px; }
  .document-input-group > select { flex-basis:88px; width:88px; padding:10px; }
  .document-input-group > input { width:0; max-width:none; flex:1; }
  .password { min-width:0; }
  .password input { padding-right:76px; }
  .password button { min-width:62px; min-height:44px; font-size:13px; }
  .check { font-size:14px; line-height:1.5; min-height:44px; align-items:flex-start; gap:10px; }
  .check input,.lab-choice input { flex:0 0 20px; width:20px; min-height:20px; height:20px; margin-top:2px; }
  .btn,.btn.small,.certificate-list .actions .btn,.settings-page .btn { min-height:48px; font-size:15px; line-height:1.35; padding:12px 18px; }
  .btn.btn-pill { border-radius:999px; }
  .actions { gap:10px; flex-wrap:wrap; }
  .textlink { line-height:1.5; }
  .auth-layout { display:block; }
  .auth-aside { display:none; }
  .auth-panel { padding:26px 20px 32px; min-height:calc(100svh - 220px); }
  .auth-panel > p { font-size:16px; margin:14px 0 22px; }
  .auth-panel fieldset { min-width:0; }
  .auth-panel fieldset > p { font-size:16px; line-height:1.55; }
  .auth-panel .actions { display:grid; grid-template-columns:auto minmax(0,1fr); }
  .auth-panel .stepper { flex-wrap:wrap; gap:8px 12px; margin-bottom:24px; font-size:12px; }
  .stepper span[aria-current=step] { color:#012b6f; font-weight:700; }
  .ts-wrapper { width:100%; min-width:0; }
  .ts-wrapper .ts-control { min-width:0; min-height:48px; padding:12px 34px 12px 12px; font-size:16px; }
  .ts-wrapper .ts-control > input { font-size:16px; min-width:0!important; width:auto; min-height:22px; }
  .ts-wrapper .ts-dropdown { font-size:16px; }
  .ts-wrapper .ts-dropdown .option { padding:12px; min-height:44px; }
  .phone-fields .iti { width:100%; min-width:0; }
  .phone-fields .iti input.iti__tel-input { min-height:48px; height:48px; font-size:16px; }
  .iti__selected-country { min-width:44px; min-height:44px; }
  .profile-select,.profile-select label { width:100%; min-width:0; font-size:14px; }
  .profile-select select { display:block; width:100%; max-width:100%; margin-top:5px; font-size:16px; }
  /* Put the fan's next task before promotional blocks. */
  .account-page > .account-next { order:1; margin:0 0 20px; }
  .account-next .notice { display:flex; align-items:flex-start; flex-direction:column; gap:12px; padding:18px; font-size:14px; }
  .account-next .notice .btn { width:100%; border-radius:999px; }
  .account-page > .page-head { padding-bottom:20px; }
  .account-page .welcome-art { min-height:230px; padding:24px; }
  .account-page .welcome-art h2 { max-width:none; font-size:clamp(32px,10vw,44px); line-height:1.1; }
  .account-page .home-feature .copy { padding:22px; gap:12px; }
  .account-page .home-feature h3 { font-size:27px; }
  .shortcut-grid { margin-top:20px; }
  .shortcut { min-width:0; padding:20px; }
  .shortcut h3 { font-size:25px; line-height:1.2; }
  /* Compact family list; actions still expose their full labels. */
  .certificate-list .cert-row { display:grid; grid-template-columns:80px minmax(0,1fr); gap:7px 14px; padding:18px; margin-bottom:14px; }
  .certificate-list .cert-meta { display:contents; }
  .certificate-list .cert-row > .cert-thumb-link,.certificate-list .cert-row > .empty { grid-column:1; grid-row:1/5; align-self:start; margin-top:8px; }
  .certificate-list .cert-preview,.certificate-list img.cert-thumb { width:80px; height:auto; aspect-ratio:3/2; }
  .certificate-list .empty.cert-preview { height:70px; }
  .certificate-list .empty.cert-preview h3 { font-size:14px; }
  .certificate-list .empty.cert-preview p { display:none; }
  .certificate-list .cert-meta > :not(.actions) { grid-column:2; min-width:0; }
  .certificate-list .cert-meta h3 { font-family:'Instrument Sans',sans-serif; font-size:19px; font-weight:700; line-height:1.3; margin:0; overflow-wrap:anywhere; }
  .certificate-list .cert-meta code { font-size:12px; overflow-wrap:anywhere; }
  .certificate-list .cert-meta p { margin:0; font-size:13px; }
  .certificate-list .cert-meta .status { justify-self:start; font-size:11px; margin:0 0 3px; }
  .certificate-list .cert-meta .actions { grid-column:1/-1; display:grid; grid-template-columns:minmax(0,1fr); margin-top:12px; }
  .certificate-list .cert-meta .actions .btn { width:100%; }
  .cert-detail .actions { display:grid; grid-template-columns:1fr; }
  .cert-detail .certificate-canvas { width:100%; height:auto; }
  /* QR and its useful actions travel together. */
  .genuino-page .auth-grid { display:flex; flex-direction:column; gap:18px; }
  .genuino-page .fan-card { min-height:0; width:100%; padding:24px 22px; }
  .genuino-page .fan-card .qr { width:176px; height:176px; margin:20px auto; }
  .genuino-page .fan-card .qr img { width:100%; height:100%; object-fit:contain; }
  .genuino-page .fan-card h2 { font-size:clamp(25px,7vw,33px); }
  .genuino-page .fan-card .card-number { font-size:16px; overflow-wrap:anywhere; }
  .fan-mobile-actions { display:grid; width:100%; gap:10px; }
  .genuino-page .auth-copy .authenticity-cta { display:none; }
  .genuino-page .auth-copy { padding-top:8px; }
  .genuino-page .auth-copy h2 { font-size:28px; }
  .genuino-page .auth-copy p { font-size:15px; }
  .genuino-page .future { margin-top:20px; }
  .genuino-page .future h3 { font-size:23px; }
  .public-authenticity { margin:18px 16px; padding:22px; }
  .public-authenticity h1 { font-size:clamp(26px,8vw,35px); }
  .public-authenticity .red-notice { padding:16px; font-size:14px; margin:18px 0; }
  .public-authenticity .facts { gap:16px; }
  .public-authenticity .authenticity-number dd { font-size:clamp(17px,5vw,22px); overflow-wrap:anywhere; }
  /* Account is a list of tasks, not several forms at once. */
  .settings-grid { display:block; }
  .settings-task { padding:0; margin:0!important; background:transparent; border:0; border-bottom:1px solid #d3dfeb; box-shadow:none; border-radius:0; }
  .settings-task > summary { position:relative; padding:19px 36px 19px 0; font-size:17px; }
  .settings-task > summary > span { font-size:14px; }
  .settings-task > summary::after { position:absolute; top:22px; right:4px; font-size:21px; }
  .settings-task-content { padding:6px 0 24px; }
  .settings-task-content > .btn,.settings-task-content form > .btn { width:100%; }
  .settings-task-content .section-line { margin-top:22px; padding-top:22px; }
  .correction-trigger { min-height:48px; padding:10px 14px; font-size:13px; max-width:100%; }
  .correction-dialog { width:100%; max-width:100%; height:100dvh; max-height:100dvh; margin:0; border-radius:0; padding:24px 20px; }
  .correction-dialog h2 { font-size:28px; padding-right:32px; }
  .correction-dialog .dialog-close { width:44px; height:44px; top:12px; right:12px; }
  .correction-progress { margin:20px 0; }
  .correction-dialog input,.correction-dialog select,.correction-dialog textarea { font-size:16px; }
  /* Three compact providers, with a full-width method list for the selected bank. */
  .checkout-page { padding-left:0; padding-right:0; }
  .checkout-page .checkout-panel { padding:22px 20px 30px; }
  .checkout-page .page-head { margin-bottom:18px; padding:0; }
  .checkout-page .page-head h1 { font-size:30px; }
  .checkout-page .checkout-section { padding:18px; }
  .checkout-page .checkout-intro,.checkout-page .checkout-help { font-size:15px; line-height:1.55; }
  .checkout-page .checkout-banks { display:flex; flex-direction:column; gap:10px; max-width:100%; }
  .checkout-page .checkout-bank { min-width:0; }
  .checkout-page .checkout-bank > summary { min-height:86px; height:auto; padding:16px; display:grid; grid-template-columns:92px minmax(0,1fr); align-items:center; gap:4px 14px; }
  .checkout-page .checkout-bank > summary .checkout-provider-logo { grid-row:1/3; width:92px; max-width:92px; height:46px; min-height:0; margin:0; }
  .checkout-page .checkout-bank > summary strong { font-size:14px; line-height:1.4; }
  .checkout-page .checkout-bank > summary small { font-size:12px; line-height:1.4; }
  .checkout-page .checkout-bank > summary .checkout-card-brands { margin:0; gap:4px; }
  .checkout-page .checkout-provider-logo--bnc img { position:static; transform:none; width:100%; height:100%; object-fit:contain; }
  .checkout-page .checkout-methods { padding:0 12px 12px; }
  .checkout-page .checkout-methods .btn { min-height:56px; font-size:15px; padding:12px; border-radius:8px; }
  .checkout-page .checkout-methods .btn small { font-size:13px; line-height:1.4; }
  .checkout-person strong { overflow-wrap:anywhere; }
  .checkout-page .checkout-person { padding:14px; }
  .delivery-form .field input,.delivery-form .field select,.delivery-form .field textarea,.delivery-form .phone-fields .iti input.iti__tel-input { min-height:48px; height:auto; font-size:16px; }
  .delivery-form .field .ts-control { height:auto; min-height:48px; padding:12px; font-size:16px; }
  .delivery-options { gap:10px; }
  .delivery-option { padding:13px 10px; min-height:100px; }
  .delivery-option strong { font-size:14px; }
  .delivery-option small { font-size:12px; }
  #configurar-entrega,#entregas { scroll-margin-top:84px; }
  .purchase-document { padding:18px; }
  .purchase-document strong { font-size:16px; }
  .shipment-tracking .shipment-tracking-status { height:auto; white-space:normal; line-height:1.5; }
  /* Payment uses the available viewport; its footer remains a reachable action. */
  .payment-dialog.bank-payment-dialog,.payment-dialog.bank-payment-dialog.payment-dialog--compact { width:100%; max-width:100%; height:100dvh; max-height:100dvh; margin:0; padding:24px 20px calc(20px + env(safe-area-inset-bottom)); border-radius:0; overflow:auto; overscroll-behavior:contain; }
  .payment-dialog.bank-payment-dialog > .dialog-close { position:sticky; top:0; float:right; margin:-10px -8px 0 4px; width:44px; height:44px; z-index:3; background:#fff; border-radius:50%; }
  .payment-dialog.bank-payment-dialog h2 { font-size:28px; line-height:1.2; padding-right:24px; }
  .payment-dialog.bank-payment-dialog .eyebrow { font-size:12px; letter-spacing:1px; }
  .payment-dialog.bank-payment-dialog .payment-guide { font-size:15px; line-height:1.5; margin-bottom:16px; }
  .payment-dialog.bank-payment-dialog h3,.payment-dialog.bank-payment-dialog .payment-overview .payment-recipient h3 { font-size:15px; line-height:1.4; }
  .payment-dialog.bank-payment-dialog .payment-fields { grid-template-columns:minmax(0,1fr); gap:14px; }
  .payment-dialog.bank-payment-dialog .field { font-size:14px; }
  .payment-dialog.bank-payment-dialog .field input,.payment-dialog.bank-payment-dialog .field select { height:48px; min-height:48px; padding:12px; font-size:16px; }
  .payment-dialog.bank-payment-dialog .field small,.payment-dialog.bank-payment-dialog .payer-hint,.payment-dialog.bank-payment-dialog .payment-footnote { font-size:13px; line-height:1.5; }
  .payment-dialog.bank-payment-dialog .payer-value { min-height:44px; font-size:16px; }
  .payment-dialog.bank-payment-dialog .payer-edit { flex-basis:44px; width:44px; height:44px; }
  .payment-dialog.bank-payment-dialog .payer-save { font-size:14px; min-width:52px; }
  .payment-dialog.bank-payment-dialog .ts-control { height:48px; min-height:48px; padding:12px 34px 12px 12px; font-size:16px; }
  .payment-dialog.bank-payment-dialog .payment-token-row { flex-direction:column; align-items:stretch; }
  .payment-dialog.bank-payment-dialog .payment-token-row .btn { min-height:48px; font-size:14px; }
  .payment-dialog.bank-payment-dialog .payment-overview { padding:16px; }
  .payment-dialog.bank-payment-dialog .payment-recipient dl { font-size:14px; }
  .payment-dialog.bank-payment-dialog .payment-recipient dl > div { grid-template-columns:78px minmax(0,1fr); }
  .payment-dialog.bank-payment-dialog .payment-summary > span { font-size:13px; }
  .payment-dialog.bank-payment-dialog .payment-authorization p,.payment-dialog.bank-payment-dialog [data-mipapaya-instructions] { font-size:14px; }
  .payment-dialog.bank-payment-dialog .actions { position:sticky; bottom:calc(-20px - env(safe-area-inset-bottom)); z-index:2; padding:14px 0 calc(14px + env(safe-area-inset-bottom)); background:#fff; display:flex; flex-direction:column; border-top:1px solid #e0e8f1; margin-top:20px; }
  .payment-dialog.bank-payment-dialog .actions:has(> [data-bdv-submit]:not([hidden])),.payment-dialog.bank-payment-dialog .actions:has(> [data-bnc-submit]:not([hidden])) { box-shadow:0 -8px 14px #ffffffd9; }
  .payment-dialog.bank-payment-dialog .actions .btn { min-height:48px; width:100%; font-size:15px; }
  .payment-dialog.bank-payment-dialog .payment-success-actions .btn { width:100%; min-height:48px; }
  .payment-dialog.bank-payment-dialog[data-payment-mode=vpos] [data-bnc-inputs] > .payment-fields { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .payment-dialog.bank-payment-dialog[data-payment-mode=vpos] :is([data-card-name],[data-card-number],.payer-field,.field:has([name=expiration])) { grid-column:1/-1; }
  .payment-dialog.bank-payment-dialog.is-payment-approved { height:auto; max-height:calc(100dvh - 32px); width:calc(100% - 32px); margin:auto; border-radius:16px; }
  .payment-dialog.bank-payment-dialog.is-payment-approved .payment-overview,.payment-dialog.bank-payment-dialog.is-payment-approved .payment-guide,.payment-dialog.bank-payment-dialog.is-payment-approved > .payment-footnote { display:none; }
  .payment-dialog.bank-payment-dialog.is-payment-approved .actions:empty { display:none; }
  /* Mobile editor: one control group, an always available result and download. */
  .wallpaper-studio .page-head { padding:24px 0 18px; }
  .wallpaper-studio .wall-grid { display:block; }
  .wallpaper-studio .wall-stage-column { position:static; }
  .wallpaper-studio .wall-preview { padding:16px; }
  .wallpaper-studio .wall-preview canvas { max-height:260px; }
  .wallpaper-studio .wall-stage-top { gap:8px; }
  .wallpaper-studio .wall-stage-top > span { font-size:14px; }
  .wallpaper-studio .segmented button { min-height:44px; font-size:13px; padding:10px 14px; }
  .wallpaper-studio .wall-preview-status,.wallpaper-studio .download-notice { font-size:13px; }
  .wallpaper-studio .wall-options { margin-top:24px; }
  .wallpaper-studio .wall-options-heading h3 { font-size:19px; }
  .wallpaper-studio .wall-reset { min-height:44px; font-size:13px; }
  .wallpaper-studio .wall-presets { gap:8px; margin-bottom:16px; }
  .wallpaper-studio .wall-presets button { min-height:54px; font-size:13px; padding:10px; }
  .wallpaper-studio .wall-presets button > span { width:24px; flex-shrink:0; }
  .wallpaper-studio .wall-mobile-toolbar { position:sticky; top:var(--mobile-header-height); z-index:8; display:grid; gap:8px; padding:10px 0; background:#f4f8fa; border-bottom:1px solid #cfdaea; }
  .wall-mobile-toolbar > [role=tablist] { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:6px; }
  .wall-mobile-toolbar button { min-height:44px; border:1px solid #cbd8e9; border-radius:999px; color:#012b6f; background:#fff; font-size:14px; font-weight:600; padding:9px; }
  .wall-mobile-toolbar [aria-selected=true] { background:#012b6f; border-color:#012b6f; color:#fff; }
  .wall-mobile-toolbar > button { border:0; border-radius:4px; text-align:center; background:transparent; }
  .wallpaper-studio[data-mobile-editor] .wall-editor-section > summary { display:none; }
  .wallpaper-studio .wall-editor-content { padding:18px 0 24px; }
  .wallpaper-studio .wall-range { font-size:14px; margin-top:20px; }
  .wallpaper-studio .wall-range > span { gap:12px; }
  .wallpaper-studio .wall-range output { font-size:13px; }
  .wallpaper-studio .wall-range input[type=range] { min-height:44px; height:44px; }
  .wallpaper-studio .wall-hint { font-size:13px; line-height:1.55; }
  .wallpaper-studio .field { font-size:14px; }
  .wallpaper-studio .field select,.wallpaper-studio .wall-file-label select { height:48px; min-height:48px; padding:12px; font-size:16px; }
  .wallpaper-studio .wall-settings-grid { grid-template-columns:1fr; }
  .wallpaper-studio .wall-color-grid { grid-template-columns:1fr; gap:0; }
  .wallpaper-studio .wall-visibility { gap:8px; }
  .wallpaper-studio .wall-visibility label,.wallpaper-studio .wall-champion-toggle { min-height:44px; font-size:14px; }
  .wallpaper-studio input[type=checkbox] { width:20px; height:20px; min-height:20px; }
  .wallpaper-studio .swatch span { font-size:12px; }
  .wallpaper-studio .wall-export { display:flex; gap:10px; padding:12px 14px; }
  .wallpaper-studio[data-mobile-editor] .wall-export { position:fixed; z-index:71; left:0; right:0; bottom:calc(var(--mobile-nav-height) + env(safe-area-inset-bottom)); background:#fff; border-top:1px solid #d4dfeb; }
  .wallpaper-studio .wall-file-label { flex:0 0 110px; font-size:12px; }
  .wallpaper-studio .wall-export > button { flex:1; font-size:14px; min-height:48px; white-space:normal; padding:10px 14px; }
  body:has(.wallpaper-studio[data-mobile-editor]) { padding-bottom:calc(var(--mobile-nav-height) + var(--mobile-action-height) + env(safe-area-inset-bottom) + 24px); }
  body.mobile-keyboard-open .wallpaper-studio .wall-export { display:none; }
  /* Help stays small and yields to forms, overlays and the keyboard. */
  .kapi { right:16px; bottom:calc(16px + env(safe-area-inset-bottom)); }
  body.has-account .kapi { bottom:calc(var(--mobile-nav-height) + env(safe-area-inset-bottom) + 14px); }
  body:has(.wallpaper-studio[data-mobile-editor]) .kapi { bottom:calc(var(--mobile-nav-height) + var(--mobile-action-height) + env(safe-area-inset-bottom) + 14px); }
  .kapi .kapi-invitation,.kapi .kapi-invitation-dismiss { display:none; }
  .kapi .kapi-face { width:48px; height:48px; }
  .kapi .kapi-face img { width:42px; height:42px; }
  body.mobile-input-active .kapi:not(.kapi-is-open),body.mobile-keyboard-open .kapi:not(.kapi-is-open) { visibility:hidden; pointer-events:none; }
  .kapi.kapi-is-open { bottom:0!important; right:0; z-index:95; }
  .kapi-is-open .kapi-launcher { display:none; }
  .kapi .kapi-panel { position:fixed; top:0; right:0; bottom:auto; width:100%; max-width:100%; height:var(--mobile-visible-height,100dvh); min-height:0; border:0; border-radius:0; }
  .kapi .kapi-header { padding-top:max(14px,env(safe-area-inset-top)); }
  .kapi .kapi-chat { padding:16px; }
  .kapi .kapi-message p { font-size:15px; }
  .kapi .kapi-topic,.kapi .kapi-choice { min-height:48px; font-size:14px; }
  .kapi .kapi-close { width:44px; height:44px; }
  .kapi .kapi-toolbar button { min-height:44px; font-size:14px; }
  .kapi .kapi-composer { padding-bottom:max(12px,env(safe-area-inset-bottom)); }
  .kapi .kapi-composer input { font-size:16px; min-height:48px; }
  .kapi .kapi-composer > button { width:48px; height:48px; }
  body.mobile-help-open .mobile-nav { visibility:hidden; }
  .image-viewer { width:100%; max-width:100%; height:100dvh; max-height:100dvh; margin:0; border-radius:0; }
  .image-viewer-header { min-height:64px; padding-top:max(10px,env(safe-area-inset-top)); }
  .image-viewer-scroll { flex:1; display:block; padding:14px; }
  .image-viewer-controls { padding-bottom:max(10px,env(safe-area-inset-bottom)); }
  .footer { padding:24px 20px; font-size:12px; }
  .footer-links a { display:inline-flex; min-height:44px; align-items:center; font-size:13px; }
  .footer-credit { margin-top:0; }
  /* A compact first view preserves the approved colors and motion. */
  .home-hero { min-height:0; }
  .home-hero .hero-copy { display:flex; flex-direction:column; max-width:none; padding:26px 0 80px; }
  .home-hero .hero-copy > .eyebrow { order:0; font-size:12px; margin-bottom:12px; line-height:1.5; }
  .home-hero h1 { order:1; font-size:clamp(31px,10vw,46px); line-height:1.1; }
  .home-hero .hero-copy > p { order:2; margin:14px 0; font-size:16px; max-width:none; }
  .home-hero .hero-bottom { order:3; margin:0 0 18px; align-items:center; }
  .home-hero .hero-bottom > span { font:400 12px/1.5 'Instrument Sans',sans-serif; }
  .home-hero .hero-ctas { order:4; align-items:stretch; width:100%; gap:10px; }
  .home-hero .home-join { width:100%; min-height:50px; }
  .home-hero .home-join-intro { flex:1; padding:14px; text-align:center; font-size:14px; }
  .home-hero .home-join-fan { padding:14px; font-size:14px; }
  .home-hero .hero-ctas > .home-login { justify-content:center; min-height:48px; font-size:19px; }
  .home-hero .hero-media { height:60%; opacity:.6; }
  .home-hero .champion { width:45px; height:48px; left:20px; bottom:16px; }
  .home-hero .motion-btn { right:80px; bottom:17px; min-height:44px; font-size:12px; padding:10px 14px; }
  .deck-strip { display:none; }
  .home-certificate { padding:32px 20px; gap:20px; }
  .mobile-certificate-intro { display:block; }
  .mobile-certificate-intro h2 { font-size:29px; line-height:1.15; }
  .mobile-certificate-intro p { font-size:16px; margin-top:12px; }
  .mobile-certificate-intro .eyebrow { margin-bottom:10px; }
  .certificate-explorer-heading { display:flex; align-items:center; gap:8px; }
  .certificate-explorer-heading .eyebrow { display:none; }
  .certificate-explorer-heading > span { font-size:13px; }
  .certificate-explorer-heading .certificate-expand { width:100%; }
  .certificate-stage .certificate-point { display:none; }
  .certificate-detail-list { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:6px; margin:14px 0; }
  .certificate-detail-list button { min-width:0; min-height:44px; border:1px solid #cbd8e9; border-radius:999px; background:#fff; color:#012b6f; font-size:12px; font-weight:600; padding:8px 4px; }
  .certificate-detail-list button[aria-pressed=true] { border-color:#012b6f; background:#012b6f; color:#fff; }
  .certificate-detail { min-height:0; padding:18px; }
  .certificate-detail h3 { font-size:24px; }
  .certificate-detail p,.certificate-preview-note { font-size:14px; line-height:1.6; }
  .home-certificate .copy > .eyebrow,.home-certificate .copy > h2,.home-certificate .inline-facts { display:none; }
  .home-certificate .copy > p { font-size:16px; margin:8px 0 18px; }
  .home-wallpapers { padding:32px 0; }
  .home-wallpapers .wrap { gap:22px; }
  .home-wallpapers .wallpaper-badge { font-size:16px; padding:18px; }
  .mobile-home-steps { display:block; padding-top:32px; padding-bottom:32px; }
  .mobile-home-steps h2 { font-size:30px; line-height:1.15; }
  .mobile-home-steps ol { padding:0; list-style:none; counter-reset:home-step; margin:22px 0; }
  .mobile-home-steps li { counter-increment:home-step; position:relative; padding:0 0 22px 42px; }
  .mobile-home-steps li::before { content:counter(home-step); position:absolute; top:0; left:0; width:28px; height:28px; display:grid; place-items:center; border-radius:50%; background:#ffd43a; font-size:14px; font-weight:700; }
  .mobile-home-steps li strong { display:block; font-size:16px; margin-bottom:6px; }
  .mobile-home-steps li span { font-size:15px; color:#526680; }
  .mobile-home-steps details { padding:16px 0; border-bottom:1px solid #d3dfeb; font-size:15px; }
  .mobile-home-steps summary { min-height:44px; font-weight:600; cursor:pointer; }
  .mobile-home-steps details p { padding:12px 0; }
}
@media (prefers-reduced-motion:reduce) { .mobile-nav.is-ready::before { transition:none; } }
@media (max-width:360px) { .wallpaper-studio .swatches { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media (max-width:960px) and (max-height:520px) { .home-hero .hero-copy { max-width:680px; margin:auto; } .mobile-nav { --mobile-nav-height:64px; } .kapi .kapi-header { min-height:64px; } }

.kapi-back-label { display:none; }
@media(max-width:800px), (max-width:960px) and (max-height:520px) { .kapi .kapi-close { width:auto; min-width:66px; padding:8px 12px; font-size:14px; border-radius:999px; } .kapi-close > svg { display:none; } .kapi-back-label { display:block; } .auth-panel h1 { scroll-margin-top:84px; } }
@media(max-width:800px), (max-width:960px) and (max-height:520px) {
  body:has(.auth-layout) .kapi:not(.kapi-is-open),
  body:has(.settings-task[open]) .kapi:not(.kapi-is-open),
  body:has([data-shipment-form]) .kapi:not(.kapi-is-open),
  body:has(.wallpaper-studio[data-mobile-editor]) .kapi:not(.kapi-is-open) { visibility:hidden; pointer-events:none; }
}
.delivery-step-panel { display:contents; }
.mobile-delivery-progress[hidden],.delivery-review[hidden] { display:none; }
.mobile-delivery-controls { grid-column:1/-1; }
@media(max-width:800px), (max-width:960px) and (max-height:520px) {
  .mobile-delivery-progress { display:flex; flex-wrap:wrap; gap:12px; list-style:none; padding:0 0 18px; margin:0; grid-column:1/-1; counter-reset:delivery-step; scroll-margin-top:84px; }
  .mobile-delivery-progress li { display:flex; align-items:center; gap:6px; font-size:13px; color:#526680; counter-increment:delivery-step; }
  .mobile-delivery-progress li::before { content:counter(delivery-step); display:grid; place-items:center; width:24px; height:24px; border-radius:50%; background:#e4ebf4; }
  .mobile-delivery-progress [aria-current=step] { color:#012b6f; font-weight:700; }
  .mobile-delivery-progress [aria-current=step]::before { background:#ffd43a; }
  .delivery-review { grid-column:1/-1; min-width:0; }
  .delivery-review h3 { font:700 21px/1.3 'Instrument Sans',sans-serif; margin:0 0 18px; }
  .delivery-review-facts { margin:0 0 18px; }
  .delivery-review-facts > div { padding:12px 0; border-bottom:1px solid #d5dfeb; }
  .delivery-review-facts dt { font-size:13px; color:#526680; }
  .delivery-review-facts dd { margin:5px 0 0; font-size:16px; font-weight:600; overflow-wrap:anywhere; }
  .delivery-review p { font-size:14px; }
  .mobile-delivery-controls { display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px; margin:16px 0 0; }
  .mobile-delivery-controls .btn { flex:1; min-width:0; }
  .checkout-page:has([data-shipment-form]) .checkout-panel { display:flex; flex-direction:column; }
  .checkout-page:has([data-shipment-form]) .purchase-documents { order:4; }
  .checkout-page .purchase-documents:not(:has(.purchase-document)) { display:none; }
}

@media(max-width:800px), (max-width:960px) and (max-height:520px) { .account-next .notice .btn { background:#ffd43a; border-color:#ffd43a; color:#012b6f; } }

.purchase-documents:not(:has(.purchase-document)) { display:none; }
@media(max-width:800px), (max-width:960px) and (max-height:520px) { .payment-dialog.bank-payment-dialog { scroll-padding-bottom:110px; } .payment-dialog.bank-payment-dialog .field { scroll-margin-bottom:110px; } .mobile-delivery-controls [data-confirm-delivery] { background:#ffd43a; border-color:#ffd43a; color:#012b6f; } }

@media(max-width:800px), (max-width:960px) and (max-height:520px) {
  main h1 { font-size:clamp(28px,8vw,38px); line-height:1.15; overflow-wrap:anywhere; }
  main h2 { font-size:clamp(24px,7vw,32px); line-height:1.2; overflow-wrap:anywhere; }
  .payment-dialog.is-payment-approved form > .actions:not(:has([data-bdv-receipt]:not([hidden]),[data-bnc-receipt]:not([hidden]),[data-mipapaya-receipt]:not([hidden]))) { display:none; }
}
@media(max-width:800px), (max-width:960px) and (max-height:520px) { body.mobile-help-open { overflow:hidden; } }
@media(max-width:800px), (max-width:960px) and (max-height:520px) {
  .checkout-page .checkout-provider-logo--bnc img { width:92px; height:92px; max-width:none; max-height:none; object-fit:contain; }
  .payment-dialog.bank-payment-dialog.payment-dialog--compact .payment-amount .payment-footnote { font-size:13px; line-height:1.5; }
}

/* Visual balance: compact task headers, legible identities and a quieter editor. */
@media (max-width:800px), (max-width:960px) and (max-height:520px) {
  .page > .page-head { gap:18px; padding-top:24px; padding-bottom:24px; }
  .page-head > div,.page-head > form { width:100%; min-width:0; }
  .page-head p { line-height:1.55; }
  .page-head .eyebrow { margin-bottom:10px; }
  .profile-select { gap:6px; }
  .profile-select select { margin-top:6px; }
  .page-head .profile-select { margin:0; }
  .account-page .page-head h1 { font-size:clamp(28px,7.7vw,34px); line-height:1.18; }
  .account-page .welcome-art { min-height:208px; padding:22px; }
  .account-page .welcome-art h2 { font-size:clamp(31px,9.5vw,40px); line-height:1.12; }
  .account-page .home-feature .copy { padding:22px; }
  .account-page .home-feature h3 { font:700 23px/1.25 'Instrument Sans',sans-serif; text-transform:none; }
  .shortcut { padding:20px; }
  .shortcut h3 { font-size:24px; }
  .shortcut p { line-height:1.55; margin-top:8px; }
  .certificate-list .cert-meta h3 { text-transform:none; font-size:19px; line-height:1.3; }
  .certificate-list .cert-meta code { font:600 12px/1.5 'Instrument Sans',sans-serif; letter-spacing:.02em; }
  .certificate-list .cert-meta .status { font-size:12px; }
  .certificate-list .empty.cert-preview { display:grid; place-items:center; height:64px; margin:6px 0 0; padding:12px; background:#edf3f8; border:0; border-radius:8px; }
  .certificate-list .empty.cert-preview h3 { display:none; }
  .certificate-list .empty.cert-preview::before { content:''; width:32px; height:32px; background:#6f86a1; -webkit-mask:url('/assets/icons/lucide/file-badge.svg') center/contain no-repeat; mask:url('/assets/icons/lucide/file-badge.svg') center/contain no-repeat; }
  .genuino-page .page-head { gap:16px; padding-bottom:20px; }
  .genuino-page .fan-position { margin-top:14px; }
  .genuino-page .fan-card { padding:22px 20px; border-radius:16px; box-shadow:0 10px 25px #012b6f12; }
  .genuino-page .fan-card > img { width:124px; height:38px; margin:0 0 16px; }
  .genuino-page .fan-card .qr { width:160px; height:160px; flex:0 0 160px; margin:0 auto 16px; }
  .genuino-page .fan-card > .eyebrow { margin:0; font-size:14px; line-height:1.45; }
  .genuino-page .fan-card h2 { margin:12px 0 8px; font-size:clamp(23px,6.5vw,28px); line-height:1.2; }
  .genuino-page .fan-card .card-number { font:700 16px/1.5 'Instrument Sans',sans-serif; letter-spacing:.03em; }
  .genuino-page .fan-card > .eyebrow:last-child { margin-top:10px; font-size:12px; }
  .image-viewer-art.genuino-page .fan-card .qr { width:clamp(176px,55vw,240px); height:auto; flex-basis:auto; aspect-ratio:1; }
  .genuino-page .auth-copy { padding-top:12px; }
  .genuino-page .auth-copy .eyebrow { margin-bottom:12px; }
  .genuino-page .auth-copy h2 { font-size:27px; }
  .settings-task > summary { padding:18px 36px 18px 0; }
  .settings-task-content { padding-top:10px; }
  .wallpaper-studio .page-head { padding-top:24px; padding-bottom:20px; }
  .wallpaper-studio .wall-preview { display:flex; justify-content:center; align-items:center; padding:16px; }
  .wallpaper-studio .wall-preview canvas { max-height:210px; }
  .wallpaper-studio .wall-full-preview { display:none; }
  .wallpaper-studio .download-notice { margin-top:4px; font-size:12px; }
  .wallpaper-studio .wall-options { margin-top:22px; }
  .wall-options-heading { align-items:center; gap:12px; }
  .wallpaper-studio .wall-options-heading h3 { font-size:17px; }
  .wallpaper-studio .wall-options-heading .eyebrow { font-size:12px; }
  .wallpaper-studio .wall-presets button { min-height:52px; line-height:1.3; }
  .wallpaper-studio .wall-mobile-toolbar { padding-top:10px; padding-bottom:6px; }
  .wallpaper-studio .wall-mobile-toolbar > button { min-height:40px; }
  .wallpaper-studio .wall-editor-content { padding-top:16px; padding-bottom:16px; }
  .wallpaper-studio .swatches { align-items:start; }
  .wallpaper-studio .swatch img { width:100%; aspect-ratio:1; object-fit:cover; border-radius:7px; }
  .wallpaper-studio .swatch span { display:block; line-height:1.35; margin-top:6px; }
  .wallpaper-studio .wall-save-help { margin-top:18px; padding:12px 0; }
  .wallpaper-studio .wall-export { gap:10px; padding:12px 16px; }
  .wallpaper-studio .wall-file-label { flex-basis:88px; }
  .wallpaper-studio .wall-export > button { font-size:14px; }
  .checkout-page .checkout-bank { padding:0; width:100%; }
  .checkout-page .stepper { gap:10px; font-size:12px; line-height:1.4; }
  .checkout-page .stepper b { width:22px; height:22px; }
  .checkout-page .checkout-card-brands { max-width:100%; gap:4px; }
  .checkout-page .checkout-card-brands > span { width:32px; height:23px; }
  .checkout-page .checkout-card-brands > span img { max-width:27px; max-height:18px; }
  .checkout-page .checkout-card-brands > img { width:30px; max-height:23px; }
  .checkout-page .checkout-bank > summary { padding:14px 28px 14px 12px; grid-template-columns:84px minmax(0,1fr); column-gap:12px; min-height:88px; }
  .checkout-page .checkout-bank > summary .checkout-provider-logo { width:84px; max-width:84px; }
  .checkout-page .checkout-bank > summary::after { right:13px; top:calc(50% - 5px); }
  .checkout-page .checkout-bank > summary strong { font-size:14px; }
  body:has(.checkout-page,.certificate-list,.genuino-page,.settings-page) .kapi:not(.kapi-is-open) { visibility:hidden; pointer-events:none; }
  .footer { gap:12px; padding-top:22px; padding-bottom:22px; }
  .footer-links { gap:20px; }
}
