/* cyrillic-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/00b4d25b.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/34620cc0.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/18a29d51.woff2') format('woff2');
  unicode-range: U+1F00-1FFF;
}
/* greek */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/b28cd0a0.woff2') format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/7803cba9.woff2') format('woff2');
  unicode-range:
    U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301,
    U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/4b42e948.woff2') format('woff2');
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/b3bd6101.woff2') format('woff2');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/00b4d25b.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/34620cc0.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/18a29d51.woff2') format('woff2');
  unicode-range: U+1F00-1FFF;
}
/* greek */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/b28cd0a0.woff2') format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/7803cba9.woff2') format('woff2');
  unicode-range:
    U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301,
    U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/4b42e948.woff2') format('woff2');
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/b3bd6101.woff2') format('woff2');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/00b4d25b.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/34620cc0.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/18a29d51.woff2') format('woff2');
  unicode-range: U+1F00-1FFF;
}
/* greek */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/b28cd0a0.woff2') format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/7803cba9.woff2') format('woff2');
  unicode-range:
    U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301,
    U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/4b42e948.woff2') format('woff2');
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/b3bd6101.woff2') format('woff2');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/00b4d25b.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/34620cc0.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/18a29d51.woff2') format('woff2');
  unicode-range: U+1F00-1FFF;
}
/* greek */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/b28cd0a0.woff2') format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/7803cba9.woff2') format('woff2');
  unicode-range:
    U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301,
    U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/4b42e948.woff2') format('woff2');
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/b3bd6101.woff2') format('woff2');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/8e992657.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/5036f34f.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/d4955d4b.woff2') format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/e858a4f5.woff2') format('woff2');
  unicode-range:
    U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301,
    U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/e447a2af.woff2') format('woff2');
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/f7dde2fc.woff2') format('woff2');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/8e992657.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/5036f34f.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/d4955d4b.woff2') format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/e858a4f5.woff2') format('woff2');
  unicode-range:
    U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301,
    U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/e447a2af.woff2') format('woff2');
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/f7dde2fc.woff2') format('woff2');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #fafaf7;
  --panel: #ffffff;
  --panel-2: #f5f4ef;
  --line: #e8e6df;
  --line-strong: #d6d3ca;
  --ink: #2a2925;
  --ink-2: #555049;
  --ink-3: #8a8a82;
  --ink-4: #b8b6ae;
  --accent: oklch(0.58 0.14 245);
  --accent-soft: oklch(0.96 0.025 245);
  --accent-ink: oklch(0.4 0.12 245);
  --ok: oklch(0.62 0.13 155);
  --warn: oklch(0.72 0.14 75);
  --err: oklch(0.58 0.18 25);
  --shadow-sm: 0 1px 0 rgba(20, 20, 15, 0.04), 0 1px 2px rgba(20, 20, 15, 0.04);
  --shadow-md: 0 1px 0 rgba(20, 20, 15, 0.04), 0 4px 14px rgba(20, 20, 15, 0.06);
  --radius: 10px;
  --radius-sm: 6px;
}
* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font:
    14px/1.5 'Inter',
    system-ui,
    sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.mono {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
}
button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}
input,
select {
  font: inherit;
  color: inherit;
}
::selection {
  background: var(--accent-soft);
}

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

/* sidebar */
.sidebar {
  border-right: 1px solid var(--line);
  background: var(--panel);
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: sticky;
  top: 0;
  height: 100vh;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 8px;
}
.brand-mark {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: -0.02em;
}
.brand-name {
  font-weight: 600;
  letter-spacing: -0.01em;
  font-size: 14px;
}
.brand-sub {
  font-size: 11px;
  color: var(--ink-3);
  margin-top: 1px;
}

.nav-label {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0 8px 6px;
}
.nav {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 8px;
  border-radius: 7px;
  color: var(--ink-2);
  font-size: 13.5px;
  text-align: left;
  width: 100%;
  transition:
    background 0.12s,
    color 0.12s;
}
.nav-item:hover {
  background: var(--panel-2);
  color: var(--ink);
}
.nav-item.active {
  background: var(--accent-soft);
  color: var(--accent-ink);
}
.nav-item.active .nav-count {
  background: rgba(255, 255, 255, 0.6);
  color: var(--accent-ink);
}
.nav-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  opacity: 0.85;
}
.nav-count {
  margin-left: auto;
  font-size: 11px;
  padding: 1px 6px;
  background: var(--panel-2);
  color: var(--ink-3);
  border-radius: 999px;
  font-variant-numeric: tabular-nums;
}

.sidebar-footer {
  margin-top: auto;
  padding: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid var(--line);
}
.avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, oklch(0.78 0.06 245), oklch(0.62 0.12 245));
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 600;
  flex: 0 0 28px;
}
.me-name {
  font-size: 13px;
  font-weight: 500;
}
.me-role {
  font-size: 11px;
  color: var(--ink-3);
}

/* main */
.main {
  padding: 22px 32px 64px;
  min-width: 0;
}
.header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.header h1 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0;
}
.header .sub {
  color: var(--ink-3);
  font-size: 13px;
  margin-top: 2px;
}
.header-spacer {
  flex: 1;
}
.search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 10px;
  min-width: 280px;
  transition:
    border-color 0.12s,
    box-shadow 0.12s;
}
.search:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.search input {
  border: 0;
  background: transparent;
  outline: 0;
  flex: 1;
  font-size: 13px;
}
.search .kbd {
  font-size: 10.5px;
  color: var(--ink-3);
  padding: 1px 5px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-family: 'JetBrains Mono', monospace;
}

.toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 0 18px;
  flex-wrap: wrap;
}
.seg {
  display: inline-flex;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 2px;
}
.seg button {
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 12.5px;
  color: var(--ink-2);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.seg button.on {
  background: var(--accent-soft);
  color: var(--accent-ink);
}
.seg button:not(.on):hover {
  color: var(--ink);
  background: var(--panel-2);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
  transition:
    background 0.12s,
    border-color 0.12s,
    color 0.12s;
}
.btn:hover {
  background: var(--panel-2);
  border-color: var(--line-strong);
}
.btn.primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn.primary:hover {
  filter: brightness(1.05);
}
.btn.ghost {
  border-color: transparent;
  background: transparent;
}
.btn.ghost:hover {
  background: var(--panel-2);
}
.btn .ic {
  width: 14px;
  height: 14px;
}

.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel);
  font-size: 12.5px;
  color: var(--ink-2);
}
.filter-pill.on {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent-ink);
}

.section {
  margin-top: 8px;
}
.section-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 22px 0 12px;
}
.section-head h2 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin: 0;
}
.section-head .count {
  color: var(--ink-3);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.section-head .sep {
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* project grid */
.grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  grid-auto-rows: auto;
  grid-auto-flow: row dense;
  align-items: start;
}
.grid.large {
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}
.grid.compact {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition:
    border-color 0.14s,
    box-shadow 0.14s,
    transform 0.14s;
  position: relative;
  cursor: grab;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: var(--proj-color, var(--accent));
  opacity: 0.85;
}
.card:hover {
  border-color: var(--proj-color, var(--accent));
  box-shadow: var(--shadow-md);
}
.card:active {
  cursor: grabbing;
}
.card.dragging {
  opacity: 0.35;
}
.card.drop-before::after {
  content: '';
  position: absolute;
  left: -7px;
  top: -6px;
  bottom: -6px;
  width: 2px;
  background: var(--accent);
  border-radius: 2px;
}
.card.drop-after::after {
  content: '';
  position: absolute;
  right: -7px;
  top: -6px;
  bottom: -6px;
  width: 2px;
  background: var(--accent);
  border-radius: 2px;
}

/* Wide card spans 2 cols when shortcuts present */
.card.wide {
  grid-column: span 2;
}
@media (max-width: 720px) {
  .card.wide {
    grid-column: span 1;
  }
}

.compact .card {
  padding: 10px;
  gap: 8px;
}
.large .card {
  padding: 18px;
  gap: 14px;
}

.card-top {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.logo {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.02em;
  color: #fff;
}
.compact .logo {
  width: 30px;
  height: 30px;
  flex-basis: 30px;
  border-radius: 7px;
  font-size: 12px;
}
.large .logo {
  width: 46px;
  height: 46px;
  flex-basis: 46px;
  border-radius: 11px;
  font-size: 16px;
}

.card-title {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1.25;
}
.compact .card-title {
  font-size: 13px;
}
.large .card-title {
  font-size: 16px;
}
.card-url {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  color: var(--ink-3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.pin {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  color: var(--ink-4);
  display: grid;
  place-items: center;
  opacity: 0;
  transition:
    opacity 0.12s,
    color 0.12s,
    background 0.12s;
}
.card:hover .pin,
.pin.on {
  opacity: 1;
}
.pin:hover {
  background: var(--panel-2);
  color: var(--ink);
}
.pin.on {
  color: var(--proj-color, var(--accent));
}

/* default user pill */
.default-user {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  border-radius: 8px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  font-size: 12px;
  margin-top: 2px;
}
.default-user .avatar {
  width: 22px;
  height: 22px;
  flex-basis: 22px;
  font-size: 9.5px;
  background: var(--proj-color, var(--accent));
}
.default-user .du-info {
  min-width: 0;
  flex: 1;
}
.default-user .du-name {
  font-weight: 500;
  color: var(--ink);
}
.default-user .du-role {
  font-size: 10.5px;
  color: var(--ink-3);
  margin-top: 1px;
}
.default-user .du-switch {
  font-size: 11px;
  color: var(--ink-3);
  padding: 3px 7px;
  border-radius: 5px;
  border: 1px solid transparent;
  transition:
    border-color 0.12s,
    color 0.12s;
}
.default-user .du-switch:hover {
  border-color: var(--line-strong);
  color: var(--ink);
}

/* shortcuts inside a project card */
.card-shortcuts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding-top: 4px;
}
.compact .card-shortcuts {
  grid-template-columns: 1fr;
}
.card-shortcut {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  border-radius: 7px;
  background: var(--panel);
  border: 1px solid var(--line);
  font-size: 12px;
  color: var(--ink-2);
  text-align: left;
  cursor: pointer;
  transition:
    border-color 0.12s,
    background 0.12s,
    color 0.12s;
  min-width: 0;
}
.card-shortcut:hover {
  border-color: var(--proj-color, var(--accent));
  color: var(--ink);
}
.card-shortcut .cs-ic {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  border-radius: 5px;
  background: var(--proj-color-soft, var(--accent-soft));
  color: var(--proj-color, var(--accent-ink));
  display: grid;
  place-items: center;
}
.card-shortcut .cs-text {
  min-width: 0;
  flex: 1;
}
.card-shortcut .cs-name {
  font-weight: 500;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.card-shortcut .cs-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  color: var(--ink-3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 1px;
}
.card-shortcut .cs-user {
  font-size: 10px;
  padding: 1px 5px;
  border-radius: 999px;
  background: var(--proj-color-soft, var(--accent-soft));
  color: var(--proj-color, var(--accent-ink));
  flex: 0 0 auto;
}
.card-shortcut.add {
  border-style: dashed;
  color: var(--ink-3);
  justify-content: center;
}
.card-shortcut.add .cs-ic {
  background: transparent;
}
.card-shortcut.add:hover {
  color: var(--proj-color, var(--accent-ink));
  border-color: var(--proj-color, var(--accent));
}

.card-actions {
  display: flex;
  gap: 6px;
  margin-top: auto;
  padding-top: 6px;
}
.card-actions .btn {
  flex: 1;
  justify-content: center;
  padding: 7px 8px;
  font-size: 12.5px;
}
.compact .card-actions .label {
  display: none;
}
.compact .card-actions .btn {
  flex: 0 0 auto;
  min-width: 32px;
}

/* PROJECT-COLOR primary button */
.btn.proj {
  background: var(--proj-color);
  border-color: var(--proj-color);
  color: #fff;
}
.btn.proj:hover {
  filter: brightness(1.06);
}
.btn.proj-soft {
  background: var(--proj-color-soft);
  border-color: var(--proj-color-soft);
  color: var(--proj-color);
}
.btn.proj-soft:hover {
  background: var(--proj-color);
  color: #fff;
}

/* list view */
.list {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.list-row {
  display: grid;
  grid-template-columns: 24px 38px 1.4fr 1.6fr auto;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  border-top: 1px solid var(--line);
  cursor: grab;
  transition: background 0.12s;
  position: relative;
}
.list-row::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--proj-color, var(--accent));
  opacity: 0.85;
}
.list-row:first-child {
  border-top: 0;
}
.list-row:hover {
  background: var(--panel-2);
}
.list-row.dragging {
  opacity: 0.35;
}
.list-row .handle {
  color: var(--ink-4);
  display: grid;
  place-items: center;
}
.list-row .row-title {
  font-weight: 500;
}
.list-row .row-actions {
  display: flex;
  gap: 6px;
  opacity: 0;
  transition: opacity 0.12s;
}
.list-row:hover .row-actions {
  opacity: 1;
}

/* shortcuts page */
.shortcut-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}
.shortcut {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 9px;
  transition:
    border-color 0.12s,
    background 0.12s;
  cursor: pointer;
  text-align: left;
  width: 100%;
}
.shortcut:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.shortcut-ic {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border-radius: 7px;
  background: var(--panel-2);
  display: grid;
  place-items: center;
  color: var(--ink-2);
}
.shortcut:hover .shortcut-ic {
  background: #fff;
  color: var(--accent-ink);
}
.shortcut-name {
  font-size: 13px;
  font-weight: 500;
}
.shortcut-meta {
  font-size: 11.5px;
  color: var(--ink-3);
  margin-top: 1px;
  font-family: 'JetBrains Mono', monospace;
}
.shortcut-add {
  border-style: dashed;
  color: var(--ink-3);
  justify-content: center;
  background: transparent;
}
.shortcut-add:hover {
  color: var(--accent-ink);
  background: var(--accent-soft);
  border-style: dashed;
}

.pgroup {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 10px;
  overflow: hidden;
}
.pgroup-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  cursor: pointer;
  border-bottom: 1px solid transparent;
}
.pgroup.open .pgroup-head {
  border-bottom-color: var(--line);
}
.pgroup-head .logo {
  width: 26px;
  height: 26px;
  flex-basis: 26px;
  border-radius: 6px;
  font-size: 11px;
}
.pgroup-head .nm {
  font-weight: 500;
  font-size: 13.5px;
}
.pgroup-head .ct {
  color: var(--ink-3);
  font-size: 12px;
  margin-left: auto;
}
.pgroup-head .chev {
  color: var(--ink-4);
  transition: transform 0.15s;
}
.pgroup.open .pgroup-head .chev {
  transform: rotate(90deg);
}
.pgroup-body {
  padding: 10px 14px 14px;
  display: none;
}
.pgroup.open .pgroup-body {
  display: block;
}

/* modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 18, 12, 0.32);
  backdrop-filter: blur(2px);
  display: grid;
  place-items: center;
  z-index: 50;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s;
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.modal {
  background: var(--panel);
  border-radius: 12px;
  width: min(520px, calc(100vw - 32px));
  border: 1px solid var(--line);
  box-shadow: 0 20px 60px rgba(20, 20, 15, 0.18);
  transform: translateY(8px);
  transition: transform 0.18s;
}
.modal-overlay.open .modal {
  transform: translateY(0);
}
.modal-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}
.modal-head h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.modal-head .x {
  margin-left: auto;
  color: var(--ink-3);
  padding: 4px;
  border-radius: 6px;
}
.modal-head .x:hover {
  background: var(--panel-2);
  color: var(--ink);
}
.modal-body {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.modal-foot {
  padding: 12px 18px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.field label {
  display: block;
  font-size: 12px;
  color: var(--ink-2);
  margin-bottom: 5px;
  font-weight: 500;
}
.field input,
.field select {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel);
  outline: 0;
  font-size: 13px;
  transition:
    border-color 0.12s,
    box-shadow 0.12s;
}
.field input:focus,
.field select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.swatch-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.swatch {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.1s;
}
.swatch:hover {
  transform: scale(1.08);
}
.swatch.on {
  border-color: var(--ink);
}

.users-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 320px;
  overflow: auto;
}
.user-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 7px;
  cursor: pointer;
  transition: background 0.12s;
  border: 1px solid transparent;
  text-align: left;
  width: 100%;
}
.user-row:hover {
  background: var(--panel-2);
}
.user-row.is-default {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.user-row .avatar {
  width: 30px;
  height: 30px;
  flex-basis: 30px;
  font-size: 11px;
}
.user-row .un {
  font-size: 13px;
  font-weight: 500;
}
.user-row .ue {
  font-size: 11.5px;
  color: var(--ink-3);
  font-family: 'JetBrains Mono', monospace;
}
.user-row .badge {
  margin-left: auto;
  font-size: 10.5px;
  padding: 2px 7px;
  background: var(--panel-2);
  color: var(--ink-2);
  border-radius: 999px;
}
.user-row.admin .badge {
  background: var(--accent-soft);
  color: var(--accent-ink);
}
.user-row .default-tag {
  font-size: 10px;
  color: var(--accent-ink);
  margin-left: 6px;
  padding: 1px 5px;
  background: #fff;
  border-radius: 4px;
  border: 1px solid var(--accent);
}

.toast {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink);
  color: #fff;
  padding: 9px 14px;
  border-radius: 8px;
  font-size: 13px;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.18s,
    transform 0.18s;
  z-index: 60;
}
.toast.on {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.empty {
  text-align: center;
  padding: 36px 20px;
  color: var(--ink-3);
  font-size: 13px;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-thumb {
  background: var(--line-strong);
  border-radius: 999px;
  border: 2px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--ink-4);
}

.icon {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-sm {
  width: 13px;
  height: 13px;
  stroke-width: 1.7;
}
