.fw-userbar{
  position:relative;
  display:flex;
  align-items:center;
  gap:10px;
  white-space:nowrap;
  font-size:13px;
  font-weight:900;
  margin-left:14px;
  z-index:30;
}
.fw-userbar span{max-width:150px;overflow:hidden;text-overflow:ellipsis}
.fw-userbar button,.fw-userbar a{
  border:1px solid currentColor;
  background:transparent;
  color:inherit;
  border-radius:999px;
  padding:8px 12px;
  font-weight:950;
  opacity:.88;
}
.fw-userbar button:hover,.fw-userbar a:hover{opacity:1}
.fw-login-pill{
  display:flex!important;
  align-items:center;
  gap:8px;
  cursor:pointer;
}
.fw-profile-popover{
  position:absolute;
  top:calc(100% + 14px);
  right:0;
  width:292px;
  padding:18px;
  background:var(--card);
  color:var(--text);
  border:1px solid rgba(217,121,121,.5);
  box-shadow:var(--shadow);
  opacity:0;
  transform:translateY(8px);
  pointer-events:none;
  transition:opacity .24s ease .95s, transform .24s ease .95s;
  z-index:1000;
}
.fw-userbar:hover .fw-profile-popover,
.fw-userbar:focus-within .fw-profile-popover{
  opacity:1;
  transform:translateY(0);
  pointer-events:auto;
}
.fw-profile-popover:before{
  content:"";
  position:absolute;
  top:-16px;
  right:22px;
  width:80px;
  height:16px;
}
.fw-profile-card-head{
  display:flex;
  align-items:center;
  gap:12px;
  padding-bottom:14px;
  border-bottom:1px dashed rgba(30,30,28,.16);
  margin-bottom:12px;
}
.fw-profile-card-head .fw-avatar{width:48px;height:48px;min-width:48px;font-size:16px}
.fw-profile-card-head b,.fw-profile-card-head span{display:block}
.fw-profile-card-head b{font-size:16px;max-width:190px;overflow:hidden;text-overflow:ellipsis}
.fw-profile-card-head span{margin-top:3px;color:var(--muted);font-size:12px;font-weight:850}
.fw-profile-popover p{
  margin:9px 0;
  color:var(--muted);
  font-size:13px;
  line-height:1.5;
  white-space:normal;
  word-break:break-all;
}
.fw-profile-popover p strong{color:var(--accent-dark)}
.fw-profile-card-actions{
  display:flex;
  gap:8px;
  margin-top:14px;
}
.fw-profile-card-actions button{
  flex:1;
  border-radius:999px;
  padding:9px 10px;
  border:1px solid var(--line-soft);
  background:transparent;
  color:var(--text);
  font-weight:950;
  font-size:12px;
}
.fw-auth{
  position:fixed;
  inset:0;
  z-index:9999;
  display:none;
  align-items:center;
  justify-content:center;
  padding:24px;
  background:rgba(8,10,8,.72);
  backdrop-filter:blur(8px);
}
.fw-auth.show{display:flex}
.fw-auth-panel{
  position:relative;
  width:min(520px,100%);
  max-height:92vh;
  overflow:auto;
  background:var(--card);
  color:var(--text);
  border:1px solid rgba(217,121,121,.55);
  box-shadow:var(--shadow);
  padding:34px;
}
.fw-auth-panel h2{
  margin:0;
  font-size:44px;
  line-height:1;
  letter-spacing:-.07em;
}
.fw-muted{color:var(--muted);font-weight:750;line-height:1.7}
.fw-kicker{
  margin:0 0 12px;
  color:var(--accent-dark);
  font-size:12px;
  letter-spacing:.18em;
  font-weight:950;
}
.fw-close{
  position:absolute;
  top:18px;
  right:18px;
  width:36px;
  height:36px;
  border-radius:999px;
  border:1px solid var(--line-soft);
  background:transparent;
  font-size:24px;
}
.fw-tabs{display:grid;grid-template-columns:repeat(3,1fr);border:1px solid var(--line-soft);margin:22px 0}
.fw-tabs button{border:0;border-right:1px solid var(--line-soft);background:transparent;padding:12px 6px;font-weight:950}
.fw-tabs button:last-child{border-right:0}
.fw-tabs button.active{background:var(--text);color:var(--white)}
.fw-form{display:none}
.fw-form.show{display:block}
.fw-form label{display:block;margin:16px 0 8px;font-weight:950;color:var(--accent-dark)}
.fw-qr{width:146px;height:146px;display:grid;place-items:center;margin:10px auto 16px;border:8px solid var(--white);box-shadow:0 0 0 1px var(--line-soft);font-weight:950;background:linear-gradient(45deg, rgba(30,30,28,.12) 25%, transparent 25%),linear-gradient(-45deg, rgba(30,30,28,.12) 25%, transparent 25%),linear-gradient(45deg, transparent 75%, rgba(30,30,28,.12) 75%),linear-gradient(-45deg, transparent 75%, rgba(30,30,28,.12) 75%);background-size:22px 22px;background-position:0 0,0 11px,11px -11px,-11px 0}
.fw-random-card{margin-top:26px;max-width:660px;padding:26px;border:1px solid rgba(246,246,240,.22);background:rgba(246,246,240,.08);backdrop-filter:blur(10px)}
.fw-random-card small{display:block;color:var(--accent);font-weight:950;margin-bottom:14px}
.fw-random-card p{margin:0;color:var(--white);font-size:30px;line-height:1.25;letter-spacing:-.045em;font-weight:950}
.fw-random-card button{margin-top:18px}
.fw-author{margin:18px 0 0;color:var(--accent-dark);font-size:13px;font-weight:950;display:flex;align-items:center;gap:9px}
.interactions button.done{background:var(--accent);border-color:var(--accent);color:var(--white)}
.fw-danger-pill{color:#7A2E2E!important;border-color:rgba(122,46,46,.35)!important}
.fw-text-danger{border:0;background:transparent;color:#8B2E2E;font-weight:950;margin-left:auto;padding:0}
.comment-list{list-style:none;padding-left:0}
.comment-list li{display:flex;gap:8px;align-items:flex-start;border-bottom:1px dashed rgba(30,30,28,.12);padding:8px 0}
.comment-list strong{color:var(--accent-dark);white-space:nowrap}
.fw-toast{position:fixed;left:50%;bottom:28px;z-index:10000;transform:translateX(-50%) translateY(16px);opacity:0;pointer-events:none;background:var(--text);color:var(--white);border:1px solid rgba(217,121,121,.5);box-shadow:var(--shadow);padding:13px 18px;border-radius:999px;font-weight:900;transition:.22s}
.fw-toast.show{opacity:1;transform:translateX(-50%) translateY(0)}
.fw-admin-shell{position:relative;z-index:2;padding:48px 58px 90px}
.fw-admin-card,.fw-admin-head,.fw-admin-section{background:var(--card);border:1px solid rgba(217,121,121,.48);padding:32px;margin-bottom:28px}
.fw-admin-card h2,.fw-admin-head h2{margin:0;font-size:48px;letter-spacing:-.07em}
.fw-admin-card p,.fw-admin-head p{color:var(--muted);line-height:1.7;font-weight:750}
.fw-admin-head{display:flex;align-items:flex-end;justify-content:space-between;gap:24px}
.fw-admin-head>div:last-child{display:flex;gap:12px;flex-wrap:wrap}
.btn.danger{background:#7A2E2E;border-color:#7A2E2E;color:var(--white)}
.btn.small{min-height:38px;padding:0 14px;font-size:13px}
.fw-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-bottom:28px}
.fw-stats div{background:rgba(24,34,21,.88);border:1px solid rgba(217,121,121,.38);color:var(--white);padding:24px}
.fw-stats b{display:block;font-size:44px;letter-spacing:-.06em}
.fw-stats span{color:rgba(246,246,240,.72);font-weight:850}
.fw-admin-section h3{margin:0 0 20px;font-size:32px;letter-spacing:-.05em}
.fw-admin-row{display:grid;grid-template-columns:1fr auto;gap:18px;align-items:center;padding:16px;border:1px solid var(--line-soft);margin-bottom:12px}
.fw-admin-row.off{opacity:.48}
.fw-admin-row b,.fw-admin-row span{display:block}
.fw-admin-row span{margin-top:5px;color:var(--muted);font-size:13px;font-weight:800}
.fw-admin-post{border:1px solid var(--line-soft);padding:20px;margin-bottom:18px}
.fw-admin-post>div{display:flex;align-items:center;justify-content:space-between;gap:14px}
.fw-admin-post>div span{color:var(--accent-dark);font-weight:950}
.fw-admin-post h4{margin:16px 0 8px;font-size:24px;line-height:1.35;letter-spacing:-.04em}
.fw-admin-post p{color:var(--muted);font-weight:850}
.fw-admin-post ul{list-style:none;padding:0;margin:16px 0 0;display:grid;gap:10px}
.fw-admin-post li{display:flex;gap:12px;justify-content:space-between;align-items:flex-start;border-top:1px dashed rgba(30,30,28,.14);padding-top:10px}
.fw-avatar{width:34px;height:34px;min-width:34px;border-radius:999px;display:inline-grid;place-items:center;overflow:hidden;background:var(--text);color:var(--white);border:1px solid rgba(217,121,121,.5);font-size:12px;font-weight:950;vertical-align:middle}
.fw-avatar img{width:100%;height:100%;object-fit:cover;display:block}
.fw-avatar.mini{width:26px;height:26px;min-width:26px;font-size:10px}
.fw-profile-preview{display:flex;align-items:center;gap:14px;padding:14px;border:1px dashed var(--line-soft);margin:8px 0 16px}
.fw-profile-preview .fw-avatar{width:54px;height:54px;min-width:54px;font-size:16px}
.fw-profile-preview b,.fw-profile-preview span{display:block}
.fw-profile-preview span{margin-top:4px;color:var(--muted);font-size:13px;font-weight:800}
.fw-admin-row>div:first-child{display:flex;align-items:center;gap:10px;min-width:0}
.fw-admin-row>div:first-child b,.fw-admin-row>div:first-child span{display:block}
@media(max-width:980px){
  .fw-userbar{margin-left:auto;flex-wrap:wrap;justify-content:flex-end}
  .fw-userbar span,.fw-userbar a{display:inline-block}
  .fw-login-pill [data-fw-current]{display:inline-block;max-width:92px}
  .fw-profile-popover{right:-8px;width:min(292px,calc(100vw - 32px))}
  .fw-auth-panel{padding:28px 22px}
  .fw-auth-panel h2{font-size:38px}
  .fw-random-card p{font-size:24px}
  .fw-admin-shell{padding:32px 24px 70px}
  .fw-admin-head{display:block}
  .fw-stats{grid-template-columns:1fr}
  .fw-admin-row{grid-template-columns:1fr}
  .fw-admin-post li{display:block}
}
