:root { color-scheme: light; --text: #24272c; --muted: #747982; --line: #e4e6e9; --blue: #3267b1; }
* { box-sizing: border-box; }
body { margin: 0; background: #fff; color: var(--text); font: 15px/1.5 Arial, Helvetica, sans-serif; }
button, input, select { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
a { color: var(--blue); }
button { cursor: pointer; }
button:disabled { opacity: .5; cursor: wait; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid #3267b1; outline-offset: 3px; }
h1, h2, h3, p { margin: 0 0 18px; }
h1 { font-size: 25px; line-height: 1.3; font-weight: 600; }
h2 { font-size: 18px; line-height: 1.4; font-weight: 600; }
h3 { font-size: 15px; font-weight: 600; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.site-header { height: 64px; padding: 0 40px; border-bottom: 1px solid var(--line); display: flex; align-items: center; background: #fafafa; }
.site-name { color: #34383e; font-size: 16px; font-weight: 600; text-decoration: none; }
.login-page { padding: clamp(70px, 14vh, 145px) 24px 55px; }
.login-form { width: 340px; max-width: 100%; margin: 0 auto; }
.login-form h1 { margin-bottom: 29px; }
label { display: block; font-size: 14px; margin-bottom: 7px; }
input, select { display: block; width: 100%; min-width: 0; padding: 9px 11px; height: 42px; border: 1px solid #bfc4cb; border-radius: 3px; background: #fff; color: var(--text); }
input:focus, select:focus { outline: 2px solid #c5d8f3; outline-offset: 0; border-color: #638abc; }
form input, form select { margin-bottom: 20px; }
input::placeholder { color: #90959c; }
.primary { min-height: 41px; padding: 9px 18px; border: 1px solid #2c5eaa; border-radius: 3px; color: #fff; background: var(--blue); font-weight: 400; }
.primary:hover { background: #295995; }
.login-form .primary, .compact-page .primary, #invite-form .primary { width: 100%; }
.secondary { display: inline-block; padding: 7px 12px; border: 1px solid #c8ccd1; border-radius: 3px; background: #f7f8fa; color: #363b43; text-decoration: none; font-size: 14px; }
.secondary:hover { background: #eef0f3; }
.text-button { border: 0; background: none; padding: 0; color: var(--blue); font-size: 14px; }
.text-button:hover, .text-link:hover { text-decoration: underline; }
.form-result { margin-top: 16px; font-size: 14px; }
.form-result:empty { display: none; }
.form-result + .text-button { margin-top: 9px; }
.error { color: #a52e2e !important; }
.diagnostics { margin-top: 27px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.diagnostics summary { cursor: pointer; }
.diagnostics label { margin-top: 15px; }
.diagnostics select { font-size: 13px; height: 36px; }
.diagnostics pre { font: 13px/1.6 Consolas, monospace; white-space: pre-wrap; }
.hidden { display: none !important; }
.compact-page { max-width: 460px; margin: 65px auto; padding: 0 24px; }
.panel p { color: #606670; }
.participant-info { margin-bottom: 22px; }
.badge { display: inline-block; font-size: 12px; padding: 2px 6px; border: 1px solid #d8dce1; border-radius: 3px; color: #646a73; background: #f8f9fa; font-weight: 400; }
.participant-info .badge { margin-left: 7px; }
.password-reference { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 14px 0; margin: 22px 0; font-size: 14px; }
.password-reference code { font: 16px Consolas, monospace; margin-left: 5px; color: #30343a; }
.collect-count { display: flex; gap: 8px; align-items: baseline; margin: 26px 0 12px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 14px; }
.collect-count strong { font-size: 15px; }
.admin-header { justify-content: space-between; }
.admin-header nav { display: flex; align-items: center; gap: 24px; font-size: 14px; }
.admin-header nav a { text-decoration: none; }
.admin-header form { margin: 0; }
.admin-main { max-width: 1100px; margin: 0 auto; padding: 35px 28px 50px; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 25px; }
.page-heading h1 { margin: 0; }
.counters { display: flex; border-bottom: 1px solid var(--line); padding-bottom: 22px; margin-bottom: 30px; gap: 42px; }
.counters>div { display: grid; grid-template-columns: auto auto; align-items: baseline; column-gap: 12px; }
.counters span { font-size: 14px; }
.counters strong { font-size: 19px; font-weight: 600; }
.counters small { grid-column: 1 / -1; font-size: 12px; color: var(--muted); margin-top: 2px; }
.admin-grid { display: grid; grid-template-columns: 300px minmax(0,1fr); column-gap: 50px; margin-bottom: 35px; }
.admin-grid .panel { min-width: 0; }
.admin-grid .panel h2 { margin-bottom: 23px; }
.training-panel { padding-left: 35px; border-left: 1px solid var(--line); }
.training-panel .primary { margin-top: 2px; }
.button-row { display: flex; gap: 15px; flex-wrap: wrap; margin: 18px 0; }
.text-link { font-size: 14px; }
.divider { border-top: 1px solid var(--line); margin: 25px 0; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.section-heading h2 { margin: 0; }
.report-panel { border-top: 1px solid var(--line); padding-top: 25px; }
.report-panel select { width: 150px; height: 36px; font-size: 13px; }
.table-wrap { overflow: auto; }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { color: #6b717b; font-weight: 400; background: #f7f8fa; }
td:first-child, th:first-child { padding-left: 8px; }
.quality-warning { color: #696e76; font-size: 13px; line-height: 1.6; margin: 22px 0; }
.model-summary { font-size: 14px; margin-bottom: 8px; }
.quality-subtitle { margin: 25px 0 12px; }
.report-panel details { margin-top: 18px; font-size: 14px; }
.report-panel summary { cursor: pointer; color: #4d5661; }
.report-panel pre { overflow: auto; font-size: 13px; }
.persistence-note { border-top: 1px solid var(--line); padding-top: 18px; margin-top: 28px; font-size: 12px; }
code { font-family: Consolas, monospace; }
#invite-result { margin-top: 24px; }
#invite-url { font-size: 12px; }
#training-status { margin-top: 12px; font-size: 14px; }
@media(max-width: 740px) {
  .site-header { padding: 0 22px; height: 58px; }
  .login-page { padding-top: 66px; }
  .admin-main { padding: 28px 22px; }
  .admin-header nav { gap: 15px; }
  .admin-header .site-name { font-size: 14px; }
  .page-heading { align-items: flex-start; flex-direction: column; }
  .counters { gap: 22px; flex-wrap: wrap; }
  .admin-grid { grid-template-columns: 1fr; gap: 30px; }
  .training-panel { border-left: 0; border-top: 1px solid var(--line); padding: 25px 0 0; }
  .compact-page { margin-top: 40px; }
}
