/* Marketing Lab category flow, scoped to the existing studio page. */
#page-studio [hidden] { display:none !important; }
#page-studio .reference-category { max-width:480px; min-height:690px; margin:0 auto; padding:0 18px 30px; color:#0b1934; font-family:inherit; background:#fff; }
#page-studio .reference-category * { box-sizing:border-box; }
#page-studio .reference-category-head { height:68px; display:flex; align-items:center; justify-content:space-between; gap:10px; }
#page-studio .reference-category-head strong { font-size:14px; letter-spacing:-.4px; white-space:nowrap; color:#0a1833; }
#page-studio .reference-category-head button { border:0; width:30px; height:38px; padding:0; background:transparent; color:#0b1934; font-size:27px; cursor:pointer; }
#page-studio .reference-category-head button:last-child { font-size:20px; }
#page-studio .category-view > h2 { margin:22px 0 8px; font-size:29px; line-height:1.24; letter-spacing:-1.4px; font-weight:850; }
#page-studio .category-view > p { margin:0 0 20px; color:#647084; font-size:14px; line-height:1.55; letter-spacing:-.25px; }
#page-studio .category-photo-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
#page-studio .category-photo-card { position:relative; overflow:hidden; padding:0; min-width:0; text-align:left; border:1px solid #eef0f3; border-radius:14px; background:#fff; box-shadow:0 2px 9px #0b193409; cursor:pointer; }
#page-studio .category-photo-card.selected { border:2px solid #f7516e; }
#page-studio .category-photo-card .category-photo { display:block; width:100%; aspect-ratio:1.65; background:#f3eee9 var(--category-photo) center/cover no-repeat; }
#page-studio .category-photo-card .category-card-copy { display:block; min-height:70px; padding:9px 11px 12px; }
#page-studio .category-photo-card strong,#page-studio .category-list-card strong { display:block; font-size:15px; font-weight:800; letter-spacing:-.55px; line-height:1.3; }
#page-studio .category-photo-card small,#page-studio .category-list-card small { display:block; margin-top:4px; color:#778194; font-size:11px; line-height:1.32; }
#page-studio .category-photo-card i { position:absolute; top:7px; right:7px; display:grid; place-items:center; width:24px; height:24px; border:2px solid white; border-radius:50%; color:#fff; background:#f7516e; font-size:14px; font-style:normal; box-shadow:0 2px 8px #0004; }
#page-studio .category-text-link { display:block; border:0; margin:18px auto 0; padding:8px 12px; background:none; color:#f7516e; font-size:13px; font-weight:700; cursor:pointer; }
#page-studio .category-list { display:grid; gap:9px; }
#page-studio .category-list-card { display:flex; align-items:center; width:100%; gap:13px; border:1px solid #edf0f3; border-radius:13px; padding:8px; background:#fff; text-align:left; box-shadow:0 2px 8px #0b193409; cursor:pointer; }
#page-studio .category-list-card.selected { border-color:#f7516e; background:#fff8fa; }
#page-studio .category-list-card img { width:64px; height:64px; border-radius:9px; object-fit:cover; }
#page-studio .category-list-card span { flex:1; min-width:0; }
#page-studio .category-list-card i { font-size:23px; font-style:normal; color:#6f7e95; padding:0 4px; }
#page-studio .category-kicker { display:block; margin-top:18px; color:#f7516e; font-size:13px; font-weight:750; }
#page-studio .category-kicker + h2 { margin-top:4px; }
#page-studio .category-style-list { display:grid; gap:11px; }
#page-studio .category-style-card { display:block; width:100%; padding:0; overflow:hidden; border:0; border-radius:14px; background:#fff; text-align:left; cursor:pointer; box-shadow:0 2px 8px #0b19340e; }
#page-studio .category-style-photo { display:block; position:relative; height:139px; background:linear-gradient(90deg,#0009,#0000),var(--category-photo) center/cover no-repeat; color:#fff; }
#page-studio .category-style-card[data-style="warm"] .category-style-photo { filter:sepia(.23); }
#page-studio .category-style-card[data-style="modern"] .category-style-photo { filter:saturate(.9); }
#page-studio .category-style-photo b { position:absolute; top:12px; left:13px; padding:5px 11px; border-radius:20px; background:#f6516e; color:#fff; font-size:12px; }
#page-studio .category-style-card:nth-child(2) .category-style-photo b { background:#ecad62; }
#page-studio .category-style-card:nth-child(3) .category-style-photo b { background:#9488ea; }
#page-studio .category-style-photo em { position:absolute; left:19px; top:49px; font-family:serif; color:white; font-size:23px; font-weight:700; font-style:normal; line-height:1.22; text-shadow:0 2px 6px #0008; }
#page-studio .category-style-photo i { position:absolute; right:13px; bottom:15px; display:grid; place-items:center; width:28px; height:28px; border-radius:50%; background:#fff; color:#0b1934; font-size:24px; font-style:normal; }
#page-studio .category-style-label { display:block; padding:9px 14px 12px; }
#page-studio .category-style-label strong { display:block; font-size:14px; }
#page-studio .category-style-label small { color:#6b7588; font-size:11px; }
#page-studio .category-hero { display:flex; flex-direction:column; justify-content:center; height:174px; margin:0 -18px; padding:21px 23px; border-radius:15px 15px 0 0; background:linear-gradient(90deg,#000e,#0002),var(--category-photo) center/cover no-repeat; color:#fff; }
#page-studio .category-hero small { font-size:12px; }
#page-studio .category-hero h2 { margin:6px 0; color:#fff; font-size:25px; letter-spacing:-1px; }
#page-studio .category-hero p { margin:0; color:#fff; font-size:13px; line-height:1.45; max-width:80%; }
#page-studio .category-detail-body { position:relative; border-radius:19px 19px 0 0; padding:19px 0 0; margin:-15px -18px 0; background:#fff; }
#page-studio .category-detail-body > * { margin-left:18px; margin-right:18px; }
#page-studio .category-detail-body h3 { margin-top:2px; margin-bottom:11px; font-size:18px; letter-spacing:-.6px; }
#page-studio .category-purpose-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
#page-studio .category-purpose-card { min-width:0; min-height:112px; display:flex; flex-direction:column; align-items:flex-start; border:1px solid #e9edf2; border-radius:13px; padding:12px; text-align:left; background:#fff; cursor:pointer; }
#page-studio .category-purpose-card.selected { border-color:#f7516e; box-shadow:0 0 0 1px #f7516e inset; }
#page-studio .category-purpose-card span { display:grid; place-items:center; width:32px; height:32px; border-radius:10px; background:#fff0ed; font-size:18px; }
#page-studio .category-purpose-card:nth-child(2) span { background:#eef5ff; }
#page-studio .category-purpose-card:nth-child(3) span { background:#fff0f1; }
#page-studio .category-purpose-card:nth-child(4) span { background:#f0efff; }
#page-studio .category-purpose-card strong { margin-top:7px; font-size:13px; line-height:1.2; }
#page-studio .category-purpose-card small { margin-top:3px; color:#7b8496; font-size:10px; line-height:1.3; }
#page-studio .category-prompt { display:block; margin-top:17px; }
#page-studio .category-prompt strong { display:block; margin-bottom:8px; font-size:13px; }
#page-studio .category-prompt textarea { width:100%; min-height:58px; resize:vertical; border:1px solid #e3e7ed; border-radius:12px; padding:12px; outline-color:#f7516e; background:#fafbfc; color:#0b1934; font:inherit; font-size:12px; }
#page-studio .category-prompt small { display:block; text-align:right; color:#818a9a; font-size:10px; }
#page-studio #category-create { display:block; width:calc(100% - 36px); margin-top:11px; border-radius:25px; background:#f7516e; border:0; color:#fff; font-weight:750; }
@media(max-width:600px){#page-studio .reference-category { min-height:calc(100dvh - 120px); max-width:none; padding-bottom:90px; }#page-studio .category-view > h2 { font-size:27px; }}
