/* Self-hosted fonts (no Google Fonts requests, so visitors aren't tracked by a third party). SIL OFL 1.1. */
@font-face { font-family: 'Cinzel'; font-style: normal; font-weight: 600; font-display: swap; src: url('/static/fonts/cinzel-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Cinzel'; font-style: normal; font-weight: 700; font-display: swap; src: url('/static/fonts/cinzel-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Cinzel'; font-style: normal; font-weight: 800; font-display: swap; src: url('/static/fonts/cinzel-latin-800-normal.woff2') format('woff2'); }
@font-face { font-family: 'Exo 2'; font-style: normal; font-weight: 500; font-display: swap; src: url('/static/fonts/exo-2-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Exo 2'; font-style: normal; font-weight: 600; font-display: swap; src: url('/static/fonts/exo-2-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Exo 2'; font-style: normal; font-weight: 700; font-display: swap; src: url('/static/fonts/exo-2-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('/static/fonts/inter-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('/static/fonts/inter-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('/static/fonts/inter-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('/static/fonts/jetbrains-mono-latin-400-normal.woff2') format('woff2'); }

:root {
  /* AegisGrid theme, taken from the logo: deep navy, antique gold (the classical shield) and electric cyan (the grid). */
  --bg: #0a0e18; --bg-2: #0e1420; --panel: #111826; --panel-2: #172133; --line: #222f45; --line-2: #2d3d57;
  --text: #ece6d8; --muted: #8f9bb0; --dim: #5d6a80;
  --gold: #c9965a; --gold-hi: #f0cf8e; --gold-lo: #8a5c2c; --gold-ink: #1c1309;
  --cyan: #22d3d0; --cyan-hi: #94fff7; --cyan-lo: #0f5f66; --cyan-glow: rgba(34, 211, 208, .35);
  --ember: var(--gold); --ember-2: var(--gold-hi); --ember-ink: #2a1c0c;   /* old names kept so every page follows the theme */
  --ok: #3fc58a; --warn: #e9b44c; --err: #e5594f;
  --r: 14px; --r-sm: 9px;
  --display: "Cinzel", "Trajan Pro", Georgia, serif;          /* the "AEGIS" lettering */
  --tech: "Exo 2", "Rajdhani", "Inter", system-ui, sans-serif;  /* the "GRID" lettering */
  --body: "Inter", system-ui, -apple-system, Segoe UI, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --meander: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='12' viewBox='0 0 24 12'%3E%3Cpath d='M0 11h4V3h8v6H8V6' fill='none' stroke='%23c9965a' stroke-width='1.4'/%3E%3Cpath d='M12 11h4V3h8' fill='none' stroke='%23c9965a' stroke-width='1.4'/%3E%3Cpath d='M0 11.3h24' stroke='%23c9965a' stroke-width='.8'/%3E%3C/svg%3E");
  --gridbg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cg fill='none' stroke='%2322d3d0' stroke-opacity='.07' stroke-width='1'%3E%3Cpath d='M0 40h160M0 120h160M40 0v160M120 0v160M40 40l80 80M120 40l-80 80'/%3E%3C/g%3E%3Cg fill='%2322d3d0' fill-opacity='.14'%3E%3Ccircle cx='40' cy='40' r='2'/%3E%3Ccircle cx='120' cy='40' r='2'/%3E%3Ccircle cx='40' cy='120' r='2'/%3E%3Ccircle cx='120' cy='120' r='2'/%3E%3Ccircle cx='80' cy='80' r='1.6'/%3E%3C/g%3E%3C/svg%3E");
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.55 var(--body); -webkit-font-smoothing: antialiased; }
a { color: var(--ember-2); text-decoration: none; } a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.02em; line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(28px, 4vw, 40px); } h2 { font-size: 22px; } h3 { font-size: 17px; }
p { margin: 0 0 1em; } .muted { color: var(--muted); } code, .mono { font-family: var(--mono); font-size: .88em; }
code { background: var(--panel-2); border: 1px solid var(--line); padding: 1px 6px; border-radius: 6px; }

/* ---------- top bar ---------- */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 16px; padding: 12px 24px;
  background: rgba(10,14,24,.88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font: 700 18px var(--display); }
.brand:hover { text-decoration: none; }
.brand img, .brand .mark { width: 32px; height: 32px; border-radius: 9px; }
.brand .mark { display: grid; place-items: center; background: var(--ember); color: #fff; font-size: 18px; }
.top .spacer { flex: 1; }
.me { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; }
.me img { width: 30px; height: 30px; border-radius: 50%; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 10px; border: 1px solid var(--line-2);
  background: var(--panel-2); color: var(--text); font: 600 14px var(--body); cursor: pointer; text-decoration: none !important; transition: .15s; }
.btn:hover { border-color: var(--muted); }
.btn.primary { background: var(--ember); border-color: var(--ember); color: #fff; }
.btn.primary:hover { background: var(--ember-2); border-color: var(--ember-2); }
.btn.small { padding: 6px 12px; font-size: 13px; border-radius: 8px; }
.btn.danger { color: #ff8b80; } .btn.danger:hover { border-color: var(--err); }
.btn.big { padding: 14px 26px; font-size: 16px; border-radius: 12px; }

/* ---------- layout ---------- */
.wrap { max-width: 1180px; margin: 0 auto; padding: 32px 24px 80px; }
.guild > * { min-width: 0; }
.guild { display: grid; grid-template-columns: 240px 1fr; gap: 28px; max-width: 1240px; margin: 0 auto; padding: 28px 24px 80px; }
.side { position: sticky; top: 76px; align-self: start; }
.side .ghead { display: flex; align-items: center; gap: 12px; padding: 4px 4px 18px; }
.side .ghead img, .gicon { width: 44px; height: 44px; border-radius: 12px; background: var(--panel-2); display: grid; place-items: center; font: 700 16px var(--display); color: var(--muted); object-fit: cover; }
.side .ghead strong { display: block; line-height: 1.2; } .side .ghead small { color: var(--muted); }
.side nav { display: flex; flex-direction: column; gap: 2px; }
.side nav a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 9px; color: var(--muted); font-weight: 500; }
.side nav a:hover { background: var(--panel); color: var(--text); text-decoration: none; }
.side nav a.on { background: var(--panel-2); color: var(--text); box-shadow: inset 3px 0 0 var(--ember); }
.side nav .grp { margin: 14px 12px 4px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; margin-bottom: 18px; }
.card > h2:first-child, .card > h3:first-child { margin-top: 0; }
.card .sub { color: var(--muted); margin: -4px 0 18px; font-size: 14px; }
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.head p { color: var(--muted); margin: 0; max-width: 640px; }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field > span { font-weight: 600; font-size: 13.5px; } .field small { color: var(--muted); font-size: 12.5px; }
input[type=text], input[type=number], input[type=url], select, textarea {
  width: 100%; padding: 10px 12px; background: var(--bg); color: var(--text); border: 1px solid var(--line-2); border-radius: var(--r-sm);
  font: 14px var(--body); outline: none; transition: border-color .15s; }
textarea { min-height: 84px; resize: vertical; font-family: var(--body); }
input:focus, select:focus, textarea:focus { border-color: var(--ember); box-shadow: 0 0 0 3px var(--cyan-glow); }
.actions { display: flex; gap: 10px; align-items: center; justify-content: flex-end; padding-top: 6px; border-top: 1px solid var(--line); margin-top: 6px; padding-top: 16px; }
.inline { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; } .inline .field { margin: 0; flex: 1; min-width: 160px; }

/* toggles */
.toggle { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; padding: 10px 0; }
.toggle input { position: absolute; opacity: 0; pointer-events: none; }
.toggle .track { flex: none; width: 40px; height: 23px; border-radius: 99px; background: var(--line-2); position: relative; transition: .2s; margin-top: 1px; }
.toggle .thumb { position: absolute; top: 3px; left: 3px; width: 17px; height: 17px; border-radius: 50%; background: #fff; transition: .2s; }
.toggle input:checked + .track { background: var(--ember); } .toggle input:checked + .track .thumb { left: 20px; }
.toggle input:focus-visible + .track { box-shadow: 0 0 0 3px var(--cyan-glow); }
.toggle .tl { display: flex; flex-direction: column; } .toggle small { color: var(--muted); font-size: 12.5px; }

/* chips */
.chips { display: flex; flex-wrap: wrap; gap: 6px; max-height: 220px; overflow: auto; padding: 2px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; }
.chip span { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 99px; border: 1px solid var(--line-2); background: var(--bg); font-size: 13px; color: var(--muted); transition: .12s; }
.chip span::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--dot, var(--dim)); }
.chip input:checked + span { border-color: var(--ember); color: var(--text); background: rgba(201,150,90,.12); }
.chip input:focus-visible + span { box-shadow: 0 0 0 3px var(--cyan-glow); }

/* flash + notices */
.flash { padding: 12px 16px; border-radius: 10px; margin-bottom: 18px; border: 1px solid; font-weight: 500; }
.flash.ok { background: rgba(63,182,122,.1); border-color: rgba(63,182,122,.4); color: #8fe0b5; }
.flash.err { background: rgba(226,72,61,.1); border-color: rgba(226,72,61,.45); color: #ff9d94; }
.notice { padding: 14px 16px; border-radius: 10px; background: rgba(229,169,59,.08); border: 1px solid rgba(229,169,59,.35); color: #f1cd8a; font-size: 14px; margin-bottom: 18px; }
.tip { font-size: 13px; color: var(--muted); background: var(--panel-2); border-radius: 9px; padding: 10px 12px; }

/* tables / lists */
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-weight: 600; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; padding: 8px 10px; border-bottom: 1px solid var(--line); }
td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
.pill { display: inline-block; padding: 2px 9px; border-radius: 99px; font-size: 12px; font-weight: 600; background: var(--panel-2); border: 1px solid var(--line-2); }
.pill.live { background: rgba(226,72,61,.15); border-color: var(--ember); color: #ff9d94; }
.pill.twitch { color: #b9a3ff; } .pill.youtube { color: #ff8585; } .pill.kick { color: #8af56a; }
.empty { text-align: center; padding: 26px; color: var(--muted); }

/* stats */
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; }
.stat b { display: block; font: 700 30px var(--display); } .stat span { color: var(--muted); font-size: 13px; }

/* servers */
.servers { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.server { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 24px 16px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); transition: .15s; color: var(--text); }
.server:hover { border-color: var(--line-2); transform: translateY(-2px); text-decoration: none; }
.server .gicon { width: 72px; height: 72px; border-radius: 20px; font-size: 24px; }
.server.off { opacity: .72; } .server strong { font-size: 15px; }

/* landing */
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding: 64px 0 40px; }
.hero h1 { font-size: clamp(40px, 6vw, 68px); line-height: 1; }
.hero h1 em { font-style: normal; color: var(--ember); }
.hero p.lead { font-size: 18px; color: var(--muted); max-width: 520px; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.heads { display: grid; gap: 14px; max-width: 440px; justify-self: center; width: 100%; }
.heads .h { position: relative; border-radius: 22px; background: var(--panel); border: 1px solid var(--line); padding: 18px; width: 62%; box-shadow: 0 30px 60px -20px rgba(0,0,0,.6); }
.heads .h b { font-family: var(--display); font-size: 18px; display: block; margin-bottom: 4px; }
.heads .h span { color: var(--muted); font-size: 13.5px; }
.heads .h i { font-style: normal; display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--ember-ink); color: var(--ember-2); margin-bottom: 10px; font-size: 18px; }
.heads .h1 { margin-right: 26%; } .heads .h2 { margin-left: 26%; border-color: rgba(201,150,90,.5); } .heads .h3 { margin: 0 13%; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 40px; }
.feature { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; }
.feature h3 { margin-bottom: 6px; } .feature p { color: var(--muted); font-size: 14px; margin: 0; }
footer.foot { border-top: 1px solid var(--line); padding: 28px 24px; color: var(--dim); font-size: 13px; text-align: center; }
footer.foot a { color: var(--muted); margin: 0 8px; }
.prose { max-width: 760px; } .prose h2 { margin-top: 1.6em; } .prose li { margin-bottom: .4em; color: #d8d3cc; }

@media (max-width: 900px) {
  .guild { grid-template-columns: 1fr; padding-top: 16px; }
  .side { position: static; }
  .side nav { flex-direction: row; overflow-x: auto; gap: 4px; padding-bottom: 6px; }
  .side nav a { white-space: nowrap; } .side nav .grp { display: none; }
  .side nav a.on { box-shadow: inset 0 -3px 0 var(--ember); }
  .grid2, .grid3, .features, .hero { grid-template-columns: 1fr; }
  .heads { max-width: 340px; }
  .top { padding: 10px 16px; gap: 8px; } .wrap { padding: 24px 16px 60px; } .me { display: none; }
  .top .btn.small { padding: 6px 10px; white-space: nowrap; } .brand { font-size: 0; gap: 0; } .guild { padding: 16px 16px 60px; }
  .card { padding: 18px 16px; } .heads .h { width: auto; }
}

/* features page */
.feat { display: flex; align-items: center; gap: 12px; justify-content: space-between; border-bottom: 1px solid var(--line); padding: 4px 0; }
.feat:last-child { border-bottom: 0; }
.feat .toggle { flex: 1; }
.card.locked .toggle { cursor: default; } .card.locked .track { opacity: .75; }
.side nav a.off { color: var(--dim); }
.offtag { margin-left: auto; font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; padding: 1px 6px; border-radius: 6px; border: 1px solid var(--line-2); color: var(--dim); }

/* rating board */
.gicon.sm { width: 32px; height: 32px; border-radius: 9px; font-size: 12px; flex: none; }
.gicon.big { width: 72px; height: 72px; border-radius: 20px; font-size: 24px; flex: none; }
.board td { padding: 10px; } .board .rank { width: 44px; font: 700 18px var(--display); color: var(--muted); }
.board tr.first .rank { color: var(--ember-2); } .board .score { font: 700 16px var(--display); }
.board .acts { display: flex; gap: 6px; justify-content: flex-end; }
.srv { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; } .srv:hover { text-decoration: none; color: var(--ember-2); }
.topserver { display: flex; align-items: center; gap: 18px; color: var(--text); border-color: rgba(201,150,90,.55); background: linear-gradient(120deg, rgba(201,150,90,.12), var(--panel) 60%); position: relative; }
.topserver:hover { text-decoration: none; } .topserver h2 { margin: 0; } .topserver .score { color: var(--ember-2); }
.crown { position: absolute; top: 12px; right: 16px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ember-2); }
.srvhead { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.bigscore { text-align: right; } .bigscore span { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.bigscore b { display: block; font: 800 38px var(--display); line-height: 1.1; } .bigscore small { color: var(--muted); }
@media (max-width: 900px) { .board .acts { flex-direction: column; } .bigscore { text-align: left; } .top > .btn.small[href="/rankings"] { order: 2; } }
@media (max-width: 900px) {
  .top { flex-wrap: wrap; row-gap: 8px; } .top .spacer { display: none; } .top .brand { margin-right: auto; }
  .card table { display: block; overflow-x: auto; }
  .board th:nth-child(3), .board td:nth-child(3) { display: none; }
  .topserver { flex-wrap: wrap; } .crown { position: static; width: 100%; }
}

/* ---------- premium ---------- */
.tierpill { padding: 2px 10px; border-radius: 99px; border: 1px solid var(--line-2); }
.tierpill.t-shield { border-color: var(--gold); color: var(--gold-hi); } .tierpill.t-grid { border-color: var(--cyan); color: var(--cyan-hi); box-shadow: 0 0 10px -2px var(--cyan-glow); }
.tierpill.t-enterprise { border-color: var(--gold-hi); color: #fff4dc; background: linear-gradient(90deg, rgba(201, 150, 90, .18), rgba(34, 211, 208, .18)); } /* v1.8 */
table.tiers td:not(:first-child), table.tiers th:not(:first-child) { text-align: center; width: 92px; }
table.tiers td:not(:first-child) { color: #8fe0b5; font-weight: 700; } table.tiers small { color: var(--muted); font-weight: 400; }
.lockcard { text-align: center; padding: 40px 24px; } .lockicon { font-size: 38px; margin-bottom: 8px; }
.side nav a .lock { margin-left: auto; font-size: 12px; opacity: .7; }
.card h3 { margin-top: 8px; } .card > h3:first-child { margin-top: 0; }

/* ---------- analytics ---------- */
.kpis { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-bottom: 18px; }
.kpis .stat b { font-size: 26px; } .kpis .stat span { font-size: 12.5px; }
svg.chart { width: 100%; height: auto; display: block; overflow: visible; }
svg.chart .gl { stroke: #26262d; stroke-width: 1; } svg.chart .zero { stroke: #3a3a44; stroke-width: 1; }
svg.chart .ax { fill: #8e8a96; font: 19px var(--body); }
svg.chart.heat .ax { font: 11px var(--body); }
.tscroll { overflow-x: auto; max-width: 100%; }
svg.chart .hit { outline: none; cursor: default; }
svg.chart .hit .xh { stroke: #8e8a96; stroke-width: 1; opacity: 0; } svg.chart .hit .dot { opacity: 0; stroke: var(--panel); stroke-width: 2; }
svg.chart .hit.hov .xh, svg.chart .hit:focus .xh { opacity: .6; } svg.chart .hit.hov .dot, svg.chart .hit:focus .dot { opacity: 1; }
svg.chart g.hit.hov rect[fill]:not([fill="transparent"]), svg.chart rect.cell.hov { filter: brightness(1.25); }
svg.chart rect.cell:focus { stroke: #ece7e1; stroke-width: 1.5; }
.hbars { display: flex; flex-direction: column; gap: 8px; }
.hbar { display: grid; grid-template-columns: minmax(90px, 34%) 1fr 70px; align-items: center; gap: 10px; font-size: 13.5px; outline: none; }
.hbar .hl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
.hbar .ht { height: 14px; background: transparent; } .hbar .hf { display: block; height: 100%; border-radius: 0 4px 4px 0; }
.hbar .hv { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.hbar.hov .hf, .hbar:focus .hf { filter: brightness(1.25); }
.legend { display: flex; gap: 16px; font-size: 13px; color: var(--muted); margin: -4px 0 6px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }
.ramp { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); margin-top: 8px; }
.ramp i { display: block; width: 140px; height: 8px; border-radius: 4px; }
.rdot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 8px; }
.vtip { position: fixed; z-index: 50; pointer-events: none; background: #0f0f13; border: 1px solid var(--line-2); border-radius: 8px; padding: 7px 10px; opacity: 0; transition: opacity .1s; box-shadow: 0 8px 24px rgba(0,0,0,.5); }
.vtip.on { opacity: 1; } .vtip b { display: block; font-size: 14px; color: var(--text); border-left: 3px solid var(--k); padding-left: 7px; } .vtip span { display: block; font-size: 12px; color: var(--muted); padding-left: 10px; }
details summary { cursor: pointer; }
@media (max-width: 900px) { .kpis { grid-template-columns: repeat(2, 1fr); } .hbar { grid-template-columns: 38% 1fr 58px; } }
.grid2 > *, .grid > * { min-width: 0; }
/* server picker + switcher */
.pick-h { font: 700 17px var(--display); margin: 26px 0 12px; } .pick-h .muted { font-weight: 500; }
.gsearch { width: 100%; max-width: 420px; margin: 6px 0 4px; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); color: var(--text); font: inherit; }
.gswitch { display: block; margin: 10px 0 2px; } .gswitch select { width: 100%; padding: 8px 10px; border-radius: 9px; border: 1px solid var(--line); background: var(--panel-2); color: var(--text); font: inherit; font-size: 13px; }
.allsrv { display: block; font-size: 12px; color: var(--muted); margin: 6px 0 4px; } .allsrv:hover { color: var(--text); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.feat-h { font: 700 15px var(--display); margin: 22px 0 10px; color: var(--muted); text-transform: none; }
.featbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 4px; } .featbar .muted { font-size: 13px; }
/* analytics filters + download dialog */
.afilter { padding: 14px 16px; }
.afrow { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: flex-end; }
.afrow label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); }
.afrow select, .afrow input { min-width: 0; padding: 7px 9px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel-2); color: var(--text); font: inherit; font-size: 13px; }
.afrow input[type=number] { width: 92px; } .afrow input[type=text] { width: 180px; }
.afbtn { display: flex; gap: 8px; }
.tlink { color: inherit; text-decoration: underline dotted; }
.dlg { border: 1px solid var(--line); border-radius: 14px; background: var(--panel); color: var(--text); padding: 22px; width: min(520px, calc(100vw - 32px)); }
.dlg::backdrop { background: rgba(0,0,0,.6); }
.dlg h3 { margin: 0 0 12px; font: 700 18px var(--display); }
.dlg fieldset { border: 1px solid var(--line); border-radius: 10px; margin: 0 0 12px; padding: 10px 12px; }
.dlg legend { font-size: 12px; color: var(--muted); padding: 0 6px; }
.dlg .radio, .dlg .check { display: flex; gap: 8px; align-items: center; font-size: 14px; margin: 4px 0; }
.dlg select { padding: 7px 9px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel-2); color: var(--text); font: inherit; }
.dlsets { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 12px; }
.dlact { display: flex; justify-content: flex-end; gap: 10px; margin-top: 6px; }
@media (max-width: 560px) { .dlsets { grid-template-columns: 1fr; } .afrow input[type=text] { width: 100%; } .afrow label { flex: 1 1 140px; } }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-top: 6px; }
.plan { border: 1px solid var(--line); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 8px; background: var(--panel-2); }
.plan h3 { margin: 0 0 4px; font: 700 17px var(--display); } .plan form { margin: 0; } .plan .btn { width: 100%; justify-content: center; }
.notice.ok { border-color: #2e7d4f; } .warn { color: #e8a33d; }


/* ======================================================================
   AEGISGRID THEME — classical gold shield × electric cyan grid
   ====================================================================== */
html, body { background: var(--bg); }
body {
  background:
    radial-gradient(1100px 560px at 50% -10%, rgba(45, 63, 84, .55), transparent 70%),
    radial-gradient(700px 500px at 100% 20%, rgba(34, 211, 208, .06), transparent 70%),
    radial-gradient(700px 500px at 0% 60%, rgba(201, 150, 90, .05), transparent 70%),
    var(--gridbg), linear-gradient(180deg, var(--bg-2), var(--bg) 600px);
  background-attachment: fixed, fixed, fixed, fixed, scroll;
}
a { color: var(--cyan); } a:hover { color: var(--cyan-hi); text-decoration: none; text-shadow: 0 0 12px var(--cyan-glow); }
::selection { background: rgba(34, 211, 208, .3); color: #fff; }

/* headings: classical capitals in gold */
h1, h2 { font-family: var(--display); font-weight: 700; letter-spacing: .02em; color: var(--gold-hi);
  background: linear-gradient(180deg, #f6dfa6 0%, #d6a663 55%, #a87437 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
h1 { font-size: clamp(28px, 3.6vw, 40px); } h2 { font-size: 21px; }
h3 { font-family: var(--tech); font-weight: 700; letter-spacing: .02em; font-size: 17px; color: var(--text); }
.card > h2:first-child, .card h2 { font-size: 19px; }

/* top bar with a Greek-key border */
.top { background: rgba(10, 14, 24, .9); border-bottom: 0; }
.top::after { content: ""; position: absolute; left: 0; right: 0; bottom: -12px; height: 12px; background: var(--meander) repeat-x; background-size: 24px 12px; opacity: .55; pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); }
.brand { gap: 10px; font: 700 20px var(--display); letter-spacing: .06em; }
.brand img.mark-img { width: 38px; height: 38px; border-radius: 0; filter: drop-shadow(0 0 6px rgba(34, 211, 208, .25)); }
.brand .wm-aegis { color: var(--gold-hi); background: linear-gradient(180deg, #f6dfa6, #c48a4c 60%, #8a5c2c); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.brand .wm-grid { font-family: var(--tech); font-weight: 700; color: var(--cyan-hi); letter-spacing: .08em; text-shadow: 0 0 10px rgba(34, 211, 208, .65), 0 0 22px rgba(34, 211, 208, .3); }
.brand:hover .wm-grid { text-shadow: 0 0 12px rgba(34, 211, 208, .9), 0 0 28px rgba(34, 211, 208, .45); }

/* buttons: gold for the main action, cyan glow on hover for the rest */
.btn { font-family: var(--tech); font-weight: 600; letter-spacing: .02em; background: linear-gradient(180deg, #1a2436, #141c2b); border-color: var(--line-2); }
.btn:hover { border-color: var(--cyan); box-shadow: 0 0 0 1px rgba(34, 211, 208, .25), 0 0 14px -4px var(--cyan-glow); color: #fff; }
.btn.primary { background: linear-gradient(180deg, #ecc98a 0%, #c9965a 52%, #a06a34 100%); border-color: #d9ad6f; color: var(--gold-ink);
  box-shadow: inset 0 1px 0 rgba(255, 240, 200, .55), 0 6px 18px -8px rgba(201, 150, 90, .7); text-shadow: 0 1px 0 rgba(255, 235, 190, .35); }
.btn.primary:hover { background: linear-gradient(180deg, #f6dca6 0%, #d7a668 52%, #ad773e 100%); border-color: var(--gold-hi); color: var(--gold-ink); box-shadow: inset 0 1px 0 rgba(255, 245, 215, .7), 0 0 18px -4px rgba(240, 207, 142, .55); }
.btn.danger { color: #ff9a90; } .btn.danger:hover { border-color: var(--err); box-shadow: 0 0 14px -4px rgba(229, 89, 79, .5); }

/* panels: dark glass with a faint gold edge */
.card, .stat, .feature, .server, .heads .h {
  background: linear-gradient(180deg, rgba(23, 33, 51, .92), rgba(15, 22, 35, .92)); border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(240, 207, 142, .07), 0 18px 40px -28px rgba(0, 0, 0, .9); }
.card { position: relative; }
.card::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(135deg, rgba(201, 150, 90, .45), transparent 28%, transparent 72%, rgba(34, 211, 208, .35));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.server:hover { border-color: var(--cyan-lo); box-shadow: 0 0 0 1px rgba(34, 211, 208, .2), 0 0 24px -10px var(--cyan-glow); }
.server .gicon, .side .ghead .gicon, .gicon { background: linear-gradient(160deg, #1d2a40, #121a29); color: var(--gold); font-family: var(--display); border: 1px solid var(--line-2); }

/* sidebar */
.side nav a { font-weight: 500; }
.side nav a:hover { background: rgba(34, 211, 208, .06); color: var(--text); }
.side nav a.on { background: linear-gradient(90deg, rgba(201, 150, 90, .16), rgba(201, 150, 90, .02)); color: var(--gold-hi); box-shadow: inset 3px 0 0 var(--gold); }
.side nav .grp { font-family: var(--tech); color: var(--cyan-lo); letter-spacing: .16em; filter: brightness(1.6); }
.gswitch select { border-color: var(--line-2); }

/* forms */
input[type=text], input[type=number], input[type=url], input[type=search], select, textarea { background: #0b111c; border-color: var(--line-2); }
input:focus, select:focus, textarea:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(34, 211, 208, .18), 0 0 16px -6px var(--cyan-glow); }
.toggle .track { background: #263349; box-shadow: inset 0 1px 2px rgba(0, 0, 0, .5); }
.toggle .thumb { background: #e9e4d6; }
.toggle input:checked + .track { background: linear-gradient(90deg, #12898a, var(--cyan)); box-shadow: 0 0 12px -2px var(--cyan-glow); }
.toggle input:checked + .track .thumb { background: #fff; }
.chip input:checked + span { border-color: var(--cyan); background: rgba(34, 211, 208, .1); box-shadow: 0 0 10px -4px var(--cyan-glow); }

/* numbers and tables */
.stat b { font-family: var(--tech); font-weight: 700; color: var(--cyan-hi); text-shadow: 0 0 14px rgba(34, 211, 208, .35); }
th { font-family: var(--tech); letter-spacing: .1em; color: var(--gold); opacity: .85; }
td { border-bottom-color: rgba(34, 47, 69, .8); }
.pill.live { background: rgba(229, 89, 79, .15); border-color: var(--err); color: #ff9a90; }
.notice { background: rgba(201, 150, 90, .08); border-color: rgba(201, 150, 90, .38); color: #f0d6a6; }
.notice.ok { background: rgba(63, 197, 138, .08); border-color: rgba(63, 197, 138, .4); color: #9fe6c3; }
.tip { background: rgba(34, 211, 208, .05); border: 1px solid rgba(34, 211, 208, .14); }
.offtag { font-family: var(--tech); }
.vtip { background: #0b111c; border-color: var(--cyan-lo); box-shadow: 0 0 18px -6px var(--cyan-glow); }
.dlg { background: linear-gradient(180deg, #172133, #10172a); border-color: var(--line-2); box-shadow: 0 0 0 1px rgba(201, 150, 90, .2), 0 30px 80px -20px #000; }
.dlg::backdrop { background: rgba(5, 8, 14, .72); backdrop-filter: blur(3px); }
.plan { background: linear-gradient(180deg, #172133, #111826); }
.plan.p-shield { border-color: rgba(201, 150, 90, .5); } .plan.p-grid { border-color: rgba(34, 211, 208, .45); box-shadow: 0 0 24px -14px var(--cyan-glow); }
.plan h3 { font-family: var(--display); }
.plan.p-enterprise { border-color: rgba(240, 207, 142, .6); background-image: linear-gradient(160deg, rgba(201, 150, 90, .08), rgba(34, 211, 208, .06)); } .plan.p-enterprise h3 { color: #fff4dc; }
.plan.p-shield h3 { color: var(--gold-hi); } .plan.p-grid h3 { color: var(--cyan-hi); text-shadow: 0 0 12px rgba(34, 211, 208, .4); }
.board .rank { font-family: var(--tech); } .board tr.first .rank { color: var(--gold-hi); } .board .score { font-family: var(--tech); color: var(--cyan-hi); }
.bigscore b { font-family: var(--tech); color: var(--cyan-hi); text-shadow: 0 0 16px rgba(34, 211, 208, .35); }
.crown { color: var(--gold-hi); font-family: var(--tech); }
footer.foot { border-top: 1px solid var(--line); position: relative; }
footer.foot::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 12px; background: var(--meander) repeat-x; background-size: 24px 12px; opacity: .35; transform: scaleY(-1);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent); mask-image: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent); }
.foot .fmark { width: 18px; height: 18px; vertical-align: -4px; margin-right: 6px; opacity: .8; }

/* landing hero with the full logo */
.hero h1 em { color: var(--cyan-hi); -webkit-text-fill-color: var(--cyan-hi); background: none; font-family: var(--tech); font-style: normal; letter-spacing: .04em; text-shadow: 0 0 18px rgba(34, 211, 208, .55); }
.hero-logo { justify-self: center; width: min(440px, 100%); aspect-ratio: 1; border-radius: 28px; overflow: hidden; position: relative;
  box-shadow: 0 0 0 1px rgba(201, 150, 90, .25), 0 40px 90px -30px #000, 0 0 80px -30px var(--cyan-glow); }
.hero-logo img { width: 100%; height: 100%; display: block; object-fit: cover; }
.heads .h i { background: rgba(201, 150, 90, .14); color: var(--gold-hi); }
.heads .h2 { border-color: rgba(34, 211, 208, .45); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
@media (max-width: 900px) {
  .brand .wm-aegis, .brand .wm-grid { display: none; } .brand { font-size: 20px; }
  .top::after { opacity: .4; }
  .side nav a.on { box-shadow: inset 0 -3px 0 var(--gold); }
}
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 8px; }
.pillar { padding: 18px 20px; border-radius: var(--r); border: 1px solid var(--line); background: linear-gradient(180deg, rgba(23, 33, 51, .9), rgba(15, 22, 35, .9)); }
.pillar i { font-style: normal; display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: rgba(201, 150, 90, .14); margin-bottom: 8px; }
.pillar:nth-child(2) i { background: rgba(34, 211, 208, .12); }
.pillar b { display: block; font: 700 18px var(--display); color: var(--gold-hi); letter-spacing: .04em; margin-bottom: 2px; }
.pillar:nth-child(2) b { font-family: var(--tech); color: var(--cyan-hi); text-shadow: 0 0 12px rgba(34, 211, 208, .4); }
.pillar span { color: var(--muted); font-size: 14px; }
@media (max-width: 900px) { .pillars { grid-template-columns: 1fr; } .hero-logo { width: min(320px, 100%); } }
.brand .wm { display: inline-flex; align-items: baseline; gap: 0; } .brand .wm-grid { margin-left: 1px; }
@media (max-width: 900px) { .brand .wm { display: none; } }

/* v1.2 What's new page */
.cl-toc { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; }
.cl-toc a { padding: 3px 11px; border-radius: 99px; border: 1px solid var(--line-2); font: 600 13px var(--tech); color: var(--cyan-hi); text-decoration: none; }
.cl-toc a:hover { border-color: var(--cyan); }
.cl-ver { margin-bottom: 16px; scroll-margin-top: 80px; }
.cl-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.cl-top h2 { margin: 0; font-family: var(--tech); color: var(--gold-hi); }
.cl-head { font-weight: 600; margin: 10px 0 6px; }
.cl-ver ul { padding-left: 20px; margin: 8px 0 0; }
@media (max-width: 640px) { .hide-sm { display: none; } }

/* Landing page (v1.2) */
.lp-note { color: var(--dim); font-size: 13px; margin-top: 12px; } .lp-note.center { text-align: center; }
.lp-eyebrow { font: 700 12px var(--tech); letter-spacing: .18em; text-transform: uppercase; color: var(--cyan); margin: 0 0 8px; }
.lp h2 { font-size: clamp(26px, 3.4vw, 36px); color: var(--gold-hi); }
.lp-intro { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; align-items: start; padding: 48px 0 24px; border-top: 1px solid var(--line); }
.lp-intro-text p { color: #d8d3cc; font-size: 16px; line-height: 1.7; max-width: 640px; }
.lp-intro-text strong { color: var(--cyan-hi); font-weight: 600; }
.lp-glance { padding: 22px 24px; border-radius: var(--r); border: 1px solid var(--line-2); background: linear-gradient(180deg, rgba(23, 33, 51, .9), rgba(15, 22, 35, .9)); }
.lp-glance h3 { font: 700 13px var(--tech); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.lp-glance ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.lp-glance li { display: grid; grid-template-columns: 78px 1fr; gap: 12px; align-items: baseline; }
.lp-glance b { font: 700 20px var(--tech); color: var(--gold-hi); }
.lp-glance span { color: #d8d3cc; font-size: 14px; }
.lp-sechead { max-width: 680px; margin: 0 0 22px; }
.lp-sechead p:not(.lp-eyebrow) { color: var(--muted); }
.lp-overview, .lp-steps, .lp-plans { padding: 44px 0 8px; }
.lp-cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.lp-cat { padding: 22px 22px 18px; border-radius: var(--r); border: 1px solid var(--line); background: linear-gradient(180deg, rgba(23, 33, 51, .9), rgba(15, 22, 35, .9)); }
.lp-cat-trust { border-color: rgba(34, 211, 208, .45); box-shadow: 0 0 24px -12px rgba(34, 211, 208, .6); }
.lp-cat-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.lp-cat-top i { font-style: normal; display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: rgba(201, 150, 90, .14); }
.lp-cat-trust .lp-cat-top i { background: rgba(34, 211, 208, .14); }
.lp-cat-top h3 { margin: 0; font: 700 18px var(--tech); color: var(--text); letter-spacing: .01em; flex: 1; }
.lp-cat .tierpill { font: 600 11px var(--tech); padding: 1px 8px; white-space: nowrap; vertical-align: 1px; }
.lp-lede { color: var(--gold-hi); font-size: 14px; margin: 4px 0 10px; }
.lp-cat ul { margin: 0; padding-left: 18px; color: #cfcac2; font-size: 14px; }
.lp-cat li { margin-bottom: 6px; } .lp-cat li::marker { color: var(--cyan); }
.lp-steps ol { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.lp-steps li { counter-increment: s; padding: 20px 22px; border-radius: var(--r); border: 1px solid var(--line); background: rgba(15, 22, 35, .7); }
.lp-steps li::before { content: counter(s); display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; margin-bottom: 10px; font: 700 15px var(--tech); color: var(--ember-ink); background: linear-gradient(180deg, var(--gold-hi), var(--gold)); }
.lp-steps b { display: block; font: 700 17px var(--tech); margin-bottom: 4px; }
.lp-steps span { color: var(--muted); font-size: 14px; }
.lp-plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.lp-plan { padding: 22px; border-radius: var(--r); border: 1px solid var(--line); background: rgba(15, 22, 35, .7); }
.lp-plan h3 { font: 700 20px var(--display); color: var(--text); margin-bottom: 4px; }
.lp-plan-shield { border-color: var(--gold); } .lp-plan-shield h3 { color: var(--gold-hi); }
.lp-plan-grid-tier { border-color: var(--cyan); box-shadow: 0 0 24px -12px rgba(34, 211, 208, .6); } .lp-plan-grid-tier h3 { color: var(--cyan-hi); font-family: var(--tech); }
.lp-price { font: 700 24px var(--tech); margin: 0; } .lp-year { margin: 0 0 8px; font-size: 13px; }
.lp-plan p:last-child { color: #cfcac2; font-size: 14px; margin-bottom: 0; }
.lp-final { text-align: center; padding: 48px 20px 56px; margin-top: 36px; border-top: 1px solid var(--line); }
.lp-final p { color: var(--muted); font-size: 16px; }
.lp-final .cta { justify-content: center; }
@media (max-width: 980px) { .lp-cats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) { .lp-intro, .lp-cats, .lp-steps ol, .lp-plan-grid { grid-template-columns: 1fr; } .lp-intro { gap: 24px; } }

/* Tickets page: types and panels (v1.2) */
.tk-types { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 16px; }
.tk-chip { display: flex; align-items: center; gap: 10px; padding: 9px 14px 9px 10px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(15, 22, 35, .7); color: var(--text); text-decoration: none; }
.tk-chip:hover { border-color: var(--cyan); text-decoration: none; }
.tk-chip small { display: block; color: var(--muted); font-size: 12px; }
.tk-chip.locked { opacity: .6; }
.tk-emoji { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: rgba(201, 150, 90, .14); font-size: 17px; flex: none; }
.tk-new { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; padding-top: 14px; border-top: 1px solid var(--line); }
.tk-new .field { margin: 0; }
details.tk-type > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font: 600 17px var(--tech); }
details.tk-type > summary::-webkit-details-marker { display: none; }
details.tk-type > summary::after { content: "▾"; margin-left: auto; color: var(--muted); transition: transform .15s; }
details.tk-type[open] > summary::after { transform: rotate(180deg); }
details.tk-type[open] > summary { padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
details.tk-type .tk-sum { font: 400 13px var(--body); }
details.tk-type:target, details.tk-type:focus-within { border-color: var(--line-2); }
.tk-h { font: 700 15px var(--tech); color: var(--gold-hi); margin: 22px 0 10px; letter-spacing: .02em; }
.tk-actions { margin-top: 18px; }
.tk-styles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tk-style { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(15, 22, 35, .6); cursor: pointer; }
.tk-style:has(input:checked) { border-color: var(--cyan); box-shadow: 0 0 18px -10px rgba(34, 211, 208, .8); }
.tk-style input { margin-top: 4px; accent-color: var(--cyan); }
.tk-style small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.chip.off { opacity: .45; }
@media (max-width: 760px) { .tk-styles { grid-template-columns: 1fr; } }

/* Site-wide polish to match the home page (v1.2) */
.page-eyebrow { margin: 4px 0 6px; }
.head .lp-eyebrow, .prose > .lp-eyebrow { margin-bottom: 6px; }
.prose > .lp-eyebrow { margin-top: 36px; }
.card h2, .card > h2:first-child { font: 700 18px var(--tech); letter-spacing: .01em; color: var(--text); background: none; -webkit-text-fill-color: currentColor; text-transform: none; }
.card h2 + .sub { margin-top: 2px; }
.prose h2 { font-size: 22px; margin-top: 1.8em; }
.prose ul { padding-left: 20px; } .prose li::marker { color: var(--cyan); }
.board tr.first td { color: var(--gold-hi); }
.notice { border-radius: 12px; }
details.tk-type > summary .tierpill { font: 600 11px var(--tech); padding: 1px 8px; }

/* Features page: the always-on card has no switch */
.always-on .ao-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; font: 600 16px var(--tech); }
.ao-badge { padding: 3px 11px; border-radius: 99px; border: 1px solid var(--cyan); color: var(--cyan-hi); font: 700 12px var(--tech); letter-spacing: .06em; text-transform: uppercase; box-shadow: 0 0 12px -4px var(--cyan-glow); }
.always-on p { color: #d8d3cc; font-size: 14px; margin: 0 0 12px; }
.ao-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13px; }

/* ===================== v1.3: languages, Easy mode, D&D ===================== */
/* Other scripts: our self-hosted fonts are Latin only, so the browser borrows the system's font for those letters.
   Letter-spacing and capitals are switched off for scripts where they break the joined-up writing. */
:root { --display: "Cinzel", "Trajan Pro", Georgia, "Noto Serif", "Noto Serif SC", "Noto Serif Devanagari", "Noto Naskh Arabic", serif;
  --tech: "Exo 2", "Rajdhani", "Inter", system-ui, "Noto Sans", "Noto Sans SC", "Noto Sans Devanagari", "Noto Sans Bengali", "Noto Sans Arabic", sans-serif;
  --body: "Inter", system-ui, -apple-system, Segoe UI, "Noto Sans", "Noto Sans SC", "Microsoft YaHei", "Noto Sans Devanagari", "Nirmala UI", "Noto Sans Bengali", "Noto Sans Arabic", "Segoe UI", sans-serif; }
html:lang(ur) body { font-family: "Noto Nastaliq Urdu", "Jameel Noori Nastaleeq", "Noto Naskh Arabic", var(--body); line-height: 1.9; }
html:lang(ar) body { font-family: "Noto Naskh Arabic", "Segoe UI", "Tahoma", var(--body); }
html:lang(ar) *, html:lang(ur) *, html:lang(hi) *, html:lang(bn) *, html:lang(zh-Hans) * { letter-spacing: 0 !important; }
html:lang(hi) h1, html:lang(bn) h1, html:lang(zh-Hans) h1, html:lang(ar) h1, html:lang(ur) h1,
html:lang(hi) h2, html:lang(bn) h2, html:lang(zh-Hans) h2, html:lang(ar) h2, html:lang(ur) h2 { font-family: var(--tech); font-weight: 700; }
.brand .wm, .brand .wm * { letter-spacing: .06em !important; } /* the logo lettering stays Latin */
.lp-eyebrow { text-transform: uppercase; }

/* Language menu in the header */
.langpick { position: relative; }
.langpick summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 9px; border: 1px solid var(--line-2);
  background: linear-gradient(180deg, #1a2436, #141c2b); font: 600 13px var(--tech); color: var(--text); white-space: nowrap; }
.langpick summary::-webkit-details-marker { display: none; }
.langpick summary:hover, .langpick[open] summary { border-color: var(--cyan); }
.langpick summary:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.langmenu { position: absolute; inset-inline-end: 0; top: calc(100% + 6px); z-index: 40; width: 260px; padding: 6px; border-radius: 12px; border: 1px solid var(--line-2);
  background: #0f1624; box-shadow: 0 14px 40px rgba(0, 0, 0, .55); display: grid; gap: 1px; }
.langmenu a { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 7px 10px; border-radius: 8px; color: var(--text); }
.langmenu a small { color: var(--dim); font-size: 11.5px; white-space: nowrap; }
.langmenu a:hover { background: rgba(34, 211, 208, .08); text-decoration: none; }
.langmenu a.on { background: rgba(201, 150, 90, .14); color: var(--gold-hi); }

/* Home page: Easy mode band and languages card */
.lp-easy { margin-top: 56px; }
.lp-easy-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.lp-easy-card { padding: 22px; border-radius: var(--r); border: 1px solid var(--line); background: linear-gradient(180deg, rgba(23, 33, 51, .9), rgba(15, 22, 35, .9)); }
.lp-easy-card i { font-style: normal; font-size: 26px; display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; margin-bottom: 10px;
  background: rgba(34, 211, 208, .08); border: 1px solid rgba(34, 211, 208, .25); }
.lp-easy-card p { color: #cfcac2; font-size: 14.5px; margin: 0; }
.lp-langs { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 0; }
.lp-langs span { padding: 3px 10px; border-radius: 99px; border: 1px solid var(--line-2); font-size: 13.5px; color: #d9d3c8; background: rgba(15, 22, 35, .6); }

/* Overview: Easy mode call-out */
.easy-cta { display: flex; gap: 18px; align-items: center; justify-content: space-between; flex-wrap: wrap; border-color: rgba(34, 211, 208, .35); }
.easy-cta h2 { margin-bottom: 4px; } .easy-cta p { margin: 0; }
.easy-cta-btns { display: flex; gap: 10px; flex-wrap: wrap; }

/* Setup Wizard */
.wiz-steps { list-style: none; margin: 0 0 18px; padding: 0; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: thin; }
.wiz-steps li a { display: flex; align-items: center; gap: 8px; padding: 6px 10px 6px 6px; border-radius: 99px; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; font-size: 13px; }
.wiz-steps li a:hover { text-decoration: none; border-color: var(--line-2); color: var(--text); }
.wiz-steps li span { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--panel-2); font: 700 12px var(--tech); }
.wiz-steps li b { font-weight: 500; }
.wiz-steps li.done span { background: rgba(63, 197, 138, .18); color: var(--ok); }
.wiz-steps li.on a { border-color: var(--gold); color: var(--gold-hi); background: rgba(201, 150, 90, .1); }
.wiz-steps li.on span { background: var(--gold); color: var(--gold-ink); }
.wiz-steps li:not(.on) b { display: none; }
.wiz-card h2 { font-size: 26px; }
.wiz-explain { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 6px 0 18px; }
.wiz-explain > div { padding: 14px 16px; border-radius: 12px; background: rgba(15, 22, 35, .6); border: 1px solid var(--line); }
.wiz-explain h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .12em; color: var(--cyan); margin-bottom: 6px; }
.wiz-explain p { margin: 0; color: #d6d0c4; font-size: 14.5px; }
.wiz-q { padding: 14px 16px; border-radius: 12px; border: 1px solid rgba(201, 150, 90, .35); background: rgba(201, 150, 90, .06); margin-bottom: 16px; }
.wiz-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.wiz-actions .spacer { flex: 1; }
.wiz-plans { grid-template-columns: 1fr 1fr; margin-bottom: 12px; }

/* Easy Build */
.eb-tpls { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-bottom: 18px; }
.eb-tpl { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 14px 12px 12px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(15, 22, 35, .6); cursor: pointer; min-height: 132px; }
.eb-tpl input { position: absolute; opacity: 0; pointer-events: none; }
.eb-tpl:has(input:checked) { border-color: var(--gold); background: rgba(201, 150, 90, .1); box-shadow: 0 0 22px -12px rgba(201, 150, 90, .9); }
.eb-tpl:has(input:focus-visible) { outline: 2px solid var(--cyan); outline-offset: 2px; }
.eb-tpl .eb-emoji { font-size: 26px; line-height: 1; }
.eb-tpl b { font: 700 14.5px var(--tech); color: var(--text); }
.eb-tpl small { color: var(--muted); font-size: 12.5px; line-height: 1.4; }
.eb-feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.chip.eb-feat { display: flex; }
.chip.eb-feat span { display: flex; flex-wrap: wrap; align-items: center; width: 100%; padding: 9px 12px; border-radius: 10px; color: var(--text); font-size: 14px; }
.chip.eb-feat small { flex-basis: 100%; color: var(--muted); font-size: 12px; padding-inline-start: 14px; }
.eb-preview { border-color: rgba(201, 150, 90, .45); }
.eb-cols { display: grid; grid-template-columns: 1fr 1fr 2fr; gap: 16px; }
.eb-list { list-style: none; margin: 0; padding: 0; max-height: 320px; overflow: auto; font-size: 14px; }
.eb-list li { padding: 4px 0; border-bottom: 1px solid rgba(34, 47, 69, .6); }
.eb-list li.skip { color: var(--dim); text-decoration: line-through; }
.eb-list li small { text-decoration: none; display: inline-block; color: var(--dim); margin-inline-start: 6px; }
.eb-log { columns: 2; font-size: 14px; } .eb-log li { break-inside: avoid; }
.dnd-cmds td:first-child { white-space: nowrap; width: 1%; padding-inline-end: 18px; }

/* Right-to-left (Arabic, Urdu) */
[dir=rtl] .side nav a.on { box-shadow: inset -3px 0 0 var(--gold); }
[dir=rtl] .side nav a .lock { margin-left: 0; margin-right: auto; }
[dir=rtl] .lp-cat ul, [dir=rtl] .prose ul, [dir=rtl] .cl-ver ul { padding-left: 0; padding-right: 18px; }
[dir=rtl] .toggle .tl { text-align: right; }
[dir=rtl] .wiz-steps li a { padding: 6px 6px 6px 10px; }
[dir=rtl] code, [dir=rtl] .mono, [dir=rtl] input[type=number] { direction: ltr; unicode-bidi: isolate; }

@media (max-width: 980px) { .eb-tpls { grid-template-columns: repeat(3, 1fr); } .lp-easy-grid { grid-template-columns: 1fr; } .eb-cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) {
  .eb-tpls { grid-template-columns: 1fr 1fr; } .eb-feats { grid-template-columns: 1fr; } .eb-cols { grid-template-columns: 1fr; } .eb-log { columns: 1; }
  .wiz-explain { grid-template-columns: 1fr; } .wiz-plans { grid-template-columns: 1fr; }
  .langpick .lp-cur { display: none; }
}

/* My plan (v1.3) */
.plan-sum > div:first-child { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }
.plan-meter { height: 10px; border-radius: 99px; background: var(--panel-2); border: 1px solid var(--line); overflow: hidden; margin: 10px 0 6px; max-width: 420px; }
.plan-meter span { display: block; height: 100%; background: linear-gradient(90deg, var(--cyan-lo), var(--cyan)); }

/* v1.4 Looking for Group page */
.lfg-h { font: 600 13px var(--tech); text-transform: uppercase; letter-spacing: .08em; color: var(--cyan-hi); margin: 18px 0 6px; }
.lfg-h:first-of-type { margin-top: 6px; }
.lfg-locked { display: flex; gap: 14px; align-items: flex-start; padding: 10px 0; }
.lfg-locked strong { display: block; } .lfg-locked small { color: var(--muted); display: block; margin-top: 2px; }
.lfg-locked .ao-badge { flex: none; margin-top: 2px; }
/* v1.4 reaction roles */
.rr-limit { display: flex; gap: 8px; } .rr-limit select { flex: 1; } .rr-limit input { width: 90px; }
.rr-line { display: flex; align-items: center; gap: 8px; padding: 2px 0; }
form.inline-mini { display: inline-flex; gap: 6px; align-items: center; margin: 0; }
form.inline-mini select { width: auto; }
/* v1.4 bot picture */
.av-row { display: flex; gap: 18px; align-items: flex-end; flex-wrap: wrap; }
.av-prev { width: 72px; height: 72px; border-radius: 50%; border: 2px solid var(--gold); object-fit: cover; background: var(--panel-2); }
.av-form { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; } .av-form .field { margin: 0; }
.eb-pick { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; } .eb-pick input { width: auto; margin: 0; }
.copy-link { margin-top: 6px; font: 12px var(--mono, monospace); width: 100%; max-width: 360px; }
.pill.tiktok { border-color: #25f4ee; color: #9ff8f5; }
/* v1.4 suggestions & my data */
.wrap.narrow { max-width: 900px; }
.music-note { margin-bottom: 18px; }
.sugg-reply { margin-top: 6px; padding: 6px 10px; border-inline-start: 3px solid var(--gold); background: rgba(201,150,90,.08); border-radius: 4px; font-size: 14px; }
.pill.sugg-planned { color: var(--cyan-hi); border-color: var(--cyan); } .pill.sugg-done { color: #8af56a; } .pill.sugg-declined { color: var(--muted); }
.md-list { margin: 0; padding-inline-start: 20px; } .md-list li { margin: 4px 0; }
.danger-zone { border-color: rgba(231, 76, 60, .45); }
.sugg-body { white-space: pre-wrap; margin: 6px 0; font-size: 14px; color: #d8d3cc; }
.owner-filter { display: flex; gap: 6px; flex-wrap: wrap; }
#suggestions textarea { margin: 6px 0; }

/* v1.5 Looking for Group: how it works, setup checklist, presets */
.lfg-steps { margin: 4px 0 10px; padding-inline-start: 22px; display: grid; gap: 8px; }
.lfg-steps li { line-height: 1.55; } .lfg-steps em { font-style: normal; color: var(--cyan-hi); }
.lfg-small { font-size: 13px; margin-top: 8px; line-height: 1.55; }
.lfg-checks { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 8px; }
.lfg-check { display: flex; gap: 12px; align-items: flex-start; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--line-2); background: rgba(15, 22, 35, .55); }
.lfg-check .ic { flex: none; width: 1.4em; text-align: center; }
.lfg-check .tx { line-height: 1.5; } .lfg-check .tx form, .lfg-check .tx .btn { display: inline-block; margin: 6px 0 0; }
.lfg-check.ok { border-color: rgba(63, 197, 138, .35); }
.lfg-check.warn { border-color: rgba(229, 169, 59, .45); }
.lfg-check.bad { border-color: rgba(226, 72, 61, .5); background: rgba(226, 72, 61, .06); }
.lfg-parts { margin-top: 14px; } .lfg-parts > summary { cursor: pointer; color: var(--cyan-hi); font: 600 14px var(--tech); padding: 6px 0; }
.lfg-panels { margin-top: 12px; }
.actions + .card, form + .card { margin-top: 18px; } /* v1.5 module pages */

/* ======================================================================
   v1.5.1 DASHBOARD REDESIGN — calmer navigation, command-centre overview,
   channel permissions. Same navy / gold / cyan brand.
   ====================================================================== */
.show-sm { display: none !important; }
@media (max-width: 640px) { .show-sm { display: inline-flex !important; } a.show-sm { display: flex !important; } span.acct-sep.show-sm { display: block !important; } .hide-xs { display: none !important; } }

/* header: three quiet text links + one account menu instead of a row of buttons */
.toplinks { display: flex; gap: 2px; margin-inline-start: 8px; }
.toplinks a { padding: 7px 11px; border-radius: 8px; color: var(--muted); font: 600 13.5px var(--tech); letter-spacing: .02em; }
.toplinks a:hover, .toplinks a.on { color: var(--text); background: rgba(34, 211, 208, .07); text-shadow: none; }
.acct { position: relative; }
.acct summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; padding: 3px 10px 3px 3px; border-radius: 99px; border: 1px solid var(--line-2); background: linear-gradient(180deg, #1a2436, #141c2b); }
.acct summary::-webkit-details-marker { display: none; }
.acct summary:hover, .acct[open] summary { border-color: var(--cyan); }
.acct summary:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.acct summary img, .acct-who img { width: 28px; height: 28px; border-radius: 50%; background: var(--panel-2); }
.acct-nm { font: 600 13px var(--tech); max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-car { color: var(--muted); font-size: 11px; }
.acctmenu { position: absolute; inset-inline-end: 0; top: calc(100% + 8px); z-index: 45; width: 240px; padding: 6px; border-radius: 14px; border: 1px solid var(--line-2);
  background: #0f1624; box-shadow: 0 18px 50px rgba(0, 0, 0, .6); display: grid; gap: 1px; }
.acctmenu a { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 9px; color: var(--text); font-size: 14px; }
.acctmenu a:hover { background: rgba(34, 211, 208, .08); text-shadow: none; }
.acct-who { display: flex; align-items: center; gap: 10px; padding: 8px 10px 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.acct-who b { font: 600 14px var(--tech); overflow: hidden; text-overflow: ellipsis; }
.acct-sep { display: block; height: 1px; background: var(--line); margin: 4px 6px; }
@media (max-width: 640px) { .acct-nm, .acct-car { display: none; } .acct summary { padding: 3px; } }

/* dashboard shell */
.guild { grid-template-columns: 264px minmax(0, 1fr); gap: 32px; max-width: 1320px; }
.side { top: 84px; max-height: calc(100vh - 100px); overflow-y: auto; overscroll-behavior: contain; padding: 2px 6px 24px 2px; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.side .ghead { position: relative; padding: 4px 4px 12px; }
.side .ghead small { display: block; }
.tiertag { font: 600 11.5px var(--tech); color: var(--gold-hi); } .tiertag.t-grid { color: var(--cyan-hi); }
.navclose { display: none; }
.nfind { position: relative; margin: 10px 0 10px; }
.nfind input { padding: 9px 34px 9px 12px; font-size: 13.5px; border-radius: 10px; background: rgba(11, 17, 28, .8); }
.nfind kbd { position: absolute; inset-inline-end: 9px; top: 50%; transform: translateY(-50%); font: 600 11px var(--mono); color: var(--dim); border: 1px solid var(--line-2); border-radius: 5px; padding: 0 5px; pointer-events: none; }
.side nav { gap: 4px; }
.side nav a { padding: 8px 10px 8px 12px; font-size: 14px; gap: 8px; }
.side nav a .nl { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side nav a[hidden], .side details[hidden] { display: none; }
.npin { display: flex; flex-direction: column; gap: 2px; padding-bottom: 8px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.ngrp { border-radius: 11px; }
.ngrp > summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; cursor: pointer; user-select: none; color: var(--text); }
.ngrp > summary::-webkit-details-marker { display: none; }
.ngrp > summary:hover { background: rgba(34, 211, 208, .05); }
.ngrp > summary:focus-visible { outline: 2px solid var(--cyan); outline-offset: -2px; }
.ngrp > summary::after { content: "›"; color: var(--dim); font-size: 18px; line-height: 1; transition: transform .15s; margin-inline-start: 2px; }
.ngrp[open] > summary::after { transform: rotate(90deg); }
[dir=rtl] .ngrp > summary::after { transform: scaleX(-1); } [dir=rtl] .ngrp[open] > summary::after { transform: rotate(90deg); }
.ngi { width: 26px; height: 26px; display: inline-grid; place-items: center; border-radius: 8px; background: rgba(201, 150, 90, .1); font-size: 14px; flex: none; }
.ngrp > summary .grp { flex: 1; margin: 0; font: 600 13.5px var(--tech); letter-spacing: .02em; text-transform: none; color: var(--text); filter: none; }
.ncount { font: 600 11px var(--tech); color: var(--dim); background: rgba(255, 255, 255, .04); border: 1px solid var(--line); border-radius: 99px; padding: 0 7px; }
.nlinks { display: flex; flex-direction: column; gap: 1px; padding: 2px 0 8px; margin-inline-start: 22px; border-inline-start: 1px solid var(--line); padding-inline-start: 8px; }
.ngrp:has(a.on) > summary .grp { color: var(--gold-hi); }
.ngrp:has(a.on) > summary .ngi { background: rgba(201, 150, 90, .22); }
.newtag { font: 700 9.5px var(--tech); letter-spacing: .08em; text-transform: uppercase; color: var(--bg); background: var(--cyan); border-radius: 5px; padding: 1px 5px; }
.side nav .offtag { margin-left: 0; }
.nnone { font-size: 13px; padding: 8px 12px; }

/* page header: breadcrumb above the title */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.crumbs a { color: var(--cyan); } .crumbs a:hover { color: var(--cyan-hi); }
.crumbs span[aria-hidden] { color: var(--dim); }
.head { margin-bottom: 22px; } .head h1 { margin-bottom: 6px; } .head p { font-size: 15px; line-height: 1.6; }

/* sticky "unsaved changes" bar */
.savebar { position: fixed; z-index: 30; left: 50%; bottom: 18px; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; padding: 10px 12px 10px 18px;
  border-radius: 14px; border: 1px solid rgba(201, 150, 90, .55); background: rgba(16, 23, 38, .96); backdrop-filter: blur(8px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .65), 0 0 0 1px rgba(201, 150, 90, .15); animation: sb-in .18s ease-out; }
.savebar[hidden] { display: none; }
.savebar > span { color: var(--gold-hi); font: 600 14px var(--tech); margin-inline-end: 10px; white-space: nowrap; }
@keyframes sb-in { from { opacity: 0; transform: translate(-50%, 12px); } to { opacity: 1; transform: translate(-50%, 0); } }
body.has-savebar main { padding-bottom: 70px; }

/* phone: the sidebar becomes a drawer */
.dbar { display: none; }
.scrim[hidden] { display: none; }
@media (max-width: 900px) {
  .dbar { display: flex; align-items: center; gap: 12px; position: sticky; top: 58px; z-index: 15; padding: 10px 16px; background: rgba(10, 14, 24, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
  .dbar-where { min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
  .dbar-where b { font: 600 14px var(--tech); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .dbar-where small { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .guild { grid-template-columns: 1fr; padding-top: 14px; }
  .side { position: fixed; z-index: 60; top: 0; bottom: 0; inset-inline-start: 0; width: min(320px, 86vw); max-height: none; padding: 16px 14px 40px; background: #0c121e;
    border-inline-end: 1px solid var(--line-2); box-shadow: 20px 0 60px rgba(0, 0, 0, .6); transform: translateX(-105%); transition: transform .2s ease; }
  [dir=rtl] .side { transform: translateX(105%); }
  body.nav-open .side { transform: none; }
  body.nav-open { overflow: hidden; }
  .scrim { position: fixed; inset: 0; z-index: 55; background: rgba(4, 7, 12, .6); backdrop-filter: blur(2px); }
  .navclose { display: grid; place-items: center; position: absolute; inset-inline-end: 0; top: 4px; width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--line-2); background: var(--panel-2); color: var(--text); cursor: pointer; }
  .side nav { flex-direction: column; overflow: visible; gap: 4px; padding-bottom: 0; }
  .side nav a { white-space: normal; } .side nav .grp { display: inline; }
  .side nav a.on { box-shadow: inset 3px 0 0 var(--gold); }
  .nfind kbd { display: none; }
  .savebar { left: 12px; right: 12px; transform: none; bottom: 12px; } @keyframes sb-in { from { opacity: 0; } to { opacity: 1; } }
  .savebar > span { flex: 1; font-size: 13px; }
}
@media (max-width: 640px) { .dbar { top: 54px; } }

/* overview */
.ov-top { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 18px; }
.ov-kpi { display: flex; gap: 16px; align-items: center; margin: 0; }
.ov-kpi h2 { margin: 0 0 2px; font-size: 16px !important; }
.ov-kpi p { margin: 0 0 10px; font-size: 13.5px; }
.ring { position: relative; width: 76px; height: 76px; flex: none; }
.ring svg, .pm-score svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle, .pm-score circle { fill: none; stroke-width: 3.4; }
.ring .bg, .pm-score .bg { stroke: rgba(255, 255, 255, .07); }
.ring .fg, .pm-score .fg { stroke: var(--cyan); stroke-linecap: round; filter: drop-shadow(0 0 4px rgba(34, 211, 208, .45)); }
.ring b { position: absolute; inset: 0; display: grid; place-items: center; font: 700 18px var(--tech); color: var(--text); }
.ov-kpi.is-bad .fg { stroke: var(--err); filter: drop-shadow(0 0 4px rgba(229, 89, 79, .5)); }
.ov-kpi.is-warn .fg { stroke: var(--warn); filter: drop-shadow(0 0 4px rgba(233, 180, 76, .45)); }
.ov-kpi.is-ok .fg { stroke: var(--ok); }
.ov-big { width: 76px; flex: none; text-align: center; } .ov-big b { font: 700 30px var(--tech); color: var(--cyan-hi); text-shadow: 0 0 14px rgba(34, 211, 208, .35); } .ov-big small { color: var(--muted); font: 600 14px var(--tech); }
.ok-line { color: #9fe6c3; margin: 0; font-size: 14px; }
.ov-cols { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.ov-side > .card:last-child { margin-bottom: 18px; }
.ov-bar { height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .06); overflow: hidden; margin: 4px 0 14px; }
.ov-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--cyan)); border-radius: 99px; }
.ov-steps ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ov-steps li { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 10px; border: 1px solid var(--line); background: rgba(11, 17, 28, .45); }
.ov-tick { width: 22px; height: 22px; flex: none; border-radius: 50%; border: 2px solid var(--line-2); display: grid; place-items: center; font: 700 12px var(--tech); }
.ov-st { flex: 1; min-width: 0; font-size: 14px; }
.ov-steps li.done { opacity: .62; } .ov-steps li.done .ov-tick { background: rgba(63, 197, 138, .18); border-color: rgba(63, 197, 138, .5); color: var(--ok); }
.ov-steps li.done .ov-st { text-decoration: line-through; text-decoration-color: var(--dim); }
.ov-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ov-tile { display: grid; grid-template-columns: 34px 1fr; grid-template-rows: auto auto; column-gap: 10px; padding: 10px 12px; border-radius: 11px; border: 1px solid var(--line); background: rgba(11, 17, 28, .45); color: var(--text); }
.ov-tile:hover { border-color: var(--cyan-lo); background: rgba(34, 211, 208, .05); text-shadow: none; }
.ov-tile i { grid-row: span 2; font-style: normal; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: rgba(201, 150, 90, .12); }
.ov-tile b { font: 600 14px var(--tech); } .ov-tile small { color: var(--muted); font-size: 12.5px; line-height: 1.35; }
.ov-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ov-stats div { padding: 10px 12px; border-radius: 10px; background: rgba(11, 17, 28, .45); border: 1px solid var(--line); }
.ov-stats b { display: block; font: 700 22px var(--tech); color: var(--cyan-hi); } .ov-stats span { color: var(--muted); font-size: 12.5px; }
@media (max-width: 1100px) { .ov-top { grid-template-columns: 1fr 1fr; } .ov-cols { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .ov-top { grid-template-columns: 1fr; } .ov-tiles { grid-template-columns: 1fr; } .ov-stats { grid-template-columns: 1fr 1fr; } .ring, .ov-big { width: 64px; height: 64px; } .ov-steps li .btn { padding: 5px 10px; } }

/* features page */
.featbar { gap: 10px; margin-bottom: 14px; position: sticky; top: 70px; z-index: 5; padding: 10px 12px; border-radius: 12px; background: rgba(12, 18, 30, .92); backdrop-filter: blur(8px); border: 1px solid var(--line); }
.featbar .spacer { flex: 1; }
.fq { max-width: 240px; padding: 8px 12px; font-size: 13.5px; }
.fseg { display: inline-flex; border: 1px solid var(--line-2); border-radius: 9px; overflow: hidden; }
.fseg button { background: transparent; border: 0; color: var(--muted); font: 600 13px var(--tech); padding: 7px 12px; cursor: pointer; }
.fseg button.on { background: rgba(34, 211, 208, .12); color: var(--cyan-hi); }
.fseg button + button { border-inline-start: 1px solid var(--line-2); }
.fcount b { color: var(--cyan-hi); font-family: var(--tech); }
.fgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.fgroup { margin: 0; } .fgroup.empty-g { opacity: .5; }
.fg-h { display: flex; align-items: center; gap: 8px; margin-bottom: 6px !important; } .fg-h small { font: 600 12px var(--tech); }
.feat[hidden] { display: none; } .feat.is-locked { opacity: .75; }
.feat .tierpill { font: 600 10.5px var(--tech); padding: 0 7px; margin-inline-start: 4px; vertical-align: 1px; }
@media (max-width: 1100px) { .fgrid { grid-template-columns: 1fr; } }
@media (max-width: 900px) { .featbar { top: 112px; } .fq { max-width: none; flex: 1 1 100%; } }
@media (max-width: 640px) { .featbar { top: 108px; } }

/* channel permissions page */
.pm-summary { display: flex; gap: 12px; align-items: stretch; flex-wrap: wrap; margin-bottom: 18px; }
.pm-score { position: relative; width: 92px; height: 92px; flex: none; }
.pm-score > div { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; line-height: 1.1; }
.pm-score b { font: 700 24px var(--tech); } .pm-score span { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.pm-count { flex: 1 1 110px; padding: 14px 16px; border-radius: var(--r); border: 1px solid var(--line); background: linear-gradient(180deg, rgba(23, 33, 51, .92), rgba(15, 22, 35, .92)); }
.pm-count b { display: block; font: 700 26px var(--tech); } .pm-count span { color: var(--muted); font-size: 13px; }
.pm-count.sev-critical b { color: #ff8b80; } .pm-count.sev-warn b { color: var(--warn); } .pm-count.sev-tip b { color: var(--cyan-hi); }
.pm-findings { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pm-f { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 11px; border: 1px solid var(--line-2); background: rgba(11, 17, 28, .5); border-inline-start-width: 3px; }
.pm-f.sev-critical { border-inline-start-color: var(--err); background: rgba(229, 89, 79, .06); }
.pm-f.sev-warn { border-inline-start-color: var(--warn); } .pm-f.sev-tip { border-inline-start-color: var(--cyan); }
.pm-sev { flex: none; font: 700 10.5px var(--tech); letter-spacing: .08em; text-transform: uppercase; padding: 2px 7px; border-radius: 6px; margin-top: 2px; }
.sev-critical .pm-sev { background: rgba(229, 89, 79, .18); color: #ff9d94; } .sev-warn .pm-sev { background: rgba(233, 180, 76, .15); color: #f1cd8a; } .sev-tip .pm-sev { background: rgba(34, 211, 208, .12); color: var(--cyan-hi); }
.pm-ft { flex: 1; min-width: 0; } .pm-ft strong { display: block; font-weight: 600; } .pm-ft small { display: block; color: var(--muted); font-size: 13px; line-height: 1.5; margin-top: 2px; }
.pm-f form { margin: 0; flex: none; }
.pm-layout { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 18px; align-items: start; margin-bottom: 18px; }
.pm-tree { padding: 14px 10px 10px; position: sticky; top: 84px; margin: 0; }
.pm-tools { display: grid; gap: 8px; padding: 0 4px 10px; border-bottom: 1px solid var(--line); }
.pm-tools input[type=search] { padding: 8px 11px; font-size: 13.5px; }
.pm-only { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--muted); cursor: pointer; } .pm-only input { accent-color: var(--cyan); }
.pm-jump { display: none; }
.pm-list { max-height: calc(100vh - 290px); min-height: 200px; overflow-y: auto; padding: 8px 2px 4px; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.pm-grp + .pm-grp { margin-top: 8px; }
.pm-ch { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 8px; color: var(--muted); font-size: 14px; }
.pm-ch:hover { background: rgba(34, 211, 208, .06); color: var(--text); text-shadow: none; }
.pm-ch.on { background: linear-gradient(90deg, rgba(201, 150, 90, .18), rgba(201, 150, 90, .03)); color: var(--gold-hi); box-shadow: inset 3px 0 0 var(--gold); }
.pm-ch.in { margin-inline-start: 12px; } .pm-ch.managed { opacity: .65; } .pm-ch[hidden] { display: none; }
.pm-cat { font: 600 12px var(--tech); text-transform: uppercase; letter-spacing: .08em; color: var(--text); }
.pm-ic { width: 18px; text-align: center; flex: none; color: var(--dim); font-size: 13px; }
.pm-nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pm-lock, .pm-uns { font-size: 11px; color: var(--dim); } .pm-uns { font-weight: 700; color: var(--warn); }
.pm-dot { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; display: inline-grid; place-items: center; font: 700 10.5px var(--tech); color: #0a0e18; }
.pm-dot.sev-critical { background: var(--err); color: #fff; } .pm-dot.sev-warn { background: var(--warn); } .pm-dot.sev-tip { background: var(--cyan-lo); color: var(--cyan-hi); }
.pm-legend { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 11.5px; margin: 8px 6px 0; padding-top: 8px; border-top: 1px solid var(--line); }
.pm-detail > .card { margin: 0; }
.pm-dhead { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 14px; }
.pm-dhead .lp-eyebrow { margin-bottom: 2px; }
.pm-title { font-size: 22px !important; margin: 0 0 8px !important; } .pm-title span { color: var(--dim); }
.pm-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.pm-badge { font-size: 12px; padding: 2px 9px; border-radius: 99px; border: 1px solid var(--line-2); color: var(--muted); background: rgba(11, 17, 28, .6); }
.pm-badge.b-private { border-color: rgba(201, 150, 90, .55); color: var(--gold-hi); } .pm-badge.b-public { border-color: rgba(34, 211, 208, .4); color: var(--cyan-hi); }
.pm-badge.b-warn { border-color: rgba(233, 180, 76, .5); color: #f1cd8a; } .pm-badge.b-use { color: var(--text); }
.pm-h { font: 600 13px var(--tech) !important; text-transform: uppercase; letter-spacing: .1em; color: var(--cyan) !important; margin: 22px 0 10px !important; }
.pm-allgood { padding: 12px 14px; border-radius: 11px; border: 1px solid rgba(63, 197, 138, .35); background: rgba(63, 197, 138, .06); margin: 0; }
.pm-roles { display: grid; gap: 6px; }
.pm-role { display: grid; grid-template-columns: minmax(0, 1fr) 120px 200px auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); background: rgba(11, 17, 28, .45); margin: 0; }
.pm-role select { padding: 7px 9px; font-size: 13px; }
.pm-rn { min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; }
.pm-rn small { flex-basis: 100%; color: var(--muted); font-weight: 400; font-size: 12px; }
.pm-rdot { width: 10px; height: 10px; border-radius: 50%; background: var(--c); display: inline-block; flex: none; margin-inline-end: 2px; }
.pm-tag { font: 600 10px var(--tech); text-transform: uppercase; letter-spacing: .08em; padding: 1px 6px; border-radius: 5px; border: 1px solid var(--line-2); color: var(--muted); }
.pm-tag.t-admin { border-color: rgba(229, 89, 79, .5); color: #ff9d94; }
.pm-lvl { justify-self: start; font: 600 12px var(--tech); padding: 3px 10px; border-radius: 99px; white-space: nowrap; }
.pm-lvl.l-none { background: rgba(255, 255, 255, .05); color: var(--dim); }
.pm-lvl.l-read, .pm-lvl.l-listen { background: rgba(34, 211, 208, .1); color: var(--cyan-hi); }
.pm-lvl.l-chat, .pm-lvl.l-talk { background: rgba(63, 197, 138, .14); color: #9fe6c3; }
.pm-na { grid-column: span 2; font-size: 12.5px; }
.pm-add { border-style: dashed; grid-template-columns: minmax(0, 1fr) 200px 160px auto; }
.pm-add .pm-rn { color: var(--muted); font-weight: 500; }
.pm-small { font-size: 13px; }
.pm-people { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.pm-people li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line); }
.pm-people small { display: block; color: var(--muted); font-size: 12px; } .pm-people form { margin: 0; }
.pm-matrix { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 12px; }
.pm-matrix > summary { color: var(--cyan-hi); font: 600 14px var(--tech); padding: 4px 0; }
.pm-matrix table { margin-top: 10px; font-size: 13px; } .pm-matrix th { font-size: 10.5px; white-space: nowrap; text-align: center; } .pm-matrix th:first-child { text-align: start; }
.pm-cell { text-align: center; font-weight: 700; } .pm-cell.yes { color: #9fe6c3; } .pm-cell.no { color: var(--dim); }
.pm-cell.ow-allow, .pm-cell.ow-deny { outline: 1px solid currentColor; outline-offset: -5px; border-radius: 8px; }
.pm-power { display: inline-block; font-size: 11.5px; padding: 1px 8px; border-radius: 99px; border: 1px solid var(--line-2); margin: 2px 4px 2px 0; color: #d8d3cc; }
.pm-power.p-admin { border-color: rgba(229, 89, 79, .55); color: #ff9d94; }
.pm-habits ul { margin: 0; padding-inline-start: 20px; display: grid; gap: 8px; color: #d8d3cc; font-size: 14px; } .pm-habits li::marker { color: var(--cyan); }
.btn[disabled] { opacity: .45; cursor: not-allowed; box-shadow: none; } select[disabled] { opacity: .6; }
@media (max-width: 1100px) { .pm-role { grid-template-columns: minmax(0, 1fr) auto; } .pm-role select, .pm-role .btn { grid-column: auto; } .pm-role .pm-lvl { justify-self: end; } .pm-na { grid-column: 1 / -1; }
  .pm-add { grid-template-columns: 1fr 1fr; } .pm-add .pm-rn { grid-column: 1 / -1; } }
@media (max-width: 900px) {
  .pm-layout { grid-template-columns: 1fr; }
  .pm-tree { position: static; padding: 12px; } .pm-tools, .pm-list, .pm-legend { display: none; } .pm-jump { display: block; }
  .pm-score { width: 76px; height: 76px; } .pm-count { flex: 1 1 calc(50% - 50px); padding: 10px 12px; } .pm-count b { font-size: 22px; }
  .pm-f { flex-wrap: wrap; } .pm-f form { flex-basis: 100%; } .pm-f form .btn { width: 100%; justify-content: center; }
}
.nfind input { width: 100%; }
.ov-kpi p.ov-next { color: var(--text); font-size: 13px; margin: -6px 0 10px; line-height: 1.4; }
.ov-kpi > div:last-child { min-width: 0; }
.ov-tile { align-content: center; }
@media (max-width: 640px) { .toplinks { display: none; } }
@media (max-width: 900px) { .side { height: 100vh; height: 100dvh; } }
.brand .wm { direction: ltr; unicode-bidi: isolate; } /* the logo always reads AEGIS GRID, also in Arabic and Urdu */
.note-cell { white-space: pre-wrap; max-width: 460px; overflow-wrap: anywhere; }
.card input[type=search] { padding: 9px 12px; font-size: 14px; }

/* v1.5.2 user guide */
.guide { max-width: 1240px; }
.g-hero { max-width: 820px; margin-bottom: 26px; }
.g-lede { color: var(--muted); font-size: 17px; line-height: 1.6; }
.g-search { position: relative; margin-top: 16px; }
.g-search input { width: 100%; padding: 14px 120px 14px 16px; font-size: 16px; border-radius: 12px; }
.g-count { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-size: 13px; }
.g-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 36px; align-items: start; }
.g-toc { position: sticky; top: 84px; max-height: calc(100vh - 100px); overflow: auto; font-size: 14px; }
.g-toc summary { font: 700 12px var(--tech); letter-spacing: .14em; text-transform: uppercase; color: var(--cyan); cursor: pointer; margin-bottom: 8px; }
.g-toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.g-toc ol ol { margin: 2px 0 4px 14px; padding-left: 10px; border-left: 1px solid var(--line); }
.g-toc a { display: block; padding: 5px 8px; border-radius: 7px; color: var(--muted); }
.g-toc a:hover { color: var(--text); background: rgba(34, 211, 208, .06); text-shadow: none; }
.g-body { min-width: 0; }
.g-sec { scroll-margin-top: 90px; margin-bottom: 40px; }
.g-sec[hidden], .g-area[hidden], .g-cmd[hidden], .g-feat[hidden] { display: none; }
.g-sec > h2 { font-size: 26px; margin: 0 0 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.g-sec ul { padding-inline-start: 20px; display: grid; gap: 8px; color: #d8d3cc; line-height: 1.6; }
.g-sec li::marker { color: var(--cyan); }
.g-steps { display: grid; gap: 10px; }
.g-step { display: flex; gap: 14px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: rgba(11, 17, 28, .45); }
.g-step > b { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font: 700 15px var(--tech); background: linear-gradient(180deg, var(--gold-hi), var(--gold)); color: #1a1208; }
.g-step h3 { margin: 2px 0 4px; font-size: 16px; } .g-step p { margin: 0; color: #d8d3cc; line-height: 1.55; }
.g-area { scroll-margin-top: 90px; margin: 22px 0 8px; } .g-area-h { font-size: 18px; margin: 0 0 10px; color: var(--gold-hi); }
.g-feat { margin: 0 0 8px; padding: 0; scroll-margin-top: 90px; }
.g-feat > summary { list-style: none; cursor: pointer; display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 14px 16px; }
.g-feat > summary::-webkit-details-marker { display: none; }
.g-feat > summary::after { content: "›"; color: var(--dim); font-size: 20px; transition: transform .15s; }
.g-feat[open] > summary::after { transform: rotate(90deg); }
.g-ft { flex: 1; min-width: 0; } .g-ft strong { display: block; } .g-ft small { display: block; color: var(--muted); font-size: 13px; line-height: 1.45; margin-top: 2px; }
.g-fb { padding: 0 16px 14px; border-top: 1px solid var(--line); }
.g-fb ul { margin: 12px 0 8px; }
.g-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 6px 0 0; font-size: 13px; color: var(--muted); }
.g-meta code { font-size: 12.5px; }
.g-pill { flex: none; font: 700 10.5px var(--tech); letter-spacing: .08em; text-transform: uppercase; padding: 2px 8px; border-radius: 99px; border: 1px solid var(--line-2); color: var(--muted); }
.g-pill.t-shield { color: var(--gold-hi); border-color: rgba(201, 150, 90, .55); } .g-pill.t-grid { color: var(--cyan-hi); border-color: rgba(34, 211, 208, .5); } .g-pill.t-free { color: #9fe6c3; border-color: rgba(63, 197, 138, .45); }
.g-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.g-plan { margin: 0; } .g-plan h3 { margin: 0; } .g-plan p { color: #d8d3cc; font-size: 14px; line-height: 1.55; margin: 6px 0 0; }
.g-plan .g-price { font: 700 22px var(--tech); color: var(--text); } .g-price small { display: block; font: 500 12.5px var(--sans, inherit); color: var(--muted); }
.g-plan.p-shield { border-color: rgba(201, 150, 90, .45); } .g-plan.p-grid { border-color: rgba(34, 211, 208, .4); }
.g-faq { display: grid; gap: 8px; } .g-faq details { margin: 0; padding: 0; }
.g-faq summary { cursor: pointer; padding: 14px 16px; font-weight: 600; } .g-faq p { margin: 0; padding: 0 16px 14px; color: #d8d3cc; line-height: 1.6; }
.g-cmds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.g-cmd { padding: 12px 14px; border-radius: 11px; border: 1px solid var(--line); background: rgba(11, 17, 28, .45); scroll-margin-top: 90px; }
.g-cmd:target { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
.g-cmd-h { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; } .g-cmd-h code { font-size: 14px; color: var(--cyan-hi); }
.g-cmd p { margin: 6px 0 0; color: #d8d3cc; font-size: 13.5px; }
.g-subs { margin: 6px 0 0 !important; padding-inline-start: 16px !important; gap: 2px !important; font-size: 13px; color: var(--muted) !important; }
.g-staff { font: 700 10px var(--tech); text-transform: uppercase; letter-spacing: .08em; padding: 1px 6px; border-radius: 5px; border: 1px solid rgba(229, 89, 79, .45); color: #ff9d94; }
.g-foot { margin-top: 8px; font-size: 13px; }
@media (max-width: 900px) { .g-layout { grid-template-columns: 1fr; } .g-toc { position: static; max-height: none; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; } .g-toc details:not([open]) summary { margin: 0; } .g-plans, .g-cmds { grid-template-columns: 1fr; } }
.side nav a.nguide { margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--line); border-radius: 0; color: var(--muted); font-size: 13.5px; }
.side nav a.nguide:hover { color: var(--cyan-hi); background: none; }
.g-search input { color: var(--text); background: rgba(11, 17, 28, .85); border: 1px solid var(--line-2); } .g-search input:focus { border-color: var(--cyan); outline: none; box-shadow: 0 0 0 3px rgba(34, 211, 208, .15); }
/* v1.6.0 economy */
.eco-texts textarea{min-height:92px;font-size:13px}
.eco-plus{border-color:rgba(124,92,255,.45)}
.eco-plus-list{margin:6px 0 14px;padding-left:20px;line-height:1.75}
tr.eco-edit td{padding-top:0;border-top:0}
tr.eco-edit summary{cursor:pointer;color:var(--muted,#9aa4b2);font-size:13px}
/* v1.6.0 ban appeals */
.appeal-head{display:flex;gap:16px;align-items:center}
.appeal-icon{width:64px;height:64px;border-radius:16px;flex:none}
.appeal-status.appeal-accepted{border-color:rgba(63,197,138,.5)}
.appeal-status.appeal-denied{border-color:rgba(226,72,61,.45)}
.copyrow{display:flex;gap:8px;align-items:center}
.copyrow input{flex:1;min-width:0}
/* v1.6.0 achievements */
.ach-table input[type=number]{width:90px}
.ach-emoji{width:80px;text-align:center}
.err-text{color:#ff9d94}
/* v1.6.0 forms */
.form-q input[type=text]{width:100%}
.form-q td:nth-child(3),.form-q td:nth-child(4){text-align:center}

/* ---------- v1.6.0 (added later): staff inbox, temp bans, permission alerts, weekly check-up, AutoMod test, forms, plans, FAQ ---------- */
/* Staff inbox */
.ib-sum { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.ib-tile { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 14px 16px; border-radius: var(--r); border: 1px solid var(--line); background: var(--panel); color: var(--text); }
.ib-tile:hover { border-color: var(--line-2); text-decoration: none; }
.ib-tile i { font-style: normal; font-size: 22px; grid-row: 1 / 3; }
.ib-tile b { font: 700 24px var(--tech); color: var(--gold-hi); line-height: 1; }
.ib-tile small { color: var(--muted); font-size: 13px; }
.ib-list, .pw-list, .amt-hits { list-style: none; margin: 0; padding: 0; }
.ib-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 14px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.ib-item:first-child { border-top: 0; }
.ib-ico { font-size: 20px; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: var(--panel-2); }
.ib-main b { display: block; } .ib-main small { color: var(--muted); }
.ib-age { color: var(--muted); font-size: 13px; white-space: nowrap; }
.ib-go { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
/* Temporary bans */
.tb-list { display: grid; gap: 10px; }
.tb-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) auto auto; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel-2); }
.tb-who b, .tb-when span { display: block; } .tb-who small, .tb-when small { color: var(--muted); font-size: 12px; }
.tb-len { display: flex; gap: 6px; align-items: center; margin: 0; } .tb-len input { width: 120px; }
.tb-end { margin: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* Permission change alerts */
.pw-item { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.pw-item:first-child { border-top: 0; }
.pw-main { flex: 1; min-width: 0; } .pw-main b { display: block; } .pw-main small { color: var(--muted); }
.pw-item form { margin: 0; }
.pw-item.is-undone .pw-main b { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(143, 155, 176, .5); }
/* Weekly check-up */
.cu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 12px 0 16px; }
.cu-box { padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel-2); }
.cu-box h3 { font: 600 15px var(--tech); margin-bottom: 6px; } .cu-box p, .cu-box ul { margin: 0 0 8px; font-size: 14px; } .cu-box ul { padding-inline-start: 18px; }
/* AutoMod test */
.amt-run { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.amt-run .field { flex: 1 1 260px; margin: 0; }
.amt-res { margin-top: 16px; }
.amt-head small { display: block; margin-top: 2px; }
.amt-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.amt-hits li { padding: 10px 0; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.amt-hits q { display: block; margin-top: 4px; color: var(--muted); font-size: 14px; quotes: "“" "”"; }
/* Forms: question rows that stack on phones, and answers you can open */
.fm-qs { display: grid; gap: 8px; margin-bottom: 10px; }
.fm-q { display: grid; grid-template-columns: 28px minmax(0, 1.4fr) minmax(0, 1fr) auto auto; gap: 8px 12px; align-items: center; }
.fm-n { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 99px; background: var(--panel-2); border: 1px solid var(--line-2); font: 600 12px var(--tech); color: var(--muted); }
.fm-q input[type=text] { width: 100%; }
.fm-chk { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; color: var(--muted); white-space: nowrap; }
.fm-more { margin: 4px 0 14px; } .fm-more > summary { cursor: pointer; color: var(--gold-hi); margin-bottom: 10px; }
.fm-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.fm-actions form { margin: 0; }
.fm-actions .inline { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.fm-resp { display: grid; gap: 8px; }
.fm-r { border: 1px solid var(--line); border-radius: 10px; background: var(--panel-2); padding: 10px 14px; }
.fm-r > summary { cursor: pointer; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.fm-ans { margin: 12px 0; display: grid; gap: 4px; } .fm-ans dt { color: var(--muted); font-size: 13px; margin-top: 6px; } .fm-ans dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
/* Plans page */
.pl-hero { text-align: center; max-width: 760px; margin: 8px auto 28px; }
.pl-hero .lead { color: var(--muted); font-size: 17px; }
.pl-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.pl-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(180deg, rgba(23, 33, 51, .95), rgba(13, 19, 30, .95)); overflow: hidden; }
.pl-shield { border-color: rgba(201, 150, 90, .7); } .pl-grid { border-color: rgba(34, 211, 208, .6); box-shadow: 0 0 40px -18px var(--cyan-glow); }
.pl-art { background: #0b111c; aspect-ratio: 16 / 10; overflow: hidden; display: grid; place-items: center; }
.pl-art img { width: 100%; height: 100%; object-fit: cover; object-position: center 42%; display: block; }
.pl-art-free img { width: 44%; height: auto; max-height: 86%; object-fit: contain; }
.pl-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.pl-body h2 { font-size: 26px; margin-bottom: 4px; }
.pl-shield h2 { color: var(--gold-hi); } .pl-grid h2 { font-family: var(--tech); color: var(--cyan-hi); text-shadow: 0 0 14px rgba(34, 211, 208, .35); }
.pl-price { font: 700 30px var(--tech); margin: 0; } .pl-sub { color: var(--muted); font-size: 13px; margin-bottom: 12px; }
.pl-points { padding-inline-start: 18px; margin: 0 0 16px; font-size: 14px; } .pl-points li { margin-bottom: 6px; }
.pl-cta { margin-top: auto; display: flex; flex-wrap: wrap; gap: 8px; }
.pl-how { margin-top: 24px; } .pl-how ul { padding-inline-start: 20px; } .pl-how li { margin-bottom: 6px; }
.pl-compare { margin-top: 34px; }
.pl-table { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--panel); }
.pl-row { display: grid; grid-template-columns: minmax(0, 1fr) 84px 84px 84px 96px; align-items: center; border-top: 1px solid var(--line); }
.pl-row > span { padding: 9px 14px; } .pl-row > span:not(:first-child) { text-align: center; }
.pl-th { border-top: 0; background: var(--panel-2); font: 600 14px var(--tech); }
.pl-area { background: rgba(201, 150, 90, .07); font: 600 14px var(--tech); color: var(--gold-hi); }
.pl-area > span { grid-column: 1 / -1; }
.pl-always { background: rgba(34, 211, 208, .05); }
.pl-yes { color: var(--ok); font-weight: 700; } .pl-no { color: var(--dim); }
.pl-row .tierpill { font-size: 11px; margin-inline-start: 6px; }
/* FAQ */
.faq { max-width: 860px; }
.faq-sec { margin-top: 26px; } .faq-sec h2 { font-size: 20px; }
.faq-q { border: 1px solid var(--line); border-radius: 12px; background: var(--panel); margin-bottom: 8px; }
.faq-q > summary { cursor: pointer; padding: 14px 18px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq-q > summary::-webkit-details-marker { display: none; }
.faq-q > summary::after { content: "+"; color: var(--gold-hi); font: 600 18px var(--tech); line-height: 1; }
.faq-q[open] > summary::after { content: "−"; }
.faq-a { padding: 0 18px 16px; color: #d9d3c6; }
.faq-more { margin-top: 28px; }

@media (max-width: 980px) { .pl-cards { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; } .pl-art { aspect-ratio: 16 / 9; } }
@media (max-width: 900px) { .ib-sum { grid-template-columns: 1fr 1fr; } .tb-row { grid-template-columns: 1fr 1fr; } .tb-len, .tb-end { grid-column: span 1; } }
@media (max-width: 640px) {
  .ib-item { grid-template-columns: auto minmax(0, 1fr); } .ib-age { grid-column: 2; } .ib-go { grid-column: 1 / -1; justify-content: flex-start; }
  .tb-row { grid-template-columns: 1fr; } .tb-len input { flex: 1; width: auto; }
  .cu-grid { grid-template-columns: 1fr; }
  .pw-item { flex-wrap: wrap; } .pw-main { flex-basis: 100%; }
  .fm-q { grid-template-columns: 26px minmax(0, 1fr); padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel-2); }
  .fm-q .fm-hint { grid-column: 2; } .fm-q .fm-chk { grid-column: 2; }
  .fm-q .fm-chk + .fm-chk { margin-top: -4px; }
  .pl-row { grid-template-columns: minmax(0, 1fr) 46px 46px 46px 52px; font-size: 14px; } .pl-row > span { padding: 8px 8px; } .pl-row > span:first-child { padding-inline-start: 12px; }
  .pl-th { font-size: 12px; }
  .pl-body { padding: 16px; } .pl-cta .btn.big { width: 100%; justify-content: center; }
  .faq-q > summary { padding: 12px 14px; } .faq-a { padding: 0 14px 14px; }
  .amt-run .btn { width: 100%; justify-content: center; }
}
/* v1.6.0 phone check: Server economy and other long settings pages */
@media (max-width: 640px) {
  /* rows of plain number boxes (Min / Max / Cooldown…) stay side by side instead of one per line */
  .grid3:has(> label.field > input[type=number]):not(:has(select, textarea, input[type=text])),
  .grid2:has(> label.field > input[type=number]):not(:has(select, textarea, input[type=text])) { grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 10px; align-items: end; }
  .grid3:has(> label.field > input[type=number]):not(:has(select, textarea, input[type=text])) .field > span { font-size: 12px; }
  .eco-ri, .eco-ri tbody, .eco-ri tr, .eco-ri td { display: block; width: 100%; }
  .eco-ri tr:first-child { display: none; }
  .eco-ri tr { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 10px 0; border-top: 1px solid var(--line); }
  .eco-ri td { padding: 0; border: 0; } .eco-ri td:first-child { grid-column: 1 / -1; }
  .eco-ri select, .eco-ri input { width: 100%; }
  .eco-log td { white-space: nowrap; }
  .card { padding: 16px; }
}
.pl-free h2 { color: #dfe5ee; }

/* v1.6.1 Esports team tools + MILSIM tools */
.eb-game { margin-top: 14px; }
.eb-games .chips { margin-top: 6px; }
.es-teams td, .ms-ranks td { vertical-align: middle; }
.es-teams input[type=text], .es-teams select, .ms-ranks input[type=text], .ms-ranks select, .ms-defs input[type=text], .ms-defs select { min-width: 140px; width: 100%; }
.es-teams input[name=t_positions] { min-width: 220px; }
.ms-ranks input[name=r_name] { min-width: 170px; }
input.ms-num { width: 84px; min-width: 84px; }
input.ms-tag, .ms-defs input.ms-tag { width: 90px; min-width: 90px; text-transform: uppercase; }
.ms-defs + .ms-defs { margin-top: 18px; }
.es-add { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.ms-make { display: flex; gap: 18px; align-items: center; justify-content: space-between; }
.ms-make > div { flex: 1 1 auto; }
.es-att { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-top: 10px; background: rgba(255, 255, 255, .015); }
.es-att summary { cursor: pointer; font-weight: 600; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.es-att[open] summary { margin-bottom: 10px; }
.cal-wrap { display: grid; grid-template-columns: 1fr; gap: 22px; }
.cal h3 { margin: 0 0 8px; font-family: var(--tech, inherit); color: var(--gold-hi); }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-h { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); text-align: center; padding-bottom: 2px; }
.cal-d { min-height: 72px; border-radius: 8px; border: 1px solid var(--line); background: rgba(17, 24, 38, .65); padding: 4px; display: flex; flex-direction: column; gap: 2px; overflow: hidden; }
.cal-d.blank { background: transparent; border-color: transparent; }
.cal-d.today { border-color: var(--cyan); box-shadow: 0 0 0 1px rgba(34, 211, 208, .35) inset; }
.cal-n { font-size: 11px; color: var(--muted); }
.cal-i { font-size: 11px; line-height: 1.3; border-radius: 5px; padding: 1px 4px; background: rgba(201, 150, 90, .16); color: var(--gold-hi); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-i.k-scrim, .cal-i.k-match, .cal-i.k-tournament { background: rgba(34, 211, 208, .14); color: var(--cyan-hi); }
.cal-i.k-op { background: rgba(107, 142, 90, .25); color: #cfe6bf; }
.cal-more { font-size: 10px; color: var(--muted); }
.es-heat { border-collapse: separate; border-spacing: 3px; }
.es-heat th { font-size: 12px; color: var(--muted); font-weight: 600; text-align: center; padding: 2px 6px; }
.es-heat td { text-align: center; min-width: 44px; height: 30px; border-radius: 6px; font-weight: 600; font-size: 12px; background: rgba(34, 211, 208, calc(var(--a, 0) * .75 + .04)); color: var(--text); }
@media (max-width: 640px) {
  .cal-d { min-height: 48px; padding: 2px; }
  .cal-i { font-size: 0; padding: 0; height: 6px; }
  .ms-make { flex-direction: column; align-items: stretch; }
}
.actions .spacer { flex: 1; }

/* v1.6.3 Guide channels */
.gc-status { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.gc-st h3 { margin: 0 0 6px; }
.gc-err { color: #fca5a5; }
.gc-prev { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 18px; }
.gc-discord { background: #313338; border-radius: 10px; padding: 12px; display: flex; flex-direction: column; gap: 8px; max-height: 720px; overflow: auto; }
.gc-embed { background: #2b2d31; border-left: 4px solid #22d3d0; border-radius: 4px; padding: 10px 12px; color: #dbdee1; font-size: 13.5px; line-height: 1.45; overflow-wrap: anywhere; }
.gc-discord.staff .gc-embed { border-left-color: #c9965a; }
.gc-et { font-weight: 700; color: #f2f3f5; margin-bottom: 4px; }
.gc-ed code { background: #1e1f22; color: #dbdee1; padding: 0 4px; border-radius: 4px; font-size: 12.5px; }
@media (max-width: 640px) { .gc-prev { grid-template-columns: 1fr; } }

/* v1.7 NarcoNostra and trivia */
.nn-sides { display: flex; align-items: stretch; gap: 14px; flex-wrap: wrap; }
.nn-side { flex: 1 1 180px; display: flex; flex-direction: column; gap: 4px; align-items: center; text-align: center; padding: 14px; border-radius: 12px; border: 1px solid var(--line, #2a2f3a); }
.nn-side b { font-size: 18px; }
.nn-mafia { background: rgba(201, 150, 90, .12); }
.nn-cartel { background: rgba(47, 158, 91, .12); }
.nn-banner { margin: 0 0 16px; border-radius: 14px; overflow: hidden; border: 1px solid rgba(201, 150, 90, .35); }
.nn-banner img, .g-banner { display: block; width: 100%; height: auto; }
.g-banner { max-width: 640px; border-radius: 10px; margin: 4px 0 12px; }
.nn-big { font-size: 34px; line-height: 1; }
.nn-vs { align-self: center; font-weight: 700; opacity: .6; }
.tv-add details { margin: 8px 0; }
.tv-add textarea { width: 100%; }
@media (max-width: 560px) { .nn-vs { flex-basis: 100%; text-align: center; } }
/* v1.7.4 Easy Build locked */
.eb-locked { text-align: center; }
.eb-locked .lockicon { font-size: 40px; }
.eb-lock-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin: 16px 0; text-align: left; }
.eb-lock-opt { border: 1px solid var(--line, #2a2f3a); border-radius: 12px; padding: 14px; }
.eb-lock-opt h3 { margin: 0 0 6px; }
/* v1.7.4 Server Builder */
.bl-sell .bl-price { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 8px; }
.bl-amount { font-size: 34px; font-weight: 800; }
.bl-amount span { font-size: 15px; font-weight: 500; opacity: .7; }
.bl-list { margin: 10px 0 16px; padding-left: 18px; display: grid; gap: 8px; }
.bl-buy { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.bl-tabs { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.bl-tabs a { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line, #2a2f3a); text-decoration: none; }
.bl-acts { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.bl-layout { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; justify-content: space-between; border-top: 1px solid var(--line, #2a2f3a); padding: 12px 0; }
.bl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin-top: 14px; }
.bl-card { display: block; text-decoration: none; color: inherit; }
.bl-card:hover { border-color: var(--accent, #c9965a); }
.bl-who { display: flex; gap: 12px; align-items: center; }
.bl-who img { border-radius: 50%; }
.bl-hero h1 { margin: 2px 0; }
.bl-bio { white-space: pre-wrap; margin: 14px 0; }
.bl-work { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.bl-srv { display: flex; gap: 10px; align-items: center; }
.bl-srv img, .bl-noicon { border-radius: 12px; }
.bl-noicon { width: 40px; height: 40px; display: inline-grid; place-items: center; background: var(--line, #2a2f3a); font-weight: 700; }
/* v1.7.4 Health check, Settings history */
.hc-ok { text-align: center; } .hc-big { font-size: 40px; }
.hc-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.hc-list li { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line, #2a2f3a); }
.hc-list li.hc-err { border-color: rgba(239, 68, 68, .5); }
.hc-body { flex: 1; min-width: 0; } .hc-body p { margin: 2px 0 0; }
.hc-area { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; opacity: .7; }
.hc-ico { font-size: 20px; }
.hs-head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: center; }
.hs-list { margin: 8px 0 0; padding-left: 18px; display: grid; gap: 4px; word-break: break-word; }
.hs-old { text-decoration: line-through; opacity: .7; } .hs-new { font-weight: 600; }
.navcount { margin-left: auto; background: #ef4444; color: #fff; border-radius: 999px; font-size: 11px; padding: 0 7px; line-height: 18px; }
@media (max-width: 560px) { .hc-list li { flex-wrap: wrap; } }
/* v1.7.4 Server Builder artwork */
.bl-sell-grid { display: grid; grid-template-columns: 1fr 256px; gap: 24px; align-items: center; }
.bl-art { width: 100%; max-width: 256px; height: auto; border-radius: 16px; justify-self: center; }
.bl-mark { border-radius: 8px; vertical-align: middle; }
.bl-planline .bl-mark, .bl-eyebrow .bl-mark, .eb-lock-opt h3 .bl-mark { margin-right: 4px; }
.bl-note { display: flex; gap: 14px; align-items: center; }
.bl-note p { margin: 0; }
.bl-dirhead { display: flex; gap: 16px; align-items: center; justify-content: flex-start; }
.bl-dirhead > div { flex: 1; min-width: 0; }
.bl-dirhead .bl-mark { border-radius: 14px; flex: none; }
@media (max-width: 700px) { .bl-sell-grid { grid-template-columns: 1fr; } .bl-art { order: -1; max-width: 200px; } }
.bl-who .bl-mark { border-radius: 5px; }
.bl-note { margin-top: 18px; }
.nn-banner { background: #000; } .nn-banner img { max-height: 340px; object-fit: contain; }
/* v1.7.4 Server Builder on the Plans page: a wide card under the three server plans */
.pl-builder { flex-direction: row; margin-top: 18px; border-color: rgba(201, 150, 90, .55); background: linear-gradient(110deg, rgba(40, 30, 18, .55), rgba(13, 19, 30, .95) 45%, rgba(10, 40, 44, .55)); }
.pl-builder .pl-art { flex: 0 0 300px; aspect-ratio: auto; }
.pl-builder .pl-art img { width: 100%; height: 100%; object-fit: cover; }
.pl-builder h2 { background: linear-gradient(90deg, var(--gold-hi, #e8c58a), var(--cyan-hi, #67e8f9)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pl-builder .pl-cta { flex-wrap: wrap; }
@media (max-width: 980px) { .pl-builder { flex-direction: column; max-width: 560px; margin-left: auto; margin-right: auto; } .pl-builder .pl-art { flex: none; aspect-ratio: 16 / 9; } }

/* v1.7.4 Builder dashboard (/builder/dashboard …) and the builder directory search */
.bld .side .ghead img { border-radius: 12px; background: transparent; }
.bld .side nav .navcount { background: rgba(34, 211, 208, .12); color: var(--cyan-hi); border: 1px solid rgba(34, 211, 208, .3); box-shadow: none; }
.ov-steps .ok-line { margin: 12px 0 0; }
.bld-kpis .ov-big b { display: block; }
.bld-list { display: grid; gap: 8px; }
.bld-row { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 10px; border: 1px solid var(--line); background: rgba(11, 17, 28, .45); }
.bld-row form { margin: 0; }
.bld-ic { width: 36px; height: 36px; flex: none; border-radius: 10px; object-fit: cover; }
.bld-av { width: 40px; height: 40px; flex: none; border-radius: 50%; }
.bld-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.bld-main b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bld-filter { margin: 0 0 14px; }
.bld-filter .chip small { opacity: .65; margin-inline-start: 4px; font-size: 11.5px; }
.bld-search { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr) auto; gap: 12px; align-items: end; }
.bld-search .field { margin: 0; }
.bld-count { margin: 0 0 4px; font-size: 13.5px; }
.bl-card { display: flex; flex-direction: column; }
.bl-card .bld-bio { flex: 1; }
.bld-more { margin-top: 10px; font: 600 13px var(--tech); color: var(--cyan-hi); }
.bld-noav { width: 48px; height: 48px; border-radius: 50%; flex: none; }
.bld-pages { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; align-items: center; margin: 22px 0 6px; }
.bld-cta { display: flex; gap: 18px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-top: 26px; }
.bld-cta h2 { margin: 0 0 4px; } .bld-cta p { margin: 0; }
@media (max-width: 760px) { .bld-search { grid-template-columns: 1fr 1fr; } .bld-q { grid-column: 1 / -1; } .bld-search .btn { grid-column: 1 / -1; } }
@media (max-width: 600px) { .bld-row { flex-wrap: wrap; } .bld-row .bl-acts { width: 100%; } }
/* v1.8 Enterprise card on the Plans page: the builder card's wide layout, no picture */
.pl-enterprise { border-color: rgba(240, 207, 142, .6); }
/* the picture has the word ENTERPRISE in it, so it is shown whole (never cropped) on its own dark background */
.pl-enterprise .pl-art { display: flex; align-items: center; justify-content: center; background: radial-gradient(circle at 50% 40%, #1c2e38, #121b24 70%); }
.pl-enterprise .pl-art img { object-fit: contain; height: auto; max-height: 100%; }
@media (max-width: 980px) { .pl-enterprise .pl-art { aspect-ratio: auto; } .pl-enterprise .pl-art img { width: min(100%, 340px); } }
/* v1.8 Case Tracker */
.ct-reason { margin: 8px 0 14px; padding: 8px 12px; border-inline-start: 3px solid var(--line-2); color: #d8d3cc; white-space: pre-wrap; }
.ct-notes, .ct-links { list-style: none; padding: 0; margin: 0 0 12px; }
.ct-notes li { padding: 8px 0; border-top: 1px solid var(--line); } .ct-notes li small { color: var(--muted); display: block; }
.ct-notes li div { white-space: pre-wrap; } .ct-notes .ct-change div { color: var(--muted); }
.ct-links li { display: flex; gap: 8px; align-items: center; padding: 4px 0; }
.ct-filter { flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
/* v1.8 Player Feedback */
.fb-list { list-style: none; padding: 0; margin: 0; }
.fb-item { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.fb-main { flex: 1 1 360px; min-width: 0; } .fb-text { white-space: pre-wrap; overflow-wrap: anywhere; } .fb-main small { color: var(--muted); }
.fb-acts { display: flex; gap: 6px; flex-wrap: wrap; } .fb-ignored { opacity: .55; } .fb-sent .fb-text { color: #d8d3cc; }
.fb-tr { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 10px; }
.chk { display: inline-flex; gap: 4px; align-items: center; margin-inline-end: 12px; }
.eco-edit td { padding-top: 0; border-top: 0; } .eco-edit summary { color: var(--muted); font-size: 13px; cursor: pointer; }
