.creation-studio{--studio-line:#d7ddd8;--studio-accent:#3e594a;color:#202a24;max-width:1600px;margin:auto;padding:28px clamp(18px,5vw,80px) 70px}.studio-header{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:20px;display:flex}.studio-header nav{flex-wrap:wrap;gap:20px;display:flex}.studio-header a,.studio-header span{color:inherit}.studio-intro{max-width:970px;margin:80px 0 40px}.studio-intro h1{letter-spacing:-.055em;margin:20px 0;font-size:clamp(42px,6vw,88px);font-weight:400;line-height:1}.studio-intro p,.studio-offer p{max-width:760px;font-size:18px;line-height:1.6}.studio-switch{border-bottom:1px solid var(--studio-line);flex-wrap:wrap;gap:12px;padding:20px 0;display:flex}.creation-studio button,.studio-upload,.studio-upsell a{border:1px solid var(--studio-line);min-height:44px;color:inherit;font:inherit;cursor:pointer;background:#fff;border-radius:12px;justify-content:center;align-items:center;gap:8px;padding:12px 18px;display:inline-flex}.creation-studio button[aria-pressed=true]{background:var(--studio-accent);color:#fff;border-color:var(--studio-accent)}.creation-studio button:disabled{opacity:.5;cursor:default}.creation-studio :is(button,a,input,textarea):focus-visible{outline-offset:3px;outline:3px solid #527dcb}.studio-workspace{padding-top:32px}.studio-offer h2{letter-spacing:-.035em;max-width:850px;font-size:clamp(30px,4vw,54px);font-weight:400;line-height:1.1}.tree-layout,.cartoon-layout{grid-template-columns:minmax(0,1fr) 340px;gap:24px;margin-top:32px;display:grid}.tree-canvas{border:1px solid var(--studio-line);background:#edf1ec;border-radius:24px;min-width:0;padding:24px 0}.tree-canvas h3{padding:0 24px}.tree-scroll{max-height:740px;padding:28px 16px;overflow:auto}.family-tree,.family-tree ul{justify-content:center;align-items:flex-end;gap:16px;width:max-content;min-width:100%;margin:0;padding:0;list-style:none;display:flex}.family-tree li{flex-direction:column;align-items:center;gap:24px;padding:0 8px;display:flex;position:relative}.family-tree li:after{content:"";background:#829b86;width:1px;height:24px;position:absolute;bottom:100%}.family-tree>li:after{display:none}.family-tree ul{border-bottom:1px solid #829b86;padding-bottom:24px}.creation-studio .tree-person{white-space:normal;overflow-wrap:anywhere;flex-direction:column;width:160px;min-height:185px;padding:15px;display:flex}.tree-person img,.tree-initial{object-fit:cover;color:#314a38;background:#dce5d9;border-radius:50%;place-items:center;width:56px;height:56px;font-size:24px;display:grid}.tree-person small{font-size:12px}.tree-person strong{font-size:15px;font-weight:500}.tree-person>span:last-child{white-space:pre-wrap;max-width:100%;font-size:12px;line-height:1.5}.creation-studio .tree-person.is-selected{border:2px solid var(--studio-accent)}.studio-editor{flex-direction:column;align-items:stretch;gap:16px;display:flex}.studio-editor label:not(.studio-consent),.studio-research label{flex-direction:column;gap:8px;display:flex}.studio-editor input:not([type=checkbox]):not([type=file]),.studio-editor textarea,.studio-research textarea{border:1px solid var(--studio-line);width:100%;min-height:44px;font:inherit;color:#202a24;background:#fff;border-radius:10px;padding:12px}.studio-editor textarea,.studio-research textarea{resize:vertical;min-height:110px}.studio-upload{text-align:center;flex-wrap:wrap;position:relative}.studio-upload input{max-width:100%;font:inherit;font-size:13px}.studio-save{flex-wrap:wrap;align-items:center;gap:16px;padding:24px 0;display:flex}.studio-save p{flex-basis:100%;max-width:850px;font-size:14px;line-height:1.6}.studio-research{border:1px solid var(--studio-line);background:#fff;border-radius:20px;max-width:900px;margin:30px 0;padding:30px}.studio-research p{line-height:1.6}.studio-research ul{flex-wrap:wrap;gap:16px 30px;padding-left:20px;display:flex}.studio-research a{color:var(--studio-accent);text-decoration:underline}.family-research form{gap:18px;margin:24px 0;display:grid}.family-research input:not([type=checkbox]){border:1px solid var(--studio-line);width:100%;font:inherit;border-radius:10px;padding:12px}.family-research .studio-consent{flex-direction:row;display:flex}.research-results article{border-top:1px solid var(--studio-line);padding:22px 0}.research-results article h3{margin:0 0 8px}.research-results article p{white-space:pre-wrap;overflow-wrap:anywhere}.research-saved ul{padding:0;list-style:none;display:grid}.research-saved li{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:14px;display:flex}.family-chat{border:1px solid var(--studio-line);background:#fff;border-radius:24px;max-width:980px;margin:32px 0;padding:clamp(20px,4vw,38px)}.family-chat h3{margin:0 0 22px;font-size:clamp(22px,3vw,32px);font-weight:400}.family-chat-messages{flex-direction:column;gap:14px;display:flex}.family-chat-messages p{white-space:pre-wrap;border-radius:18px;max-width:90%;margin:0;padding:16px 20px;line-height:1.65}.family-chat-assistant{background:#edf1ec;align-self:flex-start}.family-chat-user{color:#fff;background:#3e594a;align-self:flex-end}.family-chat form{margin-top:24px}.family-chat textarea{resize:vertical;width:100%;min-height:145px;font:inherit;border:1px solid var(--studio-line);color:inherit;background:#fafbf8;border-radius:16px;padding:20px;font-size:17px;line-height:1.65}.family-chat-actions{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:18px;margin-top:14px;display:flex}.family-chat-actions small{max-width:340px;line-height:1.5}.family-chat-actions button{color:#fff;background:#3e594a}.family-map{position:relative}.family-map-links{pointer-events:none;position:absolute;inset:0}.family-map-links path{fill:none;stroke:#91a68f;stroke-width:2px}.family-map-person{background:#fff;border:1px solid #c9d3c6;border-radius:18px;flex-direction:column;align-items:center;width:160px;height:185px;display:flex;position:absolute;overflow:hidden}.family-map-person.is-selected{border:2px solid #3e594a}.creation-studio .family-map-person>button{width:100%;min-height:0;color:inherit;background:0 0;border:0;border-radius:0;flex-direction:column;flex:1;gap:4px;padding:10px 8px 4px;display:flex}.family-map-person img{object-fit:cover;border-radius:50%;width:56px;height:56px}.family-map-person small{font-size:11px}.family-map-person strong{overflow-wrap:anywhere;max-height:34px;font-size:14px;overflow:hidden}.family-map-person button>span:last-child{max-width:100%;max-height:16px;font-size:11px;overflow:hidden}.family-map-upload{text-align:center;cursor:pointer;background:#edf1ec;width:100%;padding:6px;font-size:12px;display:block;position:relative}.family-map-upload input{opacity:0;cursor:pointer;width:100%;height:100%;position:absolute;inset:0}.family-map-upload:focus-within{outline-offset:-3px;outline:3px solid #527dcb}.studio-status-note{border-top:1px solid var(--studio-line);padding-top:20px;font-size:14px}.cartoon-layout{grid-template-columns:minmax(0,1fr) minmax(280px,440px)}.cartoon-portrait{background:#e7ece6;border-radius:24px;flex-direction:column;justify-content:center;align-items:center;min-height:420px;padding:30px;display:flex}.cartoon-portrait img{object-fit:contain;border-radius:18px;max-width:100%;height:auto;max-height:420px}.portrait-placeholder{color:#829b86;font-size:180px}.studio-styles{grid-template-columns:1fr 1fr;gap:10px;display:grid}.studio-consent{align-items:flex-start;gap:10px;font-size:14px;line-height:1.6;display:flex}.studio-consent input{flex-shrink:0;width:22px;height:22px}.studio-editor p{margin:0;font-size:14px;line-height:1.6}.studio-upsell{background:#edf1ec;border-radius:20px;margin-top:28px;padding:28px}.studio-order{border-top:1px solid var(--studio-line);margin-top:25px;padding-top:25px}.studio-order>p{max-width:800px;font-size:14px;line-height:1.6}.studio-feedback{min-height:24px}.studio-entry{color:#202a24;background:#edf1ec;border:1px solid #d7ddd8;border-radius:24px;margin:32px clamp(18px,5vw,80px);padding:clamp(24px,4vw,54px)}.studio-entry h2{letter-spacing:-.04em;margin:15px 0;font-size:clamp(32px,4vw,58px);font-weight:400;line-height:1.05}.studio-entry p{max-width:760px;line-height:1.6}.studio-entry nav{flex-wrap:wrap;gap:12px;margin-top:24px;display:flex}.studio-entry nav a{color:#202a24;background:#fff;border:1px solid #c3cfc4;border-radius:12px;align-items:center;min-height:48px;padding:12px 20px;display:inline-flex}.studio-entry nav a:first-child{color:#fff;background:#3e594a}@media (max-width:800px){.tree-layout,.cartoon-layout{grid-template-columns:minmax(0,1fr)}.studio-intro{margin-top:48px}.studio-header{gap:16px}.studio-header nav{order:3;justify-content:space-between;width:100%}.tree-scroll{max-height:520px}.studio-research{padding:22px}.studio-styles{grid-template-columns:1fr}}.family-chat-messages>div{border-radius:18px;max-width:90%;padding:16px 20px}.family-chat-messages>div>p{max-width:100%;padding:0}.family-chat details{margin-top:14px;font-size:14px}.family-chat details a{margin-top:10px;text-decoration:underline;display:block}.tree-layout:not(.tree-editing){grid-template-columns:minmax(0,1fr)}.family-research-result{margin-top:18px}.family-chat .family-research-result p{max-width:100%;padding:8px 0}.family-research-result article{border:1px solid var(--studio-line);overflow-wrap:anywhere;background:#fff;border-radius:16px;margin-top:16px;padding:18px}.family-research-result blockquote{border-left:3px solid #9aaa9d;margin:12px 0;padding-left:12px;line-height:1.6}.family-research-result a{text-decoration:underline}.creation-studio .family-research-result button{white-space:normal;color:#fff;background:#3e594a;min-height:44px}.cartoon-showcase{min-width:0}.cartoon-preview{border:1px solid var(--studio-line);background:#182f38;border-radius:24px;overflow:hidden}.cartoon-preview video{aspect-ratio:16/9;object-fit:contain;width:100%;display:block}.cartoon-preview-caption{justify-content:space-between;gap:16px;padding:16px 4px;font-size:12px;display:flex}.cartoon-source{border:1px solid var(--studio-line);border-radius:16px;align-items:center;gap:16px;margin-top:16px;padding:16px;display:flex}.cartoon-source img{object-fit:cover;border-radius:12px;width:64px;height:64px}.cartoon-presets-heading{border-bottom:1px solid var(--studio-line);margin-bottom:32px;padding-bottom:28px}.cartoon-presets-heading h2{margin:16px 0;font-size:clamp(32px,4vw,56px);font-weight:400;line-height:1.1}.cartoon-presets-heading>p:last-child{max-width:640px;line-height:1.7}.studio-cartoon .studio-upsell p{max-width:760px;line-height:1.7}.studio-catalog{padding-top:36px}.studio-catalog>header{max-width:760px}.studio-catalog h2{margin:18px 0;font-size:clamp(36px,5vw,66px);font-weight:400;line-height:1.05}.studio-catalog p{line-height:1.7}.studio-catalog-select{gap:12px;max-width:580px;margin:30px 0;display:grid}.studio-catalog-select select{width:100%;min-height:52px;font:inherit;color:inherit;border:1px solid var(--studio-line);background:#fff;border-radius:12px;padding:16px}.studio-custom{border:1px solid var(--studio-line);background:#e7ece6;border-radius:24px;margin:24px 0 44px;padding:clamp(24px,4vw,42px)}.studio-custom h3{margin:12px 0;font-size:clamp(26px,3vw,38px);font-weight:400}.studio-custom>p{max-width:760px}.studio-custom>a{text-underline-offset:4px;align-items:center;min-height:48px;margin:12px 18px 0 0;display:inline-flex}.studio-custom .studio-custom-cta{background:var(--studio-accent);color:#fff;border-radius:12px;padding:14px 20px;text-decoration:none}.studio-preset-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin:24px 0;display:grid}.studio-preset-card{border:1px solid var(--studio-line);color:inherit;background:#fff;border-radius:22px;flex-direction:column;padding:14px;text-decoration:none;display:flex}.studio-preset-cover{aspect-ratio:16/9;background-color:#e7ece6;background-position:50%;background-size:cover;border-radius:14px}.studio-tree-cover{color:#3e594a;flex-direction:column;justify-content:center;align-items:center;font-size:26px;line-height:1;display:flex}.studio-preset-card h4{margin:20px 6px 0;font-size:20px;font-weight:500}.studio-preset-card p{flex:1;margin:12px 6px;font-size:14px}.studio-preset-card>span{margin:12px 6px;font-size:14px}.studio-related{flex-wrap:wrap;gap:10px;padding:24px 0;display:flex}.creation-studio .studio-related button{font-size:13px}@media (max-width:700px){.studio-preset-grid{grid-template-columns:minmax(0,1fr)}}.studio-cartoon-sample{aspect-ratio:16/9;object-fit:contain;background:#10162b;border-radius:18px;width:100%;max-width:900px;max-height:560px;margin:25px 0;display:block}.studio-preset-actions{flex-wrap:wrap;align-items:center;gap:24px;margin:25px 0;display:flex}.studio-photo-workspace{border-radius:20px;margin-top:30px}.studio-photo-workspace .child-section{padding:40px 25px}
