[hidden] { display: none !important; }
body.admin { min-height: 100vh; font-size: 14px; --radius: 12px; }
body.admin .btn { border-radius: 9px; font-weight: 600; padding: 10px 16px; font-size: 13.5px; }
body.admin .btn.small { padding: 7px 12px; font-size: 13px; border-radius: 8px; }
body.admin .btn:hover { transform: none; }
body.admin .btn.primary:hover { box-shadow: none; filter: brightness(.92); }
body.admin .logo { font-size: 15px; font-weight: 700; }
body.admin .eyebrow { font-size: 11px; letter-spacing: .12em; }
.btn.danger { background: rgba(255, 90, 90, .14); border-color: rgba(255, 138, 138, .45); color: #ffc9c9; }
.btn.danger:hover { border-color: var(--bad); box-shadow: 0 10px 30px -10px rgba(255, 90, 90, .6); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn:hover svg.i { transform: none; }
.gate { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.gate-card { width: min(380px, 100%); text-align: center; padding: 36px 30px 26px; border-radius: 16px; background: linear-gradient(180deg, rgba(25, 27, 31, .8), rgba(19, 21, 25, .92)); border: 1px solid var(--line-2); box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .8); }
.gate-logo { display: block; width: 44px; height: 60px; margin: 0 auto 18px; background: url(../assets/logo.svg) center / contain no-repeat; filter: drop-shadow(0 0 16px rgba(0, 0, 0, .8)); }
.gate-card h1 { font-size: 24px; font-weight: 700; letter-spacing: -.02em; margin: 10px 0 8px; line-height: 1.15; }
.gate-card p { color: var(--soft); margin: 0 0 24px; }
.gate-card .btn { width: 100%; justify-content: center; padding: 12px 18px; font-size: 14.5px; }
.gate-card .btn svg.i { font-size: 19px; }
.gate-error { padding: 12px 16px; border-radius: 12px; background: rgba(255, 90, 90, .12); border: 1px solid rgba(255, 138, 138, .4); color: #ffc9c9 !important; font-weight: 600; font-size: 14px; }
.gate-back { display: inline-block; margin-top: 20px; color: var(--dim); font-size: 14px; font-weight: 600; }
.gate-back:hover { color: var(--ink); }
.shell { display: grid; grid-template-columns: 224px minmax(0, 1fr); min-height: 100vh; }
.rail { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 20px; padding: 20px 12px 14px; border-right: 1px solid var(--line); background: rgba(16, 18, 22, .6); backdrop-filter: blur(14px); }
.rail .logo { padding: 0 10px; }
.rail nav { display: grid; gap: 4px; }
.rail nav button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px 10px; border: 0; border-radius: 8px; background: none; color: var(--soft); font: 500 13.5px var(--font); cursor: pointer; text-align: left; transition: background .15s, color .15s; }
.rail nav button svg.i { font-size: 16px; }
.rail nav button em { margin-left: auto; font-style: normal; font-size: 12px; color: var(--dim); font-family: var(--mono); }
.rail nav button:hover { background: rgba(255, 138, 42, .08); color: var(--ink); }
.rail nav button.on { background: rgba(255, 138, 42, .14); color: var(--ink); }
.rail nav button.on svg.i { color: var(--blue); }
.me { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.me img { width: 30px; height: 30px; border-radius: 50%; background: #17191d; flex: none; }
.me div { min-width: 0; flex: 1; line-height: 1.25; }
.me b { display: block; font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me span { font-size: 12px; color: var(--dim); }
.me button { background: none; border: 0; color: var(--dim); font-size: 18px; cursor: pointer; padding: 6px; border-radius: 8px; display: grid; }
.me button:hover { color: var(--bad); background: rgba(255, 90, 90, .1); }
.board { padding: 26px 30px 48px; min-width: 0; max-width: 1480px; }
.view { display: none; padding: 0; }
.view.on { display: block; animation: rise .3s cubic-bezier(.2, .8, .2, 1); }
.view.on.enter { animation: view-in .28s cubic-bezier(.2, .8, .2, 1); }
.fresh > :not(.head) { animation: fresh-in .24s ease both; }
@keyframes view-in { from { opacity: 0; transform: translateY(6px); } }
@keyframes fresh-in { from { opacity: 0; } }
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.head h1 { font-size: 21px; font-weight: 700; letter-spacing: -.015em; margin: 0; line-height: 1.2; }
.head p { margin: 4px 0 0; color: var(--dim); font-size: 13px; max-width: 52em; }
.tools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.tools .search { width: 240px; padding: 8px 12px; font-size: 13px; border-radius: 8px; font-family: var(--font); }
select { padding: 8px 12px; border-radius: 8px; border: 1px solid var(--line-2); background: #14161a; color: var(--ink); font: 500 13px var(--font); cursor: pointer; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 12px; min-width: 0; }
.panel h2 { font-size: 13px; font-weight: 600; letter-spacing: 0; margin: 0 0 12px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.panel h2 span { font-size: 12px; font-weight: 600; color: var(--dim); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.none { color: var(--dim); font-size: 14px; padding: 8px 0; margin: 0; }
.tiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin-bottom: 12px; }
@media (max-width: 1280px) { .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 620px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tile { padding: 14px 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); position: relative; overflow: hidden; }
.tile svg.i { position: absolute; right: 14px; top: 14px; font-size: 15px; color: var(--dim); }
.tile span { display: block; font-size: 12px; font-weight: 500; color: var(--dim); }
.tile b { display: block; font-size: 22px; font-weight: 600; letter-spacing: -.02em; line-height: 1.25; margin-top: 4px; font-variant-numeric: tabular-nums; }
.tile small { color: var(--dim); font-size: 11.5px; }
.chart { display: flex; align-items: flex-end; gap: 3px; height: 130px; }
.chart i { flex: 1; min-height: 2px; border-radius: 2px 2px 0 0; background: var(--blue); position: relative; transition: filter .15s; }
.chart i:hover { filter: brightness(1.35); }
.chart i.zero { background: rgba(255, 255, 255, .09); }
.chart-axis { display: flex; justify-content: space-between; color: var(--dim); font-size: 11px; margin-top: 8px; font-family: var(--mono); }
.ranks { display: grid; gap: 10px; }
.rank { display: grid; grid-template-columns: 120px 1fr 40px; gap: 12px; align-items: center; font-size: 13.5px; }
.rank code { background: none; border: 0; padding: 0; color: var(--ink); overflow: hidden; text-overflow: ellipsis; }
.rank .bar { height: 6px; border-radius: 99px; background: #191b1f; overflow: hidden; }
.rank .bar i { display: block; height: 100%; border-radius: 99px; background: var(--blue); }
.rank b { text-align: right; font-family: var(--mono); font-weight: 500; color: var(--soft); }
.link { display: flex; align-items: center; gap: 10px; margin-top: auto; padding: 0 12px; font-size: 12.5px; color: var(--dim); }
.link span { width: 8px; height: 8px; border-radius: 50%; background: var(--warn); flex: none; }
.link b { font-weight: 600; }
.link.on span { background: var(--ok); animation: pulse 2.2s infinite; }
.link.on b { color: var(--soft); }
.link.off span { background: var(--bad); }
.link + .me { margin-top: 0; }
.tile b.bump { animation: bump .5s cubic-bezier(.2, .8, .2, 1); }
@keyframes bump { 30% { color: var(--blue); transform: translateY(-2px); } }
.tile b { transition: color .3s; }
.chips.small { margin-bottom: 6px; }
.chips.small button { padding: 5px 12px; font-size: 12px; }
.growth { position: relative; height: 190px; }
.growth svg { width: 100%; height: 100%; display: block; overflow: visible; }
.growth .area { fill: url(#growth-fill); }
.growth .curve { fill: none; stroke: var(--blue); stroke-width: 1.75; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.growth .gridline { stroke: rgba(255, 255, 255, .07); stroke-width: 1; vector-effect: non-scaling-stroke; }
.growth .labels { position: absolute; inset: 0; pointer-events: none; font: 11px var(--mono); color: var(--dim); }
.growth .labels span { position: absolute; }
.growth .labels .hi { top: 0; left: 0; }
.growth .labels .lo { bottom: 20px; left: 0; }
.growth .labels .from { bottom: 0; left: 0; }
.growth .labels .to { bottom: 0; right: 0; }
.growth .labels .now { top: 0; right: 0; color: var(--ink); font: 600 15px var(--font); }
.version { display: flex; align-items: center; gap: 18px; margin-bottom: 14px; color: var(--blue); font-size: 20px; }
.version div { flex: 1; padding: 10px 12px; border-radius: 8px; background: rgba(18, 20, 24, .6); border: 1px solid var(--line); min-width: 0; }
.version span { display: block; font-size: 11.5px; font-weight: 500; color: var(--dim); }
.version b { font: 500 15px var(--mono); color: var(--ink); }
.version b.new { color: var(--ok); }
.s-note { color: var(--soft); font-size: 13px; margin: 14px 0 16px; min-height: 1.6em; }
.actions-row { display: flex; gap: 10px; flex-wrap: wrap; }
.reboot { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; text-align: center; padding: 24px; background: rgba(15, 17, 21, .86); backdrop-filter: blur(10px); }
.reboot h2 { font-size: 18px; font-weight: 700; margin: 18px 0 6px; }
.reboot p { color: var(--soft); margin: 0; max-width: 30em; }
.spinner { display: inline-block; width: 34px; height: 34px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .1); border-top-color: var(--blue); animation: spin 1s linear infinite; }
.prefix-edit { display: flex; gap: 8px; align-items: center; }
.prefix-edit input { width: 90px; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line-2); background: rgba(17, 19, 23, .7); color: var(--ink); font: 500 14px var(--mono); outline: none; }
.prefix-edit input:focus { border-color: var(--blue); }
.line.fresh { animation: fresh 1.6s ease-out; }
@keyframes fresh { from { background: rgba(255, 138, 42, .22); } }
.tiles.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .tiles.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tile b.alert { color: var(--bad); }
.ip { font-family: var(--mono); font-size: 12.5px; color: var(--ink); overflow-wrap: anywhere; }
.ip { filter: blur(5px); cursor: pointer; user-select: none; transition: filter .15s; }
.ip.shown { filter: none; user-select: text; }
.attempts { display: grid; gap: 2px; max-height: 520px; overflow: auto; scrollbar-width: thin; scrollbar-color: #1d1f23 transparent; }
.attempt { display: grid; grid-template-columns: 118px 190px 150px 24px minmax(0, 1fr); gap: 10px; align-items: center; padding: 6px 8px; border-radius: 6px; font-size: 12.5px; }
.attempt:hover { background: rgba(255, 138, 42, .07); }
.attempt time { color: var(--dim); font-family: var(--mono); }
.attempt .kind { font-weight: 600; color: var(--soft); }
.attempt.hostile .kind { color: var(--bad); }
.attempt.ok .kind { color: var(--ok); }
.attempt img, .attempt .noface { width: 22px; height: 22px; border-radius: 50%; background: #17191d; }
.attempt .what { color: var(--soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.attempt .what b { color: var(--ink); font-weight: 600; }
.d-add select { padding: 7px 10px; }
.line.security .ty { color: var(--bad); }
.line.config .ty { color: var(--warn); }
@media (max-width: 900px) { .attempt { grid-template-columns: minmax(0, 1fr); gap: 2px; } .attempt img, .attempt .noface { display: none; } }
.rows { display: grid; gap: 4px; }
.row { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 8px; min-width: 0; }
button.row { width: 100%; background: none; border: 0; color: inherit; font: inherit; text-align: left; cursor: pointer; }
button.row:hover { background: rgba(255, 138, 42, .1); }
.row .av { width: 32px; height: 32px; border-radius: 8px; flex: none; background: #17191d; display: grid; place-items: center; font-weight: 800; font-size: 13px; color: var(--soft); object-fit: cover; }
.row .av.round { border-radius: 50%; }
.row .txt { min-width: 0; flex: 1; line-height: 1.3; }
.row .txt b { display: block; font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .txt span { font-size: 12px; color: var(--dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.row .end { color: var(--soft); font-size: 13px; font-family: var(--mono); white-space: nowrap; }
.row .btn { padding: 7px 12px; font-size: 13px; border-radius: 10px; }
.guilds { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.guild { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); cursor: pointer; text-align: left; color: inherit; font: inherit; transition: border-color .15s, background .15s; min-width: 0; }
.guild:hover { border-color: var(--line-2); background: var(--surface-2); }
.guild .top { display: flex; align-items: center; gap: 12px; min-width: 0; }
.guild .av { width: 40px; height: 40px; border-radius: 10px; flex: none; background: #17191d; display: grid; place-items: center; font-weight: 800; color: var(--soft); object-fit: cover; }
.guild { width: 100%; overflow: hidden; }
.guild .top > span:last-child { min-width: 0; flex: 1; }
.guild .id { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.guild b { display: block; font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.guild .id { font-family: var(--mono); font-size: 11.5px; color: var(--dim); }
.guild .meta { display: flex; gap: 8px; flex-wrap: wrap; }
.meta span, .kv span { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 500; padding: 3px 8px; border-radius: 6px; background: rgba(255, 138, 42, .08); color: var(--soft); border: 1px solid var(--line); }
.meta span svg.i { font-size: 13px; color: var(--blue); }
.btn.more { margin: 22px auto 0; display: flex; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.chips button { padding: 5px 12px; border-radius: 7px; border: 1px solid var(--line); background: none; color: var(--soft); font: 500 12.5px var(--font); cursor: pointer; transition: border-color .15s, color .15s, background .15s; }
.chips button:hover { border-color: var(--line-2); color: var(--ink); }
.chips button.on { background: var(--ink); color: #0f1115; border-color: var(--ink); }
.live { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--soft); cursor: pointer; }
.live input { position: absolute; opacity: 0; }
.live span { width: 9px; height: 9px; border-radius: 50%; background: var(--dim); }
.live input:checked + span { background: var(--ok); animation: pulse 2.2s infinite; }
.log { padding: 8px; font-family: var(--mono); font-size: 12.5px; max-height: calc(100vh - 270px); min-height: 300px; overflow: auto; scrollbar-width: thin; scrollbar-color: #1d1f23 transparent; }
.line { display: grid; grid-template-columns: 118px 82px 20px minmax(0, 1fr); gap: 10px; padding: 5px 8px; border-radius: 6px; align-items: center; }
.line .who { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; background: #17191d; }
.line .who.sq { border-radius: 5px; }
.line:hover { background: rgba(255, 138, 42, .07); }
.line time { color: var(--dim); }
.line .ty { font-weight: 500; color: var(--blue); }
.line .ms { white-space: pre-wrap; word-break: break-word; color: #dee1e8; }
.line.error .ty, .line.error .ms { color: var(--bad); }
.line.warning .ty { color: var(--warn); }
.line.guild .ty, .line.auth .ty { color: var(--ok); }
.line.admin .ty { color: #dee1e8; }
.line.console .ms { color: var(--soft); }
.form { display: flex; gap: 14px; align-items: flex-end; flex-wrap: wrap; }
.form label, dialog label { display: grid; gap: 6px; font-size: 12px; font-weight: 500; color: var(--dim); }
.form label.grow { flex: 1; min-width: 220px; }
.form input, dialog input { padding: 9px 12px; border-radius: 8px; border: 1px solid var(--line-2); background: rgba(17, 19, 23, .7); color: var(--ink); font: 500 14px var(--mono); outline: none; min-width: 230px; text-transform: none; letter-spacing: 0; }
.form input:focus, dialog input:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(0, 0, 0, .15); }
.form .btn { padding: 9px 14px; }
.veil { position: fixed; inset: 0; z-index: 60; background: rgba(1, 2, 14, .6); backdrop-filter: blur(3px); }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 61; width: min(480px, 100vw); overflow: auto; background: var(--surface); border-left: 1px solid var(--line-2); box-shadow: -40px 0 100px rgba(0, 0, 0, .6); animation: slidein .3s cubic-bezier(.2, .8, .2, 1); scrollbar-width: thin; scrollbar-color: #1d1f23 transparent; }
@keyframes slidein { from { transform: translateX(40px); opacity: 0; } }
.drawer .close { position: absolute; top: 16px; right: 16px; z-index: 2; width: 38px; height: 38px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(17, 19, 23, .7); color: var(--ink); font-size: 18px; cursor: pointer; display: grid; place-items: center; }
.d-banner { height: 96px; background: var(--surface-2) center / cover no-repeat; }
.d-body { padding: 0 26px 30px; }
.d-icon { width: 64px; height: 64px; border-radius: 16px; margin-top: -32px; border: 4px solid #15171b; background: #17191d; display: grid; place-items: center; font-weight: 900; font-size: 22px; color: var(--soft); object-fit: cover; position: relative; }
.d-body h2 { font-size: 19px; font-weight: 700; letter-spacing: -.015em; margin: 12px 0 2px; line-height: 1.15; overflow-wrap: anywhere; }
.d-body .id { font-family: var(--mono); font-size: 12px; color: var(--dim); }
.d-body .desc { color: var(--soft); margin: 12px 0 0; font-size: 14.5px; }
.d-body h3 { font-size: 12px; font-weight: 600; color: var(--dim); margin: 22px 0 8px; }
.d-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.d-grid div { padding: 10px 12px; border-radius: 8px; background: rgba(18, 20, 24, .6); border: 1px solid var(--line); }
.d-grid span { display: block; font-size: 11.5px; font-weight: 500; color: var(--dim); }
.d-grid b { font-size: 14.5px; font-weight: 600; overflow-wrap: anywhere; }
.kv { display: flex; flex-wrap: wrap; gap: 6px; }
.kv span { font-family: var(--mono); font-weight: 500; }
.d-danger { margin-top: 24px; padding: 14px; border-radius: 10px; border: 1px solid rgba(255, 138, 138, .35); background: rgba(255, 90, 90, .07); }
.d-danger p { margin: 0 0 14px; color: #ffc9c9; font-size: 13.5px; }
.kv button { font: 500 11.5px var(--mono); padding: 3px 8px; border-radius: 6px; background: rgba(255, 138, 42, .08); color: var(--soft); border: 1px solid var(--line); cursor: pointer; transition: border-color .15s, color .15s; }
.kv button:hover { border-color: var(--blue); color: var(--ink); }
.d-filter { width: 100%; margin-bottom: 8px; padding: 7px 10px; border-radius: 8px; border: 1px solid var(--line-2); background: rgba(17, 19, 23, .7); color: var(--ink); font: 400 12.5px var(--font); outline: none; }
.d-filter:focus { border-color: var(--blue); }
.d-add { display: flex; gap: 8px; margin-top: 8px; }
.d-add input { flex: 1; min-width: 0; padding: 7px 10px; border-radius: 8px; border: 1px solid var(--line-2); background: rgba(17, 19, 23, .7); color: var(--ink); font: 500 12.5px var(--mono); outline: none; }
.d-add input:focus { border-color: var(--blue); }
.d-hint { color: var(--dim); font-size: 12px; margin: 0 0 8px; }
.row .tagline { font-size: 11px; font-weight: 500; padding: 2px 7px; border-radius: 6px; border: 1px solid var(--line-2); color: var(--soft); white-space: nowrap; }
.row .tagline.bad { color: var(--bad); border-color: rgba(255, 138, 138, .4); }
dialog.wide { width: min(760px, calc(100vw - 32px)); }
dialog pre { margin: 0 0 16px; padding: 14px; max-height: 56vh; overflow: auto; border-radius: 8px; background: rgba(15, 17, 21, .8); border: 1px solid var(--line); font: 400 12px/1.55 var(--mono); color: #dee1e8; white-space: pre-wrap; word-break: break-word; scrollbar-width: thin; scrollbar-color: #1d1f23 transparent; }
dialog { width: min(420px, calc(100vw - 32px)); padding: 22px; border-radius: 14px; border: 1px solid var(--line-2); background: #14161a; color: var(--ink); box-shadow: 0 50px 120px rgba(0, 0, 0, .8); }
dialog::backdrop { background: rgba(1, 2, 14, .7); backdrop-filter: blur(4px); }
dialog h2 { margin: 0 0 8px; font-size: 16px; font-weight: 700; }
dialog p { margin: 0 0 18px; color: var(--soft); font-size: 14.5px; }
dialog label { margin-bottom: 18px; }
dialog label span { text-transform: none; letter-spacing: 0; font-weight: 600; font-size: 13px; color: var(--soft); }
dialog input { min-width: 0; width: 100%; }
dialog .actions { display: flex; justify-content: flex-end; gap: 10px; }
.toasts { position: fixed; right: 22px; bottom: 22px; z-index: 90; display: grid; gap: 10px; }
.toast { padding: 10px 14px; border-radius: 9px; background: #17191d; border: 1px solid var(--line-2); font-size: 13px; font-weight: 500; box-shadow: 0 20px 50px rgba(0, 0, 0, .5); animation: rise .3s; max-width: 360px; }
.toast.bad { border-color: rgba(255, 138, 138, .5); color: #ffc9c9; }
.toast.good { border-color: rgba(74, 222, 154, .45); color: #b8f5d6; }
@media (max-width: 900px) {
.shell { grid-template-columns: minmax(0, 1fr); }
.rail { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 12px; padding: 14px; border-right: 0; border-bottom: 1px solid var(--line); }
.rail nav { display: flex; flex-wrap: wrap; order: 3; width: 100%; }
.rail nav button { width: auto; padding: 9px 12px; }
.rail nav button.on { box-shadow: none; }
.rail nav button em { display: none; }
.me { margin: 0 0 0 auto; }
.board { padding: 24px 16px 50px; }
.split { grid-template-columns: minmax(0, 1fr); }
.tools .search { width: 100%; }
.line { grid-template-columns: minmax(0, 1fr); gap: 2px; }
.line .who { display: none; }
.d-grid { grid-template-columns: 1fr 1fr; }
}
body.admin { background: var(--bg); }
body.admin .rail { background: #111317; backdrop-filter: none; border-right-color: var(--line); }
body.admin .rail nav button { color: var(--soft); }
body.admin .rail nav button:hover { background: var(--surface); color: var(--ink); }
body.admin .rail nav button.on { background: var(--surface-2); color: var(--ink); }
body.admin .rail nav button.on svg.i { color: var(--blue); }
body.admin .logo .mark { filter: none; }
body.admin .me { background: var(--surface); }
body.admin .me img, body.admin .guild .av, body.admin .server-head .av { background: var(--surface-2); }
body.admin .btn { background: var(--surface-2); border-color: var(--line-2); color: var(--ink); }
body.admin .btn:hover { border-color: #454a55; }
body.admin .btn.primary { background: var(--blue-2); border-color: var(--blue-2); color: #fff; }
body.admin .btn.primary:hover { filter: brightness(1.08); }
body.admin .btn:disabled { opacity: .4; }
body.admin .guild:hover { background: var(--surface-2); }
body.admin .gate-card { background: var(--surface); border-color: var(--line); box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
body.admin .gate-logo { filter: none; }
body.admin .eyebrow { color: var(--dim); }
body.admin .eyebrow::before { background: var(--line-2); }
body.admin .toast { background: var(--surface-2); border-color: var(--line-2); }
.access-form { display: grid; grid-template-columns: minmax(260px, 340px) minmax(0, 1fr); gap: 0; padding: 0; overflow: hidden; }
.access-form h2 { margin: 0; }
.access-who { display: grid; gap: 12px; align-content: start; padding: 20px; border-right: 1px solid var(--line); background: var(--surface-2); }
.access-who p { margin: -6px 0 2px; color: var(--dim); font-size: 12.5px; line-height: 1.5; }
.access-who > .btn { justify-content: center; }
.idfield { display: flex; align-items: center; gap: 9px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--field); transition: border-color .15s, box-shadow .15s; cursor: text; }
.idfield svg.i { color: var(--dim); font-size: 15px; flex: none; }
.idfield input { flex: 1; min-width: 0; padding: 10px 0; border: 0; background: none; color: var(--ink); font: 500 13.5px var(--mono); outline: none; }
.idfield input::placeholder { color: var(--dim); font-family: var(--font); font-weight: 400; }
.idfield:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(255, 138, 42, .18); }
.form label.idfield { display: flex; align-items: center; gap: 9px; font-size: inherit; }
.form label.idfield input, .form label.idfield input:focus { padding: 10px 0; border: 0; border-radius: 0; background: none; box-shadow: none; min-width: 0; font: 500 13.5px var(--mono); }
.form:has(label.idfield) { align-items: center; }
.who { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 8px; border: 1px dashed var(--line-2); min-width: 0; transition: border-color .2s, background .2s; }
.who.ok { border-style: solid; border-color: rgba(74, 222, 154, .4); background: rgba(74, 222, 154, .05); }
.who.bad { border-style: solid; border-color: rgba(255, 138, 138, .4); background: rgba(255, 138, 138, .05); }
.who-av { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--surface); color: var(--dim); flex: none; overflow: hidden; }
.who-av img { width: 100%; height: 100%; object-fit: cover; animation: pop .25s cubic-bezier(.2, .8, .2, 1); }
.who.wait .who-av { animation: breathe 1s ease-in-out infinite; }
.who-txt { display: grid; min-width: 0; line-height: 1.3; }
.who-txt b { font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who-txt span { font-size: 12px; color: var(--dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.access-perms { padding: 20px; min-width: 0; }
.perm-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.linkbtn { border: 0; background: none; color: var(--soft); font: 500 12.5px var(--font); cursor: pointer; padding: 3px 7px; border-radius: 6px; }
.linkbtn:hover { color: var(--ink); background: var(--surface-2); }
.perms { display: grid; }
.perm-group { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 14px; padding: 10px 0; border-top: 1px solid var(--line); }
.perm-group:first-child { border-top: 0; }
.perm-name { padding-top: 7px; font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--dim); }
.perm-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 2px 10px; }
.perm { display: flex; align-items: flex-start; gap: 10px; padding: 7px 9px; border-radius: 8px; cursor: pointer; transition: background .12s; }
.perm:hover { background: var(--surface-2); }
.perm b { display: block; font-size: 13px; font-weight: 600; color: var(--ink); }
.perm small { display: block; font-size: 12px; color: var(--dim); line-height: 1.4; }
.tick { appearance: none; -webkit-appearance: none; flex: none; width: 16px; height: 16px; margin: 2px 0 0; border-radius: 5px; border: 1px solid #454a55; background: var(--field); cursor: pointer; transition: background .12s, border-color .12s; }
.tick:checked { border-color: var(--blue-2); background: var(--blue-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.6 8.4l2.8 2.8 6-6.4'/%3E%3C/svg%3E") center / 14px no-repeat; }
.tick:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.perm-edit { display: grid; gap: 10px; padding: 4px 0 14px 52px; border-bottom: 1px solid var(--line); animation: rise .2s cubic-bezier(.2, .8, .2, 1); }
.perm-edit .btn { justify-self: start; }
@keyframes pop { from { opacity: 0; transform: scale(.85); } }
@keyframes breathe { 50% { opacity: .45; } }
@media (max-width: 900px) {
.access-form { grid-template-columns: minmax(0, 1fr); }
.access-who { border-right: 0; border-bottom: 1px solid var(--line); }
.perm-group { grid-template-columns: minmax(0, 1fr); gap: 2px; }
.perm-edit { padding-left: 0; }
}
.rows > .row, .guilds > .guild, .tiles > * { animation: rise .28s cubic-bezier(.2, .8, .2, 1) backwards; }
.rows > .row:nth-child(2), .guilds > .guild:nth-child(2), .tiles > :nth-child(2) { animation-delay: .03s; }
.rows > .row:nth-child(3), .guilds > .guild:nth-child(3), .tiles > :nth-child(3) { animation-delay: .06s; }
.rows > .row:nth-child(4), .guilds > .guild:nth-child(4), .tiles > :nth-child(4) { animation-delay: .09s; }
.rows > .row:nth-child(5), .guilds > .guild:nth-child(5), .tiles > :nth-child(5) { animation-delay: .12s; }
.rows > .row:nth-child(n+6), .guilds > .guild:nth-child(n+6), .tiles > :nth-child(n+6) { animation-delay: .15s; }
body.admin .btn { transition: background .15s, border-color .15s, color .15s, filter .15s, transform .08s; }
body.admin .btn:active:not(:disabled) { transform: scale(.97); }
.rail nav button { position: relative; }
.rail nav button.on::before { content: ""; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--blue); animation: grow .2s cubic-bezier(.2, .8, .2, 1); }
@keyframes grow { from { transform: scaleY(0); } }
.toast { animation: toast-in .25s cubic-bezier(.2, .8, .2, 1); }
@keyframes toast-in { from { opacity: 0; transform: translateX(16px); } }
.split.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.user-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.user-head .av.big { width: 64px; height: 64px; flex: none; }
.user-head .txt { display: grid; gap: 2px; min-width: 0; flex: 1; }
.user-head .txt b { font-size: 17px; font-weight: 600; }
.user-head .txt span { font-size: 12.5px; color: var(--dim); }
.user-note { font-size: 13px; color: var(--bad); max-width: 320px; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.tags .tag { padding: 1px 8px; border-radius: 6px; border: 1px solid var(--line-2); font-size: 11.5px; font-weight: 500; color: var(--soft); background: none; }
.tags .tag.good { color: var(--ok); border-color: rgba(74, 222, 154, .3); }
.tags .tag.bad { color: var(--bad); border-color: rgba(255, 138, 138, .3); }
.seg { display: inline-flex; padding: 3px; border-radius: 9px; border: 1px solid var(--line); background: var(--surface); }
.seg button { padding: 6px 12px; border: 0; border-radius: 6px; background: none; color: var(--soft); font: 500 12.5px var(--font); cursor: pointer; }
.seg button.on { background: var(--surface-2); color: var(--ink); }
.daybars { display: flex; align-items: flex-end; gap: 4px; height: 150px; padding-top: 8px; }
.daybar { flex: 1; min-width: 0; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 5px; }
.daybar i { display: block; width: 100%; max-width: 34px; border-radius: 4px 4px 1px 1px; background: var(--blue-2); transition: height .35s cubic-bezier(.2, .8, .2, 1); }
.daybar:hover i { background: var(--blue); }
.daybar span { font-size: 10px; color: var(--dim); font-family: var(--mono); white-space: nowrap; }
.ranks { display: grid; gap: 2px; }
.rank { position: relative; display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 7px 4px 9px; font-size: 13px; }
.rank .pos { color: var(--dim); font-family: var(--mono); font-size: 11.5px; }
.rank .name { display: flex; align-items: center; gap: 8px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank .name.link { cursor: pointer; }
.rank .name.link:hover { color: var(--blue); }
.rank .name.err { color: var(--soft); font-size: 12.5px; display: block; }
.rank b { font-weight: 600; font-variant-numeric: tabular-nums; }
.rank .bar { position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; border-radius: 2px; background: var(--line); overflow: hidden; }
.rank .bar i { display: block; height: 100%; background: var(--blue-2); }
.av.tiny { width: 20px; height: 20px; border-radius: 6px; flex: none; object-fit: cover; display: grid; place-items: center; font-size: 9px; font-weight: 700; background: var(--surface-2); }
.stack { display: grid; gap: 10px; }
.stack textarea, #s-owner select, label.inline input { padding: 8px 11px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--field); color: var(--ink); font: 400 13px var(--font); outline: none; }
.stack textarea { width: 100%; resize: vertical; line-height: 1.5; }
.stack textarea:focus, #s-owner select:focus, label.inline input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(255, 138, 42, .18); }
#s-owner .actions-row { align-items: center; flex-wrap: wrap; }
#s-owner .idfield { min-width: 240px; }
#s-owner .perm-list { margin: 12px 0 8px; }
label.inline { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--soft); }
label.inline input { width: 110px; }
.rows.compact .row { padding-top: 7px; padding-bottom: 7px; }
.rows.compact { margin-top: 12px; }
@media (max-width: 1100px) { .split.three { grid-template-columns: minmax(0, 1fr); } }
.desk { display: grid; grid-template-columns: minmax(240px, 340px) minmax(0, 1fr); gap: 12px; align-items: start; }
.desk-list { padding: 8px; max-height: calc(100vh - 170px); overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; margin: 0; }
.row.thread { width: 100%; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.row.thread:hover { background: var(--surface-2); }
.row.thread.on { background: var(--surface-2); }
.row.thread.unread .txt b::after { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); margin-left: 7px; vertical-align: middle; }
.desk-chat { padding: 0; margin: 0; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; height: calc(100vh - 170px); min-height: 380px; overflow: hidden; }
.desk-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); min-width: 0; flex-wrap: wrap; }
.desk-head .av { width: 34px; height: 34px; flex: none; border-radius: 50%; object-fit: cover; display: grid; place-items: center; background: var(--surface-2); font-size: 12px; font-weight: 700; }
.desk-head .txt { flex: 1; min-width: 0; display: grid; line-height: 1.3; }
.desk-head .txt b { font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.desk-head .txt span { font-size: 12px; color: var(--dim); }
.desk-head .btn { padding: 6px 11px; font-size: 12.5px; }
.chat-list { overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 14px; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.chat-msg { display: flex; gap: 10px; align-items: flex-end; max-width: 78%; animation: rise .2s cubic-bezier(.2, .8, .2, 1); }
.chat-msg.mine { align-self: flex-end; flex-direction: row-reverse; }
.chat-msg > div { display: grid; gap: 4px; min-width: 0; }
.chat-msg.mine > div { justify-items: end; }
.chat-av { width: 30px; height: 30px; border-radius: 50%; flex: none; object-fit: cover; display: grid; place-items: center; background: var(--surface-2); font-size: 11px; font-weight: 700; }
.chat-meta { font-size: 11.5px; color: var(--dim); }
.bubble { padding: 9px 12px; border-radius: 12px 12px 12px 4px; background: var(--surface-2); border: 1px solid var(--line-2); font-size: 13.5px; line-height: 1.5; min-width: 0; }
.chat-msg.mine .bubble { border-radius: 12px 12px 4px 12px; background: var(--blue-2); border-color: var(--blue-2); color: #fff; }
.bubble p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.bubble a { display: block; }
.bubble img { display: block; max-width: min(320px, 100%); max-height: 260px; border-radius: 8px; object-fit: contain; }
.bubble a + p { margin-top: 8px; }
.chat-form { display: flex; align-items: flex-end; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.chat-form textarea { flex: 1; min-width: 0; min-height: 38px; max-height: 140px; padding: 9px 12px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--field); color: var(--ink); font: 400 13.5px/1.45 var(--font); outline: none; resize: vertical; }
.chat-form textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(255, 138, 42, .18); }
#s-owner .stack input { flex: 1; min-width: 220px; padding: 8px 11px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--field); color: var(--ink); font: 400 13px var(--font); outline: none; }
#s-owner .stack input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(255, 138, 42, .18); }
@media (max-width: 900px) { .desk { grid-template-columns: minmax(0, 1fr); } .desk-list { max-height: 260px; } .chat-msg { max-width: 92%; } }
.pick { position: relative; width: 100%; }
.actions-row .pick, .tools .pick, label .pick { width: auto; min-width: 230px; flex: none; }
.pick-btn { display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px 10px 8px 11px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--field); color: var(--ink); font: 400 13px var(--font); cursor: pointer; text-align: left; min-width: 0; transition: border-color .14s, background .14s; }
.pick-btn:hover { border-color: #454a55; }
.pick-btn:focus-visible, .pick-btn[aria-expanded="true"] { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(255, 138, 42, .18); }
.pick-btn svg.i { margin-left: auto; font-size: 15px; color: var(--dim); transition: transform .15s; }
.pick-btn[aria-expanded="true"] svg.i { transform: rotate(180deg); }
.pick-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.pick-label.muted { color: var(--dim); }
.pick-hint { color: var(--dim); font-size: 12px; white-space: nowrap; flex: none; }
.pick-btn .pick-hint { display: none; }
.pick-pop { position: absolute; z-index: 40; left: 0; right: 0; top: calc(100% + 6px); min-width: 230px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface-2); box-shadow: 0 18px 50px rgba(0, 0, 0, .55); overflow: hidden; transform-origin: top center; animation: pick-drop .13s cubic-bezier(.2, .8, .2, 1); }
.pick-pop[hidden] { display: none; }
.pick-pop.up { top: auto; bottom: calc(100% + 6px); transform-origin: bottom center; }
@keyframes pick-drop { from { opacity: 0; transform: scale(.97); } }
.pick-search { display: block; width: 100%; padding: 9px 12px; border: 0; border-bottom: 1px solid var(--line); background: none; color: var(--ink); font: 400 13px var(--font); outline: none; border-radius: 0; }
.pick-search[hidden] { display: none; }
.pick-search::placeholder { color: var(--dim); }
.pick-list { max-height: 260px; overflow: auto; padding: 4px; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.pick-row { display: flex; align-items: center; gap: 8px; padding: 7px 9px; border-radius: 6px; font-size: 13px; cursor: pointer; min-width: 0; transition: background .1s, color .1s; }
.pick-row .pick-hint { margin-left: auto; }
.pick-row:hover, .pick-row.active { background: rgba(255, 255, 255, .06); }
.pick-row.on { color: var(--blue); }
.pick-row.off { opacity: .45; cursor: not-allowed; }
.pick-empty { padding: 12px; color: var(--dim); font-size: 13px; text-align: center; }
.chips-list { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.chips-list:empty { display: none; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 4px 3px 9px; border-radius: 7px; border: 1px solid var(--line-2); background: var(--surface-2); font-size: 12.5px; }
.chip button { border: 0; background: none; color: var(--dim); cursor: pointer; font-size: 12px; padding: 3px; display: grid; border-radius: 4px; }
.chip button:hover { color: var(--bad); }
.actions-row > input:not(.search):not([type="checkbox"]):not([type="file"]) { flex: 1; min-width: 200px; max-width: 420px; padding: 8px 11px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--field); color: var(--ink); font: 400 13px var(--font); outline: none; transition: border-color .14s, box-shadow .14s; }
.actions-row > input:not(.search):focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(255, 138, 42, .18); }
.actions-row > input::placeholder { color: var(--dim); }
.actions-row { align-items: center; }
.d-add .pick, .tools .pick { min-width: 150px; flex: none; width: auto; }
.chat-state { display: inline-flex; align-items: center; gap: 7px; padding: 4px 10px; border-radius: 7px; border: 1px solid var(--line-2); font-size: 12px; font-weight: 600; color: var(--soft); white-space: nowrap; }
.chat-state[hidden] { display: none; }
.chat-state::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.chat-state.open { color: var(--blue); border-color: rgba(255, 138, 42, .4); }
.chat-state.pending { color: #e0a53c; border-color: rgba(224, 165, 60, .4); }
.chat-state.closed { color: #3ecf8e; border-color: rgba(62, 207, 142, .4); }
#chat-state { margin: 0 0 10px; }
.chat-event { align-self: center; display: flex; align-items: center; gap: 10px; padding: 6px 12px; border-radius: 8px; border: 1px solid var(--line-2); font-size: 12.5px; font-weight: 600; color: var(--soft); animation: rise .25s cubic-bezier(.2, .8, .2, 1); }
.chat-event small { font-weight: 400; color: var(--dim); font-size: 11.5px; }
.chat-event.closed { color: #3ecf8e; border-color: rgba(62, 207, 142, .45); background: rgba(62, 207, 142, .08); }
.chat-event.pending { color: #e0a53c; border-color: rgba(224, 165, 60, .4); background: rgba(224, 165, 60, .07); }
.chat-event.open { color: var(--blue); border-color: rgba(255, 138, 42, .4); background: rgba(255, 138, 42, .07); }
#sp-head .pick { width: 170px; flex: none; }
.tagline.good { color: #3ecf8e; }
.site-form { display: grid; gap: 12px; }
.site-form h2, .site-form .s-note { margin-bottom: 0; }
.site-form label { display: grid; gap: 6px; color: var(--soft); font-size: 12.5px; font-weight: 500; }
.site-form label.inline { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--ink); }
.site-form input:not([type="checkbox"]), .site-form textarea { width: 100%; padding: 9px 11px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--field); color: var(--ink); font: 400 13.5px var(--font); outline: none; transition: border-color .14s, box-shadow .14s; }
.site-form textarea { resize: vertical; line-height: 1.5; }
.site-form input:not([type="checkbox"]):focus, .site-form textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(255, 138, 42, .18); }
.reports { margin: 12px 0 4px; padding: 12px 14px; border-radius: 10px; border: 1px solid rgba(239, 95, 95, .4); background: rgba(239, 95, 95, .06); }
.reports b { color: #ef5f5f; font-size: 13px; }
.reports ul { margin: 8px 0 10px; padding-left: 18px; color: var(--soft); font-size: 12.5px; line-height: 1.6; }
.tagline.vip { color: var(--blue); border-color: rgba(255, 138, 42, .45); }
.q-search { position: relative; margin: 2px 0 10px; }
.q-search .idfield { width: 100%; }
.q-search input { width: 100%; min-width: 0; font-size: 13px; }
.q-results { position: absolute; left: 0; top: calc(100% + 6px); z-index: 60; width: min(380px, calc(100vw - 32px)); max-height: 420px; overflow: auto; padding: 6px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); box-shadow: 0 18px 50px rgba(0, 0, 0, .5); }
.q-result { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px; border: 0; border-radius: 8px; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.q-result:hover, .q-result:focus-visible { background: var(--surface-2); outline: none; }
.q-result .txt { min-width: 0; flex: 1; display: grid; }
.q-result .txt b { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.q-result .txt span { font-size: 12px; color: var(--dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.q-result em { flex: none; font-style: normal; font-size: 11px; font-weight: 700; color: var(--blue); }
.q-result .av.tiny { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 6px; background: var(--surface-2); color: var(--soft); font-size: 13px; }
.todo { margin-bottom: 12px; }
.todo-n { flex: none; min-width: 34px; padding: 2px 8px; border-radius: 8px; background: rgba(255, 138, 42, .14); color: var(--blue); font-weight: 700; font-size: 13px; text-align: center; font-variant-numeric: tabular-nums; }
#l-list.compact .line { padding-top: 2px; padding-bottom: 2px; font-size: 12px; }
.codes-new { margin: 10px 0 12px; padding: 12px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--field); }
.codes-new textarea { width: 100%; margin: 6px 0 8px; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: 13px var(--mono); resize: vertical; }
.growbars { display: flex; align-items: stretch; gap: 2px; height: 130px; }
.growbar { flex: 1; min-width: 2px; display: grid; grid-template-rows: 1fr 1fr; }
.growbar .half { display: flex; }
.growbar .half.top { align-items: flex-end; border-bottom: 1px solid var(--line-2); }
.growbar .half.bottom { align-items: flex-start; }
.growbar i { display: block; width: 100%; min-height: 0; border-radius: 2px; }
.growbar i.up { background: var(--ok); }
.growbar i.down { background: var(--bad); }
.growbar:hover i { filter: brightness(1.25); }
#st-unused { display: flex; flex-wrap: wrap; gap: 6px; }
.g-search { position: relative; margin: 2px 0 10px; }
.g-search .idfield { width: 100%; }
.g-search input { width: 100%; min-width: 0; font-size: 13px; }
.g-results { position: absolute; left: 0; top: calc(100% + 6px); z-index: 60; width: min(380px, calc(100vw - 32px)); max-height: 420px; overflow: auto; padding: 6px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); box-shadow: 0 18px 50px rgba(0, 0, 0, .5); }
.g-result { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px; border: 0; border-radius: 8px; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.g-result:hover, .g-result:focus-visible { background: var(--surface-2); outline: none; }
.g-result .txt { min-width: 0; flex: 1; display: grid; }
.g-result .txt b { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.g-result .txt span { font-size: 12px; color: var(--dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.g-result em { flex: none; font-style: normal; font-size: 11px; font-weight: 700; color: var(--blue); }
.g-result .av.tiny { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 6px; background: var(--surface-2); color: var(--soft); font-size: 13px; }
.todo { margin-bottom: 12px; }
.todo-n { flex: none; min-width: 34px; padding: 2px 8px; border-radius: 8px; background: rgba(255, 138, 42, .14); color: var(--blue); font-weight: 700; font-size: 13px; text-align: center; font-variant-numeric: tabular-nums; }
#l-list.compact .line { padding-top: 2px; padding-bottom: 2px; font-size: 12px; }
.codes-new { margin: 10px 0 12px; padding: 12px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--field); }
.codes-new textarea { width: 100%; margin: 6px 0 8px; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: 13px var(--mono); resize: vertical; }
.growbars { display: flex; align-items: stretch; gap: 2px; height: 130px; }
.growbar { flex: 1; min-width: 2px; display: grid; grid-template-rows: 1fr 1fr; }
.growbar .half { display: flex; }
.growbar .half.top { align-items: flex-end; border-bottom: 1px solid var(--line-2); }
.growbar .half.bottom { align-items: flex-start; }
.growbar i { display: block; width: 100%; min-height: 0; border-radius: 2px; }
.growbar i.up { background: var(--ok); }
.growbar i.down { background: var(--bad); }
.growbar:hover i { filter: brightness(1.25); }
#st-unused { display: flex; flex-wrap: wrap; gap: 6px; }
#mfa-form { display: grid; gap: 10px; margin: 14px 0 6px; }
#mfa-code, .mfa-input { width: 100%; padding: 11px 14px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--field); color: var(--ink); font: 600 20px var(--mono); letter-spacing: .25em; text-align: center; }
#mfa-code:focus, .mfa-input:focus { outline: none; border-color: var(--blue); }
#mfa-dialog { max-width: 520px; width: calc(100vw - 32px); overflow-x: hidden; }
#mfa-dialog form, #mfa-body { min-width: 0; overflow-x: hidden; }
#mfa-body p { margin: 0 0 10px; color: var(--soft); }
#mfa-body .mfa-input { margin: 4px 0 12px; }
.mfa-secret { display: block; max-width: 100%; white-space: normal; overflow-wrap: anywhere; word-break: break-all; font-size: 15px; line-height: 1.7; letter-spacing: .08em; padding: 8px 10px; margin-bottom: 8px; }
.mfa-recovery { background: var(--field); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; font: 600 15px/1.8 var(--mono); letter-spacing: .06em; margin: 0 0 12px; }
#mfa-open { margin-left: auto; }
.review-text { margin: 12px 0 14px; white-space: pre-wrap; color: var(--ink); line-height: 1.55; font-size: 14px; }