/* ---------------------------------------------------------------------------
 *  Activity record (activity.php) - call / meeting / task page
 * ------------------------------------------------------------------------- */
.act { display: flex; flex-direction: column; min-height: calc(100vh - var(--header-h, 60px) - 48px); margin: -8px 0 0; border: 1px solid var(--border); border-radius: var(--radius-lg, 14px); background: var(--surface-2); overflow: hidden; }
.act-queue { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 10px 24px; border-bottom: 1px solid var(--border); background: var(--brand-soft); font-size: 14px; }
.act-queue[hidden] { display: none; }
.act-queue__btns { display: flex; gap: 8px; flex-wrap: wrap; }
.act-head { padding: 18px 28px 16px; border-bottom: 1px solid var(--border); background: var(--surface); }
.act-back { display: inline-flex; align-items: center; gap: 2px; margin-bottom: 10px; color: var(--brand); font-size: 13.5px; font-weight: 600; text-decoration: none; }
.act-back:hover { text-decoration: underline; }
.act-head__row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.act-head__main { min-width: 0; flex: 1 1 420px; }
.act-head__acts { display: flex; align-items: center; gap: 8px; }
.act-title { display: flex; align-items: center; gap: 8px; min-width: 0; }
.act-title h1 { margin: 0; overflow: hidden; font-size: 22px; font-weight: 600; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; border-radius: 6px; }
.act-title h1[contenteditable="true"] { padding: 0 6px; outline: 2px solid var(--brand); text-overflow: clip; white-space: normal; }
.act-icon { display: inline-grid; place-items: center; width: 30px; height: 30px; flex: none; padding: 0; border: 0; border-radius: 6px; background: none; color: var(--text-muted); cursor: pointer; }
.act-icon:hover { background: var(--surface-hover); color: var(--text); }
.act-icon:focus-visible, .act-link:focus-visible, .act-outcome:focus-visible { outline: 0; box-shadow: var(--focus-ring); }
.act-sub { margin: 6px 0 10px; color: var(--text-muted); font-size: 14px; }
.act-sub strong { color: var(--text); font-weight: 600; }
.act-chips { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.act-outcome { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 8px; border: 1px solid var(--border-strong); border-radius: 6px; background: var(--surface); color: var(--text); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.act-outcome.is-empty { border-color: #f4b4a8; background: #fdeeea; color: #9a3412; }
[data-theme="dark"] .act-outcome.is-empty { border-color: rgba(251, 146, 60, .45); background: rgba(251, 146, 60, .12); color: #fdba74; }
.act-link { display: inline-flex; align-items: center; gap: 6px; padding: 2px 4px; border: 0; border-radius: 4px; background: none; color: var(--brand); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.act-link:hover { text-decoration: underline; }
.act-person small { color: var(--text-muted); }
.act-body { display: flex; flex-direction: column; gap: 16px; padding: 20px 28px 28px; }
.act-banner { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 14px 16px; border: 1px solid #9ed2f0; border-radius: var(--radius, 10px); background: #e7f5fd; color: var(--text); }
[data-theme="dark"] .act-banner { border-color: rgba(96, 165, 250, .4); background: rgba(96, 165, 250, .1); }
.act-banner strong { display: block; margin-bottom: 4px; font-size: 15px; }
.act-banner p { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 0; font-size: 14px; }
.act-banner__btn { white-space: nowrap; flex: none; display: inline-flex; align-items: center; gap: 4px; height: 28px; padding: 0 12px; border: 1px solid var(--border-strong); border-radius: 6px; background: var(--surface); color: var(--text); font-size: 13px; font-weight: 600; text-decoration: none; }
.act-banner__btn:hover { background: var(--surface-hover); }
.act-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.act-card { display: flex; flex-direction: column; gap: 14px; min-height: 260px; padding: 20px 24px; border: 1px solid var(--border); border-radius: var(--radius, 10px); background: var(--surface); }
.act-card h2 { margin: 0; font-size: 18px; font-weight: 600; }
.act-note { display: flex; flex-direction: column; gap: 12px; }
.act-av { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--surface-2); color: var(--text-muted); font-size: 12px; font-weight: 700; }
.act-note__text { min-height: 120px; padding: 8px 10px; border: 1px solid transparent; border-radius: 6px; font-size: 14px; line-height: 1.55; white-space: pre-wrap; }
.act-note__text:hover { border-color: var(--border); }
.act-note__text:focus { outline: 0; border-color: var(--brand); box-shadow: var(--focus-ring); }
.act-note__text:empty::before { content: attr(data-placeholder); color: var(--text-subtle); }
.act-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 0; text-align: center; }
.act-empty p { max-width: 320px; margin: 0; color: var(--text-muted); font-size: 14px; }
.act-dl { display: flex; flex-direction: column; gap: 12px; margin: 0; }
.act-dl div { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 12px; font-size: 14px; }
.act-dl dt { color: var(--text-muted); }
.act-dl dd { margin: 0; font-weight: 600; }
.act-side__foot { display: flex; justify-content: center; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--border); }
/* All associations panel */
.act-ov { position: fixed; inset: 0; z-index: 1200; background: rgba(16, 24, 40, .3); opacity: 0; transition: opacity .18s; }
.act-ov.is-open { opacity: 1; }
.act-panel { position: fixed; top: 0; right: 0; bottom: 0; z-index: 1201; display: flex; flex-direction: column; width: min(440px, 100vw); background: var(--surface); color: var(--text); box-shadow: -12px 0 32px rgba(16, 24, 40, .18); transform: translateX(100%); transition: transform .18s; }
.act-panel.is-open { transform: none; }
.act-panel[hidden], .act-ov[hidden] { display: none; }
.act-panel__head { display: flex; align-items: center; justify-content: space-between; min-height: 60px; padding: 10px 16px 10px 24px; border-bottom: 1px solid var(--border); }
.act-panel__head h2 { margin: 0; font-size: 20px; font-weight: 600; }
.act-panel__body { display: flex; flex-direction: column; gap: 18px; padding: 20px 24px; overflow-y: auto; }
.act-assoc h3 { margin: 0 0 8px; font-size: 15px; font-weight: 700; }
.act-assoc ul { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.act-assoc a { color: var(--brand); font-weight: 600; text-decoration: none; }
.act-assoc a:hover { text-decoration: underline; }
.act-assoc p { margin: 0; color: var(--text-muted); font-size: 14px; }
@media (max-width: 900px) { .act-grid { grid-template-columns: 1fr; } .act-head, .act-body { padding-left: 16px; padding-right: 16px; } .act-dl div { grid-template-columns: 1fr; gap: 2px; } }

/* ---- All associations + Participants panels (reference layout) */
.act, .act-panel { --act-art-1: var(--brand); --act-art-2: #0f766e; --act-art-3: #7c3aed; }
.act-i { width: 16px; height: 16px; flex: none; }
.act-i--xs { width: 13px; height: 13px; vertical-align: -2px; }
.act-tri { width: 9px; height: 6px; flex: none; }
.act-panel { width: min(570px, 100vw); }
.act-panel__head h2 { font-size: 22px; }
.act-panel__body--assoc { gap: 0; padding: 0; }
.act-panel__body--add { gap: 18px; padding: 8px 40px 20px; }
.act-panel__foot { display: flex; gap: 10px; padding: 16px 40px; border-top: 1px solid var(--border); }
.act-panel__foot[hidden] { display: none; }
.act-panel__foot .btn-crm:disabled { opacity: .5; cursor: not-allowed; }
.act-asec { padding: 14px 24px 18px 16px; border-bottom: 1px solid var(--border); }
.act-asec__h { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.act-asec__t { display: inline-flex; align-items: center; gap: 10px; padding: 4px; border: 0; border-radius: 6px; background: none; color: var(--text); font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }
.act-asec__t .act-chev { transform: rotate(-90deg); transition: transform .15s; }
.act-asec.is-open .act-chev { transform: none; }
.act-add { display: inline-flex; align-items: center; gap: 6px; padding: 4px 6px; border: 0; border-radius: 6px; background: none; color: var(--text); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.act-add:hover, .act-asec__t:hover { background: var(--surface-hover); }
.act-asec__b { display: flex; flex-direction: column; gap: 12px; padding: 12px 0 0 20px; }
.act-aempty { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 6px 0; text-align: center; }
.act-aempty p { margin: 0; color: var(--text); font-size: 14.5px; }
.act-art { width: 110px; height: auto; }
.act-acard { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 14px 40px 14px 14px; border: 1px solid var(--border-strong); border-radius: 10px; background: var(--surface); font-size: 14.5px; }
.act-acard p { display: flex; align-items: center; flex-wrap: wrap; gap: 2px 6px; margin: 0; color: var(--text-muted); }
.act-acard p a { display: inline-flex; align-items: center; gap: 4px; }
.act-art rect { vector-effect: non-scaling-stroke; }
.act-acard__h { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.act-acard__n { color: var(--brand); font-weight: 700; font-size: 15px; text-decoration: none; }
a.act-acard__n:hover { text-decoration: underline; }
.act-strong { color: var(--text); font-weight: 600; text-decoration: none; }
a.act-strong, .act-strong--link { color: var(--brand); }
a.act-strong:hover { text-decoration: underline; }
.act-icon--sm { width: 24px; height: 24px; vertical-align: middle; }
.act-acard__x { position: absolute; top: 10px; right: 10px; display: grid; place-items: center; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 6px; background: none; color: var(--text-muted); opacity: 0; cursor: pointer; }
.act-acard:hover .act-acard__x, .act-acard__x:focus-visible { opacity: 1; }
.act-acard__x:hover { background: var(--surface-hover); color: var(--text); }
.act-logo { display: inline-grid; place-items: center; width: 26px; height: 26px; flex: none; border-radius: 6px; background: var(--surface-2); color: var(--text); font-size: 11px; font-weight: 800; }
.act-logo--round { border-radius: 50%; color: var(--text-muted); }
.act-av--sm { width: 26px; height: 26px; font-size: 10.5px; }
.act-stage { display: inline-flex; align-items: center; gap: 6px; padding: 0 2px; border: 0; border-radius: 4px; background: none; color: var(--text); font: inherit; font-weight: 700; cursor: pointer; }
.act-stage:hover { background: var(--surface-hover); }
.act-viewall { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; color: var(--brand); font-size: 14.5px; font-weight: 700; text-decoration: none; }
.act-viewall:hover { text-decoration: underline; }
.act-tabs { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--border); }
.act-tabs button { padding: 12px 8px; border: 0; border-bottom: 3px solid transparent; background: none; color: var(--text); font: inherit; font-size: 15px; cursor: pointer; }
.act-tabs button[aria-selected="true"] { border-bottom-color: var(--text); font-weight: 600; }
.act-search { position: relative; display: block; }
.act-search input { width: 100%; height: 42px; padding: 0 44px 0 16px; border: 1px solid var(--border-strong); border-radius: 8px; background: var(--surface); color: var(--text); font: inherit; font-size: 15px; }
.act-search input:focus { outline: 0; border-color: var(--brand); box-shadow: var(--focus-ring); }
.act-search .act-i { position: absolute; top: 13px; right: 16px; color: var(--text-muted); pointer-events: none; }
.act-exbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 14.5px; }
.act-sortbtn { display: inline-flex; align-items: center; gap: 8px; padding: 4px 6px; border: 0; border-radius: 6px; background: none; color: var(--text); font: inherit; font-size: 14.5px; font-weight: 600; cursor: pointer; }
.act-sortbtn:hover { background: var(--surface-hover); }
.act-exlist { display: flex; flex-direction: column; gap: 2px; }
.act-exrow { display: flex; align-items: flex-start; gap: 12px; padding: 7px 8px; border-radius: 6px; font-size: 15px; cursor: pointer; }
.act-exrow:hover { background: var(--surface-hover); }
.act-exrow.is-on { color: var(--text-muted); cursor: default; }
.act-cb { width: 18px; height: 18px; flex: none; margin: 2px 0 0; accent-color: var(--brand); }
.act-exnone { margin: 8px 0; color: var(--text-muted); }
.act-form { display: flex; flex-direction: column; gap: 16px; }
.act-field { display: flex; flex-direction: column; gap: 6px; font-size: 14.5px; font-weight: 600; }
.act-field input { height: 42px; padding: 0 12px; border: 1px solid var(--border-strong); border-radius: 8px; background: var(--surface); color: var(--text); font: inherit; font-weight: 400; }
.act-field input:focus { outline: 0; border-color: var(--brand); box-shadow: var(--focus-ring); }
.act-field.is-locked { opacity: .45; }
.act-form__hint { margin: -8px 0 0; color: var(--text-muted); font-size: 14px; text-align: center; }
.act-form__hint[hidden] { display: none; }
.act-menu { position: fixed; z-index: 1300; display: flex; flex-direction: column; min-width: 190px; max-height: 320px; padding: 6px 0; overflow-y: auto; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); box-shadow: 0 14px 36px rgba(16, 24, 40, .18); }
.act-menu button { padding: 9px 16px; border: 0; background: none; color: var(--text); font: inherit; font-size: 14.5px; text-align: left; cursor: pointer; }
.act-menu button:hover, .act-menu button:focus-visible { outline: 0; background: var(--surface-hover); }
.act-panel--people { z-index: 1202; width: min(380px, 100vw); }
.act-psec h3 { margin: 0 0 12px; font-size: 16px; font-weight: 700; }
.act-psec + .act-psec { margin-top: 8px; }
.act-person2 { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.act-person2 > div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.act-person2__n, .act-person2__e { display: inline-flex; align-items: center; gap: 6px; color: var(--brand); font-weight: 700; text-decoration: none; overflow-wrap: anywhere; }
.act-person2__n:hover, .act-person2__e:hover { text-decoration: underline; }
@media (max-width: 600px) { .act-panel__body--add, .act-panel__foot { padding-left: 20px; padding-right: 20px; } .act-panel__foot { flex-wrap: wrap; } }

/* ---- Meeting record (Prep / Review) */
.act-sub--mtg { color: var(--text); }
.act-sub--mtg strong { font-weight: 600; }
.act-mtype { display: inline-flex; align-items: center; gap: 8px; height: 28px; padding: 0 6px; border: 0; border-radius: 6px; background: none; color: var(--text); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.act-mtype:hover { background: var(--surface-hover); }
.act-join { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 20px; }
.dropdown__item.is-current { color: var(--text-muted); }
.act-tabs2 { display: flex; gap: 8px; margin: 14px 0 -16px; }
.act-tabs2 button { position: relative; min-width: 88px; padding: 10px 12px 12px; border: 0; border-bottom: 3px solid transparent; background: none; color: var(--text-muted); font: inherit; font-size: 15px; cursor: pointer; }
.act-tabs2 button[aria-selected="true"] { border-bottom-color: var(--text); color: var(--text); font-weight: 600; }
.act-tabs2 button[aria-disabled="true"] { cursor: not-allowed; }
.act-tipw { position: relative; display: inline-flex; }
.act-tip { position: absolute; bottom: calc(100% + 8px); left: 50%; z-index: 20; width: 240px; padding: 10px 14px; border-radius: 8px; background: #1d2939; color: #fff; font-size: 13.5px; font-weight: 500; line-height: 1.45; opacity: 0; pointer-events: none; transform: translateX(-50%); transition: opacity .12s; }
.act-tip::after { content: ""; position: absolute; top: 100%; left: 50%; border: 6px solid transparent; border-top-color: #1d2939; transform: translateX(-50%); }
.act-tipw:hover .act-tip, .act-tipw:focus-within .act-tip, .act-tip.is-show { opacity: 1; }
.act-pane[hidden] { display: none; }
.act-prep { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr); gap: 32px; align-items: start; }
.act-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.act-card--auto { min-height: 0; }
.act-card__h { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.act-mdet { gap: 16px; }
.act-mf { display: flex; flex-direction: column; gap: 6px; }
.act-ml { font-size: 14.5px; font-weight: 500; }
.act-mtitle { display: flex; align-items: center; gap: 8px; padding-left: 6px; font-size: 14.5px; }
.act-desc { padding: 0 6px; font-size: 14.5px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.act-desc.is-clamped { max-height: 9.2em; overflow: hidden; }
.act-more { align-self: flex-start; padding: 2px 0; border: 0; background: none; color: var(--text); font: inherit; font-size: 14.5px; font-weight: 700; cursor: pointer; }
.act-more:hover { text-decoration: underline; }
.act-hr { width: 100%; margin: 4px 0; border: 0; border-top: 1px solid var(--border); }
.act-when { display: flex; flex-wrap: wrap; gap: 12px 10px; }
.act-wf { display: flex; flex-direction: column; gap: 6px; font-size: 14.5px; font-weight: 500; }
.act-wf:last-child { flex-basis: 100%; }
.act-inp { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 8px; border: 1px solid var(--text-muted); border-radius: 6px; background: var(--surface); color: var(--text-muted); }
.act-inp input { width: 110px; border: 0; background: none; color: var(--text); font: inherit; font-size: 14px; }
.act-inp input:focus { outline: 0; }
.act-inp:focus-within { border-color: var(--brand); box-shadow: var(--focus-ring); }
.act-att__h { display: flex; align-items: center; gap: 8px; }
.act-attbtn { display: inline-flex; align-items: center; gap: 6px; padding: 2px 4px; border: 0; border-radius: 4px; background: none; color: var(--text); font: inherit; font-size: 14.5px; font-weight: 700; cursor: pointer; }
.act-attbtn:hover { background: var(--surface-hover); }
.act-attlist { display: flex; flex-direction: column; gap: 16px; }
.act-att { display: flex; align-items: flex-start; gap: 12px; }
.act-att p { margin: 0 0 4px; font-size: 14.5px; }
.act-att__n { display: flex; align-items: center; gap: 8px; }
.act-att__n a, .act-att p a { color: var(--brand); font-weight: 700; text-decoration: none; }
.act-att p a { display: inline-flex; align-items: center; gap: 4px; }
.act-att a:hover { text-decoration: underline; }
.act-logo--sm { width: 24px; height: 24px; margin-top: 1px; font-size: 9.5px; }
.act-st { width: 16px; height: 16px; flex: none; }
.act-st--ok { color: #12b76a; }
.act-st--q { color: #344054; }
.act-attpop { position: fixed; z-index: 1300; display: flex; flex-direction: column; gap: 8px; width: 300px; max-height: 360px; padding: 12px 0 6px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); box-shadow: 0 14px 36px rgba(16, 24, 40, .2); }
.act-attpop .act-search { margin: 0 12px; }
.act-attpop .act-search input { height: 38px; font-size: 14px; }
.act-attpop .act-search .act-i { top: 11px; }
.act-attpop__list { overflow-y: auto; }
.act-attpop__g { margin: 6px 0 2px; padding: 0 20px; font-size: 14.5px; font-weight: 700; }
.act-attpop__row { display: flex; align-items: flex-start; gap: 12px; padding: 8px 20px; cursor: pointer; }
.act-attpop__row:hover { background: var(--surface-hover); }
.act-attpop__row.is-host { cursor: default; color: var(--text-muted); }
.act-attpop__row span { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.act-attpop__row b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.act-attpop__row small { color: var(--text-muted); font-size: 12.5px; }
.act-note__text--in { min-height: 40px; }
.act-note__text--ro { white-space: pre-wrap; }
.act-ai { display: inline-flex; align-items: center; gap: 3px; padding: 2px 7px; border-radius: 6px; background: linear-gradient(90deg, #e11d48, #f97316); color: #fff; font-size: 11.5px; font-weight: 700; }
.act-ai svg { width: 11px; height: 11px; }
.act-meta { margin: 0; font-size: 14.5px; line-height: 1.5; }
.act-meta .act-icon--sm { width: 22px; height: 22px; vertical-align: middle; }
.act-ra { display: flex; flex-direction: column; gap: 14px; margin: 4px 0 0; padding: 0; list-style: none; }
.act-ra p { margin: 0; font-size: 14.5px; line-height: 1.55; }
.act-ra__t { color: var(--brand); font-weight: 600; text-decoration: none; }
.act-fb { display: flex; gap: 6px; }
.act-disc { margin: 0; color: var(--text); font-size: 14.5px; }
.act-sugg { position: relative; display: flex; flex-direction: row; align-items: center; gap: 16px; }
.act-sugg__txt { display: flex; flex: 1; flex-direction: column; align-items: flex-start; gap: 10px; }
.act-sugg__txt h2 { margin: 6px 0 0; font-size: 20px; }
.act-sugg__txt p { margin: 0; font-size: 14.5px; line-height: 1.55; }
.act-pill { display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px; border-radius: 6px; background: var(--surface-2); font-size: 13.5px; font-weight: 500; }
.act-sugg__btn { height: 34px; padding: 0 16px; }
.act-sugg__art { width: 130px; height: auto; flex: none; }
.act-sugg__x { position: absolute; top: 8px; right: 8px; }
.act-db__deal { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 14.5px; }
.act-db { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 16px; }
.act-db__score { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; font-size: 13.5px; color: var(--text-muted); }
.act-ring { --p: 56; display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: conic-gradient(#f5b70a calc(var(--p) * 1%), var(--border) 0); }
.act-ring b { display: grid; place-items: center; width: 70px; height: 70px; border-radius: 50%; background: var(--surface); color: var(--text); font-size: 30px; font-weight: 700; }
.act-db__delta { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; color: #d92d20; font-weight: 600; }
.act-db__txt h3 { margin: 0 0 6px; font-size: 14.5px; }
.act-db__txt ul { margin: 0 0 14px; padding-left: 20px; font-size: 14.5px; line-height: 1.55; }
.act-cite { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 6px; background: var(--surface-2); color: var(--text-muted); font-size: 12px; font-weight: 600; vertical-align: 1px; }
.act-link--tight { padding: 0; font-weight: 700; }
.act-src { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; height: 34px; padding: 0 12px 0 6px; border: 1px solid var(--border-strong); border-radius: 999px; background: var(--surface); color: var(--text); font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; }
.act-src__ic { display: inline-grid; place-items: center; width: 24px; height: 24px; border: 1px solid var(--border); border-radius: 50%; color: var(--text-muted); }
.act-pain { display: flex; flex-direction: column; gap: 10px; }
.act-pain__h { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 0; font-size: 14.5px; }
.act-pain__tip { display: flex; gap: 6px; margin: 0; padding: 14px 16px; border-radius: 6px; background: var(--surface-2); font-size: 14.5px; line-height: 1.5; }
.act-wv { margin: 0; font-size: 14.5px; }
@media (max-width: 1100px) { .act-prep { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 600px) { .act-sugg { flex-direction: column; align-items: flex-start; } .act-db { grid-template-columns: minmax(0, 1fr); } }
.act-inp { position: relative; }
.act-inp input::-webkit-calendar-picker-indicator { position: absolute; inset: 0; width: auto; height: auto; opacity: 0; cursor: pointer; }
.act-wf .act-inp { align-self: flex-start; }
.act-db__txt ul { list-style: disc outside; } .act-db__txt li { display: list-item; }

/* ---- Outcome / stage chip + popover (reference CRM: dashed chip when empty, centered menu with pointer) */
.act-oc { position: relative; display: inline-flex; }
.act-outcome { gap: 6px; height: 26px; padding: 0 8px; border-radius: 4px; font-size: 14.5px; font-weight: 700; }
.act-outcome .act-oc__ic { width: 14px; height: 14px; flex: none; }
.act-outcome .act-tri { width: 9px; height: 6px; flex: none; }
.act-outcome.is-empty { border: 1px dashed #e8603c; background: #fde5dc; color: var(--text); }
[data-theme="dark"] .act-outcome.is-empty { border-color: rgba(232, 96, 60, .8); background: rgba(232, 96, 60, .14); color: var(--text); }
.act-oc__menu { position: absolute; top: calc(100% + 12px); left: 50%; z-index: 60; display: flex; flex-direction: column; min-width: 152px; padding: 8px 0; border: 1px solid var(--border-strong); border-radius: 12px; background: var(--surface); box-shadow: 0 6px 20px rgba(16, 24, 40, .12); transform: translateX(-50%); }
.act-oc__menu[hidden] { display: none; }
.act-oc__menu::before, .act-oc__menu::after { content: ""; position: absolute; left: 50%; width: 0; height: 0; border: 10px solid transparent; border-top: 0; transform: translateX(-50%); }
.act-oc__menu::before { bottom: 100%; border-bottom-color: var(--border-strong); }
.act-oc__menu::after { bottom: calc(100% - 1.5px); border-bottom-color: var(--surface); }
.act-oc__item { display: block; width: 100%; padding: 10px 20px; border: 0; background: none; color: var(--text); font: inherit; font-size: 14.5px; text-align: left; white-space: nowrap; cursor: pointer; }
.act-oc__item:hover, .act-oc__item:focus-visible { outline: 0; background: var(--surface-hover); }
.act-oc__item[aria-checked="true"] { background: var(--surface-2); font-weight: 600; }

/* ---- All comments side panel */
.act-panel--comments { z-index: 1202; width: min(380px, 100vw); border-left: 1px solid var(--border); box-shadow: -8px 0 24px rgba(16, 24, 40, .1); }
.act-panel--comments .act-panel__head { padding-left: 40px; }
.act-com { gap: 0; padding: 24px 28px 32px; }
.act-com__new { display: flex; align-items: flex-start; gap: 12px; }
.act-com__new > .act-av { margin-top: 0; }
.act-com__box { flex: 1; min-width: 0; }
.act-com__ph { display: block; width: 100%; height: 42px; padding: 0 12px; overflow: hidden; border: 1px solid var(--border-strong); border-radius: 4px; background: var(--surface); color: var(--text-muted); font: inherit; font-size: 14.5px; text-align: left; text-overflow: ellipsis; white-space: nowrap; cursor: text; }
.act-com__ph[hidden], .act-com__editor[hidden], .act-com__acts[hidden], .act-com__mention[hidden], .act-com__moremenu[hidden], .act-com__empty[hidden] { display: none; }
.act-com__editor { position: relative; border: 1px solid var(--text); border-radius: 4px; background: var(--surface); }
.act-com__editor:focus-within { box-shadow: 0 0 0 1px var(--text); }
.act-com__text { min-height: 88px; max-height: 260px; padding: 12px 18px 6px; overflow-y: auto; color: var(--text); font-size: 14.5px; line-height: 1.5; outline: 0; overflow-wrap: anywhere; }
.act-com__text:empty::before { content: attr(data-placeholder); color: var(--text-muted); pointer-events: none; }
.act-com__text img, .act-com__body img { max-width: 100%; border-radius: 4px; }
.act-com__tools { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 4px; padding: 6px 28px 8px; }
.act-com__tools button { display: inline-flex; align-items: center; gap: 4px; min-width: 26px; height: 26px; padding: 0 4px; border: 0; border-radius: 4px; background: none; color: var(--text); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.act-com__tools button:hover { background: var(--surface-hover); }
.act-com__tools svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.act-com__tools .act-tri { width: 8px; height: 5px; }
.act-com__sep { width: 1px; height: 18px; margin: 0 2px; background: var(--border); }
.act-com__more { position: relative; display: inline-flex; }
.act-com__moremenu { position: absolute; top: calc(100% + 4px); left: 0; z-index: 5; display: flex; flex-direction: column; min-width: 160px; padding: 6px 0; border: 1px solid var(--border-strong); border-radius: 8px; background: var(--surface); box-shadow: var(--shadow-lg); }
.act-com__moremenu button { justify-content: flex-start; width: 100%; height: auto; padding: 8px 14px; border-radius: 0; font-weight: 400; text-align: left; }
.act-com__mention { position: absolute; top: 100%; left: 12px; z-index: 6; display: flex; flex-direction: column; min-width: 220px; margin-top: 4px; padding: 6px 0; border: 1px solid var(--border-strong); border-radius: 8px; background: var(--surface); box-shadow: var(--shadow-lg); }
.act-com__mention button { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border: 0; background: none; color: var(--text); font: inherit; font-size: 14px; text-align: left; cursor: pointer; }
.act-com__mention button[aria-selected="true"], .act-com__mention button:hover { background: var(--surface-hover); }
.act-com__at { color: var(--brand); font-weight: 600; }
.act-com__acts { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.act-com__acts .btn-crm:disabled { opacity: .45; cursor: not-allowed; }
.act-com__cancel { padding: 6px 8px; border: 0; border-radius: 4px; background: none; color: var(--text); font: inherit; font-size: 14.5px; cursor: pointer; }
.act-com__cancel:hover { background: var(--surface-hover); }
.act-com__list { display: flex; flex-direction: column; gap: 18px; margin: 22px 0 0; padding: 0; list-style: none; }
.act-com__list:empty { display: none; }
.act-com__item { display: flex; gap: 12px; }
.act-com__main { flex: 1; min-width: 0; }
.act-com__meta { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; font-size: 14px; }
.act-com__meta time { color: var(--text-muted); font-size: 12.5px; }
.act-com__body { margin-top: 4px; font-size: 14.5px; line-height: 1.5; overflow-wrap: anywhere; }
.act-com__body a { color: var(--brand); }
.act-com__del { margin-top: 4px; padding: 2px 0; border: 0; background: none; color: var(--text-muted); font: inherit; font-size: 12.5px; cursor: pointer; }
.act-com__del:hover { color: var(--danger, #d92d20); text-decoration: underline; }
.act-com__empty { display: flex; flex-direction: column; align-items: center; margin-top: 12px; text-align: center; }
.act-com__art { width: 112px; height: 104px; margin-left: 14px; }
.act-com__empty h3 { margin: 22px 0 10px; font-size: 20px; font-weight: 600; }
.act-com__empty p { max-width: 260px; margin: 0; font-size: 14.5px; line-height: 1.65; }
.act-panel--comments :is(button, [contenteditable]):focus-visible { outline: 0; box-shadow: var(--focus-ring); }
@media (max-width: 600px) { .act-panel--comments .act-panel__head { padding-left: 20px; } .act-com { padding: 20px 16px; } }
.act-panel--comments .act-com__text:focus-visible { box-shadow: none; }

/* ---- Call outcome chip keeps the dashed look when set (reference CRM) */
.act-outcome.act-outcome--call { border: 1px dashed #e8603c; background: #fde5dc; color: var(--text); }
[data-theme="dark"] .act-outcome.act-outcome--call { border-color: rgba(232, 96, 60, .8); background: rgba(232, 96, 60, .14); }

/* ---- Notes: borderless editor + floating toolbar (reference CRM) */
.act-note__text { min-height: 0; padding: 4px 0; border: 0; border-radius: 0; font-size: 15px; }
.act-note__text:hover { border-color: transparent; }
.act-note__text:focus { border-color: transparent; box-shadow: none; }
.act-note__text blockquote { margin: 4px 0; padding-left: 12px; border-left: 3px solid var(--border-strong); color: var(--text-muted); }
.act-note__text ul, .act-note__text ol { margin: 4px 0; padding-left: 24px; white-space: normal; }
.act-note__text img { max-width: 100%; border-radius: 4px; }
.act-note__text a { color: var(--brand); }
.act-ntb-wrap { position: relative; display: flex; justify-content: center; margin: 22px 0 8px; }
.act-ntb-wrap[hidden] { display: none; }
.act-ntb { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 6px; background: #efefef; }
[data-theme="dark"] .act-ntb { background: var(--surface-2); }
.act-ntb button, .act-npop > button, .act-nsel > button { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-width: 28px; height: 30px; padding: 0 4px; border: 0; border-radius: 4px; background: none; color: var(--text); font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }
.act-ntb button:hover, .act-npop > button:hover, .act-nsel > button:hover, .act-ntb button.is-on { background: rgba(0, 0, 0, .07); }
[data-theme="dark"] .act-ntb button:hover, [data-theme="dark"] .act-ntb button.is-on { background: rgba(255, 255, 255, .08); }
.act-ntb svg, .act-npop svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.act-ntb .act-tri, .act-npop .act-tri { width: 9px; height: 6px; stroke: none; }
.act-ntb__sep { width: 1px; height: 24px; margin: 0 2px; background: #d6d6d6; }
.act-ntb :is(button, input):focus-visible, .act-npop :is(button, input):focus-visible { outline: 0; box-shadow: var(--focus-ring); }
.act-npop { --act-np-arrow: 50%; position: absolute; bottom: calc(100% + 12px); left: 0; z-index: 40; display: flex; align-items: center; gap: 6px; padding: 10px 14px; border: 1px solid var(--border-strong); border-radius: 12px; background: var(--surface); box-shadow: 0 6px 20px rgba(16, 24, 40, .12); white-space: nowrap; }
.act-npop[hidden] { display: none; }
.act-npop::before, .act-npop::after { content: ""; position: absolute; left: var(--act-np-arrow); border: 10px solid transparent; border-bottom: 0; transform: translateX(-50%); }
.act-npop::before { top: 100%; border-top-color: var(--border-strong); }
.act-npop::after { top: calc(100% - 1.5px); border-top-color: var(--surface); }
.act-npop > button, .act-nsel > button { font-size: 14.5px; font-weight: 600; }
.act-nsel { position: relative; display: inline-flex; }
.act-nsel [data-nfont-l] { min-width: 76px; text-align: left; }
.act-nsub { position: absolute; top: calc(100% - 6px); z-index: 41; display: flex; flex-direction: column; min-width: 150px; max-height: 260px; overflow-y: auto; padding: 6px 0; border: 1px solid var(--border-strong); border-radius: 8px; background: var(--surface); box-shadow: var(--shadow-lg); }
.act-nsub[hidden] { display: none; }
.act-nsub > button { padding: 8px 14px; border: 0; background: none; color: var(--text); font: inherit; font-size: 14px; text-align: left; cursor: pointer; }
.act-nsub > button:hover, .act-nsub > button:focus-visible { outline: 0; background: var(--surface-hover); }
.act-nsub--sw { min-width: 0; padding: 10px; }
.act-nsw { display: grid; grid-template-columns: repeat(6, 22px); gap: 6px; }
.act-nsw button { width: 22px; height: 22px; padding: 0; border: 1px solid var(--border-strong); border-radius: 4px; cursor: pointer; }
.act-nsw button:focus-visible { outline: 0; box-shadow: var(--focus-ring); }
.act-nsub .act-nsub__plain { margin-top: 8px; padding: 6px 4px; border-radius: 4px; }
.act-npop--link { flex-direction: column; align-items: stretch; gap: 10px; width: 280px; white-space: normal; }
.act-nlink { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; }
.act-nlink input { height: 34px; padding: 0 10px; border: 1px solid var(--border-strong); border-radius: 4px; background: var(--surface); color: var(--text); font: inherit; font-size: 14px; font-weight: 400; }
.act-nlink__acts { display: flex; gap: 8px; }
.act-note > .act-av { width: 32px; height: 32px; background: #eaeaea; color: var(--text); font-size: 13.5px; font-weight: 500; }
[data-theme="dark"] .act-note > .act-av { background: var(--surface-2); }
/* lists in notes / comments: the global reset removes markers, put them back */
.act-note__text ul, .act-com__text ul, .act-com__body ul { list-style: disc outside; }
.act-note__text ol, .act-com__text ol, .act-com__body ol { list-style: decimal outside; }
.act-note__text ul ul, .act-com__text ul ul, .act-com__body ul ul { list-style-type: circle; }
.act-note__text li, .act-com__text li, .act-com__body li { display: list-item; margin: 2px 0; }
.act-com__text ul, .act-com__text ol, .act-com__body ul, .act-com__body ol { margin: 4px 0; padding-left: 24px; }
/* meeting type: plain bold trigger + same centered popover as the outcome menu */
.act-mtype { gap: 10px; height: 30px; padding: 0 8px; font-size: 15px; font-weight: 700; }
.act-mtype:hover, .act-mtype[aria-expanded="true"] { background: none; color: var(--text); }
.act-mtype .act-tri { width: 9px; height: 6px; }
.act-mtype:focus-visible { outline: 0; box-shadow: var(--focus-ring); }
.act-oc__menu--mt { min-width: 200px; padding: 16px 0; }
.act-oc__menu--mt .act-oc__item { padding: 10px 16px; font-size: 15px; }
.act-oc__menu--mt .act-oc__item:hover, .act-oc__menu--mt .act-oc__item:focus-visible { background: #efefef; }
.act-oc__menu--mt .act-oc__item[aria-checked="true"] { font-weight: 400; background: #efefef; }
[data-theme="dark"] .act-oc__menu--mt .act-oc__item:hover, [data-theme="dark"] .act-oc__menu--mt .act-oc__item[aria-checked="true"] { background: var(--surface-hover); }

/* ---- Meeting Review: "This meeting doesn't have a recap" card (HubSpot parity) */
.act-recap .act-empty { align-items: center; text-align: center; }
.act-recap__list { display: flex; flex-direction: column; gap: 10px; margin: 6px 0 14px; padding: 0; list-style: none; text-align: left; font-size: 14.5px; line-height: 1.45; }
.act-recap__list li { position: relative; padding-left: 26px; }
.act-recap__list li::before { content: "\2192"; position: absolute; left: 0; top: 0; color: var(--text-muted); }
.act-recap .btn-crm { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; }
.act-pane > .act-grid, .act-pane > .act-prep { margin-top: 0; }
.act-mdet .act-mf .act-attbtn { align-self: flex-start; }
.act-note__text--ro:empty::before { content: attr(data-placeholder); color: var(--text-subtle); }

/* TK3c (not in the design): files attached to a comment, in the box and under a comment. */
.act-com__files { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 0; padding: 0; list-style: none; font-size: 13px; }
.act-com__files li { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 2px 8px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface); }
.act-com__files li > span, .act-com__files .act-link { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.act-com__files li > button:not(.act-link) { border: 0; background: none; color: var(--text-muted); cursor: pointer; font-size: 15px; line-height: 1; }
