/* =========================================================
   DON VISION
   Global application styling
   ========================================================= */


/* =========================================================
   DESIGN TOKENS
   ========================================================= */

:root {
    --dv-bg: #08110e;
    --dv-surface: #0f1b17;
    --dv-surface-raised: #14231d;
    --dv-surface-hover: #192c24;
    --dv-border: #243b31;
    --dv-border-light: #315143;
    --dv-green: #55c98a;
    --dv-green-bright: #69dda0;
    --dv-green-dark: #287a50;
    --dv-text: #ffffff;
    --dv-text-secondary: #a9bdb3;
    --dv-text-muted: #70877c;
    --dv-danger: #e85b5b;
    --dv-header-height: 72px;
    --dv-nav-height: 72px;
    --dv-content-max-width: 1600px;
    --dv-radius-small: 8px;
    --dv-radius: 14px;
    --dv-radius-large: 20px;
    --dv-spacing-xs: 6px;
    --dv-spacing-sm: 10px;
    --dv-spacing-md: 16px;
    --dv-spacing-lg: 24px;
    --dv-spacing-xl: 32px;
}


/* =========================================================
   RESET / DOCUMENT
   ========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-width: 100%;
    min-height: 100%;
    background: var(--dv-bg);
    color: var(--dv-text);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}

html {
    min-height: 100%;
}

body {
    min-height: 100vh;
    min-height: 100dvh;
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

a {
    color: inherit;
}


/* =========================================================
   APPLICATION SHELL
   ========================================================= */

.app-shell {
    min-height: 100vh;
    min-height: 100dvh;
    display: grid;
    grid-template-rows: var(--dv-header-height) minmax(0, 1fr) var(--dv-nav-height);
    background: var(--dv-bg);
}

/* =========================================================
   HEADER ACTIONS / USER
   ========================================================= */

.app-header-actions {
    display: flex;
    align-items: center;
    gap: 18px;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-left: 18px;
    border-left: 1px solid var(--dv-border);
}

.user-name {
    max-width: 160px;
    overflow: hidden;
    color: var(--dv-text-secondary);
    font-size: 12px;
    font-weight: 750;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.logout-button {
    min-height: 36px;
    padding: 0 12px;
    border: 1px solid var(--dv-border-light);
    border-radius: var(--dv-radius-small);
    background: transparent;
    color: var(--dv-text-secondary);
    font-size: 11px;
    font-weight: 750;
    cursor: pointer;
}

    .logout-button:hover {
        border-color: var(--dv-green-dark);
        background: var(--dv-surface-hover);
        color: var(--dv-text);
    }

    .logout-button:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

/* =========================================================
   AUTHENTICATION LOADING
   ========================================================= */

.auth-loading {
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    display: grid;
    place-items: center;
    background: var(--dv-bg);
}

.auth-loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    color: var(--dv-text-secondary);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* =========================================================
   HEADER
   ========================================================= */

.app-header {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-width: 0;
    padding: env(safe-area-inset-top, 0px) max(var(--dv-spacing-lg), env(safe-area-inset-right, 0px)) 0 max(var(--dv-spacing-lg), env(safe-area-inset-left, 0px));
    background: rgba(15, 27, 23, 0.96);
    border-bottom: 1px solid var(--dv-border);
}

.app-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.app-brand-mark {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: var(--dv-green);
    color: #07120d;
    font-weight: 900;
    font-size: 16px;
    letter-spacing: -0.5px;
}

.app-brand-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.app-brand-name {
    font-size: 17px;
    font-weight: 800;
    letter-spacing: 1.4px;
    line-height: 1.1;
}

.app-brand-subtitle {
    margin-top: 4px;
    color: var(--dv-green);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    line-height: 1;
}

.app-status {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    color: var(--dv-text-secondary);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--dv-green);
    box-shadow: 0 0 10px rgba(85, 201, 138, 0.55);
}


/* =========================================================
   MAIN CONTENT
   ========================================================= */

.app-content {
    width: 100%;
    min-width: 0;
    overflow-x: hidden;
    overflow-y: auto;
    padding: var(--dv-spacing-xl) max( var(--dv-spacing-lg), env(safe-area-inset-right, 0px) ) var(--dv-spacing-xl) max( var(--dv-spacing-lg), env(safe-area-inset-left, 0px) );
}

    .app-content > * {
        width: min(100%, var(--dv-content-max-width));
        margin-left: auto;
        margin-right: auto;
    }


/* =========================================================
   DASHBOARD
   ========================================================= */

.dashboard {
    width: 100%;
}

.dashboard-heading {
    margin-bottom: 28px;
}

.eyebrow {
    margin: 0 0 8px;
    color: var(--dv-green);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
}

.dashboard-heading h1 {
    margin: 0;
    color: var(--dv-text);
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 750;
    letter-spacing: -1px;
    line-height: 1.1;
}

.dashboard-subtitle {
    margin: 10px 0 0;
    color: var(--dv-text-secondary);
    font-size: 15px;
    line-height: 1.5;
}


/* =========================================================
   RESPONSIVE BOARD GRID
   ========================================================= */

.board-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: var(--dv-spacing-md);
}

.board-card {
    appearance: none;
    width: 100%;
    min-width: 0;
    min-height: 145px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 22px;
    border: 1px solid var(--dv-border);
    border-radius: var(--dv-radius);
    background: var(--dv-surface-raised);
    color: var(--dv-text);
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    transition: background 120ms ease, border-color 120ms ease, transform 120ms ease;
}

    .board-card:hover {
        background: var(--dv-surface-hover);
        border-color: var(--dv-border-light);
    }

    .board-card:active {
        transform: scale(0.985);
    }

    .board-card:focus-visible {
        outline: 2px solid var(--dv-green);
        outline-offset: 3px;
    }

.board-card-title {
    font-size: 19px;
    font-weight: 750;
    line-height: 1.2;
}

.board-card-description {
    margin-top: 7px;
    color: var(--dv-text-secondary);
    font-size: 13px;
    line-height: 1.4;
}

/* =========================================================
   BOARD PAGES
   ========================================================= */

.board-page {
    width: 100%;
}

.board-page-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--dv-spacing-lg);
    margin-bottom: 28px;
}

    .board-page-header h1 {
        margin: 0;
        font-size: clamp(28px, 4vw, 42px);
        font-weight: 750;
        letter-spacing: -1px;
        line-height: 1.1;
    }

.board-page-subtitle {
    margin: 10px 0 0;
    color: var(--dv-text-secondary);
    font-size: 15px;
}

.refresh-button {
    min-height: 44px;
    padding: 0 20px;
    flex-shrink: 0;
    border: 1px solid var(--dv-green-dark);
    border-radius: var(--dv-radius-small);
    background: var(--dv-green);
    color: #07120d;
    font-weight: 800;
    cursor: pointer;
}

    .refresh-button:hover {
        background: var(--dv-green-bright);
    }

    .refresh-button:active {
        transform: scale(0.97);
    }

    .refresh-button:focus-visible {
        outline: 2px solid var(--dv-green-bright);
        outline-offset: 3px;
    }


/* =========================================================
   JOB GRID
   ========================================================= */

.jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
    gap: var(--dv-spacing-md);
}


/* =========================================================
   EMPTY STATES
   ========================================================= */

.empty-state {
    min-height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 28px;
    border: 1px dashed var(--dv-border-light);
    border-radius: var(--dv-radius);
    background: var(--dv-surface);
    text-align: center;
}

.empty-state-title {
    color: var(--dv-text);
    font-size: 18px;
    font-weight: 750;
}

.empty-state-text {
    margin-top: 8px;
    color: var(--dv-text-secondary);
    font-size: 13px;
}


/* =========================================================
   BOARD PAGE - SMALL SCREENS
   ========================================================= */

@media (max-width: 600px) {

    .board-page-header {
        align-items: stretch;
        flex-direction: column;
        gap: 16px;
        margin-bottom: 20px;
    }

    .refresh-button {
        width: 100%;
    }
}

/* =========================================================
   DON VISION HOME
   ========================================================= */

.home-page {
    width: 100%;
}

.home-heading {
    margin-bottom: 36px;
}

    .home-heading h1 {
        margin: 0;
        font-size: clamp(30px, 4vw, 46px);
        font-weight: 800;
        letter-spacing: -1.2px;
        line-height: 1.05;
    }

.home-subtitle {
    margin: 10px 0 0;
    color: var(--dv-text-secondary);
    font-size: 15px;
}


/* =========================================================
   HOME SECTIONS
   ========================================================= */

.home-section {
    margin-top: 42px;
}

    .home-section:first-of-type {
        margin-top: 0;
    }

.section-heading {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 20px;
}

.section-heading-accent {
    width: 4px;
    height: 42px;
    flex: 0 0 4px;
    border-radius: 4px;
    background: var(--dv-green);
}

.section-heading h2 {
    margin: 0;
    font-size: 21px;
    font-weight: 750;
    line-height: 1.1;
}

.section-heading p {
    margin: 5px 0 0;
    color: var(--dv-text-secondary);
    font-size: 12px;
}

.subsection-title {
    margin: 26px 0 12px;
    color: var(--dv-green);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}


/* =========================================================
   HOME TOOL GRID
   ========================================================= */

.tool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
    gap: 14px;
}


/* =========================================================
   HOME TOOL CARDS
   ========================================================= */

.tool-card {
    position: relative;
    min-width: 0;
    min-height: 132px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 20px;
    overflow: hidden;
    border: 1px solid var(--dv-border);
    border-radius: var(--dv-radius);
    background: var(--dv-surface-raised);
    color: var(--dv-text);
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    transition: background 120ms ease, border-color 120ms ease, transform 120ms ease;
}

    .tool-card:hover {
        background: var(--dv-surface-hover);
        border-color: var(--dv-border-light);
    }

    .tool-card:active {
        transform: scale(0.985);
    }

    .tool-card:focus-visible {
        outline: 2px solid var(--dv-green);
        outline-offset: 3px;
    }

.tool-card-featured {
    min-height: 155px;
    border-color: var(--dv-green-dark);
    background: linear-gradient( 135deg, rgba(85, 201, 138, 0.08), transparent 65% ), var(--dv-surface-raised);
}

.tool-card-category {
    position: absolute;
    top: 17px;
    left: 20px;
    color: var(--dv-green);
    font-size: 10px;
    font-weight: 850;
    letter-spacing: 1.5px;
}

.tool-card-title {
    font-size: 18px;
    font-weight: 750;
    line-height: 1.2;
}

.tool-card-description {
    margin-top: 7px;
    color: var(--dv-text-secondary);
    font-size: 12px;
    line-height: 1.4;
}


/* =========================================================
   HOME - SMALL SCREENS
   ========================================================= */

@media (max-width: 600px) {

    .home-heading {
        margin-bottom: 28px;
    }

    .home-section {
        margin-top: 34px;
    }

    .tool-card,
    .tool-card-featured {
        min-height: 120px;
        padding: 18px;
    }

    .tool-card-category {
        top: 15px;
        left: 18px;
    }

    .section-heading h2 {
        font-size: 19px;
    }
}


/* =========================================================
   HOME - SHORT LANDSCAPE
   ========================================================= */

@media (max-height: 520px) and (orientation: landscape) {

    .home-heading {
        margin-bottom: 24px;
    }

    .home-section {
        margin-top: 30px;
    }

    .tool-card,
    .tool-card-featured {
        min-height: 105px;
    }
}

/* =========================================================
   PRODUCTION BOARD
   ========================================================= */

.production-toolbar {
    display: grid;
    grid-template-columns: minmax(240px, 2fr) minmax(160px, 1fr) minmax(160px, 1fr);
    gap: 12px;
    margin-bottom: 16px;
    padding: 16px;
    border: 1px solid var(--dv-border);
    border-radius: var(--dv-radius);
    background: var(--dv-surface);
}

.production-search,
.production-filter {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

    .production-search label,
    .production-filter label {
        color: var(--dv-text-secondary);
        font-size: 10px;
        font-weight: 800;
        letter-spacing: 1px;
        text-transform: uppercase;
    }

    .production-search input,
    .production-filter select {
        width: 100%;
        min-width: 0;
        height: 44px;
        padding: 0 13px;
        border: 1px solid var(--dv-border-light);
        border-radius: var(--dv-radius-small);
        outline: none;
        background: var(--dv-bg);
        color: var(--dv-text);
    }

        .production-search input:focus,
        .production-filter select:focus {
            border-color: var(--dv-green);
            box-shadow: 0 0 0 2px rgba(85, 201, 138, 0.12);
        }

        .production-search input::placeholder {
            color: var(--dv-text-muted);
        }


/* =========================================================
   PRODUCTION SUMMARY
   ========================================================= */

.production-summary {
    display: flex;
    align-items: stretch;
    gap: 10px;
    margin-bottom: 20px;
}

.summary-item {
    min-width: 100px;
    display: flex;
    flex-direction: column;
    padding: 12px 16px;
    border: 1px solid var(--dv-border);
    border-radius: var(--dv-radius-small);
    background: var(--dv-surface-raised);
}

.summary-value {
    color: var(--dv-text);
    font-size: 22px;
    font-weight: 800;
    line-height: 1;
}

.summary-label {
    margin-top: 5px;
    color: var(--dv-text-secondary);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}


/* =========================================================
   PRODUCTION BOARD - TABLET
   ========================================================= */

@media (max-width: 800px) {

    .production-toolbar {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }

    .production-search {
        grid-column: 1 / -1;
    }
}


/* =========================================================
   PRODUCTION BOARD - PHONE
   ========================================================= */

@media (max-width: 520px) {

    .production-toolbar {
        grid-template-columns: 1fr;
        padding: 12px;
    }

    .production-search {
        grid-column: auto;
    }

    .production-summary {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .summary-item {
        min-width: 0;
        padding: 11px 10px;
        text-align: center;
    }
}

/* =========================================================
   LOGIN
   ========================================================= */

.login-shell {
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    background: var(--dv-bg);
}

.login-shell-content {
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
}

.login-page {
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: max(24px, env(safe-area-inset-top, 0px)) max(24px, env(safe-area-inset-right, 0px)) max(24px, env(safe-area-inset-bottom, 0px)) max(24px, env(safe-area-inset-left, 0px));
    background: radial-gradient( circle at 50% 35%, rgba(85, 201, 138, 0.07), transparent 38% ), var(--dv-bg);
}

.login-panel {
    width: min(92vw, 720px);
    padding: clamp(24px, 4vw, 42px);
    border: 1px solid var(--dv-border);
    border-radius: var(--dv-radius-large);
    background: var(--dv-surface);
}

.login-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 34px;
    text-align: center;
}

.login-brand-mark {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    margin-bottom: 14px;
    border-radius: 15px;
    background: var(--dv-green);
    color: #07120d;
    font-size: 20px;
    font-weight: 900;
}

.login-brand-name {
    color: var(--dv-text);
    font-size: 20px;
    font-weight: 850;
    letter-spacing: 2px;
}

.login-brand-subtitle {
    margin-top: 5px;
    color: var(--dv-green);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 2px;
}

.login-heading {
    margin-bottom: 26px;
}

    .login-heading h1 {
        margin: 0;
        font-size: clamp(24px, 3vw, 32px);
        font-weight: 750;
        letter-spacing: -0.5px;
    }

    .login-heading p {
        margin: 8px 0 0;
        color: var(--dv-text-secondary);
        font-size: 13px;
        line-height: 1.5;
    }


/* =========================================================
   LOGIN FORM
   ========================================================= */

.login-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.login-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

    .login-field label {
        color: var(--dv-text-secondary);
        font-size: 10px;
        font-weight: 800;
        letter-spacing: 1px;
        text-transform: uppercase;
    }

.login-error {
    padding: 12px 14px;
    border: 1px solid rgba(232, 91, 91, 0.45);
    border-radius: var(--dv-radius-small);
    background: rgba(232, 91, 91, 0.08);
    color: #ff9b9b;
    font-size: 12px;
    font-weight: 650;
    line-height: 1.4;
}

.login-button:disabled,
.login-field input:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

    .login-field input {
        width: 100%;
        height: 48px;
        padding: 0 14px;
        border: 1px solid var(--dv-border-light);
        border-radius: var(--dv-radius-small);
        outline: none;
        background: var(--dv-bg);
        color: var(--dv-text);
        font-size: 14px;
    }

        .login-field input::placeholder {
            color: var(--dv-text-muted);
        }

        .login-field input:focus {
            border-color: var(--dv-green);
            box-shadow: 0 0 0 2px rgba(85, 201, 138, 0.12);
        }

.login-button {
    width: 100%;
    min-height: 48px;
    margin-top: 4px;
    border: 1px solid var(--dv-green);
    border-radius: var(--dv-radius-small);
    background: var(--dv-green);
    color: #07120d;
    font-weight: 850;
    cursor: pointer;
    transition: background 120ms ease, transform 120ms ease;
}

    .login-button:hover {
        background: var(--dv-green-bright);
    }

    .login-button:active {
        transform: scale(0.985);
    }

    .login-button:focus-visible {
        outline: 2px solid var(--dv-green-bright);
        outline-offset: 3px;
    }

.login-footer {
    margin-top: 28px;
    color: var(--dv-text-muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-align: center;
    text-transform: uppercase;
}


/* =========================================================
   LOGIN - PHONE
   ========================================================= */

@media (max-width: 520px) {

    .login-page {
        min-height: 100vh;
        min-height: 100dvh;
        align-items: center;
        padding: max(16px, env(safe-area-inset-top, 0px)) max(14px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(14px, env(safe-area-inset-left, 0px));
    }

    .login-panel {
        padding: 26px 20px;
        border-radius: var(--dv-radius);
    }

    .login-brand {
        margin-bottom: 28px;
    }
}


/* =========================================================
   LOGIN - SHORT LANDSCAPE
   ========================================================= */

@media (max-height: 520px) and (orientation: landscape) {

    .login-page {
        min-height: auto;
        align-items: flex-start;
        padding: 0;
    }

    .login-panel {
        width: min(100%, 680px);
        padding: 20px 26px;
    }

    .login-brand {
        flex-direction: row;
        justify-content: flex-start;
        gap: 12px;
        margin-bottom: 18px;
        text-align: left;
    }

    .login-brand-mark {
        width: 42px;
        height: 42px;
        flex: 0 0 42px;
        margin: 0;
        border-radius: 11px;
        font-size: 15px;
    }

    .login-brand-subtitle {
        display: none;
    }

    .login-heading {
        margin-bottom: 16px;
    }

        .login-heading h1 {
            font-size: 21px;
        }

        .login-heading p {
            margin-top: 4px;
        }

    .login-form {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
        align-items: end;
        gap: 12px;
    }

    .login-button {
        width: auto;
        min-width: 110px;
        margin: 0;
    }

    .login-footer {
        display: none;
    }
}

/* =========================================================
   BOTTOM NAVIGATION
   ========================================================= */

.app-navigation {
    position: sticky;
    bottom: 0;
    z-index: 100;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    min-width: 0;
    padding: 0 max(8px, env(safe-area-inset-right, 0px)) env(safe-area-inset-bottom, 0px) max(8px, env(safe-area-inset-left, 0px));
    background: rgba(15, 27, 23, 0.98);
    border-top: 1px solid var(--dv-border);
}

.nav-item {
    min-width: 0;
    min-height: var(--dv-nav-height);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 6px;
    color: var(--dv-text-muted);
    text-decoration: none;
    border-radius: var(--dv-radius-small);
    transition: color 120ms ease, background 120ms ease;
}

    .nav-item:hover {
        color: var(--dv-text);
        background: rgba(255, 255, 255, 0.035);
    }

    .nav-item:focus-visible {
        outline: 2px solid var(--dv-green);
        outline-offset: -3px;
    }

.nav-icon {
    display: grid;
    place-items: center;
    min-height: 22px;
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
}

.nav-label {
    max-width: 100%;
    overflow: hidden;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
}


/* =========================================================
   SMALL PHONES
   ========================================================= */

@media (max-width: 480px) {

    :root {
        --dv-header-height: 64px;
        --dv-nav-height: 66px;
    }

    .app-header-actions {
        gap: 10px;
    }

    .user-menu {
        padding-left: 10px;
    }

    .user-name {
        max-width: 80px;
    }

    .logout-button {
        min-height: 34px;
        padding: 0 9px;
        font-size: 10px;
    }

    .app-header {
        padding-left: max(14px, env(safe-area-inset-left, 0px));
        padding-right: max(14px, env(safe-area-inset-right, 0px));
    }

    .app-brand-mark {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
        border-radius: 10px;
        font-size: 14px;
    }

    .app-brand-name {
        font-size: 15px;
    }

    .app-brand-subtitle {
        font-size: 9px;
    }

    .status-text {
        display: none;
    }

    .app-content {
        padding-top: 22px;
        padding-bottom: 22px;
        padding-left: max(14px, env(safe-area-inset-left, 0px));
        padding-right: max(14px, env(safe-area-inset-right, 0px));
    }

    .dashboard-heading {
        margin-bottom: 20px;
    }

        .dashboard-heading h1 {
            font-size: 27px;
        }

    .board-card {
        min-height: 118px;
        padding: 18px;
    }

    .nav-label {
        font-size: 9px;
    }
}


/* =========================================================
   VERY NARROW DEVICES
   ========================================================= */

@media (max-width: 350px) {

    .app-brand-subtitle {
        display: none;
    }

    .nav-label {
        display: none;
    }

    .nav-icon {
        font-size: 22px;
    }
}


/* =========================================================
   SHORT LANDSCAPE SCREENS
   Phones in landscape in particular
   ========================================================= */

@media (max-height: 520px) and (orientation: landscape) {

    :root {
        --dv-header-height: 56px;
        --dv-nav-height: 56px;
    }

    .app-brand-mark {
        width: 36px;
        height: 36px;
        flex-basis: 36px;
    }

    .app-brand-subtitle {
        display: none;
    }

    .app-content {
        padding-top: 18px;
        padding-bottom: 18px;
    }

    .dashboard-heading {
        margin-bottom: 18px;
    }

    .dashboard-subtitle {
        margin-top: 6px;
    }

    .board-card {
        min-height: 105px;
    }

    .nav-item {
        min-height: var(--dv-nav-height);
        flex-direction: row;
        gap: 7px;
    }

    .nav-icon {
        font-size: 17px;
    }
}


/* =========================================================
   LARGE DESKTOPS
   ========================================================= */

@media (min-width: 1200px) {

    .app-content {
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .board-grid {
        gap: 20px;
    }

    .board-card {
        min-height: 170px;
    }
}


/* =========================================================
   ACCESSIBILITY / INPUT MODES
   ========================================================= */

@media (hover: none) {

    .board-card:hover,
    .nav-item:hover {
        background: initial;
    }
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}


/* =========================================================
   BLAZOR VALIDATION
   ========================================================= */

.valid.modified:not([type="checkbox"]) {
    outline: 1px solid var(--dv-green);
}

.invalid {
    outline: 1px solid var(--dv-danger);
}

.validation-message {
    color: var(--dv-danger);
}


/* =========================================================
   BLAZOR ERROR UI
   ========================================================= */

#blazor-error-ui {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: calc(var(--dv-nav-height) + 16px);
    z-index: 1000;
    display: none;
    padding: 14px 48px 14px 16px;
    border: 1px solid #8f3838;
    border-radius: var(--dv-radius-small);
    background: #391919;
    color: white;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

    #blazor-error-ui .reload {
        margin-left: 8px;
        color: var(--dv-green-bright);
        font-weight: 700;
    }

    #blazor-error-ui .dismiss {
        position: absolute;
        top: 50%;
        right: 15px;
        transform: translateY(-50%);
        cursor: pointer;
    }


/* =========================================================
   BLAZOR ERROR BOUNDARY
   ========================================================= */

.blazor-error-boundary {
    padding: 16px;
    border: 1px solid #8f3838;
    border-radius: var(--dv-radius-small);
    background: #391919;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred.";
    }
