:root {
  --ink: #162f35;
  --muted: #4b6665;
  --canvas: #f6f6ee;
  --paper: #fffefa;
  --line: #d9e3d9;
  --green: #135e54;
  --green-dark: #0d443e;
  --soft: #e7f1e8;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; color: #162f35; color: var(--ink); background: #f6f6ee; background: var(--canvas); font: 16px/1.6 -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif; }
a { color: #135e54; color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: rgba(19, 94, 84, .16); }
button:focus, a:focus, input:focus, select:focus, textarea:focus { outline: 2px solid #157668; outline-offset: 3px; }
button[disabled] { opacity: .55; cursor: default; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: 2.4rem; letter-spacing: -.045em; line-height: 1.23; margin-bottom: .55em; }
h2 { font-size: 1.28rem; line-height: 1.35; }
h3 { font-size: 1.16rem; line-height: 1.4; }
.wrap { width: 92%; max-width: 1080px; margin: 0 auto; }
.top { background: #fffefa; border-bottom: 1px solid #d9e3d9; }
.top-inner { min-height: 68px; display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; -webkit-justify-content: space-between; justify-content: space-between; }
.brand { color: #153631; font-weight: 750; font-size: 1.24rem; }
.brand:before { content: ""; display: inline-block; width: 22px; height: 26px; margin: 0 10px -6px 0; border-radius: 3px 7px 7px 3px; background: repeating-linear-gradient(to bottom, transparent 0, transparent 5px, #c5edbe 5px, #c5edbe 6px, transparent 6px, transparent 9px) center / 10px 18px no-repeat, #165e55; border-left: 4px solid #0e4943; }
.site-nav > * { margin-left: 12px; }
.site-nav > a { display: inline-block; padding: 10px 0; }
.quiet, .soft-button, .primary, .secondary { display: inline-block; padding: 10px 15px; min-height: 44px; border-radius: 8px; border: 1px solid transparent; cursor: pointer; text-align: center; color: #135e54; font-weight: 650; text-decoration: none; }
.quiet { background: transparent; padding-right: 3px; }
.soft-button { background: #e7f1e8; border-color: #d5e6d8; }
.secondary { background: #fffefa; border-color: #a4c4b8; }
.primary { color: #fff; background: #135e54; border-color: #135e54; }
.primary:hover { background: #0d443e; color: #fff; }
.primary span, .soft-button span, .course a span { margin-left: 6px; }
.status { color: #5b4b38; margin: .65em 0 0; }
.status:empty { display: none; }
.boot { padding: 25px 0; }
.login-frame { max-width: 890px; margin: 11vh auto 40px; border-radius: 22px; overflow: hidden; background: #fffefa; border: 1px solid #d9e3d9; box-shadow: 0 22px 60px rgba(20, 59, 51, .10); display: -webkit-flex; display: flex; }
.login-cover, .login-form { width: 50%; padding: 46px; }
.login-cover { background: #11594f; color: #fbfff4; background-image: repeating-linear-gradient(0deg, transparent 0, transparent 30px, rgba(255,255,255,.065) 30px, rgba(255,255,255,.065) 31px); }
.login-cover h1 { margin-bottom: 15px; }
.login-cover p { color: #d8efde; margin-bottom: 0; }
.cover-sheet { width: 88px; height: 101px; border-radius: 5px 15px 15px 5px; border-left: 8px solid #9bd398; background: #d9efc4; padding: 17px 12px; margin: 2px 0 36px; box-shadow: 8px 7px 0 #277669; transform: rotate(-8deg); }
.cover-sheet i { display: block; background: #86b396; height: 2px; width: 100%; margin: 10px 0; }
.cover-sheet i:last-child { width: 60%; }
.login-form { -webkit-align-self: center; align-self: center; }
.login-captcha:not(:empty) { margin-top: 12px; }
.login-form > button { width: 100%; margin-top: 16px; }
label { display: block; font-weight: 650; }
input:not([type=file]), select, textarea { border: 1px solid #a9beb3; border-radius: 7px; background: #fff; min-height: 44px; width: 100%; padding: 8px 11px; color: #162f35; font-size: 16px; }
#account-nav { display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; white-space: nowrap; }
#account-nav > * { margin-left: 8px; }
#account-nav select { width: 142px; min-width: 0; padding: 6px 8px; }
#account-nav #logout { -webkit-flex-shrink: 0; flex-shrink: 0; }
input[type=file] { max-width: 100%; min-height: 44px; }
textarea { min-height: 190px; resize: vertical; }
.home-intro { padding: 43px 0 27px; display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; -webkit-justify-content: space-between; justify-content: space-between; }
.home-intro .status { margin-bottom: 0; }
.home-intro > a { -webkit-flex: 0 0 auto; flex: 0 0 auto; margin-left: 16px; }
.section-title { margin: 24px 0 13px; }
.cards { display: -webkit-flex; display: flex; -webkit-flex-wrap: wrap; flex-wrap: wrap; margin: 0 -8px 27px; }
.course { background: #fffefa; border: 1px solid #dae3d9; border-radius: 14px; margin: 0 8px 12px; padding: 22px; width: calc(50% - 16px); }
.three .course { width: calc(33.333% - 16px); }
.course h3 { margin: 10px 0 6px; font-size: 1.28rem; }
.course p { color: #4b6665; margin-bottom: 15px; }
.course a { display: inline-block; margin-right: 13px; padding: 9px 0; font-weight: 650; }
.course-mark { display: inline-block; width: 47px; height: 47px; text-align: center; line-height: 47px; border-radius: 11px; background: #e3eed9; color: #365a39; font-weight: 750; font-size: 19px; }
.english .course-mark { color: #2e5276; background: #e7eff9; }
.history .course-mark { color: #783e2a; background: #f5e8da; }
.geography .course-mark { color: #185f60; background: #dceeea; }
.science .course-mark { color: #504471; background: #ede7f4; }
.page { padding: 30px 0 52px; }
.narrow { max-width: 740px; }
.lead { color: #4b6665; }
.paper { background: #fffefa; border: 1px solid #d9e3d9; border-radius: 16px; padding: 24px; margin: 14px 0 20px; overflow-wrap: break-word; }
.paper h2:last-child, .paper p:last-child { margin-bottom: 0; }
.field-group { margin: 0 0 16px; }
.field-group label { margin-bottom: 4px; }
.row-actions > * { margin-right: 10px; margin-bottom: 7px; }
.progress-line { color: #41675a; font-weight: 650; margin-bottom: 13px; }
.choices button { display: block; width: 100%; text-align: left; color: #162f35; border: 1px solid #a9beb3; background: #fbfcf7; border-radius: 8px; margin: 0 0 10px; padding: 12px 14px; min-height: 46px; cursor: pointer; }
.choices button:enabled:hover { border-color: #135e54; background: #e7f1e8; }
.choices button:disabled { cursor: default; }
.choices label { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; margin-bottom: 10px; border: 1px solid #a9beb3; border-radius: 8px; cursor: pointer; }
.choices input[type="checkbox"] { width: 1.1em; min-height: 0; margin: 3px 8px 0 0; flex: none; }
.choices .choice-correct { color: #1c633c; border-color: #358152; background: #e6f4e9; opacity: 1; }
.choices .choice-incorrect { color: #8e2d31; border-color: #b54b51; background: #fae8e8; opacity: 1; }
.choices .choice-selection { margin-left: .6em; color: inherit; font-weight: 650; }
.question-image-link { display: block; width: fit-content; max-width: 100%; margin: 0 auto 1rem; }
.question-image { display: block; max-width: 100%; max-height: 34rem; width: auto; height: auto; object-fit: contain; margin: 0 auto; }
.feedback { margin: 16px 0; padding: 13px 16px; border-left: 4px solid #278360; background: #edf6ec; border-radius: 7px; }
.feedback.incorrect { border-color: #b06535; background: #fbefe1; }
.feedback p { margin-bottom: 5px; }
.question-title { font-size: 1.32rem; }
.lesson-select { margin: 12px 0 18px; }
.lesson-select a { margin-right: 12px; }
.lista { padding: 0; margin: 0; list-style: none; }
.lista > li { padding: 13px 0; border-top: 1px solid #d9e3d9; }
.lista h3 { margin-bottom: 6px; }
.lista p { margin-bottom: 5px; }
small, .note { color: #4b6665; }
.photo-preview { display: block; max-width: 100%; max-height: 420px; margin: 12px 0; border-radius: 8px; }
.transcription { white-space: pre-wrap; overflow-wrap: break-word; }
@media (max-width: 680px) {
  .login-frame { display: block; margin-top: 24px; }
  .login-cover, .login-form { width: 100%; padding: 24px; }
  .cover-sheet { display: none; }
  .home-intro { display: block; padding: 28px 0 5px; }
  .home-intro > a { margin: 13px 0 0; }
  h1 { font-size: 1.92rem; }
  .paper, .course { padding: 16px; }
  .three .course { width: calc(50% - 16px); }
}
@media (max-width: 450px) {
  .course, .three .course { width: calc(100% - 16px); }
  .top-inner { min-height: 54px; }
}

.brand:before {
  width: 27px;
  height: 27px;
  margin-bottom: -6px;
  border: 0;
  border-radius: 6px;
  background: #135e54 url("/apple-touch-icon.png") center / cover no-repeat;
}
.admin-nav { margin: 0 0 18px; border-bottom: 1px solid #d9e3d9; }
.admin-nav a { display: inline-block; min-height: 44px; margin-right: 13px; padding: 9px 8px; }
.admin-nav a[aria-current="page"] { font-weight: 700; border-bottom: 2px solid #135e54; }
.admin-narrow { max-width: 720px; }

@media (max-width: 400px) {
  .home-header { -webkit-flex-wrap: wrap; flex-wrap: wrap; }
  #account-nav.admin-account { width: 100%; -webkit-justify-content: flex-end; justify-content: flex-end; margin: 3px 0 6px; }
}
