/* Shared surfaces for the regular work board and its read-only view. */
:root {
 --rb-row-height: 36px;
 --rb-font-size: 14px;
 --rb-line-height: 24px;
 --rb-title-size: 24px;
 --rb-title-line: 32px;
 --rb-space-1: 4px;
 --rb-space-2: 8px;
 --rb-space-3: 12px;
 --rb-space-4: 16px;
 --rb-space-6: 24px;
 --rb-space-8: 32px;
 --rb-border: 1px;
 --rb-group-bar: 4px;
 --rb-icon-width: 32px;
 --rb-icon-size: 16px;
 --rb-person-size: 24px;
 --rb-name-width: var(--rb-frozen-name-max);
 --rb-class-width: 80px;
 --rb-status-width: 80px;
 --rb-people-width: 96px;
 --rb-date-width: 96px;
 --rb-number-width: 100px;
 --rb-text-width: 200px;
 --rb-font-small: 12px;
 --rb-font-micro: 10px;
 --rb-font-group: 16px;
 --rb-weight-regular: 400;
 --rb-weight-medium: 500;
 --rb-weight-semibold: 600;
 --rb-radius-full: 999px;
 --rb-inner-height: calc(var(--rb-row-height) - var(--rb-border));
 --rb-radius-sm: 4px;
 --rb-radius-md: 8px;
 --rb-height-max: 640px;
 --rb-touch-row-height: 44px;
 --rb-frozen-name-min: 180px;
 --rb-frozen-name-max: 400px;
 --rb-status-green: #00C875;
 --rb-status-orange: #FDAB3D;
 --rb-status-red: #E2445C;
 --rb-status-blue: #0086C0;
 --rb-status-purple: #A25DDC;
 --rb-status-sky: #579BFC;
 --rb-status-gray: #808080;
 --rb-status-lightgray: #C4C4C4;
 --rb-status-yellow: #FFCB00;
 --rb-status-forest: #037F4C;
 --rb-status-lime: #9CD326;
 --rb-status-mustard: #CAB641;
 --rb-status-violet: #784BD1;
 --rb-status-cyan: #66CCFF;
 --rb-status-pink: #FF5AC4;
 --rb-status-rose: #FAA1F1;
 --rb-status-charcoal: #333333;
 --rb-status-navy: #225091;
 --rb-status-indigo: #401694;
 --rb-status-coral: #FF642E;
 --rb-status-wine: #BB3354;
 --rb-status-brown: #7F5347;
 --rb-status-source-blue: #007EB5;
 --rb-status-source-teal: #175A63;
 --rb-status-source-aqua: #4ECCC6;
 --rb-status-source-purple: #9D50DD;
 --rb-status-source-mist: #A9BEE8;
 --rb-status-source-sand: #BCA58A;
 --rb-status-source-lavender: #BDA8F9;
 --rb-status-source-clay: #CD9282;
 --rb-status-source-red: #DF2F4A;
 --rb-status-source-magenta: #FF007F;
 --rb-status-source-salmon: #FF7575;
 --rb-status-ink: var(--strong);
}
.regular-board-screen .board-head { padding: var(--rb-space-6) 0 var(--rb-space-4); }
.regular-board-screen #board-title { font-size: var(--rb-title-size); line-height: var(--rb-title-line); font-weight: var(--rb-weight-medium); letter-spacing: normal; }
.regular-board-screen #board-description { font-size: var(--rb-font-size); line-height: var(--rb-line-height); }
.regular-board-screen .work-create-button { margin-bottom: var(--rb-space-4); }
.regular-board-screen #toolbar { padding: var(--rb-space-4) 0; }
.rb-board { min-width: 0; container-type: inline-size; font-size: var(--rb-font-size); line-height: var(--rb-line-height); }
.rb-source-hint { color: var(--slate-600); margin-bottom: var(--rb-space-4); font-size: var(--rb-font-small); }
.rb-source-hint summary { cursor: pointer; }
.rb-source-hint p { margin: var(--rb-space-2) 0; max-width: 75ch; }
.rb-group-nav { display: flex; flex-wrap: wrap; gap: var(--rb-space-2); margin-bottom: var(--rb-space-4); }
.rb-group-shortcut { display: inline-flex; align-items: center; gap: var(--rb-space-2); max-width: 100%; min-height: var(--rb-row-height); padding-inline: var(--rb-space-3); border: var(--rb-border) solid var(--slate-200); border-radius: var(--rb-radius-sm); background: var(--white); color: var(--navy); text-decoration: none; }
.rb-group-shortcut::before { content: ''; flex: 0 0 auto; width: var(--rb-space-2); height: var(--rb-space-2); border: var(--rb-border) solid var(--rb-group-color); border-radius: var(--rb-radius-full); background: var(--rb-group-color); }
.rb-group-shortcut-collapsed::before { background: transparent; }
.rb-group-shortcut:focus-visible, .rb-group-toggle:focus-visible { outline: var(--rb-border) solid var(--navy); outline-offset: calc(-1 * var(--rb-border)); }
.rb-group-shortcut:hover, .rb-group-shortcut:focus-visible, .rb-group-toggle:hover, .rb-group-toggle:focus-visible { background: var(--info-bg); }
.rb-group-shortcut-label { min-width: 0; overflow-wrap: anywhere; }
.rb-group-shortcut-count { color: var(--slate-600); font-size: var(--rb-font-small); white-space: nowrap; }
.rb-scroll { --rb-name-width: clamp(var(--rb-frozen-name-min), 60cqw, var(--rb-frozen-name-max)); overflow: auto; max-width: 100%; max-height: min(var(--rb-height-max), 72dvh); padding-bottom: var(--rb-space-2); }
.rb-group { width: max-content; min-width: 100%; margin-bottom: var(--rb-space-4); }
.rb-group:last-child { margin-bottom: 0; }
.rb-group-todo { --rb-group-color: var(--rb-status-cyan); }
.rb-group-doing { --rb-group-color: var(--rb-status-orange); }
.rb-group-predone { --rb-group-color: var(--rb-status-lime); }
.rb-group-done { --rb-group-color: var(--rb-status-green); }
.rb-group-neutral { --rb-group-color: var(--slate-600); }
.rb-group-head { position: sticky; left: 0; width: min(100cqw, 100%); margin: 0; }
.rb-group-toggle { display: flex; align-items: center; gap: var(--rb-space-2); width: 100%; min-height: var(--rb-row-height); padding: var(--rb-space-1) var(--rb-space-3); border: var(--rb-border) solid var(--slate-200); border-left: var(--rb-group-bar) solid var(--rb-group-color); border-start-start-radius: var(--rb-radius-sm); border-start-end-radius: var(--rb-radius-sm); background: var(--slate-100); color: var(--navy); font: inherit; line-height: var(--rb-line-height); text-align: left; }
.rb-group-toggle[aria-expanded="false"] { border-radius: var(--rb-radius-sm); }
.rb-group-title { min-width: 0; font-size: var(--rb-font-group); font-weight: var(--rb-weight-semibold); overflow-wrap: anywhere; }
.rb-group-count { color: var(--slate-600); font-size: var(--rb-font-small); white-space: nowrap; }
.rb-chevron { flex: 0 0 auto; width: var(--rb-space-2); height: var(--rb-space-2); border-right: var(--rb-border) solid currentColor; border-bottom: var(--rb-border) solid currentColor; transform: rotate(45deg); margin-right: var(--rb-space-1); }
.rb-group-toggle[aria-expanded="false"] .rb-chevron { transform: rotate(-45deg); }
.rb-group-note { position: sticky; left: 0; width: fit-content; margin: var(--rb-space-1) 0 0 var(--rb-space-2); font-size: var(--rb-font-small); color: var(--slate-600); }
.rb-grid-wrap { box-sizing: border-box; border-left: var(--rb-group-bar) solid var(--rb-group-color); width: max-content; min-width: 100%; }
.rb-grid-wrap[hidden] { display: none; }
.rb-grid { table-layout: fixed; width: max-content; border-collapse: separate; border-spacing: 0; white-space: nowrap; }
.rb-grid th, .rb-grid td { box-sizing: border-box; height: var(--rb-row-height); min-height: var(--rb-row-height); max-height: var(--rb-row-height); padding: 0; border: 0; border-right: var(--rb-border) solid var(--slate-200); border-bottom: var(--rb-border) solid var(--slate-200); background: var(--white); color: var(--slate-800); font-family: var(--font-ui); font-size: var(--rb-font-size); line-height: var(--rb-line-height); font-weight: var(--rb-weight-regular); vertical-align: middle; overflow: hidden; }
.rb-grid th { text-align: center; position: sticky; top: 0; z-index: 3; background: var(--navy); color: var(--white); font-weight: var(--rb-weight-semibold); }
.rb-grid th.rb-name-cell { padding-inline: var(--rb-space-2); text-align: left; }
.rb-grid tbody tr, .rb-grid tbody tr:nth-child(even), .rb-grid tbody tr:hover { background: var(--white); cursor: default; }
.rb-grid tbody tr:last-child td { border-bottom: var(--rb-border) solid var(--slate-200); }
.rb-grid .rb-marker-cell { position: sticky; left: 0; z-index: 2; width: var(--rb-icon-width); min-width: var(--rb-icon-width); text-align: center; }
.rb-grid th.rb-marker-cell { z-index: 5; }
.rb-grid .rb-name-cell { position: sticky; left: var(--rb-icon-width); z-index: 2; }
.rb-grid th.rb-name-cell { z-index: 4; }
.rb-grid .rb-w-icon { width: var(--rb-icon-width); min-width: var(--rb-icon-width); max-width: var(--rb-icon-width); }
.rb-grid .rb-w-name { width: var(--rb-name-width); min-width: var(--rb-name-width); max-width: var(--rb-name-width); }
.rb-grid .rb-w-classification { width: var(--rb-class-width); min-width: var(--rb-class-width); max-width: var(--rb-class-width); }
.rb-grid .rb-w-status { width: var(--rb-status-width); min-width: var(--rb-status-width); max-width: var(--rb-status-width); }
.rb-grid .rb-w-people { width: var(--rb-people-width); min-width: var(--rb-people-width); max-width: var(--rb-people-width); }
.rb-grid .rb-w-date { width: var(--rb-date-width); min-width: var(--rb-date-width); max-width: var(--rb-date-width); }
.rb-grid .rb-w-number { width: var(--rb-number-width); min-width: var(--rb-number-width); max-width: var(--rb-number-width); }
.rb-grid .rb-w-text { width: var(--rb-text-width); min-width: var(--rb-text-width); max-width: var(--rb-text-width); }
.rb-name-content { display: flex; align-items: center; gap: var(--rb-space-2); padding: 0 var(--rb-space-3); height: var(--rb-inner-height); overflow: hidden; }
.rb-item-title { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: inherit; color: var(--strong); border: 0; padding: 0; background: transparent; text-align: left; }
button.rb-item-title:hover { text-decoration: underline; color: var(--navy); }
.rb-native-badge { flex: 0 0 auto; font-size: var(--rb-font-micro); line-height: var(--rb-line-height); color: var(--slate-600); }
.rb-case-link { flex: 0 0 auto; margin-left: auto; }
.rb-case-link .field-help { display: none; }
.rb-case-link button { font-size: var(--rb-font-micro); padding: 0; min-height: 0; border: 0; white-space: nowrap; }
.rb-thread-button { display: flex; flex: 0 0 auto; align-items: center; justify-content: center; width: var(--rb-icon-width); height: var(--rb-inner-height); border: 0; padding: 0; background: transparent; color: var(--slate-600); }
.rb-selection-marker { width: var(--rb-icon-size); height: var(--rb-icon-size); margin: 0; padding: 0; vertical-align: middle; cursor: default; }
.rb-thread-icon { position: relative; display: block; flex: 0 0 auto; width: var(--rb-icon-size); height: var(--rb-space-3); border: var(--rb-border) solid currentColor; border-radius: var(--rb-radius-sm); }
.rb-thread-icon::after { content: ''; position: absolute; inset: auto auto 0 var(--rb-space-1); width: var(--rb-space-1); height: var(--rb-space-1); border-right: var(--rb-border) solid currentColor; border-bottom: var(--rb-border) solid currentColor; background: inherit; transform: translateY(50%) rotate(45deg); }
.rb-cell-value { display: block; box-sizing: border-box; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 var(--rb-space-2); min-height: var(--rb-inner-height); line-height: var(--rb-inner-height); text-align: center; }
.rb-cell-value:focus-visible { outline: var(--rb-border) solid var(--navy); outline-offset: calc(-1 * var(--rb-border)); }
.rb-people-value { display: flex; align-items: center; justify-content: center; gap: var(--rb-space-1); }
.rb-person { display: inline-flex; align-items: center; gap: var(--rb-space-1); min-width: 0; }
.rb-person-initial { display: inline-flex; justify-content: center; align-items: center; flex: 0 0 auto; width: var(--rb-person-size); height: var(--rb-person-size); border-radius: var(--rb-radius-full); background: var(--info-bg); color: var(--navy); font-size: var(--rb-font-small); line-height: var(--rb-line-height); }
.rb-person-name { overflow: hidden; text-overflow: ellipsis; }
.rb-grid .rb-status-cell { background: var(--rb-cell-color); color: var(--rb-status-ink); }
.rb-color-green { --rb-cell-color: var(--rb-status-green); }
.rb-color-orange { --rb-cell-color: var(--rb-status-orange); }
.rb-color-red { --rb-cell-color: var(--rb-status-red); }
.rb-color-blue { --rb-cell-color: var(--rb-status-blue); }
.rb-color-purple { --rb-cell-color: var(--rb-status-purple); }
.rb-color-sky { --rb-cell-color: var(--rb-status-sky); }
.rb-color-gray { --rb-cell-color: var(--rb-status-gray); }
.rb-color-lightgray { --rb-cell-color: var(--rb-status-lightgray); }
.rb-color-yellow { --rb-cell-color: var(--rb-status-yellow); }
.rb-color-forest { --rb-cell-color: var(--rb-status-forest); }
.rb-color-lime { --rb-cell-color: var(--rb-status-lime); }
.rb-color-mustard { --rb-cell-color: var(--rb-status-mustard); }
.rb-color-violet { --rb-cell-color: var(--rb-status-violet); }
.rb-color-cyan { --rb-cell-color: var(--rb-status-cyan); }
.rb-color-pink { --rb-cell-color: var(--rb-status-pink); }
.rb-color-rose { --rb-cell-color: var(--rb-status-rose); }
.rb-color-charcoal { --rb-cell-color: var(--rb-status-charcoal); }
.rb-color-navy { --rb-cell-color: var(--rb-status-navy); }
.rb-color-indigo { --rb-cell-color: var(--rb-status-indigo); }
.rb-color-coral { --rb-cell-color: var(--rb-status-coral); }
.rb-color-wine { --rb-cell-color: var(--rb-status-wine); }
.rb-color-brown { --rb-cell-color: var(--rb-status-brown); }
.rb-grid .rb-color-blue, .rb-grid .rb-color-forest, .rb-grid .rb-color-violet, .rb-grid .rb-color-charcoal, .rb-grid .rb-color-navy, .rb-grid .rb-color-indigo, .rb-grid .rb-color-wine, .rb-grid .rb-color-brown { color: var(--white); }
.rb-empty-row td { padding: 0 var(--rb-space-4); font-size: var(--rb-font-small); color: var(--slate-600); }
.rb-subitems { margin-left: var(--rb-space-8); }
.rb-fallback-warning { color: var(--red); margin-bottom: var(--rb-space-4); font-size: var(--rb-font-size); }

.rb-color-source-blue { --rb-cell-color: var(--rb-status-source-blue); }
.rb-color-source-teal { --rb-cell-color: var(--rb-status-source-teal); }
.rb-color-source-aqua { --rb-cell-color: var(--rb-status-source-aqua); }
.rb-color-source-purple { --rb-cell-color: var(--rb-status-source-purple); }
.rb-color-source-mist { --rb-cell-color: var(--rb-status-source-mist); }
.rb-color-source-sand { --rb-cell-color: var(--rb-status-source-sand); }
.rb-color-source-lavender { --rb-cell-color: var(--rb-status-source-lavender); }
.rb-color-source-clay { --rb-cell-color: var(--rb-status-source-clay); }
.rb-color-source-red { --rb-cell-color: var(--rb-status-source-red); }
.rb-color-source-magenta { --rb-cell-color: var(--rb-status-source-magenta); }
.rb-color-source-salmon { --rb-cell-color: var(--rb-status-source-salmon); }
.rb-grid .rb-color-source-blue, .rb-grid .rb-color-source-teal, .rb-grid .rb-color-source-purple, .rb-grid .rb-color-source-red { color: var(--white); }
.rb-subitem-toggle { flex: 0 0 auto; border: 0; padding: 0; width: var(--rb-icon-size); background: transparent; font: inherit; color: var(--slate-600); }
.rb-subitems-row > td { height: auto; max-height: none; overflow: visible; border-bottom: 0; }
.rb-subitems-row:has(.rb-grid-wrap[hidden]) { display: none; }
.rb-collaboration > summary { display: flex; align-items: center; gap: var(--rb-space-2); padding: var(--rb-space-3) var(--rb-space-2); color: var(--navy); font-weight: var(--rb-weight-semibold); cursor: pointer; list-style: none; }
.rb-collaboration > summary::-webkit-details-marker { display: none; }
.rb-collaboration > summary::before { content: '›'; display: inline-block; transform: rotate(0); }
.rb-collaboration[open] > summary::before { transform: rotate(90deg); }
.rb-collaboration .rb-nav-item { padding-left: var(--rb-space-6); gap: var(--rb-space-2); align-items: flex-start; }
.rb-nav-label { min-width: 0; white-space: normal; overflow-wrap: anywhere; }
.rb-board-icon, .rb-guide-icon, .rb-folder-icon { display: inline-block; flex: 0 0 auto; width: var(--rb-icon-size); height: var(--rb-icon-size); border: var(--rb-border) solid currentColor; margin-top: var(--rb-space-1); color: var(--slate-600); }
.rb-board-icon { background: linear-gradient(to right,transparent 45%,currentColor 45%,currentColor 52%,transparent 52%),linear-gradient(to bottom,transparent 45%,currentColor 45%,currentColor 52%,transparent 52%); }
.rb-guide-icon { background: repeating-linear-gradient(to bottom,transparent 0,transparent 24%,currentColor 24%,currentColor 30%); }
.rb-folder-icon { height: var(--rb-space-2); position: relative; }
.rb-folder-icon::before { content: ''; position: absolute; bottom: 100%; left: calc(-1 * var(--rb-border)); width: var(--rb-space-2); height: var(--rb-space-1); border: var(--rb-border) solid currentColor; border-bottom: 0; }
.rb-guide { display: grid; gap: var(--rb-space-6); max-width: 80ch; }
.rb-guide-section p { margin: var(--rb-space-2) 0 0; line-height: var(--rb-line-height); }

@media (pointer: coarse) {
 .rb-board { --rb-row-height: var(--rb-touch-row-height); }
}
