@font-face {
  font-family: "Desk Architects Daughter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/static/fonts/architects-daughter-latin-400-normal.ttf") format("truetype");
}

@font-face {
  font-family: "Desk Patrick Hand";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/static/fonts/patrick-hand-latin-400-normal.woff2") format("woff2");
}

:root {
  --desk-ink: #f5f0df;
  --desk-muted: #c9c0a7;
  --desk-blue: #08275e;
  --desk-blue-deep: #031433;
  --desk-blue-royal: #144eb7;
  --desk-gold: #d7ad4d;
  --desk-gold-soft: #f0d58a;
  --desk-felt: #173f34;
  --desk-felt-soft: #235a49;
  --desk-line: rgba(240, 213, 138, 0.28);
  --desk-panel: rgba(4, 20, 51, 0.78);
  --desk-panel-strong: rgba(5, 25, 63, 0.94);
  --desk-shadow: 0 18px 54px rgba(0, 0, 0, 0.34);
  --desk-notebook-line: 1.9rem;
  --desk-notebook-margin: 2.6rem;
  --desk-notebook-writing-inset: 0.58rem;
  --desk-notebook-right-margin: 0.9rem;
}

html.desk-page-document,
html:has(#desk-page-root) {
  height: 100%;
  overflow: hidden;
}

body.desk-page-body,
body:has(#desk-page-root) {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: none;
  height: calc(100dvh - 1px);
  min-height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 12%, rgba(20, 78, 183, 0.32), transparent 28rem),
    radial-gradient(circle at 80% 16%, rgba(215, 173, 77, 0.12), transparent 24rem),
    linear-gradient(135deg, #031433 0%, #061c49 44%, #08275e 100%);
  background-size: auto;
  background-position: center;
  background-attachment: fixed;
  color: var(--desk-ink);
}

body.desk-page-body .skip-link,
body:has(#desk-page-root) .skip-link,
body.desk-page-body #title-block-header,
body:has(#desk-page-root) #title-block-header,
body.desk-page-body nav.site-nav .nav-site-signature,
body:has(#desk-page-root) nav.site-nav .nav-site-signature,
body.desk-page-body nav.site-nav .nav-center,
body:has(#desk-page-root) nav.site-nav .nav-center,
body.desk-page-body nav.site-nav .nav-search,
body:has(#desk-page-root) nav.site-nav .nav-search,
body.desk-page-body nav.site-nav .nav-compose-tools,
body:has(#desk-page-root) nav.site-nav .nav-compose-tools,
body.desk-page-body nav.site-nav .nav-cart-toggle,
body:has(#desk-page-root) nav.site-nav .nav-cart-toggle,
body.desk-page-body nav.site-nav .nav-username,
body:has(#desk-page-root) nav.site-nav .nav-username,
body.desk-page-body footer.site-footer,
body:has(#desk-page-root) footer.site-footer {
  display: none !important;
}

body.desk-page-body nav.site-nav,
body:has(#desk-page-root) nav.site-nav {
  position: fixed !important;
  top: max(0.75rem, env(safe-area-inset-top)) !important;
  right: max(0.75rem, env(safe-area-inset-right)) !important;
  left: auto !important;
  z-index: 80 !important;
  width: fit-content !important;
  max-width: calc(100vw - 1.5rem) !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

body.desk-page-body nav.site-nav > .nav-right,
body:has(#desk-page-root) nav.site-nav > .nav-right {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: flex-end !important;
  width: fit-content !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.desk-page-body nav.site-nav .nav-login-split,
body:has(#desk-page-root) nav.site-nav .nav-login-split,
body.desk-page-body nav.site-nav .nav-user-menu,
body:has(#desk-page-root) nav.site-nav .nav-user-menu {
  width: fit-content !important;
  margin: 0 !important;
  align-self: flex-start !important;
}

body.desk-page-body nav.site-nav .btn-login,
body:has(#desk-page-root) nav.site-nav .btn-login {
  border-color: rgba(240, 213, 138, 0.4) !important;
  background: rgba(240, 213, 138, 0.1) !important;
  color: var(--desk-gold-soft) !important;
  box-shadow: none !important;
}

body.desk-page-body nav.site-nav .nav-menu-btn,
body:has(#desk-page-root) nav.site-nav .nav-menu-btn {
  width: 2.6rem !important;
  min-width: 2.6rem !important;
  height: 2.6rem !important;
  min-height: 2.6rem !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: rgba(3, 20, 51, 0.72) !important;
  color: var(--desk-gold-soft) !important;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset, 0 10px 22px rgba(0, 0, 0, 0.24) !important;
}

body.desk-page-body nav.site-nav .btn-login:hover,
body:has(#desk-page-root) nav.site-nav .btn-login:hover,
body.desk-page-body nav.site-nav .btn-login:focus-visible,
body:has(#desk-page-root) nav.site-nav .btn-login:focus-visible,
body.desk-page-body nav.site-nav .nav-menu-btn:hover,
body:has(#desk-page-root) nav.site-nav .nav-menu-btn:hover,
body.desk-page-body nav.site-nav .nav-menu-btn:focus-visible,
body:has(#desk-page-root) nav.site-nav .nav-menu-btn:focus-visible {
  border-color: rgba(240, 213, 138, 0.72) !important;
  background: rgba(3, 20, 51, 0.86) !important;
}

body.desk-page-body nav.site-nav .nav-login-menu,
body:has(#desk-page-root) nav.site-nav .nav-login-menu,
body.desk-page-body nav.site-nav .nav-menu-panel,
body:has(#desk-page-root) nav.site-nav .nav-menu-panel {
  right: 0 !important;
  left: auto !important;
  border-color: rgba(240, 213, 138, 0.32) !important;
  background: rgba(3, 20, 51, 0.96) !important;
  color: var(--desk-gold-soft) !important;
}

body.desk-page-body nav.site-nav .nav-menu-panel :where(a, button, .nav-menu-item, label, span),
body:has(#desk-page-root) nav.site-nav .nav-menu-panel :where(a, button, .nav-menu-item, label, span),
body.desk-page-body nav.site-nav .nav-login-menu :where(a, button, .nav-menu-item, label, span),
body:has(#desk-page-root) nav.site-nav .nav-login-menu :where(a, button, .nav-menu-item, label, span) {
  color: var(--desk-gold-soft) !important;
  -webkit-text-fill-color: currentColor !important;
}

.desk-shell {
  --desk-shell-pad-top: clamp(4.05rem, 5.2vw, 4.85rem);
  --desk-shell-pad-x: clamp(0.8rem, 1.6vw, 1.4rem);
  --desk-shell-pad-bottom: clamp(7rem, 8vw, 7.8rem);
  position: relative;
  box-sizing: border-box;
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  align-items: stretch;
  width: 100%;
  max-width: none;
  height: calc(100% - 1px);
  min-height: 0;
  margin: 0;
  padding: var(--desk-shell-pad-top) var(--desk-shell-pad-x) var(--desk-shell-pad-bottom);
  overflow: hidden;
  color: var(--desk-ink);
}

.desk-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 78% 18%, rgba(215, 173, 77, 0.1), transparent 24rem),
    linear-gradient(145deg, rgba(3, 20, 51, 0.18), rgba(4, 33, 76, 0.08));
}

.desk-shell[data-room-tone="1"]::before {
  background:
    radial-gradient(circle at 72% 16%, rgba(20, 78, 183, 0.2), transparent 22rem),
    linear-gradient(145deg, #041838, #072b58 54%, #0a3b8f);
}

.desk-shell[data-room-tone="2"]::before {
  background:
    radial-gradient(circle at 76% 20%, rgba(70, 126, 214, 0.16), transparent 23rem),
    linear-gradient(145deg, #031433, #0b2d6d 58%, #10398a);
}

.desk-access-gate {
  min-height: min(68vh, 720px);
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 1rem;
}

.desk-loading {
  box-sizing: border-box;
  grid-area: 1 / 1;
  width: min(96rem, calc(100vw - clamp(1.6rem, 3.2vw, 3.6rem)));
  height: 100%;
  min-height: 0;
  margin: 0 auto;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 232, 175, 0.08), rgba(28, 10, 4, 0.12)),
    linear-gradient(90deg, rgba(43, 16, 8, 0.28), transparent 18%, transparent 82%, rgba(43, 16, 8, 0.28)),
    url("/static/textures/desk-mahogany.jpg");
  background-size: cover;
  background-position: center;
  box-shadow:
    0 42px 88px rgba(0, 0, 0, 0.46),
    0 18px 22px rgba(255, 232, 175, 0.1) inset,
    0 -24px 34px rgba(35, 12, 5, 0.28) inset,
    18px 0 30px rgba(35, 12, 5, 0.18) inset,
    -18px 0 30px rgba(255, 232, 175, 0.045) inset,
    0 18px 36px rgba(3, 20, 51, 0.32);
}

.desk-access-gate {
  max-width: 38rem;
}

.desk-access-gate h1,
.desk-loading h1,
.desk-room-heading h1 {
  margin: 0;
  color: var(--desk-ink);
  -webkit-text-fill-color: currentColor;
  font-size: clamp(2.2rem, 6vw, 5rem);
  line-height: 0.96;
  letter-spacing: 0;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.25);
  border: 0;
}

.desk-kicker,
.desk-room-note,
.desk-muted {
  color: var(--desk-muted);
}

.desk-access-gate p {
  margin: 0;
  color: var(--desk-muted);
  max-width: 34rem;
}

.desk-btn,
.desk-icon-btn,
.desk-status-btn,
.desk-link-btn {
  width: fit-content;
  border: 1px solid var(--desk-line);
  border-radius: 6px;
  background: rgba(8, 39, 94, 0.78);
  color: var(--desk-ink);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08) inset, 0 8px 18px rgba(0, 0, 0, 0.22);
  cursor: pointer;
}

.desk-btn,
.desk-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.42rem;
  padding: 0.52rem 0.8rem;
  font-weight: 700;
  text-decoration: none;
}

.desk-btn.primary {
  background: linear-gradient(180deg, var(--desk-gold-soft), var(--desk-gold));
  color: #10131f;
  border-color: rgba(255, 238, 169, 0.65);
}

.desk-btn.subtle,
.desk-link-btn {
  background: rgba(240, 213, 138, 0.08);
  color: var(--desk-gold-soft);
}

.desk-icon-btn {
  min-width: 2.2rem;
  min-height: 2.2rem;
  padding: 0.24rem 0.45rem;
  color: var(--desk-gold-soft);
}

.desk-btn:hover,
.desk-icon-btn:hover,
.desk-status-btn:hover,
.desk-link-btn:hover {
  border-color: rgba(240, 213, 138, 0.66);
  transform: translateY(-1px);
}

.desk-layout {
  display: grid;
  gap: clamp(1rem, 2vw, 1.4rem);
}

.desk-visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
}

.desk-chrome-controls {
  position: fixed;
  top: max(0.75rem, env(safe-area-inset-top));
  right: max(4.6rem, calc(env(safe-area-inset-right) + 4.6rem));
  z-index: 1602;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.42rem;
  flex-wrap: wrap;
  pointer-events: none;
}

.desk-stage {
  position: relative;
  box-sizing: border-box;
  grid-area: 1 / 1;
  width: min(96rem, calc(100vw - clamp(1.6rem, 3.2vw, 3.6rem)));
  height: 100%;
  min-height: 0;
  margin: 0 auto;
  padding: clamp(0.38rem, 0.9vw, 0.72rem);
  display: grid;
  align-items: stretch;
  perspective: 1400px;
  border: 0;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 232, 175, 0.08), rgba(28, 10, 4, 0.12)),
    linear-gradient(90deg, rgba(43, 16, 8, 0.28), transparent 18%, transparent 82%, rgba(43, 16, 8, 0.28)),
    url("/static/textures/desk-mahogany.jpg");
  background-size: cover;
  background-position: center;
  box-shadow:
    0 42px 88px rgba(0, 0, 0, 0.46),
    0 18px 22px rgba(255, 232, 175, 0.1) inset,
    0 -24px 34px rgba(35, 12, 5, 0.28) inset,
    18px 0 30px rgba(35, 12, 5, 0.18) inset,
    -18px 0 30px rgba(255, 232, 175, 0.045) inset,
    0 18px 36px rgba(3, 20, 51, 0.32);
}

.desk-shell > [data-desk-message] {
  grid-area: 1 / 1;
  align-self: start;
  justify-self: center;
  z-index: 85;
  width: min(42rem, 100%);
  pointer-events: none;
}

.desk-stage[data-desk-stage-mode="todo"] {
  grid-template-columns: minmax(0, 1fr) clamp(21rem, 26vw, 30rem);
  align-items: center;
  justify-content: center;
  gap: clamp(1.6rem, 2.4vw, 2.6rem);
  padding-inline: clamp(1rem, 2vw, 1.7rem);
}

.desk-mode-panel {
  box-sizing: border-box;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(240, 213, 138, 0.34);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.04), transparent 42%),
    rgba(4, 20, 51, 0.78);
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.34), 0 1px 0 rgba(255, 255, 255, 0.06) inset;
  animation: desk-panel-arrive 360ms cubic-bezier(0.22, 1, 0.36, 1);
}

.desk-stage[data-desk-stage-mode="map"] .desk-mode-panel {
  transform-origin: left bottom;
}

.desk-stage[data-desk-stage-mode="map"] .desk-map-panel {
  width: min(100%, 76rem);
  height: auto;
  max-height: 88%;
  aspect-ratio: var(--desk-map-aspect, 1.33333);
  align-self: center;
  justify-self: center;
  transform: none;
}

.desk-stage[data-desk-stage-mode="todo"] .desk-mode-panel {
  transform-origin: right bottom;
}

.desk-stage[data-desk-stage-mode="compose"] .desk-mode-panel {
  transform-origin: center bottom;
}

.desk-stage[data-desk-stage-mode="compose"] {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  justify-content: center;
  gap: clamp(0.65rem, 1.35vw, 1.1rem);
}

.desk-stage[data-desk-stage-mode="compose"] .desk-map-panel {
  width: min(100%, 63.5rem);
  height: 88%;
  align-self: center;
  justify-self: center;
  animation: none;
  transform: translateX(-0.75rem);
}

@keyframes desk-panel-arrive {
  from {
    opacity: 0;
    transform: translateY(2.6rem) rotateX(11deg) scale(0.94);
  }

  to {
    opacity: 1;
    transform: translateY(0) rotateX(0) scale(1);
  }
}

.desk-mode-dock {
  position: fixed;
  inset: auto clamp(1rem, 2.2vw, 2.2rem) max(0.9rem, env(safe-area-inset-bottom)) clamp(1rem, 2.2vw, 2.2rem);
  z-index: 70;
  height: 5.6rem;
  pointer-events: none;
}

.desk-mode-launch {
  position: absolute;
  bottom: 0;
  pointer-events: auto;
  border: 1px solid rgba(240, 213, 138, 0.44);
  border-radius: 8px;
  color: var(--desk-gold-soft);
  background:
    linear-gradient(180deg, rgba(5, 25, 63, 0.9), rgba(3, 20, 51, 0.78)),
    rgba(3, 20, 51, 0.8);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.32);
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.desk-mode-launch svg {
  display: block;
  width: 2.25rem;
  height: 2.25rem;
  margin: auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.desk-mode-launch:hover,
.desk-mode-launch:focus-visible,
.desk-mode-launch.is-active {
  border-color: rgba(240, 213, 138, 0.82);
  background:
    linear-gradient(180deg, rgba(14, 56, 127, 0.95), rgba(5, 25, 63, 0.9)),
    rgba(5, 25, 63, 0.9);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.36);
}

.desk-mode-map {
  left: 0;
  width: 5.2rem;
  height: 5.2rem;
  text-align: left;
  border: 0;
  overflow: visible;
  background: transparent !important;
  box-shadow: none;
}

.desk-mode-map.is-active {
  width: 6.2rem;
  height: 6.2rem;
}

.desk-mode-map:hover,
.desk-mode-map:focus-visible,
.desk-mode-map.is-active {
  background: transparent !important;
  box-shadow: none;
}

.desk-mode-map .desk-map-fold-icon {
  position: absolute;
  left: 0.1rem;
  bottom: 0.05rem;
  width: 5.4rem;
  height: 5.4rem;
  margin: 0;
  overflow: visible;
  fill: none;
  stroke-width: 2.1;
  transform-origin: 18% 82%;
  transition: transform 180ms cubic-bezier(0.2, 0.82, 0.18, 1);
}

.desk-mode-map:hover .desk-map-fold-icon,
.desk-mode-map:focus-visible .desk-map-fold-icon,
.desk-mode-map.is-active .desk-map-fold-icon {
  transform: scale(1.14);
}

.desk-map-fold-art {
  transform: rotate(-13deg);
  transform-origin: 24px 56px;
}

.desk-map-fold-shadow {
  stroke: rgba(47, 24, 6, 0.24);
  stroke-width: 12;
  stroke-linecap: round;
}

.desk-map-fold-panel {
  stroke: #6f4d1e;
  stroke-width: 2.5;
  stroke-linejoin: round;
}

.desk-map-fold-panel.left {
  fill: #e8c778;
}

.desk-map-fold-panel.mid {
  fill: #f0d58a;
}

.desk-map-fold-panel.right {
  fill: #d6a846;
}

.desk-map-fold-crease {
  stroke: rgba(111, 77, 30, 0.74);
  stroke-width: 2.1;
}

.desk-map-fold-grid {
  stroke: rgba(122, 66, 37, 0.42);
  stroke-width: 1.25;
}

.desk-map-fold-route {
  stroke: #154da7;
  stroke-width: 2.5;
}

.desk-mode-compose {
  left: calc(50% - 2.05rem);
  display: grid;
  place-items: center;
  width: 4.1rem;
  height: 4.4rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.desk-mode-compose:hover,
.desk-mode-compose:focus-visible,
.desk-mode-compose.is-active {
  border: 0;
  background: transparent;
  box-shadow: none;
  transform: none;
}

.desk-mode-todo {
  right: 0;
  display: grid;
  place-items: center;
  width: 4.05rem;
  height: 4.55rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  appearance: none;
  background: transparent;
  box-shadow: none;
}

.desk-mode-todo:hover,
.desk-mode-todo:focus-visible {
  border: 0;
  background: transparent;
  box-shadow: none;
}

.desk-mode-compose .desk-compose-book-icon {
  width: 3.75rem;
  height: 3.75rem;
  margin: 0;
  overflow: visible;
}

.desk-compose-book-cover {
  fill: #101010;
  stroke: rgba(248, 241, 220, 0.92);
  stroke-width: 1.6;
}

.desk-compose-book-marble {
  fill: url(#desk-compose-marble);
}

.desk-compose-book-spine {
  fill: #050505;
}

.desk-compose-book-spine-line,
.desk-compose-book-spine-stitch,
.desk-compose-book-label-line,
.desk-compose-book-edge,
.desk-compose-marble-vein {
  fill: none;
  stroke-linecap: round;
}

.desk-compose-book-spine-line {
  stroke: rgba(248, 241, 220, 0.46);
  stroke-width: 1.1;
}

.desk-compose-book-spine-stitch {
  stroke: rgba(248, 241, 220, 0.2);
  stroke-width: 0.72;
  stroke-dasharray: 1.6 2.1;
}

.desk-compose-book-label {
  fill: #f3ead8;
  stroke: #111;
  stroke-width: 1.2;
}

.desk-compose-book-label-line {
  stroke: #111;
  stroke-width: 1.3;
}

.desk-compose-book-edge {
  stroke: rgba(248, 241, 220, 0.72);
  stroke-width: 1.2;
}

.desk-compose-marble-vein.heavy {
  stroke: #0a0a0a;
  stroke-width: 3.2;
}

.desk-compose-marble-vein.mid {
  stroke: #202020;
  stroke-width: 1.55;
}

.desk-compose-marble-vein.fine {
  stroke: #f8f6ee;
  stroke-width: 1.05;
}

.desk-compose-marble-speck.dark {
  fill: #111;
}

.desk-compose-marble-speck.light {
  fill: #fffdf5;
}

.desk-mode-todo .desk-checklist-notebook-icon {
  width: 4.05rem;
  height: 4.55rem;
  margin: 0;
  overflow: visible;
  color: var(--desk-gold-soft);
}

.desk-checklist-page {
  fill: #faf9f2;
  stroke: #6f4d1e;
  stroke-width: 2.6;
}

.desk-checklist-margin {
  stroke: rgba(210, 88, 74, 0.55);
  stroke-width: 1.8;
}

.desk-checklist-rule {
  stroke: rgba(69, 110, 185, 0.55);
  stroke-width: 1.6;
}

.desk-checklist-check {
  stroke: #144eb7;
  stroke-width: 2.4;
}

.desk-topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.desk-panel-tools {
  position: absolute;
  top: clamp(0.55rem, 1vw, 0.9rem);
  right: clamp(0.55rem, 1vw, 0.9rem);
  z-index: 4;
  display: flex;
  justify-content: flex-end;
  gap: 0.45rem;
}

.desk-create-room-form {
  width: fit-content;
  max-width: min(100%, 34rem);
  padding: 0.5rem;
  border: 1px solid rgba(240, 213, 138, 0.22);
  border-radius: 8px;
  background: rgba(3, 20, 51, 0.72);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
}

.desk-create-room-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.72rem;
}

.desk-create-room-form label {
  display: grid;
  gap: 0.28rem;
}

.desk-create-room-form label span {
  color: rgba(255, 237, 179, 0.84);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}

.desk-create-room-form .desk-input,
.desk-create-room-form .desk-select {
  height: 2.55rem;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.desk-create-room-form .desk-select {
  width: 100%;
}

.desk-create-room-form .desk-btn[type="submit"] {
  width: fit-content;
  justify-self: end;
  margin-top: 0.86rem;
  padding: 0.72rem 1rem;
  border-radius: 6px;
  appearance: none;
  font-size: 0.94rem;
  line-height: 1;
}

.desk-map-create-btn {
  position: absolute;
  right: clamp(0.9rem, 1.4vw, 1.2rem);
  bottom: clamp(0.9rem, 1.4vw, 1.2rem);
  z-index: 6;
  display: grid;
  place-items: center;
  width: 2.55rem;
  height: 2.55rem;
  padding: 0;
  border: 0;
  border-radius: 10px;
  appearance: none;
  background: transparent !important;
  background-image: none !important;
  color: #5d4527;
  box-shadow: none !important;
  cursor: pointer;
  font-size: 1.62rem;
  font-weight: 900;
  line-height: 1;
  text-align: center;
}

.desk-map-create-btn:hover,
.desk-map-create-btn:focus-visible {
  border: 0;
  background: #e8cf8b !important;
  box-shadow: none !important;
}

.desk-modal-backdrop {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(3, 20, 51, 0.38);
  backdrop-filter: blur(2px);
}

.desk-modal {
  position: relative;
  width: min(24rem, 100%);
  max-width: 100%;
  padding: 1.05rem;
  border: 1px solid rgba(240, 213, 138, 0.38);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(5, 25, 63, 0.96), rgba(3, 20, 51, 0.93)),
    rgba(3, 20, 51, 0.96);
  box-shadow: 0 26px 64px rgba(0, 0, 0, 0.44);
  animation: desk-modal-arrive 180ms ease;
}

.desk-modal .desk-create-room-form {
  width: 100%;
  max-width: none;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.desk-modal-title {
  margin: 0 2.5rem 0.85rem 0;
  color: var(--desk-gold-soft);
  font-size: 1.06rem;
  font-weight: 650;
  line-height: 1.2;
}

.desk-modal-close {
  position: absolute;
  top: 0.62rem;
  right: 0.62rem;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 1px solid rgba(240, 213, 138, 0.34);
  border-radius: 50%;
  appearance: none;
  background: rgba(3, 20, 51, 0.72);
  color: var(--desk-gold-soft);
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1;
}

.desk-modal-close:hover,
.desk-modal-close:focus-visible {
  border-color: rgba(240, 213, 138, 0.74);
  background: rgba(8, 39, 94, 0.86);
}

@keyframes desk-modal-arrive {
  from {
    opacity: 0;
    transform: translateY(0.6rem) scale(0.97);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.desk-room-heading {
  display: grid;
  gap: 0.42rem;
}

.desk-room-heading h1 {
  font-size: clamp(2rem, 5vw, 4.6rem);
}

.desk-status {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0.16rem;
  border: 0;
  border-radius: 10px;
  background: rgba(3, 20, 51, 0.72);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset, 0 10px 22px rgba(0, 0, 0, 0.24);
  pointer-events: auto;
}

.desk-top-actions {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.desk-threshold-control {
  display: grid;
  gap: 0.22rem;
  color: var(--desk-muted);
  font-size: 0.78rem;
}

.desk-threshold-control .desk-select {
  min-width: 4.8rem;
}

.desk-status-btn {
  display: grid;
  place-items: center;
  position: relative;
  width: 2.28rem;
  height: 2.28rem;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  box-shadow: none;
  transform: none;
}

.desk-status-btn svg {
  display: block;
  width: 1.14rem;
  height: 1.14rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.desk-status-btn.is-active,
.desk-status-btn[aria-pressed="true"] {
  color: #10131f;
  background: var(--desk-gold);
}

.desk-status-btn:hover,
.desk-status-btn:focus-visible {
  border: 0;
  background: rgba(240, 213, 138, 0.14);
  transform: none;
}

.desk-status-btn[aria-pressed="true"]:hover,
.desk-status-btn[aria-pressed="true"]:focus-visible {
  background: var(--desk-gold);
}

.desk-menu-settings {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.28rem;
  padding: 0.58rem;
  border-top: 1px solid rgba(240, 213, 138, 0.2);
}

.desk-menu-heading {
  margin: 0;
  border: 0;
  color: var(--desk-gold-soft);
  -webkit-text-fill-color: currentColor;
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0;
  line-height: 1.1;
  text-transform: none;
}

.desk-menu-settings .desk-threshold-control {
  gap: 0.28rem;
}

.desk-menu-settings .desk-select {
  min-width: 5rem;
}

.desk-workbench {
  display: grid;
  grid-template-columns: minmax(20rem, 24vw) minmax(0, 1fr);
  gap: clamp(1rem, 2vw, 2rem);
  align-items: start;
}

.desk-surface,
.desk-room-panel,
.desk-office-panel,
.desk-search-panel {
  border: 1px solid var(--desk-line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.035), transparent 44%),
    var(--desk-panel);
  box-shadow: var(--desk-shadow);
}

.desk-surface {
  position: sticky;
  top: 1rem;
  padding: 1rem;
  background:
    linear-gradient(145deg, rgba(18, 70, 57, 0.96), rgba(12, 45, 67, 0.92));
}

.desk-surface h2,
.desk-room-panel h2,
.desk-office-panel h2,
.desk-search-panel h2 {
  margin: 0 0 0.7rem;
  color: var(--desk-gold-soft);
  -webkit-text-fill-color: currentColor;
  font-size: 1.1rem;
  letter-spacing: 0;
  border: 0;
}

.desk-form {
  display: grid;
  gap: 0.72rem;
}

.desk-form-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.desk-form label {
  display: grid;
  gap: 0.28rem;
  color: var(--desk-muted);
  font-size: 0.88rem;
}

.desk-input,
.desk-select,
.desk-textarea {
  width: auto;
  max-width: 100%;
  color: var(--desk-ink);
  background: rgba(2, 11, 29, 0.58);
  border: 1px solid rgba(240, 213, 138, 0.26);
  border-radius: 6px;
  padding: 0.5rem 0.62rem;
}

.desk-textarea {
  width: 100%;
  min-height: 8.5rem;
  resize: vertical;
  line-height: 1.45;
}

.desk-select {
  min-width: min(15rem, 100%);
}

.desk-search-form {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(240, 213, 138, 0.22);
}

.desk-main-stack {
  display: grid;
  gap: 1rem;
}

.desk-room-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
  margin-bottom: 1rem;
}

.desk-panel-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.desk-panel-title-row h2 {
  margin-bottom: 0;
}

.desk-filter-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: -0.2rem 0 0.7rem;
}

.desk-office-panel,
.desk-room-panel,
.desk-search-panel {
  padding: clamp(0.9rem, 2vw, 1.15rem);
}

.desk-map-panel,
.desk-todo-panel,
.desk-compose-panel {
  position: relative;
  padding: clamp(0.42rem, 0.9vw, 0.72rem);
}

.desk-map-panel {
  border: 0;
  background: transparent;
  box-shadow: none;
  aspect-ratio: var(--desk-map-aspect, 1.33333);
  transform-origin: left bottom;
  animation: desk-map-unfurl 430ms cubic-bezier(0.2, 0.82, 0.18, 1);
  transition: width 340ms cubic-bezier(0.2, 0.82, 0.18, 1), max-height 340ms cubic-bezier(0.2, 0.82, 0.18, 1), transform 340ms cubic-bezier(0.2, 0.82, 0.18, 1);
  clip-path: inset(0 0 0 0 round 8px);
}

.desk-map-panel.is-steady {
  animation: none;
}

.desk-map-panel.is-closing {
  pointer-events: none;
  animation: desk-map-furl 380ms cubic-bezier(0.62, 0, 0.22, 1) forwards;
}

.desk-stage[data-desk-stage-mode="todo"] .desk-map-panel {
  width: 100%;
  height: auto;
  max-height: 88%;
  aspect-ratio: var(--desk-map-aspect, 1.33333);
  align-self: center;
  justify-self: center;
  animation: none;
  transform: none;
}

.desk-map-scroll {
  position: relative;
  height: 100%;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  background:
    radial-gradient(circle at 20% 18%, rgba(255, 239, 184, 0.22), transparent 22rem),
    #dcc17f;
  background-size: auto, auto;
  box-shadow: inset 0 0 38px rgba(75, 41, 18, 0.28);
}

.desk-map-svg {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  background: transparent;
  font-family: ui-serif, Georgia, "Times New Roman", serif;
  shape-rendering: geometricPrecision;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
}

.desk-map-scroll.is-closeup .desk-map-svg {
  cursor: grab;
}

.desk-map-scroll.is-closeup .desk-map-room-link {
  cursor: pointer;
}

.desk-map-panel-error {
  display: grid;
  place-items: center;
  min-height: 16rem;
  color: var(--desk-gold-soft);
}

.desk-map-error {
  max-width: 22rem;
  padding: 1rem;
  border: 1px solid rgba(240, 213, 138, 0.34);
  border-radius: 8px;
  background: rgba(3, 20, 51, 0.86);
}

.desk-map-error p {
  margin: 0 0 0.35rem;
  font-weight: 700;
}

.desk-map-error small {
  color: rgba(255, 237, 179, 0.76);
}

.desk-map-parchment {
  fill: url(#desk-map-parchment-texture);
}

.desk-map-grid {
  fill: url(#desk-map-grid);
}

.desk-map-room {
  transform-box: fill-box;
  transform-origin: center;
  transition: filter 180ms ease, opacity 180ms ease;
}

.desk-map-room-shape {
  fill: url(#desk-map-room-paper);
  stroke: rgba(43, 27, 12, 0.76);
  stroke-width: 4;
  stroke-linejoin: round;
}

.desk-map-greenbelt {
  pointer-events: none;
}

.desk-map-greenbelt-strip {
  fill: none;
  stroke: url(#desk-map-greenbelt-gradient);
  stroke-linecap: round;
  stroke-linejoin: round;
}

.desk-map-greenbelt-strip {
  stroke-width: 44;
  opacity: 0.84;
}

.desk-map-room-grass {
  fill: url(#desk-map-grass);
  stroke: none;
  opacity: 0.93;
  pointer-events: none;
}

.desk-map-room-grass-area,
.desk-map-room-grass-edge {
  pointer-events: none;
}

.desk-map-room-grass-edge {
  fill: none;
  stroke: #87936a;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.desk-map-room-grass-edge-soft {
  stroke-width: 46;
  opacity: 0.5;
  filter: url(#desk-map-greenery-blur);
}

.desk-map-room-grass-edge-core {
  stroke-width: 28;
  opacity: 0.68;
}

.desk-map-room-outdoor-hit {
  fill: rgba(255, 255, 255, 0.001);
  stroke: transparent;
  stroke-width: 0;
  stroke-linejoin: round;
  pointer-events: all;
}

.desk-map-room-current-tint {
  opacity: 0.26;
  pointer-events: none;
}

.desk-map-room.is-current .desk-map-room-current-tint {
  opacity: 0.34;
}

.desk-map-room-hover-tint {
  opacity: 0;
  pointer-events: none;
  transition: opacity 150ms ease;
}

.desk-map-room-link:not(.is-current):hover .desk-map-room-hover-tint,
.desk-map-room-link:not(.is-current):focus .desk-map-room-hover-tint,
.desk-map-room-link.is-drop-target .desk-map-room-hover-tint {
  opacity: 0.28;
}

.desk-map-room-dim {
  --presence: 0;
  fill: rgba(44, 39, 32, 0.72);
  opacity: calc((1 - var(--presence)) * 0.48);
  pointer-events: none;
  mix-blend-mode: multiply;
  transition: opacity 1400ms ease;
}

.desk-map-room-dim.is-outdoor {
  fill: rgba(43, 50, 35, 0.58);
  opacity: calc((1 - var(--presence)) * 0.36);
}

.desk-map-room-presence {
  --presence: 0;
  fill: url(#desk-map-presence-glow);
  opacity: calc(var(--presence) * 0.84);
  pointer-events: none;
  transition: opacity 1400ms ease;
}

.desk-map-room-presence.is-outdoor {
  fill: url(#desk-map-presence-glow-outdoor);
  opacity: calc(var(--presence) * 0.58);
}

.desk-map-room text {
  fill: #26180c;
  font-size: 16px;
  font-weight: 800;
  pointer-events: none;
}

.desk-map-room .desk-map-room-meta {
  font-size: max(16px, 0.9rem);
  font-weight: 700;
  opacity: 0.78;
}

.desk-map-room.is-current .desk-map-room-shape,
.desk-map-room.is-passage-source .desk-map-room-shape,
.desk-map-room.is-current .desk-map-room-outdoor-hit,
.desk-map-room.is-passage-source .desk-map-room-outdoor-hit {
  stroke: color-mix(in srgb, var(--room-color) 72%, #d7b46f 28%);
  stroke-width: 5.4;
}

.desk-map-room-link:not(.is-current):hover .desk-map-room-shape,
.desk-map-room-link:not(.is-current):focus .desk-map-room-shape,
.desk-map-room-link.is-drop-target .desk-map-room-shape,
.desk-map-room-link:not(.is-current):hover .desk-map-room-outdoor-hit,
.desk-map-room-link:not(.is-current):focus .desk-map-room-outdoor-hit,
.desk-map-room-link.is-drop-target .desk-map-room-outdoor-hit {
  stroke: transparent;
  stroke-width: 0;
}

.desk-map-room.is-current .desk-map-room-grass,
.desk-map-room.is-passage-source .desk-map-room-grass {
  filter: saturate(1.08) brightness(1.02);
}

.desk-map-room-link:not(.is-current):hover .desk-map-room-grass,
.desk-map-room-link:not(.is-current):focus .desk-map-room-grass,
.desk-map-room-link.is-drop-target .desk-map-room-grass {
  filter: saturate(1.16) brightness(1.05);
}

.desk-map-room-link[draggable="true"] {
  cursor: pointer;
  touch-action: none;
}

.desk-map-room-link[draggable="false"] {
  cursor: pointer;
  touch-action: none;
}

.desk-map-room-link.is-dragging {
  cursor: grabbing;
  opacity: 0.55;
}

.desk-map-door-layer {
  pointer-events: none;
}

.desk-map-room-outline-layer,
.desk-map-room-hover-outline-layer {
  pointer-events: none;
}

.desk-map-room-outline {
  fill: none;
  stroke: transparent;
  stroke-linejoin: round;
  stroke-width: 4;
  pointer-events: none;
  transition: stroke 140ms ease, stroke-width 140ms ease, opacity 140ms ease;
}

.desk-map-room-outline.is-current,
.desk-map-room-outline.is-passage-source {
  stroke: color-mix(in srgb, var(--room-color) 72%, #d7b46f 28%);
  stroke-width: 5.6;
}

.desk-map-room-hover-outline.is-hovered {
  stroke: var(--room-color);
  stroke-width: 7.8;
}

.desk-map-door {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

.desk-map-door.is-last-entered .desk-map-door-gap {
  stroke: color-mix(in srgb, var(--room-color, #3d66c8) 78%, #ffe4a6 22%);
  stroke-width: 6.2;
}

.desk-map-door.is-last-entered .desk-map-door-leaf {
  stroke: rgba(118, 128, 142, 0.42);
  stroke-width: 2.8;
}

.desk-map-door.is-last-entered .desk-map-door-swing {
  stroke: rgba(118, 128, 142, 0.4);
}

.desk-map-door-gap {
  stroke: #5a3f1d;
  stroke-width: 5.2;
}

.desk-map-door-leaf {
  stroke: rgba(111, 121, 132, 0.44);
  stroke-width: 2.4;
}

.desk-map-door-swing {
  stroke: rgba(111, 121, 132, 0.42);
  stroke-width: 1.9;
  stroke-dasharray: 3 5;
}

.desk-map-secret-passage {
  fill: none;
  stroke: #6f4d1e;
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 2 13;
  pointer-events: none;
}

.desk-map-secret-door-label {
  fill: #6f4d1e;
  stroke: #dcc17f;
  stroke-width: 2.8;
  paint-order: stroke;
  font-size: 16px;
  font-weight: 900;
  pointer-events: none;
}

.desk-map-passage-btn {
  position: absolute;
  left: clamp(0.9rem, 1.4vw, 1.2rem);
  bottom: clamp(0.9rem, 1.4vw, 1.2rem);
  z-index: 6;
  display: grid;
  place-items: center;
  width: 2.55rem;
  height: 2.55rem;
  padding: 0;
  border: 0;
  border-radius: 10px;
  appearance: none;
  background: transparent !important;
  background-image: none !important;
  color: #5d4527;
  box-shadow: none !important;
  cursor: pointer;
}

.desk-map-passage-btn svg {
  display: block;
  width: 1.66rem;
  height: 1.66rem;
  margin: 0;
  fill: rgba(16, 19, 31, 0.12);
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.desk-passage-book,
.desk-passage-book-line {
  vector-effect: non-scaling-stroke;
}

.desk-passage-book {
  transform-box: fill-box;
  transition: transform 240ms cubic-bezier(0.2, 0.82, 0.18, 1), fill 180ms ease;
}

.desk-passage-book.middle {
  fill: rgba(16, 19, 31, 0.22);
  transform-origin: 13.5px 15.75px;
}

.desk-passage-book-line {
  fill: none;
  stroke-width: 2.2;
}

.desk-map-passage-btn:hover,
.desk-map-passage-btn:focus-visible {
  border: 0;
  background: #e8cf8b !important;
  box-shadow: none !important;
}

.desk-map-passage-btn:hover .desk-passage-book.middle,
.desk-map-passage-btn:focus-visible .desk-passage-book.middle,
.desk-map-passage-btn.is-active .desk-passage-book.middle {
  fill: rgba(16, 19, 31, 0.34);
  transform: translateX(3.2px) scaleX(1.28) scaleY(1.08);
}

.desk-map-flashlight {
  position: absolute;
  left: calc(clamp(0.9rem, 1.4vw, 1.2rem) + 3.05rem);
  bottom: clamp(0.9rem, 1.4vw, 1.2rem);
  z-index: 6;
  display: grid;
  grid-template-columns: 1.25rem minmax(7rem, 9.5rem) 1.45rem;
  align-items: center;
  gap: 0.35rem;
  width: fit-content;
  color: #5d4527;
  pointer-events: auto;
}

.desk-flashlight-icon {
  display: block;
  width: 1.25rem;
  height: 1.25rem;
  fill: rgba(93, 69, 39, 0.14);
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.desk-flashlight-icon.is-bright {
  width: 1.45rem;
  height: 1.45rem;
}

.desk-flashlight-beam {
  fill: rgba(93, 69, 39, 0.12);
}

.desk-flashlight-icon.is-bright .desk-flashlight-beam {
  fill: rgba(209, 164, 74, 0.2);
}

.desk-map-flashlight-control {
  position: relative;
  display: grid;
  align-items: center;
  width: 9rem;
  height: 1.55rem;
}

.desk-map-flashlight input[type="range"] {
  width: 100%;
  height: 1.25rem;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  cursor: pointer;
}

.desk-map-flashlight input[type="range"]::-webkit-slider-runnable-track {
  height: 0.72rem;
  border: 1px solid rgba(93, 69, 39, 0.42);
  border-radius: 999px;
  background:
    repeating-linear-gradient(90deg, transparent 0 calc(14.285% - 1px), rgba(93, 69, 39, 0.36) calc(14.285% - 1px) 14.285%),
    linear-gradient(90deg, rgba(93, 69, 39, 0.18), rgba(209, 164, 74, 0.42));
  box-shadow: 0 1px 0 rgba(255, 244, 194, 0.18) inset;
}

.desk-map-flashlight input[type="range"]::-moz-range-track {
  height: 0.72rem;
  border: 1px solid rgba(93, 69, 39, 0.42);
  border-radius: 999px;
  background:
    repeating-linear-gradient(90deg, transparent 0 calc(14.285% - 1px), rgba(93, 69, 39, 0.36) calc(14.285% - 1px) 14.285%),
    linear-gradient(90deg, rgba(93, 69, 39, 0.18), rgba(209, 164, 74, 0.42));
}

.desk-map-flashlight input[type="range"]::-webkit-slider-thumb {
  width: 0.84rem;
  height: 1.16rem;
  margin-top: -0.25rem;
  border: 1px solid rgba(93, 69, 39, 0.72);
  border-radius: 3px;
  appearance: none;
  -webkit-appearance: none;
  background: #dcc17f;
  box-shadow: 0 2px 5px rgba(75, 41, 18, 0.22);
}

.desk-map-flashlight input[type="range"]::-moz-range-thumb {
  width: 0.84rem;
  height: 1.16rem;
  border: 1px solid rgba(93, 69, 39, 0.72);
  border-radius: 3px;
  background: #dcc17f;
  box-shadow: 0 2px 5px rgba(75, 41, 18, 0.22);
}

.desk-flashlight-steps {
  position: absolute;
  left: 50%;
  top: calc(100% + 0.08rem);
  display: grid;
  grid-template-columns: repeat(8, max-content);
  justify-content: space-between;
  width: 11rem;
  color: rgba(93, 69, 39, 0.84);
  font: 700 0.58rem/1 ui-serif, Georgia, serif;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(-0.12rem);
  transition: opacity 130ms ease, transform 130ms ease;
}

.desk-map-flashlight:focus-within .desk-flashlight-steps,
.desk-map-flashlight input[type="range"]:active + .desk-flashlight-steps {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.desk-map-props-btn {
  position: absolute;
  right: calc(clamp(0.95rem, 1.6vw, 1.3rem) + 2.92rem);
  top: clamp(0.95rem, 1.6vw, 1.3rem);
  z-index: 6;
  display: grid;
  place-items: center;
  width: 2.55rem;
  height: 2.55rem;
  padding: 0;
  border: 0;
  border-radius: 10px;
  appearance: none;
  background: transparent !important;
  background-image: none !important;
  color: #5d4527;
  box-shadow: none !important;
  cursor: pointer;
}

.desk-map-props-btn svg {
  width: 1.42rem;
  height: 1.42rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.desk-blueprint-grid {
  opacity: 0.72;
}

.desk-blueprint-mark {
  stroke-width: 2;
}

.desk-map-props-btn:hover,
.desk-map-props-btn:focus-visible {
  border: 0;
  background: #e8cf8b !important;
  box-shadow: none !important;
}

.desk-map-zoom-btn {
  position: absolute;
  right: calc(clamp(0.95rem, 1.6vw, 1.3rem) + 5.84rem);
  top: clamp(0.95rem, 1.6vw, 1.3rem);
  z-index: 6;
  display: grid;
  place-items: center;
  width: 2.55rem;
  height: 2.55rem;
  padding: 0;
  border: 0;
  border-radius: 10px;
  appearance: none;
  background: transparent !important;
  background-image: none !important;
  color: #5d4527;
  box-shadow: none !important;
  cursor: pointer;
}

.desk-map-zoom-btn svg {
  width: 1.4rem;
  height: 1.4rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.desk-map-zoom-btn:hover,
.desk-map-zoom-btn:focus-visible {
  border: 0;
  background: #e8cf8b !important;
  box-shadow: none !important;
  outline: 0;
}

.desk-map-close {
  position: absolute;
  right: clamp(0.95rem, 1.6vw, 1.3rem);
  top: clamp(0.95rem, 1.6vw, 1.3rem);
  z-index: 7;
  display: grid;
  place-items: center;
  width: 2.55rem;
  height: 2.55rem;
  padding: 0;
  border: 0;
  border-radius: 10px;
  appearance: none;
  background: transparent !important;
  background-image: none !important;
  color: #5d4527;
  box-shadow: none !important;
  cursor: pointer;
  font: 700 1.18rem/1 ui-serif, Georgia, "Times New Roman", serif;
}

.desk-map-close:hover,
.desk-map-close:focus-visible {
  border: 0;
  background: #e8cf8b !important;
  box-shadow: none !important;
  outline: 0;
}

.desk-map-properties {
  position: absolute;
  right: calc(clamp(0.95rem, 1.6vw, 1.3rem) + 2.92rem);
  top: clamp(0.95rem, 1.6vw, 1.3rem);
  z-index: 6;
  width: min(18rem, 46vw);
  min-height: 2.55rem;
  border: 1px solid rgba(117, 80, 44, 0.45);
  border-radius: 10px;
  background: #dcc17f;
  color: #5d4527;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.24);
  padding: 0.55rem 0.6rem 0.55rem 3.2rem;
  transform-origin: top right;
  animation: desk-map-properties-open 180ms cubic-bezier(0.2, 0.82, 0.18, 1);
}

@keyframes desk-map-properties-open {
  from {
    opacity: 0;
    transform: scale(0.82);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.desk-map-properties-form {
  display: grid;
  gap: 0.45rem;
}

.desk-map-properties-form label {
  display: grid;
  gap: 0.22rem;
  color: #5d4527;
  font-size: 0.82rem;
}

.desk-map-prop-input,
.desk-map-prop-select,
.desk-map-prop-color {
  border: 1px solid rgba(117, 80, 44, 0.38);
  border-radius: 6px;
  background: rgba(247, 233, 196, 0.8);
  color: #4b341c;
  padding: 0.38rem 0.5rem;
}

.desk-map-prop-color {
  height: 2rem;
  padding: 0.14rem;
}

.desk-map-properties-actions {
  display: flex;
  justify-content: flex-end;
}

.desk-map-prop-save {
  border: 1px solid rgba(117, 80, 44, 0.45);
  border-radius: 6px;
  background: rgba(247, 233, 196, 0.85);
  color: #5d4527;
  padding: 0.34rem 0.62rem;
}

.desk-map-room-title {
  cursor: text;
  pointer-events: all;
}

.desk-map-rename-form {
  width: 100%;
  height: 100%;
}

.desk-map-rename-input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(117, 80, 44, 0.4);
  border-radius: 6px;
  background: rgba(250, 238, 204, 0.94);
  color: #3a2814;
  font: 700 16px ui-serif, Georgia, "Times New Roman", serif;
  text-align: center;
  padding: 0.2rem 0.35rem;
}

.desk-todo-panel,
.desk-compose-panel {
  overflow-y: auto;
  overflow-x: hidden;
}

.desk-stage[data-desk-stage-mode="todo"] .desk-todo-panel {
  --todo-lines: 8;
  position: relative;
  top: auto;
  right: auto;
  width: 100%;
  height: clamp(25rem, calc((var(--todo-lines) + 3) * var(--desk-notebook-line)), min(46.7rem, 88%));
  max-height: min(46.7rem, 88%);
  min-height: 25rem;
  align-self: center;
  justify-self: end;
  padding: 0;
  border-color: rgba(68, 104, 173, 0.46);
  background:
    linear-gradient(90deg, transparent 0 calc(var(--desk-notebook-margin) - 0.06rem), rgba(210, 88, 74, 0.36) var(--desk-notebook-margin), transparent calc(var(--desk-notebook-margin) + 0.06rem)),
    repeating-linear-gradient(to bottom, #faf9f2 0 calc(var(--desk-notebook-line) - 0.08rem), rgba(69, 110, 185, 0.3) calc(var(--desk-notebook-line) - 0.04rem), #faf9f2 var(--desk-notebook-line)),
    #faf9f2;
  color: #1c253c;
  font-family: "Desk Architects Daughter", "Architects Daughter", "Desk Patrick Hand", "Segoe Print", cursive;
  font-size: 1.08rem;
  line-height: var(--desk-notebook-line);
  overflow-y: auto;
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.32);
  transform-origin: right bottom;
  transform: translateX(0);
  animation: desk-todo-unfold-from-corner 340ms cubic-bezier(0.22, 1, 0.36, 1);
}

.desk-stage[data-desk-stage-mode="todo"] .desk-todo-panel.is-closing {
  pointer-events: none;
  animation: desk-todo-fold-to-corner 380ms cubic-bezier(0.62, 0, 0.22, 1) forwards;
}

.desk-stage[data-desk-stage-mode="todo"] .desk-todo-panel.is-steady {
  animation: none;
}

@keyframes desk-todo-unfold-from-corner {
  from {
    opacity: 0.32;
    transform: translateX(clamp(4rem, 18vw, 9rem)) translateY(clamp(2.6rem, 8vh, 5rem)) rotateZ(-4deg) rotateY(-10deg) scale(0.18);
  }

  to {
    opacity: 1;
    transform: translateX(0) rotateY(0);
  }
}

@keyframes desk-todo-fold-to-corner {
  from {
    opacity: 1;
    transform: translateX(0) translateY(0) rotateY(0) scale(1);
  }

  to {
    opacity: 0.28;
    transform: translateX(clamp(4rem, 18vw, 9rem)) translateY(clamp(2.6rem, 8vh, 5rem)) rotateZ(-4deg) rotateY(-10deg) scale(0.18);
  }
}

@keyframes desk-map-unfurl {
  0% {
    opacity: 0.28;
    clip-path: inset(0 96% 0 0 round 8px);
    transform: translate(clamp(-7rem, -8vw, -3rem), clamp(3rem, 8vh, 5.4rem)) rotateX(12deg) rotateY(-18deg) scale(0.16);
    filter: saturate(0.7) brightness(0.82);
  }

  58% {
    opacity: 1;
    clip-path: inset(0 0 0 0 round 8px);
    transform: translate(0, 0) rotateX(0) rotateY(2deg) scaleX(1.015);
  }

  100% {
    opacity: 1;
    clip-path: inset(0 0 0 0 round 8px);
    transform: translate(0, 0) rotateX(0) rotateY(0) scaleX(1);
    filter: saturate(1) brightness(1);
  }
}

@keyframes desk-map-furl {
  0% {
    opacity: 1;
    clip-path: inset(0 0 0 0 round 8px);
    transform: translate(0, 0) rotateX(0) rotateY(0) scaleX(1);
    filter: saturate(1) brightness(1);
  }

  100% {
    opacity: 0.28;
    clip-path: inset(0 96% 0 0 round 8px);
    transform: translate(clamp(-7rem, -8vw, -3rem), clamp(3rem, 8vh, 5.4rem)) rotateX(12deg) rotateY(-18deg) scale(0.16);
    filter: saturate(0.7) brightness(0.82);
  }
}

.desk-stage[data-desk-stage-mode="todo"] .desk-todo-panel .desk-room-actions,
.desk-stage[data-desk-stage-mode="todo"] .desk-todo-panel .desk-filter-controls,
.desk-stage[data-desk-stage-mode="todo"] .desk-todo-panel .desk-panel-tools {
  display: none;
}

.desk-stage[data-desk-stage-mode="todo"] .desk-todo-panel .desk-empty,
.desk-stage[data-desk-stage-mode="todo"] .desk-done-list {
  margin: 0 0 0 calc(var(--desk-notebook-margin) + var(--desk-notebook-writing-inset));
  color: rgba(28, 37, 60, 0.56);
  font: inherit;
  line-height: var(--desk-notebook-line);
}

.desk-room-name-title {
  position: relative;
  z-index: 1;
  display: block;
  isolation: isolate;
  margin: 0 0 0 calc(var(--desk-notebook-margin) + var(--desk-notebook-writing-inset));
  padding-right: 0.15rem;
  color: #1e2a46;
  font-family: inherit;
  font-size: inherit;
  font-weight: 400;
  line-height: var(--desk-notebook-line);
  min-height: var(--desk-notebook-line);
}

.desk-room-name-title::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  height: 0.14rem;
  background: #faf9f2;
  pointer-events: none;
}

.desk-room-name-title span {
  position: relative;
  z-index: 1;
  display: inline-block;
  height: var(--desk-notebook-line);
  border-bottom: 0.08rem solid rgba(69, 110, 185, 0.74);
  text-decoration: none;
}

.desk-todo-add {
  min-height: var(--desk-notebook-line);
  margin: 0 0 0 calc(var(--desk-notebook-margin) + var(--desk-notebook-writing-inset));
  margin-right: var(--desk-notebook-right-margin);
  max-width: calc(100% - var(--desk-notebook-margin) - var(--desk-notebook-writing-inset) - var(--desk-notebook-right-margin));
}

.desk-todo-add-line {
  display: block;
  min-height: var(--desk-notebook-line);
  padding: 0;
  cursor: text;
}

.desk-todo-add-textarea {
  display: block;
  width: 100%;
  box-sizing: border-box;
  height: var(--desk-notebook-line);
  min-height: var(--desk-notebook-line);
  max-height: calc(var(--desk-notebook-line) * 8);
  padding: 0;
  color: #18233b;
  caret-color: #1e2a46;
  background: transparent !important;
  background-color: transparent !important;
  border: 0 !important;
  border-radius: 0;
  outline: 0 !important;
  box-shadow: none !important;
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
  line-height: var(--desk-notebook-line);
  resize: none;
  white-space: pre-wrap;
  overflow: hidden;
  overflow-wrap: anywhere;
  text-shadow: none;
}

.desk-todo-add-textarea:focus,
.desk-todo-add-textarea:focus-visible {
  background: transparent !important;
  background-color: transparent !important;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
}

.desk-todo-add-textarea::placeholder {
  color: rgba(28, 37, 60, 0.48);
  opacity: 1;
}

.desk-todo-add-textarea:focus::placeholder {
  color: rgba(28, 37, 60, 0.28);
}

.desk-notebook-list {
  gap: 0;
  margin-left: 0;
  margin-right: var(--desk-notebook-right-margin);
  min-width: 0;
}

.desk-notebook-task {
  display: grid;
  grid-template-columns: var(--desk-notebook-margin) var(--desk-notebook-line) minmax(0, 1fr) auto;
  align-items: start;
  gap: var(--desk-notebook-writing-inset);
  min-width: 0;
  min-height: var(--desk-notebook-line);
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #1c253c;
  font: inherit;
  line-height: var(--desk-notebook-line);
}

.desk-notebook-check {
  display: grid;
  place-items: center;
  width: var(--desk-notebook-line);
  height: calc(var(--desk-notebook-line) - 0.16rem);
  align-self: end;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
  color: #2d426f;
  cursor: pointer;
  font: inherit;
  font-size: calc(var(--desk-notebook-line) * 0.92);
  line-height: var(--desk-notebook-line);
  appearance: none;
  transition: background-color 140ms ease, color 140ms ease;
}

.desk-notebook-check-icon {
  display: block;
  width: calc(var(--desk-notebook-line) - 0.22rem);
  height: calc(var(--desk-notebook-line) - 0.22rem);
  overflow: visible;
}

.desk-notebook-check-box,
.desk-notebook-check-shadow {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.desk-notebook-check-box {
  stroke-width: 2.9;
}

.desk-notebook-check-shadow {
  stroke-width: 1.05;
  opacity: 0.38;
}

.desk-notebook-check:hover,
.desk-notebook-check:focus-visible {
  border: 0;
  background: rgba(105, 113, 128, 0.16);
  box-shadow: none;
  outline: 0;
}

.desk-notebook-title {
  min-width: 0;
  overflow: visible;
  overflow-wrap: anywhere;
  white-space: normal;
  cursor: text;
  caret-color: #1e2a46;
  outline: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.desk-notebook-title:focus,
.desk-notebook-title:focus-visible {
  outline: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.desk-notebook-task.is-complete .desk-notebook-title {
  color: rgba(28, 37, 60, 0.58);
  text-decoration: line-through;
  text-decoration-thickness: 0.11em;
}

.desk-notebook-row-actions {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.14rem;
  min-width: 4.35rem;
  min-height: var(--desk-notebook-line);
  justify-content: flex-end;
  opacity: 0;
  transition: opacity 140ms ease;
}

.desk-notebook-task:hover .desk-notebook-row-actions,
.desk-notebook-task:focus-within .desk-notebook-row-actions,
.desk-notebook-task.is-complete .desk-notebook-row-actions,
.desk-notebook-task.is-forgotten .desk-notebook-row-actions {
  opacity: 1;
}

.desk-notebook-row-icon,
.desk-notebook-menu-btn {
  display: grid;
  place-items: center;
  width: 1.45rem;
  height: 1.45rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
  color: #53648a;
  cursor: pointer;
}

.desk-notebook-row-icon svg,
.desk-notebook-menu-btn svg {
  width: 1.05rem;
  height: 1.05rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.desk-notebook-row-icon:hover,
.desk-notebook-row-icon:focus-visible,
.desk-notebook-menu-btn:hover,
.desk-notebook-menu-btn:focus-visible {
  background: rgba(105, 113, 128, 0.16);
}

.desk-notebook-row-icon.is-archive {
  color: #7354b6;
}

.desk-notebook-row-icon.is-trash {
  color: #b53c48;
}

.desk-notebook-row-icon.is-remember {
  color: #315d91;
}

.desk-notebook-task-menu {
  position: absolute;
  top: calc(100% - 0.1rem);
  right: 0;
  z-index: 20;
  display: grid;
  min-width: 9.4rem;
  padding: 0.28rem;
  border: 1px solid rgba(50, 64, 94, 0.22);
  border-radius: 8px;
  background: rgba(250, 249, 242, 0.96);
  box-shadow: 0 12px 24px rgba(28, 37, 60, 0.18);
}

.desk-notebook-task-menu button {
  padding: 0.24rem 0.45rem;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #1c253c;
  font: inherit;
  line-height: 1.35;
  text-align: left;
}

.desk-notebook-task-menu button:hover,
.desk-notebook-task-menu button:focus-visible {
  background: rgba(83, 100, 138, 0.12);
}

.desk-notebook-vote-controls {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.04rem;
  width: var(--desk-notebook-margin);
  min-width: 0;
  line-height: 1;
}

.desk-notebook-votes {
  color: #53648a;
  font-family: inherit;
  font-size: 0.88rem;
  line-height: 1;
}

.desk-notebook-vote-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.05rem;
  height: 1.05rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none;
  color: var(--list-vote-idle-color, #9ca8be);
  cursor: pointer;
  line-height: 1;
  appearance: none;
  clip-path: polygon(50% 0, 100% 52%, 72% 52%, 72% 100%, 28% 100%, 28% 52%, 0 52%);
  transform: none;
  transition: color 140ms ease;
}

.desk-notebook-vote-btn:hover,
.desk-notebook-vote-btn:focus-visible {
  color: var(--list-vote-up-color, #d4a41d);
  border: 0;
  background: transparent !important;
  box-shadow: none;
  outline: 0;
}

.desk-notebook-vote-icon {
  display: block;
  width: 1.05rem;
  height: 1.05rem;
}

.desk-color-form,
.desk-kind-form {
  display: inline-flex;
  align-items: end;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.desk-color-form label,
.desk-kind-form label {
  display: grid;
  gap: 0.22rem;
  color: var(--desk-muted);
  font-size: 0.78rem;
}

.desk-color-input {
  width: 3.1rem;
  height: 2.35rem;
  padding: 0.12rem;
  border: 1px solid rgba(240, 213, 138, 0.36);
  border-radius: 6px;
  background: rgba(2, 11, 29, 0.58);
}

.desk-compose-textarea {
  min-height: clamp(14rem, 36vh, 24rem);
}

.desk-compose-panel {
  width: clamp(20rem, 31vw, 34rem);
  height: fit-content;
  align-self: center;
  justify-self: center;
  border: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
  transform-origin: center bottom;
  animation: desk-compose-book-open 340ms cubic-bezier(0.22, 1, 0.36, 1);
}

.desk-compose-panel.is-closing {
  pointer-events: none;
  animation: desk-compose-book-close 380ms cubic-bezier(0.62, 0, 0.22, 1) forwards;
}

@keyframes desk-compose-book-open {
  from {
    opacity: 0.32;
    transform: translateY(clamp(4.2rem, 11vh, 7rem)) rotateX(13deg) scale(0.18);
  }

  to {
    opacity: 1;
    transform: translateY(0) rotateX(0) scale(1);
  }
}

@keyframes desk-compose-book-close {
  from {
    opacity: 1;
    transform: translateY(0) rotateX(0) scale(1);
  }

  to {
    opacity: 0.28;
    transform: translateY(clamp(4.2rem, 11vh, 7rem)) rotateX(13deg) scale(0.18);
  }
}

.desk-compose-form {
  display: grid;
  gap: 0.62rem;
  position: relative;
}

.desk-compose-toolbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.45rem;
}

.desk-compose-drag-handle-wrap {
  position: absolute;
  top: 0.2rem;
  left: 0.15rem;
  z-index: 5;
  opacity: 1;
}

.desk-compose-drag-handle {
  display: grid;
  place-items: center;
  width: 1.55rem;
  height: 1.55rem;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  box-shadow: none;
  color: #5d6b84;
  cursor: grab;
  font: 700 0.9rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  opacity: 0;
  transition: opacity 140ms ease, background-color 140ms ease;
}

.desk-compose-drag-handle:hover,
.desk-compose-drag-handle:focus-visible {
  background: rgba(105, 113, 128, 0.14);
  opacity: 1;
  outline: 0;
}

.desk-compose-drag-handle:active {
  cursor: grabbing;
  opacity: 1;
}

.desk-compose-paper-picker {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  padding: 0.17rem;
  border-radius: 11px;
  background: rgba(3, 18, 48, 0.78);
  border: 1px solid rgba(240, 213, 138, 0.3);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.28);
}

.desk-compose-paper-option {
  border: 0;
  border-radius: 8px;
  padding: 0.18rem;
  color: rgba(247, 235, 194, 0.9);
  background: transparent;
  cursor: pointer;
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
}

.desk-compose-paper-option svg {
  width: 1.45rem;
  height: 1.45rem;
}

.desk-compose-type-option svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.desk-compose-paper-option[aria-pressed="true"] {
  background: rgba(240, 213, 138, 0.18);
  color: #ffedc2;
}

.desk-compose-advanced-toggle {
  width: 2.05rem;
  height: 2.05rem;
}

.desk-compose-advanced-toggle svg {
  width: 1.05rem;
  height: 1.05rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.desk-compose-sheet {
  position: relative;
  width: min(100%, 33rem);
  margin-inline: auto;
  border-radius: 8px;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

.desk-compose-sheet .desk-compose-textarea {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 100%;
  box-sizing: border-box;
  border: 0;
  border-radius: 0;
  resize: none;
  padding: 1rem 1.1rem;
  background: transparent;
  box-shadow: none;
}

.desk-compose-doc-actions {
  position: absolute;
  top: 0.45rem;
  right: 2.55rem;
  z-index: 3;
}

.desk-compose-close {
  position: absolute;
  top: 0.38rem;
  right: 0.42rem;
  z-index: 4;
  width: 1.9rem;
  height: 1.9rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  appearance: none;
  background: transparent;
  box-shadow: none;
  color: rgba(45, 48, 62, 0.72);
  cursor: pointer;
  display: grid;
  place-items: center;
  font: 700 1.08rem/1 ui-serif, Georgia, "Times New Roman", serif;
  transition: background-color 140ms ease, color 140ms ease;
}

.desk-compose-close:hover,
.desk-compose-close:focus-visible {
  border: 0;
  background: rgba(105, 113, 128, 0.16);
  box-shadow: none;
  outline: 0;
}

.desk-compose-doc-menu-btn {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: rgba(255, 255, 255, 0.38);
  color: rgba(45, 48, 62, 0.72);
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.desk-compose-doc-menu-btn:hover,
.desk-compose-doc-menu-btn:focus-visible {
  background: rgba(255, 255, 255, 0.72);
}

.desk-compose-doc-menu {
  position: absolute;
  top: calc(100% + 0.3rem);
  right: 0;
  min-width: 9rem;
  padding: 0.3rem;
  border: 1px solid rgba(63, 58, 88, 0.16);
  border-radius: 8px;
  background: rgba(250, 250, 255, 0.94);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.22);
}

.desk-compose-doc-menu button {
  width: 100%;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #2d3243;
  text-align: left;
  padding: 0.45rem 0.55rem;
  cursor: pointer;
}

.desk-compose-doc-menu button:hover,
.desk-compose-doc-menu button:focus-visible {
  background: rgba(22, 45, 92, 0.1);
}

.desk-compose-save-indicator {
  position: absolute;
  right: 0.7rem;
  bottom: 0.7rem;
  width: 1.1rem;
  height: 1.1rem;
  display: grid;
  place-items: center;
  color: rgba(116, 126, 142, 0.85);
}

.desk-compose-spinner {
  width: 0.82rem;
  height: 0.82rem;
  border-radius: 999px;
  border: 2px solid rgba(121, 132, 148, 0.28);
  border-top-color: rgba(121, 132, 148, 0.8);
  animation: desk-spin 720ms linear infinite;
}

.desk-compose-check {
  font-size: 0.88rem;
  line-height: 1;
}

.desk-compose-dot {
  width: 0.36rem;
  height: 0.36rem;
  border-radius: 999px;
  background: rgba(121, 132, 148, 0.45);
}

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

.desk-compose-sheet-printer {
  aspect-ratio: 8.5 / 11;
  background: linear-gradient(180deg, #f8fbff, #edf3ff);
}

.desk-compose-textarea-printer {
  color: #24344c;
  font-family: ui-sans-serif, system-ui, sans-serif;
}

.desk-compose-sheet-typewriter {
  aspect-ratio: 8.5 / 11;
  background: linear-gradient(180deg, #f5f1e6, #e7ddc8);
}

.desk-compose-textarea-typewriter {
  color: #2f271d;
  font-family: "Special Elite", "Courier Prime", "Courier New", ui-monospace, monospace;
  line-height: 1.5;
}

.desk-compose-sheet-card25x3 {
  aspect-ratio: 3 / 2.5;
  background: linear-gradient(180deg, #fef7e7, #efd9b5);
}

.desk-compose-textarea-card25x3 {
  color: #3b2f21;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 0.97rem;
}

.desk-compose-sheet-card3x5 {
  aspect-ratio: 5 / 3;
  background: linear-gradient(180deg, #fff4de, #ecd2a8);
}

.desk-compose-textarea-card3x5 {
  color: #3a2c1b;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 0.98rem;
}

.desk-compose-sheet-lined {
  --desk-compose-lined-line: 1.92rem;
  --desk-compose-lined-top: 4.35rem;
  --desk-compose-lined-margin: 3.35rem;
  position: relative;
  aspect-ratio: 8.5 / 11;
  background:
    radial-gradient(circle at 5.25% 11.36%, transparent 0 0.28rem, rgba(115, 124, 145, 0.34) 0.3rem 0.39rem, transparent 0.41rem),
    radial-gradient(circle at 5.25% 50%, transparent 0 0.28rem, rgba(115, 124, 145, 0.34) 0.3rem 0.39rem, transparent 0.41rem),
    radial-gradient(circle at 5.25% 88.64%, transparent 0 0.28rem, rgba(115, 124, 145, 0.34) 0.3rem 0.39rem, transparent 0.41rem),
    linear-gradient(90deg, transparent 0 calc(var(--desk-compose-lined-margin) - 0.055rem), rgba(210, 88, 74, 0.34) var(--desk-compose-lined-margin), transparent calc(var(--desk-compose-lined-margin) + 0.055rem)),
    repeating-linear-gradient(to bottom, transparent 0 calc(var(--desk-compose-lined-line) - 0.06rem), rgba(69, 110, 185, 0.32) calc(var(--desk-compose-lined-line) - 0.04rem), transparent var(--desk-compose-lined-line)),
    #fbfcf8;
  background-position: 0 0, 0 0, 0 0, 0 0, 0 var(--desk-compose-lined-top), 0 0;
  background-size: auto, auto, auto, auto, 100% var(--desk-compose-lined-line), auto;
}

.desk-compose-textarea-lined {
  color: #22479f;
  font-family: "Desk Architects Daughter", "Desk Patrick Hand", "Patrick Hand", "Segoe Print", cursive;
  line-height: var(--desk-compose-lined-line);
  padding-top: calc(var(--desk-compose-lined-top) - 1.15rem);
  padding-left: calc(var(--desk-compose-lined-margin) + 0.58rem);
  padding-right: 1.1rem;
}

.desk-compose-sheet-lavender {
  aspect-ratio: 0.74;
  background: linear-gradient(180deg, #ece5ff, #dcd3ff);
}

.desk-compose-textarea-lavender {
  color: #3d3169;
  font-family: ui-serif, Georgia, serif;
}

.desk-files-frame {
  position: absolute;
  top: calc(var(--desk-notebook-line) * 1.15);
  right: 0.85rem;
  z-index: 4;
  min-width: 12rem;
  max-width: 18rem;
  border: 1px solid rgba(119, 131, 163, 0.36);
  border-radius: 10px;
  background: rgba(248, 242, 216, 0.24);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  padding: 0 0.55rem;
  line-height: var(--desk-notebook-line);
}

.desk-files-frame h3 {
  margin: 0;
  font-weight: 400;
  font-size: 1.08rem;
  color: #2d426f;
  line-height: var(--desk-notebook-line);
}

.desk-files-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0;
}

.desk-file-link,
.desk-file-empty {
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  text-align: left;
  font: inherit;
  color: #2d426f;
  font-weight: 400;
  font-size: 1.08rem;
  line-height: var(--desk-notebook-line);
}

.desk-file-link {
  cursor: pointer;
}

.desk-file-link:hover {
  text-decoration: underline;
}

.desk-todo-close {
  position: absolute;
  top: 0.12rem;
  right: 0.72rem;
  z-index: 5;
  width: var(--desk-notebook-line);
  height: var(--desk-notebook-line);
  border: 0;
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
  color: #2d426f;
  font: inherit;
  font-size: 1.15rem;
  line-height: var(--desk-notebook-line);
  cursor: pointer;
  padding: 0;
  appearance: none;
  transition: background-color 140ms ease, color 140ms ease;
}

.desk-todo-close:hover,
.desk-todo-close:focus-visible {
  text-decoration: none;
  border: 0;
  background: rgba(105, 113, 128, 0.16);
  box-shadow: none;
  outline: 0;
}

.desk-room-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(17rem, 100%), 1fr));
  gap: 0.8rem;
}

.desk-room-card,
.desk-task {
  border: 1px solid rgba(240, 213, 138, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 54%),
    rgba(2, 11, 29, 0.42);
}

.desk-room-card {
  display: grid;
  gap: 0.74rem;
  padding: 0.85rem;
}

.desk-room-card-head {
  display: flex;
  justify-content: space-between;
  gap: 0.7rem;
  align-items: flex-start;
}

.desk-room-card h3,
.desk-task h3 {
  margin: 0;
  color: var(--desk-ink);
  -webkit-text-fill-color: currentColor;
  border: 0;
  font-size: 1rem;
  line-height: 1.22;
}

.desk-heat {
  display: grid;
  gap: 0.26rem;
  min-width: 5.2rem;
}

.desk-heat span {
  color: var(--desk-muted);
  font-size: 0.76rem;
  text-align: right;
}

.desk-heat-bar {
  width: 5.2rem;
  height: 0.42rem;
  border-radius: 99px;
  background: rgba(240, 213, 138, 0.14);
  overflow: hidden;
}

.desk-heat-bar i {
  display: block;
  height: 100%;
  width: var(--heat-width, 12%);
  background: linear-gradient(90deg, var(--desk-felt-soft), var(--desk-gold));
}

.desk-count-row,
.desk-task-meta,
.desk-public-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
  align-items: center;
  color: var(--desk-muted);
  font-size: 0.84rem;
}

.desk-pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(240, 213, 138, 0.22);
  border-radius: 999px;
  padding: 0.16rem 0.48rem;
  color: var(--desk-muted);
  background: rgba(255, 255, 255, 0.04);
}

.desk-pill.gold {
  color: var(--desk-gold-soft);
  border-color: rgba(240, 213, 138, 0.42);
}

.desk-surfaced-list,
.desk-task-list,
.desk-search-list,
.desk-done-list {
  display: grid;
  gap: 0.62rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.desk-surfaced-task {
  padding-left: 0.65rem;
  border-left: 2px solid rgba(240, 213, 138, 0.48);
  color: var(--desk-ink);
  font-size: 0.9rem;
}

.desk-card-actions,
.desk-task-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}

.desk-task {
  display: grid;
  gap: 0.58rem;
  padding: 0.82rem;
}

.desk-task-body {
  margin: 0;
  color: var(--desk-muted);
  white-space: pre-wrap;
  line-height: 1.42;
}

.desk-task-list.desk-notebook-list {
  gap: 0;
  margin-left: 0;
  margin-right: var(--desk-notebook-right-margin);
  min-width: 0;
}

.desk-task.desk-notebook-task {
  display: grid;
  grid-template-columns: var(--desk-notebook-margin) var(--desk-notebook-line) minmax(0, 1fr) auto;
  align-items: start;
  gap: var(--desk-notebook-writing-inset);
  min-width: 0;
  min-height: var(--desk-notebook-line);
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #1c253c;
  font: inherit;
  line-height: var(--desk-notebook-line);
}

.desk-notebook-check {
  display: grid;
  place-items: center;
  width: var(--desk-notebook-line);
  height: calc(var(--desk-notebook-line) - 0.16rem);
  align-self: end;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
  color: #2d426f;
  cursor: pointer;
  font: inherit;
  font-size: calc(var(--desk-notebook-line) * 0.92);
  line-height: var(--desk-notebook-line);
  appearance: none;
  transition: background-color 140ms ease, color 140ms ease;
}

.desk-notebook-title {
  min-width: 0;
  overflow: visible;
  overflow-wrap: anywhere;
  white-space: normal;
  cursor: text;
  caret-color: #1e2a46;
  outline: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.desk-forgotten-section {
  margin: var(--desk-notebook-line) var(--desk-notebook-right-margin) 0 0;
}

.desk-forgotten-toggle {
  display: block;
  margin-left: calc(var(--desk-notebook-margin) + var(--desk-notebook-writing-inset));
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(28, 37, 60, 0.58);
  font: inherit;
  line-height: var(--desk-notebook-line);
  cursor: pointer;
}

.desk-forgotten-drawer {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transform: translateY(-0.35rem);
  transition: grid-template-rows 260ms cubic-bezier(0.22, 1, 0.36, 1), opacity 180ms ease, transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

.desk-forgotten-section.is-open .desk-forgotten-drawer {
  grid-template-rows: 1fr;
  opacity: 1;
  transform: translateY(0);
}

.desk-forgotten-drawer > .desk-forgotten-list {
  overflow: hidden;
  margin-top: var(--desk-notebook-line);
}

.desk-notebook-task.is-forgotten .desk-notebook-title {
  color: rgba(28, 37, 60, 0.62);
}

.desk-notebook-vote-controls {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.04rem;
  width: var(--desk-notebook-margin);
  min-width: 0;
  line-height: 1;
}

.desk-notebook-votes {
  color: #53648a;
  font-family: inherit;
  font-size: 0.88rem;
  line-height: 1;
}

.desk-notebook-vote-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.05rem;
  height: 1.05rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none;
  color: var(--list-vote-idle-color, #9ca8be);
  cursor: pointer;
  line-height: 1;
  appearance: none;
  clip-path: polygon(50% 0, 100% 52%, 72% 52%, 72% 100%, 28% 100%, 28% 52%, 0 52%);
  transform: none;
  transition: color 140ms ease;
}

.desk-notebook-vote-btn:hover,
.desk-notebook-vote-btn:focus-visible {
  color: var(--list-vote-up-color, #d4a41d);
  border: 0;
  background: transparent !important;
  box-shadow: none;
  outline: 0;
}

.desk-notebook-vote-icon {
  display: block;
  width: 1.05rem;
  height: 1.05rem;
}

.desk-soonness-form,
.desk-move-form {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}

.desk-soonness-form .desk-input {
  max-width: 10.8rem;
}

.desk-empty {
  margin: 0;
  color: var(--desk-muted);
}

.desk-message {
  margin: 0 0 0.8rem;
  padding: 0.64rem 0.82rem;
  border: 1px solid rgba(240, 213, 138, 0.46);
  border-radius: 8px;
  background: #061c49;
  color: var(--desk-gold-soft);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.34), 0 1px 0 rgba(255, 255, 255, 0.08) inset;
  transition: opacity 180ms ease, transform 180ms ease;
}

.desk-message.is-leaving {
  opacity: 0;
  transform: translateY(-0.28rem);
}

.desk-message.is-error {
  border-color: rgba(255, 138, 138, 0.56);
  color: #ffd4d4;
  background: #4e1827;
}

.desk-shell[data-busy="true"] .desk-btn,
.desk-shell[data-busy="true"] .desk-icon-btn,
.desk-shell[data-busy="true"] .desk-link-btn {
  opacity: 0.68;
  pointer-events: none;
}

.desk-search-panel {
  border-color: rgba(35, 90, 73, 0.62);
}

.desk-search-result {
  padding: 0.76rem;
  border: 1px solid rgba(240, 213, 138, 0.2);
  border-radius: 8px;
  background: rgba(3, 20, 51, 0.42);
}

@media (max-width: 820px) {
  .desk-workbench {
    grid-template-columns: 1fr;
  }

  .desk-chrome-controls {
    left: 0.75rem;
    right: 4.4rem;
    justify-content: flex-end;
  }

  .desk-stage {
    width: min(100%, calc(100vw - 1.4rem));
    height: 100%;
    min-height: 0;
    padding: 0.44rem;
  }

  .desk-stage[data-desk-stage-mode="todo"] {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(0.8rem, 2vw, 1.2rem);
    padding-inline: clamp(0.55rem, 2.2vw, 0.8rem);
  }

  .desk-stage[data-desk-stage-mode="compose"] {
    grid-template-columns: 1fr;
  }

  .desk-stage[data-desk-stage-mode="todo"] .desk-map-panel {
    height: auto;
    max-height: 88%;
  }

  .desk-stage[data-desk-stage-mode="compose"] .desk-map-panel {
    height: 88%;
  }

  .desk-stage[data-desk-stage-mode="compose"] .desk-compose-panel {
    top: 50%;
    right: 0.85rem;
    width: min(20rem, 82%);
    transform: translateY(-50%);
  }

  .desk-stage[data-desk-stage-mode="todo"] .desk-todo-panel {
    top: auto;
    right: auto;
    width: min(24rem, 100%);
    max-height: 70%;
    min-height: min(22rem, 70%);
    justify-self: center;
    transform: none;
  }

  .desk-stage[data-desk-stage-mode="todo"] .desk-todo-panel {
    animation-name: desk-todo-unfold-from-corner-small;
  }

  .desk-stage[data-desk-stage-mode="todo"] .desk-todo-panel.is-closing {
    animation-name: desk-todo-fold-to-corner-small;
  }

  @keyframes desk-todo-unfold-from-corner-small {
    from {
      opacity: 0.32;
      transform: translate(calc(100% + 1.2rem), calc(50% + 4.2rem)) rotateZ(-5deg) rotateY(-8deg) scale(0.2);
    }

    to {
      opacity: 1;
      transform: translate(0, -50%) rotateY(0);
    }
  }

  @keyframes desk-todo-fold-to-corner-small {
    from {
      opacity: 1;
      transform: translate(0, -50%) rotateY(0) scale(1);
    }

    to {
      opacity: 0.28;
      transform: translate(calc(100% + 1.2rem), calc(50% + 4.2rem)) rotateZ(-5deg) rotateY(-8deg) scale(0.2);
    }
  }

  .desk-surface {
    position: static;
  }

  .desk-status {
    width: fit-content;
  }

  .desk-top-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 520px) {
  .desk-shell {
    --desk-shell-pad-top: 4rem;
    --desk-shell-pad-x: clamp(0.55rem, 2.2vw, 0.8rem);
    --desk-shell-pad-bottom: 5.65rem;
  }

  .desk-chrome-controls {
    top: 0.66rem;
  }

  .desk-status-btn {
    width: 2rem;
    height: 2rem;
  }

  .desk-threshold-control .desk-select {
    min-width: 3.8rem;
  }

  .desk-mode-dock {
    height: 4.3rem;
  }

  .desk-mode-todo {
    width: 3.7rem;
    height: 4.15rem;
  }

  .desk-mode-map {
    width: 4.6rem;
    height: 4.1rem;
  }

  .desk-mode-map.is-active {
    width: 5.2rem;
    height: 4.7rem;
  }

  .desk-mode-compose {
    left: calc(50% - 2rem);
    width: 4rem;
    height: 4rem;
  }

  .desk-compose-paper-picker {
    max-width: min(100%, 20rem);
    overflow-x: auto;
  }

  .desk-panel-tools {
    position: static;
    margin-bottom: 0.45rem;
  }

  .desk-create-room-form {
    max-width: 100%;
  }

  .desk-modal {
    width: min(24rem, 100%);
  }

  .desk-room-card-head,
  .desk-task-actions {
    display: grid;
    justify-content: stretch;
  }

  .desk-btn,
  .desk-link-btn {
    width: fit-content;
  }
}
