/* MisterLanding — single stylesheet. Palette kept from the original design:
   beige rgb(224,211,191), blue rgb(27,134,204), grey rgb(118,118,118). */
:root {
    --beige: #e0d3bf;
    --beige-soft: #f6f1e9;
    --beige-line: #ebe2d4;
    --beige-ink: #6f5b3e;
    --blue: #1b86cc;
    --blue-ink: #156ea8;
    --blue-soft: #e8f2fa;
    /* Blue buttons: the site's blue, or the colour of the signed-in user's avatar (avatar_button_css()) */
    --btn-primary: var(--blue-ink);
    --btn-primary-hover: #0f5a8b;
    --btn-primary-ring: rgba(27, 134, 204, .35);
    --grey: #767676;
    --ink: #1f2933;
    --ink-soft: #52606d;
    --bg: #fbf9f6;
    --surface: #ffffff;
    --green: #1e7b4a;
    --green-soft: #e6f4ec;
    --amber: #945800;
    --amber-soft: #fdf1dc;
    --red: #b42318;
    --red-soft: #fdecea;
    --radius: 10px;
    --shadow: 0 1px 2px rgba(31, 41, 51, .05), 0 6px 18px rgba(31, 41, 51, .06);
    --font: Aptos, "Segoe UI", Roboto, system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.5;
    color: var(--ink);
    background: var(--bg);
}
img, svg { max-width: 100%; }
a { color: var(--blue-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .6em; color: var(--ink); }
h1 { font-size: 1.9rem; }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
small, .muted { color: var(--grey); }
.muted { font-size: .92em; }
hr { border: 0; border-top: 1px solid var(--beige-line); margin: 24px 0; }
code { background: var(--beige-soft); padding: 1px 6px; border-radius: 6px; font-size: .92em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.nowrap { white-space: nowrap; }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.center { text-align: center; }
.stack > * + * { margin-top: 16px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row-between { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.spacer { flex: 1; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 40px; }
.mb-0 { margin-bottom: 0; } .mb-2 { margin-bottom: 16px; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font: inherit;
    font-weight: 700;
    font-size: .95rem;
    line-height: 1.2;
    padding: 10px 18px;
    border-radius: 8px;
    border: 2px solid var(--beige);
    background: var(--surface);
    color: var(--beige-ink);
    cursor: pointer;
    text-decoration: none;
    transition: background-color .25s ease, color .25s ease, border-color .25s ease;
    white-space: nowrap;
}
.btn:hover, .btn:focus-visible { background: var(--beige); color: var(--ink); text-decoration: none; }
.btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid rgba(27, 134, 204, .35); outline-offset: 2px; }
.btn-primary { background: var(--btn-primary); border-color: var(--btn-primary); color: #fff; }
.btn-primary:hover, .btn-primary:focus-visible { background: var(--btn-primary-hover); border-color: var(--btn-primary-hover); color: #fff; }
.btn-primary:focus-visible { outline-color: var(--btn-primary-ring); }
.btn-danger { border-color: #f1c3be; color: var(--red); }
.btn-danger:hover, .btn-danger:focus-visible { background: var(--red); border-color: var(--red); color: #fff; }
.btn-sm { padding: 6px 12px; font-size: .85rem; border-width: 1.5px; }
.btn-lg { padding: 14px 26px; font-size: 1.05rem; }
.btn-block { display: flex; width: 100%; }
.btn-ghost { border-color: transparent; background: transparent; }
.btn[disabled], .btn.is-disabled { opacity: .5; pointer-events: none; }
.link-button { background: none; border: 0; padding: 0; font: inherit; color: var(--blue-ink); cursor: pointer; }
.link-button:hover { text-decoration: underline; }
.inline-form { display: inline; margin: 0; }

/* ---------- Public header / footer ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--beige-line); backdrop-filter: saturate(1.2) blur(6px); }
.site-header .container { display: flex; align-items: center; gap: 16px; min-height: 72px; }
.logo { font-weight: 800; font-size: 1.9rem; letter-spacing: -.02em; color: var(--blue); text-decoration: none; }
.logo:hover { text-decoration: none; }
.logo small { display: block; font-size: .7rem; letter-spacing: .04em; color: var(--grey); font-weight: 600; margin-top: -4px; }
.site-nav { display: flex; align-items: center; gap: 8px; margin-left: auto; flex-wrap: wrap; }
.site-nav .btn { border-color: transparent; }
.site-nav .btn.is-active { background: var(--beige); color: var(--ink); }
.site-nav .btn-primary { border-color: var(--btn-primary); }
.btn.nav-toggle { display: none; margin-left: auto; }
/* Public header: the language button and the Menu button take the height of the menu buttons (42 px). */
.site-header .btn.nav-toggle { height: 42px; }

/* Short public pages (login…): the footer stays at the bottom of the window. */
body.public-page { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
body.public-page > main { flex: 1 0 auto; }
.site-footer { margin-top: 64px; padding: 32px 0; border-top: 1px solid var(--beige-line); background: var(--surface); color: var(--ink-soft); font-size: .92rem; }
.site-footer .container { display: flex; gap: 24px; flex-wrap: wrap; justify-content: space-between; align-items: center; }
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }

/* ---------- Hero (curved bottom kept from the original home page) ---------- */
.hero {
    position: relative;
    color: #fff;
    background: #2c4f6c url("../img/backgroundIndex.png") center / cover no-repeat;
    border-radius: 0 0 50% 50% / 0 0 14% 14%;
    padding: 72px 0 110px;
    overflow: hidden;
}
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(14, 42, 66, .82) 0%, rgba(14, 42, 66, .55) 55%, rgba(14, 42, 66, .15) 100%); }
.hero .container { position: relative; }
.hero h1 { color: #fff; font-size: clamp(2rem, 4.5vw, 3.1rem); max-width: 720px; letter-spacing: -.02em; }
.hero p.lead { font-size: 1.15rem; max-width: 640px; color: rgba(255, 255, 255, .92); }
.hero .btn { border-color: #fff; }
.hero .btn:not(.btn-primary) { background: rgba(255, 255, 255, .12); color: #fff; }
.hero .btn:not(.btn-primary):hover { background: #fff; color: var(--ink); }
.hero-search { display: flex; gap: 8px; margin-top: 28px; max-width: 620px; background: #fff; padding: 6px; border-radius: 12px; box-shadow: var(--shadow); }
.hero-search input { border: 0; flex: 1; font-size: 1.05rem; text-transform: uppercase; }
.hero-search input::placeholder { text-transform: none; }
.hero-search input:focus { box-shadow: none; }
.page-hero { background: var(--beige-soft); border-bottom: 1px solid var(--beige-line); padding: 40px 0 32px; border-radius: 0 0 50% 50% / 0 0 22px 22px; }
.page-hero h1 { margin-bottom: 6px; }

.section { padding: 56px 0 8px; }
.section-title { text-align: center; max-width: 680px; margin: 0 auto 32px; }
.section-title p { color: var(--ink-soft); }
.eyebrow { text-transform: uppercase; font-size: .78rem; letter-spacing: .12em; font-weight: 800; color: var(--beige-ink); margin-bottom: 8px; }
.feature { padding: 22px; }
.feature .icon { width: 42px; height: 42px; border-radius: 10px; background: var(--beige-soft); color: var(--beige-ink); display: grid; place-items: center; font-size: 1.3rem; margin-bottom: 12px; }
.steps { counter-reset: step; }
.card.step { position: relative; padding: 22px 22px 22px 70px; }
.step::before { counter-increment: step; content: counter(step); position: absolute; left: 22px; top: 22px; width: 32px; height: 32px; border-radius: 50%; background: var(--blue-ink); color: #fff; display: grid; place-items: center; font-weight: 800; }
.price-card { padding: 28px; display: flex; flex-direction: column; }
.price-card .eyebrow { margin-bottom: 2px; }
.pricing-tabs { max-width: 900px; margin: 0 auto 18px; }
.pricing-grid { max-width: 860px; margin: 0 auto; }
.pricing-single { grid-template-columns: minmax(0, 420px); justify-content: center; }
.audience { display: flex; flex-direction: column; }
.audience ul { padding-left: 18px; flex: 1; }
.audience .row, .audience > .btn { margin-top: 10px; align-self: flex-start; }
.price-card.is-featured { border: 2px solid var(--blue-ink); }
.price-card .price { font-size: 2.2rem; font-weight: 800; color: var(--ink); }
.price-card .price small { font-size: .95rem; font-weight: 600; color: var(--grey); }
.price-card ul { padding-left: 0; list-style: none; flex: 1; }
.price-card li { padding: 6px 0 6px 26px; position: relative; }
.price-card li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 800; }

/* ---------- Cards, grids ---------- */
.card { background: var(--surface); border: 1px solid var(--beige-line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; }
.card + .card { margin-top: 20px; }
.card-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.card-title h2, .card-title h3 { margin: 0; }
.card-muted { background: var(--beige-soft); box-shadow: none; }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-auto { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid > .card + .card { margin-top: 0; }
.grid > *, .layout-aside > * { min-width: 0; }

.kpi { padding: 18px 20px; }
.kpi-label { font-size: .82rem; color: var(--ink-soft); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.kpi-value { font-size: 1.7rem; font-weight: 800; margin-top: 4px; font-variant-numeric: tabular-nums; }
.kpi-sub { font-size: .85rem; color: var(--grey); }
.progress { height: 8px; background: var(--beige-soft); border-radius: 99px; overflow: hidden; margin-top: 10px; }
.progress > span { display: block; height: 100%; background: var(--green); border-radius: 99px; }

.empty-state { text-align: center; padding: 36px 20px; color: var(--ink-soft); }
.empty-state .icon { font-size: 2rem; margin-bottom: 6px; }

/* ---------- Forms ---------- */
label { font-weight: 600; font-size: .92rem; color: var(--ink); }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=time],
input[type=datetime-local], input[type=search], input[type=tel], input[type=url], select, textarea {
    width: 100%;
    font: inherit;
    font-size: 1rem;
    color: var(--ink);
    background: #fff;
    border: 2px solid var(--beige);
    border-radius: 8px;
    padding: 9px 12px;
    min-height: 46px;
    transition: border-color .2s ease, box-shadow .2s ease;
}
/* The date and time fields have 2 px more of the browser's own: same height as the other fields. */
input[type=date], input[type=time], input[type=datetime-local] { height: 46px; }
/* Safari (WebKit) draws a styled dropdown with its own padding and a 15 px minimum, ignoring min-height: without a
   fixed height it is 25 px tall. Each context sets its height: 46 here, 40 in filters, 34 in action bars and menus,
   30 in table rows. */
select:where(:not([multiple])) { height: 46px; }
textarea { min-height: 110px; resize: vertical; }
/* A button on the same line as fields (a .row: search, menu + action) is as tall as they are, and they as tall as it. */
.row:has(> :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]), select, .ss, .segmented)) > :is(.btn, input, select) { align-self: stretch; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(27, 134, 204, .15); }
input::placeholder, textarea::placeholder { color: #9a9a9a; }
input[type=checkbox], input[type=radio] { width: 18px; height: 18px; accent-color: var(--blue-ink); vertical-align: -3px; margin: 0 6px 0 0; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field .hint { font-size: .82rem; color: var(--grey); font-weight: 400; }
.field-error { color: var(--red); font-size: .85rem; margin: 0; }
.has-error input, .has-error select, .has-error textarea { border-color: var(--red); }
/* New password (app.js data-password-strength): while it is typed, its border is a gauge of the password's strength,
   filled from the left with the colour of its level (red to green), the rest in the usual border colour, as on
   AceMan. */
input[data-password-strength].is-strength-active {
    border-color: transparent;
    background: linear-gradient(#fff, #fff) padding-box,
        linear-gradient(90deg, var(--strength-color) var(--strength-width), var(--beige) var(--strength-width)) border-box;
}
.form-grid { display: grid; gap: 16px 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.form-grid .span-2 { grid-column: span 2; }
.form-grid .span-all { grid-column: 1 / -1; }
.form-section { border-top: 2px solid var(--beige-soft); padding-top: 18px; margin-top: 22px; }
.form-section:first-child, .hp-field + .form-section, input[type="hidden"] + .form-section { border-top: 0; padding-top: 0; margin-top: 0; }
.form-section > h3 { font-size: 1rem; text-transform: uppercase; letter-spacing: .05em; color: var(--beige-ink); }
.form-actions { display: flex; gap: 12px; justify-content: flex-end; align-items: center; flex-wrap: wrap; margin-top: 24px; }
.check { display: flex; align-items: center; gap: 4px; font-weight: 500; cursor: pointer; }
.check-list { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.check-pill { border: 1.5px solid var(--beige); border-radius: 99px; padding: 5px 12px 5px 8px; font-weight: 500; font-size: .92rem; cursor: pointer; background: #fff; }
.check-pill:has(input:checked) { background: var(--beige-soft); border-color: var(--beige-ink); }
.input-addon { display: flex; align-items: stretch; }
.input-addon input { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.input-addon span { display: flex; align-items: center; padding: 0 12px; border: 2px solid var(--beige); border-left: 0; border-radius: 0 8px 8px 0; background: var(--beige-soft); color: var(--beige-ink); font-weight: 700; font-size: .9rem; }
/* Options of equal width (50/50 for two), over the whole width of the field when it stretches the control */
.segmented { display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; border: 2px solid var(--beige); border-radius: 10px; padding: 3px; gap: 3px; background: #fff; }
.segmented label { padding: 8px 16px; border-radius: 7px; cursor: pointer; font-weight: 700; color: var(--beige-ink); text-align: center; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented label:has(input:checked) { background: var(--beige); color: var(--ink); }
.segmented-links a { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 8px 18px; border-radius: 7px; font-weight: 700; color: var(--beige-ink); white-space: nowrap; }
.segmented-links a:hover { text-decoration: none; background: var(--beige-soft); }
.segmented-links a.is-active, .segmented-links a.is-active:hover { background: var(--beige); color: var(--ink); }
.segmented-links a i { font-style: normal; display: flex; }
.segmented-links a i .svg-icon { width: 1.2em; height: 1.2em; }
/* « C’est mon avion »: Propriétaire | Copropriétaire, then one e-mail field per co-owner and their total */
.ownership .coowners { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }
.coowner-list { display: flex; flex-direction: column; gap: 8px; }
.coowner-total { font-size: .92rem; }
/* Add a space: switch and form centred in one column */
.space-new { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
.space-new > .segmented { margin: 4px 0 6px; }
.space-new-hint { margin: 0 0 18px; font-size: .9rem; }
.space-new > form, .space-new > .notice { align-self: stretch; }
/* Sign-up: once a profile is chosen, the cards become the same switch */
.type-switch { display: flex; flex-direction: column; align-items: center; margin-bottom: 18px; }
.type-switch-hint { margin: 8px 0 0; font-size: .9rem; max-width: 560px; }
@media (max-width: 480px) { .space-new > .segmented, .type-switch > .segmented { align-self: stretch; } .segmented-links a { padding: 8px 4px; gap: 5px; font-size: .92rem; min-width: 0; } .type-switch .segmented-links a i { display: none; } }
.hp-field { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
/* A heading reached by a link (privacy policy #robots) shows below the sticky header */
h2[id] { scroll-margin-top: 90px; }

/* ---------- Auth pages ---------- */
.auth-wrap { max-width: 460px; margin: 48px auto; padding: 0 20px; }
.auth-wrap.wide { max-width: 760px; }
.auth-title { text-align: center; margin-bottom: 26px; }
.auth-title .over { color: var(--grey); font-weight: 700; font-size: 1.2rem; }
.auth-title .logo { font-size: 3.4rem; display: inline-block; }
.auth-logout { margin-top: 14px; }
.auth-links { display: flex; justify-content: space-between; gap: 12px; margin-top: 18px; font-size: .95rem; flex-wrap: wrap; }
.account-type { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 22px; }
.account-type a { text-align: center; padding: 16px; border: 2px solid var(--beige); border-radius: 10px; color: var(--beige-ink); font-weight: 800; }
.account-type a span { display: block; font-weight: 500; font-size: .85rem; color: var(--ink-soft); margin-top: 4px; }
.account-type a.is-active { background: var(--beige); color: var(--ink); }
.account-type a:hover { text-decoration: none; background: var(--beige-soft); }
.account-type a.is-active:hover { background: var(--beige); }
.account-type.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.account-type.cols-3 a { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 1.1rem; padding: 18px 16px; }
.account-type a i { font-style: normal; font-size: 1.6rem; line-height: 1; margin-bottom: 6px; height: 2rem; display: flex; align-items: center; justify-content: center; }
.account-type a em { font-style: normal; font-size: .8rem; font-weight: 700; color: var(--ink); text-transform: uppercase; letter-spacing: .04em; }
.account-type.cols-3 a span { flex: 1; }
/* Four profiles (aerodrome, flying club, flight school, pilot): same cards as cols-3 */
.account-type.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.account-type.cols-4 a { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 1.1rem; padding: 18px 16px; }
.account-type.cols-4 a span { flex: 1; }
.account-type a b { margin-top: 10px; font-size: .78rem; font-weight: 800; color: var(--blue-ink); background: var(--blue-soft); border-radius: 99px; padding: 3px 10px; }
/* Sign-up: the four profiles take the width of the site (wider than the form under them) and scroll sideways, as a
   small carousel, when the screen is too narrow for the four of them. */
.signup-offers { position: relative; width: min(1140px, calc(100vw - 40px)); margin: 0 0 22px calc((100% - min(1140px, calc(100vw - 40px))) / 2); }
.signup-offers .account-type.cols-4 { position: relative; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr); gap: 16px;
    overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; padding: 6px 2px; margin: -6px 0 0; }
.signup-offers .account-type.cols-4 > a { scroll-snap-align: start; }
.signup-offers.is-enhanced .account-type { scrollbar-width: none; }
.signup-offers.is-enhanced .account-type::-webkit-scrollbar { display: none; }
.carousel-btn { position: absolute; top: 50%; z-index: 1; display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; margin-top: -19px;
    padding: 0 0 3px; border: 2px solid var(--beige); border-radius: 50%; background: #fff; color: var(--beige-ink); font-size: 1.5rem; font-weight: 800; line-height: 1; cursor: pointer; }
.carousel-btn:hover, .carousel-btn:focus-visible { background: var(--beige-soft); }
.carousel-btn.is-prev { left: -12px; }
.carousel-btn.is-next { right: -12px; }
/* Touch screens: swipe; a phone shows one card and the edge of the next one */
@media (hover: none) and (pointer: coarse) { .carousel-btn { display: none; } }
@media (max-width: 480px) { .signup-offers .account-type.cols-4 { grid-auto-columns: 78%; } }

/* ---------- Flash messages ---------- */
.flashes { display: grid; gap: 10px; margin: 18px 0; }
.flash { display: flex; gap: 10px; align-items: flex-start; padding: 12px 16px; border-radius: 10px; border: 1px solid; font-weight: 500; }
.flash-success { background: var(--green-soft); border-color: #bfe3cd; color: #14532d; }
.flash-error { background: var(--red-soft); border-color: #f5c2bd; color: #7a1b12; }
.flash-warning { background: var(--amber-soft); border-color: #f4d8a8; color: #6b3f00; }
.flash-info { background: var(--blue-soft); border-color: #c4dcef; color: #0e4a73; }
.flash .close { margin-left: auto; background: none; border: 0; font-size: 1.2rem; line-height: 1; cursor: pointer; color: inherit; opacity: .6; }
.notice { padding: 14px 16px; border-radius: 10px; background: var(--beige-soft); border: 1px dashed var(--beige); color: var(--ink-soft); }
.notice-demo { background: #fff8e6; border: 1px dashed #e6b44c; color: #6b4a00; }

/* ---------- Badges ---------- */
.badge { display: inline-block; padding: 3px 10px; border-radius: 99px; font-size: .78rem; font-weight: 700; background: var(--beige-soft); color: var(--beige-ink); white-space: nowrap; }
.badge-paid, .badge-open, .badge-active, .badge-confirmed { background: var(--green-soft); color: var(--green); }
.badge-unpaid, .badge-pending, .badge-warning { background: var(--amber-soft); color: var(--amber); }
.badge-refunded, .badge-danger { background: var(--red-soft); color: var(--red); }
.badge-cancelled, .badge-closed, .badge-disabled, .badge-completed { background: #eef0f2; color: #5c6670; }
.badge-info { background: var(--blue-soft); color: var(--blue-ink); }

/* ---------- Tables ---------- */
.table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: .94rem; }
.table th { text-align: left; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-soft); background: var(--beige-soft); padding: 10px 12px; white-space: nowrap; }
.table th:first-child { border-radius: 8px 0 0 8px; }
.table th:last-child { border-radius: 0 8px 8px 0; }
.table td { padding: 11px 12px; border-bottom: 1px solid var(--beige-line); vertical-align: middle; }
.table tbody tr:hover td { background: #fdfbf8; }
.table tr.is-muted td { color: var(--grey); }
.table .actions { text-align: right; white-space: nowrap; }
.table tfoot td { font-weight: 800; border-bottom: 0; }
.reg { font-weight: 800; letter-spacing: .02em; }
.table-compact td, .table-compact th { padding: 7px 10px; }

/* Row actions menu (the ▼ of the original design) */
.menu { position: relative; display: inline-block; text-align: left; }
.menu > summary { list-style: none; cursor: pointer; }
.menu > summary::-webkit-details-marker { display: none; }
.menu > summary::after { content: " ▾"; }
.menu[open] > summary::after { content: " ▴"; }
.menu-panel { position: absolute; right: 0; top: calc(100% + 6px); z-index: 15; min-width: 240px; background: #fff; border: 1px solid var(--beige-line); border-radius: 10px; box-shadow: 0 10px 30px rgba(31, 41, 51, .14); padding: 8px; display: grid; gap: 4px; }
.menu-panel a, .menu-panel button { display: block; width: 100%; text-align: left; padding: 8px 10px; border-radius: 6px; background: none; border: 0; font: inherit; font-size: .92rem; color: var(--ink); cursor: pointer; }
.menu-panel a:hover, .menu-panel button:hover { background: var(--beige-soft); text-decoration: none; }
.menu-panel .danger { color: var(--red); }
.menu-panel form { margin: 0; }
.menu-panel .menu-inline { display: flex; gap: 6px; padding: 6px 4px; align-items: center; }
.menu-panel .menu-inline select { min-height: 34px; height: 34px; padding: 4px 8px; font-size: .88rem; }
.menu-panel .menu-inline button { width: auto; background: var(--beige); font-weight: 700; }
.menu-sep { border-top: 1px solid var(--beige-line); margin: 4px 0; }

/* ---------- App shell (connected areas) ---------- */
.app-topbar { position: sticky; top: 0; z-index: 30; background: #fff; border-bottom: 1px solid var(--beige-line); }
.app-topbar .inner { display: flex; align-items: center; gap: 16px; min-height: 64px; padding: 0 20px; }
.app-topbar .logo { font-size: 1.6rem; }
.org { display: flex; flex-direction: column; line-height: 1.2; padding-left: 16px; border-left: 2px solid var(--beige-soft); min-width: 0; }
.org strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.org span { font-size: .8rem; color: var(--grey); }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
/* Admin, language, avatar and log-out share one 36 px height. */
.topbar-right .btn-sm { height: 36px; }
.topbar-right .btn-sm .svg-icon { width: 16px; height: 16px; }
/* Language button of both top bars (globe with « A » and « 文 »): a square as tall as its neighbours, without the ▾ of
   the other menus. The list names each language in its own language. */
.lang-menu > summary::after, .lang-menu[open] > summary::after { content: none; }
.lang-menu .lang-button { width: 36px; height: 36px; padding: 0; }
.lang-menu .lang-button .svg-icon { width: 22px; height: 22px; }
.lang-menu[open] > .lang-button { background: var(--beige); color: var(--ink); }
.lang-menu .menu-panel { min-width: 180px; }
.lang-menu .menu-panel a.is-current { background: var(--beige-soft); box-shadow: inset 3px 0 0 var(--blue-ink); }
.site-header .lang-menu .lang-button { width: 42px; height: 42px; }
.site-header .lang-menu .lang-button .svg-icon { width: 24px; height: 24px; }
/* Space switcher (pilot / aerodrome / club with one login) */
.space-switcher > summary.org { flex-direction: row; align-items: center; gap: 8px; border-radius: 0 8px 8px 0; padding: 6px 10px 6px 16px; }
.space-switcher > summary.org:hover { background: var(--beige-soft); }
/* The space name gives way (ellipsis) so that the language button, avatar and log-out button stay on screen, at every
   width (a long aerodrome name pushed « Déconnexion » 25 px off a 768 px screen). */
.app-topbar .space-switcher, .space-switcher > summary.org { min-width: 0; }
.app-topbar .logo, .topbar-right { flex: none; }
.space-switcher > summary::after { color: var(--grey); font-size: .85rem; }
.org .org-text { display: flex; flex-direction: column; min-width: 0; font-size: inherit; color: inherit; }
.space-switcher .menu-panel { left: 0; right: auto; min-width: 300px; max-width: calc(100vw - 32px); }
.space-switcher .menu-panel button { display: flex; gap: 10px; align-items: flex-start; }
.space-switcher .menu-panel button small { display: block; color: var(--grey); font-size: .8rem; }
.space-switcher .menu-panel button.is-current { background: var(--beige-soft); box-shadow: inset 3px 0 0 var(--blue-ink); }
.space-icon { width: 22px; flex: none; text-align: center; color: var(--beige-ink); font-size: 1.05rem; }
.menu-title { margin: 2px 10px 4px; font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--grey); font-weight: 700; }
.app-shell { display: grid; grid-template-columns: 250px minmax(0, 1fr); min-height: calc(100vh - 65px); }
/* The menu column stays under the top bar (65 px with its border) and scrolls on its own when it is taller than the
   window: scrolling the page never moves it, and its last links stay reachable. */
.app-sidebar { position: sticky; top: 65px; height: calc(100vh - 65px); height: calc(100dvh - 65px); overflow-y: auto; border-right: 1px solid var(--beige-line); background: #fff; padding: 20px 14px; }
/* Set by app.js only when the menu overflows: at its ends the wheel does not pass on to the page. (On a menu that
   fits, Chrome would block the page's scrolling under the mouse.) */
.app-sidebar.is-scrollable { overscroll-behavior-y: contain; }
.side-nav { display: grid; gap: 4px; }
.side-nav a { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 8px; font-weight: 700; font-size: .92rem; letter-spacing: .03em; text-transform: uppercase; color: var(--beige-ink); border: 2px solid transparent; }
.side-nav a:hover { background: var(--beige-soft); text-decoration: none; }
.side-nav a.is-active { background: var(--beige); color: var(--ink); border-color: var(--beige); }
.side-nav .nav-icon { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; flex: none; }
.side-nav .nav-sep { height: 1px; background: var(--beige-line); margin: 10px 6px; }
.side-nav .nav-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--grey); padding: 4px 14px; }
.app-main { padding: 26px 32px 60px; min-width: 0; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.page-head h1 { margin: 0; font-size: 1.6rem; }
.page-head p { margin: 4px 0 0; color: var(--ink-soft); }
.plan-banner { margin-bottom: 18px; }

.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 20px; }
.tabs a { padding: 9px 18px; border: 2px solid var(--beige); border-radius: 8px; font-weight: 700; color: var(--beige-ink); background: #fff; }
.tabs a:hover { text-decoration: none; background: var(--beige-soft); }
.tabs a.is-active { background: var(--beige); color: var(--ink); }
.tabs .count { font-weight: 600; font-size: .8rem; opacity: .75; }

.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 16px; }
.filters .field { min-width: 150px; }
.filters input, .filters select { min-height: 40px; padding: 6px 10px; }
.filters select { height: 40px; }
.filters input[type=date] { height: 40px; }
.filters .btn { min-height: 40px; }

.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 18px; flex-wrap: wrap; }
.pagination a, .pagination span { padding: 6px 12px; border-radius: 8px; border: 1.5px solid var(--beige); font-weight: 700; font-size: .9rem; color: var(--beige-ink); }
.pagination .is-current { background: var(--beige); color: var(--ink); }

/* ---------- Quote / invoice ---------- */
.quote-box { position: sticky; top: 90px; }
.quote-lines { list-style: none; margin: 0; padding: 0; }
.quote-lines li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--beige-line); }
.quote-lines .detail { display: block; font-size: .82rem; color: var(--grey); }
.quote-lines .discount { display: block; font-size: .82rem; color: var(--green); }
.quote-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 14px; }
.quote-total strong { font-size: 1.7rem; }
.quote-sub { display: flex; justify-content: space-between; font-size: .88rem; color: var(--ink-soft); }
.quote-box.is-loading .quote-body { opacity: .5; }
.invoice-doc { max-width: 860px; margin: 0 auto; width: 100%; }
/* Invoice lines on a phone: unit price and discount columns give way so that the totals stay in view
   (the discount label stays under the description; the PDF keeps every column). */
/* .col-opt-inline repeats a hidden column's value in the cell that stays (the aircraft under the invoice number). */
.invoice-lines .col-opt-inline { display: none; }
/* « ✕ » of a line of a manual invoice: as tall as the fields of the line. */
[data-remove-line] { min-height: 46px; }
@media (max-width: 520px) {
    .invoice-lines .col-opt { display: none; }
    .invoice-lines .col-opt-inline { display: inline; }
    .invoice-lines th, .invoice-lines td { padding-left: 6px; padding-right: 6px; }
}
@media (max-width: 400px) {
    .invoice-lines { font-size: .9rem; }
    .invoice-lines th, .invoice-lines td { padding-left: 4px; padding-right: 4px; }
    .invoice-lines td.nowrap { white-space: normal; }
}
.invoice-head { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.invoice-head .who { white-space: pre-line; }
.invoice-total { font-size: 2rem; font-weight: 800; }
.pay-box { text-align: center; padding: 26px; }
.pay-box .amount { font-size: 2.4rem; font-weight: 800; margin: 6px 0 14px; }
.fee-breakdown { margin: 0 0 14px; text-align: left; font-size: .9rem; border-top: 1px solid var(--beige-line); }
.fee-breakdown > div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--beige-line); }
.fee-breakdown dt { color: var(--ink-soft); }
.fee-breakdown dt small { color: var(--grey); }
.fee-breakdown dd { margin: 0; white-space: nowrap; font-variant-numeric: tabular-nums; }
.fee-breakdown .is-total dt, .fee-breakdown .is-total dd { color: var(--ink); font-weight: 800; }
/* Inline SVG icons */
.svg-icon { width: 1.2em; height: 1.2em; vertical-align: -0.22em; flex: none; }
.nav-icon .svg-icon { width: 20px; height: 20px; vertical-align: -5px; }
.account-type a i .svg-icon { width: 2rem; height: 2rem; }
.space-icon .svg-icon { width: 20px; height: 20px; }
.empty-state .icon .svg-icon { width: 2.4rem; height: 2.4rem; }
.feature .icon .svg-icon { width: 24px; height: 24px; }
.account-type:not(.cols-3):not(.cols-4) a i { font-style: normal; }
.account-type:not(.cols-3):not(.cols-4) a i .svg-icon { width: 1.3em; height: 1.3em; }

/* Aircraft type picker (full width of its field) */
.combo { position: relative; }
.combo-list { position: absolute; z-index: 20; top: calc(100% + 4px); left: 0; right: 0; max-height: 320px; overflow-y: auto; margin: 0; padding: 6px; list-style: none; background: #fff; border: 1px solid var(--beige-line); border-radius: 10px; box-shadow: 0 12px 30px rgba(31, 41, 51, .16); }
.combo-list li[role="option"] { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border-radius: 7px; cursor: pointer; }
.combo-list li[role="option"] strong { font-weight: 700; color: var(--ink); }
.combo-list li[role="option"] span { font-size: .85rem; color: var(--ink-soft); }
.combo-list li[role="option"]:hover, .combo-list li[aria-selected="true"] { background: var(--beige-soft); }
.combo-list .combo-empty { padding: 8px 10px; color: var(--grey); font-size: .9rem; }
.combo-list.combo-floating { right: auto; z-index: 19; }
/* Field with a list of suggestions (based aircraft): the arrow of the dropdowns says that a list drops down. */
.combo input.combo-input {
    padding-right: 34px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2352606d' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px 8px;
}

/* QR code scanner dialog */
.scan-cta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 16px; }
dialog.scanner { width: min(440px, calc(100vw - 32px)); padding: 16px; border: 0; border-radius: 14px; box-shadow: 0 20px 60px rgba(31, 41, 51, .35); }
dialog.scanner::backdrop { background: rgba(31, 41, 51, .6); }
/* Confirmation dialog of the site (app.js confirmDialog) instead of the browser's: the question in bold, the detail
   under it, « Annuler » and « Confirmer » (solid red when the action deletes). The box fills the dialog, so a click
   outside it lands on the dialog itself and cancels. */
dialog.confirm-dialog { width: min(440px, calc(100vw - 32px)); padding: 0; border: 0; border-radius: 14px; background: var(--surface); color: var(--ink); box-shadow: 0 20px 60px rgba(31, 41, 51, .35); }
dialog.confirm-dialog::backdrop { background: rgba(31, 41, 51, .55); }
.confirm-body { padding: 22px 22px 18px; }
.confirm-question { margin: 0; font-size: 1.05rem; font-weight: 700; line-height: 1.4; overflow-wrap: anywhere; }
.confirm-detail { margin: 8px 0 0; color: var(--ink-soft); line-height: 1.5; }
.confirm-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
.confirm-dialog .btn-danger { background: var(--red); border-color: var(--red); color: #fff; }
.confirm-dialog .btn-danger:hover, .confirm-dialog .btn-danger:focus-visible { background: #912018; border-color: #912018; }
@media (max-width: 480px) { .confirm-actions .btn { flex: 1 1 0; } }
@media (prefers-reduced-motion: no-preference) {
    dialog.confirm-dialog[open] { animation: confirm-in .16s ease-out; }
    dialog.confirm-dialog[open]::backdrop { animation: confirm-fade .16s ease-out; }
}
@keyframes confirm-in { from { opacity: 0; transform: translateY(8px) scale(.98); } }
@keyframes confirm-fade { from { opacity: 0; } }
/* Club chosen in a club search (data-club-note): the note under the field says what the button sends */
.hint.is-selected { color: var(--ink); }
.scanner-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.scanner-view { position: relative; aspect-ratio: 1 / 1; background: #111; border-radius: 10px; overflow: hidden; }
.scanner-view video, .scanner-view #qr-reader { width: 100%; height: 100%; object-fit: cover; display: block; }
.scanner-view #qr-reader video { object-fit: cover; }
.scanner-frame { position: absolute; inset: 18%; border: 3px solid rgba(255, 255, 255, .85); border-radius: 14px; box-shadow: 0 0 0 999px rgba(0, 0, 0, .25); pointer-events: none; }
.scanner-view #qr-reader:not([hidden]) ~ .scanner-frame { display: none; }
.scanner-status { margin: 12px 0 0; color: var(--ink-soft); text-align: center; }
.scanner-status.is-error { color: var(--red); }
.poster-code { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; margin: 4px auto 0; padding: 10px 22px; border: 2px dashed var(--beige); border-radius: 12px; }
.poster-code span { font-size: .85rem; color: var(--ink-soft); }
.poster-code strong { font-size: 2rem; letter-spacing: .12em; font-family: ui-monospace, Menlo, Consolas, monospace; }
.steps-list { padding-left: 22px; margin: 0 0 14px; }
.steps-list li { padding: 4px 0; }
.club-badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 99px; background: var(--blue-soft); color: var(--blue-ink); font-size: .82rem; font-weight: 700; }
.definition { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0; }
.definition dt { color: var(--ink-soft); font-weight: 600; }
.definition dd { margin: 0; }

/* ---------- Charts ---------- */
.chart { width: 100%; height: auto; display: block; }
.chart-axis { stroke: var(--beige); stroke-width: 1.5; }
.chart-bar rect { fill: var(--blue); opacity: .9; }
.chart-bar:hover rect { opacity: 1; fill: var(--blue-ink); }
.chart-alt .chart-bar rect { fill: var(--beige-ink); opacity: .75; }
.chart-label { font-size: 12px; fill: var(--ink-soft); }
.chart-value { font-size: 11px; fill: var(--ink); font-weight: 700; }
.hbar { display: grid; grid-template-columns: 170px 1fr 90px; gap: 10px; align-items: center; padding: 6px 0; font-size: .92rem; }
.hbar-track { height: 10px; background: var(--beige-soft); border-radius: 99px; overflow: hidden; }
.hbar-track span { display: block; height: 100%; background: var(--beige-ink); border-radius: 99px; }

/* ---------- Parking planning grid ---------- */
/* The days share the width of the card, so the grid follows the size of the screen. Each day keeps 40 px at least:
   below that the grid scrolls sideways (phones). The stand column is as wide as the longest name (--stand-ch, and
   --days, set by the page), up to 11 rem. The cells grow a little taller on wide screens. */
.planning {
    --stand-w: min(calc(var(--stand-ch, 4) * 1ch + 1.2em), 11rem);
    width: 100%;
    min-width: calc(var(--stand-w) + 14px + var(--days, 14) * 43px + 3px);
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 3px;
    font-size: .8rem;
}
.planning th { font-weight: 700; color: var(--ink-soft); padding: 4px; text-align: center; white-space: nowrap; }
.planning th.stand { width: var(--stand-w); text-align: left; padding-right: 10px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; }
.planning td { height: clamp(30px, 2.4vw, 40px); background: var(--beige-soft); border-radius: 5px; text-align: center; }
.planning td.busy { background: var(--blue); color: #fff; font-weight: 700; }
.planning td.busy.unpaid { background: #e6a23c; }
.planning td.closed { background: repeating-linear-gradient(45deg, #eee, #eee 4px, #f7f7f7 4px, #f7f7f7 8px); }
.planning td.today { outline: 2px solid var(--beige-ink); }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: .85rem; color: var(--ink-soft); margin-top: 10px; }
.legend i { display: inline-block; width: 14px; height: 14px; border-radius: 4px; vertical-align: -2px; margin-right: 6px; }

.stand-option { display: flex; gap: 16px; align-items: center; justify-content: space-between; padding: 14px 16px; border: 2px solid var(--beige-line); border-radius: 10px; cursor: pointer; }
.stand-option + .stand-option { margin-top: 10px; }
.stand-option:has(input:checked) { border-color: var(--blue-ink); background: var(--blue-soft); }
.stand-option.is-unavailable { opacity: .55; cursor: not-allowed; }
.stand-option .price { font-weight: 800; font-size: 1.15rem; white-space: nowrap; }

/* ---------- Public aerodrome page ---------- */
.airport-hero { padding: 36px 0 30px; }
.airport-code { display: inline-block; font-weight: 800; letter-spacing: .08em; background: var(--blue-ink); color: #fff; border-radius: 8px; padding: 4px 10px; font-size: .95rem; margin-right: 8px; vertical-align: 4px; }
.fee-list { list-style: none; margin: 0; padding: 0; }
.fee-list li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--beige-line); }
.fee-list .cond { display: block; font-size: .84rem; color: var(--grey); }
.fee-list .amount { font-weight: 800; white-space: nowrap; text-align: right; }
/* The unit under a price ("HT par tonne entamée et par atterrissage") wraps instead of pushing the price off screen. */
.fee-list li > span:first-child { min-width: 0; }
.fee-list .amount { flex: 0 1 auto; max-width: 55%; }
.fee-list .amount .cond { white-space: normal; }
/* Recent aerodromes on the declaration page: a long name is cut with an ellipsis rather than overflowing. */
.recent-airports .btn { max-width: 100%; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-block; }

/* QR poster */
.poster { max-width: 720px; margin: 0 auto; text-align: center; padding: 40px; border: 3px solid var(--beige); border-radius: 24px; background: #fff; }
.poster h1 { font-size: 2.4rem; margin-bottom: 4px; }
.poster .qr { display: inline-block; padding: 16px; background: #fff; border: 2px solid var(--beige-line); border-radius: 16px; margin: 20px 0; }
.poster .qr img, .poster .qr canvas { display: block; max-width: 100%; height: auto; }
.poster .qr { max-width: 100%; box-sizing: border-box; }
/* On a phone the poster keeps the whole QR code on screen (printing is not affected). */
@media (max-width: 640px) { .poster { padding: 22px 14px; } .poster h1 { font-size: 1.7rem; } }
.poster .url { font-weight: 800; font-size: 1.2rem; color: var(--blue-ink); word-break: break-all; }
.qr-inline { display: inline-block; padding: 10px; background: #fff; border: 1px solid var(--beige-line); border-radius: 12px; }

/* Dev mailbox */
.mail-frame { width: 100%; min-height: 640px; border: 1px solid var(--beige-line); border-radius: 10px; background: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
    .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .form-grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .account-type.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .app-main { padding: 22px 20px 50px; }
}
/* Public header: the links fold behind the Menu button before they run out of room on one line (French, signed out,
   with the "MisterLanding" logo: about 1 140 px); the language button stays in the bar, next to the Menu button. */
@media (max-width: 1180px) {
    .btn.nav-toggle { display: inline-flex; order: 2; margin-left: 0; }
    .site-header .lang-menu { order: 1; margin-left: auto; }
    .site-nav { display: none; position: absolute; top: 72px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--beige-line); padding: 12px 20px 18px; flex-direction: column; align-items: stretch; }
    .site-nav.is-open { display: flex; }
    .site-header .container { position: relative; }
    .site-header .lang-menu, .btn.nav-toggle { flex: none; }
}
/* Phones (320 to 440 px): the "MisterLanding" logo, the language button and the Menu button still side by side. */
@media (max-width: 440px) {
    .site-header .container { gap: 10px; }
    .site-header .logo { font-size: 1.3rem; }
    .auth-title .logo { font-size: 2.5rem; }
}
@media (max-width: 340px) {
    .site-header .logo { font-size: 1rem; }
}
@media (max-width: 900px) {
    /* One column: the menu row keeps its own height (the shell's min-height must not stretch it). */
    .app-shell { grid-template-columns: 1fr; align-content: start; }
    .app-sidebar { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--beige-line); padding: 8px 12px; overflow-x: auto; }
    .side-nav { display: flex; gap: 6px; }
    .side-nav a { white-space: nowrap; padding: 8px 12px; font-size: .82rem; }
    .side-nav .nav-sep, .side-nav .nav-label { display: none; }
    .grid-2, .grid-3 { grid-template-columns: minmax(0, 1fr); }
    .quote-box { position: static; }
    .org { padding-left: 10px; }
    .org .org-text > span { display: none; }
    .org strong { max-width: 34vw; }
}
@media (max-width: 640px) {
    body { font-size: 15px; }
    .grid-4 { grid-template-columns: 1fr 1fr; }
    .form-grid, .form-grid.cols-3, .form-grid.cols-4 { grid-template-columns: 1fr; }
    .form-grid .span-2 { grid-column: auto; }
    .hero { padding: 48px 0 84px; border-radius: 0 0 50% 50% / 0 0 8% 8%; }
    .hero-search { flex-direction: column; }
    .card { padding: 18px; }
    .hbar { grid-template-columns: 110px 1fr 70px; }
    .page-head h1 { font-size: 1.35rem; }
    .topbar-right .btn-label { display: none; }
    .app-topbar .inner { gap: 8px; padding: 0 12px; }
    .app-topbar .logo { font-size: 1.25rem; }
    .topbar-right { gap: 6px; }
    .org strong { max-width: 30vw; }
    .space-switcher > summary.org { padding: 6px 6px 6px 10px; }
    /* The space menu spans the screen under the top bar instead of running off its right edge. */
    .space-switcher .menu-panel { position: fixed; top: 68px; left: 8px; right: 8px; min-width: 0; max-width: none; }
    .definition { grid-template-columns: 1fr; gap: 2px; }
    .account-type.cols-3, .account-type.cols-4 { grid-template-columns: 1fr; }
    .definition dd { margin-bottom: 8px; }
}

@media print {
    .site-header, .site-footer, .app-topbar, .app-sidebar, .no-print, .flashes { display: none !important; }
    .app-shell { display: block; }
    .app-main { padding: 0; }
    body { background: #fff; }
    .card { box-shadow: none; border: 0; }
    .poster { border: 0; }
}

/* Expandable action row under a table row (the ▼ / ▲ of the original design) */
.row-toggle { min-width: 38px; }
.row-actions td { background: var(--beige-soft); border-bottom: 2px solid var(--beige); }
.table tbody tr.row-actions:hover td { background: var(--beige-soft); }
.actions-bar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.actions-bar form { display: inline-flex; gap: 6px; align-items: center; margin: 0; }
.actions-bar select, .actions-bar input[type=email] { width: auto; min-height: 34px; padding: 4px 8px; font-size: .88rem; }
.actions-bar select { height: 34px; }
.actions-bar .btn { min-height: 34px; }
/* Compact select inside a table row (club members: who settles the fees), as wide as its longest choice and as tall
   as the small buttons of the row. */
.table select.select-compact { width: auto; min-height: 30px; height: 30px; padding: 3px 8px; font-size: .88rem; }
.actions-bar .sep { width: 1px; align-self: stretch; background: var(--beige); margin: 0 4px; }

/* Main content + fixed-width side column (quote box, help, add form) */
.layout-aside { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr) 330px; align-items: start; }
.layout-aside > .card + .card { margin-top: 0; }
/* Grid items may shrink below their content (a wide table then scrolls inside its card, not the whole page). */
.layout-aside > * { min-width: 0; }
.reg { white-space: nowrap; }
@media (min-width: 901px) and (max-width: 1280px) {
    .app-shell { grid-template-columns: 220px minmax(0, 1fr); }
    .layout-aside .form-grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
    .layout-aside { grid-template-columns: minmax(0, 1fr); }
    .app-shell { grid-template-columns: 1fr; }
}

/* Grouped payment: invoices of the same aerodrome ticked on the invoice page */
.group-pick .check { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 9px 0; border-top: 1px solid var(--beige-line); font-weight: 400; }
.group-pick .check small { display: block; color: var(--ink-soft); font-size: .82rem; }
.group-pick .check .price { font-weight: 700; white-space: nowrap; }
.group-pick .check.is-fixed { cursor: default; }
.pay-all { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; padding: 12px 14px; margin-top: 12px; border-radius: var(--radius); background: var(--blue-soft); }
.pay-all form { margin: 0; }

/* Contest of an invoice */
.claim-box > summary { cursor: pointer; font-weight: 600; color: var(--ink-soft); }
.claim-box[open] > summary { color: var(--ink); }
.claim-card.claim-open h3 { color: var(--amber); }
.claim-card.claim-resolved h3 { color: var(--green); }
.claim-card.claim-rejected h3 { color: var(--red); }
.badge-claim { background: var(--amber-soft); color: var(--amber); }

/* Aircraft favourites */
.fav-toggle { border: 0; background: none; padding: 2px 6px; font-size: 1.25rem; line-height: 1; color: var(--beige); cursor: pointer; }
.fav-toggle.is-on { color: #d4a017; }
.fav-toggle:hover { color: #d4a017; }

/* Avatars (paying accounts): white drawing on a coloured disc; initials otherwise */
.avatar { display: inline-flex; align-items: center; justify-content: center; flex: none; border-radius: 50%; color: #fff; vertical-align: middle; overflow: hidden; }
.avatar .svg-icon { width: 62%; height: 62%; vertical-align: 0; }
.avatar-initials { background: var(--beige-soft); color: var(--beige-ink); border: 1.5px solid var(--beige); font-weight: 700; letter-spacing: .02em; }
.topbar-avatar { display: inline-flex; border-radius: 50%; }
.topbar-avatar:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.member-cell { display: flex; gap: 10px; align-items: center; }
.avatar-picker { display: grid; gap: 14px; }
.avatar-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.avatar-grid label { display: flex; justify-content: center; padding: 5px 2px; border-radius: 12px; cursor: pointer; border: 2px solid transparent; }
.avatar-grid label:has(input:checked) { border-color: var(--blue-ink); background: var(--blue-soft); }
.avatar-grid input, .avatar-colors input { position: absolute; opacity: 0; width: 1px; height: 1px; }
/* 18 drawings per kind of account: 6 columns everywhere, the discs shrink on phones */
.avatar-grid .avatar { width: 100%; max-width: 44px; height: auto; aspect-ratio: 1; background: var(--avatar-color, var(--beige-ink)); }
.avatar-set-title { margin: 4px 0 -6px; font-weight: 600; color: var(--ink-soft); }
.avatar-picker fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.avatar-colors { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 8px; }
.avatar-colors label { width: 100%; max-width: 34px; aspect-ratio: 1; border-radius: 50%; cursor: pointer; box-shadow: inset 0 0 0 3px #fff; border: 2px solid transparent; }
.avatar-colors label:has(input:checked) { border-color: var(--ink); }
.avatar-grid label:has(input:focus-visible), .avatar-colors label:has(input:focus-visible) { outline: 2px solid var(--blue); outline-offset: 2px; }
/* Without Premium: the same choices, slightly blurred and inactive */
.avatar-picker.is-locked fieldset { filter: blur(2px); pointer-events: none; user-select: none; }
/* Aircraft tables (pilot, club fleet): columns as narrow as their content, so that they fit on most screens */
.aircraft-table abbr[title] { text-decoration: none; cursor: help; }
.aircraft-table td.type-col { min-width: 7em; }
.reg-cell .inline-form { display: block; }
.reg-cell .fav-toggle { margin-left: -6px; }
/* Star on the line of the registration, the registration above the club name */
.reg-line { display: inline-flex; align-items: baseline; }
.reg-cell.is-inline .inline-form { display: inline; }
.reg-cell.is-inline .fav-toggle { padding-right: 3px; }
.dims { display: inline-grid; grid-template-columns: auto auto; column-gap: .35em; margin: 0; }
.dims dt { text-align: left; }
.dims dd { margin: 0; text-align: right; }
/* Buttons side by side, or one above the other (same width) when the column is too narrow */
.row-buttons { display: flex; flex-wrap: wrap; gap: 6px; width: -webkit-fit-content; width: fit-content; margin-left: auto; }
.row-buttons > * { flex: 1 1 auto; }
.row-buttons form { display: flex; }
.row-buttons form .btn { flex: 1; }
.row-buttons .svg-icon { display: none; }
/* The width of the table decides: dimensions on one line when there is room, icons instead of words when it is narrow */
.aircraft-wrap { container: aircraft / inline-size; }
@container aircraft (min-width: 820px) {
    .dims { display: inline-flex; column-gap: .35em; }
    .dims dd + dt { margin-left: .8em; }
}
@container aircraft (max-width: 599px) {
    .aircraft-table th, .aircraft-table td { padding-left: 8px; padding-right: 8px; }
    .row-buttons .svg-icon { display: inline-block; }
    /* Relative: the hidden word stays inside the scrolling table instead of widening the page */
    .row-buttons .btn { padding: 6px 9px; position: relative; }
    .row-buttons .btn-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
/* Aircraft pages below 1300 px: one view at a time instead of two columns, the tables, the add form or (pilot) the
   search to join a club. The buttons sit on the line of the favourites filter (pilot) or in the header (club fleet). */
.btn.view-toggle { display: none; }
.tabs-bar { display: flex; flex-wrap: wrap; align-items: center; column-gap: 12px; }
.tabs-bar > .tabs, .tabs-bar > .btn, .tabs-bar > .view-toggles { margin: 0 0 20px; }
.tabs-bar > .view-toggles { display: none; gap: 12px; margin-left: auto; }
.fav-filter .count { font-weight: 600; font-size: .8rem; opacity: .75; }
@media (max-width: 640px) {
    /* « ★ (2) »: the word stays for screen readers */
    .fav-filter { position: relative; }
    .fav-filter .fav-word { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
/* On a phone the add button is a "+" (a pencil while an aircraft is being edited) */
.view-toggle .svg-icon { display: none; }
@media (max-width: 440px) {
    /* Signed in: the space name keeps some room next to the "MisterLanding" logo. */
    .app-topbar .logo { font-size: 1rem; }
}
@media (max-width: 359px) {
    /* An administrator without a space has no space name to shorten: the buttons tighten up (it ran 12 px off a
       320 px screen). */
    .topbar-right { gap: 4px; }
    .topbar-right .btn-sm:not(.lang-button) { padding-left: 9px; padding-right: 9px; }
}
@media (max-width: 440px) {
    .view-switch[data-view="list"] .tabs-bar [data-view-target="form"] { position: relative; padding-left: 12px; padding-right: 12px; }
    .view-switch[data-view="list"] .tabs-bar [data-view-target="form"] .svg-icon { display: inline-block; }
    .view-switch[data-view="list"] .tabs-bar [data-view-target="form"] .toggle-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
/* The introduction wraps rather than pushing the button under it */
.page-head.with-toggle > div:first-child { flex: 1 1 280px; min-width: 0; }
@media (max-width: 1299px) {
    .btn.view-toggle { display: inline-flex; }
    .tabs-bar > .view-toggles { display: flex; }
    .view-switch .layout-aside { grid-template-columns: minmax(0, 1fr); }
    .view-switch:not([data-view="list"]) .view-list, .view-switch:not([data-view="form"]) .view-form,
    .view-switch:not([data-view="club"]) .view-club { display: none; }
    /* Away from the list, only the button of the view shown stays: it leads back to the list */
    .view-switch[data-view="form"] .view-toggle[data-view-target="club"],
    .view-switch[data-view="club"] .view-toggle[data-view-target="form"] { display: none; }
}
/* Fleet import from the aircraft register */
.import-table td input[type="number"] { width: 92px; min-height: 34px; padding: 4px 8px; }
.import-table tr.is-muted td { color: var(--grey); }
.import-table .import-group th { padding-top: 18px; text-align: left; font-size: .9rem; color: var(--beige-ink); text-transform: none; letter-spacing: 0; }
.import-table .import-group .hint { font-weight: 400; }
.ref-results { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 6px; }
.ref-results a { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 8px; background: #fff; border: 1px solid var(--beige-line); color: var(--ink); text-decoration: none; }
.ref-results a:hover { border-color: var(--blue); }
.ref-results span { font-size: .85rem; color: var(--ink-soft); }
/* « Mes avions »: one card per club of the pilot (and per request waiting for a club), the search to join a club on the
   side. A result is a button that sends the request, drawn like the links above; a club that cannot be asked is plain. */
.club-section { scroll-margin-top: 90px; }
.club-search .row input { flex: 1 1 160px; width: auto; min-width: 0; }
.ref-results form { margin: 0; }
.ref-results button, .ref-results .ref-static { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; padding: 10px 12px; border-radius: 8px; background: #fff; border: 1px solid var(--beige-line); color: var(--ink); font: inherit; text-align: left; }
.ref-results button { cursor: pointer; }
.ref-results button:hover { border-color: var(--blue); }
.ref-results .ref-static { background: var(--beige-soft); }
.ref-results .ref-action { color: var(--blue-ink); font-weight: 700; }
.ref-results .ref-state { font-weight: 600; }
/* Club Members page: requests to join, the answer buttons always in view (under the name when the column is narrow) */
.request-list { list-style: none; margin: 0; padding: 0; }
.request-list li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-top: 1px solid var(--beige-line); }
.request-list li:first-child { border-top: 0; padding-top: 0; }
.request-list .member-cell { min-width: 0; }
@media (max-width: 1299px) {
    /* The search only shows in its own view: elsewhere the card after it keeps its place at the top. */
    .view-switch:not([data-view="club"]) .club-search + .card { margin-top: 0; }
}
.registry-offer { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.field [data-club-unlink] { align-self: flex-start; text-align: left; }

/* ---------- Administration of the platform (/admin) ---------- */
.topbar-right .btn.is-current { background: var(--beige); color: var(--ink); }
.notice-danger { background: var(--red-soft); border: 1px dashed #f1c3be; color: var(--red); }
.notice ul { margin: 6px 0 0; padding-left: 20px; }
.admin-todo { list-style: none; margin: 0; padding: 0; }
.admin-todo li { padding: 9px 0; border-bottom: 1px solid var(--beige-line); }
.admin-todo li:last-child { border-bottom: 0; }
.admin-todo .badge { margin-right: 6px; }
.settings-table td { vertical-align: top; }
.settings-table input { width: 100%; min-width: 84px; max-width: 140px; }
.tax-return td:first-child { width: 48px; }
.admin-message-title { font-size: 1.05rem; }
.admin-message-body { overflow-wrap: anywhere; }
/* Contact messages: the selection bar stays under the top bar while scrolling; the undo bar floats at the bottom */
.admin-messages { margin-bottom: 40px; }
.messages-toolbar { position: sticky; top: 65px; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 0 0 16px; padding: 8px 14px; background: var(--beige-soft); border: 1px solid var(--beige-line); border-radius: var(--radius); box-shadow: var(--shadow); }
.messages-toolbar .messages-total { margin-left: auto; }
.messages-toolbar .label-short { display: none; }
@media (max-width: 520px) {
    .messages-toolbar { gap: 8px 12px; padding: 8px 10px; }
    .messages-toolbar .label-long, .messages-toolbar .messages-total { display: none; }
    .messages-toolbar .label-short { display: inline; }
}
.admin-message-head { display: flex; align-items: flex-start; gap: 4px; min-width: 0; }
.admin-message-head h2 { min-width: 0; overflow-wrap: anywhere; }
.admin-message-pick { display: flex; padding: 4px 6px; margin: -3px 0 -4px -6px; cursor: pointer; }
.admin-message-pick input { margin: 0; }
.admin-message.is-selected { border-color: var(--blue-ink); box-shadow: inset 3px 0 0 var(--blue-ink), var(--shadow); }
.admin-message-actions { display: flex; flex-wrap: wrap; gap: 8px; }
/* A long address wraps inside its button instead of widening the page on a phone */
.admin-message-actions .btn { white-space: normal; overflow-wrap: anywhere; text-align: left; }
.undo-bar { position: fixed; z-index: 40; left: 50%; bottom: 20px; transform: translateX(-50%); display: flex; align-items: center; gap: 12px; width: max-content; max-width: calc(100vw - 32px); padding: 8px 10px 8px 16px; border-radius: 10px; border: 1px solid #bfe3cd; background: var(--green-soft); color: #14532d; font-weight: 500; box-shadow: 0 12px 30px rgba(31, 41, 51, .16); }
.undo-bar > span { overflow-wrap: anywhere; }
.undo-bar .undo-close { background: none; border: 0; padding: 0 4px; font-size: 1.2rem; line-height: 1; cursor: pointer; color: inherit; opacity: .6; }
/* The VAT return and the turnover side by side only on wide screens (their tables need the room). */
@media (max-width: 1280px) {
    .tax-main { grid-template-columns: minmax(0, 1fr); }
}

/* Public aerodrome page: QR code of the page, next to the estimated amount */
.qr-card-code { text-align: center; }
.qr-card-code .qr-inline img { display: block; }

/* Searchable dropdowns (more than 7 choices, app.js): the field looks like the other dropdowns, the list like the
   other suggestion lists. The native <select> stays underneath, invisible, for the form and its validation. */
.ss { position: relative; width: 100%; }
.ss input.ss-input {
    padding-right: 34px;
    text-overflow: ellipsis;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2352606d' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px 8px;
}
.ss input.ss-input:focus { cursor: text; }
.ss input.ss-input:disabled { cursor: default; opacity: .6; }
.ss select.ss-native { position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; min-height: 0; padding: 0; border: 0; opacity: 0; pointer-events: none; }
.ss.ss-invalid input.ss-input { border-color: var(--red); }
.ss-list li[role="option"].is-current { font-weight: 700; }
.ss-list .ss-group { padding: 8px 10px 4px; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--grey); }
.actions-bar .ss, .menu-inline .ss { width: auto; display: inline-block; }
.actions-bar .ss input.ss-input, .menu-panel .menu-inline .ss input.ss-input { min-height: 34px; padding: 4px 30px 4px 8px; font-size: .88rem; }
.menu-panel .menu-search { width: calc(100% - 8px); margin: 4px; min-height: 38px; padding: 6px 10px; font-size: .92rem; }
.menu-panel .menu-empty { margin: 6px 10px; color: var(--grey); font-size: .88rem; }

/* Aeronautical information of the public aerodrome pages: the main facts in a row, the details in tabs */
.welcome-card { display: flex; gap: 12px 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.welcome-card > p { flex: 1 1 320px; }
.aero-card { scroll-margin-top: 90px; }
/* « Weather » becomes « Wx » on a phone */
.aero-card .label-short { display: none; }
@media (max-width: 520px) {
    .aero-card .label-long { display: none; }
    .aero-card .label-short { display: inline; }
}
@media (prefers-reduced-motion: no-preference) { html:has(#infos) { scroll-behavior: smooth; } }
.aero-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 18px; margin: 0 0 20px; }
.aero-facts dt { font-size: .78rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-soft); }
.aero-facts dd { margin: 2px 0 0; font-weight: 600; }
.aero-tabs .tabs { margin-bottom: 12px; }
.aero-tabs .tabs a { padding: 6px 14px; font-size: .92rem; }
.aero-panel + .aero-panel { margin-top: 18px; }
.aero-tabs.is-tabbed .aero-panel + .aero-panel { margin-top: 0; }
.aero-tabs.is-tabbed .aero-panel-title { display: none; }
@media (max-width: 720px) {
    .aero-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .aero-tabs .tabs { gap: 6px; }
    .aero-tabs .tabs a { padding: 5px 10px; font-size: .86rem; }
}
/* Clubs and schools based on the aerodrome (partials/based_clubs.php), two per row on a wide page, and the website,
   e-mail and phone links of an aerodrome or a club */
.based-clubs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; }
.layout-aside .based-clubs { grid-template-columns: minmax(0, 1fr); }
.based-club { display: grid; gap: 4px; align-content: start; padding: 14px 0; border-top: 1px solid var(--beige-line); }
.based-club h3 { margin: 0; font-size: 1.02rem; }
.based-club-registrations summary { width: fit-content; color: var(--ink-soft); font-size: .88rem; cursor: pointer; }
.based-club-registrations p { margin-top: 4px; font-size: .88rem; }
.based-club-registrations a { white-space: nowrap; }
.contact-links { display: flex; flex-wrap: wrap; gap: 2px 16px; overflow-wrap: anywhere; }
/* Directories of the aerodromes and of the clubs (/aerodromes, /clubs): initials, then the names in two columns */
.directory-initials { display: flex; flex-wrap: wrap; gap: 6px; }
.directory-initials a { min-width: 34px; padding: 4px 9px; border: 1px solid var(--beige-line); border-radius: 8px; background: var(--surface); text-align: center; font-weight: 600; text-decoration: none; }
.directory-section { scroll-margin-top: 90px; }
.directory-section + .directory-section { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--beige-line); }
.directory-section h3 { margin: 12px 0 6px; font-size: 1rem; }
.directory-list { columns: 2; column-gap: 32px; margin: 0; padding: 0; list-style: none; }
.directory-list li { break-inside: avoid; padding: 3px 0; }
.directory-list .muted { font-size: .88rem; }
.directory-code { font-weight: 700; font-variant-numeric: tabular-nums; }
@media (max-width: 720px) {
    .directory-list { columns: 1; }
}
/* Page of a club or school (/c/…): its fleet by type with the registrations */
.club-fleet { list-style: none; margin: 0; padding: 0; }
.club-fleet li { display: grid; gap: 2px; padding: 10px 0; border-top: 1px solid var(--beige-line); }
.club-fleet-registrations { font-size: .88rem; }
.club-fleet-registrations a { white-space: nowrap; }
@media (max-width: 720px) {
    .based-clubs { grid-template-columns: minmax(0, 1fr); }
}

/* Notifications (app/lib/notifications.php): a red count on the profile button, at the right of the side tabs and on
   the dashboard cards, which open the page that handles them. */
.notif-count { display: inline-flex; align-items: center; justify-content: center; flex: none; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--red); color: #fff; font-size: .74rem; font-weight: 800; line-height: 1; letter-spacing: 0; text-transform: none; font-variant-numeric: tabular-nums; }
/* In a side tab the count sits close to the label and into the right padding: « Tableau de bord » and its count fit on
   one line of the 250 px menu (the icon keeps its 10 px from the label). */
.side-nav a:has(> .notif-count) { column-gap: 4px; }
.side-nav a:has(> .notif-count) .nav-icon { margin-right: 6px; }
.side-nav a .notif-count { margin-left: auto; margin-right: -8px; min-width: 18px; height: 18px; padding: 0 5px; font-size: .68rem; }
/* A link to a part of a page (#requests, #unpaid…) stops it below the sticky top bar. */
.app-main [id] { scroll-margin-top: 80px; }
.profile-menu > summary::after, .profile-menu[open] > summary::after { content: none; }
.profile-menu > summary.topbar-avatar { position: relative; }
.profile-menu > summary .notif-count { position: absolute; top: -6px; right: -5px; min-width: 18px; height: 18px; padding: 0 5px; font-size: .68rem; box-shadow: 0 0 0 2px #fff; }
.profile-menu[open] > summary .avatar { box-shadow: 0 0 0 3px var(--beige); }
.profile-menu .menu-panel { min-width: 280px; max-width: calc(100vw - 32px); }
.menu-panel .menu-entry { display: flex; gap: 10px; align-items: flex-start; }
.menu-panel .menu-entry strong { display: block; font-weight: 600; }
.menu-panel .menu-entry small { display: block; color: var(--grey); font-size: .8rem; }
.menu-panel .menu-icon { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 20px; height: 20px; margin-top: 1px; color: var(--beige-ink); }
.menu-panel .menu-icon .svg-icon { width: 18px; height: 18px; }
a.card.kpi-link { display: block; color: inherit; transition: border-color .15s, box-shadow .15s; }
a.card.kpi-link:hover { text-decoration: none; border-color: var(--beige); box-shadow: 0 1px 2px rgba(31, 41, 51, .06), 0 10px 24px rgba(31, 41, 51, .1); }
a.card.kpi-link:focus-visible, .kpi-part:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.kpi-link .kpi-label { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.kpi-link .kpi-label .notif-count { margin-top: -1px; }
.kpi-part { display: inline-block; color: inherit; border-radius: 8px; padding: 0 6px; margin: 0 -6px; }
.kpi-part:hover { text-decoration: none; background: var(--beige-soft); }
.kpi-part .notif-count { vertical-align: super; margin-left: 2px; }
@media (max-width: 640px) {
    /* The menu spans the screen under the top bar, like the space menu. */
    .profile-menu .menu-panel { position: fixed; top: 68px; left: 8px; right: 8px; min-width: 0; max-width: none; }
}

/* Fuel module: gauge of each tank (fill by state: green, amber below the order threshold, red when critical or empty),
   its order threshold, forecast and chart of the level (30 days past, 30 days forecast dashed). */
.fuel-tank.is-inactive { opacity: .7; }
.fuel-gauge { position: relative; height: 34px; border: 2px solid var(--beige); border-radius: 10px; background: var(--beige-soft); overflow: hidden; }
.fuel-gauge-fill { position: absolute; inset: 0 auto 0 0; background: var(--green); border-radius: 0 6px 6px 0; transition: width .4s ease; }
.fuel-low .fuel-gauge-fill { background: #d58a12; }
.fuel-critical .fuel-gauge-fill, .fuel-empty .fuel-gauge-fill { background: var(--red); }
.is-inactive .fuel-gauge-fill { background: var(--grey); }
.fuel-gauge-tick { position: absolute; bottom: 0; width: 1px; height: 8px; background: rgba(31, 41, 51, .25); }
.fuel-gauge-threshold { position: absolute; top: -2px; bottom: -2px; width: 0; border-left: 2px dashed var(--ink); }
.fuel-gauge-figures { display: flex; justify-content: space-between; align-items: baseline; margin: 6px 0 8px; font-variant-numeric: tabular-nums; }
.fuel-gauge-figures strong { font-size: 1.5rem; font-weight: 800; }
.fuel-gauge-figures span { color: var(--ink-soft); font-weight: 700; }
.fuel-forecast { margin: 0 0 12px; padding-left: 18px; }
.fuel-forecast li + li { margin-top: 2px; }
.fuel-low .fuel-forecast li:nth-child(2), .fuel-critical .fuel-forecast li:nth-child(2) { font-weight: 700; }
.fuel-chart-box { margin: 0; }
.fuel-chart { width: 100%; height: 110px; display: block; overflow: visible; }
.fuel-chart-axis { stroke: var(--beige); stroke-width: 1.5; }
.fuel-chart-area { fill: var(--blue-soft); }
.fuel-chart-line { fill: none; stroke: var(--blue); stroke-width: 2.5; stroke-linejoin: round; }
.fuel-chart-forecast { fill: none; stroke: var(--blue); stroke-width: 2; stroke-dasharray: 6 5; opacity: .75; }
.fuel-chart-threshold { stroke: var(--amber); stroke-width: 1.5; stroke-dasharray: 4 4; }
.fuel-chart-today { stroke: var(--grey); stroke-width: 1; }
.fuel-chart-dates { display: flex; justify-content: space-between; margin-top: 4px; font-size: .78rem; color: var(--ink-soft); }
.fuel-chart-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin: 6px 0 0; font-size: .78rem; color: var(--ink-soft); }
.fuel-chart-legend span { display: inline-block; width: 18px; height: 0; margin-left: 6px; border-top: 2.5px solid var(--blue); }
.fuel-chart-legend span:first-child { margin-left: 0; }
.fuel-chart-legend .key-forecast { border-top: 2px dashed var(--blue); opacity: .75; }
.fuel-chart-legend .key-threshold { border-top: 1.5px dashed var(--amber); }
.fuel-kinds { display: grid; width: 100%; }
.fuel-kinds label { padding: 8px 6px; }
.fuel-prices .input-addon { min-width: 110px; }
.fuel-public { display: grid; gap: 8px; }
.fuel-public-row { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.fuel-public-row .muted { flex-basis: 100%; }

/* Verification of a registration (/verification): steps, one line per kind of document, request sent */
.verify-status { padding: 0; overflow: hidden; }
.verify-steps { list-style: none; margin: 0; padding: 18px 22px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; background: var(--beige-soft); border-bottom: 1px solid var(--beige-line); }
.verify-steps li { position: relative; display: flex; gap: 10px; align-items: flex-start; min-width: 0; color: var(--grey); }
.verify-steps li + li::before { content: ""; position: absolute; top: 15px; left: -26px; width: 20px; border-top: 2px solid var(--beige); }
.verify-step-mark { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .92rem; background: var(--surface); border: 2px solid var(--beige); color: var(--beige-ink); }
.verify-step-mark .svg-icon { width: 18px; height: 18px; }
.verify-step-text { display: flex; flex-direction: column; min-width: 0; padding-top: 4px; line-height: 1.3; }
.verify-step-text strong { font-size: .95rem; }
.verify-step-text small { font-size: .82rem; color: inherit; }
.verify-steps .is-done { color: var(--ink-soft); }
.verify-steps .is-done strong { color: var(--green); }
.verify-steps .is-done .verify-step-mark { background: var(--green); border-color: var(--green); color: #fff; }
.verify-steps .is-done + li::before { border-color: var(--green); }
.verify-steps .is-current { color: var(--ink-soft); }
.verify-steps .is-current strong { color: var(--ink); }
.verify-steps .is-current .verify-step-mark { background: var(--blue-ink); border-color: var(--blue-ink); color: #fff; box-shadow: 0 0 0 4px var(--blue-soft); }
.verify-steps .is-rejected .verify-step-mark { background: var(--red); border-color: var(--red); box-shadow: 0 0 0 4px var(--red-soft); }
.verify-message { padding: 20px 22px 22px; }
.verify-message h2 { margin-bottom: 6px; }
.verify-message .notice { margin-bottom: 12px; }
.verify-count { font-size: .85rem; font-weight: 700; color: var(--amber); background: var(--amber-soft); border-radius: 99px; padding: 3px 10px; white-space: nowrap; }
.verify-count.is-complete { color: var(--green); background: var(--green-soft); }
.verify-progress { margin: -4px 0 18px; }
.doc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.doc-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: start; padding: 14px 16px; border: 1.5px solid var(--beige-line); border-radius: var(--radius); background: var(--surface); transition: border-color .15s ease, background .15s ease, box-shadow .15s ease; }
.doc-item.is-done { border-color: #c9e6d5; background: linear-gradient(90deg, var(--green-soft), var(--surface) 140px); }
.doc-item.is-dragover { border: 1.5px dashed var(--blue); background: var(--blue-soft); box-shadow: 0 0 0 3px rgba(27, 134, 204, .12); }
.doc-item.is-sending { opacity: .6; pointer-events: none; }
.doc-mark { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--beige-soft); color: var(--beige-ink); }
.doc-mark .svg-icon { width: 20px; height: 20px; }
.doc-item.is-done .doc-mark { background: var(--green); color: #fff; }
.doc-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.doc-head h3 { margin: 0; font-size: 1rem; }
.doc-need { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; padding: 2px 8px; border-radius: 99px; background: #eef0f2; color: #5c6670; }
.doc-need-required { background: var(--amber-soft); color: var(--amber); }
.doc-need-advised { background: var(--blue-soft); color: var(--blue-ink); }
.doc-item.is-done .doc-need-required { background: var(--green-soft); color: var(--green); }
.doc-help { margin: 4px 0 0; font-size: .88rem; color: var(--ink-soft); line-height: 1.45; }
.doc-files { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.doc-files li { display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 8px; border: 1px solid var(--beige-line); border-radius: 8px; background: var(--surface); }
.doc-files form { margin: 0 0 0 auto; }
.doc-files .btn-sm { padding: 5px 7px; }
.doc-file-type { flex: none; font-size: .68rem; font-weight: 800; letter-spacing: .04em; padding: 3px 6px; border-radius: 5px; background: var(--red-soft); color: var(--red); }
.doc-file-type.is-image { background: var(--blue-soft); color: var(--blue-ink); }
.doc-file-name { min-width: 0; font-size: .9rem; font-weight: 600; overflow-wrap: anywhere; line-height: 1.3; }
.doc-file-name small { display: block; font-weight: 400; font-size: .78rem; }
.doc-add { margin: 0; display: flex; gap: 6px; align-items: center; }
.doc-pick { position: relative; cursor: pointer; white-space: nowrap; }
.doc-pick input[type=file] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 0; }
.doc-pick:focus-within { outline: 3px solid rgba(27, 134, 204, .35); outline-offset: 2px; }
.doc-add.is-auto .doc-send { display: none; }
.doc-formats { margin: 12px 0 0; font-size: .84rem; color: var(--grey); }
.verify-send { display: flex; align-items: center; justify-content: space-between; gap: 14px 18px; flex-wrap: wrap; margin-top: 22px; padding: 16px 18px; border-radius: var(--radius); background: var(--amber-soft); border: 1px solid #f3dcb4; }
.verify-send.is-ready { background: var(--green-soft); border-color: #c9e6d5; }
.verify-send > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 260px; }
.verify-send strong { color: var(--amber); }
.verify-send.is-ready strong { color: var(--green); }
.verify-send span { font-size: .88rem; color: var(--ink-soft); }
.verify-tips h3 { display: flex; align-items: center; gap: 8px; font-size: 1rem; }
.verify-tips h3 .svg-icon { color: var(--beige-ink); }
.verify-tips-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: .9rem; color: var(--ink-soft); }
.verify-tips-list li { display: flex; gap: 8px; align-items: flex-start; }
.verify-tips-list .svg-icon { color: var(--green); margin-top: .15em; }
@media (max-width: 640px) {
    .verify-steps { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 16px; }
    .verify-steps li + li::before { top: -14px; left: 15px; width: 0; height: 14px; border-top: 0; border-left: 2px solid var(--beige); }
    .verify-steps .is-done + li::before { border-color: var(--green); }
    .verify-message { padding: 16px; }
    .doc-item { grid-template-columns: auto minmax(0, 1fr); padding: 12px; gap: 12px; }
    .doc-add { grid-column: 2; }
}
