#page-creator .studio-workspace { min-width:0; }
#page-creator .studio-workspace>.workspace-heading h1 { text-align:left; font-size:clamp(27px,3vw,42px); }
#page-creator .studio-workspace>.workspace-heading>div { display:flex; align-items:center; flex-wrap:wrap; justify-content:space-between; gap:12px; }
#page-creator .creator-ai-launch { margin:0; }
.cp { font-size:14px; min-width:0; }
.cp button,.cp-dialog button { font:inherit; }
.cp button:disabled { cursor:default; opacity:.42; }
.cp-topline { display:flex; justify-content:space-between; flex-wrap:wrap; gap:8px; font-size:10px; letter-spacing:.13em; color:var(--muted); padding:4px 0 16px; }
.cp-steps { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); border-bottom:1px solid var(--line); margin-bottom:30px; }
.cp-steps button { display:flex; align-items:center; gap:9px; padding:16px 8px; text-align:left; border-bottom:2px solid transparent; margin-bottom:-1px; color:var(--muted); }
.cp-steps button>span { font-size:10px; opacity:.65; }
.cp-steps [aria-current=step] { color:var(--text); border-color:var(--accent); font-weight:700; }
.cp-steps [aria-current=step]>span { background:var(--accent); color:var(--ink); padding:3px 6px; border-radius:5px; opacity:1; }
.cp-heading { display:flex; justify-content:space-between; align-items:center; gap:18px; margin:0 0 24px; }
.cp-heading h2 { font-size:clamp(25px,2.5vw,34px); font-weight:600; letter-spacing:-.04em; line-height:1.15; }
.cp-heading p { margin-top:10px; line-height:1.65; }
.cp-heading h2:focus { outline:0; }
.cp-heading>.cp-button { flex-shrink:0; font-size:12px; padding:10px 13px; min-height:40px; }
.cp-niches { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; }
.cp .cp-niche { display:flex; flex-direction:column; align-items:flex-start; text-align:left; min-width:0; min-height:240px; padding:23px 21px; border-radius:16px; border:1px solid var(--line); background:var(--surface); position:relative; isolation:isolate; overflow:hidden; transition:transform .2s,border-color .2s,box-shadow .2s; }
.cp-niche::before { content:""; position:absolute; inset:0; z-index:-1; opacity:.23; background:radial-gradient(ellipse at 0 0,var(--cp-tint),transparent 80%); }
.cp-niche-top { width:100%; display:flex; justify-content:space-between; margin-bottom:26px; align-items:start; }
.cp-niche-icon { width:48px; height:49px; padding:6px; }
.cp-niche svg { width:100%; height:100%; }
.cp-arrow { font-size:21px; color:var(--muted); font-weight:400; }
.cp-niche strong { font-size:22px; letter-spacing:-.04em; line-height:1.2; }
.cp-niche-ru { color:var(--muted); font-size:12px; margin-top:6px; }
.cp-niche small { color:var(--muted); font-size:12px; line-height:1.6; margin-top:18px; max-width:195px; }
.cp-niche:last-child { border-style:dashed; }
@media(hover:hover) and (pointer:fine) { .cp .cp-niche:hover { transform:translateY(-3px); border-color:var(--cp-tint); box-shadow:0 14px 25px -16px var(--cp-tint); } }
.cp-button { display:inline-flex; align-items:center; justify-content:center; gap:9px; border:1px solid var(--line); border-radius:9px; min-height:44px; padding:12px 18px; background:var(--surface); color:var(--text); font-weight:600; text-align:center; line-height:1.35; }
.cp-button:hover { background:var(--surface2); }
.cp-primary { background:var(--accent); color:var(--ink); border-color:var(--accent); }
.cp-primary:hover { background:var(--accent); filter:brightness(1.03); }
.cp-footnote { font-size:12px; line-height:1.65; margin-top:18px; }
.cp-audiences { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:25px; }
.cp-audiences button { padding:12px 25px; border:1px solid var(--line); border-radius:999px; background:var(--surface); }
.cp-audiences button[aria-pressed=true] { color:var(--bg); background:var(--text); border-color:var(--text); }
.cp-search { display:block; max-width:440px; margin:0 0 18px; }
.cp-search>span { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
.cp input:not([type=checkbox]),.cp select,.cp textarea,.cp-dialog input:not([type=checkbox]) { width:100%; min-width:0; background:var(--bg); color:var(--text); border:1px solid var(--line); border-radius:9px; min-height:46px; padding:12px 14px; font:inherit; line-height:1.5; }
.cp textarea { resize:vertical; min-height:130px; }
.cp textarea:focus-visible,.cp-dialog input:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
.cp-types { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; }
.cp-types button { display:flex; align-items:center; justify-content:space-between; gap:8px; padding:16px; min-height:62px; text-align:left; border:1px solid var(--line); border-radius:10px; background:var(--surface); }
.cp-types button>span { color:var(--muted); }
.cp-types button:hover { background:var(--surface2); }
.cp-types button[aria-pressed=true] { border-color:var(--text); background:var(--surface3); box-shadow:inset 0 0 0 1px var(--text); }
.cp-empty-search { padding:20px 0; }
.cp-footer { display:flex; align-items:center; justify-content:space-between; gap:14px; margin-top:25px; border-top:1px solid var(--line); padding-top:22px; }
.cp-footer>span { font-size:12px; color:var(--muted); }
.cp-footer-actions { display:flex; gap:8px; flex-wrap:wrap; justify-content:flex-end; }
.cp-params-layout { display:grid; grid-template-columns:minmax(0,1.8fr) minmax(180px,1fr); gap:18px; }
.cp-form-panel { border:1px solid var(--line); border-radius:16px; background:var(--surface); padding:24px; }
.cp-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:22px 18px; }
.cp-field { display:flex; flex-direction:column; min-width:0; gap:8px; margin:0; font-weight:400; }
.cp-field>span { font-size:12px; color:var(--muted); }
.cp-summary { display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; border-radius:16px; padding:30px 20px; border:1px solid var(--line); background:linear-gradient(135deg,#9dccb20d,#bed57b18); }
.cp-summary>svg { width:75px; height:82px; margin:0 0 32px; }
.cp-summary h3 { font-size:25px; margin:12px 0; line-height:1.2; }
.cp-summary>small { color:var(--muted); letter-spacing:.12em; }
.cp-summary-line { width:30px; border-top:1px solid var(--line); margin:28px auto; }
.cp-summary p { font-size:13px; }
.cp-palette { display:flex; flex-wrap:wrap; align-items:center; gap:10px; padding:0; border:0; margin:28px 0 0; }
.cp-palette legend { color:var(--muted); font-size:12px; padding:0 0 14px; }
.cp-palette button { height:34px; width:34px; border-radius:50%; background:var(--swatch); border:1px solid #7774; position:relative; }
.cp-palette button[aria-pressed=true]::after { content:""; position:absolute; inset:-5px; border:1px solid var(--text); border-radius:50%; }
.cp-palette>span { font-size:12px; color:var(--muted); width:100%; margin-top:8px; }
.cp-custom { padding:30px; max-width:800px; border:1px solid var(--line); border-radius:18px; background:var(--surface); }
.cp-custom-symbol { display:block; font-size:38px; color:var(--coral); margin:0 0 16px; }
.cp-custom>.cp-button { margin-top:22px; }
.cp-examples { margin:16px 0; }
.cp-examples button { font-size:12px; color:var(--muted); text-decoration:underline; text-underline-offset:4px; text-align:left; }
.cp-notice { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px; background:var(--surface3); padding:16px; border-radius:12px; margin-bottom:20px; }
.cp-notice .cp-button { font-size:12px; padding:9px 12px; min-height:36px; }
.cp-editor-title { display:flex; justify-content:space-between; gap:15px; align-items:center; padding:0 0 22px; }
.cp-editor-title strong { font-size:22px; overflow-wrap:anywhere; }
.cp-editor-title p { font-size:12px; margin-top:5px; }
.cp-draft-badge { font-size:11px; color:var(--muted); padding:5px 10px; border:1px solid var(--line); border-radius:999px; }
.cp-design-tabs { display:flex; gap:5px; overflow:auto; padding:5px 0 12px; scrollbar-width:thin; }
.cp-design-tabs button { flex-shrink:0; padding:11px 14px; border-radius:7px; color:var(--muted); white-space:nowrap; }
.cp-design-tabs [aria-selected=true] { background:var(--text); color:var(--bg); }
.cp-editor { display:grid; grid-template-columns:minmax(0,1.35fr) minmax(240px,1fr); gap:18px; align-items:stretch; }
.cp-editor.cp-editor-preview-only { grid-template-columns:minmax(0,1fr); }
.cp-preview { min-height:480px; position:relative; display:flex; flex-direction:column; align-items:center; justify-content:center; background:var(--surface); border:1px solid var(--line); border-radius:16px; overflow:hidden; isolation:isolate; padding:25px; }
.cp-preview::before { content:""; position:absolute; inset:0; background:radial-gradient(ellipse at 40% 30%,var(--cp-tint),transparent 80%); opacity:.18; z-index:-1; }
.cp-preview-meta { display:flex; width:100%; justify-content:space-between; color:var(--muted); font-size:9px; letter-spacing:.12em; }
.cp-object { width:100%; max-width:400px; min-height:200px; filter:drop-shadow(0 20px 10px #0002); margin:8px 0; }
.cp-preview-copy { text-align:center; display:flex; flex-direction:column; gap:5px; }
.cp-preview-copy strong { font-size:20px; overflow-wrap:anywhere; }
.cp-preview-copy>span { font-size:11px; color:var(--muted); }
.cp-preview-note { font-size:10px; color:var(--muted); text-align:center; margin:24px 0 0; line-height:1.5; }
.cp-preview.cp-preview-photo { display:block; min-height:0; padding:0; margin:0; background:var(--surface); }
.cp-preview-photo::before { display:none; }
.cp-product-photo { display:block; width:100%; height:auto; aspect-ratio:1; object-fit:contain; }
.cp-preview-photo figcaption { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:8px; padding:14px 18px; font-size:12px; color:var(--text); }
.cp-preview-photo figcaption small { color:var(--muted); font-size:10px; }
.cp-controls { display:flex; flex-direction:column; gap:20px; padding:24px; border:1px solid var(--line); border-radius:16px; background:var(--surface); min-width:0; }
.cp-controls .cp-palette { margin-top:0; }
.cp-brand-callout { display:flex; align-items:center; justify-content:space-between; gap:25px; border:1px solid var(--line); border-radius:14px; padding:24px; margin-top:22px; background:linear-gradient(105deg,#9ecbdb13,#dbd1ef18); }
.cp-brand-callout>div>span,.cp-kicker { display:block; font-size:10px; color:var(--muted); letter-spacing:.13em; }
.cp-brand-callout h3 { font-size:23px; margin:10px 0; line-height:1.2; }
.cp-brand-callout p { font-size:12px; }
.cp-brand-callout>.cp-button { flex-shrink:0; }
.cp-brand-plan { margin-top:28px; }
.cp-plan-heading { display:flex; justify-content:space-between; gap:20px; align-items:center; margin:0 0 20px; }
.cp-plan-heading h3 { font-size:27px; margin-top:8px; overflow-wrap:anywhere; }
.cp-brand-items { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.cp-brand-items button { display:flex; flex-direction:column; text-align:left; padding:20px; border:1px solid var(--line); border-radius:12px; background:var(--surface); }
.cp-brand-items button>span { margin-left:auto; font-size:20px; }
.cp-brand-items strong { font-size:17px; margin-bottom:8px; }
.cp-brand-items small { color:var(--muted); }
.cp-brand-items em { color:var(--muted); font-size:10px; font-style:normal; margin-top:24px; }
.cp-status { font-size:12px; color:var(--muted); margin-top:12px; }
.cp-library-actions { display:flex; align-items:center; gap:20px; justify-content:space-between; margin:0 0 24px; }
.cp-library-actions>span { color:var(--muted); font-size:12px; }
.cp-library { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; }
.cp-project { position:relative; min-width:0; border:1px solid var(--line); border-radius:14px; background:var(--surface); overflow:hidden; text-align:left; }
.cp-project>button:not(.cp-delete) { padding:0; display:block; width:100%; text-align:left; }
.cp-project>div,.cp-project>button>div:not(.cp-project-visual) { padding:20px; display:flex; flex-direction:column; gap:8px; }
.cp-project small { color:var(--muted); font-size:10px; letter-spacing:.1em; }
.cp-project strong { font-size:22px; line-height:1.3; overflow-wrap:anywhere; }
.cp-project span { font-size:12px; color:var(--muted); }
.cp-project img { width:100%; height:220px; object-fit:cover; }
.cp-project.cp-sample { padding:0; }
.cp-project .cp-project-arrow { position:absolute; right:18px; bottom:22px; font-size:24px; }
.cp-project-visual { display:flex; align-items:center; justify-content:center; position:relative; background:color-mix(in srgb,var(--cp-tint) 18%,var(--surface)); height:220px; }
.cp-project-visual svg { width:75px; height:85px; }
.cp-project-visual span { position:absolute; bottom:15px; left:15px; padding:4px 9px; background:var(--surface); border-radius:5px; font-size:10px; }
.cp .cp-delete { position:absolute; top:10px; right:10px; padding:0; background:var(--surface); color:var(--muted); width:32px; height:32px; border-radius:50%; font-size:21px; }
.cp-dialog { width:min(600px,calc(100% - 28px)); max-height:90dvh; overflow:auto; padding:30px; border:1px solid var(--line); border-radius:19px; background:var(--bg); color:var(--text); font:14px/1.6 Manrope,Arial,sans-serif; }
.cp-dialog::backdrop { background:#07111288; backdrop-filter:blur(5px); }
.cp-dialog-heading { display:flex; align-items:center; justify-content:space-between; gap:15px; margin-bottom:15px; }
.cp-dialog-heading>button { font-size:28px; padding:0 8px; }
.cp-dialog h2 { font-size:30px; }
.cp-dialog p { margin:15px 0; }
.cp-dialog .cp-field { margin:20px 0; }
.cp-brand-checks { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin:20px 0; }
.cp-brand-checks label { display:flex; align-items:center; padding:13px; gap:10px; border:1px solid var(--line); border-radius:10px; cursor:pointer; }
.cp-brand-checks input { accent-color:var(--text); width:17px; height:17px; }
.cp-brand-checks strong,.cp-brand-checks small { display:block; }
.cp-brand-checks strong { font-size:12px; }
.cp-brand-checks small { font-size:10px; color:var(--muted); }
.cp-dialog .cp-dialog-error { color:var(--coral); }
.has-ai-chat .cp-niches,.has-ai-chat .cp-types { grid-template-columns:repeat(2,minmax(0,1fr)); }
.has-ai-chat .cp-editor,.has-ai-chat .cp-params-layout { grid-template-columns:1fr; }
.has-ai-chat .cp-summary { display:none; }
.has-ai-chat .cp-brand-callout { flex-direction:column; align-items:flex-start; }
.has-ai-chat .cp-library,.has-ai-chat .cp-brand-items { grid-template-columns:repeat(2,minmax(0,1fr)); }
@media(min-width:761px) { #page-creator .sidebar nav>button { font-size:14px; white-space:normal; line-height:1.4; } }
@media(max-width:1190px) { .cp-niches,.cp-types { grid-template-columns:repeat(2,minmax(0,1fr)); }.cp-editor { grid-template-columns:minmax(0,1fr) minmax(225px,1fr); }.cp-library { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:760px) {
  #page-creator .studio-workspace>.workspace-heading>div { align-items:flex-start; }
  #page-creator .creator-ai-launch { font-size:12px; }
  .cp { font-size:13px; }.cp-topline { font-size:8px; margin-top:8px; }.cp-topline>span:last-child { display:none; }
  .cp-steps { margin-bottom:24px; }.cp-steps button { flex-direction:column; align-items:flex-start; gap:6px; padding:12px 4px; font-size:11px; }
  .cp-heading { align-items:flex-start; flex-wrap:wrap; gap:12px; }.cp-heading h2 { font-size:26px; }.cp-heading p { font-size:12px; }
  .cp-niches { gap:10px; }.cp .cp-niche { padding:18px 14px; min-height:215px; border-radius:13px; }.cp-niche-icon { width:41px; height:43px; padding:4px; }.cp-niche-top { margin-bottom:22px; }.cp-niche strong { font-size:20px; }.cp-niche-ru { font-size:10px; }.cp-niche small { font-size:11px; margin-top:15px; }
  .cp-types { gap:8px; }.cp-types button { padding:12px; font-size:12px; min-height:62px; }.cp-audiences { gap:5px; }.cp-audiences button { padding:10px 13px; font-size:12px; }
  .cp-params-layout,.cp-editor { grid-template-columns:1fr; }.cp-summary { display:none; }.cp-fields { grid-template-columns:1fr; gap:20px; }.cp-form-panel,.cp-controls { padding:20px; }
  .cp-footer { flex-wrap:wrap; gap:12px; }.cp-footer>span { display:none; }.cp-footer>.cp-button { flex:1; }.cp-footer-actions { width:100%; }.cp-footer-actions>.cp-button { flex:1; }.cp-button { padding:12px 14px; font-size:12px; }
  .cp-preview { min-height:380px; padding:20px; }.cp-object { max-width:300px; }.cp-preview-note { font-size:9px; }
  .cp-brand-callout { padding:20px; flex-direction:column; align-items:flex-start; gap:20px; }.cp-brand-callout h3 { font-size:22px; }.cp-brand-items { grid-template-columns:1fr 1fr; gap:9px; }.cp-brand-items button { padding:15px; }.cp-brand-items strong { font-size:14px; }.cp-brand-items small { font-size:11px; }
  .cp-dialog { padding:21px; }.cp-dialog h2 { font-size:26px; }.cp-brand-checks { gap:7px; }.cp-brand-checks label { padding:10px; gap:7px; }.cp-brand-checks strong { font-size:11px; }
  .cp-library-actions { align-items:flex-start; flex-direction:column; gap:12px; }.cp-library { gap:12px; }.cp-project strong { font-size:17px; }.cp-project>div,.cp-project>button>div:not(.cp-project-visual) { padding:15px; }.cp-project img,.cp-project-visual { height:170px; }
  .cp-custom { padding:20px; }.cp-plan-heading { flex-wrap:wrap; }
}
@media(max-width:350px) { .cp-library { grid-template-columns:1fr; }.cp-niche strong { font-size:18px; }.cp .cp-niche { padding:16px 10px; }.cp-brand-checks { grid-template-columns:1fr; }.cp-brand-items { grid-template-columns:1fr; } }
@media(prefers-reduced-motion:reduce) { .cp .cp-niche { transition:none; transform:none; } }
