/* The panel's look, mockup 015 B "Fioletowa belka": a purple band carries each page's title, soft
   round white cards lift over it, pill buttons and filled fields. Only the look changes.

   Linked in Pages/_Layout.cshtml after site.css, the other global sheets and the component styles
   bundle, so a rule here wins over a scoped rule of the same specificity. It is a plain stylesheet
   rather than scoped .razor.css: a scoped stylesheet of a new component reaches the bundle only on a
   full rebuild.

   Every rule is scoped to "main", the content area MainLayout renders, or to the sign-in pages'
   .login-panel-container. The /mockups page renders outside both, so the drawings there that reuse
   the panel's classes (save-button, other-top-row, bolder) keep the look they were drawn in.

   The dashboard's information tiles (Shared/Dashboard/DashboardTile.razor, class .dashboard-tile) take
   the look of mockup 016 B, in the "Dashboard tiles" section near the end.

   The side menu (side-menu.css) and the toasts are not restyled here. */

:root {
    --vn-purple: #5A2E8E;
    --vn-indigo: #432F8D;
    --vn-band: linear-gradient(100deg, #5A2E8E 0%, #432F8D 70%);
    --vn-page: #F3F1F8;
    --vn-text: #211C33;
    --vn-label: #6F6883;
    --vn-head: #5A4F75;
    --vn-soft: #F1ECF8;
    --vn-soft-hover: #E6DDF3;
    --vn-field: #F3F1F8;
    --vn-ring: #7A4DB0;
    --vn-focus: #E46BE0;
    --vn-card-shadow: 0 8px 24px rgba(67, 47, 141, .08);
    --vn-divider: #F0EDF6;
    --vn-ok: #17684F;
    --vn-warn: #A56B00;
    --vn-bad: #B3124B;
    --vn-bad-soft: #FDECF2;
    --vn-bad-soft-hover: #FAD9E5;
}

/* ─── Page ─────────────────────────────────────────────────────────────────────────────────────── */

/* MainLayout sets the old background inline on <main>; the page behind it gets the same colour so a
   short page does not end in white. */
body { background: var(--vn-page); }
main[style] { background: var(--vn-page) !important; color: var(--vn-text); }

main a, main .btn-link { color: var(--vn-purple); }
main .add-filter { color: var(--vn-purple); }

/* ─── Page top row: the purple band ────────────────────────────────────────────────────────────── */

main .other-top-row {
    height: auto;
    min-height: 88px;
    padding-top: 12px;
    padding-bottom: 12px;
    background: var(--vn-band);
    box-shadow: none;
    color: #fff;
    flex-wrap: wrap;
    row-gap: 10px;
}

/* The title, the count line above it and a detail page's subtitle line under it. Some top rows hold
   their dialog's markup; a dialog keeps the page's dark text, hence :not(.modal *). */
main .other-top-row .font-20:not(.modal *) { font-size: 26px !important; font-weight: 800; letter-spacing: -.015em; color: #fff; }
main .other-top-row .font-10:not(.modal *) { font-size: 12px; font-weight: 500; color: rgba(255, 255, 255, .7); }
main .other-top-row .font-12:not(.modal *) { color: rgba(255, 255, 255, .85); }
main .other-top-row .color-gray:not(.modal *) { color: rgba(255, 255, 255, .7); }
main .other-top-row .modal { color: var(--vn-text); }
/* A few top rows pin these lines to the old text heights inline; at the new size they would overlap. */
main .other-top-row :is(.font-10, .font-12, .font-20)[style*="height"] { height: auto !important; }

/* The back arrow is drawn black. */
main .other-top-row .back-icon-container svg path { fill: #fff; }

/* Action icons: round translucent buttons. The scoped first-/second-/third-icon colours lose to the
   doubled class. */
main .other-top-row .nav-top-row-icon.nav-top-row-icon {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .3);
    background: rgba(255, 255, 255, .12);
    box-shadow: none;
    transition: background .15s;
}
main .other-top-row .nav-top-row-icon.nav-top-row-icon:hover { background: rgba(255, 255, 255, .22); box-shadow: none; }
main .other-top-row .nav-top-row-icon svg path { fill: #fff; }
main .other-top-row .nav-top-row-icon:focus-visible { outline: 2px solid var(--vn-focus); outline-offset: 2px; }

/* A page's main action in the band ("Edytuj …", "Kreator szablonów"): a white pill with purple text. */
main .other-top-row .edit-button.edit-button,
main .other-top-row .edit-company-button.edit-company-button,
main .other-top-row .template-wizard-button.template-wizard-button,
main .other-top-row .animation-wizard-button.animation-wizard-button {
    height: 40px;
    padding: 0 20px !important;
    border-radius: 999px;
    background: #fff;
    color: var(--vn-indigo);
    font-size: 14px !important;
    font-weight: 700;
    box-shadow: none;
}
main .other-top-row .edit-button.edit-button:hover,
main .other-top-row .edit-company-button.edit-company-button:hover,
main .other-top-row .template-wizard-button.template-wizard-button:hover,
main .other-top-row .animation-wizard-button.animation-wizard-button:hover { background: var(--vn-soft); color: var(--vn-indigo) !important; box-shadow: none; }
main .other-top-row .template-wizard-button, main .other-top-row .animation-wizard-button { color: var(--vn-indigo) !important; cursor: pointer; }
main .other-top-row .edit-button svg path,
main .other-top-row .edit-company-button svg path,
main .other-top-row .template-wizard-button svg path,
main .other-top-row .animation-wizard-button svg path { fill: var(--vn-indigo); }
main .other-top-row .edit-button.disabled { background: rgba(255, 255, 255, .45); color: var(--vn-indigo); }

/* The account page's two buttons and its state chip, on the band. */
main .other-top-row .account-danger-button,
main .other-top-row .account-neutral-button { height: 40px; border: 0; border-radius: 999px; padding: 0 18px; font-size: 14px; font-weight: 700; }
main .other-top-row .account-danger-button { background: var(--vn-bad-soft); color: var(--vn-bad); }
main .other-top-row .account-danger-button:hover { background: var(--vn-bad-soft-hover); color: var(--vn-bad); }
main .other-top-row .account-neutral-button { background: #fff; color: var(--vn-indigo); }
main .other-top-row .account-neutral-button:hover { background: var(--vn-soft); color: var(--vn-indigo); }
main .other-top-row .account-state-badge.account-state-badge { padding: 2px 10px; border-radius: 999px; }
main .other-top-row .account-state-badge.account-state-badge::before { display: none; }

/* The trading calendar's year stepper. */
main .other-top-row .tc-year { background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .3); border-radius: 999px; }
main .other-top-row .tc-year span { color: #fff; }
main .other-top-row .tc-year button { color: #fff; border-radius: 999px; }
main .other-top-row .tc-year button:hover { color: #fff; background: rgba(255, 255, 255, .22); }

/* The overlap: the white card under the band lifts 22 px over it, only where that next element is a
   white card or a wrapper whose first child is one. Elsewhere (the dashboard, whose tiles must not
   move onto the band, and the structure pages, whose grey tabs would sit on purple) the band has no
   overlap. The band grows by the same 22 px so its visible part keeps its height. */
main .other-top-row:has(+ .content-card,
                   + .panel,
                   + * > .content-card:first-child,
                   + .mx-4.my-3 > .panel:first-child,
                   + .mx-4.my-3 > .my-2:first-child + .panel,
                   + .mx-4.my-3 > .tc-row:first-child) {
    padding-bottom: 34px;
}
main .other-top-row + .content-card,
main .other-top-row + .panel,
main .other-top-row + * > .content-card:first-child,
main .other-top-row + .mx-4.my-3:has(> .panel:first-child),
main .other-top-row + .mx-4.my-3:has(> .my-2:first-child + .panel),
main .other-top-row + .mx-4.my-3:has(> .tc-row:first-child) {
    margin-top: -22px !important;
}
/* The devices page starts with an empty spacer before its first panel. */
main .other-top-row + .mx-4.my-3 > .my-2:first-child { margin: 0 !important; }

/* ─── Cards and panels ─────────────────────────────────────────────────────────────────────────── */

main .panel,
main .content-card,
main .visonet-card,
main .card-shadow,
main .tc-card {
    background: #fff;
    border: 0;
    border-radius: 14px;
    box-shadow: var(--vn-card-shadow);
}
main .panel.p-3 { padding: 22px !important; }

/* The structure pages' tabs join the card under them. */
main .active-tab { border-radius: 12px 12px 0 0; }
main .d-flex:has(> .active-tab) + .panel,
main .d-flex:has(> .active-tab) ~ .panel { border-top-left-radius: 0; }

/* Section titles: the list panel's link title, the accordion title and the pages' own titles. */
main .panel > .nav-link.color-gray,
main .color-gray.font-16,
main .accordion-label.accordion-label {
    font-size: 16px !important;
    font-weight: 700;
    color: var(--vn-indigo);
    letter-spacing: 0;
}
main .panel > .nav-link.color-gray:hover { color: var(--vn-purple); }
main .color-gray { color: var(--vn-label); }
main .collapse-label.collapse-label { color: var(--vn-purple); font-size: 13px; font-weight: 600; }

/* ─── Typography ───────────────────────────────────────────────────────────────────────────────── */

main .bolder { font-weight: 800; }

/* A label over its value (details sections: "ID urządzenia" / 1). */
main div.font-12:not(.bolder):has(+ div.font-12.bolder) { color: var(--vn-label); font-size: 12px; }
main div.font-12:not(.bolder) + div.font-12.bolder { font-size: 14px !important; font-weight: 700; color: var(--vn-text); }
main .custom-label.bolder { font-weight: 700; }

/* ─── Buttons ──────────────────────────────────────────────────────────────────────────────────── */

/* Primary: the main action of a form or dialog. */
main .viso-button,
main .save-button,
main .btn.save-button,
main .edit-button.edit-button,
main .custom-upload-button.custom-upload-button,
main .download-media-button.download-media-button,
main .report-button.report-button,
main .tc-button,
main .small-button.small-button {
    width: auto;
    min-width: 0;
    height: 42px;
    padding: 0 22px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(100deg, #5A2E8E, #432F8D);
    color: #fff;
    font-size: 14px !important;
    font-weight: 700;
    letter-spacing: 0;
    box-shadow: 0 6px 16px rgba(67, 47, 141, .3);
    transition: filter .15s;
}
main .viso-button:hover,
main .save-button:hover,
main .edit-button.edit-button:hover,
main .custom-upload-button.custom-upload-button:hover,
main .download-media-button.download-media-button:hover,
main .report-button.report-button:hover,
main .tc-button:hover,
main .small-button.small-button:hover { color: #fff !important; filter: brightness(1.08); box-shadow: 0 6px 16px rgba(67, 47, 141, .3); }
main .small-button.small-button { height: 30px; padding: 0 14px; }
main .report-button.report-button, main .report-button-disabled { width: 250px; border-radius: 999px; }
main .edit-button.disabled { background: #B7B1C6; box-shadow: none; filter: none; }
main .viso-button-small { width: 42px; padding: 0; }

/* Secondary. */
main .cancel-button,
main .btn.cancel-button {
    width: auto;
    min-width: 0;
    height: 42px;
    padding: 0 22px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--vn-indigo);
    font-size: 14px !important;
    font-weight: 700;
    letter-spacing: 0;
    box-shadow: none;
}
main .cancel-button:hover, main .btn.cancel-button:hover { background: var(--vn-soft); color: var(--vn-indigo); box-shadow: none; }

/* Danger: discarding changes, deactivation, deleting, archiving. */
main .btn-danger.viso-button,
main .btn.btn-danger,
main .danger-outline-button.danger-outline-button,
main .account-danger-button {
    height: 42px;
    padding: 0 22px;
    border: 0;
    border-radius: 999px;
    background: var(--vn-bad-soft);
    color: var(--vn-bad);
    font-size: 14px !important;
    font-weight: 700;
    box-shadow: none;
    filter: none;
}
main .btn-danger.viso-button:hover,
main .btn.btn-danger:hover,
main .danger-outline-button.danger-outline-button:hover,
main .account-danger-button:hover { background: var(--vn-bad-soft-hover); color: var(--vn-bad) !important; }
main .btn-danger.viso-button-small { width: 42px; padding: 0; }
main .account-neutral-button { height: 42px; border: 0; border-radius: 999px; padding: 0 22px; background: var(--vn-soft); color: var(--vn-indigo); font-size: 14px; font-weight: 700; }
main .account-neutral-button:hover { background: var(--vn-soft-hover); color: var(--vn-indigo); }

/* "Pokaż więcej wyników" and the CSV download: soft purple pills. */
main .show-more-button.show-more-button,
main .btn.show-more-button.show-more-button,
main .export-button {
    height: 36px;
    padding: 0 16px;
    border: 0;
    border-radius: 999px;
    background: var(--vn-soft);
    color: var(--vn-indigo);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
main .show-more-button.show-more-button:hover,
main .export-button:hover:not([disabled]) { background: var(--vn-soft-hover); color: var(--vn-indigo); }

/* Keyboard focus on anything that acts as a button. */
main .viso-button:focus-visible,
main .save-button:focus-visible,
main .cancel-button:focus-visible,
main .btn:focus-visible,
main .show-more-button.show-more-button:focus-visible,
main .export-button:focus-visible,
main .account-danger-button:focus-visible,
main .account-neutral-button:focus-visible,
main button:focus-visible {
    outline: 2px solid var(--vn-focus);
    outline-offset: 2px;
    box-shadow: none;
}
main .btn:focus { box-shadow: none; }

/* ─── Modals ───────────────────────────────────────────────────────────────────────────────────── */

main .modal-content { border: 0; border-radius: 16px; box-shadow: 0 24px 60px rgba(33, 28, 51, .22); color: var(--vn-text); }
main .modal-header { border-bottom: 1px solid var(--vn-divider); padding: 18px 24px; border-radius: 16px 16px 0 0; }
main .modal-title { font-size: 18px; font-weight: 700; color: var(--vn-text); }
main .modal-body { padding: 20px 24px; }
main .modal-footer { border-top: 0; padding: 4px 24px 20px; gap: 10px; }
main .modal-footer > * { margin: 0; }

/* ─── Fields ───────────────────────────────────────────────────────────────────────────────────── */

main input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=color]):not([type=button]):not([type=submit]),
main textarea,
main select,
main .form-control,
main .form-select,
main .custom-dropdown-button,
.login-panel-container .form-control,
.login-panel-container input:not([type=checkbox]) {
    border: 0;
    border-radius: 12px;
    background-color: var(--vn-field);
    color: var(--vn-text);
    box-shadow: none;
}
main input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=color]):not([type=button]):not([type=submit]),
main select,
main .form-select,
main .custom-dropdown-button { height: 42px; }
main input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=color]):not([type=button]):not([type=submit]),
main textarea { font-size: 14px !important; }
main input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=color]):focus,
main textarea:focus,
main select:focus,
main .form-control:focus,
main .form-select:focus,
.login-panel-container .form-control:focus {
    outline: 0;
    background-color: #fff;
    box-shadow: 0 0 0 2px var(--vn-ring);
}
main input::placeholder, main textarea::placeholder, .login-panel-container input::placeholder { color: #8C85A0; }
main .custom-dropdown-button:focus, main .custom-dropdown-button.show { background-color: #fff; box-shadow: 0 0 0 2px var(--vn-ring); }
main .custom-dropdown-menu { border: 0; border-radius: 12px; filter: none; box-shadow: 0 12px 32px rgba(33, 28, 51, .16); overflow: hidden auto; }
main .dropdown-item { border-bottom: 1px solid var(--vn-divider); }
main .dropdown-item:hover { background-color: var(--vn-soft) !important; }

/* The filter panel under "Pokaż filtry" (FilterWindow.razor, inline aliceblue): a soft lilac box
   whose fields are white, its "Zastosuj" the primary pill and "Wyczyść" the secondary one. */
main form[style*="aliceblue"] { background-color: #F7F5FB !important; border-radius: 12px; }
main form[style*="aliceblue"] input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=color]):not([type=button]):not([type=submit]),
main form[style*="aliceblue"] select,
main form[style*="aliceblue"] .custom-dropdown-button { background-color: #fff; }
main .btn.add-filter-button {
    width: auto; height: 38px; padding: 0 20px !important; border: 0; border-radius: 999px;
    background: linear-gradient(100deg, #5A2E8E, #432F8D); color: #fff; font-size: 14px; font-weight: 700; letter-spacing: 0;
    box-shadow: 0 6px 16px rgba(67, 47, 141, .3);
}
main .btn.add-filter-button:hover { color: #fff; filter: brightness(1.08); }
main .btn.add-filter-button[type=button] { background: #fff; color: var(--vn-indigo); box-shadow: none; }
main .btn.add-filter-button[type=button]:hover { background: var(--vn-soft); color: var(--vn-indigo); filter: none; }

/* Validation outlines stay, on the rounded shape. */
main .invalid { outline: 0; box-shadow: 0 0 0 2px #DA0552 !important; }

/* The list search field and its mode switch (search-box.css). */
main .search-field { height: 42px; border: 0; border-radius: 999px; background: var(--vn-field); padding: 0 18px; }
main .search-field:focus-within { background: #fff; box-shadow: 0 0 0 2px var(--vn-ring); }
main .search-lens { color: var(--vn-purple); }
main .search-modes { height: 42px; border-radius: 999px; background: var(--vn-field); }
main .search-mode { border-radius: 999px; }
main .search-mode.is-on { color: var(--vn-indigo); box-shadow: 0 1px 4px rgba(67, 47, 141, .18); }

/* The trading calendar's form fields. */
main .tc-fields input, main .tc-fields select { height: 42px; border: 0; border-radius: 12px; background: var(--vn-field); }
main .tc-fields input:focus, main .tc-fields select:focus { background: #fff; box-shadow: 0 0 0 2px var(--vn-ring); }

/* Checkboxes and switches in purple. */
main .form-check-input:checked { background-color: var(--vn-purple); border-color: var(--vn-purple); }
main .form-check-input:focus { border-color: var(--vn-ring); box-shadow: 0 0 0 .2rem rgba(122, 77, 176, .25); }
main input[type=checkbox]:not(.form-check-input), main input[type=radio]:not(.form-check-input) { accent-color: var(--vn-purple); }

/* ─── Tables ───────────────────────────────────────────────────────────────────────────────────── */

main .table { border-collapse: separate; border-spacing: 0; color: var(--vn-text); }
main .table > :not(:first-child) { border-top: 0; }
main .table > thead > tr { height: 40px; }
main .table > thead > tr > th {
    background: #F3EFF9;
    color: var(--vn-head);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0;
    border-bottom: 0;
    padding: 10px 8px;
    vertical-align: middle;
}
main .table > thead > tr > th:first-child { border-radius: 10px 0 0 10px; }
main .table > thead > tr > th:last-child { border-radius: 0 10px 10px 0; }
main .table > tbody > tr { height: 46px; font-size: 13px; }
main .table > tbody > tr.font-12 { font-size: 13px !important; }
/* Cells keep Bootstrap's 8 px sides: the wide device lists already fill the card at 1440 px. */
main .table > tbody > tr > td { border-bottom: 1px solid var(--vn-divider); }
main .table > tbody > tr:hover > td { background-color: #FAF8FD; }

/* ─── Status, counts and filter chips ──────────────────────────────────────────────────────────── */

/* The status in list rows: a coloured dot and the word in the same colour. The 17 px circle is drawn
   with an inline style, which only an !important rule reaches. */
main .circle[style*="#55BD03"],
main .circle[style*="#DA0552"] { width: 8px !important; height: 8px !important; flex: 0 0 8px; }
main .circle[style*="#55BD03"] { background-color: var(--vn-ok) !important; }
main .circle[style*="#DA0552"] { background-color: var(--vn-bad) !important; }
main .circle[style*="#55BD03"] + div { color: var(--vn-ok); font-weight: 600; }
main .circle[style*="#DA0552"] + div { color: var(--vn-bad); font-weight: 600; }

/* The users list's "Stan". */
main .account-state-badge { background: transparent !important; padding: 0; border-radius: 0; font-size: 13px; font-weight: 600; }
main .account-state-badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: 0 0 8px; }
main .account-state-badge.is-active { color: var(--vn-ok); }
main .account-state-badge.is-inactive { color: var(--vn-bad); }
main .account-state-badge svg { display: none; }

/* Counts beside a tab or a title: a soft purple pill (they carry a number, not a state). */
main .visonet-badge,
main .badge.custom-badge {
    background: var(--vn-soft);
    color: var(--vn-indigo);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
}
main .visonet-badge { background: #E6DDF3; }
main .active-tab .visonet-badge { background: var(--vn-indigo); color: #fff; }

/* ─── Small responsive fixes ───────────────────────────────────────────────────────────────────── */

@media (max-width: 640.98px) {
    main .other-top-row { padding-left: 16px !important; padding-right: 16px !important; }
    main .other-top-row .font-20:not(.modal *) { font-size: 22px !important; }
    /* The details grids keep their desktop columns on a phone; the larger values would run into
       each other there. */
    main div.font-12:not(.bolder) + div.font-12.bolder { font-size: 12px !important; }
}

main .show-more-button.show-more-button, main .export-button { white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
    main .other-top-row .nav-top-row-icon, main .viso-button, main .save-button, main .edit-button.edit-button { transition: none; }
}

/* ─── Dashboard tiles (mockup 016 B) ───────────────────────────────────────────────────────────── */

/* The four gradients of the band and the menu; each tile keeps the colour it had as its starting shade. */
main .dashboard-tile {
    position: relative;
    overflow: hidden;
    flex: 1;
    min-height: 170px;
    padding: 20px 24px;
    border-radius: 14px;
    color: #fff;
    /* A white rim and a deeper shadow (mockup 017 C), so the tiles stand apart from the purple band
       they overlap and from the side menu beside them. */
    border: 3px solid #fff;
    box-shadow: 0 12px 28px rgba(40, 20, 90, .3);
}
main .dashboard-tile.is-magenta { background: linear-gradient(135deg, #A33DA0, #91268F 55%, #6E1E7A); }
main .dashboard-tile.is-purple { background: linear-gradient(135deg, #7045A8, #5A2E8E 55%, #43236E); }
main .dashboard-tile.is-indigo { background: linear-gradient(135deg, #5A46A8, #432F8D 55%, #33236E); }
main .dashboard-tile.is-blue { background: linear-gradient(135deg, #4A56B0, #334194 55%, #26317A); }

/* The tile's own icon again, large and faint in the bottom-right corner. */
main .dashboard-tile-mark { position: absolute; right: -16px; bottom: -22px; opacity: .14; pointer-events: none; }
main .dashboard-tile-mark svg { width: 120px; height: 120px; }
main .dashboard-tile-icon { display: flex; margin-bottom: 12px; }
main .dashboard-tile-icon svg { width: 28px; height: 28px; }
main .dashboard-tile-value { position: relative; font-size: 34px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
main .dashboard-tile-title { position: relative; font-size: 15px; font-weight: 700; margin-top: 10px; }
main .dashboard-tile-description { position: relative; font-size: 12px; opacity: .82; margin-top: 4px; max-width: 80%; line-height: 1.35; }

/* No hover effect: only two of the four tiles lead somewhere, and one reacting while its neighbour
   does not looked arbitrary. A tile that leads somewhere keeps the pointer and a keyboard focus ring. */
main .dashboard-tile.is-link { cursor: pointer; }
main .dashboard-tile.is-link:focus-visible { outline: 2px solid #E46BE0; outline-offset: 3px; }

/* The four tiles as one 2 × 2 grid whose rows share one height, the tallest tile's, so a longer
   description ("Zaktualizowane urządzenia") makes every tile taller rather than one. */
main .dashboard-tiles {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 1fr;
    gap: 16px;
    margin: 16px 0 !important;
}
main .dashboard-tiles > div {
    display: flex;
    width: auto;
    max-width: none;
    margin: 0 !important;
    padding: 0 !important;
}

/* The dashboard lifts over the band like the other pages; its first row is the tiles. */
main .other-top-row:has(+ .mx-4.my-3 .dashboard-tiles) { padding-bottom: 34px; }
main .other-top-row + .mx-4.my-3:has(.dashboard-tiles) { margin-top: -22px !important; }


/* ─── Sign-in, password reset and password setting pages ───────────────────────────────────────── */

/* They keep their layout; the fields (above) and the button take the new look. */
.login-panel-container .login-button.login-button {
    border: 0;
    border-radius: 999px;
    background: linear-gradient(100deg, #5A2E8E, #432F8D);
    color: #fff;
    box-shadow: 0 6px 16px rgba(67, 47, 141, .3);
    letter-spacing: 0;
}
.login-panel-container .login-button.login-button:hover { color: #fff; filter: brightness(1.08); }
.login-panel-container .login-button.login-button:focus-visible { outline: 2px solid var(--vn-focus); outline-offset: 2px; box-shadow: none; }
.login-panel-container .form-check-input:checked { background-color: var(--vn-purple); border-color: var(--vn-purple); }
.login-panel-container .form-check-input:focus { border-color: var(--vn-ring); box-shadow: 0 0 0 .2rem rgba(122, 77, 176, .25); }
