.video-frame{width:100%;height:auto;border:0;aspect-ratio:16/9;min-height:0;max-height:70vh;background:#071A33;display:block}
.post-media iframe{width:100%;height:auto;border:0;min-height:0;aspect-ratio:16/9}
.post-media{aspect-ratio:auto}
.post-media img{width:100%;height:auto;max-height:none;object-fit:contain}
.long-hint{position:absolute;left:12px;bottom:12px;background:rgba(7,26,51,.78);color:#fff;border-radius:8px;padding:6px 8px;font-size:12px;font-weight:700}
#previewStack{display:flex;flex-direction:column;gap:8px;margin-top:12px}
#previewStack img{width:100%;height:auto;border-radius:12px;background:#dfe8f4}
.note-wrap{position:relative;display:inline-flex;align-items:center}
#note-bell{position:relative;display:inline-flex;align-items:center;text-decoration:none;font-size:22px;line-height:1}
.note-badge{position:absolute;top:-7px;right:-12px;min-width:18px;height:18px;padding:0 5px;border-radius:99px;background:#e10600;color:#fff;font-size:11px;font-weight:800;line-height:18px;text-align:center;box-shadow:0 0 0 2px #fff,0 0 0 4px rgba(225,6,0,.25)}
.topbar{z-index:70}
#note-pop{position:fixed;width:min(360px,calc(100vw - 16px));background:#fff;border:1px solid #d5deea;border-radius:14px;box-shadow:0 16px 40px rgba(7,26,51,.2);z-index:200;max-height:70vh;overflow:auto;padding:8px}
#note-pop a.note-item{display:block;padding:10px 12px;border-radius:10px;background:#fff;color:#111;text-decoration:none}
#note-pop a.note-item b{display:block;font-size:14px;line-height:1.35;color:#111}
#note-pop a.note-item .meta{color:#111}
#note-pop a.note-item.unread{background:#eceff3}
#note-pop a.note-item.unread b,#note-pop a.note-item.unread .meta{color:#071a33}
#note-pop a.note-all{display:block;text-align:left;background:#fff;color:#071a33;font-weight:800;padding:10px 12px 4px;text-decoration:none}
.note-row.unread{background:#eceff3}
.note-row.unread b,.note-row.unread a,.note-row.unread .meta{color:#071a33}
.note-pages{display:flex;justify-content:space-between;align-items:center;margin-top:12px}
.note-mark-form{display:flex;justify-content:center;margin:0 0 12px}
.note-mark,#note-pop .note-mark{display:block;width:60%;margin:2px auto 8px;border:1px solid #071a33;border-radius:10px;background:#fff;color:#071a33;font-weight:700;font-size:13.2px;line-height:1.2;padding:5.3px 7px;cursor:pointer}
.note-mark:hover,#note-pop .note-mark:hover{background:#126bde;color:#fff}
#note-pop .note-empty{padding:14px;color:#66758a}
.note-toast{position:fixed;right:16px;bottom:16px;z-index:80;display:flex;flex-direction:column;gap:8px;width:min(320px,calc(100vw - 32px))}
.note-toast a{display:block;background:#10233f;color:#fff;border-radius:12px;padding:10px 12px;text-decoration:none;box-shadow:0 8px 24px rgba(0,0,0,.25);font-weight:700}
img,video,canvas{max-width:100%}
.shell,.content,.card,.panel,.admin-main{min-width:0}
@media(max-width:980px){.post-actions{flex-wrap:wrap}}
@media(max-width:480px){.kpis{grid-template-columns:1fr!important}.auth-card{padding:18px}}
.searchbox{width:40px;max-width:calc(100vw - 16px);height:40px;flex:0 0 auto;overflow:hidden;background:#102b4b;border:1px solid #28415f;border-radius:10px;transition:width .15s ease}
.searchbox input{opacity:0;height:40px;border:0;background:transparent;padding:0 10px 0 34px}
.searchbox.open,.searchbox:focus-within{width:min(360px,calc(100vw - 150px))}
.searchbox.open input,.searchbox:focus-within input{opacity:1}
@media(max-width:980px){.searchbox{flex:0 0 auto;width:40px;margin-left:auto}.searchbox.open,.searchbox:focus-within{width:min(360px,calc(100vw - 150px))}}
@media(max-width:700px){
  .topbar{flex-wrap:nowrap;height:56px}
  .topbar .brand-name,.topbar .topnav,.topbar .top-post,.topbar .note-wrap,.topbar .guest-actions{display:none}
  .topbar .brand{margin-right:auto}
  .searchbox{position:relative;margin-left:8px}
  .searchbox.open,.searchbox:focus-within{position:absolute;left:56px;right:56px;width:auto;max-width:none;z-index:5}
}
.post-actions{gap:8px;padding:12px 14px}
.post-actions form{display:inline-flex}
.act-ico{font-size:15px;line-height:1}
.act-pair{display:inline-flex;align-items:stretch;border-radius:10px;overflow:hidden;min-height:33px;touch-action:manipulation}
.act-pair form{display:flex}
.act-pair .action{background:transparent;color:inherit;border-radius:0;min-height:33px;padding:6px 8px}
.act-pair .who{border:0;background:transparent;color:inherit;font-weight:800;font-size:12px;min-width:28px;padding:6px 9px 6px 2px;cursor:default}
.tone-like{background:#fff1e4;color:#c45a00}
.tone-like:has(.liked){background:#e96b00;color:#fff}
.tone-down{background:#ffecec;color:#c4383d}
.tone-down:has(.liked){background:#c4383d;color:#fff}
.tone-share{background:#e7f7ff;color:#0b6e8a}
.act-comment,.act-save,.action.act-share{background:#e7f0ff;color:#126bde;min-height:33px;padding:6px 9px;font-weight:800}
.action.act-share{background:#e7f7ff;color:#0b6e8a}
.act-save.liked{background:#5b4bdb;color:#fff}
.meme-tools{display:flex;gap:8px;flex-wrap:wrap;align-items:flex-start;padding:0 16px 16px}
.report-fold{position:relative}
.report-fold summary{list-style:none}
.report-fold summary::-webkit-details-marker{display:none}
.report-fold form{margin-top:8px;min-width:min(320px,80vw);background:#fff;border:1px solid var(--line);border-radius:12px;padding:12px}
.comment{gap:14px;padding:18px 0}
.comment>.avatar{width:51px;height:51px;font-size:24px}
.comment-name{font-size:17px}
.comment-text{font-size:17px;line-height:1.45;margin:8px 0}
.comment-actions{font-size:13px;gap:9px}
.comment-actions .action,.comment-actions summary{min-height:33px;padding:7px 10px;border-radius:10px;background:#e7f0ff;color:#126bde;font-weight:800;font-size:12px}
.comment-actions .action.liked{background:#e96b00;color:#fff}
.comment-actions details summary{list-style:none;display:inline-flex;align-items:center}
.comment-actions details summary::-webkit-details-marker{display:none}
#comments .textarea{font-size:21px;min-height:96px}
.who-pop{position:fixed;inset:0;background:rgba(7,26,51,.45);z-index:80;display:grid;place-items:center;padding:18px}
.who-pop[hidden]{display:none}
.who-card{background:#fff;border-radius:14px;width:min(420px,100%);max-height:70vh;overflow:auto;padding:16px;box-shadow:var(--shadow)}
.who-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:8px}
.who-x{border:0;background:#eef3f8;border-radius:8px;padding:8px 10px;cursor:pointer;font-weight:700}
.who-row{display:flex;gap:10px;align-items:center;padding:8px 0;border-bottom:1px solid var(--line);font-weight:700}
.who-row .avatar{width:36px;height:36px;font-size:16px}
.back-row{margin:0 0 12px}
@media (min-width:1024px) and (max-width:1600px){
  body.home-feed .content > .card{zoom:.9}
}
.auth-card h1{font-size:26px}
details summary{cursor:pointer;color:var(--blue)}
.badge.danger{vertical-align:super}
form.inline{display:inline}
.topbar .badge{font-size:10px}

.post-media.is-tall{max-height:70vh;overflow:hidden}
.post-media.is-tall img{width:100%;height:auto;max-height:none;object-fit:unset;object-position:top center}
.gallery-card img{object-fit:contain!important;background:#dfe8f4}

.profile-card{padding:0;overflow:visible}
.profile-card .profile-cover{height:120px;border-radius:14px 14px 0 0}
.profile-sheet{display:grid;grid-template-columns:96px minmax(0,1fr);column-gap:16px;align-items:center;padding:12px 20px 8px;margin-top:0;position:relative;z-index:2}
.profile-sheet .profile-avatar{width:92px;height:92px;margin:-58px 0 0;position:relative;z-index:3;flex:0 0 auto}
.profile-id{min-width:0;margin:0;padding:0;background:transparent;color:#071a33;position:relative;z-index:3}
.profile-head{display:flex;align-items:center;gap:12px;min-width:0}
.profile-id .profile-name{flex:1 1 auto;min-width:0;display:block;margin:0;color:#071a33;font-size:22px;line-height:1.25;word-break:break-word}
.profile-actions{flex:0 0 auto;margin:0}
.profile-actions .btn{white-space:nowrap}
.profile-sub{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:4px;min-width:0}
.profile-sub .meta{display:inline;margin:0;color:#3d5168;font-size:13px;line-height:1.3;word-break:break-all}
.profile-status{display:inline-block;margin:0;padding:2px 8px;border-radius:999px;background:#eef5ff;border:1px solid #cfe0ff;color:#071a33;font-size:12px;font-weight:800;line-height:1.4}
.profile-bio{margin:10px 0 0}
.profile-site{display:inline-block;margin-top:8px;word-break:break-all}
.profile-card .stats{padding:4px 20px 18px}
@media(max-width:700px){
  .profile-card .profile-cover{height:88px}
  .profile-sheet{grid-template-columns:72px minmax(0,1fr);column-gap:10px;padding:10px 14px 6px}
  .profile-sheet .profile-avatar{width:72px;height:72px;margin:-40px 0 0;font-size:32px}
  .profile-id .profile-name{font-size:18px}
  .profile-sub .meta{font-size:12px}
  .profile-status{font-size:11px}
  .profile-actions .btn{padding:6px 8px;font-size:12px}
  .profile-card .stats{padding:4px 14px 16px}
}
@media(max-width:420px){
  .profile-head{align-items:flex-start}
  .profile-id .profile-name{font-size:16px}
  .profile-actions .btn{padding:5px 7px;font-size:11px}
}
