:root { color-scheme: light; --text: #18212b; --muted: #4d5b69; --border: #dce3e9; --green: #076c54; }
* { box-sizing: border-box; }
body { margin: 0; background: #f4f6f8; color: var(--text); font: 1.0625rem/1.65 Paperlogy, "Malgun Gothic", system-ui, sans-serif; word-break: keep-all; }
main { width: min(960px, calc(100% - 32px)); margin: 24px auto 0; }
h1, h2, legend { line-height: 1.2; letter-spacing: -.035em; margin: 0; }
h1 { font-size: clamp(2.45rem, 6vw, 3.65rem); }
h2, legend { font-size: clamp(1.35rem, 3vw, 1.65rem); font-weight: 800; }
p { margin: 10px 0 0; }
a { color: #144974; text-underline-offset: 3px; }
.hero { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 12px; background: #fff; padding: 24px 30px; overflow: hidden; border: 1px solid var(--border); border-radius: 20px; }
.hero img { width: 100%; height: auto; display: block; border-radius: 12px; }
.hero p:not(.brand), .panel > p:not(.brand), footer { color: var(--muted); }
.brand { margin: 0 0 8px; font-size: .9rem; font-weight: 800; letter-spacing: .07em; color: var(--green); }
.panel { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: clamp(16px, 4vw, 28px); margin-top: 16px; }
.panel > .privacy-note { margin: 0 0 20px; font-size: .94rem; }
.examples, .fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.examples { margin-top: 14px; }
.status:empty { display: none; }
button, select { font: inherit; color: inherit; min-height: 52px; border-radius: 9px; border: 1px solid #aebbc7; }
button { cursor: pointer; background: #fff; padding: 8px 14px; font-weight: 750; }
button:hover { background: #edf3f7; }
button:focus-visible, select:focus-visible, a:focus-visible { outline: 3px solid #1a6396; outline-offset: 3px; }
.primary { background: var(--green); color: #fff; border-color: var(--green); }
.primary:hover { background: #055140; }
fieldset { min-width: 0; margin: 0 0 20px; border: 0; padding: 0 0 20px; border-bottom: 1px solid var(--border); }
.fields { margin-top: 14px; }
label { display: grid; align-content: end; gap: 5px; min-width: 0; font-weight: 700; }
label small { color: var(--muted); font-size: .875rem; font-weight: 400; }
select { appearance: none; width: 100%; padding: 8px 34px 8px 10px; font-weight: 500; background: #fbfcfd url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m3 6 5 5 5-5' fill='none' stroke='%234d5b69' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 10px center; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.progress { margin: 0; color: var(--muted); font-size: .9rem; }
.result { border-top: 4px solid var(--green); scroll-margin-top: 16px; }
.result ul { margin: 14px 0; padding-left: 23px; }
.result li + li { margin-top: 6px; }
footer { padding: 16px 0 24px; font-size: .94rem; }
.credit { display: block; margin-top: 6px; }
@media (max-width: 650px) {
  html { scroll-padding-bottom: 112px; }
  main { width: calc(100% - 24px); margin-top: 12px; }
  .hero { grid-template-columns: minmax(0, 1fr) 29%; gap: 8px; padding: 14px; border-radius: 16px; }
  .hero h1 { font-size: clamp(1.5rem, 6vw, 2rem); }
  .hero p:not(.brand) { font-size: .94rem; line-height: 1.5; margin-top: 7px; }
  .hero img { max-height: 140px; object-fit: contain; }
  .panel { margin-top: 12px; padding: 14px; }
  .examples { gap: 8px; }
  .examples button { padding-inline: 8px; overflow-wrap: anywhere; }
  .fields { grid-template-columns: 1fr; }
  .actions { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); position: sticky; bottom: 0; z-index: 2; gap: 5px 8px; padding: 7px 0 max(8px, env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--border); }
  .actions button { padding-inline: 6px; }
  .progress { grid-column: 1 / -1; }
}
