.form { display: grid; gap: 14px; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px 14px; align-items: start; }
.field { display: grid; gap: 5px; min-width: 0; }
.field > span { font-size: 12.5px; font-weight: 650; color: var(--text-muted); }
.field.inline { display: flex; align-items: center; gap: 8px; }
.field.inline > span { white-space: nowrap; }
.field.grow { flex: 1; }
.input {
  width: 100%; height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--border-strong); background: var(--surface);
  color: var(--text); font-size: 14px; transition: border-color var(--t-fast), box-shadow var(--t-fast), background var(--t-fast); min-width: 0;
}
textarea.input { height: auto; padding: 9px 12px; resize: vertical; line-height: 1.45; }
select.input { padding-right: 32px; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%235D6E68' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; cursor: pointer; }
.input:hover { border-color: color-mix(in srgb, var(--secondary) 45%, var(--border-strong)); }
.input:focus { outline: none; border-color: var(--secondary); box-shadow: var(--ring); }
.input:disabled, .input[readonly] { background: var(--surface-2); color: var(--text-muted); cursor: default; }
.input.readonly { display: flex; align-items: center; gap: 6px; background: var(--surface-2); color: var(--text-muted); border-style: dashed; }
.input.invalid { border-color: var(--danger); }
.input.big { height: 48px; font-size: 18px; font-weight: 700; }
.input.num { font-family: var(--font-data); font-variant-numeric: tabular-nums; text-align: right; }
.input.readonly.num { justify-content: flex-end; color: var(--text); font-weight: 700; }
input[type="date"].input { font-family: var(--font-data); }
.money-input { position: relative; display: flex; align-items: center; }
.money-input > span { position: absolute; left: 11px; color: var(--text-faint); font-weight: 700; pointer-events: none; font-family: var(--font-data); }
.money-input .input { padding-left: 26px; }
.money-input.suffix > span { left: auto; right: 12px; }
.money-input.suffix .input { padding-left: 12px; padding-right: 30px; }
.money-input.sm .input { height: 34px; width: 140px; }
.money-input.big > span { font-size: 18px; }
.with-btn { display: flex; gap: 6px; align-items: center; }
.with-btn > :first-child { flex: 1; min-width: 0; }
.sim-btn { border: 1px dashed var(--border-strong) !important; color: var(--purple); flex: none; height: 48px; width: 44px; }
.sim-btn:hover { background: var(--purple-bg); }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; cursor: pointer; }
.check input { width: 17px; height: 17px; accent-color: var(--secondary); }
.fs { border: 1px solid var(--border); border-radius: var(--r); padding: 12px 14px; margin: 0; display: grid; gap: 8px; }
.fs legend { font-size: 12.5px; font-weight: 700; color: var(--text-muted); padding: 0 6px; }
.form-actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; padding: 4px 0 0; }
.card > .form-actions { padding: 14px 20px; border-top: 1px solid var(--border); }
.seg { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--surface-3); gap: 2px; }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: block; padding: 7px 14px; border-radius: 8px; font-weight: 650; font-size: 13px; color: var(--text-muted); }
.seg input:checked + span { background: var(--surface); color: var(--primary); box-shadow: var(--shadow-sm); }
.seg input:focus-visible + span { box-shadow: var(--ring); }

/* Combobox */
.combo { position: relative; }
.combo-field { position: relative; display: flex; align-items: center; }
.combo-field .combo-ico { position: absolute; left: 11px; color: var(--text-faint); pointer-events: none; width: 16px; height: 16px; }
.combo-field > svg { position: absolute; left: 11px; color: var(--text-faint); pointer-events: none; width: 16px; height: 16px; }
.combo-input { padding-left: 34px; padding-right: 34px; }
.combo.has-value .combo-input { font-weight: 650; border-color: color-mix(in srgb, var(--secondary) 50%, var(--border-strong)); }
.combo-clear { position: absolute; right: 5px; }
.combo-list { position: absolute; z-index: 120; top: calc(100% + 4px); left: 0; right: 0; max-height: 300px; overflow-y: auto; margin: 0; padding: 5px; list-style: none; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); box-shadow: var(--shadow-lg); }
.combo-list li { display: flex; flex-direction: column; padding: 8px 10px; border-radius: 8px; cursor: pointer; }
.combo-list li span { font-weight: 600; font-size: 13.5px; }
.combo-list li small { color: var(--text-muted); font-size: 12px; }
.combo-list li.active, .combo-list li:hover { background: var(--sage); }
.combo-list .combo-empty { color: var(--text-muted); cursor: default; }
