/* ============================================================
   RoadOS · Extras — styles for the future layer.
   Same design tokens, same discipline. New rooms, same house.
   Remember the Road. Pave Tomorrow.
   ============================================================ */

/* ---------- 01 · Spaces ---------- */
.space-switch {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-left: 10px;
  padding-left: 12px;
  border-left: 1px solid var(--line);
}

.space-dot {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font: 700 10px/1 var(--mono);
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

.space-dot:hover {
  background: var(--hover);
  transform: translateY(-1px);
}

.space-dot.is-on {
  background: #111;
  border-color: #111;
  color: #fff;
}

.win.is-offspace {
  display: none;
}

/* ---------- 02 · Widgets ---------- */
.widget-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.widget-layer.is-hidden {
  display: none;
}

.os-widget {
  position: absolute;
  pointer-events: auto;
  padding: 16px 18px;
  border: 1px solid rgba(217, 217, 213, 0.7);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.6);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  backdrop-filter: blur(20px) saturate(140%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 12px 34px rgba(0, 0, 0, 0.07);
  cursor: grab;
  user-select: none;
}

.os-widget:active {
  cursor: grabbing;
}

.widget-clock {
  right: 26px;
  top: 20px;
  text-align: right;
  min-width: 170px;
}

.widget-clock .w-time {
  font-size: 34px;
  font-weight: 560;
  letter-spacing: -0.045em;
  line-height: 1;
}

.widget-clock .w-date {
  margin-top: 6px;
  color: var(--muted);
  font-size: 11px;
}

.widget-motto {
  right: 26px;
  bottom: calc(var(--dock-h) + 22px);
  text-align: right;
}

.w-motto-line {
  color: var(--muted);
  font-size: 13px;
  font-weight: 560;
  letter-spacing: -0.015em;
}

.w-motto-line.is-strong {
  color: var(--ink);
  font-weight: 700;
}

.w-motto-brand {
  margin-top: 7px;
  color: var(--faint);
  font: 600 8px/1 var(--mono);
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.widget-stats {
  left: 132px;
  bottom: calc(var(--dock-h) + 22px);
  display: flex;
  gap: 20px;
}

.w-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.w-stat b {
  font-size: 20px;
  font-weight: 620;
  letter-spacing: -0.03em;
  line-height: 1;
}

.w-stat span {
  color: var(--faint);
  font: 600 8px/1 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ---------- 03 · Missions ---------- */
.missions-body {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  height: calc(100% - 8px);
  padding: 2px 15px 14px;
}

.mission-col {
  display: flex;
  flex-direction: column;
  min-height: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper-soft);
}

.mission-col-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 12px 8px;
}

.mission-count {
  display: grid;
  place-items: center;
  min-width: 20px;
  height: 18px;
  padding: 0 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font: 600 9px/1 var(--mono);
}

.mission-drop {
  flex: 1;
  min-height: 60px;
  overflow: auto;
  padding: 4px 8px;
  scrollbar-width: thin;
  transition: background 0.16s ease;
}

.mission-drop.is-over {
  background: var(--selected);
}

.mission-empty {
  padding: 18px 8px;
  color: var(--faint);
  font: 600 8.5px/1 var(--mono);
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
}

.mission-card {
  margin-bottom: 8px;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  cursor: grab;
  transition: transform 0.14s ease, box-shadow 0.14s ease, opacity 0.14s ease;
}

.mission-card:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.07);
  transform: translateY(-1px);
}

.mission-card.is-dragging {
  opacity: 0.45;
}

.mission-title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.012em;
  line-height: 1.45;
}

.mission-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 9px;
}

.mission-agent {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 22px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 9px;
  font-weight: 620;
}

.mission-agent:hover {
  background: var(--hover);
}

.mission-del {
  color: var(--faint);
  font-size: 10px;
  opacity: 0;
  transition: opacity 0.14s ease, color 0.14s ease;
}

.mission-card:hover .mission-del {
  opacity: 1;
}

.mission-del:hover {
  color: #111;
}

.mission-add {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 4px 8px 8px;
  padding: 7px;
  border: 1px dashed var(--line-strong);
  border-radius: 10px;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 600;
  transition: background 0.16s ease, color 0.16s ease;
}

.mission-add:hover {
  background: #fff;
  color: var(--ink);
}

.mission-add svg {
  width: 11px;
  height: 11px;
}

/* ---------- 04 · Horizon ---------- */
.horizon-body {
  display: flex;
  flex-direction: column;
  height: calc(100% - 8px);
  padding: 2px 15px 14px;
  gap: 8px;
}

.hz-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hz-month {
  font-size: 14px;
  font-weight: 670;
  letter-spacing: -0.02em;
}

.hz-dows {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  color: var(--faint);
  font: 600 8.5px/1 var(--mono);
  text-align: center;
  text-transform: uppercase;
}

.hz-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
}

.hz-cell {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1.25;
  border: 1px solid transparent;
  border-radius: 9px;
  font-size: 11.5px;
  font-weight: 560;
  transition: background 0.14s ease, border-color 0.14s ease;
}

.hz-cell:hover {
  background: var(--hover);
}

.hz-cell.is-pad {
  pointer-events: none;
}

.hz-cell.is-today {
  border-color: var(--line-strong);
  font-weight: 720;
}

.hz-cell.is-selected {
  background: #111;
  border-color: #111;
  color: #fff;
}

.hz-dot {
  position: absolute;
  bottom: 4px;
  left: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  transform: translateX(-50%);
}

.hz-day {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper-soft);
}

.hz-events {
  flex: 1;
  min-height: 0;
  overflow: auto;
  scrollbar-width: thin;
}

.hz-event {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 2px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  font-weight: 560;
}

.hz-event:first-child {
  border-top: 0;
}

.hz-event button {
  color: var(--faint);
  font-size: 10px;
}

.hz-event button:hover {
  color: #111;
}

.hz-none {
  padding: 14px 2px;
  color: var(--muted);
  font-size: 11.5px;
}

.hz-compose {
  display: flex;
  gap: 7px;
}

.hz-input {
  flex: 1;
  min-width: 0;
  height: 34px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  outline: 0;
  font-size: 12px;
}

.hz-add {
  width: 34px;
  height: 34px;
  background: #111;
  border-color: #111;
  color: #fff;
}

.hz-add:hover {
  background: #2b2b2b;
  color: #fff;
}

/* ---------- 05 · Pulse ---------- */
.pulse-body {
  display: flex;
  flex-direction: column;
  height: calc(100% - 8px);
  padding: 2px 15px 14px;
  gap: 10px;
}

.pulse-canvas {
  flex: 1;
  min-height: 120px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper-soft);
}

.pulse-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.pulse-key {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font: 600 9px/1 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pulse-key i {
  width: 14px;
  height: 2px;
  background: #0a0a0a;
  border-radius: 2px;
}

.pulse-readout {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.pulse-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
}

.pulse-stat b {
  font-size: 17px;
  font-weight: 620;
  letter-spacing: -0.03em;
}

.pulse-stat span {
  color: var(--faint);
  font: 600 7.5px/1.4 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---------- 06 · RoadCode ---------- */
.code-body {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 10px;
  height: calc(100% - 8px);
  padding: 2px 15px 14px;
}

.code-side {
  display: flex;
  flex-direction: column;
  min-height: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper-soft);
  overflow: hidden;
}

.code-files {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 6px;
  scrollbar-width: thin;
}

.code-file {
  display: flex;
  align-items: center;
  gap: 7px;
  width: 100%;
  padding: 7px 8px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 560;
  text-align: left;
  color: var(--ink-2);
}

.code-file svg {
  width: 12px;
  height: 12px;
  flex: none;
}

.code-file span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.code-file:hover {
  background: var(--hover);
}

.code-file.is-on {
  background: #111;
  color: #fff;
}

.code-new {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 6px;
  padding: 7px;
  border: 1px dashed var(--line-strong);
  border-radius: 9px;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 600;
}

.code-new:hover {
  background: #fff;
  color: var(--ink);
}

.code-new svg {
  width: 11px;
  height: 11px;
}

.code-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  gap: 7px;
}

.code-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.code-name {
  font: 600 11px var(--mono);
}

.code-actions {
  display: flex;
  gap: 6px;
}

.code-area {
  flex: 1;
  min-height: 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  resize: none;
  outline: 0;
  color: var(--ink);
  font: 12px/1.7 var(--mono);
  tab-size: 2;
}

.code-area:focus {
  border-color: #bdbdb9;
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.04);
}

.code-console {
  max-height: 96px;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-sm);
  background: #0a0a0a;
  color: #f2f2f0;
  overflow: hidden;
}

.code-console-label {
  padding: 5px 12px 0;
  color: rgba(255, 255, 255, 0.35);
  font: 600 7.5px/1 var(--mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.code-out {
  flex: 1;
  min-height: 34px;
  overflow: auto;
  padding: 5px 12px 9px;
  font: 10.5px/1.7 var(--mono);
  scrollbar-width: thin;
}

.code-out .is-err {
  color: rgba(255, 255, 255, 0.55);
  text-decoration: underline;
  text-decoration-style: dotted;
}

.code-status {
  color: var(--faint);
  font: 600 8.5px/1 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---------- 07 · Vault ---------- */
.vault-body {
  display: flex;
  flex-direction: column;
  height: calc(100% - 8px);
  padding: 2px 15px 14px;
  gap: 9px;
}

.vault-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.vault-count {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.vault-count b {
  font-size: 24px;
  font-weight: 620;
  letter-spacing: -0.03em;
}

.vault-count span {
  color: var(--muted);
  font-size: 11px;
}

.vault-verdict:empty {
  display: none;
}

.vault-verdict {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper-soft);
  font-size: 11.5px;
  font-weight: 600;
}

.vault-ok::before,
.vault-bad::before {
  content: "";
}

.vault-list {
  flex: 1;
  min-height: 0;
  overflow: auto;
  scrollbar-width: thin;
}

.vault-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 10px;
  padding: 8px 2px;
  border-top: 1px solid var(--line);
}

.vault-row:first-child {
  border-top: 0;
}

.vault-idx {
  color: var(--faint);
  font: 600 9px var(--mono);
}

.vault-text {
  overflow: hidden;
  font-size: 11.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vault-hash {
  color: var(--muted);
  font: 500 9px var(--mono);
}

/* ---------- 08 · Frequencies ---------- */
.radio-body {
  display: flex;
  flex-direction: column;
  height: calc(100% - 8px);
  padding: 2px 15px 14px;
  gap: 10px;
}

.radio-list {
  flex: 1;
  min-height: 0;
  overflow: auto;
}

.radio-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 58px;
  padding: 7px 8px;
  border-top: 1px solid var(--line);
  border-radius: 12px;
  text-align: left;
}

.radio-row:first-child {
  border-top: 0;
}

.radio-row:hover {
  background: var(--hover);
}

.radio-row.is-playing {
  background: var(--selected);
}

.radio-disc {
  position: relative;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #fff 0 4px, transparent 4px),
    repeating-radial-gradient(circle at center, #161616 0 2px, #222 2px 4px);
}

.radio-disc.is-spin {
  animation: disc-spin 2.6s linear infinite;
}

@keyframes disc-spin {
  to { transform: rotate(360deg); }
}

.radio-state {
  color: var(--muted);
  font: 600 9px/1 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

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

.radio-vol {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--faint);
  font: 600 9px/1 var(--mono);
  text-transform: uppercase;
}

.radio-vol input {
  width: 110px;
  accent-color: #111;
}

.radio-note {
  color: var(--faint);
  font: 600 8.5px/1.5 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---------- 09 · Graph ---------- */
.graph-body {
  display: flex;
  flex-direction: column;
  height: calc(100% - 8px);
  padding: 2px 15px 14px;
  gap: 8px;
}

.graph-canvas {
  flex: 1;
  min-height: 200px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background:
    radial-gradient(500px 300px at 50% 40%, #ffffff, transparent 70%),
    var(--paper-soft);
  touch-action: none;
}

.graph-hint {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--faint);
  font: 600 8.5px/1 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---------- 10 · Screensaver ---------- */
.road-screensaver {
  position: fixed;
  inset: 0;
  z-index: 500;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.road-screensaver.is-on {
  opacity: 1;
}

.road-screensaver canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* ---------- 11 · Tour ---------- */
.tour-overlay {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.45);
  -webkit-backdrop-filter: blur(8px) saturate(140%);
  backdrop-filter: blur(8px) saturate(140%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.tour-overlay.is-on {
  opacity: 1;
}

.tour-overlay.is-done {
  opacity: 0;
}

.tour-card {
  width: min(440px, calc(100vw - 40px));
  padding: 26px 28px 20px;
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow-float);
  text-align: left;
}

.tour-card h2 {
  margin: 8px 0 0;
  font-size: 21px;
  font-weight: 680;
  letter-spacing: -0.03em;
}

.tour-card p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
  letter-spacing: -0.01em;
}

.tour-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
}

.tour-next {
  padding: 9px 18px;
  border-radius: 11px;
  background: #111;
  color: #fff;
  font-size: 12.5px;
  font-weight: 620;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 3px 8px rgba(0, 0, 0, 0.18);
  transition: background 0.16s ease, transform 0.16s ease;
}

.tour-next:hover {
  background: #2b2b2b;
}

.tour-next:active {
  transform: scale(0.97);
}

.tour-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 18px;
}

.tour-dots i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--line-strong);
  transition: background 0.2s ease, transform 0.2s ease;
}

.tour-dots i.is-on {
  background: #111;
  transform: scale(1.3);
}

/* ---------- responsive care ---------- */
@media (max-width: 900px) {
  .missions-body {
    grid-template-columns: 1fr;
    overflow: auto;
  }

  .code-body {
    grid-template-columns: 1fr;
  }

  .code-side {
    max-height: 120px;
  }

  .pulse-readout {
    grid-template-columns: repeat(2, 1fr);
  }

  .widget-stats,
  .widget-motto {
    display: none;
  }
}

/* ---------- Notification Center ---------- */
.notify-panel {
  position: fixed;
  top: calc(var(--topbar) + 10px);
  right: 12px;
  bottom: calc(var(--dock-h) + 16px);
  z-index: 350;
  width: min(360px, calc(100vw - 24px));
  display: flex;
  flex-direction: column;
  padding: 16px 16px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: blur(26px) saturate(150%);
  backdrop-filter: blur(26px) saturate(150%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 30px 80px rgba(0, 0, 0, 0.18);
  opacity: 0;
  transform: translateX(16px);
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.notify-panel.is-open {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.notify-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.notify-head h2 {
  margin: 3px 0 0;
  font-size: 16px;
  font-weight: 680;
  letter-spacing: -0.025em;
}

.notify-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0;
}

.notify-chip {
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 10.5px;
  font-weight: 620;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.notify-chip:hover {
  background: var(--hover);
}

.notify-chip.is-on {
  background: #111;
  border-color: #111;
  color: #fff;
}

.notify-list {
  flex: 1;
  min-height: 0;
  overflow: auto;
  scrollbar-width: thin;
}

.notify-row {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  align-items: start;
  gap: 9px;
  padding: 9px 2px;
  border-top: 1px solid var(--line);
}

.notify-row:first-child {
  border-top: 0;
}

.notify-icon {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
}

.notify-icon svg {
  width: 11px;
  height: 11px;
}

.notify-text {
  font-size: 11.5px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.notify-row time {
  color: var(--faint);
  font: 600 9px var(--mono);
  white-space: nowrap;
}

.notify-foot {
  padding-top: 9px;
  color: var(--faint);
  font: 600 8px/1 var(--mono);
  letter-spacing: 0.18em;
  text-align: center;
  text-transform: uppercase;
}

/* ---------- persona select ---------- */
.chat-meta-right {
  display: flex;
  align-items: center;
  gap: 9px;
}

.chat-persona {
  height: 26px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: 600 10.5px var(--sans);
  outline: 0;
}

/* ---------- Kernel app ---------- */
.kernel-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: calc(100% - 8px);
  padding: 2px 15px 14px;
  overflow: auto;
  scrollbar-width: thin;
}

.kernel-mods {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 7px;
}

.kernel-mod {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 11px 6px 9px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--paper-soft);
  opacity: 0.55;
}

.kernel-mod.is-up {
  background: #fff;
  opacity: 1;
}

.kernel-mod svg {
  width: 15px;
  height: 15px;
}

.kernel-mod b {
  font-size: 9.5px;
  font-weight: 660;
  letter-spacing: -0.01em;
}

.kernel-mod span {
  color: var(--faint);
  font: 600 7px/1 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.kernel-mod.is-up span {
  color: var(--muted);
}

.kernel-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}

.kernel-cell {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
}

.kernel-cell b {
  font-size: 17px;
  font-weight: 620;
  letter-spacing: -0.03em;
}

.kernel-cell span {
  color: var(--faint);
  font: 600 7.5px/1 var(--mono);
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.kernel-projects {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.kernel-proj {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  text-align: left;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.kernel-proj:hover {
  background: var(--hover);
}

.kernel-proj.is-active {
  border-color: #111;
  box-shadow: inset 0 0 0 1px #111;
}

.kernel-proj.is-new {
  border-style: dashed;
  background: var(--paper-soft);
}

.kernel-proj strong {
  font-size: 12px;
  font-weight: 650;
  letter-spacing: -0.012em;
}

.kernel-proj small {
  color: var(--muted);
  font-size: 10px;
}

.kernel-demo-out {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: #0a0a0a;
  color: #f2f2f0;
  font: 10.5px/1.8 var(--mono);
  min-height: 20px;
}

.kernel-demo-out:empty {
  display: none;
}
