:root { color-scheme: light; }
html { margin: 0; background: #052451; }
body { margin: 0; }
.sewlyra { width: 100%; color: #062451; font-family: Arial, Helvetica, sans-serif; }
.sewlyra, .sewlyra * { box-sizing: border-box; }
.sewlyra-stage { position: relative; width: 100%; isolation: isolate; }
.sewlyra-artwork { display: block; width: 100%; height: auto; margin: 0; user-select: none; }
.sewlyra-hotspot { position: absolute; display: block; margin: 0; padding: 0; border: 0; background: transparent; border-radius: 8px; color: inherit; text-decoration: none; cursor: pointer; -webkit-tap-highlight-color: #d4aa5726; }
.sewlyra-hotspot:focus-visible { outline: 3px solid #e5bc66; outline-offset: -4px; box-shadow: inset 0 0 0 5px #062451; }
.sewlyra-hotspot:hover { box-shadow: inset 0 0 0 1px #fff4ce50; }
.sewlyra-brand { left: 2%; top: 0.3%; width: 27%; height: 9.5%; }
.sewlyra-home { left: 52.7%; top: 1.7%; width: 6.5%; height: 5.6%; }
.sewlyra-about { left: 61.5%; top: 1.7%; width: 4.8%; height: 5.6%; }
.sewlyra-features { left: 68.3%; top: 1.7%; width: 5.9%; height: 5.6%; }
.sewlyra-support { left: 76.1%; top: 1.7%; width: 6%; height: 5.6%; }
.sewlyra-language { left: 88%; top: 1.7%; width: 7%; height: 5.6%; }
.sewlyra-create { left: 6.05%; top: 42.25%; width: 35%; height: 8.5%; border-radius: 999px; }
.sewlyra-login { left: 42.7%; top: 42.25%; width: 24%; height: 8.5%; border-radius: 999px; }
.sewlyra-feature { top: 62%; width: 16%; height: 19.7%; border-radius: 20px; }
.sewlyra-feature-orders { left: 1.5%; }
.sewlyra-feature-customers { left: 18%; }
.sewlyra-feature-designs { left: 34.4%; }
.sewlyra-feature-measurements { left: 50.8%; }
.sewlyra-feature-reports { left: 67.2%; }
.sewlyra-feature-anywhere { left: 83.6%; }
.sewlyra-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.sewlyra-dialog { position: fixed; inset: 0; width: min(480px, calc(100% - 32px)); max-height: calc(100dvh - 40px); margin: auto; overflow-y: auto; padding: 34px; border: 1px solid #d4aa57; border-radius: 20px; color: #062451; background: #fffaf0; box-shadow: 0 20px 90px #00132f66; font: 16px/1.6 Arial, Helvetica, sans-serif; }
.sewlyra-dialog::backdrop { background: #03172bc9; }
.sewlyra-close { position: absolute; top: 8px; right: 10px; width: 44px; height: 44px; border: 0; background: transparent; color: #062451; font-size: 30px; cursor: pointer; }
.sewlyra-dialog-brand { margin: 0 40px 12px 0; font-size: 12px; font-weight: 700; letter-spacing: 2px; }
.sewlyra-dialog h2 { margin: 0 0 16px; font: 30px/1.2 Georgia, serif; }
.sewlyra-dialog p { margin: 0 0 16px; }
.sewlyra-dialog ul { margin: 0 0 20px; padding-left: 22px; }
.sewlyra-dialog-back { width: 100%; min-height: 48px; margin-top: 8px; padding: 12px 20px; border: 1px solid #6ccaf7; border-radius: 999px; background: linear-gradient(#096cce,#062f77); color: #fff; font: 600 16px Arial, sans-serif; cursor: pointer; }
.sewlyra-dialog button:focus-visible { outline: 3px solid #a47524; outline-offset: 3px; }
@media (max-width: 480px) { .sewlyra-dialog { padding: 28px 22px; } .sewlyra-dialog h2 { font-size: 25px; } }

/* Sewlyra premium account surface: mobile-first, compact two-column form. */
#sewlyra-app .sewlyra-dialog{--sw-ink:#16384e;--sw-muted:#657d8d;box-sizing:border-box;width:min(480px,calc(100% - 24px));max-height:calc(100dvh - 24px);padding:25px 28px 16px;overflow-y:auto;background:linear-gradient(145deg,#f4faff,#ecf5fc);border:1px solid #d5e7f3;border-radius:22px;color:var(--sw-ink);box-shadow:0 24px 90px #00152d55;font:14px/1.4 "Segoe UI",Arial,sans-serif}
#sewlyra-app .sewlyra-dialog::backdrop{background:#041c31b8;backdrop-filter:blur(3px)}
#sewlyra-app .sewlyra-dialog:focus{outline:none}
#sewlyra-app .sewlyra-close{top:10px;right:10px;width:40px;height:40px;border:0;border-radius:50%;background:none;color:#6e8594;font:25px/1 Arial;box-shadow:none}
#sewlyra-app .sewlyra-close:focus:not(:focus-visible){outline:none}
#sewlyra-app .sewlyra-close:focus-visible{outline:2px dotted #617f92;outline-offset:-5px}
#sewlyra-app .sewlyra-dialog-brand{margin:0 30px 13px;text-align:center;font:700 11px/1.3 "Segoe UI",Arial,sans-serif;letter-spacing:3px;color:#305b78}
#sewlyra-app .sewlyra-dialog-brand:before{content:"";display:block;width:28px;height:3px;background:#a9ccdf;border-radius:5px;margin:0 auto 10px}
#sewlyra-app .sewlyra-dialog h2{width:100%;max-width:100%;padding:0;margin:0 0 7px;text-align:center;white-space:nowrap;font:600 clamp(18px,4.8vw,27px)/1.25 "Segoe UI",Arial,sans-serif;letter-spacing:-.8px;color:#123952}
#sewlyra-app .sewlyra-auth-intro{padding:0;margin:0 0 20px;text-align:center;font:12px/1.5 "Segoe UI",Arial,sans-serif;color:var(--sw-muted)}
#sewlyra-app .sewlyra-auth-form{display:grid;gap:10px;margin:0}
#sewlyra-app .sewlyra-details-pair,#sewlyra-app .sewlyra-password-pair{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;align-items:start}
#sewlyra-app .sewlyra-field{display:grid;grid-template-rows:20px 44px;gap:4px;margin:0;min-width:0;width:100%;align-content:start;font:600 12px/20px "Segoe UI",Arial,sans-serif;color:#24475e}
#sewlyra-app .sewlyra-field>span{white-space:nowrap}
#sewlyra-app .sewlyra-field small{font-size:10px;font-weight:400;color:#728894}
#sewlyra-app .sewlyra-field input{box-sizing:border-box;width:100%;min-width:0;max-width:100%;height:44px;min-height:44px;margin:0;padding:10px 11px;border:1px solid #d9e5ed;border-radius:9px;background:#fff;color:#16384e;font:16px/1.3 "Segoe UI",Arial,sans-serif;box-shadow:0 2px 4px #16384e03}
#sewlyra-app .sewlyra-field input::placeholder{font-size:12px;color:#95a5af;opacity:1}
#sewlyra-app .sewlyra-field input:focus{outline:2px solid #94bfdc;outline-offset:1px;border-color:#94bfdc}
#sewlyra-app .sewlyra-form-help{margin:0;padding:0;font:11px/1.4 "Segoe UI",Arial,sans-serif;color:#718696}
#sewlyra-app .sewlyra-password-options{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-top:-5px;min-height:36px}
#sewlyra-app .sewlyra-password-toggle{display:flex;align-items:center;gap:7px;margin:0;min-height:36px;white-space:nowrap;font:12px/1.3 "Segoe UI",Arial,sans-serif;color:#516d80}
#sewlyra-app .sewlyra-password-toggle input{width:16px;height:16px;min-height:16px;margin:0;padding:0;accent-color:#174968}
#sewlyra-app .sewlyra-forgot{min-height:36px;margin:0;padding:4px 0;background:none;border:0;color:#245c7c;font:600 11px/1.3 "Segoe UI",Arial,sans-serif;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
#sewlyra-app .sewlyra-auth-form .sewlyra-dialog-back{display:flex;justify-content:center;align-items:center;gap:14px;min-height:46px;margin:0;padding:10px 14px;border:1px solid #153e5b;border-radius:10px;background:linear-gradient(110deg,#1b4b6b,#0d304a);color:#fff;box-shadow:0 5px 14px #153e5b1c;font:600 14px/1.4 "Segoe UI",Arial,sans-serif}
#sewlyra-app .sewlyra-auth-form .sewlyra-dialog-back span{color:#bad9ed}
#sewlyra-app .sewlyra-form-switch{min-height:32px;margin:0;padding:5px;background:none;border:0;color:#42677f;font:12px/1.4 "Segoe UI",Arial,sans-serif;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
#sewlyra-app .sewlyra-dialog>button.sewlyra-dialog-back{min-height:32px;margin-top:6px;padding:9px 10px 0;border:0;border-top:1px solid #d9e8f2;border-radius:0;background:none;color:#78909f;box-shadow:none;font:11px/1.4 "Segoe UI",Arial,sans-serif}
#sewlyra-app .sewlyra-form-message{margin:0;padding:9px;background:#fff3ee;color:#8a3d21;border-radius:8px;font-size:12px}
#sewlyra-app .sewlyra-form-message[hidden]{display:none}
#sewlyra-app .sewlyra-auth-form button:disabled{opacity:.65;cursor:wait}
@media(max-width:420px){#sewlyra-app .sewlyra-dialog{padding:21px 19px 14px;border-radius:20px}#sewlyra-app .sewlyra-details-pair,#sewlyra-app .sewlyra-password-pair{gap:10px}#sewlyra-app .sewlyra-auth-intro{font-size:11px;margin-bottom:16px}#sewlyra-app .sewlyra-field{font-size:11px}#sewlyra-app .sewlyra-field small{font-size:10px}#sewlyra-app .sewlyra-form-help{font-size:10px}}
@media(pointer:coarse){#sewlyra-app .sewlyra-password-toggle,#sewlyra-app .sewlyra-forgot{min-height:40px}}

/* Original brand mark and consistent label/input tracks. */
#sewlyra-app .sewlyra-dialog-brand{margin:0 30px 13px;display:flex;justify-content:center;letter-spacing:0;line-height:1}
#sewlyra-app .sewlyra-dialog-brand:before{display:none}
#sewlyra-app .sewlyra-account-logo{display:block;position:relative;width:220px;height:53px;overflow:hidden;mix-blend-mode:multiply}
#sewlyra-app .sewlyra-account-logo img{display:block;position:absolute;width:844.8px;max-width:none;height:563.2px;left:-17.6px;top:-2.2px}
#sewlyra-app .sewlyra-details-pair,#sewlyra-app .sewlyra-password-pair{width:100%;min-width:0;grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch}
#sewlyra-app .sewlyra-field{min-width:0;max-width:100%;grid-template-columns:minmax(0,1fr);grid-template-rows:20px 44px;align-items:stretch}
#sewlyra-app .sewlyra-field>span{display:block;width:100%;height:20px;line-height:20px;white-space:nowrap;text-align:left}
#sewlyra-app .sewlyra-field>input{display:block;box-sizing:border-box;width:100%;min-width:0;max-width:100%;height:44px;min-height:44px;max-height:44px;margin:0}
#sewlyra-app .sewlyra-password-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:center;margin-top:-7px;min-height:34px}
#sewlyra-app .sewlyra-password-toggle{justify-self:start;min-height:34px}
#sewlyra-app .sewlyra-forgot{justify-self:start;text-align:left;min-height:34px;padding:0}
#sewlyra-app .sewlyra-password-help{margin-top:-6px;margin-bottom:2px}
@media(max-width:420px){#sewlyra-app .sewlyra-password-options{gap:10px}#sewlyra-app .sewlyra-dialog-brand{margin-bottom:12px}#sewlyra-app .sewlyra-account-logo{width:200px;height:48px}#sewlyra-app .sewlyra-account-logo img{width:768px;height:512px;left:-16px;top:-2px}}
/* Visibility at the first edge; recovery at the final edge directly below inputs. */
#sewlyra-app .sewlyra-password-options{display:flex;justify-content:space-between;align-items:center;gap:8px;grid-template-columns:none;margin-top:-7px;width:100%;min-height:34px}
#sewlyra-app .sewlyra-password-toggle{margin:0;justify-content:flex-start}
#sewlyra-app .sewlyra-forgot{margin:0 0 0 auto;text-align:right;justify-self:end}

/* Each password column owns its supporting content. */
#sewlyra-app .sewlyra-password-bottom-create{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:start;margin-top:-6px}
#sewlyra-app .sewlyra-password-bottom-create>.sewlyra-password-help{grid-column:1;grid-row:1;margin:0;padding:4px 0 0;line-height:1.5}
#sewlyra-app .sewlyra-password-bottom-create>.sewlyra-password-options{grid-column:2;grid-row:1;display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:0 6px;width:100%;margin:0;min-width:0;min-height:28px}
#sewlyra-app .sewlyra-password-bottom-create .sewlyra-password-toggle{font-size:10px;gap:4px;min-height:28px}
#sewlyra-app .sewlyra-password-bottom-create .sewlyra-password-toggle input{width:14px;height:14px;min-height:14px}
#sewlyra-app .sewlyra-password-bottom-create .sewlyra-forgot{font-size:10px;min-height:28px;margin:0;padding:0;text-align:left}
#sewlyra-app .sewlyra-password-bottom:not(.sewlyra-password-bottom-create) .sewlyra-password-options{margin:0}
@media(max-width:420px){#sewlyra-app .sewlyra-password-bottom-create{gap:10px}#sewlyra-app .sewlyra-password-bottom-create>.sewlyra-password-options{flex-direction:column;align-items:flex-start}#sewlyra-app .sewlyra-password-bottom-create .sewlyra-forgot{align-self:flex-end}}
/* Mobile: two equal action cells stay inside the confirm-password column. */
@media(max-width:420px){
 #sewlyra-app .sewlyra-password-bottom-create>.sewlyra-password-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;align-items:start;margin:0;min-height:38px}
 #sewlyra-app .sewlyra-password-bottom-create .sewlyra-password-toggle{display:flex;align-items:center;justify-content:flex-start;gap:4px;min-width:0;width:100%;min-height:38px;margin:0;white-space:normal;font-size:11px;line-height:1.25}
 #sewlyra-app .sewlyra-password-bottom-create .sewlyra-password-toggle input{width:12px;min-width:12px;height:12px;min-height:12px;flex:none}
 #sewlyra-app .sewlyra-password-bottom-create .sewlyra-password-toggle span{min-width:0;white-space:normal;overflow-wrap:normal}
 #sewlyra-app .sewlyra-password-bottom-create .sewlyra-forgot{width:100%;min-width:0;min-height:38px;align-self:start;margin:0;padding:0;white-space:normal;text-align:right;font-size:11px;line-height:1.25;overflow-wrap:normal}
 #sewlyra-app .sewlyra-password-bottom-create>.sewlyra-password-help{font-size:10px;line-height:1.5;padding-top:4px}
}
@media(max-width:340px){#sewlyra-app .sewlyra-password-bottom-create .sewlyra-password-toggle,#sewlyra-app .sewlyra-password-bottom-create .sewlyra-forgot{font-size:10px;gap:3px}}
/* Keep the scanned-card method chooser separate from its password fields. */
#sewlyra-app .sewlyra-auth-form [hidden]{display:none!important}

#sewlyra-app .sewlyra-login-choices{display:grid;gap:10px;margin-bottom:8px}
#sewlyra-app .sewlyra-login-choices button{white-space:normal}
#sewlyra-app .sewlyra-login-choices button[aria-pressed="true"]{outline:2px solid #6ccaf7;outline-offset:2px}
#sewlyra-app .sewlyra-scanner{display:grid;gap:10px;padding:12px;border:1px solid #d9e5ed;border-radius:12px}
#sewlyra-app .sewlyra-scanner h3,#sewlyra-app .sewlyra-scanner p{margin:0;font-size:13px;line-height:1.5}
#sewlyra-app .sewlyra-scanner video{width:100%;max-height:240px;object-fit:cover;border-radius:10px;background:#0d304a}
#sewlyra-app .sewlyra-scan-file{display:grid;gap:6px;font-size:13px;min-width:0}
#sewlyra-app .sewlyra-scan-file input{width:100%;min-width:0;font-size:12px}


#sewlyra-app .sewlyra-auth-form button[data-shop-country] { width:100%; min-height:44px; margin:0; padding:10px 12px; border:1px solid #c5d5da; border-radius:10px; background:white; color:#153648; font:inherit; text-align:start; cursor:pointer; }
button[data-shop-country]::after { content:' ▾'; }
dialog.shop-country-list { box-sizing:border-box; width:min(400px,calc(100vw - 32px)); padding:16px; border:1px solid #c5d5da; border-radius:14px; background:white; color:#153648; }
dialog.shop-country-list::backdrop { background:#12273580; }
.shop-country-list header { display:flex; align-items:center; justify-content:space-between; margin-bottom:10px; }
.shop-country-list input { width:100%; box-sizing:border-box; padding:10px; font:inherit; }
.shop-country-options { overflow:auto; max-height:min(45dvh,330px); }
.shop-country-list button { padding:9px; background:white; border:0; font:inherit; color:inherit; cursor:pointer; }
.shop-country-options button { display:block; width:100%; text-align:start; border-bottom:1px solid #e3eaee; }
.shop-country-options button:is(:hover,:focus-visible) { background:#edf7f6; }


/* Large, mobile-first membership QR camera. Keep this scoped to scan mode. */
#sewlyra-app .sewlyra-dialog:has(.sewlyra-scanner) {
  box-sizing: border-box;
  width: min(680px, calc(100vw - 20px));
  max-width: 680px;
  max-height: calc(100dvh - 16px);
  padding: 17px 20px 15px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: linear-gradient(180deg, #eff8fd 0%, #f9fcff 100%);
}
#sewlyra-app .sewlyra-dialog:has(.sewlyra-scanner) .sewlyra-auth-form { gap: 8px; }
#sewlyra-app .sewlyra-dialog:has(.sewlyra-scanner) .sewlyra-dialog-brand,
#sewlyra-app .sewlyra-dialog:has(.sewlyra-scanner) #sewlyra-dialog-title,
#sewlyra-app .sewlyra-dialog:has(.sewlyra-scanner) .sewlyra-auth-intro {
  display: none;
}
#sewlyra-app .sewlyra-dialog:has(.sewlyra-scanner) .sewlyra-login-choices {
  display: flex;
  justify-content: flex-end;
  margin: 0 38px 0 0;
}
#sewlyra-app .sewlyra-dialog:has(.sewlyra-scanner) .sewlyra-login-choices button:first-child { display: none; }
#sewlyra-app .sewlyra-dialog:has(.sewlyra-scanner) .sewlyra-login-choices button:last-child {
  width: auto;
  min-height: 34px;
  padding: 5px 9px;
  margin: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  box-shadow: none;
  color: #245c7a;
  font-size: 12px;
  font-weight: 600;
}
#sewlyra-app .sewlyra-scanner {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  min-width: 0;
}
#sewlyra-app .sewlyra-scanner-heading {
  text-align: center;
  padding: 0 8px 2px;
}
#sewlyra-app .sewlyra-scanner-heading .sewlyra-scanner-eyebrow {
  display: block;
  color: #297c93;
  font: 700 10px/1.4 Arial, sans-serif;
  letter-spacing: 2px;
}
#sewlyra-app .sewlyra-scanner-heading h3 {
  margin: 3px 0 2px;
  color: #123b55;
  font: 700 clamp(18px, 4.6vw, 25px)/1.25 Arial, sans-serif;
}
#sewlyra-app .sewlyra-scanner-heading p {
  font-size: 12px;
  color: #5d7482;
  line-height: 1.4;
}
#sewlyra-app .sewlyra-scanner-view {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  width: 100%;
  height: clamp(260px, 49dvh, 480px);
  border-radius: 20px;
  background: radial-gradient(ellipse at 50% 45%, #1d526c 0%, #0a2e45 62%, #051b2e 100%);
  box-shadow: 0 12px 30px #0d385a2b;
}
#sewlyra-app .sewlyra-scanner video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  border-radius: 0;
  background: #0d304a;
  transform: translateZ(0);
}
#sewlyra-app .sewlyra-scanner video[hidden] { display: none !important; }
#sewlyra-app .sewlyra-scanner-guides {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(72%, 335px);
  aspect-ratio: 1 / 1;
  transform: translate(-50%, -50%);
  border: 1px solid #d5fbff70;
  border-radius: 24px;
  box-shadow: 0 0 0 100vmax #03182719, 0 0 24px #73dfee24;
  pointer-events: none;
}
#sewlyra-app .sewlyra-scanner-guides span {
  position: absolute;
  width: 34px;
  height: 34px;
  border: 4px solid #75f2fa;
  filter: drop-shadow(0 0 5px #44b6cb88);
}
#sewlyra-app .sewlyra-scanner-guides span:nth-child(1) {
  top: -2px; left: -2px; border-right: 0; border-bottom: 0; border-radius: 22px 0 0 0;
}
#sewlyra-app .sewlyra-scanner-guides span:nth-child(2) {
  top: -2px; right: -2px; border-left: 0; border-bottom: 0; border-radius: 0 22px 0 0;
}
#sewlyra-app .sewlyra-scanner-guides span:nth-child(3) {
  bottom: -2px; left: -2px; border-right: 0; border-top: 0; border-radius: 0 0 0 22px;
}
#sewlyra-app .sewlyra-scanner-guides span:nth-child(4) {
  bottom: -2px; right: -2px; border-left: 0; border-top: 0; border-radius: 0 0 22px 0;
}
#sewlyra-app .sewlyra-scanner-placeholder {
  position: absolute;
  bottom: 17%;
  left: 0;
  right: 0;
  padding: 0 12px;
  text-align: center;
  color: #d0e8f3;
  font: 600 13px/1.3 Arial, sans-serif;
  pointer-events: none;
}
#sewlyra-app .sewlyra-scanner-view.is-active .sewlyra-scanner-placeholder { display: none; }
#sewlyra-app .sewlyra-scanner-live {
  position: absolute;
  left: 14px;
  top: 13px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #0a3345cf;
  color: #b1fcf4;
  font: 700 10px/1 Arial, sans-serif;
  letter-spacing: 1px;
  pointer-events: none;
}
#sewlyra-app .sewlyra-scanner-view:not(.is-active) .sewlyra-scanner-live { display: none; }
#sewlyra-app .sewlyra-scanner-status {
  min-height: 20px;
  padding: 0 8px;
  margin: 0;
  color: #35576b;
  text-align: center;
  font: 600 12px/1.5 Arial, sans-serif;
}
#sewlyra-app .sewlyra-scanner-controls { display: flex; gap: 10px; }
#sewlyra-app .sewlyra-scanner-controls .sewlyra-dialog-back {
  flex: 1;
  min-height: 48px;
  margin: 0;
  border-radius: 12px;
}
#sewlyra-app .sewlyra-scanner-controls [data-stop] {
  min-height: 48px;
  padding: 9px 16px;
  border: 1px solid #a6bfd0;
  border-radius: 12px;
  color: #174259;
  background: #e9f1f7;
  text-decoration: none;
  font-weight: 700;
}
#sewlyra-app .sewlyra-scanner-alternatives {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
#sewlyra-app .sewlyra-scan-file {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 8px 9px;
  border: 1px solid #b9d5e5;
  border-radius: 12px;
  background: #fff;
  color: #1d4b62;
  text-align: center;
  font: 700 12px/1.3 Arial, sans-serif;
  cursor: pointer;
}
#sewlyra-app .sewlyra-scan-file:focus-within {
  outline: 3px solid #52b4d2;
  outline-offset: 2px;
}
#sewlyra-app .sewlyra-scan-file input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  opacity: 0;
  font-size: 0;
}
#sewlyra-app .sewlyra-scanner .sewlyra-scanner-privacy {
  margin: 0;
  text-align: center;
  color: #728b9b;
  font: 11px/1.4 Arial, sans-serif;
}
@media (max-width: 600px) {
  #sewlyra-app .sewlyra-dialog:has(.sewlyra-scanner) {
    width: 100vw;
    max-width: none;
    height: 100dvh;
    max-height: 100dvh;
    margin: 0;
    padding: calc(12px + env(safe-area-inset-top)) 14px calc(9px + env(safe-area-inset-bottom));
    border: 0;
    border-radius: 0;
  }
  #sewlyra-app .sewlyra-scanner-view {
    height: clamp(240px, 52dvh, 530px);
    border-radius: 18px;
  }
  #sewlyra-app .sewlyra-scanner-guides { width: min(76%, 330px); }
  #sewlyra-app .sewlyra-dialog:has(.sewlyra-scanner) .sewlyra-dialog>button.sewlyra-dialog-back {
    margin-top: 3px;
  }
}
@media (max-height: 700px) {
  #sewlyra-app .sewlyra-scanner { gap: 6px; }
  #sewlyra-app .sewlyra-scanner-view { height: clamp(220px, 43dvh, 360px); }
  #sewlyra-app .sewlyra-scanner-heading h3 { font-size: 18px; }
}
