﻿body.ic-profile {
  background: #fff;
}

.ic-prof-head {
  flex-shrink: 0;
}

.ic-prof-body {
  flex: 1;
  padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px));
}

.ic-prof-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 20px 0;
  text-align: center;
}

.ic-prof-avatar-wrap {
  position: relative;
  width: 100px;
  height: 100px;
  margin-bottom: 12px;
}

.ic-prof-avatar,
.ic-prof-avatar-img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
}

.ic-prof-avatar {
  display: grid;
  place-items: center;
  background: #4e91e6;
  color: #fff;
  font-size: 34px;
  font-weight: 700;
}

.ic-prof-avatar-img {
  display: block;
  object-fit: cover;
}

.ic-prof-name {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 700;
  color: #2d3a4a;
}

.ic-prof-photo {
  border: 0;
  padding: 4px;
  background: transparent;
  color: #4e91e6;
  font-family: inherit;
  font-size: 12px;
  cursor: pointer;
}

.ic-prof-form {
  margin: 0 8px;
  padding: 16px;
  border-radius: 12px;
  background: #fff;
}

.ic-prof-field {
  margin-bottom: 16px;
}

.ic-prof-label {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  margin: 0 8px 8px 0;
  font-size: 13px;
  color: #2d3a4a;
  text-align: right;
}

.ic-prof-req {
  color: #ff0000;
  font-size: 16px;
}

.ic-prof-input {
  width: 100%;
  height: 65px;
  padding: 15px;
  border: 0;
  border-radius: 15px;
  background: #f8f8f8;
  color: #2d3a4a;
  font-family: inherit;
  font-size: 12px;
  text-align: right;
  -webkit-tap-highlight-color: transparent;
}

.ic-prof-input:focus,
.ic-prof-input:focus-visible {
  outline: none;
  box-shadow: none;
}

.ic-prof-input::placeholder {
  color: #a6a6a6;
  font-size: 10.5px;
}

.ic-prof-input.is-error {
  border: 1px solid #f1b3b3;
  background: #fceeee;
  color: #e29a9a;
}

.ic-prof-input.is-error::placeholder {
  color: #fe8080;
}

.ic-prof-foot {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  padding: 10px 20px calc(10px + env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #fff 35%);
}

.ic-prof-save {
  display: grid;
  place-items: center;
  width: 100%;
  height: 60px;
  border: 0;
  border-radius: 18px;
  background: #4e91e6;
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  cursor: pointer;
}

.ic-prof-save:disabled {
  background: #bfccd4;
  cursor: default;
}

.ic-prof-save.is-loading {
  opacity: 0.85;
  pointer-events: none;
}

.ic-prof-toast {
  position: fixed;
  left: 50%;
  bottom: calc(90px + env(safe-area-inset-bottom, 0px));
  z-index: 140;
  transform: translateX(-50%);
  padding: 12px 18px;
  border-radius: 14px;
  background: rgba(45, 58, 74, 0.92);
  color: #fff;
  font-size: 12px;
  white-space: nowrap;
  pointer-events: none;
}

.ic-prof-toast.is-warn {
  background: rgba(230, 71, 71, 0.94);
}

.ic-prof-toast[hidden],
.ic-prof-avatar-img[hidden],
.ic-prof-avatar[hidden] {
  display: none !important;
}

.ic-prof {
  min-height: calc(100dvh - 12px);
  display: flex;
  flex-direction: column;
  background: #fff;
}

