
:root{--bg:#0b0d12;--panel:#151922;--panel2:#0f131a;--line:#262d39;--text:#f7f8fb;--muted:#9ca5b5;--accent:#8d7cff;--good:#58db95;--bad:#ff7171}
*{box-sizing:border-box}html,body{margin:0;min-height:100%;background:radial-gradient(circle at 20% -10%,rgba(141,124,255,.16),transparent 30%),var(--bg);color:var(--text);font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
body{padding:max(18px,env(safe-area-inset-top)) 14px max(36px,env(safe-area-inset-bottom))}
button,textarea{font:inherit}.app{width:min(100%,760px);margin:auto}
.topbar{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:16px}.eyebrow{display:block;color:var(--muted);font-size:10px;font-weight:800;letter-spacing:.12em;text-transform:uppercase}.topbar h1{margin:4px 0 0;font-size:28px;letter-spacing:-.04em}.topbar small{font-size:9px;color:#d9d2ff;border:1px solid #514990;border-radius:999px;padding:3px 6px;vertical-align:middle}
.credits{display:flex;flex-direction:column;border:1px solid var(--line);background:rgba(21,25,34,.9);padding:9px 12px;border-radius:15px;min-width:70px}.credits b{font-size:17px}.credits span{font-size:10px;color:var(--muted)}
.hero,.card,.live,.recent{background:linear-gradient(180deg,#191e28,#12161e);border:1px solid var(--line);border-radius:22px;box-shadow:0 20px 55px rgba(0,0,0,.28)}
.hero{padding:21px;margin-bottom:12px}.ready{color:var(--good);font-size:11px;font-weight:800}.hero h2{margin:10px 0 7px;font-size:30px;letter-spacing:-.04em}.hero p{margin:0;color:var(--muted);line-height:1.5}
.card{padding:17px;margin-bottom:11px}.step{display:flex;align-items:center;gap:11px;margin-bottom:14px}.step>b{width:31px;height:31px;display:grid;place-items:center;border-radius:10px;background:rgba(141,124,255,.14);border:1px solid rgba(141,124,255,.28);color:#ddd8ff}.step h3,.recent h3,.live h3{margin:0;font-size:17px}.step span{display:block;color:var(--muted);font-size:11px;margin-top:2px}
.characters{display:grid;gap:8px}.character{width:100%;text-align:left;background:var(--panel2);color:var(--text);border:1px solid var(--line);border-radius:15px;padding:13px;cursor:pointer}.character strong,.character span{display:block}.character span{color:var(--muted);font-size:11px;margin-top:3px}.character.selected{border-color:var(--accent);background:linear-gradient(180deg,rgba(141,124,255,.12),#151a24)}
textarea{width:100%;min-height:126px;resize:vertical;border:1px solid var(--line);border-radius:15px;background:var(--panel2);color:var(--text);padding:13px;outline:none;line-height:1.5}textarea:focus{border-color:var(--accent);box-shadow:0 0 0 3px rgba(141,124,255,.10)}textarea::placeholder{color:#697383}.meta{display:flex;justify-content:space-between;gap:12px;color:var(--muted);font-size:10px;margin-top:7px}.meta i{font-style:normal}
.contact{width:100%;display:flex;align-items:center;gap:11px;text-align:left;border:1px solid var(--line);background:var(--panel2);color:var(--text);border-radius:15px;padding:12px;margin-top:8px;cursor:pointer}.contact.selected{border-color:var(--accent)}.contact:disabled{opacity:.5;cursor:not-allowed}.contact .avatar{width:38px;height:38px;border-radius:999px;display:grid;place-items:center;background:#252c3a;font-weight:800}.contact .copy{min-width:0}.contact .copy b,.contact .copy span{display:block}.contact .copy span{color:var(--muted);font-size:11px;margin-top:2px}.contact .verified{margin-left:auto;color:var(--good);font-size:10px;font-weight:800}
.start{width:100%;min-height:58px;border:0;border-radius:17px;background:linear-gradient(135deg,#735fff,#9b8dff);color:#fff;font-weight:900;font-size:16px;margin:5px 0 12px;cursor:pointer;box-shadow:0 16px 34px rgba(115,95,255,.22)}.start:disabled{opacity:.38;cursor:not-allowed;box-shadow:none}
.live{padding:17px;margin-bottom:12px}.livehead{display:flex;justify-content:space-between;gap:12px}.livehead p{margin:4px 0 0;color:var(--muted);font-size:11px}.livebadge{display:block;color:var(--good);font-size:10px;font-weight:900;letter-spacing:.12em;margin-bottom:7px}.timer{font-size:25px;font-weight:900;font-variant-numeric:tabular-nums}.statusbox{display:flex;flex-direction:column;background:var(--panel2);border:1px solid var(--line);border-radius:14px;padding:12px;margin-top:15px}.statusbox span{color:var(--muted);font-size:11px;margin-top:3px}.bar{height:4px;border-radius:999px;background:#242b38;margin-top:12px;overflow:hidden}.bar i{display:block;height:100%;width:20%;background:linear-gradient(90deg,var(--accent),#91d9ff);transition:width .3s}
.recent{padding:17px;margin-top:12px}.recenthead{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}.recenthead h3{margin-top:4px}.recenthead button{border:1px solid var(--line);background:var(--panel2);color:var(--muted);border-radius:10px;padding:7px 9px;cursor:pointer}.recentitem{display:grid;grid-template-columns:1fr auto;gap:8px;background:var(--panel2);border:1px solid var(--line);border-radius:14px;padding:11px;margin-top:7px}.recentitem b{display:block;font-size:12px}.recentitem span{display:block;color:var(--muted);font-size:10px;margin-top:3px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chip{font-size:9px!important;font-weight:900;color:#dce1ea!important;border:1px solid #343c4b;border-radius:999px;padding:4px 6px;margin-top:0!important}.chip.good{color:var(--good)!important}.chip.bad{color:var(--bad)!important}.chip.livechip{color:#ffd166!important}
.loading{color:var(--muted);font-size:11px;text-align:center;padding:14px}.toast{position:fixed;left:50%;bottom:20px;transform:translateX(-50%);width:min(calc(100% - 28px),520px);background:#171c25;border:1px solid #343b49;border-radius:13px;padding:11px 13px;box-shadow:0 18px 50px rgba(0,0,0,.45);font-size:12px}.hidden{display:none!important}
@media(min-width:650px){body{padding-left:24px;padding-right:24px}.characters{grid-template-columns:repeat(3,1fr)}.character{min-height:95px}}

.add-contact-box{margin-bottom:12px;padding:12px;background:#0f131a;border:1px solid var(--line);border-radius:15px}
.input-row{display:grid;grid-template-columns:1fr;gap:8px}
.input-row input{width:100%;border:1px solid var(--line);background:#0b0f15;color:var(--text);border-radius:12px;padding:11px 12px;outline:none}
.input-row input:focus{border-color:var(--accent);box-shadow:0 0 0 3px rgba(141,124,255,.10)}
.input-row input::placeholder{color:#697383}
.secondary-btn{width:100%;margin-top:9px;border:1px solid #3d4560;background:#1b2130;color:#e9e6ff;border-radius:12px;padding:10px 12px;font-weight:800;cursor:pointer}
.secondary-btn:disabled{opacity:.5;cursor:not-allowed}
.contact-note{margin:7px 2px 0;color:var(--muted);font-size:10px;line-height:1.4}
@media(min-width:650px){.input-row{grid-template-columns:1fr 1.25fr}}

.verification-box{
  display:grid;
  grid-template-columns:1fr;
  gap:8px;
  margin-top:9px;
  padding-top:9px;
  border-top:1px solid var(--line);
}
.verification-box input{
  width:100%;
  border:1px solid var(--line);
  background:#0b0f15;
  color:var(--text);
  border-radius:12px;
  padding:11px 12px;
  outline:none;
}
.verification-box input:focus{
  border-color:var(--accent);
  box-shadow:0 0 0 3px rgba(141,124,255,.10);
}
@media(min-width:650px){
  .verification-box{grid-template-columns:1fr auto}
  .verification-box .secondary-btn{margin-top:0;width:auto;min-width:150px}
}

.consent-check{
  display:flex;
  align-items:flex-start;
  gap:10px;
  margin-top:10px;
  padding:10px 11px;
  border:1px solid var(--line);
  background:#111722;
  border-radius:12px;
  cursor:pointer;
}
.consent-check input{
  margin-top:2px;
  width:17px;
  height:17px;
  accent-color:var(--accent);
  flex:0 0 auto;
}
.consent-check span{
  color:#d7dbe4;
  font-size:11px;
  line-height:1.45;
}

.tab-page{display:none}
.tab-page.active{display:block}
.calls-hero{
  background:linear-gradient(180deg,#191e28,#12161e);
  border:1px solid var(--line);
  border-radius:22px;
  padding:21px;
  margin-bottom:12px;
  box-shadow:0 20px 55px rgba(0,0,0,.28)
}
.calls-hero h2{margin:6px 0 6px;font-size:30px;letter-spacing:-.04em}
.calls-hero p{margin:0;color:var(--muted);line-height:1.5}
.my-calls-card{margin-top:0}
.call-card{
  background:var(--panel2);
  border:1px solid var(--line);
  border-radius:16px;
  padding:13px;
  margin-top:9px
}
.call-card-top{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:12px
}
.call-card-main b{display:block;font-size:13px}
.call-card-main span{display:block;color:var(--muted);font-size:10px;margin-top:4px}
.call-card-scenario{
  color:#c3c9d4;
  font-size:11px;
  line-height:1.45;
  margin-top:10px;
  padding-top:10px;
  border-top:1px solid var(--line)
}
.playback-row{
  margin-top:11px;
  display:flex;
  align-items:center;
  gap:9px
}
.play-btn{
  border:1px solid #4b447f;
  background:rgba(141,124,255,.12);
  color:#eeeaff;
  border-radius:12px;
  padding:9px 11px;
  font-weight:800;
  cursor:pointer
}
.play-btn:disabled{
  opacity:.48;
  cursor:not-allowed
}
.recording-state{
  color:var(--muted);
  font-size:10px
}
.audio-player{
  width:100%;
  margin-top:10px;
  height:34px
}
.account-placeholder{
  background:linear-gradient(180deg,#191e28,#12161e);
  border:1px solid var(--line);
  border-radius:22px;
  padding:17px
}
.account-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:15px;
  padding:12px 2px;
  border-bottom:1px solid var(--line)
}
.account-row:last-child{border-bottom:0}
.account-row span{color:var(--muted);font-size:12px}
.account-row strong{font-size:13px}
.muted-row strong{color:var(--muted)}
.bottom-nav{
  position:sticky;
  bottom:max(10px,env(safe-area-inset-bottom));
  z-index:15;
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:6px;
  margin-top:14px;
  padding:7px;
  border:1px solid var(--line);
  background:rgba(15,18,25,.94);
  backdrop-filter:blur(18px);
  border-radius:18px;
  box-shadow:0 18px 48px rgba(0,0,0,.38)
}
.nav-btn{
  border:0;
  background:transparent;
  color:var(--muted);
  border-radius:13px;
  padding:9px 8px;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:4px;
  font-size:10px;
  font-weight:800;
  cursor:pointer
}
.nav-btn.active{
  background:rgba(141,124,255,.14);
  color:#eeeaff
}
.nav-icon{font-size:16px;line-height:1}

.auth-gate{
  background:linear-gradient(180deg,rgba(141,124,255,.14),#151a24);
  border:1px solid rgba(141,124,255,.35);
  border-radius:17px;
  padding:14px;
  margin-bottom:12px
}
.auth-gate strong,.auth-gate span{display:block}
.auth-gate span{color:var(--muted);font-size:11px;line-height:1.45;margin-top:4px}
.auth-gate button{
  margin-top:10px;border:1px solid #4a4284;background:#201d38;color:#eeeaff;
  border-radius:11px;padding:8px 10px;font-weight:800;cursor:pointer
}
.account-auth-card{
  background:linear-gradient(180deg,#191e28,#12161e);
  border:1px solid var(--line);border-radius:22px;padding:17px
}
.auth-grid{display:grid;gap:12px}
.auth-panel{
  background:var(--panel2);border:1px solid var(--line);border-radius:16px;padding:14px
}
.auth-panel h3{margin:5px 0 12px;font-size:17px}
.auth-panel input{
  width:100%;border:1px solid var(--line);background:#0b0f15;color:var(--text);
  border-radius:12px;padding:11px 12px;outline:none;margin-top:8px
}
.auth-panel input:focus{border-color:var(--accent);box-shadow:0 0 0 3px rgba(141,124,255,.10)}
.account-help{color:var(--muted);font-size:10px;line-height:1.4;margin:8px 2px 0}
.account-profile{display:flex;align-items:center;gap:11px;padding-bottom:13px;border-bottom:1px solid var(--line)}
.account-profile strong,.account-profile span{display:block}
.account-profile span{color:var(--muted);font-size:11px;margin-top:3px}
.account-avatar{
  width:42px;height:42px;border-radius:999px;display:grid;place-items:center;
  background:rgba(141,124,255,.16);border:1px solid rgba(141,124,255,.3);font-weight:900
}
.mini-btn{
  border:1px solid #4a4284;background:#201d38;color:#eeeaff;
  border-radius:10px;padding:7px 9px;font-size:11px;font-weight:800;cursor:pointer
}
.ledger-wrap{margin-top:13px;padding-top:13px;border-top:1px solid var(--line)}
.ledger-head h3{margin:4px 0 9px;font-size:15px}
.ledger-list{display:grid;gap:7px}
.ledger-item{
  display:grid;grid-template-columns:1fr auto;gap:8px;
  background:var(--panel2);border:1px solid var(--line);border-radius:12px;padding:10px
}
.ledger-item b{display:block;font-size:11px}
.ledger-item span{display:block;color:var(--muted);font-size:9px;margin-top:3px}
.ledger-amount{font-weight:900;font-size:12px}
.ledger-amount.positive{color:var(--good)}
.ledger-amount.negative{color:#ffd166}
.logout-btn{
  width:100%;margin-top:14px;border:1px solid #4a3035;background:#241619;color:#ffb5b5;
  border-radius:12px;padding:10px 12px;font-weight:800;cursor:pointer
}
@media(min-width:650px){.auth-grid{grid-template-columns:1fr 1fr}}

.auth-screen{
  min-height:calc(100vh - 40px);
  display:grid;
  place-items:center;
}
.auth-shell{
  width:min(100%,760px);
}
.auth-brand{
  margin-bottom:16px;
  padding:0 4px;
}
.auth-brand h1{
  margin:4px 0 8px;
  font-size:38px;
  letter-spacing:-.05em;
}
.auth-brand p{
  margin:0;
  color:var(--muted);
  line-height:1.5;
}
.auth-grid.standalone{
  grid-template-columns:1fr;
}
@media(min-width:650px){
  .auth-grid.standalone{grid-template-columns:1fr 1fr}
}

.auth-link-btn{
  border:0;background:transparent;color:#b9b1ff;padding:8px 2px 0;
  font-weight:800;font-size:11px;cursor:pointer;text-align:left
}
.auth-dev-link{
  display:block;margin-top:9px;color:#9ee7c2;font-size:11px;font-weight:800;
  text-decoration:none
}
.forgot-box{
  margin-top:10px;padding-top:10px;border-top:1px solid var(--line)
}

.phone-verify-box{
  margin-top:12px;padding-top:12px;border-top:1px solid var(--line)
}
.phone-verify-box p{
  margin:5px 0 8px;color:var(--muted);font-size:11px;line-height:1.4
}
.phone-code-row{display:grid;grid-template-columns:1fr auto;gap:8px}
.phone-code-row input{margin-top:0}
.dev-code{
  margin-top:8px;padding:8px 10px;border-radius:10px;
  background:rgba(158,231,194,.08);border:1px solid rgba(158,231,194,.22);
  color:#9ee7c2;font-size:11px;font-weight:800
}

.contact-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:8px;
  align-items:stretch;
  margin-bottom:8px;
}
.contact-row .contact{
  margin-bottom:0;
}
.remove-contact-btn{
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.035);
  color:var(--muted);
  border-radius:12px;
  padding:0 12px;
  font-size:10px;
  font-weight:800;
  cursor:pointer;
}
.remove-contact-btn:hover{
  border-color:rgba(255,120,120,.32);
  color:#ffadad;
  background:rgba(255,80,80,.06);
}
.remove-contact-btn:disabled{
  opacity:.5;
  cursor:default;
}

.account-phone-line{
  display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin-top:2px
}
.verified-account-badge{
  font-size:9px;font-weight:900;letter-spacing:.03em;
  padding:3px 6px;border-radius:999px;
  border:1px solid rgba(130,225,180,.22);
  background:rgba(130,225,180,.08)
}
.account-security{
  margin-top:16px;padding-top:15px;border-top:1px solid var(--line)
}
.account-security-head{margin-bottom:10px}
.account-security-head h3{margin:2px 0 0}
.account-action-btn{
  width:100%;text-align:left;border:1px solid var(--line);
  background:rgba(255,255,255,.025);border-radius:12px;
  padding:12px;color:inherit;font-weight:800;cursor:pointer;margin-top:8px
}
.account-action-box{
  margin-top:8px;padding:12px;border:1px solid var(--line);
  border-radius:12px;background:rgba(255,255,255,.018)
}
.account-action-box input{width:100%;margin:6px 0}
.danger-link{color:#ffb1b1}
.danger-box p{
  margin:0 0 8px;color:var(--muted);font-size:11px;line-height:1.45
}
.delete-account-btn{
  width:100%;border:1px solid rgba(255,90,90,.35);
  background:rgba(255,70,70,.10);color:#ffb0b0;
  border-radius:11px;padding:11px;font-weight:900;cursor:pointer;margin-top:6px
}
.call-card-meta-extra{
  display:flex;gap:7px;flex-wrap:wrap;margin-top:6px
}
.call-detail-pill{
  font-size:9px;font-weight:850;padding:4px 7px;border-radius:999px;
  border:1px solid var(--line);color:var(--muted)
}
.call-detail-pill.refund{
  border-color:rgba(130,225,180,.22)
}


/* Character media cards + voice sample buttons */
.characters{
  display:grid !important;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px !important;
}
.character-card{
  display:flex;
  flex-direction:column;
  gap:8px;
}
.character{
  width:100%;
  min-height:98px;
  display:flex !important;
  flex-direction:column;
  align-items:flex-start;
  justify-content:flex-start;
  gap:10px;
  padding:12px !important;
}
.character-card-media .character{
  min-height:220px;
}
.character-photo{
  width:100%;
  aspect-ratio:1/1;
  object-fit:cover;
  border-radius:14px;
  display:block;
  background:#0f131b;
}
.character strong{
  display:block;
  font-size:15px;
  line-height:1.2;
}
.character-sample{
  width:100%;
  border:1px solid rgba(255,255,255,.12);
  background:#121723;
  color:#edf1fb;
  border-radius:12px;
  padding:10px 12px;
  font-weight:700;
  cursor:pointer;
}
.character-sample:hover{background:#171d2b}
.character-sample:disabled{opacity:.7;cursor:wait}
@media (min-width: 860px){
  .characters{
    grid-template-columns:repeat(4,minmax(0,1fr));
  }
}


/* Step 4 credit store */
.credit-store{
  margin-top:16px;
  padding:16px;
  border:1px solid var(--line);
  border-radius:16px;
  background:rgba(255,255,255,.018);
}
.credit-store-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}
.credit-store-head h3{margin:2px 0 0}
.storekit-badge{
  font-size:9px;
  font-weight:900;
  letter-spacing:.05em;
  padding:5px 8px;
  border-radius:999px;
  border:1px solid var(--line);
  color:var(--muted);
}
.credit-store-copy{
  color:var(--muted);
  font-size:11px;
  line-height:1.45;
  margin:10px 0 9px;
}
.credit-store-trust{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin:0 0 13px;
}
.credit-store-trust span{
  font-size:9px;
  font-weight:800;
  color:var(--muted);
  border:1px solid var(--line);
  border-radius:999px;
  padding:5px 8px;
  background:rgba(255,255,255,.018);
}
.credit-pack-list{
  display:grid;
  gap:9px;
}
.credit-pack{
  position:relative;
  display:grid;
  grid-template-columns:1fr auto;
  gap:10px 12px;
  align-items:center;
  border:1px solid var(--line);
  border-radius:14px;
  padding:13px;
  background:var(--panel2);
}
.credit-pack.popular{
  border-color:rgba(141,124,255,.6);
}
.credit-pack.best-value{
  border-color:rgba(141,124,255,.38);
}
.pack-best{
  background:rgba(141,124,255,.92);
}
.pack-popular{
  position:absolute;
  top:-7px;
  right:10px;
  font-size:8px;
  font-weight:900;
  letter-spacing:.08em;
  padding:3px 7px;
  border-radius:999px;
  background:var(--accent);
  color:white;
}
.pack-main strong,.pack-main span,.pack-price b,.pack-price small{display:block}
.pack-main strong{font-size:17px}
.pack-main span,.pack-price small{font-size:9px;color:var(--muted);margin-top:2px}
.pack-main em{display:block;font-style:normal;font-size:9px;font-weight:900;color:var(--accent);margin-top:5px}
.pack-price{text-align:right}
.pack-price b{font-size:11px}
.buy-credit-pack{
  grid-column:1/-1;
  width:100%;
  border:0;
  border-radius:11px;
  padding:10px 12px;
  font-weight:900;
  cursor:pointer;
  background:var(--accent);
  color:white;
}
.buy-credit-pack:disabled{opacity:.6;cursor:not-allowed}
.iap-store-note{
  margin:10px 0 0;
  font-size:10px;
  line-height:1.4;
  color:var(--muted);
}
.iap-dev-note{
  margin:10px 0 0;
  font-size:9px;
  line-height:1.4;
  color:var(--muted);
}
@media(min-width:700px){
  .credit-pack-list{grid-template-columns:repeat(3,1fr)}
  .credit-pack{
    grid-template-columns:1fr;
    align-content:start;
  }
  .pack-price{text-align:left}
}


/* My Calls: compact history + iPhone-style playback */
.call-card{
  background:linear-gradient(180deg,#10151f,#0d1119);
  border:1px solid var(--line);
  border-radius:18px;
  padding:16px;
  margin-top:12px;
}
.call-card-top{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}
.call-card-main{display:flex;flex-direction:column;gap:5px;min-width:0}
.call-card-main b{font-size:15px;line-height:1.3}
.call-card-main span{font-size:12px;color:var(--muted)}
.call-card-scenario{margin-top:12px;color:#d8dfeb;line-height:1.45;font-size:14px}
.call-card-meta-extra{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}
.call-detail-pill{display:inline-flex;align-items:center;padding:7px 10px;border-radius:999px;background:rgba(255,255,255,.05);border:1px solid var(--line);font-size:12px;color:#dbe2ee}
.call-detail-pill.refund{color:#c7f9e7;border-color:rgba(52,211,153,.28);background:rgba(52,211,153,.10)}
.playback-row{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:14px;padding-top:13px;border-top:1px solid rgba(255,255,255,.07)}
.recording-state{font-size:13px;color:var(--muted)}
.iphone-playback-btn{
  appearance:none;border:1px solid rgba(196,181,253,.55);background:linear-gradient(135deg,#7c3aed,#a855f7);
  color:white;border-radius:13px;padding:11px 14px;font-weight:850;box-shadow:0 8px 22px rgba(124,58,237,.22);
}
.history-toggle{
  width:100%;margin-top:14px;border:1px solid var(--line);background:#0d1119;color:#e8edf7;
  border-radius:14px;padding:12px 14px;font-weight:800;
}
.playback-iphone-shell{
  max-width:390px;margin:4px auto 0;background:linear-gradient(180deg,#171717 0%,#070707 100%);
  color:#fff;border:2px solid #323232;border-radius:42px;padding:12px 18px 22px;
  box-shadow:0 26px 65px rgba(0,0,0,.42), inset 0 0 0 1px rgba(255,255,255,.04);
}
.playback-iphone-shell .iphone-notch{width:116px;height:28px;border-radius:16px;background:#000;margin:0 auto 11px}
.playback-iphone-shell .iphone-status-row{display:flex;justify-content:space-between;align-items:center;font-size:12px;color:#d1d5db;margin:0 4px 26px}
.playback-iphone-shell .iphone-indicator{color:#86efac;font-weight:800}
.playback-iphone-main{text-align:center}
.playback-iphone-shell .iphone-avatar-wrap{display:flex;justify-content:center;margin-bottom:13px}
.playback-iphone-shell .iphone-avatar{width:92px;height:92px;border-radius:999px;background:linear-gradient(145deg,#3f3f46,#18181b);display:flex;align-items:center;justify-content:center;font-size:28px;font-weight:900;border:1px solid rgba(255,255,255,.12)}
.playback-iphone-shell .iphone-label{font-size:11px;letter-spacing:1.4px;text-transform:uppercase;color:#8f96a3;margin-bottom:5px}
.playback-iphone-shell .iphone-name{font-size:27px;line-height:1.1;margin:0}
.playback-iphone-shell .iphone-contact{font-size:15px;color:#b6bcc8;margin-top:7px}
.playback-iphone-shell .iphone-timer{font-size:14px;color:#d5d8df;margin-top:9px}
.playback-scenario-bubble{margin-top:20px;background:rgba(255,255,255,.065);border:1px solid rgba(255,255,255,.08);border-radius:18px;padding:14px 15px;line-height:1.45;font-size:14px;color:#eef2f7}
.playback-audio-panel{margin-top:14px;background:rgba(255,255,255,.065);border:1px solid rgba(255,255,255,.08);border-radius:18px;padding:14px}
.playback-audio-panel strong{display:block;font-size:14px}
.playback-audio-panel p{margin:4px 0 10px;color:#aab0ba;font-size:12px}
.playback-phone-audio{width:100%;display:block}
.small-btn{width:auto!important;padding:9px 13px!important;border-radius:12px!important}
@media(max-width:540px){
  .playback-row{flex-direction:column;align-items:stretch}
  .iphone-playback-btn{width:100%}
  .playback-iphone-shell{max-width:none;border-radius:36px}
}


/* Exact-ish iPhone playback restyle */
.playback-phone-wrap{padding-top:10px}
.playback-topbar{display:flex;justify-content:flex-end;margin-bottom:10px}
.playback-topbar .small-btn{background:#111722;border:1px solid var(--line);color:#fff}
.playback-iphone-shell{max-width:390px;margin:0 auto;background:linear-gradient(180deg,#111214 0%,#000 100%);color:#fff;border:1px solid rgba(255,255,255,.08);border-radius:44px;padding:12px 20px 28px;box-shadow:0 26px 65px rgba(0,0,0,.42), inset 0 0 0 1px rgba(255,255,255,.03)}
.playback-iphone-shell .iphone-notch{width:118px;height:30px;border-radius:18px;background:#050505;margin:0 auto 10px}
.playback-iphone-shell .iphone-status-row{display:flex;justify-content:space-between;align-items:center;font-size:13px;font-weight:700;color:#fff;margin:2px 4px 34px}
.playback-iphone-shell .iphone-indicator{display:inline-flex;align-items:center;gap:6px;padding:4px 10px;border-radius:999px;background:rgba(52,211,153,.16);color:#8ef0b0;font-size:12px;font-weight:800}
.playback-iphone-main{text-align:center}
.playback-iphone-shell .iphone-avatar-wrap{display:flex;justify-content:center;margin-bottom:22px}
.playback-iphone-shell .iphone-avatar{width:108px;height:108px;border-radius:999px;background:linear-gradient(145deg,#30353d,#111318);display:flex;align-items:center;justify-content:center;font-size:32px;font-weight:900;border:1px solid rgba(255,255,255,.12);box-shadow:inset 0 0 0 1px rgba(255,255,255,.04)}
.playback-iphone-shell .iphone-label,.playback-scenario-bubble{display:none!important}
.playback-iphone-shell .iphone-name{font-size:34px;line-height:1.08;margin:0;font-weight:700;letter-spacing:-.02em}
.playback-iphone-shell .iphone-contact{font-size:19px;color:#d1d5db;margin-top:10px;font-weight:500}
.iphone-call-type{font-size:15px;color:#8f96a3;margin-top:12px}
.playback-iphone-shell .iphone-timer{font-size:30px;color:#fff;margin-top:8px;font-weight:600;letter-spacing:.03em}
.iphone-audio-panel{margin-top:26px;background:rgba(255,255,255,.055);border:1px solid rgba(255,255,255,.08);border-radius:22px;padding:18px}
.iphone-audio-panel .live-monitor-head{display:none}
.playback-phone-audio{width:100%;display:block;filter:contrast(1.05)}
.iphone-action-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-top:28px}
.iphone-action-pill{height:78px;border-radius:26px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.06);display:flex;align-items:center;justify-content:center;color:#f1f5f9;font-size:13px;font-weight:700;text-align:center;padding:10px}
.iphone-endcall-row{display:flex;justify-content:center;margin-top:28px}
.iphone-endcall-btn{width:72px;height:72px;border:none;border-radius:999px;background:#ff3b30;color:#fff;font-size:24px;font-weight:900;box-shadow:0 16px 28px rgba(255,59,48,.32);cursor:pointer}
.call-card-main b{display:block;font-size:17px}
.call-card-main span{display:block;margin-top:4px}
.playback-row{justify-content:flex-end}
.playback-row .iphone-playback-btn{margin-left:auto}
@media(max-width:540px){
  .playback-iphone-shell{max-width:none;border-radius:36px;padding:12px 16px 24px}
  .playback-iphone-shell .iphone-name{font-size:30px}
  .playback-iphone-shell .iphone-contact{font-size:17px}
  .playback-iphone-shell .iphone-timer{font-size:26px}
  .iphone-action-grid{gap:12px}
  .iphone-action-pill{height:68px;border-radius:22px;font-size:12px}
}


/* Home live-call iPhone */
.home-live-iphone{
  max-width:390px;margin:18px auto 0;background:linear-gradient(180deg,#111214 0%,#000 100%);
  color:#fff;border:1px solid rgba(255,255,255,.08);border-radius:44px;padding:12px 20px 28px;
  box-shadow:0 28px 70px rgba(0,0,0,.46),inset 0 0 0 1px rgba(255,255,255,.03);
}
.home-live-iphone .iphone-notch{width:118px;height:30px;border-radius:18px;background:#050505;margin:0 auto 10px}
.home-live-iphone .iphone-status-row{display:flex;justify-content:space-between;align-items:center;font-size:13px;font-weight:700;color:#fff;margin:2px 4px 34px}
.home-live-iphone .iphone-indicator{display:inline-flex;align-items:center;padding:4px 10px;border-radius:999px;background:rgba(52,211,153,.16);color:#8ef0b0;font-size:12px;font-weight:800}
.home-live-main{text-align:center}
.home-live-iphone .iphone-avatar-wrap{display:flex;justify-content:center;margin-bottom:22px}
.home-live-iphone .iphone-avatar{width:108px;height:108px;border-radius:999px;background:linear-gradient(145deg,#30353d,#111318);display:flex;align-items:center;justify-content:center;font-size:32px;font-weight:900;border:1px solid rgba(255,255,255,.12)}
.home-live-iphone .iphone-name{font-size:34px;line-height:1.08;margin:0;font-weight:700;letter-spacing:-.02em}
.home-live-iphone .iphone-contact{font-size:19px;color:#d1d5db;margin-top:10px;font-weight:500}
.home-live-iphone .iphone-call-type{font-size:15px;color:#b8bec8;margin-top:12px}
.home-live-iphone .iphone-timer{font-size:30px;color:#fff;margin-top:8px;font-weight:600;letter-spacing:.03em}
.iphone-call-sub{font-size:13px;color:#9299a5;margin-top:8px}
.iphone-live-progress{margin:22px 8px 0;height:4px;background:rgba(255,255,255,.10)}
.live-listen-box{margin-top:22px;text-align:center}
.live-listen-button{appearance:none;border:none;border-radius:999px;background:#f5f5f7;color:#111;padding:13px 22px;font-weight:850;font-size:15px;min-width:180px}
.live-listen-status{font-size:12px;color:#9ca3af;margin-top:9px;min-height:18px}
.home-live-transcript{margin-top:18px;background:rgba(255,255,255,.055);border:1px solid rgba(255,255,255,.07);border-radius:18px;padding:13px 14px;max-height:95px;overflow:auto;color:#d7dce4;font-size:13px;line-height:1.4}
.home-live-iphone .iphone-action-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-top:26px}
.home-live-iphone .iphone-action-pill{height:78px;border-radius:26px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.06);display:flex;align-items:center;justify-content:center;color:#f1f5f9;font-size:13px;font-weight:700;text-align:center;padding:10px}
.home-live-iphone .iphone-endcall-row{display:flex;justify-content:center;margin-top:28px}
.home-live-iphone .iphone-endcall-btn{width:72px;height:72px;border-radius:999px;background:#ff3b30;color:#fff;font-size:25px;display:flex;align-items:center;justify-content:center;transform:rotate(135deg);box-shadow:0 16px 28px rgba(255,59,48,.32)}
/* My Calls is intentionally normal again. */
.playback-phone-wrap{display:none!important}
@media(max-width:540px){
  .home-live-iphone{max-width:none;border-radius:36px;padding:12px 16px 24px}
  .home-live-iphone .iphone-name{font-size:30px}
  .home-live-iphone .iphone-contact{font-size:17px}
  .home-live-iphone .iphone-timer{font-size:26px}
  .home-live-iphone .iphone-action-grid{gap:12px}
  .home-live-iphone .iphone-action-pill{height:68px;border-radius:22px;font-size:12px}
}


/* Functional iPhone-style hang-up control */
.home-iphone-shell .iphone-action-grid{display:none!important}
.iphone-endcall-row{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:8px;
  margin-top:28px;
}
.iphone-endcall-btn{
  appearance:none;
  width:74px;
  height:74px;
  border:0;
  border-radius:999px;
  background:#ff3b30;
  color:#fff;
  font-size:31px;
  line-height:1;
  display:grid;
  place-items:center;
  transform:rotate(135deg);
  box-shadow:0 14px 30px rgba(255,59,48,.30);
  cursor:pointer;
  transition:transform .12s ease, opacity .12s ease;
}
.iphone-endcall-btn:hover{transform:rotate(135deg) scale(1.04)}
.iphone-endcall-btn:active{transform:rotate(135deg) scale(.96)}
.iphone-endcall-btn:disabled{opacity:.45;cursor:default}
.iphone-endcall-label{font-size:12px;color:#a8adb7;text-transform:lowercase}

.recording-consent-check{margin:0 0 12px;background:#101620}
.recording-consent-check span strong{color:#fff;font-size:12px}


/* Step 9 — consumer polish */
.hero-badges{display:flex;flex-wrap:wrap;gap:7px;margin-top:15px}
.hero-badges span{font-size:10px;font-weight:800;color:#d9d5ff;background:rgba(141,124,255,.09);border:1px solid rgba(141,124,255,.22);border-radius:999px;padding:7px 9px}
.launch-summary{margin:2px 0 10px;padding:14px;background:linear-gradient(180deg,#151b25,#10151d);border:1px solid var(--line);border-radius:17px}
.launch-summary-top{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px}
.launch-ready-badge{font-size:9px;font-weight:900;color:var(--muted);border:1px solid var(--line);border-radius:999px;padding:5px 8px;white-space:nowrap}
.launch-ready-badge.ready{color:var(--good);border-color:rgba(88,219,149,.28);background:rgba(88,219,149,.07)}
.launch-summary-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.launch-summary-grid>div{min-width:0;background:#0d1219;border:1px solid #202836;border-radius:12px;padding:10px}
.launch-summary-grid span,.launch-summary-grid strong{display:block}
.launch-summary-grid span{font-size:9px;color:var(--muted);margin-bottom:4px}
.launch-summary-grid strong{font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.start-call-hint{text-align:center;color:var(--muted);font-size:10px;margin:-5px 0 15px;min-height:14px}
.start{transition:transform .12s ease,opacity .12s ease,box-shadow .12s ease}.start:not(:disabled):active{transform:scale(.985)}
.character,.contact,.secondary-btn,.nav-btn,.account-action-btn,.play-btn{transition:border-color .14s ease,background .14s ease,transform .12s ease,opacity .12s ease}
.character:active,.contact:active,.secondary-btn:active,.nav-btn:active{transform:scale(.985)}
.toast{z-index:1000;bottom:max(92px,calc(env(safe-area-inset-bottom) + 82px));font-weight:650;line-height:1.4}
.call-confirm-overlay{position:fixed;inset:0;z-index:1400;display:flex;align-items:center;justify-content:center;padding:22px;background:rgba(3,5,9,.78);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}
.call-confirm-card{width:min(100%,440px);background:linear-gradient(180deg,#171d28,#0f141d);border:1px solid #343d4d;border-radius:24px;padding:24px;box-shadow:0 28px 80px rgba(0,0,0,.55);text-align:center}
.call-confirm-icon{width:62px;height:62px;margin:0 auto 15px;display:grid;place-items:center;border-radius:18px;background:rgba(139,120,255,.14);border:1px solid rgba(139,120,255,.30);font-size:28px}
.call-confirm-card h2{margin:7px 0 10px;font-size:26px;letter-spacing:-.02em}
.call-confirm-card p{margin:0;color:var(--muted);font-size:14px;line-height:1.55}
.call-confirm-actions{display:grid;grid-template-columns:1fr 1.45fr;gap:10px;margin-top:22px}
.call-confirm-actions button{min-height:50px;border-radius:14px;font-weight:900;font-size:14px;cursor:pointer}
.call-confirm-cancel{background:#10151d;color:#d8deea;border:1px solid var(--line)}
.call-confirm-start{background:linear-gradient(135deg,#735fff,#9b8dff);color:#fff;border:0}
@media(max-width:420px){.call-confirm-card{padding:21px 18px}.call-confirm-actions{grid-template-columns:1fr}.call-confirm-start{grid-row:1}.call-confirm-cancel{grid-row:2}}
.auth-panel{box-shadow:inset 0 1px 0 rgba(255,255,255,.025)}
input,textarea,button{touch-action:manipulation}
@media(max-width:520px){
  .hero{padding:18px}.hero h2{font-size:27px}
  .card{padding:15px}.step{margin-bottom:12px}
  .launch-summary-grid{grid-template-columns:1fr 1fr 1fr;gap:6px}
  .launch-summary-grid>div{padding:9px 8px}
  .launch-summary-grid strong{font-size:10px}
}

/* Step 10 — polished character picker */
.character-grid-polished{
  grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  gap:12px !important;
}
.character-grid-polished .character-card{
  gap:7px;
  min-width:0;
}
.character-grid-polished .character{
  min-height:0;
  padding:8px !important;
  gap:8px;
  border-radius:17px;
  overflow:hidden;
  background:linear-gradient(180deg,#151a25,#111620);
}
.character-grid-polished .character-card-media .character{min-height:0}
.character-photo-wrap{
  position:relative;
  width:100%;
  overflow:hidden;
  border-radius:13px;
}
.character-grid-polished .character-photo{
  width:100%;
  aspect-ratio:1/1;
  border-radius:13px;
  object-fit:cover;
  transition:transform .18s ease,filter .18s ease;
}
.character-grid-polished .character:hover .character-photo{transform:scale(1.015)}
.character-check{
  position:absolute;
  top:8px;
  right:8px;
  width:25px;
  height:25px;
  display:grid;
  place-items:center;
  border-radius:999px;
  background:var(--accent);
  color:white;
  font-weight:900;
  opacity:0;
  transform:scale(.8);
  box-shadow:0 5px 18px rgba(0,0,0,.25);
  transition:opacity .15s ease,transform .15s ease;
}
.character.selected .character-check{opacity:1;transform:scale(1)}
.character-grid-polished .character-copy{
  width:100%;
  padding:1px 2px 3px;
  min-height:28px;
}
.character-grid-polished .character-copy strong{
  font-size:14px;
  letter-spacing:-.01em;
}
.character-grid-polished .character-copy span{
  margin-top:4px;
  font-size:10.5px;
  line-height:1.25;
  color:var(--muted);
}
.character-grid-polished .character.selected{
  border-color:rgba(141,124,255,.95);
  background:linear-gradient(180deg,rgba(141,124,255,.13),#121721);
  box-shadow:0 0 0 1px rgba(141,124,255,.13),0 10px 25px rgba(0,0,0,.12);
}
.character-grid-polished .character-sample{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  padding:9px 10px;
  min-height:39px;
  border-radius:12px;
  font-size:12px;
  background:#101621;
}
.sample-icon{
  display:inline-grid;
  place-items:center;
  min-width:14px;
  font-size:10px;
}
@media (min-width:700px){
  .character-grid-polished{grid-template-columns:repeat(4,minmax(0,1fr)) !important}
}


/* Step 11 caller ID controls */
.caller-id-card{margin:14px 0;padding:14px;background:#0f131a;border:1px solid var(--line);border-radius:16px}
.caller-id-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}.caller-id-head h3{margin:4px 0 0;font-size:17px}.caller-id-copy{margin:8px 0 12px;color:var(--muted);font-size:11px;line-height:1.45}
.caller-id-badge{border:1px solid #3c4351;border-radius:999px;padding:5px 8px;color:var(--muted);font-size:9px;font-weight:900;white-space:nowrap}.caller-id-badge.good{color:var(--good);border-color:rgba(88,219,149,.35);background:rgba(88,219,149,.08)}
.caller-id-modes{display:grid;grid-template-columns:1fr;gap:8px}.caller-id-mode{width:100%;text-align:left;border:1px solid var(--line);background:#0b0f15;color:var(--text);border-radius:13px;padding:11px 12px;cursor:pointer}.caller-id-mode b,.caller-id-mode span{display:block}.caller-id-mode span{margin-top:3px;color:var(--muted);font-size:10px;line-height:1.4}.caller-id-mode.selected{border-color:var(--accent);background:rgba(141,124,255,.10)}.caller-id-mode.unavailable:not(.selected){opacity:.72}
.caller-id-verify-box{display:grid;grid-template-columns:1fr;gap:8px;margin-top:10px}.caller-id-verify-box input{width:100%;border:1px solid var(--line);background:#0b0f15;color:var(--text);border-radius:12px;padding:11px 12px;outline:none}.caller-id-verify-box input:focus{border-color:var(--accent);box-shadow:0 0 0 3px rgba(141,124,255,.10)}.caller-id-verify-box .secondary-btn{margin-top:0}
.caller-id-code-box{margin-top:10px;padding:12px;border:1px solid rgba(141,124,255,.35);background:rgba(141,124,255,.09);border-radius:13px;text-align:center}.caller-id-code-box span,.caller-id-code-box small{display:block;color:#c9cfda;font-size:10px;line-height:1.45}.caller-id-code-box strong{display:block;margin:7px 0;font-size:28px;letter-spacing:.16em}.caller-id-note{margin:9px 1px 0;color:var(--muted);font-size:9px;line-height:1.45}
@media(min-width:650px){.caller-id-modes{grid-template-columns:1fr 1fr}.caller-id-verify-box{grid-template-columns:1fr auto}.caller-id-verify-box .secondary-btn{width:auto;min-width:150px}}

/* Step 12: compliance + consent polish */
.legal-check{display:flex;gap:10px;align-items:flex-start;margin:10px 0;font-size:13px;line-height:1.35;color:var(--muted,#aab0bd)}
.legal-check input{margin-top:2px;flex:0 0 auto}
.legal-check a,.legal-footer a{color:inherit;text-decoration:underline;text-underline-offset:2px}
.call-consent-row{margin-bottom:10px}
.legal-footer{display:flex;justify-content:center;gap:8px;padding:18px 12px calc(18px + env(safe-area-inset-bottom));font-size:12px;opacity:.7}
.legal-page{max-width:820px;margin:0 auto;padding:32px 20px 64px;line-height:1.6}
.legal-page h1{margin-bottom:4px}.legal-page h2{margin-top:28px}.legal-page .legal-meta{opacity:.65;margin-bottom:28px}

/* Step 13: owner-only audit console */
.admin-audit-card{margin-top:18px;padding:18px;border:1px solid var(--line,#26324a);border-radius:18px;background:rgba(12,18,30,.72)}
.admin-audit-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.admin-audit-head h3{margin:3px 0 0}.admin-badge{font-size:11px;font-weight:800;letter-spacing:.08em;padding:6px 9px;border-radius:999px;background:rgba(255,255,255,.08)}
.admin-audit-copy{opacity:.78;margin:10px 0 14px}.admin-audit-filters{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(140px,.8fr) auto auto;gap:8px;align-items:center}.admin-audit-filters input{min-width:0}
.audit-results{margin-top:14px;display:grid;gap:8px;max-height:520px;overflow:auto}.audit-item{border:1px solid rgba(255,255,255,.09);border-radius:14px;background:rgba(255,255,255,.025);overflow:hidden}.audit-item summary{cursor:pointer;display:flex;justify-content:space-between;gap:12px;padding:12px 13px;font-size:13px}.audit-item summary span:last-child{opacity:.65;text-align:right}.audit-detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:0 13px 13px}.audit-detail-grid>div{display:flex;flex-direction:column;gap:2px;padding:10px;border-radius:10px;background:rgba(255,255,255,.035);min-width:0}.audit-detail-grid small{opacity:.6}.audit-detail-grid b,.audit-detail-grid span{overflow-wrap:anywhere}.audit-detail-grid span{font-size:12px;opacity:.74}
@media(max-width:700px){.admin-audit-filters{grid-template-columns:1fr 1fr}.admin-audit-filters input:first-child{grid-column:1/-1}.audit-detail-grid{grid-template-columns:1fr}.audit-item summary{flex-direction:column}.audit-item summary span:last-child{text-align:left}}


/* Step 14 — cleaner character cards + live call participant flow */
.character-grid-polished .character-copy span{display:none!important}
.character-grid-polished .character-copy{min-height:28px;padding:3px 2px 2px}
.character-grid-polished .character-copy strong{font-size:14px;line-height:1.2}

.live-call-participants{
  display:grid;
  grid-template-columns:minmax(0,1fr) 34px minmax(0,1fr);
  align-items:center;
  gap:8px;
  margin:2px auto 22px;
  max-width:330px;
}
.live-party{min-width:0;display:flex;flex-direction:column;align-items:center;gap:9px}
.live-party-circle{
  width:112px;
  height:112px;
  border-radius:999px;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.14);
  box-shadow:0 12px 28px rgba(0,0,0,.28),inset 0 0 0 1px rgba(255,255,255,.03);
}
.live-character-circle{background:linear-gradient(145deg,#30353d,#111318)}
.live-character-photo{width:100%;height:100%;object-fit:cover;display:block}
.live-recipient-circle{
  background:linear-gradient(145deg,#2d3139,#111318);
  color:#fff;
  padding:14px;
  text-align:center;
  font-size:16px;
  line-height:1.15;
  font-weight:750;
  overflow-wrap:anywhere;
}
.live-party-name{max-width:125px;color:#f7f8fb;font-size:14px;line-height:1.2;font-weight:750;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.live-recipient-label{visibility:hidden;height:0;margin-top:-9px}
.live-party-arrow{color:#aeb5c0;font-size:30px;font-weight:500;text-align:center;transform:translateY(-11px)}
.home-live-main .iphone-call-type{margin-top:0}
@media(max-width:420px){
  .live-call-participants{grid-template-columns:minmax(0,1fr) 28px minmax(0,1fr);gap:5px;max-width:300px}
  .live-party-circle{width:96px;height:96px}
  .live-party-arrow{font-size:25px}
  .live-recipient-circle{font-size:14px;padding:11px}
  .live-party-name{font-size:13px;max-width:105px}
}


/* Step 17 Creator Studio */
.creator-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:18px 0}
.creator-card,.creator-list-card{background:rgba(255,255,255,.045);border:1px solid var(--line);border-radius:22px;padding:16px;box-shadow:0 18px 60px rgba(0,0,0,.18)}
.creator-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:12px}
.creator-card-head h3,.creator-list-card h3{margin:3px 0 0}
.creator-pill{font-size:12px;border:1px solid rgba(255,255,255,.14);background:rgba(255,255,255,.06);padding:7px 10px;border-radius:999px;color:#dce6f7;white-space:nowrap}
.creator-card input,.creator-card textarea,.creator-card select{width:100%;margin-top:10px;background:rgba(0,0,0,.22);border:1px solid var(--line);border-radius:14px;color:var(--text);padding:12px 13px;font:inherit;outline:none}
.creator-card textarea{min-height:86px;resize:vertical}
.creator-help{color:var(--muted);font-size:13px;line-height:1.45;margin:10px 0}
.creator-check{margin-top:12px;align-items:flex-start}
.creator-check span{font-size:12px;line-height:1.35;color:#c9d3e4}
.creator-item{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 0;border-top:1px solid rgba(255,255,255,.07)}
.creator-item:first-child{border-top:0}
.creator-item b{display:block;margin-bottom:4px}
.creator-item span{display:block;color:var(--muted);font-size:12px;line-height:1.35}
.creator-character-avatar{display:flex;align-items:center;justify-content:center;background:radial-gradient(circle at 30% 20%,rgba(255,255,255,.25),rgba(255,255,255,.06));font-weight:900;font-size:24px;color:#fff}
.creator-character-avatar>span:first-child{position:relative;z-index:1}
@media(max-width:760px){.creator-grid{grid-template-columns:1fr}.creator-item{align-items:flex-start;flex-direction:column}.creator-item .mini-btn{width:100%}}


/* Step 17B Creator Wizard */
.creator-hero-polished{
  position:relative;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.11);
  background:
    radial-gradient(circle at 20% 0%, rgba(124,92,255,.28), transparent 34%),
    radial-gradient(circle at 100% 20%, rgba(0,212,255,.16), transparent 30%),
    rgba(255,255,255,.045);
  border-radius:28px;
  padding:22px;
  box-shadow:0 22px 80px rgba(0,0,0,.28);
}
.creator-hero-polished h2{font-size:30px;margin:6px 0 4px;letter-spacing:-.03em}
.creator-hero-polished p{color:var(--muted);margin:0;line-height:1.45}
.wizard-progress{display:flex;gap:9px;margin-top:18px}
.wizard-dot{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;border:1px solid rgba(255,255,255,.14);background:rgba(255,255,255,.055);color:#b9c5d8;font-weight:800;font-size:13px;appearance:none;padding:0;cursor:pointer;font-family:inherit;transition:transform .14s ease,border-color .14s ease,background .14s ease}
.wizard-dot.active{background:#fff;color:#101522;border-color:#fff;box-shadow:0 0 0 6px rgba(255,255,255,.08)}
.wizard-dot.done{background:rgba(52,211,153,.18);color:#c7f9e7;border-color:rgba(52,211,153,.36)}
.wizard-dot:active{transform:scale(.94)}
.wizard-dot:focus-visible{outline:2px solid #9b87ff;outline-offset:3px}
.creator-wizard-card,.creator-voice-card,.premium-list-card{
  margin-top:16px;
  background:linear-gradient(180deg,rgba(255,255,255,.075),rgba(255,255,255,.035));
  border:1px solid rgba(255,255,255,.11);
  border-radius:28px;
  padding:18px;
  box-shadow:0 22px 80px rgba(0,0,0,.24);
}
.wizard-step{display:none;min-height:295px}
.wizard-step.active{display:block;animation:wizardIn .18s ease-out}
@keyframes wizardIn{from{opacity:.5;transform:translateY(6px)}to{opacity:1;transform:none}}
.wizard-step h3{font-size:26px;margin:8px 0 6px;letter-spacing:-.03em}
.wizard-step p{color:var(--muted);line-height:1.45;margin:0 0 16px}
.creator-wizard-card input,.creator-wizard-card textarea,.creator-wizard-card select,
.creator-voice-card input,.creator-voice-card textarea{
  width:100%;
  margin-top:12px;
  background:rgba(0,0,0,.26);
  border:1px solid rgba(255,255,255,.12);
  border-radius:18px;
  color:var(--text);
  padding:14px 15px;
  font:inherit;
  outline:none;
}
.creator-wizard-card textarea,.creator-voice-card textarea{min-height:105px;resize:vertical}
.creator-wizard-card input:focus,.creator-wizard-card textarea:focus,.creator-wizard-card select:focus,
.creator-voice-card input:focus,.creator-voice-card textarea:focus{
  border-color:rgba(255,255,255,.32);
  box-shadow:0 0 0 4px rgba(255,255,255,.06);
}
.wizard-preview-avatar,.wizard-review-avatar,.creator-list-avatar{
  width:96px;height:96px;border-radius:28px;
  display:grid;place-items:center;
  margin:22px auto 0;
  font-size:30px;
  font-weight:950;
  color:#fff;
  background:
    radial-gradient(circle at 30% 22%,rgba(255,255,255,.32),transparent 28%),
    linear-gradient(135deg,rgba(124,92,255,.95),rgba(0,212,255,.55));
  border:1px solid rgba(255,255,255,.16);
  box-shadow:0 18px 60px rgba(0,0,0,.25);
}
.wizard-side-note{margin-top:12px;color:var(--muted);font-size:13px;line-height:1.4}
.wizard-review{border:1px solid rgba(255,255,255,.1);background:rgba(0,0,0,.18);border-radius:20px;padding:14px;margin-top:12px}
.wizard-review-top{display:flex;gap:12px;align-items:center;margin-bottom:12px}
.wizard-review-avatar{width:58px;height:58px;margin:0;border-radius:18px;font-size:18px}
.wizard-review b{display:block;font-size:18px}
.wizard-review span{display:block;color:var(--muted);font-size:13px}
.wizard-review p{font-size:13px;margin:9px 0 0;color:#dbe5f5}
.wizard-actions{display:flex;gap:10px;margin-top:18px}
.wizard-actions button{flex:1}
.creator-voice-card{margin-bottom:24px}
.creator-help{color:var(--muted);font-size:13px;line-height:1.45;margin:10px 0}
.creator-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:12px}
.creator-pill{font-size:12px;border:1px solid rgba(255,255,255,.14);background:rgba(255,255,255,.06);padding:7px 10px;border-radius:999px;color:#dce6f7;white-space:nowrap}
.creator-list-card{background:linear-gradient(180deg,rgba(255,255,255,.07),rgba(255,255,255,.035));border:1px solid rgba(255,255,255,.11);border-radius:24px;padding:16px;margin-top:16px}
.creator-item{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 0;border-top:1px solid rgba(255,255,255,.07)}
.creator-item:first-child{border-top:0}
.premium-character-left{display:flex;align-items:center;gap:12px;min-width:0}
.creator-list-avatar{width:52px;height:52px;border-radius:17px;margin:0;font-size:16px;flex:0 0 auto}
.creator-list-avatar img,.creator-character-avatar img{width:100%;height:100%;object-fit:cover;border-radius:inherit}
.creator-item b{display:block;margin-bottom:3px}
.creator-item span{display:block;color:var(--muted);font-size:12px;line-height:1.35}
.creator-character-avatar{display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,rgba(124,92,255,.95),rgba(0,212,255,.55));font-weight:900;font-size:24px;color:#fff}
.creator-character-avatar>span:first-child{position:relative;z-index:1}
@media(max-width:760px){
  .creator-hero-polished h2{font-size:26px}
  .wizard-step{min-height:260px}
  .wizard-actions{position:sticky;bottom:88px;background:rgba(10,13,22,.72);backdrop-filter:blur(14px);padding:10px;border-radius:18px;border:1px solid rgba(255,255,255,.08)}
  .creator-item{align-items:flex-start;flex-direction:column}
  .creator-item .mini-btn{width:100%}
}

/* Keep the new visibility action intact after older cumulative layout rules. */
.premium-character-item .creator-item-actions{grid-template-columns:repeat(3,minmax(0,1fr))!important;}
@media(max-width:760px){
  .premium-character-item .creator-item-actions{grid-template-columns:1fr 1fr!important;}
  .premium-character-item .creator-item-actions .creator-visibility-character{grid-column:1/-1;}
}

/* Step 53: public Community characters and creator safety controls. */
.community-browser-card{padding:18px;}
.community-toolbar{display:grid;grid-template-columns:minmax(0,1fr) 170px 124px;align-items:end;gap:12px;margin-bottom:14px;}
.community-search-wrap{display:grid;gap:7px;min-width:0;color:var(--muted);font-size:12px;font-weight:800;}
.community-search-wrap input{width:100%;min-width:0;min-height:48px;border:1px solid var(--line);border-radius:14px;background:#0b0f15;color:var(--text);padding:12px 14px;font:inherit;font-size:16px;outline:none;}
.community-search-wrap input:focus{border-color:var(--accent);box-shadow:0 0 0 3px rgba(141,124,255,.11);}
.community-sort-wrap{display:grid;gap:7px;min-width:0;color:var(--muted);font-size:12px;font-weight:800;}
.community-sort-wrap select{width:100%;min-width:0;min-height:48px;border:1px solid var(--line);border-radius:14px;background:#0b0f15;color:var(--text);padding:0 36px 0 13px;font:inherit;font-size:14px;font-weight:800;outline:none;}
.community-sort-wrap select:focus{border-color:var(--accent);box-shadow:0 0 0 3px rgba(141,124,255,.11);}
.community-refresh-btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-width:0;min-height:48px;margin:0;padding:0 14px;border:1px solid rgba(141,124,255,.42);border-radius:14px;background:rgba(141,124,255,.12);color:#ddd8ff;font:inherit;font-size:14px;font-weight:850;}
.community-refresh-btn span:first-child{font-size:20px;line-height:1;}
.community-refresh-btn:active{transform:translateY(1px);background:rgba(141,124,255,.2);}
.community-safety-note{margin:0 0 16px;color:var(--muted);font-size:13px;line-height:1.45;}
.community-character-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;}
.community-character-grid>.loading,.community-character-grid>.community-empty-card{grid-column:1/-1;}
.community-character-card{min-width:0;padding:16px;border:1px solid rgba(255,255,255,.1);border-radius:20px;background:linear-gradient(180deg,#151a24,#0d1118);box-shadow:0 14px 38px rgba(0,0,0,.18);}
.community-character-top{display:grid;grid-template-columns:54px minmax(0,1fr);gap:12px;align-items:center;}
.community-avatar{width:54px;height:54px;border-radius:17px;display:grid;place-items:center;overflow:hidden;background:linear-gradient(135deg,#745dff,#28bce8);color:white;font-weight:950;letter-spacing:.04em;}
.community-avatar img{width:100%;height:100%;object-fit:cover;display:block;}
.community-character-top h3{margin:0;font-size:19px;line-height:1.15;overflow-wrap:anywhere;}
.community-character-top p{margin:4px 0 0;color:var(--muted);font-size:12px;overflow-wrap:anywhere;}
.community-description{min-height:42px;margin:13px 0 10px;color:#cbd2df;font-size:14px;line-height:1.45;}
.community-voice-label,.creator-visibility-status{display:inline-flex;width:max-content;max-width:100%;padding:5px 9px;border:1px solid rgba(255,255,255,.1);border-radius:999px;background:rgba(255,255,255,.04);color:var(--muted);font-size:11px;font-weight:800;}
.community-card-meta{display:flex;align-items:center;justify-content:space-between;gap:10px;}
.community-like{display:inline-flex;align-items:center;gap:5px;min-height:34px;margin:0;padding:5px 10px;border:1px solid rgba(255,255,255,.12);border-radius:999px;background:rgba(255,255,255,.04);color:#b7c0d0;font-size:14px;line-height:1;}
.community-like span{font-size:19px;color:#aab3c3;}
.community-like b{font-size:12px;}
.community-like.is-liked{border-color:rgba(255,99,132,.42);background:rgba(255,99,132,.1);color:#ff9db2;}
.community-like.is-liked span{color:#ff6f91;}
.creator-visibility-status{margin-top:6px;}
.creator-visibility-status.is-public{border-color:rgba(52,211,153,.35);background:rgba(52,211,153,.1);color:#8ef1c8;}
.creator-moderation-note{display:block!important;margin-top:6px;color:#ffb7a8!important;font-size:11px!important;line-height:1.35;}
.community-primary-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:14px;}
.community-primary-actions button{min-height:44px;margin:0;border-radius:13px;font-weight:850;}
.community-sample{border:1px solid rgba(141,124,255,.4);background:rgba(141,124,255,.1);color:#ddd8ff;}
.community-use{border:0;background:linear-gradient(135deg,#745dff,#917bff);color:white;}
.community-safety-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:12px;padding-top:10px;border-top:1px solid rgba(255,255,255,.07);}
.community-safety-actions button{border:0;background:transparent;color:#98a2b5;padding:5px;font-size:12px;text-decoration:underline;text-underline-offset:3px;}
.community-owner-label{margin-top:12px;color:#8ef1c8;font-size:11px;font-weight:800;text-align:right;}
.premium-character-item .creator-item-actions{grid-template-columns:repeat(3,minmax(0,1fr))!important;}
.character-copy small{display:block;margin-top:2px;color:#a99cff;font-size:9px;font-weight:800;}
@media(max-width:760px){
  .community-toolbar{grid-template-columns:minmax(0,1fr) 116px;gap:10px;}
  .community-search-wrap{grid-column:1/-1;}
  .community-sort-wrap{width:auto;}
  .community-character-grid{grid-template-columns:1fr;}
  .premium-character-item .creator-item-actions{grid-template-columns:1fr 1fr!important;}
  .premium-character-item .creator-item-actions .creator-visibility-character{grid-column:1/-1;}
}
@media(max-width:430px){
  .community-toolbar{grid-template-columns:minmax(0,1fr) 108px;}
  .community-refresh-btn{padding:0 10px;}
}


/* Step 17C Fish ID voice option */
.voice-choice-toggle{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:14px 0}
.voice-mode-btn{border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.055);color:#dbe5f5;border-radius:16px;padding:13px 12px;font-weight:850;cursor:pointer}
.voice-mode-btn.active{background:#fff;color:#101522;border-color:#fff;box-shadow:0 12px 35px rgba(255,255,255,.10)}
.voice-mode-panel{display:none}
.voice-mode-panel.active{display:block}
#fishVoiceBox input{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;letter-spacing:.01em}


/* Step 17D Edit + Community */
.creator-item-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.community-hero{
  background:
    radial-gradient(circle at 18% 0%, rgba(124,92,255,.22), transparent 32%),
    radial-gradient(circle at 100% 18%, rgba(0,212,255,.12), transparent 30%),
    rgba(255,255,255,.045);
  border-radius:28px;
  border:1px solid rgba(255,255,255,.10);
  padding:20px;
}
.community-empty-card{text-align:center;padding:28px 18px}
.community-empty-icon{
  width:70px;height:70px;margin:0 auto 14px;border-radius:24px;
  display:grid;place-items:center;font-size:28px;font-weight:950;
  background:linear-gradient(135deg,rgba(124,92,255,.82),rgba(0,212,255,.42));
  border:1px solid rgba(255,255,255,.14);
  box-shadow:0 18px 55px rgba(0,0,0,.22);
}
.community-empty-card p{color:var(--muted);line-height:1.45;margin:8px auto 0;max-width:540px}
@media(max-width:760px){
  .creator-item-actions{width:100%;display:grid;grid-template-columns:1fr 1fr}
}


/* Step 18 Launch Cleanup */
.report-issue-btn{
  display:block;
  margin:10px auto 18px;
  opacity:.78;
}
.report-issue-btn:hover{opacity:1}
#adminReportsCard .admin-audit-filters{
  grid-template-columns:1.1fr 1.4fr auto auto;
}

/* Step 73: owner-only staged concurrency test and pipeline failure reporting. */
.admin-load-test-card{border-color:rgba(141,124,255,.3);}
.admin-load-test-config{margin:12px 0;padding:12px 14px;border:1px solid var(--line);border-radius:14px;background:#0b0f15;color:var(--muted);font-size:13px;line-height:1.45;}
.admin-load-test-config.is-ready{border-color:rgba(52,211,153,.35);color:#8ef1c8;background:rgba(52,211,153,.07);}
.admin-load-test-config.is-error{border-color:rgba(255,105,120,.4);color:#ffb2bc;background:rgba(255,105,120,.07);}
.admin-load-test-actions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:14px 0 10px;}
.admin-load-test-actions button{min-height:46px;margin:0;}
.admin-load-test-controls{display:flex;align-items:center;gap:10px;margin-bottom:14px;}
.admin-load-test-controls button{margin:0;}
.admin-load-test-controls .danger-btn{min-height:42px;border:1px solid rgba(255,105,120,.45);border-radius:13px;background:rgba(255,105,120,.1);color:#ffb2bc;padding:0 14px;font:inherit;font-weight:850;}
.load-test-call{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 14px;align-items:center;padding:12px 0;border-bottom:1px solid rgba(255,255,255,.07);}
.load-test-call.has-error{margin:6px 0;padding:12px;border:1px solid rgba(255,105,120,.35);border-radius:14px;background:rgba(255,105,120,.06);}
.load-test-call:last-child{border-bottom:0;}
.load-test-call b{font-size:13px;}.load-test-call>span{color:var(--muted);font-size:12px;}
.load-test-milestones{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:6px;}
.load-test-milestones span{padding:4px 8px;border:1px solid var(--line);border-radius:999px;color:var(--muted);font-size:10px;font-weight:800;}
.load-test-milestones span.good{border-color:rgba(52,211,153,.32);background:rgba(52,211,153,.08);color:#8ef1c8;}
.load-test-error{grid-column:1/-1;color:#ffb2bc;font-size:11px;line-height:1.45;}
@media(max-width:760px){.admin-load-test-actions{grid-template-columns:1fr 1fr;}}
@media(max-width:760px){
  #adminReportsCard .admin-audit-filters{grid-template-columns:1fr}
}


/* Step 18B character picker tabs + upload-only photo */
.character-mode-toggle{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
  margin:12px 0 14px;
}
.character-mode-btn{
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.055);
  color:#dbe5f5;
  border-radius:16px;
  padding:12px 6px;
  font-size:14px;
  white-space:nowrap;
  font-weight:850;
  cursor:pointer;
}
.character-mode-btn.active{
  background:#fff;
  color:#101522;
  border-color:#fff;
  box-shadow:0 12px 35px rgba(255,255,255,.10);
}
.custom-character-empty{
  grid-column:1/-1;
  text-align:center;
  padding:24px 14px;
  border:1px dashed rgba(255,255,255,.14);
  border-radius:20px;
}
.wizard-upload-preview{
  margin-top:12px;
  min-height:118px;
  display:grid;
  place-items:center;
  text-align:center;
  border:1px dashed rgba(255,255,255,.18);
  background:rgba(0,0,0,.18);
  border-radius:20px;
  color:var(--muted);
  overflow:hidden;
}
.wizard-upload-preview.has-photo{
  grid-template-columns:86px 1fr;
  gap:14px;
  justify-items:start;
  padding:12px;
  color:#dbe5f5;
}
.wizard-upload-preview img{
  width:86px;
  height:86px;
  border-radius:20px;
  object-fit:cover;
  border:1px solid rgba(255,255,255,.14);
}
.wizard-preview-avatar img,
.wizard-review-avatar img{
  width:100%;
  height:100%;
  object-fit:cover;
  border-radius:inherit;
}
@media(max-width:760px){
  .character-mode-toggle{position:sticky;top:8px;z-index:3;background:rgba(10,13,22,.68);backdrop-filter:blur(14px);padding:8px;border-radius:18px;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
  .character-mode-btn{padding:11px 4px;font-size:13px;letter-spacing:-.01em}
}


/* Step 18C character creation fixes */
.consent-check,
.creator-check,
.wizard-rights-check{
  display:flex !important;
  align-items:flex-start !important;
  gap:10px !important;
  width:100%;
  box-sizing:border-box;
}
.consent-check input,
.creator-check input,
.wizard-rights-check input{
  flex:0 0 auto;
  margin-top:3px;
}
.consent-check span,
.creator-check span,
.wizard-rights-check span{
  flex:1 1 auto;
  min-width:0;
  display:block;
  line-height:1.38;
}
.creator-character-avatar img.character-photo,
.character-photo-wrap img.character-photo{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  border-radius:inherit;
}
.wizard-preview-avatar,
.wizard-review-avatar{
  overflow:hidden;
}


/* Step 18E hard fix: review agreement layout */
.wizard-review-step{
  display:block !important;
  width:100% !important;
  max-width:100% !important;
}
.wizard-review-stack{
  display:flex !important;
  flex-direction:column !important;
  align-items:stretch !important;
  gap:14px !important;
  width:100% !important;
  max-width:100% !important;
  min-width:0 !important;
  box-sizing:border-box !important;
  overflow:hidden !important;
}
#wizardReview.wizard-review{
  width:100% !important;
  max-width:100% !important;
  min-width:0 !important;
  box-sizing:border-box !important;
  overflow:hidden !important;
}
.wizard-rights-box{
  display:grid !important;
  grid-template-columns:22px minmax(0,1fr) !important;
  gap:10px !important;
  align-items:start !important;
  width:100% !important;
  max-width:100% !important;
  min-width:0 !important;
  box-sizing:border-box !important;
  padding:12px 13px !important;
  border:1px solid rgba(255,255,255,.14) !important;
  border-radius:16px !important;
  background:rgba(255,255,255,.055) !important;
  color:#dbe5f5 !important;
  line-height:1.35 !important;
  overflow:hidden !important;
}
.wizard-rights-box input{
  width:18px !important;
  height:18px !important;
  margin:2px 0 0 !important;
  grid-column:1 !important;
}
.wizard-rights-box span{
  grid-column:2 !important;
  display:block !important;
  min-width:0 !important;
  max-width:100% !important;
  overflow-wrap:anywhere !important;
  word-break:normal !important;
  white-space:normal !important;
}
@media(max-width:900px){
  .wizard-rights-box{
    grid-template-columns:20px minmax(0,1fr) !important;
    padding:11px !important;
  }
}


/* Step 18F hard character picker tab separation */
.character-picker-wrap.mode-preset #presetCharacterGrid{
  display:grid !important;
}
.character-picker-wrap.mode-preset #myCharacterGrid{
  display:none !important;
}
.character-picker-wrap.mode-mine #presetCharacterGrid{
  display:none !important;
}
.character-picker-wrap.mode-mine #myCharacterGrid{
  display:grid !important;
}
#presetCharacterGrid .custom-character-card{
  display:none !important;
}
#myCharacterGrid > .character-card:not(.custom-character-card){
  display:none !important;
}


/* Step 18G wizard visibility + horizontal character picker */
.creator-wizard-card .wizard-step:not(.active){
  display:none !important;
}
.creator-wizard-card .wizard-step[hidden]{
  display:none !important;
}
.creator-wizard-card .wizard-step.active{
  display:block !important;
}
#presetCharacterGrid.character-grid-polished,
#myCharacterGrid.character-grid-polished{
  display:grid;
  grid-auto-flow:column;
  grid-auto-columns:calc((100% - 36px) / 4);
  grid-template-columns:none !important;
  overflow-x:auto;
  overflow-y:hidden;
  gap:12px !important;
  padding:2px 4px 12px;
  scroll-snap-type:x mandatory;
  -webkit-overflow-scrolling:touch;
}
#presetCharacterGrid.character-grid-polished .character-card,
#myCharacterGrid.character-grid-polished .character-card{
  scroll-snap-align:start;
  min-width:0;
}
#presetCharacterGrid.character-grid-polished::-webkit-scrollbar,
#myCharacterGrid.character-grid-polished::-webkit-scrollbar{
  height:6px;
}
#presetCharacterGrid.character-grid-polished::-webkit-scrollbar-thumb,
#myCharacterGrid.character-grid-polished::-webkit-scrollbar-thumb{
  background:rgba(255,255,255,.18);
  border-radius:999px;
}
@media(max-width:760px){
  #presetCharacterGrid.character-grid-polished,
  #myCharacterGrid.character-grid-polished{
    grid-auto-columns:calc((100% - 12px) / 2);
  }
}
.character-picker-wrap.mode-preset #presetCharacterGrid{
  display:grid !important;
}
.character-picker-wrap.mode-preset #myCharacterGrid{
  display:none !important;
}
.character-picker-wrap.mode-mine #presetCharacterGrid{
  display:none !important;
}
.character-picker-wrap.mode-mine #myCharacterGrid{
  display:grid !important;
}


.character-scroll-hint{
  color:var(--muted);
  font-size:12px;
  margin:-4px 2px 10px;
}


/* Step 18H auth + creator polish */
.auth-grid.standalone{
  display:grid;
  gap:16px;
}
.auth-panel-toggle{
  width:100%;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:5px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.045);
  color:var(--text);
  border-radius:18px;
  padding:15px 16px;
  cursor:pointer;
  text-align:left;
}
.auth-panel-toggle strong{
  font-size:24px;
  letter-spacing:-.03em;
}
.auth-panel-toggle.active{
  background:rgba(255,255,255,.08);
  border-color:rgba(141,124,255,.55);
  box-shadow:0 0 0 3px rgba(141,124,255,.10);
}
.auth-panel-body{
  margin-top:14px;
}
.legal-check{
  display:grid !important;
  grid-template-columns:24px minmax(0,1fr) !important;
  align-items:start !important;
  gap:10px !important;
  width:100% !important;
  max-width:100% !important;
  box-sizing:border-box !important;
  margin:12px 0 !important;
}
.legal-check input{
  width:20px !important;
  height:20px !important;
  margin:2px 0 0 !important;
}
.legal-check span{
  display:block !important;
  min-width:0 !important;
  line-height:1.35 !important;
  white-space:normal !important;
  overflow-wrap:anywhere !important;
}
.creator-character-avatar,
.character-photo-wrap.creator-character-avatar{
  aspect-ratio:1/1;
  min-height:0;
}
.creator-character-avatar span,
.character-photo-wrap.creator-character-avatar span{
  display:grid !important;
  place-items:center !important;
  width:100% !important;
  aspect-ratio:1/1 !important;
  min-height:0 !important;
  font-size:clamp(34px,8vw,54px) !important;
  font-weight:950 !important;
  border-radius:13px !important;
  background:linear-gradient(135deg,#7c5cff,#009fbd) !important;
  color:#fff !important;
}
.inline-help-btn{
  border:0;
  background:transparent;
  color:#bfb7ff;
  padding:10px 2px 0;
  font-weight:850;
  text-align:left;
  cursor:pointer;
}
.fish-id-help{
  margin-top:10px;
  border:1px solid rgba(255,255,255,.12);
  border-radius:16px;
  padding:12px 13px;
  background:rgba(255,255,255,.055);
  color:var(--muted);
  line-height:1.42;
}
.wizard-actions{
  display:grid !important;
  grid-template-columns:1fr 1fr;
  gap:10px;
}
.wizard-cancel-btn{
  grid-column:1/-1;
}
@media(min-width:760px){
  .wizard-actions{
    grid-template-columns:.8fr 1fr 1fr;
  }
  .wizard-cancel-btn{
    grid-column:auto;
  }
}


/* Step 18I live avatar + account transaction dropdown */
.transaction-toggle{
  display:flex !important;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.ledger-box{
  margin-top:10px;
}
.live-character-circle img.live-character-photo{
  width:100%;
  height:100%;
  object-fit:cover;
  border-radius:inherit;
}


/* Step 19 admin usage controls */
.admin-stats-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
  margin:14px 0;
}
.admin-stat-card{
  border:1px solid rgba(255,255,255,.11);
  background:rgba(255,255,255,.045);
  border-radius:16px;
  padding:13px;
}
.admin-stat-card span,
.admin-stat-card small{
  display:block;
  color:var(--muted);
  font-size:12px;
}
.admin-stat-card b{
  display:block;
  font-size:24px;
  margin:4px 0 2px;
  letter-spacing:-.03em;
}
.admin-user-tools{
  margin-top:10px;
}
.admin-row-actions{
  display:flex;
  gap:8px;
  justify-content:flex-end;
  padding:10px 0 0;
}
.admin-subhead{
  margin-top:18px;
}
.blocklist-item{
  padding:10px 12px;
}
@media(max-width:760px){
  .admin-stats-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .admin-stat-card b{
    font-size:20px;
  }
}


/* Step 20 mobile polish + support */
@media(max-width:760px){
  body{padding-left:12px;padding-right:12px}
  .hero h2{font-size:34px}
.support-page{padding:14px}
  .support-card{padding:18px;border-radius:22px}
  .support-card h1{font-size:30px}
  .support-contact-grid{grid-template-columns:1fr}
}


/* Step 26 admin reset recipient limit */
.admin-reset-tools{
  margin-top:10px;
  border-top:1px solid rgba(255,255,255,.08);
  padding-top:12px;
}


/* Step 31: keep live call controls predictable */
#hangupCallBtn.is-disabled{
  opacity:.55;
  cursor:not-allowed;
}


/* Step 33: live audio is automatic */
.live-listen-auto .live-listen-button,
.live-listen-button.hidden{
  display:none !important;
}
.live-listen-auto{
  justify-content:center;
}


/* Step 34: admin support inbox */
.admin-support-tools select{
  min-height:42px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.06);
  color:inherit;
  border-radius:12px;
  padding:0 10px;
}
.admin-inline-actions{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:12px;
}
.support-request-item.is-closed{
  opacity:.72;
}


/* Step 35: launch polish */
.topbar h1 small{
  display:none;
}
.empty-state,
.loading{
  border-radius:14px;
}
.credit-store-head .storekit-badge{
  letter-spacing:.02em;
}
.admin-audit-card,
.account-security,
.credit-store{
  box-shadow:0 12px 35px rgba(0,0,0,.12);
}
.launch-polish-note{
  color:rgba(255,255,255,.72);
  font-size:.92rem;
}


/* Step 36: mobile Account support buttons fix */
.support-account-card{
  overflow:hidden;
}
.support-account-card .support-link-row{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  width:100%;
  max-width:100%;
  box-sizing:border-box;
  white-space:normal;
  overflow-wrap:anywhere;
  word-break:normal;
  line-height:1.18;
  min-height:56px;
  margin:10px 0 0 0;
  text-align:left;
  text-decoration:none;
}
.support-account-card .support-link-row + .support-link-row{
  margin-top:10px;
}
@media (max-width: 720px){
  .support-account-card{
    display:block !important;
  }
  .support-account-card .account-security-head{
    display:block;
    margin-bottom:8px;
  }
  .support-account-card .support-link-row{
    font-size:1rem;
    padding:14px 16px;
  }
}


/* Step 37: production admin phone lock */
#adminPhoneLockNote{
  margin:8px 0 14px;
  color:rgba(255,255,255,.70);
}


/* Step 38: admin lock startup order fix */


/* Step 39: persistent native-app login sessions */


/* Step 40: native-style mobile viewport lock */
html,
body{
  width:100%;
  max-width:100vw;
  min-width:0;
  overflow-x:hidden !important;
  overscroll-behavior-x:none;
  -webkit-text-size-adjust:100%;
  text-size-adjust:100%;
}
body{
  touch-action:pan-y;
  overscroll-behavior-y:none;
}
#mainAppShell,
.app,
main,
.tab-page{
  width:100%;
  max-width:100%;
  min-width:0;
  box-sizing:border-box;
  overflow-x:hidden;
}
img,video,canvas,svg{max-width:100%;}
input,textarea,select,button{touch-action:manipulation;}
@media (max-width:900px){
  input,textarea,select{font-size:16px !important;}
  html,body{position:relative;overscroll-behavior:none;}
  body{margin:0;padding:0;}
  .app,#mainAppShell{overflow-x:hidden !important;}
}


/* Step 41: native shell polish + Creator Studio mobile repair */
html,body{background:var(--bg) !important;}
body{padding:0 !important;}
.app{padding:max(12px,env(safe-area-inset-top)) 12px calc(118px + env(safe-area-inset-bottom));}
main{padding-bottom:8px;}

.credits{
  appearance:none;
  color:var(--text);
  cursor:pointer;
  text-align:left;
}
.credits:active{transform:scale(.98);}

.bottom-nav{
  position:fixed !important;
  left:50%;
  transform:translateX(-50%);
  bottom:max(8px,env(safe-area-inset-bottom));
  width:min(calc(100% - 20px),740px);
  margin:0 !important;
  z-index:100;
  grid-template-columns:repeat(5,minmax(0,1fr));
  border-radius:22px;
  padding:8px;
  background:rgba(15,18,25,.96);
}
.nav-btn{min-width:0;padding:9px 4px !important;}
.nav-btn span:last-child{font-size:10px;}
.legal-footer{padding:18px 12px 8px !important;margin-bottom:0;}

.creator-hero-polished{margin-top:0 !important;padding:18px !important;}
.creator-wizard-card{padding:18px !important;margin-bottom:0 !important;}
.wizard-step{min-height:0 !important;}
.wizard-step h3{font-size:24px;}
.wizard-actions{
  position:static !important;
  bottom:auto !important;
  margin-top:18px !important;
  background:transparent !important;
  backdrop-filter:none !important;
  border:0 !important;
  padding:0 !important;
  border-radius:0 !important;
  display:grid !important;
  grid-template-columns:1fr 1fr !important;
}
.wizard-cancel-btn{grid-column:1/-1 !important;order:3;}
#wizardBackBtn{order:1;}
#wizardNextBtn,#wizardCreateBtn{order:2;}
.wizard-actions button{min-height:48px;}

.native-file-input{
  position:absolute !important;
  width:1px !important;
  height:1px !important;
  opacity:0 !important;
  pointer-events:none !important;
  overflow:hidden !important;
}
.upload-photo-btn{margin-top:4px !important;}

.wizard-review-step,.wizard-review-stack{min-width:0 !important;width:100% !important;}
.wizard-rights-box{
  display:flex !important;
  align-items:flex-start !important;
  gap:12px !important;
  width:100% !important;
  min-width:0 !important;
  padding:14px !important;
  overflow:visible !important;
}
.wizard-rights-box input{
  flex:0 0 22px !important;
  width:22px !important;
  height:22px !important;
  min-width:22px !important;
  margin:1px 0 0 !important;
}
.wizard-rights-box span{
  flex:1 1 auto !important;
  min-width:0 !important;
  width:auto !important;
  overflow-wrap:anywhere !important;
  line-height:1.42 !important;
}

@media(max-width:760px){
  .app{padding-left:0;padding-right:0;}
  .topbar{padding:0 14px;}
  main{padding:0;}
  .tab-page>section,.tab-page>.card,.tab-page>.account-placeholder{border-radius:0 !important;border-left:0 !important;border-right:0 !important;}
  .creator-hero-polished,.creator-wizard-card{border-radius:0 !important;border-left:0 !important;border-right:0 !important;}
  .creator-hero-polished{padding:18px 18px 16px !important;}
  .creator-wizard-card{padding:18px !important;}
  .wizard-progress{gap:8px;}
  .wizard-dot{width:36px;height:36px;}
  .bottom-nav{width:calc(100% - 16px);}
}


/* Step 42: shared Caller IDs + global native safe-area blend */
html,body,#mainAppShell,.app{
  background:#0b0d12 !important;
  background-image:none !important;
}
html,body{
  min-height:100%;
}
body{
  min-height:100dvh;
}

/* Keep the fixed iPhone tab bar sitting on the same app surface all the way
   through the home-indicator safe area. */
.bottom-nav{
  background:#0b0d12 !important;
  padding-bottom:max(10px,env(safe-area-inset-bottom)) !important;
  border-bottom:0 !important;
}

/* Mine: character photo and Edit/Delete actions must never overlap. */
.premium-character-item{
  display:grid !important;
  grid-template-columns:minmax(0,1fr) !important;
  gap:12px !important;
  align-items:start !important;
}
.premium-character-item .premium-character-left{
  width:100% !important;
  min-width:0 !important;
  display:grid !important;
  grid-template-columns:64px minmax(0,1fr) !important;
  gap:14px !important;
  align-items:center !important;
}
.premium-character-item .creator-list-avatar{
  width:64px !important;
  height:64px !important;
  aspect-ratio:1/1 !important;
  flex:none !important;
  overflow:hidden !important;
}
.premium-character-item .creator-item-actions{
  position:static !important;
  inset:auto !important;
  width:100% !important;
  display:grid !important;
  grid-template-columns:1fr 1fr !important;
  gap:10px !important;
  margin:0 !important;
}
.premium-character-item .creator-item-actions .mini-btn{
  width:100% !important;
  margin:0 !important;
}

/* Shared RoleCall caller-ID picker */
.shared-caller-id-panel{
  border:1px solid var(--line);
  background:#0b0f15;
  border-radius:13px;
  padding:12px;
}
.shared-caller-id-title{
  display:block;
  font-size:13px;
}
.shared-caller-id-help{
  display:block;
  color:var(--muted);
  font-size:10px;
  line-height:1.4;
  margin:4px 0 10px;
}
.shared-caller-id-list{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
}
.shared-caller-id-option{
  min-width:0;
  border:1px solid var(--line);
  background:#121722;
  color:var(--text);
  border-radius:12px;
  padding:10px;
  text-align:left;
  cursor:pointer;
}
.shared-caller-id-option b,
.shared-caller-id-option span{
  display:block;
}
.shared-caller-id-option b{
  font-size:12px;
  white-space:nowrap;
}
.shared-caller-id-option span{
  color:var(--muted);
  font-size:9px;
  margin-top:3px;
}
.shared-caller-id-option.selected{
  border-color:var(--accent);
  background:rgba(141,124,255,.14);
  box-shadow:0 0 0 2px rgba(141,124,255,.08);
}
@media(max-width:430px){
  .shared-caller-id-list{grid-template-columns:1fr;}
}


/* Step 43: per-call Caller ID + true native-edge tab bar */
.app{
  padding-top:0 !important;
  padding-bottom:calc(88px + env(safe-area-inset-bottom)) !important;
}
.topbar{
  margin:0 !important;
  padding:calc(12px + env(safe-area-inset-top)) 14px 14px !important;
  background:#0b0d12 !important;
  border-bottom:1px solid var(--line);
}
.bottom-nav{
  left:0 !important;
  right:0 !important;
  bottom:0 !important;
  transform:none !important;
  width:100% !important;
  max-width:none !important;
  box-sizing:border-box !important;
  border-left:0 !important;
  border-right:0 !important;
  border-bottom:0 !important;
  border-radius:20px 20px 0 0 !important;
  padding:8px 8px calc(8px + env(safe-area-inset-bottom)) !important;
  background:#0f1219 !important;
  box-shadow:0 -10px 30px rgba(0,0,0,.28) !important;
}
main{padding-bottom:10px !important;}
.legal-footer{padding-bottom:8px !important;margin-bottom:0 !important;}

.call-caller-tabs{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
  padding:5px;
  margin-top:14px;
  background:#0b0f15;
  border:1px solid var(--line);
  border-radius:14px;
}
.call-caller-tab{
  border:0;
  background:transparent;
  color:var(--muted);
  border-radius:10px;
  min-height:44px;
  padding:10px 8px;
  font-weight:900;
  cursor:pointer;
}
.call-caller-tab.active{background:#f6f7fb;color:#10131a;}
.call-caller-panel{margin-top:12px;}
.compact-field-label{
  display:block;color:var(--muted);font-size:10px;font-weight:800;
  letter-spacing:.04em;margin-bottom:6px;
}
.call-caller-select{
  width:100%;border:1px solid var(--line);background:#0b0f15;color:var(--text);
  border-radius:12px;padding:12px;font-weight:800;
}
.call-caller-note{color:var(--muted);font-size:10px;line-height:1.45;margin:8px 2px 0;}
.personal-caller-state{
  border:1px solid var(--line);background:#0b0f15;border-radius:13px;padding:12px;
}
.personal-caller-state span,.personal-caller-state strong{display:block;}
.personal-caller-state span{color:var(--muted);font-size:10px;}
.personal-caller-state strong{margin-top:4px;font-size:14px;}
.personal-caller-state .secondary-btn{margin-top:10px;}

.caller-id-personal-status{
  border:1px solid var(--line);background:#0b0f15;border-radius:13px;
  padding:12px;margin-top:12px;
}
.caller-id-personal-status b,.caller-id-personal-status span{display:block;}
.caller-id-personal-status span{color:var(--muted);margin-top:4px;font-size:11px;}

.launch-summary-grid{grid-template-columns:repeat(3,minmax(0,1fr)) !important;}
.fish-id-help p{margin:0 0 13px;line-height:1.5;}
.fish-id-help p:last-child{margin-bottom:0;}

.premium-character-item .premium-character-left{
  grid-template-columns:72px minmax(0,1fr) !important;
}
.premium-character-item .creator-list-avatar{
  width:72px !important;height:72px !important;
}
.premium-character-item .creator-item-actions{
  clear:both !important;position:relative !important;z-index:1 !important;
}

@media(max-width:520px){
  .launch-summary-grid{grid-template-columns:1fr 1fr !important;}
  .launch-summary-grid>div:last-child{grid-column:1/-1;}
}


/* Step 44: obvious compact Caller ID dropdown. */
.call-caller-select{
  appearance:none !important;
  -webkit-appearance:none !important;
  padding-right:42px !important;
  background-color:#0b0f15 !important;
  background-image:
    linear-gradient(45deg,transparent 50%,#aeb5c7 50%),
    linear-gradient(135deg,#aeb5c7 50%,transparent 50%) !important;
  background-position:
    calc(100% - 18px) 50%,
    calc(100% - 12px) 50% !important;
  background-size:6px 6px,6px 6px !important;
  background-repeat:no-repeat !important;
}


/* Step 45: visible swipe affordances for the horizontal character picker. */
.character-scroll-shell{
  position:relative;
  min-width:0;
}
.character-scroll-arrow{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  z-index:12;
  width:30px;
  height:46px;
  border:1px solid rgba(255,255,255,.16);
  border-radius:999px;
  background:rgba(10,12,18,.88);
  color:#fff;
  font-size:28px;
  line-height:1;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:0 6px 20px rgba(0,0,0,.28);
  cursor:pointer;
  -webkit-backdrop-filter:blur(10px);
  backdrop-filter:blur(10px);
}
.character-scroll-left{left:4px;}
.character-scroll-right{right:4px;}
.character-scroll-arrow.hidden{display:none !important;}

/* Step 48: always-visible exit from legal and support pages. */
.legal-back-link{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  margin:0 0 18px;
  padding:0 15px;
  position:sticky;
  top:max(10px,env(safe-area-inset-top));
  z-index:30;
  border:1px solid rgba(255,255,255,.16);
  border-radius:999px;
  background:rgba(10,12,18,.94);
  color:#f5f3ff;
  font-weight:800;
  text-decoration:none;
  box-shadow:0 8px 24px rgba(0,0,0,.28);
  -webkit-backdrop-filter:blur(12px);
  backdrop-filter:blur(12px);
}
.legal-back-link:active{transform:scale(.98);}

/* Step 50: standalone legal/support pages inside the iPhone WebView. */
.legal-page{
  width:100%;
  max-width:none;
  margin:0;
  padding:76px 20px 64px;
  overflow-x:hidden;
}
.legal-doc{
  width:min(100%,760px);
  margin:0 auto;
}
.legal-doc h1{
  margin:8px 0 10px;
  font-size:clamp(32px,8vw,48px);
  line-height:1.05;
  letter-spacing:-.04em;
  overflow-wrap:anywhere;
}
.legal-doc h2{
  font-size:clamp(22px,5.8vw,30px);
  line-height:1.16;
  letter-spacing:-.025em;
}
.legal-doc p{
  font-size:16px;
  line-height:1.62;
}
.legal-doc ul{
  margin:10px 0 22px;
  padding-left:24px;
}
.legal-doc li{
  margin:0 0 10px;
  color:#d8dde8;
  font-size:16px;
  line-height:1.55;
}
.legal-doc a{color:#cfc8ff;}
.legal-page .legal-back-link{
  top:72px;
}

.support-page{
  width:min(100%,760px);
  margin:0 auto;
  padding:14px 0 64px;
}
.support-card{
  padding:22px;
  border:1px solid var(--line);
  border-radius:24px;
  background:linear-gradient(180deg,#191e28,#12161e);
  box-shadow:0 20px 55px rgba(0,0,0,.28);
}
.support-card h1{
  margin:6px 0 10px;
  font-size:36px;
  line-height:1.08;
  letter-spacing:-.04em;
}
.support-card>p{
  margin:0 0 18px;
  color:var(--muted);
  line-height:1.55;
}
.support-links{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin:18px 0;
}
.support-links a{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  padding:8px 12px;
  border:1px solid rgba(141,124,255,.3);
  border-radius:999px;
  background:rgba(141,124,255,.09);
  color:#ddd8ff;
  font-size:13px;
  font-weight:750;
  text-decoration:none;
}
.support-contact-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:9px;
  margin:0 0 18px;
}
.support-contact-grid>div{
  min-width:0;
  padding:12px;
  border:1px solid var(--line);
  border-radius:14px;
  background:#0d1118;
}
.support-contact-grid small,
.support-contact-grid b{
  display:block;
}
.support-contact-grid small{
  margin-bottom:5px;
  color:var(--muted);
  font-size:11px;
}
.support-contact-grid b{
  overflow-wrap:anywhere;
  font-size:13px;
  line-height:1.35;
}
.support-form{
  display:grid;
  gap:10px;
}
.support-form select,
.support-form input,
.support-form textarea{
  display:block;
  width:100%;
  min-width:0;
  margin:0;
  border:1px solid var(--line);
  border-radius:14px;
  background:#0b0f15;
  color:var(--text);
  padding:13px 14px;
  font:inherit;
  font-size:16px;
  outline:none;
}
.support-form select{
  min-height:50px;
  color-scheme:dark;
}
.support-form textarea{
  min-height:150px;
}
.support-form input::placeholder,
.support-form textarea::placeholder{
  color:#737d8e;
}
.support-form select:focus,
.support-form input:focus,
.support-form textarea:focus{
  border-color:var(--accent);
  box-shadow:0 0 0 3px rgba(141,124,255,.11);
}
.support-form .secondary-btn{
  min-height:52px;
  margin:0;
  font-size:16px;
}
.support-status{
  min-height:20px;
  margin:0;
  color:var(--muted);
  font-size:13px;
}
.support-small{
  margin-top:18px!important;
  font-size:13px;
}
.support-small a{color:#cfc8ff;}

@media(max-width:760px){
  .legal-page{
    padding-top:76px!important;
    padding-right:16px!important;
    padding-left:16px!important;
  }
  .legal-page .legal-back-link{top:72px;}
  .legal-doc h1{font-size:36px;}
  .legal-doc h2{font-size:25px;}
  .support-page{padding:14px 0 52px;}
  .support-card{padding:18px 16px;border-radius:22px;}
  .support-card h1{font-size:34px;}
  .support-contact-grid{grid-template-columns:1fr;}
  .support-links{display:grid;grid-template-columns:1fr 1fr;}
  .support-links a:first-child{grid-column:1/-1;}
  .support-links a{justify-content:center;text-align:center;}
}

/* Step 53 must win over the older cumulative My Characters action layout. */
.premium-character-item .creator-item-actions{grid-template-columns:repeat(3,minmax(0,1fr))!important;}
@media(max-width:760px){
  .premium-character-item .creator-item-actions{grid-template-columns:1fr 1fr!important;}
  .premium-character-item .creator-item-actions .creator-visibility-character{grid-column:1/-1;}
}


/* Live call controls */
.iphone-live-controls-row{
  display:flex;
  align-items:flex-start;
  justify-content:center;
  gap:46px;
  margin-top:10px;
}
.iphone-live-control{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:7px;
  min-width:70px;
  color:rgba(255,255,255,.82);
  font-size:12px;
  text-transform:lowercase;
}
.iphone-live-control.hidden{display:none!important}

/* Transaction history clear action */
.transaction-ledger-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.clear-transactions-btn{
  appearance:none;
  border:1px solid rgba(255,255,255,.16);
  background:rgba(255,255,255,.06);
  color:inherit;
  border-radius:999px;
  padding:8px 11px;
  font:inherit;
  font-size:12px;
  font-weight:700;
  cursor:pointer;
}
.clear-transactions-btn:disabled{opacity:.5;cursor:default}


/* Fish Discovery shortcut in Creator help */
.fish-discovery-link{
  display:flex;align-items:center;justify-content:center;width:100%;box-sizing:border-box;
  margin:2px 0 13px;padding:11px 14px;border-radius:12px;text-decoration:none;font-weight:700;
  border:1px solid rgba(255,255,255,.16);background:rgba(255,255,255,.08);color:inherit;
}
.fish-discovery-link:active{transform:scale(.985);}
.fish-browser-note{opacity:.86;}

/* Fish Discovery model-ID steps */
.fish-discovery-steps {
  margin: 12px 0 10px;
  padding: 12px 14px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.34);
}
.fish-discovery-steps p {
  margin: 0 0 7px;
}
.fish-discovery-steps ol {
  margin: 0;
  padding-left: 20px;
}
.fish-discovery-steps li {
  margin: 5px 0;
  line-height: 1.45;
}

/* Phone-only onboarding refresh */
.auth-screen{
  min-height:100dvh;
  padding:max(28px,env(safe-area-inset-top)) 18px max(26px,env(safe-area-inset-bottom));
  display:flex;
  align-items:flex-start;
  justify-content:center;
  overflow-y:auto;
  background:
    radial-gradient(circle at 50% 18%,rgba(118,82,255,.20),transparent 24%),
    radial-gradient(circle at 50% 55%,rgba(76,43,178,.10),transparent 35%),
    linear-gradient(180deg,#070914 0%,#090b16 52%,#060711 100%);
}
.auth-screen.hidden{display:none!important}
.auth-shell-polished{
  width:min(100%,520px);
  margin:0 auto;
  padding:20px 0 18px;
}
.auth-brand-polished{
  text-align:center;
  margin:0 auto 24px;
}
.auth-logo{
  display:block;
  width:112px;
  height:112px;
  object-fit:cover;
  border-radius:28px;
  margin:4px auto 18px;
  box-shadow:0 0 0 1px rgba(149,112,255,.55),0 12px 38px rgba(73,43,172,.32);
}
.auth-wordmark{
  display:block;
  color:#a88cff;
  font-size:13px;
  line-height:1;
  letter-spacing:.30em;
  font-weight:800;
  margin-bottom:12px;
}
.auth-brand-polished h1{
  margin:0;
  color:#fff;
  font-size:clamp(42px,12vw,62px);
  line-height:.98;
  letter-spacing:-.045em;
  font-weight:900;
}
.auth-spark{
  margin:14px 0 8px;
  color:#a98cff;
  font-size:30px;
  line-height:1;
  text-shadow:0 0 18px rgba(158,120,255,.95),0 0 36px rgba(87,231,218,.35);
}
.auth-brand-polished>p{
  margin:0;
  color:#b9bdc9;
  font-size:17px;
  line-height:1.35;
}
.auth-grid.auth-flow,.auth-grid.auth-flow.standalone{
  display:block;
  width:100%;
}
.auth-flow .auth-panel{
  background:transparent;
  border:0;
  box-shadow:none;
  padding:0;
}
.auth-flow .auth-panel-body{
  display:block;
  padding:0;
}
.auth-step-card{
  border:1px solid rgba(145,133,184,.42)!important;
  background:linear-gradient(180deg,rgba(14,18,35,.92),rgba(8,11,23,.94))!important;
  border-radius:26px!important;
  padding:24px!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.025),0 24px 60px rgba(0,0,0,.20)!important;
}
.auth-step-heading{
  display:flex;
  align-items:flex-start;
  gap:14px;
  margin-bottom:18px;
}
.auth-step-number{
  flex:0 0 42px;
  width:42px;
  height:42px;
  display:grid;
  place-items:center;
  border-radius:50%;
  color:#fff;
  font-size:19px;
  font-weight:850;
  border:2px solid #8b67ff;
  background:#0d1020;
  box-shadow:0 0 20px rgba(129,91,255,.32);
}
.auth-step-heading h2{
  margin:1px 0 4px;
  color:#f8f8fb;
  font-size:19px;
  line-height:1.2;
  font-weight:850;
}
.auth-step-heading p{
  margin:0;
  color:#9da3b3;
  font-size:14px;
  line-height:1.4;
}
.auth-phone-field{
  position:relative;
  display:flex;
  align-items:center;
  min-height:66px;
  border:1px solid rgba(151,132,213,.58);
  background:#090d19;
  border-radius:20px;
  margin-bottom:16px;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.01);
}
.auth-phone-icon{
  width:54px;
  text-align:center;
  color:#c5c0d5;
  font-size:23px;
  transform:rotate(-18deg);
  opacity:.8;
  user-select:none;
}
.auth-phone-field input{
  width:100%;
  height:64px;
  border:0!important;
  outline:0!important;
  background:transparent!important;
  box-shadow:none!important;
  color:#fff!important;
  font-size:21px!important;
  padding:0 18px 0 0!important;
  margin:0!important;
}
.auth-phone-field input::placeholder{color:#777d8e!important;opacity:1}
.auth-phone-field:focus-within{
  border-color:#9b7aff;
  box-shadow:0 0 0 2px rgba(147,111,255,.12),0 0 28px rgba(110,71,255,.15);
}
.auth-primary-btn{
  width:100%;
  min-height:62px;
  border:1px solid #b79cff!important;
  border-radius:22px!important;
  background:linear-gradient(90deg,#6f45e8 0%,#8758ff 48%,#6943db 100%)!important;
  color:#080811!important;
  font-size:20px!important;
  font-weight:900!important;
  letter-spacing:-.01em;
  display:flex!important;
  align-items:center;
  justify-content:center;
  position:relative;
  box-shadow:0 0 0 1px rgba(150,112,255,.18),0 0 28px rgba(119,79,255,.38)!important;
  transition:transform .15s ease,filter .15s ease;
}
.auth-primary-btn span{
  position:absolute;
  right:22px;
  font-size:24px;
  line-height:1;
}
.auth-primary-btn:active{transform:scale(.99)}
.auth-primary-btn:disabled{opacity:.62;filter:saturate(.75)}
.auth-verify-card{
  margin:28px -24px -24px;
  padding:24px;
  border-top:1px solid rgba(145,133,184,.38);
  background:linear-gradient(180deg,rgba(12,15,30,.90),rgba(8,10,21,.96));
  border-radius:0 0 26px 26px;
  position:relative;
}
.auth-verify-card::before{
  content:"";
  position:absolute;
  width:8px;
  height:8px;
  border-radius:50%;
  top:-5px;
  left:50%;
  transform:translateX(-50%);
  background:#9a78ff;
  box-shadow:0 0 14px rgba(154,120,255,.9);
}
.otp-grid{
  display:grid;
  grid-template-columns:repeat(6,minmax(0,1fr));
  gap:8px;
  margin:16px 0 14px;
}
.otp-digit{
  min-width:0!important;
  width:100%!important;
  height:58px!important;
  margin:0!important;
  padding:0!important;
  text-align:center;
  border-radius:14px!important;
  border:1px solid rgba(116,120,146,.48)!important;
  background:#0a0e1b!important;
  color:#fff!important;
  font-size:24px!important;
  font-weight:800!important;
  outline:none!important;
  box-shadow:none!important;
}
.otp-digit:focus{
  border-color:#a17cff!important;
  box-shadow:0 0 0 2px rgba(148,106,255,.15),0 0 22px rgba(111,70,255,.22)!important;
}
.auth-verify-btn{margin-top:4px}
.auth-resend-row{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  margin-top:13px;
  color:#747b8e;
  font-size:13px;
}
.auth-link-btn{
  appearance:none;
  border:0!important;
  background:transparent!important;
  color:#b8bdcb!important;
  text-decoration:none!important;
  padding:6px 2px!important;
  font:inherit;
  font-weight:650;
}
.auth-link-btn:hover,.auth-link-btn:focus{color:#fff!important}
.auth-legal{
  margin:22px 4px 0!important;
  color:#858b9a!important;
  font-size:12px!important;
  line-height:1.55!important;
  text-align:center;
}
.auth-legal a{
  color:#d9d9e1!important;
  text-decoration:none!important;
  font-weight:700;
}
.auth-legal a:hover,.auth-legal a:focus{color:#fff!important;text-decoration:underline!important}

@media(max-width:420px){
  .auth-screen{padding-left:14px;padding-right:14px}
  .auth-shell-polished{padding-top:10px}
  .auth-logo{width:94px;height:94px;border-radius:24px;margin-bottom:15px}
  .auth-brand-polished h1{font-size:45px}
  .auth-brand-polished>p{font-size:15px}
  .auth-step-card{padding:20px!important;border-radius:23px!important}
  .auth-step-heading{gap:11px}
  .auth-step-number{flex-basis:38px;width:38px;height:38px;font-size:17px}
  .auth-step-heading h2{font-size:18px}
  .auth-phone-field{min-height:60px;border-radius:18px}
  .auth-phone-field input{height:58px!important;font-size:19px!important}
  .auth-primary-btn{min-height:58px;font-size:19px!important;border-radius:20px!important}
  .auth-verify-card{margin:24px -20px -20px;padding:20px;border-radius:0 0 23px 23px}
  .otp-grid{gap:6px}
  .otp-digit{height:52px!important;border-radius:12px!important;font-size:22px!important}
}

/* Phone auth viewport + OTP autofill/resend polish */
.auth-screen{
  position:fixed;
  inset:0;
  width:100%;
  height:100dvh;
  min-height:0;
  padding:max(14px,env(safe-area-inset-top)) 14px max(14px,env(safe-area-inset-bottom));
  overflow:hidden;
  align-items:center;
  z-index:1000;
}
.auth-shell-polished{
  max-height:100%;
  height:auto;
  padding:0;
  display:flex;
  flex-direction:column;
  justify-content:center;
}
.auth-link-btn:disabled{
  opacity:.58;
  cursor:default;
  color:#777d8e!important;
}

/* When the code step opens, tighten the same design just enough to keep the
   complete auth flow inside the iPhone viewport without page scrolling. */
.auth-screen.verification-active .auth-brand-polished{margin-bottom:10px}
.auth-screen.verification-active .auth-logo{
  width:68px;
  height:68px;
  border-radius:18px;
  margin:0 auto 8px;
}
.auth-screen.verification-active .auth-wordmark{
  font-size:10px;
  margin-bottom:7px;
}
.auth-screen.verification-active .auth-brand-polished h1{
  font-size:34px;
  line-height:1;
}
.auth-screen.verification-active .auth-spark{
  margin:6px 0 3px;
  font-size:18px;
}
.auth-screen.verification-active .auth-brand-polished>p{font-size:13px}
.auth-screen.verification-active .auth-step-card{
  padding:14px!important;
  border-radius:20px!important;
}
.auth-screen.verification-active .auth-step-heading{
  gap:9px;
  margin-bottom:9px;
}
.auth-screen.verification-active .auth-step-number{
  flex-basis:32px;
  width:32px;
  height:32px;
  font-size:15px;
}
.auth-screen.verification-active .auth-step-heading h2{font-size:16px}
.auth-screen.verification-active .auth-step-heading p{font-size:12px}
.auth-screen.verification-active .auth-phone-field{
  min-height:48px;
  margin-bottom:10px;
  border-radius:15px;
}
.auth-screen.verification-active .auth-phone-icon{width:44px;font-size:19px}
.auth-screen.verification-active .auth-phone-field input{
  height:46px!important;
  font-size:17px!important;
}
.auth-screen.verification-active .auth-primary-btn{
  min-height:48px;
  border-radius:16px!important;
  font-size:17px!important;
}
.auth-screen.verification-active .auth-verify-card{
  margin:13px -14px -14px;
  padding:13px 14px 14px;
  border-radius:0 0 20px 20px;
}
.auth-screen.verification-active .auth-verify-card .auth-step-heading{margin-bottom:5px}
.auth-screen.verification-active .otp-grid{
  gap:6px;
  margin:8px 0;
}
.auth-screen.verification-active .otp-digit{
  height:42px!important;
  border-radius:10px!important;
  font-size:20px!important;
}
.auth-screen.verification-active .auth-verify-btn{margin-top:2px}
.auth-screen.verification-active .auth-resend-row{
  margin-top:5px;
  font-size:11px;
}
.auth-screen.verification-active .auth-link-btn{padding:3px 2px!important}
.auth-screen.verification-active .auth-legal{
  margin:9px 2px 0!important;
  font-size:10px!important;
  line-height:1.35!important;
}

@media(max-height:700px){
  .auth-logo{width:72px;height:72px;border-radius:19px;margin:0 auto 8px}
  .auth-brand-polished{margin-bottom:10px}
  .auth-brand-polished h1{font-size:36px}
  .auth-spark{margin:6px 0 4px;font-size:20px}
  .auth-brand-polished>p{font-size:13px}
  .auth-step-card{padding:15px!important}
  .auth-step-heading{margin-bottom:10px}
  .auth-phone-field{min-height:50px;margin-bottom:10px}
  .auth-phone-field input{height:48px!important;font-size:17px!important}
  .auth-primary-btn{min-height:50px;font-size:17px!important}
  .auth-legal{margin-top:10px!important;font-size:10px!important}
}


/* Empty My Characters CTA — full-width and clearly tappable */
#myCharacterGrid.character-grid-polished.empty-state{
  grid-auto-flow:row !important;
  grid-auto-columns:100% !important;
  grid-template-columns:minmax(0,1fr) !important;
  overflow-x:hidden !important;
  width:100% !important;
  padding:4px 4px 14px !important;
}
#myCharacterGrid.empty-state .custom-character-empty{
  display:block !important;
  width:100% !important;
  max-width:none !important;
  margin:8px 0 0 !important;
  padding:0 !important;
  border:0 !important;
  background:transparent !important;
}
.empty-community-link{
  width:100%;
  min-height:132px;
  display:grid;
  grid-template-columns:64px minmax(0,1fr) 48px;
  align-items:center;
  gap:16px;
  padding:22px 22px;
  border:2px solid rgba(139,92,246,.92);
  border-radius:26px;
  background:linear-gradient(135deg,rgba(111,45,211,.96),rgba(48,28,101,.98));
  box-shadow:0 16px 40px rgba(109,40,217,.24), inset 0 1px 0 rgba(255,255,255,.10);
  color:#fff;
  text-align:left;
  cursor:pointer;
  font:inherit;
  -webkit-tap-highlight-color:transparent;
}
.empty-community-link:active{transform:scale(.992)}
.empty-community-icon,
.empty-community-arrow{
  display:grid;
  place-items:center;
  border-radius:999px;
  background:rgba(139,92,246,.34);
  border:1px solid rgba(196,181,253,.34);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08);
}
.empty-community-icon{
  width:58px;
  height:58px;
  font-size:34px;
  line-height:1;
  font-weight:500;
}
.empty-community-arrow{
  width:46px;
  height:46px;
  justify-self:end;
  font-size:38px;
  line-height:1;
  padding-bottom:4px;
}
.empty-community-copy{display:grid;gap:3px;min-width:0}
.empty-community-copy strong{font-size:20px;line-height:1.12;font-weight:900}
.empty-community-copy>span{font-size:20px;line-height:1.18;font-weight:850}
.empty-community-copy small{margin-top:9px;font-size:14px;line-height:1.2;font-weight:650;color:rgba(235,231,255,.74)}
@media(max-width:520px){
  .empty-community-link{grid-template-columns:52px minmax(0,1fr) 40px;gap:12px;padding:20px 16px;min-height:122px;border-radius:24px}
  .empty-community-icon{width:50px;height:50px;font-size:30px}
  .empty-community-arrow{width:40px;height:40px;font-size:32px}
  .empty-community-copy strong,.empty-community-copy>span{font-size:18px}
}

/* Account username — read-only until Change Username is tapped */
.account-username-row{align-items:center !important;gap:16px !important}
.account-username-summary{display:grid;gap:5px;min-width:0;flex:1}
.account-username-summary>span{color:var(--muted);font-size:13px}
.account-username-summary>strong{font-size:17px;line-height:1.25;overflow-wrap:anywhere}
.account-change-username-btn{white-space:nowrap}
.account-username-editor{
  margin-top:-2px;
  padding:16px;
  border:1px solid rgba(139,92,246,.34);
  border-radius:18px;
  background:rgba(87,55,158,.10);
}
.account-username-editor label{display:block;margin-bottom:8px;color:var(--muted);font-size:13px;font-weight:700}
.account-username-editor input{width:100%;margin:0}
.account-username-editor-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:12px}
.account-username-editor-actions .secondary-btn{width:auto;min-width:136px}
@media(max-width:520px){
  .account-username-row{align-items:flex-start !important;flex-direction:column}
  .account-change-username-btn{width:100%}
}

/* Admin collapsible cards + live presence */
.admin-collapsible-card > .admin-audit-head{align-items:center;gap:12px;}
.admin-collapse-toggle{margin-left:auto;width:36px;height:36px;border:1px solid rgba(150,130,255,.34);border-radius:12px;background:rgba(125,92,255,.10);color:inherit;display:grid;place-items:center;cursor:pointer;flex:0 0 auto;}
.admin-collapse-chevron{display:inline-block;font-size:22px;line-height:1;transform:rotate(0deg);transition:transform .18s ease;}
.admin-collapse-chevron.is-open{transform:rotate(180deg);}
.admin-collapsible-card.is-collapsed{padding-bottom:16px;}
.admin-collapsible-card.is-collapsed > .admin-audit-head{margin-bottom:0;}
.admin-collapsible-body[hidden]{display:none!important;}
.online-pill{display:inline-flex;align-items:center;margin-left:8px;padding:2px 7px;border-radius:999px;font-size:11px;font-weight:800;line-height:1.4;background:rgba(69,214,133,.13);border:1px solid rgba(69,214,133,.32);color:#a7f3c5;vertical-align:middle;}
.online-pill::before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor;margin-right:5px;}

/* Popular Community tab: hard separation + same horizontal picker layout as the existing tabs. */
.character-picker-wrap.mode-popular #popularCharacterGrid{
  display:grid !important;
}
.character-picker-wrap.mode-popular #presetCharacterGrid,
.character-picker-wrap.mode-popular #myCharacterGrid{
  display:none !important;
}
.character-picker-wrap.mode-preset #popularCharacterGrid,
.character-picker-wrap.mode-mine #popularCharacterGrid{
  display:none !important;
}

#popularCharacterGrid.character-grid-polished{
  display:grid;
  grid-auto-flow:column;
  grid-auto-columns:calc((100% - 36px) / 4);
  grid-template-columns:none !important;
  overflow-x:auto;
  overflow-y:hidden;
  gap:12px !important;
  padding:2px 4px 12px;
  scroll-snap-type:x mandatory;
  -webkit-overflow-scrolling:touch;
}
#popularCharacterGrid.character-grid-polished .character-card{
  scroll-snap-align:start;
  min-width:0;
}
#popularCharacterGrid.character-grid-polished::-webkit-scrollbar{
  height:6px;
}
#popularCharacterGrid.character-grid-polished::-webkit-scrollbar-thumb{
  background:rgba(255,255,255,.18);
  border-radius:999px;
}
@media(max-width:760px){
  #popularCharacterGrid.character-grid-polished{
    grid-auto-columns:calc((100% - 12px) / 2);
  }
}
