/* The Mews dashboard */
.mews-hero { position: relative; }
.mews-hero { background: radial-gradient(110% 70% at 50% 0%, #111827 0%, #0a0a0d 50%, var(--ink) 100%); }
.mews-stage { position: relative; height: clamp(340px, 56vh, 620px); overflow: hidden; margin-top: -10px; }
.mews-stage::before, .mews-stage::after { content: ''; position: absolute; inset: 0 0 auto 0; height: 22%; background: linear-gradient(to top, rgba(9, 8, 7, 0), #0b0b0e); pointer-events: none; z-index: 1; }
.mews-stage::after { inset: auto 0 0 0; height: 30%; background: linear-gradient(to bottom, rgba(9, 8, 7, 0), var(--ink)); }
.mews-canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; }
.stage-fallback { position: absolute; inset: auto 0 6% 0; display: flex; justify-content: center; opacity: 0.85; }
.stage-fallback svg { width: min(1100px, 96%); height: auto; }
.mews-stage.has-3d .stage-fallback { display: none; }
.stage-copy { position: relative; z-index: 2; padding-top: calc(var(--nav-h) + clamp(24px, 4vw, 48px)); display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 16px 32px; }
.stage-copy h1 { font-size: clamp(46px, 7vw, 96px); margin: 14px 0 0; }
.stage-copy .stage-meta { margin: 0 0 8px; justify-content: flex-end; }
@media (max-width: 760px) { .stage-copy { grid-template-columns: 1fr; } .stage-copy .stage-meta { justify-content: flex-start; } }
#audio-slot:empty { display: none; }
.perch-label {
  position: absolute; bottom: auto; top: 84%; z-index: 3; transform: translate(-50%, 0);
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgba(9, 8, 7, 0.72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font: 500 11px/1 var(--f-mono); letter-spacing: 0.12em; text-transform: uppercase; white-space: nowrap; transition: border-color 0.2s, box-shadow 0.3s;
}
.perch-label b { font-weight: 600; color: var(--text); }
.perch-label .pl-state { color: var(--muted); }
.perch-label .pl-state:empty { display: none; }
.perch-label:hover, .perch-label.hover { border-color: var(--gold); }
.perch-label.flash-kill { box-shadow: 0 0 0 1px var(--gold), 0 0 30px var(--gold-glow); }
.perch-label.flash-refusal { box-shadow: 0 0 0 1px var(--hood), 0 0 30px rgba(184, 50, 42, 0.5); }
.perch-label.is-hooded { border-color: rgba(184, 50, 42, 0.6); }
.perch-label.is-hooded .pl-state { color: #ff8f84; }
@media (max-width: 760px) {
  .perch-label { padding: 6px 8px; gap: 5px; font-size: 9.5px; letter-spacing: 0.08em; }
  .perch-label .pl-state { display: none; }
  .mews-stage { height: clamp(280px, 46vh, 420px); }
}
@media (max-width: 380px) { .perch-label .dot { display: none; } }

.mews-body { position: relative; z-index: 2; margin-top: 8px; }
.mews-sec { margin-top: clamp(28px, 4vw, 48px); }
#notices:empty { display: none; }

/* market strip */
.market { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(168px, 1fr); gap: 1px; overflow-x: auto; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); scrollbar-width: thin; }
.mkt { background: var(--panel); padding: 14px 16px; min-width: 0; display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; align-items: baseline; }
.mkt .s { font: 600 13px/1 var(--f-mono); letter-spacing: 0.06em; }
.mkt .n { grid-column: 1 / -1; font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mkt .p { font: 500 15px/1.2 var(--f-mono); font-variant-numeric: tabular-nums; margin-top: 8px; }
.mkt .c { font: 500 12px/1 var(--f-mono); text-align: right; }
.mkt svg { grid-column: 1 / -1; width: 100%; height: 26px; margin-top: 6px; }

/* tiercel cards */
.tc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 860px) { .tc-grid { grid-template-columns: 1fr; } }
.tc { position: relative; padding: 22px; overflow: hidden; display: grid; gap: 16px; }
.tc::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 2px; background: linear-gradient(90deg, transparent, var(--c), transparent); opacity: 0.7; }
.tc::after { content: ''; position: absolute; width: 280px; height: 280px; right: -120px; top: -140px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--c) 18%, transparent), transparent 70%); pointer-events: none; }
.tc-head { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; }
.thumb { position: relative; width: 64px; height: 64px; border-radius: 50%; overflow: hidden; border: 1px solid rgba(217, 180, 106, 0.5); background: radial-gradient(circle at 50% 35%, var(--panel-3), var(--ink)); box-shadow: 0 0 0 4px rgba(9, 8, 7, 0.8), 0 0 24px color-mix(in srgb, var(--c) 25%, transparent); display: grid; place-items: center; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb svg { width: 60%; height: 60%; }
.tc-head h3 { margin: 0; font: 600 34px/1 var(--f-display); }
.tc-head h3 a:hover { color: var(--gold-2); }
.tc-head .sp { font: italic 500 15px/1.3 var(--f-display); color: var(--muted); }
.tc-head .badges { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.tc-nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; }
.tc-nums > div { background: rgba(9, 8, 7, 0.45); padding: 12px 14px; min-width: 0; }
.tc-nums .v { display: block; margin-top: 6px; font: 500 20px/1.1 var(--f-mono); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tc-nums .v small { font-size: 12px; margin-left: 4px; }
.tc-spend .row { justify-content: space-between; margin-bottom: 8px; }
.tc-jess { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.tc-jess .sep { width: 1px; height: 16px; background: var(--line-2); margin: 0 4px; }
.tc-hold { font: 400 12.5px/1.6 var(--f-mono); color: #cdc5b4; }
.tc-hold span + span::before { content: ' · '; color: var(--muted); }
.tc-thought { margin: 0; padding: 12px 14px; border-left: 2px solid var(--c); background: rgba(239, 232, 218, 0.025); border-radius: 0 var(--r-sm) var(--r-sm) 0; font: italic 500 18px/1.35 var(--f-display); color: #e2d9c6; }
.tc-thought .label { display: block; font-style: normal; margin-top: 8px; }
.tc-foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding-top: 4px; border-top: 1px solid var(--line); padding-top: 14px; }
.tc-foot .next { font: 500 12px/1.3 var(--f-mono); color: var(--muted); }
.tc-foot .next b { color: var(--text); font-weight: 500; }
.tc-foot .btns { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.tc.flash-kill { animation: tcKill 1.8s ease-out; }
.tc.flash-refusal { animation: tcRef 1.8s ease-out; }
@keyframes tcKill { 0% { box-shadow: 0 0 0 1px var(--gold), 0 0 50px var(--gold-glow); } 100% { box-shadow: var(--hair); } }
@keyframes tcRef { 0% { box-shadow: 0 0 0 1px var(--hood), 0 0 50px rgba(184, 50, 42, 0.45); } 100% { box-shadow: var(--hair); } }
@media (max-width: 520px) {
  .tc { padding: 18px 16px; }
  .tc-head { grid-template-columns: 52px 1fr; }
  .tc-head .badges { grid-column: 1 / -1; justify-content: flex-start; }
  .thumb { width: 52px; height: 52px; }
  .tc-nums .v { font-size: 16px; }
  .tc-nums > div { padding: 10px; }
  .tc-foot .btns { margin-left: 0; width: 100%; }
  .tc-foot .btns .btn { flex: 1; }
}

/* feed + aside */
.mews-split { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 16px; align-items: start; }
@media (max-width: 1080px) { .mews-split { grid-template-columns: minmax(0, 1fr); } }
.mews-aside { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; min-width: 0; }
.feed-filters { display: grid; gap: 8px; padding-bottom: 12px; border-bottom: 1px solid var(--line-2); }
.feed-card { min-width: 0; }

/* vote */
.vote-opts { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; }
.vote-opt { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 12px; border-radius: var(--r-sm); border: 1px solid var(--line-2); cursor: pointer; overflow: hidden; transition: border-color 0.2s; }
.vote-opt:hover { border-color: rgba(217, 180, 106, 0.5); }
.vote-opt input { accent-color: var(--gold); margin: 0; position: relative; z-index: 1; }
.vote-opt .bar { position: absolute; inset: 0 auto 0 0; background: rgba(217, 180, 106, 0.1); border-right: 1px solid rgba(217, 180, 106, 0.35); transition: width 0.6s; }
.vote-opt .sym { position: relative; font: 600 13px/1.2 var(--f-mono); }
.vote-opt .sym small { display: block; font: 400 11px/1.3 var(--f-body); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vote-opt .pct { position: relative; font: 500 12px/1 var(--f-mono); color: var(--muted); text-align: right; }
.vote-opt.is-lead .pct { color: var(--gold-2); }
.vote-opt:has(input:checked) { border-color: var(--gold); }
.vote-meta { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-top: 12px; font: 400 12px/1.4 var(--f-mono); color: var(--muted); }
.vote-opt.pons { grid-template-columns: auto 38px minmax(0, 1fr) auto; align-items: center; }
.vo-img { position: relative; width: 38px; height: 38px; border-radius: 50%; overflow: hidden; border: 1px solid var(--line-2); background: var(--panel-3); }
.vo-img img { width: 100%; height: 100%; object-fit: cover; }
.vo-row { display: flex; align-items: center; gap: 8px; margin-top: 6px; flex-wrap: wrap; }
.vo-prog { position: relative; width: 70px; height: 4px; border-radius: 999px; background: rgba(239, 232, 218, 0.1); overflow: hidden; }
.vo-prog i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, var(--gold-deep), var(--gold)); }
.vo-link { font: 500 10.5px/1 var(--f-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); display: inline-flex; gap: 4px; align-items: center; }
.vo-link svg { width: 11px; height: 11px; }
.vo-link:hover { color: var(--gold-2); }
.vote-risk { margin: 14px 0 0; padding: 10px 12px; border-radius: var(--r-sm); border: 1px solid rgba(184, 50, 42, 0.45); background: rgba(184, 50, 42, 0.07); font-size: 13px; color: #e6c3bc; }
.vote-risk b { color: #ffb3aa; }
