:root{color-scheme:light;--bg:#fff;--soft:#f7f7f5;--text:#181818;--muted:#8a8a8a;--line:#ececea;--accent:#ff6a24;--brand-blue:#2f80ed;--nav:52px;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif}
*{box-sizing:border-box}[hidden]{display:none!important}html,body{max-width:100%;overflow-x:hidden}html{background:var(--bg)}body{margin:0;min-width:320px;min-height:100vh;background:var(--bg);color:var(--text);font-size:15px;line-height:1.45;-webkit-font-smoothing:antialiased}a{color:inherit;text-decoration:none}button,input,textarea,summary{font:inherit}button{color:inherit}button,a,summary{-webkit-tap-highlight-color:transparent}svg{display:block;width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.sr-only,.skip-link{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.skip-link:focus{position:fixed;top:8px;left:8px;width:auto;height:auto;margin:0;padding:9px 13px;clip:auto;background:var(--accent);color:#fff;z-index:100;border-radius:9px}.muted{color:var(--muted)}
.app-header{position:sticky;top:0;z-index:40;height:calc(68px + env(safe-area-inset-top));padding-top:env(safe-area-inset-top);background:rgba(255,255,255,.94);border-bottom:1px solid rgba(236,236,234,.85);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px)}.header-inner{width:min(100%,1280px);height:68px;margin:auto;padding:0 18px;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;column-gap:8px}.brand{min-width:0;width:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;color:#181818}.brand strong,.brand small{display:block;white-space:nowrap}.brand strong{display:flex;align-items:center;font-size:19.8px;font-weight:600;line-height:1.15;letter-spacing:-.015em}.brand-heart{width:1.2em;height:1.2em;margin-inline:5px;align-self:center;flex:0 0 auto;fill:var(--accent);stroke:none;transform-origin:center;animation:brand-heartbeat 2.6s cubic-bezier(.4,0,.2,1) infinite;will-change:transform}.brand small{margin-top:3px;color:var(--muted);font-size:10.8px;line-height:1.1;letter-spacing:.14em}.header-actions{display:flex;align-items:center;gap:8px}.header-icon{position:relative;width:36px;height:36px;display:grid;place-items:center;border-radius:50%}.header-icon:hover{background:var(--soft)}.notification-bell.active{color:var(--accent)}.sign-in{padding:7px 11px;border:1px solid var(--line);border-radius:10px;font-size:12px;font-weight:650}
@keyframes brand-heartbeat{0%,18%,100%{transform:scale(1)}6%{transform:scale(1.07)}11%{transform:scale(1.025)}}
@media(prefers-reduced-motion:reduce){.brand-heart{animation:none;will-change:auto}}
.avatar{width:38px;height:38px;display:grid;place-items:center;overflow:hidden;flex:none;border-radius:50%;background:#efefec;color:#555;font-size:12px;font-weight:700}.avatar img{width:100%;height:100%;object-fit:cover}.avatar-small{width:32px;height:32px}.avatar-tiny{width:21px;height:21px;font-size:8px}.avatar-profile{width:82px;height:82px;font-size:24px}
.work-author>span:last-child{min-width:0;overflow:hidden}.work-author b,.work-author small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.work-author b{color:var(--text);font-size:11px;font-weight:600}.work-author small{font-size:9px}.privacy-badge{position:absolute;top:8px;left:8px;z-index:3;padding:3px 7px;border-radius:10px;background:rgba(20,20,20,.68);color:#fff;font-size:9px;font-weight:650;letter-spacing:.02em}.privacy-label{display:inline-block;padding:3px 7px;vertical-align:middle;border-radius:9px;background:var(--soft);color:var(--muted);font-size:9px;font-weight:650;letter-spacing:.02em}.detail-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.detail-menu>div{width:140px}
.card-menu>div{transform-origin:top right;transition:opacity 150ms ease,transform 150ms ease}.card-menu.closing>div{opacity:0;transform:translateY(-3px) scale(.98);pointer-events:none}.card-menu .delete-work{color:#c43b32}.delete-dialog{width:min(100% - 32px,360px);padding:0;border:1px solid var(--line);border-radius:14px;background:#fff;color:var(--text);box-shadow:0 18px 55px rgba(0,0,0,.2)}.delete-dialog::backdrop{background:rgba(0,0,0,.32)}.delete-dialog form{padding:20px}.delete-dialog h2{margin:0;font-size:18px}.delete-dialog p{margin:6px 0 20px;color:var(--muted);font-size:12px}.delete-dialog form>div{display:flex;justify-content:flex-end;gap:8px}.delete-dialog button{min-width:76px;height:38px;border:1px solid var(--line);border-radius:9px;background:#fff;font-size:12px;font-weight:650}.delete-dialog .confirm-delete{border-color:#c43b32;background:#c43b32;color:#fff}
.app-main{width:min(100%,1280px);margin:0 auto;padding:0 18px calc(var(--nav) + 12px + env(safe-area-inset-bottom,0px))}.gallery-tabs{height:46px;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));align-items:end;border-bottom:1px solid var(--line)}.gallery-tabs a{width:100%;height:46px;padding:0 4px;display:flex;align-items:center;justify-content:center;position:relative;color:var(--muted);text-align:center;white-space:nowrap;font-size:13px;font-weight:600}.gallery-tabs a.active{color:var(--text)}.gallery-tabs a.active:after{content:"";position:absolute;left:0;right:0;bottom:-1px;height:2px;background:var(--accent)}
.gallery-grid{width:100%;padding-top:16px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 12px}.work-card{min-width:0;width:100%}.work-media{position:relative;width:100%;aspect-ratio:4/3;display:block;overflow:hidden;border-radius:11px;background:#f2f2f0}.work-media img,.work-media video{width:100%;height:100%;display:block;object-fit:cover}.work-media.broken{height:auto;max-height:none;aspect-ratio:4/3;background:#f2f2f0}.work-media.broken .media-error{height:100%}.media-error{width:100%;height:100%;display:grid;place-items:center;background:#f2f2f0;color:#8a8a8a;font-size:12px}.work-media>.media-error{position:absolute;inset:0;max-height:none}.work-copy{padding-top:9px}.work-title{display:-webkit-box;min-width:0;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2;font-size:16px;line-height:1.3;font-weight:600;letter-spacing:-.01em}.work-title-star{width:.5em;height:.5em;margin-left:3px;display:inline-block;vertical-align:middle;flex:none;fill:var(--accent);stroke:none}.work-byline{min-width:0;margin-top:7px;display:flex;align-items:center;gap:6px;color:var(--muted);font-size:13px}.work-byline .author-username{flex:0 1 auto}.work-author{min-width:0;display:flex;align-items:center;gap:7px}.work-author>span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.work-byline time{flex:none;white-space:nowrap;font-size:12px}.work-byline time:before{content:"·";margin-right:5px}.coub-music-link{width:27px;height:27px;margin-left:auto;display:grid;place-items:center;flex:none;color:#2f80ed}.coub-music-link svg{width:22px;height:22px;stroke-width:1.7}.coub-music-link+.card-menu{margin-left:0}.card-menu{position:relative;margin-left:auto;flex:none}.card-menu summary{width:27px;height:27px;display:grid;place-items:center;list-style:none;cursor:pointer}.card-menu summary::-webkit-details-marker{display:none}.card-menu summary svg{width:17px}.card-menu>div{position:absolute;right:0;top:27px;width:130px;padding:5px;z-index:15;background:#fff;border:1px solid var(--line);border-radius:10px;box-shadow:0 10px 30px rgba(0,0,0,.12)}.card-menu a,.card-menu button{width:100%;height:35px;padding:0 8px;display:flex;align-items:center;border:0;background:none;text-align:left;font-size:11px}.card-menu a:hover,.card-menu button:hover{background:var(--soft)}
.home-gallery .work-media{transform:scale(1);transform-origin:center;transition:transform 160ms ease-out}.home-gallery .work-media.home-media-pressed{transform:scale(.985);transition-duration:105ms}
@media(prefers-reduced-motion:reduce){.home-gallery .work-media,.home-gallery .work-media.home-media-pressed{transform:none;transition:none}}
.home-gallery .home-video-preview{position:absolute;inset:0;z-index:1;opacity:1;pointer-events:none}
.home-gallery .work-media>video[data-autoplay]{position:absolute;inset:0;z-index:2;opacity:0;pointer-events:none;transition:opacity 260ms cubic-bezier(.22,1,.36,1)}
.home-gallery .work-media.home-video-playing>video[data-autoplay]{opacity:1;transition-duration:420ms}
.home-gallery .work-media>.media-loading{z-index:3}
.home-gallery .work-media>.media-reveal{z-index:4}
.home-gallery .home-video-slot{position:absolute;inset:0;z-index:0;display:block}
.home-gallery .home-video-slot video{width:100%;height:100%;display:block;object-fit:cover;pointer-events:none}
@media(prefers-reduced-motion:reduce){.home-gallery .work-media>video[data-autoplay]{transition-duration:0ms}}
.bottom-nav{position:fixed;left:0;right:0;bottom:0;z-index:50;width:100%;min-height:calc(var(--nav) + env(safe-area-inset-bottom,0px));margin:0;padding:0 4px env(safe-area-inset-bottom,0px);display:grid;grid-template-columns:repeat(5,minmax(0,1fr));background:#fff;border:0;border-top:1px solid rgba(0,0,0,.05);border-radius:24px 24px 0 0;box-shadow:0 -4px 16px rgba(0,0,0,.05)}.bottom-nav>a{position:relative;min-width:44px;min-height:var(--nav);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;color:var(--muted);font-size:10px;line-height:1;transition:color 175ms ease-out}.bottom-nav>a.active:not(.create-nav),.bottom-nav .create-nav.active{color:var(--accent)}.bottom-nav>a.active:not(.create-nav):after{content:"";position:absolute;bottom:3px;width:14px;height:2px;border-radius:2px;background:var(--accent)}.bottom-nav.nav-indicator-ready:after{content:"";position:absolute;left:0;bottom:calc(env(safe-area-inset-bottom,0px) + 3px);width:14px;height:2px;border-radius:2px;background:var(--accent);transform:translate3d(var(--nav-indicator-x,0),0,0);will-change:transform}.bottom-nav.nav-indicator-ready.nav-indicator-animate:after{transition:transform 210ms ease-out}.bottom-nav.nav-indicator-ready>a.active:not(.create-nav):after{display:none}.bottom-nav>a.nav-color-from{color:var(--accent)!important}.bottom-nav>a.nav-color-to{color:var(--muted)!important}.bottom-nav>a>svg{width:21px;height:21px}.bottom-nav .create-nav{align-self:start;height:var(--nav);justify-content:flex-start;padding-top:0;color:#777;transition:none}.create-nav-icon{width:43px;height:43px;margin-top:-2px;display:grid;place-items:center;border-radius:14px;background:var(--accent);color:#fff;box-shadow:0 4px 12px rgba(255,106,36,.2)}.create-nav-icon svg{width:20px;height:20px}.bottom-nav .create-nav>span:last-child{margin-top:0}
@media(prefers-reduced-motion:reduce){.bottom-nav>a{transition:none}.bottom-nav.nav-indicator-ready.nav-indicator-animate:after{transition:none}}
@media(min-width:601px){.bottom-nav{left:16px;right:16px;width:auto;max-width:1248px;margin:0 auto;border:1px solid #efefed;border-bottom:0}}
.activity-badge{position:absolute;top:0;right:-1px;min-width:16px;height:16px;padding:0 4px;display:grid;place-items:center;border:2px solid #fff;border-radius:9px;background:var(--accent);color:#fff;font-size:8px;line-height:1;font-weight:750}
.activity-page{max-width:680px;margin:auto}.activity-head{height:72px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}.activity-head h1{margin:0;font-size:23px;letter-spacing:-.03em}.activity-head button{padding:7px 0;border:0;background:none;color:var(--accent);font-size:11px;font-weight:650;cursor:pointer}.activity-list{display:grid}.activity-row{position:relative;min-height:76px;padding:13px 3px;display:flex;align-items:center;gap:11px;border-bottom:1px solid var(--line)}.activity-row.unread{background:linear-gradient(90deg,rgba(255,106,36,.045),transparent 70%)}.activity-avatar{width:42px;height:42px}.activity-copy{min-width:0;flex:1}.activity-copy p{margin:0;font-size:12px;line-height:1.42;overflow-wrap:anywhere}.activity-copy p>a strong{font-weight:700}.activity-copy time{display:block;margin-top:3px;color:var(--muted);font-size:10px}.activity-copy q{display:block;margin-top:3px;color:#555;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.activity-copy q:before,.activity-copy q:after{content:'"'}.activity-thumb{width:54px;height:54px;flex:none;display:grid;place-items:center;overflow:hidden;border-radius:10px;background:var(--soft)}.activity-thumb img{width:100%;height:100%;display:block;object-fit:cover;animation:activity-thumb-in 200ms ease-out}.activity-thumb-fallback{color:#aaa;font-size:27px;font-weight:300}.unread-dot{position:absolute;left:-9px;width:5px;height:5px;border-radius:50%;background:var(--accent)}.activity-more{margin:22px auto;display:flex;width:max-content;min-height:39px}.activity-star-avatar{background:rgba(255,106,36,.12)}.activity-star-avatar svg{width:20px;height:20px;fill:currentColor;stroke:none;color:var(--accent)}.featured-activity-label{display:inline-flex;align-items:center;gap:3px;color:var(--accent);font-weight:700}.featured-activity-label svg{width:11px;height:11px;flex:none;fill:currentColor;stroke:none}@keyframes activity-thumb-in{from{opacity:.15}to{opacity:1}}@media(prefers-reduced-motion:reduce){.activity-thumb img{animation:none}}
.page-head,.page-title{padding:28px 0 18px}.page-head h1,.page-title h1{margin:0;font-size:23px;line-height:1.2;letter-spacing:-.03em}.page-head>p,.page-title p{margin:6px 0 0;color:var(--muted);font-size:12px}.section-heading{margin-top:25px;display:flex;align-items:center;justify-content:space-between}.section-heading h2,.people-section h2{margin:0;font-size:15px}.section-heading span{color:var(--muted);font-size:11px}.search-bar{height:44px;margin-top:16px;padding-left:12px;display:flex;align-items:center;border-radius:12px;background:var(--soft)}.search-bar svg{width:18px;color:var(--muted)}.search-bar input{min-width:0;height:100%;flex:1;padding:0 9px;border:0;outline:0;background:transparent;color:var(--text);font-size:16px}.search-bar button{height:34px;margin-right:5px;padding:0 12px;border:0;border-radius:8px;background:#fff;font-size:11px;font-weight:650}.people-section{padding:8px 0 4px}.people-strip{margin-top:12px;display:flex;gap:10px;overflow:auto;padding-bottom:5px}.people-strip>a{min-width:170px;padding:10px;display:flex;align-items:center;gap:9px;background:var(--soft);border-radius:12px}.people-strip b,.people-strip small{display:block}.people-strip b{font-size:12px}.people-strip small{color:var(--muted);font-size:10px}
.back-row{height:52px;display:flex;align-items:center}.back-row a{display:flex;align-items:center;gap:7px;color:var(--muted);font-size:12px}.back-row svg{width:17px}.permalink-page{width:min(100%,820px);margin:0 auto}.permalink-page>.permalink-back{height:auto;padding:16px 0 20px}.permalink-back a{min-height:44px;display:inline-flex;align-items:center;gap:8px;color:var(--text);font-size:14px;font-weight:600;white-space:nowrap}.permalink-back svg{width:24px;height:24px;flex:none;color:var(--accent);fill:none;stroke:currentColor;stroke-width:2.1;stroke-linecap:round;stroke-linejoin:round}.work-detail{width:100%;min-width:0}.detail-heading{margin:0 0 12px}.detail-heading h1{min-width:0;margin:0;font-size:25px;line-height:1.2;letter-spacing:-.03em;overflow-wrap:anywhere}.work-detail>.detail-author{margin-bottom:18px}.detail-media{min-width:0;overflow:hidden;border-radius:14px;background:var(--soft)}.detail-media img,.detail-media video{width:100%;height:auto;max-height:76vh;display:block;object-fit:contain;margin:auto}.detail-media>.media-error{height:72px}.detail-copy{min-width:0}.detail-author{display:flex;align-items:center;gap:10px}.detail-author strong,.detail-author small{display:block}.detail-author strong{font-size:13px}.detail-author small{margin-top:2px;color:var(--muted);font-size:10px}.detail-actions{height:56px;margin-top:17px;display:flex;align-items:center;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.action-form{display:flex}.bookmark-form{margin-left:2px}.icon-button{width:42px;height:42px;padding:0;display:grid;place-items:center;border:0;border-radius:50%;background:transparent;cursor:pointer}.icon-button:hover{background:var(--soft)}.like-button.active{color:var(--accent)}.like-button.active svg,.bookmark-button.active svg{fill:currentColor}.detail-count{margin-left:auto;color:var(--muted);font-size:11px}.detail-count b{color:var(--text)}.detail-caption{margin:18px 0;white-space:pre-wrap;overflow-wrap:anywhere;color:#444;font-size:13px}.comment-section{padding-top:2px}.comment-section h2{margin:0 0 13px;font-size:13px}.comments p{display:flex;gap:7px;margin:7px 0;font-size:12px;overflow-wrap:anywhere}.comments a{font-weight:650}.comments span{color:#555}.comment-form{height:45px;margin-top:15px;display:flex;border-top:1px solid var(--line)}.comment-form input{min-width:0;flex:1;border:0;outline:0;background:transparent;font-size:16px}.comment-form button{padding:0 3px;border:0;background:none;color:var(--accent);font-size:12px;font-weight:700}.text-link{color:var(--accent);font-size:12px}
.explore-head{padding-bottom:12px}.explore-authors{padding-bottom:8px}.author-grid{margin-top:12px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.author-result{min-width:0;min-height:72px;padding:10px;display:flex;align-items:center;gap:8px;border:1px solid var(--line);border-radius:12px;background:#fff}.author-result>a{min-width:0;display:flex;align-items:center;gap:9px;flex:1}.author-result>a>span:last-child{min-width:0}.author-result b,.author-result small,.author-result em{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.author-result b{font-size:12px}.author-result small{color:var(--muted);font-size:9px}.author-result em{margin-top:2px;color:var(--muted);font-size:9px;font-style:normal}.author-result .button{min-width:0;min-height:32px;padding:0 9px;font-size:10px}.explore-empty{padding-top:45px}
.detail-media{position:relative}.detail-media[data-fullscreen-media]{touch-action:manipulation}.fullscreen-button{position:absolute;top:8px;right:8px;z-index:3;width:44px;height:44px;padding:0;display:grid;place-items:center;border:0;border-radius:50%;background:rgba(0,0,0,.25);color:#fff;cursor:pointer;backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px)}.fullscreen-button:hover{background:rgba(0,0,0,.34)}.fullscreen-button svg{width:20px;height:20px}video[data-cinemagraph]{cursor:default;-webkit-touch-callout:none}.detail-media:fullscreen,.detail-media:-webkit-full-screen{width:100vw;height:100vh;display:flex;align-items:center;justify-content:center;border-radius:0;background:#000}.detail-media:fullscreen img,.detail-media:fullscreen video,.detail-media:-webkit-full-screen img,.detail-media:-webkit-full-screen video{width:auto;height:auto;max-width:100%;max-height:100%;object-fit:contain;margin:0}
.portfolio-head{padding:24px 0 20px;display:grid;grid-template-columns:auto minmax(0,1fr);gap:13px 15px;align-items:start}.portfolio-identity{min-width:0}.portfolio-identity h1{margin:0;font-size:23px;letter-spacing:-.03em}.portfolio-identity>span{color:var(--muted);font-size:11px}.profile-bio{max-width:520px;margin:8px 0 0;color:#606060;font-size:14px;line-height:1.35;display:-webkit-box;overflow:hidden;overflow-wrap:anywhere;-webkit-box-orient:vertical;-webkit-line-clamp:2}.profile-meta{min-width:0;margin-top:7px;display:flex;align-items:center;gap:6px;color:var(--muted);font-size:11px}.profile-meta span,.profile-meta a{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.profile-meta a{color:#555;font-weight:600}.profile-meta i{font-style:normal}.loop-status{margin-top:7px;color:var(--muted);font-size:10px}.loop-status span{margin-right:2px;color:#555;font-size:13px}.loop-status i{font-style:normal}.featured-count-link{display:inline-flex;align-items:center;gap:3px;color:var(--accent);font-weight:700}.featured-count-link svg{width:11px;height:11px;flex:none;fill:currentColor;stroke:none}.portfolio-stats{grid-column:1/-1;margin:1px 0 0;display:flex;gap:25px}.portfolio-stats div,.portfolio-stats a{min-width:48px;display:flex;flex-direction:column;align-items:flex-start}.portfolio-stats dt{color:var(--muted);font-size:9px}.portfolio-stats dd{margin:0;font-size:15px;font-weight:700;line-height:1.2}.portfolio-action{grid-column:1/-1}.portfolio-action form{display:flex}.portfolio-action .button{width:auto;min-width:108px}.follow-form .button.secondary{border-color:var(--line);background:#fff;color:var(--text)}.profile-tabs{height:48px;display:flex;gap:25px;border-bottom:1px solid var(--line)}.profile-tabs a{height:48px;display:flex;align-items:center;position:relative;color:var(--muted);font-size:12px}.profile-tabs .active{color:var(--text);font-weight:700}.profile-tabs .active:after{content:"";position:absolute;left:0;right:0;bottom:-1px;height:2px;border-radius:2px;background:var(--text)}.profile-works-bar{min-height:48px;display:flex;align-items:center;justify-content:space-between;gap:12px}.profile-works-bar>span{color:var(--muted);font-size:10px;font-weight:650}.profile-view-toggle{padding:2px;display:flex;border:1px solid var(--line);border-radius:9px;background:var(--soft)}.profile-view-toggle button{min-width:48px;height:28px;padding:0 9px;border:0;border-radius:7px;background:transparent;color:var(--muted);font-size:10px;font-weight:650;cursor:pointer}.profile-view-toggle button.active{background:#fff;color:var(--text);box-shadow:0 1px 3px rgba(0,0,0,.08)}.portfolio-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}.portfolio-work{min-width:0;overflow:hidden;border-radius:7px;background:var(--soft)}.portfolio-media{position:relative;aspect-ratio:1;display:block;overflow:hidden;background:var(--soft)}.portfolio-media img,.portfolio-media video{width:100%;height:100%;display:block;object-fit:cover}.portfolio-copy{display:none}.loop-indicator{position:absolute;right:6px;bottom:5px;z-index:2;display:grid;place-items:center;width:17px;height:17px;border-radius:50%;background:rgba(15,15,15,.46);color:rgba(255,255,255,.9);font-size:12px;line-height:1;backdrop-filter:blur(3px);-webkit-backdrop-filter:blur(3px)}.grid-error{width:100%;height:100%;display:grid;place-items:center;padding:5px;color:var(--muted);font-size:9px;text-align:center}.portfolio-grid[data-layout="feed"]{max-width:620px;margin:0 auto;grid-template-columns:1fr;gap:24px}.portfolio-grid[data-layout="feed"] .portfolio-work{border-radius:12px;background:#fff}.portfolio-grid[data-layout="feed"] .portfolio-media{aspect-ratio:4/5;border-radius:12px}.portfolio-grid[data-layout="feed"] .portfolio-copy{padding:10px 2px 0;display:block}.portfolio-copy strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px}.portfolio-copy>div{margin-top:4px;display:flex;align-items:center;gap:7px;color:var(--muted);font-size:10px}.portfolio-copy .profile-coub{margin-left:auto;color:#2f80ed;font-size:14px}.profile-empty{padding:48px 16px}.profile-empty .button{margin-top:12px}.profile-about{max-width:560px;padding:25px 0}.profile-about h2{margin:0 0 9px;font-size:18px}.profile-about>p{margin:0;color:#555;font-size:14px;line-height:1.45;white-space:pre-wrap}.profile-about dl{margin:22px 0 0;display:flex;flex-wrap:wrap;gap:22px 35px}.profile-about dt{color:var(--muted);font-size:9px}.profile-about dd{max-width:260px;margin:2px 0 0;overflow-wrap:anywhere;font-size:13px;font-weight:600}.profile-about dd a{color:#555}.connections{max-width:560px;margin:auto}.connections h1{margin:4px 0 15px;font-size:22px}.connection-list{display:grid}.connection-row{min-height:66px;display:flex;align-items:center;gap:12px;border-bottom:1px solid var(--line)}.connection-person{min-width:0;display:flex;align-items:center;gap:10px;flex:1}.connection-person strong,.connection-person small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.connection-person strong{font-size:13px}.connection-person small{color:var(--muted);font-size:10px}.connection-row .button{min-width:82px;min-height:36px;padding:0 12px;font-size:11px}
.button{min-height:43px;padding:0 18px;display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--accent);border-radius:11px;background:var(--accent);color:#fff;font-size:12px;font-weight:700;cursor:pointer}.button.secondary{border-color:var(--line);background:#fff;color:var(--text)}.create-page,.page{max-width:620px;margin:auto}.create-form,.form-stack{display:grid;gap:15px}.media-picker{position:relative;min-height:210px;display:grid;place-items:center;overflow:hidden;border:1px dashed #d9d9d5;border-radius:14px;background:var(--soft);cursor:pointer;transition:border-color .15s,background-color .15s}.media-picker.dragover{border-color:var(--accent);background:rgba(255,106,36,.07)}.media-picker>input{position:absolute;width:1px;height:1px;opacity:0}.picker-empty{padding:30px 18px;display:grid;justify-items:center;text-align:center}.picker-empty svg{width:27px;color:var(--accent)}.picker-empty strong{margin-top:11px}.picker-empty small{margin-top:5px;color:var(--muted);font-size:10px}.media-picker>img,.media-picker>video{display:none;width:100%;height:auto;max-height:62vh;object-fit:contain}.media-picker.has-preview>img.active,.media-picker.has-preview>video.active{display:block}.media-picker.has-preview .picker-empty{display:none}.change-media{display:none;position:absolute;right:10px;bottom:10px;min-height:37px;padding:0 12px;border:1px solid var(--line);border-radius:9px;background:rgba(255,255,255,.9)}.media-picker.has-preview .change-media{display:block}.field{display:grid;gap:6px}.field>span{color:var(--muted);font-size:11px}.field input,.field textarea{width:100%;min-height:46px;padding:11px 12px;border:1px solid var(--line);border-radius:11px;outline:0;background:#fff;color:var(--text);font-size:16px;resize:vertical}.field input:focus,.field textarea:focus{border-color:rgba(255,106,36,.6);box-shadow:0 0 0 3px rgba(255,106,36,.08)}.publish-button{width:100%}.form-error{display:none;margin:0;padding:10px;border-radius:9px;background:#fff0ea;color:#a33e16;font-size:11px}.form-error.visible{display:block}.upload-status{display:none;color:var(--muted);font-size:11px}.upload-status.visible{display:grid;gap:6px}.upload-status div{height:3px;background:var(--soft)}.upload-status i{display:block;width:0;height:100%;background:var(--accent)}
.auth-page{min-height:calc(100svh - 62px - var(--nav));padding:30px 0;display:grid;place-items:center}.auth-card,.form-card{width:min(100%,430px);padding:24px 20px;border:1px solid var(--line);border-radius:15px;background:#fff}.auth-brand{text-align:center;margin-bottom:22px}.auth-brand .brand-mark{display:none}.auth-brand strong,.auth-brand small{display:block}.auth-brand small{color:var(--muted);font-size:9px}.auth-card h1{margin:0 0 20px;text-align:center;font-size:22px}.auth-card .button{width:100%}.auth-switch{text-align:center;color:var(--muted);font-size:11px}.auth-switch a{color:var(--text);font-weight:650}.logout-form{padding:18px 2px}.logout-form button{border:0;background:none;color:var(--accent);font-weight:700}.empty-state{grid-column:1/-1;padding:50px 15px;text-align:center}.empty-state h1,.empty-state h2{margin:0 0 5px;font-size:17px}.empty-state p{margin:0 0 17px;color:var(--muted);font-size:11px}.pagination{grid-column:1/-1;padding:28px 0;display:flex;justify-content:space-between;color:var(--muted);font-size:12px}.toast{position:fixed;left:50%;bottom:calc(var(--nav) + env(safe-area-inset-bottom,0px) + 16px);z-index:80;min-height:46px;max-width:calc(100% - 28px);padding:0 16px;display:inline-flex;align-items:center;gap:9px;transform:translate3d(-50%,8px,0) scale(.98);transform-origin:center bottom;opacity:0;pointer-events:none;border:1px solid var(--line);border-radius:16px;background:rgba(255,255,255,.98);box-shadow:0 10px 30px rgba(0,0,0,.12);color:var(--text);font-size:13px;font-weight:600;line-height:1.2;white-space:nowrap;transition:opacity 190ms ease,transform 200ms ease}.toast.visible{opacity:1;transform:translate3d(-50%,0,0) scale(1)}.toast-icon{display:none;width:18px;height:18px;flex:none;fill:none;stroke:currentColor;stroke-width:2.1;stroke-linecap:round;stroke-linejoin:round}.toast-success .toast-icon,.toast-error .toast-icon{display:block}.toast-success .toast-icon{color:var(--accent)}.toast-error .toast-icon{color:#a33e16}.toast-message{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}@media(prefers-reduced-motion:reduce){.toast{transform:translate3d(-50%,0,0);transition:opacity 100ms linear}.toast.visible{transform:translate3d(-50%,0,0)}}.error-page{min-height:100vh;display:grid;place-items:center;padding:20px}.error-page section{text-align:center}.error-page section>span{color:var(--accent)}.admin{padding:25px 0}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse}td,th{padding:9px;border-bottom:1px solid var(--line);text-align:left;font-size:12px}
@media(min-width:601px){.app-main{padding-left:26px;padding-right:26px}.gallery-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:30px 18px}.portfolio-head{grid-template-columns:auto 1fr auto}.portfolio-stats{grid-column:auto}.portfolio-action{grid-column:2/-1}.portfolio-action .button{width:auto;min-width:150px}.portfolio-grid{gap:5px}.app-main{padding-bottom:calc(var(--nav) + 12px + env(safe-area-inset-bottom,0px))}}
@media(min-width:1000px){.gallery-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:36px 22px}.header-inner{padding-left:26px;padding-right:26px}}
@media(max-width:600px){.gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.avatar-tiny{width:24px;height:24px}.avatar-profile{width:74px;height:74px}.portfolio-head{gap:12px}.profile-bio{max-width:min(100%,290px)}.portfolio-grid{gap:4px}.portfolio-grid[data-layout="feed"]{padding-bottom:12px}.portfolio-grid[data-layout="feed"] .portfolio-media{aspect-ratio:4/5}}
@media(max-width:430px){.header-inner{padding-left:12px;padding-right:12px;column-gap:4px}.header-actions{gap:2px}.brand strong{font-size:17.5px}.brand small{font-size:9.5px;letter-spacing:.12em}}
@media(max-width:379px){.brand strong{font-size:17px}.brand small{font-size:9.5px;letter-spacing:.13em}}
.category-filters{width:100%;display:flex;gap:7px;overflow-x:auto;overscroll-behavior-inline:contain;scrollbar-width:none;padding:0 0 7px}.category-filters::-webkit-scrollbar{display:none}.category-filters a,.work-categories a{min-height:34px;padding:0 13px;display:inline-flex;align-items:center;justify-content:center;flex:none;border:1px solid var(--line);border-radius:999px;background:#fff;color:#666;font-size:11px;white-space:nowrap}.category-filters a.active{border-color:rgba(255,106,36,.55);background:#fff7f2;color:var(--accent);font-weight:650}.category-picker{min-width:0;margin:0;padding:0;border:0}.category-picker legend{margin-bottom:8px;color:var(--muted);font-size:11px}.category-picker legend small{font-size:9px}.category-picker>div{display:flex;flex-wrap:wrap;gap:7px}.category-picker label{position:relative}.category-picker input{position:absolute;opacity:0;pointer-events:none}.category-picker span{min-height:36px;padding:0 13px;display:flex;align-items:center;border:1px solid var(--line);border-radius:999px;background:#fff;color:#666;font-size:11px;cursor:pointer}.category-picker input:checked+span{border-color:rgba(255,106,36,.55);background:#fff7f2;color:var(--accent);font-weight:650}.category-picker input:focus-visible+span{outline:2px solid rgba(255,106,36,.35);outline-offset:2px}.category-picker input:disabled+span{opacity:.38;cursor:not-allowed}.work-categories{margin:-7px 0 15px;display:flex;flex-wrap:wrap;gap:6px}.work-categories a{min-height:30px;padding:0 11px}.work-categories a:hover{border-color:rgba(255,106,36,.45);color:var(--accent)}
.author-avatar{display:flex;flex:none}.author-username{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--text);font-size:11px;font-weight:600}.detail-author{display:flex;align-items:center;gap:7px}.detail-author .author-username{font-size:13px}.detail-author time,.author-separator{flex:none;color:var(--muted);font-size:10px}
.work-detail>.detail-author{gap:6px}.work-detail>.detail-author .author-avatar{margin-right:4px}.work-detail>.detail-author .avatar{width:40px;height:40px}.work-detail>.detail-author .author-username{font-size:16px;font-weight:600;line-height:1.2}.work-detail>.detail-author time{color:var(--muted);font-size:14px;font-weight:400}.work-detail>.detail-author .author-separator{font-size:14px;font-weight:400}
@media(min-width:601px){.work-detail>.detail-author .avatar{width:44px;height:44px}}
.featured-label{display:inline-flex;align-items:center;gap:4px;border:1px solid var(--line);border-radius:999px;background:#fff;color:#555;font-size:9px;font-weight:650;letter-spacing:.02em;padding:3px 7px 3px 5px;vertical-align:middle}.featured-label svg{width:11px;height:11px;flex:none;fill:currentColor;stroke:none;color:var(--accent)}.featured-works{padding-top:2px}
.category-picker:focus{outline:none}.category-error{margin:8px 0 0;color:#a33e16;font-size:10px}.category-edit-form{display:grid;gap:18px}.category-edit-form>.button{justify-self:start}.add-categories-hint{min-height:30px;margin:-7px 0 15px;padding:0 11px;display:inline-flex;align-items:center;border:1px dashed rgba(255,106,36,.5);border-radius:999px;color:var(--accent);font-size:10px}
.edit-work-page{min-width:0}.edit-work-page .field,.edit-work-page input,.edit-work-page textarea{min-width:0}.edit-work-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding-bottom:env(safe-area-inset-bottom)}
.coub-field>span:first-child b{color:#2f80ed;font-weight:650}.coub-field>span:first-child small{font-weight:400}.coub-input-wrap{position:relative;min-width:0;display:block}.coub-input-wrap>svg{position:absolute;left:12px;top:50%;z-index:1;width:17px;height:17px;transform:translateY(-50%);color:#2f80ed;pointer-events:none}.field .coub-input-wrap>input{min-width:0;padding-left:39px;border:1.5px solid rgba(47,128,237,.35);background:rgba(47,128,237,.025)}.field .coub-input-wrap>input:focus{outline:none;border-color:#2f80ed;box-shadow:0 0 0 4px rgba(47,128,237,.10)}.coub-field.invalid .coub-input-wrap>input{border-color:#c94b45;background:rgba(201,75,69,.025);box-shadow:0 0 0 3px rgba(201,75,69,.09)}.coub-field.invalid .coub-input-wrap>svg{color:#c94b45}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
.detail-heading h1{min-width:0}.coub-section{width:100%;margin:19px auto 2px}.coub-branding{margin:0 0 9px;text-align:center}.coub-branding strong,.coub-branding small{display:block}.coub-branding strong{color:var(--text);font-size:13px;font-weight:600}.coub-branding small{margin-top:2px;color:var(--muted);font-size:10px}.coub-branding small span{color:#2f80ed;font-weight:650}.coub-module{position:relative;width:100%;aspect-ratio:16/9;min-width:0}.coub-preview{position:relative;width:100%;height:100%;padding:0;display:block;overflow:hidden;border:2px solid #2f80ed;border-radius:20px;background:linear-gradient(145deg,#233447,#101820);box-shadow:0 0 0 1px rgba(47,128,237,.08),0 8px 24px rgba(47,128,237,.08);cursor:pointer}.coub-preview img{width:100%;height:100%;display:block;object-fit:cover}.coub-overlay{position:absolute;left:50%;bottom:10px;transform:translateX(-50%);padding:5px 9px;border-radius:8px;background:rgba(12,18,25,.64);color:#fff;font-size:11px;font-weight:650;line-height:1;white-space:nowrap;backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px)}.coub-module.open{width:100%;aspect-ratio:16/9}.coub-frame{width:100%;height:100%;display:block;border:2px solid #2f80ed;border-radius:20px;background:#111;box-shadow:0 0 0 1px rgba(47,128,237,.08),0 8px 24px rgba(47,128,237,.08)}.coub-close{position:absolute;z-index:2;top:7px;right:7px;width:29px;height:29px;padding:0;border:1px solid rgba(255,255,255,.4);border-radius:50%;background:rgba(15,15,15,.76);color:#fff;font-size:18px;line-height:1;cursor:pointer}.field-error{margin:-8px 0 0;color:#a33e16;font-size:11px}.form-help{margin:0;color:var(--muted);font-size:11px}
.comments .comment-row{min-width:0;align-items:flex-start}.comment-row>a{flex:none}.comment-row>span{min-width:0;flex:1}.delete-comment{width:32px;height:32px;margin:-7px -7px -7px 0;padding:0;display:grid;place-items:center;flex:none;border:0;border-radius:50%;background:transparent;color:var(--muted);cursor:pointer}.delete-comment:hover{background:var(--soft)}.delete-comment svg{width:16px;height:16px}.delete-comment:disabled{opacity:.45}.comments-empty{display:block!important}.delete-dialog .confirm-delete{min-width:82px}
.comments{display:grid}.comments .comment-row{position:relative;display:grid;grid-template-columns:28px minmax(0,1fr) 32px;gap:10px;margin:0;padding:13px 0;border-bottom:1px solid var(--line);font-size:12px}.comment-avatar{margin-top:1px}.comment-content{min-width:0}.comment-username{display:inline-block;color:var(--text);font-size:11px;font-weight:600}.comment-text{margin:3px 0 0!important;display:block!important;color:#444!important;font-size:12px;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word}.comment-meta{min-height:18px;margin-top:4px;display:flex;align-items:center;gap:4px;color:var(--muted);font-size:10px}.comment-menu{position:relative}.comment-menu-toggle{width:32px;height:32px;padding:0;display:grid;place-items:center;border:0;border-radius:50%;background:transparent;color:var(--muted);cursor:pointer}.comment-menu-toggle:hover{background:var(--soft)}.comment-menu-toggle svg{width:16px;height:16px}.comment-menu-popup{display:none;position:absolute;right:0;top:30px;z-index:16;width:128px;padding:5px;border:1px solid var(--line);border-radius:10px;background:#fff;box-shadow:0 10px 30px rgba(0,0,0,.12)}.comment-menu.open .comment-menu-popup{display:block}.comment-menu-popup button,.comment-menu-popup .delete-comment{width:100%;height:36px;margin:0;padding:0 8px;display:flex;align-items:center;border:0;border-radius:6px;background:none;text-align:left;font-size:11px}.comment-menu-popup button:hover{background:var(--soft)}.comment-menu-popup .delete-comment{color:#b43c34}.load-comments{margin:10px 0 2px;padding:4px 0;border:0;background:none;color:var(--muted);font-size:11px;font-weight:600;cursor:pointer}.comment-form{height:auto;min-height:49px;margin-top:12px;align-items:flex-end;gap:8px}.comment-form textarea{min-width:0;max-height:120px;min-height:40px;padding:10px 0;flex:1;resize:none;overflow-y:auto;border:0;outline:0;background:transparent;font-size:16px;line-height:1.35}.comment-form button{height:40px;flex:none}.comment-edit-form{min-width:0;margin-top:5px}.comment-edit-form textarea{width:100%;max-height:140px;min-height:72px;padding:9px 10px;resize:vertical;border:1px solid var(--line);border-radius:9px;outline:0;font-size:16px;line-height:1.4}.comment-edit-form textarea:focus{border-color:rgba(255,106,36,.6);box-shadow:0 0 0 3px rgba(255,106,36,.08)}.comment-edit-form>div{margin-top:7px;display:flex;justify-content:flex-end;gap:7px}.comment-edit-form button{min-width:62px;height:34px;padding:0 10px;border:1px solid var(--line);border-radius:8px;background:#fff;font-size:11px;font-weight:650}.comment-edit-form .comment-edit-save{border-color:var(--accent);background:var(--accent);color:#fff}.comment-edit-error{min-height:15px;margin:4px 0 0!important;color:#a33e16!important;font-size:10px!important}.comments-empty{padding:13px 0;margin:0!important;border-bottom:1px solid var(--line)}
.bottom-nav{grid-template-columns:repeat(5,minmax(0,1fr))}
.bookmark-button.active{color:var(--accent)}.bookmark-button.active svg{fill:currentColor}.saved-head{padding-bottom:2px}.saved-empty{padding:24px 15px}.saved-empty p{margin-bottom:0}

/* Permalink content order: author, media, title/menu, optional Coub. */
.permalink-page>.permalink-back{padding-bottom:12px}.work-detail>.detail-author{margin-bottom:12px}.detail-copy>.detail-heading{margin:14px 0 0}.detail-copy>.detail-heading+.coub-section{margin-top:14px}
@media(max-width:600px){.gallery-tabs a{font-size:12px}}

/* Stable solid fixed header. */
.app-header{position:fixed;isolation:isolate;overflow:visible;left:16px;right:16px;top:env(safe-area-inset-top,0px);width:auto;max-width:1248px;height:68px;margin:0 auto;padding-top:0;z-index:1000;border:1px solid #efefed;border-top:0;border-radius:0 0 24px 24px;background:#fdfdfc;box-shadow:0 6px 20px rgba(0,0,0,.08);backdrop-filter:none;-webkit-backdrop-filter:none}
.header-spacer{height:calc(env(safe-area-inset-top,0px) + 82px);pointer-events:none}
.app-header.is-scrolled{border-radius:0 0 24px 24px;background:#fdfdfc;box-shadow:0 7px 22px rgba(0,0,0,.09);backdrop-filter:none;-webkit-backdrop-filter:none}
.header-inner{position:relative;z-index:1;height:66px;padding-left:18px;padding-right:18px}
.brand-heart{filter:none}
.brand-infinity{width:24px;height:14px;margin-left:8px;flex:none;overflow:visible;fill:none;stroke-linecap:round;stroke-linejoin:round;transform-origin:center;transform-box:fill-box;transform-style:preserve-3d;-webkit-transform-style:preserve-3d;backface-visibility:visible;-webkit-backface-visibility:visible}
.brand-infinity-track{stroke:rgba(15,15,15,.5);stroke-width:3.1}
.brand-infinity-charge,.brand-infinity-pulse{opacity:0}
.brand-infinity-charge{stroke-width:3.25;stroke-dasharray:23 77}
.infinity-charge-1{stroke:url(#transfer-blue-cyan);stroke-dashoffset:0}.infinity-charge-2{stroke:url(#transfer-green-lime);stroke-dashoffset:-25}.infinity-charge-3{stroke:url(#transfer-amber-coral);stroke-dashoffset:-50}.infinity-charge-4{stroke:url(#transfer-raspberry-violet);stroke-dashoffset:-75}
.brand-infinity-active{stroke-width:3.35;opacity:0}.infinity-active-left{stroke:url(#header-infinity-left-gradient)}.infinity-active-right{stroke:url(#header-infinity-right-gradient)}.brand-infinity-highlight{stroke:rgba(255,255,255,.34);stroke-width:.72;opacity:0}
.brand-infinity-pulse{stroke:url(#header-infinity-pulse-gradient);stroke-width:1.7;stroke-dasharray:12 88}
@keyframes infinity-charge-one{0%,69.2%{opacity:0}69.31%,82.759%{opacity:1}87.069%{opacity:.86}91.379%{opacity:.56}95.69%{opacity:.24}100%{opacity:0}}
@keyframes infinity-charge-two{0%,69.82%{opacity:0}69.931%,82.759%{opacity:1}87.069%{opacity:.86}91.379%{opacity:.56}95.69%{opacity:.24}100%{opacity:0}}
@keyframes infinity-charge-three{0%,70.4%{opacity:0}70.517%,82.759%{opacity:1}87.069%{opacity:.86}91.379%{opacity:.56}95.69%{opacity:.24}100%{opacity:0}}
@keyframes infinity-charge-four{0%,70.99%{opacity:0}71.103%,82.759%{opacity:1}87.069%{opacity:.86}91.379%{opacity:.56}95.69%{opacity:.24}100%{opacity:0}}
@keyframes infinity-full-mark{0%,70.99%{opacity:0}71.103%,82.759%{opacity:1}87.069%{opacity:.88}91.379%{opacity:.58}95.69%{opacity:.26}100%{opacity:0}}
@keyframes infinity-inner-highlight{0%,71.1%{opacity:0}72%,82.759%{opacity:.42}87.069%{opacity:.28}91.379%{opacity:.12}95.69%,100%{opacity:0}}
@keyframes infinity-travelling-pulse{0%,70.99%{opacity:0;stroke-dashoffset:12}71.103%{opacity:.98}78.2%{opacity:.9;stroke-dashoffset:-88}78.6%,100%{opacity:0;stroke-dashoffset:-88}}
@keyframes infinity-pump-flip{0%,64.828%{transform:scale(1) rotateY(0deg)}69.31%{transform:scale(1.03) rotateY(0deg)}69.931%{transform:scale(1.06) rotateY(0deg)}70.517%{transform:scale(1.09) rotateY(0deg)}71.103%{transform:scale(1.14) rotateY(0deg)}72.569%{transform:scale(1.16) rotateY(90deg)}74.034%{transform:scale(1.14) rotateY(180deg)}75.5%{transform:scale(1.16) rotateY(270deg)}76.966%,82.759%{transform:scale(1.14) rotateY(360deg)}87.069%{transform:scale(1.11) rotateY(360deg)}91.379%{transform:scale(1.06) rotateY(360deg)}95.69%{transform:scale(1.025) rotateY(360deg)}100%{transform:scale(1) rotateY(360deg)}}
@keyframes infinity-track-charge{0%,64.828%{stroke:rgba(15,15,15,.5)}69.31%{stroke:rgba(15,15,15,.68)}69.931%{stroke:rgba(15,15,15,.79)}70.517%{stroke:rgba(15,15,15,.9)}71.103%,82.759%{stroke:rgba(15,15,15,1)}87.069%{stroke:rgba(15,15,15,.83)}91.379%{stroke:rgba(15,15,15,.67)}95.69%{stroke:rgba(15,15,15,.56)}100%{stroke:rgba(15,15,15,.5)}}
.brand{position:relative;height:44px}
.brand small{color:#7f858c;letter-spacing:.145em}
.normal-brand,.scrolled-brand{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;text-align:center;pointer-events:none;will-change:opacity,transform}
.normal-brand{flex-direction:column;opacity:1;visibility:visible;transform:translateY(0) scale(1);transition:opacity 240ms cubic-bezier(.22,.61,.36,1) 160ms,transform 240ms cubic-bezier(.22,.61,.36,1) 160ms,visibility 0s linear}
.normal-brand small{opacity:1;transition:opacity 180ms cubic-bezier(.22,.61,.36,1) 160ms}
.scrolled-brand{opacity:0;visibility:hidden;transform:translateY(8px) scale(.98);font-size:23px;font-weight:700;line-height:1;letter-spacing:.015em;transition:opacity 240ms cubic-bezier(.22,.61,.36,1),transform 240ms cubic-bezier(.22,.61,.36,1),letter-spacing 240ms cubic-bezier(.22,.61,.36,1),visibility 0s linear 240ms}
.compact-brand-lockup{--cycle-duration:14.5s;--initial-rest:1s;--color-fill-duration:6.5s;--color-in-duration:.75s;--letter-delay:.523s;--color-in-overlap:.227s;--full-color-moment:.5s;--squeeze-duration:2s;--transfer-duration:.91s;--infinity-pulse-duration:1.1s;--flip-duration:.85s;--infinity-fade-duration:2.5s;--neutral-rest:2.1s;--motion-start-delay:420ms;position:relative;display:inline-flex;align-items:center;justify-content:center;max-width:100%;white-space:nowrap;perspective:600px;-webkit-perspective:600px}
.compact-wordmark{position:relative;display:inline-block;color:#181818}
.wordmark-base{position:relative;display:block;color:#181818}
.wordmark-color-layer{position:absolute;inset:0;display:block;overflow:hidden;-webkit-clip-path:inset(0 0 0 0);clip-path:inset(0 0 0 0);opacity:1;will-change:clip-path}
.color-letter{display:inline;color:var(--letter-color);opacity:0;-webkit-text-stroke:.35px currentColor;text-shadow:0 0 .35px currentColor}
.color-letter:nth-child(1){--letter-color:#3b82f6;--letter-animation:pump-letter-1}.color-letter:nth-child(2){--letter-color:#22c7e8;--letter-animation:pump-letter-2}.color-letter:nth-child(3){--letter-color:#18b6a4;--letter-animation:pump-letter-3}.color-letter:nth-child(4){--letter-color:#20b77a;--letter-animation:pump-letter-4}.color-letter:nth-child(5){--letter-color:#75c94a;--letter-animation:pump-letter-5}.color-letter:nth-child(6){--letter-color:#f2a93b;--letter-animation:pump-letter-6}.color-letter:nth-child(7){--letter-color:#ed842f;--letter-animation:pump-letter-7}.color-letter:nth-child(8){--letter-color:#f26b5e;--letter-animation:pump-letter-8}.color-letter:nth-child(9){--letter-color:#d94d85;--letter-animation:pump-letter-9}.color-letter:nth-child(10){--letter-color:#8b63d9;--letter-animation:pump-letter-10}.color-letter:nth-child(11){--letter-color:#5964c7;--letter-animation:pump-letter-11}.color-letter:nth-child(12){--letter-color:#3b82f6;--letter-animation:pump-letter-12}
@keyframes pump-letter-1{0%,6.897%{opacity:0}12.069%,100%{opacity:1}}
@keyframes pump-letter-2{0%,10.504%{opacity:0}15.676%,100%{opacity:1}}
@keyframes pump-letter-3{0%,14.111%{opacity:0}19.283%,100%{opacity:1}}
@keyframes pump-letter-4{0%,17.718%{opacity:0}22.89%,100%{opacity:1}}
@keyframes pump-letter-5{0%,21.325%{opacity:0}26.497%,100%{opacity:1}}
@keyframes pump-letter-6{0%,24.932%{opacity:0}30.104%,100%{opacity:1}}
@keyframes pump-letter-7{0%,28.539%{opacity:0}33.711%,100%{opacity:1}}
@keyframes pump-letter-8{0%,32.146%{opacity:0}37.318%,100%{opacity:1}}
@keyframes pump-letter-9{0%,35.753%{opacity:0}40.925%,100%{opacity:1}}
@keyframes pump-letter-10{0%,39.36%{opacity:0}44.532%,100%{opacity:1}}
@keyframes pump-letter-11{0%,42.967%{opacity:0}48.139%,100%{opacity:1}}
@keyframes pump-letter-12{0%,46.574%{opacity:0}51.746%,100%{opacity:1}}
@keyframes wordmark-color-squeeze{0%,55.172%{opacity:1;-webkit-clip-path:inset(0 0 0 0);clip-path:inset(0 0 0 0)}65%{opacity:1;-webkit-clip-path:inset(0 0 0 72%);clip-path:inset(0 0 0 72%)}68.966%{opacity:1;-webkit-clip-path:inset(0 0 0 100%);clip-path:inset(0 0 0 100%)}69.1%,100%{opacity:0;-webkit-clip-path:inset(0 0 0 100%);clip-path:inset(0 0 0 100%)}}
.brand-handoff-wave{position:absolute;right:16px;top:5px;width:42px;height:12px;overflow:visible;fill:none;pointer-events:none}
.transfer-pulse{stroke-width:2;stroke-linecap:round;opacity:0}.transfer-pulse-1{stroke:url(#transfer-blue-cyan);stroke-dasharray:42 58}.transfer-pulse-2{stroke:url(#transfer-green-lime);stroke-dasharray:32 68}.transfer-pulse-3{stroke:url(#transfer-amber-coral);stroke-dasharray:24 76}.transfer-pulse-4{stroke:url(#transfer-raspberry-violet);stroke-dasharray:16 84}
@keyframes transfer-pulse-one{0%,64.827%{opacity:0;stroke-dashoffset:100}64.828%{opacity:.96}69.2%{opacity:.9;stroke-dashoffset:0}69.31%,100%{opacity:0;stroke-dashoffset:0}}
@keyframes transfer-pulse-two{0%,65.447%{opacity:0;stroke-dashoffset:100}65.448%{opacity:.94}69.82%{opacity:.88;stroke-dashoffset:0}69.931%,100%{opacity:0;stroke-dashoffset:0}}
@keyframes transfer-pulse-three{0%,66.033%{opacity:0;stroke-dashoffset:100}66.034%{opacity:.92}70.4%{opacity:.86;stroke-dashoffset:0}70.517%,100%{opacity:0;stroke-dashoffset:0}}
@keyframes transfer-pulse-four{0%,66.62%{opacity:0;stroke-dashoffset:100}66.621%{opacity:.9}70.99%{opacity:.84;stroke-dashoffset:0}71.103%,100%{opacity:0;stroke-dashoffset:0}}
.scrolled-brand .brand-infinity{width:28px;height:16px;margin-left:7px;align-self:center;opacity:0;transform:translateX(-4px) scale(.9);transition:opacity 200ms cubic-bezier(.22,.61,.36,1),transform 200ms cubic-bezier(.22,.61,.36,1)}
.app-header.is-scrolled .normal-brand{opacity:0;visibility:hidden;transform:translateY(-7px) scale(.975);transition:opacity 240ms cubic-bezier(.22,.61,.36,1),transform 240ms cubic-bezier(.22,.61,.36,1),visibility 0s linear 240ms}
.app-header.is-scrolled .normal-brand small{opacity:0;transition:opacity 175ms cubic-bezier(.22,.61,.36,1)}
.app-header.is-scrolled .scrolled-brand{opacity:1;visibility:visible;transform:translateY(0) scale(1);letter-spacing:-.025em;transition:opacity 260ms cubic-bezier(.22,.61,.36,1) 160ms,transform 260ms cubic-bezier(.22,.61,.36,1) 160ms,letter-spacing 260ms cubic-bezier(.22,.61,.36,1) 160ms,visibility 0s linear}
.app-header.is-scrolled .color-letter{animation-name:var(--letter-animation);animation-duration:var(--cycle-duration);animation-timing-function:cubic-bezier(.22,.61,.36,1);animation-delay:var(--motion-start-delay);animation-iteration-count:infinite}
.app-header.is-scrolled .wordmark-color-layer{animation:wordmark-color-squeeze var(--cycle-duration) cubic-bezier(.22,.61,.36,1) var(--motion-start-delay) infinite}
.app-header.is-scrolled .transfer-pulse-1{animation:transfer-pulse-one var(--cycle-duration) linear var(--motion-start-delay) infinite}
.app-header.is-scrolled .transfer-pulse-2{animation:transfer-pulse-two var(--cycle-duration) linear var(--motion-start-delay) infinite}
.app-header.is-scrolled .transfer-pulse-3{animation:transfer-pulse-three var(--cycle-duration) linear var(--motion-start-delay) infinite}
.app-header.is-scrolled .transfer-pulse-4{animation:transfer-pulse-four var(--cycle-duration) linear var(--motion-start-delay) infinite}
.app-header.is-scrolled .brand-infinity{animation:infinity-pump-flip var(--cycle-duration) cubic-bezier(.4,0,.2,1) var(--motion-start-delay) infinite}
.app-header.is-scrolled .brand-infinity-track{animation:infinity-track-charge var(--cycle-duration) ease-in-out var(--motion-start-delay) infinite}
.app-header.is-scrolled .infinity-charge-1{animation:infinity-charge-one var(--cycle-duration) ease-in-out var(--motion-start-delay) infinite}
.app-header.is-scrolled .infinity-charge-2{animation:infinity-charge-two var(--cycle-duration) ease-in-out var(--motion-start-delay) infinite}
.app-header.is-scrolled .infinity-charge-3{animation:infinity-charge-three var(--cycle-duration) ease-in-out var(--motion-start-delay) infinite}
.app-header.is-scrolled .infinity-charge-4{animation:infinity-charge-four var(--cycle-duration) ease-in-out var(--motion-start-delay) infinite}
.app-header.is-scrolled .brand-infinity-active{animation:infinity-full-mark var(--cycle-duration) cubic-bezier(.22,.61,.36,1) var(--motion-start-delay) infinite}
.app-header.is-scrolled .brand-infinity-highlight{animation:infinity-inner-highlight var(--cycle-duration) ease-out var(--motion-start-delay) infinite}
.app-header.is-scrolled .brand-infinity-pulse{animation:infinity-travelling-pulse var(--cycle-duration) linear var(--motion-start-delay) infinite}
.app-header.is-scrolled .scrolled-brand .brand-infinity{opacity:1;transform:scale(1);transition-delay:210ms}
.header-icon{transition:background-color 140ms ease,box-shadow 140ms ease}
.header-icon:hover,.header-icon:focus-visible{background:#f3f3f1;box-shadow:none}
.header-icon:active{background:#ececea}
.header-actions>.avatar-small{border:1px solid #ececea;box-shadow:0 2px 8px rgba(15,23,42,.08)}
@media(max-width:430px){.app-header{left:16px;right:16px;width:auto}.header-inner{padding-left:14px;padding-right:14px}}
@media(prefers-reduced-motion:reduce){
  .color-letter,.wordmark-color-layer{animation:none!important;opacity:0!important}
  .brand-infinity{animation:none!important}
  .brand-infinity-track{animation:none!important;stroke:rgba(15,15,15,.5)!important}
  .brand-handoff-wave,.transfer-pulse,.brand-infinity-charge,.brand-infinity-active,.brand-infinity-highlight,.brand-infinity-pulse{animation:none!important;opacity:0!important}
  .normal-brand,.scrolled-brand,.normal-brand small,.scrolled-brand .brand-infinity{transform:none!important;transition:opacity 110ms linear,visibility 0s linear 110ms!important}
  .normal-brand,.app-header.is-scrolled .scrolled-brand{transition:opacity 110ms linear,visibility 0s linear!important}
}
.coub-music-link{width:23px}.coub-music-link svg{width:18px;height:18px;stroke-width:1.8}

/* Compact label visually attached to the Coub player. */
.coub-section{margin-top:10px}
.detail-copy>.detail-heading+.coub-section{margin-top:10px}
.coub-branding{margin:0 0 10px;color:#777;font-size:14px;font-weight:500;line-height:1.2;text-align:center;white-space:nowrap}
.coub-branding .coub-sound{color:#777}
.coub-branding .coub-separator{margin:0 .22em;color:#b8b8b8}
.coub-branding .coub-name{color:#2f80ed;font-weight:600}

/* Poster-backed, layout-stable loading state for first-party media. */
.media-loading{position:absolute;inset:0;z-index:2;overflow:hidden;display:grid;place-items:center;background:linear-gradient(110deg,#eeefed 25%,#f5f5f3 43%,#ebedea 61%);background-size:220% 100%;color:rgba(255,255,255,.78);opacity:1;pointer-events:none;transition:opacity 220ms ease-out}
.media-loading-active>[data-media]{opacity:0}
.media-loading-active.media-ready>[data-media]{opacity:1;transition:opacity 220ms ease-out}
.media-ready>.media-loading{opacity:0}
.media-loading:not(.has-poster){animation:loading-shimmer 2.8s ease-in-out infinite;animation-play-state:paused}
.media-loading.is-near:not(.has-poster){animation-play-state:running}
.home-gallery .media-loading.has-poster{background:transparent}
.home-gallery .media-loading-active>.home-video-preview{opacity:.82;filter:blur(8px) brightness(.72);transform:scale(1.06)}
.home-gallery .media-loading-active.media-ready>.home-video-preview{opacity:1;filter:none;transform:none;transition:opacity 260ms ease,filter 260ms ease,transform 260ms ease}
.loading-infinity{position:relative;z-index:1;width:30px;height:22px;fill:none;stroke:currentColor;stroke-width:1.55;stroke-linecap:round;stroke-linejoin:round;opacity:.45;animation:loading-infinity-pulse 1.8s ease-in-out infinite;animation-play-state:paused}
.media-loading.is-near .loading-infinity{animation-play-state:running}
@keyframes loading-infinity-pulse{0%,100%{opacity:.45;transform:scale(.96)}50%{opacity:.9;transform:scale(1.04)}}
@keyframes loading-shimmer{0%,100%{background-position:100% 0}50%{background-position:0 0}}
@media(prefers-reduced-motion:reduce){.media-loading,.loading-infinity{animation:none!important}.loading-infinity{opacity:.72;transform:none}}

/* Independent cached-image-aware reveals for avatars and AJAX Explore thumbnails. */
.dynamic-media-loading>img{opacity:0}.dynamic-media-ready>img{opacity:1;transition:opacity 220ms ease-out}.dynamic-media-ready>.media-loading{opacity:0}.avatar.avatar-image-loading img{opacity:0}.avatar.avatar-image-ready img{animation:loading-image-fade 220ms ease-out both}.media-error,.grid-error{font-size:0}.media-error::before,.grid-error::before{content:"∞";color:#aaa;font-size:28px;font-weight:400;line-height:1}.grid-error::before{font-size:22px}@keyframes loading-image-fade{from{opacity:0}to{opacity:1}}@media(prefers-reduced-motion:reduce){.dynamic-media-ready>img,.dynamic-media-ready>.media-loading{transition:none}.avatar.avatar-image-ready img{animation:none}}

/* Lightweight gallery text tabs. */
.gallery-tabs{position:relative;width:100%;height:52px;margin:1px 0 0;padding:4px 0;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));align-items:stretch;gap:0;border:0;border-radius:0;background:transparent;box-shadow:none}
.gallery-tabs a{width:100%;min-width:0;height:44px;min-height:44px;padding:0 3px;display:flex;align-items:center;justify-content:center;position:relative;border:0;border-radius:0;background:transparent;color:#8c8c8c;text-align:center;white-space:nowrap;font-size:16px;font-weight:600;line-height:1;box-shadow:none;transition:color 180ms ease-out}
.gallery-tabs a.active{background:transparent;color:#111;font-weight:700;box-shadow:none}
.gallery-tabs a.active::after{content:"";position:absolute;left:50%;right:auto;bottom:1px;width:28px;height:3px;border-radius:2px;background:var(--accent);transform:translateX(-50%)}
.gallery-tabs.gallery-indicator-ready::after{content:"";position:absolute;left:0;bottom:1px;width:28px;height:3px;border-radius:2px;background:var(--accent);transform:translate3d(var(--gallery-indicator-x,0),0,0);will-change:transform}.gallery-tabs.gallery-indicator-ready.gallery-indicator-animate::after{transition:transform 210ms cubic-bezier(.22,1,.36,1)}.gallery-tabs.gallery-indicator-ready a.active::after{display:none}.gallery-tabs a.gallery-color-from{color:#111!important}.gallery-tabs a.gallery-color-to{color:#8c8c8c!important}
.gallery-tabs a.coub-tab::before{content:"";width:5px;height:5px;margin-right:5px;flex:none;border-radius:50%;background:#2f80ed;opacity:.68}
.gallery-tabs a:active{transform:scale(.97)}
.gallery-tabs+.gallery-grid{padding-top:16px}
@media(max-width:390px){.gallery-tabs a{font-size:15.5px;letter-spacing:-.01em}}
@media(prefers-reduced-motion:reduce){.gallery-tabs a{transition:none}.gallery-tabs a:active{transform:none}.gallery-tabs.gallery-indicator-ready.gallery-indicator-animate::after{transition:none}}

/* Simple crossfade from placeholder to media. */
.media-revealing>[data-media]{animation:media-fast-fade 280ms ease-out both}
.media-fast-reveal{animation:media-fast-fade 300ms ease-out both}
@keyframes media-fast-fade{from{opacity:0}to{opacity:1}}
@media(prefers-reduced-motion:reduce){.media-revealing>[data-media],.media-fast-reveal{animation:media-fast-fade 280ms ease-out both!important;transform:none!important}}

/* Desktop-only: infinity-pump-flip owns `transform` on .brand-infinity for the whole cycle, so nudge with `top` instead to align it with the wordmark's optical center. */
@media(min-width:601px){.scrolled-brand .brand-infinity{position:relative;top:1px}}

/* Mobile header: branding yields space; controls keep their full tap targets. */
@media(max-width:600px){
  .app-header{left:8px;right:8px}
  .header-inner{display:flex;padding-left:10px;padding-right:10px;column-gap:0}
  .brand{min-width:0;width:auto;flex:1 1 auto;align-items:center;justify-content:center;overflow:hidden;text-align:center}
  .normal-brand,.scrolled-brand{width:100%;align-items:center;justify-content:center;text-align:center}
  .normal-brand{right:0;max-width:100%}
  .normal-brand strong{max-width:100%;font-size:clamp(12px,calc(6vw - 9px),18.7px);letter-spacing:-.025em;white-space:nowrap}
  .normal-brand small{width:100%;font-size:9.8px;letter-spacing:.105em;text-align:center}
  .scrolled-brand{font-size:clamp(20.5px,calc(12vw - 24px),28px);font-weight:700;line-height:1;white-space:nowrap}
  .header-actions{margin-left:20px;display:flex;align-items:center;gap:4px;flex-shrink:0}
}
@media(max-width:350px){
  .app-header{left:0;right:0}
  .header-inner{padding-left:8px;padding-right:8px}
  .scrolled-brand{font-size:20.5px}
}

/* Permalink work menu belongs to the author row. */
.work-detail>.detail-author .detail-menu{margin-left:auto;z-index:20}
.work-detail>.detail-author .detail-menu[open]{z-index:30}
.work-detail>.detail-author .detail-menu>summary{width:44px;height:44px}
.work-detail>.detail-author .detail-menu>summary svg{width:17px;height:17px}
.work-detail>.detail-author .detail-menu>div{top:44px;right:0;width:140px;z-index:30}

/* Profile grid polish and explicit single-item live preview. */
.loop-status span{display:inline-block;animation:profile-infinity-breathe 3.6s ease-in-out infinite}
.portfolio-grid{gap:6px}
.portfolio-work{position:relative;aspect-ratio:1;display:block;border-radius:11px;transform:scale(1);transition:transform 190ms ease;-webkit-touch-callout:none}
.portfolio-work>img,.portfolio-work>video{width:100%;height:100%;display:block;object-fit:cover}
.portfolio-work.preview-active{z-index:4;transform:scale(1.02)}
.portfolio-work .loop-indicator{background:rgba(15,15,15,.5);opacity:0;transition:opacity 180ms ease;backdrop-filter:none;-webkit-backdrop-filter:none;pointer-events:none}
.portfolio-work.preview-active .loop-indicator{opacity:1}
@keyframes profile-infinity-breathe{0%,100%{opacity:.65;transform:scale(.96)}50%{opacity:1;transform:scale(1.04)}}
@media(max-width:600px){.portfolio-grid{gap:5px}}
@media(prefers-reduced-motion:reduce){.loop-status span{animation:none}.portfolio-work.preview-active{transform:none}}

/* Separate fullscreen, native-scroll immersive viewer. */
.immersive-document,.immersive-body{height:100%;margin:0;background:#0b0b0c;color:#f7f7f7;overscroll-behavior:none}
.immersive-body{overflow:hidden}
.immersive-viewer{height:100dvh;overflow-x:hidden;overflow-y:auto;background:#0b0b0c;scroll-snap-type:y mandatory;overscroll-behavior-y:contain;-webkit-overflow-scrolling:touch;scrollbar-width:none}
.immersive-viewer::-webkit-scrollbar{display:none}
.immersive-work{position:relative;width:100%;min-height:100dvh;height:100dvh;overflow:hidden;background:#0b0b0c;scroll-snap-align:start;scroll-snap-stop:always}
.immersive-media{position:absolute;inset:0;display:grid;place-items:center;background:#0b0b0c}
.immersive-media video,.immersive-media>img{width:100%;height:100%;max-height:100dvh;display:block;object-fit:contain;background:#0b0b0c}
.immersive-media-error,.immersive-empty{height:100dvh;display:grid;place-items:center;color:rgba(255,255,255,.65)}
.immersive-tap-target{position:absolute;inset:0;width:100%;height:100%;padding:0;border:0;background:transparent;cursor:pointer;-webkit-tap-highlight-color:transparent}
.immersive-controls{position:absolute;inset:0;z-index:2;pointer-events:none;opacity:1;transform:translateY(0);transition:opacity 220ms ease,transform 220ms ease}
.immersive-work.controls-hidden .immersive-controls{opacity:0;transform:translateY(5px)}
.immersive-topbar,.immersive-bottombar{position:absolute;left:0;right:0;display:flex;pointer-events:none}
.immersive-topbar{top:0;align-items:center;justify-content:space-between;padding:calc(env(safe-area-inset-top) + 10px) max(14px,env(safe-area-inset-right)) 10px max(14px,env(safe-area-inset-left))}
.immersive-bottombar{bottom:0;align-items:flex-end;gap:16px;padding:16px max(18px,env(safe-area-inset-right)) calc(env(safe-area-inset-bottom) + 18px) max(18px,env(safe-area-inset-left));background:linear-gradient(to top,rgba(11,11,12,.7),transparent)}
.immersive-back,.immersive-mark,.immersive-author,.immersive-actions,.immersive-empty .immersive-back{pointer-events:auto}
.immersive-back{width:44px;height:44px;padding:0;display:grid;place-items:center;border:0;border-radius:50%;background:rgba(11,11,12,.34);color:#ff6a24;cursor:pointer}
.immersive-back svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:2}
.immersive-mark{width:44px;height:44px;display:grid;place-items:center}
.immersive-mark .brand-infinity{width:27px;height:17px;margin:0;stroke-width:1.7}.immersive-mark .brand-infinity-track{stroke:rgba(255,255,255,.45);stroke-width:1.7}.immersive-mark .brand-infinity-pulse{stroke:#fff;stroke-width:1.7;stroke-dasharray:10 90;opacity:1}
.immersive-copy{min-width:0;flex:1}.immersive-author{width:max-content;max-width:100%;display:flex;align-items:center;gap:8px;color:rgba(255,255,255,.78);font-size:14px;font-weight:600}.immersive-avatar{width:28px;height:28px;overflow:hidden;flex:none;border-radius:50%}.immersive-avatar img{width:100%;height:100%;display:block;object-fit:cover}
.immersive-copy h1{max-width:min(76vw,680px);margin:6px 0 0;overflow:hidden;text-overflow:ellipsis;color:#fff;font-size:17px;font-weight:650;line-height:1.25;white-space:nowrap}
.immersive-actions{display:flex;align-items:center;gap:10px}.immersive-actions form{margin:0}.immersive-like,.immersive-music{min-width:44px;height:48px;padding:0;display:grid;place-items:center;border:0;background:none;color:#fff;cursor:pointer}.immersive-like svg,.immersive-music svg{width:27px;height:27px;fill:none;stroke:currentColor;stroke-width:1.8}.immersive-like span{font-size:11px}.immersive-like.active{color:var(--accent)}.immersive-like.active svg{fill:currentColor}.immersive-music{color:#2f80ed}.immersive-music svg{width:24px;height:24px}
.immersive-play-blocked{position:fixed;left:50%;top:50%;z-index:4;padding:9px 13px;transform:translate(-50%,-50%);border-radius:9px;background:rgba(11,11,12,.72);color:#fff;font-size:13px;pointer-events:none}
@media(orientation:landscape) and (max-height:600px){.immersive-bottombar{padding-bottom:calc(env(safe-area-inset-bottom) + 10px)}.immersive-copy h1{font-size:15px}.immersive-author{font-size:13px}}
@media(prefers-reduced-motion:reduce){.immersive-controls{transition:none}}

/* Keep Safari's link preview off media only; surrounding text remains selectable. */
.work-media,.work-media img,.work-media video,.detail-media,.detail-media img,.detail-media video{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}
.share-button{width:44px;height:44px}

/* Home metadata Coub marker; intentionally distinct from the Like control. */
.coub-label{margin-left:auto;display:inline-block;align-self:center;flex:none;color:#2f80ed;font-size:13px;font-weight:700;line-height:1;opacity:.9;transform:rotate(-7deg);transform-origin:center;white-space:nowrap}
.coub-label+.card-menu{margin-left:0}

/* Keep Home card metadata on one balanced row in narrow grid columns. */
.home-gallery .work-byline{margin-top:3px;flex-wrap:nowrap;overflow:visible;align-items:center;gap:5px}
.home-gallery .work-byline>.author-avatar{align-self:center}
.home-gallery .work-byline>.author-avatar .avatar{background:#f4f4f2}
.home-gallery .work-byline>.author-avatar img{display:block}
.home-gallery .work-byline>.author-username{min-width:0;flex:1 1 auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.home-gallery .work-byline>time{flex:0 0 auto;align-self:center;color:var(--muted);white-space:nowrap}
.home-gallery .work-byline>.coub-label{margin-left:0;align-self:center;flex:0 0 auto;transform:none}
.home-gallery .work-byline>.card-menu{margin-left:0;align-self:center;flex:0 0 auto}
.home-gallery .work-byline>.card-menu summary{min-width:27px;min-height:27px}

/* Home Focus Mode is an isolated overlay; the gallery beneath keeps its layout. */
.focus-viewer{position:fixed;inset:0;width:100%;height:100dvh;z-index:2000;overflow:hidden;background:#000;color:#fff;opacity:0;transition:opacity 280ms ease;overscroll-behavior:none;touch-action:none}
.focus-viewer::after{content:"";position:absolute;z-index:2;left:0;right:0;bottom:0;height:min(42vh,360px);background:linear-gradient(to bottom,transparent 0%,rgba(0,0,0,.18) 30%,rgba(0,0,0,.78) 100%);pointer-events:none}
.focus-viewer.open{opacity:1}.focus-viewer.closing{pointer-events:none}
.focus-close{position:absolute;z-index:4;top:max(10px,calc(env(safe-area-inset-top) + 8px));right:max(12px,calc(env(safe-area-inset-right) + 10px));width:40px;height:40px;padding:0;display:grid;place-items:center;border:1px solid rgba(255,255,255,.15);border-radius:50%;background:rgba(22,22,24,.52);color:rgba(255,255,255,.9);box-shadow:0 5px 18px rgba(0,0,0,.24);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);cursor:pointer}
.focus-close svg{display:none}.focus-close span{margin-top:-2px;font-size:27px;font-weight:200;line-height:1}
.focus-stage{position:absolute;top:env(safe-area-inset-top);right:0;bottom:0;left:0;overflow:hidden;background:#000}
.focus-media{position:absolute;inset:0;width:100%;height:100%;min-width:0;min-height:0;overflow:hidden;background:#000;opacity:0;transform:none;transition:opacity 280ms ease,transform 280ms cubic-bezier(.22,1,.36,1)}
.focus-media.focus-media-visible{opacity:1;transform:none}.focus-media.focus-enter-next{transform:translateY(24px)}.focus-media.focus-enter-prev{transform:translateY(-24px)}
.focus-media.focus-exit-next{opacity:0;transform:translateY(-20px)}.focus-media.focus-exit-prev{opacity:0;transform:translateY(20px)}
.focus-media>img{position:absolute;inset:0;width:100%;height:100%;max-width:100%;max-height:100%;display:block;object-fit:contain;object-position:center center;background:#000;-webkit-touch-callout:none}
.focus-video-frame{position:absolute;inset:0;width:100%;height:100%;min-width:0;min-height:0;overflow:hidden;background:#000}
.focus-video-frame>video,.focus-video-poster{position:absolute;inset:0;width:100%;height:100%;max-width:100%;max-height:100%;display:block;object-fit:contain;object-position:center center;background:#000;transform:none;-webkit-touch-callout:none}
.focus-video-frame>video{z-index:1;opacity:0;pointer-events:none;transition:opacity 240ms ease}
.focus-video-poster{z-index:2;opacity:1;background:#080809;transition:opacity 240ms ease}
.focus-video-frame.focus-video-playing>video{z-index:2;opacity:1}.focus-video-frame.focus-video-playing .focus-video-poster{opacity:0;pointer-events:none}
.focus-video-loading{position:absolute;z-index:3;left:50%;top:50%;width:17px;height:17px;margin:-9px 0 0 -9px;border:1.5px solid rgba(255,255,255,.25);border-top-color:rgba(255,255,255,.78);border-radius:50%;opacity:0;pointer-events:none}
.focus-video-frame.focus-video-slow:not(.focus-video-playing):not(.focus-video-failed) .focus-video-loading{opacity:1;animation:focus-video-spin 700ms linear infinite}
@keyframes focus-video-spin{to{transform:rotate(360deg)}}
.focus-video-frame>video::-webkit-media-controls,.focus-video-frame>video::-webkit-media-controls-start-playback-button{display:none!important;-webkit-appearance:none}
.focus-footer{position:absolute;z-index:3;left:max(12px,env(safe-area-inset-left));right:max(12px,env(safe-area-inset-right));bottom:max(18px,calc(env(safe-area-inset-bottom) + 14px));width:auto;max-width:760px;min-height:92px;margin:0 auto;padding:12px 14px;display:flex;align-items:center;gap:12px;border:1px solid rgba(255,255,255,.12);border-radius:20px;background:rgba(25,25,27,.66);box-shadow:0 10px 34px rgba(0,0,0,.32),inset 0 1px 0 rgba(255,255,255,.05);backdrop-filter:blur(20px) saturate(135%);-webkit-backdrop-filter:blur(20px) saturate(135%)}
.focus-identity{min-width:0;display:flex;align-items:center;gap:8px;flex:1}.focus-identity .avatar{width:40px;height:40px}.focus-identity>div{min-width:0;flex:1}.focus-identity .author-username,.focus-identity strong{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.focus-identity .author-username{color:rgba(255,255,255,.66);font-size:11px}.focus-identity strong{margin-top:2px;color:rgba(255,255,255,.96);font-size:14px;font-weight:600}
.focus-actions{display:grid;grid-auto-flow:column;grid-auto-columns:48px;align-items:center;gap:5px;flex:none}.focus-action,.focus-detail{width:48px;height:52px;min-width:48px;min-height:52px;padding:4px 2px;display:grid;grid-template-rows:23px 12px;align-content:center;justify-items:center;row-gap:5px;border:0;border-radius:12px;background:transparent;color:rgba(255,255,255,.72);font-size:11px;line-height:1;cursor:pointer}.focus-action svg,.focus-detail svg{width:23px;height:23px;margin:0;align-self:center}.focus-like svg{stroke-width:1.55}.focus-action-label{height:12px;display:flex;align-items:baseline;justify-content:center;gap:2px;white-space:nowrap}.focus-action-label small{font-size:9px;font-weight:600}.focus-action.active{color:var(--accent)}.focus-action.active svg{fill:currentColor}.focus-save.active{color:var(--accent)}.focus-sound{color:#63a6ff}.focus-sound.active{color:#63a6ff;opacity:1}.focus-detail{color:rgba(255,255,255,.82)}
.focus-coub-indicator{position:absolute;z-index:4;top:var(--focus-coub-indicator-top,12px);left:50%;height:34px;padding:0 13px;display:inline-flex;align-items:center;gap:7px;border:1px solid rgba(99,166,255,.24);border-radius:999px;background:rgba(15,16,19,.68);box-shadow:0 4px 14px rgba(0,0,0,.18);color:rgba(255,255,255,.94);font-size:12px;font-weight:650;line-height:1;white-space:nowrap;opacity:0;transform:translate3d(-50%,-4px,0) scale(.97);transform-origin:center;pointer-events:none;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);transition:opacity 160ms ease-out,transform 160ms ease-out}.focus-coub-indicator svg{width:18px;height:18px;flex:none;color:#63a6ff;stroke-width:1.8}.focus-coub-indicator.visible{opacity:1;transform:translate3d(-50%,0,0) scale(1);transition-duration:200ms}.focus-coub-indicator.hiding{opacity:0;transform:translate3d(-50%,-2px,0) scale(.98);transition-duration:160ms}
.focus-coub-module,.focus-coub-module.open{position:absolute;inset:0;width:100%;height:100%;max-width:none;aspect-ratio:auto;background:#000}.focus-coub-module .coub-frame{position:absolute;inset:0;width:100%;height:100%;display:block;border:0;border-radius:0;background:#000}.focus-coub-module .coub-close{display:none}
.focus-like-feedback{position:absolute;left:50%;top:50%;z-index:5;width:88px;height:88px;display:grid;place-items:center;transform:translate(-50%,-50%) scale(.65);opacity:0;color:var(--accent);pointer-events:none;animation:focus-like-pop 680ms cubic-bezier(.22,1,.36,1) both}
.focus-like-feedback svg{width:88px;height:88px;fill:currentColor;stroke:rgba(255,255,255,.9);stroke-width:1.1;filter:drop-shadow(0 5px 16px rgba(0,0,0,.32))}
@keyframes focus-like-pop{0%{opacity:0;transform:translate(-50%,-50%) scale(.65)}18%{opacity:1}48%{opacity:1;transform:translate(-50%,-50%) scale(1.12)}70%{transform:translate(-50%,-50%) scale(1)}100%{opacity:0;transform:translate(-50%,-50%) scale(1)}}
body.focus-mode-open{overflow:hidden;overscroll-behavior:none}
@media(max-width:600px){.focus-footer{left:max(10px,env(safe-area-inset-left));right:max(10px,env(safe-area-inset-right));min-height:88px;padding:10px 11px;gap:8px;border-radius:18px}.focus-identity{gap:7px}.focus-identity .avatar{width:38px;height:38px}.focus-identity strong{font-size:12px}.focus-identity .author-username{font-size:10px}.focus-actions{grid-auto-columns:44px;gap:4px}.focus-action,.focus-detail{width:44px;height:50px;min-width:44px;min-height:50px;grid-template-rows:22px 12px;row-gap:5px}.focus-action svg,.focus-detail svg{width:22px;height:22px}.focus-action-label{font-size:10px}}
.focus-comments{color:rgba(255,255,255,.72)}.focus-detail .focus-action-label{font-size:10px}@media(max-width:600px){.focus-detail .focus-action-label{font-size:0}.focus-detail .focus-action-label::after{content:"Post";font-size:10px}}@media(max-width:360px){.focus-footer{gap:5px}.focus-actions{gap:2px}}
@media(prefers-reduced-motion:reduce){.focus-viewer,.focus-media,.focus-video-frame>video,.focus-video-poster{transition:opacity 1ms linear}.focus-media,.focus-media.focus-enter-next,.focus-media.focus-enter-prev,.focus-media.focus-exit-next,.focus-media.focus-exit-prev{transform:none}.focus-video-frame.focus-video-slow .focus-video-loading{animation:none}.focus-coub-indicator,.focus-coub-indicator.visible,.focus-coub-indicator.hiding{transform:translate3d(-50%,0,0);transition:opacity 1ms linear}}
@media(prefers-reduced-motion:reduce){.focus-like-feedback{transform:translate(-50%,-50%);animation:focus-like-fade 400ms linear both}@keyframes focus-like-fade{0%,100%{opacity:0}20%,65%{opacity:1}}}

.focus-swipe-hint{position:absolute;z-index:3;top:50%;right:max(18px,calc(env(safe-area-inset-right) + 10px));display:none;flex-direction:column;align-items:center;gap:5px;transform:translateY(-50%);color:#fff;opacity:0;pointer-events:none;transition:opacity 220ms ease}
.focus-swipe-hint.visible{opacity:.72}.focus-swipe-hint.hiding{opacity:0}
.focus-swipe-hint span{font-size:10px;font-weight:500;letter-spacing:.08em;line-height:1;text-transform:uppercase}
.focus-swipe-arrow{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.35;stroke-linecap:round;stroke-linejoin:round}
.focus-swipe-hint.visible .focus-swipe-arrow-up{animation:focus-hint-up 750ms ease-in-out 2 alternate}
.focus-swipe-hint.visible .focus-swipe-arrow-down{animation:focus-hint-down 750ms ease-in-out 2 alternate}
@keyframes focus-hint-up{from{transform:translateY(3px)}to{transform:translateY(-3px)}}
@keyframes focus-hint-down{from{transform:translateY(-3px)}to{transform:translateY(3px)}}
@media(hover:none) and (pointer:coarse){.focus-swipe-hint{display:flex}}
@media(prefers-reduced-motion:reduce){.focus-swipe-hint{transition:opacity 1ms linear}.focus-swipe-hint.visible .focus-swipe-arrow{animation:none}}

/* Compact, non-interactive view metadata. */
.home-gallery .card-view-count{display:inline-flex;align-items:center;gap:2px;flex:0 0 auto;color:var(--muted);font-size:10px;line-height:1;white-space:nowrap}.home-gallery .card-view-count svg{width:13px;height:13px;stroke-width:1.6}
.detail-count{min-width:0;display:flex;align-items:center;gap:10px;white-space:nowrap}.detail-view-count{display:inline-flex;align-items:center;gap:3px}.detail-view-count svg{width:14px;height:14px;stroke-width:1.6}
.focus-identity .author-username{font-size:10px}.focus-identity strong{margin-top:1px;font-size:13px}.focus-view-count{margin-top:2px;display:flex;align-items:center;gap:3px;overflow:hidden;color:rgba(255,255,255,.54);font-size:9px;line-height:1;white-space:nowrap}.focus-view-count svg{width:11px;height:11px;flex:none;stroke-width:1.6}.focus-view-count span{overflow:hidden;text-overflow:ellipsis}
@media(max-width:390px){.home-gallery .work-byline>time{display:none}}

/* Readable post-detail comments and a touch-friendly mobile composer. */
.comment-section{padding-top:20px}.comment-section h2{margin:0 0 14px;font-size:22px;font-weight:700;line-height:1.2;letter-spacing:-.02em}
.comments .comment-row{grid-template-columns:42px minmax(0,1fr) 32px;gap:12px;padding:14px 0 16px;font-size:16px}.comment-avatar.avatar-tiny{width:42px;height:42px;margin-top:1px;font-size:12px}.comment-username{font-size:16px;font-weight:600;line-height:1.25}.comment-text{margin:5px 0 0!important;color:var(--text)!important;font-size:18px;line-height:1.5}.comment-meta{min-height:20px;margin-top:6px;font-size:14px;line-height:1.3}.comments-empty{padding:16px 0!important;font-size:16px!important;line-height:1.5!important}
.comment-form{min-height:56px;margin:20px 0 4px;padding:6px 8px 6px 13px;align-items:flex-end;gap:10px;border:1px solid var(--line);border-radius:14px;background:var(--soft)}.comment-form textarea{min-height:42px;max-height:140px;padding:9px 0;overflow-y:auto;color:var(--text);font-size:17px;line-height:1.4}.comment-form textarea::placeholder{color:#aaa;font-size:17px;opacity:1}.comment-form button{min-width:48px;height:44px;padding:0 5px;color:var(--accent);font-size:17px;font-weight:600;line-height:1}
@media(max-width:390px){.comments .comment-row{grid-template-columns:40px minmax(0,1fr) 32px;gap:10px}.comment-avatar.avatar-tiny{width:40px;height:40px}.comment-form{padding-left:11px;gap:8px}}

/* One-level comment threads and reply composer context. */
.comments .comment-row{grid-template-columns:42px minmax(0,1fr) 44px}.comment-menu-toggle{width:44px;height:44px}.comment-menu-popup{top:42px;width:140px}.comment-menu-popup button,.comment-menu-popup .delete-comment{min-height:40px}
.comment-row{scroll-margin-top:110px}.comment-deep-link-highlight{animation:comment-deep-link-highlight 2s ease-out both}@keyframes comment-deep-link-highlight{0%,35%{background:rgba(255,106,36,.1);box-shadow:0 0 0 6px rgba(255,106,36,.1)}100%{background:transparent;box-shadow:0 0 0 0 rgba(255,106,36,0)}}@media(prefers-reduced-motion:reduce){.comment-deep-link-highlight{animation:comment-deep-link-highlight-reduced 2s linear both}@keyframes comment-deep-link-highlight-reduced{0%,75%{background:rgba(255,106,36,.08)}100%{background:transparent}}}
.comment-replies{min-width:0;margin-left:50px;padding-left:12px;border-left:1px solid rgba(24,24,24,.1)}.comments .comment-reply{grid-template-columns:36px minmax(0,1fr) 44px;gap:10px;padding:12px 0 14px}.comment-reply .comment-avatar.avatar-tiny{width:36px;height:36px;font-size:10px}.reply-target{margin:3px 0 1px;display:block;overflow:hidden;color:var(--muted);font-size:13px;line-height:1.25;text-overflow:ellipsis;white-space:nowrap}.comment-deleted .comment-text{color:var(--muted)!important;font-style:italic}.comment-row:target{scroll-margin-top:90px}
.reply-context{min-height:40px;margin:18px 0 -12px;padding:0 8px 0 12px;display:flex;align-items:center;justify-content:space-between;gap:10px;border:1px solid var(--line);border-radius:11px;background:#fafaf8;color:var(--muted);font-size:13px}.reply-context b{color:var(--text);font-weight:600}.cancel-reply{width:36px;height:36px;padding:0;border:0;background:transparent;color:var(--muted);font-size:24px;font-weight:300;line-height:1;cursor:pointer}
@media(max-width:390px){.comments .comment-row{grid-template-columns:40px minmax(0,1fr) 44px}.comment-replies{margin-left:42px;padding-left:9px}.comments .comment-reply{grid-template-columns:34px minmax(0,1fr) 44px;gap:8px}.comment-reply .comment-avatar.avatar-tiny{width:34px;height:34px}}

/* Static, lightweight recommendations below permalink comments. */
.related-works{min-width:0;margin-top:34px;padding:24px 0 calc(20px + env(safe-area-inset-bottom,0px));border-top:1px solid var(--line)}.related-works>h2{margin:0 0 16px;font-size:18px;line-height:1.25}.related-works-grid{min-width:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:26px 14px}.related-work-card{min-width:0}.related-work-media{width:100%;aspect-ratio:4/3;display:block;overflow:hidden;border-radius:11px;background:var(--soft)}.related-work-media img{width:100%;height:100%;display:block;object-fit:cover}.related-work-copy{min-width:0;padding-top:9px}.related-work-title{display:-webkit-box;min-width:0;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2;font-size:16px;font-weight:600;line-height:1.3}.related-work-byline{width:100%;min-width:0;margin-top:6px;display:flex;align-items:center;gap:6px;white-space:nowrap}.related-work-byline>a{min-width:0;overflow:hidden;flex:1;color:var(--muted);font-size:13px;text-overflow:ellipsis;white-space:nowrap}.related-work-meta{display:flex;align-items:center;gap:6px;flex:none;white-space:nowrap}.related-likes{display:inline-flex;align-items:center;gap:3px;flex:none;color:var(--muted);font-size:12px;font-weight:500;line-height:1;white-space:nowrap}.related-likes svg{width:15px;height:15px;flex:none;fill:none;stroke:currentColor;stroke-width:1.65}.related-coub-indicator{flex:none;color:#2f80ed;font-size:11px;font-weight:650}@media(max-width:600px){.related-works{margin-top:30px;padding-bottom:calc(var(--nav) + env(safe-area-inset-bottom,0px) + 24px)}.related-works-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 12px}}

/* Delicate comment hearts with a full mobile touch target. */
.comment-like{width:44px;height:44px;margin:-12px 0 -12px 2px;padding:0;display:inline-flex;align-items:center;justify-content:center;gap:3px;flex:none;border:0;border-radius:50%;background:transparent;color:var(--muted);font-size:13px;font-weight:600;line-height:1;cursor:pointer;-webkit-tap-highlight-color:transparent}.comment-like svg{width:19px;height:19px;flex:none;fill:none;stroke:currentColor;stroke-width:1.65}.comment-like.active{color:var(--accent)}.comment-like.active svg{fill:currentColor}.comment-like:disabled{cursor:default}.comment-like span[hidden]{display:none}

/* Safe, server-resolved comment mentions and mobile autocomplete. */
.comment-mention{color:var(--brand-blue)!important;font-weight:650}.comment-form{position:relative}.mention-suggestions{position:absolute;z-index:30;left:0;right:0;bottom:calc(100% + 6px);max-height:230px;padding:5px;overflow-y:auto;border:1px solid rgba(255,255,255,.9);border-radius:13px;background:rgba(255,255,255,.96);box-shadow:0 12px 34px rgba(0,0,0,.16);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);overscroll-behavior:contain}.reply-context:not([hidden])+.comment-form .mention-suggestions{bottom:calc(100% + 50px)}.mention-option{width:100%;min-height:44px;padding:4px 9px;display:flex;align-items:center;gap:9px;border:0;border-radius:9px;background:transparent;color:var(--text);font-size:15px;font-weight:600;text-align:left;cursor:pointer}.mention-option.active,.mention-option:active{background:var(--soft)}.mention-avatar{width:34px;height:34px;font-size:10px}

/* Lightweight cached author preview; static media only. */
.mini-profile-layer{position:fixed;z-index:90;inset:0;display:flex;align-items:flex-end;justify-content:center;padding:0 max(8px,env(safe-area-inset-right)) 0 max(8px,env(safe-area-inset-left))}.mini-profile-layer[hidden]{display:none}.mini-profile-backdrop{position:absolute;inset:0;width:100%;height:100%;padding:0;border:0;background:rgba(12,12,14,.25);opacity:0;touch-action:none;transition:opacity 240ms ease-out}.mini-profile-sheet{position:relative;width:min(100%,520px);max-height:min(60dvh,590px);padding:11px 16px calc(16px + env(safe-area-inset-bottom));overflow-y:auto;overscroll-behavior:contain;border:1px solid rgba(255,255,255,.9);border-bottom:0;border-radius:24px 24px 0 0;background:rgba(255,255,255,.97);box-shadow:0 -14px 44px rgba(0,0,0,.18);opacity:.9;transform:translate3d(0,18px,0);transition:transform 250ms cubic-bezier(.22,1,.36,1),opacity 220ms ease-out;-webkit-overflow-scrolling:touch}.mini-profile-layer.open .mini-profile-backdrop{opacity:1}.mini-profile-layer.open .mini-profile-sheet{opacity:1;transform:translate3d(0,0,0)}.mini-profile-handle{width:38px;height:4px;margin:0 auto 8px;border-radius:3px;background:#d1d1cf}.mini-profile-close{position:absolute;z-index:2;top:10px;right:11px;width:44px;height:44px;padding:0;border:0;border-radius:50%;background:transparent;color:var(--accent);font-size:27px;font-weight:500;line-height:1;cursor:pointer;transition:opacity 100ms ease-out}.mini-profile-close:active{opacity:.58}.mini-profile-body{min-height:190px}.mini-profile-header{padding:7px 48px 0 0;display:flex;align-items:center;gap:13px}.mini-profile-avatar{width:70px;height:70px;flex:none;font-size:20px}.mini-profile-identity{min-width:0}.mini-profile-identity h2{margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:20px;line-height:1.2;letter-spacing:-.02em}.mini-profile-username{display:block;margin-top:2px;overflow:hidden;color:var(--muted);font-size:13px;font-weight:600;text-overflow:ellipsis;white-space:nowrap}.mini-profile-identity p{margin:7px 0 0;display:-webkit-box;overflow:hidden;color:#555;font-size:13px;line-height:1.35;overflow-wrap:anywhere;-webkit-box-orient:vertical;-webkit-line-clamp:3}.mini-profile-stats{margin:17px 0 14px;padding:11px 4px;display:grid;grid-template-columns:repeat(3,1fr);border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.mini-profile-stats div{text-align:center}.mini-profile-stats dd{margin:0;font-size:17px;font-weight:700;line-height:1.15}.mini-profile-stats dt{margin-top:2px;color:var(--muted);font-size:10px}.mini-profile-works{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.mini-profile-works a{aspect-ratio:1;display:block;overflow:hidden;border-radius:12px;background:var(--soft)}.mini-profile-works img,.mini-profile-work-fallback{width:100%;height:100%;display:grid;place-items:center;object-fit:cover}.mini-profile-work-fallback{color:#aaa;font-size:30px}.mini-profile-actions{margin-top:15px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.mini-profile-actions.single{grid-template-columns:1fr}.mini-profile-actions .button{width:100%;min-height:44px}.mini-profile-loading{min-height:190px;padding-top:18px;display:flex;align-items:flex-start;gap:13px}.mini-profile-loading>div{min-width:0;flex:1;padding-top:10px}.mini-profile-loading strong{display:block;font-size:17px}.mini-profile-loading span:not(.avatar){display:block;width:75%;height:11px;margin-top:12px;border-radius:6px;background:var(--soft)}.mini-profile-error{min-height:190px;display:grid;place-items:center;align-content:center;gap:15px;text-align:center}.mini-profile-error h2{margin:0;font-size:17px}.mini-profile-error .button{min-height:44px}@media(max-width:390px){.mini-profile-sheet{padding-inline:13px}.mini-profile-avatar{width:64px;height:64px}.mini-profile-header{gap:11px}.mini-profile-identity h2{font-size:18px}}@media(prefers-reduced-motion:reduce){.mini-profile-backdrop,.mini-profile-sheet{transition:opacity 1ms linear}.mini-profile-sheet{transform:none}.mini-profile-layer.open .mini-profile-sheet{transform:none}}

.mini-profile-actions .button{height:44px;min-height:44px;padding:0 12px;border-radius:10px;font-weight:600;line-height:1;transition:opacity 90ms ease-out,transform 90ms ease-out}.mini-profile-actions .mini-profile-full,.mini-profile-actions .mini-profile-follow.secondary{border-color:var(--line);background:#fff;color:var(--text)}.mini-profile-actions .button:active{opacity:.82;transform:scale(.98)}@media(prefers-reduced-motion:reduce){.mini-profile-actions .button{transition:opacity 1ms linear}.mini-profile-actions .button:active{transform:none}}

/* Compositor-only mini-profile lifecycle: open, close and swipe settle. */
.mini-profile-backdrop{opacity:0;transition:opacity 290ms ease-out}.mini-profile-sheet{opacity:0;transform:translate3d(0,28px,0);transition:transform 360ms cubic-bezier(.22,1,.36,1),opacity 360ms cubic-bezier(.22,1,.36,1)}.mini-profile-layer.open .mini-profile-backdrop{opacity:1}.mini-profile-layer.open .mini-profile-sheet{opacity:1;transform:translate3d(0,0,0)}.mini-profile-layer.closing .mini-profile-backdrop{opacity:0;transition-duration:270ms}.mini-profile-layer.closing .mini-profile-sheet{opacity:0;transform:translate3d(0,20px,0);transition:transform 270ms cubic-bezier(.22,1,.36,1),opacity 270ms ease-out}.mini-profile-layer.animating .mini-profile-sheet,.mini-profile-sheet.dragging{will-change:transform,opacity}.mini-profile-sheet.dragging{transition:none!important}
.mini-profile-loading{min-height:0;padding:0;display:block}.mini-profile-loading .mini-profile-header{min-height:70px}.mini-profile-loading-copy{padding-top:9px}.mini-profile-loading-copy>span{width:72%!important;height:10px!important;margin-top:10px!important}.mini-profile-loading-stats{height:64px;margin:17px 0 14px;padding:11px 4px;display:grid;grid-template-columns:repeat(3,1fr);gap:18px;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.mini-profile-loading-stats span{width:38px!important;height:26px!important;margin:auto!important;border-radius:8px!important;background:var(--soft)}.mini-profile-loading>.mini-profile-loading-works,.mini-profile-loading>.mini-profile-loading-actions{padding-top:0;flex:none}.mini-profile-loading-works span{width:auto!important;height:auto!important;margin:0!important;aspect-ratio:1;border-radius:12px;background:var(--soft)}.mini-profile-loading-actions span{width:100%!important;height:44px!important;margin:0!important;border:1px solid var(--line);border-radius:10px;background:var(--soft)}
@media(prefers-reduced-motion:reduce){.mini-profile-sheet,.mini-profile-layer.open .mini-profile-sheet,.mini-profile-layer.closing .mini-profile-sheet{transform:none;transition:opacity 80ms linear}.mini-profile-backdrop,.mini-profile-layer.closing .mini-profile-backdrop{transition:opacity 80ms linear}}

/* Search V1 overlay: grouped people, static works and existing categories. */
.search-overlay{position:fixed;z-index:80;inset:0;padding:0 max(0px,env(safe-area-inset-right)) 0 max(0px,env(safe-area-inset-left));background:rgba(245,245,243,.96);opacity:0;transition:opacity 160ms ease-out;backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px)}.search-overlay.open{opacity:1}.search-dialog{width:min(100%,720px);height:100dvh;max-height:100dvh;margin:0 auto;display:flex;flex-direction:column;background:#fff;box-shadow:0 0 38px rgba(0,0,0,.08)}.search-dialog-head{padding:calc(9px + env(safe-area-inset-top)) 12px 9px;display:flex;align-items:center;gap:7px;flex:none;border-bottom:1px solid var(--line)}.search-dialog-close{width:44px;height:44px;padding:0;display:grid;place-items:center;flex:none;border:0;border-radius:50%;background:transparent;color:var(--text);font-size:35px;font-weight:300;line-height:1;cursor:pointer}.search-input-wrap{min-width:0;height:44px;display:flex;align-items:center;gap:8px;flex:1;padding:0 5px 0 12px;border:1px solid var(--line);border-radius:12px;background:var(--soft)}.search-input-wrap>svg{width:18px;height:18px;flex:none;color:var(--muted)}.search-input-wrap input{min-width:0;height:42px;padding:0;flex:1;border:0;outline:0;background:transparent;color:var(--text);font-size:16px;line-height:1}.search-input-wrap input::-webkit-search-cancel-button{-webkit-appearance:none}.search-input-wrap input::placeholder{color:#999}.search-input-clear{width:44px;height:44px;padding:0;flex:none;border:0;background:transparent;color:var(--muted);font-size:23px;line-height:1;cursor:pointer}.search-progress{height:2px;flex:none;background:var(--accent);opacity:0;transform:scaleX(.18);transform-origin:left;transition:opacity 100ms ease-out,transform 500ms ease-out}.search-progress.visible{opacity:.72;transform:scaleX(.72)}.search-results{min-height:0;padding:4px 16px calc(24px + env(safe-area-inset-bottom));overflow-y:auto;flex:1;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}.search-group{padding:16px 0 4px}.search-group-title{margin:0 0 8px;color:var(--text);font-size:16px;font-weight:700;line-height:1.25}.search-person-row{min-height:60px;display:flex;align-items:center;gap:10px;border-bottom:1px solid var(--line)}.search-person-link{min-width:0;min-height:56px;display:flex;align-items:center;gap:10px;flex:1}.search-person-avatar{width:44px;height:44px;flex:none;font-size:12px}.search-person-link>span:last-child{min-width:0}.search-person-link strong,.search-person-link small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.search-person-link strong{font-size:14px;font-weight:650}.search-person-link small{margin-top:2px;color:var(--muted);font-size:11px}.search-follow{min-width:82px!important;min-height:44px!important;height:44px;padding:0 11px!important;border-radius:10px!important;font-size:11px!important}.search-work-row{min-height:80px;padding:6px 0;display:flex;align-items:center;gap:11px;border-bottom:1px solid var(--line)}.search-work-thumb{width:68px;height:68px;display:grid;place-items:center;flex:none;overflow:hidden;border-radius:11px;background:var(--soft)}.search-work-thumb img{width:100%;height:100%;display:block;object-fit:cover}.search-work-fallback{color:#aaa;font-size:28px}.search-work-copy{min-width:0;display:block}.search-work-copy>strong,.search-work-copy>small,.search-work-meta{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.search-work-copy>strong{font-size:14px;font-weight:650}.search-work-copy>small{margin-top:3px;color:#666;font-size:11px}.search-work-meta{margin-top:4px;color:var(--muted);font-size:10px}.search-tag-list{display:flex;flex-wrap:wrap;gap:7px}.search-tag-list a{min-height:44px;padding:0 12px;display:inline-flex;align-items:center;border:1px solid var(--line);border-radius:10px;background:#fff;color:#555;font-size:13px;font-weight:600}.search-no-results,.search-start-hint{margin:0;padding:34px 3px;color:var(--muted);font-size:13px}.search-no-results strong,.search-no-results span{display:block}.search-no-results strong{color:var(--text);font-size:15px}.search-no-results span{margin-top:5px}.search-recents>div{min-height:48px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}.search-recents>div:first-child{min-height:36px;border:0}.search-recents>div:first-child button{min-height:36px;color:var(--accent);font-size:11px}.search-recents>div>button{min-height:44px;padding:0;border:0;background:transparent;text-align:left;font-size:14px;cursor:pointer}.search-recents>div>button:first-child{min-width:0;flex:1}.search-recents .search-recent-remove{width:44px;flex:none;color:var(--muted);font-size:21px;text-align:center}@media(max-width:390px){.search-results{padding-inline:13px}.search-dialog-head{padding-inline:8px}.search-person-row{gap:7px}.search-follow{min-width:76px!important}}@media(prefers-reduced-motion:reduce){.search-overlay,.search-progress{transition:opacity 1ms linear}}

/* Keep Explore/Search card metadata on one compact line. */
.explore-results-grid .work-byline,.search-results-grid .work-byline{flex-wrap:nowrap;align-items:center}.explore-results-grid .work-byline>.author-username,.search-results-grid .work-byline>.author-username{min-width:0;flex:1 1 auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.explore-results-grid .work-byline>time,.search-results-grid .work-byline>time,.explore-results-grid .work-byline>.coub-label,.search-results-grid .work-byline>.coub-label,.explore-results-grid .work-byline>.card-menu,.search-results-grid .work-byline>.card-menu{flex:0 0 auto;white-space:nowrap}.explore-results-grid .card-view-count,.search-results-grid .card-view-count{display:inline-flex;align-items:center;gap:3px;flex:0 0 auto;color:var(--muted);font-size:12px;line-height:1;white-space:nowrap}.explore-results-grid .card-view-count svg,.search-results-grid .card-view-count svg{width:17px;height:17px;flex:none;stroke-width:1.6}

/* Progressive-enhancement controls for the existing Explore GET form. */
.explore-live-search{position:relative;width:100%;padding-right:4px}.explore-live-search .explore-search-clear{width:44px;height:44px;margin:0;padding:0;display:grid;place-items:center;flex:none;border:0;border-radius:50%;background:transparent;color:var(--muted);font-size:23px;font-weight:400;line-height:1;cursor:pointer}.explore-live-search.searching:after{content:"";position:absolute;left:12px;right:12px;bottom:-3px;height:2px;border-radius:2px;background:var(--accent);opacity:.55;transform-origin:left;animation:explore-search-progress 800ms ease-in-out infinite}.explore-live-results{min-height:90px}@keyframes explore-search-progress{0%{transform:scaleX(.12);opacity:.25}55%{transform:scaleX(.72);opacity:.65}100%{transform:scaleX(1);opacity:0}}@media(prefers-reduced-motion:reduce){.explore-live-search.searching:after{animation:none;transform:scaleX(.45);opacity:.45}}

/* Compact, unified profile header without changing profile tabs or works. */
.portfolio-head{padding-top:18px;padding-bottom:12px;row-gap:8px;column-gap:13px;align-items:center}.portfolio-identity h1{line-height:1.15}.portfolio-identity>span{display:block;margin-top:1px}.portfolio-head .loop-status{margin-top:5px;color:var(--muted);font-size:11px;line-height:1.2}.portfolio-head .loop-status span{margin-right:3px;color:var(--muted);font-size:13px}.portfolio-head .portfolio-stats{width:100%;margin:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0}.portfolio-head .portfolio-stats>div,.portfolio-head .portfolio-stats>a{position:relative;min-width:0;min-height:44px;padding:0 5px;display:flex;flex-direction:row;align-items:center;justify-content:center;gap:4px;border-radius:9px;white-space:nowrap}.portfolio-head .portfolio-stats>:not(:last-child):after{content:"·";position:absolute;right:-2px;color:#c1c1be;font-size:12px}.portfolio-head .portfolio-stats dd{font-size:14px;line-height:1;font-weight:700}.portfolio-head .portfolio-stats dt{color:var(--muted);font-size:10px;line-height:1}.portfolio-head .portfolio-stats>a{cursor:pointer}.portfolio-head .portfolio-stats>a:active{background:var(--soft)}.portfolio-head .portfolio-action{margin-top:0}.portfolio-head .profile-edit-button{width:min(100%,240px);min-height:44px;border-color:var(--line);border-radius:10px;background:#fff;color:var(--text);font-weight:600}@media(min-width:601px){.portfolio-head .profile-edit-button{width:180px}}@media(max-width:600px){.portfolio-head{padding-top:16px;padding-bottom:10px;row-gap:7px}.portfolio-head .portfolio-action,.portfolio-head .portfolio-action .profile-edit-button{width:100%}}

/* Compact real comment counts in existing card metadata rows. */
.card-comment-count{min-width:0;min-height:27px;padding:0 1px;display:inline-flex;align-items:center;justify-content:center;gap:3px;flex:0 0 auto;color:var(--muted);font-size:12px;font-weight:500;line-height:1;white-space:nowrap}.card-comment-count svg{width:17px;height:17px;flex:none;stroke-width:1.6}.card-comment-count:active{opacity:.62}.home-gallery .work-byline>.card-comment-count,.explore-results-grid .work-byline>.card-comment-count,.search-results-grid .work-byline>.card-comment-count{margin-left:0;align-self:center}.saved-grid .saved-meta-right>.card-comment-count{flex:0 0 auto}@media(max-width:390px){.gallery-grid .work-byline.has-comment-count>time{display:none}.home-gallery .work-byline,.explore-results-grid .work-byline,.search-results-grid .work-byline{gap:4px}.saved-grid .work-byline{gap:4px}.saved-grid .saved-meta-right{gap:5px}}

/* Saved-only metadata groups: flexible identity, fixed actions. */
.saved-grid .work-byline{min-width:0;display:flex;align-items:center;gap:8px;flex-wrap:nowrap}.saved-grid .saved-meta-left{min-width:0;display:flex;align-items:center;gap:5px;flex:1 1 auto}.saved-grid .saved-meta-left>.author-avatar{flex:0 0 auto}.saved-grid .saved-meta-left>.author-username{min-width:0;flex:1 1 auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.saved-grid .saved-meta-left>time{flex:0 0 auto;white-space:nowrap}.saved-grid .saved-meta-right{display:inline-flex;align-items:center;gap:8px;flex:0 0 auto;white-space:nowrap}.saved-grid .card-view-count{display:inline-flex;align-items:center;gap:3px;flex:0 0 auto;color:var(--muted);font-size:12px;line-height:1;white-space:nowrap}.saved-grid .card-view-count svg{width:17px;height:17px;flex:none;stroke-width:1.6}.saved-grid .saved-meta-right>.coub-label,.saved-grid .saved-meta-right>.card-menu{margin-left:0;flex:0 0 auto}.saved-grid .saved-meta-right>.card-menu summary{min-width:27px;min-height:27px}

/* Pinned works stay in the existing grid; only their small marker is polished. */
.portfolio-work-shell .profile-pin-indicator{top:8px;right:auto;bottom:auto;left:8px;width:28px;height:28px;border-color:rgba(255,255,255,.34);background:rgba(24,24,24,.48);color:var(--accent);box-shadow:0 2px 8px rgba(0,0,0,.1);animation:profile-pin-indicator-in 200ms ease-out both;backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px)}.portfolio-work-shell .profile-pin-indicator svg{width:15px;height:15px;stroke-width:2}.portfolio-work-shell.has-privacy-badge .profile-pin-indicator{top:39px}@keyframes profile-pin-indicator-in{from{opacity:0;transform:scale(.94)}to{opacity:1;transform:scale(1)}}@media(prefers-reduced-motion:reduce){.portfolio-work-shell .profile-pin-indicator{animation:none}}

/* Profile-only pinned work controls; grid geometry stays square. */
/* Compact Profile Works context menu; the existing open z-index remains unchanged. */
.profile-work-menu.profile-work-menu>div{top:40px;width:220px;padding:4px;border-radius:15px;box-shadow:0 8px 24px rgba(18,18,18,.11);transition:opacity 125ms ease-out,transform 125ms ease-out}.profile-work-menu[open]:not(.closing)>div{animation:profile-menu-in 165ms ease-out both}.profile-work-menu.closing>div{opacity:0;transform:translateY(-2px) scale(.97)}.profile-work-menu a,.profile-work-menu button{height:49px;padding:0 12px;border-radius:10px;font-size:13px}.profile-work-menu a:hover,.profile-work-menu button:hover,.profile-work-menu a:active,.profile-work-menu button:active{background:#f5f5f3}@keyframes profile-menu-in{from{opacity:0;transform:translateY(-2px) scale(.97)}to{opacity:1;transform:translateY(0) scale(1)}}@media(max-width:600px){.profile-work-menu.menu-viewport-positioned>div{position:fixed;right:auto;left:var(--profile-menu-left);top:var(--profile-menu-top)}}@media(prefers-reduced-motion:reduce){.profile-work-menu[open]:not(.closing)>div{animation:none}.profile-work-menu.profile-work-menu>div{transition:none}}
.portfolio-work-shell{position:relative;min-width:0;aspect-ratio:1}.portfolio-work-shell>.portfolio-work{width:100%;height:100%;aspect-ratio:1}.profile-work-menu{position:absolute;z-index:5;top:5px;right:5px;margin:0}.profile-work-menu[open]{z-index:6}.profile-work-menu summary{width:32px;height:32px;border:1px solid rgba(255,255,255,.28);border-radius:50%;background:rgba(18,18,18,.5);color:#fff;backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px)}.profile-work-menu summary svg{width:17px}.profile-work-menu>div{top:34px;width:150px}.profile-pin-indicator{position:absolute;z-index:4;left:6px;bottom:6px;width:22px;height:22px;display:grid;place-items:center;border:1px solid rgba(255,255,255,.3);border-radius:50%;background:rgba(18,18,18,.46);color:#fff;pointer-events:none;backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px)}.profile-pin-indicator svg{width:12px;height:12px;stroke-width:2}.profile-work-shell.is-pinned>.portfolio-work{box-shadow:inset 0 0 0 1px rgba(255,255,255,.16)}

/* Mobile-first creator insights; no dashboard framework or video loads. */
.profile-owner-actions{display:flex;flex-wrap:wrap;gap:8px}.profile-owner-actions .button{min-width:108px}.button.profile-logout-button{border-color:var(--accent);color:var(--accent)}.insights-page{width:min(100%,720px);margin:0 auto;padding-bottom:calc(var(--nav) + env(safe-area-inset-bottom,0px) + 20px)}.insights-head{padding:18px 0 16px;display:flex;align-items:flex-end;justify-content:space-between;gap:14px}.insights-head h1{margin:0;font-size:25px;letter-spacing:-.03em}.insights-head p,.insights-card header p{margin:3px 0 0;color:var(--muted);font-size:11px}.insights-period{padding:3px;display:flex;flex:none;border:1px solid var(--line);border-radius:11px;background:var(--soft)}.insights-period a{min-height:36px;padding:0 11px;display:flex;align-items:center;border-radius:8px;color:var(--muted);font-size:11px;font-weight:650}.insights-period a.active{background:#fff;color:var(--text);box-shadow:0 1px 4px rgba(0,0,0,.08)}.insights-overview{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.insight-metric{min-width:0;min-height:86px;padding:12px 14px;border:1px solid var(--line);border-radius:15px;background:#fff}.insight-metric>span{display:block;color:var(--muted);font-size:12px;font-weight:600}.insight-metric>strong{display:block;margin-top:5px;font-size:24px;line-height:1;letter-spacing:-.03em}.insight-metric>small{display:block;margin-top:7px;overflow:hidden;color:#777;font-size:10px;text-overflow:ellipsis;white-space:nowrap}.insight-metric>small.up{color:#99704e}.insight-metric>small.down{color:#876c68}.insight-metric:nth-child(5){grid-column:1/-1;min-height:64px;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;column-gap:14px}.insight-metric:nth-child(5)>strong{grid-column:2;grid-row:1;margin:0;font-size:25px}.insight-metric:nth-child(5)>small{grid-column:1/-1;margin-top:3px}.insights-card{margin-top:12px;padding:16px;border:1px solid var(--line);border-radius:16px;background:#fff}.insights-card header h2{margin:0;font-size:16px}.insights-chart svg{width:100%;height:108px;margin-top:9px;display:block;overflow:visible}.insights-chart line{stroke:var(--line);stroke-width:1}.insights-chart polyline{fill:none;stroke:var(--accent);stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke}.chart-labels{display:flex;justify-content:space-between;color:var(--muted);font-size:10px}.top-works>div{margin-top:7px}.top-work-row{min-width:0;min-height:78px;padding:7px 0;display:flex;align-items:center;gap:11px;border-bottom:1px solid var(--line)}.top-work-row:last-child{border-bottom:0}.top-work-row>img{width:66px;height:66px;flex:none;object-fit:cover;border-radius:11px;background:var(--soft)}.top-work-row>span{min-width:0;flex:1}.top-work-row>span strong,.top-work-row>span small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.top-work-row>span strong{font-size:13px}.top-work-row>span small{margin-top:2px;color:var(--muted);font-size:9px}.top-work-row>span em{display:block;margin-top:5px;color:var(--muted);font-size:10px;font-style:normal;line-height:1.45}.top-work-row>span em b{color:#666;font-weight:650}.top-works-empty{min-height:88px!important;display:grid;place-items:center;align-content:center;text-align:center}.top-works-empty strong{font-size:13px}.top-works-empty span{margin-top:4px;color:var(--muted);font-size:10px}.insights-disclosure{max-width:520px;margin:11px 3px 0;color:var(--muted);font-size:10px;line-height:1.35}.insights-empty{min-height:48svh;padding:48px 18px;display:grid;place-items:center;align-content:center;text-align:center}.insights-empty>span{color:var(--accent);font-size:34px;font-weight:300}.insights-empty h2{margin:9px 0 0;font-size:18px}.insights-empty p{margin:6px 0 0;color:var(--muted);font-size:12px}.insights-empty small{margin-top:12px;color:#aaa;font-size:9px}@media(max-width:390px){.insights-head{align-items:flex-start;flex-direction:column}.insights-period{width:100%}.insights-period a{flex:1;justify-content:center}.insight-metric{padding:11px 12px}}@media(min-width:601px){.insights-chart svg{height:140px}}

/* Reusable toast state refinements. */
.toast{transition-duration:160ms}.toast.visible{transition-duration:200ms}.toast-error .toast-icon{display:none}.toast-error{color:#a33e16}

/* Compact Insights V2 presentation. */
.insights-page{padding-bottom:calc(var(--nav) + env(safe-area-inset-bottom,0px) + 20px)}.insights-head{padding:10px 0 10px;display:flex;align-items:stretch;flex-direction:column;gap:8px}.insights-head h1{font-size:23px}.insights-head p{margin-top:1px}.insights-period{width:100%;padding:2px}.insights-period a{min-height:36px;flex:1;justify-content:center}.insights-metrics-panel{overflow:hidden;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));border:1px solid var(--line);border-radius:16px;background:#fff}.insights-metrics-panel article{position:relative;min-width:0;min-height:62px;padding:10px 13px}.insights-metrics-panel article:nth-child(odd){border-right:1px solid var(--line)}.insights-metrics-panel article:nth-child(-n+2){border-bottom:1px solid var(--line)}.insights-metrics-panel span,.insights-secondary-row span{display:block;color:var(--muted);font-size:11px;font-weight:600}.insights-metrics-panel strong,.insights-secondary-row strong{display:block;margin-top:3px;font-size:21px;line-height:1;letter-spacing:-.025em}.insights-metrics-panel small{position:absolute;right:11px;bottom:10px;color:#777;font-size:9px}.insights-metrics-panel small.up{color:#99704e}.insights-metrics-panel small.down{color:#876c68}.insights-secondary-row{min-width:0;min-height:61px;margin-top:8px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));border:1px solid var(--line);border-radius:15px;background:#fff}.insights-secondary-row article{position:relative;min-width:0;padding:11px 13px}.insights-secondary-row article+article{border-left:1px solid var(--line)}.insights-secondary-row small{position:absolute;right:12px;bottom:11px;color:var(--muted);font-size:9px}.insights-card{margin-top:9px;padding:13px 14px;border-radius:15px}.insights-chart svg{height:92px;margin-top:5px}.chart-labels{font-size:9px}.chart-peak{margin:4px 0 0;color:var(--muted);font-size:9px}.insights-disclosure{margin:7px 3px 0;font-size:9px;line-height:1.3}.top-works{margin-top:9px}.top-works>div{margin-top:4px}.top-work-row{min-height:68px;padding:5px 0;gap:8px}.top-work-row>img{width:58px;height:58px;border-radius:10px}.top-work-rank{width:18px;flex:none;color:#aaa;font-size:11px;font-weight:650;text-align:center}.top-work-row>span strong{font-size:12px}.top-work-row>span em{margin-top:3px;font-size:9px;line-height:1.35}.top-works-empty{min-height:72px!important}.insights-card header h2{font-size:15px}.insights-card header p{margin-top:2px;font-size:10px}@media(max-width:390px){.insights-head{padding-top:8px}.insights-metrics-panel article{padding-inline:11px}.insights-secondary-row article{padding-inline:11px}}@media(min-width:601px){.insights-head{padding-top:14px}.insights-chart svg{height:112px}}

/* Ultra-compact Insights: density comes from spacing, never global font scaling. */
.insights-head{padding:6px 0 7px;gap:5px}.insights-head h1{font-size:22px;line-height:1.08}.insights-head p{line-height:1.2}.insights-period a{min-height:34px}.insights-metrics-panel article{min-height:46px;padding:6px 11px}.insights-metrics-panel strong,.insights-secondary-row strong{margin-top:2px;font-size:20px}.insights-metrics-panel small{right:9px;bottom:6px;font-size:8px}.insights-secondary-row{min-height:56px;margin-top:6px}.insights-secondary-row article{padding:8px 11px}.insights-secondary-row small{right:10px;bottom:7px;font-size:8px}.insights-card{margin-top:7px;padding:10px 12px}.insights-chart svg{height:112px;margin-top:3px}.insights-chart.zero-data svg{height:64px}.chart-peak{margin-top:2px}.insights-disclosure{margin:5px 2px 0;line-height:1.25}.top-works{margin-top:7px}.top-works>div{margin-top:2px}.top-work-row{min-height:60px;padding:3px 0;gap:7px}.top-work-row>img{width:54px;height:54px;border-radius:9px}.top-work-rank{width:16px;font-size:10px}.top-work-row>span strong{line-height:1.2}.top-work-row>span em{margin-top:2px;line-height:1.3}.top-works-empty{min-height:62px!important}@media(max-width:390px){.insights-head{padding-top:5px}.insights-metrics-panel article,.insights-secondary-row article{padding-inline:9px}}@media(min-width:601px){.insights-head{padding-top:10px}.insights-chart svg{height:128px}.insights-chart.zero-data svg{height:70px}}

/* Insights mobile density pass: compact structure with data-responsive chart space. */
.insights-head{padding:3px 0 5px;gap:3px}.insights-period a{min-height:32px}.insights-metrics-panel article{min-height:40px;padding:4px 10px}.insights-metrics-panel strong{margin-top:1px}.insights-metrics-panel small{bottom:4px}.insights-secondary-row{min-height:48px;margin-top:5px}.insights-secondary-row article{padding:6px 10px}.insights-secondary-row small{bottom:5px}.insights-card{margin-top:6px;padding:9px 11px}.insights-chart svg{height:112px;margin-top:2px}.insights-chart.low-data svg{height:78px}.insights-chart.zero-data svg{height:58px}.insights-disclosure{margin:4px 2px 0;line-height:1.2}.top-works{margin-top:6px}.top-works>div{margin-top:1px}.top-work-row{min-height:60px;padding:3px 0}.top-work-row>span em{line-height:1.25}@media(max-width:390px){.insights-head{padding-top:3px}}@media(min-width:601px){.insights-head{padding-top:8px}.insights-chart svg{height:128px}.insights-chart.low-data svg{height:86px}.insights-chart.zero-data svg{height:64px}}

/* Final mobile chart density: preserve metrics and tighten only the chart-to-ranking flow. */
.insights-chart{margin-top:5px;padding-block:7px}.insights-chart header p{margin-top:1px}.insights-chart svg{height:88px;margin-top:1px}.insights-chart.low-data svg{height:58px}.insights-chart.zero-data svg{height:44px}.insights-chart .chart-labels{line-height:1.1}.insights-chart .chart-peak{margin-top:1px;line-height:1.15}.insights-disclosure{margin:8px 2px 0;line-height:1.18}.top-works{margin-top:10px}.top-works>div{margin-top:1px}.top-work-row{padding-block:2px}@media(min-width:601px){.insights-chart svg{height:104px}.insights-chart.low-data svg{height:68px}.insights-chart.zero-data svg{height:52px}}

/* Individual work Insights V1: compact, static-media, owner-only analytics presentation. */
.work-insights-page{width:min(100%,720px);margin:0 auto;padding:6px 0 calc(var(--nav) + env(safe-area-inset-bottom,0px) + 20px)}.work-insights-head{display:grid;grid-template-columns:72px 1fr 72px;align-items:center;min-height:38px}.work-insights-head>a{color:var(--muted);font-size:12px;font-weight:650}.work-insights-head h1{grid-column:2;margin:0;text-align:center;font-size:20px;letter-spacing:-.025em}.work-insights-identity{min-width:0;margin-top:6px;padding:9px;display:flex;align-items:center;gap:10px;border:1px solid var(--line);border-radius:14px;background:#fff}.work-insights-identity>img,.work-insights-no-preview{width:58px;height:58px;flex:none;border-radius:10px;background:var(--soft);object-fit:cover}.work-insights-no-preview{display:grid;place-items:center;color:var(--accent);font-size:24px}.work-insights-identity>div{min-width:0;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:3px 10px}.work-insights-identity strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px}.work-insights-identity span{grid-column:1;color:var(--muted);font-size:10px}.work-insights-identity a{grid-column:2;grid-row:1/3;color:var(--accent);font-size:11px;font-weight:650}.work-insights-period{margin-top:7px}.work-insights-metrics{margin-top:7px;overflow:hidden;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));border:1px solid var(--line);border-radius:15px;background:#fff}.work-insights-metrics article{position:relative;min-width:0;min-height:48px;padding:7px 11px}.work-insights-metrics article:nth-child(odd){border-right:1px solid var(--line)}.work-insights-metrics article:not(:nth-last-child(-n+2)){border-bottom:1px solid var(--line)}.work-insights-metrics span{display:block;color:var(--muted);font-size:10px;font-weight:600}.work-insights-metrics strong{display:block;margin-top:2px;font-size:20px;line-height:1}.work-insights-metrics small{position:absolute;right:9px;bottom:7px;color:#88766d;font-size:8px}.work-insights-interactions{min-height:42px;margin:6px 0 0;padding:7px 11px;display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr) auto;align-items:center;gap:6px;border:1px solid var(--line);border-radius:13px;background:#fff}.work-insights-interactions span{color:var(--muted);font-size:10px}.work-insights-interactions span:nth-of-type(2){margin-left:8px}.work-insights-interactions strong{font-size:15px}.work-insights-card{margin-top:7px;padding:10px 11px;border:1px solid var(--line);border-radius:15px;background:#fff}.work-insights-card header h2{margin:0;font-size:15px}.work-insights-card header p{margin:1px 0 0;color:var(--muted);font-size:9px}.work-insights-chart svg{width:100%;height:82px;margin-top:2px;display:block;overflow:visible}.work-insights-chart line{stroke:var(--line);stroke-width:1}.work-insights-chart polyline{fill:none;stroke:var(--accent);stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke}.work-insights-chart .chart-peak{margin-top:2px}.traffic-list{margin-top:5px}.traffic-list>div{min-height:29px;display:grid;grid-template-columns:92px minmax(0,1fr) 34px;align-items:center;gap:8px;border-bottom:1px solid var(--line);font-size:10px}.traffic-list>div:last-child{border-bottom:0}.traffic-list strong{text-align:right;font-size:10px}.traffic-bar{height:4px;overflow:hidden;border-radius:999px;background:var(--soft)}.traffic-bar i{height:100%;display:block;border-radius:inherit;background:var(--accent)}.work-insights-empty{margin:10px 0 2px;color:var(--muted);font-size:10px}.work-insights-notice{margin:8px 2px 0;color:var(--muted);font-size:9px;line-height:1.25}@media(min-width:601px){.work-insights-chart svg{height:104px}}

/* Work Insights production density pass; typography and global components stay unchanged. */
.work-insights-page{padding-top:2px}.work-insights-head{min-height:32px}.work-insights-identity{margin-top:4px;padding:6px;gap:8px}.work-insights-identity>img,.work-insights-no-preview{width:48px;height:48px;border-radius:9px}.work-insights-identity>div{gap:1px 7px}.work-insights-identity a{min-height:34px;padding:0 4px;display:flex;align-items:center}.work-insights-period{margin-top:5px}.work-insights-metrics{margin-top:5px}.work-insights-metrics article{min-height:42px;padding:5px 10px}.work-insights-metrics small{bottom:5px}.work-insights-interactions{min-height:36px;margin-top:5px;padding:5px 10px}.work-insights-card{margin-top:5px;padding:7px 10px}.work-insights-chart svg{height:64px;margin-top:1px}.work-insights-chart .chart-peak{margin-top:1px;line-height:1.15}.traffic-list{margin-top:3px}.traffic-list>div{min-height:25px}.traffic-attributed{margin:5px 0 0;color:var(--muted);font-size:9px}.work-insights-empty{margin:7px 0 1px}.work-insights-notice{margin-top:6px;line-height:1.2}@media(min-width:601px){.work-insights-page{padding-top:6px}.work-insights-chart svg{height:88px}}

/* Work Insights compact mobile pass: tighter content, preserved readable type and controls. */
.work-insights-page{max-width:100%;padding-top:0;overflow-x:clip}.work-insights-head{min-height:36px}.work-insights-head>a{min-height:44px;margin-block:-4px;display:flex;align-items:center}.work-insights-identity{margin-top:2px;padding:4px;gap:7px}.work-insights-identity>img,.work-insights-no-preview{width:40px;height:40px;border-radius:8px}.work-insights-identity a{min-height:44px;margin-block:-2px;padding-inline:5px}.work-insights-period{margin-top:3px}.work-insights-period a{min-height:40px}.work-insights-metrics{margin-top:3px}.work-insights-metrics article{min-height:38px;padding:4px 9px}.work-insights-metrics small{right:8px;bottom:4px;font-size:9px}.work-insights-interactions{min-height:34px;margin-top:3px;padding:4px 9px}.work-insights-card{margin-top:3px;padding:6px 9px}.work-insights-chart svg{height:54px;margin-top:0}.traffic-list{margin-top:2px}.traffic-list>div{min-height:23px}.traffic-attributed{margin-top:3px}.work-insights-empty{margin:5px 0 0}.work-insights-notice{margin-top:4px}.work-insights-page>*{max-width:100%}@media(max-width:390px){.traffic-list>div{grid-template-columns:84px minmax(0,1fr) 30px;gap:6px}}@media(min-width:601px){.work-insights-page{padding-top:6px}.work-insights-identity{padding:6px}.work-insights-identity>img,.work-insights-no-preview{width:48px;height:48px}.work-insights-period a{min-height:40px}.work-insights-metrics article{min-height:42px;padding:5px 10px}.work-insights-card{padding:8px 10px}.work-insights-chart svg{height:88px}.traffic-list>div{min-height:25px}}

/* Explore discovery controls: compact, horizontally scrollable and gallery-first. */
.explore-head{padding-bottom:7px}.surprise-me-row{margin:2px 0 10px;display:flex;justify-content:flex-end}.surprise-me-btn{gap:6px;min-height:34px;padding:0 13px;font-size:11px}.surprise-me-btn svg{width:14px}.discovery-modes{margin:0 0 6px;padding:3px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border:1px solid var(--line);border-radius:12px;background:var(--soft)}.discovery-modes a{min-width:0;min-height:38px;display:flex;align-items:center;justify-content:center;border-radius:9px;color:var(--muted);font-size:11px;font-weight:650}.discovery-modes a.active{background:#fff;color:var(--text);box-shadow:0 1px 4px rgba(0,0,0,.07)}.category-filters{margin-bottom:7px}.explore-live-results>.section-heading{margin-top:7px}.explore-authors{margin-top:12px}.explore-pagination{padding:18px 1px calc(var(--nav) + env(safe-area-inset-bottom,0px) + 16px)}@media(max-width:390px){.explore-head{padding-top:8px}.discovery-modes a{min-height:36px}.category-filters{margin-bottom:5px}}

/* Owner-only Work Insights action uses the existing detail action geometry. */
.insights-action svg{fill:none}.detail-actions>.insights-action{flex:0 0 42px}@media(max-width:390px){.detail-actions{gap:0}.detail-actions .icon-button{width:40px;height:42px}.detail-actions>.insights-action{flex-basis:40px}.detail-count{gap:7px;font-size:10px}}

/* Shared work reaction presentation: icon + optional compact count. */
.work-like-control{display:inline-flex!important;align-items:center;justify-content:center;gap:5px;white-space:nowrap}.work-like-control>svg{flex:none}.work-like-count{height:16px;display:inline-flex;align-items:center;align-self:center;color:currentColor;font-size:12px;font-weight:700;line-height:16px}.detail-actions .like-button{width:auto;min-width:42px;padding-inline:7px}.detail-view-count b{font-size:12px;font-weight:700;line-height:16px}.detail-count{margin-left:auto}.immersive-like.work-like-control{min-width:44px;padding-inline:7px}.focus-like .focus-action-label{font-size:12px;font-weight:700;line-height:12px}@media(max-width:390px){.detail-actions .like-button{min-width:40px;padding-inline:5px}}

/* Owner-only private profile collection reuses the existing portfolio grid. */
.profile-private-empty{padding:25px 16px}.profile-private-empty h2{margin:0;font-size:16px}.profile-private-empty p{margin:4px 0 0;color:var(--muted);font-size:12px}@media(max-width:430px){.profile-tabs{justify-content:space-between;gap:0}.profile-tabs a{padding-inline:4px}}

/* Super Admin control room: compact, no JS dependency. */
.admin h2{margin:26px 0 10px;font-size:15px}.admin h2:first-of-type{margin-top:18px}
.stat-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(76px,1fr));gap:8px;margin:14px 0}.stat-grid .card{padding:10px 6px;border:1px solid var(--line);border-radius:10px;background:#fff;color:var(--muted);font-size:11px;text-align:center}.stat-grid .card b{display:block;margin-bottom:2px;color:var(--text);font-size:18px}
.admin-tabs{display:flex;flex-wrap:wrap;gap:6px 16px;margin:14px 0;font-size:12px}.admin-tabs a{color:var(--accent);font-weight:650}
.admin table td,.admin table th{white-space:nowrap}.admin table td:first-child,.admin table th:first-child{white-space:normal;max-width:220px}
.admin .role-badge{color:var(--accent);font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.03em}
.admin-actions{display:flex;flex-wrap:wrap;gap:6px}.admin-actions form{display:inline-block}
.admin button{height:30px;padding:0 10px;border:1px solid var(--line);border-radius:8px;background:#fff;font-size:11px;font-weight:650}
.admin button.danger{border-color:#c43b32;color:#c43b32}
.card-menu .mod-danger{color:#c43b32}
