/* Feinh Pro, the new design (founder, 2 Nov 2026; redesign-canvas Showpiece.dc.html, People, PersonV3, Deals).
   Every rule is scoped to body.fp-v2 (pro_shell.context), so it wins over the older page stylesheets without !important.
   Tokens only (tokens.css, the .fp-v2 block). Logic on the pages is untouched: this is the look. */

/* ------------------------------------------------------------------ canvas and type */
body.fp-v2 { background: var(--v2-canvas); font-family: var(--font-ui); font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; }
.fp-v2 .fp-main, .fp-v2 .fp-page { background: var(--v2-canvas); }
.fp-v2 .fp-t-title, .fp-v2 .fp-page h1 { font-family: var(--font-display); letter-spacing: -0.02em; }

/* ------------------------------------------------------------------ sidebar */
.fp-v2 .fp-sidebar { background: var(--surface-raised); border-inline-end: var(--border-w) solid var(--border-default); }
.fp-v2 .fp-sb-top { block-size: auto; padding: var(--space-6) var(--space-3) var(--space-6) var(--space-5); align-items: center; }
.fp-v2 .fp-app.is-folded .fp-sb-top { padding-inline: 0; }
.fp-v2 .fp-wordmark .fp-dot { inline-size: var(--space-2); block-size: var(--space-2); }
.fp-v2 .fp-sb-top .fp-wordmark { font-size: var(--text-hero-n-size); line-height: var(--text-hero-n-lh); font-weight: var(--weight-strong); letter-spacing: -0.03em; color: var(--text-primary); }
.fp-v2 .fp-pro-tag { background: none; border: 0; padding: 0; font-size: var(--text-meta-size); font-weight: var(--weight-strong); letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-secondary); }
.fp-v2 .fp-sb-nav { padding: var(--space-1) var(--space-3) var(--space-3); gap: var(--space-half); }
.fp-v2 .fp-nav-group { gap: var(--space-half); }
.fp-v2 .fp-nav-item { block-size: var(--control-touch); gap: var(--space-3); padding-inline: var(--space-3); border-radius: var(--radius-pill); font-size: var(--text-section-size); line-height: var(--text-section-lh); color: var(--v2-ink-2); }
.fp-v2 .fp-nav-item .fp-icon { inline-size: var(--icon-md); block-size: var(--icon-md); color: var(--text-secondary); }
.fp-v2 a.fp-nav-item:hover, .fp-v2 button.fp-nav-item:hover { background: var(--v2-canvas); color: var(--text-primary); }
.fp-v2 .fp-nav-item.is-active, .fp-v2 a.fp-nav-item.is-active:hover { background: var(--surface-dark); color: var(--text-on-dark); font-weight: var(--weight-strong); box-shadow: none; }
.fp-v2 .fp-nav-item.is-active .fp-icon { color: var(--text-accent-on-dark); }
.fp-v2 .fp-nav-item.is-active .fp-badge { background: var(--surface-raised); color: var(--text-primary); }
.fp-v2 .fp-nav-item.is-active .fp-badge-action { background: var(--status-action-bg); color: var(--status-action-text); box-shadow: 0 0 0 var(--space-half) var(--surface-dark); }
.fp-v2 .fp-nav-more { margin-block-start: var(--space-3); padding-block-start: var(--space-3); border-block-start: var(--border-w) solid var(--border-subtle); }
.fp-v2 .fp-more-toggle .fp-more-n { margin-inline-start: auto; }
.fp-v2 .fp-more-items .fp-nav-item { block-size: var(--control-md); font-size: var(--text-body-size); line-height: var(--text-body-lh); }
.fp-v2 .fp-sb-foot { margin-block-start: auto; display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-3) var(--space-3) var(--space-5); }
.fp-v2 .fp-ai-card { display: grid; gap: var(--space-1); padding: var(--space-3) var(--space-4); border-radius: var(--radius-lg); background: var(--v2-canvas); color: var(--text-primary); text-decoration: none; }
.fp-v2 a.fp-ai-card:hover { background: var(--surface-subtle); text-decoration: none; }
.fp-v2 .fp-ai-h { display: flex; align-items: center; gap: var(--space-2); font-size: var(--text-body-size); line-height: var(--text-body-lh); font-weight: var(--weight-strong); }
.fp-v2 .fp-ai-dot { inline-size: var(--space-2); block-size: var(--space-2); border-radius: var(--radius-full); background: var(--accent-strong); box-shadow: 0 0 0 var(--space-1) var(--success-bg); flex: none; }
.fp-v2 .fp-ai-card.is-paused .fp-ai-dot { background: var(--warning-mark); box-shadow: 0 0 0 var(--space-1) var(--warning-bg); }
.fp-v2 .fp-ai-sub { font-size: var(--text-table-size); line-height: var(--text-table-lh); color: var(--text-secondary); }
.fp-v2 .fp-ai-bar { display: block; block-size: var(--space-1); border-radius: var(--radius-full); background: var(--v2-track); overflow: hidden; margin-block-start: var(--space-1); }
.fp-v2 .fp-ai-bar > span { display: block; block-size: 100%; background: var(--accent-strong); border-radius: var(--radius-full); }
.fp-v2 .fp-me { display: flex; align-items: center; gap: var(--space-3); padding-inline: var(--space-1); min-inline-size: 0; }
.fp-v2 .fp-me-av { inline-size: var(--control-md); block-size: var(--control-md); flex: none; background: var(--success-bg); color: var(--text-link); font-weight: var(--weight-strong); }
.fp-v2 .fp-me-txt { display: grid; min-inline-size: 0; font-size: var(--text-body-size); line-height: var(--text-body-lh); }
.fp-v2 .fp-me-txt b, .fp-v2 .fp-me-txt small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fp-v2 .fp-me-txt small { font-size: var(--text-table-size); color: var(--text-secondary); }
.fp-v2 .fp-app.is-folded .fp-nav-item { padding-inline: 0; }
.fp-v2 .fp-app.is-folded .fp-sb-foot { display: none; }

/* ------------------------------------------------------------------ top bar: quieter, on the canvas */
.fp-v2 .fp-topbar { background: var(--v2-canvas); border-block-end-color: transparent; }
.fp-v2 .fp-search-trigger { border-radius: var(--radius-pill); background: var(--surface-raised); }

/* ------------------------------------------------------------------ shared pieces: cards, buttons, chips, lists, headers */
.fp-v2 .fp-card { border-color: var(--border-default); border-radius: var(--radius-card); box-shadow: var(--elevation-1); }
.fp-v2 .fp-card-head { border-block-end-color: var(--border-subtle); }
.fp-v2 .fp-card-head .fp-t { font-family: var(--font-display); font-size: var(--text-section-size); line-height: var(--text-section-lh); }
.fp-v2 .pro-card { border-color: var(--border-default); border-radius: var(--radius-card); box-shadow: var(--elevation-1); }
.fp-v2 .fp-btn { border-radius: var(--radius-sm); font-weight: var(--weight-strong); }
.fp-v2 .fp-btn:not(.fp-btn-sm):not(.fp-btn-icon) { border-radius: var(--radius-pill); }
.fp-v2 .fp-btn-secondary { border-color: var(--border-strong); background: var(--surface-raised); color: var(--text-primary); }
.fp-v2 .fp-btn-secondary:hover { border-color: var(--primary); }
.fp-v2 .fp-btn-ghost { color: var(--v2-ink-2); }
.fp-v2 .fp-chip, .fp-v2 .pro-chip { border-radius: var(--radius-full); }
.fp-v2 .fp-badge { font-family: var(--font-num); }
.fp-v2 .fp-tabs .fp-tab.is-active, .fp-v2 .fp-tab[aria-selected="true"] { color: var(--text-primary); }
.fp-v2 .fp-popover { border-radius: var(--radius-lg); }
.fp-v2 .fp-avatar { font-family: var(--font-num); }
/* page headers on the list pages */
.fp-v2 .fp-pagehead h1, .fp-v2 .pro-pagehead h1, .fp-v2 .lt-head h1, .fp-v2 .pl-head h1, .fp-v2 .cal-head h1 { font-family: var(--font-display); letter-spacing: -0.02em; }
/* list surfaces: the data grid, the properties table, the deals board and the person record sit on white cards */
.fp-v2 .fp-grid-wrap, .fp-v2 .lt-wrap, .fp-v2 .listings-table, .fp-v2 .c3-card, .fp-v2 .c360-card { border-radius: var(--radius-card); }
.fp-v2 .kb-card, .fp-v2 .pl-card, .fp-v2 .pp-card { border-radius: var(--radius-lg); box-shadow: var(--elevation-1); }

/* ------------------------------------------------------------------ phone tab bar */
@media (max-width: 760px) {
  .fp-v2 .fp-tabbar { background: var(--surface-raised); }
  .fp-v2 .fp-tabbar .fp-ti.is-active { color: var(--primary); }
  .fp-v2 .fp-tabbar .fp-ti.is-active .fp-icon { color: var(--primary); }
  .fp-v2 .fp-tabbar .fp-ti.is-active::before { content: ""; position: absolute; inset-block-start: 0; inset-inline: 30%; block-size: var(--space-half); border-radius: var(--radius-full); background: var(--primary); }
}

/* ================================================================== Today */
.fp-v2 .td.td-v101 { padding: var(--space-8) var(--space-10) var(--space-10); gap: var(--space-6); }
.v2-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--space-4); }
.v2-head-t { min-inline-size: 0; }
.v2-eyebrow { margin: 0; font-size: var(--text-meta-size); line-height: var(--text-meta-lh); font-weight: var(--weight-strong); letter-spacing: var(--text-eyebrow-tracking); text-transform: uppercase; color: var(--text-link); }
[dir="rtl"] .v2-eyebrow { letter-spacing: 0; }
.v2-greet { margin: var(--space-1) 0 0; font-family: var(--font-display); font-size: var(--text-greet-size); line-height: var(--text-greet-lh); font-weight: var(--weight-strong); letter-spacing: -0.03em; color: var(--text-primary); }
.v2-head-acts { display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; min-inline-size: 0; }
.v2-search { display: flex; align-items: center; gap: var(--space-3); inline-size: var(--search-lg-w); max-inline-size: 100%; block-size: var(--control-lg); padding: 0 var(--space-3); border: var(--border-w) solid var(--border-default); border-radius: var(--radius-pill); background: var(--surface-raised); box-shadow: var(--elevation-card); font: inherit; font-size: var(--text-body-size); color: var(--text-secondary); cursor: pointer; text-align: start; }
.v2-search .fp-icon { color: var(--accent-strong); flex: none; }
.v2-search-ph { flex: 1; min-inline-size: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.v2-search:hover { border-color: var(--border-strong); }
.v2-search:focus-visible, .v2-new:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.v2-new { display: inline-flex; align-items: center; justify-content: center; inline-size: var(--control-lg); block-size: var(--control-lg); border: 0; border-radius: var(--radius-pill); background: var(--primary); color: var(--text-on-dark); cursor: pointer; }
.v2-new:hover { background: var(--primary-hover); }
.v2-new-wrap { position: relative; }
.v2-new-wrap .fp-popover { inset-inline-end: 0; inset-inline-start: auto; }
.v2-work { block-size: var(--control-lg); }

/* the navy hero */
.v2-hero { display: flex; flex-wrap: wrap; gap: var(--space-6); padding: var(--space-6) var(--space-8); border-radius: var(--radius-hero); background: var(--primary); color: var(--text-on-dark); box-shadow: var(--elevation-hero); }
.v2-hero[hidden] { display: none; }
.v2-hero-main { flex: 3 1 26rem; min-inline-size: 0; display: flex; flex-direction: column; justify-content: space-between; gap: var(--space-5); }
.v2-hero-k { display: flex; align-items: center; gap: var(--space-2); margin: 0; font-size: var(--text-meta-size); line-height: var(--text-meta-lh); font-weight: var(--weight-strong); letter-spacing: var(--text-eyebrow-tracking); text-transform: uppercase; color: var(--text-accent-on-dark); }
[dir="rtl"] .v2-hero-k { letter-spacing: 0; }
.v2-dot { inline-size: var(--space-2); block-size: var(--space-2); border-radius: var(--radius-full); background: var(--accent-strong); flex: none; }
.v2-hero-big { margin: var(--space-3) 0 0; font-family: var(--font-display); font-size: var(--text-hero-big-size); line-height: var(--text-hero-big-lh); font-weight: var(--weight-strong); letter-spacing: -0.02em; }
.v2-hero-mute { color: var(--v2-hero-muted); }
.v2-hero-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.v2-hs { display: flex; flex-direction: column; gap: var(--space-half); padding: 0 var(--space-4); border-inline-start: var(--border-w) solid var(--v2-hero-line); color: var(--text-on-dark); text-decoration: none; background: none; border-block: 0; border-inline-end: 0; font: inherit; text-align: start; min-inline-size: 0; }
.v2-hs:first-child { padding-inline-start: 0; border-inline-start: 0; }
.v2-hs.is-link { cursor: pointer; }
.v2-hs.is-link:hover .v2-hl, .v2-hs.is-link:focus-visible .v2-hl { color: var(--text-on-dark); text-decoration: underline; }
.v2-hs:focus-visible { outline: var(--focus-ring-w) solid var(--text-accent-on-dark); outline-offset: var(--space-1); border-radius: var(--radius-xs); }
.v2-hn { font-family: var(--font-num); font-size: var(--text-hero-n-size); line-height: var(--text-hero-n-lh); font-weight: var(--weight-strong); color: var(--text-on-dark); }
.v2-hl { font-size: var(--text-table-size); line-height: var(--text-table-lh); color: var(--v2-hero-sub); }
.v2-evs { flex: 2 1 20rem; min-inline-size: 0; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.v2-ev { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-2); border-radius: var(--radius-lg); background: var(--v2-hero-row); min-inline-size: 0; }
.v2-ev-img { inline-size: var(--thumb-sm-w); block-size: var(--thumb-sm-h); object-fit: cover; border-radius: var(--radius-sm); flex: none; }
.v2-ev-img.is-blank { display: inline-flex; align-items: center; justify-content: center; background: var(--v2-hero-icon); color: var(--text-accent-on-dark); }
.v2-ev-txt { min-inline-size: 0; }
.v2-ev-t, .v2-ev-s { margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--text-body-size); line-height: var(--text-body-lh); }
.v2-ev-t { font-weight: var(--weight-strong); }
.v2-ev-t a { color: var(--text-on-dark); text-decoration: underline; text-decoration-color: var(--v2-hero-muted); text-underline-offset: var(--space-half); }
.v2-ev-s { color: var(--v2-hero-sub); }
.v2-hero .pp-ref-link { color: var(--text-accent-on-dark); }

/* the two columns */
.fp-v2 .td-v101 .v2-grid { grid-template-columns: minmax(0, 1fr) var(--rail-w); gap: var(--space-6); }
.fp-v2 .td-v101 .td-col { gap: var(--space-6); }
.fp-v2 .td-v101 .fp-card { border-color: var(--border-default); border-radius: var(--radius-card); box-shadow: var(--elevation-1); }
.fp-v2 .td-v101 .td-card .fp-card-head { padding: var(--space-5) var(--space-5) var(--space-3); border-block-end: 0; }
.fp-v2 .td-v101 .td-card .fp-card-head h2, .fp-v2 .td-v101 .td-card .fp-card-head .fp-t { font-size: var(--text-card-title-size); line-height: var(--text-card-title-lh); letter-spacing: -0.01em; }
.v2-card { background: var(--surface-raised); border: var(--border-w) solid var(--border-default); border-radius: var(--radius-card); box-shadow: var(--elevation-1); min-inline-size: 0; overflow: hidden; }
.v2-card[hidden] { display: none; }
.v2-card-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: var(--space-3); padding: var(--space-5) var(--space-5) var(--space-3); }
.v2-h2 { margin: 0; display: flex; align-items: center; gap: var(--space-2); font-family: var(--font-display); font-size: var(--text-card-title-size); line-height: var(--text-card-title-lh); font-weight: var(--weight-strong); letter-spacing: -0.01em; color: var(--text-primary); }
.v2-sub { margin: var(--space-half) 0 0; font-size: var(--text-table-size); line-height: var(--text-table-lh); color: var(--text-secondary); }

/* Needs you */
.v2-needs-list { list-style: none; margin: 0; padding: 0 var(--space-3) var(--space-3); display: flex; flex-direction: column; }
.v2-need { display: flex; align-items: center; gap: var(--space-4); padding: var(--space-3); border-block-end: var(--border-w) solid var(--border-subtle); min-inline-size: 0; }
.v2-need:last-child { border-block-end: 0; }
.v2-need.is-featured { align-items: flex-start; flex-wrap: wrap; margin-block-end: var(--space-2); padding: var(--space-4); border-radius: var(--radius-row); background: var(--surface-sunken); border-block-end: 0; }
.v2-need-img { inline-size: var(--thumb-w); block-size: var(--thumb-h); object-fit: cover; border-radius: var(--radius-sm); flex: none; background: var(--surface-subtle); }
.v2-need-img.is-lg { inline-size: var(--thumb-lg-w); block-size: var(--thumb-lg-h); border-radius: var(--radius-thumb); }
.v2-need-img.is-blank { display: inline-flex; align-items: center; justify-content: center; color: var(--text-secondary); }
.v2-need-body { flex: 1 1 16rem; min-inline-size: 0; display: flex; flex-direction: column; gap: var(--space-1); }
.v2-need-top { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: var(--space-2); }
.v2-need-t { margin: 0; font-size: var(--text-row-title-size); line-height: var(--text-row-title-lh); font-weight: var(--weight-strong); color: var(--text-primary); overflow-wrap: anywhere; }
.v2-need-t a { color: var(--text-primary); text-decoration: underline; text-decoration-color: var(--border-strong); text-underline-offset: var(--space-half); }
.v2-need-t a:hover { text-decoration-color: currentColor; }
.v2-need-r { margin: 0; font-size: var(--text-table-size); line-height: var(--text-table-lh); color: var(--text-secondary); overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.v2-facts { margin: 0; display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-3); font-size: var(--text-meta-size); line-height: var(--text-meta-lh); color: var(--text-secondary); }
.v2-facts a.pp-ref-link { display: inline-flex; align-items: center; min-block-size: var(--control-sm); }   /* a property's code, opened from its own line: a 32px target */
.v2-need-side { display: flex; flex-direction: column; align-items: flex-end; gap: var(--space-2); flex: none; max-inline-size: 45%; }
.v2-clock { display: inline-flex; align-items: center; gap: var(--space-1); font-size: var(--text-table-size); line-height: var(--text-table-lh); font-weight: var(--weight-strong); color: var(--v2-clock); text-align: end; }
.v2-clock.is-late { color: var(--danger-text); }
.v2-act { min-block-size: var(--control-touch); padding-inline: var(--space-4); white-space: nowrap; }
.v2-act-strong { border-color: var(--primary); }
.v2-act .fp-icon-brand { color: var(--accent-strong); }
.v2-ask { position: relative; }
.fp-v2 .v2-ask .it-pop { inset-inline-start: auto; inset-inline-end: 0; }
.v2-ask summary { list-style: none; }
.v2-ask summary::-webkit-details-marker { display: none; }
.v2-draft { display: block; align-self: stretch; }
.v2-draft textarea { inline-size: 100%; box-sizing: border-box; padding: var(--space-3) var(--space-4); border: var(--border-w) solid var(--border-default); border-radius: var(--radius-row) var(--radius-row) var(--radius-xs) var(--radius-row); background: var(--surface-raised); font: inherit; font-size: var(--text-body-size); line-height: var(--text-body-lh); color: var(--text-primary); resize: vertical; }
[dir="rtl"] .v2-draft textarea { border-radius: var(--radius-row) var(--radius-row) var(--radius-row) var(--radius-xs); }
.v2-draft textarea:focus { outline: none; border-color: var(--border-focus); box-shadow: var(--focus-ring); }
.v2-draft-note { margin: 0; font-size: var(--text-meta-size); line-height: var(--text-meta-lh); color: var(--text-secondary); }
.v2-need-acts { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: var(--space-2); }
.v2-more { padding: var(--space-3); text-align: center; }
.v2-empty { padding: var(--space-6) var(--space-3); color: var(--text-secondary); font-size: var(--text-body-size); }

/* right rail */
.v2-rail-card { padding: var(--space-5); display: flex; flex-direction: column; gap: var(--space-2); }
.v2-rail-h { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: var(--space-2); }
.v2-rail-k { margin: 0; font-size: var(--text-table-size); line-height: var(--text-table-lh); color: var(--text-secondary); }
.v2-rail-sub { margin: 0; font-size: var(--text-meta-size); line-height: var(--text-meta-lh); color: var(--text-secondary); }
.v2-speed-n { margin: 0; display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap; }
.v2-speed-n b { font-family: var(--font-num); font-size: var(--text-hero-n-size); line-height: var(--text-hero-n-lh); font-weight: var(--weight-strong); letter-spacing: -0.02em; }
.v2-badge { display: inline-flex; align-items: center; block-size: var(--space-6); padding: 0 var(--space-2); border-radius: var(--radius-full); background: var(--success-bg); color: var(--text-link); font-size: var(--text-table-size); font-weight: var(--weight-strong); }
.v2-spark { display: block; inline-size: 100%; block-size: var(--space-16); margin-block-start: var(--space-2); overflow: visible; }
.v2-spark-a { fill: var(--v2-spark-fill); }
.v2-spark-l { fill: none; stroke: var(--v2-spark-line); stroke-width: 2; vector-effect: non-scaling-stroke; }
.v2-spark-d { fill: var(--v2-spark-line); }
.v2-spark-x { margin: 0; display: flex; justify-content: space-between; font-size: var(--text-meta-size); line-height: var(--text-meta-lh); color: var(--text-secondary); }
[dir="rtl"] .v2-spark { transform: scaleX(-1); }
.v2-areas { list-style: none; margin: var(--space-2) 0 0; padding: 0; display: grid; gap: var(--space-4); }
.v2-area-top { margin: 0; display: flex; justify-content: space-between; gap: var(--space-2); font-size: var(--text-body-size); line-height: var(--text-body-lh); }
.v2-area-top b { font-family: var(--font-num); }
.v2-range { position: relative; display: block; block-size: var(--space-1); margin-block: var(--space-2) var(--space-1); border-radius: var(--radius-full); background: var(--v2-track); }
.v2-range-band { position: absolute; inset-block: 0; border-radius: var(--radius-full); background: var(--accent-strong); opacity: 0.45; }
.v2-range-mid { position: absolute; inset-block: calc(var(--space-1) * -1); inline-size: var(--space-half); background: var(--primary); border-radius: var(--radius-full); }
.v2-area-sub { margin: 0; font-size: var(--text-meta-size); line-height: var(--text-meta-lh); color: var(--text-secondary); }

/* today's schedule as a timeline */
.fp-v2 .td-v101 .td-sched .td-list { padding: 0 var(--space-5) var(--space-2); }
.fp-v2 .td-v101 .td-sched .td-ev { position: relative; padding-block: var(--space-2) var(--space-3); padding-inline: var(--space-6) 0; border: 0; gap: var(--space-3); }
.fp-v2 .td-v101 .td-sched .td-ev::before { content: ""; position: absolute; inset-inline-start: var(--space-1); inset-block-start: var(--space-3); inline-size: var(--space-3); block-size: var(--space-3); border-radius: var(--radius-full); border: var(--border-w) solid var(--border-strong); background: var(--surface-raised); box-sizing: border-box; }
.fp-v2 .td-v101 .td-sched .td-ev::after { content: ""; position: absolute; inset-inline-start: calc(var(--space-2) + var(--space-half) / 2); inset-block: calc(var(--space-6) + var(--space-1)) calc(var(--space-1) * -1); inline-size: var(--border-w); background: var(--border-default); }
.fp-v2 .td-v101 .td-sched .td-ev:last-child::after { display: none; }
.fp-v2 .td-v101 .td-sched .td-ev:first-child:not(.is-done)::before { background: var(--accent-strong); border-color: var(--accent-strong); box-shadow: 0 0 0 var(--space-1) var(--success-bg); }
.fp-v2 .td-v101 .td-sched .td-bar { display: none; }
.fp-v2 .td-v101 .td-sched .td-time { font-weight: var(--weight-strong); }
.v2-sched-foot { margin: 0; padding: 0 var(--space-4) var(--space-3); display: flex; justify-content: flex-end; }

/* the older cards inside the new layout */
@media (min-width: 761px) { .fp-v2 .td-v101 .td-row { padding-inline: var(--space-5); } }

@media (max-width: 1200px) { .fp-v2 .td-v101 .v2-grid { grid-template-columns: minmax(0, 1fr) var(--today-side-w); } }
@media (max-width: 1100px) {
  .fp-v2 .td-v101 .v2-grid { display: flex; flex-direction: column; }
  .fp-v2 .td.td-v101 { padding: var(--space-6) var(--space-6) var(--space-8); }
}
@media (max-width: 760px) {
  .fp-v2 .td.td-v101 { padding: var(--space-4) var(--space-4) var(--space-8); gap: var(--space-4); }
  .v2-head { align-items: stretch; }
  .v2-head-acts { inline-size: 100%; flex-wrap: nowrap; }
  .v2-search { flex: 1; inline-size: auto; }
  .v2-work, .v2-search .fp-kbd { display: none; }
  .v2-hero { padding: var(--space-5); gap: var(--space-4); border-radius: var(--radius-card); }
  .v2-hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--space-4); }
  .v2-hs:nth-child(3) { padding-inline-start: 0; border-inline-start: 0; }
  .v2-needs { order: 0; }
  .fp-v2 .td-v101 .v2-grid { gap: var(--space-4); }
  .v2-need { flex-wrap: wrap; align-items: flex-start; gap: var(--space-3); }
  .v2-need-img { inline-size: var(--thumb-sm-w); block-size: var(--thumb-sm-h); }
  .v2-need-img.is-lg { inline-size: 100%; block-size: auto; aspect-ratio: 3 / 2; }
  .v2-need-body { flex-basis: 0; }
  .v2-need-side { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; max-inline-size: none; inline-size: 100%; }
  .v2-act { flex: 1 1 auto; justify-content: center; }
  .fp-v2 .td-v101 .td-thead { flex-wrap: wrap; }
  .fp-v2 .td-v101 .td-tasks .it-pop { position: static; margin-block-start: var(--space-1); box-shadow: none; }   /* on a phone the menu opens in the row, never past the screen */
  .fp-v2 .td-v101 .td-thead .td-ttabs { flex-wrap: wrap; overflow: visible; max-inline-size: 100%; }
}

/* a closed menu has no box at all (Chrome keeps a hidden one inside a closed details, which reads as cut-off text) */
.fp-v2 details:not([open]) > :not(summary) { display: none; }
/* 2 Nov 2026 (layout check, 1440x768 with More open): on a short window the sidebar fits without its own scroll, the
   items a little shorter (still at least the 32px desktop target) */
@media (min-width: 761px) and (max-height: 820px) {
  .fp-v2 .fp-nav-item { block-size: var(--control-md); }
  .fp-v2 .fp-more-items .fp-nav-item { block-size: var(--control-sm); }
  .fp-v2 .fp-nav-more { margin-block-start: var(--space-2); padding-block-start: var(--space-2); }
  .fp-v2 .fp-sb-foot { gap: var(--space-2); padding-block: var(--space-2) var(--space-3); }
}
/* design system pass: with More open for staff and managers (7+ items) the sidebar still fits a 900px window without its own scroll */
@media (min-width: 761px) and (max-height: 920px) { .fp-v2 .fp-more-items .fp-nav-item { block-size: var(--control-sm); } .fp-v2 .fp-nav-more { margin-block-start: var(--space-2); padding-block-start: var(--space-2); }
  .fp-v2 .fp-sb-nav:has(.fp-more-toggle[aria-expanded="true"]) .fp-nav-item:not(.fp-more-items .fp-nav-item) { block-size: var(--control-md); } }   /* a manager's long More list */
