* { box-sizing: border-box; }

    html, body {
      margin: 0;
      min-height: 100%;
      background: #fff;
    }

    body {
      font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
      color: #2e4457;
    }

    .page {
      min-height: 100vh;
      padding: 16px 24px 48px;
    }

    .logo {
      display: block;
      width: 90px;
      height: 50px;
      object-fit: contain;
      margin: 0 auto;
    }

    .panel {
      width: min(562px, 100%);
      margin: 63px auto 0;
      padding: 36px 50px 40px;
      background: rgb(240, 240, 240);
    }

    .screen { display: none; }
    .screen.active { display: block; }

    .title {
      margin: 0 0 20px;
      font-size: 2.25rem;
      line-height: 1.2;
      font-weight: 500;
      letter-spacing: -.7px;
    }

    .login-title {
      font-size: 1.9375rem;
      font-weight: 300;
      letter-spacing: -.5px;
      color: #3f3f3f;
    }

    .email-wrap { position: relative; }

    .mail-icon {
      position: absolute;
      left: 12px;
      top: 50%;
      width: 26px;
      height: 20px;
      transform: translateY(-50%);
      pointer-events: none;
      opacity: .9;
    }

    .email-input {
      display: block;
      width: 100%;
      min-height: 44px;
      padding: 8px 14px 8px 43px;
      border: 1px solid #c9c9c9;
      border-radius: 5px;
      outline: none;
      background: #fff;
      color: #444;
      font: 1.125rem/1.4 "Helvetica Neue", Helvetica, Arial, sans-serif;
      box-shadow: inset 0 1px 1px rgba(0,0,0,.075);
      transition: border-color .15s ease, box-shadow .15s ease;
    }

    .email-input::placeholder { color: #767676; }

    .email-input:focus {
      border-color: #66afe9;
      box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 0 3px rgba(102,175,233,.22);
    }

    .continue-btn {
      margin-top: 22px;
      min-height: 44px;
      padding: 10px 22px;
      border: 1px solid #4cae4c;
      background: #5cb85c;
      color: #fff;
      font: 1rem/1.4 "Helvetica Neue", Helvetica, Arial, sans-serif;
      cursor: pointer;
    }

    .continue-btn:hover { background: #449d44; }
    .continue-btn:focus-visible { outline: 3px solid #456b8a; outline-offset: 4px; }

    .results-panel {
      width: min(920px, 100%);
      padding: 36px 40px 28px;
      border: 1px solid #dbe4ec;
      border-radius: 20px;
      background: #f5f8fa;
      box-shadow: 0 12px 36px rgba(54, 79, 100, .07);
    }

    .results-title { margin-bottom: 26px; }
    .results-title:focus { outline: none; }

    .participant-info {
      display: flex;
      justify-content: space-between;
      gap: 20px;
      margin: 0 0 28px;
    }

    .participant-info > div { min-width: 0; }

    .participant-info dt {
      margin-bottom: 8px;
      font-size: .875rem;
      line-height: 1.4;
      color: #5a7082;
    }

    .participant-info dd {
      margin: 0;
      font-size: 1rem;
      line-height: 1.5;
      font-weight: 500;
    }

    .participant-email { overflow-wrap: anywhere; }
    .participant-class { flex-shrink: 0; text-align: right; }

    .class-badge {
      display: inline-block;
      padding: 4px 12px;
      border: 1px solid #cbdce9;
      border-radius: 7px;
      background: #e6eff6;
      color: #355b78;
    }

    .table-wrap {
      overflow-x: auto;
      border: 1px solid #cbdce9;
      border-radius: 14px;
    }

    .scores-table {
      width: 100%;
      min-width: 16rem;
      border-collapse: collapse;
      table-layout: fixed;
      font-variant-numeric: tabular-nums;
    }

    .scores-table th {
      padding: 18px 8px;
      border-bottom: 1px solid #cbdce9;
      background: #dfeaf3;
      color: #42647e;
      font-size: 1rem;
      line-height: 1.4;
      font-weight: 500;
      text-align: center;
    }

    .scores-table th + th,
    .scores-table tbody td + td { border-left: 1px solid #d2e0eb; }

    .scores-table tbody td {
      padding: 30px 8px;
      background: #edf3f8;
      text-align: center;
    }

    .task-score {
      display: inline-flex;
      align-items: baseline;
      font-size: 2rem;
      line-height: 1.25;
      font-weight: 600;
      color: #2f5573;
    }

    .score-max {
      font: inherit;
      color: inherit;
    }

    .scores-table tfoot td {
      padding: 0;
      border-top: 1px solid #cbdce9;
      background: #dde9f2;
    }

    .total-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      flex-wrap: wrap;
      gap: 12px 20px;
      padding: 20px 24px;
    }

    .total-label { font-size: 1rem; line-height: 1.4; font-weight: 500; color: #42647e; }

    .total-result {
      display: flex;
      align-items: center;
      gap: 12px;
    }

    .total-icon {
      display: grid;
      place-items: center;
      width: 42px;
      height: 42px;
      border: 1px solid #bed2e3;
      border-radius: 50%;
      background: #edf4fa;
      color: #3d6f94;
    }

    .total-icon svg { width: 24px; height: 24px; }
    .total-score { display: inline-flex; align-items: baseline; font-size: 2.125rem; line-height: 1.25; font-weight: 600; }

    .demo-note {
      margin: 16px 0 0;
      font-size: .875rem;
      line-height: 1.5;
      color: #607588;
    }

    .sr-only {
      position: absolute;
      width: 1px;
      height: 1px;
      padding: 0;
      margin: -1px;
      overflow: hidden;
      clip-path: inset(50%);
      white-space: nowrap;
      border: 0;
    }

    .task-short { display: none; }

    @media (max-width: 640px) {
      .page { padding: 16px 14px 32px; }
      .panel { margin-top: 40px; padding: 28px 24px 32px; }
      .login-title { font-size: 1.6875rem; }
      .results-panel { padding: 26px 20px 22px; border-radius: 16px; }
      .results-title { font-size: 1.875rem; margin-bottom: 24px; }
      .participant-info { flex-direction: column; gap: 18px; margin-bottom: 24px; }
      .participant-class { text-align: left; }
      .participant-info dt { margin-bottom: 5px; }
      .scores-table th { padding: 14px 4px; font-size: .875rem; }
      .task-word { display: none; }
      .task-short { display: inline; }
      .scores-table tbody td { padding: 24px 4px; }
      .task-score { font-size: 1.375rem; }
      .total-row { padding: 18px 16px; }
      .total-score { font-size: 1.875rem; }
      .total-icon { width: 36px; height: 36px; }
      .total-icon svg { width: 21px; height: 21px; }
    }

    @media (max-width: 360px) {
      .results-panel { padding-right: 14px; padding-left: 14px; }
      .total-row { padding-right: 12px; padding-left: 12px; gap: 12px; }
      .total-result { gap: 8px; }
    }

/* Server-rendered form feedback and return navigation. */
html { color-scheme: light; }
.demo-note a { color: inherit; text-underline-offset: 3px; }
.demo-note a:focus-visible { outline: 3px solid #456b8a; outline-offset: 4px; }
.form-error { margin: 12px 0 0; color: #a23630; font-size: .875rem; line-height: 1.5; }
.email-input[aria-invalid="true"] { border-color: #a23630; }
.lookup-message { margin: 22px 0 0; padding: 14px 16px; border-left: 3px solid #a23630; background: #f9eeeb; color: #6b3934; }
.lookup-message h2 { margin: 0 0 6px; font-size: 1rem; line-height: 1.4; font-weight: 500; }
.lookup-message p { margin: 0; font-size: .875rem; line-height: 1.5; }

/* Public criteria and organizer contact, matching approved mockup v2. */
    [hidden] { display: none !important; }
    .text-btn { padding: 9px 0; min-height: 38px; border: 0; background: none; color: #607588; font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
    .text-btn:hover { color: #2e4457; }
    .text-btn:focus-visible, .contact-link:focus-visible { outline: 3px solid #456b8a; outline-offset: 4px; }
    .result-actions { margin: 16px 0 0; color: #607588; font-size: .875rem; line-height: 1.5; }
    .result-actions .text-btn { padding: 0; min-height: 24px; }
    .criteria-section { margin: 30px 0 0; padding-top: 28px; border-top: 1px solid #cbdce9; }
    .criteria-heading { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 20px; }
    .section-title { margin: 0; color: #2e4457; font-size: 1.5rem; font-weight: 500; line-height: 1.3; letter-spacing: -.3px; }
    .section-subtitle { margin: 8px 0 0; font-size: .875rem; line-height: 1.5; color: #607588; }
    .expand-button { white-space: nowrap; font-size: .875rem; }
    .criteria-list { border: 1px solid #cbdce9; border-radius: 14px; overflow: hidden; }
    .criterion-task + .criterion-task { border-top: 1px solid #cbdce9; }
    .criterion-task summary { padding: 18px 24px; display: flex; gap: 16px; align-items: center; background: #dfeaf3; color: #42647e; cursor: pointer; list-style: none; }
    .criterion-task summary::-webkit-details-marker { display: none; }
    .criterion-task summary:hover { background: #dde9f2; }
    .criterion-task summary:focus-visible { outline: 3px solid #456b8a; outline-offset: -4px; }
    .criterion-name { font-size: 1rem; line-height: 1.4; font-weight: 500; flex: 1; }
    .criterion-max { color: #42647e; font-size: .875rem; white-space: nowrap; }
    .criterion-chevron { display: block; width: 8px; height: 8px; margin: 0 3px 3px 5px; border: solid #42647e; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
    .criterion-task[open] .criterion-chevron { transform: rotate(225deg); margin-top: 5px; }
    .criterion-content { padding: 0 24px 20px; background: #edf3f8; border-top: 1px solid #cbdce9; }
    .scoring-note { margin: 0; padding: 17px 0 13px; color: #607588; font-size: .875rem; line-height: 1.5; }
    .criteria-table { width: 100%; border-collapse: collapse; font-size: 1rem; line-height: 1.5; }
    .criteria-table th { font-weight: 500; font-size: .875rem; color: #42647e; text-align: left; padding: 10px 0; border-bottom: 1px solid #cbdce9; }
    .criteria-table td { padding: 16px 0; vertical-align: top; border-bottom: 1px solid #d2e0eb; overflow-wrap: anywhere; }
    .criteria-table tr:last-child td { border-bottom: 0; }
    .criteria-table th:last-child, .criteria-table td:last-child { width: 78px; text-align: right; padding-left: 16px; }
    .criterion-points { font-weight: 600; font-variant-numeric: tabular-nums; color: #2f5573; white-space: nowrap; }
    .criterion-notes { margin: 10px 0 0; padding-left: 20px; color: #607588; font-size: .875rem; line-height: 1.5; }
    .criterion-notes li + li { margin-top: 6px; }
    .organizer-contact { margin: 28px 0 0; padding-top: 24px; border-top: 1px solid #cbdce9; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px 20px; }
    .contact-title { margin: 0 0 7px; color: #2e4457; font-size: 1rem; line-height: 1.4; font-weight: 500; }
    .contact-description { margin: 0; color: #607588; font-size: .875rem; line-height: 1.5; }
    .contact-link { display: inline-flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid #cbdce9; border-radius: 7px; background: #e6eff6; color: #355b78; text-decoration: none; font-size: 1rem; line-height: 1.5; font-weight: 500; white-space: nowrap; }
    .contact-link:hover { background: #dfeaf3; text-decoration: underline; text-underline-offset: 3px; }
    .contact-link svg { width: 20px; height: 20px; flex-shrink: 0; }
    @media (max-width: 640px) {
      .criteria-section { margin-top: 24px; padding-top: 24px; }
      .criteria-heading { gap: 4px; margin-bottom: 14px; }
      .section-title { font-size: 1.375rem; }
      .criterion-task summary { padding: 16px; gap: 10px; }
      .criterion-content { padding: 0 16px 16px; }
      .criteria-table { font-size: .875rem; }
      .criteria-table th:last-child, .criteria-table td:last-child { width: 50px; padding-left: 10px; }
      .organizer-contact { align-items: flex-start; flex-direction: column; }
    }
    @media print {
      .result-actions, .expand-button { display: none !important; }
      .criterion-task { break-inside: avoid; }
    }
