/* Grandstand: laid out like Instagram (Travis, 2 Dec 2026), the Feed and the Profile only. Light and dark follow the phone. */
:root{
  --bg:#fff; --text:#000; --muted:#737373; --line:#dbdbdb; --sep:#efefef; --soft:#efefef; --soft-hover:#dbdbdb;
  --blue:#0095f6; --red:#ff3040; --sheet:#fff; --veil:rgba(0,0,0,.65); --skeleton:#efefef;
  --top:env(safe-area-inset-top,0px); --bottom:env(safe-area-inset-bottom,0px);
  --rail:0px; --bar:50px;
  color-scheme:light;
}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]){
  --bg:#000; --text:#f5f5f5; --muted:#a8a8a8; --line:#363636; --sep:#262626; --soft:#363636; --soft-hover:#262626;
  --sheet:#262626; --veil:rgba(0,0,0,.75); --skeleton:#121212; color-scheme:dark;
}}
:root[data-theme="dark"]{
  --bg:#000; --text:#f5f5f5; --muted:#a8a8a8; --line:#363636; --sep:#262626; --soft:#363636; --soft-hover:#262626;
  --sheet:#262626; --veil:rgba(0,0,0,.75); --skeleton:#121212; color-scheme:dark;
}
*{box-sizing:border-box;margin:0;padding:0;-webkit-tap-highlight-color:transparent}
html,body{background:var(--bg);color:var(--text)}
body{font:14px/18px -apple-system,BlinkMacSystemFont,"SF Pro Text","Segoe UI",Roboto,Helvetica,Arial,sans-serif;-webkit-font-smoothing:antialiased;-webkit-text-size-adjust:100%;overscroll-behavior-y:none}
a{color:inherit;text-decoration:none}
button{font:inherit;color:inherit;background:none;border:0;cursor:pointer}
input,textarea{font:inherit;color:inherit}
img,video{display:block}
[hidden]{display:none!important}
.ic{display:inline-grid;place-items:center;width:24px;height:24px;flex:none}
.ic svg{width:24px;height:24px;display:block}
.wordmark{font-family:"Grand Hotel",cursive;font-size:29px;line-height:1;letter-spacing:.2px;white-space:nowrap}
.wordmark.big{font-size:56px}

/* ---------- the frame: a bottom bar on a phone, a rail on a computer ---------- */
.main{min-height:100vh;padding-bottom:calc(var(--bar) + var(--bottom))}
.rail{position:fixed;z-index:30;left:0;right:0;bottom:0;height:calc(var(--bar) + var(--bottom));padding-bottom:var(--bottom);display:flex;align-items:center;justify-content:space-around;background:var(--bg);border-top:1px solid var(--sep)}
.rail-logo{display:none}
.nav-item{flex:1;height:100%;display:grid;place-items:center}
.nav-item .lbl{display:none}
.me-av{width:24px;height:24px;border-radius:50%;object-fit:cover;background:var(--soft)}
.nav-item.on .me-av{outline:2px solid var(--text);outline-offset:1px;width:22px;height:22px}
.topbar{position:sticky;top:0;z-index:20;height:calc(44px + var(--top));padding:var(--top) 16px 0;display:flex;align-items:center;background:var(--bg)}
.topbar.center{justify-content:center;border-bottom:1px solid var(--sep)}
.topbar.center b{font-size:16px;font-weight:600}
.topbar.back{justify-content:space-between;padding:var(--top) 8px 0;border-bottom:1px solid var(--sep)}
.topbar.back b{font-size:16px;font-weight:600}
.topbar.back span{width:40px}
.icon-btn{width:40px;height:40px;display:grid;place-items:center}
body.signed-out .rail{display:none}
body.signed-out .main{padding:0}

@media (min-width:768px){
  :root{--rail:73px;--bar:0px}
  .main{padding:0 0 0 var(--rail)}
  .rail{top:0;right:auto;bottom:0;width:var(--rail);height:auto;padding:8px 12px 20px;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:4px;border-top:0;border-right:1px solid var(--sep)}
  .rail-logo{display:flex;align-items:center;height:73px;padding:0 12px;margin-bottom:19px}
  .rail-logo .wordmark{display:none}
  .rail-mark{width:24px;height:24px}
  .nav-item{flex:none;height:48px;display:flex;align-items:center;gap:16px;padding:12px;border-radius:8px;transition:background .15s}
  .nav-item:hover{background:var(--sep)}
  .nav-item.on .lbl{font-weight:700}
  .topbar{display:none}
}
@media (min-width:1264px){
  :root{--rail:245px}
  .rail-logo .wordmark{display:block;padding-top:4px}
  .rail-mark{display:none}
  .nav-item .lbl{display:block;font-size:16px;line-height:20px}
}

/* ---------- the Feed ---------- */
.feed-col{max-width:470px;margin:0 auto}
@media (min-width:768px){ .feed-col{padding-top:24px} }
.post{padding-bottom:16px;margin-bottom:8px}
@media (min-width:768px){ .post{border-bottom:1px solid var(--sep);padding-bottom:20px;margin-bottom:20px} }
.post-head{display:flex;align-items:center;gap:10px;height:54px;padding:0 4px 0 12px}
@media (min-width:768px){ .post-head{padding:0 0 0 4px;height:58px} }
.av{width:32px;height:32px;border-radius:50%;object-fit:cover;background:var(--soft);flex:none}
.av.ring{padding:2px;background:linear-gradient(var(--bg),var(--bg)) padding-box,linear-gradient(45deg,#d4d4d4,#8e8e8e) border-box;border:1.5px solid transparent;width:42px;height:42px}
.post-head .who{flex:1;min-width:0;display:flex;align-items:baseline;gap:4px;white-space:nowrap}
.post-head .who b{font-weight:600;overflow:hidden;text-overflow:ellipsis}
.post-head .who time{color:var(--muted)}
.post-more{width:40px;height:40px;display:grid;place-items:center}

.media{position:relative;background:var(--skeleton);overflow:hidden;user-select:none;-webkit-user-select:none}
@media (min-width:768px){ .post .media{border-radius:4px;border:1px solid var(--sep)} }
.strip{display:flex;height:100%;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;scrollbar-width:none;overscroll-behavior-x:contain}
.strip::-webkit-scrollbar{display:none}
.slide{position:relative;flex:0 0 100%;height:100%;scroll-snap-align:center;scroll-snap-stop:always}
.slide img,.slide video{width:100%;height:100%;object-fit:cover;-webkit-touch-callout:none}
.count{position:absolute;top:14px;right:14px;z-index:2;padding:4px 8px;border-radius:12px;background:rgba(26,26,26,.8);color:#fff;font-size:12px;line-height:16px;font-weight:500;transition:opacity .3s}
.count.fade{opacity:0}
.arrow{position:absolute;top:50%;z-index:2;width:28px;height:28px;margin-top:-14px;border-radius:50%;background:rgba(255,255,255,.8);color:#262626;display:none;place-items:center;box-shadow:0 0 5px rgba(0,0,0,.15)}
.arrow svg{width:12px;height:12px}
.arrow.l{left:8px}.arrow.r{right:8px}
@media (hover:hover){ .media.many:hover .arrow.on{display:grid} }
.mute{position:absolute;right:12px;bottom:12px;z-index:2;width:28px;height:28px;border-radius:50%;background:rgba(38,38,38,.85);color:#fff;display:grid;place-items:center}
.mute svg{width:12px;height:12px}
.burst{position:absolute;left:50%;top:50%;z-index:3;width:96px;height:96px;margin:-48px 0 0 -48px;color:#fff;pointer-events:none;opacity:0;filter:drop-shadow(0 0 12px rgba(0,0,0,.25))}
.burst.go{animation:burst .9s ease-out}
@keyframes burst{15%{opacity:.95;transform:scale(1.2)}30%{transform:scale(.95)}45%,80%{opacity:.95;transform:scale(1)}100%{opacity:0;transform:scale(0)}}
.paused-ic{position:absolute;left:50%;top:50%;width:64px;height:64px;margin:-32px 0 0 -32px;border-radius:50%;background:rgba(0,0,0,.45);color:#fff;display:grid;place-items:center;pointer-events:none}
.paused-ic svg{width:26px;height:26px;margin-left:4px}

.actions{display:flex;align-items:center;height:46px;padding:0 8px;position:relative}
@media (min-width:768px){ .actions{padding:0 0 0 -8px;margin-left:-8px} }
.act{width:40px;height:40px;display:grid;place-items:center;transition:transform .1s}
.act svg,.post-more svg,.icon-btn svg,.sheet-title .x svg{width:24px;height:24px}
.sheet-title .x svg{width:20px;height:20px}
.act:active{transform:scale(.88)}
.act.liked{color:var(--red)}
.act.liked svg{animation:like .45s ease-in-out}
@keyframes like{25%{transform:scale(1.2)}50%{transform:scale(.95)}100%{transform:scale(1)}}
.dots{position:absolute;left:50%;transform:translateX(-50%);display:flex;gap:4px}
.dots.on-media{top:auto;bottom:16px;z-index:2}
.dots.on-media i{background:#fff;opacity:.4}
.dots.on-media i.on{background:#fff;opacity:1}
.dots i{width:6px;height:6px;border-radius:50%;background:var(--text);opacity:.25;transition:opacity .2s}
.dots i.on{background:var(--blue);opacity:1}
.post-body{padding:0 16px}
@media (min-width:768px){ .post-body{padding:0 4px} }
.likes{font-weight:600;margin-bottom:6px;display:block;text-align:left}
.likes span{font-weight:400}
.caption{white-space:pre-wrap;word-wrap:break-word;margin-bottom:6px}
.caption b,.cmt b{font-weight:600;margin-right:4px}
.caption.clamp{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.more-btn{color:var(--muted)}
.view-all{color:var(--muted);display:block;margin-bottom:4px;text-align:left}
.cmt{margin-bottom:4px;word-wrap:break-word}
.add-cmt{display:none}
@media (min-width:768px){
  .add-cmt{display:flex;align-items:center;gap:8px;margin-top:8px}
  .add-cmt input{flex:1;border:0;outline:0;background:none;padding:4px 0;color:var(--text)}
  .add-cmt input::placeholder{color:var(--muted)}
}
.post-btn{color:var(--blue);font-weight:600}
.post-btn:disabled{opacity:.3;cursor:default}
.when{display:block;color:var(--muted);font-size:12px;line-height:16px;margin-top:4px}

.more-spin{height:60px;display:grid;place-items:center}
.more-spin::after,.spin{content:"";width:22px;height:22px;border-radius:50%;border:2px solid var(--line);border-top-color:var(--muted);animation:spin .8s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
.empty{display:flex;flex-direction:column;align-items:center;text-align:center;padding:72px 32px;gap:12px}
.empty .ring-ic{width:62px;height:62px;border:2px solid var(--text);border-radius:50%;display:grid;place-items:center}
.empty .ring-ic svg{width:30px;height:30px}
.empty h2{font-size:30px;line-height:36px;font-weight:800}
.empty p{color:var(--text);max-width:340px}
.hint{margin:12px 16px 4px;padding:12px 14px;border-radius:12px;background:var(--sep);display:flex;gap:10px;align-items:flex-start;font-size:13px;line-height:17px}
.hint p{flex:1}
.hint .x{width:24px;height:24px;display:grid;place-items:center;color:var(--muted)}
.hint .x svg{width:14px;height:14px}

/* ---------- the Profile ---------- */
.prof-col{max-width:935px;margin:0 auto}
.prof-head{display:flex;align-items:center;gap:28px;padding:16px 16px 0}
.prof-av img{width:77px;height:77px;border-radius:50%;object-fit:cover;background:var(--soft)}
.prof-info{flex:1;min-width:0}
.prof-row1 h1{display:none;font-size:20px;line-height:25px;font-weight:400;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.prof-row1 .prof-btns{display:none}
.prof-stats{list-style:none;display:flex;gap:28px;margin-top:8px}
.prof-stats li{display:flex;flex-direction:column;font-size:14px;line-height:18px}
.prof-stats li b{font-weight:600;font-size:16px}
.prof-bio{display:none}
.prof-bio-phone{padding:12px 16px 0}
.prof-bio-phone b{font-weight:600;display:block}
.prof-bio-phone p,.prof-bio p{white-space:pre-wrap}
.prof-btns{display:flex;gap:8px}
.prof-btns.phone{padding:14px 16px 0}
.prof-btns.phone .btn-grey{flex:1}
.btn-grey{height:32px;padding:0 16px;border-radius:8px;background:var(--soft);font-weight:600;font-size:14px;transition:background .15s}
.btn-grey:hover{background:var(--soft-hover)}
.btn-blue{height:32px;padding:0 16px;border-radius:8px;background:var(--blue);color:#fff;font-weight:600}
.btn-blue:disabled{opacity:.5}
.prof-tabs{display:flex;justify-content:center;border-top:1px solid var(--sep);margin-top:16px}
.prof-tabs>span{display:flex;align-items:center;justify-content:center;gap:6px;height:44px;flex:1;border-top:1px solid var(--text);margin-top:-1px}
.prof-tabs>span>span{display:none;font-size:12px;font-weight:600;letter-spacing:1px;text-transform:uppercase}
.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:2px}
.tile{position:relative;aspect-ratio:3/4;overflow:hidden;background:var(--skeleton);cursor:pointer}
.tile img{width:100%;height:100%;object-fit:cover}
.tile .kind{position:absolute;top:8px;right:8px;color:#fff;filter:drop-shadow(0 0 2px rgba(0,0,0,.4))}
.tile .kind svg{width:18px;height:18px}
.tile .over{position:absolute;inset:0;display:none;align-items:center;justify-content:center;gap:28px;background:rgba(0,0,0,.3);color:#fff;font-weight:700;font-size:16px}
.tile .over span{display:flex;align-items:center;gap:6px}
.tile .over svg{width:19px;height:19px}
@media (hover:hover){ .tile:hover .over{display:flex} }
@media (min-width:768px){
  .prof-col{padding:30px 20px 0}
  .prof-head{gap:0;padding:0 0 0;margin-bottom:44px;align-items:flex-start}
  .prof-av{width:290px;display:flex;justify-content:center;flex:none}
  .prof-av img{width:150px;height:150px}
  .prof-row1{display:flex;align-items:center;gap:20px;min-height:40px}
  .prof-row1 h1{display:block}
  .prof-row1 .prof-btns{display:flex}
  .prof-stats{flex-direction:row;gap:40px;margin:20px 0}
  .prof-stats li{display:block;font-size:16px;line-height:20px}
  .prof-bio{display:block}
  .prof-bio b{font-weight:600;display:block}
  .prof-btns.phone,.prof-bio-phone{display:none}
  .prof-tabs{margin-top:0}
  .prof-tabs>span{flex:none;height:52px;gap:6px}
  .prof-tabs>span>span{display:inline}
  .prof-tabs .ic,.prof-tabs .ic svg{width:12px;height:12px}
  .grid{gap:4px}
}

/* ---------- a post opened on a computer ---------- */
.modal{position:fixed;inset:0;z-index:50;background:var(--veil);display:flex;align-items:center;justify-content:center;padding:0 64px}
.modal-x{position:fixed;top:12px;right:12px;width:40px;height:40px;display:grid;place-items:center;color:#fff}
.modal-x svg{width:24px;height:24px}
.modal-box{display:flex;max-height:calc(100vh - 48px);background:var(--bg);border-radius:4px;overflow:hidden}
.modal-box .media{border:0;border-radius:0;flex:none;background:#000}
.side{width:405px;min-width:335px;display:flex;flex-direction:column;border-left:1px solid var(--sep)}
.side .post-head{border-bottom:1px solid var(--sep);padding:0 4px 0 14px;height:60px;flex:none}
.side-scroll{flex:1;overflow-y:auto;padding:14px 16px}
.side-cmt{display:flex;gap:14px;margin-bottom:16px}
.side-cmt .txt{flex:1;min-width:0;word-wrap:break-word;white-space:pre-wrap}
.side-cmt .txt b{font-weight:600;margin-right:4px}
.side-cmt .meta{display:flex;gap:12px;margin-top:6px;color:var(--muted);font-size:12px;line-height:16px}
.side-cmt .meta button{color:var(--muted);font-weight:600;font-size:12px}
.side-foot{border-top:1px solid var(--sep);padding:6px 16px 0;flex:none}
.side-foot .actions{margin-left:-8px;padding:0}
.side-foot .when{margin:0 0 14px;text-transform:uppercase;font-size:10px;letter-spacing:.2px}
.side-add{display:flex;align-items:center;gap:12px;border-top:1px solid var(--sep);padding:8px 16px;flex:none}
.side-add textarea{flex:1;border:0;outline:0;background:none;resize:none;height:18px;max-height:80px;line-height:18px}
.side-add textarea::placeholder{color:var(--muted)}

/* ---------- sheets (phone) and dialogs (computer) ---------- */
.sheet-bg{position:fixed;inset:0;z-index:60;background:rgba(0,0,0,.4);animation:fade .2s}
@keyframes fade{from{opacity:0}}
.sheet{position:fixed;z-index:61;left:0;right:0;bottom:0;max-height:88vh;display:flex;flex-direction:column;background:var(--sheet);border-radius:16px 16px 0 0;padding-bottom:var(--bottom);animation:up .28s cubic-bezier(.2,.8,.2,1)}
@keyframes up{from{transform:translateY(100%)}}
.sheet.tall{height:88vh}
.grabber{width:40px;height:4px;border-radius:2px;background:var(--line);margin:8px auto 0;flex:none}
.sheet-title{text-align:center;font-weight:700;font-size:16px;padding:14px 0 12px;border-bottom:1px solid var(--line);flex:none;position:relative}
.sheet-title .x{position:absolute;right:8px;top:6px;width:40px;height:40px;display:grid;place-items:center}
.sheet-body{flex:1;overflow-y:auto;padding:16px}
.sheet-body .side-cmt .av{width:32px;height:32px}
.sheet-add{display:flex;align-items:center;gap:12px;padding:10px 16px;border-top:1px solid var(--line);flex:none}
.sheet-add input{flex:1;height:40px;border:1px solid var(--line);border-radius:20px;padding:0 16px;background:var(--bg);outline:0;font-size:16px}
.menu{display:flex;flex-direction:column}
.menu button{height:48px;border-top:1px solid var(--line);font-size:14px}
.menu button:first-child{border-top:0}
.menu .danger{color:#ed4956;font-weight:700}
.menu .strong{font-weight:700}
.nothing{color:var(--muted);text-align:center;padding:28px 0}
@media (min-width:768px){
  .sheet{left:50%;top:50%;bottom:auto;width:400px;max-height:80vh;transform:translate(-50%,-50%);border-radius:12px;padding-bottom:0;animation:pop .18s ease-out}
  .sheet.tall{height:auto;max-height:80vh;width:480px}
  @keyframes pop{from{opacity:0;transform:translate(-50%,-50%) scale(1.1)}}
  .grabber{display:none}
  .sheet-bg{background:var(--veil)}
}

/* forms: Edit profile, People, a caption */
.field{display:block;margin-bottom:16px}
.field span{display:block;font-weight:600;margin-bottom:6px}
.field input,.field textarea{width:100%;border:1px solid var(--line);border-radius:8px;padding:10px 12px;background:var(--bg);outline:0;font-size:16px}
.field textarea{min-height:90px;resize:vertical}
.field input:focus,.field textarea:focus{border-color:var(--muted)}
.photo-row{display:flex;align-items:center;gap:16px;margin-bottom:20px;padding:12px;border-radius:12px;background:var(--sep)}
.photo-row img{width:56px;height:56px;border-radius:50%;object-fit:cover;background:var(--soft)}
.photo-row b{display:block;font-weight:600}
.photo-row .link{color:var(--blue);font-weight:600;font-size:13px}
.form-foot{display:flex;justify-content:flex-end;gap:8px;margin-top:4px}
.person{display:flex;gap:12px;align-items:flex-start;padding:12px 0;border-bottom:1px solid var(--sep)}
.person:last-of-type{border-bottom:0}
.person .av{width:44px;height:44px;cursor:pointer}
.person .info{flex:1;min-width:0}
.person .info b{font-weight:600}
.person .info small{display:block;color:var(--muted);font-size:12px;line-height:16px}
.person .link-box{display:flex;gap:6px;margin-top:8px;flex-wrap:wrap}
.person .link-box button{height:28px;padding:0 12px;font-size:13px}
.person .off{color:var(--muted);font-size:13px;margin-top:6px}
.add-person{display:flex;gap:8px;margin-top:16px}
.add-person input{flex:1;height:36px;border:1px solid var(--line);border-radius:8px;padding:0 12px;background:var(--bg);outline:0;font-size:16px}

.toast{position:fixed;z-index:80;left:50%;bottom:calc(var(--bar) + var(--bottom) + 16px);transform:translateX(-50%);background:#262626;color:#fff;padding:12px 16px;border-radius:8px;font-size:14px;max-width:calc(100vw - 32px);box-shadow:0 4px 12px rgba(0,0,0,.15);animation:fade .2s}
:root[data-theme="dark"] .toast{background:#f5f5f5;color:#000}

/* signed out */
.gate{min-height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:20px;padding:32px;text-align:center}
.gate p{color:var(--muted);max-width:320px;font-size:15px;line-height:21px}
