/* Cabinet: organizations (firms). Uses the tokens of profile.css. */
.orgs { margin-bottom: var(--sp-800); scroll-margin-top: var(--sp-900); }
.org-forms { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-200); margin-bottom: var(--sp-200); }
.org-form { display: flex; align-items: flex-end; gap: var(--sp-100); padding: var(--sp-200) var(--sp-300); }
.org-form label { display: flex; flex-direction: column; gap: var(--sp-50); flex: 1; font-size: 14px; line-height: 20px; color: var(--muted); }
.org-form input { width: 100%; }
.org-list { display: grid; gap: var(--sp-300); }
.org { display: flex; flex-direction: column; gap: var(--sp-300); padding: var(--sp-300); }
.org-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-100); }
.org-top h3 { font-size: 24px; line-height: 32px; }
.org-top .chips { display: flex; flex-wrap: wrap; gap: var(--sp-75); }
.chip { padding: var(--sp-25) var(--sp-75); background: var(--s3); border-radius: var(--r-lg); font-size: 12px; line-height: 16px; color: var(--muted); }
.org-block { display: flex; flex-direction: column; gap: var(--sp-100); padding-top: var(--sp-200); border-top: 1px solid var(--s3); }
.org-block h4 { font-size: 16px; line-height: 24px; font-weight: 600; }
.org-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-100); }
.org-row input[type="url"], .org-row input[type="text"] { flex: 1; min-width: 220px; }
.org-usage { display: flex; flex-direction: column; gap: var(--sp-50); max-width: 360px; }
.org-usage .progress { height: 6px; }
.members, .invites { display: grid; gap: var(--sp-75); }
.members li, .invites li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-100); padding: var(--sp-100) var(--sp-200); background: var(--s2); border-radius: var(--r-xl); }
.member-info { display: flex; flex-direction: column; min-width: 0; }
.member-info small { color: var(--muted); }
.member-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-75); }
.invite-code { font-family: ui-monospace, Consolas, monospace; font-size: 16px; letter-spacing: 0.04em; }
.invite-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--sp-100); }
.invite-form label { display: flex; flex-direction: column; gap: var(--sp-50); font-size: 12px; line-height: 16px; color: var(--muted); }
.invite-form input { width: 96px; }
.new-code { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-100); padding: var(--sp-100) var(--sp-200); background: var(--s2); border: 1px solid var(--accent); border-radius: var(--r-xl); }
.org-notice { margin-bottom: var(--sp-200); }
@media (max-width: 720px) {
  .org-forms { grid-template-columns: 1fr; }
  .org { padding: var(--sp-200); }
}

/* Form controls (profile.css has none; same look as in the admin panel). */
.orgs { margin-top: var(--sp-700); }
.orgs input, .orgs select { font: 400 14px/20px Manrope, sans-serif; color: var(--text); background: var(--s2); border: 1px solid var(--s3); border-radius: var(--r-lg); padding: var(--sp-75) var(--sp-100); transition: border-color 300ms var(--ease); color-scheme: dark; }
.orgs input::placeholder { color: var(--muted); }
.orgs input:hover, .orgs select:hover { border-color: var(--s4); }
.orgs input:focus-visible, .orgs select:focus-visible { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.org-form .btn { flex: none; }
.org-link { color: var(--accent); overflow-wrap: anywhere; }
.org-forms[hidden] { display: none; }
