Files
RuneStone/src/lib/features/pm/ui/style.css
T
2026-11-16 04:21:21 -07:00

1831 lines
47 KiB
CSS

.rs-pm {
--pm-bg: var(--rs-bg, #141414);
--pm-panel: var(--rs-bg-elevated, #1c1c1c);
--pm-hover: var(--rs-bg-active, #2a2a2a);
--pm-line: var(--rs-border, #2e2e2e);
--pm-text: var(--rs-text, #e6e6e6);
--pm-muted: var(--rs-text-dim, #9a9a9a);
--pm-accent: var(--rs-accent, #82aaff);
--pm-radius: var(--rs-control-radius, 5px);
--pm-draft-bg: #ffcc00;
--pm-draft-text: #141414;
--pm-surface-opacity: var(--rs-workarea-surface-opacity, 100%);
--pm-panel-surface: color-mix(in srgb, var(--pm-panel) var(--pm-surface-opacity), transparent);
--pm-field-surface: color-mix(in srgb, var(--pm-bg) var(--pm-surface-opacity), transparent);
--pm-selection-bg: var(
--rs-item-selection-bg,
color-mix(in srgb, var(--pm-accent) 20%, transparent)
);
--pm-selection-border: var(--rs-item-selection-border, var(--pm-accent));
--pm-selection-width: var(--rs-item-selection-width, 2px);
--pm-selection-radius: var(--rs-item-selection-radius, var(--pm-radius));
min-height: 100%;
display: flex;
flex-direction: column;
min-width: 0;
background: var(--rs-workarea-plugin-bg, var(--pm-bg));
background-image: none;
background-size: cover;
background-position: center;
color: var(--pm-text);
font: 13px/1.4 var(--rs-font-ui, system-ui, sans-serif);
color-scheme: dark;
}
.rs-pm ::selection {
background: var(--rs-selection, #264f78);
color: var(--rs-selection-text, var(--pm-text));
}
[data-theme="light"] .rs-pm {
color-scheme: light;
}
.rs-pm * {
box-sizing: border-box;
}
.rs-pm [hidden] {
display: none !important;
}
.rs-pm h2 {
font-size: 13px;
font-weight: 600;
margin: 0;
}
.rs-pm p {
margin: 8px 0;
}
.rs-pm button,
.rs-pm input,
.rs-pm select,
.rs-pm textarea {
font: inherit;
color: inherit;
}
.rs-pm button {
cursor: pointer;
}
.rs-pm button:disabled {
opacity: 0.45;
cursor: default;
}
.rs-pm button:not(.rs-picker-row):not([role^="menuitem"]):focus-visible,
.rs-pm input:not(:where(.rs-find-bar input)):focus-visible,
.rs-pm select:focus-visible,
.rs-pm textarea:focus-visible {
outline: 1px solid var(--pm-accent);
outline-offset: 1px;
}
.pm-button, .rs-pm:not(.pm-shared-menus) .rs-picker-row {
display: inline-flex;
gap: 6px;
align-items: center;
justify-content: center;
min-height: 30px;
padding: 4px 10px;
border: 1px solid var(--pm-line);
border-radius: var(--pm-radius);
background: var(--pm-panel);
white-space: nowrap;
}
.pm-button:hover {
background: var(--pm-hover);
}
.pm-primary {
background: var(--pm-accent);
color: var(--pm-bg) !important;
border-color: var(--pm-accent);
}
.pm-primary:hover {
background: color-mix(in srgb, var(--pm-accent) 85%, var(--pm-bg));
}
.pm-icon {
display: inline-flex;
}
.pm-icon:not(.rs-picker-icon), .rs-pm:not(.pm-shared-menus) .pm-icon {
width: 16px;
height: 16px;
flex-shrink: 0;
}
.pm-icon svg {
fill: none;
stroke: currentColor;
stroke-width: 1.7;
stroke-linecap: round;
stroke-linejoin: round;
width: 100%;
height: 100%;
}
.pm-icon-button {
position: relative;
padding: 5px;
min-width: 30px;
min-height: 30px;
background: transparent;
border-color: transparent;
color: var(--pm-muted) !important;
}
.pm-icon-button:hover,
.pm-icon-button:focus-visible {
color: var(--pm-text) !important;
}
.pm-toolbar {
position: sticky;
top: 0;
z-index: 5;
flex-shrink: 0;
background: var(--pm-bg);
display: flex;
gap: 12px;
align-items: center;
min-height: 44px;
padding: 6px 12px;
border-bottom: 1px solid var(--pm-line);
}
.pm-tabs {
display: flex;
gap: 2px;
}
.pm-tabs .pm-button {
background: transparent;
border-color: transparent;
color: var(--pm-muted);
}
.pm-title-area {
text-align: center;
flex: 1;
min-width: 0;
}
.pm-board-rename {
position: relative;
max-width: 100%;
background: transparent;
border-color: transparent;
}
.pm-board-rename > .pm-icon {
color: var(--pm-muted);
opacity: 0;
visibility: hidden;
transition: opacity 120ms ease;
}
.pm-board-rename > .pm-icon > svg {
width: 13px;
height: 13px;
}
.pm-board-rename:hover > .pm-icon,
.pm-board-rename:focus-visible > .pm-icon {
opacity: 0.72;
visibility: visible;
}
.pm-board-rename:focus-visible {
background: var(--pm-hover);
}
.pm-view-title {
display: block;
min-width: 0;
font-size: 12px;
color: var(--pm-muted);
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
.pm-toolbar-actions {
display: flex;
gap: 2px;
}
.pm-search-row {
padding: 10px 16px 0;
}
.pm-search-row input {
width: min(340px, 100%);
}
/* The find bar exclusion adds no specificity, so the rules of each control can replace these defaults. */
.rs-pm input:not(:where(.rs-find-bar input)),
.rs-pm select,
.rs-pm textarea {
background: var(--pm-field-surface);
border: 1px solid var(--pm-line);
border-radius: var(--pm-radius);
padding: 6px 8px;
min-height: 30px;
}
.rs-pm input[type="checkbox"]:not(:where(.rs-find-bar input)) {
min-height: 0;
width: 16px;
height: 16px;
accent-color: var(--pm-accent);
}
.pm-muted {
color: var(--pm-muted);
font-size: 12px;
}
.pm-error {
color: var(--rs-error, #f44747);
}
.pm-notice {
margin: 10px 16px;
}
.pm-sr-only {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
overflow: hidden;
clip-path: inset(50%);
white-space: nowrap;
}
.pm-board {
position: relative;
flex: 1;
display: flex;
align-items: flex-start;
gap: 12px;
padding: 18px 16px;
overflow-x: auto;
min-height: 235px;
}
.pm-column {
flex: 0 0 280px;
border: 1px solid var(--pm-line);
border-radius: var(--pm-radius);
background: var(--pm-panel);
overflow: visible;
}
.pm-column-heading {
display: flex;
gap: 2px;
align-items: center;
min-height: 39px;
padding: 3px 6px;
border-bottom: 1px solid var(--pm-line);
}
.pm-column-heading h2 {
flex: 1;
min-width: 0;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
.pm-column-heading .pm-icon-button {
min-width: 23px;
min-height: 28px;
padding: 3px;
}
.pm-column-collapsed {
flex-basis: 48px;
min-height: 150px;
}
.pm-column-collapsed .pm-column-heading {
flex-direction: column;
padding: 6px 4px;
border-bottom: 0;
}
.pm-column-collapsed .pm-column-heading h2 {
writing-mode: vertical-rl;
flex: none;
max-height: 240px;
margin: 6px 0;
}
.pm-column-collapsed .pm-list-actions {
display: none;
}
.pm-list-grip {
cursor: grab !important;
opacity: 0.6;
}
.pm-list-grip:active {
cursor: grabbing !important;
}
.rs-pm .pm-icon-button.pm-list-limit-reached {
color: var(--rs-error, #f44747) !important;
outline: 1px solid currentColor;
outline-offset: -3px;
}
.pm-count {
color: var(--pm-muted);
padding: 0 5px;
font-variant-numeric: tabular-nums;
}
.pm-column-board {
padding: 4px 10px;
color: var(--pm-text);
font-size: 12px;
overflow-wrap: anywhere;
}
.pm-card-stack {
padding: 8px 8px 0;
min-height: 77px;
}
.pm-add-card {
display: flex;
width: calc(100% - 16px);
margin: 8px;
color: var(--pm-muted) !important;
font-size: 12px !important;
background: transparent;
}
.pm-card-composer {
margin: 8px;
}
.pm-card-stack:empty:has(+ .pm-card-composer) {
display: none;
}
.rs-pm .pm-card-composer textarea {
display: block;
width: 100%;
min-height: 76px;
resize: vertical;
border-radius: var(--rs-control-radius, var(--pm-radius));
}
.pm-composer-actions {
display: flex;
align-items: center;
gap: 6px;
margin-top: 8px;
}
.pm-drop-target {
outline: var(--rs-item-selection-width, 2px) solid
var(--rs-item-selection-border, var(--pm-accent));
outline-offset: -1px;
border-radius: var(--rs-item-selection-radius, var(--pm-radius));
background: var(
--rs-item-selection-bg,
color-mix(in srgb, var(--pm-accent) 15%, var(--pm-panel))
);
}
.pm-list-insertion {
position: absolute;
top: 18px;
width: 3px;
border-radius: var(--pm-radius);
background: var(--rs-item-selection-border, var(--pm-accent));
pointer-events: none;
}
.pm-card-insertion {
position: absolute;
height: 3px;
border-radius: var(--pm-radius);
background: var(--rs-item-selection-border, var(--pm-accent));
pointer-events: none;
}
.pm-drag-source {
opacity: 0.4;
}
.pm-drag-preview {
position: fixed;
z-index: 1100;
max-width: calc(100vw - 24px);
border: 1px solid var(--pm-accent);
border-radius: var(--pm-radius);
background: var(--pm-panel);
box-shadow: 0 8px 28px #0006;
opacity: 0.92;
pointer-events: none;
user-select: none;
overflow: hidden;
}
.pm-drag-preview-label {
padding: 5px 10px;
border-bottom: 1px solid var(--pm-line);
color: var(--pm-accent);
font-size: 12px;
}
.pm-drag-preview-content {
max-height: min(260px, 35vh);
overflow: hidden;
}
.pm-drag-preview-content > :is(.pm-column, .pm-card) {
width: 100%;
margin: 0;
border: 0;
}
.pm-drag-preview > canvas {
position: absolute;
width: 1px;
height: 1px;
}
.pm-card {
cursor: pointer;
padding: 8px 9px;
margin: 0 0 7px;
border: 1px solid var(--pm-line);
border-radius: var(--pm-radius);
background: var(--pm-bg);
}
.pm-colored-card,
.pm-color-sample {
background: color-mix(in srgb, var(--pm-card-color) 14%, var(--pm-bg));
border-top: 4px solid var(--pm-card-color);
}
.pm-color-sample {
padding: 10px;
border-radius: var(--pm-radius);
color: var(--pm-text);
}
.pm-assignee {
border: 1px solid var(--pm-line);
border-radius: var(--pm-radius);
padding: 1px 5px;
}
.pm-card-line {
display: flex;
gap: 5px;
align-items: flex-start;
}
.pm-card-title {
flex: 1;
padding: 3px 0;
border: 0;
background: transparent;
text-align: left;
overflow-wrap: anywhere;
font-weight: 400;
}
.pm-complete {
color: var(--pm-muted) !important;
text-decoration: line-through;
}
.pm-card-menu {
margin: -3px -5px -3px 0;
min-width: 26px;
min-height: 26px;
opacity: 0;
}
.pm-card:hover .pm-card-menu,
.pm-card:focus-within .pm-card-menu {
opacity: 1;
}
.pm-badges {
display: flex;
gap: 5px;
flex-wrap: wrap;
margin-top: 5px;
align-items: center;
font-size: 11px;
color: var(--pm-muted);
}
.pm-tag {
padding: 1px 5px;
border-radius: 3px;
background: var(--pm-hover);
}
.pm-due {
padding: 1px 0;
margin-left: auto;
}
.pm-overdue {
color: var(--rs-warn, #cca700);
}
.pm-popup {
position: fixed;
inset: auto;
margin: 0;
color: inherit;
z-index: 100;
width: 280px;
max-width: calc(100vw - 16px);
max-height: calc(100vh - 16px);
overflow: auto;
padding: 12px;
border: 0;
border-radius: var(--pm-radius);
background: var(--pm-panel);
box-shadow: 0 8px 24px #0004;
}
.pm-popup form > input {
width: 100%;
}
.pm-popup form > input + .pm-field {
margin-top: 12px;
}
.pm-popup-actions {
display: flex;
gap: 7px;
margin-top: 14px;
}
.pm-popup .pm-error:empty {
display: none;
}
.pm-toggle-row {
display: flex;
justify-content: space-between;
align-items: center;
gap: 16px;
margin-top: 16px;
padding-bottom: 12px;
border-bottom: 1px solid var(--pm-line);
}
.pm-toggle-row input[role="switch"] {
appearance: none;
flex-shrink: 0;
width: 30px;
height: 18px;
padding: 0;
border-radius: 12px;
background: var(--pm-hover);
position: relative;
cursor: pointer;
}
.pm-toggle-row input[role="switch"]::before {
content: "";
position: absolute;
width: 12px;
height: 12px;
top: 2px;
left: 2px;
border-radius: 50%;
background: var(--pm-text);
}
.pm-toggle-row input[role="switch"]:checked {
background: var(--pm-accent);
}
.pm-toggle-row input[role="switch"]:checked::before {
left: 14px;
background: var(--pm-bg);
}
.pm-menu {
width: 235px;
padding: 5px;
}
.pm-menu > .pm-button {
display: flex;
justify-content: flex-start;
width: 100%;
border: 0;
background: transparent;
}
.pm-menu > .pm-button:hover {
background: var(--pm-hover);
}
.pm-menu .pm-field,
.pm-menu > p {
margin: 8px 5px;
}
.pm-field {
display: flex;
flex-direction: column;
gap: 5px;
color: var(--pm-muted);
font-size: 12px;
}
.pm-field input,
.pm-field select,
.pm-field textarea {
color: var(--pm-text);
}
.pm-tag-chips {
display: flex;
flex-wrap: wrap;
gap: 6px;
margin-bottom: 8px;
}
.pm-tag-chip {
display: inline-flex;
align-items: center;
gap: 5px;
max-width: 100%;
padding: 2px 4px 2px 8px;
border: 1px solid var(--pm-line);
border-radius: var(--pm-radius);
background: var(--pm-hover);
}
.pm-tag-chip > span {
overflow-wrap: anywhere;
min-width: 0;
}
.pm-tag-chip button {
flex-shrink: 0;
min-width: 26px;
min-height: 26px;
padding: 0;
border: 0;
background: transparent;
}
.rs-pm:not(.pm-shared-menus) .pm-tag-suggestions {
max-height: 180px;
overflow-y: auto;
border: 1px solid var(--pm-line);
border-radius: var(--pm-radius);
margin-top: 4px;
}
.rs-pm:not(.pm-shared-menus) .pm-tag-suggestions [role="option"] {
padding: 7px 9px;
cursor: pointer;
overflow-wrap: anywhere;
}
.rs-pm:not(.pm-shared-menus) .pm-tag-suggestions [role="option"]:is(:hover,
[aria-selected="true"]) {
background: var(--pm-hover);
}
.pm-tag-editor > p {
margin: 6px 0 0;
font-size: 11px;
}
.pm-label-picker {
min-width: 0;
}
.pm-label-chips {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 6px;
}
.pm-label-add {
flex: 0 0 auto;
}
.pm-label-add.pm-label-add-compact {
width: 30px;
padding: 5px;
}
.pm-label-badge {
--pm-label-color: var(--pm-muted);
display: inline-flex;
align-items: center;
gap: 6px;
max-width: 100%;
padding: 2px 7px;
border: 1px solid
color-mix(in srgb, var(--pm-label-color) 65%, var(--pm-line));
border-radius: var(--pm-radius);
background: color-mix(in srgb, var(--pm-label-color) 16%, var(--pm-panel));
color: var(--pm-text);
font-size: 12px;
overflow-wrap: anywhere;
}
.pm-label-badge::before {
content: "";
width: 7px;
height: 7px;
flex-shrink: 0;
border-radius: 50%;
background: var(--pm-label-color);
}
.pm-label-badge .pm-button {
position: relative;
flex-shrink: 0;
min-width: 28px;
min-height: 28px;
padding: 0;
background: transparent;
border: 0;
}
.rs-pm:not(.pm-shared-menus) .pm-label-options {
position: fixed;
inset: auto;
margin: 0;
width: min(210px, calc(100vw - 24px));
padding: 6px;
overflow: auto;
border: 0;
border-radius: var(--pm-radius);
background: var(--pm-panel);
color: var(--pm-text);
box-shadow: 0 8px 28px #0005;
}
.rs-pm:not(.pm-shared-menus) .pm-label-options > input {
width: 100%;
font-size: 12px;
}
.pm-label-choices {
max-height: 160px;
overflow: auto;
margin-top: 4px;
}
.rs-pm:not(.pm-shared-menus) .pm-label-option {
display: flex;
align-items: center;
width: 100%;
min-height: 30px;
padding: 4px;
border: 0;
border-radius: var(--pm-radius);
background: transparent;
text-align: left;
cursor: pointer;
}
.rs-pm:not(.pm-shared-menus) .pm-label-option:is(:hover, :focus-visible) {
background: var(--pm-hover);
}
.rs-pm:not(.pm-shared-menus) .pm-label-options > .pm-label-manage {
justify-content: flex-start;
width: 100%;
margin-top: 4px;
border: 0;
border-top: 1px solid var(--pm-line);
border-radius: 0;
background: transparent;
font-size: 12px;
}
.rs-pm:not(.pm-shared-menus) .pm-label-options > .pm-label-manage:hover {
background: var(--pm-hover);
}
.pm-label-definitions {
display: grid;
gap: 12px;
margin: 16px 0;
}
.pm-label-definition {
min-width: 0;
margin: 0;
padding: 10px;
border: 1px solid var(--pm-line);
border-radius: var(--pm-radius);
}
.pm-label-definition legend {
max-width: 100%;
}
.pm-label-definition-fields {
display: grid;
grid-template-columns: minmax(0, 1fr) auto;
gap: 8px;
align-items: end;
}
.pm-color-palette {
min-width: 0;
margin: 0;
padding: 0;
border: 0;
}
.pm-color-palette legend {
margin-bottom: 6px;
padding: 0;
color: var(--pm-muted);
font-size: 12px;
}
.pm-color-choices {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 7px;
padding: 3px;
max-width: 295px;
}
.rs-pm input.pm-color-swatch {
appearance: none;
flex: 0 0 30px;
width: 30px;
height: 30px;
min-height: 30px;
margin: 0;
padding: 0;
border: 2px solid transparent;
border-radius: var(--pm-radius);
background: var(--pm-swatch-color, var(--pm-bg));
color: var(--pm-swatch-foreground, #141414);
cursor: pointer;
display: grid;
place-items: center;
}
.rs-pm input.pm-color-swatch:checked::after {
content: "✓";
font-size: 18px;
font-weight: 700;
}
.rs-pm input.pm-color-swatch:checked {
border-color: var(--pm-panel);
box-shadow: 0 0 0 1px var(--pm-text);
}
.rs-pm input.pm-color-swatch:focus-visible {
outline: 2px solid var(--pm-accent);
outline-offset: 3px;
}
.rs-pm input.pm-no-color {
border-color: var(--pm-line);
color: var(--pm-text);
background-image: linear-gradient(
135deg,
transparent 47%,
var(--pm-muted) 48%,
var(--pm-muted) 52%,
transparent 53%
);
}
.pm-color-name {
display: block;
color: var(--pm-muted);
font-size: 12px;
margin: 4px 0 0 3px;
}
.pm-editor.pm-label-manager {
overflow: hidden;
}
.pm-label-manager form {
display: flex;
flex-direction: column;
max-height: calc(90vh - 42px);
}
.pm-label-manager form > :not(.pm-label-definitions) {
flex-shrink: 0;
}
.pm-label-manager form > .pm-button {
align-self: flex-start;
}
.pm-label-manager .pm-label-definitions {
min-height: 0;
overflow-y: auto;
grid-auto-rows: max-content;
}
.pm-label-manager .pm-editor-actions {
margin-top: 8px;
padding-top: 12px;
border-top: 1px solid var(--pm-line);
}
.pm-editor {
background: var(--pm-panel);
color: var(--pm-text);
border: 1px solid var(--pm-line);
border-radius: var(--pm-radius);
width: 570px;
max-width: calc(100vw - 32px);
max-height: 90vh;
overflow: auto;
padding: 20px;
}
.pm-editor::backdrop {
background: #0006;
}
.pm-editor h2 {
font-size: 16px;
}
.pm-note-picker {
width: 620px;
max-height: calc(100dvh - 32px);
padding: 20px;
overflow-x: hidden;
}
.pm-note-picker form {
display: flex;
flex-direction: column;
gap: 12px;
min-width: 0;
}
.pm-note-picker .pm-field {
min-width: 0;
}
.pm-note-picker input {
min-height: 36px;
}
.rs-pm .pm-note-summary {
margin: 0;
color: var(--pm-muted);
overflow-wrap: anywhere;
}
.rs-pm:not(.pm-shared-menus) .pm-note-results {
display: flex;
flex-direction: column;
gap: 4px;
max-height: min(280px, 35dvh);
min-height: 48px;
overflow: auto;
padding: 4px;
border: 1px solid var(--pm-line);
border-radius: var(--pm-radius);
}
.rs-pm:not(.pm-shared-menus) .pm-note-result {
flex: 0 0 auto;
width: 100%;
min-width: 0;
justify-content: flex-start;
text-align: left;
white-space: normal;
padding: 8px;
border-color: transparent;
}
.rs-pm:not(.pm-shared-menus) .pm-note-result[aria-pressed="true"] {
background: var(--pm-selection-bg);
outline: var(--pm-selection-width) solid var(--pm-selection-border);
outline-offset: calc(-1 * var(--pm-selection-width));
border-radius: var(--pm-selection-radius);
}
.rs-pm:not(.pm-shared-menus) .pm-note-result-text {
display: flex;
flex-direction: column;
gap: 2px;
min-width: 0;
overflow-wrap: anywhere;
}
.rs-pm:not(.pm-shared-menus) .pm-note-path {
color: var(--pm-muted);
font-size: 12px;
}
.pm-note-picker .pm-editor-actions {
margin-top: 0;
padding-top: 12px;
border-top: 1px solid var(--pm-line);
flex-wrap: wrap;
}
.pm-form-grid {
display: grid;
grid-template-columns: minmax(0, 1fr);
gap: 12px;
margin-top: 16px;
}
.pm-optional-fields {
display: grid;
gap: 12px;
}
.pm-optional-fields:empty {
display: none;
}
.pm-optional-group {
border-top: 1px solid var(--pm-line);
padding-top: 8px;
min-width: 0;
}
.pm-optional-heading {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 6px;
}
.pm-optional-heading h3 {
font-size: 12px;
font-weight: 500;
margin: 0;
}
.pm-optional-content {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 10px;
}
.pm-optional-content > :only-child {
grid-column: 1 / -1;
}
.pm-field input,
.pm-field select,
.pm-field textarea {
min-width: 0;
width: 100%;
}
.pm-field-choices {
display: flex;
flex-wrap: wrap;
gap: 6px;
margin-top: 8px;
}
.pm-field-choices .pm-button {
font-size: 12px;
}
.pm-details-picker {
width: 320px;
}
.rs-pm:not(.pm-shared-menus) .pm-detail-choices {
display: grid;
gap: 8px;
margin-top: 10px;
}
.rs-pm:not(.pm-shared-menus) .pm-detail-choice {
display: grid;
gap: 3px;
}
.rs-pm:not(.pm-shared-menus) .pm-detail-choice > .rs-picker-row {
justify-content: flex-start;
width: 100%;
}
.rs-pm:not(.pm-shared-menus) .pm-detail-choice > span {
padding-inline: 8px;
color: var(--pm-muted);
font-size: 12px;
}
.pm-description-actions {
display: flex;
justify-content: flex-end;
}
.pm-editor.pm-description-editor {
width: 940px;
max-height: calc(100dvh - 32px);
}
.pm-description-toolbar {
display: flex;
flex-wrap: wrap;
gap: 6px;
margin-block: 12px;
}
.pm-description-source textarea {
min-height: min(45vh, 420px);
font-family: var(--rs-font-ui, system-ui, sans-serif);
resize: vertical;
}
.pm-markdown-preview {
min-height: min(45vh, 420px);
border: 1px solid var(--pm-line);
border-radius: var(--pm-radius);
padding: 14px;
overflow-wrap: anywhere;
overflow: auto;
}
.pm-markdown-preview img {
display: block;
max-width: 100%;
max-height: 460px;
object-fit: contain;
}
.pm-markdown-preview pre {
overflow: auto;
padding: 10px;
background: var(--pm-bg);
}
.pm-markdown-preview table {
border-collapse: collapse;
}
.pm-markdown-preview td,
.pm-markdown-preview th {
border: 1px solid var(--pm-line);
padding: 6px;
}
.pm-markdown-preview a {
color: var(--pm-accent);
}
.pm-priority {
display: inline-flex;
gap: 4px;
align-items: center;
border: 1px solid var(--pm-line);
border-radius: var(--pm-radius);
padding: 2px 5px;
font-size: 11px;
}
.pm-editor .pm-error:empty {
display: none;
}
.pm-wide {
grid-column: 1/-1;
}
.pm-editor-actions {
display: flex;
justify-content: flex-end;
gap: 7px;
margin-top: 16px;
}
.pm-view {
min-width: 0;
margin: 12px 16px 16px;
padding: 0 12px 12px;
background: var(--pm-panel-surface);
border: 1px solid var(--pm-line);
border-radius: var(--pm-radius);
}
.pm-date-nav {
display: flex;
gap: 4px;
align-items: center;
flex-wrap: wrap;
min-height: 48px;
padding: 8px 0;
}
.pm-date-nav .pm-button {
border-color: transparent;
background: transparent;
color: var(--pm-muted);
}
.pm-date-nav input {
margin: 0 9px;
background: transparent;
border-color: transparent;
}
.pm-zone {
margin-left: auto;
color: var(--pm-muted);
font-size: 11px;
}
.pm-view > h2 {
margin: 0 0 12px;
}
.pm-gantt-scroll {
overflow: auto;
}
.pm-gantt {
min-width: 900px;
border: 1px solid var(--pm-line);
border-radius: var(--pm-radius);
overflow: hidden;
}
.pm-gantt-row {
display: grid;
grid-template-columns: 220px 1fr;
border-bottom: 1px solid var(--pm-line);
min-height: 46px;
}
.pm-gantt-row:last-child {
border-bottom: 0;
}
.pm-gantt-name {
padding: 8px 10px;
background: transparent;
border: 0;
border-right: 1px solid var(--pm-line);
text-align: left;
overflow-wrap: anywhere;
}
.pm-gantt-name small {
display: block;
color: var(--pm-muted);
font-size: 11px;
}
.pm-gantt-dates {
display: grid;
grid-template-columns: repeat(28, 1fr);
align-items: center;
font-size: 11px;
text-align: center;
color: var(--pm-muted);
}
.pm-gantt-track {
position: relative;
background: repeating-linear-gradient(
to right,
transparent 0,
transparent calc(100% / 28 - 1px),
var(--pm-line) calc(100% / 28 - 1px),
var(--pm-line) calc(100% / 28)
);
}
.pm-gantt-bar {
position: absolute;
top: 11px;
height: 23px;
background: color-mix(in srgb, var(--pm-accent) 24%, var(--pm-panel));
border: 1px solid color-mix(in srgb, var(--pm-accent) 60%, var(--pm-line));
border-radius: var(--pm-radius);
font-size: 11px !important;
text-align: left;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
padding: 2px 7px;
}
.pm-status-done {
background: var(--pm-hover);
border-color: var(--pm-muted);
color: var(--pm-muted) !important;
}
.pm-deadline {
position: absolute;
top: 23px;
transform: translateX(-50%);
color: var(--pm-card-color, var(--rs-warn, #cca700)) !important;
background: none;
border: 0;
padding: 0;
}
.pm-today {
background: var(--pm-accent) !important;
color: var(--pm-bg) !important;
border-radius: var(--pm-radius);
padding: 3px;
}
.pm-month {
display: grid;
grid-template-columns: repeat(7, minmax(95px, 1fr));
border-top: 1px solid var(--pm-line);
border-left: 1px solid var(--pm-line);
overflow: auto;
}
.pm-day-heading,
.pm-month-day {
border-right: 1px solid var(--pm-line);
border-bottom: 1px solid var(--pm-line);
padding: 6px;
}
.pm-day-heading {
color: var(--pm-muted);
text-align: center;
font-size: 11px;
}
.pm-month-day {
min-height: 104px;
}
.pm-month-day > .pm-button {
padding: 1px 6px;
min-height: 24px;
border: 0;
background: transparent;
font-size: 11px;
}
.pm-outside {
background: var(--pm-panel-surface);
color: var(--pm-muted);
}
.pm-calendar-entries {
display: flex;
flex-direction: column;
gap: 3px;
margin-top: 5px;
}
.pm-calendar-event {
border: 1px solid var(--pm-line);
background: color-mix(in srgb, var(--pm-accent) 15%, var(--pm-panel));
border-radius: var(--pm-radius);
padding: 3px 5px;
text-align: left;
font-size: 11px !important;
overflow-wrap: anywhere;
line-height: 1.35;
}
.pm-deadline-event {
background: var(--pm-panel);
color: var(--pm-muted) !important;
}
.pm-gantt-name.pm-colored-task,
.pm-gantt-bar.pm-colored-task,
.pm-calendar-event.pm-colored-task,
.pm-hour-heading .pm-colored-task {
background: color-mix(in srgb, var(--pm-card-color) 14%, var(--pm-bg));
border-color: var(--pm-card-color);
border-left: 4px solid var(--pm-card-color);
color: var(--pm-text) !important;
}
.pm-hours-scroll {
overflow: auto;
max-height: calc(100vh - 170px);
border: 1px solid var(--pm-line);
border-radius: var(--pm-radius);
}
.pm-hours {
display: grid;
grid-template-columns: 52px repeat(var(--days), minmax(110px, 1fr));
min-width: 100%;
}
.pm-hour-heading {
height: 65px;
background: var(--pm-field-surface);
border-bottom: 1px solid var(--pm-line);
padding: 6px;
overflow: auto;
font-size: 11px;
}
.pm-hour-heading button {
display: block;
font-size: 10px;
min-height: 20px;
padding: 2px;
}
.pm-hour-label {
height: 52px;
padding: 3px;
color: var(--pm-muted);
font-size: 10px;
}
.pm-hour-day {
border-left: 1px solid var(--pm-line);
}
.pm-hour-grid {
position: relative;
height: 1248px;
}
.pm-hour-slot {
display: block;
width: 100%;
height: 52px;
border: 0;
border-bottom: 1px solid var(--pm-line);
background: transparent;
}
.pm-hour-grid .pm-calendar-entries {
position: absolute;
inset: 0;
margin: 0;
pointer-events: none;
}
.pm-timed-event {
position: absolute;
left: 3px;
right: 5px;
pointer-events: auto;
}
.pm-now {
position: absolute;
left: 0;
right: 0;
height: 1px;
background: var(--rs-error, #f44747);
pointer-events: none;
}
.pm-issues {
border: 1px solid var(--pm-line);
border-radius: var(--pm-radius);
padding: 8px;
margin: 10px 16px;
color: var(--rs-warn, #cca700);
}
.pm-issues p {
font-size: 12px;
overflow-wrap: anywhere;
}
.pm-empty {
margin: 16px !important;
}
.rs-pm
.pm-date-nav
.pm-button:is(:hover, :focus-visible, [aria-pressed="true"]) {
color: var(--pm-text);
background: var(--pm-selection-bg);
border-radius: var(--pm-selection-radius);
box-shadow: inset 0 0 0 var(--pm-selection-width) var(--pm-selection-border);
outline: none;
}
.rs-pm .pm-card:is(:hover, :has(:focus-visible)),
.rs-pm
:is(
button.pm-gantt-name,
.pm-gantt-bar,
.pm-deadline,
.pm-calendar-event,
.pm-hour-heading button,
.pm-hour-slot,
.pm-month-day > .pm-button
):is(:hover, :focus-visible) {
background-image: linear-gradient(
var(--pm-selection-bg),
var(--pm-selection-bg)
);
border-radius: var(--pm-selection-radius);
box-shadow: inset 0 0 0 var(--pm-selection-width) var(--pm-selection-border);
outline: none;
}
.rs-pm .pm-card-title:focus-visible {
outline: none;
}
@media (max-width: 720px) {
.pm-view-title {
display: none;
}
.pm-toolbar {
flex-wrap: wrap;
justify-content: space-between;
gap: 5px;
}
.pm-tabs .pm-button {
padding: 4px 7px;
}
.pm-form-grid {
grid-template-columns: 1fr;
}
.pm-optional-content {
grid-template-columns: minmax(0, 1fr);
}
.pm-zone {
display: none;
}
}
.rs-pm .pm-scope {
max-width: 220px;
min-width: 90px;
}
.pm-card-images > .pm-muted {
margin: 6px 0;
}
.pm-image-gallery {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
gap: 8px;
}
.pm-image-gallery figure {
margin: 0;
padding: 8px;
border: 1px solid var(--pm-line);
border-radius: var(--rs-control-radius, var(--pm-radius));
min-width: 0;
}
.pm-image-thumbnail {
position: relative;
display: grid;
place-items: center;
width: 100%;
height: 76px;
padding: 4px;
background: var(--pm-bg);
border: 1px solid transparent;
border-radius: var(--pm-radius);
}
.pm-image-thumbnail > .pm-tooltip {
left: 0;
right: auto;
max-width: 100%;
overflow-wrap: anywhere;
}
.pm-image-thumbnail:hover {
border-color: var(--pm-accent);
}
.pm-image-gallery img {
display: block;
max-width: 100%;
max-height: 66px;
object-fit: contain;
margin: auto;
}
.pm-image-gallery figcaption {
display: flex;
align-items: center;
justify-content: space-between;
gap: 8px;
overflow-wrap: anywhere;
}
.pm-image-gallery figcaption > span {
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
font-size: 11px;
}
.pm-image-gallery .pm-error {
font-size: 11px;
}
/* The modal surface has no chrome. Controls stay above the image while it scrolls. */
.pm-image-viewer {
position: fixed;
inset: 0;
width: 100vw;
height: 100dvh;
max-width: none;
max-height: none;
margin: 0;
padding: 0;
overflow: hidden;
border: 0;
border-radius: 0;
background: transparent;
color: white;
}
.pm-image-viewer::backdrop { background: #000d; }
.pm-image-viewer-header {
position: absolute;
z-index: 1;
top: 16px;
left: 16px;
right: 16px;
display: flex;
align-items: center;
gap: 8px;
pointer-events: none;
}
.pm-image-viewer-header h2 {
flex: 1;
min-width: 0;
margin: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
text-shadow: 0 1px 3px black, 0 0 6px black;
pointer-events: auto;
}
.rs-pm .pm-image-viewer-header button {
flex: 0 0 auto;
min-height: 36px;
min-width: 36px;
border-color: transparent;
background: transparent;
color: white !important;
text-shadow: 0 1px 3px black, 0 0 6px black;
pointer-events: auto;
}
.pm-image-viewer-header .pm-icon { filter: drop-shadow(0 1px 2px black); }
.rs-pm .pm-image-viewer-header button:hover,
.rs-pm .pm-image-viewer-header button:focus-visible,
.rs-pm .pm-image-viewer-header button[aria-pressed="true"] {
background: #0008;
outline-color: white;
}
.pm-image-frame {
display: flex;
align-items: center;
justify-content: center;
width: 100%;
height: 100%;
padding: 16px;
overflow: auto;
background: transparent;
}
.pm-image-frame img {
display: block;
flex: 0 0 auto;
width: auto;
height: auto;
max-width: 100%;
max-height: 100%;
object-fit: contain;
margin: auto;
}
.pm-image-frame.pm-image-actual { display: block; }
.pm-image-actual img { max-width: none; max-height: none; }
.rs-pm .pm-image-preview-trigger {
position: relative;
display: block;
max-width: 100%;
padding: 0;
border: 1px solid transparent;
border-radius: var(--rs-control-radius, var(--pm-radius));
background: transparent;
cursor: zoom-in;
}
.rs-pm .pm-image-preview-trigger:hover,
.rs-pm .pm-image-preview-trigger:focus-visible { border-color: var(--pm-accent); }
@media (max-width: 480px) {
.pm-image-viewer-header { top: 8px; left: 8px; right: 8px; gap: 4px; }
.pm-image-viewer-header h2 { font-size: 13px; }
.pm-image-frame { padding: 8px; }
}
.pm-visually-hidden {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
overflow: hidden;
clip-path: inset(50%);
white-space: nowrap;
}
.pm-card-editor {
width: 640px;
padding: 16px 20px;
}
.pm-card-editor-header {
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: space-between;
gap: 12px;
padding-bottom: 10px;
border-bottom: 1px solid var(--pm-line);
}
.pm-card-editor-header .pm-field {
display: flex;
flex-direction: row;
align-items: center;
gap: 8px;
min-width: 0;
color: var(--pm-muted);
}
.pm-card-editor-header select {
width: auto;
max-width: min(280px, 55vw);
color: var(--pm-text);
}
.pm-card-editor-header .pm-choice-button { min-width: 0; max-width: min(280px, 55vw); color: var(--pm-text); }
.pm-choice-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pm-choice-button { justify-content: space-between; min-width: 0; max-width: 100%; text-align: left; }
.rs-pm .pm-card-context {
font-size: 11px;
margin: 8px 0 0;
overflow-wrap: anywhere;
}
.pm-card-editor .pm-form-grid {
margin-top: 8px;
gap: 10px;
}
.pm-editor-card-title {
font-size: 0;
gap: 0;
}
.rs-pm .pm-editor-card-title input {
font-size: 20px;
font-weight: 600;
background: transparent;
border-color: transparent;
padding: 6px 10px;
margin-inline: -10px;
width: calc(100% + 20px);
}
.pm-editor-card-title input:hover {
border-color: var(--pm-line);
}
.pm-card-editor .pm-field-choices {
margin-top: 0;
gap: 4px;
}
.pm-card-editor .pm-field-choices .pm-button {
min-height: 28px;
padding: 3px 7px;
}
.pm-card-editor .pm-card-images > .pm-muted {
font-size: 11px;
}
.pm-card-editor .pm-editor-actions {
padding: 12px 0 0;
background: transparent;
border-top: 1px solid var(--pm-line);
}
@media (hover: none) {
.pm-card-menu { opacity: 1; }
}
/* Card details stay above the inline description. */
.rs-pm:not(.pm-shared-menus) .pm-detail-choice > .rs-picker-row {
display: grid;
grid-template-columns: 16px minmax(0, 1fr);
text-align: left;
column-gap: 8px;
row-gap: 2px;
padding: 7px 9px !important;
}
.rs-pm:not(.pm-shared-menus) .pm-detail-hint {
grid-column: 2;
color: var(--pm-muted);
font-size: 11px;
white-space: normal;
}
.rs-pm:not(.pm-shared-menus) .pm-detail-choices { gap: 4px; }
.pm-description-editor { min-width: 0; }
.pm-description-heading {
display: flex;
align-items: center;
justify-content: space-between;
gap: 8px;
margin-bottom: 8px;
}
.pm-description-heading h3 { margin: 0; font-size: 14px; }
.pm-description-toolbar { gap: 4px; margin: 8px 0; }
.pm-description-toolbar .pm-button { font-size: 12px; }
.pm-description-source textarea { min-height: 150px; }
.pm-description-actions { gap: 6px; margin-top: 8px; }
.pm-description-editor .pm-markdown-preview { min-height: 72px; }
.pm-description-editor [hidden] { display: none !important; }
.pm-priority-picker { width: 210px; }
.rs-pm:not(.pm-shared-menus) .pm-priority-option { display: flex; width: 100%; justify-content: flex-start; margin: 3px 0; }
[data-priority="high"] { --pm-priority-color: #ff0000; }
[data-priority="medium"] { --pm-priority-color: #ffc400; }
[data-priority="low"] { --pm-priority-color: #009dff; }
[data-priority="none"] { --pm-priority-color: var(--pm-muted); }
[data-priority] > .pm-icon { color: var(--pm-priority-color); opacity: 1; filter: drop-shadow(0 0 0.5px #222); }
.pm-priority[data-priority],
.rs-pm:not(.pm-shared-menus) .pm-priority-option[aria-pressed="true"] {
border-color: color-mix(in srgb, var(--pm-priority-color) 65%, var(--pm-line));
background: color-mix(in srgb, var(--pm-priority-color) 14%, var(--pm-panel));
}
.rs-pm:not(.pm-shared-menus) .pm-detail-choice > .rs-picker-row > .pm-icon { grid-row: 1 / span 2; align-self: center; }
.pm-description-surface { border: 1px solid var(--pm-line); border-radius: var(--pm-radius); }
.pm-description-surface:has(.pm-description-toolbar[hidden]) { border: 0; }
.pm-description-surface:focus-within { border-color: var(--pm-accent); }
.pm-description-surface .pm-description-toolbar {
gap: 2px; margin: 0; padding: 5px; border-bottom: 1px solid var(--pm-line);
}
.pm-description-toolbar .pm-button { background: transparent; border-color: transparent; }
.pm-description-toolbar .pm-button:hover { background: var(--pm-hover); }
.pm-description-source { gap: 0; position: relative; }
.pm-description-find-highlights {
position: absolute;
inset: 0;
overflow: hidden;
pointer-events: none;
white-space: pre-wrap;
overflow-wrap: break-word;
color: transparent;
}
.pm-description-find-highlights mark {
background: var(--rs-item-selection-bg, var(--pm-selection-bg));
color: var(--pm-text);
}
.pm-description-find-highlights .pm-description-find-current {
background: var(--rs-selection, var(--pm-selection-bg));
color: var(--rs-selection-text, var(--pm-text));
outline: 1px solid var(--pm-accent);
}
.rs-pm .pm-description-source textarea {
width: 100%; border: 0; border-radius: 0 0 var(--pm-radius) var(--pm-radius);
padding: 12px; outline: none; box-shadow: none; line-height: 1.6;
}
.pm-image-viewer-header > * { transition: opacity 160ms ease; }
.pm-image-controls-idle .pm-image-viewer-header > * { opacity: 0; }
.pm-image-controls-idle .pm-image-viewer-header > :hover,
.pm-image-controls-idle .pm-image-viewer-header > :focus-visible { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
.pm-image-viewer-header > * { transition: none; }
}
/* Compact ribbon controls keep keyboard focus visible. */
.pm-toolbar .pm-button { border-color: transparent; background: transparent; }
.pm-toolbar .pm-button[aria-pressed="true"] { border-color: transparent; background: var(--pm-hover); }
.pm-toolbar .pm-button:hover { background: var(--pm-hover); }
.pm-title-area { display: flex; align-items: center; justify-content: center; gap: 2px; }
.pm-title-area .pm-scope { width: min(260px, 100%); min-width: 80px; border-color: transparent; background-color: transparent; }
.pm-title-area .pm-board-rename > .pm-icon { visibility: visible; opacity: .7; }
.pm-toolbar .pm-button:focus-visible { outline: 2px solid var(--pm-accent); outline-offset: 2px; }
.rs-pm .pm-description-source textarea { resize: none; overflow-y: hidden; max-height: none; padding-bottom: 32px; scroll-margin-bottom: 32px; }
.pm-description-unsaved, .pm-card-unsaved {
display: inline-flex;
align-items: center;
gap: 4px;
width: fit-content;
max-width: 100%;
padding: 2px 6px;
border-radius: var(--pm-radius);
background: var(--pm-draft-bg);
color: var(--pm-draft-text);
font-size: 12px;
font-weight: 600;
}
.pm-onboarding { padding: 20px; border: 1px solid var(--pm-border); border-radius: var(--rs-control-radius, 5px); margin: 12px; }
.pm-onboarding h2 { margin: 0; font-size: 18px; }
.pm-created-at { font-size: 12px; margin: 8px 0; }
.pm-relation-row { display: flex; align-items: center; gap: 8px; margin: 6px 0; flex-wrap: wrap; }
.pm-relation-row > input:not([type=checkbox]), .pm-relation-row > select, .pm-relation-row > span { flex: 1; min-width: 120px; }
.pm-relation-row > input[type=checkbox] { width: 18px; height: 18px; }
.pm-related-card { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 10px 12px; border: 1px solid var(--rs-border); border-radius: var(--rs-control-radius, 5px); background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.pm-related-card:hover { background: var(--rs-bg-active); }
.pm-related-card:focus-visible { outline: 2px solid var(--rs-accent); outline-offset: 2px; }
.pm-related-title { flex: 1 1 220px; overflow-wrap: anywhere; font-size: 15px; line-height: 1.5; }
.pm-related-metadata { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; font-size: 13px; line-height: 1.5; }
.pm-related-metadata > span { overflow-wrap: anywhere; }
.pm-related-priority { display: inline-flex; align-items: center; gap: 6px; }
.pm-link-editor { min-width: 0; }
.pm-link-results { width: 100%; max-height: min(220px, 30dvh); overflow: auto; }
.pm-link-result-text { min-width: 0; overflow-wrap: anywhere; }
.rs-pm:not(.pm-shared-menus) .pm-link-results { border: 1px solid var(--pm-line); border-radius: var(--pm-radius); padding: 4px; background: var(--pm-panel); }
.rs-pm:not(.pm-shared-menus) .pm-link-results .rs-picker-row { display: flex; width: 100%; text-align: left; }
.rs-pm:not(.pm-shared-menus) .pm-link-results .rs-picker-row:is(:hover, :focus-visible) { background: var(--pm-hover); }
.pm-relations h3 { margin: 12px 0 6px; }
.pm-card-cover-button { display: block; width: 100%; padding: 0; border: 0; border-radius: var(--pm-radius); overflow: hidden; background: var(--pm-panel); cursor: pointer; }
.pm-card-cover { display: block; width: 100%; height: 160px; object-fit: cover; }
/* Nested surfaces share the same tint. Text and focus indicators stay opaque. */
.rs-pm.pm-has-background { --pm-surface-opacity: var(--rs-surface-opacity, 82%); background-color: var(--pm-bg); }
.rs-pm .pm-column,
.rs-pm .pm-card-editor {
background-color: var(--pm-panel-surface);
}
.rs-pm .pm-card:not(.pm-card-selected) { background-color: var(--pm-field-surface); }
.rs-pm .pm-colored-card:not(.pm-card-selected),
.rs-pm .pm-colored-task:not(.pm-deadline):not(.pm-card-selected) {
background-color: color-mix(in srgb, color-mix(in srgb, var(--pm-card-color) 14%, var(--pm-bg)) var(--pm-surface-opacity), transparent);
}
.rs-pm .pm-card-editor button:not([role^="menuitem"]):not(.rs-picker-row) {
background: transparent;
border-color: transparent;
}
.rs-pm .pm-card-editor .pm-primary { color: var(--pm-text) !important; }
.rs-pm .pm-card-editor button:not([role^="menuitem"]):not(.rs-picker-row):is(:hover, :active, [aria-pressed="true"]):not(:disabled) {
background-color: color-mix(in srgb, var(--pm-hover) var(--pm-surface-opacity), transparent);
}
.pm-label-badge .pm-button:is(:hover, :focus-visible) > .pm-tooltip {
opacity: 1;
visibility: visible;
}
.pm-label-badge .pm-tooltip { white-space: normal; width: max-content; text-align: left; }
.pm-preferences { padding: var(--rs-settings-section-gap, 16px); }
.pm-preferences select { min-height: var(--rs-settings-control-height, 32px); }
[data-priority=highest] { --pm-priority-color: #ff0066; }
[data-priority=lowest] { --pm-priority-color: #0066ff; }
.rs-pm .pm-tabs .pm-button:is(:hover, [aria-pressed="true"]) { background: var(--pm-hover); box-shadow: none; }
.rs-pm .pm-tabs .pm-button:focus-visible { outline: 2px solid var(--pm-accent); outline-offset: 2px; box-shadow: none; }
.pm-title-area .pm-board-rename { display: inline-flex; align-items: center; justify-content: center; min-width: 28px; min-height: 28px; gap: 0; padding: 4px; }
.pm-title-area .pm-board-rename > .pm-icon { display: flex; align-items: center; justify-content: center; }
.pm-relation-heading, .pm-attachment-heading { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pm-relation-heading h3, .pm-attachment-heading h3 { flex: 1; margin: 8px 0; }
.pm-section-toggle { display: inline-flex; align-items: center; gap: 6px; padding: 4px; color: inherit; background: transparent; border: 0; border-radius: var(--rs-control-radius, 5px); font: inherit; cursor: pointer; }
.pm-section-toggle svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.pm-section-toggle[aria-expanded=false] svg { transform: rotate(-90deg); }
.pm-section-toggle:hover { background: var(--pm-hover); }
.pm-section-toggle:focus-visible { outline: 2px solid var(--pm-accent); outline-offset: 2px; }
.pm-scope option { color: var(--pm-text); background: var(--pm-panel); }
.pm-button.pm-scope { display: grid; grid-template-columns: 16px minmax(0, 1fr) 16px; overflow: hidden; text-align: center; }
.pm-scope-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pm-selection-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 8px 12px; background: var(--pm-panel); }
.pm-selection-count { min-width: 80px; }
.pm-card-selected { background: var(--pm-selection-bg); outline: var(--pm-selection-width) solid var(--pm-selection-border); outline-offset: calc(-1 * var(--pm-selection-width)); border-radius: var(--pm-selection-radius); }
.pm-card-select { width: 20px; height: 20px; cursor: pointer; }
.pm-card:has(.pm-card-select) { cursor: pointer; }
.pm-card:has(.pm-card-select) .pm-card-menu { display: none; }
.rs-pm { isolation: isolate; }
.pm-background { position: fixed; z-index: -1; pointer-events: none; background-repeat: no-repeat; }
.pm-background-previous { position: absolute; inset: 0; background-repeat: no-repeat; pointer-events: none; }
.pm-toolbar { flex-wrap: wrap; }
.pm-title-area { flex: 1 1 140px; }
.pm-toolbar-actions { flex-wrap: wrap; }
.pm-background-settings { margin-top: var(--rs-settings-gap, 8px); }
.pm-background-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--rs-settings-gap, 8px); padding: var(--rs-settings-row-padding, 10px) 0; }
.pm-background-row + .pm-background-row { border-top: 1px solid var(--pm-line); }
.pm-background-row .pm-choice-button { min-height: var(--rs-settings-control-height, 28px); max-width: 100%; }
.pm-overlay-controls { display: flex; align-items: center; flex-wrap: wrap; gap: var(--rs-settings-gap, 8px); max-width: 100%; }
.pm-overlay-controls input[type=range] { width: 160px; max-width: 100%; min-width: 0; padding: 0; }
.pm-overlay-value { display: flex; align-items: center; gap: 4px; }
.pm-overlay-value input { width: 64px; min-height: var(--rs-settings-control-height, 28px); }
.pm-auto-scrolling, .pm-auto-scrolling * { cursor: all-scroll !important; }
.pm-autoscroll-marker { position: fixed; z-index: 1000; pointer-events: none; width: 26px; height: 26px; transform: translate(-50%, -50%); display: grid; place-items: center; border: 1px solid var(--pm-line); border-radius: 50%; background: var(--pm-panel); color: var(--pm-text); }
.pm-autoscroll-marker .pm-icon { width: 20px; height: 20px; }
/* Picker layout only. The host menu stylesheet owns its presentation. */
.pm-shared-menus .pm-label-options { position: fixed; inset: auto; margin: 0; width: min(248px, calc(100vw - 24px)); max-height: calc(100vh - 24px); overflow: auto; }
.pm-shared-menus .pm-details-picker { width: min(320px, calc(100vw - 24px)); }
.pm-shared-menus .pm-label-options > input { width: 100%; }
.pm-shared-menus .pm-label-choices { max-height: 160px; overflow: auto; }
.pm-shared-menus .pm-note-results { display: flex; flex-direction: column; width: 100%; max-height: min(280px, 35dvh); min-height: 48px; overflow: auto; }
.pm-shared-menus .pm-note-result { flex: 0 0 auto; }
.pm-note-result-text { display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; }
.pm-priority[data-priority] { color: var(--pm-text); border-color: var(--pm-priority-color); border-left-width: 3px; }
.pm-board-group-heading {
margin: 0 0 8px;
padding: 4px 2px 6px;
border-bottom: 1px solid var(--pm-line);
color: var(--pm-text);
font-size: 12px;
font-weight: 600;
overflow-wrap: anywhere;
}
.pm-board-group + .pm-board-group {
margin-top: 16px;
}