/* ================================================ Form controls: one consistent, polished look app-wide */
select, input[type=text], input[type=search], input[type=password], input[type=number], input[type=email], input[type=file], textarea {
  font: 400 13.5px/1.4 var(--sans);
  color: var(--ink);
  background-color: #fff;
  border: 1px solid #D5DAE1;
  border-radius: 6px;
  padding: 8px 12px;
  min-height: 38px;
  box-shadow: 0 1px 1px rgba(5, 28, 44, .04);
  transition: border-color .15s, box-shadow .15s, background-color .15s;
  outline: none;
}
select:hover, input:hover, textarea:hover { border-color: #9AA5B1; }
select:focus, input:focus, textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(34, 81, 255, .15); }
input::placeholder, textarea::placeholder { color: #9AA5B1; }
textarea { resize: vertical; min-height: 64px; line-height: 1.5; }

/* select with custom chevron */
select {
  -webkit-appearance: none; -moz-appearance: none; appearance: none;
  padding-right: 36px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23051C2C' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
select:focus { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%232251FF' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
select option { font: 400 13.5px var(--sans); color: var(--ink); background: #fff; padding: 8px 12px; }
select option:checked { background: var(--blue-soft); color: var(--blue); font-weight: 600; }
select option[value=""] { color: #9AA5B1; }
select:invalid, select.empty { color: #9AA5B1; }

/* number: hide spinners, keep it tidy */
input[type=number] { -moz-appearance: textfield; }
input[type=number]::-webkit-outer-spin-button, input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* file input */
input[type=file] { padding: 5px 8px; cursor: pointer; }
input[type=file]::file-selector-button { font: 600 12.5px var(--sans); border: 0; border-radius: 4px; background: var(--navy); color: #fff; padding: 6px 12px; margin-right: 10px; cursor: pointer; }

/* checkboxes & radios */
input[type=checkbox], input[type=radio] { accent-color: var(--blue); width: 15px; height: 15px; vertical-align: -2px; cursor: pointer; }

/* disabled */
select:disabled, input:disabled, textarea:disabled, .btn:disabled { opacity: .55; cursor: not-allowed; }

/* buttons: consistent height with inputs */
.btn { min-height: 38px; border-radius: 6px; transition: background-color .15s, border-color .15s, box-shadow .15s, transform .05s; }
.btn:active { transform: translateY(1px); }
.btn.primary:focus-visible, .btn:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(34, 81, 255, .25); }
.btn.sm { min-height: 30px; border-radius: 5px; }

/* labelled field pattern used across pages */
.form-row > label, .fld > span { letter-spacing: .01em; }

/* Weathering sidebar specifics */
.wx-side .fld { margin-bottom: 12px; }
.wx-side .fld > span { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); font-weight: 700; margin-bottom: 5px; }
.wx-side select, .wx-side input { width: 100%; }
.wx-side select.empty { color: #9AA5B1; font-style: italic; }
.wx-side .claim-in { position: relative; }
.wx-side .claim-in input { width: 100%; padding-right: 56px; }
.wx-side .claim-in em { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); pointer-events: none; }
.wx-side .scen-btn { display: flex; align-items: center; gap: 8px; min-height: 38px; }
.wx-side .scen-btn::before { content: "↺"; color: var(--blue); font-weight: 700; }
.wx-go { min-height: 44px; font-size: 14px; letter-spacing: .01em; box-shadow: 0 4px 14px rgba(5, 28, 44, .18); }
.form-sec textarea { min-height: 70px; }

/* exemptions: controls that intentionally look different */
.composer textarea, .composer textarea:hover, .composer textarea:focus { border: 0 !important; box-shadow: none !important; min-height: 0; border-radius: 0; background: transparent; padding: 14px 16px 6px; }
.sidebar-foot select { min-height: 28px; padding: 3px 26px 3px 8px; font-size: 12px; background-position: right 8px center; }
.session .t[contenteditable=true] { outline: 2px solid var(--blue-soft); }
input[type=range] { accent-color: var(--blue); min-height: 0; box-shadow: none; border: 0; padding: 0; }
