:root {
  --bg: #0e0e11;
  --fg: #f5f5f7;
  --muted: #9a9aa0;
  --panel: #141418;
  --panel2: #101014;
  --border: rgba(255,255,255,0.09);
  --border2: rgba(255,255,255,0.14);
  --shadow: 0 12px 34px rgba(0,0,0,0.45);
  --accent: #a7f3d0;
  --accent2: #60a5fa;
  --kbdBg: rgba(255,255,255,0.06);
  --kbdBorder: rgba(255,255,255,0.12);
  --kbdFg: rgba(245,245,247,0.95);
  --focus: rgba(96,165,250,0.35);
  --stickyOffset: 70px;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
               Inter, Helvetica, Arial, sans-serif;
}

.container {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.logo {
  width: 28px;
  height: 28px;
  filter: invert(1);
}

h1 {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.2px;
  margin: 0;
}

.tagline {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

/* ────────────────────────────────────────────────────────────────────────────
   /shortcuts + /workflow pages
   ──────────────────────────────────────────────────────────────────────────── */

.pageShell {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(14,14,17,0.92), rgba(14,14,17,0.72));
  backdrop-filter: blur(10px);
}

.brandLink {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--fg);
  text-decoration: none;
}

.brandLink .logo {
  width: 26px;
  height: 26px;
}

.brandLinkTitle {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brandLinkTitle strong {
  font-size: 14px;
  font-weight: 650;
  letter-spacing: 0.2px;
}

.brandLinkTitle span {
  font-size: 12px;
  color: var(--muted);
}

.topActions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pillGroup {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255,255,255,0.03);
}

.pillBtn {
  appearance: none;
  border: 0;
  padding: 8px 10px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  cursor: pointer;
  line-height: 1;
  transition: background 120ms ease, color 120ms ease;
}

.pillBtn:hover {
  background: rgba(255,255,255,0.04);
  color: var(--fg);
}

.pillBtn.isActive {
  background: rgba(255,255,255,0.07);
  color: var(--fg);
}

.pillBtn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px var(--focus);
}

.topLink {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255,255,255,0.03);
  color: var(--fg);
  text-decoration: none;
  font-size: 12px;
  line-height: 1;
  transition: transform 120ms ease, border-color 120ms ease, background 120ms ease;
}

.topLink:hover {
  transform: translateY(-1px);
  border-color: var(--border2);
  background: rgba(255,255,255,0.05);
}

.topLink:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px var(--focus);
}

.shortcutsLayout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 18px;
  padding: 18px;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

.sidebar {
  position: sticky;
  top: var(--stickyOffset);
  align-self: start;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(20,20,24,0.9), rgba(16,16,20,0.9));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.sidebarHeader {
  padding: 14px 14px 10px 14px;
  border-bottom: 1px solid var(--border);
}

.sidebarHeader h2 {
  margin: 0;
  font-size: 14px;
  letter-spacing: 0.2px;
  font-weight: 650;
}

.sidebarHeader p {
  margin: 6px 0 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.sideNav {
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sideNav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--fg);
  font-size: 13px;
  border: 1px solid transparent;
  transition: background 120ms ease, border-color 120ms ease;
}

.sideNav a span {
  color: var(--muted);
  font-size: 12px;
}

.sideNav a:hover {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.06);
}

.sideNav a:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px var(--focus);
}

.content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: radial-gradient(800px 320px at 20% 0%, rgba(167,243,208,0.12), transparent 60%),
              radial-gradient(900px 320px at 75% 20%, rgba(96,165,250,0.12), transparent 62%),
              linear-gradient(180deg, rgba(20,20,24,0.9), rgba(16,16,20,0.9));
  box-shadow: var(--shadow);
  padding: 14px;
}

.hero h2 {
  margin: 0;
  font-size: 18px;
  letter-spacing: 0.2px;
  font-weight: 650;
}

.hero p {
  margin: 8px 0 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.sectionCard {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(20,20,24,0.9), rgba(16,16,20,0.9));
  box-shadow: var(--shadow);
  overflow: hidden;
  scroll-margin-top: var(--stickyOffset);
}

.sectionHeader {
  padding: 14px 14px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.sectionHeader h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 650;
  letter-spacing: 0.2px;
}

.sectionHeader p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.shortcutList {
  display: flex;
  flex-direction: column;
}

.shortcutRow {
  display: grid;
  grid-template-columns: 230px 1fr 270px;
  gap: 14px;
  padding: 12px 14px;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.shortcutRow:first-child {
  border-top: 0;
}

.shortcutName {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1px;
}

.shortcutDesc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.35;
}

.shortcutKeys {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.kbdGroup {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

kbd.k {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 28px;
  padding: 0 9px;
  border-radius: 9px;
  border: 1px solid var(--kbdBorder);
  background: var(--kbdBg);
  color: var(--kbdFg);
  font-size: 12px;
  line-height: 1;
  font-weight: 650;
  letter-spacing: 0.2px;
  box-shadow: 0 1px 0 rgba(255,255,255,0.06) inset, 0 10px 18px rgba(0,0,0,0.24);
}

.kbdSep {
  color: rgba(245,245,247,0.32);
  font-size: 12px;
  margin: 0 2px;
}

.kbdOr {
  color: rgba(245,245,247,0.38);
  font-size: 12px;
  margin: 0 6px;
}

.hintPill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(167,243,208,0.18);
  background: rgba(167,243,208,0.06);
  color: rgba(245,245,247,0.9);
  padding: 8px 10px;
  border-radius: 12px;
  font-size: 12px;
  margin-top: 10px;
}

.hintPill strong {
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.2px;
}

.footerNote {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  padding: 10px 14px 30px 14px;
}

/* ────────────────────────────────────────────────────────────────────────────
   /workflow page
   ──────────────────────────────────────────────────────────────────────────── */

.flowList {
  display: flex;
  flex-direction: column;
}

.flowRow {
  display: grid;
  grid-template-columns: 210px 1fr 270px;
  gap: 14px;
  padding: 12px 14px;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.flowRow:first-child {
  border-top: 0;
}

.flowTitle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.1px;
}

.stepBadge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 26px;
  border-radius: 10px;
  border: 1px solid rgba(167,243,208,0.18);
  background: rgba(167,243,208,0.06);
  color: rgba(245,245,247,0.92);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.2px;
}

.flowDesc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
}

.flowKeys {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.calloutCard {
  border: 1px solid rgba(96,165,250,0.18);
  background: rgba(96,165,250,0.06);
  padding: 12px 12px;
  border-radius: 12px;
  margin-top: 10px;
}

.calloutCard strong {
  color: rgba(245,245,247,0.92);
  font-weight: 700;
}

.calloutCard p {
  margin: 6px 0 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

@media (max-width: 980px) {
  .shortcutsLayout {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: relative;
    top: auto;
  }
  .shortcutRow {
    grid-template-columns: 1fr;
  }
  .shortcutKeys {
    justify-content: flex-start;
  }
  .kbdGroup {
    justify-content: flex-start;
  }
  .flowRow {
    grid-template-columns: 1fr;
  }
  .flowKeys {
    justify-content: flex-start;
  }
}
