.organization-create {
  width: 100%;
  margin-top: 24px;
}

.field select {
  appearance: none;
  cursor: pointer;
  padding-right: 44px;
  background-color: rgba(255, 255, 255, .8);
  background-image:
    linear-gradient(45deg, transparent 50%, #31547c 50%),
    linear-gradient(135deg, #31547c 50%, transparent 50%),
    linear-gradient(to right, rgba(117, 145, 180, .18), rgba(117, 145, 180, .18));
  background-position:
    calc(100% - 19px) 20px,
    calc(100% - 14px) 20px,
    calc(100% - 42px) 10px;
  background-size: 5px 5px, 5px 5px, 1px 26px;
  background-repeat: no-repeat;
  transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.field select:hover {
  border-color: rgba(74, 144, 226, .38);
  background-color: #fff;
}

.profile-avatar-editor {
  display: flex;
  align-items: center;
  gap: 18px;
  max-width: 760px;
  padding: 18px;
  margin: 4px 0 6px;
  border: 1px solid rgba(123, 151, 184, .2);
  border-radius: 18px;
  background: rgba(255, 255, 255, .5);
}

.profile-avatar-editor > div:last-child {
  display: grid;
  justify-items: start;
  gap: 5px;
}

.profile-avatar-editor strong { color: var(--ink); font-size: 16px; }
.profile-avatar-editor small { color: var(--muted); line-height: 1.45; }
.profile-avatar-editor .inline-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  margin-top: 6px;
  padding: 0 15px;
  line-height: 1;
  text-decoration: none;
}

.change-avatar { white-space: nowrap; }

.avatar.avatar-large {
  flex-basis: 72px;
  width: 72px;
  height: 72px;
  border-radius: 22px;
  font-size: 22px;
}

.avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.avatar-crop-modal {
  width: min(520px, calc(100vw - 32px));
  max-width: none;
}

.avatar-modal-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.avatar-modal-heading h2 { margin-bottom: 5px; }

.modal-close {
  display: grid;
  place-items: center;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: rgba(109, 132, 163, .1);
  color: var(--muted);
  font-size: 23px;
  line-height: 1;
  cursor: pointer;
}

.avatar-file-button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin: 18px 0 14px;
  border: 1px solid rgba(74, 144, 226, .25);
  border-radius: 14px;
  background: rgba(230, 240, 255, .62);
  color: var(--blue-dark);
  font-weight: 700;
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease;
}

.avatar-file-button:hover { background: #edf5ff; border-color: rgba(74, 144, 226, .45); }

.avatar-crop-stage {
  position: relative;
  width: min(100%, 360px);
  aspect-ratio: 1;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(123, 151, 184, .28);
  border-radius: 24px;
  background: #edf3fb;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .75);
}

.avatar-crop-stage::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  border: 2px solid rgba(255, 255, 255, .92);
  border-radius: inherit;
  box-shadow: inset 0 0 0 999px rgba(16, 40, 74, .06);
}

.avatar-crop-stage canvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: grab;
  touch-action: none;
}

.avatar-crop-stage canvas.dragging { cursor: grabbing; }

.avatar-crop-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: .08em;
  pointer-events: none;
}

.avatar-crop-placeholder[hidden] { display: none; }

.avatar-zoom {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
  color: var(--ink);
  font-weight: 700;
  font-size: 13px;
}

.avatar-zoom input { width: 100%; accent-color: #4e78ee; }

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.service-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 13px;
  min-height: 92px;
  padding: 17px;
  border: 1px solid rgba(123, 151, 184, .22);
  border-radius: 18px;
  background: rgba(255, 255, 255, .62);
  color: var(--ink);
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.service-card:hover {
  transform: translateY(-2px);
  border-color: rgba(74, 144, 226, .42);
  box-shadow: 0 12px 28px rgba(32, 53, 84, .11), inset 0 1px 0 #fff;
}

.service-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, #e2efff, #e8e9ff);
  color: #245caa;
  font-size: 13px;
  font-weight: 800;
  box-shadow: inset 0 0 0 1px rgba(74, 144, 226, .12);
}

.service-copy { display: grid; gap: 4px; }
.service-copy strong { font-size: 15px; }
.service-copy small { color: var(--muted); line-height: 1.4; }
.service-arrow { color: var(--blue-dark); font-size: 22px; }

.admin-portal-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  margin: 12px 0 4px;
  border: 1px solid rgba(74, 120, 238, .24);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(226, 239, 255, .94), rgba(232, 233, 255, .92));
  color: #245caa;
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9);
}

.admin-portal-link:hover {
  border-color: rgba(74, 120, 238, .42);
  color: #173f7c;
}

.admin-financials {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
}

.admin-financials > .card:not(.full) { grid-column: span 4; }

@media (max-width: 980px) {
  .service-grid { grid-template-columns: 1fr; }
  .admin-financials > .card:not(.full) { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  .profile-avatar-editor { align-items: flex-start; }
}
