/* Colors, fonts and atmosphere come from the airport's shared star-ui.css. */
:root{--bg:var(--star-ground);--paper:var(--star-surface);--ink:var(--star-ink);--muted:var(--star-muted);--line:var(--star-line);--accent:var(--star-accent);--soft:var(--star-raised);--red:var(--star-danger);--shadow:var(--star-shadow)}
*{box-sizing:border-box}
/* Route views own position restoration; avoid a second correction during native rubberbanding. */
html{overflow-anchor:none}
/* Keep mobile browser chrome changes out of document sizing and background scaling. */
/* Keep native panning and bounce; suppress page zoom gestures on touch screens. */
@media(pointer:coarse){html{touch-action:pan-x pan-y}}
.star-atmosphere{bottom:auto;height:100lvh;transform:translateZ(0)}
body{margin:0;color:var(--ink);font-family:'LXGW WenKai TC','PingFang SC','Microsoft YaHei',sans-serif;font-synthesis:none;font-size:16px;line-height:1.6}
button,input,textarea{font:inherit}
button,a{-webkit-tap-highlight-color:transparent}
button{cursor:pointer;border:0;background:none;color:inherit}
button:disabled{cursor:default;opacity:.5}
a{color:inherit;text-decoration:none}
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
svg{width:22px;height:22px;vertical-align:middle;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
h1,h2,h3,p{margin:0}
h1{font-size:21px;font-weight:500}
h2{font-size:24px;line-height:1.4;font-weight:500}
h3{font-size:16px;font-weight:500}
.layout{max-width:1040px;margin:auto;padding:24px 24px 60px;display:grid;grid-template-columns:220px minmax(0,1fr);gap:28px;min-height:100svh}
.sidebar{position:sticky;top:24px;height:calc(100svh - 48px);padding:12px 10px;display:flex;flex-direction:column}
.brand{display:flex;align-items:center;gap:12px;padding:8px 4px;font-size:22px;white-space:nowrap}
.side-nav{display:grid;gap:8px;margin:32px 0 24px}
.nav-link{display:flex;align-items:center;gap:16px;position:relative;padding:13px 16px;border-radius:12px;font-size:17px;color:var(--muted);min-height:48px}
.nav-link.active{background:var(--star-tint);color:var(--accent)}
.primary{background:var(--star-action);color:var(--star-action-ink);border-radius:10px;padding:9px 20px;font-weight:500;min-height:42px}
.publish-wide{width:100%}
#side-account{margin-top:auto}
#main{min-width:0;min-height:80svh;padding-bottom:32px}
.topbar{position:sticky;top:12px;z-index:8;background:var(--star-popover);border:1px solid var(--star-edge);border-radius:20px;box-shadow:var(--shadow);overflow:hidden}
.topline{height:66px;display:flex;align-items:center;justify-content:space-between;padding:0 20px;gap:12px}
.title-wrap,.top-actions{display:flex;align-items:center;gap:10px;min-width:0}
.title-wrap{flex:1}.title-wrap>div{min-width:0}.top-actions{flex-shrink:0}
.title-wrap h1{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:360px}
.topline .mini-caption{display:block;color:var(--muted);font-size:12px}
.icon-button{padding:9px;display:inline-grid;place-items:center;border-radius:10px;min-width:40px;min-height:40px}
.tabs{display:flex;height:46px;padding:0 20px;gap:28px}
.tab{padding:0 7px 10px;color:var(--muted);position:relative;font-size:16px}
.tab.active{color:var(--accent)}
.tab.active:after{content:"";position:absolute;bottom:0;left:7px;right:7px;height:2px;background:var(--accent);border-radius:2px}
.compose-inline{padding:18px 20px 14px;margin:12px 0;border:1px solid var(--star-edge);border-radius:16px;background:var(--paper)}
.compose-prompt{text-align:left;color:var(--muted);flex:1;min-width:0;padding:8px 0;font-size:16px}
.compose-inline>.composer-text{display:block;min-height:64px;height:64px;max-height:220px;margin:0 0 10px;padding:4px 0;overflow-y:auto}
.compose-inline .composer-bottom{border-top:0;padding-top:0}
.compose-inline .primary{min-width:76px;border-radius:22px}
.composer-tools{display:flex;align-items:center;gap:8px;color:var(--accent)}
.composer-submit{display:flex;align-items:center;gap:10px}
.avatar{width:42px;height:42px;border-radius:50%;background:var(--star-tint);color:var(--accent);display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;overflow:hidden;font-size:18px}
.avatar img{width:100%;height:100%;object-fit:cover}
.avatar.large{width:76px;height:76px;font-size:30px;border:4px solid var(--star-popover)}
.avatar.small{width:32px;height:32px;font-size:14px}
.feed-label,.section-heading{padding:14px 4px 2px;color:var(--muted);font-size:13px}
.post{padding:18px 20px 12px;margin:12px 0;border:1px solid var(--star-edge);border-radius:20px;background:var(--paper);display:flex;gap:12px;position:relative;box-shadow:var(--shadow)}
.post-content{flex:1;min-width:0}
.post-top{display:flex;align-items:center;gap:8px;min-height:25px;flex-wrap:wrap;padding-right:25px}
.post-name{font-size:16px;max-width:230px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.realm{font-size:11px;line-height:1.6;padding:1px 6px;background:var(--star-tint);color:var(--accent);border-radius:5px;white-space:nowrap}
.realm.high{color:var(--star-violet)}
.post-time{font-size:12px;color:var(--muted);white-space:nowrap}
.post-body{white-space:pre-wrap;overflow-wrap:anywhere;font-size:16px;line-height:1.75;margin:8px 0 10px;cursor:pointer}
.post-more{position:absolute;right:8px;top:10px;color:var(--muted)}
.post-more svg{width:18px}
.actions{display:flex;justify-content:space-between;margin-top:8px;max-width:430px;color:var(--muted)}
.action{transition:color .12s ease,background-color .12s ease;font-size:12px;display:flex;align-items:center;gap:6px;padding:9px 4px;min-width:38px;min-height:38px;border-radius:10px}
.action svg{width:19px;height:19px}
.action.on{color:var(--accent)}
.action.like.on{color:var(--star-pink)}
.action.like.on svg{fill:var(--star-tint)}
.images{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;border-radius:12px;overflow:hidden;margin:8px 0}
.images.single{grid-template-columns:1fr;max-width:450px}
.images button{padding:0;overflow:hidden}
.images img{width:100%;height:180px;object-fit:cover;display:block}
.images.single img{height:auto;max-height:460px;object-fit:cover}
.empty{padding:48px 24px;text-align:center;color:var(--muted)}
.empty-icon{width:50px;height:50px;display:grid;place-items:center;border-radius:16px;background:var(--star-tint);color:var(--accent);margin:0 auto 14px}
.empty-icon svg{width:25px;height:25px}
.empty h3{color:var(--ink);font-size:16px}
.empty p{font-size:13px;margin-top:8px}
.empty button{font-size:14px;margin-top:18px}
.mobile-nav{display:none}
.loading{padding:60px 20px;text-align:center;color:var(--muted);font-size:14px}
.spinner{display:inline-block;width:17px;height:17px;border:2px solid var(--line);border-top-color:var(--accent);border-radius:50%;animation:spin .7s linear infinite;vertical-align:middle;margin-right:8px}
@keyframes spin{to{transform:rotate(360deg)}}
.load-more{display:block;margin:20px auto;padding:10px 24px;background:var(--soft);color:var(--accent);border-radius:10px;font-size:14px}
/* Paint the profile once: overlapping translucent panels caused a dark seam. */
.profile-card{margin-top:12px;border:1px solid var(--star-edge);border-radius:20px;background:var(--paper);overflow:hidden}
.profile-cover{height:90px}
.profile-info{display:flow-root;padding:0 20px 20px}
.profile-first{display:flex;justify-content:space-between;align-items:flex-end;margin-top:-34px;position:relative}
.outline{border:1px solid var(--line);border-radius:10px;padding:7px 16px;font-size:14px;background:var(--star-input);min-height:38px}
.profile-info h2{font-size:23px;display:flex;align-items:center;gap:9px;margin-top:12px;flex-wrap:wrap;overflow-wrap:anywhere}
.handle{font-size:13px;color:var(--muted)}
.bio{font-size:15px;margin-top:12px;white-space:pre-wrap;overflow-wrap:anywhere}
.profile-counts{display:flex;gap:24px;margin-top:16px;font-size:14px;color:var(--muted)}
.profile-counts b{font-size:17px;color:var(--ink);font-weight:500;margin-right:5px}
.cultivation-card{border-top:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 0 0;margin-top:18px}
.cultivation-card .number{font-size:22px;font-variant-numeric:tabular-nums;line-height:1.3}
.cultivation-card .label{font-size:12px;color:var(--muted);margin-bottom:5px}
.text-link{display:flex;align-items:center;gap:5px;color:var(--accent);font-size:14px}
.text-link svg{width:16px;height:16px}
.profile-menu{display:flex;gap:16px;margin-top:16px;color:var(--muted);font-size:13px;flex-wrap:wrap}
.profile-menu button,.profile-menu a{padding:5px 0}
.profile-menu svg{width:16px;margin-right:5px}
.search-form{display:flex;gap:10px;padding:16px 0 6px}
.input{width:100%;min-width:0;border:1px solid var(--line);border-radius:10px;padding:10px 13px;background:var(--star-input);color:var(--ink);outline:none;font-size:16px}
.input::placeholder,.composer-text::placeholder{color:var(--muted)}
.input:focus{border-color:var(--accent)}
.search-form .primary{padding:9px 18px;font-size:15px;white-space:nowrap}
.person,.notice{display:flex;align-items:center;gap:12px;padding:16px;margin-top:10px;border:1px solid var(--star-edge);border-radius:16px;background:var(--paper)}
.person-info,.notice-content{flex:1;min-width:0}
.person h3{font-size:16px;display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.person p{color:var(--muted);font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.notice{align-items:flex-start}
.notice.unread{background:var(--star-tint)}
.notice-content p{font-size:15px}
.notice-content .quote{font-size:13px;color:var(--muted);margin-top:6px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:block}
.notice time{font-size:12px;color:var(--muted)}
.count-badge{background:var(--star-action);color:var(--star-action-ink);border:2px solid var(--star-popover);border-radius:20px;min-width:18px;height:18px;font-size:10px;line-height:14px;text-align:center;position:absolute;top:7px;left:30px;padding:0 3px}
.shop-balance{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 20px;margin-top:12px;background:var(--paper);border:1px solid var(--star-edge);border-radius:20px}
.shop-balance span{font-size:13px;color:var(--muted)}
.shop-balance strong{display:block;font-size:30px;font-weight:500;line-height:1.3;margin-top:3px;font-variant-numeric:tabular-nums}
.shop-tabs{display:flex;gap:8px;padding:16px 0 0}
.chip{border:1px solid var(--line);border-radius:10px;background:var(--star-input);padding:7px 18px;font-size:14px;color:var(--muted);min-height:38px}
.chip.active{background:var(--star-tint);color:var(--accent);border-color:var(--accent)}
.shop-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding-top:14px}
.item-card{border:1px solid var(--star-edge);border-radius:20px;padding:18px;display:flex;flex-direction:column;align-items:flex-start;background:var(--paper);box-shadow:var(--shadow)}
.item-card h3{font-size:19px}
.item-card p{font-size:13px;color:var(--muted);line-height:1.65;margin:7px 0 18px;min-height:43px}
.item-card strong{color:var(--accent);font-size:23px;font-weight:500;margin-top:auto}
.item-card strong small{font-size:13px}
.item-card button{width:100%;font-size:15px;margin-top:14px}
.notice-banner{margin-top:12px;padding:10px 14px;border:1px solid var(--line);border-radius:10px;background:var(--star-input);color:var(--muted);font-size:13px}
.notice-banner button{padding:0}
.modal-backdrop{position:fixed;inset:0;z-index:100;background:rgba(3,7,22,.65);backdrop-filter:blur(6px);display:flex;align-items:center;justify-content:center;padding:20px}
.modal{width:100%;max-width:520px;max-height:90dvh;overflow-y:auto;background:var(--star-popover);border:1px solid var(--star-edge);border-radius:20px;padding:24px;box-shadow:var(--shadow)}
.modal-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}
.modal-header h2{font-size:21px}
.modal-description{font-size:14px;color:var(--muted);margin:-6px 0 18px}
.modal label{display:block;font-size:14px;color:var(--muted);margin:14px 0 7px}
.modal textarea{resize:vertical;min-height:110px;line-height:1.7}
.modal .full{width:100%;margin-top:20px}
.modal .form-error{font-size:13px;color:var(--red);margin-top:12px;min-height:20px}
.login-links{display:flex;justify-content:space-between;font-size:13px;color:var(--accent);margin-top:16px}
.composer-text{border:0;outline:none;resize:none;width:100%;min-height:170px;font-size:16px;line-height:1.75;background:transparent;color:var(--ink)}
.composer-bottom{display:flex;align-items:center;justify-content:space-between;border-top:1px solid var(--line);padding-top:14px}
.composer-bottom .count{font-size:12px;color:var(--muted)}
.composer-bottom .count.over-limit{color:var(--red)}
.emoji-panel{display:grid;grid-template-columns:repeat(auto-fit,minmax(40px,1fr));gap:4px;margin-top:14px;padding:8px;border:1px solid var(--line);border-radius:12px;background:var(--star-input);max-height:220px;overflow-y:auto}
.emoji-panel[hidden]{display:none}
.emoji-button{min-width:40px;min-height:40px;padding:5px;border-radius:8px;font-family:'Apple Color Emoji','Segoe UI Emoji','Noto Color Emoji',sans-serif;font-size:24px;line-height:1}
.emoji-button:hover,.emoji-button:focus-visible{background:var(--star-tint)}
.modal-menu{display:grid;gap:6px}
.modal-menu button{padding:13px 15px;text-align:left;border-radius:10px;background:var(--soft);font-size:15px}
.modal-menu .danger{color:var(--red)}
.lightbox{max-width:1000px;background:transparent;padding:0;box-shadow:none;border:0;position:relative;overflow:visible}
.lightbox img{max-width:100%;max-height:83dvh;display:block;margin:auto;border-radius:6px}
.lightbox .icon-button{position:absolute;right:0;top:-44px;background:var(--star-popover);color:var(--ink)}
.account-pill{display:flex;align-items:center;gap:10px;width:100%;padding:16px 4px;margin-top:22px;text-align:left}
.account-pill div{min-width:0;flex:1}
.account-pill b{font-size:15px;display:block;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.account-pill small{font-size:12px;color:var(--muted)}
#toast{position:fixed;bottom:32px;left:50%;transform:translateX(-50%) translateY(15px);background:var(--star-popover);color:var(--ink);border:1px solid var(--line);border-radius:12px;padding:12px 20px;max-width:90%;font-size:14px;box-shadow:var(--shadow);opacity:0;pointer-events:none;z-index:200;transition:.2s;text-align:center}
#toast.show{opacity:1;transform:translateX(-50%) translateY(0)}
.order-row{padding:18px;margin-top:10px;border:1px solid var(--star-edge);border-radius:16px;background:var(--paper);font-size:15px;display:flex;justify-content:space-between;gap:16px}
.order-row small{display:block;color:var(--muted);font-size:12px;margin-top:4px}
.order-row b{color:var(--accent);font-size:14px;font-weight:500;white-space:nowrap}
@media(hover:hover) and (pointer:fine){
 .nav-link:hover,.icon-button:hover,.action:hover{background:var(--soft);color:var(--accent)}
 .primary:hover{filter:brightness(1.08)}
 .outline:hover{border-color:var(--accent)}
}
@media(max-width:760px){
 .layout{display:block;max-width:620px;padding:0 12px calc(96px + env(safe-area-inset-bottom))}
 .sidebar{display:none}
 #main{padding-bottom:0}
 .topbar{top:0;margin:0 -12px;border-radius:0;border-top:0;border-left:0;border-right:0;box-shadow:none}
 .topline{height:60px;padding:0 16px}
 .title-wrap{gap:4px}
 .title-wrap h1{font-size:20px;max-width:100%}
 .top-actions{gap:6px}
 .topline .mini-caption{font-size:11px}
 .topline .outline{font-size:13px;padding:6px 14px}
 .tabs{height:42px;padding:0 18px;gap:26px}
 .tab{font-size:15px}
 .compose-inline{padding:16px 14px 12px;margin:12px 0}
 .composer-tools{gap:4px}
 .composer-submit{gap:8px}
 .composer-submit .primary{padding:9px 16px}
 .compose-prompt{font-size:15px}
 .avatar{width:38px;height:38px;font-size:16px}
 .post{padding:15px 14px 8px;gap:10px;border-radius:18px}
 .post-top{gap:6px;padding-right:20px}
 .post-name{font-size:15px;max-width:155px}
 .post-time{font-size:11px}
 .realm{font-size:10px}
 .post-body{font-size:16px}
 .post-more{right:3px;top:7px}
 .actions{margin-top:5px}
 .action{min-width:35px;padding:9px 3px;gap:4px}
 .action svg{width:18px;height:18px}
 .images img{height:145px}
 .images.single img{max-height:380px}
 .mobile-nav{display:flex;position:fixed;bottom:max(10px,env(safe-area-inset-bottom));left:12px;right:12px;max-width:596px;margin:auto;z-index:20;background:var(--star-popover);border:1px solid var(--star-edge);border-radius:20px;padding:5px;box-shadow:var(--shadow);justify-content:space-around}
 .mobile-nav .nav-link{border-radius:14px;padding:7px 10px 5px;gap:3px;flex:1;flex-direction:column;font-size:11px;line-height:1.4;min-height:53px}
 .mobile-nav .nav-link svg{width:22px;height:22px}
 .mobile-nav .nav-link.active{background:var(--star-tint);color:var(--accent)}
 .profile-info{padding:0 16px 18px}
 .profile-info h2{font-size:22px}
 .profile-cover{height:84px}
 .shop-balance{padding:16px 18px}
 .shop-grid{gap:10px}
 .item-card{padding:15px;border-radius:18px}
 .item-card h3{font-size:17px}
 .item-card p{font-size:12px;min-height:40px;margin-bottom:14px}
 .item-card strong{font-size:22px}
 .item-card button{font-size:14px}
 .modal-backdrop{padding:12px}
 .modal{padding:20px;max-height:92dvh}
 .modal.composer{align-self:flex-end;margin-bottom:env(safe-area-inset-bottom)}
 .composer-text{min-height:160px}
 #toast{bottom:calc(90px + env(safe-area-inset-bottom))}
 .count-badge{left:calc(50% + 2px);top:3px}
}
@media(max-width:359px){
 .post-name{max-width:110px}
 .realm{font-size:9px}
 .post-time{font-size:10px}
 .item-card{padding:13px}
 .item-card h3{font-size:16px}
 .profile-menu{gap:12px}
}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
