:root {
  --bg: #ffffff;
  --bg-soft: #f7f8f7;
  --bg-subtle: #eff1f0;
  --border: #dfe3e1;
  --border-strong: #bfc6c2;

  --ink: #1a1c1b;
  --ink-dim: #4c5250;
  --ink-muted: #595f5d;

  --ks-logo: #028858;
  --ks-bar: #028858;
  --ks-teal: #026e47;
  --ks-btn: #028858;
  --ks-btn-hover: #016f47;
  --ks-soft: #e6f6ef;

  --amber: #854d0e;
  --amber-soft: #fef9c3;
  --amber-border: #eab308;

  --red: #b91c1c;
  --red-soft: #fff5f5;
  --red-border: #f87171;

  --font-display: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-sans: 'Golos Text', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, monospace;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

a {
  color: var(--ks-teal);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

button, input, textarea {
  font-family: inherit;
}

button:focus {
  outline: none;
}

button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--ks-btn);
  outline-offset: 2px;
}

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

/* =========================================================
   VECTOR ICONS
   ========================================================= */
.ico {
  display: inline-block;
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  background-color: currentColor;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.ico-sm { width: 15px; height: 15px; flex: 0 0 15px; }
.ico-lg { width: 19px; height: 19px; flex: 0 0 19px; }

.ico-search {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E");
}
.ico-plus {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E");
}
.ico-rocket {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09z'/%3E%3Cpath d='m12 15-3-3a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.35 22.35 0 0 1-4 2z'/%3E%3Cpath d='M9 12H4s.55-3.03 2-4c1.62-1.08 5 0 5 0'/%3E%3Cpath d='M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09z'/%3E%3Cpath d='m12 15-3-3a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.35 22.35 0 0 1-4 2z'/%3E%3Cpath d='M9 12H4s.55-3.03 2-4c1.62-1.08 5 0 5 0'/%3E%3Cpath d='M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5'/%3E%3C/svg%3E");
}
.ico-wallet {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 7V4a1 1 0 0 0-1-1H5a2 2 0 0 0 0 4h15a1 1 0 0 1 1 1v4h-3a2 2 0 0 0 0 4h3a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1'/%3E%3Cpath d='M3 5v14a2 2 0 0 0 2 2h15a1 1 0 0 0 1-1v-4'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 7V4a1 1 0 0 0-1-1H5a2 2 0 0 0 0 4h15a1 1 0 0 1 1 1v4h-3a2 2 0 0 0 0 4h3a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1'/%3E%3Cpath d='M3 5v14a2 2 0 0 0 2 2h15a1 1 0 0 0 1-1v-4'/%3E%3C/svg%3E");
}
.ico-switch {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m16 3 4 4-4 4'/%3E%3Cpath d='M20 7H4'/%3E%3Cpath d='m8 21-4-4 4-4'/%3E%3Cpath d='M4 17h16'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m16 3 4 4-4 4'/%3E%3Cpath d='M20 7H4'/%3E%3Cpath d='m8 21-4-4 4-4'/%3E%3Cpath d='M4 17h16'/%3E%3C/svg%3E");
}
.ico-logout {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4'/%3E%3Cpolyline points='16 17 21 12 16 7'/%3E%3Cline x1='21' x2='9' y1='12' y2='12'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4'/%3E%3Cpolyline points='16 17 21 12 16 7'/%3E%3Cline x1='21' x2='9' y1='12' y2='12'/%3E%3C/svg%3E");
}
.ico-copy {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='14' height='14' x='8' y='8' rx='2'/%3E%3Cpath d='M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='14' height='14' x='8' y='8' rx='2'/%3E%3Cpath d='M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2'/%3E%3C/svg%3E");
}
.ico-check {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
}
.ico-link {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 3h6v6'/%3E%3Cpath d='M10 14 21 3'/%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 3h6v6'/%3E%3Cpath d='M10 14 21 3'/%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/%3E%3C/svg%3E");
}
.ico-refresh {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8'/%3E%3Cpath d='M21 3v5h-5'/%3E%3Cpath d='M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16'/%3E%3Cpath d='M8 16H3v5'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8'/%3E%3Cpath d='M21 3v5h-5'/%3E%3Cpath d='M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16'/%3E%3Cpath d='M8 16H3v5'/%3E%3C/svg%3E");
}
.ico-heart {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z'/%3E%3C/svg%3E");
}
.ico-download {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/%3E%3Cpolyline points='7 10 12 15 17 10'/%3E%3Cline x1='12' x2='12' y1='15' y2='3'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/%3E%3Cpolyline points='7 10 12 15 17 10'/%3E%3Cline x1='12' x2='12' y1='15' y2='3'/%3E%3C/svg%3E");
}
.ico-refund {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8'/%3E%3Cpath d='M3 3v5h5'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8'/%3E%3Cpath d='M3 3v5h5'/%3E%3C/svg%3E");
}
.ico-users {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M22 21v-2a4 4 0 0 0-3-3.87'/%3E%3Cpath d='M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M22 21v-2a4 4 0 0 0-3-3.87'/%3E%3Cpath d='M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E");
}
.ico-user {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E");
}
.ico-clock {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpolyline points='12 6 12 12 16 14'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpolyline points='12 6 12 12 16 14'/%3E%3C/svg%3E");
}
.ico-target {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Ccircle cx='12' cy='12' r='6'/%3E%3Ccircle cx='12' cy='12' r='2'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Ccircle cx='12' cy='12' r='6'/%3E%3Ccircle cx='12' cy='12' r='2'/%3E%3C/svg%3E");
}
.ico-grid {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='7' height='7' x='3' y='3' rx='1'/%3E%3Crect width='7' height='7' x='14' y='3' rx='1'/%3E%3Crect width='7' height='7' x='14' y='14' rx='1'/%3E%3Crect width='7' height='7' x='3' y='14' rx='1'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='7' height='7' x='3' y='3' rx='1'/%3E%3Crect width='7' height='7' x='14' y='3' rx='1'/%3E%3Crect width='7' height='7' x='14' y='14' rx='1'/%3E%3Crect width='7' height='7' x='3' y='14' rx='1'/%3E%3C/svg%3E");
}
.ico-sliders {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='4' x2='4' y1='21' y2='14'/%3E%3Cline x1='4' x2='4' y1='10' y2='3'/%3E%3Cline x1='12' x2='12' y1='21' y2='12'/%3E%3Cline x1='12' x2='12' y1='8' y2='3'/%3E%3Cline x1='20' x2='20' y1='21' y2='16'/%3E%3Cline x1='20' x2='20' y1='12' y2='3'/%3E%3Cline x1='2' x2='6' y1='14' y2='14'/%3E%3Cline x1='10' x2='14' y1='8' y2='8'/%3E%3Cline x1='18' x2='22' y1='16' y2='16'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='4' x2='4' y1='21' y2='14'/%3E%3Cline x1='4' x2='4' y1='10' y2='3'/%3E%3Cline x1='12' x2='12' y1='21' y2='12'/%3E%3Cline x1='12' x2='12' y1='8' y2='3'/%3E%3Cline x1='20' x2='20' y1='21' y2='16'/%3E%3Cline x1='20' x2='20' y1='12' y2='3'/%3E%3Cline x1='2' x2='6' y1='14' y2='14'/%3E%3Cline x1='10' x2='14' y1='8' y2='8'/%3E%3Cline x1='18' x2='22' y1='16' y2='16'/%3E%3C/svg%3E");
}
.ico-play {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpolygon points='6 3 20 12 6 21 6 3'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpolygon points='6 3 20 12 6 21 6 3'/%3E%3C/svg%3E");
}
.ico-trophy {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9H4.5a2.5 2.5 0 0 1 0-5H6'/%3E%3Cpath d='M18 9h1.5a2.5 2.5 0 0 0 0-5H18'/%3E%3Cpath d='M4 22h16'/%3E%3Cpath d='M10 14.66V17c0 .55-.47.98-.97 1.21C7.85 18.75 7 20.24 7 22'/%3E%3Cpath d='M14 14.66V17c0 .55.47.98.97 1.21C16.15 18.75 17 20.24 17 22'/%3E%3Cpath d='M18 2H6v7a6 6 0 0 0 12 0V2Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9H4.5a2.5 2.5 0 0 1 0-5H6'/%3E%3Cpath d='M18 9h1.5a2.5 2.5 0 0 0 0-5H18'/%3E%3Cpath d='M4 22h16'/%3E%3Cpath d='M10 14.66V17c0 .55-.47.98-.97 1.21C7.85 18.75 7 20.24 7 22'/%3E%3Cpath d='M14 14.66V17c0 .55.47.98.97 1.21C16.15 18.75 17 20.24 17 22'/%3E%3Cpath d='M18 2H6v7a6 6 0 0 0 12 0V2Z'/%3E%3C/svg%3E");
}
.ico-activity {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2'/%3E%3C/svg%3E");
}

/* =========================================================
   HEADER
   ========================================================= */
.ks-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.ks-header-inner {
  max-width: 1120px;
  margin: 0 auto;
  height: 68px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.ks-logo {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ks-logo);
  text-transform: uppercase;
  white-space: nowrap;
}

.ks-search {
  flex: 1;
  max-width: 360px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--bg);
  padding: 4px 5px 4px 14px;
  color: var(--ink-dim);
  transition: border-color 0.14s ease;
}

.ks-search:focus-within {
  border-color: var(--ink);
  color: var(--ink);
}

.ks-search-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 14px;
  color: var(--ink);
  min-width: 0;
  outline: none;
}

.ks-search-input::placeholder {
  color: var(--ink-muted);
}

.ks-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease;
}

.icon-btn:hover:not(:disabled) {
  background: var(--bg-subtle);
  border-color: var(--ink);
}

.icon-btn:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.icon-btn-round {
  width: 38px;
  padding: 0;
}

.icon-btn-green {
  background: var(--ks-btn);
  border-color: var(--ks-btn);
  color: #ffffff;
}

.icon-btn-green:hover:not(:disabled) {
  background: var(--ks-btn-hover);
  border-color: var(--ks-btn-hover);
}

.ks-wallet-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 13px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink);
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid var(--border-strong);
  background: var(--bg);
  color: var(--ink);
  cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease, opacity 0.12s ease;
}

.btn:hover:not(:disabled) {
  border-color: var(--ink);
  background: var(--bg-soft);
}

.btn:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--ks-btn);
  border-color: var(--ks-btn);
  color: #ffffff;
}

.btn-primary:hover:not(:disabled) {
  background: var(--ks-btn-hover);
  border-color: var(--ks-btn-hover);
  color: #ffffff;
}

.btn-ks-cta {
  width: 100%;
  height: 48px;
  font-size: 16px;
}

.btn-sm {
  padding: 8px 14px;
  font-size: 13.5px;
}

.btn-amber {
  border-color: var(--amber-border);
  color: var(--amber);
  background: var(--amber-soft);
}

.btn-amber:hover:not(:disabled) {
  background: #ca8a04;
  border-color: #ca8a04;
  color: #ffffff;
}

.btn-danger {
  border-color: var(--red-border);
  color: var(--red);
  background: var(--bg);
}

.btn-danger:hover:not(:disabled) {
  border-color: var(--red);
  background: var(--red);
  color: #ffffff;
}

/* =========================================================
   NOTIFICATIONS
   ========================================================= */
.banner-wrap {
  max-width: 1040px;
  margin: 16px auto 0;
  padding: 0 24px;
}

.banner {
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  word-break: break-word;
}

.banner-info { background: var(--bg-soft); color: var(--ink); }
.banner-success { background: var(--ks-soft); border-color: #86efac; color: #065f46; }
.banner-error { background: var(--red-soft); border-color: var(--red-border); color: var(--red); }

/* =========================================================
   HERO: AUTHENTIC KICKSTARTER TWO-COLUMN STAGE
   ========================================================= */
.ks-hero {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
  padding: 38px 24px 44px;
}

.ks-hero-inner {
  max-width: 1040px;
  margin: 0 auto;
}

.ks-title-block {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 32px;
}

.ks-title {
  margin: 0;
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--ink);
}

.ks-subtitle {
  margin: 10px 0 0;
  font-size: 17px;
  color: var(--ink-dim);
  white-space: pre-wrap;
}

.ks-hero-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.48fr) minmax(320px, 1fr);
  gap: 38px;
  align-items: start;
}

/* Left Column: Clean 16:9 Studio Cover + Meta Bar */
.ks-media-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ks-cover-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-subtle);
}

.ks-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ks-cover-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #ffffff;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.14);
}

.ks-cover-badge.status-active { color: var(--ks-teal); }
.ks-cover-badge.status-claimable { color: var(--amber); }
.ks-cover-badge.status-refundable { color: var(--red); }

.ks-media-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.ks-media-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.ks-icon-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ks-creator-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  color: var(--ink-dim);
}

.avatar-dot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
  flex: 0 0 30px;
}

.stage-deadline-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  color: var(--ink-dim);
}

/* Right Column: Clean Pledge Action Column */
.ks-pledge {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ks-bar-track {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: var(--border);
  overflow: hidden;
}

.ks-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--ks-bar);
  transition: width 0.3s ease;
}

.ks-raised-block {
  margin-top: 16px;
}

.ks-raised-num {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ks-teal);
  word-break: break-all;
}

.ks-goal-sub {
  margin-top: 4px;
  font-size: 14px;
  color: var(--ink-dim);
  display: flex;
  align-items: center;
  gap: 6px;
}

.ks-stats-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 14px 0;
  margin-top: 8px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* Progress Overview Strip inside Backers Tab */
.progress-strip {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 32px;
  padding-bottom: 28px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.progress-strip-gauge {
  display: flex;
  align-items: center;
  gap: 18px;
}

.donut-svg {
  width: 88px;
  height: 88px;
  flex: 0 0 88px;
}

.progress-strip-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.progress-strip-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}

.progress-strip-sub {
  font-size: 14px;
  color: var(--ink-dim);
}

/* 3-Step Visual Lifecycle Stepper */
.stepper {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 8px;
}

.step-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  text-align: center;
}

.step-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid var(--border-strong);
  background: var(--bg-soft);
  color: var(--ink-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.step-node.done .step-circle {
  border-color: var(--ks-bar);
  background: var(--ks-bar);
  color: #ffffff;
}

.step-node.current .step-circle {
  border-color: var(--ks-btn);
  background: var(--ks-soft);
  color: var(--ks-teal);
}

.step-node.failed .step-circle {
  border-color: var(--red);
  background: var(--red-soft);
  color: var(--red);
}

.step-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-dim);
}

.step-node.done .step-label,
.step-node.current .step-label {
  color: var(--ink);
}

.step-node.failed .step-label {
  color: var(--red);
}

.step-line {
  height: 3px;
  width: 100%;
  min-width: 24px;
  border-radius: 999px;
  background: var(--border);
  margin-bottom: 22px;
}

.step-line.done { background: var(--ks-bar); }
.step-line.failed { background: var(--red-border); }

.ks-stat-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ks-stat-icon {
  color: var(--ink-dim);
}

.ks-stat-val {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.15;
  color: var(--ink);
}

.ks-stat-val.expired {
  color: var(--red);
}

.ks-stat-sub {
  margin-top: 4px;
  font-size: 13.5px;
  color: var(--ink-dim);
}

/* Quick-Pick Preset Chips */
.preset-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.preset-chip {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}

.preset-chip:hover {
  border-color: var(--ks-btn);
  background: var(--ks-soft);
  color: var(--ks-teal);
}

.preset-chip-accent {
  border-color: var(--ks-btn);
  color: var(--ks-teal);
  background: var(--ks-soft);
  font-family: var(--font-sans);
  font-weight: 600;
}

.ks-pledge-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ks-wei-box {
  position: relative;
  display: flex;
  align-items: center;
}

.ks-wei-box .field-input {
  height: 46px;
  padding-right: 48px;
  border-radius: 6px;
}

.ks-wei-suffix {
  position: absolute;
  right: 14px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-muted);
  pointer-events: none;
}

.ks-action-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.ks-micro-hint {
  margin: 2px 0 0;
  font-size: 13.5px;
  color: var(--ink-dim);
}

/* =========================================================
   TABS BAR
   ========================================================= */
.ks-tabs {
  position: sticky;
  top: 68px;
  z-index: 20;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.ks-tabs-inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.ks-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  padding: 16px 2px;
  margin-bottom: -1px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-dim);
  cursor: pointer;
}

.ks-tab:focus-visible {
  outline: none;
  color: var(--ks-btn);
}

.ks-tab:hover {
  color: var(--ink);
}

.ks-tab.active {
  color: var(--ink);
  font-weight: 600;
  border-bottom-color: var(--ks-btn);
}

.ks-tab-num {
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--bg-subtle);
  font-size: 13px;
  color: var(--ink-dim);
}

.ks-tab.active .ks-tab-num {
  background: var(--ks-soft);
  color: var(--ks-teal);
}

/* =========================================================
   FLAT CLEAN BODY (No Cardocalypse / No Nested Cards)
   ========================================================= */
.ks-main {
  max-width: 1040px;
  margin: 0 auto;
  padding: 36px 24px 72px;
}

/* Backers Flat Divided List with Proportional Share Fill */
.backer-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border);
}

.backer-row {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  padding: 16px 14px;
}

.backer-share-bg {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  background: rgba(2, 136, 88, 0.07);
  pointer-events: none;
  transition: width 0.3s ease;
}

.backer-row.refunded .backer-share-bg {
  background: rgba(185, 28, 28, 0.05);
}

.backer-content {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.backer-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.backer-addr {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}

.backer-share-txt {
  font-size: 13px;
  color: var(--ink-dim);
}

.backer-right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.backer-amount {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.pill-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
}

.pill-ok { background: var(--ks-soft); color: var(--ks-teal); }
.pill-claim { background: var(--amber-soft); color: var(--amber); }
.pill-refund { background: var(--red-soft); color: var(--red); }

/* On-Chain Events Timeline (Flat Divided List) */
.event-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border);
}

.event-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 8px;
  border-bottom: 1px solid var(--border);
}

.event-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.event-icon-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 38px;
}

.event-ico-backed { background: var(--ks-soft); color: var(--ks-teal); }
.event-ico-claimed { background: var(--amber-soft); color: var(--amber); }
.event-ico-refunded { background: var(--red-soft); color: var(--red); }

.event-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.event-title-line {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.event-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.event-sub {
  font-size: 13.5px;
  color: var(--ink-dim);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

.event-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.tag-me {
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  background: var(--ink);
  color: #ffffff;
}

/* Empty State */
.empty-visual {
  border: 1px dashed var(--border-strong);
  border-radius: 10px;
  padding: 44px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--ink-dim);
  font-size: 15px;
}

.empty-visual-ico {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--ks-soft);
  color: var(--ks-teal);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Projects Grid (Kickstarter Studio Photography Cards) */
.explore-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 22px;
}

.explore-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0;
  overflow: hidden;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: border-color 0.14s ease, transform 0.14s ease;
}

.explore-card:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
}

.explore-card.active {
  border-color: var(--ks-btn);
}

.explore-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-subtle);
}

.explore-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.explore-body {
  padding: 18px 20px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
}

.explore-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
}

.explore-desc {
  font-size: 14.5px;
  color: var(--ink-dim);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 6px;
}

.explore-addr {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-muted);
}

/* Contract Methods (Zero side-tab stripes — Clean Flat Divided Lists!) */
.inspector-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.inspector-col {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border);
}

.method-row {
  border-bottom: 1px solid var(--border);
  padding: 14px 4px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.method-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.method-name-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.method-name {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.method-kind {
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  background: var(--bg-subtle);
  color: var(--ink-dim);
}

.method-kind-write {
  background: var(--amber-soft);
  color: var(--amber);
}

.method-out {
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 10px 12px;
  border-radius: 6px;
  background: var(--ks-soft);
  color: var(--ks-teal);
  word-break: break-all;
  white-space: pre-wrap;
}

.method-out.error {
  background: var(--red-soft);
  color: var(--red);
}

.log-box {
  margin-top: 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px;
  background: var(--bg-soft);
}

.log-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-dim);
  margin-bottom: 10px;
}

.log-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 240px;
  overflow-y: auto;
  font-family: var(--font-mono);
  font-size: 13px;
}

.log-item {
  padding: 9px 11px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  word-break: break-all;
}

.log-item.error {
  border-color: var(--red-border);
  color: var(--red);
  background: var(--red-soft);
}

/* Inputs & Modals */
.input-row {
  display: flex;
  gap: 8px;
}

.field-input, .field-textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid var(--border-strong);
  background: var(--bg);
  color: var(--ink);
  font-size: 14.5px;
}

.field-input::placeholder, .field-textarea::placeholder {
  color: var(--ink-muted);
}

.field-input:focus, .field-textarea:focus {
  border-color: var(--ink);
}

.field-textarea {
  min-height: 84px;
  resize: vertical;
}

.action-hint {
  margin: 0;
  font-size: 14.5px;
  color: var(--ink-dim);
}

/* Empty Page */
.ks-empty {
  max-width: 520px;
  margin: 88px auto;
  padding: 0 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.ks-empty h1 {
  margin: 0;
  font-size: 32px;
  font-weight: 700;
}

.ks-empty-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

/* Modal (Shadow ONLY — no conflicting hairline border) */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(20, 24, 22, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-card {
  width: 100%;
  max-width: 460px;
  background: var(--bg);
  border-radius: 12px;
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.22);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.modal-head h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-dim);
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

/* Responsive */
@media (max-width: 900px) {
  .ks-header-inner {
    flex-wrap: wrap;
    height: auto;
    padding: 12px 16px;
  }
  .ks-search {
    order: 3;
    max-width: 100%;
    flex-basis: 100%;
  }
  .ks-hero-columns,
  .progress-strip,
  .inspector-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .ks-tabs {
    top: 0;
  }
}
