/* sourceglance home page. Colours follow the extension's top-bar blue. */
:root {
  --blue: #1f6feb;
  --blue-soft: #58a6ff;
  --bg: #ffffff;
  --bg-alt: #f3f6fb;
  --text: #1b1f24;
  --muted: #57606a;
  --border: #d8dee4;
  --card: #ffffff;
  --hero-bg: linear-gradient(160deg, #0b1f44 0%, #0d2b63 55%, #1f6feb 140%);
  --hero-text: #f0f6fc;
  --hero-muted: #b6c6e3;
  --shadow: 0 1px 2px rgb(16 24 40 / 6%), 0 8px 24px rgb(16 24 40 / 8%);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1117;
    --bg-alt: #111823;
    --text: #e6edf3;
    --muted: #9aa7b4;
    --border: #2a3441;
    --card: #151d29;
    --hero-bg: linear-gradient(160deg, #070f20 0%, #0b1f44 60%, #16408c 140%);
    --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 8px 24px rgb(0 0 0 / 30%);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Ubuntu, Cantarell, sans-serif;
}

a { color: var(--blue); }
@media (prefers-color-scheme: dark) { a { color: var(--blue-soft); } }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }

h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
h3 { font-size: 1.1rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgb(11 31 68 / 92%);
  backdrop-filter: blur(8px);
  color: var(--hero-text);
}
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 60px; }
.brand { display: flex; gap: 10px; align-items: center; color: inherit; text-decoration: none; font-weight: 700; font-size: 1.15rem; }
.site-header nav { display: flex; gap: 22px; }
.site-header nav a { color: var(--hero-muted); text-decoration: none; font-weight: 500; }
.site-header nav a:hover { color: #fff; }
/* Cloud Login and Free Signup: buttons at the end of the menu. */
.site-header nav { align-items: center; }
.site-header nav a.nav-login, .site-header nav a.nav-signup { padding: 7px 14px; border-radius: 8px; font-weight: 700; white-space: nowrap; }
.site-header nav a.nav-login { color: #fff; border: 1px solid rgb(255 255 255 / 40%); }
.site-header nav a.nav-login:hover { background: rgb(255 255 255 / 10%); }
.site-header nav a.nav-signup { color: #fff; background: var(--blue); border: 1px solid var(--blue); }
.site-header nav a.nav-signup:hover { background: #2b7bf5; border-color: #2b7bf5; }
/* Ten items don't fit a middle-sized window: the in-page links give way to the buttons. */
@media (max-width: 1100px) {
  .site-header nav { gap: 16px; }
  .site-header nav a.wide-only { display: none; }
}

/* Hero */
.hero { background: var(--hero-bg); color: var(--hero-text); padding: 72px 0 88px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.eyebrow { color: var(--blue-soft); font-weight: 600; letter-spacing: .02em; margin: 0 0 12px; }
.hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.3rem); letter-spacing: -.02em; }
.lede { color: var(--hero-muted); font-size: 1.15rem; max-width: 34em; margin: 0 0 32px; }

.download { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.button {
  display: inline-grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center;
  padding: 14px 24px 14px 20px; border-radius: 10px; text-decoration: none; font-weight: 700; font-size: 1.1rem;
}
.button small { grid-column: 2; font-weight: 500; font-size: .8rem; opacity: .85; }
.button-icon { grid-row: span 2; width: 22px; height: 22px; background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M7.25 1.75a.75.75 0 0 1 1.5 0v7.19l2.22-2.22a.75.75 0 1 1 1.06 1.06l-3.5 3.5a.75.75 0 0 1-1.06 0l-3.5-3.5a.75.75 0 1 1 1.06-1.06l2.22 2.22V1.75ZM2 13.25a.75.75 0 0 1 .75-.75h10.5a.75.75 0 0 1 0 1.5H2.75a.75.75 0 0 1-.75-.75Z'/%3E%3C/svg%3E") center / contain no-repeat; }
.button.primary { background: var(--blue); color: #fff; box-shadow: 0 6px 20px rgb(31 111 235 / 45%); }
.button.primary:hover { background: #2b7bf5; }
.other-downloads { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: .95rem; }
.other-downloads a { color: var(--hero-muted); }
.other-downloads a:hover { color: #fff; }

/* Top-bar mock-up */
.ic { display: inline-block; width: 16px; height: 16px; background: currentColor; flex: none;
  mask: var(--icon) center / contain no-repeat; }
.ic-sourceglance { --icon: url("images/sourceglance-symbolic.svg"); }
.ic-checklist { --icon: url("images/checklist-symbolic.svg"); }
.ic-issue { --icon: url("images/issue-symbolic.svg"); }
.ic-pr { --icon: url("images/git-pull-request-symbolic.svg"); }
.ic-label { --icon: url("images/label-symbolic.svg"); }
.ic-check { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M3.5 1.5h9a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2h-9a2 2 0 0 1-2-2v-9a2 2 0 0 1 2-2Zm0 1.5a.5.5 0 0 0-.5.5v9a.5.5 0 0 0 .5.5h9a.5.5 0 0 0 .5-.5v-9a.5.5 0 0 0-.5-.5h-9Zm7.8 2.7a.75.75 0 0 1 0 1.06l-3.75 3.75a.75.75 0 0 1-1.06 0L4.7 8.7a.75.75 0 1 1 1.06-1.06l1.26 1.26 3.22-3.22a.75.75 0 0 1 1.06 0Z'/%3E%3C/svg%3E"); }
.ic-search { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M7 2.5a4.5 4.5 0 1 0 2.7 8.1l2.85 2.85a.75.75 0 1 0 1.06-1.06l-2.85-2.85A4.5 4.5 0 0 0 7 2.5ZM4 7a3 3 0 1 1 6 0a3 3 0 0 1-6 0Z'/%3E%3C/svg%3E"); }
.ic-update { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M7.25 1.75a.75.75 0 0 1 1.5 0v7.19l2.22-2.22a.75.75 0 1 1 1.06 1.06l-3.5 3.5a.75.75 0 0 1-1.06 0l-3.5-3.5a.75.75 0 1 1 1.06-1.06l2.22 2.22V1.75ZM2 13.25a.75.75 0 0 1 .75-.75h10.5a.75.75 0 0 1 0 1.5H2.75a.75.75 0 0 1-.75-.75Z'/%3E%3C/svg%3E"); }
.ic-code { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M5.3 4.2a.75.75 0 0 1 0 1.06L2.56 8l2.74 2.74a.75.75 0 1 1-1.06 1.06L.97 8.53a.75.75 0 0 1 0-1.06L4.24 4.2a.75.75 0 0 1 1.06 0Zm5.4 0a.75.75 0 0 1 1.06 0l3.27 3.27a.75.75 0 0 1 0 1.06L11.76 11.8a.75.75 0 1 1-1.06-1.06L13.44 8 10.7 5.26a.75.75 0 0 1 0-1.06Z'/%3E%3C/svg%3E"); }
.ic-lock { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M4 6V4.5a4 4 0 1 1 8 0V6h.5A1.5 1.5 0 0 1 14 7.5v6a1.5 1.5 0 0 1-1.5 1.5h-9A1.5 1.5 0 0 1 2 13.5v-6A1.5 1.5 0 0 1 3.5 6H4Zm1.5 0h5V4.5a2.5 2.5 0 0 0-5 0V6ZM8 9a1.25 1.25 0 0 0-.75 2.25v1a.75.75 0 0 0 1.5 0v-1A1.25 1.25 0 0 0 8 9Z'/%3E%3C/svg%3E"); }

.ic-list { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2 3.5a1 1 0 1 1 0 2a1 1 0 0 1 0-2Zm3 .25h9v1.5H5Zm-3 3.25a1 1 0 1 1 0 2a1 1 0 0 1 0-2Zm3 .25h9v1.5H5Zm-3 3.25a1 1 0 1 1 0 2a1 1 0 0 1 0-2Zm3 .25h9v1.5H5Z'/%3E%3C/svg%3E"); }
.ic-draft { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M11.1 1.6a1.5 1.5 0 0 1 2.1 0l1.2 1.2a1.5 1.5 0 0 1 0 2.1l-7.6 7.6-3.5.9.9-3.5ZM2 14h12v1.5H2Z'/%3E%3C/svg%3E"); }
.ic-done { --icon: url("images/issue-closed-symbolic.svg"); }
.ic-exit { --icon: url("images/exit-symbolic.svg"); }
.ic-gear { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M6.6 1h2.8l.4 1.9 1.3.7 1.8-.7 1.4 2.4-1.4 1.3v1.5l1.4 1.3-1.4 2.4-1.8-.7-1.3.7L9.4 15H6.6l-.4-1.9-1.3-.7-1.8.7-1.4-2.4 1.4-1.3V7.9L1.7 6.6l1.4-2.4 1.8.7 1.3-.7ZM8 5.5a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5Z'/%3E%3C/svg%3E"); }
.ic-user { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 1.5a3.25 3.25 0 1 1 0 6.5 3.25 3.25 0 0 1 0-6.5ZM2 14c0-3 2.7-4.75 6-4.75S14 11 14 14v.5H2Z'/%3E%3C/svg%3E"); }
.ic-external { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M9 1.5h5.5V7H13V4.06L7.53 9.53 6.47 8.47 11.94 3H9ZM2 3.5h5V5H3.5v7.5H11V9h1.5v5H2Z'/%3E%3C/svg%3E"); }
.ic-eye { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M8 3c3.5 0 6 3 7 5c-1 2-3.5 5-7 5S2 10 1 8c1-2 3.5-5 7-5Zm0 2.5a2.5 2.5 0 1 0 0 5a2.5 2.5 0 0 0 0-5Z'/%3E%3C/svg%3E"); }
.ic-chat { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 2h10a2 2 0 0 1 2 2v6a2 2 0 0 1-2 2H7l-4 3v-3a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2Z'/%3E%3C/svg%3E"); }
.ic-more { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='3' r='1.5'/%3E%3Ccircle cx='8' cy='8' r='1.5'/%3E%3Ccircle cx='8' cy='13' r='1.5'/%3E%3C/svg%3E"); }

.mock { margin: 0; font: 14px/1.4 Cantarell, Ubuntu, system-ui, sans-serif; }
.mock-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  height: 36px; padding: 0 10px; border-radius: 12px 12px 0 0;
  background: #000; color: #fff; font-weight: 700;
}
.mock-clock { padding-left: 6px; white-space: nowrap; }
.mock-group { display: flex; height: 28px; background: rgb(31 111 235 / 30%); }
.seg { display: flex; align-items: center; gap: 7px; padding: 0 11px; }
.seg.app { background: rgb(31 111 235 / 35%); }
.seg.on { background: rgb(255 255 255 / 18%); }
.mock-menu {
  margin: 8px 0 0 auto; width: min(340px, 100%); padding: 10px 0;
  background: #2e2e33; color: #f6f5f4; border-radius: 14px;
  box-shadow: 0 16px 40px rgb(0 0 0 / 45%);
}
.menu-head { display: flex; justify-content: space-between; align-items: center; padding: 6px 18px 8px; }
.menu-head span { display: flex; align-items: center; gap: 6px; color: #deddda; }
.menu-section { display: flex; justify-content: space-between; padding: 8px 18px 2px; font-weight: 700; border-top: 1px solid #45454c; margin-top: 4px; }
.menu-section em { font-style: normal; font-size: .8rem; background: rgb(88 166 255 / 25%); border-radius: 8px; padding: 0 7px; }
.menu-repo { padding: 4px 18px; color: #9a9996; font-weight: 700; font-size: .85rem; }
.menu-item { display: flex; align-items: center; gap: 9px; padding: 6px 18px 6px 26px; }
.menu-item span { color: #9a9996; }
.menu-item:hover { background: rgb(255 255 255 / 8%); }
.menu-foot { border-top: 1px solid #45454c; margin-top: 6px; padding: 10px 18px 4px; color: #c0bfbc; font-size: .9rem; }

/* Animated demos (site/demo.js). Every mock is drawn in GNOME's dark style, whatever the page's. */
.demo { position: relative; margin: 0; font: 14px/1.4 Cantarell, Ubuntu, system-ui, sans-serif; color: #f6f5f4; }
.k-issue { color: #3fb950; }
.k-pr { color: #58a6ff; }
.k-draft { color: #d29922; }
.k-done { color: #a371f7; }
.cursor {
  position: absolute; left: 0; top: 0; z-index: 5; width: 18px; height: 22px; pointer-events: none; opacity: 0;
  background: #fff; filter: drop-shadow(0 1px 2px rgb(0 0 0 / 60%));
  clip-path: polygon(0 0, 0 78%, 26% 60%, 44% 100%, 58% 94%, 41% 56%, 76% 56%);
  transition: transform .7s cubic-bezier(.45, .05, .25, 1), opacity .3s;
}
.cursor.show { opacity: 1; }
.cursor.press { animation: press .25s; }
@keyframes press { 50% { scale: .8; } }
.toast {
  position: absolute; left: 50%; bottom: 14px; z-index: 4; translate: -50% 12px; opacity: 0; white-space: nowrap;
  padding: 8px 16px; border-radius: 999px; background: #3a3a40; color: #fff; font-size: .9rem;
  box-shadow: 0 8px 24px rgb(0 0 0 / 40%); transition: opacity .3s, translate .3s;
}
.toast.show { opacity: 1; translate: -50% 0; }

/* Hero: the top bar */
.mock.demo { padding-bottom: 64px; }
.seg b { min-width: 1ch; transition: color .3s; }
.seg.bump b { color: var(--blue-soft); }
.mock.demo .mock-menu { transform-origin: top right; transition: opacity .25s, scale .25s; }
.mock.demo .mock-menu:not(.show) { opacity: 0; scale: .96; }
.menu-item { transition: background .2s, opacity .35s, max-height .35s, padding .35s; max-height: 40px; overflow: hidden; }
.menu-item.hover { background: rgb(255 255 255 / 10%); }
.menu-item.gone { opacity: 0; max-height: 0; padding-top: 0; padding-bottom: 0; }
.menu-sub { display: grid; overflow: hidden; max-height: 0; padding: 0 18px 0 50px; background: rgb(0 0 0 / 18%);
  transition: max-height .3s, padding .3s; }
.menu-sub.show { max-height: 140px; padding-top: 4px; padding-bottom: 4px; }
.menu-sub span { padding: 4px 8px; border-radius: 6px; color: #deddda; }
.menu-sub span.hover { background: rgb(255 255 255 / 12%); color: #fff; }

/* The top bar's close dialog and GNOME's notification banner. */
.shell-dialog { position: absolute; left: 50%; top: 46%; z-index: 4; display: grid; gap: 4px; width: min(360px, 92%);
  padding: 18px 18px 14px; translate: -50% -50%; text-align: center; border-radius: 18px; background: #36363a;
  box-shadow: 0 20px 50px rgb(0 0 0 / 55%); transition: opacity .25s, scale .25s; }
.shell-dialog:not(.show) { opacity: 0; scale: .95; pointer-events: none; }
.shell-dialog small { opacity: .7; margin-bottom: 10px; }
.dialog-buttons { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; }
.dialog-buttons span { padding: 5px 10px; border-radius: 8px; background: rgb(255 255 255 / 10%); font-size: .82rem; font-weight: 700; }
.dialog-buttons .blue { background: #3584e4; }
.dialog-buttons .blue.hover { background: #4a95ee; }
.notice { position: absolute; left: 50%; top: 44px; z-index: 4; display: grid; width: min(340px, 92%); padding: 10px 14px;
  translate: -50% -8px; opacity: 0; border-radius: 14px; background: #36363a; font-size: .88rem;
  box-shadow: 0 12px 30px rgb(0 0 0 / 50%); transition: opacity .3s, translate .3s; }
.notice.show { opacity: 1; translate: -50% 0; }

/* Workflows */
.showcase { padding: 88px 0 0; }
.showcase h2, .section-lede { text-align: center; }
.section-lede { color: var(--muted); margin: 0 0 28px; }
.scene-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 36px; }
.scene-tabs button {
  position: relative; overflow: hidden; font: inherit; font-weight: 600; cursor: pointer; padding: 8px 16px;
  border-radius: 999px; border: 1px solid var(--border); background: var(--card); color: var(--text);
}
.scene-tabs button[aria-selected="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }
/* While the tour plays by itself, the chosen tab fills up until the next one. */
.scene-tabs button::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: rgb(255 255 255 / 70%); }
.scene-tabs.auto button[aria-selected="true"]::after { animation: fill var(--scene-ms, 8s) linear forwards; }
@keyframes fill { to { width: 100%; } }
.scene { display: grid; grid-template-columns: 1fr 1.6fr; gap: 48px; align-items: center; }
.scene[hidden] { display: none; }
.scene-copy p { color: var(--muted); }

.win-wrap { padding: 0; }
.win { display: flex; height: 340px; overflow: hidden; border-radius: 14px; background: #242424; box-shadow: 0 20px 50px rgb(0 0 0 / 35%); }
/* The sidebar: a slim primary column, and the open group's menu docked beside it. The selected
   primary entry runs edge to edge in the menu's colour, so the two read as one. */
.win-rail { display: flex; flex-direction: column; width: 58px; flex: none; padding: 10px 0; background: #1b2028; }
.rail-i { display: grid; justify-items: center; gap: 3px; padding: 8px 0; font-size: .62rem; opacity: .8; }
.rail-i.on { background: #1f2c40; opacity: 1; }
.rail-i.foot { margin-top: auto; border-top: 1px solid #2c3440; }
.win-sub { display: flex; flex-direction: column; gap: 2px; width: 150px; flex: none; padding: 0 6px 10px; background: #1f2c40; }
.sub-h { text-align: center; font-size: .85rem; padding: 12px 0 8px; }
.sub-i { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 8px; font-size: .85rem; white-space: nowrap; }
.sub-i.on { background: #1f6feb; color: #fff; }
.sub-i.on em { background: rgb(255 255 255 / 25%); }
.head-btn { display: flex; align-items: center; gap: 6px; margin-left: auto; align-self: center; padding: 3px 10px;
  border-radius: 6px; background: rgb(255 255 255 / 10%); font-size: .8rem; font-weight: 700; }
.sub-i em, .fbtn em, .chat em { font-style: normal; font-size: .75rem; font-weight: 700; margin-left: auto; padding: 0 7px; border-radius: 999px; background: rgb(88 166 255 / 28%); }
.win-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.win-head { display: flex; gap: 10px; align-items: baseline; padding: 12px 16px; border-bottom: 1px solid #333; }
.win-head small { opacity: .6; }
.filters { position: relative; display: flex; flex-wrap: wrap; gap: 4px; padding: 10px 12px 4px; }
.fbtn { display: flex; gap: 6px; align-items: center; padding: 3px 9px; border-radius: 6px; font-size: .85rem; }
.fbtn.on { background: rgb(255 255 255 / 10%); }
.fbtn em { display: none; margin: 0; background: #f6f5f4; color: #242424; border-radius: 5px; }
.fbtn em.show { display: inline; }
.pop { position: absolute; left: 150px; top: 38px; z-index: 3; display: grid; gap: 2px; min-width: 150px; padding: 6px;
  border-radius: 10px; background: #383838; box-shadow: 0 10px 30px rgb(0 0 0 / 50%); transition: opacity .2s; }
.pop:not(.show) { opacity: 0; pointer-events: none; }
.pop span { display: flex; align-items: center; gap: 8px; padding: 4px 6px; border-radius: 6px; font-size: .85rem; }
.pop small { margin-left: auto; opacity: .6; }
.box { width: 14px; height: 14px; border-radius: 4px; border: 2px solid #9a9996; transition: background .2s; }
.box.on { background: #3584e4; border-color: #3584e4; }
.chips { display: flex; padding: 0 12px; max-height: 0; overflow: hidden; transition: max-height .3s, padding .3s; }
.chips.show { max-height: 40px; padding: 4px 12px 6px; }
.fchip { padding: 2px 10px; border-radius: 6px; background: rgb(255 255 255 / 10%); font-size: .85rem; }
.fchip small { opacity: .6; }
.rows { padding: 6px 12px; display: grid; align-content: start; overflow: hidden; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 8px 10px; max-height: 60px; overflow: hidden;
  border-bottom: 1px solid #303030; transition: max-height .4s, opacity .3s, padding .4s; }
.row.tall { max-height: none; }
.row p { flex: 1; min-width: 0; margin: 0; display: grid; }
.row p b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row p small { opacity: .65; font-size: .8rem; }
.row.gone { max-height: 0; opacity: 0; padding-top: 0; padding-bottom: 0; border-color: transparent; }
.group-h { display: flex; align-items: center; gap: 8px; padding: 12px 22px 0; }
.group-h em { font-style: normal; font-size: .75rem; font-weight: 700; padding: 0 7px; border-radius: 999px; background: rgb(88 166 255 / 28%); }
.group-h .ic { margin-left: auto; opacity: .8; }
.arrow.down { rotate: 90deg; }
.arrow { width: 0; height: 0; border: 5px solid transparent; border-left-color: #c0bfbc; margin-right: -4px; }
.acts { display: flex; gap: 12px; align-items: center; opacity: .85; }
.chat { position: relative; display: grid; place-items: center; padding: 6px; margin: -6px; border-radius: 6px; transition: background .2s; }
.chat.on { background: rgb(255 255 255 / 15%); }
.chat em { position: absolute; right: -8px; top: -6px; background: #f6f5f4; color: #242424; border-radius: 6px; padding: 0 4px; }
.chat em.bump { animation: bump .5s; }
@keyframes bump { 40% { scale: 1.5; } }
.composer { flex-basis: 100%; margin-left: 40px; max-height: 0; overflow: hidden; transition: max-height .4s; }
.composer.show { max-height: 160px; }
.editor { margin-top: 6px; padding: 6px 10px 10px; border: 1px solid #444; border-radius: 8px; font: 13px/1.5 ui-monospace, "Ubuntu Mono", monospace; min-height: 70px; }
.tools { display: block; padding-bottom: 6px; margin-bottom: 6px; border-bottom: 1px solid #383838; opacity: .6; font-family: Cantarell, system-ui, sans-serif; font-weight: 700; }
.caret { display: inline-block; width: 2px; height: 1em; vertical-align: -2px; background: #58a6ff; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.composer-foot { display: flex; align-items: center; gap: 8px; padding: 8px 0 4px; }
.composer-foot small { flex: 1; opacity: .6; }
.btn { padding: 4px 12px; border-radius: 6px; background: rgb(255 255 255 / 10%); font-weight: 700; font-size: .85rem; }
.btn.blue { background: #1f6feb; }
.win-panel { width: 0; flex: none; overflow: hidden; background: #2b2b2f; border-left: 1px solid #3a3a3a; transition: width .5s cubic-bezier(.3, .7, .3, 1); }
.win-panel.show { width: 55%; }
.panel-head { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid #3a3a3a; white-space: nowrap; }
.panel-head span { display: grid; }
.panel-head small { opacity: .6; }
.md-h { display: block; margin: 0 0 4px; font-size: .95rem; }
.md { padding: 10px 16px; min-width: 260px; font-size: .9rem; }
.md h4 { margin: 8px 0 4px; font-size: 1rem; }
.md p { margin: 0 0 6px; }
.dim { opacity: .6; }
.tasks { list-style: none; padding: 0; margin: 0 0 8px; }
.tasks li { display: flex; gap: 8px; align-items: center; }
.tasks i { font-style: normal; opacity: .7; }
.comments-h { margin: 10px 0 6px; padding-top: 8px; border-top: 1px solid #3a3a3a; }
.md pre { margin: 0 0 8px; padding: 6px 10px; font-size: .8rem; background: rgb(255 255 255 / 6%); color: inherit; }
.comment { display: flex; gap: 10px; padding: 6px 0; transition: opacity .4s, translate .4s; }
.comment p { margin: 2px 0 0; }
.avatar { display: grid; place-items: center; width: 28px; height: 28px; flex: none; border-radius: 50%;
  background: #8250df; color: #fff; font-style: normal; font-weight: 700; font-size: .8rem; }
.comment:not(.show) { opacity: 0; translate: 0 8px; }
.link { cursor: pointer; }
.link.hover { text-decoration: underline; }

.status-pop { position: absolute; left: 50%; top: 40%; z-index: 3; display: grid; gap: 2px; min-width: 200px; padding: 10px;
  translate: -50% -50%; border-radius: 12px; background: #383838; box-shadow: 0 16px 40px rgb(0 0 0 / 55%); transition: opacity .25s; }
.status-pop:not(.show) { opacity: 0; pointer-events: none; }
.status-pop b { padding: 2px 6px 0; }
.status-pop small { padding: 0 6px 6px; opacity: .65; }
.status-pop .dialog-buttons { justify-content: flex-end; margin-top: 8px; }
.radio { width: 13px; height: 13px; border-radius: 50%; border: 2px solid #9a9996; }
.radio.on { border: 4px solid #3584e4; }
.status-pop > span:not(.dialog-buttons) { display: flex; gap: 8px; align-items: center; padding: 5px 8px; border-radius: 6px; }
.status-pop span.hover { background: #3584e4; }

/* The widgets stack down the desktop's right edge. */
.desk { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; padding: 18px;
  height: 440px; border-radius: 14px; overflow: hidden; box-shadow: 0 20px 50px rgb(0 0 0 / 35%);
  background: radial-gradient(120% 90% at 20% 10%, #2b5aa8 0%, #142c57 45%, #0a1530 100%); }
.widget { display: grid; width: 250px; gap: 6px; padding: 14px 16px; border-radius: 14px; background: rgb(20 24 32 / 72%);
  backdrop-filter: blur(6px); box-shadow: 0 10px 30px rgb(0 0 0 / 35%); transition: opacity .5s, translate .5s; font-size: .9rem; }
.widget:not(.show) { opacity: 0; translate: 0 14px; }
.widget em { font-style: normal; font-weight: 800; margin-left: auto; padding-left: 16px; color: #58a6ff; }
.widget small { margin-left: auto; padding-left: 12px; opacity: .6; }
.widget span { display: flex; align-items: center; gap: 8px; }
.newpr { max-height: 0; opacity: 0; overflow: hidden; transition: max-height .4s, opacity .4s; }
.newpr.show { max-height: 24px; opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .demo *, .scene-tabs button::after { transition: none !important; animation: none !important; }
}

/* Features */
.features { padding: 88px 0; }

/* What's new: four cards on the soft background, just under the hero. */
.whats-new { background: var(--bg-alt); padding: 56px 0; }
.kicker { margin: 0 0 6px; color: var(--blue); font-weight: 700; font-size: .85rem; letter-spacing: .04em; text-transform: uppercase; }
@media (prefers-color-scheme: dark) { .kicker { color: var(--blue-soft); } }
.whats-new h2 { margin-bottom: 28px; }
.new-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.new-grid article { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 22px; }
.new-grid p { color: var(--muted); margin: 0; }
.ic-widgets { --icon: 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'%3E%3Crect x='3' y='3' width='8' height='8' rx='2'/%3E%3Crect x='13' y='3' width='8' height='8' rx='2'/%3E%3Crect x='3' y='13' width='8' height='8' rx='2'/%3E%3Cpath d='M17 14v6M14 17h6'/%3E%3C/svg%3E"); }
.ic-size { --icon: 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 x='3' y='3' width='18' height='18' rx='3'/%3E%3Crect x='3' y='13' width='8' height='8' rx='2'/%3E%3Cpath d='M14 6h4v4M18 6l-5 5'/%3E%3C/svg%3E"); }
.ic-filter { --icon: 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'%3E%3Cpath d='M4 5h16M7 12h10M10 19h4'/%3E%3C/svg%3E"); }
.ic-team { --icon: 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'%3E%3Ccircle cx='9' cy='8' r='3'/%3E%3Ccircle cx='17' cy='9' r='2.5'/%3E%3Cpath d='M3 19c0-3 3-5 6-5s6 2 6 5M15 15c3 0 6 1.5 6 4'/%3E%3C/svg%3E"); }
.features h2 { text-align: center; margin-bottom: 44px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid article { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 24px; box-shadow: var(--shadow); }
.grid p { color: var(--muted); margin: 0; }
.feat { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 16px; border-radius: 10px;
  background: rgb(31 111 235 / 12%); position: relative; }
.feat::after { content: ""; width: 20px; height: 20px; background: var(--blue); mask: var(--icon) center / contain no-repeat; }
@media (prefers-color-scheme: dark) { .feat::after { background: var(--blue-soft); } }

/* Install */
.install { background: var(--bg-alt); padding: 88px 0; border-top: 1px solid var(--border); }
.install-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.steps { list-style: none; counter-reset: step; padding: 0; margin: 28px 0; }
.steps li { counter-increment: step; position: relative; padding-left: 52px; margin-bottom: 22px; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 34px; height: 34px;
  display: grid; place-items: center; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 700; }
.steps h3 { margin-bottom: .2em; }
.steps p { margin: 0; color: var(--muted); }
.verify { background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 12px 16px; }
.verify summary { cursor: pointer; font-weight: 600; }
.verify p { color: var(--muted); }
pre { background: #0d1117; color: #e6edf3; padding: 12px 14px; border-radius: 8px; overflow-x: auto; }
.requirements { color: var(--muted); font-size: .95rem; }

/* Update */
.update { background: var(--bg-alt); padding: 72px 0 56px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.update-box { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; }
.update-box p { color: var(--muted); max-width: 40em; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }

/* Get involved */
.involved { padding: 88px 0; text-align: center; }
.lede-dark { color: var(--muted); font-size: 1.1rem; max-width: 36em; margin: 0 auto 28px; }
.involved-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-bottom: 32px; }
.involved .button { grid-template-columns: auto; }
.button.outline { border: 2px solid var(--blue); color: var(--blue); }
.button.outline:hover { background: rgb(31 111 235 / 10%); }
@media (prefers-color-scheme: dark) { .button.outline { border-color: var(--blue-soft); color: var(--blue-soft); } }
.fork-steps { text-align: left; max-width: 34em; margin: 0 auto 20px; color: var(--muted); }
.fork-steps li { margin-bottom: 6px; }
code { font: .9em ui-monospace, "Ubuntu Mono", monospace; background: var(--bg-alt); padding: 1px 5px; border-radius: 4px; }
pre code { background: none; padding: 0; }
.small { color: var(--muted); font-size: .95rem; }

/* Footer */
.site-footer { padding: 28px 0; border-top: 1px solid var(--border); color: var(--muted); font-size: .9rem; }
.footer-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; }
.footer-row span:last-child { display: flex; gap: 18px; }

/* Try it: a top bar and a Tasks window to click through (playground.js). */
.try { padding: 88px 0 0; }
.try h2 { text-align: center; }
.try-block { display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; align-items: start; margin-top: 48px; }
.try-copy p { color: var(--muted); }
.try button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.try-controls { display: grid; grid-template-columns: auto 1fr; gap: 12px 16px; align-items: center; margin-top: 20px; }
.try-label { font-weight: 600; font-size: .9rem; }
.segmented, .toggles { display: flex; flex-wrap: wrap; gap: 6px; }
.try .segmented button, .try .toggles button {
  display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 14px;
  border: 1px solid var(--border); border-radius: 10px; background: var(--card); font-weight: 600; font-size: .92rem;
}
.try .segmented button[aria-checked="true"], .try .toggles button[aria-pressed="true"] {
  border: 2px solid var(--blue); padding: 0 13px; background: rgb(31 111 235 / 10%); color: var(--blue);
}
@media (prefers-color-scheme: dark) {
  .try .segmented button[aria-checked="true"], .try .toggles button[aria-pressed="true"] { color: var(--blue-soft); }
}
.try .toggles button[aria-pressed="false"] { color: var(--muted); text-decoration: line-through; }
.try-topbar .mock-bar { border-radius: 12px; }
.try-topbar .mock-group { border-radius: 8px; overflow: hidden; }
.try-topbar .seg { height: 28px; color: #fff; }
.try-topbar .seg:hover { background: rgb(255 255 255 / 12%); }
.try-topbar .seg:focus-visible { outline: 2px solid var(--blue-soft); outline-offset: -2px; }
.try-topbar .mock-group.tabs { gap: 4px; background: none; }
.try-topbar .mock-group.tabs .seg { border-radius: 8px; background: rgb(255 255 255 / 8%); font-weight: 600; }
.try-topbar .mock-group.tabs .seg.app { background: rgb(31 111 235 / 35%); }
.try-topbar .mock-group.tabs .seg.on { background: rgb(255 255 255 / 22%); }
.try-topbar .mock-menu[hidden] { display: none; }
.try-topbar .mock-menu { min-height: 120px; }
.try-tasks { height: auto; min-height: 360px; color: #f6f5f4; }
.try-tasks .sub-i { width: 100%; text-align: left; }
.try-tasks .sub-i:hover:not(.on) { background: rgb(255 255 255 / 8%); }
.try-tasks .win-head { align-items: center; }
.try-search { margin-left: auto; }
.try-search input {
  width: 160px; min-height: 32px; padding: 0 10px; border: 1px solid #444; border-radius: 8px;
  background: #1b1b1f; color: #f6f5f4; font: inherit; font-size: .85rem;
}
.try-labels { max-height: none; flex-wrap: wrap; gap: 6px; padding: 10px 12px 4px; }
.try-labels .fchip { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; }
.try-labels .fchip[aria-pressed="true"] { background: #1f6feb; color: #fff; }
.try-tasks .rows { overflow: auto; }
.try-tag { margin-left: auto; color: #58a6ff; font-size: .8rem; font-weight: 700; }
.try-empty { padding: 16px; opacity: .7; margin: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

@media (max-width: 900px) {
  .try-block { grid-template-columns: 1fr; gap: 24px; }
  .hero-grid, .install-grid, .scene { grid-template-columns: 1fr; }
  .scene { gap: 20px; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .update-box { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .hero { padding: 48px 0 64px; }
  .grid { grid-template-columns: 1fr; }
  .site-header nav { gap: 12px; font-size: .95rem; }
  .brand { font-size: 1.05rem; gap: 8px; }
  .wide-only { display: none; }
  /* A phone: the brand and the two buttons. */
  .site-header nav a:not(.nav-login):not(.nav-signup) { display: none; }
  .site-header nav a.nav-login, .site-header nav a.nav-signup { padding: 0 12px; min-height: 44px; display: inline-flex; align-items: center; font-size: .85rem; }
  .mock-clock { display: none; }
  .seg { padding: 0 8px; }
  .win-rail, .win-sub { display: none; }
  .win, .desk { height: 360px; }
  .win-panel.show { width: 70%; }
  .widget { width: 220px; }
  .w-issues { display: none; }
  .toast { font-size: .8rem; }
  .try-tasks { flex-direction: column; height: auto; }
  .try-tasks .win-sub { display: flex; flex-direction: row; flex-wrap: wrap; width: auto; }
  .try-tasks .sub-h { display: none; }
  .try-tasks .sub-i { width: auto; }
  .try-search input { width: 120px; }
  .try-topbar .mock-bar { height: auto; min-height: 36px; padding: 4px; justify-content: flex-end; }
  .try-topbar .mock-group.tabs { flex-wrap: wrap; height: auto; }
}

/* Screenshots */
.screens { padding: 3.5rem 0; }
.gallery { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); margin-top: 1.5rem; }
.gallery figure { margin: 0; }
.gallery img { display: block; width: 100%; height: auto; border-radius: 10px; border: 1px solid rgb(127 127 127 / 30%); }
.gallery figcaption { margin-top: .4rem; font-size: .9rem; opacity: .8; }
