.jojo-brief {
  width: calc(100% - 32px); max-width: 650px;
  margin: clamp(42px, 7vw, 94px) auto;
  transition: max-width .5s cubic-bezier(.2,.8,.2,1);
}
#guided-brief { scroll-margin-top: 92px; }
.jojo-brief.is-chat-open { max-width: 840px; }
.jojo-brief[hidden], .jojo-brief [hidden] { display: none !important; }
.jojo-brief-heading, .jojo-progress-heading { margin-bottom: 24px; }
.jojo-brief-heading { text-align: center; margin-bottom: 20px; }
.jojo-brief-heading h2, .jojo-progress-heading h2 {
  font-size: clamp(30px, 5vw, 58px); line-height: 1.05; letter-spacing: -.045em;
  margin: 8px 0 12px;
}
.jojo-brief-heading > p:last-child, .jojo-progress-heading > p:last-child { color: #b5adb5; }
.jojo-brief-heading h2 { font-size: clamp(28px, 4.5vw, 46px); }
.jojo-brief-heading > p:last-child { font-size: clamp(13px, 2vw, 16px); }
@property --jojo-border-angle {
  syntax: '<angle>';
  inherits: false;
  initial-value: 120deg;
}
@keyframes jojo-border-flow {
  from { --jojo-border-angle: 120deg; }
  to { --jojo-border-angle: 480deg; }
}
.jojo-brief-jump {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px;
  padding: 0 15px; border-radius: 14px; border: 1px solid transparent; color: #f5e8ed;
  background: linear-gradient(#17121b, #17121b) padding-box,
    conic-gradient(from var(--jojo-border-angle, 120deg), #eea68a, #594460, #9395ff, #735c90, #eea68a) border-box;
  box-shadow: 0 0 20px #ad86da27; text-decoration: none; font-size: 12px; font-weight: 760;
  letter-spacing: .055em; white-space: nowrap; animation: jojo-border-flow 11s linear infinite;
  transition: box-shadow .25s ease, transform .25s ease;
}
.jojo-brief-jump span { color: #f8b9a4; font-size: 16px; }
.jojo-brief-jump:is(:hover, :focus-visible) { box-shadow: 0 0 24px #ad86da55; transform: translateY(-2px); }
.jojo-chat-shell {
  padding: 9px; border-radius: 24px;
  border: 1px solid transparent; background: linear-gradient(#101016, #101016) padding-box,
    linear-gradient(120deg, #eea68a, #62546b 45%, #8589ff) border-box;
  background: linear-gradient(#101016, #101016) padding-box,
    conic-gradient(from var(--jojo-border-angle, 120deg), #eea68a, #594460, #9395ff, #735c90, #eea68a) border-box;
  box-shadow: -8px -5px 28px #ef9c7b17, 10px 10px 36px #7977ff20;
  transition: box-shadow .3s ease;
  animation: jojo-border-flow 11s linear infinite;
}
.jojo-chat-shell:focus-within { box-shadow: -8px -5px 38px #ef9c7b2b, 10px 10px 46px #7977ff34; }
.jojo-chat-history {
  display: grid; grid-template-rows: 0fr; opacity: 0; visibility: hidden;
  transition: grid-template-rows .48s cubic-bezier(.2,.8,.2,1), opacity .32s ease, visibility .48s;
}
.is-chat-open .jojo-chat-history { grid-template-rows: 1fr; opacity: 1; visibility: visible; }
.jojo-chat-inner { min-height: 0; overflow: hidden; }
.jojo-chat-header {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center;
  gap: 10px; padding: 8px 9px 12px; border-bottom: 1px solid #ffffff14;
}
.jojo-chat-header strong, .jojo-chat-header [data-brief-current] { display: block; overflow-wrap: anywhere; }
.jojo-chat-header strong { font-size: 14px; }
.jojo-chat-header [data-brief-current] { color: #dfaa9a; font-size: 11px; }
.jojo-chat-mark {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px;
  background: linear-gradient(140deg, #f6b596, #b0a2ff); color: #201626; font-weight: 800;
}
.jojo-chat-header button, .jojo-brief-actions button {
  color: #e5dce8; background: #1e1a24; border: 1px solid #ffffff26; border-radius: 12px;
  padding: 8px 10px; font: inherit; font-size: 12px; cursor: pointer;
}
.jojo-composer {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center;
  gap: 8px; margin: 0; padding: 0;
}
.is-chat-open .jojo-composer { grid-template-columns: minmax(0, 1fr) auto; border-top: 1px solid #ffffff14; padding-top: 7px; }
.is-chat-open .jojo-service-field { display: none; }
.jojo-service-field { position: relative; min-width: 0; margin: 0; }
.jojo-service-field::after {
  content: ''; position: absolute; right: 13px; top: calc(50% - 4px); width: 6px; height: 6px;
  transform: rotate(45deg); border-bottom: 1px solid #e9b59e; border-right: 1px solid #e9b59e; pointer-events: none;
}
.jojo-composer select {
  appearance: none; color-scheme: dark; color: #f5eef5; background: #231e29;
  border: 1px solid #ffffff26; border-radius: 13px; width: 100%; min-height: 42px;
  padding: 0 31px 0 11px; font: inherit; font-size: 13px; cursor: pointer;
}
.jojo-composer select option { background: #211d28; color: #f5eef5; }
.jojo-composer textarea {
  display: block; min-width: 0; width: 100%; min-height: 43px; height: 43px; color: #f9f4f3;
  background: transparent; border: 0; border-radius: 12px; padding: 10px;
  resize: none; font: inherit; font-size: 16px; line-height: 1.45;
}
.jojo-composer textarea::placeholder { color: #aaa3b1; }
.jojo-composer :is(textarea, select, button):focus-visible, .jojo-chat-header button:focus-visible { outline: 1px solid #b8a9fa; outline-offset: 2px; }
.jojo-brief-send {
  display: grid; place-items: center; border: 0; border-radius: 13px;
  width: 43px; height: 43px; font: inherit; font-size: 23px; font-weight: 700;
  background: linear-gradient(130deg, #f6b596, #b0a2ff); color: #151119; cursor: pointer;
  transition: filter .2s;
}
.jojo-brief-send:hover { filter: brightness(1.12); }
.jojo-brief-send:disabled, .jojo-chat-header button:disabled { opacity: .55; cursor: wait; }
.jojo-conversation {
  display: grid; align-content: start; gap: 8px; height: clamp(185px, 37svh, 310px);
  overflow: auto; overscroll-behavior: contain; padding: 12px 8px;
}
@media (max-width: 620px) {
  .jojo-conversation { height: clamp(105px, calc(var(--jojo-visible-height, 100svh) * .38), 310px); }
}
.jojo-chat-status { margin: 0 10px 7px; color: #c1a9cb; min-height: 16px; font-size: 11px; }
.jojo-chat-privacy { text-align: center; margin: 9px 4px 0; color: #a19aa6; font-size: 11px; }
.jojo-brief-actions { display: flex; justify-content: flex-end; padding: 4px; }
.jojo-brief-actions { flex-wrap: wrap; gap: 6px; }
.studio-credits { min-width: 100px; display: grid; gap: 3px; text-align: right; }
.studio-credits strong { font-size: 12px; white-space: nowrap; color: #ffc5ae; font-variant-numeric: tabular-nums; }
.studio-credits span[data-studio-limits] { font-size: 9px; color: #c6bbcf; }
.studio-credits progress { width: 100%; height: 3px; accent-color: #eeb29d; }
.studio-credit-pulse { text-shadow: 0 0 12px #eeae9690; }
.studio-quick { display: flex; flex-wrap: wrap; gap: 5px; padding: 0 8px; }
.studio-quick:not(:empty) { padding-bottom: 7px; }
.studio-quick button, .studio-card div button, .studio-card a, .studio-tools button {
  background: #251d2f; border: 1px solid #ffffff27; border-radius: 999px;
  color: #f4eaf5; padding: 6px 11px; min-height: 34px; font: inherit; font-size: 11px; cursor: pointer;
  transition: background .2s, box-shadow .2s;
}
.studio-quick button:is(:hover, :focus-visible), .studio-card button:is(:hover, :focus-visible) { box-shadow: 0 0 14px #b193f357; background: #392b45; }
.studio-tools { display: flex; gap: 5px; flex-wrap: wrap; }
.studio-tools button:disabled, .studio-card button:disabled { opacity: .65; cursor: default; }
.studio-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; list-style: none; padding: 0; margin: 10px 0; counter-reset: studio; }
.studio-steps li { counter-increment: studio; padding: 7px 5px; border-top: 2px solid #ffffff29; font-size: 10px; color: #bbb0bf; overflow-wrap: anywhere; }
.studio-steps li::before { content: '0' counter(studio) ' · '; color: #dfafab; }
.studio-steps li[aria-current] { color: #fff2e9; border-color: #edb19e; }
.studio-gallery { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
.studio-gallery:not(:empty) { margin: 10px 0 4px; }
.studio-card { min-width: 0; border: 1px solid #ffffff24; border-radius: 12px; padding: 6px; background: #17131c; animation: jojo-appear .3s ease both; }
.studio-card.is-selected { border-color: #ebb1a1; }
.studio-card > button { display: block; width: 100%; padding: 0; background: transparent; border: 0; cursor: zoom-in; }
.studio-card img { display: block; width: 100%; height: auto; border-radius: 7px; }
.studio-card strong { display: block; margin: 5px 0; font-size: 12px; }
.studio-card div { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.studio-card div button, .studio-card a { padding: 4px 7px; min-height: 28px; }
.studio-card a { text-decoration: none; display: grid; place-items: center; }
.studio-caption { font-size: 11px; color: #c9becd; margin: 6px 0; }
.studio-dialog { width: min(900px, calc(100% - 20px)); max-height: 90dvh; padding: 16px; border: 1px solid #b797b96e; border-radius: 18px; background: #151219; color: #fff; }
.studio-dialog::backdrop { background: #08060ddd; }
.studio-dialog form { display: flex; justify-content: end; margin: 0 0 8px; }
.studio-dialog button { border: 1px solid #ffffff42; border-radius: 10px; padding: 7px 12px; background: #282030; color: #fff; cursor: pointer; }
.studio-dialog img { display: block; width: 100%; height: auto; border-radius: 10px; }
.studio-dialog pre { white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; padding: 6px; color: #e3dbe6; }
@media (max-width: 540px) {
  .studio-gallery { display: grid; grid-auto-flow: column; grid-auto-columns: min(72%, 220px); grid-template-columns: none; overflow-x: auto; scroll-snap-type: x mandatory; }
  .studio-card { scroll-snap-align: start; }
  .studio-credits { min-width: 87px; }
  .studio-credits strong { font-size: 10px; }
}
.jojo-concept {
  margin: 3px 0 8px; padding: clamp(14px, 3vw, 22px); border: 1px solid #c39ce74a;
  border-radius: 17px; background: radial-gradient(ellipse at top left, #3b2946, #19161f 78%);
  animation: jojo-appear .35s ease both;
}
.jojo-concept-offer { margin: 0 0 10px; font-size: clamp(15px, 2.2vw, 19px); color: #fff0eb; }
.jojo-concept button {
  border: 0; padding: 10px 14px; border-radius: 12px; background: linear-gradient(130deg, #f6b596, #b0a2ff);
  color: #18121c; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer;
}
.jojo-concept button:disabled { opacity: .6; cursor: default; }
.jojo-concept-status { color: #e3cadc; margin: 10px 0 0; font-size: 13px; }
.jojo-concept-status:empty { display: none; }
.jojo-concept[aria-busy="true"] .jojo-concept-status::before {
  content: ''; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%;
  background: #f4ac96; animation: jojo-concept-pulse 1.3s ease-in-out infinite alternate;
}
@keyframes jojo-concept-pulse { to { opacity: .32; transform: scale(.72); } }
.jojo-concept figure { margin: 12px 0 0; }
.jojo-concept figure img { display: block; width: 100%; height: auto; border-radius: 12px; }
.jojo-concept figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 9px; font-size: 12px; color: #c9becd; }
.jojo-concept figcaption a { color: #ffc4ab; text-decoration: underline; }
.jojo-bubble {
  margin: 0; width: fit-content; max-width: 90%; padding: 10px 14px; border-radius: 14px;
  background: #24222d; color: #f6f0f5; white-space: pre-wrap; overflow-wrap: anywhere;
  animation: jojo-appear .28s ease both;
}
.jojo-bubble-visitor { justify-self: end; background: #3b2f3a; }
.jojo-progress-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 2.5vw, 26px); }
.jojo-progress-card {
  min-width: 0; overflow: hidden; border: 1px solid #ffffff26; border-radius: 23px;
  background: #17161b; transition: border-color .3s ease, box-shadow .3s ease;
}
.jojo-progress-card:is(:hover, :focus-within) { border-color: #e9a99099; box-shadow: 0 16px 50px #0005; }
.jojo-progress-card a { display: block; color: inherit; text-decoration: none; }
.jojo-progress-card a:focus-visible { outline: 2px solid #efb79e; outline-offset: -4px; border-radius: 23px; }
.jojo-project-cover { position: relative; overflow: hidden; aspect-ratio: 16 / 9; background: var(--cover-bg, #24222d); }
.jojo-project-cover img {
  display: block; width: 100%; height: 100%; object-fit: cover; object-position: var(--cover-position, center);
  transition: transform .55s cubic-bezier(.2,.8,.2,1);
}
.jojo-progress-card:is(:hover, :focus-within) img { transform: scale(1.055); }
.jojo-card-auto35 { --cover-bg: #24201c; }
.jojo-card-salon { --cover-position: center 47%; }
.jojo-card-estelapet { --cover-bg: radial-gradient(ellipse at 55% 75%, #e6ecb9, #9fbd8c); }
.jojo-card-estelapet .jojo-project-cover img { object-fit: contain; object-position: center bottom; }
.jojo-card-kupava { --cover-position: center 52%; }
.jojo-cover-index, .jojo-cover-arrow {
  position: absolute; z-index: 1; top: 14px; display: grid; place-items: center;
  color: #fff; background: #16141bcc; border: 1px solid #ffffff45;
}
.jojo-cover-index { left: 14px; border-radius: 999px; padding: 7px 10px; font: 11px/1.2 monospace; letter-spacing: .08em; }
.jojo-cover-arrow { right: 14px; border-radius: 50%; width: 42px; height: 42px; font-size: 21px; transition: background .25s, color .25s; }
.jojo-progress-card:is(:hover, :focus-within) .jojo-cover-arrow { background: #f0ae94; color: #18121c; }
.jojo-project-caption { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: clamp(14px, 2.3vw, 24px); }
.jojo-project-caption h3 { font-size: clamp(22px, 3vw, 36px); letter-spacing: -.04em; margin: 4px 0 0; }
.jojo-project-caption p { margin: 0; }
.jojo-progress-index { color: #e8ab94; text-transform: uppercase; letter-spacing: .08em; font-size: 10px; }
.jojo-project-budget { color: #bdb4c3; display: grid; gap: 2px; font-size: 11px; }
.jojo-project-budget strong { color: #fff; white-space: nowrap; font-size: 20px; }
.jojo-preview {
  width: min(1100px, calc(100% - 20px)); max-width: none; max-height: 94dvh;
  padding: 0; border: 1px solid #ffffff35; border-radius: 18px; background: #15141c; color: #fff;
}
.jojo-preview[open] { animation: jojo-appear .25s ease both; }
.jojo-preview::backdrop { background: #0a080dd9; }
.jojo-preview-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 10px 14px; }
.jojo-preview-brand, .jojo-preview-controls, .jojo-preview-modes, .jojo-browser-dots { display: flex; align-items: center; gap: 8px; }
.jojo-browser-dots i { width: 6px; height: 6px; border-radius: 50%; background: #9a7584; }
.jojo-browser-dots i:first-child { background: #f0ae94; }
.jojo-preview-modes { gap: 2px; border-radius: 999px; padding: 3px; background: #211d2a; }
.jojo-preview-modes button { color: #dfd7e4; background: transparent; border: 0; border-radius: 999px; padding: 7px 10px; font-size: 11px; cursor: pointer; }
.jojo-preview-modes button[aria-pressed="true"] { color: #17121a; background: #edb29d; }
.jojo-preview-bar form { margin: 0; }
.jojo-preview-bar form button { background: #292534; color: white; border: 0; border-radius: 100%; width: 36px; height: 36px; font-size: 22px; cursor: pointer; }
.jojo-preview-stage { background: radial-gradient(ellipse at bottom, #332a3f, #111016 75%); }
.jojo-preview iframe { display: block; width: 100%; height: 76dvh; margin-inline: auto; border: 0; background: #18171c; }
.jojo-preview[data-mode="phone"] iframe { width: min(100%, 390px); }
@media (prefers-reduced-motion: no-preference) {
  .jojo-type-tail {
    color: transparent !important;
    -webkit-text-fill-color: transparent !important;
    text-shadow: none !important;
  }
  .jojo-type-cursor::before {
    content: "";
    position: absolute;
    width: .08em;
    min-width: 1px;
    height: .95em;
    margin-block-start: .16em;
    background: var(--accent, #eeb694);
    border-radius: 1px;
    box-shadow: 0 0 6px #eeb69480;
    pointer-events: none;
  }
}
@keyframes jojo-appear { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 620px) { .jojo-progress-grid { grid-template-columns: 1fr; } }
@media (max-width: 540px) {
  .jojo-brief { width: calc(100% - 24px); }
  .jojo-composer { grid-template-columns: minmax(0, 1fr) auto; }
  .jojo-brief:not(.is-chat-open) .jojo-composer textarea { grid-column: 1 / -1; grid-row: 1; }
  .jojo-brief:not(.is-chat-open) .jojo-service-field { width: fit-content; max-width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .studio-card, .studio-quick button { animation: none; transition: none; }
  .jojo-brief-jump { animation: none; transition: none; }
  .jojo-brief-jump:is(:hover, :focus-visible) { transform: none; }
  .jojo-concept, .jojo-concept[aria-busy="true"] .jojo-concept-status::before { animation: none; }
  .jojo-bubble, .jojo-preview[open], .jojo-progress-card, .jojo-brief, .jojo-chat-shell, .jojo-chat-history { animation: none; transition: none; }
  .jojo-project-cover img, .jojo-cover-arrow { transition: none; }
  .jojo-progress-card:is(:hover, :focus-within) img { transform: none; }
}
