:root {
  color-scheme: light;
  font-family: Inter, "Segoe UI", sans-serif;
  color: #11273c;
  background: #eef5fb;
  font-synthesis: none;
  --muted: #4b6278;
  --line: #d9e6f0;
  --blue: #0872ae;
  --shadow: 0 10px 30px #254e6b0b;
}
* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
.top { background: #ffffffdf; border-bottom: 1px solid var(--line); }
.top-inner { max-width: 1016px; margin: auto; padding: 15px 24px; display: flex; align-items: center; gap: 11px; font-weight: 800; letter-spacing: -.03em; font-size: 20px; }
.mark { width: 32px; height: 32px; display: flex; justify-content: center; align-items: center; gap: 2px; background: #0872ae; border-radius: 9px; }
.mark i { height: 14px; width: 4px; border-radius: 1px; background: #fff; }
.mark i:nth-child(2) { height: 18px; }
.mark i:nth-child(3) { transform: rotate(-13deg); opacity: .76; }
.role { margin-left: auto; color: #145783; background: #e7f4ff; border-radius: 999px; padding: 7px 10px; font-size: 12px; letter-spacing: 0; }
main { max-width: 1016px; margin: auto; padding: 24px 24px max(24px, env(safe-area-inset-bottom)); }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(32px, 6vw, 57px); letter-spacing: -.055em; line-height: 1.04; overflow-wrap: anywhere; }
h2 { font-size: 21px; letter-spacing: -.03em; }
h3 { font-size: 17px; letter-spacing: -.02em; overflow-wrap: anywhere; }
p { line-height: 1.5; overflow-wrap: anywhere; }
.hero { background: linear-gradient(118deg, #103354, #155a86 72%, #0d78a9); border-radius: 25px; color: white; padding: clamp(25px, 6vw, 52px); display: grid; gap: 14px; box-shadow: 0 16px 40px #1b50762b; }
.collection-hero { background: linear-gradient(118deg, #102e4c, #154c74 76%, #15678e); gap: 12px; }
.hero h1 { color: #fff; }
.collection-hero h1 {
  text-wrap: balance;
}
.hero p { max-width: 55ch; color: #e0f2ff; }
.phase { justify-self: start; border: 1px solid #ffffff52; color: #e9f7ff; border-radius: 999px; background: #ffffff16; padding: 5px 11px; font-size: 13px; font-weight: 700; }
.panel { background: white; border: 1px solid var(--line); border-radius: 19px; padding: clamp(16px, 3vw, 24px); display: grid; gap: 14px; margin-top: 16px; box-shadow: var(--shadow); }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 14px; margin-top: 13px; }
.grid .panel { margin: 0; align-content: start; }
.manual { display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: 15px; }
.cover { width: 78px; height: 104px; object-fit: contain; display: grid; place-items: center; background: #e4f1fb; color: #23618b; border-radius: 9px; overflow: hidden; font-size: 27px; font-weight: 800; }
.manual-copy { display: grid; gap: 6px; align-content: start; }
.muted, footer { color: var(--muted); font-size: 14px; }
section.heading { display: grid; gap: 5px; margin-top: 25px; }
.row { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
.row.between { justify-content: space-between; }
.stack { display: grid; gap: 10px; }
nav { display: flex; gap: 7px; overflow: auto; margin: 18px 0 4px; padding: 2px 0 7px; }
nav button { flex: 0 0 auto; }
button, .button { appearance: none; text-decoration: none; font: inherit; font-size: 14px; font-weight: 750; border-radius: 10px; border: 1px solid transparent; padding: 10px 14px; min-height: 42px; color: white; background: var(--blue); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
button.secondary, .button.secondary { color: #164d73; background: #edf6fc; border-color: #d6e8f5; }
button.danger { color: #a22232; background: #fff1f2; border-color: #f5d0d5; }
button:disabled { opacity: .53; cursor: default; }
button:hover:not(:disabled), .button:hover { filter: brightness(.95); }
:focus-visible { outline: 3px solid #176fbb; outline-offset: 3px; }
input:not([type=checkbox]), textarea { width: 100%; padding: 10px 12px; color: inherit; background: #fff; border: 1px solid #afc7dc; border-radius: 9px; font: inherit; }
input[type=file] { font-size: 14px; }
label { display: grid; gap: 6px; font-size: 14px; font-weight: 650; }
details { border-top: 1px solid var(--line); padding-top: 10px; }
summary { cursor: pointer; font-size: 14px; font-weight: 700; }
details[open] summary { margin-bottom: 10px; }
.total { font-size: clamp(30px, 7vw, 48px); letter-spacing: -.055em; font-weight: 850; color: #095987; }
.notice, .feedback { border-radius: 12px; background: #e6f4ff; color: #164d73; padding: 12px 14px; }
.notice.warning, .feedback.error { background: #fff0f1; color: #952331; }
.feedback { margin-bottom: 12px; }
footer { margin: 23px 0 0; line-height: 1.45; }
@media (max-width: 520px) {
  main { padding: 16px 13px max(20px, env(safe-area-inset-bottom)); }
  .top-inner { padding: 12px 14px; }
  .hero { border-radius: 18px; }
}

.invite { border-top: 1px solid var(--line); padding-top: 14px; }

button.manual-choice {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  align-items: center;
  justify-content: stretch;
  gap: 12px;
  width: 100%;
  padding: 10px;
  border: 2px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: #11273c;
  font-weight: 400;
  text-align: left;
  box-shadow: var(--shadow);
}
button.manual-choice[aria-pressed="true"] {
  background: #e8f7ed;
  border-color: #24804c;
}
.manual-choice .cover-slot { display: grid; min-width: 0; }
.manual-choice .cover {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  font-size: 21px;
  object-fit: contain;
}
.manual-choice .manual-copy { align-content: center; }
.manual-choice-footer { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; margin-top: 3px; }
.manual-choice .manual-copy { gap: 3px; overflow-wrap: anywhere; }
.manual-title { font-size: 16px; }
.manual-choice-status { flex-shrink: 0; color: #095987; font-weight: 750; text-align: right; }
.manual-choice[aria-pressed="true"] .manual-choice-status { color: #155e36; }
.estimate-total { font-size: clamp(27px, 6vw, 38px); }
