@font-face {
  font-family: "JetBrains Mono";
  src: url("./fonts/jetbrains-mono.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}
/* Visible semantic DOM. This stylesheet deliberately owns the entire UI surface. */
:root {
  --shell-font: "JetBrains Mono", monospace;
  --shell-radius: 20px;
  --shell-duration: 220ms;
  --shell-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --shell-bg: var(--color-background-canvas, #000d3c);
  --shell-surface: var(--color-background-surface, #061446);
  --shell-ink: var(--color-foreground-primary, #ffdc00);
  --shell-muted: var(--color-foreground-secondary, #c4b64d);
  --shell-accent: var(--color-accent, #ffdc00);
  --shell-border: var(--color-border-strong, #ae9937);
  --shell-line: var(--color-border-subtle, #74672e);
  --shell-selected: var(--color-selection-background, #242842);
  --shell-danger: var(--color-error, #ff63ac);
  --shell-warning: var(--color-warning, var(--shell-danger));
  --shell-on-accent: var(--color-on-accent, var(--shell-bg));
  color-scheme: dark;
}
html[data-shell="dom"],
html[data-shell="dom"] body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--shell-bg);
  color: var(--shell-ink);
  font: 400 15px/1.55 var(--shell-font);
  -webkit-text-size-adjust: 100%;
  touch-action: pan-x pan-y;
}
html[data-shell="dom"] *,
html[data-shell="dom"] *::before,
html[data-shell="dom"] *::after {
  box-sizing: border-box;
  font-family: var(--shell-font);
}
html[data-shell="dom"] [hidden] {
  display: none !important;
}
.shell-date-picker-bridge {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 1px;
  height: 1px;
  min-width: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  pointer-events: none;
  clip-path: inset(50%);
}
html[data-shell="dom"] :is(button, input, textarea, select) {
  font: inherit;
  letter-spacing: inherit;
  color: inherit;
}
html[data-shell="dom"] button {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
html[data-shell="dom"] :is(button, a, input, textarea, select):focus-visible {
  outline: 3px solid var(--shell-accent);
  outline-offset: 4px;
}
html[data-shell="dom"] a {
  color: var(--shell-accent);
  text-underline-offset: 4px;
  overflow-wrap: anywhere;
}
html[data-shell="dom"] ::selection {
  background: var(--shell-accent);
  color: var(--shell-bg);
}
/* Use a document-sized containing block. iOS may clip fixed layers to a
   shorter viewport even when their explicit height extends below it. */
html[data-shell="dom"] body {
  position: relative;
}
html[data-shell="dom"][data-standalone="true"],
html[data-shell="dom"][data-standalone="true"] body {
  height: var(--shell-keyboard-height, 100vh);
}
.shell-app {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  background: var(--shell-bg);
  isolation: isolate;
}
/* Keep the initial content below iOS system chrome, while allowing that
   spacing to scroll away and rows to pass behind the system blur. */
@supports (-webkit-touch-callout: none) {
  html[data-shell="dom"][data-standalone="true"] .shell-content {
    padding-top: calc(24px + env(safe-area-inset-top, 0px) + 12px);
  }
}
.shell-pane {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
  overflow: hidden;
  background: var(--shell-bg);
}
.shell-header {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  min-height: 68px;
  padding: calc(12px + env(safe-area-inset-top)) 20px 12px;
  border-bottom: 1px solid var(--shell-line);
  background: var(--shell-bg);
  z-index: 2;
}
.shell-title {
  font-size: 19px;
  line-height: 1.3;
  letter-spacing: -0.04em;
  font-weight: 600;
  margin: 0;
  flex: 1;
  overflow-wrap: anywhere;
}
.shell-subtitle,
.shell-meta {
  color: var(--shell-muted);
  font-size: 12px;
  line-height: 1.6;
}
.shell-scroll {
  flex: 1;
  min-height: 0;
  overflow: auto;
  overscroll-behavior-y: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--shell-border) transparent;
  -webkit-overflow-scrolling: touch;
  scroll-padding-block: 24px 120px;
}
.shell-content {
  width: min(100%, 720px);
  margin-inline: auto;
  padding: 24px 20px calc(120px + env(safe-area-inset-bottom));
  overflow-wrap: anywhere;
}
.shell-content > p {
  margin: 0 0 16px;
  white-space: pre-wrap;
}
.shell-content > :is(.shell-row, .shell-theme-preview) + p {
  margin-top: 12px;
}
.shell-section {
  margin: 32px 0 12px;
  font-size: 12px;
  line-height: 1.5;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--shell-muted);
}
.shell-section:first-child {
  margin-top: 0;
}
.shell-rule {
  border: 0;
  border-top: 1px solid var(--shell-line);
  margin: 20px 0;
}
.shell-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 50px;
  border: 1.5px solid var(--shell-border);
  border-radius: 16px;
  background: var(--shell-surface);
  padding: 12px 16px;
  color: var(--shell-accent);
  font-weight: 500;
  line-height: 1.45;
  text-align: center;
  text-decoration: none;
  transition:
    background var(--shell-duration),
    transform 120ms,
    box-shadow var(--shell-duration);
  position: relative;
}
.shell-content > .shell-button {
  margin-block: 10px;
}
.shell-button:active,
.shell-row:active {
  transform: scale(0.98);
  background: var(--shell-selected);
}
.shell-button[aria-pressed="true"],
.shell-button[aria-checked="true"],
.shell-button[data-selected="true"],
.shell-row[data-selected="true"] {
  border-color: var(--shell-accent);
  background: var(--shell-selected);
  box-shadow: inset 0 0 0 1px var(--shell-accent);
}
.shell-button:disabled,
.shell-row:disabled {
  opacity: 0.52;
  cursor: default;
  transform: none;
}
.shell-button[data-primary="true"] {
  color: var(--shell-on-accent);
  background: var(--shell-accent);
  border-color: var(--shell-accent);
  box-shadow: none;
}
.shell-button[data-danger="true"],
.shell-row[data-danger="true"] {
  color: var(--shell-bg);
  border-color: var(--shell-warning);
  background: var(--shell-warning);
  box-shadow: none;
}
.shell-button[data-danger="true"]:active,
.shell-row[data-danger="true"]:active {
  background: color-mix(in srgb, var(--shell-warning) 88%, var(--shell-bg));
}
.shell-button[data-error="true"],
.shell-row[data-error="true"],
.shell-error {
  color: var(--shell-danger);
}
.shell-icon {
  display: inline-block;
  flex: none;
  width: 22px;
  height: 22px;
  background: currentColor;
  mask: var(--icon) center/contain no-repeat;
  -webkit-mask: var(--icon) center/contain no-repeat;
}
.shell-icon-button {
  width: 48px;
  height: 48px;
  min-height: 48px;
  border-radius: 50%;
  padding: 12px;
  flex: none;
}
.shell-icon-button .shell-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.shell-dock {
  position: absolute;
  bottom: calc(16px + env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px 9px;
  max-width: calc(100% - 136px);
  border: 1.5px solid var(--shell-border);
  border-radius: 36px;
  background: var(--shell-bg);
  box-shadow: 0 8px 24px #0004;
  z-index: 3;
}
.shell-dock .shell-button {
  border: 0;
  box-shadow: none;
  width: 44px;
  height: 44px;
  min-height: 44px;
}
.shell-dock .shell-button:not([data-primary="true"]):not([data-danger="true"]) {
  background: transparent;
}
.shell-corner {
  position: absolute;
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 3;
}
.shell-corner[data-side="left"] {
  left: 16px;
}
.shell-corner[data-side="right"] {
  right: 16px;
}
.shell-corner .shell-button {
  width: 52px;
  height: 52px;
}
.shell-row {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 58px;
  width: 100%;
  border: 1px solid var(--shell-line);
  border-radius: 16px;
  padding: 15px 16px;
  background: var(--shell-surface);
  text-align: left;
  color: var(--shell-ink);
  text-decoration: none;
  line-height: 1.5;
  transition:
    transform 120ms,
    background 180ms;
}
.shell-content > .shell-row + .shell-row {
  border-top: 0;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}
.shell-content > .shell-row:has(+ .shell-row) {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}
.shell-row-copy {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.shell-row-copy > .shell-label {
  font-weight: 500;
}
.shell-row-value {
  font-size: 12px;
  color: var(--shell-muted);
  margin-left: auto;
}
.shell-group,
.shell-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 12px 0 18px;
}
.shell-group > .shell-button {
  flex: 1;
  width: auto;
  min-width: 44px;
}
.shell-chips > .shell-button {
  width: auto;
  min-height: 42px;
  padding: 8px 14px;
  border-radius: 24px;
  font-size: 13px;
}
.shell-chips > .shell-button:is([data-selected="true"], [aria-pressed="true"], [aria-checked="true"]) {
  background: var(--shell-accent);
  color: var(--shell-on-accent);
  border-color: var(--shell-accent);
  box-shadow: none;
}
.shell-segments {
  position: relative;
  isolation: isolate;
  display: flex;
  border: 1.5px solid var(--shell-border);
  border-radius: 999px;
  padding: 4px;
  gap: 4px;
  margin: 12px 0 18px;
  overflow: auto;
}
.shell-segments::before {
  content: "";
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc((100% - 8px - (var(--shell-segment-count) - 1) * 4px) / var(--shell-segment-count));
  border-radius: 999px;
  background: var(--shell-selected);
  box-shadow: inset 0 0 0 1px var(--shell-accent);
  pointer-events: none;
  opacity: 0;
  transform: translateX(calc(var(--shell-segment-index) * (100% + 4px)));
  transition: transform var(--shell-duration) var(--shell-ease);
}
.shell-segments[data-has-selection="true"]::before {
  opacity: 1;
}
.shell-segments > .shell-button {
  flex: 1 1 0;
  min-width: 0;
  z-index: 1;
  width: auto;
  border: 0;
  min-height: 42px;
  padding: 8px 10px;
  border-radius: 999px;
  white-space: normal;
  background: transparent;
  font-size: 13px;
}
.shell-segments > .shell-button[aria-checked="true"] {
  background: transparent;
  box-shadow: none;
}
.shell-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 0 20px;
  min-width: 0;
}
.shell-field > label {
  font-size: 12px;
  font-weight: 500;
  color: var(--shell-muted);
}
.shell-field :is(input, textarea, select) {
  position: static;
  width: 100%;
  min-height: 52px;
  border: 1.5px solid var(--shell-border);
  border-radius: 14px;
  padding: 13px 14px;
  background: var(--shell-surface);
  font-size: 16px;
  outline-offset: 3px;
  resize: none;
  appearance: auto;
  color: var(--shell-ink);
  -webkit-text-fill-color: var(--shell-ink);
}
.shell-field textarea {
  min-height: 140px;
  line-height: 1.65;
}
.shell-field :is(input, textarea)::placeholder {
  color: var(--shell-muted);
  opacity: 0.8;
}
html[data-shell="dom"] .shell-field :is(input, textarea, select):focus-visible {
  outline: none;
  border-color: var(--shell-accent);
  box-shadow: none;
}
html[data-shell="dom"] .shell-field [aria-invalid="true"]:focus-visible,
.shell-field [aria-invalid="true"] {
  border-color: var(--shell-danger);
}
.shell-switch {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  width: 50px;
  height: 30px;
  flex: none;
  border: 1.5px solid var(--shell-border);
  border-radius: 20px;
  background: var(--shell-bg);
  margin: 0;
  cursor: pointer;
  transition: background 180ms;
}
.shell-switch:before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: var(--shell-muted);
  transition:
    transform 220ms var(--shell-ease),
    background 180ms;
}
.shell-switch:checked {
  background: var(--shell-accent);
  border-color: var(--shell-accent);
}
.shell-switch:checked:before {
  transform: translateX(20px);
  background: var(--shell-bg);
}
.shell-stepper {
  display: grid;
  grid-template-columns: 48px minmax(64px, 1fr) 48px;
  gap: 8px;
  margin: 8px 0 20px;
}
.shell-stepper .shell-field {
  margin: 0;
}
.shell-stepper input {
  text-align: center;
}
.shell-stepper > .shell-button {
  padding: 8px;
  min-height: 52px;
}
.shell-notice {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(100% - 32px, 688px);
  margin: 12px auto 0;
  border: 1.5px solid var(--shell-border);
  border-radius: 16px;
  padding: 12px 16px;
  font-size: 13px;
  color: var(--shell-ink);
  background: var(--shell-surface);
}
.shell-toast {
  position: absolute;
  z-index: 12;
  left: 50%;
  bottom: calc(90px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100% - 32px);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  border: 1.5px solid var(--shell-border);
  border-radius: 20px;
  background: var(--shell-surface);
  box-shadow: 0 8px 28px #0006;
  font-size: 13px;
}
.shell-toast .shell-button {
  width: auto;
  min-height: 40px;
  padding: 8px 12px;
}
.shell-dialog {
  position: fixed;
  inset: auto 0 0;
  width: min(100%, 640px);
  max-width: 100%;
  max-height: 88dvh;
  margin: 0 auto;
  padding: 0;
  border: 1.5px solid var(--shell-border);
  border-bottom: 0;
  border-radius: 28px 28px 0 0;
  background: var(--shell-bg);
  color: var(--shell-ink);
  box-shadow: 0 -16px 64px #0006;
  overflow: hidden;
}
.shell-dialog::backdrop {
  background: #0008;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}
.shell-dialog-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 20px 16px;
  border-bottom: 1px solid var(--shell-line);
}
.shell-dialog-header:before {
  content: "";
  position: absolute;
  top: 8px;
  left: calc(50% - 18px);
  width: 36px;
  height: 4px;
  border-radius: 4px;
  background: var(--shell-border);
}
.shell-dialog-content {
  overflow: auto;
  max-height: calc(88dvh - 90px);
  padding: 24px 20px calc(24px + env(safe-area-inset-bottom));
  overscroll-behavior: contain;
}
.shell-dialog-content > :is(.shell-button, .shell-row) + :is(.shell-button, .shell-row) {
  margin-top: 8px;
}
.shell-empty {
  padding: 64px 16px;
  text-align: center;
}
.shell-empty > .shell-icon {
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
}
.shell-empty h2 {
  font-size: 17px;
}
.shell-empty p {
  color: var(--shell-muted);
  font-size: 13px;
}
.shell-task {
  display: flex;
  gap: 14px;
  padding: 19px 0;
  border-bottom: 1px solid var(--shell-line);
  align-items: flex-start;
}
.shell-task-check {
  width: 44px;
  height: 44px;
  flex: none;
  border: 0;
  border-radius: 50%;
  background: transparent;
  padding: 11px;
  color: var(--shell-accent);
  margin-top: -6px;
  position: relative;
}
.shell-task-check:before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1.5px solid var(--shell-border);
  border-radius: 50%;
}
.shell-task-check[aria-checked="true"] {
  color: var(--shell-accent);
}
.shell-task-check[aria-checked="true"]:before {
  border-color: var(--shell-accent);
}
.shell-task-body {
  flex: 1;
  min-width: 0;
  border: 0;
  background: none;
  padding: 0;
  color: inherit;
  text-align: left;
  font-weight: 400;
  line-height: 1.6;
}
.shell-sliding-row {
  position: relative;
  overflow: hidden;
  touch-action: pan-y;
  --shell-slide-offset: 0px;
}
.shell-sliding-row > :not(.shell-slide-action) {
  position: relative;
  z-index: 1;
  transform: translateX(var(--shell-slide-offset));
  transition: transform 260ms cubic-bezier(.2,.85,.25,1);
}
.shell-slide-dragging > :not(.shell-slide-action) { transition: none; }
.shell-slide-action {
  position: absolute;
  z-index: 0;
  top: 6px;
  bottom: 6px;
  min-height: 48px;
  padding: 0;
  border: 1px solid var(--shell-border);
  border-radius: 16px;
  background: var(--shell-surface);
  color: var(--shell-ink);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
  visibility: hidden;
  transition: width 260ms cubic-bezier(.2,.85,.25,1), background 140ms ease, color 140ms ease;
}
.shell-slide-dragging > .shell-slide-action { transition: background 140ms ease, color 140ms ease; }
.shell-slide-action[data-side="left"] { left: 0; }
.shell-slide-action[data-side="right"] { right: 0; justify-content: flex-end; }
.shell-slide-action[data-primary="true"],
.shell-sliding-row[data-slide-ready="true"] .shell-slide-action {
  background: var(--shell-accent);
  color: var(--shell-on-accent);
  border-color: var(--shell-accent);
}
.shell-sliding-row[data-slide-open="true"] > .shell-slide-action { visibility: visible; }
.shell-slide-action-copy {
  width: 80px;
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 11px;
  line-height: 1.3;
  opacity: var(--shell-slide-copy-opacity, 0);
}
.shell-slide-action .shell-icon { width: 24px; height: 24px; }
.shell-sliding-row[data-slide-ready="true"] .shell-slide-action-copy {
  transform: scale(1.06);
}
@media (prefers-reduced-motion: reduce) {
  .shell-sliding-row > :not(.shell-slide-action), .shell-slide-action { transition: none; }
}
.shell-task-title {
  font-size: 16px;
  display: block;
}
.shell-task-notes {
  font-size: 13px;
  color: var(--shell-muted);
  margin: 4px 0 12px;
  display: block;
  white-space: pre-wrap;
}
.shell-task .shell-meta {
  margin-top: 8px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.shell-task-group {
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  color: var(--shell-muted);
  border: 0;
  background: transparent;
  padding: 24px 0 4px;
  font-weight: 600;
  font-size: 13px;
  text-align: left;
}
.shell-task-group:first-child {
  padding-top: 0;
}
.shell-card {
  display: flex;
  gap: 16px;
  padding: 20px 0;
  border: 0;
  border-bottom: 1px solid var(--shell-line);
  background: transparent;
  width: 100%;
  text-align: left;
  color: inherit;
  align-items: flex-start;
}
.shell-card-image {
  width: 64px;
  height: 96px;
  object-fit: cover;
  border-radius: 9px;
  border: 1px solid var(--shell-border);
  background: var(--shell-surface);
  flex: none;
}
.shell-artwork {
  display: block;
  max-width: min(100%, 300px);
  height: auto;
  margin: 0 auto 24px;
  border-radius: 16px;
  border: 1px solid var(--shell-border);
}
.shell-filters {
  display: flex;
  gap: 8px;
  overflow: auto;
  scrollbar-width: none;
  margin: 0 -4px 16px;
  padding: 4px;
}
.shell-filters .shell-button {
  width: auto;
  flex: none;
  min-height: 42px;
  padding: 8px 12px;
  font-size: 12px;
  border-radius: 24px;
}
.shell-filter-menu {
  padding: 4px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.shell-filter-menu .shell-button {
  justify-content: flex-start;
}
.shell-article {
  font-size: 15px;
  line-height: 1.8;
}
.shell-article img,
.shell-article video {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}
.shell-article pre {
  white-space: pre-wrap;
}
.shell-article blockquote {
  border-left: 2px solid var(--shell-accent);
  margin-left: 0;
  padding-left: 16px;
  color: var(--shell-muted);
}
.shell-spinner {
  animation: shell-spin 1s linear infinite;
}
@keyframes shell-spin {
  to {
    transform: rotate(360deg);
  }
}
.shell-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
@media (min-width: 960px) {
  .shell-app[data-split="true"] {
    grid-template-columns: minmax(320px, 1fr) minmax(420px, 1fr);
  }
  .shell-app[data-split="true"] > .shell-pane[data-column="2"] {
    border-left: 1px solid var(--shell-border);
  }
  .shell-content {
    padding-inline: 32px;
  }
  .shell-dialog {
    inset: 50% auto auto 50%;
    margin: 0;
    transform: translate(-50%, -50%);
    border-bottom: 1.5px solid var(--shell-border);
    border-radius: 28px;
    max-height: 80dvh;
  }
  .shell-dialog-header:before {
    display: none;
  }
  .shell-dialog-content {
    max-height: calc(80dvh - 90px);
  }
}
@media (prefers-reduced-motion: reduce) {
  html[data-shell="dom"] *,
  html[data-shell="dom"] *::before {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
@media (forced-colors: active) {
  .shell-segments::before {
    border: 1px solid Highlight;
  }
  .shell-icon {
    background: ButtonText;
  }
  .shell-button,
  .shell-row,
  .shell-dialog {
    border-color: ButtonText;
  }
}

.shell-task .shell-meta > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.shell-task .shell-meta .shell-icon {
  width: 16px;
  height: 16px;
}
.shell-task-group.shell-error {
  color: var(--shell-danger);
}

.shell-theme-preview {
  padding: 14px;
  border: 1px solid var(--shell-line);
  border-radius: 14px;
  color: var(--shell-ink);
  background: var(--shell-bg);
  font-size: 12px;
}
.shell-theme-preview p {
  margin: 0;
}
.shell-preview-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--shell-warning);
  font-size: 13px;
  margin-bottom: 14px;
}
.shell-preview-heading .shell-icon {
  color: var(--shell-muted);
  width: 16px;
  height: 16px;
}
.shell-preview-task,
.shell-preview-selected {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.shell-preview-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 22px;
  height: 22px;
  border: 1px solid var(--shell-muted);
  border-radius: 50%;
  background: var(--shell-bg);
}
.shell-preview-details {
  flex: 1;
  min-width: 0;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--shell-line);
}
.shell-preview-title {
  font-size: 14px;
}
.shell-theme-preview .shell-preview-meta {
  color: var(--shell-muted);
  margin-top: 8px;
}
.shell-preview-link {
  color: var(--shell-accent);
}
.shell-preview-selected {
  margin: 12px -6px 18px;
  padding: 12px 8px;
  align-items: center;
  background: var(--shell-selected);
  border: 1px solid var(--shell-accent);
  border-radius: 8px;
}
.shell-preview-selected .shell-preview-check {
  background: var(--shell-muted);
  color: var(--shell-on-accent);
}
.shell-preview-check .shell-icon {
  width: 16px;
  height: 16px;
}
.shell-preview-field {
  border: 1px solid var(--shell-border);
  border-radius: 8px;
  padding: 10px 12px;
  background: var(--shell-surface);
  color: var(--shell-muted);
}
.shell-preview-statuses {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  margin: 12px 0;
}
.shell-preview-success {
  color: var(--color-success);
}
.shell-preview-warning {
  color: var(--shell-warning);
}
.shell-preview-error {
  color: var(--shell-danger);
}
.shell-preview-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.shell-preview-action,
.shell-preview-save {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  min-height: 38px;
  border: 1px solid var(--shell-line);
  border-radius: 20px;
  background: var(--shell-surface);
  color: var(--shell-accent);
}
.shell-preview-action:has(.shell-icon) {
  padding: 8px;
}
.shell-preview-save {
  margin-left: auto;
  background: var(--color-accent-background);
  color: var(--shell-on-accent);
  border-color: transparent;
}
.shell-color-tile {
  flex: 1;
  min-width: 0;
}
.shell-color-swatch {
  height: 48px;
  border: 1px solid var(--shell-border);
  border-radius: 12px;
}
.shell-color-tile p {
  margin: 4px 0;
}
.shell-task,
.shell-card {
  content-visibility: auto;
  contain-intrinsic-size: auto 140px;
}

.shell-pane,
.shell-dialog,
.shell-theme-preview {
  --shell-bg: var(--color-background-canvas, #000d3c);
  --shell-surface: var(--color-background-surface, #061446);
  --shell-ink: var(--color-foreground-primary, #ffdc00);
  --shell-muted: var(--color-foreground-secondary, #c4b64d);
  --shell-accent: var(--color-accent, #ffdc00);
  --shell-border: var(--color-border-strong, #ae9937);
  --shell-line: var(--color-border-subtle, #74672e);
  --shell-selected: var(--color-selection-background, #242842);
  --shell-danger: var(--color-error, #ff63ac);
  --shell-warning: var(--color-warning, var(--shell-danger));
  --shell-on-accent: var(--color-on-accent, var(--shell-bg));
}

.shell-task-body,
.shell-card {
  touch-action: pan-y;
  transition: transform 180ms var(--shell-ease);
}

.shell-row-shell {
  display: flex;
  align-items: center;
  border: 1px solid var(--shell-line);
  border-radius: 16px;
  background: var(--shell-surface);
  overflow: hidden;
}
.shell-row-shell > .shell-row {
  border: 0;
  background: transparent;
  flex: 1;
  min-width: 0;
}
.shell-row-shell > .shell-row-shell-action {
  width: auto;
  flex: none;
  min-width: 44px;
  min-height: 44px;
  margin-right: 8px;
  padding: 10px;
}
.shell-row-shell + .shell-row-shell {
  margin-top: 8px;
}
.shell-task-title {
  font: inherit;
  font-size: 16px;
  line-height: 1.6;
  color: var(--shell-ink);
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  padding: 0;
  text-align: left;
  min-height: 44px;
}
.shell-task-notes p {
  margin: 0 0 8px;
}
.shell-task-notes :is(ul, ol) {
  padding-left: 22px;
  margin: 8px 0;
}
.shell-task-notes mark {
  color: var(--shell-bg);
  background: var(--shell-accent);
}
.shell-note-check {
  list-style: none;
  position: relative;
}
.shell-note-check > input {
  position: absolute;
  left: -30px;
  top: 0;
  width: 20px;
  height: 20px;
  accent-color: var(--shell-accent);
}

.shell-scroll {
  touch-action: pan-y;
}

/* Compact floating chrome follows the native Photos toolbar proportions. */
.shell-pane[data-chrome="compact"] {
  --shell-safe-right: env(safe-area-inset-right, 0px);
  --shell-safe-bottom: env(safe-area-inset-bottom, 0px);
  --shell-chrome-inset: min(var(--shell-chrome-edge), var(--shell-chrome-limit, 100vw));
  --shell-chrome-edge: calc(15px + max(var(--shell-safe-right), var(--shell-safe-bottom)) + var(--shell-chrome-adjustment, 0px));
}
.shell-pane[data-chrome="compact"] .shell-dock {
  bottom: var(--shell-chrome-edge, 15px);
  padding: 0 3px;
  gap: 6px;
  height: 48px;
  max-width: none;
  border: 0;
  border-radius: 24px;
  box-shadow: inset 0 0 0 1px var(--shell-border);
}
.shell-pane[data-chrome="compact"] .shell-dock .shell-button {
  width: 48px;
  height: 48px;
  min-height: 48px;
  flex: none;
}
.shell-pane[data-chrome="compact"] .shell-corner {
  bottom: var(--shell-chrome-edge, 15px);
}
.shell-pane[data-chrome="compact"] .shell-corner[data-side="left"] {
  left: calc(env(safe-area-inset-left, 0px) + var(--shell-chrome-inset, 15px));
}
.shell-pane[data-chrome="compact"] .shell-corner[data-side="right"] {
  right: calc(
    env(safe-area-inset-right, 0px) + var(--shell-chrome-inset, 15px)
  );
}
.shell-pane[data-chrome="compact"] .shell-corner .shell-button {
  width: 48px;
  height: 48px;
  min-height: 48px;
  border-width: 1px;
}
.shell-pane[data-chrome="compact"] :is(.shell-dock, .shell-corner) .shell-icon {
  width: 24px;
  height: 24px;
}
/* The checkbox's visible center follows the first 24px title line, including wrapped titles. */
.shell-task {
  gap: 0;
}
html[data-shell="dom"] .shell-task-title {
  font-size: 16px;
  line-height: 24px;
  display: flex;
  align-items: flex-start;
}
.shell-task-check {
  margin-top: -10px;
}
.shell-task-check:before {
  inset: auto;
  top: 9px;
  left: 2px;
  width: 26px;
  height: 26px;
}
.shell-task-check .shell-icon {
  position: absolute;
  left: 6px;
  top: 13px;
  width: 18px;
  height: 18px;
}
.shell-task-group .shell-group-chevron {
  margin-left: auto;
  width: 18px;
  height: 18px;
  transition: transform 180ms var(--shell-ease);
}
.shell-task-group[aria-expanded="true"] .shell-group-chevron {
  transform: rotate(90deg);
}
.shell-task-properties {
  gap: 0 !important;
}
.shell-task-properties .shell-property {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
}
.shell-task-properties .shell-property + .shell-property:before {
  content: "·";
  margin: 0 2px 0 8px;
  color: var(--shell-muted);
}
.shell-task-properties .shell-property .shell-icon {
  width: 14px;
  height: 14px;
}
@media (prefers-reduced-motion: reduce) {
  .shell-task-group .shell-group-chevron {
    transition: none;
  }
}

/* Separators divide tasks; the final visible task has no trailing rule. */
.shell-task:not(:has(~ .shell-task)) {
  border-bottom: 0;
}
/* A leading note list must not collapse its margin into the title/notes gap. */
.shell-task-notes > :first-child {
  margin-top: 0;
}
/* Balance compact title/notes spacing with the 44px surrounding row target. */
html[data-shell="dom"] .shell-task-title {
  min-height: 34px;
}
.shell-task-body {
  min-height: 44px;
}
.shell-task-notes {
  margin-top: 3px;
}

/* Plot pages use the entire pane; their host owns rail and safe-area geometry. */
html[data-shell="dom"] .shell-pane[data-full-bleed] .shell-content{max-width:none;width:100%;padding:0;margin:0}
html[data-shell="dom"] .shell-pane[data-full-bleed] .shell-scroll{padding:0}
