/* ==============================================================
   Event Control's skin (PBI #1146, epic #1144, docs/arquitectura/event-control-estilo.md). Linked the last. The values
   are the tokens of :root.fcc-events (FCC.OperatorsControl.UI.Shared/assets/css/tokens.css): no colour is written here.
   Scoped to .fcc-events (the class of <html>), so the components shared with Unit Control and the public site do not
   change there. Here: the tactical background, the thin scroll bars, the selection, the focus and the entry of a view.
   ===================================================================== */
@layer app {
    :root.fcc-events { color-scheme:dark; scrollbar-color:var(--line-2) transparent; scrollbar-width:thin; }
    .fcc-events body {
        background-color:var(--bg);
        /* The 40 px grid of the proposal: two hairlines of white at 2 %, fixed behind the page. */
        background-image:
            linear-gradient(var(--tactical-grid) 1px, transparent 1px),
            linear-gradient(90deg, var(--tactical-grid) 1px, transparent 1px);
        background-size:40px 40px;
        background-attachment:fixed;
        color:var(--text);
        font-family:var(--sans);
    }
    .fcc-events ::selection { background:var(--gold); color:var(--ag-gold-ink); }
    .fcc-events :focus-visible { outline:2px solid var(--gold); outline-offset:2px; }

    /* Thin scroll bars (WebKit/Blink; Firefox takes scrollbar-width and scrollbar-color from :root above). */
    .fcc-events ::-webkit-scrollbar { width:8px; height:8px; }
    .fcc-events ::-webkit-scrollbar-track { background:transparent; }
    .fcc-events ::-webkit-scrollbar-thumb { background:var(--line-2); border-radius:var(--radius-pill); }
    .fcc-events ::-webkit-scrollbar-thumb:hover { background:var(--text-dim); }

    /* The entry of a view: a 0.22 s fade and rise of what the router puts in <main>. */
    @keyframes ev-view-in { from { opacity:0; transform:translateY(6px); } to { opacity:1; transform:none; } }
    .fcc-events main > * { animation:ev-view-in .22s ease-out backwards; }
    @media (prefers-reduced-motion: reduce) {
        .fcc-events main > * { animation:none; }
    }

    /* ---------- Wizard frame (PBI #1152): header, steps, 8/12 + 4/12 grid, form card and foot ---------- */
    /* Header: the kicker with its gold dash, the title in Barlow and «Cancel» with an arrow. */
    .fcc-events .ev-wizard-head { align-items:center; justify-content:space-between; gap:16px; }
    .fcc-events .ev-wizard-head .agency-breadcrumb {
        display:flex; align-items:center; gap:8px; margin:0 0 4px;
        color:var(--gold); font:700 .6875rem var(--sans); letter-spacing:.16em; text-transform:uppercase;
    }
    .fcc-events .ev-wizard-head .agency-breadcrumb::before { content:""; width:12px; height:2px; background:var(--gold); }
    .fcc-events .ev-wizard-head h1 { margin:0; color:var(--text); font:800 clamp(1.75rem, 4vw, 2.25rem)/1 var(--display); letter-spacing:.03em; text-transform:uppercase; }
    .fcc-events .ev-wizard-cancel {
        display:inline-flex; align-items:center; gap:8px; min-height:40px; padding:0 16px;
        border:1px solid var(--line-2); border-radius:var(--radius); background:var(--surface); color:var(--text-2);
        font:600 .75rem var(--sans);
    }
    .fcc-events .ev-wizard-cancel:hover { background:var(--hover); color:var(--text); }
    .fcc-events .ev-wizard-cancel .fcc-icon, .fcc-events .ev-wizard-cancel svg { color:var(--text-dim); }

    /* Grid: the form card (8/12) and the live preview (4/12, sticky at 80 px) from 1024 px; below, one column and the
       preview underneath. */
    .fcc-events .ev-edit-layout { grid-template-columns:minmax(0,1fr); gap:24px; max-width:none; }
    .fcc-events .ev-unit-preview { position:static; grid-row:auto; top:auto; }
    @media (min-width:1024px) {
        .fcc-events .ev-edit-layout { grid-template-columns:minmax(0,2fr) minmax(0,1fr); }
        .fcc-events .ev-unit-preview { position:sticky; top:80px; }
    }

    /* The card of the form: the console surface (the paper of the panel is not used in Event Control), light border,
       16 px radius. The paper tokens take their console values here, as in Unit Control. */
    .fcc-events .ev-edit-main .ev-form, .fcc-events :is(.rel-results, .addr-results, .locp-results, .tag-chip, .tag-suggest button:hover) {
        --on-surface:var(--text); --on-surface-title:var(--text); --on-surface-2:var(--text-2); --on-surface-muted:var(--text-dim);
        --accent-text:var(--gold); --link:var(--gold); --ok-text:var(--ag-green-2); --control-border:var(--line-control-dark);
        --surface:var(--panel); --surface-raised:var(--panel-2); --surface-field:var(--panel-2);
        --btn-primary-bg:var(--gold); --btn-primary-hover:var(--gold-2); --btn-primary-text:var(--ag-gold-ink);
        --btn-disabled-bg:var(--panel-3); --focus-ring:var(--gold);
    }
    .fcc-events .ev-edit-main .ev-form {
        --paper:var(--panel); --paper-2:var(--panel-2); --paper-field:var(--panel-2); --paper-edge:var(--line);
        --ink:var(--text); --ink-2:var(--text-2); --ink-muted:var(--text-dim); --uc-label-paper:var(--uc-label-dark);
        --uc-amber-paper:var(--gold); --uc-green-paper:var(--ag-green-2); --line-control-paper:var(--line-control-dark);
        gap:24px; padding:28px; border:1px solid var(--line-2); border-radius:var(--radius-lg);
        background:var(--panel); box-shadow:0 18px 40px color-mix(in srgb, var(--ag-black) 35%, transparent);
    }
    @media (max-width:760px) { .fcc-events .ev-edit-main .ev-form { padding:20px; } }

    /* The three steps: buttons in a row; the current one gold with its number on gold, the done ones with a green ✓,
       the pending ones dimmed. */
    .fcc-events .evwizard-form .uc-wizard-steps { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
    .fcc-events .evwizard-form .uc-wizard-steps li {
        min-height:44px; padding:0 14px; border:1px solid var(--line); border-radius:var(--radius-md);
        background:var(--bg); color:var(--text-dim); font:700 .75rem var(--sans); letter-spacing:.02em;
    }
    .fcc-events .evwizard-form .uc-wizard-steps li:has(> .uc-wizard-step-open) { padding:0; }
    .fcc-events .evwizard-form .uc-wizard-step-open { gap:10px; padding:0 14px; border-radius:var(--radius-md); }
    .fcc-events .evwizard-form .uc-wizard-step-open:hover { color:var(--text); }
    .fcc-events .evwizard-form .uc-wizard-steps b {
        width:20px; height:20px; border:1px solid var(--line-2); background:var(--panel); color:var(--text-dim); font:700 .6875rem var(--mono);
    }
    .fcc-events .evwizard-form .uc-wizard-steps li.is-current { border-color:var(--gold); background:var(--ag-gold-dim); color:var(--text); box-shadow:0 0 15px var(--ag-gold-dim); }
    .fcc-events .evwizard-form .uc-wizard-steps li.is-current b { border-color:var(--gold); background:var(--gold); color:var(--ag-gold-ink); }
    .fcc-events .evwizard-form .uc-wizard-steps li.is-done { border-color:color-mix(in srgb, var(--ag-green) 40%, transparent); color:var(--text-2); }
    .fcc-events .evwizard-form .uc-wizard-steps li.is-done b { border-color:var(--ag-green); background:var(--ag-green); color:var(--ag-gold-ink); }
    @media (max-width:700px) {
        .fcc-events .evwizard-form .uc-wizard-steps { gap:6px; }
        .fcc-events .evwizard-form .uc-wizard-steps li:not(.is-current) span { display:block; }
        .fcc-events .evwizard-form .uc-wizard-steps li, .fcc-events .evwizard-form .uc-wizard-step-open { padding:0 8px; }
        .fcc-events .evwizard-form .uc-wizard-steps li:has(> .uc-wizard-step-open) { padding:0; }
        .fcc-events .evwizard-form .uc-wizard-step-open { gap:6px; }
    }

    /* The title of each step, with its vertical gold bar. */
    .fcc-events .evwizard-form fieldset { padding:0; border-bottom:0; gap:12px; }
    .fcc-events .evwizard-form legend {
        width:100%; display:flex; align-items:center; gap:8px; margin:0 0 16px; padding:0 0 12px; border-bottom:1px solid var(--line);
        color:var(--text); font:800 1.25rem var(--display); letter-spacing:.05em; text-transform:uppercase;
    }
    .fcc-events .evwizard-form legend::before { content:""; flex:none; width:4px; height:16px; border-radius:var(--radius-pill); background:var(--gold); }

    /* The foot of the step: Back on the left, Next / Publish gold on the right. */
    .fcc-events .evwizard-form .uc-wizard-foot { padding-top:16px; border-top:1px solid var(--line); }
    .fcc-events .evwizard-form .uc-wizard-saved { color:var(--ag-green-2); }
    .fcc-events .evwizard-form .uc-wizard-foot .btn { border-radius:var(--radius-md); font-weight:700; }

    /* ---------- Content of the steps (PBI #1153): fields, cards, media, Markdown, place and access ---------- */
    /* Fields: dark, light border, 12 px radius, gold border on focus. */
    .fcc-events .evwizard-form :is(.form-control, .form-select) {
        min-height:44px; padding:10px 14px; border:1px solid var(--line); border-radius:var(--radius-md);
        background:var(--bg); color:var(--text); font:500 .8125rem var(--sans);
    }
    .fcc-events .evwizard-form :is(.form-control, .form-select):focus { border-color:var(--gold); outline:0; box-shadow:0 0 0 3px var(--ag-gold-dim); }
    .fcc-events .evwizard-form textarea.form-control { min-height:0; }
    .fcc-events .evwizard-form .field-label { margin-top:0; color:var(--text); font:600 .75rem var(--sans); }
    .fcc-events .evwizard-form :is(.ev-hint, .field-hint) { color:var(--text-dim); font-size:.6875rem; }

    /* Selectable cards (organizer, type, access, payment): dark, light border; the chosen one in gold with a ✓ and a halo. */
    .fcc-events .evwizard-form .ev-type-card {
        gap:6px; padding:14px; border:1px solid var(--line); border-radius:var(--radius-md); background:var(--bg); cursor:pointer;
        transition:background .15s, border-color .15s, box-shadow .15s;
    }
    .fcc-events .evwizard-form .ev-type-card:hover { border-color:var(--line-2); background:var(--hover); }
    .fcc-events .evwizard-form .ev-type-card strong { color:var(--text); font:700 .75rem var(--sans); }
    .fcc-events .evwizard-form .ev-type-card small { color:var(--text-dim); font-size:.6875rem; line-height:1.4; }
    .fcc-events .evwizard-form .ev-type-card.is-on { border-color:var(--gold); background:var(--ag-gold-dim); box-shadow:0 0 12px var(--ag-gold-dim); }
    .fcc-events .evwizard-form .ev-type-card.is-on strong { color:var(--gold); }
    .fcc-events .evwizard-form .ev-type-card.is-on strong::before { content:"✓ "; color:var(--gold); }
    .fcc-events .evwizard-form .ev-type-card:has(input:disabled) { opacity:.6; cursor:not-allowed; }
    .fcc-events .evwizard-form .ev-types { grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
    .fcc-events .evwizard-form .ev-types .ev-type-card small { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
    .fcc-events .evwizard-form .ev-choice { gap:12px; margin-top:0; }
    .fcc-events .evwizard-form .ev-organizers { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
    .fcc-events .evwizard-form .ev-organizer-head { gap:12px; }
    .fcc-events .evwizard-form .ev-organizer-code { font:500 .6875rem var(--mono); color:var(--text-dim); }
    .fcc-events .evwizard-form .ev-organizer-code.is-code { letter-spacing:.04em; }
    @media (max-width:1100px) { .fcc-events .evwizard-form .ev-types { grid-template-columns:repeat(2,minmax(0,1fr)); } }
    @media (max-width:640px) {
        .fcc-events .evwizard-form :is(.ev-types, .ev-organizers, .ev-choice) { grid-template-columns:minmax(0,1fr); }
    }

    /* Poster (2:3, 5/12) and cover (7/12) side by side from 768 px, each with its «Change» and «Remove» and its help. */
    .fcc-events .evwizard-form .ev-media { display:grid; grid-template-columns:minmax(0,1fr); gap:20px; padding-top:16px; border-top:1px solid var(--line); }
    @media (min-width:768px) { .fcc-events .evwizard-form .ev-media { grid-template-columns:minmax(0,5fr) minmax(0,7fr); } }
    .fcc-events .evwizard-form .ev-media > div { gap:8px; }
    .fcc-events .evwizard-form .ev-media .agency-image-field { display:flex; flex-direction:column; align-items:stretch; gap:8px; }
    .fcc-events .evwizard-form .ev-media .agency-image-preview {
        width:100%; height:auto; padding:0; border:1px solid var(--line-2); border-radius:var(--radius-md);
        background:var(--ag-black); box-shadow:0 8px 20px color-mix(in srgb, var(--ag-black) 40%, transparent);
    }
    .fcc-events .evwizard-form .ev-media-image .agency-image-preview { aspect-ratio:2 / 3; max-width:240px; }
    .fcc-events .evwizard-form .ev-media-banner .agency-image-preview { aspect-ratio:4 / 1; }
    .fcc-events .evwizard-form .ev-media .agency-image-preview img { object-fit:cover; }
    .fcc-events .evwizard-form .ev-media .agency-image-preview span { color:var(--text-dim); }
    .fcc-events .evwizard-form .ev-media .agency-image-actions { display:flex; flex-direction:row; flex-wrap:wrap; align-items:center; gap:8px; }
    .fcc-events .evwizard-form .ev-media .agency-image-actions .btn {
        min-height:36px; padding:0 12px; border:1px solid var(--line-2); border-radius:var(--radius); background:var(--bg); color:var(--text); font:600 .75rem var(--sans);
    }
    .fcc-events .evwizard-form .ev-media .agency-image-actions .btn:hover { background:var(--hover); }
    .fcc-events .evwizard-form .ev-media .agency-image-actions .btn-danger-ghost { color:var(--ag-red-2); }
    .fcc-events .evwizard-form .ev-media .agency-image-actions small { flex-basis:100%; color:var(--text-dim); font-size:.6875rem; }

    /* Markdown: the label with its mono tag, a dark toolbar and the two panes from 768 px. */
    .fcc-events .evwizard-form .ev-md-head { display:flex; align-items:center; justify-content:space-between; gap:12px; padding-top:16px; border-top:1px solid var(--line); }
    .fcc-events .evwizard-form .ev-md-tag { color:var(--gold); font:500 .6875rem var(--mono); letter-spacing:.08em; text-transform:uppercase; }
    .fcc-events .evwizard-form .md-editor { border:1px solid var(--line-2); border-radius:var(--radius-md); overflow:hidden; background:var(--bg); }
    .fcc-events .evwizard-form .md-toolbar { border:0; border-bottom:1px solid var(--line); background:var(--panel-2); color:var(--text-dim); }
    .fcc-events .evwizard-form .md-tool { color:var(--text-dim); border-radius:var(--radius); }
    .fcc-events .evwizard-form .md-tool:hover { background:var(--panel); color:var(--text); }
    .fcc-events .evwizard-form .md-preview-toggle { color:var(--text-dim); font:500 .6875rem var(--mono); }
    .fcc-events .evwizard-form .md-input { min-height:210px; border:0; border-radius:0; background:transparent; font:400 .75rem/1.6 var(--mono); resize:none; }
    .fcc-events .evwizard-form .md-input:focus { box-shadow:none; }
    .fcc-events .evwizard-form .md-preview { border:0; border-left:1px solid var(--line); background:color-mix(in srgb, var(--bg) 60%, transparent); color:var(--text-2); max-height:260px; }
    .fcc-events .evwizard-form .md-help { padding:6px 12px; border-top:1px solid var(--line); color:var(--text-dim); }
    @media (max-width:767px) {
        .fcc-events .evwizard-form .md-editor.has-preview .md-panes { grid-template-columns:minmax(0,1fr); }
        .fcc-events .evwizard-form .md-preview { border-left:0; border-top:1px solid var(--line); }
    }
    @media (min-width:768px) { .fcc-events .evwizard-form .md-editor.has-preview .md-panes { grid-template-columns:repeat(2,minmax(0,1fr)); } }

    /* When and where: two columns for the dates, the locator with its gold button, the confirmed address and the point pill. */
    .fcc-events .evwizard-form .ev-grid-2 { gap:16px; }
    .fcc-events .evwizard-form .addr-locator { padding:0; border:0; background:transparent; box-shadow:none; }
    .fcc-events .evwizard-form .addr-locator::before { content:none; }
    .fcc-events .evwizard-form .addr-locator-head strong { color:var(--text); font:700 .75rem var(--sans); letter-spacing:0; text-transform:none; }
    .fcc-events .evwizard-form .addr-locator-head small { color:var(--text-dim); font-size:.75rem; }
    .fcc-events .evwizard-form .addr-locator-search { display:flex; flex-wrap:wrap; gap:8px; align-items:center; }
    .fcc-events .evwizard-form .addr-locator-search .form-control { flex:1 1 220px; }
    .fcc-events .evwizard-form .addr-locator-search .btn-primary { min-height:44px; border-radius:var(--radius-md); font-weight:700; }
    .fcc-events .evwizard-form .ev-geo {
        padding:12px; border:1px solid color-mix(in srgb, var(--ag-green) 30%, transparent); border-left-width:1px; border-radius:var(--radius-md);
        background:color-mix(in srgb, var(--ag-green) 10%, transparent); color:var(--ag-green-2);
    }
    .fcc-events .evwizard-form .ev-geo code { color:var(--ag-green-2); font:500 .75rem var(--mono); background:transparent; }
    .fcc-events .evwizard-form .ev-geo > .fcc-icon, .fcc-events .evwizard-form .ev-geo > svg { color:var(--gold); }
    .fcc-events .evwizard-form .ev-geo a { color:var(--gold); text-decoration:underline; font-size:.6875rem; }
    .fcc-events .evwizard-form .ev-geo .btn-link { color:var(--text-dim); font-weight:600; }
    .fcc-events .evwizard-form .ev-geo .btn-link:hover { color:var(--text); }

    /* Access: the cards above, the fields of price, places and deadline, and the «Summary» box with its gold title. */
    .fcc-events .evwizard-form .ev-grid-3 { gap:16px; }
    .fcc-events .evwizard-form .evwizard-summary-box { padding:20px; border:1px solid var(--line-2); border-radius:var(--radius-md); background:var(--bg); }
    .fcc-events .evwizard-form .evwizard-summary-box .uc-wizard-subtitle { margin:0 0 12px; color:var(--gold); font:700 .6875rem var(--sans); letter-spacing:.16em; }
    .fcc-events .evwizard-form .evwizard-summary { gap:8px 16px; font-size:.75rem; }
    .fcc-events .evwizard-form .evwizard-summary dt { color:var(--text-dim); font:500 .75rem var(--sans); letter-spacing:0; text-transform:none; }
    .fcc-events .evwizard-form .evwizard-summary dd { color:var(--text); font-weight:600; }
    @media (max-width:640px) { .fcc-events .evwizard-form .evwizard-summary { grid-template-columns:minmax(0,1fr); gap:2px; } .fcc-events .evwizard-form .evwizard-summary dd { margin-bottom:8px; } }
=======
    /* ---------- Sheet (PBI #1156): header with actions, organiser band, 2×2 facts and «About the event» ---------- */
    /* Header: the kicker with its gold dash, the title in Barlow, the actions to the right (they wrap under it on a phone). */
    .fcc-events .ev-detail-head { align-items:center; justify-content:space-between; flex-wrap:wrap; gap:16px; }
    .fcc-events .ev-detail-head .agency-breadcrumb {
        display:flex; align-items:center; gap:8px; margin:0 0 4px;
        color:var(--gold); font:700 .6875rem var(--sans); letter-spacing:.16em; text-transform:uppercase;
    }
    .fcc-events .ev-detail-head .agency-breadcrumb::before { content:""; width:12px; height:2px; background:var(--gold); }
    .fcc-events .ev-detail-head h1 { margin:0; color:var(--text); font:800 clamp(1.5rem, 4vw, 2.25rem)/1.05 var(--display); letter-spacing:.03em; text-transform:uppercase; overflow-wrap:anywhere; }
    .fcc-events .ev-detail-head .ux-head-actions { display:flex; flex-wrap:wrap; align-items:center; gap:8px; }
    .fcc-events .ev-detail-head .btn { display:inline-flex; align-items:center; gap:8px; min-height:40px; border-radius:var(--radius); font:600 .75rem var(--sans); }
    .fcc-events .ev-detail-head .btn-ghost { border:1px solid var(--line-2); background:var(--surface); color:var(--text-2); }
    .fcc-events .ev-detail-head .btn-ghost:hover { background:var(--hover); color:var(--text); }
    .fcc-events .ev-detail-head .btn-primary { border:1px solid var(--gold); background:var(--gold); color:var(--ag-gold-ink); }
    .fcc-events .ev-detail-head .btn-primary:hover { background:var(--gold-2); border-color:var(--gold-2); }
    .fcc-events .ev-menu-list { border:1px solid var(--line-2); border-radius:var(--radius-md); background:var(--panel-2); }
    .fcc-events .ev-detail-head .ev-back { white-space:nowrap; }
    .fcc-events .ev-menu-list :is(.ev-ics-item, .ev-copy-link-item, .ev-manage-item) { color:var(--text); }

    /* Grid: the organiser band, the facts card and «About» in the left column (8/12), the reservation on the right
       (4/12) from 1024 px; below, one column in that order. */
    .fcc-events .ev-detail { grid-template-columns:minmax(0,1fr); grid-template-areas:"org" "sheet" "about" "side"; grid-template-rows:none; gap:16px; }
    .fcc-events .ev-detail.has-pass { grid-template-areas:"org" "side" "sheet" "about"; }
    @media (min-width:1024px) {
        .fcc-events .ev-detail, .fcc-events .ev-detail.has-pass { grid-template-columns:minmax(0,2fr) minmax(0,1fr); grid-template-areas:"org side" "sheet side" "about side"; grid-template-rows:auto auto 1fr; }
    }

    /* Organiser band: a card with a faint gold gradient, the insignia, the name and the code in mono. */
    .fcc-events .ev-organizer-band {
        grid-area:org; display:flex; align-items:center; gap:14px; min-width:0; padding:14px 18px;
        border:1px solid var(--line-2); border-radius:var(--radius-lg);
        background:linear-gradient(135deg, var(--ag-gold-dim), transparent 70%), var(--surface);
    }
    .fcc-events .ev-organizer-band .ev-insignia { flex:none; width:48px; height:48px; border-radius:var(--radius-md); }
    .fcc-events .ev-organizer-band > div { display:grid; gap:2px; min-width:0; }
    .fcc-events .ev-organizer-band small { color:var(--text-dim); font:700 .6875rem var(--sans); letter-spacing:.12em; text-transform:uppercase; }
    .fcc-events .ev-organizer-band strong { color:var(--text); font:700 1rem/1.2 var(--sans); overflow-wrap:anywhere; }
    .fcc-events .ev-organizer-band .ev-organizer-code { color:var(--gold); font:500 .75rem var(--mono); }

    /* Facts card and «About the event»: surface, light border, 16 px radius; the facts in a 2×2 grid. */
    .fcc-events :is(.ev-sheet, .ev-about) { padding:20px 22px; border:1px solid var(--line-2); border-radius:var(--radius-lg); background:var(--surface); color:var(--text); }
    .fcc-events .ev-sheet { border-top:3px solid var(--gold); overflow:hidden; }
    .fcc-events .ev-facts-list > div { padding:12px 14px; border:1px solid var(--line); border-radius:var(--radius-md); background:var(--panel-2); }
    .fcc-events .ev-facts-list dt { color:var(--text-dim); font:700 .6875rem var(--sans); letter-spacing:.1em; text-transform:uppercase; }
    .fcc-events .ev-facts-list .ev-fact-main { color:var(--text); font:600 .875rem var(--sans); }
    .fcc-events .ev-facts-list .ev-map { color:var(--gold); }
    .fcc-events :is(.ev-sheet, .ev-about) :is(h3, .ev-about-title) { margin:8px 0 0; color:var(--gold); font:700 .75rem var(--sans); letter-spacing:.12em; text-transform:uppercase; }
    .fcc-events .ev-about .ev-about-title:first-child { margin-top:0; }
    @media (max-width:639px) {
        .fcc-events .ev-facts-list { grid-template-columns:minmax(0,1fr); }
        .fcc-events :is(.ev-sheet, .ev-about) { padding:16px; }
    }

    /* Reservation column (PBI #1157): a card with a gold top line. «Your reservation» with the steps upright, the
       state box, the pass on white, the two tools in a 2-column grid and «Cancel» in red; without a reservation the
       places, the price and «Reserve» in gold across the whole width. */
    .fcc-events .ev-side { grid-area:side; gap:14px; padding:20px; border:1px solid var(--line-2); border-top:3px solid var(--gold); border-radius:var(--radius-lg); background:var(--surface); color:var(--text); scroll-margin-top:80px; }
    .fcc-events .ev-side h2 { color:var(--gold); font:700 .75rem var(--sans); letter-spacing:.12em; }
    .fcc-events .ev-side p { color:var(--text-2); }
    .fcc-events .ev-side .btn { min-height:44px; border-radius:var(--radius); font:600 .8125rem var(--sans); }
    .fcc-events .ev-side .btn-ghost { border:1px solid var(--line-2); background:var(--panel-2); color:var(--text); }
    .fcc-events .ev-side .btn-ghost:hover { background:var(--hover); }
    .fcc-events .ev-side .btn-primary { border:1px solid var(--gold); background:var(--gold); color:var(--ag-gold-ink); }
    .fcc-events .ev-side .btn-primary:hover:not(:disabled) { background:var(--gold-2); border-color:var(--gold-2); }
    .fcc-events .ev-side .ev-reserve { width:100%; min-height:48px; font-size:.875rem; letter-spacing:.04em; }
    .fcc-events .ev-side .ev-cancel-link.btn { justify-self:stretch !important; border-color:var(--uc-red-2); color:var(--uc-red-2); background:transparent; }
    .fcc-events .ev-side .ev-cancel-link.btn:hover:not(:disabled) { background:color-mix(in srgb, var(--uc-red-2) 14%, transparent); }
    .fcc-events .ev-side .form-control { border:1px solid var(--line-2); border-radius:var(--radius); background:var(--surface-field); color:var(--text); }
    .fcc-events .ev-side :is(.field-label, .field-label small) { color:var(--text-dim); }
    .fcc-events .ev-reserve-how { border-left:3px solid var(--gold); border-radius:var(--radius); background:var(--ag-gold-dim); }
    .fcc-events .ev-reserve-pay { color:var(--text-dim); }
    .fcc-events .ev-steps li:not(:last-child)::before { background:var(--line-2); }
    .fcc-events .ev-steps li.is-done:not(:last-child)::before { background:var(--ag-green); }
    .fcc-events .ev-step-dot { border-color:var(--line-2); background:var(--panel-2); color:var(--panel-2); }
    .fcc-events .ev-steps .is-done .ev-step-dot { border-color:var(--ag-green); background:var(--ag-green); color:var(--bg); }
    .fcc-events .ev-steps .is-stop .ev-step-dot { color:var(--ag-white); }
    .fcc-events .ev-step-text strong { color:var(--text); }
    .fcc-events .ev-steps .is-next .ev-step-text strong { color:var(--text-dim); }
    .fcc-events .ev-steps .is-now .ev-step-text strong { color:var(--gold); }
    .fcc-events .ev-step-text small { color:var(--text-dim); }
    .fcc-events .ev-mine-box { border:1px solid var(--line-2); border-left:4px solid currentColor; border-radius:var(--radius-md); background:var(--panel-2); }
    .fcc-events .ev-mine-box > span:not([class]) { color:var(--text); }
    .fcc-events .ev-mine-box blockquote { border-left-color:var(--line-2); color:var(--text-2); }
    .fcc-events .ev-pass { padding:14px; border:1px solid var(--line-2); border-top:3px solid var(--ag-green); border-radius:var(--radius-md); background:var(--panel-2); }
    .fcc-events .ev-pass header { color:var(--ag-green-2); font:700 .75rem var(--sans); letter-spacing:.08em; text-transform:uppercase; }
    .fcc-events .ev-pass p { color:var(--text) !important; }
    .fcc-events .ev-pass small { color:var(--text-dim); }
    /* The QR: dark modules on pure white, with its quiet zone, so any scanner reads it. */
    .fcc-events .ev-pass-qr { max-width:232px; padding:10px; border-radius:var(--radius-md); background:var(--ag-white); }
    .fcc-events .ev-pass-qr:focus-visible { outline:2px solid var(--gold); outline-offset:3px; }
    .fcc-events .ev-pass-in { border-radius:var(--radius-md); }
    .fcc-events .ev-pass-tools { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
    .fcc-events .ev-pass-mail { border-radius:var(--radius); }

    /* Commanders' strip: the counters (requested, waiting, confirmed) and the two tasks, «Scan passes» with gold border. */
    .fcc-events .ev-cmd-bar { gap:14px 20px; padding:14px 18px; border:1px solid var(--line-2); border-left:4px solid var(--gold); border-radius:var(--radius-lg); background:linear-gradient(90deg, var(--ag-gold-dim), var(--surface) 45%); }
    .fcc-events .ev-cmd-name h2 { color:var(--gold); font:700 .75rem var(--sans); letter-spacing:.12em; }
    .fcc-events .ev-cmd-name small, .fcc-events .ev-cmd-note { color:var(--text-dim); }
    .fcc-events .ev-cmd-stats a { border:1px solid var(--line-2); border-radius:var(--radius-md); background:var(--panel-2); color:var(--text); }
    .fcc-events .ev-cmd-stats a:hover { border-color:var(--gold); }
    .fcc-events .ev-cmd-stats b { font-family:var(--mono); }
    .fcc-events .ev-cmd-stats small { color:var(--text-dim); }
    .fcc-events .ev-cmd-actions .btn { min-height:40px; border-radius:var(--radius); font:600 .75rem var(--sans); }
    .fcc-events .ev-cmd-actions .btn-ghost { border:1px solid var(--line-2); background:var(--surface); color:var(--text); }
    .fcc-events .ev-cmd-actions .ev-scan-btn { border-color:var(--gold); color:var(--gold); }
    .fcc-events .ev-cmd-actions .ev-scan-btn.btn-primary { background:var(--gold); color:var(--ag-gold-ink); }
    @media (max-width:639px) {
        .fcc-events .ev-side { padding:16px; }
        .fcc-events .ev-cmd-actions .btn { flex:1 1 100%; justify-content:center; }
    }

    /* Toast (PBI #1158): raised surface, gold border and dot. */
    .fcc-events .fcc-toast { background:var(--surface-raised); border-color:var(--gold); border-radius:var(--radius); color:var(--text); }
    .fcc-events .fcc-toast-dot { background:var(--gold); }
    .fcc-events .fcc-toast-close { color:var(--text-dim); }
}
