* {box-sizing: border-box;margin: 0;padding: 0;}
body {font-family: -apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Helvetica,Arial,sans-serif;line-height: 1.6;color:#333;background:#fff;}
a {color:#2563eb;text-decoration:none;}a:hover {text-decoration:underline;}
.container {max-width: 900px;margin: 0 auto;padding: 1rem;}
header {background: linear-gradient(135deg,#1e40af,#3b82f6);color:#fff;padding: 1.5rem 0;border-bottom: 4px solid #1e40af;}
header h1 {font-size: 1.75rem;margin-bottom: 0.25rem;}header .tagline {font-size: 1rem;opacity: 0.95;}
nav {margin-top: 1rem;display: flex;gap: 1rem;flex-wrap: wrap;}
nav a {color:#fff;font-weight: 500;opacity: 0.9;}nav a:hover {opacity: 1;}nav a.active {opacity: 1;font-weight: 600;}
main {padding: 1.5rem 0;}
h2 {font-size: 1.5rem;margin-bottom: 0.5rem;color:#1e40af;}
h3 {font-size: 1.25rem;margin-bottom: 0.5rem;color:#1e40af;}
h4 {font-size: 1rem;margin-bottom: 0.25rem;color:#1e40af;}
.section-intro {color:#666;margin-bottom: 1rem;font-size: 0.95rem;}
.debt-table {overflow-x: auto;background:#f9fafb;border-radius: 8px;margin-bottom: 1rem;}
debt-table table {width: 100%;border-collapse: collapse;}
debt-table th,debt-table td {padding: 0.75rem;border-bottom: 1px solid #e5e7eb;text-align: left;}
debt-table th {background:#f3f4f6;font-weight: 600;color:#374151;}
debt-table td select {padding: 0.25rem 0.5rem;border-radius: 4px;border: 1px solid #d1d5db;background:#fff;}
.debt-table button {margin-top: 0.5rem;padding: 0.5rem 1rem;background:#2563eb;color:#fff;border:none;border-radius: 4px;cursor:pointer;font-weight: 500;} .debt-table button:hover {background:#1d4ed8;}
.summary-cards {display: grid;grid-template-columns: repeat(auto-fit,minmax(200px,1fr));gap: 1rem;margin-bottom: 1.5rem;}
.card {background:#f9fafb;border-radius: 8px;padding: 1rem;text-align: center;border: 1px solid #e5e7eb;}
.card h3 {font-size: 0.85rem;color:#666;margin-bottom: 0.25rem;}
.card .highlight {font-size: 1.5rem;font-weight: 700;color:#1e40af;}
.slider-container {background:#f9fafb;border-radius: 8px;padding: 1rem;margin-bottom: 1rem;}
.slider-container label {display: block;margin-bottom: 0.5rem;font-weight: 500;}
.slider-container input[type="range"] {width: 100%;margin-bottom: 0.5rem;}
.range-hint {font-size: 0.85rem;color:#666;}
.settlement-calc {display: grid;grid-template-columns: repeat(auto-fit,minmax(150px,1fr));gap: 1rem;text-align: center;}
.calc-box {background:#fff;border-radius: 8px;padding: 1rem;border: 1px solid #e5e7eb;}
.calc-box h4 {font-size: 0.85rem;color:#666;margin-bottom: 0.25rem;}
.large-number {font-size: 1.75rem;font-weight: 700;color:#1e40af;}
.subtext {font-size: 0.75rem;color:#666;margin-top: 0.25rem;}
.script-layout {display: grid;grid-template-columns: 1fr;gap: 1rem;}
.script-text {background:#f9fafb;border-radius: 8px;padding: 1rem;}
#negotiation-script {background:#1e1e1e;color:#d4d4d4;padding: 1rem;border-radius: 6px;font-family:'SFMono-Regular',Consolas,'Liberation Mono',Menlo,monospace;font-size: 0.85rem;overflow-x: auto;white-space: pre-wrap;}
.script-actions {display: flex;gap: 0.5rem;flex-wrap: wrap;}
.script-actions button {padding: 0.5rem 1rem;background:#2563eb;color:#fff;border:none;border-radius: 4px;cursor:pointer;font-weight: 500;} .script-actions button:hover {background:#1d4ed8;}
.caution-note {background:#fef3c7;border: 1px solid #f59e0b;border-radius: 8px;padding: 0.75rem 1rem;margin-top: 1rem;font-size: 0.9rem;}
.reference-grid {display: grid;grid-template-columns: repeat(auto-fit,minmax(250px,1fr));gap: 1rem;}
.ref-card {background:#fff;border-radius: 8px;padding: 1rem;border: 1px solid #e5e7eb;}
.ref-card h3 {font-size: 1rem;color:#1e40af;margin-bottom: 0.5rem;}
.ref-card p {font-size: 0.8rem;color:#666;margin: 0.25rem 0;}
.tips-grid {display: grid;grid-template-columns: repeat(auto-fit,minmax(250px,1fr));gap: 1rem;}
.tip-card {background:#fff;border-radius: 8px;padding: 1rem;border: 1px solid #e5e7eb;}
.tip-card h4 {font-size: 0.95rem;color:#1e40af;margin-bottom: 0.25rem;}
.tip-card p {font-size: 0.85rem;color:#666;}
.assumptions-note {background:#f0fdf4;border: 1px solid #22c55e;border-radius: 8px;padding: 1rem;margin-top: 1rem;font-size: 0.85rem;}
.assumptions-note h4 {color:#15803d;margin-bottom: 0.25rem;}
footer {background:#f9fafb;border-top: 1px solid #e5e7eb;padding: 1rem 0;margin-top: 2rem;font-size: 0.85rem;}
footer a {color:#666;}
@media (min-width: 768px) {.script-layout {grid-template-columns: 1fr 1fr;}}
@media (min-width: 1024px) {.header h1 {font-size: 2rem;}}



/* Factory-injected deployment helpers. The AI owns the site design above this block. */
.ad-unit {
  width: min(100%, 720px);
  min-height: 120px;
  margin: 24px auto;
  display: block;
}

.legal-page {
  width: min(900px, calc(100% - 32px));
  margin: 40px auto;
}

.factory-fallback-nav {
  width: min(900px, calc(100% - 32px));
  margin: 24px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  font-size: 0.95rem;
}

.factory-fallback-nav a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}
