/* Public artwork detail */
.post-layout { display:grid; grid-template-columns:minmax(0,1fr) 340px; gap:28px; padding-top:28px; align-items:start; }
.post-main-column { min-width:0; grid-column:1; grid-row:1; }
.post-viewer { min-height:640px; max-height:calc(100vh - 125px); position:relative; display:flex; align-items:center; justify-content:center; overflow:hidden; border-radius:18px; background:#f1f3f6; border:1px solid #e2e6eb; padding:20px 56px; }
.post-viewer img { max-width:100%; max-height:calc(100vh - 172px); width:auto; height:auto; object-fit:contain; border-radius:6px; box-shadow:0 16px 50px rgba(32,24,30,.16); }
.post-nav { position:absolute; z-index:2; top:50%; display:grid; place-items:center; transform:translateY(-50%); width:42px; height:58px; border:1px solid #dce1e8; background:rgba(255,255,255,.92); color:#667489; border-radius:10px; font-size:29px; line-height:1; text-decoration:none; cursor:pointer; box-shadow:0 6px 18px rgba(31,41,55,.08); }
.post-nav:hover { color: var(--rose-text); border-color:#d4355a; }
.post-nav.prev { left:13px; }
.post-nav.next { right:13px; }
.post-expand { position:absolute; top:12px; right:12px; z-index:3; width:38px; height:38px; display:grid; place-items:center; border:1px solid #dce1e8; background:rgba(255,255,255,.94); color:#4b5563; border-radius:10px; font-size:20px; cursor:pointer; box-shadow:0 6px 18px rgba(31,41,55,.09); }
.post-expand:hover { color: var(--rose-text); border-color:#d4355a; }
.post-lightbox { position:fixed; inset:0; z-index:2147483000; display:grid; place-items:center; background:rgba(10,8,13,.96); padding:12px; cursor:zoom-out; }
.post-lightbox img { max-width:100%; max-height:100%; object-fit:contain; border-radius:6px; }
.post-lightbox-close { position:absolute; top:14px; right:14px; width:42px; height:42px; border:0; border-radius:50%; background:rgba(255,255,255,.14); color:#fff; font-size:24px; cursor:pointer; }
.post-counter { position:absolute; right:14px; bottom:13px; background:rgba(24,20,27,.78); color:#fff; border-radius:6px; padding:4px 8px; font-size:11px; font-weight:800; }
.post-tags { display:flex; flex-wrap:wrap; gap:6px; padding:12px 2px 24px; }
.post-tags button { border:1px solid #e3dce0; background:#fff; color:#665e68; border-radius:6px; padding:6px 10px; font-size:11px; font-weight:700; cursor:pointer; }
.post-tags button:hover { background:#fff0f3; border-color:#d73459; color:var(--rose-dark); }
.post-details { position:sticky; top:94px; grid-column:2; grid-row:1; border:1px solid var(--line); border-radius:18px; background:#fff; padding:20px; box-shadow:0 10px 35px rgba(44,25,35,.05); }
.creator-row { display:flex; align-items:center; gap:10px; padding-bottom:16px; border-bottom:1px solid var(--line); }
.creator-avatar, .comment-avatar { flex:none; width:38px; height:38px; border-radius:50%; background:var(--plum); color:#fff; display:grid; place-items:center; font-weight:900; overflow:hidden; }
.creator-avatar img { width:100%;height:100%;border-radius:inherit;object-fit:cover; }
.creator-row div, .creator-name { min-width:0; }
.creator-name { display:block; }
.creator-row strong, .creator-row span { display:block; }
.creator-row span { color:var(--muted); font-size:9px; }
.creator-row button { margin-left:auto; border:1px solid #efb3c1; background:#fff2f5; color:var(--rose-dark); border-radius:6px; height:34px; padding:0 12px; font-weight:800; cursor:pointer; }
.post-details h1 { font-size:29px; line-height:1.08; letter-spacing:-1px; margin:20px 0 8px; }
.post-title-row { padding:16px 0 10px; border-bottom:1px solid var(--line); }
.post-title-row h1, .post-title-row h2.post-modal-title { margin:0 0 10px; font-size:1.6em; line-height:1.2; letter-spacing:-.5px; }
.post-title-actions { display:flex; gap:6px; }
.post-title-actions a, .post-title-actions button { border:1px solid #ded7dc; background:#fff; color:#6e6470; border-radius:6px; padding:6px 8px; font-size:9px; font-weight:800; cursor:pointer; white-space:nowrap; }
.post-title-actions a:hover { border-color:#d4365b; color:var(--rose-dark); }
.post-title-actions button:hover { border-color:#c24b4b; color:#a63d45; background:#fff7f7; }
.post-description { color:var(--muted); font-size:12px; margin:0 0 16px; }
.post-stats { display:flex; gap:16px; color:#716777; font-size:11px; margin-bottom:12px; }
.post-actions { display:grid; grid-template-columns:1fr 1fr; gap:6px; padding-bottom:20px; border-bottom:1px solid var(--line); }
.post-actions button { display:inline-flex; align-items:center; justify-content:center; gap:6px; min-height:42px; border:1px solid #e2dbe0; background:#fff; border-radius:10px; font-size:12px; font-weight:800; color:#4a4250; cursor:pointer; transition:border-color .15s, background .15s, color .15s; }
.post-actions button .ui-icon { width:16px; height:16px; stroke-width:1.9; flex:none; }
.post-actions button:hover { border-color:#ce3f65; background:#fff6f8; color:var(--rose-dark); }
.post-actions .liked, .post-actions .saved { border-color:#d93058; background:#fff1f4; color:var(--rose-dark); }
.post-actions .liked .ui-icon, .post-actions .saved .ui-icon { fill:currentColor; }
.post-actions button:active { transform:scale(.97); }
.detail-group { padding:16px 0 4px; border-bottom:1px solid var(--line); }
.detail-title { display:flex; align-items:center; justify-content:space-between; }
.detail-title button { border:0; background:none; color:var(--rose-dark); font-size:9px; font-weight:800; cursor:pointer; }
.detail-group > strong, .detail-title strong { font-size:12px; text-transform:uppercase; letter-spacing:.7px; }
.detail-group dl { margin:12px 0; display:grid; gap:8px; }
.detail-group dl div { display:flex; justify-content:space-between; gap:12px; font-size:11px; }
.detail-group dt { color:#6d646c; }
.detail-group dd { margin:0; color:#433b45; text-align:right; font-weight:700; }
.public-prompt { padding:16px 0; }
.public-prompt p { margin:10px 0 8px; padding:12px; border:1px solid #eadde2; border-radius:10px; background:#fff8fa; color:#3f3740; font-size:11px; line-height:1.55; white-space:pre-wrap; overflow-wrap:anywhere; }
.public-prompt > span { color:#6d646c; font-size:9px; font-weight:800; }
.public-prompt .detail-title button { border:1px solid #edbdc8; border-radius:6px; background:#fff4f6; color:var(--rose-dark); padding:6px 8px; }
.report-button { border:0; background:none; color:#7c717a; padding:16px 0 0; font-size:9px; cursor:pointer; }
.comments-section { border-top:1px solid var(--line); padding-top:32px; }
.comments-head { display:flex; align-items:end; justify-content:space-between; }
.comments-title { display:block; margin:0; color:var(--ink); font-size:29px; line-height:1.2; letter-spacing:-1px; }
.comments-title small { color:#7c7079; font-size:13px; }
.comments-head select { height:36px; border:1px solid var(--line); border-radius:6px; background:#fff; padding:0 8px; font-size:11px; }
.comment-form { display:grid; grid-template-columns:auto 1fr auto; gap:10px; align-items:start; padding:20px 0; border-bottom:1px solid var(--line); }
.comment-form-guest { grid-template-columns:auto 1fr; }
.comment-signin { display:flex; flex-direction:column; align-items:center; gap:8px; text-align:center; padding:20px 16px; border:1.5px dashed #eeb9c9; border-radius:10px; background:#fff6f8; cursor:pointer; transition:border-color .15s, background .15s; }
.comment-signin:hover { border-color: var(--rose-text); background:#fff1f4; }
.comment-signin p { margin:0; font-size:13px; font-weight:800; color:#3f3844; }
.comment-signin small { color:#6d6574; font-size:11px; }
.comment-signin-button { display:inline-flex; align-items:center; gap:8px; }
.comment-form textarea { min-height:72px; resize:vertical; border:1px solid #ded6dc; border-radius:10px; padding:10px; outline:none; }
.comment-form textarea:focus { border-color: var(--rose-text); box-shadow:0 0 0 3px rgba(240,79,111,.09); }
.comment-input-wrap { display:grid;gap:6px; }
.comment-input-wrap small { color:#7c707a;font-size:9px; }
.comment-input-wrap small strong { color:var(--rose-dark); }
.comment-compose-meta { display:flex;align-items:flex-start;justify-content:space-between;gap:10px;min-height:30px; }
.comment-emoji-tools { position:relative;flex:0 0 auto; }
.comment-emoji-toggle { display:inline-flex;align-items:center;gap:4px;border:1px solid #ded6dc;border-radius:999px;background:#fff;color:#655b64;padding:4px 8px;font:inherit;font-size:9px;font-weight:800;cursor:pointer; }
.comment-emoji-toggle:hover,.comment-emoji-toggle[aria-expanded="true"] { border-color:#df274f;color:var(--rose-dark);background:#fff5f7; }
.comment-emoji-picker { position:absolute;z-index:30;right:0;top:calc(100% + 6px);display:grid;grid-template-columns:repeat(6,34px);gap:4px;padding:8px;border:1px solid #eadde2;border-radius:14px;background:#fff;box-shadow:0 14px 34px rgba(32,20,28,.16); }
.comment-emoji-picker[hidden] { display:none; }
.comment-emoji-picker button { width:34px;height:34px;border:0;border-radius:6px;background:transparent;font-size:20px;line-height:1;cursor:pointer; }
.comment-emoji-picker button:hover,.comment-emoji-picker button:focus-visible { background:#fff0f4;outline:2px solid #f5b5c3;outline-offset:-2px; }
.comment-list { display:grid; }
.comment-thread { min-width:0;border-bottom:1px solid var(--line); }
.comment { display:grid; grid-template-columns:auto minmax(0,1fr); gap:10px; padding:20px 0;scroll-margin-top:100px; }
.comment:target { margin-inline:-10px;padding-inline:10px;border-radius:10px;background:#fff4f7;animation:comment-target 1.7s ease-out; }
@keyframes comment-target { from { box-shadow:0 0 0 4px rgba(240,79,111,.2); } to { box-shadow:none; } }
.comment-avatar { width:34px; height:34px; font-size:12px; background:#59495c; }
.avatar-1 { background:#4b7180; }.avatar-2 { background:#a05268; }.avatar-3 { background:#62704a; }
.comment-body { min-width:0; }
.comment-byline { display:flex; gap:8px; align-items:center;min-width:0; }
.comment-byline a { color:inherit;text-decoration:none; }
.comment-byline a:hover strong { color:var(--rose-dark); }
.comment-byline strong { font-size:12px; }
.comment-byline time,.comment-byline span { color:#7c717a; font-size:9px; }
.comment-byline .reply-context { min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#7d707b; }
.comment p { color:#4e4650; font-size:13px; margin:4px 0 8px; }
.comment-mention { color:#196df2;font-weight:800;text-decoration:none; }
.comment-mention:hover { color:#145dcc;text-decoration:underline; }
.comment-actions { display:flex;align-items:center;gap:16px; }
.comment-actions button { border:0; background:none; color:#7a7178; font-size:9px; padding:0; cursor:pointer; }
.comment-actions button:hover,.comment-actions button.liked { color:var(--rose-dark); }
.comment-replies { position:relative;margin:0 0 4px 40px;padding-left:16px;border-left:2px solid #efe7eb; }
.comment-reply { padding:12px 0; }
.comment-reply .comment-avatar { width:29px;height:29px;font-size:9px; }
.comment-reply p { margin-top:4px;font-size:12px; }
.hidden-thread-replies { display:none; }
.hidden-thread-replies.show { display:block; }
.show-thread-replies { margin:2px 0 4px;border:0;background:transparent;color:var(--rose-dark);padding:6px 0;font-size:9px;font-weight:800;cursor:pointer; }
.show-thread-replies:before { content:"";display:inline-block;width:22px;height:1px;margin:0 8px 2px 0;background:#d6c7cd; }
.inline-reply-form { margin:0 0 16px 40px;padding:12px;border:1px solid #eadde2;border-radius:10px;background:#fff9fa; }
.inline-reply-heading { display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:8px;color:#7e727d;font-size:9px; }
.inline-reply-heading strong { color:var(--rose-dark); }
.inline-reply-heading button { width:24px;height:24px;border:0;border-radius:6px;background:#fff;color:#7e727d;font-size:17px;cursor:pointer; }
.inline-reply-form textarea { width:100%;min-height:74px;resize:vertical;border:1px solid #ded6dc;border-radius:10px;background:#fff;padding:10px;outline:0;font:inherit;font-size:12px; }
.inline-reply-form textarea:focus { border-color: var(--rose-text);box-shadow:0 0 0 3px rgba(240,79,111,.09); }
.inline-reply-form > div:last-child { display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:8px; }
.inline-reply-form small { color:#7d707b;font-size:9px; }
.inline-reply-meta { display:flex;align-items:center;gap:8px; }
.inline-reply-form .comment-emoji-picker { left:0;right:auto; }
.more-by { padding-top:48px; }
.more-by-creator { display:inline-block; color:inherit; border-radius:6px; padding:0 2px; margin-left:-2px; text-decoration:none; transition:color .18s ease,background .18s ease; }
.more-by-creator:hover,.more-by-creator:focus-visible { color:var(--rose-dark); background:#fff0f3; text-decoration:none; outline:none; }
.more-by-profile { min-height:42px; display:inline-flex; align-items:center; gap:10px; padding:0 12px; border:1px solid #e3c7ce; border-radius:10px; background:#fff; color:var(--rose-dark); font-size:12px; font-weight:900; white-space:nowrap; text-decoration:none; box-shadow:0 4px 12px rgba(61,31,44,.04); transition:transform .18s ease,border-color .18s ease,background .18s ease,box-shadow .18s ease; }
.more-by-profile b { font-size:17px; line-height:1; transition:transform .18s ease; }
.more-by-profile:hover,.more-by-profile:focus-visible { transform:translateY(-2px); border-color: var(--rose-text); background:#fff4f6; box-shadow:none; text-decoration:none; outline:none; }
.more-by-profile:hover b,.more-by-profile:focus-visible b { transform:translateX(3px); }
.more-by-grid { display:grid; grid-template-columns:repeat(5,1fr); gap:8px; }
.more-by-grid a { color:inherit; text-decoration:none; cursor:pointer; min-width:0; }
.more-by-grid img { width:100%; aspect-ratio:3/4; object-fit:cover; border-radius:10px; transition:.2s; }
.more-by-grid a:hover img { transform:translateY(-3px); box-shadow:none; }
.more-by-grid span { display:block; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; font-size:9px; font-weight:700; margin-top:6px; }
.post-modal-backdrop { position:fixed; z-index:150; inset:0; padding:20px; background:rgba(26,18,23,.66); backdrop-filter:blur(8px); display:flex; align-items:center; justify-content:center; }
.post-modal-card { width:min(1500px,96vw); height:min(940px,95vh); overflow-y:auto; overscroll-behavior:contain; background:var(--paper); border-radius:18px; box-shadow:0 28px 90px rgba(19,12,17,.34); position:relative; }
.post-modal-card > .post-layout { padding:64px 24px 24px; }
.post-modal-card .post-details { top:20px; }
.post-modal-card .post-viewer { max-height:76vh; }
.post-modal-card .post-viewer img { max-height:calc(76vh - 45px); }
.post-modal-close { position:sticky; z-index:20; top:0; right:0; display:block; margin:0 0 -40px auto; width:48px; height:48px; border:0; border-left:1px solid #d9dfe6; border-bottom:1px solid #d9dfe6; border-radius:0 18px 0 10px; background:#fff; color:#4f5867; font-size:24px; line-height:1; cursor:pointer; box-shadow:-4px 4px 14px rgba(22,28,37,.08); }
.post-modal-close:hover { color: var(--rose-text); border-color:#d4375a; }

/* Public creator profile */
.profile-header { margin-top:28px; border:1px solid var(--line); border-radius:18px; overflow:hidden; background:#fff; }
.profile-cover { height:250px; position:relative; overflow:hidden; background:#ede5e8; }
.profile-cover img { width:100%; height:100%; object-fit:cover; filter:saturate(.82); transform:scale(1.02); }
.cover-fade { position:absolute; inset:0; background:linear-gradient(90deg,rgba(24,16,22,.35),transparent 62%),linear-gradient(transparent 50%,rgba(24,16,22,.28)); }
.profile-identity { min-height:104px; display:flex; align-items:center; gap:16px; padding:0 24px; position:relative; }
.profile-avatar { width:102px; height:102px; margin-top:-48px; border:5px solid #fff; background:linear-gradient(135deg,var(--plum),var(--rose)); color:#fff; border-radius:50%; display:grid; place-items:center; font:italic 45px Georgia,serif; position:relative; z-index:2; box-shadow:0 7px 20px rgba(46,25,36,.2); flex:none; }
.profile-avatar img { width:100%;height:100%;border-radius:inherit;object-fit:cover; }
.profile-name { min-width:0; }
.profile-name > div { display:flex; align-items:center; gap:10px; }
.profile-name h1 { margin:0; font-size:29px; letter-spacing:-1px; }
.profile-name p { color:var(--muted); margin:2px 0 0; font-size:11px; }
.creator-badge { color:var(--rose-dark); background:#fff0f3; border:1px solid #f2c4ce; border-radius:6px; padding:4px 6px; font-size:9px; font-weight:900; text-transform:uppercase; letter-spacing:.5px; }
.profile-buttons { margin-left:auto; display:flex; gap:6px; }
.profile-more { width:39px; border:1px solid var(--line); background:#fff; border-radius:10px; font-weight:900; cursor:pointer; }
.profile-summary { border-top:1px solid var(--line); display:grid; grid-template-columns:minmax(0,1fr) auto; gap:32px; align-items:center; padding:20px 24px; }
.profile-bio p { max-width:650px; margin:0 0 6px; color:#4e4650; font-size:13px; }
.profile-bio span { color:#7b7079; font-size:9px; }
.profile-stats { display:flex; gap:28px; }
.profile-stats div,.profile-stats a { text-align:center; padding:4px 6px; border-radius:6px; }
.profile-stats a:hover { background:#fff2f5; }
.profile-stats strong, .profile-stats span { display:block; }
.profile-stats strong { font-size:20px; letter-spacing:-.7px; }
.profile-stats span { color:var(--muted); font-size:9px; text-transform:uppercase; letter-spacing:.6px; }
.pinned-work { padding-top:40px; }
.pinned-work .section-head { margin-bottom:12px; }
.pinned-card { display:grid; grid-template-columns:220px 1fr; min-height:180px; border:1px solid var(--line); border-radius:18px; overflow:hidden; background:#fff; color:inherit; text-decoration:none; cursor:pointer; }
.pinned-card img { width:100%; height:100%; object-fit:cover; }
.pinned-card > div { padding:24px; align-self:center; }
.pinned-card h3 { margin:8px 0 4px; font:italic 28px/1.1 Georgia,serif; }
.pinned-card p { color:var(--muted); margin:0 0 16px; font-size:12px; }
.pinned-engagement { color:#7e737c; font-size:9px; }
.profile-portfolio { padding-top:40px; }
.profile-tabs { border-bottom:1px solid var(--line); display:flex; gap:24px; }
.profile-tabs button { border:0; border-bottom:3px solid transparent; background:none; padding:0 2px 12px; color:#7c717b; font-size:12px; font-weight:800; cursor:pointer; }
.profile-tabs button.active { color:var(--rose-dark); border-bottom-color: var(--rose-text); }
.profile-tabs span { color:#7d707a; margin-left:4px; }
.profile-saved-head { display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px 2px 12px; }
.profile-saved-head > div { display:grid;gap:2px; }
.profile-saved-head strong { color:var(--ink);font-size:15px; }
.profile-saved-head span,.profile-saved-head small { color:var(--muted);font-size:9px; }
.profile-saved-head small { padding:4px 8px;border-radius:999px;background:#fff0f4;color:var(--rose-dark);font-weight:900; }
.profile-saved-empty { margin-top:16px;border:1px dashed var(--line);border-radius:14px; }
.profile-toolbar { display:flex; align-items:center; gap:10px; padding:16px 0; }
.profile-search { margin-left:auto; width:min(320px,34vw); height:38px; border:1px solid var(--line); border-radius:10px; display:flex; align-items:center; padding:0 10px; }
.profile-search svg { width:17px; color:#7b6f7a; }
.profile-search input { border:0; outline:0; width:100%; padding-left:8px; font-size:11px; }
.grid-toggle { width:38px; height:38px; border:1px solid var(--line); border-radius:10px; background:#fff; }

/* Followers and following */
.connections-page { max-width:1200px; margin:0 auto; padding-top:28px; }
.connections-header { border:1px solid var(--line); border-radius:18px; background:linear-gradient(135deg,#fff 0%,#fff8f9 100%); overflow:hidden; }
.connections-back { display:inline-block; margin:16px 20px 2px; color:var(--muted); font-size:11px; font-weight:800; }
.connections-back:hover { color:var(--rose-dark); }
.connections-identity { display:flex; align-items:center; gap:16px; padding:16px 20px 20px; }
.connections-identity > span { width:68px; height:68px; border-radius:18px; display:grid; place-items:center; background:linear-gradient(135deg,var(--plum),var(--rose)); color:#fff; font:italic 31px Georgia,serif; box-shadow:0 8px 20px rgba(61,31,45,.16); }
.connections-identity small { color:var(--rose-dark); font-size:9px; font-weight:900; letter-spacing:.8px; text-transform:uppercase; }
.connections-identity h1 { margin:0px 0 0; font-size:29px; letter-spacing:-1.2px; }
.connections-identity p { margin:0; color:var(--muted); font-size:11px; }
.connections-tabs { display:flex; padding:0 20px; border-top:1px solid var(--line); }
.connections-tabs a { min-width:150px; padding:12px 16px 12px; border-bottom:3px solid transparent; color:var(--muted); font-size:12px; font-weight:800; }
.connections-tabs a span { color:var(--ink); margin-right:4px; }
.connections-tabs a.active { color:var(--rose-dark); border-bottom-color: var(--rose-text); background:linear-gradient(transparent,#fff0f3); }
.connections-intro { display:flex; align-items:end; justify-content:space-between; gap:20px; padding:32px 2px 16px; }
.connections-intro h2 { margin:0; font-size:24px; letter-spacing:-.9px; }
.connections-intro p { margin:2px 0 0; color:var(--muted); font-size:11px; }
.connections-toolbar { display:grid; grid-template-columns:minmax(240px,1fr) 170px auto; gap:8px; margin-bottom:16px; }
.connections-toolbar > label,.connections-toolbar select,.connections-view { height:43px; border:1px solid var(--line); border-radius:10px; background:#fff; }
.connections-toolbar > label { display:flex; align-items:center; padding:0 12px; }
.connections-toolbar > label svg { width:18px; color:#7b6f7a; }
.connections-toolbar input { width:100%; height:100%; padding:0 8px; border:0; outline:0; }
.connections-toolbar select { padding:0 10px; }
.connections-view { display:flex; align-items:center; padding:2px; }
.connections-view button { width:35px; height:35px; border:0; border-radius:6px; background:none; color:#7b7079; cursor:pointer; }
.connections-view button.active { background:#f3ebed; color:var(--rose-dark); }
.connections-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.connection-card { min-width:0; padding:16px; border:1px solid var(--line); border-radius:14px; background:#fff; transition:.18s ease; }
.connection-card:hover { border-color:#c34b65; box-shadow:none; transform:translateY(-2px); }
.connection-person { display:flex; align-items:center; gap:10px; min-width:0; }
.connection-avatar { width:51px; height:51px; flex:none; padding:0; border:0; border-radius:10px; overflow:hidden; background:#eee5e8; cursor:pointer; }
.connection-avatar img { width:100%; height:100%; object-fit:cover; }
.connection-name { min-width:0; }
.connection-name a { display:flex; align-items:center; gap:6px; min-width:0; }
.connection-name strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.connection-name a span { color: var(--rose-text); font-size:9px; }
.connection-name small { display:block; color:var(--muted); font-size:9px; }
.connection-follow { margin-left:auto; min-width:82px; height:34px; border:1px solid var(--rose-text); border-radius:6px; background:var(--rose-text); color:#fff; font-size:11px; font-weight:900; cursor:pointer; }
.connection-follow.following { border-color:#946676; background:#fff; color:#5e555e; }
.connection-card > p { min-height:38px; margin:12px 0 10px; color:#615761; font-size:11px; line-height:1.55; }
.connection-meta { display:flex; gap:12px; color:#7b7079; font-size:9px; }
.connection-meta strong { color:#4b424b; }
.connection-tags { display:flex; gap:4px; flex-wrap:wrap; margin:12px 0; }
.connection-tags span { padding:4px 6px; border:1px solid #ebdfe2; border-radius:6px; background:#fff8f9; color:#7e6670; font-size:9px; }
.connection-work { height:112px; display:grid; grid-template-columns:1.45fr 1fr 1fr; gap:4px; overflow:hidden; border-radius:10px; }
.connection-work a { min-width:0; padding:0; border:0; background:#eee; cursor:pointer; overflow:hidden; }
.connection-work img { width:100%; height:100%; object-fit:cover; transition:transform .25s; }
.connection-work a:hover img { transform:scale(1.05); }
.connections-grid.list { grid-template-columns:1fr; }
.connections-grid.list .connection-card { display:grid; grid-template-columns:minmax(230px,.85fr) minmax(200px,1fr) 300px; gap:16px; align-items:center; }
.connections-grid.list .connection-card > p { min-height:0; margin:0; }
.connections-grid.list .connection-meta,.connections-grid.list .connection-tags { grid-column:1/3; margin:0; }
.connections-grid.list .connection-work { grid-column:3; grid-row:1/4; height:132px; }
.connections-empty { padding:90px 20px; border:1px dashed #decfd4; border-radius:14px; text-align:center; background:#fffafa; }
.connections-empty > span { font-size:29px; color: var(--rose-text); }
.connections-empty h2 { margin:8px 0 2px; }
.connections-empty p { margin:0 0 16px; color:var(--muted); }
.connections-note { display:flex; align-items:center; gap:20px; margin-top:20px; padding:16px 16px; border:1px solid var(--line); border-radius:10px; background:#faf6f7; }
.connections-note strong { white-space:nowrap; }
.connections-note p { margin:0; color:var(--muted); font-size:9px; }

/* Authenticated library, profile and studio interactions */
.explore-tabs { display:flex; gap:28px; border-bottom:1px solid var(--line); padding-top:20px; }
.explore-tabs button { border:0; border-bottom:3px solid transparent; background:none; padding:12px 0; color:#5f6d82; font-weight:800; text-transform:capitalize; cursor:pointer; }
.explore-tabs button.active { color:var(--ink); border-bottom-color: var(--rose-text); }
.explore-controls { display:grid; grid-template-columns:140px minmax(240px,1fr) auto; gap:10px; padding:12px 0 10px; }
.explore-controls select, .explore-search, .view-toggle { height:42px; border:1px solid #d9e1eb; border-radius:10px; background:#fff; }
.explore-controls select { padding:0 12px; }
.view-toggle { display:flex; align-items:center; padding:2px; }
.view-toggle button { height:34px; border:0; border-radius:6px; background:none; padding:0 10px; font-weight:800; color:#69768a; }
.view-toggle button.active { background:#f0f3f7; color:var(--ink); }
.explore-search { display:flex; align-items:center; padding:0 12px; }
.explore-search svg { width:18px; color:#65768d; }
.explore-search input { width:100%; border:0; outline:0; padding-left:8px; }
.explore-tags { display:flex; gap:8px; overflow:auto; padding:2px 0 12px; }
.explore-tags button { border:1px solid #ece2e6; border-radius:6px; background:#fff7f4; color:#7d6670; padding:8px 12px; white-space:nowrap; cursor:pointer; }
.explore-tags button.active { background:#fff0f4; color:var(--rose-dark); border-color:#d92e54; }
.explore-archive-summary { display:grid;grid-template-columns:auto 1px auto minmax(220px,1fr);align-items:center;gap:16px;margin:2px 0 16px;padding:12px 16px;border:1px solid #e7dce1;border-radius:10px;background:linear-gradient(105deg,#fff 0%,#fff 64%,#fff8fa 100%); }
.explore-archive-count { display:flex;align-items:baseline;gap:6px; }
.explore-archive-count strong { color:#211b23;font-size:20px;line-height:1;letter-spacing:-.7px; }
.explore-archive-count span { color:#756b73;font-size:9px;font-weight:800;white-space:nowrap; }
.explore-archive-mobile-page { display:none; }
.explore-archive-divider { width:1px;height:27px;background:#e7dde1; }
.explore-archive-page { display:grid;gap:0px; }
.explore-archive-page > span { color:#7e6e76;font-size:9px;font-weight:900;letter-spacing:.12em;text-transform:uppercase; }
.explore-archive-page strong { color:#443a41;font-size:11px;white-space:nowrap; }
.explore-archive-page small { color:#7d6f78;font-size:9px;font-weight:700; }
.explore-live-status { justify-self:end;display:grid;grid-template-columns:9px auto;align-items:center;column-gap:8px;padding:6px 10px;border:1px solid #dbece3;border-radius:6px;background:#f6fbf8; }
.explore-live-status i { grid-row:1/3;width:8px;height:8px;border-radius:50%;background:#2eaa70;animation:explore-live-pulse 2.4s ease-in-out infinite; }
.explore-live-status strong { color:#287453;font-size:9px;line-height:1.1;letter-spacing:.04em;text-transform:uppercase; }
.explore-live-status span { color:#66766e;font-size:9px;line-height:1.1; }
@keyframes explore-live-pulse { 0%,100% { opacity:1; } 50% { opacity:.42; } }
@media (prefers-reduced-motion:reduce) { .explore-live-status i { animation:none; } }
.archive-pagination { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:16px; margin:32px 0 10px; padding:16px 0; border-top:1px solid var(--line); }
.archive-pagination > div { display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:6px; }
.archive-pagination a { min-width:42px; height:42px; display:inline-flex; align-items:center; justify-content:center; padding:0 12px; border:1px solid #d9e1eb; border-radius:10px; background:#fff; color:var(--ink); font-weight:800; text-decoration:none; }
.archive-pagination a:hover { border-color: var(--rose-text); color:var(--rose-dark); background:#fff7f9; text-decoration:none; }
.archive-pagination a.active { background:var(--rose-text); border-color: var(--rose-text); color:#fff; }
/* Opacity .38 computed to 2.42:1, which axe flags. An explicit muted colour reads
   as unavailable and stays legible at 5.12:1. */
.archive-pagination a.disabled { pointer-events:none; color:#6f6c6e; border-color:#74747a; background:#fbfbfc; }
.pagination-gap { color:var(--muted); padding:0 2px; }
.gallery.gallery-list { grid-template-columns:minmax(0,1fr);gap:12px; }
.gallery-list .art-card { min-height:220px;border:1px solid #e4e8ee;border-radius:14px;background:#fff; }
.gallery-list .art-card-link { min-height:220px;display:grid;grid-template-columns:240px minmax(0,1fr);align-items:stretch; }
.gallery-list .art-card img { width:240px;height:220px;aspect-ratio:auto;object-fit:cover; }
.gallery-list .art-card:hover img { transform:none; }
.gallery-list .art-overlay { position:static;inset:auto;align-self:stretch;display:flex;flex-direction:column;justify-content:center;padding:24px 64px 24px 28px;color:var(--ink);background:none;opacity:1;transform:none; }
.gallery-list .art-title { max-width:780px;font-size:20px;line-height:1.25;letter-spacing:-.025em; }
.art-list-description { max-width:900px;display:-webkit-box;margin:10px 0 0;overflow:hidden;color:#687587;font-size:13px;line-height:1.55;-webkit-box-orient:vertical;-webkit-line-clamp:2; }
.art-list-tags { display:flex;flex-wrap:wrap;gap:6px;margin-top:12px; }
.art-list-tags span { border:1px solid #eadfe3;border-radius:999px;background:#fff7f9;padding:4px 8px;color:#8a5261;font-size:9px;font-weight:800; }
.gallery-list .art-meta { max-width:900px;align-items:center;margin-top:16px;padding-top:12px;border-top:1px solid #edf0f4;color:#68768a;font-size:11px;opacity:1; }
.gallery-list .art-more { top:16px;right:16px;border:1px solid #dce3eb;background:#fff;color:#536176;opacity:1;backdrop-filter:none; }
.gallery-list .art-more:hover,.gallery-list .art-more:focus-visible { border-color:#d93159;background:#fff3f6;color:var(--rose-dark); }
.gallery-list .art-series { top:13px;left:13px; }
.leaderboard { max-width:850px; margin:48px auto; }
.leaderboard > p { color:var(--muted); }
.leaderboard article { display:grid; grid-template-columns:34px 42px 1fr auto auto; align-items:center; gap:12px; padding:12px 4px; border-bottom:1px solid var(--line); }
.leaderboard article > b { color:#81707a; text-align:center; }
.leaderboard article .creator-avatar { width:44px; height:44px; border:1px solid #eadde2; text-decoration:none; }
.leaderboard article small { display:block; color:var(--muted); }
.leaderboard article > span { color:#6e6170; font-size:12px; }
.leaderboard article button { border:1px solid #efb7c3; border-radius:6px; background:#fff1f4; color:var(--rose-dark); padding:6px 10px; }
@media (max-width:620px) {
  .explore-archive-summary { display:block;width:calc(100vw - 30px);max-width:100%;box-sizing:border-box;padding:12px 12px;overflow:hidden; }
  .explore-archive-count { width:100%; }
  .explore-archive-mobile-page { display:block;margin-left:auto;color:#7d6f78;font-size:9px;font-weight:800;white-space:nowrap; }
  .explore-archive-divider { display:none; }
  .explore-archive-page { display:none; }
  .explore-live-status { width:100%;box-sizing:border-box;grid-template-columns:9px minmax(0,1fr);margin-top:10px;padding:8px 2px 0;border:0;border-top:1px solid #eee4e8;border-radius:0;background:transparent; }
  .explore-live-status i { grid-row:auto; }
  .explore-live-status span { grid-column:2;justify-self:start;margin-top:2px;white-space:nowrap; }
  .gallery.gallery-list { gap:8px; }
  .gallery-list .art-card,.gallery-list .art-card-link { min-height:144px; }
  .gallery-list .art-card-link { grid-template-columns:116px minmax(0,1fr); }
  .gallery-list .art-card img { width:116px;height:144px; }
  .gallery-list .art-overlay { padding:12px 40px 12px 12px; }
  .gallery-list .art-title { display:-webkit-box;overflow:hidden;font-size:13px;line-height:1.35;-webkit-box-orient:vertical;-webkit-line-clamp:3; }
  .gallery-list .art-list-description,.gallery-list .art-list-tags { display:none; }
  .gallery-list .art-meta { display:grid;gap:4px;margin-top:8px;padding-top:8px;font-size:9px; }
  .gallery-list .art-more { top:9px;right:9px;width:28px;height:28px; }
  .gallery-list .art-series { top:8px;left:8px; }
}

.tag-directory { padding:40px 12px 80px; max-width:1280px; margin:0 auto; }
.tag-directory-head { display:flex; justify-content:space-between; align-items:flex-end; gap:32px; margin-bottom:28px; }
.tag-directory h1 { font-size:clamp(42px,5vw,68px); letter-spacing:-.055em; margin:4px 0 8px; }
.tag-directory-head p { max-width:720px; margin:0; color:#737184; font-size:15px; line-height:1.65; }
.tag-index-stat { flex:0 0 210px; border:1px solid #efdce2; border-radius:14px; padding:16px 20px; background:#fffafb; }
.tag-index-stat strong { display:block; color:#17141d; font-size:29px; letter-spacing:-.04em; }
.tag-index-stat span { display:block; color:#747182; font-size:13px; line-height:1.4; margin-top:2px; }
.tag-controls { display:grid; grid-template-columns:minmax(260px,1fr) 210px; gap:12px; align-items:end; }
.tag-search { height:52px; display:flex; align-items:center; border:1px solid #d9e1eb; border-radius:10px; padding:0 16px; background:#fff; }
.tag-search:focus-within { border-color:#e3143f; box-shadow:0 0 0 3px rgba(239,75,109,.1); }
.tag-search svg { width:18px; color:#65768d; flex:0 0 auto; }.tag-search input { width:100%; border:0; outline:0; padding-left:10px; font-size:15px; background:transparent; }
.tag-sort { display:flex; flex-direction:column; gap:4px; color:#5f6d82; font-size:12px; font-weight:800; margin:0; }
.tag-sort select { height:52px; border:1px solid #d6dee8; border-radius:10px; background:#fff; padding:0 12px; color:#262231; font:inherit; font-size:13px; }
/* Magazine filter bar (/learn). The base .chip rule lives here because this
   is the stylesheet the learn routes actually load. */
.filter-bar { display:flex; align-items:center; gap:8px; padding:20px 0; overflow:auto; }
.chip { display:inline-flex; align-items:center; gap:6px; padding:8px 12px; border:1px solid #d6dee8; border-radius:999px; background:#fff; color:#403b4a; font-size:13px; font-weight:800; white-space:nowrap; cursor:pointer; box-shadow:none; }
.chip:hover { border-color:#d93155; background:#fff8fa; transform:none; box-shadow:none; }
.chip.active { color:var(--rose-text); border-color:#e0224a; background:#fff0f4; }
.tag-categories { display:flex; flex-wrap:wrap; gap:8px; margin:16px 0 24px; }
.tag-categories button { display:flex; align-items:center; gap:8px; border:1px solid #d6dee8; border-radius:10px; background:#fff; padding:10px 12px; color:#403b4a; font-weight:800; cursor:pointer; box-shadow:none; }
.tag-categories button:hover { border-color:#d93155; background:#fff8fa; box-shadow:none; transform:none; }
.tag-categories button.active { color:#cb3455; border-color:#e0224a; background:#fff0f4; }
.tag-categories button span { min-width:20px; padding:2px 6px; border-radius:6px; background:#f3f5f8; color:#657081; font-size:11px; text-align:center; }
.tag-categories button.active span { background:#fff; color:#cb3455; }
.tag-table { border:1px solid #dbe3ec; border-radius:10px; overflow:hidden; background:#fff; }
.tag-table button { width:100%; min-height:67px; display:flex; align-items:center; justify-content:space-between; gap:20px; border:0; border-bottom:1px solid #e3e8ef; background:#fff; padding:12px 20px; cursor:pointer; text-align:left; box-shadow:none; }
.tag-table button:hover { background:#fff8fa; box-shadow:none; transform:none; }
.tag-table button:last-child { border-bottom:0; }
.tag-name { display:flex; flex-direction:column; min-width:0; }
.tag-name strong { color:#1f66c9; font-size:15px; overflow-wrap:anywhere; }
.tag-name small { margin-top:4px; color:#6b7688; font-size:9px; font-weight:800; letter-spacing:.12em; text-transform:uppercase; }
.tag-usage { flex:0 0 auto; color:#5d6b82; font-size:13px; }
.tag-usage b { color:#44536a; font-size:15px; }
.tag-empty { display:flex; min-height:310px; flex-direction:column; align-items:center; justify-content:center; border:1px dashed #d9e1eb; border-radius:14px; padding:40px; text-align:center; background:#fcfcfd; }
.tag-empty h2 { margin:8px 0; font-size:24px; }
.tag-empty p { max-width:570px; color:#747182; line-height:1.6; margin:0 0 20px; }
.tag-empty-icon { display:grid; width:58px; height:58px; place-items:center; border-radius:14px; background:#fff0f4; color:#e21d47; font-size:29px; font-weight:900; }
.tag-table .tag-row-skeleton { display:block; height:66px; border-bottom:1px solid #e3e8ef; border-radius:0; }
.tag-table .tag-row-skeleton:last-child { border-bottom:0; }
@media (max-width:700px){.tag-directory{padding:24px 8px 56px}.tag-directory-head{display:block}.tag-index-stat{margin-top:20px}.tag-controls{grid-template-columns:1fr}.tag-table button{padding:12px 12px}.tag-usage{font-size:12px}.tag-usage b{font-size:13px}}

.history-route { background:#fff; min-height:100vh; }
.history-mobile-bar { display:none; }
.guest-history-route { background:linear-gradient(180deg,#fff 0,#fffafb 56%,#fff 100%); }
.guest-history-main { width:min(1480px,calc(100% - 56px)); margin:0 auto; padding:48px 0 64px; }
.guest-history-hero { min-height:430px; display:grid; grid-template-columns:minmax(0,1.08fr) minmax(360px,.92fr); align-items:center; gap:64px; border:1px solid #eedee3; border-radius:24px; padding:56px clamp(32px,6vw,86px); overflow:hidden; background:radial-gradient(circle at 82% 32%,rgba(240,79,111,.14),transparent 34%),linear-gradient(135deg,#fff 0,#fff9fb 58%,#f8f3ff 100%); }
.guest-history-kicker,.guest-history-preview-head span,.guest-history-final span { color:var(--rose-dark); font-size:9px; font-weight:900; letter-spacing:.15em; text-transform:uppercase; }
.guest-history-copy h1 { max-width:760px; margin:0 0 16px; font-size:clamp(44px,5.4vw,82px); line-height:.91; letter-spacing:-.065em; }
.guest-history-copy h1 em { color: var(--rose-text); font-family:Georgia,serif; font-weight:600; }
.guest-history-copy > p { max-width:680px; margin:0; color:#746d79; font-size:15px; line-height:1.68; }
.guest-history-actions { display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin-top:28px; }
.guest-history-actions .btn { min-height:52px; padding-inline:20px; }
.guest-history-google { display:inline-flex; align-items:center; justify-content:center; gap:10px; }
.guest-history-google .google-logo { width:22px; height:22px; display:grid; place-items:center; border-radius:50%; background:#fff; }
.guest-history-google .google-logo svg { width:17px; height:17px; }
.guest-history-proof { display:flex; flex-wrap:wrap; gap:16px 20px; margin-top:24px; color:#746d79; font-size:9px; font-weight:800; }
.guest-history-proof span { display:flex; align-items:center; gap:6px; }
.guest-history-proof span:before { content:'\2713'; display:grid; width:17px; height:17px; place-items:center; border-radius:50%; background:#e7f7ef; color:#228459; font-size:9px; font-weight:900; }
.guest-history-stack { position:relative; min-height:330px; }
.guest-history-stack figure { position:absolute; inset:0 auto auto 50%; width:min(260px,55%); aspect-ratio:3/4; margin:0; overflow:hidden; border:6px solid #fff; border-radius:24px; background:#f2f3f6; box-shadow:0 24px 52px rgba(72,44,55,.18); transform:translateX(-50%); }
.guest-history-stack figure:first-child { z-index:3; transform:translateX(-50%); }
.guest-history-stack figure:nth-child(2) { z-index:2; top:32px; transform:translateX(-7%) rotate(8deg); }
.guest-history-stack figure:nth-child(3) { z-index:1; top:32px; transform:translateX(-93%) rotate(-8deg); }
.guest-history-stack img { width:100%; height:100%; display:block; object-fit:cover; }
.guest-history-stack figure:after { content:''; position:absolute; inset:55% 0 0; background:linear-gradient(transparent,rgba(17,18,25,.78)); }
.guest-history-stack figure span { position:absolute; z-index:2; left:18px; right:18px; bottom:17px; color:#fff; font-size:9px; font-weight:900; }
.guest-history-preview { padding:80px 0 28px; }
.guest-history-preview-head { display:flex; align-items:end; justify-content:space-between; gap:40px; margin-bottom:24px; }
.guest-history-preview-head h2 { margin:6px 0 0; font-size:clamp(29px,4vw,54px); letter-spacing:-.045em; }
.guest-history-preview-head p { max-width:510px; margin:0; color:#7b7480; font-size:12px; line-height:1.6; }
.guest-history-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px; }
.guest-history-card { min-width:0; overflow:hidden; border:1px solid #eadfe3; border-radius:18px; background:#fff; }
.guest-history-image { position:relative; aspect-ratio:4/5; overflow:hidden; background:#f1f3f6; }
.guest-history-image img { width:100%; height:100%; display:block; object-fit:cover; transition:transform .35s ease; }
.guest-history-card:hover .guest-history-image img { transform:scale(1.025); }
.guest-history-image > span { position:absolute; left:11px; top:11px; border:1px solid rgba(255,255,255,.7); border-radius:6px; padding:4px 8px; background:rgba(24,24,30,.72); color:#fff; font-size:9px; font-weight:900; backdrop-filter:blur(8px); }
.guest-history-image > i { position:absolute; right:11px; top:11px; width:30px; height:30px; display:grid; place-items:center; border-radius:6px; background:rgba(255,255,255,.9); color:#6c6170; }
.guest-history-image > i svg { width:15px; height:15px; }
.guest-history-card > div:last-child { padding:16px; }
.guest-history-card strong { display:block; font-size:13px; }
.guest-history-card p { min-height:38px; margin:6px 0 10px; color:#776f7c; font-size:9px; line-height:1.45; }
.guest-history-card small { display:block; padding-top:10px; border-top:1px solid #f0e9eb; color:#7c707d; font-size:9px; }
.guest-history-final { margin-top:48px; display:flex; align-items:center; justify-content:space-between; gap:40px; border-radius:24px; padding:32px 40px; background:#1d1921; color:#fff; }
.guest-history-final h2 { margin:8px 0 4px; font-size:29px; }
.guest-history-final p { margin:0; color:#816e83; font-size:12px; }
.guest-history-final .btn { min-width:235px; min-height:52px; }
@media (max-width:1100px) {
  .guest-history-main { width:min(100% - 30px,900px); padding-top:28px; }
  .guest-history-hero { min-height:0; grid-template-columns:1fr; gap:40px; padding:40px; }
  .guest-history-copy { text-align:center; }
  .guest-history-copy > p { margin-inline:auto; }
  .guest-history-actions,.guest-history-proof { justify-content:center; }
  .guest-history-stack { width:min(620px,100%); min-height:340px; margin:0 auto; }
  .guest-history-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:650px) {
  .guest-history-main { width:calc(100% - 20px); padding:12px 0 40px; }
  .guest-history-hero { gap:28px; border-radius:18px; padding:28px 20px; }
  .guest-history-copy h1 { font-size:42px; }
  .guest-history-copy > p { font-size:13px; }
  .guest-history-actions { display:grid; }
  .guest-history-actions .btn { width:100%; }
  .guest-history-proof { display:grid; justify-content:start; margin-inline:auto; width:max-content; }
  .guest-history-stack { min-height:260px; }
  .guest-history-stack figure { width:min(190px,55%); border-width:4px; border-radius:14px; }
  .guest-history-preview { padding-top:48px; }
  .guest-history-preview-head { display:block; }
  .guest-history-preview-head p { margin-top:12px; }
  .guest-history-grid { grid-template-columns:1fr 1fr; gap:8px; }
  .guest-history-card > div:last-child { padding:10px; }
  .guest-history-card strong { font-size:11px; }
  .guest-history-card p { min-height:45px; font-size:9px; }
  .guest-history-final { display:grid; padding:28px 20px; text-align:center; }
  .guest-history-final h2 { font-size:24px; }
  .guest-history-final .btn { width:100%; min-width:0; }
}
.history-layout { min-height:100vh; display:grid; grid-template-columns:250px minmax(0,1fr) 260px; }
.history-filters { border-right:1px solid #dbe3ec; padding:0 16px; }
.history-side-tabs { height:62px; margin:0 -16px; display:grid; grid-template-columns:1fr 1fr; border-bottom:1px solid #dbe3ec; }
.history-side-tabs button { border:0; border-bottom:3px solid transparent; background:#fff; font-weight:800; color:#5f6d82; }
.history-side-tabs button.active { color: var(--rose-text); border-bottom-color: var(--rose-text); }
.history-filters section { display:grid; gap:12px; margin:28px 0; color:#243043; }
.history-filters section > strong { color:#66768e; font-size:12px; }
.history-filters label { font-size:13px; }.history-filters input { accent-color: var(--rose-text); width:17px; height:17px; vertical-align:-3px; }
.history-filters section button { width:max-content; max-width:100%; border:1px solid #d7e0ea; border-radius:6px; background:#fff; padding:8px 10px; overflow-wrap:anywhere; text-align:left; line-height:1.35; }
.history-filters section button.active { border-color:#dc2c55; background:#fff1f4; color:var(--rose-dark); }
.history-filters .inline { display:grid; grid-template-columns:70px 1fr; align-items:center; color:#5f6d82; }
.history-filters select { border:0; border-radius:6px; background:#f0f3f7; padding:6px; }
.history-main { min-width:0; padding:12px 20px; }
.history-comments-mode { grid-template-columns:250px minmax(0,1fr); }
.history-view-tabs { margin-bottom:12px;padding:4px;display:grid;grid-template-columns:repeat(3,minmax(0,220px));gap:4px;width:max-content;max-width:100%;border:1px solid #dce3eb;border-radius:14px;background:#f2f5f8; }
.history-view-tabs button,.history-view-tabs a { min-width:0;min-height:54px;padding:8px 12px;display:flex;align-items:center;gap:10px;border:1px solid transparent;border-radius:10px;background:transparent;color:#5f6d82;text-align:left;text-decoration:none;cursor:pointer;transition:.16s ease; }
.history-view-tabs button:hover,.history-view-tabs a:hover { color:#354256;background:rgba(255,255,255,.65); }
.history-view-tabs button.active { border-color:#96677c;background:#fff;color:var(--ink);box-shadow:0 3px 10px rgba(35,45,60,.07); }
.history-view-tabs svg { flex:none;width:20px;height:20px;stroke-width:1.8; }
.history-view-tabs span,.history-view-tabs strong,.history-view-tabs small { min-width:0;display:block; }
.history-view-tabs strong { font-size:11px;white-space:nowrap; }
.history-view-tabs small { margin-top:2px;color:#627084;font-size:9px; }
.history-search { height:44px; border:1px solid #d6dfe9; border-radius:10px; display:flex; align-items:center; padding:0 12px; box-shadow:0 2px 7px rgba(26,35,46,.04); }
.history-search svg { width:18px; color:#5f6d82; }.history-search input { flex:1; border:0; outline:0; padding:0 8px; font-size:13px; }.history-search kbd { border:1px solid #d7e0ea; border-radius:6px; padding:4px 6px; background:#fff; }
.history-toolbar { display:flex; gap:10px; align-items:center; padding:16px 0 4px; }
.history-toolbar > strong { color:#293547; font-size:13px; }
.history-toolbar > span { color:#627084; font-size:12px; }
.history-toolbar > button { margin-left:auto; border:0; border-radius:6px; background:none; color:#67768e; padding:6px 8px; cursor:pointer; }
.history-toolbar > button:hover,.history-toolbar > button.active { background:#fff0f4; color: var(--rose-text); }
.history-toolbar > button[data-select-history] { min-height:36px; padding:8px 12px; border:1px solid var(--rose-text); background:var(--rose-text); color:#fff; font-weight:900; box-shadow:0 5px 14px rgba(240,79,111,.22); }
.history-toolbar > button[data-select-history]:hover,.history-toolbar > button[data-select-history].active { border-color:var(--rose-dark); background:var(--rose-dark); color:#fff; }
.history-day-group + .history-day-group { margin-top:10px; }
.history-day-head small { color:#627084; font-size:11px; }
.history-day-head { display:flex; gap:12px; align-items:baseline; padding:16px 0 10px; }.history-day-head button { border:0; border-radius:6px; background:none; color:#67768e; padding:6px 8px; cursor:pointer; }.history-day-head button:hover,.history-day-head button.active { background:#fff0f4; color: var(--rose-text); }
.history-selection-bar { margin-top:12px; min-height:54px; display:flex; align-items:center; gap:8px; flex-wrap:wrap; padding:8px 10px; border:1px solid #f0bdc9; border-radius:10px; background:#fff7f9; box-shadow:0 6px 18px rgba(240,79,111,.08); }.history-selection-bar > strong { margin-right:auto; color:#293547; }.history-selection-bar button,.history-selection-bar select { min-height:35px; border:1px solid #d6dfe9; border-radius:6px; background:#fff; padding:6px 10px; color:#536176; cursor:pointer; }.history-selection-bar label { display:flex; align-items:center; gap:6px; color:#5f6d82; font-size:11px; }.history-selection-bar .move-selected { border-color: var(--rose-text); background:var(--rose-text); color:#fff; font-weight:800; }.history-selection-bar .delete-selected { display:inline-flex; align-items:center; justify-content:center; gap:6px; border-color:#d63c53; background:#fff; color:#c52f47; font-weight:900; }.history-selection-bar .delete-selected:hover { background:#c9364e; color:#fff; }.history-selection-bar .delete-selected svg { width:15px; height:15px; }.history-selection-bar button:disabled { opacity:.45; cursor:not-allowed; }
.history-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(150px,1fr)); gap:12px; align-items:start; }
.history-grid.small { grid-template-columns:repeat(auto-fill,minmax(95px,1fr)); }.history-grid.large { grid-template-columns:repeat(auto-fill,minmax(230px,1fr)); }
.history-card { position:relative; border:1px solid #e1e7ee; border-radius:10px; overflow:hidden; background:#fff; cursor:pointer; transition:border-color .15s ease,box-shadow .15s ease,transform .15s ease; }.history-card.selectable:hover { border-color:#e2204e; transform:translateY(-2px); }.history-card.selected { border:2px solid var(--rose); box-shadow:0 0 0 3px rgba(240,79,111,.14); }.history-select-check { position:absolute; z-index:2; top:8px; right:8px; width:29px; height:29px; display:grid!important; place-items:center; border:2px solid #fff; border-radius:6px; background:rgba(255,255,255,.94); color:#fff!important; font-size:15px!important; box-shadow:0 2px 8px rgba(26,35,46,.16); }.history-card.selected .history-select-check { background:var(--rose); }
.history-card > img { width:100%; height:auto; aspect-ratio:3/4; object-fit:cover; display:block; }
.history-card > div { padding:8px; }.history-card strong,.history-card span { display:block; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }.history-card strong { font-size:11px; }.history-card span { color:#667588; font-size:9px; margin-top:2px; }
.history-bookmark { position:absolute; top:7px; right:7px; width:28px; height:28px; border:0; border-radius:6px; background:rgba(255,255,255,.88); font-size:17px; }.history-bookmark.active { color:#996900; }
.history-empty { text-align:center; padding:120px 20px; }.history-empty p { color:#667588; }
.comment-history-summary section span { color:#536176;font-size:13px; }
.comment-history-summary section p { margin:0;color:#5f6d82;font-size:11px;line-height:1.55; }
.comment-direction-tabs { width:min(560px,100%); display:grid; grid-template-columns:1fr 1fr; gap:4px; margin-bottom:12px; padding:4px; border:1px solid #dce3eb; border-radius:10px; background:#f2f5f8; }
.comment-direction-tabs button { min-width:0; min-height:42px; display:flex; align-items:center; justify-content:center; gap:8px; border:1px solid transparent; border-radius:6px; background:transparent; color:#5f6d82; font-size:11px; font-weight:900; cursor:pointer; }
.comment-direction-tabs button.active { border-color:#9e6279; background:#fff; color:var(--ink); box-shadow:0 2px 8px rgba(35,45,60,.07); }
.comment-direction-tabs button span { min-width:22px; padding:2px 6px; border-radius:999px; background:#e4e9ef; color:#5f6d82; font-size:9px; }
.comment-direction-tabs button.active span { background:#fff0f4; color:var(--rose-dark); }
.comment-history-head { padding:20px 2px 16px;display:flex;align-items:end;justify-content:space-between;gap:28px;border-bottom:1px solid #e2e7ed; }
.comment-history-head strong,.comment-history-head span { display:block; }
.comment-history-head strong { font-size:15px; }
.comment-history-head span { margin-top:2px;color:#68768a;font-size:9px; }
.comment-history-head p { max-width:430px;margin:0;color:#5f6d82;font-size:11px;line-height:1.45;text-align:right; }
.comment-history-list { display:grid; }
.comment-history-card { min-width:0;padding:16px 2px;display:grid;grid-template-columns:68px minmax(0,1fr) auto;align-items:center;gap:16px;border-bottom:1px solid #e2e7ed; }
.comment-history-thumb { width:68px;height:68px;border-radius:10px;overflow:hidden;background:#f0f3f7; }
.comment-history-thumb img { width:100%;height:100%;display:block;object-fit:cover;transition:transform .2s ease; }
.comment-history-thumb:hover img { transform:scale(1.04); }
.comment-history-copy { min-width:0; }
.comment-history-copy > div { display:flex;align-items:baseline;gap:6px; }
.comment-history-copy a { min-width:0;color:var(--ink);text-decoration:none; }
.comment-history-copy a:hover { color:var(--rose-dark); }
.comment-history-copy strong { display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px; }
.comment-history-copy span,.comment-history-copy small { color:#68768a;font-size:9px; }
.comment-history-copy blockquote { margin:6px 0 6px;color:#3d495a;font-size:12px;line-height:1.5;overflow-wrap:anywhere; }
.comment-history-actions { display:grid;justify-items:end;gap:8px; }
.comment-history-actions a,.comment-history-actions button { border:0;background:none;color:var(--rose-dark);font-size:9px;font-weight:900;text-decoration:none;cursor:pointer; }
.comment-history-actions button { color:#677588; }
.comment-history-actions button:hover { color:#d33d59; }
.comment-history-empty { padding:100px 20px; }
.history-folders { border-left:1px solid #dbe3ec; }.folder-heading { height:62px; display:flex; align-items:center; justify-content:space-between; padding:0 16px; border-bottom:1px solid #dbe3ec; }.folder-heading > span { display:flex;align-items:center;gap:4px; }.folder-heading button { border:0;background:none;cursor:pointer; }.history-folder-close { display:none; font-size:20px; }
.history-folders > label { display:block; padding:12px; border-bottom:1px solid #dbe3ec; }.history-folders input { width:100%; border:1px solid #d7e0ea; border-radius:10px; padding:10px; }
.history-filter-modal { width:min(590px,calc(100vw - 32px));display:grid;gap:0; }
.history-filter-modal > .eyebrow { margin:0 0 8px;color:var(--rose-dark); }
.history-filter-modal > h2 { margin:0 48px 6px 0;font-size:29px;letter-spacing:-1px; }
.history-filter-modal > p { margin:0 0 24px;color:#5f6d82;line-height:1.5; }
.history-date-fields { display:grid;grid-template-columns:1fr 1fr;gap:12px; }
.history-date-fields label { display:grid;gap:6px;color:#536176;font-size:11px;font-weight:900; }
.history-date-fields input { width:100%;height:48px;border:1px solid #d6dfe9;border-radius:10px;background:#fff;padding:0 12px;color:#202734;font:inherit; }
.history-date-fields input:focus { border-color:#dc2c55;outline:3px solid rgba(240,75,106,.1); }
.history-model-options { max-height:min(420px,48vh);display:grid;gap:6px;overflow-y:auto;padding:2px; }
.history-model-options label { min-height:52px;display:grid;grid-template-columns:22px minmax(0,1fr) auto;align-items:center;gap:10px;border:1px solid #dce3eb;border-radius:10px;padding:10px 12px;cursor:pointer; }
.history-model-options label:has(input:checked) { border-color:#d6355b;background:#fff5f7; }
.history-model-options input { width:18px;height:18px;accent-color: var(--rose-text); }
.history-model-options span { min-width:0;color:#263246;font-size:13px;font-weight:900;overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }
.history-model-options small { color:#67768b;font-size:9px;white-space:nowrap; }
.history-filter-empty { border:1px dashed #d6dfe9;border-radius:10px;padding:28px;color:#5f6d82;text-align:center; }
.history-filter-modal .modal-actions { margin-top:24px; }
.history-move-backdrop { z-index:260; }
.history-move-modal { position:relative;width:min(680px,calc(100vw - 32px));padding:0;overflow:hidden; }
.history-move-head { position:relative;padding:24px 28px 20px;border-bottom:1px solid #e4e9ef; }
.history-move-head .eyebrow { display:block;margin-bottom:6px;color:var(--rose-dark); }
.history-move-head h2 { margin:0 48px 0 0;color:#202734;font-size:29px;letter-spacing:-1px; }
.history-move-path { min-height:48px;display:flex;align-items:center;gap:8px;padding:0 28px;border-bottom:1px solid #e7ebf0;background:#f8fafc;color:#667588;font-size:12px; }
.history-move-path b { color:#64748a;font-size:17px; }
.history-move-path strong { min-width:0;color:#354256;overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }
.history-move-toolbar { min-height:58px;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:0 28px; }
.history-move-toolbar > span { color:#536176;font-size:12px;font-weight:900; }
.history-move-toolbar button { min-height:38px;border:1px solid #efb4c1;border-radius:10px;background:#fff;color:var(--rose-dark);padding:8px 12px;font:inherit;font-size:11px;font-weight:900;cursor:pointer; }
.history-move-new-folder { margin:0 28px 12px;padding:12px;border:1px solid #efc3cd;border-radius:10px;background:#fff7f9; }
.history-move-new-folder[hidden] { display:none; }
.history-move-new-folder > label { display:block;margin-bottom:6px;color:#536176;font-size:9px;font-weight:900; }
.history-move-new-folder > div { display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:6px; }
.history-move-new-folder input { min-width:0;height:42px;border:1px solid #d6dfe9;border-radius:6px;background:#fff;padding:0 10px;color:#202734;font:inherit; }
.history-move-new-folder input:focus { border-color:#dc2c55;outline:3px solid rgba(240,75,106,.1); }
.history-move-new-folder button { min-height:42px;border:1px solid #d6dfe9;border-radius:6px;background:#fff;padding:0 12px;color:#536176;font:inherit;font-size:11px;font-weight:900;cursor:pointer; }
.history-move-new-folder button[type="submit"] { border-color: var(--rose-text);background:var(--rose-text);color:#fff; }
.history-move-folders { max-height:min(390px,44vh);display:grid;gap:6px;overflow-y:auto;padding:2px 28px 6px; }
.history-move-folder { width:100%;min-height:66px;display:grid;grid-template-columns:42px minmax(0,1fr) 22px;align-items:center;gap:12px;border:1px solid #dce3eb;border-radius:10px;background:#fff;padding:10px 12px;color:#202734;text-align:left;cursor:pointer; }
.history-move-folder:hover,.history-move-folder:focus-visible { border-color:#d93157;background:#fff8fa;outline:none; }
.history-move-folder.active { border-color: var(--rose-text);background:#fff2f5;box-shadow:inset 3px 0 0 var(--rose); }
.history-move-folder > span { min-width:0; }
.history-move-folder strong,.history-move-folder small { display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }
.history-move-folder strong { color:#263246;font-size:13px; }
.history-move-folder small { margin-top:4px;color:#67768b;font-size:9px; }
.history-move-folder > b { color:#62748b;font-size:17px;text-align:right; }
.history-move-folder.active > b { color:var(--rose-dark); }
.history-move-folder-icon { position:relative;width:37px;height:27px;display:block;border:2px solid #8796aa;border-radius:4px;background:#f3f6f9; }
.history-move-folder-icon:before { content:"";position:absolute;left:-2px;top:-8px;width:17px;height:8px;border:2px solid #8796aa;border-bottom:0;border-radius:4px 4px 0 0;background:#f3f6f9; }
.history-move-folder.active .history-move-folder-icon,.history-move-folder.active .history-move-folder-icon:before { border-color: var(--rose-text);background:#ffe8ee; }
.history-move-modal > .modal-actions { grid-template-columns:auto minmax(180px,auto);justify-content:end;margin:16px 0 0;padding:16px 28px;border-top:1px solid #e4e9ef;background:#fff; }
.history-move-modal .btn:disabled { opacity:.5;cursor:not-allowed; }
@media (min-width:901px) {
  .history-move-modal { width:min(920px,calc(100vw - 80px)); }
  .history-move-head { padding:32px 40px 24px; }
  .history-move-head h2 { font-size:35px; }
  .history-move-path { min-height:56px;padding-left:40px;padding-right:40px; }
  .history-move-toolbar { min-height:72px;padding-left:40px;padding-right:40px; }
  .history-move-new-folder { margin-left:40px;margin-right:40px;padding:16px; }
  .history-move-folders { max-height:min(480px,50vh);padding-left:40px;padding-right:40px; }
  .history-move-folder { min-height:78px;padding:12px 16px; }
  .history-move-modal > .modal-actions { padding:24px 40px; }
}
@media (max-width:600px) {
  .history-filter-backdrop { align-items:end;padding:12px; }
  .history-filter-modal { width:100%;max-height:calc(100vh - 24px);overflow-y:auto;border-radius:18px; }
  .history-date-fields { grid-template-columns:1fr; }
  .history-filter-modal .modal-actions { display:grid;grid-template-columns:1fr; }
  .history-filter-modal .modal-actions .btn { width:100%; }
  .history-move-backdrop { align-items:end;padding:10px; }
  .history-move-modal { width:100%;max-height:calc(100vh - 20px);border-radius:18px; }
  .history-move-head { padding:20px 20px 16px; }
  .history-move-head h2 { font-size:24px; }
  .history-move-path,.history-move-toolbar { padding-left:20px;padding-right:20px; }
  .history-move-new-folder { margin-left:20px;margin-right:20px; }
  .history-move-new-folder > div { grid-template-columns:minmax(0,1fr) auto; }
  .history-move-new-folder button[data-cancel-move-folder] { grid-column:1/-1; }
  .history-move-folders { max-height:42vh;padding-left:20px;padding-right:20px; }
  .history-move-modal > .modal-actions { grid-template-columns:1fr 1fr;padding:16px 20px; }
  .history-move-modal > .modal-actions .btn { width:100%; }
}
.folder-list { display:grid; gap:4px; padding:12px; }.folder-list button { width:100%; display:flex; align-items:center; gap:8px; border:0; border-radius:6px; background:#fff; padding:8px; text-align:left; color:#68768a; cursor:pointer; }.folder-list button:hover { background:#f6f8fb; color:#354256; }.folder-list button.active { background:#fff0f4; color: var(--rose-text); box-shadow:inset 3px 0 0 var(--rose); }.folder-list button strong { min-width:0; flex:1; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:12px; }.folder-list button small { margin-left:auto; color:#607086; font-size:9px; }.folder-list img { width:29px;height:29px;border-radius:6px;object-fit:cover; }
.folder-list-row { min-width:0; display:flex; align-items:center; gap:2px; }
.folder-list-row .folder-open { min-width:0; flex:1; }
.folder-list .folder-delete { width:32px; height:32px; flex:none; display:grid; place-items:center; padding:0; color:#866f79; opacity:.3; }
.folder-list .folder-delete svg { width:15px; height:15px; }
.folder-list-row:hover .folder-delete,.folder-list .folder-delete:focus-visible { opacity:1; color:#cf4054; background:#fff0f2; outline:none; }

.history-modal-backdrop { position:fixed; z-index:240; inset:0; display:grid; place-items:center; padding:32px; background:rgba(22,27,35,.62); backdrop-filter:blur(5px); }
.history-detail-modal { width:min(1320px,96vw); height:min(880px,94vh); display:grid; grid-template-columns:minmax(0,1.5fr) minmax(340px,.8fr); background:#fff; border-radius:18px; overflow:hidden; position:relative; box-shadow:0 25px 80px rgba(0,0,0,.28); }
.history-modal-close { position:absolute; z-index:12; top:0; right:0; width:54px; height:54px; display:grid; place-items:center; border:0; border-left:1px solid #d7e0ea; border-bottom:1px solid #d7e0ea; border-radius:0 18px 0 14px; background:#fff; color:#202734; font-size:29px; line-height:1; cursor:pointer; box-shadow:-5px 5px 16px rgba(34,43,56,.08); }.history-modal-close:hover,.history-modal-close:focus-visible { background:#fff2f5; color:var(--rose-dark); outline:none; }
.history-detail-image { background:#f3f4f6; display:flex; align-items:center; justify-content:center; padding:28px; overflow:hidden; }.history-detail-image img { max-width:100%; max-height:100%; object-fit:contain; }
.history-detail-modal > aside { padding:28px; overflow:auto; }.history-modal-actions { display:flex;justify-content:flex-end;gap:8px;align-items:center;margin-right:48px; }.history-modal-actions button { position:relative;flex:none;width:44px;height:44px;display:grid;place-items:center;border:1px solid #d9e1ea;border-radius:10px;background:#fff;color:#536176;cursor:pointer;box-shadow:0 3px 9px rgba(35,45,60,.05);transition:.16s ease; }.history-modal-actions button svg { width:21px;height:21px;stroke-width:1.8; }.history-modal-actions button:hover,.history-modal-actions button:focus-visible { border-color:#d93159;background:#fff4f7;color:var(--rose-dark);box-shadow:none;outline:none;transform:translateY(-1px); }.history-modal-actions button:after { content:attr(data-tooltip);position:absolute;z-index:8;top:calc(100% + 7px);left:50%;padding:4px 8px;border-radius:6px;background:#202532;color:#fff;font-size:9px;font-weight:800;line-height:1;white-space:nowrap;opacity:0;pointer-events:none;transform:translate(-50%,-3px);transition:.14s ease; }.history-modal-actions button:hover:after,.history-modal-actions button:focus-visible:after { opacity:1;transform:translate(-50%,0); }.history-modal-actions .danger { border-color:#c54958;color:#d23e4a; }.history-modal-actions .danger:hover,.history-modal-actions .danger:focus-visible { border-color:#cd4457;background:#fff0f2;color:#c52f43; }
.history-created-at { margin-top:16px;padding:10px 12px;display:flex;align-items:center;justify-content:space-between;gap:16px;border:1px solid #e1e7ee;border-radius:10px;background:#f8fafc; }
.history-created-at span { color:#67768b;font-size:9px;font-weight:900;letter-spacing:.08em;text-transform:uppercase; }
.history-created-at time { color:#354154;font-size:11px;font-weight:800;white-space:nowrap; }
.history-modal-actions .history-publish-button { width:auto;min-width:76px;padding:0 12px;border-color: var(--rose-text);background:var(--rose-text);color:#fff;font-size:11px;font-weight:900; }.history-modal-actions .history-publish-button:hover,.history-modal-actions .history-publish-button:focus-visible { border-color:var(--rose-dark);background:var(--rose-dark);color:#fff; }.history-modal-actions .history-publish-button.published { border-color:#3d8260;background:#edf9f3;color:#258457; }.history-modal-actions .history-publish-button.published:hover,.history-modal-actions .history-publish-button.published:focus-visible { border-color:#3d805d;background:#e3f6ec;color:#1d7149; }
.history-detail-modal h2 { margin:28px 0 8px; }.history-detail-modal > aside > p { color:#687484; line-height:1.5; }.history-detail-modal h3 { margin-top:28px; font-size:13px; }
.history-copy-editor { display:grid;gap:12px;margin-top:24px;padding:16px;border:1px solid #e0e6ed;border-radius:10px;background:#fbfcfd; }.history-copy-editor label { display:grid;gap:6px; }.history-copy-editor label > span { color:#657388;font-size:9px;font-weight:900;text-transform:uppercase;letter-spacing:.08em; }.history-copy-editor input,.history-copy-editor textarea { width:100%;border:1px solid #d5dee8;border-radius:10px;background:#fff;padding:10px 12px;color:#1f2733;font:inherit;outline:none; }.history-copy-editor input { font-size:15px;font-weight:900; }.history-copy-editor textarea { min-height:96px;resize:vertical;font-size:12px;line-height:1.5; }.history-copy-editor input:focus,.history-copy-editor textarea:focus { border-color:#df2753;box-shadow:0 0 0 3px rgba(240,79,111,.1); }.history-copy-editor > div { display:flex;align-items:center;justify-content:space-between;gap:12px; }.history-copy-editor small { color:#67768b;font-size:9px; }.history-copy-editor button { border:1px solid #efafbe;border-radius:6px;background:#fff;color:var(--rose-dark);padding:8px 10px;font-size:9px;font-weight:900;cursor:pointer; }.history-copy-editor button:hover { background:#fff0f4; }
.history-copy-editor.description-required { border-color:#d6365d;background:#fff8fa; }
.history-copy-editor .history-description-notice { display:grid;gap:2px;align-items:start;justify-content:stretch;padding:10px 10px;border-radius:10px;background:#fff0f4;color:#8e3049; }
.history-description-notice strong { font-size:11px; }
.history-description-notice span { font-size:9px;line-height:1.4; }
.canonical-identity { display:flex; align-items:center; justify-content:space-between; gap:12px; margin:12px 0 20px; padding:12px 12px; border:1px solid #efdde2; border-radius:10px; background:#fff8fa; }
.canonical-identity > div { min-width:0; display:grid; gap:4px; }
.canonical-identity span { color:#9a6875; font-size:9px; font-weight:900; letter-spacing:.08em; text-transform:uppercase; }
.canonical-identity a { color:#cf3658; font-size:9px; font-weight:800; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.canonical-identity code { flex:0 0 auto; padding:4px 6px; border-radius:6px; background:#fff; color:#776f7c; font-size:9px; }
.canonical-identity.pending { display:block; background:#f8fafc; border-color:#58779c; }
.canonical-identity.pending p { margin:4px 0 0; color:#677587; font-size:9px; line-height:1.45; }
/* Joined field + action, matching the share modal's .share-direct treatment. */
.canonical-copy-row { flex:1; grid-template-columns:minmax(0,1fr) auto; gap:0; }
.canonical-copy-row input { min-width:0; height:34px; border:1px solid #efdde2; border-right:0; border-radius:6px 0 0 6px; background:#fff; padding:0 10px; color:#776f7c; font-size:9px; font-weight:700; }
.canonical-copy-row input:focus { outline:none; border-color:#b85471; }
.canonical-copy-row button { border:0; border-radius:0 6px 6px 0; background:var(--rose-text); padding:0 16px; color:#fff; font-size:9px; font-weight:900; letter-spacing:.02em; cursor:pointer; transition:background .15s ease; }
.canonical-copy-row button:hover { background:var(--rose-dark); }
.history-detail-modal dl { display:grid; grid-template-columns:1fr 1fr; gap:12px 24px; }.history-detail-modal dl div { display:grid; gap:4px; }.history-detail-modal dt { color:#5f6d82; font-size:11px; }.history-detail-modal dd { margin:0;font-size:13px; }
.history-prompt-heading { margin-top:28px; display:flex; align-items:center; justify-content:space-between; gap:12px; }
.history-prompt-heading h3 { margin:0; }
.prompt-visibility-button { border:1px solid #efb6c4; border-radius:6px; background:#fff4f6; color:var(--rose-dark); padding:6px 8px; font-size:9px; font-weight:900; cursor:pointer; }
.prompt-visibility-button.hidden-state { border-color:#8362c4; background:#f7f3ff; color:#6e4aae; }
.prompt-visibility-button.locked { border-color:#587699; background:#f5f7fa; color:#5f6d82; }
.history-prompt { margin-bottom:8px; padding:12px; border:1px solid #e2e7ed; border-radius:10px; background:#f8fafc; color:#263246 !important; line-height:1.55; white-space:pre-wrap; overflow-wrap:anywhere; }
.copy-history-prompt { border:0; background:none; color:var(--rose-dark); padding:0; font-size:9px; font-weight:900; cursor:pointer; }
.hidden-public-prompt { margin-top:12px; padding:16px; display:grid; grid-template-columns:32px minmax(0,1fr); gap:2px 10px; border:1px solid #ddd3ee; border-radius:10px; background:#faf8ff; }
.hidden-public-prompt > span { grid-row:1/3; width:30px; height:30px; display:grid; place-items:center; border-radius:6px; background:#ede7fa; color:#7550b4; }
.hidden-public-prompt strong { font-size:12px; }.hidden-public-prompt p { margin:0; color:#7b6f8e; font-size:9px; line-height:1.45; }
.history-modal-tags { display:flex;flex-wrap:wrap;gap:6px; }.history-modal-tags span { background:#f2f5f8;border-radius:6px;padding:4px 6px;font-size:9px; }
.move-folder { display:grid;gap:6px;margin-top:24px;font-size:11px;color:#5f6d82; }.move-folder strong { color:#344154;font-size:12px; }.move-folder select { border:1px solid #d7e0ea;border-radius:6px;padding:10px;background:#fff;cursor:pointer; }
.history-modal-footer { position:sticky; bottom:-30px; margin:28px -28px -28px; padding:12px 28px; display:grid; grid-template-columns:repeat(3,1fr); gap:8px; border-top:1px solid #dbe3ec; background:#fff; }.history-modal-footer button { border:1px solid #d7e0ea;border-radius:6px;background:#f1f4f7;padding:10px;font-weight:800; }
.history-modal-footer.prompt-hidden-footer { display:block; color:#7b6f8e; font-size:9px; text-align:center; }

.profile-collections { display:grid;grid-template-columns:repeat(3,1fr);gap:12px;padding-top:16px; }.profile-collections article { border:1px solid var(--line);border-radius:14px;padding:10px; }.folder-covers { display:grid;grid-template-columns:2fr 1fr 1fr;gap:4px;height:130px; }.folder-covers img { width:100%;height:100%;object-fit:cover;border-radius:6px; }.profile-collections strong,.profile-collections span { display:block;margin-top:8px; }.profile-collections span { color:var(--muted);font-size:9px; }.profile-empty { grid-column:1/-1;text-align:center;padding:64px; }
.profile-about { display:grid;grid-template-columns:1fr 1fr;gap:48px;padding:28px 0; }.profile-about p { color:var(--muted);line-height:1.65; }.profile-about dl { margin:0; }.profile-about dl div { display:flex;justify-content:space-between;border-bottom:1px solid var(--line);padding:12px 0;font-size:12px; }.profile-about dt { color:var(--muted); }.profile-about dd { margin:0; }.profile-published { padding:16px 0 24px; }.history-grid.compact { grid-template-columns:repeat(auto-fill,minmax(140px,1fr));margin-top:10px; }
.profile-edit-modal { position:relative; width:min(620px,100%); }.profile-edit-modal > label,.folder-modal > label { display:grid;gap:6px;margin-top:12px;font-size:12px;font-weight:800; }.profile-edit-modal input,.profile-edit-modal textarea,.folder-modal input { border:1px solid var(--line);border-radius:10px;padding:10px; }.profile-edit-modal textarea { min-height:90px;resize:vertical; }.form-row { display:grid;grid-template-columns:1fr 1fr;gap:10px; }.form-row label { display:grid;gap:6px;margin-top:12px;font-size:12px;font-weight:800; }.modal-x { position:absolute;right:17px;top:14px;border:0;background:none;font-size:24px; }
.floating-menu { position:absolute;z-index:30;right:0;top:calc(100% + 7px);min-width:190px;padding:6px;border:1px solid #d7e0ea;border-radius:10px;background:#fff;box-shadow:0 12px 30px rgba(20,28,38,.16); }.profile-buttons,.result-actionbar { position:relative; }.floating-menu button { width:100%;border:0;background:#fff;text-align:left;padding:10px;border-radius:6px; }.floating-menu button:hover { background:#f2f5f8; }

.model-family { position:relative; }
.model-menu { position:absolute;z-index:40;top:52px;left:0;right:0;min-width:0;border:1px solid #d7e0ea;border-radius:10px;background:#fff;padding:8px;box-shadow:0 16px 38px rgba(30,40,52,.2); }
.model-menu button { width:100%;height:auto!important;min-height:72px;display:grid!important;grid-template-columns:38px minmax(0,1fr) 24px;align-items:center;gap:10px;text-align:left;padding:10px 12px!important;border:0!important;border-radius:10px!important;background:#fff; }
.model-menu button.active { background:#eef2f6; }
.model-menu button > span { min-width:0;margin:0!important; }
.model-menu strong,.model-menu small { display:block; }
.model-menu strong { color:#263143;font-size:13px;line-height:1.25; }
.model-menu small { margin-top:2px;color:#5f6d82;font-size:11px;font-weight:700;line-height:1.35;white-space:normal; }
.model-menu i { justify-self:end;color:#5f6d82;font-size:17px;font-style:normal; }
.prompt-field { position:relative; }.prompt-suggestions { display:none;position:absolute;z-index:18;left:8px;right:8px;top:76px;max-height:300px;overflow:auto;padding:6px;border:1px solid #d7e0ea;border-radius:10px;background:#fff;box-shadow:0 12px 35px rgba(30,40,52,.18); }.prompt-suggestions.show { display:block; }.prompt-suggestions button { width:100%;min-height:39px;display:grid;grid-template-columns:minmax(0,1fr) max-content 54px;column-gap:16px;align-items:center;border:0;border-radius:6px;background:#fff;padding:6px 10px;text-align:left;color:#2f6fd0; }.prompt-suggestions button:hover,.prompt-suggestions button:first-child { background:#eef2f6; }.prompt-suggestions button b { min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:700; }.prompt-suggestions small { min-width:48px;padding-right:2px;color:#55627a;text-align:right; }.prompt-suggestions i,.prompt-tag-catalog i { --tag-tone:#2bbb72;width:calc(var(--heat) * 10px);height:12px;background:repeating-linear-gradient(90deg,var(--tag-tone) 0 7px,transparent 7px 10px);opacity:.92;justify-self:start; }.prompt-suggestions i[data-tone="suggestive"],.prompt-tag-catalog i[data-tone="suggestive"] { --tag-tone:#f2a526; }.prompt-suggestions i[data-tone="explicit"],.prompt-tag-catalog i[data-tone="explicit"] { --tag-tone:#e8445f; }.prompt-suggestions i[data-tone="identity"],.prompt-tag-catalog i[data-tone="identity"] { --tag-tone:#8b5cf6; }
.prompt-library-open { overflow:hidden; }
.prompt-library-backdrop { overflow:hidden; }
.prompt-library-modal { position:relative;width:min(1176px,calc(100vw - 32px));min-width:0;max-height:min(90vh,860px);overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;padding:28px;scrollbar-gutter:stable; }
.prompt-library-head { display:flex;align-items:flex-start;justify-content:space-between;gap:24px;padding-right:2px; }
.prompt-library-head span { display:block;margin-bottom:4px;color:var(--rose-dark);font-size:9px;font-weight:900;letter-spacing:.14em;text-transform:uppercase; }
.prompt-library-head h2 { margin:0;font-size:clamp(29px,4vw,42px);line-height:1.05;letter-spacing:-1.7px; }
.prompt-library-close { flex:0 0 auto;width:42px;height:42px;display:grid;place-items:center;border:1px solid var(--line);border-radius:10px;background:#fff;color:#5d5661;font-size:29px;line-height:1;cursor:pointer; }
.prompt-library-close:hover { border-color:#d13860;background:#fff4f6;color:var(--rose-dark); }
.prompt-library-intro { max-width:780px;margin:12px 0 24px;color:var(--muted);line-height:1.6; }
.prompt-library-section-title { display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0px 10px; }
.prompt-library-section-title strong { font-size:13px; }
.prompt-library-section-title span { color:var(--muted);font-size:11px; }
.prompt-library-section-title.tag-title { margin-top:28px; }
.prompt-preset-grid { width:100%;min-width:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(275px,1fr));gap:8px;margin:0; }
.prompt-preset-grid button { min-width:0;min-height:158px;display:flex;flex-direction:column;border:1px solid #ecd9df;border-radius:10px;background:linear-gradient(145deg,#fff7f9,#fff);padding:12px;text-align:left;cursor:pointer;overflow:hidden; }
.prompt-preset-grid button:hover { border-color: var(--rose-text);box-shadow:none;transform:translateY(-1px); }
.prompt-preset-grid strong,.prompt-preset-grid span { display:block; }.prompt-preset-grid strong { color:var(--ink);margin-bottom:6px; }.prompt-preset-grid span { min-width:0;color:var(--muted);font-size:9px;line-height:1.45;display:-webkit-box;-webkit-line-clamp:5;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere; }.prompt-preset-grid em { margin-top:auto;padding-top:10px;color:var(--rose-dark);font-size:9px;font-style:normal;font-weight:900; }
.prompt-library-toolbar { width:100%;min-width:0;display:grid;grid-template-columns:minmax(0,1fr);gap:8px;position:sticky;top:-30px;z-index:2;padding:12px 0;background:#fff; }
.prompt-library-toolbar label { min-width:0; }
.prompt-library-toolbar input,.prompt-library-toolbar select { width:100%;min-width:0;min-height:46px;border:1px solid #d7e0ea;border-radius:10px;background:#fff;padding:0 12px;color:var(--ink); }
.prompt-tag-legend { display:flex;flex-wrap:wrap;gap:6px;margin:0 0px 10px; }.prompt-tag-legend span { display:inline-flex;align-items:center;gap:4px;color:#5f6d82;font-size:9px; }.prompt-tag-legend span:before { content:"";width:8px;height:8px;border-radius:2px;background:#2bbb72; }.prompt-tag-legend span[data-tone="suggestive"]:before { background:#f2a526; }.prompt-tag-legend span[data-tone="explicit"]:before { background:#e8445f; }.prompt-tag-legend span[data-tone="identity"]:before { background:#8b5cf6; }
.prompt-tag-catalog { width:100%;min-width:0;display:grid;grid-template-columns:minmax(0,1fr);gap:6px; }
.prompt-tag-catalog button { width:100%;min-width:0;display:grid;grid-template-columns:minmax(0,1fr) max-content 54px;column-gap:16px;align-items:center;min-height:52px;border:1px solid #e2e7ed;border-radius:10px;background:#fff;padding:10px 12px;text-align:left;cursor:pointer;color:#1e6fe5; }
.prompt-tag-catalog button:hover,.prompt-tag-catalog button.selected { background:#fff1f4;border-color:#d73559; }.prompt-tag-catalog button span { min-width:0;white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere;line-height:1.3; }.prompt-tag-catalog button small { min-width:52px;color:#5f6d82;text-align:right; }.prompt-tag-catalog button em { display:none; }.library-empty { grid-column:1/-1;text-align:center;padding:28px; }
.studio-folder-panel { position:absolute;z-index:20;top:50px;left:8px;right:8px;width:auto;max-width:calc(100% - 16px);max-height:min(320px,calc(100vh - 72px));display:grid;gap:4px;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;padding:8px;border:1px solid #dce3eb;border-radius:0 0 10px 10px;background:#fff;box-shadow:0 16px 32px rgba(35,45,60,.14); }.studio-folder-list { min-width:0;display:grid;gap:4px; }.studio-folder-list button { width:100%;min-width:0;display:flex;align-items:center;gap:8px;overflow:hidden;border:0;border-radius:6px;background:#fff;padding:8px;text-align:left;color:#5f6d82;cursor:pointer; }.studio-folder-list button:hover { background:#f5f7fa;color:#344154; }.studio-folder-list button.active { background:#fff0f4;color: var(--rose-text); }.studio-folder-list button span { min-width:0;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }.studio-folder-list button b { margin-left:auto;color: var(--rose-text); }.studio-folder-list img { flex:none;width:27px;height:27px;border-radius:4px; }.edit-instruction { width:100%;min-height:150px;border:1px solid #d7e0ea;border-radius:10px;padding:10px;resize:vertical; }.edit-hints { display:flex;flex-wrap:wrap;gap:6px; }.edit-hints button { border:1px solid #d7e0ea;border-radius:6px;background:#fff;padding:6px;font-size:9px; }
.studio-folder-row { min-width:0; display:flex; align-items:center; gap:2px; }
.studio-folder-row .studio-folder-open { min-width:0; flex:1; }
.studio-folder-list .studio-folder-delete { width:30px; height:30px; flex:none; display:grid; place-items:center; padding:0; color:#866f79; opacity:.3; }
.studio-folder-list .studio-folder-delete svg { width:14px; height:14px; }
.studio-folder-row:hover .studio-folder-delete,.studio-folder-list .studio-folder-delete:focus-visible { opacity:1; color:#cf4054; background:#fff0f2; outline:none; }
.result-actionbar { position:absolute;z-index:6;left:50%;bottom:18px;width:max-content;max-width:calc(100% - 20px);transform:translateX(-50%);display:flex;align-items:center;gap:4px;padding:6px;overflow:visible;border:1px solid rgba(217,225,234,.95);border-radius:14px;background:rgba(255,255,255,.96);box-shadow:0 14px 38px rgba(32,40,53,.16);backdrop-filter:blur(16px); }
.result-actionbar button { position:relative;flex:none;width:46px;height:44px;display:grid;place-items:center;border:1px solid transparent;border-radius:10px;background:transparent;color:#3e4a5c;cursor:pointer;transition:background .16s ease,border-color .16s ease,color .16s ease,transform .16s ease; }
.result-actionbar button svg { width:21px;height:21px;stroke-width:1.8; }
.result-actionbar .result-post-action { width:auto;min-width:94px;padding:0 16px;display:flex;gap:6px;border-color:#d6325b;background:#fff5f7;color:var(--rose-dark);font-size:13px;font-weight:900; }
.result-actionbar .result-post-action.posted,.result-actionbar .result-post-action.posted:disabled { border-color:#35815e;background:#edf9f4;color:#24825a;opacity:1;cursor:default; }
.result-actionbar button:hover,.result-actionbar button:focus-visible { border-color:#d6355b;background:#fff4f7;color:var(--rose-dark);box-shadow:none;outline:none;transform:translateY(-2px); }
.result-actionbar button.active { border-color:#dd2951;background:#ffedf2;color:var(--rose-dark); }
.result-actionbar button:after { content:attr(data-tooltip);position:absolute;z-index:20;left:50%;bottom:calc(100% + 9px);padding:6px 8px;border-radius:6px;background:#202532;color:#fff;font-size:9px;font-weight:800;line-height:1;white-space:nowrap;opacity:0;pointer-events:none;transform:translate(-50%,4px);transition:.14s ease; }
.result-actionbar button:hover:after,.result-actionbar button:focus-visible:after { opacity:1;transform:translate(-50%,0); }
.result-action-more { position:relative;flex:none; }
.result-action-menu[hidden] { display:none; }
.result-action-menu { position:absolute;z-index:40;right:0;bottom:calc(100% + 12px);width:250px;display:grid;gap:2px;padding:6px;border:1px solid #d8e0e9;border-radius:14px;background:#fff;box-shadow:0 16px 36px rgba(25,32,44,.18); }
.result-actionbar .result-action-menu button { width:100%;height:auto;min-height:50px;display:grid;grid-template-columns:24px minmax(0,1fr);gap:10px;align-items:center;padding:8px 10px;border-radius:10px;text-align:left; }
.result-actionbar .result-action-menu button svg { width:19px;height:19px;justify-self:center; }
.result-actionbar .result-action-menu button span,.result-actionbar .result-action-menu button strong,.result-actionbar .result-action-menu button small { min-width:0;display:block; }
.result-actionbar .result-action-menu button strong { color:#30394a;font-size:12px;line-height:1.25; }
.result-actionbar .result-action-menu button small { margin-top:2px;color:#68758a;font-size:9px;line-height:1.3; }
.result-actionbar .result-action-menu button:hover,.result-actionbar .result-action-menu button:focus-visible { transform:none; }
.result-actionbar .result-action-menu button.active strong { color:var(--rose-dark); }
.result-actionbar .result-action-menu button:after { display:none; }
.enhance-menu { bottom:58px;top:auto;left:0;right:auto; }

@media (max-width:720px) {
  .result-actionbar { bottom:max(10px,env(safe-area-inset-bottom));width:calc(100% - 20px);max-width:420px;justify-content:center;gap:2px;padding:6px; }
  .result-actionbar > button,.result-actionbar > .result-action-more > button { width:40px;height:42px; }
  .result-actionbar .result-post-action { min-width:82px;padding:0 10px;gap:4px;font-size:13px; }
  .result-actionbar button:hover { transform:none; }
  .result-action-menu { right:-2px;bottom:calc(100% + 9px);width:min(250px,calc(100vw - 30px));max-height:min(310px,calc(100vh - 120px));overflow-y:auto; }
}
@media (max-width:340px) {
  .result-actionbar .result-post-action { width:42px;min-width:42px;padding:0;justify-content:center; }
  .result-actionbar .result-post-action span { position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap; }
}

.tools-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }
.tool-card { border:1px solid var(--line); border-radius:18px; padding:20px; background:#fff; cursor:pointer; transition:.2s; }
.tool-card:hover { transform:translateY(-4px); box-shadow:none; border-color:#c64666; }
.tool-icon { width:44px; height:44px; border-radius:14px; display:grid; place-items:center; background:#fff0f3; color: var(--rose-text); font-size:20px; margin-bottom:24px; }
.tool-card h3 { margin:0 0 4px; font-size:17px; }
.tool-card p { color:var(--muted); font-size:13px; margin:0; }
.tool-card .arrow { margin-top:20px; color: var(--rose-text); font-weight:800; }
.tool-page { padding-top:28px; }
.tool-page-head { max-width:none; margin:0 0 24px; }
.tool-headline { display:flex; align-items:center; gap:16px; }
.tool-headline .tool-icon { width:58px; height:58px; margin:0; border-radius:14px; font-size:24px; flex:none; }
.tool-headline h1 { margin:0 0 2px; font-size:clamp(29px,4vw,48px); line-height:1; letter-spacing:-2px; }
.tool-headline p { max-width:720px; margin:0; color:var(--muted); }
.tool-workspace { max-width:none; min-height:650px; margin:0; display:grid; grid-template-columns:minmax(360px,460px) minmax(420px,1fr); border:1px solid var(--line); border-radius:18px; overflow:hidden; background:#fff; box-shadow:0 18px 45px rgba(63,35,47,.07); }
.tool-controls { padding:24px; border-right:1px solid var(--line); background:#fffdfc; }
.tool-controls-title { display:flex; justify-content:space-between; gap:16px; align-items:start; margin-bottom:20px; }
.tool-controls-title strong,.tool-controls-title span { display:block; }
.tool-controls-title strong { font-size:20px; }
.tool-controls-title > div span { color:var(--muted); font-size:11px; margin-top:2px; }
.tool-label { display:flex; justify-content:space-between; gap:12px; align-items:center; margin-bottom:8px; }
.tool-label strong { font-size:13px; }
.tool-label span { color:var(--muted); font-size:9px; }
.tool-upload { width:100%; min-height:190px; border:1.5px dashed #d9cbd0; border-radius:10px; background:#fff; display:grid; place-items:center; align-content:center; gap:6px; color:var(--muted); cursor:pointer; overflow:hidden; padding:12px; transition:.18s; }
.tool-upload:hover,.tool-upload.dragging { border-color: var(--rose-text); background:#fff7f8; }
.tool-upload-icon { width:43px; height:43px; display:grid; place-items:center; border-radius:10px; background:#fff0f3; color: var(--rose-text); font-size:24px; }
.tool-upload > strong { color:var(--ink); }
.tool-upload > small { font-size:11px; }
.tool-upload.has-image { position:relative; display:block; padding:0; min-height:230px; border-style:solid; }
.tool-upload.has-image img { width:100%; height:230px; object-fit:contain; background:#f4f0f1; }
.tool-upload-change { position:absolute; left:10px; right:10px; bottom:10px; padding:8px 10px; border-radius:10px; background:rgba(25,22,32,.84); color:#fff; text-align:left; backdrop-filter:blur(8px); }
.tool-upload-change strong,.tool-upload-change small { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.tool-upload-change small { opacity:.75; font-size:9px; }
.tool-note { margin:8px 2px 0; color:var(--muted); font-size:9px; }
.tool-fields { margin-top:20px; display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.tool-field { display:grid; gap:6px; min-width:0; }
.tool-field-wide { grid-column:1/-1; }
.tool-field > span { font-size:11px; font-weight:800; color:#4e4550; }
.tool-field input,.tool-field textarea,.tool-field select { width:100%; border:1px solid #dfd5d9; border-radius:10px; background:#fff; outline:none; padding:10px 10px; color:var(--ink); }
.tool-field input,.tool-field select { height:43px; }
.tool-field textarea { min-height:93px; resize:vertical; }
.tool-field input:focus,.tool-field textarea:focus,.tool-field select:focus { border-color: var(--rose-text); box-shadow:0 0 0 3px rgba(240,79,111,.08); }
.tool-consent { display:grid; grid-template-columns:34px 1fr; gap:8px; align-items:start; margin:16px 0; padding:10px; border:1px solid #eadde1; border-radius:10px; background:#fbf7f8; }
.tool-consent > span { display:grid; place-items:center; height:27px; border-radius:6px; background:var(--ink); color:#fff; font-size:9px; font-weight:900; }
.tool-consent p { margin:0; color:var(--muted); font-size:9px; }
.tool-run { width:100%; }
.tool-run .google-logo { margin-right:0px; }
.tool-output { min-width:0; display:flex; align-items:stretch; background:#f5f1f2; }
.tool-result-empty { width:100%; min-height:620px; padding:40px; display:grid; place-content:center; justify-items:center; text-align:center; }
.tool-result-empty > span:first-child { width:62px; height:62px; display:grid; place-items:center; border:1px solid #e3d8dc; border-radius:14px; background:#fff; color: var(--rose-text); font-size:24px; }
.tool-result-empty h2 { margin:16px 0 4px; font-size:24px; letter-spacing:-.8px; }
.tool-result-empty p { max-width:420px; margin:0; color:var(--muted); }
.tool-output-checks { display:flex; flex-wrap:wrap; justify-content:center; gap:8px; margin-top:20px; }
.tool-output-checks span { border:1px solid #e5dadd; border-radius:6px; padding:6px 8px; background:#fff; color:#675e66; font-size:9px; font-weight:800; }
.tool-spinner { width:48px !important; height:48px !important; border:4px solid #f5cbd4 !important; border-top-color: var(--rose-text) !important; border-radius:50% !important; animation:tool-spin .8s linear infinite; background:none !important; }
@keyframes tool-spin { to { transform:rotate(360deg); } }
.tool-error > span:first-child { color:#fff; background:var(--rose-text); border-color: var(--rose-text); font-weight:900; }
.tool-error .btn { margin-top:20px; }
.tool-result-image { width:100%; padding:20px; align-self:start; }
.tool-result-image > img { width:100%; max-height:660px; object-fit:contain; border-radius:10px; background:#27232a; }
.tool-result-summary { display:flex; justify-content:space-between; gap:16px; align-items:start; padding:16px 2px 10px; }
.tool-result-summary small { color:var(--rose-dark); font-weight:800; }
.tool-result-summary h2 { margin:2px 0; font-size:20px; }
.tool-result-summary p { margin:0; color:var(--muted); font-size:12px; }
.tool-result-summary > span { padding:6px 8px; border:1px solid var(--line); border-radius:6px; background:#fff; color:var(--muted); font-size:9px; white-space:nowrap; }
.tool-result-tags { display:flex; gap:6px; flex-wrap:wrap; margin:8px 0 16px; }
.tool-result-tags span { border:1px solid #ead9de; border-radius:6px; background:#fff; padding:4px 8px; color:#6b6069; font-size:9px; }
.tool-result-actions { display:flex; flex-wrap:wrap; gap:8px; padding-top:12px; border-top:1px solid var(--line); }
.tool-result-actions .btn { min-height:41px; padding:0 12px; font-size:11px; }
.tool-analysis-result { width:100%; align-self:start; margin:20px; padding:24px; border:1px solid var(--line); border-radius:14px; background:#fff; }
.tool-analysis-result > small { color:var(--rose-dark); font-weight:800; }
.tool-analysis-result h2 { margin:4px 0 20px; font-size:29px; letter-spacing:-1px; }
.analysis-block { padding:16px 0; border-top:1px solid var(--line); }
.analysis-block strong { font-size:11px; text-transform:uppercase; letter-spacing:.6px; }
.analysis-block p { margin:6px 0 0; color:#514951; white-space:pre-wrap; }
.tool-explainer { max-width:none; margin:20px 0 0; display:grid; grid-template-columns:repeat(3,1fr); gap:12px; }
.tool-explainer > div { padding:16px; border:1px solid var(--line); border-radius:10px; background:#fff; }
.tool-explainer strong { font-size:12px; }
.tool-explainer p { margin:4px 0 0; color:var(--muted); font-size:9px; }

.focused-generator { max-width:none; margin:8px 0 40px; display:grid; grid-template-columns:minmax(0,1fr) 330px; gap:24px; align-items:start; }
.focused-generator-copy { padding:28px 28px 8px 0; }
.focused-generator-copy h1 { margin:0 0 12px; font-size:clamp(42px,6vw,74px); line-height:.96; letter-spacing:-4px; }
.focused-generator-copy > p { max-width:none; margin:0; color:var(--muted); font-size:17px; line-height:1.55; }
.focused-generator-safety { display:flex; gap:10px; align-items:center; margin-top:20px; color:var(--muted); font-size:11px; }
.focused-generator-safety strong { padding:6px 8px; border-radius:6px; background:var(--ink); color:#fff; font-size:9px; text-transform:uppercase; letter-spacing:.5px; }
.focused-generator-visual { position:relative; overflow:hidden; border:1px solid var(--line); border-radius:18px; background:#f8eff2; }
.focused-generator-visual img { display:block; width:100%; aspect-ratio:4/5; object-fit:cover; }
.focused-generator-visual span { position:absolute; left:12px; bottom:12px; padding:6px 10px; border-radius:6px; background:rgba(23,20,27,.78); color:#fff; font-size:9px; font-weight:800; backdrop-filter:blur(8px); }
.focused-generator-form { grid-column:1/-1; display:grid; gap:16px; padding:24px; border:1px solid var(--line); border-radius:18px; background:#fff; box-shadow:0 16px 42px rgba(63,35,47,.06); }
.focused-generator-form > label { display:flex; justify-content:space-between; gap:16px; align-items:end; }
.focused-generator-form > label span { font-size:15px; font-weight:900; }
.focused-generator-form > label small,.focused-generator-form > p { color:var(--muted); font-size:11px; }
.focused-generator-form textarea { width:100%; min-height:155px; resize:vertical; padding:16px; border:1px solid #ded2d6; border-radius:10px; outline:none; font:inherit; line-height:1.55; color:var(--ink); }
.focused-generator-form textarea:focus { border-color: var(--rose-text); box-shadow:0 0 0 3px rgba(240,79,111,.08); }
.focused-generator-options { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.focused-generator-options label { display:grid; gap:6px; color:#4e4550; font-size:11px; font-weight:800; }
.focused-generator-options select { width:100%; height:46px; padding:0 12px; border:1px solid #ded2d6; border-radius:10px; background:#fff; color:var(--ink); }
.focused-generator-form .btn { min-height:54px; font-size:15px; }
.focused-generator-form > p { margin:0; text-align:center; }
.focused-ideas { max-width:none; margin:0; }
.focused-ideas .section-head p { margin:4px 0 0; color:var(--muted); }
.focused-ideas > div:last-child { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; }
.focused-ideas button { min-height:90px; padding:16px; display:flex; flex-direction:column; justify-content:space-between; gap:12px; text-align:left; border:1px solid var(--line); border-radius:14px; background:#fff; color:var(--ink); cursor:pointer; }
.focused-ideas button:hover,.focused-ideas button:focus-visible { border-color:#d53860; background:#fff7f9; outline:none; }
.focused-ideas button span { color:var(--rose-dark); font-size:11px; font-weight:800; }

.content-layout { display:grid; grid-template-columns:minmax(0,1fr) 280px; gap:56px; padding-top:48px; }
.article { max-width:820px; }
.article h1 { font:italic clamp(42px,5vw,67px)/1.02 Georgia,serif; letter-spacing:-2px; margin:12px 0; }
.article-deck { color:var(--muted); font-size:20px; border-bottom:1px solid var(--line); padding-bottom:24px; }
.byline { display:flex; align-items:center; gap:10px; font-size:12px; color:var(--muted); margin:16px 0 28px; }
.byline-avatar { width:34px; height:34px; border-radius:50%; background:var(--ink); color:#fff; display:grid; place-items:center; font:italic 16px Georgia,serif; }
.article-cover { width:100%; max-height:500px; object-fit:cover; border-radius:18px; margin-bottom:28px; }
.article h2 { margin:40px 0 10px; font-size:29px; letter-spacing:-1px; }
.article h3 { margin-top:28px; font-size:20px; }
.article p, .article li { color:#4f4852; font-size:15px; line-height:1.75; }
/* The global reset is `a { color: inherit; text-decoration: none }`, and the rule
   that styles prose links - .seo-prerender a - only covers the crawler copy. A
   learn guide hydrates into .article, which had no link rule, so every in-body
   link rendered the same colour as the paragraph with no underline: present in
   the DOM, invisible to a reader. Every other page type renders into
   .seo-prerender and was never affected. */
.article p a, .article li a, .article td a, .article th a {
  color: var(--rose-text); text-decoration: underline;
  text-decoration-thickness: 1px; text-underline-offset: 2px;
}
.article p a:hover, .article li a:hover, .article td a:hover, .article th a:hover {
  color: var(--rose-dark); text-decoration-thickness: 2px;
}
.article blockquote { margin:28px 0; padding:4px 0 4px 20px; border-left:3px solid var(--rose); font:italic 23px/1.45 Georgia,serif; color:var(--plum); }
.article code { background:#f8eff2; padding:2px 4px; border-radius:4px; color:#b53353; }
.callout { background:#fff3f5; border:1px solid #f3d4dc; border-radius:14px; padding:16px 20px; margin:24px 0; }
.toc { position:sticky; top:95px; border-left:1px solid var(--line); padding-left:20px; }
.toc strong { display:block; text-transform:uppercase; letter-spacing:1px; font-size:9px; margin-bottom:12px; }
.toc a { display:block; color:var(--muted); margin:10px 0; font-size:13px; }
.toc a:hover { color: var(--rose-text); }

@media (max-width:760px) {
  /* Mobile post page, arranged like betterwaifu's mobile view:
     image (counter below) → tags → creator → stats → title → description →
     actions → prompt → generation details → more-by (3-col) → comments. The two
     desktop columns are dissolved with display:contents so blocks interleave. */
  .post-layout { display:flex; flex-direction:column; align-items:stretch; gap:0; padding-top:0; }
  .post-main-column, .post-details { display:contents; }
  .post-layout .post-viewer { order:1; flex-direction:column; gap:6px; margin:0; border-radius:14px; padding:10px 10px 12px; min-height:0; max-height:none; background:#f4f5f8; }
  .post-layout .post-viewer img { max-height:72vh; border-radius:10px; box-shadow:none; }
  .post-layout .post-counter { position:static; background:none; color:#756c7c; font-size:12px; font-weight:800; }
  .post-nav { width:34px; height:46px; font-size:24px; opacity:.9; top:42%; }
  .post-tags { order:2; padding:12px 2px 6px; }
  .creator-row { order:3; padding:10px 0 10px; border-bottom:0; }
  .post-details .post-stats { order:4; padding:0 0 10px; }
  .post-title-row { order:5; padding:0 0 4px; border-bottom:0; }
  .post-title-row h1, .post-title-row h2.post-modal-title { font-size:24px; letter-spacing:-.5px; }
  .post-details .post-description { order:6; margin:0 0 10px; }
  .post-actions { order:7; grid-template-columns:repeat(4,1fr); gap:6px; padding-bottom:12px; }
  .post-actions button { min-height:42px; font-size:11px; }
  .post-details .detail-group { order:9; }
  .post-details .public-prompt, .post-details .hidden-public-prompt { order:8; }
  .more-by { order:10; }
  .post-layout .more-by-grid { grid-template-columns:repeat(3,1fr); gap:8px; }
  .comments-section { order:11; }
}
.post-loading { display:flex; flex-direction:column; align-items:center; gap:12px; padding:120px 20px; color:#756c7c; font-weight:700; }
.post-loading .home-feed-spinner { width:34px; height:34px; }

/* Story album strip: one tile per part, current part marked. Tiles are reserved
   from the post's own batchCount so late-arriving data never shifts the page. */
.story-series { margin:20px 0 6px; }
.story-series-track { display:flex; gap:8px; overflow-x:auto; padding:4px 0 8px; scrollbar-width:thin; }
.story-series-tile { position:relative; flex:none; width:92px; height:92px; border-radius:10px; overflow:hidden; border:2px solid transparent; }
a.story-series-tile img { width:100%; height:100%; object-fit:cover; display:block; }
a.story-series-tile b { position:absolute; left:6px; bottom:6px; z-index:2; min-width:20px; padding:2px 6px; border-radius:6px; background:rgba(20,10,16,.72); color:#fff; font-size:11px; text-align:center; }
a.story-series-tile.current { border-color: var(--rose-text); }
a.story-series-tile.current b { background:var(--rose); }
.story-series-note { color:#687487; font-size:12px; }

/* The tool badge is white type on a near-black pill. ".history-card span" (0,2,0)
   outranked ".history-tool-badge" (0,1,0) and repainted it grey-on-black at 3.8:1. */
.history-card .history-tool-badge { color:#fff; }
