/* Demo-only alignment and profile surfaces. Existing copy, DOM actions,
   platinum artwork, access states and purchase dock are deliberately untouched. */
.frame.ios27-demo #screen-services.kd-services-design .group > .list-row{
  display:grid;
  grid-template-columns:32px minmax(0,1fr) 18px;
  align-items:center;
  column-gap:14px;
  min-height:96px;
  padding:19px 0;
  text-align:left;
}
.frame.ios27-demo #screen-services.kd-services-design .group > .list-row .row-icon{
  display:grid;
  place-items:center;
  align-self:center;
  width:32px;
  height:40px;
  min-width:32px;
  margin:0;
  color:var(--muted);
}
.frame.ios27-demo #screen-services.kd-services-design .group > .list-row .row-icon svg{
  width:25px;
  height:25px;
  stroke-width:1.65;
}
.frame.ios27-demo #screen-services.kd-services-design .group > .list-row .row-copy{
  display:grid;
  grid-template-columns:minmax(0,1fr);
  align-items:center;
  gap:6px;
  min-width:0;
}
.frame.ios27-demo #screen-services.kd-services-design .group > .list-row .row-copy strong{
  max-width:none;
  font-size:20px;
  font-weight:720;
  line-height:1.24;
  letter-spacing:-.48px;
  overflow-wrap:normal;
}
.frame.ios27-demo #screen-services.kd-services-design .group > .list-row .row-copy small{
  display:block;
  max-width:43ch;
  margin:0;
  color:var(--muted);
  font-size:13px;
  line-height:1.5;
  letter-spacing:0;
}
.frame.ios27-demo #screen-services.kd-services-design .group > .list-row > .chevron{
  display:grid;
  place-items:center;
  align-self:center;
  width:18px;
  height:24px;
  margin:0;
  color:var(--muted);
}
.frame.ios27-demo #screen-services.kd-services-design .group > .list-row > .chevron svg{
  width:16px;
  height:16px;
}
.frame.ios27-demo #screen-services.kd-services-design .group > .list-row + .list-row::before{
  left:46px;
  right:0;
}

/* A single identity surface, then an aligned settings group. No new statuses. */
.frame.ios27-demo #screen-profile{
  padding:24px 20px 26px;
  background:var(--paper);
}
.frame.ios27-demo #screen-profile .page-heading{
  margin-bottom:20px;
}
.frame.ios27-demo #screen-profile .page-heading h1{
  font-size:30px;
  font-weight:780;
  line-height:1.1;
  letter-spacing:-1px;
}
.frame.ios27-demo #screen-profile .page-heading p{
  max-width:42ch;
  margin-top:8px;
  color:var(--muted);
  font-size:13px;
  line-height:1.5;
}
.frame.ios27-demo #screen-profile .profile-card{
  padding:22px 20px 20px;
  margin:0 auto 18px;
  border:1px solid var(--line);
  border-radius:24px;
  background:var(--surface);
  box-shadow:0 7px 22px #10223506,inset 0 1px 0 #ffffffa3;
}
.frame.ios27-demo #screen-profile .profile-identity{
  display:flex;
  align-items:center;
  gap:14px;
  min-width:0;
}
.frame.ios27-demo #screen-profile .profile-avatar{
  display:grid;
  place-items:center;
  flex:0 0 52px;
  width:52px;
  height:52px;
  border:1px solid #d7e4ff;
  border-radius:17px;
  background:#eef3ff;
  color:#245edb;
  box-shadow:inset 0 1px 0 #ffffffc4;
}
.frame.ios27-demo #screen-profile .profile-avatar svg{
  width:27px;
  height:27px;
  stroke-width:1.6;
}
.frame.ios27-demo #screen-profile .profile-identity > div:last-child{
  min-width:0;
}
.frame.ios27-demo #screen-profile .profile-identity h2{
  color:var(--ink);
  font-size:21px;
  font-weight:740;
  line-height:1.18;
  letter-spacing:-.55px;
  overflow-wrap:anywhere;
}
.frame.ios27-demo #screen-profile .profile-identity p{
  margin-top:5px;
  color:var(--muted);
  font-size:12px;
  line-height:1.35;
}
.frame.ios27-demo #screen-profile .profile-card > p{
  max-width:53ch;
  margin:17px 0 19px;
  color:var(--muted);
  font-size:13px;
  line-height:1.6;
}
.frame.ios27-demo #screen-profile .profile-card > .primary-button{
  min-height:50px;
  width:100%;
  padding:12px 15px;
  border:1px solid #1e54cb;
  border-radius:16px;
  background:#245edb;
  color:#fff;
  box-shadow:0 3px 8px #245edb14,inset 0 1px 0 #ffffff20;
  font-size:14px;
  font-weight:650;
  line-height:1.3;
  letter-spacing:-.15px;
}
.frame.ios27-demo #screen-profile .profile-card > .primary-button svg{
  width:20px;
  height:20px;
}
.frame.ios27-demo #screen-profile .profile-card > .primary-button:active{
  background:#1c50c5;
}
.frame.ios27-demo #screen-profile .profile-free{
  align-items:flex-start;
  gap:9px;
  margin:0 auto 23px;
  padding:0 3px;
  color:var(--muted);
  font-size:12px;
  line-height:1.5;
}
.frame.ios27-demo #screen-profile .profile-free svg{
  width:17px;
  height:17px;
  margin-top:1px;
  color:var(--accent);
}
.frame.ios27-demo #screen-profile > .section-title{
  margin-bottom:10px;
  padding-inline:2px;
  color:var(--muted);
  font-size:12px;
  font-weight:650;
  line-height:1.35;
  letter-spacing:.01em;
}
.frame.ios27-demo #screen-profile > .group{
  border:1px solid var(--line);
  border-radius:21px;
  background:var(--surface);
  box-shadow:0 3px 14px #10223503;
}
.frame.ios27-demo #screen-profile .group > .list-row{
  display:grid;
  grid-template-columns:36px minmax(0,1fr) 18px;
  align-items:center;
  column-gap:12px;
  min-height:76px;
  padding:15px 16px;
}
.frame.ios27-demo #screen-profile .group > .list-row .row-icon{
  display:grid;
  place-items:center;
  align-self:center;
  width:36px;
  height:36px;
  min-width:36px;
  margin:0;
  border-radius:12px;
  background:var(--paper);
  color:var(--muted);
}
.frame.ios27-demo #screen-profile .group > .list-row .row-icon svg{
  width:22px;
  height:22px;
  stroke-width:1.7;
}
.frame.ios27-demo #screen-profile .group > .list-row .row-copy{
  display:grid;
  align-items:center;
  gap:4px;
  min-width:0;
}
.frame.ios27-demo #screen-profile .group > .list-row .row-copy strong{
  color:var(--ink);
  font-size:15px;
  font-weight:650;
  line-height:1.3;
  letter-spacing:-.25px;
}
.frame.ios27-demo #screen-profile .group > .list-row .row-copy small{
  margin:0;
  color:var(--muted);
  font-size:12px;
  line-height:1.4;
}
.frame.ios27-demo #screen-profile .group > .list-row > .chevron{
  display:grid;
  place-items:center;
  align-self:center;
  width:18px;
  height:20px;
  margin:0;
  color:var(--muted);
}
.frame.ios27-demo #screen-profile .group > .list-row > .chevron svg{
  width:16px;
  height:16px;
}
.frame.ios27-demo #screen-profile .group > .list-row + .list-row::before{
  left:64px;
  right:16px;
}
.frame.ios27-demo #screen-profile .group > .list-row:focus-visible,
.frame.ios27-demo #screen-services.kd-services-design .group > .list-row:focus-visible{
  outline:2px solid var(--accent);
  outline-offset:-3px;
}
.frame.ios27-demo #screen-profile .profile-footer{
  margin-top:20px;
  padding-bottom:2px;
  font-size:11px;
  line-height:1.6;
}
.frame.ios27-demo #screen-profile .profile-footer button{
  min-width:44px;
  min-height:44px;
  padding:10px 12px;
  color:var(--muted);
  text-decoration-thickness:1px;
}
.frame.ios27-demo[data-theme="dark"] #screen-profile .profile-card{
  box-shadow:0 7px 22px #050b140d,inset 0 1px 0 #ffffff07;
}
.frame.ios27-demo[data-theme="dark"] #screen-profile .profile-avatar{
  border-color:#46618d;
  background:#2a3e60;
  color:#b6ceff;
  box-shadow:inset 0 1px 0 #ffffff0b;
}
.frame.ios27-demo[data-theme="dark"] #screen-profile .profile-card > .primary-button{
  border-color:#abc7ff;
  background:#9cbdff;
  color:#102235;
  box-shadow:inset 0 1px 0 #ffffff3b;
}
.frame.ios27-demo[data-theme="dark"] #screen-profile .profile-card > .primary-button:active{
  background:#b2cbff;
}
@container(max-width:345px){
  .frame.ios27-demo #screen-services.kd-services-design .group > .list-row{
    grid-template-columns:28px minmax(0,1fr) 16px;
    column-gap:12px;
    min-height:92px;
    padding-block:18px;
  }
  .frame.ios27-demo #screen-services.kd-services-design .group > .list-row .row-icon{
    width:28px;
    min-width:28px;
  }
  .frame.ios27-demo #screen-services.kd-services-design .group > .list-row .row-copy strong{
    font-size:18px;
    line-height:1.26;
  }
  .frame.ios27-demo #screen-services.kd-services-design .group > .list-row .row-copy small{
    font-size:12px;
  }
  .frame.ios27-demo #screen-services.kd-services-design .group > .list-row + .list-row::before{
    left:40px;
  }
  .frame.ios27-demo #screen-profile{
    padding:22px 16px 24px;
  }
  .frame.ios27-demo #screen-profile .page-heading h1{
    font-size:27px;
  }
  .frame.ios27-demo #screen-profile .profile-card{
    padding:20px 16px 17px;
  }
  .frame.ios27-demo #screen-profile .profile-identity h2{
    font-size:19px;
  }
  .frame.ios27-demo #screen-profile .group > .list-row{
    padding-inline:13px;
    column-gap:10px;
  }
  .frame.ios27-demo #screen-profile .group > .list-row + .list-row::before{
    left:59px;
    right:13px;
  }
}
@container(min-width:760px){
  .frame.ios27-demo #screen-services.kd-services-design .group > .list-row{
    grid-template-columns:34px minmax(0,1fr) 18px;
    column-gap:22px;
    min-height:108px;
    padding-block:23px;
  }
  .frame.ios27-demo #screen-services.kd-services-design .group > .list-row .row-copy{
    grid-template-columns:minmax(0,1fr) minmax(0,1fr);
    column-gap:32px;
  }
  .frame.ios27-demo #screen-services.kd-services-design .group > .list-row .row-copy strong{
    font-size:23px;
  }
  .frame.ios27-demo #screen-services.kd-services-design .group > .list-row .row-copy small{
    font-size:14px;
  }
  .frame.ios27-demo #screen-services.kd-services-design .group > .list-row + .list-row::before{
    left:56px;
  }
  .frame.ios27-demo #screen-profile{
    padding:32px 36px;
  }
  .frame.ios27-demo #screen-profile > .page-heading,
  .frame.ios27-demo #screen-profile > .profile-card,
  .frame.ios27-demo #screen-profile > .profile-free,
  .frame.ios27-demo #screen-profile > .section-title,
  .frame.ios27-demo #screen-profile > .group,
  .frame.ios27-demo #screen-profile > .profile-footer{
    max-width:680px;
    margin-left:auto;
    margin-right:auto;
  }
  .frame.ios27-demo #screen-profile .page-heading h1{
    font-size:34px;
  }
  .frame.ios27-demo #screen-profile .profile-card{
    padding:25px 26px 24px;
  }
}
/* Real profile markup: live status, confirmation, logout and device controls stay intact. */
#approved-frame.ios27-demo #screen-profile.kd-profile{max-width:760px;padding:0;background:transparent}
#approved-frame.ios27-demo #screen-profile .kd-profile-heading{margin:0 0 20px;padding-inline:2px}
#approved-frame.ios27-demo #screen-profile .kd-profile-heading h1{font-size:30px;font-weight:780;line-height:1.1;letter-spacing:-1px}
#approved-frame.ios27-demo #screen-profile .kd-profile-heading p{max-width:42ch;margin:8px 0 0;color:var(--muted);font-size:13px;line-height:1.5}
#approved-frame.ios27-demo #screen-profile .kd-profile-overview{padding:8px 18px;margin:0 0 20px;border:1px solid var(--line);border-radius:22px;background:var(--surface);box-shadow:0 7px 22px #10223506,inset 0 1px #ffffffa3}
#approved-frame.ios27-demo #screen-profile .kd-profile-overview>div{min-height:46px;align-items:center;gap:12px}
#approved-frame.ios27-demo #screen-profile .kd-profile-utilities{padding:0;overflow:hidden;border:1px solid var(--line);border-radius:21px;background:var(--surface);box-shadow:0 3px 14px #10223503}
#approved-frame.ios27-demo #screen-profile .kd-profile-utilities>:is(button,a){display:grid;grid-template-columns:36px minmax(0,1fr) 18px;align-items:center;gap:12px;min-height:76px;margin:0;padding:15px 16px;border:0;border-radius:0;background:transparent;text-align:left;color:var(--ink)}
#approved-frame.ios27-demo #screen-profile .kd-profile-utilities>:is(button,a)+:is(button,a){border-top:1px solid var(--line)}
#approved-frame.ios27-demo #screen-profile .kd-profile-utilities .kd-phone-app-entry-icon{display:grid;place-items:center;width:36px;height:36px;min-width:36px;margin:0;border-radius:12px;background:var(--paper);color:var(--muted)}
#approved-frame.ios27-demo #screen-profile .kd-profile-utilities .kd-phone-app-entry-icon svg{width:22px;height:22px;stroke-width:1.7}
#approved-frame.ios27-demo #screen-profile .kd-profile-utilities .kd-profile-support{grid-template-columns:minmax(0,1fr) 18px}
#approved-frame.ios27-demo #screen-profile .kd-profile-utilities strong{color:var(--ink);font-size:15px;font-weight:650;line-height:1.3;letter-spacing:-.25px}
#approved-frame.ios27-demo #screen-profile .kd-profile-utilities small{display:block;margin-top:4px;color:var(--muted);font-size:12px;line-height:1.4}
#approved-frame.ios27-demo #screen-profile .kd-profile-privacy{margin-top:20px;border:1px solid var(--line);border-radius:21px;background:var(--surface);color:var(--ink)}
#approved-frame.ios27-demo #screen-profile .kd-profile-member{padding:20px;border:1px solid var(--line);border-radius:22px;background:var(--surface);color:var(--ink)}
#approved-frame.ios27-demo #screen-profile button:focus-visible,#approved-frame.ios27-demo #screen-profile a:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
@media(max-width:345px){#approved-frame.ios27-demo #screen-profile .kd-profile-heading h1{font-size:27px}#approved-frame.ios27-demo #screen-profile .kd-profile-utilities>:is(button,a){padding-inline:13px;gap:10px}}
