/* Inter and JetBrains Mono are under the SIL Open Font License. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/inter-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url("fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root,
:root[data-theme="dark"] {
  color-scheme: dark;
  --page: hsl(212deg 7% 10%);
  --surface: hsl(212deg 7% 14%);
  --ink: #fff;
  --muted: hsl(212deg 7% 78%);
  --faint: hsl(212deg 7% 68%);
  --line: hsl(212deg 7% 34%);
  --line-strong: hsl(212deg 7% 46%);
  --cyber: hsl(350deg 96% 74%);
  --ai: hsl(267deg 99% 86%);
  --link: hsl(212deg 98% 82%);
  --bg-red: hsl(350deg 74% 17%);
  --text-red: hsl(350deg 96% 74%);
  --bg-blue: hsl(212deg 82% 15%);
  --text-blue: hsl(212deg 98% 82%);
  --cursor: hsl(212deg 98% 82%);
  --danger: #ffb4ae;
}

:root[data-theme="light"] {
  color-scheme: light;
  --page: #fff;
  --surface: hsl(212deg 7% 97%);
  --ink: #000;
  --muted: hsl(212deg 7% 34%);
  --faint: hsl(212deg 7% 34%);
  --line: hsl(212deg 7% 78%);
  --line-strong: hsl(212deg 7% 46%);
  --cyber: hsl(350deg 84% 39%);
  --ai: hsl(267deg 70% 40%);
  --link: hsl(212deg 95% 32%);
  --bg-red: hsl(350deg 100% 95%);
  --text-red: hsl(350deg 84% 39%);
  --bg-blue: hsl(212deg 91% 96%);
  --text-blue: hsl(212deg 95% 32%);
  --cursor: hsl(212deg 90% 39%);
  --danger: hsl(350deg 84% 39%);
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  min-height: 100vh;
  background: var(--page);
  color: var(--ink);
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  isolation: isolate;
}
body::before {
  content: "";
  position: fixed;
  z-index: -1;
  top: 1.5rem;
  right: -3.25rem;
  width: min(18rem, 32vw);
  height: calc(100dvh - 1rem);
  background: url("keys/cluster-white.png") right center / auto 100% no-repeat;
  opacity: 0.2;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 36%);
  mask-image: linear-gradient(to right, transparent, #000 36%);
}
:root[data-theme="light"] body::before {
  background-image: url("keys/cluster-black.png");
  opacity: 0.16;
}
button, input { font: inherit; color: inherit; }
a { color: var(--link); }
::selection { background: var(--bg-blue); }
:focus-visible { outline: 2px solid var(--cursor); outline-offset: 2px; }

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.top {
  position: sticky;
  top: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: 1fr minmax(0, 36rem) 1fr;
  align-items: center;
  gap: 1rem;
  height: 4.125rem;
  padding-inline: max(1rem, calc((100vw - 1440px + 2rem) / 2));
  background: #18191b;
  border-bottom: 1px solid #2a2c30;
  color: #f4f5f6;
}
.brand { display: block; justify-self: start; color: inherit; text-decoration: none; }
.brand img { display: block; width: auto; height: 2rem; }
.shell {
  display: grid;
  grid-template-columns: 14rem minmax(0, 1fr);
  align-items: stretch;
  width: 100%;
  min-height: calc(100vh - 4.125rem);
}
.rail {
  background: var(--surface);
  border-right: 1px solid var(--line);
}
.lanes {
  position: sticky;
  top: 4.125rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.2rem;
  min-width: 0;
  max-height: calc(100vh - 4.125rem);
  padding: 1.5rem 0.75rem 2rem;
  overflow: auto;
}
#topic-lanes { display: contents; }
.lanes-label {
  margin: 0 0 0.35rem;
  padding-inline: 0.7rem;
  color: var(--faint);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  line-height: 1.2;
  text-transform: uppercase;
}
.lanes-rule {
  height: 1px;
  margin: 0.3rem 0;
  background: var(--line);
}
.tools {
  display: flex;
  align-items: center;
  align-self: stretch;
  justify-self: end;
  gap: 0.5rem;
}
.search { position: relative; min-width: 0; }
.search-field {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  height: 2.125rem;
  padding: 0 0.65rem;
  border: 1px solid #6d7076;
  border-radius: 0.25rem;
  background: #101114;
  color: #f4f5f6;
}
.search-field:focus-within { border-color: #a9cffc; }
.search-field svg { flex: 0 0 auto; color: #b8bbbf; }
.search-field input {
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 0.875rem;
  outline: none;
}
.search-field input::-webkit-search-decoration,
.search-field input::-webkit-search-cancel-button,
.search-field input::-webkit-search-results-button { display: none; }
.search-field input::placeholder { color: #8b8f96; }
.search-kbd {
  flex: 0 0 auto;
  min-width: 0;
  margin: 0;
  padding: 0 0.32rem;
  border: 1px solid #3c3e42;
  border-bottom-width: 2px;
  border-radius: 0.2rem;
  background: transparent;
  color: #b8bbbf;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.68rem;
  line-height: 1.45;
}
.search-field:focus-within .search-kbd,
.search-field input:not(:placeholder-shown) ~ .search-kbd { display: none; }
.search-results {
  position: absolute;
  top: calc(100% + 0.4rem);
  left: 0;
  right: 0;
  z-index: 7;
  max-height: min(26rem, calc(100vh - 5.5rem));
  margin: 0;
  padding: 0.35rem;
  overflow: auto;
  border: 1px solid #3c3e42;
  border-radius: 0.25rem;
  background: #18191b;
  color: #f4f5f6;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}
.search-section,
.search-empty {
  margin: 0.35rem 0.55rem 0.15rem;
  color: #8b8f96;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  line-height: 1.3;
  text-transform: uppercase;
}
.search-empty {
  margin-bottom: 0.35rem;
  letter-spacing: 0;
  font-size: 0.8rem;
  font-weight: 400;
  text-transform: none;
}
.search-option {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 0.75rem;
  width: 100%;
  padding: 0.4rem 0.55rem;
  border: 0;
  border-radius: 0.25rem;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.search-option[aria-selected="true"] { background: #2a2c31; }
.search-label {
  grid-column: 1;
  overflow: hidden;
  color: #f4f5f6;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.search-label.is-mono {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.78rem;
}
.search-detail {
  grid-column: 1;
  overflow: hidden;
  color: #b8bbbf;
  font-size: 0.75rem;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.search-detail .lane-name { font-size: 0.68rem; }
.search-go {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  color: #8b8f96;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.68rem;
  visibility: hidden;
}
.search-option[aria-selected="true"] .search-go { visibility: visible; }
.search-option.is-current .search-detail { color: #a9cffc; }
.chip, .icon-button, .save {
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
}
.chip {
  --tab-bg: #0c2746;
  --tab-fg: #a9cffc;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  width: 100%;
  min-height: 2rem;
  padding: 0.4rem 0.7rem;
  border-radius: 0.25rem;
  background: color-mix(in srgb, var(--tab-bg) 46%, var(--page));
  color: color-mix(in srgb, var(--tab-fg) 58%, var(--faint));
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.25rem;
  text-align: left;
  white-space: nowrap;
}
.chip[data-lane="cyber"],
.chip[data-tone="cyber"] { --tab-bg: #3a101c; --tab-fg: #f5b4bc; }
.chip[data-lane="ai"],
.chip[data-tone="ai"] { --tab-bg: #260e42; --tab-fg: #c2a6e0; }
.chip[data-lane="saved"] { --tab-bg: #0c321d; --tab-fg: #82dfb0; }
.chip[data-tone="more"] { --tab-bg: #0c2746; --tab-fg: #a9cffc; }
.chip-add {
  --tab-bg: var(--bg-blue);
  --tab-fg: var(--text-blue);
  border: 1px dashed var(--line-strong);
  background: transparent;
  color: var(--link);
}
.chip-add:hover,
.chip-add:focus-visible {
  border-style: solid;
  background: var(--tab-bg);
  color: var(--tab-fg);
}
:root[data-theme="light"] .chip:not(.chip-add):not(:hover):not([aria-pressed="true"]) {
  background: color-mix(in srgb, var(--tab-bg) 20%, var(--page));
  color: color-mix(in srgb, var(--tab-bg) 82%, var(--ink));
}
.chip:hover,
.chip[aria-pressed="true"] {
  background: var(--tab-bg);
  color: var(--tab-fg);
}
.chip-label { flex: 1 1 auto; }
.mark-icon { width: 0.9rem; height: 0.9rem; flex: 0 0 auto; }
.count {
  min-width: 1.2em;
  margin-left: auto;
  color: var(--faint);
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  text-align: right;
}
.chip:hover .count,
.chip[aria-pressed="true"] .count { color: inherit; }
.key-hint {
  display: grid;
  gap: 0.15rem;
  margin-top: 1rem;
  padding: 0.45rem 0.7rem;
  border: 0;
  background: transparent;
  color: var(--faint);
  font-size: 0.75rem;
  line-height: 1.45;
  text-align: left;
  cursor: pointer;
}
.key-hint:hover { color: var(--ink); }
kbd {
  display: inline-block;
  min-width: 1.1rem;
  margin-right: 0.15rem;
  padding: 0 0.28rem;
  border: 1px solid var(--line-strong);
  border-bottom-width: 2px;
  border-radius: 0.2rem;
  background: var(--page);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.68rem;
  font-weight: 500;
  line-height: 1.45;
  text-align: center;
}
.key-list {
  display: grid;
  gap: 0.55rem;
  margin: 1rem 0 0;
}
.key-list div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}
.key-list dt,
.key-list dd { margin: 0; }
.key-list dd { color: var(--muted); }
.keys-dialog { width: min(26rem, calc(100vw - 2rem)); }
.keys-note {
  margin: 0.9rem 0 0;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.5;
}

.icon-button {
  display: grid;
  width: 2.125rem;
  height: 2.125rem;
  padding: 0;
  border-color: #6d7076;
  border-radius: 0.25rem;
  color: #f4f5f6;
  place-items: center;
}
.icon-button:hover { background: #2a2c31; }

.theme-menu { position: relative; }
.theme-menu summary { list-style: none; }
.theme-menu summary::-webkit-details-marker { display: none; }
.theme-menu[open] > .icon-button { background: #2a2c31; }
.theme-icon { display: none; }
:root[data-theme-choice="dark"] .theme-icon-dark,
:root[data-theme-choice="light"] .theme-icon-light,
:root[data-theme-choice="system"] .theme-icon-system { display: block; }
.theme-panel {
  position: absolute;
  top: calc(100% + 0.45rem);
  right: 0;
  z-index: 6;
  min-width: 10.5rem;
  padding: 0.35rem;
  border: 1px solid #3c3e42;
  border-radius: 0.25rem;
  background: #18191b;
  color: #f4f5f6;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}
.theme-option {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  min-height: 2.125rem;
  padding: 0.35rem 0.55rem;
  border: 0;
  border-radius: 0.25rem;
  background: transparent;
  color: inherit;
  font-size: 0.875rem;
  line-height: 1.25rem;
  text-align: left;
  cursor: pointer;
}
.theme-option:hover,
.theme-option:focus-visible { background: #2a2c31; }
.theme-option svg { flex: 0 0 auto; }
.theme-check {
  margin-left: auto;
  color: #a9cffc;
  visibility: hidden;
}
.theme-option[aria-checked="true"] .theme-check { visibility: visible; }

.wrap {
  width: min(72rem, 100%);
  min-width: 0;
  margin-inline: auto;
  padding: 2rem 1.75rem 4rem;
}

.shortcuts { margin: 0 0 1.75rem; }
.shortcuts[hidden],
.shortcut-promo[hidden],
.shortcut-list[hidden],
.shortcut-reopen[hidden],
#shortcut-foot[hidden] { display: none !important; }
.shortcut-promo {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  padding: 1rem 0.85rem 1rem 1.1rem;
  border: 1px solid #2e3033;
  border-radius: 1.25rem;
  background: #1b1c1f;
  color: #fff;
}
.shortcut-promo-marks {
  display: grid;
  grid-template-columns: repeat(2, 1.75rem);
  gap: 0.4rem;
  flex: none;
}
.shortcut-promo-marks > svg { display: block; width: 1.75rem; height: 1.75rem; }
.shortcut-promo-copy { flex: 1 1 12rem; max-width: 16.5rem; min-width: 0; }
.shortcut-promo-copy p {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.35;
}
.shortcut-promo-add {
  margin-top: 0.7rem;
  padding: 0.45rem 1rem;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #1f1f1f;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.2;
  cursor: pointer;
}
.shortcut-promo-add:hover { background: #e8eaed; }
.shortcut-promo-dismiss {
  display: grid;
  flex: none;
  width: 2rem;
  height: 2rem;
  margin-left: auto;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #b8bbbf;
  place-items: center;
  cursor: pointer;
}
.shortcut-promo-dismiss:hover { background: #2a2c31; color: #fff; }
.shortcut-reopen {
  display: flex;
  align-items: center;
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.4rem 0.7rem;
  border: 0;
  border-radius: 0.25rem;
  background: transparent;
  color: var(--faint);
  font: inherit;
  font-size: 0.875rem;
  text-align: left;
  cursor: pointer;
}
.shortcut-reopen:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); color: var(--ink); }
.shortcut-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.15rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.shortcut-tile { position: relative; width: 4.75rem; flex: none; }
.shortcut-tile[data-shortcut-id] {
  touch-action: none;
  user-select: none;
  -webkit-user-drag: none;
}
.shortcut {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  width: 100%;
  padding: 0.2rem 0.15rem 0.35rem;
  border: 0;
  border-radius: 0.5rem;
  background: transparent;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}
.shortcut-tile[data-shortcut-id] .shortcut { cursor: grab; }
.shortcut:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); }
.shortcut-icon {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  overflow: hidden;
  border-radius: 0.85rem;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.14);
  color: #3c4043;
}
.shortcut-icon img { width: 1.65rem; height: 1.65rem; object-fit: contain; -webkit-user-drag: none; }
.shortcut-new .shortcut-icon {
  background: transparent;
  box-shadow: inset 0 0 0 1.5px var(--line-strong);
  color: var(--muted);
}
.shortcut-icon.is-letter {
  background: var(--mark, #3c4043);
  color: #fff;
  box-shadow: none;
  font-size: 1.05rem;
  font-weight: 600;
}
.shortcut-name {
  display: -webkit-box;
  max-width: 100%;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.2;
  text-align: center;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.shortcut-edit {
  position: absolute;
  top: 0.05rem;
  right: 0.45rem;
  display: grid;
  width: 1.35rem;
  height: 1.35rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--page);
  color: var(--muted);
  place-items: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
}
.shortcut-tile:hover .shortcut-edit,
.shortcut-tile:focus-within .shortcut-edit {
  opacity: 1;
  pointer-events: auto;
}
.shortcut-edit:hover { color: var(--ink); }
.shortcut-slot {
  flex: none;
  border-radius: 0.5rem;
  background: color-mix(in srgb, var(--ink) 8%, transparent);
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--ink) 22%, transparent);
}
.shortcut-tile.is-dragging {
  position: fixed;
  z-index: 40;
  margin: 0;
  pointer-events: none;
}
.shortcut-tile.is-dragging .shortcut {
  background: var(--page);
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.28),
    inset 0 0 0 1px color-mix(in srgb, var(--ink) 16%, transparent);
  cursor: grabbing;
  transform: scale(1.04);
}
body.is-shortcut-dragging { user-select: none; }
body.is-shortcut-dragging,
body.is-shortcut-dragging * { cursor: grabbing !important; }
body.is-shortcut-dragging .shortcut-edit { opacity: 0 !important; pointer-events: none !important; }
@media (hover: none) {
  .shortcut-edit { opacity: 1; pointer-events: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .shortcut-tile.is-dragging .shortcut { transform: none; }
}

#shortcut-dialog .onboarding-card {
  display: flex;
  flex-direction: column;
  max-height: calc(100dvh - 2rem);
  overflow: hidden;
}
#shortcut-dialog .eyebrow,
#shortcut-dialog h2,
#shortcut-dialog .onboarding-copy,
#shortcut-dialog #shortcut-form,
#shortcut-dialog .onboarding-foot { flex-shrink: 0; }
.shortcut-picks {
  flex: 1 1 auto;
  min-height: 0;
  max-height: 13.75rem;
  margin: 0 0 1rem;
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--line);
  border-radius: 0.25rem;
  background: color-mix(in srgb, var(--ink) 3%, var(--page));
}
.shortcut-pick-group h3 {
  position: sticky;
  top: 0;
  z-index: 1;
  margin: 0;
  padding: 0.55rem 0.7rem 0.35rem;
  background: color-mix(in srgb, var(--ink) 3%, var(--page));
  color: var(--faint);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.shortcut-pick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(5.25rem, 1fr));
  gap: 0.1rem;
  margin: 0;
  padding: 0 0.35rem 0.45rem;
  list-style: none;
}
.shortcut-pick { position: relative; }
.shortcut-pick[aria-pressed="true"] { background: var(--bg-blue); }
.shortcut-pick[aria-pressed="true"] .shortcut-name { color: var(--text-blue); }
.shortcut-pick-pin {
  position: absolute;
  top: 0.15rem;
  right: 0.25rem;
  display: grid;
  width: 1rem;
  height: 1rem;
  place-items: center;
  border-radius: 999px;
  background: var(--bg-blue);
  color: var(--text-blue);
}

.world { margin: 0 0 2rem; }
.section-label,
.eyebrow {
  margin: 0 0 0.5rem;
  color: var(--faint);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  line-height: 1.2;
  text-transform: uppercase;
}
#world-title {
  display: inline-block;
  margin: 0 0 0.7rem;
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.05;
  text-transform: uppercase;
  color: #e2f543;
  background-image:
    url("text-grain.png"),
    linear-gradient(102deg, #e2f543 0%, #ffe14a 42%, #ff9a1a 78%, #ff7a18 100%);
  background-repeat: repeat, no-repeat;
  background-size: 180px 180px, 100% 100%;
  background-position: center, center;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
:root[data-theme="light"] #world-title {
  color: #c2410c;
  background-image:
    url("text-grain.png"),
    linear-gradient(102deg, #8a9300 0%, #d97706 55%, #ea580c 100%);
}
.world-brief {
  max-width: 40rem;
  margin: 0 0 1rem;
  color: var(--ink);
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 400;
  line-height: 1.25;
}
.world-brief::after { color: var(--cursor); content: "_"; }
.world-points {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.world-points a,
.world-points div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.3rem;
  padding: 0.7rem 0 0.75rem;
  border-bottom: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
}
.world-line {
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.4;
}
.world-points li.is-urgent .world-line {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
}
.world-points li.is-urgent .world-copy { min-width: 0; }
.world-points li.is-urgent .badge-urgent {
  flex: none;
  margin-top: 0.15rem;
}
.world-points a:hover .world-copy { text-decoration: underline; }
.world-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.65rem;
}
.world-points .lane-name {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1;
}
.world-points .source {
  font-size: 0.75rem;
  line-height: 1.2;
}
.world-points .source-mark {
  width: 0.875rem;
  height: 0.875rem;
  border-radius: 0.18rem;
}
.world-points .source-letter { font-size: 0.6rem; }
.world-points a:hover .world-copy { text-decoration: underline; }

.note {
  position: relative;
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  border: 0;
  border-inline-start: 2px solid var(--text-blue);
  border-radius: 0.25rem;
  background: var(--bg-blue);
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.5;
  text-decoration: none;
}
.badge-urgent {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.45rem;
  border-radius: 1rem;
  background: var(--text-red);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.3;
  text-transform: uppercase;
}
:root[data-theme="light"] .badge-urgent { color: #fff; }

.section-label { margin: 1.75rem 0 0.75rem; }
.leads, .grid { display: grid; gap: 1rem; }
.leads { grid-template-columns: 1fr 1fr; }
.grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card {
  position: relative;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: var(--page);
  scroll-margin-top: 5rem;
}
.card:hover { border-color: var(--line-strong); }
.card.is-current {
  border-color: var(--cursor);
  box-shadow: inset 3px 0 0 var(--cursor);
}
.card.urgent { border-color: var(--text-red); }
.card.urgent.is-current { box-shadow: inset 3px 0 0 var(--cursor); }
.card a {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1rem 2.75rem 1rem 1rem;
  color: inherit;
  text-decoration: none;
}
.pip { display: none; }
.kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.3;
}
.lane-name {
  color: var(--cyber);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.lane-ai .lane-name { color: var(--ai); }
.lane-more .lane-name,
.topic-name { color: var(--link); }
.topic-name {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.source {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
  color: var(--faint);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}
.source-mark {
  display: grid;
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  border-radius: 0.22rem;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.14);
}
.source-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.source-letter {
  color: #1c1e21;
  font-size: 0.65rem;
  font-weight: 600;
  line-height: 1;
}
.lead .source-mark {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 0.28rem;
}
.lead .source-letter { font-size: 0.75rem; }
.card h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5;
}
.lead h3 { font-size: 1.25rem; line-height: 1.35; }
.card a:hover h3 { text-decoration: underline; }
.takeaway {
  display: -webkit-box;
  margin: 0.45rem 0 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.lead .takeaway { font-size: 0.95rem; }
time {
  margin-top: auto;
  padding-top: 0.9rem;
  color: var(--faint);
  font-size: 0.8rem;
}
.save {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  display: grid;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border-color: var(--line);
  border-radius: 0.25rem;
  color: var(--muted);
  place-items: center;
}
.save:hover { border-color: var(--line-strong); color: var(--ink); }
.save svg path { fill: none; stroke: currentColor; }
.save[aria-pressed="true"] { border-color: var(--ink); color: var(--ink); }
.save[aria-pressed="true"] svg path { fill: currentColor; }

.desk {
  min-width: 0;
  padding: 1.35rem 1.1rem 2.5rem;
  border-top: 1px solid var(--line);
  background: transparent;
}
.desk-block + .desk-block {
  margin-top: 1.2rem;
  padding-top: 1.05rem;
  border-top: 1px solid var(--line);
}
.desk-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0 0 0.55rem;
}
.desk-head h2 {
  margin: 0;
  color: var(--faint);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  line-height: 1.2;
  text-transform: uppercase;
}
.desk-head a {
  color: var(--faint);
  font-size: 0.75rem;
  text-decoration: none;
}
.desk-head a:hover { color: var(--link); text-decoration: underline; }
.desk-trending {
  --fire-hot: #ffe566;
  --fire-mid: #ff7416;
  --fire-deep: #ff2a1a;
  --fire-ink: linear-gradient(100deg, #ffd24a 0%, #ff7416 48%, #ff2a1a 100%);
}
:root[data-theme="light"] .desk-trending {
  --fire-hot: #f5b400;
  --fire-mid: #ef5410;
  --fire-deep: #cf120c;
  --fire-ink: linear-gradient(100deg, #d48400 0%, #e8480c 50%, #c4120c 100%);
}
.desk-head a.desk-trending {
  font-weight: 600;
}
.desk-head a.desk-trending .fire-mark {
  display: inline-block;
  margin-right: 0.22rem;
  vertical-align: -0.18em;
}
.desk-head a.desk-trending span {
  background-image: var(--fire-ink);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.desk-head a.desk-trending:hover {
  color: inherit;
  text-decoration: none;
}
.desk-head a.desk-trending:hover span {
  box-shadow: inset 0 -1px 0 var(--fire-mid);
}
.desk-list { margin: 0; padding: 0; list-style: none; }
.desk-list li + li { border-top: 1px solid var(--line); }
.desk-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  padding: 0.55rem 0;
  color: inherit;
  text-decoration: none;
}
.desk-row:hover .desk-title { text-decoration: underline; }
.desk-row > .desk-title {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
.desk-title {
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.35;
  text-decoration: none;
}
.repo-name {
  color: var(--ink);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.desk-copy {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.desk-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  margin: 0;
  color: var(--faint);
  font-size: 0.75rem;
  line-height: 1.3;
}
.desk-meta a { color: inherit; text-decoration: none; }
.desk-meta a:hover { color: var(--link); text-decoration: underline; }
.release-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
}
.release-version {
  color: var(--ink);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.78rem;
  font-weight: 500;
}
.badge-high {
  display: inline-flex;
  align-items: center;
  padding: 0.12rem 0.4rem;
  border: 1px solid var(--line-strong);
  border-radius: 1rem;
  color: var(--ink);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.3;
  text-transform: uppercase;
}
.advisory-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.45rem;
}
.security-mark {
  color: var(--cyber);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.empty { margin: 1.75rem 0; color: var(--muted); }
.empty strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--ink);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.25;
}
.empty strong::after { color: var(--cursor); content: "_"; }

.onboarding {
  width: min(32rem, calc(100vw - 2rem));
  margin: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
}
.onboarding::backdrop { background: rgba(0, 0, 0, 0.55); }
.onboarding-card {
  position: relative;
  padding: 1.5rem 1.5rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: var(--page);
}
.onboarding-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  display: grid;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 0;
  border-radius: 0.25rem;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  place-items: center;
}
.onboarding-close:hover { background: var(--surface); color: var(--ink); }
.onboarding h2 {
  margin: 0;
  font-size: 2rem;
  font-weight: 400;
  line-height: 1.25;
}
.onboarding h2::after { color: var(--cursor); content: "_"; }
.onboarding-copy {
  max-width: 40rem;
  margin: 0.75rem 0 1rem;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.75;
}
.auth-providers { display: grid; gap: 0.5rem; }
.auth-provider, .auth-submit, .account-chip { font: inherit; cursor: pointer; }
.auth-provider, .auth-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  min-height: 2.5rem;
  border-radius: 0.25rem;
  font-size: 0.875rem;
  font-weight: 450;
}
.auth-provider {
  border: 1px solid currentColor;
  background: transparent;
  color: var(--ink);
}
.auth-provider:hover { background: var(--surface); }
.auth-submit {
  margin-top: 0.25rem;
  border: 1px solid #000;
  background: #000;
  color: #fff;
}
:root[data-theme="dark"] .auth-submit { border-color: #fff; background: #fff; color: #000; }
.auth-submit:hover { background: hsl(212deg 7% 34%); }
:root[data-theme="dark"] .auth-submit:hover { background: hsl(212deg 7% 78%); }
.auth-submit:disabled { cursor: progress; opacity: 0.7; }
#auth-form, #shortcut-form { display: grid; gap: 0.5rem; }
.auth-or { margin: 0.9rem 0 0; color: var(--faint); font-size: 0.8rem; }
.field {
  display: grid;
  gap: 0.3rem;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 500;
}
.field input {
  min-height: 2.5rem;
  padding: 0.4rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 0.25rem;
  background: var(--page);
  color: var(--ink);
  font-size: 1rem;
  font-weight: 400;
}
.field input:focus { border-color: var(--cursor); }
.auth-error { margin: 0; color: var(--danger); font-size: 0.875rem; }
.onboarding-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-top: 1rem;
}
.text-button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--link);
  font: inherit;
  font-size: 0.95rem;
  text-decoration: underline;
  cursor: pointer;
}
.text-button:hover { text-decoration: none; }
.text-button.danger { color: var(--danger); }

.topics-dialog { width: min(56rem, calc(100vw - 2rem)); }
.topics-dialog .onboarding-card {
  display: flex;
  flex-direction: column;
  max-height: calc(100dvh - 2rem);
}
.topics-dialog .onboarding-close {
  position: static;
  align-self: flex-end;
  flex: 0 0 auto;
  margin: 0;
}
.topics-scroll {
  min-height: 0;
  overflow: auto;
}
.topic-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem 1.25rem;
}
.topic-columns h3 {
  margin: 0 0 0.35rem;
  color: var(--faint);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.topic-columns ul { margin: 0; padding: 0; list-style: none; }
.topic-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0;
  border-top: 1px solid var(--line);
}
.topic-row div { flex: 1 1 auto; min-width: 0; }
.topic-row strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.3;
}
.topic-row span {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.35;
}
.topic-follow {
  display: grid;
  flex: 0 0 auto;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 0.25rem;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  place-items: center;
}
.topic-follow:hover { background: var(--surface); }
.topic-follow[aria-pressed="true"] {
  border-color: transparent;
  background: var(--bg-blue);
  color: var(--text-blue);
}
#topics-limit { margin: 0 0 0.75rem; }

.account-slot {
  position: relative;
  align-self: stretch;
  display: flex;
  align-items: center;
}
.account-slot[hidden] { display: none; }
.account-chip {
  max-width: 11rem;
  min-height: 2.125rem;
  padding: 0.4rem 0.7rem;
  border: 1px solid #6d7076;
  border-radius: 0.25rem;
  background: transparent;
  color: #f4f5f6;
  font-size: 0.875rem;
  font-weight: 450;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.account-chip:hover,
.account-menu[open] > .account-chip { background: #2a2c31; }
.account-menu summary { list-style: none; }
.account-menu summary::-webkit-details-marker { display: none; }
.account-panel {
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 6;
  width: 16rem;
  padding: 0.85rem 1rem;
  border: 1px solid #2a2c30;
  border-top: 0;
  background: #18191b;
  color: #f4f5f6;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  clip-path: inset(0 -4rem -4rem -4rem);
}
.account-panel p {
  margin: 0 0 0.6rem;
  color: #b8bbbf;
  font-size: 0.875rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.account-panel .text-button { display: block; margin-top: 0.55rem; color: #a9cffc; }
.account-panel .text-button.danger { color: #f5b4bc; }

@media (max-width: 1239px) {
  .desk {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 2rem;
    padding-inline: 1.75rem;
  }
  .desk-block:first-child { grid-column: 1 / -1; }
}
@media (min-width: 1240px) {
  .shell { grid-template-columns: 14rem minmax(0, 1fr) 22.5rem; }
  .grid { grid-template-columns: 1fr 1fr; }
  .desk {
    position: sticky;
    top: 4.125rem;
    align-self: start;
    max-height: calc(100vh - 4.125rem);
    overflow: auto;
    border-top: 0;
    border-left: 1px solid var(--line);
    background: transparent;
  }
}
@media (max-width: 980px) {
  .grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 800px) {
  body::before { content: none; }
  .top {
    height: auto;
    padding-block: 0.65rem;
  }
  .account-panel { top: calc(100% + 0.65rem); }
  .key-hint { display: none; }
  .shortcut-reopen {
    width: auto;
    margin-top: 0;
    white-space: nowrap;
  }
  .shell {
    display: block;
    min-height: 0;
    width: min(72rem, calc(100% - 1.5rem));
    margin-inline: auto;
  }
  .rail {
    background: transparent;
    border-right: 0;
  }
  .lanes {
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 0.15rem;
    max-height: none;
    margin-inline: -0.25rem;
    padding: 0.85rem 0 0;
    overflow-x: auto;
  }
  .topic-columns { grid-template-columns: 1fr; }
  .lanes-label,
  .lanes-rule { display: none; }
  .chip {
    width: auto;
    padding-inline: 0.7rem;
    border-radius: 0.25rem;
  }
  .wrap { padding-inline: 0; }
  .desk {
    display: block;
    padding-inline: 0;
  }
  .count { display: none; }
  .leads, .grid { grid-template-columns: 1fr; }
  .world-brief, .onboarding h2 { font-size: 1.5rem; }
}
@media (max-width: 640px) {
  .top { grid-template-columns: 1fr auto; }
  .brand { grid-column: 1; grid-row: 1; }
  .tools { grid-column: 2; grid-row: 1; }
  .search { grid-column: 1 / -1; grid-row: 2; }
  .account-slot { position: static; }
  .account-panel {
    top: 100%;
    right: calc(max(1rem, (100vw - 1440px + 2rem) / 2) + 2.125rem + 0.5rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .chip, .icon-button, .save { transition: none; }
}
