:root { font-family: Arial, Helvetica, sans-serif; color: #111; background: #fff; font-synthesis: none; }
* { box-sizing: border-box; }
body { margin: 0; padding: 15px 13px; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .6; }
[hidden] { display: none !important; }
.frame { border: 2px solid #153342; min-height: calc(100dvh - 30px); padding: 30px 36px; }
header { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
nav { font-size: 20px; }
.text-button { border: 0; padding: 0; background: transparent; color: #111; text-decoration: underline; text-underline-offset: 2px; }
.text-button.active { text-decoration: none; cursor: default; }
.logout { color: #53616a; font-size: 13px; }
.primary { border: 2px solid #153342; background: #1b6582; color: #fff; padding: 8px 9px; font-size: 13px; font-weight: 600; min-height: 36px; }
.primary:hover { background: #164f67; }
.secondary { border: 1px solid #87949b; padding: 9px 14px; background: #fff; color: #111; }
input { border: 2px solid #153342; border-radius: 0; height: 36px; padding: 3px 10px; min-width: 0; }
:focus-visible { outline: 3px solid #78b5d0; outline-offset: 3px; }
.check-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
#word { width: 161px; text-align: center; font-size: 20px; }
#word::placeholder { font-size: 14px; }
#clear { width: 89px; }
#word-status { margin: 0 0 0 8px; font-size: 20px; overflow-wrap: anywhere; }
.registered { color: #287d17; }
.unregistered, .error { color: #d00000; }
#notice { font-size: 14px; margin: 12px 0 0; }
#notice:empty { display: none; }
.search-panel { border: 2px solid #153342; margin-top: 20px; min-height: 385px; padding: 22px 30px; }
.search-header { display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
h2 { font-size: 19px; font-weight: 500; margin: 0; }
a { color: #174ea6; }
.search-header a { font-size: 13px; }
.muted { color: #616a70; font-size: 14px; line-height: 1.6; }
.search-result { max-width: 730px; margin: 22px 0; }
.search-result .url { display: block; font-size: 12px; color: #47535a; overflow-wrap: anywhere; margin-bottom: 5px; }
.search-result a { font-size: 19px; text-decoration: none; overflow-wrap: anywhere; }
.search-result a:hover { text-decoration: underline; }
.search-result p { font-size: 14px; line-height: 1.6; margin: 7px 0; overflow-wrap: anywhere; }
.alphabet { display: flex; flex-wrap: wrap; gap: 0; margin: 34px 30px 30px; font-size: 20px; line-height: 1.6; }
.alphabet button { min-width: 19px; }
.alphabet .separator { margin: 0 3px; }
.alphabet .active { color: #d00000; }
.table-scroll { overflow-x: auto; margin: 0 20px; }
table { border-collapse: collapse; width: 100%; table-layout: fixed; font-size: 20px; }
td { border: 1px solid #333; padding: 5px 8px; vertical-align: top; overflow-wrap: anywhere; }
.list-message { margin: 0 20px; font-size: 14px; }
.pagination { display: flex; justify-content: center; gap: 22px; align-items: center; font-size: 14px; margin-top: 24px; }
.login-form { max-width: 320px; margin: 55px auto; display: flex; flex-direction: column; gap: 12px; }
.login-form h1 { font-size: 28px; font-weight: 500; margin: 0; }
.login-form .muted { margin: 0 0 12px; }
.login-form label { font-size: 14px; }
.login-form input { height: 40px; }
.login-form .primary { margin-top: 10px; }
#login-error:empty { display: none; }
dialog { border: 2px solid #153342; padding: 28px; max-width: min(440px, calc(100vw - 32px)); }
dialog::backdrop { background: rgb(10 27 38 / 30%); }
dialog p { overflow-wrap: anywhere; line-height: 1.5; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (max-width: 700px) {
  body { padding: 10px; }
  .frame { min-height: calc(100dvh - 20px); padding: 24px 18px; }
  header { gap: 12px; }
  nav { font-size: 18px; }
  .check-row { gap: 12px; }
  #word { flex: 1; min-width: 140px; }
  #word-status { margin: 4px 0; font-size: 18px; }
  .search-panel { padding: 20px 16px; }
  .alphabet { margin: 24px 0; gap: 4px 0; }
  .alphabet button { min-width: 24px; min-height: 32px; }
  .table-scroll { margin: 0; }
  table { min-width: 660px; font-size: 17px; }
  .login-form { margin: 40px auto; }
}
