@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');
:root {
  font-family:Manrope,system-ui,-apple-system,sans-serif;
  color:#20262a;
  background:#f7f8fa;
  font-synthesis:none;
  --accent:#b9ef5f;
  --muted:#8a929b;
  --line:#e9ecef
}

* {
  box-sizing:border-box
}

body {
  margin:0;
  font-size:13px
}

button,input,a {
  font:inherit
}

button,a {
  touch-action:manipulation
}

button {
  cursor:pointer
}

a {
  color:inherit;
  text-decoration:none
}

button {
  border:0
}

button:focus-visible,a:focus-visible,input:focus-visible {
  outline:3px solid #88b53e;
  outline-offset:3px
}

h1,h2,h3,p {
  margin:0
}

h1 {
  font-size:29px;
  letter-spacing:-1.2px;
  font-weight:800;
  line-height:1.35
}

h2 {
  font-size:16px;
  letter-spacing:-.35px
}

h3 {
  font-size:12px;
  margin:22px 0 12px
}

.muted {
  color:#858c95;
  line-height:1.75
}

.eyebrow {
  font-size:10px;
  font-weight:800;
  letter-spacing:1.8px;
  color:#8e979d;
  margin-bottom:9px
}

.brand {
  display:flex;
  align-items:center;
  gap:11px;
  font-size:18px;
  letter-spacing:-.5px;
  font-weight:500
}

.brand strong {
  font-weight:800
}

.brand-mark {
  width:33px;
  height:33px;
  display:grid;
  place-items:center;
  background:var(--accent);
  border-radius:10px;
  color:#20291b;
  font-weight:800;
  font-size:27px;
  line-height:1;
  padding-bottom:3px
}

.sidebar {
  width:232px;
  position:fixed;
  inset:0 auto 0 0;
  background:#1a2226;
  color:#f2f4f5;
  padding:32px 22px;
  display:flex;
  flex-direction:column
}

.sidebar-section {
  color:#727f86;
  font-size:9px;
  font-weight:800;
  letter-spacing:1.4px;
  margin:54px 11px 18px
}

.nav-item {
  display:flex;
  align-items:center;
  gap:12px;
  padding:13px 14px;
  border-radius:8px;
  font-weight:600
}

.nav-item.active {
  background:#2c363a;
  color:var(--accent)
}

.nav-item>span:first-child {
  font-size:18px;
  font-weight:400
}

.nav-count {
  margin-left:auto;
  background:#404d43;
  color:#c5ee8a;
  font-size:11px;
  padding:2px 7px;
  border-radius:5px
}

.sidebar-bottom {
  margin-top:auto;
  border-top:1px solid #303a3e;
  padding:22px 8px 0;
  font-size:11px;
  color:#d9dfe1
}

.sidebar-bottom small {
  display:block;
  margin:9px 0 0 13px;
  color:#77868d;
  font-size:10px
}

.status-dot {
  display:inline-block;
  width:6px;
  height:6px;
  border-radius:50%;
  background:#83b946;
  vertical-align:middle;
  margin-right:5px
}

.status-dot.bad {
  background:#d27b6e
}

.workspace {
  margin-left:232px
}

.topbar {
  height:76px;
  border-bottom:1px solid var(--line);
  background:#fff;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 42px;
  color:#949ba2;
  font-size:11px
}

.topbar strong {
  color:#495158;
  font-weight:600
}

.crumb {
  padding:0 14px;
  color:#d0d4d7
}

.quiet {
  background:transparent;
  color:#79818a;
  font-size:11px;
  padding:9px 4px;
  font-weight:600
}

.quiet:hover {
  color:#263233
}

.content {
  max-width:1510px;
  margin:auto;
  padding:43px 42px
}

.page-heading {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px
}

.page-heading .muted {
  margin-top:9px;
  font-size:12px
}

.primary {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:14px;
  background:var(--accent);
  color:#29321e;
  font-weight:800;
  font-size:11px;
  padding:13px 18px;
  border-radius:7px;
  white-space:nowrap;
  min-height:40px
}

.primary:hover {
  background:#a9df4e
}

.secondary {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:#f2f5ed;
  color:#4c5c33;
  border:1px solid #e2e8d8;
  padding:10px 14px;
  border-radius:6px;
  font-size:11px;
  font-weight:700
}

.full {
  width:100%
}

.stats {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:16px;
  margin:34px 0 29px
}

.stats>div {
  background:#fff;
  border:1px solid var(--line);
  border-radius:10px;
  padding:21px 22px
}

.stat-label {
  color:#8d949c;
  font-size:11px
}

.stats strong {
  display:block;
  font-size:29px;
  letter-spacing:-1px;
  margin:8px 0 9px;
  font-weight:700
}

.stats small {
  color:#969da4;
  font-size:10px
}

.stats .stat-port {
  font-size:25px;
  margin-top:12px
}

.stat-port span {
  font-size:12px;
  color:#a2a8af;
  margin-left:3px;
  letter-spacing:0;
  font-weight:500
}

.users-panel {
  border:1px solid var(--line);
  background:#fff;
  border-radius:10px;
  overflow:hidden
}

.panel-heading {
  padding:22px 24px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px
}

.panel-heading h2 span {
  display:inline-block;
  font-size:10px;
  padding:3px 7px;
  background:#f1f3f5;
  color:#8a939b;
  border-radius:5px;
  margin-left:8px;
  vertical-align:middle
}

.search {
  display:flex;
  align-items:center;
  gap:6px;
  border:1px solid #e8ebee;
  border-radius:6px;
  padding:7px 10px;
  color:#a0a8ae;
  font-size:17px
}

.search input {
  width:180px;
  background:transparent;
  border:0;
  outline:0;
  font-size:10px;
  color:#4f5960;
  padding:0
}

.search input::placeholder {
  color:#a4aab0
}

.table-scroll {
  overflow-x:auto
}

table {
  width:100%;
  border-collapse:collapse;
  text-align:left;
  white-space:nowrap
}

th {
  background:#fafbfc;
  border-block:1px solid #eef0f2;
  color:#969ea5;
  font-size:8px;
  font-weight:800;
  letter-spacing:1.1px;
  padding:13px 24px
}

td {
  padding:20px 24px;
  border-bottom:1px solid #f0f2f4
}

.user-cell {
  display:flex;
  align-items:center;
  gap:11px
}

.user-cell strong {
  font-size:11px;
  font-weight:700
}

.user-cell small {
  display:block;
  font-size:9px;
  color:#a0a6ad;
  margin-top:6px
}

.avatar {
  height:35px;
  width:35px;
  border:1px solid #dde8d2;
  border-radius:10px;
  background:#f0f5e9;
  display:grid;
  place-items:center;
  color:#6e814c;
  font-size:13px;
  font-weight:700
}

.badges {
  display:flex;
  gap:6px
}

.badge {
  font-size:9px;
  padding:4px 8px;
  border-radius:5px;
  font-weight:700
}

.badge.direct {
  background:#f0f2f4;
  color:#6a7783
}

.badge.warp {
  background:#fff1e0;
  color:#bd8d49
}

.badge.proton {
  background:#edeafa;
  color:#9182ba
}

.profile-count {
  font-size:12px;
  font-weight:600;
  color:#56616a
}

.state {
  font-size:9px;
  font-weight:600;
  color:#74944f;
  display:inline-flex;
  align-items:center;
  padding:5px 8px;
  border:1px solid #e7efdd;
  border-radius:5px;
  background:#f8fbf4
}

.state-generating,.state-queued {
  color:#a2833f;
  border-color:#f1e9d5;
  background:#fcfaf3
}

.state-generating .status-dot,.state-queued .status-dot {
  background:#c4a45b
}

.state-error {
  color:#b26961;
  background:#fcf5f3;
  border-color:#f0e2df
}

.state-error .status-dot {
  background:#bb7b70
}

.state .status-dot {
  width:4px;
  height:4px
}

.error-detail {
  display:block;
  max-width:200px;
  white-space:normal;
  font-size:9px;
  margin-top:7px
}

.row-actions {
  display:flex;
  gap:12px;
  align-items:center;
  justify-content:flex-end
}

.icon-button {
  display:grid;
  place-items:center;
  height:29px;
  width:29px;
  color:#8b969e;
  background:#fff;
  border:1px solid #e6eaed;
  border-radius:5px;
  font-size:18px
}

.icon-button:hover {
  background:#f4f7f1;
  color:#56722e
}

.panel-footer {
  display:flex;
  justify-content:space-between;
  gap:16px;
  padding:16px 24px;
  background:#fdfdfd;
  color:#a6adb3;
  font-size:9px
}

.bottom-note {
  display:flex;
  gap:12px;
  color:#a7afb5;
  font-size:9px;
  margin-top:21px
}

.bottom-note strong {
  font-weight:500;
  color:#818c94
}

.empty {
  text-align:center;
  padding:60px 20px 70px;
  border-top:1px solid var(--line)
}

.empty-symbol {
  display:inline-grid;
  place-items:center;
  width:54px;
  height:54px;
  background:#f1f6e9;
  color:#95aa73;
  border-radius:15px;
  font-size:29px;
  margin-bottom:20px
}

.empty h2 {
  font-size:19px;
  margin-bottom:12px
}

.empty p {
  color:#8a949b;
  line-height:1.9;
  font-size:12px;
  margin-bottom:22px
}

.error {
  color:#bd6a60
}

.notice {
  border:1px solid #eedbd7;
  background:#fff8f5;
  border-radius:8px;
  padding:13px 18px;
  margin-bottom:20px
}

dialog {
  width:min(530px,calc(100vw - 28px));
  max-height:90vh;
  border:1px solid #e4e8e9;
  border-radius:13px;
  padding:26px;
  box-shadow:0 20px 100px #101b2533;
  color:#20262a
}

dialog::backdrop {
  background:#1b242b66;
  backdrop-filter:blur(3px)
}

.dialog-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:18px
}

.dialog-heading h2 {
  font-size:21px
}

.close {
  background:#f3f5f5;
  border-radius:6px;
  color:#91999f;
  font-size:22px;
  width:29px;
  height:29px;
  line-height:1
}

.dialog-heading+.muted {
  font-size:11px;
  margin-bottom:20px
}

label {
  display:block;
  font-size:11px;
  font-weight:600
}

label>input:not([type=checkbox]),.subscription-box>input {
  display:block;
  width:100%;
  padding:11px 12px;
  border:1px solid #e1e6e8;
  border-radius:6px;
  margin-top:8px;
  color:#3b464d;
  background:#fff;
  font-size:12px
}

.group-options {
  margin-bottom:22px
}

.group-options>label {
  display:flex;
  align-items:center;
  gap:10px;
  border:1px solid #e9ecec;
  border-radius:7px;
  padding:13px 11px;
  margin-bottom:8px
}

.group-options input,.toggle-row input {
  accent-color:#7eb435;
  height:15px;
  width:15px;
  flex-shrink:0
}

.group-options strong {
  display:block;
  font-size:11px
}

.group-options small {
  display:block;
  font-size:9px;
  color:#939ca2;
  margin-top:5px;
  font-weight:400
}

.group-code {
  margin-left:auto;
  color:#a2abb1;
  font-size:8px;
  font-weight:400
}

.toggle-row {
  display:flex;
  align-items:center;
  gap:8px;
  margin-top:18px
}

.subscription-box {
  border-top:1px solid var(--line);
  margin-top:22px
}

.subscription-box>input {
  font-size:10px;
  background:#fafbfc;
  color:#89959e
}

.subscription-actions,.dialog-footer {
  display:flex;
  gap:10px;
  margin-top:12px
}

.dialog-footer {
  justify-content:space-between;
  border-top:1px solid var(--line);
  padding-top:12px;
  margin-top:22px
}

#toast {
  position:fixed;
  bottom:28px;
  left:50%;
  transform:translate(-50%,12px);
  background:#25342a;
  color:#e7f0df;
  padding:13px 22px;
  border-radius:8px;
  box-shadow:0 6px 26px #15241a26;
  opacity:0;
  pointer-events:none;
  transition:opacity .2s,transform .2s;
  z-index:20;
  font-size:12px
}

#toast.visible {
  opacity:1;
  transform:translate(-50%,0)
}

.login-page {
  min-height:100vh;
  display:grid;
  place-items:center;
  background:radial-gradient(ellipse at 20% 10%,#e9f3d9,transparent 50%),#f7f8fa;
  padding:24px
}

.login-card {
  width:410px;
  max-width:100%;
  border:1px solid #e4e9e1;
  background:#fff;
  border-radius:15px;
  padding:38px;
  box-shadow:0 18px 75px #263d1610
}

.login-card .brand {
  margin-bottom:43px
}

.login-card h1 {
  font-size:25px;
  margin-bottom:10px
}

.login-card .muted {
  font-size:11px
}

.login-card form {
  margin-top:28px
}

.login-card label {
  margin-bottom:17px
}

.login-card .primary {
  width:100%;
  justify-content:space-between;
  margin-top:8px
}

.login-card .error {
  font-size:11px;
  margin-bottom:10px
}

.login-footer {
  border-top:1px solid var(--line);
  padding-top:23px;
  margin-top:32px;
  font-size:10px;
  color:#9ba69d
}

@media(min-width:1600px) {
  .content {
    padding-top:55px
  }

  .stats {
    margin-top:42px
  }

  .stats>div {
    padding:25px
  }

  .stats strong {
    margin-top:11px
  }

  td {
    padding-block:24px
  }

}

@media(max-width:1150px) {
  .sidebar {
    width:190px;
    padding-inline:15px
  }

  .workspace {
    margin-left:190px
  }

  .topbar {
    padding-inline:26px
  }

  .content {
    padding:32px 26px
  }

  .page-heading h1 {
    font-size:25px
  }

  .stats {
    gap:10px
  }

  .stats>div {
    padding:18px 15px
  }

  td,th {
    padding-inline:16px
  }

  .group-code {
    display:none
  }

}

@media(max-width:800px) {
  .sidebar {
    width:66px;
    padding:23px 13px
  }

  .sidebar .brand>span:last-child,.sidebar-section,.nav-item,.sidebar-bottom {
    display:none
  }

  .workspace {
    margin-left:66px
  }

  .topbar {
    height:60px;
    padding-inline:20px
  }

  .content {
    padding:29px 20px
  }

  .page-heading {
    align-items:flex-start;
    flex-direction:column
  }

  .page-heading h1 {
    font-size:25px
  }

  .stats {
    grid-template-columns:repeat(2,minmax(0,1fr));
    margin-block:24px
  }

  .stats strong {
    font-size:25px
  }

  .panel-heading {
    padding:18px 15px
  }

  .search input {
    width:130px
  }

  .panel-footer {
    padding:14px 15px;
    flex-direction:column;
    gap:6px
  }

  .bottom-note {
    flex-direction:column;
    gap:5px
  }

  .topbar>span {
    font-size:10px
  }

  .crumb {
    padding-inline:7px
  }

  dialog {
    padding:21px
  }

}


.pool-panel {
  margin-bottom: 24px;
}

.pool-summary {
  color: #858c95;
  font-size: 11px;
  padding: 0 24px 18px;
}

.pool-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 24px 18px;
}

button:disabled {
  opacity: .55;
  cursor: default;
}
