/*
 * Lifespan Pro theme (2026 refresh).
 *
 * Loaded after the Gull theme and custom.css on every page (customer and
 * admin), so it restyles the whole site without touching page markup.
 * Colours and type come from the Lifespan Pro mock-ups: deep green sidebar,
 * lime accent, soft grey-green page, white cards, Bricolage Grotesque
 * headings and DM Sans text.
 *
 * To roll back the look, remove the <link> to this file from the layouts.
 */
:root {
    --lp-bg: #F3F5F2;
    --lp-surface: #FFFFFF;
    --lp-ink: #10201B;
    --lp-muted: #4E5C57;
    --lp-line: #DDE3DF;
    --lp-brand: #0B6E55;
    --lp-brand-dark: #084A3A;
    --lp-brand-soft: #E3F1EC;
    --lp-deep: #0E1F1A;
    --lp-deep-2: #1F3A31;
    --lp-lime: #C8F169;
    --lp-warn: #8A3F05;
    --lp-warn-soft: #F8E7D3;
    --lp-bad: #A3261B;
    --lp-bad-soft: #F7DEDA;
    --lp-display: 'Bricolage Grotesque', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --lp-body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --lp-radius: 16px;
}

/* ---------- base ---------- */
html body,
body.text-left {
    background: var(--lp-bg) !important;
    color: var(--lp-ink);
    font-family: var(--lp-body) !important;
    font-size: 15px !important;
}
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6, .card-title, .modal-title {
    font-family: var(--lp-display);
    color: var(--lp-ink);
    letter-spacing: -0.01em;
}
.card-title { font-size: 1.05rem; font-weight: 700; }
a { color: var(--lp-brand); }
a:hover { color: var(--lp-brand-dark); }
.text-primary { color: var(--lp-brand) !important; }
.bg-primary { background-color: var(--lp-brand) !important; }
.text-muted { color: var(--lp-muted) !important; }
:focus-visible { outline: 3px solid var(--lp-brand); outline-offset: 2px; }
.app-admin-wrap { background: var(--lp-bg); }
.main-content-wrap { background: var(--lp-bg); }
.breadcrumb, .breadcrumb h1 { font-family: var(--lp-display); }
.separator-breadcrumb { border-color: var(--lp-line) !important; }

/* ---------- top bar ---------- */
.layout-sidebar-large .main-header,
.auth-header {
    background: var(--lp-surface) !important;
    border-bottom: 1px solid var(--lp-line);
    box-shadow: none !important;
}
.layout-sidebar-large .main-header .menu-toggle div { background: var(--lp-ink); }

/* ---------- sidebar ---------- */
.layout-sidebar-large .sidebar-left {
    background: var(--lp-deep) !important;
    box-shadow: none !important;
}
.layout-sidebar-large .sidebar-left .navigation-left {
    background: var(--lp-deep) !important;
}
.layout-sidebar-large .sidebar-left .navigation-left .nav-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
    color: #DCE6E2;
}
.layout-sidebar-large .sidebar-left .navigation-left .nav-item .nav-item-hold {
    color: #DCE6E2 !important;
    border-radius: 12px;
    margin: 4px 8px;
    transition: background 0.15s;
}
.layout-sidebar-large .sidebar-left .navigation-left .nav-item .nav-item-hold:hover {
    background: #1A2E28;
    color: #FFFFFF !important;
}
.layout-sidebar-large .sidebar-left .navigation-left .nav-item.active .nav-item-hold {
    background: var(--lp-deep-2);
    color: var(--lp-lime) !important;
}
.layout-sidebar-large .sidebar-left .navigation-left .nav-item .nav-item-hold .nav-text {
    font-family: var(--lp-body);
    font-weight: 500;
    font-size: 13px;
}
/* The menu icons are dark PNGs; draw them light on the dark sidebar. */
.layout-sidebar-large .sidebar-left .navigation-left .nav-item .nav-item-hold > img {
    filter: brightness(0) invert(0.88);
}
.layout-sidebar-large .sidebar-left .navigation-left .nav-item.active .nav-item-hold > img {
    filter: brightness(0) invert(0.92) sepia(1) saturate(4) hue-rotate(35deg);
}
.layout-sidebar-large .sidebar-left .navigation-left .nav-item .triangle { display: none !important; }
/* Fly-out sub menus stay light, with the new type and hover colour. */
ul.childNav {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--lp-line);
}
.nav-item:hover ul.childNav { box-shadow: 0 8px 24px rgba(14, 31, 26, 0.18) !important; }
ul.childNav .nav-item a { color: var(--lp-ink) !important; font-family: var(--lp-body); }
ul.childNav .nav-item:hover { background: var(--lp-brand-soft); }

/* ---------- cards ---------- */
.card {
    background: var(--lp-surface);
    border: 1px solid var(--lp-line) !important;
    border-radius: var(--lp-radius) !important;
    box-shadow: none !important;
}
.card-header, .card-footer {
    background: transparent !important;
    border-color: var(--lp-line) !important;
}
.card-icon-bg .card-body .content p,
.card-icon-bg .card-body .content .text-muted { color: var(--lp-muted) !important; }
.card-icon-bg [class^="i-"], .card-icon-bg .text-primary { color: var(--lp-brand) !important; }

/* ---------- buttons ---------- */
.btn {
    border-radius: 10px !important;
    font-family: var(--lp-body);
    font-weight: 500;
}
.btn-primary, .btn-success, .btn-info {
    background: var(--lp-brand) !important;
    border-color: var(--lp-brand) !important;
    color: #FFFFFF !important;
}
.btn-primary:hover, .btn-success:hover, .btn-info:hover,
.btn-primary:focus, .btn-success:focus, .btn-info:focus {
    background: var(--lp-brand-dark) !important;
    border-color: var(--lp-brand-dark) !important;
    box-shadow: 0 6px 18px -8px var(--lp-brand) !important;
}
.btn-outline-primary, .btn-outline-success {
    color: var(--lp-brand) !important;
    border-color: var(--lp-brand) !important;
    background: transparent !important;
}
.btn-outline-primary:hover, .btn-outline-success:hover {
    background: var(--lp-brand-soft) !important;
}
.btn-danger { background: var(--lp-bad) !important; border-color: var(--lp-bad) !important; }
.btn-warning, .btn-yellow { background: var(--lp-lime) !important; border-color: var(--lp-lime) !important; color: var(--lp-deep) !important; }
.btn-secondary, .btn-light {
    background: var(--lp-surface) !important;
    border: 1px solid var(--lp-line) !important;
    color: var(--lp-ink) !important;
}

/* ---------- forms ---------- */
.form-control, .custom-select, .select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--multiple {
    border-radius: 10px !important;
    border: 1px solid var(--lp-line) !important;
    background: var(--lp-surface) !important;
    color: var(--lp-ink);
    font-family: var(--lp-body);
}
.form-control:focus {
    border-color: var(--lp-brand) !important;
    box-shadow: 0 0 0 3px rgba(11, 110, 85, 0.18) !important;
}
label { color: var(--lp-muted); font-weight: 500; }
.custom-control-input:checked ~ .custom-control-label::before {
    background-color: var(--lp-brand) !important;
    border-color: var(--lp-brand) !important;
}

/* ---------- tables ---------- */
.table { color: var(--lp-ink); }
.table thead th {
    background: transparent !important;
    color: var(--lp-muted) !important;
    font-weight: 500;
    font-size: 12px;
    text-transform: none;
    border-bottom: 1px solid var(--lp-line) !important;
    border-top: 0 !important;
}
.table td { border-color: var(--lp-line) !important; vertical-align: middle; }
.table-hover tbody tr:hover, .table-striped tbody tr:nth-of-type(odd):hover { background: var(--lp-brand-soft) !important; }
.table-striped tbody tr:nth-of-type(odd) { background: #F8FAF8; }
.dataTables_wrapper .page-item.active .page-link,
.page-item.active .page-link {
    background: var(--lp-brand) !important;
    border-color: var(--lp-brand) !important;
    color: #FFFFFF !important;
}
.page-link { color: var(--lp-brand); border-color: var(--lp-line); }

/* ---------- tabs, badges, alerts ---------- */
.nav-tabs { border-bottom: 1px solid var(--lp-line); }
.nav-tabs .nav-item .nav-link { color: var(--lp-muted); font-weight: 500; }
.nav-tabs .nav-item .nav-link.active {
    color: var(--lp-brand) !important;
    background: transparent !important;
    border-bottom: 2px solid var(--lp-brand) !important;
}
.badge { border-radius: 999px; font-weight: 700; padding: 0.35em 0.7em; }
.badge-primary, .badge-success { background: var(--lp-brand-soft) !important; color: var(--lp-brand) !important; }
.badge-warning { background: var(--lp-warn-soft) !important; color: var(--lp-warn) !important; }
.badge-danger { background: var(--lp-bad-soft) !important; color: var(--lp-bad) !important; }
.alert { border-radius: 12px; }
.alert-success { background: var(--lp-brand-soft); color: var(--lp-brand-dark); border-color: transparent; }
.modal-content { border-radius: var(--lp-radius); border: 0; }
.dropdown-menu { border-radius: 12px; border: 1px solid var(--lp-line); box-shadow: 0 8px 24px rgba(14, 31, 26, 0.12); }
.dropdown-item:active { background: var(--lp-brand); }
.spinner-bubble-primary { color: var(--lp-brand) !important; }

/* ---------- auth pages (log in, sign up) ---------- */
.auth-layout-wrap { background: var(--lp-deep) !important; background-image: none !important; }
.auth-layout-wrap .auth-content .card { border: 0 !important; }
.auth-logo img { max-height: 64px; width: auto; }

/* =====================================================================
 * "My health" dashboard (resources/views/health/overview.blade.php)
 * ===================================================================*/
.lp-health { display: flex; flex-direction: column; gap: 18px; padding-bottom: 32px; }
.lp-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.lp-top h1 { font-size: 28px; margin: 0; line-height: 1.1; }
.lp-sub { color: var(--lp-muted); font-size: 14px; }
.lp-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.lp-seg { display: inline-flex; background: var(--lp-surface); border: 1px solid var(--lp-line); border-radius: 10px; padding: 3px; }
.lp-seg a { padding: 6px 12px; border-radius: 7px; font-size: 13px; font-weight: 500; color: var(--lp-muted); text-decoration: none; }
.lp-seg a[aria-current="true"] { background: var(--lp-brand); color: #FFFFFF; }
.lp-note { background: var(--lp-warn-soft); color: var(--lp-warn); border-radius: 12px; padding: 10px 14px; font-size: 14px; }
.lp-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.lp-card { background: var(--lp-surface); border: 1px solid var(--lp-line); border-radius: var(--lp-radius); padding: 18px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.lp-card h2 { font-size: 18px; margin: 0; }
.lp-card .lp-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.lp-span4 { grid-column: span 4; } .lp-span5 { grid-column: span 5; } .lp-span6 { grid-column: span 6; } .lp-span7 { grid-column: span 7; } .lp-span8 { grid-column: span 8; } .lp-span12 { grid-column: span 12; }
.lp-hero { background: var(--lp-deep); color: #EAF2EE; border: 0; flex-direction: row; align-items: center; gap: 22px; flex-wrap: wrap; }
.lp-hero h2, .lp-hero .lp-big { color: #FFFFFF; }
.lp-hero .lp-lbl { color: #A9B8B2; font-size: 13px; }
.lp-hero .lp-big { font-family: var(--lp-display); font-size: 48px; font-weight: 700; line-height: 1; }
.lp-hero .lp-big small { font-size: 18px; font-weight: 500; }
.lp-hero .lp-up { color: var(--lp-lime); font-weight: 700; font-size: 14px; }
.lp-hero .lp-facts { display: flex; gap: 26px; flex-wrap: wrap; }
.lp-hero .lp-facts b { display: block; font-size: 20px; font-family: var(--lp-display); color: #FFFFFF; }
.lp-hero .lp-facts span { font-size: 12px; color: #A9B8B2; }
.lp-hero .btn { background: var(--lp-lime) !important; border-color: var(--lp-lime) !important; color: var(--lp-deep) !important; }
.lp-tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.lp-tile { background: var(--lp-surface); border: 1px solid var(--lp-line); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; cursor: pointer; text-align: left; font: inherit; color: inherit; }
.lp-tile:hover { border-color: var(--lp-brand); }
.lp-tile[aria-pressed="true"] { border-color: var(--lp-brand); box-shadow: inset 0 0 0 1px var(--lp-brand); }
.lp-tile .t { font-size: 12px; color: var(--lp-muted); }
.lp-tile .v { font-size: 21px; font-weight: 700; font-variant-numeric: tabular-nums; }
.lp-tile .s { font-size: 12px; font-weight: 700; color: var(--lp-muted); }
.lp-tile .s.good { color: var(--lp-brand); } .lp-tile .s.warn { color: var(--lp-warn); } .lp-tile .s.bad { color: var(--lp-bad); }
.lp-tile canvas { height: 30px !important; }
.lp-chart { position: relative; height: 280px; }
.lp-chart.sm { height: 210px; }
.lp-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--lp-brand-soft); color: var(--lp-brand); }
.lp-pill.warn { background: var(--lp-warn-soft); color: var(--lp-warn); }
.lp-pill.bad { background: var(--lp-bad-soft); color: var(--lp-bad); }
.lp-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.lp-form label { font-size: 12px; margin: 0 0 2px; display: block; }
.lp-list { display: flex; flex-direction: column; }
.lp-row { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-top: 1px solid var(--lp-line); }
.lp-row:first-child { border-top: 0; }
.lp-row .grow { flex: 1; min-width: 0; }
.lp-row .meta { font-size: 13px; color: var(--lp-muted); }
.lp-result { background: var(--lp-brand-soft); border-radius: 12px; padding: 12px 14px; display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.lp-result b { font-family: var(--lp-display); font-size: 26px; color: var(--lp-brand); }
.lp-hero-form { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; flex-basis: 100%; padding-top: 14px; border-top: 1px solid #2A423A; }
.lp-hero-form label { font-size: 12px; color: #A9B8B2; display: flex; flex-direction: column; gap: 4px; margin: 0; }
.lp-hero-form .form-control { min-width: 150px; height: 36px; background: #16302A; border-color: #2A423A; color: #fff; }
.lp-hero-form .form-control option { color: #10201B; }
.lp-note.good { background: var(--lp-brand-soft); color: var(--lp-brand); }
.lp-gap { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--lp-line); }
.lp-gap:first-child { border-top: 0; }
.lp-gap .k { flex: 0 0 auto; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 3px 8px; border-radius: 999px; background: var(--lp-warn-soft); color: var(--lp-warn); margin-top: 2px; }
.lp-gap .k.test { background: var(--lp-brand-soft); color: var(--lp-brand); }
.lp-gap .k.profile { background: var(--lp-bad-soft); color: var(--lp-bad); }
.lp-gap .grow b { display: block; }
.lp-gap .grow .meta { font-size: 13px; color: var(--lp-muted); }
.lp-gap .grow .tgt { font-size: 13px; font-weight: 700; color: var(--lp-ink); }
.lp-gaps-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; }
@media (max-width: 900px) { .lp-gaps-cols { grid-template-columns: 1fr; } }
.lp-empty { text-align: center; padding: 40px 20px; color: var(--lp-muted); }
@media (max-width: 1200px) {
    .lp-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .lp-span4, .lp-span5, .lp-span6, .lp-span7, .lp-span8 { grid-column: span 12; }
}
@media (max-width: 600px) {
    .lp-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lp-hero .lp-big { font-size: 40px; }
    .lp-form { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Test calendar (shared by My health and Tests & calendar) */
.lp-cal { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.lp-month { border: 1px solid var(--lp-line); border-radius: 12px; padding: 10px 12px; min-height: 96px; display: flex; flex-direction: column; gap: 6px; }
.lp-month.now { border-color: var(--lp-brand); box-shadow: inset 0 0 0 1px var(--lp-brand); }
.lp-month h3 { font-size: 14px; margin: 0; font-family: var(--lp-body); font-weight: 700; color: var(--lp-ink); }
.lp-month .none { font-size: 12px; color: var(--lp-muted); }
.lp-ev { display: flex; gap: 7px; align-items: flex-start; font-size: 13px; line-height: 1.3; }
.lp-ev .dot { flex: 0 0 8px; height: 8px; border-radius: 50%; margin-top: 5px; background: var(--lp-brand); }
.lp-ev .dot.overdue { background: var(--lp-bad); }
.lp-ev .dot.no_record { background: var(--lp-warn); }
.lp-ev small { display: block; color: var(--lp-muted); font-size: 11px; }
.lp-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--lp-muted); }
.lp-legend span { display: inline-flex; align-items: center; gap: 6px; }
.lp-legend .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lp-brand); display: inline-block; }
.lp-legend .dot.overdue { background: var(--lp-bad); } .lp-legend .dot.no_record { background: var(--lp-warn); }
.lp-cal { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lp-calwrap { display: flex; flex-direction: column; gap: 12px; }
.lp-monthnav { display: flex; align-items: center; gap: 12px; }
.lp-monthnav b { font-family: var(--lp-display); font-size: 16px; min-width: 140px; text-align: center; }
.lp-calwrap .dot { background: var(--lp-brand); }
.lp-calwrap .dot.overdue { background: var(--lp-bad); }
.lp-calwrap .dot.no_record { background: var(--lp-warn); }
.lp-pill.muted { background: #EEF1EF; color: var(--lp-muted); }
@media (max-width: 1100px) { .lp-cal { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) { .lp-cal { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Chart controls and focus list on My health */
.lp-ctrls { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.lp-seg button { padding: 5px 11px; border-radius: 7px; font-size: 13px; font-weight: 500; color: var(--lp-muted); background: none; border: 0; cursor: pointer; }
.lp-seg button[aria-pressed="true"] { background: var(--lp-brand); color: #FFFFFF; }
.lp-seg.sm a { padding: 4px 9px; font-size: 12px; }
.lp-datatable { max-height: 300px; overflow: auto; }
.lp-datatable table { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.lp-datatable th { position: sticky; top: 0; background: var(--lp-surface); text-align: left; font-size: 12px; color: var(--lp-muted); padding: 6px 8px; border-bottom: 1px solid var(--lp-line); }
.lp-datatable td { padding: 6px 8px; border-top: 1px solid var(--lp-line); }
.lp-spanbar { position: relative; height: 14px; border-radius: 999px; background: #2A423A; overflow: hidden; margin-top: 6px; }
.lp-spanbar i { position: absolute; top: 0; bottom: 0; left: 0; }
.lp-spanbar .age { background: #6B7F78; }
.lp-spanbar .health { background: var(--lp-lime); }
.lp-spanbar .ill { background: #E0A458; }
.lp-spanlegend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: #A9B8B2; margin-top: 6px; }
.lp-spanlegend i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 5px; }
.lp-focus { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--lp-line); }
.lp-focus:first-child { border-top: 0; }
.lp-focus .n { flex: 0 0 26px; height: 26px; border-radius: 50%; background: var(--lp-brand-soft); color: var(--lp-brand); font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: 13px; }
.lp-focus .grow { flex: 1; min-width: 0; }
.lp-focus .grow b { display: block; }
.lp-focus .meta { font-size: 13px; color: var(--lp-muted); }
.lp-focus ol { margin: 6px 0 0 18px; padding: 0; font-size: 13px; }
.lp-focus .gain { text-align: right; flex: 0 0 auto; }

/* Lifespan counter, action plan and Health AI on My health */
.lp-counter { align-items: center; }
.lp-ring { position: relative; width: 190px; height: 190px; flex: 0 0 auto; }
.lp-ring svg { width: 100%; height: 100%; }
.lp-ring circle { transition: stroke-dasharray .6s ease; }
.lp-ring-in { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.lp-ring-in b { font-family: var(--lp-display); font-size: 46px; line-height: 1; color: #FFFFFF; font-variant-numeric: tabular-nums; }
.lp-ring-in .lp-lbl { color: #A9B8B2; font-size: 12px; }
.lp-counter-main { flex: 1; min-width: 260px; display: flex; flex-direction: column; gap: 8px; }
.lp-counter .lp-big { font-size: 30px; }
.lp-counter .lp-big small { font-size: 15px; color: #A9B8B2; }
.lp-counter-row { display: flex; gap: 22px; flex-wrap: wrap; }
.lp-counter-row div { min-width: 120px; }
.lp-counter-row b { display: block; font-family: var(--lp-display); font-size: 22px; color: #FFFFFF; font-variant-numeric: tabular-nums; }
.lp-counter-row b.lime { color: var(--lp-lime); }
.lp-counter-row span { font-size: 12px; color: #A9B8B2; }
.lp-progress { height: 10px; border-radius: 999px; background: #22382F; overflow: hidden; }
.lp-progress i { display: block; height: 100%; background: var(--lp-lime); border-radius: 999px; transition: width .6s ease; }
.lp-on-dark { color: #C9D6D1 !important; }
.lp-on-dark a { color: var(--lp-lime); }
.lp-bump { animation: lpBump .7s ease; }
@keyframes lpBump { 0% { color: var(--lp-lime); transform: scale(1.08); } 100% { transform: none; } }
.lp-cats { flex-wrap: wrap; }
.lp-cats small { opacity: .75; margin-left: 3px; }
.lp-act { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--lp-line); }
.lp-act:first-child { border-top: 0; }
.lp-act[hidden] { display: none; }
.lp-act .grow { flex: 1; min-width: 0; }
.lp-act .grow > b { display: block; }
.lp-act .meta { font-size: 13px; color: var(--lp-muted); }
.lp-act details { font-size: 13px; margin-top: 4px; }
.lp-act summary { color: var(--lp-brand); cursor: pointer; font-weight: 500; }
.lp-act ol { margin: 4px 0 0 18px; padding: 0; }
.lp-act .gain { text-align: right; flex: 0 0 auto; }
.lp-act[data-status="done"] .grow > b { color: var(--lp-brand); }
.lp-act-form { margin: 0; }
.lp-inline { display: inline; }
.lp-check { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--lp-line); background: var(--lp-surface); color: transparent; display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; flex: 0 0 auto; }
.lp-check:hover { border-color: var(--lp-brand); color: var(--lp-brand); }
.lp-check[aria-pressed="true"] { background: var(--lp-brand); border-color: var(--lp-brand); color: #FFFFFF; }
.lp-act-state { font-size: 12px; color: var(--lp-muted); margin-top: 4px; }
.lp-act[data-status="check"] .lp-act-state { color: var(--lp-warn); }
.lp-linkbtn { background: none; border: 0; padding: 0; color: var(--lp-brand); font-weight: 500; cursor: pointer; font-size: 12px; }
.lp-tag { display: inline-block; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 1px 7px; border-radius: 999px; margin-right: 4px; background: #EEF1EF; color: var(--lp-muted); }
.lp-tag.fitness { background: var(--lp-brand-soft); color: var(--lp-brand); }
.lp-tag.eating { background: #FFF2CC; color: #6B4E00; }
.lp-tag.tests { background: #E2ECF8; color: #1D4F86; }
.lp-tip { font-size: 13px; background: var(--lp-brand-soft); border-radius: 10px; padding: 7px 10px; margin-top: 6px; }
.lp-tip span { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--lp-brand); margin-right: 6px; }
.lp-ai-plan p { margin: 0 0 6px; }
.lp-ai-q { margin: 0 0 6px 18px; padding: 0; font-size: 13px; }
.lp-chat { display: flex; flex-direction: column; gap: 8px; max-height: 420px; overflow: auto; }
.lp-chat:empty { display: none; }
.lp-msg { border-radius: 12px; padding: 8px 12px; font-size: 14px; max-width: 92%; }
.lp-msg p { margin: 0 0 6px; } .lp-msg p:last-child { margin: 0; }
.lp-msg ul { margin: 0 0 6px 18px; padding: 0; }
.lp-msg.user { align-self: flex-end; background: var(--lp-brand); color: #FFFFFF; }
.lp-msg.assistant { align-self: flex-start; background: #F1F4F2; }
.lp-msg.pending { color: var(--lp-muted); font-style: italic; }
.lp-msg.error { align-self: stretch; background: var(--lp-warn-soft); color: var(--lp-warn); max-width: none; }
.lp-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.lp-chips button { border: 1px solid var(--lp-line); background: var(--lp-surface); border-radius: 999px; padding: 4px 10px; font-size: 12px; color: var(--lp-ink); cursor: pointer; }
.lp-chips button:hover { border-color: var(--lp-brand); color: var(--lp-brand); }
.lp-ask textarea { resize: vertical; }
.lp-ask-row { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; }
@media (max-width: 600px) {
    .lp-ring { width: 150px; height: 150px; margin: 0 auto; }
    .lp-ring-in b { font-size: 36px; }
    .lp-counter-row { gap: 14px; }
}
.lp-counter .lp-counter-main { flex: 1 1 420px; }
.lp-counter .lp-facts { flex-basis: 100%; padding-top: 12px; border-top: 1px solid #2A423A; }
