/* ═══════════════════════════════════════════════════════════════
   Bundled Web Fonts — Cross-Platform (Windows / Android / iOS)
   ═══════════════════════════════════════════════════════════════
   All ten font families used by DialLog are bundled here as
   @font-face declarations so they render identically in the
   Blazor WASM browser, the MAUI Android BlazorWebView, and the
   MAUI iOS BlazorWebView — no OS font required.

   FILES REQUIRED in DialLog.RazorLib/wwwroot/fonts/:
     arial/          — Arial-Regular.woff2, Arial-Bold.woff2, Arial-Italic.woff2, Arial-BoldItalic.woff2
     verdana/        — Verdana-Regular.woff2, Verdana-Bold.woff2, Verdana-Italic.woff2, Verdana-BoldItalic.woff2
     tahoma/         — Tahoma-Regular.woff2, Tahoma-Bold.woff2
     open-sans/      — OpenSans-Regular.woff2, OpenSans-Bold.woff2, OpenSans-Italic.woff2, OpenSans-BoldItalic.woff2
     trebuchet-ms/   — TrebuchetMS-Regular.woff2, TrebuchetMS-Bold.woff2, TrebuchetMS-Italic.woff2, TrebuchetMS-BoldItalic.woff2
     georgia/        — Georgia-Regular.woff2, Georgia-Bold.woff2, Georgia-Italic.woff2, Georgia-BoldItalic.woff2
     times-new-roman/— TimesNewRoman-Regular.woff2, TimesNewRoman-Bold.woff2, TimesNewRoman-Italic.woff2, TimesNewRoman-BoldItalic.woff2
     book-antiqua/   — BookAntiqua-Regular.woff2, BookAntiqua-Bold.woff2, BookAntiqua-Italic.woff2, BookAntiqua-BoldItalic.woff2
     garamond/       — Garamond-Regular.woff2, Garamond-Bold.woff2, Garamond-Italic.woff2
     courier-new/    — CourierNew-Regular.woff2, CourierNew-Bold.woff2, CourierNew-Italic.woff2, CourierNew-BoldItalic.woff2

   HOW TO GET THE FILES:
     Arial, Verdana, Tahoma, Trebuchet MS, Georgia, Times New Roman,
     Book Antiqua, Garamond, Courier New are Microsoft/licensed fonts.
     Convert your locally-installed .ttf/.otf copies to .woff2 using
     https://cloudconvert.com/ttf-to-woff2 or the `woff2_compress` CLI tool.
     Open Sans is open-source — download .woff2 directly from fonts.google.com.

   IMPORTANT: The font-family name in each @font-face MUST match exactly
   what is in fonts.json "name" fields. The SortCategoryEditor looks up
   f.Fallback by matching f.Name to the stored FontFamily string in the DB.
   ═══════════════════════════════════════════════════════════════ */

/* ── Arial ────────────────────────────────────────────────────── */
@font-face {
    font-family: 'Arial';
    src: url('../fonts/arial/Arial-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Arial';
    src: url('../fonts/arial/Arial-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Arial';
    src: url('../fonts/arial/Arial-Italic.woff2') format('woff2');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: 'Arial';
    src: url('../fonts/arial/Arial-BoldItalic.woff2') format('woff2');
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}

/* ── Verdana ──────────────────────────────────────────────────── */
@font-face {
    font-family: 'Verdana';
    src: url('../fonts/verdana/Verdana-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Verdana';
    src: url('../fonts/verdana/Verdana-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Verdana';
    src: url('../fonts/verdana/Verdana-Italic.woff2') format('woff2');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: 'Verdana';
    src: url('../fonts/verdana/Verdana-BoldItalic.woff2') format('woff2');
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}

/* ── Tahoma ───────────────────────────────────────────────────── */
@font-face {
    font-family: 'Tahoma';
    src: url('../fonts/tahoma/Tahoma-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Tahoma';
    src: url('../fonts/tahoma/Tahoma-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ── Open Sans ────────────────────────────────────────────────── */
@font-face {
    font-family: 'Open Sans';
    src: url('../fonts/open-sans/OpenSans-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Open Sans';
    src: url('../fonts/open-sans/OpenSans-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Open Sans';
    src: url('../fonts/open-sans/OpenSans-Italic.woff2') format('woff2');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: 'Open Sans';
    src: url('../fonts/open-sans/OpenSans-BoldItalic.woff2') format('woff2');
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}

/* ── Trebuchet MS ─────────────────────────────────────────────── */
@font-face {
    font-family: 'Trebuchet MS';
    src: url('../fonts/trebuchet-ms/TrebuchetMS-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Trebuchet MS';
    src: url('../fonts/trebuchet-ms/TrebuchetMS-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Trebuchet MS';
    src: url('../fonts/trebuchet-ms/TrebuchetMS-Italic.woff2') format('woff2');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: 'Trebuchet MS';
    src: url('../fonts/trebuchet-ms/TrebuchetMS-BoldItalic.woff2') format('woff2');
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}

/* ── Georgia ──────────────────────────────────────────────────── */
@font-face {
    font-family: 'Georgia';
    src: url('../fonts/georgia/Georgia-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Georgia';
    src: url('../fonts/georgia/Georgia-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Georgia';
    src: url('../fonts/georgia/Georgia-Italic.woff2') format('woff2');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: 'Georgia';
    src: url('../fonts/georgia/Georgia-BoldItalic.woff2') format('woff2');
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}

/* ── Times New Roman ──────────────────────────────────────────── */
@font-face {
    font-family: 'Times New Roman';
    src: url('../fonts/times-new-roman/TimesNewRoman-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Times New Roman';
    src: url('../fonts/times-new-roman/TimesNewRoman-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Times New Roman';
    src: url('../fonts/times-new-roman/TimesNewRoman-Italic.woff2') format('woff2');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: 'Times New Roman';
    src: url('../fonts/times-new-roman/TimesNewRoman-BoldItalic.woff2') format('woff2');
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}

/* ── Book Antiqua ─────────────────────────────────────────────── */
@font-face {
    font-family: 'Book Antiqua';
    src: url('../fonts/book-antiqua/BookAntiqua-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Book Antiqua';
    src: url('../fonts/book-antiqua/BookAntiqua-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Book Antiqua';
    src: url('../fonts/book-antiqua/BookAntiqua-Italic.woff2') format('woff2');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: 'Book Antiqua';
    src: url('../fonts/book-antiqua/BookAntiqua-BoldItalic.woff2') format('woff2');
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}

/* ── Garamond ─────────────────────────────────────────────────── */
@font-face {
    font-family: 'Garamond';
    src: url('../fonts/garamond/Garamond-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Garamond';
    src: url('../fonts/garamond/Garamond-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Garamond';
    src: url('../fonts/garamond/Garamond-Italic.woff2') format('woff2');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

/* ── Courier New ──────────────────────────────────────────────── */
@font-face {
    font-family: 'Courier New';
    src: url('../fonts/courier-new/CourierNew-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Courier New';
    src: url('../fonts/courier-new/CourierNew-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Courier New';
    src: url('../fonts/courier-new/CourierNew-Italic.woff2') format('woff2');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: 'Courier New';
    src: url('../fonts/courier-new/CourierNew-BoldItalic.woff2') format('woff2');
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}

html, body {
    height: 100%;
    overflow: hidden;
    margin: 0;
    touch-action: pan-x pan-y;
}

/* ═══════════════════════════════════════════════════════════════
   Auth message box — centered modal dialog (all clients)
   Used by Authentication.razor, LoginPage.razor and MauiLoginPage.razor.
   Centered vertically + horizontally so it never sits in the MAUI
   status-bar / header region. The full-viewport box-shadow acts as a
   dimmed modal backdrop without needing a wrapper element.
   ═══════════════════════════════════════════════════════════════ */

.auth-toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    max-width: min(400px, calc(100vw - 48px));
    padding: 22px 26px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 0 0 100vmax rgba(0, 0, 0, 0.4),
                0 8px 32px rgba(0, 0, 0, 0.25);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    color: #323130;
    text-align: center;
    animation: auth-toast-in 0.2s ease-out;
}

.auth-toast--error {
    color: #c4314b;
    border: 1px solid #f3d6d8;
}

/* Stack the message above its action button so longer text wraps cleanly. */
.auth-toast--error,
.auth-toast--action {
    flex-direction: column;
    gap: 16px;
}

.auth-toast-btn {
    padding: 6px 18px;
    background: #0f6cbd;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    transition: background 0.15s;
    white-space: nowrap;
}

.auth-toast-btn:hover {
    background: #115ea3;
}

@keyframes auth-toast-in {
    from { opacity: 0; transform: translate(-50%, -50%) scale(0.97); }
    to   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

/* ═══════════════════════════════════════════════════════════════
   First-run no-connection dialog — modal overlay for initial setup
   Matches ConfirmDialog styling (confirm-overlay / confirm-panel).
   ═══════════════════════════════════════════════════════════════ */

.first-run-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    animation: firstRunFadeIn 0.15s ease-out;
}

.first-run-dialog {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    padding: 28px 32px;
    max-width: 400px;
    width: 90vw;
    text-align: center;
    animation: firstRunScaleIn 0.15s ease-out;
}

.first-run-icon {
    color: #d13438;
    margin-bottom: 16px;
    opacity: 0.8;
}

.first-run-title {
    margin: 0 0 14px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #323130;
}

.first-run-body {
    margin: 0 0 10px;
    font-size: 0.9rem;
    color: #444;
    line-height: 1.55;
}

.first-run-hint {
    margin: 0 0 22px;
    font-size: 0.825rem;
    color: #707070;
    line-height: 1.45;
}

.first-run-footer {
    display: flex;
    justify-content: center;
}

@keyframes firstRunFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes firstRunScaleIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

body {
    --body-font: "Segoe UI Variable", "Segoe UI", sans-serif;
    font-family: var(--body-font);
    font-size: 14px;
    line-height: 20px;
    overscroll-behavior-y: contain;
}

input, select, textarea {
    font-size: 16px !important;
}

.navmenu-icon {
    display: none;
}

#app {
    height: 100%;
    overflow: hidden;
}

.content {
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
    margin: 20px 0;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::before {
        content: "An error has occurred. ";
    }

code {
    color: #c02d76;
}

@media (max-width: 600px) {
    .header-gutters {
        margin: 0.5rem 3rem 0.5rem 1.5rem !important;
    }

    [dir="rtl"] .header-gutters {
        margin: 0.5rem 1.5rem 0.5rem 3rem !important;
    }

    .main {
        flex-direction: column !important;
        row-gap: 0 !important;
    }

    nav.sitenav {
        width: 100%;
        height: 100%;
    }

    #main-menu {
        width: 100% !important;
    }

        #main-menu > div:first-child:is(.expander) {
            display: none;
        }

    .navmenu {
        width: 100%;
    }

    #navmenu-toggle {
        appearance: none;
    }

        #navmenu-toggle ~ nav {
            display: none;
        }

        #navmenu-toggle:checked ~ nav {
            display: block;
        }

    .navmenu-icon {
        cursor: pointer;
        z-index: 10;
        display: block;
        position: absolute;
        top: 15px;
        left: unset;
        right: 20px;
        width: 20px;
        height: 20px;
        border: none;
    }

    [dir="rtl"] .navmenu-icon {
        left: 20px;
        right: unset;
    }
}

/* ═══════════════════════════════════════════════════════════════
   Desktop Grid — Column width rules
   ═══════════════════════════════════════════════════════════════ */

.col-archive {
    --col-min-px: 36;
}

.col-sort {
    --col-min-px: 48;
    white-space: nowrap;
}

.col-date {
    --col-min-px: 82;
    white-space: nowrap;
}

.col-comm {
    --col-min-px: 130;
}

.col-contact {
    --col-min-px: 140;
}

.col-by {
    --col-min-px: 64;
    white-space: nowrap;
}

.col-flex {
    --col-min-px: 80;
}

.sort1-abbrev {
    font-weight: 600;
    font-size: 13px;
    white-space: nowrap;
}

.col-resize-handle {
    position: absolute;
    top: 0;
    right: -2px;
    width: 5px;
    height: 100%;
    cursor: col-resize;
    z-index: 3;
    background: transparent;
    transition: background 0.15s;
}

    .col-resize-handle::after {
        content: '';
        position: absolute;
        top: 20%;
        bottom: 20%;
        left: 2px;
        width: 1px;
        background: #c8c8c8;
        border-radius: 1px;
        pointer-events: none;
        transition: background 0.15s;
    }

    .col-resize-handle:hover::after,
    .col-resize-handle:active::after {
        background: #0f6cbd;
    }

    .col-resize-handle:hover,
    .col-resize-handle:active {
        background: transparent;
    }

/* ── ItemDetailEditModal: Sort Category bar ────────────────────────────────── */

.editor-class-bar {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    width: 100% !important;
    overflow: visible !important;
}

.editor-class-cell {
    min-width: 0 !important;
    overflow: visible !important;
    box-sizing: border-box !important;
}

/* ── Loading progress (Blazor WASM download) ── */

.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}

    .loading-progress circle {
        fill: none;
        stroke: #e0e0e0;
        stroke-width: 0.6rem;
        transform-origin: 50% 50%;
        transform: rotate(-90deg);
    }

        .loading-progress circle:last-child {
            stroke: #1b6ec2;
            stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
            transition: stroke-dasharray 0.05s ease-in-out;
        }

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

    .loading-progress-text:after {
        content: var(--blazor-load-percentage-text, "Loading");
    }

/* ── Spinners (in-app, branded DialLog spinner) ───────────────────────────── */

.dl-spinner {
    display: inline-block;
    flex-shrink: 0;
    overflow: visible;
}

    .dl-spinner.spinner-lg {
        width: 8rem;
        height: 8rem;
    }

.dl-spinner-rotate {
    transform-origin: 50% 50%;
    transform-box: fill-box;
    animation: dl-spin 1.15s linear infinite;
}

.dl-spinner-center-icon {
    transform-origin: 50% 50%;
    transform-box: fill-box;
    animation: dl-center-breathe 1.8s ease-in-out infinite;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.14));
}

.dl-spinner-center-glow {
    fill: rgba(255, 255, 255, 0.75);
    animation: dl-center-glow 1.8s ease-in-out infinite;
}

@keyframes dl-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes dl-center-breathe {
    0% {
        opacity: 0.92;
        transform: scale(0.985);
    }

    50% {
        opacity: 1;
        transform: scale(1);
    }

    100% {
        opacity: 0.92;
        transform: scale(0.985);
    }
}

@keyframes dl-center-glow {
    0% {
        opacity: 0.55;
        transform: scale(0.96);
    }

    50% {
        opacity: 0.82;
        transform: scale(1.02);
    }

    100% {
        opacity: 0.55;
        transform: scale(0.96);
    }
}

/* ── SvgIcon wrapper ─────────────────────────────────────────────────────── */

.svg-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* ══════════════════════════════════════════════════════════════════════
   UI Primitives (Native HTML controls)
   ══════════════════════════════════════════════════════════════════════ */

.dl-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 6px;
    border: 1px solid var(--dl-border);
    background: var(--dl-bg);
    color: var(--dl-text);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s, border-color 0.15s;
}

    .dl-btn:hover {
        background: var(--dl-bg-muted);
    }

    .dl-btn:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

.dl-btn--accent {
    background: var(--dl-accent);
    border-color: var(--dl-accent);
    color: #fff;
}

    .dl-btn--accent:hover {
        background: var(--dl-accent-hover);
    }

.dl-btn--danger {
    background: #a4262c;
    border-color: #a4262c;
    color: #fff;
}

    .dl-btn--danger:hover {
        background: #8a1f24;
        border-color: #8a1f24;
    }

.dl-btn--outline {
    background: transparent;
}

.dl-btn--sm {
    padding: 4px 10px;
    font-size: 13px;
}

.login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 40px;
    margin-top: 8px;
    padding: 0 16px;
    background: var(--dl-accent);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

    .login-btn:hover {
        background: var(--dl-accent-hover);
    }

    .login-btn:disabled {
        opacity: 0.6;
        cursor: not-allowed;
    }

.dl-input {
    width: 100%;
    padding: 6px 10px;
    border: 1px solid var(--dl-border);
    border-radius: 6px;
    font-size: 14px;
    color: var(--dl-text);
    background: var(--dl-bg);
    box-sizing: border-box;
}

    .dl-input:focus {
        outline: none;
        border-color: var(--dl-accent);
        box-shadow: 0 0 0 2px rgba(0, 120, 212, 0.2);
    }

.dl-select {
    width: 100%;
    padding: 6px 10px;
    border: 1px solid var(--dl-border);
    border-radius: 6px;
    font-size: 14px;
    background: var(--dl-bg);
    color: var(--dl-text);
    box-sizing: border-box;
    cursor: pointer;
}

.dl-textarea {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid var(--dl-border);
    border-radius: 6px;
    font-size: 14px;
    color: var(--dl-text);
    background: var(--dl-bg);
    resize: vertical;
    box-sizing: border-box;
    min-height: 80px;
    font-family: inherit;
}

    .dl-textarea:focus {
        outline: none;
        border-color: var(--dl-accent);
    }

.dl-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--dl-text);
    cursor: pointer;
    margin: 4px 0;
}

.dl-checkbox {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: var(--dl-accent);
    flex-shrink: 0;
}

.dl-radio-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.dl-radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--dl-text);
    cursor: pointer;
}

    .dl-radio-label input[type="radio"] {
        accent-color: var(--dl-accent);
    }

.dl-date-input,
.dl-time-input {
    padding: 6px 10px;
    border: 1px solid var(--dl-border);
    border-radius: 6px;
    font-size: 14px;
    background: var(--dl-bg);
    color: var(--dl-text);
    box-sizing: border-box;
}

/* ── Orientation ── 
   Phone orientation is locked to portrait at the OS level on MAUI
   (iOS Info.plist UISupportedInterfaceOrientations and Android
   MainActivity ScreenOrientation = Portrait). The web/WASM client
   is allowed to flow in any orientation, so no CSS overlay here. */
