/* Floating controls, restrained glass, existing editorial content. */

body[data-app-page]{-webkit-font-smoothing:antialiased}
body[data-app-page] .app-page-name{margin:0 auto 0 0;flex:1 1 auto;min-width:0;font:650 24px/1.1 var(--app-font);letter-spacing:-.75px;color:#f8f8fa}
body[data-app-page] .app-header{gap:8px;border:0}
body[data-app-page] .app-brand[hidden]{display:none!important}
body[data-app-page="home"] .app-home-signature{width:96px;flex:0 0 96px;height:40px;margin:0 10px 0 0;opacity:.88}
body[data-app-page="home"] .app-home-signature img{width:96px;height:auto;max-height:40px}
body[data-app-page] .app-language,body[data-app-page] .app-labeled-control{
  display:inline-flex;flex:0 0 auto;width:auto;min-width:44px;height:40px;min-height:44px;
  padding:0 10px;gap:6px;border:0;border-radius:22px;
  background:transparent;color:#ededf0;font:550 11px/1 var(--app-font);letter-spacing:0;white-space:nowrap;
}
body[data-app-page] .app-language:before{content:none}
body[data-app-page] .app-language svg,body[data-app-page] .app-labeled-control svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
body[data-app-page] .app-icon{width:40px;flex-basis:40px;min-width:40px;border-radius:22px}
body[data-app-page] .app-icon svg{width:20px;height:20px}
body[data-app-page="discover"] .brandline #discover-switchlang{width:auto;padding:0 10px;border-radius:22px;font:550 11px/1 var(--app-font)}
body[data-app-page="profile"] .profile-top-actions{gap:0}
body[data-app-page="profile"] #profile-settings-button{width:auto;flex-basis:auto}
body[data-app-page="profile"] .profile-topbar{border:0}
body[data-app-page="home"] .chrome-head{background:linear-gradient(180deg,#0008,#0001 90%,transparent);padding-bottom:12px}
body[data-app-page="tv"] .top{background:linear-gradient(180deg,#0005,transparent)}

/* The active destination is a whole pill, not a tiny underline. */
body[data-app-page] #sjr-app-nav{
  display:grid;grid-template-columns:repeat(5,minmax(0,1fr));isolation:isolate;
  width:calc(100% - 28px);max-width:calc(var(--app-width) - 30px);
  height:70px;min-height:70px;bottom:calc(12px + env(safe-area-inset-bottom,0px));
  padding:6px;gap:0;border:1px solid var(--glass-stroke);border-radius:var(--radius-dock);


  touch-action:none;user-select:none;-webkit-user-select:none;overflow:visible;
}
body[data-app-page] #sjr-app-nav a{
  position:relative;z-index:1;height:56px;min-height:56px;padding:5px 0 4px;gap:4px;
  border-radius:28px;color:#b7b7bf;font:500 10px/1.2 var(--app-font);transition:color .15s ease;
  touch-action:none;transform:none;opacity:1;outline-offset:-1px;
}
body[data-app-page] #sjr-app-nav a svg{width:22px;height:22px;stroke-width:1.7;filter:none}
body[data-app-page] #sjr-app-nav a:before,body[data-app-page] #sjr-app-nav .current:before{content:none}
body[data-app-page] #sjr-app-nav .current{color:#fff;font-weight:650}
body[data-app-page] #sjr-app-nav .current svg{stroke-width:2;fill:#ffffff12}
body[data-app-page] #sjr-app-nav .dock-indicator{
  display:block;position:absolute;z-index:0;left:0;top:6px;height:56px;border-radius:29px;pointer-events:none;
  border:1px solid var(--glass-stroke);
  transition:transform .24s cubic-bezier(.2,.8,.2,1),width .2s;
}
body[data-app-page] #sjr-app-nav.dock-no-current .dock-indicator{opacity:0}
body[data-app-page] #sjr-app-nav.dock-dragging .dock-indicator{transition:transform .08s linear,width .08s}
body[data-app-page] #sjr-app-nav.dock-dragging a{color:#b7b7bf}
body[data-app-page] #sjr-app-nav.dock-dragging .dock-preview{color:#fff}
body[data-app-page] #sjr-app-nav a:active{opacity:1;transform:none;color:#fff}
body[data-app-page] #sjr-app-nav .dock-external svg{width:20px;height:20px}
body[data-app-page] #sjr-app-nav :is(a,button):focus-visible{outline:2px solid #fff;border-radius:28px}

/* Home keeps the photography; glass belongs to controls. */
body[data-app-page="home"] .post-copy{bottom:calc(146px + env(safe-area-inset-bottom,0px))}
body[data-app-page="home"] .post-cta{border-radius:24px;min-height:46px;height:46px;padding:0 18px;gap:20px;font-size:12px;box-shadow:0 2px 10px #0002}
body[data-app-page="home"] .post-share{
  min-width:46px;width:46px;height:46px;min-height:46px;border-radius:50%;
  background:#ffffff17;border:1px solid #ffffff27;backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);box-shadow:inset 0 1px 0 #ffffff10;
}
body[data-app-page="home"] .post-links{gap:10px}
body[data-app-page="home"] .photo-counter{font-size:10px;background:#0003;border:1px solid #ffffff16;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}

/* Remove competing red rules; selected segments remain legible. */
body[data-app-page="discover"] .topbar{background:#08080bf0;border:0}
body[data-app-page="discover"] .filters{height:48px;gap:6px;padding:3px 20px 7px;border:0}
body[data-app-page="discover"] .filters button{padding:0 13px;height:38px;min-height:38px;border:0!important;border-radius:21px;font-size:12px;color:#aaaab4;font-weight:550;background:transparent}
body[data-app-page="discover"] .filters button.active,body[data-app-page="discover"] .filters button[aria-selected="true"],body[data-app-page="discover"] .filters button[aria-pressed="true"]{color:#fff;background:#ffffff12}
body[data-app-page="discover"] .filters button:after{content:none!important}
body[data-app-page="discover"] .curation-heading h1{font-size:25px;letter-spacing:-.7px}
body[data-app-page="discover"] .curation-card{border-radius:18px}
body[data-app-page="discover"] .tile-photo{border-radius:14px}
body[data-app-page="discover"] #discovery{padding-bottom:var(--app-nav-height)}
body[data-app-page="profile"] .profile-heading{padding:22px 0 28px}
body[data-app-page="profile"] .profile-kicker{display:none}
body[data-app-page="profile"] .profile-identity h1{font-size:24px;letter-spacing:-.8px}
body[data-app-page="profile"] .profile-subtitle{font-size:12px;max-width:27ch;margin-top:7px}
body[data-app-page="profile"] .profile-library{border:0}
body[data-app-page="profile"] .profile-tabs{border-radius:25px;background:#ffffff08;padding:4px;gap:4px}
body[data-app-page="profile"] .profile-tab{height:44px;border:0;border-radius:22px;font-size:12px;gap:7px}
body[data-app-page="profile"] .profile-tab.active{background:#ffffff12;box-shadow:inset 0 1px 0 #ffffff0b;color:#fff}
body[data-app-page="profile"] .profile-card-image{border-radius:14px}
body[data-app-page="profile"] .profile-context{font-size:11px}
body[data-app-page="profile"] .profile-v3{padding-bottom:calc(122px + env(safe-area-inset-bottom,0px))}

/* Compact sheets explain their own purpose. */
body[data-app-page] .glass-sheet,body[data-app-page] .profile-dialog{
  position:fixed;inset:auto 12px calc(12px + env(safe-area-inset-bottom,0px));
  width:calc(100% - 24px);max-width:456px;max-height:85dvh;box-sizing:border-box;margin:0 auto;
  padding:8px 20px 22px;border-radius:28px;border:1px solid #ffffff20;color:#f7f7fa;
  background:linear-gradient(145deg,#ffffff07,transparent 50%),rgba(29,29,33,.96);
  box-shadow:0 16px 50px #0009,inset 0 1px 0 #ffffff10;overflow-y:auto;
  font-family:var(--app-font);
}
.glass-sheet::backdrop,body[data-app-page] .profile-dialog::backdrop{background:#0007;backdrop-filter:none;-webkit-backdrop-filter:none}
.glass-sheet-grip{height:4px;width:32px;border-radius:3px;background:#ffffff30;margin:0 auto 5px}
.glass-sheet-head{display:flex;align-items:center;justify-content:space-between;min-height:56px;gap:16px}
.glass-sheet h2{font-size:20px;line-height:1.1;letter-spacing:-.5px;margin:0;font-weight:650}
.glass-sheet-close{width:44px;height:44px;display:grid;place-items:center;background:none;border:0;color:#bfc0c8;border-radius:50%;padding:0;cursor:pointer}
.glass-sheet-close svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}
.glass-language-options{display:grid;gap:1px;background:#ffffff08;border-radius:16px;overflow:hidden;margin-top:7px}
.glass-language-options button{display:flex;align-items:center;justify-content:space-between;text-align:left;padding:0 16px;min-height:58px;border:0;background:transparent;color:#f5f5f8;font:550 15px/1.4 var(--app-font);cursor:pointer}
.glass-language-options button+button{border-top:1px solid #ffffff08}
.glass-language-options svg{width:22px;height:22px;fill:none;stroke:#f5f5f8;stroke-width:2;opacity:0}
.glass-language-options [aria-checked="true"] svg{opacity:1}
.glass-language-options button:active,.glass-sheet-close:active{background:#ffffff12}
body[data-app-page="profile"] .profile-dialog-head{border:0;height:56px}
body[data-app-page="profile"] .profile-dialog-head h2{font-size:20px;letter-spacing:-.5px}
body[data-app-page="profile"] .settings-group-title{font-size:11px;color:#a3a3ad;letter-spacing:.02em;margin:19px 0 7px;padding-left:3px;font-weight:500}
body[data-app-page="profile"] .settings-group{border-radius:16px;overflow:hidden;background:#ffffff08}
body[data-app-page="profile"] .settings-group .profile-setting-row{padding:14px;min-height:52px;font-size:13px}
body[data-app-page="profile"] .settings-group .profile-setting-row:last-child{border-bottom:0}
body[data-app-page="profile"] .settings-group a.profile-setting-row{display:flex;align-items:center;justify-content:space-between;color:#eee;text-decoration:none;box-sizing:border-box}
body[data-app-page="profile"] .profile-settings-note{font-size:11px;line-height:1.5;padding:0 3px;color:#999aa5}

@supports not (backdrop-filter:blur(1px)){
  body[data-app-page] #sjr-app-nav{background:#252528}
}
@media(min-width:560px){
  body[data-app-page] #sjr-app-nav{bottom:28px;border-radius:var(--radius-dock);max-width:calc(var(--app-width) - 30px)}
  body[data-app-page="tv"] #sjr-app-nav{bottom:28px}
}
@media(max-width:360px){
  body[data-app-page] .app-page-name{font-size:22px}
  body[data-app-page] .app-language,body[data-app-page] .app-labeled-control{padding:0 7px;font-size:10px;gap:5px}
  body[data-app-page="home"] .app-home-signature{width:82px;flex-basis:82px;margin-right:3px}
  body[data-app-page="home"] .app-home-signature img{width:82px}
  body[data-app-page] #sjr-app-nav{width:calc(100% - 20px)}
  body[data-app-page] #sjr-app-nav a{font-size:9px;gap:4px}
  body[data-app-page] #sjr-app-nav a svg{width:21px;height:21px}
  body[data-app-page="discover"] .filters{padding-left:16px;padding-right:16px;gap:2px}
  body[data-app-page="discover"] .filters button{padding:0 10px}
}
@media(max-height:690px) and (orientation:portrait){
  body[data-app-page="home"] .post-copy{bottom:calc(142px + env(safe-area-inset-bottom,0px))}
}
@media(prefers-reduced-motion:reduce){
  body[data-app-page] #sjr-app-nav .dock-indicator{transition:none}
}
@media(prefers-reduced-transparency:reduce),(prefers-contrast:more){
  body[data-app-page] #sjr-app-nav,body[data-app-page] .glass-sheet,body[data-app-page] .profile-dialog{background:#242427;backdrop-filter:none;-webkit-backdrop-filter:none}
  body[data-app-page] #sjr-app-nav .dock-indicator{background:#48484e;border-color:#72727c}
}

/* Full-screen posts use the Reels action rail. Photo position stays in the dots. */
body[data-app-page="home"] .post-copy{right:78px}
body[data-app-page="home"] .post-lead{color:#e2e2e2}
body[data-app-page="home"] .post-kind{color:#fff}
body[data-app-page="home"] .post-meta .separator{background:#fff}
body[data-app-page="home"] .post-cta{background:#fff;color:#000}
body[data-app-page="home"] .post-cta svg{color:#000}
body[data-app-page="home"] .home-reactions{position:absolute;z-index:4;right:12px;bottom:calc(146px + env(safe-area-inset-bottom,0px));display:flex;flex-direction:column;gap:12px;width:44px}
body[data-app-page="home"] .home-reactions button{display:grid;place-items:center;width:44px;height:44px;min-height:44px;padding:0;border:0;background:none;color:#fff;cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent}
body[data-app-page="home"] .home-reactions svg{width:27px;height:27px;fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 1px 3px #0008)}
body[data-app-page="home"] .home-reactions [data-home-like][aria-pressed="true"]{color:#fff}
body[data-app-page="home"] .home-reactions [aria-pressed="true"] svg{fill:currentColor}
body[data-app-page="home"] .home-reactions button:active{transform:scale(.9)}
body[data-app-page="home"] .home-reactions button:focus-visible{outline:2px solid #fff;outline-offset:1px;border-radius:12px}


body[data-app-page="discover"] .ref-social{display:flex;align-items:center;gap:4px;margin:-8px -8px 15px;min-height:44px}
body[data-app-page="discover"] .ref-social .ref-icon{background:none;border:0;width:44px;height:44px;color:#fff}
body[data-app-page="discover"] .ref-social .ref-icon svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round}
body[data-app-page="discover"] .ref-social [data-save-id]{margin-left:auto}
body[data-app-page="discover"] .ref-social [data-like-id][aria-pressed="true"]{color:#fff}
body[data-app-page="discover"] .ref-social [aria-pressed="true"] svg{fill:currentColor}
body[data-app-page="discover"] .ref-actions:empty{display:none}
body[data-app-page="discover"] .ref-primary{background:#fff;color:#000;flex:1}


/* Shared titles and neutral glass controls. The logo is reserved for a later revision. */
body[data-app-page] .app-page-dot{color:#ff3b36;margin-left:1px}
body[data-app-page] .app-page-name{font:650 24px/1.1 var(--app-font);letter-spacing:-.75px;color:#fff;white-space:nowrap}
body[data-app-page] #sjr-app-nav .current:after{content:none}
body[data-app-page="profile"] .profile-topbar{position:sticky;top:0;z-index:20;background:#09090bf2;backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px)}
body[data-app-page="home"] .post-kind{background:none;border:0;color:#ff554e;padding:0;backdrop-filter:none;-webkit-backdrop-filter:none}
@media(max-width:360px){
 body[data-app-page] .app-page-name{font-size:22px}
 body[data-app-page="home"] .post-copy{right:68px}
 body[data-app-page="home"] .home-reactions{right:8px}
}
@media(max-height:690px) and (orientation:portrait){
 body[data-app-page="home"] .home-reactions{bottom:calc(142px + env(safe-area-inset-bottom,0px));gap:8px}
}
