:root {
  color-scheme: light;
  font-family: "Microsoft YaHei UI","PingFang SC","Noto Sans CJK SC",system-ui,sans-serif;
  color: #152d38;
  background: #eef4f7;
  font-size: 16px;
  --ink: #152d38;
  --muted: #4d646f;
  --line: #d6e2e7;
  --primary: #07594f;
  --primary-dark: #06463f;
  --mint: #e8f7f0;
  --alert: #8b470f;
  --error: #9b382c;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
button,input,textarea,select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; }
:focus-visible { outline: 3px solid #2b947f; outline-offset: 3px; }
button,a,input,select,textarea { -webkit-tap-highlight-color: transparent; }
.frame { width: min(1120px, calc(100% - 64px)); margin-inline: auto; }
.topbar { background: #fff; border-bottom: 1px solid var(--line); }
.top-inner { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand,.account { display: flex; gap: 12px; align-items: center; }
.brand { font-size: 1.3rem; font-weight: 780; }
.brand-caption { font-size: .875rem; font-weight: 500; color: var(--muted); padding-inline-start: 12px; border-inline-start: 1px solid var(--line); }
.bell { width: 36px; height: 36px; background: #ffc36d; border-radius: 11px; display: inline-grid; place-items: center; position: relative; }
.bell::before { content: ""; width: 14px; height: 13px; background: #213945; border-radius: 8px 8px 3px 3px; margin-top: -3px; }
.bell::after { content: ""; position: absolute; width: 6px; height: 3px; left: 15px; top: 24px; background: #213945; border-radius: 0 0 4px 4px; }
.account { font-size: .875rem; color: var(--muted); }
.intro { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin: 40px 0 26px; }
h1,h2,p { margin: 0; }
h1 { font-size: clamp(2rem, 4.4vw, 2.9rem); font-weight: 800; letter-spacing: -.06em; line-height: 1.12; }
.intro p { color: var(--muted); margin-top: 9px; }
h2 { font-size: 1.23rem; letter-spacing: -.025em; }
.work-grid { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(0,1fr); align-items: start; gap: 22px; padding-bottom: 35px; }
.panel { background: white; border: 1px solid var(--line); border-radius: 19px; box-shadow: 0 4px 15px #1338470a; }
.composer,.history,.login { padding: 26px; }
.section-title { margin-bottom: 21px; }
.history-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.login { max-width: 480px; margin: clamp(36px, 12vh, 120px) auto; padding: 35px; border-top: 5px solid #ffc36d; }
.login p { margin-top: 12px; }
.login form { margin-top: 24px; }
.login form > label:not(:first-child),.account-form > label:not(:first-child) { display: block; margin-top: 14px; }
.login form > button { width: 100%; margin-top: 16px; }
.auth-actions,.intro-actions,.pagination { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.auth-actions { justify-content: space-between; margin-top: 10px; }
.intro-actions { justify-content: flex-end; }
.account-form { margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--line); }
.account-form button,.secret-value + button { margin-top: 10px; }
.secret-value { margin-top: 8px; font-family: "Consolas",monospace; }
.admin-dialog { width: min(710px,calc(100% - 28px)); }
.issue-form { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)) auto; gap: 10px; align-items: end; margin-top: 18px; }
.issue-form .order-label { grid-column: 1 / -1; }
.issue-form > button { min-height: 46px; white-space: nowrap; }
.pagination { justify-content: end; margin-top: 10px; }
.activation-meta { overflow-wrap: anywhere; }
.activation-meta .muted { margin-top: 5px; }
#admin-empty { margin-top: 12px; }
.muted,.hint { color: var(--muted); font-size: .875rem; line-height: 1.55; }
.field { margin: 0 0 22px; }
label,legend { font-size: .9rem; font-weight: 700; }
legend { padding: 0; margin-bottom: 8px; }
fieldset { border: 0; padding: 0; min-inline-size: 0; }
input:not([type="radio"]),select,textarea {
  display: block; width: 100%; min-height: 46px; padding: 10px 12px; color: var(--ink);
  background: #fcfefe; border: 1px solid #bfcfd6; border-radius: 9px;
}
select { appearance: none; padding-right: 36px; background-image: linear-gradient(45deg,transparent 50%,#4d646f 50%),linear-gradient(135deg,#4d646f 50%,transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
label + input,label + select { margin-top: 8px; }
textarea { resize: vertical; min-height: 116px; line-height: 1.55; }
.room-line,.label-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; }
.label-line { margin: 0 0 8px; }
.label-line output { color: var(--muted); font-size: .875rem; font-variant-numeric: tabular-nums; }
.status { color: #465963; background: #edf2f4; padding: 5px 8px; border-radius: 7px; font-size: .875rem; white-space: nowrap; }
.status.good { color: #07594f; background: var(--mint); }
.status.warn { color: var(--alert); background: #fff0dd; }
.templates { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.templates button { background: #ecf5f7; border: 1px solid #d8e8ed; border-radius: 7px; color: #284c5b; padding: 7px 10px; min-height: 36px; font-size: .875rem; }
.templates button:hover { background: #deedf1; }
.mode-grid,.time-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
.mode { display: flex; align-items: flex-start; padding: 12px 9px; gap: 7px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.mode:has(input:checked) { background: #eef8f5; border-color: #5a9c91; }
.mode input { margin: 2px 0 0; accent-color: var(--primary); }
.mode small { display: block; font-size: .875rem; font-weight: 450; line-height: 1.35; color: var(--muted); margin-top: 4px; }
.schedule { grid-column: 1/-1; }
.primary,.outline,.quiet { min-height: 40px; border-radius: 9px; padding: 7px 13px; font-size: .9rem; font-weight: 700; }
.primary { background: var(--primary); color: white; border: 1px solid var(--primary); }
.primary:hover { background: var(--primary-dark); }
.outline { background: white; color: var(--ink); border: 1px solid #aabfc7; white-space: nowrap; }
.outline:hover,.quiet:hover { background: #eaf3f5; }
.quiet { color: var(--primary); border: 1px solid transparent; background: transparent; }
.form-footer .primary { width: 100%; min-height: 48px; font-size: 1rem; }
.composer .hint { margin: -9px 0 12px; }
.feedback { color: var(--primary); font-size: .875rem; line-height: 1.5; overflow-wrap: anywhere; }
.feedback:not(:empty) { margin-top: 9px; }
.feedback.error { color: var(--error); }
.connection { margin-bottom: 12px; }
.history ol,.class-list { margin: 0; padding: 0; list-style: none; }
.history ol { max-height: 605px; overflow: auto; }
.history li { border-top: 1px solid var(--line); padding: 14px 0; }
.history li:first-child { padding-top: 2px; border-top: 0; }
.history li p { overflow-wrap: anywhere; white-space: pre-wrap; line-height: 1.45; margin: 7px 0; }
.history-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.history-meta strong { font-size: .9rem; overflow-wrap: anywhere; }
.history-detail { font-size: .875rem; color: var(--muted); }
.history li button { display: block; margin-left: auto; }
.empty { display: grid; justify-items: center; color: var(--muted); text-align: center; gap: 8px; padding: 35px 10px 46px; }
.empty strong { color: var(--ink); }
.empty span { font-size: .875rem; }
.empty-mark { height: 36px; width: 29px; margin-bottom: 6px; border: 2px solid #7598a4; border-radius: 6px; background: linear-gradient(#a5bec7,#a5bec7) 5px 10px/15px 2px no-repeat,linear-gradient(#a5bec7,#a5bec7) 5px 17px/10px 2px no-repeat,#edf6f8; }
dialog { width: min(560px, calc(100% - 28px)); max-height: min(85vh,720px); border: 1px solid var(--line); border-radius: 18px; padding: 23px; color: var(--ink); }
dialog::backdrop { background: #152d3869; }
.dialog-heading,.add-form,.class-list li,.class-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.dialog-heading p { margin-top: 5px; }
.download { display: inline-block; font-size: .875rem; margin-top: 12px; color: var(--primary); text-underline-offset: 3px; }
.add-form { margin-top: 20px; align-items: end; }
.add-form div { flex: 1; }
.add-form button { min-height: 46px; white-space: nowrap; }
.pairing { background: #eff8f3; border: 1px solid #c7e2d4; border-radius: 10px; padding: 13px; margin-top: 15px; }
.pairing strong { display: block; font-size: 1.75rem; letter-spacing: .11em; font-variant-numeric: tabular-nums; margin-block: 2px 6px; }
.pairing input { margin-top: 7px; }
.class-list li { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 8px; align-items: start; }
.class-list strong { overflow-wrap: anywhere; display: block; margin-bottom: 6px; }
.class-actions { flex-wrap: wrap; justify-content: end; gap: 2px; }
.class-actions button { white-space: nowrap; padding-inline: 8px; }
@media (max-width: 760px) {
  .frame { width: calc(100% - 32px); }
  .top-inner { min-height: 61px; }
  .intro { margin-top: 27px; }
  .work-grid { grid-template-columns: minmax(0,1fr); gap: 14px; }
  .composer,.history,.login { padding: 19px; }
  .section-title { margin-bottom: 16px; }
  .history ol { max-height: none; }
}
@media (max-width: 380px) {
  .frame { width: calc(100% - 22px); }
  .brand-caption { display: none; }
  .composer,.history { padding: 14px; }
}
