:root {
  color: #26364a;
  background: #f1f4f8;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft Yahei", sans-serif;
  font-size: 16px;
  line-height: 1.4;
}
* { box-sizing: border-box; }
body { margin: 0; background: #f1f4f8; }
.site-header { width: 100%; margin: 0 auto; padding: 18px 16px 16px; color: #fff; background: #2774c6; }
h1 { margin: 0 0 12px; font-size: 24px; line-height: 1.2; }
#search-form { display: flex; gap: 8px; }
#search-form label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
#search-input { min-width: 0; flex: 1; min-height: 42px; padding: 8px 12px; color: #26364a; background: #fff; border: 1px solid #d7e1ed; border-radius: 3px; font: inherit; }
#search-form button { min-width: 58px; min-height: 42px; padding: 8px 12px; color: #1e5c9d; background: #fff; border: 0; border-radius: 3px; font: inherit; cursor: pointer; }
main { width: 100%; max-width: 760px; margin: 0 auto; background: #fff; }
main > section { padding: 12px 12px 10px; border-bottom: 1px solid #e2e8f0; }
main > section > a, main > section > div > a { min-height: 40px; color: #2c4c6c; text-decoration: none; }
a { display: inline-flex; align-items: center; gap: 5px; min-width: 44px; min-height: 44px; padding: 4px; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid #fff; outline-offset: 2px; box-shadow: 0 0 0 5px #183b67; }
img { display: block; object-fit: contain; }
[data-section="common"] { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2px 4px; }
[data-section="common"] a { flex-direction: column; justify-content: center; gap: 2px; overflow: hidden; white-space: nowrap; font-size: 13px; }
[data-section="common"] img { width: 16px; height: 16px; }
[data-section="quick"] { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 5px; }
[data-section="quick"] a { flex-direction: column; justify-content: center; gap: 2px; min-height: 64px; text-align: center; font-size: 12px; }
[data-section="quick"] img { width: 30px; height: 30px; }
[data-section="cool"] { padding-top: 8px; padding-bottom: 8px; }
[data-section="cool"] > div { display: flex; align-items: center; min-height: 34px; gap: 4px; overflow: hidden; white-space: nowrap; }
[data-section="cool"] .cool-label { flex: 0 0 auto; padding: 2px 6px; color: #2774c6; background: #eaf3fc; border-radius: 2px; font-size: 12px; }
[data-section="cool"] > div > a:first-of-type { color: #2774c6; font-weight: 600; }
[data-section="cool"] > div > a { min-height: 32px; font-size: 13px; }
[data-section="cool"] > div > a:last-child { color: #24527a; }
[data-section="tools"] { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
[data-section="tools"] a { flex-direction: column; justify-content: center; gap: 2px; text-align: center; font-size: 12px; }
[data-section="tools"] img { width: 28px; height: 28px; }
#config-error { max-width: 760px; margin: 0 auto; padding: 16px; color: #a33; background: #fff; }
footer { width: 100%; max-width: 760px; min-height: 20px; margin: 0 auto; background: #fff; }
@media (min-width: 768px) {
  .site-header { max-width: 760px; padding: 22px 20px 18px; }
  [data-section="common"] { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  [data-section="quick"] { grid-template-columns: repeat(8, minmax(0, 1fr)); }
}
