/* Locket UI, built on GitHub's Primer system: system type, 16px Octicons, Primer tokens, macOS window chrome.
   Every mock on the page (hero window and the small feature windows) uses these tokens and the .gw window. */
.gh, .lk {
  --fg: #1f2328;
  --fg-muted: #59636e;
  --border: #d1d9e0;
  --border-muted: #d1d9e0b3;
  --canvas: #ffffff;
  --subtle: #f6f8fa;
  --neutral-muted: #818b981f;
  --neutral-emph: #818b9833;
  --accent: #1f2328;
  --accent-fg: #1f2328;
  --accent-subtle: #f6f8fa;
  --accent-border: #d1d9e0;
  --success: #1a7f37;
  --success-subtle: #dafbe1;
  --success-border: #4ac26b66;
  --sel: #b4d5fe;
  --sys: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  font-family: var(--sys);
  color: var(--fg);
  text-align: left;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: normal;
}
.oi { width: 16px; height: 16px; flex: none; fill: currentColor; vertical-align: text-bottom; }
.oi.sm { width: 12px; height: 12px; }

/* Window: macOS chrome, Primer border and overlay shadow. */
.gw {
  position: relative; overflow: hidden; border-radius: 12px; background: var(--canvas);
  box-shadow: 0 0 0 1px #1f232826, 0 1px 1px #1f23280a, 0 3px 6px #1f23280d, 0 16px 40px -8px #1f232833;
}
.gw-bar {
  position: relative; display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 12px 0 16px;
  background: var(--subtle); border-bottom: 1px solid var(--border); font-size: 13px; color: var(--fg-muted); white-space: nowrap;
}
.gw-lights { display: flex; gap: 8px; margin-right: 6px; }
.gw-lights i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; box-shadow: inset 0 0 0 .5px #0000002e; }
.gw-lights i:nth-child(2) { background: #febc2e; }
.gw-lights i:nth-child(3) { background: #28c840; }
.oi.mk { width: 18px; height: 18px; fill: none; color: var(--fg); }
.gw-title .mk { width: 16px; height: 16px; margin-right: 6px; vertical-align: -3px; }
.gw-title { position: absolute; left: 50%; transform: translateX(-50%); font-weight: 600; color: var(--fg); }
.gw-lights.off i { background: #dcdfe3 !important; box-shadow: inset 0 0 0 .5px #0000001f; }
.gw-bar.off .gw-title { color: #8c959f; }

/* Primer Label */
.gl {
  display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 8px; border: 1px solid var(--border);
  border-radius: 999px; font-size: 12px; font-weight: 500; line-height: 1; color: var(--fg-muted); background: var(--canvas); white-space: nowrap;
}
.gl .oi { width: 12px; height: 12px; }
.gl.ok { color: var(--success); border-color: var(--success-border); }
.gl.acc { color: var(--accent-fg); border-color: var(--accent-border); }
/* Primer Counter */
.gc { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 999px; background: var(--neutral-muted); font-size: 12px; font-weight: 500; line-height: 18px; text-align: center; color: var(--fg); font-variant-numeric: tabular-nums; }
/* Primer kbd */
.gk { display: inline-block; min-width: 18px; padding: 2px 5px; border: 1px solid var(--border-muted); border-radius: 6px; background: var(--subtle); box-shadow: inset 0 -1px 0 var(--border-muted); font: 500 12px/12px var(--sys); color: var(--fg-muted); text-align: center; }
/* Primer IconButton (invisible) */
.gib { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 6px; color: var(--fg-muted); }
/* Avatar with initials */
.ga { display: grid; place-items: center; width: 24px; height: 24px; margin: 0 -2px; flex: none; border-radius: 50%; font-size: 12px; font-weight: 600; letter-spacing: -.02em; color: #fff; box-shadow: 0 0 0 1px #1f23281a inset; }

/* ---------- The Locket app window (hero) ---------- */
.lk { display: block; font-size: 14px; line-height: 1.5; }
.lk .gw-bar { height: 44px; gap: 8px; }
.lk-crumb { display: flex; align-items: center; gap: 6px; min-width: 0; margin-left: 2px; font-size: 14px; }
.lk-crumb b { font-weight: 600; color: var(--fg); }
.lk-sep { color: var(--border); font-weight: 300; font-size: 16px; }
.lk-new { display: inline-flex; align-items: center; gap: 6px; height: 28px; margin-left: auto; padding: 0 10px 0 8px; border: 1px solid #d1d9e0; border-radius: 6px; background: var(--canvas); color: var(--fg); font-size: 13px; font-weight: 500; box-shadow: 0 1px 0 #1f23280a; white-space: nowrap; }

.lk-body { display: grid; grid-template-columns: 236px 1fr; min-height: 352px; }
.lk-side { display: flex; flex-direction: column; padding: 12px 8px 8px; border-right: 1px solid var(--border); background: var(--subtle); }
.lk-search {
  display: flex; align-items: center; gap: 8px; height: 32px; margin: 0 4px 12px; padding: 0 6px 0 10px;
  border: 1px solid var(--border); border-radius: 6px; background: var(--canvas); color: var(--fg-muted); font-size: 14px;
  box-shadow: inset 0 1px 0 #d1d9e033;
}
.lk-search .gk { margin-left: auto; }
.lk-h { padding: 6px 12px 4px; font-size: 12px; font-weight: 600; color: var(--fg-muted); }
.lk-side ul { list-style: none; margin: 0 0 8px; padding: 0; }
.lk-side li {
  position: relative; display: flex; align-items: center; gap: 8px; height: 32px; margin: 0 4px; padding: 0 8px; border-radius: 6px;
  font-size: 14px; color: var(--fg);
}
.lk-side li .oi { color: var(--fg-muted); }
.lk-ic { display: grid; place-items: center; width: 20px; flex: none; }
.lk-side ul + ul::before { content: ""; display: block; height: 1px; margin: 0 4px 8px; background: var(--border-muted); }
.lk-side li em { margin-left: auto; font-style: normal; font-size: 12px; color: var(--fg-muted); font-variant-numeric: tabular-nums; }
.lk-side li.on { background: var(--neutral-muted); }
.lk-locks {
  display: flex; align-items: center; gap: 8px; margin: auto 4px 0; padding: 10px 8px 4px;
  border-top: 1px solid var(--border); font-size: 12px; color: var(--fg-muted); font-variant-numeric: tabular-nums;
}
.lk-locks .gk { margin-left: auto; }
.lk-ring { width: 14px; height: 14px; transform: rotate(-90deg); }
.lk-ring circle { fill: none; stroke: var(--border); stroke-width: 2.5; }
.lk-ring .left { stroke: var(--fg-muted); stroke-dasharray: 44 44; }

.lk-doc { position: relative; display: flex; flex-direction: column; padding: 28px 40px 16px; }
.lk-meta { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--fg-muted); }
.lk-doc h4 { margin: 6px 0 20px; font-size: 26px; font-weight: 600; letter-spacing: -0.012em; line-height: 1.25; }
.lk-doc section + section { margin-top: 16px; }
.lk-doc h5 { margin: 0 0 2px; font-size: 13px; font-weight: 600; color: var(--fg-muted); }
.lk-doc p { margin: 0; font-size: 15px; line-height: 1.6; }
.lk-foot {
  display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 24px;
  font-size: 12px; color: var(--fg-muted); font-variant-numeric: tabular-nums;
}
.lk-caret { display: inline-block; width: 2px; height: 1.15em; margin-left: 1px; vertical-align: -0.2em; border-radius: 1px; background: var(--accent); animation: lk-blink 1.1s step-end infinite; }
@keyframes lk-blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .lk-caret { animation: none; } }

/* Lock screen */
.lk-lock { display: grid; place-items: center; padding: 52px 24px 56px; text-align: center; }
.lk-lockmark { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; border: 1px solid var(--border); background: var(--subtle); color: var(--accent); }
.lk-lockmark svg { width: 24px; height: 24px; }
.lk-lock h4 { margin: 16px 0 16px; font-size: 20px; font-weight: 600; }
.lk-field { display: flex; align-items: center; width: min(260px, 100%); height: 36px; padding: 0 12px; border: 1px solid var(--accent); border-radius: 6px; background: var(--canvas); box-shadow: 0 0 0 3px var(--accent-border); }
.lk-dots { letter-spacing: 2px; }
.lk-lock button { width: min(260px, 100%); height: 36px; margin-top: 12px; border: 1px solid #1f232826; border-radius: 6px; background: var(--accent); color: #fff; font: 500 14px var(--sys); box-shadow: 0 1px 0 #1f23281a, inset 0 1px 0 #ffffff1a; }

/* Phones: the note only; labels on their own row. */
@media (max-width: 640px) {
  .lk .gib { display: none; }
  .lk-body { grid-template-columns: 1fr; min-height: 0; }
  .lk-side { display: none; }
  .lk-doc { padding: 20px 20px 16px; }
  .lk-doc h4 { font-size: 22px; margin-bottom: 16px; }
}

/* Floating formatting toolbar: right edge of the note, vertically centred. */
.lk-tools { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 2px; padding: 4px;
  border-radius: 12px; background: var(--canvas); box-shadow: 0 0 0 1px #d1d9e0, 0 1px 2px #1f23280d, 0 8px 24px -4px #1f232826; }
.lk-tools span { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; color: var(--fg-muted); }
.lk-tools span:first-child { background: var(--neutral-muted); color: var(--fg); }
@media (max-width: 640px) { .lk-tools { display: none; } }
