:root {
  --ink: #192c42;
  --muted: #69788a;
  --line: #e1e7ef;
  --bg: #f3f6fb;
  --blue: #245ae5;
  --nav: #152b44;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Arial, "Noto Sans TC", sans-serif;
  font-size: 16px;
  line-height: 1.55;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 4px;
}
button {
  cursor: pointer;
  transition: 0.15s;
  border: 1px solid var(--line);
  background: white;
  border-radius: 8px;
  padding: 9px 14px;
  color: var(--ink);
}
button:hover {
  border-color: var(--blue);
  color: var(--blue);
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
button.primary {
  background: var(--blue);
  color: white;
  border-color: var(--blue);
}
.shell {
  display: flex;
  min-height: 100vh;
}
aside {
  width: 226px;
  position: fixed;
  inset: 0 auto 0 0;
  background: var(--nav);
  color: white;
  padding: 30px 18px;
  display: flex;
  flex-direction: column;
}
.brand {
  display: flex;
  gap: 12px;
  font-size: 23px;
  font-weight: 700;
  align-items: center;
  padding: 0 10px 35px;
}
.brand > b {
  background: #386bf3;
  width: 43px;
  height: 43px;
  border-radius: 12px;
  display: grid;
  place-items: center;
}
.brand small {
  display: block;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 2px;
  color: #b5c6db;
}
.brand + nav {
  display: grid;
  gap: 6px;
}
nav button {
  display: flex;
  align-items: center;
  gap: 14px;
  background: transparent;
  border: 0;
  color: #bfd0e5;
  text-align: left;
  padding: 12px 15px;
}
nav button:hover,
nav button.active {
  background: #294260;
  color: white;
}
nav button.active {
  box-shadow: inset 3px 0 #75a6ff;
}
.sidebar-foot {
  margin-top: auto;
  font-size: 12px;
  color: #a6bad2;
  padding: 30px 10px 0;
  line-height: 2;
}
main {
  margin-left: 226px;
  width: calc(100% - 226px);
}
header {
  height: 76px;
  background: white;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 38px;
  font-size: 14px;
}
.content {
  max-width: 1500px;
  margin: auto;
  padding: 35px 38px 60px;
}
.heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 28px;
}
h1 {
  font-size: 30px;
  letter-spacing: -1px;
  line-height: 1.3;
  margin: 7px 0 12px;
}
h2 {
  font-size: 19px;
  margin: 0;
}
h3 {
  font-size: 17px;
  margin: 0;
}
.eyebrow {
  letter-spacing: 2px;
  font-size: 12px;
  font-weight: 700;
  color: var(--blue);
  margin: 0;
}
.muted {
  color: var(--muted);
  font-size: 14px;
  margin: 4px 0;
}
.badge {
  display: inline-block;
  padding: 4px 9px;
  font-size: 13px;
  border-radius: 6px;
  color: #2a56a3;
  background: #eaf0ff;
  white-space: nowrap;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 25px;
}
.stats article {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px;
}
.stats span,
.stats small {
  display: block;
  color: var(--muted);
  font-size: 14px;
}
.stats strong {
  display: block;
  font-size: 32px;
  margin: 10px 0 4px;
  font-variant-numeric: tabular-nums;
}
section {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 22px;
  padding: 24px;
}
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}
.task-row {
  display: flex;
  gap: 16px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding: 17px 0;
}
.task-num {
  color: var(--blue);
  font-size: 14px;
  background: #eef3ff;
  border-radius: 7px;
  padding: 7px;
}
.toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
input,
select,
textarea {
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  padding: 9px 11px;
  background: white;
  color: var(--ink);
  max-width: 100%;
}
textarea {
  min-height: 85px;
  width: 100%;
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap;
  text-align: left;
  font-size: 14px;
}
th {
  font-weight: 500;
  color: var(--muted);
  background: #f7f9fc;
}
td,
th {
  padding: 14px 13px;
  border-bottom: 1px solid var(--line);
}
td.wrap {
  white-space: normal;
  min-width: 200px;
}
td button {
  font-size: 14px;
  padding: 5px 9px;
  margin: 2px;
}
.empty {
  text-align: center;
  padding: 45px 20px;
  color: var(--muted);
}
.empty b {
  display: block;
  color: var(--ink);
  font-size: 18px;
  margin-bottom: 8px;
}
.grid2 {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 20px;
}
.actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.danger {
  color: #b93232;
  background: #fff0f0;
}
.good {
  background: #e7f6ee;
  color: #197445;
}
.warning {
  background: #fff3df;
  color: #936014;
}
.notice {
  padding: 13px 16px;
  background: #eaf0ff;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 20px;
}
.error {
  background: #ffebeb;
  color: #a42222;
}
.progress {
  height: 7px;
  background: #edf1f7;
  border-radius: 9px;
  overflow: hidden;
  margin: 12px 0;
}
.progress > div {
  height: 100%;
  background: var(--blue);
}
.overlay {
  position: fixed;
  inset: 0;
  background: #0b1d3680;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 20px;
}
.modal {
  background: white;
  border-radius: 14px;
  padding: 26px;
  width: 580px;
  max-width: 100%;
  max-height: 90vh;
  overflow: auto;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 20px 0;
}
.form-grid label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 14px;
}
.form-grid .wide {
  grid-column: 1/-1;
}
.modal footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
.metric-list > div {
  display: flex;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.toast {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: var(--nav);
  color: white;
  border-radius: 9px;
  padding: 14px 22px;
  z-index: 50;
}
.summary {
  padding: 18px;
  background: #f5f8ff;
  border-radius: 8px;
  margin-bottom: 18px;
}
.file-link {
  color: var(--blue);
  text-decoration: underline;
}
.month {
  font-weight: 600;
}
.mobile-title {
  display: none;
}
@media (max-width: 1000px) {
  aside {
    width: 190px;
    padding: 24px 12px;
  }
  main {
    margin-left: 190px;
    width: calc(100% - 190px);
  }
  .content {
    padding: 25px 22px;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid2 {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 650px) {
  .shell {
    display: block;
  }
  aside {
    position: static;
    width: 100%;
    padding: 14px;
  }
  .brand {
    padding: 0 4px 14px;
    font-size: 20px;
  }
  .brand + nav {
    display: flex;
    overflow: auto;
    gap: 5px;
  }
  nav button {
    white-space: nowrap;
    padding: 9px 12px;
  }
  nav button svg {
    display: none;
  }
  .sidebar-foot {
    display: none;
  }
  main {
    margin: 0;
    width: 100%;
  }
  header {
    height: 55px;
    padding: 0 18px;
  }
  .content {
    padding: 24px 16px;
  }
  .heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
  h1 {
    font-size: 26px;
  }
  .stats {
    gap: 10px;
  }
  .stats article {
    padding: 16px;
  }
  .stats strong {
    font-size: 26px;
  }
  section {
    padding: 16px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-grid .wide {
    grid-column: auto;
  }
  .toolbar input {
    width: 100%;
  }
  .overlay {
    padding: 10px;
  }
  .section-title {
    flex-wrap: wrap;
  }
}
@media print {
  aside,
  header,
  .toolbar,
  .actions,
  button,
  .no-print {
    display: none !important;
  }
  main {
    margin: 0;
    width: 100%;
  }
  .content {
    padding: 0;
  }
  section,
  .stats article {
    break-inside: avoid;
  }
  .stats {
    grid-template-columns: repeat(4, 1fr);
  }
  body {
    background: white;
  }
}
main,
section,
.grid2 > *,
.stats > * {
  min-width: 0;
}
.grid2 {
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
}
@media (max-width: 1000px) {
  .grid2 {
    grid-template-columns: minmax(0, 1fr);
  }
}
.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 25px;
  background: #152b44;
}
.login-card {
  width: 460px;
  max-width: 100%;
  padding: 32px;
  background: white;
  border-radius: 16px;
}
.login-card .brand {
  padding: 0 0 28px;
  color: #192c42;
}
.login-card .brand > b {
  color: white;
}
.login-card .brand small {
  color: #69788a;
}
.login-card h1 {
  font-size: 24px;
}
header {
  height: auto;
  min-height: 76px;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 12px;
  padding-bottom: 12px;
}

.parent-shell {
  max-width: 960px;
  margin: 0 auto;
  padding: 28px 20px 60px;
}
.parent-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}
.parent-header h1 {
  margin: 6px 0;
}
.parent-intro {
  margin-bottom: 24px;
}
.parent-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}
.parent-stats section,
.parent-card {
  background: white;
  border: 1px solid #e1e7ef;
  border-radius: 16px;
  padding: 24px;
}
.parent-stats strong {
  display: block;
  font-size: 28px;
  margin-top: 10px;
  color: #24614b;
}
.parent-card {
  margin: 18px 0;
}
.parent-course {
  border-top: 1px solid #e1e7ef;
  padding: 14px 0;
}
.parent-course h3 {
  margin: 4px 0 10px;
}
.parent-course p {
  line-height: 1.7;
}
.parent-table {
  overflow-x: auto;
}
.parent-table table {
  width: 100%;
  border-collapse: collapse;
}
.parent-table td,
.parent-table th {
  text-align: left;
  padding: 12px;
  border-bottom: 1px solid #e1e7ef;
}
.parent-shell .eyebrow {
  color: #24614b;
  font-weight: 700;
}
@media (max-width: 540px) {
  .parent-shell {
    padding: 18px 12px;
  }
  .parent-header {
    align-items: flex-start;
    flex-direction: column;
  }
  .parent-card,
  .parent-stats section {
    padding: 16px;
  }
  .parent-stats strong {
    font-size: 23px;
  }
}

.usage-guide{max-width:1000px}.guide-intro label{display:block;font-weight:600;margin:18px 0 8px}.guide-intro input{width:100%;max-width:540px}.guide-index{display:flex;flex-wrap:wrap;gap:8px;margin:20px 0}.guide-index a{padding:9px 12px;border:1px solid #dfe6ee;border-radius:9px;background:white;text-decoration:none;color:#245a48;font-size:13px}.guide-index a:hover,.guide-index a:focus-visible{background:#e6f2eb}.guide-topic{scroll-margin-top:24px}.guide-topic h2{line-height:1.5}.guide-location{font-size:13px;color:#24614b;margin:8px 0 18px}.guide-topic li{line-height:1.85;margin:8px 0}.guide-topic ol,.guide-topic ul{padding-left:24px}.guide-notes{padding:16px 20px;background:#f3f6fa;border-radius:10px;margin-top:20px}.guide-notes h3{font-size:14px;margin:0 0 8px}.guide-notes ul{margin:0}.guide-intro a{color:#24614b}@media(max-width:600px){.guide-index a{width:100%}.guide-notes{padding:12px}.guide-topic h2{font-size:19px}}
