:root {
  color-scheme: light;
  --bg: #f5f9ff;
  --bg-strong: #ffffff;
  --surface: #ffffff;
  --surface-soft: #f8fbff;
  --text: #070b13;
  --muted: #526071;
  --faint: #91a0b4;
  --line: #cfdae8;
  --line-blue: #9fc0ff;
  --blue: #126fff;
  --blue-dark: #075bd8;
  --cyan: #35d7ff;
  --green: #10b981;
  --green-dark: #07865e;
  --amber: #f5a400;
  --coral: #ff533d;
  --danger: #c2410c;
  --scan: rgba(53, 215, 255, 0.82);
  --shadow: 0 34px 110px rgba(8, 20, 38, 0.16);
  --hard-shadow: 16px 22px 0 rgba(18, 111, 255, 0.08);
  --radius: 8px;
}

body.dark {
  color-scheme: dark;
  --bg: #0e151e;
  --bg-strong: #111a25;
  --surface: #172130;
  --surface-soft: #101923;
  --text: #f7fbff;
  --muted: #a5b1c2;
  --faint: #77889d;
  --line: #314155;
  --line-blue: #335f9e;
  --blue: #59a3ff;
  --blue-dark: #8ac0ff;
  --cyan: #54dcff;
  --green: #42d59c;
  --green-dark: #73e2b8;
  --amber: #ffc44d;
  --coral: #ff765f;
  --danger: #fb923c;
  --scan: rgba(84, 220, 255, 0.78);
  --shadow: 0 34px 110px rgba(0, 0, 0, 0.42);
  --hard-shadow: 16px 22px 0 rgba(89, 163, 255, 0.1);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  position: relative;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(112deg, transparent 0 57%, rgba(18, 111, 255, 0.06) 57.2% 62%, transparent 62.2%),
    linear-gradient(180deg, var(--bg-strong) 0, var(--bg) 460px, var(--bg) 100%);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

.ambient-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(18, 111, 255, 0.07) 0 1px, transparent 1px),
    linear-gradient(180deg, rgba(16, 185, 129, 0.045) 0 1px, transparent 1px),
    repeating-linear-gradient(135deg, transparent 0 76px, rgba(7, 11, 19, 0.035) 76px 77px, transparent 77px 148px);
  background-size: 56px 56px, 56px 56px, auto;
  mask-image: linear-gradient(180deg, #000 0, rgba(0, 0, 0, 0.76) 56%, transparent 100%);
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
}

svg {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
.drop-zone:focus-visible {
  outline: 3px solid rgba(18, 111, 255, 0.25);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(24px, calc((100vw - 1400px) / 2));
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 5px;
  padding: 6px;
  border: 1px solid var(--line-blue);
  border-radius: 7px;
  background: var(--surface);
  color: var(--blue);
  box-shadow: 7px 7px 0 rgba(18, 111, 255, 0.12);
}

.brand-mark span {
  border: 3px solid currentColor;
  border-radius: 4px;
}

.brand-mark span:nth-child(4) {
  color: var(--green);
}

.brand strong {
  display: block;
  font-size: 22px;
  font-weight: 950;
  line-height: 1;
}

.brand small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 780;
}

.icon-button {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  box-shadow: 6px 6px 0 rgba(7, 11, 19, 0.04);
  transition:
    border-color 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.icon-button:hover {
  border-color: var(--blue);
  box-shadow: 7px 7px 0 rgba(18, 111, 255, 0.13);
  transform: translate(-1px, -1px);
}

.page {
  width: min(calc(100% - 72px), 1080px);
  margin: 0 auto;
  padding: 34px 0 62px;
}

.intro {
  display: grid;
  gap: 12px;
  max-width: 720px;
  margin: 0 0 22px 18px;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: clamp(44px, 6vw, 64px);
  line-height: 0.96;
  font-weight: 950;
}

.intro p,
.panel-title p,
.active-url {
  color: var(--muted);
}

.intro p {
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.45;
  font-weight: 720;
}

.tool-card {
  position: relative;
  overflow: visible;
  padding: 0 0 0 54px;
  border: 0;
  background: transparent;
}

.tool-card::before {
  content: "";
  position: absolute;
  inset: 58px 0 0 24px;
  z-index: -1;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  box-shadow: var(--shadow);
  clip-path: polygon(4% 0, 68% 0, 73% 6%, 100% 6%, 100% 93%, 96% 100%, 5% 100%, 0 94%, 0 9%);
}

.tool-card::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -18px;
  left: 88px;
  z-index: -2;
  height: 80px;
  background:
    linear-gradient(90deg, var(--blue), var(--green) 76%, transparent 76%),
    repeating-linear-gradient(90deg, transparent 0 10px, rgba(18, 111, 255, 0.22) 10px 18px, transparent 18px 28px);
  opacity: 0.35;
  clip-path: polygon(0 45%, 75% 45%, 78% 64%, 100% 64%, 100% 78%, 0 78%);
}

.tool-rail {
  position: absolute;
  top: 210px;
  left: 0;
  color: var(--blue);
  font-size: 17px;
  font-weight: 950;
  line-height: 1;
  letter-spacing: 0.08em;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.tool-rail::before,
.tool-rail::after {
  content: "";
  display: inline-block;
  width: 11px;
  height: 36px;
  margin: 12px auto;
  background: repeating-linear-gradient(180deg, var(--blue) 0 8px, transparent 8px 14px);
}

.mode-tabs {
  width: min(100%, 720px);
  min-height: 58px;
  display: flex;
  align-items: end;
  gap: 0;
  padding: 0 40px;
  border: 1px solid var(--line);
  border-bottom: 0;
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 88%, var(--surface-soft)), var(--surface));
  clip-path: polygon(0 0, calc(100% - 58px) 0, 100% 100%, 0 100%);
}

.mode-tab {
  position: relative;
  min-width: 172px;
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  padding: 0 26px;
  background: transparent;
  color: var(--muted);
  font-size: 18px;
  font-weight: 930;
  transition:
    color 160ms ease,
    background 160ms ease;
}

.mode-tab:first-child {
  border-left: 0;
}

.mode-tab::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 4px;
  background: transparent;
}

.mode-tab:hover {
  color: var(--text);
  background: rgba(18, 111, 255, 0.035);
}

.mode-tab.is-active {
  color: var(--blue);
}

.mode-tab.is-active::after {
  background: linear-gradient(90deg, var(--blue), var(--cyan));
}

.tool-panel {
  position: relative;
  min-height: 430px;
  padding: 24px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 94%, var(--surface-soft));
  box-shadow: var(--hard-shadow);
  clip-path: polygon(0 0, 72% 0, 76% 6%, 100% 6%, 100% 94%, 96% 100%, 4% 100%, 0 94%);
}

.tool-panel::before {
  content: "";
  position: absolute;
  top: 18px;
  right: 44px;
  width: 172px;
  height: 10px;
  background:
    repeating-linear-gradient(110deg, var(--blue) 0 12px, transparent 12px 20px),
    linear-gradient(90deg, transparent, var(--green));
  opacity: 0.8;
}

.decode-layout,
.encode-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(410px, 0.8fr);
  gap: 24px;
  align-items: stretch;
}

.encode-layout {
  grid-template-columns: minmax(370px, 0.8fr) minmax(460px, 1fr);
}

.panel-main,
.encode-controls {
  min-width: 0;
}

.encode-controls {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.panel-title {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.panel-title h2 {
  font-size: clamp(28px, 3vw, 36px);
  line-height: 1.12;
  font-weight: 950;
}

.panel-title p {
  font-size: 16px;
  line-height: 1.45;
  font-weight: 650;
}

.drop-zone {
  position: relative;
  isolation: isolate;
  min-height: 270px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  padding: 28px 28px;
  border: 1px dashed color-mix(in srgb, var(--blue) 52%, var(--line));
  border-radius: 0;
  background:
    radial-gradient(circle at center, rgba(53, 215, 255, 0.12), transparent 34%),
    linear-gradient(90deg, rgba(18, 111, 255, 0.065) 0 1px, transparent 1px),
    linear-gradient(180deg, rgba(18, 111, 255, 0.055) 0 1px, transparent 1px),
    color-mix(in srgb, var(--surface-soft) 86%, var(--blue));
  background-size: auto, 28px 28px, 28px 28px, auto;
  text-align: center;
  box-shadow:
    inset 0 0 0 10px color-mix(in srgb, var(--surface) 62%, transparent),
    inset 0 0 0 1px rgba(18, 111, 255, 0.18);
  clip-path: polygon(4% 0, 96% 0, 100% 8%, 100% 92%, 96% 100%, 4% 100%, 0 92%, 0 8%);
  transition:
    border-color 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.drop-zone.has-image {
  align-content: start;
  padding: 20px;
}

.drop-zone.has-image .drop-prompt {
  display: none;
}

.drop-prompt {
  display: grid;
  place-items: center;
  gap: 14px;
}

.drop-zone:hover,
.drop-zone.is-dragging,
.drop-zone.is-focused {
  border-color: var(--blue);
  box-shadow:
    inset 0 0 0 10px color-mix(in srgb, var(--surface) 58%, transparent),
    inset 0 0 0 1px rgba(18, 111, 255, 0.38),
    0 18px 42px rgba(18, 111, 255, 0.12);
  transform: translateY(-2px);
}

.scan-line {
  position: absolute;
  right: 5%;
  left: 5%;
  top: 50%;
  z-index: -1;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--scan), transparent);
  box-shadow: 0 0 18px var(--scan);
  animation: scanSweep 4.8s ease-in-out infinite;
}

.corner-mark {
  position: absolute;
  width: 36px;
  height: 36px;
  border-color: var(--blue);
  opacity: 0.95;
}

.corner-mark-a {
  top: 18px;
  left: 18px;
  border-top: 5px solid;
  border-left: 5px solid;
}

.corner-mark-b {
  top: 18px;
  right: 18px;
  border-top: 5px solid;
  border-right: 5px solid;
}

.corner-mark-c {
  right: 18px;
  bottom: 18px;
  border-right: 5px solid;
  border-bottom: 5px solid;
}

.corner-mark-d {
  bottom: 18px;
  left: 18px;
  border-bottom: 5px solid;
  border-left: 5px solid;
}

.drop-icon {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-blue);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--blue);
  box-shadow: 9px 9px 0 rgba(18, 111, 255, 0.11);
}

.drop-icon svg {
  width: 30px;
  height: 30px;
}

.drop-zone strong {
  max-width: 680px;
  font-size: clamp(20px, 2.2vw, 24px);
  font-weight: 950;
  line-height: 1.2;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.button-row.left {
  justify-content: flex-start;
}

.primary-button,
.secondary-button,
.download-button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 7px;
  padding: 0 22px;
  font-size: 15px;
  font-weight: 900;
  text-decoration: none;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.primary-button {
  border: 1px solid var(--blue-dark);
  background: linear-gradient(135deg, var(--blue), #1a8bff 70%, var(--cyan));
  color: #fff;
  box-shadow: 8px 8px 0 rgba(18, 111, 255, 0.18);
}

.primary-button:hover {
  background: var(--blue-dark);
  transform: translate(-1px, -1px);
  box-shadow: 10px 10px 0 rgba(18, 111, 255, 0.2);
}

.secondary-button {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  box-shadow: 6px 6px 0 rgba(7, 11, 19, 0.04);
}

.secondary-button:hover {
  border-color: var(--blue);
  color: var(--blue);
  transform: translate(-1px, -1px);
  box-shadow: 8px 8px 0 rgba(18, 111, 255, 0.11);
}

.download-button {
  border: 1px solid color-mix(in srgb, var(--green) 58%, var(--line));
  background: var(--surface);
  color: var(--green-dark);
  box-shadow: 6px 6px 0 rgba(16, 185, 129, 0.12);
}

.download-button:hover {
  border-color: var(--green);
  transform: translate(-1px, -1px);
  box-shadow: 8px 8px 0 rgba(16, 185, 129, 0.16);
}

.wide {
  width: 100%;
}

.decode-preview {
  width: min(100%, 520px);
  display: grid;
  justify-items: center;
  gap: 12px;
  margin: 0 auto;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 8px 8px 0 rgba(18, 111, 255, 0.08);
}

.decode-preview img {
  display: block;
  width: 100%;
  max-height: 200px;
  object-fit: contain;
}

.compact-button {
  min-height: 46px;
  padding: 0 18px;
}

.result-panel,
.qr-preview {
  position: relative;
  min-width: 0;
  min-height: 270px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface), color-mix(in srgb, var(--surface-soft) 80%, var(--surface)));
  box-shadow: 12px 14px 0 rgba(7, 11, 19, 0.045);
  clip-path: polygon(6% 0, 96% 0, 100% 7%, 100% 92%, 94% 100%, 0 100%, 0 8%);
}

.panel-stripes {
  position: absolute;
  right: 26px;
  bottom: 14px;
  width: 116px;
  height: 12px;
  background: repeating-linear-gradient(110deg, var(--green) 0 10px, transparent 10px 17px);
  opacity: 0.95;
}

.result-panel .panel-stripes {
  top: 88px;
  right: auto;
  bottom: auto;
  left: -1px;
  width: 10px;
  height: 82px;
  background: repeating-linear-gradient(180deg, var(--blue) 0 12px, transparent 12px 20px);
}

.result-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.result-panel-head span {
  font-size: 21px;
  font-weight: 950;
}

#decodeStatus {
  color: var(--muted);
  font-size: 15px;
  font-weight: 850;
  white-space: nowrap;
}

#decodeStatus.is-error {
  color: var(--danger);
}

.result-box {
  display: grid;
  gap: 14px;
  padding: 18px 0 0;
}

.result-box span {
  color: var(--green);
  font-size: 14px;
  font-weight: 950;
}

#decodedLink,
#decodedText {
  color: var(--text);
  font-size: 20px;
  font-weight: 850;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.result-box:not([hidden]) + .empty-result {
  display: none;
}

.empty-result {
  flex: 1;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 22px;
  min-height: 220px;
  color: var(--muted);
  text-align: center;
}

.empty-result strong {
  max-width: 280px;
  font-size: 18px;
  line-height: 1.45;
}

.empty-qr {
  width: 136px;
  height: 136px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line-blue);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(18, 111, 255, 0.05) 0 1px, transparent 1px),
    linear-gradient(180deg, rgba(18, 111, 255, 0.05) 0 1px, transparent 1px),
    var(--surface);
  background-size: 20px 20px, 20px 20px, auto;
}

.empty-qr span {
  border: 8px solid color-mix(in srgb, var(--faint) 62%, transparent);
  border-radius: 5px;
}

.empty-qr span:nth-child(4) {
  width: 30px;
  height: 30px;
  align-self: center;
  justify-self: center;
  border-color: var(--green);
  animation: tilePulse 2.6s ease-in-out infinite;
}

.qr-form {
  display: grid;
  gap: 16px;
}

.url-field {
  position: relative;
}

input {
  width: 100%;
  min-height: 66px;
  padding: 0 58px 0 22px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  color: var(--text);
  font-size: 18px;
  font-weight: 700;
  outline: none;
  box-shadow: 7px 7px 0 rgba(7, 11, 19, 0.035);
}

input::placeholder {
  color: var(--faint);
}

input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(18, 111, 255, 0.13), 7px 7px 0 rgba(18, 111, 255, 0.1);
}

.clear-input {
  position: absolute;
  top: 50%;
  right: 9px;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  transform: translateY(-50%);
}

.clear-input:hover {
  background: var(--surface-soft);
  color: var(--text);
}

.qr-preview {
  align-items: center;
  justify-content: center;
  min-height: 360px;
  background:
    linear-gradient(90deg, rgba(16, 185, 129, 0.05) 0 1px, transparent 1px),
    linear-gradient(180deg, rgba(18, 111, 255, 0.05) 0 1px, transparent 1px),
    linear-gradient(180deg, var(--surface), color-mix(in srgb, var(--surface-soft) 82%, var(--surface)));
  background-size: 30px 30px, 30px 30px, auto;
}

.qr-frame {
  width: min(100%, 320px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-blue);
  border-radius: var(--radius);
  background: #fff;
  box-shadow:
    inset 0 0 0 14px #fff,
    12px 12px 0 rgba(16, 185, 129, 0.11);
}

.qr-code,
.qr-code canvas,
.qr-code img {
  width: 240px;
  height: 240px;
  image-rendering: pixelated;
}

.active-url {
  width: 100%;
  font-size: 16px;
  line-height: 1.5;
  text-align: center;
  overflow-wrap: anywhere;
}

@keyframes scanSweep {
  0%,
  100% {
    top: 26%;
    opacity: 0.2;
  }
  45%,
  55% {
    opacity: 1;
  }
  50% {
    top: 72%;
  }
}

@keyframes tilePulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.9;
  }
  50% {
    transform: scale(1.14);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (max-width: 1120px) {
  .tool-card {
    padding-left: 0;
  }

  .tool-rail {
    display: none;
  }

  .tool-card::before,
  .tool-card::after {
    display: none;
  }

  .mode-tabs,
  .tool-panel {
    clip-path: none;
  }

  .decode-layout,
  .encode-layout {
    grid-template-columns: 1fr;
  }

  .result-panel {
    min-height: 320px;
  }

  .empty-result {
    min-height: 220px;
  }
}

@media (max-width: 640px) {
  .site-header {
    min-height: 68px;
    padding: 0 12px;
  }

  .brand {
    gap: 10px;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
    gap: 4px;
    padding: 5px;
    box-shadow: 4px 4px 0 rgba(18, 111, 255, 0.12);
  }

  .brand-mark span {
    border-width: 2.5px;
  }

  .brand small {
    display: none;
  }

  .brand strong {
    font-size: 20px;
  }

  .icon-button {
    width: 44px;
    height: 44px;
  }

  .page {
    width: calc(100% - 20px);
    padding: 34px 0 54px;
  }

  .intro {
    gap: 10px;
    margin: 0 0 22px;
  }

  h1 {
    font-size: clamp(42px, 13vw, 58px);
  }

  .intro p {
    font-size: 17px;
  }

  .mode-tabs {
    width: 100%;
    min-height: 66px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    padding: 0 10px;
  }

  .mode-tab {
    min-width: 0;
    min-height: 64px;
    padding: 0 8px;
    font-size: 17px;
  }

  .tool-panel {
    min-height: 0;
    padding: 18px;
    box-shadow: 7px 9px 0 rgba(18, 111, 255, 0.08);
  }

  .tool-panel::before {
    display: none;
  }

  .panel-title {
    margin-bottom: 18px;
  }

  .panel-title h2 {
    font-size: 27px;
  }

  .panel-title p {
    font-size: 16px;
  }

  .drop-zone {
    min-height: 286px;
    gap: 14px;
    padding: 24px 18px;
    clip-path: polygon(5% 0, 95% 0, 100% 6%, 100% 94%, 95% 100%, 5% 100%, 0 94%, 0 6%);
  }

  .corner-mark {
    width: 30px;
    height: 30px;
  }

  .drop-icon {
    width: 58px;
    height: 58px;
  }

  .drop-icon svg {
    width: 28px;
    height: 28px;
  }

  .drop-zone strong {
    font-size: 21px;
  }

  .button-row > button {
    flex: 1 1 100%;
  }

  .primary-button,
  .secondary-button,
  .download-button {
    min-height: 50px;
    padding: 0 18px;
    font-size: 15px;
  }

  .result-panel,
  .qr-preview {
    min-height: 300px;
    padding: 20px;
    clip-path: none;
  }

  .result-panel-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .empty-qr {
    width: 132px;
    height: 132px;
    gap: 13px;
    padding: 17px;
  }

  .empty-qr span {
    border-width: 8px;
  }

  input {
    min-height: 60px;
    padding-left: 16px;
    font-size: 16px;
  }

  .qr-frame {
    width: min(100%, 310px);
  }

  .qr-code,
  .qr-code canvas,
  .qr-code img {
    width: 242px;
    height: 242px;
  }
}
