/* ── Semantic tokens ── */
:root {
    --color-water: #1d6ea5;
    --color-water-bg: #e8f4fc;
    --color-warn: #bc6c25;
    --color-warn-bg: #fff4e8;
    --color-wild: #6b4e23;
    --color-wild-bg: #f5efe6;
    --color-cultive: #2d6a4f;
    --color-cultive-bg: #e8f5ee;
    --color-pipeline: #7b2cbf;
    --color-pipeline-bg: #f3ebff;
    --type-display: 1.35rem;
    --type-title: 1.1rem;
    --type-meta: 0.78rem;
}

/* ── Toasts ── */
.horti-toast-stack {
    position: fixed;
    top: calc(var(--chrome-top) + 0.75rem);
    left: 50%;
    transform: translateX(-50%);
    z-index: 500;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: min(420px, calc(100% - 1.5rem));
    pointer-events: none;
}

.horti-toast {
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    background: var(--color-primary-dark);
    color: #fff;
    font-size: 0.92rem;
    font-weight: 600;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.2s, transform 0.2s;
}

.horti-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.horti-toast--success {
    background: var(--color-primary);
}

.horti-toast--error {
    background: #9b2226;
}

.horti-toast {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.horti-toast__icon {
    font-size: 1.1rem;
    line-height: 1;
}

.horti-toast__text {
    flex: 1;
    min-width: 0;
}

.horti-toast--celebrate.is-visible {
    animation: horti-toast-celebrate 0.55s ease;
}

@keyframes horti-toast-celebrate {
    0% { transform: translateY(-8px) scale(0.96); }
    45% { transform: translateY(0) scale(1.03); }
    100% { transform: translateY(0) scale(1); }
}

/* ── Dashboard mission ── */
.dashboard-mission {
    margin-bottom: 0.85rem;
    border-width: 2px;
    overflow: hidden;
}

.dashboard-mission__eyebrow {
    margin: 0 0 0.5rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

.dashboard-mission__inner {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.65rem 0.85rem;
    align-items: center;
}

.dashboard-mission__icon {
    grid-row: span 2;
    font-size: 1.75rem;
    line-height: 1;
}

.dashboard-mission__title {
    margin: 0;
    font-size: 1.05rem;
}

.dashboard-mission__text {
    margin: 0.15rem 0 0;
    color: var(--color-text-muted);
    font-size: 0.92rem;
}

.dashboard-mission__cta {
    grid-column: 1 / -1;
    justify-self: start;
}

.dashboard-mission--water {
    border-color: var(--color-water);
    background: linear-gradient(135deg, var(--color-water-bg), var(--color-surface));
}

.dashboard-mission--reminder {
    border-color: var(--color-warn);
    background: linear-gradient(135deg, var(--color-warn-bg), var(--color-surface));
}

.dashboard-mission--pipeline {
    border-color: #c4b5fd;
    background: linear-gradient(135deg, #f5f3ff, var(--color-surface));
}

.dashboard-mission--harvest {
    border-color: #fbbf77;
    background: linear-gradient(135deg, #fff7ed, var(--color-surface));
}

.dashboard-mission--calm,
.dashboard-mission--start {
    border-color: var(--color-success-border);
    background: linear-gradient(135deg, var(--color-success-bg), var(--color-surface));
}

.dashboard-mission--streak {
    border-color: #f59e0b;
    background: linear-gradient(135deg, #fff7ed, var(--color-surface));
}

.dashboard-hero__streak {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    margin: 0.55rem 0 0;
    padding: 0.45rem 0.65rem;
    border-radius: var(--radius-sm);
    background: color-mix(in srgb, #fff7ed 70%, var(--color-surface));
    border: 1px solid color-mix(in srgb, #f59e0b 35%, var(--color-border));
}

.dashboard-hero__streak--done {
    background: color-mix(in srgb, var(--color-success-bg) 80%, var(--color-surface));
    border-color: var(--color-success-border);
}

.dashboard-hero__streak-icon {
    font-size: 1.1rem;
    line-height: 1.2;
}

.dashboard-hero__streak-copy {
    display: grid;
    gap: 0.1rem;
    font-size: 0.88rem;
}

.dashboard-hero__streak-copy .hint {
    font-size: 0.8rem;
}

.dashboard-season-progress {
    margin-top: 0.85rem;
    padding-top: 0.75rem;
    border-top: 1px solid color-mix(in srgb, var(--color-border) 70%, transparent);
}

.dashboard-season-progress__head {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.75rem;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 0.45rem;
}

.dashboard-season-progress__label {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--color-primary-dark);
}

.dashboard-season-progress__summary {
    margin: 0;
    font-size: 0.78rem;
}

.dashboard-season-progress__bar {
    display: flex;
    gap: 2px;
    min-height: 0.55rem;
    border-radius: 999px;
    overflow: hidden;
    background: color-mix(in srgb, var(--color-border) 55%, transparent);
}

.dashboard-season-progress__segment {
    min-width: 0;
    border-radius: 999px;
}

.dashboard-season-progress__segment--harvests {
    background: linear-gradient(90deg, #f59e0b, #fb923c);
}

.dashboard-season-progress__segment--evaluations {
    background: linear-gradient(90deg, #eab308, #facc15);
}

.dashboard-season-progress__segment--hybridations {
    background: linear-gradient(90deg, #a78bfa, #c4b5fd);
}

.dashboard-season-progress__segment--empty {
    flex: 1;
    background: transparent;
}

.dashboard-season-progress__legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem 1rem;
    margin: 0.45rem 0 0;
    padding: 0;
    list-style: none;
    font-size: 0.78rem;
}

.dashboard-hero__rankings {
    white-space: nowrap;
}

.harvest-rankings-page__group-title {
    margin: 1.25rem 0 0.65rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.entity-pipeline__bubble--pulse {
    animation: entity-pipeline-pulse 0.9s ease 2;
}

@keyframes entity-pipeline-pulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(45, 106, 79, 0.35); }
    50% { transform: scale(1.08); box-shadow: 0 0 0 6px rgba(45, 106, 79, 0); }
}

/* ── Dashboard urgency hero ── */
.dashboard-urgency {
    margin-bottom: 0.75rem;
    border-width: 2px;
}

.dashboard-urgency--water {
    border-color: var(--color-water);
    background: linear-gradient(135deg, var(--color-water-bg), var(--color-surface));
}

.dashboard-urgency--reminder {
    border-color: var(--color-warn);
    background: linear-gradient(135deg, var(--color-warn-bg), var(--color-surface));
}

.dashboard-urgency--pipeline {
    border-color: var(--color-pipeline);
    background: linear-gradient(135deg, var(--color-pipeline-bg), var(--color-surface));
}

.dashboard-urgency--alert {
    border-color: var(--color-warn);
    background: linear-gradient(135deg, var(--color-warn-bg), var(--color-surface));
}

.dashboard-urgency__inner {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.65rem 0.85rem;
    align-items: center;
}

.dashboard-urgency__icon {
    font-size: 1.75rem;
    grid-row: span 2;
}

.dashboard-urgency__title {
    margin: 0;
    font-size: var(--type-title);
    font-weight: 700;
}

.dashboard-urgency__text {
    margin: 0;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.dashboard-urgency__cta {
    grid-column: 1 / -1;
    width: 100%;
}

@media (min-width: 480px) {
    .dashboard-urgency__inner {
        grid-template-columns: auto 1fr auto;
    }

    .dashboard-urgency__cta {
        grid-column: 3;
        grid-row: 1 / span 2;
        width: auto;
    }
}

/* ── Typography hierarchy (entity views) ── */
.plant-card__name,
.entity-view__title {
    font-size: var(--type-display);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.plant-card__code,
.entity-list__code {
    font-size: var(--type-meta);
    color: var(--color-text-muted);
}

.plant-card__last-note {
    margin: 0.5rem 0 0;
    padding: 0.5rem 0.65rem;
    border-radius: var(--radius-sm);
    background: var(--color-bg-accent);
}

.plant-card__last-note-when {
    font-weight: 600;
}

/* ── Journal summary ── */
.journal-summary {
    padding: 0.75rem;
    margin-bottom: 0.75rem;
    border-radius: var(--radius-sm);
    background: var(--color-bg-accent);
    border: 1px solid var(--color-border);
}

.journal-summary__last {
    display: grid;
    gap: 0.35rem;
}

.journal-summary__when {
    font-size: var(--type-meta);
    color: var(--color-text-muted);
}

.journal-summary__excerpt {
    margin: 0;
    font-size: 0.92rem;
}

.journal-summary__hint {
    margin: 0.65rem 0 0;
}

.journal-timeline-details,
.journal-advanced {
    margin-top: 0.75rem;
}

.journal-timeline-details__summary,
.journal-advanced__summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--color-primary);
    padding: 0.35rem 0;
}

.journal-advanced__body {
    margin-top: 0.75rem;
}

/* ── Scan context ── */
.scan-context-banner {
    margin-bottom: 0.75rem;
    border-left: 4px solid var(--color-primary-light);
    background: var(--color-cultive-bg);
}

.scan-context-banner__text {
    margin: 0;
    font-weight: 600;
}

/* ── Entity list tactile ── */
.entity-list__link {
    min-height: 4.25rem;
    padding: 0.65rem 0.5rem;
}

.badge--wild {
    background: var(--color-wild-bg);
    color: var(--color-wild);
}

.badge--cultive {
    background: var(--color-cultive-bg);
    color: var(--color-cultive);
}

.badge--pipeline {
    background: var(--color-pipeline-bg);
    color: var(--color-pipeline);
}

.badge--gps {
    background: var(--color-water-bg);
    color: var(--color-water);
    border: 1px solid rgba(29, 110, 165, 0.25);
}

.entity-list__item--wild .entity-list__link {
    border-left: 3px solid var(--color-wild);
}

.entity-list__item--cultive .entity-list__link {
    border-left: 3px solid var(--color-cultive);
}

.badge--type-arrosage { background: var(--color-water-bg); color: var(--color-water); }
.badge--type-floraison { background: #fff0f8; color: #9d4edd; }
.badge--type-maladie { background: var(--color-warn-bg); color: var(--color-warn); }
.badge--type-observation { background: var(--color-cultive-bg); color: var(--color-cultive); }
.badge--type-evaluation { background: #eef6ff; color: #1d4ed8; }
.badge--type-recolte { background: #fff7ed; color: #c2410c; }
.badge--type-recolte_note { background: #fff7ed; color: #ea580c; }
.badge--type-degustation { background: #fef3c7; color: #b45309; }
.badge--type-hybridation { background: #f0fdf4; color: #15803d; }
.badge--type-preparation { background: #f0fdf4; color: #166534; }
.badge--type-pollinisation { background: #ecfdf5; color: #047857; }
.badge--type-fructification { background: #fff7ed; color: #c2410c; }
.badge--type-conditionnement { background: #f0f9ff; color: #0369a1; }
.badge--type-pretes { background: #f0fdf4; color: #15803d; }
.badge--type-pret_poter { background: #ecfdf5; color: #15803d; }
.badge--type-etape { background: #eef2ff; color: #4338ca; }
.badge--type-sechage { background: #f0f9ff; color: #0369a1; }
.badge--type-degustation { background: #fef3c7; color: #b45309; }
.badge--type-pipeline { background: #eef2ff; color: #4338ca; }
.badge--type-statut { background: #eef2ff; color: #4338ca; }
.badge--type-echec { background: var(--color-warn-bg); color: var(--color-warn); }
.badge--type-ia { background: #f5f3ff; color: #6d28d9; }

/* ── Quick bar separators ── */
.entity-quick-bar__btn + .entity-quick-bar__btn,
.entity-quick-bar__form + .entity-quick-bar__btn,
.plant-quick-bar__btn + .plant-quick-bar__btn,
.plant-quick-bar__form + .plant-quick-bar__btn {
    border-left: 1px solid var(--color-border);
}

.entity-quick-bar__btn:active,
.entity-quick-bar__btn:focus-visible,
.plant-quick-bar__btn:active,
.plant-quick-bar__btn:focus-visible {
    background: var(--color-bg-accent);
}

/* ── Plant add mode toggle ── */
.form-mode-toggle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.35rem;
    margin-bottom: 1rem;
}

.form-mode-toggle__item {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
    padding: 0.5rem;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-surface);
    font-weight: 600;
    cursor: pointer;
}

.form-mode-toggle__item:has(input:checked) {
    border-color: var(--color-primary);
    background: var(--color-cultive-bg);
    color: var(--color-primary-dark);
}

.form-mode-toggle__item input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

[data-form-section="complete"][hidden] {
    display: none !important;
}

/* ── Cycle contextual CTA ── */
.plant-cycle-panel__note-cta {
    margin-top: 0.5rem;
}

.plant-cycle-panel__hint {
    margin: 0 0 0.35rem;
    font-size: 0.82rem;
}

.pipeline-stage-dates {
    margin: 0.35rem 0 0.65rem;
    padding: 0.55rem 0.65rem;
    border-radius: var(--radius-sm);
    background: var(--color-bg);
    border: 1px solid var(--color-border);
}

.pipeline-stage-dates__title {
    margin: 0 0 0.35rem;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-text-muted);
}

.pipeline-stage-dates__list {
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 0.84rem;
}

.pipeline-stage-dates__list li + li {
    margin-top: 0.2rem;
}

.pipeline-stage-dates__label {
    font-weight: 600;
}

.pipeline-stage-dates__gap {
    color: var(--color-text-muted);
    font-size: 0.82em;
}

.pipeline-stage-dates__estimate {
    margin: 0.35rem 0 0;
    font-size: 0.82rem;
}

.plant-cycle-panel__note-btn {
    width: 100%;
    border: 1px dashed var(--color-primary-light);
    background: var(--color-cultive-bg);
    color: var(--color-primary-dark);
    border-radius: var(--radius-sm);
    padding: 0.55rem 0.75rem;
    font: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
}

.plant-cycle-panel__note-btn--muted {
    border-color: var(--color-border);
    background: var(--color-bg);
    color: var(--color-text-muted);
    font-weight: 500;
}

.timeline__cycle-hint {
    margin: 0 0 0.35rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--color-primary-dark);
}

/* ── IA disclaimer ── */
.ia-disclaimer {
    margin: 0 0 0.75rem;
    padding: 0.5rem 0.65rem;
    border-radius: var(--radius-sm);
    background: var(--color-warn-bg);
    border: 1px solid rgba(188, 108, 37, 0.2);
}

/* ── Empty state secondary CTA ── */
.empty-state__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.page-back {
    margin: 0 0 0.75rem;
}

.page-back__link {
    font-weight: 600;
    font-size: 0.92rem;
}

/* ── Plant cycle panel ── */
.plant-cycle-panel__current {
    font-size: var(--type-title);
    font-weight: 700;
}

/* ── Dark mode polish ── */
[data-theme="dark"] {
    --color-water-bg: #1a2a35;
    --color-warn-bg: #2a2218;
    --color-wild-bg: #2a2418;
    --color-cultive-bg: #1a2e22;
    --color-pipeline-bg: #241a30;
}

[data-theme="dark"] .entity-quick-bar-dock,
[data-theme="dark"] .plant-quick-bar-dock,
[data-theme="dark"] body.app-body--nav-dock .bottom-nav-dock {
    background: var(--color-surface);
    border-top-color: var(--color-border);
}

[data-theme="dark"] .journal-sheet__panel {
    background: var(--color-surface);
}

[data-theme="dark"] .horti-toast--success {
    background: var(--color-primary-light);
}

[data-theme="dark"] .map-page__map {
    background: #1a2420;
}

.page-journal .app-main {
    max-width: 720px;
}

.journal-page__calendar {
    padding-bottom: 0.5rem;
}

.journal-day-panel__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.journal-day-panel__title {
    margin: 0;
    font-size: var(--type-title);
}

.journal-day-panel__count {
    margin: 0;
}

.journal-day-list .dash-list__time {
    margin-left: auto;
    font-size: var(--type-meta);
    color: var(--color-text-muted);
}

.journal-day-list .dash-list__top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
}

.horti-icon {
    display: block;
    flex-shrink: 0;
}

.nav-icon--emoji {
    font-size: 1.15rem;
    line-height: 1;
}

.bottom-nav__icon .horti-icon {
    margin: 0 auto;
}

.header-menu__link {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.app-header__cta--scan {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.ref-nav-card__icon .horti-icon {
    margin: 0 auto;
}

[data-theme="dark"] .horti-icon {
    filter: brightness(1.15);
}

/* ── Quick filters (list pages) ── */
.list-quick-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    padding: 0 0 0.75rem;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 0.75rem;
}

.list-quick-filters__chip {
    display: inline-flex;
    align-items: center;
    padding: 0.38rem 0.75rem;
    border-radius: 999px;
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    color: var(--color-text);
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.list-quick-filters__chip.is-active {
    border-color: var(--color-primary);
    background: var(--color-cultive-bg);
    color: var(--color-primary-dark);
}

.list-quick-filters__chip--water.is-active {
    border-color: var(--color-water);
    background: var(--color-water-bg);
    color: var(--color-water);
}

.list-quick-filters__chip--alert.is-active {
    border-color: var(--color-warn);
    background: var(--color-warn-bg);
    color: var(--color-warn);
}

.list-toolbar__advanced {
    margin-top: 0.25rem;
}

.list-toolbar__advanced-summary {
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-muted);
    padding: 0.35rem 0;
    list-style: none;
}

.list-toolbar__advanced-summary::-webkit-details-marker {
    display: none;
}

.list-toolbar__advanced[open] .list-toolbar__advanced-summary {
    margin-bottom: 0.5rem;
    color: var(--color-primary);
}

/* ── Dashboard urgency stack ── */
.dashboard-urgency-more {
    margin: -0.35rem 0 0.75rem;
}

.dashboard-urgency-more__summary {
    cursor: pointer;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--color-text-muted);
    padding: 0.35rem 0.15rem;
    list-style: none;
}

.dashboard-urgency-more__summary::-webkit-details-marker {
    display: none;
}

.dashboard-urgency-more__list {
    display: grid;
    gap: 0.5rem;
    margin-top: 0.35rem;
}

.dashboard-urgency--compact {
    margin-bottom: 0;
}

.dashboard-urgency--compact .dashboard-urgency__icon {
    font-size: 1.35rem;
}

.dashboard-urgency--compact .dashboard-urgency__title {
    font-size: 1rem;
}

/* ── Dashboard hero weather ── */
.dashboard-hero__weather {
    margin: 0.2rem 0 0;
    font-size: 0.88rem;
}

.dashboard-hero__weather a {
    color: var(--color-text-muted);
    text-decoration: none;
}

.dashboard-hero__weather a:hover {
    color: var(--color-primary);
}

.dashboard-hero__weather--muted {
    font-size: 0.82rem;
}

/* ── Collapsible dashboard zone ── */
.dashboard-zone--collapsible .dashboard-zone__details {
    border: none;
}

.dashboard-zone--collapsible .dashboard-zone__summary {
    cursor: pointer;
    list-style: none;
}

.dashboard-zone--collapsible .dashboard-zone__summary::-webkit-details-marker {
    display: none;
}

.dashboard-zone--collapsible .dashboard-zone__head {
    margin-bottom: 0;
}

.dashboard-zone--collapsible .dashboard-zone__summary::after {
    content: '▾';
    float: right;
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin-top: 0.15rem;
}

.dashboard-zone--collapsible .dashboard-zone__details[open] .dashboard-zone__summary::after {
    content: '▴';
}

.dashboard-zone--collapsible .dashboard-zone__body {
    margin-top: 0.75rem;
}

/* ── Sticky entity nav ── */
.entity-nav--sticky {
    position: sticky;
    top: var(--chrome-top);
    z-index: 30;
    padding: 0.5rem 0 0.65rem;
    margin-bottom: 0.65rem;
    background: color-mix(in srgb, var(--color-bg) 92%, transparent);
    backdrop-filter: blur(6px);
}

.entity-nav--sticky .entity-nav__link.is-active {
    background: var(--color-primary);
    color: #fff;
}

/* ── Bottom nav badge ── */
.bottom-nav__item {
    position: relative;
}

.bottom-nav__icon-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.bottom-nav__badge {
    position: absolute;
    top: -0.2rem;
    right: -0.55rem;
    min-width: 1.1rem;
    height: 1.1rem;
    padding: 0 0.25rem;
    border-radius: 999px;
    background: var(--color-warn);
    color: #fff;
    font-size: 0.62rem;
    font-weight: 700;
    line-height: 1.1rem;
    text-align: center;
    pointer-events: none;
}

/* ── Outdoor readability mode ── */
[data-outdoor="true"] {
    --color-text: #0f1f0f;
    --color-text-muted: #3d5248;
}

[data-outdoor="true"] body.app-body {
    font-size: 17px;
}

[data-outdoor="true"] .btn,
[data-outdoor="true"] .plant-quick-bar__btn,
[data-outdoor="true"] .entity-quick-bar__btn,
[data-outdoor="true"] .bottom-nav__item,
[data-outdoor="true"] .app-header-quick__link,
[data-outdoor="true"] .list-quick-filters__chip {
    min-height: 48px;
}

[data-outdoor="true"] .plant-quick-bar__btn {
    font-size: 0.95rem;
}

[data-outdoor="true"] .flash {
    font-size: 1rem;
    font-weight: 700;
}

/* ── Plant assessments ── */
.eval-list {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
    display: grid;
    gap: 0.65rem;
}

.eval-list__item {
    padding: 0.75rem 0.85rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-bg-accent);
}

.eval-list__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem 0.65rem;
    margin-bottom: 0.35rem;
}

.eval-list__score {
    font-size: 1rem;
    color: var(--color-primary-dark);
}

.eval-list__scores {
    list-style: none;
    margin: 0.35rem 0 0;
    padding: 0;
    display: grid;
    gap: 0.15rem;
}

.eval-list__notes {
    margin: 0.45rem 0 0;
    white-space: pre-wrap;
}

.eval-list__thumb {
    max-width: 120px;
    border-radius: var(--radius-sm);
    margin-top: 0.45rem;
}

.eval-form-details {
    margin-top: 0.5rem;
}

.eval-form-details__summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--color-primary);
    padding: 0.35rem 0;
    list-style: none;
}

.eval-form-details__summary::-webkit-details-marker {
    display: none;
}

.eval-scores__legend {
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.eval-scores__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
}

@media (min-width: 640px) {
    .eval-scores__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.eval-scores__field {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    font-size: 0.82rem;
}

.eval-scores__field input {
    width: 100%;
}

.badge--decision-prometteur,
.badge--decision-elite {
    background: var(--color-pipeline-bg);
    border-color: var(--color-pipeline);
    color: var(--color-pipeline);
}

.badge--decision-eliminer {
    background: var(--color-error-bg);
    border-color: var(--color-error-border);
}

.badge--decision-cloner {
    background: var(--color-cultive-bg);
    border-color: var(--color-primary);
}

.badge--eval {
    background: #fff8e6;
    border-color: #e6c200;
    color: #7a6200;
}

.badge--harvest {
    background: var(--color-warn-bg);
    border-color: var(--color-warn);
    color: var(--color-warn);
}

.badge--harvest-type {
    border: 1px solid var(--color-border);
    font-weight: 600;
}

.badge--harvest-type-fruit {
    background: #fde8ef;
    border-color: #f5c2d4;
    color: #9d174d;
}

.badge--harvest-type-feuille {
    background: #ecfdf3;
    border-color: #bbf7d0;
    color: #166534;
}

.badge--harvest-type-racine {
    background: #fef3c7;
    border-color: #fde68a;
    color: #92400e;
}

.badge--harvest-type-seve {
    background: #e0f2fe;
    border-color: #bae6fd;
    color: #075985;
}

.badge--harvest-type-autre {
    background: var(--color-bg-accent);
    border-color: var(--color-border);
    color: var(--color-text-muted);
}

.harvest-section__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
}

.harvest-section__head .section-heading {
    margin: 0;
}

.harvest-section__head-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.plant-labels-block + .plant-labels-block {
    margin-top: 1.25rem;
    padding-top: 1.15rem;
    border-top: 1px solid var(--color-border, #dde5df);
}

.plant-labels-block__title {
    margin: 0 0 0.25rem;
    font-size: 0.98rem;
    font-weight: 700;
}

.plant-labels-block__hint {
    margin: 0 0 0.65rem;
}

.plant-labels-block__actions {
    margin: 0;
}

.plant-labels-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.65rem;
}

.plant-labels-list__item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 0.75rem;
    padding: 0.65rem 0.75rem;
    border-radius: var(--radius-md, 0.5rem);
    border: 1px solid var(--color-border, #dde5df);
    background: var(--color-bg-accent, #f5f8f6);
}

.plant-labels-list__meta {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.plant-labels-list__code {
    font-weight: 600;
    text-decoration: none;
    color: inherit;
}

.plant-labels-list__actions {
    margin: 0;
    flex-shrink: 0;
}

.harvest-view__head,
.harvest-view__summary {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 0.5rem;
}

.harvest-view__meta {
    margin-bottom: 0.65rem;
}

.harvest-view__lot {
    margin-bottom: 0.15rem;
}

.harvest-view__lot-hint {
    margin: 0 0 0.65rem;
    font-size: 0.82rem;
}

.harvest-view__lot .btn-copy code {
    font-size: 1.05rem;
    font-weight: 700;
}

.harvest-view__lot-missing {
    margin-bottom: 0.35rem;
}

.harvest-lot-summary {
    margin-bottom: 0.85rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--color-border);
}

.harvest-lot-summary__code {
    margin: 0.25rem 0 0.35rem;
}

.harvest-source-plant {
    margin: 0 0 0.85rem;
    padding: 0;
    border-top: none;
}

.harvest-source-plant .form-label {
    display: block;
    margin-bottom: 0.45rem;
}

.harvest-source-plant__link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-bg-accent);
    color: inherit;
    text-decoration: none;
}

.harvest-source-plant__link:hover {
    border-color: rgba(45, 90, 61, 0.35);
    background: #f4faf4;
}

.harvest-source-plant__thumb {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: var(--radius-sm);
    object-fit: cover;
}

.harvest-source-plant__thumb--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-surface);
    font-size: 1.4rem;
}

.harvest-source-plant__body {
    flex: 1;
    min-width: 0;
}

.harvest-source-plant__name {
    display: block;
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.25;
}

.harvest-source-plant__code {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.82rem;
}

.harvest-source-plant__meta {
    display: block;
    margin-top: 0.2rem;
}

.harvest-source-plant__arrow {
    flex-shrink: 0;
    font-size: 1.25rem;
    color: var(--color-text-muted);
}

.harvest-source-plant__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.5rem;
}

.harvest-view__workflow {
    margin-top: 0.25rem;
    padding-top: 0.85rem;
    border-top: 1px solid var(--color-border);
}

.harvest-view__workflow .entity-pipeline {
    margin-top: 0;
}

.harvest-view__cta {
    margin-top: 0.65rem;
    margin-bottom: 0;
}

.page-harvest-view .entity-pipeline__bubble {
    font-size: 1.05rem;
    line-height: 1;
}

.harvest-workspace {
    padding-top: 0;
    overflow: hidden;
}

.harvest-tab-panel {
    padding: 1rem 0 0.25rem;
}

.harvest-tab-panel__inner {
    display: grid;
    gap: 0.85rem;
}

.harvest-tab-panel__subhead {
    margin: 0.5rem 0 0;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

.harvest-tab-panel__empty {
    margin: 0.25rem 0 0;
}

.harvest-note-form {
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--color-border);
}

.eval-list__link {
    margin-left: auto;
}

.entity-pipeline-action__group,
.pipeline-list__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.5rem;
}

.entity-pipeline-action__group .entity-pipeline-action,
.pipeline-list__actions .pipeline-list__action {
    margin: 0;
}

.harvest-rankings__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}

.harvest-rankings-grid {
    display: grid;
    gap: 0.85rem;
}

.harvest-rankings-grid--dashboard {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 860px) {
    .harvest-rankings-grid--dashboard {
        grid-template-columns: 1fr;
    }
}

.harvest-rankings-grid__title {
    margin: 0 0 0.5rem;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

.harvest-rankings-grid__empty {
    margin: 0;
}

.harvest-ranking-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.45rem;
}

.harvest-ranking-list__item {
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr) auto;
    gap: 0.55rem;
    align-items: center;
    padding: 0.55rem 0.65rem;
    border-radius: var(--radius-md, 0.5rem);
    background: var(--color-bg-accent);
}

.harvest-ranking-list__thumb {
    width: 2.65rem;
    height: 2.65rem;
    border-radius: var(--radius-sm, 0.5rem);
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid rgba(27, 67, 50, 0.1);
    background: var(--color-surface);
}

.harvest-ranking-list__thumb--compact {
    width: 2.15rem;
    height: 2.15rem;
}

.harvest-ranking-list__thumb--empty {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    color: var(--color-text-muted);
}

.harvest-ranking-list__item--compact {
    padding: 0.45rem 0.55rem;
}

.harvest-ranking-list__rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.5rem;
    height: 1.5rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--color-primary);
    background: rgba(45, 90, 61, 0.12);
}

.harvest-ranking-list__main {
    min-width: 0;
    color: inherit;
    text-decoration: none;
}

.harvest-ranking-list__main:hover .harvest-ranking-list__name {
    color: var(--color-primary);
}

.harvest-ranking-list__name {
    display: block;
    font-weight: 600;
    line-height: 1.25;
}

.harvest-ranking-list__code,
.harvest-ranking-list__meta,
.harvest-ranking-list__detail {
    display: block;
    margin-top: 0.1rem;
}

.harvest-ranking-list__value {
    text-align: right;
    min-width: 5.5rem;
}

.harvest-ranking-list__value-label {
    display: block;
    font-size: 0.72rem;
    margin-bottom: 0.05rem;
}

.harvest-rankings-section + .harvest-rankings-section {
    margin-top: 0.85rem;
}

.harvest-rankings-section__empty,
.harvest-rankings-page__meta {
    margin-top: 0;
}

.harvest-rankings-page__group-title {
    margin: 1.25rem 0 0.65rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text-muted, #5a6470);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.variety-ranking-groups {
    display: grid;
    gap: 0.85rem;
    margin-top: 0.75rem;
}

.variety-ranking-group {
    padding: 0.85rem 0.95rem;
    border: 1px solid var(--color-border, #dde3ea);
    border-radius: var(--radius-md, 10px);
    background: var(--color-surface-muted, #f8fafb);
}

.variety-ranking-group__head {
    margin-bottom: 0.75rem;
}

.variety-ranking-group__title {
    margin: 0 0 0.2rem;
    font-size: 1rem;
}

.variety-ranking-group__title a {
    color: inherit;
    text-decoration: none;
}

.variety-ranking-group__title a:hover {
    color: var(--color-accent, #2d6a4f);
}

.variety-ranking-group__meta {
    margin: 0;
}

.variety-ranking-group__summary {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem 1rem;
    margin: 0.55rem 0 0;
    padding: 0;
}

.variety-ranking-group__summary-item {
    display: flex;
    gap: 0.35rem;
    align-items: baseline;
    font-size: 0.85rem;
}

.variety-ranking-group__summary-item dt {
    margin: 0;
    color: var(--color-text-muted, #5a6470);
}

.variety-ranking-group__summary-item dd {
    margin: 0;
    font-weight: 600;
}

.variety-ranking-group__rankings {
    margin-top: 0.15rem;
}

.badge--harvest-mean {
    opacity: 0.92;
}

.entity-list__footer {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem 0.65rem 3.75rem;
}

.harvest-pipeline-prompt {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 0.75rem;
    border-radius: var(--radius-md, 0.5rem);
    background: var(--color-bg-accent);
    border: 1px solid var(--color-border);
}

.harvest-pipeline-prompt__text {
    margin: 0;
    flex: 1 1 12rem;
}

.harvest-pipeline-prompt__action {
    margin: 0;
}

.harvest-delete-form {
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--color-border);
}

.timeline__delete,
.eval-list__delete {
    margin: 0 0 0 auto;
}

.timeline__header,
.eval-list__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
}

/* ── Classements hub ── */
.rankings-hub__intro {
    margin-bottom: 0.65rem;
}

.rankings-hub__tabs-card {
    margin-bottom: 0.85rem;
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
    border: 2px solid var(--color-primary-light);
    background: color-mix(in srgb, var(--color-primary) 6%, var(--color-surface));
}

.rankings-hub__tabs-heading {
    margin: 0 0 0.65rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-primary-dark);
}

.rankings-hub__hero-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.85rem;
}

.rankings-hub__title {
    margin: 0 0 0.35rem;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.rankings-hub__lede {
    margin: 0;
    max-width: 42rem;
}

.rankings-hub__season-form {
    margin: 0;
}

.rankings-hub__tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
}

@media (max-width: 640px) {
    .rankings-hub__tabs {
        grid-template-columns: 1fr;
    }
}

.rankings-hub__tab {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    min-height: 4.5rem;
    padding: 0.9rem 1rem;
    border-radius: var(--radius-md);
    border: 2px solid var(--color-border);
    background: var(--color-surface);
    text-decoration: none;
    color: inherit;
    box-shadow: var(--shadow-sm);
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s, transform 0.15s;
}

.rankings-hub__tab:hover {
    border-color: var(--color-primary-light);
    box-shadow: var(--shadow-md);
}

.rankings-hub__tab.is-active {
    border-color: var(--color-primary);
    background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
    color: #f0fdf4;
    box-shadow: 0 4px 14px color-mix(in srgb, var(--color-primary) 35%, transparent);
}

.rankings-hub__tab-icon {
    flex-shrink: 0;
    font-size: 1.45rem;
    line-height: 1;
    margin-top: 0.1rem;
}

.rankings-hub__tab-body {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.rankings-hub__tab-label {
    font-weight: 800;
    font-size: 1rem;
    line-height: 1.25;
}

.rankings-hub__tab-desc {
    font-size: 0.82rem;
    line-height: 1.35;
    opacity: 0.88;
}

.rankings-hub__tab.is-active .rankings-hub__tab-desc {
    opacity: 0.92;
}

.rankings-hub__tab-meta {
    font-size: 0.76rem;
    font-weight: 600;
    opacity: 0.75;
    margin-top: 0.15rem;
}

.rankings-hub__tab.is-active .rankings-hub__tab-meta {
    opacity: 0.9;
}

.rankings-hub__content-intro {
    margin: 0 0 0.75rem;
}

.rankings-hub__content .harvest-rankings-page__group-title:first-of-type {
    margin-top: 0;
}

/* ── Classements : podium & comparaison top 3 ── */
.rankings-spotlight {
    margin-bottom: 1rem;
    padding: 1rem 1rem 1.1rem;
    border: 1px solid rgba(45, 106, 79, 0.22);
    background: linear-gradient(155deg, rgba(228, 245, 232, 0.65) 0%, var(--color-surface) 55%);
    overflow: hidden;
}

.rankings-spotlight__head {
    margin-bottom: 0.85rem;
}

.rankings-spotlight__title {
    margin: 0 0 0.25rem;
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--color-primary-dark);
}

.rankings-spotlight__hint {
    margin: 0;
}

.rankings-podium {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.55rem;
    align-items: end;
    margin-bottom: 1rem;
}

.rankings-podium__slot {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    padding: 0.65rem 0.45rem 0.75rem;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--color-border);
    text-decoration: none;
    color: inherit;
    text-align: center;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.rankings-podium__slot:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.rankings-podium__slot--rank-1 {
    padding-top: 0.85rem;
    padding-bottom: 0.95rem;
    border-color: rgba(212, 160, 18, 0.45);
    box-shadow: 0 4px 14px rgba(212, 160, 18, 0.12);
}

.rankings-podium__slot--rank-2 {
    border-color: rgba(156, 163, 175, 0.45);
}

.rankings-podium__slot--rank-3 {
    border-color: rgba(184, 115, 51, 0.4);
}

.rankings-podium__medal {
    font-size: 1.15rem;
    line-height: 1;
}

.rankings-podium__photo {
    width: 4.25rem;
    height: 4.25rem;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.85);
    box-shadow: var(--shadow-sm);
}

.rankings-podium__slot--rank-1 .rankings-podium__photo {
    width: 5rem;
    height: 5rem;
}

.rankings-podium__photo--empty {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-accent);
    font-size: 1.65rem;
}

.rankings-podium__name {
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.25;
    color: var(--color-primary-dark);
}

.rankings-podium__score {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--color-text-muted);
}

.rankings-compare__legend {
    list-style: none;
    margin: 0 0 0.75rem;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem 0.85rem;
}

.rankings-compare__legend-item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--color-text-muted);
}

.rankings-compare__swatch {
    width: 0.65rem;
    height: 0.65rem;
    border-radius: 999px;
    flex-shrink: 0;
}

.rankings-compare__legend-item--rank-1 .rankings-compare__swatch {
    background: #d4a012;
}

.rankings-compare__legend-item--rank-2 .rankings-compare__swatch {
    background: #9ca3af;
}

.rankings-compare__legend-item--rank-3 .rankings-compare__swatch {
    background: #b87333;
}

.rankings-compare__row {
    display: grid;
    gap: 0.35rem;
    margin-bottom: 0.65rem;
}

.rankings-compare__row:last-child {
    margin-bottom: 0;
}

.rankings-compare__metric {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

.rankings-compare__bars {
    display: grid;
    gap: 0.35rem;
}

.rankings-compare__bar-group {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.45rem;
    align-items: center;
}

.rankings-compare__bar-track {
    height: 0.55rem;
    border-radius: 999px;
    background: rgba(27, 67, 50, 0.08);
    overflow: hidden;
}

.rankings-compare__bar-fill {
    height: 100%;
    border-radius: inherit;
    transition: width 0.35s ease;
}

.rankings-compare__bar-group--rank-1 .rankings-compare__bar-fill {
    background: linear-gradient(90deg, #d4a012, #e8c547);
}

.rankings-compare__bar-group--rank-2 .rankings-compare__bar-fill {
    background: linear-gradient(90deg, #9ca3af, #c4cad4);
}

.rankings-compare__bar-group--rank-3 .rankings-compare__bar-fill {
    background: linear-gradient(90deg, #b87333, #d4956a);
}

.rankings-compare__value {
    min-width: 2rem;
    font-size: 0.78rem;
    font-weight: 700;
    text-align: right;
    color: var(--color-primary-dark);
}

@media (min-width: 640px) {
    .rankings-compare__row {
        grid-template-columns: 7.5rem minmax(0, 1fr);
        align-items: center;
        gap: 0.75rem;
    }
}

[data-theme="dark"] .rankings-spotlight {
    background: linear-gradient(155deg, rgba(30, 50, 38, 0.55) 0%, var(--color-surface) 60%);
    border-color: rgba(255, 214, 102, 0.18);
}

[data-theme="dark"] .rankings-podium__slot {
    background: rgba(255, 255, 255, 0.04);
}

.dashboard-rankings-zone__block--spaced {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--color-border);
}

.dashboard-rankings-zone__block-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.65rem;
}

.dashboard-rankings-zone__block-title {
    margin: 0;
    font-size: 0.88rem;
    font-weight: 700;
}

.dashboard-rankings-zone__block-link {
    text-decoration: none;
    white-space: nowrap;
}

.dashboard-rankings-zone__block-link:hover {
    text-decoration: underline;
}

.dashboard-entity-shortcuts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
}

@media (min-width: 640px) {
    .dashboard-entity-shortcuts {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.dashboard-entity-shortcuts__tile {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    padding: 0.75rem 0.5rem;
    border: 1px solid var(--border-subtle, #e5e7eb);
    border-radius: 0.65rem;
    background: var(--surface-raised, #fff);
    text-decoration: none;
    color: inherit;
    text-align: center;
}

.dashboard-entity-shortcuts__tile:hover {
    border-color: var(--accent, #16a34a);
    background: var(--surface-hover, #f9fafb);
}

.dashboard-entity-shortcuts__icon {
    font-size: 1.35rem;
    line-height: 1;
}

.dashboard-entity-shortcuts__label {
    font-size: 0.82rem;
    font-weight: 600;
}

.dashboard-entity-shortcuts__badge {
    position: absolute;
    top: 0.35rem;
    right: 0.35rem;
}

.dashboard-section__more-link {
    margin: 0.5rem 0 0;
    text-align: right;
}

/* ── Visibilité portail (phase 5) ── */
.visibility-panel {
    margin-top: 1rem;
}

.visibility-panel--compact {
    margin-top: 0;
    margin-bottom: 1rem;
}

.visibility-panel__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    margin-bottom: 0.75rem;
}

.visibility-panel__note {
    margin: 0.85rem 0 0;
}

.visibility-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
}

.visibility-badge--public {
    background: var(--color-cultive-bg);
    color: var(--color-cultive);
}

.visibility-badge--private {
    background: #f1f3f2;
    color: #4a5560;
}

.visibility-badge--muted {
    background: #f5f5f5;
    color: #6b7280;
}

.visibility-form__fieldset {
    border: 1px solid var(--border-subtle, #ddd);
    border-radius: 10px;
    padding: 0.85rem 1rem;
    margin: 0;
}

.visibility-form__fieldset legend {
    padding: 0 0.25rem;
    font-weight: 600;
}

.visibility-option {
    display: block;
    margin: 0.45rem 0;
}

.visibility-option__hint {
    display: block;
    margin-top: 0.15rem;
}

.visibility-check {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    margin: 0.35rem 0;
}

.visibility-check--emphasis {
    font-weight: 600;
}

.visibility-form__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 0.35rem;
}

.visibility-photo-list {
    list-style: none;
    margin: 0.5rem 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.65rem;
}

.visibility-photo-item {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-size: 0.78rem;
}

.visibility-photo-item img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 8px;
    background: #eef2ee;
}

/* Profil & quota stockage */
.storage-quota-banner {
    margin-bottom: 1rem;
}

.storage-quota-banner a {
    font-weight: 600;
    margin-left: 0.35rem;
}

.profile-billing__badge {
    display: inline-block;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    background: var(--color-accent-soft, #e8f5ec);
    color: var(--color-accent, #1b4332);
    font-weight: 600;
    font-size: 0.9rem;
}

.profile-billing__meter {
    height: 0.55rem;
    margin: 0.75rem 0 0.35rem;
    border-radius: 999px;
    background: var(--color-surface-muted, #e8ede9);
    overflow: hidden;
}

.profile-billing__meter-bar {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #40916c, #2d6a4f);
    min-width: 2px;
    transition: width 0.25s ease;
}

.profile-billing__usage {
    margin: 0 0 1rem;
}

.profile-billing__plans {
    display: grid;
    gap: 0.85rem;
    margin-top: 0.5rem;
}

@media (min-width: 640px) {
    .profile-billing__plans {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
}

.profile-billing__plan {
    padding: 1rem;
    border: 1px solid var(--color-border, #d5ddd7);
    border-radius: 12px;
    background: var(--color-surface, #fff);
}

.profile-billing__plan-name {
    margin: 0 0 0.35rem;
    font-size: 1.05rem;
}

.profile-billing__note {
    margin-top: 1rem;
    margin-bottom: 0;
}

.profile-form {
    max-width: 28rem;
}

/* Administration plateforme */
.admin-summary {
    display: grid;
    gap: 0.85rem;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    margin-top: 1rem;
}

.admin-summary__card {
    padding: 0.85rem 1rem;
    border: 1px solid var(--color-border, #d5ddd7);
    border-radius: 12px;
    background: var(--color-surface-muted, #f7faf8);
}

.admin-summary__label {
    margin: 0 0 0.35rem;
    font-size: 0.82rem;
    color: var(--color-text-muted, #5a6b60);
}

.admin-summary__value {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
}

.admin-panel__lead {
    margin-top: 0;
}

.admin-accounts__table .hint {
    font-size: 0.82rem;
}

.admin-badge {
    display: inline-block;
    margin-top: 0.25rem;
    padding: 0.1rem 0.45rem;
    border-radius: 999px;
    background: #e8f0ff;
    color: #1e3a8a;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
}

.admin-status {
    font-weight: 600;
    text-transform: capitalize;
}

.admin-status--active {
    color: #2d6a4f;
}

.admin-status--suspended {
    color: #b42318;
}

.admin-status--pending {
    color: #9a6700;
}

.admin-inline-form {
    margin: 0;
}

.admin-inline-form--stack {
    margin-bottom: 0.5rem;
}

.admin-accounts__actions {
    white-space: nowrap;
}

.admin-btn-suspend {
    color: #b42318;
    border-color: #f5c2c0;
}

.forbidden-page {
    max-width: 32rem;
    margin: 2rem auto;
    text-align: center;
    padding: 2rem 1.5rem;
}

.forbidden-page--standalone {
    margin: 0 auto;
}

.forbidden-page__icon {
    font-size: 2.5rem;
    line-height: 1;
    margin-bottom: 0.75rem;
}

.forbidden-page__title {
    margin: 0 0 0.75rem;
    font-family: var(--font-display, Georgia, serif);
    font-size: 1.65rem;
    color: #0f291c;
}

.forbidden-page__message {
    margin: 0 0 0.5rem;
    line-height: 1.5;
    color: #2a4034;
}

.forbidden-page__hint {
    margin: 0 0 1.25rem;
}

.forbidden-page__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    justify-content: center;
    margin-top: 1rem;
}

.page-forbidden .app-main {
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.admin-account-edit {
    position: relative;
}

.admin-account-edit > summary {
    list-style: none;
    cursor: pointer;
}

.admin-account-edit > summary::-webkit-details-marker {
    display: none;
}

.admin-account-edit__panel {
    position: absolute;
    right: 0;
    z-index: 20;
    margin-top: 0.35rem;
    min-width: min(18rem, 80vw);
    padding: 0.85rem;
    border: 1px solid var(--color-border, #d5ddd7);
    border-radius: 12px;
    background: var(--color-surface, #fff);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
}

.admin-account-edit__form {
    display: grid;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--color-border, #e8ede9);
}

.admin-account-edit__form:last-of-type {
    border-bottom: 0;
    margin-bottom: 0.5rem;
    padding-bottom: 0;
}

.admin-account-edit__field {
    display: grid;
    gap: 0.25rem;
    font-size: 0.88rem;
}

.admin-account-edit__field input,
.admin-account-edit__field select {
    width: 100%;
}

.admin-account-edit__hint {
    margin: 0;
    font-size: 0.78rem;
}

.admin-account-edit__status {
    padding-top: 0.35rem;
}

