
    * { box-sizing: border-box; }
    :root { color-scheme: light; background: #f6f5ef; color: #19362e; font: 16px/1.6 'Noto Sans Thai','Tahoma',sans-serif; }
    body { margin: 0; }
    main { max-width: 1140px; margin: 0 auto; padding: 28px clamp(16px, 4vw, 56px) 50px; }
    a { color: #145941; text-underline-offset: 3px; }
    a:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid #a9762b; outline-offset: 3px; }
    header { padding: 22px 0; border-bottom: 2px solid #365a4e; }
    h1, h2, h3, p { margin: 0; }
    h1 { font-size: clamp(1.85rem, 5vw, 2.65rem); line-height: 1.4; }
    header p { margin-top: 4px; color: #4b5f55; }
    .controls { display: grid; grid-template-columns: 1fr 1fr minmax(8.5rem,auto); gap: 12px; padding: 20px 0 14px; }
    label { display: grid; gap: 4px; font-weight: 700; }
    input, select { min-width: 0; width: 100%; padding: 9px 12px; border: 1px solid #9aa99d; border-radius: 5px; background: white; color: #19362e; font: inherit; font-weight: 400; }
    nav { display: flex; flex-wrap: wrap; gap: .3rem 1.5rem; }
    section { margin-top: 30px; scroll-margin-top: 8px; }
    h2 { border-bottom: 1px solid #afbeb4; padding-bottom: 5px; font-size: 1.35rem; }
    h2 span { color: #53665b; font-size: .93rem; font-weight: 400; margin-left: .5rem; white-space: nowrap; }
    .cards { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px 24px; margin-top: 15px; }
    .ident { display: flex; gap: .5rem; justify-content: space-between; align-items: baseline; margin: 0 0 4px; }
    .ident span { font-size: .76rem; color: #53665b; }
    h3 { font-size: 1.05rem; }
    .face { font-family: var(--face),'Noto Sans Thai',sans-serif; font-synthesis: none; min-height: 103px; overflow-wrap: anywhere; text-align: center; border: 1px solid #bcc4bb; border-bottom: 4px solid #2d5042;
      background: linear-gradient(106deg,#e5e6de,#fcfcf8 49%,#e5e7e1); color: #172d28; padding: 12px 14px; display: grid; align-content: center; }
    .name { font-size: clamp(1.38rem, 2.65vw, 2.05rem); line-height: 1.65; font-weight: var(--weight, 700); }
    .single .name { font-weight: 400; }
    .english { font-size: 1rem; font-weight: 400; line-height: 1.55; }
    footer { margin-top: 32px; border-top: 1px solid #afbeb4; padding-top: 15px; }
    #status:empty { display: none; }
    @media (max-width: 700px) {
      .controls { grid-template-columns: minmax(0,1fr) minmax(8rem,auto); }
      .controls label:first-child { grid-column: 1 / -1; }
      .cards { grid-template-columns: minmax(0,1fr); }
      .name { font-size: 1.65rem; }
    }
    @media print {
      body { background: white; font-size: 11pt; }
      main { padding: 0; }
      .controls, nav, .back, footer { display: none; }
      article { break-inside: avoid; }
      .cards { display: grid; grid-template-columns: repeat(2,1fr); }
    }
  