:root {
  --fp-primary: #3D7A9E;
  --fp-primary-hover: #336888;
  --fp-bg: #f4f7fa;
  --fp-surface: #ffffff;
  --fp-text: #2c3640;
  --fp-muted: #7a8490;
  --fp-border: #dce3ea;
  --fp-warning-bg: #f8efd8;
  --fp-warning: #E6C56E;
  --fp-focus: rgba(61, 122, 158, 0.25);
  --fp-radius: 12px;
  --fp-shadow: 0 2px 4px rgba(44, 54, 64, 0.06);
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--fp-text);
  background: var(--fp-bg);
  line-height: 1.55;
}
body { margin: 0; background: var(--fp-bg); color: var(--fp-text); }
.site-header, .site-footer, main { max-width: 920px; margin: auto; padding: 1.25rem 1.5rem; }
.site-header { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.brand { font-weight: 700; font-size: 1.15rem; text-decoration: none; color: var(--fp-primary); }
.site-header nav { display: flex; gap: 1rem; flex-wrap: wrap; }
.site-header a, .site-footer a { color: var(--fp-primary); }
main { padding-top: 0.5rem; padding-bottom: 2rem; }
a { color: var(--fp-primary); }
.muted { color: var(--fp-muted); font-size: 0.95rem; }
.card {
  background: var(--fp-surface);
  border: 1px solid var(--fp-border);
  border-radius: var(--fp-radius);
  box-shadow: var(--fp-shadow);
  padding: 1.5rem;
  max-width: 640px;
}
.card-title { margin-top: 0; }
.link-card { margin: 1rem auto; }
.table-card { max-width: none; overflow-x: auto; }
.alert, .notice {
  background: var(--fp-warning-bg);
  border: 1px solid var(--fp-warning);
  border-radius: 8px;
  padding: 1rem;
  margin: 1rem 0;
  max-width: 640px;
}
form.stacked, form { margin: 1.25rem 0; max-width: 560px; }
label { display: block; font-weight: 600; margin-top: 1rem; }
input, select {
  box-sizing: border-box;
  width: 100%;
  padding: 0.7rem;
  font: inherit;
  border: 1px solid var(--fp-border);
  border-radius: 6px;
  background: #fff;
}
input:focus-visible, select:focus-visible, button:focus-visible, summary:focus-visible, a:focus-visible {
  outline: 3px solid var(--fp-focus);
  outline-offset: 2px;
}
.btn, button {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.75rem 1.1rem;
  font: inherit;
  font-weight: 600;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
}
.btn-primary, button.btn-primary, form > button[type="submit"]:not(.btn-secondary) {
  background: var(--fp-primary);
  color: #fff;
}
.btn-primary:hover, button.btn-primary:hover { background: var(--fp-primary-hover); }
.btn-secondary, button.btn-secondary {
  background: transparent;
  color: var(--fp-primary);
  border: 1px solid var(--fp-primary);
}
.btn:disabled, button:disabled { opacity: 0.55; cursor: not-allowed; }
.phases {
  list-style: none;
  display: flex;
  gap: 0.5rem;
  padding: 0;
  margin: 1.25rem 0;
  flex-wrap: wrap;
}
.phase {
  flex: 1;
  min-width: 6.5rem;
  text-align: center;
  padding: 0.65rem 0.5rem;
  border-radius: 8px;
  border: 1px solid var(--fp-border);
  background: #f6f9fc;
  color: var(--fp-muted);
  font-weight: 600;
  font-size: 0.95rem;
}
.phase-current { background: #e4eef5; border-color: var(--fp-primary); color: var(--fp-primary); }
.phase-done { background: #e8f3ea; border-color: #8fbf98; color: #2f6b3a; }
.phase-todo { opacity: 0.7; }
.secondary-actions { margin-top: 1.25rem; }
.secondary-actions summary { cursor: pointer; color: var(--fp-primary); font-weight: 600; }
.advanced { margin-top: 1.5rem; border: 1px solid var(--fp-border); border-radius: 8px; padding: 0.75rem 1rem; }
.advanced summary { cursor: pointer; font-weight: 600; color: var(--fp-primary); }
fieldset { border: 0; margin: 0; padding: 0; }
legend { font-weight: 700; margin: 1.25rem 0 0.25rem; font-size: 1.05rem; }
table { width: 100%; border-collapse: collapse; }
td, th { text-align: left; vertical-align: top; padding: 0.8rem; border-bottom: 1px solid var(--fp-border); overflow-wrap: anywhere; }
.support { margin-top: 1.5rem; }
@media (max-width: 650px) {
  .site-header { display: block; }
  main, .site-header, .site-footer { padding-left: 1rem; padding-right: 1rem; }
  .card { padding: 1.1rem; }
  table { font-size: 0.85rem; }
  td, th { padding: 0.4rem; }
}

.field-help { margin: 0.15rem 0 0.75rem; font-size: 0.9rem; }
