/* HTML&HTML release-contract layer — premium pricing delivery manifest & guest contract. */
.release-contract-line {
  width: min(860px, 100%);
  margin: 28px auto 0;
  padding: 16px 24px;
  border: 1px solid rgba(56, 189, 248, 0.25) !important;
  border-radius: 999px;
  background: #141720 !important;
  font-size: 14.5px;
  line-height: 1.6;
  color: #f1f5f9 !important;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.5), inset 0 1px 0 0 rgba(255, 255, 255, 0.1) !important;
}
.release-contract-line strong {
  color: #38bdf8 !important;
  font-weight: 700;
}

.pricing-delivery-manifest {
  width: min(1120px, calc(100% - 48px));
  margin: 40px auto 60px;
  padding: 36px;
  border: 1px solid var(--theme-border, rgba(255, 255, 255, 0.1)) !important;
  border-radius: 24px;
  background: var(--theme-bg-surface, #181a22) !important;
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.08), 0 20px 50px rgba(0, 0, 0, .4) !important;
}
.pricing-delivery-manifest .section-head {
  max-width: 760px;
  margin-bottom: 26px;
}
.pricing-delivery-manifest .section-head > span {
  display: inline-block;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .12em;
  color: #38bdf8 !important;
  margin-bottom: 8px;
}
.pricing-delivery-manifest h2 {
  font-size: clamp(26px, 3.2vw, 38px);
  line-height: 1.1;
  letter-spacing: -.035em;
  margin: 0 0 12px;
  color: var(--theme-text-primary, #f8fafc) !important;
}
.pricing-delivery-manifest p {
  margin: 0;
  color: var(--theme-text-secondary, #94a3b8) !important;
  font-size: 15px;
  line-height: 1.6;
}

.delivery-file-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 24px;
}
.delivery-file-grid code {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 0 18px;
  background: #14151c !important;
  color: #38bdf8 !important;
  border: 1px solid var(--theme-border, rgba(255, 255, 255, 0.08)) !important;
  border-radius: 12px;
  font: 700 13px/1.35 ui-monospace, SFMono-Regular, Menlo, monospace;
  word-break: break-word;
  transition: border-color .15s ease, background .15s ease;
}

html[data-theme="dark"] .release-contract-line,
html:not([data-theme="light"]) .release-contract-line {
  background: #141720 !important;
  border: 1px solid rgba(56, 189, 248, 0.25) !important;
  color: #f1f5f9 !important;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.5), inset 0 1px 0 0 rgba(255, 255, 255, 0.1) !important;
}
html[data-theme="dark"] .release-contract-line strong,
html:not([data-theme="light"]) .release-contract-line strong {
  color: #38bdf8 !important;
  font-weight: 700;
}
html[data-theme="light"] .release-contract-line {
  background: #f8fafc !important;
  border: 1px solid #cbd5e1 !important;
  color: #0f172a !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
}
html[data-theme="light"] .release-contract-line strong {
  color: #0284c7 !important;
  font-weight: 700;
}

html[data-theme="dark"] .pricing-delivery-manifest,
html:not([data-theme="light"]) .pricing-delivery-manifest {
  background: var(--theme-bg-surface, #181a22) !important;
  border: 1px solid var(--theme-border, rgba(255, 255, 255, 0.1)) !important;
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.08), 0 20px 50px rgba(0, 0, 0, .4) !important;
}
html[data-theme="dark"] .pricing-delivery-manifest h2,
html:not([data-theme="light"]) .pricing-delivery-manifest h2 {
  color: var(--theme-text-primary, #f8fafc) !important;
}
html[data-theme="dark"] .pricing-delivery-manifest p,
html:not([data-theme="light"]) .pricing-delivery-manifest p {
  color: var(--theme-text-secondary, #94a3b8) !important;
}
html[data-theme="dark"] .pricing-delivery-manifest .section-head > span,
html:not([data-theme="light"]) .pricing-delivery-manifest .section-head > span {
  color: #38bdf8 !important;
}
html[data-theme="light"] .pricing-delivery-manifest {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05) !important;
}
html[data-theme="light"] .pricing-delivery-manifest h2 {
  color: #0f172a !important;
}
html[data-theme="light"] .pricing-delivery-manifest p {
  color: #475569 !important;
}
html[data-theme="light"] .pricing-delivery-manifest .section-head > span {
  color: #0284c7 !important;
}

html[data-theme="dark"] .delivery-file-grid code,
html:not([data-theme="light"]) .delivery-file-grid code {
  background: #14151c !important;
  color: #38bdf8 !important;
  border: 1px solid var(--theme-border, rgba(255, 255, 255, 0.08)) !important;
}
html[data-theme="light"] .delivery-file-grid code {
  background: #f8fafc !important;
  color: #0369a1 !important;
  border: 1px solid #e2e8f0 !important;
}

.guest-delivery-contract {
  width: min(1120px, calc(100% - 48px));
  margin: 20px auto 60px;
  padding: 16px 22px;
  border-left: 3px solid #3b82f6 !important;
  border-top: 1px solid var(--theme-border, rgba(255, 255, 255, 0.08)) !important;
  border-right: 1px solid var(--theme-border, rgba(255, 255, 255, 0.08)) !important;
  border-bottom: 1px solid var(--theme-border, rgba(255, 255, 255, 0.08)) !important;
  border-radius: 0 12px 12px 0;
  background: #1a1c24 !important;
  font-size: 14px;
  line-height: 1.65;
  color: var(--theme-text-secondary, #cbd5e1) !important;
}
.guest-delivery-contract strong {
  color: var(--theme-text-strong, #ffffff) !important;
}

html[data-theme="dark"] .guest-delivery-contract,
html:not([data-theme="light"]) .guest-delivery-contract {
  background: #1a1c24 !important;
  border-left-color: #3b82f6 !important;
  color: var(--theme-text-secondary, #cbd5e1) !important;
}
html[data-theme="dark"] .guest-delivery-contract strong,
html:not([data-theme="light"]) .guest-delivery-contract strong {
  color: var(--theme-text-strong, #ffffff) !important;
}
html[data-theme="light"] .guest-delivery-contract {
  background: #f8fafc !important;
  border-left: 3px solid #0284c7 !important;
  border-top: 1px solid #e2e8f0 !important;
  border-right: 1px solid #e2e8f0 !important;
  border-bottom: 1px solid #e2e8f0 !important;
  color: #475569 !important;
}
html[data-theme="light"] .guest-delivery-contract strong {
  color: #0f172a !important;
}

@media print {
  .release-contract-line,
  .pricing-delivery-manifest,
  .guest-delivery-contract {
    background: #ffffff !important;
    color: #000000 !important;
    border-color: #cccccc !important;
    box-shadow: none !important;
    break-inside: avoid;
    page-break-inside: avoid;
  }
  .delivery-file-grid code {
    background: #ffffff !important;
    color: #000000 !important;
    border-color: #cccccc !important;
  }
  .guest-delivery-contract strong,
  .pricing-delivery-manifest h2,
  .release-contract-line strong {
    color: #000000 !important;
  }
}

@media (max-width: 640px) {
  .release-contract-line {
    margin-top: 16px;
    padding: 14px 18px;
    border-radius: 16px;
  }
  .pricing-delivery-manifest {
    width: min(100% - 28px, 1120px);
    padding: 24px 18px;
    margin-bottom: 40px;
    border-radius: 20px;
  }
  .delivery-file-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .delivery-file-grid code {
    min-height: 48px;
    padding: 0 14px;
    font-size: 14px;
  }
  .guest-delivery-contract {
    width: min(100% - 28px, 1120px);
    margin: 16px auto 44px;
    padding: 14px 16px;
  }
}
