:root {
  color-scheme: dark;
  --bg: #0d0d0f;
  --bg-2: #131315;
  --panel: #18181b;
  --panel-2: #202024;
  --panel-3: #2a2a2e;
  --border: #262628;
  --border-2: #404040;
  --accent: #fda4af;
  --accent-strong: #e11d48;
  --accent-hover: #f43f5e;
  --accent-soft: rgba(244, 63, 94, .12);
  --accent-line: rgba(244, 63, 94, .42);
  --text: #fafafa;
  --muted: rgba(250, 250, 250, .56);
  --muted-2: rgba(250, 250, 250, .36);
  --good: #4ade80;
  --bad: #fb7185;
  --warn: #fbbf24;
  --radius: 16px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { font-family: 'Manrope', 'Segoe UI', sans-serif; color: var(--text); }
body { background: var(--bg); min-height: 100vh; display: flex; flex-direction: column; }
a { text-decoration: none; color: inherit; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #3a3a3d; border-radius: 10px; }
::-webkit-scrollbar-track { background: transparent; }

/* ---------- Public navbar ---------- */
.navbar { position: fixed; top: 0; z-index: 50; width: 100%; border-bottom: 1px solid var(--border); background: rgba(27, 24, 29, .85); backdrop-filter: blur(12px); padding: 1rem 1.25rem; display: flex; align-items: center; gap: 1.5rem; }
.nav-spacer { height: 5rem; }
.brand { display: flex; align-items: center; gap: .6rem; }
.brand img { width: 40px; height: 40px; border-radius: 50%; box-shadow: 0 0 0 2px var(--accent-line); }
.wordmark { font-family: 'Space Grotesk', ui-monospace, monospace; font-weight: 700; letter-spacing: -.02em; font-size: 1.55rem; background: linear-gradient(92deg, #fff, var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav-links { display: flex; align-items: center; gap: 1.3rem; flex: 1; }
.dnavbar-item { font-size: .875rem; font-weight: 600; color: var(--muted); transition: color .2s; background: none; border: none; cursor: pointer; font-family: inherit; display: inline-flex; align-items: center; gap: .3rem; }
.dnavbar-item:hover { color: #fff; }
.premium-pill { background: linear-gradient(to right, var(--accent-strong), var(--accent-hover)); color: #fff; padding: .4rem .8rem; border-radius: 999px; font-size: .75rem; font-weight: 800; display: inline-flex; align-items: center; gap: .35rem; }
.premium-pill:hover { filter: brightness(1.08); }
.nav-right { display: flex; align-items: center; gap: 1rem; margin-left: auto; }
.nav-user { display: flex; align-items: center; gap: .5rem; font-size: .875rem; font-weight: 700; }
.nav-user img { width: 28px; height: 28px; border-radius: 50%; }
.dropdown { position: relative; }
.dropdown summary { list-style: none; cursor: pointer; }
.dropdown summary::-webkit-details-marker { display: none; }
.dropdown .chevron { display: inline-block; transition: transform .2s; font-size: .7em; }
.dropdown[open] .chevron { transform: rotate(180deg); }
.dropdown-menu { position: absolute; top: calc(100% + .6rem); right: 0; min-width: 230px; background: var(--panel); border: 1px solid var(--border-2); border-radius: 14px; padding: .5rem; box-shadow: 0 18px 40px rgba(0, 0, 0, .5); display: flex; flex-direction: column; gap: .15rem; z-index: 60; }
.dropdown-menu a { padding: .5rem .75rem; border-radius: 10px; font-size: .875rem; font-weight: 500; color: var(--muted); display: flex; align-items: center; gap: .5rem; }
.dropdown-menu a:hover { background: var(--accent-soft); color: #fff; }

/* ---------- Buttons ---------- */
.dbtn { display: inline-flex; justify-content: center; align-items: center; gap: .5rem; border-radius: 12px; padding: .6rem 1.1rem; font-size: .875rem; font-weight: 700; color: var(--text); white-space: nowrap; border: 1px solid transparent; cursor: pointer; transition: all .18s; font-family: inherit; }
.dbtn-large { min-height: 3rem; font-size: 1.05rem; padding: .6rem 1.6rem; }
.dbtn-primary { background: var(--accent-strong); border-color: var(--accent-hover); color: #fff; box-shadow: 0 6px 18px rgba(225, 29, 72, .3); }
.dbtn-primary:hover { background: var(--accent-hover); box-shadow: 0 10px 26px rgba(244, 63, 94, .4); }
.dbtn-gray { background: var(--panel-2); border-color: var(--border); }
.dbtn-gray:hover { background: var(--panel-3); }
.dbtn-danger { background: rgba(251, 113, 133, .14); border-color: rgba(251, 113, 133, .38); color: #fda4af; }
.dbtn-danger:hover { background: rgba(251, 113, 133, .24); }
.dbtn-ghost { background: transparent; border-color: var(--border-2); color: var(--muted); }
.dbtn-ghost:hover { color: #fff; border-color: var(--accent-line); }

/* ---------- Hero / public ---------- */
.hero { position: relative; overflow: hidden; background: radial-gradient(1200px 500px at 50% -10%, rgba(225, 29, 72, .16), transparent), linear-gradient(to bottom, #141416, #0d0d0f); }
.hero-grid { position: absolute; inset: 0; background-image: radial-gradient(circle at 1px 1px, #fff 1px, transparent 0); background-size: 34px 34px; opacity: .025; }
.orb { position: absolute; border-radius: 50%; filter: blur(70px); animation: pulse-slow 5s cubic-bezier(.4, 0, .6, 1) infinite; }
.orb-1 { width: 320px; height: 320px; background: rgba(244, 63, 94, .22); top: -80px; left: 6%; }
.orb-2 { width: 380px; height: 380px; background: rgba(225, 29, 72, .16); bottom: -110px; right: 8%; animation-delay: .6s; }
.orb-3 { width: 220px; height: 220px; background: rgba(253, 164, 175, .10); top: 28%; right: 26%; animation-delay: 1.1s; }
.orb-4 { width: 180px; height: 180px; background: rgba(255, 255, 255, .05); bottom: 14%; left: 20%; animation-delay: 2s; }
@keyframes pulse-slow { 0%, 100% { opacity: 1; } 50% { opacity: .4; } }
.hero-inner { position: relative; max-width: 80rem; margin: 0 auto; padding: 5rem 1.5rem 7rem; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1.6rem; }
.hero-avatar-wrap { position: relative; width: 128px; height: 128px; animation: float 6s ease-in-out infinite; }
.hero-avatar-wrap .halo { position: absolute; inset: 0; border-radius: 50%; background: rgba(244, 63, 94, .3); filter: blur(26px); transform: scale(1.12); animation: pulse-slow 4s infinite; }
.hero-avatar-wrap .ring1, .hero-avatar-wrap .ring2 { position: absolute; inset: -10px; border-radius: 50%; border: 3px solid var(--accent-line); border-top-color: transparent; animation: spin-slow 16s linear infinite; }
.hero-avatar-wrap .ring2 { inset: -20px; border-color: rgba(255, 255, 255, .1); border-bottom-color: transparent; animation: spin-reverse 26s linear infinite; }
.hero-avatar-wrap img { position: relative; width: 128px; height: 128px; border-radius: 50%; box-shadow: 0 0 0 4px rgba(244, 63, 94, .25), 0 25px 50px -12px rgba(0, 0, 0, .55); }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes spin-slow { to { transform: rotate(1turn); } }
@keyframes spin-reverse { from { transform: rotate(1turn); } to { transform: rotate(0); } }
.hero-title { font-family: 'Space Grotesk', ui-monospace, monospace; font-weight: 700; letter-spacing: -.03em; font-size: clamp(3rem, 8vw, 4.6rem); background: linear-gradient(92deg, #fff, var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { color: #e5e5e5; font-size: 1.05rem; max-width: 42rem; line-height: 1.6; }
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }
.section { max-width: 80rem; margin: 0 auto; padding: 3rem 1.5rem; width: 100%; }
.section + .section { padding-top: 0; }
.section-title { font-size: 1.85rem; font-weight: 800; background: linear-gradient(92deg, #fff, var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 1.5rem; text-align: center; }
.trusted { text-align: center; font-size: 1.1rem; font-weight: 600; color: var(--muted); padding: 2.5rem 1rem 0; }
.trusted b { color: #fff; font-size: 1.35rem; }
.koya-panel { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 4px 6px -1px rgba(0, 0, 0, .18); }
.feature-card { display: grid; grid-template-columns: 3fr 4fr; gap: 2rem; padding: 2rem; align-items: center; }
.feature-card:hover p { color: #fff; }
.feature-card h3 { font-size: 1.55rem; font-weight: 800; color: #fff; margin-bottom: .7rem; }
.feature-card p { color: var(--muted); line-height: 1.65; font-size: .95rem; transition: color .2s; }
.feature-card .visual { font-size: 4.5rem; text-align: center; background: var(--accent-soft); border: 1px solid var(--border); border-radius: var(--radius); padding: 2.2rem; }
.feature-card.reverse { grid-template-columns: 4fr 3fr; }
.feature-card.reverse .visual { order: -1; }
.features-stack { display: flex; flex-direction: column; gap: 1.5rem; }
.glass-card { background: var(--accent-soft); border: 1px solid var(--border); border-radius: 14px; padding: 1rem; transition: all .2s; position: relative; }
.glass-card:hover { transform: translateY(-2px); border-color: var(--accent-line); }
.glass-card .arrow { position: absolute; top: .8rem; right: .9rem; opacity: 0; transition: all .2s; color: var(--accent); }
.glass-card:hover .arrow { opacity: 1; transform: translateX(3px); }
.glass-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.chip-icon { width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; background: var(--accent-soft); border-radius: 11px; font-size: 1.1rem; margin-bottom: .6rem; }
.page-head { text-align: center; padding: 3.5rem 1.5rem 1rem; }
.page-head h1 { font-size: 2.4rem; font-weight: 800; background: linear-gradient(92deg, #fff, var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.page-head p { color: var(--muted); margin-top: .6rem; }

/* ---------- Commands / status / guild list reuse ---------- */
.cmd-layout { display: grid; grid-template-columns: 280px 1fr; gap: 1.5rem; align-items: start; }
.cmd-sidebar { position: sticky; top: 6.5rem; display: flex; flex-direction: column; gap: 1rem; }
.filter-card { padding: 1rem; }
.filter-card h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: .6rem; display: flex; justify-content: space-between; }
.filter-card .count { background: var(--accent-soft); color: var(--accent); border-radius: 999px; padding: 0 .5rem; font-size: .75rem; }
.filter-btn { display: block; width: 100%; text-align: left; background: none; border: none; color: var(--muted); font-family: inherit; font-size: .875rem; font-weight: 600; padding: .45rem .6rem; border-radius: 10px; cursor: pointer; }
.filter-btn:hover { background: var(--panel-2); color: #fff; }
.filter-btn.active { background: var(--accent-soft); color: var(--accent); }
.search-input { width: 100%; background: var(--panel-2); border: 1px solid var(--border); border-radius: 12px; color: #fff; padding: .8rem 1rem; font-family: inherit; font-size: .95rem; margin-bottom: 1rem; }
.search-input:focus { outline: 2px solid var(--accent-line); }
.cmd-card { padding: 1rem 1.25rem; margin-bottom: 1rem; cursor: pointer; }
.cmd-card summary { list-style: none; display: flex; align-items: center; gap: .8rem; }
.cmd-card summary::-webkit-details-marker { display: none; }
.cmd-name { font-weight: 800; font-family: ui-monospace, monospace; color: var(--accent); }
.cmd-desc { color: var(--muted); font-size: .875rem; flex: 1; }
.cmd-card .chev { transition: transform .2s; color: var(--muted-2); }
.cmd-card[open] .chev { transform: rotate(180deg); }
.cmd-body { border-top: 1px solid var(--border); margin-top: .8rem; padding-top: .8rem; color: var(--muted); font-size: .875rem; line-height: 1.7; }
.mention { background: var(--accent-soft); color: var(--accent); border-radius: .3rem; padding: .05rem .35rem; font-weight: 700; }
.cat-title { font-size: 1.1rem; font-weight: 800; margin: 1.5rem 0 .8rem; color: #fff; }
.status-banner { display: flex; align-items: center; justify-content: center; gap: .7rem; padding: 1rem 1.5rem; border-radius: var(--radius); font-weight: 800; font-size: 1.05rem; margin-bottom: 2rem; }
.status-banner.ok { background: rgba(116, 212, 149, .14); border: 1px solid rgba(116, 212, 149, .3); color: var(--good); }
.status-banner.down { background: rgba(251, 113, 133, .14); border: 1px solid rgba(251, 113, 133, .35); color: var(--bad); }
.pulse-dot { width: 12px; height: 12px; border-radius: 50%; background: currentColor; animation: pulse-slow 2s infinite; }
.stat-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; }
.stat-tile { padding: 1.4rem; text-align: center; }
.stat-tile .num { font-size: 1.9rem; font-weight: 800; color: #fff; }
.stat-tile .lbl { font-size: .8rem; color: var(--muted); margin-top: .3rem; text-transform: uppercase; letter-spacing: .04em; }
.guild-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.guild-card { padding: 1.1rem; display: flex; align-items: center; gap: .9rem; }
.guild-card img, .guild-card .noicon { width: 48px; height: 48px; border-radius: 14px; background: var(--panel-3); display: flex; align-items: center; justify-content: center; font-weight: 800; flex-shrink: 0; }
.guild-card .gname { font-size: .95rem; font-weight: 700; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Toggle ---------- */
.toggle { position: relative; width: 46px; height: 26px; flex-shrink: 0; display: inline-block; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle .slider { position: absolute; inset: 0; background: #3a3a3d; border-radius: 999px; transition: background .2s; cursor: pointer; }
.toggle .slider::before { content: ""; position: absolute; width: 20px; height: 20px; border-radius: 50%; background: #fff; top: 3px; left: 3px; transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,.4); }
.toggle input:checked + .slider { background: var(--accent-strong); }
.toggle input:checked + .slider::before { transform: translateX(20px); }

/* ---------- Footer ---------- */
footer { background: #171419; padding: 2.5rem 2rem; margin-top: auto; }
.footer-inner { max-width: 80rem; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 3rem; justify-content: space-between; }
.footer-col h5 { font-weight: 800; margin-bottom: .8rem; font-size: .95rem; }
.footer-col a { display: block; font-size: .875rem; font-weight: 500; color: var(--muted); padding: .25rem 0; transition: color .2s; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { max-width: 80rem; margin: 2.5rem auto 0; color: var(--muted); font-size: .875rem; }

/* ======================================================
   GUILD DASHBOARD (sidebar layout)
====================================================== */
.app { display: grid; grid-template-columns: 280px 1fr; min-height: 100vh; }
.sidebar { background: var(--bg-2); border-right: 1px solid var(--border); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.sb-guild { display: flex; align-items: center; gap: .75rem; padding: 1.15rem 1.1rem; border-bottom: 1px solid var(--border); }
.sb-guild img, .sb-guild .noicon { width: 42px; height: 42px; border-radius: 13px; flex-shrink: 0; background: var(--panel-3); display: flex; align-items: center; justify-content: center; font-weight: 800; }
.sb-guild .info { overflow: hidden; }
.sb-guild .gname { font-weight: 800; font-size: .95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb-guild .gmeta { font-size: .72rem; color: var(--muted); }
.sb-back { display: flex; align-items: center; gap: .5rem; padding: .7rem 1.2rem; font-size: .8rem; font-weight: 600; color: var(--muted); border-bottom: 1px solid var(--border); }
.sb-back:hover { color: var(--accent); }
.sb-nav { padding: .8rem .7rem; flex: 1; }
.sb-section { font-size: .68rem; text-transform: uppercase; letter-spacing: .09em; color: var(--muted-2); font-weight: 800; padding: 1rem .6rem .4rem; }
.sb-item { display: flex; align-items: center; gap: .7rem; padding: .6rem .7rem; border-radius: 12px; font-size: .9rem; font-weight: 600; color: var(--muted); position: relative; transition: all .15s; }
.sb-item .ic { width: 20px; text-align: center; }
.sb-item:hover { background: var(--panel); color: #fff; }
.sb-item.active { background: var(--accent-soft); color: var(--accent); }
.sb-item.active::before { content: ""; position: absolute; left: -.7rem; top: 20%; height: 60%; width: 3px; border-radius: 3px; background: var(--accent-strong); }
.sb-foot { padding: 1rem 1.2rem; border-top: 1px solid var(--border); font-size: .75rem; color: var(--muted); display: flex; align-items: center; gap: .5rem; }
.sb-foot img { width: 24px; height: 24px; border-radius: 50%; }

.content { padding: 2rem 2.4rem 4rem; max-width: 1080px; width: 100%; }
.topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.8rem; gap: 1rem; flex-wrap: wrap; }
.topbar h1 { font-size: 1.7rem; font-weight: 800; }
.topbar .sub { color: var(--muted); font-size: .9rem; margin-top: .2rem; }
.topbar-actions { display: flex; align-items: center; gap: .6rem; }

.saved-toast { position: fixed; bottom: 1.5rem; right: 1.5rem; background: rgba(116, 212, 149, .16); border: 1px solid rgba(116, 212, 149, .4); color: var(--good); padding: .8rem 1.2rem; border-radius: 12px; font-weight: 700; font-size: .9rem; z-index: 80; box-shadow: 0 10px 30px rgba(0, 0, 0, .4); animation: slideup .3s; }
@keyframes slideup { from { transform: translateY(20px); opacity: 0; } }

.card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; margin-bottom: 1.4rem; }
.card > h2 { font-size: 1.15rem; font-weight: 800; display: flex; align-items: center; gap: .5rem; }
.card > .hint { color: var(--muted); font-size: .85rem; margin: .3rem 0 1.1rem; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem; margin-bottom: 1.4rem; }
.kpi { background: var(--panel); border: 1px solid var(--border); border-radius: 14px; padding: 1.2rem 1.3rem; position: relative; overflow: hidden; }
.kpi::after { content: ""; position: absolute; right: -20px; top: -20px; width: 80px; height: 80px; border-radius: 50%; background: var(--accent-soft); }
.kpi .k-ic { font-size: 1.3rem; }
.kpi .k-num { font-size: 1.7rem; font-weight: 800; margin-top: .4rem; }
.kpi .k-lbl { font-size: .8rem; color: var(--muted); }

.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1rem; }
.tile { background: var(--panel); border: 1px solid var(--border); border-radius: 14px; padding: 1.3rem; display: block; transition: all .18s; position: relative; }
.tile:hover { border-color: var(--accent-line); transform: translateY(-3px); background: var(--panel-2); }
.tile .t-ic { width: 42px; height: 42px; border-radius: 12px; background: var(--accent-soft); display: flex; align-items: center; justify-content: center; font-size: 1.25rem; margin-bottom: .8rem; }
.tile h3 { font-size: 1rem; font-weight: 800; }
.tile p { color: var(--muted); font-size: .82rem; margin-top: .3rem; line-height: 1.5; }

/* form rows / inputs */
.row { display: flex; align-items: center; gap: 1rem; padding: .85rem 0; border-bottom: 1px solid var(--border); }
.row:last-child { border-bottom: none; }
.row .r-main { flex: 1; }
.row .r-label { font-weight: 700; font-size: .92rem; }
.row .r-sub { color: var(--muted); font-size: .78rem; margin-top: .15rem; }
input[type=number], select.field { background: var(--panel-2); border: 1px solid var(--border-2); color: #fff; border-radius: 10px; padding: .55rem .7rem; font-family: inherit; font-size: .9rem; }
select.field { min-width: 220px; cursor: pointer; }
select.field:focus, input[type=number]:focus { outline: 2px solid var(--accent-line); }
.seg { display: inline-flex; background: var(--panel-2); border: 1px solid var(--border); border-radius: 12px; padding: .2rem; gap: .2rem; }
.seg label { padding: .45rem .9rem; border-radius: 9px; font-size: .85rem; font-weight: 700; cursor: pointer; color: var(--muted); }
.seg input { display: none; }
.seg input:checked + span { color: var(--accent); }
.seg label:has(input:checked) { background: var(--accent-soft); }

/* module rows */
.mod-row { display: flex; align-items: center; gap: 1rem; padding: 1rem; border: 1px solid var(--border); border-radius: 13px; margin-bottom: .7rem; background: var(--panel); }
.mod-row .m-ic { width: 40px; height: 40px; border-radius: 11px; background: var(--accent-soft); display: flex; align-items: center; justify-content: center; font-size: 1.15rem; flex-shrink: 0; }
.mod-row .m-main { flex: 1; min-width: 0; }
.mod-row .m-name { font-weight: 800; font-size: .95rem; }
.mod-row .m-sub { color: var(--muted); font-size: .78rem; }

/* events checkbox grid */
.ev-group { margin-bottom: 1.6rem; }
.ev-group-head { display: flex; align-items: center; gap: .6rem; margin: 0 0 .8rem; }
.ev-group-head .e-ic { font-size: 1.1rem; }
.ev-group-head h3 { font-size: .95rem; font-weight: 800; }
.ev-group-head .bulk { margin-left: auto; display: flex; gap: .4rem; }
.ev-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .55rem; }
.ev-item { display: flex; align-items: center; gap: .65rem; padding: .7rem .85rem; border: 1px solid var(--border); border-radius: 11px; background: var(--panel); cursor: pointer; transition: all .15s; user-select: none; }
.ev-item:hover { border-color: var(--border-2); }
.ev-item.on { border-color: var(--accent-line); background: var(--accent-soft); }
.ev-item .cbx { width: 20px; height: 20px; border-radius: 6px; border: 2px solid var(--border-2); flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: .7rem; color: transparent; transition: all .15s; }
.ev-item.on .cbx { background: var(--accent-strong); border-color: var(--accent-strong); color: #fff; }
.ev-item .e-label { font-size: .84rem; font-weight: 600; flex: 1; }
.badge { font-size: .64rem; font-weight: 800; padding: .1rem .45rem; border-radius: 999px; background: var(--panel-3); color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.badge.warn { background: rgba(253, 164, 175, .18); color: var(--warn); }
.badge.on { background: rgba(116, 212, 149, .16); color: var(--good); }
.badge.off { background: rgba(251, 113, 133, .14); color: var(--bad); }

/* chips / lists */
.chip { display: inline-flex; align-items: center; gap: .4rem; background: var(--panel-2); border: 1px solid var(--border-2); border-radius: 999px; padding: .35rem .7rem; font-size: .82rem; font-weight: 600; }
.chip .x { cursor: pointer; color: var(--muted); font-weight: 800; }
.chip .x:hover { color: var(--bad); }
.role-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.list-row { display: flex; align-items: center; gap: .8rem; padding: .7rem .2rem; border-bottom: 1px solid var(--border); }
.list-row:last-child { border-bottom: none; }
.list-row .l-main { flex: 1; font-size: .9rem; font-weight: 600; }
.empty { color: var(--muted); font-size: .88rem; padding: 1rem; text-align: center; border: 1px dashed var(--border-2); border-radius: 12px; }
.inline-form { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.role-select-box { max-height: 320px; overflow-y: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .4rem; }
.role-opt { display: flex; align-items: center; gap: .55rem; padding: .55rem .7rem; border: 1px solid var(--border); border-radius: 10px; cursor: pointer; font-size: .84rem; font-weight: 600; }
.role-opt:has(input:checked) { border-color: var(--accent-line); background: var(--accent-soft); }
.role-opt input { display: none; }

@media (max-width: 960px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: fixed; z-index: 90; width: 280px; transform: translateX(-100%); transition: transform .25s; }
  .sidebar.open { transform: translateX(0); }
  .content { padding: 1.4rem 1.1rem 3rem; }
  .mobile-bar { display: flex !important; }
  .nav-links { display: none; }
  .burger { display: inline-flex !important; }
  .feature-card, .feature-card.reverse { grid-template-columns: 1fr; }
  .cmd-layout { grid-template-columns: 1fr; }
}
.mobile-bar { display: none; align-items: center; gap: .8rem; padding: .8rem 1rem; border-bottom: 1px solid var(--border); position: sticky; top: 0; background: var(--bg); z-index: 40; }
.mobile-bar button { background: var(--panel-2); border: 1px solid var(--border); color: #fff; border-radius: 10px; padding: .4rem .7rem; font-size: 1.1rem; cursor: pointer; }
.burger { display: none; background: none; border: none; color: #fff; font-size: 1.4rem; cursor: pointer; }
