:root{
  --bg0:#060a12;
  --bg1:#0b1220;
  --panel:#0f1a2b;
  --panel2:#0a1322;
  --text:#e8f0ff;
  --muted:#9bb0d0;
  --line:#1e2d49;
  --gold:#d8b25c;
  --gold2:#ffdf8b;
  --danger:#ff4d5a;
  --ok:#4dffb7;
  --shadow: 0 20px 60px rgba(0,0,0,.45);
  --radius: 16px;
  --radius2: 12px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --sans: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:var(--sans);
  color:var(--text);
  display:flex;
  flex-direction:column;
  min-height:100vh;
  background-color: #05070d;
  overflow-x:hidden;
}
.theme-backdrop{
  position:fixed;
  inset:0;
  pointer-events:none;
  opacity:1;
  transition: opacity .25s ease;
  z-index:-2;
}
.theme-backdrop::before{
  content:"";
  position:absolute;
  inset:0;
  background-image: var(--page-theme-image, url("/background.png"));
  background-size:cover;
  background-position:center;
  filter: saturate(1.02) contrast(1.04);
  opacity:.48;
}
body.road-theme-page .theme-backdrop::before{
  opacity:1;
}
.theme-backdrop::after{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(1200px 700px at 20% -10%, rgba(216,178,92,.22), transparent 55%),
    radial-gradient(900px 600px at 90% 15%, rgba(110,190,255,.16), transparent 55%),
    linear-gradient(180deg, rgba(6,10,18,.78), rgba(6,10,18,.72) 55%, rgba(5,7,13,.88)),
    radial-gradient(circle at top right, rgba(110,190,255,.08), transparent 32%);
}
body.road-theme-page .theme-backdrop::after{
  background: transparent;
}

.bg-grid{
  position:fixed; inset:0;
  background-image:
    linear-gradient(rgba(120,170,255,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120,170,255,.055) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(circle at 35% 25%, rgba(0,0,0,.95), rgba(0,0,0,.2) 60%, transparent 80%);
  pointer-events:none;
  opacity:.7;
}

.topbar{
  position:sticky; top:0; z-index:30;
  display:grid;
  grid-template-columns: auto minmax(180px, 1fr) auto;
  align-items:center;
  gap:16px;
  padding:12px 18px;
  background:
    linear-gradient(180deg, rgba(7,11,19,.98), rgba(9,13,22,.9)),
    radial-gradient(circle at top right, rgba(110,190,255,.08), transparent 26%);
  border-bottom:1px solid rgba(40,58,92,.82);
  box-shadow: 0 10px 32px rgba(0,0,0,.24);
  backdrop-filter: blur(14px);
}
.topbar::after{
  content:"";
  position:absolute;
  left:18px;
  right:18px;
  bottom:-1px;
  height:1px;
  background: linear-gradient(90deg, transparent, rgba(110,190,255,.18), rgba(255,223,139,.42), rgba(110,190,255,.18), transparent);
  pointer-events:none;
}
.brand{display:flex; align-items:center; gap:12px}
.brand-button{
  appearance:none;
  padding:0;
  margin:0;
  border:none;
  background:transparent;
  color:inherit;
  cursor:pointer;
}
.brand-button:hover{
  opacity:.96;
}
.brand-button:focus-visible{
  outline:2px solid rgba(216,178,92,.75);
  outline-offset:4px;
  border-radius:12px;
}
.sigil{
  width:40px; height:40px;
  border-radius:999px;
  background:
    radial-gradient(circle at 30% 25%, rgba(255,223,139,.55), rgba(216,178,92,.25) 55%, rgba(18,30,55,.2) 80%),
    url("/mascot.png") center/cover no-repeat;
  border:1px solid rgba(216,178,92,.75);
  box-shadow: 0 0 0 2px rgba(216,178,92,.18), 0 10px 28px rgba(0,0,0,.45);
}
.brand-name{font-weight:800; letter-spacing:.3px}
.brand-name{
  font-size:15px;
  text-transform:uppercase;
  letter-spacing:.08em;
}
.brand-sub{
  font-size:11px;
  color:rgba(155,176,208,.82);
  letter-spacing:.08em;
  text-transform:uppercase;
}
.topbar-accent{
  justify-self:center;
  width:min(100%, 420px);
  height:18px;
  display:flex;
  align-items:center;
  gap:10px;
  pointer-events:none;
  opacity:.72;
}
.topbar-accent-line{
  flex:1 1 auto;
  height:1px;
  background:
    linear-gradient(90deg,
      transparent 0%,
      rgba(110,190,255,.12) 8%,
      rgba(255,223,139,.48) 50%,
      rgba(110,190,255,.12) 92%,
      transparent 100%);
  box-shadow: 0 0 10px rgba(110,190,255,.10);
}
.topbar-accent-core{
  position:relative;
  width:14px;
  height:14px;
  flex:0 0 auto;
  transform: rotate(45deg);
  border:1px solid rgba(255,223,139,.88);
  border-radius:2px;
  background:
    radial-gradient(circle at 50% 50%, rgba(255,255,255,.9), rgba(110,190,255,.72) 36%, rgba(110,190,255,.08) 72%, transparent 100%),
    linear-gradient(135deg, rgba(255,223,139,.18), rgba(110,190,255,.12));
  box-shadow:
    0 0 0 2px rgba(216,178,92,.08),
    0 0 16px rgba(110,190,255,.28),
    0 0 28px rgba(255,223,139,.14);
}
.topbar-accent-core::before,
.topbar-accent-core::after{
  content:"";
  position:absolute;
  inset:50% auto auto 50%;
  transform:translate(-50%, -50%) rotate(-45deg);
  pointer-events:none;
}
.topbar-accent-core::before{
  width:34px;
  height:34px;
  border-radius:999px;
  background: radial-gradient(circle, rgba(255,223,139,.16), rgba(110,190,255,.10) 35%, transparent 72%);
}
.topbar-accent-core::after{
  width:4px;
  height:4px;
  border-radius:999px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 0 10px rgba(255,255,255,.55);
}
.topbar-right{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  justify-content:flex-end;
}
.topbar-nav,
.topbar-utility{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}
.topbar-nav{
  padding:4px;
  border-radius:999px;
  border:1px solid rgba(34,49,79,.85);
  background: rgba(8,14,25,.62);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.02);
}
.topbar-utility{
  padding-left:2px;
}
.topbar-link{
  appearance:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:36px;
  padding:0 13px;
  border-radius:999px;
  border:1px solid transparent;
  background: transparent;
  color: var(--muted);
  text-decoration:none;
  font-size:12px;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
  cursor:pointer;
  transition: color .18s ease, border-color .18s ease, background .18s ease, transform .08s ease;
}
.topbar-link:hover{
  color: var(--text);
  background: rgba(255,255,255,.04);
  border-color: rgba(72,101,153,.55);
}
.topbar-link:active{
  transform: translateY(1px);
}
.topbar-link-accent{
  color: rgba(255,223,139,.96);
  border-color: rgba(216,178,92,.42);
  background: linear-gradient(180deg, rgba(216,178,92,.14), rgba(216,178,92,.05));
}
.topbar-link-accent:hover{
  border-color: rgba(255,223,139,.78);
  background: linear-gradient(180deg, rgba(216,178,92,.2), rgba(216,178,92,.08));
}
.topbar-link-danger{
  color: rgba(255,154,160,.92);
}
.topbar-link-danger:hover{
  color: #ffd9dd;
  border-color: rgba(255,77,90,.42);
  background: linear-gradient(180deg, rgba(255,77,90,.14), rgba(255,77,90,.05));
}
.topbar-right a{
  text-decoration:none;
}
@media (max-width: 860px){
  .topbar{
    grid-template-columns: 1fr;
    gap:12px;
  }
  .brand-button,
  .topbar-right{
    justify-self:start;
  }
  .topbar-accent{
    display:none;
  }
  .topbar-right{
    width:100%;
    justify-content:flex-start;
  }
  .brand-sub{
    display:none;
  }
}

.pill{
  display:inline-flex; align-items:center; gap:8px;
  padding:8px 10px;
  border-radius:999px;
  border:1px solid rgba(30,45,73,.85);
  background: rgba(12,18,32,.7);
  color: var(--text);
  font-size:12px;
}
.pill-muted{color:var(--muted)}

.app{
  flex: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 22px 18px 40px;
}

.global-footer{
  background: var(--bg0);
  border-top: 1px solid var(--line);
  padding: 20px 18px 24px;
  margin-top: auto;
}
.footer-inner{
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}
.footer-legal{
  margin: 0 0 10px;
  font-size: 13px;
}
.footer-legal a{
  color: var(--muted);
  text-decoration: none;
}
.footer-legal a:hover{
  color: var(--gold2);
}
.footer-sep{
  margin: 0 8px;
  color: var(--line);
}
.footer-riot{
  margin: 0 0 10px;
  font-size: 11px;
  line-height: 1.45;
  color: var(--muted);
  max-width: 72ch;
  margin-left: auto;
  margin-right: auto;
}
.footer-copy{
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

.card{
  background: linear-gradient(180deg, rgba(15,26,43,.92), rgba(10,19,34,.92));
  border:1px solid rgba(30,45,73,.9);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
body.road-theme-page .card{
  background: linear-gradient(180deg, rgba(11,18,31,.95), rgba(8,14,25,.94));
}
body.road-theme-page .sidebar,
body.road-theme-page .roster,
body.road-theme-page .public-road-side,
body.road-theme-page .public-road-main{
  background: linear-gradient(180deg, rgba(10,16,28,.97), rgba(8,14,24,.96));
}
.card-inner{padding:20px}

.btn{
  appearance:none;
  border:1px solid rgba(30,45,73,.9);
  background: rgba(12,18,32,.6);
  color: var(--text);
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 700;
  letter-spacing:.2px;
  cursor:pointer;
  transition: transform .08s ease, border-color .18s ease, background .18s ease;
}
.btn:hover{border-color: rgba(120,170,255,.55); background: rgba(12,18,32,.75)}
.btn:active{transform: translateY(1px)}
.btn:disabled{opacity:.55; cursor:not-allowed}

.btn-gold{
  border-color: rgba(216,178,92,.85);
  background: linear-gradient(180deg, rgba(216,178,92,.23), rgba(216,178,92,.10));
  box-shadow: 0 0 0 2px rgba(216,178,92,.12) inset;
}
.btn-gold:hover{border-color: rgba(255,223,139,.95)}
.btn-danger{
  border-color: rgba(255,77,90,.75);
  background: linear-gradient(180deg, rgba(255,77,90,.18), rgba(255,77,90,.08));
}
.btn-ok{
  border-color: rgba(77,255,183,.65);
  background: linear-gradient(180deg, rgba(77,255,183,.14), rgba(77,255,183,.06));
}
.btn-ghost{
  background: transparent;
}

.grid-2{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
@media (max-width: 860px){
  .grid-2{grid-template-columns: 1fr;}
}

.hero{
  padding: 26px 22px;
}
.hero h1{
  margin:0 0 10px;
  font-size: clamp(34px, 5vw, 52px);
  line-height:1.02;
  letter-spacing:-.02em;
}
.hero p{
  margin:0 0 18px;
  color: var(--muted);
  line-height:1.6;
}
.actions{display:flex; gap:12px; flex-wrap:wrap}

.landing-layout{
  display:flex;
  flex-direction:column;
  gap:18px;
  max-width: 1080px;
  margin: 0 auto;
}
.landing-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap:18px;
}
.landing-span{
  grid-column: 1 / -1;
}
.landing-hero{
  display:grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(240px, .8fr);
  gap:24px;
  align-items:center;
  overflow:hidden;
  position:relative;
}
.landing-hero::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(circle at 18% 20%, rgba(216,178,92,.16), transparent 28%),
    radial-gradient(circle at 85% 20%, rgba(110,190,255,.12), transparent 30%);
  pointer-events:none;
}
.hero-copy,
.hero-mascot-wrap{
  position:relative;
  z-index:1;
}
.hero-kicker{
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin-bottom:12px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(216,178,92,.4);
  background: rgba(216,178,92,.08);
  color: rgba(255,223,139,.95);
  font-size:12px;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.hero-tagline{
  max-width: 62ch;
  color: var(--text);
  font-size:16px;
}
.hero-tagline strong{
  color: var(--gold2);
}
.hero-points{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin: 0 0 18px;
}
.hero-point{
  display:inline-flex;
  align-items:center;
  gap:10px;
  min-height:40px;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid rgba(30,45,73,.9);
  background: rgba(8,14,25,.66);
  color: var(--text);
  font-size:13px;
  font-weight:700;
}
.hero-point span{
  width:22px;
  height:22px;
  display:inline-grid;
  place-items:center;
  border-radius:999px;
  background: rgba(216,178,92,.18);
  color: rgba(255,223,139,.95);
  font-size:12px;
  font-weight:900;
}
.hero-mascot-wrap{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:12px;
}
.hero-mascot-glow{
  position:absolute;
  width:220px;
  height:220px;
  border-radius:50%;
  background:
    radial-gradient(circle, rgba(110,190,255,.28), rgba(110,190,255,.05) 50%, transparent 72%),
    radial-gradient(circle at 35% 35%, rgba(216,178,92,.22), transparent 46%);
  filter: blur(8px);
}
.hero-mascot-frame{
  width:min(100%, 280px);
  aspect-ratio: 1 / 1;
  padding:16px;
  border-radius:28px;
  border:1px solid rgba(216,178,92,.45);
  background: linear-gradient(180deg, rgba(15,26,43,.86), rgba(10,19,34,.76));
  box-shadow:
    inset 0 0 0 1px rgba(255,223,139,.08),
    0 22px 48px rgba(0,0,0,.34);
}
.hero-mascot{
  width:100%;
  height:100%;
  object-fit:contain;
  display:block;
  filter: drop-shadow(0 18px 24px rgba(0,0,0,.35));
}
.hero-note{
  margin:0;
  max-width: 28ch;
  text-align:center;
  color: var(--muted);
  font-size:13px;
}
.landing-how .card-inner,
.landing-trust .card-inner,
.landing-boards .card-inner,
.landing-faq .card-inner,
.landing-creator .card-inner{
  padding: 20px 22px;
}
.landing-group-hero::before{
  background:
    radial-gradient(circle at 18% 20%, rgba(216,178,92,.14), transparent 28%),
    radial-gradient(circle at 85% 20%, rgba(110,190,255,.10), transparent 30%);
}
.hero-art-wrap .hero-mascot-glow{
  width:280px;
  height:280px;
}
.hero-art-frame{
  width:min(100%, 360px);
  aspect-ratio: 1.18 / 1;
  padding:12px;
}
.hero-art{
  object-fit:cover;
  border-radius:20px;
}
.landing-intro{
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.65;
  max-width: 66ch;
}
.landing-intro strong{
  color: var(--text);
}
.landing-steps{
  margin: 0 0 6px;
  padding-left: 1.25em;
  color: var(--muted);
  line-height: 1.55;
}
.landing-steps li{
  margin-bottom: 12px;
}
.landing-steps li:last-child{
  margin-bottom: 0;
}
.landing-steps strong{
  color: var(--text);
}
.landing-list{
  margin: 0 0 12px;
  padding-left: 1.25em;
  color: var(--muted);
  line-height: 1.55;
}
.landing-list li{
  margin-bottom: 8px;
}
.landing-list strong{
  color: var(--text);
}
.faq-list{
  margin: 0;
  padding: 0;
  list-style: none;
}
.faq-item{
  margin-bottom: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius2);
  overflow: hidden;
}
.faq-item:last-child{
  margin-bottom: 0;
}
.faq-question{
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  list-style: none;
}
.faq-question::-webkit-details-marker{ display: none; }
.faq-question::before{
  content: "+ ";
  margin-right: 4px;
  color: var(--gold);
}
.faq-item[open] .faq-question::before{
  content: "− ";
}
.faq-answer{
  margin: 0;
  padding: 0 14px 12px 14px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}
.tip-jar{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}
.tip-jar .btn{
  margin-top: 0;
}
.tip-jar .kofi-img img{
  display: block;
}
.landing-creator .btn{
  margin-top: 6px;
}

@media (max-width: 860px){
  .landing-grid{grid-template-columns: 1fr;}
  .landing-hero{grid-template-columns: 1fr;}
  .hero-mascot-wrap{order:-1}
  .hero-mascot-frame{width:min(100%, 220px);}
}

.legal-page{
  max-width: 720px;
  margin: 0 auto;
  padding-bottom: 24px;
}

.how-it-works-page{
  max-width: 720px;
  margin: 0 auto;
  padding-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.how-it-works-page .card-inner{
  padding: 24px 22px;
}
.how-page-back-wrap{
  margin: 8px 0 0;
}
.legal-inner{
  padding: 24px 22px;
}
.legal-title{
  margin: 0 0 20px;
  font-size: 28px;
}
.legal-body{
  color: var(--muted);
  line-height: 1.6;
}
.legal-body h2{
  font-size: 16px;
  color: var(--text);
  margin: 20px 0 8px;
}
.legal-body h2:first-of-type{
  margin-top: 0;
}
.legal-body p{
  margin: 0 0 12px;
}

.section-title{
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: rgba(155,176,208,.9);
  margin: 0 0 10px;
}

.form-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 680px){.form-grid{grid-template-columns:1fr}}

.field{display:flex; flex-direction:column; gap:6px}
.field span{font-size:12px; color:var(--muted)}
.field input,.field select,.field textarea{
  border-radius: 12px;
  border:1px solid rgba(30,45,73,.9);
  background: rgba(6,10,18,.55);
  color: var(--text);
  padding: 10px 12px;
  outline:none;
}
.field input:focus,.field select:focus,.field textarea:focus{
  border-color: rgba(216,178,92,.75);
  box-shadow: 0 0 0 3px rgba(216,178,92,.12);
}

.toggle-row{display:flex; align-items:flex-start; justify-content:space-between; gap:10px; padding:12px; border-radius:14px; border:1px solid rgba(30,45,73,.75); background: rgba(10,19,34,.55)}
.toggle-left{display:flex; flex-direction:column; gap:4px}
.toggle-name{font-weight:800}
.toggle-desc{font-size:12px; color:var(--muted); line-height:1.35}
.toggle-right{display:flex; flex-direction:column; align-items:flex-end; gap:6px}
.delta{font-family:var(--mono); font-size:12px; color: rgba(255,223,139,.95)}
.delta.neg{color: rgba(255,154,160,.95)}

.switch{
  width:52px; height:30px;
  border-radius:999px;
  border:1px solid rgba(30,45,73,.9);
  background: rgba(6,10,18,.7);
  position:relative;
  cursor:pointer;
  flex: 0 0 auto;
}
.switch::after{
  content:"";
  position:absolute; top:4px; left:4px;
  width:22px; height:22px;
  border-radius:999px;
  background: rgba(155,176,208,.85);
  transition: left .18s ease, background .18s ease;
}
.switch.on{border-color: rgba(216,178,92,.85); background: rgba(216,178,92,.12)}
.switch.on::after{left:26px; background: rgba(255,223,139,.95)}

.form-error{margin-top:10px; color: rgba(255,154,160,.95); font-size: 13px; min-height: 18px}

.layout-dash{
  display:grid;
  grid-template-columns: 380px minmax(0, 1fr) 300px;
  gap: 14px;
  align-items:start;
}
.layout-dash-group > .stage{
  grid-column: 2 / -1;
}
@media (max-width: 1080px){
  .layout-dash{grid-template-columns: 1fr; }
  .layout-dash-group > .stage{grid-column:auto;}
}

.sidebar .stat{
  display:flex; justify-content:space-between; align-items:center;
  padding:10px 12px;
  border-radius:14px;
  border:1px solid rgba(30,45,73,.75);
  background: rgba(10,19,34,.55);
  margin-bottom:10px;
}
.stat .k{color:var(--muted); font-size:12px}
.stat .v{font-family:var(--mono); font-size:12px}

.status-card{
  padding:12px;
  border-radius:14px;
  border:1px solid rgba(216,178,92,.45);
  background: linear-gradient(180deg, rgba(216,178,92,.10), rgba(10,19,34,.55));
}
.status-title{
  font-weight:800;
  margin-bottom:4px;
}
.status-text{
  color:var(--muted);
  font-size:12px;
  line-height:1.45;
}

.mods{display:flex; flex-wrap:wrap; gap:8px}
.chip{
  font-size: 12px;
  padding: 6px 10px;
  border-radius:999px;
  border:1px solid rgba(30,45,73,.85);
  background: rgba(6,10,18,.45);
  color: rgba(232,240,255,.92);
}
.mission-rail-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
.mission-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap:10px;
}
.road-identity{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
}
.road-identity.compact{
  gap:8px;
}
.road-avatar{
  width:52px;
  height:52px;
  border-radius:16px;
  overflow:hidden;
  flex:0 0 auto;
  border:1px solid rgba(216,178,92,.45);
  background: rgba(6,10,18,.8);
  box-shadow: 0 8px 24px rgba(0,0,0,.3);
}
.road-avatar img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.road-avatar-fallback{
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:900;
  color:rgba(255,223,139,.95);
  letter-spacing:.08em;
}
.road-identity.compact .road-avatar{
  width:34px;
  height:34px;
  border-radius:10px;
}
.road-identity-copy{
  min-width:0;
}
.road-identity-title{
  font-weight:800;
  line-height:1.2;
}
.road-identity.compact .road-identity-title{
  font-size:12px;
}
.road-identity-sub{
  font-size:11px;
  color:var(--muted);
  margin-top:2px;
}
.sidebar .summary-card{
  padding:12px;
}
.sidebar .summary-value{
  font-size:24px;
}
.sidebar .summary-sub{
  min-height: 34px;
}
.modifier-summary-btn{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.modifier-summary-btn strong{
  font-family:var(--mono);
  font-size:12px;
  color:rgba(255,223,139,.95);
}

.stage{
  min-height: 520px;
  overflow:hidden;
  position:relative;
}
.road-theme-surface .stage-splash{
  opacity:.38;
}
.stage-splash{
  position:absolute; inset:0;
  background-size: cover;
  background-position:center;
  filter: saturate(1.1) contrast(1.05);
  opacity:.55;
}
.stage-scrim{
  position:absolute; inset:0;
  background: linear-gradient(90deg, rgba(6,10,18,.95), rgba(6,10,18,.55) 55%, rgba(6,10,18,.95));
}
.stage-content{
  position:relative;
  padding: 22px;
}
.stage-toolbar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  margin-bottom:16px;
  padding-bottom:12px;
  border-bottom:1px solid rgba(30,45,73,.65);
}
.stage-tabs{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}
.stage-tab{
  border-radius:999px;
  border:1px solid rgba(30,45,73,.85);
  background: rgba(6,10,18,.55);
  color: var(--muted);
  padding:8px 12px;
  font-size:12px;
  font-weight:700;
  cursor:pointer;
}
.stage-tab.active{
  border-color: rgba(216,178,92,.75);
  background: rgba(216,178,92,.16);
  color: var(--text);
}
.stage-context{
  font-family:var(--mono);
  font-size:12px;
  color:rgba(255,223,139,.95);
  padding:8px 10px;
  border-radius:999px;
  border:1px solid rgba(216,178,92,.45);
  background: rgba(216,178,92,.08);
}
.stage h2{margin:0 0 10px}
.stage p{margin:0 0 16px; color:var(--muted); line-height:1.45}
.overview-hero{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:16px;
  margin-bottom:14px;
  flex-wrap:wrap;
}
.locked-preview-card{
  position: relative;
  overflow: hidden;
  min-height: 168px;
  margin: 10px 0 16px;
  border-radius: 18px;
  border: 1px solid rgba(216,178,92,.42);
  background-image: var(--locked-preview-image);
  background-size: cover;
  background-position: center;
  box-shadow: 0 18px 48px rgba(0,0,0,.28);
}
.locked-preview-scrim{
  position:absolute;
  inset:0;
  background:
    linear-gradient(90deg, rgba(6,10,18,.92), rgba(6,10,18,.56)),
    linear-gradient(180deg, rgba(216,178,92,.10), rgba(10,19,34,.08));
}
.locked-preview-content{
  position:relative;
  z-index:1;
  display:flex;
  align-items:center;
  gap:14px;
  padding:16px;
}
.locked-preview-portrait{
  width:88px;
  height:88px;
  flex:0 0 auto;
  overflow:hidden;
  border-radius:20px;
  border:1px solid rgba(255,223,139,.55);
  box-shadow:0 0 0 3px rgba(216,178,92,.12), 0 12px 32px rgba(0,0,0,.34);
  background: rgba(7,11,18,.72);
}
.locked-preview-portrait img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.locked-preview-copy{
  display:flex;
  flex-direction:column;
  gap:6px;
  min-width:0;
}
.locked-preview-copy strong{
  font-size:26px;
  line-height:1.05;
}
.locked-preview-copy span{
  color:var(--muted);
  line-height:1.45;
}
.cooldown-text{
  margin-top:8px;
  font-size:14px;
  color:var(--muted);
  min-height:1.4em;
}
.summary-card{
  padding:14px;
  border-radius:16px;
  border:1px solid rgba(30,45,73,.78);
  background: linear-gradient(180deg, rgba(14,24,41,.85), rgba(10,19,34,.72));
}
.summary-label{
  font-size:12px;
  color:var(--muted);
  margin-bottom:8px;
}
.summary-value{
  font-size:28px;
  font-weight:900;
  letter-spacing:.02em;
}
.summary-sub{
  margin-top:6px;
  font-size:12px;
  color:var(--muted);
  line-height:1.4;
}
.overview-card{
  padding:14px;
  border-radius:16px;
  border:1px solid rgba(30,45,73,.78);
  background: rgba(8,14,25,.62);
}
.intel-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:10px;
}
@media (max-width: 560px){
  .intel-grid{grid-template-columns:1fr;}
  .mission-grid{grid-template-columns:1fr;}
}
.intel-item{
  padding:12px;
  border-radius:14px;
  border:1px solid rgba(30,45,73,.75);
  background: rgba(10,19,34,.6);
}
.intel-item span{
  display:block;
  font-size:11px;
  color:var(--muted);
  margin-bottom:6px;
}
.intel-item strong{
  display:block;
  font-size:13px;
  line-height:1.4;
}
.progress-stack{
  display:flex;
  flex-direction:column;
  gap:12px;
}
.progress-row{
  display:flex;
  flex-direction:column;
  gap:6px;
}
.progress-label{
  display:flex;
  justify-content:space-between;
  gap:10px;
  font-size:12px;
  color:var(--muted);
}
.progress-bar{
  width:100%;
  height:10px;
  border-radius:999px;
  overflow:hidden;
  border:1px solid rgba(30,45,73,.75);
  background: rgba(6,10,18,.72);
}
.progress-fill{
  height:100%;
  border-radius:999px;
  background: linear-gradient(90deg, rgba(120,170,255,.55), rgba(120,170,255,.85));
}
.progress-fill.is-good{
  background: linear-gradient(90deg, rgba(77,255,183,.45), rgba(77,255,183,.85));
}
.progress-fill.is-warn{
  background: linear-gradient(90deg, rgba(216,178,92,.45), rgba(255,223,139,.85));
}
.progress-fill.is-danger{
  background: linear-gradient(90deg, rgba(255,77,90,.45), rgba(255,77,90,.85));
}
.stage-roster-summary{
  font-size:12px;
  color:var(--muted);
}
.stage-roster-toolbar{
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:center;
  flex-wrap:wrap;
  margin-bottom:10px;
}
.stage-roster-tabs{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}
.stage-roster-tab{
  border-radius:999px;
  border:1px solid rgba(30,45,73,.85);
  background: rgba(6,10,18,.55);
  color:var(--muted);
  padding:8px 12px;
  font-size:12px;
  font-weight:700;
  cursor:pointer;
}
.stage-roster-tab span{
  color:rgba(255,223,139,.95);
  margin-left:4px;
}
.stage-roster-tab.active{
  border-color: rgba(216,178,92,.75);
  background: rgba(216,178,92,.16);
  color:var(--text);
}
.stage-roster-panel{
  border-radius:16px;
  border:1px solid rgba(30,45,73,.75);
  background: rgba(8,14,25,.48);
  padding:12px;
}
.stage-roster-panel-body{
  max-height: min(42vh, 372px);
  overflow:auto;
  padding-right:4px;
}
.roster-grid-stage{
  grid-template-columns: repeat(5, 1fr);
}
@media (max-width: 1200px){
  .roster-grid-stage{grid-template-columns: repeat(4, 1fr);}
}
@media (max-width: 720px){
  .roster-grid-stage{grid-template-columns: repeat(3, 1fr);}
}
.settings-grid-readonly{
  margin-bottom: 2px;
}
.cosmetic-panel{
  padding:14px;
  border-radius:16px;
  border:1px solid rgba(30,45,73,.78);
  background: rgba(8,14,25,.62);
}
.cosmetic-subtitle{
  font-size:12px;
  color:var(--muted);
  margin-bottom:10px;
}
.cosmetic-grid{
  display:grid;
  gap:10px;
  max-height:min(42vh, 320px);
  overflow:auto;
  padding-right:4px;
}
.cosmetic-grid-icons{
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
}
.cosmetic-grid-backgrounds{
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
}
.cosmetic-card{
  appearance:none;
  text-align:left;
  border-radius:14px;
  border:1px solid rgba(30,45,73,.85);
  background: rgba(10,19,34,.66);
  color:var(--text);
  cursor:pointer;
  overflow:hidden;
  padding:8px;
  position:relative;
}
.cosmetic-card.selected{
  border-color: rgba(216,178,92,.78);
  box-shadow: inset 0 0 0 1px rgba(255,223,139,.14), 0 0 0 1px rgba(216,178,92,.12);
}
.cosmetic-card-icon img{
  width:100%;
  aspect-ratio:1/1;
  object-fit:cover;
  border-radius:10px;
  display:block;
  margin-bottom:6px;
}
.cosmetic-name{
  font-weight:800;
  line-height:1.25;
  font-size:12px;
}
.cosmetic-meta{
  margin-top:3px;
  font-size:11px;
  color:var(--muted);
}
.cosmetic-card-clear{
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:8px;
  min-height:96px;
}
.cosmetic-clear-mark{
  font-weight:900;
  color:rgba(255,223,139,.95);
}
.cosmetic-card-background{
  min-height:96px;
  background-image: var(--cosmetic-bg);
  background-size:cover;
  background-position:center;
}
.cosmetic-overlay{
  position:absolute;
  inset:0;
  background: linear-gradient(180deg, rgba(6,10,18,.15), rgba(6,10,18,.82));
}
.cosmetic-content{
  position:relative;
  z-index:1;
  margin-top:42px;
}

.big-btns{display:flex; gap:12px; flex-wrap:wrap}
.roll-bay{
  margin: 10px 0 14px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(216,178,92,.42);
  background:
    linear-gradient(180deg, rgba(216,178,92,.08), rgba(10,19,34,.72)),
    radial-gradient(circle at top right, rgba(110,190,255,.12), transparent 38%);
  box-shadow: inset 0 0 0 1px rgba(255,223,139,.04);
}
.roll-bay-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  margin-bottom:12px;
  flex-wrap:wrap;
}
.roll-bay-sub{
  font-size:12px;
  color:var(--muted);
}
.roll-bay .big-btns{
  margin-bottom:12px;
}
.fancy{
  position:relative;
  overflow:hidden;
}
.fancy::before{
  content:"";
  position:absolute; inset:-2px;
  background: conic-gradient(from 180deg, rgba(216,178,92,.0), rgba(255,223,139,.65), rgba(110,190,255,.35), rgba(216,178,92,.0));
  opacity:.55;
  filter: blur(10px);
  animation: spin 1.8s linear infinite;
}
.fancy > span{position:relative}
@keyframes spin{to{transform: rotate(360deg)}}

.roll-preview{
  margin-top: 0;
  display:flex;
  gap: 12px;
  align-items:center;
  padding: 12px;
  border-radius: 16px;
  border:1px solid rgba(216,178,92,.55);
  background: linear-gradient(180deg, rgba(216,178,92,.08), rgba(10,19,34,.55));
}
.roll-portrait{
  width: 76px;
  height: 76px;
  border-radius: 18px;
  overflow:hidden;
  border:1px solid rgba(30,45,73,.9);
  background: rgba(6,10,18,.55);
  box-shadow: 0 0 0 2px rgba(216,178,92,.10), 0 14px 40px rgba(0,0,0,.35);
  flex: 0 0 auto;
}
.roll-portrait img{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
  transform: scale(1.06);
}
.roll-meta{display:flex; flex-direction:column; gap:4px; min-width:0}
.roll-name{
  font-weight: 950;
  font-size: 18px;
  letter-spacing: .2px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.roll-sub{
  font-size: 12px;
  color: var(--muted);
}
.group-comp-grid{
  display:grid;
  grid-template-columns: repeat(5, minmax(124px, 1fr));
  gap:14px;
}
.group-comp-card{
  border-radius:16px;
  border:1px solid rgba(30,45,73,.82);
  background: linear-gradient(180deg, rgba(11,18,31,.95), rgba(8,14,25,.9));
  padding:14px 12px 12px;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:12px;
  text-align:center;
}
.group-comp-card.filled{
  box-shadow: inset 0 0 0 1px rgba(255,223,139,.06);
}
.group-comp-role{
  font-size:12px;
  font-weight:800;
  letter-spacing:.06em;
  text-transform:uppercase;
  color:rgba(255,223,139,.95);
}
.group-comp-portrait{
  width:100%;
  aspect-ratio: 1 / 1;
  max-width:112px;
  border-radius:16px;
  overflow:hidden;
  border:1px solid rgba(30,45,73,.9);
  background: rgba(6,10,18,.55);
}
.group-comp-portrait img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.group-comp-name{
  min-height:42px;
  font-weight:800;
  font-size:13px;
  line-height:1.3;
  display:grid;
  place-items:center;
}
.group-reroll-btn{
  width:100%;
  min-height:52px;
  padding:10px 8px;
  line-height:1.2;
  white-space:normal;
}
.roll-flash{
  animation: rollFlash 140ms ease-out;
}
@keyframes rollFlash{
  from{ filter: brightness(1.18) saturate(1.2); transform: translateY(-1px) }
  to{ filter: none; transform: none }
}
@media (max-width: 1100px){
  .group-comp-grid{grid-template-columns: repeat(3, minmax(0, 1fr));}
}
@media (max-width: 720px){
  .group-comp-grid{grid-template-columns: repeat(2, minmax(0, 1fr));}
}

.roster{
  padding: 16px;
}
.sidebar-roster-grid{
  max-height:min(42vh, 372px);
  overflow:auto;
  padding-right:4px;
}
.sidebar-roster-list{
  max-height:min(42vh, 372px);
  overflow:auto;
  padding-right:4px;
}
.match-feed{
  display:flex;
  flex-direction:column;
  gap:8px;
  margin-bottom: 2px;
}
.unowned-list{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.unowned-chip{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:6px 8px;
  border-radius:999px;
  border:1px solid rgba(30,45,73,.85);
  background: rgba(10,19,34,.7);
  color: var(--text);
  cursor:pointer;
}
.unowned-chip:hover{
  border-color: rgba(216,178,92,.75);
}
.unowned-chip-static{
  cursor:default;
}
.unowned-chip-static:hover{
  border-color: rgba(30,45,73,.85);
}
.unowned-chip img{
  width:22px;
  height:22px;
  border-radius:999px;
  display:block;
}
.feed-item{
  display:flex;
  align-items:center;
  gap:10px;
  padding:8px 10px;
  border-radius:14px;
  border:1px solid rgba(30,45,73,.75);
  background: linear-gradient(90deg, rgba(8,13,24,.95), rgba(10,19,34,.72));
}
.feed-win{
  box-shadow: inset 3px 0 0 rgba(77,255,183,.65);
}
.feed-loss{
  box-shadow: inset 3px 0 0 rgba(255,77,90,.7);
}
.feed-portrait{
  width:34px;
  height:34px;
  border-radius:10px;
  overflow:hidden;
  flex:0 0 auto;
  border:1px solid rgba(30,45,73,.85);
  background: rgba(6,10,18,.7);
}
.feed-portrait img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.feed-text{
  min-width:0;
}
.feed-line{
  display:flex;
  align-items:center;
  gap:6px;
  min-width:0;
  font-size:12px;
  line-height:1.25;
}
.feed-champion{
  font-weight:800;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.feed-sep{
  color:var(--muted);
}
.feed-outcome{
  color: rgba(232,240,255,.96);
}
.feed-time{
  margin-top:2px;
  color:var(--muted);
  font-size:10px;
  letter-spacing:.02em;
}
.public-road-shell{
  display:flex;
  flex-direction:column;
  gap:14px;
}
.public-road-hero{
  position:relative;
  overflow:hidden;
}
.public-road-hero-content{
  position:relative;
  z-index:1;
  padding:22px;
}
.public-road-head{
  display:flex;
  justify-content:space-between;
  gap:16px;
  align-items:flex-start;
  flex-wrap:wrap;
}
.public-road-badges{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  justify-content:flex-end;
}
.public-road-intro h1{
  margin:10px 0 8px;
  font-size:32px;
}
.public-road-intro p{
  max-width:760px;
}
.public-road-statline{
  display:grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap:10px;
  margin-top:12px;
}
@media (max-width: 1200px){
  .public-road-statline{grid-template-columns: repeat(3, minmax(0, 1fr));}
}
@media (max-width: 900px){
  .public-road-statline{grid-template-columns: repeat(2, minmax(0, 1fr));}
}
@media (max-width: 560px){
  .public-road-statline{grid-template-columns: 1fr;}
}
.public-stat{
  padding:12px;
  border-radius:14px;
  border:1px solid rgba(30,45,73,.75);
  background: rgba(8,14,25,.45);
}
.public-stat span{
  display:block;
  font-size:11px;
  color:var(--muted);
  margin-bottom:6px;
}
.public-stat strong{
  display:block;
  font-size:18px;
  line-height:1.35;
}
.public-road-trust{
  margin-top:14px;
}
.public-road-grid{
  display:grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr);
  gap:14px;
}
@media (max-width: 1080px){
  .public-road-grid{grid-template-columns: 1fr;}
}
.public-road-side .card-inner,
.public-road-main .card-inner{
  padding:18px;
}
.public-roster-summary{
  margin-bottom:12px;
}
.public-roster-section{
  margin-bottom:14px;
}
.public-roster-grid{
  grid-template-columns: repeat(4, 1fr);
}
.public-milestones{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap:10px;
}
@media (max-width: 640px){
  .public-milestones{grid-template-columns: 1fr;}
}
.locked-spotlight{
  position:relative;
  overflow:hidden;
  min-height:180px;
  margin-bottom:16px;
  border-radius:16px;
  border:1px solid rgba(216,178,92,.38);
  background-image: var(--spotlight-image);
  background-size:cover;
  background-position:center;
}
.locked-spotlight-scrim{
  position:absolute;
  inset:0;
  background: linear-gradient(90deg, rgba(6,10,18,.92), rgba(6,10,18,.45));
}
.locked-spotlight-copy{
  position:relative;
  z-index:1;
  padding:18px;
  max-width:420px;
}
.locked-spotlight-copy h3{
  margin:0 0 8px;
  font-size:28px;
}
.locked-spotlight-copy p{
  margin:0;
}
.timeline-list{
  display:flex;
  flex-direction:column;
  gap:10px;
}
.timeline-item{
  display:grid;
  grid-template-columns: auto auto 1fr;
  gap:10px;
  align-items:start;
  padding:12px;
  border-radius:14px;
  border:1px solid rgba(30,45,73,.75);
  background: rgba(10,19,34,.52);
}
.timeline-badge{
  min-width:52px;
  height:26px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  border:1px solid rgba(216,178,92,.6);
  background: rgba(216,178,92,.12);
  color:rgba(255,223,139,.95);
  font-size:11px;
  font-weight:700;
}
.timeline-portrait{
  width:38px;
  height:38px;
  border-radius:12px;
  overflow:hidden;
  border:1px solid rgba(30,45,73,.75);
  background: rgba(6,10,18,.7);
}
.timeline-portrait img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.timeline-copy{
  min-width:0;
}
.timeline-message{
  font-size:13px;
  line-height:1.45;
}
.timeline-time{
  margin-top:4px;
  font-size:11px;
  color:var(--muted);
}
.history-list{
  display:flex;
  flex-direction:column;
  gap:10px;
}
.history-item{
  display:flex;
  gap:10px;
  padding:10px;
  border-radius:14px;
  border:1px solid rgba(30,45,73,.75);
  background: rgba(10,19,34,.55);
}
.history-badge{
  min-width:46px;
  height:26px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  border:1px solid rgba(216,178,92,.6);
  background: rgba(216,178,92,.12);
  color: rgba(255,223,139,.95);
  font-size:11px;
  font-weight:700;
}
.history-body{
  min-width:0;
}
.history-message{
  font-size:13px;
  line-height:1.4;
}
.history-time{
  margin-top:4px;
  color:var(--muted);
  font-size:11px;
}
.roster-grid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap:10px;
}
@media (max-width: 1080px){.roster-grid{grid-template-columns: repeat(6,1fr)}}
@media (max-width: 720px){.roster-grid{grid-template-columns: repeat(4,1fr)}}

.portrait{
  position:relative;
  border-radius: 14px;
  overflow:hidden;
  border:1px solid rgba(30,45,73,.85);
  background: rgba(6,10,18,.55);
  cursor: default;
}
.img-fallback{
  object-fit: contain !important;
  padding: 10px;
  background:
    radial-gradient(circle at 30% 20%, rgba(255,223,139,.18), transparent 42%),
    linear-gradient(180deg, rgba(14,24,41,.92), rgba(10,19,34,.86));
}
.portrait img{display:block; width:100%; height:auto}
.portrait .name{
  position:absolute; left:8px; right:8px; bottom:8px;
  font-size:11px;
  padding: 6px 8px;
  border-radius: 12px;
  background: rgba(6,10,18,.72);
  border:1px solid rgba(30,45,73,.75);
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.portrait .life{
  position:absolute; top:8px; left:8px;
  font-family: var(--mono);
  font-size: 11px;
  padding: 4px 7px;
  border-radius: 999px;
  border:1px solid rgba(216,178,92,.75);
  background: rgba(6,10,18,.72);
  color: rgba(255,223,139,.95);
}
.portrait.dead{
  filter: grayscale(1) saturate(0.7);
}
.portrait.dead::after{
  content:"";
  position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(255,77,90,.15), rgba(255,77,90,.35));
}

.picker{
  display:flex; gap:10px; flex-wrap:wrap; align-items:center;
  margin-top: 12px;
}
.picker select{min-width: 220px}

.settings-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:14px;
}
@media (max-width: 760px){
  .settings-grid{grid-template-columns:1fr}
}
.settings-card{
  padding:14px 15px;
  border-radius:16px;
  border:1px solid rgba(30,45,73,.75);
  background: linear-gradient(180deg, rgba(14,24,41,.82), rgba(10,19,34,.68));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.02);
}
.settings-label{
  font-size:11px;
  color:var(--muted);
  margin-bottom:7px;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.settings-value{
  font-weight:700;
  line-height:1.45;
}
.settings-toggle{
  grid-column:1 / -1;
  display:flex;
  align-items:flex-start;
  gap:10px;
  padding:14px 15px;
  border-radius:16px;
  border:1px solid rgba(30,45,73,.75);
  background: linear-gradient(180deg, rgba(14,24,41,.82), rgba(10,19,34,.68));
}
.settings-toggle input{
  width:18px;
  height:18px;
  margin-top:1px;
}
.settings-actions{
  grid-column:1 / -1;
  display:flex;
  justify-content:flex-end;
  padding-top:2px;
}
.danger-zone{
  margin-top: 4px;
  padding:14px;
  border-radius:16px;
  border:1px solid rgba(255,77,90,.45);
  background: linear-gradient(180deg, rgba(255,77,90,.10), rgba(10,19,34,.58));
}
.danger-zone h3{
  margin:0 0 8px;
}
.danger-zone p{
  margin:0 0 14px;
}

.dialog::backdrop{background: rgba(0,0,0,.65)}
.dialog{border:none; padding:0; background: transparent}
.dialog-card{
  width:min(520px, calc(100vw - 24px));
  border-radius: 18px;
  border:1px solid rgba(30,45,73,.9);
  background: linear-gradient(180deg, rgba(15,26,43,.96), rgba(10,19,34,.96));
  box-shadow: var(--shadow);
  padding: 18px;
}
.dialog-title{font-weight:900; font-size:18px; margin-bottom:6px}
.dialog-sub{color:var(--muted); font-size:13px; margin-bottom:14px; line-height:1.45}
.dialog-actions{display:flex; justify-content:flex-end; gap:10px; margin-top:14px}
.code-box{
  border-radius: 16px;
  border:1px solid rgba(216,178,92,.55);
  background: rgba(216,178,92,.10);
  padding: 14px;
}
.code-label{font-size:12px; color: rgba(255,223,139,.95); letter-spacing:.14em}
.code-value{font-family:var(--mono); font-size: 26px; margin-top:6px; font-weight:900}

.small{
  font-size:12px; color:var(--muted); line-height:1.4
}

.board-tabs{
  display:inline-flex;
  padding:4px;
  border-radius:999px;
  border:1px solid rgba(30,45,73,.85);
  background: rgba(6,10,18,.7);
}
.board-tab{
  border-radius:999px;
  padding:6px 12px;
  font-size:12px;
  cursor:pointer;
  border:none;
  background:transparent;
  color:var(--muted);
}
.board-tab.active{
  background: rgba(216,178,92,.22);
  color: var(--text);
}
.board-table{
  width:100%;
  border-collapse:collapse;
  font-size:12px;
  margin-top:14px;
  border-top:1px solid rgba(30,45,73,.55);
}
.board-table th,
.board-table td{
  padding:10px 8px;
  text-align:left;
  border-bottom:1px solid rgba(30,45,73,.65);
  vertical-align:middle;
}
.board-table th{
  font-weight:700;
  color:var(--muted);
  font-size:11px;
  letter-spacing:.06em;
  text-transform:uppercase;
}
.board-table tbody tr:nth-child(even){
  background: rgba(10,19,34,.6);
}
.board-table tbody tr{
  transition: background .16s ease;
}
.board-table tbody tr:hover{
  background: rgba(18,31,53,.72);
}
.board-link{
  color: rgba(255,223,139,.95);
  text-decoration: none;
}
.board-link:hover{
  text-decoration: underline;
}
.trust-block{
  display:flex;
  flex-direction:column;
  gap:8px;
  min-width:140px;
}
.trust-block.compact{
  min-width: 170px;
}
.trust-counts{
  display:flex;
  gap:6px;
  flex-wrap:wrap;
}
.trust-chip{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:4px 8px;
  border-radius:999px;
  font-size:11px;
  border:1px solid rgba(30,45,73,.85);
  background: rgba(6,10,18,.5);
}
.trust-like-count{
  color: rgba(77,255,183,.95);
  border-color: rgba(77,255,183,.35);
}
.trust-flag-count{
  color: rgba(255,154,160,.95);
  border-color: rgba(255,77,90,.35);
}
.trust-actions{
  display:flex;
  gap:6px;
  flex-wrap:wrap;
}
.trust-btn{
  appearance:none;
  border-radius:999px;
  padding:6px 10px;
  font-size:11px;
  font-weight:800;
  cursor:pointer;
  border:1px solid rgba(30,45,73,.85);
  background: rgba(6,10,18,.55);
  color: var(--text);
}
.trust-btn.active{
  box-shadow: 0 0 0 2px rgba(255,255,255,.05) inset;
}
.trust-like{
  border-color: rgba(77,255,183,.4);
}
.trust-like.active{
  background: rgba(77,255,183,.14);
  color: rgba(77,255,183,.98);
}
.trust-flag{
  border-color: rgba(255,77,90,.4);
}
.trust-flag.active{
  background: rgba(255,77,90,.14);
  color: rgba(255,154,160,.98);
}
.trust-caption{
  margin-top:-2px;
}
.flag-btn{
  font-size:11px;
  padding:4px 8px;
  border-radius:999px;
  border:1px solid rgba(255,154,160,.8);
  background: rgba(255,77,90,.15);
  color: rgba(255,154,160,.95);
  cursor:pointer;
}

