* { box-sizing: border-box; }

    body {
      margin: 0;
      font-family: Arial, sans-serif;
      background: #f5f7fb;
      color: #172033;
    }

    .container {
      max-width: 850px;
      margin: 40px auto;
      padding: 20px;
    }

    h1 {
      margin-bottom: 6px;
    }

    .subtitle {
      color: #667085;
      margin-bottom: 25px;
    }

    .card {
      background: white;
      border: 1px solid #e4e7ec;
      border-radius: 14px;
      padding: 22px;
      margin-bottom: 18px;
    }

    @media (max-width: 374px) {
      .card {
        padding: 2px;
        margin-bottom: 2px;
        border-radius: 8px;
      }
      .inputs {
        gap: 2px;
        grid-template-columns: 1fr;
      }
      .options {
        margin-top: 0;
        gap: -1px;
      }
      .option {
        padding: 0;
        border-radius: 4px;
        font-size: 18px;
        min-height: 0;
        line-height: 1.2;
      }
      .option strong {
        display: block;
        margin-bottom: 0;
        font-size: 16px;
        font-weight: 600;
      }
      .option small {
        display: none;
      }
      .buttons {
        margin-top: 0;
        display: flex;
        gap: 2px;
      }
      .buttons button {
        flex: 1;
        padding: 10px 4px;
        font-size: 10px;
        border-radius: 4px;
      }
      label {
        font-size: 7px;
        margin-bottom: 0;
        font-weight: 600;
      }
      input {
        padding: 4px 5px;
        font-size: 10px;
        border-radius: 4px;
      }
      h1 {
        font-size: 18px;
        margin-bottom: 1px;
      }
      .subtitle {
        font-size: 10px;
        margin-bottom: 4px;
      }
      .container {
        padding: 3px;
        margin: 2px auto;
      }
      .pdf-format-group > label:first-child {
        font-size: 10px;
        margin-bottom: 1px;
      }
      .pdf-format-options {
        padding: 3px 4px;
        height: 24px;
        gap: 6px;
      }
    }

    .inputs {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 15px;
    }

    label {
      display: block;
      font-size: 13px;
      font-weight: 600;
      margin-bottom: 7px;
    }

    input {
      width: 100%;
      padding: 11px 12px;
      border: 1px solid #d0d5dd;
      border-radius: 8px;
      font-size: 16px;
    }

    .options {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 12px;
      margin-top: 20px;
    }

    .option {
      border: 2px solid #e4e7ec;
      border-radius: 12px;
      padding: 16px;
      cursor: pointer;
      transition: .15s;
      background: white;
      text-align: left;
      width: 100%;
      font: inherit;
      color: inherit;
    }

    .option:hover {
      border-color: #98a2b3;
    }

    .option:focus-visible {
      outline: 2px solid #2563eb;
      outline-offset: 2px;
    }

    .option.selected {
      border-color: #2563eb;
      background: #eff6ff;
    }

    .option strong {
      display: block;
      margin-bottom: 5px;
    }

    .option small {
      color: #667085;
}

    .pdf-format-group {
      display: block;
    }

      .pdf-format-group > label:first-child {
        display: block;
        font-size: 13px;
        font-weight: 600;
        color: #334155;
        margin-bottom: 7px;
      }

    .pdf-format-options {
      display: flex;
      align-items: center;
      gap: 12px;
      font-size: 13px;
      padding: 9px 10px;
      border: 1px solid #d0d5dd;
      border-radius: 8px;
      background: white;
      height: 42px;
      flex-wrap: nowrap;
    }

    .pdf-format-options label {
      display: flex;
      align-items: center;
      gap: 4px;
      cursor: pointer;
      margin: 0;
      flex-shrink: 0;
    }

    .pdf-format-options input[type="radio"] {
      width: auto;
      margin: 0;
      cursor: pointer;
    }

    button {
      width: 100%;
      margin-top: 18px;
      padding: 13px;
      border: 0;
      border-radius: 9px;
      background: #2563eb;
      color: white;
      font-size: 16px;
      font-weight: 600;
      cursor: pointer;
    }

    .results {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 12px;
    }

    .result {
      background: #f8fafc;
      border-radius: 10px;
      padding: 15px;
    }

    .result span {
      display: block;
      color: #667085;
      font-size: 12px;
      margin-bottom: 6px;
    }

    .result strong {
      font-size: 19px;
    }

    .schedule {
      overflow-x: auto;
      margin-top: 18px;
    }

    table {
      width: 100%;
      border-collapse: collapse;
      font-size: 14px;
    }

    th, td {
      padding: 9px;
      border-bottom: 1px solid #eaecf0;
      text-align: right;
    }

    th:first-child,
    td:first-child {
      text-align: left;
    }

    th {
      background: #2563eb;
      color: white;
      font-size: 12px;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.02em;
    }

    tbody tr:nth-child(even) {
      background: #f8fafc;
    }

    tbody tr:hover {
      background: #f1f5f9;
    }

    @media (max-width: 650px) {
      .container {
        margin: 10px auto;
        padding: 8px;
      }
      .card {
        padding: 14px;
        margin-bottom: 12px;
      }
      .inputs {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
      }
      .options {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        margin-top: 14px;
      }
      .results {
        grid-template-columns: repeat(2, 1fr);
      }
      .option {
        padding: 12px 14px;
        font-size: 14px;
      }
      .option strong {
        font-size: 14px;
      }
      .buttons {
        margin-top: 12px;
        display: flex;
        gap: 10px;
      }
      .buttons button {
        flex: 1;
        padding: 11px;
        font-size: 15px;
      }
      .subtitle {
        margin-bottom: 18px;
      }
    }