:root {
  color-scheme: light;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Noto Sans TC", sans-serif;
  line-height: 1.5;
  color: #182730;
  background: #f5f7f7;
}

* { box-sizing: border-box; }
body { margin: 0; }
.shell { width: min(100% - 2rem, 72rem); margin-inline: auto; }
.topbar { background: #17343b; color: #fff; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; min-height: 3.75rem; gap: 1rem; }
.topbar-subtitle { margin-left: .75rem; color: #d0e2e1; }
.topbar .quiet { color: #fff; border-color: #9db6b5; }
main { padding-block: 2rem 4rem; }
h1, h2, h3 { line-height: 1.25; }
h1 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0 0 .5rem; }
h2 { font-size: 1.4rem; margin: 0 0 .5rem; }
h3 { font-size: 1.05rem; margin: 0 0 1rem; }
p { margin: .25rem 0 1rem; }
section { margin-bottom: 3rem; scroll-margin-top: 1rem; }
.login-panel { max-width: 30rem; padding: 2rem; background: #fff; border: 1px solid #d1dddd; }
.page-heading, .section-heading { display: flex; justify-content: space-between; align-items: start; gap: 1rem; }
.account-label { color: #38545b; white-space: nowrap; }
.section-nav { display: flex; flex-wrap: wrap; gap: 1.25rem; padding: .75rem 0; margin: 1.5rem 0 2.5rem; border-block: 1px solid #c8d7d8; }
a { color: #075b62; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid #ca7b19; outline-offset: 2px; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; align-items: start; margin: 1.5rem 0; }
.panel { background: #fff; border: 1px solid #d1dddd; padding: 1.5rem; }
label { display: block; font-weight: 600; margin: .75rem 0 .25rem; }
input, select { display: block; width: 100%; padding: .6rem .65rem; border: 1px solid #778f93; border-radius: .2rem; font: inherit; background: #fff; color: inherit; }
select[multiple] { min-height: 12rem; }
button { margin-top: 1.25rem; padding: .6rem 1rem; border: 1px solid #075b62; border-radius: .2rem; background: #075b62; color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
button:hover { background: #06474d; }
.login-link { display: inline-block; padding: .6rem 1rem; border: 1px solid #075b62; border-radius: .2rem; background: #075b62; color: #fff; font-weight: 600; text-decoration: none; }
.login-link:hover { background: #06474d; }
button.quiet { margin: 0; background: transparent; color: #075b62; }
button.quiet:hover { background: #e5eeee; }
button.danger { background: #fff; color: #9d2a2a; border-color: #9d2a2a; margin: 0; }
button.danger:hover { background: #fff2f2; }
.hint { color: #48636a; font-size: .91rem; margin-top: .75rem; }
.message { min-height: 1.75rem; margin-bottom: 1rem; font-weight: 600; }
.message.error { color: #a52828; }
.message.success { color: #08604f; }
.records { list-style: none; padding: 0; margin: 1rem 0; border-top: 1px solid #ccd8d9; }
.records li { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .85rem .25rem; border-bottom: 1px solid #ccd8d9; }
.record-main { min-width: 0; overflow-wrap: anywhere; }
.record-detail { display: block; color: #48636a; font-size: .9rem; }
.checkbox-list { max-height: 13rem; overflow: auto; }
.checkbox-list label { display: flex; gap: .5rem; align-items: start; font-weight: 400; }
.checkbox-list input { width: auto; margin: .4rem 0 0; }
fieldset { border: 1px solid #b8ccce; margin: 1rem 0; }
legend { font-weight: 600; }
[hidden] { display: none !important; }

@media (max-width: 48rem) {
  .grid { grid-template-columns: 1fr; }
  .page-heading { flex-direction: column; }
  .records li { align-items: start; flex-direction: column; }
}
