/* ---------------------------------------------------------
   Forms
--------------------------------------------------------- */

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-field.full-width {
    grid-column: 1 / -1;
}

.form-field label {
    font-size: 0.82rem;
    font-weight: 650;
}

.form-control {
    width: 100%;
    min-height: 40px;
    padding: 9px 11px;
    border: 1px solid var(--border);
    border-radius: 9px;
    outline: none;
    background: var(--surface);
    color: var(--text);
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-soft);
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 18px;
}


/* ---------------------------------------------------------
   Calendar toolbar and tabs
--------------------------------------------------------- */

.calendar-view-tabs {
    display: flex;
    width: fit-content;
    max-width: 100%;
    gap: 6px;
    padding: 5px;
    margin-bottom: 24px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
}

.calendar-view-tab {
    padding: 9px 14px;
    border-radius: 8px;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 650;
    text-decoration: none;
    white-space: nowrap;
}

.calendar-view-tab:hover {
    background: var(--surface-alt);
    color: var(--text);
}

.calendar-view-tab.active {
    background: var(--primary);
    color: #fff;
}

.calendar-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.calendar-toolbar h2 {
    margin: 0;
}

.calendar-toolbar p {
    margin: 6px 0 0;
    color: var(--text-muted);
}

.calendar-navigation {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}


/* ---------------------------------------------------------
   Personal week calendar
--------------------------------------------------------- */

.week-calendar {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 12px;
    margin-top: 24px;
}

.calendar-day {
    min-width: 0;
    min-height: 260px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface);
}

.calendar-day-today {
    outline: 2px solid var(--primary);
    outline-offset: -2px;
}

.calendar-day-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 14px;
    border-bottom: 1px solid var(--border);
}

.calendar-day-header > div {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.calendar-day-name {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.calendar-day-header strong {
    font-size: 1.2rem;
}

.today-badge {
    padding: 4px 8px;
    border-radius: 999px;
    background: var(--primary);
    color: #fff !important;
    font-size: 0.72rem !important;
    font-weight: 700;
}

.calendar-day-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px;
}

.calendar-off {
    display: flex;
    min-height: 150px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: var(--text-muted);
    text-align: center;
}

.calendar-off span {
    font-weight: 650;
}

.calendar-off small {
    margin-top: 4px;
}

.shift-card {
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface-alt);
}

.shift-time {
    font-size: 1rem;
    font-weight: 750;
}

.shift-department {
    margin-top: 4px;
    font-size: 0.9rem;
}

.shift-meta {
    margin-top: 8px;
    color: var(--text-muted);
    font-size: 0.78rem;
}

.shift-notes {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.8rem;
}


/* ---------------------------------------------------------
   Month calendar
--------------------------------------------------------- */

.month-calendar-wrap {
    width: 100%;
    overflow-x: auto;
    border-radius: 14px;
}

.month-calendar {
    display: grid;
    min-width: 920px;
    grid-template-columns: 54px repeat(7, minmax(120px, 1fr));
    border-top: 1px solid var(--border);
    border-left: 1px solid var(--border);
    background: var(--surface);
}

.month-weekday {
    min-width: 120px;
    padding: 12px;
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 700;
    text-align: center;
}

.month-week-number-heading {
    min-width: 54px;
}

.month-week-number {
    display: flex;
    min-width: 54px;
    min-height: 125px;
    align-items: center;
    justify-content: center;
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 750;
}

.month-day {
    min-width: 120px;
    min-height: 125px;
    padding: 9px;
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--surface);
}

.month-day-outside {
    background: var(--bg);
    opacity: 0.48;
}

.month-day-today {
    box-shadow: inset 0 0 0 2px var(--primary);
}

.month-day-number {
    margin-bottom: 8px;
    font-weight: 750;
}

.month-day-shifts {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.month-shift {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 7px;
    border-radius: 7px;
    background: var(--surface-alt);
    font-size: 0.72rem;
}

.month-shift strong {
    font-size: 0.74rem;
}

.month-shift span {
    overflow: hidden;
    color: var(--text-muted);
    text-overflow: ellipsis;
    white-space: nowrap;
}


/* ---------------------------------------------------------
   Department schedule
--------------------------------------------------------- */

.department-calendar {
    display: grid;
    grid-template-columns: repeat(7, minmax(180px, 1fr));
    gap: 12px;
}

.department-day {
    min-width: 0;
    min-height: 300px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface);
}

.department-day-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 14px;
    border-bottom: 1px solid var(--border);
}

.department-day-header > div {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.department-day-header span {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.department-shift-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px;
}

.department-shift {
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: var(--surface-alt);
}

.department-shift-me {
    border-color: var(--primary);
}

.department-employee {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.department-employee-name {
    display: flex;
    min-width: 0;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.department-employee strong {
    font-size: 0.85rem;
}

.department-shift-time {
    margin-top: 5px;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.you-badge,
.manager-badge {
    padding: 2px 6px;
    border-radius: 999px;
    font-size: 0.65rem;
    font-weight: 750;
}

.you-badge {
    background: var(--primary);
    color: #fff !important;
}

.manager-badge {
    border: 1px solid var(--border);
    color: var(--text-muted);
}


/* ---------------------------------------------------------
   Settings
--------------------------------------------------------- */

.setting-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px 0;
    cursor: pointer;
}

.setting-toggle > div {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.setting-toggle span {
    color: var(--text-muted);
    font-size: 0.88rem;
}

.setting-toggle input {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.setting-message {
    min-height: 20px;
    margin-top: 8px;
    color: var(--text-muted);
    font-size: 0.85rem;
}


/* ---------------------------------------------------------
   Modal
--------------------------------------------------------- */

.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.52);
}

.modal-backdrop[hidden] {
    display: none;
}

.modal {
    width: min(100%, 620px);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface);
    box-shadow: var(--shadow-md);
}

.modal-header,
.modal-body,
.modal-footer {
    padding: 18px;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid var(--border);
}

.modal-header h2 {
    margin: 0;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    border-top: 1px solid var(--border);
}


/* ---------------------------------------------------------
   Responsive
--------------------------------------------------------- */

@media (max-width: 1300px) {
    .week-calendar {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .department-calendar {
        grid-template-columns: repeat(4, minmax(180px, 1fr));
    }
}

@media (max-width: 900px) {
    .calendar-view-tabs {
        width: 100%;
        overflow-x: auto;
    }

    .calendar-view-tab {
        flex: 1;
        text-align: center;
    }

    .department-calendar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 800px) {
    .calendar-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .calendar-navigation {
        width: 100%;
    }

    .calendar-navigation .button {
        flex: 1;
        text-align: center;
    }

    .week-calendar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-field.full-width {
        grid-column: auto;
    }
}

@media (max-width: 560px) {
    .department-calendar,
    .week-calendar {
        grid-template-columns: 1fr;
    }

    .calendar-day,
    .department-day {
        min-height: auto;
    }

    .calendar-off {
        min-height: 90px;
    }

    .calendar-view-tabs {
        display: grid;
        grid-template-columns: 1fr;
    }
}

/* ---------------------------------------------------------
   Authentication pages
--------------------------------------------------------- */

.auth-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;

    background:
        radial-gradient(
            circle at 50% 35%,
            var(--primary-soft) 0%,
            transparent 32%
        ),
        var(--bg);
}

.auth-shell {
    width: 100%;
    max-width: 470px;
}

.auth-card {
    padding: 38px;

    border: 1px solid var(--border);
    border-radius: 18px;

    background: var(--surface);

    box-shadow:
        0 18px 50px rgba(0, 0, 0, 0.14);
}


/* Brand
--------------------------------------------------------- */

.auth-brand {
    display: flex;
    align-items: center;
    gap: 14px;

    margin-bottom: 34px;
}

.auth-logo {
    display: grid;
    place-items: center;

    width: 48px;
    height: 48px;

    flex: 0 0 48px;

    border-radius: 12px;

    background: var(--primary);
    color: #fff;

    font-size: 1.25rem;
    font-weight: 800;
}

.auth-brand-text h1 {
    margin: 0;

    font-size: 1.1rem;
    font-weight: 750;
}

.auth-brand-text p {
    margin: 3px 0 0;

    color: var(--text-muted);

    font-size: 0.78rem;
}


/* Heading
--------------------------------------------------------- */

.auth-heading {
    margin-bottom: 28px;
}

.auth-heading h2 {
    margin: 0;

    font-size: 1.65rem;
    line-height: 1.2;
}

.auth-heading p {
    margin: 8px 0 0;

    max-width: 340px;

    color: var(--text-muted);

    font-size: 0.9rem;
    line-height: 1.55;
}


/* Form
--------------------------------------------------------- */

.auth-form {
    display: flex;
    flex-direction: column;

    gap: 19px;
}

.auth-field {
    display: flex;
    flex-direction: column;

    gap: 8px;
}

.auth-field label {
    font-size: 0.82rem;
    font-weight: 650;
}

.auth-input-wrap {
    position: relative;
}

.auth-input {
    width: 100%;
    min-height: 48px;

    padding: 11px 13px;

    border: 1px solid var(--border);
    border-radius: 10px;

    outline: none;

    background: var(--surface-alt);
    color: var(--text);

    transition:
        border-color 140ms ease,
        box-shadow 140ms ease,
        background 140ms ease;
}

.auth-input::placeholder {
    color: var(--text-muted);
    opacity: 0.65;
}

.auth-input:hover {
    border-color: var(--text-muted);
}

.auth-input:focus {
    border-color: var(--primary);

    background: var(--surface);

    box-shadow:
        0 0 0 3px var(--primary-soft);
}


/* Password
--------------------------------------------------------- */

.auth-password-input {
    padding-right: 75px;
}

.auth-password-toggle {
    position: absolute;

    top: 50%;
    right: 12px;

    transform: translateY(-50%);

    padding: 5px;

    border: 0;

    background: transparent;
    color: var(--text-muted);

    font-size: 0.75rem;
    font-weight: 700;

    cursor: pointer;
}

.auth-password-toggle:hover {
    color: var(--primary);
}


/* Submit
--------------------------------------------------------- */

.auth-submit {
    width: 100%;
    min-height: 48px;

    margin-top: 4px;

    border: 0;
    border-radius: 10px;

    background: var(--primary);
    color: #fff;

    font-weight: 700;

    cursor: pointer;

    transition:
        background 140ms ease,
        transform 100ms ease,
        opacity 140ms ease;
}

.auth-submit:hover {
    background: var(--primary-hover);
}

.auth-submit:active {
    transform: translateY(1px);
}

.auth-submit:disabled {
    opacity: 0.65;
    cursor: wait;
}


/* Errors
--------------------------------------------------------- */

.auth-message {
    padding: 10px 12px;

    border: 1px solid var(--danger);
    border-radius: 9px;

    background: var(--danger-soft);
    color: var(--danger);

    font-size: 0.82rem;
}

.auth-message[hidden] {
    display: none;
}


/* Footer
--------------------------------------------------------- */

.auth-footer {
    display: flex;
    justify-content: center;

    margin-top: 18px;
}

.auth-theme-button {
    padding: 7px 10px;

    border: 0;
    border-radius: 7px;

    background: transparent;
    color: var(--text-muted);

    font-size: 0.78rem;

    cursor: pointer;

    transition:
        color 140ms ease,
        background 140ms ease;
}

.auth-theme-button:hover {
    background: var(--surface);
    color: var(--text);
}


/* Mobile
--------------------------------------------------------- */

@media (max-width: 520px) {

    .auth-body {
        padding: 16px;
    }

    .auth-card {
        padding: 28px 22px;
        border-radius: 15px;
    }

    .auth-brand {
        margin-bottom: 28px;
    }

    .auth-heading h2 {
        font-size: 1.45rem;
    }

}

/* ---------------------------------------------------------
   Availability
--------------------------------------------------------- */

.availability-exceptions-layout {
    display: grid;
    grid-template-columns:
        minmax(320px, 0.8fr)
        minmax(0, 1.35fr);

    gap: 20px;

    align-items: start;

    margin-top: 20px;
}


/* Weekly availability
--------------------------------------------------------- */

.weekly-availability-wrap {
    width: 100%;
    overflow-x: auto;
}


.weekly-availability-list {
    display: flex;
    flex-direction: column;
    gap: 8px;

    min-width: 720px;
}


.weekly-availability-row {
    display: grid;

    grid-template-columns:
        minmax(130px, 1fr)
        minmax(170px, 1.2fr)
        minmax(120px, 0.8fr)
        minmax(120px, 0.8fr)
        75px;

    gap: 12px;

    align-items: center;

    padding: 10px 12px;

    border: 1px solid var(--border);

    border-radius: 10px;

    background:
        var(--surface-alt);
}


.weekly-day {
    font-size: 0.88rem;
}


.weekly-status,
.weekly-time {
    min-width: 0;
}


.weekly-time-label {
    color: var(--text-muted);

    font-size: 0.76rem;

    text-align: center;
}


.weekly-availability-row
.form-control:disabled {
    opacity: 0.55;

    cursor: not-allowed;
}


.availability-explanation {
    margin-top: 14px;

    padding: 12px 14px;

    border-radius: 9px;

    background:
        var(--surface-alt);

    color:
        var(--text-muted);

    font-size:
        0.8rem;

    line-height:
        1.6;
}


.availability-explanation strong {
    color:
        var(--text);
}


/* Forms
--------------------------------------------------------- */

.availability-form {
    display: flex;

    flex-direction: column;
}


.availability-notes {
    resize: vertical;

    min-height: 100px;
}


.availability-form-help {
    margin-top: 12px;

    color:
        var(--text-muted);

    font-size:
        0.8rem;

    line-height:
        1.45;
}


/* Messages
--------------------------------------------------------- */

.availability-message {
    margin-bottom: 18px;

    padding: 10px 12px;

    border-radius: 9px;

    font-size: 0.84rem;
}


.availability-message[hidden] {
    display: none;
}


.availability-message-success {
    border: 1px solid
        var(--success);

    background:
        var(--success-soft);

    color:
        var(--success);
}


.availability-message-error {
    border: 1px solid
        var(--danger);

    background:
        var(--danger-soft);

    color:
        var(--danger);
}


/* Availability status badges
--------------------------------------------------------- */

.availability-status {
    display: inline-flex;

    align-items: center;

    padding: 4px 8px;

    border-radius: 999px;

    font-size: 0.72rem;

    font-weight: 700;
}


.availability-status-available {
    background:
        var(--success-soft);

    color:
        var(--success);
}


.availability-status-preferred {
    background:
        var(--primary-soft);

    color:
        var(--primary);
}


.availability-status-unavailable {
    background:
        var(--danger-soft);

    color:
        var(--danger);
}


.availability-table td {
    vertical-align:
        middle;
}


.exception-delete-button {
    min-height: 32px;

    padding: 5px 10px;

    font-size: 0.78rem;
}


.text-muted {
    color:
        var(--text-muted);
}


/* Responsive
--------------------------------------------------------- */

@media (max-width: 1100px) {

    .availability-exceptions-layout {
        grid-template-columns:
            1fr;
    }

}


@media (max-width: 820px) {

    .weekly-availability-list {
        min-width: 650px;
    }


    .weekly-availability-row {
        grid-template-columns:
            120px
            155px
            110px
            110px
            65px;
    }

}

/* ---------------------------------------------------------
   Manager schedule
--------------------------------------------------------- */

.schedule-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;

    margin-bottom: 20px;
}

.schedule-toolbar > div:first-child {
    display: flex;
    gap: 8px;
}

.schedule-week-title {
    color: var(--text);
    text-align: center;
}


.manager-week-grid {
    display: grid;
    grid-template-columns:
        repeat(7, minmax(150px, 1fr));

    gap: 10px;

    overflow-x: auto;
}

.manager-week-grid[hidden] {
    display: none;
}

.manager-day-card {
    min-width: 150px;
    min-height: 300px;

    border: 1px solid var(--border);
    border-radius: 12px;

    background: var(--surface);
}


.manager-day-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 8px;

    padding: 12px;

    border-bottom:
        1px solid var(--border);

    font-size: 0.8rem;
}


.manager-day-add {
    display: grid;
    place-items: center;

    width: 27px;
    height: 27px;

    padding: 0;

    border: 0;
    border-radius: 7px;

    background: var(--surface-alt);
    color: var(--text);

    font-size: 1rem;

    cursor: pointer;
}


.manager-day-add:hover {
    background: var(--primary-soft);
    color: var(--primary);
}


.manager-day-shifts {
    display: flex;
    flex-direction: column;

    gap: 8px;

    padding: 9px;
}


.manager-day-empty {
    padding: 18px 8px;

    color: var(--text-muted);

    font-size: 0.76rem;

    text-align: center;
}


.manager-shift {
    padding: 10px;

    border: 1px solid var(--border);
    border-radius: 9px;

    background: var(--surface-alt);
}


.manager-shift-open {
    border-color: var(--primary);

    background: var(--primary-soft);
}


.manager-shift-time {
    margin-bottom: 5px;

    font-size: 0.78rem;
    font-weight: 750;
}


.manager-shift-person {
    font-size: 0.82rem;
    font-weight: 700;
}


.manager-shift-meta {
    margin-top: 4px;

    color: var(--text-muted);

    font-size: 0.7rem;
}


.schedule-create-panel {
    max-width: 760px;

    margin-top: 20px;
}


.schedule-create-panel[hidden] {
    display: none;
}


@media (max-width: 900px) {

    .schedule-toolbar {
        align-items: stretch;
        flex-direction: column;
    }


    .schedule-week-title {
        text-align: left;
    }


    .manager-week-grid {
        grid-template-columns:
            repeat(7, 180px);
    }

}

/* ---------------------------------------------------------
   Schedule toolbar
--------------------------------------------------------- */

.schedule-navigation {
    display: flex;
    gap: 8px;
}


.schedule-toolbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}


.schedule-period-title {
    color: var(--text);
    text-align: center;
}


/* ---------------------------------------------------------
   Week / Month switcher
--------------------------------------------------------- */

.schedule-view-switcher {
    display: inline-flex;

    padding: 3px;

    border: 1px solid var(--border);
    border-radius: 9px;

    background: var(--surface-alt);
}


.schedule-view-button {
    padding: 7px 13px;

    border: 0;
    border-radius: 6px;

    background: transparent;
    color: var(--text-muted);

    font: inherit;
    font-size: 0.8rem;
    font-weight: 650;

    cursor: pointer;
}


.schedule-view-button:hover {
    color: var(--text);
}


.schedule-view-button.active {
    background: var(--surface);
    color: var(--primary);

    box-shadow:
        0 1px 3px
        rgba(0, 0, 0, 0.12);
}


/* ---------------------------------------------------------
   Today's day - week view
--------------------------------------------------------- */

.manager-day-today {
    border-color: var(--primary);
}


/* ---------------------------------------------------------
   Month calendar
--------------------------------------------------------- */

.manager-month-calendar {
    display: grid;

    grid-template-columns:
        repeat(7, minmax(125px, 1fr));

    border-top:
        1px solid var(--border);

    border-left:
        1px solid var(--border);

    border-radius: 12px;

    overflow: hidden;

    background: var(--surface);
}


.manager-month-calendar[hidden] {
    display: none;
}


/* ---------------------------------------------------------
   Weekday headings
--------------------------------------------------------- */

.manager-month-weekday {
    padding: 10px 12px;

    border-right:
        1px solid var(--border);

    border-bottom:
        1px solid var(--border);

    background: var(--surface-alt);

    color: var(--text-muted);

    font-size: 0.72rem;
    font-weight: 750;

    text-align: center;

    text-transform: uppercase;
    letter-spacing: 0.04em;
}


/* ---------------------------------------------------------
   Calendar day
--------------------------------------------------------- */

.manager-month-day {
    min-width: 0;
    min-height: 145px;

    padding: 8px;

    border-right:
        1px solid var(--border);

    border-bottom:
        1px solid var(--border);

    background: var(--surface);
}


.manager-month-day-outside {
    background: var(--surface-alt);
    opacity: 0.58;
}


.manager-month-day-today {
    box-shadow:
        inset 0 0 0 2px
        var(--primary);
}


/* ---------------------------------------------------------
   Calendar day header
--------------------------------------------------------- */

.manager-month-day-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 6px;

    margin-bottom: 4px;
}


.manager-month-date {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 27px;
    height: 27px;

    padding: 0 6px;

    border: 0;
    border-radius: 7px;

    background: transparent;
    color: var(--text);

    font: inherit;
    font-size: 0.8rem;
    font-weight: 750;

    cursor: pointer;
}


.manager-month-date:hover {
    background: var(--primary-soft);
    color: var(--primary);
}


.manager-month-day-today
.manager-month-date {
    background: var(--primary);
    color: white;
}


.manager-month-add {
    display: grid;
    place-items: center;

    width: 25px;
    height: 25px;

    padding: 0;

    border: 0;
    border-radius: 6px;

    background: transparent;
    color: var(--text-muted);

    font-size: 1rem;

    cursor: pointer;
}


.manager-month-add:hover {
    background: var(--primary-soft);
    color: var(--primary);
}


/* ---------------------------------------------------------
   Shift count
--------------------------------------------------------- */

.manager-month-day-count {
    min-height: 18px;

    margin-bottom: 5px;

    color: var(--text-muted);

    font-size: 0.66rem;
}


/* ---------------------------------------------------------
   Month shift preview
--------------------------------------------------------- */

.manager-month-shifts {
    display: flex;
    flex-direction: column;

    gap: 4px;
}


.manager-month-shift {
    display: flex;
    align-items: center;

    gap: 5px;

    min-width: 0;

    padding: 5px 6px;

    border: 1px solid var(--border);
    border-radius: 6px;

    background: var(--surface-alt);

    font-size: 0.68rem;
}


.manager-month-shift-open {
    border-color: var(--primary);
    background: var(--primary-soft);
}


.manager-month-shift-time {
    flex: 0 0 auto;

    font-weight: 750;
}


.manager-month-shift-person {
    min-width: 0;

    overflow: hidden;

    text-overflow: ellipsis;
    white-space: nowrap;
}


/* ---------------------------------------------------------
   More shifts
--------------------------------------------------------- */

.manager-month-more {
    width: 100%;

    padding: 4px 6px;

    border: 0;

    background: transparent;
    color: var(--primary);

    font: inherit;
    font-size: 0.67rem;
    font-weight: 650;

    text-align: left;

    cursor: pointer;
}


.manager-month-more:hover {
    text-decoration: underline;
}


/* ---------------------------------------------------------
   Responsive manager calendar
--------------------------------------------------------- */

@media (max-width: 1100px) {

    .manager-month-calendar {
        grid-template-columns:
            repeat(7, 135px);

        overflow-x: auto;
    }

}


@media (max-width: 900px) {

    .schedule-toolbar-actions {
        align-items: stretch;
        flex-wrap: wrap;
    }


    .schedule-view-switcher {
        width: fit-content;
    }


    .schedule-period-title {
        text-align: left;
    }

}

/* ---------------------------------------------------------
   Open shifts
--------------------------------------------------------- */

.open-shift-list {
    display: flex;
    flex-direction: column;

    gap: 12px;
}


.open-shift-card {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 24px;

    padding: 18px 20px;

    border: 1px solid var(--border);
    border-radius: 12px;

    background: var(--surface);
}


.open-shift-card-main {
    min-width: 0;
}


.open-shift-date {
    margin-bottom: 4px;

    color: var(--text-muted);

    font-size: 0.78rem;
    font-weight: 650;
}


.open-shift-time {
    margin-bottom: 8px;

    color: var(--text);

    font-size: 1.15rem;
    font-weight: 750;
}


.open-shift-details {
    display: flex;
    flex-wrap: wrap;

    gap: 6px 14px;

    color: var(--text-muted);

    font-size: 0.8rem;
}


.open-shift-notes {
    margin-top: 10px;

    color: var(--text);

    font-size: 0.82rem;
}


.open-shift-card-action {
    flex: 0 0 auto;
}


.open-shift-request-state {
    display: flex;
    align-items: center;

    gap: 10px;
}


.status-badge {
    display: inline-flex;
    align-items: center;

    padding: 5px 9px;

    border-radius: 999px;

    font-size: 0.72rem;
    font-weight: 700;
}


.status-pending {
    background: var(--surface-alt);
    color: var(--text-muted);
}


.status-success {
    background: var(--primary-soft);
    color: var(--primary);
}


@media (max-width: 700px) {

    .open-shift-card {
        align-items: stretch;
        flex-direction: column;

        gap: 16px;
    }


    .open-shift-card-action {
        width: 100%;
    }


    .open-shift-card-action .button {
        width: 100%;
    }


    .open-shift-request-state {
        align-items: stretch;
        flex-direction: column;
    }

}

/* ---------------------------------------------------------
   Clickable open shifts
--------------------------------------------------------- */

.manager-shift-clickable {
    cursor: pointer;

    transition:
        transform 0.12s ease,
        border-color 0.12s ease;
}


.manager-shift-clickable:hover {
    transform: translateY(-1px);
}


/* ---------------------------------------------------------
   Shift request panel
--------------------------------------------------------- */

.shift-requests-panel {
    max-width: 760px;

    margin-top: 20px;
}


.shift-requests-panel[hidden] {
    display: none;
}


.shift-request-list {
    display: flex;
    flex-direction: column;

    gap: 10px;
}


.shift-request-row {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    padding: 14px;

    border: 1px solid var(--border);
    border-radius: 10px;

    background: var(--surface-alt);
}


.shift-request-employee {
    display: flex;
    flex-direction: column;

    gap: 3px;
}


.shift-request-employee strong {
    color: var(--text);

    font-size: 0.9rem;
}


.shift-request-employee span {
    color: var(--text-muted);

    font-size: 0.75rem;
}


.shift-request-actions {
    display: flex;

    gap: 8px;
}


@media (max-width: 650px) {

    .shift-request-row {
        align-items: stretch;
        flex-direction: column;
    }


    .shift-request-actions {
        width: 100%;
    }


    .shift-request-actions .button {
        flex: 1;
    }

}

/* ---------------------------------------------------------
   Employee scheduling intelligence
--------------------------------------------------------- */

.employee-schedule-check {
    display: flex;
    flex-direction: column;

    gap: 8px;

    margin-top: 10px;
}


.employee-schedule-check[hidden] {
    display: none;
}


.employee-check-section {
    display: flex;
    flex-direction: column;

    gap: 5px;

    padding: 11px 13px;

    border: 1px solid var(--border);
    border-radius: 9px;

    background: var(--surface-alt);

    font-size: 0.78rem;
}


.employee-check-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;
}


.employee-check-section strong {
    color: var(--text);
}


.employee-check-section span {
    color: var(--text-muted);
}


.employee-check-hours {
    font-weight: 700;
}


.employee-check-source {
    font-size: 0.7rem;
    opacity: 0.8;
}


.employee-check-note {
    margin-top: 3px;

    font-style: italic;
}


.employee-check-good {
    border-color: var(--success, #3fa66b);
}


.employee-check-warning {
    border-color: var(--warning, #d7a33d);
}


.employee-check-danger {
    border-color: var(--danger, #dc5c5c);
}


.employee-check-danger ul {
    margin: 3px 0;
    padding-left: 20px;

    color: var(--text);
}


.employee-check-loading {
    opacity: 0.7;
}


.employee-check-neutral {
    border-color: var(--border);
}

/* ---------------------------------------------------------
   Shift details
--------------------------------------------------------- */

.shift-details-panel {
    max-width: 850px;

    margin-top: 20px;
}


.shift-details-panel[hidden] {
    display: none;
}


.shift-details-content {
    display: flex;
    flex-direction: column;

    gap: 18px;
}


.shift-details-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 10px;
}


.shift-detail-item {
    display: flex;
    flex-direction: column;

    gap: 4px;

    min-width: 0;

    padding: 12px;

    border: 1px solid var(--border);
    border-radius: 9px;

    background: var(--surface-alt);
}


.shift-detail-label {
    color: var(--text-muted);

    font-size: 0.7rem;
    font-weight: 650;

    text-transform: uppercase;
    letter-spacing: 0.035em;
}


.shift-detail-item strong {
    overflow: hidden;

    color: var(--text);

    font-size: 0.85rem;

    text-overflow: ellipsis;
}


.shift-details-notes {
    padding: 13px;

    border: 1px solid var(--border);
    border-radius: 9px;

    background: var(--surface-alt);
}


.shift-details-notes p {
    margin: 7px 0 0;

    color: var(--text);

    font-size: 0.82rem;
    line-height: 1.5;
}


.shift-details-actions {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;

    gap: 8px;

    margin-top: 18px;
}


.shift-details-readonly {
    color: var(--text-muted);

    font-size: 0.78rem;
}


/* ---------------------------------------------------------
   Destructive button
--------------------------------------------------------- */

.button-danger {
    border-color: var(--danger, #dc5c5c);

    background: transparent;
    color: var(--danger, #dc5c5c);
}


.button-danger:hover {
    background: var(--danger, #dc5c5c);
    color: #fff;
}


/* ---------------------------------------------------------
   Responsive details
--------------------------------------------------------- */

@media (max-width: 800px) {

    .shift-details-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}


@media (max-width: 520px) {

    .shift-details-grid {
        grid-template-columns: 1fr;
    }


    .shift-details-actions {
        flex-direction: column;
    }


    .shift-details-actions .button {
        width: 100%;
    }

}
/* ---------------------------------------------------------
   Leave requests
--------------------------------------------------------- */
.request-card-list { display:flex; flex-direction:column; gap:12px; }
.request-card { padding:16px; border:1px solid var(--border); border-radius:12px; background:var(--surface); }
.request-card-clickable { cursor:pointer; transition:border-color .15s ease, transform .15s ease; }
.request-card-clickable:hover { border-color:var(--primary); transform:translateY(-1px); }
.request-card-head,.request-card-foot { display:flex; align-items:flex-start; justify-content:space-between; gap:14px; }
.request-card-head>div { display:flex; flex-direction:column; gap:4px; }
.request-card-head span,.request-card-foot { color:var(--text-muted); font-size:.8rem; }
.request-card p { margin:12px 0; line-height:1.5; }
.request-card-foot { margin-top:14px; align-items:center; }
.request-status { display:inline-flex; padding:5px 9px; border-radius:999px; background:var(--surface-alt); font-size:.7rem; font-weight:750; text-transform:capitalize; }
.request-status-approved { background:var(--primary-soft); color:var(--primary); }
.request-status-denied { background:rgba(220,92,92,.12); color:var(--danger,#dc5c5c); }
.request-status-cancelled { opacity:.7; }
.request-comment,.request-detail-note { display:flex; flex-direction:column; gap:6px; margin-top:14px; padding:12px; border:1px solid var(--border); border-radius:9px; background:var(--surface-alt); }
.request-comment span,.request-detail-note p { margin:0; font-size:.84rem; line-height:1.5; }
.request-filter { min-width:170px; }
.request-details-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
.request-details-grid>div { display:flex; flex-direction:column; gap:4px; padding:12px; border:1px solid var(--border); border-radius:9px; background:var(--surface-alt); }
.request-details-grid span,.request-detail-note>span { color:var(--text-muted); font-size:.7rem; font-weight:650; text-transform:uppercase; letter-spacing:.035em; }
.request-impact { margin-top:18px; }
.request-impact h3 { margin:0 0 10px; font-size:.95rem; }
.request-impact ul { list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:7px; }
.request-impact li { display:flex; justify-content:space-between; gap:12px; padding:10px 12px; border:1px solid var(--border); border-radius:9px; background:var(--surface-alt); font-size:.82rem; }
.request-readonly { margin-top:16px; color:var(--text-muted); font-size:.82rem; }
@media(max-width:760px){.request-details-grid{grid-template-columns:repeat(2,minmax(0,1fr));}.request-card-head,.request-card-foot{align-items:stretch;flex-direction:column;}.request-filter{width:100%;}}
@media(max-width:520px){.request-details-grid{grid-template-columns:1fr;}}

/* ---------------------------------------------------------
   Request lifecycle tabs and history pagination
--------------------------------------------------------- */
.request-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}
.request-tab {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: var(--surface-alt);
    color: var(--text-muted);
    font: inherit;
    font-size: .8rem;
    font-weight: 700;
    cursor: pointer;
}
.request-tab:hover { border-color: var(--primary); color: var(--text); }
.request-tab.active { border-color: var(--primary); background: var(--primary-soft); color: var(--primary); }
.request-tab span {
    min-width: 20px;
    padding: 2px 6px;
    border-radius: 999px;
    background: var(--surface);
    text-align: center;
    font-size: .68rem;
}
.request-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 18px;
}
.request-pagination[hidden] { display: none; }
.request-pagination span { color: var(--text-muted); font-size: .8rem; }
@media(max-width:520px){.request-tabs{display:grid;grid-template-columns:1fr;}.request-tab{justify-content:space-between;}.request-pagination{justify-content:space-between;}}

/* ---------------------------------------------------------
   Notifications
--------------------------------------------------------- */
.notification-menu{position:relative;margin-left:auto}.notification-bell{position:relative;width:40px;height:40px;display:grid;place-items:center;border:1px solid var(--border);border-radius:10px;background:var(--surface);color:var(--text);cursor:pointer}.notification-bell svg{width:20px;height:20px;fill:currentColor}.notification-badge{position:absolute;top:-6px;right:-6px;min-width:20px;height:20px;padding:0 5px;display:grid;place-items:center;border-radius:999px;background:var(--danger,#dc5c5c);color:#fff;font-size:.65rem;font-weight:800}.notification-dropdown{position:absolute;z-index:100;right:0;top:48px;width:min(390px,calc(100vw - 24px));border:1px solid var(--border);border-radius:12px;background:var(--surface);box-shadow:0 16px 40px rgba(0,0,0,.18);overflow:hidden}.notification-dropdown[hidden]{display:none}.notification-dropdown-head{display:flex;justify-content:space-between;align-items:center;padding:12px 14px;border-bottom:1px solid var(--border)}.notification-dropdown-head button{border:0;background:none;color:var(--primary);font:inherit;font-size:.75rem;cursor:pointer}.notification-dropdown-list{max-height:420px;overflow:auto}.notification-item{display:block;padding:12px 14px;border-bottom:1px solid var(--border);color:inherit;text-decoration:none}.notification-item.unread{background:var(--primary-soft)}.notification-item strong{display:block;font-size:.82rem}.notification-item p{margin:4px 0;color:var(--text-muted);font-size:.76rem;line-height:1.4}.notification-item time{font-size:.67rem;color:var(--text-muted)}.notification-item.important{border-left:3px solid var(--primary)}.notification-item.critical{border-left:3px solid var(--danger,#dc5c5c)}.notification-view-all{display:block;padding:11px 14px;text-align:center;color:var(--primary);font-size:.78rem;font-weight:700;text-decoration:none}.notification-empty{padding:24px 14px;text-align:center;color:var(--text-muted);font-size:.8rem}.notification-page-list{display:flex;flex-direction:column;gap:10px}.notification-page-item{display:flex;justify-content:space-between;gap:16px;padding:14px;border:1px solid var(--border);border-radius:10px;background:var(--surface-alt);cursor:pointer}.notification-page-item.unread{border-color:var(--primary)}.notification-page-item strong{display:block;margin:3px 0}.notification-page-item p{margin:4px 0;color:var(--text-muted);font-size:.82rem}.notification-page-item time{color:var(--text-muted);font-size:.7rem}.notification-severity-label{font-size:.65rem;text-transform:uppercase;font-weight:800;color:var(--text-muted)}


/* ---------------------------------------------------------
   Live in-app notifications
--------------------------------------------------------- */

.notification-bell-new {
    animation: notification-bell-pulse 0.55s ease-in-out 2;
}

@keyframes notification-bell-pulse {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.12);
    }
}

.notification-toast-container {
    position: fixed;
    z-index: 1000;
    top: 76px;
    right: 20px;
    width: min(360px, calc(100vw - 32px));
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.notification-toast {
    display: block;
    padding: 13px 14px;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: var(--surface);
    color: var(--text);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.18);
    text-decoration: none;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: auto;
}

.notification-toast.show {
    opacity: 1;
    transform: translateY(0);
}

.notification-toast.important {
    border-left: 3px solid var(--primary);
}

.notification-toast.critical {
    border-left: 3px solid var(--danger, #dc5c5c);
}

.notification-toast strong {
    display: block;
    font-size: 0.84rem;
}

.notification-toast p {
    margin: 5px 0 0;
    color: var(--text-muted);
    font-size: 0.77rem;
    line-height: 1.45;
}

@media (max-width: 600px) {
    .notification-toast-container {
        top: 68px;
        right: 12px;
        width: calc(100vw - 24px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .notification-bell-new {
        animation: none;
    }

    .notification-toast {
        transition: none;
    }
}

/* Schedule week publication */
.schedule-week-publication {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: 0 0 20px;
    padding: 18px 20px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface);
}
.schedule-week-publication[hidden] { display: none; }
.schedule-week-publication-heading { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.schedule-week-publication-heading strong { font-size: 1rem; }
.schedule-week-publication-heading span { color: var(--text-muted); font-size: .9rem; }
.schedule-week-publication p { margin: 5px 0 0; color: var(--text-muted); font-size: .9rem; }
@media (max-width: 720px) {
    .schedule-week-publication { align-items: stretch; flex-direction: column; }
    .schedule-week-publication .button { width: 100%; }
}

.field-hint { display:block; margin-top:6px; font-size:.82rem; opacity:.75; }

/* Multi-department management */
.topbar-department { margin-left: auto; min-width: 190px; max-width: 280px; }
.topbar-department .form-control { width: 100%; }
@media (max-width: 760px) { .topbar-department { min-width: 0; max-width: 170px; } }


/* ---------------------------------------------------------
   Form normalization / cross-browser consistency
--------------------------------------------------------- */

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
    margin-bottom: 14px;
}

.form-grid > .form-group {
    margin-bottom: 0;
}

.form-group label {
    font-size: 0.82rem;
    font-weight: 650;
}

.form-control {
    box-sizing: border-box;
    max-width: 100%;
    font: inherit;
    line-height: 1.35;
}

input.form-control,
select.form-control,
textarea.form-control {
    border: 1px solid var(--border);
    border-radius: 9px;
    background-color: var(--surface);
    color: var(--text);
}

textarea.form-control {
    min-height: 96px;
    resize: vertical;
}

select.form-control {
    cursor: pointer;
}

.form-control::placeholder {
    color: var(--text-muted);
    opacity: 0.8;
}

.form-control:disabled,
.form-control[readonly] {
    cursor: not-allowed;
    opacity: 0.65;
}

.form-control:focus-visible {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-soft);
}

/* Department administration uses the shared component system. */
.department-admin-header {
    align-items: center;
    flex-wrap: wrap;
}

.department-admin-header h2,
.department-card-title h3 {
    margin: 0;
}

.department-admin-header p {
    margin: 6px 0 0;
}

.department-admin-message,
.department-list,
.department-card,
.access-card {
    margin-top: 16px;
}

.department-card-layout {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.department-card-title,
.department-card-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.department-card-actions {
    gap: 8px;
}

.department-modal {
    width: min(100%, 560px);
}

.access-select {
    width: auto;
    min-width: 120px;
}

@media (max-width: 640px) {
    .department-card-layout {
        flex-direction: column;
    }

    .department-card-actions {
        width: 100%;
    }

    .department-card-actions .button {
        flex: 1 1 auto;
    }

    .access-select {
        width: 100%;
    }
}


/* Audit Log ------------------------------------------------------------- */
.audit-filters{display:grid;grid-template-columns:repeat(3,minmax(150px,1fr));gap:12px;margin:18px 0}.audit-list{display:grid;gap:12px;margin-top:14px}.audit-entry{border:1px solid var(--border);border-radius:var(--radius-lg);padding:16px;background:var(--surface)}.audit-entry-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-start}.audit-entry-head>div{display:grid;gap:4px}.audit-entry-head span,.audit-entry-head time,.audit-meta,.muted-text{color:var(--text-muted);font-size:.84rem}.audit-target{margin-top:12px}.audit-diff{display:grid;gap:7px;margin-top:12px;padding:12px;border-radius:var(--radius-md);background:var(--surface-muted)}.audit-diff>div{display:grid;grid-template-columns:minmax(130px,220px) 1fr;gap:12px}.audit-diff strong{text-transform:capitalize}.audit-meta{margin-top:12px}.pagination-row{display:flex;justify-content:center;align-items:center;gap:14px;margin-top:18px}@media(max-width:900px){.audit-filters{grid-template-columns:1fr 1fr}.audit-entry-head{flex-direction:column}.audit-diff>div{grid-template-columns:1fr}}@media(max-width:600px){.audit-filters{grid-template-columns:1fr}}

/* Shift swaps v1 */
.swap-list-heading { margin-top: 24px; }
.swap-actions { margin-top: 12px; }

/* Schedule quality / publish review */
.schedule-publication-actions { display:flex; gap:10px; align-items:center; flex-wrap:wrap; }
.schedule-quality-modal { width:min(860px, calc(100vw - 32px)); max-height:88vh; overflow:auto; }
.schedule-quality-summary { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; margin-bottom:22px; }
.schedule-quality-summary > div { padding:14px; border:1px solid var(--border); border-radius:12px; background:var(--surface); }
.schedule-quality-summary strong { display:block; font-size:1.25rem; }
.schedule-quality-summary span { display:block; margin-top:4px; color:var(--text-muted); font-size:.85rem; }
.schedule-quality-modal h3 { margin:22px 0 10px; }
.schedule-quality-issues { display:grid; gap:8px; }
.schedule-quality-issue { display:grid; grid-template-columns:90px 1fr; gap:12px; padding:11px 12px; border:1px solid var(--border); border-radius:10px; }
.schedule-quality-issue.is-error { border-color:var(--danger, #c84a4a); }
.schedule-quality-issue.is-warning { border-color:var(--warning, #c7952f); }
.schedule-quality-issue.is-ok { border-color:var(--success, #4b9b68); }
.schedule-quality-hours th:not(:first-child), .schedule-quality-hours td:not(:first-child) { text-align:right; }
@media (max-width:720px) { .schedule-publication-actions { width:100%; } .schedule-publication-actions .button { flex:1; } .schedule-quality-summary { grid-template-columns:repeat(2,minmax(0,1fr)); } .schedule-quality-issue { grid-template-columns:1fr; gap:3px; } }


/* JRS v1.0 profile / entry-point polish */
.jrs-home-body{min-height:100vh;background:var(--bg-primary);color:var(--text-primary);display:grid;place-items:center;padding:32px}
.jrs-home-shell{width:min(760px,100%)}
.jrs-home-card{background:var(--bg-secondary);border:1px solid var(--border-color);border-radius:24px;padding:clamp(32px,7vw,72px);box-shadow:0 24px 70px rgba(0,0,0,.14)}
.jrs-home-logo,.profile-avatar-large{display:grid;place-items:center;background:var(--accent-primary);color:#fff;font-weight:800}
.jrs-home-logo{width:56px;height:56px;border-radius:16px;font-size:26px;margin-bottom:26px}.jrs-home-eyebrow{text-transform:uppercase;letter-spacing:.18em;font-size:.78rem;font-weight:800;color:var(--text-secondary);margin:0 0 12px}.jrs-home-card h1{font-size:clamp(2rem,5vw,3.6rem);line-height:1.06;margin:0 0 20px}.jrs-home-copy{max-width:580px;font-size:1.08rem;line-height:1.7;color:var(--text-secondary)}.jrs-home-actions{margin:32px 0}.jrs-home-meta{padding-top:24px;border-top:1px solid var(--border-color);display:flex;justify-content:space-between;gap:16px;color:var(--text-secondary);font-size:.9rem}.jrs-home-meta a{color:var(--accent-primary);text-decoration:none}
.profile-page{max-width:1180px}.profile-hero{display:flex;align-items:center;gap:18px}.profile-hero h2{margin:0 0 5px}.profile-hero p{margin:0;color:var(--text-secondary)}.profile-avatar-large{width:58px;height:58px;border-radius:18px;font-size:1.15rem}.profile-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:18px}.profile-form .form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.profile-span{grid-column:1/-1}.profile-actions{display:flex;justify-content:flex-end;margin-top:18px}.profile-security-row{display:flex;align-items:center;justify-content:space-between;gap:20px}.profile-security-row div{display:flex;flex-direction:column;gap:5px}.profile-security-row span{color:var(--text-secondary);font-size:.9rem}.profile-details{margin:0}.profile-details>div{display:flex;justify-content:space-between;gap:24px;padding:13px 0;border-bottom:1px solid var(--border-color)}.profile-details>div:last-child{border-bottom:0}.profile-details dt{color:var(--text-secondary)}.profile-details dd{margin:0;font-weight:650;text-align:right}.auth-brand-stacked{align-items:center;text-align:center;flex-direction:column}.auth-brand-stacked .auth-logo{margin-bottom:10px}
@media(max-width:700px){.jrs-home-body{padding:16px}.jrs-home-card{border-radius:18px}.jrs-home-meta,.profile-security-row{align-items:flex-start;flex-direction:column}.profile-form .form-grid{grid-template-columns:1fr}.profile-span{grid-column:auto}.profile-actions .button{width:100%}}


/* JRS v1 polish */
.sidebar-logo-jrs { font-size: 0.78rem; font-weight: 800; letter-spacing: -0.03em; }
.jrs-home-logo-wordmark { width: auto; min-width: 5.5rem; padding: 0 1rem; font-size: 1.35rem; letter-spacing: 0.08em; }
.jrs-home-card > h1 { font-size: clamp(1.8rem, 4vw, 3rem); margin-top: 1.25rem; }
.jrs-home-meta-feedback { justify-content: flex-end; }
