.page-shell.org-settings-mode {
  padding: 12px 10px 12px 8px;
  overflow: auto;
}

.org-settings-shell {
  width: min(1140px, 100%);
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.org-settings-head h1 {
  margin: 0;
  font-size: 26px;
  line-height: 1.06;
}

.org-settings-head .muted {
  margin-top: 4px;
  font-size: 12px;
}

.org-layout {
  display: grid;
  grid-template-columns: minmax(620px, 760px) minmax(280px, 340px);
  gap: 12px;
  align-items: start;
}

.org-layout.is-single-column {
  display: block;
}

.org-layout.is-single-column .org-config-panel {
  width: min(980px, 100%);
}

.org-config-panel {
  width: min(760px, 100%);
}

.org-side-panel {
  width: min(340px, 100%);
}

.org-side-panel.is-security-only {
  align-self: start;
}

.org-config-panel,
.org-side-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.org-side-card {
  border: 1px solid rgba(124, 164, 220, 0.28);
  border-radius: 14px;
  padding: 12px;
  background: linear-gradient(180deg, rgba(22, 43, 82, 0.72), rgba(13, 29, 57, 0.76));
  box-shadow: inset 0 1px 0 rgba(220, 235, 255, 0.07);
}

.org-side-card h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 720;
}

.org-side-lead {
  margin: 6px 0 0;
  color: #b8cbea;
  font-size: 11px;
  line-height: 1.35;
}

.org-meta-list {
  margin: 12px 0 0;
  display: grid;
  gap: 8px;
}

.org-meta-list div {
  display: grid;
  grid-template-columns: minmax(112px, 42%) 1fr;
  gap: 10px;
  align-items: center;
}

.org-meta-list dt {
  color: #9cb6da;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.org-meta-list dd {
  margin: 0;
  color: #edf4ff;
  font-size: 12px;
  font-weight: 650;
}

.org-meta-compact {
  margin-top: 10px;
}

.org-side-note {
  margin: 12px 0 0;
  color: #a8c0e1;
  font-size: 12px;
  line-height: 1.35;
}

.org-session-line {
  margin: 6px 0 0;
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  padding: 4px 10px;
  color: #d8fbe6;
  background: rgba(72, 126, 87, 0.35);
  border: 1px solid rgba(106, 177, 128, 0.4);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.org-session-line.is-signed-out {
  color: #ffe0e0;
  background: rgba(120, 71, 71, 0.32);
  border-color: rgba(211, 140, 140, 0.42);
}

.org-auth-actions {
  display: flex;
  align-items: center;
  margin-top: 10px;
  gap: 8px;
  flex-wrap: wrap;
}

.org-auth-actions .plan-btn {
  min-width: 136px;
}

.org-settings-actions {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.org-settings-actions.is-single-action .plan-btn {
  min-width: 148px;
}

.org-settings-status {
  display: inline-block;
  color: #d2e1f6;
  padding: 0;
  font-size: 12px;
  font-weight: 600;
}

.org-settings-status.is-ok {
  color: #8dd9a3;
}

.org-settings-status.is-error {
  color: #f5b0bf;
}

.org-settings-actions .plan-btn.is-offset {
  margin-left: 14px;
}

.org-settings-actions .plan-btn.is-hidden {
  display: none;
}

.org-form-sheet {
  border: 1px solid rgba(126, 162, 196, 0.75);
  border-radius: 12px;
  background: #e8edf5;
  overflow: auto;
  box-shadow: 0 18px 32px rgba(5, 12, 24, 0.3);
  max-width: 760px;
}

.org-settings-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 11px;
  color: #122642;
}

.org-settings-table th,
.org-settings-table td {
  border: 1px solid #c3cfdf;
  padding: 8px 9px;
  vertical-align: top;
}

.org-settings-table th {
  background: #dde7f5;
  font-weight: 700;
  text-align: left;
  font-size: 10px;
  color: #2a466e;
  text-transform: uppercase;
}

.org-settings-table th:nth-child(1),
.org-settings-table td:nth-child(1) {
  width: 25%;
}

.org-settings-table th:nth-child(2),
.org-settings-table td:nth-child(2) {
  width: 49%;
}

.org-settings-table.is-two-col th:nth-child(1),
.org-settings-table.is-two-col td:nth-child(1) {
  width: 32%;
}

.org-settings-table.is-two-col th:nth-child(2),
.org-settings-table.is-two-col td:nth-child(2) {
  width: 68%;
}

.org-settings-table th:nth-child(3),
.org-settings-table td:nth-child(3) {
  width: 26%;
  color: #35577f;
  font-size: 12px;
}

.org-input {
  width: 100%;
  min-height: 30px;
  border: 1px solid #98abc8;
  border-radius: 8px;
  background: #f6f9ff;
  color: #1f3556;
  padding: 6px 10px;
  font-size: 11px;
  outline: none;
}

.org-input:focus {
  border-color: #5f84be;
  box-shadow: 0 0 0 2px rgba(122, 157, 212, 0.2);
}

.org-custom-input {
  margin-top: 6px;
}

.org-custom-input.is-hidden,
.org-logo-link.is-hidden {
  display: none;
}

.org-logo-box {
  display: grid;
  gap: 8px;
}

.org-logo-preview-wrap {
  min-height: 112px;
  border: 1px dashed #9ab0cf;
  border-radius: 10px;
  background: #f6f9ff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}

.org-logo-preview {
  max-width: 100%;
  max-height: 92px;
  display: block;
  object-fit: contain;
}

.org-logo-empty {
  font-size: 12px;
  color: #48668f;
}

.org-logo-preview.is-hidden,
.org-logo-empty.is-hidden {
  display: none;
}

.org-logo-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.org-logo-file-input {
  display: none;
}

.org-logo-meta {
  font-size: 11px;
  color: #3a5c84;
}

.org-check-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.org-contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.org-check-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #aec0d8;
  border-radius: 999px;
  padding: 4px 10px;
  background: #f2f6fd;
  font-size: 11px;
  color: #2a4368;
}

.org-check-item input {
  margin: 0;
}

.org-logo-link {
  margin-top: 6px;
  display: inline-flex;
  color: #315e9f;
  font-weight: 700;
  text-decoration: none;
}

.org-logo-link:hover {
  text-decoration: underline;
}

.org-delete-box {
  margin-top: 10px;
  border: 1px solid rgba(130, 157, 196, 0.32);
  border-radius: 10px;
  padding: 10px;
  background: rgba(8, 18, 36, 0.34);
}

.org-danger-zone {
  margin-top: 10px;
  border: 1px solid rgba(225, 173, 111, 0.5);
  border-radius: 12px;
  padding: 12px;
  background: rgba(74, 49, 18, 0.2);
}

.org-danger-zone h2 {
  margin: 0;
  font-size: 16px;
  color: #ffe4c2;
}

.org-danger-note {
  margin: 8px 0;
  font-size: 12px;
  color: #f0d8b7;
}

.org-delete-confirm {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #d5e2f5;
  font-size: 12px;
}

.org-delete-confirm input {
  margin: 0;
}

.org-delete-btn {
  margin-top: 8px;
  margin-left: 0;
  width: 100%;
}

.org-delete-status {
  margin: 8px 0 0;
  font-size: 12px;
  color: #b9cee9;
}

.org-delete-status.is-ok {
  color: #9ee0b2;
}

.org-delete-status.is-error {
  color: #f1b7c5;
}

