body.showcase {
  --bg: #fcf8fa; --paper: #fff; --ink: #30252e; --sub: #7d6975;
  --line: #eee3e9; --soft: #f7eaf0; --quiet: #f7f0f4; --brand: #863a56;
  min-height: 100vh; margin: 0; padding: 0; background: #f5efef;
  color: var(--ink); color-scheme: light;
}
.showcase-shell {
  width: min(100%, 530px); min-height: 100vh; margin: auto; background: var(--bg);
  display: flex; flex-direction: column; box-shadow: 0 8px 48px #4a282619;
}
.showcase svg {
  display: inline-block; width: 19px; height: 19px; fill: none; stroke: currentColor;
  stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; flex: none;
}
.showcase a:focus-visible, .showcase button:focus-visible {
  outline: 2px solid var(--brand); outline-offset: 3px;
}
.showcase-header {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  padding: 9px clamp(13px, 4vw, 22px); min-height: 60px; background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.showcase-brand, .showcase-back { display: inline-flex; gap: 8px; align-items: center; }
.showcase-brand { font-size: 18px; }
.showcase-brand strong { letter-spacing: -.02em; }
.showcase-create {
  display: inline-flex; align-items: center; gap: 4px; min-height: 44px;
  font-size: 12px; color: var(--brand);
}
.showcase-mark {
  display: grid; place-items: center; width: 22px; height: 22px; color: var(--brand);
}
.showcase-back { min-height: 44px; color: var(--brand); gap: 2px; }
.showcase-detail-header { display: grid; grid-template-columns: 1fr auto 1fr; }
.showcase-detail-header > :last-child { justify-self: end; }
.showcase-muted { font-size: 12px; color: var(--sub); overflow-wrap: anywhere; }
.showcase-main { display: grid; gap: 14px; padding: 21px clamp(16px, 4vw, 22px) 23px; }
.showcase-home-title { font-size: 25px; letter-spacing: -.04em; }
.showcase-heading { display: grid; gap: 3px; }
.showcase-status { color: var(--sub); padding: 13px 0; }
.showcase-catalog, .showcase-role { display: grid; gap: 14px; min-width: 0; }
.showcase-catalog { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.showcase-catalog:empty { display: none; }
.showcase-card {
  display: grid; grid-template-rows: auto 1fr; position: relative; border-radius: 15px; overflow: hidden;
  border: 1px solid var(--line); color: var(--ink); background: var(--paper);
}
.showcase-card:hover { border-color: #c49aaa; }
.showcase-card-cover {
  width: 100%; height: auto; aspect-ratio: 3 / 4; background: var(--quiet);
  object-fit: cover; object-position: 50% 24%;
}
.showcase-card-tag, .showcase-ai { border-radius: 999px; padding: 3px 8px; font-size: 11px; white-space: nowrap; }
.showcase-card-tag { justify-self: start; align-self: center; border-radius: 5px; padding: 1px 5px; background: var(--soft); color: var(--brand); }
.showcase-card-bottom {
  display: grid; align-content: center; gap: 2px;
  padding: 11px 22px 12px 11px; min-width: 0; gap:5px;
}
.showcase-card-bottom strong { font-size: 16px; line-height: 1.3; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.showcase-card-action {
  position: absolute; right: 6px; bottom: 9px; color: var(--brand); line-height: 1;
}
.showcase-card-action svg { width: 15px; height: 15px; }
.showcase-rate { display: inline-flex; align-items: baseline; gap: 3px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.showcase-rate b { font-size: 19px; font-weight: 650; }
.showcase-rate small { font-size: 12px; }
.showcase-card .showcase-rate b { font-size: 15px; color: var(--brand); }
.showcase-card .showcase-rate small { font-size: 11px; color: var(--sub); }
.showcase-shell { padding-bottom: calc(62px + env(safe-area-inset-bottom)); }
.showcase.call-docked .showcase-shell { padding-bottom: calc(130px + env(safe-area-inset-bottom)); }
.showcase-dock { position: fixed; z-index: 2; bottom: 0; left: 50%; transform: translateX(-50%); width: min(100%, 530px); }
.showcase-nav {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px;
  padding: 4px 6px max(5px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--paper);
}
.showcase-nav a { display: grid; justify-items: center; align-content: center; gap: 3px; min-width: 0; min-height: 48px; color: var(--sub); font-size: 11px; }
.showcase-nav a span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.showcase-nav a[aria-current] { color: var(--brand); font-weight: 650; }
.showcase-nav a[aria-current] { background:var(--soft); border-radius:11px; }
.showcase-profile {
  display: flex; gap: 12px; align-items: center;
}
.showcase-profile > img { flex: none; width: 72px; height: 88px; object-fit: cover; object-position: center 28%; border-radius: 10px; background: var(--soft); }
.showcase-profile-copy { display: grid; min-width: 0; gap: 1px; }
.showcase-profile-name { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.showcase-profile h1 { font-size: 23px; overflow-wrap: anywhere; }
.showcase-profile-category { color: var(--brand); font-size: 11px; font-weight: 650; }
.showcase-ai { background: var(--soft); color: var(--brand); }
.showcase-section { display: grid; gap: 8px; min-width: 0; margin-top: 5px; }
.showcase-section h2, .showcase-voice h2 { font-size: 17px; letter-spacing: 0; }
.showcase-section-heading { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.showcase-section-heading h2 { flex: none; }
.showcase-section-heading > p { text-align: right; margin-left: auto; }
[data-role-subtitle] { white-space: pre-line; }
.showcase-voice { display: flex; gap: 5px 8px; align-items: center; flex-wrap: wrap; }
.showcase-listen { display: inline-flex; gap: 4px; align-items: center; min-height: 44px; border: 0; background: none; padding: 0; color: var(--brand); font-size: 12px; }
.showcase-listen svg { width: 15px; height: 15px; }
[data-voice-status] { grid-column: 1 / -1; }
.showcase-soft-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  min-height: 44px; padding: 5px 10px; border: 0; border-radius: 10px;
  color: var(--brand); background: var(--soft); font-size: 13px;
}
.showcase-soft-button:disabled { opacity: .5; }
.showcase-gallery-controls { display: flex; gap: 4px; }
.showcase-gallery-controls .showcase-soft-button { width: 38px; min-height: 38px; padding: 0; }
.showcase-gallery {
  display: grid; grid-auto-columns: 40%; grid-auto-flow: column; gap: 7px; min-width: 0;
  overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: x mandatory;
  scrollbar-width: thin; padding-bottom: 4px;
}
.showcase-photo-button {
  position: relative; scroll-snap-align: start; aspect-ratio: 1.25; min-width: 0;
  padding: 0; border: 0; border-radius: 10px; overflow: hidden; background: var(--soft);
}
.showcase-photo-button img { width: 100%; height: 100%; object-fit: cover; object-position: center 36%; }
.showcase-photo-button span {
  position: absolute; left: 5px; right: auto; bottom: 5px; max-width: calc(100% - 10px);
  padding: 2px 5px; border-radius: 5px; background: #2b1927e7; color: #fff8fc;
  white-space: nowrap; text-overflow: ellipsis; overflow: hidden; font-size: 11px;
}
.showcase-photo-button:focus-visible { outline-offset: -3px; }
#role-video video { display: block; width: 100%; max-height: 350px; aspect-ratio: 16 / 9; border-radius: 12px; background: #291e27; }
#role-video .showcase-video-ready { position: absolute; width: 1px; height: 1px; visibility: hidden; }
.showcase-video-poster {
  display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 65px;
  border: 0; border-radius: 9px; background: var(--quiet); color: var(--brand); font-size: 13px;
}
.showcase-call {
  display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 12px;
  padding: 9px clamp(13px, 4vw, 22px); border-top: 1px solid var(--line); background: var(--paper);
}
.showcase-call .showcase-rate { color: var(--brand); }
.showcase-call .showcase-primary { min-height: 44px; border: 0; font-weight: 650; }
.showcase-call .showcase-primary:disabled { color: var(--sub); background: var(--quiet); }
.showcase-primary {
  min-height: 44px; flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border-radius: 10px; padding: 7px; background: var(--brand); color: #fff8fa; white-space: nowrap;
}
.showcase-footer {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 15px;
  margin-top: auto; padding: 12px 12px max(12px, env(safe-area-inset-bottom));
  color: var(--sub); font-size: 12px;
}
.showcase-footer button { border: 0; background: none; padding: 0; color: inherit; }
.showcase-footer button, .showcase-footer a { min-height: 32px; display: inline-flex; align-items: center; }
.showcase-dialog {
  width: min(440px, calc(100% - 26px)); max-height: min(90dvh, 680px); padding: 12px;
  color: var(--ink); border: 1px solid var(--line); border-radius: 16px; background: var(--paper);
}
.showcase-dialog::backdrop { background: #2e172c9d; }
.showcase-dialog-header { display: flex; justify-content: space-between; align-items: center; gap: 7px; padding-bottom: 9px; }
.showcase-dialog-header h2 { font-size: 17px; overflow-wrap: anywhere; }
.showcase-dialog img { width: 100%; max-height: 66vh; object-fit: contain; border-radius: 10px; }
.showcase-dialog-copy { display: grid; gap: 8px; color: var(--sub); }
.studio-form { display: grid; gap: 9px; }
.studio-field { display: grid; min-width: 0; gap: 4px; color: var(--sub); font-size: 12px; }
.studio-field :is(input, select, textarea) {
  width: 100%; min-width: 0; min-height: 44px; padding: 8px 9px; border: 1px solid var(--line);
  border-radius: 8px; background: var(--paper); color: var(--ink); font-size: 16px;
}
.studio-field textarea { resize: vertical; }
.studio-form > button[type=submit] { min-height: 44px; border: 0; font-weight: 650; }
.studio-form > button[type=submit]:disabled { opacity: .65; }
.studio-consent { display: flex; align-items: flex-start; gap: 8px; font-size: 12px; color: var(--sub); }
.studio-consent input { flex: none; width: 15px; height: 15px; margin: 2px 0 0; accent-color: var(--brand); }
.studio-picture {
  position: relative; display: flex; gap: 10px; justify-content: center; align-items: center; min-height: 74px;
  padding: 8px 10px; background: var(--quiet); border-radius: 10px; cursor: pointer;
}
.studio-picture strong, .studio-picture small { display: block; }
.studio-picture small { color: var(--sub); font-size: 11px; }
.studio-picture svg { color: var(--brand); }
.studio-picture img { flex: none; width: 47px; height: 55px; object-fit: cover; object-position: center 32%; border-radius: 7px; }
.studio-picture input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.studio-picture:focus-within { outline: 2px solid var(--brand); outline-offset: 2px; }
.studio-voice-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 7px; }
.studio-voice-row button { border: 1px solid var(--line); background: var(--paper); white-space: nowrap; }
.studio-voice-row svg { width: 15px; height: 15px; }
.studio-message { color: var(--sub); }
.studio-message:empty { display: none; }
.studio-actions { margin-top: 12px; }
@media (min-width: 580px) {
  .showcase-shell { min-height: calc(100vh - 28px); margin-block: 14px; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
}

