    .profile-top-summary {
      display: grid;
      grid-template-columns: minmax(260px, .9fr) minmax(0, 1.6fr);
      gap: 8px;
      align-items: stretch;
    }

    .profile-back-button {
      justify-self: start;
      width: auto;
      min-height: 30px;
      padding: 5px 9px;
      border: 1px solid var(--line);
      border-radius: 7px;
      background: #fff;
      color: var(--ink);
      cursor: pointer;
      font-size: 12px;
      font-weight: 900;
    }

    .profile-back-button:hover {
      background: var(--field);
    }

    .profile-ai-summary,
    .profile-top-grid > div {
      border: 1px solid var(--line);
      border-radius: 8px;
      background: #fff;
      padding: 10px;
    }

    .profile-ai-summary span,
    .profile-top-grid span {
      display: block;
      color: var(--muted);
      font-size: 10px;
      font-weight: 900;
      text-transform: uppercase;
    }

    .profile-ai-summary p {
      margin: 6px 0 0;
      font-weight: 800;
      line-height: 1.35;
    }

    .profile-top-grid {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 8px;
    }

    .profile-top-grid strong {
      display: block;
      margin-top: 4px;
      overflow-wrap: anywhere;
      font-size: 13px;
      line-height: 1.25;
    }

    .profile-executive-summary {
      display: grid;
      gap: 14px;
      padding: 18px;
      border: 1px solid var(--notion-line, var(--line));
      border-radius: 10px;
      background: linear-gradient(180deg, #fffdf8, #f7faf5);
    }

    .profile-exec-head {
      display: flex;
      gap: 10px;
      align-items: center;
      justify-content: space-between;
      flex-wrap: wrap;
    }

    .profile-exec-chips {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
    }

    .profile-exec-chips span {
      display: inline-flex;
      min-height: 24px;
      align-items: center;
      padding: 3px 8px;
      border: 1px solid var(--notion-line, var(--line));
      border-radius: 999px;
      background: #f0f5ed;
      color: #365943;
      font-size: 12px;
      font-weight: 780;
    }

    .profile-exec-main {
      margin: 0;
      display: grid;
      max-width: 900px;
      gap: 14px;
    }

    .profile-exec-section {
      display: grid;
      gap: 5px;
    }

    .profile-exec-section h3 {
      margin: 0;
      color: var(--muted);
      font-size: 12px;
      font-weight: 820;
      letter-spacing: .06em;
      text-transform: uppercase;
    }

    .profile-exec-section p {
      margin: 0;
      color: var(--text);
      font-size: 15px;
      line-height: 1.72;
    }

    .profile-summary-link {
      display: inline;
      min-height: 0;
      margin: 0;
      padding: 0;
      border: 0;
      border-bottom: 1px solid currentColor;
      border-radius: 0;
      background: transparent;
      color: #52616f;
      cursor: pointer;
      font: inherit;
      font-size: .94em;
      font-weight: 620;
      line-height: inherit;
      text-align: left;
      text-underline-offset: 3px;
    }

    .profile-summary-link:hover,
    .profile-summary-link:focus {
      background: transparent;
      color: #2d6b45;
      outline: none;
    }

    .profile-exec-focus {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
      gap: 10px;
    }

    .profile-exec-focus div {
      display: grid;
      gap: 5px;
      min-width: 0;
      padding: 10px;
      border: 1px solid var(--notion-line, var(--line));
      border-radius: 8px;
      background: rgba(255, 255, 255, .58);
    }

    .profile-exec-focus span {
      color: var(--notion-muted, var(--muted));
      font-size: 11px;
      font-weight: 860;
      text-transform: uppercase;
      letter-spacing: .06em;
    }

    .profile-exec-focus strong {
      font-size: 13px;
      line-height: 1.45;
      overflow-wrap: anywhere;
    }

    .profile-life-timeline {
      display: grid;
      gap: 12px;
      padding: 14px 16px 16px;
      border: 1px solid var(--notion-line, var(--line));
      border-radius: 10px;
      background: var(--notion-panel, #ffffff);
      color: var(--notion-text, var(--text));
    }

    .profile-life-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
    }

    .profile-life-head h3 {
      margin: 2px 0 0;
      font-size: 16px;
      line-height: 1.2;
    }

    .profile-life-track {
      position: relative;
      display: grid;
      grid-auto-columns: minmax(190px, 220px);
      grid-auto-flow: column;
      gap: 18px;
      min-height: 238px;
      overflow-x: auto;
      overflow-y: hidden;
      padding: 10px 4px 8px;
      scroll-snap-type: x proximity;
    }

    .profile-life-track::before {
      content: "";
      position: absolute;
      top: 118px;
      left: 4px;
      right: 4px;
      height: 2px;
      border-radius: 999px;
      background: linear-gradient(90deg, transparent, var(--notion-line, var(--line)) 24px, var(--notion-line, var(--line)) calc(100% - 24px), transparent);
    }

    .profile-life-node {
      position: relative;
      display: grid;
      min-width: 0;
      scroll-snap-align: start;
    }

    .profile-life-node.top {
      align-content: start;
      padding-bottom: 120px;
    }

    .profile-life-node.bottom {
      align-content: end;
      padding-top: 124px;
    }

    .profile-life-stem {
      position: absolute;
      left: 50%;
      width: 1px;
      height: 30px;
      background: var(--notion-line, var(--line));
      transform: translateX(-50%);
    }

    .profile-life-node.top .profile-life-stem {
      top: 88px;
    }

    .profile-life-node.bottom .profile-life-stem {
      top: 120px;
    }

    .profile-life-dot {
      position: absolute;
      top: 111px;
      left: 50%;
      z-index: 1;
      width: 14px;
      height: 14px;
      border: 3px solid var(--notion-panel, #ffffff);
      border-radius: 999px;
      background: #7c8aa5;
      box-shadow: 0 0 0 1px var(--notion-line, var(--line));
      transform: translateX(-50%);
    }

    .profile-life-card {
      display: grid;
      gap: 5px;
      min-width: 0;
      padding: 10px;
      border: 1px solid var(--notion-line, var(--line));
      border-radius: 8px;
      background: #fbfaf6;
    }

    .profile-life-card span {
      color: var(--notion-muted, var(--muted));
      font-size: 11px;
      font-weight: 760;
    }

    .profile-life-card strong {
      font-size: 13px;
      line-height: 1.25;
    }

    .profile-life-card p {
      margin: 0;
      color: var(--notion-muted, var(--muted));
      font-size: 12px;
      line-height: 1.4;
    }

    .tone-start .profile-life-dot { background: #64748b; }
    .tone-discussion .profile-life-dot { background: #4f9f6f; }
    .tone-experiment .profile-life-dot { background: #4e78a8; }
    .tone-result .profile-life-dot { background: #5c9d73; }
    .tone-risk .profile-life-dot { background: #c7636e; }
    .tone-order .profile-life-dot { background: #bd7a43; }
    .tone-document .profile-life-dot { background: #826eb8; }

    .profile-life-empty {
      display: flex;
      gap: 10px;
      align-items: center;
      min-height: 54px;
    }

    .profile-life-empty span {
      width: 34px;
      height: 2px;
      border-radius: 999px;
      background: var(--notion-line, var(--line));
    }

    .profile-intelligence-bar {
      position: relative;
      display: grid;
      grid-template-columns: 34px minmax(0, 1fr) 34px;
      gap: 8px;
      align-items: end;
      padding: 8px;
      border: 1px solid var(--line);
      border-radius: 12px;
      background: #fff;
    }

    .profile-intelligence-bar textarea {
      min-height: 34px;
      max-height: 130px;
      resize: vertical;
      margin: 0;
      padding: 8px 10px;
      border: 0;
      background: transparent;
      box-shadow: none;
      line-height: 1.45;
    }

    .profile-intent-select {
      grid-column: 2 / 3;
      width: fit-content;
      max-width: 150px;
      min-height: 26px;
      padding: 3px 24px 3px 9px;
      border: 1px solid var(--notion-line, var(--line));
      border-radius: 999px;
      background: #f7f7f3;
      color: var(--muted);
      font-size: 11px;
      font-weight: 760;
      letter-spacing: 0;
    }

    .profile-mention-suggestions {
      position: absolute;
      z-index: 20;
      left: 50px;
      right: 50px;
      bottom: calc(100% + 8px);
      display: grid;
      gap: 4px;
      max-height: 220px;
      overflow: auto;
      padding: 6px;
      border: 1px solid var(--line);
      border-radius: 10px;
      background: #fff;
      box-shadow: 0 18px 40px rgba(32, 38, 35, .14);
    }

    .profile-mention-suggestions button {
      display: flex;
      justify-content: space-between;
      gap: 10px;
      width: 100%;
      padding: 8px 9px;
      border: 0;
      border-radius: 8px;
      background: transparent;
      color: var(--ink);
      text-align: left;
      cursor: pointer;
    }

    .profile-mention-suggestions button:hover {
      background: #f2f5f1;
    }

    .profile-mention-suggestions span {
      color: var(--muted);
      font-size: 12px;
    }

    .profile-intelligence-bar .message {
      grid-column: 1 / -1;
      margin: 0;
    }

    .profile-intelligence-bar .icon-button {
      width: 34px;
      height: 34px;
      min-height: 34px;
      border-radius: 999px;
    }

    .profile-composer-plus {
      border-color: var(--notion-line, var(--line));
      background: #fffdf8;
      color: var(--notion-muted, var(--muted));
      font-size: 18px;
    }

    .profile-composer-send {
      background: var(--green);
      color: #fffefa;
    }

    .profile-composer-file {
      grid-column: 2 / 3;
      display: inline-flex;
      width: fit-content;
      max-width: 100%;
      gap: 6px;
      align-items: center;
      padding: 4px 7px;
      border: 1px solid var(--notion-line, var(--line));
      border-radius: 999px;
      background: #f3f2ed;
      color: var(--ink);
      font-size: 12px;
      font-weight: 760;
    }

    .profile-composer-file span {
      min-width: 0;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .profile-composer-file button {
      display: inline-grid;
      width: 18px;
      height: 18px;
      place-items: center;
      padding: 0;
      border: 0;
      border-radius: 999px;
      background: transparent;
      color: var(--notion-muted, var(--muted));
      cursor: pointer;
      font: inherit;
    }

    body.night-mode .profile-mention-suggestions {
      border-color: rgba(255,255,255,.12);
      background: #171a17;
      box-shadow: 0 18px 40px rgba(0,0,0,.38);
    }

    body.night-mode .profile-mention-suggestions button {
      color: rgba(246,247,242,.92);
    }

    body.night-mode .profile-mention-suggestions button:hover {
      background: rgba(255,255,255,.07);
    }

    body.night-mode .profile-intent-select {
      background: #1f211f;
      border-color: rgba(255,255,255,.12);
      color: #a9afa8;
    }

    .contact-page-list {
      display: grid;
      gap: 10px;
    }

    .contact-page-card {
      display: grid;
      grid-template-columns: minmax(180px, .7fr) minmax(0, 1.3fr) auto;
      gap: 12px;
      align-items: start;
      padding: 12px;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: #fff;
    }

    .contact-page-main h3 {
      margin: 0 0 4px;
      font-size: 18px;
    }

    .contact-page-main p {
      margin: 0;
    }

    .contact-page-details {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 8px;
      margin: 0;
    }

    .contact-page-details div {
      min-width: 0;
    }

    .contact-page-details dt {
      color: var(--muted);
      font-size: 10px;
      font-weight: 900;
      text-transform: uppercase;
    }

    .contact-page-details dd {
      margin: 3px 0 0;
      overflow-wrap: anywhere;
      font-weight: 800;
    }

    .contact-page-actions {
      justify-content: end;
      margin: 0;
    }

    .profile-compact-list {
      display: grid;
      gap: 8px;
    }

    .profile-compact-card {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 10px;
      align-items: center;
      padding: 10px 0;
      border-top: 1px solid var(--notion-line, var(--line));
      background: transparent;
    }

    .profile-compact-card:first-child {
      border-top: 0;
      padding-top: 0;
    }

    .profile-compact-card h3 {
      margin: 5px 0 2px;
      font-size: 14px;
      line-height: 1.25;
    }

    .profile-compact-card p {
      margin: 0;
      font-size: 12px;
      line-height: 1.35;
    }

    .profile-compact-meta {
      margin: 0;
      color: var(--notion-muted, var(--muted));
      font-size: 12px;
      font-weight: 650;
    }

    .profile-compact-details {
      margin-top: 8px;
      border-top: 1px solid var(--notion-line, var(--line));
      padding-top: 8px;
    }

    .profile-compact-details summary {
      cursor: pointer;
      color: var(--notion-muted, var(--muted));
      font-size: 12px;
      font-weight: 760;
    }

    .profile-compact-details .profile-compact-list,
    .profile-compact-details .contact-page-list,
    .profile-compact-details .timeline-list {
      margin-top: 8px;
    }

    .compact-task-form {
      margin-bottom: 10px;
    }

    @media (max-width: 720px) {
      .profile-top-summary { grid-template-columns: 1fr; }
      .profile-top-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .profile-intelligence-bar { grid-template-columns: 34px minmax(0, 1fr) 34px; }
      .profile-life-track {
        display: grid;
        grid-auto-flow: row;
        grid-auto-columns: auto;
        grid-template-columns: 1fr;
        gap: 10px;
        min-height: 0;
        overflow: visible;
        padding: 0 0 0 18px;
        border-left: 2px solid var(--notion-line, var(--line));
        scroll-snap-type: none;
      }
      .profile-life-track::before { display: none; }
      .profile-life-node,
      .profile-life-node.top,
      .profile-life-node.bottom {
        align-content: stretch;
        padding: 0;
      }
      .profile-life-stem { display: none; }
      .profile-life-dot {
        top: 13px;
        left: -19px;
        width: 12px;
        height: 12px;
      }
      .contact-page-card { grid-template-columns: 1fr; }
      .profile-compact-card { grid-template-columns: 1fr; }
      .contact-page-details { grid-template-columns: 1fr; }
      .contact-page-actions { justify-content: start; }
    }

    /* Profile alignment with PFV Design System */
    .profile-back-button,
    .profile-ai-summary,
    .profile-top-grid > div,
    .profile-intelligence-bar,
    .contact-page-card {
      border-color: var(--line);
      border-radius: var(--radius-md);
      background: var(--panel);
      box-shadow: var(--shadow-xs);
    }

    .profile-back-button {
      background: linear-gradient(180deg, #fffefa, #eef4ec);
      color: var(--ink);
      transition: background .16s ease, border-color .16s ease, box-shadow .16s ease, transform .16s ease;
    }

    .profile-back-button:hover {
      border-color: var(--line-strong);
      background: #e9f2e8;
      box-shadow: var(--shadow-sm);
      transform: translateY(-1px);
    }

    .profile-ai-summary,
    .profile-top-grid > div {
      background: linear-gradient(180deg, #fffefa, #f6f9f3);
    }

    .profile-ai-summary span,
    .profile-top-grid span,
    .contact-page-details dt {
      color: #49735a;
      letter-spacing: .07em;
    }

    .profile-intelligence-bar {
      background: linear-gradient(180deg, #fffefa, #f7faf5);
    }

    .contact-page-card {
      transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
    }

    .contact-page-card:hover {
      border-color: var(--line-strong);
      box-shadow: var(--shadow-sm);
      transform: translateY(-1px);
    }

    /* Notion-like account dossier refinement */
    .profile-back-button,
    .profile-ai-summary,
    .profile-top-grid > div,
    .profile-intelligence-bar,
    .contact-page-card {
      border-color: var(--notion-line, var(--line));
      background: #fffdf8;
      box-shadow: none;
    }

    .profile-back-button {
      background: transparent;
      border-color: transparent;
      color: var(--notion-muted, var(--muted));
      padding-left: 0;
    }

    .profile-back-button:hover {
      background: transparent;
      border-color: transparent;
      color: var(--ink);
      box-shadow: none;
      transform: none;
    }

    .profile-hero-actions {
      display: inline-flex;
      gap: 8px;
      align-items: center;
    }

    .profile-hero-actions .quick-call-menu summary,
    .profile-hero-actions .profile-order-action {
      width: 36px;
      height: 36px;
      min-height: 36px;
      border-radius: 999px;
    }

    .profile-intelligence-bar {
      background: #fbfaf6;
    }

    .profile-launch-card-simple {
      grid-template-columns: 34px minmax(0, 1fr);
      align-items: center;
      gap: 10px;
      min-height: 58px;
      padding: 10px 12px;
      border: 1px solid var(--notion-line, var(--line));
      border-radius: 10px;
      background: #fffdf8;
      text-align: left;
    }

    .profile-launch-card-simple strong,
    .profile-launch-card-simple small {
      grid-column: 2;
    }

    .profile-launch-card-simple strong {
      font-size: 14px;
    }

    .profile-launch-card-simple small {
      margin-top: -5px;
      color: var(--notion-muted, var(--muted));
      font-size: 12px;
      font-weight: 650;
    }

    .profile-launch-icon {
      grid-row: 1 / span 2;
      display: grid;
      width: 34px;
      height: 34px;
      place-items: center;
      border-radius: 9px;
      background: #eef6eb;
      color: #315f3e;
      font-size: 13px;
      font-weight: 900;
    }

    .profile-launch-tasks .profile-launch-icon { background: #fff4de; color: #765817; }
    .profile-launch-experiments .profile-launch-icon { background: #e9f3fb; color: #2e6281; }
    .profile-launch-results .profile-launch-icon { background: #f0eef9; color: #604b83; }
    .profile-launch-orders .profile-launch-icon { background: #fcefe8; color: #83472b; }
    .profile-launch-activity .profile-launch-icon { background: #edf5f2; color: #32685d; }

    .contact-page-card:hover {
      box-shadow: none;
      transform: none;
      background: #f8f7f2;
    }

    body.night-mode .profile-back-button {
      color: var(--notion-muted);
    }

    body.night-mode .profile-back-button:hover {
      color: var(--notion-text);
    }

    body.night-mode .profile-executive-summary,
    body.night-mode .profile-life-timeline,
    body.night-mode .profile-intelligence-bar,
    body.night-mode .profile-launch-card-simple,
    body.night-mode .contact-page-card {
      background: #121b17;
      border-color: var(--notion-line);
      color: var(--notion-text);
    }

    body.night-mode .profile-exec-focus div {
      background: #0f1815;
      border-color: var(--notion-line);
    }

    body.night-mode .profile-life-card {
      background: #0f1815;
      border-color: var(--notion-line);
    }

    body.night-mode .profile-life-track::before,
    body.night-mode .profile-life-stem,
    body.night-mode .profile-life-empty span {
      background: var(--notion-line);
    }

    body.night-mode .profile-life-dot {
      border-color: #121b17;
      box-shadow: 0 0 0 1px var(--notion-line);
    }

    body.night-mode .profile-exec-chips span {
      background: #1a2822;
      border-color: #30463b;
      color: #d8e8dd;
    }

    body.night-mode .profile-hero-actions .quick-call-menu summary,
    body.night-mode .profile-hero-actions .profile-order-action,
    body.night-mode .profile-composer-plus {
      background: #15201c;
      border-color: var(--notion-line);
      color: var(--notion-text);
    }

    body.night-mode .profile-composer-send {
      background: #dce9d6;
      color: #122018;
    }

    body.night-mode .profile-composer-file {
      background: #1a2822;
      border-color: #30463b;
      color: #d8e8dd;
    }

    body.night-mode .profile-launch-card-simple:hover,
    body.night-mode .contact-page-card:hover {
      background: #1b2823;
    }

    body.night-mode .profile-launch-icon { background: #15321e; color: #b6edc1; }
    body.night-mode .profile-launch-tasks .profile-launch-icon { background: #312812; color: #f2d77f; }
    body.night-mode .profile-launch-experiments .profile-launch-icon { background: #142938; color: #b4def4; }
    body.night-mode .profile-launch-results .profile-launch-icon { background: #221d32; color: #d9c8f5; }
    body.night-mode .profile-launch-orders .profile-launch-icon { background: #321d14; color: #efb79b; }
    body.night-mode .profile-launch-activity .profile-launch-icon { background: #142b27; color: #b2e5dc; }

    /* Codex palette profile polish */
    .profile-back-button,
    .profile-ai-summary,
    .profile-top-grid > div,
    .profile-intelligence-bar,
    .contact-page-card,
    .profile-launch-card-simple {
      background: var(--notion-panel, #ffffff);
      border-color: var(--notion-line, #d8dee8);
      color: var(--notion-text, #20242d);
      box-shadow: none;
    }

    .profile-back-button {
      color: var(--notion-muted, #687080);
    }

    .profile-back-button:hover,
    .contact-page-card:hover,
    .profile-launch-card-simple:hover {
      background: var(--notion-hover, #eceff6);
      color: var(--notion-text, #20242d);
      transform: none;
      box-shadow: none;
    }

    .profile-executive-summary {
      background: linear-gradient(180deg, #ffffff, #f6f7fb);
      border-color: var(--notion-line, #d8dee8);
      color: var(--notion-text, #20242d);
    }

    /* Militia brand pass (Josh 2026-07-25): the indigo/periwinkle accents on
       this page were the last big drift from tokens.css — everything below
       now rides the warm gold/neutral family the rest of the app wears. */
    .profile-exec-chips span {
      background: #f2f2f3;
      border-color: #d8d8da;
      color: #222223;
    }

    .profile-exec-focus div {
      background: rgba(255, 255, 255, .74);
      border-color: var(--notion-line, #d8dee8);
    }

    .profile-ai-summary span,
    .profile-top-grid span,
    .contact-page-details dt {
      color: #59647a;
    }

    .profile-composer-plus {
      background: #ffffff;
      border-color: var(--notion-line, #d8dee8);
      color: var(--notion-muted, #687080);
    }

    .profile-composer-send {
      background: var(--t-accent, #F1C400);
      color: #222223;
    }

    .profile-composer-file {
      background: #f1f3f8;
      border-color: var(--notion-line, #d8dee8);
      color: var(--notion-text, #20242d);
    }

    .profile-launch-icon {
      background: #f2f2f3;
      color: #222223;
    }

    /* one consistent treatment — gold ink on warm cream, like the tasks tile
       always wore; differentiation comes from the glyphs, not five hues */
    .profile-launch-tasks .profile-launch-icon,
    .profile-launch-experiments .profile-launch-icon,
    .profile-launch-results .profile-launch-icon,
    .profile-launch-orders .profile-launch-icon,
    .profile-launch-activity .profile-launch-icon { background: #f2f2f3; color: #222223; }

    body.night-mode .profile-back-button,
    body.night-mode .profile-ai-summary,
    body.night-mode .profile-top-grid > div,
    body.night-mode .profile-executive-summary,
    body.night-mode .profile-life-timeline,
    body.night-mode .profile-intelligence-bar,
    body.night-mode .profile-launch-card-simple,
    body.night-mode .contact-page-card {
      background: var(--notion-panel, #151821);
      border-color: var(--notion-line, #2a3040);
      color: var(--notion-text, #f4f6fb);
    }

    body.night-mode .profile-executive-summary {
      background: linear-gradient(180deg, #1a1a1b, #171718);
    }

    body.night-mode .profile-life-timeline,
    body.night-mode .profile-life-card {
      background: #1a1a1b;
      border-color: var(--notion-line, #2a3040);
    }

    body.night-mode .profile-life-track::before,
    body.night-mode .profile-life-stem,
    body.night-mode .profile-life-empty span {
      background: var(--notion-line, #2a3040);
    }

    body.night-mode .profile-life-dot {
      border-color: #1a1a1b;
      box-shadow: 0 0 0 1px var(--notion-line, #2a3040);
    }

    body.night-mode .profile-summary-link {
      border-bottom-color: currentColor;
      color: #aeb6c4;
    }

    body.night-mode .profile-summary-link:hover,
    body.night-mode .profile-summary-link:focus {
      background: transparent;
      color: #d8dee9;
    }

    body.night-mode .profile-exec-focus div {
      background: #161617;
      border-color: var(--notion-line, #2a3040);
    }

    body.night-mode .profile-exec-chips span {
      background: #232324;
      border-color: #3a3a3b;
      color: #f5f5f4;
    }

    body.night-mode .profile-hero-actions .quick-call-menu summary,
    body.night-mode .profile-hero-actions .profile-order-action,
    body.night-mode .profile-composer-plus {
      background: #1c1c1b;
      border-color: var(--notion-line, #2a3040);
      color: var(--notion-text, #f4f6fb);
    }

    body.night-mode .profile-composer-send {
      background: var(--t-accent, #F1C400);
      color: #222223;
    }

    body.night-mode .profile-composer-file {
      background: #1c1c1b;
      border-color: #3a3a38;
      color: #d9d7d0;
    }

    body.night-mode .profile-launch-card-simple:hover,
    body.night-mode .contact-page-card:hover {
      background: var(--notion-hover, #202433);
    }

    body.night-mode .profile-launch-icon,
    body.night-mode .profile-launch-tasks .profile-launch-icon,
    body.night-mode .profile-launch-experiments .profile-launch-icon,
    body.night-mode .profile-launch-results .profile-launch-icon,
    body.night-mode .profile-launch-orders .profile-launch-icon,
    body.night-mode .profile-launch-activity .profile-launch-icon { background: #232324; color: #f5f5f4; }

    body.night-mode .profile-launch-icon,
    body.night-mode .profile-launch-tasks .profile-launch-icon,
    body.night-mode .profile-launch-experiments .profile-launch-icon,
    body.night-mode .profile-launch-results .profile-launch-icon,
    body.night-mode .profile-launch-orders .profile-launch-icon,
    body.night-mode .profile-launch-activity .profile-launch-icon {
      background: #202433;
      color: #d6dce9;
    }

    body.night-mode .profile-stage-pill,
    body.night-mode .profile-tag-row .pill,
    body.night-mode .profile-exec-chips span,
    body.night-mode .profile-composer-file {
      background: #1a1f2b;
      border-color: #343a47;
      color: #d6dce9;
    }

    /* Compact profile workspace pass */
    .dossier-hero.profile-hero {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 14px;
      padding: 4px 0 10px;
      margin-bottom: 8px;
    }

    .profile-hero-copy {
      display: grid;
      gap: 4px;
      max-width: min(100%, 820px);
    }

    .profile-hero-copy .profile-back-button {
      min-height: 24px;
      padding: 0;
      font-size: 12px;
      line-height: 1.2;
    }

    .dossier-hero.profile-hero h2 {
      margin: 2px 0;
      font-size: 30px;
      line-height: 1.08;
    }

    .profile-identity-row,
    .profile-tag-row {
      display: flex;
      align-items: center;
      flex-wrap: wrap;
      gap: 6px;
    }

    .profile-tag-row {
      margin-top: 0;
    }

    .dossier-actions.profile-hero-actions {
      margin-top: 0;
      align-self: flex-start;
      justify-content: flex-end;
      flex-wrap: nowrap;
    }

    .profile-hero-actions .quick-call-menu summary,
    .profile-hero-actions .profile-order-action,
    .profile-activity-action {
      width: 34px;
      height: 34px;
      min-height: 34px;
      padding: 0;
      border-radius: 999px;
      font-size: 13px;
    }

    .profile-activity-action {
      position: relative;
      border: 1px solid var(--notion-line, var(--line));
      background: var(--notion-panel, #fff);
      color: var(--notion-text, #20242d);
    }

    .profile-activity-action b {
      position: absolute;
      top: -6px;
      right: -6px;
      display: grid;
      min-width: 17px;
      height: 17px;
      place-items: center;
      padding: 0 4px;
      border: 2px solid var(--notion-panel, #fff);
      border-radius: 999px;
      background: #ee8b92;
      color: #1a0f12;
      font-size: 10px;
      line-height: 1;
    }

    .profile-panel-backdrop {
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 18px;
    }

    .profile-modal-panel {
      width: min(980px, calc(100vw - 32px));
      max-height: calc(100vh - 36px);
      overflow: auto;
      background: var(--notion-panel, #fff);
      border: 1px solid var(--notion-line, var(--line));
      border-radius: 10px;
      box-shadow: 0 22px 70px rgba(15, 23, 42, .22);
    }

    .profile-modal-panel .profile-panel-body {
      padding: 14px;
    }

    .profile-modal-panel .panel {
      box-shadow: none;
    }

    .profile-modal-panel .account-analytics {
      margin-top: 8px;
    }

    .profile-about-context {
      max-width: 720px;
      margin: -2px 0 10px;
      color: var(--notion-muted, var(--muted));
      font-size: 13px;
      line-height: 1.55;
    }

    body.night-mode .profile-activity-action,
    body.night-mode .profile-modal-panel {
      background: #151821;
      border-color: #2a3040;
      color: #f4f6fb;
      box-shadow: none;
    }

    body.night-mode .profile-activity-action b {
      border-color: #151821;
      background: #ee8b92;
      color: #1a0f12;
    }

    @media (max-width: 720px) {
      .dossier-hero.profile-hero {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
      }

      .dossier-actions.profile-hero-actions {
        justify-content: flex-start;
      }

      .dossier-hero.profile-hero h2 {
        font-size: 25px;
      }

      .profile-launch-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }

      .profile-panel-backdrop {
        align-items: flex-start;
        padding: 10px;
      }

      .profile-life-track {
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: minmax(176px, 200px);
        grid-template-columns: none;
        min-height: 222px;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 8px 2px 6px;
        border-left: 0;
        scroll-snap-type: x proximity;
      }

      .profile-life-track::before {
        display: block;
        top: 110px;
      }

      .profile-life-node.top {
        align-content: start;
        padding-bottom: 112px;
      }

      .profile-life-node.bottom {
        align-content: end;
        padding-top: 116px;
      }

      .profile-life-stem {
        display: block;
      }

      .profile-life-node.top .profile-life-stem {
        top: 80px;
      }

      .profile-life-node.bottom .profile-life-stem {
        top: 112px;
      }

      .profile-life-dot {
        top: 103px;
        left: 50%;
        width: 12px;
        height: 12px;
      }

      .profile-modal-panel {
        width: calc(100vw - 20px);
        max-height: calc(100vh - 20px);
      }
    }

    /* Final profile night-mode accent cleanup. */
    .profile-composer-send {
      background: #4f9f6f;
      color: #ffffff;
    }

    body.night-mode .profile-composer-send {
      background: #6fbd86;
      color: #0f1411;
    }

    body.night-mode .profile-exec-chips span,
    body.night-mode .profile-stage-pill,
    body.night-mode .profile-tag-row .pill,
    body.night-mode .profile-composer-file,
    body.night-mode .profile-launch-icon,
    body.night-mode .profile-launch-tasks .profile-launch-icon,
    body.night-mode .profile-launch-experiments .profile-launch-icon,
    body.night-mode .profile-launch-results .profile-launch-icon,
    body.night-mode .profile-launch-orders .profile-launch-icon {
      background: #202433;
      border-color: #343a47;
      color: #d6dce9;
    }

    body.night-mode .profile-activity-action {
      background: #1a1f2b;
      border-color: #343a47;
      color: #f4f6fb;
    }

    /* Final profile accent cleanup: keep controls green, not blue. */
    .tone-experiment .profile-life-dot {
      background: #4f9f6f;
    }

    .profile-composer-send {
      background: #4f9f6f;
      border-color: #4f9f6f;
      color: #ffffff;
    }

    .profile-composer-send:hover {
      background: #3f875c;
      border-color: #3f875c;
    }

    .profile-exec-chips span,
    .profile-launch-icon,
    .profile-launch-experiments .profile-launch-icon {
      background: #edf7f0;
      border-color: #c9e5d1;
      color: #2f714c;
    }

    body.night-mode .profile-composer-send {
      background: #6fbd86;
      border-color: #6fbd86;
      color: #0f1411;
    }

    body.night-mode .profile-composer-send:hover {
      background: #86d89b;
      border-color: #86d89b;
      color: #0f1411;
    }

    body.night-mode .profile-exec-chips span,
    body.night-mode .profile-launch-icon,
    body.night-mode .profile-launch-experiments .profile-launch-icon {
      background: #202433;
      border-color: #343a47;
      color: #d6dce9;
    }

    /* PFV profile polish pass: quieter dossier, clearer narrative, unified modals. */
    .profile-workspace,
    .profile-dossier {
      color: var(--pfv-text, var(--ink));
    }

    .dossier-hero.profile-hero {
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 14px;
      align-items: center;
      min-height: auto;
      padding: 14px 16px;
      border: 1px solid var(--pfv-line, var(--line));
      border-radius: var(--radius-panel, 10px);
      background: var(--pfv-panel, #fff);
      box-shadow: none;
    }

    .dossier-hero.profile-hero h2 {
      margin: 2px 0 4px;
      color: var(--pfv-text, var(--ink));
      font-size: clamp(24px, 2.2vw, 32px);
      font-weight: 760;
      line-height: 1.08;
    }

    .dossier-hero.profile-hero p,
    .profile-hero-meta,
    .profile-hero-subtitle {
      color: var(--pfv-muted, var(--muted));
      font-size: 13px;
      line-height: 1.45;
    }

    .dossier-actions.profile-hero-actions {
      gap: 7px;
      align-items: center;
      justify-content: flex-end;
    }

    .profile-stage-pill,
    .profile-tag-row .pill,
    .profile-exec-chips span {
      border-color: #d5e7d9;
      background: var(--pfv-green-soft, #edf7f0);
      color: #2f714c;
      font-size: 12px;
      font-weight: 720;
    }

    .profile-executive-summary {
      gap: 13px;
      padding: 16px;
      border-color: var(--pfv-line, var(--line));
      border-radius: var(--radius-panel, 10px);
      background: var(--pfv-panel, #fff);
      box-shadow: none;
    }

    .profile-exec-head {
      align-items: flex-start;
      gap: 12px;
    }

    .profile-exec-head h3 {
      margin: 0;
      color: var(--pfv-text, var(--ink));
      font-size: 17px;
      font-weight: 760;
      line-height: 1.2;
    }

    .profile-exec-main {
      max-width: 980px;
      gap: 13px;
    }

    .profile-exec-section {
      gap: 6px;
      padding: 0;
      border: 0;
      background: transparent;
    }

    .profile-exec-section h3 {
      color: var(--pfv-muted, var(--muted));
      font-size: 11px;
      font-weight: 820;
      letter-spacing: .055em;
    }

    .profile-exec-section p {
      color: var(--pfv-text, var(--ink));
      font-size: 14px;
      line-height: 1.68;
    }

    .profile-summary-link {
      border-bottom-color: currentColor;
      color: var(--pfv-muted, #5f6b62);
      font-size: .94em;
      font-weight: 620;
      text-decoration: none;
    }

    .profile-summary-link:hover,
    .profile-summary-link:focus {
      background: transparent;
      color: var(--pfv-green-hover, #3f875c);
    }

    .profile-exec-focus div {
      border-color: var(--pfv-line, var(--line));
      border-radius: 8px;
      background: var(--pfv-panel-soft, #fbfcf8);
    }

    .profile-launch-grid {
      gap: 8px;
    }

    .profile-launch-card-simple {
      min-height: 72px;
      padding: 12px;
      border-color: var(--pfv-line, var(--line));
      border-radius: var(--radius-panel, 10px);
      background: var(--pfv-panel, #fff);
      box-shadow: none;
    }

    .profile-launch-card-simple:hover {
      border-color: #c6dcca;
      background: var(--pfv-green-soft, #edf7f0);
      transform: none;
    }

    .profile-launch-icon {
      width: 30px;
      height: 30px;
      border-color: #d5e7d9;
      background: var(--pfv-green-soft, #edf7f0);
      color: var(--pfv-green-hover, #3f875c);
    }

    .profile-life-timeline {
      padding: 14px 16px 16px;
      border-color: var(--pfv-line, var(--line));
      border-radius: var(--radius-panel, 10px);
      background: var(--pfv-panel, #fff);
      box-shadow: none;
    }

    .profile-life-head h3 {
      color: var(--pfv-text, var(--ink));
      font-size: 16px;
      font-weight: 760;
    }

    .profile-life-track::before {
      background: var(--pfv-line, var(--line));
    }

    .profile-life-dot,
    .tone-experiment .profile-life-dot {
      background: var(--pfv-green, #4f9f6f);
      box-shadow: 0 0 0 4px var(--pfv-panel, #fff), 0 0 0 5px #d5e7d9;
    }

    .profile-life-card {
      border-color: var(--pfv-line, var(--line));
      border-radius: 8px;
      background: var(--pfv-panel-soft, #fbfcf8);
      box-shadow: none;
    }

    .profile-life-card h4,
    .profile-life-card strong {
      color: var(--pfv-text, var(--ink));
    }

    .profile-life-card p,
    .profile-life-card small {
      color: var(--pfv-muted, var(--muted));
    }

    .profile-panel-backdrop {
      background: rgba(20, 28, 23, .34);
      backdrop-filter: blur(6px);
    }

    .profile-modal-panel {
      border-color: var(--pfv-line, var(--line));
      border-radius: var(--radius-modal, 14px);
      background: var(--pfv-panel, #fff);
      box-shadow: 0 24px 80px rgba(31, 42, 36, .2);
    }

    .profile-modal-panel .profile-panel-body {
      background: var(--pfv-bg, #f6f7f3);
      padding: 14px;
    }

    .profile-modal-panel .panel,
    .profile-modal-panel .account-analytics,
    .profile-modal-panel .profile-about-context {
      border-color: var(--pfv-line, var(--line));
      background: var(--pfv-panel, #fff);
      color: var(--pfv-text, var(--ink));
    }

    .profile-composer,
    .profile-inline-composer,
    .trial-inline-composer {
      border-color: var(--pfv-line, var(--line));
      border-radius: 999px;
      background: var(--pfv-panel, #fff);
      box-shadow: none;
    }

    .profile-composer input,
    .profile-inline-composer input,
    .trial-inline-composer input {
      border: 0;
      background: transparent;
    }

    body.night-mode .dossier-hero.profile-hero,
    body.night-mode .profile-executive-summary,
    body.night-mode .profile-launch-card-simple,
    body.night-mode .profile-life-timeline,
    body.night-mode .profile-modal-panel,
    body.night-mode .profile-modal-panel .panel,
    body.night-mode .profile-composer,
    body.night-mode .profile-inline-composer,
    body.night-mode .trial-inline-composer {
      border-color: var(--pfv-line, #2b342e);
      background: var(--pfv-panel, #151a17);
      color: var(--pfv-text, #eef3ee);
      box-shadow: none;
    }

    body.night-mode .profile-modal-panel .profile-panel-body {
      background: var(--pfv-bg, #0f1411);
    }

    body.night-mode .profile-exec-focus div,
    body.night-mode .profile-life-card,
    body.night-mode .profile-modal-panel .account-analytics,
    body.night-mode .profile-modal-panel .profile-about-context {
      border-color: var(--pfv-line, #2b342e);
      background: var(--pfv-panel-soft, #111613);
      color: var(--pfv-text, #eef3ee);
    }

    body.night-mode .profile-stage-pill,
    body.night-mode .profile-tag-row .pill,
    body.night-mode .profile-exec-chips span,
    body.night-mode .profile-launch-icon {
      border-color: #2e4636;
      background: var(--pfv-green-soft, #1a2a20);
      color: var(--pfv-green-hover, #86d89b);
    }

    body.night-mode .profile-summary-link {
      border-bottom-color: currentColor;
      color: #aeb6c4;
    }

    body.night-mode .profile-summary-link:hover,
    body.night-mode .profile-summary-link:focus,
    body.night-mode .profile-launch-card-simple:hover {
      border-color: #2e4636;
      background: transparent;
      color: #d8dee9;
      color: var(--pfv-green-hover, #86d89b);
    }

    body.night-mode .profile-life-dot,
    body.night-mode .tone-experiment .profile-life-dot {
      background: var(--pfv-green, #6fbd86);
      box-shadow: 0 0 0 4px var(--pfv-panel, #151a17), 0 0 0 5px #2e4636;
    }

    @media (max-width: 720px) {
      .dossier-hero.profile-hero {
        grid-template-columns: 1fr;
        padding: 12px;
      }

      .dossier-actions.profile-hero-actions {
        justify-content: flex-start;
      }

      .profile-executive-summary,
      .profile-life-timeline {
        padding: 12px;
      }

      .profile-exec-focus,
      .profile-launch-grid {
        grid-template-columns: 1fr 1fr;
      }
    }

    @media (max-width: 480px) {
      .profile-exec-focus,
      .profile-launch-grid {
        grid-template-columns: 1fr;
      }
    }

    /* Complete profile briefing redesign */
    .profile-shell {
      display: grid;
      gap: 12px;
      padding-bottom: 28px;
    }

    .dossier-hero.profile-hero {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      align-items: stretch;
      gap: 16px;
      padding: 14px;
      border-radius: 12px;
    }

    .profile-hero-copy {
      gap: 8px;
    }

    .dossier-hero.profile-hero h2 {
      margin: 0;
      font-size: clamp(25px, 2.1vw, 34px);
      letter-spacing: 0;
    }

    .profile-attention-grid {
      display: grid;
      grid-template-columns: repeat(6, minmax(112px, 1fr));
      gap: 8px;
      margin-top: 4px;
    }

    .profile-attention-grid div {
      min-width: 0;
      padding: 9px 10px;
      border: 1px solid var(--pfv-line, var(--line));
      border-radius: 9px;
      background: var(--pfv-panel-soft, #fbfcf8);
    }

    .profile-attention-grid span,
    .profile-experiment-brief span,
    .profile-summary-stats span,
    .profile-memory-grid span {
      display: block;
      color: var(--pfv-muted, var(--muted));
      font-size: 10px;
      font-weight: 820;
      letter-spacing: .055em;
      line-height: 1.2;
      text-transform: uppercase;
    }

    .profile-attention-grid strong {
      display: block;
      min-width: 0;
      margin-top: 5px;
      overflow-wrap: anywhere;
      color: var(--pfv-text, var(--ink));
      font-size: 13px;
      font-weight: 760;
      line-height: 1.28;
    }

    .dossier-actions.profile-hero-actions {
      display: grid;
      grid-template-columns: repeat(2, minmax(104px, 1fr));
      align-content: center;
      min-width: 224px;
      gap: 8px;
    }

    .profile-primary-action {
      display: inline-flex;
      min-height: 42px;
      align-items: center;
      justify-content: center;
      padding: 0 15px;
      border: 1px solid #bcdcc5;
      border-radius: 10px;
      background: var(--pfv-green, #4f9f6f);
      color: #fff;
      cursor: pointer;
      font-size: 14px;
      font-weight: 760;
      line-height: 1;
      text-decoration: none;
      white-space: nowrap;
    }

    .profile-primary-action:hover,
    .profile-primary-action:focus {
      background: var(--pfv-green-hover, #3f875c);
      color: #fff;
      outline: none;
    }

    .profile-primary-action.disabled {
      pointer-events: none;
      border-color: var(--pfv-line, var(--line));
      background: var(--pfv-panel-soft, #f2f4ef);
      color: var(--pfv-muted, var(--muted));
    }

    .profile-executive-summary {
      padding: 18px;
      border-radius: 12px;
    }

    .profile-exec-head {
      padding-bottom: 2px;
      border-bottom: 1px solid var(--pfv-line, var(--line));
    }

    .profile-exec-head h3 {
      margin-top: 4px;
      font-size: 18px;
    }

    .profile-exec-main {
      display: grid;
      grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
      gap: 14px 20px;
      align-items: start;
    }

    .profile-exec-section {
      display: block;
      align-self: start;
      min-width: 0;
    }

    .profile-exec-section:first-child {
      grid-column: 1 / -1;
      padding: 13px 14px;
      border: 1px solid #cfe5d4;
      border-radius: 10px;
      background: var(--pfv-green-soft, #edf7f0);
    }

    .profile-exec-section:first-child h3 {
      color: #2f714c;
    }

    .profile-exec-section p {
      margin-top: 7px;
      font-size: 14px;
      line-height: 1.58;
    }

    .profile-brief-list {
      display: grid;
      gap: 6px;
      margin: 0;
      padding-left: 17px;
      color: var(--pfv-text, var(--ink));
      font-size: 14px;
      line-height: 1.46;
    }

    .profile-brief-list.compact {
      grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
      padding-left: 0;
      list-style: none;
    }

    .profile-brief-list.compact li {
      padding: 7px 9px;
      border: 1px solid var(--pfv-line, var(--line));
      border-radius: 8px;
      background: var(--pfv-panel-soft, #fbfcf8);
    }

    .profile-brief-changes,
    .profile-recent-list {
      display: grid;
      gap: 8px;
    }

    .profile-brief-changes div,
    .profile-recent-list article {
      min-width: 0;
      padding: 9px 10px;
      border: 1px solid var(--pfv-line, var(--line));
      border-radius: 8px;
      background: var(--pfv-panel-soft, #fbfcf8);
    }

    .profile-brief-changes span,
    .profile-recent-list span {
      color: var(--pfv-muted, var(--muted));
      font-size: 11px;
      font-weight: 760;
    }

    .profile-brief-changes strong,
    .profile-recent-list strong {
      display: block;
      margin-top: 3px;
      font-size: 13px;
      line-height: 1.3;
    }

    .profile-brief-changes p,
    .profile-recent-list p {
      margin: 4px 0 0;
      color: var(--pfv-muted, var(--muted));
      font-size: 12px;
      line-height: 1.45;
    }

    .profile-intelligence-bar {
      border-radius: 14px;
    }

    .profile-intelligence-stack {
      display: grid;
      gap: 8px;
    }

    .profile-intel-section {
      border: 1px solid var(--pfv-line, var(--line));
      border-radius: 12px;
      background: var(--pfv-panel, #fff);
      overflow: clip;
    }

    .profile-intel-section > summary {
      display: flex;
      min-height: 50px;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      padding: 0 14px;
      cursor: pointer;
      list-style: none;
    }

    .profile-intel-section > summary::-webkit-details-marker {
      display: none;
    }

    .profile-intel-section > summary::after {
      content: "+";
      display: grid;
      width: 22px;
      height: 22px;
      flex: 0 0 auto;
      place-items: center;
      border: 1px solid var(--pfv-line, var(--line));
      border-radius: 999px;
      color: var(--pfv-muted, var(--muted));
      font-weight: 760;
    }

    .profile-intel-section[open] > summary::after {
      content: "-";
    }

    .profile-intel-section > summary span {
      color: var(--pfv-text, var(--ink));
      font-size: 15px;
      font-weight: 760;
    }

    .profile-intel-section > summary small {
      margin-left: auto;
      color: var(--pfv-muted, var(--muted));
      font-size: 12px;
      font-weight: 650;
    }

    .profile-intel-body {
      padding: 0 14px 14px;
      border-top: 1px solid var(--pfv-line, var(--line));
    }

    .profile-intel-body > .panel,
    .profile-intel-body .profile-more-panel {
      margin-top: 12px;
      border: 0;
      box-shadow: none;
    }

    .profile-recommendation-list {
      display: grid;
      gap: 8px;
      margin: 12px 0;
    }

    .profile-recommendation-list div {
      display: grid;
      grid-template-columns: 28px minmax(0, 1fr);
      gap: 9px;
      align-items: start;
      padding: 9px;
      border: 1px solid var(--pfv-line, var(--line));
      border-radius: 9px;
      background: var(--pfv-panel-soft, #fbfcf8);
    }

    .profile-recommendation-list span {
      display: grid;
      width: 28px;
      height: 28px;
      place-items: center;
      border-radius: 999px;
      background: var(--pfv-green-soft, #edf7f0);
      color: #2f714c;
      font-size: 12px;
      font-weight: 820;
    }

    .profile-recommendation-list p {
      margin: 4px 0 0;
      font-size: 14px;
      line-height: 1.42;
    }

    .profile-timeline-tools {
      display: grid;
      gap: 8px;
      margin: 12px 0;
    }

    .profile-timeline-tools input,
    .profile-communication-search input {
      width: 100%;
      min-height: 34px;
    }

    .profile-timeline-filters {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
    }

    .profile-experiment-brief,
    .profile-summary-stats,
    .profile-memory-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
      gap: 8px;
      margin: 12px 0;
    }

    .profile-experiment-brief div,
    .profile-summary-stats div,
    .profile-memory-grid div {
      min-width: 0;
      padding: 10px;
      border: 1px solid var(--pfv-line, var(--line));
      border-radius: 9px;
      background: var(--pfv-panel-soft, #fbfcf8);
    }

    .profile-experiment-brief strong,
    .profile-summary-stats strong {
      display: block;
      margin-top: 5px;
      font-size: 15px;
      line-height: 1.25;
    }

    .profile-experiment-brief p,
    .profile-memory-grid p {
      margin: 6px 0 0;
      color: var(--pfv-text, var(--ink));
      font-size: 13px;
      line-height: 1.45;
    }

    body.night-mode .profile-attention-grid div,
    body.night-mode .profile-exec-section:first-child,
    body.night-mode .profile-brief-list.compact li,
    body.night-mode .profile-brief-changes div,
    body.night-mode .profile-recent-list article,
    body.night-mode .profile-intel-section,
    body.night-mode .profile-recommendation-list div,
    body.night-mode .profile-experiment-brief div,
    body.night-mode .profile-summary-stats div,
    body.night-mode .profile-memory-grid div {
      border-color: var(--pfv-line, #2b342e);
      background: var(--pfv-panel-soft, #111613);
      color: var(--pfv-text, #eef3ee);
    }

    body.night-mode .profile-primary-action {
      border-color: #2e4636;
      background: #6fbd86;
      color: #0f1411;
    }

    body.night-mode .profile-primary-action:hover,
    body.night-mode .profile-primary-action:focus {
      background: #86d89b;
      color: #0f1411;
    }

    body.night-mode .profile-primary-action.disabled {
      border-color: #343a47;
      background: #1a1f2b;
      color: #7f8797;
    }

    body.night-mode .profile-intel-section > summary,
    body.night-mode .profile-intel-body,
    body.night-mode .profile-exec-head {
      border-color: var(--pfv-line, #2b342e);
    }

    body.night-mode .profile-intel-section > summary span,
    body.night-mode .profile-attention-grid strong,
    body.night-mode .profile-experiment-brief p,
    body.night-mode .profile-memory-grid p {
      color: var(--pfv-text, #eef3ee);
    }

    body.night-mode .profile-recommendation-list span {
      background: #1a2a20;
      color: #86d89b;
    }

    @media (max-width: 980px) {
      .dossier-hero.profile-hero {
        grid-template-columns: 1fr;
      }

      .profile-attention-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
      }

      .dossier-actions.profile-hero-actions {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        min-width: 0;
      }
    }

    @media (max-width: 720px) {
      .profile-attention-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }

      .profile-exec-main {
        grid-template-columns: 1fr;
      }

      .dossier-actions.profile-hero-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }
    }

    @media (max-width: 440px) {
      .profile-attention-grid,
      .dossier-actions.profile-hero-actions,
      .profile-experiment-brief,
      .profile-summary-stats,
      .profile-memory-grid {
        grid-template-columns: 1fr;
      }
    }

    /* Profile calm-down pass */
    .dossier-hero.profile-hero {
      grid-template-columns: minmax(0, 1fr) auto;
      align-items: start;
      padding: 12px 14px;
    }

    .profile-title-row {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 12px;
    }

    .profile-name-line {
      display: flex;
      min-width: 0;
      align-items: center;
      gap: 8px;
    }

    .profile-name-line h2 {
      margin: 2px 0 0;
      font-size: clamp(24px, 2vw, 30px);
      line-height: 1.05;
    }

    .profile-name-edit {
      display: inline-grid;
      width: 28px;
      height: 28px;
      flex: 0 0 auto;
      place-items: center;
      border: 1px solid transparent;
      border-radius: 999px;
      background: transparent;
      color: var(--pfv-muted, var(--muted));
      cursor: pointer;
      font-size: 15px;
      line-height: 1;
    }

    .profile-name-edit:hover,
    .profile-name-edit:focus {
      border-color: var(--pfv-line, var(--line));
      background: var(--pfv-panel-soft, #fbfcf8);
      color: var(--pfv-text, var(--ink));
      outline: none;
    }

    .profile-name-form {
      display: grid;
      grid-template-columns: minmax(180px, 320px) auto auto minmax(0, 1fr);
      gap: 7px;
      align-items: center;
      margin-top: 10px;
    }

    .profile-name-form input {
      min-height: 34px;
      border-radius: 9px;
      font-size: 14px;
    }

    .profile-name-form .message {
      margin: 0;
      min-height: 0;
      font-size: 12px;
    }

    .profile-title-row p {
      margin: 6px 0 0;
      color: var(--pfv-muted, var(--muted));
      font-size: 13px;
      line-height: 1.35;
    }

    .profile-meta-row {
      display: flex;
      flex-wrap: wrap;
      gap: 7px;
      margin-top: 10px;
    }

    .profile-meta-row span {
      display: inline-flex;
      min-height: 28px;
      align-items: center;
      gap: 5px;
      padding: 0 9px;
      border: 1px solid var(--pfv-line, var(--line));
      border-radius: 999px;
      background: var(--pfv-panel-soft, #fbfcf8);
      color: var(--pfv-muted, var(--muted));
      font-size: 12px;
      line-height: 1;
      white-space: nowrap;
    }

    .profile-meta-row strong {
      color: var(--pfv-text, var(--ink));
      font-weight: 760;
    }

    .dossier-actions.profile-hero-actions {
      display: flex;
      min-width: 0;
      gap: 7px;
    }

    .profile-quick-action {
      display: inline-flex;
      min-width: 54px;
      height: 34px;
      align-items: center;
      justify-content: center;
      padding: 0 12px;
      border: 1px solid var(--pfv-line, var(--line));
      border-radius: 999px;
      background: var(--pfv-panel, #fff);
      color: var(--pfv-text, var(--ink));
      font-size: 12px;
      font-weight: 720;
      line-height: 1;
      text-decoration: none;
      white-space: nowrap;
    }

    .profile-quick-action:hover,
    .profile-quick-action:focus {
      border-color: var(--pfv-green, #4f9f6f);
      color: var(--pfv-green-strong, #2f714c);
      outline: none;
    }

    .profile-quick-action.disabled {
      pointer-events: none;
      opacity: .45;
    }

    .profile-activity-action {
      position: relative;
      display: inline-grid;
      width: 32px;
      height: 32px;
      flex: 0 0 auto;
      place-items: center;
      padding: 0;
      border: 1px solid var(--pfv-line, var(--line));
      border-radius: 999px;
      background: var(--pfv-panel, #fff);
      color: var(--pfv-muted, var(--muted));
      cursor: pointer;
      font-size: 15px;
      font-weight: 760;
    }

    .profile-activity-action b {
      position: absolute;
      top: -6px;
      right: -6px;
      display: grid;
      min-width: 16px;
      height: 16px;
      place-items: center;
      padding: 0 4px;
      border: 1px solid var(--pfv-panel, #fff);
      border-radius: 999px;
      background: var(--pfv-green, #4f9f6f);
      color: #fff;
      font-size: 9px;
      line-height: 1;
    }

    .profile-executive-summary {
      padding: 16px;
    }

    .profile-exec-main {
      grid-template-columns: minmax(0, 1fr);
      gap: 10px;
    }

    .profile-exec-section:first-child {
      padding: 0;
      border: 0;
      background: transparent;
    }

    .profile-exec-section h3 {
      margin-bottom: 4px;
      font-size: 13px;
    }

    .profile-exec-section p {
      margin-top: 4px;
      font-size: 14px;
      line-height: 1.55;
    }

    .profile-brief-list {
      gap: 4px;
      font-size: 13px;
    }

    .profile-detail-strip {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      padding: 8px;
      border: 1px solid var(--pfv-line, var(--line));
      border-radius: 12px;
      background: var(--pfv-panel, #fff);
    }

    .profile-detail-strip button {
      display: inline-flex;
      min-height: 36px;
      align-items: center;
      gap: 7px;
      padding: 0 10px;
      border: 1px solid transparent;
      border-radius: 9px;
      background: transparent;
      color: var(--pfv-text, var(--ink));
      cursor: pointer;
      font-size: 13px;
      font-weight: 760;
    }

    .profile-detail-strip button:hover,
    .profile-detail-strip button:focus {
      border-color: var(--pfv-line, var(--line));
      background: var(--pfv-panel-soft, #fbfcf8);
      outline: none;
    }

    .profile-detail-strip small {
      color: var(--pfv-muted, var(--muted));
      font-size: 11px;
      font-weight: 650;
    }

    .profile-modal-panel {
      width: min(860px, calc(100vw - 28px));
      max-height: min(760px, calc(100vh - 36px));
      border-radius: 14px;
    }

    .profile-modal-panel .profile-panel-head {
      align-items: center;
      padding: 16px 18px;
      border-bottom: 1px solid var(--pfv-line, var(--line));
      background: var(--pfv-panel, #fff);
    }

    .profile-modal-panel .profile-panel-head h3 {
      margin: 0;
      font-size: 20px;
      line-height: 1.1;
    }

    .profile-modal-panel .profile-panel-head p {
      margin: 5px 0 0;
      color: var(--pfv-muted, var(--muted));
      font-size: 13px;
      line-height: 1.3;
    }

    .profile-modal-panel .profile-panel-body {
      display: grid;
      gap: 12px;
      padding: 14px 16px 18px;
      background: var(--pfv-panel-soft, #fbfcf8);
    }

    .profile-panel-context {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 8px;
    }

    .profile-panel-context div {
      min-width: 0;
      padding: 10px 11px;
      border: 1px solid var(--pfv-line, var(--line));
      border-radius: 10px;
      background: var(--pfv-panel, #fff);
    }

    .profile-panel-context span {
      display: block;
      color: var(--pfv-muted, var(--muted));
      font-size: 10px;
      font-weight: 800;
      letter-spacing: .04em;
      line-height: 1.2;
      text-transform: uppercase;
    }

    .profile-panel-context strong {
      display: block;
      margin-top: 5px;
      overflow-wrap: anywhere;
      color: var(--pfv-text, var(--ink));
      font-size: 13px;
      line-height: 1.3;
    }

    .profile-modal-panel .profile-panel-body > .panel {
      margin: 0;
      border: 1px solid var(--pfv-line, var(--line));
      border-radius: 12px;
      background: var(--pfv-panel, #fff);
      box-shadow: none;
    }

    .profile-modal-panel .section-head {
      padding-bottom: 10px;
      border-bottom: 1px solid var(--pfv-line, var(--line));
      margin-bottom: 12px;
    }

    body.night-mode .profile-meta-row span,
    body.night-mode .profile-detail-strip,
    body.night-mode .profile-detail-strip button:hover,
    body.night-mode .profile-detail-strip button:focus,
    body.night-mode .profile-activity-action,
    body.night-mode .profile-quick-action,
    body.night-mode .profile-panel-context div,
    body.night-mode .profile-modal-panel .profile-panel-body > .panel {
      border-color: var(--pfv-line, #343a47);
      background: var(--pfv-panel-soft, #151820);
      color: var(--pfv-text, #eef3ee);
    }

    body.night-mode .profile-modal-panel .profile-panel-head {
      border-color: var(--pfv-line, #343a47);
      background: var(--pfv-panel, #10131a);
    }

    body.night-mode .profile-modal-panel .profile-panel-body {
      background: #0d1016;
    }

    body.night-mode .profile-meta-row strong,
    body.night-mode .profile-detail-strip button,
    body.night-mode .profile-panel-context strong {
      color: var(--pfv-text, #eef3ee);
    }

    body.night-mode .profile-title-row p,
    body.night-mode .profile-detail-strip small,
    body.night-mode .profile-panel-context span,
    body.night-mode .profile-modal-panel .profile-panel-head p {
      color: var(--pfv-muted, #9aa3b2);
    }

    body.night-mode .profile-name-edit:hover,
    body.night-mode .profile-name-edit:focus {
      border-color: var(--pfv-line, #343a47);
      background: var(--pfv-panel-soft, #151820);
      color: var(--pfv-text, #eef3ee);
    }

    body.night-mode .profile-activity-action b {
      border-color: var(--pfv-panel, #151820);
    }

    body.night-mode .profile-exec-section:first-child {
      background: transparent;
      border-color: transparent;
    }

    @media (max-width: 760px) {
      .dossier-hero.profile-hero {
        grid-template-columns: 1fr;
      }

      .dossier-actions.profile-hero-actions {
        width: 100%;
        flex-wrap: wrap;
        padding-bottom: 2px;
      }

      .profile-detail-strip {
        flex-wrap: nowrap;
        overflow-x: auto;
      }

      .profile-detail-strip button {
        flex: 0 0 auto;
      }
    }

    @media (max-width: 520px) {
      .profile-title-row {
        align-items: center;
      }

      .profile-name-form {
        grid-template-columns: 1fr auto auto;
      }

      .profile-name-form .message {
        grid-column: 1 / -1;
      }

      .profile-meta-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
      }

      .profile-panel-context {
        grid-template-columns: 1fr;
      }

      .profile-meta-row span {
        justify-content: center;
        white-space: normal;
      }
    }

    /* Account Intelligence Briefing */
    .profile-executive-summary {
      padding: 0;
      border: 0;
      border-radius: 0;
      background: transparent;
    }

    .profile-briefing {
      display: grid;
      grid-template-columns: minmax(0, 1.45fr) minmax(260px, .72fr);
      gap: 12px;
      align-items: start;
    }

    .profile-briefing-main,
    .profile-brief-section {
      min-width: 0;
      border: 1px solid rgba(99, 105, 116, .18);
      border-radius: 10px;
      background: rgba(255, 255, 252, .86);
      box-shadow: 0 14px 34px rgba(20, 24, 20, .05);
    }

    .profile-briefing-main {
      display: grid;
      gap: 10px;
      padding: 18px 20px;
    }

    .profile-brief-eyebrow {
      color: #5b635e;
      font-size: 11px;
      font-weight: 860;
      letter-spacing: .09em;
      text-transform: uppercase;
    }

    .profile-briefing-main h3 {
      margin: 0;
      color: var(--ink);
      font-size: clamp(22px, 3vw, 32px);
      line-height: 1.08;
      letter-spacing: 0;
    }

    .profile-brief-summary-copy {
      display: grid;
      gap: 8px;
      max-width: 860px;
    }

    .profile-brief-summary-copy p,
    .profile-brief-section p {
      margin: 0;
      color: var(--text);
      font-size: 14px;
      line-height: 1.58;
    }

    .profile-briefing-side {
      display: grid;
      gap: 12px;
    }

    .profile-brief-next-context {
      align-self: stretch;
    }

    .profile-brief-action-card {
      display: grid;
      gap: 8px;
      min-width: 0;
      padding: 14px;
      border: 1px solid rgba(99, 105, 116, .16);
      border-radius: 10px;
      background: rgba(255, 255, 252, .84);
    }

    .profile-brief-action-card span {
      color: var(--muted);
      font-size: 10px;
      font-weight: 860;
      letter-spacing: .08em;
      text-transform: uppercase;
    }

    .profile-brief-action-card p {
      margin: 0;
      color: var(--muted);
      font-size: 12px;
      line-height: 1.45;
    }

    .profile-context-question-form {
      display: grid;
      grid-template-columns: minmax(0, 1fr) minmax(160px, 220px) auto;
      gap: 10px;
      align-items: end;
      margin-top: 12px;
      padding: 12px;
      border: 1px solid rgba(99, 105, 116, .16);
      border-radius: 10px;
      background: rgba(247, 248, 244, .72);
    }

    .profile-context-question-form strong {
      display: block;
      color: var(--ink);
      font-size: 13px;
      line-height: 1.3;
    }

    .profile-context-question-form select {
      min-height: 38px;
    }

    .profile-context-question-form .message {
      grid-column: 1 / -1;
      margin: 0;
    }

    .sr-only {
      position: absolute;
      width: 1px;
      height: 1px;
      padding: 0;
      margin: -1px;
      overflow: hidden;
      clip: rect(0, 0, 0, 0);
      white-space: nowrap;
      border: 0;
    }

    .profile-next-task-link {
      justify-self: start;
      max-width: 100%;
      text-align: left;
      line-height: 1.3;
    }

    .profile-briefing-grid {
      grid-column: 1 / -1;
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 12px;
    }

    .profile-brief-section {
      display: grid;
      gap: 10px;
      padding: 14px;
    }

    .profile-brief-section.wide {
      grid-column: 1 / -1;
    }

    .profile-brief-section-head {
      display: flex;
      gap: 8px;
      align-items: center;
    }

    .profile-brief-section-head span {
      display: inline-grid;
      width: 22px;
      height: 22px;
      place-items: center;
      border-radius: 7px;
      background: #eef1ed;
      color: #455147;
      font-size: 12px;
      font-weight: 900;
    }

    .profile-brief-section h3 {
      margin: 0;
      color: var(--ink);
      font-size: 13px;
      font-weight: 850;
      letter-spacing: 0;
    }

    .profile-brief-list {
      display: grid;
      gap: 8px;
      margin: 0;
      padding: 0;
      list-style: none;
    }

    .profile-brief-list li {
      position: relative;
      padding-left: 14px;
      color: var(--text);
      font-size: 13px;
      line-height: 1.5;
    }

    .profile-brief-list li::before {
      content: "";
      position: absolute;
      top: .68em;
      left: 0;
      width: 5px;
      height: 5px;
      border-radius: 999px;
      background: #6f7a71;
    }

    .profile-brief-trials {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
      gap: 10px;
    }

    .profile-brief-trials article,
    .profile-brief-feed article,
    .profile-brief-actions article,
    .profile-brief-timeline article {
      display: grid;
      gap: 6px;
      min-width: 0;
      padding: 10px;
      border: 1px solid rgba(99, 105, 116, .16);
      border-radius: 8px;
      background: rgba(247, 248, 245, .74);
    }

    .profile-brief-trials strong,
    .profile-brief-feed strong,
    .profile-brief-actions strong,
    .profile-brief-timeline strong {
      color: var(--ink);
      font-size: 13px;
      line-height: 1.35;
      overflow-wrap: anywhere;
    }

    .profile-brief-trials span,
    .profile-brief-feed span,
    .profile-brief-timeline span,
    .profile-brief-trials dt {
      color: var(--muted);
      font-size: 10px;
      font-weight: 820;
      letter-spacing: .06em;
      text-transform: uppercase;
    }

    .profile-brief-trials dl {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
      gap: 8px;
      margin: 2px 0 0;
    }

    .profile-brief-trials dd {
      margin: 2px 0 0;
      color: var(--text);
      font-size: 12px;
      line-height: 1.4;
    }

    .profile-brief-feed,
    .profile-brief-actions,
    .profile-brief-timeline {
      display: grid;
      gap: 8px;
    }

    .profile-brief-actions article {
      border-left: 3px solid #435244;
      background: #f7f8f4;
    }

    .profile-brief-actions p,
    .profile-brief-feed p {
      color: var(--muted);
      font-size: 12px;
      line-height: 1.45;
    }

    .profile-brief-empty {
      margin: 0;
      color: var(--muted);
      font-weight: 760;
    }

    body.night-mode .profile-executive-summary {
      background: transparent;
    }

    body.night-mode .profile-briefing-main,
    body.night-mode .profile-brief-section,
    body.night-mode .profile-brief-action-card,
    body.night-mode .profile-context-question-form {
      border-color: rgba(255, 255, 255, .1);
      background: rgba(20, 22, 25, .92);
      box-shadow: none;
    }

    body.night-mode .profile-brief-eyebrow,
    body.night-mode .profile-brief-trials span,
    body.night-mode .profile-brief-feed span,
    body.night-mode .profile-brief-timeline span,
    body.night-mode .profile-brief-trials dt,
    body.night-mode .profile-brief-action-card span {
      color: #9aa3b2;
    }

    body.night-mode .profile-briefing-main h3,
    body.night-mode .profile-brief-section h3,
    body.night-mode .profile-brief-trials strong,
    body.night-mode .profile-brief-feed strong,
    body.night-mode .profile-brief-actions strong,
    body.night-mode .profile-brief-timeline strong {
      color: #eef3ee;
    }

    body.night-mode .profile-brief-summary-copy p,
    body.night-mode .profile-brief-section p,
    body.night-mode .profile-brief-list li,
    body.night-mode .profile-brief-trials dd {
      color: #d8ded7;
    }

    body.night-mode .profile-brief-section-head span,
    body.night-mode .profile-brief-trials article,
    body.night-mode .profile-brief-feed article,
    body.night-mode .profile-brief-actions article,
    body.night-mode .profile-brief-timeline article {
      border-color: rgba(255, 255, 255, .1);
      background: rgba(255, 255, 255, .04);
    }

    body.night-mode .profile-brief-section-head span {
      color: #cbd5cf;
    }

    @media (max-width: 900px) {
      .profile-briefing {
        grid-template-columns: 1fr;
      }

      .profile-briefing-grid {
        grid-template-columns: 1fr;
      }
    }

    /* Compact Account Intelligence Brief */
    .profile-executive-summary {
      margin: 0;
      padding: 0;
      border: 0;
      background: transparent;
    }

    .profile-briefing.profile-briefing-compact {
      display: block;
    }

    .profile-briefing.profile-briefing-compact .profile-briefing-main {
      gap: 6px;
      padding: 14px 16px;
      border-radius: 8px;
      box-shadow: none;
    }

    .profile-briefing.profile-briefing-compact .profile-brief-eyebrow {
      font-size: 10px;
      letter-spacing: .08em;
    }

    .profile-briefing.profile-briefing-compact .profile-briefing-main h3 {
      font-size: 16px;
      line-height: 1.2;
    }

    .profile-briefing.profile-briefing-compact .profile-brief-summary-copy {
      gap: 4px;
      max-width: 980px;
    }

    .profile-briefing.profile-briefing-compact .profile-brief-summary-copy p {
      font-size: 13px;
      line-height: 1.45;
    }

    .profile-briefing.profile-briefing-compact .profile-briefing-side {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 8px;
      margin-top: 8px;
    }

    .profile-briefing.profile-briefing-compact .profile-brief-action-card {
      gap: 6px;
      padding: 10px 12px;
      border-radius: 8px;
      box-shadow: none;
    }

    .profile-brief-card-title {
      justify-self: start;
      padding: 0;
      border: 0;
      background: transparent;
      font-size: 10px;
      letter-spacing: .08em;
      text-transform: uppercase;
    }

    .profile-briefing.profile-briefing-compact .profile-brief-list.compact {
      gap: 3px;
      margin: 0;
    }

    .profile-briefing.profile-briefing-compact .profile-brief-list.compact li {
      padding: 0;
      border: 0;
      background: transparent;
      font-size: 12px;
      line-height: 1.35;
    }

    .profile-briefing.profile-briefing-compact .profile-brief-list.compact li::before {
      top: .55em;
    }

    @media (max-width: 960px) {
      .profile-briefing.profile-briefing-compact .profile-briefing-side {
        grid-template-columns: 1fr;
      }
    }

/* ---- TILFULLY PROFILE v2 (Josh's mockup, 2026-07-21) ------------------- */
#profile { position: relative; }
.tfp-page { max-width: 760px; margin: 0 auto; padding-bottom: 150px; }
.tfp-hero { position: relative; padding: 30px 28px 24px; border-radius: 0 0 18px 18px;
  background: linear-gradient(175deg, #06251b 0%, #123a2b 55%, #6b4a1e 100%); color: #faf8f3; }
.tfp-contours { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.3; pointer-events: none; }
.tfp-hero-content { position: relative; z-index: 2; }
.tfp-back { margin-bottom: 10px; color: rgba(250,248,243,0.75); background: none; border: none; cursor: pointer; font-size: 15px; padding: 0; }
.tfp-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: #d99a2b; border: 1px solid #d99a2b; padding: 5px 11px; border-radius: 100px; margin-bottom: 10px; }
.tfp-title { font-family: 'Playfair Display', Didot, 'Bodoni MT', Georgia, serif;
  font-size: 34px; line-height: 1.05; font-weight: 600; margin: 0 0 6px; letter-spacing: -0.01em; color: #faf8f3; }
.tfp-top-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.tfp-menu { position: relative; }
.tfp-menu summary { list-style: none; cursor: pointer; }
.tfp-menu summary::-webkit-details-marker { display: none; }
.tfp-stage summary { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600;
  color: #06251b; background: #e8c77a; padding: 7px 12px 7px 14px; border-radius: 100px; }
.tfp-dot { width: 6px; height: 6px; border-radius: 50%; background: #06251b; }
.tfp-chev { width: 9px; height: 9px; transition: transform .15s; }
.tfp-menu[open] .tfp-chev { transform: rotate(180deg); }
.tfp-menu-panel { position: absolute; top: 40px; left: 0; z-index: 30; background: #1a3428;
  border: 1px solid rgba(250,248,243,0.14); border-radius: 12px; box-shadow: 0 12px 32px rgba(0,0,0,0.35);
  min-width: 240px; padding: 6px; }
.tfp-more { position: absolute; top: 18px; right: 18px; z-index: 5; }
.tfp-more summary { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,0.1);
  border: 1px solid rgba(250,248,243,0.14); color: #faf8f3; display: flex; align-items: center;
  justify-content: center; font-size: 19px; line-height: 0; }
.tfp-more[open] summary { background: #d99a2b; color: #06251b; border-color: #d99a2b; }
.tfp-more-panel { left: auto; right: 0; }
.tfp-menu-item { display: flex; justify-content: space-between; align-items: center; width: 100%;
  background: none; border: none; font: inherit; font-size: 14px; color: #faf8f3;
  padding: 10px 12px; border-radius: 8px; cursor: pointer; text-align: left; text-decoration: none; }
.tfp-menu-item:hover { background: rgba(250,248,243,0.08); }
.tfp-menu-divider { height: 1px; background: rgba(250,248,243,0.14); margin: 5px 6px; }
.tfp-menu-note { display: block; font-size: 11.5px; color: rgba(250,248,243,0.66); padding: 8px 12px 4px; }
.tfp-count { color: rgba(250,248,243,0.66); font-size: 12.5px; }
.tfp-stage-select { margin: 4px 12px 10px; width: calc(100% - 24px); background: rgba(255,255,255,0.08);
  color: #faf8f3; border: 1px solid rgba(250,248,243,0.2); border-radius: 8px; padding: 7px 8px; font-size: 13.5px; }
.tfp-last-contact { font-size: 12.5px; color: rgba(250,248,243,0.72); }
.tfp-last-contact.overdue { color: #e8c77a; font-weight: 600; }
.tfp-collections { padding: 14px 28px 2px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tfp-coll-link { background: none; border: none; padding: 0; font: inherit; font-size: 13px;
  color: var(--t-accent, #d99a2b); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.tfp-coll-dot { color: var(--t-ink-soft, rgba(120,120,120,0.7)); font-size: 13px; }
.tfp-section { padding: 20px 28px 4px; }
.tfp-label { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--t-ink-soft, #8a8f87); margin-bottom: 8px; font-weight: 600; }
.tfp-prose { font-size: 14.5px; line-height: 1.65; margin: 0; }
.tfp-when { opacity: 0.65; font-size: 13px; }
.tfp-empty { opacity: 0.7; }
.tfp-contact { text-decoration: none; color: inherit; border-bottom: 1px solid var(--t-accent, #d99a2b); }
.tfp-contact-soft { color: var(--t-accent, #d99a2b); text-decoration: none; font-size: 13.5px; }
.tfp-card { margin: 22px 28px 24px; background: var(--t-panel, rgba(127,127,127,0.06));
  border: 1px solid var(--t-hairline, rgba(127,127,127,0.2)); border-radius: 16px; padding: 20px; }
.tfp-step { display: flex; align-items: flex-start; gap: 12px; }
.tfp-step + .tfp-step { margin-top: 14px; }
.tfp-check { width: 19px; height: 19px; border-radius: 6px; border: 1.5px solid currentColor;
  opacity: 0.55; flex-shrink: 0; margin-top: 1px; background: none; cursor: pointer; padding: 0; }
.tfp-check:hover { opacity: 0.9; }
.tfp-check.done { background: var(--t-accent, #d99a2b); border-color: var(--t-accent, #d99a2b); opacity: 1; }
.tfp-step-text { font-size: 14.5px; font-weight: 600; line-height: 1.4; }
.tfp-name-form { padding: 14px 28px 0; }
@media (max-width: 600px) { .tfp-title { font-size: 28px; } .tfp-hero, .tfp-section { padding-left: 18px; padding-right: 18px; } .tfp-card { margin-left: 18px; margin-right: 18px; } .tfp-collections { padding-left: 18px; } }
.tfp-contact-line { display: inline-block; margin-top: 10px; font-size: 13px;
  color: rgba(250,248,243,0.8); text-decoration: none; border-bottom: 1px solid rgba(217,154,43,0.55); padding-bottom: 1px; }
a.tfp-contact-line:hover { color: #e8c77a; }
a.tfp-menu-item, a.tfp-menu-item:visited { color: #faf8f3; }
.tfp-contact-menu { display: inline-block; margin-top: 10px; }
.tfp-contact-menu summary.tfp-contact-line { margin-top: 0; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px; }
.tfp-contact-menu .tfp-menu-panel { min-width: 260px; top: 30px; }
.tfp-contact-menu .tfp-count { font-size: 12px; margin-left: 14px; }

/* Whose-account badge in the profile hero (Josh, 2026-07-23) */
.tfp-lead-badge { font-size: 12px; color: rgba(250,248,243,0.72); border: 1px solid rgba(250,248,243,0.28); border-radius: 999px; padding: 2px 10px; white-space: nowrap; }
.tfp-shared-badge { color: #bfeede; border-color: rgba(191,238,222,0.5); }
