.studio-dialog {
  width: min(600px, calc(100vw - 20px));
  max-height: 92dvh;
  border: 1px solid #dce5d5;
  border-radius: 22px;
  padding: 0;
  color: #1f281b;
  background: #fff;
  box-shadow: 0 15px 60px #1422142b;
}
.studio-dialog::backdrop { background: #19251abf }
.studio-dialog-inner { position: relative; padding: clamp(21px,5vw,32px); }
.studio-dialog h2 { margin: 0 34px 12px 0; letter-spacing: -.035em; font-size: clamp(1.6rem,4vw,2.3rem) }
.studio-dialog p { color: #4c5e46; line-height: 1.45 }
.studio-help-form { display: grid; gap: 9px; margin-top: 14px }
.studio-help-form label { display: grid; gap: 5px; font-weight: 650 }
.studio-help-form :is(textarea,select) {
  width: 100%;
  padding: 9px 11px;
  border: 1px solid #d6e0d1;
  border-radius: 9px;
  background: #fbfdf9;
  color: #253420;
  font: 400 1rem/1.45 Inter, sans-serif;
}
.studio-help-form textarea { resize: vertical; min-height: 65px }
.studio-dialog-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px }
.studio-dialog-actions [hidden] { display: none }
.chat-transcript { display: grid; gap: 7px; max-height: 37dvh; overflow-y: auto; margin: 14px 0; }
.chat-transcript p { margin: 0; padding: 8px 11px; max-width: 94%; border-radius: 11px; background: #f0f5ed; white-space: pre-wrap; overflow-wrap: anywhere }
.chat-transcript p[data-role="user"] { background: #e5f3c8; justify-self: end }
.support-tickets { display: grid; gap: 8px }
.support-ticket { border: 1px solid #dce6d5; border-radius: 12px; padding: 10px 12px }
.support-ticket p { margin: 6px 0; white-space: pre-wrap; overflow-wrap: anywhere }
.support-ticket small { color: #495b41 }
#support-inbox { margin-top: 18px }
#support-inbox summary { cursor: pointer; font-weight: 750; margin-bottom: 9px }
#support-status:empty { display: none }
#landing > .income-v7 { margin-top: 6px; gap: clamp(14px,3vw,38px); padding: clamp(16px,3vw,30px); }
#landing > .income-v7 + #formats { margin-top: clamp(29px,5vw,58px); }
#landing .income-copy h2 { font-size: clamp(1.55rem,3.15vw,2.6rem); }
@media(max-width: 760px) {
 .front-top .studio-nav { display: flex; order: 3; flex-basis: 100%; gap: 3px 6px; }
 .front-top .studio-nav :is(a,button) { min-height: 38px; font-size: .85rem; padding-inline: 8px; }
 .front-top { flex-wrap: wrap }
}

.studio-chat-page {
  max-width: 900px;
  min-height: min(76dvh, 760px);
  margin: 28px auto 48px;
  color: #1f281b;
}
.studio-chat-page[hidden] { display: none }
.chat-page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid #e1e8da;
}
.chat-page-head h1 { margin: 0; font-size: clamp(1.9rem,4vw,2.65rem); letter-spacing: -.04em }
.chat-workspace { width: min(100%, 720px); margin-inline: auto }
.chat-welcome { padding-block: clamp(26px, 6vw, 62px); max-width: 36rem }
.chat-welcome h2 { margin: 0; font-size: clamp(1.7rem,4.5vw,3rem); letter-spacing: -.05em }
.chat-welcome p { margin: 9px 0 17px; color: #4c5e46; line-height: 1.5 }
.chat-examples { display: flex; flex-wrap: wrap; gap: 8px }
.chat-examples button { min-height: 40px; padding: 8px 13px; color: #34502c; background: #f1f6eb; border: 1px solid #dae5d3; border-radius: 20px; cursor: pointer }
.studio-chat-page .chat-transcript { max-height: none; overflow: visible; gap: 11px }
.chat-transcript:empty, #chat-status:empty { display: none }
.studio-chat-page .chat-transcript p { line-height: 1.5; width: fit-content; padding: 11px 14px }
.chat-production { border: 1px solid #dce6d5; margin: 14px 0; border-radius: 15px; padding: clamp(13px, 2.2vw, 21px); overflow-wrap: anywhere }
.chat-production h2 { margin: 16px 0 6px; font-size: 1.35rem }
.chat-production p { margin: 8px 0 13px; color: #4c5e46; line-height: 1.48 }
.chat-shot-list { display: grid; gap: 9px; margin: 12px 0 16px; padding: 0; list-style: none }
.chat-shot-list li { display: flex; align-items: center; gap: 12px; min-width: 0; background: #f5f8ef; padding: 8px; border-radius: 9px }
.chat-shot-list img { display: block; width: 60px; aspect-ratio: 9/16; flex: 0 0 auto; border-radius: 5px; object-fit: cover }
.chat-shot-list p { margin: 4px 0 0 }
.chat-production video { display: block; margin-top: 14px; width: min(100%,288px); max-height: 55dvh; border-radius: 9px; background: #172018 }
.chat-composer { position: sticky; bottom: 0; display: grid; gap: 9px; background: #fff; border: 1px solid #dce6d5; border-radius: 15px; padding: 12px; box-shadow: 0 3px 18px #21342010; z-index: 4 }
.chat-composer textarea { width: 100%; min-height: 55px; resize: vertical; border: 0; padding: 8px; font: inherit; background: #fcfdfa; color: #253420; border-radius: 8px }
.chat-composer-hint { color: #52614b; font-size: .84rem; line-height: 1.35; }
#chat-status { color: #42533b; line-height: 1.45 }
@media(max-width: 520px) {
  .chat-composer .studio-dialog-actions { gap: 7px }
  .chat-composer-hint { flex-basis: 100%; }
}

.studio-chat-page {
  width: min(100%, 960px);
  padding-inline: clamp(6px, 2vw, 24px);
  box-sizing: border-box;
}
.chat-page-head h1 {
  font: 750 clamp(1.35rem, 2.4vw, 1.8rem)/1.15 Manrope, Inter, sans-serif;
  letter-spacing: -.04em;
}
.chat-workspace { width: min(100%, 740px) }
.chat-welcome { max-width: none; text-align: center; padding-block: clamp(24px, 5vw, 60px) 20px }
.chat-welcome h2 { font: 800 clamp(2rem, 5.1vw, 3.7rem)/1.04 Manrope, Inter, sans-serif }
.chat-welcome p { max-width: 36rem; margin: 13px auto clamp(20px, 3vw, 32px) }
.chat-examples { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px }
.chat-examples button {
  display: grid; align-content: end; isolation: isolate; overflow: hidden; position: relative;
  min-width: 0; min-height: 132px; aspect-ratio: 1.45; padding: 14px; text-align: left;
  background: #19231c; color: #fff; border: 0; border-radius: 15px;
}
.chat-examples button img, .chat-examples button::after { position: absolute; width: 100%; height: 100%; inset: 0 }
.chat-examples button img { object-fit: cover; object-position: center 38%; z-index: -2 }
.chat-examples button::after { content: ''; z-index: -1; background: linear-gradient(transparent 7%, #09150c49 37%, #09150ce8) }
.chat-examples button span { font: 550 .83rem/1.35 Inter, sans-serif; color: #eef4e7 }
.chat-examples button strong { font: 750 1.07rem/1.22 Manrope, sans-serif; margin-top: 3px }
.chat-examples button:focus-visible, .chat-followups button:focus-visible { outline: 3px solid #6a802a; outline-offset: 3px }
.studio-chat-page .chat-transcript { gap: 20px; margin: 26px 0; }
.studio-chat-page .chat-transcript p { margin: 0; }
.studio-chat-page .chat-transcript [data-role="user"] {
  max-width: min(85%, 34rem); background: #eaf2dd; border-radius: 17px 17px 4px 17px;
  padding: 10px 15px; color: #263221;
}
.studio-chat-page .chat-transcript [data-role="assistant"] {
  background: transparent; padding: 0 0 0 14px; border-radius: 0;
  border-left: 3px solid #bfdf70; max-width: 64ch; line-height: 1.6;
}
.studio-chat-page .chat-transcript [data-role="assistant"]::before {
  content: "AI-редактор"; display: block; margin-bottom: 5px;
  color: #4d5e40; font: 750 .81rem/1.3 Inter, sans-serif; letter-spacing: .015em;
}
.chat-followups { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 18px 16px }
.chat-followups[hidden] { display: none }
.chat-followups .front-button { min-height: 36px; padding: 7px 13px; border: 1px solid #d5dfc9; border-radius: 18px; font-size: .87rem; text-align: left }
.chat-production { background: #f7f9f3; border: 1px solid #dbe3d2; border-radius: 18px; padding: clamp(16px, 2.5vw, 24px) }
.chat-brief-meta { display: flex; gap: 7px 16px; align-items: baseline; justify-content: space-between; flex-wrap: wrap }
.chat-brief-meta strong { font: 750 1.15rem/1.22 Manrope, sans-serif; letter-spacing: -.02em }
.chat-brief-meta span { font: 600 .85rem/1.4 Inter, sans-serif; color: #516047 }
.chat-composer { bottom: 8px; padding: 13px; border-radius: 18px; box-shadow: 0 6px 20px #24341e10 }
.chat-composer:focus-within { border-color: #879e68 }
.chat-composer textarea { background: #fff; min-height: 48px; box-sizing: border-box }
.chat-composer .studio-dialog-actions { justify-content: flex-end; gap: 9px 13px }
.chat-composer-hint { margin-right: auto; order: -1 }
.chat-composer #chat-send { min-height: 40px }
#chat-status { font-size: .94rem }
#chat-status[data-error="true"] { padding: 11px 14px; border-left: 3px solid #bc7741; color: #653a23; background: #fff7ee }
@media(max-width: 530px){
 .chat-examples { grid-template-columns: 1fr; gap: 7px }
 .chat-examples button { min-height: 61px; aspect-ratio: auto; padding: 8px 12px 8px 74px; align-content: center; color: #202c1d; border: 1px solid #dce4d5; background: #fff; }
 .chat-examples button img { width: 59px; z-index: 0 }
 .chat-examples button::after { display: none }
 .chat-examples button span { color: #536248 }
 .chat-welcome { text-align: left; padding-block: 15px }
 .chat-composer-hint { flex: 1 1 9rem; font-size: .8rem }
}

.chat-estimate { display:grid; gap:.4rem; padding:.8rem 0 1rem; }
.chat-estimate small { line-height:1.45; color:#485940 }
.chat-transcript [data-role="assistant"] { white-space:pre-line }

.support-launch {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 12;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid #bbdc51;
  border-radius: 50%;
  background: #d9fa63;
  color: #20291d;
  box-shadow: 0 4px 18px #18221726;
  cursor: pointer;
}
.support-launch:hover { background: #cfee56 }
.support-launch:focus-visible, .support-close:focus-visible { outline: 3px solid #496814; outline-offset: 3px }
.support-bubble { position: relative; display: grid; place-items: center; width: 25px; height: 19px; padding-bottom: 2px; border: 2px solid currentColor; border-radius: 8px; font: 700 10px/1 Arial,sans-serif; letter-spacing: 1px }
.support-bubble::after { content: ''; position: absolute; bottom: -4px; left: 4px; width: 5px; height: 5px; background: #d9fa63; border: solid currentColor; border-width: 0 0 2px 2px; transform: skewY(-35deg) }
#studio-support { position: fixed; inset: auto max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) auto; margin: 0; width: min(410px, calc(100vw - 24px)); max-height: min(85dvh, 680px); overflow-y: auto; overscroll-behavior: contain; font-family: Inter,Arial,sans-serif }
#studio-support::backdrop { background: #14221428 }
#studio-support .studio-dialog-inner { padding: 24px }
#studio-support h2 { font-size: 1.45rem; line-height: 1.2; margin-right: 34px }
#studio-support h3 { font-size: 1rem; margin: 18px 0 6px }
.support-close { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border: 0; border-radius: 50%; color: #283322; background: #f1f4ec; font: 24px/1 Arial,sans-serif; cursor: pointer }
#studio-support .front-button { min-height: 42px; border: 1px solid #d8dfcd; border-radius: 10px; padding: 9px 12px; background: white; color: #26311d; font: inherit; font-weight: 650; cursor: pointer }
#studio-support .front-button.primary { background: #d9fa63; border-color: #d9fa63 }
#studio-support .front-button:disabled { opacity: .6; cursor: wait }
@media(max-width:700px){
 .support-launch { width: 46px; height: 46px; bottom: max(12px, env(safe-area-inset-bottom)); right: max(12px, env(safe-area-inset-right)) }
 body:has(#studio-chat:not([hidden])) .support-launch { bottom: max(178px, calc(env(safe-area-inset-bottom) + 168px)) }
 #studio-support .studio-dialog-inner { padding: 20px 16px }
}
.family-photos{display:flex;align-items:center;flex-wrap:wrap;gap:6px 12px;color:#465741;font-weight:650;font-size:.88rem}
.family-photos input{min-width:0;max-width:100%;font:inherit}
.family-photos input::file-selector-button{border:1px solid #c6d5ba;border-radius:9px;background:#f1f6e9;padding:6px 10px;color:#2b4327;cursor:pointer}
#studio-chat-title[tabindex="-1"]:focus{outline:none}
.family-photos{position:relative}
.family-photos input{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.family-photos input+span{padding:6px 10px;border:1px solid #c6d5ba;border-radius:9px;background:#f1f6e9;color:#2b4327;cursor:pointer}
.family-photos input:focus-visible+span{outline:2px solid #527448;outline-offset:2px}
.family-photos input:disabled+span{opacity:.55;cursor:default}
