:root {
  color-scheme: light;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Noto Sans SC", sans-serif;
  color: #24313a;
  background: #f7f8f6;
  line-height: 1.65;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
a { color: #195977; text-underline-offset: 3px; }
button, input, textarea, select { font: inherit; }
button, .button-link { cursor: pointer; }
:focus-visible { outline: 3px solid #b36623; outline-offset: 3px; }
.site-header { background: #193848; color: #fff; padding: 1rem max(1.5rem, calc((100vw - 1080px) / 2)); display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; }
.site-header .brand { color: #fff; font-weight: 750; font-size: 1.1rem; text-decoration: none; white-space: nowrap; }
.site-header nav { display: flex; align-items: center; gap: 1.5rem; }
.site-header nav a, .site-header .text-button { color: #f1f7f8; }
.site-header form { margin: 0; }
main { width: min(100% - 2rem, 980px); margin: 3rem auto 6rem; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(1.75rem, 3vw, 2.25rem); line-height: 1.25; letter-spacing: -.025em; margin-bottom: .7rem; }
h2 { font-size: 1.25rem; line-height: 1.4; margin-bottom: .55rem; }
p { margin-bottom: .9rem; }
.eyebrow { font-size: .84rem; letter-spacing: .06em; font-weight: 750; color: #35647a; margin-bottom: .7rem; }
.muted, .subtle, .helper, .field-help { color: #52616b; }
.subtle { font-size: .9rem; margin-bottom: 0; }
.helper, .field-help { font-size: .92rem; }
.page-intro { margin-bottom: 2rem; }
.page-intro .muted { max-width: 46rem; }
.breadcrumb { font-size: .91rem; color: #64727a; margin-bottom: 2rem; }
.surface, .project-card, .review-action { background: #fff; border: 1px solid #d8e2e4; border-radius: 12px; padding: clamp(1.25rem, 3vw, 2rem); margin: 1.15rem 0; box-shadow: 0 4px 18px rgb(28 55 62 / 3%); }
.narrow { max-width: 500px; margin: 4rem auto; }
.login-panel { padding: 2.3rem; }
.project-list { display: grid; gap: 1rem; }
.project-card { margin: 0; display: flex; justify-content: space-between; align-items: center; gap: 2rem; }
.project-card h2 { overflow-wrap: anywhere; }
.project-card p:not(.subtle) { margin-bottom: .4rem; }
.hero { display: flex; justify-content: space-between; align-items: center; gap: 2rem; border-left: 4px solid #2a7288; }
.hero p:last-child { margin-bottom: 0; }
label { display: block; font-weight: 650; margin: 1.25rem 0 .35rem; }
input, textarea, select { width: 100%; border: 1px solid #9aaeb5; border-radius: 8px; padding: .75rem .9rem; background: #fff; color: #24313a; }
textarea { min-height: 8rem; resize: vertical; }
input:focus, textarea:focus, select:focus { border-color: #195977; }
.field-help { margin: 0 0 .65rem; }
.required { font-size: .8rem; font-weight: 600; color: #795126; }
button, .button-link { display: inline-block; border: 1px solid transparent; border-radius: 8px; padding: .7rem 1.15rem; font-weight: 650; text-decoration: none; line-height: 1.4; }
.primary, .button-link { background: #195977; color: #fff; }
.primary:hover, .button-link:hover { background: #103f58; color: #fff; }
button:disabled { opacity: .55; cursor: not-allowed; }
form .primary, .create-project .primary { margin-top: 1.2rem; }
.text-button, .secondary-button { background: transparent; color: #195977; border: 0; padding: .6rem .1rem; }
.text-button:hover, .secondary-button:hover { text-decoration: underline; }
.secondary-button { margin-left: 1rem; }
.secondary-line { margin: 1.5rem 0; }
.notice { padding: 1rem 1.15rem; border-radius: 8px; border-left: 4px solid #4d8391; background: #edf5f5; }
.error { color: #7e2b25; border-left-color: #b34b3c; background: #fff2ee; }
.review-notice { margin: 1.4rem 0; }
.flow { margin: 2rem 0; }
.flow-list { display: flex; list-style: none; gap: .7rem; padding: 0; margin: 1rem 0; }
.flow-list li { flex: 1; border-top: 3px solid #c9d3d5; padding: .8rem .3rem; color: #52616b; }
.flow-list li.done { border-color: #2a7288; color: #24313a; }
.flow-list span { font-weight: 750; color: #2a7288; padding-right: .3rem; }
.progress-steps { list-style: none; padding: 0; display: flex; gap: 1.5rem; flex-wrap: wrap; color: #52616b; }
.progress-steps .current { font-weight: 700; color: #195977; }
.secondary-detail { margin: 1.1rem 0; color: #41525b; }
details summary { cursor: pointer; color: #195977; font-weight: 600; }
details[open] { padding-bottom: .5rem; }
details[open] > summary { margin-bottom: 1rem; }
.material-detail { border-top: 1px solid #d8e2e4; padding-top: 1.5rem; margin-top: 2rem; }
.saved-input { border-top: 1px solid #e4eaeb; padding: 1rem 0; }
.preserved-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.result-summary { border-top: 1px solid #d8e2e4; }
.result-block { padding: 1.4rem 0; border-bottom: 1px solid #d8e2e4; }
.result-block h2 { color: #193848; }
.result-block li { margin-bottom: .45rem; }
.report-detail { margin-top: 2rem; }
.report-body { background: #f6f8f8; border-radius: 8px; padding: 1.2rem; max-height: 40rem; overflow: auto; }
pre { white-space: pre-wrap; overflow-wrap: anywhere; background: #f6f8f8; padding: 1rem; border-radius: 8px; max-height: 30rem; overflow: auto; }
.timeline { list-style: none; padding: 0; border-left: 2px solid #cbd9dd; margin-left: .45rem; }
.timeline > li { position: relative; padding: 0 0 2rem 1.6rem; }
.timeline > li::before { content: ''; width: .7rem; height: .7rem; background: #2a7288; border-radius: 50%; position: absolute; left: -.43rem; top: .5rem; }
.timeline h2 { margin: .2rem 0; }
dt { font-weight: 700; }
dd { margin: 0 0 .5rem; overflow-wrap: anywhere; }
@media (max-width: 680px) {
  .site-header { padding: .85rem 1rem; flex-wrap: wrap; }
  .site-header nav { gap: .8rem; flex-wrap: wrap; }
  main { width: min(100% - 1.4rem, 980px); margin: 1.6rem auto 3rem; }
  .project-card, .hero { align-items: flex-start; flex-direction: column; gap: .8rem; }
  .flow-list { display: block; }
  .flow-list li { margin-bottom: .6rem; }
  .progress-steps { display: block; }
  .progress-steps li { margin: .45rem 0; }
  .login-panel { margin: 1.5rem auto; padding: 1.5rem; }
  .secondary-button { display: block; margin: .5rem 0 0; }
}
