/* ==========================================================================
   Foulées de la Rance — photos
   Couleurs de l'estuaire : eau de la Rance, papier du dossard, jaune balise.
   ========================================================================== */

@font-face { font-family: "Barlow"; font-weight: 400; font-display: swap; src: url("fonts/barlow-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 500; font-display: swap; src: url("fonts/barlow-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-display: swap; src: url("fonts/barlow-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-display: swap; src: url("fonts/barlow-condensed-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 800; font-display: swap; src: url("fonts/barlow-condensed-latin-800-normal.woff2") format("woff2"); }

:root {
    --tide: #e7eeed;        /* fond : estran gris-vert */
    --surface: #f8fbfa;     /* panneaux */
    --paper: #ffffff;       /* dossard */
    --ink: #12343b;         /* texte : eau profonde */
    --ink-soft: #4b6469;
    --line: #c9d6d5;
    --sea: #1d6a85;         /* actions */
    --sea-strong: #14536a;
    --sea-tint: #d6e7ec;
    --balise: #f2b705;      /* accent : bouée jaune */
    --danger: #a8323f;
    --danger-tint: #f6dfe1;
    --warn-tint: #fbefc7;
    --ok: #2f7d50;
    --overlay: #0a1b1f;

    --display: "Barlow Condensed", "Arial Narrow", sans-serif-condensed, sans-serif;
    --text: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;

    --r-sm: 6px;
    --r-md: 10px;
    --r-lg: 16px;
    --gutter: clamp(16px, 4vw, 40px);
    color-scheme: light;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --tide: #0d2025;
        --surface: #142c31;
        --ink: #e4eeed;
        --ink-soft: #9db2b5;
        --line: #284449;
        --sea: #5aaecb;
        --sea-strong: #7cc3dc;
        --sea-tint: #1c3d47;
        --danger: #e07a85;
        --danger-tint: #3a1f24;
        --warn-tint: #3a3216;
        --ok: #6cc08f;
        color-scheme: dark;
    }
}
:root[data-theme="dark"] {
    --tide: #0d2025; --surface: #142c31; --ink: #e4eeed; --ink-soft: #9db2b5; --line: #284449;
    --sea: #5aaecb; --sea-strong: #7cc3dc; --sea-tint: #1c3d47; --danger: #e07a85;
    --danger-tint: #3a1f24; --warn-tint: #3a3216; --ok: #6cc08f; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--tide);
    color: var(--ink);
    font: 400 17px/1.5 var(--text);
    min-height: 100vh;
}
img { display: block; max-width: 100%; }
button, input, select { font: inherit; color: inherit; }
a { color: var(--sea); }
[hidden] { display: none !important; }
.muted { color: var(--ink-soft); }
h1, h2 { margin: 0; }
p { margin: 0; }

:focus-visible { outline: 3px solid var(--balise); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------- Boutons, champs ---------- */

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 44px; padding: 0 18px;
    border: 1px solid transparent; border-radius: var(--r-sm);
    font-weight: 600; font-size: 16px; text-decoration: none; cursor: pointer;
    transition: background-color .15s, border-color .15s, color .15s;
    white-space: nowrap;
}
.btn:disabled { opacity: .55; cursor: progress; }
.btn-primary { background: var(--sea); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--sea-strong); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn-primary { color: #08191d; } }
:root[data-theme="dark"] .btn-primary { color: #08191d; }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover:not(:disabled) { border-color: var(--sea); color: var(--sea); }
.btn-quiet { background: transparent; color: var(--ink-soft); padding: 0 10px; }
.btn-quiet:hover:not(:disabled) { color: var(--ink); }
.btn-danger { color: var(--danger); }
.btn-danger:hover:not(:disabled) { color: var(--danger); background: var(--danger-tint); }
.btn-block { width: 100%; }

.field { display: grid; gap: 6px; }
.field > span { font-size: 14px; font-weight: 600; color: var(--ink-soft); }
.field em { font-style: normal; font-weight: 400; }
.field input, .field select {
    min-height: 46px; width: 100%; padding: 0 12px;
    background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-sm);
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .field input, :root:not([data-theme="light"]) .field select { background: var(--tide); } }
:root[data-theme="dark"] .field input, :root[data-theme="dark"] .field select { background: var(--tide); }
.field input:focus, .field select:focus { border-color: var(--sea); outline: none; box-shadow: 0 0 0 3px var(--sea-tint); }

.check { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; min-height: 36px; }
.check input { width: 20px; height: 20px; accent-color: var(--sea); margin: 0; }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }

.notice { padding: 12px 14px; border-radius: var(--r-sm); font-size: 15px; }
.notice-warn { background: var(--warn-tint); }
.notice-error { background: var(--danger-tint); color: var(--danger); }

.bar { height: 8px; background: var(--sea-tint); border-radius: 99px; overflow: hidden; }
.bar > span { display: block; height: 100%; width: 0; background: var(--sea); border-radius: inherit; transition: width .3s ease; }
.bar-thin { height: 4px; }

.toast {
    position: fixed; left: 50%; bottom: max(20px, env(safe-area-inset-bottom));
    transform: translateX(-50%); z-index: 100;
    max-width: calc(100vw - 32px); padding: 12px 18px; border-radius: var(--r-md);
    background: var(--ink); color: var(--tide); font-weight: 500; font-size: 15px;
}
.toast.is-error { background: var(--danger); color: #fff; }

.g-brand { font-family: var(--display); font-weight: 600; font-size: 17px; color: var(--sea); }
.more-wrap { display: flex; justify-content: center; padding: 24px 0 48px; }

/* ==========================================================================
   Galerie
   ========================================================================== */

.page-gallery main, .g-head { width: min(100%, 1400px); margin: 0 auto; padding: 0 var(--gutter); }
.g-head { padding-top: clamp(20px, 4vw, 40px); text-align: center; }
.g-title { font-family: var(--display); font-weight: 800; font-size: clamp(30px, 5vw, 44px); line-height: 1.05; }

/* Le dossard : l'élément central de la page. */
.finder { display: grid; justify-items: center; gap: 10px; padding: clamp(20px, 4vw, 36px) 0 18px; }
.bib {
    position: relative; display: block; cursor: text;
    width: min(100%, 460px);
    background: var(--paper); color: #12343b;
    border-radius: 14px;
    padding: 0 28px 14px;
    box-shadow: 0 1px 0 rgba(18, 52, 59, .08), 0 14px 32px -18px rgba(18, 52, 59, .45);
    overflow: hidden;
}
.bib-label {
    display: block; margin: 0 -28px 4px; padding: 9px 12px 8px;
    background: var(--sea); color: #fff;
    font-family: var(--display); font-weight: 600; font-size: 17px; letter-spacing: .02em; text-align: center;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .bib-label { background: #1d6a85; } }
:root[data-theme="dark"] .bib-label { background: #1d6a85; }
.bib-input {
    display: block; width: 100%; border: 0; background: transparent; outline: none;
    font-family: var(--display); font-weight: 800; font-variant-numeric: tabular-nums;
    font-size: clamp(72px, 22vw, 136px); line-height: 1.02; letter-spacing: .01em;
    text-align: center; color: #12343b; padding: 0;
}
.bib-input::placeholder { color: #12343b; opacity: .12; }
.bib:focus-within { box-shadow: 0 0 0 3px var(--balise), 0 14px 32px -18px rgba(18, 52, 59, .45); }
/* Trous d'épingle aux quatre coins. */
.bib-pin {
    position: absolute; width: 10px; height: 10px; border-radius: 50%;
    background: var(--tide); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .25);
    z-index: 1;
}
.bib-pin:nth-child(1) { top: 46px; left: 12px; }
.bib-pin:nth-child(2) { top: 46px; right: 12px; }
.bib-pin:nth-child(3) { bottom: 12px; left: 12px; }
.bib-pin:nth-child(4) { bottom: 12px; right: 12px; }
.bib-clear {
    position: absolute; right: 30px; bottom: 18px;
    width: 36px; height: 36px; border-radius: 50%; border: 0; cursor: pointer;
    background: #e7eeed; color: #12343b; display: grid; place-items: center;
}
.bib-clear svg, .lb-close svg, .icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.finder-help { font-size: 15px; color: var(--ink-soft); text-align: center; }

.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 6px 0 4px; }
.chip {
    display: inline-flex; align-items: center; gap: 8px;
    min-height: 40px; padding: 0 14px; border-radius: 99px;
    border: 1px solid var(--line); background: var(--surface); color: var(--ink);
    font-weight: 500; font-size: 15px; cursor: pointer;
}
.chip .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c, var(--ink-soft)); flex: none; }
.chip .n { color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--tide); border-color: var(--ink); }
.chip[aria-pressed="true"] .n { color: inherit; opacity: .7; }

.result-line { text-align: center; color: var(--ink-soft); padding: 14px 0 18px; min-height: 56px; font-size: 16px; }
.result-line strong { color: var(--ink); font-weight: 600; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(46%, 220px), 1fr)); gap: clamp(6px, 1.2vw, 12px); }
.tile {
    position: relative; display: block; padding: 0; border: 0; cursor: zoom-in;
    aspect-ratio: 3 / 2; overflow: hidden; border-radius: var(--r-sm);
    background: var(--sea-tint);
}
.tile img { width: 100%; height: 100%; object-fit: cover; }
.tile-bibs {
    position: absolute; left: 6px; bottom: 6px; max-width: calc(100% - 12px);
    display: flex; flex-wrap: wrap; gap: 4px;
}
.tile-bib {
    padding: 1px 7px; border-radius: 4px;
    background: rgba(255, 255, 255, .94); color: #12343b;
    font-family: var(--display); font-weight: 800; font-size: 15px; line-height: 1.35;
}
.tile-bib.is-match { background: var(--balise); }

.empty { text-align: center; padding: 40px 16px 60px; color: var(--ink-soft); }
.empty strong { display: block; color: var(--ink); font-size: 19px; margin-bottom: 6px; }

/* Visionneuse */
.lightbox {
    width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none;
    margin: 0; padding: 0; border: 0; background: var(--overlay); color: #fff;
}
.lightbox[open] { display: grid; grid-template-rows: 1fr auto; }
.lightbox::backdrop { background: rgba(0, 0, 0, .6); }
.lb-stage { position: relative; min-height: 0; overflow: hidden; }
.lb-stage img {
    position: absolute; top: 60px; left: 12px; width: calc(100% - 24px); height: calc(100% - 68px);
    object-fit: contain; touch-action: pan-y; user-select: none;
}
@media (min-width: 641px) { .lb-stage img { left: 76px; width: calc(100% - 152px); } }
.lb-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 52px; height: 52px; border-radius: 50%; border: 0; cursor: pointer;
    background: rgba(255, 255, 255, .12); color: #fff; display: grid; place-items: center;
}
.lb-nav:hover { background: rgba(255, 255, 255, .22); }
.lb-nav svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.lb-prev { left: 12px; } .lb-next { right: 12px; }
@media (max-width: 640px) { .lb-nav { display: none; } }
.lb-bar {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
    padding: 12px var(--gutter) max(14px, env(safe-area-inset-bottom));
}
.lb-info { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 15px; color: rgba(255, 255, 255, .8); }
.lb-info .tile-bib { font-size: 18px; }
.lb-actions { display: flex; gap: 10px; }
.lightbox .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .35); }
.lightbox .btn-ghost:hover { color: #fff; border-color: #fff; }
.lightbox .btn-primary { background: var(--balise); color: #12343b; }
.lightbox .btn-primary:hover { background: #ffc928; }
.lb-close {
    position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; border-radius: 50%;
    border: 0; background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer; display: grid; place-items: center;
}

/* ==========================================================================
   Upload
   ========================================================================== */

.up-shell { width: min(100%, 860px); margin: 0 auto; padding: clamp(20px, 4vw, 44px) var(--gutter) 60px; display: grid; gap: 18px; }
.up-head h1 { font-family: var(--display); font-weight: 800; font-size: clamp(32px, 5vw, 44px); line-height: 1.05; margin: 2px 0 6px; }
.up-form { padding: clamp(16px, 3vw, 24px); display: grid; gap: 14px; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.drop {
    margin-top: 4px; padding: 32px 16px; border-radius: var(--r-md);
    border: 2px dashed var(--line); text-align: center; display: grid; justify-items: center; gap: 6px;
    transition: border-color .15s, background-color .15s;
}
.drop.is-over { border-color: var(--sea); background: var(--sea-tint); }
.drop-icon { width: 44px; height: 44px; fill: none; stroke: var(--sea); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.drop-title { font-family: var(--display); font-weight: 800; font-size: 26px; }
.drop-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 10px; }

.up-progress { padding: clamp(16px, 3vw, 24px); display: grid; gap: 14px; }
.up-summary { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.up-count { font-family: var(--display); font-weight: 800; font-size: 28px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.up-analysis { display: grid; gap: 8px; font-size: 15px; }
.file-list { list-style: none; margin: 0; padding: 0; max-height: 420px; overflow: auto; border-top: 1px solid var(--line); }
.file-list li {
    display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: center;
    padding: 9px 2px; border-bottom: 1px solid var(--line); font-size: 15px;
}
.file-list .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-list .state { font-weight: 600; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.file-list .is-done .state { color: var(--ok); }
.file-list .is-dup .state { color: var(--ink-soft); }
.file-list .is-error .state { color: var(--danger); }
.file-list .msg { grid-column: 1 / -1; color: var(--danger); font-size: 14px; }

/* ==========================================================================
   Connexion
   ========================================================================== */

.login { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.login-form { width: min(100%, 380px); padding: 28px 24px; display: grid; gap: 16px; }
.login-form h1 { font-family: var(--display); font-weight: 800; font-size: 34px; line-height: 1; margin-top: -8px; }

/* ==========================================================================
   Administration
   ========================================================================== */

.page-admin { padding: 0 var(--gutter) 40px; max-width: 1600px; margin: 0 auto; }
.a-top { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px; padding: 22px 0 16px; }
.a-top h1 { font-family: var(--display); font-weight: 800; font-size: clamp(28px, 4vw, 36px); line-height: 1.05; }
.a-top-links { display: flex; flex-wrap: wrap; gap: 8px; }
.a-notice { margin-bottom: 10px; }

.queue { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px 14px; margin-bottom: 14px; display: grid; gap: 10px; }
.queue-text { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2.5px solid var(--sea-tint); border-top-color: var(--sea); animation: spin .8s linear infinite; flex: none; }
.queue.is-idle .spinner { animation: none; border-color: var(--danger); }
@keyframes spin { to { transform: rotate(360deg); } }

.tabs { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--line); margin-bottom: 14px; scrollbar-width: none; }
.tab {
    flex: none; padding: 10px 14px; border: 0; background: none; cursor: pointer;
    border-bottom: 3px solid transparent; margin-bottom: -1px;
    font-weight: 600; color: var(--ink-soft);
}
.tab .n { font-family: var(--display); font-weight: 800; font-size: 19px; margin-left: 6px; color: var(--ink); font-variant-numeric: tabular-nums; }
.tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--sea); }
.tab.is-alert .n { color: var(--danger); }

.a-tools { display: flex; flex-wrap: wrap; align-items: end; gap: 10px 12px; margin-bottom: 10px; }
.field-inline { min-width: 180px; }
.field-grow { flex: 1 1 260px; }
.a-count { color: var(--ink-soft); font-size: 15px; margin: 6px 0 10px; }

.a-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.card {
    display: grid; grid-template-rows: auto 1fr; text-align: left; padding: 0; cursor: pointer;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden;
}
.card:hover { border-color: var(--sea); }
.card-img { position: relative; aspect-ratio: 3 / 2; background: var(--sea-tint); }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card.is-hidden .card-img img { opacity: .4; }
.card-flag {
    position: absolute; top: 6px; left: 6px; padding: 2px 8px; border-radius: 4px;
    font-size: 13px; font-weight: 600; background: var(--paper); color: #12343b;
}
.card-flag.review { background: var(--balise); }
.card-flag.error { background: var(--danger); color: #fff; }
.card-flag.queued { background: var(--sea-tint); color: var(--ink); }
.card-body { padding: 8px 10px 10px; display: grid; gap: 4px; }
.card-line { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.card-id { font-size: 13px; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.card-bibs { font-family: var(--display); font-weight: 800; font-size: 20px; line-height: 1.15; min-height: 23px; overflow-wrap: anywhere; }
.card-bibs.none { font-family: var(--text); font-weight: 400; font-size: 14px; color: var(--ink-soft); }
.cat { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-soft); }
.cat::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--ink-soft)); }

/* Éditeur */
.editor {
    width: min(100vw - 24px, 1280px); height: min(100dvh - 24px, 860px); max-width: none; max-height: none;
    padding: 0; border: 1px solid var(--line); border-radius: var(--r-lg);
    background: var(--surface); color: var(--ink); overflow: hidden;
}
.editor::backdrop { background: rgba(6, 18, 22, .72); }
.ed { display: grid; grid-template-columns: minmax(0, 1fr) 360px; height: 100%; }
.ed-photo { position: relative; background: #0b1b1f; overflow: hidden; cursor: zoom-in; display: grid; place-items: center; }
.ed-photo img { max-width: 100%; max-height: 100%; object-fit: contain; transition: transform .2s ease; }
.ed-photo.is-zoomed { cursor: zoom-out; }
.ed-photo.is-zoomed img { transform: scale(2.4); }
.ed-side { overflow-y: auto; padding: 16px 18px 18px; display: grid; gap: 14px; align-content: start; border-left: 1px solid var(--line); }
.ed-head { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 8px; }
.ed-id { font-family: var(--display); font-weight: 800; font-size: 26px; line-height: 1; }
.ed-pos { grid-row: 2; font-size: 14px; }
.ed-head .icon-btn { grid-row: 1 / span 2; grid-column: 2; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: transparent; cursor: pointer; display: grid; place-items: center; }
.ed-meta { font-size: 14px; overflow-wrap: anywhere; }
.ed-bibs { font-family: var(--display) !important; font-weight: 800; font-size: 30px !important; min-height: 58px !important; letter-spacing: .02em; }
.ed-race { font-size: 14px; margin-top: -8px; min-height: 21px; }
.ed-race.is-warn { color: var(--danger); }
.ed-checks { display: grid; gap: 2px; }
.ed-ai summary { cursor: pointer; font-size: 14px; color: var(--ink-soft); }
.ed-ai pre { white-space: pre-wrap; font-size: 13px; background: var(--tide); padding: 8px; border-radius: var(--r-sm); margin: 6px 0 0; }
.ed-keys { font-size: 13px; text-align: center; margin-top: 6px; }
.ed-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ed-danger { display: flex; flex-wrap: wrap; gap: 2px; font-size: 15px; border-top: 1px solid var(--line); padding-top: 10px; }

@media (max-width: 820px) {
    .editor { width: 100vw; height: 100dvh; border-radius: 0; border: 0; }
    .ed { grid-template-columns: 1fr; grid-template-rows: 42vh 1fr; }
    .ed-side { border-left: 0; border-top: 1px solid var(--line); }
    .ed-keys { display: none; }
}

.ed-danger { display: grid; grid-template-columns: auto auto 1fr; }
.ed-danger .btn { font-size: 14px; padding: 0 6px; }
.ed-danger .btn-danger { justify-self: end; }

/* Lecture avec Claude Code */
.reader { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--balise); border-radius: var(--r-md); padding: 14px 16px; margin-bottom: 14px; display: grid; gap: 12px; }
.reader-title { font-family: var(--display); font-weight: 800; font-size: 22px; line-height: 1.15; }
.reader-head .muted { font-size: 15px; }
.reader-steps { margin: 0; padding-left: 22px; display: grid; gap: 10px; }
.reader-steps li { padding-left: 4px; }
.reader-steps li > * { vertical-align: middle; }
.reader-steps li { display: list-item; }
.reader-steps .btn { margin-right: 8px; }
.reader-steps .muted { font-size: 15px; }
.reader-prompt { display: inline-block; margin: 0 6px; padding: 6px 10px; border-radius: var(--r-sm); background: var(--tide); font-size: 15px; }
.reader-api { font-size: 14px; }
