/*
 * Make django-filer's file browser look like the rest of the admin.
 *
 * ``/admin/filer/folder/`` renders from filer's own templates and ``filer/css/admin_filer.css``,
 * which is written against *Django's* admin — a stylesheet Unfold replaces wholesale. Three
 * separate things break as a result, and they are treated in three sections below.
 *
 * Loaded through ``UNFOLD["STYLES"]``, which lands *before* filer's own stylesheet (filer attaches
 * that from its ``ModelAdmin.Media``, and media is rendered after the theme's assets). Source
 * order is therefore not available to win an argument here, so every rule that contradicts filer
 * either sets a custom property filer only *reads*, or outranks it on specificity — see each
 * section. The companion file for the *widget* on ordinary change forms is
 * config/static/config/filer-widget.css.
 */

/* ============================================================ 1. the variable bridge */

/*
 * Filer paints almost nothing with literal colours: it reads Django admin's CSS custom properties
 * (``--body-fg``, ``--button-bg``, …) and its own ``--dca-*`` set, each with a hardcoded fallback.
 * Unfold is Tailwind-based and defines *neither* family, so every one of those lookups fell
 * through to the fallback — which is where the invisible text came from:
 *
 *     .navigator-button { color: var(--default-button-fg, var(--button-fg, #fff)) !important;
 *                         background-color: var(--default-button-bg) !important; }
 *
 * With both variables undefined that is white text on no background at all, so "Nová složka" and
 * "Nahrát soubory" were legible only by their black 1px border.
 *
 * Defining the variables is better than overriding the rules: filer routes ~150 declarations
 * through them, so one mapping onto Unfold's own tokens fixes the whole surface at once and keeps
 * tracking the theme (including whatever ``UNFOLD["COLORS"]["primary"]`` says). It also needs no
 * ``!important`` and no specificity games, because filer *reads* these names and never sets them.
 *
 * Deliberately global rather than scoped to ``.filebrowser``: these are Django-admin-standard
 * property names, so any other third-party admin that expects them is fixed here too — and filer's
 * own file-picker widget appears on ordinary change forms, outside the browser page.
 */

:root {
    /* Django admin's palette, as filer's second-level fallbacks name it. */
    --body-bg: #fff;
    --body-fg: var(--color-font-important-light);
    --body-quiet-color: var(--color-font-subtle-light);
    --border-color: var(--color-base-200);
    --darkened-bg: var(--color-base-100);
    --primary: var(--color-primary-600);

    /* Buttons. ``--default-button-bg`` has no fallback in filer at all, so leaving it undefined is
       what stripped the background off the toolbar buttons entirely. */
    --button-bg: var(--color-primary-600);
    --button-fg: #fff;
    --default-button-bg: var(--color-primary-600);
    --default-button-fg: #fff;
    --button-radius: 6px;
    /* Filer dims on :active/:hover by filtering brightness rather than by naming a second colour. */
    --active-brightness: 0.9;
    --focus-brightness: 0.95;

    /* Filer's own set, which takes precedence over the Django names above wherever both appear. */
    --dca-white: #fff;
    --dca-black: var(--color-font-important-light);
    --dca-primary: var(--color-primary-600);
    --dca-gray-darkest: var(--color-base-800);
    /* Filer's ramp runs one step lighter than Unfold's at the text end: it spends ``--dca-gray``
       on body copy and ``--dca-gray-light`` on muted text *and* on always-enabled controls (the
       toolbar's delete/copy/move icons, the row's edit and delete buttons, the paginator). Mapped
       literally onto base-500/400 those controls came out lighter than any icon Unfold renders in
       an enabled state, so both are pulled a step darker to land on Unfold's own default and
       subtle font colours. Only the three ``lighter``/``lightest`` steps below are fills and
       borders, where the literal mapping is right. */
    --dca-gray: var(--color-base-600);
    --dca-gray-light: var(--color-base-500);
    --dca-gray-lighter: var(--color-base-200);
    --dca-gray-lightest: var(--color-base-100);
    --dca-gray-super-lightest: var(--color-base-50);
    --dca-border-radius: 6px;
    --dca-btn-radius: 6px;
}

/* ============================================ 2. filer's globals reaching Unfold's chrome */

/*
 * Filer's stylesheet is not scoped to filer's own markup: it carries a slice of Bootstrap plus a
 * few blanket rules aimed at Django's admin, and on a filer page those apply to the *whole*
 * document — Unfold's sidebar and header included. Auditing every filer rule against the elements
 * inside ``#nav-sidebar`` and ``#header`` turns up exactly three, of which two do damage:
 *
 *   - ``.hidden { display: none !important }`` — Bootstrap's utility, but ``hidden`` is a Tailwind
 *     utility too, and Unfold builds every sidebar navigation group as
 *     ``class="hidden … has-[ol]:has-[li]:block"``: hidden by default, revealed only once the
 *     group has items the user may see. Filer's rule carries ``!important`` and Unfold's reveal
 *     does not, so on filer pages *every* group stayed collapsed and the sidebar rendered with a
 *     search box, an account menu and no links at all.
 *   - ``.filebrowser h2 { display: none }`` — filer suppressing a page subtitle Django's admin
 *     emits. Unfold uses ``<h2>`` for the sidebar's section headings ("Obsah", "Dokumenty", …),
 *     so all sixteen of them vanished.
 *
 * (The third, ``.text-left``, only sets ``text-align: left`` on an element already aligned that
 * way, and is left alone.)
 *
 * Both fixes re-assert Unfold's intent rather than trying to unset filer's rule, and both need the
 * id prefix: specificity is what settles a tie between two ``!important`` declarations, and it is
 * what beats ``.filebrowser h2`` in the case that has no ``!important`` at all.
 */

/* ``:has(ol li)`` restates Unfold's own condition — a group with no permitted items stays hidden. */
#nav-sidebar-apps > div:has(ol li) {
    display: block !important;
}

/* Unfold's own class list for these headings is ``font-semibold flex flex-row …``. */
#nav-sidebar-apps h2 {
    display: flex !important;
}

/*
 * The same ``.hidden`` clash in the header. Unfold 0.107 renders a change form's object tools
 * (History, View on site, the project's preview actions) as ``<ul class="hidden … lg:flex">``: a
 * row from the ``lg`` breakpoint up, and below it a dropdown that Alpine reveals by adding
 * ``max-lg:flex``. Filer's ``!important`` wins over both, so on every change form carrying a filer
 * picker — the page and article forms among them — the whole row vanished. Both of Unfold's
 * conditions are restated here; the breakpoint is Unfold's ``lg`` (64rem).
 */
@media (width >= 64rem) {
    #header-inner ul.lg\:flex {
        display: flex !important;
    }
}

@media (width < 64rem) {
    #header-inner ul.max-lg\:flex {
        display: flex !important;
    }
}

/*
 * The same ``.hidden`` clash in the inlines of a change form. Unfold hides three parts of an inline
 * by default and reveals each through a variant class, which filer's ``!important`` beats on every
 * change form carrying a filer picker — the footer form and the homepage form among them:
 *
 *   - the column labels of a tabular inline, ``<thead class="hidden relative
 *     lg:table-header-group">``, a table header from the ``lg`` breakpoint up. Without it a row
 *     was a line of unlabelled inputs;
 *   - the button row of an inline, ``class="hidden form-actions …
 *     has-[.add-row:not(.hidden)]:flex has-[.inline-pagination]:flex"``, which holds the "add"
 *     button and the pagination. An inline without rows shows nothing but that button, so it
 *     rendered as a bare heading and no row could be added to it, nor to an inline nested in one
 *     of its rows;
 *   - the undo notice of a saved row whose bin was clicked, ``class="hidden form-delete"``,
 *     revealed from the row: ``has-[>_.form-row_.delete:checked]:[&>.form-delete]:block`` in a
 *     stacked inline, ``has-[.delete:checked]:[&+.form-delete]:table-row`` in a tabular one. The
 *     delete checkbox itself is never visible, so without the notice the row looked unchanged.
 *
 * Unfold's conditions are restated here. ``.hidden`` is part of each selector on purpose: a tabular
 * inline wraps its button row in a ``<tfoot class="form-actions">``, which must stay a table footer.
 */

/* The column labels of a tabular inline. Below the breakpoint they stay hidden, as Unfold has it. */
@media (width >= 64rem) {
    #content-main thead.lg\:table-header-group.hidden {
        display: table-header-group !important;
    }
}

/* The button row of an inline: the "add" button, unless the inline is full, and the pagination. */
#content-main .form-actions.hidden:has(.add-row:not(.hidden)),
#content-main .form-actions.hidden:has(.inline-pagination) {
    display: flex !important;
}

/*
 * The undo notice in a stacked inline. The element names keep the two notice rules apart: a
 * tabular row is a ``.form-group`` with a ``.form-row`` child as well.
 */
#content-main div.form-group:has(> .form-row .delete:checked) > div.form-delete.hidden {
    display: block !important;
}

/* The same notice in a tabular inline, where it is the table row after the ticked one. */
#content-main tr.form-row:has(.delete:checked) + tr.form-delete.hidden {
    display: table-row !important;
}

/* ================================================================= 3. the browser itself */

/*
 * With the variables mapped, what is left is metrics: filer's table and toolbar are sized against
 * Django's admin (5px cells, 3px radii, 13px type) and read as cramped next to an Unfold
 * changelist. The numbers below are Unfold's own, read off ``#result_list`` on a stock changelist:
 * 14px/8px-12px cells, 6px radii, ``text-important`` for row links.
 *
 * Every selector here is prefixed with ``#result_list`` or ``.filebrowser #content`` so it outranks
 * filer's ``.filebrowser .navigator-table …`` chains on specificity — the only lever available,
 * since filer's stylesheet loads last (see the file header).
 */

/* ------------------------------------------------------------------------------ the table */

/* Filer sets ``padding: 5px !important`` on every cell; Unfold uses 8px vertical, 12px at the
   row's outer edges. The header also carries Unfold's semibold + near-black rather than filer's
   ``font-weight: normal``. */
#result_list thead th,
#result_list tbody td {
    font-size: 14px !important;
    padding: 8px 12px !important;
}

#result_list thead th {
    color: var(--color-font-important-light) !important;
    font-weight: 600 !important;
}

/* Unfold separates rows with a single top border and no bottom one; filer draws the bottom edge,
   which doubles up against the border above and reads as a heavier rule. */
#result_list tbody td {
    border-bottom: 0 !important;
    border-top: 1px solid var(--color-base-200) !important;
}

/* Row links are the file and folder names — the primary content of the page. Unfold renders
   changelist links in ``text-important`` (near-black) and moves to the accent only on hover;
   filer paints them ``--dca-primary``, which after section 1 would paint every row in the primary colour. */
#result_list .column-name a {
    color: var(--color-font-important-light) !important;
    font-weight: 500 !important;
}

#result_list .column-name a:hover {
    color: var(--color-primary-600) !important;
}

/* The "unfiled" pseudo-row and the drop-target highlight both paint themselves a flat grey slab.
   Unfold's equivalent (a hovered row) is a much lighter tint. */
#result_list tbody tr.unfiled td {
    background-color: var(--color-base-50) !important;
    padding: 8px 12px !important;
}

/* A ticked row. Django's admin paints ``tr.selected`` from ``--selected-row``; Unfold's changelist
   uses its lightest primary tint, and nothing painted it here at all — the counter changed, the row
   did not. */
.filebrowser #result_list tbody tr.selected td {
    background-color: var(--color-primary-50) !important;
}

#result_list tbody tr:hover td {
    background-color: var(--color-base-50) !important;
}

/* Row action buttons (edit, delete). Filer sizes them 17px/33px inside a 2px-6px-8px box, which
   makes the column taller than the row's text and pushes the icons off-centre. */
#result_list .column-action .action-button {
    border-radius: 6px !important;
    margin: 0 2px !important;
    padding: 4px 6px !important;
}

#result_list .column-action .action-button span {
    font-size: 16px !important;
    line-height: 20px !important;
}

/* --------------------------------------------------------------------------- the toolbar */

/*
 * Filer gives the folder-creation, upload and search-toggle controls one class, ``.navigator-
 * button``, and paints all three as the default button. Unfold's changelist puts one filled accent
 * button on the page and renders the rest as neutral outlines, so the hierarchy is restored here:
 * upload — the reason an editor opens this screen — keeps the accent, the others step back.
 */

.filebrowser .navigator-button,
.filebrowser .navigator-button:link,
.filebrowser .navigator-button:visited {
    border-radius: 6px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    padding: 8px 12px !important;
}

/* Neutral by default: white face, Unfold's hairline border, body-coloured label. */
.filebrowser .navigator-button,
.filebrowser .navigator-button:link,
.filebrowser .navigator-button:visited,
.filebrowser .navigator-button:hover,
.filebrowser .navigator-button:link:hover {
    background-color: #fff !important;
    border-color: var(--color-base-200) !important;
    color: var(--color-font-default-light) !important;
}

.filebrowser .navigator-button:hover,
.filebrowser .navigator-button:link:hover {
    color: var(--color-primary-600) !important;
}

/* The one accent action. */
.filebrowser .navigator-button.navigator-button-upload,
.filebrowser .navigator-button.navigator-button-upload:link,
.filebrowser .navigator-button.navigator-button-upload:visited,
.filebrowser .navigator-button.navigator-button-upload:hover {
    background-color: var(--color-primary-600) !important;
    border-color: var(--color-primary-600) !important;
    color: #fff !important;
}

/*
 * …except in the root listing, where files cannot be stored. Filer renders a *second*, deliberately
 * disabled upload button there, wrapped in a tooltip that reads "You have to select a folder
 * first", and dims it with ``filter: brightness(0.6)``.
 *
 * That filter is filer's whole disabled treatment, and it assumes the button is already muted.
 * Multiplied into the accent fill above it produces a heavy, saturated navy — a colour that
 * appears nowhere else in the admin, and which reads as "a dark button" rather than "a button you
 * cannot press". Unfold mutes a dead control instead of darkening it, so the fill is dropped for
 * a neutral one and the filter with it.
 *
 * Matched on the attribute filer itself sets, so the enabled button inside a folder — same class,
 * no attribute — keeps the accent.
 */
.filebrowser .navigator-button.navigator-button-upload[disabled],
.filebrowser .navigator-button.navigator-button-upload[disabled]:link,
.filebrowser .navigator-button.navigator-button-upload[disabled]:visited,
.filebrowser .navigator-button.navigator-button-upload[disabled]:hover,
.filebrowser .navigator-button.navigator-button-upload[disabled]:focus {
    background-color: var(--color-base-100) !important;
    border-color: var(--color-base-200) !important;
    color: var(--color-base-400) !important;
    cursor: not-allowed;
    filter: none !important;
}

/*
 * The search box. Filer builds it from three parts — a text field with a caret that opens the
 * "limit to this folder" option, and a magnifier button — laid out with floats inside a fixed
 * 245px cell: the field's wrapper is ``calc(100% - 43px)`` wide, yet the field itself carries
 * ``min-width: 200px !important`` plus 45px of padding, so it is wider than its wrapper and runs
 * under the button. Chromium happens to hide it; Firefox draws the magnifier over the field's
 * corner. The three parts become one flex row that shares the width, on Unfold's input metrics:
 * 38px tall, white, hairline border, 6px radius, 14px type.
 *
 * ``.filebrowser .filter-files-container …`` outranks filer's two-class chains, and
 * ``!important`` is used where filer's own declaration carries it.
 */
/* Width stays filer's 245px: filer's JS measures the toolbar and truncates the folder name in the
   breadcrumb as soon as the row is a little wider. */
.filebrowser .filter-files-container {
    margin-top: 0 !important;
}

.filebrowser .filter-files-container .filter-filers-container-inner {
    align-items: center;
    display: flex;
    gap: 4px;
}

/* The field's wrapper takes the room; the caret stays anchored inside its right edge. */
.filebrowser .filter-files-container .filter-search-wrapper {
    flex: 1 1 auto;
    float: none !important;
    margin: 0 !important;
    min-width: 0;
    position: relative;
    width: auto !important;
}

.filebrowser .filter-files-container .filter-files-field {
    background-color: #fff !important;
    border: 1px solid var(--color-base-200) !important;
    border-radius: 6px !important;
    color: var(--color-font-default-light) !important;
    display: block;
    font-size: 14px !important;
    height: 38px !important;
    line-height: 36px !important;
    min-width: 0 !important;
    padding: 0 36px 0 12px !important;
    width: 100% !important;
}

.filebrowser .filter-files-container .filter-files-field::placeholder {
    color: var(--color-base-400);
}

.filebrowser .filter-files-container .filter-files-field:focus {
    outline: 2px solid var(--color-primary-600);
    outline-offset: -2px;
}

/* The caret sits inside the field's right edge, as Unfold draws the arrow of its selects. */
.filebrowser .filter-files-container .filter-search-wrapper .filer-dropdown-container span {
    color: var(--color-base-400) !important;
    height: 38px !important;
    line-height: 38px !important;
}

/* The magnifier comes first in filer's markup and was floated to the end; ``order`` keeps it
   there. */
.filebrowser .filter-files-container .filter-files-button {
    flex: 0 0 38px;
    float: none !important;
    height: 38px !important;
    order: 2;
    padding: 0 !important;
    width: 38px !important;
}

/* Filer nudges the glyph with ``left: 2px`` and trails it with a 3px margin meant for a label that
   this button does not have; both pull it off the centre of the square. */
.filebrowser .filter-files-container .filter-files-button .icon {
    left: 0;
    line-height: 36px;
    margin-right: 0;
}

/* Every toolbar button on the same 38px line as the search field. The magnifier is left out: it
   sits in this toolbar too, and the vertical padding here would undo its ``padding: 0`` above —
   the two selectors tie on specificity and this one comes later — leaving a 20px box for the
   icon's 36px line and the glyph 8px below the centre. */
.filebrowser .navigator-top-nav .navigator-button:not(.filter-files-button) {
    height: 38px !important;
    line-height: 20px !important;
    padding-top: 8px !important;
    padding-bottom: 8px !important;
}

/* The clipboard/copy/cut/more icons between the filter and the buttons. Filer leaves them at
   Django's icon metrics, which renders them noticeably larger than Unfold's own toolbar icons. */
.filebrowser .navigator-top-nav .toolbar-button span,
.filebrowser .navigator-top-nav .filer-dropdown-trigger span {
    font-size: 18px !important;
}

/* ------------------------------------------------------------------- surrounding chrome */

/* Filer boxes the listing in a hard shadow (``#container #content``) inherited from Django's
   admin, where content sits on a grey page. Unfold's content area is already white and separated
   by its own header border, so the shadow only draws a second, competing edge. */
.filebrowser #container #content {
    box-shadow: none !important;
}

/* Filer indents the listing by a percentage of the viewport, which no longer lines up with
   Unfold's header and sidebar once the page is full-width (see unfold_widths.css). */
.filebrowser #container .breadcrumbs + #content,
.filebrowser #container .breadcrumbs + .messagelist + #content {
    margin-left: 0 !important;
}

/* The paginator/selection footer keeps Django's 12px grey; Unfold's is 14px on the same
   subtle colour as the rest of its secondary text. */
.filebrowser .nav-pages,
.filebrowser .nav-pages span {
    font-size: 14px !important;
}

/* ============================================================ 4. the action confirmation pages */

/*
 * Copy, move, rename, resize and delete each stop at a confirmation page rendered from filer's own
 * templates: plain ``<p>``, ``<ul>`` and ``<form>`` markup straight into ``#content``, with Django's
 * ``forms.css`` linked for its ``.submit-row`` — the grey slab with an unstyled "KOPÍROVAT" in it.
 * Unfold styles none of this, since its own pages are built from utility classes.
 *
 * There is no body class or wrapper to hang on, so the pages are recognised by the one thing they
 * all share: a form posting ``post=yes`` back to the browser. The fields, buttons and lists take
 * Unfold's shapes; the delete page's confirm button is red, as Unfold's own delete pages are.
 */

/* Intro line and the list of affected files. */
#content:has(> form input[name="post"][value="yes"]) > p {
    font-size: 0.875rem;
    margin: 0 0 12px;
}

#content:has(> form input[name="post"][value="yes"]) > ul {
    background: #fff;
    border: 1px solid var(--color-base-200);
    border-radius: 6px;
    font-size: 0.875rem;
    list-style: none;
    margin: 0 0 20px;
    max-width: 42rem;
    padding: 4px 16px;
}

#content:has(> form input[name="post"][value="yes"]) > ul:empty {
    display: none;
}

#content:has(> form input[name="post"][value="yes"]) > ul li {
    padding: 8px 0;
}

#content:has(> form input[name="post"][value="yes"]) > ul li + li {
    border-top: 1px solid var(--color-base-100);
}

#content:has(> form input[name="post"][value="yes"]) a:not(.button):not(.navigator-button) {
    color: var(--color-primary-600);
    font-weight: 500;
}

/* Field rows — a paragraph holding a label — stack label over control; prose paragraphs stay
   prose. */
#content > form:has(input[name="post"][value="yes"]) p {
    font-size: 0.875rem;
    margin: 0 0 16px;
    max-width: 42rem;
}

#content > form:has(input[name="post"][value="yes"]) p:has(> label) {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

#content > form:has(input[name="post"][value="yes"]) label {
    color: var(--color-font-important-light);
    font-weight: 600;
}

#content > form:has(input[name="post"][value="yes"]) select,
#content > form:has(input[name="post"][value="yes"]) input[type="text"] {
    background: #fff;
    border: 1px solid var(--color-base-200);
    border-radius: 6px;
    box-shadow: 0 1px 2px rgb(0 0 0 / 0.05);
    box-sizing: border-box;
    color: var(--color-font-default-light);
    font-size: 0.875rem;
    height: 38px;
    padding: 0 12px;
    width: 100%;
}

#content > form:has(input[name="post"][value="yes"]) select:focus,
#content > form:has(input[name="post"][value="yes"]) input[type="text"]:focus {
    outline: 2px solid var(--color-primary-600);
    outline-offset: -2px;
}

#content > form:has(input[name="post"][value="yes"]) .helptext,
#content > form:has(input[name="post"][value="yes"]) .help {
    color: var(--color-font-subtle-light);
    font-size: 0.75rem;
    line-height: 1.6;
    margin: 0 0 16px;
}

#content > form:has(input[name="post"][value="yes"]) .help dt {
    font-weight: 600;
    margin-top: 6px;
}

#content > form:has(input[name="post"][value="yes"]) code {
    background: var(--color-base-100);
    border-radius: 4px;
    padding: 1px 4px;
}

/* The button row — Django's ``.submit-row`` on copy, move and resize, a bare ``<div>`` on delete
   and a ``<p>`` on rename. Django's grey slab becomes a plain right-aligned line for all three. */
#content > form:has(input[name="post"][value="yes"]) .submit-row,
#content > form:has(input[name="post"][value="yes"]) div:has(> input[type="submit"]),
#content > form:has(input[name="post"][value="yes"]) p:has(> input[type="submit"]) {
    align-items: center;
    background: transparent;
    border: 0;
    border-top: 1px solid var(--color-base-200);
    border-radius: 0;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin: 20px 0 0;
    max-width: 42rem;
    overflow: visible;
    padding: 16px 0 0;
}

/* Buttons. The confirm is the one filled button; the cancel is the neutral outline used everywhere
   else in the admin. ``a.navigator-button`` is filer's greyed-out stand-in shown while no valid
   destination is picked. */
#content > form:has(input[name="post"][value="yes"]) input[type="submit"],
#content > form:has(input[name="post"][value="yes"]) a.button,
#content > form:has(input[name="post"][value="yes"]) .submit-row a.navigator-button {
    align-items: center;
    border: 1px solid transparent;
    border-radius: 6px;
    box-sizing: border-box;
    cursor: pointer;
    display: inline-flex;
    font-size: 0.875rem;
    font-weight: 500;
    height: 38px;
    line-height: 1;
    padding: 0 12px;
    text-decoration: none;
    text-transform: none;
}

#content > form:has(input[name="post"][value="yes"]) input[type="submit"] {
    background: var(--color-primary-600);
    color: #fff;
}

#content > form:has(input[name="post"][value="yes"]) input[type="submit"]:hover {
    background: var(--color-primary-700);
}

#content > form:has(input[name="action"][value="delete_files_or_folders"]) input[type="submit"] {
    background: var(--color-red-600);
}

#content > form:has(input[name="action"][value="delete_files_or_folders"]) input[type="submit"]:hover {
    background: var(--color-red-700);
}

#content > form:has(input[name="post"][value="yes"]) a.button {
    background: #fff;
    border-color: var(--color-base-200);
    color: var(--color-font-default-light) !important;
    font-weight: 500;
}

#content > form:has(input[name="post"][value="yes"]) a.button:hover {
    background: var(--color-base-50);
    color: var(--color-font-important-light) !important;
}

#content > form:has(input[name="post"][value="yes"]) .submit-row a.navigator-button {
    background: var(--color-base-100) !important;
    border-color: var(--color-base-200) !important;
    color: var(--color-base-400) !important;
    cursor: not-allowed;
}
