.field { display: grid; gap: 6px; margin-bottom: 17px; font-size: .84rem; color: #29415d; font-weight: 600; }
.field input, .field textarea, .field select, .control { width: 100%; min-width: 0; min-height: 42px; border: 1px solid #bdccdc; border-radius: 6px; background: #fff; padding: 10px 12px; font: inherit; color: #1d3451; font-weight: 450; }
.field input:focus, .field textarea:focus, .field select:focus, .control:focus { outline: 2px solid #0985cf; outline-offset: 1px; border-color: #0985cf; }
.field textarea { resize: vertical; min-height: 110px; }
.field input[type="checkbox"] { width: 18px; min-height: 18px; height: 18px; padding: 0; }
.checkbox-field { display: flex; align-items: start; gap: 10px; font-size: .81rem; font-weight: 450; margin-bottom: 14px; }
.checkbox-field input { margin-top: 3px; }
.field-help { color: #60748b; font-size: .77rem; font-weight: 400; line-height: 1.6; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.form-notice { padding: 12px 14px; border-radius: 6px; border: 1px solid #bad7ee; background: #edf5fc; color: #1d5376; font-size: .84rem; line-height: 1.6; margin: 12px 0; overflow-wrap: anywhere; }
.form-error { border-color: #e3b4b4; background: #fff2f2; color: #8e2d2d; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 20px; }
.button:disabled { opacity: .6; }
.button-danger { background: #a93030; color: #fff; border: 1px solid #a93030; }
.button-danger:hover { background: #872626; border-color: #872626; }
.settings-card dt { color: #52617a; font-size: .8rem; margin-top: 10px; }
.settings-card dd { margin-left: 0; overflow-wrap: anywhere; }
.text-button { border: 0; padding: 5px 0; background: none; color: #006ab3; font: inherit; cursor: pointer; text-align: left; font-size: .85rem; text-decoration: underline; text-underline-offset: 3px; }
.password-line { display: flex; gap: 8px; }
.password-line input { flex: 1; }
.secret { display: block; overflow-wrap: anywhere; white-space: pre-wrap; font-family: ui-monospace, monospace; background: #eef4fa; padding: 16px; border-radius: 8px; border: 1px solid #cbdcec; font-size: .87rem; line-height: 1.8; }
dialog { border: 1px solid #cbd8e6; border-radius: 13px; box-shadow: 0 25px 100px #06132950; max-width: min(700px, calc(100vw - 32px)); width: 100%; max-height: calc(100dvh - 40px); padding: 0; color: #10213e; }
dialog::backdrop { background: #06132980; }
.dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 17px 22px; border-bottom: 1px solid #dbe3ee; background: #f5f8fc; }
.dialog-header h2 { margin: 0; font-size: 1.1rem; min-width: 0; overflow-wrap: anywhere; }
.dialog-body { padding: 22px; }
.dialog-body p { font-size: .9rem; color: #52617a; }
.dialog-close { border: 0; background: transparent; color: #3d5875; font-size: 1.35rem; padding: 1px 8px; border-radius: 5px; min-width: 36px; min-height: 36px; }
.empty-state { max-width: 500px; margin: auto; padding: 40px 25px; text-align: center; color: #5a6f87; }
.empty-state h2 { color: #29415e; font-size: 1.25rem; }
.empty-state p { font-size: .9rem; }
@media (max-width: 540px) { .form-row { grid-template-columns: 1fr; gap: 0; } }
