@import url('https://fonts.googleapis.com/css2?family=Sora:wght@500;600;700&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --accent: #2563eb;
  --accent-2: #0ea5e9;
  --accent-ink: #0b1b3a;
  --canvas: #f4f5f8;
  --surface: #ffffff;
  --surface-2: #fbfbfd;
  --line: #e6e8ee;
  --line-soft: #f0f1f5;
  --ink: #0f1420;
  --ink-2: #4c5567;
  --ink-3: #8b93a5;
  --shell: #0f1420;
  --shell-2: #171d2b;
  --shell-ink: #aeb7c9;
  --ok: #15803d;
  --ok-bg: #e9f7ee;
  --warn: #b45309;
  --warn-bg: #fdf4e3;
  --bad: #be123c;
  --bad-bg: #fdecef;
  --r-s: 8px;
  --r: 14px;
  --r-l: 20px;
  --shadow-s: 0 1px 2px rgba(15, 20, 32, .06);
  --shadow: 0 2px 4px rgba(15, 20, 32, .04), 0 12px 32px -20px rgba(15, 20, 32, .35);
  --shadow-l: 0 30px 60px -35px rgba(15, 20, 32, .45);
  --grad: linear-gradient(135deg, var(--accent), var(--accent-2));
}

[data-theme="dark"] {
  --canvas: #0b0e15;
  --surface: #141926;
  --surface-2: #10151f;
  --line: #232a3a;
  --line-soft: #1b2130;
  --ink: #eef1f7;
  --ink-2: #a8b1c4;
  --ink-3: #6f7a92;
  --shell: #080b12;
  --shell-2: #10151f;
  --ok-bg: #10261a;
  --warn-bg: #2a2010;
  --bad-bg: #2b1119;
  --shadow: 0 2px 4px rgba(0, 0, 0, .3), 0 16px 40px -24px rgba(0, 0, 0, .8);
  --shadow-l: 0 30px 70px -40px rgba(0, 0, 0, .9);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  background: var(--canvas);
  color: var(--ink);
  font-family: Inter, -apple-system, "Segoe UI", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "cv02", "cv03", "ss01";
}

h1, h2, h3, h4 { font-family: Sora, Inter, sans-serif; margin: 0 0 .35rem; line-height: 1.18; letter-spacing: -.02em; font-weight: 600; }
h1 { font-size: 1.75rem; font-weight: 700; }
h2 { font-size: 1.1rem; }
h3 { font-size: .98rem; }
p { margin: 0 0 .8rem; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
hr { border: 0; border-top: 1px solid var(--line-soft); margin: 1.2rem 0; }
code, .mono, .num { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: .84em; letter-spacing: -.02em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: var(--surface); padding: .5rem .8rem; z-index: 99; }
.navtoggle { position: absolute; opacity: 0; pointer-events: none; }

.shell { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }

.side {
  background: var(--shell);
  color: var(--shell-ink);
  display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
  padding: .9rem .7rem 1rem;
  scrollbar-width: thin;
}
.side__brand { display: flex; gap: .7rem; align-items: center; padding: .5rem .5rem 1rem; }
.side__seal {
  width: 38px; height: 38px; flex: none; border-radius: 11px;
  background: var(--grad); color: #fff;
  display: grid; place-items: center;
  font-family: Sora, sans-serif; font-weight: 700; font-size: .8rem;
  box-shadow: 0 8px 20px -8px var(--accent);
}
.side__brand strong { display: block; font-family: Sora, sans-serif; font-size: .97rem; color: #fff; }
.side__brand small { color: #737d92; font-family: "JetBrains Mono", monospace; }

.side__nav { flex: 1; }
.navgroup { margin-bottom: 1.1rem; }
.navgroup__label { margin: 0 0 .3rem; padding: 0 .6rem; font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; color: #5d6779; font-weight: 600; }
.navlink {
  display: flex; align-items: center; gap: .55rem;
  padding: .48rem .6rem; margin-bottom: 1px; border-radius: 10px;
  color: #c2cadb; font-size: .885rem; font-weight: 500;
  transition: background .14s ease, color .14s ease;
}
.navlink:hover { background: rgba(255, 255, 255, .06); color: #fff; text-decoration: none; }
.navlink.is-active { background: rgba(255, 255, 255, .1); color: #fff; }
.navlink.is-active::before { content: ""; width: 3px; height: 15px; border-radius: 3px; background: var(--grad); margin-left: -.35rem; }
.navlink__count { margin-left: auto; font-family: "JetBrains Mono", monospace; font-size: .68rem; background: var(--accent); color: #fff; padding: .05rem .35rem; border-radius: 999px; }
.navlink__dot { margin-left: auto; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

.side__foot { border-top: 1px solid rgba(255, 255, 255, .08); padding-top: .8rem; display: flex; flex-wrap: wrap; gap: .35rem; }
.crosslink { font-size: .72rem; color: #8892a6; border: 1px solid rgba(255, 255, 255, .12); padding: .2rem .5rem; border-radius: 999px; }
.crosslink:hover { color: #fff; border-color: rgba(255, 255, 255, .38); text-decoration: none; background: rgba(255,255,255,.05); }

.main { display: flex; flex-direction: column; min-width: 0; }

.top {
  display: flex; align-items: center; gap: .8rem;
  padding: .65rem 1.5rem;
  background: color-mix(in srgb, var(--canvas) 82%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 30;
}
.top__search { flex: 1; max-width: 420px; position: relative; }
.top__search input {
  width: 100%; padding: .48rem .8rem .48rem 2rem;
  border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
  font-size: .86rem; color: var(--ink);
}
.top__search::before {
  content: ""; position: absolute; left: .75rem; top: 50%; width: 12px; height: 12px; margin-top: -7px;
  border: 1.6px solid var(--ink-3); border-radius: 50%;
}
.top__spacer { flex: 1; }
.top__tools { display: flex; align-items: center; gap: .4rem; }

.iconbtn {
  width: 34px; height: 34px; display: grid; place-items: center;
  border-radius: 10px; border: 1px solid var(--line); background: var(--surface);
  color: var(--ink-2); font-size: .95rem; cursor: pointer; position: relative;
}
.iconbtn:hover { color: var(--ink); border-color: var(--ink-3); text-decoration: none; }
.iconbtn__badge {
  position: absolute; top: -5px; right: -5px; min-width: 17px; height: 17px; padding: 0 4px;
  border-radius: 999px; background: var(--bad); color: #fff;
  font: 600 .62rem/17px Inter, sans-serif; text-align: center;
}

.who { display: flex; align-items: center; gap: .55rem; padding: .2rem .5rem .2rem .25rem; border-radius: 999px; color: var(--ink); }
.who:hover { background: var(--surface); text-decoration: none; }
.avatar {
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: var(--grad); color: #fff; font: 600 .74rem Sora, sans-serif; flex: none;
}
.who__name { display: block; font-size: .83rem; font-weight: 600; line-height: 1.15; }
.who__rank { display: block; font-size: .68rem; color: var(--ink-3); }

.burger { display: none; width: 34px; height: 34px; place-items: center; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; background: var(--surface); }
.burger span, .burger span::before, .burger span::after { display: block; width: 15px; height: 1.8px; border-radius: 2px; background: var(--ink); position: relative; }
.burger span::before, .burger span::after { content: ""; position: absolute; }
.burger span::before { top: -5px; }
.burger span::after { top: 5px; }

.page { padding: 1.4rem 1.5rem 3rem; width: 100%; max-width: 1360px; }

.pagehead { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-bottom: 1.3rem; flex-wrap: wrap; }
.pagehead h1 { display: flex; align-items: center; gap: .6rem; }
.eyebrow { margin: 0 0 .15rem; font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; }
.pagehead__sub { margin: .2rem 0 0; color: var(--ink-2); font-size: .92rem; }
.pagehead__meta { font-family: "JetBrains Mono", monospace; font-size: .7rem; color: var(--ink-3); text-align: right; }
.pageactions { display: flex; flex-wrap: wrap; gap: .5rem; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow-s);
  margin-bottom: 1.1rem;
  overflow: hidden;
}
.card__head { padding: .85rem 1.15rem; border-bottom: 1px solid var(--line-soft); display: flex; justify-content: space-between; align-items: center; gap: .8rem; flex-wrap: wrap; }
.card__head h2 { margin: 0; }
.card__body { padding: 1.15rem; }
.card__body > :last-child { margin-bottom: 0; }
.card--accent { border-top: 3px solid transparent; border-image: var(--grad) 1; border-image-slice: 1; }
.card--rail { position: relative; }
.card--rail::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--grad); }
.card--flat { box-shadow: none; }

.grid { display: grid; gap: 1.1rem; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.grid--split { grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); align-items: start; }
.grid--wide { grid-template-columns: minmax(0, 3fr) minmax(280px, 1fr); align-items: start; }

.stat {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: .95rem 1.05rem; position: relative; overflow: hidden; box-shadow: var(--shadow-s);
}
.stat__label { font-size: .66rem; text-transform: uppercase; letter-spacing: .13em; color: var(--ink-3); font-weight: 600; margin: 0; }
.stat__value { font-family: Sora, sans-serif; font-size: 1.85rem; font-weight: 700; line-height: 1.1; margin: .15rem 0 0; letter-spacing: -.03em; }
.stat__value--sm { font-size: 1.25rem; }
.stat__note { font-size: .76rem; color: var(--ink-2); margin: .1rem 0 0; }
.stat__spark { position: absolute; right: 0; bottom: 0; left: 0; height: 42px; opacity: .5; pointer-events: none; }
.spark { width: 100%; height: 100%; display: block; }
.spark__line { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.spark__area { fill: color-mix(in srgb, var(--accent) 13%, transparent); stroke: none; }

.tablewrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .875rem; }
thead th {
  text-align: left; font-size: .65rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-3); font-weight: 600; padding: .6rem 1.15rem;
  border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--surface-2);
}
tbody td { padding: .65rem 1.15rem; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: var(--surface-2); }
td.right, th.right { text-align: right; }
.rowlink { font-weight: 600; }

.badge {
  display: inline-flex; align-items: center; gap: .3rem;
  font-size: .68rem; font-weight: 600; letter-spacing: .02em;
  padding: .17rem .5rem; border-radius: 999px; border: 1px solid transparent; white-space: nowrap;
}
.badge::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.badge--neutral { color: var(--ink-2); background: var(--line-soft); }
.badge--open { color: var(--warn); background: var(--warn-bg); }
.badge--done { color: var(--ok); background: var(--ok-bg); }
.badge--alert { color: var(--bad); background: var(--bad-bg); }
.badge--info { color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); }

.chip { display: inline-flex; align-items: center; gap: .3rem; font-size: .74rem; padding: .2rem .55rem; border-radius: 999px; background: var(--line-soft); color: var(--ink-2); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  font: 600 .845rem/1 Inter, sans-serif;
  padding: .58rem .95rem; border-radius: 10px; border: 1px solid transparent;
  background: var(--grad); color: #fff; cursor: pointer; text-decoration: none;
  box-shadow: 0 6px 16px -10px var(--accent);
  transition: transform .12s ease, filter .12s ease;
}
.btn:hover { text-decoration: none; filter: brightness(1.06); transform: translateY(-1px); }
.btn:active { transform: none; }
.btn--ghost { background: var(--surface); color: var(--ink); border-color: var(--line); box-shadow: none; }
.btn--ghost:hover { border-color: var(--ink-3); filter: none; }
.btn--quiet { background: transparent; color: var(--ink-2); box-shadow: none; padding: .4rem .55rem; }
.btn--quiet:hover { color: var(--ink); background: var(--line-soft); }
.btn--danger { background: var(--bad); box-shadow: none; }
.btn--small { padding: .34rem .6rem; font-size: .77rem; border-radius: 8px; }
.btn--block { width: 100%; }

label { display: block; font-size: .72rem; font-weight: 600; color: var(--ink-2); margin-bottom: .3rem; }
input[type=text], input[type=password], input[type=number], input[type=date], input[type=time],
input[type=datetime-local], input[type=email], input[type=tel], input[type=search], select, textarea {
  width: 100%; padding: .55rem .7rem;
  border: 1px solid var(--line); border-radius: 10px; background: var(--surface);
  font: 400 .89rem/1.45 Inter, sans-serif; color: var(--ink);
  transition: border-color .12s ease, box-shadow .12s ease;
}
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent); }
.field { margin-bottom: .9rem; }
.field__hint { font-size: .77rem; color: var(--ink-3); margin: .3rem 0 0; font-weight: 400; }
.formgrid { display: grid; gap: 0 1rem; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.formactions { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; margin-top: .4rem; }
.checkline { display: flex; gap: .5rem; align-items: flex-start; margin-bottom: .4rem; }
.checkline label { font-weight: 400; font-size: .87rem; margin: 0; color: var(--ink); }
.checkline input { margin-top: .3rem; accent-color: var(--accent); }
.searchbar { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.searchbar input, .searchbar select { max-width: 260px; }

.flash { padding: .75rem 1rem; border-radius: var(--r-s); margin-bottom: 1rem; font-size: .89rem; display: flex; gap: .6rem; align-items: flex-start; border: 1px solid transparent; }
.flash--ok { background: var(--ok-bg); color: var(--ok); border-color: color-mix(in srgb, var(--ok) 25%, transparent); }
.flash--err { background: var(--bad-bg); color: var(--bad); border-color: color-mix(in srgb, var(--bad) 25%, transparent); }

.empty { background: var(--surface); border: 1px dashed var(--line); border-radius: var(--r); padding: 2.6rem 1.6rem; text-align: center; color: var(--ink-2); }
.empty h2 { color: var(--ink); }

.deflist { display: grid; grid-template-columns: minmax(115px, 165px) 1fr; gap: .45rem 1rem; font-size: .89rem; }
.deflist dt { font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; padding-top: .1rem; }
.deflist dd { margin: 0; }

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { border-left: 2px solid var(--line); padding: 0 0 1.05rem 1.05rem; position: relative; }
.timeline li::before { content: ""; position: absolute; left: -5px; top: .4rem; width: 8px; height: 8px; border-radius: 50%; background: var(--grad); }
.timeline time { display: block; font-family: "JetBrains Mono", monospace; font-size: .7rem; color: var(--ink-3); margin-bottom: .1rem; }
.timeline li:last-child { border-left-color: transparent; padding-bottom: 0; }

.tabs { display: flex; gap: .25rem; margin-bottom: 1.15rem; flex-wrap: wrap; background: var(--line-soft); padding: .25rem; border-radius: 12px; width: fit-content; max-width: 100%; }
.tab { padding: .38rem .8rem; font-size: .83rem; font-weight: 600; color: var(--ink-2); border-radius: 9px; }
.tab:hover { text-decoration: none; color: var(--ink); }
.tab.is-active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-s); }

.pager { display: flex; gap: .3rem; margin-top: 1rem; align-items: center; font-size: .84rem; }
.pager a, .pager span { padding: .28rem .6rem; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.pager .is-active { background: var(--grad); color: #fff; border-color: transparent; }

.foot { padding: 1.2rem 1.5rem 2rem; color: var(--ink-3); font-size: .74rem; border-top: 1px solid var(--line); margin-top: auto; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

.notiflist { list-style: none; margin: 0; padding: 0; }
.notiflist li { display: flex; gap: .7rem; padding: .7rem 1.15rem; border-bottom: 1px solid var(--line-soft); }
.notiflist li:last-child { border-bottom: 0; }
.notiflist .is-unread { background: color-mix(in srgb, var(--accent) 5%, transparent); }
.notifdot { width: 8px; height: 8px; border-radius: 50%; background: var(--grad); margin-top: .45rem; flex: none; }

.kanban { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1rem; }
.kanban__col { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r); padding: .8rem; }
.kanban__title { font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-3); font-weight: 600; margin-bottom: .6rem; display: flex; justify-content: space-between; }
.ticket { background: var(--surface); border: 1px solid var(--line); border-radius: 11px; padding: .7rem .8rem; margin-bottom: .55rem; display: block; color: var(--ink); box-shadow: var(--shadow-s); }
.ticket:hover { text-decoration: none; border-color: var(--accent); }
.ticket__meta { display: flex; justify-content: space-between; gap: .5rem; font-size: .7rem; color: var(--ink-3); font-family: "JetBrains Mono", monospace; margin-bottom: .25rem; }
.ticket strong { font-size: .87rem; display: block; }
.ticket p { margin: .2rem 0 0; font-size: .79rem; color: var(--ink-2); }

.bar { height: 7px; border-radius: 999px; background: var(--line-soft); overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--grad); border-radius: 999px; }

.stamp {
  display: inline-block; border: 2px solid currentColor; color: var(--ok);
  font-family: Sora, sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: .12em;
  padding: .3rem .75rem; transform: rotate(-2.5deg); font-size: .76rem; border-radius: 6px; opacity: .9;
}

.qr { display: grid; grid-template-columns: repeat(21, 1fr); width: 118px; height: 118px; border: 6px solid #fff; background: #fff; }
.qr i { background: var(--ink); }
.qr i.o { background: #fff; }

.publicshell { min-height: 100vh; display: flex; flex-direction: column; }
.pubbar {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--canvas) 85%, transparent);
  backdrop-filter: blur(16px); border-bottom: 1px solid var(--line);
}
.pubbar__in { max-width: 1180px; margin: 0 auto; padding: .7rem 1.2rem; display: flex; align-items: center; gap: 1.2rem; }
.publogo { display: flex; align-items: center; gap: .6rem; color: var(--ink); }
.publogo:hover { text-decoration: none; }
.publogo strong { font-family: Sora, sans-serif; font-size: .95rem; display: block; line-height: 1.15; }
.publogo small { font-size: .68rem; color: var(--ink-3); }
.pubnav { display: flex; gap: .15rem; margin-left: auto; flex-wrap: wrap; }
.pubnav a { padding: .4rem .7rem; border-radius: 9px; font-size: .86rem; font-weight: 500; color: var(--ink-2); }
.pubnav a:hover { background: var(--line-soft); color: var(--ink); text-decoration: none; }
.pubnav a.is-active { color: var(--ink); background: var(--line-soft); }

.hero { position: relative; overflow: hidden; color: #fff; background: var(--shell); }
.hero::before {
  content: ""; position: absolute; inset: -30% -10% auto -10%; height: 130%;
  background: radial-gradient(60% 60% at 20% 20%, color-mix(in srgb, var(--accent) 75%, transparent), transparent 70%),
              radial-gradient(50% 50% at 85% 10%, color-mix(in srgb, var(--accent-2) 60%, transparent), transparent 70%),
              radial-gradient(40% 40% at 60% 90%, color-mix(in srgb, var(--accent) 40%, transparent), transparent 70%);
  filter: blur(10px);
}
.hero__in { position: relative; max-width: 1180px; margin: 0 auto; padding: 4.2rem 1.2rem 3.4rem; }
.hero h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); max-width: 17ch; color: #fff; }
.hero p { color: #d5dbe8; max-width: 56ch; font-size: 1.02rem; }
.hero__actions { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: 1.4rem; }
.hero__actions .btn--ghost { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .25); backdrop-filter: blur(6px); }
.hero__status { display: flex; gap: 1.6rem; flex-wrap: wrap; margin-top: 2.4rem; padding-top: 1.4rem; border-top: 1px solid rgba(255, 255, 255, .14); }
.hero__stat span { display: block; font-family: Sora, sans-serif; font-size: 1.5rem; font-weight: 700; color: #fff; }
.hero__stat small { font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: #9daabf; }
.livedot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #22c55e; margin-right: .4rem; box-shadow: 0 0 0 0 rgba(34, 197, 94, .6); animation: pulse 2.4s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(34, 197, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } }

.wrap { max-width: 1180px; margin: 0 auto; padding: 2.6rem 1.2rem; width: 100%; }
.section__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-bottom: 1.2rem; flex-wrap: wrap; }
.section__head h2 { font-size: 1.5rem; }

.tiles { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.tile {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l);
  padding: 1.3rem 1.2rem; color: var(--ink); display: block; position: relative; overflow: hidden;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.tile:hover { text-decoration: none; transform: translateY(-3px); box-shadow: var(--shadow-l); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.tile__ico { width: 38px; height: 38px; border-radius: 11px; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); display: grid; place-items: center; font-weight: 700; font-family: Sora, sans-serif; margin-bottom: .8rem; }
.tile h3 { margin-bottom: .2rem; }
.tile p { font-size: .86rem; color: var(--ink-2); margin: 0; }
.tile__arrow { position: absolute; right: 1.1rem; top: 1.3rem; color: var(--ink-3); font-size: 1rem; }

.newsgrid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.newscard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); padding: 1.3rem; display: flex; flex-direction: column; gap: .5rem; color: var(--ink); }
.newscard:hover { text-decoration: none; border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.newscard time { font-family: "JetBrains Mono", monospace; font-size: .72rem; color: var(--ink-3); }
.newscard h3 { margin: 0; }
.newscard p { margin: 0; font-size: .88rem; color: var(--ink-2); }
.article { max-width: 760px; }
.article p { font-size: 1rem; line-height: 1.7; }

.wanted { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.wanted__card { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--bad); border-radius: var(--r); padding: 1.1rem; }
.wanted__card h3 { margin-bottom: .1rem; }

.faq { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); overflow: hidden; }
.faq details { border-bottom: 1px solid var(--line-soft); }
.faq details:last-child { border-bottom: 0; }
.faq summary { padding: .9rem 1.15rem; cursor: pointer; font-weight: 600; font-size: .92rem; list-style: none; display: flex; justify-content: space-between; }
.faq summary::after { content: "+"; color: var(--ink-3); }
.faq details[open] summary::after { content: "–"; }
.faq p { padding: 0 1.15rem 1rem; margin: 0; color: var(--ink-2); font-size: .9rem; }

.pubfoot { background: var(--shell); color: #97a2b6; margin-top: auto; }
.pubfoot__in { max-width: 1180px; margin: 0 auto; padding: 2.4rem 1.2rem; display: grid; gap: 1.6rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.pubfoot h4 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: .6rem; }
.pubfoot a { color: #97a2b6; display: block; font-size: .85rem; padding: .12rem 0; }
.pubfoot a:hover { color: #fff; }
.pubfoot__bar { border-top: 1px solid rgba(255, 255, 255, .1); font-size: .76rem; padding: .9rem 1.2rem; text-align: center; }

.login { min-height: 100vh; display: grid; grid-template-columns: 1fr minmax(360px, 460px); }
.login__art { position: relative; overflow: hidden; color: #fff; background: var(--shell); padding: 3.4rem; display: flex; flex-direction: column; justify-content: space-between; }
.login__art::before { content: ""; position: absolute; inset: -20%; background: radial-gradient(50% 50% at 25% 25%, color-mix(in srgb, var(--accent) 70%, transparent), transparent 70%), radial-gradient(45% 45% at 80% 70%, color-mix(in srgb, var(--accent-2) 55%, transparent), transparent 70%); filter: blur(8px); }
.login__art > * { position: relative; }
.login__art h1 { font-size: 2.4rem; max-width: 13ch; color: #fff; }
.login__art p { color: #c3ccdd; max-width: 46ch; }
.login__box { background: var(--canvas); padding: 3rem 2.6rem; display: flex; flex-direction: column; justify-content: center; }
.login .btn { width: 100%; }
.login__sep { display: flex; align-items: center; gap: .7rem; color: var(--ink-3); font-size: .7rem; text-transform: uppercase; letter-spacing: .14em; margin: 1.3rem 0; }
.login__sep::before, .login__sep::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.discordbtn { background: #5865f2; box-shadow: 0 8px 18px -12px #5865f2; }

.install { max-width: 780px; margin: 0 auto; padding: 2.6rem 1.2rem 4rem; }
.steps { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: 1.6rem; font-size: .74rem; }
.steps span { padding: .3rem .7rem; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; color: var(--ink-3); }
.steps .is-current { background: var(--grad); color: #fff; border-color: transparent; font-weight: 600; }
.steps .is-done { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 35%, transparent); }

@media (max-width: 980px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; inset: 0 auto 0 0; width: 268px; z-index: 60; transform: translateX(-100%); transition: transform .2s ease; }
  .navtoggle:checked ~ .shell .side { transform: none; box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .5); }
  .burger { display: grid; }
  .page { padding: 1.1rem 1rem 2.6rem; }
  .top { padding: .6rem 1rem; }
  .top__search { display: none; }
  .grid--split, .grid--wide { grid-template-columns: 1fr; }
  .deflist { grid-template-columns: 1fr; gap: .1rem .5rem; }
  .deflist dd { margin-bottom: .55rem; }
  .login { grid-template-columns: 1fr; }
  .login__art { display: none; }
  .who__name, .who__rank { display: none; }
}

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

@media print {
  .side, .top, .foot, .pageactions, .burger, .pubbar, .pubfoot { display: none !important; }
  body { background: #fff; }
  .shell { grid-template-columns: 1fr; }
  .card { box-shadow: none; border-color: #ccc; }
}

.stack > * + * { margin-top: .7rem; }
.stack--sm > * + * { margin-top: .45rem; }
.stack--lg > * + * { margin-top: 1.1rem; }
.muted { color: var(--ink-2); }
.small { font-size: .85rem; }
.tiny { font-size: .76rem; }
.right-align { text-align: right; }
.nowrap { white-space: nowrap; }
.spread { display: flex; justify-content: space-between; gap: .8rem; align-items: center; flex-wrap: wrap; }

.toolbar {
  display: flex; gap: .5rem; align-items: center; flex-wrap: wrap;
  margin-bottom: 1.1rem; padding: .55rem .65rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-s);
}
.toolbar input, .toolbar select { max-width: 220px; }
.toolbar__spacer { flex: 1; }

.inline-form { display: flex; gap: .35rem; align-items: center; flex-wrap: nowrap; justify-content: flex-end; }
.inline-form select, .inline-form input { max-width: 160px; padding: .34rem .5rem; font-size: .82rem; }

.card__body--tight { padding: .85rem 1.15rem; }
.card + .card { margin-top: 1.1rem; }
.card__foot { padding: .75rem 1.15rem; border-top: 1px solid var(--line-soft); background: var(--surface-2); }

.formcard { display: grid; gap: 0 1rem; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.field--full { grid-column: 1 / -1; }

.stat { display: flex; flex-direction: column; justify-content: flex-start; min-height: 104px; }
.stat__spark { opacity: .38; height: 38px; }
.stat__note { position: relative; z-index: 1; }
.stat--plain .stat__value { font-size: 1.5rem; }

.tablewrap table { min-width: 100%; }
tbody td.actions { white-space: nowrap; text-align: right; }
tbody td.actions form { display: inline-flex; gap: .3rem; align-items: center; }
tbody tr.is-muted td { opacity: .55; }

.taglist { display: flex; flex-wrap: wrap; gap: .3rem; }

.split-list { list-style: none; margin: 0; padding: 0; }
.split-list li { display: flex; justify-content: space-between; gap: .8rem; padding: .42rem 0; border-bottom: 1px solid var(--line-soft); font-size: .87rem; }
.split-list li:last-child { border-bottom: 0; }

.codeblock {
  background: var(--shell); color: #d8dfec; border-radius: 12px; padding: 1rem 1.1rem;
  font-family: "JetBrains Mono", monospace; font-size: .78rem; line-height: 1.6;
  overflow-x: auto; white-space: pre; margin: 0;
}
.copyrow { display: flex; gap: .5rem; align-items: center; margin-top: .6rem; flex-wrap: wrap; }

.steplist { list-style: none; counter-reset: s; margin: 0; padding: 0; }
.steplist li { counter-increment: s; position: relative; padding: 0 0 1.1rem 2.4rem; }
.steplist li::before {
  content: counter(s); position: absolute; left: 0; top: 0;
  width: 26px; height: 26px; border-radius: 8px; background: var(--grad); color: #fff;
  display: grid; place-items: center; font: 600 .78rem Sora, sans-serif;
}
.steplist strong { display: block; margin-bottom: .1rem; }

.statuslamp { display: inline-flex; align-items: center; gap: .45rem; font-size: .85rem; font-weight: 600; }
.statuslamp::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--ink-3); }
.statuslamp--on::before { background: #22c55e; box-shadow: 0 0 0 3px color-mix(in srgb, #22c55e 25%, transparent); }
.statuslamp--off::before { background: var(--bad); box-shadow: 0 0 0 3px color-mix(in srgb, var(--bad) 22%, transparent); }

.callcard { border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 12px; padding: .8rem .95rem; background: var(--surface); }
.callcard--alert { border-left-color: var(--bad); }
.callcard__head { display: flex; justify-content: space-between; gap: .6rem; align-items: baseline; }
.callcard__head strong { font-size: .95rem; }

@media (max-width: 720px) {
  .pagehead { align-items: flex-start; }
  .pagehead__meta { text-align: left; }
  .inline-form { justify-content: flex-start; flex-wrap: wrap; }
  tbody td.actions { text-align: left; }
  .toolbar input, .toolbar select { max-width: none; flex: 1 1 140px; }
  .hero__in { padding: 3rem 1.2rem 2.6rem; }
  .wrap { padding: 2rem 1.2rem; }
}

.dropdown { position: relative; }
.dropdown > summary { list-style: none; cursor: pointer; }
.dropdown > summary::-webkit-details-marker { display: none; }
.dropdown__panel {
  position: absolute; right: 0; top: 44px; width: 340px; max-width: calc(100vw - 2rem);
  z-index: 50; margin: 0; box-shadow: var(--shadow-l); max-height: 70vh; overflow: auto;
}
.iconbtn svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
