.quote-page { padding: 28px 0 64px; background: #f5f8fc; }
.page-tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.page-tabs a {
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: #334155;
  font-size: 14px;
  font-weight: 700;
}
.page-tabs a.on { background: #1f6feb; border-color: #1f6feb; color: #fff; }
.page-tabs a:hover { color: #1f6feb; }
.page-tabs a.on:hover { color: #fff; }
.quote-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 20px;
  align-items: start;
}
.quote-editor {
  position: sticky;
  top: 80px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  padding: 16px 16px 18px;
  box-shadow: var(--shadow);
}
.quote-editor h3 { margin: 0 0 4px; font-size: 16px; }
.quote-editor .hint { margin: 0 0 14px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.meta-grid, .rights-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 12px;
  margin-bottom: 12px;
}
.meta-grid .f, .rights-grid .f { margin-bottom: 0; }
.f { margin-bottom: 12px; }
.f label { display: block; font-size: 12px; font-weight: 600; color: #334155; margin-bottom: 6px; }
.f .row-lab { display: flex; justify-content: space-between; align-items: baseline; }
.meta-grid .f { min-width: 0; }
.f input[type="text"],
.f input[type="number"],
.f input[type="date"],
.f select {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 10px;
  font: inherit;
  font-size: 14px;
  background: #fff;
}
.f input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}
.f input[type="number"]::-webkit-inner-spin-button,
.f input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.f input[type="date"] {
  -webkit-appearance: none;
  appearance: none;
}
.f input[type="range"] { width: 100%; }
.seg {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.seg.two { grid-template-columns: repeat(2, 1fr); }
.seg label {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 6px;
  text-align: center;
  font-size: 12px;
  cursor: pointer;
  background: #fff;
}
.seg input { display: none; }
.seg input:checked + span {
  display: block;
  font-weight: 700;
  color: #1d4ed8;
}
.seg label:has(input:checked) {
  border-color: #93c5fd;
  background: var(--blue-soft);
}
.check {
  display: flex; gap: 8px; align-items: flex-start;
  font-size: 13px; line-height: 1.45; cursor: pointer;
}
.check input { margin-top: 3px; }
.check + .field-note { margin-top: 4px; }
.zhe-wrap {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px;
}
.zhe-wrap span { font-size: 15px; font-weight: 700; color: #334155; }
.field-note {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}
.field-note.is-extra { color: #c2410c; font-weight: 600; }
.nudge {
  margin: 8px 0 0;
  padding: 8px 10px;
  border-radius: 10px;
  background: #fff7ed;
  color: #9a3412;
  font-size: 12px;
  line-height: 1.5;
}
.editor-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.editor-actions .btn { width: 100%; }
.export-status { min-height: 18px; margin: 8px 0 0; color: var(--muted); font-size: 12px; }

.quote-sheet {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}
.sheet-top {
  padding: 22px 24px 18px;
  background: linear-gradient(135deg, #1f6feb 0%, #3b82f6 55%, #60a5fa 100%);
  color: #fff;
}
.sheet-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.sheet-brand .mark {
  width: 32px; height: 32px; border-radius: 9px;
  background: rgba(255,255,255,.2); display: grid; place-items: center; font-size: 14px;
}
.sheet-brand small { display: block; font-weight: 500; opacity: .85; font-size: 12px; }
.sheet-top h1 { margin: 14px 0 6px; font-size: 22px; letter-spacing: -0.02em; }
.sheet-top .pkg { font-size: 18px; font-weight: 700; }
.sheet-top .sub, .sheet-top .meta { opacity: .9; font-size: 13px; }
.sheet-body { padding: 18px 24px 22px; }
.rights {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.rights th, .rights td { padding: 10px 8px; border-bottom: 1px solid #eef2f7; text-align: left; vertical-align: top; }
.rights th { width: 34%; color: #64748b; font-weight: 600; }
.adj {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 999px;
  background: #fff7ed;
  color: #c2410c;
  font-size: 11px;
  font-weight: 700;
}
.block-title {
  margin: 18px 0 8px;
  font-size: 13px;
  font-weight: 700;
  color: #1d4ed8;
}
.gift-list, .notes { margin: 0; padding-left: 18px; color: #475569; font-size: 13px; line-height: 1.6; }
.fee {
  margin-top: 16px;
  border: 1px solid #dbeafe;
  border-radius: 14px;
  background: #f8fbff;
  padding: 12px 14px;
}
.fee-row {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 6px 0; font-size: 14px;
}
.fee-row span:last-child { font-weight: 600; }
.fee-list { color: #475569; }
.fee-discount { color: #b45309; }
.fee-discount span:last-child { color: #c2410c; }
.fee-row .muted { color: var(--muted); font-weight: 500; font-size: 12px; }
.fee-total {
  margin-top: 8px; padding-top: 10px;
  border-top: 1px dashed #bfdbfe;
  display: flex; justify-content: space-between; align-items: baseline;
}
.fee-total strong { font-size: 28px; color: #1d4ed8; letter-spacing: -0.03em; }
.notes { margin-top: 14px; }
.sheet-foot {
  margin-top: 16px; padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--muted); font-size: 12px;
}

.pricing-page .container { width: min(1180px, calc(100% - 32px)); }
.kb-group {
  margin-top: 18px;
  padding: 14px 16px 16px;
  border: 1px solid #c7d2fe;
  border-radius: 16px;
  background: #f8faff;
}
.kb-head {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  justify-content: space-between;
}
.kb-head .block-title { margin: 0; }
.kb-head .editor-actions { flex-direction: row; margin: 0; flex: 1 1 280px; justify-content: flex-end; }
.kb-head .editor-actions .btn { width: auto; flex: 0 1 auto; }
.kb-body {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 16px;
  margin-top: 12px;
  align-items: start;
}
.kb-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.kb-fields .f { margin: 0; }
.kb-duration { margin: 12px 0 0; }
.kb-group > .hint { margin: 6px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.sku-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.sku-card {
  border: 1px solid #dbe3f0;
  border-radius: 14px;
  padding: 14px 16px;
  background: #fff;
}
.sku-card.on {
  border-color: #93c5fd;
  background: #f8fbff;
  box-shadow: 0 0 0 1px #bfdbfe;
}
.sku-term { font-size: 13px; font-weight: 700; color: #334155; }
.sku-price { margin-top: 4px; font-size: 22px; font-weight: 800; color: #1d4ed8; letter-spacing: -0.03em; }
.sku-card ul {
  margin: 8px 0 0;
  padding-left: 18px;
  color: #475569;
  font-size: 13px;
  line-height: 1.55;
}
.kb-setup .rights { margin-top: 12px; background: #fff; border-radius: 12px; overflow: hidden; }
.kb-group .fee { margin: 0; background: #fff; }
.kb-group .export-status { margin: 8px 0 0; }
.matrix-scroll { overflow-x: auto; }
.pricing-matrix {
  width: 100%;
  min-width: 880px;
  border-collapse: collapse;
  font-size: 13px;
  line-height: 1.45;
  table-layout: fixed;
}
.pricing-matrix th, .pricing-matrix td {
  border: 1px solid #e8eef6;
  padding: 10px 8px;
  text-align: center;
  vertical-align: top;
}
.pricing-matrix thead th {
  background: #1f6feb;
  color: #fff;
  font-weight: 700;
}
.pricing-matrix th:first-child, .pricing-matrix td.dur { width: 108px; }
.pricing-matrix td.dur {
  font-weight: 700;
  white-space: nowrap;
  text-align: center;
}
.pricing-matrix td.dur span {
  display: block;
  font-weight: 500;
  font-size: 12px;
}
.pricing-matrix td b {
  display: block;
  font-weight: 500;
  white-space: nowrap;
}
.pricing-matrix tr.m3 td.dur { background: #fff7ed; color: #c2410c; }
.pricing-matrix tr.m6 td.dur { background: #eff6ff; color: #1d4ed8; }
.pricing-matrix tr.m12 td.dur { background: #ecfdf5; color: #047857; }
.pricing-matrix td em {
  display: block;
  margin-top: 4px;
  color: #c2410c;
  font-style: normal;
  font-weight: 700;
  white-space: nowrap;
}
.m-hero, .m-tabs, .m-online, .m-links, .m-service, .m-cols { display: none; }
.tier-board {
  margin: 12px 0 0;
  border: 1px solid #dbe3f0;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}
.tier-row {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 8px;
  align-items: center;
  padding: 8px 12px;
  border-top: 1px solid #eef2f7;
}
.tier-row:first-child { border-top: 0; }
.tier-row > span { color: #64748b; font-size: 12px; font-weight: 700; }
.tier-pills { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.tier-pills.one { grid-template-columns: 1fr; }
.tier-pills em {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 3px;
  margin: 0;
  padding: 4px 8px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  font-style: normal;
  font-size: 12px;
  font-weight: 600;
  color: #334155;
}
.tier-pills b { color: #1d4ed8; font-size: 13px; }
.pricing-notes { margin-top: 10px; }
.pricing-calc { margin-top: 12px; }
.pricing-calc .kb-fields { margin-bottom: 10px; }
.pricing-calc .kb-duration { margin-bottom: 12px; }
.pricing-band {
  margin: 12px 0 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  color: #3730a3;
  font-size: 13px;
  line-height: 1.55;
}

@media (max-width: 960px) {
  .quote-layout { grid-template-columns: 1fr; }
  .quote-editor { position: static; }
  .kb-body, .kb-fields, .sku-grid { grid-template-columns: 1fr; }
  .kb-head .editor-actions { flex-direction: column; align-items: stretch; }
  .kb-head .editor-actions .btn { width: 100%; }
}
@media (max-width: 720px) {
  .pricing-page .sheet-top, .pricing-page .pkg-title { display: none; }
  .m-hero {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 6px 10px;
    padding: 0 2px 8px;
    background: none;
  }
  .m-hero h2 { margin: 0; font-size: 16px; letter-spacing: -0.02em; }
  .m-hero p { margin: 0; color: #64748b; font-size: 12px; }
  .m-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3px;
    padding: 3px;
    margin-bottom: 10px;
    border: 1px solid #dbe3f0;
    border-radius: 12px;
    background: #eef4ff;
  }
  .m-tab {
    border: 0;
    border-radius: 10px;
    background: transparent;
    padding: 6px 4px 5px;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    color: #334155;
    cursor: pointer;
  }
  .m-tab span { display: block; margin-top: 0; font-size: 11px; font-weight: 500; opacity: 0.85; }
  .m-tab.on { background: #1f6feb; color: #fff; box-shadow: none; }
  .pricing-matrix tr.m-off { display: none; }
  .m-online {
    display: grid;
    grid-template-columns: 36px 1fr;
    column-gap: 10px;
    margin-top: 10px;
    padding: 10px;
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    background: #e8f1ff;
  }
  .m-online::before {
    content: "•••";
    grid-row: 1 / 3;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: #fff;
    color: #1f6feb;
    font-weight: 800;
    letter-spacing: 1px;
    box-shadow: 0 4px 12px rgba(31, 111, 235, 0.12);
  }
  .m-online strong { display: block; color: #1d4ed8; font-size: 15px; }
  .m-online span { display: block; color: #64748b; font-size: 12px; }
  .tier-board { margin-top: 8px; border-radius: 12px; }
  .tier-row { padding: 7px 10px; }
  .tier-pills em { padding: 3px 7px; font-size: 11px; }
  .tier-pills b { font-size: 12px; }
  .m-links { display: grid; gap: 10px; margin: 14px 0 4px; }
  .m-links a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #fff;
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
  }
  .m-links-act { color: var(--muted); font-size: 13px; font-weight: 500; }
  .quote-page { padding: 0 0 40px; background: #fff; }
  .page-tabs { margin: 8px 0 8px; gap: 6px; }
  .page-tabs a { flex: 1; text-align: center; padding: 7px 8px; font-size: 13px; }
  .quote-sheet { border: 0; border-radius: 0; box-shadow: none; }
  .sheet-top { padding: 22px 18px 20px; }
  .sheet-top h1 { font-size: 24px; }
  .sheet-top .sub { font-size: 13px; line-height: 1.6; }
  .sheet-body { padding: 16px 16px 20px; }
  .block-title { margin-top: 20px; }
  .quote-editor, .kb-group { padding: 12px; border-radius: 12px; }
  .quote-editor h3 { font-size: 15px; }
  .quote-editor .hint { margin-bottom: 10px; }
  .meta-grid, .rights-grid { gap: 8px 8px; margin-bottom: 10px; }
  .meta-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "name name"
      "seats seats"
      "date date";
  }
  .meta-grid .f-name { grid-area: name; }
  .meta-grid .f-seats { grid-area: seats; }
  .meta-grid .f-date { grid-area: date; }
  .f-seats .row-lab span { display: none; }
  .f { margin-bottom: 10px; }
  .f label { margin-bottom: 4px; }
  .f input[type="text"],
  .f input[type="number"],
  .f input[type="date"],
  .f select { font-size: 16px; padding: 8px 9px; }
  .seg label { padding: 8px 4px; }
  .field-note { margin-top: 4px; font-size: 11px; }
  .editor-actions { flex-direction: row; flex-wrap: wrap; }
  .editor-actions .btn { flex: 1 1 46%; width: auto; }
  .fee-row { align-items: flex-start; }
  .fee-total strong { font-size: 24px; }
  .rights th { width: 30%; }
  .rights th, .rights td { font-size: 14px; }
  .matrix-scroll { overflow: visible; }
  .pricing-matrix { min-width: 0; font-size: 14px; }
  .pricing-matrix thead { display: none; }
  .pricing-matrix,
  .pricing-matrix tbody,
  .pricing-matrix tr,
  .pricing-matrix td { display: block; width: auto; }
  .pricing-matrix tr {
    margin: 0 0 10px;
    border: 1px solid #dbe3f0;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 14px rgba(30, 64, 175, 0.06);
  }
  .pricing-matrix td {
    border: 0;
    border-top: 1px solid #eef2f7;
    text-align: left;
    padding: 8px 12px;
    line-height: 1.5;
  }
  .pricing-matrix td b { display: inline; margin-right: 10px; white-space: normal; }
  .pricing-matrix td em { display: block; margin: 0 0 4px; padding: 0; background: none; font-size: 12px; line-height: 1.4; white-space: normal; }
  .pricing-matrix td.dur {
    display: flex;
    align-items: center;
    gap: 8px;
    width: auto;
    border-top: 0;
    text-align: left;
    padding: 8px 12px;
    font-size: 15px;
    line-height: 1.2;
  }
  .pricing-matrix td.dur span:first-of-type { display: inline; margin: 0; color: inherit; opacity: 0.72; font-size: 12px; }
  .pricing-matrix td.dur span:last-of-type {
    display: inline-block;
    margin: 0 0 0 auto;
    padding: 1px 8px;
    border-radius: 999px;
    background: rgba(255,255,255,.75);
    font-size: 11px;
    vertical-align: 0;
  }
  .pricing-matrix .m-service {
    display: block;
    padding: 8px 12px 6px;
    border-top: 0;
    color: #0f172a;
    font-size: 14px;
    font-weight: 800;
  }
  .pricing-matrix .m-service::before {
    content: "";
    display: inline-block;
    width: 3px;
    height: 12px;
    margin-right: 7px;
    border-radius: 999px;
    background: #1f6feb;
    vertical-align: -1px;
  }
  .pricing-matrix .m-cols {
    display: grid;
    grid-template-columns: 0.9fr 1.15fr 0.85fr;
    padding: 6px 12px;
    border: 1px solid #cfe0f5;
    border-width: 1px 0;
    background: #eaf3ff;
    color: #334155;
    font-size: 12px;
    font-weight: 700;
  }
  .pricing-matrix td[data-band] {
    display: grid;
    grid-template-columns: 0.9fr 1.15fr 0.85fr;
    column-gap: 8px;
    align-items: start;
    padding: 8px 12px;
  }
  .pricing-matrix td[data-band] b { grid-column: 2; }
  .pricing-matrix td[data-band] em { grid-column: 3; color: #c2410c; }
  .pricing-matrix td[data-band] em:first-of-type { grid-row: 1; }
  .pricing-matrix td[data-band] b:nth-of-type(2) { display: none; }
  .pricing-matrix td[data-band]:not(:has(em))::after {
    content: "—";
    grid-column: 3;
    grid-row: 1;
    color: #94a3b8;
  }
  .pricing-matrix td[data-band]::before {
    content: attr(data-band);
    grid-column: 1;
    grid-row: 1 / span 8;
    color: #334155;
    font-size: 13px;
    font-weight: 700;
  }
  .pricing-page .pricing-notes { display: none; }
  .kb-head .editor-actions .btn { padding: 12px; font-size: 15px; }
  .kb-fields .f input[type="number"], .kb-fields .f select { padding: 12px; }
  .pricing-band { padding: 12px; line-height: 1.7; }
}
@media print {
  .site-header, .quote-editor, .footer, .no-print { display: none !important; }
  .quote-page { padding: 0; background: #fff; }
  .quote-sheet { box-shadow: none; border: 0; }
}
