.compat-form { padding: 30px; }
.compat-grid { gap: 20px; }
.compat-field label, .compat-legend { font-size: 13px; }
.compat-required { color: #b3263e; }
.compat-input { width: 100%; min-height: 50px; border: 1px solid #aaa69d; border-radius: 4px; background: #fff; padding: 0 14px; color: var(--ink); font: inherit; }
.compat-input:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.compat-input[readonly] { background: #e9e7e1; color: #77736b; }
.compat-field--error .compat-input, .compat-field--error .segment-option__label { border-color: #b3263e; }
.compat-field-error { min-height: 18px; margin: 6px 0 0; color: #b3263e; font-size: 12px; }
.segment-control { display: grid; grid-template-columns: repeat(var(--segments), minmax(0, 1fr)); gap: 8px; }
.segment-option { position: relative; min-width: 0; cursor: pointer; }
.segment-option input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.segment-option__label { min-height: 50px; display: flex; align-items: center; justify-content: center; border: 1px solid #aaa69d; border-radius: 4px; background: #fff; color: #666159; font-size: 13px; font-weight: 800; text-align: center; }
.segment-option input:checked + .segment-option__label { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.segment-option input:focus-visible + .segment-option__label { outline: 2px solid var(--accent); outline-offset: 2px; }
.compat-time-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
.compat-time-input { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; border: 1px solid #aaa69d; border-radius: 4px; background: #fff; }
.compat-time-input:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.compat-time-input input { width: 100%; min-width: 0; height: 48px; border: 0; background: transparent; text-align: center; font: 700 16px ui-monospace, SFMono-Regular, Menlo, monospace; }
.compat-time-input input:focus { outline: 0; }
.compat-time-separator { font-weight: 900; }
.unknown-toggle { min-height: 50px; display: inline-flex !important; align-items: center; gap: 8px; margin: 0 !important; border: 1px solid #aaa69d; border-radius: 4px; background: #fff; padding: 0 13px; cursor: pointer; }
.unknown-toggle input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.unknown-toggle__box { width: 20px; height: 20px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid #8f8b83; color: transparent; }
.unknown-toggle input:checked + .unknown-toggle__box { border-color: var(--accent); background: var(--accent); color: #fff; }
.unknown-toggle input:focus-visible + .unknown-toggle__box { outline: 2px solid var(--accent); outline-offset: 2px; }
.city-combobox { position: relative; }
.city-options { position: absolute; left: 0; right: 0; top: calc(100% - 14px); z-index: 30; max-height: var(--city-options-max-height, 240px); overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; margin: 0; padding: 6px; border: 1px solid #aaa69d; background: #fff; box-shadow: 0 18px 34px rgba(20,18,15,.14); list-style: none; }
.city-options[data-placement="above"] { top: auto; bottom: calc(100% + 6px); }
.city-options[hidden] { display: none; }
.city-option { width: 100%; min-height: 44px; border: 0; background: #fff; padding: 10px 12px; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.city-option:hover, .city-option[aria-selected="true"] { background: var(--accent-soft); color: var(--accent); font-weight: 800; }
.city-option mark { background: transparent; color: inherit; text-decoration: underline; }
.compat-status { min-height: 22px; margin: 16px 0 0; color: #b3263e; font-size: 13px; font-weight: 700; }
@media (max-width: 840px) {
  .compat-form { padding: 22px 16px; }
  .compat-time-row { grid-template-columns: 1fr; }
  .unknown-toggle { width: 100%; }
  .segment-option__label, .compat-input, .unknown-toggle { min-height: 52px; }
}
