/* ======================================================================
   Pride Panel 2026 — shared design system
   Geist Sans + Geist Mono, graphite surfaces, oklch accents
   ====================================================================== */

:root{
  --accent-amber: oklch(0.78 0.15 78);
  --accent-amber-soft: oklch(0.78 0.15 78 / 0.14);
  --accent-amber-line: oklch(0.78 0.15 78 / 0.30);

  --accent-violet: oklch(0.72 0.17 295);
  --accent-violet-soft: oklch(0.72 0.17 295 / 0.14);
  --accent-violet-line: oklch(0.72 0.17 295 / 0.30);

  --accent-mint: oklch(0.80 0.14 165);
  --accent-mint-soft: oklch(0.80 0.14 165 / 0.14);
  --accent-mint-line: oklch(0.80 0.14 165 / 0.30);

  --accent-crimson: oklch(0.70 0.18 25);
  --accent-crimson-soft: oklch(0.70 0.18 25 / 0.14);
  --accent-crimson-line: oklch(0.70 0.18 25 / 0.30);

  --accent: var(--accent-amber);
  --accent-soft: var(--accent-amber-soft);
  --accent-line: var(--accent-amber-line);

  --bg-0: #0a0b0d;
  --bg-1: #0f1114;
  --bg-2: #15181c;
  --bg-3: #1b1f24;
  --line: #24282e;
  --line-soft: #1a1d21;

  --ink-0: #f5f6f7;
  --ink-1: #c9ccd1;
  --ink-2: #8a8f96;
  --ink-3: #5b6068;
  --ink-4: #3a3e44;

  --pos: oklch(0.80 0.14 165);
  --neg: oklch(0.70 0.18 25);
  --warn: oklch(0.80 0.15 85);

  --radius: 10px;
  --radius-sm: 6px;
  --radius-lg: 14px;

  --row: 44px;

  --font-sans: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'Geist Mono', 'SF Mono', Menlo, monospace;
}

body[data-density="compact"]{ --row: 36px; }
body[data-density="spacious"]{ --row: 52px; }

[data-surface="ink"]{
  --bg-0:#060708; --bg-1:#0b0c0e; --bg-2:#101215; --bg-3:#161a1f;
  --line:#20242a; --line-soft:#14171b;
}
[data-surface="paper"]{
  --bg-0:#f3f2ee; --bg-1:#ffffff; --bg-2:#ffffff; --bg-3:#faf9f6;
  --line:#e4e1da; --line-soft:#ecebe5;
  --ink-0:#14140f; --ink-1:#2c2c26; --ink-2:#6e6e66; --ink-3:#9b9b91; --ink-4:#c8c6be;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin:0; padding:0; }
body{
  font-family: var(--font-sans);
  background: var(--bg-0);
  color: var(--ink-1);
  font-size: 13px;
  line-height: 1.45;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
a{ color: inherit; text-decoration: none; }
button{ font: inherit; color: inherit; background: none; border:0; cursor: pointer; }

/* ============== LAYOUT ============== */
.app{
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}
body[data-sidebar="rail"] .app{ grid-template-columns: 64px 1fr; }
body[data-sidebar="hidden"] .app{ grid-template-columns: 0 1fr; }
body[data-sidebar="hidden"] .sidebar{ display:none; }

/* ============== SIDEBAR ============== */
.sidebar{
  background: var(--bg-1);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  transition: width .25s ease;
}
.sidebar .brand{
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 18px;
  overflow: hidden;
}
.sidebar .brand .mark{
  width: 32px; height: 32px;
  flex-shrink: 0;
  background: var(--accent);
  border-radius: 7px;
  display:grid;
  place-items:center;
  color: #0a0b0d;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -0.02em;
}
.sidebar .brand .wm{
  font-weight: 600;
  font-size: 14.5px;
  color: var(--ink-0);
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.sidebar .brand .wm small{
  display: block;
  font-weight: 400;
  font-size: 11.5px;
  color: var(--ink-3);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 2px;
}
body[data-sidebar="rail"] .sidebar .wm{ display:none; }

.nav-group{ padding: 16px 12px 8px; }
.nav-label{
  font-family: var(--font-mono);
  text-transform: uppercase;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--ink-3);
  padding: 4px 12px 10px;
}
body[data-sidebar="rail"] .nav-label{ display:none; }

.nav-item{
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--ink-2);
  font-size: 14.5px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  position: relative;
}
.nav-item i{ font-size: 19px; width: 22px; text-align: center; flex-shrink: 0; }
.nav-item:hover{ background: var(--bg-2); color: var(--ink-0); }
.nav-item.active{
  background: var(--accent-soft);
  color: var(--ink-0);
}
.nav-item.active::before{
  content:'';
  position:absolute;
  left: -10px;
  top: 9px; bottom: 9px;
  width: 2px;
  background: var(--accent);
  border-radius: 2px;
}
.nav-item .badge{
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 10px;
  background: var(--bg-3);
  color: var(--ink-1);
  padding: 1px 6px;
  border-radius: 10px;
  border: 1px solid var(--line);
}
body[data-sidebar="rail"] .nav-item .badge{ display:none; }
body[data-sidebar="rail"] .nav-item .lbl{ display:none; }
body[data-sidebar="rail"] .nav-item{ justify-content: center; padding: 10px; }

.sidebar-footer{
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding: 12px;
}
.user-chip{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px;
  border-radius: 8px;
  cursor: pointer;
}
.user-chip:hover{ background: var(--bg-2); }
.user-chip .av{
  width: 42px; height: 42px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent) 0%, oklch(0.50 0.10 78) 100%);
  display: grid;
  place-items: center;
  font-weight: 600;
  font-size: 13px;
  color: #0a0b0d;
  flex-shrink: 0;
}
.user-chip .meta{ overflow:hidden; flex:1; min-width: 0; }
.user-chip .meta .n{ font-size: 15.5px; color: var(--ink-0); font-weight: 600; overflow:hidden; text-overflow:ellipsis; letter-spacing:-.01em; }
.user-chip .meta .s{ font-size: 13px; color: var(--ink-3); font-family: var(--font-mono); margin-top: 2px; }
body[data-sidebar="rail"] .user-chip .meta, body[data-sidebar="rail"] .user-chip .chv{ display:none; }
.user-chip .chv{ color: var(--ink-3); font-size: 14px; }

/* ============== MAIN ============== */
.main{
  min-width: 0;
  background: var(--bg-0);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.topbar{
  height: 64px;
  border-bottom: 1px solid var(--line);
  padding: 0 28px;
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-0);
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: blur(10px);
}
.crumbs{
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.crumbs b{ color: var(--ink-0); font-weight: 500; }
.crumbs i{ font-size: 12px; }
.crumbs a:hover{ color: var(--ink-0); }

.server-pill{
  margin-left: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 28px;
  padding: 0 10px 0 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  font-size: 11.5px;
  color: var(--ink-1);
  background: var(--bg-1);
}
.server-pill .dot{
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--pos);
  box-shadow: 0 0 0 3px oklch(0.80 0.14 165 / 0.18);
}
.server-pill b{ color: var(--ink-0); font-weight: 500; }
.server-pill span{ color: var(--ink-3); font-family: var(--font-mono); }

.topbar .spacer{ flex: 1; }

.search{
  display: flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 10px;
  width: 240px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink-2);
}
.search input{
  background: none; border: 0; outline: 0;
  color: var(--ink-0);
  flex: 1;
  font: inherit;
  font-size: 12.5px;
}
.search kbd{
  font-family: var(--font-mono);
  font-size: 10px;
  background: var(--bg-2);
  color: var(--ink-3);
  padding: 1px 5px;
  border-radius: 3px;
  border: 1px solid var(--line);
}

.icon-btn{
  width: 32px; height: 32px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--ink-2);
  border: 1px solid transparent;
  position: relative;
}
.icon-btn:hover{ background: var(--bg-1); border-color: var(--line); color: var(--ink-0); }
.icon-btn .pulse{
  position: absolute;
  top: 7px; right: 7px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg-0);
}

.theme-toggle .t-light{ display:none; }
.theme-toggle .t-dark{ display:inline; }
[data-surface="paper"] .theme-toggle .t-light{ display:inline; }
[data-surface="paper"] .theme-toggle .t-dark{ display:none; }

.lang{
  display: flex; align-items: center; gap: 6px;
  padding: 0 10px; height: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink-1);
  font-size: 12px;
}
.lang b{ font-weight: 500; }
.lang i{ font-size: 14px; color: var(--ink-3); }

/* ============== CONTENT ============== */
.content{
  padding: 28px;
  width: 100%;
  box-sizing: border-box;
  flex: 1 0 auto;
}

.page-head{
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}
.page-head h1{
  margin: 0;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink-0);
}
.page-head .sub{
  margin-top: 4px;
  font-size: 13px;
  color: var(--ink-2);
}
.page-head .sub b{ color: var(--ink-0); font-weight: 500; }

.time-chip{
  display: inline-flex; align-items:center; gap: 8px;
  padding: 0 10px; height: 28px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-2);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.time-chip .dot{ width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }

/* ============== GRID ============== */
.grid{
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.grid-3{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}
.grid-4{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}
.grid-full{ display:grid; grid-template-columns: 1fr; gap: 16px; margin-bottom: 16px; }

/* ============== CARDS ============== */
.card{
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.card-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px 12px;
  border-bottom: 1px solid var(--line-soft);
}
.card-head .t{
  display: flex; align-items: center; gap: 8px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-0);
  letter-spacing: -0.005em;
}
.card-head .t i{ color: var(--ink-3); font-size: 14px; }
.card-head .t .sub-count{ color:var(--ink-3); font-weight:400; margin-left:6px; font-family:var(--font-mono); font-size:11px; }
.card-head .act{ display: flex; gap: 4px; }
.card-head .act a{
  font-size: 11px;
  color: var(--ink-3);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 8px;
  border-radius: 5px;
  cursor: pointer;
}
.card-head .act a:hover{ color: var(--ink-0); background: var(--bg-2); }
.card-head .act a.on{ color: var(--ink-0); background: var(--bg-2); }
.card-body{ padding: 4px 0; }
.card-body.pad{ padding: 18px; }

/* ============== BUTTONS ============== */
.btn{
  height: 36px;
  padding: 0 14px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  letter-spacing: -0.005em;
  cursor: pointer;
  transition: transform .1s ease, background .15s ease, filter .15s ease;
  white-space: nowrap;
}
.btn:active{ transform: translateY(1px); }
.btn-primary{
  background: var(--accent);
  color: #0a0b0d;
  font-weight: 600;
}
.btn-primary:hover{ filter: brightness(1.08); }
.btn-ghost{
  background: var(--bg-2);
  border-color: var(--line);
  color: var(--ink-0);
}
.btn-ghost:hover{ background: var(--bg-3); }
.btn-link{
  background: transparent;
  color: var(--ink-1);
  height: 28px;
  padding: 0 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.btn-sm{ height: 28px; padding: 0 10px; font-size: 11.5px; }
.btn-lg{ height: 44px; padding: 0 18px; font-size: 13.5px; }
.btn i{ font-size: 15px; }

/* ============== KV DATA ROWS ============== */
.kv{ display: grid; grid-template-columns: 1fr 1fr; }
.kv.single{ grid-template-columns: 1fr; }
.kv .row{
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 18px;
  height: var(--row);
  border-top: 1px solid var(--line-soft);
  font-size: 12.5px;
}
.kv.single .row:first-child{ border-top: 0; }
.kv .row:nth-child(1), .kv .row:nth-child(2){ border-top: 0; }
.kv.single .row:nth-child(2){ border-top: 1px solid var(--line-soft); }
.kv .row .k{
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.kv .row .v{
  color: var(--ink-0);
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
}
.kv .row .v.txt{ font-family: var(--font-sans); font-weight: 500; }
.kv .row .v.pos{ color: var(--pos); }
.kv .row .v.neg{ color: var(--neg); }

/* ============== FOOTER ============== */
.footer{
  padding: 24px 28px 40px;
  color: var(--ink-3);
  font-size: 11.5px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
  flex-shrink: 0;
  margin-top: auto;
}
.footer .dots{ display:flex; gap: 4px; }
.footer .dots span{
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--ink-4);
}
.footer .dots span.on{ background: var(--accent); }

/* ============== TWEAKS PANEL ============== */
.tweaks{
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 280px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.02);
  z-index: 100;
  overflow: hidden;
  display: none;
}
.tweaks.on{ display: block; }
.tweaks .h{
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-0);
}
.tweaks .h b{
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 10.5px;
  color: var(--accent);
  font-weight: 500;
}
.tweaks .b{ padding: 12px 14px; }
.tweaks .sec{ margin-bottom: 14px; }
.tweaks .sec:last-child{ margin-bottom: 0; }
.tweaks .sec-lbl{
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-3);
  margin-bottom: 6px;
}
.tweaks .opts{ display: flex; gap: 6px; flex-wrap: wrap; }
.tweaks .opt{
  flex: 1;
  min-width: 0;
  padding: 6px 8px;
  border: 1px solid var(--line);
  background: var(--bg-2);
  border-radius: 6px;
  font-size: 11.5px;
  color: var(--ink-1);
  cursor: pointer;
  text-align: center;
  text-transform: capitalize;
}
.tweaks .opt.on{
  background: var(--accent-soft);
  border-color: var(--accent-line);
  color: var(--ink-0);
}
.tweaks .opt .sw{
  display: inline-block;
  width: 10px; height: 10px;
  border-radius: 3px;
  margin-right: 6px;
  vertical-align: -1px;
}

/* ============== PAGE-SPECIFIC PRIMITIVES ============== */

/* --- Tag / status pill --- */
.tag{
  display: inline-flex; align-items:center; gap: 4px;
  padding: 2px 7px;
  font-size: 10px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 3px;
  border: 1px solid var(--line);
  background: var(--bg-3);
  color: var(--ink-1);
}
.tag.accent{ background: var(--accent-soft); color: var(--accent); border-color: var(--accent-line); }
.tag.pos{ background: oklch(0.80 0.14 165 / 0.14); color: var(--pos); border-color: oklch(0.80 0.14 165 / 0.3); }
.tag.neg{ background: oklch(0.70 0.18 25 / 0.14); color: var(--neg); border-color: oklch(0.70 0.18 25 / 0.3); }
.tag.warn{ background: oklch(0.80 0.15 85 / 0.14); color: var(--warn); border-color: oklch(0.80 0.15 85 / 0.3); }

/* --- Section titles within content --- */
.section-title{
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-3);
  margin: 6px 0 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-title::after{
  content:''; flex:1; height: 1px; background: var(--line-soft);
}

/* --- Forms --- */
.field{ margin-bottom: 16px; }
.field:last-child{ margin-bottom: 0; }
.field .lbl{
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-3);
  margin-bottom: 6px;
}
.field .lbl .req{ color: var(--accent); margin-left: 3px; }
.field .hint{
  font-size: 11.5px;
  color: var(--ink-3);
  margin-top: 5px;
  font-family: var(--font-mono);
}
.field .hint.err{ color: var(--neg); }
.field .hint.ok{ color: var(--pos); }

.input, .select, .textarea{
  width: 100%;
  height: 40px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--ink-0);
  font: inherit;
  font-size: 13px;
  font-family: var(--font-mono);
  outline: none;
  transition: border-color .15s ease, background .15s ease;
}
.input:focus, .select:focus, .textarea:focus{
  border-color: var(--accent-line);
  background: var(--bg-3);
}
.input::placeholder{ color: var(--ink-3); }
.textarea{ height: auto; padding: 10px 12px; min-height: 88px; font-family: var(--font-sans); resize: vertical; }
.select{
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'><path fill='%235b6068' d='M6 8L2 4h8z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}
.input-group{
  display: flex;
  align-items: center;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.input-group:focus-within{ border-color: var(--accent-line); background: var(--bg-3); }
.input-group .pre{
  padding: 0 12px;
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 12px;
  border-right: 1px solid var(--line);
  height: 40px;
  display: grid;
  place-items: center;
}
.input-group .input{
  border: 0;
  background: none;
  flex: 1;
  height: 40px;
}

.row-two{ display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row-three{ display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }

/* toggle switch */
.switch{
  position: relative;
  width: 34px; height: 20px;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 11px;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
  flex-shrink: 0;
}
.switch::after{
  content:'';
  position: absolute;
  top: 2px; left: 2px;
  width: 14px; height: 14px;
  background: var(--ink-2);
  border-radius: 50%;
  transition: left .15s ease, background .15s ease;
}
.switch.on{
  background: var(--accent-soft);
  border-color: var(--accent-line);
}
.switch.on::after{
  left: 16px;
  background: var(--accent);
}
