/* browser/work.css */
* {
  box-sizing: border-box;
  letter-spacing: 0;
  scrollbar-width: none;
}
::-webkit-scrollbar {
  display: none;
}
[hidden] {
  display: none !important;
}
html,
body {
  margin: 0;
  min-width: 320px;
}
body {
  height: 100dvh;
  padding: 20px;
  background: var(--wallpaper);
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button,
select {
  cursor: pointer;
}
button {
  border: 0;
}
a {
  color: var(--accent-lav);
  text-decoration: none;
}
h1,
h2,
h3,
p {
  margin: 0;
  letter-spacing: 0;
}
h1 {
  font-size: 30px;
  line-height: 1.2;
}
h2 {
  font-size: 20px;
  font-weight: 800;
}
button:disabled {
  cursor: default;
  opacity: .42;
  transform: none !important;
}
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--accent-lav);
  outline-offset: 3px;
}
input:focus-visible,
textarea:focus-visible {
  box-shadow: none;
}
.scroll-edges {
  --fade-left: 0px;
  --fade-right: 0px;
  --fade-top: 0px;
  --fade-bottom: 0px;
}
.scroll-edges[data-scroll-left] {
  --fade-left: 24px;
}
.scroll-edges[data-scroll-right] {
  --fade-right: 24px;
}
.scroll-edges[data-scroll-top] {
  --fade-top: 24px;
}
.scroll-edges[data-scroll-bottom] {
  --fade-bottom: 24px;
}
.scroll-edges:is([data-scroll-left], [data-scroll-right], [data-scroll-top], [data-scroll-bottom]) {
  mask-image:
    linear-gradient(
      to right,
      #0004,
      #000 var(--fade-left),
      #000 calc(100% - var(--fade-right)),
      #0004),
    linear-gradient(
      to bottom,
      #0004,
      #000 var(--fade-top),
      #000 calc(100% - var(--fade-bottom)),
      #0004);
  mask-composite: intersect;
}
.canvas-viewport,
:is(.filter-chips, .kanban):is([data-scroll-left], [data-scroll-right]) {
  cursor: grab;
}
.filter-chips,
.kanban-column > .section-head {
  user-select: none;
}
.panning,
.panning * {
  cursor: grabbing !important;
  user-select: none;
}
.kanban.panning {
  scroll-snap-type: none;
}
.icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}
.app-shell {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: 40px;
  background: var(--bg-stage);
  box-shadow:
    var(--shadow-panel),
    var(--inner-hi),
    inset 0 -18px 80px rgba(13, 13, 30, .28);
}
.rail {
  position: absolute;
  left: 24px;
  top: 24px;
  bottom: 24px;
  width: 64px;
  padding: 10px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  border-radius: 22px;
  background: var(--bg-rail);
  box-shadow: var(--inner-stroke), var(--inner-hi);
  z-index: 4;
}
.rail-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.rail-management {
  padding: 4px;
  border-radius: 18px;
  background: rgba(169, 173, 255, .05);
}
.rail-spacer {
  flex: 1;
}
.icon-button {
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--motion-release);
}
.icon-button.active,
.icon-button[aria-pressed=true] {
  background:
    linear-gradient(
      180deg,
      rgba(123, 72, 169, .86),
      rgba(86, 55, 136, .82));
  color: #f1d8ff;
  box-shadow:
    inset 0 0 0 2px rgba(224, 162, 255, .24),
    0 10px 20px rgba(0, 0, 0, .22),
    var(--shadow-glow);
}
.button {
  min-height: 44px;
  padding: 10px 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  transition: var(--motion-release);
}
.primary {
  background:
    linear-gradient(
      180deg,
      var(--accent-lav),
      var(--accent-lav-2));
  color: var(--text-on-accent);
  box-shadow: inset 0 0 0 2px rgba(203, 208, 255, .55), var(--shadow-press);
}
.secondary {
  background: var(--surface-1);
  color: var(--text);
  box-shadow: var(--inner-stroke), var(--inner-hi);
}
.ghost {
  background: transparent;
  color: var(--text-muted);
  box-shadow: inset 0 0 0 2px var(--stroke);
}
.danger {
  color: var(--accent-pink);
}
@media (hover: hover) {
  .button:hover:not(:disabled),
  .icon-button:hover:not(:disabled),
  .chip:hover {
    transform: translateY(-3px) scale(1.02);
    filter: brightness(1.06);
    transition: var(--motion-hover);
  }
  .task-card:hover {
    box-shadow:
      var(--shadow-hover),
      var(--inner-stroke),
      var(--inner-hi);
  }
}
.button:active:not(:disabled),
.icon-button:active:not(:disabled),
.chip:active {
  transform: translateY(1px) scale(.95);
  transition: var(--motion-press);
}
.work-main {
  position: absolute;
  inset: 24px 24px 20px 116px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 78px minmax(0, 1fr) 78px;
}
.work-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
}
.work-header > div {
  min-width: 0;
}
.work-header h1 {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
}
.breadcrumb span {
  color: var(--text-muted);
}
.work-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  min-height: 0;
  min-width: 0;
  position: relative;
}
.work-main[data-view=canvas].collection-open .work-body {
  grid-template-columns: minmax(0, 1fr) 340px;
}
.canvas-viewport {
  min-width: 0;
  min-height: 0;
  overflow: auto;
  position: relative;
  border-radius: var(--radius-panel);
  background-color: var(--bg-canvas);
  box-shadow: var(--inner-hi);
  overscroll-behavior: contain;
  touch-action: pan-x pan-y;
}
.canvas-size {
  position: relative;
  overflow: hidden;
}
.canvas-world {
  position: absolute;
  left: 0;
  top: 0;
  width: var(--canvas-width);
  height: var(--canvas-height);
  transform-origin: top left;
  border-radius: var(--radius-panel);
  background-color: var(--bg-canvas);
  background-image: var(--canvas-dots);
  background-size: var(--canvas-dots-size);
  box-shadow: var(--inner-stroke), var(--inner-hi);
}
.canvas-world > .task-card {
  position: absolute;
  width: var(--card-width);
  height: var(--card-height);
}
.task-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  height: 174px;
  padding: 14px;
  border-radius: 18px;
  background: var(--surface-1);
  box-shadow:
    var(--inner-stroke),
    var(--inner-hi),
    var(--shadow-card);
  transition: box-shadow var(--dur-hover) var(--ease-soft), background var(--dur-hover) var(--ease-soft);
  position: relative;
  cursor: pointer;
  user-select: none;
}
.task-card[data-movable],
.task-card[data-movable] .card-title {
  cursor: grab;
}
.task-card {
  rotate: var(--card-tilt);
}
.task-card[data-tilt=left] {
  --card-tilt: -1.25deg;
}
.task-card[data-tilt=right] {
  --card-tilt: 1.25deg;
}
.task-card[data-movable] {
  touch-action: pan-y;
}
.canvas-world > .task-card[data-movable] {
  touch-action: none;
}
.task-card.selected {
  background: var(--surface-2);
  box-shadow: 0 14px 28px rgba(7, 8, 18, .32), inset 0 0 0 2px rgba(169, 173, 255, .42);
}
.canvas-world > .task-card:is(.selected, :has(.card-title:focus-visible))::after {
  content: "";
  pointer-events: none;
  position: absolute;
  inset: -6px;
  border: 2px solid rgba(178, 174, 255, .92);
  border-radius: 23px;
}
.canvas-world .card-title:focus-visible {
  outline: none;
}
.canvas-world > .task-card.selected {
  z-index: 2;
}
.task-card.dragging {
  z-index: 5;
  box-shadow: var(--shadow-drag);
  transition: none;
  opacity: .9;
}
.task-card.dragging,
.task-card.dragging * {
  cursor: grabbing;
}
.task-card.drag-preview {
  position: fixed;
  z-index: 30;
  pointer-events: none;
  opacity: .9;
  transform: rotate(-2deg);
  rotate: none;
  box-shadow: var(--shadow-drag);
}
.card-top {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 26px;
}
[data-kind=Task] {
  --kind-color: var(--text-muted);
}
[data-kind=Stream] {
  --kind-color: var(--accent-lav);
}
[data-kind=Clip] {
  --kind-color: var(--accent-pink);
}
[data-kind=Edit] {
  --kind-color: var(--accent-purple);
}
[data-kind=Approval] {
  --kind-color: var(--accent-gold);
}
.kind {
  height: 24px;
  padding: 0 9px;
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--kind-color) 16%, transparent);
  color: color-mix(in srgb, var(--kind-color) 78%, var(--text));
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 800;
  flex-shrink: 0;
}
.task-id {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  white-space: nowrap;
}
.card-top > .task-id {
  margin-left: auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card-assignees {
  display: flex;
  padding-left: 5px;
  flex-shrink: 0;
}
.card-assignees .avatar {
  position: relative;
  overflow: hidden;
  width: 23px;
  height: 23px;
  font-size: 10px;
  margin-left: -5px;
  box-shadow: 0 0 0 2px var(--surface-1);
}
.card-assignees img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card-assignees .avatar:nth-child(2) {
  background: var(--accent-pink);
}
.card-assignees .avatar-more {
  background: var(--surface-3);
  color: var(--text);
}
.avatar {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: var(--radius-pill);
  margin-left: auto;
  color: var(--text-on-accent);
  background: var(--accent-lav);
  font-weight: 700;
  font-size: 12px;
  flex-shrink: 0;
}
.card-title {
  padding: 0;
  text-align: left;
  background: none;
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  flex: 1;
  overflow: hidden;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  cursor: pointer;
}
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-width: 0;
  margin: 0 -14px -14px;
  padding: 10px 14px;
  min-height: 42px;
  border-radius: 0 0 18px 18px;
  background: rgba(59, 56, 90, .55);
}
.due {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: color-mix(in srgb, var(--text-muted) 80%, var(--text));
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.due .icon {
  width: 13px;
  height: 13px;
}
.due.overdue {
  color: var(--accent-pink);
}
.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  background: var(--surface-2);
  color: color-mix(in srgb, var(--text-muted) 80%, var(--text));
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
.status-pill[data-status=progress] {
  color: var(--accent-lav);
  box-shadow: var(--ring-scheduled);
}
.status-pill[data-status=review] {
  color: var(--accent-gold);
  box-shadow: var(--ring-pending);
}
.status-pill[data-status=done] {
  color: color-mix(in srgb, var(--accent-purple) 65%, var(--text));
}
.is-done .card-title {
  color: var(--text-muted);
}
.collection {
  display: none;
  min-height: 0;
  min-width: 0;
  background: var(--bg-panel);
  padding: 22px 20px 18px;
  border-radius: var(--radius-panel);
  box-shadow: 0 32px 80px rgba(8, 7, 20, .55), var(--inner-hi);
  flex-direction: column;
  gap: 14px;
}
.collection-open .collection {
  display: flex;
  transform-origin: right center;
  animation: collection-reveal var(--dur-pop) var(--ease-soft) both;
}
@keyframes collection-reveal {
  from {
    opacity: 0;
    transform: translateX(20px) scale(.96);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.section-head {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.section-head h2 {
  flex: 1;
  min-width: 0;
}
.section-head .icon-button {
  width: 32px;
  height: 32px;
}
.count {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.search-sort {
  display: flex;
  gap: 8px;
}
.search {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface-1);
  min-width: 0;
  height: 44px;
  border-radius: var(--radius-pill);
  padding: 0 14px;
  box-shadow: var(--inner-stroke), var(--inner-hi);
}
.search .icon {
  width: 18px;
  height: 18px;
  color: var(--accent-lav);
}
.search input {
  border: 0;
  min-width: 0;
  width: 100%;
  background: transparent;
  color: var(--text);
  font-size: 13px;
  outline: none;
  box-shadow: none;
}
.search:focus-within {
  box-shadow: var(--ring-focus);
}
input::placeholder,
textarea::placeholder {
  color: var(--text-muted);
  opacity: 1;
}
.select-control {
  display: block;
  min-width: 0;
}
.select-trigger {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--surface-1);
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  box-shadow: var(--inner-stroke), var(--inner-hi);
}
.select-value {
  flex: 1;
  min-width: 0;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.select-trigger > .icon {
  width: 14px;
  height: 14px;
  color: var(--text-muted);
}
.select-trigger:hover,
.select-trigger[aria-expanded=true] {
  background: var(--surface-2);
}
.select-trigger:focus-visible {
  outline: none;
  box-shadow: var(--ring-focus);
}
.sort {
  flex: 0 0 106px;
}
.sort .select-trigger {
  font-size: 12px;
  gap: 8px;
}
.select-popover {
  position: fixed;
  inset: auto;
  margin: 0;
  border: 0;
  padding: 8px;
  border-radius: 14px;
  background: rgba(11, 11, 19, .96);
  color: var(--text);
  box-shadow: 0 22px 40px rgba(0, 0, 0, .50), inset 0 0 0 2px rgba(157, 158, 225, .18);
  overflow: visible;
}
.select-popover:popover-open {
  animation: lunery-pop var(--dur-pop) var(--ease-spring) both;
}
.select-popover::before {
  content: "";
  position: absolute;
  left: var(--pointer-left);
  top: -4px;
  width: 8px;
  height: 8px;
  background: rgba(11, 11, 19, .96);
  transform: rotate(45deg);
}
.select-popover[data-side=above]::before {
  top: auto;
  bottom: -4px;
}
.select-options {
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
  overscroll-behavior: contain;
}
.select-option {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  flex-shrink: 0;
  padding: 8px 10px;
  border-radius: 8px;
  background: transparent;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
  text-align: left;
}
.select-option > span {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.select-option > .icon {
  width: 14px;
  height: 14px;
  visibility: hidden;
  color: var(--accent-lav);
}
.select-option[aria-selected=true] {
  background:
    linear-gradient(
      180deg,
      #6560a3,
      #504b82);
  color: #fff;
  box-shadow: inset 0 0 0 2px rgba(200, 204, 255, .22);
}
.select-option[aria-selected=true] > .icon {
  visibility: visible;
}
.select-option:is(:hover, .focused):not(:disabled) {
  color: var(--text);
  box-shadow: inset 0 0 0 2px rgba(169, 173, 255, .65);
}
.select-option:is(:hover, .focused):not([aria-selected=true]):not(:disabled) {
  background: rgba(169, 173, 255, .10);
}
.select-options[aria-multiselectable] .select-option > .icon {
  width: 20px;
  height: 20px;
  padding: 3px;
  visibility: visible;
  stroke: transparent;
  border-radius: 5px;
  box-shadow: inset 0 0 0 2px var(--stroke-strong);
}
.select-options[aria-multiselectable] .select-option[aria-selected=true] > .icon {
  stroke: currentColor;
  color: var(--text-on-accent);
  background: var(--accent-lav);
}
.select-error {
  padding: 8px 10px 2px;
  color: var(--accent-pink);
  font-size: 12px;
}
.select-trigger[aria-invalid=true] {
  box-shadow: inset 0 0 0 2px var(--accent-pink);
}
.filter-chips {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  flex-shrink: 0;
  padding: 4px 2px 8px;
}
.chip {
  height: 30px;
  padding: 0 13px;
  border-radius: var(--radius-pill);
  flex-shrink: 0;
  background: var(--surface-1);
  color: var(--text);
  font-weight: 800;
  font-size: 12px;
  transition: var(--motion-release);
}
.chip.active {
  background:
    linear-gradient(
      180deg,
      var(--accent-lav),
      var(--accent-lav-2));
  color: var(--text-on-accent);
  box-shadow: var(--ring-select), var(--shadow-press);
}
.chip[data-kind] {
  color: color-mix(in srgb, var(--kind-color) 75%, var(--text));
  background: color-mix(in srgb, var(--kind-color) 18%, var(--surface-1));
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--kind-color) 22%, transparent);
}
.chip[data-kind].active {
  color: var(--text-on-accent);
  background:
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--kind-color) 80%, var(--text)),
      var(--kind-color));
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--kind-color) 60%, var(--text)), var(--shadow-press);
}
.collection-list {
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 4px;
  margin: -4px;
}
.collection-list .task-card {
  flex-shrink: 0;
}
.floating-bar {
  justify-self: center;
  align-self: end;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 2px 88px;
  align-items: center;
  gap: 10px;
  padding: 8px;
  width: 380px;
  max-width: 100%;
  height: 60px;
  border-radius: var(--radius-pill);
  background: var(--surface-1);
  box-shadow:
    var(--inner-stroke),
    var(--inner-hi),
    0 14px 28px rgba(7, 8, 18, .32);
  z-index: 3;
}
.person-control {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  padding-left: 10px;
}
.person-control > .icon {
  width: 18px;
  height: 18px;
  color: var(--text-muted);
}
.person-control .select-control {
  flex: 1;
}
.person-control .select-trigger {
  box-shadow: none;
  padding-left: 8px;
}
.person-control .select-trigger:focus-visible {
  box-shadow: var(--ring-focus);
}
.toolbar-divider {
  height: 30px;
  background:
    linear-gradient(
      180deg,
      transparent,
      rgba(157, 158, 225, .30),
      transparent);
}
.toolbar-actions {
  display: flex;
  gap: 4px;
}
.toolbar-actions .icon-button {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 12px;
}
.toolbar-actions .icon-button:hover {
  color: var(--text);
  background: rgba(255, 255, 255, .04);
}
[data-tooltip] {
  position: relative;
}
.tool-tip {
  position: absolute;
  z-index: 10;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  padding: 9px 12px;
  border-radius: 8px;
  background: rgba(11, 11, 19, .96);
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .45), inset 0 0 0 2px rgba(157, 158, 225, .18);
  backdrop-filter: blur(18px);
  visibility: hidden;
  opacity: 0;
  transition: opacity var(--dur-exit) var(--ease-exit), visibility var(--dur-exit);
}
.tool-tip::before {
  content: "";
  position: absolute;
  inset: 100% 0 auto;
  height: 12px;
}
.tool-tip::after {
  content: "";
  position: absolute;
  left: calc(50% - 4px);
  bottom: -4px;
  width: 8px;
  height: 8px;
  transform: rotate(45deg);
  background: rgba(11, 11, 19, .96);
}
[data-tooltip]:not([data-tooltip-dismissed]):is(:hover, :focus-visible) .tool-tip {
  visibility: visible;
  opacity: 1;
  transition: opacity var(--dur-hover) var(--ease-soft) 160ms, visibility 0s 160ms;
}
.rail .tool-tip {
  left: calc(100% + 16px);
  bottom: auto;
  top: 50%;
  transform: translateY(-50%);
}
.rail .tool-tip::before {
  inset: 0 100% 0 auto;
  width: 18px;
  height: auto;
}
.rail .tool-tip::after {
  left: -4px;
  top: calc(50% - 4px);
  bottom: auto;
}
#open-account[aria-expanded=true] .tool-tip {
  display: none;
}
.work-main[data-view=kanban] #reset-view {
  visibility: hidden;
}
.work-main[data-view=kanban] .collection {
  position: absolute;
  z-index: 6;
  top: 0;
  right: 0;
  bottom: 0;
  width: 340px;
}
.kanban {
  display: grid;
  grid-template-columns: repeat(4, minmax(268px, 1fr));
  gap: 18px;
  min-height: 0;
  overflow: auto;
  padding: 4px;
}
.kanban-column {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--bg-panel);
  border-radius: 24px;
  padding: 18px;
  box-shadow: var(--inner-stroke);
}
.kanban-column h2 {
  font-size: 17px;
  font-weight: 700;
}
.column-cards {
  flex: 1;
  min-height: 100px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: -4px;
  padding: 4px;
}
.column-cards .task-card {
  flex-shrink: 0;
}
.kanban-column .button {
  min-height: 38px;
  font-size: 12px;
  padding: 8px;
}
.kanban-column.drop-target {
  box-shadow: var(--ring-select), var(--glow-lav);
}
.empty-canvas {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 280px;
  padding: 20px 0;
  color: var(--text-muted);
}
.empty-canvas .icon {
  color: var(--accent-lav);
  width: 40px;
  height: 40px;
  margin-bottom: 14px;
}
.empty-canvas h2 {
  font-size: 28px;
  margin-bottom: 18px;
}
.empty-list {
  font-size: 13px;
  color: var(--text-muted);
  padding: 20px 4px;
}
dialog {
  background: var(--bg-panel);
  color: var(--text);
  border: 0;
  border-radius: var(--radius-modal);
  box-shadow: var(--shadow-panel);
  padding: 28px;
  width: min(560px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  overflow: auto;
}
dialog::backdrop {
  background: var(--scrim);
  backdrop-filter: var(--scrim-blur);
}
dialog[open] {
  animation: lunery-pop var(--dur-pop) var(--ease-spring) both;
}
#task-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
#task-form > .section-head {
  flex-wrap: wrap;
}
#dialog-task-id {
  font-size: 12px;
}
.activity-task-id {
  display: inline-block;
  margin-left: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
}
#task-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  min-width: 0;
}
#task-form input,
#task-form textarea,
#task-form select {
  width: 100%;
  background: var(--surface-1);
  color: var(--text);
  border: 0;
  border-radius: var(--radius-input);
  padding: 12px 14px;
  box-shadow: var(--inner-stroke);
  font-size: 14px;
  color-scheme: dark;
}
#task-form :is(input, textarea):focus {
  box-shadow: none;
}
#task-form .select-trigger {
  border-radius: var(--radius-input);
  font-size: 14px;
  font-weight: 600;
}
#task-form textarea {
  min-height: 100px;
  resize: vertical;
}
.form-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.dialog-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}
.dialog-actions .danger {
  margin-right: auto;
}
.inline-error {
  color: var(--accent-pink);
  font-size: 13px;
  overflow-wrap: anywhere;
}
.toast {
  position: fixed;
  left: 50%;
  bottom: 108px;
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100vw - 40px);
  padding: 16px 22px;
  border-radius: 16px;
  background: rgba(11, 11, 19, .94);
  color: var(--text);
  box-shadow: inset 0 0 0 2px var(--accent-lav), var(--shadow-card);
  z-index: 20;
  font-size: 13px;
}
.toast::after {
  content: "";
  display: block;
  height: 6px;
  background: var(--accent-lav);
  border-radius: var(--radius-pill);
  margin-top: 10px;
}
.toast[data-persistent=false]::after {
  transform-origin: left;
  animation: toast-fuse 3500ms linear forwards;
}
@keyframes toast-fuse {
  to {
    transform: scaleX(0);
  }
}
.content-main {
  position: absolute;
  inset: 24px 32px 32px 116px;
  overflow-y: auto;
  padding: 0 8px 32px 0;
}
.content-main .work-header {
  margin-bottom: 36px;
}
.management-section {
  margin-bottom: 36px;
}
.management-section > h2 {
  margin-bottom: 18px;
}
.directory-search {
  display: flex;
  gap: 12px;
  max-width: 600px;
  margin-bottom: 16px;
}
.directory-search .search {
  flex: 1;
}
.plain-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.person-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 12px;
  border-radius: 18px;
  min-width: 0;
}
.person-row:hover {
  background: var(--surface-1);
}
.person-row > div {
  flex: 1;
  min-width: 0;
}
.person-row strong {
  overflow-wrap: anywhere;
}
.identity-id {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  overflow-wrap: anywhere;
  margin-top: 4px;
}
.activity-list {
  padding: 0;
  margin: 0 0 28px;
  list-style: none;
}
.activity-main .work-header {
  margin-bottom: 24px;
}
.activity-filters {
  display: grid;
  grid-template-columns: minmax(220px, 2fr) repeat(3, minmax(140px, 1fr));
  gap: 14px;
  align-items: center;
  margin-bottom: 32px;
}
.activity-filters .date-filter {
  display: flex;
  gap: 10px;
  align-items: center;
  min-width: 0;
  height: 44px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  background: var(--surface-1);
  box-shadow: var(--inner-stroke), var(--inner-hi);
  white-space: nowrap;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
}
.date-filter input {
  width: 100%;
  min-width: 0;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--text);
  color-scheme: dark;
  font-size: 13px;
  outline: none;
}
.date-filter:focus-within {
  box-shadow: var(--ring-focus);
}
.activity-filter-actions {
  grid-column: span 2;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}
.activity-row,
.activity-head {
  display: grid;
  grid-template-columns: 170px 16px minmax(180px, .9fr) minmax(220px, 1.1fr);
  gap: 18px;
}
.activity-head {
  color: var(--text-muted);
  font-size: 12px;
  margin-bottom: 22px;
}
.activity-row {
  padding: 22px 0;
}
.activity-row > time {
  font-size: 12px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}
.activity-row p {
  font-size: 14px;
  overflow-wrap: anywhere;
}
.activity-row strong {
  font-weight: 700;
  color: var(--accent-lav);
}
.event-star {
  width: 16px;
  height: 16px;
  background: var(--text-muted);
  mask: var(--star-mask) center / contain no-repeat;
}
.event-star[data-action="task.updated"] {
  background: var(--accent-lav);
}
.event-star[data-action="member.invited"] {
  background: var(--accent-gold);
}
.event-star:is([data-action="task.deleted"], [data-action="member.revoked"]) {
  background: var(--accent-pink);
}
.activity-action {
  display: block;
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 12px;
}
.activity-changes {
  margin: 0;
  display: grid;
  gap: 10px;
  min-width: 0;
  align-content: start;
}
.activity-changes > div {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 12px;
  font-size: 13px;
}
.activity-changes dt {
  color: var(--text-muted);
}
.activity-changes dd {
  margin: 0;
  display: flex;
  align-items: start;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
  overflow-wrap: anywhere;
}
.activity-changes dd > div {
  min-width: 0;
  max-width: 100%;
}
.activity-changes dd > .icon {
  width: 14px;
  height: 18px;
  color: var(--text-muted);
  flex-shrink: 0;
}
.change-from {
  color: var(--text-muted);
}
.activity-changes details p {
  font-size: 13px;
  white-space: pre-wrap;
  margin-top: 8px;
}
.activity-outcome {
  color: var(--text-muted);
}
.activity-row summary {
  color: var(--text-muted);
  cursor: pointer;
  font-size: 12px;
  margin-top: 8px;
}
.activity-changes summary {
  margin: 0;
}
#account-menu {
  position: fixed;
  inset: auto;
  margin: 0;
  width: min(300px, calc(100vw - 16px));
  max-height: calc(100dvh - 16px);
  overflow: auto;
  border: 0;
  padding: 8px;
  border-radius: 14px;
  background: rgba(11, 11, 19, .96);
  color: var(--text);
  box-shadow: 0 22px 40px rgba(0, 0, 0, .50), inset 0 0 0 2px rgba(157, 158, 225, .18);
  backdrop-filter: blur(18px);
}
#account-menu:popover-open {
  transform-origin: bottom left;
  animation: lunery-pop var(--dur-pop) var(--ease-spring) both;
}
#account-state {
  padding: 8px 10px;
  color: var(--accent-gold);
  font-size: 12px;
}
.account-identity {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  margin-bottom: 6px;
  min-width: 0;
}
.account-identity > div {
  min-width: 0;
}
.account-identity h3,
.account-identity p {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.account-identity h3 {
  font-size: 14px;
  margin-bottom: 4px;
}
.account-identity p {
  font-size: 12px;
  color: var(--text-muted);
}
.profile-avatar {
  width: 36px;
  height: 36px;
  font-size: 16px;
  margin: 0;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 0 2px var(--stroke-strong);
}
.profile-avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.account-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 42px;
  padding: 10px;
  border-radius: 8px;
  background: transparent;
  color: var(--text-muted);
  text-align: left;
  font-size: 13px;
  font-weight: 500;
}
.account-menu-item > span {
  flex: 1;
  min-width: 0;
}
.account-menu-item .icon {
  width: 17px;
  height: 17px;
}
.account-menu-item:is(:hover, :focus-visible) {
  color: var(--text);
  background: var(--surface-1);
}
.account-menu-item[aria-disabled=true] {
  opacity: .42;
  pointer-events: none;
}
.account-signout {
  margin-top: 6px;
}
#settings-dialog {
  width: min(440px, calc(100vw - 32px));
}
.settings-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
  padding: 28px 0;
  font-size: 13px;
}
.settings-row output {
  color: var(--text-muted);
  overflow-wrap: anywhere;
}
.clock-setting {
  margin: 0;
  padding: 0;
  border: 0;
}
.clock-setting legend {
  margin-bottom: 12px;
  padding: 0;
  font-size: 13px;
}
.segmented-control {
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: var(--radius-pill);
  background: var(--surface-1);
  box-shadow: var(--inner-stroke);
}
.segmented-control label {
  flex: 1;
  position: relative;
  cursor: pointer;
}
.segmented-control input {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.segmented-control span {
  display: grid;
  place-items: center;
  height: 38px;
  border-radius: var(--radius-pill);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
}
.segmented-control input:checked + span {
  background:
    linear-gradient(
      180deg,
      var(--accent-lav),
      var(--accent-lav-2));
  color: var(--text-on-accent);
  box-shadow: var(--ring-select);
}
.segmented-control input:focus-visible + span {
  outline: 2px solid var(--accent-lav);
  outline-offset: 3px;
}
#settings-state:not([hidden]) {
  margin-top: 18px;
}
.account-page {
  min-height: 100dvh;
  height: auto;
  display: grid;
  place-items: center;
}
.account-surface {
  width: min(680px, 100%);
  padding: 40px;
  border-radius: 40px;
  background: var(--bg-panel);
  box-shadow: var(--shadow-panel);
  overflow-wrap: anywhere;
}
.wordmark {
  width: 210px;
  max-width: 100%;
  height: auto;
  margin-bottom: 24px;
}
.account-surface h1 {
  margin-bottom: 24px;
}
.account-surface p {
  margin: 20px 0;
}
.account-surface dt {
  color: var(--text-muted);
  font-size: 12px;
  margin-top: 12px;
}
.account-surface dd {
  margin: 4px 0 0;
  font-size: 14px;
}
.account-surface samp {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.skip-link {
  position: fixed;
  z-index: 100;
  top: -80px;
  left: 28px;
  padding: 12px;
  background: var(--bg-panel);
}
.skip-link:focus {
  top: 12px;
}
@media (max-width: 1190px) {
  .activity-row,
  .activity-head {
    grid-template-columns: 140px 16px minmax(140px, .9fr) minmax(170px, 1.1fr);
    gap: 12px;
  }
  .activity-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .work-main[data-view=canvas].collection-open .work-body {
    grid-template-columns: minmax(0, 1fr);
  }
  .collection {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    width: 340px;
    z-index: 6;
  }
}
@media (max-width: 700px) {
  body {
    padding: 8px;
  }
  .app-shell {
    border-radius: 28px;
  }
  .rail {
    top: 12px;
    bottom: auto;
    left: 12px;
    right: 12px;
    width: auto;
    height: 52px;
    padding: 4px 8px;
    flex-direction: row;
    gap: 12px;
    border-radius: 18px;
  }
  .rail-section {
    flex-direction: row;
  }
  .rail-management {
    padding: 0;
    margin-left: auto;
  }
  .rail .icon-button {
    width: 38px;
    height: 40px;
  }
  .rail-home img {
    width: 24px;
    height: 24px;
  }
  .rail-spacer {
    display: none;
  }
  .rail-account {
    position: fixed;
    bottom: 26px;
    left: 20px;
    padding: 4px;
    border-radius: var(--radius-pill);
    background: var(--bg-rail);
    box-shadow: var(--inner-stroke), var(--shadow-card);
  }
  .rail .tool-tip {
    left: 50%;
    top: calc(100% + 12px);
    transform: translateX(-50%);
  }
  .rail .tool-tip::before {
    inset: auto 0 100%;
    width: auto;
    height: 14px;
  }
  .rail .tool-tip::after {
    left: calc(50% - 4px);
    top: -4px;
  }
  .rail-home .tool-tip,
  .rail-account .tool-tip {
    left: 0;
    transform: none;
  }
  .rail-home .tool-tip::after,
  .rail-account .tool-tip::after {
    left: 16px;
  }
  .rail-management .tool-tip {
    left: auto;
    right: 0;
    transform: none;
  }
  .rail-management .tool-tip::after {
    left: auto;
    right: 16px;
  }
  .rail-account .tool-tip {
    top: auto;
    bottom: calc(100% + 12px);
  }
  .rail-account .tool-tip::after {
    top: auto;
    bottom: -4px;
  }
  .rail-account .tool-tip::before {
    inset: 100% 0 auto;
  }
  .work-main {
    inset: 84px 12px 12px;
    grid-template-rows: 86px minmax(0, 1fr) 72px;
  }
  .work-header {
    gap: 10px;
  }
  .work-header h1 {
    font-size: 24px;
    white-space: normal;
    overflow-wrap: anywhere;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .work-header .button {
    padding: 10px 14px;
    font-size: 12px;
  }
  .breadcrumb {
    font-size: 11px;
  }
  .collection,
  .work-main[data-view=kanban] .collection {
    width: 100%;
    max-width: 360px;
    padding: 18px;
  }
  .floating-bar {
    gap: 8px;
    padding: 6px;
    height: 56px;
    width: calc(100% - 58px);
    justify-self: end;
  }
  .person-control {
    padding-left: 6px;
  }
  #show-collection .tool-tip {
    left: auto;
    right: -8px;
    transform: none;
  }
  #show-collection .tool-tip::after {
    left: auto;
    right: 24px;
  }
  .kanban {
    grid-template-columns: repeat(4, minmax(256px, 82vw));
    gap: 12px;
    scroll-snap-type: x proximity;
  }
  .kanban-column {
    padding: 14px;
    scroll-snap-align: start;
  }
  .content-main {
    inset: 84px 16px 84px;
    padding-right: 0;
  }
  .person-row {
    flex-wrap: wrap;
    gap: 10px;
    padding: 14px 0;
  }
  .person-row > div {
    flex-basis: calc(100% - 100px);
  }
  .activity-row {
    grid-template-columns: 16px minmax(0, 1fr);
    gap: 8px 12px;
  }
  .activity-head {
    display: none;
  }
  .activity-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
  }
  .activity-filters > * {
    flex: 1 1 calc(50% - 6px);
    min-width: 0;
  }
  .activity-filters > .search {
    flex-basis: 100%;
  }
  .activity-filters .select-control:last-of-type {
    order: 2;
  }
  .activity-filters .date-filter {
    flex-basis: 100%;
    order: 1;
  }
  .activity-filter-actions {
    order: 2;
    gap: 8px;
  }
  .activity-filter-actions .button {
    padding: 10px;
  }
  .activity-filter-actions button span {
    display: none;
  }
  .activity-row > time {
    grid-column: 2;
  }
  .activity-row > .event-star {
    grid-row: 2;
  }
  .activity-story,
  .activity-changes,
  .activity-outcome {
    grid-column: 2;
  }
  .activity-changes,
  .activity-outcome {
    margin-top: 12px;
  }
  .account-surface {
    padding: 24px;
    border-radius: 28px;
  }
  dialog {
    padding: 22px;
    border-radius: 30px;
  }
  .form-pair {
    gap: 12px;
  }
}
@media (max-width: 370px) {
  .rail {
    gap: 8px;
    padding-inline: 6px;
  }
  .rail .icon-button {
    width: 34px;
  }
  .person-control > .icon {
    display: none;
  }
  .form-pair {
    grid-template-columns: 1fr;
  }
  .dialog-actions {
    gap: 8px;
  }
  .dialog-actions .button {
    padding: 10px 14px;
  }
}
