:root { font: 16px system-ui, sans-serif; color: #242925; background: #f8f9fa; }
* { box-sizing: border-box; letter-spacing: 0; }
body { margin: 0; }
header { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; padding: 20px max(24px, calc((100% - 1040px) / 2)); background: white; border-bottom: 1px solid #e0e4e7; }
header strong { margin-right: auto; font-size: 24px; color: #176c54; white-space: nowrap; }
.brand-detail { font-size: 16px; font-weight: 500; color: #515c62; margin-left: 14px; }
#account { font-size: 14px; color: #657079; }
header a { color: #176c54; min-height: 44px; display: inline-flex; align-items: center; }
main { max-width: 1088px; margin: auto; padding: 8px 24px 60px; }
h1 { font-size: 26px; margin: 28px 0; } h2 { font-size: 18px; font-weight: 600; margin: 28px 0 12px; }
label { display: grid; gap: 10px; margin: 24px 0; font-size: 15px; }
input, select, button { font: inherit; min-height: 46px; max-width: 100%; border: 1px solid #c6cfd2; border-radius: 6px; padding: 11px 14px; background: white; }
input { width: 100%; min-width: 0; color: #222; }
input:focus-visible, select:focus-visible, button:focus-visible { outline: 3px solid #a7ccf0; outline-offset: 2px; }
button { cursor: pointer; color: #176c54; font-weight: 500; }
button:hover { background: #eef5f2; border-color: #7fa393; }
button:disabled { opacity: .5; cursor: default; }
.primary { background: #197456; border-color: #197456; color: white; width: 100%; margin-top: 24px; }
.primary:hover { background: #125c43; }
.danger { color: #a02b22; border-color: #a02b22; }
#login { max-width: 400px; margin: 64px auto; }
#login h1 { margin-bottom: 10px; }
.code-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: end; }
.code-row label { margin: 0; }
.muted { color: #657079; font-size: 14px; line-height: 1.7; }
#notice, #reset-notice, #name-notice { color: #a02b22; overflow-wrap: anywhere; line-height: 1.6; }
.toolbar { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
#notice:empty { margin: 0; }
nav { display: flex; gap: 24px; border-bottom: 1px solid #dce2e5; margin-top: 16px; }
nav button { background: transparent; border: 0; border-bottom: 3px solid transparent; border-radius: 0; color: #677179; padding: 18px 2px; }
nav button[aria-current="page"] { color: #176c54; border-bottom-color: #197456; }
.toolbar h1 { margin-right: auto; }
.inline { display: flex; align-items: center; gap: 12px; }
.summary { display: flex; align-items: end; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 8px 0 32px; }
.summary strong { display: block; font-size: 36px; font-weight: 650; color: #176c54; padding-top: 8px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: white; text-align: left; }
th, td { padding: 18px 16px; border-bottom: 1px solid #e1e6e8; overflow-wrap: anywhere; }
th { background: #f0f3f5; color: #5c6770; font-size: 14px; font-weight: 500; white-space: nowrap; }
section { margin-top: 32px; border-top: 1px solid #d7dfdc; padding-top: 12px; }
.empty { color: #657079; padding: 32px 0; line-height: 1.7; }
.catalog-heading { margin-top: 40px; padding-top: 28px; border-top: 1px solid #dce2e5; }
.course { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding: 22px 0; border-bottom: 1px solid #e1e6e8; }
.course > div { flex: 1 1 240px; min-width: 0; overflow-wrap: anywhere; }
.course p { margin: 6px 0 0; }
.course button, .added { flex-shrink: 0; }
.added { color: #176c54; font-size: 14px; }
.course-schedule { border-bottom: 1px solid #e1e6e8; padding: 18px 0; }
.course-schedule summary { cursor: pointer; min-height: 44px; color: #176c54; }
.course-schedule form { max-width: 640px; }
.course-schedule input[type=checkbox] { width: 22px; min-height: 22px; margin: 0 10px 0 0; }
dialog { max-width: 480px; width: calc(100% - 32px); border: 1px solid #a6b7b0; border-radius: 8px; padding: 24px; }
dialog p { line-height: 1.6; }
dialog::backdrop { background: #0006; }
.actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 24px; }
[hidden] { display: none !important; }
@media (max-width: 600px) {
  main { padding: 8px 18px 40px; }
  header { padding: 16px 18px; gap: 12px; }
  .brand-detail { margin-left: 8px; font-size: 14px; }
  #account { width: 100%; order: 1; }
  #account:empty { display: none; }
  th, td { padding: 12px 8px; font-size: 14px; }
  #login { margin-top: 36px; }
  .toolbar { gap: 12px; }
  .course { gap: 12px; }
  .course button { font-size: 14px; padding: 10px; }
}
