/* Onglet Résumé : lisible en cinq secondes, sans défiler. */
.summary { padding: 2px 0 10px; }
.summary-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.summary-eyebrow { margin: 0; font-size: 12px; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.summary-refresh { font-size: 13px; }

.summary-loader { display: flex; align-items: center; gap: 12px; padding: 6px 0 10px; }
.summary-orb { width: 52px; height: 52px; margin: -4px; flex-shrink: 0; }
.summary-orb .orbe { width: 100%; height: 100%; }
.summary-orb canvas { width: 100%; height: 100%; display: block; }
.summary-stage { margin: 0; font-size: 14px; font-weight: 600; color: var(--ink); }
.summary-clock { margin: 2px 0 0; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: no-preference) {
	.summary-row { animation: summary-in .24s ease-out both; }
	@keyframes summary-in { from { opacity: 0; transform: translateY(3px); } }
}

.summary-card {
	width: 100%; display: grid; grid-template-columns: 1fr auto; grid-template-areas: 'where price' 'time price';
	align-items: center; gap: 2px 12px; padding: 12px 14px; margin-bottom: 8px; text-align: left;
	background: #f1f8e6; border-radius: 12px; box-shadow: inset 0 0 0 1.5px #b6f16a; color: var(--ink);
}
.summary-card-where { grid-area: where; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 6px; min-width: 0; }
.summary-card-where strong { font-size: 16px; }
.summary-card-where span { font-size: 14px; color: var(--muted); }
.summary-card-time { grid-area: time; font-size: 13px; color: var(--muted); }
.summary-card-price { grid-area: price; font-size: 26px; font-weight: 800; letter-spacing: -.5px; font-variant-numeric: tabular-nums; }
.summary-card-price small { font-size: 13px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
@media (hover: hover) and (pointer: fine) { .summary-card:hover { background: #e9f4d9; } }

.summary-rows { margin: 0; display: grid; }
.summary-row { display: grid; grid-template-columns: 74px 1fr; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.summary-row:last-child { border-bottom: 0; }
.summary-row dt { font-size: 11.5px; font-weight: 650; letter-spacing: .03em; text-transform: uppercase; color: var(--muted); padding-top: 2px; }
.summary-row dd { margin: 0; font-size: 15px; line-height: 1.35; color: var(--ink); text-wrap: pretty; }
.summary-row.is-template dd { color: var(--muted); }

.summary-more { width: 100%; margin-top: 10px; padding: 9px; border-radius: 9px; background: #edf3f2; color: var(--ink); font-size: 14px; font-weight: 650; }
.summary-detail { margin-top: 10px; font-size: 14px; line-height: 1.5; }
.summary-detail p { margin: 0 0 8px; text-wrap: pretty; }
.summary-options { margin: 0 0 8px; padding-left: 18px; display: grid; gap: 4px; font-size: 13px; }
.summary-meta { margin: 10px 0 6px; font-size: 11.5px; color: var(--muted); }
.summary-pref { font-size: 13px; color: var(--muted); }

/* Variante B (choix de Kenzo, 28 octobre) : tuiles chiffrées, puis favorite, contexte et remarque. */
.summary-tiles { display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: 6px; margin: 0 0 10px; }
.summary-tile { display: grid; gap: 2px; align-content: start; padding: 9px 9px 8px; border-radius: 11px; background: #f3f7f7; min-width: 0; }
.summary-tile-label { font-size: 10.5px; font-weight: 650; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.summary-tile strong { display: flex; align-items: center; gap: 5px; font-size: 17px; line-height: 1.2; color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: -.3px; white-space: nowrap; }
.summary-tile.is-gain strong { font-size: 22px; color: #17734a; }
.summary-tile-sub { font-size: 11.5px; line-height: 1.3; color: var(--muted); }
.summary-tile .dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.summary-tile .dot.ok { background: #3fbf7f; box-shadow: 0 0 0 3px #3fbf7f26; }
.summary-tile .dot.warn { background: #f0a23a; box-shadow: 0 0 0 3px #f0a23a2e; }
.spark-wrap { display: block; line-height: 0; margin: 2px 0; min-height: 30px; }
.spark-wrap.is-empty { border-radius: 6px; background: linear-gradient(90deg, #e6eeee, #f3f7f7, #e6eeee); background-size: 200% 100%; }
@media (prefers-reduced-motion: no-preference) { .spark-wrap.is-empty { animation: spark-wait 1.2s linear infinite; } @keyframes spark-wait { to { background-position: -200% 0; } } }
.spark { display: block; overflow: visible; max-width: 100%; height: auto; }
.spark-local { fill: none; stroke: #083f42; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.spark-france { fill: none; stroke: #8fa3a6; stroke-width: 1.3; stroke-dasharray: 3 3; }
.spark-dot { fill: #b6f16a; stroke: #083f42; stroke-width: 1.5; }
.summary-lines p { margin: 0 0 8px; font-size: 14px; line-height: 1.35; color: var(--ink); }
.summary-fav .star { color: #c99a06; }
.summary-context .chip { display: inline-block; margin-right: 6px; padding: 2px 7px; border-radius: 99px; background: #fff3dc; color: #8a4f00; font-size: 11px; font-weight: 650; vertical-align: 1px; }
.summary-lines .summary-note { color: var(--muted); font-size: 13px; }
.summary-detail .summary-rows { margin-bottom: 10px; }
.summary-empty { margin: 4px 0 10px; color: var(--muted); }
