
    :root { --primary: #006a4e; }
    * { box-sizing: border-box; }
    body { font-family: system-ui, -apple-system, sans-serif; background: #f5f5f5; margin: 0; padding: 12px; }
    .container { max-width: 900px; margin: 10px auto; background: #fff; border-radius: 8px; box-shadow: 0 2px 12px rgba(0,0,0,.08); padding: 20px; }
    h1 { text-align: center; color: var(--primary); margin: 0 0 18px; font-size: 1.4rem; }
    .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
    .form-full { grid-column: 1 / -1; }
    label { display: block; margin-bottom: 5px; font-weight: 600; font-size: 0.92rem; }
    input, select { width: 100%; padding: 10px 12px; border: 1px solid #ddd; border-radius: 6px; font-size: 1rem; }
    .captcha-row { display: flex; gap: 8px; align-items: flex-end; }
    .captcha-row input { flex: 1; }
    .captcha-wrapper { position: relative; height: 46px; min-width: 120px; }
    .captcha-img { height: 46px; border: 1px solid #ddd; border-radius: 6px; cursor: pointer; background: #f9f9f9; display: block; }
    .captcha-loading { 
      position: absolute; inset: 0; display: none; align-items: center; justify-content: center; 
      background: #f9f9f9; border: 1px solid #ddd; border-radius: 6px; font-size: 1.4rem; color: #666; font-weight: bold;
    }
    .refresh-btn { padding: 10px 14px; background: #555; color: white; border: none; border-radius: 6px; cursor: pointer; font-size: 0.9rem; min-width: 80px; }
    button.main-btn { width: 100%; padding: 12px; background: var(--primary); color: #fff; border: none; border-radius: 6px; font-size: 1.05rem; font-weight: 600; cursor: pointer; margin-top: 10px; }
    button.main-btn:disabled { opacity: .7; }
    .source-text { text-align: center; color: #666; font-size: 0.85rem; margin-top: 8px; }
    .error { color: #c0392b; margin-top: 10px; text-align: center; }
    .hidden { display: none; }
    .result-section { margin-top: 10px; }
    .result-header { text-align: center; margin-bottom: 12px; }
    .result-header h2 { margin: 0 0 6px; font-size: 1.25rem; }
    .actions { text-align: center; margin: 14px 0; }
    .actions button { margin: 0 4px; padding: 8px 16px; border: none; border-radius: 6px; cursor: pointer; font-weight: 600; }
    .btn-search { background: var(--primary); color: white; }
    .btn-print { background: #17a2b8; color: white; }
    .branding { text-align: center; color: #555; font-size: 0.9rem; margin: 10px 0; font-weight: 500; }
    .branding a { color: var(--primary); font-weight: 600; text-decoration: none; }
    .branding a:hover { text-decoration: underline; }
    table { width: 100%; border-collapse: collapse; margin: 10px 0; font-size: 0.92rem; }
    th, td { border: 1px solid #ddd; padding: 7px 8px; text-align: left; }
    th { background: var(--primary); color: white; }
    .summary-table th { width: 140px; background: #f8f9fa; color: #333; font-weight: 600; }
    .fail { color: #c0392b; font-weight: bold; }
    .pass { color: #27ae60; font-weight: bold; }
    #captchaSection { display: none; }
    @media (max-width: 640px) {
      .form-grid { grid-template-columns: 1fr; }
      .container { padding: 14px; }
      table { font-size: 0.82rem; }
      th, td { padding: 6px 5px; }
      .summary-table th { width: auto; }
    }
  
button:disabled {opacity:.6;cursor:wait} #captchaSection {display:block} .captcha-row {align-items:center;flex-wrap:wrap} .captcha-row input {min-width:140px} #captchaImg {max-width:100%;height:60px} #error {white-space:pre-wrap;overflow-wrap:anywhere} @media print {#formSection,.actions,#error,.source-text{display:none} body{background:white}.container{box-shadow:none;max-width:none}}

[hidden] {display:none!important} .captcha-wrapper {height:60px}

/* Result card v1.0.3 — form and CAPTCHA styles remain unchanged. */
#resultContainer .result-header {text-align:center;margin-bottom:12px}
#resultContainer .result-header h2 {font-size:1.25rem;margin:0 0 6px}
#resultContainer .summary-table th {font-weight:400}
#resultContainer .summary-table .summary-title {background:var(--primary);color:#fff;font-weight:600;width:auto}
#resultContainer .subject-heading {text-align:center;font-size:1.17rem;margin:18px 0 10px}
#resultContainer .subject-table th:nth-child(1) {width:18.5%}
#resultContainer .subject-table th:nth-child(2) {width:61%}
#resultContainer .subject-table th:nth-child(3) {width:10.25%}
#resultContainer .subject-table th:nth-child(4) {width:10.25%}
#resultContainer td {overflow-wrap:anywhere}
@media(max-width:640px) {
  #resultContainer .summary-table th {width:auto}
  #resultContainer .subject-table th {font-size:.76rem}
}

/* The widget grows to fit this card; direct iframe embeds retain scrolling. */
body.embed-page {background:transparent;padding:8px}
.embed-page .container {margin:0 auto}
