/* ==========================================================================
   WorkPlanner UI Layer — 2026 redesign
   Loaded last. Restyles the existing wp11 shell to the reference design and
   adds the component vocabulary pages build on.
   Sections: 1 font · 2 tokens · 3 base · 4 shell · 5 controls · 6 components
             7 feedback/motion · 8 responsive · 9 dark
   ========================================================================== */

/* 1 ─ Font ---------------------------------------------------------------- */
@font-face {
  font-family: "Pretendard Variable";
  src: url("../fonts/PretendardVariable.woff2") format("woff2-variations");
  font-weight: 45 920;
  font-style: normal;
  font-display: swap;
}

/* 2 ─ Tokens -------------------------------------------------------------- */
:root {
  --wp-font-sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
    "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif;
  --wp-font-num: "Pretendard Variable", ui-monospace, "SF Mono", Menlo, monospace;

  /* surfaces */
  --wp-c-canvas: #f5f7fa;
  --wp-c-surface: #ffffff;
  --wp-c-surface-sub: #f8fafc;
  --wp-c-surface-mute: #f1f4f9;
  --wp-c-line: #e6eaf1;
  --wp-c-line-soft: #eef1f6;
  --wp-c-line-strong: #d5dbe5;

  /* text */
  --wp-c-ink: #111827;
  --wp-c-ink-2: #374151;
  --wp-c-ink-3: #5c6675;
  --wp-c-ink-4: #656f7e;

  /* brand */
  --wp-c-brand: #2563eb;
  /* filled controls with white text: 5.2:1 in both themes */
  --wp-c-brand-fill: #2563eb;
  --wp-c-brand-fill-hover: #1d4ed8;
  --wp-c-brand-hover: #1d4ed8;
  --wp-c-brand-press: #1e40af;
  --wp-c-brand-soft: #eff4ff;
  --wp-c-brand-soft-2: #dbe7fe;
  --wp-c-brand-ink: #1d4ed8;
  --wp-c-ring: rgba(37, 99, 235, 0.22);

  /* semantic */
  --wp-c-danger: #dc2626;      --wp-c-danger-bg: #fef2f2;  --wp-c-danger-line: #fecaca;
  --wp-c-danger-ink: #b3261e;  /* text on the tinted danger background */
  --wp-c-warn: #96580b;        --wp-c-warn-bg: #fffbeb;    --wp-c-warn-line: #fde68a;
  --wp-c-ok: #047857;          --wp-c-ok-bg: #ecfdf5;      --wp-c-ok-line: #a7f3d0;
  --wp-c-info: #2563eb;        --wp-c-info-bg: #eff6ff;    --wp-c-info-line: #bfdbfe;
  --wp-c-plum: #6d28d9;        --wp-c-plum-bg: #f5f3ff;    --wp-c-plum-line: #ddd6fe;
  --wp-c-slate: #4b5563;       --wp-c-slate-bg: #f3f4f6;   --wp-c-slate-line: #e1e5ea;

  /* geometry */
  --wp-r-xs: 6px;
  --wp-r-sm: 8px;
  --wp-r-md: 10px;
  --wp-r-lg: 14px;
  --wp-r-xl: 18px;
  --wp-r-pill: 999px;

  --wp-sh-xs: 0 1px 2px rgba(16, 24, 40, 0.05);
  --wp-sh-sm: 0 1px 3px rgba(16, 24, 40, 0.07), 0 1px 2px rgba(16, 24, 40, 0.04);
  --wp-sh-md: 0 6px 16px rgba(16, 24, 40, 0.08), 0 2px 6px rgba(16, 24, 40, 0.04);
  --wp-sh-lg: 0 16px 40px rgba(16, 24, 40, 0.14), 0 4px 12px rgba(16, 24, 40, 0.06);

  --wp-ease: cubic-bezier(0.2, 0.6, 0.3, 1);
  --wp-dur: 140ms;
  --wp-dur-slow: 220ms;

  /* rhythm */
  --wp-row-h: 52px;
  --wp-row-h-sm: 44px;
  --wp-control-h: 38px;
  --wp-control-h-lg: 42px;

  /* map the legacy shell tokens onto the new palette */
  --wp11-font: var(--wp-font-sans);
  --wp11-surface-0: var(--wp-c-canvas);
  --wp11-surface-1: var(--wp-c-surface);
  --wp11-surface-2: var(--wp-c-surface-mute);
  --wp11-text-900: var(--wp-c-ink);
  --wp11-text-600: var(--wp-c-ink-3);
  --wp11-text-400: var(--wp-c-ink-4);
  --wp11-border: var(--wp-c-line);
  --wp11-brand-900: #0b2447;
  --wp11-brand-700: var(--wp-c-brand);
  --wp11-brand-600: var(--wp-c-brand-hover);
  --wp11-brand-100: var(--wp-c-brand-soft-2);
  --wp11-brand-50: var(--wp-c-brand-soft);
  --wp11-success: var(--wp-c-ok);   --wp11-success-bg: var(--wp-c-ok-bg);
  --wp11-warning: var(--wp-c-warn); --wp11-warning-bg: var(--wp-c-warn-bg);
  --wp11-danger: var(--wp-c-danger);--wp11-danger-bg: var(--wp-c-danger-bg);
  --wp11-info: var(--wp-c-info);    --wp11-info-bg: var(--wp-c-info-bg);
  --wp11-focus: var(--wp-c-brand);
  --wp11-radius-sm: var(--wp-r-sm);
  --wp11-radius-panel: var(--wp-r-lg);
  --wp11-shadow-popover: var(--wp-sh-lg);
  --wp11-sidebar-width: 228px;
  --wp11-sidebar-collapsed: 68px;
  --wp11-topbar-height: 60px;

  /* legacy wp-* tokens */
  --wp-canvas: var(--wp-c-canvas);
  --wp-surface: var(--wp-c-surface);
  --wp-surface-muted: var(--wp-c-surface-mute);
  --wp-ink: var(--wp-c-ink);
  --wp-muted: var(--wp-c-ink-3);
  --wp-border: var(--wp-c-line);
  --wp-accent: var(--wp-c-brand);
  --wp-accent-strong: var(--wp-c-brand-hover);
  --wp-accent-soft: var(--wp-c-brand-soft);
  --wp-focus: var(--wp-c-brand);
  --wp-font: var(--wp-font-sans);
  --wp-radius-sm: var(--wp-r-xs);
  --wp-radius: var(--wp-r-sm);
  --wp-radius-lg: var(--wp-r-md);
  --wp-shadow: var(--wp-sh-md);
}

/* 3 ─ Base --------------------------------------------------------------- */
html {
  font-family: var(--wp-font-sans);
  -webkit-text-size-adjust: 100%;
}

body,
body.wp-v11-shell,
body.wp11-app-shell {
  background: var(--wp-c-canvas);
  color: var(--wp-c-ink);
  font-family: var(--wp-font-sans);
  font-size: 14.5px;
  line-height: 1.62;
  letter-spacing: -0.003em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "tnum" 0;
}

/* headings inherit their colour so a dark hero keeps its light text; only the
   typographic details are set here. */
.wp11-app-shell h1,
.wp11-app-shell h2,
.wp11-app-shell h3,
.wp11-app-shell h4 {
  letter-spacing: -0.018em;
  text-wrap: balance;
}

/* zero-specificity so any component's own colour still wins */
:where(.wp11-app-shell) :where(a) { color: var(--wp-c-brand-ink); }
:where(.wp11-app-shell) :where(a:hover) { color: var(--wp-c-brand-hover); }

/* filled controls always keep readable label colour */
.wp11-button--primary,
.wp-btn--primary,
.wp-btn--danger,
.wp11-context-header__action,
a.wp11-button--primary,
a.wp-btn--primary { color: #fff; }
.wp11-button--primary:hover,
.wp11-context-header__action:hover,
a.wp11-button--primary:hover { color: #fff; }

/* numbers line up wherever they are compared */
.wp-num,
.wp-table td.wp-num,
.wp-stat__value,
.wp11-app-shell td[data-num] {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

::selection { background: var(--wp-c-brand-soft-2); color: var(--wp-c-brand-press); }

/* scrollbars */
.wp11-app-shell *::-webkit-scrollbar { width: 10px; height: 10px; }
.wp11-app-shell *::-webkit-scrollbar-thumb {
  background: #d3d9e2; border-radius: var(--wp-r-pill); border: 3px solid transparent; background-clip: content-box;
}
.wp11-app-shell *::-webkit-scrollbar-thumb:hover { background: #bcc4d0; background-clip: content-box; }
.wp11-app-shell *::-webkit-scrollbar-track { background: transparent; }

/* 4 ─ Shell -------------------------------------------------------------- */
.wp11-app-frame { background: var(--wp-c-canvas); }

/* 4.1 sidebar */
.wp11-sidebar {
  background: var(--wp-c-surface);
  border-right: 1px solid var(--wp-c-line);
  overflow-x: hidden;
  padding: 0 12px 12px;
  width: var(--wp11-sidebar-width);
}

.wp11-sidebar .nav-link__text,
.wp11-sidebar-profile strong,
.wp11-sidebar-profile small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* the product name is short and fixed: show it whole */
.wp11-sidebar__brand .sidebar-brand-text {
  flex: none;
  overflow: visible;
  white-space: nowrap;
}

.wp11-sidebar__brand a { min-width: 0; overflow: hidden; }

/* grid/flex children must be allowed to shrink or they widen the rail */
.wp11-sidebar__brand,
.wp11-sidebar__nav,
.wp11-sidebar__footer,
.wp11-sidebar .nav-link,
.wp11-sidebar-profile { min-width: 0; }
.wp11-sidebar .nav-link > i { flex: none; }

/* text floor: the design system sets 12px as the smallest readable size */
.wp11-app-shell small,
.wp11-app-shell .text-xs,
.wp11-context-menu-settings fieldset > p,
.oc-eyebrow,
.cpv2-badge { font-size: 12px; }
.wp11-app-shell small.wp11-sidebar__version { font-size: 11.5px; }

/* wide tables scroll inside their panel instead of stretching the page */
.inventory-list-wrap,
.wp-table-scroll,
.oc-table-wrap,
.lc-table-wrap { min-width: 0; overflow-x: auto; }

/* a scroll container can only work if its ancestors are allowed to shrink */
.wp11-main-content,
.wp11-page > *,
.wp11-page section,
.wp11-page > div,
.inventory-page,
.inventory-page section,
.inventory-surface { min-width: 0; }
.wp11-sidebar__version { color: var(--wp-c-ink-4); font-size: 11.5px; font-weight: 600; }
/* the product name comes first; the version lives in the profile menu */
.wp11-sidebar__version { display: none; }

/* chrome labels keep a readable floor of 12px */
.wp11-app-shell .wp-v11-sidebar-label,
.wp-v11-shell #sidebar .wp-v11-sidebar-label {
  color: var(--wp-c-ink-3) !important;
  font-size: 12px !important;
}
.wp11-context-sidebar h3,
.wp11-context-sidebar .wp11-context-nav h3,
.wp11-context-sidebar [data-context-nav-section] > h3 {
  color: var(--wp-c-ink-3);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.wp11-context-sidebar small,
.wp11-context-sidebar [data-context-nav-item] small { font-size: 12px; }

/* status pills carry enough contrast for their own text */
.wp-v11-status--warning { color: #8f5209 !important; }
.wp-v11-status--danger { color: #b91c1c !important; }
.wp-v11-status--success { color: #046c4e !important; }

.wp11-sidebar__brand,
.wp-v11-shell #sidebar > div:first-child {
  border-bottom: 0 !important;
  height: var(--wp11-topbar-height) !important;
  padding: 0 4px !important;
}

.wp11-sidebar__brand a {
  align-items: center;
  color: var(--wp-c-ink);
  display: inline-flex;
  flex: 1;
  font-size: 16px;
  font-weight: 700;
  gap: 8px;
  letter-spacing: -0.026em;
  min-width: 0;
  text-decoration: none;
}

.wp11-sidebar__collapse { flex: none; height: 30px; width: 30px; }

.wp-v11-brand-mark {
  align-items: center;
  background: linear-gradient(140deg, var(--wp-c-brand) 0%, #4f86f7 100%);
  border-radius: 9px;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.28);
  color: #fff;
  display: inline-flex;
  font-size: 14px;
  height: 30px;
  justify-content: center;
  width: 30px;
}

.wp11-sidebar__nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow-y: auto;
  padding: 6px 0;
}

.wp-v11-sidebar-label {
  color: var(--wp-c-ink-3);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 14px 10px 6px;
  text-transform: uppercase;
}

.wp11-sidebar .nav-link {
  align-items: center;
  border-radius: var(--wp-r-sm);
  color: var(--wp-c-ink-2);
  display: flex;
  font-size: 14px;
  font-weight: 500;
  gap: 11px;
  height: 40px;
  padding: 0 10px;
  position: relative;
  text-decoration: none;
  transition: background var(--wp-dur) var(--wp-ease), color var(--wp-dur) var(--wp-ease);
}

.wp11-sidebar .nav-link i { color: var(--wp-c-ink-4); font-size: 15px; transition: color var(--wp-dur) var(--wp-ease); width: 18px; }
.wp11-sidebar .nav-link:hover { background: var(--wp-c-surface-mute); color: var(--wp-c-ink); }
.wp11-sidebar .nav-link:hover i { color: var(--wp-c-ink-3); }
.wp11-sidebar .nav-link:active { background: var(--wp-c-line-soft); }

.wp11-sidebar .nav-link.active {
  background: var(--wp-c-brand-soft);
  color: var(--wp-c-brand-ink);
  font-weight: 600;
}
.wp11-sidebar .nav-link.active i { color: var(--wp-c-brand); }
.wp11-sidebar .nav-link.active::before {
  background: var(--wp-c-brand);
  border-radius: 0 3px 3px 0;
  content: "";
  height: 20px;
  left: -12px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
}

.wp11-sidebar__footer { border-top: 1px solid var(--wp-c-line-soft); padding-top: 10px; }

.wp11-sidebar-profile {
  align-items: center;
  border-radius: var(--wp-r-md);
  display: flex;
  gap: 10px;
  padding: 8px;
  text-decoration: none;
  transition: background var(--wp-dur) var(--wp-ease);
}
.wp11-sidebar-profile > span:first-child {
  align-items: center;
  background: var(--wp-c-brand-soft);
  border-radius: 9px;
  color: var(--wp-c-brand-ink);
  display: inline-flex;
  flex: none;
  font-size: 13px;
  font-weight: 700;
  height: 34px;
  justify-content: center;
  width: 34px;
}
.wp11-sidebar-profile strong { color: var(--wp-c-ink); font-size: 13.5px; font-weight: 600; }
.wp11-sidebar-profile small { color: var(--wp-c-ink-3); font-size: 12px; }

/* 4.1b labelled navigation on desktop — the reference design shows text, not an
   icon-only rail. Overrides the previous icon-rail media query. */
@media (min-width: 1024px) {
  :root { --wp11-sidebar-width: 228px; --wp11-sidebar-collapsed: 68px; }
  .wp11-sidebar .sidebar-brand-text,
  .wp11-sidebar .nav-link__text,
  .wp11-sidebar .wp-v11-sidebar-label,
  .wp11-sidebar-profile > span:last-child { display: revert !important; }
  .wp11-sidebar__collapse { display: inline-flex !important; }
  .wp11-sidebar__brand { justify-content: space-between; }
  .wp11-sidebar .nav-link { justify-content: flex-start; padding: 0 10px !important; }
  .wp11-sidebar .nav-link.active::before { left: -12px; }
  .wp11-sidebar-profile > span:last-child { display: grid !important; }
  /* a module column on the page keeps the primary rail a little tighter */
  .wp11-app-frame:has(.wp11-module-frame--with-context) { --wp11-sidebar-width: 214px; }
}
@media (min-width: 1024px) and (max-width: 1279px) {
  :root { --wp11-sidebar-width: 212px; --wp11-sidebar-collapsed: 64px; }
  .wp11-app-frame:has(.wp11-module-frame--with-context) { --wp11-sidebar-width: 196px; }
}

/* collapsed state keeps working for people who choose it */
html.sidebar-collapsed .wp11-sidebar .sidebar-brand-text,
html.sidebar-collapsed .wp11-sidebar .nav-link__text,
html.sidebar-collapsed .wp11-sidebar .wp-v11-sidebar-label,
html.sidebar-collapsed .wp11-sidebar-profile > span:last-child { display: none !important; }
html.sidebar-collapsed .wp11-sidebar .nav-link { justify-content: center; padding: 0 !important; }
html.sidebar-collapsed .wp11-sidebar__brand { justify-content: center; }

/* 4.2 topbar */
.wp11-topbar {
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--wp-c-line);
  padding: 0 20px;
}

.wp-v11-search {
  align-items: center;
  background: var(--wp-c-surface-mute);
  border: 1px solid transparent;
  border-radius: var(--wp-r-md);
  display: flex;
  gap: 9px;
  height: 38px;
  max-width: 520px;
  padding: 0 12px;
  transition: background var(--wp-dur) var(--wp-ease), border-color var(--wp-dur) var(--wp-ease),
    box-shadow var(--wp-dur) var(--wp-ease);
}
.wp-v11-search:focus-within {
  background: var(--wp-c-surface);
  border-color: var(--wp-c-brand);
  box-shadow: 0 0 0 3px var(--wp-c-ring);
}
.wp-v11-search__icon { color: var(--wp-c-ink-4); font-size: 13px; }
.wp-v11-search input {
  background: transparent;
  border: 0;
  color: var(--wp-c-ink);
  flex: 1;
  font-family: inherit;
  font-size: 13.5px;
  min-width: 0;
  outline: 0;
  padding: 0;
}
.wp-v11-search input::placeholder { color: var(--wp-c-ink-4); }
.wp-v11-search kbd {
  background: var(--wp-c-surface);
  border: 1px solid var(--wp-c-line);
  border-radius: var(--wp-r-xs);
  color: var(--wp-c-ink-3);
  font-family: var(--wp-font-sans);
  font-size: 11.5px;
  font-weight: 600;
  padding: 2px 7px;
}

.wp11-topbar__actions { gap: 6px; }

.wp11-icon-button {
  align-items: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--wp-r-sm);
  color: var(--wp-c-ink-3);
  cursor: pointer;
  display: inline-flex;
  height: 36px;
  justify-content: center;
  position: relative;
  transition: background var(--wp-dur) var(--wp-ease), color var(--wp-dur) var(--wp-ease),
    transform var(--wp-dur) var(--wp-ease);
  width: 36px;
}
.wp11-icon-button:hover { background: var(--wp-c-surface-mute); color: var(--wp-c-ink); }
.wp11-icon-button:active { background: var(--wp-c-line-soft); transform: scale(0.94); }

.wp11-notification-count {
  background: var(--wp-c-danger);
  border: 2px solid var(--wp-c-surface);
  border-radius: var(--wp-r-pill);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  min-width: 18px;
  padding: 3px 5px;
  position: absolute;
  right: 2px;
  text-align: center;
  top: 2px;
}

.wp11-profile-button {
  align-items: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--wp-r-md);
  cursor: pointer;
  display: inline-flex;
  gap: 9px;
  padding: 4px 8px 4px 4px;
  transition: background var(--wp-dur) var(--wp-ease);
}
.wp11-profile-button:hover { background: var(--wp-c-surface-mute); }
.wp11-profile-button > span:first-child {
  align-items: center;
  background: linear-gradient(140deg, #4f86f7, var(--wp-c-brand));
  border-radius: var(--wp-r-pill);
  color: #fff;
  display: inline-flex;
  flex: none;
  font-size: 13px;
  font-weight: 700;
  height: 32px;
  justify-content: center;
  width: 32px;
}
.wp11-profile-button__label strong { color: var(--wp-c-ink); display: block; font-size: 13px; font-weight: 600; line-height: 1.3; }
.wp11-profile-button__label small { color: var(--wp-c-ink-3); display: block; font-size: 12px; line-height: 1.3; }
.wp11-profile-button > i { color: var(--wp-c-ink-4); font-size: 11px; }

/* 4.3 popovers */
.wp11-popover {
  background: var(--wp-c-surface);
  border: 1px solid var(--wp-c-line);
  border-radius: var(--wp-r-lg);
  box-shadow: var(--wp-sh-lg);
  overflow: hidden;
  padding: 6px;
}
.wp11-popover a,
.wp11-popover button:not(.wp11-button) {
  align-items: center;
  border-radius: var(--wp-r-sm);
  color: var(--wp-c-ink-2);
  display: flex;
  font-size: 13.5px;
  gap: 10px;
  padding: 9px 10px;
  text-decoration: none;
  transition: background var(--wp-dur) var(--wp-ease);
  width: 100%;
}
.wp11-popover a:hover,
.wp11-popover button:not(.wp11-button):hover { background: var(--wp-c-surface-mute); color: var(--wp-c-ink); }
.wp11-popover a i { color: var(--wp-c-ink-4); width: 16px; }
.wp11-popover a.is-danger { color: var(--wp-c-danger); }
.wp11-popover a.is-danger i { color: var(--wp-c-danger); }
.wp11-menu-separator { background: var(--wp-c-line-soft); height: 1px; margin: 6px 4px; }

/* 4.4 context (module) sidebar */
.wp11-context-sidebar {
  background: var(--wp-c-surface);
  border-right: 1px solid var(--wp-c-line);
  width: 236px;
}
.wp11-context-sidebar__inner { padding: 20px 14px; }

/* 4.5 page canvas */
.wp11-page,
.wp11-main-content {
  background: var(--wp-c-canvas);
  padding: 26px 28px 72px;
}
.wp11-page > * { max-width: 1480px; }

.wp11-page-header {
  align-items: flex-start;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 20px;
  justify-content: space-between;
  margin-bottom: 20px;
}
.wp11-page-header h1 { font-size: 29px; font-weight: 700; letter-spacing: -0.028em; line-height: 1.22; margin: 2px 0 0; }
.wp11-page-header p { color: var(--wp-c-ink-3); font-size: 14.5px; margin: 6px 0 0; max-width: 78ch; }
.wp11-page-header__eyebrow {
  color: var(--wp-c-brand-ink);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* flash messages */
.wp11-flash-stack { display: grid; gap: 8px; margin-bottom: 18px; }
.wp11-alert {
  align-items: center;
  border: 1px solid var(--wp-c-line);
  border-radius: var(--wp-r-md);
  display: flex;
  font-size: 14px;
  gap: 10px;
  padding: 12px 14px;
}
.wp11-alert--success { background: var(--wp-c-ok-bg); border-color: var(--wp-c-ok-line); color: var(--wp-c-ok); }
.wp11-alert--error,
.wp11-alert--danger { background: var(--wp-c-danger-bg); border-color: var(--wp-c-danger-line); color: var(--wp-c-danger); }
.wp11-alert--warning { background: var(--wp-c-warn-bg); border-color: var(--wp-c-warn-line); color: var(--wp-c-warn); }
.wp11-alert--info { background: var(--wp-c-info-bg); border-color: var(--wp-c-info-line); color: var(--wp-c-info); }

/* 5 ─ Controls ----------------------------------------------------------- */
.wp11-button,
.wp-btn {
  align-items: center;
  background: var(--wp-c-surface);
  border: 1px solid var(--wp-c-line-strong);
  border-radius: var(--wp-r-sm);
  color: var(--wp-c-ink-2);
  cursor: pointer;
  display: inline-flex;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  gap: 7px;
  height: var(--wp-control-h);
  justify-content: center;
  line-height: 1;
  padding: 0 14px;
  text-decoration: none;
  transition: background var(--wp-dur) var(--wp-ease), border-color var(--wp-dur) var(--wp-ease),
    color var(--wp-dur) var(--wp-ease), box-shadow var(--wp-dur) var(--wp-ease),
    transform var(--wp-dur) var(--wp-ease);
  white-space: nowrap;
}
.wp11-button:hover,
.wp-btn:hover { background: var(--wp-c-surface-sub); border-color: var(--wp-c-ink-4); color: var(--wp-c-ink); }
.wp11-button:active,
.wp-btn:active { background: var(--wp-c-surface-mute); transform: translateY(1px); }

.wp11-button--primary,
.wp-btn--primary {
  background: var(--wp-c-brand-fill);
  border-color: var(--wp-c-brand-fill);
  box-shadow: 0 1px 2px rgba(37, 99, 235, 0.24);
  color: #fff;
}
.wp11-button--primary:hover,
.wp-btn--primary:hover { background: var(--wp-c-brand-hover); border-color: var(--wp-c-brand-hover); color: #fff; }
.wp11-button--primary:active,
.wp-btn--primary:active { background: var(--wp-c-brand-press); border-color: var(--wp-c-brand-press); box-shadow: none; transform: translateY(1px); }

.wp-btn--ghost { background: transparent; border-color: transparent; color: var(--wp-c-ink-3); }
.wp-btn--ghost:hover { background: var(--wp-c-surface-mute); border-color: transparent; }
.wp-btn--danger { background: var(--wp-c-danger); border-color: var(--wp-c-danger); color: #fff; }
.wp-btn--danger:hover { background: #b91c1c; border-color: #b91c1c; color: #fff; }
.wp-btn--sm { font-size: 12.5px; gap: 6px; height: 32px; padding: 0 11px; }
.wp-btn--lg { font-size: 14.5px; height: var(--wp-control-h-lg); padding: 0 18px; }
.wp-btn--block { width: 100%; }

.wp11-button:disabled,
.wp11-button[aria-disabled="true"],
.wp-btn:disabled { cursor: not-allowed; opacity: 0.55; transform: none; }

/* focus ring — one rule for everything that can take focus */
.wp11-app-shell :is(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  border-radius: var(--wp-r-xs);
  box-shadow: 0 0 0 3px var(--wp-c-ring);
  outline: 2px solid var(--wp-c-brand);
  outline-offset: 1px;
}

/* form fields */
.wp11-app-shell :is(input[type="text"], input[type="search"], input[type="email"], input[type="password"],
  input[type="number"], input[type="date"], input[type="datetime-local"], input[type="time"],
  input[type="url"], input[type="tel"], select, textarea):not(.wp-raw) {
  background: var(--wp-c-surface);
  border: 1px solid var(--wp-c-line-strong);
  border-radius: var(--wp-r-sm);
  color: var(--wp-c-ink);
  font-family: inherit;
  font-size: 13.5px;
  min-height: var(--wp-control-h);
  padding: 8px 11px;
  transition: border-color var(--wp-dur) var(--wp-ease), box-shadow var(--wp-dur) var(--wp-ease);
  width: 100%;
}
.wp11-app-shell :is(input, select, textarea):not(.wp-raw):hover { border-color: var(--wp-c-ink-4); }
.wp11-app-shell :is(input, select, textarea):not(.wp-raw):focus {
  border-color: var(--wp-c-brand);
  box-shadow: 0 0 0 3px var(--wp-c-ring);
  outline: none;
}
.wp11-app-shell :is(input, textarea)::placeholder { color: var(--wp-c-ink-4); }
.wp11-app-shell select:not(.wp-raw) {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='none' stroke='%23929cab' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' d='M3 4.5 6 7.5l3-3'/%3E%3C/svg%3E");
  background-position: right 10px center;
  background-repeat: no-repeat;
  padding-right: 30px;
}
.wp11-app-shell label { color: var(--wp-c-ink-2); font-size: 13px; font-weight: 600; }

.wp11-app-shell input[type="checkbox"],
.wp11-app-shell input[type="radio"] {
  accent-color: var(--wp-c-brand);
  cursor: pointer;
  height: 16px;
  min-height: 0;
  transition: transform var(--wp-dur) var(--wp-ease);
  width: 16px;
}
.wp11-app-shell input[type="checkbox"]:active,
.wp11-app-shell input[type="radio"]:active { transform: scale(0.88); }

/* 6 ─ Components --------------------------------------------------------- */

/* 6.1 panel / card */
.wp-panel {
  background: var(--wp-c-surface);
  border: 1px solid var(--wp-c-line);
  border-radius: var(--wp-r-lg);
  box-shadow: var(--wp-sh-xs);
  overflow: hidden;
}
.wp-panel__head {
  align-items: center;
  border-bottom: 1px solid var(--wp-c-line-soft);
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 16px 18px;
}
.wp-panel__head--plain { border-bottom: 0; padding-bottom: 4px; }
.wp-panel__title { font-size: 16.5px; font-weight: 700; letter-spacing: -0.02em; margin: 0; }
.wp-panel__sub { color: var(--wp-c-ink-3); font-size: 13px; margin: 3px 0 0; }
.wp-panel__body { padding: 18px; }
.wp-panel__body--flush { padding: 0; }
.wp-panel__foot {
  align-items: center;
  border-top: 1px solid var(--wp-c-line-soft);
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 13px 18px;
}
.wp-panel--accent { border-color: var(--wp-c-brand-soft-2); }

.wp-link-more {
  align-items: center;
  color: var(--wp-c-ink-3);
  display: inline-flex;
  font-size: 13px;
  font-weight: 600;
  gap: 5px;
  text-decoration: none;
  transition: color var(--wp-dur) var(--wp-ease), gap var(--wp-dur) var(--wp-ease);
}
.wp-link-more:hover { color: var(--wp-c-brand); gap: 8px; }

/* 6.2 stat cards */
.wp-stat-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  margin-bottom: 18px;
}
.wp-stat {
  background: var(--wp-c-surface);
  border: 1px solid var(--wp-c-line);
  border-radius: var(--wp-r-lg);
  box-shadow: var(--wp-sh-xs);
  display: block;
  padding: 16px 18px;
  text-decoration: none;
  transition: border-color var(--wp-dur) var(--wp-ease), box-shadow var(--wp-dur) var(--wp-ease),
    transform var(--wp-dur) var(--wp-ease);
}
a.wp-stat:hover { border-color: var(--wp-c-brand-soft-2); box-shadow: var(--wp-sh-sm); transform: translateY(-1px); }
a.wp-stat:active { transform: translateY(0); }
.wp-stat__top { align-items: center; display: flex; gap: 11px; }
.wp-stat__icon {
  align-items: center;
  background: var(--wp-c-brand-soft);
  border-radius: var(--wp-r-md);
  color: var(--wp-c-brand);
  display: inline-flex;
  flex: none;
  font-size: 15px;
  height: 38px;
  justify-content: center;
  width: 38px;
}
.wp-stat__label { color: var(--wp-c-ink-3); font-size: 13px; font-weight: 500; }
.wp-stat__value {
  color: var(--wp-c-ink);
  display: flex;
  align-items: baseline;
  font-size: 27px;
  font-weight: 700;
  gap: 4px;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-top: 8px;
}
.wp-stat__value small { color: var(--wp-c-ink-4); font-size: 13px; font-weight: 500; }
.wp-stat__delta { align-items: center; display: inline-flex; font-size: 12.5px; font-weight: 600; gap: 3px; margin-left: 4px; }
.wp-stat__delta--up { color: var(--wp-c-danger); }
.wp-stat__delta--down { color: var(--wp-c-ok); }
.wp-stat__delta--flat { color: var(--wp-c-ink-4); }
.wp-stat__foot { color: var(--wp-c-ink-4); font-size: 12.5px; margin-top: 6px; }

.wp-stat--danger .wp-stat__icon { background: var(--wp-c-danger-bg); color: var(--wp-c-danger); }
.wp-stat--warn .wp-stat__icon { background: var(--wp-c-warn-bg); color: var(--wp-c-warn); }
.wp-stat--ok .wp-stat__icon { background: var(--wp-c-ok-bg); color: var(--wp-c-ok); }
.wp-stat--plum .wp-stat__icon { background: var(--wp-c-plum-bg); color: var(--wp-c-plum); }
.wp-stat--danger .wp-stat__value { color: var(--wp-c-danger); }

/* 6.3 progress */
.wp-progress { background: var(--wp-c-line-soft); border-radius: var(--wp-r-pill); height: 6px; overflow: hidden; width: 100%; }
.wp-progress > span {
  background: var(--wp-c-brand);
  border-radius: inherit;
  display: block;
  height: 100%;
  transition: width var(--wp-dur-slow) var(--wp-ease);
}
.wp-progress--ok > span { background: var(--wp-c-ok); }
.wp-progress--warn > span { background: var(--wp-c-warn); }
.wp-progress--danger > span { background: var(--wp-c-danger); }
.wp-progress-row { align-items: center; display: flex; gap: 9px; }
.wp-progress-row span.wp-progress-value { color: var(--wp-c-ink-3); font-size: 12.5px; font-variant-numeric: tabular-nums; min-width: 34px; text-align: right; white-space: nowrap; }

/* 6.4 badges */
.wp-badge {
  align-items: center;
  background: var(--wp-c-slate-bg);
  border-radius: var(--wp-r-xs);
  color: var(--wp-c-slate);
  display: inline-flex;
  font-size: 12px;
  font-weight: 600;
  gap: 4px;
  line-height: 1.5;
  padding: 3px 8px;
  white-space: nowrap;
}
.wp-badge--danger { background: var(--wp-c-danger-bg); color: var(--wp-c-danger-ink); }
.wp-badge--warn { background: var(--wp-c-warn-bg); color: var(--wp-c-warn); }
.wp-badge--ok { background: var(--wp-c-ok-bg); color: var(--wp-c-ok); }
.wp-badge--info { background: var(--wp-c-info-bg); color: var(--wp-c-info); }
.wp-badge--plum { background: var(--wp-c-plum-bg); color: var(--wp-c-plum); }
.wp-badge--dot::before { background: currentColor; border-radius: 50%; content: ""; height: 6px; width: 6px; }
.wp-badge--outline { background: transparent; border: 1px solid var(--wp-c-line-strong); color: var(--wp-c-ink-3); }

.wp-tag {
  background: var(--wp-c-surface-mute);
  border-radius: var(--wp-r-xs);
  color: var(--wp-c-ink-3);
  display: inline-flex;
  font-size: 12px;
  font-weight: 500;
  padding: 3px 8px;
  white-space: nowrap;
}

.wp-count {
  background: var(--wp-c-surface-mute);
  border-radius: var(--wp-r-pill);
  color: var(--wp-c-ink-3);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  min-width: 22px;
  padding: 1px 8px;
  text-align: center;
}

/* 6.5 avatars */
.wp-avatar {
  align-items: center;
  background: var(--wp-c-brand-soft);
  border-radius: var(--wp-r-pill);
  color: var(--wp-c-brand-ink);
  display: inline-flex;
  flex: none;
  font-size: 11.5px;
  font-weight: 700;
  height: 26px;
  justify-content: center;
  overflow: hidden;
  width: 26px;
}
.wp-avatar img { height: 100%; object-fit: cover; width: 100%; }
.wp-avatar--sm { font-size: 11.5px; height: 22px; width: 22px; }
.wp-avatar--lg { font-size: 14px; height: 36px; width: 36px; }
.wp-avatar-name {
  align-items: center;
  display: inline-flex;
  font-size: 13px;
  gap: 7px;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wp-avatar-stack { display: inline-flex; }
.wp-avatar-stack .wp-avatar { border: 2px solid var(--wp-c-surface); margin-left: -7px; }
.wp-avatar-stack .wp-avatar:first-child { margin-left: 0; }

/* 6.6 tables */
.wp-table { border-collapse: collapse; font-size: 13.5px; width: 100%; }
.wp-table thead th {
  background: var(--wp-c-surface-sub);
  border-bottom: 1px solid var(--wp-c-line);
  color: var(--wp-c-ink-3);
  font-size: 12.5px;
  font-weight: 600;
  padding: 11px 14px;
  position: sticky;
  text-align: left;
  top: 0;
  white-space: nowrap;
  z-index: 1;
}
.wp-table tbody td {
  border-bottom: 1px solid var(--wp-c-line-soft);
  color: var(--wp-c-ink-2);
  height: var(--wp-row-h);
  padding: 10px 14px;
  vertical-align: middle;
}
.wp-table tbody tr { transition: background var(--wp-dur) var(--wp-ease); }
.wp-table tbody tr:hover { background: var(--wp-c-surface-sub); }
.wp-table tbody tr:last-child td { border-bottom: 0; }
.wp-table tbody tr.is-selected { background: var(--wp-c-brand-soft); }
.wp-table td.wp-table__title { color: var(--wp-c-ink); font-weight: 600; }
.wp-table td.wp-table__title a { color: inherit; text-decoration: none; }
.wp-table td.wp-table__title a:hover { color: var(--wp-c-brand); }
.wp-table td.is-right, .wp-table th.is-right { text-align: right; }
.wp-table td.is-center, .wp-table th.is-center { text-align: center; }
.wp-table td.is-num { font-variant-numeric: tabular-nums; text-align: right; }
.wp-table__excerpt { color: var(--wp-c-ink-4); display: block; font-size: 12.5px; font-weight: 400; margin-top: 2px; }
.wp-table--compact tbody td { height: var(--wp-row-h-sm); padding: 7px 12px; }
.wp-table-scroll { overflow-x: auto; }

/* legacy bare tables inside panels inherit the same look */
.wp-panel table:not(.wp-table):not(.wp-raw) { border-collapse: collapse; font-size: 13.5px; width: 100%; }
.wp-panel table:not(.wp-table):not(.wp-raw) th {
  background: var(--wp-c-surface-sub);
  border-bottom: 1px solid var(--wp-c-line);
  color: var(--wp-c-ink-3);
  font-size: 12.5px;
  font-weight: 600;
  padding: 11px 14px;
  text-align: left;
}
.wp-panel table:not(.wp-table):not(.wp-raw) td {
  border-bottom: 1px solid var(--wp-c-line-soft);
  padding: 11px 14px;
}

/* 6.7 tabs */
.wp-tabs {
  border-bottom: 1px solid var(--wp-c-line);
  display: flex;
  gap: 2px;
  margin-bottom: 18px;
  overflow-x: auto;
  scrollbar-width: none;
}
.wp-tabs::-webkit-scrollbar { display: none; }
.wp-tab {
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  color: var(--wp-c-ink-3);
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 11px 15px;
  position: relative;
  text-decoration: none;
  transition: color var(--wp-dur) var(--wp-ease), border-color var(--wp-dur) var(--wp-ease),
    background var(--wp-dur) var(--wp-ease);
  white-space: nowrap;
}
.wp-tab:hover { background: var(--wp-c-surface-sub); color: var(--wp-c-ink); }
.wp-tab.is-active { border-bottom-color: var(--wp-c-brand); color: var(--wp-c-brand-ink); }
.wp-tab .wp-count { margin-left: 6px; }

/* 6.8 toolbar / filter bar */
.wp-toolbar {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.wp-toolbar__search { flex: 1 1 240px; max-width: 420px; position: relative; }
.wp-toolbar__search i {
  color: var(--wp-c-ink-4);
  font-size: 13px;
  left: 12px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}
.wp-toolbar__search input { padding-left: 33px !important; }
.wp-toolbar__spacer { flex: 1; }
.wp-segment { background: var(--wp-c-surface-mute); border-radius: var(--wp-r-sm); display: inline-flex; gap: 2px; padding: 3px; }
.wp-segment button,
.wp-segment a {
  background: transparent;
  border: 0;
  border-radius: var(--wp-r-xs);
  color: var(--wp-c-ink-3);
  cursor: pointer;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 11px;
  text-decoration: none;
  transition: background var(--wp-dur) var(--wp-ease), color var(--wp-dur) var(--wp-ease);
}
.wp-segment button:hover,
.wp-segment a:hover { color: var(--wp-c-ink); }
.wp-segment .is-active { background: var(--wp-c-surface); box-shadow: var(--wp-sh-xs); color: var(--wp-c-ink); }

/* 6.9 list rows (task style) */
.wp-grouphead {
  align-items: center;
  color: var(--wp-c-ink);
  cursor: pointer;
  display: flex;
  font-size: 14.5px;
  font-weight: 700;
  gap: 8px;
  padding: 14px 4px 10px;
  user-select: none;
}
.wp-grouphead i { color: var(--wp-c-ink-4); font-size: 12px; transition: transform var(--wp-dur) var(--wp-ease); }
.wp-grouphead[aria-expanded="false"] i { transform: rotate(-90deg); }

.wp-row {
  align-items: center;
  background: var(--wp-c-surface);
  border: 1px solid var(--wp-c-line-soft);
  border-radius: var(--wp-r-md);
  display: flex;
  gap: 11px;
  margin-bottom: 6px;
  padding: 11px 13px;
  transition: border-color var(--wp-dur) var(--wp-ease), box-shadow var(--wp-dur) var(--wp-ease),
    background var(--wp-dur) var(--wp-ease);
}
.wp-row:hover { border-color: var(--wp-c-line-strong); box-shadow: var(--wp-sh-xs); }
.wp-row.is-active { background: var(--wp-c-brand-soft); border-color: var(--wp-c-brand-soft-2); }
.wp-row.is-done .wp-row__title { color: var(--wp-c-ink-4); text-decoration: line-through; }
.wp-row__grip { color: #cbd2dc; cursor: grab; font-size: 12px; }
.wp-row__title { color: var(--wp-c-ink); flex: 1; font-size: 14px; font-weight: 500; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wp-row__meta { align-items: center; color: var(--wp-c-ink-4); display: inline-flex; font-size: 12.5px; gap: 5px; }
.wp-row__due { font-size: 13px; font-variant-numeric: tabular-nums; }
.wp-row__due.is-overdue { color: var(--wp-c-danger); font-weight: 600; }
.wp-row__due.is-today { color: var(--wp-c-danger); font-weight: 600; }

/* 6.10 quick actions */
.wp-quick-list { display: grid; gap: 8px; }
.wp-quick {
  align-items: center;
  background: var(--wp-c-surface);
  border: 1px solid var(--wp-c-line);
  border-radius: var(--wp-r-md);
  color: var(--wp-c-ink-2);
  display: flex;
  font-size: 13.5px;
  font-weight: 600;
  gap: 10px;
  padding: 11px 13px;
  text-decoration: none;
  transition: background var(--wp-dur) var(--wp-ease), border-color var(--wp-dur) var(--wp-ease),
    transform var(--wp-dur) var(--wp-ease);
}
.wp-quick i { color: var(--wp-c-brand); font-size: 14px; width: 18px; }
.wp-quick:hover { background: var(--wp-c-brand-soft); border-color: var(--wp-c-brand-soft-2); color: var(--wp-c-brand-ink); }
.wp-quick:active { transform: translateY(1px); }

/* 6.11 shortcut grid */
.wp-shortcut-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.wp-shortcut {
  align-items: center;
  background: var(--wp-c-surface);
  border: 1px solid var(--wp-c-line);
  border-radius: var(--wp-r-lg);
  display: flex;
  gap: 12px;
  padding: 15px 16px;
  text-decoration: none;
  transition: border-color var(--wp-dur) var(--wp-ease), box-shadow var(--wp-dur) var(--wp-ease),
    transform var(--wp-dur) var(--wp-ease);
}
.wp-shortcut:hover { border-color: var(--wp-c-brand-soft-2); box-shadow: var(--wp-sh-sm); transform: translateY(-1px); }
.wp-shortcut:active { transform: translateY(0); }
.wp-shortcut__icon {
  align-items: center;
  background: var(--wp-c-brand-soft);
  border-radius: var(--wp-r-md);
  color: var(--wp-c-brand);
  display: inline-flex;
  flex: none;
  font-size: 16px;
  height: 40px;
  justify-content: center;
  width: 40px;
}
.wp-shortcut__body { flex: 1; min-width: 0; }
.wp-shortcut__body strong { color: var(--wp-c-ink); display: block; font-size: 14px; font-weight: 600; }
.wp-shortcut__body span { color: var(--wp-c-ink-4); display: block; font-size: 12.5px; margin-top: 2px; }
.wp-shortcut > i:last-child { color: var(--wp-c-ink-4); font-size: 12px; }

/* 6.12 activity feed */
.wp-feed { display: grid; gap: 14px; }
.wp-feed__item { display: flex; gap: 10px; }
.wp-feed__body { min-width: 0; }
.wp-feed__body p { color: var(--wp-c-ink-2); font-size: 13.5px; margin: 0; }
.wp-feed__body p b { font-weight: 600; }
.wp-feed__body a { color: var(--wp-c-brand-ink); display: block; font-size: 13px; font-weight: 500; margin-top: 1px; text-decoration: none; }
.wp-feed__body a:hover { text-decoration: underline; }
.wp-feed__body small { color: var(--wp-c-ink-4); display: block; font-size: 12px; margin-top: 2px; }

/* 6.13 note card */
.wp-note {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: var(--wp-r-md);
  padding: 14px 16px;
}
.wp-note ul { margin: 0; padding-left: 17px; }
.wp-note li { color: #78350f; font-size: 13.5px; margin-bottom: 6px; }
.wp-note li:last-child { margin-bottom: 0; }

/* 6.14 timeline (schedule) */
.wp-timeline { display: grid; gap: 2px; }
.wp-timeline__item {
  border-left: 2px solid var(--wp-c-line);
  display: grid;
  gap: 12px;
  grid-template-columns: 54px 1fr;
  padding: 10px 0 10px 14px;
  position: relative;
  text-decoration: none;
  transition: background var(--wp-dur) var(--wp-ease);
}
.wp-timeline__item:hover { background: var(--wp-c-surface-sub); }
.wp-timeline__item::before {
  background: var(--wp-c-brand);
  border: 2px solid var(--wp-c-surface);
  border-radius: 50%;
  content: "";
  height: 9px;
  left: -5px;
  position: absolute;
  top: 16px;
  width: 9px;
}
.wp-timeline__time { color: var(--wp-c-ink-4); font-size: 12px; font-variant-numeric: tabular-nums; line-height: 1.5; }
.wp-timeline__body strong { color: var(--wp-c-ink); display: block; font-size: 13.5px; font-weight: 600; }
.wp-timeline__body span { color: var(--wp-c-ink-4); font-size: 12.5px; }

/* 6.15 key/value rows */
.wp-kv { display: grid; gap: 11px; }
.wp-kv__row { align-items: center; display: grid; gap: 12px; grid-template-columns: 84px 1fr; }
.wp-kv__key { color: var(--wp-c-ink-3); font-size: 13px; font-weight: 500; }
.wp-kv__val { color: var(--wp-c-ink); font-size: 13.5px; min-width: 0; }

/* 6.16 empty / loading */
.wp-empty {
  align-items: center;
  color: var(--wp-c-ink-4);
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: center;
  padding: 48px 20px;
  text-align: center;
}
.wp-empty__icon {
  align-items: center;
  background: var(--wp-c-surface-mute);
  border-radius: var(--wp-r-pill);
  color: var(--wp-c-ink-4);
  display: inline-flex;
  font-size: 20px;
  height: 52px;
  justify-content: center;
  width: 52px;
}
.wp-empty strong { color: var(--wp-c-ink-2); font-size: 14.5px; font-weight: 600; }
.wp-empty p { font-size: 13.5px; margin: 0; max-width: 42ch; }

.wp-skeleton {
  background: linear-gradient(90deg, var(--wp-c-surface-mute) 25%, #e9edf3 37%, var(--wp-c-surface-mute) 63%);
  background-size: 400% 100%;
  border-radius: var(--wp-r-xs);
  display: block;
  height: 14px;
  animation: wp-shimmer 1.3s ease-in-out infinite;
}
@keyframes wp-shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

.wp-spinner {
  animation: wp-spin 0.7s linear infinite;
  border: 2px solid var(--wp-c-line-strong);
  border-radius: 50%;
  border-top-color: var(--wp-c-brand);
  display: inline-block;
  height: 15px;
  width: 15px;
}
@keyframes wp-spin { to { transform: rotate(360deg); } }

/* 6.17 pagination */
.wp-pager { align-items: center; display: flex; gap: 4px; justify-content: center; }
.wp-pager a,
.wp-pager span {
  align-items: center;
  border: 1px solid transparent;
  border-radius: var(--wp-r-sm);
  color: var(--wp-c-ink-3);
  display: inline-flex;
  font-size: 13px;
  font-weight: 600;
  height: 34px;
  justify-content: center;
  min-width: 34px;
  padding: 0 8px;
  text-decoration: none;
  transition: background var(--wp-dur) var(--wp-ease), color var(--wp-dur) var(--wp-ease);
}
.wp-pager a:hover { background: var(--wp-c-surface-mute); color: var(--wp-c-ink); }
.wp-pager .is-active { background: var(--wp-c-brand-fill); border-color: var(--wp-c-brand-fill); color: #fff; }

/* 6.18 drawer */
.wp-drawer {
  background: var(--wp-c-surface);
  border-left: 1px solid var(--wp-c-line);
  box-shadow: var(--wp-sh-lg);
  display: flex;
  flex-direction: column;
  height: 100%;
  max-width: 460px;
  position: fixed;
  right: 0;
  top: 0;
  transform: translateX(100%);
  transition: transform var(--wp-dur-slow) var(--wp-ease);
  width: 100%;
  z-index: 120;
}
.wp-drawer.is-open { transform: translateX(0); }
.wp-drawer__head { align-items: center; border-bottom: 1px solid var(--wp-c-line-soft); display: flex; gap: 10px; justify-content: space-between; padding: 14px 18px; }
.wp-drawer__body { flex: 1; overflow-y: auto; padding: 18px; }
.wp-drawer-backdrop {
  background: rgba(16, 24, 40, 0.34);
  inset: 0;
  opacity: 0;
  pointer-events: none;
  position: fixed;
  transition: opacity var(--wp-dur-slow) var(--wp-ease);
  z-index: 110;
}
.wp-drawer-backdrop.is-open { opacity: 1; pointer-events: auto; }

/* 6.19 toasts */
.wp-toast-stack {
  bottom: 22px;
  display: grid;
  gap: 8px;
  position: fixed;
  right: 22px;
  z-index: 200;
}
.wp-toast {
  align-items: center;
  animation: wp-toast-in var(--wp-dur-slow) var(--wp-ease);
  background: #101828;
  border-radius: var(--wp-r-md);
  box-shadow: var(--wp-sh-lg);
  color: #fff;
  display: flex;
  font-size: 13.5px;
  gap: 10px;
  max-width: 380px;
  padding: 12px 15px;
}
.wp-toast i { font-size: 14px; }
.wp-toast--ok i { color: #34d399; }
.wp-toast--error i { color: #fca5a5; }
.wp-toast--info i { color: #93c5fd; }
.wp-toast.is-leaving { animation: wp-toast-out var(--wp-dur-slow) var(--wp-ease) forwards; }
@keyframes wp-toast-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes wp-toast-out { to { opacity: 0; transform: translateY(6px); } }

/* 6.20 navigation progress bar — the instant response to any click */
.wp-nav-progress {
  background: var(--wp-c-line-soft);
  height: 3px;
  left: 0;
  opacity: 0;
  position: fixed;
  top: 0;
  overflow: hidden;
  width: 100%;
  z-index: 300;
}
.wp-nav-progress.is-active { opacity: 1; }
.wp-nav-progress[hidden], .wp-nav-wait[hidden] { display: none; }
.wp-nav-progress > span { display: block; width: 30%; height: 100%; background: var(--wp-c-brand); transform: translateX(110%); }
.wp-nav-wait { position: fixed; right: 20px; bottom: 24px; z-index: 300; display: grid; grid-template-columns: 1fr auto; gap: 7px 12px; width: min(380px, calc(100vw - 32px)); padding: 14px; border: 1px solid var(--wp-c-line); border-radius: var(--wp-r-sm); background: var(--wp-c-surface); color: var(--wp-c-ink); box-shadow: var(--wp-sh-md); font: 13px/1.5 var(--wp-font-sans); }
.wp-nav-wait__elapsed { font-variant-numeric: tabular-nums; color: var(--wp-c-ink-3); }
.wp-nav-wait p { grid-column: 1 / -1; margin: 0; color: var(--wp-c-ink-3); font-size: 12px; }
.wp-nav-wait button { justify-self: end; grid-column: 1 / -1; min-height: 40px; padding: 4px 10px; border: 1px solid var(--wp-c-line); border-radius: var(--wp-r-xs); background: var(--wp-c-surface-sub); color: var(--wp-c-ink); font: inherit; cursor: pointer; }
@media (max-width: 780px) { .wp-nav-wait { right: 16px; bottom: calc(80px + env(safe-area-inset-bottom)); } }
.is-nav-busy::after { content: ""; display: inline-block; box-sizing: border-box; width: 13px; height: 13px; margin-inline-start: 6px; border: 2px solid currentColor; border-inline-end-color: transparent; border-radius: 50%; }
@media (prefers-reduced-motion: no-preference) { .wp-nav-progress.is-active > span { animation: wp-nav-wait-pulse 1.4s ease-in-out infinite alternate; } .is-nav-busy::after { animation: wp-nav-busy-spin .8s linear infinite; } }
@keyframes wp-nav-busy-spin { to { transform: rotate(360deg); } }
@keyframes wp-nav-wait-pulse { from { transform: translateX(-100%); } to { transform: translateX(335%); } }

/* 6.21 section heading used between panels */
.wp-section-head {
  align-items: baseline;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  margin: 26px 0 12px;
}
.wp-section-head h2 { font-size: 17.5px; font-weight: 700; letter-spacing: -0.022em; margin: 0; }
.wp-section-head span { color: var(--wp-c-ink-4); font-size: 13px; }

/* layout helpers */
.wp-grid { display: grid; gap: 16px; }
.wp-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wp-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.wp-grid--main-side { grid-template-columns: minmax(0, 1fr) 320px; }
.wp-grid--side-main { grid-template-columns: 300px minmax(0, 1fr); }
.wp-stack { display: grid; gap: 16px; }
.wp-inline { align-items: center; display: flex; flex-wrap: wrap; gap: 8px; }

/* 7 ─ Feedback & motion --------------------------------------------------- */
.wp-press { position: relative; overflow: hidden; }
.wp-ripple {
  animation: wp-ripple 520ms var(--wp-ease) forwards;
  background: currentColor;
  border-radius: 50%;
  opacity: 0.22;
  pointer-events: none;
  position: absolute;
  transform: scale(0);
}
@keyframes wp-ripple { to { opacity: 0; transform: scale(2.6); } }

[aria-busy="true"] { cursor: progress; }
.wp-btn.is-busy,
.wp11-button.is-busy { color: transparent !important; pointer-events: none; position: relative; }
.wp-btn.is-busy::after,
.wp11-button.is-busy::after {
  animation: wp-spin 0.7s linear infinite;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  border-top-color: #fff;
  content: "";
  height: 15px;
  left: calc(50% - 7.5px);
  position: absolute;
  top: calc(50% - 7.5px);
  width: 15px;
}
.wp-btn:not(.wp11-button--primary):not(.wp-btn--primary).is-busy::after {
  border-color: var(--wp-c-line-strong);
  border-top-color: var(--wp-c-brand);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .wp-skeleton { animation: none; background: var(--wp-c-surface-mute); }
}

/* 8 ─ Responsive --------------------------------------------------------- */
@media (max-width: 1180px) {
  .wp-grid--main-side,
  .wp-grid--side-main { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .wp-grid--2,
  .wp-grid--3 { grid-template-columns: minmax(0, 1fr); }
  .wp11-page,
  .wp11-main-content { padding: 18px 16px 84px; }
  .wp11-page-header h1 { font-size: 24px; }
}
@media (max-width: 1023px) {
  /* the bar was a fixed 5-column grid, so a sixth entry dropped onto a second
     row and fell out of the bar. It now fits any number of entries. */
  .wp11-mobile-nav {
    display: flex !important;
    gap: 2px;
    overflow-x: auto;
    padding: 0 4px env(safe-area-inset-bottom);
    scrollbar-width: none;
  }
  .wp11-mobile-nav::-webkit-scrollbar { display: none; }
  .wp11-mobile-nav a {
    border-radius: var(--wp-r-sm);
    flex: 1 0 auto;
    font-size: 11px !important;
    gap: 3px !important;
    min-width: 62px;
    padding: 6px 4px;
    transition: background var(--wp-dur) var(--wp-ease), color var(--wp-dur) var(--wp-ease);
  }
  .wp11-mobile-nav a i { font-size: 18px !important; }
  .wp11-mobile-nav a span {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .wp11-mobile-nav a.is-active { background: var(--wp-c-brand-soft); }
  .wp11-mobile-nav a:active { background: var(--wp-c-line-soft); }
}

@media (max-width: 640px) {
  body { font-size: 14px; }
  /* metric strips stay two-up instead of one tall column per number */
  .task-v2-metrics,
  .wp-stat-grid,
  .inventory-stat-grid {
    gap: 10px !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .task-v2-metrics a,
  .task-v2-metrics > div { min-height: 78px !important; padding: 12px 14px !important; }
  .task-v2-metrics strong { font-size: 22px !important; }
  .wp-panel__body { padding: 14px; }
  .wp-panel__head { padding: 14px; }
  .wp-stat-grid { gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wp-stat { padding: 13px 14px; }
  .wp-stat__value { font-size: 22px; }
  .wp-toast-stack { left: 16px; right: 16px; bottom: 86px; }
  .wp-toast { max-width: none; }
}

/* 9 ─ Dark --------------------------------------------------------------- */
html.dark {
  --wp-c-canvas: #0f1319;
  --wp-c-surface: #171c24;
  --wp-c-surface-sub: #1c222b;
  --wp-c-surface-mute: #222932;
  --wp-c-line: #2a323d;
  --wp-c-line-soft: #232a34;
  --wp-c-line-strong: #38414e;

  --wp-c-ink: #e9edf3;
  --wp-c-ink-2: #cbd3dd;
  --wp-c-ink-3: #9aa5b3;
  --wp-c-ink-4: #8d97a5;

  --wp-c-brand: #5b9bf8;
  --wp-c-brand-fill: #2563eb;
  --wp-c-brand-fill-hover: #1d4ed8;
  --wp-c-brand-hover: #79aefa;
  --wp-c-brand-press: #93bdfb;
  --wp-c-brand-soft: #1b2b45;
  --wp-c-brand-soft-2: #24395a;
  --wp-c-brand-ink: #8cbcfb;
  --wp-c-ring: rgba(91, 155, 248, 0.3);

  --wp-c-danger: #f28b7d;  --wp-c-danger-bg: #36211f; --wp-c-danger-line: #5a3630;
  --wp-c-danger-ink: #f6a99e;
  --wp-c-warn: #e5b45f;    --wp-c-warn-bg: #352c18;   --wp-c-warn-line: #5a4a24;
  --wp-c-ok: #63c99b;      --wp-c-ok-bg: #16302a;     --wp-c-ok-line: #265043;
  --wp-c-info: #6ba6f7;    --wp-c-info-bg: #1a2941;   --wp-c-info-line: #2c4569;
  --wp-c-plum: #b49bf5;    --wp-c-plum-bg: #272040;   --wp-c-plum-line: #3d3363;
  --wp-c-slate: #a9b3c0;   --wp-c-slate-bg: #242b35;  --wp-c-slate-line: #333c48;

  --wp-sh-xs: 0 1px 2px rgba(0, 0, 0, 0.4);
  --wp-sh-sm: 0 1px 3px rgba(0, 0, 0, 0.45);
  --wp-sh-md: 0 6px 16px rgba(0, 0, 0, 0.45);
  --wp-sh-lg: 0 16px 40px rgba(0, 0, 0, 0.55);
}

html.dark .wp11-topbar { background: rgba(23, 28, 36, 0.88); }
html.dark .wp-v11-brand-mark { box-shadow: none; }
html.dark .wp-note { background: #2e2716; border-color: #4a3d1c; }
html.dark .wp-note li { color: #f0d9a4; }
html.dark .wp-toast { background: #2a323d; }
html.dark .wp-skeleton {
  background: linear-gradient(90deg, #222932 25%, #2b333e 37%, #222932 63%);
  background-size: 400% 100%;
}
html.dark .wp11-app-shell *::-webkit-scrollbar-thumb { background: #3a434f; background-clip: content-box; }

/* 10 ─ Dashboard ---------------------------------------------------------- */
/* the page wrapper keeps the shell's contract class; padding comes from the
   main content area, so it is neutralised here to avoid doubling. */
.wp-dash { display: block; }
.wp-dash.wp-v11-page { max-width: 1480px; padding: 0; }

.wp-dash__head {
  align-items: flex-start;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 20px;
  justify-content: space-between;
  margin-bottom: 20px;
}
.wp-dash__eyebrow {
  color: var(--wp-c-brand-ink);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.wp-dash__head h1 {
  font-size: 29px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.22;
  margin: 4px 0 0;
}
.wp-dash__head p { color: var(--wp-c-ink-3); font-size: 14.5px; margin: 6px 0 0; }
.wp-dash__head-actions { align-items: center; display: flex; flex-wrap: wrap; gap: 8px; }

.wp-dash__grid {
  align-items: start;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 2.08fr) minmax(0, 0.92fr) 272px;
}
.wp-dash__grid--bottom {
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  margin-top: 16px;
}
.wp-dash__rail { display: grid; gap: 16px; }

/* filter chips above the task table */
.wp-dash__chips {
  border-bottom: 1px solid var(--wp-c-line-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 12px 18px;
}
.wp-chip {
  align-items: center;
  background: var(--wp-c-surface-mute);
  border: 1px solid transparent;
  border-radius: var(--wp-r-pill);
  color: var(--wp-c-ink-3);
  display: inline-flex;
  font-size: 12.5px;
  font-weight: 600;
  gap: 6px;
  padding: 5px 12px;
  text-decoration: none;
  transition: background var(--wp-dur) var(--wp-ease), color var(--wp-dur) var(--wp-ease),
    border-color var(--wp-dur) var(--wp-ease);
}
.wp-chip b { font-variant-numeric: tabular-nums; font-weight: 700; }
.wp-chip:hover { background: var(--wp-c-brand-soft); color: var(--wp-c-brand-ink); }
.wp-chip.is-active {
  background: var(--wp-c-brand-soft);
  border-color: var(--wp-c-brand-soft-2);
  color: var(--wp-c-brand-ink);
}

/* week strip */
.wp-weekstrip {
  border-bottom: 1px solid var(--wp-c-line-soft);
  display: grid;
  gap: 4px;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  padding: 12px 14px 14px;
}
.wp-weekstrip__day {
  align-items: center;
  border-radius: var(--wp-r-md);
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 7px 2px 6px;
  position: relative;
  text-decoration: none;
  transition: background var(--wp-dur) var(--wp-ease);
}
.wp-weekstrip__day:hover { background: var(--wp-c-surface-mute); }
.wp-weekstrip__name { color: var(--wp-c-ink-4); font-size: 12px; font-weight: 600; }
.wp-weekstrip__num {
  color: var(--wp-c-ink);
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  line-height: 1.4;
}
.wp-weekstrip__day.is-weekend .wp-weekstrip__name,
.wp-weekstrip__day.is-weekend .wp-weekstrip__num { color: var(--wp-c-ink-4); }
.wp-weekstrip__day.is-today { background: var(--wp-c-brand); }
.wp-weekstrip__day.is-today .wp-weekstrip__name,
.wp-weekstrip__day.is-today .wp-weekstrip__num { color: #fff; }
.wp-weekstrip__dot {
  background: var(--wp-c-brand);
  border-radius: 50%;
  height: 4px;
  width: 4px;
}
.wp-weekstrip__day.is-today .wp-weekstrip__dot { background: #fff; }

/* the task table is the densest thing on the page: keep titles on one line */
.wp-dash .wp-table td.wp-table__title { max-width: 0; }
.wp-dash .wp-table td.wp-table__title a {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wp-dash .wp-table__excerpt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wp-dash .wp-table tbody td { padding: 9px 12px; }
.wp-dash .wp-table thead th { padding: 10px 12px; }

/* table cell helpers used by the dashboard */
.wp-due { font-variant-numeric: tabular-nums; }
.wp-due.is-overdue,
.wp-due.is-today { color: var(--wp-c-danger); font-weight: 600; }
.wp-muted-cell { color: var(--wp-c-ink-4); }

.wp-dash .wp-panel__body:has(> .wp-quick-list) { padding: 14px; }
.wp-dash .wp-timeline { padding: 6px 16px 14px; }
.wp-dash .wp-table-scroll { padding-bottom: 2px; }

@media (max-width: 1400px) {
  .wp-dash__grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
  .wp-dash__rail {
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 1000px) {
  .wp-dash__grid,
  .wp-dash__grid--bottom { grid-template-columns: minmax(0, 1fr); }
  .wp-dash__rail { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .wp-dash__head h1 { font-size: 24px; }
  .wp-dash__head-actions { width: 100%; }
  .wp-dash__head-actions > * { flex: 1; }
  .wp-weekstrip { padding: 10px 8px 12px; }
}

/* 11 ─ Hero header + flat stats ------------------------------------------- */
/* A page header with a large icon tile, used where a page represents one
   thing (a board, a project) rather than a list of things. */
.wp-hero {
  align-items: flex-start;
  background: var(--wp-c-surface);
  border: 1px solid var(--wp-c-line);
  border-radius: var(--wp-r-lg);
  box-shadow: var(--wp-sh-xs);
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
  padding: 20px 22px;
}
.wp-hero__icon {
  align-items: center;
  background: var(--wp-c-brand-soft);
  border-radius: var(--wp-r-lg);
  color: var(--wp-c-brand);
  display: inline-flex;
  flex: none;
  font-size: 22px;
  height: 56px;
  justify-content: center;
  width: 56px;
}
.wp-hero__body { flex: 1; min-width: 0; }
.wp-hero__body h1 {
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -0.028em;
  line-height: 1.24;
  margin: 2px 0 0;
}
.wp-hero__body p { color: var(--wp-c-ink-3); font-size: 14px; margin: 6px 0 0; }
.wp-hero__meta { align-items: center; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.wp-hero__actions { align-items: center; display: flex; flex-wrap: wrap; gap: 8px; }

/* stat card variant: icon beside the number instead of above it */
.wp-stat--flat { align-items: center; display: flex; gap: 13px; }
.wp-stat__side { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.wp-stat__side small { color: var(--wp-c-ink-3); font-size: 12.5px; font-weight: 500; }
.wp-stat__side strong {
  font-size: 24px;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
}
.wp-stat__side strong.is-text { font-size: 19px; letter-spacing: -0.02em; }

/* toolbar variants used inside panels */
.wp-panel > .wp-toolbar {
  border-bottom: 1px solid var(--wp-c-line-soft);
  margin: 0;
  padding: 12px 16px;
}
.wp-toolbar__end { align-items: center; display: flex; gap: 8px; margin-left: auto; }
.wp-toolbar__note { color: var(--wp-c-ink-4); font-size: 12.5px; }

/* author cell: name over team */
.wp-avatar-name__text { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.wp-avatar-name__text b { font-size: 13px; font-weight: 600; }
.wp-avatar-name__text small { color: var(--wp-c-ink-4); font-size: 11.5px; }
.wp-stamp { display: flex; flex-direction: column; font-variant-numeric: tabular-nums; line-height: 1.35; }
.wp-stamp b { font-size: 12.5px; font-weight: 500; }
.wp-stamp small { color: var(--wp-c-ink-4); font-size: 11.5px; }

/* 12 ─ Forms -------------------------------------------------------------- */
.wp-field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.wp-field + .wp-field,
.wp-field-row + .wp-field,
.wp-field + .wp-field-row { margin-top: 20px; }
.wp-field__head { align-items: center; display: flex; gap: 12px; justify-content: space-between; }
.wp-field__foot { align-items: center; display: flex; gap: 10px; justify-content: flex-end; }
.wp-field-row {
  align-items: start;
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}
/* grid cells space themselves; the stacking margin is for siblings only */
.wp-field-row > .wp-field { margin-top: 0; }

.wp-label {
  color: var(--wp-c-ink-2) !important;
  display: block;
  font-size: 13px !important;
  font-weight: 600 !important;
  letter-spacing: -0.005em;
  margin-bottom: 0 !important;
}
.wp-label--required::after { color: var(--wp-c-danger); content: " *"; font-weight: 700; }
.wp-hint { color: var(--wp-c-ink-4); font-size: 12px; }

.wp-input--lg { font-size: 15px !important; min-height: 44px !important; }
.wp-input--file { padding: 8px 10px !important; }

/* a read-only value that still reads as part of the form */
.wp-static-field {
  align-items: center;
  background: var(--wp-c-surface-mute);
  border: 1px solid var(--wp-c-line-soft);
  border-radius: var(--wp-r-sm);
  color: var(--wp-c-ink-2);
  display: flex;
  font-size: 13.5px;
  gap: 8px;
  min-height: var(--wp-control-h);
  padding: 0 12px;
}
.wp-static-field i { color: var(--wp-c-ink-4); font-size: 13px; }

/* switch */
.wp-switch { align-items: center; cursor: pointer; display: flex; gap: 10px; }
.wp-switch input { position: absolute; opacity: 0; pointer-events: none; }
.wp-switch__track {
  background: var(--wp-c-line-strong);
  border-radius: var(--wp-r-pill);
  flex: none;
  height: 22px;
  position: relative;
  transition: background var(--wp-dur) var(--wp-ease);
  width: 40px;
}
.wp-switch__track::after {
  background: #fff;
  border-radius: 50%;
  box-shadow: var(--wp-sh-xs);
  content: "";
  height: 16px;
  left: 3px;
  position: absolute;
  top: 3px;
  transition: transform var(--wp-dur) var(--wp-ease);
  width: 16px;
}
.wp-switch input:checked + .wp-switch__track { background: var(--wp-c-brand); }
.wp-switch input:checked + .wp-switch__track::after { transform: translateX(18px); }
.wp-switch input:focus-visible + .wp-switch__track { box-shadow: 0 0 0 3px var(--wp-c-ring); }
.wp-switch b { font-size: 13px; font-weight: 600; }
.wp-switch-field { cursor: pointer; }

/* radio cards — one visible choice per card */
.wp-choice-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.wp-choice {
  align-items: flex-start;
  background: var(--wp-c-surface);
  border: 1px solid var(--wp-c-line-strong);
  border-radius: var(--wp-r-md);
  cursor: pointer;
  display: flex;
  gap: 12px;
  padding: 14px;
  transition: border-color var(--wp-dur) var(--wp-ease), background var(--wp-dur) var(--wp-ease),
    box-shadow var(--wp-dur) var(--wp-ease);
}
.wp-choice:hover { border-color: var(--wp-c-brand-soft-2); }
.wp-choice input {
  accent-color: var(--wp-c-brand);
  flex: none;
  height: 17px;
  margin: 2px 0 0 auto;
  width: 17px;
}
.wp-choice__icon {
  align-items: center;
  background: var(--wp-c-surface-mute);
  border-radius: var(--wp-r-sm);
  color: var(--wp-c-ink-3);
  display: inline-flex;
  flex: none;
  font-size: 15px;
  height: 38px;
  justify-content: center;
  width: 38px;
}
.wp-choice__body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.wp-choice__body strong { font-size: 13.5px; font-weight: 650; }
.wp-choice__body span { color: var(--wp-c-ink-3); font-size: 12.5px; line-height: 1.5; }
.wp-choice:has(input:checked) {
  background: var(--wp-c-brand-soft);
  border-color: var(--wp-c-brand);
  box-shadow: 0 0 0 1px var(--wp-c-brand);
}
.wp-choice:has(input:checked) .wp-choice__icon { background: var(--wp-c-surface); color: var(--wp-c-brand); }

/* an advisory strip at the foot of a form panel */
.wp-notice-bar {
  align-items: center;
  background: var(--wp-c-brand-soft);
  border-top: 1px solid var(--wp-c-line-soft);
  color: var(--wp-c-brand-ink);
  display: flex;
  font-size: 13px;
  gap: 10px;
  padding: 13px 18px;
}
.wp-notice-bar i { font-size: 14px; }

/* sticky action bar for long forms */
.wp-form-actions {
  align-items: center;
  background: var(--wp-c-surface);
  border: 1px solid var(--wp-c-line);
  border-radius: var(--wp-r-lg);
  box-shadow: var(--wp-sh-xs);
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 16px;
  padding: 14px 18px;
}

/* label-on-the-left form rows, for settings-style forms */
.wp-form-row {
  align-items: start;
  display: grid;
  gap: 8px 20px;
  grid-template-columns: 132px minmax(0, 1fr);
  padding: 16px 0;
}
.wp-form-row + .wp-form-row { border-top: 1px solid var(--wp-c-line-soft); }
.wp-form-row:first-child { padding-top: 2px; }
.wp-form-row:last-child { padding-bottom: 2px; }
.wp-form-row > .wp-label { padding-top: 9px; }
.wp-form-row__control { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.wp-form-row__foot { display: flex; gap: 12px; justify-content: space-between; }

/* panel head with an icon tile */
.wp-panel__head--icon { align-items: center; gap: 13px; justify-content: flex-start; }
.wp-panel__icon {
  align-items: center;
  background: var(--wp-c-brand-soft);
  border-radius: var(--wp-r-md);
  color: var(--wp-c-brand);
  display: inline-flex;
  flex: none;
  font-size: 16px;
  height: 40px;
  justify-content: center;
  width: 40px;
}

@media (max-width: 720px) {
  .wp-form-row { grid-template-columns: minmax(0, 1fr); }
  .wp-form-row > .wp-label { padding-top: 0; }
}

/* activity feed text is single-line: long task titles truncate rather than
   pushing the rail wider */
.wp-feed__body { min-width: 0; }
.wp-feed__body a,
.wp-feed__body p { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* disclosure — a settings block that stays out of the way until wanted */
.wp-disclosure,
.content-compose-settings {
  border: 1px solid var(--wp-c-line);
  border-radius: var(--wp-r-md);
  margin-top: 20px;
}
.wp-disclosure > summary,
.content-compose-settings > summary {
  align-items: center;
  border-radius: var(--wp-r-md);
  color: var(--wp-c-ink-2);
  cursor: pointer;
  display: flex;
  font-size: 13.5px;
  font-weight: 600;
  gap: 10px;
  list-style: none;
  padding: 13px 16px;
  transition: background var(--wp-dur) var(--wp-ease);
}
.wp-disclosure > summary::-webkit-details-marker,
.content-compose-settings > summary::-webkit-details-marker { display: none; }
.wp-disclosure > summary:hover,
.content-compose-settings > summary:hover { background: var(--wp-c-surface-sub); }
.wp-disclosure > summary > i,
.content-compose-settings > summary > i { color: var(--wp-c-ink-4); font-size: 12px; margin-left: auto; transition: transform var(--wp-dur) var(--wp-ease); }
.wp-disclosure[open] > summary,
.content-compose-settings[open] > summary { border-bottom: 1px solid var(--wp-c-line-soft); border-radius: var(--wp-r-md) var(--wp-r-md) 0 0; }
.wp-disclosure[open] > summary > i,
.content-compose-settings[open] > summary > i { transform: rotate(180deg); }
.wp-disclosure__note { color: var(--wp-c-ink-4); font-size: 12.5px; font-weight: 500; }
.wp-disclosure__body { padding: 16px; }
.wp-disclosure__body > .wp-field-row:first-child,
.wp-disclosure__body > .wp-field:first-child { margin-top: 0; }

/* 13 ─ Dashboard, matched to the reference layout ------------------------- */
/* header: greeting on the left, date and one action on the right */
.wp-dash__head { align-items: flex-start; gap: 20px 24px; margin-bottom: 20px; }
.wp-dash__head-main h1 { font-size: 31px; letter-spacing: -0.032em; margin: 0; }
.wp-dash__head-main p { color: var(--wp-c-ink-3); font-size: 14.5px; margin: 8px 0 0; }
.wp-dash__head-side { align-items: flex-end; display: flex; flex-direction: column; gap: 10px; }
.wp-dash__date { color: var(--wp-c-ink-3); font-size: 13.5px; font-weight: 500; }

/* stat cards: one shape for all four — icon + label, number, progress bar */
.wp-stat-grid { gap: 20px; margin-bottom: 20px; }
.wp-dash .wp-stat { padding: 18px 20px; }
.wp-dash .wp-stat__top { gap: 12px; margin-bottom: 12px; }
.wp-dash .wp-stat__icon { border-radius: var(--wp-r-md); font-size: 16px; height: 40px; width: 40px; }
.wp-dash .wp-stat__label { font-size: 13.5px; }
.wp-dash .wp-stat__value { font-size: 34px; gap: 5px; letter-spacing: -0.035em; line-height: 1.05; }
.wp-dash .wp-stat__value small { color: var(--wp-c-ink-4); font-size: 13.5px; font-weight: 500; }
.wp-dash .wp-progress-row { margin-top: 14px; }
.wp-dash .wp-progress { height: 7px; }
.wp-stat--danger .wp-stat__value { color: var(--wp-c-danger-ink); }
.wp-progress--plum > span { background: #8b5cf6; }

/* panels sit on the same 20px rhythm as the cards */
.wp-dash__grid { gap: 20px; }
.wp-dash__grid--bottom { gap: 20px; margin-top: 20px; }
.wp-dash__rail { gap: 20px; }

/* task table: a select column and tighter rows, as in the reference */
.wp-table__check { padding-left: 16px !important; padding-right: 0 !important; width: 38px; }
.wp-table__check input { cursor: pointer; margin: 0; vertical-align: middle; }
.wp-dash .wp-table tbody td { padding: 10px 12px; }
.wp-dash .wp-table tbody tr { height: 44px; }

/* chips lose the divider and sit closer to the table */
.wp-dash__chips { border-bottom: 0; padding: 4px 16px 12px; }
.wp-chip { font-size: 13px; padding: 6px 13px; }
.wp-chip b { color: var(--wp-c-ink-4); font-weight: 600; }
.wp-chip.is-active b { color: var(--wp-c-brand); }

/* month strip above the weekday row */
.wp-weeknav {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  padding: 12px 16px 2px;
}
.wp-weeknav strong { font-size: 14.5px; font-weight: 650; }
.wp-iconbtn {
  align-items: center;
  border: 1px solid var(--wp-c-line);
  border-radius: var(--wp-r-sm);
  color: var(--wp-c-ink-3);
  display: inline-flex;
  height: 28px;
  justify-content: center;
  text-decoration: none;
  transition: background var(--wp-dur) var(--wp-ease), color var(--wp-dur) var(--wp-ease);
  width: 28px;
}
.wp-iconbtn:hover { background: var(--wp-c-brand-soft); color: var(--wp-c-brand-ink); }
.wp-weekstrip { border-bottom: 1px solid var(--wp-c-line-soft); padding: 8px 12px 14px; }
.wp-weekstrip__day { gap: 5px; padding: 8px 2px; }
.wp-weekstrip__num { font-size: 17px; font-weight: 650; }
.wp-weekstrip__day.is-today { border-radius: var(--wp-r-sm); }

/* timeline: dot, then a stacked start/end time, then the entry */
.wp-dash .wp-timeline__item { align-items: flex-start; display: flex; gap: 12px; padding: 12px 16px; position: relative; }
.wp-timeline__dot {
  background: var(--wp-c-brand);
  border-radius: 50%;
  flex: none;
  height: 7px;
  margin-top: 6px;
  width: 7px;
}
.wp-dash .wp-timeline__time { display: flex; flex: none; flex-direction: column; font-variant-numeric: tabular-nums; width: 42px; }
.wp-dash .wp-timeline__time b { font-size: 12.5px; font-weight: 600; }
.wp-dash .wp-timeline__time small { color: var(--wp-c-ink-4); font-size: 12px; }

/* memos read as a sticky note */
.wp-note--sticky {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: var(--wp-r-md);
  padding: 14px 16px;
}
.wp-note--sticky ul { display: flex; flex-direction: column; gap: 9px; list-style: none; margin: 0; padding: 0; }
.wp-note--sticky li {
  color: #713f12;
  font-size: 13px;
  line-height: 1.5;
  padding-left: 14px;
  position: relative;
}
.wp-note--sticky li::before {
  background: #d97706;
  border-radius: 50%;
  content: "";
  height: 4px;
  left: 2px;
  position: absolute;
  top: 8px;
  width: 4px;
}
/* this stylesheet keys dark mode off html.dark; the earlier data-theme
   selector matched in light mode and darkened the note there */
html.dark .wp-note--sticky { background: #2c2415; border-color: #4d3f1d; }
html.dark .wp-note--sticky li { color: #f5deb0; }

@media (max-width: 640px) {
  .wp-dash__head-main h1 { font-size: 25px; }
  .wp-dash__head-side { align-items: flex-start; width: 100%; }
  .wp-stat-grid, .wp-dash__grid, .wp-dash__grid--bottom, .wp-dash__rail { gap: 14px; }
}

/* the task list is the page's densest column: every cell gives the title room */
.wp-dash .wp-table td,
.wp-dash .wp-table th { padding-left: 10px; padding-right: 10px; }
.wp-dash .wp-table__check { padding-left: 14px !important; width: 34px; }
.wp-dash .wp-avatar-name { gap: 6px; }
.wp-dash .wp-avatar-name > .wp-avatar { flex: none; }
.wp-dash .wp-table .wp-badge { padding: 3px 7px; }

/* 14 ─ Dashboard page frame ---------------------------------------------- */
/* The reference puts the quick-actions rail beside the whole page, starting
   level with the title — not below the summary cards. */
.wp-dash__body {
  align-items: start;
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0, 1fr) 252px;
}
.wp-dash__main { min-width: 0; }
.wp-dash__row {
  align-items: start;
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0, 1.73fr) minmax(0, 1fr);
}
.wp-dash__row + .wp-dash__row { margin-top: 20px; }
.wp-dash__row--bottom { grid-template-columns: minmax(0, 1.28fr) minmax(0, 1fr); }
.wp-dash__rail { display: grid; gap: 20px; position: sticky; top: 16px; }

/* the summary cards now sit inside the main column */
.wp-dash__main .wp-stat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 1280px) {
  .wp-dash__body { grid-template-columns: minmax(0, 1fr); }
  .wp-dash__rail { grid-template-columns: repeat(3, minmax(0, 1fr)); position: static; }
}
@media (max-width: 960px) {
  .wp-dash__row,
  .wp-dash__row--bottom { grid-template-columns: minmax(0, 1fr); }
  .wp-dash__main .wp-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wp-dash__rail { grid-template-columns: minmax(0, 1fr); }
}

/* Widths on the task table are authoritative, so the title column keeps the
   space the reference gives it instead of losing it to the meta columns. */
.wp-dash .wp-table--fixed { table-layout: fixed; width: 100%; }
.wp-dash .wp-table--fixed td { overflow: hidden; }
.wp-dash .wp-table td.wp-table__title { max-width: none; }
.wp-dash .wp-avatar-name { max-width: 100%; }

/* meta cells never wrap: a due label or a status badge broken across two lines
   changes the row height and breaks the list's rhythm */
.wp-dash .wp-table .wp-due,
.wp-dash .wp-table .wp-badge,
.wp-dash .wp-table td.wp-num { white-space: nowrap; }

/* dashboard table headers take the reference's smaller label size, which also
   keeps four-character headings inside narrow columns */
.wp-dash .wp-table thead th { font-size: 12px; letter-spacing: -0.015em; padding: 9px 8px; }
.wp-dash .wp-table td.wp-num { font-size: 12.5px; }

/* 15 ─ Dashboard density pass -------------------------------------------- */
/* The rail carries quick actions and memos, so it earns more width; the main
   column stays wide enough for the task table. */
.wp-dash__body { grid-template-columns: minmax(0, 1fr) 312px; }

/* header: one short line of copy, tighter block */
.wp-dash__head { margin-bottom: 16px; }
.wp-dash__head-main h1 { font-size: 27px; }
.wp-dash__head-main p { font-size: 13.5px; margin-top: 5px; }

/* summary cards lose height so the lists below start higher up the page */
.wp-dash .wp-stat { padding: 13px 16px; }
.wp-dash .wp-stat__top { gap: 9px; margin-bottom: 7px; }
.wp-dash .wp-stat__icon { font-size: 14px; height: 32px; width: 32px; }
.wp-dash .wp-stat__label { font-size: 12.5px; }
.wp-dash .wp-stat__value { font-size: 26px; }
.wp-dash .wp-stat__value small { font-size: 12.5px; }
.wp-dash .wp-progress-row { margin-top: 9px; }
.wp-dash .wp-progress { height: 5px; }
.wp-stat-grid { gap: 14px; margin-bottom: 16px; }

/* panels in a row share one height, so their headers and rules line up */
.wp-dash__row { align-items: stretch; gap: 16px; }
.wp-dash__row + .wp-dash__row { margin-top: 16px; }
.wp-dash__rail { gap: 16px; }
.wp-dash__row > .wp-panel { display: flex; flex-direction: column; min-height: 0; }

/* every panel header is the same height, whatever sits on its right */
.wp-dash .wp-panel__head {
  align-items: center;
  flex: none;
  min-height: 56px;
  padding-bottom: 0;
  padding-top: 0;
}
.wp-dash .wp-panel__head .wp-btn--sm { margin: 0; }

/* the list inside a panel scrolls; the panel itself keeps its height */
.wp-panel__scroll { flex: 1; min-height: 0; overflow-y: auto; }
/* :first-of-type counted the stat grid, so the row is named explicitly */
.wp-dash__row:not(.wp-dash__row--bottom) > .wp-panel { height: 480px; }
.wp-dash__row--bottom > .wp-panel { height: 340px; }
.wp-dash .wp-panel__foot {
  align-items: center;
  border-top: 1px solid var(--wp-c-line-soft);
  color: var(--wp-c-ink-4);
  display: flex;
  flex: none;
  font-size: 12.5px;
  gap: 12px;
  justify-content: space-between;
  padding: 10px 16px;
}
.wp-dash .wp-empty { flex: 1; }

/* sticky header row so column labels stay put while the list scrolls */
.wp-dash .wp-panel__scroll thead th {
  background: var(--wp-c-surface-sub);
  position: sticky;
  top: 0;
  z-index: 1;
}

/* quick actions: tighter rows, more of them visible */
.wp-dash .wp-quick-list { gap: 6px; }
.wp-dash .wp-quick { font-size: 13px; gap: 10px; padding: 9px 12px; }
.wp-dash__rail .wp-panel__head { min-height: 48px; }
.wp-dash__rail .wp-panel__body { padding: 12px 14px 14px; }

@media (max-width: 1280px) {
  .wp-dash__body { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 960px) {
  .wp-dash__row:not(.wp-dash__row--bottom) > .wp-panel,
  .wp-dash__row--bottom > .wp-panel { height: auto; max-height: 480px; }
}

/* the date sits at the head of the topbar actions, beside the search field */
.wp11-topbar__date {
  color: var(--wp-c-ink-3);
  font-size: 13px;
  font-weight: 500;
  margin-right: 4px;
  white-space: nowrap;
}
@media (max-width: 1100px) { .wp11-topbar__date { display: none; } }

/* breathing room under the last row so a scrolled page does not end flush */
.wp-dash { padding-bottom: 28px; }

/* a labelled group inside a table, used where one list holds two kinds of row */
.wp-table__group td {
  background: var(--wp-c-surface-sub);
  color: var(--wp-c-ink-4);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 6px 12px !important;
}
.wp-table__group:hover td { background: var(--wp-c-surface-sub); }

/* 16 ─ Topbar search + week picker ---------------------------------------- */
/* The search chrome already draws the field; the generic input skin was
   painting a second border and background inside it. */
.wp-v11-search input,
.wp-v11-search input[type="search"] {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  height: 100% !important;
  min-height: 0 !important;
  /* the icon and the shortcut badge are positioned over the field, so the
     text needs room on both sides */
  padding: 0 62px 0 26px !important;
  width: 100%;
}
.wp-v11-search input:focus { box-shadow: none !important; outline: none !important; }
.wp-v11-search:focus-within {
  background: var(--wp-c-surface);
  border-color: var(--wp-c-brand);
  box-shadow: 0 0 0 3px var(--wp-c-ring);
}
.wp-v11-search kbd { flex: none; }

/* the weekday cells are buttons now, so they need the button reset */
.wp-weekstrip__day {
  background: transparent;
  border: 0;
  cursor: pointer;
  font-family: inherit;
}
.wp-weekstrip__day.is-selected { background: var(--wp-c-brand-fill); }
.wp-weekstrip__day.is-selected .wp-weekstrip__name,
.wp-weekstrip__day.is-selected .wp-weekstrip__num { color: #fff; }
.wp-weekstrip__day.is-selected .wp-weekstrip__dot { background: #fff; }
.wp-weekstrip__day:focus-visible { box-shadow: 0 0 0 3px var(--wp-c-ring); outline: none; }
.wp-daypanels > .wp-daypanel[hidden] { display: none; }
.wp-daypanel { display: flex; flex-direction: column; min-height: 100%; }
.wp-daypanel .wp-empty { flex: 1; }

/* both dashboard rows split their width the same way, so the panel edges
   line up down the page */
.wp-dash__row,
.wp-dash__row--bottom { grid-template-columns: minmax(0, 1.76fr) minmax(0, 1fr); }

/* the timeline already draws a marker via ::before, so the dashboard's own
   dot replaces it rather than doubling up */
.wp-dash .wp-timeline__item::before { display: none; }

/* chips are buttons now, and a hidden row must not keep its table display */
.wp-chip { border: 1px solid transparent; cursor: pointer; font-family: inherit; }
.wp-dash .wp-table tr[hidden] { display: none; }
.wp-table__none td {
  color: var(--wp-c-ink-4);
  font-size: 13px;
  padding: 28px 12px !important;
  text-align: center;
}

/* a task row behaves like a button that opens the detail drawer */
.wp-dash tr[data-open-task] { cursor: pointer; }
.wp-dash tr[data-open-task]:focus-visible { outline: 2px solid var(--wp-c-brand); outline-offset: -2px; }
.wp-table__link { color: var(--wp-c-ink); font-size: 14px; font-weight: 600; }
.wp-dash tr[data-open-task]:hover .wp-table__link { color: var(--wp-c-brand); }

/* 17 ─ Event detail drawer ------------------------------------------------ */
.wp-event-drawer { inset: 0; position: fixed; z-index: 60; }
.wp-event-drawer[hidden] { display: none; }
.wp-event-drawer__scrim { background: rgba(16, 24, 40, 0.32); inset: 0; position: absolute; }
.wp-event-drawer__panel {
  animation: wp-drawer-in var(--wp-dur-slow) var(--wp-ease);
  background: var(--wp-c-surface);
  border-left: 1px solid var(--wp-c-line);
  bottom: 0;
  box-shadow: var(--wp-sh-lg);
  display: flex;
  flex-direction: column;
  max-width: 420px;
  overflow-y: auto;
  padding: 22px 24px 24px;
  position: absolute;
  right: 0;
  top: 0;
  width: 100%;
}
.wp-event-drawer__panel > header {
  align-items: flex-start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 20px;
}
.wp-event-drawer__eyebrow { color: var(--wp-c-brand-ink); font-size: 12.5px; font-weight: 700; }
.wp-event-drawer__panel h2 {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.024em;
  line-height: 1.35;
  margin: 5px 0 0;
}
.wp-event-drawer__facts { display: grid; gap: 10px; margin: 0; }
.wp-event-drawer__facts > div {
  background: var(--wp-c-surface-sub);
  border: 1px solid var(--wp-c-line-soft);
  border-radius: var(--wp-r-md);
  padding: 12px 14px;
}
.wp-event-drawer__facts dt { color: var(--wp-c-ink-4); font-size: 12px; margin-bottom: 4px; }
.wp-event-drawer__facts dd { font-size: 14px; font-weight: 600; margin: 0; }
.wp-event-drawer__panel > footer { margin-top: auto; padding-top: 20px; }
.wp-event-drawer__panel > footer .wp-btn { justify-content: center; width: 100%; }

/* a timeline entry is a button now, so it needs the button reset */
.wp-timeline__item {
  background: transparent;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  width: 100%;
}
.wp-weeknav.is-loading { opacity: 0.55; pointer-events: none; }

@media (max-width: 720px) {
  .wp-event-drawer__panel {
    border-left: 0;
    border-radius: var(--wp-r-xl) var(--wp-r-xl) 0 0;
    border-top: 1px solid var(--wp-c-line);
    height: 74dvh;
    max-width: none;
    top: auto;
  }
}
.wp-feed__note {
  color: var(--wp-c-ink-4);
  display: block;
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* quick memo box in the dashboard rail */
.wp-memo-add { display: flex; gap: 6px; margin-bottom: 12px; }
.wp-memo-add .wp-input { flex: 1; font-size: 13px; min-width: 0; }
.wp-memo-add .wp-btn { flex: none; padding: 0 11px; }
.wp-memo-status { font-size: 12px; margin: -6px 0 10px; }
.wp-memo-status[data-tone="ok"] { color: var(--wp-c-ok); }
.wp-memo-status[data-tone="danger"] { color: var(--wp-c-danger-ink); }
.wp-note--sticky li a { color: inherit; display: block; text-decoration: none; }
.wp-note--sticky li a:hover { text-decoration: underline; }

/* per-memo actions inside the sticky note */
.wp-note--sticky li { align-items: center; display: flex; gap: 8px; }
.wp-note--sticky li > a { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wp-note--sticky li.is-pinned > a { font-weight: 600; }
.wp-memo-actions { display: flex; flex: none; gap: 2px; opacity: 0; transition: opacity var(--wp-dur) var(--wp-ease); }
.wp-note--sticky li:hover .wp-memo-actions,
.wp-note--sticky li:focus-within .wp-memo-actions,
.wp-memo-action.is-on { opacity: 1; }
.wp-memo-action {
  background: transparent;
  border: 0;
  border-radius: var(--wp-r-xs);
  color: #a1731f;
  cursor: pointer;
  font-size: 11px;
  line-height: 1;
  padding: 4px 5px;
}
.wp-memo-action:hover { background: rgba(180, 130, 20, 0.16); }
.wp-memo-action.is-on { color: #b45309; }
.wp-memo-action--danger:hover { background: var(--wp-c-danger-bg); color: var(--wp-c-danger-ink); }
.wp-memo-action:focus-visible { opacity: 1; outline: 2px solid var(--wp-c-brand); outline-offset: 1px; }
.wp-memo-action[disabled] { cursor: not-allowed; opacity: 0.5; }
html.dark .wp-memo-action { color: #d9b877; }
html.dark .wp-memo-action:hover { background: rgba(255, 255, 255, 0.08); }
