/* ── Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,600;9..40,700&family=Noto+Sans+TC:wght@400;500;600;700&display=swap');

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

/* ── Theme ── */
:root {
  --bg:        #060c18;
  --bg2:       #0b1424;
  --surface:   rgba(255,255,255,.05);
  --surface-h: rgba(255,255,255,.08);
  --border:    rgba(255,255,255,.09);
  --border2:   rgba(255,255,255,.18);
  --text:      #dce8f8;
  --text2:     #7a9ab8;
  --text3:     #3d5a74;
  --blue:      #4285F4;
  --blue-glow: rgba(66,133,244,.45);
  --red:       #EA4335;
  --gold:      #FBBC04;
  --green:     #34A853;
  --r-lg:      18px;
  --r-md:      12px;
}

body {
  font-family: "DM Sans", "Noto Sans TC", -apple-system, BlinkMacSystemFont, "Microsoft JhengHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100svh;
  padding-bottom: calc(88px + env(safe-area-inset-bottom));
  -webkit-font-smoothing: antialiased;
  /* Dot grid atmosphere */
  background-image: radial-gradient(rgba(66,133,244,.1) 1px, transparent 1px);
  background-size: 30px 30px;
  background-attachment: fixed;
}

/* Ambient glow blobs */
body::before, body::after {
  content: '';
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
}
body::before {
  width: 480px; height: 480px;
  top: -120px; left: -120px;
  background: radial-gradient(circle, rgba(66,133,244,.15) 0%, transparent 70%);
}
body::after {
  width: 380px; height: 380px;
  bottom: 60px; right: -80px;
  background: radial-gradient(circle, rgba(156,39,176,.12) 0%, transparent 70%);
}

/* ── HEADER ── */
.site-header {
  background: rgba(6,12,24,.92);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border-bottom: 1px solid rgba(255,255,255,.06);
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 1px 0 rgba(255,255,255,.04), 0 4px 32px rgba(0,0,0,.5);
}

.header-inner {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 20px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: relative;
  z-index: 1;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.site-logo {
  height: 48px;
  width: auto;
  max-width: 300px;
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 0 14px rgba(66,133,244,.5)) drop-shadow(0 0 4px rgba(66,133,244,.3));
  transition: filter .3s;
}
.site-logo:hover { filter: drop-shadow(0 0 20px rgba(66,133,244,.7)) drop-shadow(0 0 6px rgba(251,188,4,.25)); }

.header-copy {
  display: none;
  font-size: 0.72rem;
  font-weight: 400;
  color: rgba(255,255,255,.82);
  white-space: nowrap;
  letter-spacing: .01em;
  border-left: 1px solid rgba(255,255,255,.18);
  padding-left: 14px;
  line-height: 1;
}

.help-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.65);
  border-radius: 24px;
  font-size: 0.8rem;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: .01em;
  transition: all .2s;
  -webkit-tap-highlight-color: transparent;
}
.help-btn:hover {
  background: rgba(66,133,244,.15);
  border-color: rgba(66,133,244,.4);
  color: #fff;
  box-shadow: 0 0 14px rgba(66,133,244,.25);
}

/* ── PAGE WRAP ── */
.page-wrap {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

/* ── APP HERO ── */
.app-hero {
  padding: 30px 0 22px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.hero-accent {
  width: 4px;
  height: 56px;
  background: linear-gradient(180deg, var(--blue) 0%, var(--gold) 100%);
  border-radius: 4px;
  flex-shrink: 0;
  margin-top: 2px;
  box-shadow: 0 0 14px rgba(66,133,244,.65), 0 0 4px rgba(251,188,4,.3);
}

.hero-text h1 {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -.022em;
  line-height: 1.18;
  margin-bottom: 8px;
  text-shadow: 0 0 40px rgba(66,133,244,.25);
}

.hero-text p {
  font-size: 1rem;
  color: var(--text2);
  line-height: 1.65;
}

/* ── CARDS ── */
.card {
  border-radius: var(--r-lg);
  padding: 22px;
  margin-bottom: 14px;
  position: relative;
  animation: cardIn .38s cubic-bezier(.22,.9,.36,1) both;
  /* Glassmorphism dark card */
  background: rgba(255,255,255,.04);
  backdrop-filter: blur(12px);
  /* Gradient border via pseudo-element */
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 4px 24px rgba(0,0,0,.35);
  transition: border-color .25s, box-shadow .25s;
}
.card:hover {
  border-color: rgba(66,133,244,.3);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 4px 24px rgba(0,0,0,.35), 0 0 0 1px rgba(66,133,244,.15), 0 0 28px rgba(66,133,244,.08);
}
.card:nth-child(2) { animation-delay: .08s; }
.card:nth-child(3) { animation-delay: .16s; }

@keyframes cardIn {
  from { transform: translateY(16px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

/* ── CARD LABEL ── */
.card-label {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--blue);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.card-label::before {
  content: '';
  display: block;
  width: 14px;
  height: 2px;
  background: var(--blue);
  border-radius: 2px;
  box-shadow: 0 0 8px rgba(66,133,244,.7);
}

/* ── SETTINGS ── */
.settings-row { display: grid; gap: 16px; }

.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: .02em;
  color: #fff;
  margin-bottom: 8px;
}

.field-note {
  display: block;
  font-size: 0.76rem;
  color: var(--text2);
  margin-top: 5px;
}

.field input {
  width: 100%;
  padding: 13px 16px;
  font-size: 1.05rem;
  font-family: inherit;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--r-md);
  outline: none;
  background: rgba(255,255,255,.05);
  color: #fff;
  transition: all .2s;
  -webkit-appearance: none;
}
.field input::placeholder { color: rgba(255,255,255,.28); }
.field input:hover { border-color: rgba(255,255,255,.2); background: rgba(255,255,255,.07); }
.field input:focus {
  border-color: var(--blue);
  background: rgba(66,133,244,.08);
  box-shadow: 0 0 0 3px rgba(66,133,244,.2), 0 0 12px rgba(66,133,244,.15);
}

/* ── PHOTO HEADER ── */
.photo-hd {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
}

.count-pill {
  margin-left: auto;
  background: rgba(66,133,244,.12);
  color: var(--blue);
  border: 1px solid rgba(66,133,244,.3);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 0 10px rgba(66,133,244,.15);
}

/* ── TOOLBAR ── */
.toolbar { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 11px 18px;
  font-size: 0.95rem;
  font-family: inherit;
  font-weight: 600;
  border-radius: var(--r-md);
  border: none;
  cursor: pointer;
  transition: all .18s;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  letter-spacing: .01em;
}
.btn:active { transform: scale(.95); }

.btn-add {
  background: linear-gradient(135deg, #1a68ea 0%, #4285F4 100%);
  color: #fff;
  box-shadow: 0 2px 14px rgba(66,133,244,.45), inset 0 1px 0 rgba(255,255,255,.2);
}
.btn-add:hover {
  box-shadow: 0 4px 22px rgba(66,133,244,.6), 0 0 0 1px rgba(66,133,244,.3), inset 0 1px 0 rgba(255,255,255,.2);
  transform: translateY(-1px);
}

.btn-ghost {
  background: rgba(255,255,255,.05);
  color: var(--text2);
  border: 1px solid rgba(255,255,255,.12);
}
.btn-ghost:hover {
  background: rgba(234,67,53,.1);
  border-color: rgba(234,67,53,.4);
  color: #ff6b6b;
}

.btn-camera {
  background: rgba(52,168,83,.12);
  color: #34A853;
  border: 1px solid rgba(52,168,83,.3);
  box-shadow: 0 0 10px rgba(52,168,83,.1);
}
.btn-camera:hover {
  background: rgba(52,168,83,.22);
  border-color: rgba(52,168,83,.5);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(52,168,83,.3);
}

/* ── EMPTY STATE ── */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 52px 24px;
  text-align: center;
  border: 2px dashed rgba(255,255,255,.1);
  border-radius: var(--r-md);
  background: rgba(255,255,255,.02);
  color: var(--text3);
  transition: all .25s;
}
.empty-state[hidden] { display: none; }
.empty-state:hover { border-color: rgba(66,133,244,.3); background: rgba(66,133,244,.03); }

.empty-icon {
  font-size: 3rem;
  line-height: 1;
  filter: drop-shadow(0 4px 16px rgba(66,133,244,.4));
}

.empty-state strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text2);
  margin-top: 4px;
}

.empty-state span {
  font-size: 0.8rem;
  line-height: 1.75;
  color: var(--text3);
}

/* ── PHOTO CARD ── */
.photo-card {
  display: grid;
  grid-template-columns: 88px 1fr 34px;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--r-md);
  overflow: hidden;
  margin-bottom: 8px;
  background: rgba(255,255,255,.04);
  transition: all .2s;
}
.photo-card:hover {
  border-color: rgba(66,133,244,.35);
  background: rgba(66,133,244,.06);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0,0,0,.35), 0 0 0 1px rgba(66,133,244,.12);
}

.thumb {
  width: 88px;
  height: 100%;
  min-height: 94px;
  object-fit: cover;
  object-position: center;
  display: block;
  background: rgba(66,133,244,.1);
}

.card-body {
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  justify-content: center;
  min-width: 0;
}

.fname {
  font-size: 0.82rem;
  color: var(--text3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.inputs { display: flex; flex-direction: column; gap: 4px; }

.inp-row { display: flex; align-items: center; gap: 6px; }

.lbl {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text3);
  white-space: nowrap;
  min-width: 28px;
  flex-shrink: 0;
}

.inp-row input {
  flex: 1;
  min-width: 0;
  padding: 7px 10px;
  font-size: 1rem;
  font-family: inherit;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 8px;
  outline: none;
  background: rgba(255,255,255,.04);
  color: var(--text);
  transition: all .15s;
  -webkit-appearance: none;
}
.inp-row input::placeholder { color: var(--text3); }
.inp-row input:focus {
  border-color: var(--blue);
  background: rgba(66,133,244,.08);
  box-shadow: 0 0 0 2px rgba(66,133,244,.2);
}

.del-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text3);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  padding: 0 8px;
  transition: all .15s;
  -webkit-tap-highlight-color: transparent;
}
.del-btn:hover { color: #ff6b6b; background: rgba(234,67,53,.1); }

/* ── ACTION BAR ── */
.action-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: rgba(6,12,24,.88);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border-top: 1px solid rgba(255,255,255,.07);
  padding: 12px 20px;
  padding-bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: 100;
  box-shadow: 0 -4px 32px rgba(0,0,0,.5);
}

/* Rainbow shimmer line on top of action bar */
.action-bar::before {
  content: '';
  position: absolute;
  top: -1px; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, #4285F4 25%, #34A853 45%, #FBBC04 65%, #EA4335 80%, transparent 100%);
  opacity: .7;
}

.action-wrap {
  max-width: 1060px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.action-btns {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.btn-main {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 20px;
  color: #fff;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  border: none;
  border-radius: var(--r-md);
  cursor: pointer;
  transition: all .2s;
  -webkit-tap-highlight-color: transparent;
  white-space: nowrap;
  letter-spacing: .01em;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.3), inset 0 1px 0 rgba(255,255,255,.2);
}
.btn-main::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.18) 0%, transparent 55%);
  pointer-events: none;
}
.btn-main:hover { transform: translateY(-2px); filter: brightness(1.1); }
.btn-main:active { transform: translateY(0); opacity: .88; }

.btn-word { background: linear-gradient(135deg, #1a68ea, #4285F4); box-shadow: 0 2px 12px rgba(66,133,244,.45), inset 0 1px 0 rgba(255,255,255,.2); }
.btn-word:hover { box-shadow: 0 4px 20px rgba(66,133,244,.6), inset 0 1px 0 rgba(255,255,255,.2); }
.btn-pdf  { background: linear-gradient(135deg, #c0291a, #EA4335); box-shadow: 0 2px 12px rgba(234,67,53,.4), inset 0 1px 0 rgba(255,255,255,.2); }
.btn-pdf:hover  { box-shadow: 0 4px 20px rgba(234,67,53,.55), inset 0 1px 0 rgba(255,255,255,.2); }
.btn-img  { background: linear-gradient(135deg, #1a7a3c, #34A853); box-shadow: 0 2px 12px rgba(52,168,83,.4), inset 0 1px 0 rgba(255,255,255,.2); }
.btn-img:hover  { box-shadow: 0 4px 20px rgba(52,168,83,.55), inset 0 1px 0 rgba(255,255,255,.2); }
.btn-drive { background: linear-gradient(135deg, #4a0080, #7c4dff); box-shadow: 0 2px 12px rgba(124,77,255,.4), inset 0 1px 0 rgba(255,255,255,.2); }
.btn-drive:hover { box-shadow: 0 4px 20px rgba(124,77,255,.55), inset 0 1px 0 rgba(255,255,255,.2); }

.drive-wrap { position: relative; flex-shrink: 0; }

.drive-picker {
  position: absolute;
  bottom: calc(100% + 8px);
  right: 0;
  background: #0b1424;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: 0 -8px 32px rgba(0,0,0,.5);
  min-width: 110px;
  z-index: 200;
}
.drive-picker[hidden] { display: none; }

.pick-btn {
  background: none;
  border: none;
  color: var(--text);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 9px 14px;
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
  transition: background .15s;
  -webkit-tap-highlight-color: transparent;
}
.pick-btn:hover { background: rgba(124,77,255,.18); color: #fff; }
.pick-all { color: #a78bff; border-bottom: 1px solid rgba(255,255,255,.08); border-radius: 8px 8px 0 0; }
.pick-all:hover { background: rgba(124,77,255,.28); }
.pick-divider { height: 1px; background: rgba(255,255,255,.07); margin: 2px 0; }

.action-note {
  font-size: 0.8rem;
  color: var(--text3);
  flex: 1;
  display: none;
  line-height: 1.55;
  min-width: 140px;
}

/* ── MODAL ── */
.modal-wrap {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 500;
}
.modal-wrap[hidden] { display: none; }

.modal {
  background: #0b1424;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 24px 24px 0 0;
  width: 100%;
  max-width: 540px;
  max-height: 90svh;
  overflow-y: auto;
  box-shadow: 0 -8px 60px rgba(0,0,0,.6);
  animation: slideUp .24s cubic-bezier(.22,.9,.36,1);
}
@keyframes slideUp {
  from { transform: translateY(50px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.modal-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px 14px;
  border-bottom: 1px solid rgba(255,255,255,.07);
  position: sticky;
  top: 0;
  background: rgba(11,20,36,.97);
  backdrop-filter: blur(10px);
  border-radius: 24px 24px 0 0;
}
.modal-hd span { font-size: 0.95rem; font-weight: 700; color: #fff; }

.close-btn {
  background: rgba(255,255,255,.07);
  border: none;
  border-radius: 50%;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--text2);
  transition: all .15s;
  -webkit-tap-highlight-color: transparent;
}
.close-btn:hover { background: rgba(255,255,255,.14); color: #fff; }

.modal-bd { padding: 18px 22px 32px; }

.step {
  display: flex; gap: 14px;
  margin-bottom: 18px;
  align-items: flex-start;
}
.step-n {
  min-width: 28px; height: 28px;
  background: linear-gradient(135deg, #1a68ea, #4285F4);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; font-weight: 700;
  flex-shrink: 0; margin-top: 1px;
  box-shadow: 0 2px 10px rgba(66,133,244,.55);
}
.step strong { display: block; font-size: 0.88rem; font-weight: 600; color: var(--text); margin-bottom: 3px; }
.step p { font-size: 0.8rem; color: var(--text2); line-height: 1.65; }

.notice {
  display: flex; gap: 8px;
  align-items: flex-start;
  background: rgba(66,133,244,.08);
  border: 1px solid rgba(66,133,244,.22);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 0.8rem;
  color: rgba(130,180,255,.9);
  line-height: 1.6;
}
.notice svg { flex-shrink: 0; margin-top: 2px; }

/* ── OVERLAY ── */
.overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex; align-items: center; justify-content: center;
  z-index: 1000;
}
.overlay[hidden] { display: none; }

.loading-box {
  background: #0b1424;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 22px;
  padding: 32px 44px;
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  box-shadow: 0 24px 70px rgba(0,0,0,.55);
  min-width: 200px;
}
.spinner {
  width: 42px; height: 42px;
  border: 3px solid rgba(255,255,255,.08);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin .7s linear infinite;
  box-shadow: 0 0 14px rgba(66,133,244,.35);
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-box p { font-size: 0.87rem; color: var(--text2); }

/* ── TOAST ── */
.toast {
  position: fixed;
  bottom: calc(92px + env(safe-area-inset-bottom) + 8px);
  left: 50%; transform: translateX(-50%);
  background: rgba(11,20,36,.95);
  border: 1px solid rgba(255,255,255,.12);
  color: #fff;
  padding: 10px 22px;
  border-radius: 24px;
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
  z-index: 300;
  box-shadow: 0 4px 24px rgba(0,0,0,.45);
  pointer-events: none;
  animation: toastIn .2s ease;
}
@keyframes toastIn { from { transform: translateX(-50%) translateY(8px); opacity: 0; } }
.toast[hidden] { display: none; }
.toast.ok  { background: rgba(52,168,83,.88); border-color: rgba(52,168,83,.5); box-shadow: 0 4px 20px rgba(52,168,83,.35); }
.toast.err { background: rgba(234,67,53,.88); border-color: rgba(234,67,53,.5); box-shadow: 0 4px 20px rgba(234,67,53,.35); }

/* ── DESKTOP (≥640px) ── */
@media (min-width: 640px) {
  .header-inner { height: 76px; padding: 0 32px; }
  .site-logo { height: 56px; max-width: 360px; }
  .header-copy { display: block; }

  .page-wrap { padding: 0 32px; }
  .app-hero { padding: 34px 0 22px; }
  .app-hero .hero-accent { height: 64px; }
  .hero-text h1 { font-size: 2.4rem; }

  .card { padding: 26px; }
  .settings-row { grid-template-columns: 1fr 1fr; }

  .photo-card { grid-template-columns: 108px 1fr 38px; }
  .thumb { width: 108px; min-height: 100px; }

  .inputs { flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .inp-row { flex: 1; min-width: 115px; }
  .inp-row.inp-full { flex: 2; min-width: 180px; }

  .action-bar { padding: 12px 32px; }
  .action-note { display: block; }

  .modal-wrap { align-items: center; padding: 24px; }
  .modal { border-radius: 22px; max-height: 82svh; }
  .modal-hd { border-radius: 22px 22px 0 0; }

  .toast { bottom: calc(80px + 12px); }
}

@media (min-width: 900px) {
  .btn-main { padding: 14px 28px; font-size: 1.05rem; }
}
