/* AI Research Desk — NeXTSTEP desktop skin. */

:root {
  --desktop: #5b6480;
  --desktop-dark: #4a536d;
  --window: #b6b6b6;
  --panel: #c0c0c0;
  --panel-2: #b0b0b0;
  --field: #ededed;
  --ink: #000;
  --ink-2: #222;
  --muted: #444;
  --faint: #666;
  --rule: #777;
  --line: #000;
  --blue: #2e5a8f;
  --blue-dark: #203f6a;
  --teal: #1f6f6a;
  --amber: #9b6418;
  --green: #3f7d4d;
  --red: #9e4238;
  --ui: Geneva, "Helvetica Neue", Arial, "Noto Sans SC", "PingFang SC", sans-serif;
  --mono: "Courier New", Courier, monospace;
}

* { box-sizing: border-box; }
[hidden], .hidden { display: none !important; }

html { background: var(--desktop); }

body.nextstep {
  margin: 0;
  min-height: 100vh;
  padding: 34px 90px 28px 24px;
  background-color: var(--desktop);
  background-image:
    radial-gradient(ellipse at 44% 0%, rgba(255, 255, 255, .09), transparent 55%),
    repeating-linear-gradient(0deg, rgba(0, 0, 0, .045) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(0, 0, 0, .025) 0 1px, transparent 1px 4px);
  background-attachment: fixed;
  color: var(--ink);
  font: 13px/1.5 var(--ui);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue-dark); text-decoration: none; }
a:hover { color: var(--blue); text-decoration: underline; }
button, input, select { font: inherit; }
button { cursor: pointer; }
code { font-family: var(--mono); font-size: .92em; }

/* Desktop menu bar */
.menubar {
  position: fixed;
  top: 0;
  left: 0;
  right: 66px;
  z-index: 50;
  display: flex;
  align-items: stretch;
  height: 24px;
  border-bottom: 1px solid #000;
  background: #b0b0b0;
  box-shadow: inset 0 1px 0 #fff;
  overflow: hidden;
  white-space: nowrap;
}
.menu-app {
  display: flex;
  align-items: center;
  padding: 0 12px;
  border-right: 1px solid #000;
  background: #000;
  color: #fff;
  font: 700 11px/1 var(--ui);
  letter-spacing: -.01em;
}
.menu-app:hover { color: #fff; text-decoration: none; }
.menu-nav { display: flex; align-items: stretch; }
.menu-nav a {
  display: flex;
  align-items: center;
  padding: 0 12px;
  border-right: 1px solid #888;
  color: #111;
  font-size: 11px;
}
.menu-nav a:hover { background: #c8c8c8; color: #000; text-decoration: none; }
.menu-nav a.active { background: var(--blue-dark); color: #fff; }
.menu-date {
  margin-left: auto;
  display: flex;
  align-items: center;
  padding: 0 10px;
  border-left: 1px solid #888;
  color: #333;
  font: 9px/1 var(--mono);
}
.menu-logout {
  display: flex;
  align-items: center;
  padding: 0 10px;
  border-left: 1px solid #888;
  color: #333;
  font: 9px/1 var(--mono);
}
.menu-logout:hover { background: #c8c8c8; color: #000; text-decoration: none; }

/* Window */
.window {
  position: relative;
  z-index: 10;
  width: min(1160px, calc(100vw - 156px));
  margin: 32px auto 0;
  background: var(--window);
  border: 1px solid #000;
  box-shadow: 2px 2px 0 #000, inset 1px 1px 0 #e8e8e8, inset -1px -1px 0 #777;
}
.window.is-min, .window.is-closed { display: none; }

.titlebar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 24px;
  margin: 2px;
  padding: 0 3px;
  border: 1px solid #000;
  background: linear-gradient(#dedede, #b8b8b8);
  user-select: none;
}
.window-title {
  position: absolute;
  left: 24px;
  right: 24px;
  overflow: hidden;
  color: #000;
  font: 700 11px/1 var(--ui);
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
  pointer-events: none;
}
.win-control {
  position: relative;
  z-index: 1;
  width: 16px;
  height: 16px;
  padding: 0;
  border: 1px solid #000;
  border-radius: 0;
  background: #c0c0c0;
  color: #000;
  box-shadow: inset 1px 1px 0 #fff, inset -1px -1px 0 #777;
  font: 10px/13px var(--mono);
}
.win-control:hover { background: #d4d4d4; }
.win-control:active { box-shadow: inset 1px 1px 0 #777, inset -1px -1px 0 #fff; }

.window-content {
  margin: 0 2px 2px;
  border: 1px solid #000;
  border-top: 0;
  background: var(--window);
}
.window-toolbar {
  display: flex;
  align-items: center;
  gap: 15px;
  height: 25px;
  padding: 0 8px;
  overflow: hidden;
  border-bottom: 1px solid #000;
  background: #b0b0b0;
  box-shadow: inset 0 1px 0 #fff;
  color: #333;
  font: 9px/1 var(--mono);
  text-transform: uppercase;
  white-space: nowrap;
}
.window-toolbar b { color: #000; font-weight: 400; }
.window-toolbar .sync { margin-left: auto; }

.shell {
  margin: 0 auto;
  padding: 22px 26px 26px;
  max-width: none;
  width: auto;
}
.foot {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin: 0 26px;
  padding: 8px 0 12px;
  border-top: 1px solid #000;
  color: #444;
  font: 9px/1.4 var(--mono);
}

/* Page heading */
.pagehead {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 15px;
  border-bottom: 1px solid #000;
}
.eyebrow {
  margin: 0 0 7px;
  color: var(--blue-dark);
  font: 9px/1.2 var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
}
.pagehead h1 {
  margin: 0;
  color: #000;
  font: 600 clamp(28px, 3.6vw, 40px)/1.06 var(--ui);
  letter-spacing: -.035em;
}
.dek {
  max-width: 780px;
  margin: 11px 0 0;
  color: #222;
  font-size: 13px;
  line-height: 1.65;
}
.dek b { color: #000; font-weight: 600; }
.radar-head .dek.overview { font-size: 15px; color: #1a1a1a; }
.ai-note {
  margin: 8px 0 0;
  color: #555;
  font: 9px/1.4 var(--mono);
}

.date-switch {
  flex: 0 0 auto;
  max-width: 300px;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 3px;
}
.date-switch > span {
  width: 100%;
  margin-bottom: 4px;
  color: #444;
  font: 9px/1 var(--mono);
  letter-spacing: .1em;
  text-align: right;
}
.date-switch a {
  padding: 3px 6px;
  border: 1px solid #000;
  background: #c0c0c0;
  color: #000;
  box-shadow: inset 1px 1px 0 #fff, inset -1px -1px 0 #777;
  font: 9px/1.2 var(--mono);
}
.date-switch a:hover { background: #d4d4d4; text-decoration: none; }
.date-switch a.on { background: var(--blue-dark); color: #fff; }
.date-switch i { color: #444; font: 9px/1.2 var(--mono); }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 4px;
  padding: 8px 0 5px;
  border-bottom: 1px solid #000;
}
.section-head.spaced { margin-top: 20px; }
.section-head h2 {
  display: flex;
  align-items: baseline;
  gap: 9px;
  margin: 0;
  color: #000;
  font: 700 9px/1.2 var(--mono);
  letter-spacing: .08em;
}
.section-head h2 small { color: #555; font-size: 9px; font-weight: 400; letter-spacing: 0; }
.section-head > a { color: #1f4e79; font: 9px/1.2 var(--mono); }
.sync-badge {
  flex: 0 0 auto;
  padding: 6px 8px;
  border: 1px solid #000;
  background: var(--panel);
  box-shadow: inset 1px 1px 0 #fff, inset -1px -1px 0 #777;
  text-align: right;
}
.sync-badge span { display: block; color: #555; font: 8.5px/1.2 var(--mono); }
.sync-badge b { display: block; margin-top: 3px; color: #000; font: 9px/1.2 var(--mono); font-weight: 400; }

/* Daily radar */
.radar-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 278px;
  gap: 22px;
  align-items: start;
  margin-top: 18px;
}
.radar-main { min-width: 0; }
.radar-label {
  display: flex;
  justify-content: space-between;
  padding: 0 0 6px;
  border-bottom: 1px solid #000;
  color: #333;
  font: 9px/1.2 var(--mono);
  letter-spacing: .1em;
}
.radar-label span { color: var(--blue-dark); }
.signal {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  margin-top: 9px;
  padding: 13px 14px 14px;
  border: 1px solid #000;
  background: var(--panel);
  box-shadow: inset 1px 1px 0 #fff, inset -1px -1px 0 #777;
}
.signal-no {
  padding-top: 2px;
  color: var(--blue-dark);
  font: 17px/1 var(--mono);
  letter-spacing: -.06em;
}
.signal-main { min-width: 0; }
.signal-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  color: #444;
  font: 9px/1.2 var(--mono);
  letter-spacing: .05em;
  text-transform: uppercase;
}
.signal-meta .sec, .paper-meta .sec { color: var(--blue-dark); }
.signal h2 {
  margin: 6px 0 6px;
  color: #000;
  font: 600 20px/1.35 var(--ui);
  letter-spacing: -.02em;
  overflow-wrap: anywhere;
}
.signal-summary {
  margin: 0;
  color: #1f1f1f;
  font-size: 13px;
  line-height: 1.68;
}
.signal-why {
  margin: 9px 0 0;
  padding: 6px 8px;
  border-left: 3px solid var(--blue);
  background: #b5b5b5;
  color: #333;
  font-size: 11.5px;
  line-height: 1.55;
}
.signal-why b, .signal-evidence b {
  margin-right: 7px;
  color: var(--blue-dark);
  font: 9px/1.2 var(--mono);
  letter-spacing: .06em;
}
.signal-evidence {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 11px;
  margin-top: 10px;
  color: #444;
  font-size: 10.5px;
}
.signal-evidence b { flex: 0 0 auto; }
.evidence {
  color: #1f4e79;
  border-bottom: 1px dotted #557;
  font-size: 10.5px;
  line-height: 1.45;
}
.evidence:hover { color: #000; border-color: #000; }

.raw-candidates {
  margin-top: 18px;
  padding-top: 8px;
  border-top: 1px solid #000;
}
.raw-candidates summary {
  cursor: pointer;
  color: #333;
  font: 9px/1.4 var(--mono);
}
.raw-candidates summary:hover { color: var(--blue); }
.raw-list { margin-top: 8px; }
.weekly-theme { margin-top: 10px; }
.week-calendar { display: flex; flex-direction: column; }
.week-calendar a, .week-empty {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 5px 0;
  border-bottom: 1px dotted #888;
  color: #555;
  font: 9px/1.2 var(--mono);
}
.week-calendar a:last-child, .week-empty:last-child { border-bottom: 0; }
.week-calendar a.has { color: #1f4e79; }
.week-calendar a.has:hover { color: #000; }
.week-calendar b { font-weight: 400; }
.week-log { display: flex; flex-direction: column; }
.week-log a {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 8px;
  padding: 7px 0;
  border-bottom: 1px dotted #888;
  color: #333;
  font-size: 10.5px;
}
.week-log a span { color: #1f4e79; font: 9px/1.3 var(--mono); }
.week-log a b { font-weight: 400; line-height: 1.45; }
.week-log a:hover { color: #000; }

/* Rail */
.rail { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.rail-card {
  padding: 9px 10px;
  border: 1px solid #000;
  background: var(--panel);
  box-shadow: inset 1px 1px 0 #fff, inset -1px -1px 0 #777;
}
.rail-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 7px;
  border-bottom: 1px solid #888;
}
.rail-head h2 {
  margin: 0;
  color: #000;
  font: 700 9px/1.2 var(--mono);
  letter-spacing: .08em;
}
.rail-head > a, .rail-head > span {
  color: #444;
  font: 9px/1.2 var(--mono);
}
.rail-head > a:hover { color: var(--blue); }
.harness-line {
  margin: 0;
  padding: 7px 0;
  border-bottom: 1px dotted #888;
  color: #333;
  font-size: 11px;
  line-height: 1.55;
}
.harness-line:last-child { border-bottom: 0; }
.deep-list { list-style: none; margin: 0; padding: 0; }
.deep-item { padding: 7px 0; border-bottom: 1px dotted #888; }
.deep-item:last-child { border-bottom: 0; }
.deep-item .evidence { display: block; color: #1f4e79; font-size: 10.5px; }
.deep-item p { margin: 3px 0 0; color: #444; font-size: 10px; line-height: 1.45; }

.release-mini-list { list-style: none; margin: 0; padding: 0; }
.release-mini { padding: 7px 0; border-bottom: 1px dotted #888; }
.release-mini:last-child { border-bottom: 0; }
.release-mini > div:first-child { display: flex; align-items: center; gap: 5px; min-width: 0; }
.release-repo { overflow: hidden; color: #111; font-size: 10.5px; text-overflow: ellipsis; white-space: nowrap; }
.release-meta { display: flex; justify-content: space-between; gap: 6px; margin-top: 3px; color: #555; font: 8.5px/1.2 var(--mono); }
.release-meta code { color: #333; font-size: 8.5px; }
.kind {
  flex: 0 0 auto;
  padding: 1px 4px;
  border: 1px solid #666;
  color: #444;
  font: 8px/1.2 var(--mono);
}
.kind-agent { border-color: #2e5a8f; color: #203f6a; }
.kind-eval { border-color: #8b641e; color: #7b5314; }
.kind-coding { border-color: #315f87; color: #234b6d; }
.kind-model { border-color: #666; color: #444; }

.health-row {
  display: grid;
  grid-template-columns: 8px 44px 1fr auto;
  align-items: center;
  gap: 6px;
  padding: 6px 0;
  border-bottom: 1px dotted #888;
  font: 9px/1.2 var(--mono);
}
.health-row:last-child { border-bottom: 0; }
.dot { width: 5px; height: 5px; border: 1px solid #333; border-radius: 50%; background: #999; }
.dot.ok { background: #5f9e6a; }
.dot.bad { background: #a14b3f; }
.health-src { color: #333; text-transform: uppercase; }
.health-count { color: #000; }
.health-time { color: #555; font-size: 8.5px; }
.watch > div:not(.rail-head) { display: flex; flex-direction: column; }
.watch a {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px dotted #888;
  color: #333;
  font-size: 10.5px;
}
.watch a:last-child { border-bottom: 0; }
.watch a b { color: #555; font-weight: 400; }
.watch a:hover { color: var(--blue); }
.empty-mini { margin: 8px 0 2px; color: #555; font: 9.5px/1.5 var(--mono); }

/* Paper cards / raw candidates */
.paper {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 28px;
  gap: 10px;
  padding: 11px 12px;
  margin-bottom: 5px;
  border: 1px solid #000;
  background: var(--panel);
  box-shadow: inset 1px 1px 0 #fff, inset -1px -1px 0 #777;
}
.paper.no-rank { grid-template-columns: minmax(0, 1fr) 28px; }
.paper.lead { background: #c8c8c8; }
.paper.is-saved, .lib-row.is-saved { box-shadow: inset 3px 0 0 var(--amber); }
.paper-rank { color: var(--blue-dark); font: 17px/1 var(--mono); }
.paper-main { min-width: 0; }
.paper-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 10px;
  color: #444;
  font: 8.5px/1.2 var(--mono);
  letter-spacing: .05em;
  text-transform: uppercase;
}
.paper-meta .up { color: #7b5314; }
.paper-meta .src { color: #444; }
.paper-meta time { margin-left: auto; color: #555; white-space: nowrap; }
.paper h3 { margin: 5px 0 4px; color: #000; font-size: 14px; font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; }
.paper h3 a:hover { color: var(--blue); }
.paper-summary {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
  color: #333;
  font-size: 11.5px;
  line-height: 1.55;
}
.paper-foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 5px 14px; margin-top: 7px; }
.authors { color: #555; font-size: 10px; }
.plinks { display: flex; flex-wrap: wrap; gap: 8px; }
.plink { color: #1f4e79; font: 8.5px/1.2 var(--mono); }
.plink:hover { color: #000; }
.tags { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 6px; }
.tag {
  padding: 1px 4px;
  border: 1px solid #888;
  background: #b8b8b8;
  color: #333;
  font: 8.5px/1.2 var(--mono);
}
.save-btn {
  align-self: start;
  width: 25px;
  height: 25px;
  padding: 0;
  border: 1px solid #000;
  background: #c0c0c0;
  color: #555;
  box-shadow: inset 1px 1px 0 #fff, inset -1px -1px 0 #777;
  font: 14px/1 var(--mono);
}
.save-btn:hover { background: #d4d4d4; }
.save-btn.on { color: var(--amber); }

/* Harness */
.bench-section { margin-top: 18px; }
.bench-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.bench-card {
  display: block;
  min-height: 100px;
  padding: 10px 11px;
  border: 1px solid #000;
  background: var(--panel);
  box-shadow: inset 1px 1px 0 #fff, inset -1px -1px 0 #777;
}
.bench-card:hover { background: #c8c8c8; text-decoration: none; }
.bench-top { display: flex; justify-content: space-between; align-items: center; }
.bench-top b { color: #333; font: 12px/1 var(--mono); font-weight: 400; }
.bench-card h3 { margin: 11px 0 4px; color: #000; font: 600 16px/1.2 var(--ui); }
.bench-card p { margin: 0; color: #333; font-size: 10.5px; line-height: 1.45; }
.harness-grid { display: grid; grid-template-columns: minmax(0, 1fr) 278px; gap: 22px; align-items: start; margin-top: 18px; }
.harness-grid > section { min-width: 0; }
.release-list { border-top: 1px solid #000; }
.release-row {
  display: grid;
  grid-template-columns: 55px minmax(0, 1fr) 72px;
  gap: 11px;
  padding: 11px 0;
  border-bottom: 1px solid #888;
}
.release-kind { padding-top: 1px; color: #444; font: 8.5px/1.2 var(--mono); letter-spacing: .05em; }
.release-kind.kind-agent { color: var(--blue-dark); }
.release-kind.kind-eval { color: #7b5314; }
.release-body { min-width: 0; }
.release-body h3 { margin: 0; color: #000; font-size: 13px; font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; }
.release-body h3 code { margin-left: 6px; color: #555; font-size: 8.5px; }
.release-body p { margin: 4px 0 0; color: #333; font-size: 10.5px; line-height: 1.45; }
.release-row > time { color: #555; font: 8.5px/1.2 var(--mono); text-align: right; white-space: nowrap; }
.repo-link {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 0;
  border-bottom: 1px dotted #888;
  color: #333;
  font-size: 10.5px;
}
.repo-link:last-child { border-bottom: 0; }
.repo-link em { color: #555; font: 8px/1.2 var(--mono); font-style: normal; }
.repo-link:hover { color: var(--blue); text-decoration: none; }

/* Library */
.filters {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid #000;
}
.filters input[type="search"] {
  flex: 1 1 240px;
  min-width: 160px;
  height: 27px;
  padding: 0 8px;
  border: 1px solid #000;
  border-radius: 0;
  background: var(--field);
  color: #000;
  box-shadow: inset 1px 1px 0 #777;
  outline: none;
  font-size: 11.5px;
}
.filters input[type="search"]:focus { background: #fff; }
.filters select {
  height: 27px;
  padding: 0 20px 0 6px;
  border: 1px solid #000;
  border-radius: 0;
  background: #c0c0c0;
  color: #111;
  box-shadow: inset 1px 1px 0 #fff, inset -1px -1px 0 #777;
  font: 10px/1 var(--mono);
}
.filters button {
  height: 27px;
  padding: 0 11px;
  border: 1px solid #000;
  border-radius: 0;
  background: #c0c0c0;
  color: #000;
  box-shadow: inset 1px 1px 0 #fff, inset -1px -1px 0 #777;
  font: 10px/1 var(--mono);
}
.filters button:hover { background: #d4d4d4; }
.saved-toggle { display: flex; align-items: center; gap: 4px; margin-left: auto; color: #333; font: 9px/1 var(--mono); cursor: pointer; }
.saved-toggle input { accent-color: var(--blue); }
.lib-status { display: flex; justify-content: space-between; padding: 7px 0; color: #444; font: 9px/1.2 var(--mono); }
.library-list { border-top: 1px solid #000; }
.lib-row {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 28px;
  gap: 9px;
  padding: 10px 11px;
  margin-bottom: 4px;
  border: 1px solid #000;
  background: var(--panel);
  box-shadow: inset 1px 1px 0 #fff, inset -1px -1px 0 #777;
}
.lib-row:hover { background: #c8c8c8; }
.lib-index { padding-top: 2px; color: #444; font: 10px/1 var(--mono); }
.lib-main { min-width: 0; }
.lib-row h3 { margin: 4px 0 3px; color: #000; font-size: 13px; font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; }
.lib-summary {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
  color: #333;
  font-size: 10.5px;
  line-height: 1.5;
}
.pager { display: flex; justify-content: space-between; align-items: center; padding: 13px 0; color: #444; font: 9px/1.2 var(--mono); }
.pager a { padding: 4px 7px; border: 1px solid #000; background: #c0c0c0; color: #000; box-shadow: inset 1px 1px 0 #fff, inset -1px -1px 0 #777; }
.pager a:hover { background: #d4d4d4; text-decoration: none; }

.empty-state { padding: 34px 0; text-align: center; color: #333; }
.empty-state h2 { margin: 0 0 7px; color: #000; font-size: 18px; }
.empty-state p { max-width: 560px; margin: 0 auto; font-size: 11.5px; line-height: 1.6; }

/* Dock */
.dock {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 45;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 66px;
  padding: 8px 6px;
  border-left: 1px solid #000;
  background: #a9a9a9;
  box-shadow: inset 1px 0 0 #fff, inset -1px 0 0 #777;
}
.dock-app {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 42px;
  border: 1px solid #000;
  background: linear-gradient(#d0d0d0, #aaa);
  box-shadow: inset 1px 1px 0 #fff, inset -1px -1px 0 #777;
}
.dock-app img { width: 34px; height: 34px; display: block; }
.dock-app:hover { background: #c8c8c8; text-decoration: none; }
.dock-app.active { background: #8ea3bd; border-color: var(--blue-dark); }

/* Mini window / desktop icon */
.mini-window {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 40;
  width: 250px;
  max-width: calc(100vw - 36px);
  padding: 2px;
  border: 1px solid #000;
  background: var(--window);
  box-shadow: 2px 2px 0 #000, inset 1px 1px 0 #fff, inset -1px -1px 0 #777;
  color: #000;
  text-align: center;
}
.mini-window span {
  display: block;
  height: 19px;
  border: 1px solid #000;
  background: linear-gradient(#dedede, #b8b8b8);
  font: 700 10px/17px var(--ui);
}
.desktop-icon {
  position: fixed;
  top: 46px;
  left: 22px;
  z-index: 39;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 88px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
}
.desktop-icon img { width: 48px; height: 48px; filter: drop-shadow(2px 2px 0 #000); }
.desktop-icon span { padding: 2px 4px; border: 1px solid #000; background: #b0b0b0; color: #000; font: 10px/1.3 var(--ui); }

/* Login */
.login-body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 34px 24px 24px;
}
.login-body .menubar { right: 0; }
.login-window { width: min(390px, calc(100vw - 40px)); margin: 0; }
.login-window .window-content { padding: 20px 22px 18px; }
.login { display: block; }
.login h1 { margin: 0; color: #000; font: 600 28px/1.1 var(--ui); letter-spacing: -.035em; }
.login-sub { margin: 9px 0 17px; color: #333; font-size: 11.5px; }
.login-label {
  display: block;
  color: #333;
  font: 9px/1.2 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.login-label input {
  display: block;
  width: 100%;
  height: 30px;
  margin-top: 5px;
  padding: 0 7px;
  border: 1px solid #000;
  border-radius: 0;
  background: var(--field);
  box-shadow: inset 1px 1px 0 #777;
  outline: none;
  color: #000;
  font: 12px/1 var(--mono);
}
.login-label input:focus { background: #fff; }
.login button {
  width: 100%;
  height: 29px;
  margin-top: 10px;
  border: 1px solid #000;
  border-radius: 0;
  background: #c0c0c0;
  color: #000;
  box-shadow: inset 1px 1px 0 #fff, inset -1px -1px 0 #777;
  font: 10px/1 var(--mono);
}
.login button:hover { background: #d4d4d4; }
.login-error {
  margin: 0 0 10px;
  padding: 6px 7px;
  border: 1px solid #000;
  border-left: 4px solid var(--red);
  background: #d4b0aa;
  color: #591e17;
  font-size: 10.5px;
}
.login-foot { margin: 14px 0 0; color: #555; font: 9px/1.4 var(--mono); text-align: center; }

/* Scrollbars, a small NeXT touch */
::-webkit-scrollbar { width: 14px; height: 14px; }
::-webkit-scrollbar-track { background: #a9a9a9; box-shadow: inset 1px 1px 0 #777; }
::-webkit-scrollbar-thumb { border: 1px solid #000; background: #c0c0c0; box-shadow: inset 1px 1px 0 #fff, inset -1px -1px 0 #777; }
::-webkit-scrollbar-thumb:hover { background: #d4d4d4; }

@media (max-width: 1080px) {
  .radar-grid, .harness-grid { grid-template-columns: 1fr; }
  .rail { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  body.nextstep {
    padding: 30px 8px 16px;
    background-image:
      radial-gradient(ellipse at 44% 0%, rgba(255, 255, 255, .08), transparent 55%),
      repeating-linear-gradient(0deg, rgba(0, 0, 0, .045) 0 1px, transparent 1px 3px);
  }
  .menubar { right: 0; height: 23px; }
  .menu-app { padding: 0 8px; font-size: 10px; }
  .menu-nav { overflow-x: auto; }
  .menu-nav a { padding: 0 8px; font-size: 10px; }
  .menu-date { display: none; }
  .menu-logout { padding: 0 8px; }
  .dock { display: none; }
  .window { width: 100%; margin-top: 28px; }
  .titlebar { height: 23px; }
  .window-title { left: 22px; right: 22px; font-size: 10px; }
  .window-toolbar { gap: 9px; padding: 0 6px; font-size: 8.5px; overflow-x: auto; }
  .window-toolbar .sync { margin-left: 0; }
  .shell { padding: 14px 12px 18px; }
  .foot { display: block; margin: 0 12px; padding-bottom: 8px; }
  .foot span { display: block; margin-bottom: 3px; }
  .pagehead { display: block; }
  .pagehead h1 { font-size: 28px; }
  .date-switch { justify-content: flex-start; max-width: none; margin-top: 12px; }
  .date-switch > span { text-align: left; }
  .radar-grid, .harness-grid { margin-top: 13px; }
  .signal { grid-template-columns: 26px minmax(0, 1fr); gap: 8px; padding: 11px 10px; }
  .signal-no { font-size: 14px; }
  .signal h2 { font-size: 17px; }
  .signal-summary { font-size: 12px; }
  .signal-why { font-size: 11px; }
  .rail { display: flex; }
  .bench-grid { grid-template-columns: 1fr; }
  .release-row { grid-template-columns: 42px minmax(0, 1fr); }
  .release-row > time { display: none; }
  .filters input[type="search"] { flex-basis: 100%; }
  .saved-toggle { margin-left: 0; }
  .paper { grid-template-columns: minmax(0, 1fr) 26px; gap: 8px; padding: 9px; }
  .paper.no-rank { grid-template-columns: minmax(0, 1fr) 26px; }
  .paper.lead { grid-template-columns: 26px minmax(0, 1fr) 26px; }
  .lib-row { grid-template-columns: 25px minmax(0, 1fr) 26px; gap: 7px; padding: 9px; }
  .lib-index { font-size: 8.5px; }
  .login-body { padding: 30px 12px 12px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}