#lifelineWorkspace { min-width: 0; color: var(--ink, #25313d); }
#appShell.lf-immersive { grid-template-columns: minmax(0,1fr); }
#appShell.lf-immersive > .app-sidebar, #appShell.lf-immersive + .mobile-bottom-nav,
#lifelineImmersive[hidden] { display: none; }
#appShell.lf-immersive > .app-stage { grid-column: 1; }
#appShell.lf-immersive .app-content { width: 100%; max-width: none; }
#lifelineImmersive {
  align-self: stretch;
  height: auto;
  border-color: var(--blue-dark, #ad5122);
  background: var(--blue-dark, #ad5122);
  color: #fff;
  white-space: nowrap;
}
#lifelineImmersive:hover, #lifelineImmersive:active { background: #91431b; border-color: #91431b; }
#lifelineImmersive:focus-visible { outline: 2px solid #91431b; outline-offset: 3px; }
@media (max-width: 650px) {
  .app-topbar:has(#lifelineImmersive:not([hidden])) .topbar-heading { min-width: 0; }
}
.lf-export-actions { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.lf-export-actions[hidden] { display: none; }
.lf-export-actions button { border: 1px solid var(--line); border-radius: 8px; background: var(--panel, white); padding: 7px 12px; color: inherit; font: inherit; font-weight: 600; cursor: pointer; }
.lf-export-actions button:disabled { opacity: .5; cursor: default; }
.lifeline-filters { margin-top: 20px; flex-wrap: wrap; }
@media (max-width: 767px) {
  #lifelineWorkspace .lifeline-filters { display: grid; grid-template-columns: minmax(0, 1fr); }
  #lifelineWorkspace .lifeline-filters .compact-field { min-width: 0; }
  #lifelineWorkspace .lifeline-filters .custom-date-range[hidden] { display: none; }
}
.lifeline-personnel-panel { min-width: 0; }
.lifeline-filters + .lifeline-personnel-panel { margin-top: 14px; }
#lifelinePersonnelPanel[hidden], #lifelineAdvisorPanel[hidden] { display: none; }
.lifeline-advisor-panel { min-width: 0; overflow: hidden; }
.lifeline-advisor-panel .panel-heading { flex-wrap: wrap; }
#lifelineAdvisorBack { background: var(--blue-soft, #fbeee7); color: var(--blue-dark, #ad5122); }
#lifelineAdvisorBack:hover { border-color: var(--blue, #c8642d); }
.lifeline-detail-bar, .lifeline-detail-pagination {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 8px 18px; padding: 10px 17px;
  color: var(--muted); font-size: 12px; line-height: 1.6;
}
.lifeline-detail-bar { border-bottom: 1px solid var(--line-soft); }
.lifeline-detail-bar p { margin: 0; font-variant-numeric: tabular-nums; }
#lifelineCompletedOverdue { margin: 12px 16px; }
#lifelineCompletedOverdue summary { cursor: pointer; color: #346952; font-weight: 600; }
#lifelineCompletedOverdue[open] summary { margin-bottom: 8px; }
.lifeline-detail-legend {
  display: flex; align-items: center; gap: 14px;
}
.lifeline-detail-legend span { display: inline-flex; gap: 5px; align-items: center; white-space: nowrap; }
.lifeline-detail-legend span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--mark); }
.lf-done { --mark: #508863; }
.lf-pending { --mark: #c97466; }
.lf-overdue { --mark: #89939d; }
#lifelineAdvisorTable { max-width: 100%; overflow-x: auto; }
#lifelineAdvisorTable table { width: 100%; min-width: 1240px; table-layout: auto; border-spacing: 0; }
#lifelineAdvisorTable :is(th, td) {
  box-sizing: border-box; text-align: left; font: inherit; font-size: 12px;
  padding: 9px 8px; white-space: normal; overflow-wrap: anywhere; line-height: 1.55;
}
#lifelineAdvisorTable thead th { font-weight: 650; white-space: nowrap; overflow-wrap: normal; }
#lifelineAdvisorTable tr > :first-child { padding-left: 17px; }
#lifelineAdvisorTable .lifeline-reviewed { --row-fill: #e8f5e9; --status-text: #396a4b; }
#lifelineAdvisorTable .lifeline-unreviewed { --row-fill: #fff0ee; --status-text: #96483c; }
#lifelineAdvisorTable .lifeline-overdue { --row-fill: #eff1f3; --status-text: #53616d; }
#lifelineAdvisorTable tr[class] td { background: var(--row-fill); vertical-align: top; }
#lifelineAdvisorTable .lifeline-overdue-heading th { background: #e3e7eb; color: #485764; font-weight: 650; }
#lifelineAdvisorTable [data-col="follow_content"] { white-space: pre-wrap; }
#lifelineAdvisorTable [data-col="phone"] { white-space: nowrap; font-variant-numeric: tabular-nums; }
.lf-col-owner_name, .lf-col-city, .lf-col-lead_stage, .lf-col-follow_method { width: 6%; }
.lf-col-customer_name, .lf-col-vehicle_model, .lf-col-channel_detail { width: 7%; }
.lf-col-level_name, .lf-col-key_customer { width: 5%; }
.lf-col-phone, .lf-col-created_at, .lf-col-latest_follow_at { width: 8%; }
.lf-col-follow_content { width: 21%; }
.lifeline-review-badge { display: block; color: var(--status-text); font-size: 11px; }
.lifeline-detail-pagination { border-top: 1px solid var(--line-soft); justify-content: flex-end; }
.lifeline-detail-pagination[hidden] { display: none; }
.lifeline-detail-pagination button {
  border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px;
  background: var(--panel); color: var(--ink); font: inherit; cursor: pointer;
}
.lifeline-detail-pagination button:disabled { color: var(--muted); opacity: .55; cursor: default; }
.lifeline-personnel-panel .panel-heading { flex-wrap: wrap; gap: 14px; }
#lifelinePersonnelTable { container-type: inline-size; }
#lifelinePersonnelTable .lifeline-personnel-table { width: 100%; table-layout: auto; }
#lifelinePersonnelTable .lifeline-personnel-table thead th { white-space: nowrap; }
.lifeline-personnel-table .lifeline-unconfigured { color: #929da8; font-size: 12px; font-weight: 400; }
/* Colspan changes cell indexes, so totals must not inherit the store column's alignment. */
#lifelinePersonnelTable .report-summary-row td[colspan] ~ td {
  text-align: right; font-family: var(--mono); width: auto;
}
#lifelinePersonnelTable .lifeline-store-table th:first-child { width: 60px; }
#lifelinePersonnelTable .lifeline-store-table th:nth-child(2) { width: 18%; }
#lifelinePersonnelTable .lifeline-store-table .report-summary-row td { background: #fff0e2; }
#lifelinePersonnelTable .lifeline-leader-table :is(th, td) { width: auto; text-align: right; }
#lifelinePersonnelTable .lifeline-leader-table :is(th:nth-child(-n+2), .lf-leader-store, .lf-leader-name) {
  width: min(18cqi, 170px); text-align: left; vertical-align: middle;
}
#lifelinePersonnelTable .lifeline-leader-table .report-summary-row td[colspan] { text-align: left; }
@container (max-width: 680px) {
  #lifelinePersonnelTable .lifeline-leader-table :is(th, td) { padding-inline: 5px; }
  #lifelinePersonnelTable .lifeline-leader-table thead th { white-space: normal; }
}
/* Summary has one hierarchy column, not the detail table's narrow rank column. */
#lifelinePersonnelTable .lifeline-summary-table thead th:first-child,
#lifelinePersonnelTable .lifeline-summary-table tbody td:first-child:not([colspan]) {
  /* Resolve against the table wrapper before the browser sizes the columns. */
  width: min(30cqi, 240px); box-sizing: border-box;
  text-align: left; white-space: normal; overflow-wrap: anywhere; line-height: 1.6;
  position: sticky; left: 0; background: var(--lifeline-row-background, #fff);
  box-shadow: 1px 0 0 #dee3e8;
}
#lifelinePersonnelTable .lifeline-summary-table thead th:first-child { z-index: 3; background: #f5f7f8; }
#lifelinePersonnelTable .lifeline-summary-table tbody td:first-child:not([colspan]) { z-index: 1; }
#lifelinePersonnelTable .lifeline-summary-table th:nth-child(n+2),
#lifelinePersonnelTable .lifeline-summary-table td:nth-child(n+2) {
  width: auto; text-align: right;
}
#lifelinePersonnelTable .lifeline-summary-table .performance-region-heading th,
#lifelinePersonnelTable .lifeline-summary-table .lifeline-store-heading th {
  position: static; width: auto; text-align: left; background: #e9eef4; color: #334155;
  padding: 12px 14px; font-size: 13px;
}
#lifelinePersonnelTable .lifeline-summary-table .lifeline-store-heading th { background: #f5f7f8; padding-left: 22px; }
#lifelinePersonnelTable .lifeline-summary-table .report-summary-row { --lifeline-row-background: #fff0e2; }
#lifelinePersonnelTable .lifeline-summary-table .performance-level-manager { --lifeline-row-background: #ddebf7; }
#lifelinePersonnelTable .lifeline-summary-table .performance-level-supervisor { --lifeline-row-background: #e6f3d5; }
#lifelinePersonnelTable .lifeline-summary-table .report-summary-row td {
  background: var(--lifeline-row-background); border-top: 1px solid #dee3e8;
}
#lifelinePersonnelTable .lifeline-summary-table .performance-level-manager td:first-child { padding-left: min(2cqi, 28px); }
#lifelinePersonnelTable .lifeline-summary-table .performance-level-supervisor td:first-child { padding-left: min(3cqi, 36px); }
#lifelinePersonnelTable .lifeline-summary-table .performance-level-detail td:first-child { padding-left: min(4cqi, 44px); }
#lifelinePersonnelTable .lifeline-summary-table .performance-level-detail:hover { --lifeline-row-background: #f7faff; }
@container (max-width: 520px) {
  #lifelinePersonnelTable .lifeline-personnel-table :is(th, td) { padding-inline: 5px; }
  #lifelinePersonnelTable .lifeline-personnel-table thead th { white-space: normal; }
  #lifelinePersonnelTable .lifeline-personnel-table:not(.lifeline-summary-table, .lifeline-leader-table) tr > :first-child:not([colspan]) { width: 3em; }
  #lifelinePersonnelTable .lifeline-personnel-table:not(.lifeline-summary-table, .lifeline-leader-table) tr > :nth-child(2):not([data-total]) {
    width: 18%; white-space: normal; overflow-wrap: anywhere;
  }
  #lifelinePersonnelTable .lifeline-personnel-table .lifeline-count-cell { white-space: normal; }
  #lifelinePersonnelTable .lifeline-focus-count { white-space: nowrap; }
  #lifelinePersonnelTable .lifeline-leader-table :is(.lf-leader-store, .lf-leader-name) { white-space: normal; overflow-wrap: anywhere; }
}
.lifeline-empty { padding: 24px; color: #66727f; }
.lf-review-period { width: min(460px, calc(100vw - 40px)); border: 1px solid #dee3e8; border-radius: 14px; padding: 24px; color: var(--ink); }
.lf-review-period::backdrop { background: #17212b66; }
.lf-review-period label { display: grid; gap: 8px; margin: 14px 0; }
.lf-review-period p { font-size: 13px; color: var(--muted); line-height: 1.6; }
.lf-review-period footer { display: flex; justify-content: flex-end; gap: 10px; }
.lifeline-sop-reference { margin-top: 24px; border-top: 1px solid #dee3e8; padding-top: 18px; }
.lifeline-sop-reference summary { cursor: pointer; color: #9b4820; font-size: 14px; }
.lifeline-tabs { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); border: 1px solid #dee3e8; border-radius: 14px; overflow: hidden; background: #fff; }
.lifeline-tabs button { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; padding: 20px 16px; border: 0; border-right: 1px solid #ebeef1; border-radius: 0; background: transparent; color: #66727f; text-align: left; cursor: pointer; }
.lifeline-tabs button:last-child { border-right: 0; }
.lifeline-tabs button[aria-selected="true"] { background: #fbeee7; color: #9b4820; box-shadow: inset 0 -3px #c8642d; }
.lifeline-tabs button:hover { background: #f3f5f7; }
.lifeline-tabs button[aria-selected="true"]:hover { background: #fbeee7; }
.lifeline-tabs strong { font-size: 15px; line-height: 1.5; }
.lifeline-tabs small { font-size: 12px; line-height: 1.5; }
.lifeline-step { font: 13px Consolas, monospace; }
.lifeline-tabs button:focus-visible, .lifeline-content:focus-visible { outline: 2px solid #c8642d; outline-offset: -3px; }
.lifeline-notice { margin: 18px 0; color: #66727f; font-size: 13px; line-height: 1.7; }
.lifeline-notice strong { margin-right: 10px; color: #a86a22; }
.lifeline-content { padding: 28px 32px; background: #fff; border: 1px solid #dee3e8; border-radius: 14px; }
.lifeline-content[hidden] { display: none; }
#lifeline-content-daily { margin-top: 18px; min-height: 180px; }
.lifeline-heading { border-bottom: 1px solid #dee3e8; padding-bottom: 22px; }
.lifeline-heading h2 { margin: 10px 0; font-size: 24px; }
.lifeline-heading p { margin: 0; max-width: 70ch; color: #66727f; line-height: 1.8; font-size: 14px; }
.lifeline-heading p:first-child { font-size: 12px; color: #a86a22; }
.lifeline-sop article { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 16px; padding: 22px 0; border-bottom: 1px solid #ebeef1; }
.lifeline-sop-number { padding-top: 3px; font: 16px Consolas, monospace; color: #c8642d; }
.lifeline-sop h3 { margin: 0 0 10px; font-size: 16px; }
.lifeline-sop p { margin: 6px 0 0; max-width: 78ch; font-size: 14px; line-height: 1.8; color: #66727f; }
.lifeline-result { margin: 24px 0 18px; padding: 16px 20px; background: #f3f5f7; border-left: 3px solid #c8642d; font-size: 14px; line-height: 1.7; }
.lifeline-result p { margin: 5px 0 0; }
.lifeline-source { color: #66727f; font-size: 12px; line-height: 1.8; }
@media (max-width: 1199px) { .lifeline-tabs button { padding: 16px 10px; } .lifeline-tabs strong { font-size: 14px; } }
@media (max-width: 767px) {
  .lifeline-tabs { grid-auto-columns: minmax(200px, 1fr); overflow-x: auto; }
  .lifeline-content { padding: 22px 16px; }
  .lifeline-heading h2 { font-size: 21px; }
  .lifeline-sop article { gap: 8px; grid-template-columns: 22px minmax(0, 1fr); }
}

.lifeline-reader-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 18px 0; font-size: 14px; }
.lifeline-reader-tools label { display: flex; align-items: center; gap: 8px; }
.lifeline-reader-tools select { width: auto; min-height: 38px; }
.lifeline-reader-tools a { margin-left: auto; color: #9b4820; }
.lifeline-slide-frame { background: #f3f5f7; border: 1px solid #dee3e8; }
.lifeline-slide-frame:focus-visible { outline: 2px solid #c8642d; }
.lifeline-slide-frame img { display: block; width: 100%; height: auto; }
.lifeline-slide-frame img:not([src]) { display: none; }
.lifeline-slide-frame [data-error] { padding: 16px; color: #b44b4b; }
@media (max-width: 767px) { .lifeline-reader-tools { gap: 10px; } .lifeline-reader-tools a { margin-left: 0; } .lifeline-heading p { overflow-wrap: anywhere; } }

.lifeline-base-modes { margin-top: 20px; }
.lifeline-base-modes .mode-switcher { flex-wrap: wrap; }
.lifeline-base-placeholder { padding: 24px; color: #66727f; }
#lifelineWarningTable table { min-width: 1400px; }
#lifelineWarningTable.warning-performance-wrap .warning-metric-header small,
#lifelineWarningStatus:empty { display: none; }
/* Lifeline headings separate the metric from its period; rules remain available on hover. */
#lifelineWarningTable.warning-performance-wrap .performance-table thead th {
  background: #f5f7f9; color: #344454; border-bottom: 1px solid #dfe5eb; vertical-align: middle;
  font-family: var(--font); font-size: 13px; font-weight: 600; padding: 16px 14px;
}
#lifelineWarningTable.warning-performance-wrap .performance-table thead th.warning-metric-header {
  min-width: 112px; padding: 16px 14px; text-align: right;
}
#lifelineWarningTable.warning-performance-wrap .warning-metric-header .lf-warning-name { line-height: 1.5; font-size: 13px; font-weight: 650; }
#lifelineWarningTable.warning-performance-wrap .warning-metric-header .lf-warning-period {
  display: block; margin-top: 7px; color: #81909e; font-size: 11px; font-weight: 400; line-height: 22px;
}
#lifelineWarningTable.warning-performance-wrap .performance-table thead th.lf-review-header { background: #fbf4ed; }
#lifelineWarningTable.warning-performance-wrap .warning-metric-header .lf-review-header-button {
  display: flex; flex-direction: column; align-items: flex-end; gap: 7px; width: 100%; padding: 0;
  border: 0; border-radius: 4px; background: transparent; color: #8b4d2a; font: inherit; text-decoration: none; cursor: pointer;
}
#lifelineWarningTable .lf-review-header-button:focus-visible { outline: 2px solid #c8642d; outline-offset: 5px; }
#lifelineWarningTable .lf-review-date {
  display: inline-flex; align-items: center; gap: 7px; padding: 1px 7px; border: 1px solid #e8d5c4;
  border-radius: 5px; background: #fffaf5; color: #956747; font-size: 11px; font-weight: 400; line-height: 20px;
}
#lifelineWarningTable .lf-review-header-button:hover .lf-review-date { background: #f6e9dc; border-color: #cda886; }
#lifelineWarningTable.warning-performance-wrap .performance-table thead th[data-warning-result="items"] { background: #edf2f6; border-right: 1px solid #dfe5eb; }
#lifeline-base-pane-0 .panel-heading { flex-wrap: wrap; gap: 12px; }
#lifeline-content-1 [role="tabpanel"][hidden] { display: none; }

.lifeline-drill-link { border: 0; padding: 0; background: transparent; color: #9b4820; font: inherit; font-weight: 700; text-align: left; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
#lifelineWarningTable tr[data-lifeline-drill] { cursor: pointer; }
#lifelineCustomerTable table { min-width: 1320px; }
.lf-company-summary { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 2px 8px; min-width: 225px; max-width: 330px; white-space: normal; }
.lf-company-summary strong, .lf-company-summary span { grid-column: 1 / -1; }
.lf-company-summary strong { grid-row: 1; grid-column: 1; }
.lf-company-summary span, .lf-company-meta { color: var(--muted); font-size: 12px; }
.lf-company-summary button, .lf-company-brief button { padding: 0; color: var(--brand, #9b4820); background: none; border: 0; font: inherit; cursor: pointer; text-decoration: underline; }
.lf-company-summary button { grid-row: 1; grid-column: 2; font-size: 12px; white-space: nowrap; }
.lf-company-brief { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 12px; padding: 12px 0; }
.lf-company-expanded td { background: #f5f7f8; white-space: normal; }
.lf-company-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 275px), 1fr)); gap: 10px; }
.lf-company-meta { margin-bottom: 10px; }
.lf-company-grid article { padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel, white); }
.lf-company-grid header { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.lf-company-grid header span { color: var(--muted); white-space: nowrap; }
.lf-company-grid dl { margin: 8px 0 0; }
.lf-company-grid dl div { display: grid; grid-template-columns: 5em 1fr; gap: 8px; font-size: 13px; margin-top: 4px; }
.lf-company-grid dt { color: var(--muted); }
.lf-company-grid dd { margin: 0; overflow-wrap: anywhere; white-space: normal; }
.lf-company-filter { border: 0; margin: 0; padding: 0; }
.lf-company-filter:not([hidden]) { display: grid; gap: 8px; }
.lf-company-filter input, .lf-company-filter select { width: 100%; min-width: 0; margin-top: 3px; padding: 6px; border: 1px solid var(--line); border-radius: 6px; font: inherit; }
.lf-company-range { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 6px; }
#lifelineCustomerTable th, #lifelineCustomerTable td { text-align: left; }
#lifelineCustomerTable th:not(.lf-check) { padding: 0; }
#lifelineCustomerTable .lf-check { width: 42px; padding-inline: 12px; text-align: center; }
.lf-check input { width: 16px; height: 16px; margin: 0; vertical-align: middle; accent-color: #9b4820; cursor: pointer; }
.lf-filter-button { display: inline-flex; width: 100%; align-items: center; gap: 6px; padding: 12px 10px; border: 0; border-radius: 0; color: inherit; background: transparent; font: inherit; white-space: nowrap; cursor: pointer; }
.lf-filter-button i { width: 0; height: 0; border: 4px solid transparent; border-bottom: 0; border-top-color: currentColor; opacity: .65; }
.lf-filter-button:hover, .lf-filter-button[aria-expanded="true"], .lf-filter-button.is-filtered { color: #91451f; background: #fff0e5; }
.lf-filter-term { max-width: 8em; overflow: hidden; text-overflow: ellipsis; }
.lf-filter-term:empty { display: none; }
.lf-column-filter { position: fixed; inset: auto; margin: 0; width: min(260px, calc(100vw - 16px)); padding: 15px; border: 1px solid var(--line, #d7dfe5); border-radius: 12px; color: var(--ink); background: var(--panel, white); box-shadow: 0 8px 32px #19273524; }
.lf-column-filter label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 650; }
.lf-column-filter input[type="search"] { width: 100%; padding: 8px 10px; color: inherit; border: 1px solid var(--line, #d7dfe5); border-radius: 6px; font: inherit; }
.lf-filter-choices { max-height: min(270px, 45dvh); overflow: auto; overscroll-behavior: contain; }
.lf-filter-choices label { display: flex; align-items: center; gap: 8px; margin: 0; padding: 5px 2px; font-weight: 400; cursor: pointer; }
.lf-filter-choices input { margin: 0; width: 16px; height: 16px; flex-shrink: 0; accent-color: #9b4820; }
.lf-filter-choices > label:first-child { border-bottom: 1px solid var(--line-soft); }
.lf-filter-month { display: flex; align-items: flex-start; gap: 6px; }
.lf-filter-month > label { padding-block: 7px; }
.lf-filter-month details { flex: 1; }
.lf-filter-month summary { padding: 5px 0; cursor: pointer; }
.lf-column-filter > div, .lf-roster-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; }
.lf-column-filter > div { margin-top: 12px; }
.lf-column-filter button { border: 1px solid var(--line, #d7dfe5); border-radius: 7px; padding: 6px 11px; background: var(--panel, white); color: inherit; font: inherit; font-size: 13px; }
.lf-column-filter button[type="submit"], #lifelineBatchAdd:not(:disabled) { background: #9b4820; border-color: #9b4820; color: white; }
.lf-column-filter button:disabled { opacity: .5; cursor: default; }
.lf-roster-heading { flex-wrap: wrap; gap: 10px; }
.lf-roster-title { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.lf-roster-title .lf-guide-button {
  color: #896200; border: 1px solid #d4a51c; background: #fffbed;
  font-weight: 650; white-space: nowrap;
}
.lf-roster-title .lf-guide-button:hover { color: #765300; background: #fff2c2; border-color: #b88800; }
.lf-guide-dialog {
  box-sizing: border-box; width: fit-content; max-width: calc(100vw - 24px);
  max-height: calc(100dvh - 24px); padding: 0; margin: auto;
  border: 1px solid var(--line, #d8dfe5); border-radius: 12px; background: white;
}
.lf-guide-dialog::backdrop { background: rgb(25 36 46 / 55%); }
.lf-guide-dialog header { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; gap: 16px; }
.lf-guide-dialog h3, .lf-guide-dialog form { margin: 0; }
.lf-guide-dialog header button { padding: 6px 12px; border: 1px solid var(--line, #d8dfe5); border-radius: 6px; background: white; color: inherit; }
.lf-guide-dialog img { display: block; width: auto; max-width: 100%; max-height: calc(100dvh - 84px); margin: auto; }
.lf-roster-actions span, #lifelineBatchStatus { color: var(--muted); font-size: 13px; }
.lf-roster-actions button[hidden] { display: none; }
#lifelineBatchStatus { margin: 0; padding: 8px 16px; }
#lifelineBatchStatus:empty { display: none; }

#lifelineCustomDates { flex-wrap: wrap; }
#lifelineCustomDates input { min-width: 0; max-width: 100%; }

#lifelineCartTable table { min-width: 700px; }
body.lf-profile-open { overflow: hidden; }
.lifeline-profile {
  --lf-accent: #995029;
  padding: 0; margin: auto; width: min(1420px, calc(100% - 124px)); max-width: none;
  max-height: 94dvh; overflow: visible; border: 1px solid var(--line, #dee3e8); border-radius: 16px;
  color: var(--ink, #25313d); background: var(--panel, white); box-shadow: 0 22px 80px #17202a36;
  font: inherit; font-size: 14px; line-height: 1.55;
}
.lifeline-profile[open] { display: flex; flex-direction: column; }
.lifeline-profile::backdrop { background: #17202a70; }
.lifeline-profile :is(h2,h3,p,dl,dt,dd,ol,ul) { margin: 0; }
.lifeline-profile :is(ul,ol) { padding: 0; list-style: none; }
.lifeline-profile time { font-variant-numeric: tabular-nums; }
.lifeline-profile button { padding: 6px 12px; color: inherit; font: inherit; font-size: 13px; background: var(--panel, white); border: 1px solid var(--line, #dee3e8); border-radius: 7px; cursor: pointer; }
.lifeline-profile :is(button,summary):focus-visible { outline: 2px solid #ab613c; outline-offset: 2px; }
.lf-profile-header { flex: none; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 22px 28px 16px; }
.lf-profile-heading { min-width: 0; overflow-wrap: anywhere; }
.lf-profile-heading > p { font-size: 12px; font-weight: 650; color: var(--lf-accent); }
.lf-profile-title, .lf-profile-identity, .lf-event-title { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; }
.lf-profile-title { margin: 3px 0 5px; }
.lf-profile-title h2 { font-size: clamp(21px, 2.3vw, 28px); line-height: 1.3; letter-spacing: -.02em; }
.lf-profile-status, .lf-follow-validity, .lf-selected-doc { display: inline-block; padding: 2px 8px; border-radius: 5px; color: #546270; background: #edf1f4; font-size: 12px; font-weight: 600; white-space: nowrap; }
.lf-profile-status.lf-done, .lf-follow-validity.lf-valid { background: #e8f3ee; color: #346952; }
.lf-profile-status.lf-pending, .lf-follow-validity.lf-invalid { background: #fff0ec; color: #984f39; }
.lf-selected-doc { color: var(--lf-accent); background: #fbefe8; }
.lf-profile-identity { gap: 4px 0; color: var(--muted, #66727f); font-size: 13px; }
.lf-profile-identity span:not(:last-child)::after { content: '·'; margin: 0 9px; color: #929da8; }
.lf-profile-close { flex: none; }
.lifeline-profile .lf-profile-arrow { position: absolute; top: 50%; translate: 0 -50%; display: grid; place-content: center;
  width: 44px; height: 44px; border-radius: 50%; background: white; color: var(--lf-accent); padding: 0 0 3px; font: 32px/1 system-ui; box-shadow: 0 3px 14px #17202a24; }
.lifeline-profile .lf-profile-arrow:active { transform: none; }
.lf-profile-arrow.lf-prev { right: calc(100% + 8px); }
.lf-profile-arrow.lf-next-customer { left: calc(100% + 8px); }
.lifeline-profile .lf-profile-arrow:disabled { color: #a9afb4; background: #eef0f1; cursor: default; }
.lf-profile-heading .lf-profile-position { padding-left: 8px; color: var(--muted); font-variant-numeric: tabular-nums; }
.lf-profile-scroll { overflow: auto; overscroll-behavior: contain; min-height: 0; padding: 12px 24px 18px; overflow-wrap: anywhere; border-top: 1px solid var(--line-soft); }
.lf-profile-sections { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(0,1fr) minmax(0,.9fr); gap: 12px; margin-top: 12px; align-items: start; }
.lf-profile-sections > section { min-width: 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 9px; }
.lf-profile-sections > section > h3 { margin-bottom: 8px; }
.lf-profile-sections h3 small { font-weight: 400; }
.lf-profile-sections .lf-profile-facts { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 5px 10px; padding: 8px; }
.lf-profile-sections .lf-history-day li { grid-template-columns: 50px minmax(0,1fr); gap: 6px; padding-top: 6px; }
.lf-profile-sections .lf-history-day { margin-top: 6px; }
.lf-profile-sections .lf-data-time { margin-top: 10px; }
.lf-profile-sections .lf-profile-fields > div { grid-template-columns: 5em minmax(0,1fr); }
#lf-company-summary strong { display: block; margin-top: 8px; }
.lf-extra, #lf-company-details { margin-top: 8px; }
.lf-extra summary, #lf-company-details summary { color: var(--lf-accent); font-weight: 600; cursor: pointer; }
.lf-nav-status:not(:empty) { padding: 4px 24px; color: var(--lf-accent); }
@media (min-width: 900px) {
  .lf-profile-scroll { display: flex; flex-direction: column; }
  .lf-profile-scroll > :not(.lf-profile-sections) { flex: none; }
  .lf-profile-sections { min-height: min(170px, 25dvh); grid-template-rows: minmax(0,1fr); align-items: stretch; }
  .lf-profile-sections > section { overflow: auto; overscroll-behavior: contain; }
}
.lf-profile-pane[hidden] { display: none; }
.lf-profile-pane:focus { outline: none; }
.lf-profile-pane:focus-visible { outline: 2px solid #ab613c; outline-offset: 3px; }
.lf-profile-pane h3 { color: var(--ink, #25313d); font-size: 15px; line-height: 1.45; }
.lifeline-profile small, .lf-quiet, .lf-period, .lf-data-time, .lf-empty, .lf-profile-pane dt { color: var(--muted, #66727f); }
.lifeline-profile small, .lf-period, .lf-data-time, .lf-profile-pane dt { font-size: 12px; }
.lifeline-profile .lf-profile-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(115px, 1fr)); gap: 14px 20px; padding: 13px 16px; border-radius: 8px; background: #f4f6f7; }
.lf-profile-facts dd { margin-top: 3px; font-weight: 650; }
.lf-profile-brief { display: grid; grid-template-columns: minmax(0,1.8fr) minmax(185px,1fr); align-items: start; gap: 24px; }
.lf-profile-facts + .lf-profile-brief { margin-top: 12px; }
.lf-communication h3 { margin-bottom: 5px; }
.lf-communication > small { display: block; margin-bottom: 8px; }
.lf-note-text, .lf-note-preview, .lf-next p, .lf-profile-fields dd, .lf-history-day li p { white-space: pre-wrap; line-height: 1.7; }
.lf-long-note summary { list-style: none; cursor: pointer; }
.lf-long-note summary::-webkit-details-marker { display: none; }
.lf-long-note[open] .lf-note-preview { display: none; }
.lf-expand { display: block; font-size: 13px; font-weight: 600; color: var(--lf-accent); }
.lf-long-note:not([open]) .lf-expand span:last-child, .lf-long-note[open] .lf-expand span:first-child { display: none; }
.lf-last-action { margin-top: 12px; color: var(--muted, #66727f); font-size: 12px; }
.lf-last-action span { font-weight: 650; }
.lf-next { padding: 12px 16px; border-left: 3px solid #cf8d68; border-radius: 0 8px 8px 0; background: #fcf5f0; }
.lf-next h3 { font-size: 13px; color: var(--lf-accent); }
.lf-next strong { display: block; margin-top: 4px; font-size: 17px; font-variant-numeric: tabular-nums; }
.lf-next p { margin-top: 5px; }
.lf-profile-section { margin-top: 20px; border-top: 1px solid var(--line-soft, #ebeef1); padding-top: 15px; }
.lf-profile-fields { display: grid; gap: 7px; padding-top: 10px; }
.lf-profile-fields > div { display: grid; grid-template-columns: 7em minmax(0,1fr); align-items: baseline; gap: 10px; }
.lifeline-profile .lf-period { margin-top: 16px; }
.lifeline-profile .lf-history-day { margin-top: 16px; }
.lf-history-day h3 { font-size: 14px; }
.lf-history-day li { display: grid; grid-template-columns: 70px minmax(0,1fr); gap: 14px; padding-top: 12px; }
.lf-history-day time, .lf-documents time { color: var(--muted, #66727f); font-size: 12px; }
.lf-history-day time { padding-top: 3px; }
.lf-history-day li > div { border-left: 2px solid var(--line, #dee3e8); padding-left: 14px; }
.lf-history-day li p { margin-top: 4px; }
.lf-event-plan { color: var(--muted, #66727f); }
.lf-follow-attachment { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.lf-follow-attachment button { max-width: 100%; padding: 5px 10px; font-size: 13px; overflow-wrap: anywhere; }
.lf-follow-attachment img { display: block; max-width: 100%; max-height: 240px; border-radius: 6px; }
.lf-follow-attachment audio { max-width: 100%; }
#lifelineCustomerAdvisor { max-width: none; }
#lifelineReviewFilters[hidden], #lifelineReviewFilters button[hidden] { display: none; }
.lf-documents li { padding: 14px 0; border-bottom: 1px solid var(--line-soft, #ebeef1); }
.lf-documents time { margin-left: auto; }
.lf-documents p { margin-top: 4px; }
.lf-milestones { display: flex; flex-wrap: wrap; gap: 6px 18px; padding-top: 7px; }
.lf-milestones div { display: flex; align-items: baseline; gap: 6px; }
.lf-milestones dd { font-size: 13px; }
.lf-more { margin-top: 16px; }
.lifeline-profile .lf-empty { padding: 18px 0; }
.lifeline-profile .lf-profile-attention:not(:empty) { margin-bottom: 12px; padding: 8px 12px; border-radius: 6px; background: #fff4e8; font-size: 13px; }
.lifeline-profile .lf-profile-state:not(:empty) { margin-bottom: 12px; font-size: 13px; color: var(--muted, #66727f); }
.lf-profile-state button { margin-left: 8px; }
.lf-profile-cart:not([hidden]) { display: flex; flex: none; align-items: center; justify-content: flex-end; gap: 12px; padding: 12px 28px; border-top: 1px solid var(--line-soft, #ebeef1); }
.lf-profile-cart span { font-size: 13px; color: var(--muted, #66727f); }
.lf-profile-cart button { color: white; background: var(--lf-accent); border-color: var(--lf-accent); font-weight: 650; white-space: nowrap; }
.lf-profile-cart button:disabled { opacity: .65; cursor: default; }
@media (max-width: 650px) {
  .lifeline-profile { width: calc(100% - 16px); margin-block: 3dvh auto; }
  .lf-profile-header { padding: 14px 49px 10px; }
  .lifeline-profile .lf-profile-arrow { top: 17px; translate: none; width: 36px; height: 44px; box-shadow: none; border-radius: 8px; }
  .lf-profile-arrow.lf-prev { left: 5px; right: auto; }
  .lf-profile-arrow.lf-next-customer { right: 5px; left: auto; }
  .lf-profile-sections { grid-template-columns: minmax(0,1fr); }
  .lf-profile-scroll { padding: 16px; }
  .lf-profile-cart:not([hidden]) { padding: 10px 16px; }
  .lifeline-profile button { min-height: 44px; }
  .lifeline-profile .lf-profile-facts { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .lf-profile-brief { grid-template-columns: 1fr; gap: 14px; }
  .lf-next { grid-row: 1; }
  .lf-profile-fields > div { grid-template-columns: 6em minmax(0,1fr); }
  .lf-history-day li { grid-template-columns: 56px minmax(0,1fr); gap: 8px; }
  .lf-documents time { margin-left: 0; }
}
.lifeline-personnel-table td.lifeline-count-cell { white-space: nowrap; font-variant-numeric: tabular-nums; }
.lifeline-focus-count { color: var(--blue, #c8642d); font-weight: 600; }
.lifeline-count-total { color: #000; font-size: 1.12em; font-weight: 700; }

#lifelineShowTodos { width: 1rem; height: 1rem; accent-color: var(--accent, #ae5127); }
.lf-signin-action td { text-align: left; }
.lf-signin-action dl { display: flex; flex-wrap: wrap; gap: 1rem 2rem; margin: .4rem .8rem; }
.lf-signin-action dt { font-size: .8rem; color: #566575; }
.lf-signin-action dd { margin: .25rem 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.life-return{position:fixed;top:10px;left:12px;z-index:90;background:#fff;border:1px solid #c7d6e5;border-radius:7px;padding:8px 12px;color:#214a72;cursor:pointer}
.lifeline-content.life-drilled>:not(.life-drill){display:none}
.life-drill{padding:18px}
.life-drill h2{margin:0}
.life-drill [data-scope],.life-drill [data-status]{color:#536981}
.life-drill form{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.life-drill-table{overflow-x:auto}
.life-drill-table .performance-table{width:100%}
.life-drill-table button{color:#215485;background:transparent;border:0;text-decoration:underline;cursor:pointer}
