:root {
  font-family: system-ui, sans-serif;
  color-scheme: light;
  background: #d9efff;
  color: #182235;
}
* { box-sizing: border-box; }
body {
  min-height: 100vh;
  margin: 0;
  display: grid;
  place-items: center;
  padding: 1rem;
}
.card {
  width: min(100%, 28rem);
  padding: 2.5rem 2rem;
  background: #f6fbff;
  border-radius: 1rem;
  box-shadow: 0 10px 35px rgb(0 0 0 / 0.08);
  text-align: center;
}
h1 { margin-top: 0; }
p { color: #526077; }
button {
  border: 0;
  border-radius: 0.6rem;
  padding: 0.8rem 1.2rem;
  background: #245ad4;
  color: white;
  font: inherit;
  cursor: pointer;
}
button:hover { background: #1746ac; }
button:focus-visible, input:focus-visible { outline: 3px solid #ffba49; outline-offset: 3px; }

:root[data-theme="dark"] {
  color-scheme: dark;
  background: #171717;
  color: #f5f5f5;
}
:root[data-theme="dark"] .card { background: #262626; }
:root[data-theme="dark"] p { color: #c4c4c4; }
#toggle-theme { margin: 0.5rem; }
.refresh-setting {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.6rem;
  margin: 0.45rem 0;
  font-size: 0.85rem;
}
.refresh-setting input { width: 1.2rem; height: 1.2rem; cursor: pointer; accent-color: #245ad4; }
.version { font-size: 0.8rem; margin-bottom: 0; }

@media (max-width: 600px) {
  body { min-height: 100svh; padding: 0.5rem; }
  .card {
    width: min(100%, 28rem);
    padding: clamp(0.65rem, 2.5svh, 1.25rem) 0.9rem;
    border-radius: 0.8rem;
  }
  h1 { font-size: clamp(1.3rem, 4.8vw, 1.65rem); margin: 0 0 0.35rem; }
  h2 { font-size: 1.05rem; margin: 0.65rem 0 0.3rem; }
  p { font-size: 0.85rem; line-height: 1.3; margin: 0.35rem 0; }
  button { padding: 0.6rem 0.75rem; font-size: 0.9rem; }
  #toggle-theme { margin: 0.25rem; }
  .refresh-setting { font-size: 0.78rem; margin: 0.3rem 0; }
  .version { margin-top: 0.55rem; font-size: 0.75rem; }
}
@media (max-width: 600px) and (max-height: 650px) {
  body { padding: 0.25rem; }
  .card { padding: 0.55rem 0.7rem; }
  h1 { font-size: 1.25rem; }
  h2 { margin-top: 0.4rem; }
  p { font-size: 0.78rem; line-height: 1.2; margin: 0.25rem 0; }
  button { padding: 0.5rem 0.6rem; }
  .refresh-setting { margin: 0.2rem 0; }
}

.update-status { font-size: 0.76rem; margin: 0.2rem 0 0.5rem; }

/* v1.9: full-viewport layout and responsive About panel */
body { display: block; padding: 0; }
.card { width: 100%; max-width: none; min-height: 100vh; min-height: 100svh; border-radius: 0; padding: clamp(1rem, 2.5vw, 3rem); display: flex; flex-direction: column; box-shadow: none; }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; border-bottom: 1px solid #cdd4e0; padding-bottom: 1rem; margin-bottom: 1rem; }
.site-name { font-weight: 750; letter-spacing: 0.12em; font-size: 0.9rem; }
#about-toggle { padding: 0.65rem 1rem; }
.main-content { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 0.55rem; }
.main-content h1 { font-size: clamp(2rem, 5vw, 5rem); margin: 0 0 0.4rem; }
.project-intro { max-width: 42rem; margin-top: 1.2rem; }
.about-details { width: min(100%, 58rem); margin: 1rem auto; padding: clamp(1rem, 2vw, 2rem); border: 1px solid #cdd4e0; border-radius: 0.8rem; text-align: left; }
.about-details[hidden] { display: none; }
.version { align-self: center; }
:root[data-theme="dark"] .topbar, :root[data-theme="dark"] .about-details { border-color: #505050; }
@media (max-width: 600px) { .card { padding: 0.75rem; } .topbar { margin-bottom: 0.5rem; } .site-name { font-size: 0.72rem; } #about-toggle { font-size: 0.78rem; padding: 0.55rem; } .main-content { gap: 0.25rem; } .main-content h1 { font-size: clamp(1.6rem, 7vw, 2.5rem); } .project-intro { margin-top: 0.5rem; } .about-details { padding: 0.75rem; } }

/* v2.0: compact desktop single-screen layout and header actions */
.card { height: 100svh; min-height: 0; overflow: hidden; padding: clamp(0.65rem, 1.4vw, 1.5rem); }
.topbar { flex: 0 0 auto; margin-bottom: 0.4rem; padding-bottom: 0.55rem; }
.toolbar { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 0.5rem; }
.toolbar button { margin: 0; padding: 0.55rem 0.85rem; font-size: 0.9rem; }
.main-content { min-height: 0; gap: 0.25rem; }
.main-content h1 { font-size: clamp(1.5rem, 2.6vw, 2.8rem); margin: 0; }
.project-intro { margin-top: 0.35rem; }
.project-intro h2 { margin: 0.2rem 0; font-size: 1.1rem; }
.project-intro p { margin: 0.2rem 0; }
.about-details:not([hidden]) { flex: 0 1 auto; min-height: 0; overflow: auto; margin: 0.4rem auto; padding: 0.8rem 1rem; }
.about-details h2 { margin: 0 0 0.35rem; }
.about-details p { margin: 0.35rem 0; }
.version { flex: 0 0 auto; margin: 0.25rem 0 0; }
@media (max-width: 700px), (max-height: 520px) { .card { min-height: 100svh; height: auto; overflow: visible; } .topbar { align-items: flex-start; } .toolbar { gap: 0.3rem; } .toolbar button { padding: 0.45rem 0.55rem; font-size: 0.78rem; } .main-content { padding: 1rem 0; } .about-details:not([hidden]) { overflow: visible; } }
