/* Settings and Support (#tips-modal: its menu and every pane), reimagined in the buoy modal's language
   (buoy_modal.css). Look only: what it shows and does is app.js's, unchanged. Every rule is scoped by #tips-modal, over
   the base rules in app.css, which stay as they were.

   - The panel: the farm card's glass (--bc-glass-*, 18 px corners, a drop shadow), one fixed height so it holds still
     as the menu moves between panes; an Oxanium title over a quiet meta line; the close a quiet 28 px icon button.
   - The menu: the buoy modal's group strip stood on end: a dark trough, each group under a quiet heading (a chevron
     folds it), each item an icon in a small tinted chip and its name; hover lights an item, the one shown takes the
     strip's pick (brand blue, ringed). Unseen tips carry an amber "New" pill.
   - A pane: its head an icon chip beside an Oxanium title over the group it belongs to (the meta line), ruled off.
     A tip is its text beside its picture, framed as a window; a settings pane is its sections as glass tiles (one
     open at a time), each setting a row: its name at the left, its switch (brand blue when on), menu or slider at
     the right; inputs and menus in the strip's dark trough; Apply buttons the brand's blue, Clear cache a quiet
     trough that warms red on hover.
   - The foot: the startup switch, and previous / next tip as a pair of icon buttons in a small trough.
   Focus shows a 2 px brand-blue ring; motion stops for prefers-reduced-motion. */

/* ── The panel: the glass, a fixed height, three rows (header, menu and pane, foot) ─────────────────────── */
#tips-modal .modal-content.tips-modal-content {
    --sm-gap: 20px;
    width: 940px;
    max-width: calc(100vw - 32px);
    height: min(660px, calc(100vh - 48px));
    max-height: none;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    padding: 0;
    overflow: hidden;
    border-radius: 18px;
    background: var(--bc-glass-bg);
    -webkit-backdrop-filter: var(--bc-glass-blur);
    backdrop-filter: var(--bc-glass-blur);
    border: var(--bc-glass-border);
    box-shadow: var(--bc-glass-edge), 0 18px 44px rgba(0, 8, 22, 0.55);
    color: #e2e8f0;
    font-family: Manrope, system-ui, sans-serif;
}

/* Every button in it: none of app.css's global button (navy fill, 18 px padding, 15 px type); each sets its own. */
#tips-modal :where(button) {
    isolation: auto;
    overflow: visible;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    line-height: 1;
}
#tips-modal :where(button):focus-visible { outline: 2px solid #2e8eff; outline-offset: 2px; }

/* ── The header: the title over its meta line; the close at the right ─────────────────────────────────── */
#tips-modal .modal-header {
    align-items: flex-start;
    gap: 12px;
    margin: 0;
    padding: 18px var(--sm-gap) 16px;
}
#tips-modal .tips-modal-titles { min-width: 0; }
#tips-modal .modal-title {
    margin: 0;
    font-family: Oxanium, Manrope, sans-serif;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.3px;
    line-height: 1.2;
    color: #f8fafc;
}
#tips-modal .tips-modal-meta { margin: 3px 0 0; font-size: 12px; font-weight: 600; line-height: 1.35; color: rgba(203, 213, 225, 0.72); }
/* The close: the buoy modal's icon button (a quiet 28 px square, keeping its x). */
#tips-modal .bc-btn-group { flex: none; margin: -2px -6px 0 0; background: none; border: 0; border-radius: 0; overflow: visible; }
#tips-modal .bc-btn-group__btn {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: transparent;
    color: rgba(226, 232, 240, 0.65);
    transition: background-color 0.15s ease, color 0.15s ease;
}
#tips-modal .bc-btn-group__btn:hover { background: rgba(255, 255, 255, 0.1); color: #ffffff; }
#tips-modal .bc-btn-group__btn i { font-size: 13px; }

/* ── The menu and the pane, side by side under the header ──────────────────────────────────────────────── */
#tips-modal .tips-layout {
    display: grid;
    grid-template-columns: 236px minmax(0, 1fr);
    gap: 0;
    min-height: 0;
    margin: 0;
    padding: 0 0 0 var(--sm-gap);
}

/* ── The menu: the group strip on end, a dark trough scrolling on its own ──────────────────────────────── */
#tips-modal .tips-rail {
    min-height: 0;
    margin-bottom: 18px;
    padding: 6px;
    overflow-y: auto;
    border: 0;
    border-radius: 14px;
    background: rgba(2, 10, 24, 0.5);
    box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.12);
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}
#tips-modal .tips-rail::-webkit-scrollbar { width: 4px; }
#tips-modal .tips-rail::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.15); border-radius: 2px; }
/* The groups, ruled apart by a hairline. */
#tips-modal .tips-rail-section + .tips-rail-section { margin-top: 4px; padding-top: 4px; border-top: 1px solid rgba(148, 163, 184, 0.1); }

/* A group's heading: quiet, as written (no capitals); its chevron folds the group (down open, right folded). */
#tips-modal .tips-rail-section-label {
    gap: 8px;
    margin: 0;
    padding: 9px 10px 7px;
    border-radius: 8px;
    background: none;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.3px;
    line-height: 1.2;
    text-transform: none;
    color: rgba(148, 163, 184, 0.85);
    transition: color 0.15s ease, background-color 0.15s ease;
}
#tips-modal .tips-rail-section:first-child .tips-rail-section-label { margin-top: 0; }
#tips-modal .tips-rail-section-label:hover { background: rgba(255, 255, 255, 0.04); color: #f8fafc; }
#tips-modal .tips-rail-section:not(.collapsed) .tips-rail-section-label { color: #93c5fd; }
#tips-modal .tips-rail-section-chevron { font-size: 9px; color: rgba(148, 163, 184, 0.6); }
#tips-modal .tips-rail-section-label:hover .tips-rail-section-chevron { color: inherit; }
#tips-modal .tips-rail-section-items { padding-bottom: 2px; }

/* An item: its icon in a small tinted chip, its name (cut short with an ellipsis), and an unseen tip's pill. Hover
   lights it; the one shown is the strip's pick. */
#tips-modal .tips-rail-item {
    gap: 10px;
    margin: 1px 0;
    padding: 5px 8px 5px 6px;
    border-radius: 9px;
    color: rgba(226, 232, 240, 0.62);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1px;
    line-height: 1.3;
    transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
#tips-modal .tips-rail-item:hover { background: rgba(255, 255, 255, 0.06); color: #f8fafc; }
#tips-modal .tips-rail-item.is-active { background: rgba(46, 142, 255, 0.22); box-shadow: inset 0 0 0 1px rgba(96, 165, 250, 0.5); color: #ffffff; }
#tips-modal .tips-rail-item.is-active::before { content: none; }
#tips-modal .tips-rail-item i {
    display: grid;
    place-items: center;
    flex: none;
    width: 24px;
    height: 24px;
    border-radius: 7px;
    background: rgba(46, 142, 255, 0.12);
    box-shadow: inset 0 0 0 1px rgba(96, 165, 250, 0.18);
    color: #60a5fa;
    font-size: 11px;
    transition: background-color 0.15s ease, color 0.15s ease;
}
#tips-modal .tips-rail-item.is-active i { background: rgba(46, 142, 255, 0.3); box-shadow: inset 0 0 0 1px rgba(147, 197, 253, 0.4); color: #ffffff; }
/* Unseen: an amber pill, in sentence case as the panel's other pills. */
#tips-modal .tips-rail-new-pill {
    margin-left: auto;
    padding: 2px 7px 3px;
    border-radius: 999px;
    background: rgba(251, 191, 36, 0.14);
    box-shadow: inset 0 0 0 1px rgba(251, 191, 36, 0.38);
    color: #fcd34d;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.3px;
    line-height: 1.2;
    text-transform: lowercase;
}
#tips-modal .tips-rail-new-pill::first-letter { text-transform: uppercase; }

/* ── The pane: scrolling on its own beside the menu ────────────────────────────────────────────────────── */
#tips-modal .tips-detail {
    gap: 0;
    min-height: 0;
    padding: 2px var(--sm-gap) var(--sm-gap) 24px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}
#tips-modal .tips-detail::-webkit-scrollbar { width: 4px; }
#tips-modal .tips-detail::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.15); border-radius: 2px; }

/* Its head (a tip's and a settings pane's alike): the icon in a chip beside the title, over the group it belongs to
   (the badge, as a meta line), ruled off from what follows. */
#tips-modal .tips-detail-head {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 12px;
    row-gap: 3px;
    align-items: center;
    width: auto;
    margin-bottom: 18px;
    padding: 4px 0 16px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 0;
    background: none;
    color: inherit;
}
#tips-modal .tips-detail-head > i {   /* #tips-icon, or a settings pane's gear */
    grid-row: 1 / span 2;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(46, 142, 255, 0.14);
    box-shadow: inset 0 0 0 1px rgba(96, 165, 250, 0.22);
    color: #60a5fa;
    font-size: 16px;
    opacity: 1;
}
#tips-modal .tips-detail-title {
    align-self: end;
    margin: 0;
    font-family: Oxanium, Manrope, sans-serif;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.3px;
    line-height: 1.25;
    text-transform: none;
    color: #f8fafc;
    overflow-wrap: anywhere;
}
#tips-modal .tips-detail-badge {
    align-self: start;
    justify-self: start;
    max-width: 100%;
    padding: 0;
    border-radius: 0;
    background: none;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1.35;
    text-transform: none;
    color: rgba(203, 213, 225, 0.72);
    overflow: hidden;
    text-overflow: ellipsis;
}
#tips-modal .tips-detail-badge:empty { display: none; }

/* ── A tip: its text, and beside it its picture framed as a window (stacked when the panel is narrow) ──────── */
#tips-modal .tips-detail-body-row { gap: 22px; align-items: flex-start; }
#tips-modal .tips-detail-text {
    max-width: 64ch;   /* a comfortable line where the tip has no picture */
    margin: 0;
    font-size: 14px;
    line-height: 1.7;
    color: rgba(226, 232, 240, 0.86);
}
#tips-modal .tips-detail-image {
    flex: 0 0 auto;
    width: min(321px, 48%);
    max-width: none;
    margin: 4px 0 0;
    border-radius: 14px;
    background: radial-gradient(circle at 50% 30%, rgba(46, 142, 255, 0.2), rgba(2, 10, 24, 0.9) 75%);
    box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.18), 0 14px 32px rgba(0, 8, 22, 0.55);
}

/* ── A settings pane: its sections as glass tiles, one open at a time ──────────────────────────────────── */
#tips-modal .ss-acc {
    margin: 0;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
    box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.12);
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}
#tips-modal .ss-acc + .ss-acc { margin-top: 10px; }
#tips-modal .ss-acc.collapsed:hover { box-shadow: inset 0 0 0 1px rgba(96, 165, 250, 0.4); }
/* Its head: the section's name in Oxanium, a quiet chevron at the right (right folded, down open). */
#tips-modal .ss-acc-header {
    gap: 12px;
    min-height: 48px;
    padding: 0 12px 0 16px;
    background: transparent;
    user-select: none;
}
#tips-modal .ss-acc-header .aoi-module-name {
    font-family: Oxanium, Manrope, sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.3px;
    color: #f8fafc;
}
#tips-modal .ss-acc-header .aoi-module-chevron {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 7px;
    font-size: 10px;
    color: rgba(148, 163, 184, 0.75);
    transition: transform 0.2s ease, color 0.15s ease, background-color 0.15s ease;
}
#tips-modal .ss-acc-header:hover .aoi-module-chevron { background: rgba(255, 255, 255, 0.08); color: #ffffff; }
#tips-modal .ss-acc-header .aoi-module-chevron.open { color: #60a5fa; }
#tips-modal .ss-acc-body { padding: 2px 16px 14px; border-top: 1px solid rgba(148, 163, 184, 0.1); }

/* A setting with a switch: its name at the left, the switch at the right, the rows ruled apart by hairlines. */
#tips-modal .settings-section .toggle-row {
    position: relative;
    gap: 16px;
    margin: 0;
    padding: 12px 0;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
    color: #e2e8f0;
}
#tips-modal .settings-section > .toggle-row + .toggle-row,
#tips-modal .settings-section > .module-setting + .module-setting { border-top: 1px solid rgba(148, 163, 184, 0.1); }
/* A module setting's help, under its name, clear of the switch. */
#tips-modal .module-setting-help { margin: -6px 52px 12px 0; font-size: 12px; line-height: 1.45; color: rgba(203, 213, 225, 0.62); }

/* The switch: a dark trough with a slate knob; on, the brand blue with a white knob. Its checkbox stays in the page
   (hidden, not removed), so it takes the keyboard's focus and Space, and the switch shows the focus ring. */
#tips-modal .toggle-row input[type="checkbox"] {
    display: block;
    position: absolute;
    width: 1px;
    height: 1px;
    margin: 0;
    opacity: 0;
    pointer-events: none;
}
#tips-modal .toggle-switch {
    width: 36px;
    height: 20px;
    border-radius: 999px;
    background: rgba(2, 10, 24, 0.55);
    box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.24);
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}
#tips-modal .toggle-switch::after {
    top: 3px;
    left: 3px;
    width: 14px;
    height: 14px;
    background: #94a3b8;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
    transition: left 0.2s ease, background-color 0.2s ease;
}
#tips-modal .toggle-row:hover .toggle-switch { box-shadow: inset 0 0 0 1px rgba(96, 165, 250, 0.45); }
#tips-modal .toggle-row input:checked + .toggle-switch { background: #2e8eff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 0 12px rgba(46, 142, 255, 0.3); }
#tips-modal .toggle-row input:checked + .toggle-switch::after { left: 19px; background: #ffffff; }
#tips-modal .toggle-row input:focus-visible + .toggle-switch { outline: 2px solid #2e8eff; outline-offset: 2px; }

/* A setting with a menu, input or slider: its name over it (as written, not in capitals). */
#tips-modal .settings-section .aoi-form-label {
    margin-top: 12px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1.35;
    text-transform: none;
    color: #e2e8f0;
}
#tips-modal .settings-section > .aoi-form-label:first-child { margin-top: 10px; }
/* Number inputs' names (the satellite offsets) sit quieter, as meta, over their fields. */
#tips-modal .settings-section .aoi-form-label:has(> .aoi-form-input) { font-size: 12px; color: rgba(203, 213, 225, 0.72); }
/* A slider's value (inline-coloured light blue by the markup), in Oxanium. */
#tips-modal #coastline-tolerance-display,
#tips-modal #satellite-opacity-display { font-family: Oxanium, Manrope, sans-serif; font-size: 14px; font-weight: 700 !important; letter-spacing: 0.2px; font-variant-numeric: tabular-nums; }   /* !important: over the markup's inline 500 */

/* Menus and inputs: the group strip's dark trough with its hairline; hover and focus ring it in blue. The menus draw
   their own chevron. */
#tips-modal .settings-section .aoi-form-input,
#tips-modal .settings-section .aoi-form-select {
    height: 36px;
    padding: 0 12px;
    border: 0;
    border-radius: 10px;
    background-color: rgba(2, 10, 24, 0.5);
    box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.12);
    color: #e2e8f0;
    font-family: Manrope, system-ui, sans-serif;
    font-size: 13px;
    font-weight: 600;
    transition: box-shadow 0.15s ease;
}
#tips-modal .settings-section select.aoi-form-input,
#tips-modal .settings-section .aoi-form-select {
    -webkit-appearance: none;
    appearance: none;
    padding-right: 34px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%2394a3b8' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 13px center;
    cursor: pointer;
}
#tips-modal .settings-section .aoi-form-input:hover,
#tips-modal .settings-section .aoi-form-select:hover { box-shadow: inset 0 0 0 1px rgba(96, 165, 250, 0.4); }
#tips-modal .settings-section .aoi-form-input:focus,
#tips-modal .settings-section .aoi-form-select:focus { outline: none; box-shadow: inset 0 0 0 1px rgba(96, 165, 250, 0.5), 0 0 0 3px rgba(46, 142, 255, 0.18); }
#tips-modal .settings-section select option { background: #0b1626; color: #e2e8f0; }
/* Sliders in the brand blue, their scale (0 / 10 km, 0 / 100 %) quiet under them. */
#tips-modal .settings-section .aoi-form-range { display: block; height: 20px; margin: 0; accent-color: #2e8eff; cursor: pointer; }
#tips-modal .settings-section .aoi-form-range:focus-visible { outline: 2px solid #2e8eff; outline-offset: 2px; border-radius: 4px; }
#tips-modal .settings-section .aoi-form-range + div { color: rgba(203, 213, 225, 0.55) !important; font-weight: 600; font-variant-numeric: tabular-nums; }   /* !important: over the markup's inline slate */
#tips-modal .settings-section hr { margin: 14px 0 !important; border: 0; border-top: 1px solid rgba(148, 163, 184, 0.12); opacity: 1; }   /* !important: over the markup's inline margin */
/* Satellite imagery's opacity and offsets, under its switch: a step in, as part of it. */
#tips-modal #satellite-opacity-controls { margin: 0 0 4px !important; padding: 2px 0 6px 14px; border-left: 2px solid rgba(46, 142, 255, 0.35); }   /* !important: over the markup's inline margin */
#tips-modal #satellite-opacity-controls > .aoi-form-label:first-child { margin-top: 2px; }

/* Data: Cached data's name and its button share a line. */
#tips-modal .settings-section:has(> #btn-clear-cache-reload) { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 12px; }
#tips-modal .settings-section:has(> #btn-clear-cache-reload) > * { grid-column: 1 / -1; }
#tips-modal .settings-section:has(> #btn-clear-cache-reload) > .aoi-form-label:last-of-type { grid-column: 1; margin: 0; }

/* ── The buttons: Apply, the brand's blue (buoy_modal.css .alarms-add); Clear cache, a quiet trough warming red ── */
#tips-modal #tips-detail-settings .animated-button {
    height: 36px;
    margin-top: 12px !important;   /* !important: over the markup's inline margins */
    padding: 0 16px;
    border: 0;
    border-radius: 12px;
    background: radial-gradient(circle at 50% 0%, #5aa8ff, #2e8eff 60%, #1f6fd6);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 6px 18px rgba(46, 142, 255, 0.3);
    color: #ffffff;
    font-family: Manrope, system-ui, sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.2px;
    line-height: 36px;
    white-space: nowrap;
    transition: background 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
}
#tips-modal #tips-detail-settings .animated-button:hover { background: radial-gradient(circle at 50% 0%, #74b6ff, #4b9dff 60%, #2e8eff); }
#tips-modal #tips-detail-settings .animated-button:active { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 2px 8px rgba(46, 142, 255, 0.3); }
/* In a row of menus (Load data from), the button sits level with them. */
#tips-modal #tips-detail-settings #btn-apply-history-start { margin-top: 0 !important; }   /* !important: over the generic button margin above */
#tips-modal #tips-detail-settings #btn-clear-cache-reload {
    grid-column: 2;
    margin: 0 !important;   /* !important: over the markup's inline margin */
    background: rgba(2, 10, 24, 0.5);
    box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.16);
    color: #e2e8f0;
}
#tips-modal #tips-detail-settings #btn-clear-cache-reload:hover { background: rgba(239, 68, 68, 0.14); box-shadow: inset 0 0 0 1px rgba(248, 113, 113, 0.5); color: #fecaca; }

/* ── The foot: the startup switch, and previous / next tip in a small trough ───────────────────────────── */
#tips-modal .tips-footer {
    gap: 16px;
    margin: 0;
    padding: 12px var(--sm-gap) 14px;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
    background: rgba(2, 10, 24, 0.22);
}
#tips-modal .tips-startup-toggle {
    position: relative;
    gap: 10px;
    padding: 0;
    font-size: 12px;
    font-weight: 600;
    color: rgba(203, 213, 225, 0.72);
    transition: color 0.15s ease;
}
#tips-modal .tips-startup-toggle:hover { color: #f8fafc; }
#tips-modal .tips-foot-actions {
    gap: 2px;
    padding: 3px;
    border-radius: 11px;
    background: rgba(2, 10, 24, 0.5);
    box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.12);
}
#tips-modal .tips-arrow {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: rgba(226, 232, 240, 0.65);
    transition: background-color 0.15s ease, color 0.15s ease;
}
#tips-modal .tips-arrow:hover:not([disabled]) { background: rgba(255, 255, 255, 0.1); color: #ffffff; }
#tips-modal .tips-arrow[disabled] { opacity: 1; color: rgba(148, 163, 184, 0.3); cursor: default; }
#tips-modal .tips-arrow i { font-size: 11px; }

/* ── A phone: the panel near the screen's size; the menu above the pane ─────────────────────────────────── */
@media (max-width: 640px) {
    #tips-modal .modal-content.tips-modal-content { --sm-gap: 14px; width: calc(100vw - 16px); max-width: none; height: calc(100vh - 32px); }
    #tips-modal .tips-layout { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); row-gap: 14px; padding-right: var(--sm-gap); }
    #tips-modal .tips-rail { max-height: 30vh; margin-bottom: 0; border-bottom: 0; }
    #tips-modal .tips-detail { padding: 0 0 var(--sm-gap); }
    #tips-modal .tips-detail-image { width: 100%; max-width: 360px; margin: 0; }   /* the pictures are 321 px: not blown up past a phone's width */
    /* Load data from: the button under the month and year when the row is too narrow for all three. */
    #tips-modal .settings-section div:has(> #btn-apply-history-start) { flex-wrap: wrap; }
    #tips-modal #tips-detail-settings #btn-apply-history-start { flex: 1 1 100% !important; }   /* !important: over the markup's inline flex: none */
}

@media (prefers-reduced-motion: reduce) {
    #tips-modal .bc-btn-group__btn, #tips-modal .tips-rail-section-label, #tips-modal .tips-rail-item, #tips-modal .tips-rail-item i,
    #tips-modal .tips-rail-section-chevron, #tips-modal .ss-acc, #tips-modal .ss-acc-header .aoi-module-chevron,
    #tips-modal .toggle-switch, #tips-modal .toggle-switch::after, #tips-modal .settings-section .aoi-form-input,
    #tips-modal .settings-section .aoi-form-select, #tips-modal #tips-detail-settings .animated-button,
    #tips-modal .tips-startup-toggle, #tips-modal .tips-arrow { transition: none; }
}
