/* sutibo.net — Desk */

:root,
html[data-color-scheme="light"] {
  color-scheme: light;
  --paper: #fbfbfb;
  --panel: #f3f3f3;
  --field: #ffffff;
  --ink: #1a1a1a;
  --muted: #5c5c5c;
  --quiet: #8a8a8a;
  --faint: #9a9a9a;
  --hairline: #e4e4e4;
  --row-line: #e3e3e3;
  --field-line: #d8d8d8;
  --wash: #e7e7e7;
  --green: #2d7a49;
  --green-wash: #e7f2ea;
  --error: #b42318;
  --danger: #a33b3b;
  --check-line: #cfcfcf;
  --cover-letterbox: #f2ede4;
  --dialog-backdrop: rgb(26 26 26 / 0.42);
  --shadow-color: rgb(26 26 26 / 0.06);
  --drag-shadow: rgb(0 0 0 / 0.18);
  --always-white: #ffffff;
  --bg-page: var(--paper);
  --bg-panel: var(--field);
  --bg-bar: var(--panel);
  --bg-bar-dark: var(--wash);
  --border: var(--ink);
  --text: var(--ink);
  --text-muted: var(--muted);
  --accent-green: var(--green);
  --accent-green-dim: var(--green-wash);
  --font-sans: "IBM Plex Sans", "Helvetica Neue", sans-serif;
  --font-serif: "IBM Plex Serif", Palatino, serif;
  --line: 1px solid var(--border);
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 0.75rem;
  --space-lg: 1rem;
  --space-xl: 1.5rem;
  --max-width: 72rem;
  --np-cover-letterbox: var(--cover-letterbox);
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --paper: #171816;
    --panel: #222320;
    --field: #292a27;
    --ink: #ece9e2;
    --muted: #aaa79f;
    --quiet: #929089;
    --faint: #82807a;
    --hairline: #363733;
    --row-line: #343531;
    --field-line: #4a4b46;
    --wash: #2b2c29;
    --green: #78a883;
    --green-wash: #24352a;
    --error: #ff8a80;
    --danger: #e9827b;
    --check-line: #555650;
    --cover-letterbox: #1d1e1b;
    --dialog-backdrop: rgb(0 0 0 / 0.66);
    --shadow-color: rgb(0 0 0 / 0.3);
    --drag-shadow: rgb(0 0 0 / 0.55);
  }
}

html[data-color-scheme="dark"] {
  color-scheme: dark;
  --paper: #171816;
  --panel: #222320;
  --field: #292a27;
  --ink: #ece9e2;
  --muted: #aaa79f;
  --quiet: #929089;
  --faint: #82807a;
  --hairline: #363733;
  --row-line: #343531;
  --field-line: #4a4b46;
  --wash: #2b2c29;
  --green: #78a883;
  --green-wash: #24352a;
  --error: #ff8a80;
  --danger: #e9827b;
  --check-line: #555650;
  --cover-letterbox: #1d1e1b;
  --dialog-backdrop: rgb(0 0 0 / 0.66);
  --shadow-color: rgb(0 0 0 / 0.3);
  --drag-shadow: rgb(0 0 0 / 0.55);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: clamp(18px, 0.3vw + 16px, 22px);
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg-page);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.45;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ——— Site shell ——— */

.site-shell {
  flex: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-md) var(--space-lg) var(--space-lg);
}

.site-shell > header {
  position: relative;
  z-index: 40;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-sm);
  margin-top: var(--space-sm);
  padding: var(--space-sm) 0;
  border-bottom: var(--line);
  overflow: visible;
}

.nav-link {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border: var(--line);
  background: var(--bg-panel);
  font-size: 0.8rem;
  text-decoration: none;
}

.nav-link:hover {
  background: var(--bg-bar);
  text-decoration: none;
}

.nav-link.is-active {
  background: var(--border);
  color: var(--bg-page);
}

.nav-now-playing {
  position: relative;
  display: inline-block;
}

.nav-now-playing-trigger {
  font-family: inherit;
  cursor: pointer;
  color: inherit;
}

.nav-now-playing-trigger[aria-expanded="true"],
.nav-now-playing.is-open .nav-now-playing-trigger {
  background: var(--bg-bar);
}

.nav-now-playing-menu {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  z-index: 50;
  min-width: 14rem;
  margin: 0;
  padding: var(--space-xs) 0;
  list-style: none;
  border: var(--line);
  background: var(--bg-panel);
  box-shadow: 3px 3px 0 var(--border);
}

.nav-now-playing.is-open .nav-now-playing-menu {
  display: block;
}

.nav-now-playing-menu-heading {
  padding: 0.25rem var(--space-sm) 0.15rem;
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.nav-now-playing-menu-divider {
  height: 0;
  margin: var(--space-xs) var(--space-sm);
  border-top: var(--line);
}

.nav-now-playing-menu-link {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-sm);
  padding: 0.4rem var(--space-sm);
  font-size: 0.8rem;
  text-decoration: none;
  color: inherit;
}

.nav-now-playing-menu-link:hover {
  background: var(--bg-bar);
  text-decoration: none;
}

.nav-now-playing-menu-link.is-active {
  background: var(--border);
  color: var(--bg-page);
}

.nav-now-playing-menu-meta {
  font-size: 0.6rem;
  color: var(--text-muted);
}

.nav-now-playing-menu-link.is-active .nav-now-playing-menu-meta {
  color: inherit;
  opacity: 0.85;
}

.nav-spacer {
  flex: 1;
}

.nav-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  padding-right: var(--space-xs);
}

.site-main {
  margin-top: var(--space-md);
  flex: 1;
}

/* ——— Window chrome ——— */

.window {
  border: var(--line);
  background: var(--bg-panel);
}

.window + .window {
  margin-top: var(--space-md);
}

.window-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-xs) var(--space-sm);
  border-bottom: var(--line);
  background: var(--bg-bar);
  font-size: 0.8rem;
  font-weight: 600;
}

.window-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.25rem;
  height: 1.1rem;
  padding: 0 0.35rem;
  border: var(--line);
  background: var(--bg-panel);
  font-family: inherit;
  font-size: 0.7rem;
  line-height: 1;
  cursor: default;
  color: inherit;
}

a.window-btn:hover {
  background: var(--bg-bar-dark);
  text-decoration: none;
}

a.window-btn.window-btn--tertiary,
button.window-btn.window-btn--tertiary {
  border-color: transparent;
  background: transparent;
  opacity: 0.75;
  cursor: pointer;
}

a.window-btn.window-btn--tertiary:hover,
button.window-btn.window-btn--tertiary:hover {
  background: transparent;
  opacity: 1;
  text-decoration: underline;
}

a.window-btn.is-active,
button.window-btn.is-active {
  background: var(--border);
  color: var(--bg-page);
}

a.window-btn.is-active:hover {
  background: var(--border);
  text-decoration: none;
}

.window-body {
  padding: var(--space-lg);
}

.window-body--tight {
  padding: var(--space-md);
}

.window-nested {
  margin-top: var(--space-lg);
}

/* Habits */

.habits-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.65rem;
}

.habits-table th,
.habits-table td {
  border: none;
  padding: 0.15rem 0.1rem;
  vertical-align: middle;
}

.habits-table th {
  text-align: left;
  font-weight: 600;
  width: 4.5rem;
  font-size: 0.7rem;
}

.habits-table--30,
.habits-table--365 {
  font-size: 0.75rem;
  width: max-content;
  min-width: 100%;
}

.habits-table--30 th,
.habits-table--30 td,
.habits-table--365 th,
.habits-table--365 td {
  padding: 0.25rem 0.15rem;
  vertical-align: middle;
}

.habits-table--30 th[scope="row"],
.habits-table--365 th[scope="row"] {
  width: 4.75rem;
  font-size: 0.75rem;
  white-space: nowrap;
}

.habits-table--30 th.habits-table-daynum,
.habits-table--365 th.habits-table-month {
  text-align: center;
  font-weight: 400;
  color: var(--text-muted);
  width: 1.875rem;
  min-width: 1.875rem;
  max-width: 1.875rem;
  padding: 0.15rem 0;
}

.habits-table--30 th.habits-table-daynum {
  font-size: 0.6rem;
}

.habits-table--365 th.habits-table-month {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.habits-table--30 td,
.habits-table--365 td {
  width: 1.875rem;
  min-width: 1.875rem;
  max-width: 1.875rem;
  text-align: center;
  padding: 0.2rem 0.1rem;
}

.habits-table--30 .habit-day,
.habits-table--30 .habit-day--rail,
.habits-table--30 .habit-day--btn.habit-day--rail,
.habits-table--365 .habit-day,
.habits-table--365 .habit-day--rail,
.habits-table--365 .habit-day--btn {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.875rem;
  height: 1.875rem;
  min-width: 1.875rem;
  min-height: 1.875rem;
  max-width: none;
  aspect-ratio: auto;
  margin: 0 auto;
  vertical-align: middle;
}

.habits-table--30 .habits-span-toggle,
.habits-table--365 .habits-span-toggle {
  justify-content: center;
}

.habit-day {
  border: var(--line);
  background: var(--bg-page);
  padding: 0;
  box-sizing: border-box;
}

.habit-day.is-done {
  background: var(--accent-green);
}

.habit-day.habit-day--inactive:not(.is-done) {
  opacity: 0.72;
}

.habits-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  margin-top: var(--space-md);
  padding-top: var(--space-sm);
  border-top: var(--line);
  font-size: 0.75rem;
}

.habits-meta--year .habits-meta-range,
.habits-meta--span30 .habits-meta-range {
  flex: 1 1 auto;
  min-width: 0;
}

.habits-meta--year .habits-meta-hover,
.habits-meta--span30 .habits-meta-hover {
  flex: 0 1 auto;
  margin-left: auto;
  min-height: 1.2em;
  text-align: right;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.habits-crosshair-grid [data-habits-day-label] {
  cursor: default;
}

.habits-nav {
  display: flex;
  gap: var(--space-xs);
}

.nav-session {
  display: contents;
}

.habits-today-window {
  align-self: start;
}

.habits-today-window .window-body--tight {
  padding: var(--space-md) var(--space-md) var(--space-sm);
}

.habits-today-body {
  position: relative;
}

.habits-today-window--guest {
  cursor: pointer;
}

.habits-today-stretch-link {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.habits-today-window--guest .habits-meta-rail-arrow {
  z-index: 2;
}

.habits-today-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.habits-today-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: 0.55rem 0;
  font-size: 0.85rem;
  font-weight: 600;
  border-bottom: 1px solid var(--bg-bar-dark);
}

a.habits-today-name {
  position: relative;
  z-index: 1;
  color: inherit;
  text-decoration: none;
}

.habits-today-row:last-child {
  border-bottom: none;
}

.habits-today-name {
  min-width: 0;
}

.habits-today-toggle {
  position: relative;
  z-index: 2;
  margin: 0 0 0 auto;
  flex-shrink: 0;
  display: flex;
}

.habit-day--rail {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.875rem;
  height: 1.875rem;
  max-width: none;
  aspect-ratio: auto;
  flex-shrink: 0;
}

.habit-day-num {
  font-size: 0.55rem;
  line-height: 1;
  font-weight: 600;
  color: var(--text-muted);
  opacity: 0;
  pointer-events: none;
  user-select: none;
  transition: opacity 0.12s ease;
}

.habit-day--rail:hover .habit-day-num,
.habit-day--rail:focus-visible .habit-day-num,
.habit-day--year-fluid:hover .habit-day-num,
.habit-day--year-fluid:focus-visible .habit-day-num {
  opacity: 0.7;
}

.habit-day.is-done:hover .habit-day-num,
.habit-day.is-done:focus-visible .habit-day-num {
  color: var(--bg-page);
  opacity: 0.75;
}

.habit-day.is-today:hover .habit-day-num,
.habit-day.is-today:focus-visible .habit-day-num {
  opacity: 0.85;
}

.habit-day--btn {
  font-family: inherit;
  cursor: pointer;
  color: inherit;
  appearance: none;
  padding: 0;
  border: var(--line);
  background: var(--bg-page);
}

.habit-day--btn:hover {
  background: var(--bg-bar);
}

.habit-day--btn.is-done:hover {
  background: var(--accent-green-dim);
}

.habits-meta--rail {
  margin-top: 0;
  justify-content: center;
  border-top: 1px solid var(--bg-bar-dark);
  padding-top: var(--space-sm);
  position: relative;
  padding-right: 1.1rem;
}

.habits-meta-rail-date {
  width: 100%;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
}

.habits-meta-rail-arrow {
  position: absolute;
  right: 0;
  bottom: 0;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1;
  color: var(--text-muted);
  text-decoration: none;
}

.habits-meta-rail-arrow:hover {
  color: inherit;
}

.habits-today-empty {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.habits-filter {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-bottom: var(--space-sm);
}

.habits-crosshair-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-top: var(--space-sm);
  width: 100%;
}

.habits-crosshair-row {
  display: grid;
  grid-template-columns: 5.75rem minmax(0, 1fr);
  gap: var(--space-sm);
  align-items: center;
}

.habits-crosshair-label {
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: right;
  padding-right: 0.15rem;
}

.habits-month-short {
  display: none;
}

.habits-crosshair-row--head {
  align-items: end;
  margin-bottom: 0.15rem;
}

.habits-crosshair-daynum {
  text-align: center;
  font-size: 0.6rem;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.2;
  min-width: 0;
}

.habits-crosshair-days {
  display: grid;
  gap: 0.2rem;
  width: 100%;
  min-width: 0;
}

.habits-year-grid .habits-crosshair-days {
  grid-template-columns: repeat(var(--habits-crosshair-day-count, 1), minmax(0, 1fr));
}

.habits-span30-grid .habits-crosshair-days {
  grid-template-columns: repeat(var(--habits-crosshair-day-count, 1), minmax(0, 1fr));
  width: 100%;
  max-width: none;
}

.habits-crosshair-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.habits-year-grid .habits-crosshair-cell {
  aspect-ratio: 1;
  container-type: inline-size;
  align-items: stretch;
  justify-content: stretch;
}

.habits-span30-grid .habits-crosshair-cell {
  width: auto;
  height: auto;
  aspect-ratio: 1;
  container-type: inline-size;
  align-items: stretch;
  justify-content: stretch;
}

.habits-span30-grid .habits-crosshair-cell > .habits-span-toggle,
.habits-span30-grid .habits-crosshair-cell > .habit-day {
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  align-self: stretch;
}

.habits-span30-grid .habit-day--rail {
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  max-width: none;
  min-width: 0;
  min-height: 0;
}

.habits-year-grid .habit-day--year-fluid {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  margin: 0;
}

.habits-crosshair-row.is-crosshair-row .habits-crosshair-label,
.habits-crosshair-row.is-crosshair-row .habits-crosshair-days,
.habits-crosshair-row.is-crosshair-row .habits-crosshair-cell {
  background: var(--np-cover-letterbox);
}

.habits-crosshair-grid .habits-crosshair-label.is-crosshair-col,
.habits-crosshair-grid .habits-crosshair-daynum.is-crosshair-col,
.habits-crosshair-grid .habits-crosshair-cell.is-crosshair-col {
  background: var(--np-cover-letterbox);
}

.habits-crosshair-row.is-crosshair-row .habits-crosshair-cell .habit-day--rail:not(.habit-day--outside),
.habits-crosshair-row.is-crosshair-row .habits-crosshair-cell .habit-day--year-fluid:not(.habit-day--outside) {
  background: color-mix(in srgb, var(--np-cover-letterbox) 62%, var(--bg-page));
}

.habits-crosshair-row.is-crosshair-row .habits-crosshair-cell .habit-day--rail.is-done:not(.habit-day--outside),
.habits-crosshair-row.is-crosshair-row .habits-crosshair-cell .habit-day--year-fluid.is-done:not(.habit-day--outside) {
  background: color-mix(in srgb, var(--np-cover-letterbox) 42%, var(--accent-green));
}

.habits-crosshair-grid .habits-crosshair-cell.is-crosshair-col .habit-day--rail:not(.habit-day--outside),
.habits-crosshair-grid .habits-crosshair-cell.is-crosshair-col .habit-day--year-fluid:not(.habit-day--outside) {
  background: color-mix(in srgb, var(--np-cover-letterbox) 62%, var(--bg-page));
}

.habits-crosshair-grid .habits-crosshair-cell.is-crosshair-col .habit-day--rail.is-done:not(.habit-day--outside),
.habits-crosshair-grid .habits-crosshair-cell.is-crosshair-col .habit-day--year-fluid.is-done:not(.habit-day--outside) {
  background: color-mix(in srgb, var(--np-cover-letterbox) 42%, var(--accent-green));
}

.habits-crosshair-row.is-crosshair-row .habits-crosshair-cell.is-crosshair-col .habit-day--rail:not(.habit-day--outside),
.habits-crosshair-row.is-crosshair-row .habits-crosshair-cell.is-crosshair-col .habit-day--year-fluid:not(.habit-day--outside) {
  background: color-mix(in srgb, var(--np-cover-letterbox) 82%, var(--bg-page));
}

.habits-crosshair-row.is-crosshair-row .habits-crosshair-cell.is-crosshair-col .habit-day--rail.is-done:not(.habit-day--outside),
.habits-crosshair-row.is-crosshair-row .habits-crosshair-cell.is-crosshair-col .habit-day--year-fluid.is-done:not(.habit-day--outside) {
  background: color-mix(in srgb, var(--np-cover-letterbox) 58%, var(--accent-green));
}

.habits-year-grid .habit-day--outside {
  border-color: transparent;
  background: transparent;
  pointer-events: none;
}

.habits-span-hint {
  margin: 0 0 var(--space-md);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.habits-span-scroll,
.habits-year-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  margin: 0 calc(-1 * var(--space-sm));
  padding: 0 var(--space-sm);
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 820px) {
  .habits-year-scroll .habits-year-grid {
    width: max-content;
    min-width: 100%;
  }

  .habits-year-scroll .habits-crosshair-row {
    grid-template-columns: 4.25rem max-content;
    align-items: center;
  }

  .habits-year-scroll .habits-crosshair-label {
    position: sticky;
    left: 0;
    z-index: 2;
    align-self: stretch;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 0.35rem;
    background: var(--bg-page);
    box-shadow: 4px 0 10px -6px color-mix(in srgb, var(--text-muted) 28%, transparent);
  }

  .habits-year-scroll .habits-month-full {
    display: none;
  }

  .habits-year-scroll .habits-month-short {
    display: inline;
  }

  .habits-year-scroll .habits-crosshair-row--head .habits-crosshair-label {
    z-index: 3;
    box-shadow: none;
  }

  .habits-year-scroll .habits-crosshair-row.is-crosshair-row .habits-crosshair-label,
  .habits-year-scroll .habits-crosshair-grid .habits-crosshair-label.is-crosshair-col {
    background: var(--np-cover-letterbox);
  }

  .habits-year-scroll .habits-crosshair-days {
    grid-template-columns: repeat(var(--habits-crosshair-day-count, 31), 1.875rem);
    width: max-content;
  }

  .habits-year-scroll .habits-crosshair-cell {
    width: 1.875rem;
    height: 1.875rem;
    aspect-ratio: auto;
  }

  .habits-span-scroll .habits-span30-grid {
    width: max-content;
    min-width: 100%;
  }

  .habits-span-scroll .habits-crosshair-row {
    grid-template-columns: 4.25rem max-content;
    align-items: center;
  }

  .habits-span-scroll .habits-crosshair-label {
    position: sticky;
    left: 0;
    z-index: 2;
    align-self: stretch;
    display: flex;
    align-items: center;
    background: var(--bg-page);
    box-shadow: 4px 0 10px -6px color-mix(in srgb, var(--text-muted) 28%, transparent);
  }

  .habits-span-scroll .habits-crosshair-row--head .habits-crosshair-label {
    z-index: 3;
    box-shadow: none;
  }

  .habits-span-scroll .habits-crosshair-row.is-crosshair-row .habits-crosshair-label,
  .habits-span-scroll .habits-crosshair-grid .habits-crosshair-label.is-crosshair-col {
    background: var(--np-cover-letterbox);
  }

  .habits-span-scroll .habits-crosshair-days {
    grid-template-columns: repeat(var(--habits-crosshair-day-count, 30), 1.875rem);
    width: max-content;
  }

  .habits-span-scroll .habits-crosshair-cell {
    width: 1.875rem;
    height: 1.875rem;
    aspect-ratio: auto;
  }

  .habits-span-scroll .habit-day--rail {
    width: 1.875rem;
    height: 1.875rem;
  }
}

.habits-span-grid {
  min-width: min-content;
}

.habits-span-row {
  display: grid;
  grid-template-columns: 4.75rem minmax(0, 1fr);
  gap: var(--space-sm);
  align-items: center;
  margin-bottom: 0.35rem;
}

.habits-span-row--head {
  margin-bottom: 0.25rem;
}

.habits-span-label {
  font-size: 0.75rem;
  font-weight: 600;
}

.habits-span-days {
  display: grid;
  grid-template-columns: repeat(var(--habit-days), minmax(0, 1fr));
  gap: 0.12rem;
  align-items: center;
}

.habits-span-grid--30 .habits-span-days {
  grid-template-columns: repeat(var(--habit-days), 1.875rem);
  gap: 0.2rem;
}

.habits-span-head-cell {
  font-size: 0.55rem;
  font-weight: 400;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.1;
  min-height: 0.85rem;
}

.habits-span-cell {
  display: flex;
  align-items: center;
  justify-content: center;
}

.habits-span-toggle {
  margin: 0;
  display: flex;
}

.habits-year-grid .habits-crosshair-cell > .habits-span-toggle,
.habits-year-grid .habits-crosshair-cell > .habit-day.habit-day--year-fluid {
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  align-self: stretch;
}

.habits-year-grid .habits-span-toggle .habit-day--btn.habit-day--year-fluid {
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  display: flex;
}

.habits-edit-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.habits-edit-hint {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-align: right;
}

.habits-history-lock {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  cursor: pointer;
  user-select: none;
  flex-shrink: 0;
}

.habits-history-switch-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.habits-history-switch-input:focus-visible + .habits-history-lock-icon {
  outline: 2px solid var(--border);
  outline-offset: 2px;
}

.habits-history-lock-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  color: var(--text-muted);
}

.habits-history-lock.is-unlocked .habits-history-lock-icon {
  color: inherit;
}

.habits-lock-svg {
  display: block;
}

.habits-history-lock:not(.is-unlocked) .habits-lock-svg--open {
  display: none;
}

.habits-history-lock.is-unlocked .habits-lock-svg--locked {
  display: none;
}

.habits-history-switch-track {
  display: block;
  position: relative;
  width: 2.125rem;
  height: 1.125rem;
  border: var(--line);
  background: var(--bg-page);
  box-sizing: border-box;
}

.habits-history-switch-thumb {
  position: absolute;
  top: 1px;
  left: 1px;
  width: calc(50% - 2px);
  height: calc(100% - 2px);
  background: var(--text-muted);
  transition: transform 0.12s ease, background 0.12s ease;
}

.habits-history-lock.is-unlocked .habits-history-switch-thumb {
  transform: translateX(calc(100% + 2px));
  background: var(--accent-green);
}

.habits-history-lock.is-unlocked .habits-history-switch-track {
  background: color-mix(in srgb, var(--accent-green) 18%, var(--bg-page));
}

.is-habits-edit-on .habit-day--btn:not(.is-today) {
  cursor: pointer;
}

[data-habits-toggle-root]:not(.is-habits-edit-on)
  .habit-day--btn:not(.is-today) {
  cursor: default;
}

.habit-day--grid {
  display: block;
  width: 0.55rem;
  height: 0.55rem;
  max-width: none;
  aspect-ratio: auto;
  margin: 0 auto;
  flex-shrink: 0;
}

.habits-span-grid--365 .habits-span-days {
  grid-template-columns: repeat(var(--habit-days), 0.55rem);
  gap: 0.08rem;
}

.habits-span-grid--365 .habits-span-head-cell {
  font-size: 0.5rem;
}

.habit-day.is-today,
.habits-table--365 th.habits-table-month.is-today,
.habits-span-cell.is-today .habit-day {
  outline: 2px solid var(--border);
  outline-offset: -2px;
}

.habit-day--btn.is-done {
  background: var(--accent-green);
}

/* Now playing */

.now-playing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-sm);
  align-items: stretch;
}

.now-playing-grid > div {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}

@media (max-width: 640px) {
  .now-playing-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.np-col-header {
  font-size: 0.65rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: var(--space-xs);
  letter-spacing: 0.04em;
}

.np-col-header--tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.np-shelf-gear {
  display: inline-flex;
  flex-shrink: 0;
  color: var(--faint);
  line-height: 0;
  text-decoration: none;
}

.np-shelf-gear:hover {
  color: var(--text-muted);
}

.np-card {
  border: var(--line);
  background: var(--bg-page);
  padding: var(--space-xs);
  font-size: 0.65rem;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.np-cover {
  aspect-ratio: 2 / 3;
  border: var(--line);
  margin-bottom: var(--space-xs);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: var(--space-xs);
  text-align: center;
  font-size: 0.55rem;
  line-height: 1.2;
  image-rendering: pixelated;
}

.np-cover--has-img {
  padding: 0;
  overflow: hidden;
  display: block;
  background: var(--ink);
}

.np-cover--has-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  image-rendering: auto;
}

.np-cover--film.np-cover--has-img img {
  object-position: center top;
}

.np-cover--book {
  background: linear-gradient(180deg, #6b5344 0%, #3d2e26 100%);
  color: #f0e6d8;
}

/* Audiobook square art: same 2:3 band as books/films, letterbox fill behind contain-fit image. */
.np-cover--audio.np-cover--has-img {
  background: var(--np-cover-letterbox);
}

.np-cover--audio {
  color: var(--text-muted);
}

.np-cover--fit-contain.np-cover--has-img img {
  object-fit: contain;
  object-position: center center;
}

.np-cover--film {
  background: linear-gradient(180deg, #4a6741 0%, #2a3d24 100%);
  color: #e8f0e4;
}

.np-cover--game {
  background: linear-gradient(180deg, #5c4a7a 0%, #2e243d 100%);
  color: #e8dff5;
}

.np-cover--game.np-cover--has-img {
  background: var(--np-cover-letterbox);
}

.np-cover--game.np-cover--fit-contain.np-cover--has-img img {
  object-fit: contain;
  object-position: center center;
}

.np-title {
  font-weight: 700;
  margin: 0 0 0.1rem;
  line-height: 1.25;
}

.np-status {
  display: none;
}

.np-sub {
  margin: 0 0 var(--space-md);
  color: var(--text-muted);
  font-size: 0.6rem;
}

/* Fixed-height row after subtitle gap: score (★…) or in-progress glyph */
.np-stars {
  margin: 0 0 var(--space-sm);
  padding: 0;
  letter-spacing: 0.05em;
  color: var(--border);
  font-size: 0.65rem;
  line-height: 1;
  min-height: 0.75rem;
  font-weight: 400;
}

.np-stars--score {
  letter-spacing: 0;
  font-weight: 600;
  color: var(--text);
}

.shelf-choice-hint {
  margin: 0.35rem 0 0;
  font-size: 0.85rem;
  line-height: 1.4;
  color: var(--text-muted);
}

.np-stars--pending {
  display: flex;
  align-items: center;
}

.np-progress-bar {
  display: block;
  width: 3.25em;
  height: 0.55rem;
  border: var(--line);
  background: var(--bg-page);
  box-sizing: border-box;
  padding: 1px;
}

.np-progress-fill {
  display: block;
  height: 100%;
  width: 75%;
  background: var(--border);
}

.np-blurb {
  margin: 0 0 var(--space-xs);
  flex: 1;
  line-height: 1.35;
  color: var(--text-muted);
}

.np-details {
  font-size: 0.6rem;
  font-weight: 600;
  text-decoration: none;
}

.np-details:hover {
  text-decoration: underline;
}

.np-card-admin {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-top: var(--space-sm);
}

.np-card-admin-delete {
  margin: 0;
  padding: 0;
  flex: 1 1 auto;
}

button.window-btn.np-card-admin-btn,
a.window-btn.np-card-admin-btn {
  flex: 1 1 calc(50% - var(--space-xs));
  min-width: 0;
  font-size: 0.6rem;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
}

a.window-btn.np-card-admin-btn:hover {
  text-decoration: none;
}

.np-card-admin-btn--danger {
  color: var(--text-muted);
}

.np-card-admin-btn--danger:hover {
  color: var(--text);
}

.np-media-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.np-media-link:hover .np-title {
  text-decoration: underline;
}

.np-empty {
  margin: 0;
  font-size: 0.65rem;
  color: var(--text-muted);
  text-align: center;
  padding: var(--space-sm);
  border: var(--line);
}

.movies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr));
  gap: var(--space-sm);
  align-items: stretch;
}

.movies-grid-item {
  display: flex;
  flex-direction: column;
  min-width: 0;
  max-width: 16rem;
  width: 100%;
  min-height: 100%;
}

.movies-grid-item .np-card {
  flex: 1 1 auto;
  height: 100%;
}

.movies-empty {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.movie-preview-layout {
  display: grid;
  grid-template-columns: minmax(10rem, 14rem) 1fr;
  gap: var(--space-md);
  align-items: start;
}

@media (max-width: 720px) {
  .movie-preview-layout {
    grid-template-columns: 1fr;
  }
}

.movie-preview-form {
  font-size: 0.75rem;
}

.site-form-row--card-blurb {
  margin-top: var(--space-sm);
}

.card-blurb-source {
  margin-bottom: var(--space-sm);
  border: var(--line);
  background: var(--bg-bar);
}

.card-blurb-source-label {
  padding: var(--space-xs) var(--space-sm);
  border-bottom: var(--line);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.card-blurb-source-text {
  max-height: 8rem;
  overflow: auto;
  padding: var(--space-sm);
  font-size: 0.65rem;
  line-height: 1.45;
  color: var(--text-muted);
  white-space: pre-wrap;
}

.card-blurb-field-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  margin-bottom: var(--space-xs);
}

.card-blurb-field-head .site-form-label {
  margin: 0;
}

button.window-btn.card-blurb-ai-btn {
  cursor: pointer;
  font-size: 0.65rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

button.window-btn.card-blurb-ai-btn:disabled {
  opacity: 0.55;
}

.card-blurb-ai-hint {
  font-size: 0.6rem;
  color: var(--text-muted);
}

.card-blurb-field-hint {
  margin: var(--space-xs) 0 0;
  min-height: 1rem;
  font-size: 0.6rem;
  color: var(--text-muted);
}

.card-blurb-textarea {
  display: block;
  min-height: 4rem;
}

.movie-pick-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.movie-pick-item {
  margin-bottom: var(--space-xs);
  border: var(--line);
  padding: var(--space-xs);
}

.movie-pick-item label {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  cursor: pointer;
}

.movie-pick-thumb {
  width: 46px;
  height: 69px;
  object-fit: cover;
  border: var(--line);
  flex-shrink: 0;
}

.movie-pick-meta {
  display: block;
  font-size: 0.65rem;
  color: var(--text-muted);
  font-weight: 400;
}

.movie-pick-year {
  color: var(--text-muted);
}

.tmdb-attribution {
  margin: var(--space-sm) 0 0;
  font-size: 0.55rem;
  color: var(--text-muted);
  text-align: center;
}

.now-playing-intro {
  margin: 0 0 var(--space-md);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.site-main--narrow {
  width: 100%;
  max-width: 30rem;
  margin-inline: auto;
}

.site-main--profile {
  width: 100%;
  max-width: 42rem;
  margin-inline: auto;
}

.profile-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

.profile-form-col-header {
  font-size: 0.65rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: var(--space-sm);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

@media (max-width: 640px) {
  .profile-form-grid {
    grid-template-columns: 1fr;
  }
}

.site-lead {
  margin: 0 0 1rem;
  font-size: 0.75rem;
  line-height: 1.5;
}

.site-form-row + .site-form-row {
  margin-top: 0.75rem;
}

.site-form-label {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.25rem;
}

.site-form-input {
  width: 100%;
  box-sizing: border-box;
  font: inherit;
  font-size: 0.8rem;
  padding: 0.35rem 0.5rem;
  border: var(--line);
  background: var(--field);
  color: var(--ink);
}

.site-form-input:focus {
  outline: 2px solid var(--ink);
  outline-offset: 1px;
}

/* Server-side validation only — avoid browser :invalid styling on type=email */
.site-form-input:invalid {
  border-color: var(--ink);
  box-shadow: none;
}

.site-form-input.is-invalid {
  border-color: var(--error);
  border-width: 2px;
  padding: calc(0.35rem - 1px) calc(0.5rem - 1px);
}

.site-form-input.is-invalid:focus {
  outline-color: var(--error);
}

.site-form-field-error {
  margin: var(--space-xs) 0 0;
  font-size: 0.65rem;
  line-height: 1.4;
  color: var(--error);
}

.site-form-field-error--block {
  margin-bottom: var(--space-md);
}

.site-form-hint {
  margin: 0 0 var(--space-md);
  font-size: 0.7rem;
  line-height: 1.5;
  color: var(--muted);
}

.profile-mfa {
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--ink);
}

.profile-mfa-qr {
  display: block;
  margin: 0 0 var(--space-md);
  image-rendering: pixelated;
}

.profile-mfa-uri {
  font-size: 0.6rem;
  word-break: break-all;
}

.profile-mfa-start {
  margin: 0;
}

.profile-mfa-form .site-form-actions {
  margin-top: var(--space-md);
  padding-top: 0;
}

.site-form-actions {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  align-items: center;
  gap: var(--space-xs);
  margin-top: var(--space-xl);
  padding-top: var(--space-md);
}

.site-form-actions--split {
  justify-content: flex-start;
}

.site-form-actions-end {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: var(--space-xs);
  margin-left: auto;
}

/* Add-media search: lookup is first in DOM (Enter key) but rightmost visually */
.site-form-actions--add-media {
  justify-content: flex-start;
}

.site-form-actions--add-media .site-form-actions-manual {
  order: 1;
}

.site-form-actions--add-media .site-form-actions-cancel {
  order: 2;
  margin-left: auto;
}

.site-form-actions--add-media .site-form-actions-primary {
  order: 3;
}

.site-form-submit {
  cursor: not-allowed;
  opacity: 0.65;
}

.site-form-submit:not(:disabled) {
  cursor: pointer;
  opacity: 1;
}

.site-alert {
  margin: 0 0 1rem;
  padding: var(--space-sm) var(--space-md);
  border: var(--line);
  font-size: 0.75rem;
}

.site-alert--error {
  background: var(--bg-bar);
}

.site-alert--success {
  background: var(--accent-green-dim);
}

/* ——— Flash toasts (session message / error) ——— */

.site-toast-stack {
  position: fixed;
  top: 1.5rem;
  left: 50%;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  width: min(24rem, calc(100vw - 3rem));
  transform: translateX(-50%);
  pointer-events: none;
}

.site-toast {
  pointer-events: auto;
  border: 1px solid var(--hairline);
  background: var(--paper);
  box-shadow: 0 10px 28px var(--shadow-color);
  font-family: "IBM Plex Sans", sans-serif;
  opacity: 0;
  transform: translateY(-0.75rem);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.site-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.site-toast-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem 0;
  border: 0;
  background: transparent;
}

.site-toast-title {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.site-toast-dismiss {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--quiet);
  font: inherit;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
}

.site-toast-dismiss:hover {
  color: var(--text);
}

.site-toast-body {
  margin: 0;
  padding: 0.35rem 1rem 0.95rem;
  background: transparent;
  font-size: 1.05rem;
  line-height: 1.45;
  color: var(--text);
}

.site-toast--success {
  border-left: 3px solid var(--green);
}

.site-toast--error {
  border-left: 3px solid var(--danger);
}

.site-form-row--inline {
  margin-top: 0.5rem;
}

.site-form-checkbox {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.7rem;
  cursor: pointer;
}

/* Habits page — 30-day table cells (same size as home rail) */

.habits-table.habits-table--30 span.habit-day,
.habits-table.habits-table--30 button.habit-day--btn,
.habits-table.habits-table--365 span.habit-day,
.habits-table.habits-table--365 button.habit-day--btn {
  display: inline-block;
  width: 1.875rem;
  height: 1.875rem;
  min-width: 1.875rem;
  min-height: 1.875rem;
  max-width: none;
  box-sizing: border-box;
  vertical-align: middle;
}

/* Desk application */

body.desk .site-shell {
  width: min(1720px, calc(100% - 6vw));
  max-width: none;
  padding: 1.6rem 0 4rem;
}

body.desk .site-shell:has(.desk-nav) {
  padding-top: 0;
  padding-bottom: calc(100vh - 16rem);
}

body.desk header:has(.desk-nav) {
  position: sticky;
  top: 0;
  z-index: 40;
  isolation: isolate;
  background: var(--bg-page);
  padding-top: 1.6rem;
  padding-bottom: 0.85rem;
}

body.desk .desk-row {
  position: relative;
  z-index: 0;
}

body.desk .desk-mast {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

body.desk .desk-brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-width: 0;
}

body.desk .desk-avatar-link {
  display: flex;
  flex-shrink: 0;
  line-height: 0;
  border-radius: 50%;
  text-decoration: none;
}

body.desk .desk-avatar {
  width: 2.6rem;
  height: 2.6rem;
  object-fit: cover;
  object-position: center 12%;
  border-radius: 50%;
}

body.desk .desk-mark {
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  text-decoration: none;
}

body.desk .desk-mark:hover {
  text-decoration: none;
}

body.desk .desk-mast-side {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1.1rem;
  color: var(--text);
  font-size: 1.05rem;
  white-space: nowrap;
}

body.desk .desk-mast-side .nav-link {
  font-weight: 500;
}

body.desk .desk-nav-rule {
  margin-top: 1.1rem;
  border-top: 1px solid var(--hairline);
}

body.desk .site-nav {
  margin-top: 1.1rem;
  padding: 0.8rem 0 0;
  border-bottom: 0;
  border-top: 1px solid var(--hairline);
  gap: 0.5rem 1.5rem;
  font-size: 1.05rem;
  container-type: inline-size;
}

body.desk .desk-nav-time {
  color: var(--faint);
  font-size: 0.75rem;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}

@container (max-width: 42rem) {
  .desk-nav-time {
    display: none;
  }
}

body.desk .nav-link {
  border: 0;
  background: transparent;
  padding: 0;
  font-size: inherit;
}

body.desk .nav-link:hover,
body.desk .nav-now-playing-trigger:hover {
  background: transparent;
  text-decoration: underline;
}

body.desk .nav-link.is-active,
body.desk .nav-now-playing-trigger.is-active,
body.desk .nav-now-playing-trigger[aria-expanded="true"] {
  background: transparent;
  color: inherit;
  font-weight: 600;
}

body.desk .nav-now-playing-menu {
  box-shadow: none;
  font-size: 0.95rem;
  background: var(--field);
}

body.desk .site-main--auth {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 2rem 0 3rem;
}

body.desk .desk-auth {
  width: min(28rem, 100%);
}

body.desk .desk-auth .site-form {
  padding: 0.35rem 1.15rem 1.25rem;
}

body.desk .desk-auth .site-form-label {
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

body.desk .desk-auth .site-form-input {
  font-size: 1.05rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--field-line);
  background: var(--field);
}

body.desk .desk-auth .site-form-input:focus {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

body.desk .desk-auth .desk-auth-code {
  max-width: 9rem;
  font-size: 1.25rem;
  letter-spacing: 0.18em;
  font-variant-numeric: tabular-nums;
}

body.desk .desk-auth .site-form-hint {
  margin: 0 0 1rem;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  line-height: 1.45;
  color: var(--text);
}

body.desk .desk-auth .site-form-checkbox {
  font-size: 1rem;
  gap: 0.55rem;
}

body.desk .desk-auth .site-form-checkbox input {
  width: 1.05rem;
  height: 1.05rem;
}

body.desk .desk-auth .site-form-field-error {
  font-size: 0.9rem;
}

body.desk .desk-auth .site-form-actions {
  justify-content: flex-end;
  gap: 1.25rem;
  margin-top: 1.25rem;
  padding-top: 0;
}

body.desk .desk-auth .site-form-actions .desk-auth-tertiary {
  margin-right: auto;
}

body.desk .desk-auth-secondary {
  color: var(--quiet);
  font-size: 1.05rem;
  font-weight: 400;
  text-decoration: none;
}

body.desk .desk-auth-secondary:hover {
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

body.desk .desk-auth-submit {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 1.05rem;
  font-weight: 500;
  cursor: pointer;
}

body.desk .desk-auth-submit:hover {
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

body.desk .desk-row-lead:empty {
  display: none;
}

body.desk .desk-lede[hidden] {
  display: none;
}

body.desk .desk-lede {
  display: block;
  margin: 1.6rem 0 1.5rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  max-width: 26em;
  font-family: var(--font-serif);
  font-size: 2.05rem;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.02em;
  text-align: left;
  cursor: pointer;
}

body.desk .desk-lede:hover {
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

body.desk .desk-lede:not(button),
body.desk .desk-lede:not(button):hover {
  cursor: default;
  text-decoration: none;
}

body.desk .desk-lede[aria-expanded="true"] {
  margin-bottom: 0.85rem;
}

body.desk .desk-note-body {
  max-width: 40em;
  margin: 0 0 1.6rem;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  line-height: 1.55;
}

body.desk .desk-note-body p {
  margin: 0 0 1rem;
}

body.desk .desk-note-body p:last-child {
  margin-bottom: 0;
}

body.desk .desk-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(16rem, 0.7fr);
  gap: 1rem;
  align-items: start;
}

body.desk .desk-grid .window + .window {
  margin-top: 0;
}

body.desk .desk-lower {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

body.desk .desk-rack {
  margin-top: 1rem;
}

body.desk .magazine-rack-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1.1rem 1.15rem 0;
}

body.desk .desk-panel .magazine-rack-head h2 {
  padding: 0;
}

body.desk .desk-widget-gear {
  display: flex;
  flex-shrink: 0;
  color: var(--faint);
  line-height: 0;
  text-decoration: none;
}

body.desk .desk-widget-gear:hover {
  color: var(--text-muted);
}

body.desk .magazine-rack-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: start;
  padding: 0.9rem 1.15rem 1.15rem;
}

body.desk .magazine-rack-link {
  display: block;
  line-height: 0;
}

body.desk .magazine-rack-cover {
  width: 100%;
  height: auto;
}

body.desk .magazine-rack-placeholder {
  aspect-ratio: 3 / 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  padding: 1.25rem;
  border: 1px solid var(--hairline);
  background: var(--paper);
  color: var(--muted);
  text-align: center;
}

body.desk .magazine-rack-placeholder-mast {
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 2.5vw, 2rem);
  line-height: 1.15;
}

body.desk .magazine-rack-placeholder-orbit {
  width: 55%;
  aspect-ratio: 1;
  border: 1px solid var(--faint);
  border-radius: 50%;
  box-shadow: 0 0 0 0.6rem var(--paper), 0 0 0 0.65rem var(--hairline);
  background: linear-gradient(135deg, var(--green-wash) 50%, var(--panel) 50%);
}

body.desk .magazine-rack-issue:nth-child(even) .magazine-rack-placeholder-orbit {
  border-radius: 50% 50% 0 0;
  background: linear-gradient(45deg, var(--panel) 50%, var(--wash) 50%);
}

body.desk .magazine-rack-placeholder-caption {
  font-family: var(--font-serif);
  font-size: 1.05rem;
}

body.desk .magazine-rack-name {
  margin: 0.75rem 0 0.15rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: inherit;
}

body.desk .magazine-rack-meta,
body.desk .magazine-rack-artist {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 0.98rem;
  line-height: 1.4;
  color: var(--text-muted);
}

body.desk .magazine-admin-block {
  margin: 1.15rem 1.15rem 0;
  padding-top: 1rem;
  border-top: 1px solid var(--row-line);
}

body.desk .magazine-admin-block:last-child {
  margin-bottom: 1.15rem;
}

body.desk .desk-panel .magazine-admin-block h2 {
  padding: 0 0 0.65rem;
  letter-spacing: 0.04em;
}

body.desk .magazine-admin-status {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem 1.25rem;
  margin: 0;
}

body.desk .magazine-admin-status div {
  min-width: 0;
}

body.desk .magazine-admin-status dt {
  margin: 0;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

body.desk .magazine-admin-status dd,
body.desk .magazine-admin-issue,
body.desk .magazine-admin-url {
  margin: 0.15rem 0 0;
  font-family: var(--font-serif);
  font-size: 1rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

body.desk .magazine-admin-issue,
body.desk .magazine-admin-url {
  margin-top: 0.75rem;
}

body.desk .magazine-admin-actions {
  display: flex;
  align-items: baseline;
  gap: 1.25rem;
  margin-top: 0.9rem;
}

body.desk .magazine-admin-actions form {
  margin: 0;
}

body.desk .magazine-admin-actions a,
body.desk .magazine-admin-actions button {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 1.05rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
}

body.desk .magazine-admin-actions a:hover,
body.desk .magazine-admin-actions button:hover {
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

@media (max-width: 640px) {
  body.desk .magazine-rack-grid {
    gap: 0.65rem;
    padding-left: 0.85rem;
    padding-right: 0.85rem;
  }
}

@media (max-width: 380px) {
  body.desk .magazine-rack-grid,
  body.desk .magazine-admin-status {
    grid-template-columns: 1fr;
  }
}

body.desk .window,
body.desk .desk-panel {
  border: 0;
  background: var(--panel);
}

body.desk .is-desk-focus {
  box-shadow: inset 0 0 0 1px var(--ink);
}

body.desk .window-titlebar,
body.desk .desk-panel h1,
body.desk .desk-panel h2 {
  background: transparent;
  border: 0;
  margin: 0;
  padding: 1.1rem 1.15rem 0;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

body.desk .window-body--tight {
  padding: 0.85rem 1.15rem 1.25rem;
}

body.desk .now-playing-grid {
  gap: 0.9rem;
}

body.desk .now-playing-col {
  display: flex;
  flex-direction: column;
}

body.desk .np-card,
body.desk .np-media-link {
  display: contents;
}

body.desk .np-cover {
  order: 1;
  border: 0;
  margin: 0;
  background: var(--field);
}

body.desk .np-title {
  order: 2;
  margin: 0.45rem 0 0;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

body.desk .np-col-header {
  order: 3;
  margin: 0.1rem 0 0;
  text-align: left;
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text-muted);
}

body.desk .np-sub,
body.desk .np-stars,
body.desk .np-blurb,
body.desk .np-details,
body.desk .habits-meta--rail {
  display: none;
}

body.desk .now-playing-col .np-stars--score {
  display: block;
  order: 4;
  margin: 0.15rem 0 0;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--text-muted);
}

body.desk .np-empty {
  order: 4;
  border: 0;
  background: transparent;
  font-size: 1rem;
  text-align: left;
  padding: 0;
}

body.desk .habits-today-row {
  font-size: 1.15rem;
  font-weight: 400;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--row-line);
}

body.desk a.habits-today-name:hover {
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

body.desk .habit-day--rail {
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 2px;
  border-color: var(--check-line);
}

body.desk .habits-today-row .habit-day--rail {
  width: 1.875rem;
  height: 1.875rem;
}

body.desk .habit-day--btn.is-done {
  background: var(--accent-green);
  border-color: var(--accent-green);
}

body.desk #traces {
  padding-bottom: 0.65rem;
}

body.desk .desk-trace {
  display: grid;
  grid-template-columns: 1.15rem 4.2rem minmax(0, 1fr);
  gap: 0.8rem;
  align-items: start;
  padding: 0.65rem 1.15rem;
  border-bottom: 1px solid var(--row-line);
  text-decoration: none;
}

body.desk .desk-trace time {
  color: var(--text-muted);
  font-size: 0.85rem;
  padding-top: 0.15rem;
}

body.desk .desk-trace-icon {
  width: 1.05rem;
  height: 1.05rem;
  margin-top: 0.14rem;
  justify-self: center;
  color: var(--text-muted);
}

body.desk .desk-trace strong {
  font-weight: 500;
  font-size: 1.08rem;
}

body.desk .desk-trace:hover strong {
  text-decoration: underline;
}

body.desk .desk-empty {
  margin: 0;
  padding: 0.2rem 1.15rem 1.15rem;
  color: var(--text-muted);
}

body.desk .desk-panel h2 {
  padding-bottom: 0.35rem;
}

body.desk .desk-field-note-photo {
  margin: 0.45rem 1.15rem 0;
  background: var(--wash);
  aspect-ratio: 2 / 1;
  border-radius: 6px;
  overflow: hidden;
}

body.desk .desk-field-note-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.desk .desk-field-note h3 {
  margin: 0.9rem 1.15rem 0;
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

body.desk .desk-field-note p {
  margin: 0.45rem 1.15rem 1.2rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

body.desk .desk-library .tmdb-attribution {
  margin: 0.8rem 0 0;
  font-size: 0.75rem;
  text-align: left;
}

body.desk .desk-movies .tmdb-attribution {
  color: var(--faint);
  font-weight: 400;
  letter-spacing: 0.01em;
  text-align: center;
}

body.desk .desk-library {
  margin-top: 1.6rem;
}

body.desk .desk-library-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.15rem 0;
}

body.desk .desk-library-head h1 {
  padding: 0;
}

body.desk .desk-library-add {
  margin: 0;
  color: inherit;
  font-size: 1.05rem;
  font-weight: 500;
  text-decoration: none;
}

body.desk .desk-library-add:hover {
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

body.desk .desk-library-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
  gap: 1.5rem 1.15rem;
  padding: 0.9rem 1.15rem 1.35rem;
}

body.desk .desk-library .np-card[data-promote-url] .desk-cover-btn,
body.desk .desk-library .np-card[data-promote-url] .np-cover {
  cursor: grab;
  touch-action: none;
}

body.desk .desk-library .np-card[data-promote-url]:first-child .desk-cover-btn,
body.desk .desk-library .np-card[data-promote-url]:first-child .np-cover {
  cursor: pointer;
}

body.desk .desk-library .np-card.is-dragging {
  opacity: 0.35;
}

body.desk .desk-library-ghost {
  position: fixed;
  z-index: 30;
  width: 8rem;
  margin: 0;
  padding: 0;
  border: 0;
  pointer-events: none;
  transform: translate(-50%, -60%);
  box-shadow: 0 8px 24px var(--drag-shadow);
}

body.desk .desk-library-front {
  aspect-ratio: 2 / 3;
  border: 1px dashed var(--ink);
  background: transparent;
}

body.desk .desk-library-front.is-active {
  background: var(--green-wash);
}

body.desk .desk-library .np-card {
  display: flex;
  flex-direction: column;
  height: auto;
  border: 0;
  background: transparent;
  padding: 0;
  font-size: 1rem;
}

body.desk .desk-library .np-cover {
  order: 0;
  aspect-ratio: 2 / 3;
  border: 0;
  margin: 0;
  background: var(--field);
}

body.desk .np-cover--has-img img {
  object-fit: contain;
  object-position: center center;
}

body.desk .desk-library .desk-cover-btn {
  position: relative;
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
  text-align: inherit;
}

body.desk .desk-library .desk-cover-btn:focus-visible {
  outline: 1px solid var(--ink);
  outline-offset: 3px;
}

body.desk .desk-library .np-blurb.is-open {
  display: block;
  margin: 0.55rem 0 0;
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.45;
  color: var(--text);
}

body.desk .desk-sheet-sample .np-blurb.is-open:empty {
  display: none;
}

body.desk .desk-library .np-title {
  order: 0;
  margin: 0.55rem 0 0;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

body.desk .desk-library .np-status,
body.desk .desk-library .np-sub {
  display: block;
  margin: 0.12rem 0 0;
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-muted);
}

body.desk .desk-library .np-sub {
  color: var(--quiet);
  font-size: 0.8rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.desk .desk-library .np-stars--pending,
body.desk .desk-library .np-stars--score {
  display: block;
  margin: 0.45rem 0 0;
}

body.desk .desk-library .np-stars--score {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--text);
}

body.desk .desk-sheet .shelf-choice-hint {
  font-size: 0.95rem;
  line-height: 1.45;
}

body.desk .desk-library .np-progress-bar {
  width: 100%;
  height: 0.28rem;
  border: 0;
  padding: 0;
  background: var(--hairline);
}

body.desk .desk-library .np-progress-fill {
  background: var(--green);
}

body.desk .desk-library .np-card-admin {
  gap: 0.9rem;
  margin-top: 0.45rem;
}

body.desk .desk-library a.window-btn.np-card-admin-btn,
body.desk .desk-library button.window-btn.np-card-admin-btn {
  min-width: 0;
  height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--quiet);
  cursor: pointer;
}

body.desk .desk-library a.window-btn.np-card-admin-btn:hover,
body.desk .desk-library button.window-btn.np-card-admin-btn:hover {
  background: transparent;
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

body.desk .desk-library .np-card-admin-btn--danger,
body.desk .desk-library .np-card-admin-btn--danger:hover {
  color: var(--danger);
}

body.desk .desk-habits-spans {
  display: flex;
  align-items: baseline;
  gap: 1.1rem;
  font-size: 1.05rem;
}

body.desk .desk-habits-spans a {
  color: var(--quiet);
  font-weight: 400;
  text-decoration: none;
}

body.desk .desk-habits-spans a.is-active {
  color: inherit;
  font-weight: 500;
}

body.desk .desk-habits-spans a:hover {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

body.desk .desk-habits-body {
  padding: 0.85rem 1.15rem 1.15rem;
}

body.desk .desk-habits .habits-span-scroll,
body.desk .desk-habits .habits-year-scroll {
  margin: 0;
  padding: 0;
}

body.desk .desk-habits .habits-span30-grid .habits-crosshair-row {
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 0.85rem;
}

@media (max-width: 820px) {
  body.desk .desk-habits .habits-span-scroll .habits-crosshair-row {
    grid-template-columns: 7.5rem max-content;
  }

  body.desk .desk-habits .habits-span-scroll .habits-crosshair-label,
  body.desk .desk-habits .habits-year-scroll .habits-crosshair-label {
    justify-content: flex-start;
    background: var(--panel);
  }

  body.desk .desk-habits .habits-span-scroll .habits-crosshair-row.is-crosshair-row .habits-crosshair-label,
  body.desk .desk-habits .habits-span-scroll .habits-crosshair-label.is-crosshair-col {
    background: var(--wash);
  }
}

body.desk .desk-habits .habits-crosshair-label {
  font-size: 1.05rem;
  font-weight: 500;
  text-align: left;
  padding: 0;
}

body.desk .desk-habits .habits-crosshair-daynum {
  font-size: 0.75rem;
  color: var(--quiet);
}

body.desk .desk-habits .habit-day {
  border: 1px solid var(--check-line);
  border-radius: 2px;
  background: var(--field);
}

body.desk .desk-habits .habit-day.is-done,
body.desk .desk-habits .habit-day--btn.is-done {
  background: var(--green);
  border-color: var(--green);
}

body.desk .desk-habits .habit-day.is-today {
  outline: 1px solid var(--ink);
  outline-offset: -1px;
}

body.desk .desk-habits .habits-crosshair-row.is-crosshair-row .habits-crosshair-label,
body.desk .desk-habits .habits-crosshair-row.is-crosshair-row .habits-crosshair-days,
body.desk .desk-habits .habits-crosshair-row.is-crosshair-row .habits-crosshair-cell,
body.desk .desk-habits .habits-crosshair-grid .habits-crosshair-label.is-crosshair-col,
body.desk .desk-habits .habits-crosshair-grid .habits-crosshair-daynum.is-crosshair-col,
body.desk .desk-habits .habits-crosshair-grid .habits-crosshair-cell.is-crosshair-col {
  background: var(--wash);
}

body.desk .desk-habits .habits-meta {
  margin: 0.85rem 0 0;
  padding: 0;
  border: 0;
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--text-muted);
}

body.desk .desk-habits .habits-meta-hover {
  font-weight: 400;
  letter-spacing: 0;
}

body.desk .desk-habits .habits-filter {
  gap: 0.9rem;
  margin-bottom: 0.85rem;
}

body.desk .desk-habits .habits-year-filter {
  color: var(--quiet);
  font-size: 1.05rem;
  font-weight: 400;
}

body.desk .desk-habits .habits-year-filter.is-active {
  color: inherit;
  font-weight: 500;
}

body.desk .desk-habits .habits-edit-bar {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

body.desk .desk-habits .habits-today-empty {
  margin: 0;
  font-size: 1rem;
  color: var(--text-muted);
}

@media (max-width: 900px) {
  body.desk .desk-grid,
  body.desk .desk-lower {
    grid-template-columns: 1fr;
  }

  body.desk .desk-grid #habits {
    order: -1;
  }
}

@media (max-width: 640px) {
  body.desk .site-shell:has(.desk-nav) {
    padding-top: 1.6rem;
  }

  body.desk header:has(.desk-nav) {
    position: static;
    padding-top: 0;
    padding-bottom: 0;
  }

  body.desk .site-shell {
    width: calc(100% - 1.25rem);
  }

  body.desk .desk-mast {
    align-items: flex-start;
  }

  body.desk .desk-mast-side {
    white-space: normal;
  }

  body.desk .desk-lede {
    font-size: 1.5rem;
  }
}

/* Video game add / edit — desk sheet */

body.desk .desk-sheet {
  margin-top: 1.6rem;
}

body.desk .desk-sheet--narrow {
  max-width: 36rem;
}

/* FEED — desk list and article */

body.desk .desk-feed,
body.desk .desk-feed-article {
  margin-top: 1.6rem;
}

body.desk .desk-feed-article {
  width: min(48rem, 100%);
  margin-left: auto;
  margin-right: auto;
}

body.desk .feed-view-switch,
body.desk .feed-actions,
body.desk .feed-pagination,
body.desk .feed-home-head {
  display: flex;
  align-items: baseline;
  gap: 1.25rem;
}

body.desk .feed-view-switch a {
  color: var(--quiet);
  font-size: 1.05rem;
  text-decoration: none;
}

body.desk .feed-view-switch a.is-active {
  color: var(--text);
  font-weight: 500;
}

body.desk .feed-view-switch a:hover,
body.desk .feed-actions button:hover,
body.desk .feed-home-head a:hover,
body.desk .feed-pagination a:hover {
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

body.desk .feed-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 0.75rem 1rem;
  padding: 0.9rem 1.15rem 1.15rem;
}

body.desk .feed-filters label {
  display: grid;
  gap: 0.3rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
}

body.desk .feed-filters select {
  min-width: 9rem;
  padding: 0.45rem 2rem 0.45rem 0.65rem;
  border: 1px solid var(--field-line);
  background: var(--field);
  color: var(--text);
  font: inherit;
  font-size: 1rem;
}

body.desk .feed-filters select:focus {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

body.desk .feed-filters button,
body.desk .feed-filters > a,
body.desk .feed-actions button {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 1.05rem;
  cursor: pointer;
}

body.desk .feed-filters > a {
  color: var(--quiet);
}

body.desk .feed-list {
  margin-top: 1.5rem;
}

body.desk .feed-day {
  margin: 1.5rem 0 0.65rem;
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 400;
}

body.desk .feed-item {
  padding: 1.1rem 1.15rem;
}

body.desk .feed-item + .feed-item {
  margin-top: 0.75rem;
}

body.desk .feed-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.8rem;
  color: var(--text-muted);
  font-size: 0.78rem;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

body.desk .feed-unread-mark {
  color: var(--green);
  font-weight: 600;
}

body.desk .feed-item h3 {
  margin: 0.4rem 0 0;
  font-size: 1.35rem;
  font-weight: 500;
  line-height: 1.25;
}

body.desk .feed-item.is-unread h3 {
  font-weight: 600;
}

body.desk .feed-item h3 a {
  text-decoration: none;
}

body.desk .feed-item h3 a:hover {
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

body.desk .feed-summary {
  max-width: 62rem;
  margin: 0.6rem 0 0;
  font-size: 1.08rem;
}

body.desk .feed-reason {
  max-width: 54rem;
  margin-top: 0.8rem;
  padding-left: 0.75rem;
  border-left: 3px solid var(--green);
}

body.desk .feed-reason strong,
body.desk .feed-article-reason strong {
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

body.desk .feed-reason p,
body.desk .feed-article-reason p {
  margin: 0.2rem 0 0;
}

body.desk .feed-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.85rem;
  margin: 0.75rem 0 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}

body.desk .feed-actions {
  margin-top: 0.85rem;
}

body.desk .feed-actions form {
  margin: 0;
}

body.desk .feed-actions button {
  color: var(--quiet);
  font-size: 0.9rem;
}

body.desk .feed-empty {
  padding: 1.15rem;
  color: var(--text-muted);
}

body.desk .feed-pagination {
  justify-content: center;
  margin-top: 1.5rem;
  color: var(--text-muted);
}

body.desk .feed-article {
  padding: 1.2rem 1.35rem 1.4rem;
}

body.desk .feed-back {
  margin: 0 0 1rem;
  color: var(--quiet);
}

body.desk .feed-article h1 {
  margin: 0.55rem 0 0;
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

body.desk .feed-updated {
  margin: 0.45rem 0 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}

body.desk .feed-article-summary {
  margin: 1.2rem 0 0;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  line-height: 1.55;
}

body.desk .feed-article-reason {
  margin: 1.2rem 0 0;
  padding: 0.8rem 0.9rem;
  background: var(--green-wash);
}

body.desk .feed-article-body {
  margin-top: 1.5rem;
  line-height: 1.65;
}

body.desk .feed-article-body h2,
body.desk .feed-article-body h3 {
  margin: 1.6rem 0 0.55rem;
  padding: 0;
  color: var(--text);
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  text-transform: none;
}

body.desk .feed-article-body p,
body.desk .feed-article-body ul,
body.desk .feed-article-body ol,
body.desk .feed-article-body blockquote {
  margin: 0.75rem 0;
}

body.desk .feed-article-body pre,
body.desk .feed-article-body code {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.88rem;
}

body.desk .feed-article-body pre {
  overflow-x: auto;
  padding: 0.8rem;
  background: var(--field);
}

body.desk .feed-sources {
  margin-top: 1.6rem;
  padding-top: 1rem;
  border-top: 1px solid var(--row-line);
}

body.desk .feed-sources h2 {
  margin: 0;
  padding: 0;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

body.desk .feed-sources ol {
  margin: 0.55rem 0 0;
  padding-left: 1.4rem;
}

body.desk .desk-feed-home {
  margin-top: 1rem;
}

body.desk .feed-home-head {
  justify-content: space-between;
  padding: 1.1rem 1.15rem 0.4rem;
}

body.desk .feed-home-head h2 {
  padding: 0;
}

body.desk .feed-home-head a {
  font-size: 1.05rem;
  font-weight: 500;
  text-decoration: none;
}

@media (max-width: 640px) {
  body.desk .feed-filters {
    align-items: stretch;
  }

  body.desk .feed-filters label,
  body.desk .feed-filters select {
    width: 100%;
  }

  body.desk .feed-filter-panel .desk-library-head {
    align-items: flex-start;
    flex-direction: column;
  }

  body.desk .feed-article {
    padding-left: 0.9rem;
    padding-right: 0.9rem;
  }
}

body.desk .desk-sheet--center {
  width: min(28rem, 100%);
  margin-left: auto;
  margin-right: auto;
}

body.desk .desk-sheet--editor {
  max-width: 62rem;
}

body.desk .desk-sheet-review {
  container-type: inline-size;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 1.25rem 1.35rem;
  width: 100%;
  max-width: none;
}

body.desk .desk-sheet-sample {
  float: none;
  flex: 0 0 11rem;
  width: 11rem;
  margin: 0;
}

body.desk .desk-sheet-sample.desk-library {
  margin-top: 0;
}

body.desk .desk-sheet-review > .desk-panel {
  display: flow-root;
  flex: 1 1 28rem;
  width: auto;
  max-width: none;
  min-width: 0;
}

@container (max-width: 40.35rem) {
  body.desk .desk-sheet-review > .desk-panel {
    flex-basis: 100%;
    width: 100%;
  }
}

body.desk .desk-library .np-stars[hidden] {
  display: none !important;
}

body.desk .desk-sheet-note,
body.desk .desk-sheet .movies-empty {
  margin: 0.45rem 1.15rem 0;
  max-width: 36em;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1.45;
  color: var(--text);
}

body.desk .desk-sheet-alert {
  margin: 0.55rem 1.15rem 0;
  font-size: 0.95rem;
  line-height: 1.4;
  color: var(--error);
}

body.desk .desk-sheet .movies-empty--attribution {
  margin: 0;
  padding: 0 1.15rem 1.15rem;
  max-width: none;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--faint);
}

body.desk .desk-sheet-form {
  padding: 0.9rem 1.15rem 1.2rem;
}

body.desk .desk-library-head > span {
  color: inherit;
  font-size: 1.05rem;
  font-weight: 500;
}

body.desk .profile-mfa {
  margin: 0;
  padding: 0 1.15rem 1.2rem;
  border-top: 1px solid var(--row-line);
}

body.desk .profile-mfa h2 {
  margin: 1.1rem 0 0.7rem;
  padding: 0;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text-muted);
}

body.desk .profile-mfa .site-form-hint {
  margin: 0 0 0.9rem;
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--text);
}

body.desk .profile-mfa-qr {
  display: block;
  margin: 0 0 0.9rem;
  background: var(--always-white);
  image-rendering: auto;
}

body.desk .profile-mfa-uri {
  font-size: 0.85rem;
}

body.desk .profile-mfa-form .site-form-actions,
body.desk .profile-mfa-start .site-form-actions {
  margin-top: 1.35rem;
}

body.desk .desk-sheet .site-form--inline {
  padding: 0.45rem 1.15rem 0;
}

body.desk .desk-sheet .site-form-label {
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

body.desk .desk-sheet .site-form-input {
  font-size: 1.05rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--field-line);
  background: var(--field);
}

body.desk .desk-sheet .site-form-input:focus {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

body.desk .desk-sheet .site-form-input.is-invalid {
  border-color: var(--error);
  border-width: 2px;
  padding: calc(0.55rem - 1px) calc(0.7rem - 1px);
}

body.desk .desk-sheet .site-form-input.is-invalid:focus {
  outline-color: var(--error);
}

body.desk .desk-sheet input[type="file"].site-form-input {
  padding: 0.35rem 0;
  border: 0;
  background: transparent;
}

body.desk .desk-sheet .site-form-field-error {
  font-size: 0.9rem;
}

body.desk .desk-sheet-form > .site-form-row,
body.desk .desk-sheet-pair {
  margin-top: 0.9rem;
}

body.desk .desk-sheet-form > .site-form-row:first-of-type {
  margin-top: 0;
}

body.desk .desk-sheet-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem 1rem;
}

body.desk .desk-sheet-pair .site-form-row + .site-form-row {
  margin-top: 0;
}

body.desk .desk-sheet .site-form-actions {
  justify-content: flex-end;
  gap: 1.25rem;
  margin-top: 1.35rem;
  padding-top: 0;
}

body.desk .desk-sheet .site-form-actions--split {
  justify-content: flex-start;
}

body.desk .desk-sheet .site-form-actions-end {
  gap: 1.25rem;
}

body.desk .desk-sheet-upload {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  min-width: 0;
}

body.desk .desk-sheet-upload--field {
  margin-top: 0.65rem;
}

body.desk .desk-sheet-upload-label {
  position: relative;
}

body.desk .desk-sheet-upload-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  opacity: 0;
  cursor: pointer;
  font-size: 0;
}

body.desk .desk-sheet-form {
  position: relative;
}

body.desk .desk-sheet-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body.desk .desk-cover-btn > .desk-sheet-file-input {
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  clip: auto;
  opacity: 0;
  cursor: pointer;
  font-size: 0;
}

body.desk .desk-sheet-upload-name {
  min-width: 0;
  overflow: hidden;
  color: var(--text-muted);
  font-size: 0.9rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.desk .desk-sheet a.window-btn,
body.desk .desk-sheet button.window-btn,
body.desk .desk-sheet label.window-btn {
  min-width: 0;
  height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 500;
  line-height: inherit;
  color: inherit;
  cursor: pointer;
  opacity: 1;
}

body.desk .desk-sheet a.window-btn:hover,
body.desk .desk-sheet button.window-btn:hover,
body.desk .desk-sheet label.window-btn:hover {
  background: transparent;
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

body.desk .desk-sheet a.window-btn.window-btn--tertiary,
body.desk .desk-sheet button.window-btn.window-btn--tertiary,
body.desk .desk-sheet label.window-btn.window-btn--tertiary,
body.desk .desk-sheet a.window-btn.site-form-actions-cancel {
  color: var(--quiet);
  font-weight: 400;
}

body.desk .desk-sheet a.window-btn.window-btn--tertiary:hover,
body.desk .desk-sheet button.window-btn.window-btn--tertiary:hover,
body.desk .desk-sheet label.window-btn.window-btn--tertiary:hover,
body.desk .desk-sheet a.window-btn.site-form-actions-cancel:hover {
  color: var(--text-muted);
}

body.desk .desk-sheet .movie-pick-item {
  margin: 0;
  border: 0;
  border-bottom: 1px solid var(--row-line);
  padding: 0.7rem 0;
  background: transparent;
}

body.desk .desk-sheet .movie-pick-item:first-child {
  padding-top: 0;
}

body.desk .desk-sheet .movie-pick-item label {
  gap: 0.85rem;
  font-size: 1.05rem;
}

body.desk .desk-sheet .movie-pick-item input {
  width: 1.05rem;
  height: 1.05rem;
  flex-shrink: 0;
}

body.desk .desk-sheet .movie-pick-thumb {
  width: 2.6rem;
  height: 3.9rem;
  border: 0;
  object-fit: cover;
  background: var(--field);
}

body.desk .desk-sheet .movie-pick-item strong {
  font-weight: 600;
}

body.desk .desk-sheet .movie-pick-year {
  margin-left: 0.35rem;
  color: var(--text-muted);
  font-weight: 400;
}

body.desk .desk-pick-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

body.desk .desk-pick-item {
  margin: 0;
  border: 1px solid var(--field-line);
  background: var(--field);
  min-width: 0;
}

body.desk .desk-pick-list.is-invalid .desk-pick-item {
  border-color: var(--error);
  border-width: 2px;
}

body.desk .desk-pick-item label {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-height: 4.6rem;
  padding: 0.7rem 0.85rem;
  cursor: pointer;
  font-size: 1.05rem;
}

body.desk .desk-pick-item input {
  width: 1.05rem;
  height: 1.05rem;
  flex-shrink: 0;
}

body.desk .desk-pick-thumb {
  width: 2.6rem;
  height: 3.9rem;
  flex-shrink: 0;
  object-fit: cover;
  background: var(--panel);
}

body.desk .desk-pick-thumb--empty {
  display: block;
}

body.desk .desk-pick-copy {
  min-width: 0;
}

body.desk .desk-pick-item strong {
  font-weight: 600;
}

body.desk .desk-pick-year {
  display: block;
  margin-top: 0.15rem;
  color: var(--text-muted);
  font-weight: 400;
}

body.desk .desk-sheet-layout {
  display: grid;
  grid-template-columns: 12.5rem minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
  padding: 0.95rem 1.15rem 1.25rem;
}

body.desk .desk-sheet-layout .desk-sheet-form {
  padding: 0;
}

body.desk .desk-sheet-preview .np-card {
  display: flex;
  flex-direction: column;
  height: auto;
  border: 0;
  background: transparent;
  padding: 0;
  font-size: 1rem;
}

body.desk .desk-sheet-preview .np-cover,
body.desk .desk-sheet-preview .np-title,
body.desk .desk-sheet-preview .np-status,
body.desk .desk-sheet-preview .np-sub,
body.desk .desk-sheet-preview .np-stars {
  order: 0;
}

body.desk .desk-sheet-preview .np-cover {
  aspect-ratio: 2 / 3;
  border: 0;
  margin: 0;
  background: var(--field);
}

body.desk .desk-sheet-preview .np-title {
  margin: 0.55rem 0 0;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

body.desk .desk-sheet-preview .np-status,
body.desk .desk-sheet-preview .np-sub,
body.desk .desk-sheet-preview .np-stars {
  display: block;
}

body.desk .desk-sheet-preview .np-status,
body.desk .desk-sheet-preview .np-sub {
  margin: 0.12rem 0 0;
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-muted);
}

body.desk .desk-sheet-preview .np-stars {
  margin: 0.45rem 0 0;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  color: var(--text);
}

body.desk .desk-sheet-preview .np-progress-bar {
  width: 100%;
  height: 0.28rem;
  border: 0;
  padding: 0;
  background: var(--hairline);
}

body.desk .desk-sheet-preview .np-progress-fill {
  background: var(--green);
}

body.desk .desk-sheet .card-blurb-field-head {
  margin-bottom: 0.65rem;
}

body.desk .desk-sheet .card-blurb-source {
  margin-bottom: 0.65rem;
  border: 1px solid var(--field-line);
  background: var(--field);
}

body.desk .desk-sheet .card-blurb-source-label {
  border: 0;
  padding: 0.55rem 0.7rem 0;
  margin-bottom: 0;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text-muted);
  background: var(--field);
}

body.desk .desk-sheet .card-blurb-source-text {
  padding: 0.35rem 0.7rem 0.55rem;
  border: 0;
  background: var(--field);
  font-size: 1.05rem;
  line-height: 1.45;
}

body.desk .desk-sheet .card-blurb-field-hint,
body.desk .desk-sheet .card-blurb-ai-hint {
  font-size: 0.85rem;
}

body.desk .desk-sheet .card-blurb-field-hint:empty {
  margin: 0;
  min-height: 0;
}

@media (max-width: 720px) {
  body.desk .desk-sheet-layout,
  body.desk .desk-sheet-pair,
  body.desk .desk-pick-list {
    grid-template-columns: 1fr;
  }

  body.desk .desk-sheet-preview {
    max-width: 11rem;
  }
}
