/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > span, .field > label { font-size: 12px; color: var(--ink-2); font-weight: 500; }
.field small { color: var(--ink-3); }
input[type=text], input[type=password], input[type=search], input[type=number], input[type=date], select, textarea { width: 100%; padding: 8px 11px; border: 1px solid var(--field); border-radius: var(--r); background: var(--btn); min-height: 36px; transition: border-color var(--t1) ease-out, box-shadow var(--t1) ease-out; }
select { background-color: var(--well); }
input:hover, select:hover, textarea:hover { border-color: var(--ink-3); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 1px var(--focus); }
input[type=checkbox] { accent-color: var(--brand); width: 16px; height: 16px; }
textarea { resize: vertical; min-height: 64px; }
::placeholder { color: var(--ink-3); opacity: .7; }
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; padding: 14px 22px; border-bottom: 1px solid var(--line); }
.toolbar .search { flex: 1 1 220px; }
.toolbar select { width: auto; flex: 0 1 auto; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.form-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; position: relative; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch .track { width: 46px; height: 28px; border-radius: 99px; background: var(--switch-off); box-shadow: inset 0 0 0 1px var(--field); position: relative; transition: background var(--t2) ease-out, box-shadow var(--t2) ease-out; flex: none; }
.switch .track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 24px; height: 24px; border-radius: 50%; background: var(--knob); transition: transform 260ms var(--ease-ios), width 160ms ease-out; }
.switch:active .track::after { width: 28px; }
.switch input:checked + .track { background: var(--switch-on); box-shadow: inset 0 0 0 1px var(--switch-on); }
.switch input:checked + .track::after { transform: translateX(18px); }
.switch:active input:checked + .track::after { transform: translateX(14px); }
.switch input:focus-visible + .track { outline: 2px solid var(--focus); outline-offset: 2px; }
.setting { display: flex; gap: 12px 16px; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; padding: 16px 0; border-bottom: 1px solid var(--line); }
.setting > div:first-child { flex: 1 1 220px; min-width: 0; }
.setting:last-child { border-bottom: 0; padding-bottom: 0; }
.setting:first-child { padding-top: 0; }
.setting p { color: var(--ink-3); font-size: 12.5px; max-width: 60ch; margin-top: 2px; }

