:root {
  --vpm-brand: #3157e7;
  --vpm-brand-strong: #2446c8;
  --vpm-brand-soft: #edf2ff;
  --vpm-valovit-action: #c95b2a;
  --vpm-valovit-action-strong: #a8471f;
  --vpm-ink: #172033;
  --vpm-muted: #6d7789;
  --vpm-subtle: #98a2b3;
  --vpm-bg: #f5f7fb;
  --vpm-panel: #ffffff;
  --vpm-panel-alt: #f9fafc;
  --vpm-border: #e5e9f1;
  --vpm-border-strong: #d7ddea;
  --vpm-sidebar: #111827;
  --vpm-sidebar-hover: #1d2637;
  --vpm-danger: #dc3e45;
  --vpm-success: #12845f;
  --vpm-warning: #d98216;
  --vpm-shadow-sm: 0 1px 2px rgba(16, 24, 40, .04), 0 1px 4px rgba(16, 24, 40, .04);
  --vpm-shadow-md: 0 12px 28px rgba(16, 24, 40, .09);
  --vpm-shadow-lg: 0 24px 70px rgba(16, 24, 40, .18);
  --vpm-radius: 12px;
  --vpm-radius-lg: 18px;
  --vpm-font: "Montserrat", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --vpm-font-weight-body: 400;
  --vpm-font-weight-control: 500;
  --vpm-font-weight-strong: 500;
  --vpm-font-weight-heading: 600;
}

/* Personal Quicklink artwork and ordering. */
.vpm-personal-link-icon {
  --vpm-link-color: var(--vpm-brand);
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 10px;
  background: rgba(49, 87, 231, .12);
  background: color-mix(in srgb, var(--vpm-link-color) 14%, transparent);
  color: var(--vpm-link-color);
}
.vpm-personal-link-icon .dashicons {
  width: 18px;
  height: 18px;
  color: inherit;
  font-size: 18px;
  line-height: 18px;
}
.vpm-personal-link-icon img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.vpm-focused-link > .vpm-personal-link-icon {
  width: 24px;
  height: 24px;
  flex-basis: 24px;
  border-radius: 5px;
}
.vpm-focused-link > .vpm-personal-link-icon .dashicons {
  width: 12px;
  height: 12px;
  font-size: 12px;
  line-height: 12px;
}
.vpm-profile-links-editor [data-profile-links] {
  display: grid;
  gap: 10px;
}
.vpm-profile-link-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 12px;
}
.vpm-profile-link-row__move {
  display: grid;
  justify-items: center;
  gap: 4px;
  color: var(--vpm-muted);
  font-size: 9px;
  text-transform: uppercase;
}
.vpm-profile-link-row__move > div {
  display: flex;
  gap: 3px;
}
.vpm-profile-link-row__move button {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--vpm-border);
  border-radius: 8px;
  background: transparent;
  color: var(--vpm-muted);
  cursor: pointer;
}
.vpm-profile-link-row__move button:hover {
  border-color: var(--vpm-link-color, var(--vpm-brand));
  color: var(--vpm-brand);
}
.vpm-profile-link-row__move .vpm-profile-link-drag {
  width: 64px;
  cursor: grab;
}
.vpm-profile-link-row__move .vpm-profile-link-drag:active { cursor: grabbing; }
.vpm-profile-link-row__move .dashicons {
  width: 15px;
  height: 15px;
  font-size: 15px;
  line-height: 15px;
}
.vpm-profile-link-row__fields {
  display: grid;
  grid-template-columns: minmax(150px, .7fr) minmax(240px, 1.3fr);
  gap: 9px;
}
.vpm-profile-link-row__style {
  grid-column: 2 / -1;
  display: grid;
  grid-template-columns: 48px minmax(150px, .7fr) 82px minmax(250px, 1.3fr);
  gap: 9px;
  align-items: end;
  padding-top: 10px;
  border-top: 1px solid var(--vpm-border);
}
.vpm-profile-link-icon-preview {
  --vpm-link-color: var(--vpm-brand);
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  align-self: end;
  overflow: hidden;
  border: 1px solid var(--vpm-border);
  border-radius: 11px;
  background: rgba(49, 87, 231, .12);
  background: color-mix(in srgb, var(--vpm-link-color) 14%, transparent);
  color: var(--vpm-link-color);
}
.vpm-profile-link-icon-preview .dashicons {
  width: 20px;
  height: 20px;
  color: inherit;
  font-size: 20px;
  line-height: 20px;
}
.vpm-profile-link-icon-preview img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.vpm-profile-link-color input[type="color"] {
  width: 100%;
  min-width: 64px;
  height: 38px;
  padding: 4px;
  cursor: pointer;
}
.vpm-profile-link-upload {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.vpm-profile-link-upload .vpm-secondary {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  cursor: pointer;
  white-space: nowrap;
}
.vpm-profile-link-upload .vpm-ghost { white-space: nowrap; }
.vpm-profile-link-remove {
  width: auto;
  min-width: 44px;
  height: 38px;
  align-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 10px;
}
.vpm-profile-link-row.is-dragging { opacity: .42; }
.vpm-profile-link-row.is-reordered {
  box-shadow: 0 0 0 2px rgba(49, 87, 231, .25);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--vpm-brand) 28%, transparent);
}
.vpm-theme-dark .vpm-personal-link-icon,
.vpm-theme-dark .vpm-profile-link-icon-preview {
  background: rgba(49, 87, 231, .18);
  background: color-mix(in srgb, var(--vpm-link-color) 18%, #0b1220);
}

@media (max-width: 900px) {
  .vpm-profile-link-row__style {
    grid-template-columns: 48px minmax(130px, 1fr) 82px minmax(210px, 1.2fr);
  }
}
@media (max-width: 700px) {
  .vpm-profile-link-row { grid-template-columns: 1fr; }
  .vpm-profile-link-row__move {
    grid-row: auto;
    display: flex;
    align-items: center;
    justify-content: flex-start;
  }
  .vpm-profile-link-row__move .vpm-profile-link-drag { width: 38px; }
  .vpm-profile-link-row__fields,
  .vpm-profile-link-row__style {
    grid-column: 1;
    grid-template-columns: 1fr;
  }
  .vpm-profile-link-icon-preview { width: 44px; height: 44px; }
  .vpm-profile-link-upload { align-items: stretch; flex-direction: column; }
  .vpm-profile-link-remove { width: 100%; }
}

/* Project contacts */
.vpm-contacts-view { display: grid; gap: 18px; }
.vpm-contacts-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px;
  border: 1px solid var(--vpm-border);
  border-radius: var(--vpm-radius-lg);
  background: linear-gradient(120deg, color-mix(in srgb, var(--vpm-valovit-action) 9%, var(--vpm-panel)), var(--vpm-panel) 60%);
  box-shadow: var(--vpm-shadow-sm);
}
.vpm-contacts-hero > div { display: grid; gap: 4px; }
.vpm-contacts-hero > div > span { color: var(--vpm-valovit-action); font-size: 10px; font-weight: 700; letter-spacing: .1em; }
.vpm-contacts-hero h1,
.vpm-contacts-hero p { margin: 0; }
.vpm-contacts-hero h1 { font-size: clamp(24px, 3vw, 34px); line-height: 1.08; }
.vpm-contacts-hero p { color: var(--vpm-muted); }
.vpm-contacts-hero .vpm-primary { display: inline-flex; align-items: center; gap: 7px; flex: 0 0 auto; }
.vpm-contacts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 14px; }
.vpm-contact-card {
  position: relative;
  display: grid;
  align-content: start;
  gap: 14px;
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--vpm-border);
  border-radius: var(--vpm-radius);
  background: var(--vpm-panel);
  box-shadow: var(--vpm-shadow-sm);
}
.vpm-contact-card.is-primary { border-color: color-mix(in srgb, var(--vpm-valovit-action) 45%, var(--vpm-border)); }
.vpm-contact-card.is-primary::before { position: absolute; inset: 10px auto 10px 0; width: 3px; border-radius: 0 4px 4px 0; background: var(--vpm-valovit-action); content: ""; }
.vpm-contact-card > header { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.vpm-contact-card__avatar { display: grid; width: 46px; height: 46px; place-items: center; border-radius: 50%; background: color-mix(in srgb, var(--vpm-valovit-action) 12%, var(--vpm-panel-alt)); color: var(--vpm-valovit-action); }
.vpm-contact-card__avatar .dashicons { width: 24px; height: 24px; font-size: 24px; }
.vpm-contact-card__title { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.vpm-contact-card__title h2 { margin: 0; font-size: 16px; line-height: 1.3; }
.vpm-contact-card__title > span { padding: 3px 7px; border-radius: 999px; background: color-mix(in srgb, var(--vpm-valovit-action) 12%, var(--vpm-panel)); color: var(--vpm-valovit-action); font-size: 9px; font-weight: 700; text-transform: uppercase; }
.vpm-contact-card header p { margin: 3px 0 0; color: var(--vpm-muted); font-size: 12px; }
.vpm-contact-card__actions { display: flex; gap: 4px; }
.vpm-contact-card__methods { display: grid; gap: 7px; }
.vpm-contact-card__methods a { display: flex; align-items: center; gap: 8px; min-width: 0; color: var(--vpm-ink); font-size: 12px; text-decoration: none; }
.vpm-contact-card__methods a:hover { color: var(--vpm-valovit-action); }
.vpm-contact-card__methods a span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vpm-contact-card__methods .dashicons { flex: 0 0 auto; width: 17px; height: 17px; color: var(--vpm-muted); font-size: 17px; }
.vpm-contact-card__notes { padding-top: 11px; border-top: 1px solid var(--vpm-border); color: var(--vpm-muted); font-size: 12px; line-height: 1.55; }
.vpm-contact-notes { display: grid; gap: 16px; }
.vpm-contact-form .vpm-form-footer > div { display: flex; gap: 8px; }

@media (max-width: 680px) {
  .vpm-contacts-hero { align-items: stretch; flex-direction: column; padding: 17px; }
  .vpm-contacts-hero .vpm-primary { justify-content: center; width: 100%; }
  .vpm-contacts-grid { grid-template-columns: 1fr; }
  .vpm-contact-card > header { grid-template-columns: 40px minmax(0, 1fr) auto; }
  .vpm-contact-card__avatar { width: 40px; height: 40px; }
  .vpm-contact-form .vpm-form-footer { align-items: stretch; flex-direction: column; }
  .vpm-contact-form .vpm-form-footer > div { display: grid; grid-template-columns: 1fr 1fr; }
}

/* Client-request planning */
.vpm-client-planning {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 14px 0 18px;
  padding: 13px 15px;
  border: 1px solid color-mix(in srgb, var(--vpm-brand) 28%, var(--vpm-border));
  border-radius: 12px;
  background: color-mix(in srgb, var(--vpm-brand) 7%, var(--vpm-panel));
  color: var(--vpm-ink);
}
.vpm-client-planning > .dashicons { color: var(--vpm-brand); margin-top: 1px; }
.vpm-client-planning div { display: grid; gap: 3px; min-width: 0; }
.vpm-client-planning strong { font-size: 13px; }
.vpm-client-planning small { color: var(--vpm-muted); line-height: 1.45; }
.vpm-client-planning.is-triage {
  border-color: color-mix(in srgb, var(--vpm-warning) 52%, var(--vpm-border));
  background: color-mix(in srgb, var(--vpm-warning) 12%, var(--vpm-panel));
}
.vpm-client-planning.is-triage > .dashicons,
.vpm-task-card__meta.is-planning { color: var(--vpm-warning); }
.vpm-client-planning.is-planned > .dashicons,
.vpm-task-card__meta.is-planned { color: var(--vpm-success); }
.vpm-task-card__meta.is-planning,
.vpm-task-card__meta.is-planned { font-weight: 700; }
.vpm-theme-dark .vpm-client-planning {
  background: color-mix(in srgb, var(--vpm-brand) 11%, var(--vpm-panel));
}

* { box-sizing: border-box; }
html, body.vpm-portal-page { width: 100%; min-height: 100%; margin: 0 !important; padding: 0 !important; overflow: hidden !important; }
body.vpm-portal-page { background: var(--vpm-bg); color: var(--vpm-ink); font-family: var(--vpm-font); }
body.vpm-portal-page #wpadminbar { display: none !important; }
body.vpm-modal-open { overflow: hidden !important; }
button, input, select, textarea { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }

.vpm-portal-app {
  position: fixed;
  inset: 0;
  z-index: 2147480000;
  width: 100vw;
  height: 100dvh;
  background: var(--vpm-bg);
  color: var(--vpm-ink);
  font-family: var(--vpm-font);
  text-rendering: optimizeLegibility;
}

/* Loading and empty states */
.vpm-portal-loading,
.vpm-portal-empty {
  min-height: 100dvh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 10px;
  padding: 32px;
  text-align: center;
  color: var(--vpm-muted);
  background: var(--vpm-bg);
}
.vpm-portal-loading > span {
  width: 42px;
  height: 42px;
  border: 4px solid #dfe6f5;
  border-top-color: var(--vpm-brand);
  border-radius: 50%;
  animation: vpm-spin .75s linear infinite;
  margin-bottom: 8px;
}
.vpm-portal-loading strong,
.vpm-portal-empty h2 { margin: 0; color: var(--vpm-ink); font-size: 22px; }
.vpm-portal-loading small,
.vpm-portal-empty p { margin: 0; color: var(--vpm-muted); font-size: 14px; }
.vpm-empty-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: var(--vpm-brand);
  background: var(--vpm-brand-soft);
}
.vpm-empty-icon .dashicons { width: 24px; height: 24px; font-size: 24px; }
@keyframes vpm-spin { to { transform: rotate(360deg); } }

/* Standalone application shell */
.vpm-shell {
  display: grid;
  grid-template-columns: 284px minmax(0, 1fr);
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.vpm-sidebar {
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: var(--vpm-sidebar);
  color: #fff;
  border-right: 1px solid rgba(255,255,255,.04);
  overflow: hidden;
}
.vpm-sidebar__brand {
  height: 76px;
  flex: 0 0 76px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 20px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.vpm-brand-mark {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: linear-gradient(145deg, #637cff, #3157e7 68%, #2446c8);
  box-shadow: 0 8px 24px rgba(49,87,231,.32);
  color: #fff;
  font-size: 17px;
  font-weight: var(--vpm-font-weight-strong, 500);
}
.vpm-sidebar__brand strong,
.vpm-sidebar__brand small { display: block; }
.vpm-sidebar__brand strong { font-size: 14px; line-height: 1.25; letter-spacing: -.01em; }
.vpm-sidebar__brand small { margin-top: 2px; color: #8e9ab0; font-size: 11px; }
.vpm-mobile-close {
  display: none;
  margin-left: auto;
  border: 0;
  background: transparent;
  color: #9ca6b8;
  cursor: pointer;
}

.vpm-sidebar__section {
  min-height: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 18px 12px 10px;
}
.vpm-sidebar__section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px 10px;
}
.vpm-sidebar__label {
  color: #7f8aa0;
  font-size: 10px;
  line-height: 1;
  font-weight: var(--vpm-font-weight-strong, 500);
  letter-spacing: .13em;
  text-transform: uppercase;
}
.vpm-sidebar__count {
  min-width: 24px;
  padding: 3px 7px;
  border-radius: 99px;
  background: rgba(255,255,255,.07);
  color: #9ca6b8;
  text-align: center;
  font-size: 10px;
  font-weight: var(--vpm-font-weight-strong, 500);
}
.vpm-project-search {
  position: relative;
  margin: 0 4px 10px;
}
.vpm-project-search .dashicons {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 11px;
  width: 16px;
  height: 16px;
  margin-top: -8px;
  color: #778299;
  font-size: 16px;
}
.vpm-project-search input {
  width: 100%;
  height: 38px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  outline: 0;
  padding: 0 12px 0 34px;
  background: rgba(255,255,255,.055);
  color: #fff;
  font-size: 12px;
  transition: border-color .18s, background .18s;
}
.vpm-project-search input::placeholder { color: #788398; }
.vpm-project-search input:focus { border-color: rgba(99,124,255,.55); background: rgba(255,255,255,.08); }
.vpm-project-list {
  min-height: 0;
  flex: 1;
  overflow: auto;
  padding: 0 4px 8px;
  scrollbar-width: thin;
  scrollbar-color: #303a4d transparent;
}
.vpm-project-list::-webkit-scrollbar { width: 7px; }
.vpm-project-list::-webkit-scrollbar-thumb { border-radius: 10px; background: #303a4d; }
.vpm-project-nav-item {
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin: 2px 0;
  padding: 9px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #ccd3df;
  cursor: pointer;
  text-align: left;
  transition: background .15s, color .15s;
}
.vpm-project-nav-item:hover { background: rgba(255,255,255,.055); color: #fff; }
.vpm-project-nav-item.is-active { background: var(--vpm-sidebar-hover); color: #fff; box-shadow: inset 3px 0 0 var(--vpm-project-color, var(--vpm-brand)); }
.vpm-project-nav-item__icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--vpm-project-color, var(--vpm-brand));
  color: #fff;
  font-size: 10px;
  font-style: normal;
  font-weight: var(--vpm-font-weight-strong, 500);
  text-transform: uppercase;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.16);
}
.vpm-project-nav-item__copy { min-width: 0; }
.vpm-project-nav-item__copy strong,
.vpm-project-nav-item__copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vpm-project-nav-item__copy strong { color: inherit; font-size: 12px; font-weight: var(--vpm-font-weight-strong, 500); line-height: 1.3; }
.vpm-project-nav-item__copy small { margin-top: 2px; color: #7f8aa0; font-size: 10px; font-weight: var(--vpm-font-weight-strong, 500); letter-spacing: .04em; }
.vpm-project-nav-item__number {
  min-width: 25px;
  padding: 3px 6px;
  border-radius: 99px;
  background: rgba(255,255,255,.06);
  color: #93a0b4;
  text-align: center;
  font-size: 10px;
  font-weight: var(--vpm-font-weight-strong, 500);
}
.vpm-project-list-empty { padding: 18px 10px; color: #7f8aa0; font-size: 12px; text-align: center; }

.vpm-sidebar__user {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 32px;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.vpm-sidebar__user img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
.vpm-sidebar__user strong,
.vpm-sidebar__user small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vpm-sidebar__user strong { color: #fff; font-size: 12px; }
.vpm-sidebar__user small { margin-top: 2px; color: #7f8aa0; font-size: 10px; }
.vpm-logout {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #8793a7;
  text-decoration: none;
  transition: color .15s, background .15s;
}
.vpm-logout:hover { color: #fff; background: rgba(255,255,255,.07); }
.vpm-logout .dashicons { width: 17px; height: 17px; font-size: 17px; }

/* Workspace */
.vpm-workspace {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--vpm-bg);
}
.vpm-topbar {
  flex: 0 0 auto;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 24px;
  border-bottom: 1px solid var(--vpm-border);
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(10px);
}
.vpm-project-heading {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}
.vpm-mobile-menu {
  display: none;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--vpm-border);
  border-radius: 10px;
  background: #fff;
  color: var(--vpm-ink);
  cursor: pointer;
}
.vpm-project-heading__icon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--vpm-project-color, var(--vpm-brand));
  color: #fff;
  font-size: 12px;
  font-weight: var(--vpm-font-weight-strong, 500);
  text-transform: uppercase;
  box-shadow: 0 7px 18px color-mix(in srgb, var(--vpm-project-color, var(--vpm-brand)) 24%, transparent);
}
.vpm-project-heading__text { min-width: 0; }
.vpm-project-heading__top { display: flex; align-items: center; gap: 8px; min-width: 0; }
.vpm-project-heading h1 {
  max-width: 650px;
  margin: 0;
  overflow: hidden;
  color: var(--vpm-ink);
  font-size: 20px;
  line-height: 1.25;
  font-weight: var(--vpm-font-weight-strong, 500);
  letter-spacing: -.025em;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.vpm-project-heading p {
  max-width: 680px;
  margin: 3px 0 0;
  overflow: hidden;
  color: var(--vpm-muted);
  font-size: 12px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.vpm-role-badge {
  flex: 0 0 auto;
  padding: 4px 7px;
  border-radius: 99px;
  background: var(--vpm-brand-soft);
  color: var(--vpm-brand-strong);
  font-size: 9px;
  line-height: 1;
  font-weight: var(--vpm-font-weight-strong, 500);
  letter-spacing: .07em;
  text-transform: uppercase;
}
.vpm-topbar__actions { flex: 0 0 auto; display: flex; align-items: center; gap: 10px; }
.vpm-view-switch {
  display: flex;
  padding: 3px;
  border: 1px solid var(--vpm-border);
  border-radius: 10px;
  background: var(--vpm-panel-alt);
}
.vpm-view-switch button {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 11px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--vpm-muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: var(--vpm-font-weight-strong, 500);
}
.vpm-view-switch button.is-active { background: #fff; color: var(--vpm-ink); box-shadow: var(--vpm-shadow-sm); }
.vpm-view-switch .dashicons { width: 15px; height: 15px; font-size: 15px; }
.vpm-primary,
.vpm-secondary,
.vpm-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: var(--vpm-font-weight-strong, 500);
  text-decoration: none;
  transition: transform .12s, background .15s, border-color .15s, box-shadow .15s;
}
.vpm-primary {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--vpm-brand);
  background: var(--vpm-brand);
  color: #fff;
  box-shadow: 0 5px 14px rgba(49,87,231,.20);
  font-size: 12px;
}
.vpm-primary:hover { background: var(--vpm-brand-strong); border-color: var(--vpm-brand-strong); transform: translateY(-1px); }
.vpm-primary .dashicons { width: 16px; height: 16px; font-size: 16px; }
.vpm-secondary {
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid var(--vpm-border-strong);
  background: #fff;
  color: var(--vpm-ink);
  font-size: 12px;
}
.vpm-secondary:hover { border-color: #bbc4d4; background: #fafbfc; }
.vpm-ghost { min-height: 36px; padding: 0 10px; border: 0; background: transparent; color: var(--vpm-muted); font-size: 12px; }
.vpm-ghost:hover { color: var(--vpm-ink); background: #f0f2f7; }

.vpm-content {
  min-width: 0;
  min-height: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px 20px 20px;
  overflow: hidden;
}
.vpm-summary {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.vpm-summary-card {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--vpm-border);
  border-radius: 12px;
  background: var(--vpm-panel);
  box-shadow: var(--vpm-shadow-sm);
}
.vpm-summary-card__icon {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: #f0f3f9;
  color: #647089;
}
.vpm-summary-card.is-progress .vpm-summary-card__icon { background: #fff4e5; color: #c86a06; }
.vpm-summary-card.is-completed .vpm-summary-card__icon { background: #e9f8f2; color: var(--vpm-success); }
.vpm-summary-card.is-overdue .vpm-summary-card__icon { background: #fff0f0; color: var(--vpm-danger); }
.vpm-summary-card__icon .dashicons { width: 17px; height: 17px; font-size: 17px; }
.vpm-summary-card strong,
.vpm-summary-card small { display: block; }
.vpm-summary-card strong { color: var(--vpm-ink); font-size: 18px; line-height: 1.1; letter-spacing: -.02em; }
.vpm-summary-card small { margin-top: 3px; color: var(--vpm-muted); font-size: 10px; font-weight: var(--vpm-font-weight-strong, 500); text-transform: uppercase; letter-spacing: .05em; }

.vpm-toolbar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  padding: 7px;
  border: 1px solid var(--vpm-border);
  border-radius: 12px;
  background: var(--vpm-panel);
  box-shadow: var(--vpm-shadow-sm);
}
.vpm-task-search { position: relative; min-width: 240px; flex: 1; max-width: 520px; }
.vpm-task-search .dashicons {
  position: absolute;
  left: 10px;
  top: 50%;
  width: 16px;
  height: 16px;
  margin-top: -8px;
  color: #98a2b3;
  font-size: 16px;
}
.vpm-task-search input,
.vpm-toolbar select {
  height: 34px;
  border: 1px solid transparent;
  border-radius: 8px;
  outline: 0;
  background: var(--vpm-panel-alt);
  color: var(--vpm-ink);
  font-size: 12px;
}
.vpm-task-search input { width: 100%; padding: 0 12px 0 34px; }
.vpm-toolbar select { min-width: 142px; padding: 0 28px 0 10px; }
.vpm-task-search input:focus,
.vpm-toolbar select:focus { border-color: #b9c7f8; background: #fff; box-shadow: 0 0 0 3px rgba(49,87,231,.08); }
.vpm-toolbar__result { margin-left: auto; padding: 0 6px; color: var(--vpm-subtle); font-size: 11px; white-space: nowrap; }

.vpm-state-filter { position: relative; flex: 0 0 auto; }
.vpm-state-filter__button,
.vpm-toolbar__reset {
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--vpm-panel-alt);
  color: var(--vpm-ink);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.vpm-state-filter__button { min-width: 145px; justify-content: flex-start; }
.vpm-state-filter__button > span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vpm-state-filter__button > .dashicons:first-child { color: #667085; }
.vpm-state-filter__button > .dashicons:last-child { margin-left: auto; color: #98a2b3; font-size: 15px; transition: transform .16s ease; }
.vpm-state-filter.is-open .vpm-state-filter__button { border-color: #b9c7f8; background: #fff; box-shadow: 0 0 0 3px rgba(49,87,231,.08); }
.vpm-state-filter.is-open .vpm-state-filter__button > .dashicons:last-child { transform: rotate(180deg); }
.vpm-state-filter__button b {
  min-width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--vpm-primary);
  color: #fff;
  font-size: 10px;
}
.vpm-state-filter__menu {
  position: absolute;
  z-index: 2147481800;
  top: calc(100% + 8px);
  right: 0;
  width: 330px;
  max-height: min(520px, 70vh);
  display: none;
  overflow: hidden;
  border: 1px solid var(--vpm-border);
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(15,23,42,.18);
}
.vpm-state-filter.is-open .vpm-state-filter__menu { display: block; }
.vpm-state-filter__menu > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 14px 10px;
  border-bottom: 1px solid var(--vpm-border);
}
.vpm-state-filter__menu header strong,
.vpm-state-filter__menu header small { display: block; }
.vpm-state-filter__menu header strong { font-size: 13px; }
.vpm-state-filter__menu header small { margin-top: 2px; color: var(--vpm-muted); font-size: 10px; }
.vpm-state-filter__menu header button,
.vpm-state-filter__presets button {
  border: 0;
  background: transparent;
  color: var(--vpm-primary);
  font: inherit;
  font-size: 11px;
  font-weight: var(--vpm-font-weight-strong, 500);
  cursor: pointer;
}
.vpm-state-filter__presets { display: flex; gap: 6px; padding: 10px 12px 4px; }
.vpm-state-filter__presets button { padding: 6px 9px; border-radius: 7px; background: #f1f4ff; }
.vpm-state-filter__options { max-height: 350px; overflow-y: auto; padding: 6px; }
.vpm-state-filter__options label {
  min-height: 38px;
  display: grid;
  grid-template-columns: 18px 9px minmax(0,1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 8px;
  cursor: pointer;
}
.vpm-state-filter__options label:hover { background: var(--vpm-panel-alt); }
.vpm-state-filter__options input { width: 15px; height: 15px; margin: 0; accent-color: var(--vpm-primary); }
.vpm-state-filter__options i { width: 8px; height: 8px; border-radius: 999px; }
.vpm-state-filter__options span { overflow: hidden; color: var(--vpm-ink); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.vpm-state-filter__options small { min-width: 23px; padding: 2px 6px; border-radius: 999px; background: #eef1f6; color: var(--vpm-subtle); font-size: 9px; text-align: center; }
.vpm-toolbar__reset { color: #667085; }
.vpm-toolbar__reset:hover { background: #fff; color: var(--vpm-primary); }
.vpm-toolbar__reset .dashicons { width: 15px; height: 15px; font-size: 15px; }
.vpm-filter-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: -2px 0 1px;
}
.vpm-filter-chips button {
  min-height: 27px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border: 1px solid var(--vpm-border);
  border-radius: 999px;
  background: #fff;
  color: #475467;
  font: inherit;
  font-size: 10px;
  cursor: pointer;
}
.vpm-filter-chips button i { width: 7px; height: 7px; border-radius: 999px; }
.vpm-filter-chips button span { color: #98a2b3; font-size: 14px; line-height: 1; }
.vpm-filter-chips .vpm-filter-chips__clear { border-color: transparent; background: transparent; color: var(--vpm-primary); font-weight: var(--vpm-font-weight-strong, 500); }

.vpm-view-root { min-width: 0; min-height: 0; flex: 1; overflow: hidden; }

/* Board */
.vpm-board {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: stretch;
  gap: 12px;
  overflow: auto;
  padding: 1px 1px 10px;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #c7ceda transparent;
}
.vpm-board::-webkit-scrollbar { width: 9px; height: 9px; }
.vpm-board::-webkit-scrollbar-thumb { border: 2px solid transparent; border-radius: 99px; background: #c7ceda; background-clip: padding-box; }
.vpm-board-column {
  width: 318px;
  min-width: 318px;
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--vpm-border);
  border-radius: 13px;
  background: #eef1f6;
  overflow: hidden;
}
.vpm-board-column__header {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: 9px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 45px;
  padding: 0 12px;
  border-bottom: 1px solid rgba(215,221,234,.9);
  background: rgba(247,248,251,.92);
}
.vpm-board-column__header i { width: 8px; height: 8px; border-radius: 50%; }
.vpm-board-column__header strong { overflow: hidden; color: #344054; font-size: 12px; font-weight: var(--vpm-font-weight-strong, 500); text-overflow: ellipsis; white-space: nowrap; }
.vpm-board-column__header span { min-width: 23px; padding: 3px 7px; border-radius: 99px; background: #e3e7ef; color: #667085; text-align: center; font-size: 10px; font-weight: var(--vpm-font-weight-strong, 500); }
.vpm-board-column__body {
  min-height: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 9px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #c5ccd8 transparent;
  transition: background .15s;
}
.vpm-board-column__body.is-over { background: #e5eaf8; }
.vpm-board-empty {
  min-height: 94px;
  display: grid;
  place-items: center;
  border: 1px dashed #cdd4e0;
  border-radius: 10px;
  color: #929bad;
  font-size: 11px;
}
.vpm-task-card {
  flex: 0 0 auto;
  border: 1px solid #dfe4ec;
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(16,24,40,.035);
  transition: transform .13s, box-shadow .13s, border-color .13s;
}
.vpm-task-card:hover { transform: translateY(-1px); border-color: #cad2e0; box-shadow: 0 8px 18px rgba(16,24,40,.08); }
.vpm-task-card.is-dragging { opacity: .55; transform: rotate(1deg); }
.vpm-task-card > button {
  width: 100%;
  display: block;
  padding: 12px;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: left;
}
.vpm-task-card__key { display: block; margin-bottom: 6px; color: #8b95a7; font-size: 9px; line-height: 1; font-weight: var(--vpm-font-weight-strong, 500); letter-spacing: .05em; text-transform: uppercase; }
.vpm-task-card h3 { margin: 0; color: #273244; font-size: 12px; line-height: 1.45; font-weight: var(--vpm-font-weight-strong, 500); letter-spacing: -.005em; }
.vpm-task-card__labels { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 9px; }
.vpm-task-card__labels span {
  max-width: 115px;
  overflow: hidden;
  padding: 3px 6px;
  border-radius: 5px;
  background: color-mix(in srgb, var(--label, #64748b) 12%, white);
  color: color-mix(in srgb, var(--label, #64748b) 80%, #172033);
  font-size: 9px;
  font-weight: var(--vpm-font-weight-strong, 500);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.vpm-task-card__footer {
  min-height: 24px;
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 11px;
  color: #8b95a7;
  font-size: 9px;
}
.vpm-task-card__meta { display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; }
.vpm-task-card__meta .dashicons { width: 12px; height: 12px; font-size: 12px; }
.vpm-task-card__meta.is-overdue { color: var(--vpm-danger); font-weight: var(--vpm-font-weight-strong, 500); }
.vpm-card-avatars { display: flex; margin-left: auto; padding-left: 6px; }
.vpm-card-avatars img { width: 22px; height: 22px; margin-left: -6px; border: 2px solid #fff; border-radius: 50%; object-fit: cover; background: #fff; }

.vpm-priority {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 7px;
  border-radius: 99px;
  background: #f0f2f6;
  color: #667085;
  font-size: 9px;
  line-height: 1;
  font-weight: var(--vpm-font-weight-strong, 500);
  text-transform: capitalize;
}
.vpm-priority.is-low { background: #ecf7f1; color: #177454; }
.vpm-priority.is-medium { background: #fff6e8; color: #b86100; }
.vpm-priority.is-high { background: #fff0e8; color: #c6531a; }
.vpm-priority.is-urgent { background: #ffeded; color: #c7353d; }

/* List */
.vpm-list-panel {
  width: 100%;
  height: 100%;
  overflow: auto;
  border: 1px solid var(--vpm-border);
  border-radius: 13px;
  background: var(--vpm-panel);
  box-shadow: var(--vpm-shadow-sm);
}
.vpm-list-panel table { width: 100%; min-width: 900px; border-collapse: separate; border-spacing: 0; color: var(--vpm-ink); }
.vpm-list-panel thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  height: 43px;
  padding: 0 14px;
  border-bottom: 1px solid var(--vpm-border);
  background: #f8f9fb;
  color: #7b8495;
  text-align: left;
  font-size: 9px;
  font-weight: var(--vpm-font-weight-strong, 500);
  letter-spacing: .07em;
  text-transform: uppercase;
}
.vpm-list-panel tbody tr { cursor: pointer; transition: background .12s; }
.vpm-list-panel tbody tr:hover { background: #f8faff; }
.vpm-list-panel td { height: 56px; padding: 8px 14px; border-bottom: 1px solid #edf0f5; vertical-align: middle; font-size: 11px; }
.vpm-list-panel tbody tr:last-child td { border-bottom: 0; }
.vpm-list-task { min-width: 260px; }
.vpm-list-task small,
.vpm-list-task strong { display: block; }
.vpm-list-task small { color: #98a2b3; font-size: 9px; font-weight: var(--vpm-font-weight-strong, 500); letter-spacing: .04em; }
.vpm-list-task strong { max-width: 460px; margin-top: 4px; overflow: hidden; color: #273244; font-size: 12px; font-weight: var(--vpm-font-weight-strong, 500); text-overflow: ellipsis; white-space: nowrap; }
.vpm-state-pill { display: inline-flex; align-items: center; gap: 6px; color: #4c586c; font-size: 10px; font-weight: var(--vpm-font-weight-strong, 500); }
.vpm-state-pill i { width: 7px; height: 7px; border-radius: 50%; }
.vpm-list-avatars { display: flex; }
.vpm-list-avatars img { width: 24px; height: 24px; margin-left: -5px; border: 2px solid #fff; border-radius: 50%; object-fit: cover; }
.vpm-list-avatars img:first-child { margin-left: 0; }
.vpm-overdue { color: var(--vpm-danger) !important; font-weight: var(--vpm-font-weight-strong, 500); }
.vpm-list-empty td { height: 160px !important; color: var(--vpm-muted); text-align: center; }

/* Drawers and dialogs */
.vpm-modal-root { position: fixed; inset: 0; z-index: 2147483000; pointer-events: none; }
.vpm-modal-root.is-open { pointer-events: auto; }
.vpm-modal-backdrop { position: absolute; inset: 0; background: rgba(15,23,42,.45); backdrop-filter: blur(2px); opacity: 0; animation: vpm-fade-in .16s forwards; }
@keyframes vpm-fade-in { to { opacity: 1; } }
.vpm-drawer {
  position: absolute;
  top: 0;
  right: 0;
  width: min(760px, 96vw);
  height: 100%;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--vpm-shadow-lg);
  transform: translateX(100%);
  animation: vpm-drawer-in .2s ease-out forwards;
}
@keyframes vpm-drawer-in { to { transform: translateX(0); } }
.vpm-dialog-wrap { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; }
.vpm-dialog {
  width: min(760px, 100%);
  max-height: min(90vh, 860px);
  overflow: auto;
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--vpm-shadow-lg);
  transform: translateY(8px) scale(.99);
  opacity: 0;
  animation: vpm-dialog-in .16s ease-out forwards;
}
@keyframes vpm-dialog-in { to { transform: none; opacity: 1; } }
.vpm-panel-header {
  min-height: 72px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--vpm-border);
}
.vpm-panel-header small { display: block; margin-bottom: 5px; color: #8d97a8; font-size: 9px; font-weight: var(--vpm-font-weight-strong, 500); letter-spacing: .07em; text-transform: uppercase; }
.vpm-panel-header h2 { margin: 0; color: var(--vpm-ink); font-size: 20px; line-height: 1.3; letter-spacing: -.02em; }
.vpm-close {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--vpm-border);
  border-radius: 10px;
  background: #fff;
  color: #647089;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}
.vpm-close:hover { color: var(--vpm-ink); background: #f6f7f9; }

.vpm-task-detail { height: 100%; display: flex; flex-direction: column; }
.vpm-task-detail__body { min-height: 0; flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) 225px; overflow: hidden; }
.vpm-task-detail__main { min-width: 0; overflow-y: auto; padding: 20px 22px 40px; }
.vpm-task-detail__aside { overflow-y: auto; padding: 20px 18px; border-left: 1px solid var(--vpm-border); background: #fafbfc; }
.vpm-task-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin-bottom: 20px; }
.vpm-task-description { color: #3d485a; font-size: 13px; line-height: 1.7; overflow-wrap: anywhere; }
.vpm-task-description p:first-child { margin-top: 0; }
.vpm-task-description img { max-width: 100%; height: auto; border-radius: 10px; }
.vpm-detail-section { margin-top: 28px; }
.vpm-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.vpm-section-heading h3,
.vpm-task-detail__aside h3 { margin: 0; color: #273244; font-size: 12px; font-weight: var(--vpm-font-weight-strong, 500); letter-spacing: -.01em; }
.vpm-upload-button { position: relative; display: inline-flex; align-items: center; gap: 6px; color: var(--vpm-brand); cursor: pointer; font-size: 11px; font-weight: var(--vpm-font-weight-strong, 500); }
.vpm-upload-button input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.vpm-upload-button .dashicons { width: 15px; height: 15px; font-size: 15px; }
.vpm-file-list { display: grid; gap: 7px; }
.vpm-file-item {
  min-width: 0;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 26px;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border: 1px solid var(--vpm-border);
  border-radius: 10px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  transition: border-color .15s, background .15s;
}
.vpm-file-item:hover { border-color: #cbd3e1; background: #fafcff; }
.vpm-file-item.is-missing { background: #fff9f2; color: #9b5a14; }
.vpm-file-item__icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 9px; background: #f0f3f9; color: #637089; }
.vpm-file-item__icon .dashicons { width: 17px; height: 17px; font-size: 17px; }
.vpm-file-item strong,
.vpm-file-item small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vpm-file-item strong { color: #344054; font-size: 11px; }
.vpm-file-item small { margin-top: 3px; color: #8b95a7; font-size: 9px; }
.vpm-file-item > .dashicons { width: 15px; height: 15px; color: #9ba4b3; font-size: 15px; }
.vpm-muted { margin: 8px 0; color: var(--vpm-muted); font-size: 12px; }

.vpm-comment-list { display: grid; gap: 14px; }
.vpm-comment { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 10px; }
.vpm-comment > img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.vpm-comment__bubble { min-width: 0; padding: 10px 12px; border-radius: 0 11px 11px 11px; background: #f5f7fa; }
.vpm-comment__header { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.vpm-comment__header strong { color: #344054; font-size: 10px; }
.vpm-comment__header time { color: #98a2b3; font-size: 9px; }
.vpm-comment__meta { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.vpm-comment__delete { display: inline-grid; place-items: center; width: 26px; height: 26px; padding: 0; border: 1px solid transparent; border-radius: 7px; background: transparent; color: var(--vpm-muted); cursor: pointer; opacity: 0; transition: opacity .15s ease, color .15s ease, background .15s ease, border-color .15s ease; }
.vpm-comment__delete .dashicons { width: 14px; height: 14px; font-size: 14px; line-height: 14px; }
.vpm-comment:hover .vpm-comment__delete, .vpm-comment:focus-within .vpm-comment__delete { opacity: 1; }
.vpm-comment__delete:hover, .vpm-comment__delete:focus-visible { border-color: color-mix(in srgb, var(--vpm-danger) 28%, transparent); background: color-mix(in srgb, var(--vpm-danger) 9%, var(--vpm-panel)); color: var(--vpm-danger); outline: 0; opacity: 1; }
.vpm-comment__delete:disabled { cursor: wait; opacity: .45; }
@media (hover: none) { .vpm-comment__delete { opacity: 1; } }
.vpm-comment__content { color: #4b5567; font-size: 12px; line-height: 1.55; overflow-wrap: anywhere; }
.vpm-comment-form { display: grid; gap: 8px; margin-top: 14px; }
.vpm-comment-form textarea { min-height: 88px; resize: vertical; padding: 10px 12px; border: 1px solid var(--vpm-border-strong); border-radius: 10px; outline: 0; color: var(--vpm-ink); font-size: 12px; }
.vpm-comment-form textarea:focus { border-color: #a9b9f5; box-shadow: 0 0 0 3px rgba(49,87,231,.08); }
.vpm-comment-form .vpm-primary { justify-self: end; }
.vpm-comment-form__actions { display: flex; min-width: 0; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.vpm-comment-notify { display: flex; min-width: 0; align-items: center; gap: 6px; color: var(--vpm-muted); }
.vpm-comment-notify > .dashicons { width: 16px; height: 16px; font-size: 16px; }
.vpm-comment-notify select { width: auto; max-width: min(260px, 100%); min-height: 36px; padding: 0 30px 0 10px; border: 1px solid var(--vpm-border-strong); border-radius: 9px; background: var(--vpm-panel); color: var(--vpm-ink); font-size: 11px; }

.vpm-detail-list { margin: 12px 0 0; }
.vpm-detail-list dt { margin-top: 14px; color: #98a2b3; font-size: 9px; font-weight: var(--vpm-font-weight-strong, 500); letter-spacing: .06em; text-transform: uppercase; }
.vpm-detail-list dt:first-child { margin-top: 0; }
.vpm-detail-list dd { margin: 5px 0 0; color: #3c4759; font-size: 11px; line-height: 1.5; overflow-wrap: anywhere; }

/* Task form */
.vpm-task-form { display: flex; flex-direction: column; }
.vpm-form-body { padding: 20px 22px; }
.vpm-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.vpm-form-grid > label { min-width: 0; display: grid; gap: 6px; }
.vpm-form-grid > label.wide { grid-column: 1 / -1; }
.vpm-form-grid > label > span { color: #667085; font-size: 10px; font-weight: var(--vpm-font-weight-strong, 500); }
.vpm-form-grid input,
.vpm-form-grid select,
.vpm-form-grid textarea {
  width: 100%;
  border: 1px solid var(--vpm-border-strong);
  border-radius: 9px;
  outline: 0;
  background: #fff;
  color: var(--vpm-ink);
  font-size: 12px;
}
.vpm-form-grid input,
.vpm-form-grid select { height: 39px; padding: 0 10px; }
.vpm-form-grid select[multiple] { height: 104px; padding: 8px; }
.vpm-form-grid textarea { min-height: 135px; padding: 10px; resize: vertical; line-height: 1.5; }
.vpm-form-grid input:focus,
.vpm-form-grid select:focus,
.vpm-form-grid textarea:focus { border-color: #9eb0f4; box-shadow: 0 0 0 3px rgba(49,87,231,.08); }
.vpm-form-checks { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px; border: 1px solid var(--vpm-border); border-radius: 9px; background: #fafbfc; }
.vpm-form-checks label { display: inline-flex; align-items: center; gap: 5px; padding: 5px 7px; border-radius: 7px; background: #fff; color: #536074; font-size: 10px; cursor: pointer; }
.vpm-form-checks input { width: 13px; height: 13px; margin: 0; }
.vpm-form-checks i { width: 7px; height: 7px; border-radius: 50%; }
.vpm-form-footer { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 22px; border-top: 1px solid var(--vpm-border); background: #fafbfc; }

/* Toast */
.vpm-toast {
  position: fixed;
  z-index: 2147483640;
  right: 20px;
  bottom: 20px;
  max-width: min(380px, calc(100vw - 40px));
  padding: 11px 14px;
  border: 1px solid #d7e8df;
  border-radius: 10px;
  background: #effaf5;
  color: #176347;
  box-shadow: var(--vpm-shadow-md);
  font-size: 12px;
  font-weight: var(--vpm-font-weight-strong, 500);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .2s, transform .2s;
}
.vpm-toast.is-error { border-color: #f1c9ca; background: #fff1f1; color: #a7272d; }
.vpm-toast.is-visible { opacity: 1; transform: none; }

/* Login */
.vpm-login-screen {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(420px, .9fr);
  background: #f6f8fc;
  font-family: var(--vpm-font);
}
.vpm-login-panel {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 42px 56px 64px;
  background: linear-gradient(145deg, #101828, #17233a 68%, #1f3153);
  color: #fff;
}
.vpm-login-panel::after {
  content: "";
  position: absolute;
  right: -130px;
  bottom: -150px;
  width: 430px;
  height: 430px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(88,113,255,.44), rgba(88,113,255,0) 68%);
}
.vpm-login-brand { position: relative; z-index: 1; display: flex; align-items: center; gap: 11px; font-size: 14px; }
.vpm-login-brand span { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; background: var(--vpm-brand); font-weight: var(--vpm-font-weight-strong, 500); }
.vpm-login-hero-logo { position: absolute; z-index: 1; top: 20%; left: 50%; display: block; width: min(72%, 620px); height: auto; max-height: 29vh; object-fit: contain; transform: translateX(-50%); filter: drop-shadow(0 18px 38px rgba(0,0,0,.2)); }
.vpm-login-copy { position: relative; z-index: 1; max-width: 620px; }
.vpm-login-eyebrow { color: #9bb0ff; font-size: 10px; font-weight: var(--vpm-font-weight-strong, 500); letter-spacing: .12em; text-transform: uppercase; }
.vpm-login-copy h1 { max-width: 620px; margin: 18px 0 16px; color: #fff; font-size: clamp(34px, 4.2vw, 64px); line-height: 1.04; letter-spacing: -.045em; }
.vpm-login-copy p { max-width: 560px; margin: 0; color: #aab5c8; font-size: 16px; line-height: 1.65; }
.vpm-login-form-card { align-self: center; justify-self: center; width: min(430px, calc(100% - 48px)); padding: 38px; border: 1px solid var(--vpm-border); border-radius: 18px; background: #fff; box-shadow: var(--vpm-shadow-md); }
.vpm-login-form-heading h2 { margin: 0; color: var(--vpm-ink); font-size: 26px; letter-spacing: -.03em; }
.vpm-login-form-heading p { margin: 7px 0 26px; color: var(--vpm-muted); font-size: 13px; line-height: 1.5; }
.vpm-login-error { display: flex; align-items: flex-start; gap: 9px; margin: -8px 0 20px; padding: 11px 12px; border: 1px solid #fecaca; border-radius: 10px; background: #fff1f2; color: #a7272d; font-size: 12px; line-height: 1.45; }
.vpm-login-error .dashicons { width: 17px; height: 17px; flex: 0 0 17px; margin-top: 1px; font-size: 17px; }
.vpm-login-form-card form { margin: 0; }
.vpm-login-form-card label { display: block; margin-bottom: 6px; color: #5b6679; font-size: 11px; font-weight: var(--vpm-font-weight-strong, 500); }
.vpm-login-form-card .login-username,
.vpm-login-form-card .login-password { margin: 0 0 16px; }
.vpm-login-form-card input[type="text"],
.vpm-login-form-card input[type="password"] { width: 100%; height: 44px; padding: 0 12px; border: 1px solid var(--vpm-border-strong); border-radius: 10px; outline: 0; font-size: 13px; }
.vpm-login-form-card input[type="text"]:focus,
.vpm-login-form-card input[type="password"]:focus { border-color: #9eb0f4; box-shadow: 0 0 0 3px rgba(49,87,231,.08); }
.vpm-login-form-card .login-submit { margin: 0; }
.vpm-login-form-card input[type="submit"] { width: 100%; height: 44px; border: 0; border-radius: 10px; background: var(--vpm-brand); color: #fff; cursor: pointer; font-size: 12px; font-weight: var(--vpm-font-weight-strong, 500); }
.vpm-login-links { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 15px; font-size: 10px; line-height: 1.4; }
.vpm-login-links a { color: var(--vpm-brand); font-weight: var(--vpm-font-weight-strong, 500); text-decoration: none; }
.vpm-login-links > span { display: inline-flex; align-items: center; justify-content: flex-end; gap: 5px; color: var(--vpm-muted); text-align: right; }
.vpm-login-links .dashicons { width: 13px; height: 13px; flex: 0 0 13px; font-size: 13px; }
.vpm-login-success { display: flex; align-items: flex-start; gap: 11px; margin: -8px 0 20px; padding: 13px; border: 1px solid #b7e4d1; border-radius: 10px; background: #edf9f4; color: #286b55; }
.vpm-login-success > .dashicons { width: 19px; height: 19px; flex: 0 0 19px; margin-top: 1px; font-size: 19px; }
.vpm-login-success div { display: grid; gap: 3px; }
.vpm-login-success strong { color: #1d5946; font-size: 12px; }
.vpm-login-success span { font-size: 10px; line-height: 1.45; }
.vpm-login-primary-link { width: 100%; min-height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 10px; background: var(--vpm-brand); color: #fff; font-size: 12px; font-weight: var(--vpm-font-weight-strong, 500); text-decoration: none; }
.vpm-password-form .login-submit { margin-top: 4px; }

.vpm-sidebar-backdrop { display: none; }

@media (max-width: 1100px) {
  .vpm-shell { grid-template-columns: 250px minmax(0, 1fr); }
  .vpm-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vpm-project-heading p { max-width: 440px; }
  .vpm-task-detail__body { grid-template-columns: minmax(0, 1fr) 205px; }
}

@media (max-width: 820px) {
  .vpm-shell { grid-template-columns: minmax(0, 1fr); }
  .vpm-sidebar {
    position: fixed;
    z-index: 2147482200;
    top: 0;
    bottom: 0;
    left: 0;
    width: min(300px, 88vw);
    transform: translateX(-105%);
    box-shadow: var(--vpm-shadow-lg);
    transition: transform .2s ease;
  }
  .vpm-shell.is-sidebar-open .vpm-sidebar { transform: translateX(0); }
  .vpm-sidebar-backdrop {
    position: fixed;
    z-index: 2147482100;
    inset: 0;
    display: block;
    border: 0;
    background: rgba(15,23,42,.48);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s, visibility .2s;
  }
  .vpm-shell.is-sidebar-open .vpm-sidebar-backdrop { opacity: 1; visibility: visible; }
  .vpm-mobile-close { display: grid; }
  .vpm-mobile-menu { display: grid; }
  .vpm-topbar { min-height: 70px; padding: 11px 14px; }
  .vpm-project-heading__icon { display: none; }
  .vpm-project-heading h1 { max-width: 44vw; font-size: 17px; }
  .vpm-project-heading p { display: none; }
  .vpm-role-badge { display: none; }
  .vpm-topbar__actions { gap: 6px; }
  .vpm-view-switch button { width: 36px; padding: 0; justify-content: center; }
  .vpm-view-switch button span + span,
  .vpm-view-switch button .vpm-label { display: none; }
  .vpm-primary .vpm-button-label { display: none; }
  .vpm-primary { width: 40px; padding: 0; }
  .vpm-content { padding: 12px; gap: 10px; }
  .vpm-summary { gap: 7px; }
  .vpm-summary-card { padding: 10px; }
  .vpm-summary-card__icon { display: none; }
  .vpm-summary-card strong { font-size: 16px; }
  .vpm-toolbar { flex-wrap: wrap; }
  .vpm-task-search { min-width: 100%; max-width: none; }
  .vpm-toolbar select { min-width: 0; flex: 1; }
  .vpm-state-filter { flex: 1; }
  .vpm-state-filter__button { width: 100%; min-width: 0; }
  .vpm-state-filter__menu { left: 0; right: auto; width: min(330px, calc(100vw - 40px)); }
  .vpm-toolbar__reset span:last-child { display: none; }
  .vpm-toolbar__result { display: none; }
  .vpm-board-column { width: 286px; min-width: 286px; }
  .vpm-drawer { width: 100vw; }
  .vpm-task-detail__body { display: block; overflow-y: auto; }
  .vpm-task-detail__main,
  .vpm-task-detail__aside { overflow: visible; }
  .vpm-task-detail__aside { border-top: 1px solid var(--vpm-border); border-left: 0; }
  .vpm-login-screen { grid-template-columns: 1fr; }
  .vpm-login-panel { min-height: 300px; padding: 28px 28px 42px; }
  .vpm-login-hero-logo { top: 72px; width: min(54%, 430px); max-height: 92px; }
	.vpm-login-copy { padding-top: 112px; }
  .vpm-login-copy h1 { font-size: 38px; }
  .vpm-login-copy p { font-size: 14px; }
  .vpm-login-form-card { margin: 34px auto; }
}

@media (max-width: 520px) {
  .vpm-project-heading h1 { max-width: 38vw; }
  .vpm-summary-card small { font-size: 8px; }
  .vpm-toolbar select { width: calc(50% - 5px); flex: none; }
  .vpm-state-filter { width: calc(50% - 5px); flex: none; }
  .vpm-state-filter__menu { position: fixed; top: 112px; left: 12px; right: 12px; width: auto; max-height: calc(100vh - 136px); }
  .vpm-board-column { width: calc(100vw - 40px); min-width: calc(100vw - 40px); }
  .vpm-dialog-wrap { padding: 10px; }
  .vpm-dialog { max-height: 96vh; border-radius: 13px; }
  .vpm-form-grid { grid-template-columns: 1fr; }
  .vpm-form-grid > label.wide { grid-column: auto; }
  .vpm-panel-header { padding: 15px 16px; }
  .vpm-form-body { padding: 16px; }
  .vpm-form-footer { padding: 12px 16px; }
  .vpm-login-panel { min-height: 250px; }
	.vpm-login-hero-logo { top: 66px; width: min(66%, 330px); max-height: 70px; }
	.vpm-login-copy { padding-top: 88px; }
  .vpm-login-copy h1 { font-size: 30px; }
  .vpm-login-copy p { display: none; }
  .vpm-login-form-card { width: calc(100% - 28px); padding: 26px 22px; }
}

/* v0.6 workspace modules */
.vpm-shell { grid-template-columns: var(--vpm-sidebar-width, 282px) minmax(0, 1fr); }
.vpm-brand-mark img { width: 100%; height: 100%; object-fit: contain; border-radius: inherit; }
.vpm-project-tabs {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 2px;
  min-height: 45px;
  padding: 0 20px;
  overflow-x: auto;
  border-bottom: 1px solid var(--vpm-border);
  background: #fff;
  scrollbar-width: none;
}
.vpm-project-tabs::-webkit-scrollbar { display: none; }
.vpm-project-tabs button {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 12px;
  border: 0;
  background: transparent;
  color: var(--vpm-muted);
  font-size: 12px;
  font-weight: var(--vpm-font-weight-strong, 500);
  white-space: nowrap;
  cursor: pointer;
}
.vpm-project-tabs button::after { content: ""; position: absolute; right: 10px; bottom: -1px; left: 10px; height: 2px; border-radius: 2px 2px 0 0; background: transparent; }
.vpm-project-tabs button:hover { color: var(--vpm-ink); }
.vpm-project-tabs button.is-active { color: var(--vpm-brand); }
.vpm-project-tabs button.is-active::after { background: var(--vpm-brand); }
.vpm-project-tabs .dashicons { width: 15px; height: 15px; font-size: 15px; }
.vpm-content { overflow: auto; }
.vpm-view-root { overflow: visible; }
.vpm-panel {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--vpm-border);
  border-radius: 14px;
  background: var(--vpm-panel);
  box-shadow: var(--vpm-shadow-sm);
}
.vpm-section-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 15px; }
.vpm-section-title h2 { margin: 0; color: var(--vpm-ink); font-size: 15px; letter-spacing: -.015em; }
.vpm-section-title p { margin: 4px 0 0; color: var(--vpm-muted); font-size: 12px; line-height: 1.5; }
.vpm-link-button, .vpm-icon-menu, .vpm-sticky-note header button, .vpm-quicklink-card button, .vpm-manage-list article > button {
  border: 0; background: transparent; color: var(--vpm-brand); font-size: 11px; font-weight: var(--vpm-font-weight-strong, 500); cursor: pointer;
}
.vpm-home-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; align-items: start; }
.vpm-home-main { grid-column: 1 / -1; }
.vpm-rich-content { color: #344054; font-size: 13px; line-height: 1.7; }
.vpm-rich-content > :first-child { margin-top: 0; }
.vpm-rich-content > :last-child { margin-bottom: 0; }
.vpm-empty-inline { padding: 14px; border: 1px dashed var(--vpm-border-strong); border-radius: 10px; background: var(--vpm-panel-alt); color: var(--vpm-muted); font-size: 12px; text-align: center; }
.vpm-mini-list { min-width: 0; max-width: 100%; display: grid; gap: 3px; overflow: hidden; }
.vpm-mini-list button { width: 100%; min-width: 0; max-width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; overflow: hidden; box-sizing: border-box; padding: 10px 9px; border: 0; border-bottom: 1px solid #edf0f5; background: transparent; text-align: left; cursor: pointer; }
.vpm-mini-list button:last-child { border-bottom: 0; }
.vpm-mini-list button:hover { background: #f8f9fc; }
.vpm-mini-list button > span { width: 0; min-width: 0; max-width: 100%; flex: 1 1 auto; overflow: hidden; }
.vpm-mini-list small, .vpm-mini-list strong { display: block; }
.vpm-mini-list small { margin-bottom: 2px; color: var(--vpm-subtle); font-size: 9px; font-weight: var(--vpm-font-weight-strong, 500); }
.vpm-mini-list strong { width: 100%; max-width: 100%; overflow: hidden; color: var(--vpm-ink); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.vpm-mini-list time { max-width: 34%; flex: 0 0 auto; overflow: hidden; color: var(--vpm-muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.vpm-note-preview { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
.vpm-quicklink-preview { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.vpm-activity-list { display: grid; gap: 4px; }
.vpm-activity-list article { display: flex; gap: 10px; padding: 9px 5px; border-bottom: 1px solid #edf0f5; }
.vpm-activity-list article:last-child { border-bottom: 0; }
.vpm-activity-icon { width: 28px; height: 28px; flex: 0 0 28px; display: grid; place-items: center; border-radius: 8px; background: var(--vpm-brand-soft); color: var(--vpm-brand); }
.vpm-activity-icon .dashicons { width: 14px; height: 14px; font-size: 14px; }
.vpm-activity-list strong { font-size: 11px; }
.vpm-activity-list p { margin: 1px 0; color: var(--vpm-muted); font-size: 11px; }
.vpm-activity-list time { color: var(--vpm-subtle); font-size: 9px; }

.vpm-calendar-panel { min-width: 900px; border: 1px solid var(--vpm-border); border-radius: 14px; background: #fff; overflow: hidden; box-shadow: var(--vpm-shadow-sm); }
.vpm-calendar-panel > header { display: flex; align-items: center; justify-content: center; gap: 18px; padding: 12px; border-bottom: 1px solid var(--vpm-border); }
.vpm-calendar-panel h2 { min-width: 180px; margin: 0; text-align: center; font-size: 15px; }
.vpm-calendar-weekdays, .vpm-calendar-grid { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); }
.vpm-calendar-weekdays { border-bottom: 1px solid var(--vpm-border); background: var(--vpm-panel-alt); }
.vpm-calendar-weekdays span { padding: 8px; color: var(--vpm-muted); font-size: 9px; font-weight: var(--vpm-font-weight-strong, 500); text-align: center; text-transform: uppercase; }
.vpm-calendar-day, .vpm-calendar-grid > .is-empty { min-height: 108px; padding: 7px; border-right: 1px solid var(--vpm-border); border-bottom: 1px solid var(--vpm-border); }
.vpm-calendar-day:nth-child(7n), .vpm-calendar-grid > .is-empty:nth-child(7n) { border-right: 0; }
.vpm-calendar-day > strong { display: grid; place-items: center; width: 23px; height: 23px; border-radius: 50%; color: var(--vpm-muted); font-size: 10px; }
.vpm-calendar-day.is-today > strong { background: var(--vpm-brand); color: #fff; }
.vpm-calendar-day > div { display: grid; gap: 3px; margin-top: 4px; }
.vpm-calendar-day button { overflow: hidden; padding: 4px 5px; border: 0; border-left: 2px solid var(--vpm-brand); border-radius: 4px; background: var(--vpm-brand-soft); color: #26324b; font-size: 9px; text-align: left; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
.vpm-calendar-day button.is-overdue { border-left-color: var(--vpm-danger); background: #fff0f0; }
.vpm-calendar-day small { color: var(--vpm-subtle); font-size: 8px; }

.vpm-entity-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(290px,1fr)); gap: 13px; }
.vpm-entity-card { padding: 17px; border: 1px solid var(--vpm-border); border-radius: 14px; background: #fff; box-shadow: var(--vpm-shadow-sm); }
.vpm-entity-card header { display: flex; align-items: center; gap: 10px; }
.vpm-entity-card header > .dashicons { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; background: var(--vpm-brand-soft); color: var(--vpm-brand); font-size: 17px; line-height: 34px; }
.vpm-entity-card header > div { min-width: 0; flex: 1; }
.vpm-entity-card h2 { margin: 0; overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.vpm-entity-card header small { color: var(--vpm-muted); font-size: 9px; text-transform: uppercase; }
.vpm-entity-card > p { min-height: 38px; margin: 13px 0; color: var(--vpm-muted); font-size: 11px; line-height: 1.55; }
.vpm-progress { height: 6px; overflow: hidden; border-radius: 99px; background: #edf0f6; }
.vpm-progress i { display: block; height: 100%; border-radius: inherit; background: var(--vpm-brand); }
.vpm-entity-card footer { display: flex; justify-content: space-between; gap: 8px; margin-top: 9px; color: var(--vpm-muted); font-size: 10px; }

.vpm-notes-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(250px,1fr)); gap: 14px; align-items: start; }
.vpm-sticky-note { min-height: 180px; padding: 16px; border: 1px solid color-mix(in srgb, var(--note-color) 70%, #b6a74e); border-radius: 7px 15px 10px 13px; background: var(--note-color); box-shadow: 0 8px 20px rgba(66,58,12,.10); transform: rotate(-.15deg); }
.vpm-sticky-note:nth-child(2n) { transform: rotate(.2deg); }
.vpm-sticky-note header { display: flex; justify-content: space-between; gap: 8px; }
.vpm-sticky-note header strong { color: #443f21; font-size: 13px; }
.vpm-sticky-note header button { color: #746e49; }
.vpm-sticky-note > div { margin-top: 13px; color: #514b2b; font-size: 12px; line-height: 1.6; }
.vpm-sticky-note footer { display: flex; justify-content: space-between; gap: 8px; margin-top: 18px; color: rgba(68,63,33,.65); font-size: 9px; text-transform: uppercase; }

.vpm-quicklinks-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(260px,1fr)); gap: 12px; }
.vpm-quicklink-card { position: relative; display: flex; align-items: center; gap: 12px; min-width: 0; padding: 14px; border: 1px solid var(--vpm-border); border-radius: 12px; background: #fff; color: var(--vpm-ink); text-decoration: none; box-shadow: var(--vpm-shadow-sm); }
.vpm-quicklink-card:hover { border-color: #bdc8f1; box-shadow: 0 8px 20px rgba(49,87,231,.08); }
.vpm-quicklink-card > .dashicons:first-child { width: 36px; height: 36px; flex: 0 0 36px; display: grid; place-items: center; border-radius: 10px; background: var(--vpm-brand-soft); color: var(--vpm-brand); font-size: 17px; line-height: 36px; }
.vpm-quicklink-card > div { min-width: 0; flex: 1; }
.vpm-quicklink-card strong, .vpm-quicklink-card small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vpm-quicklink-card strong { font-size: 12px; }
.vpm-quicklink-card small { margin-top: 3px; color: var(--vpm-muted); font-size: 10px; }
.vpm-quicklink-card button { position: relative; z-index: 2; padding: 8px; color: var(--vpm-muted); }

.vpm-info-grid, .vpm-settings-layout { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; align-items: start; }
.vpm-information-form { display: grid; gap: 14px; }
.vpm-information-form label, .vpm-simple-form label, .vpm-settings-fields > label { display: grid; gap: 6px; color: var(--vpm-ink); font-size: 11px; font-weight: var(--vpm-font-weight-strong, 500); }
.vpm-information-form textarea, .vpm-simple-form input, .vpm-simple-form textarea, .vpm-simple-form select, .vpm-settings-fields input, .vpm-settings-fields select { width: 100%; border: 1px solid var(--vpm-border-strong); border-radius: 9px; background: #fff; color: var(--vpm-ink); font-size: 12px; }
.vpm-information-form textarea, .vpm-simple-form textarea { padding: 11px; resize: vertical; }
.vpm-simple-form input, .vpm-simple-form select, .vpm-settings-fields input, .vpm-settings-fields select { min-height: 38px; padding: 0 10px; }
.vpm-settings-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; }
.vpm-settings-fields fieldset { min-width: 0; grid-column: 1/-1; margin: 0; padding: 12px; border: 1px solid var(--vpm-border); border-radius: 10px; }
.vpm-settings-fields legend { padding: 0 5px; color: var(--vpm-muted); font-size: 10px; font-weight: var(--vpm-font-weight-strong, 500); text-transform: uppercase; }
.vpm-view-checkboxes { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 7px; }
.vpm-view-checkboxes label { display: flex; align-items: center; gap: 7px; padding: 9px; border: 1px solid var(--vpm-border); border-radius: 8px; background: var(--vpm-panel-alt); color: var(--vpm-ink); font-size: 10px; font-weight: var(--vpm-font-weight-strong, 500); }
.vpm-view-checkboxes .dashicons { width: 14px; height: 14px; color: var(--vpm-muted); font-size: 14px; }
.vpm-check-row { display: inline-flex !important; align-items: center; gap: 7px; margin-right: 18px; color: var(--vpm-ink); font-size: 11px; }
.vpm-manage-list { display: grid; gap: 5px; }
.vpm-manage-list article { display: flex; align-items: center; gap: 9px; padding: 9px 7px; border-bottom: 1px solid #edf0f5; }
.vpm-manage-list article > i { width: 10px; height: 10px; border-radius: 50%; }
.vpm-manage-list article > div { min-width: 0; flex: 1; }
.vpm-manage-list strong, .vpm-manage-list small { display: block; }
.vpm-manage-list strong { font-size: 11px; }
.vpm-manage-list small { margin-top: 2px; overflow: hidden; color: var(--vpm-muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.vpm-empty-state { min-height: 230px; display: grid; place-content: center; justify-items: center; text-align: center; color: var(--vpm-muted); }
.vpm-empty-state > .dashicons { width: 34px; height: 34px; margin-bottom: 9px; color: var(--vpm-brand); font-size: 34px; }
.vpm-empty-state h2 { margin: 0; color: var(--vpm-ink); font-size: 16px; }
.vpm-empty-state p { max-width: 430px; margin: 7px 0 0; font-size: 12px; }
.vpm-danger-link { border: 0; background: transparent; color: var(--vpm-danger); cursor: pointer; font-size: 11px; font-weight: var(--vpm-font-weight-strong, 500); }
.vpm-simple-form .vpm-form-body { display: grid; gap: 13px; }

[data-density="comfortable"] .vpm-task-card button { padding: 16px; }
[data-density="comfortable"] .vpm-board-column { width: 340px; min-width: 340px; }

@media (max-width: 1100px) {
  .vpm-home-grid, .vpm-info-grid, .vpm-settings-layout { grid-template-columns: 1fr; }
  .vpm-home-main { grid-column: auto; }
}
@media (max-width: 820px) {
  .vpm-project-tabs { padding: 0 10px; }
  .vpm-project-tabs button { padding: 0 10px; }
  .vpm-project-tabs button span:last-child { display: none; }
  .vpm-project-tabs .dashicons { width: 17px; height: 17px; font-size: 17px; }
  .vpm-home-grid { grid-template-columns: 1fr; }
  .vpm-note-preview, .vpm-quicklink-preview { grid-template-columns: 1fr; }
  .vpm-settings-fields, .vpm-view-checkboxes { grid-template-columns: 1fr; }
  .vpm-calendar-panel { min-width: 760px; }
}
.vpm-members-settings { grid-column: 1/-1; }
.vpm-member-list { display: grid; gap: 5px; }
.vpm-member-list article { display: grid; grid-template-columns: 38px minmax(0,1fr) 150px auto; gap: 10px; align-items: center; padding: 9px 6px; border-bottom: 1px solid #edf0f5; }
.vpm-member-list img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.vpm-member-list strong, .vpm-member-list small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vpm-member-list strong { font-size: 11px; }
.vpm-member-list small { margin-top: 2px; color: var(--vpm-muted); font-size: 9px; }
.vpm-member-list select { min-height: 34px; border: 1px solid var(--vpm-border-strong); border-radius: 8px; font-size: 10px; }
.vpm-member-list button { border: 0; background: transparent; color: var(--vpm-danger); font-size: 10px; font-weight: var(--vpm-font-weight-strong, 500); cursor: pointer; }
.vpm-member-add-form { display: grid; grid-template-columns: minmax(0,1fr) 170px auto; gap: 9px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--vpm-border); }
.vpm-member-add-form select { min-height: 38px; border: 1px solid var(--vpm-border-strong); border-radius: 9px; background: #fff; font-size: 11px; }
@media (max-width: 700px) { .vpm-member-list article { grid-template-columns: 34px minmax(0,1fr); } .vpm-member-list select, .vpm-member-list button { grid-column: 2; } .vpm-member-add-form { grid-template-columns: 1fr; } }

.vpm-member-preview{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:10px}.vpm-member-preview article{display:flex;align-items:center;gap:10px;padding:10px;border:1px solid var(--vpm-border,#e5e7eb);border-radius:12px;background:#fff}.vpm-member-preview img{width:34px;height:34px;border-radius:50%;object-fit:cover}.vpm-member-preview strong,.vpm-member-preview small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.vpm-member-preview small{color:var(--vpm-muted,#64748b);font-size:11px;margin-top:2px}.vpm-member-preview__more{display:flex;align-items:center;color:var(--vpm-muted,#64748b)}

/* v0.7 personal workspace */
.vpm-global-nav{display:grid;gap:6px;padding:12px 12px 4px}.vpm-global-nav button{border:0;background:transparent;color:#cbd5e1;display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:9px;text-align:left;cursor:pointer;font-weight: var(--vpm-font-weight-strong, 500)}.vpm-global-nav button:hover,.vpm-global-nav button.is-active{background:rgba(255,255,255,.09);color:#fff}.vpm-global-nav button b{margin-left:auto;background:rgba(255,255,255,.1);padding:2px 7px;border-radius:20px;font-size:11px}.vpm-profile-hero{display:flex;align-items:center;gap:18px;background:#fff;border:1px solid #e2e8f0;border-radius:14px;padding:22px;margin-bottom:18px}.vpm-profile-hero img{width:72px;height:72px;border-radius:50%;object-fit:cover}.vpm-profile-hero div{flex:1}.vpm-profile-hero h2{margin:0 0 4px;font-size:23px}.vpm-profile-hero p,.vpm-profile-hero span{margin:0;color:#64748b}.vpm-grouped-lists{display:grid;gap:20px}.vpm-list-group>header{display:flex;align-items:center;gap:9px;padding:4px 4px 9px}.vpm-list-group>header i,.vpm-project-cell i{width:9px;height:9px;border-radius:50%;display:inline-block}.vpm-list-group>header h2{font-size:15px;margin:0}.vpm-list-group>header span{background:#e2e8f0;border-radius:20px;padding:2px 8px;font-size:11px}.vpm-project-cell{display:inline-flex;align-items:center;gap:8px}.vpm-mini-task-list{display:grid;gap:7px}.vpm-mini-task-list button{border:1px solid #e2e8f0;background:#fff;border-radius:9px;padding:10px;display:flex;align-items:center;gap:10px;text-align:left;cursor:pointer}.vpm-mini-task-list button i{width:8px;height:32px;border-radius:8px}.vpm-mini-task-list button span{display:grid}.vpm-mini-task-list button small{color:#64748b;margin-top:3px}@media(max-width:700px){.vpm-profile-hero{align-items:flex-start;flex-wrap:wrap}.vpm-profile-hero button{width:100%}}

/* v0.7.2 personal profile persistence and structured quicklinks */
.vpm-profile-links-editor{display:grid;gap:12px;padding:14px;border:1px solid var(--vpm-border);border-radius:12px;background:#f8fafc}.vpm-profile-links-editor>header{display:flex;align-items:center;justify-content:space-between;gap:16px}.vpm-profile-links-editor>header>div{display:grid;gap:3px}.vpm-profile-links-editor>header strong{font-size:13px}.vpm-profile-links-editor>header small{color:var(--vpm-muted);font-size:11px}.vpm-profile-links-editor [data-profile-links]{display:grid;gap:9px}.vpm-profile-link-row{display:grid;grid-template-columns:minmax(150px,.7fr) minmax(240px,1.3fr) auto;gap:9px;align-items:end;padding:10px;border:1px solid var(--vpm-border);border-radius:10px;background:#fff}.vpm-profile-link-row label{margin:0}.vpm-profile-link-remove{width:38px;height:38px;border:1px solid #fecaca;border-radius:9px;background:#fff;color:#dc2626;cursor:pointer;display:grid;place-items:center}.vpm-profile-link-remove:hover{background:#fef2f2}.vpm-profile-link-remove .dashicons{margin:0}.vpm-profile-hero img{background:#e2e8f0}
@media(max-width:700px){.vpm-profile-links-editor>header{align-items:flex-start;flex-direction:column}.vpm-profile-links-editor>header button{width:100%}.vpm-profile-link-row{grid-template-columns:1fr}.vpm-profile-link-remove{width:100%}}


/* v0.8 design system and responsive hardening */
.vpm-width-contained .vpm-content>.vpm-view-root{width:100%;max-width:var(--vpm-content-max,1680px);margin-inline:auto}.vpm-width-contained .vpm-project-tabs{padding-inline:max(20px,calc((100% - var(--vpm-content-max,1680px))/2 + 20px))}.vpm-buttons-square .vpm-primary,.vpm-buttons-square .vpm-secondary,.vpm-buttons-square .vpm-ghost,.vpm-buttons-square .vpm-view-switch,.vpm-buttons-square .vpm-view-switch button,.vpm-buttons-square .vpm-toolbar,.vpm-buttons-square .vpm-task-card,.vpm-buttons-square .vpm-board-column,.vpm-buttons-square .vpm-list-panel{border-radius:2px}.vpm-buttons-pill .vpm-primary,.vpm-buttons-pill .vpm-secondary,.vpm-buttons-pill .vpm-ghost{border-radius:999px}.vpm-actions-left .vpm-topbar__actions{order:-1}.vpm-actions-left .vpm-topbar{justify-content:flex-start}.vpm-actions-floating .vpm-topbar__actions{position:fixed;z-index:2147482500;right:24px;bottom:24px}.vpm-actions-floating .vpm-topbar__actions:empty{display:none}.vpm-actions-floating .vpm-topbar__actions .vpm-primary{min-width:132px;min-height:46px;box-shadow:var(--vpm-shadow-lg)}.vpm-toolbar-flat .vpm-toolbar{padding-inline:0;border-color:transparent;background:transparent;box-shadow:none}.vpm-scale-compact .vpm-content{padding:12px 14px 14px;gap:10px}.vpm-scale-compact .vpm-topbar{min-height:62px;padding-block:8px}.vpm-scale-compact .vpm-project-tabs{min-height:39px}.vpm-scale-compact .vpm-project-tabs button{min-height:38px}.vpm-scale-compact .vpm-task-card>button{padding:9px}.vpm-scale-large .vpm-content{padding:24px 28px 28px;gap:18px}.vpm-scale-large .vpm-topbar{min-height:86px}.vpm-scale-large .vpm-project-heading h1{font-size:22px}.vpm-scale-large .vpm-task-card h3{font-size:13px}.vpm-panel,.vpm-section-card,.vpm-home-card,.vpm-profile-hero,.vpm-summary-card,.vpm-list-panel,.vpm-board-column,.vpm-toolbar{border-radius:var(--vpm-radius)}

@media (max-width: 1280px){.vpm-entity-grid{grid-template-columns:repeat(auto-fill,minmax(250px,1fr))}.vpm-quicklinks-grid{grid-template-columns:repeat(auto-fill,minmax(220px,1fr))}.vpm-notes-grid{grid-template-columns:repeat(auto-fill,minmax(220px,1fr))}}
@media (max-width: 1024px){.vpm-shell{grid-template-columns:240px minmax(0,1fr)}.vpm-project-heading p{max-width:360px}.vpm-content{padding:14px}.vpm-home-grid,.vpm-info-grid,.vpm-settings-layout{grid-template-columns:1fr}.vpm-home-main{grid-column:auto}.vpm-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.vpm-calendar-panel{overflow:auto}.vpm-calendar-weekdays,.vpm-calendar-grid{min-width:760px}}
@media (max-width: 820px){
  .vpm-mobile-sidebar-fullscreen .vpm-sidebar{width:100vw;max-width:none}.vpm-mobile-sidebar-fullscreen .vpm-sidebar__brand{padding-inline:20px}.vpm-topbar{position:relative;z-index:20;min-height:64px;gap:8px}.vpm-project-heading{min-width:0;flex:1}.vpm-project-heading h1{max-width:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.vpm-topbar__actions{flex:0 0 auto}.vpm-project-tabs{padding:0 10px;scroll-padding-inline:10px}.vpm-project-tabs button{padding-inline:10px;white-space:nowrap}.vpm-content{padding:10px;overflow:auto}.vpm-view-root{overflow:visible;min-height:100%}.vpm-board{min-height:calc(100dvh - 190px);scroll-snap-type:x proximity}.vpm-board-column{height:calc(100dvh - 205px);scroll-snap-align:start}.vpm-toolbar{position:relative;top:auto;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px;padding:10px}.vpm-task-search{grid-column:1/-1}.vpm-state-filter,.vpm-toolbar select{width:100%;min-width:0;max-width:none}.vpm-toolbar__reset{width:100%;justify-content:center}.vpm-filter-chips{padding-inline:2px}.vpm-profile-hero{padding:16px}.vpm-profile-hero img{width:58px;height:58px}.vpm-actions-floating .vpm-topbar__actions{right:14px;bottom:max(14px,env(safe-area-inset-bottom))}.vpm-actions-floating .vpm-topbar__actions .vpm-primary{min-width:48px;width:48px;padding:0}.vpm-actions-floating .vpm-topbar__actions .vpm-primary span:last-child{display:none}}
@media (max-width: 640px){
  .vpm-topbar{padding:9px 10px}.vpm-mobile-menu{width:38px;height:38px}.vpm-project-heading__text{min-width:0}.vpm-project-heading h1{font-size:16px}.vpm-topbar__actions .vpm-primary{width:38px;height:38px;min-height:38px;padding:0}.vpm-topbar__actions .vpm-primary span:last-child{display:none}.vpm-summary{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.vpm-summary-card{min-height:72px;padding:10px}.vpm-summary-card__icon{display:none}.vpm-summary-card strong{font-size:19px}.vpm-toolbar{grid-template-columns:1fr}.vpm-task-search,.vpm-state-filter,.vpm-toolbar select,.vpm-toolbar button{grid-column:auto;width:100%!important}.vpm-state-filter__menu{position:fixed;top:76px;left:10px;right:10px;width:auto;max-height:calc(100dvh - 96px)}.vpm-board{padding-bottom:max(14px,env(safe-area-inset-bottom))}.vpm-board-column,[data-density=comfortable] .vpm-board-column{width:calc(100vw - 28px);min-width:calc(100vw - 28px);height:calc(100dvh - 245px)}
  .vpm-list-panel{height:auto;overflow:visible;border:0;background:transparent;box-shadow:none}.vpm-list-panel table{display:block;min-width:0}.vpm-list-panel thead{display:none}.vpm-list-panel tbody{display:grid;gap:9px}.vpm-list-panel tr{display:grid;padding:11px 12px;border:1px solid var(--vpm-border);border-radius:var(--vpm-radius);background:var(--vpm-panel);box-shadow:var(--vpm-shadow-sm)}.vpm-list-panel td{height:auto!important;min-width:0;padding:5px 0;border:0!important;display:grid;grid-template-columns:92px minmax(0,1fr);align-items:center;gap:8px}.vpm-list-panel td:before{color:var(--vpm-muted);font-size:9px;font-weight: var(--vpm-font-weight-strong, 500);letter-spacing:.06em;text-transform:uppercase}.vpm-list-panel .vpm-list-task{display:block;grid-column:1/-1;padding-bottom:9px;border-bottom:1px solid var(--vpm-border)!important}.vpm-list-task strong{max-width:none;white-space:normal}.vpm-project-task-table td:nth-child(2):before{content:'Status'}.vpm-project-task-table td:nth-child(3):before{content:'Priority'}.vpm-project-task-table td:nth-child(4):before{content:'Estimate'}.vpm-project-task-table td:nth-child(5):before{content:'People'}.vpm-project-task-table td:nth-child(6):before{content:'Due'}.vpm-project-task-table td:nth-child(7):before{content:'Files'}.vpm-mywork-table td:nth-child(2):before{content:'Project'}.vpm-mywork-table td:nth-child(3):before{content:'Status'}.vpm-mywork-table td:nth-child(4):before{content:'Priority'}.vpm-mywork-table td:nth-child(5):before{content:'Due'}.vpm-list-empty td{display:block!important;grid-column:1/-1;text-align:center}.vpm-grouped-lists{gap:14px}.vpm-list-group>header{position:sticky;top:0;z-index:4;padding:8px 4px;background:var(--vpm-bg)}
  .vpm-home-grid,.vpm-note-preview,.vpm-quicklink-preview,.vpm-info-grid,.vpm-settings-layout,.vpm-settings-fields,.vpm-view-checkboxes,.vpm-entity-grid,.vpm-notes-grid,.vpm-quicklinks-grid{grid-template-columns:1fr}.vpm-panel-header,.vpm-home-card>header{align-items:flex-start;flex-wrap:wrap}.vpm-calendar-weekdays,.vpm-calendar-grid{min-width:680px}.vpm-dialog-wrap{align-items:flex-end;padding:0}.vpm-dialog{width:100%;max-width:none;max-height:94dvh;border-radius:18px 18px 0 0}.vpm-form-footer{padding-bottom:max(12px,env(safe-area-inset-bottom))}.vpm-toast{right:10px;bottom:max(10px,env(safe-area-inset-bottom));max-width:calc(100vw - 20px)}
}
@media (max-width: 420px){.vpm-sidebar{width:92vw}.vpm-summary-card{min-height:64px}.vpm-summary-card strong{font-size:17px}.vpm-summary-card small{font-size:8px}.vpm-project-tabs button span:last-child{font-size:11px}.vpm-profile-hero{display:grid;grid-template-columns:50px minmax(0,1fr);gap:12px}.vpm-profile-hero img{width:50px;height:50px}.vpm-profile-hero button{grid-column:1/-1}.vpm-list-panel td{grid-template-columns:78px minmax(0,1fr)}.vpm-login-panel{padding:22px;min-height:220px}.vpm-login-copy h1{font-size:26px}.vpm-login-form-card{margin:20px auto;padding:22px 18px}.vpm-actions-floating .vpm-topbar__actions{right:10px}}
@media (hover:none){.vpm-task-card:hover{transform:none}.vpm-primary:hover{transform:none}}
@media (prefers-reduced-motion:reduce){.vpm-sidebar,.vpm-toast,.vpm-modal-backdrop,.vpm-task-card,.vpm-primary{transition:none!important;animation:none!important}}
/* Bind configurable color tokens to legacy component surfaces. */
.vpm-topbar,.vpm-project-tabs,.vpm-toolbar,.vpm-summary-card,.vpm-task-card,.vpm-list-panel,.vpm-home-card,.vpm-profile-hero,.vpm-panel,.vpm-section-card,.vpm-info-card,.vpm-settings-card,.vpm-dialog,.vpm-drawer,.vpm-note-card,.vpm-quicklink-card,.vpm-entity-card{background-color:var(--vpm-panel)}
.vpm-board-column,.vpm-board-column__header,.vpm-list-panel thead th,.vpm-view-switch,.vpm-form-footer,.vpm-toolbar-flat .vpm-toolbar{background-color:var(--vpm-panel-alt)}
.vpm-task-card h3,.vpm-list-task strong,.vpm-project-heading h1,.vpm-profile-hero h2,.vpm-panel-header h2,.vpm-home-card h2{color:var(--vpm-ink)}
.vpm-project-heading p,.vpm-toolbar__result,.vpm-profile-hero p,.vpm-profile-hero span{color:var(--vpm-muted)}
.vpm-toolbar input,.vpm-toolbar select,.vpm-form-grid input,.vpm-form-grid select,.vpm-form-grid textarea,.vpm-settings-fields input,.vpm-settings-fields select,.vpm-information-form textarea,.vpm-simple-form input,.vpm-simple-form textarea,.vpm-simple-form select{background:var(--vpm-panel);color:var(--vpm-ink);border-color:var(--vpm-border)}
.vpm-task-card,.vpm-board-column,.vpm-list-panel,.vpm-summary-card,.vpm-toolbar,.vpm-topbar,.vpm-project-tabs,.vpm-profile-hero,.vpm-dialog,.vpm-drawer{border-color:var(--vpm-border)}

/* --------------------------------------------------------------------------
 * Smooth workspace (v0.9.0)
 * A lighter, denser application shell inspired by focused product workspaces.
 * -------------------------------------------------------------------------- */
.vpm-workspace-smooth {
  --vpm-smooth-sidebar-width: clamp(204px, var(--vpm-sidebar-width, 220px), 238px);
  --vpm-smooth-content: 760px;
}
.vpm-workspace-smooth .vpm-shell {
  grid-template-columns: var(--vpm-smooth-sidebar-width) minmax(0, 1fr);
  background: var(--vpm-panel);
}
.vpm-workspace-smooth .vpm-sidebar {
  background: var(--vpm-panel);
  color: var(--vpm-ink);
  border-right: 1px solid var(--vpm-border);
  box-shadow: none;
}
.vpm-workspace-smooth .vpm-sidebar__brand {
  height: 58px;
  flex-basis: 58px;
  gap: 9px;
  padding: 0 12px;
  border-bottom-color: var(--vpm-border);
}
.vpm-workspace-smooth .vpm-brand-mark {
  width: 25px;
  height: 25px;
  flex-basis: 25px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--vpm-brand) 12%, var(--vpm-panel));
  box-shadow: none;
  color: var(--vpm-brand);
  font-size: 11px;
}
.vpm-workspace-smooth .vpm-brand-mark img { width: 19px; height: 19px; object-fit: contain; }
.vpm-workspace-smooth .vpm-sidebar__brand strong { color: var(--vpm-ink); font-size: 12px; }
.vpm-workspace-smooth .vpm-sidebar__brand small { color: var(--vpm-muted); font-size: 9px; }
.vpm-workspace-smooth .vpm-global-nav {
  gap: 2px;
  padding: 10px 7px 4px;
}
.vpm-workspace-smooth .vpm-global-nav button {
  min-height: 34px;
  gap: 8px;
  padding: 7px 9px;
  border-radius: 6px;
  color: #4c5158;
  font-size: 11px;
  font-weight: var(--vpm-font-weight-control, 500);
}
.vpm-workspace-smooth .vpm-global-nav button .dashicons {
  width: 14px;
  height: 14px;
  font-size: 14px;
  color: #686e76;
}
.vpm-workspace-smooth .vpm-global-nav button:hover,
.vpm-workspace-smooth .vpm-global-nav button.is-active {
  background: color-mix(in srgb, var(--vpm-ink) 6%, transparent);
  color: var(--vpm-ink);
}
.vpm-workspace-smooth .vpm-global-nav button.is-active .dashicons { color: var(--vpm-brand); }
.vpm-workspace-smooth .vpm-global-nav button b {
  background: #e5f4fb;
  color: #37748d;
  padding: 1px 5px;
  font-size: 9px;
}
.vpm-workspace-smooth .vpm-sidebar__section { padding: 12px 7px 6px; }
.vpm-workspace-smooth .vpm-sidebar__section-head { padding: 0 7px 6px; }
.vpm-workspace-smooth .vpm-sidebar__label { color: #999ea5; font-size: 9px; letter-spacing: .08em; }
.vpm-workspace-smooth .vpm-sidebar__count { background: #f1f3f5; color: #70757c; font-size: 9px; }
.vpm-workspace-smooth .vpm-project-search { margin: 0 2px 7px; }
.vpm-workspace-smooth .vpm-project-search input {
  height: 31px;
  border-color: var(--vpm-border);
  border-radius: 5px;
  padding-left: 29px;
  background: var(--vpm-panel);
  color: var(--vpm-ink);
  font-size: 10px;
}
.vpm-workspace-smooth .vpm-project-search input::placeholder { color: #9ca0a6; }
.vpm-workspace-smooth .vpm-project-search input:focus { border-color: color-mix(in srgb, var(--vpm-brand) 52%, var(--vpm-border)); background: #fff; }
.vpm-workspace-smooth .vpm-project-search .dashicons { left: 9px; color: #90959b; }
.vpm-workspace-smooth .vpm-project-list { padding: 0 2px 6px; scrollbar-color: #d5d8dc transparent; }
.vpm-workspace-smooth .vpm-project-list::-webkit-scrollbar-thumb { background: #d5d8dc; }
.vpm-workspace-smooth .vpm-project-nav-item {
  grid-template-columns: 24px minmax(0, 1fr) auto;
  gap: 7px;
  margin: 0;
  padding: 5px 7px;
  border-radius: 5px;
  color: #4f545b;
}
.vpm-workspace-smooth .vpm-project-nav-item:hover { background: #f5f6f7; color: var(--vpm-ink); }
.vpm-workspace-smooth .vpm-project-nav-item.is-active {
  background: #eef0f2;
  color: var(--vpm-ink);
  box-shadow: none;
}
.vpm-workspace-smooth .vpm-project-nav-item__icon {
  width: 21px;
  height: 21px;
  border-radius: 5px;
  font-size: 7px;
  box-shadow: none;
}
.vpm-workspace-smooth .vpm-project-nav-item__copy strong { font-size: 10px; font-weight: var(--vpm-font-weight-control, 500); }
.vpm-workspace-smooth .vpm-project-nav-item__copy small { display: none; }
.vpm-workspace-smooth .vpm-project-nav-item__number {
  min-width: 20px;
  padding: 2px 5px;
  background: #f0f2f4;
  color: #7f858d;
  font-size: 8px;
}
.vpm-workspace-smooth .vpm-sidebar__user {
  grid-template-columns: 26px minmax(0, 1fr) 28px;
  gap: 8px;
  padding: 9px 10px;
  border-top-color: var(--vpm-border);
  background: var(--vpm-panel);
}
.vpm-workspace-smooth .vpm-sidebar__user img { width: 26px; height: 26px; }
.vpm-workspace-smooth .vpm-sidebar__user strong { color: var(--vpm-ink); font-size: 10px; }
.vpm-workspace-smooth .vpm-sidebar__user small { color: var(--vpm-muted); font-size: 8px; }
.vpm-workspace-smooth .vpm-logout { width: 28px; height: 28px; color: #8b9097; }
.vpm-workspace-smooth .vpm-logout:hover { color: var(--vpm-ink); background: #f0f2f4; }

.vpm-workspace-smooth .vpm-workspace { background: var(--vpm-panel); }
.vpm-workspace-smooth .vpm-topbar {
  min-height: 46px;
  padding: 7px 14px;
  border-bottom-color: var(--vpm-border);
  background: rgba(255,255,255,.96);
  box-shadow: none;
}
.vpm-smooth-crumb { min-width: 0; display: flex; align-items: center; gap: 7px; color: #666b72; }
.vpm-smooth-crumb > .dashicons { width: 13px; height: 13px; font-size: 13px; color: #7e838a; }
.vpm-smooth-crumb strong { overflow: hidden; color: #4d5258; font-size: 10px; font-weight: var(--vpm-font-weight-control, 500); text-overflow: ellipsis; white-space: nowrap; }
.vpm-smooth-crumb i { color: #c4c7cb; font-style: normal; }
.vpm-smooth-crumb > span:not(.dashicons):not(.vpm-role-badge) { color: #8b9096; font-size: 10px; }
.vpm-smooth-crumb .vpm-role-badge { padding: 2px 6px; font-size: 8px; }
.vpm-workspace-smooth .vpm-topbar__actions .vpm-primary {
  min-height: 30px;
  padding: 0 10px;
  border-radius: 5px;
  font-size: 10px;
  box-shadow: none;
}
.vpm-workspace-smooth .vpm-project-tabs {
  min-height: 38px;
  padding: 0 12px;
  border-bottom-color: var(--vpm-border);
  background: var(--vpm-panel);
}
.vpm-workspace-smooth .vpm-project-tabs button {
  min-height: 37px;
  padding: 0 10px;
  gap: 5px;
  color: #777c83;
  font-size: 9px;
}
.vpm-workspace-smooth .vpm-project-tabs button::after { right: 8px; left: 8px; height: 1px; }
.vpm-workspace-smooth .vpm-project-tabs .dashicons { width: 12px; height: 12px; font-size: 12px; }
.vpm-workspace-smooth .vpm-content {
  padding: 14px 18px 30px;
  background: var(--vpm-panel);
  scrollbar-color: #d8dadd transparent;
}
.vpm-workspace-smooth .vpm-view-root > * { animation: vpm-smooth-enter .18s ease-out both; }
@keyframes vpm-smooth-enter { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: none; } }
.vpm-workspace-smooth .vpm-panel,
.vpm-workspace-smooth .vpm-summary-card,
.vpm-workspace-smooth .vpm-list-panel,
.vpm-workspace-smooth .vpm-toolbar,
.vpm-workspace-smooth .vpm-board-column,
.vpm-workspace-smooth .vpm-task-card,
.vpm-workspace-smooth .vpm-entity-card,
.vpm-workspace-smooth .vpm-quicklink-card {
  box-shadow: none;
}
.vpm-workspace-smooth .vpm-panel,
.vpm-workspace-smooth .vpm-summary-card,
.vpm-workspace-smooth .vpm-list-panel,
.vpm-workspace-smooth .vpm-toolbar { border-color: var(--vpm-border); }
.vpm-workspace-smooth .vpm-toolbar { position: relative; top: 0; padding: 7px; border-radius: 6px; background: #fbfbfc; }
.vpm-workspace-smooth .vpm-toolbar input,
.vpm-workspace-smooth .vpm-toolbar select,
.vpm-workspace-smooth .vpm-state-filter__button { min-height: 30px; border-radius: 5px; font-size: 10px; }
.vpm-workspace-smooth .vpm-task-card { border-radius: 6px; transition: border-color .14s, box-shadow .14s, transform .14s; }
.vpm-workspace-smooth .vpm-task-card:hover { transform: translateY(-1px); border-color: #d8dbdf; box-shadow: 0 3px 10px rgba(23,27,34,.05); }
.vpm-workspace-smooth .vpm-board { gap: 9px; }
.vpm-workspace-smooth .vpm-board-column { background: #f7f8f9; border-radius: 7px; }
.vpm-workspace-smooth .vpm-list-panel table { font-size: 10px; }

/* Focused personal Home */
.vpm-focused-home {
  width: min(100%, var(--vpm-smooth-content));
  margin: 0 auto;
  padding: 22px 0 70px;
}
.vpm-focused-greeting {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  min-height: 92px;
  padding: 5px 70px 20px;
  text-align: center;
}
.vpm-focused-greeting h1 { margin: 0; color: #17191c; font-size: 18px; line-height: 1.3; font-weight: var(--vpm-font-weight-strong, 500); letter-spacing: -.025em; }
.vpm-focused-greeting p { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 7px 0 0; color: #9a9ea4; font-size: 10px; }
.vpm-focused-profile {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 7px 4px 4px;
  border: 1px solid transparent;
  border-radius: 99px;
  background: transparent;
  color: #777c82;
  cursor: pointer;
  font-size: 9px;
}
.vpm-focused-profile:hover { border-color: var(--vpm-border); background: #fafbfb; color: var(--vpm-ink); }
.vpm-focused-profile img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; background: #eef0f2; }
.vpm-focused-section { padding: 17px 0 13px; border-bottom: 1px solid #eff0f1; }
.vpm-focused-section > header { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 9px; }
.vpm-focused-section > header h2 { margin: 0; color: #666b71; font-size: 10px; font-weight: var(--vpm-font-weight-strong, 500); }
.vpm-focused-section > header button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 5px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: color-mix(in srgb, var(--vpm-brand) 85%, #155e75);
  cursor: pointer;
  font-size: 9px;
}
.vpm-focused-section > header button:hover { background: color-mix(in srgb, var(--vpm-brand) 7%, transparent); }
.vpm-focused-section > header button .dashicons { width: 11px; height: 11px; font-size: 11px; }
.vpm-focused-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.vpm-focused-link {
  min-width: 0;
  display: grid;
  grid-template-columns: 29px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  min-height: 39px;
  padding: 6px 8px;
  border: 1px solid #e7e8ea;
  border-radius: 4px;
  background: #fff;
  color: #35393e;
  text-decoration: none;
  transition: background .13s, border-color .13s, transform .13s;
}
.vpm-focused-link:hover { border-color: #d8dadd; background: #fbfbfc; transform: translateY(-1px); }
.vpm-focused-link > .dashicons {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 3px;
  background: #f2f3f4;
  color: #858a90;
  font-size: 12px;
}
.vpm-focused-link div { min-width: 0; }
.vpm-focused-link strong,
.vpm-focused-link small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vpm-focused-link strong { font-size: 9px; font-weight: var(--vpm-font-weight-strong, 500); }
.vpm-focused-link small { margin-top: 1px; color: #a0a4aa; font-size: 7px; }
.vpm-focused-empty { width: 100%; min-height: 40px; border: 1px dashed var(--vpm-border); border-radius: 4px; background: #fbfbfc; color: #8b9096; cursor: pointer; font-size: 9px; }
.vpm-recents-list { display: grid; }
.vpm-recent-row {
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto 8px;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 4px 5px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--vpm-ink);
  text-align: left;
  cursor: pointer;
}
.vpm-recent-row:hover { background: #f7f8f9; }
.vpm-recent-row__icon { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 3px; background: #f0f1f2; color: #979ba1; }
.vpm-recent-row__icon .dashicons { width: 12px; height: 12px; font-size: 12px; }
.vpm-recent-row__main { min-width: 0; display: flex; align-items: baseline; gap: 8px; }
.vpm-recent-row__main small { flex: 0 0 auto; color: #a2a6ac; font-size: 8px; }
.vpm-recent-row__main strong { min-width: 0; overflow: hidden; color: #45494f; font-size: 9px; font-weight: var(--vpm-font-weight-control, 500); text-overflow: ellipsis; white-space: nowrap; }
.vpm-recent-row time { color: #a4a8ad; font-size: 8px; white-space: nowrap; }
.vpm-recent-row > i { width: 7px; height: 7px; border-radius: 50%; }
.vpm-focused-empty-line { padding: 16px 6px; color: #a0a4aa; font-size: 9px; text-align: center; }
.vpm-personal-notes { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.vpm-personal-note {
  position: relative;
  min-height: 128px;
  padding: 13px;
  border: 1px solid #f0d8c7;
  border-radius: 4px;
  background: #fee8d8;
  color: #4f4036;
}
.vpm-personal-note header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.vpm-personal-note header > div { display: flex; align-items: center; gap: 6px; }
.vpm-personal-note header strong { font-size: 10px; }
.vpm-personal-note header .dashicons { width: 13px; height: 13px; font-size: 13px; color: #ad7b59; }
.vpm-personal-note header button { border: 0; background: transparent; color: #9d765d; cursor: pointer; font-size: 8px; }
.vpm-personal-note .vpm-rich-content { margin-top: 10px; color: inherit; font-size: 10px; line-height: 1.55; }
.vpm-focused-metrics { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; padding: 14px 0 0; color: #9a9ea4; font-size: 8px; }
.vpm-focused-metrics b { color: #5c6167; font-size: 9px; }
.vpm-focused-metrics .is-danger,
.vpm-focused-metrics .is-danger b { color: var(--vpm-danger); }

/* Sensitive notes are masked until explicitly revealed. */
.is-sensitive { position: relative; }
.is-sensitive:not(.is-revealed) .vpm-sensitive-body { filter: blur(7px); opacity: .56; user-select: none; pointer-events: none; }
.vpm-sensitive-toggle {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 10px;
  padding: 5px 8px;
  border: 1px solid rgba(30,41,59,.12);
  border-radius: 4px;
  background: rgba(255,255,255,.55);
  color: #5c6168;
  cursor: pointer;
  font-size: 8px;
}
.vpm-sensitive-toggle .dashicons { width: 11px; height: 11px; font-size: 11px; }

@media (max-width: 1024px) {
  .vpm-workspace-smooth .vpm-shell { grid-template-columns: 1fr; }
  .vpm-workspace-smooth .vpm-sidebar { width: min(86vw, 242px); }
  .vpm-focused-home { padding-top: 14px; }
}
@media (max-width: 700px) {
  .vpm-workspace-smooth .vpm-content { padding: 10px 12px 28px; }
  .vpm-smooth-crumb strong { max-width: 160px; }
  .vpm-focused-home { width: 100%; padding-bottom: 40px; }
  .vpm-focused-greeting { min-height: 82px; padding: 5px 0 18px; }
  .vpm-focused-profile { position: static; margin-left: 10px; }
  .vpm-focused-profile span { display: none; }
  .vpm-focused-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vpm-recent-row { grid-template-columns: 24px minmax(0, 1fr) 7px; }
  .vpm-recent-row time { display: none; }
  .vpm-recent-row__main { display: grid; gap: 1px; }
}
@media (max-width: 430px) {
  .vpm-focused-links { grid-template-columns: 1fr; }
  .vpm-focused-greeting h1 { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .vpm-workspace-smooth .vpm-view-root > *,
  .vpm-workspace-smooth .vpm-task-card,
  .vpm-focused-link { animation: none !important; transition: none !important; }
}


/* --------------------------------------------------------------------------
 * Personal display preferences (v0.9.1)
 * Stored per WordPress user and applied only to that portal account.
 * -------------------------------------------------------------------------- */
.vpm-portal-app { --vpm-user-text-scale: 1.08; }
.vpm-user-text-small { --vpm-user-text-scale: .94; }
.vpm-user-text-standard { --vpm-user-text-scale: 1.08; }
.vpm-user-text-large { --vpm-user-text-scale: 1.22; }
.vpm-user-text-extra_large { --vpm-user-text-scale: 1.36; }

/* Scale the text-bearing interface components without scaling the viewport. */
.vpm-workspace-smooth .vpm-sidebar__brand strong { font-size: calc(12px * var(--vpm-user-text-scale)); }
.vpm-workspace-smooth .vpm-sidebar__brand small,
.vpm-workspace-smooth .vpm-project-tabs button,
.vpm-workspace-smooth .vpm-sidebar__label,
.vpm-workspace-smooth .vpm-sidebar__count,
.vpm-workspace-smooth .vpm-project-nav-item__number,
.vpm-workspace-smooth .vpm-sidebar__user small,
.vpm-workspace-smooth .vpm-global-nav button b { font-size: calc(9px * var(--vpm-user-text-scale)); }
.vpm-workspace-smooth .vpm-global-nav button { font-size: calc(11px * var(--vpm-user-text-scale)); }
.vpm-workspace-smooth .vpm-project-search input,
.vpm-workspace-smooth .vpm-project-nav-item__copy strong,
.vpm-workspace-smooth .vpm-sidebar__user strong,
.vpm-smooth-crumb strong,
.vpm-smooth-crumb > span:not(.dashicons):not(.vpm-role-badge),
.vpm-workspace-smooth .vpm-topbar__actions .vpm-primary,
.vpm-workspace-smooth .vpm-toolbar input,
.vpm-workspace-smooth .vpm-toolbar select,
.vpm-workspace-smooth .vpm-state-filter__button,
.vpm-workspace-smooth .vpm-list-panel table { font-size: calc(10px * var(--vpm-user-text-scale)); }
.vpm-task-card__key,
.vpm-list-task small { font-size: calc(9px * var(--vpm-user-text-scale)); }
.vpm-task-card h3,
.vpm-list-task strong { font-size: calc(12px * var(--vpm-user-text-scale)); }
.vpm-state-pill,
.vpm-task-card__footer,
.vpm-task-card__meta,
.vpm-priority,
.vpm-toolbar__result { font-size: calc(10px * var(--vpm-user-text-scale)); }
.vpm-focused-greeting h1 { font-size: calc(18px * var(--vpm-user-text-scale)); }
.vpm-focused-greeting p,
.vpm-focused-section > header h2,
.vpm-personal-note header strong,
.vpm-personal-note .vpm-rich-content { font-size: calc(10px * var(--vpm-user-text-scale)); }
.vpm-focused-profile,
.vpm-focused-section > header button,
.vpm-focused-link strong,
.vpm-focused-empty,
.vpm-recent-row__main strong,
.vpm-focused-empty-line { font-size: calc(9px * var(--vpm-user-text-scale)); }
.vpm-focused-link small { font-size: calc(7px * var(--vpm-user-text-scale)); }
.vpm-recent-row__main small,
.vpm-recent-row time,
.vpm-personal-note header button,
.vpm-focused-metrics,
.vpm-sensitive-toggle { font-size: calc(8px * var(--vpm-user-text-scale)); }
.vpm-focused-metrics b { font-size: calc(9px * var(--vpm-user-text-scale)); }

/* Personal density. */
.vpm-user-density-compact .vpm-content { --vpm-user-gap: 10px; }
.vpm-user-density-comfortable .vpm-content { --vpm-user-gap: 15px; }
.vpm-user-density-spacious .vpm-content { --vpm-user-gap: 21px; }
.vpm-user-density-comfortable.vpm-workspace-smooth .vpm-content { padding: 18px 22px 34px; }
.vpm-user-density-spacious.vpm-workspace-smooth .vpm-content { padding: 24px 30px 40px; }
.vpm-user-density-comfortable .vpm-task-card > button { padding: 13px; }
.vpm-user-density-spacious .vpm-task-card > button { padding: 17px; }
.vpm-user-density-comfortable .vpm-recent-row { min-height: 44px; padding-block: 7px; }
.vpm-user-density-spacious .vpm-recent-row { min-height: 50px; padding-block: 10px; }
.vpm-user-density-comfortable .vpm-focused-section { padding-block: 21px 17px; }
.vpm-user-density-spacious .vpm-focused-section { padding-block: 27px 21px; }

/* Personal sidebar widths. */
.vpm-user-sidebar-compact.vpm-workspace-smooth { --vpm-smooth-sidebar-width: 190px; }
.vpm-user-sidebar-standard.vpm-workspace-smooth { --vpm-smooth-sidebar-width: clamp(220px, var(--vpm-sidebar-width, 232px), 254px); }
.vpm-user-sidebar-wide.vpm-workspace-smooth { --vpm-smooth-sidebar-width: clamp(280px, var(--vpm-sidebar-width, 300px), 340px); }
.vpm-user-sidebar-compact:not(.vpm-workspace-smooth) .vpm-shell { grid-template-columns: 230px minmax(0,1fr); }
.vpm-user-sidebar-wide:not(.vpm-workspace-smooth) .vpm-shell { grid-template-columns: 330px minmax(0,1fr); }

.vpm-sidebar__user { grid-template-columns: 38px minmax(0,1fr) 36px 36px !important; }
.vpm-workspace-smooth .vpm-sidebar__user { grid-template-columns: 26px minmax(0,1fr) 28px 28px !important; }
.vpm-profile-settings {
  width: 28px; height: 28px; display: grid; place-items: center; padding: 0;
  border: 0; border-radius: 6px; background: transparent; color: #8b9097; cursor: pointer;
}
.vpm-profile-settings:hover { color: var(--vpm-ink); background: color-mix(in srgb, var(--vpm-ink) 6%, transparent); }
.vpm-profile-settings .dashicons { width: 15px; height: 15px; font-size: 15px; }

.vpm-user-reduce-motion *,
.vpm-user-reduce-motion *::before,
.vpm-user-reduce-motion *::after { scroll-behavior: auto !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }

/* Profile and appearance editor. */
.vpm-profile-form .vpm-form-body { display: grid; gap: 18px; }
.vpm-profile-form-section { display: grid; gap: 14px; padding: 16px; border: 1px solid var(--vpm-border); border-radius: var(--vpm-radius); background: var(--vpm-panel-alt); }
.vpm-profile-form-section > header { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.vpm-profile-form-section > header strong,
.vpm-profile-form-section > header small { display: block; }
.vpm-profile-form-section > header strong { color: var(--vpm-ink); font-size: 14px; }
.vpm-profile-form-section > header small { margin-top: 3px; color: var(--vpm-muted); font-size: 11px; }
.vpm-appearance-editor .vpm-form-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
.vpm-color-control { min-height: 40px; display: flex; align-items: center; gap: 12px; }
.vpm-color-control > input[type=color] { width: 58px; height: 38px; padding: 3px; }
.vpm-color-control > label,
.vpm-toggle-field > label { display: flex; align-items: center; gap: 7px; color: var(--vpm-muted); font-weight: var(--vpm-font-weight-control, 500); }

@media (max-width: 1024px) {
  .vpm-user-sidebar-compact.vpm-workspace-smooth,
  .vpm-user-sidebar-standard.vpm-workspace-smooth,
  .vpm-user-sidebar-wide.vpm-workspace-smooth { --vpm-smooth-sidebar-width: min(86vw, 280px); }
}
@media (max-width: 700px) {
  .vpm-appearance-editor .vpm-form-grid { grid-template-columns: 1fr; }
  .vpm-profile-form-section { padding: 13px; }
  .vpm-profile-form-section > header { align-items: flex-start; flex-direction: column; }
  .vpm-profile-form-section > header .vpm-ghost { width: 100%; }
  .vpm-sidebar__user,
  .vpm-workspace-smooth .vpm-sidebar__user { grid-template-columns: 30px minmax(0,1fr) 34px 34px !important; }
}


/*
 * My Work popover and in-place task drawer fixes (v0.9.2)
 */
.vpm-mywork-toolbar {
  position: relative;
  z-index: 30;
  overflow: visible;
  isolation: isolate;
}
.vpm-mywork-toolbar.has-open-popover {
  z-index: 2147482200;
}
.vpm-mywork-toolbar .vpm-state-filter.is-open {
  z-index: 2147482300;
}
.vpm-mywork-toolbar .vpm-state-filter__menu {
  z-index: 2147482400;
}
.vpm-grouped-lists,
.vpm-mywork-table,
.vpm-list-group {
  position: relative;
  z-index: 1;
}
.vpm-task-project-link .dashicons {
  width: 15px;
  height: 15px;
  font-size: 15px;
}
@media (max-width: 700px) {
  .vpm-mywork-toolbar.has-open-popover {
    z-index: 2147482400;
  }
}


/* v0.9.3 — personal themes, direct screenshots and profile-photo uploads */
.vpm-theme-toggle { transition: transform .16s ease, background .16s ease, color .16s ease; }
.vpm-theme-toggle:hover { transform: rotate(-8deg); }

.vpm-task-description-editor { display: grid; gap: 10px; }
.vpm-task-description-editor > label { margin: 0; }
.vpm-task-upload-zone,
.vpm-live-upload-zone,
.vpm-avatar-drop {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 82px;
  padding: 14px;
  border: 1px dashed color-mix(in srgb, var(--vpm-brand) 42%, var(--vpm-border));
  border-radius: calc(var(--vpm-radius) - 2px);
  background: color-mix(in srgb, var(--vpm-brand) 3%, var(--vpm-panel-alt));
  color: var(--vpm-muted);
  text-align: left;
  transition: border-color .15s ease, background .15s ease, transform .15s ease;
}
.vpm-task-upload-zone.is-over,
.vpm-live-upload-zone.is-over,
.vpm-avatar-drop.is-over {
  border-color: var(--vpm-brand);
  background: color-mix(in srgb, var(--vpm-brand) 9%, var(--vpm-panel));
  transform: translateY(-1px);
}
.vpm-task-upload-zone > .dashicons,
.vpm-live-upload-zone > .dashicons,
.vpm-avatar-drop > .dashicons { width: 24px; height: 24px; font-size: 24px; color: var(--vpm-brand); }
.vpm-task-upload-zone > div,
.vpm-live-upload-zone > div { display: grid; gap: 2px; flex: 1; }
.vpm-task-upload-zone strong,
.vpm-live-upload-zone strong,
.vpm-avatar-drop strong { color: var(--vpm-ink); font-size: 12px; }
.vpm-task-upload-zone small,
.vpm-live-upload-zone small,
.vpm-avatar-drop small { color: var(--vpm-muted); font-size: 10px; }
.vpm-live-upload-zone { margin: 0 0 12px; min-height: 68px; }

.vpm-pending-files { display: grid; gap: 7px; }
.vpm-pending-empty { padding: 8px 0; color: var(--vpm-muted); font-size: 10px; }
.vpm-pending-file {
  display: grid;
  grid-template-columns: 44px minmax(0,1fr) 32px;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border: 1px solid var(--vpm-border);
  border-radius: 10px;
  background: var(--vpm-panel);
}
.vpm-pending-file__preview { width: 44px; height: 38px; display: grid; place-items: center; overflow: hidden; border-radius: 7px; background: var(--vpm-panel-alt); color: var(--vpm-muted); }
.vpm-pending-file__preview img { width: 100%; height: 100%; object-fit: cover; }
.vpm-pending-file > div { min-width: 0; display: grid; gap: 2px; }
.vpm-pending-file strong { overflow: hidden; color: var(--vpm-ink); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.vpm-pending-file small { color: var(--vpm-muted); font-size: 9px; }
.vpm-pending-file > button { width: 30px; height: 30px; border: 0; border-radius: 8px; background: transparent; color: var(--vpm-muted); cursor: pointer; }
.vpm-pending-file > button:hover { background: color-mix(in srgb, var(--vpm-danger) 10%, transparent); color: var(--vpm-danger); }

.vpm-inline-task-image { margin: 14px 0; }
.vpm-inline-task-image img { display: block; max-width: 100%; max-height: 620px; border: 1px solid var(--vpm-border); border-radius: 10px; object-fit: contain; background: var(--vpm-panel-alt); }
.vpm-inline-task-image figcaption { margin-top: 5px; color: var(--vpm-muted); font-size: 10px; }
.vpm-pending-files:empty { display: none; }
.vpm-inline-task-image--pending {
  margin: 12px 0;
  padding: 10px;
  border: 1px dashed color-mix(in srgb, var(--vpm-brand) 44%, var(--vpm-border));
  border-radius: 11px;
  background: color-mix(in srgb, var(--vpm-brand) 4%, var(--vpm-panel-alt));
}
.vpm-inline-task-image--pending img {
  width: auto;
  max-width: 100%;
  max-height: 520px;
  margin: 0 auto;
}
.vpm-inline-task-image--pending figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.vpm-inline-task-image--pending figcaption span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vpm-inline-task-image--pending figcaption button {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border: 0;
  border-radius: 8px;
  background: color-mix(in srgb, var(--vpm-danger) 10%, var(--vpm-panel));
  color: var(--vpm-danger);
  cursor: pointer;
}

.vpm-reminder-field > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 118px;
  gap: 8px;
}
.vpm-reminder-field select { font-variant-numeric: tabular-nums; }

@media (max-width: 520px) {
  .vpm-reminder-field > div { grid-template-columns: minmax(0, 1fr) 104px; }
}

.vpm-avatar-editor {
  display: grid;
  grid-template-columns: 84px minmax(0,1fr) minmax(190px,.75fr);
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--vpm-border);
  border-radius: var(--vpm-radius);
  background: var(--vpm-panel);
}
.vpm-avatar-editor > img { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; background: var(--vpm-panel-alt); box-shadow: inset 0 0 0 1px var(--vpm-border); }
.vpm-avatar-editor__content { min-width: 0; display: grid; gap: 5px; }
.vpm-avatar-editor__content > strong { color: var(--vpm-ink); font-size: 13px; }
.vpm-avatar-editor__content > small { color: var(--vpm-muted); font-size: 10px; line-height: 1.45; }
.vpm-avatar-editor__actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 5px; }
.vpm-avatar-editor__actions label { margin: 0; cursor: pointer; }
.vpm-avatar-drop { min-height: 84px; flex-direction: column; gap: 3px; text-align: center; cursor: copy; }

.vpm-profile-form { max-height: min(94dvh, 920px); overflow: hidden; }
.vpm-profile-form .vpm-panel-header,
.vpm-profile-form .vpm-form-footer { position: sticky; z-index: 4; background: var(--vpm-panel); }
.vpm-profile-form .vpm-panel-header { top: 0; }
.vpm-profile-form .vpm-form-footer { bottom: 0; }
.vpm-profile-form .vpm-form-body { max-height: calc(94dvh - 145px); overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; }

.vpm-theme-dark {
  color-scheme: dark;
  --vpm-bg: #0b1120 !important;
  --vpm-panel: #111827 !important;
  --vpm-panel-alt: #172033 !important;
  --vpm-ink: #e5e7eb !important;
  --vpm-muted: #94a3b8 !important;
  --vpm-border: #293548 !important;
  --vpm-sidebar: #09111f !important;
  --vpm-sidebar-hover: #182235 !important;
  --vpm-shadow-sm: 0 1px 2px rgba(0,0,0,.28) !important;
  --vpm-shadow-lg: 0 24px 70px rgba(0,0,0,.48) !important;
}
.vpm-theme-dark .vpm-shell,
.vpm-theme-dark .vpm-content { background: var(--vpm-bg); color: var(--vpm-ink); }
.vpm-theme-dark .vpm-topbar,
.vpm-theme-dark .vpm-project-tabs,
.vpm-theme-dark .vpm-toolbar,
.vpm-theme-dark .vpm-panel,
.vpm-theme-dark .vpm-home-card,
.vpm-theme-dark .vpm-summary-card,
.vpm-theme-dark .vpm-task-card,
.vpm-theme-dark .vpm-board-column,
.vpm-theme-dark .vpm-list-panel,
.vpm-theme-dark .vpm-dialog,
.vpm-theme-dark .vpm-drawer,
.vpm-theme-dark .vpm-profile-form-section,
.vpm-theme-dark .vpm-profile-links-editor,
.vpm-theme-dark .vpm-profile-link-row,
.vpm-theme-dark .vpm-file-item,
.vpm-theme-dark .vpm-comment__bubble,
.vpm-theme-dark .vpm-personal-note,
.vpm-theme-dark .vpm-focused-link,
.vpm-theme-dark .vpm-recent-row { background: var(--vpm-panel) !important; border-color: var(--vpm-border) !important; color: var(--vpm-ink); }
.vpm-theme-dark input,
.vpm-theme-dark textarea,
.vpm-theme-dark select { background: #0f172a !important; border-color: var(--vpm-border) !important; color: var(--vpm-ink) !important; }
.vpm-theme-dark input::placeholder,
.vpm-theme-dark textarea::placeholder { color: #64748b; }
.vpm-theme-dark .vpm-list-panel thead th { background: #151e2e !important; color: #a8b2c3; }
.vpm-theme-dark .vpm-list-panel tbody tr:hover,
.vpm-theme-dark .vpm-project-list button:hover,
.vpm-theme-dark .vpm-project-list button.is-active { background: #182235 !important; }
.vpm-theme-dark .vpm-list-panel td { border-color: #243044; }
.vpm-theme-dark .vpm-task-card h3,
.vpm-theme-dark .vpm-list-task strong,
.vpm-theme-dark .vpm-state-pill,
.vpm-theme-dark .vpm-focused-section h2,
.vpm-theme-dark .vpm-profile-form-section strong { color: var(--vpm-ink) !important; }
.vpm-theme-dark .vpm-close,
.vpm-theme-dark .vpm-secondary,
.vpm-theme-dark .vpm-ghost { background: #131d2d; border-color: var(--vpm-border); color: #cbd5e1; }
.vpm-theme-dark .vpm-modal-backdrop { background: rgba(0,0,0,.62); }
.vpm-theme-dark .vpm-task-card__labels span { color: #e5e7eb; }
.vpm-theme-dark .vpm-card-avatars img,
.vpm-theme-dark .vpm-list-avatars img { border-color: var(--vpm-panel); background: var(--vpm-panel); }

@media (max-width: 760px) {
  .vpm-task-upload-zone { align-items: flex-start; flex-wrap: wrap; }
  .vpm-task-upload-zone > .vpm-secondary { width: 100%; justify-content: center; }
  .vpm-avatar-editor { grid-template-columns: 66px minmax(0,1fr); align-items: start; }
  .vpm-avatar-editor > img { width: 66px; height: 66px; }
  .vpm-avatar-drop { grid-column: 1/-1; width: 100%; }
  .vpm-avatar-editor__actions { display: grid; grid-template-columns: 1fr; }
  .vpm-avatar-editor__actions .vpm-secondary,
  .vpm-avatar-editor__actions .vpm-ghost { width: 100%; justify-content: center; }
  .vpm-profile-form { max-height: 94dvh; }
  .vpm-profile-form .vpm-form-body { max-height: calc(94dvh - 140px); padding-bottom: 22px; }
}


/* 0.9.4 — task screenshot/file deletion */
.vpm-file-item { position: relative; }
.vpm-file-item__content { min-width: 0; color: inherit; text-decoration: none; }
.vpm-file-item__preview {
  width: 46px;
  height: 42px;
  display: block;
  overflow: hidden;
  border: 1px solid var(--vpm-border);
  border-radius: 8px;
  background: var(--vpm-panel-alt);
}
.vpm-file-item__preview img { width: 100%; height: 100%; display: block; object-fit: cover; }
.vpm-file-delete,
.vpm-file-download {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--vpm-muted);
  cursor: pointer;
  text-decoration: none;
}
.vpm-file-delete:hover { background: color-mix(in srgb, var(--vpm-danger) 12%, transparent); color: var(--vpm-danger); }
.vpm-file-download:hover { background: var(--vpm-panel-alt); color: var(--vpm-brand); }
.vpm-file-delete .dashicons,
.vpm-file-download .dashicons { width: 16px; height: 16px; font-size: 16px; }
.vpm-file-delete:disabled { opacity: .45; cursor: wait; }

.vpm-pending-file { position: relative; }
.vpm-pending-file > button {
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--vpm-danger) 8%, var(--vpm-panel));
  color: var(--vpm-danger);
  font-size: 20px;
  line-height: 1;
}
.vpm-pending-file > button:hover { background: color-mix(in srgb, var(--vpm-danger) 16%, var(--vpm-panel)); }

@media (max-width: 680px) {
  .vpm-file-item { grid-template-columns: 42px minmax(0, 1fr) 34px; }
  .vpm-file-delete, .vpm-file-download { width: 34px; height: 34px; }
}

/* Show image attachments as proper screenshot cards with delete control on the image. */
.vpm-file-item--image {
  grid-template-columns: minmax(0, 1fr) 34px;
  align-items: start;
  padding: 8px;
}
.vpm-file-item--image .vpm-file-item__preview {
  grid-column: 1 / -1;
  width: 100%;
  height: clamp(150px, 28vw, 320px);
  border-radius: 9px;
}
.vpm-file-item--image .vpm-file-item__preview img { object-fit: contain; background: var(--vpm-panel-alt); }
.vpm-file-item--image .vpm-file-item__content { padding: 2px 4px 1px; }
.vpm-file-item--image .vpm-file-delete,
.vpm-file-item--image .vpm-file-download {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  border: 1px solid rgba(255,255,255,.72);
  background: rgba(17,24,39,.78);
  color: #fff;
  box-shadow: 0 5px 16px rgba(15,23,42,.2);
  backdrop-filter: blur(8px);
}
.vpm-file-item--image .vpm-file-delete:hover { background: var(--vpm-danger); color: #fff; }

/* v0.9.5 — stable task toolbars, inline list editing, assignee filters */
.vpm-toolbar-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  overflow: visible;
}
.vpm-toolbar-grid .vpm-task-search {
  flex: 2 1 280px;
  width: auto;
  min-width: 220px;
  max-width: none;
  overflow: hidden;
}
.vpm-toolbar-grid .vpm-task-search input {
  display: block;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.vpm-toolbar-grid > select,
.vpm-toolbar-grid > .vpm-state-filter,
.vpm-toolbar-grid > .vpm-mine-toggle {
  flex: 1 1 135px;
  width: auto;
  min-width: 120px;
  max-width: 220px;
}
.vpm-toolbar-grid > .vpm-state-filter .vpm-state-filter__button { width: 100%; min-width: 0; }
.vpm-toolbar-grid .vpm-toolbar__result { flex: 0 0 auto; margin-left: auto; }
.vpm-toolbar-grid .vpm-toolbar__reset { flex: 0 0 auto; }

.vpm-mine-toggle {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 11px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--vpm-panel-alt);
  color: var(--vpm-ink);
  cursor: pointer;
  white-space: nowrap;
  user-select: none;
}
.vpm-mine-toggle input { width: 15px; height: 15px; margin: 0; accent-color: var(--vpm-brand); }
.vpm-mine-toggle .dashicons { width: 15px; height: 15px; font-size: 15px; color: var(--vpm-muted); }
.vpm-mine-toggle:has(input:checked) {
  border-color: color-mix(in srgb, var(--vpm-brand) 34%, var(--vpm-border));
  background: color-mix(in srgb, var(--vpm-brand) 10%, var(--vpm-panel));
  color: var(--vpm-brand);
}
.vpm-workspace-smooth .vpm-mine-toggle { min-height: 30px; border-radius: 5px; font-size: 10px; }

.vpm-project-task-table table { min-width: 1040px; table-layout: fixed; }
.vpm-mywork-table table { min-width: 1260px; table-layout: fixed; }

.vpm-inline-task-open {
  width: 100%;
  min-width: 0;
  display: grid;
  gap: 4px;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.vpm-inline-task-open small {
  color: var(--vpm-subtle);
  font-size: 9px;
  font-weight: var(--vpm-font-weight-strong, 500);
  letter-spacing: .035em;
}
.vpm-inline-task-open strong {
  display: block;
  max-width: 100%;
  overflow: hidden;
  color: var(--vpm-ink);
  font-size: 12px;
  font-weight: var(--vpm-font-weight-strong, 500);
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.vpm-inline-task-open:hover strong { color: var(--vpm-brand); }

.vpm-inline-control {
  width: 100%;
  min-width: 0;
  height: 31px;
  padding: 0 8px;
  border: 1px solid transparent;
  border-radius: 6px;
  outline: 0;
  background: transparent;
  color: var(--vpm-ink);
  font-size: 11px;
  transition: border-color .14s ease, background .14s ease, box-shadow .14s ease;
}
.vpm-inline-control:hover { border-color: var(--vpm-border); background: var(--vpm-panel-alt); }
.vpm-inline-control:focus {
  border-color: color-mix(in srgb, var(--vpm-brand) 44%, var(--vpm-border));
  background: var(--vpm-panel);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--vpm-brand) 10%, transparent);
}
.vpm-inline-control:disabled { opacity: .58; cursor: wait; }
.vpm-inline-priority.is-urgent { color: #d92d20; font-weight: var(--vpm-font-weight-strong, 500); }
.vpm-inline-priority.is-high { color: #e55f18; font-weight: var(--vpm-font-weight-strong, 500); }
.vpm-inline-priority.is-medium { color: #b96a00; font-weight: var(--vpm-font-weight-strong, 500); }
.vpm-inline-priority.is-low { color: #2563eb; }
.vpm-inline-date.is-overdue { color: var(--vpm-danger); font-weight: var(--vpm-font-weight-strong, 500); }
.vpm-inline-number { max-width: 92px; }

.vpm-inline-assignees {
  width: 100%;
  min-height: 31px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  padding: 2px 6px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--vpm-muted);
  cursor: pointer;
  text-align: left;
}
.vpm-inline-assignees:hover { border-color: var(--vpm-border); background: var(--vpm-panel-alt); }
.vpm-inline-assignees > .dashicons { flex: 0 0 auto; width: 14px; height: 14px; font-size: 14px; opacity: 0; }
.vpm-inline-assignees:hover > .dashicons { opacity: 1; }
.vpm-unassigned { color: var(--vpm-subtle); font-size: 10px; white-space: nowrap; }
.vpm-list-avatars { min-width: 0; display: inline-flex; align-items: center; }
.vpm-list-avatars img { width: 24px; height: 24px; margin-right: -5px; border: 2px solid var(--vpm-panel); border-radius: 50%; object-fit: cover; }
.vpm-list-avatars img:last-child { margin-right: 0; }
.vpm-list-panel tr.is-saving { opacity: .58; pointer-events: none; }
.vpm-list-panel tr.is-saving td:first-child { position: relative; }
.vpm-list-panel tr.is-saving td:first-child::after {
  content: '';
  position: absolute;
  right: 10px;
  top: 50%;
  width: 13px;
  height: 13px;
  margin-top: -7px;
  border: 2px solid var(--vpm-border);
  border-top-color: var(--vpm-brand);
  border-radius: 50%;
  animation: vpm-spin .7s linear infinite;
}

.vpm-quick-assignees-form { width: min(520px, calc(100vw - 28px)); }
.vpm-assignee-checklist { display: grid; gap: 7px; max-height: min(52vh, 430px); overflow: auto; }
.vpm-assignee-checklist > label {
  display: grid;
  grid-template-columns: 18px 36px minmax(0,1fr);
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 7px 10px;
  border: 1px solid var(--vpm-border);
  border-radius: 9px;
  background: var(--vpm-panel);
  cursor: pointer;
}
.vpm-assignee-checklist > label:hover { background: var(--vpm-panel-alt); }
.vpm-assignee-checklist input { width: 16px; height: 16px; margin: 0; accent-color: var(--vpm-brand); }
.vpm-assignee-checklist img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.vpm-assignee-checklist span { min-width: 0; }
.vpm-assignee-checklist strong,
.vpm-assignee-checklist small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vpm-assignee-checklist strong { color: var(--vpm-ink); font-size: 12px; }
.vpm-assignee-checklist small { margin-top: 2px; color: var(--vpm-muted); font-size: 10px; }

.vpm-theme-dark .vpm-inline-control,
.vpm-theme-dark .vpm-inline-assignees,
.vpm-theme-dark .vpm-mine-toggle { color: var(--vpm-ink); }

@media (max-width: 1180px) {
  .vpm-toolbar-grid .vpm-task-search { flex-basis: 100%; min-width: 100%; }
  .vpm-toolbar-grid > select,
  .vpm-toolbar-grid > .vpm-state-filter,
  .vpm-toolbar-grid > .vpm-mine-toggle { max-width: none; }
}
@media (max-width: 700px) {
  .vpm-toolbar-grid { display: grid; grid-template-columns: 1fr; }
  .vpm-toolbar-grid .vpm-task-search,
  .vpm-toolbar-grid > select,
  .vpm-toolbar-grid > .vpm-state-filter,
  .vpm-toolbar-grid > .vpm-mine-toggle,
  .vpm-toolbar-grid > .vpm-toolbar__reset { width: 100%; min-width: 0; max-width: none; }
  .vpm-list-panel td::before { content: attr(data-label) !important; }
  .vpm-inline-task-open strong { white-space: normal; }
  .vpm-inline-control { min-height: 36px; background: var(--vpm-panel-alt); }
  .vpm-inline-number { max-width: none; }
  .vpm-inline-assignees { min-height: 38px; background: var(--vpm-panel-alt); }
  .vpm-list-panel tr.is-saving td:first-child::after { right: 0; top: 10px; margin: 0; }
}
.vpm-list-panel tbody tr.is-inline-editable { cursor: default; }


/* v0.9.6 — stable search controls */
.vpm-toolbar-grid .vpm-task-search {
  flex: 1 1 340px;
  width: min(100%, 520px);
  max-width: 520px;
  overflow: visible;
}
.vpm-project-toolbar .vpm-task-search { max-width: 500px; }
.vpm-mywork-toolbar .vpm-task-search { max-width: 440px; }
.vpm-task-search input { padding-right: 36px; }
.vpm-search-clear {
  position: absolute;
  z-index: 2;
  top: 50%;
  right: 7px;
  width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  margin-top: -12px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--vpm-muted);
  font: 600 18px/1 system-ui, sans-serif;
  cursor: pointer;
}
.vpm-search-clear:hover,
.vpm-search-clear:focus-visible {
  background: var(--vpm-panel-alt);
  color: var(--vpm-ink);
  outline: none;
}
.vpm-theme-dark .vpm-task-search input:focus {
  border-color: color-mix(in srgb, var(--vpm-brand) 55%, var(--vpm-border));
  background: var(--vpm-panel);
  color: var(--vpm-ink);
}
@media (max-width: 1180px) {
  .vpm-toolbar-grid .vpm-task-search,
  .vpm-project-toolbar .vpm-task-search,
  .vpm-mywork-toolbar .vpm-task-search {
    flex-basis: 100%;
    width: 100%;
    min-width: 100%;
    max-width: none;
  }
}


/* v0.9.7 — task image lightbox */
.vpm-task-description img,
.vpm-comment__content img,
.vpm-file-item--image img { cursor: zoom-in; }
.vpm-lightbox-trigger { transition: opacity .16s ease, transform .16s ease, box-shadow .16s ease; }
.vpm-lightbox-trigger:hover,
.vpm-lightbox-trigger:focus-visible {
  opacity: .94;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, .16);
  outline: 2px solid color-mix(in srgb, var(--vpm-brand) 65%, transparent);
  outline-offset: 2px;
}
.vpm-lightbox-link { display: inline-block; max-width: 100%; }
body.vpm-lightbox-open { overflow: hidden !important; }
.vpm-task-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: grid;
  grid-template-columns: minmax(54px, 8vw) minmax(0, 1fr) minmax(54px, 8vw);
  grid-template-rows: auto minmax(0, 1fr);
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  color: #fff;
  transition: opacity .18s ease, visibility .18s ease;
}
.vpm-task-lightbox.is-open { visibility: visible; opacity: 1; pointer-events: auto; }
.vpm-lightbox-backdrop {
  position: absolute;
  inset: 0;
  z-index: -1;
  border: 0;
  background: rgba(3, 7, 18, .94);
  cursor: zoom-out;
  backdrop-filter: blur(14px);
}
.vpm-lightbox-toolbar {
  grid-column: 1 / -1;
  grid-row: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: max(14px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) 14px max(16px, env(safe-area-inset-left));
  border-bottom: 1px solid rgba(255,255,255,.11);
  background: rgba(3, 7, 18, .56);
  backdrop-filter: blur(18px);
}
.vpm-lightbox-toolbar > div:first-child { min-width: 0; }
.vpm-lightbox-toolbar strong,
.vpm-lightbox-toolbar small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vpm-lightbox-toolbar strong { font-size: 13px; font-weight: var(--vpm-font-weight-strong, 500); }
.vpm-lightbox-toolbar small { margin-top: 3px; color: rgba(255,255,255,.62); font-size: 10px; }
.vpm-lightbox-tools { display: flex; align-items: center; gap: 7px; }
.vpm-lightbox-tools button,
.vpm-lightbox-tools a,
.vpm-lightbox-nav {
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.08);
  color: #fff;
  cursor: pointer;
  text-decoration: none;
  backdrop-filter: blur(10px);
  transition: background .15s ease, border-color .15s ease;
}
.vpm-lightbox-tools button,
.vpm-lightbox-tools a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 11px;
  border-radius: 10px;
  font: 650 11px/1 system-ui, sans-serif;
}
.vpm-lightbox-tools button:hover,
.vpm-lightbox-tools a:hover,
.vpm-lightbox-nav:hover { border-color: rgba(255,255,255,.28); background: rgba(255,255,255,.16); }
.vpm-lightbox-tools .dashicons,
.vpm-lightbox-nav .dashicons { width: 18px; height: 18px; font-size: 18px; }
.vpm-lightbox-stage {
  grid-column: 2;
  grid-row: 2;
  position: relative;
  min-width: 0;
  min-height: 0;
  display: grid;
  place-items: center;
  overflow: auto;
  padding: 22px 8px max(22px, env(safe-area-inset-bottom));
  overscroll-behavior: contain;
}
.vpm-lightbox-stage img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 102px);
  width: auto;
  height: auto;
  border-radius: 8px;
  object-fit: contain;
  box-shadow: 0 30px 90px rgba(0,0,0,.5);
  cursor: zoom-in;
  user-select: none;
  -webkit-user-drag: none;
  transition: opacity .15s ease;
}
.vpm-lightbox-stage img.is-zoomed { max-width: none; max-height: none; cursor: zoom-out; }
.vpm-task-lightbox.is-loading .vpm-lightbox-stage img { opacity: 0; }
.vpm-lightbox-spinner {
  position: absolute;
  width: 34px;
  height: 34px;
  display: none;
  border: 3px solid rgba(255,255,255,.22);
  border-top-color: #fff;
  border-radius: 50%;
  animation: vpm-lightbox-spin .7s linear infinite;
}
.vpm-task-lightbox.is-loading .vpm-lightbox-spinner { display: block; }
@keyframes vpm-lightbox-spin { to { transform: rotate(360deg); } }
.vpm-lightbox-nav {
  z-index: 2;
  align-self: center;
  justify-self: center;
  width: 44px;
  height: 58px;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 13px;
}
.vpm-lightbox-nav.is-previous { grid-column: 1; grid-row: 2; }
.vpm-lightbox-nav.is-next { grid-column: 3; grid-row: 2; }
.vpm-lightbox-nav[hidden] { display: none; }
@media (max-width: 680px) {
  .vpm-task-lightbox { grid-template-columns: 48px minmax(0, 1fr) 48px; }
  .vpm-lightbox-toolbar { gap: 10px; padding-bottom: 10px; }
  .vpm-lightbox-tools a span:last-child { display: none; }
  .vpm-lightbox-tools button,
  .vpm-lightbox-tools a { width: 38px; padding: 0; }
  .vpm-lightbox-stage { grid-column: 1 / -1; padding: 12px 10px max(74px, env(safe-area-inset-bottom)); }
  .vpm-lightbox-stage img { max-height: calc(100vh - 112px); }
  .vpm-lightbox-nav { position: fixed; bottom: max(14px, env(safe-area-inset-bottom)); width: 44px; height: 44px; border-radius: 50%; }
  .vpm-lightbox-nav.is-previous { left: calc(50% - 52px); }
  .vpm-lightbox-nav.is-next { right: calc(50% - 52px); }
}
@media (prefers-reduced-motion: reduce) {
  .vpm-task-lightbox,
  .vpm-lightbox-stage img,
  .vpm-lightbox-trigger { transition: none; }
}


/* v0.9.8 — Board/List switch for cross-project My Work */
.vpm-mywork-viewbar {
  flex: 0 0 auto;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-height: 38px;
}
.vpm-mywork-viewbar .vpm-view-switch { background: var(--vpm-panel-alt); }
.vpm-mywork-board {
  min-height: 520px;
  flex: 1 1 auto;
}
.vpm-mywork-task-card .vpm-mywork-card__project {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  margin-bottom: 8px;
  color: var(--vpm-muted);
  font-size: 10px;
  font-weight: var(--vpm-font-weight-strong, 500);
}
.vpm-mywork-task-card .vpm-mywork-card__project i {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.vpm-mywork-task-card .vpm-mywork-card__project span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.vpm-mywork-task-card .vpm-task-card__key { margin-bottom: 5px; }
.vpm-theme-dark .vpm-view-switch button.is-active { background: var(--vpm-panel); color: var(--vpm-ink); }
@media (max-width: 760px) {
  .vpm-mywork-viewbar { justify-content: stretch; }
  .vpm-mywork-viewbar .vpm-view-switch { width: 100%; }
  .vpm-mywork-viewbar .vpm-view-switch button { flex: 1; }
  .vpm-mywork-board { min-height: calc(100dvh - 270px); }
}


/* Global typography controls (v0.9.9) */
body.vpm-portal-page,
.vpm-portal-app {
  font-family: var(--vpm-font);
  font-weight: var(--vpm-font-weight-body, 400);
}
.vpm-portal-app h1,
.vpm-portal-app h2,
.vpm-portal-app h3,
.vpm-portal-app h4,
.vpm-portal-app h5,
.vpm-portal-app h6 {
  font-family: var(--vpm-font);
  font-weight: var(--vpm-font-weight-heading, 600) !important;
  letter-spacing: -.012em;
}
.vpm-portal-app strong,
.vpm-portal-app b {
  font-weight: var(--vpm-font-weight-strong, 500) !important;
}
.vpm-portal-app button,
.vpm-portal-app input,
.vpm-portal-app select,
.vpm-portal-app textarea,
.vpm-portal-app .vpm-tab,
.vpm-portal-app .vpm-project-tabs button,
.vpm-portal-app .vpm-sidebar__label,
.vpm-portal-app .vpm-eyebrow,
.vpm-portal-app .vpm-list-table th,
.vpm-portal-app .vpm-my-work-table th {
  font-family: var(--vpm-font);
  font-weight: var(--vpm-font-weight-control, 500) !important;
}

/* v0.10.0 — user-resizable list columns */
.vpm-resizable-table {
  table-layout: fixed !important;
}
.vpm-resizable-table col {
  transition: width .08s ease;
}
.vpm-resizable-table th {
  width: auto !important;
  position: sticky;
  overflow: visible;
}
.vpm-resizable-table th > span:first-child {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.vpm-column-resizer {
  position: absolute;
  z-index: 8;
  top: 0;
  right: -6px;
  width: 12px;
  height: 100%;
  cursor: col-resize;
  touch-action: none;
  user-select: none;
  outline: none;
}
.vpm-column-resizer::before {
  content: '';
  position: absolute;
  top: 7px;
  bottom: 7px;
  left: 5px;
  width: 2px;
  border-radius: 999px;
  background: transparent;
  transition: background .14s ease, box-shadow .14s ease;
}
.vpm-column-resizer:hover::before,
.vpm-column-resizer:focus-visible::before,
.vpm-column-resizer.is-resizing::before {
  background: var(--vpm-brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--vpm-brand) 15%, transparent);
}
.vpm-column-resizer > i {
  position: absolute;
  z-index: 2;
  right: 7px;
  top: 3px;
  display: none;
  min-width: 31px;
  padding: 2px 5px;
  border: 1px solid var(--vpm-border);
  border-radius: 6px;
  background: var(--vpm-panel);
  color: var(--vpm-muted);
  font-size: 8px;
  font-style: normal;
  font-weight: var(--vpm-font-weight-control, 500);
  letter-spacing: 0;
  text-align: center;
  text-transform: none;
  box-shadow: var(--vpm-shadow-sm);
  pointer-events: none;
}
.vpm-column-resizer:hover > i,
.vpm-column-resizer:focus-visible > i,
.vpm-column-resizer.is-resizing > i {
  display: block;
}
.vpm-is-resizing-columns,
.vpm-is-resizing-columns * {
  cursor: col-resize !important;
  user-select: none !important;
}
.vpm-is-resizing-columns .vpm-resizable-table col {
  transition: none;
}
.vpm-column-resize-tooltip {
  position: fixed;
  z-index: 2147483600;
  display: grid;
  grid-template-columns: auto auto;
  gap: 2px 10px;
  min-width: 158px;
  padding: 8px 10px;
  border: 1px solid var(--vpm-border);
  border-radius: 9px;
  background: var(--vpm-panel);
  color: var(--vpm-ink);
  font-family: var(--vpm-font);
  box-shadow: var(--vpm-shadow-lg);
  pointer-events: none;
}
.vpm-column-resize-tooltip strong {
  font-size: 11px;
  font-weight: var(--vpm-font-weight-strong, 500);
}
.vpm-column-resize-tooltip span {
  justify-self: end;
  color: var(--vpm-brand);
  font-size: 11px;
  font-weight: var(--vpm-font-weight-heading, 600);
}
.vpm-column-resize-tooltip em {
  grid-column: 1 / -1;
  color: var(--vpm-muted);
  font-size: 9px;
  font-style: normal;
}
.vpm-theme-dark .vpm-column-resizer > i,
.vpm-theme-dark .vpm-column-resize-tooltip {
  background: #151e2e;
  border-color: #334155;
}
@media (max-width: 700px) {
  .vpm-column-resizer { display: none; }
}


/* v0.10.2 — collapsible sidebar, My Work calendar, column chooser, full task dialog */
.vpm-portal-app:not(.vpm-workspace-smooth) .vpm-shell {
  grid-template-columns: var(--vpm-sidebar-width, 284px) minmax(0, 1fr);
}
.vpm-workspace-smooth .vpm-shell {
  grid-template-columns: var(--vpm-smooth-sidebar-width) minmax(0, 1fr);
}
.vpm-shell {
  transition: grid-template-columns .2s ease;
}
.vpm-sidebar {
  transition: transform .2s ease, opacity .16s ease;
}
.vpm-shell.is-sidebar-collapsed,
.vpm-workspace-smooth .vpm-shell.is-sidebar-collapsed,
.vpm-portal-app:not(.vpm-workspace-smooth) .vpm-shell.is-sidebar-collapsed {
  grid-template-columns: 0 minmax(0, 1fr);
}
.vpm-shell.is-sidebar-collapsed .vpm-sidebar {
  transform: translateX(-100%);
  opacity: 0;
  pointer-events: none;
}
.vpm-desktop-sidebar-toggle,
.vpm-desktop-sidebar-close {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--vpm-border);
  border-radius: 8px;
  background: var(--vpm-panel);
  color: var(--vpm-muted);
  cursor: pointer;
}
.vpm-desktop-sidebar-toggle:hover,
.vpm-desktop-sidebar-close:hover {
  color: var(--vpm-ink);
  background: var(--vpm-panel-alt);
}
.vpm-desktop-sidebar-close {
  margin-left: auto;
  border-color: color-mix(in srgb, currentColor 16%, transparent);
  background: transparent;
  color: inherit;
  opacity: .7;
}
.vpm-desktop-sidebar-close:hover { opacity: 1; }
.vpm-desktop-sidebar-toggle .dashicons,
.vpm-desktop-sidebar-close .dashicons { width: 16px; height: 16px; font-size: 16px; }
.vpm-workspace-smooth .vpm-desktop-sidebar-toggle { width: 28px; height: 28px; flex-basis: 28px; border-radius: 5px; }
.vpm-workspace-smooth .vpm-desktop-sidebar-close { width: 26px; height: 26px; flex-basis: 26px; border: 0; }

.vpm-column-picker {
  position: relative;
  flex: 0 0 auto;
  z-index: 40;
}
.vpm-column-picker.is-open { z-index: 2147482300; }
.vpm-column-picker__button {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--vpm-panel-alt);
  color: var(--vpm-ink);
  cursor: pointer;
  white-space: nowrap;
}
.vpm-column-picker__button .dashicons { width: 15px; height: 15px; font-size: 15px; color: var(--vpm-muted); }
.vpm-column-picker__button b { min-width: 20px; padding: 2px 6px; border-radius: 99px; background: var(--vpm-panel); color: var(--vpm-muted); font-size: 9px; }
.vpm-column-picker.is-open .vpm-column-picker__button { border-color: color-mix(in srgb, var(--vpm-brand) 36%, var(--vpm-border)); background: color-mix(in srgb, var(--vpm-brand) 8%, var(--vpm-panel)); }
.vpm-column-picker__menu {
  position: absolute;
  z-index: 2147482400;
  top: calc(100% + 7px);
  right: 0;
  width: 278px;
  display: none;
  overflow: hidden;
  border: 1px solid var(--vpm-border);
  border-radius: 12px;
  background: var(--vpm-panel);
  box-shadow: var(--vpm-shadow-lg);
}
.vpm-column-picker.is-open .vpm-column-picker__menu { display: block; }
.vpm-column-picker__menu > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 14px; border-bottom: 1px solid var(--vpm-border); }
.vpm-column-picker__menu > header strong,
.vpm-column-picker__menu > header small { display: block; }
.vpm-column-picker__menu > header strong { color: var(--vpm-ink); font-size: 12px; }
.vpm-column-picker__menu > header small { margin-top: 2px; color: var(--vpm-muted); font-size: 9px; }
.vpm-column-picker__menu > header button,
.vpm-column-picker__menu > footer button { border: 0; background: transparent; color: var(--vpm-brand); cursor: pointer; font-size: 10px; }
.vpm-column-picker__menu > div { display: grid; gap: 2px; max-height: 320px; overflow: auto; padding: 8px; }
.vpm-column-picker__menu > div > label { min-height: 38px; display: flex; align-items: center; gap: 9px; padding: 7px 8px; border-radius: 8px; color: var(--vpm-ink); cursor: pointer; }
.vpm-column-picker__menu > div > label:hover { background: var(--vpm-panel-alt); }
.vpm-column-picker__menu input { width: 15px; height: 15px; margin: 0; accent-color: var(--vpm-brand); }
.vpm-column-picker__menu label span { flex: 1; font-size: 11px; }
.vpm-column-picker__menu label small { color: var(--vpm-subtle); font-size: 8px; text-transform: uppercase; }
.vpm-column-picker__menu > footer { padding: 9px 13px; border-top: 1px solid var(--vpm-border); background: var(--vpm-panel-alt); }
.vpm-column-picker__menu > footer button { display: inline-flex; align-items: center; gap: 5px; color: var(--vpm-muted); }
.vpm-column-picker__menu > footer .dashicons { width: 14px; height: 14px; font-size: 14px; }
.vpm-toolbar:has(.vpm-column-picker.is-open) { position: relative; z-index: 2147482200; overflow: visible; }

.vpm-mywork-calendar { min-height: 620px; }
.vpm-mywork-calendar > header { align-items: center; }
.vpm-mywork-calendar > header > div:first-child small { display: block; margin-bottom: 3px; color: var(--vpm-muted); font-size: 9px; text-transform: uppercase; letter-spacing: .06em; }
.vpm-mywork-calendar > header > div:last-child { display: flex; gap: 4px; }
.vpm-mywork-calendar-task {
  width: 100%;
  min-width: 0;
  display: grid !important;
  grid-template-columns: 7px minmax(0, 1fr);
  align-items: start;
  gap: 6px;
  padding: 5px 6px !important;
  border: 1px solid var(--vpm-border) !important;
  border-radius: 6px !important;
  background: var(--vpm-panel) !important;
  color: var(--vpm-ink) !important;
  text-align: left;
}
.vpm-mywork-calendar-task > i { width: 7px; height: 7px; margin-top: 3px; border-radius: 50%; background: var(--vpm-project-color); }
.vpm-mywork-calendar-task > span { min-width: 0; overflow: hidden; font-size: 9px; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.vpm-mywork-calendar-task b { margin-right: 5px; color: var(--vpm-muted); font-size: 8px; }
.vpm-mywork-calendar-task:hover { border-color: color-mix(in srgb, var(--vpm-brand) 34%, var(--vpm-border)) !important; }

.vpm-dialog--task {
  width: min(1120px, calc(100vw - 48px));
  max-height: min(94dvh, 940px);
  overflow: hidden;
}
.vpm-dialog--task .vpm-task-form {
  max-height: min(94dvh, 940px);
}
.vpm-dialog--task .vpm-panel-header,
.vpm-dialog--task .vpm-form-footer { flex: 0 0 auto; }
.vpm-dialog--task .vpm-form-body {
  min-height: 0;
  flex: 1 1 auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}
.vpm-dialog--task .vpm-form-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
}
.vpm-form-grid > .wide,
.vpm-dialog--task .vpm-form-grid > .wide {
  grid-column: 1 / -1;
  width: 100%;
  min-width: 0;
}
.vpm-dialog--task .vpm-task-description-editor > label,
.vpm-dialog--task .vpm-task-description-editor textarea,
.vpm-dialog--task .vpm-task-upload-zone,
.vpm-dialog--task .vpm-pending-files { width: 100%; }
.vpm-dialog--task .vpm-form-grid select[multiple] { min-height: 148px; height: auto; }

@media (max-width: 1024px) {
  .vpm-dialog--task .vpm-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .vpm-desktop-sidebar-toggle,
  .vpm-desktop-sidebar-close { display: none; }
  .vpm-shell.is-sidebar-collapsed,
  .vpm-workspace-smooth .vpm-shell.is-sidebar-collapsed,
  .vpm-portal-app:not(.vpm-workspace-smooth) .vpm-shell.is-sidebar-collapsed { grid-template-columns: minmax(0, 1fr); }
  .vpm-shell.is-sidebar-collapsed .vpm-sidebar { opacity: 1; pointer-events: auto; transform: translateX(-105%); }
  .vpm-shell.is-sidebar-collapsed.is-sidebar-open .vpm-sidebar { transform: translateX(0); }
  .vpm-column-picker { width: 100%; }
  .vpm-column-picker__button { width: 100%; justify-content: center; }
  .vpm-column-picker__menu { position: fixed; top: auto; right: 12px; bottom: 12px; left: 12px; width: auto; max-height: min(70dvh, 520px); }
}
@media (max-width: 700px) {
  .vpm-dialog--task { width: 100%; max-height: 94dvh; border-radius: 16px 16px 0 0; }
  .vpm-dialog--task .vpm-form-grid { grid-template-columns: 1fr; }
  .vpm-dialog--task .vpm-form-grid > .wide { grid-column: auto; }
  .vpm-mywork-calendar { min-width: 760px; }
}

.vpm-project-task-table table,
.vpm-mywork-table table { min-width: var(--vpm-table-min, 1040px); }
.vpm-mywork-calendar > header { justify-content: space-between; text-align: left; }
.vpm-mywork-calendar > header h2 { min-width: 0; text-align: left; }
.vpm-dialog--task .vpm-task-form { overflow: hidden; }

/* v0.10.3 — compact assignee picker and task automation checklists */
.vpm-form-field {
  min-width: 0;
  display: grid;
  gap: 6px;
}
.vpm-form-field > span {
  color: #667085;
  font-size: 10px;
  font-weight: var(--vpm-font-weight-strong, 500);
}
.vpm-compact-picker {
  position: relative;
  width: 100%;
  min-width: 0;
}
.vpm-compact-picker > summary {
  min-height: 39px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  border: 1px solid var(--vpm-border);
  border-radius: 9px;
  background: var(--vpm-panel);
  color: var(--vpm-ink);
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.vpm-compact-picker > summary::-webkit-details-marker { display: none; }
.vpm-compact-picker > summary > [data-assignee-summary] {
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.vpm-compact-picker > summary > b {
  min-width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  padding: 0 5px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--vpm-brand) 10%, var(--vpm-panel));
  color: var(--vpm-brand);
  font-size: 10px;
}
.vpm-compact-picker > summary > .dashicons:last-child {
  width: 15px;
  height: 15px;
  font-size: 15px;
  transition: transform .16s ease;
}
.vpm-compact-picker[open] > summary {
  border-color: color-mix(in srgb, var(--vpm-brand) 55%, var(--vpm-border));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--vpm-brand) 9%, transparent);
}
.vpm-compact-picker[open] > summary > .dashicons:last-child { transform: rotate(180deg); }
.vpm-compact-picker__panel {
  position: relative;
  z-index: 5;
  top: auto;
  left: auto;
  width: 100%;
  margin-top: 7px;
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--vpm-border);
  border-radius: 12px;
  background: var(--vpm-panel);
  box-shadow: var(--vpm-shadow-lg);
}
.vpm-picker-search {
  min-height: 38px;
  display: flex !important;
  align-items: center;
  gap: 7px !important;
  padding: 0 9px;
  border: 1px solid var(--vpm-border);
  border-radius: 8px;
  background: var(--vpm-panel-alt);
}
.vpm-picker-search input {
  height: 36px !important;
  min-width: 0;
  flex: 1 1 auto;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
.vpm-compact-picker__options {
  max-height: 260px;
  display: grid;
  gap: 4px;
  overflow: auto;
  overscroll-behavior: contain;
}
.vpm-compact-picker__options > label {
  min-height: 46px;
  display: grid;
  grid-template-columns: 18px 32px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  padding: 6px 8px;
  border-radius: 8px;
  cursor: pointer;
}
.vpm-compact-picker__options > label:hover { background: var(--vpm-panel-alt); }
.vpm-compact-picker__options input {
  width: 15px !important;
  height: 15px !important;
  margin: 0;
  accent-color: var(--vpm-brand);
}
.vpm-compact-picker__options img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--vpm-panel-alt);
}
.vpm-compact-picker__options span { min-width: 0; }
.vpm-compact-picker__options strong,
.vpm-compact-picker__options small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.vpm-compact-picker__options strong { color: var(--vpm-ink); font-size: 11px; }
.vpm-compact-picker__options small { margin-top: 2px; color: var(--vpm-muted); font-size: 9px; }
.vpm-compact-picker__panel > footer {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding-top: 4px;
  border-top: 1px solid var(--vpm-border);
}
.vpm-compact-picker__panel > footer button { min-height: 34px; }

.vpm-automation-checklist {
  overflow: hidden;
  border: 1px solid var(--vpm-border);
  border-radius: 12px;
  background: var(--vpm-panel-alt);
}
.vpm-automation-checklist > header {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 11px;
  border-bottom: 1px solid var(--vpm-border);
  background: var(--vpm-panel);
}
.vpm-automation-checklist > header > div {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 7px;
}
.vpm-automation-checklist > header .dashicons { color: var(--vpm-brand); }
.vpm-automation-checklist > header strong { color: var(--vpm-ink); font-size: 11px; }
.vpm-automation-checklist > header small { color: var(--vpm-muted); font-size: 9px; white-space: nowrap; }
.vpm-automation-checklist > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--vpm-border);
}
.vpm-automation-check {
  min-height: 42px;
  display: flex !important;
  align-items: flex-start;
  gap: 8px !important;
  padding: 10px;
  background: var(--vpm-panel);
  color: var(--vpm-ink);
  cursor: pointer;
}
.vpm-automation-check input {
  width: 15px !important;
  height: 15px !important;
  flex: 0 0 auto;
  margin: 1px 0 0;
  accent-color: var(--vpm-brand);
}
.vpm-automation-check span { font-size: 10px; line-height: 1.45; }
.vpm-automation-check:has(input:checked) span {
  color: var(--vpm-muted);
  text-decoration: line-through;
}

.vpm-task-checklist-detail .vpm-section-heading > span {
  padding: 3px 7px;
  border-radius: 999px;
  background: var(--vpm-panel-alt);
  color: var(--vpm-muted);
  font-size: 9px;
}
.vpm-task-checklist-live {
  display: grid;
  gap: 5px;
}
.vpm-task-checklist-live > label {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 8px 9px;
  border: 1px solid var(--vpm-border);
  border-radius: 8px;
  background: var(--vpm-panel);
  cursor: pointer;
}
.vpm-task-checklist-live input {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  margin: 1px 0 0;
  accent-color: var(--vpm-brand);
}
.vpm-task-checklist-live span { color: var(--vpm-ink); font-size: 11px; line-height: 1.45; }
.vpm-task-checklist-live label:has(input:checked) span { color: var(--vpm-muted); text-decoration: line-through; }

.vpm-theme-dark .vpm-compact-picker > summary,
.vpm-theme-dark .vpm-compact-picker__panel,
.vpm-theme-dark .vpm-automation-checklist > header,
.vpm-theme-dark .vpm-automation-check,
.vpm-theme-dark .vpm-task-checklist-live > label { background: var(--vpm-panel) !important; }
.vpm-theme-dark .vpm-automation-checklist,
.vpm-theme-dark .vpm-picker-search { background: var(--vpm-panel-alt) !important; }

@media (max-width: 760px) {
  .vpm-compact-picker__panel {
    position: fixed;
    z-index: 1001;
    right: 12px;
    bottom: 12px;
    left: 12px;
    top: auto;
    width: auto;
    max-height: 72dvh;
  }
  .vpm-compact-picker__options { max-height: 48dvh; }
  .vpm-automation-checklist > div { grid-template-columns: 1fr; }
}


/* v0.10.4 — task deletion controls */
.vpm-danger-button {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid color-mix(in srgb, var(--vpm-danger) 34%, var(--vpm-border));
  border-radius: var(--vpm-button-radius, 8px);
  background: color-mix(in srgb, var(--vpm-danger) 8%, var(--vpm-panel));
  color: var(--vpm-danger);
  padding: 7px 11px;
  font: inherit;
  font-size: 12px;
  font-weight: var(--vpm-font-weight-control, 500);
  cursor: pointer;
  transition: background .16s ease, border-color .16s ease, color .16s ease, transform .16s ease;
}
.vpm-danger-button:hover {
  background: var(--vpm-danger);
  border-color: var(--vpm-danger);
  color: #fff;
  transform: translateY(-1px);
}
.vpm-danger-button:disabled,
.vpm-task-form-delete:disabled { opacity: .55; cursor: wait; transform: none; }
.vpm-task-form-delete {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 6px 0;
}
.vpm-form-footer__actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
@media (max-width: 600px) {
  .vpm-form-footer { gap: 8px; }
  .vpm-form-footer__actions { flex: 1; }
  .vpm-form-footer__actions > button { flex: 1; }
  .vpm-task-toolbar .vpm-danger-button { width: 100%; }
}


/* v0.10.5 — grouped-list spacing, sidebar hover clearance and project overview */
.vpm-mywork-viewbar {
  margin-bottom: 4px;
}
.vpm-mywork-toolbar + .vpm-filter-chips {
  margin-top: 3px;
  margin-bottom: 5px;
  padding-inline: 2px;
}
.vpm-grouped-lists {
  gap: 8px;
}
.vpm-grouped-lists .vpm-list-panel {
  height: auto;
  min-height: 0;
}
.vpm-list-group {
  min-width: 0;
}
.vpm-list-group + .vpm-list-group {
  margin-top: 2px;
}
.vpm-list-group > header {
  min-height: 30px;
  padding: 6px 3px 5px;
}
.vpm-workspace-smooth .vpm-project-list {
  overflow-x: hidden;
  padding: 0 9px 7px 2px;
}
.vpm-workspace-smooth .vpm-project-nav-item {
  width: calc(100% - 3px);
  margin: 1px 2px 2px 1px;
}
.vpm-workspace-smooth .vpm-project-nav-item:hover,
.vpm-workspace-smooth .vpm-project-nav-item.is-active {
  outline: 1px solid color-mix(in srgb, var(--vpm-border) 72%, transparent);
  outline-offset: -1px;
}

.vpm-projects-overview {
  width: 100%;
  min-width: 0;
  display: grid;
  gap: 14px;
}
.vpm-projects-overview__hero {
  min-height: 94px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 20px;
  border: 1px solid var(--vpm-border);
  border-radius: var(--vpm-radius);
  background: var(--vpm-panel);
  box-shadow: var(--vpm-shadow-sm);
}
.vpm-projects-overview__hero small {
  display: block;
  margin-bottom: 4px;
  color: var(--vpm-brand);
  font-size: 9px;
  font-weight: var(--vpm-font-weight-strong, 500);
  letter-spacing: .09em;
  text-transform: uppercase;
}
.vpm-projects-overview__hero h1 {
  margin: 0;
  color: var(--vpm-ink);
  font-size: 24px;
  font-weight: var(--vpm-font-weight-heading, 600);
  letter-spacing: -.025em;
}
.vpm-projects-overview__hero p {
  margin: 5px 0 0;
  color: var(--vpm-muted);
  font-size: 12px;
}
.vpm-projects-overview__hero > div:first-child { min-width: 0; }
.vpm-projects-overview__hero-actions {
  min-width: 0;
  flex: 0 1 520px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}
.vpm-projects-overview__hero-actions > .vpm-primary {
  min-height: 40px;
  flex: 0 0 auto;
  white-space: nowrap;
}
.vpm-projects-overview__hero-actions .vpm-projects-overview__search {
  width: auto;
  min-width: 190px;
  flex: 1 1 280px;
}
.vpm-projects-overview__search {
  position: relative;
  width: min(360px, 42vw);
  flex: 0 0 auto;
}
.vpm-projects-overview__search .dashicons {
  position: absolute;
  top: 50%;
  left: 12px;
  width: 17px;
  height: 17px;
  margin-top: -8px;
  color: var(--vpm-muted);
  font-size: 17px;
}
.vpm-projects-overview__search input {
  width: 100%;
  height: 40px;
  padding: 0 13px 0 38px;
  border: 1px solid var(--vpm-border);
  border-radius: 9px;
  outline: 0;
  background: var(--vpm-panel-alt);
  color: var(--vpm-ink);
  font: inherit;
  font-size: 12px;
}
.vpm-projects-overview__search input:focus {
  border-color: color-mix(in srgb, var(--vpm-brand) 50%, var(--vpm-border));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--vpm-brand) 10%, transparent);
}
.vpm-projects-overview__summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.vpm-projects-overview__summary article {
  min-height: 72px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 13px 16px;
  border: 1px solid var(--vpm-border);
  border-radius: var(--vpm-radius);
  background: var(--vpm-panel);
  box-shadow: var(--vpm-shadow-sm);
}
.vpm-projects-overview__summary strong {
  color: var(--vpm-ink);
  font-size: 21px;
  font-weight: var(--vpm-font-weight-heading, 600);
}
.vpm-projects-overview__summary span {
  margin-top: 3px;
  color: var(--vpm-muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.vpm-projects-overview__section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 2px 2px 0;
}
.vpm-projects-overview__section-head h2 {
  margin: 0;
  color: var(--vpm-ink);
  font-size: 17px;
  font-weight: var(--vpm-font-weight-heading, 600);
}
.vpm-projects-overview__section-head p {
  margin: 3px 0 0;
  color: var(--vpm-muted);
  font-size: 11px;
}
.vpm-projects-overview__section-head > span {
  color: var(--vpm-muted);
  font-size: 10px;
}
.vpm-projects-overview__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 11px;
  align-items: stretch;
}
.vpm-project-overview-card {
  position: relative;
  min-width: 0;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--vpm-border);
  border-radius: var(--vpm-radius);
  background: var(--vpm-panel);
  box-shadow: var(--vpm-shadow-sm);
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.vpm-project-overview-card[data-action="project"] {
  cursor: pointer;
}
.vpm-project-overview-card[data-action="project"]:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--vpm-project-color, var(--vpm-brand)) 42%, transparent);
  outline-offset: 3px;
}
.vpm-project-overview-card::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--vpm-project-color, var(--vpm-brand));
}
.vpm-project-overview-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--vpm-project-color, var(--vpm-brand)) 36%, var(--vpm-border));
  box-shadow: var(--vpm-shadow-md);
}
.vpm-project-overview-card > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 16px 8px 18px;
}
.vpm-project-overview-card > header > i {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--vpm-project-color, var(--vpm-brand));
  color: #fff;
  font-size: 9px;
  font-style: normal;
  font-weight: var(--vpm-font-weight-strong, 500);
  text-transform: uppercase;
}
.vpm-project-overview-card__status {
  padding: 4px 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--vpm-success) 10%, var(--vpm-panel));
  color: var(--vpm-success);
  font-size: 9px;
  font-weight: var(--vpm-font-weight-control, 500);
  text-transform: capitalize;
}
.vpm-project-overview-card__body {
  min-width: 0;
  flex: 1;
  padding: 4px 16px 14px 18px;
}
.vpm-project-overview-card__body h2 {
  margin: 0;
  overflow: hidden;
  color: var(--vpm-ink);
  font-size: 14px;
  font-weight: var(--vpm-font-weight-heading, 600);
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.vpm-project-overview-card__body > strong {
  display: block;
  margin-top: 3px;
  color: var(--vpm-project-color, var(--vpm-brand));
  font-size: 9px;
  font-weight: var(--vpm-font-weight-strong, 500);
  letter-spacing: .07em;
}
.vpm-project-overview-card__body p {
  display: -webkit-box;
  min-height: 48px;
  margin: 13px 0 0;
  overflow: hidden;
  color: var(--vpm-muted);
  font-size: 10px;
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
.vpm-project-overview-card > footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
  margin: 0 16px 0 18px;
  padding: 12px 0 14px;
  border-top: 1px solid var(--vpm-border);
}
.vpm-project-overview-card > footer > span:first-child {
  min-width: 0;
  color: var(--vpm-muted);
  font-size: 10px;
}
.vpm-project-overview-card > footer > span:first-child b {
  margin-right: 3px;
  color: var(--vpm-ink);
  font-size: 13px;
  font-weight: var(--vpm-font-weight-heading, 600);
}
.vpm-project-overview-card__role {
  padding: 3px 7px;
  border-radius: 999px;
  background: var(--vpm-panel-alt);
  color: var(--vpm-muted);
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.vpm-project-overview-card .vpm-secondary {
  min-height: 30px;
  padding: 0 10px;
}

.vpm-project-details-settings {
  grid-column: 1 / -1;
}
.vpm-projects-overview__empty {
  grid-column: 1 / -1;
  min-height: 230px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 7px;
  border: 1px dashed var(--vpm-border);
  border-radius: var(--vpm-radius);
  background: var(--vpm-panel);
  color: var(--vpm-muted);
  text-align: center;
}
.vpm-projects-overview__empty .dashicons {
  width: 28px;
  height: 28px;
  font-size: 28px;
}
.vpm-projects-overview__empty strong { color: var(--vpm-ink); }
.vpm-projects-overview__empty small { font-size: 10px; }

.vpm-theme-dark .vpm-project-overview-card,
.vpm-theme-dark .vpm-projects-overview__hero,
.vpm-theme-dark .vpm-projects-overview__summary article,
.vpm-theme-dark .vpm-projects-overview__empty {
  background: var(--vpm-panel);
}

@media (max-width: 1100px) {
  .vpm-projects-overview__summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vpm-projects-overview__grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
}
@media (max-width: 700px) {
  .vpm-mywork-viewbar { margin-bottom: 6px; }
  .vpm-mywork-toolbar + .vpm-filter-chips { margin-top: 5px; }
  .vpm-projects-overview__hero { align-items: stretch; flex-direction: column; padding: 15px; }
  .vpm-projects-overview__hero-actions { width: 100%; flex: 0 0 auto; flex-wrap: wrap; justify-content: stretch; }
  .vpm-projects-overview__hero-actions > .vpm-primary { width: 100%; }
  .vpm-projects-overview__hero-actions .vpm-projects-overview__search { min-width: 0; flex-basis: 100%; }
  .vpm-projects-overview__search { width: 100%; }
  .vpm-projects-overview__summary { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .vpm-projects-overview__summary article { min-height: 64px; padding: 10px 12px; }
  .vpm-projects-overview__grid { grid-template-columns: 1fr; }
  .vpm-project-overview-card { min-height: 205px; }
}

.vpm-dialog--project { width: min(620px, calc(100vw - 48px)); overflow: hidden; }
.vpm-project-create-form { width: 100%; }
.vpm-project-create-form .vpm-form-intro { margin: 0; color: var(--vpm-muted); font-size: 11px; line-height: 1.55; }
.vpm-project-create-form input[type="color"] { min-height: 40px; padding: 3px; cursor: pointer; }
@media (max-width: 700px) {
  .vpm-dialog--project { width: 100%; }
}


/* v0.10.6 — consistent vertical rhythm and section clearance */
.vpm-shell {
  --vpm-section-gap: 14px;
}
.vpm-scale-compact { --vpm-section-gap: 10px; }
.vpm-scale-large { --vpm-section-gap: 18px; }

/* Every portal view now gets one predictable spacing system. */
.vpm-view-root {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--vpm-section-gap);
}
.vpm-view-root > * {
  flex-shrink: 0;
  margin-block: 0;
}

/* Fill the remaining workspace correctly in scrollable views. */
.vpm-view-root > .vpm-board {
  flex: 1 1 auto;
  min-height: 420px;
  height: auto;
}
.vpm-view-root > .vpm-calendar-panel,
.vpm-view-root > .vpm-mywork-calendar {
  flex: 0 0 auto;
}

/* Project Home: keep statistics and content cards visibly separated. */
.vpm-view-root > .vpm-summary + .vpm-home-grid {
  margin-top: 2px;
}
.vpm-home-grid {
  row-gap: var(--vpm-section-gap);
  column-gap: var(--vpm-section-gap);
}
.vpm-home-grid > .vpm-panel,
.vpm-home-grid > .vpm-home-card {
  margin: 0;
}

/* Lists and filter areas use the same spacing rather than negative margins. */
.vpm-mywork-viewbar,
.vpm-mywork-toolbar,
.vpm-filter-chips,
.vpm-grouped-lists,
.vpm-list-panel,
.vpm-toolbar {
  margin-block: 0;
}
.vpm-mywork-toolbar + .vpm-filter-chips {
  margin-top: calc(var(--vpm-section-gap) * -0.45);
  margin-bottom: 0;
}
.vpm-filter-chips:empty { display: none; }
.vpm-grouped-lists { gap: var(--vpm-section-gap); }
.vpm-list-group + .vpm-list-group { margin-top: 0; }
.vpm-list-group > header {
  padding-top: 2px;
  padding-bottom: 7px;
}

/* Prevent borders from visually merging when adjacent sections use white panels. */
.vpm-summary-card,
.vpm-panel,
.vpm-list-panel,
.vpm-toolbar,
.vpm-calendar-panel,
.vpm-projects-overview__hero,
.vpm-projects-overview__summary article,
.vpm-project-overview-card {
  background-clip: padding-box;
}

/* Smooth layout remains compact, but no longer cramped. */
.vpm-workspace-smooth .vpm-view-root {
  gap: max(11px, var(--vpm-section-gap));
}
.vpm-workspace-smooth .vpm-home-grid {
  row-gap: max(12px, var(--vpm-section-gap));
  column-gap: max(12px, var(--vpm-section-gap));
}

@media (max-width: 700px) {
  .vpm-shell { --vpm-section-gap: 10px; }
  .vpm-view-root > .vpm-board {
    min-height: calc(100dvh - 205px);
  }
  .vpm-mywork-toolbar + .vpm-filter-chips {
    margin-top: -3px;
  }
}


/* v0.10.7 — compact inline estimate and due-date values */
@media (min-width: 701px) {
  .vpm-list-panel td:has(.vpm-inline-number),
  .vpm-list-panel td:has(.vpm-inline-date) {
    text-align: center;
  }

  .vpm-inline-number {
    width: 58px;
    max-width: 58px;
    height: 26px;
    min-height: 26px;
    padding-inline: 5px;
    margin-inline: auto;
    font-size: 10px;
    text-align: center;
  }

  .vpm-inline-date {
    width: 96px;
    max-width: 96px;
    height: 26px;
    min-height: 26px;
    padding: 0 3px 0 5px;
    margin-inline: auto;
    font-size: 10px;
    line-height: 1;
  }

  .vpm-inline-date::-webkit-datetime-edit {
    padding: 0;
  }

  .vpm-inline-date::-webkit-calendar-picker-indicator {
    width: 13px;
    height: 13px;
    margin: 0;
    padding: 1px;
    cursor: pointer;
  }

  .vpm-scale-compact .vpm-inline-number {
    width: 52px;
    max-width: 52px;
    height: 24px;
    min-height: 24px;
    font-size: 9px;
  }

  .vpm-scale-compact .vpm-inline-date {
    width: 90px;
    max-width: 90px;
    height: 24px;
    min-height: 24px;
    font-size: 9px;
  }

  .vpm-scale-large .vpm-inline-number {
    width: 64px;
    max-width: 64px;
    height: 29px;
    min-height: 29px;
    font-size: 11px;
  }

  .vpm-scale-large .vpm-inline-date {
    width: 106px;
    max-width: 106px;
    height: 29px;
    min-height: 29px;
    font-size: 11px;
  }
}


/* v0.10.8 — per-user drag-resizable desktop sidebar */
.vpm-shell { position: relative; }
.vpm-portal-app:not(.vpm-workspace-smooth) .vpm-shell {
  grid-template-columns: var(--vpm-active-sidebar-width, var(--vpm-sidebar-width, 284px)) minmax(0, 1fr);
}
.vpm-workspace-smooth .vpm-shell {
  grid-template-columns: var(--vpm-active-sidebar-width, var(--vpm-smooth-sidebar-width)) minmax(0, 1fr);
}
.vpm-sidebar-resizer {
  position: absolute;
  z-index: 46;
  top: 0;
  bottom: 0;
  left: calc(var(--vpm-active-sidebar-width, var(--vpm-sidebar-width, 284px)) - 6px);
  width: 12px;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  cursor: col-resize;
  touch-action: none;
}
.vpm-workspace-smooth .vpm-sidebar-resizer {
  left: calc(var(--vpm-active-sidebar-width, var(--vpm-smooth-sidebar-width)) - 6px);
}
.vpm-sidebar-resizer::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 5px;
  width: 2px;
  background: transparent;
  transition: background-color .15s ease, box-shadow .15s ease;
}
.vpm-sidebar-resizer:hover::before,
.vpm-sidebar-resizer:focus-visible::before,
.vpm-sidebar-resizer.is-resizing::before {
  background: var(--vpm-brand);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--vpm-brand) 16%, transparent);
}
.vpm-sidebar-resizer:focus-visible { outline: 0; }
.vpm-shell.is-sidebar-collapsed .vpm-sidebar-resizer { display: none; }
body.vpm-is-resizing-sidebar {
  cursor: col-resize !important;
  user-select: none !important;
}
body.vpm-is-resizing-sidebar * { cursor: col-resize !important; }
.vpm-sidebar-resize-tooltip {
  position: fixed;
  z-index: 1000002;
  min-width: 164px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 12px;
  padding: 9px 11px;
  border: 1px solid var(--vpm-border, #dfe5ec);
  border-radius: 9px;
  background: var(--vpm-panel, #fff);
  box-shadow: 0 10px 28px rgba(15, 23, 42, .16);
  color: var(--vpm-ink, #172033);
  pointer-events: none;
}
.vpm-sidebar-resize-tooltip strong {
  font-size: 11px;
  font-weight: var(--vpm-font-weight-strong, 500);
}
.vpm-sidebar-resize-tooltip span {
  color: var(--vpm-brand);
  font-size: 11px;
  font-weight: var(--vpm-font-weight-heading, 600);
}
.vpm-sidebar-resize-tooltip em {
  grid-column: 1 / -1;
  color: var(--vpm-muted, #6d7789);
  font-size: 9px;
  font-style: normal;
}
.vpm-theme-dark .vpm-sidebar-resize-tooltip {
  border-color: #334155;
  background: #151e2e;
}
@media (max-width: 820px) {
  .vpm-sidebar-resizer { display: none; }
}

/* v0.10.9 — responsive portal overhaul */
.vpm-mobile-filter-toggle { display: none; }
.vpm-toolbar-controls { display: contents; }

@media (max-width: 820px) {
  html,
  body.vpm-portal-page,
  .vpm-portal-app {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    height: 100dvh !important;
    overflow: hidden !important;
  }

  .vpm-shell,
  .vpm-workspace-smooth .vpm-shell,
  .vpm-portal-app:not(.vpm-workspace-smooth) .vpm-shell,
  .vpm-shell.is-sidebar-collapsed,
  .vpm-workspace-smooth .vpm-shell.is-sidebar-collapsed,
  .vpm-portal-app:not(.vpm-workspace-smooth) .vpm-shell.is-sidebar-collapsed {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    grid-template-columns: none !important;
  }

  .vpm-workspace {
    position: absolute;
    inset: 0;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
  }

  .vpm-content,
  .vpm-workspace-smooth .vpm-content,
  .vpm-user-density-comfortable.vpm-workspace-smooth .vpm-content,
  .vpm-user-density-spacious.vpm-workspace-smooth .vpm-content,
  .vpm-scale-compact .vpm-content,
  .vpm-scale-large .vpm-content {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    padding: 9px 9px max(18px, env(safe-area-inset-bottom)) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    scrollbar-gutter: auto;
  }

  .vpm-view-root,
  .vpm-width-contained .vpm-content > .vpm-view-root,
  .vpm-width-fluid .vpm-content > .vpm-view-root {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
    overflow: visible !important;
    gap: 9px !important;
  }

  .vpm-topbar,
  .vpm-workspace-smooth .vpm-topbar,
  .vpm-scale-large .vpm-topbar,
  .vpm-scale-compact .vpm-topbar {
    position: relative;
    z-index: 30;
    width: 100%;
    min-height: 54px !important;
    padding: 7px 9px !important;
    gap: 7px;
    background: var(--vpm-panel);
  }

  .vpm-project-heading,
  .vpm-smooth-crumb {
    min-width: 0;
    flex: 1 1 auto;
    gap: 7px;
  }

  .vpm-desktop-sidebar-toggle { display: none !important; }
  .vpm-mobile-menu {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    display: grid !important;
    border-radius: 8px;
  }

  .vpm-smooth-crumb strong,
  .vpm-project-heading h1 {
    max-width: none !important;
    min-width: 0;
    overflow: hidden;
    font-size: 13px !important;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .vpm-smooth-crumb > span.dashicons { display: none; }
  .vpm-topbar__actions { margin-left: auto; gap: 5px; }
  .vpm-topbar__actions .vpm-primary,
  .vpm-workspace-smooth .vpm-topbar__actions .vpm-primary {
    width: 38px !important;
    min-width: 38px !important;
    height: 38px !important;
    min-height: 38px !important;
    padding: 0 !important;
    border-radius: 9px !important;
  }
  .vpm-topbar__actions .vpm-primary .vpm-button-label,
  .vpm-topbar__actions .vpm-primary span:not(.dashicons) { display: none !important; }

  .vpm-project-tabs {
    min-height: 42px;
    width: 100%;
    padding: 0 7px !important;
    gap: 1px;
    scroll-padding-inline: 7px;
    -webkit-overflow-scrolling: touch;
  }
  .vpm-project-tabs button,
  .vpm-workspace-smooth .vpm-project-tabs button {
    min-height: 41px;
    padding: 0 10px;
    font-size: 10px;
    white-space: nowrap;
  }

  .vpm-sidebar {
    width: min(88vw, 330px) !important;
    max-width: none !important;
    transform: translateX(-105%) !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }
  .vpm-mobile-sidebar-fullscreen .vpm-sidebar { width: 100vw !important; }
  .vpm-shell.is-sidebar-open .vpm-sidebar,
  .vpm-shell.is-sidebar-collapsed.is-sidebar-open .vpm-sidebar { transform: translateX(0) !important; }
  .vpm-sidebar-resizer { display: none !important; }

  .vpm-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }
  .vpm-summary-card {
    min-height: 62px;
    padding: 9px 10px;
    gap: 7px;
  }
  .vpm-summary-card__icon { display: none; }
  .vpm-summary-card strong { font-size: 16px; }

  .vpm-mywork-viewbar {
    width: 100%;
    min-height: 42px;
    margin: 0 !important;
  }
  .vpm-mywork-viewbar .vpm-view-switch {
    width: 100%;
    min-width: 0;
    padding: 3px;
  }
  .vpm-mywork-viewbar .vpm-view-switch button {
    min-width: 0;
    flex: 1 1 0;
    justify-content: center;
    height: 34px;
    padding: 0 5px;
    gap: 5px;
  }
  .vpm-mywork-viewbar .vpm-view-switch .vpm-label { display: inline !important; font-size: 10px; }

  .vpm-toolbar-grid,
  .vpm-mywork-toolbar,
  .vpm-project-toolbar {
    width: 100% !important;
    min-width: 0 !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: stretch;
    gap: 7px !important;
    padding: 7px !important;
    overflow: visible !important;
  }

  .vpm-toolbar-grid .vpm-task-search,
  .vpm-project-toolbar .vpm-task-search,
  .vpm-mywork-toolbar .vpm-task-search {
    grid-column: 1;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    flex: none;
  }

  .vpm-mobile-filter-toggle {
    grid-column: 2;
    min-width: 42px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0 9px;
    border: 1px solid var(--vpm-border);
    border-radius: 7px;
    background: var(--vpm-panel-alt);
    color: var(--vpm-ink);
    cursor: pointer;
  }
  .vpm-mobile-filter-toggle > span:nth-child(2) { display: none; }
  .vpm-mobile-filter-toggle .dashicons { width: 15px; height: 15px; font-size: 15px; }
  .vpm-mobile-filter-toggle .dashicons:last-child { transition: transform .16s ease; }
  .vpm-toolbar-grid.is-mobile-expanded .vpm-mobile-filter-toggle .dashicons:last-child { transform: rotate(180deg); }
  .vpm-mobile-filter-toggle b {
    min-width: 18px;
    padding: 2px 5px;
    border-radius: 99px;
    background: color-mix(in srgb, var(--vpm-brand) 12%, var(--vpm-panel));
    color: var(--vpm-brand);
    font-size: 9px;
  }

  .vpm-toolbar-controls {
    grid-column: 1 / -1;
    min-width: 0;
    display: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    padding-top: 1px;
  }
  .vpm-toolbar-grid.is-mobile-expanded .vpm-toolbar-controls { display: grid; }
  .vpm-toolbar-controls > select,
  .vpm-toolbar-controls > .vpm-state-filter,
  .vpm-toolbar-controls > .vpm-mine-toggle,
  .vpm-toolbar-controls > .vpm-column-picker,
  .vpm-toolbar-controls > .vpm-toolbar__reset {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
  }
  .vpm-toolbar-controls > .vpm-toolbar__result {
    grid-column: 1 / -1;
    justify-self: end;
    display: block !important;
    margin: 0;
    padding: 0 2px;
    font-size: 9px;
  }
  .vpm-toolbar-controls .vpm-state-filter__button,
  .vpm-toolbar-controls .vpm-column-picker__button,
  .vpm-toolbar-controls .vpm-toolbar__reset,
  .vpm-toolbar-controls .vpm-mine-toggle {
    width: 100%;
    min-height: 34px;
    justify-content: center;
  }

  .vpm-filter-chips {
    width: 100%;
    min-width: 0;
    display: flex;
    flex-wrap: nowrap !important;
    gap: 5px;
    margin: -2px 0 0 !important;
    padding: 0 1px 3px !important;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .vpm-filter-chips::-webkit-scrollbar { display: none; }
  .vpm-filter-chips > * { flex: 0 0 auto; }

  .vpm-state-filter__menu {
    position: fixed !important;
    z-index: 2147483600 !important;
    top: auto !important;
    right: 8px !important;
    bottom: max(8px, env(safe-area-inset-bottom)) !important;
    left: 8px !important;
    width: auto !important;
    max-height: min(72dvh, 560px) !important;
    overflow: auto;
    border-radius: 15px !important;
  }

  .vpm-column-picker__menu {
    right: 8px !important;
    bottom: max(8px, env(safe-area-inset-bottom)) !important;
    left: 8px !important;
  }

  .vpm-grouped-lists {
    width: 100%;
    min-width: 0;
    gap: 10px !important;
  }
  .vpm-list-group {
    width: 100%;
    min-width: 0;
  }
  .vpm-list-group > header {
    position: static !important;
    min-height: 30px;
    padding: 3px 3px 5px !important;
    background: transparent !important;
  }
  .vpm-list-group > header h2 { min-width: 0; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

  .vpm-list-panel,
  .vpm-grouped-lists .vpm-list-panel {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    height: auto !important;
    overflow: visible !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }
  .vpm-list-panel table,
  .vpm-mywork-table table,
  .vpm-project-task-table table,
  .vpm-resizable-table {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    table-layout: auto !important;
    display: block !important;
  }
  .vpm-list-panel colgroup,
  .vpm-list-panel thead { display: none !important; }
  .vpm-list-panel tbody {
    width: 100%;
    display: grid !important;
    gap: 8px;
  }
  .vpm-list-panel tr {
    width: 100%;
    min-width: 0;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    padding: 11px 12px !important;
    overflow: hidden;
    border: 1px solid var(--vpm-border) !important;
    border-radius: 10px !important;
    background: var(--vpm-panel) !important;
    box-shadow: var(--vpm-shadow-sm);
  }
  .vpm-list-panel td {
    width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    display: grid !important;
    grid-template-columns: 82px minmax(0, 1fr) !important;
    align-items: center;
    gap: 8px;
    padding: 6px 0 !important;
    overflow: visible !important;
    border: 0 !important;
    border-top: 1px solid color-mix(in srgb, var(--vpm-border) 75%, transparent) !important;
    white-space: normal !important;
  }
  .vpm-list-panel td::before {
    content: attr(data-label) !important;
    color: var(--vpm-muted);
    font-size: 8px;
    font-weight: var(--vpm-font-weight-strong, 500);
    letter-spacing: .06em;
    text-transform: uppercase;
  }
  .vpm-list-panel td.vpm-list-task {
    grid-template-columns: 1fr !important;
    padding: 0 0 9px !important;
    border-top: 0 !important;
    border-bottom: 1px solid var(--vpm-border) !important;
  }
  .vpm-list-panel td.vpm-list-task::before { display: none; }
  .vpm-list-task button,
  .vpm-list-task strong,
  .vpm-list-task small {
    max-width: 100% !important;
    white-space: normal !important;
  }
  .vpm-list-task button { width: 100%; text-align: left; }
  .vpm-list-panel select,
  .vpm-list-panel input,
  .vpm-list-panel .vpm-inline-number,
  .vpm-list-panel .vpm-inline-date {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
  }
  .vpm-list-panel .vpm-inline-assignees { justify-self: start; }

  .vpm-board,
  .vpm-mywork-board {
    width: 100%;
    min-width: 0;
    min-height: calc(100dvh - 190px) !important;
    gap: 8px;
    padding-bottom: 5px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 1px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .vpm-board::-webkit-scrollbar,
  .vpm-mywork-board::-webkit-scrollbar { display: none; }
  .vpm-board-column {
    width: calc(100vw - 30px) !important;
    min-width: calc(100vw - 30px) !important;
    max-width: calc(100vw - 30px) !important;
    height: calc(100dvh - 205px) !important;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  .vpm-calendar-panel,
  .vpm-mywork-calendar {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow-x: auto !important;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
  }
  .vpm-calendar-panel > header,
  .vpm-mywork-calendar > header {
    position: sticky;
    left: 0;
    width: calc(100vw - 18px);
  }
  .vpm-calendar-weekdays,
  .vpm-calendar-grid { min-width: 720px !important; }

  .vpm-home-grid,
  .vpm-info-grid,
  .vpm-settings-layout,
  .vpm-settings-fields,
  .vpm-entity-grid,
  .vpm-notes-grid,
  .vpm-quicklinks-grid,
  .vpm-projects-overview__grid {
    width: 100%;
    min-width: 0;
    grid-template-columns: minmax(0, 1fr) !important;
  }
  .vpm-panel,
  .vpm-home-card,
  .vpm-project-overview-card,
  .vpm-profile-hero { min-width: 0; }

  .vpm-drawer {
    width: 100vw !important;
    max-width: none !important;
    border-radius: 0 !important;
  }
  .vpm-dialog-wrap {
    align-items: flex-end !important;
    padding: 0 !important;
  }
  .vpm-dialog,
  .vpm-dialog--task {
    width: 100% !important;
    max-width: none !important;
    max-height: 94dvh !important;
    margin: 0 !important;
    border-radius: 16px 16px 0 0 !important;
  }
  .vpm-dialog--task .vpm-form-grid { grid-template-columns: minmax(0, 1fr) !important; }
  .vpm-panel-header { padding: 13px 14px !important; }
  .vpm-form-body { padding: 14px !important; }
  .vpm-form-footer { padding: 10px 14px max(10px, env(safe-area-inset-bottom)) !important; }

  .vpm-projects-overview__summary { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .vpm-focused-home,
  .vpm-profile-dashboard { width: 100%; max-width: none; }
}

@media (max-width: 480px) {
  .vpm-content,
  .vpm-workspace-smooth .vpm-content { padding-inline: 7px !important; }

  .vpm-topbar,
  .vpm-workspace-smooth .vpm-topbar { min-height: 50px !important; padding-inline: 7px !important; }
  .vpm-mobile-menu { width: 34px; height: 34px; flex-basis: 34px; }
  .vpm-topbar__actions .vpm-primary,
  .vpm-workspace-smooth .vpm-topbar__actions .vpm-primary { width: 35px !important; min-width: 35px !important; height: 35px !important; min-height: 35px !important; }

  .vpm-toolbar-controls { grid-template-columns: minmax(0, 1fr); }
  .vpm-toolbar-controls > .vpm-toolbar__result { grid-column: 1; }
  .vpm-mobile-filter-toggle > span:nth-child(2) { display: none; }

  .vpm-list-panel td { grid-template-columns: 70px minmax(0, 1fr) !important; }
  .vpm-board-column {
    width: calc(100vw - 22px) !important;
    min-width: calc(100vw - 22px) !important;
    max-width: calc(100vw - 22px) !important;
  }

  .vpm-summary-card { min-height: 56px; padding: 8px 9px; }
  .vpm-summary-card strong { font-size: 15px; }
  .vpm-summary-card small { font-size: 7px; }

  .vpm-projects-overview__summary { grid-template-columns: minmax(0, 1fr) !important; }
  .vpm-profile-hero { grid-template-columns: 46px minmax(0, 1fr) !important; }
}

@media (min-width: 821px) {
  .vpm-mobile-filter-toggle { display: none !important; }
  .vpm-toolbar-controls { display: contents !important; }
}

/* v0.11.0 — restore compact desktop toolbars and simplify phone task previews */
@media (min-width: 821px) {
  /* The responsive overhaul must not turn desktop filters into full-width rows. */
  .vpm-toolbar-grid,
  .vpm-mywork-toolbar,
  .vpm-project-toolbar {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 8px !important;
    width: 100% !important;
    min-width: 0 !important;
    padding: 7px 8px !important;
  }

  .vpm-toolbar-controls {
    display: contents !important;
  }

  .vpm-toolbar-grid .vpm-task-search,
  .vpm-project-toolbar .vpm-task-search,
  .vpm-mywork-toolbar .vpm-task-search {
    flex: 2 1 280px !important;
    width: auto !important;
    min-width: 220px !important;
    max-width: 460px !important;
  }

  .vpm-toolbar-controls > select,
  .vpm-toolbar-controls > .vpm-state-filter,
  .vpm-toolbar-controls > .vpm-mine-toggle,
  .vpm-toolbar-controls > .vpm-column-picker {
    flex: 1 1 125px !important;
    width: auto !important;
    min-width: 112px !important;
    max-width: 190px !important;
    margin: 0 !important;
  }

  .vpm-toolbar-controls > .vpm-column-picker,
  .vpm-toolbar-controls > .vpm-toolbar__reset {
    flex: 0 0 auto !important;
  }

  .vpm-toolbar-controls > .vpm-toolbar__result {
    flex: 0 0 auto !important;
    margin-left: auto !important;
    white-space: nowrap;
  }
}

@media (min-width: 1281px) {
  .vpm-toolbar-grid,
  .vpm-mywork-toolbar,
  .vpm-project-toolbar {
    flex-wrap: nowrap !important;
  }
}

@media (min-width: 821px) and (max-width: 1280px) {
  /* Smaller laptops may use two compact rows, never one full-width row per field. */
  .vpm-toolbar-grid .vpm-task-search,
  .vpm-project-toolbar .vpm-task-search,
  .vpm-mywork-toolbar .vpm-task-search {
    flex-basis: 260px !important;
    min-width: 200px !important;
    max-width: 380px !important;
  }

  .vpm-toolbar-controls > select,
  .vpm-toolbar-controls > .vpm-state-filter,
  .vpm-toolbar-controls > .vpm-mine-toggle,
  .vpm-toolbar-controls > .vpm-column-picker {
    flex-basis: 120px !important;
  }
}

@media (max-width: 820px) {
  /* Mobile lists are previews. Full fields are available after opening the task drawer. */
  .vpm-list-panel tbody {
    gap: 7px !important;
  }

  .vpm-list-panel tr {
    display: block !important;
    min-height: 0 !important;
    padding: 0 !important;
    border-radius: 10px !important;
    cursor: pointer;
  }

  .vpm-list-panel td {
    display: none !important;
  }

  .vpm-list-panel td.vpm-list-task {
    display: block !important;
    width: 100% !important;
    padding: 11px 12px !important;
    border: 0 !important;
  }

  .vpm-list-panel td.vpm-list-task::before {
    display: none !important;
  }

  .vpm-inline-task-open {
    width: 100% !important;
    min-height: 48px;
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    gap: 4px !important;
    padding: 0 !important;
  }

  .vpm-inline-task-open small {
    font-size: 8px !important;
    line-height: 1.2;
  }

  .vpm-inline-task-open strong {
    display: -webkit-box !important;
    overflow: hidden !important;
    font-size: 12px !important;
    line-height: 1.45 !important;
    text-overflow: ellipsis;
    white-space: normal !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  .vpm-list-panel tr:active {
    transform: scale(.995);
  }

  .vpm-list-empty td {
    display: block !important;
    padding: 18px 12px !important;
    text-align: center;
  }
}

/* v0.11.1 — polished mobile task drawer */
.vpm-task-detail__header {
  position: relative;
}
.vpm-task-toolbar {
  justify-content: space-between;
}
.vpm-task-toolbar__actions,
.vpm-task-toolbar__meta {
  min-width: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}
.vpm-task-toolbar__meta {
  margin-left: auto;
}

@media (max-width: 820px) {
  .vpm-task-detail {
    min-height: 100dvh;
  }

  .vpm-task-detail__header {
    min-height: 0 !important;
    display: block !important;
    padding: 15px 58px 14px 16px !important;
  }

  .vpm-task-detail__header > div {
    min-width: 0;
  }

  .vpm-task-detail__header small {
    margin: 0 0 7px !important;
    padding-right: 0;
    font-size: 8px !important;
    line-height: 1.35;
  }

  .vpm-task-detail__header h2 {
    margin: 0 !important;
    font-size: clamp(18px, 5.4vw, 22px) !important;
    line-height: 1.3 !important;
    overflow-wrap: anywhere;
  }

  .vpm-task-detail__header .vpm-close {
    position: absolute !important;
    z-index: 3;
    top: 12px !important;
    right: 12px !important;
    width: 36px !important;
    min-width: 36px !important;
    height: 36px !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .vpm-task-detail__body {
    min-height: 0;
    display: block !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  .vpm-task-detail__main {
    padding: 14px 14px 24px !important;
  }

  .vpm-task-detail__aside {
    padding: 18px 14px calc(24px + env(safe-area-inset-bottom)) !important;
  }

  .vpm-task-toolbar {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 10px !important;
    margin: 0 0 18px !important;
  }

  .vpm-task-toolbar__actions {
    width: 100%;
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
    gap: 7px !important;
  }

  .vpm-task-toolbar__actions > button {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 40px !important;
    height: 40px;
    margin: 0 !important;
    padding: 0 8px !important;
    justify-content: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 10.5px !important;
  }

  .vpm-task-toolbar__actions > button .dashicons {
    width: 15px;
    height: 15px;
    flex: 0 0 15px;
    font-size: 15px;
  }

  .vpm-task-toolbar .vpm-danger-button {
    width: 100% !important;
  }

  .vpm-task-toolbar__meta {
    width: 100%;
    margin: 0 !important;
    padding: 0 1px;
    gap: 7px !important;
  }

  .vpm-task-description {
    font-size: 13px !important;
    line-height: 1.65 !important;
  }

  .vpm-detail-section {
    margin-top: 24px !important;
  }

  .vpm-comment-form {
    width: 100%;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 9px !important;
  }

  .vpm-comment-form textarea {
    box-sizing: border-box;
    width: 100% !important;
    min-height: 82px !important;
    max-height: 180px;
    margin: 0 !important;
  }

  .vpm-comment-form .vpm-primary {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 40px !important;
    height: 40px !important;
    justify-self: stretch !important;
    padding: 0 14px !important;
  }

  .vpm-comment-form .vpm-primary span {
    display: inline !important;
  }

  .vpm-comment-form__actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .vpm-comment-notify,
  .vpm-comment-notify select {
    width: 100%;
    max-width: none;
  }
}

@media (max-width: 360px) {
  .vpm-task-toolbar__actions {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}


/* Project multi-status filters (v0.11.3) */
.vpm-project-toolbar { position: relative; z-index: 30; overflow: visible; isolation: isolate; }
.vpm-project-toolbar.has-open-popover { z-index: 2147482200; }
.vpm-project-toolbar .vpm-state-filter.is-open { z-index: 2147482300; }
.vpm-project-toolbar .vpm-state-filter__menu { z-index: 2147482400; }
.vpm-project-filter-chips { position: relative; z-index: 2; }
@media (max-width: 700px) {
  .vpm-project-toolbar.has-open-popover { z-index: 2147482400; }
}


/* Personal project sorting (v0.11.4) */
.vpm-sidebar__section-tools {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}
.vpm-project-sort {
  position: relative;
  z-index: 35;
}
.vpm-project-sort__toggle {
  position: relative;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: #8a95a8;
  cursor: pointer;
}
.vpm-project-sort__toggle:hover,
.vpm-project-sort.is-open .vpm-project-sort__toggle {
  border-color: var(--vpm-border);
  background: var(--vpm-panel-alt);
  color: var(--vpm-ink);
}
.vpm-project-sort__toggle .dashicons {
  width: 15px;
  height: 15px;
  font-size: 15px;
  line-height: 15px;
}
.vpm-project-sort__toggle i {
  position: absolute;
  right: -3px;
  bottom: -3px;
  min-width: 17px;
  padding: 1px 3px;
  border-radius: 999px;
  background: var(--vpm-brand);
  color: #fff;
  font-style: normal;
  font-size: 7px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: .04em;
}
.vpm-project-sort__menu {
  position: absolute;
  z-index: 250;
  top: calc(100% + 7px);
  right: -30px;
  display: none;
  width: min(260px, calc(100vw - 24px));
  padding: 7px;
  border: 1px solid var(--vpm-border);
  border-radius: 11px;
  background: var(--vpm-panel);
  box-shadow: 0 18px 46px rgba(17, 24, 39, .16);
}
.vpm-project-sort.is-open .vpm-project-sort__menu { display: block; }
.vpm-project-sort__menu header {
  padding: 7px 8px 8px;
  border-bottom: 1px solid var(--vpm-border);
}
.vpm-project-sort__menu header strong,
.vpm-project-sort__menu header small {
  display: block;
}
.vpm-project-sort__menu header strong {
  color: var(--vpm-ink);
  font-size: 12px;
}
.vpm-project-sort__menu header small {
  margin-top: 2px;
  color: var(--vpm-muted);
  font-size: 9px;
}
.vpm-project-sort__menu > button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 34px;
  margin-top: 3px;
  padding: 7px 9px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--vpm-ink);
  text-align: left;
  font-size: 10px;
  cursor: pointer;
}
.vpm-project-sort__menu > button:hover,
.vpm-project-sort__menu > button.is-active {
  background: var(--vpm-panel-alt);
}
.vpm-project-sort__menu > button.is-active {
  color: var(--vpm-brand);
}
.vpm-project-sort__menu > button .dashicons {
  width: 15px;
  height: 15px;
  font-size: 15px;
}
.vpm-project-sort__menu footer {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  margin-top: 5px;
  padding: 7px 8px 3px;
  border-top: 1px solid var(--vpm-border);
  color: var(--vpm-muted);
  font-size: 8px;
}
.vpm-project-sort__menu footer strong {
  color: var(--vpm-ink);
  font-weight: 500;
}
.vpm-projects-overview__tools {
  display: flex;
  align-items: center;
  gap: 10px;
}
.vpm-project-sort-select {
  position: relative;
  display: flex;
  align-items: center;
}
.vpm-project-sort-select > .dashicons {
  position: absolute;
  z-index: 1;
  left: 9px;
  width: 14px;
  height: 14px;
  color: var(--vpm-muted);
  font-size: 14px;
  pointer-events: none;
}
.vpm-project-sort-select select {
  min-width: 224px;
  height: 34px;
  padding: 0 30px 0 28px;
  border: 1px solid var(--vpm-border);
  border-radius: 8px;
  background: var(--vpm-panel);
  color: var(--vpm-ink);
  font: inherit;
  font-size: 10px;
}
.vpm-workspace-smooth .vpm-project-sort__toggle {
  width: 23px;
  height: 23px;
  border-radius: 6px;
}
.vpm-workspace-smooth .vpm-project-sort__menu {
  right: -26px;
}
@media (max-width: 720px) {
  .vpm-projects-overview__section-head {
    align-items: stretch;
    flex-direction: column;
  }
  .vpm-projects-overview__tools {
    justify-content: space-between;
  }
  .vpm-project-sort-select {
    flex: 1;
  }
  .vpm-project-sort-select select {
    width: 100%;
    min-width: 0;
  }
}

/* v0.11.6 — task dates and personal notification controls */
.vpm-task-form label > small,
.vpm-simple-form label > small {
  display: block;
  margin-top: 5px;
  color: var(--vpm-muted);
  font-size: .78rem;
  line-height: 1.35;
}
.vpm-notification-editor {
  gap: 14px;
}
.vpm-browser-notification-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  padding: 12px;
  border: 1px solid var(--vpm-border);
  border-radius: var(--vpm-radius);
  background: var(--vpm-panel-alt);
}
.vpm-browser-notification-row small {
  color: var(--vpm-muted);
}
.vpm-browser-notification-row .dashicons {
  margin-right: 5px;
}
@media (max-width: 640px) {
  .vpm-browser-notification-row {
    align-items: stretch;
  }
  .vpm-browser-notification-row .vpm-secondary {
    width: 100%;
    justify-content: center;
  }
}

/* v0.11.7 — completed-work exports and bulk task status changes */
.vpm-toolbar__export {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid var(--vpm-border);
  border-radius: 8px;
  background: var(--vpm-panel);
  color: var(--vpm-ink);
  font: inherit;
  font-size: 10px;
  font-weight: var(--vpm-font-weight-control, 500);
  cursor: pointer;
}
.vpm-toolbar__export:hover {
  border-color: color-mix(in srgb, var(--vpm-brand) 45%, var(--vpm-border));
  color: var(--vpm-brand);
}
.vpm-toolbar__export .dashicons {
  width: 15px;
  height: 15px;
  font-size: 15px;
  line-height: 15px;
}

.vpm-bulk-toolbar {
  position: sticky;
  z-index: 24;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 48px;
  margin: 0 0 var(--vpm-section-gap, 10px);
  padding: 7px 10px;
  border: 1px solid color-mix(in srgb, var(--vpm-brand) 36%, var(--vpm-border));
  border-radius: 10px;
  background: color-mix(in srgb, var(--vpm-brand) 6%, var(--vpm-panel));
  box-shadow: var(--vpm-shadow-sm);
}
.vpm-bulk-toolbar > div {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.vpm-bulk-toolbar > div:first-child > .dashicons { color: var(--vpm-brand); }
.vpm-bulk-toolbar strong { white-space: nowrap; font-size: 11px; }
.vpm-bulk-toolbar select {
  min-width: 190px;
  height: 34px;
  border: 1px solid var(--vpm-border);
  border-radius: 8px;
  background: var(--vpm-panel);
  color: var(--vpm-ink);
  font: inherit;
  font-size: 10px;
}
.vpm-bulk-toolbar button {
  min-height: 34px;
  white-space: nowrap;
}
.vpm-bulk-toolbar > div:first-child button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--vpm-brand);
  font: inherit;
  font-size: 9px;
  cursor: pointer;
}
.vpm-bulk-select-col { width: 42px !important; }
.vpm-bulk-select-head,
.vpm-bulk-select-cell {
  width: 42px !important;
  min-width: 42px !important;
  max-width: 42px !important;
  padding: 0 !important;
  text-align: center !important;
  vertical-align: middle !important;
}
.vpm-bulk-select-head input,
.vpm-bulk-select-cell input {
  width: 16px !important;
  min-width: 16px !important;
  height: 16px !important;
  margin: 0 !important;
  accent-color: var(--vpm-brand);
  cursor: pointer;
}
.vpm-project-task-table.has-bulk-selection tr:has([data-bulk-task-checkbox]:checked) {
  background: color-mix(in srgb, var(--vpm-brand) 5%, var(--vpm-panel));
}

.vpm-export-form .vpm-form-intro {
  margin: 0;
  color: var(--vpm-muted);
  font-size: 11px;
  line-height: 1.6;
}
.vpm-export-preview {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--vpm-border);
  border-radius: 10px;
  background: var(--vpm-panel-alt);
}
.vpm-export-preview > .dashicons {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: color-mix(in srgb, var(--vpm-brand) 12%, var(--vpm-panel));
  color: var(--vpm-brand);
  font-size: 22px;
}
.vpm-export-preview strong,
.vpm-export-preview small { display: block; }
.vpm-export-preview small { margin-top: 3px; color: var(--vpm-muted); font-size: 9px; }

@media (max-width: 980px) {
  .vpm-bulk-toolbar { align-items: stretch; flex-direction: column; }
  .vpm-bulk-toolbar > div:last-child { flex-wrap: wrap; }
  .vpm-bulk-toolbar select { flex: 1 1 190px; }
}

@media (max-width: 820px) {
  .vpm-toolbar__export { width: 100%; }
  .vpm-bulk-toolbar {
    position: static;
    gap: 8px;
    padding: 9px;
  }
  .vpm-bulk-toolbar > div { align-items: stretch; flex-wrap: wrap; }
  .vpm-bulk-toolbar > div:first-child { align-items: center; }
  .vpm-bulk-toolbar > div:last-child > * { flex: 1 1 130px; }
  .vpm-project-task-table.has-bulk-selection tr { position: relative; }
  .vpm-project-task-table.has-bulk-selection td.vpm-bulk-select-cell {
    position: absolute;
    z-index: 3;
    top: 9px;
    right: 9px;
    display: grid !important;
    place-items: center;
    width: 28px !important;
    min-width: 28px !important;
    height: 28px !important;
    padding: 0 !important;
    border: 1px solid var(--vpm-border) !important;
    border-radius: 7px;
    background: var(--vpm-panel-alt);
  }
  .vpm-project-task-table.has-bulk-selection td.vpm-bulk-select-cell::before { display: none !important; }
  .vpm-project-task-table.has-bulk-selection td.vpm-list-task { padding-right: 48px !important; }
}

/* 0.13.108 — Discord-inspired dark theme and personal dark palette overrides. */
.vpm-theme-dark.vpm-dark-discord {
  --vpm-bg: #313338 !important;
  --vpm-panel: #2b2d31 !important;
  --vpm-panel-alt: #383a40 !important;
  --vpm-ink: #f2f3f5 !important;
  --vpm-muted: #b5bac1 !important;
  --vpm-subtle: #949ba4 !important;
  --vpm-border: #1f2023 !important;
  --vpm-border-strong: #41434a !important;
  --vpm-sidebar: #1e1f22 !important;
  --vpm-sidebar-hover: #35373c !important;
  --vpm-dark-input: #383a40 !important;
  --vpm-dark-hover: #35373c !important;
  --vpm-dark-soft: #404249 !important;
  --vpm-shadow-sm: none !important;
  --vpm-shadow-md: 0 10px 24px rgba(0,0,0,.22) !important;
  --vpm-shadow-lg: 0 24px 70px rgba(0,0,0,.42) !important;
}
.vpm-theme-dark.vpm-dark-discord :is(.vpm-panel,.vpm-home-card,.vpm-summary-card,.vpm-task-card,.vpm-board-column,.vpm-list-panel,.vpm-entity-card,.vpm-quicklink-card) {
  box-shadow: none !important;
}
.vpm-theme-dark.vpm-dark-discord .vpm-topbar,
.vpm-theme-dark.vpm-dark-discord .vpm-project-tabs {
  background: var(--vpm-panel) !important;
}
.vpm-theme-dark.vpm-dark-discord .vpm-content { background: var(--vpm-bg) !important; }

/* 0.11.8 — complete dark-mode palettes and late-component coverage */
.vpm-theme-dark.vpm-dark-midnight {
  --vpm-bg: #080e1a !important;
  --vpm-panel: #101827 !important;
  --vpm-panel-alt: #162033 !important;
  --vpm-ink: #e8eef8 !important;
  --vpm-muted: #9aa9bd !important;
  --vpm-subtle: #75859a !important;
  --vpm-border: #2a3950 !important;
  --vpm-border-strong: #384963 !important;
  --vpm-sidebar: #070e1a !important;
  --vpm-sidebar-hover: #18243a !important;
  --vpm-dark-input: #0c1422;
  --vpm-dark-hover: #19253a;
  --vpm-dark-soft: #1c283c;
}
.vpm-theme-dark.vpm-dark-graphite {
  --vpm-bg: #111315 !important;
  --vpm-panel: #191c20 !important;
  --vpm-panel-alt: #21252a !important;
  --vpm-ink: #f0f1f2 !important;
  --vpm-muted: #a4a9af !important;
  --vpm-subtle: #7f858c !important;
  --vpm-border: #353a41 !important;
  --vpm-border-strong: #454b54 !important;
  --vpm-sidebar: #101214 !important;
  --vpm-sidebar-hover: #272b31 !important;
  --vpm-dark-input: #15181b;
  --vpm-dark-hover: #252a30;
  --vpm-dark-soft: #292e34;
}
.vpm-theme-dark.vpm-dark-black {
  --vpm-bg: #000000 !important;
  --vpm-panel: #090909 !important;
  --vpm-panel-alt: #121212 !important;
  --vpm-ink: #f5f5f5 !important;
  --vpm-muted: #a3a3a3 !important;
  --vpm-subtle: #777777 !important;
  --vpm-border: #292929 !important;
  --vpm-border-strong: #3a3a3a !important;
  --vpm-sidebar: #000000 !important;
  --vpm-sidebar-hover: #171717 !important;
  --vpm-dark-input: #060606;
  --vpm-dark-hover: #171717;
  --vpm-dark-soft: #1c1c1c;
}
.vpm-theme-dark.vpm-dark-slate {
  --vpm-bg: #10161e !important;
  --vpm-panel: #18212c !important;
  --vpm-panel-alt: #202b38 !important;
  --vpm-ink: #e8edf3 !important;
  --vpm-muted: #a0adbc !important;
  --vpm-subtle: #7f8d9e !important;
  --vpm-border: #344355 !important;
  --vpm-border-strong: #46576b !important;
  --vpm-sidebar: #0c1219 !important;
  --vpm-sidebar-hover: #263345 !important;
  --vpm-dark-input: #131b25;
  --vpm-dark-hover: #263345;
  --vpm-dark-soft: #2a3747;
}

.vpm-theme-dark {
  color-scheme: dark;
  --vpm-brand-soft: color-mix(in srgb, var(--vpm-brand) 18%, var(--vpm-panel)) !important;
  --vpm-shadow-sm: 0 1px 2px rgba(0,0,0,.36), 0 1px 4px rgba(0,0,0,.22) !important;
  --vpm-shadow-md: 0 14px 34px rgba(0,0,0,.38) !important;
  --vpm-shadow-lg: 0 26px 80px rgba(0,0,0,.58) !important;
}

.vpm-theme-dark,
.vpm-theme-dark .vpm-shell,
.vpm-theme-dark .vpm-workspace,
.vpm-theme-dark .vpm-content,
.vpm-theme-dark .vpm-view-root,
.vpm-theme-dark.vpm-workspace-smooth .vpm-workspace,
.vpm-theme-dark.vpm-workspace-smooth .vpm-content {
  background: var(--vpm-bg) !important;
  color: var(--vpm-ink) !important;
}

.vpm-theme-dark :is(
  .vpm-topbar,
  .vpm-project-tabs,
  .vpm-toolbar,
  .vpm-panel,
  .vpm-home-card,
  .vpm-summary-card,
  .vpm-task-card,
  .vpm-board-column,
  .vpm-board-column__header,
  .vpm-list-panel,
  .vpm-dialog,
  .vpm-drawer,
  .vpm-profile-hero,
  .vpm-profile-form-section,
  .vpm-profile-links-editor,
  .vpm-profile-link-row,
  .vpm-file-item,
  .vpm-comment__bubble,
  .vpm-personal-note,
  .vpm-focused-link,
  .vpm-recent-row,
  .vpm-calendar-panel,
  .vpm-calendar-day,
  .vpm-entity-card,
  .vpm-quicklink-card,
  .vpm-member-preview article,
  .vpm-mini-task-list button,
  .vpm-project-overview-card,
  .vpm-projects-overview__hero,
  .vpm-projects-overview__summary article,
  .vpm-projects-overview__empty,
  .vpm-section-card,
  .vpm-info-card,
  .vpm-settings-card,
  .vpm-note-card,
  .vpm-export-preview,
  .vpm-bulk-toolbar,
  .vpm-compact-picker__panel,
  .vpm-column-picker__menu,
  .vpm-state-filter__menu,
  .vpm-assignee-dialog,
  .vpm-automation-checklist,
  .vpm-task-checklist-live > label
) {
  background-color: var(--vpm-panel) !important;
  border-color: var(--vpm-border) !important;
  color: var(--vpm-ink) !important;
}

.vpm-theme-dark :is(
  .vpm-view-switch,
  .vpm-form-footer,
  .vpm-form-checks,
  .vpm-empty-inline,
  .vpm-focused-empty,
  .vpm-calendar-weekdays,
  .vpm-state-filter__presets,
  .vpm-picker-search,
  .vpm-column-picker__menu > footer,
  .vpm-profile-form-section,
  .vpm-profile-links-editor,
  .vpm-task-detail__aside,
  .vpm-task-upload-zone,
  .vpm-live-upload-zone,
  .vpm-avatar-drop,
  .vpm-pending-file,
  .vpm-automation-check,
  .vpm-bulk-select-cell,
  .vpm-inline-control,
  .vpm-inline-assignees,
  .vpm-mine-toggle
) {
  background-color: var(--vpm-panel-alt) !important;
  border-color: var(--vpm-border) !important;
  color: var(--vpm-ink) !important;
}

.vpm-theme-dark.vpm-workspace-smooth :is(
  .vpm-sidebar,
  .vpm-sidebar__brand,
  .vpm-sidebar__user,
  .vpm-topbar,
  .vpm-project-tabs,
  .vpm-toolbar,
  .vpm-board-column,
  .vpm-task-card,
  .vpm-content
) {
  background: var(--vpm-panel) !important;
  border-color: var(--vpm-border) !important;
}
.vpm-theme-dark.vpm-workspace-smooth .vpm-sidebar { background: var(--vpm-sidebar) !important; }
.vpm-theme-dark.vpm-workspace-smooth .vpm-toolbar,
.vpm-theme-dark.vpm-workspace-smooth .vpm-board-column { background: var(--vpm-panel-alt) !important; }

.vpm-theme-dark :is(input, textarea, select),
.vpm-theme-dark :is(.vpm-task-search input, .vpm-toolbar select, .vpm-state-filter__button, .vpm-column-picker__button, .vpm-compact-picker > summary) {
  background: var(--vpm-dark-input, var(--vpm-panel-alt)) !important;
  border-color: var(--vpm-border) !important;
  color: var(--vpm-ink) !important;
  box-shadow: none;
}
.vpm-theme-dark :is(input, textarea)::placeholder { color: var(--vpm-subtle) !important; opacity: 1; }
.vpm-theme-dark :is(input, textarea, select):focus,
.vpm-theme-dark :is(.vpm-task-search input, .vpm-toolbar select, .vpm-state-filter__button):focus,
.vpm-theme-dark .vpm-state-filter.is-open .vpm-state-filter__button {
  background: var(--vpm-dark-soft, var(--vpm-panel-alt)) !important;
  border-color: color-mix(in srgb, var(--vpm-brand) 65%, var(--vpm-border)) !important;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--vpm-brand) 16%, transparent) !important;
}

.vpm-theme-dark :is(
  .vpm-secondary,
  .vpm-ghost,
  .vpm-close,
  .vpm-toolbar__reset,
  .vpm-view-switch button,
  .vpm-filter-chips button,
  .vpm-state-filter__presets button,
  .vpm-column-picker__menu button,
  .vpm-profile-link-remove
) {
  background: var(--vpm-panel-alt) !important;
  border-color: var(--vpm-border) !important;
  color: var(--vpm-ink) !important;
}
.vpm-theme-dark :is(
  .vpm-secondary,
  .vpm-ghost,
  .vpm-close,
  .vpm-toolbar__reset,
  .vpm-view-switch button,
  .vpm-filter-chips button,
  .vpm-state-filter__presets button
):hover {
  background: var(--vpm-dark-hover, var(--vpm-panel-alt)) !important;
  border-color: var(--vpm-border-strong) !important;
  color: var(--vpm-ink) !important;
}
.vpm-theme-dark .vpm-view-switch button.is-active {
  background: var(--vpm-dark-soft, var(--vpm-panel)) !important;
  color: var(--vpm-ink) !important;
  box-shadow: inset 0 0 0 1px var(--vpm-border) !important;
}
.vpm-theme-dark .vpm-filter-chips .vpm-filter-chips__clear {
  background: transparent !important;
  border-color: transparent !important;
  color: var(--vpm-brand) !important;
}

.vpm-theme-dark .vpm-list-panel table,
.vpm-theme-dark .vpm-list-panel thead,
.vpm-theme-dark .vpm-list-panel tbody,
.vpm-theme-dark .vpm-list-panel tr,
.vpm-theme-dark .vpm-list-panel td,
.vpm-theme-dark .vpm-list-panel th {
  background-color: transparent !important;
  border-color: var(--vpm-border) !important;
  color: var(--vpm-ink) !important;
}
.vpm-theme-dark .vpm-list-panel thead th {
  background: var(--vpm-panel-alt) !important;
  color: var(--vpm-muted) !important;
}
.vpm-theme-dark .vpm-list-panel tbody tr:hover,
.vpm-theme-dark .vpm-project-task-table tr:has([data-bulk-task-checkbox]:checked) {
  background: var(--vpm-dark-hover, var(--vpm-panel-alt)) !important;
}
.vpm-theme-dark :is(.vpm-list-task strong, .vpm-task-card h3, .vpm-task-card h2, .vpm-list-group > header h2, .vpm-task-detail h2) {
  color: var(--vpm-ink) !important;
}
.vpm-theme-dark :is(.vpm-list-task small, .vpm-list-panel th, .vpm-list-panel td::before, .vpm-task-card small, .vpm-list-group > header, .vpm-project-cell, .vpm-task-detail small) {
  color: var(--vpm-muted) !important;
}
.vpm-theme-dark .vpm-list-group > header {
  background: var(--vpm-bg) !important;
  color: var(--vpm-ink) !important;
}
.vpm-theme-dark .vpm-list-group > header span,
.vpm-theme-dark :is(.vpm-sidebar__count, .vpm-project-nav-item__number, .vpm-global-nav button b, .vpm-state-filter__options small, .vpm-column-picker__button b) {
  background: var(--vpm-dark-soft, var(--vpm-panel-alt)) !important;
  color: var(--vpm-muted) !important;
}

.vpm-theme-dark .vpm-sidebar {
  background: var(--vpm-sidebar) !important;
  border-color: var(--vpm-border) !important;
}
.vpm-theme-dark :is(.vpm-sidebar__brand strong, .vpm-sidebar__user strong) { color: var(--vpm-ink) !important; }
.vpm-theme-dark :is(.vpm-sidebar__brand small, .vpm-sidebar__user small, .vpm-sidebar__label) { color: var(--vpm-muted) !important; }
.vpm-theme-dark :is(.vpm-global-nav button, .vpm-project-nav-item) { color: var(--vpm-muted) !important; }
.vpm-theme-dark :is(.vpm-global-nav button:hover, .vpm-global-nav button.is-active, .vpm-project-nav-item:hover, .vpm-project-nav-item.is-active) {
  background: var(--vpm-sidebar-hover) !important;
  color: var(--vpm-ink) !important;
}
.vpm-theme-dark .vpm-project-search input,
.vpm-theme-dark.vpm-workspace-smooth .vpm-project-search input,
.vpm-theme-dark.vpm-workspace-smooth .vpm-project-search input:focus {
  background: var(--vpm-dark-input, var(--vpm-panel-alt)) !important;
  border-color: var(--vpm-border) !important;
  color: var(--vpm-ink) !important;
}
.vpm-theme-dark .vpm-project-list,
.vpm-theme-dark .vpm-content { scrollbar-color: var(--vpm-border-strong) transparent !important; }
.vpm-theme-dark .vpm-project-list::-webkit-scrollbar-thumb,
.vpm-theme-dark .vpm-content::-webkit-scrollbar-thumb { background: var(--vpm-border-strong) !important; }

.vpm-theme-dark :is(.vpm-smooth-crumb, .vpm-smooth-crumb strong, .vpm-project-tabs button, .vpm-project-heading h1, .vpm-project-heading__text p) {
  color: var(--vpm-muted) !important;
}
.vpm-theme-dark :is(.vpm-smooth-crumb strong, .vpm-project-tabs button.is-active, .vpm-project-heading h1) { color: var(--vpm-ink) !important; }
.vpm-theme-dark .vpm-topbar { box-shadow: none !important; }

.vpm-theme-dark .vpm-summary-card__icon {
  background: var(--vpm-dark-soft, var(--vpm-panel-alt)) !important;
  color: var(--vpm-muted) !important;
}
.vpm-theme-dark .vpm-summary-card.is-progress .vpm-summary-card__icon {
  background: color-mix(in srgb, var(--vpm-warning) 16%, var(--vpm-panel)) !important;
  color: var(--vpm-warning) !important;
}
.vpm-theme-dark .vpm-summary-card.is-completed .vpm-summary-card__icon {
  background: color-mix(in srgb, var(--vpm-success) 16%, var(--vpm-panel)) !important;
  color: var(--vpm-success) !important;
}
.vpm-theme-dark .vpm-summary-card.is-overdue .vpm-summary-card__icon {
  background: color-mix(in srgb, var(--vpm-danger) 16%, var(--vpm-panel)) !important;
  color: var(--vpm-danger) !important;
}

.vpm-theme-dark :is(.vpm-priority.is-none, .vpm-priority.is-low) {
  background: var(--vpm-dark-soft, var(--vpm-panel-alt)) !important;
  color: var(--vpm-muted) !important;
}
.vpm-theme-dark .vpm-priority.is-medium { background: color-mix(in srgb, #d98216 18%, var(--vpm-panel)) !important; color: #f2b65d !important; }
.vpm-theme-dark .vpm-priority.is-high { background: color-mix(in srgb, #e45f20 18%, var(--vpm-panel)) !important; color: #ff9b69 !important; }
.vpm-theme-dark .vpm-priority.is-urgent { background: color-mix(in srgb, #dc3e45 18%, var(--vpm-panel)) !important; color: #ff858b !important; }
.vpm-theme-dark .vpm-state-pill { color: var(--vpm-ink) !important; }

.vpm-theme-dark :is(.vpm-focused-greeting h1, .vpm-focused-section h2, .vpm-profile-hero h2, .vpm-entity-card h3, .vpm-quicklink-card strong) { color: var(--vpm-ink) !important; }
.vpm-theme-dark :is(.vpm-focused-greeting p, .vpm-focused-section small, .vpm-profile-hero p, .vpm-profile-hero span, .vpm-empty-inline, .vpm-focused-empty) { color: var(--vpm-muted) !important; }
.vpm-theme-dark .vpm-recent-row:hover,
.vpm-theme-dark .vpm-focused-link:hover,
.vpm-theme-dark .vpm-mini-task-list button:hover,
.vpm-theme-dark .vpm-file-item:hover { background: var(--vpm-dark-hover, var(--vpm-panel-alt)) !important; }

.vpm-theme-dark .vpm-calendar-day button { background: var(--vpm-panel-alt) !important; border-color: var(--vpm-border) !important; color: var(--vpm-ink) !important; }
.vpm-theme-dark .vpm-calendar-day button.is-overdue { background: color-mix(in srgb, var(--vpm-danger) 13%, var(--vpm-panel)) !important; }
.vpm-theme-dark .vpm-form-footer { border-color: var(--vpm-border) !important; }
.vpm-theme-dark .vpm-modal-backdrop { background: rgba(0,0,0,.72) !important; }
.vpm-theme-dark .vpm-toast { background: var(--vpm-panel) !important; border-color: var(--vpm-border) !important; color: var(--vpm-ink) !important; }
.vpm-theme-dark .vpm-toast.is-error { background: color-mix(in srgb, var(--vpm-danger) 14%, var(--vpm-panel)) !important; color: #ffb1b5 !important; }

.vpm-theme-dark input[type="date"]::-webkit-calendar-picker-indicator,
.vpm-theme-dark input[type="time"]::-webkit-calendar-picker-indicator { filter: invert(1) opacity(.75); }
.vpm-theme-dark input[type="checkbox"],
.vpm-theme-dark input[type="radio"] { accent-color: var(--vpm-brand); }

/* v0.12.0 reminder delivery controls */
.vpm-task-form-footer-left{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
@media (max-width:680px){
  .vpm-task-form-footer-left{width:100%;display:grid;grid-template-columns:1fr;gap:8px}
  .vpm-task-form-footer-left .vpm-secondary,
  .vpm-task-form-footer-left .vpm-danger-link{width:100%;justify-content:center}
}


/* --------------------------------------------------------------------------
 * Sidebar branding and account actions (v0.12.2)
 * -------------------------------------------------------------------------- */
.vpm-sidebar__brand {
  min-height: max(68px, calc(var(--vpm-logo-size, 44px) + 20px));
  height: auto;
  flex: 0 0 auto;
}
.vpm-brand-mark {
  width: var(--vpm-logo-size, 44px);
  height: var(--vpm-logo-size, 44px);
  flex-basis: var(--vpm-logo-size, 44px);
}
.vpm-brand-mark.has-image {
  width: auto;
  min-width: var(--vpm-logo-size, 44px);
  max-width: var(--vpm-logo-max-width, 88px);
  height: var(--vpm-logo-size, 44px);
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}
.vpm-brand-mark.has-image img,
.vpm-workspace-smooth .vpm-brand-mark.has-image img {
  display: block;
  width: auto;
  max-width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
  border-radius: 0;
}
.vpm-workspace-smooth .vpm-sidebar__brand {
  min-height: max(64px, calc(var(--vpm-logo-size, 44px) + 16px));
  height: auto;
  flex-basis: auto;
  gap: 10px;
}
.vpm-workspace-smooth .vpm-brand-mark {
  width: var(--vpm-logo-size, 44px);
  height: var(--vpm-logo-size, 44px);
  flex-basis: var(--vpm-logo-size, 44px);
}
.vpm-workspace-smooth .vpm-brand-mark.has-image {
  width: auto;
  min-width: var(--vpm-logo-size, 44px);
  max-width: var(--vpm-logo-max-width, 88px);
  height: var(--vpm-logo-size, 44px);
  flex-basis: auto;
}

/* Keep every account action in the same footer row. Earlier four-column
 * definitions caused the fifth item (Sign out) to wrap below the profile. */
.vpm-sidebar__user {
  grid-template-columns: 38px minmax(0, 1fr) 32px 32px 32px !important;
}
.vpm-workspace-smooth .vpm-sidebar__user {
  grid-template-columns: 26px minmax(0, 1fr) 28px 28px 28px !important;
}
.vpm-logout {
  grid-column: auto;
  grid-row: auto;
}
.vpm-logout:hover {
  color: var(--vpm-danger, #dc3e45) !important;
  background: color-mix(in srgb, var(--vpm-danger, #dc3e45) 10%, transparent) !important;
}
@media (max-width: 700px) {
  .vpm-sidebar__user,
  .vpm-workspace-smooth .vpm-sidebar__user {
    grid-template-columns: 30px minmax(0, 1fr) 34px 34px 34px !important;
  }
}

/* 0.12.3 — visual description editor, compact task badges and richer profiles */
.vpm-rich-editor {
  overflow: hidden;
  border: 1px solid var(--vpm-border);
  border-radius: 12px;
  background: var(--vpm-panel);
}
.vpm-rich-editor__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  padding: 0 10px 0 13px;
  border-bottom: 1px solid var(--vpm-border);
  background: var(--vpm-panel-alt);
}
.vpm-rich-editor__header > span { color: var(--vpm-ink); font-size: 12px; font-weight: 600; }
.vpm-rich-editor__tabs { display: inline-flex; gap: 3px; padding: 3px; border: 1px solid var(--vpm-border); border-radius: 8px; background: var(--vpm-panel); }
.vpm-rich-editor__tabs button {
  min-height: 28px;
  padding: 4px 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--vpm-muted);
  font: inherit;
  font-size: 11px;
  cursor: pointer;
}
.vpm-rich-editor__tabs button.is-active { background: var(--vpm-brand); color: #fff; }
.vpm-rich-editor__toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 7px 9px;
  border-bottom: 1px solid var(--vpm-border);
  background: var(--vpm-panel);
}
.vpm-rich-editor__toolbar[hidden] { display: none !important; }
.vpm-rich-editor__visual[hidden],
.vpm-rich-editor textarea[hidden],
.vpm-rich-editor [data-rich-code][hidden] {
  display: none !important;
}
.vpm-rich-editor__toolbar button {
  display: grid;
  place-items: center;
  width: 31px;
  height: 29px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--vpm-ink);
  cursor: pointer;
}
.vpm-rich-editor__toolbar button:hover { border-color: var(--vpm-border); background: var(--vpm-panel-alt); }
.vpm-rich-editor__toolbar .dashicons { width: 16px; height: 16px; font-size: 16px; }
.vpm-rich-editor__visual,
.vpm-rich-editor__visual[contenteditable="true"],
.vpm-rich-editor textarea {
  width: 100%;
  min-height: 230px;
  padding: 16px;
  border: 0 !important;
  border-radius: 0 !important;
  outline: 0;
  background: var(--vpm-panel) !important;
  color: var(--vpm-ink) !important;
  font: inherit;
  font-size: 13px;
  line-height: 1.65;
  resize: vertical;
  box-shadow: none !important;
}
.vpm-rich-editor__visual:empty::before { content: attr(data-placeholder); color: var(--vpm-muted); pointer-events: none; }
.vpm-rich-editor__visual :is(p, ul, ol, blockquote) { margin: 0 0 .8em; }
.vpm-rich-editor__visual a { color: var(--vpm-brand); text-decoration: underline; }

/* Labels and priorities share one compact visual language. */
.vpm-priority,
.vpm-task-card__labels span {
  display: inline-flex;
  align-items: center;
  min-height: 19px;
  padding: 2px 7px !important;
  border-radius: 999px !important;
  font-size: 9px !important;
  font-weight: 500 !important;
  line-height: 1.15 !important;
  letter-spacing: 0 !important;
}
.vpm-task-card__labels { gap: 4px !important; }
.vpm-task-card__labels span { border: 1px solid color-mix(in srgb, var(--label) 24%, transparent); background: color-mix(in srgb, var(--label) 11%, var(--vpm-panel)); color: var(--label); }

/* Profile cover editor. */
.vpm-cover-editor {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--vpm-border);
  border-radius: 12px;
  background: var(--vpm-panel-alt);
}
.vpm-cover-editor__preview {
  grid-column: 1 / -1;
  position: relative;
  min-height: 150px;
  overflow: hidden;
  border: 1px solid var(--vpm-border);
  border-radius: 10px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--vpm-brand) 34%, var(--vpm-panel)), var(--vpm-panel-alt));
  background-position: center;
  background-size: cover;
}
.vpm-cover-editor__preview::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(0,0,0,.42)); }
.vpm-cover-editor__preview span { position: absolute; z-index: 1; left: 13px; bottom: 11px; color: #fff; font-size: 11px; font-weight: 600; text-shadow: 0 1px 3px rgba(0,0,0,.45); }
.vpm-cover-editor__controls { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.vpm-cover-editor__controls > div { flex: 1 1 190px; display: grid; gap: 3px; }
.vpm-cover-editor__controls strong { color: var(--vpm-ink); font-size: 12px; }
.vpm-cover-editor__controls small { color: var(--vpm-muted); font-size: 10px; }
.vpm-cover-drop {
  display: grid;
  place-items: center;
  min-height: 64px;
  padding: 9px;
  border: 1px dashed var(--vpm-border);
  border-radius: 9px;
  color: var(--vpm-muted);
  text-align: center;
  cursor: copy;
}
.vpm-cover-drop.is-over { border-color: var(--vpm-brand); background: color-mix(in srgb, var(--vpm-brand) 8%, var(--vpm-panel)); }
.vpm-cover-drop strong { font-size: 10px; }

/* My Home cover/profile presentation. */
.vpm-profile-hero--cover {
  display: block !important;
  position: relative;
  min-height: 250px;
  padding: 0 !important;
  overflow: hidden;
  isolation: isolate;
}
.vpm-profile-hero__cover {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: var(--vpm-profile-cover, linear-gradient(135deg, color-mix(in srgb, var(--vpm-brand) 35%, var(--vpm-panel)), var(--vpm-panel-alt)));
  background-position: center;
  background-size: cover;
}
.vpm-profile-hero--cover::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8,14,28,.05) 20%, rgba(8,14,28,.86) 100%); }
.vpm-profile-hero__identity {
  position: absolute;
  inset: auto 0 0;
  display: grid;
  grid-template-columns: 86px minmax(0,1fr) auto;
  align-items: end;
  gap: 16px;
  padding: 24px;
}
.vpm-profile-hero__identity > img { width: 86px !important; height: 86px !important; border: 4px solid rgba(255,255,255,.92); border-radius: 50%; object-fit: cover; box-shadow: 0 8px 26px rgba(0,0,0,.28); }
.vpm-profile-hero__identity h2,
.vpm-profile-hero__identity p,
.vpm-profile-hero__identity span { color: #fff !important; text-shadow: 0 1px 4px rgba(0,0,0,.45); }
.vpm-profile-hero__identity h2 { margin: 0 0 4px; font-size: 24px; }
.vpm-profile-hero__identity p { margin: 0 0 3px; }
.vpm-profile-hero__identity .vpm-secondary { border-color: rgba(255,255,255,.5); background: rgba(255,255,255,.92); color: #172033; }

.vpm-focused-profile-cover {
  position: relative;
  min-height: 250px;
  overflow: hidden;
  border: 1px solid var(--vpm-border);
  border-radius: var(--vpm-radius);
  background: var(--vpm-profile-cover, linear-gradient(135deg, color-mix(in srgb, var(--vpm-brand) 40%, #13203b), #101827));
  background-position: center;
  background-size: cover;
  box-shadow: var(--vpm-shadow-sm);
}
.vpm-focused-profile-cover__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7,12,24,.88), rgba(7,12,24,.34) 65%, rgba(7,12,24,.05)); }
.vpm-focused-profile-cover__identity { position: absolute; left: 28px; right: 160px; bottom: 24px; display: flex; align-items: center; gap: 16px; }
.vpm-focused-profile-cover__identity img { width: 82px; height: 82px; border: 4px solid rgba(255,255,255,.92); border-radius: 50%; object-fit: cover; box-shadow: 0 7px 24px rgba(0,0,0,.34); }
.vpm-focused-profile-cover__identity h1 { margin: 0; color: #fff !important; font-size: 25px; text-shadow: 0 1px 4px rgba(0,0,0,.5); }
.vpm-focused-profile-cover__identity p { margin: 4px 0; color: rgba(255,255,255,.88) !important; }
.vpm-focused-profile-cover__identity small { color: rgba(255,255,255,.7); }
.vpm-focused-profile-cover > .vpm-secondary { position: absolute; right: 22px; bottom: 24px; border-color: rgba(255,255,255,.45); background: rgba(255,255,255,.92); color: #172033; }

@media (max-width: 700px) {
  .vpm-cover-editor { grid-template-columns: 1fr; }
  .vpm-profile-hero--cover, .vpm-focused-profile-cover { min-height: 230px; }
  .vpm-profile-hero__identity { grid-template-columns: 64px minmax(0,1fr); gap: 11px; padding: 18px; }
  .vpm-profile-hero__identity > img { width: 64px !important; height: 64px !important; }
  .vpm-profile-hero__identity .vpm-secondary { grid-column: 1 / -1; width: 100%; }
  .vpm-focused-profile-cover__identity { left: 18px; right: 18px; bottom: 66px; }
  .vpm-focused-profile-cover__identity img { width: 62px; height: 62px; }
  .vpm-focused-profile-cover__identity h1 { font-size: 20px; }
  .vpm-focused-profile-cover > .vpm-secondary { left: 18px; right: 18px; bottom: 16px; width: auto; justify-content: center; }
  .vpm-rich-editor__visual, .vpm-rich-editor textarea { min-height: 190px; padding: 13px; }
}


/* 0.12.5: project information editor and consistent portal avatars. */
.vpm-information-form .vpm-information-rich-editor { width: 100%; min-width: 0; }
.vpm-information-form .vpm-information-rich-editor .vpm-rich-editor__visual,
.vpm-information-form .vpm-information-rich-editor textarea { min-height: 180px; }
.vpm-information-form .vpm-information-rich-editor + .vpm-information-rich-editor { margin-top: 2px; }
.vpm-card-avatars img,
.vpm-list-avatars img,
.vpm-member-list img,
.vpm-member-preview img,
.vpm-comment > img,
.vpm-assignee-checklist img,
.vpm-compact-picker__options img,
.vpm-sidebar__user img {
  aspect-ratio: 1 / 1;
  flex: 0 0 auto;
  border-radius: 999px !important;
  object-fit: cover;
}


/* 0.12.6: show task labels prominently beside priority and status in the task drawer. */
.vpm-task-detail-labels {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
}
.vpm-task-detail-label {
  max-width: 180px;
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  overflow: hidden;
  padding: 3px 8px;
  border: 1px solid color-mix(in srgb, var(--label, #64748b) 28%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--label, #64748b) 12%, var(--vpm-panel));
  color: color-mix(in srgb, var(--label, #64748b) 84%, var(--vpm-ink));
  font-size: 10px;
  font-weight: var(--vpm-font-weight-strong, 500);
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.vpm-theme-dark .vpm-task-detail-label {
  background: color-mix(in srgb, var(--label, #64748b) 18%, var(--vpm-panel));
  color: color-mix(in srgb, var(--label, #64748b) 50%, #fff);
}
@media (max-width: 820px) {
  .vpm-task-detail-labels {
    width: 100%;
  }
  .vpm-task-detail-label {
    max-width: min(190px, 100%);
  }
}
/* 0.12.7 — safer task deletion and collapsible task details. */
.vpm-task-detail__body:not(.is-details-open) {
  grid-template-columns: minmax(0, 1fr) !important;
}
.vpm-task-detail__main {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}
.vpm-task-detail__aside {
  display: none;
  background: var(--vpm-panel-alt, #fafbfc);
}
.vpm-task-detail__body.is-details-open {
  grid-template-columns: minmax(0, 1fr) minmax(220px, 260px) !important;
}
.vpm-task-detail__body.is-details-open .vpm-task-detail__aside {
  display: block;
}
.vpm-task-details-toggle[aria-expanded="true"] {
  border-color: color-mix(in srgb, var(--vpm-brand) 38%, var(--vpm-border));
  background: color-mix(in srgb, var(--vpm-brand) 8%, var(--vpm-panel));
  color: var(--vpm-brand);
}
.vpm-task-danger-spacer {
  margin-top: auto;
  padding-top: 34px;
}
.vpm-task-danger-zone {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 0;
  padding: 16px;
  border: 1px solid color-mix(in srgb, var(--vpm-danger, #dc2626) 26%, var(--vpm-border));
  border-radius: var(--vpm-radius, 12px);
  background: color-mix(in srgb, var(--vpm-danger, #dc2626) 4%, var(--vpm-panel));
}
.vpm-task-danger-zone > div { min-width: 0; display: grid; gap: 4px; }
.vpm-task-danger-zone strong { color: var(--vpm-ink); font-size: 12px; }
.vpm-task-danger-zone small { color: var(--vpm-muted); font-size: 10px; line-height: 1.45; }
.vpm-task-danger-zone .vpm-danger-button { flex: 0 0 auto; }
.vpm-theme-dark .vpm-task-detail__aside { background: var(--vpm-panel-alt); }
@media (max-width: 820px) {
  .vpm-task-detail__body,
  .vpm-task-detail__body.is-details-open { display: block; overflow-y: auto; }
  .vpm-task-detail__aside { display: none !important; border-top: 1px solid var(--vpm-border); border-left: 0; }
  .vpm-task-detail__body.is-details-open .vpm-task-detail__aside { display: block !important; }
  .vpm-task-danger-spacer { padding-top: 26px; }
  .vpm-task-danger-zone { align-items: stretch; flex-direction: column; }
  .vpm-task-danger-zone .vpm-danger-button { width: 100%; justify-content: center; }
}

/* 0.13.1 — searchable project picker in the My Work task form. */
.vpm-dialog--profile {
  width: min(860px, calc(100vw - 48px));
  max-height: min(92dvh, 920px);
  overflow: hidden;
}
.vpm-dialog--profile .vpm-profile-form {
  height: min(92dvh, 920px);
  max-height: min(92dvh, 920px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.vpm-dialog--profile .vpm-profile-form .vpm-panel-header,
.vpm-dialog--profile .vpm-profile-form .vpm-form-footer {
  position: static;
  flex: 0 0 auto;
}
.vpm-dialog--profile .vpm-profile-form .vpm-form-body {
  min-height: 0;
  max-height: none;
  flex: 1 1 auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  padding-bottom: 28px;
}
.vpm-dialog--profile .vpm-profile-form .vpm-form-footer {
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  background: var(--vpm-panel-alt);
}
.vpm-dialog--profile .vpm-profile-form .vpm-form-footer > span {
  min-width: 0;
  color: var(--vpm-muted);
  font-size: 11px;
}
.vpm-profile-form input[type="checkbox"] {
  position: relative;
  flex: 0 0 16px;
  width: 16px !important;
  min-width: 16px !important;
  max-width: 16px !important;
  height: 16px !important;
  min-height: 16px !important;
  max-height: 16px !important;
  margin: 0;
  padding: 0 !important;
  -webkit-appearance: none;
  appearance: none;
  border: 1px solid var(--vpm-border-strong, var(--vpm-border)) !important;
  border-radius: 4px !important;
  background: var(--vpm-panel) !important;
  box-shadow: none !important;
  cursor: pointer;
}
.vpm-profile-form input[type="checkbox"]::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 5px;
  width: 4px;
  height: 8px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  opacity: 0;
  transform: rotate(45deg);
}
.vpm-profile-form input[type="checkbox"]:checked {
  border-color: var(--vpm-brand) !important;
  background: var(--vpm-brand) !important;
}
.vpm-profile-form input[type="checkbox"]:checked::after { opacity: 1; }
.vpm-profile-form input[type="checkbox"]:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--vpm-brand) 42%, transparent);
  outline-offset: 2px;
}
.vpm-profile-form .vpm-toggle-field > label,
.vpm-profile-form .vpm-color-control > label {
  min-width: 0;
  display: flex;
  grid-template-columns: none;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.vpm-task-project-field {
  display: grid;
  gap: 6px;
}
.vpm-task-project-field > span,
.vpm-task-project-field > small {
  color: var(--vpm-muted);
  font-size: 10px;
}
.vpm-task-project-field > span {
  font-weight: var(--vpm-font-weight-strong, 500);
}
.vpm-task-project-picker {
  width: 100%;
  min-width: 0;
}
.vpm-task-project-picker > summary {
  min-height: 42px;
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 10px;
  padding: 6px 11px;
  border: 1px solid var(--vpm-border-strong, var(--vpm-border));
  border-radius: 9px;
  background: var(--vpm-panel);
  color: var(--vpm-ink);
  cursor: pointer;
  list-style: none;
}
.vpm-task-project-picker > summary::-webkit-details-marker { display: none; }
.vpm-task-project-picker > summary > i,
.vpm-task-project-picker__option > i {
  width: 9px;
  height: 9px;
  border-radius: 3px;
  background: var(--vpm-project-color, var(--vpm-brand));
}
.vpm-task-project-picker > summary > span:nth-child(2),
.vpm-task-project-picker__option > span:nth-child(2) {
  min-width: 0;
  display: grid;
  gap: 1px;
  text-align: left;
}
.vpm-task-project-picker > summary strong,
.vpm-task-project-picker__option strong {
  overflow: hidden;
  color: var(--vpm-ink);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.vpm-task-project-picker > summary small,
.vpm-task-project-picker__option small {
  color: var(--vpm-muted);
  font-size: 9px;
  line-height: 1.2;
}
.vpm-task-project-picker > summary > .dashicons {
  width: 16px;
  height: 16px;
  color: var(--vpm-muted);
  font-size: 16px;
  transition: transform .16s ease;
}
.vpm-task-project-picker[open] > summary {
  border-color: color-mix(in srgb, var(--vpm-brand) 55%, var(--vpm-border));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--vpm-brand) 9%, transparent);
}
.vpm-task-project-picker[open] > summary > .dashicons { transform: rotate(180deg); }
.vpm-task-project-picker__panel {
  display: grid;
  gap: 7px;
  margin-top: 6px;
  padding: 8px;
  border: 1px solid var(--vpm-border);
  border-radius: 10px;
  background: var(--vpm-panel-alt);
  box-shadow: var(--vpm-shadow-sm);
}
.vpm-task-project-picker__search {
  position: relative;
  display: block;
}
.vpm-task-project-picker__search > .dashicons {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 11px;
  width: 16px;
  height: 16px;
  color: var(--vpm-muted);
  font-size: 16px;
  pointer-events: none;
  transform: translateY(-50%);
}
.vpm-form-grid .vpm-task-project-picker__search > input {
  height: 38px;
  padding-left: 34px;
  background: var(--vpm-panel);
}
.vpm-task-project-picker__options {
  max-height: 230px;
  display: grid;
  gap: 3px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}
.vpm-task-project-picker__option {
  width: 100%;
  min-height: 42px;
  display: grid;
  grid-template-columns: 9px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 10px;
  padding: 6px 9px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--vpm-ink);
  font: inherit;
  cursor: pointer;
}
.vpm-task-project-picker__option:hover {
  border-color: var(--vpm-border);
  background: var(--vpm-panel);
}
.vpm-task-project-picker__option.is-selected {
  border-color: color-mix(in srgb, var(--vpm-brand) 28%, var(--vpm-border));
  background: color-mix(in srgb, var(--vpm-brand) 8%, var(--vpm-panel));
}
.vpm-task-project-picker__option > .dashicons {
  width: 16px;
  height: 16px;
  color: var(--vpm-brand);
  font-size: 16px;
}
.vpm-task-project-picker__option[hidden] { display: none; }
.vpm-task-project-picker__empty {
  margin: 0;
  padding: 18px 10px;
  color: var(--vpm-muted);
  font-size: 11px;
  text-align: center;
}
.vpm-task-project-picker__empty[hidden] { display: none; }
.vpm-task-project-picker.is-loading { opacity: .65; pointer-events: none; }
@media (max-width: 700px) {
  .vpm-dialog--profile {
    width: 100%;
    max-height: 94dvh;
    border-radius: 16px 16px 0 0;
  }
  .vpm-dialog--profile .vpm-profile-form {
    height: 94dvh;
    max-height: 94dvh;
  }
  .vpm-dialog--profile .vpm-profile-form .vpm-form-footer {
    align-items: stretch;
    flex-direction: column;
  }
  .vpm-dialog--profile .vpm-profile-form .vpm-form-footer .vpm-primary { width: 100%; }
  .vpm-task-project-picker__options { max-height: 190px; }
}

/* 0.13.2 — reserve reliable space for search icons at every text scale. */
.vpm-portal-app :is(
  .vpm-task-search,
  .vpm-project-search,
  .vpm-projects-overview__search,
  .vpm-picker-search,
  .vpm-task-project-picker__search
) {
  position: relative;
}
.vpm-portal-app :is(
  .vpm-task-search,
  .vpm-project-search,
  .vpm-projects-overview__search,
  .vpm-picker-search,
  .vpm-task-project-picker__search
) > .dashicons-search {
  position: absolute !important;
  z-index: 2;
  top: 50% !important;
  left: 12px !important;
  width: 16px !important;
  height: 16px !important;
  margin: 0 !important;
  color: var(--vpm-muted, #778299);
  font-size: 16px !important;
  line-height: 16px !important;
  pointer-events: none;
  transform: translateY(-50%);
}
.vpm-portal-app :is(
  .vpm-task-search,
  .vpm-project-search,
  .vpm-projects-overview__search,
  .vpm-picker-search,
  .vpm-task-project-picker__search
) > input[type="search"] {
  box-sizing: border-box;
  padding-left: 40px !important;
  text-indent: 0 !important;
}

/* 0.13.5 — professional and internal profile identities. */
.vpm-profile-identities { display: grid; gap: 14px; }
.vpm-profile-identity-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--vpm-border);
  border-radius: var(--vpm-radius);
  background: var(--vpm-panel);
}
.vpm-profile-identity-card > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}
.vpm-profile-identity-card > header > div { min-width: 0; }
.vpm-profile-identity-card > header strong,
.vpm-profile-identity-card > header small { display: block; }
.vpm-profile-identity-card > header strong { color: var(--vpm-ink); font-size: 13px; }
.vpm-profile-identity-card > header small { max-width: 590px; margin-top: 3px; color: var(--vpm-muted); font-size: 10px; line-height: 1.45; }
.vpm-profile-identity-card > header > span {
  flex: 0 0 auto;
  padding: 4px 8px;
  border: 1px solid color-mix(in srgb, var(--vpm-brand) 24%, var(--vpm-border));
  border-radius: 999px;
  background: color-mix(in srgb, var(--vpm-brand) 8%, var(--vpm-panel));
  color: var(--vpm-brand);
  font-size: 9px;
  font-weight: 700;
}
.vpm-profile-identity-card .vpm-avatar-editor,
.vpm-profile-identity-card .vpm-cover-editor { padding: 12px; background: var(--vpm-panel-alt); }
.vpm-avatar-editor__preview-wrap {
  position: relative;
  width: 84px;
  height: 84px;
}
.vpm-avatar-editor__preview-wrap > img {
  display: block;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--vpm-panel-alt);
  box-shadow: inset 0 0 0 1px var(--vpm-border);
}
.vpm-avatar-remove {
  position: absolute;
  top: -5px;
  right: -5px;
  z-index: 2;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 2px solid var(--vpm-panel);
  border-radius: 50%;
  background: var(--vpm-danger, #dc2626);
  color: #fff;
  font-size: 17px;
  line-height: 1;
  box-shadow: 0 3px 10px rgba(0,0,0,.2);
  cursor: pointer;
}
.vpm-avatar-remove:hover { filter: brightness(.92); transform: scale(1.04); }
.vpm-avatar-remove.is-hidden,
.vpm-profile-identity-card .vpm-cover-editor__controls > .is-hidden { display: none !important; }
.vpm-theme-dark .vpm-profile-identity-card { background: var(--vpm-panel) !important; border-color: var(--vpm-border) !important; }

@media (max-width: 760px) {
  .vpm-profile-identity-card { padding: 11px; }
  .vpm-profile-identity-card > header { flex-direction: column; }
  .vpm-avatar-editor__preview-wrap,
  .vpm-avatar-editor__preview-wrap > img { width: 66px; height: 66px; }
}

/* 0.13.7 — focused projects, complete list metadata and horizontal tables. */
.vpm-project-focus-toggle {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 10px;
  border: 1px solid var(--vpm-border);
  border-radius: 8px;
  background: var(--vpm-panel-alt);
  color: var(--vpm-muted);
  font: inherit;
  font-size: 10px;
  cursor: pointer;
  white-space: nowrap;
}
.vpm-project-focus-toggle:hover { color: var(--vpm-ink); }
.vpm-project-focus-toggle.is-active {
  border-color: color-mix(in srgb, var(--vpm-brand) 38%, var(--vpm-border));
  background: color-mix(in srgb, var(--vpm-brand) 10%, var(--vpm-panel));
  color: var(--vpm-brand);
}
.vpm-project-focus-toggle .dashicons { width: 15px; height: 15px; font-size: 15px; }
.vpm-project-focus-toggle > b {
  min-width: 20px;
  padding: 2px 6px;
  border-radius: 999px;
  background: var(--vpm-panel);
  color: inherit;
  font-size: 9px;
}
.vpm-project-focus-toggle.is-compact {
  position: relative;
  width: 26px;
  min-height: 26px;
  padding: 0;
  border-color: transparent;
  background: transparent;
}
.vpm-workspace-smooth .vpm-project-focus-toggle.is-compact { width: 23px; min-height: 23px; border-radius: 6px; }
.vpm-project-focus-toggle.is-compact > i {
  position: absolute;
  right: -3px;
  bottom: -3px;
  min-width: 17px;
  padding: 1px 3px;
  border: 1px solid var(--vpm-panel);
  border-radius: 999px;
  background: var(--vpm-brand);
  color: #fff;
  font-size: 7px;
  font-style: normal;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: .04em;
}

.vpm-resizable-table td { min-width: 0; overflow: hidden; }
.vpm-list-description,
.vpm-list-date-time {
  display: block;
  overflow: hidden;
  color: var(--vpm-muted);
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.vpm-list-empty-value { color: var(--vpm-subtle); }
.vpm-list-count {
  min-width: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 7px;
  border-radius: 999px;
  background: var(--vpm-panel-alt);
  color: var(--vpm-muted);
  font-size: 10px;
}
.vpm-list-labels {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  overflow: hidden;
}
.vpm-list-labels > span {
  min-width: 0;
  max-width: 110px;
  overflow: hidden;
  padding: 3px 7px;
  border: 1px solid color-mix(in srgb, var(--vpm-label-color) 30%, var(--vpm-border));
  border-radius: 999px;
  background: color-mix(in srgb, var(--vpm-label-color) 10%, var(--vpm-panel));
  color: var(--vpm-ink);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vpm-column-picker__menu > footer {
  display: grid;
  gap: 8px;
}
.vpm-column-picker__menu > footer .vpm-horizontal-scroll-option {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  align-items: center;
  gap: 2px 8px;
  color: var(--vpm-ink);
  cursor: pointer;
}
.vpm-column-picker__menu > footer .vpm-horizontal-scroll-option input {
  grid-row: 1 / span 2;
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: var(--vpm-brand);
}
.vpm-column-picker__menu > footer .vpm-horizontal-scroll-option span { font-size: 10px; }
.vpm-column-picker__menu > footer .vpm-horizontal-scroll-option small { color: var(--vpm-muted); font-size: 8px; line-height: 1.35; }
.vpm-column-picker__menu > footer > button { justify-self: start; }

@media (min-width: 701px) {
  .vpm-list-panel.is-horizontal-scroll-enabled {
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-gutter: stable;
    scrollbar-color: color-mix(in srgb, var(--vpm-brand) 42%, var(--vpm-border)) var(--vpm-panel-alt);
  }
  .vpm-list-panel.is-horizontal-scroll-enabled > table.vpm-resizable-table { min-width: var(--vpm-table-min, 1040px) !important; }
  .vpm-list-panel.is-fit-columns > table.vpm-resizable-table { min-width: 100% !important; }
  .vpm-list-panel.is-horizontal-scroll-enabled:focus-visible {
    outline: 2px solid color-mix(in srgb, var(--vpm-brand) 40%, transparent);
    outline-offset: 2px;
  }
}

@media (max-width: 720px) {
  .vpm-projects-overview__tools { flex-wrap: wrap; }
  .vpm-project-focus-toggle:not(.is-compact) { flex: 1 1 120px; }
}

/* 0.13.9 — guaranteed European 24-hour date/time entry. */
.vpm-portal-app .vpm-datetime-24-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(86px, 108px);
  gap: 8px;
  width: 100%;
}
.vpm-portal-app .vpm-datetime-24-control > input { min-width: 0; width: 100%; }
.vpm-portal-app .vpm-time-24-input { font-variant-numeric: tabular-nums; letter-spacing: .03em; }

/* 0.13.10 — compact assignee dialog and small-screen fit hardening. */
.vpm-dialog--assignees {
  width: min(520px, calc(100vw - 48px));
  overflow: hidden;
}
.vpm-dialog--assignees .vpm-quick-assignees-form {
  width: 100%;
  max-width: 100%;
}
.vpm-dialog--assignees .vpm-form-body,
.vpm-settings-layout > *,
.vpm-settings-fields > *,
.vpm-view-checkboxes > *,
.vpm-section-title > :first-child {
  min-width: 0;
  max-width: 100%;
}
.vpm-settings-layout :is(input, select, textarea, button),
.vpm-dialog :is(input, select, textarea, button) {
  box-sizing: border-box;
  max-width: 100%;
}
.vpm-settings-layout .vpm-section-title :is(h2, p),
.vpm-view-checkboxes label {
  overflow-wrap: anywhere;
}

@media (max-width: 700px) {
  .vpm-dialog--assignees {
    width: 100%;
    max-height: 94dvh;
  }
  .vpm-dialog--assignees .vpm-assignee-checklist {
    max-height: min(52dvh, 430px);
  }
  .vpm-view-root .vpm-panel > .vpm-section-title {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }
  .vpm-view-root .vpm-panel > .vpm-section-title > button,
  .vpm-settings-layout .vpm-settings-save {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 40px !important;
    height: auto !important;
    padding: 9px 14px !important;
    justify-content: center;
    white-space: normal;
  }
  .vpm-settings-layout .vpm-settings-fields fieldset {
    width: 100%;
    padding: 10px;
  }
  .vpm-settings-layout .vpm-check-row {
    width: 100%;
    margin-right: 0;
  }
  .vpm-dialog:not(.vpm-dialog--task) .vpm-form-footer {
    flex-wrap: wrap;
  }
  .vpm-dialog:not(.vpm-dialog--task) .vpm-form-footer > :is(button, .vpm-form-footer__actions) {
    min-width: 0;
  }
}

@media (max-width: 420px) {
  .vpm-settings-layout .vpm-panel { padding: 14px; }
  .vpm-dialog--assignees .vpm-form-footer > button {
    flex: 1 1 calc(50% - 4px);
  }
}

/* 0.13.12 — personal surface colors and client/project board identity. */
.vpm-custom-workspace.vpm-portal-app,
.vpm-custom-workspace .vpm-shell,
.vpm-custom-workspace .vpm-workspace,
.vpm-custom-workspace .vpm-content,
.vpm-custom-workspace .vpm-view-root {
  background-color: var(--vpm-user-workspace) !important;
}

.vpm-custom-board-columns .vpm-board-column,
.vpm-custom-board-columns.vpm-workspace-smooth .vpm-board-column,
.vpm-theme-dark.vpm-custom-board-columns .vpm-board-column {
  background: var(--vpm-user-board-column) !important;
  border-color: color-mix(in srgb, var(--vpm-user-board-column-ink) 22%, var(--vpm-user-board-column)) !important;
  color: var(--vpm-user-board-column-ink) !important;
}
.vpm-custom-board-columns .vpm-board-column__header,
.vpm-theme-dark.vpm-custom-board-columns .vpm-board-column__header {
  background: color-mix(in srgb, var(--vpm-user-board-column-ink) 7%, var(--vpm-user-board-column)) !important;
  border-color: color-mix(in srgb, var(--vpm-user-board-column-ink) 18%, var(--vpm-user-board-column)) !important;
}
.vpm-custom-board-columns .vpm-board-column__body { background: var(--vpm-user-board-column) !important; }
.vpm-custom-board-columns .vpm-board-column__header strong { color: var(--vpm-user-board-column-ink) !important; }
.vpm-custom-board-columns .vpm-board-column__header span {
  background: color-mix(in srgb, var(--vpm-user-board-column-ink) 12%, var(--vpm-user-board-column)) !important;
  color: var(--vpm-user-board-column-ink) !important;
}
.vpm-custom-board-columns .vpm-board-empty {
  border-color: color-mix(in srgb, var(--vpm-user-board-column-ink) 28%, var(--vpm-user-board-column));
  color: var(--vpm-user-board-column-muted);
}

.vpm-custom-task-cards .vpm-task-card,
.vpm-theme-dark.vpm-custom-task-cards .vpm-task-card,
.vpm-theme-dark.vpm-workspace-smooth.vpm-custom-task-cards .vpm-task-card {
  background: var(--vpm-user-task-card) !important;
  border-color: color-mix(in srgb, var(--vpm-user-task-card-ink) 20%, var(--vpm-user-task-card)) !important;
  color: var(--vpm-user-task-card-ink) !important;
}
.vpm-custom-task-cards .vpm-task-card h3 { color: var(--vpm-user-task-card-ink) !important; }
.vpm-custom-task-cards .vpm-task-card__key,
.vpm-custom-task-cards .vpm-task-card__footer,
.vpm-custom-task-cards .vpm-mywork-card__project { color: var(--vpm-user-task-card-muted) !important; }
.vpm-custom-task-cards .vpm-task-card__labels span {
  background: color-mix(in srgb, var(--label, #64748b) 18%, var(--vpm-user-task-card)) !important;
}
.vpm-custom-task-cards .vpm-card-avatars img {
  border-color: var(--vpm-user-task-card);
  background: var(--vpm-user-task-card);
}

.vpm-project-tint .vpm-board-column {
  box-shadow: inset 0 3px 0 color-mix(in srgb, var(--vpm-active-project-color) 82%, transparent);
}
.vpm-project-tint .vpm-task-card {
  box-shadow: inset 3px 0 0 color-mix(in srgb, var(--vpm-project-color, var(--vpm-active-project-color)) 72%, transparent), var(--vpm-shadow-sm);
}
.vpm-project-tint .vpm-task-card:hover {
  box-shadow: inset 3px 0 0 var(--vpm-project-color, var(--vpm-active-project-color)), 0 8px 18px rgba(16,24,40,.08);
}

.vpm-personal-surface-colors {
  min-width: 0;
  grid-column: 1 / -1;
  margin: 4px 0 0;
  padding: 13px;
  border: 1px solid var(--vpm-border);
  border-radius: 11px;
}
.vpm-personal-surface-colors legend,
.vpm-project-color-setting legend {
  padding: 0 6px;
  color: var(--vpm-muted);
  font-size: 10px;
  font-weight: var(--vpm-font-weight-strong, 500);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.vpm-personal-surface-colors__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.vpm-personal-surface-colors > .vpm-check-row { margin: 13px 0 0; }
.vpm-personal-surface-colors > small {
  display: block;
  margin-top: 7px;
  color: var(--vpm-muted);
  font-size: 10px;
  line-height: 1.45;
}
.vpm-surface-color-control { align-items: center; }
.vpm-surface-color-control > input[type="color"] { width: 58px; min-width: 58px; height: 38px; }

.vpm-dark-colour-editor {
  min-width: 0;
  grid-column: 1 / -1;
  margin: 4px 0 0;
  padding: 14px;
  border: 1px solid var(--vpm-border);
  border-radius: 11px;
  background: color-mix(in srgb, var(--vpm-panel-alt) 62%, transparent);
}
.vpm-dark-colour-editor legend {
  padding: 0 6px;
  color: var(--vpm-muted);
  font-size: 10px;
  font-weight: var(--vpm-font-weight-strong, 500);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.vpm-dark-colour-editor__head { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:12px; }
.vpm-dark-colour-editor__head .vpm-check-row { margin:0; }
.vpm-dark-colour-grid { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:10px; }
.vpm-dark-colour-grid > label { min-width:0; }
.vpm-dark-colour-grid > label > span { display:block; margin-bottom:5px; color:var(--vpm-muted); font-size:10px; }
.vpm-dark-colour-grid input[type="color"] { width:100%; min-width:0; height:40px; padding:3px; cursor:pointer; }
.vpm-dark-colour-editor > small { display:block; margin-top:9px; color:var(--vpm-muted); font-size:10px; line-height:1.45; }
.vpm-theme-dark .vpm-dark-colour-editor { background:var(--vpm-panel-alt) !important; border-color:var(--vpm-border) !important; }

.vpm-project-color-setting { grid-column: 1 / -1; }
.vpm-project-color-setting > div {
  display: flex;
  align-items: end;
  gap: 18px;
}
.vpm-project-color-setting label { flex: 0 0 210px; }
.vpm-project-color-setting input[type="color"] { width: 100%; height: 42px; }
.vpm-project-color-setting p {
  max-width: 560px;
  margin: 0 0 4px;
  color: var(--vpm-muted);
  font-size: 10px;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .vpm-dark-colour-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 700px) {
  .vpm-personal-surface-colors__grid, .vpm-dark-colour-grid { grid-template-columns: 1fr; }
  .vpm-dark-colour-editor__head { align-items:stretch; flex-direction:column; }
  .vpm-dark-colour-editor__head .vpm-secondary { width:100%; justify-content:center; }
  .vpm-project-color-setting > div { align-items: stretch; flex-direction: column; gap: 8px; }
  .vpm-project-color-setting label { flex-basis: auto; }
}

/* 0.13.13 — shared client and workflow colors in My Work. */
.vpm-filter-chips .vpm-filter-chip--state {
  border-color: color-mix(in srgb, var(--vpm-state-color) 42%, var(--vpm-border));
  background: color-mix(in srgb, var(--vpm-state-color) 12%, var(--vpm-panel));
  color: color-mix(in srgb, var(--vpm-state-color) 58%, var(--vpm-ink));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--vpm-state-color) 5%, transparent);
}
.vpm-filter-chips .vpm-filter-chip--state:hover {
  border-color: color-mix(in srgb, var(--vpm-state-color) 68%, var(--vpm-border));
  background: color-mix(in srgb, var(--vpm-state-color) 19%, var(--vpm-panel));
  color: var(--vpm-ink);
}
.vpm-filter-chips .vpm-filter-chip--state i,
.vpm-state-filter__option i {
  background: var(--vpm-state-color);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--vpm-state-color) 16%, transparent);
}
.vpm-state-filter__option:has(input:checked) {
  background: color-mix(in srgb, var(--vpm-state-color) 12%, var(--vpm-panel-alt));
  box-shadow: inset 3px 0 0 var(--vpm-state-color);
}

.vpm-list-group--colored {
  --vpm-group-color: var(--vpm-brand);
  border-radius: var(--vpm-radius);
}
.vpm-list-group--colored > header {
  min-height: 36px;
  margin-bottom: 0;
  padding: 7px 10px;
  border: 1px solid color-mix(in srgb, var(--vpm-group-color) 34%, var(--vpm-border));
  border-bottom: 0;
  border-radius: var(--vpm-radius) var(--vpm-radius) 0 0;
  background: color-mix(in srgb, var(--vpm-group-color) 11%, var(--vpm-panel));
  box-shadow: inset 4px 0 0 var(--vpm-group-color);
}
.vpm-list-group--colored > header i {
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  border-radius: 999px;
  background: var(--vpm-group-color);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--vpm-group-color) 17%, transparent);
}
.vpm-list-group--colored > header h2 { color: var(--vpm-ink); }
.vpm-list-group--colored > header span {
  background: color-mix(in srgb, var(--vpm-group-color) 14%, var(--vpm-panel-alt));
  color: color-mix(in srgb, var(--vpm-group-color) 64%, var(--vpm-ink));
}
.vpm-list-group--colored .vpm-list-panel {
  border-color: color-mix(in srgb, var(--vpm-group-color) 34%, var(--vpm-border));
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}
.vpm-list-group--colored .vpm-list-panel thead th {
  background: color-mix(in srgb, var(--vpm-group-color) 8%, var(--vpm-panel-alt));
}
.vpm-list-group--colored .vpm-list-panel tbody tr {
  background: color-mix(in srgb, var(--vpm-group-color) 3.5%, var(--vpm-panel));
}
.vpm-list-group--colored .vpm-list-panel tbody tr:hover {
  background: color-mix(in srgb, var(--vpm-group-color) 9%, var(--vpm-panel-alt));
}

.vpm-shared-state-color {
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--vpm-border);
  border-radius: 10px;
  background: var(--vpm-panel-alt);
}
.vpm-shared-state-color > span { display: grid; gap: 3px; }
.vpm-shared-state-color strong { color: var(--vpm-ink); font-size: 12px; }
.vpm-shared-state-color small { color: var(--vpm-muted); font-size: 10px; line-height: 1.45; }

.vpm-theme-dark .vpm-filter-chips .vpm-filter-chip--state {
  border-color: color-mix(in srgb, var(--vpm-state-color) 48%, var(--vpm-border)) !important;
  background: color-mix(in srgb, var(--vpm-state-color) 18%, var(--vpm-panel-alt)) !important;
  color: color-mix(in srgb, var(--vpm-state-color) 34%, var(--vpm-ink)) !important;
}
.vpm-theme-dark .vpm-filter-chips .vpm-filter-chip--state:hover {
  background: color-mix(in srgb, var(--vpm-state-color) 27%, var(--vpm-panel-alt)) !important;
}
.vpm-theme-dark .vpm-list-group--colored > header {
  border-color: color-mix(in srgb, var(--vpm-group-color) 45%, var(--vpm-border));
  background: color-mix(in srgb, var(--vpm-group-color) 18%, var(--vpm-bg)) !important;
}
.vpm-theme-dark .vpm-list-group--colored .vpm-list-panel {
  border-color: color-mix(in srgb, var(--vpm-group-color) 45%, var(--vpm-border));
}
.vpm-theme-dark .vpm-list-group--colored .vpm-list-panel thead th {
  background: color-mix(in srgb, var(--vpm-group-color) 15%, var(--vpm-panel-alt)) !important;
}
.vpm-theme-dark .vpm-list-group--colored .vpm-list-panel tbody tr {
  background: color-mix(in srgb, var(--vpm-group-color) 6%, var(--vpm-panel)) !important;
}
.vpm-theme-dark .vpm-list-group--colored .vpm-list-panel tbody tr:hover {
  background: color-mix(in srgb, var(--vpm-group-color) 14%, var(--vpm-panel-alt)) !important;
}

@media (max-width: 700px) {
  .vpm-list-group--colored > header {
    padding: 7px 9px !important;
    border-bottom: 1px solid color-mix(in srgb, var(--vpm-group-color) 34%, var(--vpm-border));
    border-radius: var(--vpm-radius) !important;
    background: color-mix(in srgb, var(--vpm-group-color) 11%, var(--vpm-panel)) !important;
  }
  .vpm-list-group--colored .vpm-list-panel tr {
    border-color: color-mix(in srgb, var(--vpm-group-color) 28%, var(--vpm-border)) !important;
    background: color-mix(in srgb, var(--vpm-group-color) 4%, var(--vpm-panel)) !important;
  }
  .vpm-theme-dark .vpm-list-group--colored > header {
    background: color-mix(in srgb, var(--vpm-group-color) 18%, var(--vpm-bg)) !important;
  }
  .vpm-theme-dark .vpm-list-group--colored .vpm-list-panel tr {
    background: color-mix(in srgb, var(--vpm-group-color) 8%, var(--vpm-panel)) !important;
  }
}

/* 0.13.17 — simplified task creation and colour-aware task controls. */
.vpm-task-form-layout-setting { align-content: start; }
.vpm-task-form-layout-setting > small { color: var(--vpm-muted); line-height: 1.45; }
.vpm-task-form--simplified .vpm-form-body { display: grid; gap: 16px; }
.vpm-task-form--simplified .vpm-task-form-primary,
.vpm-task-form--simplified .vpm-task-quick-fields { padding: 0; }
.vpm-task-form--simplified .vpm-task-quick-fields { padding-top: 16px; border-top: 1px solid var(--vpm-border); }
.vpm-task-form--simplified .vpm-task-description-editor .vpm-rich-editor__visual,
.vpm-task-form--simplified .vpm-task-description-editor textarea { min-height: 170px; }
.vpm-task-more-options {
  overflow: hidden;
  border: 1px solid var(--vpm-border);
  border-radius: 12px;
  background: var(--vpm-panel-alt);
}
.vpm-task-more-options > summary {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 22px;
  align-items: center;
  gap: 9px;
  min-height: 58px;
  padding: 8px 13px;
  color: var(--vpm-ink);
  cursor: pointer;
  list-style: none;
}
.vpm-task-more-options > summary::-webkit-details-marker { display: none; }
.vpm-task-more-options > summary > .dashicons:first-child {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 8px;
  background: color-mix(in srgb, var(--vpm-brand) 12%, var(--vpm-panel));
  color: var(--vpm-brand);
}
.vpm-task-more-options > summary span:nth-child(2) { display: grid; gap: 2px; }
.vpm-task-more-options > summary strong { font-size: 12px; }
.vpm-task-more-options > summary small { color: var(--vpm-muted); font-size: 10px; }
.vpm-task-more-options > summary > .dashicons:last-child { color: var(--vpm-muted); transition: transform .18s ease; }
.vpm-task-more-options[open] > summary > .dashicons:last-child { transform: rotate(180deg); }
.vpm-task-more-options > .vpm-form-grid {
  padding: 15px;
  border-top: 1px solid var(--vpm-border);
  background: var(--vpm-panel);
}
.vpm-task-colored-field select {
  border-color: color-mix(in srgb, var(--vpm-task-field-color) 58%, var(--vpm-border));
  background: color-mix(in srgb, var(--vpm-task-field-color) 8%, var(--vpm-panel));
  box-shadow: inset 4px 0 0 var(--vpm-task-field-color);
}
.vpm-task-colored-field select:focus {
  border-color: var(--vpm-task-field-color);
  box-shadow: inset 4px 0 0 var(--vpm-task-field-color), 0 0 0 3px color-mix(in srgb, var(--vpm-task-field-color) 18%, transparent);
}

/* Task dialogs and rich descriptions must stay readable in every dark palette. */
.vpm-theme-dark .vpm-dialog--task,
.vpm-theme-dark .vpm-dialog--task .vpm-task-form,
.vpm-theme-dark .vpm-dialog--task .vpm-form-body {
  background: var(--vpm-bg) !important;
  color: var(--vpm-ink) !important;
}
.vpm-theme-dark .vpm-dialog--task :is(.vpm-panel-header, .vpm-form-footer) {
  border-color: var(--vpm-border) !important;
  background: var(--vpm-panel) !important;
  color: var(--vpm-ink) !important;
}
.vpm-theme-dark .vpm-dialog--task :is(.vpm-rich-editor, .vpm-rich-editor__header, .vpm-rich-editor__toolbar, .vpm-rich-editor__visual, .vpm-rich-editor textarea) {
  border-color: var(--vpm-border) !important;
  background: var(--vpm-panel) !important;
  color: var(--vpm-ink) !important;
}
.vpm-theme-dark .vpm-dialog--task .vpm-rich-editor__header,
.vpm-theme-dark .vpm-dialog--task .vpm-rich-editor__tabs,
.vpm-theme-dark .vpm-dialog--task .vpm-task-more-options { background: var(--vpm-panel-alt) !important; }
.vpm-theme-dark .vpm-dialog--task .vpm-rich-editor__visual :is(p, div, span, li, strong, em, b, i, blockquote) { color: var(--vpm-ink) !important; }
.vpm-theme-dark .vpm-dialog--task .vpm-rich-editor__visual a { color: color-mix(in srgb, var(--vpm-brand) 58%, #ffffff) !important; }
.vpm-theme-dark .vpm-dialog--task .vpm-rich-editor__toolbar button { color: var(--vpm-ink) !important; }
.vpm-theme-dark .vpm-dialog--task .vpm-rich-editor__toolbar button:hover { background: var(--vpm-dark-hover, var(--vpm-panel-alt)) !important; }
.vpm-theme-dark .vpm-task-colored-field select {
  border-color: color-mix(in srgb, var(--vpm-task-field-color) 70%, var(--vpm-border)) !important;
  background: color-mix(in srgb, var(--vpm-task-field-color) 18%, var(--vpm-dark-input, var(--vpm-panel-alt))) !important;
  color: var(--vpm-ink) !important;
  box-shadow: inset 4px 0 0 var(--vpm-task-field-color) !important;
}
.vpm-theme-dark .vpm-task-colored-field select:focus {
  border-color: var(--vpm-task-field-color) !important;
  box-shadow: inset 4px 0 0 var(--vpm-task-field-color), 0 0 0 3px color-mix(in srgb, var(--vpm-task-field-color) 24%, transparent) !important;
}
.vpm-theme-dark .vpm-task-more-options > .vpm-form-grid {
  background: var(--vpm-panel) !important;
  border-color: var(--vpm-border) !important;
}

@media (max-width: 700px) {
  .vpm-task-form--simplified .vpm-form-body { gap: 12px; }
  .vpm-task-form--simplified .vpm-task-quick-fields { padding-top: 12px; }
  .vpm-task-more-options > summary { min-height: 54px; }
}

/* 0.13.18 — visual Status and Priority pickers. */
.vpm-task-choice-field { position: relative; }
.vpm-task-choice-picker { position: relative; min-width: 0; }
.vpm-task-choice-picker[open] { z-index: 80; }
.vpm-task-choice-picker > summary {
  display: grid;
  grid-template-columns: 25px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 8px;
  height: 39px;
  box-sizing: border-box;
  padding: 0 9px 0 7px;
  border: 1px solid color-mix(in srgb, var(--vpm-task-field-color) 55%, var(--vpm-border));
  border-radius: 8px;
  background: color-mix(in srgb, var(--vpm-task-field-color) 7%, var(--vpm-panel));
  color: var(--vpm-ink);
  box-shadow: inset 3px 0 0 var(--vpm-task-field-color);
  cursor: pointer;
  list-style: none;
}
.vpm-task-choice-picker > summary::-webkit-details-marker { display: none; }
.vpm-task-choice-picker > summary:focus {
  outline: 0;
  border-color: var(--vpm-task-field-color);
  box-shadow: inset 3px 0 0 var(--vpm-task-field-color), 0 0 0 3px color-mix(in srgb, var(--vpm-task-field-color) 18%, transparent);
}
.vpm-task-choice-picker > summary > strong {
  overflow: hidden;
  font-size: 12px;
  font-weight: 550;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.vpm-task-choice-picker > summary > .dashicons:last-child {
  width: 16px;
  height: 16px;
  color: var(--vpm-muted);
  font-size: 16px;
  transition: transform .16s ease;
}
.vpm-task-choice-picker[open] > summary > .dashicons:last-child { transform: rotate(180deg); }
.vpm-task-choice-panel {
  position: absolute;
  z-index: 90;
  top: calc(100% + 6px);
  left: 0;
  width: max(100%, 240px);
  max-width: min(320px, calc(100vw - 42px));
  overflow: hidden;
  padding: 7px;
  border: 1px solid var(--vpm-border);
  border-radius: 10px;
  background: var(--vpm-panel);
  box-shadow: 0 16px 38px rgba(23, 32, 51, .2);
}
.vpm-task-choice-search {
  position: relative;
  display: block;
  margin-bottom: 5px;
}
.vpm-task-choice-search > .dashicons {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 9px;
  width: 15px;
  height: 15px;
  color: var(--vpm-muted);
  font-size: 15px;
  transform: translateY(-50%);
  pointer-events: none;
}
.vpm-form-grid .vpm-task-choice-search > input {
  width: 100%;
  height: 32px;
  padding: 0 9px 0 30px;
  border-radius: 7px;
  font-size: 11px;
}
.vpm-task-choice-options { display: grid; gap: 2px; max-height: 260px; overflow-y: auto; }
.vpm-task-choice-option {
  display: grid;
  grid-template-columns: 27px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 36px;
  padding: 4px 7px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--vpm-ink);
  font: inherit;
  font-size: 11px;
  text-align: left;
  cursor: pointer;
}
.vpm-task-choice-option:hover,
.vpm-task-choice-option.is-selected { background: var(--vpm-panel-alt); }
.vpm-task-choice-option > span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vpm-task-choice-check { visibility: hidden; width: 16px; height: 16px; color: var(--vpm-ink); font-size: 16px; }
.vpm-task-choice-option.is-selected .vpm-task-choice-check { visibility: visible; }
.vpm-task-choice-panel > p { margin: 10px 6px; color: var(--vpm-muted); font-size: 10px; text-align: center; }

.vpm-task-choice-icon {
  display: grid;
  width: 23px;
  height: 23px;
  place-items: center;
  box-sizing: border-box;
  border: 1px solid color-mix(in srgb, var(--vpm-choice-color) 75%, transparent);
  border-radius: 7px;
  background: color-mix(in srgb, var(--vpm-choice-color) 10%, transparent);
  color: var(--vpm-choice-color);
}
.vpm-task-choice-icon > .dashicons { width: 15px; height: 15px; font-size: 15px; }
.vpm-task-choice-icon.is-status { border-radius: 50%; }
.vpm-task-choice-icon.is-status.is-completed {
  border-color: var(--vpm-choice-color);
  background: var(--vpm-choice-color);
  color: #fff;
}
.vpm-task-choice-icon.is-status.is-cancelled { background: color-mix(in srgb, var(--vpm-choice-color) 20%, transparent); }
.vpm-task-choice-icon.is-priority.is-urgent {
  border-color: var(--vpm-choice-color);
  background: color-mix(in srgb, var(--vpm-choice-color) 14%, transparent);
}
.vpm-task-choice-icon.is-priority.is-none { color: var(--vpm-muted); }
.vpm-priority-signal {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  width: 13px;
  height: 13px;
}
.vpm-priority-signal i { width: 3px; border-radius: 2px 2px 0 0; background: var(--vpm-choice-color); }
.vpm-priority-signal i:nth-child(1) { height: 4px; }
.vpm-priority-signal i:nth-child(2) { height: 8px; }
.vpm-priority-signal i:nth-child(3) { height: 12px; }
.vpm-task-choice-icon.is-low .vpm-priority-signal i:nth-child(n+2),
.vpm-task-choice-icon.is-medium .vpm-priority-signal i:nth-child(3) { opacity: .2; }

.vpm-theme-dark .vpm-task-choice-picker > summary {
  border-color: color-mix(in srgb, var(--vpm-task-field-color) 68%, var(--vpm-border)) !important;
  background: color-mix(in srgb, var(--vpm-task-field-color) 15%, var(--vpm-dark-input, var(--vpm-panel-alt))) !important;
  color: var(--vpm-ink) !important;
}
.vpm-theme-dark .vpm-task-choice-panel {
  border-color: var(--vpm-border);
  background: var(--vpm-panel);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .5);
}
.vpm-theme-dark .vpm-task-choice-option { color: var(--vpm-ink) !important; }
.vpm-theme-dark .vpm-task-choice-option:hover,
.vpm-theme-dark .vpm-task-choice-option.is-selected { background: var(--vpm-dark-hover, var(--vpm-panel-alt)) !important; }

@media (max-width: 700px) {
  .vpm-task-choice-panel { position: fixed; top: auto; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); left: 12px; width: auto; max-width: none; }
  .vpm-task-choice-option { min-height: 42px; }
}

/* 0.13.19 — readable task drawer typography in every dark palette. */
.vpm-theme-dark .vpm-task-detail,
.vpm-theme-dark .vpm-task-detail__main { color: var(--vpm-ink) !important; }
.vpm-theme-dark .vpm-task-description {
  color: #f1f5f9 !important;
}
.vpm-theme-dark .vpm-task-description :is(p, div, span, li, strong, em, b, i, blockquote, h1, h2, h3, h4, h5, h6) {
  color: inherit !important;
}
.vpm-theme-dark .vpm-task-description a {
  color: color-mix(in srgb, var(--vpm-brand) 58%, #ffffff) !important;
}
.vpm-theme-dark .vpm-section-heading h3,
.vpm-theme-dark .vpm-task-detail__aside h3,
.vpm-theme-dark .vpm-comment__header strong,
.vpm-theme-dark .vpm-file-item strong {
  color: #f8fafc !important;
}
.vpm-theme-dark .vpm-comment__content,
.vpm-theme-dark .vpm-comment__content :is(p, div, span, li, strong, em, b, i, blockquote) {
  color: #e2e8f0 !important;
}
.vpm-theme-dark .vpm-comment__content a { color: color-mix(in srgb, var(--vpm-brand) 58%, #ffffff) !important; }
.vpm-theme-dark .vpm-comment__header time,
.vpm-theme-dark .vpm-task-detail .vpm-muted,
.vpm-theme-dark .vpm-task-detail .vpm-live-upload-zone small,
.vpm-theme-dark .vpm-file-item small,
.vpm-theme-dark .vpm-detail-list dt {
  color: #aebbd0 !important;
}
.vpm-theme-dark .vpm-detail-list dd { color: #e2e8f0 !important; }
.vpm-theme-dark .vpm-file-item__icon {
  background: var(--vpm-panel-alt) !important;
  color: #cbd5e1 !important;
}
.vpm-theme-dark .vpm-comment-form textarea {
  background: var(--vpm-dark-input, var(--vpm-panel-alt)) !important;
  color: #f8fafc !important;
}
.vpm-theme-dark .vpm-comment-form textarea::placeholder { color: #94a3b8 !important; }
.vpm-theme-dark .vpm-comment-notify select {
  border-color: var(--vpm-border) !important;
  background: var(--vpm-dark-input, var(--vpm-panel-alt)) !important;
  color: #f8fafc !important;
}

/* 0.13.20 — compact new-task window with an expanding description editor. */
.vpm-dialog--task:has(.vpm-task-form--new) {
  width: min(920px, calc(100vw - 48px));
  max-height: min(84dvh, 780px);
}
.vpm-dialog--task .vpm-task-form--new { max-height: min(84dvh, 780px); }
.vpm-task-form--new .vpm-form-body { padding: 15px 18px; }
.vpm-task-form--new .vpm-form-grid { gap: 10px 12px; }
.vpm-task-form--new .vpm-task-project-field > small { display: none; }
.vpm-task-form--new .vpm-rich-editor__header { min-height: 36px; }
.vpm-task-form--new .vpm-rich-editor__toolbar { gap: 2px; padding: 4px 7px; }
.vpm-task-form--new .vpm-rich-editor__toolbar button { width: 28px; height: 26px; }
.vpm-task-form--new .vpm-task-description-editor .vpm-rich-editor__visual,
.vpm-task-form--new .vpm-task-description-editor textarea {
  min-height: 88px;
  padding: 11px 13px;
  transition: min-height .18s ease;
}
.vpm-task-form--new .vpm-task-description-editor .vpm-rich-editor__visual:not(:empty),
.vpm-task-form--new .vpm-task-description-editor textarea:not(:placeholder-shown) {
  min-height: 180px;
}
.vpm-task-form--new .vpm-task-upload-zone {
  min-height: 50px;
  padding: 8px 11px;
}
.vpm-task-form--new .vpm-task-upload-zone small { font-size: 9px; }
.vpm-task-form--new .vpm-task-upload-zone .vpm-secondary { min-height: 32px; }

@media (max-width: 700px) {
  .vpm-dialog--task:has(.vpm-task-form--new),
  .vpm-dialog--task .vpm-task-form--new { width: 100%; max-height: 92dvh; }
  .vpm-task-form--new .vpm-form-body { padding: 12px; }
  .vpm-task-form--new .vpm-task-description-editor .vpm-rich-editor__visual,
  .vpm-task-form--new .vpm-task-description-editor textarea { min-height: 76px; }
  .vpm-task-form--new .vpm-task-description-editor .vpm-rich-editor__visual:not(:empty),
  .vpm-task-form--new .vpm-task-description-editor textarea:not(:placeholder-shown) { min-height: 150px; }
}

/* 0.13.21 — Plane-inspired inline task properties. */
.vpm-drawer:has(.vpm-task-detail) {
  width: min(980px, 96vw);
}
.vpm-task-detail {
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  letter-spacing: -.006em;
}
.vpm-task-detail__body.is-details-open {
  grid-template-columns: minmax(0, 1fr) minmax(330px, 370px) !important;
}
.vpm-task-detail__aside {
  padding: 14px 12px 24px;
}
.vpm-task-properties {
  min-width: 0;
  display: grid;
  gap: 3px;
}
.vpm-task-properties > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 7px 13px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--vpm-border);
}
.vpm-task-properties > header h3 {
  margin: 0;
  color: var(--vpm-ink);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
}
.vpm-task-properties > header small {
  display: block;
  margin-top: 3px;
  color: var(--vpm-muted);
  font-size: 9px;
  line-height: 1.45;
}
.vpm-task-properties__status {
  flex: 0 0 auto;
  padding: 4px 7px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--vpm-success) 9%, var(--vpm-panel));
  color: var(--vpm-success);
  font-size: 8px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}
.vpm-task-properties__status[data-state="saving"] { color: var(--vpm-warning); background: color-mix(in srgb, var(--vpm-warning) 10%, var(--vpm-panel)); }
.vpm-task-properties__status[data-state="error"] { color: var(--vpm-danger); background: color-mix(in srgb, var(--vpm-danger) 10%, var(--vpm-panel)); }
.vpm-task-property-row {
  min-width: 0;
  min-height: 40px;
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 3px 5px;
  border-radius: 8px;
  transition: background .14s ease, opacity .14s ease;
}
.vpm-task-property-row:hover,
.vpm-task-property-row:focus-within {
  background: color-mix(in srgb, var(--vpm-ink) 4%, transparent);
}
.vpm-task-property-row.is-saving { opacity: .66; }
.vpm-task-property-label {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--vpm-muted);
  font-size: 10px;
  font-weight: 500;
  line-height: 1.25;
}
.vpm-task-property-label .dashicons {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  color: var(--vpm-subtle);
  font-size: 15px;
}
.vpm-task-property-control { min-width: 0; position: relative; }
.vpm-task-property-value {
  min-width: 0;
  display: block;
  overflow: hidden;
  color: var(--vpm-ink);
  font-size: 10px;
  font-weight: 500;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.vpm-task-property-control > :is(input, select),
.vpm-task-property-picker > summary {
  width: 100%;
  min-width: 0;
  height: 34px;
  border: 1px solid transparent;
  border-radius: 7px;
  outline: 0;
  background: transparent;
  color: var(--vpm-ink);
  font-size: 10px;
  font-weight: 500;
  transition: border-color .14s ease, background .14s ease, box-shadow .14s ease;
}
.vpm-task-property-control > :is(input, select) { padding: 0 8px; }
.vpm-task-property-control > :is(input, select):hover,
.vpm-task-property-picker > summary:hover {
  border-color: var(--vpm-border);
  background: var(--vpm-panel);
}
.vpm-task-property-control > :is(input, select):focus,
.vpm-task-property-picker[open] > summary {
  border-color: color-mix(in srgb, var(--vpm-brand) 58%, var(--vpm-border));
  background: var(--vpm-panel);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--vpm-brand) 10%, transparent);
}
.vpm-task-property-select.is-colored {
  border-left-color: var(--vpm-property-color) !important;
  box-shadow: inset 3px 0 0 var(--vpm-property-color);
}
.vpm-task-property-picker { position: relative; min-width: 0; }
.vpm-task-property-picker > summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 7px 0 9px;
  cursor: pointer;
}
.vpm-task-property-picker > summary::-webkit-details-marker { display: none; }
.vpm-task-property-picker > summary > span:first-child {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.vpm-task-property-picker > summary .dashicons { width: 14px; height: 14px; font-size: 14px; color: var(--vpm-subtle); }
.vpm-task-property-picker[open] > summary .dashicons { transform: rotate(180deg); }
.vpm-task-property-picker__panel {
  position: absolute;
  z-index: 30;
  top: calc(100% + 5px);
  right: 0;
  width: min(270px, calc(100vw - 40px));
  overflow: hidden;
  border: 1px solid var(--vpm-border);
  border-radius: 10px;
  background: var(--vpm-panel);
  box-shadow: 0 16px 42px rgba(15, 23, 42, .16);
}
.vpm-task-property-picker__search {
  height: 38px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 8px;
  border-bottom: 1px solid var(--vpm-border);
}
.vpm-task-property-picker__search .dashicons { width: 14px; height: 14px; font-size: 14px; color: var(--vpm-subtle); }
.vpm-task-property-picker__search input {
  min-width: 0;
  flex: 1;
  height: 27px;
  padding: 0;
  border: 0 !important;
  outline: 0;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--vpm-ink);
  font-size: 10px;
}
.vpm-task-property-picker__options {
  max-height: 230px;
  overflow-y: auto;
  display: grid;
  padding: 5px;
}
.vpm-task-property-picker__options > label {
  min-width: 0;
  min-height: 36px;
  display: grid;
  grid-template-columns: 16px 26px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  padding: 5px 7px;
  border-radius: 7px;
  color: var(--vpm-ink);
  cursor: pointer;
}
.vpm-task-property-picker__options > label:hover { background: var(--vpm-panel-alt); }
.vpm-task-property-picker__options input { width: 13px !important; height: 13px !important; margin: 0; }
.vpm-task-property-picker__options img { width: 25px; height: 25px; border-radius: 50%; object-fit: cover; }
.vpm-task-property-picker__options i {
  width: 9px;
  height: 9px;
  justify-self: center;
  border-radius: 3px;
  background: var(--vpm-label-color, #64748b);
}
.vpm-task-property-picker[data-task-property-group="labels"] .vpm-task-property-picker__options > label { grid-template-columns: 16px 15px minmax(0, 1fr); }
.vpm-task-property-picker__options span { min-width: 0; }
.vpm-task-property-picker__options strong,
.vpm-task-property-picker__options small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vpm-task-property-picker__options strong { color: var(--vpm-ink); font-size: 10px; font-weight: 500; }
.vpm-task-property-picker__options small { margin-top: 2px; color: var(--vpm-muted); font-size: 8px; }
.vpm-task-property-empty { padding: 12px; color: var(--vpm-muted); font-size: 9px; text-align: center; }
.vpm-task-property-reminder {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(82px, .85fr) 28px;
  gap: 4px;
}
.vpm-task-property-reminder :is(input, select) {
  width: 100%;
  min-width: 0;
  height: 34px;
  padding: 0 6px;
  border: 1px solid transparent;
  border-radius: 7px;
  outline: 0;
  background: transparent;
  color: var(--vpm-ink);
  font-size: 9px;
}
.vpm-task-property-reminder :is(input, select):hover,
.vpm-task-property-reminder :is(input, select):focus { border-color: var(--vpm-border); background: var(--vpm-panel); }
.vpm-task-property-clear {
  width: 28px;
  height: 34px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--vpm-subtle);
  cursor: pointer;
}
.vpm-task-property-clear:hover { background: color-mix(in srgb, var(--vpm-danger) 9%, transparent); color: var(--vpm-danger); }
.vpm-task-property-clear .dashicons { width: 15px; height: 15px; font-size: 15px; }
.vpm-task-toolbar__meta > [data-task-toolbar-priority],
.vpm-task-toolbar__meta > [data-task-toolbar-state],
.vpm-task-toolbar__meta > [data-task-toolbar-labels] { display: inline-flex; align-items: center; min-width: 0; }

.vpm-theme-dark .vpm-drawer:has(.vpm-task-detail),
.vpm-theme-dark .vpm-task-detail,
.vpm-theme-dark .vpm-task-detail__main {
  background: color-mix(in srgb, var(--vpm-bg) 88%, #151515) !important;
}
.vpm-theme-dark .vpm-task-detail__header,
.vpm-theme-dark .vpm-task-detail__aside {
  background: color-mix(in srgb, var(--vpm-panel) 86%, #171717) !important;
}
.vpm-theme-dark .vpm-task-detail__aside { border-left-color: color-mix(in srgb, var(--vpm-border) 72%, #333) !important; }
.vpm-theme-dark .vpm-task-properties > header { border-color: color-mix(in srgb, var(--vpm-border) 70%, #333); }
.vpm-theme-dark .vpm-task-property-row:hover,
.vpm-theme-dark .vpm-task-property-row:focus-within { background: rgba(255,255,255,.035); }
.vpm-theme-dark .vpm-task-property-value,
.vpm-theme-dark .vpm-task-property-control > :is(input, select),
.vpm-theme-dark .vpm-task-property-picker > summary,
.vpm-theme-dark .vpm-task-property-reminder :is(input, select) { color: #e8e9eb !important; }
.vpm-theme-dark .vpm-task-property-control > :is(input, select),
.vpm-theme-dark .vpm-task-property-reminder :is(input, select) {
  border-color: transparent !important;
  background: transparent !important;
  box-shadow: none;
}
.vpm-theme-dark .vpm-task-property-control > .vpm-task-property-select.is-colored {
  border-left-color: var(--vpm-property-color) !important;
  box-shadow: inset 3px 0 0 var(--vpm-property-color) !important;
}
.vpm-theme-dark .vpm-task-property-control > :is(input, select):hover,
.vpm-theme-dark .vpm-task-property-control > :is(input, select):focus,
.vpm-theme-dark .vpm-task-property-picker > summary:hover,
.vpm-theme-dark .vpm-task-property-picker[open] > summary,
.vpm-theme-dark .vpm-task-property-reminder :is(input, select):hover,
.vpm-theme-dark .vpm-task-property-reminder :is(input, select):focus {
  background: rgba(255,255,255,.045) !important;
}
.vpm-theme-dark .vpm-task-property-picker__panel {
  border-color: color-mix(in srgb, var(--vpm-border) 72%, #333);
  background: color-mix(in srgb, var(--vpm-panel) 82%, #1c1c1c);
  box-shadow: 0 18px 50px rgba(0,0,0,.5);
}
.vpm-theme-dark .vpm-task-property-picker__options > label:hover { background: rgba(255,255,255,.055); }
.vpm-theme-dark .vpm-task-property-picker__search { border-color: color-mix(in srgb, var(--vpm-border) 72%, #333); }
.vpm-theme-dark .vpm-task-properties__status { background: color-mix(in srgb, var(--vpm-success) 18%, transparent); }

@media (max-width: 820px) {
  .vpm-task-detail__body.is-details-open { display: block !important; }
  .vpm-task-detail__aside { padding: 14px 12px calc(28px + env(safe-area-inset-bottom)) !important; }
  .vpm-task-property-row { grid-template-columns: 104px minmax(0, 1fr); }
  .vpm-task-property-picker__panel { position: static; width: 100%; margin-top: 5px; }
}
@media (max-width: 440px) {
  .vpm-task-property-row { grid-template-columns: 96px minmax(0, 1fr); gap: 5px; }
  .vpm-task-property-label { gap: 5px; font-size: 9px; }
  .vpm-task-property-reminder { grid-template-columns: minmax(0, 1fr) 86px 28px; }
}

/* 0.13.22 — compact branding and dark drag/drop surfaces. */
.vpm-user-sidebar-compact .vpm-sidebar__brand > div {
  display: none !important;
}
.vpm-user-sidebar-compact .vpm-sidebar__brand {
  gap: 8px;
  padding-inline: 12px;
}
.vpm-user-sidebar-compact .vpm-sidebar__brand .vpm-brand-mark.has-image {
  max-width: calc(100% - 42px);
}

.vpm-theme-dark :is(
  .vpm-recent-row__icon,
  .vpm-focused-link > .dashicons,
  .vpm-quicklink-card > .dashicons:first-child,
  .vpm-empty-icon
) {
  border: 1px solid var(--vpm-border) !important;
  background: var(--vpm-dark-soft, var(--vpm-panel-alt)) !important;
  color: var(--vpm-muted) !important;
  box-shadow: none !important;
}

.vpm-theme-dark .vpm-board-column__body.is-over,
.vpm-theme-dark.vpm-custom-board-columns .vpm-board-column__body.is-over {
  background: color-mix(in srgb, var(--vpm-brand) 10%, var(--vpm-dark-input, var(--vpm-panel-alt))) !important;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--vpm-brand) 48%, var(--vpm-border)) !important;
}
.vpm-theme-dark .vpm-board-column__body.is-over .vpm-board-empty {
  border-color: color-mix(in srgb, var(--vpm-brand) 45%, var(--vpm-border)) !important;
  background: color-mix(in srgb, var(--vpm-brand) 5%, var(--vpm-dark-input, var(--vpm-panel-alt))) !important;
  color: var(--vpm-muted) !important;
}

.vpm-task-drag-image {
  position: fixed !important;
  z-index: 2147483600 !important;
  top: -10000px !important;
  left: -10000px !important;
  width: var(--vpm-task-drag-width, 290px) !important;
  max-width: calc(100vw - 32px) !important;
  opacity: 1 !important;
  transform: none !important;
  pointer-events: none !important;
  box-shadow: 0 18px 44px rgba(15, 23, 42, .22) !important;
}
.vpm-theme-dark .vpm-task-drag-image,
.vpm-theme-dark.vpm-custom-task-cards .vpm-task-drag-image {
  border-color: var(--vpm-border-strong) !important;
  background: var(--vpm-panel) !important;
  color: var(--vpm-ink) !important;
  box-shadow: 0 20px 48px rgba(0, 0, 0, .58) !important;
}
.vpm-theme-dark .vpm-task-drag-image h3 { color: var(--vpm-ink) !important; }
.vpm-theme-dark .vpm-task-drag-image :is(.vpm-task-card__key, .vpm-task-card__footer, .vpm-mywork-card__project) {
  color: var(--vpm-muted) !important;
}
.vpm-is-task-dragging .vpm-task-card.is-dragging {
  opacity: .28;
  transform: scale(.985);
}

/* 0.13.23 — Plane-style quick properties directly on Board cards. */
.vpm-task-card > .vpm-task-card__open { padding-bottom: 7px; }
.vpm-board-card-properties {
  min-height: 31px;
  gap: 4px;
  margin: 0;
  padding: 0 10px 9px;
  overflow: hidden;
}
.vpm-board-card-properties.is-readonly { padding-top: 2px; }
.vpm-board-card-properties > .vpm-task-card__meta { flex: 0 0 auto; }
.vpm-board-property-chip {
  min-width: 24px;
  max-width: 78px;
  height: 23px;
  display: inline-flex;
  flex: 0 1 auto;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0 5px;
  overflow: hidden;
  border: 1px solid var(--vpm-border);
  border-radius: 6px;
  background: var(--vpm-panel-alt);
  color: var(--vpm-muted);
  cursor: pointer;
  font: inherit;
  font-size: 8px;
  line-height: 1;
  white-space: nowrap;
}
.vpm-board-property-chip:hover,
.vpm-board-property-chip:focus-visible {
  border-color: color-mix(in srgb, var(--vpm-brand) 55%, var(--vpm-border));
  color: var(--vpm-ink);
  outline: 0;
}
.vpm-board-property-chip > span:not(.dashicons):not(.vpm-task-choice-icon):not(.vpm-board-property-avatars) {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.vpm-board-property-chip > .dashicons { width: 12px; height: 12px; flex: 0 0 12px; font-size: 12px; }
.vpm-board-property-chip > b { color: inherit; font-size: 7px; font-weight: 600; }
.vpm-board-property-chip .vpm-task-choice-icon {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  border: 0;
  border-radius: 4px;
  background: transparent;
}
.vpm-board-property-chip .vpm-task-choice-icon.is-status { border-radius: 50%; }
.vpm-board-property-chip .vpm-task-choice-icon > .dashicons { width: 12px; height: 12px; font-size: 12px; }
.vpm-board-property-chip .vpm-priority-signal { width: 11px; height: 11px; gap: 1px; }
.vpm-board-property-chip .vpm-priority-signal i { width: 3px; }
.vpm-board-property-chip .vpm-priority-signal i:nth-child(1) { height: 3px; }
.vpm-board-property-chip .vpm-priority-signal i:nth-child(2) { height: 6px; }
.vpm-board-property-chip .vpm-priority-signal i:nth-child(3) { height: 10px; }
.vpm-board-property-chip.is-date { max-width: 82px; }
.vpm-board-property-chip.is-people { flex: 0 0 auto; padding-inline: 3px; }
.vpm-board-property-chip.is-labels { max-width: 105px; flex: 0 1 auto; }
.vpm-board-property-chip .is-overdue { color: var(--vpm-danger); }
.vpm-board-property-avatars {
  width: auto;
  min-width: 17px;
  height: 17px;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.vpm-board-property-avatars img {
  width: 17px !important;
  min-width: 17px !important;
  max-width: 17px !important;
  height: 17px !important;
  min-height: 17px !important;
  max-height: 17px !important;
  aspect-ratio: 1 / 1;
  flex: 0 0 17px;
  margin: 0;
  border: 1px solid var(--vpm-panel-alt);
  border-radius: 50% !important;
  object-fit: cover !important;
}
.vpm-board-property-avatars img + img { margin-left: -4px; }
.vpm-board-property-labels {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  overflow: hidden;
}
.vpm-board-property-label {
  min-width: 0;
  max-width: 82px;
  display: inline-flex;
  align-items: center;
  overflow: hidden;
  padding: 2px 5px;
  border: 1px solid color-mix(in srgb, var(--label, #64748b) 36%, var(--vpm-border));
  border-radius: 999px;
  background: color-mix(in srgb, var(--label, #64748b) 13%, var(--vpm-panel-alt));
  color: color-mix(in srgb, var(--label, #64748b) 82%, var(--vpm-ink));
  font-size: 7px;
  font-weight: 600;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.vpm-board-property-labels.is-readonly { flex: 0 1 auto; }
.vpm-board-property-labels.is-readonly .vpm-board-property-label { font-size: 8px; }

.vpm-board-quick-popover {
  position: fixed;
  z-index: 2147483200;
  width: min(270px, calc(100vw - 20px));
  max-height: min(390px, calc(100dvh - 20px));
  overflow: hidden;
  border: 1px solid var(--vpm-border);
  border-radius: 11px;
  background: var(--vpm-panel);
  color: var(--vpm-ink);
  box-shadow: 0 18px 48px rgba(15, 23, 42, .2);
}
.vpm-board-quick-popover > header {
  min-height: 40px;
  display: grid;
  grid-template-columns: minmax(0,1fr) auto 28px;
  align-items: center;
  gap: 8px;
  padding: 6px 7px 6px 11px;
  border-bottom: 1px solid var(--vpm-border);
}
.vpm-board-quick-popover > header strong { font-size: 11px; font-weight: 600; }
.vpm-board-quick-popover > header > span { color: var(--vpm-muted); font-size: 8px; }
.vpm-board-quick-popover > header > button {
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--vpm-muted);
  cursor: pointer;
  font-size: 18px;
}
.vpm-board-quick-popover > header > button:hover { background: var(--vpm-panel-alt); color: var(--vpm-ink); }
.vpm-board-quick-body { max-height: 305px; overflow-y: auto; padding: 6px; }
.vpm-board-quick-options { display: grid; gap: 2px; }
.vpm-board-quick-option {
  width: 100%;
  min-height: 38px;
  display: grid;
  grid-template-columns: 24px minmax(0,1fr) 16px;
  align-items: center;
  gap: 8px;
  padding: 5px 8px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--vpm-ink);
  cursor: pointer;
  font: inherit;
  font-size: 10px;
  text-align: left;
}
.vpm-board-quick-option:hover,
.vpm-board-quick-option.is-selected { background: var(--vpm-panel-alt); }
.vpm-board-quick-option > .dashicons:last-child { visibility: hidden; width: 15px; height: 15px; font-size: 15px; }
.vpm-board-quick-option.is-selected > .dashicons:last-child { visibility: visible; }
.vpm-board-quick-search { position: relative; display: block; margin-bottom: 5px; }
.vpm-board-quick-search > .dashicons {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 9px;
  width: 14px;
  height: 14px;
  color: var(--vpm-muted);
  font-size: 14px;
  transform: translateY(-50%);
  pointer-events: none;
}
.vpm-board-quick-search input {
  width: 100%;
  height: 32px;
  padding: 0 9px 0 29px;
  border: 1px solid var(--vpm-border);
  border-radius: 7px;
  background: var(--vpm-panel-alt);
  color: var(--vpm-ink);
  font-size: 10px;
}
.vpm-board-quick-checks { display: grid; gap: 2px; max-height: 245px; overflow-y: auto; }
.vpm-board-quick-checks > label {
  min-height: 39px;
  display: grid;
  grid-template-columns: 16px 27px minmax(0,1fr);
  align-items: center;
  gap: 7px;
  padding: 5px 7px;
  border-radius: 7px;
  cursor: pointer;
}
.vpm-board-quick-checks > label:hover { background: var(--vpm-panel-alt); }
.vpm-board-quick-checks input { width: 13px !important; height: 13px !important; margin: 0; }
.vpm-board-quick-checks img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; }
.vpm-board-quick-checks i { width: 10px; height: 10px; justify-self: center; border-radius: 3px; background: var(--vpm-label-color); }
.vpm-board-quick-checks.is-labels > label { grid-template-columns: 16px 16px minmax(0,1fr); }
.vpm-board-quick-checks strong,
.vpm-board-quick-checks small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vpm-board-quick-checks strong { font-size: 10px; font-weight: 500; }
.vpm-board-quick-checks small { margin-top: 2px; color: var(--vpm-muted); font-size: 8px; }
.vpm-board-quick-date { display: grid; gap: 9px; padding: 5px; }
.vpm-board-quick-date label { display: grid; gap: 5px; color: var(--vpm-muted); font-size: 9px; }
.vpm-board-quick-date input { width: 100%; height: 36px; padding: 0 9px; border: 1px solid var(--vpm-border); border-radius: 7px; background: var(--vpm-panel-alt); color: var(--vpm-ink); }
.vpm-board-quick-date > div { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 5px; }
.vpm-board-quick-date button,
.vpm-board-quick-popover > footer button {
  min-height: 31px;
  padding: 0 8px;
  border: 1px solid var(--vpm-border);
  border-radius: 7px;
  background: var(--vpm-panel-alt);
  color: var(--vpm-ink);
  cursor: pointer;
  font: inherit;
  font-size: 9px;
}
.vpm-board-quick-popover > footer { display: flex; justify-content: flex-end; padding: 7px; border-top: 1px solid var(--vpm-border); }
.vpm-board-quick-popover > footer button { min-width: 68px; background: var(--vpm-brand); border-color: var(--vpm-brand); color: #fff; }
.vpm-board-quick-empty { padding: 18px 8px; color: var(--vpm-muted); font-size: 9px; text-align: center; }
.vpm-board-quick-popover.is-saving { opacity: .76; }

.vpm-theme-dark .vpm-board-property-chip,
.vpm-theme-dark .vpm-board-quick-search input,
.vpm-theme-dark .vpm-board-quick-date input,
.vpm-theme-dark .vpm-board-quick-date button {
  border-color: var(--vpm-border) !important;
  background: var(--vpm-dark-input, var(--vpm-panel-alt)) !important;
  color: var(--vpm-ink) !important;
}
.vpm-theme-dark .vpm-board-quick-popover {
  border-color: var(--vpm-border);
  background: var(--vpm-panel);
  box-shadow: 0 20px 56px rgba(0,0,0,.62);
}
.vpm-theme-dark :is(.vpm-board-quick-option:hover, .vpm-board-quick-option.is-selected, .vpm-board-quick-checks > label:hover, .vpm-board-quick-popover > header > button:hover) {
  background: var(--vpm-dark-hover, var(--vpm-panel-alt)) !important;
}
.vpm-theme-dark .vpm-board-property-avatars img { border-color: var(--vpm-dark-input, var(--vpm-panel-alt)); }

@media (max-width: 600px) {
  .vpm-board-quick-popover {
    top: auto !important;
    right: 10px !important;
    bottom: max(10px, env(safe-area-inset-bottom)) !important;
    left: 10px !important;
    width: auto;
    max-height: min(70dvh, 520px);
  }
  .vpm-board-quick-body { max-height: calc(70dvh - 100px); }
}
/* 0.13.24 — create a task directly inside a Board or grouped List status. */
.vpm-status-new-task {
  width: 100%;
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 7px;
  flex: 0 0 auto;
  padding: 7px 9px;
  border: 1px dashed transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--vpm-muted);
  font: inherit;
  font-size: 10px;
  font-weight: var(--vpm-font-weight-strong, 500);
  text-align: left;
  cursor: pointer;
  transition: background .14s, border-color .14s, color .14s;
}
.vpm-status-new-task > .dashicons {
  width: 14px;
  height: 14px;
  color: var(--vpm-new-task-color, var(--vpm-accent));
  font-size: 14px;
  line-height: 14px;
}
.vpm-status-new-task:hover,
.vpm-status-new-task:focus-visible {
  border-color: color-mix(in srgb, var(--vpm-new-task-color, var(--vpm-accent)) 48%, var(--vpm-border));
  outline: 0;
  background: color-mix(in srgb, var(--vpm-new-task-color, var(--vpm-accent)) 8%, var(--vpm-panel));
  color: var(--vpm-ink);
}
.vpm-status-new-task--board { margin-top: 1px; }
.vpm-list-new-task-row,
.vpm-list-new-task-row:hover {
  background: transparent !important;
  cursor: default !important;
}
.vpm-list-new-task-row > td {
  height: auto !important;
  padding: 5px 8px 7px !important;
  background: transparent !important;
}
.vpm-list-new-task-row .vpm-status-new-task {
  width: min(300px, 100%);
}
.vpm-theme-dark .vpm-status-new-task:hover,
.vpm-theme-dark .vpm-status-new-task:focus-visible {
  background: color-mix(in srgb, var(--vpm-new-task-color, var(--vpm-accent)) 14%, var(--vpm-panel-alt)) !important;
  color: var(--vpm-ink) !important;
}

@media (max-width: 820px) {
  .vpm-list-panel .vpm-list-new-task-row {
    display: block !important;
    padding: 0 !important;
    overflow: visible !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }
  .vpm-list-panel .vpm-list-new-task-row > td {
    width: 100% !important;
    display: block !important;
    padding: 2px 0 4px !important;
    border: 0 !important;
  }
  .vpm-list-panel .vpm-list-new-task-row > td::before { display: none !important; }
  .vpm-list-new-task-row .vpm-status-new-task { width: 100%; }
}
/* 0.13.26 — quick status and priority controls in the task toolbar. */
.vpm-task-toolbar-quick {
  min-width: 0;
  min-height: 27px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 4px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: var(--vpm-ink);
  cursor: pointer;
  font: inherit;
  transition: background .14s, border-color .14s, box-shadow .14s;
}
.vpm-task-toolbar-quick:hover,
.vpm-task-toolbar-quick:focus-visible {
  border-color: var(--vpm-border);
  outline: 0;
  background: var(--vpm-panel-alt);
  box-shadow: var(--vpm-shadow-sm);
}
.vpm-task-toolbar-quick > .dashicons:last-child {
  width: 12px;
  height: 12px;
  color: var(--vpm-subtle);
  font-size: 12px;
  line-height: 12px;
}
.vpm-task-toolbar-quick .vpm-priority,
.vpm-task-toolbar-quick .vpm-state-pill { pointer-events: none; }
.vpm-theme-dark .vpm-task-toolbar-quick { color: var(--vpm-ink) !important; }
.vpm-theme-dark .vpm-task-toolbar-quick:hover,
.vpm-theme-dark .vpm-task-toolbar-quick:focus-visible {
  border-color: var(--vpm-border) !important;
  background: var(--vpm-dark-hover, var(--vpm-panel-alt)) !important;
}

@media (max-width: 600px) {
  .vpm-task-toolbar-quick { min-height: 32px; padding: 3px 6px; }
}

/* 0.13.29 — mobile picker hardening and private internal team profiles. */
.vpm-portal-app :is(
  .vpm-task-search,
  .vpm-project-search,
  .vpm-projects-overview__search,
  .vpm-picker-search,
  .vpm-task-project-picker__search,
  .vpm-task-choice-search,
  .vpm-task-property-picker__search,
  .vpm-board-quick-search
) {
  position: relative;
}
.vpm-portal-app :is(
  .vpm-task-search,
  .vpm-project-search,
  .vpm-projects-overview__search,
  .vpm-picker-search,
  .vpm-task-project-picker__search,
  .vpm-task-choice-search,
  .vpm-task-property-picker__search,
  .vpm-board-quick-search
) > .dashicons-search {
  position: absolute !important;
  z-index: 3;
  top: 50% !important;
  left: 11px !important;
  width: 16px !important;
  height: 16px !important;
  margin: 0 !important;
  color: var(--vpm-muted) !important;
  font-size: 16px !important;
  line-height: 16px !important;
  pointer-events: none;
  transform: translateY(-50%) !important;
}
.vpm-portal-app :is(
  .vpm-task-search,
  .vpm-project-search,
  .vpm-projects-overview__search,
  .vpm-picker-search,
  .vpm-task-project-picker__search,
  .vpm-task-choice-search,
  .vpm-task-property-picker__search,
  .vpm-board-quick-search
) > input[type="search"] {
  width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  padding-inline: 38px 10px !important;
  text-indent: 0 !important;
}

.vpm-team-profiles-section > header > div { min-width: 0; }
.vpm-team-profiles-section > header p {
  margin: 2px 0 0;
  color: var(--vpm-muted);
  font-size: 8px;
}
.vpm-team-profiles-section__actions {
  display: flex;
  align-items: center;
  gap: 7px;
}
.vpm-team-profiles-section__actions > span {
  color: var(--vpm-muted);
  font-size: 9px;
  white-space: nowrap;
}
.vpm-team-profiles-section__actions > button {
  border: 1px solid var(--vpm-border) !important;
  background: var(--vpm-panel-alt) !important;
}
.vpm-team-profiles-section.is-collapsed > header { margin-bottom: 0; }
.vpm-team-profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 8px;
}
.vpm-team-profile-card {
  position: relative;
  min-width: 0;
  min-height: 148px;
  display: block;
  overflow: hidden;
  padding: 0 10px 10px;
  border: 1px solid var(--vpm-border);
  border-radius: 11px;
  background: var(--vpm-panel);
  color: var(--vpm-ink);
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition: border-color .14s, transform .14s, box-shadow .14s;
}
.vpm-team-profile-card:hover {
  border-color: color-mix(in srgb, var(--vpm-brand) 46%, var(--vpm-border));
  transform: translateY(-1px);
  box-shadow: var(--vpm-shadow-sm);
}
.vpm-team-profile-card__cover {
  height: 61px;
  display: block;
  margin: 0 -10px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--vpm-brand) 30%, var(--vpm-panel-alt)), var(--vpm-panel-alt));
  background-position: center;
  background-size: cover;
}
.vpm-team-profile-card__cover.has-cover { background-image: linear-gradient(180deg, transparent 50%, rgba(5,10,20,.36)), var(--vpm-team-cover); }
.vpm-team-profile-card > img {
  width: 44px;
  height: 44px;
  display: block;
  margin: -22px 0 5px;
  border: 3px solid var(--vpm-panel);
  border-radius: 50%;
  background: var(--vpm-panel-alt);
  object-fit: cover;
}
.vpm-team-profile-card__copy { min-width: 0; display: block; }
.vpm-team-profile-card__copy strong,
.vpm-team-profile-card__copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vpm-team-profile-card__copy strong { color: var(--vpm-ink); font-size: 10px; }
.vpm-team-profile-card__copy strong i {
  margin-left: 5px;
  padding: 2px 5px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--vpm-brand) 12%, var(--vpm-panel-alt));
  color: var(--vpm-brand);
  font-size: 7px;
  font-style: normal;
}
.vpm-team-profile-card__copy small { margin-top: 2px; color: var(--vpm-muted); font-size: 8px; }
.vpm-team-profile-badges {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 3px;
  margin-top: 7px;
}
.vpm-team-profile-badges > span {
  width: 21px;
  height: 21px;
  flex: 0 0 21px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--vpm-border);
  border-radius: 50%;
  background: var(--vpm-panel-alt);
  color: var(--vpm-brand);
}
.vpm-team-profile-badges img { width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
.vpm-team-profile-badges .dashicons { width: 13px; height: 13px; font-size: 13px; }

.vpm-dialog:has(.vpm-team-profile-dialog) { width: min(640px, 100%); overflow: hidden; }
.vpm-team-profile-dialog { color: var(--vpm-ink); }
.vpm-team-profile-dialog__cover {
  position: relative;
  min-height: 190px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--vpm-brand) 30%, var(--vpm-panel-alt)), var(--vpm-panel-alt));
  background-position: center;
  background-size: cover;
}
.vpm-team-profile-dialog__cover.has-cover { background-image: linear-gradient(180deg, transparent 35%, rgba(5,10,20,.76)), var(--vpm-team-cover); }
.vpm-team-profile-dialog__cover > div { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(5,10,20,.72)); }
.vpm-team-profile-dialog__cover .vpm-close { position: absolute; z-index: 2; top: 14px; right: 14px; }
.vpm-team-profile-dialog__identity {
  position: relative;
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  align-items: end;
  gap: 14px;
  margin-top: -54px;
  padding: 0 24px 20px;
}
.vpm-team-profile-dialog__identity > img { width: 78px; height: 78px; border: 4px solid var(--vpm-panel); border-radius: 50%; background: var(--vpm-panel-alt); object-fit: cover; }
.vpm-team-profile-dialog__identity small { color: color-mix(in srgb, var(--vpm-brand) 76%, var(--vpm-ink)); font-size: 8px; font-weight: 700; letter-spacing: .09em; }
.vpm-team-profile-dialog__identity h2 { margin: 3px 0 0; color: var(--vpm-ink); font-size: 21px; }
.vpm-team-profile-dialog__identity p { margin: 4px 0 0; color: var(--vpm-muted); font-size: 10px; }
.vpm-team-profile-dialog > section { padding: 18px 24px 24px; border-top: 1px solid var(--vpm-border); }
.vpm-team-profile-dialog > section > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.vpm-team-profile-dialog > section h3 { margin: 0; font-size: 12px; }
.vpm-team-profile-dialog > section > header span { color: var(--vpm-muted); font-size: 9px; }
.vpm-team-profile-badges.is-detailed { flex-wrap: wrap; gap: 9px; margin-top: 13px; }
.vpm-team-profile-badges.is-detailed > span { width: 82px; height: auto; min-height: 86px; flex: 0 0 82px; align-content: center; gap: 5px; padding: 7px; border-radius: 11px; }
.vpm-team-profile-badges.is-detailed img { width: 48px; height: 48px; }
.vpm-team-profile-badges.is-detailed .dashicons { width: 40px; height: 40px; font-size: 40px; }
.vpm-team-profile-badges.is-detailed b { max-width: 100%; overflow: hidden; color: var(--vpm-ink); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.vpm-team-profile-badges__empty { margin: 12px 0 0; color: var(--vpm-muted); font-size: 10px; }
.vpm-team-profile-dialog > footer { display: flex; align-items: center; gap: 7px; padding: 11px 24px; border-top: 1px solid var(--vpm-border); background: var(--vpm-panel-alt); color: var(--vpm-muted); font-size: 8px; }
.vpm-team-profile-dialog > footer .dashicons { width: 13px; height: 13px; font-size: 13px; }
.vpm-theme-dark :is(.vpm-team-profile-card, .vpm-team-profile-dialog) { background: var(--vpm-panel) !important; color: var(--vpm-ink) !important; }

.vpm-all-work-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 16px 0 4px;
  padding: 14px;
  border: 1px solid var(--vpm-border);
  border-radius: var(--vpm-radius, 12px);
  background: var(--vpm-panel);
  color: var(--vpm-muted);
  font-size: 12px;
}
.vpm-all-work-pagination strong { color: var(--vpm-ink); }

@media (max-width: 820px) {
  .vpm-list-panel,
  .vpm-list-panel table,
  .vpm-list-panel tbody,
  .vpm-list-panel tr,
  .vpm-list-panel td,
  .vpm-list-panel td.vpm-list-task,
  .vpm-inline-task-open {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .vpm-list-panel table,
  .vpm-list-panel tbody,
  .vpm-list-panel tr { min-width: 0 !important; overflow: hidden !important; }
  .vpm-list-panel td.vpm-list-task,
  .vpm-inline-task-open { min-width: 0 !important; overflow: hidden !important; }
  .vpm-project-task-table.has-bulk-selection td.vpm-bulk-select-cell {
    grid-template-columns: minmax(0, 1fr) !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
}

@media (max-width: 700px) {
  .vpm-team-profile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .vpm-team-profile-card { min-height: 142px; }
  .vpm-team-profile-dialog__cover { min-height: 150px; }
  .vpm-team-profile-dialog__identity { grid-template-columns: 64px minmax(0, 1fr); margin-top: -42px; padding: 0 16px 16px; }
  .vpm-team-profile-dialog__identity > img { width: 64px; height: 64px; }
  .vpm-team-profile-dialog__identity h2 { font-size: 18px; }
  .vpm-team-profile-dialog > section { padding: 15px 16px 20px; }
  .vpm-team-profile-dialog > footer { padding: 10px 16px max(10px, env(safe-area-inset-bottom)); }
}

@media (max-width: 420px) {
  .vpm-team-profile-grid { grid-template-columns: minmax(0, 1fr); }
  .vpm-team-profile-card { min-height: 132px; }
  .vpm-team-profiles-section__actions > span { display: none; }
}
/* Focused client task form: workflow fields remain controlled by the project team. */
.vpm-client-task-notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  padding: 13px 15px;
  border: 1px solid var(--vpm-border);
  border-radius: var(--vpm-radius);
  background: var(--vpm-panel-alt);
  color: var(--vpm-ink);
}
.vpm-client-task-notice > .dashicons { color: var(--vpm-brand); }
.vpm-client-task-notice strong,
.vpm-client-task-notice small { display: block; }
.vpm-client-task-notice small { margin-top: 3px; color: var(--vpm-muted); line-height: 1.45; }

/* 0.13.38 — live task timers on cards and task details. */
.vpm-task-card { position: relative; }
.vpm-task-timer {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  box-sizing: border-box;
  min-height: 27px;
  padding: 0 8px;
  border: 1px solid var(--vpm-border);
  border-radius: 8px;
  background: color-mix(in srgb, var(--vpm-panel) 90%, var(--vpm-brand) 10%);
  color: var(--vpm-muted);
  font: inherit;
  font-size: 9px;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}
.vpm-task-timer .dashicons { width: 13px; height: 13px; font-size: 13px; }
button.vpm-task-timer { cursor: pointer; }
button.vpm-task-timer:hover,
button.vpm-task-timer:focus-visible {
  border-color: color-mix(in srgb, var(--vpm-brand) 56%, var(--vpm-border));
  color: var(--vpm-brand-strong, var(--vpm-brand));
  outline: none;
}
.vpm-task-timer.is-running {
  border-color: color-mix(in srgb, #16a34a 48%, var(--vpm-border));
  background: color-mix(in srgb, #16a34a 12%, var(--vpm-panel));
  color: #15803d;
  box-shadow: 0 0 0 3px color-mix(in srgb, #16a34a 9%, transparent);
}
.vpm-task-timer.is-stopped { opacity: .82; }
.vpm-task-card > .vpm-task-timer--card {
  position: absolute;
  z-index: 4;
  top: 9px;
  right: 9px;
  width: auto;
  min-width: 55px;
  max-width: calc(100% - 18px);
  padding: 0 7px;
  border: 1px solid var(--vpm-border);
  background: color-mix(in srgb, var(--vpm-panel) 90%, var(--vpm-brand) 10%);
  text-align: center;
}
.vpm-task-card > .vpm-task-timer--card + .vpm-task-card__open { padding-right: 78px; }
.vpm-task-timer--detail {
  min-height: 36px;
  padding: 0 12px;
  border-radius: 9px;
  font-size: 10px;
}
.vpm-theme-dark .vpm-task-timer {
  background: color-mix(in srgb, var(--vpm-panel-alt) 88%, var(--vpm-brand) 12%);
  border-color: var(--vpm-border);
  color: var(--vpm-ink);
}
.vpm-theme-dark .vpm-task-timer.is-running {
  background: color-mix(in srgb, #22c55e 14%, var(--vpm-panel));
  color: #86efac;
}
@media (max-width: 700px) {
  .vpm-task-timer--detail { min-height: 34px; padding-inline: 9px; }
  .vpm-task-card > .vpm-task-timer--card { top: 8px; right: 8px; min-width: 51px; }
  .vpm-task-card > .vpm-task-timer--card + .vpm-task-card__open { padding-right: 70px; }
}

/* 0.13.40 - timer visibility in List and across the whole portal. */
.vpm-list-task-main {
  min-width: 0;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}
.vpm-list-task-main > .vpm-inline-task-open { width: auto; min-width: 0; }
.vpm-list-task-main > .vpm-task-timer--list {
  width: auto;
  min-width: 55px;
  min-height: 28px;
  padding-inline: 7px;
  justify-self: end;
}

.vpm-team-timer-monitor {
  position: relative;
  z-index: 40;
  min-width: 0;
  width: min(330px, 29vw);
  max-width: 330px;
  flex: 0 1 330px;
  margin-left: auto;
}
.vpm-topbar.is-team-timer-open,
.vpm-topbar:has(.vpm-team-timer-monitor[open]) {
  z-index: 2147482500 !important;
  overflow: visible !important;
}
.vpm-team-timer-monitor[open] { z-index: 2147482510; }
.vpm-team-timer-monitor + .vpm-active-timer,
.vpm-team-timer-monitor + .vpm-topbar__actions { margin-left: 0; }
.vpm-team-timer-monitor > summary {
  min-height: 42px;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto auto auto;
  align-items: center;
  gap: 7px;
  padding: 4px 7px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, #0ea5e9 44%, var(--vpm-border));
  border-radius: 10px;
  background: color-mix(in srgb, #0ea5e9 7%, var(--vpm-panel));
  color: var(--vpm-ink);
  cursor: pointer;
  list-style: none;
  box-shadow: 0 5px 18px color-mix(in srgb, #0ea5e9 9%, transparent);
}
.vpm-team-timer-monitor > summary::-webkit-details-marker { display: none; }
.vpm-team-timer-monitor[open] > summary { border-color: color-mix(in srgb, #0ea5e9 72%, var(--vpm-border)); }
.vpm-team-timer-monitor > summary > .dashicons-arrow-down-alt2 { width: 15px; height: 15px; font-size: 15px; transition: transform .16s ease; }
.vpm-team-timer-monitor[open] > summary > .dashicons-arrow-down-alt2 { transform: rotate(180deg); }
.vpm-team-timer-monitor__pulse {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: color-mix(in srgb, #0ea5e9 16%, var(--vpm-panel));
  color: #0284c7;
  box-shadow: 0 0 0 0 rgba(14, 165, 233, .34);
  animation: vpm-team-timer-pulse 1.8s ease-out infinite;
}
.vpm-team-timer-monitor__pulse.is-idle { color: var(--vpm-muted); background: var(--vpm-panel-alt); box-shadow: none; animation: none; }
.vpm-team-timer-monitor__pulse .dashicons { width: 17px; height: 17px; font-size: 17px; }
@keyframes vpm-team-timer-pulse {
  0% { box-shadow: 0 0 0 0 rgba(14, 165, 233, .34); }
  72%, 100% { box-shadow: 0 0 0 7px rgba(14, 165, 233, 0); }
}
.vpm-team-timer-monitor__copy { min-width: 0; display: block; }
.vpm-team-timer-monitor__copy small,
.vpm-team-timer-monitor__copy strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.vpm-team-timer-monitor__copy small { margin-bottom: 1px; color: #0369a1; font-size: 8px; font-weight: 700; letter-spacing: .045em; text-transform: uppercase; }
.vpm-team-timer-monitor__copy strong { color: var(--vpm-ink); font-size: 11px; line-height: 1.15; }
.vpm-team-timer-monitor > summary > b { color: #0369a1; font-size: 11px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.vpm-team-timer-monitor > summary > em { min-width: 23px; padding: 3px 5px; border-radius: 999px; background: #0284c7; color: #fff; font-size: 9px; font-style: normal; font-weight: 800; text-align: center; }
.vpm-team-timer-monitor__panel {
  position: absolute;
  z-index: 2147482520;
  top: calc(100% + 8px);
  right: 0;
  width: min(390px, calc(100vw - 24px));
  max-height: min(520px, calc(100dvh - 96px));
  overflow: auto;
  padding: 8px;
  border: 1px solid var(--vpm-border);
  border-radius: 13px;
  background: var(--vpm-panel);
  box-shadow: var(--vpm-shadow-lg);
}
.vpm-team-timer-monitor__panel > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 5px 7px 10px; border-bottom: 1px solid var(--vpm-border); }
.vpm-team-timer-monitor__panel > header span strong,
.vpm-team-timer-monitor__panel > header span small { display: block; }
.vpm-team-timer-monitor__panel > header span strong { font-size: 13px; }
.vpm-team-timer-monitor__panel > header span small { margin-top: 2px; color: var(--vpm-muted); font-size: 10px; }
.vpm-team-timer-monitor__panel > header > b { min-width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: color-mix(in srgb, #0ea5e9 13%, var(--vpm-panel-alt)); color: #0284c7; font-size: 11px; }
.vpm-team-timer-monitor__panel > div { display: grid; gap: 6px; padding-top: 8px; }
.vpm-team-timer-monitor__panel > div > p { margin: 8px; color: var(--vpm-muted); font-size: 11px; text-align: center; }
.vpm-team-timer-monitor__row {
  width: 100%;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 8px;
  border: 1px solid var(--vpm-border);
  border-left: 3px solid #0ea5e9;
  border-radius: 9px;
  background: var(--vpm-panel-alt);
  color: var(--vpm-ink);
  text-align: left;
  cursor: pointer;
}
.vpm-team-timer-monitor__row:hover,
.vpm-team-timer-monitor__row:focus-visible { border-color: color-mix(in srgb, #0ea5e9 54%, var(--vpm-border)); background: color-mix(in srgb, #0ea5e9 7%, var(--vpm-panel)); outline: 0; }
.vpm-team-timer-monitor__row > img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.vpm-team-timer-monitor__row > span { min-width: 0; }
.vpm-team-timer-monitor__row small,
.vpm-team-timer-monitor__row strong,
.vpm-team-timer-monitor__row em { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vpm-team-timer-monitor__row small { color: var(--vpm-muted); font-size: 9px; }
.vpm-team-timer-monitor__row strong { margin: 2px 0; color: var(--vpm-ink); font-size: 11px; }
.vpm-team-timer-monitor__row em { color: #0284c7; font-size: 8px; font-style: normal; font-weight: 700; }
.vpm-team-timer-monitor__row > b { color: #0284c7; font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.vpm-user-reduce-motion .vpm-team-timer-monitor__pulse { animation: none; }
.vpm-theme-dark .vpm-team-timer-monitor > summary { border-color: color-mix(in srgb, #38bdf8 46%, var(--vpm-border)); background: color-mix(in srgb, #38bdf8 9%, var(--vpm-panel)); }
.vpm-theme-dark .vpm-team-timer-monitor__pulse,
.vpm-theme-dark .vpm-team-timer-monitor__copy small,
.vpm-theme-dark .vpm-team-timer-monitor > summary > b,
.vpm-theme-dark .vpm-team-timer-monitor__row > b,
.vpm-theme-dark .vpm-team-timer-monitor__row em { color: #7dd3fc; }

@media (max-width: 1250px) {
  .vpm-team-timer-monitor { width: 185px; max-width: 185px; flex-basis: 185px; }
  .vpm-team-timer-monitor > summary { grid-template-columns: 26px minmax(0, 1fr) auto auto; }
  .vpm-team-timer-monitor__pulse { width: 26px; height: 26px; }
  .vpm-team-timer-monitor > summary > em { display: none; }
}
@media (max-width: 820px) {
  .vpm-team-timer-monitor { width: 44px; max-width: 44px; flex: 0 0 44px; }
  .vpm-team-timer-monitor > summary { min-height: 38px; grid-template-columns: 1fr; place-items: center; padding: 4px; }
  .vpm-team-timer-monitor__copy,
  .vpm-team-timer-monitor > summary > b,
  .vpm-team-timer-monitor > summary > em,
  .vpm-team-timer-monitor > summary > .dashicons-arrow-down-alt2 { display: none; }
  .vpm-team-timer-monitor__panel { position: fixed; top: 62px; right: 10px; left: 10px; width: auto; max-height: calc(100dvh - 78px); }
}

.vpm-active-timer {
  min-width: 0;
  width: min(390px, 34vw);
  max-width: 390px;
  flex: 0 1 390px;
  margin-left: auto;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, #16a34a 48%, var(--vpm-border));
  border-radius: 10px;
  background: color-mix(in srgb, #16a34a 8%, var(--vpm-panel));
  box-shadow: 0 5px 18px color-mix(in srgb, #16a34a 11%, transparent);
}
.vpm-active-timer + .vpm-topbar__actions { margin-left: 0; }
.vpm-active-timer__task {
  min-width: 0;
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 5px 9px;
  border: 0;
  background: transparent;
  color: var(--vpm-ink);
  text-align: left;
  cursor: pointer;
}
.vpm-active-timer__task:hover,
.vpm-active-timer__task:focus-visible { background: color-mix(in srgb, #16a34a 10%, transparent); outline: 0; }
.vpm-active-timer__pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, .42);
  animation: vpm-active-timer-pulse 1.8s ease-out infinite;
}
@keyframes vpm-active-timer-pulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, .42); }
  72%, 100% { box-shadow: 0 0 0 7px rgba(34, 197, 94, 0); }
}
.vpm-active-timer__copy { min-width: 0; display: block; }
.vpm-active-timer__copy small,
.vpm-active-timer__copy strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.vpm-active-timer__copy small {
  margin-bottom: 2px;
  color: #15803d;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.vpm-active-timer__copy strong { color: var(--vpm-ink); font-size: 11px; line-height: 1.15; }
.vpm-active-timer__task > b {
  color: #15803d;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.vpm-active-timer__pause {
  width: 38px;
  min-width: 38px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-left: 1px solid color-mix(in srgb, #16a34a 34%, var(--vpm-border));
  background: color-mix(in srgb, #16a34a 10%, var(--vpm-panel));
  color: #15803d;
  cursor: pointer;
}
.vpm-active-timer__pause:hover,
.vpm-active-timer__pause:focus-visible { background: color-mix(in srgb, #16a34a 18%, var(--vpm-panel)); outline: 0; }
.vpm-active-timer__pause .dashicons { width: 16px; height: 16px; font-size: 16px; }
.vpm-user-reduce-motion .vpm-active-timer__pulse { animation: none; }

.vpm-theme-dark .vpm-active-timer {
  border-color: color-mix(in srgb, #22c55e 48%, var(--vpm-border));
  background: color-mix(in srgb, #22c55e 10%, var(--vpm-panel));
}
.vpm-theme-dark .vpm-active-timer__copy small,
.vpm-theme-dark .vpm-active-timer__task > b,
.vpm-theme-dark .vpm-active-timer__pause { color: #86efac; }
.vpm-theme-dark .vpm-active-timer__pause { background: color-mix(in srgb, #22c55e 11%, var(--vpm-panel)); }

@media (max-width: 1100px) {
  .vpm-active-timer { width: min(270px, 31vw); max-width: 270px; flex-basis: 270px; }
}
@media (max-width: 820px) {
  .vpm-active-timer {
    width: min(210px, 43vw);
    max-width: 210px;
    flex: 0 1 210px;
    border-radius: 9px;
  }
  .vpm-active-timer__task { grid-template-columns: 7px minmax(0, 1fr) auto; gap: 5px; padding: 4px 6px; }
  .vpm-active-timer__pulse { width: 7px; height: 7px; }
  .vpm-active-timer__copy small { display: none; }
  .vpm-active-timer__copy strong { font-size: 9px; }
  .vpm-active-timer__task > b { font-size: 9px; }
  .vpm-active-timer__pause { width: 30px; min-width: 30px; }
  .vpm-list-task-main > .vpm-inline-task-open,
  .vpm-list-task-main > .vpm-task-timer--list { width: auto !important; }
}
@media (max-width: 480px) {
  .vpm-active-timer { width: min(165px, 42vw); max-width: 165px; flex-basis: 165px; }
  .vpm-active-timer__task { padding-inline: 5px; }
  .vpm-active-timer__pause { width: 28px; min-width: 28px; }
}

/* 0.13.41 — recover work time that was not started with the live timer. */
.vpm-manual-time {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid color-mix(in srgb, var(--vpm-brand) 24%, var(--vpm-border));
  border-radius: 11px;
  background: color-mix(in srgb, var(--vpm-brand) 4%, var(--vpm-panel));
}
.vpm-manual-time legend {
  max-width: calc(100% - 12px);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 6px;
  color: var(--vpm-ink);
}
.vpm-manual-time legend > .dashicons {
  width: 18px;
  height: 18px;
  color: var(--vpm-brand);
  font-size: 18px;
}
.vpm-manual-time legend > span:last-child,
.vpm-manual-time legend strong,
.vpm-manual-time legend small { display: block; }
.vpm-manual-time legend strong { font-size: 11px; line-height: 1.25; }
.vpm-manual-time legend small { margin-top: 2px; color: var(--vpm-muted); font-size: 9px; font-weight: 400; }
.vpm-manual-time .vpm-manual-time__toggle {
  width: fit-content;
  margin: 2px 0 0;
  cursor: pointer;
}
.vpm-form-grid .vpm-manual-time__toggle > input {
  width: 15px !important;
  min-width: 15px;
  height: 15px !important;
  min-height: 15px;
  margin: 0;
  padding: 0;
}
.vpm-manual-time__fields {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(0, .9fr));
  gap: 10px;
  margin-top: 11px;
}
.vpm-manual-time__fields[hidden] { display: none !important; }
.vpm-manual-time__fields > label { min-width: 0; display: grid; gap: 5px; }
.vpm-manual-time__fields > label > span { color: var(--vpm-muted); font-size: 9px; font-weight: var(--vpm-font-weight-strong, 500); }
.vpm-manual-time > small { display: block; margin-top: 8px; color: var(--vpm-muted); font-size: 9px; line-height: 1.4; }
.vpm-theme-dark .vpm-manual-time {
  border-color: color-mix(in srgb, var(--vpm-brand) 38%, var(--vpm-border));
  background: color-mix(in srgb, var(--vpm-brand) 7%, var(--vpm-panel));
}

@media (max-width: 700px) {
  .vpm-manual-time { padding: 10px 11px; }
  .vpm-manual-time__fields { grid-template-columns: 1fr; gap: 8px; }
}

/* 0.13.42 — monthly recurring task templates. */
.vpm-recurring-task {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid color-mix(in srgb, #8b5cf6 32%, var(--vpm-border));
  border-radius: 11px;
  background: color-mix(in srgb, #8b5cf6 5%, var(--vpm-panel));
}
.vpm-recurring-task legend {
  max-width: calc(100% - 12px);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 6px;
  color: var(--vpm-ink);
}
.vpm-recurring-task legend > .dashicons { color: #8b5cf6; }
.vpm-recurring-task legend > span:last-child,
.vpm-recurring-task legend strong,
.vpm-recurring-task legend small { display: block; }
.vpm-recurring-task legend strong { font-size: 11px; line-height: 1.25; }
.vpm-recurring-task legend small { margin-top: 2px; color: var(--vpm-muted); font-size: 9px; font-weight: 400; }
.vpm-recurring-task .vpm-recurring-task__toggle { width: fit-content; margin: 2px 0 0; cursor: pointer; }
.vpm-form-grid .vpm-recurring-task__toggle > input {
  width: 15px !important;
  min-width: 15px;
  height: 15px !important;
  min-height: 15px;
  margin: 0;
  padding: 0;
}
.vpm-recurring-task__fields {
  display: grid;
  grid-template-columns: minmax(150px, .55fr) minmax(170px, .65fr) minmax(0, 1.2fr);
  align-items: end;
  gap: 12px;
  margin-top: 11px;
}
.vpm-recurring-task__fields[hidden] { display: none !important; }
.vpm-recurring-task__fields > label { min-width: 0; display: grid; gap: 5px; }
.vpm-recurring-task__fields > label > span { color: var(--vpm-muted); font-size: 9px; font-weight: var(--vpm-font-weight-strong, 500); }
.vpm-recurring-task__fields > p { margin: 0 0 3px; color: var(--vpm-muted); font-size: 9px; line-height: 1.5; }
.vpm-recurring-task__fields > p b { display: block; margin-top: 3px; color: #8b5cf6; }
.vpm-task-card__meta.is-recurring { color: #7c3aed; }
.vpm-task-card__meta.is-recurring .dashicons { color: currentColor; }
.vpm-theme-dark .vpm-recurring-task {
  border-color: color-mix(in srgb, #a78bfa 44%, var(--vpm-border));
  background: color-mix(in srgb, #8b5cf6 9%, var(--vpm-panel));
}
.vpm-theme-dark .vpm-recurring-task legend > .dashicons,
.vpm-theme-dark .vpm-recurring-task__fields > p b { color: #c4b5fd; }
.vpm-theme-dark .vpm-task-card__meta.is-recurring { color: #c4b5fd; }
.vpm-recurring-due { display: inline-grid; gap: 1px; line-height: 1.15; }
.vpm-recurring-due strong { color: #7c3aed; font-size: 10px; font-weight: 700; }
.vpm-recurring-due small { color: var(--vpm-muted); font-size: 8px; white-space: nowrap; }
.vpm-theme-dark .vpm-recurring-due strong { color: #c4b5fd; }

@media (max-width: 700px) {
  .vpm-recurring-task { padding: 10px 11px; }
  .vpm-recurring-task__fields { grid-template-columns: 1fr; align-items: stretch; gap: 8px; }
}

/* 0.13.56 — keep the main task-creation action in the ValovIT brand colour. */
.vpm-task-form--new .vpm-form-footer .vpm-primary[type="submit"] {
  border-color: var(--vpm-valovit-action);
  background: var(--vpm-valovit-action);
  color: #fff;
  box-shadow: 0 5px 14px color-mix(in srgb, var(--vpm-valovit-action) 28%, transparent);
}
.vpm-task-form--new .vpm-form-footer .vpm-primary[type="submit"]:hover,
.vpm-task-form--new .vpm-form-footer .vpm-primary[type="submit"]:focus-visible {
  border-color: var(--vpm-valovit-action-strong);
  outline: none;
  background: var(--vpm-valovit-action-strong);
}

/* 0.13.57 — employee-only website audit and ValovIT plugin library. */
.vpm-internal-view { display: grid; gap: 16px; min-width: 0; }
.vpm-internal-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 22px;
  border: 1px solid var(--vpm-border);
  border-radius: var(--vpm-radius, 14px);
  background: linear-gradient(115deg, color-mix(in srgb, var(--vpm-brand) 8%, var(--vpm-panel)) 0%, var(--vpm-panel) 62%);
  box-shadow: var(--vpm-shadow-soft, 0 8px 22px rgba(15,23,42,.06));
}
.vpm-internal-hero__icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: color-mix(in srgb, var(--vpm-brand) 13%, var(--vpm-panel));
  color: var(--vpm-brand);
}
.vpm-internal-hero__icon .dashicons { width: 25px; height: 25px; font-size: 25px; }
.vpm-internal-hero h1 { margin: 4px 0 5px; color: var(--vpm-ink); font-size: clamp(20px, 2vw, 28px); line-height: 1.1; }
.vpm-internal-hero p { max-width: 820px; margin: 0; color: var(--vpm-muted); line-height: 1.5; }
.vpm-internal-hero .vpm-primary { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.vpm-internal-private,
.vpm-internal-type {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--vpm-brand) 10%, var(--vpm-panel));
  color: var(--vpm-brand);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.vpm-internal-private .dashicons { width: 12px; height: 12px; font-size: 12px; }
.vpm-internal-note {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 14px;
  border: 1px solid color-mix(in srgb, #0f9f72 28%, var(--vpm-border));
  border-radius: 11px;
  background: color-mix(in srgb, #0f9f72 6%, var(--vpm-panel));
  color: var(--vpm-ink);
}
.vpm-internal-note > .dashicons { color: #0f9f72; }
.vpm-internal-note strong,
.vpm-internal-note p { display: block; margin: 0; }
.vpm-internal-note p { margin-top: 2px; color: var(--vpm-muted); font-size: 11px; }
.vpm-audit-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(285px, 1fr)); align-items: start; gap: 14px; }
.vpm-audit-card,
.vpm-plugin-package {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--vpm-border);
  border-radius: var(--vpm-radius, 14px);
  background: var(--vpm-panel);
  box-shadow: var(--vpm-shadow-soft, 0 7px 20px rgba(15,23,42,.05));
}
.vpm-audit-card__image {
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  gap: 8px;
  overflow: hidden;
  border-bottom: 1px solid var(--vpm-border);
  background: color-mix(in srgb, var(--vpm-panel-alt) 86%, var(--vpm-panel));
  color: var(--vpm-muted);
}
.vpm-audit-card__image button,
.vpm-audit-card__image img { width: 100%; height: 100%; display: block; }
.vpm-audit-card__image button { position: relative; padding: 0; border: 0; background: transparent; cursor: zoom-in; }
.vpm-audit-card__image img { object-fit: cover; transition: transform .2s ease; }
.vpm-audit-card__image button > span { position: absolute; inset: auto 10px 10px auto; display: inline-flex; align-items: center; gap: 5px; padding: 6px 9px; border: 1px solid rgba(255,255,255,.24); border-radius: 999px; background: rgba(8,15,28,.78); color: #fff; box-shadow: 0 5px 15px rgba(0,0,0,.18); font-size: 9px; font-weight: 750; opacity: 0; transform: translateY(3px); transition: opacity .16s, transform .16s; }
.vpm-audit-card__image button > span .dashicons { width: 13px; height: 13px; font-size: 13px; }
.vpm-audit-card__image button:hover img,
.vpm-audit-card__image button:focus-visible img { transform: scale(1.025); }
.vpm-audit-card__image button:hover > span,
.vpm-audit-card__image button:focus-visible > span { opacity: 1; transform: none; }
.vpm-audit-card__image > .dashicons { width: 35px; height: 35px; margin-bottom: -26px; font-size: 35px; opacity: .65; }
.vpm-audit-card__body { display: grid; gap: 9px; padding: 13px; }
.vpm-audit-card__body > header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.vpm-audit-card__body > header > div { display: flex; gap: 5px; }
.vpm-audit-card h2 { margin: 0; color: var(--vpm-ink); font-size: 17px; line-height: 1.25; }
.vpm-audit-card__reference,
.vpm-audit-card__reference a,
.vpm-audit-card__reference span { min-width: 0; display: flex; align-items: center; gap: 5px; color: var(--vpm-brand); font-size: 11px; overflow-wrap: anywhere; }
.vpm-audit-card__reference .dashicons { width: 14px; height: 14px; flex: 0 0 auto; font-size: 14px; }
.vpm-audit-card section { padding: 9px 10px; border-radius: 9px; background: color-mix(in srgb, var(--vpm-panel-alt) 80%, var(--vpm-panel)); }
.vpm-audit-card section strong { display: block; margin-bottom: 4px; color: var(--vpm-ink); font-size: 10px; }
.vpm-audit-card section p { display: -webkit-box; margin: 0; overflow: hidden; color: var(--vpm-muted); font-size: 11px; line-height: 1.45; white-space: pre-wrap; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.vpm-audit-card footer { display: flex; justify-content: space-between; gap: 10px; padding-top: 4px; color: var(--vpm-muted); font-size: 9px; }

.vpm-dialog--audit-lightbox {
  width: min(1500px, 96vw);
  height: min(920px, 94vh);
  max-height: 94vh;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 18px;
  background: #0b1019;
}
.vpm-audit-lightbox { height: 100%; min-height: 0; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; color: #eef4ff; }
.vpm-audit-lightbox > header { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 13px 15px 13px 18px; border-bottom: 1px solid rgba(255,255,255,.12); background: rgba(15,22,34,.96); }
.vpm-audit-lightbox > header > div:first-child { min-width: 0; }
.vpm-audit-lightbox > header > div:last-child { flex: 0 0 auto; display: flex; align-items: center; gap: 7px; }
.vpm-audit-lightbox > header small { display: block; margin-bottom: 3px; color: #96a5bb; font-size: 9px; font-weight: 750; letter-spacing: .065em; text-transform: uppercase; }
.vpm-audit-lightbox > header h2 { margin: 0; overflow: hidden; color: #fff; font-size: 16px; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.vpm-audit-lightbox > header .vpm-secondary,
.vpm-audit-lightbox > header .vpm-close { border-color: rgba(255,255,255,.16); background: rgba(255,255,255,.06); color: #eef4ff; }
.vpm-audit-lightbox > header .vpm-secondary { min-height: 35px; display: inline-flex; align-items: center; gap: 5px; }
.vpm-audit-lightbox > header .vpm-secondary:hover,
.vpm-audit-lightbox > header .vpm-close:hover { background: rgba(255,255,255,.12); color: #fff; }
.vpm-audit-lightbox__stage { position: relative; min-height: 0; display: grid; overflow: hidden; background: radial-gradient(circle at 50% 35%, #202b3c 0, #101722 48%, #070b11 100%); }
.vpm-audit-lightbox__canvas { min-width: 0; min-height: 0; display: grid; place-items: center; overflow: auto; padding: 20px 62px; overscroll-behavior: contain; }
.vpm-audit-lightbox__canvas img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; border-radius: 6px; background: #fff; box-shadow: 0 18px 50px rgba(0,0,0,.4); }
.vpm-audit-lightbox.is-zoomed .vpm-audit-lightbox__canvas { display: block; }
.vpm-audit-lightbox.is-zoomed .vpm-audit-lightbox__canvas img { max-width: none; max-height: none; margin: 0 auto; cursor: zoom-out; }
.vpm-audit-lightbox__step { position: absolute; z-index: 2; top: 50%; width: 42px; height: 58px; display: grid; place-items: center; padding: 0; border: 1px solid rgba(255,255,255,.14); border-radius: 12px; background: rgba(8,14,23,.72); color: #fff; box-shadow: 0 9px 24px rgba(0,0,0,.24); cursor: pointer; transform: translateY(-50%); transition: background .15s, transform .15s; }
.vpm-audit-lightbox__step:hover { background: rgba(35,49,69,.95); transform: translateY(-50%) scale(1.04); }
.vpm-audit-lightbox__step.is-prev { left: 11px; }
.vpm-audit-lightbox__step.is-next { right: 11px; }
.vpm-audit-lightbox__step .dashicons { width: 19px; height: 19px; font-size: 19px; }
.vpm-audit-lightbox > footer { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 18px; padding: 11px 18px 13px; border-top: 1px solid rgba(255,255,255,.12); background: rgba(15,22,34,.98); color: #aab6c8; font-size: 10px; }
.vpm-audit-lightbox > footer > div:first-child { min-width: 0; max-height: 86px; overflow: auto; }
.vpm-audit-lightbox > footer > div:last-child { display: grid; gap: 3px; text-align: right; white-space: nowrap; }
.vpm-audit-lightbox > footer a,
.vpm-audit-lightbox > footer span { display: inline-flex; align-items: center; gap: 5px; color: #8cc8ff; }
.vpm-audit-lightbox > footer p { margin: 5px 0 0; color: #b8c3d2; line-height: 1.45; white-space: pre-wrap; }
.vpm-audit-lightbox > footer p strong { color: #fff; }
.vpm-icon-button {
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--vpm-border);
  border-radius: 8px;
  background: var(--vpm-panel);
  color: var(--vpm-muted);
}
.vpm-icon-button .dashicons { width: 15px; height: 15px; font-size: 15px; }
.vpm-icon-button:hover { border-color: var(--vpm-brand); color: var(--vpm-brand); }
.vpm-icon-button.is-danger:hover { border-color: #e74c5b; color: #e74c5b; }
.vpm-code-library-toolbar {
  display: grid;
  gap: 11px;
  padding: 13px;
  border: 1px solid var(--vpm-border);
  border-radius: var(--vpm-radius, 14px);
  background: var(--vpm-panel);
  box-shadow: var(--vpm-shadow-soft, 0 7px 20px rgba(15,23,42,.05));
}
.vpm-code-library-toolbar__filters { display: grid; grid-template-columns: minmax(260px, 1.55fr) repeat(3, minmax(170px, .75fr)); gap: 9px; }
.vpm-code-library-toolbar__filters > label {
  min-width: 0;
  height: 40px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  border: 1px solid var(--vpm-border);
  border-radius: 9px;
  background: color-mix(in srgb, var(--vpm-panel-alt) 54%, var(--vpm-panel));
}
.vpm-code-library-toolbar__filters > label:focus-within { border-color: color-mix(in srgb, var(--vpm-brand) 58%, var(--vpm-border)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--vpm-brand) 9%, transparent); }
.vpm-code-library-toolbar__filters .dashicons { width: 15px; height: 15px; flex: 0 0 auto; color: var(--vpm-muted); font-size: 15px; line-height: 15px; }
.vpm-code-library-toolbar__filters input,
.vpm-code-library-toolbar__filters select { min-width: 0; width: 100%; height: 38px; padding: 0; border: 0; outline: 0; background: transparent; color: var(--vpm-ink); box-shadow: none; font-size: 11px; }
.vpm-code-library-toolbar__filters select { cursor: pointer; }
.vpm-code-library-toolbar__meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 10px; border-top: 1px solid var(--vpm-border); }
.vpm-code-library-toolbar__meta > span { color: var(--vpm-muted); font-size: 10px; white-space: nowrap; }
.vpm-code-library-toolbar__meta > span b { color: var(--vpm-ink); }
.vpm-code-library-toolbar__meta > .vpm-secondary { min-height: 34px; display: inline-flex; align-items: center; gap: 5px; margin-left: auto; }
.vpm-code-library-views { display: inline-flex; align-items: center; gap: 3px; padding: 3px; border: 1px solid var(--vpm-border); border-radius: 9px; background: var(--vpm-panel-alt); }
.vpm-code-library-views button { min-height: 29px; display: inline-flex; align-items: center; gap: 5px; padding: 5px 9px; border: 0; border-radius: 7px; background: transparent; color: var(--vpm-muted); font-size: 9px; font-weight: 700; cursor: pointer; }
.vpm-code-library-views button:hover { color: var(--vpm-ink); }
.vpm-code-library-views button.is-active { background: var(--vpm-panel); color: var(--vpm-brand); box-shadow: 0 1px 4px rgba(15,23,42,.09); }
.vpm-code-library-views .dashicons { width: 14px; height: 14px; font-size: 14px; line-height: 14px; }
.vpm-plugin-library { display: grid; gap: 14px; }
.vpm-plugin-library.is-cards { grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); align-items: start; }
.vpm-plugin-library.is-compact { gap: 0; overflow: hidden; border: 1px solid var(--vpm-border); border-radius: var(--vpm-radius, 14px); background: var(--vpm-panel); box-shadow: var(--vpm-shadow-soft, 0 7px 20px rgba(15,23,42,.05)); }
.vpm-code-package-row {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(230px, 1.45fr) minmax(140px, .72fr) minmax(70px, .36fr) minmax(145px, .75fr) minmax(145px, .72fr) minmax(125px, .65fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--vpm-border);
  background: var(--vpm-panel);
}
.vpm-code-package-row:last-child { border-bottom: 0; }
.vpm-code-package-row:not(.vpm-code-package-row--header):hover { background: color-mix(in srgb, var(--vpm-brand) 2.5%, var(--vpm-panel)); }
.vpm-code-package-row--header { min-height: 36px; padding-top: 7px; padding-bottom: 7px; background: color-mix(in srgb, var(--vpm-panel-alt) 78%, var(--vpm-panel)); color: var(--vpm-muted); font-size: 8px; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; }
.vpm-code-package-row__identity { min-width: 0; display: grid; grid-template-columns: 36px minmax(0, 1fr); align-items: center; gap: 10px; }
.vpm-code-package-row__icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: color-mix(in srgb, var(--vpm-brand) 10%, var(--vpm-panel)); color: var(--vpm-brand); }
.vpm-code-package-row__icon .dashicons { width: 17px; height: 17px; font-size: 17px; line-height: 17px; }
.vpm-code-package-row__identity small,
.vpm-code-package-row__identity strong,
.vpm-code-package-row__updated b,
.vpm-code-package-row__updated small,
.vpm-code-package-row__file b,
.vpm-code-package-row__file small { min-width: 0; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vpm-code-package-row__identity small { margin-bottom: 3px; color: var(--vpm-muted); font-size: 8px; letter-spacing: .035em; text-transform: uppercase; }
.vpm-code-package-row__identity strong { color: var(--vpm-ink); font-size: 11px; }
.vpm-code-package-row > .vpm-plugin-package__type { margin: 0; }
.vpm-code-package-row > .vpm-plugin-package__version { width: fit-content; }
.vpm-code-package-row__projects { min-width: 0; display: grid; grid-template-columns: 23px minmax(0, 1fr); align-items: center; gap: 6px; color: var(--vpm-muted); font-size: 9px; }
.vpm-code-package-row__projects b { width: 23px; height: 23px; display: grid; place-items: center; border-radius: 50%; background: color-mix(in srgb, var(--vpm-brand) 10%, var(--vpm-panel)); color: var(--vpm-brand); font-size: 8px; }
.vpm-code-package-row__projects > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vpm-code-package-row__updated,
.vpm-code-package-row__file { min-width: 0; }
.vpm-code-package-row__updated b,
.vpm-code-package-row__file b { color: var(--vpm-ink); font-size: 9px; font-weight: 650; }
.vpm-code-package-row__updated small,
.vpm-code-package-row__file small { margin-top: 3px; color: var(--vpm-muted); font-size: 8px; }
.vpm-code-package-actions { min-width: 0; display: flex; align-items: center; justify-content: flex-end; gap: 5px; }
.vpm-code-package-actions > a,
.vpm-code-package-actions > button { min-height: 30px; display: inline-flex; align-items: center; gap: 4px; padding: 5px 7px; text-decoration: none; white-space: nowrap; }
.vpm-code-package-actions .dashicons { width: 14px; height: 14px; font-size: 14px; line-height: 14px; }
.vpm-code-package-actions button b { min-width: 17px; height: 17px; display: inline-grid; place-items: center; padding: 0 4px; border-radius: 999px; background: color-mix(in srgb, var(--vpm-brand) 10%, var(--vpm-panel)); color: var(--vpm-brand); font-size: 7px; }
.vpm-code-action-label { font-size: 8px; }
.vpm-code-library-pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 13px; border: 1px solid var(--vpm-border); border-radius: 11px; background: var(--vpm-panel); color: var(--vpm-muted); font-size: 9px; }
.vpm-code-library-pagination > span b { color: var(--vpm-ink); }
.vpm-code-library-pagination > label { display: flex; align-items: center; gap: 6px; }
.vpm-code-library-pagination select { min-height: 31px; padding: 4px 24px 4px 8px; border: 1px solid var(--vpm-border); border-radius: 7px; background: var(--vpm-panel); color: var(--vpm-ink); font-size: 9px; }
.vpm-code-library-pagination > div { display: flex; align-items: center; gap: 8px; }
.vpm-code-library-pagination .vpm-secondary { min-height: 31px; display: inline-flex; align-items: center; gap: 4px; }
.vpm-code-library-pagination .dashicons { width: 13px; height: 13px; font-size: 13px; }
.vpm-plugin-package { padding: 17px; }
.vpm-plugin-package > header { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.vpm-plugin-package__icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: color-mix(in srgb, var(--vpm-brand) 11%, var(--vpm-panel)); color: var(--vpm-brand); }
.vpm-plugin-package > header small { color: var(--vpm-muted); font-size: 9px; text-transform: uppercase; letter-spacing: .05em; }
.vpm-plugin-package h2 { margin: 2px 0 0; color: var(--vpm-ink); font-size: 17px; }
.vpm-plugin-package__type { width: fit-content; display: inline-flex; align-items: center; gap: 5px; margin-top: 6px; padding: 4px 7px; border: 1px solid color-mix(in srgb, var(--vpm-brand) 24%, var(--vpm-border)); border-radius: 999px; background: color-mix(in srgb, var(--vpm-brand) 6%, var(--vpm-panel)); color: var(--vpm-brand); font-size: 9px; font-weight: 700; }
.vpm-plugin-package__type .dashicons { width: 12px; height: 12px; font-size: 12px; line-height: 12px; }
.vpm-plugin-package__version { padding: 5px 9px; border-radius: 999px; background: color-mix(in srgb, #0f9f72 10%, var(--vpm-panel)); color: #0f9f72; font-size: 10px; font-weight: 700; }
.vpm-plugin-package > p { margin: 13px 0; color: var(--vpm-muted); font-size: 12px; line-height: 1.55; white-space: pre-wrap; }
.vpm-plugin-package > p.is-muted { font-style: italic; }
.vpm-plugin-package__dates { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0 0 13px; }
.vpm-plugin-package__dates span { min-width: 0; padding: 9px 10px; border: 1px solid var(--vpm-border); border-radius: 9px; background: color-mix(in srgb, var(--vpm-panel-alt) 72%, var(--vpm-panel)); color: var(--vpm-muted); font-size: 9px; line-height: 1.45; overflow-wrap: anywhere; }
.vpm-plugin-package__dates b { display: block; margin-bottom: 2px; color: var(--vpm-ink); font-size: 9px; }
.vpm-plugin-package > section { display: grid; gap: 8px; padding: 12px 0; border-top: 1px solid var(--vpm-border); }
.vpm-plugin-package > section > strong { color: var(--vpm-ink); font-size: 10px; }
.vpm-plugin-projects { display: flex; flex-wrap: wrap; gap: 6px; }
.vpm-plugin-projects span { display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; border: 1px solid var(--vpm-border); border-radius: 999px; color: var(--vpm-ink); font-size: 9px; }
.vpm-plugin-projects i { width: 7px; height: 7px; border-radius: 50%; background: var(--vpm-project-color); }
.vpm-plugin-projects em { color: var(--vpm-muted); font-size: 10px; }
.vpm-plugin-package > footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 13px; border-top: 1px solid var(--vpm-border); }
.vpm-plugin-package > footer > div { min-width: 0; display: flex; align-items: center; gap: 8px; }
.vpm-plugin-package > footer > div:first-child > .dashicons { color: var(--vpm-brand); }
.vpm-plugin-package > footer strong,
.vpm-plugin-package > footer small { min-width: 0; display: block; overflow-wrap: anywhere; }
.vpm-plugin-package > footer strong { color: var(--vpm-ink); font-size: 10px; }
.vpm-plugin-package > footer small { margin-top: 2px; color: var(--vpm-muted); font-size: 9px; }
.vpm-plugin-package > footer .vpm-primary,
.vpm-plugin-package > footer .vpm-secondary { min-height: 32px; display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; text-decoration: none; }
.vpm-plugin-package > footer button[data-action="plugin-version-history"] b { min-width: 19px; height: 19px; display: inline-grid; place-items: center; padding: 0 5px; border-radius: 999px; background: color-mix(in srgb, var(--vpm-brand) 12%, var(--vpm-panel)); color: var(--vpm-brand); font-size: 8px; }
.vpm-plugin-package.is-card { display: grid; grid-template-rows: auto auto auto auto 1fr; padding: 14px; }
.vpm-plugin-package.is-card h2 { font-size: 14px; }
.vpm-plugin-package.is-card > p { min-height: 38px; display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-size: 10px; }
.vpm-plugin-package.is-card .vpm-plugin-package__dates { grid-template-columns: 1fr; }
.vpm-plugin-package.is-card .vpm-plugin-package__dates span:first-child { display: none; }
.vpm-plugin-package.is-card > section { align-content: start; }
.vpm-plugin-package.is-card > footer { align-items: stretch; flex-direction: column; }
.vpm-plugin-package.is-card > footer > div:first-child { display: none; }
.vpm-plugin-package.is-card .vpm-code-package-actions { justify-content: flex-start; flex-wrap: wrap; }
.vpm-dialog--internal { width: min(880px, calc(100vw - 32px)); max-width: 880px; overflow: hidden; background: var(--vpm-panel); }
.vpm-dialog--internal:has(.vpm-plugin-history),
.vpm-dialog--internal:has(.vpm-plugin-diff) { width: min(1100px, calc(100vw - 32px)); max-width: 1100px; }
.vpm-internal-form { max-height: min(880px, calc(100dvh - 48px)); display: flex; flex-direction: column; overflow: hidden; color: var(--vpm-ink); background: var(--vpm-panel); }
.vpm-internal-form .vpm-form-header { min-height: 104px; flex: 0 0 auto; display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding: 22px 28px 20px; border-bottom: 1px solid var(--vpm-border); background: var(--vpm-panel); }
.vpm-internal-form .vpm-form-header > div { min-width: 0; }
.vpm-internal-form .vpm-form-header small { display: block; margin-bottom: 5px; color: var(--vpm-muted); font-size: 9px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.vpm-internal-form .vpm-form-header h2 { margin: 0; color: var(--vpm-ink); font-size: 25px; line-height: 1.2; letter-spacing: -.025em; }
.vpm-internal-form .vpm-form-header p { margin: 8px 0 0; color: var(--vpm-muted); font-size: 12px; line-height: 1.5; }
.vpm-internal-form .vpm-form-header .vpm-close { margin: 0; background: var(--vpm-panel); }
.vpm-internal-form__body { min-height: 0; display: grid; gap: 18px; padding: 22px 28px 26px; overflow-y: auto; overscroll-behavior: contain; }
.vpm-internal-form > .vpm-form-footer { flex: 0 0 auto; padding: 16px 28px 24px; background: var(--vpm-panel-alt); }
.vpm-internal-upload { min-height: 76px; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 12px; padding: 13px; border: 1px dashed color-mix(in srgb, var(--vpm-brand) 50%, var(--vpm-border)); border-radius: 11px; background: color-mix(in srgb, var(--vpm-brand) 4%, var(--vpm-panel)); cursor: pointer; }
.vpm-internal-upload > .dashicons { width: 27px; height: 27px; color: var(--vpm-brand); font-size: 27px; }
.vpm-internal-upload strong,
.vpm-internal-upload small { display: block; }
.vpm-internal-upload small { margin-top: 3px; color: var(--vpm-muted); font-size: 10px; overflow-wrap: anywhere; }
.vpm-internal-upload input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.vpm-internal-form__preview { width: 100%; max-height: 260px; display: block; object-fit: contain; border: 1px solid var(--vpm-border); border-radius: 11px; background: var(--vpm-panel-alt); }
.vpm-internal-form__preview[hidden] { display: none; }
.vpm-audit-dropzone { position: relative; grid-template-columns: auto minmax(0, 1fr) auto; transition: border-color .15s, background .15s, box-shadow .15s; }
.vpm-audit-dropzone__hint { align-self: center; padding: 5px 8px; border: 1px solid var(--vpm-border); border-radius: 7px; background: var(--vpm-panel); color: var(--vpm-muted); font-size: 9px; font-weight: 750; letter-spacing: .04em; white-space: nowrap; }
.vpm-audit-dropzone.is-over { border-color: var(--vpm-brand); background: color-mix(in srgb, var(--vpm-brand) 10%, var(--vpm-panel)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--vpm-brand) 12%, transparent); }
.vpm-audit-dropzone.has-file { border-style: solid; border-color: color-mix(in srgb, #0f9f72 55%, var(--vpm-border)); background: color-mix(in srgb, #0f9f72 6%, var(--vpm-panel)); }
.vpm-audit-pending-preview { max-height: 360px; }
.vpm-package-type-field { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 13px; padding: 14px 15px; border: 1px solid color-mix(in srgb, var(--vpm-brand) 28%, var(--vpm-border)); border-radius: 12px; background: color-mix(in srgb, var(--vpm-brand) 5%, var(--vpm-panel)); }
.vpm-package-type-field__icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: color-mix(in srgb, var(--vpm-brand) 12%, var(--vpm-panel)); color: var(--vpm-brand); }
.vpm-package-type-field__icon .dashicons { width: 20px; height: 20px; font-size: 20px; line-height: 20px; }
.vpm-package-type-field > label { min-width: 0; display: grid; grid-template-columns: minmax(170px, 260px) minmax(0, 1fr); align-items: center; gap: 4px 13px; }
.vpm-package-type-field > label > span { grid-column: 1 / -1; color: var(--vpm-ink); font-size: 10px; font-weight: 700; }
.vpm-package-type-field select { width: 100%; min-height: 38px; border: 1px solid var(--vpm-border-strong); border-radius: 9px; background: var(--vpm-panel); color: var(--vpm-ink); }
.vpm-package-type-field small { color: var(--vpm-muted); font-size: 9px; line-height: 1.45; }
.vpm-plugin-detected-meta { overflow: hidden; border: 1px solid var(--vpm-border); border-radius: 12px; background: color-mix(in srgb, var(--vpm-panel-alt) 72%, var(--vpm-panel)); }
.vpm-plugin-detected-meta > header { display: flex; align-items: center; gap: 10px; padding: 12px 15px; border-bottom: 1px solid var(--vpm-border); }
.vpm-plugin-detected-meta > header > .dashicons { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; background: color-mix(in srgb, var(--vpm-brand) 11%, var(--vpm-panel)); color: var(--vpm-brand); font-size: 16px; line-height: 28px; }
.vpm-plugin-detected-meta > header strong,
.vpm-plugin-detected-meta > header small { display: block; }
.vpm-plugin-detected-meta > header strong { color: var(--vpm-ink); font-size: 11px; }
.vpm-plugin-detected-meta > header small { margin-top: 2px; color: var(--vpm-muted); font-size: 9px; line-height: 1.45; }
.vpm-plugin-detected-meta .vpm-form-grid { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr) minmax(120px, .55fr); gap: 10px; padding: 13px 15px 15px; }
.vpm-plugin-detected-meta .vpm-form-grid > label.wide { grid-column: auto; }
.vpm-plugin-detected-meta input[readonly] { cursor: default; background: color-mix(in srgb, var(--vpm-panel-alt) 84%, var(--vpm-panel)); color: var(--vpm-ink); }
.vpm-plugin-description { display: grid; gap: 6px; }
.vpm-plugin-description > span { color: var(--vpm-muted); font-size: 10px; font-weight: 600; }
.vpm-plugin-description textarea { width: 100%; min-height: 92px; padding: 11px 12px; resize: vertical; border: 1px solid var(--vpm-border-strong); border-radius: 10px; outline: 0; background: var(--vpm-panel); color: var(--vpm-ink); font-size: 12px; line-height: 1.55; }
.vpm-plugin-description textarea:focus { border-color: color-mix(in srgb, var(--vpm-brand) 55%, var(--vpm-border)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--vpm-brand) 10%, transparent); }
.vpm-plugin-description small { color: var(--vpm-muted); font-size: 9px; }
.vpm-plugin-project-picker { min-height: 360px; flex: 0 0 360px; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--vpm-border); border-radius: 12px; background: var(--vpm-panel); }
.vpm-plugin-project-picker > header { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 310px); align-items: center; gap: 16px; padding: 14px 15px; border-bottom: 1px solid var(--vpm-border); background: color-mix(in srgb, var(--vpm-panel-alt) 75%, var(--vpm-panel)); }
.vpm-plugin-project-picker > header strong,
.vpm-plugin-project-picker > header small { display: block; }
.vpm-plugin-project-picker > header strong { color: var(--vpm-ink); font-size: 12px; }
.vpm-plugin-project-picker > header small { margin-top: 2px; color: var(--vpm-muted); font-size: 9px; }
.vpm-plugin-project-picker > header strong b { min-width: 22px; height: 22px; display: inline-grid; place-items: center; margin-left: 5px; padding: 0 6px; border-radius: 999px; background: color-mix(in srgb, var(--vpm-brand) 11%, var(--vpm-panel)); color: var(--vpm-brand); font-size: 9px; }
.vpm-plugin-project-picker > header label { min-width: 210px; display: flex; align-items: center; gap: 7px; padding: 0 9px; border: 1px solid var(--vpm-border); border-radius: 8px; background: var(--vpm-panel); }
.vpm-plugin-project-picker > header label .dashicons { width: 14px; height: 14px; color: var(--vpm-muted); font-size: 14px; }
.vpm-plugin-project-picker > header input { min-width: 0; height: 34px; padding: 0; border: 0; background: transparent; box-shadow: none; }
.vpm-plugin-project-picker > div { min-height: 0; flex: 1 1 auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start; gap: 10px; padding: 13px; overflow-y: auto; scrollbar-gutter: stable; }
.vpm-plugin-project-picker > div > label { min-width: 0; min-height: 62px; display: grid; grid-template-columns: auto auto minmax(0, 1fr); align-items: center; gap: 10px; padding: 11px 12px; border: 1px solid var(--vpm-border); border-radius: 10px; background: var(--vpm-panel); cursor: pointer; transition: border-color .15s, background .15s, box-shadow .15s; }
.vpm-plugin-project-picker > div > label:hover { border-color: color-mix(in srgb, var(--vpm-brand) 35%, var(--vpm-border)); background: color-mix(in srgb, var(--vpm-brand) 3%, var(--vpm-panel)); }
.vpm-plugin-project-picker > div > label:has(input:checked) { border-color: color-mix(in srgb, var(--vpm-brand) 55%, var(--vpm-border)); background: color-mix(in srgb, var(--vpm-brand) 7%, var(--vpm-panel)); box-shadow: inset 3px 0 0 var(--vpm-brand); }
.vpm-plugin-project-picker > div > label[hidden] { display: none; }
.vpm-plugin-project-picker > div input { width: 15px !important; min-width: 15px; height: 15px !important; min-height: 15px; margin: 0; }
.vpm-plugin-project-picker > div i { width: 9px; height: 9px; border-radius: 50%; background: var(--vpm-project-color); }
.vpm-plugin-project-picker > div strong,
.vpm-plugin-project-picker > div small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vpm-plugin-project-picker > div strong { color: var(--vpm-ink); font-size: 11px; }
.vpm-plugin-project-picker > div small { margin-top: 3px; color: var(--vpm-muted); font-size: 9px; }
.vpm-plugin-change-notes { padding: 13px; border: 1px solid color-mix(in srgb, var(--vpm-brand) 24%, var(--vpm-border)); border-radius: 11px; background: color-mix(in srgb, var(--vpm-brand) 4%, var(--vpm-panel)); }
.vpm-plugin-history__type { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 12px; padding: 13px 14px; border: 1px solid color-mix(in srgb, var(--vpm-brand) 26%, var(--vpm-border)); border-radius: 11px; background: color-mix(in srgb, var(--vpm-brand) 5%, var(--vpm-panel)); }
.vpm-plugin-history__type > .dashicons { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: color-mix(in srgb, var(--vpm-brand) 12%, var(--vpm-panel)); color: var(--vpm-brand); font-size: 18px; line-height: 34px; }
.vpm-plugin-history__type small,
.vpm-plugin-history__type strong { display: block; }
.vpm-plugin-history__type small { color: var(--vpm-muted); font-size: 9px; text-transform: uppercase; letter-spacing: .04em; }
.vpm-plugin-history__type strong { margin-top: 3px; color: var(--vpm-ink); font-size: 13px; }
.vpm-plugin-history__type p { margin: 3px 0 0; color: var(--vpm-muted); font-size: 9px; }
.vpm-plugin-history__summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.vpm-plugin-history__summary > div,
.vpm-plugin-diff__details > div { min-width: 0; padding: 13px 14px; border: 1px solid var(--vpm-border); border-radius: 11px; background: color-mix(in srgb, var(--vpm-panel-alt) 72%, var(--vpm-panel)); }
.vpm-plugin-history__summary span,
.vpm-plugin-history__summary strong,
.vpm-plugin-history__summary small,
.vpm-plugin-diff__details span,
.vpm-plugin-diff__details strong { display: block; }
.vpm-plugin-history__summary span,
.vpm-plugin-diff__details span { color: var(--vpm-muted); font-size: 9px; text-transform: uppercase; letter-spacing: .04em; }
.vpm-plugin-history__summary strong,
.vpm-plugin-diff__details strong { margin-top: 5px; color: var(--vpm-ink); font-size: 13px; overflow-wrap: anywhere; }
.vpm-plugin-history__summary small { margin-top: 3px; color: var(--vpm-muted); font-size: 9px; }
.vpm-plugin-revisions { display: grid; gap: 0; }
.vpm-plugin-revision { min-width: 0; display: grid; grid-template-columns: 38px minmax(0, 1fr); }
.vpm-plugin-revision__rail { position: relative; display: flex; flex-direction: column; align-items: center; }
.vpm-plugin-revision__rail span { z-index: 1; width: 28px; height: 28px; display: grid; place-items: center; border: 2px solid var(--vpm-border); border-radius: 50%; background: var(--vpm-panel); color: var(--vpm-muted); font-size: 9px; font-weight: 750; }
.vpm-plugin-revision__rail i { position: absolute; top: 27px; bottom: -1px; width: 2px; background: var(--vpm-border); }
.vpm-plugin-revision:last-child .vpm-plugin-revision__rail i { display: none; }
.vpm-plugin-revision.is-current .vpm-plugin-revision__rail span { border-color: var(--vpm-brand); background: var(--vpm-brand); color: #fff; }
.vpm-plugin-revision__body { min-width: 0; display: grid; gap: 12px; margin: 0 0 15px 7px; padding: 15px; border: 1px solid var(--vpm-border); border-radius: 12px; background: var(--vpm-panel); box-shadow: var(--vpm-shadow-soft, 0 7px 20px rgba(15,23,42,.05)); }
.vpm-plugin-revision.is-current .vpm-plugin-revision__body { border-color: color-mix(in srgb, var(--vpm-brand) 48%, var(--vpm-border)); box-shadow: inset 3px 0 0 var(--vpm-brand), var(--vpm-shadow-soft, 0 7px 20px rgba(15,23,42,.05)); }
.vpm-plugin-revision__body > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.vpm-plugin-revision__body > header > div { display: flex; align-items: center; gap: 7px; }
.vpm-plugin-revision__body > header em { padding: 4px 7px; border-radius: 999px; background: color-mix(in srgb, var(--vpm-brand) 10%, var(--vpm-panel)); color: var(--vpm-brand); font-size: 8px; font-style: normal; font-weight: 700; text-transform: uppercase; }
.vpm-plugin-revision__body time { color: var(--vpm-muted); font-size: 10px; }
.vpm-plugin-revision__meta { display: grid; grid-template-columns: minmax(120px, .75fr) minmax(90px, .45fr) minmax(180px, 1fr); gap: 8px; }
.vpm-plugin-revision__meta span { min-width: 0; padding: 8px 9px; border-radius: 8px; background: color-mix(in srgb, var(--vpm-panel-alt) 72%, var(--vpm-panel)); color: var(--vpm-ink); font-size: 10px; overflow-wrap: anywhere; }
.vpm-plugin-revision__meta b { display: block; margin-bottom: 3px; color: var(--vpm-muted); font-size: 8px; text-transform: uppercase; }
.vpm-plugin-revision__body > section { padding: 10px 11px; border-left: 3px solid color-mix(in srgb, var(--vpm-brand) 55%, var(--vpm-border)); border-radius: 0 8px 8px 0; background: color-mix(in srgb, var(--vpm-brand) 4%, var(--vpm-panel)); }
.vpm-plugin-revision__body > section strong { color: var(--vpm-ink); font-size: 9px; }
.vpm-plugin-revision__body > section p { margin: 4px 0 0; color: var(--vpm-muted); font-size: 10px; line-height: 1.5; white-space: pre-wrap; }
.vpm-plugin-revision__body > footer { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.vpm-plugin-revision__body > footer a,
.vpm-plugin-revision__body > footer button { min-height: 34px; display: inline-flex; align-items: center; gap: 5px; text-decoration: none; }
.vpm-plugin-diff__details { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.vpm-plugin-diff__notes { padding: 13px 14px; border-left: 3px solid var(--vpm-brand); border-radius: 0 9px 9px 0; background: color-mix(in srgb, var(--vpm-brand) 5%, var(--vpm-panel)); }
.vpm-plugin-diff__notes strong { color: var(--vpm-ink); font-size: 10px; }
.vpm-plugin-diff__notes p { margin: 4px 0 0; color: var(--vpm-muted); font-size: 11px; line-height: 1.55; white-space: pre-wrap; }
.vpm-plugin-diff__summary { display: flex; flex-wrap: wrap; gap: 7px; }
.vpm-plugin-diff__summary span { padding: 6px 9px; border: 1px solid var(--vpm-border); border-radius: 999px; color: var(--vpm-muted); font-size: 9px; font-weight: 700; }
.vpm-plugin-diff__summary .is-added { border-color: color-mix(in srgb, #0f9f72 35%, var(--vpm-border)); color: #0f9f72; }
.vpm-plugin-diff__summary .is-modified { border-color: color-mix(in srgb, #d8860b 35%, var(--vpm-border)); color: #b36c00; }
.vpm-plugin-diff__summary .is-removed { border-color: color-mix(in srgb, #e74c5b 35%, var(--vpm-border)); color: #d93b4b; }
.vpm-plugin-diff-files { display: grid; gap: 8px; }
.vpm-plugin-diff-file { min-width: 0; overflow: hidden; border: 1px solid var(--vpm-border); border-radius: 10px; background: var(--vpm-panel); }
.vpm-plugin-diff-file > summary { min-width: 0; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 9px; padding: 11px 12px; cursor: pointer; }
.vpm-plugin-diff-file > summary::marker { color: var(--vpm-muted); }
.vpm-plugin-diff-file > summary strong { min-width: 0; color: var(--vpm-ink); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vpm-plugin-diff-file > summary small { color: var(--vpm-muted); font-size: 9px; white-space: nowrap; }
.vpm-plugin-diff-status { padding: 4px 7px; border-radius: 999px; background: color-mix(in srgb, var(--vpm-brand) 9%, var(--vpm-panel)); color: var(--vpm-brand); font-size: 8px; font-weight: 750; text-transform: uppercase; }
.vpm-plugin-diff-file.is-added .vpm-plugin-diff-status { background: color-mix(in srgb, #0f9f72 10%, var(--vpm-panel)); color: #0f9f72; }
.vpm-plugin-diff-file.is-removed .vpm-plugin-diff-status { background: color-mix(in srgb, #e74c5b 10%, var(--vpm-panel)); color: #d93b4b; }
.vpm-plugin-diff-file pre { max-height: 480px; margin: 0; padding: 15px; overflow: auto; border-top: 1px solid #26354f; background: #0f172a; color: #e2e8f0; font: 10px/1.55 ui-monospace, SFMono-Regular, Consolas, monospace; white-space: pre; tab-size: 2; }
.vpm-plugin-binary-change { display: flex; align-items: center; gap: 8px; padding: 14px; border-top: 1px solid var(--vpm-border); background: color-mix(in srgb, var(--vpm-panel-alt) 72%, var(--vpm-panel)); color: var(--vpm-muted); font-size: 10px; }
.vpm-plugin-diff__omitted { margin: 0; color: var(--vpm-muted); font-size: 10px; text-align: center; }
.vpm-theme-dark .vpm-internal-note { border-color: color-mix(in srgb, #35d49f 35%, var(--vpm-border)); }
.vpm-theme-dark .vpm-plugin-package__version { color: #5ee0b4; }

@media (max-width: 1300px) {
  .vpm-code-library-toolbar__filters { grid-template-columns: repeat(3, minmax(170px, 1fr)); }
  .vpm-code-library-search { grid-column: 1 / -1; }
  .vpm-code-package-row { grid-template-columns: minmax(220px, 1.35fr) minmax(135px, .7fr) minmax(65px, .32fr) minmax(135px, .7fr) minmax(135px, .7fr) auto; }
  .vpm-code-package-row__file,
  .vpm-code-package-row--header > span:nth-child(6) { display: none; }
  .vpm-code-action-label { display: none; }
}
@media (max-width: 1000px) {
  .vpm-code-package-row { grid-template-columns: minmax(210px, 1.35fr) minmax(130px, .72fr) minmax(65px, .32fr) minmax(125px, .65fr) auto; }
  .vpm-code-package-row__updated,
  .vpm-code-package-row--header > span:nth-child(5) { display: none; }
}
@media (max-width: 800px) {
  .vpm-internal-hero { grid-template-columns: auto minmax(0, 1fr); padding: 16px; }
  .vpm-internal-hero > .vpm-primary { grid-column: 1 / -1; justify-content: center; }
  .vpm-audit-grid { grid-template-columns: 1fr; }
  .vpm-dialog--audit-lightbox { width: 100% !important; height: 100dvh; max-height: 100dvh !important; border: 0; border-radius: 0 !important; }
  .vpm-audit-lightbox > header { padding: 10px; }
  .vpm-audit-lightbox > header .vpm-secondary span:last-child { display: none; }
  .vpm-audit-lightbox__canvas { padding: 12px 47px; }
  .vpm-audit-lightbox__step { width: 34px; height: 52px; border-radius: 9px; }
  .vpm-audit-lightbox__step.is-prev { left: 6px; }
  .vpm-audit-lightbox__step.is-next { right: 6px; }
  .vpm-audit-lightbox > footer { grid-template-columns: 1fr; gap: 7px; padding: 9px 11px max(11px, env(safe-area-inset-bottom)); }
  .vpm-audit-lightbox > footer > div:first-child { max-height: 70px; }
  .vpm-audit-lightbox > footer > div:last-child { display: flex; justify-content: space-between; text-align: left; }
  .vpm-code-library-toolbar__filters { grid-template-columns: 1fr; }
  .vpm-code-library-search { grid-column: auto; }
  .vpm-code-library-toolbar__meta { align-items: flex-start; flex-wrap: wrap; }
  .vpm-code-library-toolbar__meta > .vpm-secondary { margin-left: 0; }
  .vpm-plugin-library.is-cards { grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }
  .vpm-code-package-row { grid-template-columns: minmax(0, 1fr) auto auto auto; gap: 7px; min-height: 70px; padding: 9px; }
  .vpm-code-package-row--header { display: none; }
  .vpm-code-package-row__identity { grid-template-columns: 32px minmax(0, 1fr); }
  .vpm-code-package-row__icon { width: 32px; height: 32px; }
  .vpm-code-package-row__projects,
  .vpm-code-package-row__updated,
  .vpm-code-package-row__file { display: none; }
  .vpm-code-package-row > .vpm-plugin-package__type { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .vpm-code-package-actions { grid-column: 1 / -1; justify-content: flex-start; padding-left: 42px; }
  .vpm-code-action-label { display: inline; }
  .vpm-code-library-pagination { align-items: flex-start; flex-wrap: wrap; }
  .vpm-code-library-pagination > div { width: 100%; justify-content: space-between; }
  .vpm-plugin-package > footer { align-items: stretch; flex-direction: column; }
  .vpm-plugin-package > footer > div:last-child { flex-wrap: wrap; }
  .vpm-plugin-revision__meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vpm-plugin-revision__meta span:last-child { grid-column: 1 / -1; }
  .vpm-plugin-diff__details { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .vpm-internal-hero { grid-template-columns: 1fr; gap: 10px; }
  .vpm-internal-hero__icon { width: 43px; height: 43px; }
  .vpm-audit-card footer { flex-direction: column; }
  .vpm-code-library-toolbar { padding: 10px; }
  .vpm-code-library-views { width: 100%; }
  .vpm-code-library-views button { flex: 1 1 0; justify-content: center; }
  .vpm-code-library-views button span:last-child { display: none; }
  .vpm-code-library-toolbar__meta > span { width: 100%; }
  .vpm-code-package-row { grid-template-columns: minmax(0, 1fr) auto; }
  .vpm-code-package-row > .vpm-plugin-package__type { grid-column: 1; width: fit-content; margin-left: 42px; }
  .vpm-code-package-row > .vpm-plugin-package__version { grid-column: 2; grid-row: 1; }
  .vpm-code-package-actions { grid-column: 1 / -1; padding-left: 42px; }
  .vpm-code-action-label { display: none; }
  .vpm-code-library-pagination > label { margin-left: auto; }
  .vpm-plugin-package > header { grid-template-columns: auto minmax(0, 1fr); }
  .vpm-plugin-package__version { grid-column: 2; width: fit-content; }
  .vpm-plugin-package__dates,
  .vpm-plugin-history__summary,
  .vpm-plugin-diff__details { grid-template-columns: 1fr; }
  .vpm-dialog-wrap { padding: 8px; }
  .vpm-dialog--internal { width: min(100%, calc(100vw - 16px)); }
  .vpm-internal-form { max-height: calc(100dvh - 24px); }
  .vpm-internal-form .vpm-form-header { min-height: 92px; gap: 12px; padding: 18px 16px 16px; }
  .vpm-internal-form .vpm-form-header h2 { font-size: 21px; }
  .vpm-internal-form__body { gap: 14px; padding: 15px 14px 20px; }
  .vpm-internal-form > .vpm-form-footer { padding: 12px 14px 18px; }
  .vpm-audit-dropzone { grid-template-columns: auto minmax(0, 1fr); }
  .vpm-audit-dropzone__hint { display: none; }
  .vpm-package-type-field { grid-template-columns: 1fr; }
  .vpm-package-type-field__icon { display: none; }
  .vpm-package-type-field > label { grid-template-columns: 1fr; }
  .vpm-plugin-detected-meta .vpm-form-grid { grid-template-columns: 1fr; }
  .vpm-plugin-project-picker > header { grid-template-columns: 1fr; align-items: stretch; }
  .vpm-plugin-project-picker > header label { min-width: 0; }
  .vpm-plugin-project-picker { min-height: 390px; flex-basis: 390px; }
  .vpm-plugin-project-picker > div { grid-template-columns: 1fr; }
  .vpm-plugin-revision { grid-template-columns: 28px minmax(0, 1fr); }
  .vpm-plugin-revision__rail span { width: 24px; height: 24px; }
  .vpm-plugin-revision__body { margin-left: 4px; padding: 12px; }
  .vpm-plugin-revision__body > header { align-items: flex-start; flex-direction: column; }
  .vpm-plugin-revision__meta { grid-template-columns: 1fr; }
  .vpm-plugin-revision__meta span:last-child { grid-column: auto; }
  .vpm-plugin-revision__body > footer { align-items: stretch; flex-direction: column; }
  .vpm-plugin-diff-file > summary { grid-template-columns: auto minmax(0, 1fr); }
  .vpm-plugin-diff-file > summary small { grid-column: 2; }
}

/* Keep the richer Quicklink editor layout after the legacy profile rules above. */
.vpm-profile-link-row {
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 12px;
}
.vpm-profile-link-remove {
  width: auto;
  min-width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 10px;
}
@media (max-width: 700px) {
  .vpm-profile-link-row { grid-template-columns: 1fr; }
  .vpm-profile-link-remove { width: 100%; }
}

/* --------------------------------------------------------------------------
 * 0.13.70 — Personal Quicklinks + My Home ordering polish.
 * Keep these rules last: older profile rules intentionally remain for
 * backwards compatibility, while this block owns the current editor UI.
 * -------------------------------------------------------------------------- */
.vpm-dialog--profile {
  width: min(980px, calc(100vw - 48px));
}

.vpm-profile-links-editor {
  gap: 14px;
  padding: 16px;
  border-color: var(--vpm-border);
  border-radius: 14px;
  background: var(--vpm-panel-alt);
}
.vpm-profile-links-editor > header {
  min-height: 38px;
  align-items: center;
}
.vpm-profile-links-editor > header strong { font-size: 13px; }
.vpm-profile-links-editor > header small { max-width: 580px; line-height: 1.45; }
.vpm-profile-links-editor > header .vpm-secondary {
  min-height: 36px;
  flex: 0 0 auto;
  padding-inline: 12px;
}
.vpm-profile-links-editor [data-profile-links] {
  gap: 10px;
}

.vpm-profile-link-row {
  position: relative;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  gap: 10px 12px;
  align-items: start;
  padding: 12px;
  border: 1px solid var(--vpm-border);
  border-radius: 12px;
  background: var(--vpm-panel);
  box-shadow: 0 1px 2px rgba(16, 24, 40, .025);
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.vpm-profile-link-row:focus-within {
  border-color: color-mix(in srgb, var(--vpm-brand) 32%, var(--vpm-border));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--vpm-brand) 7%, transparent);
}
.vpm-profile-link-row.is-reordered {
  border-color: color-mix(in srgb, var(--vpm-brand) 42%, var(--vpm-border));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--vpm-brand) 10%, transparent);
}
.vpm-profile-link-row.is-dragging { opacity: .48; transform: scale(.995); }

.vpm-profile-link-row__move {
  grid-row: 1 / span 2;
  width: 46px;
  align-self: stretch;
  display: grid;
  grid-template-rows: 38px auto;
  align-content: start;
  justify-items: stretch;
  gap: 6px;
  padding-right: 8px;
  border-right: 1px solid var(--vpm-border);
}
.vpm-profile-link-row__move > span { display: none; }
.vpm-profile-link-row__move .vpm-profile-link-drag {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  cursor: grab;
}
.vpm-profile-link-row__move > div {
  width: 38px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
}
.vpm-profile-link-row__move > div button {
  width: 17px;
  height: 24px;
  border: 0;
  border-radius: 6px;
  background: transparent;
}
.vpm-profile-link-row__move > div button:hover {
  background: var(--vpm-panel-alt);
}

.vpm-profile-link-row__fields {
  grid-column: 2;
  display: grid;
  grid-template-columns: minmax(150px, .75fr) minmax(280px, 1.55fr);
  gap: 10px;
}
.vpm-profile-link-row__fields label,
.vpm-profile-link-row__style label {
  min-width: 0;
}
.vpm-profile-link-row__fields input,
.vpm-profile-link-row__style select {
  min-height: 38px;
}

.vpm-profile-link-row__style {
  grid-column: 2;
  display: grid;
  grid-template-columns: 46px minmax(150px, .72fr) 72px minmax(210px, 1.15fr);
  gap: 10px;
  align-items: end;
  padding-top: 10px;
  border-top: 1px solid var(--vpm-border);
}
.vpm-profile-link-icon-preview {
  width: 46px;
  height: 46px;
  align-self: end;
  border-color: color-mix(in srgb, var(--vpm-link-color) 20%, var(--vpm-border));
  border-radius: 10px;
  background: color-mix(in srgb, var(--vpm-link-color) 10%, var(--vpm-panel));
}
.vpm-profile-link-icon-preview.has-image { background: var(--vpm-panel); }
.vpm-profile-link-icon-preview img,
.vpm-personal-link-icon img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  padding: 4px;
  box-sizing: border-box;
}
.vpm-profile-link-color input[type="color"] {
  min-width: 0;
  height: 38px;
  padding: 3px;
  border-radius: 8px;
}
.vpm-profile-link-upload {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 7px;
  overflow: hidden;
}
.vpm-profile-link-upload .vpm-secondary,
.vpm-profile-link-upload .vpm-ghost {
  min-height: 38px;
  padding: 7px 10px;
  font-size: 10px;
}
.vpm-profile-link-remove {
  grid-column: 3;
  grid-row: 1 / span 2;
  width: 42px;
  min-width: 42px;
  height: 42px;
  align-self: center;
  padding: 0;
  border-color: color-mix(in srgb, var(--vpm-danger) 24%, var(--vpm-border));
  border-radius: 10px;
  background: transparent;
  color: var(--vpm-danger);
}
.vpm-profile-link-remove > span:last-child { display: none; }
.vpm-profile-link-remove:hover {
  background: color-mix(in srgb, var(--vpm-danger) 7%, var(--vpm-panel));
}

/* My Home block ordering. */
.vpm-home-order-editor {
  display: grid;
  gap: 10px;
  padding: 13px;
  border: 1px solid var(--vpm-border);
  border-radius: 12px;
  background: var(--vpm-panel);
}
.vpm-home-order-editor > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.vpm-home-order-editor > header > div { display: grid; gap: 2px; }
.vpm-home-order-editor > header strong { color: var(--vpm-ink); font-size: 12px; }
.vpm-home-order-editor > header small { color: var(--vpm-muted); font-size: 10px; line-height: 1.4; }
.vpm-home-order-editor > header > .dashicons { color: var(--vpm-muted); }
.vpm-home-block-order {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}
.vpm-home-block-order-row {
  min-width: 0;
  min-height: 42px;
  display: grid;
  grid-template-columns: 30px 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 5px 6px;
  border: 1px solid var(--vpm-border);
  border-radius: 9px;
  background: var(--vpm-panel-alt);
  transition: border-color .14s ease, background .14s ease, opacity .14s ease;
}
.vpm-home-block-order-row.is-dragging { opacity: .45; }
.vpm-home-block-order-row.is-reordered {
  border-color: color-mix(in srgb, var(--vpm-brand) 38%, var(--vpm-border));
  background: color-mix(in srgb, var(--vpm-brand) 5%, var(--vpm-panel-alt));
}
.vpm-home-block-drag,
.vpm-home-block-order-row > div button {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--vpm-muted);
  cursor: pointer;
}
.vpm-home-block-drag { cursor: grab; }
.vpm-home-block-drag:hover,
.vpm-home-block-order-row > div button:hover { background: var(--vpm-panel); color: var(--vpm-brand); }
.vpm-home-block-order-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: color-mix(in srgb, var(--vpm-brand) 9%, var(--vpm-panel));
  color: var(--vpm-brand);
}
.vpm-home-block-order-icon .dashicons,
.vpm-home-block-drag .dashicons,
.vpm-home-block-order-row > div .dashicons {
  width: 15px;
  height: 15px;
  font-size: 15px;
  line-height: 15px;
}
.vpm-home-block-order-row > strong {
  min-width: 0;
  overflow: hidden;
  color: var(--vpm-ink);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.vpm-home-block-order-row > div { display: flex; gap: 1px; }

/* Quicklink colour is intentionally restrained: icon + a small card accent. */
.vpm-personal-quicklink {
  --vpm-link-color: var(--vpm-brand);
  position: relative;
  overflow: hidden;
}
.vpm-personal-quicklink::after {
  content: "";
  position: absolute;
  inset: auto 8px 0;
  height: 2px;
  border-radius: 2px 2px 0 0;
  background: var(--vpm-link-color);
  opacity: .7;
  transform: scaleX(.38);
  transform-origin: left;
  transition: opacity .14s ease, transform .14s ease;
}
.vpm-personal-quicklink:hover::after { opacity: 1; transform: scaleX(1); }
.vpm-personal-link-icon {
  border: 1px solid color-mix(in srgb, var(--vpm-link-color) 18%, transparent);
  background: color-mix(in srgb, var(--vpm-link-color) 10%, var(--vpm-panel));
}
.vpm-personal-link-icon.has-image { background: var(--vpm-panel); }
.vpm-focused-link.vpm-personal-quicklink:hover,
.vpm-quicklink-card.vpm-personal-quicklink:hover {
  border-color: color-mix(in srgb, var(--vpm-link-color) 25%, var(--vpm-border));
}

/* Dashboard home blocks use the personal order while retaining a useful grid. */
.vpm-home-grid--personal > .vpm-home-block--team,
.vpm-home-grid--personal > .vpm-home-block--notes {
  grid-column: 1 / -1;
}
.vpm-home-grid--personal > .vpm-home-block--team > .vpm-team-profiles-section {
  margin: 0;
  padding: 16px;
  border: 1px solid var(--vpm-border);
  border-radius: var(--vpm-radius);
  background: var(--vpm-panel);
}

.vpm-theme-dark .vpm-profile-link-row,
.vpm-theme-dark .vpm-home-order-editor {
  background: var(--vpm-panel) !important;
}
.vpm-theme-dark .vpm-home-block-order-row {
  background: var(--vpm-panel-alt) !important;
  border-color: var(--vpm-border) !important;
}
.vpm-theme-dark .vpm-home-block-drag:hover,
.vpm-theme-dark .vpm-home-block-order-row > div button:hover {
  background: color-mix(in srgb, var(--vpm-panel) 78%, #fff 4%);
}
.vpm-theme-dark .vpm-profile-link-icon-preview.has-image,
.vpm-theme-dark .vpm-personal-link-icon.has-image {
  background: #fff !important;
}

@media (max-width: 900px) {
  .vpm-profile-link-row__fields {
    grid-template-columns: minmax(130px, .8fr) minmax(220px, 1.2fr);
  }
  .vpm-profile-link-row__style {
    grid-template-columns: 46px minmax(130px, 1fr) 68px minmax(170px, 1fr);
  }
  .vpm-profile-link-upload { flex-wrap: wrap; }
}

@media (max-width: 700px) {
  .vpm-dialog--profile { width: 100%; }
  .vpm-profile-links-editor { padding: 12px; }
  .vpm-profile-links-editor > header { align-items: stretch; flex-direction: column; }
  .vpm-profile-links-editor > header .vpm-secondary { width: 100%; }
  .vpm-profile-link-row {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 10px;
    padding: 10px;
  }
  .vpm-profile-link-row__move {
    grid-column: 1;
    grid-row: 1 / span 3;
    width: 40px;
    padding-right: 7px;
  }
  .vpm-profile-link-row__fields,
  .vpm-profile-link-row__style {
    grid-column: 2;
    grid-template-columns: 1fr;
  }
  .vpm-profile-link-icon-preview { width: 42px; height: 42px; }
  .vpm-profile-link-upload { align-items: stretch; flex-direction: row; flex-wrap: wrap; }
  .vpm-profile-link-upload .vpm-secondary,
  .vpm-profile-link-upload .vpm-ghost { flex: 1 1 150px; }
  .vpm-profile-link-remove {
    grid-column: 2;
    grid-row: auto;
    width: 100%;
    min-width: 0;
    height: 36px;
  }
  .vpm-profile-link-remove > span:last-child { display: inline; }
  .vpm-home-block-order { grid-template-columns: 1fr; }
  .vpm-home-grid--personal > .vpm-home-block--team,
  .vpm-home-grid--personal > .vpm-home-block--notes { grid-column: auto; }
}

/* 0.13.71 — Automatic website audit UI. */
.vpm-site-audit-view { gap: 18px; }
.vpm-site-audit-section { display: grid; gap: 13px; }
.vpm-site-audit-section + .vpm-site-audit-section { padding-top: 18px; border-top: 1px solid var(--vpm-border); }
.vpm-site-audit-section > .vpm-section-title { align-items: flex-end; margin: 0; }
.vpm-site-audit-section > .vpm-section-title small { display: block; margin-bottom: 3px; color: var(--vpm-brand); font-size: 9px; font-weight: 800; letter-spacing: .08em; }
.vpm-site-audit-section > .vpm-section-title h2 { margin: 0; font-size: 20px; }
.vpm-site-audit-section > .vpm-section-title p { margin: 4px 0 0; color: var(--vpm-muted); font-size: 11px; }
.vpm-site-audit-list { display: grid; gap: 12px; }
.vpm-site-audit-card { overflow: hidden; border: 1px solid var(--vpm-border); border-radius: 13px; background: var(--vpm-panel); box-shadow: var(--vpm-shadow-sm); }
.vpm-site-audit-card > header { display: grid; grid-template-columns: 70px minmax(0,1fr) auto; align-items: center; gap: 13px; padding: 13px 14px; border-bottom: 1px solid var(--vpm-border); }
.vpm-site-audit-score { width: 62px; height: 62px; display: flex; align-items: baseline; justify-content: center; place-self: center; padding-top: 14px; border: 1px solid var(--vpm-border); border-radius: 50%; background: var(--vpm-panel-alt); color: var(--vpm-ink); }
.vpm-site-audit-score strong { font-size: 22px; line-height: 1; }
.vpm-site-audit-score small { margin-left: 2px; color: var(--vpm-muted); font-size: 8px; }
.vpm-site-audit-score .dashicons { width: 23px; height: 23px; font-size: 23px; color: var(--vpm-muted); }
.vpm-site-audit-card.is-healthy .vpm-site-audit-score { border-color: color-mix(in srgb, #16996a 45%, var(--vpm-border)); background: color-mix(in srgb, #16996a 9%, var(--vpm-panel)); color: #12845d; }
.vpm-site-audit-card.is-warning .vpm-site-audit-score { border-color: color-mix(in srgb, #c28519 48%, var(--vpm-border)); background: color-mix(in srgb, #c28519 9%, var(--vpm-panel)); color: #a16b0b; }
.vpm-site-audit-card.is-critical .vpm-site-audit-score { border-color: color-mix(in srgb, #d44c4c 48%, var(--vpm-border)); background: color-mix(in srgb, #d44c4c 8%, var(--vpm-panel)); color: #bd3838; }
.vpm-site-audit-title { min-width: 0; }
.vpm-site-audit-title small { display: block; margin-bottom: 3px; color: var(--vpm-muted); font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .045em; }
.vpm-site-audit-title h2 { margin: 0 0 3px; overflow: hidden; color: var(--vpm-ink); font-size: 17px; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.vpm-site-audit-title a { display: block; overflow: hidden; color: var(--vpm-brand); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.vpm-site-audit-actions { display: flex; align-items: center; gap: 6px; }
.vpm-site-audit-actions .vpm-secondary { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.vpm-site-audit-stats { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); border-bottom: 1px solid var(--vpm-border); background: color-mix(in srgb, var(--vpm-panel-alt) 65%, var(--vpm-panel)); }
.vpm-site-audit-stats span { min-width: 0; display: grid; gap: 2px; padding: 11px 13px; border-right: 1px solid var(--vpm-border); }
.vpm-site-audit-stats span:last-child { border-right: 0; }
.vpm-site-audit-stats b { overflow: hidden; color: var(--vpm-ink); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.vpm-site-audit-stats small { color: var(--vpm-muted); font-size: 9px; }
.vpm-site-audit-findings { padding: 12px 14px; }
.vpm-site-audit-findings .vpm-section-title { margin: 0 0 8px; }
.vpm-site-audit-findings .vpm-section-title h3 { margin: 0; font-size: 12px; }
.vpm-site-audit-findings .vpm-section-title p { margin: 2px 0 0; color: var(--vpm-muted); font-size: 9px; }
.vpm-site-audit-findings ul { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.vpm-site-audit-issue { min-width: 0; display: grid; grid-template-columns: 8px minmax(0,1fr); gap: 8px; align-items: start; padding: 8px 9px; border: 1px solid var(--vpm-border); border-radius: 9px; background: var(--vpm-panel-alt); }
.vpm-site-audit-issue__dot { width: 7px; height: 7px; margin-top: 4px; border-radius: 50%; background: #6f7d91; }
.vpm-site-audit-issue.is-critical .vpm-site-audit-issue__dot { background: #d94a4a; }
.vpm-site-audit-issue.is-warning .vpm-site-audit-issue__dot { background: #c98a18; }
.vpm-site-audit-issue.is-notice .vpm-site-audit-issue__dot { background: #4d78c8; }
.vpm-site-audit-issue > div { min-width: 0; display: grid; gap: 2px; }
.vpm-site-audit-issue strong { color: var(--vpm-ink); font-size: 10px; }
.vpm-site-audit-issue small { color: var(--vpm-muted); font-size: 9px; line-height: 1.35; }
.vpm-site-audit-issue a { overflow: hidden; color: var(--vpm-brand); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.vpm-site-audit-card > footer { display: flex; justify-content: space-between; gap: 12px; padding: 8px 14px; border-top: 1px solid var(--vpm-border); color: var(--vpm-muted); font-size: 9px; }
.vpm-site-audit-card > footer span { display: inline-flex; align-items: center; gap: 5px; }
.vpm-site-audit-card > footer i { width: 7px; height: 7px; border-radius: 50%; background: #8993a1; }
.vpm-site-audit-card > footer i.is-on { background: #16996a; }
.vpm-site-audit-empty, .vpm-site-audit-clear, .vpm-site-audit-error { display: flex; align-items: center; gap: 9px; padding: 13px 14px; }
.vpm-site-audit-empty { color: var(--vpm-muted); font-size: 10px; }
.vpm-site-audit-clear { color: #12845d; font-size: 10px; }
.vpm-site-audit-error { border-bottom: 1px solid color-mix(in srgb, #d94a4a 28%, var(--vpm-border)); background: color-mix(in srgb, #d94a4a 7%, var(--vpm-panel)); color: #b53e3e; }
.vpm-site-audit-error > .dashicons { flex: 0 0 auto; }
.vpm-site-audit-error strong { display: block; font-size: 10px; }
.vpm-site-audit-error p { margin: 2px 0 0; font-size: 9px; }
.vpm-site-audit-scope { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 9px; margin-top: 2px; padding: 11px 12px; border: 1px solid color-mix(in srgb, #16996a 28%, var(--vpm-border)); border-radius: 10px; background: color-mix(in srgb, #16996a 6%, var(--vpm-panel)); }
.vpm-site-audit-scope > .dashicons { color: #16996a; }
.vpm-site-audit-scope strong { display: block; color: var(--vpm-ink); font-size: 10px; }
.vpm-site-audit-scope p { margin: 3px 0 0; color: var(--vpm-muted); font-size: 9px; line-height: 1.45; }
.vpm-spin { animation: vpm-site-audit-spin .8s linear infinite; }
@keyframes vpm-site-audit-spin { to { transform: rotate(360deg); } }

@media (max-width: 900px) {
  .vpm-site-audit-card > header { grid-template-columns: 58px minmax(0,1fr); }
  .vpm-site-audit-score { width: 52px; height: 52px; padding-top: 11px; }
  .vpm-site-audit-score strong { font-size: 19px; }
  .vpm-site-audit-actions { grid-column: 1 / -1; justify-content: flex-end; }
  .vpm-site-audit-stats { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .vpm-site-audit-stats span { border-bottom: 1px solid var(--vpm-border); }
  .vpm-site-audit-stats span:nth-child(even) { border-right: 0; }
  .vpm-site-audit-stats span:last-child { grid-column: 1 / -1; border-bottom: 0; }
}

@media (max-width: 600px) {
  .vpm-site-audit-section > .vpm-section-title { align-items: stretch; }
  .vpm-site-audit-section > .vpm-section-title > button { width: 100%; justify-content: center; }
  .vpm-site-audit-card > header { grid-template-columns: 1fr; }
  .vpm-site-audit-score { place-self: start; }
  .vpm-site-audit-title h2 { white-space: normal; }
  .vpm-site-audit-actions { grid-column: auto; justify-content: flex-start; flex-wrap: wrap; }
  .vpm-site-audit-actions .vpm-secondary { flex: 1 1 auto; justify-content: center; }
  .vpm-site-audit-card > footer { flex-direction: column; }
}

/* v0.13.72 — completed-work export controls */
@media (min-width: 821px) {
  .vpm-toolbar-controls > .vpm-toolbar__export,
  .vpm-project-toolbar .vpm-toolbar__export {
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 104px;
    white-space: nowrap;
  }
}
.vpm-toolbar__export {
  height: 34px;
  min-height: 34px;
  white-space: nowrap;
  line-height: 1;
}
.vpm-toolbar__export > span:last-child {
  display: inline-block;
  white-space: nowrap;
}

.vpm-export-form .vpm-form-body {
  gap: 14px;
}
.vpm-export-section {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.vpm-export-section > legend {
  margin: 0 0 3px;
  padding: 0;
  color: var(--vpm-ink);
  font-size: 10px;
  font-weight: var(--vpm-font-weight-heading, 600);
}
.vpm-export-section__help {
  display: block;
  margin: 0 0 8px;
  color: var(--vpm-muted);
  font-size: 9px;
  line-height: 1.45;
}
.vpm-export-statuses,
.vpm-export-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}
.vpm-export-choice {
  min-width: 0;
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 !important;
  padding: 8px 10px;
  border: 1px solid var(--vpm-border);
  border-radius: 9px;
  background: var(--vpm-panel-alt);
  color: var(--vpm-ink);
  cursor: pointer;
  transition: border-color .14s ease, background .14s ease, box-shadow .14s ease;
}
.vpm-export-choice:hover {
  border-color: color-mix(in srgb, var(--vpm-brand) 40%, var(--vpm-border));
  background: color-mix(in srgb, var(--vpm-brand) 3%, var(--vpm-panel-alt));
}
.vpm-export-choice:has(input:checked) {
  border-color: color-mix(in srgb, var(--vpm-brand) 50%, var(--vpm-border));
  background: color-mix(in srgb, var(--vpm-brand) 7%, var(--vpm-panel));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--vpm-brand) 7%, transparent);
}
.vpm-export-choice input[type="checkbox"] {
  appearance: auto !important;
  -webkit-appearance: checkbox !important;
  flex: 0 0 16px !important;
  width: 16px !important;
  min-width: 16px !important;
  max-width: 16px !important;
  height: 16px !important;
  min-height: 16px !important;
  max-height: 16px !important;
  margin: 0 !important;
  padding: 0 !important;
  accent-color: var(--vpm-brand);
  box-shadow: none !important;
  cursor: pointer;
}
.vpm-export-choice > span {
  min-width: 0;
  overflow: hidden;
  font-size: 10px;
  font-weight: var(--vpm-font-weight-control, 500);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.vpm-export-choice > small {
  flex: 0 0 auto;
  margin-left: auto;
  color: var(--vpm-muted);
  font-size: 9px;
}
.vpm-export-status-choice > i {
  flex: 0 0 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--vpm-export-state, #64748b);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--vpm-export-state, #64748b) 12%, transparent);
}
.vpm-export-preview {
  margin-top: 1px;
}

@media (max-width: 820px) {
  .vpm-toolbar-controls > .vpm-toolbar__export {
    grid-column: 1 / -1;
    width: 100% !important;
    min-width: 0 !important;
    justify-content: center;
  }
  .vpm-export-statuses,
  .vpm-export-columns {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* v0.13.74 — ValovIT master Omnisend client monitor */
.vpm-omnisend-view { gap: 14px; }
.vpm-omnisend-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 19px 21px;
  border: 1px solid color-mix(in srgb, #7c3aed 20%, var(--vpm-border));
  border-radius: var(--vpm-panel-radius-large, 14px);
  background: linear-gradient(115deg, color-mix(in srgb, #7c3aed 6%, var(--vpm-panel)) 0%, var(--vpm-panel) 52%, color-mix(in srgb, var(--vpm-brand) 4%, var(--vpm-panel)) 100%);
  box-shadow: var(--vpm-shadow-sm);
}
.vpm-omnisend-hero > div { min-width: 0; }
.vpm-omnisend-hero small {
  display: block;
  margin-bottom: 4px;
  color: #7c3aed;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .09em;
}
.vpm-omnisend-hero h1 { margin: 0; color: var(--vpm-ink); font-size: 24px; line-height: 1.15; }
.vpm-omnisend-hero p { max-width: 820px; margin: 6px 0 0; color: var(--vpm-muted); font-size: 11px; line-height: 1.5; }
.vpm-omnisend-hero > .vpm-primary { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }

.vpm-omnisend-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}
.vpm-omnisend-summary article {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--vpm-border);
  border-radius: 11px;
  background: var(--vpm-panel);
  box-shadow: var(--vpm-shadow-sm);
}
.vpm-omnisend-summary article > .dashicons {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: color-mix(in srgb, #7c3aed 9%, var(--vpm-panel-alt));
  color: #7c3aed;
  font-size: 17px;
  line-height: 34px;
}
.vpm-omnisend-summary article:nth-child(2) > .dashicons { background: color-mix(in srgb, var(--vpm-success) 9%, var(--vpm-panel-alt)); color: var(--vpm-success); }
.vpm-omnisend-summary article:nth-child(3) > .dashicons { background: color-mix(in srgb, var(--vpm-brand) 9%, var(--vpm-panel-alt)); color: var(--vpm-brand); }
.vpm-omnisend-summary article:nth-child(4) > .dashicons { background: color-mix(in srgb, var(--vpm-warning) 10%, var(--vpm-panel-alt)); color: var(--vpm-warning); }
.vpm-omnisend-summary strong { display: block; color: var(--vpm-ink); font-size: 18px; line-height: 1; }
.vpm-omnisend-summary small { display: block; margin-top: 3px; overflow: hidden; color: var(--vpm-muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }

.vpm-omnisend-note { margin: 0; }
.vpm-omnisend-note small { display: block; margin-top: 4px; color: var(--vpm-muted); font-size: 8px; }

.vpm-omnisend-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 10px;
  border: 1px solid var(--vpm-border);
  border-radius: 10px;
  background: var(--vpm-panel);
}
.vpm-omnisend-toolbar > div { min-width: 0; display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.vpm-omnisend-toolbar button {
  min-height: 29px;
  padding: 5px 9px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: var(--vpm-muted);
  cursor: pointer;
  font: inherit;
  font-size: 9px;
  transition: background .14s ease, border-color .14s ease, color .14s ease;
}
.vpm-omnisend-toolbar button:hover { background: var(--vpm-panel-alt); color: var(--vpm-ink); }
.vpm-omnisend-toolbar button.is-active {
  border-color: color-mix(in srgb, #7c3aed 24%, var(--vpm-border));
  background: color-mix(in srgb, #7c3aed 8%, var(--vpm-panel));
  color: #6d28d9;
}
.vpm-omnisend-toolbar button b {
  display: inline-flex;
  min-width: 17px;
  justify-content: center;
  margin-left: 3px;
  padding: 1px 4px;
  border-radius: 999px;
  background: color-mix(in srgb, currentColor 9%, transparent);
  color: inherit;
  font-size: 8px;
}
.vpm-omnisend-toolbar > span { flex: 0 0 auto; color: var(--vpm-muted); font-size: 9px; white-space: nowrap; }

.vpm-omnisend-table-head,
.vpm-omnisend-client-row {
  display: grid;
  grid-template-columns: minmax(150px, 1.15fr) minmax(165px, 1.25fr) minmax(150px, 1fr) minmax(265px, 1.65fr) minmax(120px, .8fr) 88px;
  column-gap: 12px;
}
.vpm-omnisend-table-head {
  align-items: center;
  padding: 0 13px 6px;
  color: var(--vpm-muted);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .055em;
  text-transform: uppercase;
}
.vpm-omnisend-list { display: grid; gap: 7px; }
.vpm-omnisend-client-row {
  position: relative;
  align-items: center;
  min-width: 0;
  padding: 11px 13px;
  border: 1px solid var(--vpm-border);
  border-radius: 10px;
  background: var(--vpm-panel);
  box-shadow: var(--vpm-shadow-sm);
  transition: border-color .14s ease, box-shadow .14s ease, transform .14s ease;
}
.vpm-omnisend-client-row:hover {
  border-color: color-mix(in srgb, #7c3aed 22%, var(--vpm-border));
  box-shadow: 0 5px 16px rgba(15, 23, 42, .055);
}
.vpm-omnisend-client-row > div { min-width: 0; }
.vpm-omnisend-client-row__project { display: grid; grid-template-columns: 8px minmax(0,1fr); column-gap: 7px; align-items: center; }
.vpm-omnisend-client-row__project > i { width: 7px; height: 7px; border-radius: 50%; background: var(--vpm-project-color, #64748b); box-shadow: 0 0 0 3px color-mix(in srgb, var(--vpm-project-color, #64748b) 12%, transparent); }
.vpm-omnisend-client-row__project > div { min-width: 0; display: grid; gap: 2px; }
.vpm-omnisend-client-row__project strong { overflow: hidden; color: var(--vpm-ink); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.vpm-omnisend-client-row__project small { overflow: hidden; color: var(--vpm-muted); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.vpm-omnisend-client-row__site { display: grid; gap: 2px; }
.vpm-omnisend-client-row__site a { overflow: hidden; color: var(--vpm-ink); font-size: 10px; font-weight: var(--vpm-font-weight-strong, 500); text-overflow: ellipsis; white-space: nowrap; }
.vpm-omnisend-client-row__site a:hover { color: var(--vpm-brand); text-decoration: underline; text-underline-offset: 2px; }
.vpm-omnisend-client-row__site small,
.vpm-omnisend-client-row__detection small,
.vpm-omnisend-client-row__checked small { color: var(--vpm-muted); font-size: 8px; }
.vpm-omnisend-client-row__detection { display: grid; justify-items: start; gap: 3px; }
.vpm-omnisend-status {
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 7px;
  border: 1px solid var(--vpm-border);
  border-radius: 999px;
  background: var(--vpm-panel-alt);
  color: var(--vpm-muted);
  font-size: 8px;
  font-weight: 650;
  white-space: nowrap;
}
.vpm-omnisend-status .dashicons { width: 12px; height: 12px; font-size: 12px; line-height: 12px; }
.vpm-omnisend-status.is-connected { border-color: color-mix(in srgb, var(--vpm-success) 35%, var(--vpm-border)); background: color-mix(in srgb, var(--vpm-success) 8%, var(--vpm-panel)); color: var(--vpm-success); }
.vpm-omnisend-status.is-detected { border-color: color-mix(in srgb, #7c3aed 30%, var(--vpm-border)); background: color-mix(in srgb, #7c3aed 7%, var(--vpm-panel)); color: #6d28d9; }
.vpm-omnisend-status.is-disconnected { border-color: color-mix(in srgb, var(--vpm-warning) 36%, var(--vpm-border)); background: color-mix(in srgb, var(--vpm-warning) 8%, var(--vpm-panel)); color: var(--vpm-warning); }
.vpm-omnisend-status.is-error { border-color: color-mix(in srgb, var(--vpm-danger) 34%, var(--vpm-border)); background: color-mix(in srgb, var(--vpm-danger) 7%, var(--vpm-panel)); color: var(--vpm-danger); }
.vpm-omnisend-status.is-not-detected { color: var(--vpm-muted); }
.vpm-omnisend-status.is-unchecked { border-style: dashed; }

.vpm-omnisend-client-choice {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 31px;
  gap: 4px;
  padding: 3px;
  border: 1px solid var(--vpm-border);
  border-radius: 8px;
  background: var(--vpm-panel-alt);
}
.vpm-omnisend-client-choice button {
  min-width: 0;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 4px 6px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--vpm-muted);
  cursor: pointer;
  font: inherit;
  font-size: 8px;
  font-weight: 600;
  white-space: nowrap;
}
.vpm-omnisend-client-choice button:hover { background: var(--vpm-panel); color: var(--vpm-ink); }
.vpm-omnisend-client-choice button .dashicons { width: 12px; height: 12px; font-size: 12px; line-height: 12px; }
.vpm-omnisend-client-choice button.is-active { background: var(--vpm-panel); box-shadow: 0 1px 4px rgba(15,23,42,.07); }
.vpm-omnisend-client-choice button.is-active.is-client { border-color: color-mix(in srgb, var(--vpm-success) 30%, var(--vpm-border)); color: var(--vpm-success); }
.vpm-omnisend-client-choice button.is-active.is-not-client { border-color: color-mix(in srgb, var(--vpm-danger) 22%, var(--vpm-border)); color: var(--vpm-danger); }
.vpm-omnisend-client-choice button.is-active.is-unreviewed { border-color: color-mix(in srgb, var(--vpm-warning) 30%, var(--vpm-border)); color: var(--vpm-warning); }
.vpm-omnisend-client-row__checked { display: grid; gap: 2px; }
.vpm-omnisend-client-row__checked strong { overflow: hidden; color: var(--vpm-ink); font-size: 9px; font-weight: var(--vpm-font-weight-strong, 500); text-overflow: ellipsis; white-space: nowrap; }
.vpm-omnisend-client-row__actions { display: flex; justify-content: flex-end; }
.vpm-omnisend-client-row__actions .vpm-secondary { min-width: 76px; display: inline-flex; align-items: center; justify-content: center; gap: 4px; padding-left: 8px; padding-right: 8px; white-space: nowrap; }
.vpm-omnisend-client-row__signals {
  grid-column: 1 / -1;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed var(--vpm-border);
}
.vpm-omnisend-client-row__signals summary { width: max-content; max-width: 100%; color: var(--vpm-muted); cursor: pointer; font-size: 8px; font-weight: 600; }
.vpm-omnisend-client-row__signals[open] summary { color: var(--vpm-ink); }
.vpm-omnisend-client-row__signals ul { display: grid; gap: 4px; margin: 7px 0 0; padding-left: 18px; color: var(--vpm-muted); font-size: 8px; line-height: 1.45; }

.vpm-theme-dark .vpm-omnisend-toolbar button.is-active,
.vpm-theme-dark .vpm-omnisend-status.is-detected { color: #bca7ff; }
.vpm-theme-dark .vpm-omnisend-client-row:hover { box-shadow: 0 5px 18px rgba(0,0,0,.18); }
.vpm-theme-dark .vpm-omnisend-client-choice button.is-active { box-shadow: none; }

@media (max-width: 1180px) {
  .vpm-omnisend-table-head { display: none; }
  .vpm-omnisend-client-row { grid-template-columns: minmax(0,1fr) minmax(0,1fr) minmax(150px,.8fr); row-gap: 10px; }
  .vpm-omnisend-client-row__project { grid-column: 1; }
  .vpm-omnisend-client-row__site { grid-column: 2; }
  .vpm-omnisend-client-row__detection { grid-column: 3; }
  .vpm-omnisend-client-row__decision { grid-column: 1 / 3; }
  .vpm-omnisend-client-row__checked { grid-column: 3; grid-row: 2; }
  .vpm-omnisend-client-row__actions { grid-column: 3; grid-row: 2; align-self: end; }
  .vpm-omnisend-client-row__checked { padding-right: 88px; }
}

@media (max-width: 760px) {
  .vpm-omnisend-hero { align-items: stretch; flex-direction: column; padding: 16px; }
  .vpm-omnisend-hero > .vpm-primary { align-self: stretch; justify-content: center; }
  .vpm-omnisend-summary { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .vpm-omnisend-toolbar { align-items: stretch; flex-direction: column; }
  .vpm-omnisend-toolbar > span { white-space: normal; }
  .vpm-omnisend-client-row { grid-template-columns: 1fr; padding: 12px; }
  .vpm-omnisend-client-row__project,
  .vpm-omnisend-client-row__site,
  .vpm-omnisend-client-row__detection,
  .vpm-omnisend-client-row__decision,
  .vpm-omnisend-client-row__checked,
  .vpm-omnisend-client-row__actions { grid-column: 1; grid-row: auto; }
  .vpm-omnisend-client-row__checked { padding-right: 0; }
  .vpm-omnisend-client-row__actions { justify-content: stretch; }
  .vpm-omnisend-client-row__actions .vpm-secondary { width: 100%; }
  .vpm-omnisend-client-choice { grid-template-columns: 1fr 1fr 34px; }
}

/* v0.13.75 — client workflow status permissions */
.vpm-state-pill.is-client-locked { gap: 5px; }
.vpm-state-pill.is-client-locked .dashicons-lock { width: 13px; height: 13px; font-size: 13px; line-height: 13px; opacity: .72; }
.vpm-board-card-properties.is-readonly.has-status-edit .vpm-board-property-chip.is-state { pointer-events: auto; }

/* v0.13.76 — project instructions and audience filters */
.vpm-instructions-view { display:grid; gap:14px; }
.vpm-instructions-hero {
  display:flex; align-items:center; justify-content:space-between; gap:20px;
  padding:20px 22px; border:1px solid var(--vpm-border); border-radius:14px;
  background:linear-gradient(135deg, color-mix(in srgb, var(--vpm-accent) 6%, var(--vpm-panel)), var(--vpm-panel));
}
.vpm-instructions-hero > div { min-width:0; }
.vpm-instructions-hero > div > span { display:block; margin-bottom:4px; color:var(--vpm-accent); font-size:8px; font-weight:750; letter-spacing:.11em; }
.vpm-instructions-hero h1 { margin:0; color:var(--vpm-ink); font-size:21px; line-height:1.15; }
.vpm-instructions-hero p { max-width:760px; margin:6px 0 0; color:var(--vpm-muted); font-size:10px; line-height:1.55; }
.vpm-instructions-hero .vpm-primary { flex:0 0 auto; display:inline-flex; align-items:center; gap:6px; white-space:nowrap; }

.vpm-instruction-toolbar {
  display:grid; grid-template-columns:minmax(240px,1fr) 180px 180px auto; align-items:center; gap:8px;
  padding:8px; border:1px solid var(--vpm-border); border-radius:12px; background:var(--vpm-panel);
}
.vpm-instruction-toolbar > span { padding-right:7px; color:var(--vpm-muted); font-size:9px; text-align:right; white-space:nowrap; }
.vpm-instruction-toolbar select,
.vpm-instruction-search { min-height:35px; border:1px solid var(--vpm-border); border-radius:9px; background:var(--vpm-panel-alt); }
.vpm-instruction-toolbar select { width:100%; padding:0 30px 0 10px; color:var(--vpm-ink); font-size:10px; }
.vpm-instruction-search { display:flex; align-items:center; gap:7px; padding:0 10px; }
.vpm-instruction-search .dashicons { width:15px; height:15px; color:var(--vpm-muted); font-size:15px; line-height:15px; }
.vpm-instruction-search input { width:100%; min-width:0; padding:0; border:0!important; outline:0!important; background:transparent!important; box-shadow:none!important; color:var(--vpm-ink); font-size:10px; }

.vpm-instruction-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.vpm-instruction-card {
  position:relative; overflow:hidden; display:flex; flex-direction:column; min-height:180px;
  border:1px solid var(--vpm-border); border-radius:13px; background:var(--vpm-panel); box-shadow:0 2px 8px rgba(15,23,42,.035);
}
.vpm-instruction-card::before { content:""; position:absolute; inset:0 auto 0 0; width:3px; background:color-mix(in srgb, var(--vpm-muted) 45%, transparent); }
.vpm-instruction-card.is-important::before { background:var(--vpm-warning); }
.vpm-instruction-card.is-critical::before { background:var(--vpm-danger); }
.vpm-instruction-card.is-not-for-me { opacity:.68; }
.vpm-instruction-card > header { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:11px 13px 8px 15px; border-bottom:1px solid color-mix(in srgb, var(--vpm-border) 70%, transparent); }
.vpm-instruction-card__type { display:flex; align-items:center; gap:6px; min-width:0; color:var(--vpm-muted); font-size:8px; font-weight:700; text-transform:uppercase; letter-spacing:.055em; }
.vpm-instruction-card__type > .dashicons { width:14px; height:14px; color:var(--vpm-accent); font-size:14px; line-height:14px; }
.vpm-instruction-card__type b { display:inline-flex; align-items:center; gap:3px; padding:3px 6px; border-radius:999px; background:color-mix(in srgb, var(--vpm-accent) 8%, var(--vpm-panel-alt)); color:var(--vpm-accent); font-size:7px; letter-spacing:0; text-transform:none; }
.vpm-instruction-card__type b .dashicons { width:10px; height:10px; font-size:10px; line-height:10px; }
.vpm-instruction-card__actions { display:flex; gap:4px; }
.vpm-instruction-card__actions button { width:28px; height:28px; display:grid; place-items:center; padding:0; border:1px solid var(--vpm-border); border-radius:8px; background:var(--vpm-panel-alt); color:var(--vpm-muted); cursor:pointer; }
.vpm-instruction-card__actions button:hover { border-color:color-mix(in srgb, var(--vpm-accent) 35%, var(--vpm-border)); color:var(--vpm-accent); }
.vpm-instruction-card__actions .dashicons { width:14px; height:14px; font-size:14px; line-height:14px; }
.vpm-instruction-card__body { flex:1; padding:13px 15px 14px; }
.vpm-instruction-card__title { display:flex; align-items:flex-start; justify-content:space-between; gap:10px; margin-bottom:9px; }
.vpm-instruction-card__title h2 { margin:0; color:var(--vpm-ink); font-size:14px; line-height:1.3; }
.vpm-instruction-card__title > span { flex:0 0 auto; padding:4px 7px; border-radius:999px; font-size:7px; font-weight:750; text-transform:uppercase; letter-spacing:.04em; }
.vpm-instruction-card__title > span.is-important { background:color-mix(in srgb, var(--vpm-warning) 10%, var(--vpm-panel)); color:var(--vpm-warning); }
.vpm-instruction-card__title > span.is-critical { background:color-mix(in srgb, var(--vpm-danger) 9%, var(--vpm-panel)); color:var(--vpm-danger); }
.vpm-instruction-card .vpm-rich-content { color:var(--vpm-ink); font-size:10px; line-height:1.6; }
.vpm-instruction-card .vpm-rich-content > :first-child { margin-top:0; }
.vpm-instruction-card .vpm-rich-content > :last-child { margin-bottom:0; }
.vpm-instruction-card > footer { display:flex; align-items:center; gap:5px; flex-wrap:wrap; padding:9px 15px; border-top:1px solid var(--vpm-border); background:var(--vpm-panel-alt); color:var(--vpm-muted); font-size:8px; }
.vpm-instruction-card > footer .dashicons { width:13px; height:13px; font-size:13px; line-height:13px; }
.vpm-instruction-card > footer strong { color:var(--vpm-ink); font-weight:650; }
.vpm-instruction-card > footer small { margin-left:auto; color:var(--vpm-muted); font-size:8px; }

.vpm-instruction-form { width:min(900px, calc(100vw - 30px)); max-height:min(92vh,900px); display:flex; flex-direction:column; overflow:hidden; border-radius:14px; background:var(--vpm-panel); }
.vpm-instruction-form .vpm-panel-header p { max-width:620px; margin:5px 0 0; color:var(--vpm-muted); font-size:9px; }
.vpm-instruction-form > .vpm-form-body { overflow:auto; display:grid; gap:13px; padding:16px 18px; }
.vpm-instruction-form .vpm-information-rich-editor { min-height:220px; }
.vpm-instruction-form .vpm-rich-editor__visual { min-height:150px; }
.vpm-instruction-form .vpm-check-row { padding:10px 12px; border:1px solid var(--vpm-border); border-radius:10px; background:var(--vpm-panel-alt); }
.vpm-instruction-form .vpm-check-row > span { display:grid; gap:2px; }
.vpm-instruction-form .vpm-check-row small { color:var(--vpm-muted); font-size:8px; font-weight:400; }

.vpm-instruction-audience { overflow:hidden; border:1px solid var(--vpm-border); border-radius:12px; background:var(--vpm-panel-alt); }
.vpm-instruction-audience > header { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px 13px; border-bottom:1px solid var(--vpm-border); background:var(--vpm-panel); }
.vpm-instruction-audience > header > div { display:grid; gap:2px; }
.vpm-instruction-audience > header strong { color:var(--vpm-ink); font-size:10px; }
.vpm-instruction-audience > header small { color:var(--vpm-muted); font-size:8px; }
.vpm-instruction-everyone { display:flex!important; align-items:center; gap:6px; padding:6px 8px!important; border:1px solid var(--vpm-border); border-radius:8px; background:var(--vpm-panel-alt); color:var(--vpm-ink); font-size:9px; font-weight:650; cursor:pointer; }
.vpm-instruction-audience__roles { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; padding:10px; }
.vpm-instruction-audience-choice { display:flex!important; align-items:flex-start; gap:8px; min-width:0; padding:10px!important; border:1px solid var(--vpm-border); border-radius:9px; background:var(--vpm-panel); cursor:pointer; }
.vpm-instruction-audience-choice > span { min-width:0; display:grid; gap:2px; }
.vpm-instruction-audience-choice strong { color:var(--vpm-ink); font-size:9px; }
.vpm-instruction-audience-choice small { color:var(--vpm-muted); font-size:7.5px; line-height:1.35; }
.vpm-instruction-audience.is-everyone .vpm-instruction-audience__roles,
.vpm-instruction-audience.is-everyone .vpm-instruction-specific { opacity:.45; }

.vpm-instruction-specific { border-top:1px solid var(--vpm-border); background:var(--vpm-panel); }
.vpm-instruction-specific > header { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:10px 12px; }
.vpm-instruction-specific > header > div { display:grid; gap:2px; }
.vpm-instruction-specific > header strong { color:var(--vpm-ink); font-size:9px; }
.vpm-instruction-specific > header small { color:var(--vpm-muted); font-size:8px; }
.vpm-instruction-specific > header label { min-width:210px; display:flex; align-items:center; gap:6px; padding:0 8px!important; border:1px solid var(--vpm-border); border-radius:8px; background:var(--vpm-panel-alt); }
.vpm-instruction-specific > header label .dashicons { width:13px; height:13px; color:var(--vpm-muted); font-size:13px; line-height:13px; }
.vpm-instruction-specific > header input { width:100%; min-height:31px; padding:0!important; border:0!important; background:transparent!important; box-shadow:none!important; font-size:9px; }
.vpm-instruction-people { max-height:225px; overflow:auto; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px; padding:0 10px 10px; }
.vpm-instruction-person { display:grid!important; grid-template-columns:auto 28px minmax(0,1fr); align-items:center; gap:7px; min-width:0; padding:7px 8px!important; border:1px solid var(--vpm-border); border-radius:8px; background:var(--vpm-panel-alt); cursor:pointer; }
.vpm-instruction-person[hidden] { display:none!important; }
.vpm-instruction-person img { width:28px; height:28px; border-radius:50%; object-fit:cover; background:var(--vpm-panel); }
.vpm-instruction-person > span { min-width:0; display:grid; gap:1px; }
.vpm-instruction-person strong,
.vpm-instruction-person small { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.vpm-instruction-person strong { color:var(--vpm-ink); font-size:9px; }
.vpm-instruction-person small { color:var(--vpm-muted); font-size:7.5px; }

@media (max-width: 1000px) {
  .vpm-instruction-grid { grid-template-columns:1fr; }
  .vpm-instruction-toolbar { grid-template-columns:minmax(220px,1fr) 160px 160px auto; }
  .vpm-instruction-audience__roles { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width: 720px) {
  .vpm-instructions-hero { align-items:stretch; flex-direction:column; padding:16px; }
  .vpm-instructions-hero .vpm-primary { justify-content:center; }
  .vpm-instruction-toolbar { grid-template-columns:1fr; }
  .vpm-instruction-toolbar > span { text-align:left; }
  .vpm-instruction-audience > header,
  .vpm-instruction-specific > header { align-items:stretch; flex-direction:column; }
  .vpm-instruction-specific > header label { min-width:0; width:100%; }
  .vpm-instruction-audience__roles,
  .vpm-instruction-people { grid-template-columns:1fr; }
  .vpm-instruction-card > footer small { width:100%; margin-left:0; }
}


/* v0.13.77 — instruction editor modal fit and overflow hardening */
.vpm-dialog--instruction {
  width: min(940px, calc(100vw - 40px));
  max-width: 940px;
  max-height: min(92dvh, 900px);
  overflow: hidden;
  background: var(--vpm-panel);
}
.vpm-dialog--instruction .vpm-instruction-form {
  width: 100%;
  max-width: 100%;
  max-height: min(92dvh, 900px);
  min-width: 0;
  overflow: hidden;
}
.vpm-dialog--instruction .vpm-instruction-form,
.vpm-dialog--instruction .vpm-instruction-form * {
  box-sizing: border-box;
}
.vpm-dialog--instruction .vpm-instruction-form > .vpm-panel-header,
.vpm-dialog--instruction .vpm-instruction-form > .vpm-form-footer {
  flex: 0 0 auto;
}
.vpm-dialog--instruction .vpm-instruction-form > .vpm-form-body {
  min-width: 0;
  min-height: 0;
  max-width: 100%;
  flex: 1 1 auto;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}
.vpm-dialog--instruction .vpm-instruction-form > .vpm-form-body > *,
.vpm-dialog--instruction .vpm-instruction-audience,
.vpm-dialog--instruction .vpm-instruction-specific,
.vpm-dialog--instruction .vpm-rich-editor,
.vpm-dialog--instruction .vpm-form-grid {
  min-width: 0;
  max-width: 100%;
}
.vpm-dialog--instruction .vpm-instruction-form > .vpm-form-body > label:not(.vpm-check-row) {
  display: grid;
  gap: 6px;
  min-width: 0;
  margin: 0;
}
.vpm-dialog--instruction .vpm-instruction-form > .vpm-form-body > label:not(.vpm-check-row) > span,
.vpm-dialog--instruction .vpm-instruction-form .vpm-form-grid > label > span {
  color: var(--vpm-muted);
  font-size: 9px;
  font-weight: 600;
}
.vpm-dialog--instruction .vpm-instruction-form > .vpm-form-body > label:not(.vpm-check-row) > input,
.vpm-dialog--instruction .vpm-instruction-form .vpm-form-grid :is(input, select, textarea) {
  width: 100%;
  min-width: 0;
  min-height: 39px;
  padding: 0 10px;
  border: 1px solid var(--vpm-border-strong);
  border-radius: 9px;
  background: var(--vpm-panel);
  color: var(--vpm-ink);
  font-size: 11px;
}
.vpm-dialog--instruction .vpm-instruction-form .vpm-information-rich-editor {
  width: 100%;
  min-height: 0;
}
.vpm-dialog--instruction .vpm-instruction-form .vpm-rich-editor__visual,
.vpm-dialog--instruction .vpm-instruction-form .vpm-rich-editor textarea {
  width: 100%;
  min-width: 0;
  min-height: 135px;
}
.vpm-dialog--instruction .vpm-instruction-audience__roles {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.vpm-dialog--instruction .vpm-instruction-audience-choice,
.vpm-dialog--instruction .vpm-instruction-person {
  overflow: hidden;
}
.vpm-dialog--instruction .vpm-instruction-specific > header > div {
  min-width: 0;
}
.vpm-dialog--instruction .vpm-instruction-specific > header small {
  overflow-wrap: anywhere;
}
.vpm-dialog--instruction .vpm-instruction-specific > header label {
  flex: 0 1 250px;
  min-width: 180px;
  max-width: 250px;
}
.vpm-dialog--instruction .vpm-instruction-form > .vpm-form-footer {
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--vpm-panel-alt);
}
.vpm-dialog--instruction .vpm-instruction-form > .vpm-form-footer > div {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

@media (max-width: 1000px) {
  .vpm-dialog--instruction {
    width: min(900px, calc(100vw - 28px));
  }
  .vpm-dialog--instruction .vpm-instruction-audience__roles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .vpm-dialog-wrap:has(.vpm-dialog--instruction) {
    align-items: end;
    padding: 0;
  }
  .vpm-dialog--instruction {
    width: 100%;
    max-width: none;
    max-height: 94dvh;
    border-radius: 16px 16px 0 0;
  }
  .vpm-dialog--instruction .vpm-instruction-form {
    max-height: 94dvh;
    border-radius: 16px 16px 0 0;
  }
  .vpm-dialog--instruction .vpm-instruction-form > .vpm-form-body {
    padding: 13px;
  }
  .vpm-dialog--instruction .vpm-instruction-audience__roles,
  .vpm-dialog--instruction .vpm-instruction-people {
    grid-template-columns: 1fr;
  }
  .vpm-dialog--instruction .vpm-instruction-specific > header label {
    width: 100%;
    min-width: 0;
    max-width: none;
    flex-basis: auto;
  }
  .vpm-dialog--instruction .vpm-instruction-form > .vpm-form-footer {
    padding-bottom: max(12px, env(safe-area-inset-bottom));
  }
  .vpm-dialog--instruction .vpm-instruction-form > .vpm-form-footer > div {
    flex: 1 1 auto;
  }
  .vpm-dialog--instruction .vpm-instruction-form > .vpm-form-footer > div > button {
    flex: 1 1 0;
  }
}

/* v0.13.79 — Specific people gets its own stable scroll area */
.vpm-dialog--instruction .vpm-instruction-specific {
  overflow: hidden;
}

.vpm-dialog--instruction .vpm-instruction-people {
  max-height: 210px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  align-content: start;
  padding: 0 10px 10px;
}

.vpm-dialog--instruction .vpm-instruction-person {
  min-height: 48px;
  align-self: stretch;
}

.vpm-dialog--instruction .vpm-instruction-people::-webkit-scrollbar {
  width: 8px;
}

.vpm-dialog--instruction .vpm-instruction-people::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: color-mix(in srgb, var(--vpm-muted) 35%, transparent);
  background-clip: padding-box;
}

.vpm-dialog--instruction .vpm-instruction-people::-webkit-scrollbar-track {
  background: transparent;
}

.vpm-dialog--instruction .vpm-instruction-form > .vpm-form-body {
  padding-bottom: 20px;
}

.vpm-dialog--instruction .vpm-instruction-form > .vpm-form-footer {
  position: relative;
  z-index: 3;
}

@media (max-width: 700px) {
  .vpm-dialog--instruction .vpm-instruction-people {
    max-height: 260px;
    padding: 0 10px 12px;
  }
}


/* v0.13.80 — make Specific people a real independent selector viewport */
.vpm-dialog--instruction .vpm-instruction-specific {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.vpm-dialog--instruction .vpm-instruction-specific > header {
  flex: 0 0 auto;
}

.vpm-dialog--instruction .vpm-instruction-people-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  margin-left: 5px;
  padding: 0 6px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--vpm-accent) 10%, var(--vpm-panel-alt));
  color: var(--vpm-accent);
  font-size: 8px;
  line-height: 1;
}

.vpm-dialog--instruction .vpm-instruction-people {
  box-sizing: border-box;
  width: 100%;
  height: clamp(180px, 25vh, 260px);
  min-height: clamp(180px, 25vh, 260px);
  max-height: clamp(180px, 25vh, 260px);
  flex: 0 0 clamp(180px, 25vh, 260px);
  overflow-x: hidden !important;
  overflow-y: scroll !important;
  overscroll-behavior-y: contain;
  scrollbar-gutter: stable both-edges;
  align-content: start;
  grid-auto-rows: minmax(48px, auto);
  padding: 8px 10px 12px;
  border-top: 1px solid color-mix(in srgb, var(--vpm-border) 70%, transparent);
}

.vpm-dialog--instruction .vpm-instruction-people-empty {
  grid-column: 1 / -1;
  display: grid;
  place-items: center;
  min-height: 110px;
  padding: 20px;
  color: var(--vpm-muted);
  font-size: 9px;
  text-align: center;
}

.vpm-dialog--instruction .vpm-instruction-person {
  min-height: 48px;
}

/* Keep the audience block fully reachable even with a fixed modal footer. */
.vpm-dialog--instruction .vpm-instruction-form > .vpm-form-body {
  scroll-padding-bottom: 24px;
}

@media (max-width: 700px) {
  .vpm-dialog--instruction .vpm-instruction-people {
    height: clamp(200px, 31vh, 300px);
    min-height: clamp(200px, 31vh, 300px);
    max-height: clamp(200px, 31vh, 300px);
    flex-basis: clamp(200px, 31vh, 300px);
  }
}


/* v0.13.81 — stable two-column instruction editor and reachable people selector */
@media (min-width: 901px) {
  .vpm-dialog--instruction {
    width: min(1100px, calc(100vw - 40px));
    max-width: 1100px;
    height: min(92dvh, 900px);
    max-height: min(92dvh, 900px);
    overflow: hidden;
  }

  .vpm-dialog--instruction .vpm-instruction-form {
    width: 100%;
    height: 100%;
    max-height: none;
    min-height: 0;
  }

  .vpm-dialog--instruction .vpm-instruction-form > .vpm-form-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    padding: 16px 18px;
  }

  .vpm-dialog--instruction .vpm-instruction-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(380px, .85fr);
    gap: 14px;
    width: 100%;
    height: 100%;
    min-height: 0;
  }

  .vpm-dialog--instruction .vpm-instruction-compose {
    display: grid;
    align-content: start;
    gap: 13px;
    min-width: 0;
    min-height: 0;
    padding-right: 4px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
  }

  .vpm-dialog--instruction .vpm-instruction-compose > label:not(.vpm-check-row) {
    display: grid;
    gap: 6px;
    min-width: 0;
    margin: 0;
  }

  .vpm-dialog--instruction .vpm-instruction-compose > label:not(.vpm-check-row) > span,
  .vpm-dialog--instruction .vpm-instruction-compose .vpm-form-grid > label > span {
    color: var(--vpm-muted);
    font-size: 9px;
    font-weight: 600;
  }

  .vpm-dialog--instruction .vpm-instruction-compose > label:not(.vpm-check-row) > input,
  .vpm-dialog--instruction .vpm-instruction-compose .vpm-form-grid :is(input, select, textarea) {
    width: 100%;
    min-width: 0;
    min-height: 39px;
    padding: 0 10px;
    border: 1px solid var(--vpm-border-strong);
    border-radius: 9px;
    background: var(--vpm-panel);
    color: var(--vpm-ink);
    font-size: 11px;
  }

  .vpm-dialog--instruction .vpm-instruction-compose .vpm-information-rich-editor {
    min-height: 0;
  }

  .vpm-dialog--instruction .vpm-instruction-compose .vpm-rich-editor__visual,
  .vpm-dialog--instruction .vpm-instruction-compose .vpm-rich-editor textarea {
    min-height: 170px;
  }

  .vpm-dialog--instruction .vpm-instruction-audience {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    height: 100%;
    overflow: hidden;
  }

  .vpm-dialog--instruction .vpm-instruction-audience > header,
  .vpm-dialog--instruction .vpm-instruction-audience__roles,
  .vpm-dialog--instruction .vpm-instruction-specific > header {
    flex: 0 0 auto;
  }

  .vpm-dialog--instruction .vpm-instruction-audience__roles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .vpm-dialog--instruction .vpm-instruction-specific {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .vpm-dialog--instruction .vpm-instruction-people {
    flex: 1 1 auto;
    width: 100%;
    height: auto !important;
    min-height: 120px !important;
    max-height: none !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    align-content: start;
    grid-auto-rows: minmax(50px, auto);
    padding: 8px 10px 12px;
  }

  .vpm-dialog--instruction .vpm-instruction-person {
    min-height: 50px;
  }
}

@media (max-width: 900px) {
  .vpm-dialog--instruction .vpm-instruction-layout {
    display: grid;
    gap: 13px;
    min-width: 0;
  }

  .vpm-dialog--instruction .vpm-instruction-compose {
    display: grid;
    gap: 13px;
    min-width: 0;
  }

  .vpm-dialog--instruction .vpm-instruction-form > .vpm-form-body {
    overflow-x: hidden;
    overflow-y: auto;
  }

  .vpm-dialog--instruction .vpm-instruction-people {
    height: 180px !important;
    min-height: 180px !important;
    max-height: 180px !important;
    overflow-y: auto !important;
  }
}


/* v0.13.82 — ordered multi-step project instructions */
.vpm-instruction-steps {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--vpm-border);
  border-radius: 12px;
  background: var(--vpm-panel-alt);
}
.vpm-instruction-steps > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.vpm-instruction-steps > header > div { display:grid; gap:2px; min-width:0; }
.vpm-instruction-steps > header strong { color:var(--vpm-ink); font-size:10px; }
.vpm-instruction-steps > header small { color:var(--vpm-muted); font-size:8px; line-height:1.4; }
.vpm-instruction-steps > header .vpm-secondary { flex:0 0 auto; min-height:32px; padding:0 10px; }
.vpm-instruction-steps__list { display:grid; gap:10px; min-width:0; }
.vpm-instruction-step {
  min-width:0;
  overflow:hidden;
  border:1px solid var(--vpm-border);
  border-radius:10px;
  background:var(--vpm-panel);
  transition:transform .18s ease, box-shadow .18s ease;
}
.vpm-instruction-step.is-reordered { transform:scale(.995); box-shadow:0 8px 22px rgba(15,23,42,.08); }
.vpm-instruction-step > header {
  display:grid;
  grid-template-columns:32px minmax(0,1fr) auto;
  align-items:end;
  gap:8px;
  padding:10px;
  border-bottom:1px solid var(--vpm-border);
  background:color-mix(in srgb, var(--vpm-accent) 3%, var(--vpm-panel));
}
.vpm-instruction-step__number {
  width:32px;
  height:32px;
  display:grid;
  place-items:center;
  align-self:end;
  border-radius:50%;
  background:var(--vpm-accent);
  color:#fff;
  font-size:10px;
  font-weight:800;
}
.vpm-instruction-step > header > label { display:grid; gap:4px; min-width:0; margin:0; }
.vpm-instruction-step > header > label > span { color:var(--vpm-muted); font-size:8px; font-weight:600; }
.vpm-instruction-step > header input {
  width:100%;
  min-width:0;
  min-height:32px;
  padding:0 9px;
  border:1px solid var(--vpm-border-strong);
  border-radius:8px;
  background:var(--vpm-panel);
  color:var(--vpm-ink);
  font-size:10px;
}
.vpm-instruction-step__actions { display:flex; align-items:center; gap:4px; }
.vpm-instruction-step__actions button {
  width:30px;
  height:30px;
  display:grid;
  place-items:center;
  padding:0;
  border:1px solid var(--vpm-border);
  border-radius:8px;
  background:var(--vpm-panel-alt);
  color:var(--vpm-muted);
  cursor:pointer;
}
.vpm-instruction-step__actions button:hover:not(:disabled) { color:var(--vpm-accent); border-color:color-mix(in srgb, var(--vpm-accent) 35%, var(--vpm-border)); }
.vpm-instruction-step__actions button:disabled { opacity:.35; cursor:not-allowed; }
.vpm-instruction-step__actions .dashicons { width:14px; height:14px; font-size:14px; line-height:14px; }
.vpm-instruction-step > .vpm-rich-editor { border:0; border-radius:0; }
.vpm-instruction-step .vpm-rich-editor__visual,
.vpm-instruction-step .vpm-rich-editor textarea { min-height:105px !important; }

.vpm-instruction-card__steps { display:grid; gap:10px; margin-top:14px; }
.vpm-instruction-card__steps > section {
  display:grid;
  grid-template-columns:28px minmax(0,1fr);
  gap:9px;
  align-items:start;
  position:relative;
}
.vpm-instruction-card__steps > section:not(:last-child)::after {
  content:"";
  position:absolute;
  left:13px;
  top:29px;
  bottom:-11px;
  width:1px;
  background:var(--vpm-border);
}
.vpm-instruction-card__steps > section > span {
  position:relative;
  z-index:1;
  width:28px;
  height:28px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:color-mix(in srgb, var(--vpm-accent) 12%, var(--vpm-panel));
  color:var(--vpm-accent);
  font-size:9px;
  font-weight:800;
}
.vpm-instruction-card__steps h3 { margin:1px 0 4px; color:var(--vpm-ink); font-size:11px; line-height:1.35; }
.vpm-instruction-card__steps .vpm-rich-content { font-size:9.5px; }

@media (max-width:700px) {
  .vpm-instruction-steps > header { align-items:stretch; flex-direction:column; }
  .vpm-instruction-steps > header .vpm-secondary { justify-content:center; }
  .vpm-instruction-step > header { grid-template-columns:30px minmax(0,1fr); }
  .vpm-instruction-step__number { width:30px; height:30px; }
  .vpm-instruction-step__actions { grid-column:1 / -1; justify-content:flex-end; }
}

/* v0.13.83 — compact instruction cards, full instruction viewer and inline images */
.vpm-instruction-card__excerpt {
  margin: 0;
  color: var(--vpm-muted);
  font-size: 9.5px;
  line-height: 1.55;
}
.vpm-instruction-card__step-preview {
  display: grid;
  gap: 5px;
  margin: 11px 0 0;
  padding: 0;
  list-style: none;
}
.vpm-instruction-card__step-preview li {
  display: grid;
  grid-template-columns: 22px minmax(0,1fr);
  align-items: center;
  gap: 7px;
  min-width: 0;
  color: var(--vpm-ink);
  font-size: 9px;
}
.vpm-instruction-card__step-preview li > span {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: color-mix(in srgb, var(--vpm-accent) 10%, var(--vpm-panel-alt));
  color: var(--vpm-accent);
  font-size: 8px;
  font-weight: 800;
}
.vpm-instruction-card__step-preview li strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 650;
}
.vpm-instruction-card__step-preview li.is-more {
  display: block;
  padding-left: 29px;
  color: var(--vpm-muted);
  font-size: 8px;
}
.vpm-instruction-card__open-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 13px;
  padding-top: 10px;
  border-top: 1px solid var(--vpm-border);
}
.vpm-instruction-card__open-row > div {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  min-width: 0;
}
.vpm-instruction-card__open-row > div > span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--vpm-muted);
  font-size: 8px;
  white-space: nowrap;
}
.vpm-instruction-card__open-row .dashicons {
  width: 12px;
  height: 12px;
  font-size: 12px;
  line-height: 12px;
}
.vpm-instruction-card__open-row .vpm-secondary {
  flex: 0 0 auto;
  min-height: 31px;
  padding: 0 10px;
  white-space: nowrap;
}

.vpm-dialog--instruction-viewer {
  width: min(1080px, calc(100vw - 40px));
  max-width: 1080px;
  height: min(90vh, 920px);
  max-height: min(90vh, 920px);
  overflow: hidden;
  border-radius: 16px;
}
.vpm-instruction-viewer {
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0,1fr) auto;
  overflow: hidden;
  background: var(--vpm-panel);
}
.vpm-instruction-viewer__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 20px 16px;
  border-bottom: 1px solid var(--vpm-border);
}
.vpm-instruction-viewer__header > div:first-child { min-width: 0; }
.vpm-instruction-viewer__header h2 {
  margin: 5px 0 0;
  color: var(--vpm-ink);
  font-size: 21px;
  line-height: 1.25;
}
.vpm-instruction-viewer__meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  color: var(--vpm-muted);
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .055em;
}
.vpm-instruction-viewer__meta > .dashicons {
  width: 14px;
  height: 14px;
  color: var(--vpm-accent);
  font-size: 14px;
  line-height: 14px;
}
.vpm-instruction-viewer__meta b {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 7px;
  border-radius: 999px;
  background: var(--vpm-panel-alt);
  color: var(--vpm-muted);
  font-size: 7px;
  letter-spacing: 0;
  text-transform: none;
}
.vpm-instruction-viewer__meta b.is-important { color: var(--vpm-warning); }
.vpm-instruction-viewer__meta b.is-critical { color: var(--vpm-danger); }
.vpm-instruction-viewer__header-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
}
.vpm-instruction-viewer__header-actions .vpm-secondary {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.vpm-instruction-viewer__body {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 20px;
}
.vpm-instruction-viewer__overview {
  max-width: 920px;
  margin: 0 auto 18px;
  padding: 16px 18px;
  border: 1px solid var(--vpm-border);
  border-radius: 12px;
  background: var(--vpm-panel-alt);
}
.vpm-instruction-viewer__overview > h3 {
  margin: 0 0 10px;
  color: var(--vpm-ink);
  font-size: 11px;
}
.vpm-instruction-viewer__steps {
  max-width: 920px;
  display: grid;
  gap: 14px;
  margin: 0 auto;
}
.vpm-instruction-viewer__steps > article {
  display: grid;
  grid-template-columns: 42px minmax(0,1fr);
  gap: 13px;
  align-items: start;
  padding: 16px;
  border: 1px solid var(--vpm-border);
  border-radius: 13px;
  background: var(--vpm-panel);
}
.vpm-instruction-viewer__step-number {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  position: sticky;
  top: 0;
  border-radius: 50%;
  background: var(--vpm-accent);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}
.vpm-instruction-viewer__steps h3 {
  margin: 1px 0 8px;
  color: var(--vpm-ink);
  font-size: 14px;
  line-height: 1.35;
}
.vpm-instruction-viewer .vpm-rich-content {
  color: var(--vpm-ink);
  font-size: 10.5px;
  line-height: 1.65;
}
.vpm-instruction-viewer .vpm-rich-content > :first-child { margin-top: 0; }
.vpm-instruction-viewer .vpm-rich-content > :last-child { margin-bottom: 0; }
.vpm-instruction-viewer .vpm-rich-content img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 68vh;
  margin: 12px auto;
  border: 1px solid var(--vpm-border);
  border-radius: 11px;
  object-fit: contain;
  background: var(--vpm-panel-alt);
  box-shadow: 0 4px 18px rgba(15,23,42,.08);
  cursor: zoom-in;
}
.vpm-instruction-viewer .vpm-rich-content a:has(> img) {
  display: block;
  text-decoration: none;
}
.vpm-instruction-viewer__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 20px;
  border-top: 1px solid var(--vpm-border);
  background: var(--vpm-panel-alt);
  color: var(--vpm-muted);
  font-size: 8px;
}
.vpm-instruction-viewer__footer > div {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}
.vpm-instruction-viewer__footer .dashicons {
  width: 13px;
  height: 13px;
  font-size: 13px;
  line-height: 13px;
}

.vpm-dialog--instruction [data-rich-images="1"] .vpm-rich-editor__toolbar [data-action="rich-image"] {
  position: relative;
}
.vpm-dialog--instruction [data-rich-images="1"] .vpm-rich-editor__toolbar [data-action="rich-image"].is-uploading {
  opacity: .55;
  cursor: wait;
}
.vpm-dialog--instruction [data-rich-images="1"] .vpm-rich-editor__visual img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 420px;
  margin: 10px auto;
  border: 1px solid var(--vpm-border);
  border-radius: 9px;
  object-fit: contain;
  background: var(--vpm-panel-alt);
}
.vpm-instruction-inline-image {
  margin: 12px 0;
  text-align: center;
}
.vpm-instruction-inline-image a { display: inline-block; max-width: 100%; }

@media (max-width: 720px) {
  .vpm-instruction-card__open-row { align-items: stretch; flex-direction: column; }
  .vpm-instruction-card__open-row .vpm-secondary { width: 100%; justify-content: center; }
  .vpm-dialog--instruction-viewer {
    width: calc(100vw - 16px);
    height: calc(100dvh - 16px);
    max-height: calc(100dvh - 16px);
  }
  .vpm-instruction-viewer__header { padding: 14px; }
  .vpm-instruction-viewer__header h2 { font-size: 18px; }
  .vpm-instruction-viewer__header-actions .vpm-secondary span:last-child { display: none; }
  .vpm-instruction-viewer__body { padding: 12px; }
  .vpm-instruction-viewer__overview { padding: 13px; }
  .vpm-instruction-viewer__steps > article {
    grid-template-columns: 32px minmax(0,1fr);
    gap: 9px;
    padding: 12px;
  }
  .vpm-instruction-viewer__step-number { width: 30px; height: 30px; font-size: 9px; }
  .vpm-instruction-viewer__footer { align-items: flex-start; flex-direction: column; padding: 10px 14px; }
}

/* v0.13.84 — clearer ordered procedure flow inside the instruction viewer */
.vpm-instruction-viewer__flow {
  max-width: 920px;
  margin: 0 auto 16px;
  padding: 13px 14px 14px;
  border: 1px solid var(--vpm-border);
  border-radius: 12px;
  background: var(--vpm-panel-alt);
}
.vpm-instruction-viewer__flow-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.vpm-instruction-viewer__flow-heading > div {
  display: grid;
  gap: 2px;
}
.vpm-instruction-viewer__flow-heading strong {
  color: var(--vpm-ink);
  font-size: 11px;
}
.vpm-instruction-viewer__flow-heading small {
  color: var(--vpm-muted);
  font-size: 8px;
}
.vpm-instruction-viewer__flow-heading > .dashicons {
  width: 18px;
  height: 18px;
  color: #c75b2d;
  font-size: 18px;
  line-height: 18px;
}
.vpm-instruction-viewer__flow-track {
  display: flex;
  align-items: stretch;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 1px 5px;
  scrollbar-width: thin;
}
.vpm-instruction-viewer__flow-track button {
  min-width: 150px;
  max-width: 230px;
  display: grid;
  grid-template-columns: 28px minmax(0,1fr);
  align-items: center;
  gap: 8px;
  position: relative;
  padding: 7px 9px;
  border: 1px solid var(--vpm-border);
  border-radius: 9px;
  background: var(--vpm-panel);
  color: var(--vpm-ink);
  text-align: left;
  cursor: pointer;
}
.vpm-instruction-viewer__flow-track button:hover {
  border-color: #c75b2d;
  background: color-mix(in srgb, #c75b2d 5%, var(--vpm-panel));
}
.vpm-instruction-viewer__flow-track button > span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #c75b2d;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
}
.vpm-instruction-viewer__flow-track button > strong {
  min-width: 0;
  overflow: hidden;
  color: inherit;
  font-size: 9px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.vpm-instruction-viewer__steps > article {
  scroll-margin-top: 16px;
  transition: border-color .25s ease, box-shadow .25s ease, background .25s ease;
}
.vpm-instruction-viewer__steps > article.is-highlighted {
  border-color: #c75b2d;
  background: color-mix(in srgb, #c75b2d 4%, var(--vpm-panel));
  box-shadow: 0 0 0 3px color-mix(in srgb, #c75b2d 12%, transparent);
}
.vpm-instruction-viewer__step-number {
  width: 42px;
  height: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  position: sticky;
  top: 0;
  border: 0;
  border-radius: 10px;
  background: #c75b2d;
  color: #fff;
  box-shadow: 0 4px 12px rgba(199, 91, 45, .18);
}
.vpm-instruction-viewer__step-number small {
  display: block;
  margin: 0;
  color: rgba(255,255,255,.8);
  font-size: 6px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .08em;
}
.vpm-instruction-viewer__step-number strong {
  display: block;
  margin-top: 3px;
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
}
.vpm-instruction-viewer__step-content { min-width: 0; }
.vpm-instruction-viewer__step-kicker {
  margin: 0 0 3px;
  color: #c75b2d;
  font-size: 7px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: .055em;
  text-transform: uppercase;
}
.vpm-instruction-viewer__steps h3 { margin-top: 0; }

@media (max-width: 720px) {
  .vpm-instruction-viewer__flow { padding: 11px; }
  .vpm-instruction-viewer__flow-track button { min-width: 135px; }
  .vpm-instruction-viewer__steps > article {
    grid-template-columns: 38px minmax(0,1fr);
  }
  .vpm-instruction-viewer__step-number {
    width: 36px;
    height: 44px;
  }
  .vpm-instruction-viewer__step-number strong { font-size: 14px; }
}

/* v0.13.87 — definitive Fold/tablet shell, toolbar and profile controls. */
@media (min-width: 700px) and (max-width: 1250px) {
  .vpm-portal-app .vpm-shell {
    display: grid !important;
    grid-template-columns: var(--vpm-active-sidebar-width, var(--vpm-sidebar-width, 282px)) minmax(0, 1fr) !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }

  .vpm-portal-app:not(.vpm-sidebar-is-collapsed) .vpm-shell:not(.is-sidebar-collapsed) > .vpm-sidebar {
    display: flex !important;
    position: relative !important;
    inset: auto !important;
    grid-column: 1 !important;
    grid-row: 1 !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 100% !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }

  .vpm-portal-app:not(.vpm-sidebar-is-collapsed) .vpm-shell:not(.is-sidebar-collapsed) > .vpm-workspace {
    display: flex !important;
    position: relative !important;
    inset: auto !important;
    grid-column: 2 !important;
    grid-row: 1 !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
    transform: none !important;
    overflow: hidden !important;
  }

  .vpm-portal-app.vpm-sidebar-is-collapsed .vpm-shell,
  .vpm-portal-app .vpm-shell.is-sidebar-collapsed {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .vpm-portal-app.vpm-sidebar-is-collapsed .vpm-shell > .vpm-sidebar,
  .vpm-portal-app.vpm-sidebar-is-collapsed .vpm-shell > .vpm-sidebar-resizer,
  .vpm-portal-app .vpm-shell.is-sidebar-collapsed > .vpm-sidebar,
  .vpm-portal-app .vpm-shell.is-sidebar-collapsed > .vpm-sidebar-resizer {
    display: none !important;
    width: 0 !important;
    min-width: 0 !important;
    max-width: 0 !important;
  }

  .vpm-portal-app.vpm-sidebar-is-collapsed .vpm-shell > .vpm-workspace,
  .vpm-portal-app .vpm-shell.is-sidebar-collapsed > .vpm-workspace {
    position: relative !important;
    inset: auto !important;
    grid-column: 1 !important;
    grid-row: 1 !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
    transform: none !important;
  }

  .vpm-portal-app .vpm-sidebar-backdrop {
    display: none !important;
  }

  .vpm-portal-app .vpm-workspace,
  .vpm-portal-app .vpm-main,
  .vpm-portal-app .vpm-work-content {
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .vpm-portal-app .vpm-mywork-list-wrap,
  .vpm-portal-app .vpm-table-wrap {
    min-width: 0 !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    box-sizing: border-box !important;
  }

  .vpm-portal-app .vpm-mywork-toolbar {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 10px !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    overflow: visible !important;
    box-sizing: border-box !important;
  }

  .vpm-portal-app .vpm-mywork-toolbar .vpm-task-search {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
  }

  .vpm-portal-app .vpm-mywork-toolbar .vpm-mobile-filter-toggle {
    display: none !important;
  }

  .vpm-portal-app .vpm-mywork-toolbar .vpm-toolbar-controls {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 10px !important;
    align-items: center !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    overflow: visible !important;
  }

  .vpm-portal-app .vpm-mywork-toolbar .vpm-toolbar-controls > * {
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .vpm-portal-app .vpm-mywork-toolbar .vpm-toolbar__result {
    position: static !important;
    inset: auto !important;
    grid-column: 1 / -1 !important;
    width: auto !important;
    max-width: 100% !important;
    justify-self: end !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .vpm-portal-app .vpm-sidebar__user,
  .vpm-portal-app.vpm-workspace-smooth .vpm-sidebar__user {
    grid-template-columns: 34px minmax(0, 1fr) 30px 30px 30px !important;
    gap: 6px !important;
  }

  .vpm-portal-app .vpm-sidebar__user [data-action="edit-profile"],
  .vpm-portal-app .vpm-sidebar__user .vpm-theme-toggle,
  .vpm-portal-app .vpm-sidebar__user .vpm-logout {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    min-width: 0 !important;
    width: 30px !important;
    height: 30px !important;
  }
}

/* =========================================================
   Workflow state ordering (0.13.88)
   ========================================================= */
.vpm-workflow-settings .vpm-section-title p { max-width: 820px; }
.vpm-workflow-order-hint {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: -2px 0 10px;
  padding: 9px 11px;
  border: 1px dashed var(--vpm-border, #e5e9f1);
  border-radius: 9px;
  background: var(--vpm-panel-alt, #f8fafc);
  color: var(--vpm-muted, #6d7789);
  font-size: 11px;
}
.vpm-workflow-order-hint strong, .vpm-workflow-order-hint b { color: var(--vpm-ink, #1f2937); }
.vpm-workflow-order-hint .dashicons { width: 15px; height: 15px; font-size: 15px; line-height: 15px; }
.vpm-workflow-state-list { gap: 0; }
.vpm-workflow-state-row {
  display: grid !important;
  grid-template-columns: 72px 28px 10px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px !important;
  min-height: 58px;
  padding: 8px 7px !important;
  transition: opacity .15s ease, transform .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.vpm-workflow-state-row.is-dragging {
  opacity: .55;
  background: var(--vpm-panel-alt, #f8fafc);
  box-shadow: inset 3px 0 0 var(--vpm-brand, #3157e7);
}
.vpm-workflow-state-row.is-reordered { animation: vpm-workflow-reordered .3s ease; }
@keyframes vpm-workflow-reordered { 0% { transform: translateY(2px); } 100% { transform: translateY(0); } }
.vpm-workflow-state-drag,
.vpm-workflow-state-actions > button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 30px;
  padding: 0 !important;
  border: 1px solid var(--vpm-border, #e5e9f1) !important;
  border-radius: 7px;
  background: var(--vpm-panel, #fff) !important;
  color: var(--vpm-muted, #6d7789) !important;
  cursor: pointer;
}
.vpm-workflow-state-drag { cursor: grab; gap: 5px; min-width: 66px; padding: 0 9px !important; font-size: 11px; font-weight: 700; }
.vpm-workflow-state-grip { font-size: 16px; line-height: 1; letter-spacing: -3px; transform: translateX(-1px); }
.vpm-workflow-state-drag__label { line-height: 1; }
.vpm-workflow-state-drag:active { cursor: grabbing; }
.vpm-workflow-state-drag .dashicons,
.vpm-workflow-state-actions .dashicons { width: 15px; height: 15px; font-size: 15px; line-height: 15px; }
.vpm-workflow-state-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 25px;
  height: 25px;
  border-radius: 999px;
  background: var(--vpm-panel-alt, #f5f7fb);
  color: var(--vpm-muted, #6d7789);
  font-size: 10px;
  font-weight: 700;
}
.vpm-workflow-state-row > i { width: 10px !important; height: 10px !important; }
.vpm-workflow-state-actions { display: flex; align-items: center; gap: 6px; }
.vpm-workflow-state-actions > button:hover:not(:disabled),
.vpm-workflow-state-drag:hover { border-color: var(--vpm-brand, #3157e7) !important; color: var(--vpm-brand, #3157e7) !important; }
.vpm-workflow-state-actions > button:disabled { opacity: .3; cursor: default; }
.vpm-workflow-state-actions .vpm-workflow-state-edit {
  width: auto;
  min-width: 48px;
  padding: 0 10px !important;
  color: var(--vpm-brand, #3157e7) !important;
}
@media (max-width: 700px) {
  .vpm-workflow-state-row { grid-template-columns: 64px 24px 9px minmax(0, 1fr); }
  .vpm-workflow-state-drag { min-width: 58px; padding: 0 7px !important; }
  .vpm-workflow-state-actions { grid-column: 1 / -1; justify-content: flex-end; }
}

/* =========================================================
   Ovidijus private Chat / Documents workspace (0.13.88)
   ========================================================= */
.vpm-private-workspace { display: grid; gap: 14px; }
.vpm-private-workspace__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 16px;
  border: 1px solid var(--vpm-border, #e5e9f1);
  border-radius: 12px;
  background: var(--vpm-panel, #fff);
}
.vpm-private-workspace__toolbar > div { display: flex; align-items: baseline; gap: 7px; white-space: nowrap; }
.vpm-private-workspace__toolbar > div strong { font-size: 18px; }
.vpm-private-workspace__toolbar > div span { color: var(--vpm-muted, #6d7789); font-size: 11px; }
.vpm-private-workspace__toolbar label {
  width: min(520px, 100%);
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 12px;
  border: 1px solid var(--vpm-border, #e5e9f1);
  border-radius: 9px;
  background: var(--vpm-panel-alt, #f9fafc);
  color: var(--vpm-muted, #6d7789);
}
.vpm-private-workspace__toolbar input {
  width: 100%;
  height: 38px;
  padding: 0;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  color: var(--vpm-ink, #172033);
}
.vpm-private-chat-feed { display: grid; gap: 10px; }
.vpm-private-chat-item {
  overflow: hidden;
  border: 1px solid var(--vpm-border, #e5e9f1);
  border-radius: 12px;
  background: var(--vpm-panel, #fff);
}
.vpm-private-chat-item__header {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 13px 14px 9px;
}
.vpm-private-chat-item__header > img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; background: var(--vpm-panel-alt, #f9fafc); }
.vpm-private-chat-item__identity { min-width: 0; display: grid; gap: 3px; }
.vpm-private-chat-item__identity strong { font-size: 12px; }
.vpm-private-chat-item__identity span,
.vpm-private-chat-item__header time { color: var(--vpm-muted, #6d7789); font-size: 10px; }
.vpm-private-chat-item__identity span { display: flex; align-items: center; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vpm-private-chat-item__identity i,
.vpm-private-document__context i { width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; flex: 0 0 auto; }
.vpm-private-chat-item__task {
  width: calc(100% - 28px);
  margin: 0 14px;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: var(--vpm-panel-alt, #f9fafc);
  color: var(--vpm-ink, #172033);
  text-align: left;
  cursor: pointer;
}
.vpm-private-chat-item__task strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.vpm-private-chat-item__task .dashicons { width: 16px; height: 16px; font-size: 16px; color: var(--vpm-muted, #6d7789); }
.vpm-private-chat-item__message { padding: 13px 16px 10px; color: var(--vpm-ink, #172033); font-size: 12px; line-height: 1.6; }
.vpm-private-chat-item__message > :first-child { margin-top: 0; }
.vpm-private-chat-item__message > :last-child { margin-bottom: 0; }
.vpm-private-chat-item footer { display: flex; justify-content: flex-end; padding: 0 14px 13px; }
.vpm-private-chat-item footer button { min-height: 31px; font-size: 10px; }

.vpm-private-document-list { display: grid; gap: 8px; }
.vpm-private-document {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  padding: 10px 12px;
  border: 1px solid var(--vpm-border, #e5e9f1);
  border-radius: 11px;
  background: var(--vpm-panel, #fff);
}
.vpm-private-document__preview {
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid var(--vpm-border, #e5e9f1);
  border-radius: 9px;
  background: var(--vpm-panel-alt, #f9fafc);
  color: var(--vpm-muted, #6d7789);
}
.vpm-private-document__preview.is-image img { width: 100%; height: 100%; object-fit: cover; }
.vpm-private-document__preview .dashicons { width: 22px; height: 22px; font-size: 22px; }
.vpm-private-document__main { min-width: 0; display: grid; gap: 4px; }
.vpm-private-document__main > strong { overflow: hidden; color: var(--vpm-ink, #172033); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.vpm-private-document__context { display: flex; align-items: center; min-width: 0; overflow: hidden; color: var(--vpm-muted, #6d7789); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.vpm-private-document__main small { color: var(--vpm-muted, #6d7789); font-size: 9px; }
.vpm-private-document__actions { display: flex; align-items: center; gap: 6px; }
.vpm-private-document__actions .vpm-secondary { min-height: 31px; padding: 0 9px; font-size: 10px; white-space: nowrap; }
.vpm-private-document__missing { color: var(--vpm-danger, #dc3e45); font-size: 10px; font-weight: 600; }
.vpm-private-workspace-empty { display: grid; justify-items: center; gap: 6px; padding: 42px 20px; text-align: center; }
.vpm-private-workspace-empty > .dashicons { width: 28px; height: 28px; font-size: 28px; color: var(--vpm-muted, #6d7789); }
.vpm-private-workspace-empty h2 { margin: 3px 0 0; font-size: 14px; }
.vpm-private-workspace-empty p { max-width: 460px; margin: 0; color: var(--vpm-muted, #6d7789); font-size: 11px; }
@media (max-width: 760px) {
  .vpm-private-workspace__toolbar { align-items: stretch; flex-direction: column; }
  .vpm-private-workspace__toolbar label { width: 100%; }
  .vpm-private-chat-item__header { grid-template-columns: 34px minmax(0, 1fr); }
  .vpm-private-chat-item__header > time { grid-column: 2; }
  .vpm-private-document { grid-template-columns: 50px minmax(0, 1fr); }
  .vpm-private-document__preview { width: 46px; height: 46px; }
  .vpm-private-document__actions { grid-column: 1 / -1; justify-content: flex-end; }
}

/* =========================================================
   Private workspace v0.13.92 — ValovIT chatbot + documents
   ========================================================= */
.vpm-private-workspace {
  display: grid;
  gap: 16px;
}
.vpm-private-workspace__intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid var(--vpm-border, #e5e9f1);
  border-radius: 14px;
  background: var(--vpm-panel, #fff);
}
.vpm-private-workspace__intro > div,
.vpm-private-doc-card > header > div {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.vpm-private-workspace__intro > div > .dashicons,
.vpm-private-doc-card > header > div > .dashicons {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 10px;
  background: var(--vpm-panel-alt, #f7f9fc);
  font-size: 18px;
  color: var(--vpm-ink, #172033);
}
.vpm-private-workspace__intro h2,
.vpm-private-doc-card h3,
.vpm-private-document-history h3 {
  margin: 0;
  color: var(--vpm-ink, #172033);
}
.vpm-private-workspace__intro h2 { font-size: 16px; }
.vpm-private-workspace__intro p,
.vpm-private-doc-card header p,
.vpm-private-document-history header p {
  margin: 3px 0 0;
  color: var(--vpm-muted, #6d7789);
  font-size: 11px;
  line-height: 1.5;
}
.vpm-private-workspace__intro .vpm-secondary,
.vpm-private-form-actions .vpm-primary,
.vpm-private-form-actions .vpm-secondary,
.vpm-private-generated-document__actions .vpm-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.vpm-private-workspace__intro .dashicons,
.vpm-private-form-actions .dashicons,
.vpm-private-generated-document__actions .dashicons {
  width: 15px;
  height: 15px;
  font-size: 15px;
}

.vpm-private-connector {
  overflow: hidden;
  border: 1px solid var(--vpm-border, #e5e9f1);
  border-radius: 14px;
  background: var(--vpm-panel, #fff);
}
.vpm-private-connector > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  cursor: pointer;
  list-style: none;
}
.vpm-private-connector > summary::-webkit-details-marker { display: none; }
.vpm-private-connector > summary > span:first-child {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  column-gap: 9px;
  min-width: 0;
}
.vpm-private-connector > summary strong {
  color: var(--vpm-ink, #172033);
  font-size: 12px;
}
.vpm-private-connector > summary small {
  grid-column: 2;
  margin-top: 2px;
  color: var(--vpm-muted, #6d7789);
  font-size: 10px;
}
.vpm-private-connector[open] > summary {
  border-bottom: 1px solid var(--vpm-border, #e5e9f1);
}
.vpm-private-status {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #a7afbd;
}
.vpm-private-status.is-connected { background: #2e9b67; }
.vpm-private-status.is-error { background: #d94b55; }
.vpm-private-status.is-pending { background: #d9a428; }
.vpm-private-connector > .vpm-private-form { padding: 16px; }

.vpm-private-form { display: grid; gap: 14px; }
.vpm-private-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 14px;
}
.vpm-private-field {
  display: grid;
  gap: 6px;
  min-width: 0;
}
.vpm-private-field--wide { grid-column: 1 / -1; }
.vpm-private-field > span {
  color: var(--vpm-muted, #6d7789);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.3;
}
.vpm-private-field input,
.vpm-private-field select,
.vpm-private-field textarea,
.vpm-private-search input,
.vpm-private-chat-reply textarea {
  width: 100%;
  min-height: 38px;
  margin: 0;
  padding: 8px 10px;
  border: 1px solid var(--vpm-border, #dfe4ed) !important;
  border-radius: 9px !important;
  outline: 0;
  box-shadow: none !important;
  background: var(--vpm-panel, #fff) !important;
  color: var(--vpm-ink, #172033) !important;
  font: inherit;
  font-size: 11px;
}
.vpm-private-field textarea,
.vpm-private-chat-reply textarea {
  min-height: 90px;
  resize: vertical;
  line-height: 1.5;
}
.vpm-private-field input:focus,
.vpm-private-field select:focus,
.vpm-private-field textarea:focus,
.vpm-private-search input:focus,
.vpm-private-chat-reply textarea:focus {
  border-color: var(--vpm-ink, #172033) !important;
}
.vpm-private-form-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.vpm-private-form-actions--split { justify-content: flex-start; }
.vpm-private-clear-secret,
.vpm-private-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--vpm-muted, #6d7789);
  font-size: 10px;
}
.vpm-private-checkbox {
  min-height: 38px;
  padding: 9px 11px;
  border: 1px solid var(--vpm-border, #e5e9f1);
  border-radius: 9px;
  background: var(--vpm-panel-alt, #f9fafc);
}
.vpm-private-checkbox input,
.vpm-private-clear-secret input {
  width: 16px;
  height: 16px;
  margin: 0;
}
.vpm-private-notice {
  padding: 11px 13px;
  border: 1px solid #d9e3ef;
  border-radius: 10px;
  background: #f4f8fc;
  color: #3f5167;
  font-size: 11px;
  line-height: 1.5;
}
.vpm-private-notice.is-error {
  border-color: #f0c9cd;
  background: #fff6f7;
  color: #9f313b;
}

.vpm-private-chat-layout {
  display: grid;
  grid-template-columns: minmax(250px, 340px) minmax(0, 1fr);
  min-height: 520px;
  overflow: hidden;
  border: 1px solid var(--vpm-border, #e5e9f1);
  border-radius: 14px;
  background: var(--vpm-panel, #fff);
}
.vpm-private-conversation-list {
  min-width: 0;
  border-right: 1px solid var(--vpm-border, #e5e9f1);
  background: var(--vpm-panel-alt, #f9fafc);
}
.vpm-private-search {
  position: relative;
  padding: 12px;
  border-bottom: 1px solid var(--vpm-border, #e5e9f1);
}
.vpm-private-search .dashicons {
  position: absolute;
  top: 23px;
  left: 23px;
  width: 15px;
  height: 15px;
  font-size: 15px;
  color: var(--vpm-muted, #6d7789);
  pointer-events: none;
}
.vpm-private-search input { padding-left: 32px !important; background: var(--vpm-panel, #fff) !important; }
.vpm-private-conversation {
  width: 100%;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  padding: 12px;
  border: 0;
  border-bottom: 1px solid var(--vpm-border, #e5e9f1);
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.vpm-private-conversation:hover,
.vpm-private-conversation.is-active { background: var(--vpm-panel, #fff); }
.vpm-private-conversation.is-active { box-shadow: inset 3px 0 0 var(--vpm-ink, #172033); }
.vpm-private-conversation__avatar {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #e9edf4;
  color: var(--vpm-ink, #172033);
  font-size: 11px;
  font-weight: 800;
}
.vpm-private-conversation__body {
  min-width: 0;
  display: grid;
  gap: 3px;
}
.vpm-private-conversation__body strong,
.vpm-private-chat-thread__preview strong {
  overflow: hidden;
  color: var(--vpm-ink, #172033);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.vpm-private-conversation__body > span {
  overflow: hidden;
  color: var(--vpm-muted, #6d7789);
  font-size: 10px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.vpm-private-conversation__meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--vpm-muted, #6d7789);
  font-size: 9px;
}
.vpm-private-chat-thread {
  min-width: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
}
.vpm-private-chat-thread__preview {
  padding: 13px 16px;
  border-bottom: 1px solid var(--vpm-border, #e5e9f1);
}
.vpm-private-chat-thread__preview span,
.vpm-private-chat-thread__preview small {
  display: block;
  margin-top: 3px;
  color: var(--vpm-muted, #6d7789);
  font-size: 9px;
}
.vpm-private-chat-thread__messages {
  display: flex;
  flex-direction: column;
  gap: 9px;
  overflow: auto;
  padding: 18px;
  background: #fbfcfe;
}
.vpm-private-chat-message {
  max-width: min(74%, 620px);
  padding: 9px 11px;
  border: 1px solid var(--vpm-border, #e5e9f1);
  border-radius: 11px 11px 11px 3px;
  background: var(--vpm-panel, #fff);
  color: var(--vpm-ink, #172033);
  font-size: 11px;
  line-height: 1.55;
}
.vpm-private-chat-message.is-agent {
  align-self: flex-end;
  border-color: #263247;
  border-radius: 11px 11px 3px 11px;
  background: #263247;
  color: #fff;
}
.vpm-private-chat-message small {
  display: block;
  margin-top: 5px;
  opacity: .65;
  font-size: 8px;
}
.vpm-private-chat-reply {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 9px;
  padding: 12px;
  border-top: 1px solid var(--vpm-border, #e5e9f1);
}
.vpm-private-chat-reply textarea { min-height: 54px; }
.vpm-private-chat-reply .vpm-primary { min-height: 40px; }

.vpm-private-doc-tabs {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--vpm-border, #e5e9f1);
  border-radius: 11px;
  background: var(--vpm-panel-alt, #f9fafc);
}
.vpm-private-doc-tabs button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 11px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--vpm-muted, #6d7789);
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}
.vpm-private-doc-tabs button .dashicons { width: 15px; height: 15px; font-size: 15px; }
.vpm-private-doc-tabs button.is-active {
  background: var(--vpm-panel, #fff);
  color: var(--vpm-ink, #172033);
  box-shadow: 0 1px 3px rgba(20, 31, 51, .08);
}
.vpm-private-doc-builder {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 14px;
}
.vpm-private-doc-card {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 16px !important;
  border-radius: 14px !important;
}
.vpm-private-doc-card.is-primary {
  border-color: #cfd7e4;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
}
.vpm-private-doc-card > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.vpm-private-doc-card h3 { font-size: 13px; }
.vpm-private-vacation-card { max-width: 980px; }

.vpm-private-document-history {
  overflow: hidden;
  border: 1px solid var(--vpm-border, #e5e9f1);
  border-radius: 14px;
  background: var(--vpm-panel, #fff);
}
.vpm-private-document-history > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--vpm-border, #e5e9f1);
}
.vpm-private-document-history h3 { font-size: 12px; }
.vpm-private-document-history__list { display: grid; }
.vpm-private-generated-document {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--vpm-border, #e5e9f1);
}
.vpm-private-generated-document:last-child { border-bottom: 0; }
.vpm-private-generated-document__icon {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: var(--vpm-panel-alt, #f9fafc);
  color: var(--vpm-muted, #6d7789);
}
.vpm-private-generated-document__icon .dashicons { width: 17px; height: 17px; font-size: 17px; }
.vpm-private-generated-document > div:nth-child(2) { min-width: 0; display: grid; gap: 3px; }
.vpm-private-generated-document strong {
  overflow: hidden;
  color: var(--vpm-ink, #172033);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.vpm-private-generated-document small { color: var(--vpm-muted, #6d7789); font-size: 9px; }
.vpm-private-generated-document__actions { display: flex; align-items: center; gap: 6px; }

@media (max-width: 980px) {
  .vpm-private-chat-layout { grid-template-columns: 280px minmax(0, 1fr); }
  .vpm-private-doc-builder { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .vpm-private-workspace__intro { align-items: stretch; flex-direction: column; }
  .vpm-private-workspace__intro .vpm-secondary { align-self: flex-start; }
  .vpm-private-form-grid { grid-template-columns: 1fr; }
  .vpm-private-field--wide { grid-column: auto; }
  .vpm-private-chat-layout { grid-template-columns: 1fr; min-height: 0; }
  .vpm-private-conversation-list { max-height: 300px; overflow: auto; border-right: 0; border-bottom: 1px solid var(--vpm-border, #e5e9f1); }
  .vpm-private-chat-thread { min-height: 440px; }
  .vpm-private-chat-message { max-width: 88%; }
  .vpm-private-chat-reply { grid-template-columns: 1fr; }
  .vpm-private-chat-reply .vpm-primary { justify-self: end; }
  .vpm-private-doc-tabs { width: 100%; }
  .vpm-private-doc-tabs button { flex: 1 1 0; justify-content: center; }
  .vpm-private-generated-document { grid-template-columns: 34px minmax(0, 1fr); }
  .vpm-private-generated-document__actions { grid-column: 1 / -1; justify-content: flex-end; }
}

/* Personal profile information + multi sticky notes (0.13.93) */
.vpm-home-personal-stack {
  display: grid;
  gap: 14px;
}
.vpm-profile-information-panel .vpm-rich-content {
  white-space: normal;
}
.vpm-profile-information-panel .vpm-rich-content > :first-child,
.vpm-profile-sticky-note__body > :first-child { margin-top: 0; }
.vpm-profile-information-panel .vpm-rich-content > :last-child,
.vpm-profile-sticky-note__body > :last-child { margin-bottom: 0; }
.vpm-profile-information-panel .vpm-rich-content p,
.vpm-profile-sticky-note__body p { margin: 0 0 .72em; }
.vpm-profile-information-panel .vpm-rich-content ul,
.vpm-profile-information-panel .vpm-rich-content ol,
.vpm-profile-sticky-note__body ul,
.vpm-profile-sticky-note__body ol { margin: .45em 0 .8em 1.4em; padding: 0; }
.vpm-profile-information-panel .vpm-rich-content a,
.vpm-profile-sticky-note__body a { color: var(--vpm-brand); text-decoration: underline; overflow-wrap: anywhere; }

.vpm-profile-sticky-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  align-items: start;
  gap: 14px;
}
.vpm-profile-sticky-note {
  --personal-note-color: #fff3a8;
  position: relative;
  min-width: 0;
  min-height: 152px;
  padding: 14px 15px 12px;
  border: 1px solid color-mix(in srgb, var(--personal-note-color) 66%, #9b8c4d);
  border-radius: 4px 10px 6px 8px;
  background: var(--personal-note-color);
  color: #403d2b;
  box-shadow: 0 9px 20px rgba(44, 39, 18, .12), 0 2px 4px rgba(44, 39, 18, .08);
  transform: rotate(-.12deg);
  transition: transform .18s ease, box-shadow .18s ease;
  overflow: hidden;
}
.vpm-profile-sticky-note:nth-child(2n) { transform: rotate(.12deg); }
.vpm-profile-sticky-note:nth-child(3n) { transform: rotate(-.06deg); }
.vpm-profile-sticky-note:hover {
  z-index: 2;
  transform: translateY(-2px) rotate(0);
  box-shadow: 0 14px 27px rgba(44, 39, 18, .16), 0 3px 6px rgba(44, 39, 18, .09);
}
.vpm-profile-sticky-note::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 0;
  width: 17px;
  height: 17px;
  background: linear-gradient(135deg, transparent 49%, rgba(0,0,0,.07) 50%);
  pointer-events: none;
}
.vpm-profile-sticky-note > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(59, 54, 31, .10);
}
.vpm-profile-sticky-note > header > div {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}
.vpm-profile-sticky-note > header .dashicons-sticky {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  font-size: 14px;
  color: rgba(64, 61, 43, .58);
}
.vpm-profile-sticky-note > header strong {
  min-width: 0;
  overflow: hidden;
  color: inherit;
  font-size: 11px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.vpm-profile-sticky-note > header > button {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: rgba(64, 61, 43, .62);
  cursor: pointer;
}
.vpm-profile-sticky-note > header > button:hover { background: rgba(255,255,255,.32); color: #302e21; }
.vpm-profile-sticky-note > header > button .dashicons { width: 14px; height: 14px; font-size: 14px; }
.vpm-profile-sticky-note__body {
  margin-top: 11px;
  color: inherit !important;
  font-size: calc(10px * var(--vpm-user-text-scale));
  line-height: 1.58;
  overflow-wrap: anywhere;
}
.vpm-profile-sticky-note__body :is(p, div, span, li, strong, em, b, i) { color: inherit; }
.vpm-profile-sticky-note > footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
  color: rgba(64, 61, 43, .48);
  font-size: 8px;
}
.vpm-personal-notes-empty {
  min-height: 146px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 5px;
  padding: 20px;
  border: 1px dashed var(--vpm-border);
  border-radius: 8px;
  background: color-mix(in srgb, var(--vpm-panel) 88%, var(--vpm-panel-alt));
  color: var(--vpm-muted);
  text-align: center;
  cursor: pointer;
}
.vpm-personal-notes-empty .dashicons { width: 20px; height: 20px; font-size: 20px; }
.vpm-personal-notes-empty strong { color: var(--vpm-ink); font-size: 11px; }
.vpm-personal-notes-empty small { max-width: 330px; font-size: 9px; line-height: 1.5; }

.vpm-profile-home-information-editor { margin-top: 2px; }
.vpm-profile-home-information-editor .vpm-rich-editor__visual,
.vpm-profile-home-information-editor .vpm-rich-editor textarea { min-height: 180px; }
.vpm-profile-note-form { width: min(720px, calc(100vw - 36px)); }
.vpm-profile-note-form .vpm-rich-editor__visual,
.vpm-profile-note-form .vpm-rich-editor textarea { min-height: 220px; }
.vpm-profile-note-color-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.vpm-profile-note-color-row > label { width: 120px; }
.vpm-profile-note-color-row input[type="color"] { width: 100%; min-height: 40px; padding: 4px; }
.vpm-profile-note-swatches { display: flex; flex-wrap: wrap; gap: 7px; padding-bottom: 2px; }
.vpm-profile-note-swatches button {
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--swatch) 60%, #6f6a55);
  border-radius: 7px;
  background: var(--swatch);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.32);
  cursor: pointer;
}
.vpm-profile-note-swatches button:hover { transform: translateY(-1px); }

.vpm-theme-dark .vpm-profile-information-panel { color: var(--vpm-ink); }
.vpm-theme-dark .vpm-personal-notes-empty { background: var(--vpm-panel); }
.vpm-theme-dark .vpm-profile-sticky-note { color: #302e21; }

@media (max-width: 720px) {
  .vpm-profile-sticky-grid { grid-template-columns: minmax(0, 1fr); }
  .vpm-profile-sticky-note { min-height: 130px; transform: none !important; }
  .vpm-profile-note-form { width: calc(100vw - 20px); }
  .vpm-profile-note-color-row { align-items: stretch; }
  .vpm-profile-note-color-row > label { width: 100%; }
}

/* 0.13.94 — All Work respects each project's workflow order */
.vpm-allwork-project-boards {
  display: grid;
  gap: 14px;
  min-width: 0;
}
.vpm-allwork-board-note {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 11px;
  border: 1px solid var(--vpm-border);
  border-radius: 9px;
  background: var(--vpm-panel-alt);
  color: var(--vpm-muted);
  font-size: 11px;
}
.vpm-allwork-board-note .dashicons { width: 15px; height: 15px; font-size: 15px; }
.vpm-allwork-project-board {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--vpm-border);
  border-radius: var(--vpm-radius, 12px);
  background: var(--vpm-panel);
}
.vpm-allwork-project-board__header {
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  border-bottom: 1px solid var(--vpm-border);
  background: var(--vpm-panel-alt);
}
.vpm-allwork-project-board__toggle {
  min-width: 0;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 2px;
  border: 0;
  background: transparent;
  color: var(--vpm-ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.vpm-allwork-project-board__toggle > .dashicons {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  color: var(--vpm-muted);
  font-size: 15px;
}
.vpm-allwork-project-board__toggle > i {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
  background: var(--vpm-project-board-color, var(--vpm-primary));
}
.vpm-allwork-project-board__toggle > strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}
.vpm-allwork-project-board__toggle > span:last-child {
  min-width: 23px;
  padding: 3px 7px;
  border-radius: 99px;
  background: var(--vpm-panel);
  color: var(--vpm-muted);
  text-align: center;
  font-size: 10px;
}
.vpm-allwork-project-board__header > small {
  flex: 0 0 auto;
  color: var(--vpm-muted);
  font-size: 10px;
}
.vpm-allwork-project-board__body {
  min-width: 0;
  padding: 10px;
}
.vpm-allwork-project-board.is-collapsed .vpm-allwork-project-board__header { border-bottom: 0; }
.vpm-allwork-project-board.is-collapsed .vpm-allwork-project-board__body { display: none; }
.vpm-allwork-workflow-board {
  height: auto;
  min-height: 0;
  max-height: none;
  padding-bottom: 3px;
}
.vpm-allwork-workflow-board .vpm-board-column {
  height: clamp(300px, 45vh, 480px);
}
.vpm-list-group__workflow-note {
  margin-left: auto;
  color: var(--vpm-muted);
  font-size: 9px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .05em;
}
@media (max-width: 760px) {
  .vpm-allwork-project-board__header > small { display: none; }
  .vpm-allwork-project-board__body { padding: 8px; }
  .vpm-allwork-workflow-board .vpm-board-column {
    width: calc(100vw - 58px);
    min-width: calc(100vw - 58px);
    height: min(58vh, 440px);
  }
  .vpm-list-group__workflow-note { display: none; }
}

/* v0.13.97 — discussion images are separate from task Files. */
.vpm-comment-upload-zone {
  min-height: 64px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px dashed color-mix(in srgb, var(--vpm-brand) 48%, var(--vpm-border));
  border-radius: 10px;
  background: color-mix(in srgb, var(--vpm-brand) 3%, var(--vpm-panel));
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease;
}
.vpm-comment-upload-zone.is-over {
  border-color: var(--vpm-brand);
  background: color-mix(in srgb, var(--vpm-brand) 8%, var(--vpm-panel));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--vpm-brand) 10%, transparent);
}
.vpm-comment-upload-zone > .dashicons {
  width: 22px;
  height: 22px;
  color: var(--vpm-brand);
  font-size: 22px;
}
.vpm-comment-upload-zone > div { min-width: 0; display: grid; gap: 2px; }
.vpm-comment-upload-zone strong { color: var(--vpm-ink); font-size: 11px; }
.vpm-comment-upload-zone small { color: var(--vpm-muted); font-size: 9px; line-height: 1.45; }
.vpm-comment-upload-zone .vpm-secondary { white-space: nowrap; }

.vpm-comment-pending-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 8px;
}
.vpm-comment-pending-list:empty { display: none; }
.vpm-comment-pending-image {
  position: relative;
  min-width: 0;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--vpm-border);
  border-radius: 9px;
  background: var(--vpm-panel-alt);
}
.vpm-comment-pending-image > img {
  width: 54px;
  height: 46px;
  border-radius: 7px;
  object-fit: cover;
  background: var(--vpm-panel);
}
.vpm-comment-pending-image > div { min-width: 0; display: grid; gap: 2px; }
.vpm-comment-pending-image strong,
.vpm-comment-pending-image small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vpm-comment-pending-image strong { color: var(--vpm-ink); font-size: 10px; }
.vpm-comment-pending-image small { color: var(--vpm-muted); font-size: 9px; }
.vpm-comment-pending-image > button {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--vpm-muted);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}
.vpm-comment-pending-image > button:hover { background: color-mix(in srgb, var(--vpm-danger) 10%, var(--vpm-panel)); color: var(--vpm-danger); }

.vpm-comment-image {
  margin: 9px 0 2px;
  max-width: min(720px, 100%);
}
.vpm-comment-image a {
  display: block;
  overflow: hidden;
  border: 1px solid var(--vpm-border);
  border-radius: 9px;
  background: var(--vpm-panel);
}
.vpm-comment-image img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 520px;
  margin: 0 auto;
  object-fit: contain;
}
.vpm-comment-image figcaption {
  margin-top: 4px;
  color: var(--vpm-muted);
  font-size: 9px;
  overflow-wrap: anywhere;
}

@media (max-width: 680px) {
  .vpm-comment-upload-zone { grid-template-columns: auto minmax(0, 1fr); }
  .vpm-comment-upload-zone .vpm-secondary { grid-column: 1 / -1; justify-content: center; width: 100%; }
  .vpm-comment-pending-list { grid-template-columns: 1fr; }
}

/* v0.13.98 — deletable Discussion comments (own comments or project managers). */

/* 0.13.99 — explicit cross-project task creation + safe task transfer. */
.vpm-new-task-project-step {
  width: min(680px, calc(100vw - 42px));
  max-height: min(78dvh, 720px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.vpm-new-task-project-step .vpm-panel-header p {
  max-width: 560px;
  margin: 5px 0 0;
  color: var(--vpm-muted);
  font-size: 11px;
  line-height: 1.45;
}
.vpm-new-task-project-step .vpm-form-body {
  display: grid;
  gap: 12px;
  min-height: 0;
  overflow: hidden;
}
.vpm-new-task-project-search {
  position: relative;
  display: block;
}
.vpm-new-task-project-search > .dashicons {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 13px;
  width: 18px;
  height: 18px;
  color: var(--vpm-muted);
  font-size: 18px;
  pointer-events: none;
  transform: translateY(-50%);
}
.vpm-new-task-project-search input {
  width: 100%;
  min-height: 44px;
  padding: 8px 12px 8px 40px;
  border: 1px solid var(--vpm-border-strong, var(--vpm-border));
  border-radius: 10px;
  background: var(--vpm-panel);
  color: var(--vpm-ink);
  font: inherit;
}
.vpm-new-task-project-options {
  display: grid;
  gap: 6px;
  min-height: 0;
  max-height: 440px;
  padding-right: 3px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.vpm-new-task-project-option {
  width: 100%;
  min-height: 56px;
  display: grid;
  grid-template-columns: 11px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border: 1px solid var(--vpm-border);
  border-radius: 11px;
  background: var(--vpm-panel);
  color: var(--vpm-ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color .14s ease, background .14s ease, transform .14s ease;
}
.vpm-new-task-project-option:hover,
.vpm-new-task-project-option:focus-visible {
  border-color: color-mix(in srgb, var(--vpm-brand) 48%, var(--vpm-border));
  background: color-mix(in srgb, var(--vpm-brand) 6%, var(--vpm-panel));
  outline: none;
  transform: translateY(-1px);
}
.vpm-new-task-project-option > i {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--vpm-project-color, var(--vpm-brand));
}
.vpm-new-task-project-option > span:nth-child(2) {
  min-width: 0;
  display: grid;
  gap: 2px;
}
.vpm-new-task-project-option strong {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.vpm-new-task-project-option small {
  color: var(--vpm-muted);
  font-size: 10px;
}
.vpm-new-task-project-option > .dashicons {
  color: var(--vpm-muted);
  font-size: 18px;
}
.vpm-new-task-project-option[hidden] { display: none; }
.vpm-new-task-project-empty {
  margin: 0;
  padding: 28px 12px;
  color: var(--vpm-muted);
  text-align: center;
}
.vpm-new-task-project-empty[hidden] { display: none; }
.vpm-new-task-project-step.is-loading { opacity: .7; pointer-events: none; }

.vpm-task-project-field.is-transfer > span {
  color: color-mix(in srgb, var(--vpm-brand) 78%, var(--vpm-ink));
}
.vpm-task-project-field.is-transfer > small {
  display: block !important;
  max-width: 760px;
  line-height: 1.45;
}
.vpm-task-project-field.is-transfer .vpm-task-project-picker > summary {
  border-style: dashed;
}

@media (max-width: 700px) {
  .vpm-new-task-project-step {
    width: 100%;
    max-height: 90dvh;
  }
  .vpm-new-task-project-options { max-height: 56dvh; }
}

/* Cross-project task creation: require an explicit project without an extra modal step. */
.vpm-task-project-field.is-waiting .vpm-task-project-picker > summary {
  border-style: dashed;
  border-color: color-mix(in srgb, var(--vpm-muted) 55%, var(--vpm-border));
  background: color-mix(in srgb, var(--vpm-panel-alt) 72%, var(--vpm-panel));
}
.vpm-task-project-field.is-waiting .vpm-task-project-picker > summary > i.is-waiting {
  background: transparent;
  border: 2px solid var(--vpm-project-color, #94a3b8);
}
.vpm-task-project-field.is-waiting > small {
  display: block !important;
  color: color-mix(in srgb, #b45309 72%, var(--vpm-muted));
  line-height: 1.4;
}
.vpm-task-project-field.has-error .vpm-task-project-picker > summary {
  border-color: #dc3e45;
  box-shadow: 0 0 0 3px color-mix(in srgb, #dc3e45 10%, transparent);
}
.vpm-task-awaiting-project {
  min-width: 0;
  margin: 2px 0 0;
  padding: 12px 0 0;
  border: 0;
  border-top: 1px solid var(--vpm-border);
  opacity: .52;
}
.vpm-task-awaiting-project > legend {
  padding: 0 8px 0 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--vpm-muted);
  font-size: 10px;
  font-weight: 600;
}
.vpm-task-awaiting-project > legend .dashicons {
  width: 14px;
  height: 14px;
  font-size: 14px;
}
.vpm-task-form--awaiting-project .vpm-form-footer .vpm-primary[disabled] {
  opacity: .46;
  cursor: not-allowed;
  box-shadow: none;
}

/* 0.13.102 — let the new-task modal use the available desktop viewport height.
   The form remains content-sized and only scrolls internally when the viewport
   is genuinely too short for all task fields. */
@media (min-width: 701px) {
  .vpm-dialog--task:has(.vpm-task-form--new) {
    max-height: calc(100dvh - 32px);
  }

  .vpm-dialog--task .vpm-task-form--new {
    max-height: calc(100dvh - 32px);
  }
}

/* =========================================================
   Personal calendar subscription (0.13.103)
   ========================================================= */
.vpm-calendar-sync-editor {
  display: grid;
  gap: 18px;
}
.vpm-calendar-sync-editor > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.vpm-calendar-sync-editor > header > span.dashicons {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--vpm-border, #e8ddd4);
  border-radius: 12px;
  color: var(--vpm-primary, #cf5c28);
  background: var(--vpm-panel-alt, #faf7f4);
}
.vpm-calendar-sync-enable,
.vpm-calendar-sync-feed,
.vpm-calendar-sync-options,
.vpm-calendar-sync-projects,
.vpm-calendar-sync-note {
  border: 1px solid var(--vpm-border, #e8ddd4);
  border-radius: 14px;
  background: var(--vpm-panel-alt, #faf7f4);
  padding: 14px;
}
.vpm-calendar-sync-feed {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
}
.vpm-calendar-sync-feed > label {
  min-width: 0;
}
.vpm-calendar-sync-url {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  margin-top: 7px;
}
.vpm-calendar-sync-url input {
  min-width: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
}
.vpm-calendar-sync-options > strong,
.vpm-calendar-sync-projects > header strong {
  display: block;
  margin-bottom: 8px;
}
.vpm-calendar-sync-options__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}
.vpm-calendar-sync-options__grid label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0;
}
.vpm-calendar-sync-projects > header {
  margin-bottom: 10px;
}
.vpm-calendar-sync-projects > header small {
  display: block;
  margin-top: 3px;
}
.vpm-calendar-sync-project-list {
  display: grid;
  gap: 7px;
  max-height: 300px;
  overflow: auto;
  padding-right: 2px;
}
.vpm-calendar-sync-project {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  margin: 0;
  border: 1px solid var(--vpm-border, #e8ddd4);
  border-radius: 10px;
  background: var(--vpm-panel, #fff);
}
.vpm-calendar-sync-project > i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--project-color, #3157e7);
}
.vpm-calendar-sync-project > label {
  min-width: 0;
  display: grid;
}
.vpm-calendar-sync-project > label strong,
.vpm-calendar-sync-project > label small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.vpm-calendar-sync-project > label small {
  opacity: .65;
  margin-top: 1px;
}
.vpm-calendar-project-copy {
  white-space: nowrap;
}
.vpm-calendar-sync-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.vpm-calendar-sync-note > span {
  color: var(--vpm-primary, #cf5c28);
  margin-top: 1px;
}
.vpm-calendar-sync-note strong,
.vpm-calendar-sync-note small {
  display: block;
}
.vpm-calendar-sync-note small {
  margin-top: 3px;
}
@media (max-width: 760px) {
  .vpm-calendar-sync-feed {
    grid-template-columns: 1fr;
  }
  .vpm-calendar-sync-url {
    grid-template-columns: 1fr;
  }
  .vpm-calendar-sync-project {
    grid-template-columns: auto auto minmax(0, 1fr);
  }
  .vpm-calendar-project-copy {
    grid-column: 3;
    justify-self: start;
  }
}
.vpm-calendar-panel > header { position: relative; }
.vpm-calendar-sync-open {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.vpm-calendar-sync-editor.is-highlighted {
  outline: 3px solid color-mix(in srgb, var(--vpm-primary, #cf5c28) 28%, transparent);
  outline-offset: 3px;
  transition: outline-color .3s ease;
}
@media (max-width: 760px) {
  .vpm-calendar-sync-open {
    position: static;
    transform: none;
  }
}

/* =========================================================
   Native Google Calendar OAuth + project mapping (0.13.104)
   ========================================================= */
.vpm-google-calendar-native{display:grid;gap:16px}
.vpm-google-calendar-account,
.vpm-google-calendar-connect{display:flex;align-items:center;gap:14px;padding:16px;border:1px solid var(--vpm-border);border-radius:14px;background:var(--vpm-panel-alt)}
.vpm-google-calendar-account>.dashicons{font-size:24px;width:24px;height:24px}
.vpm-google-calendar-account>div:nth-child(2),
.vpm-google-calendar-connect>div{display:grid;gap:3px;min-width:0;flex:1}
.vpm-google-calendar-account strong,
.vpm-google-calendar-connect strong{font-weight:600;color:var(--vpm-ink)}
.vpm-google-calendar-account small,
.vpm-google-calendar-connect small{color:var(--vpm-muted);line-height:1.45}
.vpm-google-calendar-account-actions{display:flex!important;gap:8px;align-items:center;flex:0 0 auto!important}
.vpm-google-calendar-connect.is-warning{border-style:dashed}
.vpm-google-calendar-mappings{display:grid;gap:14px}
.vpm-google-calendar-mappings>header{display:flex;justify-content:space-between;gap:12px}
.vpm-google-calendar-mappings>header>div{display:grid;gap:3px}
.vpm-google-calendar-mappings>header small{color:var(--vpm-muted);line-height:1.45}
.vpm-google-calendar-map-list{display:grid;gap:8px}
.vpm-google-calendar-map-row{display:grid;grid-template-columns:minmax(180px,1fr) auto minmax(240px,1.15fr);align-items:center;gap:12px;padding:10px 12px;border:1px solid var(--vpm-border);border-radius:12px;background:var(--vpm-panel)}
.vpm-google-calendar-map-project{display:flex;align-items:center;gap:10px;min-width:0}
.vpm-google-calendar-map-project i{width:10px;height:10px;border-radius:50%;background:var(--project-color);flex:0 0 auto}
.vpm-google-calendar-map-project>div{display:grid;gap:2px;min-width:0}
.vpm-google-calendar-map-project strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.vpm-google-calendar-map-project small{color:var(--vpm-muted)}
.vpm-google-calendar-map-row>.dashicons{color:var(--vpm-muted)}
.vpm-google-calendar-map-row select{width:100%;min-width:0}
.vpm-google-calendar-import{padding-top:2px}
.vpm-calendar-legacy{border-top:1px solid var(--vpm-border);padding-top:14px}
.vpm-calendar-legacy>summary{cursor:pointer;color:var(--vpm-muted);font-weight:500;margin-bottom:12px}
.vpm-calendar-sync-note.is-error{border-color:rgba(220,62,69,.35);background:rgba(220,62,69,.06)}
@media (max-width:820px){
  .vpm-google-calendar-account,.vpm-google-calendar-connect{align-items:flex-start;flex-direction:column}
  .vpm-google-calendar-account-actions{width:100%}
  .vpm-google-calendar-map-row{grid-template-columns:1fr}
  .vpm-google-calendar-map-row>.dashicons{transform:rotate(90deg);justify-self:center}
}

/* =========================================================
   Selective Google Calendar sync (0.13.106)
   ========================================================= */
.vpm-google-calendar-map-row{
  grid-template-columns:auto minmax(180px,1fr) auto minmax(240px,1.15fr);
}
.vpm-google-calendar-project-toggle{
  display:inline-flex;
  align-items:center;
  gap:7px;
  white-space:nowrap;
  font-size:12px;
  font-weight:600;
  color:var(--vpm-muted);
}
.vpm-google-calendar-project-toggle input{
  width:16px;
  height:16px;
  margin:0;
}
.vpm-google-calendar-map-row.is-enabled{
  border-color:color-mix(in srgb,var(--vpm-accent) 34%,var(--vpm-border));
  background:color-mix(in srgb,var(--vpm-accent) 4%,var(--vpm-panel));
}
.vpm-google-calendar-map-row:not(.is-enabled) select{
  opacity:.58;
}
.vpm-google-task-sync{
  display:grid!important;
  gap:9px!important;
  padding:12px 14px!important;
  border:1px solid var(--vpm-border)!important;
  border-radius:12px!important;
  background:var(--vpm-panel-alt)!important;
}
.vpm-google-task-sync.is-project-mapped{
  border-color:color-mix(in srgb,var(--vpm-accent) 30%,var(--vpm-border))!important;
}
.vpm-google-task-sync__title{
  display:flex;
  align-items:center;
  gap:7px;
  font-weight:600;
  color:var(--vpm-ink);
}
.vpm-google-task-sync__choice{
  display:flex;
  align-items:flex-start;
  gap:10px;
  cursor:pointer;
}
.vpm-google-task-sync__choice input{
  width:17px;
  height:17px;
  margin:2px 0 0;
  flex:0 0 auto;
}
.vpm-google-task-sync__choice>span{
  display:grid;
  gap:2px;
}
.vpm-google-task-sync__choice strong{
  font-size:13px;
  color:var(--vpm-ink);
}
.vpm-google-task-sync__choice small{
  color:var(--vpm-muted);
  line-height:1.4;
}
.vpm-task-property-toggle{
  display:inline-flex;
  align-items:center;
  gap:8px;
  cursor:pointer;
  font-size:13px;
}
.vpm-task-property-toggle input{
  width:16px;
  height:16px;
  margin:0;
}
@media (max-width:820px){
  .vpm-google-calendar-map-row{grid-template-columns:1fr}
  .vpm-google-calendar-project-toggle{justify-self:start}
}

/* 0.13.107 — Ovidijus live employee timer controls. */
.vpm-team-timer-monitor__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  gap: 6px;
  padding: 5px;
  cursor: default;
}
.vpm-team-timer-monitor__open {
  min-width: 0;
  width: 100%;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 3px;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.vpm-team-timer-monitor__open:hover,
.vpm-team-timer-monitor__open:focus-visible {
  outline: 0;
}
.vpm-team-timer-monitor__open > img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.vpm-team-timer-monitor__open > span { min-width: 0; }
.vpm-team-timer-monitor__open small,
.vpm-team-timer-monitor__open strong,
.vpm-team-timer-monitor__open em { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vpm-team-timer-monitor__open small { color: var(--vpm-muted); font-size: 9px; }
.vpm-team-timer-monitor__open strong { margin: 2px 0; color: var(--vpm-ink); font-size: 11px; }
.vpm-team-timer-monitor__open em { color: #0284c7; font-size: 8px; font-style: normal; font-weight: 700; }
.vpm-team-timer-monitor__open > b { color: #0284c7; font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.vpm-team-timer-monitor__actions {
  display: flex;
  align-items: center;
  gap: 4px;
  padding-left: 4px;
  border-left: 1px solid var(--vpm-border);
}
.vpm-team-timer-monitor__actions > button {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--vpm-border);
  border-radius: 8px;
  background: var(--vpm-panel);
  color: var(--vpm-muted);
  cursor: pointer;
}
.vpm-team-timer-monitor__actions > button:hover,
.vpm-team-timer-monitor__actions > button:focus-visible {
  border-color: color-mix(in srgb, #0ea5e9 55%, var(--vpm-border));
  color: #0284c7;
  outline: 0;
}
.vpm-team-timer-monitor__actions > button.is-stop:hover,
.vpm-team-timer-monitor__actions > button.is-stop:focus-visible {
  border-color: color-mix(in srgb, #dc2626 55%, var(--vpm-border));
  color: #dc2626;
}
.vpm-team-timer-monitor__actions .dashicons { width: 15px; height: 15px; font-size: 15px; }
.vpm-theme-dark .vpm-team-timer-monitor__open > b,
.vpm-theme-dark .vpm-team-timer-monitor__open em { color: #7dd3fc; }

/* 0.13.109 — client priority permissions + full-row priority emphasis */
.vpm-list-panel tr.is-priority-row {
  --vpm-priority-row-bg: transparent;
  --vpm-priority-row-accent: transparent;
}
.vpm-list-panel tr.is-priority-high {
  --vpm-priority-row-bg: color-mix(in srgb, #e45f20 9%, var(--vpm-panel));
  --vpm-priority-row-accent: #e45f20;
}
.vpm-list-panel tr.is-priority-urgent {
  --vpm-priority-row-bg: color-mix(in srgb, #dc3e45 11%, var(--vpm-panel));
  --vpm-priority-row-accent: #dc3e45;
}
.vpm-list-panel tr.is-priority-row > td {
  background: var(--vpm-priority-row-bg) !important;
}
.vpm-list-panel tr.is-priority-row > td:first-child {
  box-shadow: inset 4px 0 0 var(--vpm-priority-row-accent);
}
.vpm-list-panel tr.is-priority-high:hover > td {
  background: color-mix(in srgb, #e45f20 14%, var(--vpm-panel-alt)) !important;
}
.vpm-list-panel tr.is-priority-urgent:hover > td {
  background: color-mix(in srgb, #dc3e45 17%, var(--vpm-panel-alt)) !important;
}
.vpm-theme-dark .vpm-list-panel tr.is-priority-high {
  --vpm-priority-row-bg: color-mix(in srgb, #e45f20 17%, var(--vpm-panel));
  --vpm-priority-row-accent: #ff8a55;
}
.vpm-theme-dark .vpm-list-panel tr.is-priority-urgent {
  --vpm-priority-row-bg: color-mix(in srgb, #dc3e45 20%, var(--vpm-panel));
  --vpm-priority-row-accent: #ff6f78;
}
.vpm-theme-dark .vpm-list-panel tr.is-priority-high:hover > td {
  background: color-mix(in srgb, #e45f20 24%, var(--vpm-panel-alt)) !important;
}
.vpm-theme-dark .vpm-list-panel tr.is-priority-urgent:hover > td {
  background: color-mix(in srgb, #dc3e45 27%, var(--vpm-panel-alt)) !important;
}

.vpm-member-list article {
  grid-template-columns: 38px minmax(0,1fr) 150px minmax(220px, auto) auto;
}
.vpm-member-client-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.vpm-member-client-controls label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 5px 8px;
  border: 1px solid var(--vpm-border);
  border-radius: 8px;
  background: var(--vpm-panel-alt);
  color: var(--vpm-ink);
  font-size: 9px;
  cursor: pointer;
}
.vpm-member-client-controls input { margin: 0; }

@media (max-width: 900px) {
  .vpm-member-list article { grid-template-columns: 38px minmax(0,1fr) 140px auto; }
  .vpm-member-client-controls { grid-column: 2 / -1; }
}
@media (max-width: 700px) {
  .vpm-member-list article { grid-template-columns: 34px minmax(0,1fr); }
  .vpm-member-list select,
  .vpm-member-list button,
  .vpm-member-client-controls { grid-column: 2; }
  .vpm-list-panel tr.is-priority-row {
    background: var(--vpm-priority-row-bg) !important;
    box-shadow: inset 4px 0 0 var(--vpm-priority-row-accent), var(--vpm-shadow-sm);
  }
  .vpm-list-panel tr.is-priority-row > td {
    background: transparent !important;
    box-shadow: none;
  }
}


/* 0.13.110 — board cards inherit high/urgent priority emphasis across the whole block. */
.vpm-task-card.is-priority-card {
  --vpm-priority-card-bg: var(--vpm-panel);
  --vpm-priority-card-border: var(--vpm-border);
  --vpm-priority-card-accent: transparent;
  background: var(--vpm-priority-card-bg) !important;
  border-color: var(--vpm-priority-card-border) !important;
  box-shadow: inset 4px 0 0 var(--vpm-priority-card-accent), var(--vpm-shadow-sm);
}
.vpm-task-card.is-priority-high {
  --vpm-priority-card-bg: color-mix(in srgb, #e45f20 10%, var(--vpm-panel));
  --vpm-priority-card-border: color-mix(in srgb, #e45f20 40%, var(--vpm-border));
  --vpm-priority-card-accent: #e45f20;
}
.vpm-task-card.is-priority-urgent {
  --vpm-priority-card-bg: color-mix(in srgb, #dc3e45 12%, var(--vpm-panel));
  --vpm-priority-card-border: color-mix(in srgb, #dc3e45 42%, var(--vpm-border));
  --vpm-priority-card-accent: #dc3e45;
}
.vpm-task-card.is-priority-high:hover {
  background: color-mix(in srgb, #e45f20 14%, var(--vpm-panel)) !important;
  border-color: color-mix(in srgb, #e45f20 55%, var(--vpm-border)) !important;
}
.vpm-task-card.is-priority-urgent:hover {
  background: color-mix(in srgb, #dc3e45 16%, var(--vpm-panel)) !important;
  border-color: color-mix(in srgb, #dc3e45 58%, var(--vpm-border)) !important;
}
.vpm-task-card.is-priority-card .vpm-task-card__key {
  color: color-mix(in srgb, var(--vpm-priority-card-accent) 54%, var(--vpm-muted));
}
.vpm-theme-dark .vpm-task-card.is-priority-high {
  --vpm-priority-card-bg: color-mix(in srgb, #e45f20 18%, var(--vpm-panel));
  --vpm-priority-card-border: color-mix(in srgb, #ff8a55 46%, var(--vpm-border));
  --vpm-priority-card-accent: #ff8a55;
}
.vpm-theme-dark .vpm-task-card.is-priority-urgent {
  --vpm-priority-card-bg: color-mix(in srgb, #dc3e45 22%, var(--vpm-panel));
  --vpm-priority-card-border: color-mix(in srgb, #ff6f78 48%, var(--vpm-border));
  --vpm-priority-card-accent: #ff6f78;
}
.vpm-theme-dark .vpm-task-card.is-priority-high:hover {
  background: color-mix(in srgb, #e45f20 24%, var(--vpm-panel)) !important;
}
.vpm-theme-dark .vpm-task-card.is-priority-urgent:hover {
  background: color-mix(in srgb, #dc3e45 28%, var(--vpm-panel)) !important;
}


/* 0.13.111 — urgent/high focus tasks in the top-bar work monitor. */
.vpm-team-timer-monitor.has-priority-focus > summary.is-priority-summary {
  --vpm-focus-color: #e45f20;
  --vpm-focus-bg: color-mix(in srgb, #e45f20 10%, var(--vpm-panel));
  --vpm-focus-border: color-mix(in srgb, #e45f20 50%, var(--vpm-border));
  border-color: var(--vpm-focus-border);
  background: var(--vpm-focus-bg);
  box-shadow: 0 5px 18px color-mix(in srgb, var(--vpm-focus-color) 12%, transparent);
}
.vpm-team-timer-monitor.has-priority-focus > summary.is-priority-summary.is-urgent {
  --vpm-focus-color: #dc3e45;
  --vpm-focus-bg: color-mix(in srgb, #dc3e45 12%, var(--vpm-panel));
  --vpm-focus-border: color-mix(in srgb, #dc3e45 54%, var(--vpm-border));
}
.vpm-team-timer-monitor.has-priority-focus[open] > summary.is-priority-summary { border-color: var(--vpm-focus-color); }
.vpm-team-timer-monitor.has-priority-focus > summary.is-priority-summary .vpm-team-timer-monitor__pulse.is-priority {
  color: var(--vpm-focus-color);
  background: color-mix(in srgb, var(--vpm-focus-color) 16%, var(--vpm-panel));
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--vpm-focus-color) 38%, transparent);
  animation: vpm-priority-focus-pulse 1.8s ease-out infinite;
}
@keyframes vpm-priority-focus-pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--vpm-focus-color) 38%, transparent); }
  72%, 100% { box-shadow: 0 0 0 7px transparent; }
}
.vpm-team-timer-monitor.has-priority-focus > summary.is-priority-summary .vpm-team-timer-monitor__copy small,
.vpm-team-timer-monitor.has-priority-focus > summary.is-priority-summary > b,
.vpm-team-timer-monitor.has-priority-focus > summary.is-priority-summary .vpm-priority-focus__date { color: var(--vpm-focus-color); }
.vpm-team-timer-monitor.has-priority-focus > summary.is-priority-summary > em { background: var(--vpm-focus-color); }
.vpm-priority-focus__date {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--vpm-muted);
  font-size: 9px;
  font-weight: 700;
  white-space: nowrap;
}
.vpm-priority-focus__date .dashicons { width: 12px; height: 12px; font-size: 12px; }
.vpm-priority-focus__date.is-overdue { color: var(--vpm-danger); }
.vpm-team-timer-monitor__panel {
  display: grid;
  gap: 10px;
}
.vpm-team-timer-monitor__section + .vpm-team-timer-monitor__section {
  padding-top: 8px;
  border-top: 1px solid var(--vpm-border);
}
.vpm-team-timer-monitor__section > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 5px 7px 10px;
  border-bottom: 1px solid var(--vpm-border);
}
.vpm-team-timer-monitor__section > header span strong,
.vpm-team-timer-monitor__section > header span small { display: block; }
.vpm-team-timer-monitor__section > header span strong { font-size: 13px; }
.vpm-team-timer-monitor__section > header span small { margin-top: 2px; color: var(--vpm-muted); font-size: 10px; }
.vpm-team-timer-monitor__section > header > b {
  min-width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: color-mix(in srgb, #0ea5e9 13%, var(--vpm-panel-alt));
  color: #0284c7;
  font-size: 11px;
}
.vpm-team-timer-monitor__section > div { display: grid; gap: 6px; padding-top: 8px; }
.vpm-team-timer-monitor__section > div > p { margin: 8px; color: var(--vpm-muted); font-size: 11px; text-align: center; }
.vpm-priority-focus > header > b { background: color-mix(in srgb, #dc3e45 12%, var(--vpm-panel-alt)); color: #dc3e45; }
.vpm-priority-focus__row {
  --vpm-focus-color: #e45f20;
  width: 100%;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 8px;
  border: 1px solid color-mix(in srgb, var(--vpm-focus-color) 40%, var(--vpm-border));
  border-left: 4px solid var(--vpm-focus-color);
  border-radius: 9px;
  background: color-mix(in srgb, var(--vpm-focus-color) 9%, var(--vpm-panel));
  color: var(--vpm-ink);
  text-align: left;
  cursor: pointer;
}
.vpm-priority-focus__row.is-urgent { --vpm-focus-color: #dc3e45; background: color-mix(in srgb, #dc3e45 12%, var(--vpm-panel)); }
.vpm-priority-focus__row:hover,
.vpm-priority-focus__row:focus-visible {
  border-color: color-mix(in srgb, var(--vpm-focus-color) 65%, var(--vpm-border));
  background: color-mix(in srgb, var(--vpm-focus-color) 15%, var(--vpm-panel));
  outline: 0;
}
.vpm-priority-focus__icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: color-mix(in srgb, var(--vpm-focus-color) 16%, var(--vpm-panel));
  color: var(--vpm-focus-color);
}
.vpm-priority-focus__icon .dashicons { width: 16px; height: 16px; font-size: 16px; }
.vpm-priority-focus__copy { min-width: 0; }
.vpm-priority-focus__copy small,
.vpm-priority-focus__copy strong,
.vpm-priority-focus__copy em { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vpm-priority-focus__copy small { color: var(--vpm-focus-color); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.vpm-priority-focus__copy strong { margin: 2px 0; color: var(--vpm-ink); font-size: 11px; }
.vpm-priority-focus__copy em { color: var(--vpm-muted); font-size: 8px; font-style: normal; font-weight: 700; }
.vpm-theme-dark .vpm-team-timer-monitor.has-priority-focus > summary.is-priority-summary.is-high {
  --vpm-focus-color: #ff8a55;
  --vpm-focus-bg: color-mix(in srgb, #e45f20 20%, var(--vpm-panel));
  --vpm-focus-border: color-mix(in srgb, #ff8a55 52%, var(--vpm-border));
}
.vpm-theme-dark .vpm-team-timer-monitor.has-priority-focus > summary.is-priority-summary.is-urgent {
  --vpm-focus-color: #ff6f78;
  --vpm-focus-bg: color-mix(in srgb, #dc3e45 24%, var(--vpm-panel));
  --vpm-focus-border: color-mix(in srgb, #ff6f78 56%, var(--vpm-border));
}
.vpm-theme-dark .vpm-priority-focus__row { --vpm-focus-color: #ff8a55; background: color-mix(in srgb, #e45f20 18%, var(--vpm-panel)); }
.vpm-theme-dark .vpm-priority-focus__row.is-urgent { --vpm-focus-color: #ff6f78; background: color-mix(in srgb, #dc3e45 22%, var(--vpm-panel)); }
.vpm-user-reduce-motion .vpm-team-timer-monitor__pulse.is-priority { animation: none !important; }
@media (max-width: 1250px) {
  .vpm-team-timer-monitor.has-priority-focus > summary.is-priority-summary .vpm-priority-focus__date { display: none; }
}


/* 0.13.112 — priority work gets its own centre top-bar slot; live timers stay on the right. */
.vpm-priority-focus-monitor {
  width: min(330px, 25vw);
  max-width: 330px;
  flex: 0 1 330px;
  margin-left: 0;
  margin-right: 0;
}
.vpm-priority-focus-monitor .vpm-team-timer-monitor__panel {
  left: 0;
  right: auto;
}
.vpm-team-timers-monitor {
  margin-left: auto;
}
.vpm-priority-focus-monitor + .vpm-team-timers-monitor {
  margin-left: auto;
}
@media (max-width: 1250px) {
  .vpm-priority-focus-monitor {
    width: 185px;
    max-width: 185px;
    flex-basis: 185px;
  }
}
@media (max-width: 980px) {
  .vpm-priority-focus-monitor {
    width: 44px;
    max-width: 44px;
    flex: 0 0 44px;
  }
  .vpm-priority-focus-monitor > summary {
    min-height: 38px;
    grid-template-columns: 1fr;
    place-items: center;
    padding: 4px;
  }
  .vpm-priority-focus-monitor .vpm-team-timer-monitor__copy,
  .vpm-priority-focus-monitor > summary > b,
  .vpm-priority-focus-monitor > summary > em,
  .vpm-priority-focus-monitor > summary > .vpm-priority-focus__date,
  .vpm-priority-focus-monitor > summary > .dashicons-arrow-down-alt2 { display: none; }
}
@media (max-width: 820px) {
  .vpm-priority-focus-monitor .vpm-team-timer-monitor__panel {
    position: fixed;
    top: 62px;
    right: 10px;
    left: 10px;
    width: auto;
    max-height: calc(100dvh - 78px);
  }
}


/* 0.13.113 — one timer monitor, priority focus on the left, view switch centred. */
.vpm-topbar.is-work-topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
}
.vpm-topbar__work-left,
.vpm-topbar__work-right {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}
.vpm-topbar__work-left { justify-content: flex-start; }
.vpm-topbar__work-right { justify-content: flex-end; }
.vpm-topbar.is-work-topbar > .vpm-view-switch {
  justify-self: center;
  margin-inline: 0;
}
.vpm-topbar__work-left .vpm-project-heading {
  flex: 0 1 auto;
  min-width: 0;
}
.vpm-topbar__work-left .vpm-priority-focus-monitor {
  width: min(330px, 100%);
  max-width: 330px;
  flex: 0 1 330px;
  margin: 0;
}
.vpm-topbar__work-right .vpm-team-timers-monitor {
  width: min(330px, 100%);
  max-width: 330px;
  flex: 0 1 330px;
  margin: 0;
}
.vpm-topbar__work-right .vpm-topbar__actions { margin-left: 0; }

/* The old separate green "Running" top-bar card was intentionally removed.
   Hide a stale cached node defensively if an older fragment survives an AJAX refresh. */
.vpm-topbar .vpm-active-timer { display: none !important; }

@media (max-width: 1500px) {
  .vpm-topbar__work-left .vpm-priority-focus-monitor,
  .vpm-topbar__work-right .vpm-team-timers-monitor {
    width: 220px;
    max-width: 220px;
    flex-basis: 220px;
  }
}
@media (max-width: 1180px) {
  .vpm-topbar.is-work-topbar { gap: 8px; }
  .vpm-topbar__work-left,
  .vpm-topbar__work-right { gap: 7px; }
  .vpm-topbar__work-left .vpm-priority-focus-monitor,
  .vpm-topbar__work-right .vpm-team-timers-monitor {
    width: 44px;
    max-width: 44px;
    flex: 0 0 44px;
  }
  .vpm-topbar__work-left .vpm-priority-focus-monitor > summary,
  .vpm-topbar__work-right .vpm-team-timers-monitor > summary {
    min-height: 38px;
    grid-template-columns: 1fr;
    place-items: center;
    padding: 4px;
  }
  .vpm-topbar__work-left .vpm-priority-focus-monitor .vpm-team-timer-monitor__copy,
  .vpm-topbar__work-left .vpm-priority-focus-monitor > summary > b,
  .vpm-topbar__work-left .vpm-priority-focus-monitor > summary > em,
  .vpm-topbar__work-left .vpm-priority-focus-monitor > summary > .vpm-priority-focus__date,
  .vpm-topbar__work-left .vpm-priority-focus-monitor > summary > .dashicons-arrow-down-alt2,
  .vpm-topbar__work-right .vpm-team-timers-monitor .vpm-team-timer-monitor__copy,
  .vpm-topbar__work-right .vpm-team-timers-monitor > summary > b,
  .vpm-topbar__work-right .vpm-team-timers-monitor > summary > em,
  .vpm-topbar__work-right .vpm-team-timers-monitor > summary > .dashicons-arrow-down-alt2 {
    display: none;
  }
}
@media (max-width: 820px) {
  .vpm-topbar.is-work-topbar {
    display: flex;
    justify-content: space-between;
    gap: 7px;
  }
  .vpm-topbar__work-left,
  .vpm-topbar__work-right { flex: 0 1 auto; }
  .vpm-topbar.is-work-topbar > .vpm-view-switch { order: 0; }
  .vpm-topbar__work-left .vpm-priority-focus-monitor .vpm-team-timer-monitor__panel,
  .vpm-topbar__work-right .vpm-team-timers-monitor .vpm-team-timer-monitor__panel {
    position: fixed;
    top: 62px;
    right: 10px;
    left: 10px;
    width: auto;
    max-height: calc(100dvh - 78px);
  }
}


/* 0.13.114 — priority dropdown interaction polish. */
.vpm-priority-focus__row {
  cursor: pointer;
  position: relative;
  z-index: 1;
}
.vpm-priority-focus__row:active {
  transform: translateY(0);
  filter: brightness(.98);
}


/* 0.13.115 performance — let Chromium skip painting off-screen grouped sections.
   This keeps long All Work / grouped List pages responsive on lower-end hardware. */
@supports (content-visibility: auto) {
  .vpm-grouped-lists > .vpm-list-group {
    content-visibility: auto;
    contain-intrinsic-size: auto 360px;
  }
}
\n\n/* 0.13.116 — low-latency modal composition.\n   Backdrop blur forces Chromium to continuously re-composite the large All Work\n   surface behind a task form. On low-power/integrated GPUs that can delay input\n   painting by seconds. A plain translucent backdrop looks nearly identical and\n   keeps typing on its own cheap layer. */\nbody.vpm-modal-open .vpm-modal-backdrop {\n  backdrop-filter: none !important;\n  -webkit-backdrop-filter: none !important;\n  background: rgba(15,23,42,.48);\n}\nbody.vpm-modal-open .vpm-topbar {\n  backdrop-filter: none !important;\n  -webkit-backdrop-filter: none !important;\n}\nbody.vpm-modal-open .vpm-dialog,\nbody.vpm-modal-open .vpm-drawer {\n  contain: layout paint style;\n  isolation: isolate;\n}\nbody.vpm-modal-open .vpm-dialog input,\nbody.vpm-modal-open .vpm-dialog textarea,\nbody.vpm-modal-open .vpm-dialog [contenteditable=\"true\"],\nbody.vpm-modal-open .vpm-drawer input,\nbody.vpm-modal-open .vpm-drawer textarea,\nbody.vpm-modal-open .vpm-drawer [contenteditable=\"true\"] {\n  transform: translateZ(0);\n}\n
/* 0.13.117 — per-task audit/history timeline. */
.vpm-task-history{border:1px solid var(--vpm-border);border-radius:14px;background:color-mix(in srgb,var(--vpm-panel) 92%,#f8fafc);overflow:hidden}
.vpm-task-history>summary{min-height:52px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 15px;cursor:pointer;list-style:none;font-weight:650;color:var(--vpm-ink)}
.vpm-task-history>summary::-webkit-details-marker{display:none}.vpm-task-history>summary>span{display:inline-flex;align-items:center;gap:8px}.vpm-task-history>summary .dashicons{width:17px;height:17px;font-size:17px;color:var(--vpm-accent)}
.vpm-task-history>summary b{min-width:25px;height:25px;padding:0 7px;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;background:#f1f5f9;color:var(--vpm-muted);font-size:11px}.vpm-task-history[open]>summary{border-bottom:1px solid var(--vpm-border)}
.vpm-task-history__list{display:grid}.vpm-task-history__entry{display:grid;grid-template-columns:34px minmax(0,1fr);gap:10px;padding:12px 15px;border-bottom:1px solid color-mix(in srgb,var(--vpm-border) 72%,transparent)}.vpm-task-history__entry:last-child{border-bottom:0}
.vpm-task-history__entry>img,.vpm-task-history__entry>.dashicons{width:32px;height:32px;border-radius:50%;object-fit:cover}.vpm-task-history__entry>.dashicons{display:inline-flex;align-items:center;justify-content:center;background:#f1f5f9;color:var(--vpm-muted);font-size:16px}
.vpm-task-history__who{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:6px 12px}.vpm-task-history__who strong{color:var(--vpm-ink);font-size:12px}.vpm-task-history__who time{color:var(--vpm-muted);font-size:10px;white-space:nowrap}.vpm-task-history__entry p{margin:3px 0 0;color:var(--vpm-muted);font-size:12px;line-height:1.45}.vpm-theme-dark .vpm-task-history{background:color-mix(in srgb,var(--vpm-panel) 94%,var(--vpm-app-bg))}.vpm-theme-dark .vpm-task-history>summary b,.vpm-theme-dark .vpm-task-history__entry>.dashicons{background:var(--vpm-surface-soft,var(--vpm-panel-soft))}

/* 0.13.118 — Ovidijus screen-share Client view */
.vpm-client-view .vpm-role-badge.is-client-preview,
.vpm-role-badge.is-client-preview {
  border-color: color-mix(in srgb, var(--vpm-success) 35%, var(--vpm-border));
  background: color-mix(in srgb, var(--vpm-success) 10%, var(--vpm-panel));
  color: var(--vpm-success);
}
.vpm-client-view-launch { color: var(--vpm-brand) !important; }
.vpm-client-view-nav button { pointer-events: none; }
.vpm-client-view-project .vpm-project-nav-item { cursor: default; }
.vpm-client-view-user__icon {
  width: 34px; height: 34px; border-radius: 50%; flex: 0 0 34px;
  display: inline-flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--vpm-success) 13%, var(--vpm-panel));
  color: var(--vpm-success);
}
.vpm-client-view-user__icon .dashicons { width: 18px; height: 18px; font-size: 18px; }
.vpm-client-view-exit-top {
  min-height: 38px; padding: 0 12px; border: 1px solid color-mix(in srgb, var(--vpm-success) 32%, var(--vpm-border));
  border-radius: 10px; background: color-mix(in srgb, var(--vpm-success) 8%, var(--vpm-panel)); color: var(--vpm-ink);
  display: inline-flex; align-items: center; gap: 7px; cursor: pointer; font: inherit;
}
.vpm-client-view-exit-top .dashicons { color: var(--vpm-success); }
.vpm-client-view-exit-top b { color: var(--vpm-success); font-size: 11px; text-transform: uppercase; letter-spacing: .04em; }
.vpm-client-view-exit-top:hover { background: color-mix(in srgb, var(--vpm-success) 13%, var(--vpm-panel)); }
.vpm-client-view-picker { width: min(720px, calc(100vw - 32px)); }
.vpm-client-view-project-options { display: grid; gap: 8px; max-height: min(56vh, 560px); overflow: auto; padding: 2px; }
.vpm-client-view-project-option {
  width: 100%; min-height: 64px; border: 1px solid var(--vpm-border); border-radius: 12px; background: var(--vpm-panel);
  display: grid; grid-template-columns: 12px minmax(0,1fr) 28px; align-items: center; gap: 12px; padding: 10px 14px;
  color: var(--vpm-ink); text-align: left; cursor: pointer; font: inherit;
}
.vpm-client-view-project-option:hover { border-color: color-mix(in srgb, var(--vpm-brand) 40%, var(--vpm-border)); background: var(--vpm-panel-alt); }
.vpm-client-view-project-option > i { width: 10px; height: 10px; border-radius: 3px; background: var(--vpm-project-color); }
.vpm-client-view-project-option > span:nth-child(2) { min-width: 0; display: grid; gap: 3px; }
.vpm-client-view-project-option strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vpm-client-view-project-option small { color: var(--vpm-muted); font-size: 11px; }
.vpm-client-view-project-option > .dashicons { color: var(--vpm-muted); }
.vpm-client-view-project-empty { margin: 18px 0; color: var(--vpm-muted); text-align: center; }
.vpm-client-view-picker__note {
  margin-top: 14px; border: 1px solid color-mix(in srgb, var(--vpm-success) 28%, var(--vpm-border)); border-radius: 10px;
  background: color-mix(in srgb, var(--vpm-success) 7%, var(--vpm-panel)); padding: 11px 13px; display: flex; align-items: center; gap: 9px; color: var(--vpm-muted);
}
.vpm-client-view-picker__note .dashicons { color: var(--vpm-success); }
.vpm-client-view-picker__note strong { color: var(--vpm-ink); }
.vpm-client-view .vpm-sidebar-resizer { display: none; }
.vpm-client-view .vpm-sidebar__section-tools,
.vpm-client-view .vpm-project-search { display: none !important; }
@media (max-width: 860px) {
  .vpm-client-view-exit-top span:not(.dashicons) { display: none; }
  .vpm-client-view-exit-top { padding-inline: 10px; }
}


/* 0.13.119 — cleaner Client view entry point + compact searchable project picker. */
.vpm-client-view-launch-top,
.vpm-client-view-exit-top {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--vpm-border);
  border-radius: 10px;
  background: var(--vpm-panel);
  color: var(--vpm-ink);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  cursor: pointer;
  font: inherit;
}
.vpm-client-view-launch-top .dashicons { color: var(--vpm-brand); }
.vpm-client-view-launch-top:hover {
  border-color: color-mix(in srgb, var(--vpm-brand) 38%, var(--vpm-border));
  background: color-mix(in srgb, var(--vpm-brand) 6%, var(--vpm-panel));
}
.vpm-sidebar__user > .vpm-theme-toggle,
.vpm-sidebar__user > .vpm-profile-settings,
.vpm-sidebar__user > .vpm-logout {
  flex: 0 0 30px;
}
.vpm-client-view-picker {
  width: min(640px, calc(100vw - 32px));
  max-height: min(82vh, 720px);
}
.vpm-client-view-picker .vpm-form-body {
  display: grid;
  gap: 12px;
  padding-top: 14px;
}
.vpm-client-view-search {
  min-height: 46px;
  border: 1px solid var(--vpm-border);
  border-radius: 10px;
  background: var(--vpm-panel);
  display: grid;
  grid-template-columns: 24px minmax(0,1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
}
.vpm-client-view-search > .dashicons { color: var(--vpm-muted); }
.vpm-client-view-search input {
  width: 100%;
  min-width: 0;
  height: 44px;
  padding: 0;
  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--vpm-ink);
  font: inherit;
}
.vpm-client-view-search small {
  color: var(--vpm-muted);
  font-size: 11px;
  white-space: nowrap;
}
.vpm-client-view-project-options {
  display: grid;
  gap: 7px;
  max-height: min(48vh, 410px);
  overflow: auto;
  padding: 2px 4px 2px 2px;
  overscroll-behavior: contain;
}
.vpm-client-view-project-option {
  min-height: 56px;
  padding: 8px 12px;
}
.vpm-client-view-project-option[hidden] { display: none !important; }
.vpm-client-view-project-option > .dashicons { font-size: 18px; }
.vpm-client-view-picker__note { margin-top: 0; }
@media (max-width: 980px) {
  .vpm-client-view-launch-top span:not(.dashicons),
  .vpm-client-view-exit-top span:not(.dashicons),
  .vpm-client-view-exit-top b { display: none; }
  .vpm-client-view-launch-top,
  .vpm-client-view-exit-top { padding-inline: 10px; }
}


/* 0.13.122 — cross-project Board cards mirror project Board priority emphasis. */
.vpm-mywork-board .vpm-mywork-task-card.is-priority-high,
.vpm-allwork-project-boards .vpm-mywork-task-card.is-priority-high {
  background: color-mix(in srgb, #e45f20 10%, var(--vpm-panel)) !important;
  border-color: color-mix(in srgb, #e45f20 40%, var(--vpm-border)) !important;
}
.vpm-mywork-board .vpm-mywork-task-card.is-priority-urgent,
.vpm-allwork-project-boards .vpm-mywork-task-card.is-priority-urgent {
  background: color-mix(in srgb, #dc3e45 12%, var(--vpm-panel)) !important;
  border-color: color-mix(in srgb, #dc3e45 42%, var(--vpm-border)) !important;
}
.vpm-theme-dark .vpm-mywork-board .vpm-mywork-task-card.is-priority-high,
.vpm-theme-dark .vpm-allwork-project-boards .vpm-mywork-task-card.is-priority-high {
  background: color-mix(in srgb, #e45f20 18%, var(--vpm-panel)) !important;
}
.vpm-theme-dark .vpm-mywork-board .vpm-mywork-task-card.is-priority-urgent,
.vpm-theme-dark .vpm-allwork-project-boards .vpm-mywork-task-card.is-priority-urgent {
  background: color-mix(in srgb, #dc3e45 22%, var(--vpm-panel)) !important;
}


/* 0.13.126 — bulk task creation from client feedback / pasted lists. */
.vpm-task-create-mode {
  display: inline-flex;
  gap: 4px;
  margin: 0 0 14px;
  padding: 4px;
  border: 1px solid var(--vpm-border);
  border-radius: 12px;
  background: var(--vpm-soft);
}
.vpm-task-create-mode button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 7px 12px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--vpm-muted);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}
.vpm-task-create-mode button .dashicons { width: 16px; height: 16px; font-size: 16px; }
.vpm-task-create-mode button.is-active {
  background: var(--vpm-panel);
  color: var(--vpm-ink);
  box-shadow: var(--vpm-shadow-sm);
}
.vpm-bulk-task-composer { display: none; }
.vpm-task-form.is-bulk-create .vpm-bulk-task-composer { display: block; }
.vpm-task-form.is-bulk-create .vpm-single-task-only { display: none !important; }
.vpm-bulk-task-composer {
  padding: 14px;
  border: 1px solid color-mix(in srgb, var(--vpm-accent) 26%, var(--vpm-border));
  border-radius: 14px;
  background: color-mix(in srgb, var(--vpm-accent) 4%, var(--vpm-panel));
}
.vpm-bulk-task-composer__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}
.vpm-bulk-task-composer__head > div { display: grid; gap: 3px; }
.vpm-bulk-task-composer__head strong { color: var(--vpm-ink); font-size: 14px; }
.vpm-bulk-task-composer__head small { color: var(--vpm-muted); line-height: 1.45; }
.vpm-bulk-task-composer__head > span { display: inline-flex; gap: 7px; white-space: nowrap; color: var(--vpm-muted); font-size: 12px; }
.vpm-bulk-task-composer__head > span b { color: var(--vpm-ink); font-weight: 700; }
.vpm-bulk-task-composer__head > span i { font-style: normal; opacity: .55; }
.vpm-bulk-task-composer textarea {
  display: block;
  width: 100%;
  min-height: 180px;
  resize: vertical;
  padding: 12px 14px;
  border: 1px solid var(--vpm-border);
  border-radius: 11px;
  background: var(--vpm-input, var(--vpm-panel));
  color: var(--vpm-ink);
  font: inherit;
  line-height: 1.55;
}
.vpm-bulk-task-help {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 9px;
  color: var(--vpm-muted);
  font-size: 12px;
  line-height: 1.45;
}
.vpm-bulk-task-help .dashicons { flex: 0 0 auto; width: 16px; height: 16px; font-size: 16px; margin-top: 1px; }
.vpm-bulk-task-preview { margin-top: 12px; }
.vpm-bulk-task-empty {
  padding: 14px;
  border: 1px dashed var(--vpm-border);
  border-radius: 10px;
  color: var(--vpm-muted);
  text-align: center;
  background: color-mix(in srgb, var(--vpm-soft) 70%, transparent);
}
.vpm-bulk-task-preview__list { display: grid; gap: 7px; max-height: 300px; overflow: auto; padding-right: 3px; }
.vpm-bulk-task-preview__item {
  display: grid;
  grid-template-columns: 20px 28px minmax(0,1fr);
  align-items: flex-start;
  gap: 9px;
  padding: 10px;
  border: 1px solid var(--vpm-border);
  border-radius: 10px;
  background: var(--vpm-panel);
  cursor: pointer;
}
.vpm-bulk-task-preview__item:has(input:not(:checked)) { opacity: .48; }
.vpm-bulk-task-preview__item input { margin-top: 3px; }
.vpm-bulk-task-preview__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--vpm-soft);
  color: var(--vpm-muted);
  font-size: 11px;
  font-weight: 800;
}
.vpm-bulk-task-preview__content { min-width: 0; display: grid; gap: 4px; }
.vpm-bulk-task-preview__content strong { overflow-wrap: anywhere; color: var(--vpm-ink); }
.vpm-bulk-task-preview__content small { color: var(--vpm-muted); }
.vpm-bulk-task-preview__content ul { margin: 2px 0 0 18px; padding: 0; color: var(--vpm-muted); line-height: 1.45; }
.vpm-bulk-task-preview__content li + li { margin-top: 2px; }
.vpm-theme-dark .vpm-bulk-task-composer { background: color-mix(in srgb, var(--vpm-accent) 7%, var(--vpm-panel)); }
@media (max-width: 720px) {
  .vpm-task-create-mode { width: 100%; }
  .vpm-task-create-mode button { flex: 1 1 0; justify-content: center; }
  .vpm-bulk-task-composer__head { display: grid; }
  .vpm-bulk-task-preview__list { max-height: 240px; }
}

.vpm-task-form.is-bulk-create .vpm-recurring-task,
.vpm-task-form.is-bulk-create .vpm-manual-time { display: none !important; }

/* v0.13.127 — spreadsheet import integrated into Multiple task creation */
.vpm-task-create-mode { flex-wrap: wrap; }
.vpm-task-form .vpm-bulk-task-sheet { display: none; }
.vpm-task-form.is-sheet-create .vpm-bulk-task-sheet { display: grid; gap: 10px; }
.vpm-task-form.is-sheet-create .vpm-bulk-task-paste { display: none; }
.vpm-bulk-sheet-actions { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; }
.vpm-bulk-sheet-actions .vpm-secondary { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 12px; border: 1px solid var(--vpm-border); border-radius: 9px; background: var(--vpm-panel); color: var(--vpm-ink); font-size: 12px; font-weight: 600; cursor: pointer; text-decoration: none; line-height: 1.25; }
.vpm-bulk-sheet-actions .vpm-secondary:hover { border-color: var(--vpm-accent); }
.vpm-bulk-sheet-actions .dashicons { font-size: 15px; width: 16px; height: 16px; }
.vpm-bulk-sheet-upload input[type=file] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.vpm-bulk-task-sheet [data-bulk-spreadsheet-status] { display: block; font-size: 12px; line-height: 1.45; color: var(--vpm-muted); overflow-wrap: anywhere; }
.vpm-bulk-spreadsheet-description { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; white-space: pre-line; }


/* 0.13.128 — keep desktop task filters within their own flex items.
 * The status button retained a 145px intrinsic minimum while the toolbar was
 * allowed to shrink its parent to 112px. It visibly overlaid the assignee
 * selector, especially when the selected state preset also had a count badge.
 */
.vpm-toolbar-grid .vpm-toolbar-controls > .vpm-state-filter {
  min-width: 0;
}
.vpm-toolbar-grid .vpm-toolbar-controls .vpm-state-filter__button {
  display: flex;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}
.vpm-toolbar-grid .vpm-toolbar-controls .vpm-state-filter__button > span:nth-child(2) {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.vpm-toolbar-grid .vpm-toolbar-controls .vpm-state-filter__button > .dashicons,
.vpm-toolbar-grid .vpm-toolbar-controls .vpm-state-filter__button > b {
  flex-shrink: 0;
}
.vpm-toolbar-grid .vpm-toolbar-controls > select,
.vpm-toolbar-grid .vpm-toolbar-controls > .vpm-state-filter,
.vpm-toolbar-grid .vpm-toolbar-controls > .vpm-mine-toggle {
  box-sizing: border-box;
}
@media (min-width: 821px) {
  .vpm-portal-app .vpm-toolbar-grid {
    /* The available workspace may be narrower than the viewport when users
       increase the sidebar width or browser zoom; wrap instead of overlap. */
    flex-wrap: wrap !important;
  }
  .vpm-portal-app .vpm-toolbar-grid .vpm-toolbar-controls > .vpm-state-filter {
    flex: 1 1 158px !important;
    min-width: 154px !important;
    max-width: 210px !important;
  }
  .vpm-portal-app .vpm-toolbar-grid .vpm-toolbar-controls > select {
    min-width: 126px !important;
    max-width: 210px !important;
  }
}
@media (max-width: 820px) {
  /* Mobile filter controls already render as a grid; keep each cell bounded. */
  .vpm-toolbar-grid .vpm-toolbar-controls > .vpm-state-filter {
    min-width: 0 !important;
    max-width: 100%;
  }
}


/* 0.13.129 — generated DOCX files: readable Nexus preview + explicit Word download. */
.vpm-private-generated-document__actions { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.vpm-private-generated-document__actions .vpm-secondary { display: inline-flex; align-items: center; gap: 5px; text-decoration: none; white-space: nowrap; }
.vpm-dialog--document-preview { width: min(840px, calc(100vw - 32px)); max-height: min(92dvh, 1050px); padding: 0; overflow: hidden; }
.vpm-generated-document-preview { display: flex; flex-direction: column; max-height: min(92dvh, 1050px); min-height: 0; }
.vpm-generated-document-preview > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--vpm-border); }
.vpm-generated-document-preview > header h2 { margin: 5px 0 0; font-size: 19px; color: var(--vpm-ink); }
.vpm-generated-document-preview > header small { font-size: 10px; font-weight: 700; letter-spacing: .11em; color: var(--vpm-muted); }
.vpm-generated-document-preview > footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 12px 20px; border-top: 1px solid var(--vpm-border); }
.vpm-generated-document-preview > footer span { color: var(--vpm-muted); font-size: 12px; }
.vpm-generated-document-preview > footer .vpm-primary { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.vpm-doc-preview__scroll { overflow: auto; min-height: 0; padding: 20px; background: color-mix(in srgb, var(--vpm-panel-alt) 80%, #e9ebf0); }
.vpm-doc-preview__paper { box-sizing: border-box; background: #fff; color: #24292e; padding: 36px clamp(18px, 6vw, 64px); width: 100%; max-width: 720px; min-height: 400px; margin: 0 auto; border: 1px solid #d9dce3; box-shadow: 0 5px 18px rgba(0,0,0,.08); font-family: Arial, sans-serif; font-size: 14px; line-height: 1.55; }
.vpm-doc-preview__paper p { margin: 0 0 10px; white-space: pre-wrap; overflow-wrap: anywhere; color: #24292e !important; }
.vpm-doc-preview__paper .vpm-doc-preview__title { margin: 12px 0; font-size: 19px; font-weight: 700; text-align: center; }
.vpm-doc-preview__paper .vpm-doc-preview__heading { margin: 20px 0 9px; font-size: 15px; font-weight: 700; }
.vpm-doc-preview__paper .vpm-doc-preview__center { text-align: center; }
.vpm-doc-preview__paper .vpm-doc-preview__right { text-align: right; }
.vpm-doc-preview__spacer { height: 20px; }
@media (max-width: 650px) {
  .vpm-dialog--document-preview, .vpm-generated-document-preview { max-height: 94dvh; }
  .vpm-doc-preview__scroll { padding: 8px; }
  .vpm-doc-preview__paper { padding: 24px 16px; }
  .vpm-generated-document-preview > footer { justify-content: stretch; }
}


/* 0.13.130 — dark mode contrast for real project content and portal extensions.
   Scope is deliberately narrow: don't recolor status/priority badges, sticky
   notes with intentional paper colors, image thumbnails or personal palettes. */

/* The older .vpm-rich-content base color is light-only (#344054). Content also
   commonly contains editor-created inline colors. Both need dark-aware text. */
.vpm-theme-dark :is(
  .vpm-home-main,
  .vpm-info-grid,
  .vpm-contact-notes,
  .vpm-contacts-view,
  .vpm-instruction-viewer,
  .vpm-profile-information-panel,
  #vpm-view-root > .vpm-panel
) .vpm-rich-content {
  color: var(--vpm-ink) !important;
}
.vpm-theme-dark :is(
  .vpm-home-main,
  .vpm-info-grid,
  .vpm-contact-notes,
  .vpm-contacts-view,
  .vpm-instruction-viewer,
  .vpm-profile-information-panel,
  #vpm-view-root > .vpm-panel
) .vpm-rich-content :is(p,div,span,li,dt,dd,strong,b,em,i,blockquote,h1,h2,h3,h4,h5,h6,td,th,code,pre) {
  color: var(--vpm-ink) !important;
  opacity: 1;
}
.vpm-theme-dark :is(
  .vpm-home-main,
  .vpm-info-grid,
  .vpm-contact-notes,
  .vpm-contacts-view,
  .vpm-instruction-viewer,
  .vpm-profile-information-panel,
  #vpm-view-root > .vpm-panel
) .vpm-rich-content a {
  color: color-mix(in srgb, var(--vpm-brand) 42%, #fff) !important;
  text-decoration-color: currentColor;
}
.vpm-theme-dark :is(
  .vpm-home-main,
  .vpm-info-grid,
  .vpm-contact-notes,
  .vpm-contacts-view,
  .vpm-instruction-viewer,
  .vpm-profile-information-panel,
  #vpm-view-root > .vpm-panel
) .vpm-rich-content a:hover {
  color: color-mix(in srgb, var(--vpm-brand) 25%, #fff) !important;
}
/* Embedded editor blocks, such as old contact details, must not take on the
   generic light-mode input backgrounds or low-contrast pasted font colors. */
.vpm-theme-dark :is(
  .vpm-information-form,
  .vpm-contact-notes,
  .vpm-instruction-form
) .vpm-rich-editor__visual {
  color: var(--vpm-ink) !important;
  background-color: var(--vpm-dark-input, var(--vpm-panel-alt)) !important;
}
.vpm-theme-dark :is(
  .vpm-information-form,
  .vpm-contact-notes,
  .vpm-instruction-form
) .vpm-rich-editor__visual :is(p,div,span,li,strong,b,em,i,h1,h2,h3,h4,blockquote) {
  color: var(--vpm-ink) !important;
}
.vpm-theme-dark :is(
  .vpm-information-form,
  .vpm-contact-notes,
  .vpm-instruction-form
) .vpm-rich-editor__visual a {
  color: color-mix(in srgb, var(--vpm-brand) 42%, #fff) !important;
}

/* Native information/contacts areas, including their empty states. */
.vpm-theme-dark :is(
  .vpm-contacts-hero h1,
  .vpm-contact-card__title h2,
  .vpm-contact-card__methods a,
  .vpm-contact-notes .vpm-section-title h2,
  .vpm-info-grid .vpm-section-title h2,
  .vpm-home-main .vpm-section-title h2,
  .vpm-empty-state h2
) {
  color: var(--vpm-ink) !important;
}
.vpm-theme-dark :is(
  .vpm-contacts-hero p,
  .vpm-contact-card header p,
  .vpm-contact-card__notes,
  .vpm-contact-notes .vpm-section-title p,
  .vpm-empty-state p
) {
  color: var(--vpm-muted) !important;
}
.vpm-theme-dark .vpm-contacts-hero,
.vpm-theme-dark .vpm-contact-card {
  border-color: var(--vpm-border) !important;
  color: var(--vpm-ink) !important;
}
.vpm-theme-dark .vpm-contact-card { background: var(--vpm-panel) !important; }
.vpm-theme-dark .vpm-contacts-hero {
  background: linear-gradient(120deg,
    color-mix(in srgb, var(--vpm-valovit-action) 9%, var(--vpm-panel)),
    var(--vpm-panel) 65%) !important;
}
.vpm-theme-dark .vpm-contact-card__methods a:hover {
  color: color-mix(in srgb, var(--vpm-valovit-action) 58%, #fff) !important;
}

/* Website Maintenance is a separately registered Nexus extension. Its cards
   have their own stylesheet, so ensure meaningful contrast at the mounting
   boundary without modifying status indicators, charts or badge colors. */
.vpm-theme-dark #vpm-view-root[data-vpm-extension="website-maintenance"] {
  color: var(--vpm-ink);
}
.vpm-theme-dark #vpm-view-root[data-vpm-extension="website-maintenance"] :is(h1,h2,h3,h4,h5,h6) {
  color: var(--vpm-ink) !important;
}
.vpm-theme-dark #vpm-view-root[data-vpm-extension="website-maintenance"] :is(p,dt,dd,li) {
  color: var(--vpm-muted) !important;
}
.vpm-theme-dark #vpm-view-root[data-vpm-extension="website-maintenance"] :is(a:not(.vpm-primary):not(.vpm-secondary), a:not(.vpm-primary):not(.vpm-secondary) span) {
  color: color-mix(in srgb, var(--vpm-brand) 38%, #fff) !important;
}
/* Captions/empty-state helpers in extension cards are especially hard to read
   when a saved palette uses a dark secondary-text color. */
.vpm-theme-dark #vpm-view-root[data-vpm-extension="website-maintenance"] :is(section,article) > :is(small, .vpm-muted) {
  color: var(--vpm-muted) !important;
}


/* 0.13.131 — Night launch action alerts (independent of saved task priority). */
.vpm-team-timer-monitor.has-priority-focus > summary.is-priority-summary.is-night {
  --vpm-focus-color: #c62842;
  --vpm-focus-bg: color-mix(in srgb, #e04a59 16%, var(--vpm-panel));
  --vpm-focus-border: color-mix(in srgb, #e04a59 68%, var(--vpm-border));
}
.vpm-priority-focus__row.is-night {
  --vpm-focus-color: #c62842;
  background: color-mix(in srgb, #e04a59 17%, var(--vpm-panel));
}
.vpm-theme-dark .vpm-team-timer-monitor.has-priority-focus > summary.is-priority-summary.is-night {
  --vpm-focus-color: #ffa2ae;
  --vpm-focus-bg: color-mix(in srgb, #e04a59 30%, var(--vpm-panel));
  --vpm-focus-border: #ff7686;
}
.vpm-theme-dark .vpm-priority-focus__row.is-night {
  --vpm-focus-color: #ff9caa;
  background: color-mix(in srgb, #e04a59 29%, var(--vpm-panel));
}
.vpm-night-alert-panel {
  position: fixed;
  z-index: 2147482900;
  right: 22px;
  bottom: 22px;
  width: min(420px, calc(100vw - 32px));
  max-height: min(65vh, 540px);
  overflow: auto;
  border: 1px solid #ee7c89;
  border-left: 5px solid #d02f47;
  border-radius: 14px;
  box-shadow: 0 16px 50px rgba(18,24,36,.28);
  background: #fff8f8;
  color: #2b2530;
  font-family: inherit;
}
.vpm-night-alert-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 16px;
  background: #fff0f1;
  border-bottom: 1px solid #f2c4ca;
}
.vpm-night-alert-head > .dashicons { color: #cc2946; font-size: 26px; width: 26px; height: 26px; }
.vpm-night-alert-head > span:nth-child(2) { display: grid; gap: 3px; flex: 1; min-width: 0; }
.vpm-night-alert-head strong { font-size: 13px; color: #8d1635; }
.vpm-night-alert-head small { font-size: 11px; color: #81525e; }
.vpm-night-alert-head button {
  border: 1px solid #f0c4cd;
  background: #fff;
  color: #af2c4c;
  border-radius: 8px;
  width: 28px; height: 28px;
  font-size: 22px;
  cursor: pointer;
}
.vpm-night-alert-items { display: grid; gap: 7px; padding: 12px; }
.vpm-night-alert-items button {
  display: grid; text-align: left; gap: 4px;
  width: 100%; padding: 10px 12px;
  border: 1px solid #efd0d4; border-radius: 9px;
  background: rgba(255,255,255,.85); cursor: pointer;
}
.vpm-night-alert-items button:hover { border-color: #db4358; background: #fff; }
.vpm-night-alert-items small { color: #b83b52; font-size: 10px; }
.vpm-night-alert-items strong { color: #372631; font-size: 12px; }
.vpm-night-alert-panel > p { margin: 0 12px 12px; color: #855563; font-size: 11px; }
@media (prefers-color-scheme: dark) {
  .vpm-night-alert-panel { background: #241a22; color: #f5e7ec; border-color: #db546b; }
  .vpm-night-alert-head { background: #35202c; border-color: #713747; }
  .vpm-night-alert-head strong { color: #ffc0c9; }
  .vpm-night-alert-head small { color: #d5a3b0; }
  .vpm-night-alert-head button { color: #f8ced6; background: #372632; border-color: #7b4557; }
  .vpm-night-alert-items button { background: #2d232b; border-color: #65424d; }
  .vpm-night-alert-items button:hover { background: #402a37; border-color: #f37d94; }
  .vpm-night-alert-items small { color: #fc9daf; }
  .vpm-night-alert-items strong { color: #f5e7ec; }
  .vpm-night-alert-panel > p { color: #d5a3b0; }
}
@media (max-width: 600px) {
  .vpm-night-alert-panel { right: 12px; bottom: 12px; max-height: 48vh; }
}


/* 0.13.132 — Personal, low-noise project grouping for My Work / All Work.
   Keeps priority row styling intact; colours remain opt-in for each profile. */
.vpm-list-project-colors-setting {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding-top: 12px;
  margin-top: 5px;
  border-top: 1px solid var(--vpm-border);
}
.vpm-list-project-colors-setting > span {
  color: var(--vpm-ink);
  font-size: 12px;
  font-weight: 600;
}
.vpm-list-project-colors-setting > select { max-width: 100%; }
.vpm-list-project-colors-setting > small {
  color: var(--vpm-muted);
  font-size: 11px;
  line-height: 1.5;
}

.vpm-portal-app.vpm-list-project-neutral .vpm-list-group--project {
  /* Three deliberately separate layers: project title, column labels and task rows.
     Derive all colors from the user's selected light/dark palette. */
  --vpm-neutral-title-bg: color-mix(in srgb, var(--vpm-ink) 14%, var(--vpm-panel));
  --vpm-neutral-columns-bg: color-mix(in srgb, var(--vpm-ink) 5%, var(--vpm-panel));
  --vpm-neutral-rule: color-mix(in srgb, var(--vpm-ink) 22%, var(--vpm-border));
  --vpm-neutral-soft-rule: color-mix(in srgb, var(--vpm-ink) 10%, var(--vpm-border));
  border: 1px solid var(--vpm-neutral-rule);
  border-radius: 5px;
  background: var(--vpm-panel);
  box-shadow: none !important;
}

.vpm-portal-app.vpm-theme-dark.vpm-list-project-neutral .vpm-list-group--project {
  --vpm-neutral-title-bg: color-mix(in srgb, var(--vpm-ink) 17%, var(--vpm-panel));
  --vpm-neutral-columns-bg: color-mix(in srgb, var(--vpm-ink) 8%, var(--vpm-panel));
}
.vpm-portal-app.vpm-list-project-neutral .vpm-list-group--project > header,
.vpm-portal-app.vpm-theme-dark.vpm-list-project-neutral .vpm-list-group--project > header {
  min-height: 40px;
  margin: 0;
  padding: 9px 12px !important;
  border: 0 !important;
  border-bottom: 2px solid var(--vpm-neutral-rule) !important;
  border-radius: 4px 4px 0 0 !important;
  background: var(--vpm-neutral-title-bg) !important;
  box-shadow: none !important;
}
.vpm-portal-app.vpm-list-project-neutral .vpm-list-group--project > header i {
  background: var(--vpm-muted) !important;
  box-shadow: none !important;
}
.vpm-portal-app.vpm-list-project-neutral .vpm-list-group--project > header h2 {
  color: var(--vpm-ink) !important;
  font-weight: 650;
}
.vpm-portal-app.vpm-list-project-neutral .vpm-list-group--project > header span {
  background: color-mix(in srgb, var(--vpm-muted) 13%, var(--vpm-panel)) !important;
  color: var(--vpm-ink) !important;
}
.vpm-portal-app.vpm-list-project-neutral .vpm-list-group--project .vpm-list-panel,
.vpm-portal-app.vpm-theme-dark.vpm-list-project-neutral .vpm-list-group--project .vpm-list-panel {
  border: 0 !important;
  border-radius: 0 0 6px 6px;
  box-shadow: none !important;
}
.vpm-portal-app.vpm-list-project-neutral .vpm-list-group--project .vpm-list-panel thead th,
.vpm-portal-app.vpm-theme-dark.vpm-list-project-neutral .vpm-list-group--project .vpm-list-panel thead th {
  background: var(--vpm-neutral-columns-bg) !important;
  color: color-mix(in srgb, var(--vpm-ink) 75%, var(--vpm-muted)) !important;
  font-weight: 650;
  border-right: 1px solid var(--vpm-neutral-soft-rule) !important;
  border-bottom: 1px solid var(--vpm-neutral-rule) !important;
}
.vpm-portal-app.vpm-list-project-neutral .vpm-list-group--project .vpm-list-panel tbody tr:not(.is-priority-row) > td,
.vpm-portal-app.vpm-theme-dark.vpm-list-project-neutral .vpm-list-group--project .vpm-list-panel tbody tr:not(.is-priority-row) > td {
  background: var(--vpm-panel) !important;
}
.vpm-portal-app.vpm-list-project-neutral .vpm-list-group--project .vpm-list-panel tbody tr:not(.is-priority-row):hover > td,
.vpm-portal-app.vpm-theme-dark.vpm-list-project-neutral .vpm-list-group--project .vpm-list-panel tbody tr:not(.is-priority-row):hover > td {
  background: color-mix(in srgb, var(--vpm-muted) 9%, var(--vpm-panel)) !important;
}
.vpm-portal-app.vpm-list-project-neutral .vpm-list-group--project .vpm-list-panel tbody td {
  border-right: 1px solid var(--vpm-neutral-soft-rule) !important;
  border-bottom: 1px solid var(--vpm-neutral-rule) !important;
}
.vpm-portal-app.vpm-list-project-neutral .vpm-list-group--project .vpm-list-panel tbody td:last-child,
.vpm-portal-app.vpm-list-project-neutral .vpm-list-group--project .vpm-list-panel thead th:last-child {
  border-right: 0 !important;
}
.vpm-portal-app.vpm-list-project-neutral .vpm-list-group--project .vpm-list-panel tbody tr:last-child > td {
  border-bottom: 0 !important;
}
.vpm-portal-app.vpm-list-project-neutral .vpm-list-group--project .vpm-list-panel tr.is-priority-row > td {
  background: var(--vpm-priority-row-bg) !important;
}
.vpm-portal-app.vpm-list-project-neutral .vpm-list-group--project .vpm-list-panel tr.is-priority-row > td:first-child {
  box-shadow: inset 4px 0 0 var(--vpm-priority-row-accent) !important;
}
.vpm-portal-app.vpm-list-project-neutral .vpm-list-group--project .vpm-list-panel tr.is-priority-high:hover > td {
  background: color-mix(in srgb, #e45f20 14%, var(--vpm-panel-alt)) !important;
}
.vpm-portal-app.vpm-list-project-neutral .vpm-list-group--project .vpm-list-panel tr.is-priority-urgent:hover > td {
  background: color-mix(in srgb, #dc3e45 17%, var(--vpm-panel-alt)) !important;
}
.vpm-portal-app.vpm-theme-dark.vpm-list-project-neutral .vpm-list-group--project .vpm-list-panel tr.is-priority-high:hover > td {
  background: color-mix(in srgb, #e45f20 24%, var(--vpm-panel-alt)) !important;
}
.vpm-portal-app.vpm-theme-dark.vpm-list-project-neutral .vpm-list-group--project .vpm-list-panel tr.is-priority-urgent:hover > td {
  background: color-mix(in srgb, #dc3e45 27%, var(--vpm-panel-alt)) !important;
}
@media (max-width: 700px) {
  .vpm-portal-app.vpm-list-project-neutral .vpm-list-group--project {
    border: 0;
    border-radius: 0;
    background: transparent;
  }
  .vpm-portal-app.vpm-list-project-neutral .vpm-list-group--project > header,
  .vpm-portal-app.vpm-theme-dark.vpm-list-project-neutral .vpm-list-group--project > header {
    border: 1px solid var(--vpm-neutral-rule) !important;
    border-radius: 7px !important;
    background: var(--vpm-neutral-title-bg) !important;
  }
  .vpm-portal-app.vpm-list-project-neutral .vpm-list-group--project .vpm-list-panel tr:not(.is-priority-row) {
    background: var(--vpm-panel) !important;
    border: 1px solid var(--vpm-neutral-rule) !important;
    box-shadow: none !important;
  }
  .vpm-portal-app.vpm-list-project-neutral .vpm-list-group--project .vpm-list-panel tr.is-priority-row {
    border: 1px solid var(--vpm-neutral-rule) !important;
    background: var(--vpm-priority-row-bg) !important;
    box-shadow: inset 4px 0 0 var(--vpm-priority-row-accent) !important;
  }
  .vpm-portal-app.vpm-list-project-neutral .vpm-list-group--project .vpm-list-panel tbody tr > td {
    background: transparent !important;
    border: 0 !important;
  }
}


/* 0.13.134 — Uniform neutral task rows and edge-to-edge grouped List tables.
   The previous even-row tint was removed. Browser scroll-gutter on horizontally
   scrollable tables reserved a blank strip on the right beside the final column.
   Group tables need their normal full width, with horizontal scrolling only
   when the selected column widths actually exceed the available space. */
@media (min-width: 701px) {
  .vpm-portal-app.vpm-list-project-neutral .vpm-list-group--project {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
  }
  .vpm-portal-app.vpm-list-project-neutral .vpm-list-group--project > .vpm-list-panel {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    padding: 0 !important;
    scrollbar-gutter: auto !important;
    overflow-y: hidden;
    background: var(--vpm-panel) !important;
  }
  .vpm-portal-app.vpm-list-project-neutral .vpm-list-group--project > .vpm-list-panel > table.vpm-resizable-table {
    width: 100% !important;
    box-sizing: border-box;
    margin: 0 !important;
  }
  .vpm-portal-app.vpm-list-project-neutral .vpm-list-group--project > .vpm-list-panel.is-fit-columns > table.vpm-resizable-table {
    min-width: 100% !important;
  }
  .vpm-portal-app.vpm-list-project-neutral .vpm-list-group--project > .vpm-list-panel.is-horizontal-scroll-enabled > table.vpm-resizable-table {
    min-width: var(--vpm-table-min, 1040px) !important;
  }
}
/* Consistent row fill regardless of row position, project, or theme.
   Only active pointer hover and manually assigned High/Urgent override it. */
.vpm-portal-app.vpm-list-project-neutral .vpm-list-group--project .vpm-list-panel tbody tr:not(.is-priority-row):not(:hover) > td,
.vpm-portal-app.vpm-theme-dark.vpm-list-project-neutral .vpm-list-group--project .vpm-list-panel tbody tr:not(.is-priority-row):not(:hover) > td {
  background: var(--vpm-panel) !important;
}
/* Preserve the same neutral body canvas if the browser has an overlay scroll
   track or a few sub-pixels left over from saved percentage column widths. */
.vpm-portal-app.vpm-list-project-neutral .vpm-list-group--project .vpm-list-panel {
  background: var(--vpm-panel) !important;
}


/* 0.13.135 — Action-orange project headers (neutral grouped List only). */
.vpm-portal-app.vpm-list-project-neutral .vpm-list-group--project > header,
.vpm-portal-app.vpm-theme-dark.vpm-list-project-neutral .vpm-list-group--project > header {
  background: var(--vpm-valovit-action, #c95b2a) !important;
  border-bottom: 2px solid var(--vpm-valovit-action-strong, #a8471f) !important;
  color: #fff !important;
}
.vpm-portal-app.vpm-list-project-neutral .vpm-list-group--project > header :is(h2,small,.vpm-list-group__workflow-note),
.vpm-portal-app.vpm-theme-dark.vpm-list-project-neutral .vpm-list-group--project > header :is(h2,small,.vpm-list-group__workflow-note) {
  color: #fff !important;
}
.vpm-portal-app.vpm-list-project-neutral .vpm-list-group--project > header > i,
.vpm-portal-app.vpm-theme-dark.vpm-list-project-neutral .vpm-list-group--project > header > i {
  background: #fff !important;
}
.vpm-portal-app.vpm-list-project-neutral .vpm-list-group--project > header > span,
.vpm-portal-app.vpm-theme-dark.vpm-list-project-neutral .vpm-list-group--project > header > span {
  background: rgba(255,255,255,.19) !important;
  color: #fff !important;
}

/* 0.13.135 — Wider, clearer, role-aware profile preferences. */
.vpm-dialog-wrap:has(.vpm-dialog--profile) { padding: clamp(8px,1.5vh,20px); }
.vpm-dialog--profile {
  width: min(1280px, calc(100vw - 32px)) !important;
  max-width: 1280px !important;
  max-height: min(96dvh, 1160px) !important;
}
.vpm-dialog--profile .vpm-profile-form {
  height: min(96dvh, 1160px) !important;
  max-height: min(96dvh, 1160px) !important;
}
.vpm-dialog--profile .vpm-profile-form > .vpm-form-body {
  padding: 24px clamp(14px,2.2vw,32px);
  scroll-padding-top: 12px;
  display: block;
}
.vpm-dialog--profile .vpm-profile-form > .vpm-form-body > [data-profile-pane] { width:100%; }
.vpm-dialog--profile .vpm-profile-form > .vpm-form-body > [data-profile-pane][hidden] { display:none !important; }
.vpm-profile-tabbar {
  flex: 0 0 auto;
  display: flex;
  gap: 5px;
  padding: 8px 18px;
  overflow-x: auto;
  scrollbar-width: thin;
  border-bottom: 1px solid var(--vpm-border);
  background: var(--vpm-panel);
}
.vpm-profile-tabbar > button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  flex: 0 0 auto;
  padding: 8px 15px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--vpm-muted);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.vpm-profile-tabbar > button .dashicons { font-size:16px; width:16px; height:16px; }
.vpm-profile-tabbar > button:hover { background: var(--vpm-panel-alt); color:var(--vpm-ink); }
.vpm-profile-tabbar > button.is-active {
  color:var(--vpm-valovit-action, #c95b2a);
  border-color:color-mix(in srgb, var(--vpm-valovit-action,#c95b2a) 27%,var(--vpm-border));
  background:color-mix(in srgb, var(--vpm-valovit-action,#c95b2a) 8%,var(--vpm-panel));
  font-weight:650;
}
.vpm-appearance-layout { display:grid; grid-template-columns:minmax(0,1.35fr) minmax(300px,.82fr); gap:22px; align-items:start; }
.vpm-appearance-controls { min-width:0; display:grid; gap:18px; }
.vpm-appearance-control-group { min-width:0; padding:17px; border:1px solid var(--vpm-border); border-radius:12px; background:var(--vpm-panel); }
.vpm-appearance-control-group > header { margin-bottom:13px; display:grid; gap:4px; }
.vpm-appearance-control-group > header strong { color:var(--vpm-ink); font-size:13px; }
.vpm-appearance-control-group > header small { color:var(--vpm-muted); font-size:11px; line-height:1.5; }
.vpm-appearance-control-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.vpm-appearance-control-group > fieldset { width:100%; min-width:0; margin:0; }
.vpm-appearance-control-group :is(input, select) { max-width:100%; }
.vpm-profile-preview {
  --pp-bg:#f5f7fb; --pp-panel:#fff; --pp-panel-alt:#f9fafc; --pp-board:#eef1f6;
  --pp-card:#fff; --pp-sidebar:#111827; --pp-input:#fff; --pp-border:#e5e9f1;
  --pp-ink:#172033; --pp-muted:#6d7789; --pp-accent:#3157e7;
  --pp-hover:#e9edf3;
  position:sticky;
  top:0;
  overflow:hidden;
  border:1px solid var(--vpm-border);
  border-radius:12px;
  background:var(--vpm-panel);
  box-shadow:var(--vpm-shadow-sm);
}
.vpm-profile-preview > header { display:grid; gap:5px; padding:14px 16px; border-bottom:1px solid var(--vpm-border); }
.vpm-profile-preview > header strong { display:flex; align-items:center; gap:7px; color:var(--vpm-ink); font-size:12px; }
.vpm-profile-preview > header small { color:var(--vpm-muted); font-size:10px; }
.vpm-profile-preview__scene {
  display:grid; grid-template-columns:78px minmax(0,1fr);
  background:var(--pp-bg); color:var(--pp-ink);
  min-height:295px;
  font-size:10px;
}
.vpm-profile-preview__sidebar { display:flex; flex-direction:column; gap:14px; padding:14px 9px; background:var(--pp-sidebar); color:#e7eaf0; }
.vpm-profile-preview__sidebar b { display:grid; place-items:center; width:24px; height:24px; border-radius:6px; background:var(--pp-accent); color:#fff; font-size:13px; }
.vpm-profile-preview__sidebar > span { font-size:9px; opacity:.85; }
.vpm-profile-preview__main { min-width:0; padding:11px; display:grid; gap:12px; align-content:start; }
.vpm-profile-preview__bar { display:flex; align-items:center; justify-content:space-between; gap:5px; padding:7px; border:1px solid var(--pp-border); border-radius:5px; background:var(--pp-panel); color:var(--pp-ink); }
.vpm-profile-preview__bar > button { padding:6px 7px; border:0; border-radius:5px; background:var(--vpm-valovit-action,#c95b2a); color:#fff; opacity:1; font-size:9px; }
.vpm-profile-preview__project { overflow:hidden; border:1px solid var(--pp-border); border-radius:5px; background:var(--pp-panel); }
.vpm-profile-preview__project-head { display:flex; align-items:center; justify-content:space-between; padding:9px; background:var(--vpm-valovit-action,#c95b2a); color:white; font-weight:650; }
.vpm-profile-preview[data-list-style="project"] .vpm-profile-preview__project-head { background:var(--pp-accent); }
.vpm-profile-preview__project-head > small { display:grid; place-items:center; border-radius:50%; width:17px; height:17px; background:rgba(255,255,255,.2); color:white; }
.vpm-profile-preview__columns,.vpm-profile-preview__task { display:grid; grid-template-columns:minmax(0,1.7fr) 65px 48px; align-items:center; gap:4px; padding:9px 8px; }
.vpm-profile-preview__columns { background:var(--pp-panel-alt); color:var(--pp-muted); font-size:9px; font-weight:700; text-transform:uppercase; }
.vpm-profile-preview__task { border-top:1px solid var(--pp-border); background:var(--pp-panel); color:var(--pp-ink); }
.vpm-profile-preview__task small { color:var(--pp-muted); font-size:9px; }
.vpm-profile-preview__task.is-high { background:color-mix(in srgb,#e45f20 12%,var(--pp-panel)); border-left:3px solid #e45f20; }
.vpm-profile-preview__task.is-urgent { background:color-mix(in srgb,#dc3e45 14%,var(--pp-panel)); border-left:3px solid #dc3e45; }
.vpm-profile-preview__task.is-high b { color:#e45f20; }
.vpm-profile-preview__task.is-urgent b { color:#dc3e45; }
.vpm-profile-preview__board { background:var(--pp-board); padding:9px; border:1px solid var(--pp-border); border-radius:5px; color:var(--pp-ink); }
.vpm-profile-preview__board > div { display:flex; justify-content:space-between; gap:5px; padding-bottom:7px; }
.vpm-profile-preview__board small { color:var(--pp-muted); }
.vpm-profile-preview__board > span { display:block; border:1px solid var(--pp-border); padding:9px; background:var(--pp-card); border-radius:5px; }
.vpm-profile-preview[data-density="spacious"] .vpm-profile-preview__task { padding-block:13px; }
.vpm-profile-preview[data-density="compact"] .vpm-profile-preview__task { padding-block:6px; }
.vpm-profile-preview > footer { display:flex; justify-content:space-between; align-items:center; padding:13px 15px; gap:6px; }
.vpm-profile-preview > footer > span { color:var(--vpm-muted); font-size:10px; }
.vpm-profile-preview__swatches { display:flex; flex-wrap:wrap; gap:3px; }
.vpm-profile-preview__swatches span { padding:2px; border:1px solid var(--vpm-border); border-radius:3px; }
.vpm-profile-preview__swatches i { width:11px; height:11px; display:block; border-radius:2px; }
@media (max-width: 1000px) {
  .vpm-appearance-layout { grid-template-columns:minmax(0,1fr); }
  .vpm-profile-preview { position:static; order:-1; }
}
@media (max-width: 700px) {
  .vpm-dialog--profile { width:100% !important; max-width:none !important; max-height:96dvh !important; }
  .vpm-dialog--profile .vpm-profile-form { height:96dvh !important; max-height:96dvh !important; }
  .vpm-profile-tabbar { padding:7px 9px; }
  .vpm-profile-tabbar > button { padding:7px 10px; font-size:11px; }
  .vpm-appearance-control-grid { grid-template-columns:1fr; }
  .vpm-appearance-control-group { padding:12px; }
}

/* 0.13.136 — Collapsible profile sections and actual-account read-only preview. */
.vpm-profile-tabbar > button .vpm-profile-tab-chevron { margin-left: 4px; font-size: 13px; width: 13px; height: 13px; opacity: .55; transition: transform .16s ease; }
.vpm-profile-tabbar > button.is-active .vpm-profile-tab-chevron { transform: rotate(180deg); opacity:1; }
.vpm-profile-collapsed-hint { margin:0; padding:16px 24px; color:var(--vpm-muted); font-size:12px; background:var(--vpm-panel-alt); border-bottom:1px solid var(--vpm-border); }
.vpm-profile-form.is-profile-collapsed { height:auto !important; min-height:0 !important; max-height:95dvh !important; }
.vpm-profile-form.is-profile-collapsed > .vpm-form-body { display:none !important; }
.vpm-profile-form.is-profile-collapsed .vpm-form-footer { min-height:54px; }
.vpm-appearance-control-accordion { display:block; }
.vpm-appearance-control-accordion > summary { display:flex; gap:12px; align-items:center; justify-content:space-between; cursor:pointer; list-style:none; }
.vpm-appearance-control-accordion > summary::-webkit-details-marker { display:none; }
.vpm-appearance-control-accordion > summary strong { display:block; color:var(--vpm-ink); font-size:13px; }
.vpm-appearance-control-accordion > summary small { display:block; color:var(--vpm-muted); margin-top:4px; font-size:11px; line-height:1.45; }
.vpm-appearance-control-accordion > summary > .dashicons { color:var(--vpm-muted); transition:transform .18s ease; }
.vpm-appearance-control-accordion[open] > summary { margin-bottom:14px; padding-bottom:10px; border-bottom:1px solid var(--vpm-border); }
.vpm-appearance-control-accordion[open] > summary > .dashicons { transform:rotate(180deg); }
.vpm-profile-mapping-details { border:1px solid var(--vpm-border); border-radius:11px; background:var(--vpm-panel); overflow:hidden; }
.vpm-profile-mapping-details > summary { display:flex; flex-wrap:wrap; align-items:center; gap:10px; padding:16px; cursor:pointer; list-style:none; color:var(--vpm-ink); }
.vpm-profile-mapping-details > summary::-webkit-details-marker { display:none; }
.vpm-profile-mapping-details > summary .dashicons { color:var(--vpm-accent); }
.vpm-profile-mapping-details > summary small { margin-left:auto; color:var(--vpm-muted); font-size:11px; }
.vpm-profile-mapping-details > .vpm-google-calendar-mappings { border-top:1px solid var(--vpm-border); padding:16px; }

.vpm-user-preview-picker { min-width:0; width:min(720px,94vw); color:var(--vpm-ink); }
.vpm-user-preview-picker .vpm-form-body { max-height:min(70vh,750px); overflow:auto; }
.vpm-user-preview-search { position:relative; display:flex; align-items:center; gap:8px; margin-bottom:12px; }
.vpm-user-preview-search > .dashicons { position:absolute; left:13px; z-index:1; color:var(--vpm-muted); }
.vpm-user-preview-search input { width:100%; min-height:43px; padding-left:40px !important; }
.vpm-user-preview-search small { white-space:nowrap; color:var(--vpm-muted); }
.vpm-user-preview-choices { display:grid; gap:7px; max-height:48vh; overflow-y:auto; padding:2px; }
.vpm-user-preview-choice { display:flex; gap:12px; align-items:center; width:100%; min-width:0; padding:11px 13px; background:var(--vpm-panel); color:var(--vpm-ink); border:1px solid var(--vpm-border); border-radius:9px; cursor:pointer; text-align:left; font:inherit; }
.vpm-user-preview-choice:hover { border-color:var(--vpm-accent); background:var(--vpm-panel-alt); }
.vpm-user-preview-choice[hidden] { display:none; }
.vpm-user-preview-choice > img { width:34px; height:34px; flex:0 0 34px; border-radius:50%; object-fit:cover; }
.vpm-user-preview-choice > span:nth-of-type(1) { min-width:0; flex:1; }
.vpm-user-preview-choice strong,.vpm-user-preview-choice small { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.vpm-user-preview-choice strong { color:var(--vpm-ink); font-size:13px; }
.vpm-user-preview-choice small { margin-top:3px; color:var(--vpm-muted); font-size:11px; }
.vpm-user-preview-choice em { color:var(--vpm-muted); font-size:11px; font-style:normal; white-space:nowrap; }
.vpm-user-preview-choice > .dashicons { color:var(--vpm-muted); }
.vpm-user-preview-safety { display:flex; gap:8px; align-items:center; margin:14px 0 0; padding:12px; border-radius:8px; color:var(--vpm-muted); background:var(--vpm-panel-alt); font-size:12px; }
.vpm-user-preview-launch,.vpm-user-preview-exit { display:inline-flex; align-items:center; justify-content:center; gap:7px; white-space:nowrap; min-height:36px; border-radius:9px; font:inherit; font-size:12px; cursor:pointer; padding:7px 10px; border:1px solid var(--vpm-border); background:var(--vpm-panel); color:var(--vpm-ink); }
.vpm-user-preview-launch:hover { border-color:var(--vpm-accent); }
.vpm-user-preview-exit { border-color:color-mix(in srgb,#d98216 35%,var(--vpm-border)); color:var(--vpm-ink); }
.vpm-user-preview-exit b { color:#d98216; font-weight:700; }
.vpm-user-preview-banner { display:flex; flex-wrap:wrap; align-items:center; gap:9px 12px; padding:10px 20px; border-bottom:1px solid color-mix(in srgb,#d98216 45%,var(--vpm-border)); background:color-mix(in srgb,#d98216 12%,var(--vpm-panel)); color:var(--vpm-ink); }
.vpm-user-preview-banner > .dashicons { color:#d98216; }
.vpm-user-preview-banner strong { color:var(--vpm-ink); font-size:12px; }
.vpm-user-preview-banner span:not(.dashicons) { font-size:11px; color:var(--vpm-muted); }
.vpm-user-preview-banner button { margin-left:auto; padding:5px 10px; background:var(--vpm-panel); color:var(--vpm-ink); border:1px solid var(--vpm-border); border-radius:7px; cursor:pointer; font:inherit; font-size:11px; }
.vpm-user-preview-empty { display:grid; gap:14px; align-content:center; justify-items:center; min-height:50vh; padding:35px; background:var(--vpm-bg); color:var(--vpm-ink); text-align:center; }
.vpm-user-preview-empty .dashicons { font-size:36px; width:36px; height:36px; color:#d98216; }
.vpm-user-preview-empty p { color:var(--vpm-muted); }
/* In preview, role-specific read data are real, but edit controls never submit. */
.vpm-user-preview [data-action="edit-profile"],
.vpm-user-preview [data-action="new-task"],
.vpm-user-preview [data-action="new-project"],
.vpm-user-preview [data-action="toggle-task-timer"],
.vpm-user-preview [data-action="board-quick-property"],
.vpm-user-preview [data-action^="edit-"],
.vpm-user-preview [data-action^="delete-"] { display:none !important; }
.vpm-user-preview .vpm-task-card { cursor:default; }
@media (max-width:800px) {
  .vpm-user-preview-banner { padding:9px 12px; }
  .vpm-user-preview-banner button { margin-left:0; }
  .vpm-user-preview-launch > span:last-child { display:none; }
  .vpm-user-preview-choices { max-height:42vh; }
  .vpm-profile-tabbar { flex-wrap:nowrap; }
}


/* 0.13.137 — Per-user project header colour in neutral grouped List views. */
.vpm-portal-app.vpm-list-project-neutral .vpm-list-group--project > header,
.vpm-portal-app.vpm-theme-dark.vpm-list-project-neutral .vpm-list-group--project > header {
  background: var(--vpm-neutral-project-header-bg, #c95b2a) !important;
  border-bottom-color: color-mix(in srgb, var(--vpm-neutral-project-header-bg, #c95b2a) 76%, #111827) !important;
  color: var(--vpm-neutral-project-header-ink, #fff) !important;
}
.vpm-portal-app.vpm-list-project-neutral .vpm-list-group--project > header :is(h2, small, .vpm-list-group__workflow-note),
.vpm-portal-app.vpm-theme-dark.vpm-list-project-neutral .vpm-list-group--project > header :is(h2, small, .vpm-list-group__workflow-note) {
  color: var(--vpm-neutral-project-header-ink, #fff) !important;
}
.vpm-portal-app.vpm-list-project-neutral .vpm-list-group--project > header > i,
.vpm-portal-app.vpm-theme-dark.vpm-list-project-neutral .vpm-list-group--project > header > i {
  background: var(--vpm-neutral-project-header-ink, #fff) !important;
}
.vpm-portal-app.vpm-list-project-neutral .vpm-list-group--project > header > span,
.vpm-portal-app.vpm-theme-dark.vpm-list-project-neutral .vpm-list-group--project > header > span {
  background: color-mix(in srgb, var(--vpm-neutral-project-header-ink, #fff) 19%, transparent) !important;
  color: var(--vpm-neutral-project-header-ink, #fff) !important;
}
/* Live preview is independent of the actual saved appearance. */
.vpm-profile-preview__project-head {
  background: var(--pp-project-header, #c95b2a);
  color: var(--pp-project-header-ink, #fff);
}
.vpm-profile-preview__project-head > small {
  color: inherit;
  background: color-mix(in srgb, currentColor 17%, transparent);
}
.vpm-profile-preview[data-list-style="project"] .vpm-profile-preview__project-head {
  color: #fff;
}
.vpm-project-header-color-setting { min-width: 0; }
.vpm-project-header-color-setting > small {
  display: block;
  margin-top: 4px;
  line-height: 1.4;
  color: var(--vpm-muted);
}


/* 0.13.138 — Profile tabs: prevent stray add-on sections and stretched blank bands. */
.vpm-dialog--profile .vpm-profile-form > .vpm-form-body {
  min-height: 0;
  max-height: none !important;
  flex: 1 1 auto;
  overflow-y: auto;
  display: block;
  padding: clamp(12px, 1.8vw, 24px) clamp(12px, 2.2vw, 28px) 22px;
  scrollbar-gutter: stable;
}
.vpm-dialog--profile .vpm-profile-form > .vpm-form-body > [data-profile-pane] {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  margin: 0;
  align-self: start;
  align-content: start;
}
.vpm-dialog--profile .vpm-profile-form > .vpm-form-body > .vpm-appearance-editor {
  display: block;
}
.vpm-dialog--profile .vpm-appearance-editor > header {
  margin-bottom: 16px;
}
.vpm-dialog--profile .vpm-appearance-layout,
.vpm-dialog--profile .vpm-appearance-controls {
  align-content: start;
  align-items: start;
}
.vpm-dialog--profile .vpm-appearance-control-group,
.vpm-dialog--profile .vpm-appearance-control-accordion {
  min-height: 0;
}
.vpm-dialog--profile .vpm-profile-form .vpm-profile-addon-panel {
  width: 100%;
  min-width: 0;
  margin-top: 16px;
  align-self: start;
}
.vpm-dialog--profile .vpm-notification-editor {
  align-content: start;
}
.vpm-dialog--profile .vpm-profile-form-section[data-profile-pane] > :last-child {
  margin-bottom: 0;
}
.vpm-dialog--profile .vpm-profile-tabbar {
  padding-block: 10px;
}
.vpm-dialog--profile .vpm-profile-form > .vpm-form-footer {
  position: static;
  z-index: 4;
}
@media (max-width:700px) {
  .vpm-dialog--profile .vpm-profile-form > .vpm-form-body {
    padding: 14px 12px 18px;
  }
  .vpm-dialog--profile .vpm-profile-form > .vpm-form-footer {
    gap: 8px;
  }
}

/* v0.13.140 · Shared workflow statuses */
.vpm-shared-scope-projects.is-hidden { display: none !important; }
.vpm-shared-scope-projects { max-height: 250px; overflow: auto; padding: 14px; border: 1px solid var(--vpm-border, #d8dce4); border-radius: 12px; }
.vpm-shared-scope-projects > strong { display: block; margin-bottom: 6px; }
.vpm-shared-scope-projects .vpm-check-row { margin: 6px 0; }
.vpm-shared-state-warning { padding: 12px 14px; background: rgba(234, 179, 8, .10); border-radius: 10px; line-height: 1.5; }
.vpm-shared-state-library__list { display: grid; gap: 8px; margin: 10px 0 14px; }
.vpm-workflow-shared-row { display: flex; align-items: center; gap: 12px; min-height: 55px; padding: 10px; border: 1px solid var(--vpm-border, #d8dce4); border-radius: 10px; }
.vpm-workflow-shared-row > i { width: 13px; height: 13px; border-radius: 50%; flex-shrink: 0; }
.vpm-workflow-shared-row > div { min-width: 0; flex: 1; }
.vpm-workflow-shared-row strong, .vpm-workflow-shared-row small { display: block; }
.vpm-workflow-shared-row small { margin-top: 3px; opacity: .7; }
.vpm-workflow-shared-row button { flex-shrink: 0; }
.vpm-shared-state-linked { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; opacity: .7; }
@media(max-width: 600px) { .vpm-workflow-shared-row { flex-wrap: wrap; } .vpm-workflow-shared-row button { width: 100%; } }

.vpm-shared-state-suggestions { padding: 12px; border-radius: 12px; background: rgba(100,116,139,.08); }
.vpm-shared-state-suggestions > strong { display: block; margin-bottom: 5px; }
.vpm-shared-state-suggestions > div { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.vpm-shared-state-suggestions button { display: inline-flex; align-items: center; gap: 7px; max-width: 100%; }
.vpm-shared-state-suggestions button i { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.vpm-shared-state-suggestions button small { opacity: .65; }

/* Nexus v0.13.142 — Profile > Views & performance. */
.vpm-views-performance-editor { display:grid; gap:16px; }
.vpm-views-performance-group { display:grid; gap:10px; min-width:0; padding:17px; border:1px solid var(--vpm-border); border-radius:12px; background:var(--vpm-panel); }
.vpm-views-performance-group h3 { margin:0; font-size:14px; color:var(--vpm-ink); }
.vpm-views-performance-group p { margin:0 0 4px; color:var(--vpm-muted); font-size:12px; line-height:1.5; }
.vpm-views-performance-help { display:block; color:var(--vpm-muted); font-size:11px; line-height:1.6; }
.vpm-views-performance-option,
.vpm-views-performance-editor .vpm-performance-control {
  display:grid; grid-template-columns:24px minmax(0,1fr) auto;
  align-items:center; gap:13px; width:100%; min-height:66px; padding:13px 16px;
  border:1px solid var(--vpm-border); border-radius:11px; background:var(--vpm-panel-alt);
  color:var(--vpm-ink); text-align:left; cursor:pointer;
}
.vpm-views-performance-option:hover,
.vpm-views-performance-editor .vpm-performance-control:hover { border-color:var(--vpm-valovit-action,#3157e7); }
.vpm-views-performance-option > .dashicons:first-child,
.vpm-views-performance-editor .vpm-performance-control > .dashicons { color:var(--vpm-valovit-action,#3157e7); font-size:21px; }
.vpm-views-performance-option > span:nth-child(2),
.vpm-performance-control__label { min-width:0; display:grid; gap:4px; }
.vpm-views-performance-option strong,
.vpm-views-performance-editor .vpm-performance-control strong { color:var(--vpm-ink); font-size:13px; font-weight:650; }
.vpm-views-performance-option small,
.vpm-views-performance-editor .vpm-performance-control small { color:var(--vpm-muted); font-size:11px; white-space:normal; line-height:1.4; }
.vpm-views-performance-option > .dashicons:last-child { color:var(--vpm-muted); font-size:16px; }
.vpm-views-performance-editor .vpm-performance-control > b { padding:6px 9px; border-radius:6px; background:var(--vpm-panel); color:var(--vpm-muted); font-size:11px; }
.vpm-views-performance-editor .vpm-performance-control.is-active { border-color:#0f766e; background:color-mix(in srgb,#0f766e 9%,var(--vpm-panel)); }
.vpm-views-performance-editor .vpm-performance-control.is-active > b { background:#0f766e; color:white; }
.vpm-performance-batch { display:flex; flex-wrap:wrap; align-items:center; gap:10px; margin:14px 0 24px; padding:13px 15px; border:1px solid var(--vpm-border); border-radius:10px; background:var(--vpm-panel-alt); color:var(--vpm-ink); font-size:12px; }
.vpm-performance-batch > span:nth-child(2) { flex:1 1 230px; }
.vpm-performance-batch > .dashicons { color:var(--vpm-valovit-action,#3157e7); }
.vpm-performance-batch button { padding:8px 11px; border:1px solid var(--vpm-border); border-radius:7px; background:var(--vpm-panel); color:var(--vpm-ink); font:inherit; font-weight:650; cursor:pointer; }
.vpm-performance-batch button:hover { border-color:var(--vpm-valovit-action,#3157e7); }
/* Avoid universal descendant overrides: they forced frequent style recalculation
 * across large task boards on slower laptops in 0.13.141. Keep only a handful
 * of expensive surface treatments light, without touching editors or loaders. */
.vpm-portal-app.vpm-performance-mode :is(.vpm-task-card,.vpm-summary-card,.vpm-board-column,.vpm-list-panel,.vpm-panel,.vpm-topbar,.vpm-toolbar,.vpm-project-overview-card) { backdrop-filter:none; -webkit-backdrop-filter:none; box-shadow:none; }
.vpm-portal-app.vpm-performance-mode :is(.vpm-task-card,.vpm-project-overview-card,.vpm-summary-card) { transition:none; }
@media(max-width:700px) { .vpm-views-performance-option,.vpm-views-performance-editor .vpm-performance-control { grid-template-columns:22px minmax(0,1fr) auto; padding:11px; } .vpm-performance-batch { align-items:stretch; } .vpm-performance-batch button { flex:1 0 auto; } }

/* v0.13.144 — Discussion comment formatting and compact screenshot previews.
   Plain-text comments are stored with real newlines: normal HTML rendering
   collapsed them into one line. Preserve that formatting for old and new posts. */
.vpm-task-detail .vpm-comment__content {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: normal;
}
/* Structured HTML retains its native paragraph, list and attachment layout. */
.vpm-task-detail .vpm-comment__content :is(p, ul, ol, li, blockquote, figure, figcaption, pre) {
  white-space: normal;
}
.vpm-task-detail .vpm-comment-form textarea {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
/* A screenshot in Discussion is an attachment preview, not a second task UI. */
.vpm-task-detail .vpm-comment__content .vpm-comment-image {
  width: fit-content;
  max-width: min(380px, 100%);
  margin: 10px 0 4px;
}
.vpm-task-detail .vpm-comment__content .vpm-comment-image a {
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: 230px;
  overflow: hidden;
}
.vpm-task-detail .vpm-comment__content .vpm-comment-image img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 230px;
  object-fit: contain;
}
.vpm-task-detail .vpm-comment__content .vpm-comment-image figcaption {
  max-width: 380px;
}

/* 0.13.145 — Google calendar diagnostics / safe mapping state. */
.vpm-google-calendar-connection-alert {display:flex;align-items:flex-start;gap:10px;}
.vpm-google-calendar-connection-alert > div {display:grid;gap:7px;min-width:0;}
.vpm-google-calendar-connection-alert small {line-height:1.45;overflow-wrap:anywhere;}
.vpm-google-calendar-map-row select:disabled,
.vpm-google-calendar-map-row [data-google-calendar-project-enabled]:disabled {cursor:not-allowed;}
.vpm-google-calendar-account-actions{flex-wrap:wrap;}


/* 0.13.151 — height-led project branding.
   Uploaded logos should behave like wordmarks: fixed visual height, natural
   width from the source image, and no square treatment. Only fallback initials
   keep the coloured square tile. */
.vpm-portal-app .vpm-project-brand {
  display:inline-flex;
  justify-content:center;
  align-items:center;
  position:relative;
  flex:0 0 auto;
  vertical-align:middle;
  line-height:1;
}
.vpm-portal-app .vpm-project-brand__fallback { color:inherit; font-size:inherit; font-weight:inherit; }
.vpm-portal-app .vpm-project-brand.has-logo {
  --vpm-logo-height:32px;
  --vpm-logo-safe-width:none;
  box-sizing:border-box;
  display:inline-flex;
  align-items:center;
  justify-content:flex-start;
  flex:0 0 auto;
  width:auto;
  height:auto;
  min-width:0;
  min-height:0;
  max-width:none;
  max-height:none;
  padding:0;
  margin:0;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
  overflow:visible;
}
.vpm-portal-app .vpm-project-brand.has-logo > img {
  box-sizing:border-box;
  display:none;
  flex:0 0 auto;
  width:auto;
  height:auto;
  min-width:0;
  min-height:0;
  max-width:var(--vpm-logo-safe-width);
  max-height:var(--vpm-logo-height);
  aspect-ratio:auto;
  object-fit:contain;
  object-position:left center;
  vertical-align:middle;
  padding:0;
  margin:0;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
}
.vpm-portal-app .vpm-project-brand--light.has-logo > img.vpm-project-brand__light,
.vpm-portal-app .vpm-project-brand--dark.has-logo > img.vpm-project-brand__dark,
.vpm-portal-app:not(.vpm-theme-dark) .vpm-project-brand--auto.has-logo > img.vpm-project-brand__light,
.vpm-portal-app.vpm-theme-dark .vpm-project-brand--auto.has-logo > img.vpm-project-brand__dark { display:block; }

/* Sidebar: keep a stable row height, but let logo width follow the image. */
.vpm-portal-app .vpm-project-nav-item.has-project-logo,
.vpm-portal-app.vpm-workspace-smooth .vpm-project-nav-item.has-project-logo {
  grid-template-columns:max-content minmax(0,1fr) auto;
  column-gap:10px;
}
.vpm-portal-app .vpm-project-nav-item__icon.has-project-logo,
.vpm-portal-app.vpm-workspace-smooth .vpm-project-nav-item__icon.has-project-logo {
  --vpm-logo-height:24px;
  --vpm-logo-safe-width:120px;
  display:flex;
  flex:0 0 auto;
  place-items:unset;
  align-items:center;
  justify-content:flex-start;
  box-sizing:border-box;
  width:auto;
  height:24px;
  min-width:0;
  min-height:24px;
  max-width:none;
  padding:0;
  margin-right:2px;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
  overflow:visible;
  text-transform:none;
}
.vpm-portal-app .vpm-project-nav-item__icon.has-project-logo .vpm-project-brand.has-logo {
  --vpm-logo-height:24px;
  --vpm-logo-safe-width:120px;
}
/* Project dashboard card and project heading identity. */
.vpm-portal-app .vpm-project-overview-card > header > i.has-project-logo,
.vpm-portal-app .vpm-project-heading__icon.has-project-logo {
  display:flex;
  flex:0 0 auto;
  justify-content:flex-start;
  align-items:center;
  width:auto;
  height:auto;
  min-width:0;
  min-height:0;
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
  overflow:visible;
}
.vpm-portal-app .vpm-project-overview-card > header > i.has-project-logo .vpm-project-brand.has-logo {
  --vpm-logo-height:44px;
  --vpm-logo-safe-width:220px;
}
.vpm-portal-app .vpm-project-heading__icon.has-project-logo .vpm-project-brand.has-logo {
  --vpm-logo-height:48px;
  --vpm-logo-safe-width:240px;
}
/* Grouped task-list and All Work board headers. */
.vpm-portal-app .vpm-list-group--project > header > .vpm-project-brand:not(.has-logo),
.vpm-portal-app .vpm-allwork-project-board__toggle > .vpm-project-brand:not(.has-logo) { display:none; }
.vpm-portal-app .vpm-list-group--project > header:has(> .vpm-project-brand.has-logo) {
  min-height:48px;
  align-items:center;
}
.vpm-portal-app .vpm-list-group--project > header > .vpm-project-brand.has-logo {
  --vpm-logo-height:36px;
  --vpm-logo-safe-width:220px;
  flex:0 0 auto;
  width:auto !important;
  height:auto !important;
  min-width:0 !important;
  min-height:0;
  max-width:none !important;
  max-height:none !important;
  padding:0 !important;
  margin-right:10px;
  border:0 !important;
  border-radius:0 !important;
  background:transparent !important;
  box-shadow:none !important;
  overflow:visible;
}
.vpm-portal-app .vpm-allwork-project-board__toggle > .vpm-project-brand.has-logo {
  --vpm-logo-height:34px;
  --vpm-logo-safe-width:220px;
  flex:0 0 auto;
  width:auto;
  height:auto;
  max-width:none;
  max-height:none;
  padding:0;
  margin-right:8px;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
  overflow:visible;
}
/* Settings: wide preview strips, but the logo itself uses fixed height only. */
.vpm-portal-app .vpm-project-logo-settings {
  display:grid;
  gap:13px;
  min-width:0;
  margin-top:4px;
  padding:17px;
  border:1px solid var(--vpm-border);
  border-radius:10px;
  background:var(--vpm-panel-alt);
}
.vpm-portal-app .vpm-form-grid > .vpm-project-logo-settings.wide { grid-column:1 / -1; }
.vpm-portal-app .vpm-project-logo-settings > div:first-child { display:grid; gap:4px; }
.vpm-portal-app .vpm-project-logo-settings strong { font-size:12px; color:var(--vpm-ink); }
.vpm-portal-app .vpm-project-logo-settings small { display:block; color:var(--vpm-muted); font-size:11px; line-height:1.5; }
.vpm-portal-app .vpm-project-logo-settings__grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
  min-width:0;
}
.vpm-portal-app .vpm-project-logo-editor {
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  gap:13px 16px;
  min-width:0;
  padding:13px;
  border:1px solid var(--vpm-border);
  border-radius:9px;
  background:var(--vpm-panel);
}
.vpm-portal-app .vpm-project-logo-editor__preview {
  --vpm-logo-height:86px;
  --vpm-logo-safe-width:none;
  display:flex;
  grid-column:1 / -1;
  align-items:center;
  justify-content:flex-start;
  box-sizing:border-box;
  width:100%;
  height:auto;
  min-width:0;
  min-height:110px;
  max-width:none;
  max-height:none;
  padding:12px 16px;
  border:0;
  border-radius:4px;
  background:#fafafa;
  color:#121212;
  box-shadow:none;
  overflow:visible;
}
.vpm-portal-app .vpm-project-logo-editor__preview.is-dark {
  background:#101014;
  color:#fff;
}
.vpm-portal-app .vpm-project-logo-editor__preview .vpm-project-brand.has-logo {
  --vpm-logo-height:86px;
  --vpm-logo-safe-width:none;
  max-width:none;
}
.vpm-portal-app .vpm-project-logo-editor__copy { display:grid; gap:4px; min-width:0; }
.vpm-portal-app .vpm-project-logo-editor__actions { display:flex; align-items:center; gap:8px; flex:0 0 auto; }
.vpm-portal-app .vpm-project-logo-upload {
  position:relative;
  overflow:hidden;
  min-height:34px;
  font-size:11px;
  cursor:pointer;
}
.vpm-portal-app .vpm-project-logo-upload input[type=file] {
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  padding:0;
  opacity:0;
  cursor:pointer;
}
.vpm-portal-app .vpm-project-logo-upload:focus-within { outline:2px solid var(--vpm-brand); outline-offset:2px; }
.vpm-portal-app .vpm-project-logo-editor__actions .vpm-ghost { font-size:11px; }
@media (max-width:950px) {
  .vpm-portal-app .vpm-project-logo-settings__grid { grid-template-columns:1fr; }
}
@media (max-width:700px) {
  .vpm-portal-app .vpm-project-nav-item__icon.has-project-logo,
  .vpm-portal-app.vpm-workspace-smooth .vpm-project-nav-item__icon.has-project-logo,
  .vpm-portal-app .vpm-project-nav-item__icon.has-project-logo .vpm-project-brand.has-logo {
    --vpm-logo-height:22px;
    --vpm-logo-safe-width:88px;
  }
  .vpm-portal-app .vpm-project-nav-item__icon.has-project-logo {
    height:22px;
    min-height:22px;
  }
  .vpm-portal-app .vpm-list-group--project > header > .vpm-project-brand.has-logo {
    --vpm-logo-height:28px;
    --vpm-logo-safe-width:160px;
  }
  .vpm-portal-app .vpm-project-logo-editor { grid-template-columns:minmax(0,1fr); }
  .vpm-portal-app .vpm-project-logo-editor__actions { flex-wrap:wrap; }
  .vpm-portal-app .vpm-project-logo-editor__preview {
    --vpm-logo-height:72px;
    min-height:94px;
  }
  .vpm-portal-app .vpm-project-logo-editor__preview .vpm-project-brand.has-logo {
    --vpm-logo-height:72px;
    --vpm-logo-safe-width:none;
  }
}
