:root {
  color-scheme: light;
  --paper: #f4f5f9;
  --ink: #171a27;
  --muted: #596172;
  --line: #e0e4ed;
  --accent: #254fc7;
  font:
    15px/1.48 -apple-system,
    BlinkMacSystemFont,
    "PingFang SC",
    sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
body,
h1,
h2,
h3,
p {
  margin: 0;
}
button,
a,
input,
textarea,
select {
  font: inherit;
}
a,
button {
  touch-action: manipulation;
}
a {
  text-decoration: none;
  color: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.57;
  cursor: default;
}
:focus-visible {
  outline: 3px solid #6489e8;
  outline-offset: 3px;
}
.top {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 59px;
  padding: env(safe-area-inset-top) max(18px, calc((100vw - 740px) / 2)) 0;
  background: rgba(247, 248, 253, 0.86);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  backdrop-filter: blur(24px) saturate(150%);
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 730;
  font-size: 20px;
  letter-spacing: -0.035em;
}
.wordmark b {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: #2757cd;
  color: #fff;
  font-style: italic;
}
main {
  width: min(100%, 776px);
  margin-inline: auto;
  padding: 16px 18px calc(106px + env(safe-area-inset-bottom));
}
.heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}
h1 {
  font-size: clamp(34px, 6vw, 49px);
  line-height: 1.16;
  font-weight: 750;
  letter-spacing: -0.055em;
}
.heading p {
  margin-top: 9px;
  color: var(--muted);
}
h2 {
  font-size: 23px;
  line-height: 1.3;
  letter-spacing: -0.035em;
}
h3 {
  font-size: 18px;
}
.primary,
.secondary {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 44px;
  padding: 8px 17px;
  border-radius: 40px;
  font-size: 14px;
  font-weight: 670;
  border: 1px solid transparent;
}
.primary {
  color: #fff;
  background: var(--accent);
}
.secondary {
  color: var(--accent);
  background: #fff;
  border-color: var(--line);
}
.text {
  min-height: 44px;
  padding: 0;
  border: none;
  color: var(--accent);
  background: transparent;
  font-size: 13px;
  font-weight: 640;
}
.cards {
  display: grid;
  gap: 13px;
}
.card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 21px;
  background: white;
  min-width: 0;
}
.card p,
.card .actions {
  margin-top: 8px;
}
.spread,
.actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.status {
  border-radius: 40px;
  color: #2850a3;
  background: #e9efff;
  display: inline-block;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 650;
}
.muted {
  color: var(--muted);
  font-size: 13px;
}
.wrap {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.quotes {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
#quotes-list {
  display: grid;
  gap: 11px;
  margin-top: 10px;
}
#quotes-list .card,
#confirm-summary {
  background: #f8faff;
}
.price {
  font-size: 22px;
  color: #172444;
  font-weight: 720;
  letter-spacing: -0.03em;
}
.error {
  color: #a52832;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.error:empty {
  display: none;
}
.dock {
  display: flex;
  position: fixed;
  left: 50%;
  bottom: calc(11px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  width: min(calc(100% - 28px), 435px);
  min-height: 64px;
  padding: 5px;
  gap: 4px;
  border-radius: 40px;
  border: 1px solid rgba(255, 255, 255, 0.95);
  background: rgba(251, 252, 255, 0.77);
  box-shadow:
    0 3px 27px #25355c23,
    inset 0 0 0 1px #52689924;
  -webkit-backdrop-filter: blur(25px) saturate(170%);
  backdrop-filter: blur(25px) saturate(170%);
}
.dock a {
  flex: 1;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 2px;
  border-radius: 32px;
  font-size: 11px;
  font-weight: 660;
}
.dock a span {
  font-size: 17px;
}
.dock [aria-current="page"] {
  background: #dde7ff;
  color: var(--accent);
}
dialog {
  width: min(100%, 512px);
  max-height: calc(100dvh - max(12px, env(safe-area-inset-top)));
  margin: auto;
  padding: 0;
  border: 1px solid white;
  border-radius: 27px;
  background: #f8f9fc;
  box-shadow: 0 -12px 55px #17244230;
}
dialog::backdrop {
  background: #19243966;
  backdrop-filter: blur(3px);
}
.sheet-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 9px;
  padding: 16px 20px;
  background: #e9effc;
}
.close {
  border-radius: 50%;
  background: #fff;
  border: 0;
  width: 38px;
  height: 38px;
  font-size: 22px;
  color: #253549;
}
form {
  display: grid;
  gap: 11px;
  padding: 17px 19px calc(22px + env(safe-area-inset-bottom));
}
form label {
  display: grid;
  gap: 5px;
  font-weight: 640;
  font-size: 13px;
}
input,
textarea,
select {
  box-sizing: border-box;
  font-size: 16px;
  width: 100%;
  min-height: 44px;
  padding: 8px 11px;
  border: 1px solid #cbd3e4;
  background: #fff;
  border-radius: 11px;
  color: var(--ink);
}
textarea {
  min-height: 88px;
  resize: vertical;
}
.full {
  width: 100%;
  margin-top: 5px;
}
@media (max-width: 650px) {
  dialog {
    margin: auto 0 0;
    border-radius: 27px 27px 0 0;
  }
}

#quotes-list .card .text { min-height: 36px; }
