.robot-workspace {
  container: robot-work / inline-size;
  --rw-rail: color-mix(in srgb, var(--panel) 54%, var(--bg));
  --rw-header: color-mix(in srgb, var(--accent) 4%, var(--panel));
  --rw-working: #bda9ff;
  --rw-working-bg: #2c2043;
  --rw-blocked: #ffbd94;
  --rw-blocked-bg: #40281e;
  --rw-done: #a2ddc5;
  --rw-done-bg: #1b352d;
  --rw-danger: #ffc0a9;
}
:root[data-theme=light] .robot-workspace {
  --rw-working: #533393;
  --rw-working-bg: #eee8fa;
  --rw-blocked: #873d19;
  --rw-blocked-bg: #ffefe1;
  --rw-done: #16644c;
  --rw-done-bg: #def3ea;
  --rw-danger: #96371b;
}
.rw-sr-only {
  position: absolute; inline-size: 1px; block-size: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
.rw-heading, .rw-heading-main, .rw-heading-tools {
  display: flex; align-items: center; min-width: 0;
}
.rw-heading {
  justify-content: space-between; flex-wrap: wrap; gap: 1.15rem; margin-bottom: 1.65rem;
}
.rw-heading-main { gap: .9rem; }
.rw-heading-icon {
  display: grid; place-items: center; flex: none;
  width: 3.25rem; aspect-ratio: 1; border: 1px solid color-mix(in srgb, var(--accent) 24%, var(--accent-bg));
  border-radius: .9rem; background: var(--accent-bg); color: var(--accent);
}
.rw-heading-icon .icon { width: 1.5rem; height: 1.5rem; stroke-width: 2.1; }
.rw-heading h1 { font-size: clamp(1.95rem, 4vw, 2.85rem); letter-spacing: -.055em; margin: 0 0 .24rem; }
.rw-heading p { margin: 0; font-size: .91rem; }
.rw-heading-tools { gap: .65rem; }
.rw-heading-tools .button { flex: none; }
.rw-robot-picker {
  position: relative; display: flex; align-items: center; color: var(--accent);
  min-width: 0; max-width: min(20rem, 54vw);
}
.rw-robot-picker > .icon { position: absolute; inset-inline-start: .72rem; pointer-events: none; }
.rw-robot-picker select {
  padding-inline-start: 2.25rem; background-color: var(--panel); font-size: .875rem; font-weight: 650;
  text-overflow: ellipsis;
}
.rw-frame {
  display: grid; grid-template-columns: clamp(10.6rem, 20cqw, 13rem) minmax(0,1fr);
  min-height: 27rem; border: 1px solid var(--line); border-radius: 1rem; background: var(--panel);
}
.rw-folders {
  background: var(--rw-rail); border-inline-end: 1px solid var(--line-subtle);
  border-radius: 1rem 0 0 1rem; min-width: 0; padding: 1rem .6rem;
}
.rw-folders-head, .rw-folder-row {
  display: flex; align-items: center; min-width: 0;
}
.rw-folders-head { justify-content: space-between; padding-inline: .35rem .15rem; margin-bottom: .42rem; }
.rw-folders-head h2 { margin: 0; color: var(--muted); font-size: .85rem; font-weight: 670; letter-spacing: 0; }
.rw-folders-toggle { display: none; }
.rw-folder-body p { font-size: .82rem; padding: .48rem .5rem; margin: 0; }
.rw-folder-tree { margin: 0; padding: 0; list-style: none; }
.rw-folder-row { padding-inline-start: calc(var(--rw-depth, 0) * .55rem); }
.rw-folder-link, .rw-disclosure, .rw-icon-button, .rw-crumb, .rw-folders-toggle {
  border: 0; background: transparent; color: var(--muted); border-radius: .45rem;
}
.rw-folder-link {
  display: flex; align-items: center; gap: .5rem; flex: 1; width: 100%; min-width: 0; min-height: 2.25rem;
  padding: .32rem .38rem; text-align: start; font-size: .875rem; font-weight: 555;
}
.rw-folder-link span { white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
.rw-folder-link .icon { width: .98rem; height: .98rem; color: var(--subtle); }
.rw-root-folder { padding-inline-start: .56rem; margin-block: 0 .3rem; }
.rw-root-folder .icon { width: 1rem; height: 1rem; }
.rw-folder-link[aria-current] {
  background: var(--accent-bg); box-shadow: inset 2px 0 0 var(--accent); color: var(--accent); font-weight: 650;
}
.rw-folder-link[aria-current] .icon { color: inherit; }
.rw-folder-link:hover, .rw-icon-button:hover, .rw-disclosure:hover, .rw-crumb:hover, .rw-folders-toggle:hover {
  background: var(--hover); color: var(--text);
}
.rw-folder-link[aria-current]:hover { background: var(--accent-bg); color: var(--accent); }
.rw-disclosure, .rw-tree-spacer { width: 1.2rem; flex: none; }
.rw-disclosure {
  min-height: 2.25rem; padding: 0; display: grid; place-items: center;
}
.rw-disclosure .icon { width: .8rem; height: .8rem; }
.rw-disclosure[aria-expanded=true] .icon { transform: rotate(90deg); }
.rw-icon-button {
  display: inline-grid; place-items: center; width: 2rem; min-height: 2rem; flex: none; padding: .28rem;
}
.rw-icon-button .icon { width: 1rem; height: 1rem; }

.rw-content { min-width: 0; display: flex; flex-direction: column; border-radius: 0 1rem 1rem 0; }
.rw-scope { padding: 1.08rem 1.13rem .6rem; }
.rw-scope-line, .rw-scope-title, .rw-crumbs, .rw-progress {
  display: flex; align-items: center; gap: .52rem; min-width: 0;
}
.rw-scope-line { justify-content: space-between; flex-wrap: wrap; gap: .4rem 1rem; }
.rw-scope-title h2 { margin: 0; font-size: 1.42rem; line-height: 1.2; overflow-wrap: anywhere; }
.rw-crumbs {
  flex-wrap: wrap; margin: -.1rem 0 .4rem; gap: .15rem .28rem; font-size: .82rem; color: var(--subtle);
  overflow-wrap: anywhere;
}
.rw-crumbs .icon { width: .75rem; height: .75rem; }
.rw-crumb { padding: .23rem .28rem; font-size: inherit; }
.rw-crumbs [aria-current] { color: var(--muted); }
.rw-progress { color: var(--muted); font-size: .82rem; font-variant-numeric: tabular-nums; }
.rw-progress progress {
  display: block; width: clamp(2.5rem, 8cqw, 6.2rem); height: .35rem; border: 0;
  border-radius: 1rem; background: var(--fill); accent-color: var(--accent);
}
.rw-progress progress::-webkit-progress-bar { background: var(--fill); border-radius: 1rem; }
.rw-progress progress::-webkit-progress-value { background: var(--accent); border-radius: 1rem; }
.rw-progress progress::-moz-progress-bar { background: var(--accent); border-radius: 1rem; }
.rw-toolbar {
  display: flex; align-items: center; flex-wrap: wrap; gap: .45rem; padding: .16rem 1.13rem .84rem;
}
.rw-views {
  display: inline-flex; gap: .12rem; padding: .15rem; background: var(--rw-rail);
  border: 1px solid var(--line-subtle); border-radius: .6rem; align-items: center;
}
.rw-views button, .rw-button, .rw-filter-menu summary {
  display: inline-flex; align-items: center; justify-content: center; gap: .38rem;
  color: var(--muted); background: transparent; border: 1px solid transparent; border-radius: .43rem; padding: .35rem .55rem;
  font-size: .875rem; font-weight: 640; min-height: 2rem; white-space: nowrap;
}
.rw-views button[aria-pressed=true] {
  background: var(--elevated); border-color: var(--line-subtle); color: var(--text);
}
.rw-views button:hover, .rw-button:hover, .rw-filter-menu summary:hover { color: var(--text); background: var(--hover); }
.rw-toolbar .icon { width: 1rem; height: 1rem; }
.rw-search {
  display: flex; align-items: center; flex: 1 1 10rem; min-width: 7.6rem; max-width: 16rem; margin-inline-start: auto;
  padding-inline: .64rem; background: var(--input); color: var(--subtle); border: 1px solid var(--line-subtle); border-radius: .56rem;
}
.rw-search input {
  min-width: 0; border: 0; background: transparent; min-height: 2.35rem;
  padding-inline: .42rem 0; font-size: .875rem;
}
.rw-search:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.rw-search input:focus-visible { outline: none; }
.rw-filter-menu { position: relative; flex: none; }
.rw-filter-menu summary {
  list-style: none; min-height: 2.46rem; cursor: pointer; border-color: var(--line-subtle); padding-inline: .6rem;
}
.rw-filter-menu summary::-webkit-details-marker { display: none; }
.rw-filter-menu[open] summary { border-color: var(--accent); color: var(--accent); }
.rw-filter-count {
  border-radius: .35rem; color: var(--accent); background: var(--accent-bg);
  min-width: 1rem; padding: .13rem .21rem; text-align: center; font-size: .72rem;
}
.rw-filter-fields {
  position: absolute; z-index: 3; inset-inline-end: 0; inset-block-start: calc(100% + .38rem);
  width: min(19rem, calc(100vw - 2.5rem)); display: grid; gap: .58rem; padding: .85rem;
  background: var(--elevated); border: 1px solid var(--line); border-radius: .72rem; box-shadow: 0 8px 28px var(--shadow);
}
.rw-filter-fields label { display: grid; grid-template-columns: 4.4rem minmax(0, 1fr); gap: .45rem; align-items: center; font-size: .875rem; }
.rw-filter-fields select { min-height: 2.38rem; font-size: .875rem; }
.rw-reset { justify-self: end; color: var(--accent); }
.rw-results { border-block: 1px solid var(--line-subtle); }
.rw-quick-add { display: flex; align-items: center; gap: .35rem; padding: .28rem .72rem .28rem 1.05rem; border-bottom: 1px solid var(--line-subtle); }
.rw-quick-add label { display: flex; align-items: center; gap: .35rem; flex: 1; min-width: 0; color: var(--muted); }
.rw-quick-add .icon { width: .98rem; height: .98rem; }
.rw-quick-add input { background: transparent; border: 0; min-height: 2.15rem; padding: .3rem .25rem; font-size: .875rem; }
.rw-quick-add input:focus-visible { outline-offset: 0; }
.rw-quick-add .rw-button { min-height: 2.25rem; color: var(--accent); padding-inline: .7rem; }
.rw-caption {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 2.9rem; margin-top: auto; padding: .22rem .75rem .22rem 1.13rem; color: var(--subtle); font-size: .83rem;
}
.rw-placeholder, .rw-problem, .rw-empty { padding: 1.2rem; }
.rw-placeholder, .rw-problem {
  border: 1px solid var(--line-subtle); border-radius: .75rem; background: var(--panel);
}
.rw-problem { margin-bottom: .8rem; }
.rw-placeholder p, .rw-problem p, .rw-empty p { margin: 0; }
.rw-placeholder p:has(+ button), .rw-problem p:has(+ button) { margin-bottom: .5rem; }
.rw-empty {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .55rem;
  min-height: 9.2rem; color: var(--subtle);
}
.rw-empty > .icon { color: var(--accent); }
.rw-empty button { color: var(--accent); }

.rw-table { table-layout: fixed; }
.rw-table thead { background: var(--rw-header); }
.rw-table th, .rw-table td { padding: .6rem .43rem; font-size: .875rem; }
.rw-table th { font-size: .8rem; font-weight: 660; }
.rw-table th:nth-child(1) { width: 29%; }
.rw-table th:nth-child(2) { width: 17%; }
.rw-table th:nth-child(3) { width: 14%; }
.rw-table th:nth-child(4) { width: 14%; }
.rw-table th:nth-child(5) { width: 10%; }
.rw-table th:nth-child(6) { width: 16%; }
.rw-table :is(th,td):first-child { padding-inline-start: 1rem; }
.rw-table :is(th,td):last-child { padding-inline-end: .75rem; }
.rw-table tbody tr:hover { background: color-mix(in srgb, var(--hover) 60%, var(--panel)); }
.rw-task-title {
  display: flex; align-items: start; gap: .42rem; min-width: 0; min-height: 2rem;
  padding: .27rem .05rem; color: var(--text); background: transparent; border: 0;
  font-size: .9rem; font-weight: 675; line-height: 1.42; text-align: start; overflow-wrap: anywhere;
}
.rw-task-title .icon { color: var(--subtle); width: .98rem; height: .98rem; margin-top: .12rem; }
.rw-task-title:hover span { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.rw-muted { color: var(--subtle); font-size: .83rem; overflow-wrap: anywhere; }
.rw-people, .rw-date, .rw-priority, .rw-cell-folder {
  display: inline-flex; align-items: center; gap: .32rem; max-width: 100%; vertical-align: middle;
  min-width: 0; font-size: .83rem; line-height: 1.3; color: var(--muted);
}
.rw-cell-folder > span, .rw-person-label {
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.rw-date .icon, .rw-priority .icon, .rw-cell-folder .icon { width: .9rem; height: .9rem; }
.rw-date.rw-overdue, .rw-priority[data-priority=urgent] { color: var(--rw-danger); font-weight: 675; }
.rw-priority[data-priority=high] { color: var(--rw-blocked); }
.rw-priority[data-priority=low] { color: var(--subtle); }
.rw-avatars { display: inline-flex; flex: none; }
.rw-avatar {
  display: inline-grid; place-items: center; width: 1.5rem; height: 1.5rem;
  border: 1px solid var(--panel); border-radius: 50%; background: var(--accent-bg);
  color: var(--accent); font-size: .64rem; font-weight: 750;
}
.rw-avatar + .rw-avatar { margin-inline-start: -.3rem; }
.rw-avatar[data-color="1"] { background: var(--rw-working-bg); color: var(--rw-working); }
.rw-avatar[data-color="2"] { background: var(--rw-done-bg); color: var(--rw-done); }
.rw-avatar[data-color="3"] { background: var(--rw-blocked-bg); color: var(--rw-blocked); }
.rw-status, .rw-lane { --rw-status-fg: var(--muted); --rw-status-bg: var(--fill); }
.robot-workspace [data-status=in-progress] { --rw-status-fg: var(--rw-working); --rw-status-bg: var(--rw-working-bg); }
.robot-workspace [data-status=blocked] { --rw-status-fg: var(--rw-blocked); --rw-status-bg: var(--rw-blocked-bg); }
.robot-workspace [data-status=done] { --rw-status-fg: var(--rw-done); --rw-status-bg: var(--rw-done-bg); }
.rw-status {
  position: relative; display: inline-flex; align-items: center; gap: .34rem; max-width: 100%;
  padding: .2rem .47rem; border-radius: .43rem; color: var(--rw-status-fg); background: var(--rw-status-bg);
  font-size: .8rem; font-weight: 665; vertical-align: middle;
}
.rw-status:has(select) { padding: 0; }
.rw-status-dot { display: inline-block; width: .38rem; height: .38rem; flex: none; border-radius: 50%; background: var(--rw-status-fg); }
.rw-status:has(select) .rw-status-dot { position: absolute; inset-inline-start: .42rem; pointer-events: none; }
.rw-status-select {
  border: 0; border-radius: inherit; min-height: 1.95rem; background-color: transparent;
  padding: .18rem 1.18rem .18rem 1rem; background-size: .72rem; background-position: right .33rem center;
  color: inherit; cursor: pointer; font-size: inherit; font-weight: inherit;
  text-overflow: ellipsis;
}
.rw-status-select option { color: var(--text); background: var(--panel); }
.rw-mobile-label { display: none; }

.rw-board {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .58rem; padding: .72rem;
  background: var(--rw-rail); min-height: 12rem;
}
.rw-lane {
  min-width: 0; border: 1px solid var(--line-subtle); border-radius: .58rem;
  background: var(--panel); padding: .5rem;
}
.rw-lane h3 {
  display: flex; align-items: center; gap: .4rem; font-size: .875rem;
  margin: 0; padding: .2rem .15rem .54rem; color: var(--rw-status-fg);
}
.rw-lane-count {
  border-radius: .3rem; padding: .075rem .29rem; color: var(--rw-status-fg);
  background: var(--rw-status-bg); margin-inline-start: auto; font-size: .72rem;
}
.rw-lane p { margin: 0; color: var(--subtle); font-size: .82rem; padding: .4rem .15rem; }
.rw-lane ul { display: grid; list-style: none; gap: .42rem; padding: 0; margin: 0; }
.rw-lane li { min-width: 0; padding: .48rem; background: var(--elevated); border: 1px solid var(--line-subtle); border-radius: .5rem; }
.rw-card-line { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .3rem; margin-top: .42rem; }

.rw-dialog-delete { margin-top: .85rem; }
.rw-edit-fields :is(input,select,textarea) { min-width: 0; }
.rw-edit-fields textarea { resize: vertical; }
.rw-assignee-field { border: 0; margin: 0; padding: 0; min-inline-size: 0; }
.rw-assignee-field legend { padding: 0; margin-bottom: .35rem; font-size: .875rem; font-weight: 640; }
.rw-assignee-field legend span, .rw-assignee-options small { color: var(--subtle); font-weight: 450; }
.rw-assignee-options {
  display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .3rem .52rem;
  padding: .35rem; max-height: 10rem; overflow-y: auto; border: 1px solid var(--line-subtle); border-radius: .56rem;
}
.rw-assignee-options label {
  display: flex; align-items: center; gap: .55rem; min-height: 2.55rem;
  padding: .29rem .35rem; cursor: pointer; overflow-wrap: anywhere;
}
.rw-assignee-options label:hover { background: var(--hover); border-radius: .35rem; }
.rw-assignee-options input {
  display: inline-block; width: 1.05rem; min-height: 0; height: 1.05rem;
  flex: none; margin: 0; padding: 0; accent-color: var(--accent-fill);
}
.rw-assignee-options small { display: block; font-size: .78rem; }
.rw-task-notes { white-space: pre-wrap; overflow-wrap: anywhere; }

@container robot-work (max-width: 59rem) {
  .rw-frame { grid-template-columns: 1fr; }
  .rw-folders { border-inline-end: 0; border-bottom: 1px solid var(--line-subtle); border-radius: 1rem 1rem 0 0; padding: .28rem .65rem; }
  .rw-folders-head { margin: 0; padding-inline: .1rem .2rem; }
  .rw-folders-head h2 { display: none; }
  .rw-folders-toggle {
    display: flex; align-items: center; gap: .45rem; padding: .3rem .44rem;
    min-height: 2.75rem; font-size: .875rem; font-weight: 640;
  }
  .rw-folders-toggle .icon:last-child { width: .87rem; height: .87rem; }
  .rw-folders-toggle[aria-expanded=true] .icon:last-child { transform: rotate(90deg); }
  .rw-folder-body { display: none; padding: .15rem .23rem .38rem; }
  .rw-folders[data-open=true] .rw-folder-body { display: block; }
  .rw-folder-link, .rw-disclosure, .rw-folders-head .rw-icon-button { min-height: 2.75rem; }
  .rw-folders-head .rw-icon-button { width: 2.75rem; }
  .rw-content { border-radius: 0 0 1rem 1rem; }
}
@container robot-work (max-width: 42rem) {
  .rw-scope, .rw-toolbar { padding-inline: .74rem; }
  .rw-table, .rw-table > tbody, .rw-table td { display: block; }
  .rw-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .rw-table tbody tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .64rem .58rem; padding: .7rem .8rem; border: 0; }
  .rw-table tbody tr + tr { border-top: 1px solid var(--line-subtle); }
  .rw-table :is(td,td:first-child,td:last-child) { border: 0; padding: 0; min-width: 0; overflow-wrap: anywhere; }
  .rw-table td:first-child { grid-column: 1/-1; }
  .rw-table td:first-child .rw-mobile-label { display: none; }
  .rw-mobile-label { display: block; color: var(--subtle); font-size: .76rem; margin-bottom: .18rem; }
  .rw-status-select { min-height: 2.5rem; }
  .rw-board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rw-filter-menu summary, .rw-search input { min-height: 2.65rem; }
}
@container robot-work (max-width: 30rem) {
  .rw-heading { align-items: stretch; gap: .85rem; margin-bottom: .9rem; }
  .rw-heading-main { gap: .63rem; }
  .rw-heading-icon { width: 2.6rem; border-radius: .65rem; }
  .rw-heading-icon .icon { width: 1.24rem; height: 1.24rem; }
  .rw-heading-tools { width: 100%; }
  .rw-robot-picker { flex: 1; max-width: none; }
  .rw-toolbar { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
  .rw-views { grid-column: 1 / -1; justify-self: start; }
  .rw-views button { min-height: 2.25rem; }
  .rw-search { margin: 0; min-width: 0; max-width: none; }
  .rw-board { grid-template-columns: minmax(0, 1fr); }
  .rw-lane { padding: .65rem; }
  .rw-caption { padding-inline: .78rem .45rem; }
}
@media (max-width: 360px) {
  .rw-heading-tools { flex-wrap: wrap; }
  .rw-robot-picker { flex-basis: 100%; }
  .rw-assignee-options { grid-template-columns: 1fr; }
}

