/* ライフプラン（入力式・2026-10-22〜）。既存の色・余白・フォントに合わせる。スマホ390px幅を最優先。
   タップ領域は44px以上。色だけで意味を伝えない（バッジ・文言・記号を併用）。 */
main#app.has-plan-ui { max-width: 1440px; padding: 12px 12px calc(96px + env(safe-area-inset-bottom)); }

.lpn-root { --lpn-line: #dde6e1; --lpn-top: 52px; color: var(--color-text); }
.lpn-root *, .lpn-panel-root * { box-sizing: border-box; }
.lpn-root button, .lpn-root select, .lpn-root input, .lpn-panel-root button, .lpn-panel-root select, .lpn-panel-root input { font: inherit; color: inherit; }
.lpn-root :is(button, select, input, summary, td.lpn-edit, .lpn-table-scroll, .lpn-mt-scroll):focus-visible,
.lpn-panel-root :is(button, select, input, summary):focus-visible { outline: 3px solid var(--color-chi); outline-offset: 2px; }
.lpn-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.lpn-negative, .lpn-warn { color: var(--color-negative); font-weight: 700; }

/* ---------- ボタン・入力 ---------- */
.lpn-btn { min-height: 44px; padding: 8px 14px; border: 1px solid var(--lpn-line); border-radius: 10px; background: #fff; color: #244f40; cursor: pointer; font-size: .88rem; display: inline-flex; align-items: center; justify-content: center; gap: 4px; }
.lpn-btn:disabled { opacity: .4; cursor: default; }
.lpn-btn.is-primary { background: var(--color-accent); border-color: var(--color-accent); color: #fff; font-weight: 700; }
.lpn-btn.is-danger { color: var(--color-negative); border-color: #e6c3bb; }
.lpn-btn small { font-size: .72rem; opacity: .8; }
.lpn-btnrow { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.lpn-input { width: 100%; min-height: 44px; padding: 8px 10px; border: 1px solid #c9d3ce; border-radius: 9px; background: #fff; font-size: 16px; }
.lpn-input[aria-invalid="true"] { border-color: var(--color-negative); background: #fff6f4; }
.lpn-field { display: grid; gap: 4px; margin: 10px 0; min-width: 0; }
.lpn-label { font-size: .78rem; font-weight: 700; color: #3b524a; }
.lpn-inputwrap { display: flex; align-items: center; gap: 6px; min-width: 0; }
.lpn-suffix { font-size: .8rem; color: var(--color-text-muted); white-space: nowrap; }
.lpn-note { min-height: 1.1em; font-size: .75rem; color: var(--color-text-muted); }
.lpn-note.is-error, .lpn-formerr { color: var(--color-negative); font-weight: 700; }
.lpn-note.is-error::before { content: "⚠ "; }
.lpn-formerr { font-size: .82rem; margin: 10px 0 0; min-height: 1em; }
.lpn-formerr:empty { display: none; }
.lpn-help { font-size: .76rem; line-height: 1.7; color: var(--color-text-muted); margin: 6px 0; }
.lpn-check { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: .86rem; margin: 6px 0; }
.lpn-check input { width: 22px; height: 22px; accent-color: var(--color-accent); flex: none; }
.lpn-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.lpn-empty { font-size: .84rem; color: var(--color-text-muted); margin: 10px 0; }
.lpn-caption { font-size: .75rem; color: var(--color-text-muted); line-height: 1.7; margin: 6px 0; }

/* ---------- 上部（プラン・働き方・利回り・タブ） ---------- */
.lpn-head { margin-bottom: 12px; }
.lpn-head-row { display: grid; grid-template-columns: 1.4fr 1fr; gap: 6px 10px; padding: 12px; background: #fff; border: 1px solid var(--lpn-line); border-radius: var(--radius); }
.lpn-head-row .lpn-field { margin: 0; grid-column: 1 / -1; order: 3; }
.lpn-plan-pick, .lpn-rate { display: grid; gap: 4px; }
.lpn-seg { display: flex; border: 1px solid var(--lpn-line); border-radius: 10px; overflow: hidden; }
.lpn-segbtn { flex: 1; min-height: 44px; padding: 6px 8px; border: 0; background: #fff; font-size: .84rem; cursor: pointer; }
.lpn-segbtn + .lpn-segbtn { border-left: 1px solid var(--lpn-line); }
.lpn-segbtn[aria-pressed="true"] { background: var(--color-accent); color: #fff; font-weight: 700; }
.lpn-segbtn[aria-pressed="true"]::before { content: "✓ "; }
.lpn-tabbar { position: sticky; top: var(--lpn-top); z-index: 8; display: flex; align-items: center; gap: 8px; padding: 8px 0; margin-top: 6px; background: var(--color-bg); }
.lpn-tabs { display: flex; flex: 1; border: 1px solid var(--lpn-line); border-radius: 10px; overflow: hidden; background: #fff; }
.lpn-tab { flex: 1; min-height: 44px; border: 0; background: #fff; font-size: .92rem; font-weight: 700; color: var(--color-text-muted); cursor: pointer; }
.lpn-tab + .lpn-tab { border-left: 1px solid var(--lpn-line); }
.lpn-tab[aria-selected="true"] { background: var(--color-accent-soft); color: var(--color-accent); box-shadow: inset 0 -3px 0 var(--color-accent); }
.lpn-undo { white-space: nowrap; }
.lpn-status { min-height: 1.2em; margin: 2px 0 0; font-size: .75rem; color: var(--color-text-muted); }
.lpn-status.is-error { color: var(--color-negative); font-weight: 700; }

/* ---------- カード・指標 ---------- */
.lpn-card { background: #fff; border: 1px solid var(--lpn-line); border-radius: var(--radius); padding: 16px 14px; margin-bottom: 14px; }
.lpn-card h3 { font-size: 1rem; margin-bottom: 8px; }
.lpn-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.lpn-kpi { background: #fff; border: 1px solid var(--lpn-line); border-radius: var(--radius); padding: 12px; min-width: 0; }
.lpn-kpi-label { font-size: .74rem; color: var(--color-text-muted); font-weight: 700; }
.lpn-kpi strong { display: block; font-size: 1.45rem; margin: 4px 0; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.lpn-kpi strong small { font-size: .72rem; font-weight: 400; margin-left: 3px; }
.lpn-kpi p { font-size: .68rem; color: var(--color-text-muted); margin: 0; }
.lpn-kpi.is-alert { border-color: #e6c3bb; background: #fff8f6; }
.lpn-kpi:last-child:nth-child(odd) { grid-column: 1 / -1; }
.lpn-alert { background: #fff0d3; color: #6b4410; border-radius: 10px; padding: 10px 12px; font-size: .82rem; line-height: 1.7; margin: 0 0 12px; border-left: 4px solid #d99a2b; }

/* ---------- グラフ ---------- */
.lpn-chart-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.lpn-inline { display: flex; align-items: center; gap: 6px; font-size: .78rem; }
.lpn-inline .lpn-input { width: auto; min-width: 150px; }
.lpn-chart { display: block; width: 100%; max-height: 320px; overflow: visible; cursor: crosshair; margin-top: 8px; }
.lpn-chart text { font-family: inherit; font-size: 15px; fill: var(--color-text-muted); }
.lpn-grid { stroke: #dfe6e2; stroke-dasharray: 4 4; }
.lpn-area { fill: var(--color-accent-soft); }
.lpn-line { fill: none; stroke: var(--color-accent); stroke-width: 3; }
.lpn-dot { fill: var(--color-accent); }
.lpn-cursor { stroke: var(--color-chi); stroke-width: 1.5; stroke-dasharray: 4 4; pointer-events: none; }
.lpn-selected { fill: var(--color-chi); stroke: #fff; stroke-width: 2; pointer-events: none; }
.lpn-chart-picker { display: flex; align-items: center; gap: 10px; margin: 10px 0; }
.lpn-chart-picker label { flex: 1; min-width: 0; display: grid; }
.lpn-chart-picker input { width: 100%; min-height: 44px; accent-color: var(--color-accent); }
#lpn-chart-value { padding: 14px; background: #f2f8f4; border-radius: 10px; font-variant-numeric: tabular-nums; min-height: 80px; }
#lpn-chart-value > span { display: block; font-size: .8rem; color: #52695d; }
#lpn-chart-value > strong { display: block; font-size: 1.6rem; margin: 6px 0 10px; }
#lpn-chart-value dl { margin: 0; }
#lpn-chart-value dl > div { display: flex; justify-content: space-between; gap: 12px; font-size: .82rem; margin: 5px 0; }
#lpn-chart-value dd { margin: 0; }

/* ---------- 年表 ---------- */
.lpn-table-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; margin-bottom: 8px; }
.lpn-table-head h3 { font-size: 1rem; margin: 0; }
.lpn-table-scroll { overflow: auto; max-height: 72vh; border: 1px solid var(--lpn-line); border-radius: 8px; background: #fff; -webkit-overflow-scrolling: touch; }
.lpn-table { border-collapse: separate; border-spacing: 0; width: max-content; min-width: 100%; font-size: .8rem; font-variant-numeric: tabular-nums; }
.lpn-table th, .lpn-table td { padding: 0 10px; height: 44px; min-width: 76px; text-align: right; border-bottom: 1px solid #edf0ee; white-space: nowrap; background: #fff; }
.lpn-table th[scope="row"] { position: sticky; left: 0; z-index: 1; min-width: 148px; max-width: 190px; text-align: left; font-weight: 500; background: #fff; box-shadow: 1px 0 var(--lpn-line); overflow: hidden; text-overflow: ellipsis; }
.lpn-table thead th { position: sticky; top: 0; z-index: 2; background: var(--color-accent); color: #fff; }
.lpn-table thead th.lpn-corner { left: 0; z-index: 3; text-align: left; }
.lpn-table thead th.is-now { background: var(--color-chi); }
.lpn-table td.is-now { background: #fff6ec; }
.lpn-table td.is-neg { color: var(--color-negative); font-weight: 700; }
.lpn-r.is-total > * { background: var(--color-accent-soft); font-weight: 700; }
.lpn-r.is-total > td.is-now { background: #f3e7d6; }
.lpn-r.is-net > * { font-weight: 700; }
.lpn-r.is-indent1 th[scope="row"] { padding-left: 24px; color: #4a5b54; font-size: .76rem; }
.lpn-r.is-sub th[scope="row"] { padding: 0; }
.lpn-r-text td, .lpn-r-text th { font-size: .72rem; }
.lpn-r-text.is-events td { max-width: 160px; overflow: hidden; text-overflow: ellipsis; }
.lpn-toggle { width: 100%; min-height: 44px; padding: 0 10px; border: 0; background: transparent; text-align: left; font-size: .8rem; color: var(--color-accent); font-weight: 700; cursor: pointer; }
td.lpn-edit { cursor: pointer; }
td.lpn-edit:hover { background: var(--color-accent-soft); }

/* ---------- スマホ用の縦年表（幅700px未満。700px以上は上の横長年表） ---------- */
.lpn-tl-wide { display: none; }
.lpn-mt-scroll { position: relative; overflow-x: hidden; overflow-y: auto; max-height: 70vh; border: 1px solid var(--lpn-line); border-radius: 8px; background: #fff; -webkit-overflow-scrolling: touch; font-variant-numeric: tabular-nums; }
.lpn-mt-head, .lpn-mt-row { display: grid; grid-template-columns: 60px repeat(4, minmax(0, 1fr)); align-items: center; column-gap: 4px; width: 100%; padding: 0 8px; text-align: right; }
.lpn-mt-head { position: sticky; top: 0; z-index: 2; min-height: 36px; background: var(--color-accent); color: #fff; font-size: .72rem; font-weight: 700; }
.lpn-mt-head > :first-child, .lpn-mt-y { text-align: left; }
.lpn-root .lpn-mt-row { min-height: 48px; border: 0; border-bottom: 1px solid #edf0ee; background: #fff; font-size: .82rem; cursor: pointer; }
.lpn-mt-year.is-now > .lpn-mt-row { background: #fff6ec; }
.lpn-mt-year.is-open > .lpn-mt-row { background: var(--color-accent-soft); font-weight: 700; }
.lpn-mt-y { display: grid; line-height: 1.25; }
.lpn-mt-yl { display: flex; align-items: center; gap: 3px; white-space: nowrap; }
.lpn-mt-yl b { font-size: .98rem; }
.lpn-mt-y small { font-size: .66rem; color: var(--color-text-muted); white-space: nowrap; }
.lpn-mt-n { white-space: nowrap; }
.lpn-mt-n.is-neg, .lpn-md-v.is-neg { color: var(--color-negative); font-weight: 700; }
.lpn-mt-last { display: grid; justify-items: end; }
.lpn-mt-tag, .lpn-mt-flag { font-style: normal; font-size: .6rem; font-weight: 700; line-height: 1; padding: 2px 4px; border-radius: 4px; }
.lpn-mt-tag { background: var(--color-chi); color: #fff; }
.lpn-mt-flag { background: #fbe4df; color: var(--color-negative); }
/* 開いた年の内訳（2列：項目名｜金額。見出しで区切る） */
.lpn-md { padding: 2px 12px 12px; background: #f7faf8; border-bottom: 1px solid var(--lpn-line); }
.lpn-md-sec h4 { margin: 12px 0 2px; padding-bottom: 4px; border-bottom: 1px solid var(--lpn-line); font-size: .78rem; color: var(--color-accent); }
.lpn-root .lpn-md-line { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; width: 100%; min-height: 32px; padding: 3px 0; border: 0; background: transparent; text-align: left; font-size: .86rem; }
.lpn-md-k { min-width: 0; overflow-wrap: anywhere; }
.lpn-md-v { position: relative; padding-right: 16px; text-align: right; overflow-wrap: anywhere; }
.lpn-md-line.is-total { font-weight: 700; }
.lpn-md-edit { min-height: 44px; border-bottom: 1px dashed #d5dfda; cursor: pointer; }
.lpn-md-edit .lpn-md-v::after { content: "›"; position: absolute; right: 2px; top: 50%; transform: translateY(-52%); color: var(--color-accent); font-size: 1.1rem; }
.lpn-assumptions { font-size: .78rem; color: var(--color-text-muted); padding: 0 4px; }
.lpn-assumptions h3 { font-size: .88rem; color: #52695d; }
.lpn-assumptions p { line-height: 1.8; }

/* ---------- 入力タブ（区分ごとの一覧） ---------- */
.lpn-lead { font-size: .8rem; color: var(--color-text-muted); line-height: 1.7; margin: 0 0 10px; }
.lpn-sec { background: #fff; border: 1px solid var(--lpn-line); border-radius: var(--radius); margin-bottom: 10px; overflow: hidden; }
.lpn-sec > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 52px; padding: 8px 14px; cursor: pointer; font-weight: 700; }
.lpn-sec > summary::-webkit-details-marker { display: none; }
.lpn-sec > summary::before { content: "▸"; color: var(--color-accent); margin-right: 8px; transition: transform .15s; }
.lpn-sec[open] > summary::before { transform: rotate(90deg); }
.lpn-sec-title { flex: 1; font-size: .98rem; }
.lpn-sec-count { font-size: .76rem; font-weight: 400; color: var(--color-text-muted); }
.lpn-sec-body { padding: 0 10px 12px; border-top: 1px solid #edf0ee; }
.lpn-group { font-size: .78rem; color: #52695d; margin: 14px 4px 2px; font-weight: 700; }
.lpn-row { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 56px; padding: 8px 6px; border: 0; border-bottom: 1px solid #f0f2f0; background: transparent; text-align: left; cursor: pointer; }
.lpn-row:active, .lpn-row:hover { background: var(--color-accent-soft); }
.lpn-row-main { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.lpn-row-name { font-size: .94rem; font-weight: 600; }
.lpn-row-sub { flex-basis: 100%; font-size: .72rem; color: var(--color-text-muted); }
.lpn-row-val { font-size: .95rem; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
.lpn-row-val small { font-size: .68rem; font-weight: 400; color: var(--color-text-muted); margin-left: 2px; }
.lpn-chev { color: #9aa6a0; font-size: 1.3rem; }
.lpn-badge { display: inline-block; font-size: .66rem; font-weight: 700; padding: 2px 7px; border-radius: 999px; background: #eef1ef; color: #4a5b54; border: 1px solid #dde3df; white-space: nowrap; }
.lpn-badge.is-family { background: var(--color-accent-soft); color: var(--color-accent); border-color: #c9e0d6; }
.lpn-badge.is-child { background: #eaf1fb; color: #2d5c9a; border-color: #c9d9ee; }
.lpn-badge.is-seg { background: #fff0d3; color: #805210; border-color: #ecd49c; }
.lpn-badge.is-tent { background: #f2eafa; color: #6a3f99; border-color: #dccbee; }
.lpn-badge.is-warn { background: #fdecea; color: var(--color-negative); border-color: #f0c8c1; }
.lpn-add { width: 100%; margin-top: 10px; border-style: dashed; color: var(--color-accent); font-weight: 700; justify-content: flex-start; }

/* ---------- 編集パネル（スマホ＝下から出るシート／PC＝右側） ---------- */
body.lpn-panel-open { overflow: hidden; }
.lpn-scrim { position: fixed; inset: 0; z-index: 48; background: rgb(18 38 30 / 45%); }
.lpn-panel { position: fixed; z-index: 50; left: 0; right: 0; bottom: 0; max-height: 90dvh; display: flex; flex-direction: column; background: #fff; border-radius: 16px 16px 0 0; box-shadow: 0 -6px 24px rgb(0 0 0 / 22%); outline: none; animation: lpn-up .18s ease-out; }
@keyframes lpn-up { from { transform: translateY(24px); opacity: .6; } to { transform: none; opacity: 1; } }
.lpn-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px 8px 16px; border-bottom: 1px solid var(--lpn-line); flex: none; }
.lpn-panel-head h3 { font-size: 1rem; line-height: 1.3; min-width: 0; overflow-wrap: anywhere; }
.lpn-close { min-width: 44px; font-size: 1.3rem; }
.lpn-panel-body { overflow: auto; padding: 0 16px calc(24px + env(safe-area-inset-bottom)); -webkit-overflow-scrolling: touch; }
.lpn-live-slot { position: sticky; top: 0; z-index: 3; margin: 0 -16px; padding: 0 16px; background: #fff; }
.lpn-live { padding: 8px 10px; margin: 8px 0; background: #f2f8f4; border-radius: 10px; font-size: .78rem; border: 1px solid #d6e7de; }
.lpn-live-now b { font-size: 1.05rem; }
.lpn-live-title { font-size: .72rem; color: #52695d; margin: 2px 0 4px; }
.lpn-proj { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 0; }
.lpn-proj > div { text-align: center; min-width: 46px; }
.lpn-proj dt { font-size: .66rem; color: var(--color-text-muted); }
.lpn-proj dd { margin: 0; font-size: .8rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.lpn-live-unit { font-size: .66rem; color: var(--color-text-muted); text-align: right; }
.lpn-live-assets { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.lpn-live-assets b { font-variant-numeric: tabular-nums; }
.lpn-block { border-top: 1px solid #edf0ee; padding-top: 10px; margin-top: 12px; }
.lpn-block h4 { font-size: .9rem; margin: 0 0 4px; color: #244f40; }
.lpn-unitrow { display: grid; gap: 4px; margin-bottom: 6px; }
.lpn-yearbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px; margin: 8px 0; background: #fff6ec; border: 1px solid #ecd49c; border-radius: 10px; font-size: .84rem; }
.lpn-yearbar .lpn-note { flex-basis: 100%; }
.lpn-seg-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.lpn-seg-card { border: 1px solid var(--lpn-line); border-radius: 10px; padding: 8px 10px 10px; background: #fcfdfc; }
.lpn-seg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
.lpn-segadd { margin-top: 10px; padding: 8px 10px; border: 1px dashed #b9c7c0; border-radius: 10px; }
.lpn-yearfield .lpn-inputwrap { max-width: 150px; }
.lpn-danger-zone { margin-top: 20px; padding-top: 12px; border-top: 1px solid #edf0ee; }
.lpn-master { border: 1px solid var(--lpn-line); border-radius: 10px; margin: 8px 0; padding: 0 10px 8px; }
.lpn-master > summary { min-height: 48px; display: flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 700; font-size: .9rem; }
.lpn-master > summary small { font-weight: 400; color: var(--color-text-muted); font-size: .72rem; }
.lpn-source { font-size: .72rem; line-height: 1.7; color: var(--color-text-muted); margin: 4px 0 6px; }

/* ---------- 比べる ---------- */
.lpn-vgrid { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 8px; }
.lpn-vcard { border: 1px solid var(--lpn-line); border-radius: 10px; padding: 10px 12px; }
.lpn-vcard.is-current, .lpn-plan.is-current { border-color: var(--color-accent); background: #f2f8f4; }
.lpn-vcard h4 { font-size: .86rem; margin: 0 0 6px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.lpn-vcard dl { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; margin: 0; }
.lpn-vcard dl > div { display: flex; flex-direction: column; }
.lpn-vcard dt { font-size: .68rem; color: var(--color-text-muted); }
.lpn-vcard dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; font-size: .92rem; }
.lpn-plans { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 10px; }
.lpn-plan { border: 1px solid var(--lpn-line); border-radius: 10px; padding: 10px 12px; }
.lpn-plan h4 { font-size: .94rem; margin: 0 0 4px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.lpn-plan-meta { font-size: .74rem; color: var(--color-text-muted); margin: 0 0 8px; }
.lpn-rename { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 6px; }
.lpn-rename .lpn-input { flex: 1; min-width: 160px; }
.lpn-filebtn { position: relative; cursor: pointer; }
.lpn-filebtn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.lpn-msg { font-size: .82rem; color: #805210; min-height: 1.2em; margin: 6px 0 0; }

/* ---------- 広い画面 ---------- */
@media (min-width: 700px) {
  .lpn-head-row { grid-template-columns: minmax(200px, 1.2fr) minmax(140px, .7fr) minmax(280px, 1.6fr); align-items: end; }
  .lpn-head-row .lpn-field { grid-column: auto; order: 0; }
  .lpn-kpis { grid-template-columns: repeat(5, 1fr); }
  .lpn-tl-wide { display: block; }
  .lpn-tl-narrow { display: none; }
  .lpn-kpi:last-child:nth-child(odd) { grid-column: auto; }
  .lpn-vgrid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
  /* PCは右側のパネル。背景は暗くしすぎず、一覧を見ながら直せるようにする */
  .lpn-scrim { background: rgb(18 38 30 / 22%); }
  .lpn-panel { top: 0; left: auto; right: 0; bottom: 0; width: min(520px, 100vw); max-height: none; border-radius: 0; box-shadow: -6px 0 24px rgb(0 0 0 / 18%); animation: lpn-left .18s ease-out; }
  @keyframes lpn-left { from { transform: translateX(24px); opacity: .6; } to { transform: none; opacity: 1; } }
  .lpn-sections { max-width: 860px; }
}
@media (prefers-reduced-motion: reduce) { .lpn-panel { animation: none; } }
@media (max-width: 380px) {
  .lpn-grid2, .lpn-seg-grid { grid-template-columns: 1fr; }
  .lpn-kpi strong { font-size: 1.25rem; }
}
