/*
 * OnlyTap system sheet: the fonts, the tokens, the form controls and footer B, shared by the panels and the public
 * pages (legal texts, /reportar). It is static and loaded before the panel theme, so the theme can still dress a piece
 * for its place, and the public pages take it under a policy with no inline styles. Nothing here is scoped to Filament.
 */

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400 600;
    font-display: swap;
    src: url('/fonts/inter-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Bricolage Grotesque';
    font-style: normal;
    font-weight: 600 800;
    font-display: swap;
    src: url('/fonts/bricolage-grotesque-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Tokens */

:root {
    --ot-font-display: 'Bricolage Grotesque', 'Inter', system-ui, sans-serif;

    --ot-radius-tag: 8px;
    --ot-radius-field: 12px;
    --ot-radius-menu: 14px;
    --ot-radius-card: 20px;

    --ot-cyan-start: #5BA3D9;

    --ot-canvas: #F4F7FA;
    --ot-surface: #FFFFFF;
    --ot-ink: #0B1929;
    --ot-ink-soft: #4A5C6E;
    --ot-ink-muted: #5F7183;
    --ot-line: #DCE3EA;
    --ot-line-soft: #EDF1F5;
    --ot-line-strong: #C3CDD7;
    --ot-hover: #F4F7FA;

    --ot-action: #0B1929;
    --ot-action-hover: #122740;
    --ot-action-ink: #FFFFFF;
    --ot-outline: #0B1929;
    --ot-outline-hover: #DCE3EA;

    --ot-field-bg: #FFFFFF;
    /* The panel's fields: filled, without a line until they take the focus. */
    --ot-field-fill: #F4F7FA;
    --ot-field-disabled: #F4F7FA;
    --ot-control: #2B68A6;
    --ot-control-off: #8899AA;

    /* Status colours: the vivid tone for icons, a deep ink of the hue for all the text on its tint, and the line only for the hover of a note's close button. */
    --ot-info: #0A63D8;
    --ot-info-ink: #0B378D;
    --ot-info-bg: #D0E3FF;
    --ot-info-line: #74ACFF;
    --ot-success: #007A4D;
    --ot-success-ink: #004D2D;
    --ot-success-bg: #B2F3CC;
    --ot-success-line: #40C786;
    --ot-warning: #BF4F00;
    --ot-warning-ink: #6E2500;
    --ot-warning-bg: #FFD9BB;
    --ot-warning-line: #EE9138;
    --ot-danger: #E00045;
    --ot-danger-ink: #7B0025;
    --ot-danger-bg: #FFD5D7;
    --ot-danger-line: #FA7F8C;
    /* Red text straight on a surface, with no tint behind it: field errors, the required mark and Delete in a dropdown. */
    --ot-danger-text: #B9003D;
    /* The red button is white on the approved red in both modes. */
    --ot-danger-btn: #E00045;
    --ot-danger-btn-on: #FFFFFF;
    --ot-danger-btn-hover: #C4003B;

    /* Plan tags, usage bar, icon tile, chosen option card and fields (F1). */
    --ot-premium: #00E5FF;
    --ot-premium-on: #0B1929;
    --ot-invite-bg: #0B1929;
    --ot-invite-ink: #FFFFFF;
    --ot-invite-icon: #00E5FF;
    --ot-invite-line: #0B1929;
    --ot-free-line: #7D8EA0;
    --ot-free-ink: #33475B;
    --ot-meter-track: #0B1929;
    --ot-meter-fill: #00E5FF;
    --ot-tile-bg: #0B1929;
    --ot-tile-ink: #00E5FF;
    --ot-tile-on-bg: #00E5FF;
    --ot-tile-on-ink: #0B1929;
    --ot-tile-ok-bg: #B2F3CC;
    --ot-tile-ok-ink: #007A4D;
    --ot-pick-bg: #0B1929;
    --ot-pick-ink: #FFFFFF;
    --ot-pick-soft: #B4C1CD;
    --ot-field-line: #7D8EA0;
    --ot-flag-bg: #0B1929;
    --ot-flag-ink: #FFFFFF;
    /* On the navy panels (Help, upgrade block) the bar keeps the panel's track in both modes. */
    --ot-meter-track-navy: rgba(136, 153, 170, 0.22);
    --ot-meter-fill-navy: #00E5FF;
    --ot-check-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5l10 -10'/%3E%3C/svg%3E");

    --ot-chip-bg: #E8F4FD;
    --ot-chip-bg-hover: #CFE5F7;
    --ot-chip-ink: #2B68A6;
    --ot-chip-host: rgba(43, 104, 166, 0.95);
    --ot-tag-bg: #EDF1F5;
    --ot-tag-ink: #4A5C6E;
    --ot-field-halo: #E8F4FD;
    --ot-text-link: #2B68A6;
    --ot-track: #EDF1F5;
    --ot-heat: #E3F2F6;
    --ot-hero: #0B1929;
    --ot-video: #0B1929;
    --ot-hero-tag-bg: #004729;
    --ot-hero-tag-ink: #D6F4E1;
    --ot-hero-tag-icon: #58DA98;
    --ot-zone-scan: #008AA0;
    --ot-zone-scan-ink: #005265;
    --ot-zone-scan-bg: #9BF2FC;
    --ot-zone-link: #0076CC;
    --ot-zone-link-ink: #004188;
    --ot-zone-link-bg: #B2E8FF;
    --ot-zone-qr: #8254C4;
    --ot-zone-qr-ink: #4E2281;
    --ot-zone-qr-bg: #EAD5FF;
    --ot-zone-chip: #877000;
    --ot-zone-chip-ink: #4E3E00;
    --ot-zone-chip-bg: #F3E1A0;
    --ot-zone-page: #B23E88;
    --ot-zone-page-ink: #710851;
    --ot-zone-page-bg: #FFCBEE;
    --ot-type-url: #0086B0;
    --ot-type-url-ink: #004E71;
    --ot-type-url-bg: #9EF0FF;
    --ot-type-landing: #B23E88;
    --ot-type-landing-ink: #710851;
    --ot-type-landing-bg: #FFCBEE;
    --ot-type-vcard: #7658CB;
    --ot-type-vcard-ink: #452786;
    --ot-type-vcard-bg: #E2D8FF;
    --ot-type-file: #BF4213;
    --ot-type-file-ink: #7B0A00;
    --ot-type-file-bg: #FFCEB9;
    --ot-type-whatsapp: #23881A;
    --ot-type-whatsapp-ink: #005100;
    --ot-type-whatsapp-bg: #C2F0BC;
    --ot-type-phone: #008F6E;
    --ot-type-phone-ink: #00563D;
    --ot-type-phone-bg: #A3F4DF;
    --ot-type-email: #007AC7;
    --ot-type-email-ink: #004484;
    --ot-type-email-bg: #ACEAFF;
    --ot-type-directions: #9B632D;
    --ot-type-directions-ink: #5F3300;
    --ot-type-directions-bg: #FDDABD;
    --ot-type-review: #8A6E00;
    --ot-type-review-ink: #503D00;
    --ot-type-review-bg: #F5E0A0;
    --ot-type-tripadvisor: #687C02;
    --ot-type-tripadvisor-ink: #394600;
    --ot-type-tripadvisor-bg: #DAEAAA;
    --ot-segment-qr: #8254C4;
    --ot-segment-chip: #877000;
    --ot-segment-link: #0076CC;
    --ot-segment-on: #FFFFFF;
    --ot-segment-1: #005265;
    --ot-segment-2: #007A8E;
    --ot-segment-3: #57C7D6;
    --ot-segment-1-on: #FFFFFF;
    --ot-segment-2-on: #FFFFFF;
    --ot-segment-3-on: #0B1929;
    --ot-float: 0 0 0 1px var(--ot-line), 0 16px 32px -16px rgba(11, 25, 41, 0.28);

    /* The rail is night in both modes: the navy field of the brand. */
    --ot-rail: #0B1929;
    --ot-rail-line: rgba(136, 153, 170, 0.14);
    --ot-rail-ink: rgba(255, 255, 255, 0.76);
    --ot-rail-muted: #8899AA;
    --ot-rail-hover: rgba(255, 255, 255, 0.06);
    --ot-rail-active: rgba(91, 163, 217, 0.16);
    --ot-rail-signal: #00E5FF;
    --ot-rail-zone-link: #78C6FF;
    --ot-rail-zone-qr: #CAACFF;
    --ot-rail-zone-chip: #D6BD5C;
    --ot-rail-zone-page: #F59ECF;
}

.dark {
    --ot-canvas: #0B1929;
    --ot-surface: #122740;
    --ot-ink: #FFFFFF;
    --ot-ink-soft: #B4C1CD;
    --ot-ink-muted: #8899AA;
    --ot-line: rgba(136, 153, 170, 0.2);
    --ot-line-soft: rgba(136, 153, 170, 0.1);
    --ot-line-strong: rgba(136, 153, 170, 0.4);
    --ot-hover: rgba(255, 255, 255, 0.04);

    --ot-action: #FFFFFF;
    --ot-action-hover: #E8F4FD;
    --ot-action-ink: #0B1929;
    --ot-outline: rgba(255, 255, 255, 0.4);
    --ot-outline-hover: rgba(255, 255, 255, 0.08);

    --ot-field-bg: rgba(255, 255, 255, 0.04);
    --ot-field-fill: rgba(255, 255, 255, 0.04);
    --ot-field-disabled: transparent;
    --ot-control: #00E5FF;
    --ot-control-off: rgba(136, 153, 170, 0.4);

    /* Status colours at night: a solid dark tint and a light ink of the hue. */
    --ot-info: #95C0FF;
    --ot-info-ink: #E0ECFF;
    --ot-info-bg: #17396B;
    --ot-info-line: #3568B2;
    --ot-success: #58DA98;
    --ot-success-ink: #D6F4E1;
    --ot-success-bg: #004729;
    --ot-success-line: #007D4D;
    --ot-warning: #FFA475;
    --ot-warning-ink: #FFE6D3;
    --ot-warning-bg: #592E00;
    --ot-warning-line: #9A5500;
    --ot-danger: #FF9EA6;
    --ot-danger-ink: #FFE3E5;
    --ot-danger-bg: #62212A;
    --ot-danger-line: #A64450;
    --ot-danger-text: #FFCCCE;

    /* Plan tags, usage bar, icon tile, chosen option card and fields (F1). */
    --ot-invite-bg: transparent;
    --ot-invite-line: #00E5FF;
    --ot-free-line: #6F8296;
    --ot-free-ink: #C3CDD7;
    --ot-meter-track: rgba(136, 153, 170, 0.22);
    --ot-tile-bg: rgba(0, 229, 255, 0.12);
    --ot-tile-ok-bg: #004729;
    --ot-tile-ok-ink: #58DA98;
    --ot-pick-bg: rgba(0, 229, 255, 0.1);
    --ot-field-line: #6F8296;
    --ot-flag-bg: #00E5FF;
    --ot-flag-ink: #0B1929;

    --ot-chip-bg: rgba(91, 163, 217, 0.12);
    --ot-chip-bg-hover: rgba(91, 163, 217, 0.2);
    --ot-chip-ink: #00E5FF;
    --ot-chip-host: rgba(0, 229, 255, 0.75);
    --ot-tag-bg: rgba(136, 153, 170, 0.14);
    --ot-tag-ink: #C3CDD7;
    --ot-field-halo: rgba(91, 163, 217, 0.22);
    --ot-text-link: #78C6FF;
    --ot-track: rgba(136, 153, 170, 0.22);
    --ot-heat: #17324F;
    --ot-hero: #004752;
    --ot-video: #122740;
    --ot-hero-tag-bg: #B2F3CC;
    --ot-hero-tag-ink: #004D2D;
    --ot-hero-tag-icon: #007A4D;
    --ot-zone-scan: #44D4E2;
    --ot-zone-scan-ink: #CDF4F8;
    --ot-zone-scan-bg: #004752;
    --ot-zone-link: var(--ot-rail-zone-link);
    --ot-zone-link-ink: #D6EFFF;
    --ot-zone-link-bg: #003D68;
    --ot-zone-qr: var(--ot-rail-zone-qr);
    --ot-zone-qr-ink: #EFE6FF;
    --ot-zone-qr-bg: #432D64;
    --ot-zone-chip: var(--ot-rail-zone-chip);
    --ot-zone-chip-ink: #F3ECCE;
    --ot-zone-chip-bg: #463A03;
    --ot-zone-page: var(--ot-rail-zone-page);
    --ot-zone-page-ink: #FFE1F1;
    --ot-zone-page-bg: #5B2246;
    --ot-type-url: #4DD1EF;
    --ot-type-url-ink: #CEF3FC;
    --ot-type-url-bg: #00455A;
    --ot-type-landing: #F59ECF;
    --ot-type-landing-ink: #FFE1F1;
    --ot-type-landing-bg: #5B2246;
    --ot-type-vcard: #BFAFFF;
    --ot-type-vcard-ink: #EBE7FF;
    --ot-type-vcard-bg: #3D2F67;
    --ot-type-file: #FFA285;
    --ot-type-file-ink: #FFE3D8;
    --ot-type-file-bg: #622410;
    --ot-type-whatsapp: #90D189;
    --ot-type-whatsapp-ink: #DDF3DA;
    --ot-type-whatsapp-bg: #174613;
    --ot-type-phone: #58D7BB;
    --ot-type-phone-ink: #D0F5EA;
    --ot-type-phone-bg: #004939;
    --ot-type-email: #6CC9FF;
    --ot-type-email-ink: #D3F0FF;
    --ot-type-email-bg: #004066;
    --ot-type-directions: #E8B181;
    --ot-type-directions-ink: #FFE6D1;
    --ot-type-directions-bg: #513317;
    --ot-type-review: #D9BB5C;
    --ot-type-review-ink: #F5EBCE;
    --ot-type-review-bg: #483902;
    --ot-type-tripadvisor: #B4C96D;
    --ot-type-tripadvisor-ink: #E7F0D2;
    --ot-type-tripadvisor-bg: #364010;
    --ot-segment-qr: #A17ADF;
    --ot-segment-chip: #A89133;
    --ot-segment-link: #4299DC;
    --ot-segment-on: #0B1929;
    --ot-segment-1: #44D4E2;
    --ot-segment-2: #1F97A8;
    --ot-segment-3: #0E5A66;
    --ot-segment-1-on: #0B1929;
    --ot-segment-2-on: #0B1929;
    --ot-segment-3-on: #FFFFFF;
    --ot-float: 0 0 0 1px var(--ot-line), 0 16px 32px -12px rgba(0, 0, 0, 0.55);
}

/* What the browser draws is on brand too: cyan on navy day and night, and a caret in the colour of the controls. */
::selection {
    background-color: var(--ot-rail-signal);
    color: var(--ot-rail);
}

html {
    caret-color: var(--ot-control);
}

/* A tool keeps its hue wherever it shows: the class sets it, and a tile inside takes it. */
.ot-zone-scan {
    --ot-zone: var(--ot-zone-scan);
    --ot-zone-ink: var(--ot-zone-scan-ink);
    --ot-zone-bg: var(--ot-zone-scan-bg);
    --ot-tile-bg: var(--ot-zone-scan-bg);
    --ot-tile-ink: var(--ot-zone-scan);
}

.ot-zone-link {
    --ot-zone: var(--ot-zone-link);
    --ot-zone-ink: var(--ot-zone-link-ink);
    --ot-zone-bg: var(--ot-zone-link-bg);
    --ot-tile-bg: var(--ot-zone-link-bg);
    --ot-tile-ink: var(--ot-zone-link);
}

.ot-zone-qr {
    --ot-zone: var(--ot-zone-qr);
    --ot-zone-ink: var(--ot-zone-qr-ink);
    --ot-zone-bg: var(--ot-zone-qr-bg);
    --ot-tile-bg: var(--ot-zone-qr-bg);
    --ot-tile-ink: var(--ot-zone-qr);
}

.ot-zone-chip {
    --ot-zone: var(--ot-zone-chip);
    --ot-zone-ink: var(--ot-zone-chip-ink);
    --ot-zone-bg: var(--ot-zone-chip-bg);
    --ot-tile-bg: var(--ot-zone-chip-bg);
    --ot-tile-ink: var(--ot-zone-chip);
}

.ot-zone-page {
    --ot-zone: var(--ot-zone-page);
    --ot-zone-ink: var(--ot-zone-page-ink);
    --ot-zone-bg: var(--ot-zone-page-bg);
    --ot-tile-bg: var(--ot-zone-page-bg);
    --ot-tile-ink: var(--ot-zone-page);
}

.ot-type-url {
    --ot-type-tint: var(--ot-type-url-bg);
    --ot-type-text: var(--ot-type-url-ink);
    --ot-type-icon: var(--ot-type-url);
}

.ot-type-landing {
    --ot-type-tint: var(--ot-type-landing-bg);
    --ot-type-text: var(--ot-type-landing-ink);
    --ot-type-icon: var(--ot-type-landing);
}

.ot-type-vcard {
    --ot-type-tint: var(--ot-type-vcard-bg);
    --ot-type-text: var(--ot-type-vcard-ink);
    --ot-type-icon: var(--ot-type-vcard);
}

.ot-type-file {
    --ot-type-tint: var(--ot-type-file-bg);
    --ot-type-text: var(--ot-type-file-ink);
    --ot-type-icon: var(--ot-type-file);
}

.ot-type-whatsapp {
    --ot-type-tint: var(--ot-type-whatsapp-bg);
    --ot-type-text: var(--ot-type-whatsapp-ink);
    --ot-type-icon: var(--ot-type-whatsapp);
}

.ot-type-phone {
    --ot-type-tint: var(--ot-type-phone-bg);
    --ot-type-text: var(--ot-type-phone-ink);
    --ot-type-icon: var(--ot-type-phone);
}

.ot-type-email {
    --ot-type-tint: var(--ot-type-email-bg);
    --ot-type-text: var(--ot-type-email-ink);
    --ot-type-icon: var(--ot-type-email);
}

.ot-type-directions {
    --ot-type-tint: var(--ot-type-directions-bg);
    --ot-type-text: var(--ot-type-directions-ink);
    --ot-type-icon: var(--ot-type-directions);
}

.ot-type-review {
    --ot-type-tint: var(--ot-type-review-bg);
    --ot-type-text: var(--ot-type-review-ink);
    --ot-type-icon: var(--ot-type-review);
}

.ot-type-tripadvisor {
    --ot-type-tint: var(--ot-type-tripadvisor-bg);
    --ot-type-text: var(--ot-type-tripadvisor-ink);
    --ot-type-icon: var(--ot-type-tripadvisor);
}

/* Icon tile: navy with the cyan icon (the brand pair), a cyan tint at night; .is-on turns cyan */
.ot-tile {
    display: grid;
    flex: none;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--ot-tile-bg);
    color: var(--ot-tile-ink);
    transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.ot-tile svg {
    width: 20px;
    height: 20px;
    stroke-width: 1.75;
}

.ot-tile.is-sm {
    width: 32px;
    height: 32px;
    border-radius: 10px;
}

.ot-tile.is-sm svg {
    width: 18px;
    height: 18px;
}

.ot-tile.is-lg {
    width: 48px;
    height: 48px;
    border-radius: 14px;
}

.ot-tile.is-lg svg {
    width: 24px;
    height: 24px;
}

.ot-tile.is-xl {
    width: 56px;
    height: 56px;
}

.ot-tile.is-xl svg {
    width: 28px;
    height: 28px;
}

.ot-tile.is-on {
    background: var(--ot-tile-on-bg);
    color: var(--ot-tile-on-ink);
}

.ot-tile.is-success {
    background: var(--ot-tile-ok-bg);
    color: var(--ot-tile-ok-ink);
}

.ot-tile.is-quiet {
    background: transparent;
    box-shadow: inset 0 0 0 1px var(--ot-line);
    color: var(--ot-ink);
}

.ot-on-navy .ot-tile {
    background: rgba(0, 229, 255, 0.12);
    color: #00E5FF;
}

/* The same facts in a row, for short lists such as Contact's «Nos llega también» */
.ot-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 0;
    margin: 0;
}

.ot-strip > div {
    display: grid;
    gap: 4px;
    padding: 0 20px;
    box-shadow: inset 1px 0 0 var(--ot-line);
}

.ot-strip > div:first-child {
    padding-left: 0;
    box-shadow: none;
}

.ot-strip dt {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--ot-ink-muted);
}

.ot-strip dd {
    display: flex;
    align-items: center;
    min-height: 24px;
    margin: 0;
    font-size: 15px;
    font-weight: 500;
    color: var(--ot-ink);
}

/* Option card: a small card with the icon on top; the chosen one turns navy (cyan tint at night), its tile cyan and its check fills */
.ot-options {
    display: grid;
    /* A page that wants a fixed count of columns sets the variable instead of restyling the piece. */
    grid-template-columns: var(--ot-options-columns, repeat(auto-fill, minmax(min(100%, 150px), 1fr)));
    gap: 10px;
    margin: 0;
    padding: 0;
    border: 0;
}

.ot-option {
    position: relative;
    display: grid;
    align-content: start;
    gap: 12px;
    padding: 14px;
    border-radius: var(--ot-radius-field);
    background: var(--ot-field-bg);
    box-shadow: inset 0 0 0 1px var(--ot-line);
    color: var(--ot-ink);
    cursor: pointer;
    transition: box-shadow 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.ot-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.ot-option:hover {
    box-shadow: inset 0 0 0 1px var(--ot-field-line);
}

.ot-option b {
    display: block;
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
}

.ot-option-text > span {
    display: block;
    margin-top: 2px;
    font-size: 13px;
    line-height: 18px;
    color: var(--ot-ink-soft);
}

.ot-option-check {
    position: absolute;
    top: 14px;
    right: 14px;
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    box-shadow: inset 0 0 0 1.5px var(--ot-field-line);
    color: transparent;
}

.ot-option-check svg {
    width: 13px;
    height: 13px;
    stroke-width: 3;
}

.ot-option:has(input:checked) {
    background: var(--ot-pick-bg);
    color: var(--ot-pick-ink);
    box-shadow: inset 0 0 0 1px var(--ot-pick-bg);
}

.dark .ot-option:has(input:checked) {
    box-shadow: inset 0 0 0 1.5px #00E5FF;
}

.ot-option:has(input:checked) .ot-option-text > span {
    color: var(--ot-pick-soft);
}

.ot-option:has(input:checked) .ot-tile {
    background: var(--ot-tile-on-bg);
    color: var(--ot-tile-on-ink);
    box-shadow: none;
}

.ot-option:has(input:checked) .ot-option-check {
    background: #00E5FF;
    box-shadow: none;
    color: #0B1929;
}

.ot-option:has(input:focus-visible) {
    box-shadow: inset 0 0 0 1.5px var(--ot-control), 0 0 0 4px var(--ot-field-halo);
}

/* An error lasts only while the field is wrong: picking a card, ticking the box or typing a valid value clears it at
   once, before any submit, and a ticked box never keeps the red ring. */
.ot-options.is-invalid:not(:has(input:checked)) .ot-option {
    box-shadow: inset 0 0 0 1.5px var(--ot-danger);
}

/* A card with a drawing above its title (art), as the shapes of a QR code. */
.ot-option.has-art {
    gap: 10px;
    padding: 12px;
}

.ot-art {
    display: grid;
    place-items: center;
    height: 56px;
}

.ot-art svg {
    width: 44px;
    height: 44px;
}

.ot-art:has(.ot-qr-preview-sheet) {
    height: auto;
}

/* One card that cannot be chosen (is-off), or a locked group: every card stays, the chosen one still marked. */
.ot-options.is-locked .ot-option,
.ot-option.is-off {
    cursor: not-allowed;
}

.ot-options.is-locked .ot-option:not(:has(input:checked)),
.ot-option.is-off {
    opacity: 0.55;
}

.ot-options.is-locked .ot-option:hover,
.ot-option.is-off:hover {
    box-shadow: inset 0 0 0 1px var(--ot-line);
}

.ot-options.is-locked .ot-option:has(input:checked):hover {
    box-shadow: inset 0 0 0 1px var(--ot-pick-bg);
}

/* Consent box (approved): a thin rectangle, the box inside, aligned with the first line */
.ot-consent {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    column-gap: 12px;
    align-items: start;
    padding: 14px 16px;
    border-radius: var(--ot-radius-field);
    background: var(--ot-field-bg);
    box-shadow: inset 0 0 0 1px var(--ot-line);
    font-size: 14px;
    line-height: 20px;
    color: var(--ot-ink);
    cursor: pointer;
    transition: box-shadow 0.15s ease, background-color 0.15s ease;
}

.ot-consent input {
    appearance: none;
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    margin: 0;
    border-radius: 6px;
    background: var(--ot-field-bg);
    box-shadow: inset 0 0 0 1.5px var(--ot-field-line);
    cursor: pointer;
    transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

.ot-consent input::after {
    content: '';
    width: 12px;
    height: 12px;
    background: #FFFFFF;
    mask: var(--ot-check-mask) center/contain no-repeat;
    -webkit-mask: var(--ot-check-mask) center/contain no-repeat;
    opacity: 0;
}

.dark .ot-consent input::after {
    background: #0B1929;
}

.ot-consent input:checked {
    background: var(--ot-control);
    box-shadow: none;
}

.ot-consent input:checked::after {
    opacity: 1;
}

.ot-consent:has(input:checked) {
    box-shadow: inset 0 0 0 1px var(--ot-control);
}

.ot-consent:has(input:focus-visible),
.ot-consent.is-focus {
    box-shadow: inset 0 0 0 1.5px var(--ot-control), 0 0 0 4px var(--ot-field-halo);
}

.ot-consent.is-invalid:not(:has(input:checked)) {
    box-shadow: inset 0 0 0 1.5px var(--ot-danger);
}

.ot-consent.is-invalid input:not(:checked) {
    box-shadow: inset 0 0 0 1.5px var(--ot-danger);
}

.ot-consent a {
    color: var(--ot-chip-ink);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Field errors (approved): line, message under the field with its mark, and the summary on top */
.ot-field {
    display: grid;
    gap: 8px;
}

fieldset.ot-field {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

/* Only the field's own label: the option cards inside a fieldset and the consent box are labels too. */
.ot-field > label:not(.ot-consent),
.ot-field > legend {
    padding: 0;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    color: var(--ot-ink);
}

/* A legend sits outside the fieldset's grid, so the gap does not reach it. */
.ot-field > legend {
    margin-bottom: 8px;
}

.ot-field > :is(label, legend) em {
    font-style: normal;
    color: var(--ot-danger-text);
}

.ot-input {
    height: 44px;
    padding: 0 14px;
    border: 1.5px solid transparent;
    border-radius: var(--ot-radius-field);
    background-color: var(--ot-field-rest, var(--ot-field-fill));
    box-shadow: none;
    font: inherit;
    font-size: 15px;
    color: var(--ot-ink);
}

.ot-input.is-invalid:not(:user-valid) {
    border-color: var(--ot-danger);
}

.ot-error {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin: 0;
    font-size: 13px;
    line-height: 18px;
    font-weight: 500;
    color: var(--ot-danger-text);
}

.ot-error svg {
    flex: none;
    width: 16px;
    height: 16px;
    margin-top: 1px;
}

/* Sent: the same message as today, with the brand's mark: a cyan disc inside two rings */
.ot-sent {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    column-gap: 20px;
    align-items: center;
    padding: 24px;
    border-radius: var(--ot-radius-card);
    box-shadow: inset 0 0 0 1px var(--ot-line);
}

/* Alone in a card that already draws its edge */
.ot-sent.is-bare {
    box-shadow: none;
}

.ot-sent-mark {
    position: relative;
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
}

.ot-sent-mark::before,
.ot-sent-mark::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    box-shadow: inset 0 0 0 1.5px #00E5FF;
    opacity: 0.35;
}

.ot-sent-mark::after {
    inset: 9px;
    opacity: 0.6;
}

.ot-sent-mark span {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #00E5FF;
    color: #0B1929;
}

.ot-sent-mark svg {
    width: 22px;
    height: 22px;
    stroke-width: 2.5;
}

.ot-sent :is(h2, h4) {
    margin: 0 0 4px;
    font: 600 20px/26px var(--ot-font-display);
    letter-spacing: -.01em;
    color: var(--ot-ink);
}

.ot-sent p {
    margin: 0 0 14px;
    font-size: 14px;
    line-height: 21px;
    color: var(--ot-ink-soft);
}

.ot-sent p b {
    font-weight: 600;
    color: var(--ot-ink);
}

/* Alert: one tone per alert. The whole text in the hue's deep ink on its tint, the icon in the vivid tone, and no border. */
.ot-note {
    --n: var(--ot-info);
    --n-ink: var(--ot-info-ink);
    --n-bg: var(--ot-info-bg);
    --n-line: var(--ot-info-line);
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr) auto;
    align-items: start;
    column-gap: 12px;
    padding: 14px 16px;
    border-radius: var(--ot-radius-field);
    background: var(--n-bg);
    color: var(--n-ink);
    font-size: 14px;
    line-height: 20px;
}

/* The error summary takes the focus to be read out, without a ring. */
.ot-note[tabindex="-1"]:focus {
    outline: none;
}

.ot-note.is-success {
    --n: var(--ot-success);
    --n-ink: var(--ot-success-ink);
    --n-bg: var(--ot-success-bg);
    --n-line: var(--ot-success-line);
}

.ot-note.is-warning {
    --n: var(--ot-warning);
    --n-ink: var(--ot-warning-ink);
    --n-bg: var(--ot-warning-bg);
    --n-line: var(--ot-warning-line);
}

.ot-note.is-danger {
    --n: var(--ot-danger);
    --n-ink: var(--ot-danger-ink);
    --n-bg: var(--ot-danger-bg);
    --n-line: var(--ot-danger-line);
}

/* Plain: tells something with no tone, such as what a field opens. */
.ot-note.is-plain {
    --n: var(--ot-ink-soft);
    --n-ink: var(--ot-ink);
    --n-bg: var(--ot-canvas);
    --n-line: var(--ot-line);
}

.dark .ot-note.is-plain {
    --n-bg: var(--ot-field-bg);
}

.ot-note-icon {
    width: 20px;
    height: 20px;
    color: var(--n);
    stroke-width: 1.75;
}

.ot-note-body {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.ot-note-body b {
    font-weight: 600;
}

.ot-note-body ul {
    margin: 4px 0 0;
    padding-left: 0;
    list-style: none;
    display: grid;
    gap: 2px;
}

.ot-note a:not(.fi-btn),
.ot-note-link {
    font-weight: 600;
    color: var(--n-ink);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    white-space: nowrap;
}

.ot-note-link {
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.ot-note .ot-note-body ul a:not(.fi-btn) {
    font-weight: 500;
    white-space: normal;
}

.ot-note a:not(.fi-btn):is(:hover, :focus-visible),
.ot-note-link:is(:hover, :focus-visible) {
    text-decoration-thickness: 2px;
}

.ot-note-end {
    display: flex;
    align-items: center;
    gap: 8px;
    align-self: center;
    margin-left: 12px;
}

.ot-note-close {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    margin: -4px -6px -4px 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--n-ink);
    cursor: pointer;
}

.ot-note-close:is(:hover, :focus-visible) {
    background: var(--n-line);
}

.ot-note-close svg {
    width: 16px;
    height: 16px;
}

/* Text controls take the field's full width; the textarea grows downwards and the select draws its own arrow. */
.ot-input {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    outline: 0;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.ot-input::placeholder {
    color: var(--ot-ink-muted);
    opacity: 1;
}

textarea.ot-input {
    display: block;
    height: auto;
    min-height: 128px;
    padding: 11px 14px;
    line-height: 22px;
    resize: vertical;
}

select.ot-input {
    appearance: none;
    padding-right: 40px;
    background: var(--ot-field-rest, var(--ot-field-fill)) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235F7183' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6l6 -6'/%3E%3C/svg%3E") no-repeat right 14px center / 16px;
    cursor: pointer;
}

.dark select.ot-input {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238899AA' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6l6 -6'/%3E%3C/svg%3E");
}

.dark select.ot-input option {
    background: #122740;
    color: #FFFFFF;
}

/* Filled as the panel's fields (Mi perfil): tinted on hover and while typing, the border only marks the focus. */
.ot-input:is(:hover, :focus, :focus-visible) {
    background-color: var(--ot-chip-bg);
}

.dark .ot-input:is(:hover, :focus, :focus-visible) {
    background-color: var(--ot-chip-bg-hover);
}

.ot-input:is(:focus, :focus-visible) {
    border-color: var(--ot-control);
}

.ot-input.is-invalid:not(:user-valid):focus {
    border-color: var(--ot-danger);
}

.ot-input:disabled {
    background-color: var(--ot-field-disabled);
    color: var(--ot-ink-muted);
    cursor: default;
}

.ot-opt {
    font-weight: 400;
    color: var(--ot-ink-muted);
}

.ot-hint {
    margin: 0;
    font-size: 13px;
    line-height: 18px;
    color: var(--ot-ink-muted);
}

/* File: the drop zone, with the real input stretched over it, and the chosen file as a row with its tile */
.ot-drop {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 76px;
    padding: 16px;
    border-radius: var(--ot-radius-field);
    background-color: var(--ot-field-bg);
    outline: 1.5px dashed var(--ot-field-line);
    outline-offset: -1.5px;
    font-size: 14px;
    line-height: 20px;
    color: var(--ot-ink-soft);
    text-align: center;
    cursor: pointer;
    transition: outline-color 0.15s ease, background-color 0.15s ease;
}

.ot-drop input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.ot-drop svg {
    flex: none;
    width: 20px;
    height: 20px;
}

.ot-drop b {
    font-weight: 600;
    color: var(--ot-chip-ink);
}

.ot-drop:hover,
.ot-drop.is-over {
    outline-color: var(--ot-control);
}

.ot-drop:has(input:focus-visible) {
    outline: 1.5px solid var(--ot-control);
    box-shadow: 0 0 0 4px var(--ot-field-halo);
}

.ot-drop.is-invalid {
    outline-color: var(--ot-danger);
}

/* In a row: tile, what to drop and its limits, and the button, as a form field that takes several files. */
.ot-drop.is-row {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 16px;
    padding: 18px 20px;
    text-align: left;
}

.ot-drop-text {
    display: grid;
    flex: 1;
    gap: 2px;
    min-width: 200px;
}

.ot-drop-text b {
    color: var(--ot-ink);
}

.ot-drop-text small {
    font-size: 13px;
    line-height: 18px;
    color: var(--ot-ink-soft);
}

.ot-file {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: var(--ot-radius-field);
    background-color: var(--ot-field-fill);
}

.ot-file-body {
    display: grid;
    flex: 1;
    min-width: 0;
}

.ot-file-body b {
    overflow: hidden;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    color: var(--ot-ink);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ot-file-body small {
    font-size: 12px;
    line-height: 16px;
    color: var(--ot-ink-muted);
}

/* Footer B */

/* A band of the rail's navy in both modes, as the footer of the legal pages: the line keeps it apart from the night
   canvas, which is the same navy. The ink tokens take the rail's, so its links and language switch follow. */
.ot-footer {
    --ot-ink: #FFFFFF;
    --ot-ink-soft: var(--ot-rail-ink);
    --ot-ink-muted: var(--ot-rail-muted);
    display: flex;
    flex-wrap: wrap;
    margin-top: auto;
    gap: 8px 24px;
    padding: 24px 16px;
    font-size: 14px;
    color: var(--ot-ink-muted);
    background-color: var(--ot-rail);
    border-top: 1px solid var(--ot-rail-line);
}

.ot-footer a {
    color: var(--ot-ink-soft);
    text-decoration: none;
    transition: color 0.15s ease;
}

.ot-footer a:is(:hover, :focus-visible) {
    color: var(--ot-ink);
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

.ot-footer-end {
    margin-inline-start: auto;
}

/* Inside a sentence its colour alone would not say it is a link. */
.ot-footer-end a {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.ot-locale {
    display: inline-flex;
    gap: 12px;
}

.ot-footer .ot-locale a[aria-current] {
    color: var(--ot-ink);
}

/* On the simple pages (sign-in, Antes de seguir) the footer spans the window below Filament's centred column. */
.fi-simple-layout .ot-footer {
    width: 100%;
    margin-top: 0;
}

/* Public pages (legal texts, /reportar): the look of onlytap.es's legal pages, light only, as the website is. Every
   rule sits under :where(.ot-public), on <html>, so it never reaches the panels and keeps the weight it was written
   with. */

.ot-public {
    color-scheme: light;
    --navy: #0B1929;
    --cyan: #00E5FF;
    --steel: #8899AA;
    --slate: #4A5C6E;
    --cloud: #F4F7FA;
    --line: #DCE3EA;
    --link: #2B68A6;
    --display: var(--ot-font-display);
    --small: 0.9375rem;
    --gutter: 24px;
    --bar: 72px;
}

:where(.ot-public) *, :where(.ot-public) *::before, :where(.ot-public) *::after { box-sizing: border-box; }
:where(html.ot-public) { background: var(--ot-rail); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
:where(.ot-public) body {
    margin: 0;
    background: #FFFFFF;
    color: var(--navy);
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
:where(.ot-public) :is(h1, h2, p, ol, ul, dl, dd, fieldset, legend) { margin: 0; }
:where(.ot-public) :is(img, svg) { display: block; }
:where(.ot-public) a { color: var(--link); text-decoration-thickness: 2px; text-underline-offset: 3px; }
:where(.ot-public) a:focus-visible { outline: none; text-decoration-thickness: 3px; }
:where(.ot-public) .vh { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

:where(.ot-public) .wrap {
    width: 100%;
    max-width: calc(1200px + 2 * var(--gutter));
    margin-inline: auto;
    padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
    padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}

:where(.ot-public) .band { background: var(--ot-rail); color: #FFFFFF; --link: var(--cyan); }
:where(.ot-public) :is(.band, .lang) .icon { flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

:where(.ot-public) .bar { position: sticky; top: 0; z-index: 50; background: var(--ot-rail); }
:where(.ot-public) .bar .wrap { display: flex; align-items: center; gap: 24px; height: var(--bar); }
:where(.ot-public) .brand { display: inline-flex; margin-right: auto; }
:where(.ot-public) .bar .brand img { width: auto; height: 32px; }

:where(.ot-public) .lang { display: flex; flex-shrink: 0; align-items: center; gap: 6px; white-space: nowrap; color: var(--steel); font-size: var(--small); font-weight: 500; line-height: 1; }
:where(.ot-public) .lang .icon { width: 18px; height: 18px; }
:where(.ot-public) .lang ul { display: flex; align-items: center; padding: 0; list-style: none; }
:where(.ot-public) .lang li + li::before { content: "/" / ""; }
:where(.ot-public) .lang a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    min-height: 44px;
    padding-inline: 4px;
    color: #FFFFFF;
    text-decoration: underline;
    text-decoration-color: transparent;
    text-underline-offset: 6px;
}
:where(.ot-public) .lang a[aria-current],
:where(.ot-public) .lang a:focus-visible { text-decoration-color: var(--cyan); }
:where(.ot-public) .lang a:focus-visible { text-decoration-thickness: 3px; }

:where(.ot-public) .cover { display: grid; justify-items: start; gap: 16px; padding-block: 48px 64px; }
:where(.ot-public) .crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 0; list-style: none; color: var(--steel); font-size: var(--small); }
:where(.ot-public) .crumbs li { display: inline-flex; align-items: center; gap: 8px; }
:where(.ot-public) .crumbs .icon { width: 16px; height: 16px; }
:where(.ot-public) .crumbs a { color: #FFFFFF; text-decoration: none; }
:where(.ot-public) .crumbs a:focus-visible { text-decoration: underline; }
:where(.ot-public) h1 {
    min-width: 0;
    font-family: var(--display);
    font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.02em;
    text-wrap: balance;
    overflow-wrap: anywhere;
}
:where(.ot-public) .lead { max-width: 60ch; color: var(--steel); font-size: clamp(1.125rem, 1.05rem + 0.3vw, 1.25rem); line-height: 1.55; text-wrap: pretty; }
:where(.ot-public) .date { color: var(--steel); font-size: var(--small); }

/* The texts are plain h2, p, ul and dl: the clauses of the website are set by element here. */
:where(.ot-public) main { display: grid; gap: 16px; padding-block: 64px 96px; }
:where(.ot-public) main h2 { margin-top: 32px; font-family: var(--display); font-size: clamp(1.375rem, 1.2rem + 0.6vw, 1.625rem); font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; text-wrap: balance; }
:where(.ot-public) main > :first-child { margin-top: 0; }
:where(.ot-public) main :is(p, li) { max-width: 68ch; text-wrap: pretty; }
:where(.ot-public) main ul { display: grid; gap: 8px; padding-left: 1.25rem; list-style: disc; }
:where(.ot-public) main li::marker { color: var(--link); }
:where(.ot-public) main :is(strong, dt) { font-weight: 600; }
:where(.ot-public) main dl {
    display: grid;
    max-width: 46rem;
    grid-template-columns: max-content minmax(0, 1fr);
    gap: 12px 24px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--cloud);
}
:where(.ot-public) main dd { min-width: 0; overflow-wrap: anywhere; }
:where(.ot-public) main dl.stack { grid-template-columns: minmax(0, 1fr); gap: 2px; }
:where(.ot-public) main dl.stack dd + dt { margin-top: 12px; }

/* The card of the public pages, which have no Filament section: Contacto's, title and body. Kept to them: the panel's
   widgets use the same classes with their own spacing (theme.css). */
:where(.ot-public) .ot-card {
    border-radius: var(--ot-radius-card);
    background: var(--ot-surface);
}
:where(.ot-public) main .ot-card-title {
    margin: 0;
    padding: 24px 24px 18px;
    font: 600 20px/25px var(--ot-font-display);
    letter-spacing: -0.01em;
    color: var(--ot-ink);
}
:where(.ot-public) .ot-card-body {
    display: grid;
    gap: 24px;
    padding: 4px 24px 24px;
}

/* /reportar: Contacto's canvas and two cards, side by side from 64rem of form (the report, then who sent it), the
   reasons three to a row (two on a phone, below), and the panel's buttons, which here have no Filament to draw them. */
:where(.ot-public) body:has(.report) { background: var(--cloud); }
main.wrap:has(> .report) { container: ot-report / inline-size; }
:where(.ot-public) .report {
    display: grid;
    align-content: start;
    gap: 24px;
    font-size: 14px;
    line-height: 20px;
}
:where(.ot-public) form.report {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "alert" "msg" "side" "act";
    align-items: start;
}
:where(.ot-public) .report > .ot-note { grid-area: alert; }
:where(.ot-public) .report > .ot-card.is-msg { grid-area: msg; }
:where(.ot-public) .report > .ot-card.is-side { grid-area: side; }
:where(.ot-public) .report > .ot-report-act { grid-area: act; display: grid; gap: 24px; }
:where(.ot-public) .report .ot-field > :is(label:not(.ot-consent), legend) { font-weight: 500; }
:where(.ot-public) .report .ot-options { --ot-options-columns: repeat(3, minmax(0, 1fr)); }
:where(.ot-public) .report :is(.ot-note li, .ot-sent p) { max-width: none; }
:where(.ot-public) .report .ot-sent { background: var(--ot-surface); box-shadow: none; }
:where(.ot-public) .report .ot-sent .ot-btn { margin-top: 16px; }
:where(.ot-public) .report .actions { display: flex; }

/* The summary drops a field's line as soon as its own error goes, as Contact's does. */
:where(.ot-public) .report:has(#address:user-valid) [data-field="address"],
:where(.ot-public) .report:has(input[name="reason"]:checked) [data-field="reason"],
:where(.ot-public) .report:has(#message:user-valid) [data-field="message"],
:where(.ot-public) .report:has(#email:user-valid) [data-field="email"],
:where(.ot-public) .report:has(#good_faith:checked) [data-field="good_faith"] {
    display: none;
}

:where(.ot-public) .ot-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 20px;
    border: 0;
    border-radius: 999px;
    background: var(--ot-action);
    color: var(--ot-action-ink);
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    line-height: 20px;
    text-decoration: none;
    outline: none;
    cursor: pointer;
    transition: background-color 0.15s ease, transform 0.1s ease;
}
/* As in the panel: no ring, the keyboard lands on the hover state. */
:where(.ot-public) .ot-btn:is(:hover, :focus-visible) { background: var(--ot-action-hover); }
:where(.ot-public) .ot-btn:active { transform: scale(0.98); }
:where(.ot-public) .ot-btn svg { width: 18px; height: 18px; }
:where(.ot-public) .ot-btn.is-line { background: transparent; color: var(--ot-ink); box-shadow: inset 0 0 0 1.5px var(--ot-outline); }
:where(.ot-public) .ot-btn.is-line:is(:hover, :focus-visible) { background: var(--ot-outline-hover); }

/* Footer B with its edges on the content's. */
.ot-public .ot-footer {
    --link: var(--cyan);
    padding-inline: max(var(--gutter), calc((100% - 1200px) / 2));
    line-height: 20px;
}

/* An error lasts only while the field is wrong: picking a card, ticking the box or typing a valid value clears it at
   once, before any submit. */
.ot-field:has(.ot-options input:checked, .ot-consent input:checked, .ot-input:user-valid) > .ot-error {
    display: none;
}

@media (min-width: 901px) {
    .ot-footer {
        padding-inline: 32px;
    }

    /* The content is centred at 1200px while the footer spans the column: the gutter keeps its edges on the content's. */
    .fi-main-ctn > .ot-footer {
        padding-inline: max(32px, calc((100% - 1200px) / 2 + 32px));
    }
}

@media (max-width: 767.98px) {
    .ot-public { --gutter: 16px; --bar: 64px; }
    :where(.ot-public) .bar .brand img { height: 28px; }
    :where(.ot-public) main { padding-block: 64px; }
    :where(.ot-public) main dl { grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 16px; }
    :where(.ot-public) main dd + dt { margin-top: 12px; }
}

@container ot-report (min-width: 64rem) {
    :where(.ot-public) form.report {
        grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
        grid-template-areas: "alert alert" "msg side" "act side";
    }
}

@media (max-width: 639.98px) {
    :where(.ot-public) .report .actions .ot-btn { width: 100%; }
}

@media (max-width: 639.98px) {
    .ot-footer-end {
        margin-inline-start: 0;
        flex-basis: 100%;
    }
}

@media (max-width: 560px) {
    .ot-strip {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px 16px;
    }

    .ot-strip > div {
        padding: 0;
        box-shadow: none;
    }

    .ot-sent {
        grid-template-columns: minmax(0, 1fr);
        row-gap: 14px;
    }

    .ot-note {
        grid-template-columns: 20px minmax(0, 1fr);
    }

    .ot-note-end {
        grid-column: 2;
        justify-self: start;
        margin-top: 8px;
        margin-left: 0;
    }

    .ot-note-end .ot-note-close {
        position: absolute;
        top: 10px;
        right: 12px;
    }

    .ot-note:has(.ot-note-close) {
        position: relative;
        padding-right: 40px;
    }

    :where(.ot-public) .report .ot-options {
        --ot-options-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (hover: hover) and (pointer: fine) {
    :where(.ot-public) .crumbs a:hover { text-decoration: underline; }
    :where(.ot-public) .lang a:hover { text-decoration-color: var(--cyan); }
}

@media (prefers-reduced-motion: no-preference) {
    :where(.ot-public) .lang a { transition: text-decoration-color 150ms cubic-bezier(0.22, 1, 0.36, 1); }

    /* A note whose work goes on by itself (x-ot.note busy): its icon turns until it ends. */
    .ot-note-icon.is-busy { animation: ot-spin 1s linear infinite; }

    @keyframes ot-spin {
        to { rotate: 360deg; }
    }
}

/* On touch the drawn size stays and only the area that takes the tap grows. */
@media (pointer: coarse) {
    .ot-footer {
        row-gap: 20px;
    }

    .ot-footer a,
    .ot-note a:not(.fi-btn),
    .ot-note-link {
        position: relative;
    }

    .ot-footer a::after,
    .ot-note a:not(.fi-btn)::after,
    .ot-note-link::after {
        content: "";
        position: absolute;
        inset: -12px 0;
    }

    /* iOS zooms the whole page into any field under 16px when it takes focus. */
    .ot-input {
        font-size: 16px;
    }
}
