:root {
  --vpm-brand: #3157e7;
  --vpm-brand-strong: #2446c8;
  --vpm-brand-soft: #edf2ff;
  --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: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { 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: 800;
}
.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: 800;
  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: 700;
}
.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: 800;
  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: 650; line-height: 1.3; }
.vpm-project-nav-item__copy small { margin-top: 2px; color: #7f8aa0; font-size: 10px; font-weight: 700; 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: 700;
}
.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: 800;
  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: 720;
  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: 800;
  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: 650;
}
.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: 700;
  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: 650; 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: 700;
  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: 700; }

.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: 750; 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: 750; }
.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: 800; letter-spacing: .05em; text-transform: uppercase; }
.vpm-task-card h3 { margin: 0; color: #273244; font-size: 12px; line-height: 1.45; font-weight: 680; 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: 700;
  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: 700; }
.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: 750;
  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: 800;
  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: 750; letter-spacing: .04em; }
.vpm-list-task strong { max-width: 460px; margin-top: 4px; overflow: hidden; color: #273244; font-size: 12px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.vpm-state-pill { display: inline-flex; align-items: center; gap: 6px; color: #4c586c; font-size: 10px; font-weight: 650; }
.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: 700; }
.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: 800; 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: 750; 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: 700; }
.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__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-detail-list { margin: 12px 0 0; }
.vpm-detail-list dt { margin-top: 14px; color: #98a2b3; font-size: 9px; font-weight: 800; 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: 750; }
.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: 650;
  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: 800; }
.vpm-login-copy { position: relative; z-index: 1; max-width: 620px; }
.vpm-login-eyebrow { color: #9bb0ff; font-size: 10px; font-weight: 800; 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; 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-form-card form { margin: 0; }
.vpm-login-form-card label { display: block; margin-bottom: 6px; color: #5b6679; font-size: 11px; font-weight: 700; }
.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-remember { margin: 4px 0 18px; color: var(--vpm-muted); font-size: 11px; }
.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: 750; }

.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-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-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: 680;
  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: 700; 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 { display: grid; gap: 3px; }
.vpm-mini-list button { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; 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 span { min-width: 0; }
.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: 750; }
.vpm-mini-list strong { overflow: hidden; color: var(--vpm-ink); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.vpm-mini-list time { flex: 0 0 auto; color: var(--vpm-muted); font-size: 10px; }
.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: 800; 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: 700; }
.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: 800; 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: 650; }
.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: 700; }
.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: 700; 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:600}.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:800;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: 560;
}
.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: 570; }
.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: 560; 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: 660; 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: 620; }
.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: 600; }
.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: 540; 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: 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; }
}
