* {
  box-sizing: border-box;
}
:root {
  color-scheme: light;
  --bg: #f5f6fa;
  --surface: #fff;
  --soft: #eef1fa;
  --cool: #e9edf9;
  --text: #20283a;
  --muted: #566178;
  --line: #dce1eb;
  --brand: #334986;
  --brand2: #253564;
  --pale: #eef1fc;
  --success: #18735c;
  --goodbg: #e5f4ed;
  --danger: #993d40;
  --badbg: #faecea;
  --ring: #6278c3;
  --side: 228px;
  font-family: "Segoe UI", Arial, sans-serif;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #171d2a;
  --surface: #202838;
  --soft: #293346;
  --cool: #2e3b54;
  --text: #f0f2f7;
  --muted: #b2bdcf;
  --line: #39465c;
  --brand: #b7c7ff;
  --brand2: #cad5ff;
  --pale: #2e3952;
  --success: #95e0c4;
  --goodbg: #263d37;
  --danger: #ffb4ae;
  --badbg: #452f36;
  --ring: #a4b4f1;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  font-size: 16px;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
textarea,
select,
summary {
  touch-action: manipulation;
}
button,
summary {
  cursor: pointer;
}
a {
  color: var(--brand);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
button {
  color: inherit;
}
button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3,
.brand {
  line-height: 1.13;
}
h1 {
  font:
    650 clamp(2.15rem, 5vw, 3.6rem)/1.04 "Segoe UI Variable Display",
    "Segoe UI",
    Arial,
    sans-serif;
  letter-spacing: -0.055em;
  margin-bottom: 0.25em;
}
h2 {
  font-size: 1.36rem;
  letter-spacing: -0.035em;
}
h3 {
  font-size: 1.03rem;
  letter-spacing: -0.015em;
}
p + p {
  margin-top: 0.7em;
}
small,
.small {
  font-size: 0.85rem;
}
.muted,
.meta {
  color: var(--muted);
}
.meta {
  font-size: 0.87rem;
}
.preserve {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.wideword {
  overflow-wrap: anywhere;
}
.skiplink {
  position: fixed;
  top: -70px;
  left: 15px;
  background: var(--surface);
  color: var(--text);
  z-index: 40;
  padding: 10px;
}
.skiplink:focus {
  top: 10px;
}
.loading,
.fatal {
  max-width: 680px;
  margin: 15vh auto;
  padding: 25px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 1.48rem;
  letter-spacing: -0.055em;
  font-weight: 750;
  color: var(--text);
}
.brand:hover {
  text-decoration: none;
}
.brand img {
  width: 37px;
  height: 37px;
}
.brand small {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 4px;
  color: var(--muted);
}
.app {
  display: grid;
  grid-template-columns: var(--side) minmax(0, 1fr);
  min-height: 100dvh;
}
.sidebar {
  background: var(--surface);
  border-right: 1px solid var(--line);
  padding: 26px 15px 14px;
  position: sticky;
  top: 0;
  height: 100dvh;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.sidebar .brand {
  margin: 0 8px 5px;
}
.navgroup {
  display: grid;
  gap: 2px;
}
.navlabel {
  margin: 0 12px 5px;
  font-size: 0.73rem;
  font-weight: 650;
  color: var(--muted);
}
.navlink {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 7px 12px;
  border-radius: 7px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.4;
  font-weight: 500;
}
.navlink:hover,
.navlink[aria-current="page"] {
  background: var(--pale);
  color: var(--brand);
  text-decoration: none;
}
.navlink[aria-current="page"] {
  font-weight: 700;
}
.ico {
  font-family: "Segoe UI Symbol", Arial, sans-serif;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 19px;
  line-height: 1;
  font-size: 1.1rem;
  flex: none;
}
.userbar {
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 15px 7px 0;
  margin-top: auto;
}
.avatar {
  width: 32px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: var(--cool);
  color: var(--brand);
  font-size: 0.86rem;
  font-weight: 700;
}
.username {
  font-size: 0.88rem;
  min-width: 0;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mobile {
  display: none;
}
.main {
  max-width: 1210px;
  width: 100%;
  margin: 0 auto;
  padding: clamp(24px, 4vw, 60px) clamp(22px, 4.8vw, 78px) 70px;
  min-width: 0;
}
.head {
  margin: 0 0 26px;
  max-width: 900px;
}
.breadcrumb {
  color: var(--muted);
  font-size: 0.79rem;
  margin-bottom: 14px;
}
.head p {
  color: var(--muted);
  max-width: 750px;
}
.main > * + * {
  margin-top: 20px;
}
.main:focus {
  outline: none;
}
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: clamp(18px, 2.5vw, 30px);
  min-width: 0;
}
.panel > * + *,
.stack > * + * {
  margin-top: 15px;
}
.sectionline,
.between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.sectionline {
  margin-bottom: 15px;
}
.sectionline > * {
  margin: 0;
}
.twocol,
.threecol,
.modes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.threecol {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.modes {
  grid-template-columns: repeat(auto-fit, minmax(min(232px, 100%), 1fr));
}
.modes a {
  color: var(--text);
}
.modecard {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 11px;
  transition:
    transform 0.16s,
    border-color 0.16s;
}
.modecard:hover {
  transform: translateY(-2px);
  border-color: var(--ring);
  text-decoration: none;
}
.modecard > * {
  margin: 0;
}
.modecard .meta {
  flex: 1;
}
.modeicon {
  width: 33px;
  height: 33px;
  background: var(--pale);
  border-radius: 9px;
  display: grid;
  place-items: center;
  color: var(--brand);
  font-size: 1.2rem;
}
.arrow {
  color: var(--brand);
  font-weight: 700;
}
.btn,
.primary,
.quiet,
.tiny,
.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 8px;
  text-align: center;
  line-height: 1.25;
  text-decoration: none;
  font-weight: 620;
  border: 1px solid var(--line);
  padding: 11px 15px;
  background: var(--surface);
  color: var(--text);
}
.btn:hover,
.primary:hover,
.quiet:hover,
.tiny:hover,
.chip:hover {
  text-decoration: none;
  filter: brightness(0.96);
}
.primary {
  color: #fff;
  background: #354989;
  border-color: #354989;
}
.quiet {
  background: transparent;
  color: var(--brand);
  border-color: transparent;
}
.tiny,
.chip {
  font-size: 0.83rem;
  padding: 8px 10px;
}
.chip[aria-pressed="true"] {
  background: var(--pale);
  color: var(--brand);
  border-color: var(--ring);
}
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.actions.end {
  justify-content: flex-end;
}
.danger {
  color: var(--danger);
}
.textlink {
  font-weight: 650;
  font-size: 0.9rem;
}
.banner {
  position: relative;
  background: #253666;
  border: 1px solid #283b70;
  border-radius: 18px;
  padding: clamp(23px, 3.5vw, 42px);
  color: #fff;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(165px, 1fr);
  align-items: center;
  gap: 24px;
  overflow: hidden;
}
.banner h2 {
  font-size: clamp(1.65rem, 3.3vw, 2.6rem);
  letter-spacing: -0.05em;
  max-width: 22ch;
}
.banner p {
  color: #d5def2;
  margin-top: 12px;
}
.banner .primary {
  background: #f3f5ff;
  border-color: #f3f5ff;
  color: #253666;
  margin-top: 20px;
}
.metergrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
  transform: skewY(-10deg);
  padding: 12px 0;
}
.tile {
  position: relative;
  background: #425487;
  border: 1px solid #6579aa;
  aspect-ratio: 1.7;
  border-radius: 4px;
  overflow: hidden;
}
.tile:after {
  content: "";
  position: absolute;
  inset: 30% 20%;
  border-top: 2px solid #91a5d4;
  border-bottom: 2px solid #91a5d4;
}
.tile[data-complete="true"] {
  background: #8cccb9;
  border-color: #a0e5cf;
}
.tile[data-complete="true"]:after {
  border-color: #335e62;
}
.metric {
  min-width: 0;
}
.metric strong {
  display: block;
  font-size: clamp(1.65rem, 3.3vw, 2.55rem);
  font-weight: 630;
  letter-spacing: -0.05em;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}
.metric .meta {
  margin-top: 7px;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
  gap: 20px;
}
.metrics .metric:not(:first-child) {
  border-left: 1px solid var(--line);
  padding-left: 16px;
}
.bar {
  display: block;
  width: 100%;
  height: 7px;
  border: 0;
  border-radius: 15px;
  overflow: hidden;
  background: var(--soft);
  appearance: none;
}
.bar::-webkit-progress-bar {
  background: var(--soft);
}
.bar::-webkit-progress-value {
  background: var(--ring);
  border-radius: 8px;
}
.bar::-moz-progress-bar {
  background: var(--ring);
  border-radius: 8px;
}
.labelbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 10px;
}
.labelbar .bar {
  grid-column: 1/-1;
}
.labelbar strong {
  font-size: 0.86rem;
  font-variant-numeric: tabular-nums;
}
.dividerlist {
  list-style: none;
  margin: 0;
  padding: 0;
}
.dividerlist > li {
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  min-width: 0;
}
.dividerlist > li:last-child {
  border: 0;
}
.dividerlist .muted {
  font-size: 0.86rem;
}
label {
  display: grid;
  gap: 6px;
  font-size: 0.89rem;
  font-weight: 620;
}
input:not([type="checkbox"]):not([type="radio"]),
select,
textarea {
  min-width: 0;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  color: var(--text);
  padding: 10px 11px;
  font-weight: 400;
  line-height: 1.4;
}
textarea {
  resize: vertical;
  min-height: 100px;
}
.formgrid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr));
}
.formcol {
  display: grid;
  gap: 15px;
  max-width: 700px;
}
.auth {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
}
.auth-cover {
  background: #243666;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(26px, 6vw, 86px);
  overflow: hidden;
  position: relative;
  gap: 28px;
}
.auth-cover .brand {
  color: white;
}
.auth-cover .brand small {
  color: #c8d4ef;
}
.auth-cover .brand img {
  outline: 1px solid #6577a6;
  border-radius: 9px;
}
.auth-cover h1 {
  max-width: 13ch;
  font-size: clamp(2.9rem, 5.5vw, 6.3rem);
  font-weight: 610;
  line-height: 1.02;
}
.auth-cover p {
  color: #cad7ef;
  max-width: 34ch;
  font-size: 1rem;
}
.bookset {
  height: clamp(140px, 20vh, 210px);
  display: flex;
  align-items: stretch;
  transform: skewY(-8deg);
  gap: 6px;
  margin: 14px 12% 20px 3%;
  width: min(85%, 380px);
}
.spine {
  flex: 1;
  background: #9eaee3;
  color: #243666;
  border-radius: 5px 5px 3px 3px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 12px 2px;
  font-size: 0.72rem;
  font-weight: 750;
}
.spine:before {
  content: "";
  width: 65%;
  height: 12px;
  border-top: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
}
.spine:nth-child(3n) {
  background: #9edecb;
}
.spine:nth-child(4n) {
  background: #dde4fb;
}
.spine:nth-child(5n) {
  margin-top: 12px;
}
.auth-form {
  align-self: center;
  padding: 40px clamp(24px, 7vw, 110px);
  width: 100%;
  max-width: 650px;
  justify-self: center;
}
.auth-form h2 {
  font-size: clamp(2rem, 3.6vw, 3rem);
  letter-spacing: -0.06em;
}
.auth-form header {
  margin: 23px 0;
}
.auth-form header p {
  color: var(--muted);
  margin-top: 9px;
}
.seg {
  display: inline-flex;
  border: 1px solid var(--line);
  padding: 3px;
  border-radius: 9px;
  background: var(--soft);
}
.seg button {
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  padding: 8px 16px;
  font-size: 0.88rem;
  font-weight: 650;
}
.seg [aria-pressed="true"] {
  background: var(--surface);
  color: var(--brand);
  box-shadow: 0 1px 3px #0002;
}
.auth-form .primary {
  margin-top: 6px;
}
.auth-error,
.error {
  color: var(--danger);
  font-size: 0.91rem;
}
.error:empty {
  display: none;
}
.topicrow summary {
  font-weight: 650;
  list-style-position: inside;
  overflow-wrap: anywhere;
}
.topicrow + .topicrow {
  margin-top: 11px;
}
.topicrow[open] summary {
  margin-bottom: 16px;
}
.topicrow .dividerlist > li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.qrow {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
}
.qtitle {
  font: inherit;
  color: var(--text);
  background: transparent;
  border: 0;
  text-align: left;
  padding: 5px 0;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.qtitle:hover {
  color: var(--brand);
  text-decoration: underline;
}
.qrow .meta {
  font-size: 0.77rem;
}
.note {
  background: var(--pale);
  border-radius: 9px;
  color: var(--brand);
  padding: 12px 15px;
}
.result {
  border-left: 4px solid var(--ring);
  padding: 15px 19px;
  border-radius: 8px;
  background: var(--pale);
}
.result.ok {
  border-color: var(--success);
  background: var(--goodbg);
}
.result.bad {
  border-color: var(--danger);
  background: var(--badbg);
}
.result p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.result strong {
  display: block;
  margin-bottom: 7px;
}
.questionbox {
  max-width: 900px;
  margin: 0 auto;
}
.qheading {
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-weight: 640;
  letter-spacing: -0.032em;
  line-height: 1.32;
  overflow-wrap: anywhere;
}
.choices {
  display: grid;
  gap: 8px;
  min-width: 0;
  border: 0;
  padding: 0;
  margin: 16px 0;
}
.choice {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  gap: 12px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 480;
  font-size: 1rem;
  overflow-wrap: anywhere;
}
.choice:has(:checked) {
  border-color: var(--brand);
  background: var(--pale);
}
input[type="checkbox"],
input[type="radio"] {
  width: 17px;
  height: 17px;
  accent-color: var(--brand);
  flex: none;
}
.qfoot {
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.orderitem {
  display: flex;
  gap: 8px;
  align-items: center;
}
.orderitem span {
  flex: 1;
  min-width: 0;
}
.countdown {
  font-variant-numeric: tabular-nums;
  color: var(--brand);
  font-weight: 650;
}
.rowdates {
  font-variant-numeric: tabular-nums;
}
dialog {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 14px;
  max-width: min(670px, calc(100% - 26px));
  width: 100%;
  padding: 24px;
  max-height: 80dvh;
  overflow: auto;
  box-shadow: 0 15px 65px #1114;
}
dialog::backdrop {
  background: #10172b88;
}
dialog > * + * {
  margin-top: 16px;
}
#notice {
  position: fixed;
  bottom: 18px;
  right: 18px;
  max-width: min(470px, calc(100% - 36px));
  z-index: 30;
  background: var(--text);
  color: var(--surface);
  padding: 11px 17px;
  border-radius: 9px;
  box-shadow: 0 5px 18px #0002;
}
#notice:empty {
  display: none;
}
.tablewrap {
  max-width: 100%;
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.87rem;
  text-align: left;
}
th,
td {
  padding: 10px 7px;
  border-bottom: 1px solid var(--line);
}
th {
  font-weight: 650;
  color: var(--muted);
}
.chart {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  min-height: 87px;
  padding: 10px 0;
}
.point {
  display: grid;
  gap: 5px;
  justify-items: center;
  min-width: 18px;
  flex: 1;
  font-size: 0.72rem;
}
.point meter {
  writing-mode: vertical-lr;
  direction: rtl;
  height: 65px;
  width: 17px;
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
@media (max-width: 1000px) {
  :root {
    --side: 205px;
  }
  .main {
    padding: 30px 24px 55px;
  }
  .sidebar {
    padding-inline: 10px;
  }
  .navlink {
    padding-block: 8px;
  }
  .metrics {
    gap: 12px;
  }
  .metrics .metric:not(:first-child) {
    padding-left: 10px;
  }
}
@media (max-width: 760px) {
  .app {
    display: block;
  }
  .mobile {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
  }
  .mobile .brand {
    font-size: 1.19rem;
  }
  .mobile .brand small {
    display: none;
  }
  .mobile .brand img {
    width: 29px;
    height: 29px;
  }
  .sidebar {
    display: none;
    position: static;
    width: auto;
    height: auto;
    padding: 14px 16px;
    gap: 15px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .sidebar.open {
    display: flex;
  }
  .sidebar .brand {
    display: none;
  }
  .sidebar .navgroup {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .sidebar .navlabel {
    grid-column: 1/-1;
  }
  .navlink {
    min-height: 42px;
  }
  .main {
    padding: 24px 16px 40px;
  }
  .twocol,
  .threecol {
    grid-template-columns: 1fr;
  }
  .auth {
    grid-template-columns: 1fr;
  }
  .auth-cover {
    padding: 22px 24px;
    gap: 18px;
  }
  .auth-cover h1 {
    font-size: clamp(1.9rem, 7.8vw, 3rem);
    max-width: 22ch;
  }
  .auth-cover p,
  .bookset {
    display: none;
  }
  .auth-form {
    padding: 26px 24px 44px;
  }
  .banner {
    grid-template-columns: minmax(0, 1fr) 80px;
    gap: 12px;
  }
  .metergrid {
    grid-template-columns: repeat(3, 1fr);
    gap: 3px;
  }
  .tile {
    aspect-ratio: 1.3;
  }
  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .metrics .metric:not(:first-child) {
    border: 0;
    padding-left: 0;
  }
  .qrow {
    grid-template-columns: 1fr;
  }
  .qrow .actions {
    justify-content: flex-start;
  }
  .head {
    margin-bottom: 18px;
  }
  .between .qtools {
    width: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
.review {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
}
.choice.right {
  border-color: var(--success);
  background: var(--goodbg);
}
.choice.wrong {
  border-color: var(--danger);
  background: var(--badbg);
}
.review .choice {
  cursor: default;
}
@media (hover: none) {
  .keys {
    display: none;
  }
}
