:root {
  --bg: #edf4fb;
  --surface: #ffffff;
  --surface-soft: #f8fbff;
  --ink: #0e1a2f;
  --muted: #5b6880;
  --line: #d7e2ef;
  --line-strong: #c6d5e8;
  --brand: #0a6f67;
  --brand-strong: #085951;
  --brand-soft: #e7f8f5;
  --focus: #0e63d6;
  --warning-bg: #fff8ee;
  --warning-border: #f4d6a7;
  --warning-ink: #7a500f;
  --danger-bg: #fff1f1;
  --danger-line: #f0c8c8;
  --danger-ink: #8f2020;
  --ok-bg: #eaf8f3;
  --ok-line: #c7e7d8;
  --ok-ink: #165848;
  --shadow-soft: 0 10px 24px rgba(16, 36, 68, 0.08);
  --shadow-md: 0 18px 38px rgba(8, 24, 52, 0.12);
  --shadow-lg: 0 26px 58px rgba(8, 24, 52, 0.15);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 12%, #ffffff 0%, transparent 35%),
    radial-gradient(circle at 92% 90%, #dbefff 0%, transparent 36%),
    linear-gradient(155deg, #f3f8ff 0%, #edf4fb 48%, #eef7fb 100%);
  overflow-x: hidden;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
}

.ambient {
  position: fixed;
  z-index: 0;
  border-radius: 999px;
  filter: blur(10px);
  pointer-events: none;
}

.ambient-one {
  width: 290px;
  height: 290px;
  top: -70px;
  left: -70px;
  background: radial-gradient(circle, rgba(8, 89, 81, 0.2), rgba(8, 89, 81, 0));
}

.ambient-two {
  width: 340px;
  height: 340px;
  right: -90px;
  bottom: -120px;
  background: radial-gradient(circle, rgba(30, 117, 189, 0.22), rgba(30, 117, 189, 0));
}

.page {
  position: relative;
  z-index: 1;
  width: min(1320px, 94vw);
  margin: 30px auto 46px;
  display: grid;
  gap: 22px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(18px, 2.4vw, 28px);
  display: grid;
  gap: 16px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.7), transparent 46%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.4), rgba(248, 252, 255, 0));
  pointer-events: none;
}

.hero-grid,
.type-dock,
.drag-tip {
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) auto;
  gap: 20px;
  align-items: start;
}

.eyebrow {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
}

h1 {
  margin: 10px 0 8px;
  line-height: 1.12;
  font-size: clamp(1.8rem, 3.3vw, 2.9rem);
  max-width: 23ch;
}

.subtitle {
  margin: 0;
  max-width: 70ch;
  color: var(--muted);
  line-height: 1.55;
  font-size: clamp(0.92rem, 1.2vw, 1rem);
}

.hero-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
  max-width: 340px;
}

.meta-chip {
  border-radius: 999px;
  border: 1px solid #c8d8ea;
  background: linear-gradient(180deg, #ffffff, #f1f7ff);
  color: #214367;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: 7px 12px;
  white-space: nowrap;
}

.type-dock {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  border: 1px solid #d6e3f2;
  border-radius: 18px;
  padding: 9px;
  background:
    radial-gradient(circle at 8% 16%, #ffffff 0%, transparent 42%),
    linear-gradient(180deg, #fafdff, #eff5ff);
}

.type-scroll-btn {
  width: 38px;
  height: 38px;
  border: 1px solid #c8d8ea;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff, #edf4ff);
  color: #2a4568;
  font-size: 1rem;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(21, 43, 74, 0.09);
  padding: 0;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.type-scroll-btn:hover:not(:disabled) {
  border-color: #afc6e2;
  box-shadow: 0 8px 14px rgba(21, 43, 74, 0.13);
  transform: translateY(-1px);
}

.type-scroll-btn:disabled {
  opacity: 0.44;
  box-shadow: none;
  cursor: not-allowed;
}

.type-menu-wrap {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: #8baed8 #e9f1fb;
  border: 1px solid #d7e3f2;
  border-radius: 13px;
  background: linear-gradient(180deg, #fcfeff, #f4f8ff);
  padding: 3px;
  cursor: grab;
  scroll-behavior: smooth;
}

.type-menu-wrap.dragging {
  cursor: grabbing;
  user-select: none;
}

.type-menu-wrap.dragging .type-tab {
  pointer-events: none;
}

.type-menu-wrap::-webkit-scrollbar {
  height: 8px;
}

.type-menu-wrap::-webkit-scrollbar-track {
  background: linear-gradient(180deg, #eef3fb, #e8effa);
  border-radius: 999px;
  border: 1px solid #d4e0f0;
}

.type-menu-wrap::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #abc4e5, #7da4d2);
  border-radius: 999px;
  border: 1px solid #eaf1fb;
}

.type-menu-wrap::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #9dbbe0, #6b99cd);
}

.type-menu {
  display: inline-flex;
  gap: 8px;
  min-width: max-content;
  padding: 2px;
}

.type-tab {
  position: relative;
  border: 1px solid #d2dff0;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffffff, #f5f9ff);
  color: #2f4a6a;
  box-shadow: 0 3px 9px rgba(15, 23, 42, 0.06);
  min-height: 40px;
  padding: 10px 15px 10px 29px;
  font-size: 0.83rem;
  font-weight: 700;
  letter-spacing: 0.012em;
  white-space: nowrap;
  cursor: pointer;
  scroll-snap-align: start;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.type-tab::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  transform: translateY(-50%);
  background: #9bb3d0;
  box-shadow: 0 0 0 2px #ebf2ff;
}

.type-tab:hover:not(.active) {
  border-color: #b5cae6;
  box-shadow: 0 8px 14px rgba(15, 23, 42, 0.1);
  transform: translateY(-1px);
}

.type-tab.active {
  color: #ffffff;
  border-color: transparent;
  background: linear-gradient(145deg, var(--brand), #0b9588 72%);
  box-shadow: 0 12px 22px rgba(10, 111, 103, 0.3);
}

.type-tab.active::before {
  background: #ffffff;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.34);
}

.drag-tip {
  margin: 0;
  color: #5a6a84;
  font-size: 0.83rem;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.9fr);
  gap: 18px;
  align-items: start;
  padding: 18px;
}

.builder {
  display: grid;
  gap: 12px;
}

.setting-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff, var(--surface-soft));
  padding: 15px;
  display: grid;
  gap: 10px;
}

.content-card {
  box-shadow: 0 6px 18px rgba(17, 32, 59, 0.04);
}

.design-card {
  box-shadow: 0 6px 18px rgba(17, 32, 59, 0.04);
}

.setting-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #e9eef7;
  padding-bottom: 8px;
}

.setting-head h2 {
  font-size: 1.08rem;
}

.setting-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  text-align: right;
}

label {
  font-size: 0.91rem;
  font-weight: 700;
}

input,
textarea,
select,
button {
  font: inherit;
}

input[type="text"],
input[type="email"],
input[type="datetime-local"],
textarea,
select {
  width: 100%;
  border: 1px solid #d1deee;
  border-radius: 12px;
  background: #ffffff;
  color: var(--ink);
  padding: 11px 12px;
  min-height: 42px;
}

textarea {
  resize: vertical;
  min-height: 90px;
}

input:focus,
textarea:focus,
select:focus,
input[type="range"]:focus,
button:focus-visible,
.type-tab:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.content-panel {
  display: none;
  gap: 8px;
}

.content-panel.active {
  display: grid;
}

.checkline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.checkline input {
  width: 16px;
  height: 16px;
}

.char-count {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
  text-align: right;
}

.size-control {
  border: 1px solid #d9e5f3;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff, #f5f9ff);
  padding: 11px;
}

.size-slider {
  width: 100%;
  margin: 0;
  height: 8px;
  border: none;
  border-radius: 999px;
  appearance: none;
  background: linear-gradient(
    90deg,
    var(--brand) 0%,
    var(--brand) var(--slider-progress, 0%),
    #d0dceb var(--slider-progress, 0%),
    #d0dceb 100%
  );
}

.size-slider::-webkit-slider-thumb {
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  background: var(--brand);
  box-shadow: 0 6px 12px rgba(10, 111, 103, 0.3);
  cursor: pointer;
}

.size-slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  background: var(--brand);
  box-shadow: 0 6px 12px rgba(10, 111, 103, 0.3);
  cursor: pointer;
}

.size-slider::-moz-range-track {
  height: 8px;
  border: none;
  border-radius: 999px;
  background: transparent;
}

.size-meta {
  margin-top: 9px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  color: var(--muted);
  font-size: 0.82rem;
}

.size-meta strong {
  justify-self: center;
  min-width: 110px;
  text-align: center;
  border-radius: 999px;
  border: 1px solid #c8dbf5;
  background: #ecf5ff;
  color: #153b63;
  padding: 4px 10px;
}

.size-meta span:last-child {
  justify-self: end;
}

.button-row {
  display: flex;
  gap: 10px;
}

button {
  border: none;
  border-radius: 12px;
  font-weight: 700;
  padding: 11px 14px;
  cursor: pointer;
  transition: transform 0.14s ease, box-shadow 0.14s ease, background 0.14s ease;
}

button:hover {
  transform: translateY(-1px);
}

#generateBtn,
.download-btn,
.btn-primary {
  color: #ffffff;
  background: linear-gradient(150deg, var(--brand), #0b8f83);
  box-shadow: 0 12px 22px rgba(10, 111, 103, 0.24);
}

.btn-secondary {
  background: #f2f6fc;
  color: #22364f;
  border: 1px solid #d4deed;
}

.download-btn:disabled {
  opacity: 0.56;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.preview-panel {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, #fcfeff, #f3f8ff);
  padding: 14px;
  display: grid;
  gap: 12px;
  align-content: start;
  position: sticky;
  top: 20px;
  max-height: calc(100vh - 40px);
  box-shadow: var(--shadow-soft);
}

.qr-output {
  min-height: 300px;
  border: 1px dashed #c8d8ec;
  border-radius: 13px;
  background: #ffffff;
  display: grid;
  place-items: center;
  padding: 12px;
}

.qr-output canvas,
.qr-output img {
  width: min(290px, 100%);
  height: min(290px, 100%);
  max-width: 100%;
  max-height: 100%;
  display: block;
  margin: auto;
}

.placeholder {
  margin: 0;
  color: var(--muted);
}

.preview-note {
  margin: 0;
  color: var(--muted);
  text-align: center;
  font-size: 0.84rem;
  line-height: 1.45;
}

.preview-actions {
  display: grid;
  gap: 10px;
  border: 1px solid #d6e2f2;
  border-radius: 14px;
  background: linear-gradient(180deg, #f9fcff, #f2f8ff);
  padding: 10px;
}

.quality-section {
  display: flex;
  justify-content: flex-end;
}

.quality-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #cbe0ff;
  border-radius: 999px;
  background: linear-gradient(135deg, #f0f8ff, #e6f2ff);
  padding: 8px 14px;
  font-size: 0.88rem;
}

.quality-label {
  color: var(--muted);
  font-size: 0.84rem;
}

#qualityScore {
  min-width: 110px;
  text-align: right;
  color: var(--brand);
}

#qualityScore.quality-good {
  color: #23b26b;
}

#qualityScore.quality-moderate {
  color: #e3a12b;
}

#qualityScore.quality-poor {
  color: #e14f4f;
}

.download-hint {
  margin: 0;
  border: 1px solid #d4deef;
  border-radius: 10px;
  background: #f7faff;
  color: #45546f;
  font-size: 0.84rem;
  line-height: 1.45;
  padding: 8px 10px;
}

.download-hint.hint-safe {
  border-color: #b7dfd6;
  background: #edf9f6;
  color: #1f6258;
}

.download-hint.hint-caution {
  border-color: #f1d6a8;
  background: var(--warning-bg);
  color: var(--warning-ink);
}

.status {
  margin: 0;
  border: 1px solid var(--ok-line);
  border-radius: 11px;
  background: var(--ok-bg);
  color: var(--ok-ink);
  font-size: 0.9rem;
  line-height: 1.35;
  padding: 9px 10px;
}

.status-ok {
  border-color: var(--ok-line);
  background: var(--ok-bg);
  color: var(--ok-ink);
}

.status-error {
  border-color: var(--danger-line);
  background: var(--danger-bg);
  color: var(--danger-ink);
}

.modal {
  display: none;
}

.modal:not([hidden]) {
  display: flex;
  position: fixed;
  inset: 0;
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(5, 18, 36, 0.5);
  backdrop-filter: blur(3px);
}

.modal-content {
  position: relative;
  width: min(540px, 92vw);
  max-height: 82vh;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid #d2deed;
  box-shadow: 0 24px 64px rgba(8, 24, 52, 0.28);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.modal-header {
  padding: 18px 20px 12px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h2 {
  margin: 0;
  font-size: 1.2rem;
}

.modal-close {
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 9px;
  color: #5e6d84;
  background: transparent;
  box-shadow: none;
  font-size: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  color: #192945;
}

.modal-body {
  padding: 18px 20px;
  overflow-y: auto;
  flex: 1;
}

.modal-warnings {
  border: 1px solid var(--warning-border);
  border-radius: 10px;
  background: linear-gradient(180deg, #fff9f0, #fff4e6);
  color: var(--warning-ink);
  padding: 12px;
  margin-bottom: 14px;
}

.modal-warnings strong {
  display: block;
  margin-bottom: 6px;
}

.modal-warnings p {
  margin: 0;
  line-height: 1.45;
}

.modal-info {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.modal-footer {
  border-top: 1px solid var(--line);
  padding: 14px 20px 18px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.reveal-1,
.reveal-2 {
  opacity: 0;
  transform: translateY(16px);
  animation: rise 0.6s ease forwards;
}

.reveal-2 {
  animation-delay: 0.14s;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1240px) {
  .page {
    width: min(100%, 95vw);
  }

  .workspace {
    grid-template-columns: minmax(0, 1.15fr) minmax(290px, 0.85fr);
  }
}

@media (max-width: 1080px) {
  .workspace {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .preview-panel {
    position: static;
    top: auto;
    max-height: none;
    order: -1;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .hero-meta {
    justify-content: flex-start;
    max-width: none;
  }
}

@media (max-width: 860px) {
  .page {
    width: min(100%, 96vw);
    margin: 20px auto 30px;
    gap: 16px;
  }

  .card {
    border-radius: 20px;
  }

  .hero,
  .workspace {
    padding: 14px;
  }

  .type-dock {
    gap: 8px;
    padding: 8px;
  }

  .type-scroll-btn {
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }

  .type-tab {
    min-height: 38px;
    font-size: 0.81rem;
    padding: 9px 14px 9px 27px;
  }

  .type-tab::before {
    left: 11px;
  }

  .setting-card {
    border-radius: 16px;
    padding: 12px;
  }

  .button-row {
    flex-direction: column;
  }

  .button-row button {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .page {
    width: 100%;
    margin: 0;
    padding: 14px 10px 24px;
    gap: 14px;
  }

  .card {
    border-radius: 18px;
    box-shadow: var(--shadow-md);
  }

  .hero,
  .workspace {
    padding: 12px;
    gap: 12px;
  }

  h1 {
    font-size: clamp(1.42rem, 8vw, 1.95rem);
    margin: 8px 0 6px;
  }

  .subtitle {
    font-size: 0.88rem;
    line-height: 1.48;
  }

  .hero-meta {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 2px;
  }

  .hero-meta::-webkit-scrollbar {
    display: none;
  }

  .meta-chip {
    font-size: 0.72rem;
    padding: 6px 10px;
  }

  .type-dock {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 8px;
    border-radius: 14px;
  }

  .type-scroll-btn {
    display: none;
  }

  .type-menu-wrap {
    border-radius: 11px;
    padding: 4px;
  }

  .type-menu {
    gap: 8px;
  }

  .type-tab {
    min-height: 40px;
    font-size: 0.79rem;
    padding: 9px 13px 9px 25px;
  }

  .type-tab::before {
    left: 10px;
    width: 6px;
    height: 6px;
  }

  .drag-tip {
    font-size: 0.76rem;
    margin-top: 2px;
  }

  .builder {
    gap: 10px;
  }

  .setting-card {
    border-radius: 14px;
    padding: 10px;
    gap: 8px;
  }

  .setting-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    padding-bottom: 6px;
  }

  .setting-head h2 {
    font-size: 1rem;
  }

  .setting-head p {
    text-align: left;
    font-size: 0.79rem;
  }

  label {
    font-size: 0.87rem;
  }

  input[type="text"],
  input[type="email"],
  input[type="datetime-local"],
  textarea,
  select {
    min-height: 44px;
    padding: 10px;
    border-radius: 10px;
    font-size: 16px;
  }

  textarea {
    min-height: 104px;
  }

  .char-count {
    font-size: 0.78rem;
  }

  .size-control {
    padding: 10px;
    border-radius: 10px;
  }

  .size-meta {
    font-size: 0.78rem;
  }

  button {
    min-height: 44px;
    padding: 11px 12px;
    border-radius: 11px;
    font-size: 0.92rem;
  }

  #generateBtn,
  .btn-primary,
  .download-btn {
    min-height: 46px;
  }

  .preview-panel {
    border-radius: 14px;
    padding: 12px;
    gap: 10px;
  }

  .qr-output {
    min-height: 252px;
    border-radius: 11px;
  }

  .qr-output canvas,
  .qr-output img {
    width: min(238px, 100%);
    height: min(238px, 100%);
  }

  .preview-note {
    text-align: left;
    font-size: 0.8rem;
  }

  .preview-actions {
    border-radius: 12px;
    padding: 8px;
    gap: 8px;
  }

  .quality-section {
    justify-content: flex-start;
  }

  .quality-badge {
    font-size: 0.82rem;
    padding: 6px 10px;
  }

  .download-btn {
    width: 100%;
  }

  .download-hint,
  .status {
    font-size: 0.82rem;
    border-radius: 8px;
    padding: 8px 9px;
  }

  .modal-content {
    width: 94vw;
    max-height: 88vh;
    border-radius: 14px;
  }

  .modal-header {
    padding: 14px 16px 10px;
  }

  .modal-header h2 {
    font-size: 1.08rem;
  }

  .modal-body {
    padding: 12px 16px;
  }

  .modal-footer {
    padding: 10px 16px 14px;
    flex-direction: column;
  }

  .modal-footer button {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .page {
    padding: 12px 8px 20px;
  }

  .hero,
  .workspace {
    padding: 10px;
  }

  .meta-chip {
    font-size: 0.68rem;
    padding: 5px 9px;
  }

  .type-tab {
    min-height: 37px;
    font-size: 0.75rem;
    padding: 8px 12px 8px 23px;
  }

  .setting-card {
    padding: 9px;
    gap: 7px;
  }

  input[type="text"],
  input[type="email"],
  input[type="datetime-local"],
  textarea,
  select {
    min-height: 42px;
    padding: 9px;
  }

  .size-meta {
    grid-template-columns: auto auto auto;
  }

  .size-meta strong {
    min-width: 96px;
  }

  .qr-output {
    min-height: 228px;
    padding: 8px;
  }

  .qr-output canvas,
  .qr-output img {
    width: min(212px, 100%);
    height: min(212px, 100%);
  }

  .quality-badge {
    width: 100%;
    justify-content: center;
  }

  .quality-label {
    font-size: 0.76rem;
  }

  #qualityScore {
    min-width: 86px;
  }

  .modal-header {
    padding: 12px 14px 8px;
  }

  .modal-close {
    width: 30px;
    height: 30px;
    font-size: 24px;
  }

  .modal-body {
    padding: 10px 14px;
  }

  .modal-warnings {
    padding: 9px;
    border-radius: 8px;
  }

  .modal-footer {
    padding: 8px 14px 12px;
    gap: 7px;
  }
}

@media (max-width: 360px) {
  h1 {
    font-size: 1.3rem;
  }

  .subtitle {
    font-size: 0.82rem;
  }

  .type-tab {
    min-height: 35px;
    font-size: 0.72rem;
    padding: 7px 11px 7px 22px;
  }

  .type-tab::before {
    left: 9px;
    width: 5px;
    height: 5px;
  }

  button {
    font-size: 0.89rem;
  }

  .qr-output {
    min-height: 214px;
  }

  .qr-output canvas,
  .qr-output img {
    width: min(196px, 100%);
    height: min(196px, 100%);
  }
}
