:root{font-family:-apple-system,system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;color:var(--ink);background:var(--paper);font-size:14px;--paper:#fff;--elevated:#fff;--elevated-line:#dbdbdb;--surface:#f3f5f7;--hover:rgb(0 0 0 / 5%);--field:#efefef;--skeleton:#efefef;--skeleton-pulse:#dbdbdb;--avatar-surface:#eef1fc;--selection:#e5e8fb;--scroll-thumb:#c9c9c9;--shimmer:#fff9;--primary-button:#4a5df9;--primary-button-hover:#4150f7;color-scheme:light;--ink:#000;--muted:#737373;--placeholder:#666;--line:#dbdbdb;--aurora-1:#4a34c4;--aurora-2:#3a63d4;--aurora-3:#2b9ad8;--aurora-4:#22cfd4;--aurora-5:#2ae6c6;--accent:var(--aurora-1);--focus:var(--aurora-2);--bio-link:#4150f7;--ease:cubic-bezier(.16,1,.3,1);--desktop-top:40px;--desktop-header-height:48px;--desktop-panel-width:256px;--nav-width:var(--desktop-panel-width)}*{box-sizing:border-box}body{margin:0}button,input{font:inherit}button,a,summary,label,[role=button]{-webkit-tap-highlight-color:transparent}button{cursor:pointer}a{color:inherit;text-decoration:none}button{border:0;background:transparent;color:inherit}svg{display:block;width:24px;height:24px;fill:currentColor}svg .s{fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}svg .s3{stroke-width:3}svg .icon-on,.active svg .icon-off,[aria-current="page"] svg .icon-off{display:none}.active svg .icon-on,[aria-current="page"] svg .icon-on{display:inline}:focus{outline:none}
.keyboard-nav :focus-visible{outline:2px solid var(--focus);outline-offset:2px}
.keyboard-nav :is(.photo-button,.grid-photo,.feed-carousel-track>*):focus-visible{outline-offset:-3px}
.keyboard-nav .search-field:focus-within{outline:2px solid var(--focus);outline-offset:-2px}::selection{background:var(--selection)}input{caret-color:var(--accent)}::-webkit-scrollbar{width:8px}::-webkit-scrollbar-thumb{background:var(--scroll-thumb);border-radius:8px;border:2px solid var(--paper)}p{line-height:1.5}h1,h2,p{margin:0}.brand{display:block;width:120px;flex-shrink:0}.brand img{display:block;width:100%;height:auto}.brand .brand-mark{display:none}.navigation{position:fixed;inset:0 auto 0 0;width:var(--nav-width);padding:var(--desktop-top) 12px 20px;transition:width .2s var(--ease);border-right:1px solid var(--line);display:flex;flex-direction:column;background:var(--paper);z-index:10}.navigation .brand{display:flex;align-items:center;height:var(--desktop-header-height);margin-left:12px;margin-bottom:12px}.navigation nav{display:grid;gap:8px}.nav-item{display:flex;align-items:center;gap:16px;min-height:48px;padding:12px;border-radius:8px;white-space:nowrap;overflow:hidden;font-size:16px;width:100%;text-align:left;transition:background .2s}.nav-item:hover{background:var(--hover)}.nav-item.active{font-weight:650}.layout{margin-left:var(--nav-width);display:flex;justify-content:center;align-items:flex-start;padding:var(--desktop-top) 20px 80px}main{flex:0 1 630px;min-width:0}main:is(.profile-view,.explore-view,.photo-view){flex-basis:935px}.feed-heading{display:grid;grid-template-columns:1fr auto;align-items:center;gap:4px;margin-bottom:16px;padding-bottom:0;border-bottom:1px solid var(--line)}.feed-heading h1{display:flex;align-items:center;gap:.25em;min-height:var(--desktop-header-height);font-size:23px;font-weight:650;letter-spacing:-.5px}.icon-button{width:44px;height:44px;display:grid;place-items:center;border-radius:50%}.icon-button:hover{background:var(--hover)}.icon-button svg{width:24px;height:24px}.right-column{display:none}.topic-link{display:flex;align-items:center;gap:12px}.topic-link>[data-icon="external"]{margin-left:auto;flex-shrink:0;color:var(--muted)}.topic-link>[data-icon="external"] svg{width:17px;height:17px}.topic-symbol{width:48px;height:48px;flex-shrink:0;border-radius:50%;background:var(--field);display:grid;place-items:center}.topic-symbol img{display:block;width:24px;height:24px;object-fit:contain}.topic-link strong{font-size:14px;font-weight:650}.topic-link small{display:block;margin-top:4px;color:var(--muted);font-size:12px}.search-field{background:var(--field);border-radius:8px;display:flex;align-items:center;gap:9px;padding:4px 10px;min-height:43px}.search-field>svg{width:18px;height:18px;color:var(--muted);flex-shrink:0}.search-field input{background:none;border:0;width:100%;min-width:0;outline:none;padding:8px 0;color:var(--ink)}.search-field input::placeholder{color:var(--placeholder)}.search-field button{padding:6px;border-radius:4px}.search-field button svg{width:18px;height:18px}.authors-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:32px 0 12px}.authors-title h2{color:var(--muted);font-weight:600;font-size:13px}.authors-title button{min-height:32px;font-size:12px;font-weight:600;color:var(--ink)}.authors-title button:hover{color:var(--muted)}.author-row{display:grid;grid-template-columns:34px minmax(0,1fr) auto;align-items:center;gap:12px;min-height:40px;margin-bottom:12px}.author-row>div{min-width:0}.author-row strong{font-size:13px;font-weight:600;overflow-wrap:anywhere}.author-row small{display:block;color:var(--muted);font-size:11px;margin-top:4px}.authors-empty{color:var(--muted);font-size:12px;margin:0}.author-row .view{color:var(--accent);font-size:12px;font-weight:600;padding:8px 0;white-space:nowrap}.avatar{position:relative;width:34px;height:34px;border-radius:50%;object-fit:cover;background:var(--field);flex-shrink:0}.avatar-fallback{display:grid;place-items:center;background:var(--avatar-surface);color:var(--accent);font-size:12px;font-weight:600}.small-print{font-size:11px;color:var(--muted);line-height:1.6;margin-top:24px;text-align:center}.small-print a{text-decoration:underline;text-underline-offset:3px}.small-print a:hover{text-decoration:underline;text-underline-offset:3px}.post{padding-bottom:23px;margin-bottom:23px;border-bottom:1px solid var(--line)}.post-header{display:flex;align-items:center;gap:10px;margin-bottom:12px}.post-header .nick{font-size:14px;font-weight:600;overflow-wrap:anywhere}.post-author{min-width:0;font-size:14px;line-height:18px}.post-time{color:var(--muted);white-space:nowrap}.post-time span{white-space:pre}.post-header .more-menu{margin-left:auto}.post-header .more-button svg{width:24px;height:24px}.post-header .more-menu-items{left:auto;right:0}.post-photo{position:relative;aspect-ratio:var(--photo-ratio,1);background:var(--hover);border-radius:3px;overflow:hidden}.photo-button{display:block;width:100%;height:100%;padding:0}.post-photo img{display:block;width:100%;height:100%;object-fit:contain;min-height:0;max-height:none}.photo-count{position:absolute;right:12px;top:12px;font-size:12px;line-height:16px;padding:5px 8px;color:#fff;background:rgb(48 48 48 / 63%);border-radius:999px;pointer-events:none}.image-error{min-height:220px;display:grid;place-content:center;text-align:center;gap:12px;color:var(--muted);background:var(--field);font-size:12px}.image-error a{color:var(--accent);text-decoration:underline;text-underline-offset:3px}.post-actions{display:flex;align-items:center;gap:8px;margin:10px -6px 4px}.favorite-icon{color:var(--ink);display:flex;align-items:center;gap:7px;font-size:12px;padding:6px}.favorite-icon svg{width:24px;height:24px}.favorite-count{font-weight:600;font-size:14px;line-height:1}.caption{font-size:14px;line-height:18px;overflow-wrap:anywhere;margin-top:6px;white-space:pre-line}.caption .nick{font-weight:600;margin-right:6px}.caption.collapsed{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.caption-more{font-size:14px;color:var(--muted);padding:5px 0}.post-date{color:var(--muted);font-size:12px;line-height:16px;margin-top:9px}#status{text-align:center;color:var(--muted);font-size:13px;padding:20px 0}#status:empty{display:none}.state-panel{padding:44px 22px;text-align:center}.state-panel .state-icon{display:grid;place-items:center;width:74px;height:74px;margin:0 auto 16px;border-radius:50%;background:var(--surface);color:var(--accent)}.state-panel .state-icon svg{width:24px;height:24px}.state-panel h2{font-size:24px;line-height:30px;font-weight:600;color:var(--ink);margin-bottom:8px}.state-panel p{font-size:14px;line-height:18px;max-width:350px;margin:auto}.primary-button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;background:var(--primary-button);color:#fff;padding:0 20px;border-radius:12px;font-size:14px;font-weight:600;margin-top:16px}.primary-button:hover{background:var(--primary-button-hover)}.mobile-header,.mobile-nav{display:none}.profile-view .feed-heading{display:none}.profile-top{display:flex;align-items:center;gap:57px;padding:18px 18px 36px}.profile-avatar{width:150px;height:150px;font-size:40px}.profile-details{flex:1;min-width:0}.profile-name-row{display:flex;align-items:center;gap:18px;flex-wrap:wrap;margin-bottom:24px}.profile-name-row h1{font-size:20px;line-height:25px;font-weight:400;overflow-wrap:anywhere}.profile-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:20px;font-size:16px;line-height:20px;color:var(--muted)}.profile-stats>span{min-width:0}.profile-stats b{color:var(--ink);font-weight:600;font-variant-numeric:tabular-nums;white-space:nowrap}.profile-details p{font-size:14px;line-height:18px;white-space:pre-line;overflow-wrap:anywhere}.profile-bio{margin-top:8px}.profile-bio a,.caption a:not(.nick),.detail-caption a{color:var(--bio-link);text-decoration:underline;text-decoration-color:color-mix(in srgb,currentColor 35%,transparent);text-underline-offset:3px}.profile-bio a:hover,.profile-bio a:focus-visible,.caption a:not(.nick):hover,.detail-caption a:hover{text-decoration-color:currentColor}.profile-tabs{border-bottom:1px solid var(--line);display:flex;justify-content:center}.profile-tab{flex:1;display:flex;justify-content:center;height:44px;color:var(--muted);font-size:14px;font-weight:600;touch-action:manipulation}.profile-tab>span{display:flex;align-items:center;gap:6px;padding:0 20px;border-bottom:2px solid transparent}.profile-tab:hover{color:var(--ink)}.profile-tab[aria-pressed="true"]{color:var(--ink)}.profile-tab[aria-pressed="true"]>span{border-bottom-color:var(--ink)}.profile-tab-loading{margin-right:-18px}.profile-tab-loading::before{width:12px;height:12px;mask:radial-gradient(farthest-side,transparent calc(100% - 2px),var(--ink) calc(100% - 1.5px))}.photo-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1px}.grid-photo{position:relative;aspect-ratio:1;overflow:hidden;background:var(--field);padding:0}.grid-photo img{width:100%;height:100%;object-fit:cover;display:block}.grid-overlay{position:absolute;inset:0;background:#0005;display:flex;align-items:center;justify-content:center;gap:7px;color:#fff;opacity:0;transition:opacity .2s;font-weight:600}.grid-overlay svg{width:19px;height:19px}.grid-photo:hover .grid-overlay,.grid-photo:focus-visible .grid-overlay{opacity:1}.grid-multiple{position:absolute;top:8px;right:8px;color:#fff;pointer-events:none}.grid-multiple svg{width:20px;height:20px}.grid-photo.image-error{min-height:0;font-size:10px}dialog{padding:0;border:0;max-width:calc(100vw - 32px);color:var(--ink);background:var(--paper)}dialog::backdrop{background:#0009}.search-dialog[open]{display:block;overflow-y:auto;overscroll-behavior:contain}.dialog-heading{display:flex;align-items:center;justify-content:space-between}.dialog-heading h2{font-size:24px;font-weight:600}.photo-dialog{width:1050px;max-width:calc(100vw - 128px);border-radius:4px;overflow:visible}.dialog-close{position:fixed;right:4px;top:4px;color:#fff}.dialog-close svg{width:18px;height:18px}.dialog-close:hover{background:#ffffff20}#photo-content{display:grid;grid-template-columns:minmax(0,1fr) 330px;min-height:470px;max-height:85vh;max-height:85dvh}.detail-image{background:#111;position:relative;display:flex;align-items:center;justify-content:center;min-width:0;overflow:hidden}.detail-image img{width:100%;height:100%;max-height:85vh;max-height:85dvh;object-fit:contain}.detail-image .image-error{background:#111;color:#fff;width:100%}.carousel-button{padding:0;position:absolute;top:50%;transform:translateY(-50%);border-radius:50%;background:rgb(255 255 255 / 70%);color:rgb(0 0 0 / 65%);width:24px;height:24px;display:grid;place-items:center}.carousel-button svg{width:16px;height:16px}.carousel-button.prev{left:12px}.carousel-button.next{right:12px}.carousel-dots{position:absolute;bottom:17px;display:flex;gap:4px}.carousel-dots span{width:6px;height:6px;border-radius:50%;background:#fff;opacity:.4}.carousel-dots .selected{opacity:1}.detail-info{padding:20px;display:flex;flex-direction:column;max-height:85vh;max-height:85dvh}.detail-info .post-header{border-bottom:1px solid var(--line);padding-bottom:15px;margin-bottom:15px}.detail-caption{flex:1;overflow:auto;font-size:14px;white-space:pre-line;line-height:18px;overflow-wrap:anywhere}.detail-info .post-actions{border-top:1px solid var(--line);padding-top:10px;margin-top:17px}.detail-source{font-size:12px;color:var(--accent);margin-top:15px;display:inline-flex;align-items:center;gap:6px}.detail-source svg{width:14px;height:14px}#toast{position:fixed;left:50%;bottom:24px;transform:translateX(-50%);padding:14px 16px;background:rgb(43 48 54 / 80%);-webkit-backdrop-filter:blur(45px);backdrop-filter:blur(45px);box-shadow:0 2px 16px rgb(12 16 20 / 10%),0 4px 40px rgb(12 16 20 / 10%);color:#fff;border-radius:16px;font-size:14px;line-height:18px;z-index:99;display:none}#toast.show{display:block}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.load-more{font-size:12px;color:var(--accent);padding:10px 20px}.connection-hint{margin-top:18px;font-size:12px;color:var(--muted)}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;scroll-behavior:auto!important}}

.feed-filters{display:flex;grid-column:1/-1;align-items:center;gap:24px;margin-top:2px;margin-bottom:-1px}.feed-mode{min-height:44px;padding:8px 0;border-bottom:2px solid transparent;color:var(--muted);font-size:13px;white-space:nowrap;touch-action:manipulation}.feed-mode:hover{color:var(--ink)}.feed-mode[aria-pressed="true"]{color:var(--ink);font-weight:650;border-bottom-color:var(--ink)}.suggestions{margin-top:10px}.suggestions a{display:flex;align-items:center;gap:10px;padding:9px 7px;border-radius:7px;font-size:14px;overflow-wrap:anywhere}.suggestions a:hover,.suggestions a:focus-visible{background:var(--field)}.suggestions .suggestion-name{flex:1;min-width:0}.suggestions small{color:var(--muted);font-size:11px;white-space:nowrap}.suggestions .typed-nick{color:var(--accent);font-size:12px;border-top:1px solid var(--line);border-radius:0;margin-top:5px;padding-top:13px}.suggestions p{color:var(--muted);font-size:11px;padding:8px 7px}[hidden]{display:none!important}.filter-empty{padding:25px 16px;color:var(--muted);font-size:14px;text-align:center;line-height:18px}.nav-item,.icon-button,.mobile-nav button,.mobile-nav a{touch-action:manipulation}.post{content-visibility:auto;contain-intrinsic-size:auto 650px}

.explore-view .feed-heading{margin-bottom:20px}


.feedback-link{color:var(--muted)}.feedback-link:hover{color:var(--ink)}.navigation-feedback{margin-top:auto}.content-credit{display:block;margin-top:24px}.mobile-header-actions{display:flex;align-items:center;gap:12px}.mobile-header .feedback-link{display:inline-flex;align-items:center;min-height:44px;font-size:12px;white-space:nowrap}

.feed-title-link{display:inline-flex;align-items:center;min-height:44px;color:var(--ink);text-decoration:none;touch-action:manipulation}


.week-loading{display:flex;flex-direction:column;align-items:center;gap:18px;padding:96px 16px;color:var(--muted);text-align:center}.week-loading .brand{width:120px}.week-loading-track{width:112px;height:3px;overflow:hidden;border-radius:2px;background:var(--line)}.week-loading-track span{display:block;width:45%;height:100%;background:linear-gradient(45deg,var(--aurora-1),var(--aurora-2),var(--aurora-3),var(--aurora-4),var(--aurora-5));animation:week-progress 1.4s ease-in-out infinite}.week-loading p{font-size:13px;color:var(--accent);font-weight:600}.feed-mode:disabled{cursor:wait}.feed-mode:disabled:hover{color:var(--muted);background:transparent}
@keyframes week-progress{from{transform:translateX(-110%)}to{transform:translateX(330%)}}
@media(prefers-reduced-motion:reduce){.week-loading-track span{animation:none;width:100%;opacity:.65}}

/* Keep the photo stage and metadata steady while decoded carousel images switch immediately. */
.feed-carousel-track{display:flex;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;scrollbar-width:none;aspect-ratio:var(--photo-ratio,1);min-height:0;max-height:none}
.feed-carousel-track::-webkit-scrollbar{display:none}
.feed-carousel-track .photo-button{flex:0 0 100%;min-width:0;height:100%;scroll-snap-align:start;scroll-snap-stop:always}
.post-photo .feed-carousel-track img{width:100%;height:100%;min-height:0;max-height:none;object-fit:contain}
.feed-carousel-dots{position:relative;height:18px;margin:8px auto 0;overflow:hidden}
.feed-carousel-dots span{position:absolute;left:0;top:6px;width:6px;height:6px;border-radius:50%;background:#a8a8a8;transition:transform 200ms var(--ease),opacity 200ms var(--ease),background-color 150ms ease}
.feed-carousel-dots .selected{background:var(--accent)}
.feed-carousel-dots+.post-actions{margin-top:0}
.feed-carousel-arrow{z-index:1}
.feed-carousel .photo-count{top:12px;right:14px;padding:5px 8px;border-radius:999px;background:rgb(48 48 48 / 63%);font-size:12px;font-weight:400;line-height:16px;opacity:0;transition:opacity .5s ease;z-index:1}
.feed-carousel .photo-count.is-visible{opacity:1;transition-duration:0s}
@media(hover:none) and (pointer:coarse){.feed-carousel-arrow{display:none}}
.carousel-button[hidden],.carousel-dots[hidden]{display:none}
.detail-image[style] img{position:absolute;inset:0;width:100%;height:100%;max-height:100%;background:#111}
#photo-content[style] .detail-info{min-height:0}
.detail-image .carousel-dots{z-index:2}
.detail-image-error{color:#fff;font-size:12px}

.loading-message{display:inline-flex;align-items:center;justify-content:center;gap:10px;color:var(--accent);font-weight:600;line-height:1.5}.loading-message::before{content:"";width:20px;height:20px;flex-shrink:0;border-radius:50%;background:conic-gradient(from 0deg,transparent 0deg,var(--aurora-1) 65deg,var(--aurora-2) 135deg,var(--aurora-3) 205deg,var(--aurora-4) 275deg,var(--aurora-5) 330deg,transparent 360deg);mask:radial-gradient(farthest-side,transparent calc(100% - 3px),var(--ink) calc(100% - 2px));animation:loading-spin 1s linear infinite}
@keyframes loading-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.loading-message::before{animation:none}}

.loading-photo,.loading-line{position:relative;aspect-ratio:1;overflow:hidden;background:var(--skeleton);pointer-events:none}.loading-photo::after,.loading-line::after{content:"";position:absolute;inset:0;background:linear-gradient(100deg,transparent 20%,var(--shimmer) 50%,transparent 80%);transform:translateX(-100%);animation:photo-shimmer 1.6s ease-in-out infinite}
@keyframes photo-shimmer{to{transform:translateX(100%)}}
.loading-post{pointer-events:none}
.loading-line{display:block;aspect-ratio:auto;width:110px;height:10px;border-radius:5px}
.loading-post>.loading-line{width:55%;margin-top:14px}
.loading-avatar{padding:4px;background:var(--skeleton) content-box;animation:avatar-pulse 1.6s ease-in-out infinite}
.loading-avatar::before{content:"";position:absolute;inset:0;border-radius:50%;background:conic-gradient(from 0deg,transparent 0deg,var(--aurora-1) 65deg,var(--aurora-2) 135deg,var(--aurora-3) 205deg,var(--aurora-4) 275deg,var(--aurora-5) 330deg,transparent 360deg);mask:radial-gradient(farthest-side,transparent calc(100% - 2px),#000 calc(100% - 1.5px));animation:loading-spin 1s linear infinite}
@keyframes avatar-pulse{50%{background-color:var(--skeleton-pulse)}}
@media(prefers-reduced-motion:reduce){.loading-photo::after,.loading-line::after{animation:none;transform:none;background:none}.loading-avatar,.loading-avatar::before{animation:none}}

/* Profile actions stay quiet beside the nickname until requested. */
.profile-name-row{gap:8px;flex-wrap:nowrap;margin-bottom:20px}
.profile-name-row h1{min-width:0}
.more-menu{position:relative;flex-shrink:0}
.more-menu summary,.more-button{display:grid;place-items:center;list-style:none;width:44px;height:44px;background:transparent;cursor:pointer;touch-action:manipulation}
.more-menu summary::-webkit-details-marker{display:none}
.more-menu summary svg,.more-button svg{width:16px;height:16px}
.profile-name-row .more-menu summary svg{width:32px;height:32px}
#mobile-profile-actions .more-menu summary svg{width:24px;height:24px}
.more-menu-items{position:absolute;left:0;top:calc(100% + 4px);z-index:20;width:190px;padding:4px;background:var(--elevated);border:1px solid var(--elevated-line);border-radius:8px}
.more-menu.opens-left .more-menu-items{left:auto;right:0}
.more-menu-items button,.more-menu-items a{display:flex;align-items:center;gap:10px;width:100%;min-height:44px;padding:10px 12px;text-align:left;font-size:14px;border-radius:6px;white-space:nowrap}
.more-menu-items button:hover,.more-menu-items a:hover{background:var(--hover)}
.more-menu-items svg{width:18px;height:18px;flex-shrink:0}
.post-actions .photo-share{width:44px;height:44px}

.avatar-image{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;border-radius:inherit;opacity:0}.avatar-image.loaded{opacity:1}.avatar-fallback:has(.avatar-image.loaded){color:transparent}

.profile-stat-loading{width:14px;height:14px;vertical-align:-2px;gap:0}.profile-stat-loading::before{width:14px;height:14px;mask:radial-gradient(farthest-side,transparent calc(100% - 2px),var(--ink) calc(100% - 1.5px))}
#posts.stale{pointer-events:none}

.photo-button[role]{cursor:pointer}
.post-photo .photo-button:not([role]){cursor:default;pointer-events:none}
@media(max-width:767px){
  body.gallery-feed-open{overflow-anchor:none}
  .gallery-feed-open .mobile-header,.gallery-feed-open .feed-heading,.gallery-feed-open #profile,.gallery-feed-open #posts{display:none}
  .gallery-feed-open .layout{padding-top:56px}
  .gallery-feed-header{position:fixed;inset:0 0 auto;z-index:15;height:56px;display:flex;align-items:center;gap:14px;padding:0 12px;background:var(--paper);border-bottom:1px solid var(--line)}
  .gallery-feed-header .icon-button{width:44px;height:44px}
  .gallery-feed-header h1{font-size:16px;font-weight:650}
  #gallery-feed-posts .post{content-visibility:visible;scroll-margin-top:56px;padding-top:12px}
  #gallery-feed-posts .post-photo{height:auto}
  #gallery-feed-posts .photo-button{height:100%}
  #gallery-feed-posts .post-photo img{height:100%;min-height:0;max-height:none;object-fit:contain}
  #gallery-feed-posts .feed-carousel-track{width:100%;height:auto;min-height:0;max-height:none}
}

/* Source account badges share Anlık’s violet accent on every author label. */
.author-badge{display:inline-block;width:14px;height:14px;margin-left:4px;vertical-align:-2px;color:var(--accent);line-height:0;white-space:normal}
.author-badge svg{width:100%;height:100%}
.profile-name-row h1 .author-badge{width:20px;height:20px;vertical-align:-2px;margin-left:6px}

.profile-details .profile-joined{display:flex;align-items:center;gap:6px;margin-top:10px;color:var(--muted);font-size:12px}
.profile-joined svg{width:14px;height:14px}

/* Every surface shares the same theme; photo overlays retain their contrast. */
:root[data-theme="dark"]{color-scheme:dark;--paper:#0c1014;--elevated:#212328;--elevated-line:#363636;--surface:#25292e;--ink:#f5f5f5;--muted:#a8a8a8;--placeholder:#a8a8a8;--line:#262626;--hover:rgb(255 255 255 / 10%);--field:#262626;--skeleton:#262626;--skeleton-pulse:#363636;--avatar-surface:#29243e;--selection:#403766;--scroll-thumb:#555;--shimmer:#ffffff0d;--accent:#b0a0ff;--focus:#90aaff;--bio-link:#708dff}
.navigation-footer{margin-top:auto;display:grid;gap:8px}
.theme-menu>summary{color:var(--muted);width:100%;height:auto;min-height:48px;display:flex;justify-content:flex-start;gap:16px;padding:12px;font-size:16px;border-radius:8px;white-space:nowrap;overflow:hidden}
.theme-menu>summary:hover{background:var(--hover);color:var(--ink)}
.theme-menu>summary svg{width:24px;height:24px}
.theme-menu .more-menu-items{top:auto;bottom:calc(100% + 8px)}
.settings-menu .more-menu-items{width:236px;color:var(--ink)}
.settings-menu .theme-option{display:flex;align-items:center;gap:10px;min-height:48px;padding:10px 12px;font-size:14px;cursor:pointer;border-radius:6px}
.theme-option:hover{background:var(--hover)}
.theme-switch{appearance:none;flex-shrink:0;width:36px;height:22px;margin:0 0 0 auto;padding:3px;border-radius:20px;background:var(--muted);cursor:pointer}
.theme-switch::before{content:"";display:block;width:16px;height:16px;border-radius:50%;background:var(--paper);transition:transform .15s var(--ease)}
.theme-switch:checked{background:var(--accent)}
.theme-switch:checked::before{transform:translateX(14px)}
.settings-menu .settings-contact{border-top:1px solid var(--line);border-radius:0;margin-top:4px}
.theme-icon-sun{display:none}
:root[data-theme="dark"] .theme-icon-moon{display:none}
:root[data-theme="dark"] .theme-icon-sun{display:block}

#mobile-profile-actions{display:none}
@media(max-width:767px){
  body:has(#main:is(.profile-view,.photo-view)) .mobile-header .brand{display:none}
  body:has(#main:is(.profile-view,.photo-view)) .mobile-header-actions{display:none}
  body:has(#main.photo-view) #mobile-profile-title{text-align:center;margin-right:36px}
  body:has(#main.profile-view) #mobile-profile-actions{display:block;flex-shrink:0}
  #mobile-profile-actions .more-menu-items{left:auto;right:0}
  #profile-back{width:44px;height:44px;flex-shrink:0;margin-left:-8px}
  #mobile-profile-title{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:16px;font-weight:600;margin:0 10px}
  #mobile-profile-title .author-badge{width:16px;height:16px;vertical-align:-2px}
}


/* Gallery covers share Instagram’s portrait grid; feeds retain complete source images. */
.photo-grid .grid-photo,.photo-grid .loading-photo{aspect-ratio:3/4}
.feed-mode{min-width:44px}
.favorite-icon,.caption-more,.load-more,.author-row .view{min-height:44px}
.author-row .view{display:flex;align-items:center;min-width:44px;justify-content:flex-end}
.search-field button{flex-shrink:0;min-width:44px;min-height:44px;display:grid;place-items:center}
.search-field{padding:0 8px}
.carousel-button::before{content:"";position:absolute;inset:-10px}

.search-recents{margin-top:20px}
.recent-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:8px}
.recent-heading h3{font-size:14px;font-weight:600;margin:0}
.recent-heading button{font-size:12px;color:var(--accent);min-height:44px;padding:0 4px}
.recent-search-row{display:flex;align-items:center;gap:8px;min-height:48px}
.recent-search-row>a{display:flex;align-items:center;gap:12px;flex:1;min-width:0;min-height:48px;font-size:14px;overflow-wrap:anywhere}
.recent-search-row>.icon-button{flex-shrink:0;color:var(--muted)}
.recent-search-row>.icon-button svg,.search-clear svg{width:18px;height:18px}

/* Keyboard, touch and theme details shared by every screen. */
.skip-link{position:fixed;left:16px;top:-80px;z-index:100;padding:10px 14px;border-radius:8px;background:var(--paper);color:var(--ink);font-weight:600;border:1px solid var(--line)}
.skip-link:focus{top:16px}
.author-badge .badge-check{stroke:var(--paper)}
/* Both logo colors are in the markup; the theme attribute is set before the body paints. */
:root:not([data-theme="dark"]) .theme-dark,:root[data-theme="dark"] .theme-light{display:none!important}
.not-found{padding:40px 16px;text-align:center}
.not-found h1{font-size:24px;line-height:30px;font-weight:600;color:var(--ink);margin-bottom:8px}
.not-found p{color:var(--ink);font-size:14px;line-height:18px;max-width:none}
.not-found a{color:var(--bio-link)}
@media(pointer:coarse){.search-field input{font-size:16px}}

@media(max-width:767px){
  .navigation{display:none}
  .mobile-header{display:flex;align-items:center;justify-content:space-between;position:sticky;top:0;z-index:20;height:56px;padding:0 max(16px,env(safe-area-inset-right)) 0 max(16px,env(safe-area-inset-left));border-bottom:1px solid var(--line);background:var(--paper)}
  .mobile-header .brand{width:120px;margin-left:-4px}
  .mobile-header-actions{gap:4px;margin-right:-12px}
  .mobile-header-actions>.icon-button{width:44px;height:44px}
  .mobile-header .settings-menu .more-menu-items{left:auto;right:12px}
  .settings-menu>summary svg{width:24px;height:24px}
  .layout{margin:0;padding:0 0 calc(76px + env(safe-area-inset-bottom));display:block}
  .content-credit{margin:24px 16px 0}
  .feed-heading{margin:0 14px 8px;padding-bottom:0;column-gap:8px}
  .feed-heading h1{min-height:44px;font-size:20px;line-height:1.25}
  /* Headings stay for screen readers: Home shows its filter row, Keşfet Instagram's search field. */
  .feed-heading h1{position:absolute;width:1px;height:1px;min-height:0;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
  #main:not(.explore-view) .feed-heading .feed-filters{grid-row:1;grid-column:1;margin-top:0;gap:20px}
  #main:not(.explore-view) .feed-heading #refresh{grid-row:1;grid-column:2}
  .explore-view .feed-heading{margin:8px 16px 12px;border-bottom:0}
  .explore-view .explore-search{display:flex;grid-row:1;grid-column:1}
  .explore-view .feed-heading #refresh{grid-row:1;grid-column:2;margin-right:-8px}
  .post{margin-bottom:22px;padding-bottom:18px}
  .post-header{padding:0 14px;margin-bottom:8px}
  .post-photo{border-radius:0}
  .post-photo img{max-height:none}
  .post-actions{margin:4px 8px 3px;gap:4px}
  .caption,.post-date,.caption-more{margin-left:14px;margin-right:14px}
  .caption-more{padding-top:2px}
  .search-field{min-height:46px}
  .search-field input{font-size:16px}
  .suggestions a{min-height:44px}
  .mobile-nav{display:flex;position:fixed;bottom:0;left:0;right:0;background:var(--paper);border-top:1px solid var(--line);height:calc(58px + env(safe-area-inset-bottom));padding:0 env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);justify-content:space-around;align-items:center;z-index:10}
  .mobile-nav a,.mobile-nav button{padding:10px 24px}
  .profile-top{display:grid;grid-template-columns:96px minmax(0,1fr);gap:12px 20px;padding:16px 16px 20px;align-items:center}
  .profile-details{display:contents}
  .profile-avatar{grid-column:1;grid-row:1;width:96px;height:96px;font-size:30px}
  .profile-name-row{display:none}
  .profile-stats{grid-column:2;grid-row:1;gap:12px;margin:0;align-items:center;font-size:14px;line-height:18px;color:var(--ink)}
  .profile-stats b{display:block;font-size:14px}
  .profile-details p{grid-column:1/-1;margin-top:0}
  .profile-details .profile-joined{margin-top:0}
  .photo-grid .loading-photo~.loading-photo{display:none}
  .photo-dialog{max-width:calc(100vw - 24px);width:500px;border-radius:7px;overflow:hidden}
  .dialog-close{right:7px;top:7px;z-index:4;background:#111a}
  .dialog-close:hover{background:#111}
  #photo-content{display:flex;flex-direction:column;max-height:90vh;max-height:90dvh;min-height:0}
  .detail-image{flex:1;flex-shrink:0;min-height:170px;max-height:53vh;max-height:53dvh}
  .detail-image img{max-height:53vh;max-height:53dvh;height:auto}
  .detail-info{padding:14px;max-height:37vh;max-height:37dvh;overflow:auto}
  .detail-info .post-header{padding:0 0 10px;margin-bottom:10px}
  .detail-caption{flex:none;max-height:110px}
  .detail-info .post-actions{margin:9px -5px 2px;padding-top:7px}
  .detail-info .post-date{margin-left:0}
  .detail-source{margin-top:9px}
  .state-panel{padding:40px 24px}
  #toast{bottom:calc(75px + env(safe-area-inset-bottom));max-width:min(90vw,calc(100vw - 32px - env(safe-area-inset-left) - env(safe-area-inset-right)));width:max-content}
  .search-dialog{position:fixed;inset:0;width:100%;max-width:none;height:100dvh;max-height:none;margin:0;border-radius:0;padding:8px max(16px,env(safe-area-inset-right)) max(16px,env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left))}
  .search-dialog .dialog-heading{justify-content:flex-start;gap:8px;margin-bottom:12px}
  .search-dialog .dialog-heading h2{order:1;font-size:18px}
  .search-dialog .dialog-heading .icon-button{margin-left:-8px}
  .photo-page-info{display:flex;flex-direction:column}
  .photo-page-info .post-actions{order:-1}
  .photo-page-info .caption{margin-top:2px}
  .more-posts{margin-top:8px}
  .more-posts-heading{padding:0 14px}
  .entry-arrow{display:none}
}

/* Instagram breakpoints: icon rail below 1264px, phone layout below 768px; the search panel also collapses the sidebar. */
@media(max-width:1263px){:root{--nav-width:72px}}
@media(max-width:1263px){
  .navigation .brand{width:48px;justify-content:center;margin-left:0}.navigation .brand-logo{display:none}.navigation .brand .brand-mark{display:block;width:24px}
  .nav-item,.theme-menu>summary{width:48px;justify-content:center}.nav-item>span:last-child,.theme-menu>summary>span:last-child{display:none}
}
.search-open .navigation{width:72px}
.search-open .navigation .brand{width:48px;justify-content:center;margin-left:0}.search-open .navigation .brand-logo{display:none}.search-open .navigation .brand .brand-mark{display:block;width:24px}
.search-open .nav-item,.search-open .theme-menu>summary{width:48px;justify-content:center}.search-open .nav-item>span:last-child,.search-open .theme-menu>summary>span:last-child{display:none}
.search-open .nav-item#search-open{box-shadow:inset 0 0 0 1px var(--line)}

@media(min-width:768px){main:not(.profile-view,.explore-view,.photo-view)>*{max-width:470px;margin-inline:auto}}
/* Center content between the side panels with matching inner gaps. */
@media(min-width:851px){
  .layout{--right-width:var(--desktop-panel-width);--panel-gap:32px;margin-left:0;display:grid;grid-template-columns:minmax(0,470px);gap:0;padding:var(--desktop-top) calc(var(--right-width) + 24px + var(--panel-gap)) 80px calc(var(--nav-width) + var(--panel-gap))}
  .layout:has(>main:is(.profile-view,.explore-view,.photo-view)){grid-template-columns:minmax(0,850px)}
  .right-column{position:fixed;top:var(--desktop-top);right:24px;width:var(--right-width);height:calc(100dvh - var(--desktop-top) - 24px);display:flex;flex-direction:column}
  .right-content{flex:1;min-height:0;overflow-y:auto;margin-right:-8px}
  .right-content .author-row .view,.right-content .topic-link>[data-icon="external"]{margin-right:12px}
  .right-column .small-print{flex-shrink:0}
  .content-credit{display:none}
}

/* Desktop search: Instagram's slide-out panel next to the icon rail. */
@media(min-width:768px){
  .search-dialog{position:fixed;inset:0 auto 0 72px;z-index:9;width:320px;max-width:none;height:100dvh;max-height:none;margin:0;padding:8px 0 24px;border-radius:0 16px 16px 0;box-shadow:4px 0 24px rgb(0 0 0 / 15%);transform:translateX(-100%);transition:transform .3s var(--ease),display .3s allow-discrete}
  .search-dialog[open]{transform:none}
  @starting-style{.search-dialog[open]{transform:translateX(-100%)}}
  .search-dialog .dialog-heading{padding:12px 14px 36px 24px}
  .search-dialog .close-dialog{display:none}
  .search-dialog #search-form{margin:0 16px}
  .search-dialog .search-field{min-height:40px}
  .search-dialog .suggestions,.search-dialog .search-recents,.search-dialog #search-people{margin-top:24px;padding:12px 16px 0;border-top:1px solid var(--line)}
  .search-dialog .search-recents+#search-people{border-top:0;margin-top:12px}
}
#search-people:has(#search-authors:empty){display:none}
#search-people h3{font-size:14px;font-weight:600;margin:0 0 12px}
.search-dialog .recent-heading{margin-top:-8px}
@media(prefers-reduced-motion:reduce){.search-dialog{animation:none}}
@media(max-width:767px){.search-dialog .search-recents,.search-dialog #search-people{margin-top:20px}}

/* Instagram's options dialog for post and profile "…" menus. */
.options-dialog{width:400px;max-width:calc(100vw - 40px);border-radius:12px;overflow:hidden;background:var(--elevated)}
.options-dialog::backdrop{background:rgb(0 0 0 / 65%)}
#options-items>a,#options-items>button,.options-cancel{display:flex;align-items:center;justify-content:center;width:100%;min-height:48px;padding:4px 8px;border-top:1px solid var(--elevated-line);font-size:14px;line-height:1.3;text-align:center}
#options-items>:first-child{border-top:0}
#options-items>a:active,#options-items>button:active,.options-cancel:active{background:var(--hover)}

/* Photo detail: entry chevrons on the backdrop at the viewport edges. */
.entry-arrow{position:fixed;top:50%;z-index:3;width:32px;height:32px;margin-top:-16px;border-radius:50%;background:#fff;color:#000;display:grid;place-items:center}
.entry-arrow::before{content:"";position:absolute;inset:-6px}
.entry-arrow svg{width:16px;height:16px}
.entry-arrow.prev{left:16px}.entry-arrow.prev svg{transform:rotate(-90deg)}
.entry-arrow.next{right:16px}.entry-arrow.next svg{transform:rotate(90deg)}

/* Mobile Keşfet opens search from Instagram's field. */
.explore-search{display:none;align-items:center;gap:8px;width:100%;height:36px;padding:0 12px;border-radius:8px;background:var(--field);color:var(--muted);font-size:16px;text-align:left}
.explore-search svg{width:16px;height:16px}

/* Photo page (/foto): the detail's two panes inline on desktop, a feed post on phones; then the author's other photos. */
.photo-page-post .caption{white-space:pre-line}
.photo-page-info .post-date{margin-top:4px}
@media(min-width:768px){
  .photo-page-post{position:relative;display:grid;grid-template-columns:minmax(0,1fr) 335px;grid-template-rows:auto 1fr;margin:0;padding:0;border:1px solid var(--line);border-radius:4px;overflow:hidden;content-visibility:visible}
  .photo-page-post>.post-photo{grid-column:1;grid-row:1/3;width:100%;max-height:calc(100dvh - 2 * var(--desktop-top));border-radius:0;background:#111}
  .photo-page-post .feed-carousel-track{height:100%;aspect-ratio:auto}
  .photo-page-post>.feed-carousel-dots{position:absolute;grid-column:1;grid-row:1/3;bottom:8px;left:0;right:0}
  .photo-page-post>.post-header{grid-column:2;grid-row:1;margin:0;padding:14px 16px;border-bottom:1px solid var(--line)}
  .photo-page-info{grid-column:2;grid-row:2;display:flex;flex-direction:column;min-height:0;padding:16px}
  .photo-page-info .caption{flex:1;margin:0}
  .photo-page-info .post-actions{border-top:1px solid var(--line);padding-top:10px;margin:17px -6px 4px}
  .more-posts{margin-top:48px;padding-top:4px;border-top:1px solid var(--line)}
}
.more-posts-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px;margin:16px 0}
.more-posts-heading h2{font-size:14px;font-weight:600;color:var(--muted)}
.more-posts-heading h2 a{color:var(--ink)}
.more-posts-all{font-size:14px;font-weight:600;color:var(--accent);white-space:nowrap}

.photo-page-info .detail-source{align-self:flex-start}
@media(max-width:767px){.photo-page-info .detail-source{margin:6px 14px 0}}

/* Wide sidebar → rail for search: icons stay put while labels and the logo cross-fade, so nothing redraws abruptly. */
@media(min-width:1264px){
  .navigation{overflow:hidden}
  .navigation .brand{position:relative}
  .navigation .brand-logo{transition:opacity .2s var(--ease)}
  .navigation .brand .brand-mark{display:block;position:absolute;left:0;top:50%;width:24px;transform:translateY(-50%);opacity:0;transition:opacity .2s var(--ease)}
  .nav-item>span:last-child,.theme-menu>summary>span:last-child{transition:opacity .2s var(--ease)}
  .search-open .navigation .brand{width:120px;justify-content:flex-start;margin-left:12px}
  .search-open .navigation .brand-logo{display:block;opacity:0}
  .search-open .navigation .brand .brand-mark{opacity:1}
  .search-open .nav-item,.search-open .theme-menu>summary{width:100%;justify-content:flex-start}
  .search-open .nav-item>span:last-child,.search-open .theme-menu>summary>span:last-child{display:inline;opacity:0}
}
