:root { color-scheme: light; font-family: system-ui, "PingFang SC", "Microsoft YaHei", sans-serif; color: #242a34; background: #f7f8fa; font-size: 15px; }
* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }

button.word-play, .sc button.word-play {
  display: inline-block;
  width: 1.14583vw;
  height: 1.14583vw;
  min-height: 0;
  margin-right: 1rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  vertical-align: middle;
  background: url("/yyx-assets/word-play.png") no-repeat center / 100% 100%;
  cursor: pointer;
}
h1 { margin: 0 0 20px; font-size: 25px; }
h2 { font-size: 18px; }
button, input, select { font: inherit; }
button, input, select { border: 1px solid #cbd1da; border-radius: 4px; min-height: 36px; background: white; color: inherit; }
button { padding: 6px 13px; cursor: pointer; }
button:disabled { cursor: default; opacity: .55; }
button.primary { background: #1768ae; color: white; border-color: #1768ae; }
input, select { padding: 6px 9px; min-width: 0; width: 100%; }
label { display: grid; gap: 5px; font-weight: 550; }
small { font-weight: normal; color: #586475; }
a { color: #1768ae; }
.notice { min-height: 1.3em; color: #a21e25; }
.notice.success { color: #147244; }
.signin { max-width: 430px; margin: 9vh auto; padding: 34px; background: white; border: 1px solid #d7dde5; border-radius: 8px; }
.brand { margin: 0 0 10px; color: #1768ae; font-weight: 700; }
.signin form, dialog form { display: grid; gap: 14px; }
.topbar { min-height: 59px; padding: 9px 22px; background: white; border-bottom: 1px solid #d7dde5; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.layout { display: grid; grid-template-columns: 172px minmax(0, 1fr); min-height: calc(100vh - 59px); }
.sidebar { background: #e6e8eb; padding: 12px 0; }
.sidebar button, .sidebar span, .sidebar a { display: block; width: 100%; border: 0; border-radius: 0; text-align: left; padding: 12px 18px; background: transparent; color: inherit; text-decoration: none; }
.sidebar [aria-current="page"] { background: #dceeff; font-weight: 700; }
.workspace { min-width: 0; padding: 20px 24px; background: white; }
.workspace > .notice { margin: 0 0 10px; }
.toolbar, .toolbar form, .pagination, .actions { display: flex; gap: 10px; align-items: end; flex-wrap: wrap; }
.toolbar { margin: 0 0 16px; }
.pagination, .actions { justify-content: end; margin-top: 12px; align-items: center; }
.table-wrap { overflow: auto; border: 1px solid #d7dde5; }
table { width: 100%; border-collapse: collapse; min-width: 550px; }
th, td { padding: 9px 10px; text-align: left; border-bottom: 1px solid #e4e7ec; }
th { white-space: nowrap; background: #f3f3f3; }
td:last-child button { margin: 2px 6px 2px 0; }
dialog { border: 1px solid #cbd1da; border-radius: 8px; width: min(490px, 95vw); padding: 22px; box-shadow: 0 12px 50px #2224; }
dialog::backdrop { background: #18243266; }
dialog h2 { margin-top: 0; }
.wide-dialog { width: min(860px, 95vw); max-height: 90vh; }
.profile { display: grid; grid-template-columns: minmax(100px, 140px) 1fr; max-width: 600px; gap: 12px; }
.profile dd { margin: 0; }
.platform-message-form { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); max-width: 760px; gap: 12px; margin-bottom: 16px; }
.platform-message-content { grid-column: 1 / -1; }
.platform-message-form textarea, #handle-feedback textarea { padding: 8px; border: 1px solid #cbd1da; border-radius: 4px; font: inherit; resize: vertical; }
#study-entry-dialog > label { margin-bottom: 12px; }
.platform-message-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.test-result { width: 86.5vw; max-width: 1107px; margin: 28px auto; }
.test-result h1 { margin-top: 18px; }
.test-result-cards { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.test-result-cards section, .test-report { padding: 17px 25px; background: #fff; border: 1px solid #d7dde5; border-radius: 6px; }
.test-result-cards strong { font-size: 2em; color: #1768ae; }
.test-report { margin-top: 16px; }
@media (max-width: 680px) {
  .signin { margin: 6vh 15px; }
  .layout { grid-template-columns: 1fr; }
  .sidebar { display: flex; padding: 0; }
  .sidebar button, .sidebar span, .sidebar a { width: auto; }
  .workspace { padding: 16px; }
}
