.settings-write{border:0;padding:0;margin:0;min-width:0}
.settings-write[disabled]{opacity:.7}
.settings-write-feedback:empty{display:none}
.settings-write-feedback p{margin-block:8px}
.settings-connection-search{display:flex;gap:8px;align-items:end;max-width:640px;margin-block:16px}
.settings-connection-search label{flex:1;min-width:0}
.settings-connection-search input{display:block;width:100%;margin-top:4px}
.settings-connection-search button{flex:none}
.connection-item .settings-source-scope{grid-column:1/-1;margin:0;color:var(--muted)}
.settings-evidence{display:grid;grid-template-columns:minmax(120px,1fr) minmax(0,2fr);gap:8px 16px;margin-block:16px}
.settings-evidence dt{font-weight:600}.settings-evidence dd{margin:0;overflow-wrap:anywhere}
.settings-notification-summary{padding:16px 0;border-bottom:1px solid var(--border)}
.settings-notification-summary h2,.settings-notification-summary h3{margin-top:0}
.settings-notification-summary p{margin-block:6px}
.settings-staff-panel{max-width:800px}.settings-staff-panel .settings-staff-location{display:block;margin-block:16px}
.settings-staff-location select{display:block;width:100%;margin-top:6px}
.settings-staff-entry{border-bottom:1px solid var(--border);padding-block:14px;display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
.settings-staff-entry p{margin:4px 0}.settings-staff-entry strong{overflow-wrap:anywhere}
.settings-invite-result{padding:16px;background:var(--accent-soft);border-radius:var(--radius);margin-block:16px;overflow-wrap:anywhere}
.settings-invite-result input{width:100%}
.settings-legacy-team>summary,.settings-connections-other>summary{min-height:48px;padding-block:12px;cursor:pointer}
.settings-legacy-team .card{margin-block:12px}
.settings-team-person{border-bottom:1px solid var(--border);padding-block:12px}
.settings-team-person>summary{cursor:pointer;min-height:44px;font-weight:600;overflow-wrap:anywhere}
.settings-connections .connection-actions:empty{display:none}
@media(max-width:640px){.settings-connections .connection-item{grid-template-columns:1fr}.settings-connections .connection-identity,.settings-connections .connection-more{grid-column:1/-1}.settings-connections .connection-item>.badge{justify-self:start}.settings-connections .connection-actions{justify-self:start}}
@media(max-width:520px){.settings-evidence{grid-template-columns:1fr;gap:3px}.settings-evidence dd{margin-bottom:10px}.settings-staff-entry{display:block}.settings-staff-entry button{margin-top:8px;width:100%}.settings-connection-search{align-items:stretch}.settings-connection-search button{padding-inline:12px}}

.settings-connections .connection-item>section,.settings-source-issue,.settings-source-next{grid-column:1/-1;margin-block:0}
.settings-source-diagnostics>summary,.settings-source-access>summary{min-height:44px;padding-block:10px;cursor:pointer}
.settings-source-access button{margin-block:4px}

/* Owner password editing: compact, explicit fields and no empty alerts. */
.personal-profile .error:empty{display:none}
.personal-profile form[aria-label="Изменить пароль владельца"]{display:grid;gap:8px;max-width:640px;margin-top:12px}
.personal-profile form[aria-label="Изменить пароль владельца"] label{margin:4px 0 0}
.personal-profile form[aria-label="Изменить пароль владельца"] button[type="submit"]{justify-self:start;margin-top:8px}
.personal-profile form[aria-label="Изменить пароль владельца"] p:empty{display:none}

/* External styles are required by production CSP; keep the eye inside its input. */
.personal-profile .profile-password-field{position:relative;min-width:0;width:100%}
.personal-profile .profile-password-field input{display:block;width:100%;min-width:0;box-sizing:border-box;margin:0;padding-right:52px}
.personal-profile .profile-password-field .profile-password-toggle{position:absolute;top:1px;right:1px;bottom:1px;width:44px;min-width:44px;min-height:42px;margin:0;padding:0;display:flex;align-items:center;justify-content:center;border:0;border-radius:9px;background:transparent;color:var(--muted,#63718b)}
.personal-profile .profile-password-field .profile-password-toggle:hover{background:#f0edff;color:#5544df}
.personal-profile .profile-password-toggle svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
.personal-profile .profile-password-toggle[aria-pressed="true"]{color:#5544df}

/* Occasional monthly expense export: collapsed, secondary controls. */
.financial-expense-export{margin:16px 0;color:var(--muted,#60708d)}
.financial-expense-export>summary{cursor:pointer;font-size:14px;font-weight:600;width:fit-content;padding:8px 0}
.financial-expense-export-controls{display:flex;gap:12px;align-items:center;flex-wrap:wrap}
.financial-expense-export-controls label{display:flex;gap:10px;align-items:center;margin:0}
.financial-expense-export-controls input{width:190px;margin:0}
.financial-expense-export p{font-size:14px;margin:8px 0}

/* Closing: clear physical sequence, one primary completion action. */
.financial-close-ready{border-left:4px solid #27815a;border-radius:10px;background:#eef8f1;padding:12px 16px;margin:12px 0;color:#236443}
.financial-close-ready strong{font-size:1.15rem;font-weight:750}
.financial-close-ready p,.financial-count-instruction{margin:8px 0;line-height:1.45}
.financial-close-optional{margin:10px 0}
.financial-close-optional>summary{cursor:pointer;font-size:.94rem;color:#586580}
.financial-expense-voided{color:#a95359;font-weight:600}

.financial-control .financial-close-optional{border:0;padding:0;margin:8px 0}
.financial-control .financial-close-optional>summary{min-height:34px;font-weight:500}
.financial-control .financial-pane .financial-finish-form{padding:8px 0;margin:0;border-bottom:0}
