/* Approved artwork and translucency; r218 also completes the tablet/desktop layout. */
.profile-identity-card {
  position: relative;
  isolation: isolate;
  display: grid;
  width: calc(100% - 8px);
  margin: 14px auto 16px;
  overflow: hidden;
  border: 1px solid #e3d2ba;
  border-radius: 17px;
  background: radial-gradient(ellipse at 30% 100%, #fffbf3, #f5ead8);
  box-shadow: 0 6px 20px rgba(84, 53, 30, .1);
}
.profile-identity-card .profile-card-art {
  grid-area: 1 / 1;
  position: relative;
  min-width: 0;
  align-self: start;
  pointer-events: none;
}
.profile-identity-card .profile-card-art img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}
.profile-identity-card .content {
  grid-area: 1 / 1;
  position: relative;
  z-index: 1;
  align-self: center;
  width: 47%;
  min-width: 0;
  margin: 24px 0 24px 4%;
  padding: 22px 26px 28px;
  border: 1px solid rgba(255, 253, 245, .94);
  border-radius: 17px;
  background: linear-gradient(135deg, rgba(255, 253, 247, .45), rgba(249, 240, 224, .30));
  box-shadow: 0 10px 28px rgba(85, 54, 30, .12), inset 0 1px 0 #fffef8;
}
.profile-identity-card .profile-card-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  margin-bottom: 22px;
  border-bottom: 1px solid rgba(139, 105, 66, .16);
}
.profile-identity-card .profile-card-toolbar h1 {
  margin: 0;
  color: #78533e;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .08em;
}
.profile-identity-card .left {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  align-items: center;
  gap: 22px;
  min-width: 0;
}
.profile-identity-card .avatar {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  border: 4px solid #fffaf0;
  outline: 1px solid #d0b48d;
  background: #f0e5d7 url("icons/profile.svg") center / cover no-repeat;
  box-shadow: 0 5px 12px rgba(73, 45, 27, .15);
}
.profile-identity-card .info { min-width: 0; }
.profile-identity-card .name {
  color: #432e2b;
  font-size: 25px;
  line-height: 1.4;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.profile-identity-card .phone {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  margin-top: 10px;
  color: #705b4d;
  font-size: 13px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.profile-identity-card .phone-label { color: #8b7562; }
.profile-identity-card .phone [data-violin-user] { min-width: 0; }
.profile-identity-card .btn-edit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  padding: 9px 14px;
  flex: 0 0 auto;
  border: 1px solid #c9a79a;
  border-radius: 9px;
  background: rgba(255, 251, 244, .78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9);
  color: #8b3a3a;
  font: inherit;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.profile-identity-card .btn-edit svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 15px;
}
.profile-identity-card .btn-edit:hover { background: #f3e4d6; border-color: #a87668; }
.profile-identity-card .btn-edit:active { background: #ead8c8; }
.profile-identity-card .btn-edit:focus-visible { outline: 2px solid #8b3a3a; outline-offset: 4px; }
@media screen and (max-width: 599px) {
  .profile-identity-card { min-height: clamp(180px, 48vw, 240px); }
  .profile-identity-card .profile-card-art {
    position: absolute;
    inset: 0;
    height: 100%;
    align-self: stretch;
  }
  .profile-identity-card .profile-card-art img {
    height: 100%;
    object-fit: cover;
    object-position: 45% center;
  }
  .profile-identity-card .content {
    width: 67%;
    margin: 16px 0 16px 12px;
    padding: 10px 12px 14px;
    border-radius: 13px;
    box-shadow: 0 5px 15px rgba(85, 54, 30, .1), inset 0 1px 0 #fffef8;
  }
  .profile-identity-card .profile-card-toolbar { margin-bottom: 10px; padding-bottom: 8px; gap: 6px; }
  .profile-identity-card .profile-card-toolbar h1 { font-size: 12px; letter-spacing: 0; white-space: nowrap; }
  .profile-identity-card .btn-edit { min-height: 44px; padding: 7px 8px; gap: 4px; font-size: 12px; }
  .profile-identity-card .btn-edit svg { width: 12px; height: 12px; flex-basis: 12px; }
  .profile-identity-card .left { grid-template-columns: 48px minmax(0, 1fr); gap: 10px; }
  .profile-identity-card .avatar { width: 48px; height: 48px; border-width: 3px; }
  .profile-identity-card .name { font-size: 17px; line-height: 1.4; }
  .profile-identity-card .phone { display: block; margin-top: 5px; font-size: 11px; }
  .profile-identity-card .phone-label { display: block; }
}
@media screen and (min-width: 600px) and (max-width: 899px) {
  .profile-identity-card .content { width: 49%; margin: 20px 0 20px 3%; padding: 14px 18px 20px; }
  .profile-identity-card .profile-card-toolbar { margin-bottom: 16px; padding-bottom: 10px; gap: 6px; }
  .profile-identity-card .profile-card-toolbar h1 { font-size: 13px; letter-spacing: 0; }
  .profile-identity-card .btn-edit { padding: 8px 10px; font-size: 12px; }
  .profile-identity-card .left { grid-template-columns: 64px minmax(0, 1fr); gap: 16px; }
  .profile-identity-card .avatar { width: 64px; height: 64px; }
  .profile-identity-card .name { font-size: 21px; }
  .profile-identity-card .phone { font-size: 12px; }
}
@media screen and (min-width: 900px) {
  .profile-identity-card { margin-top: 18px; margin-bottom: 18px; }
}
@media screen and (min-width: 1280px) {
  .profile-identity-card .content { padding: 24px 32px 30px; }
  .profile-identity-card .profile-card-toolbar { padding-bottom: 17px; margin-bottom: 24px; }
  .profile-identity-card .left { grid-template-columns: 88px minmax(0, 1fr); gap: 24px; }
  .profile-identity-card .avatar { width: 88px; height: 88px; }
  .profile-identity-card .name { font-size: 27px; }
  .profile-identity-card .phone { font-size: 14px; margin-top: 11px; }
}

/* r206: title divider; avatar, stacked name/phone and edit button share one row. */
@media screen and (max-width: 599px) {
  .profile-identity-card { min-height: 0; }
  .profile-identity-card .profile-card-art {
    position: relative;
    inset: auto;
    height: auto;
    align-self: start;
  }
  .profile-identity-card .profile-card-art img {
    height: auto;
    object-fit: contain;
    object-position: center;
  }
  .profile-identity-card .content {
    position: absolute;
    inset: 8px;
    width: auto;
    height: auto;
    margin: 0;
    padding: 8px 12px;
    border-radius: 10px;
    display: grid;
    align-self: stretch;
    justify-self: stretch;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    align-content: center;
    align-items: center;
    gap: 6px 10px;
  }
  .profile-identity-card .profile-card-toolbar { display: contents; }
  .profile-identity-card .profile-card-toolbar h1 {
    grid-column: 1 / -1;
    grid-row: 1;
    padding-bottom: 4px;
    border-bottom: 1px solid rgba(139, 105, 66, .30);
    font-size: 12px;
    line-height: 1.3;
    letter-spacing: .04em;
  }
  .profile-identity-card .btn-edit {
    grid-column: 3;
    grid-row: 2;
    align-self: center;
    min-height: 44px;
    padding: 6px 8px;
    font-size: 12px;
    gap: 4px;
    border-radius: 8px;
  }
  .profile-identity-card .left { display: contents; }
  .profile-identity-card .info { display: block; grid-column: 2; grid-row: 2; min-width: 0; }
  .profile-identity-card .avatar { grid-column: 1; grid-row: 2; width: 48px; height: 48px; border-width: 2px; }
  .profile-identity-card .name {
    font-size: 20px;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .profile-identity-card .phone { display: block; margin: 3px 0 0; font-size: 13px; line-height: 1.4; white-space: nowrap; }
  .profile-identity-card .phone-label { display: inline; margin: 0 3px 0 0; font-size: inherit; line-height: inherit; }
}
@media screen and (min-width: 360px) and (max-width: 379px) {
  .profile-identity-card .content { grid-template-columns: 44px minmax(0, 1fr) auto; column-gap: 8px; row-gap: 5px; }
  .profile-identity-card .avatar { width: 44px; height: 44px; }
  .profile-identity-card .name { font-size: 18px; }
  .profile-identity-card .phone { font-size: 12px; }
  .profile-identity-card .btn-edit { padding-left: 6px; padding-right: 6px; font-size: 11px; }
}
@media screen and (max-width: 359px) {
  .profile-identity-card .content { padding: 5px 8px; grid-template-columns: 38px minmax(0, 1fr) auto; column-gap: 7px; row-gap: 4px; }
  .profile-identity-card .profile-card-toolbar h1 { font-size: 11px; padding-bottom: 3px; }
  .profile-identity-card .avatar { width: 38px; height: 38px; }
  .profile-identity-card .name { font-size: 16px; }
  .profile-identity-card .phone { font-size: 11px; }
  .profile-identity-card .btn-edit { padding-left: 6px; padding-right: 6px; font-size: 11px; }
}

/* r218: extend the approved inset panel and stacked identity row to wider screens. */
@media screen and (min-width: 600px) {
  .profile-identity-card .content {
    position: absolute;
    inset: clamp(16px, 2vw, 28px);
    width: auto;
    height: auto;
    margin: 0;
    padding: clamp(12px, 2vw, 28px);
    display: grid;
    grid-template-columns: clamp(64px, 8vw, 112px) minmax(0, 1fr) auto;
    grid-template-rows: auto minmax(0, 1fr);
    gap: clamp(12px, 1.6vw, 24px);
    align-items: center;
    align-self: stretch;
    justify-self: stretch;
  }
  .profile-identity-card .profile-card-toolbar { display: contents; }
  .profile-identity-card .profile-card-toolbar h1 {
    grid-column: 1 / -1;
    grid-row: 1;
    padding-bottom: clamp(8px, 1vw, 14px);
    border-bottom: 1px solid rgba(139, 105, 66, .30);
    font-size: clamp(14px, 1.4vw, 18px);
    line-height: 1.4;
    letter-spacing: .04em;
  }
  .profile-identity-card .left { display: contents; }
  .profile-identity-card .avatar {
    grid-column: 1;
    grid-row: 2;
    width: clamp(64px, 8vw, 112px);
    height: clamp(64px, 8vw, 112px);
  }
  .profile-identity-card .info { grid-column: 2; grid-row: 2; min-width: 0; }
  .profile-identity-card .name {
    font-size: clamp(23px, 2.6vw, 36px);
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .profile-identity-card .phone {
    display: block;
    margin-top: clamp(6px, .8vw, 12px);
    font-size: clamp(14px, 1.4vw, 18px);
    line-height: 1.5;
    white-space: nowrap;
  }
  .profile-identity-card .phone-label { display: inline; margin-right: 6px; }
  .profile-identity-card .btn-edit {
    grid-column: 3;
    grid-row: 2;
    align-self: center;
    min-height: 48px;
    padding: 10px clamp(12px, 1.5vw, 22px);
    font-size: clamp(13px, 1.2vw, 16px);
    white-space: nowrap;
  }
}
