.keigo-page { background: #fff; color: #202b32; }
.keigo-page * { letter-spacing: 0; }
.keigo-page [hidden] { display: none !important; }
.keigo-page .wrap { max-width: 1060px; }
.keigo-main { padding-bottom: 56px; }
.keigo-heading { padding: 32px 0 22px; }
.keigo-heading h1 { font-size: 30px; line-height: 1.3; margin: 8px 0; }
.keigo-heading > p:last-child { margin: 0; color: #55636a; }
.keigo-eyebrow { font-size: 12px; font-weight: 700; color: #146b60; margin: 0; }
.keigo-eyebrow span { margin-left: 10px; color: #68777c; font-weight: 400; }
.keigo-workspace { border: 1px solid #cdd8d6; border-radius: 6px; display: grid; grid-template-columns: minmax(0, 1fr) 260px; background: #fff; }
.keigo-compose { padding: 20px; min-width: 0; }
.keigo-page textarea, .keigo-page select, .keigo-page input[type="text"] { width: 100%; font: inherit; font-size: 14px; border: 1px solid #bdcbc9; border-radius: 4px; background: #fff; padding: 10px; color: #202b32; }
.keigo-page textarea { line-height: 1.9; min-height: 130px; }
.keigo-page :is(button, select, input, textarea, a, summary):focus-visible { outline: 3px solid #76bdb1; outline-offset: 3px; }
.keigo-page label, .keigo-page legend { font-size: 13px; font-weight: 700; }
.keigo-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.keigo-row h2 { margin: 0; font-size: 21px; }
.keigo-input-meta { font-size: 11px; color: #64746f; margin: 6px 0 16px; flex-wrap: wrap; }
.keigo-icon { display: grid; place-items: center; width: 34px; height: 34px; border: 0; background: transparent; cursor: pointer; border-radius: 4px; }
.keigo-icon:hover { background: #edf4f2; }
.keigo-samples { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 12px; }
.keigo-samples > span { color: #64746f; margin-right: 4px; }
.keigo-samples button { border: 0; border-bottom: 1px solid #b7cfca; background: transparent; color: #146b60; font: inherit; padding: 3px 1px; cursor: pointer; }
.keigo-context { margin: 0; border: 0; border-left: 1px solid #dde6e3; padding: 20px; min-width: 0; background: #f6f9f8; }
.keigo-context legend { float: left; width: 100%; margin-bottom: 10px; }
.keigo-context label { display: block; clear: both; margin: 10px 0 5px; color: #4d5f59; font-size: 12px; }
.keigo-context select { font-size: 13px; }
.keigo-submit-row { grid-column: 1 / -1; border-top: 1px solid #dde6e3; padding: 14px 20px; display: flex; align-items: center; gap: 20px; justify-content: space-between; }
.keigo-submit-row p { margin: 0; font-size: 12px; color: #63736c; max-width: 560px; }
.keigo-primary, .keigo-secondary { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 4px; font: inherit; font-size: 13px; font-weight: 700; padding: 11px 16px; min-height: 44px; cursor: pointer; overflow-wrap: anywhere; }
.keigo-primary { background: #146b60; color: #fff; border: 1px solid #146b60; }
.keigo-primary:hover { background: #0b5149; }
.keigo-primary img { filter: brightness(0) invert(1); }
.keigo-primary:disabled, .keigo-secondary:disabled { cursor: not-allowed; opacity: .5; }
.keigo-secondary { background: #fff; color: #205d54; border: 1px solid #bdcbc9; }
.keigo-error { grid-column: 1 / -1; margin: 0; padding: 12px 20px; color: #a12836; }
.keigo-results { padding: 28px 0; }
.keigo-meta { color: #62746c; font-size: 12px; overflow-wrap: anywhere; }
.keigo-notice { border-left: 3px solid #c9932b; background: #fff9ec; padding: 12px; font-size: 13px; }
.keigo-finding { border: 1px solid #d9e2de; border-radius: 4px; padding: 16px; margin-top: 12px; }
.keigo-finding h3 { margin: 8px 0; font-size: 15px; }
.keigo-finding p { margin: 6px 0; font-size: 13px; }
.keigo-finding blockquote { margin: 0; padding: 6px 10px; border-left: 3px solid #cc982f; background: #faf8f0; white-space: pre-wrap; overflow-wrap: anywhere; }
.keigo-finding .keigo-row { align-items: flex-start; }
.keigo-finding a { color: #286b61; font-size: 12px; }
.keigo-edit { margin-top: 26px; border-top: 1px solid #dae4df; padding-top: 20px; }
.keigo-edit h3 { margin: 0 0 14px; font-size: 17px; }
.keigo-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.keigo-compare > div { min-width: 0; }
.keigo-compare h4 { font-size: 13px; margin: 0 0 6px; }
.keigo-compare label { display: block; margin: 0 0 6px; }
.keigo-compare pre { font: inherit; font-size: 14px; line-height: 1.9; white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; padding: 10px; min-height: 130px; background: #f5f7f6; }
.keigo-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.keigo-feedback { padding: 20px 0 0; border-top: 1px solid #d9e2de; margin-top: 20px; }
.keigo-feedback h3 { font-size: 15px; }
#keigo-feedback-reason-panel { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
#keigo-feedback-reason { width: auto; max-width: 100%; }
.keigo-ai { padding: 22px 0; border-top: 1px solid #d9e2de; border-bottom: 1px solid #d9e2de; }
.keigo-ai h2 { font-size: 18px; margin: 6px 0; }
.keigo-ai p { font-size: 13px; color: #5b6d65; }
.keigo-ai label { display: block; margin: 12px 0 6px; }
.keigo-ai .keigo-consent { display: flex; align-items: flex-start; gap: 8px; font-weight: 400; }
.keigo-reading { padding-top: 32px; }
.keigo-reading h2 { font-size: 19px; margin: 0 0 14px; }
.keigo-reading p { font-size: 14px; line-height: 1.9; }
.keigo-page a { color: #24675e; overflow-wrap: anywhere; }
.keigo-examples { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-bottom: 10px; }
.keigo-examples h3 { font-size: 14px; margin: 0 0 8px; }
.keigo-examples p { font-size: 13px; margin: 6px 0; }
.keigo-reading details { border-top: 1px solid #d9e2de; padding: 14px 0; font-size: 14px; }
.keigo-reading summary { cursor: pointer; font-weight: 600; }
.keigo-guide { max-width: 800px !important; }
.keigo-guide h1 { font-size: 28px; }
.keigo-guide figure { margin: 24px 0; }
.keigo-guide figure img { width: 100%; height: auto; border: 1px solid #d9e2de; }
.keigo-guide figcaption { font-size: 12px; color: #62746c; }
.keigo-guide article { padding: 20px 0; border-bottom: 1px solid #d9e2de; }
.keigo-guide article h3 { font-size: 17px; }
.keigo-guide dt { font-size: 12px; font-weight: 700; color: #62746c; }
.keigo-guide dd { margin: 4px 0 12px; overflow-wrap: anywhere; }
@media (max-width: 650px) {
  .keigo-page .site-header .wrap { height: auto; min-height: 66px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; gap: 8px; }
  .keigo-page .brand { font-size: 16px; }
  .keigo-page .nav a { margin: 0 16px 0 0; font-size: 12px; }
  .keigo-main { padding-left: 16px; padding-right: 16px; }
  .keigo-workspace { grid-template-columns: minmax(0, 1fr); }
  .keigo-compose { padding: 14px; }
  .keigo-context { border-left: 0; border-top: 1px solid #dde6e3; padding: 14px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6px 12px; }
  .keigo-context legend { float: none; grid-column: 1 / -1; padding-top: 12px; margin: 0; }
  .keigo-context label { margin: 4px 0 0; }
  .keigo-context select { grid-row: auto; }
  .keigo-context label, .keigo-context select { grid-column: 1 / -1; }
  .keigo-submit-row { padding: 14px; flex-wrap: wrap; gap: 12px; }
  .keigo-submit-row button { width: 100%; }
  .keigo-compare, .keigo-examples { grid-template-columns: minmax(0, 1fr); }
  .keigo-row { flex-wrap: wrap; }
  .keigo-heading h1, .keigo-guide h1 { font-size: 26px; }
}
