@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/newsreader-400.woff2") format("woff2");
}

@font-face {
  font-family: "Newsreader";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/newsreader-400-italic.woff2") format("woff2");
}

@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/newsreader-500.woff2") format("woff2");
}

@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/newsreader-600.woff2") format("woff2");
}

@font-face {
  font-family: "Atkinson Hyperlegible";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/atkinson-400.woff2") format("woff2");
}

@font-face {
  font-family: "Atkinson Hyperlegible";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/atkinson-700.woff2") format("woff2");
}

body.desk {
  --ink: #1c1914;
  --paper: #f4f0e6;
  --surface: #fbf8f2;
  --paper-2: #ebe4d6;
  --line: #d4ccbe;
  --muted: #4e4942;
  --accent: #6b2c22;
  --accent-ink: #f4f0e6;
  --attention-wash: #f6e8e4;
  background: var(--paper);
  color: var(--ink);
  font-family: "Atkinson Hyperlegible", "Avenir Next", "Segoe UI", sans-serif;
  font-size: 0.9375rem;
  line-height: 1.45;
  min-height: 100vh;
}

body.desk main {
  box-sizing: border-box;
  width: min(90rem, 100%);
  max-width: 90rem;
  margin-inline: auto;
  padding: 0 1.25rem calc(5.5rem + env(safe-area-inset-bottom));
}

body.desk button,
body.desk input,
body.desk select,
body.desk textarea {
  font-family: inherit;
}

body.desk :focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

body.desk .rounded,
body.desk .rounded-lg,
body.desk .rounded-xl,
body.desk .rounded-2xl,
body.desk .rounded-full,
body.desk .chip {
  border-radius: 0;
}

body.desk .shadow,
body.desk .shadow-sm {
  box-shadow: none;
}

.app-bar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem 1rem;
  margin: 0 -1.25rem 1.15rem;
  padding: 0.85rem 1.25rem 0.7rem;
  background: rgba(244, 240, 230, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.app-bar::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: var(--accent);
}

.app-brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 2.75rem;
  color: var(--ink);
  font-family: "Newsreader", Georgia, serif;
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.app-brand img {
  width: 1.75rem;
  height: 1.75rem;
  flex: none;
}

.app-brand span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.app-nav {
  display: none;
  gap: 0.15rem;
}

.app-nav a,
.app-tabs a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 700;
}

.app-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  padding: 0.35rem 0.7rem;
  border-radius: 0;
  background: transparent;
  box-shadow: inset 0 -2px 0 transparent;
}

.app-nav a[aria-current="page"] {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 -2px 0 var(--accent);
}

.app-tabs {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: flex;
  gap: 0;
  margin: 0;
  padding: 0 0.25rem calc(0.15rem + env(safe-area-inset-bottom));
  background: rgba(244, 240, 230, 0.96);
  border-top: 1px solid var(--line);
}

.app-tabs a {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 3rem;
  padding-inline: 0.35rem;
  border-radius: 0;
  background: transparent;
  box-shadow: inset 0 2px 0 transparent;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-tabs a[aria-current="page"] {
  background: transparent;
  color: var(--accent);
  box-shadow: inset 0 2px 0 var(--accent);
}

.app-bar-start,
.app-bar-end {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.app-bar-start {
  flex: 1 1 auto;
  flex-wrap: nowrap;
  min-width: 0;
}

.app-bar-end {
  flex: none;
  margin-left: auto;
}

.room-menu {
  position: relative;
  flex: 0 1 auto;
  min-width: 0;
}

.room-menu summary {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  max-width: 12rem;
  min-width: 0;
  min-height: 2.25rem;
  padding: 0.2rem 0.7rem;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.2;
  list-style: none;
  cursor: pointer;
}

.room-menu-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.room-menu summary::-webkit-details-marker {
  display: none;
}

.room-menu[open] summary {
  border-color: var(--accent);
}

.room-menu ul {
  position: absolute;
  z-index: 40;
  top: calc(100% + 0.25rem);
  left: 0;
  min-width: 12.5rem;
  max-width: min(18rem, 80vw);
  margin: 0;
  padding: 0.2rem 0;
  list-style: none;
  background: var(--paper);
  border: 1px solid var(--line);
}

.room-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 2.5rem;
  padding: 0.4rem 0.75rem;
  color: inherit;
  font-weight: 700;
  text-decoration: none;
}

.room-menu a:hover {
  color: var(--accent);
}

.room-mark {
  width: 0.55rem;
  height: 0.55rem;
  flex: none;
  background: var(--accent);
}

.nav-copy {
  flex: 0 1 auto;
  max-width: 14rem;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-height: 2.25rem;
  padding: 0.2rem 0.7rem;
  border: 1px solid var(--accent);
  border-radius: 0;
  background: transparent;
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
}

.nav-signout {
  margin: 0;
}

.nav-signout button {
  min-height: 2.75rem;
  padding: 0.2rem 0.15rem;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 400;
  text-decoration: underline;
  text-underline-offset: 0.16em;
  cursor: pointer;
}

@media (max-width: 719px) {
  .app-bar {
    gap: 0.35rem 0.45rem;
    padding-inline: 0.75rem;
  }

  .app-brand {
    font-size: 1.05rem;
    gap: 0.4rem;
  }

  .nav-copy {
    max-width: 5.75rem;
    padding-inline: 0.4rem;
  }

  .room-menu {
    max-width: 6.5rem;
  }

  .room-menu summary {
    max-width: 100%;
    padding-inline: 0.4rem;
  }

  .room-menu ul {
    left: auto;
    right: 0;
  }

  .nav-signout button {
    padding-inline: 0;
    white-space: nowrap;
  }
}

.desk-head {
  max-width: 42rem;
}

.week-page > .desk-head {
  max-width: none;
}

.app-kicker {
  margin: 0 0 0.15rem;
  color: var(--muted);
  font-family: "Atkinson Hyperlegible", "Avenir Next", "Segoe UI", sans-serif;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.app-title {
  margin: 0;
  font-family: "Newsreader", Georgia, serif;
  font-size: clamp(1.7rem, 2.5vw, 2.15rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.app-plan,
.app-meta,
.app-lead,
.quiet-line {
  margin: 0.4rem 0 0;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.45;
}

.app-plan {
  font-size: 0.8125rem;
}

.app-back {
  margin: 0 0 0.35rem;
  font-size: 0.875rem;
}

.app-back a,
.app-lead a,
.desk-inline a,
.desk-row a,
.person-history a {
  color: var(--ink);
  text-underline-offset: 0.18em;
}

.desk-share {
  display: block;
  margin-top: 0.75rem;
  padding: 0.55rem 0.7rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0;
  overflow-wrap: anywhere;
  font-size: 0.875rem;
}

.desk-read {
  max-width: 42rem;
}

.app-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.9rem;
}

.app-tools form {
  display: inline-flex;
}

.app-tools-quiet {
  margin-top: 0.45rem;
}

.btn,
.app-tools a,
.app-tools button,
.export-presets a,
.people-search button,
.person-note button,
.export-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  margin: 0;
  padding: 0.35rem 0.8rem;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  box-shadow: none;
}

.btn-solid,
.app-tools a.solid,
.app-tools button.solid,
.export-form button,
.people-search button,
.person-note button {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

.btn-solid:hover,
.app-tools a.solid:hover,
.app-tools button.solid:hover,
.export-form button:hover,
.people-search button:hover,
.person-note button:hover {
  background: #541f18;
  border-color: #541f18;
}

.btn-quiet,
.app-tools button.quiet,
.app-tools a.quiet {
  min-height: 2.25rem;
  padding-inline: 0.35rem;
  border-color: transparent;
  background: transparent;
  color: var(--ink);
  font-weight: 400;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.app-on {
  display: inline-flex;
  align-items: center;
  min-height: 2.25rem;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 400;
}

.desk-notice,
.desk-note,
.operator-banner {
  margin-top: 1rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 0;
  background: var(--surface);
  color: var(--ink);
  font-size: 0.9375rem;
}

.operator-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.operator-banner p {
  margin: 0;
}

.desk-note p,
.desk-flash {
  margin: 0.35rem 0 0;
}

.desk-note p:first-child {
  margin-top: 0;
  font-weight: 700;
}

.desk-flash {
  margin: 0.85rem 0 0;
  padding: 0;
  list-style: none;
}

.desk-flash li + li {
  margin-top: 0.25rem;
}

.desk-error,
.export-error {
  color: var(--accent);
}

.export-error {
  margin-top: 0.85rem;
}

.desk-asks {
  margin-top: 1.15rem;
  padding-top: 1rem;
  border: 0;
  border-top: 1px solid var(--line);
  background: transparent;
}

.desk-asks h2,
.desk-section > h2,
.desk-stack > section > h2,
.person-history h2,
.export-form legend {
  margin: 0;
  font-family: "Newsreader", Georgia, serif;
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  text-transform: none;
  color: var(--ink);
}

.desk-asks ul,
.desk-rows,
.people-list,
.desk-list,
.person-history ul {
  margin: 0.65rem 0 0;
  padding: 0;
  list-style: none;
  background: transparent;
  border: 0;
  border-top: 1px solid var(--line);
}

.people-list:empty,
.desk-rows:empty,
.person-history ul:empty {
  margin: 0;
  border: 0;
}

.desk-asks li,
.desk-row,
.people-list li,
.desk-list li,
.person-history li {
  padding: 0.8rem 0;
  border-top: 0;
  background: transparent;
  box-shadow: none;
}

.desk-asks li + li,
.desk-row + .desk-row,
.people-list li + li,
.desk-list li + li,
.person-history li + li {
  border-top: 1px solid var(--line);
}

.desk-row-title,
.people-name {
  margin: 0;
  font-weight: 700;
}

.desk-meta,
.people-mail,
.people-meta,
.insight-when {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.875rem;
}

.desk-linkline {
  margin: 0.35rem 0 0;
}

.desk-linkline button,
button[data-copy] {
  margin: 0 0 0 0.35rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  cursor: pointer;
}

.desk-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 0.65rem 0.75rem;
  margin-top: 0.65rem;
}

.desk-inline p {
  flex: 1 0 100%;
  margin: 0;
  color: var(--muted);
  font-size: 0.875rem;
}

.desk-section {
  margin-top: 1.75rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--line);
}

.desk-section > h2 + p,
.desk-help {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.875rem;
}

.desk-empty,
.empty-panel {
  margin: 0.85rem 0 0;
  padding: 1.5rem 1rem;
  border: 1px dashed var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  text-align: center;
  font-size: 0.9375rem;
}

.desk-cracks,
.desk-next,
.desk-room {
  margin-top: 1.5rem;
}

.desk-cracks h2,
.desk-next h2,
.desk-room h2 {
  margin: 0;
  font-family: "Newsreader", Georgia, serif;
  font-size: clamp(1.55rem, 2.4vw, 2rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.desk-cracks ul {
  margin: 0.55rem 0 0;
  padding: 0;
  list-style: none;
}

.desk-cracks li + li {
  border-top: 1px solid var(--line);
}

.crack {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.1rem 1.25rem;
  padding: 0.75rem 0;
  color: inherit;
  text-decoration: none;
}

.crack-who {
  font-weight: 700;
}

.crack-when,
.desk-when {
  color: var(--muted);
}

.crack-room {
  grid-column: 1 / -1;
  color: var(--muted);
  font-weight: 700;
}

.crack-why {
  grid-column: 1 / -1;
  color: var(--accent);
  font-weight: 700;
}

.next-rooms {
  margin: 0.55rem 0 0;
  padding: 0;
  list-style: none;
}

.next-rooms li {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 0.85rem;
  align-items: baseline;
  padding: 0.7rem 0;
}

.next-rooms li + li {
  border-top: 1px solid var(--line);
}

.next-rooms a {
  color: inherit;
  font-weight: 700;
  text-underline-offset: 0.16em;
}

.desk-next p,
.desk-room p {
  margin: 0.4rem 0 0;
  font-size: 1.0625rem;
  line-height: 1.4;
}

.desk-next a {
  color: inherit;
  text-underline-offset: 0.16em;
}

.desk-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1.1rem;
  margin-top: 1.25rem;
}

.desk-actions a.btn-solid {
  flex: 1 1 100%;
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

.desk-actions a {
  color: var(--muted);
  font-size: 0.875rem;
  text-underline-offset: 0.16em;
}

.desk-room-card {
  padding-top: 0.85rem;
  margin-top: 0.85rem;
  border-top: 1px solid var(--line);
}

.desk-room-card p {
  margin: 0.2rem 0 0;
}

.desk-room-card a {
  color: inherit;
  font-weight: 700;
  text-underline-offset: 0.16em;
}

details.desk-section > summary.btn {
  width: 100%;
  list-style: none;
  cursor: pointer;
}

details.desk-section > summary.btn::-webkit-details-marker {
  display: none;
}

details.desk-section[open] > summary.btn {
  width: auto;
  min-height: 0;
  margin: 0 0 0.35rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-family: "Newsreader", Georgia, serif;
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

details.desk-section .desk-form > button,
.desk-read > .desk-section .desk-form > button {
  flex: 1 0 100%;
}

.insight-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-top: 1.15rem;
  background: var(--surface);
  border: 1px solid var(--line);
}

.insight-row article {
  padding: 0.75rem 0.9rem;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
}

.insight-row article:last-child {
  border-bottom: 0;
}

.insight-row h2 {
  margin: 0;
  font-family: "Atkinson Hyperlegible", "Avenir Next", "Segoe UI", sans-serif;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.insight-row p {
  margin: 0.3rem 0 0;
  line-height: 1.35;
}

.quiet-line {
  margin-top: 0.65rem;
}

.desk-pressure,
.desk-waiting {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.9rem;
  margin: 0 0 0.85rem;
}

.desk-pressure {
  font-size: 1.0625rem;
}

.desk-pressure a,
.desk-waiting a {
  color: inherit;
  font-weight: 700;
  text-underline-offset: 0.16em;
}

.desk-waiting {
  margin-top: 0;
  font-size: 0.9375rem;
}

.desk-pressure + .desk-waiting {
  margin-top: -0.35rem;
}

.cal-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem 0.75rem;
}

.cal-nav h2 {
  order: -1;
  flex: 1 0 100%;
  margin: 0;
  font-family: "Newsreader", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-align: left;
  color: var(--ink);
}

.cal-nav .btn {
  min-height: 2.75rem;
}

.swim-board {
  display: grid;
  grid-template-columns: 8rem repeat(7, minmax(0, 1fr));
  gap: 0;
  margin-top: 0.75rem;
  background: var(--surface);
  border: 1px solid var(--line);
}

.swim-corner,
.swim-head,
.swim-label,
.swim-cell {
  min-width: 0;
  padding: 0.45rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.swim-label {
  font-weight: 600;
}

.swim-chip {
  margin: 0 0 0.35rem;
  font-size: 0.85rem;
}

.week-board {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0;
  margin-top: 0.75rem;
  background: var(--surface);
  border: 1px solid var(--line);
}

.week-day {
  min-width: 0;
  min-height: 11rem;
  display: flex;
  flex-direction: column;
  padding: 0.5rem 0.45rem 0.6rem;
  background: transparent;
  border: 0;
  border-right: 1px solid var(--line);
}

.week-day:last-child {
  border-right: 0;
}

.week-day h3 {
  margin: 0;
  font-family: "Atkinson Hyperlegible", "Avenir Next", "Segoe UI", sans-serif;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.week-day h3 a {
  color: var(--ink);
  text-decoration: none;
}

.week-day h3 a:hover,
.day-book:hover {
  color: var(--accent);
}

.week-board.is-empty .week-day {
  min-height: 0;
}

.week-day.is-focus {
  background: var(--paper-2);
}

.week-day.is-focus h3 a {
  color: var(--accent);
}

.week-day-body {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
  margin-top: 0.45rem;
}

.day-empty {
  margin: 0;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.35;
}

.day-book {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  margin-top: auto;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.chip {
  border: 0;
  border-left: 2px solid var(--line);
  border-radius: 0;
  padding: 0.35rem 0.4rem 0.4rem 0.45rem;
  background: transparent;
  color: var(--ink);
  font-size: 0.75rem;
  line-height: 1.35;
}

a.chip {
  display: block;
  text-decoration: none;
  color: inherit;
}

.chip-hold {
  border-left-color: var(--ink);
  background: var(--paper-2);
  color: var(--ink);
}

.chip-confirmed {
  border-left-color: var(--ink);
  background: transparent;
  color: var(--ink);
}

.chip-attention {
  border-left-color: var(--accent);
  background: var(--attention-wash);
  color: var(--ink);
}

.chip-blocked,
.chip-quiet {
  border-left-color: var(--line);
  background: transparent;
  color: var(--muted);
}

.chip-status,
.chip-name,
.chip-time,
.chip-why {
  display: block;
}

.chip-status {
  font-weight: 700;
}

.desk-day .chip {
  padding: 0.75rem 0.85rem;
  font-size: 0.9375rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left-width: 3px;
}

.desk-day .chip.chip-attention {
  background: var(--attention-wash);
  color: var(--ink);
  border-color: var(--line);
  border-left-color: var(--accent);
}

.desk-day .day-list {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.85rem;
}

.hour-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.4rem;
  margin-top: 1rem;
}

.hour-list h3,
.hour-list > p {
  grid-column: 1 / -1;
  margin: 0;
}

.hour-list h3 {
  font-family: "Newsreader", Georgia, serif;
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  text-transform: none;
  color: var(--ink);
}

.hour-list > p {
  color: var(--muted);
  font-size: 0.875rem;
}

.hour-list a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.35rem 0.4rem;
  background: var(--accent);
  border: 1px solid var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  text-decoration: none;
}

.hour-list a:hover {
  background: #541f18;
  border-color: #541f18;
  color: var(--accent-ink);
}

.day-book-row {
  margin: 1rem 0 0;
}

.needs-desk {
  display: none;
}

.desk-quiet {
  margin-top: 0.85rem;
}

.desk-quiet > summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 700;
}

.desk-quiet > p,
.day-quiet {
  margin-top: 0.75rem;
}

.settings-groups {
  display: grid;
  gap: 0.85rem;
  margin: 0 0 1.5rem;
}

.settings-groups div {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.85rem;
  align-items: baseline;
}

.settings-groups a {
  color: var(--ink);
  font-size: 0.875rem;
}

.settings-groups a.settings-group {
  font-weight: 700;
  font-size: 1rem;
}

.desk-spaces {
  margin-top: 0.75rem;
}

.desk-spaces label {
  display: grid;
  gap: 0.25rem;
  max-width: 18rem;
  font-size: 0.8125rem;
  color: var(--muted);
}

.desk-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.9rem;
}

.desk-pills a {
  display: inline-flex;
  align-items: center;
  min-height: 2.25rem;
  padding: 0.2rem 0.7rem;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
}

.desk-pills a[aria-current="page"] {
  border-color: var(--accent);
  box-shadow: inset 0 -2px 0 var(--accent);
}

.desk-stack {
  display: grid;
  gap: 0;
  margin-top: 0.5rem;
}

.desk-stack > section {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--line);
}

.desk-stack > .btn {
  margin-top: 1.25rem;
  justify-self: start;
}

.desk-read > .desk-section {
  display: grid;
  gap: 0.75rem;
}

.desk-field {
  display: grid;
  gap: 0.25rem;
}

.desk-label,
.desk-form label,
.desk-inline label,
.people-search label,
.person-note label,
.export-form label,
.desk-check {
  color: var(--muted);
  font-size: 0.8125rem;
}

.desk-field > span:first-child,
.desk-label {
  font-weight: 700;
  color: var(--ink);
  font-size: 0.875rem;
}

.desk-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.25rem;
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 700;
}

body.desk input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]),
body.desk select,
body.desk textarea,
.desk-input {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-height: 2.5rem;
  margin-top: 0.25rem;
  padding: 0.45rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--surface);
  color: var(--ink);
  font-size: 0.9375rem;
  line-height: 1.35;
  box-shadow: none;
}

body.desk textarea {
  min-height: 6rem;
  resize: vertical;
}

body.desk input[type="checkbox"],
body.desk input[type="radio"] {
  accent-color: var(--accent);
  width: 1rem;
  height: 1rem;
}

body.desk input[type="file"] {
  margin-top: 0.25rem;
  font-size: 0.875rem;
}

.desk-form {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 0.75rem 1rem;
  margin-top: 0.85rem;
}

.desk-form > label,
.desk-inline > label {
  display: grid;
  gap: 0.2rem;
  flex: 1 1 11rem;
  min-width: min(100%, 9rem);
}

.desk-form-stack {
  display: grid;
  grid-template-columns: minmax(0, 36rem);
}

.desk-form-stack > label,
.desk-form-stack > fieldset {
  min-width: 0;
}

.desk-inline fieldset,
.desk-form fieldset {
  flex: 1 0 100%;
  margin: 0;
  padding: 0;
  border: 0;
}

.desk-form legend,
.desk-inline legend {
  padding: 0;
  font-family: "Atkinson Hyperlegible", "Avenir Next", "Segoe UI", sans-serif;
  font-size: 0.8125rem;
  font-weight: 700;
}

.desk-form > .desk-help,
.desk-form details {
  flex: 1 0 100%;
  margin-top: 0.25rem;
}

.desk-form summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--ink);
}

.desk-form details .desk-inline,
.desk-form details > div {
  margin-top: 0.75rem;
}

.rate-grid {
  display: grid;
  grid-template-columns: 1fr;
  border: 1px solid var(--line);
  background: var(--surface);
}

.rate-grid > div {
  display: grid;
  gap: 0.55rem;
  padding: 0.85rem 0.9rem;
  border-bottom: 1px solid var(--line);
}

.rate-grid > div:last-child {
  border-bottom: 0;
}

.hours {
  border-top: 1px solid var(--line);
}

.hours-row {
  display: grid;
  gap: 0.35rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
}

.hours-name {
  margin: 0;
  font-weight: 700;
}

.people-search,
.person-note,
.export-form {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.people-search {
  grid-template-columns: 1fr;
  max-width: 28rem;
}

.people-search label,
.person-note label {
  display: grid;
  gap: 0.25rem;
}

.people-list a {
  display: grid;
  gap: 0.1rem;
  padding: 0;
  color: inherit;
  text-decoration: none;
}

.desk-list li {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.85rem;
  align-items: baseline;
}

.desk-list li a {
  color: inherit;
  font-weight: 700;
  text-underline-offset: 0.16em;
}

.desk-list form {
  margin-left: auto;
}

.people-list li {
  padding: 0.8rem 0;
}

.person-history {
  margin-top: 1.5rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--line);
}

.person-history h2 {
  margin-bottom: 0;
}

.person-history p {
  margin: 0.45rem 0 0;
  color: var(--muted);
}

.export-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1rem;
}

.export-notes {
  margin: 0.85rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
  line-height: 1.45;
}

.export-form fieldset {
  margin: 0;
  padding: 0.85rem 0 0;
  border: 0;
  border-top: 1px solid var(--line);
  background: transparent;
}

.export-form legend {
  padding: 0.85rem 0 0;
}

.export-form fieldset label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.25rem;
  color: var(--ink);
  font-size: 0.9375rem;
}

.export-form button {
  justify-self: start;
  margin-top: 0.35rem;
}

.link-grid {
  display: grid;
  gap: 0.45rem;
}

@media (min-width: 720px) {
  .needs-phone {
    display: none;
  }

  .needs-desk {
    display: block;
  }

  .app-nav {
    display: flex;
  }

  .app-tabs {
    display: none;
  }

  body.desk main {
    padding-bottom: 3rem;
  }

  .desk-actions a.btn-solid {
    flex: 0 0 auto;
  }

  .btn,
  .app-tools a,
  .app-tools button,
  .export-presets a,
  .cal-nav .btn {
    min-height: 2.25rem;
  }

  .people-search button,
  .person-note button,
  .export-form button,
  .btn-solid {
    min-height: 2.5rem;
  }

  .insight-row {
    grid-template-columns: 1fr 1fr;
  }

  .insight-row article {
    border-bottom: 1px solid var(--line);
    border-right: 1px solid var(--line);
  }

  .insight-row article:nth-child(2n) {
    border-right: 0;
  }

  .cal-nav h2 {
    order: 0;
    flex: 1 1 auto;
    text-align: center;
    font-size: 1.45rem;
  }

  .rate-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .rate-grid > div {
    border-bottom: 0;
    border-right: 1px solid var(--line);
  }

  .rate-grid > div:last-child {
    border-right: 0;
  }

  .hours-row {
    grid-template-columns: 7.5rem 8.5rem minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 0.75rem;
  }

  .people-search {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
  }

  .link-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1040px) {
  .insight-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .insight-row article {
    border-bottom: 0;
    border-right: 1px solid var(--line);
  }

  .insight-row article:last-child {
    border-right: 0;
  }
}

.cal-nav h2 {
  font-family: "Iowan Old Style", Palatino, "Palatino Linotype", Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.week-board {
  align-items: start;
}

.week-day {
  min-height: 0;
  padding: 0.35rem 0.32rem 0.45rem;
}

.week-day.is-focus {
  background: transparent;
}

.week-day.is-busy {
  background: var(--surface);
}

.week-day.is-focus.is-busy {
  box-shadow: inset 0 0 0 1px var(--ink);
}

.week-day:not(.is-busy) .day-worth {
  display: none;
}

.week-day:not(.is-busy) .day-empty {
  margin-top: 0.35rem;
  color: var(--line);
  font-size: 0.68rem;
}

.chip-hold,
a.chip.chip-hold {
  background: var(--ink);
  border-left-color: var(--ink);
  color: var(--paper);
}

.chip-attention,
a.chip.chip-attention {
  background: var(--accent);
  border-left-color: var(--accent);
  color: var(--accent-ink);
}

.chip-confirmed {
  background: var(--surface);
  border: 1px solid var(--ink);
  border-left-width: 3px;
  color: var(--ink);
}

.chip-blocked,
.chip-quiet {
  background: transparent;
  border: 1px dashed var(--line);
  color: var(--muted);
}

.desk-day .chip.chip-hold {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.desk-day .chip.chip-attention {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}

#block-time > summary.btn {
  display: inline-flex;
  margin-top: 0.65rem;
  list-style: none;
  text-decoration: none;
}

#block-time > summary.btn::-webkit-details-marker {
  display: none;
}

.day-book-row .btn-solid,
.desk-section .btn-solid {
  min-height: 2.75rem;
  padding: 0.45rem 0.95rem;
}

body.desk {
  --accent: #9c3b28;
  --paper: #f6f0e4;
  --surface: #fffaf3;
}

.week-board {
  align-items: stretch;
  margin-top: 0.45rem;
  background: var(--surface);
}

.week-day {
  position: relative;
  min-height: 5.5rem;
}

.week-day:not(.is-busy) .day-empty {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.week-day.is-busy {
  background: #fff;
  min-height: 7.5rem;
}

.desk-cracks,
.day-book-row,
.day-quiet,
.desk-actions {
  margin-top: 0.65rem;
}

.day-quiet {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.65rem;
  align-items: center;
}

.day-quiet > details {
  margin: 0;
}

.cal-nav {
  margin-bottom: 0;
}

/* Desk surface: one glance for on the books, needs you, and blocked. */

body.desk {
  --accent: #9c3b28;
  --accent-ink: #f4efe6;
  --ink: #1c1914;
  --paper: #f4efe6;
  --paper-2: #ebe4d6;
  --surface: #fbf7f1;
  --line: #ddd4c6;
  --muted: #5c564c;
  --need-wash: #f8efe8;
  --chip-paper: #fffdf8;
}

body.desk .app-bar {
  background: var(--paper);
  backdrop-filter: none;
}

body.desk .app-bar::before {
  height: 2px;
}

body.desk .cal-nav h2,
body.desk .app-title,
body.desk .desk-cracks h2,
body.desk .desk-room h2 {
  font-family: "Newsreader", Georgia, serif;
}

.state-key {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.05rem;
  margin: 0 0 0.9rem;
  color: var(--muted);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.state-key span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.swatch {
  display: inline-block;
  width: 0.85rem;
  height: 0.7rem;
  border-left: 3px solid var(--ink);
  background: var(--chip-paper);
}

.swatch-need {
  border-left-color: var(--accent);
  background: #f6e6df;
}

.swatch-block {
  border: 1px dashed #cfc6b8;
  background: transparent;
}

.week-rail {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.28rem;
  margin: 0.15rem 0 0.35rem;
}

.rail-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.12rem;
  min-width: 0;
  min-height: 3.7rem;
  padding: 0.35rem 0.05rem 0.4rem;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink);
  text-decoration: none;
}

.rail-dow {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

.rail-num {
  font-family: "Newsreader", Georgia, serif;
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1;
}

.rail-marks {
  display: flex;
  gap: 0.16rem;
  min-height: 0.38rem;
  align-items: center;
}

.mark {
  width: 0.38rem;
  height: 0.38rem;
  background: var(--ink);
}

.mark-attention,
.mark-hold {
  background: var(--accent);
}

.mark-quiet {
  background: var(--line);
}

.mark-blocked {
  background: transparent;
  box-shadow: inset 0 0 0 1.5px var(--muted);
}

.rail-day.is-focus {
  background: var(--chip-paper);
  border-color: var(--line);
  box-shadow: inset 0 2px 0 var(--accent);
}

.rail-day.is-need .rail-num {
  color: var(--accent);
}

.week-scroll {
  overflow-x: auto;
  margin-top: 0.75rem;
  border: 1px solid var(--line);
  background: #f3ecdf;
}

.week-board {
  grid-template-columns: repeat(7, minmax(8.6rem, 1fr));
  min-width: 60rem;
  margin: 0;
  border: 0;
  background: transparent;
  align-items: stretch;
}

.week-day {
  position: relative;
  min-height: 8.4rem;
  padding: 0.55rem 0.4rem 0.7rem;
  background: transparent;
}

.week-day.is-busy {
  background: var(--chip-paper);
  min-height: 8.4rem;
}

.week-day.is-focus {
  background: #fff;
  box-shadow: inset 0 3px 0 var(--accent);
}

.week-day.is-need {
  box-shadow: inset 3px 0 0 var(--accent);
}

.week-day.is-focus.is-need {
  box-shadow: inset 3px 0 0 var(--accent), inset 0 3px 0 var(--accent);
}

.week-day h3 a {
  color: var(--ink);
}

.week-day.is-focus h3 a {
  color: var(--accent);
}

.week-day .day-worth {
  margin: 0.12rem 0 0;
  color: var(--muted);
  font-size: 0.68rem;
}

.week-day:not(.is-busy) .day-empty {
  position: static;
  width: auto;
  height: auto;
  margin: 0.55rem 0 0;
  overflow: visible;
  clip: auto;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.35;
}

.week-day a.chip,
.week-day .chip {
  position: relative;
  display: grid;
  gap: 0.02rem;
  padding: 0.32rem 0.36rem 0.36rem 0.42rem;
  border-radius: 0;
  font-size: 0.75rem;
}

.week-day .chip-name {
  order: -2;
  font-weight: 700;
  font-size: 0.75rem;
  line-height: 1.25;
}

.week-day .chip-time {
  order: -1;
  font-size: 0.68rem;
  font-weight: 400;
}

.week-day .chip-status {
  order: 1;
  margin-top: 0.1rem;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.week-day .chip-why {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.week-day .chip-blocked form {
  display: none;
}

.week-day .chip-blocked p {
  margin: 0;
}

a.chip.chip-confirmed,
.chip-confirmed {
  background: var(--chip-paper);
  border: 1px solid #e6dccb;
  border-left: 4px solid var(--ink);
  color: var(--ink);
}

a.chip.chip-hold,
.chip-hold {
  background: #f8efe6;
  border: 1px solid #ecd9cc;
  border-left: 4px solid var(--accent);
  color: var(--ink);
}

a.chip.chip-attention,
.chip-attention {
  background: #f6e6df;
  border: 1px solid #e7cfc4;
  border-left: 4px solid var(--accent);
  color: var(--ink);
}

.chip-hold .chip-status,
.chip-hold .chip-why,
.chip-attention .chip-status,
.chip-attention .chip-why {
  color: var(--accent);
}

.chip-blocked,
.chip-quiet {
  background: transparent;
  border: 1px dashed #cfc6b8;
  color: var(--muted);
}

.desk-day .chip,
.desk-day a.chip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 0.85rem;
  row-gap: 0.12rem;
  align-items: baseline;
  padding: 0.85rem 0.95rem;
  font-size: 0.9375rem;
}

.desk-day .chip-name {
  grid-column: 1;
  grid-row: 1;
  order: 0;
  font-family: "Newsreader", Georgia, serif;
  font-size: 1.28rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.desk-day .chip-status {
  grid-column: 2;
  grid-row: 1;
  order: 0;
  justify-self: end;
  margin: 0;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.desk-day .chip-time {
  grid-column: 1 / -1;
  grid-row: 2;
  order: 0;
  color: var(--muted);
}

.desk-day .chip-why {
  position: static;
  grid-column: 1 / -1;
  grid-row: 3;
  order: 0;
  width: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  clip: auto;
  font-weight: 700;
}

.desk-day .chip.chip-hold,
.desk-day .chip.chip-attention {
  color: var(--ink);
}

.desk-day .chip-blocked {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem 0.75rem;
}

.desk-day .chip-blocked p {
  margin: 0;
}

.desk-day .cal-nav h2 {
  font-family: "Newsreader", Georgia, serif;
  font-size: clamp(1.65rem, 2.2vw, 2.1rem);
}

body.desk .desk-cracks {
  margin-top: 0.9rem;
  padding: 0.7rem 0.95rem 0.15rem;
  background: var(--need-wash);
  border-left: 3px solid var(--accent);
}

body.desk .desk-cracks h2 {
  font-family: "Atkinson Hyperlegible", "Avenir Next", "Segoe UI", sans-serif;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

body.desk .crack {
  padding: 0.65rem 0 0.75rem;
}

body.desk .crack-who {
  font-family: "Newsreader", Georgia, serif;
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

body.desk .desk-pressure {
  margin: 0 0 0.75rem;
  padding: 0.7rem 0.9rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--ink);
}

body.desk .desk-pressure a {
  font-family: "Newsreader", Georgia, serif;
  font-size: 1.22rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  text-decoration: none;
}

body.desk .desk-empty {
  margin: 0.85rem 0 0;
  padding: 1.05rem 1.1rem;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  text-align: left;
  font-family: "Newsreader", Georgia, serif;
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.desk-clear {
  margin: 0.9rem 0 0;
  color: var(--muted);
  font-size: 0.875rem;
}

body.desk .hour-list a {
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

body.desk .hour-list a:hover {
  background: #fff;
  border-color: var(--accent);
  color: var(--accent);
}

#block-time > summary.btn {
  display: inline;
  width: auto;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.day-quiet {
  margin-top: 1.15rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
}

.room-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.7rem;
  margin-top: 0.85rem;
}

.desk-room-card {
  margin: 0;
  padding: 0.95rem 1rem 1.05rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--ink);
}

.desk-room-card.is-need {
  border-top-color: var(--accent);
  background: var(--need-wash);
}

.desk-room-card h3 {
  margin: 0;
  font-family: "Newsreader", Georgia, serif;
  font-size: 1.4rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.desk-room-card h3 a {
  color: inherit;
  font-weight: 500;
  text-decoration: none;
}

.room-need {
  margin: 0.4rem 0 0;
  color: var(--accent);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rooms-total {
  margin: 0.8rem 0 0;
  color: var(--muted);
  font-size: 0.875rem;
}

.status-flag {
  display: inline-block;
  margin: 0 0 0.45rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-holding,
.status-awaiting_docs {
  color: var(--accent);
}

.status-confirmed {
  color: var(--ink);
}

.status-completed,
.status-cancelled,
.status-expired {
  color: var(--muted);
}

.desk-section.is-next {
  margin-top: 1.15rem;
  padding: 0.95rem 1rem 1.05rem;
  background: var(--need-wash);
  border-top: 0;
  border-left: 3px solid var(--accent);
}

.desk-read details.desk-section[open] > summary.btn {
  font-family: "Atkinson Hyperlegible", "Avenir Next", "Segoe UI", sans-serif;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
}

.desk-read .desk-form {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
}

.swim-chip {
  display: block;
  margin: 0 0 0.3rem;
  padding: 0.28rem 0.35rem;
  border-left: 3px solid var(--ink);
  background: var(--chip-paper);
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
}

.swim-hold,
.swim-attention {
  border-left-color: var(--accent);
  background: #f6e6df;
}

.swim-blocked {
  border: 1px dashed #cfc6b8;
  background: transparent;
  color: var(--muted);
  font-weight: 400;
}

.swim-quiet {
  border-left-color: var(--line);
  background: transparent;
  color: var(--muted);
}

#calendar.htmx-added {
  animation: desk-arrive 180ms ease;
}

@keyframes desk-arrive {
  from { opacity: 0.45; }
  to { opacity: 1; }
}

@media (min-width: 720px) {
  body.desk .desk-day,
  body.desk .desk-week {
    display: block;
  }

  .week-rail {
    display: none;
  }

  .week-empty-again {
    display: none;
  }

  .room-grid {
    grid-template-columns: 1fr 1fr;
  }

  .desk-read .desk-form {
    grid-template-columns: 1fr 1fr;
  }

  .desk-read .desk-form > button,
  .desk-read .desk-form > .desk-help,
  .desk-read .desk-form > details,
  .desk-read .desk-form > p,
  .desk-read .desk-form > fieldset,
  .desk-read .desk-form > div {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1040px) {
  body.desk .hour-list {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .desk-day .day-list {
    grid-template-columns: 1fr;
    max-width: 46rem;
  }
}

@media (min-width: 1100px) {
  .room-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

@media (min-width: 1180px) {
  .week-board {
    min-width: 0;
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .swim-board {
    grid-template-columns: 6.5rem repeat(7, 7.25rem);
    width: max-content;
    min-width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  #calendar.htmx-added {
    animation: none;
  }
}

.week-day.is-focus,
.week-day.is-focus.is-busy {
  background: #fff;
  box-shadow: inset 0 3px 0 var(--accent);
}

.week-day.is-need,
.week-day.is-busy.is-need {
  box-shadow: inset 3px 0 0 var(--accent);
}

.week-day.is-focus.is-need,
.week-day.is-focus.is-busy.is-need {
  background: #fff;
  box-shadow: inset 3px 0 0 var(--accent), inset 0 3px 0 var(--accent);
}

.desk-day .chip.chip-hold,
.desk-day a.chip.chip-hold {
  background: #f8efe6;
  border-color: #ecd9cc;
  border-left-color: var(--accent);
  color: var(--ink);
}

.desk-day .chip.chip-attention,
.desk-day a.chip.chip-attention {
  background: #f6e6df;
  border-color: #e7cfc4;
  border-left-color: var(--accent);
  color: var(--ink);
}

.desk-day .chip.chip-confirmed,
.desk-day a.chip.chip-confirmed {
  background: var(--chip-paper);
  border-color: #e6dccb;
  border-left-color: var(--ink);
  color: var(--ink);
}

.week-day .day-worth {
  display: none;
}
