:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --ink: #142033;
  --muted: #5a6b85;
  --line: #d8e0ec;
  --brand: #1f4f8b;
  --brand-ink: #ffffff;
  --accent: #e8f0fb;
  --good: #1b6a4a;
  --warn: #8a4a00;
  --bad: #8a1f1f;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(20,32,51,0.06), 0 6px 18px rgba(20,32,51,0.06);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  font-size: 16px;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--brand);
  font-weight: 700;
  font-size: 1.05rem;
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--brand);
}
.site-nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.site-nav a {
  color: var(--ink);
  font-weight: 500;
  font-size: 0.95rem;
}

main { padding: 32px 0 64px; }

.intro h1 {
  font-size: 2rem;
  line-height: 1.2;
  margin: 0 0 12px;
  color: var(--ink);
}
.intro .lead {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 720px;
  margin: 0 0 12px;
}
.intro .meta {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0;
}
.dot { margin: 0 6px; opacity: 0.6; }

.section-head h2 {
  font-size: 1.4rem;
  margin: 0 0 6px;
}
.section-head p {
  color: var(--muted);
  margin: 0 0 16px;
  max-width: 720px;
}

section {
  margin-top: 40px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.table-wrap { overflow-x: auto; }
.settlement-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.settlement-table caption { display: none; }
.settlement-table th, .settlement-table td {
  text-align: left;
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.settlement-table thead th {
  background: var(--accent);
  color: var(--brand);
  font-weight: 600;
}
.settlement-table tbody tr:hover { background: #f9fbfd; }
.link-btn {
  background: transparent;
  border: 1px solid var(--brand);
  color: var(--brand);
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 0.85rem;
  cursor: pointer;
}
.link-btn:hover { background: var(--accent); }

.hint {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 12px 0 0;
}

.workspace-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
}
@media (max-width: 900px) {
  .workspace-grid { grid-template-columns: 1fr; }
}

.claim-form fieldset {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  margin: 0 0 16px;
  background: #fbfbfd;
}
.claim-form legend {
  font-weight: 600;
  color: var(--brand);
  padding: 0 6px;
}
.claim-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
  font-size: 0.95rem;
}
.claim-form label span {
  font-weight: 500;
  color: var(--ink);
}
.claim-form input[type="text"],
.claim-form input[type="url"],
.claim-form input[type="date"],
.claim-form select,
.claim-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.95rem;
  background: #fff;
  color: var(--ink);
  font-family: inherit;
}
.claim-form input:focus,
.claim-form select:focus,
.claim-form textarea:focus {
  outline: 2px solid var(--brand);
  outline-offset: 1px;
  border-color: var(--brand);
}
.claim-form .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 520px) {
  .claim-form .row { grid-template-columns: 1fr; }
}
.claim-form .checkbox {
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--muted);
}
.claim-form .checkbox input { margin-top: 3px; }

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}
.btn {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.95rem;
  cursor: pointer;
  font-weight: 500;
}
.btn:hover { background: #f1f4f9; }
.btn.primary {
  background: var(--brand);
  color: var(--brand-ink);
  border-color: var(--brand);
}
.btn.primary:hover { filter: brightness(0.95); }
.btn.ghost { background: transparent; }

.save-status {
  margin: 10px 0 0;
  font-size: 0.9rem;
  color: var(--good);
  min-height: 1.2em;
}

.checklist {
  background: #fbfbfd;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  position: sticky;
  top: 80px;
}
.checklist-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.checklist h3 { margin: 0; font-size: 1.1rem; }
.checklist h4 { margin: 0 0 6px; font-size: 1rem; color: var(--brand); }
.badge {
  background: var(--accent);
  color: var(--brand);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
}
.steps {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.step {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  font-size: 0.95rem;
}
.step.done {
  background: #eef5f1;
  border-color: #cfe3d7;
  color: var(--good);
}
.step-box {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 2px solid var(--line);
  background: #fff;
  flex-shrink: 0;
  margin-top: 2px;
}
.step.done .step-box {
  background: var(--good);
  border-color: var(--good);
  position: relative;
}
.step.done .step-box::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 1px;
  width: 6px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.doc-reminder, .deadline-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  margin-top: 12px;
}
.doc-reminder ul {
  margin: 6px 0 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 0.9rem;
}
.deadline-card p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.deadline-card strong { color: var(--ink); }
.deadline-card.urgent { border-color: #e7c6c6; background: #fff6f6; }
.deadline-card.urgent h4 { color: var(--bad); }

.mistake-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.mistake-list li {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fff;
}
.mistake-list h3 {
  margin: 0 0 6px;
  font-size: 1rem;
  color: var(--warn);
}
.mistake-list p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.faq dl { margin: 0; }
.faq dt {
  font-weight: 600;
  margin-top: 14px;
  color: var(--ink);
}
.faq dd {
  margin: 4px 0 0;
  color: var(--muted);
}

.scenario-list {
  margin: 0;
  padding-left: 22px;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.scenario-list strong { color: var(--ink); }

.site-footer {
  margin-top: 48px;
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding: 24px 0;
  color: var(--muted);
  font-size: 0.9rem;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-inner nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.muted { color: var(--muted); margin: 8px 0 0; }

@media (max-width: 700px) {
  .intro h1 { font-size: 1.6rem; }
  .site-nav { gap: 12px; }
  section { padding: 18px; }
  .checklist { position: static; }
}



/* 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;
}
