:root {
  color-scheme: dark;
  --page: #171426;
  --ink: #f8f5ff;
  --muted: #d5cde6;
  --accent: #bdaeFF;
  font: 100%/1.5 -apple-system, BlinkMacSystemFont, "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--page); color: var(--ink); }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .55; }
:focus-visible { outline: 3px solid #bcaeff; outline-offset: 4px; }
.home {
  display: grid;
  place-items: center;
  min-height: 100svh;
  padding: 22px;
  background: radial-gradient(ellipse at 50% 45%, #30264e, var(--page) 65%);
}
.launch {
  border: 1px solid #af9cff;
  border-radius: 999px;
  background: #c5b6ff;
  color: #211643;
  min-height: 64px;
  padding: 13px 29px;
  box-shadow: 0 10px 36px #100a24a0, inset 0 1px #f5efff;
  display: inline-flex;
  align-items: center;
  gap: 13px;
  font-size: 1.12rem;
  font-weight: 780;
  letter-spacing: .012em;
}
.launch:hover { background: #d7ccff; }
.camera-icon {
  width: 21px;
  height: 16px;
  position: relative;
  border: 2px solid currentColor;
  border-radius: 4px;
  display: grid;
  place-items: center;
}
.camera-icon::before { content: ""; position: absolute; top: -5px; width: 8px; height: 3px; border-radius: 2px 2px 0 0; background: currentColor; }
.camera-icon::after { content: ""; width: 7px; height: 7px; border: 1.5px solid currentColor; border-radius: 50%; }
.camera-screen { display: grid; place-items: center; min-height: 100svh; }
.scene {
  position: relative;
  display: flex;
  width: min(100%, 540px);
  min-height: 480px;
  height: 100svh;
  overflow: hidden;
  flex-direction: column;
  justify-content: space-between;
  isolation: isolate;
  background: radial-gradient(ellipse at 50% 43%, #36304a, #151220 75%);
}
.scene video, .scene > canvas { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.scene::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(180deg, #110d1cb3, transparent 21% 52%, #0f0b18a8);
  pointer-events: none;
}
.guide {
  position: absolute;
  z-index: -1;
  top: 24%;
  left: 14%;
  width: 72%;
  height: 40%;
  border-radius: 18px;
  border: 1px dashed #eee6ffa6;
  pointer-events: none;
}
.camera-top {
  padding: max(env(safe-area-inset-top), 15px) 17px 8px;
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 780;
  text-shadow: 0 1px 5px #111023;
}
.close {
  border: 1px solid #ffffff4d;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  background: #181326d9;
  color: var(--ink);
  font-size: 1.6rem;
  line-height: 1;
}
.camera-bottom {
  min-height: 0;
  display: grid;
  gap: 8px;
  overflow: auto;
  padding: 4px 14px max(env(safe-area-inset-bottom), 16px);
}
.quote {
  overflow: hidden;
  padding: 12px 16px 13px;
  border-radius: 18px;
  border: 1px solid #c5b4ff70;
  background: #1d172fee;
  text-align: left;
  overflow-wrap: anywhere;
}
.quote p, .quote h1 { margin: 0; }
.quote h1 { font-size: clamp(1.25rem, 4.8vw, 1.8rem); line-height: 1.25; margin: 3px 0; letter-spacing: -.02em; }
.quote p { font-size: .94rem; }
.quote .quote-status { color: var(--accent); font-size: .875rem; font-weight: 730; }
.quote #quote-prices { margin-top: 4px; font-weight: 710; }
.quote .quote-note { margin-top: 4px; color: var(--muted); font-size: .875rem; }
.price-choice, .details {
  border-radius: 12px;
  background: #20192de8;
  border: 1px solid #e5d9ff55;
}
.price-choice { display: block; padding: 7px 10px; font-size: .875rem; }
.price-choice select { width: 100%; }
.details summary { cursor: pointer; padding: 8px 11px; font-weight: 670; min-height: 39px; }
.inputs { max-height: min(34svh, 330px); overflow-y: auto; padding: 0 11px 11px; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end; gap: 8px 10px; }
.field-grid label { min-width: 0; font-size: .875rem; }
.field-grid .full { grid-column: 1 / -1; }
input:not([type="checkbox"]), select {
  min-height: 40px;
  width: 100%;
  display: block;
  border: 1px solid #847a9b;
  border-radius: 7px;
  margin-top: 3px;
  padding: 4px 7px;
  background: #30283f;
  color: var(--ink);
}
input::placeholder { color: #cdc1df; opacity: 1; }
.tax-toggle { display: flex; align-items: center; gap: 7px; min-height: 43px; }
.form-note { margin: 8px 0 0; font-size: .875rem; }
.offers { font-size: .875rem; padding-left: 20px; margin: 8px 0 0; }
.offers li { margin: 4px 0; }
.offers a, .inline-action { color: #e3d8ff; }
.inline-action {
  display: block;
  margin-top: 9px;
  border: 1px solid #9387b1;
  border-radius: 8px;
  background: #3b2b54;
  padding: 5px 9px;
}
.camera-actions { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }
.shutter {
  display: inline-grid;
  justify-items: center;
  gap: 4px;
  border: 0;
  background: transparent;
  color: white;
  font-weight: 700;
  font-size: .9rem;
  text-shadow: 0 1px 5px #0d0b16;
}
.shutter-ring {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 2px 7px #0908119c;
  background: #e4d8ff;
  background-clip: content-box;
  padding: 4px;
}
.shutter:hover .shutter-ring { background-color: #fff; }
.secondary {
  min-height: 41px;
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  border-radius: 9px;
  border: 1px solid #ded1ff75;
  background: #211833ed;
  color: var(--ink);
  font-size: .875rem;
  font-weight: 650;
  text-decoration: none;
}
.save-status { margin: 0; text-align: center; font-size: .875rem; color: #fff; text-shadow: 0 1px 5px #0d0b16; }
@media (min-width: 541px) {
  .scene { border-inline: 1px solid #685a8665; }
}
@media (max-height: 620px) {
  .guide { top: 19%; height: 36%; }
  .shutter-ring { width: 47px; height: 47px; }
  .quote { padding-block: 8px; }
}
