:root {
    --brand-900: #073b30;
    --brand-800: #09513f;
    --brand-700: #0f6b4f;
    --brand-600: #12815e;
    --brand-100: #dff4eb;
    --brand-50: #f0faf6;
    --blue: #1677ff;
    --blue-100: #e8f3ff;
    --green: #1f9d68;
    --green-100: #e6f7ef;
    --amber: #d98910;
    --amber-100: #fff5dc;
    --purple: #7656d6;
    --purple-100: #f1edff;
    --red: #d84a4a;
    --red-100: #fff0f0;
    --slate: #667085;
    --ink: #14221d;
    --text: #32433c;
    --muted: #76857f;
    --line: #e4eae7;
    --line-soft: #edf1ef;
    --surface: #ffffff;
    --canvas: #f5f7f6;
    --sidebar: #0a342b;
    --shadow-sm: 0 1px 2px rgba(16, 39, 31, .04), 0 4px 14px rgba(16, 39, 31, .035);
    --shadow-md: 0 16px 44px rgba(13, 48, 37, .13);
    --radius: 12px;
    --radius-lg: 16px;
    --sidebar-width: 264px;
    font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text);
    background: var(--canvas);
    font-synthesis: none;
}

/* Professional weekly planning */
.planning-command {
    display: grid;
    min-height: 78px;
    grid-template-columns: auto auto 1fr auto;
    align-items: center;
    gap: 18px;
    margin-bottom: 14px;
    padding: 13px 16px;
}

.planning-projects {
    margin: 18px 0 16px;
}

.planning-projects-heading,
.project-board-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 10px;
}

.planning-projects-heading h2,
.project-board-heading h2 {
    margin: 2px 0 0;
    color: var(--ink);
    font-size: 16px;
}

.planning-projects-heading > span,
.project-board-heading > span {
    color: var(--muted);
    font-size: 8.5px;
}

.project-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 320px));
    gap: 10px;
}

.project-card {
    display: grid;
    min-height: 154px;
    align-content: start;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    box-shadow: var(--shadow-sm);
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.project-card:hover,
.project-card.is-selected {
    border-color: #83c7ad;
    box-shadow: 0 10px 26px rgba(15, 107, 79, .1);
    transform: translateY(-1px);
}

.project-card.is-selected {
    background: linear-gradient(145deg, #fff, #f1faf6);
}

.project-card header,
.project-card footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.project-card header span,
.project-card header b {
    color: var(--muted);
    font-size: 7px;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.project-card header b {
    padding: 3px 6px;
    border-radius: 5px;
    background: var(--brand-50);
    color: var(--brand-700);
}

.project-card h3 {
    margin: 13px 0 3px;
    color: var(--ink);
    font-size: 12px;
}

.project-card p {
    margin: 0;
    overflow: hidden;
    color: var(--muted);
    font-size: 7.5px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.project-card-progress {
    height: 5px;
    margin: 15px 0 9px;
    overflow: hidden;
    border-radius: 999px;
    background: #e8efeb;
}

.project-card-progress i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--brand-600), #49b88f);
}

.project-card footer {
    justify-content: flex-start;
    margin-top: auto;
}

.project-card footer span {
    color: var(--muted);
    font-size: 7px;
}

.project-card footer strong {
    color: var(--ink);
}

.project-card-empty {
    place-items: center;
    border-style: dashed;
    color: var(--brand-700);
    cursor: pointer;
    text-align: center;
}

.project-card-empty span {
    color: var(--muted);
    font-size: 8px;
}

.project-board-heading {
    margin-top: 22px;
}

.planning-empty-state {
    min-height: 300px;
}

.planning-week-navigation,
.planning-kpis,
.planning-period,
.planning-period span {
    display: flex;
    align-items: center;
}

.planning-week-navigation {
    gap: 8px;
}

.planning-week-navigation > .icon-button:first-child svg {
    transform: rotate(180deg);
}

.planning-period {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
    padding-left: 18px;
    border-left: 1px solid var(--line);
}

.planning-period span {
    gap: 5px;
    color: var(--muted);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.planning-period strong {
    color: var(--ink);
    font-size: 10px;
}

.planning-kpis {
    justify-content: flex-end;
    gap: 7px;
}

.planning-kpis > span {
    padding: 7px 9px;
    border: 1px solid #e1e9e5;
    border-radius: 8px;
    background: #f8fbf9;
    color: var(--muted);
    font-size: 8px;
    white-space: nowrap;
}

.planning-kpis strong {
    margin-right: 2px;
    color: var(--ink);
    font-size: 11px;
}

.planning-kpis .is-success {
    border-color: #cce9dc;
    background: #f0faf5;
    color: var(--brand-700);
}

.planning-kpis .is-warning {
    border-color: #f2d9b0;
    background: #fff8ec;
    color: #a96708;
}

.professional-kanban {
    align-items: start;
}

.professional-kanban .kanban-column {
    min-height: 610px;
    padding: 9px;
    background: #f3f6f4;
}

.professional-kanban .kanban-heading {
    height: 42px;
}

.professional-kanban .kanban-heading small {
    color: #9aa7a1;
    font-size: 7px;
}

.professional-kanban .kanban-items {
    min-height: 548px;
    padding: 2px;
    transition: background .15s ease, outline-color .15s ease;
}

.professional-kanban .kanban-items.drag-over {
    background: rgba(41, 151, 108, .07);
}

.professional-task-card {
    cursor: default;
    transition: box-shadow .15s ease, transform .15s ease, opacity .15s ease;
}

.professional-task-card.is-draggable {
    cursor: grab;
}

.professional-task-card.is-draggable:active {
    cursor: grabbing;
}

.professional-task-card:hover {
    border-color: #cbd9d2;
    box-shadow: 0 8px 22px rgba(25, 52, 42, .08);
    transform: translateY(-1px);
}

.professional-task-card.is-saving {
    pointer-events: none;
    opacity: .65;
}

.task-meta > div {
    display: flex;
    align-items: center;
    gap: 5px;
}

.priority-urgent {
    background: #861d27;
    color: #fff;
}

.shared-task-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 3px 6px;
    border-radius: 5px;
    background: #edf5ff;
    color: #2d6ea8;
    font-size: 7px;
    font-weight: 700;
}

.task-progress-value {
    color: var(--brand-700);
    font-size: 8px;
    font-weight: 750;
}

.task-assignees {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin: 10px 0;
}

.task-assignees > span {
    overflow: hidden;
    color: var(--muted);
    font-size: 7.5px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.avatar-stack {
    display: flex;
    padding-left: 4px;
}

.avatar-stack .avatar {
    margin-left: -4px;
    border: 2px solid #fff;
}

.subtask-block {
    margin: 10px -2px 3px;
    padding: 8px;
    border: 1px solid #e5ebe8;
    border-radius: 8px;
    background: #fafcfb;
}

.subtask-heading,
.subtask-row {
    display: flex;
    align-items: center;
}

.subtask-heading {
    justify-content: space-between;
    margin-bottom: 5px;
    color: var(--muted);
    font-size: 7px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.subtask-heading strong {
    color: var(--brand-700);
}

.subtask-list {
    display: grid;
    gap: 4px;
}

.subtask-row {
    min-width: 0;
    gap: 6px;
}

.subtask-row button {
    display: grid;
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    place-items: center;
    border: 1px solid #bfcac5;
    border-radius: 5px;
    background: #fff;
    color: transparent;
    cursor: pointer;
}

.subtask-row button:disabled {
    cursor: default;
}

.subtask-row span {
    overflow: hidden;
    color: #53625c;
    font-size: 8px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.subtask-row.is-complete button {
    border-color: var(--brand-600);
    background: var(--brand-600);
    color: #fff;
}

.subtask-row.is-complete span {
    color: #95a09b;
    text-decoration: line-through;
}

.professional-task-card footer {
    min-height: 27px;
}

.professional-task-card footer > span {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--muted);
    font-size: 8px;
}

.task-add-subtask {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 3px 4px;
    border: 0;
    border-radius: 5px;
    background: transparent;
    color: var(--brand-700);
    cursor: pointer;
    font: inherit;
    font-size: 7.5px;
    font-weight: 650;
}

.task-add-subtask:hover {
    background: var(--brand-50);
}

.daily-report-section {
    margin-top: 24px;
}

.daily-overview {
    display: flex;
    min-height: 74px;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 13px 16px;
}

.daily-overview .planning-week-navigation > div {
    display: grid;
    min-width: 190px;
    text-align: center;
}

.daily-overview .planning-week-navigation > div span {
    color: var(--muted);
    font-size: 7.5px;
    text-transform: uppercase;
}

.daily-overview .planning-week-navigation > div strong {
    color: var(--ink);
    font-size: 10px;
}

.daily-overview-metrics {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 7px;
}

.daily-overview-metrics > span {
    padding: 7px 9px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8faf9;
    color: var(--muted);
    font-size: 8px;
}

.daily-overview-metrics strong {
    margin-right: 2px;
    color: var(--ink);
    font-size: 11px;
}

.daily-overview-metrics .is-success {
    border-color: #cce9dc;
    background: #f0faf5;
    color: var(--brand-700);
}

.daily-overview-metrics .is-warning {
    border-color: #f2d9b0;
    background: #fff8ec;
    color: #a96708;
}

.daily-report-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 12px;
}

.daily-report-heading h2 {
    margin: 3px 0;
    color: var(--ink);
    font-size: 18px;
}

.daily-report-heading p {
    margin: 0;
    color: var(--muted);
    font-size: 9px;
}

.daily-date-filter {
    display: flex;
    align-items: flex-end;
    gap: 7px;
}

.daily-date-filter label,
.daily-date-filter label span {
    display: block;
}

.daily-date-filter label span {
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 8px;
}

.daily-date-filter input {
    height: 34px;
    padding: 0 9px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    font-size: 9px;
}

.daily-report-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    align-items: start;
}

.daily-report-layout.is-supervision-only {
    grid-template-columns: 1fr;
}

.daily-entry-card,
.daily-control-card {
    padding: 16px;
}

.daily-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.daily-task-picker,
.task-assignee-picker {
    margin: 0;
    padding: 11px;
    border: 1px solid var(--line);
    border-radius: 9px;
}

.daily-task-picker legend,
.task-assignee-picker legend {
    padding: 0 5px;
    color: var(--ink);
    font-size: 9px;
    font-weight: 700;
}

.daily-task-picker {
    display: grid;
    max-height: 240px;
    gap: 5px;
    overflow-y: auto;
}

.daily-planning-reference {
    border: 1px solid #d6e5de;
    border-radius: 14px;
    background: #f7faf8;
    min-width: 0;
}

.daily-planning-reference summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    color: var(--ink);
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    list-style: none;
}

.daily-planning-reference summary::-webkit-details-marker {
    display: none;
}

.daily-planning-reference summary small {
    padding: 3px 6px;
    border-radius: 5px;
    background: var(--brand-50);
    color: var(--brand-700);
    font-size: 10px;
}

.daily-planning-reference .daily-task-picker {
    margin: 0;
    padding: 0 12px 12px;
    border: 0;
    min-width: 0;
    max-height: none;
    overflow: visible;
    gap: 7px;
}

.daily-planning-reference .daily-task-picker legend {
    padding: 0 0 6px;
    font-size: 11px;
    color: var(--muted);
}

.planning-reference-heading,
.planning-reference-summary-end {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.planning-reference-icon {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    border-radius: 12px;
    background: #e5f1eb;
    color: var(--brand-700);
}

.planning-reference-description {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 400;
    line-height: 1.5;
}

.planning-reference-chevron { display: flex; transform: rotate(90deg); }
.daily-planning-reference[open] .planning-reference-chevron { transform: rotate(-90deg); }
.daily-planning-reference summary:focus-visible { outline: 2px solid var(--brand-600); outline-offset: 3px; border-radius: 12px; }
.planning-reference-help { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.planning-reference-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
    align-items: start;
    gap: 7px;
    max-height: 280px;
    overflow-y: auto;
    padding: 2px;
}
.planning-reference-list:empty { display: none; }
.planning-reference-empty { display: grid; justify-items: center; gap: 5px; padding: 12px; border: 1px dashed #c8dbd1; border-radius: 10px; color: var(--muted); text-align: center; font-size: 12px; }
.planning-reference-empty strong { color: var(--ink); }

.daily-planning-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 0;
}

.daily-planning-actions .button {
    min-height: 31px;
}

.daily-task-picker label {
    display: grid;
    min-height: 0;
    min-width: 0;
    grid-template-columns: 18px minmax(0, 1fr);
    align-items: center;
    gap: 5px 8px;
    padding: 9px;
    border: 1px solid #e0e8e3;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
}

.daily-task-picker label:hover { border-color: #94bcaa; }
.daily-task-picker label > .status { grid-column: 2; justify-self: start; }
.daily-task-picker label:has(input:checked) { background: #eaf6ef; border-color: var(--brand-600); box-shadow: inset 3px 0 var(--brand-600); }
.daily-task-picker label:focus-within { outline: 2px solid var(--brand-600); outline-offset: 1px; }
.daily-task-picker input[type="checkbox"] { width: 18px; height: 18px; min-height: 0; margin: 0; accent-color: var(--brand-600); }

.daily-task-picker label > span:not(.status) {
    display: grid;
    min-width: 0;
    gap: 2px;
    overflow: hidden;
    color: #46534e;
    font-size: 8px;
}

.daily-task-picker label > span:not(.status) strong,
.daily-task-picker label > span:not(.status) small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    overflow-wrap: anywhere;
}

.daily-task-picker label > span:not(.status) strong {
    color: #46534e;
    font-size: 12px;
    line-height: 1.5;
}

.daily-task-picker label > span:not(.status) small {
    color: var(--muted);
    font-size: 10px;
    margin-top: 4px;
}

@media (max-width: 600px) {
    .daily-planning-reference summary { flex-wrap: wrap; padding: 12px; }
    .planning-reference-heading { flex: 1 1 200px; }
    .daily-planning-reference .daily-task-picker { padding: 0 12px 12px; }
    .daily-task-picker label { grid-template-columns: 18px minmax(0, 1fr); }
    .daily-task-picker label > .status { grid-column: 2; justify-self: start; }
    .daily-planning-actions .button { flex: 0 1 auto; justify-content: center; }
}

.daily-review-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 10px;
    border: 1px solid #f0c9a6;
    border-radius: 8px;
    background: #fff7ef;
    color: #9a541e;
}

.daily-review-note strong,
.daily-review-note span {
    display: block;
    font-size: 8px;
}

.daily-review-note span {
    margin-top: 2px;
    color: #775c49;
}

.form-help {
    margin-right: auto;
    color: var(--muted);
    font-size: 7.5px;
}

.daily-control-scroll {
    overflow-x: auto;
}

.daily-control-grid {
    min-width: 720px;
}

.daily-control-head,
.daily-control-row {
    display: grid;
    grid-template-columns: minmax(190px, 1.35fr) repeat(7, minmax(62px, .65fr));
    align-items: center;
    gap: 5px;
}

.daily-control-head {
    min-height: 42px;
    padding-bottom: 7px;
    border-bottom: 1px solid var(--line);
}

.daily-control-head > span {
    color: var(--muted);
    font-size: 7px;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
}

.daily-control-head > span:first-child {
    text-align: left;
}

.daily-control-head strong,
.daily-control-head small {
    display: block;
}

.daily-control-head small {
    margin-top: 2px;
    font-weight: 500;
}

.daily-control-row {
    min-height: 57px;
    border-bottom: 1px solid var(--line-soft);
}

.daily-employee {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 8px;
}

.daily-employee div {
    min-width: 0;
}

.daily-employee strong,
.daily-employee small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.daily-employee strong {
    color: var(--ink);
    font-size: 8.5px;
}

.daily-employee small {
    margin-top: 2px;
    color: var(--muted);
    font-size: 7px;
}

.daily-state {
    display: grid;
    min-height: 34px;
    place-items: center;
    border: 1px solid #e2e8e5;
    border-radius: 7px;
    background: #f7f9f8;
    color: #8d9994;
    font-size: 9px;
    font-weight: 800;
}

.daily-state small {
    display: block;
    margin-top: -7px;
    font-size: 5.8px;
    font-weight: 600;
}

.daily-state-reviewed {
    border-color: #bfe2d2;
    background: #ebf8f2;
    color: #167353;
}

.daily-state-submitted {
    border-color: #bdd7f1;
    background: #edf6ff;
    color: #2f72ad;
}

.daily-state-remote {
    border-color: #9fc9ef;
    background: #e8f4ff;
    color: #176cce;
}

.daily-state-needs-changes {
    border-color: #f0c79f;
    background: #fff5ea;
    color: #ae5d19;
}

.daily-state-leave {
    border-color: #d7c8ef;
    background: #f5f0fc;
    color: #7650a8;
}

.daily-state-absence,
.daily-state-absent {
    border-color: #efc3c3;
    background: #fff0f0;
    color: #b54646;
}

.daily-state-holiday {
    border-color: #f0d6a1;
    background: #fff7e5;
    color: #9a650d;
}

.daily-state-weekend {
    border-style: dashed;
    background: #fbfcfb;
    color: #aab3af;
}

.daily-state-future {
    border-style: dashed;
    background: #fbfcfb;
    color: #aab3af;
    cursor: default;
    opacity: .72;
    pointer-events: none;
}

.daily-state-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.daily-state-legend span {
    padding: 4px 7px;
    border-radius: 5px;
    background: #f1f4f2;
    color: var(--muted);
    font-size: 7px;
}

.daily-state-legend .reviewed { background: #ebf8f2; color: #167353; }
.daily-state-legend .submitted { background: #edf6ff; color: #2f72ad; }
.daily-state-legend .remote { background: #e8f4ff; color: #176cce; }
.daily-state-legend .needs-changes { background: #fff5ea; color: #ae5d19; }
.daily-state-legend .leave { background: #f5f0fc; color: #7650a8; }
.daily-state-legend .absence { background: #fff0f0; color: #b54646; }
.daily-state-legend .holiday { background: #fff7e5; color: #9a650d; }

.daily-global-section {
    margin-top: 22px;
}

.daily-global-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 10px;
}

.daily-global-heading h2 {
    margin: 2px 0;
    color: var(--ink);
    font-size: 17px;
}

.daily-global-heading p {
    margin: 0;
    color: var(--muted);
    font-size: 8.5px;
}

.daily-global-heading-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.daily-bulk-review-form {
    margin: 0;
}

.daily-bulk-review-form .button:disabled {
    cursor: default;
    opacity: .55;
}

.daily-global-filters {
    display: grid;
    grid-template-columns: minmax(145px, .75fr) minmax(220px, 1.4fr) minmax(150px, .8fr) minmax(150px, .8fr) auto;
    align-items: end;
    gap: 8px;
    padding: 12px;
}

.daily-global-filters label,
.daily-global-filters label > span {
    display: block;
}

.daily-global-filters label > span {
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 7.5px;
    font-weight: 700;
}

.daily-global-filters input,
.daily-global-filters select {
    width: 100%;
    height: 34px;
    padding: 0 9px;
    border: 1px solid var(--line);
    border-radius: 7px;
    outline: none;
    background: #fff;
    color: var(--ink);
    font-size: 8.5px;
}

.daily-global-list {
    display: grid;
    gap: 9px;
    margin-top: 10px;
}

.daily-global-row {
    display: grid;
    grid-template-columns: minmax(210px, .85fr) 105px minmax(280px, 1.45fr) minmax(220px, 1fr);
    align-items: start;
    gap: 16px;
    padding: 15px;
}

.daily-global-person {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 9px;
}

.daily-global-person > div {
    min-width: 0;
}

.daily-global-person h3 {
    margin: 1px 0;
    color: var(--ink);
    font-size: 11px;
}

.daily-global-person small {
    display: block;
    overflow: hidden;
    color: var(--muted);
    font-size: 7px;
    line-height: 1.45;
    text-overflow: ellipsis;
}

.daily-global-status {
    display: grid;
    justify-items: start;
    gap: 5px;
}

.daily-global-status .daily-state {
    width: 96px;
}

.daily-global-status > small,
.daily-global-review small {
    color: var(--muted);
    font-size: 6.8px;
}

.daily-global-work,
.daily-global-risks {
    min-width: 0;
}

.daily-global-work > strong,
.daily-global-risks strong {
    display: block;
    color: var(--muted);
    font-size: 7px;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.daily-global-work p,
.daily-global-risks p {
    margin: 4px 0 0;
    color: #46534e;
    font-size: 8.2px;
    line-height: 1.55;
}

.daily-global-risks {
    display: grid;
    gap: 10px;
}

.daily-global-risks > div:first-child p {
    color: #9a541e;
}

.daily-global-actions {
    display: flex;
    grid-column: 2 / -1;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    padding-top: 10px;
    border-top: 1px solid var(--line-soft);
}

.daily-global-actions input {
    width: min(440px, 100%);
    height: 32px;
    padding: 0 9px;
    border: 1px solid var(--line);
    border-radius: 7px;
    outline: none;
    font-size: 8px;
}

.daily-global-actions > div {
    display: flex;
    gap: 6px;
}

.daily-global-review {
    display: grid;
    grid-column: 2 / -1;
    justify-items: end;
    gap: 4px;
    padding-top: 8px;
    border-top: 1px solid var(--line-soft);
}

.daily-report-feed {
    display: grid;
    gap: 9px;
    margin-top: 14px;
}

.daily-report-card {
    display: grid;
    grid-template-columns: minmax(210px, .75fr) minmax(300px, 1.6fr) auto;
    align-items: start;
    gap: 15px;
    padding: 15px;
}

.daily-report-author {
    display: flex;
    align-items: center;
    gap: 9px;
}

.daily-report-author h3 {
    margin: 1px 0;
    color: var(--ink);
    font-size: 11px;
}

.daily-report-author small,
.daily-report-side small {
    color: var(--muted);
    font-size: 7px;
}

.daily-report-content > strong {
    color: var(--muted);
    font-size: 7px;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.daily-report-content p {
    margin: 4px 0 0;
    color: #46534e;
    font-size: 8.5px;
    line-height: 1.55;
}

.daily-report-content > strong:not(:first-child) {
    display: block;
    margin-top: 10px;
}

.daily-report-content .daily-report-blockers {
    color: #9a541e;
}

.daily-report-task-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 8px;
}

.daily-report-task-tags span {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 4px 6px;
    border-radius: 5px;
    background: var(--brand-50);
    color: var(--brand-700);
    font-size: 7px;
}

.daily-report-side {
    display: grid;
    justify-items: end;
    gap: 6px;
}

.blocker-flag {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    color: #b05a17;
    font-size: 7px;
}

.daily-review-form {
    display: flex;
    grid-column: 1 / -1;
    justify-content: flex-end;
    gap: 6px;
    padding-top: 11px;
    border-top: 1px solid var(--line-soft);
}

.daily-review-form input {
    min-width: 280px;
    height: 32px;
    padding: 0 9px;
    border: 1px solid var(--line);
    border-radius: 7px;
    font: inherit;
    font-size: 8px;
}

.status.status-reviewed {
    background: #e7f7ef;
    color: #167353;
}

.status.status-needs-changes {
    background: #fff0df;
    color: #a95714;
}

.modal-context {
    margin: 3px 0 0;
    color: var(--muted);
    font-size: 8px;
}

.task-assignee-picker > p {
    margin: 0 0 8px;
    color: var(--muted);
    font-size: 8px;
}

.task-assignee-picker > div {
    display: grid;
    max-height: 150px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
    overflow-y: auto;
}

.task-assignee-picker label {
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr);
    align-items: center;
    gap: 6px;
    min-height: 34px;
    padding: 5px 7px;
    border-radius: 7px;
    background: #f7faf8;
}

.task-assignee-picker label strong {
    overflow: hidden;
    color: #46534e;
    font-size: 8px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.task-overview-command {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 16px;
    padding: 14px 16px;
}

.task-overview-command .daily-overview-metrics {
    justify-content: flex-end;
}

.task-overview-command .planning-week-navigation {
    padding: 7px;
    border: 1px solid var(--line-soft);
    border-radius: 10px;
    background: #fbfdfc;
}

.task-overview-command .planning-week-navigation > div {
    display: grid;
    min-width: 205px;
    justify-items: center;
    gap: 2px;
}

.task-overview-command .planning-week-navigation > div span {
    color: var(--muted);
    font-size: 7.5px;
    font-weight: 800;
    text-transform: uppercase;
}

.task-overview-command .planning-week-navigation > div strong {
    color: var(--ink);
    font-size: 10px;
}

.task-export-dialog {
    width: min(560px, 100%);
}

.task-export-modal-form {
    display: grid;
    gap: 16px;
}

.task-export-modal-fields {
    display: grid;
    grid-template-columns: 145px minmax(0, 1fr);
    gap: 10px;
}

.task-export-modal-fields label,
.task-export-modal-fields label > span {
    display: block;
}

.task-export-modal-fields label > span {
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 7.5px;
    font-weight: 800;
    text-transform: uppercase;
}

.task-export-modal-fields input,
.task-export-modal-fields select {
    width: 100%;
    height: 34px;
    padding: 0 9px;
    border: 1px solid var(--line);
    border-radius: 7px;
    outline: none;
    background: #fff;
    color: var(--ink);
    font-size: 8.5px;
}

.task-overview-filters {
    display: grid;
    gap: 12px;
    margin-top: 12px;
    padding: 12px;
}

.task-filter-row {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) minmax(260px, 1fr) auto;
    align-items: stretch;
    gap: 10px;
}

.task-filter-row.is-simple {
    grid-template-columns: minmax(210px, 320px) auto;
    justify-content: start;
}

.task-filter-row.is-simple .task-filter-fields {
    grid-template-columns: 1fr;
}

.task-filter-group {
    min-width: 0;
    margin: 0;
    padding: 11px;
    border: 1px solid var(--line-soft);
    border-radius: 10px;
    background: #fbfdfc;
}

.task-filter-group legend {
    padding: 0 5px;
    color: var(--ink);
    font-size: 8px;
    font-weight: 800;
}

.task-filter-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.task-filter-fields label,
.task-filter-fields label > span {
    display: block;
}

.task-filter-fields label > span {
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 7.5px;
    font-weight: 700;
}

.task-overview-filters input,
.task-overview-filters select {
    width: 100%;
    height: 34px;
    padding: 0 9px;
    border: 1px solid var(--line);
    border-radius: 7px;
    outline: none;
    background: #fff;
    color: var(--ink);
    font-size: 8.5px;
}

.task-overview-filters select:disabled {
    background: #f5f7f6;
    color: var(--muted);
}

.task-filter-collaborators {
    padding-bottom: 9px;
}

.task-collaborator-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
    gap: 8px;
    padding: 2px;
}

.task-collaborator-card {
    position: relative;
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    grid-template-rows: auto auto;
    min-width: 0;
    min-height: 46px;
    align-items: center;
    column-gap: 8px;
    row-gap: 1px;
    padding: 7px 9px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease, background .15s ease;
    user-select: none;
}

.task-collaborator-card:hover,
.task-collaborator-card.is-selected,
.task-collaborator-card:has(input:checked) {
    border-color: #86c8ae;
    background: #f4fbf8;
    box-shadow: 0 8px 20px rgba(15, 107, 79, .08);
    transform: translateY(-1px);
}

.task-collaborator-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.task-collaborator-card .avatar {
    width: 24px;
    height: 24px;
    grid-row: 1 / span 2;
}

.task-collaborator-card strong,
.task-collaborator-card small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.task-collaborator-card strong {
    color: var(--ink);
    font-size: 8.5px;
}

.task-collaborator-card small {
    color: var(--muted);
    font-size: 7px;
}

.task-collaborator-card.is-disabled {
    cursor: default;
}

.task-filter-reset {
    display: flex;
    align-items: end;
    justify-content: flex-end;
    padding-bottom: 1px;
}

.task-filter-reset .button {
    min-height: 100%;
    white-space: nowrap;
}

.task-overview-list {
    display: grid;
    gap: 9px;
    margin-top: 12px;
}

.task-overview-row {
    display: grid;
    grid-template-columns: minmax(260px, 1.55fr) minmax(185px, .9fr) minmax(165px, .75fr) minmax(130px, .65fr) minmax(160px, .75fr);
    align-items: center;
    gap: 15px;
    padding: 15px;
}

.task-overview-row.is-subtask {
    border-left: 3px solid #dbeee6;
}

.daily-task-overview-row {
    grid-template-columns: minmax(340px, 1.4fr) minmax(190px, .7fr) minmax(175px, .65fr) minmax(250px, .95fr);
}

.daily-task-overview-row.is-free {
    border-left: 3px solid #cce9dc;
}

.daily-task-overview-row.is-referenced {
    border-left: 3px solid #bdd7f1;
}

.task-overview-main,
.task-overview-owner,
.task-overview-project,
.task-overview-progress,
.task-overview-assignees,
.task-overview-notes {
    min-width: 0;
}

.task-overview-titleline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.task-overview-main h3 {
    margin: 5px 0 3px;
    color: var(--ink);
    font-size: 12px;
}

.task-overview-main p,
.task-overview-main small {
    display: block;
    margin: 0;
    overflow: hidden;
    color: var(--muted);
    font-size: 8px;
    line-height: 1.45;
    text-overflow: ellipsis;
}

.task-overview-main p {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.daily-task-overview-row .task-overview-main p {
    display: block;
    overflow: visible;
    white-space: pre-line;
}

.task-overview-owner {
    display: flex;
    align-items: center;
    gap: 8px;
}

.task-overview-owner > div {
    min-width: 0;
}

.task-overview-owner strong,
.task-overview-owner span,
.task-overview-project strong,
.task-overview-project small,
.task-overview-assignees > span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.task-overview-owner strong,
.task-overview-project strong {
    color: var(--ink);
    font-size: 9px;
}

.task-overview-owner span,
.task-overview-project small,
.task-overview-progress small,
.task-overview-assignees > span {
    color: var(--muted);
    font-size: 7.2px;
}

.task-overview-project {
    display: grid;
    gap: 3px;
}

.task-overview-progress {
    display: grid;
    justify-items: start;
    gap: 6px;
}

.task-overview-progress small {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.task-overview-progress .is-overdue {
    color: #b05a17;
    font-weight: 700;
}

.task-overview-assignees {
    display: grid;
    gap: 6px;
}

.task-overview-notes {
    display: grid;
    gap: 9px;
}

.task-overview-notes strong,
.task-overview-assignees > strong {
    display: block;
    color: var(--muted);
    font-size: 7px;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.task-overview-notes p {
    margin: 3px 0 0;
    color: #46534e;
    font-size: 8px;
    line-height: 1.45;
}

.task-free-pill {
    display: inline-flex;
    align-items: center;
    width: max-content;
    max-width: 100%;
    padding: 5px 7px;
    border-radius: 999px;
    background: #f0faf5;
    color: var(--brand-700);
    font-size: 7.2px;
    font-weight: 700;
}

.task-reference-list {
    display: grid;
    gap: 5px;
}

.task-reference-list > span {
    display: grid;
    gap: 2px;
    padding: 6px 7px;
    border: 1px solid var(--line-soft);
    border-radius: 7px;
    background: #f8faf9;
}

.task-reference-list strong,
.task-reference-list small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.task-reference-list strong {
    color: var(--ink);
    font-size: 8px;
}

.task-reference-list small {
    color: var(--muted);
    font-size: 7px;
}

.task-matrix-card {
    margin-top: 12px;
    padding: 0;
    overflow: hidden;
}

.task-matrix-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    padding: 15px 16px;
    border-bottom: 1px solid var(--line-soft);
}

.task-matrix-heading h2 {
    margin: 2px 0;
    color: var(--ink);
    font-size: 16px;
}

.task-matrix-heading p {
    margin: 0;
    color: var(--muted);
    font-size: 8px;
}

.task-matrix-scroll {
    overflow-x: auto;
    padding: 0 0 10px;
}

.task-matrix-scroll,
.task-collaborator-row,
.modal-dialog {
    scrollbar-color: #8fcdb4 #edf3f0;
    scrollbar-width: thin;
}

.task-matrix-scroll::-webkit-scrollbar,
.task-collaborator-row::-webkit-scrollbar,
.modal-dialog::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

.task-matrix-scroll::-webkit-scrollbar-track,
.task-collaborator-row::-webkit-scrollbar-track,
.modal-dialog::-webkit-scrollbar-track {
    border-radius: 999px;
    background: #edf3f0;
}

.task-matrix-scroll::-webkit-scrollbar-thumb,
.task-collaborator-row::-webkit-scrollbar-thumb,
.modal-dialog::-webkit-scrollbar-thumb {
    border: 2px solid #edf3f0;
    border-radius: 999px;
    background: linear-gradient(90deg, #86c8ae, var(--brand-700));
}

.task-matrix-scroll[data-drag-scroll],
.task-collaborator-row[data-drag-scroll] {
    cursor: grab;
    -webkit-user-select: none;
    user-select: none;
}

.task-matrix-scroll.is-drag-scrolling,
.task-collaborator-row.is-drag-scrolling {
    cursor: grabbing;
}

.task-matrix-scroll[data-drag-scroll] *,
.task-collaborator-row[data-drag-scroll] *,
body.is-drag-scroll-active {
    -webkit-user-select: none;
    user-select: none;
}

.task-matrix-grid {
    display: grid;
    min-width: max-content;
    align-items: stretch;
}

.task-matrix-corner,
.task-matrix-day,
.task-matrix-person,
.task-day-cell,
.task-matrix-empty {
    min-height: 88px;
    border-right: 1px solid var(--line-soft);
    border-bottom: 1px solid var(--line-soft);
    background: #fff;
}

.task-matrix-corner,
.task-matrix-person {
    position: sticky;
    left: 0;
    z-index: 2;
}

.task-matrix-corner {
    display: grid;
    align-content: center;
    gap: 3px;
    min-height: 68px;
    padding: 12px 14px;
    background: #f8faf9;
}

.task-matrix-corner span,
.task-matrix-day span,
.task-matrix-person small,
.task-day-cell small {
    color: var(--muted);
    font-size: 7px;
}

.task-matrix-corner strong,
.task-matrix-day strong {
    color: var(--ink);
    font-size: 10px;
}

.task-matrix-day {
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 3px;
    min-height: 68px;
    padding: 10px;
    background: #f8faf9;
    text-align: center;
}

.task-matrix-day.is-future {
    opacity: .62;
}

.task-matrix-day small {
    color: var(--brand-700);
    font-size: 7px;
    font-weight: 700;
}

.task-matrix-person {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 12px;
    background: #fff;
}

.task-matrix-person > div {
    min-width: 0;
}

.task-matrix-person strong,
.task-matrix-person small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.task-matrix-person strong {
    color: var(--ink);
    font-size: 9px;
}

.task-day-cell {
    display: grid;
    align-content: start;
    gap: 6px;
    padding: 10px;
    border-top: 0;
    border-left: 0;
    cursor: pointer;
    color: inherit;
    font: inherit;
    text-decoration: none;
    text-align: left;
}

.task-day-cell.has-task {
    background: #fbfefd;
}

.task-day-cell.has-task:hover {
    background: #f1fbf6;
}

.task-day-cell.is-empty {
    place-content: center;
    border-style: dashed;
    background: #fbfcfb;
    color: #a0aaa5;
    text-align: center;
}

.task-day-cell.is-future {
    cursor: default;
    opacity: .65;
    pointer-events: none;
}

.task-cell-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}

.task-cell-top small {
    flex: 0 0 auto;
    padding: 3px 5px;
    border-radius: 999px;
    background: #eef6f2;
    color: var(--brand-700);
    font-weight: 700;
}

.task-day-cell > strong {
    color: var(--ink);
    font-size: 8px;
}

.task-cell-text {
    display: block;
    color: #42514b;
    font-size: 7.6px;
    line-height: 1.45;
    white-space: normal;
}

.task-cell-references {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.task-cell-references em {
    max-width: 100%;
    overflow: hidden;
    padding: 3px 5px;
    border-radius: 5px;
    background: #edf6ff;
    color: #2f72ad;
    font-size: 6.6px;
    font-style: normal;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.task-matrix-empty {
    display: grid;
    min-height: 110px;
    place-items: center;
    color: var(--muted);
    font-size: 9px;
}

.task-month-card {
    margin-top: 12px;
    padding: 0;
    overflow: hidden;
}

.task-month-calendar {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 1px;
    background: var(--line-soft);
}

.task-month-weekday {
    padding: 8px;
    background: #f7faf8;
    color: var(--muted);
    font-size: 7.5px;
    font-weight: 800;
    text-align: center;
    text-transform: uppercase;
}

.task-month-day {
    display: grid;
    min-height: 104px;
    align-content: start;
    gap: 7px;
    padding: 9px;
    border: 0;
    background: #fff;
    color: inherit;
    cursor: pointer;
    font: inherit;
    text-align: left;
    transition: background .15s ease, box-shadow .15s ease;
}

.task-month-day:hover {
    background: #f3fbf7;
    box-shadow: inset 0 0 0 1px #addbc9;
}

.task-month-day.is-blank {
    min-height: 104px;
    background: #f9fbfa;
    cursor: default;
}

.task-month-day.is-empty {
    color: #98a49e;
}

.task-month-day.is-future {
    background: #fbfcfb;
}

.task-month-day.is-today {
    box-shadow: inset 0 0 0 2px var(--brand-600);
}

.task-month-date {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 6px;
}

.task-month-date strong {
    color: var(--ink);
    font-size: 14px;
}

.task-month-date small,
.task-month-meta {
    color: var(--muted);
    font-size: 7px;
}

.task-month-count {
    width: fit-content;
    padding: 4px 6px;
    border-radius: 999px;
    background: #eef7f3;
    color: var(--brand-700);
    font-size: 7.5px;
    font-weight: 800;
}

.task-month-day.is-empty .task-month-count {
    background: #f1f4f2;
    color: #95a09b;
}

.task-month-meta {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.task-month-tasks,
.task-month-task {
    display: grid;
    min-width: 0;
    gap: 6px;
}

.task-month-task {
    padding: 7px;
    border-left: 3px solid var(--brand-600);
    border-radius: 5px;
    background: #eef7f3;
    overflow-wrap: anywhere;
    white-space: normal;
}

.task-month-task-owner {
    color: var(--muted);
    font-size: 10px;
}

.task-month-task-title {
    color: var(--ink);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.5;
}

.task-month-task-reference {
    color: var(--brand-700);
    font-size: 11px;
    line-height: 1.4;
}

.task-day-dialog {
    width: min(820px, 100%);
}

.task-day-modal-empty {
    display: grid;
    min-height: 130px;
    place-items: center;
    gap: 4px;
    color: var(--muted);
    text-align: center;
}

.task-day-modal-empty strong {
    color: var(--ink);
    font-size: 11px;
}

.task-day-modal-empty span {
    font-size: 8.5px;
}

.task-day-modal-list {
    display: grid;
    gap: 9px;
}

.task-day-modal-report {
    display: grid;
    grid-template-columns: minmax(190px, .7fr) minmax(0, 1.5fr);
    gap: 12px;
    padding: 11px;
    border: 1px solid var(--line-soft);
    border-radius: 9px;
    background: #fbfdfc;
}

.task-day-modal-copy {
    display: grid;
    min-width: 0;
    gap: 5px;
}

.task-day-modal-copy > strong {
    color: var(--ink);
    font-size: 8px;
}

.task-day-modal-copy p {
    margin: 0;
    color: #42514b;
    font-size: 8px;
    line-height: 1.45;
}

.task-day-view {
    display: grid;
    gap: 12px;
    margin-top: 12px;
}

.task-day-panel {
    padding: 0;
    overflow: hidden;
}

.task-day-panel > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--line-soft);
    background: #f8faf9;
}

.task-day-panel > header h2 {
    margin: 2px 0 0;
    color: var(--ink);
    font-size: 15px;
}

.task-day-panel.is-future {
    opacity: .72;
}

.task-day-empty {
    display: grid;
    min-height: 96px;
    place-items: center;
    gap: 4px;
    color: var(--muted);
    text-align: center;
}

.task-day-empty strong {
    color: #7d8984;
    font-size: 10px;
}

.task-day-empty span {
    font-size: 8px;
}

.task-day-report-list {
    display: grid;
    gap: 0;
}

.task-day-report {
    display: grid;
    grid-template-columns: minmax(210px, .7fr) minmax(0, 1.5fr);
    gap: 14px;
    padding: 13px 16px;
    border: 0;
    border-bottom: 1px solid var(--line-soft);
    background: #fff;
    color: inherit;
    cursor: pointer;
    font: inherit;
    text-decoration: none;
    text-align: left;
}

.task-day-report:hover {
    background: #f6fbf8;
}

.task-day-report.is-free {
    border-left: 3px solid #cce9dc;
}

.task-day-report.is-referenced {
    border-left: 3px solid #bdd7f1;
}

.task-report-person {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 9px;
}

.task-report-person > div,
.task-report-content {
    min-width: 0;
}

.task-report-person strong,
.task-report-person small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.task-report-person strong {
    color: var(--ink);
    font-size: 9px;
}

.task-report-person small {
    color: var(--muted);
    font-size: 7px;
}

.task-report-content {
    display: grid;
    gap: 5px;
}

.task-report-content > strong {
    color: var(--ink);
    font-size: 8px;
}

.task-report-content p {
    margin: 0;
    color: #42514b;
    font-size: 8px;
    line-height: 1.45;
}

.task-report-dialog {
    width: min(760px, 100%);
}

.task-report-modal-header {
    margin-bottom: 14px;
}

.task-report-modal-title {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 10px;
}

.task-report-modal-title > div {
    min-width: 0;
}

.task-report-modal-title h2 {
    margin: 2px 0;
    color: var(--ink);
    font-size: 17px;
}

.task-report-modal-title p {
    margin: 0;
    overflow: hidden;
    color: var(--muted);
    font-size: 8.5px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.task-report-modal-body {
    display: grid;
    gap: 10px;
}

.task-report-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.task-report-detail-card {
    display: grid;
    gap: 8px;
    padding: 12px;
    border: 1px solid var(--line-soft);
    border-radius: 9px;
    background: #fbfdfc;
}

.task-report-detail-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.task-report-detail-card p {
    margin: 0;
    color: #3d4c45;
    font-size: 9px;
    line-height: 1.55;
}

.task-report-reference-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
    gap: 8px;
}

.task-report-reference {
    display: grid;
    gap: 5px;
    padding: 9px;
    border: 1px solid #dbeae3;
    border-radius: 8px;
    background: #fff;
}

.task-report-reference strong,
.task-report-reference span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.task-report-reference strong {
    color: var(--ink);
    font-size: 8.5px;
}

.task-report-reference span,
.task-report-reference small {
    color: var(--muted);
    font-size: 7.5px;
}

.task-report-reference div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.task-report-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.task-report-meta span {
    padding: 5px 7px;
    border-radius: 7px;
    background: #f2f6f4;
    color: var(--muted);
    font-size: 7.5px;
}

.task-report-review-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 9px;
    padding: 11px;
    border: 1px solid #dfeae5;
    border-radius: 9px;
    background: #f8fbfa;
}

.task-report-review-form label,
.task-report-review-form label > span {
    display: block;
}

.task-report-review-form label > span {
    margin-bottom: 5px;
    color: var(--muted);
    font-size: 7.5px;
    font-weight: 800;
}

.task-report-review-form input {
    width: 100%;
    height: 34px;
    padding: 0 9px;
    border: 1px solid var(--line);
    border-radius: 7px;
    outline: 0;
    background: #fff;
    color: var(--ink);
    font-size: 8.5px;
}

.task-report-review-actions {
    display: flex;
    gap: 7px;
}

.workflow-hint.compact {
    min-height: 0;
    margin: 0;
}

@media (max-width: 1180px) {
    .planning-command {
        grid-template-columns: 1fr auto;
    }

    .task-overview-command {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .task-overview-filters {
        grid-template-columns: 1fr;
    }

    .task-filter-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .task-filter-reset {
        justify-content: stretch;
    }

    .task-filter-reset .button {
        width: 100%;
        min-height: 36px;
    }

    .task-overview-command .daily-overview-metrics {
        grid-column: 1 / -1;
        justify-content: flex-start;
    }

    .task-overview-row {
        grid-template-columns: minmax(260px, 1.2fr) minmax(190px, .9fr) minmax(170px, .75fr);
    }

    .daily-task-overview-row {
        grid-template-columns: minmax(280px, 1fr) minmax(190px, .8fr);
    }

    .task-overview-progress,
    .task-overview-assignees,
    .task-overview-notes {
        padding-top: 10px;
        border-top: 1px solid var(--line-soft);
    }

    .task-day-report {
        grid-template-columns: 1fr;
    }

    .task-day-modal-report {
        grid-template-columns: 1fr;
    }

    .planning-period {
        border-left: 0;
        padding-left: 0;
    }

    .planning-kpis {
        justify-content: flex-start;
        grid-column: 1 / -1;
    }

    .daily-report-layout {
        grid-template-columns: 1fr;
    }

    .daily-global-filters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .daily-global-row {
        grid-template-columns: minmax(210px, .8fr) 105px minmax(280px, 1.35fr);
    }

    .daily-global-risks {
        grid-column: 1 / -1;
        grid-template-columns: 1fr 1fr;
        padding-top: 10px;
        border-top: 1px solid var(--line-soft);
    }
}

@media (max-width: 760px) {
    .planning-command,
    .daily-overview,
    .daily-report-card,
    .task-overview-command,
    .task-overview-filters,
    .task-overview-row {
        grid-template-columns: 1fr;
    }

    .planning-command > .button,
    .task-overview-command .daily-overview-metrics {
        justify-self: start;
    }

    .planning-week-navigation,
    .planning-kpis,
    .daily-overview,
    .daily-overview-metrics,
    .planning-projects-heading,
    .project-board-heading,
    .daily-global-heading,
    .daily-global-actions,
    .daily-report-heading,
    .daily-date-filter,
    .daily-review-form {
        align-items: stretch;
        flex-direction: column;
    }

    .planning-week-navigation {
        display: grid;
        grid-template-columns: auto 1fr auto;
    }

    .planning-kpis {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .daily-report-heading {
        align-items: stretch;
    }

    .daily-overview-metrics {
        display: grid;
        grid-template-columns: 1fr 1fr;
        width: 100%;
    }

    .task-overview-filters button,
    .task-overview-filters .button,
    .task-export-modal-form .button {
        width: 100%;
    }

    .task-export-modal-fields {
        grid-template-columns: 1fr;
    }

    .task-filter-row,
    .task-filter-fields,
    .task-report-detail-grid,
    .task-report-review-form {
        grid-template-columns: 1fr;
    }

    .task-filter-reset {
        justify-content: stretch;
    }

    .task-collaborator-row {
        grid-template-columns: 1fr;
    }

    .task-report-review-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .task-month-calendar {
        grid-template-columns: 1fr;
        background: transparent;
        gap: 8px;
    }

    .task-month-weekday,
    .task-month-day.is-blank {
        display: none;
    }

    .task-month-day {
        min-height: 82px;
        border: 1px solid var(--line-soft);
        border-radius: 8px;
    }

    .task-day-panel > header {
        align-items: stretch;
        flex-direction: column;
    }

    .project-card-grid {
        grid-template-columns: 1fr;
    }

    .daily-global-filters,
    .daily-global-row {
        grid-template-columns: 1fr;
    }

    .daily-global-risks {
        grid-column: auto;
        grid-template-columns: 1fr;
    }

    .daily-global-actions,
    .daily-global-review {
        grid-column: auto;
        justify-items: start;
    }

    .daily-global-actions input {
        width: 100%;
    }

    .daily-form-row,
    .task-assignee-picker > div {
        grid-template-columns: 1fr;
    }

    .daily-report-card {
        gap: 10px;
    }

    .daily-report-side {
        justify-items: start;
    }

    .daily-review-form input {
        min-width: 0;
        width: 100%;
    }
}

* {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    background: var(--canvas);
}

body {
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 82% 8%, rgba(18, 129, 94, .045), transparent 24rem),
        var(--canvas);
    color: var(--text);
    font-size: 14px;
    line-height: 1.5;
}

.app-loader {
    position: fixed;
    z-index: 9999;
    inset: 0;
    display: grid;
    place-items: center;
    background: radial-gradient(ellipse at center, #edf5ef, #fafcf9 65%);
    opacity: 1;
    transition: opacity .32s ease, visibility .32s ease;
}

.app-loader.is-hidden {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}

.loader-emblem { position: relative; display: grid; width: 160px; height: 160px; place-items: center; }
.loader-core { display: grid; width: 96px; height: 96px; place-items: center; border-radius: 50%; background: #fff; box-shadow: 0 12px 44px #174b3420; animation: loader-breathe 2.8s ease-in-out infinite; }
.loader-core img { display: block; width: 72px; height: 72px; object-fit: contain; }
.loader-orbit { position: absolute; inset: 0; border: 1px solid #0f6b4f17; border-radius: 50%; }
.loader-orbit::before { content: ''; position: absolute; inset: -1px; border: 2px solid transparent; border-top-color: #0f6b4f; border-right-color: #0f6b4f; border-radius: inherit; }
.loader-orbit-outer { animation: loader-turn 2.6s linear infinite; }
.loader-orbit-outer::after { content: ''; position: absolute; left: calc(50% - 4px); top: -4px; width: 8px; height: 8px; border-radius: 50%; background: #9bbe50; box-shadow: 0 0 0 5px #9bbe5015; }
.loader-orbit-inner { inset: 15px; animation: loader-turn 3.8s linear infinite reverse; }
.loader-orbit-inner::before { border-width: 1px; border-top-color: #9bbe50; border-right-color: transparent; border-bottom-color: #9bbe50; }
.loader-particles { position: absolute; top: calc(100% + 25px); display: flex; gap: 7px; }
.loader-particles i { width: 5px; height: 5px; border-radius: 50%; background: #0f6b4f; animation: loader-dot 1.3s ease-in-out infinite; }
.loader-particles i:nth-child(2) { animation-delay: .16s; }
.loader-particles i:nth-child(3) { animation-delay: .32s; }
@keyframes loader-turn { to { transform: rotate(360deg); } }
@keyframes loader-breathe { 50% { transform: scale(.95); box-shadow: 0 8px 28px #174b3412; } }
@keyframes loader-dot { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-4px); } }

button,
input,
select,
textarea {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    color: inherit;
}

a {
    color: inherit;
    text-decoration: none;
}

svg {
    flex: 0 0 auto;
}

.app-shell {
    min-height: 100vh;
}

.sidebar {
    position: fixed;
    z-index: 40;
    isolation: isolate;
    inset: 0 auto 0 0;
    display: flex;
    width: var(--sidebar-width);
    flex-direction: column;
    overflow: hidden;
    background:
        radial-gradient(circle at 10% 0, rgba(37, 181, 132, .2), transparent 19rem),
        radial-gradient(ellipse at 100% 85%, rgba(121, 159, 86, .1), transparent 65%),
        var(--sidebar);
    color: #fff;
    box-shadow: 6px 0 20px rgba(7, 39, 30, .08);
}

.sidebar::before,
.sidebar::after {
    content: '';
    position: absolute;
    z-index: -1;
    pointer-events: none;
}

.sidebar::before {
    right: -185px;
    bottom:  -185px;
    width: 420px;
    height: 420px;
    border: 1px solid rgba(211, 231, 185, .07);
    border-radius: 50%;
    background: radial-gradient(circle,
        transparent 0 32%, rgba(211, 231, 185, .09) 32.2% 32.5%,
        transparent 32.7% 48%, rgba(211, 231, 185, .07) 48.2% 48.5%,
        transparent 48.7% 64%, rgba(211, 231, 185, .05) 64.2% 64.5%,
        transparent 64.7%);
}

.sidebar::after {
    right: -34px;
    bottom: 114px;
    width: 190px;
    height: 190px;
    /* background: url('../images/auth-brand-mark.png') center / contain no-repeat; */
    opacity: .035;
    transform: rotate(-12deg);
}

.brand {
    display: flex;
    min-height: 128px;
    align-items: center;
    gap: 11px;
    padding: 14px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, .09);
}

.brand-logo-link {
    display: flex;
    flex: 1;
    min-width: 0;
    min-height: 96px;
    align-items: center;
    justify-content: center;
    padding: 0;
    /* border: 1px solid rgb(45 135 106); */
    border-radius: 11px;
    background: #ffffff00;
    /* box-shadow: 0 12px 28px rgba(0, 0, 0, .16); */
}

.brand-logo,
.auth-brand-logo {
    display: block;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.brand-logo {
    width: 100%;
    max-height: 104px;
}

.brand-mark {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 12px;
    background: rgba(255, 255, 255, .12);
    box-shadow: inset 0 1px rgba(255, 255, 255, .15);
}

.brand-mark svg {
    width: 31px;
    fill: none;
    stroke: #9ce4c8;
    stroke-width: 2.2;
    stroke-linecap: round;
}

.brand div {
    min-width: 0;
}

.brand strong {
    display: block;
    letter-spacing: .11em;
    font-size: 15px;
    line-height: 1.2;
}

.brand span:last-child {
    color: rgba(255, 255, 255, .6);
    font-size: 10.5px;
}

.sidebar-close {
    display: none;
    margin-left: auto;
    border: 0;
    background: transparent;
    color: #fff;
}

.main-nav {
    flex: 1;
    overflow-y: auto;
    padding: 16px 12px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, .15) transparent;
}

.nav-section + .nav-section {
    margin-top: 19px;
}

.nav-label {
    display: block;
    padding: 0 12px 6px;
    color: rgba(255, 255, 255, .42);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.main-nav a {
    position: relative;
    display: flex;
    height: 42px;
    align-items: center;
    gap: 12px;
    margin: 2px 0;
    padding: 0 12px;
    border-radius: 9px;
    color: rgba(255, 255, 255, .72);
    font-size: 13px;
    transition: background .18s ease, color .18s ease, transform .18s ease;
}

.main-nav a:hover {
    background: rgba(255, 255, 255, .065);
    color: #fff;
}

.main-nav a.active {
    background: rgba(104, 220, 175, .16);
    color: #baf3db;
    font-weight: 600;
}

.main-nav a.active::before {
    position: absolute;
    left: -12px;
    width: 3px;
    height: 23px;
    border-radius: 0 3px 3px 0;
    background: #65dab0;
    content: "";
}

.main-nav a span {
    flex: 1;
}

.main-nav a b {
    min-width: 20px;
    padding: 1px 6px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .11);
    color: rgba(255, 255, 255, .78);
    font-size: 10px;
    text-align: center;
}

.sidebar-insight {
    margin: 4px 14px 14px;
    padding: 14px;
    border: 1px solid rgba(156, 228, 200, .14);
    border-radius: 12px;
    background: linear-gradient(145deg, rgba(30, 131, 96, .24), rgba(255, 255, 255, .035));
}

.sidebar-insight > span {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #83dcb9;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.sidebar-insight strong {
    display: block;
    margin-top: 9px;
    font-size: 12px;
}

.sidebar-insight p {
    margin: 3px 0 9px;
    color: rgba(255, 255, 255, .55);
    font-size: 10.5px;
    line-height: 1.45;
}

.sidebar-insight button {
    padding: 0;
    border: 0;
    background: none;
    color: #a7ecd1;
    cursor: pointer;
    font-size: 10.5px;
    font-weight: 600;
}

.sidebar-user {
    position: relative;
    display: flex;
    min-height: 72px;
    align-items: center;
    gap: 10px;
    padding: 13px 16px;
    border-top: 1px solid rgba(255, 255, 255, .09);
    color: inherit;
    cursor: pointer;
    text-decoration: none;
}

.sidebar-user:hover {
    background: rgba(255, 255, 255, .05);
}

.sidebar-user.is-active {
    background: rgba(255, 255, 255, .08);
}

.sidebar-user > div {
    min-width: 0;
    flex: 1;
}

.sidebar-user > div strong,
.sidebar-user > div span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-user > div strong {
    font-size: 11.5px;
}

.sidebar-user > div span {
    color: rgba(255, 255, 255, .47);
    font-size: 9.5px;
}

.sidebar-user .quiet {
    color: rgba(255, 255, 255, .55);
}

.app-main {
    min-height: 100vh;
    margin-left: var(--sidebar-width);
}

.topbar {
    position: sticky;
    z-index: 30;
    top: 0;
    display: flex;
    height: 64px;
    align-items: center;
    gap: 20px;
    padding: 0 28px;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(14px);
}

.breadcrumb {
    display: flex;
    min-width: 195px;
    align-items: center;
    gap: 7px;
    color: var(--muted);
    font-size: 11px;
}

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

.global-search {
    display: flex;
    width: min(430px, 40vw);
    height: 36px;
    align-items: center;
    gap: 9px;
    margin: 0 auto;
    padding: 0 11px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8faf9;
    color: #89958f;
    cursor: pointer;
    font-size: 11px;
    text-align: left;
}

.global-search span {
    flex: 1;
}

kbd {
    padding: 2px 6px;
    border: 1px solid #dce3e0;
    border-bottom-width: 2px;
    border-radius: 5px;
    background: #fff;
    color: #8a9691;
    font-family: inherit;
    font-size: 9px;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mobile-menu {
    display: none;
}

.icon-button {
    display: inline-grid;
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    place-items: center;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.icon-button:hover {
    border-color: #c9d5d0;
    background: #f7faf8;
}

.icon-button.is-disabled {
    cursor: default;
    opacity: .45;
    pointer-events: none;
}

.icon-button.mobile-menu {
    display: none;
}

.icon-button.quiet {
    width: 29px;
    height: 29px;
    border-color: transparent;
    background: transparent;
}

.topbar-icon {
    position: relative;
    border-color: transparent;
    background: transparent;
    color: #5f6e68;
}

.topbar-icon.is-active {
    background: var(--brand-100);
    color: var(--brand-700);
}

.notification-button i {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 6px;
    height: 6px;
    border: 1.5px solid #fff;
    border-radius: 50%;
    background: #e34f4f;
}

.message-button .message-unread-dot {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 7px;
    height: 7px;
    border: 1.5px solid #fff;
    border-radius: 50%;
    background: #d94646;
}

.topbar-icon .notification-count {
    position: absolute;
    top: -3px;
    right: -4px;
    min-width: 17px;
    height: 17px;
    border: 2px solid #fff;
    font-size: 7.5px;
}

.main-nav a .nav-unread-badge {
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    background: #d94646;
    color: #fff;
    font-size: 8px;
}

.role-switcher {
    position: relative;
}

.role-switcher > button {
    display: flex;
    min-width: 175px;
    height: 48px;
    align-items: center;
    gap: 9px;
    padding: 5px 7px;
    border: 0;
    background: transparent;
    cursor: pointer;
    text-align: left;
}

.role-copy {
    min-width: 0;
    flex: 1;
}

.role-copy strong,
.role-copy small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.role-copy strong {
    color: var(--ink);
    font-size: 11px;
}

.role-copy small {
    color: var(--muted);
    font-size: 9.5px;
}

.role-menu {
    position: absolute;
    top: 52px;
    right: 0;
    display: none;
    width: 270px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    box-shadow: var(--shadow-md);
}

.role-menu.open {
    display: block;
    animation: pop-in .15s ease;
}

.role-menu > span {
    display: block;
    padding: 7px 9px 5px;
    color: var(--muted);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.role-menu a {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px;
    border-radius: 8px;
}

.role-menu a:hover,
.role-menu a.active {
    background: var(--brand-50);
}

.role-menu a > div {
    flex: 1;
}

.role-menu strong,
.role-menu small {
    display: block;
}

.role-menu strong {
    color: var(--ink);
    font-size: 11px;
}

.role-menu small {
    color: var(--muted);
    font-size: 9.5px;
}

.content {
    width: min(1540px, 100%);
    margin: 0 auto;
    padding: 27px 30px 48px;
}

.page-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 23px;
}

.eyebrow,
.section-kicker {
    margin: 0 0 4px;
    color: var(--brand-600);
    font-size: 9px;
    font-weight: 750;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.page-heading h1 {
    margin: 0;
    color: var(--ink);
    font-size: clamp(25px, 2.2vw, 31px);
    font-weight: 680;
    letter-spacing: -.035em;
    line-height: 1.18;
}

.page-description {
    max-width: 700px;
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 12px;
}

.page-actions {
    display: flex;
    flex: 0 0 auto;
    gap: 9px;
}

.button {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 14px;
    border: 1px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 600;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.button:hover {
    transform: translateY(-1px);
}

.button-primary {
    border-color: var(--brand-700);
    background: var(--brand-700);
    box-shadow: 0 3px 8px rgba(15, 107, 79, .16);
    color: #fff;
}

.button-primary:hover {
    background: var(--brand-800);
}

.button-secondary {
    border-color: #dce4e0;
    background: #fff;
    color: #3f5149;
}

.button-ghost {
    border-color: transparent;
    background: var(--brand-50);
    color: var(--brand-700);
}

.button-danger {
    border-color: #f0caca;
    background: #fff;
    color: var(--red);
}

.button-remote {
    border: 1px solid #b9d5f2;
    background: #edf6ff;
    color: #176cce;
}

.button-remote:hover {
    border-color: #8dbce9;
    background: #e2f0ff;
}

.button-small {
    min-height: 29px;
    padding: 0 10px;
    font-size: 10px;
}

.button-block {
    width: 100%;
}

.full-width-action .button {
    width: 100%;
}

.card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 17px;
}

.metric-card {
    display: flex;
    min-height: 106px;
    align-items: flex-start;
    gap: 12px;
    padding: 17px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.metric-icon {
    display: grid;
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 10px;
}

.tone-blue {
    background: var(--blue-100);
    color: var(--blue);
}

.tone-green {
    background: var(--green-100);
    color: var(--green);
}

.tone-amber {
    background: var(--amber-100);
    color: var(--amber);
}

.tone-purple {
    background: var(--purple-100);
    color: var(--purple);
}

.tone-slate {
    background: #eff2f4;
    color: var(--slate);
}

.tone-bg-blue { background: var(--blue) !important; }
.tone-bg-green { background: var(--green) !important; }
.tone-bg-amber { background: var(--amber) !important; }
.tone-bg-purple { background: var(--purple) !important; }
.tone-bg-slate { background: var(--slate) !important; }

.metric-copy {
    min-width: 0;
    flex: 1;
}

.metric-copy > span {
    display: block;
    color: var(--muted);
    font-size: 10.5px;
}

.metric-copy strong {
    display: block;
    margin: 3px 0 1px;
    color: var(--ink);
    font-size: 23px;
    font-weight: 680;
    letter-spacing: -.035em;
}

.metric-copy small {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #75837d;
    font-size: 9.5px;
}

.trend-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
}

.metric-card > .icon-button {
    margin: -2px -5px 0 0;
    color: #a3ada9;
}

.dashboard-grid,
.content-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 16px;
}

.dashboard-grid > *,
.content-grid > * {
    min-width: 0;
}

.span-4 { grid-column: span 4; }
.span-5 { grid-column: span 5; }
.span-7 { grid-column: span 7; }
.span-8 { grid-column: span 8; }
.span-12 { grid-column: span 12; }

.dashboard-grid > .card,
.content-grid > .card {
    padding: 19px;
}

.card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
}

.card-header h2 {
    margin: 0;
    color: var(--ink);
    font-size: 15px;
    font-weight: 650;
    letter-spacing: -.012em;
}

.card-header > div {
    min-width: 0;
}

.select-control {
    height: 33px;
    padding: 0 29px 0 10px;
    border: 1px solid var(--line);
    border-radius: 7px;
    outline: 0;
    background: #fff;
    color: #56655f;
    font-size: 10px;
}

.attendance-chart {
    display: flex;
    min-height: 215px;
    align-items: stretch;
    gap: 22px;
    padding-top: 5px;
}

.chart-summary {
    display: flex;
    width: 150px;
    flex-direction: column;
    justify-content: center;
    padding: 0 7px;
}

.chart-summary strong {
    color: var(--ink);
    font-size: 29px;
    letter-spacing: -.04em;
}

.chart-summary > span {
    color: var(--muted);
    font-size: 10px;
}

.mini-legend {
    display: grid;
    gap: 6px;
    margin-top: 24px;
}

.mini-legend span,
.calendar-legend span,
.planning-summary span {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--muted);
    font-size: 9px;
}

.legend-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    flex: 0 0 auto;
    border-radius: 50%;
}

.legend-dot.green { background: var(--green); }
.legend-dot.blue { background: var(--blue); }
.legend-dot.amber { background: var(--amber); }
.legend-dot.purple { background: var(--purple); }
.legend-dot.slate { background: var(--slate); }

.bar-chart {
    position: relative;
    display: flex;
    min-width: 0;
    flex: 1;
    align-items: stretch;
    justify-content: space-around;
    gap: 10px;
    padding-top: 5px;
    background-image: repeating-linear-gradient(to bottom, var(--line-soft) 0, var(--line-soft) 1px, transparent 1px, transparent 25%);
}

.bar-column {
    display: flex;
    min-width: 26px;
    flex: 1;
    flex-direction: column;
    align-items: center;
}

.bar-stack {
    display: flex;
    width: min(28px, 60%);
    flex: 1;
    align-items: flex-end;
    gap: 3px;
}

.bar-stack i {
    display: block;
    min-height: 2px;
    flex: 1;
    border-radius: 4px 4px 1px 1px;
}

.bar-main {
    background: linear-gradient(to top, var(--brand-700), #2eb889);
}

.bar-secondary {
    background: #7db7ff;
}

.bar-column > span {
    margin-top: 8px;
    color: var(--muted);
    font-size: 9px;
}

.attendance-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 12px -19px -19px;
    padding: 11px 19px;
    border-top: 1px solid var(--line-soft);
    background: #fbfcfb;
    border-radius: 0 0 var(--radius) var(--radius);
}

.attendance-footer > span,
.attendance-footer a,
.text-link,
.card-link {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 9.5px;
}

.attendance-footer > span {
    color: var(--brand-700);
}

.attendance-footer a,
.text-link,
.card-link {
    color: var(--brand-700);
    font-weight: 600;
}

.count-pill {
    padding: 4px 8px;
    border-radius: 20px;
    background: #f0f4f2;
    color: #68776f;
    font-size: 9px;
}

.approval-list {
    min-height: 213px;
}

.approval-item {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line-soft);
}

.approval-item > div {
    min-width: 0;
    flex: 1;
}

.approval-item strong,
.approval-item span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.approval-item strong {
    color: var(--ink);
    font-size: 10.5px;
}

.approval-item div span {
    color: var(--muted);
    font-size: 9px;
}

.card-link {
    justify-content: center;
    margin: 8px -19px -19px;
    padding: 11px;
    border-top: 1px solid var(--line-soft);
}

.avatar {
    position: relative;
    display: inline-flex;
    width: 35px;
    height: 35px;
    min-width: 35px;
    min-height: 35px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 0;
    border: 2px solid rgba(255, 255, 255, .2);
    border-radius: 50%;
    background: linear-gradient(145deg, #4fae8d, #1b7257);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    vertical-align: middle;
}

.avatar-sm {
    width: 31px;
    height: 31px;
    min-width: 31px;
    min-height: 31px;
    border-width: 0;
    font-size: 9px;
}

.avatar-xs {
    width: 25px;
    height: 25px;
    min-width: 25px;
    min-height: 25px;
    border-width: 0;
    font-size: 7.5px;
}

.avatar-xl {
    width: 68px;
    height: 68px;
    min-width: 68px;
    min-height: 68px;
    font-size: 17px;
}

.avatar-blue { background: linear-gradient(145deg, #5b9fff, #3678dd); }
.avatar-teal { background: linear-gradient(145deg, #43bba9, #238776); }
.avatar-violet { background: linear-gradient(145deg, #9a7be9, #7052c5); }
.avatar-orange { background: linear-gradient(145deg, #e8a059, #ca7133); }
.avatar-pink { background: linear-gradient(145deg, #e887ad, #c95882); }
.avatar-green { background: linear-gradient(145deg, #58b979, #26804a); }

.presence {
    position: absolute;
    right: -1px;
    bottom: 0;
    width: 8px;
    height: 8px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: var(--green);
}

.plan-list {
    display: grid;
    gap: 2px;
}

.plan-row {
    display: flex;
    min-height: 49px;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid var(--line-soft);
}

.task-check {
    display: grid;
    width: 19px;
    height: 19px;
    place-items: center;
    padding: 0;
    border: 1px solid #cbd7d1;
    border-radius: 6px;
    background: #fff;
    color: transparent;
    cursor: pointer;
}

.task-check.checked {
    border-color: var(--green);
    background: var(--green);
    color: #fff;
}

.plan-copy {
    min-width: 0;
    flex: 1;
}

.plan-copy strong,
.plan-copy span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.plan-copy strong {
    color: var(--ink);
    font-size: 10.5px;
}

.plan-copy span {
    color: var(--muted);
    font-size: 8.5px;
}

.progress-compact {
    width: 66px;
    height: 4px;
    overflow: hidden;
    border-radius: 5px;
    background: #edf1ef;
}

.progress-compact span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--brand-600);
}

.activity-list {
    display: grid;
    gap: 2px;
}

.activity-item {
    display: flex;
    min-height: 51px;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid var(--line-soft);
}

.activity-icon {
    display: grid;
    width: 29px;
    height: 29px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 8px;
}

.activity-item strong,
.activity-item span {
    display: block;
}

.activity-item strong {
    color: var(--ink);
    font-size: 10px;
    font-weight: 600;
}

.activity-item span {
    color: var(--muted);
    font-size: 8.5px;
}

.availability-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}

.availability-person {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 9px;
    padding: 10px;
    border: 1px solid var(--line-soft);
    border-radius: 9px;
    background: #fcfdfc;
}

.availability-person > div {
    min-width: 0;
}

.availability-person strong,
.availability-person div span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.availability-person strong {
    color: var(--ink);
    font-size: 9.5px;
}

.availability-person div span {
    color: var(--muted);
    font-size: 8px;
}

.availability-person > .status {
    grid-column: 2;
    width: fit-content;
}

.status {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 4px;
    padding: 3px 7px;
    border-radius: 20px;
    background: #eff3f1;
    color: #66736e;
    font-size: 8px;
    font-weight: 600;
    white-space: nowrap;
}

.status::before {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
    content: "";
}

.status-active,
.status-on-time {
    background: var(--green-100);
    color: #168454;
}

.status-on-leave,
.status-pending-hr,
.status-pending-manager,
.status-pending-admin {
    background: var(--amber-100);
    color: #b36a00;
}

.status-probation,
.status-remote,
.status-manager-approved {
    background: var(--blue-100);
    color: #176cce;
}

.status-in-preparation {
    background: var(--purple-100);
    color: var(--purple);
}

.clock-card {
    text-align: center;
}

.clock-ring {
    display: flex;
    width: 137px;
    height: 137px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 4px auto 16px;
    border: 8px solid #e4f3ed;
    border-top-color: var(--brand-600);
    border-radius: 50%;
    box-shadow: inset 0 0 0 1px #d4e5df;
}

.clock-ring strong {
    color: var(--ink);
    font-size: 24px;
    letter-spacing: -.03em;
}

.clock-ring span {
    color: var(--muted);
    font-size: 9px;
}

.clock-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-top: 14px;
    border-top: 1px solid var(--line-soft);
}

.clock-metrics > span {
    padding-top: 11px;
}

.clock-metrics > span + span {
    border-left: 1px solid var(--line-soft);
}

.clock-metrics small,
.clock-metrics strong {
    display: block;
}

.clock-metrics small {
    color: var(--muted);
    font-size: 8px;
}

.clock-metrics strong {
    color: var(--ink);
    font-size: 10px;
}

.directory-toolbar,
.planning-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 15px;
    padding: 13px;
}

.search-field {
    display: flex;
    width: 240px;
    height: 34px;
    align-items: center;
    gap: 8px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: #83908a;
}

.search-field.wide {
    width: min(430px, 43%);
}

.search-field input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
    font-size: 10.5px;
}

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

.table-card {
    overflow: hidden;
}

.table-summary {
    display: flex;
    min-height: 59px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 11px 16px;
    border-bottom: 1px solid var(--line);
}

.table-summary strong,
.table-summary span {
    display: block;
}

.table-summary strong {
    color: var(--ink);
    font-size: 11px;
}

.table-summary span {
    color: var(--muted);
    font-size: 9px;
}

.view-switch,
.segmented {
    display: inline-flex;
    padding: 3px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: #f6f8f7;
}

.view-switch button,
.segmented button {
    min-width: 33px;
    height: 26px;
    padding: 0 9px;
    border: 0;
    border-radius: 5px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    font-size: 9px;
}

.view-switch button.active,
.segmented button.active {
    background: #fff;
    box-shadow: 0 1px 3px rgba(27, 49, 41, .1);
    color: var(--brand-700);
    font-weight: 600;
}

.table-scroll {
    overflow-x: auto;
}

.employee-table-scroll {
    overflow-x: visible;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.data-table th {
    height: 38px;
    padding: 0 16px;
    border-bottom: 1px solid var(--line);
    background: #f9fbfa;
    color: #7c8984;
    font-size: 8.5px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.data-table td {
    height: 62px;
    padding: 8px 16px;
    border-bottom: 1px solid var(--line-soft);
    color: #51615a;
    font-size: 10px;
}

.data-table tbody tr {
    transition: background .12s ease;
}

.data-table tbody tr:hover {
    background: #fafcfb;
}

.person-cell {
    display: flex;
    min-width: 185px;
    align-items: center;
    gap: 9px;
}

.person-cell > div {
    min-width: 0;
}

.person-cell > div strong,
.person-cell > div span {
    display: block;
}

.person-cell > div strong {
    color: var(--ink);
    font-size: 10.5px;
}

.person-cell > div span,
.cell-subtitle {
    color: var(--muted);
    font-size: 8.5px;
}

.pagination {
    display: flex;
    min-height: 56px;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    color: var(--muted);
    font-size: 9px;
}

.pagination > div {
    display: flex;
    gap: 4px;
}

.pagination button {
    display: grid;
    width: 27px;
    height: 27px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    font-size: 9px;
}

.pagination button.active {
    border-color: var(--brand-600);
    background: var(--brand-600);
    color: #fff;
}

.pagination button:first-child svg {
    transform: rotate(180deg);
}

.timeline-day {
    margin: 31px 8px 22px;
}

.timeline-head {
    display: flex;
    justify-content: space-between;
    color: var(--muted);
    font-size: 8px;
}

.timeline-track {
    position: relative;
    height: 50px;
    margin-top: 8px;
    border-radius: 7px;
    background: repeating-linear-gradient(to right, #eef2f0 0, #eef2f0 1px, transparent 1px, transparent 25%), #f8faf9;
}

.timeline-track > i {
    position: absolute;
    top: 17px;
    height: 15px;
    border-radius: 10px;
    background: linear-gradient(90deg, var(--brand-600), #45bc92);
}

.timeline-track > b {
    position: absolute;
    top: -9px;
    color: var(--brand-700);
    font-size: 8px;
    transform: translateX(-50%);
}

.timeline-track > em {
    position: absolute;
    top: 17px;
    z-index: 2;
    height: 15px;
    border-radius: 10px;
    background: #d9e5e0;
    color: #697770;
    font-size: 7px;
    font-style: normal;
    line-height: 15px;
    text-align: center;
}

.compact-table {
    margin: 12px -19px -19px;
    border-top: 1px solid var(--line);
}

.schedule-block {
    display: flex;
    align-items: stretch;
    gap: 12px;
    margin: 21px 0;
    padding: 15px;
    border: 1px solid var(--line-soft);
    border-radius: 10px;
    background: #fbfcfb;
}

.schedule-block > i {
    width: 3px;
    border-radius: 3px;
    background: var(--brand-600);
}

.schedule-block small,
.schedule-block strong,
.schedule-block span {
    display: block;
}

.schedule-block small {
    color: var(--brand-600);
    font-size: 8px;
    font-weight: 700;
}

.schedule-block strong {
    margin: 3px 0;
    color: var(--ink);
    font-size: 15px;
}

.schedule-block span {
    color: var(--muted);
    font-size: 9px;
}

.detail-list {
    margin-bottom: 18px;
}

.detail-list > div {
    display: flex;
    min-height: 38px;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border-bottom: 1px solid var(--line-soft);
    font-size: 10px;
}

.detail-list span {
    color: var(--muted);
}

.detail-list strong {
    color: var(--ink);
}

.detail-list strong.positive {
    color: var(--green);
}

.detail-list strong.remote {
    color: #176cce;
}

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

.attendance-choice-grid form {
    min-width: 0;
}

.leave-balance-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 16px;
}

.balance-card {
    padding: 16px;
}

.balance-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.balance-top span {
    color: var(--muted);
    font-size: 10px;
}

.balance-top strong {
    color: var(--ink);
    font-size: 20px;
    letter-spacing: -.03em;
}

.balance-top small {
    font-size: 9px;
    font-weight: 500;
}

.balance-bar {
    height: 5px;
    margin: 16px 0 8px;
    overflow: hidden;
    border-radius: 6px;
    background: #eef2f0;
}

.balance-bar i {
    display: block;
    height: 100%;
    border-radius: inherit;
}

.balance-card > small {
    color: var(--muted);
    font-size: 8.5px;
}

.calendar-nav {
    display: flex;
    gap: 4px;
}

.calendar-nav button {
    display: grid;
    min-width: 28px;
    height: 27px;
    place-items: center;
    padding: 0 8px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    color: var(--muted);
    cursor: pointer;
    font-size: 8px;
}

.calendar-nav button:first-child svg {
    transform: rotate(180deg);
}

.month-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

.weekday {
    padding-bottom: 8px;
    color: var(--muted);
    font-size: 7.5px;
    font-weight: 700;
    text-align: center;
}

.month-day {
    position: relative;
    height: 45px;
    border-top: 1px solid var(--line-soft);
    border-left: 1px solid var(--line-soft);
    color: #55645d;
    font-size: 8px;
}

.month-day:nth-of-type(7n) {
    border-right: 1px solid var(--line-soft);
}

.month-day b {
    display: grid;
    width: 21px;
    height: 21px;
    place-items: center;
    margin: 3px auto;
    border-radius: 50%;
}

.month-day.today b {
    background: var(--brand-700);
    color: #fff;
}

.month-day.muted {
    color: #b8c0bc;
}

.leave-event {
    display: block;
    width: 65%;
    height: 3px;
    margin: 1px auto;
    border-radius: 3px;
}

.leave-event.blue { background: #77acfa; }
.leave-event.green { background: #79c9aa; }

.calendar-legend {
    display: flex;
    gap: 18px;
    margin-top: 13px;
}

.request-mini-list {
    display: grid;
    gap: 2px;
}

.request-mini {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 9px;
    padding: 10px 0;
    border-bottom: 1px solid var(--line-soft);
}

.request-mini > div {
    min-width: 0;
}

.request-mini strong,
.request-mini div span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.request-mini strong {
    color: var(--ink);
    font-size: 9.5px;
}

.request-mini div span {
    color: var(--muted);
    font-size: 8px;
}

.request-mini > .status {
    grid-column: 2;
}

.planning-toolbar {
    min-height: 62px;
}

.week-picker {
    display: flex;
    align-items: center;
    gap: 11px;
}

.week-picker button {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: #fff;
    cursor: pointer;
}

.week-picker button:first-child svg {
    transform: rotate(180deg);
}

.week-picker small,
.week-picker strong {
    display: block;
}

.week-picker small {
    color: var(--brand-600);
    font-size: 7.5px;
    font-weight: 700;
    letter-spacing: .08em;
}

.week-picker strong {
    color: var(--ink);
    font-size: 11px;
}

.planning-summary {
    display: flex;
    gap: 16px;
}

.kanban-board {
    display: grid;
    grid-template-columns: repeat(4, minmax(250px, 1fr));
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
}

.kanban-column {
    min-height: 570px;
    padding: 11px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #f0f3f1;
}

.kanban-heading {
    display: flex;
    height: 38px;
    align-items: center;
    justify-content: space-between;
    padding: 0 3px 8px;
}

.kanban-heading > div {
    display: flex;
    align-items: center;
    gap: 7px;
}

.kanban-heading strong {
    color: var(--ink);
    font-size: 10px;
}

.kanban-heading span {
    display: grid;
    min-width: 18px;
    height: 18px;
    place-items: center;
    border-radius: 9px;
    background: #dfe5e2;
    color: var(--muted);
    font-size: 8px;
}

.kanban-items {
    display: grid;
    align-content: start;
    gap: 8px;
    min-height: 510px;
}

.kanban-items.drag-over {
    border-radius: 10px;
    outline: 2px dashed #7bc4a8;
    outline-offset: 2px;
}

.task-card {
    padding: 13px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 1px 4px rgba(25, 52, 42, .04);
    cursor: grab;
}

.task-card.dragging {
    opacity: .5;
}

.task-meta,
.task-card footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.priority {
    padding: 3px 6px;
    border-radius: 5px;
    font-size: 7.5px;
    font-weight: 700;
}

.priority-high {
    background: var(--red-100);
    color: var(--red);
}

.priority-medium {
    background: var(--amber-100);
    color: var(--amber);
}

.priority-low {
    background: var(--blue-100);
    color: var(--blue);
}

.task-card h3 {
    margin: 10px 0 4px;
    color: var(--ink);
    font-size: 11px;
    font-weight: 620;
    line-height: 1.4;
}

.task-card p {
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 8.5px;
}

.task-card footer {
    padding-top: 10px;
    border-top: 1px solid var(--line-soft);
}

.task-card footer > span:last-child {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--muted);
    font-size: 8px;
}

.task-card footer .due-today {
    color: var(--red);
}

.progress-line {
    position: relative;
    height: 4px;
    margin: 13px 28px 13px 0;
    border-radius: 5px;
    background: #ebf0ed;
}

.progress-line i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--brand-600);
}

.progress-line span {
    position: absolute;
    top: -5px;
    left: calc(100% + 7px);
    color: var(--muted);
    font-size: 7.5px;
}

.add-task {
    display: flex;
    height: 34px;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border: 1px dashed #c8d3ce;
    border-radius: 8px;
    background: rgba(255, 255, 255, .45);
    color: #6d7b75;
    cursor: pointer;
    font-size: 9px;
}

.request-tabs {
    display: flex;
    gap: 2px;
    margin-bottom: 14px;
    border-bottom: 1px solid var(--line);
}

.request-tabs button {
    position: relative;
    height: 38px;
    padding: 0 15px;
    border: 0;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    font-size: 10px;
}

.request-tabs button.active {
    color: var(--brand-700);
    font-weight: 650;
}

.request-tabs button.active::after {
    position: absolute;
    right: 12px;
    bottom: -1px;
    left: 12px;
    height: 2px;
    border-radius: 2px;
    background: var(--brand-600);
    content: "";
}

.request-tabs span {
    margin-left: 5px;
    padding: 2px 5px;
    border-radius: 8px;
    background: #e9efec;
    font-size: 7.5px;
}

.goal-list {
    display: grid;
}

.goal-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 11px;
    min-height: 67px;
    border-bottom: 1px solid var(--line-soft);
}

.goal-row > div {
    min-width: 0;
}

.goal-row strong,
.goal-row span {
    display: block;
}

.goal-row strong {
    color: var(--ink);
    font-size: 10px;
}

.goal-row span {
    color: var(--muted);
    font-size: 8px;
}

.goal-row > b {
    color: var(--brand-700);
    font-size: 10px;
}

.goal-progress {
    height: 4px;
    margin-top: 7px;
    border-radius: 4px;
    background: #ebf0ed;
}

.goal-progress i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--brand-700), #4ac195);
}

.donut-wrap {
    display: grid;
    min-height: 176px;
    place-items: center;
}

.donut {
    display: flex;
    width: 138px;
    height: 138px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: radial-gradient(circle closest-side, white 75%, transparent 76% 99%), conic-gradient(var(--brand-600) calc(var(--value) * 1%), #e9efec 0);
}

.donut strong {
    color: var(--ink);
    font-size: 25px;
}

.donut span {
    color: var(--muted);
    font-size: 8px;
}

.document-layout,
.inbox-layout {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 15px;
}

.document-folders,
.inbox-folders {
    padding: 12px;
}

.document-folders h3 {
    margin: 4px 7px 10px;
    color: var(--ink);
    font-size: 11px;
}

.document-folders button,
.inbox-folders button {
    display: flex;
    width: 100%;
    height: 39px;
    align-items: center;
    gap: 9px;
    padding: 0 9px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #65736d;
    cursor: pointer;
    font-size: 9.5px;
    text-align: left;
}

.document-folders button.active,
.inbox-folders button.active {
    background: var(--brand-50);
    color: var(--brand-700);
    font-weight: 600;
}

.document-folders button span,
.inbox-folders button span {
    flex: 1;
}

.document-folders button b,
.inbox-folders button b {
    font-size: 8px;
}

.document-content {
    overflow: hidden;
}

.document-row {
    display: grid;
    grid-template-columns: auto 1fr auto auto auto;
    align-items: center;
    gap: 12px;
    min-height: 67px;
    padding: 8px 16px;
    border-bottom: 1px solid var(--line-soft);
}

.file-icon {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border-radius: 9px;
}

.document-row strong,
.document-row span {
    display: block;
}

.document-row strong {
    color: var(--ink);
    font-size: 10px;
}

.document-row span,
.document-row > small {
    color: var(--muted);
    font-size: 8.5px;
}

.workflow-steps {
    display: flex;
    margin: 30px 0 34px;
}

.workflow-step {
    position: relative;
    display: flex;
    min-width: 0;
    flex: 1;
    align-items: center;
    gap: 8px;
}

.workflow-step:not(:last-child)::after {
    position: absolute;
    z-index: 0;
    top: 16px;
    right: 8px;
    left: 34px;
    height: 2px;
    background: #e4eae7;
    content: "";
}

.workflow-step i {
    z-index: 1;
    display: grid;
    width: 32px;
    height: 32px;
    flex: 0 0 auto;
    place-items: center;
    border: 2px solid #e0e6e3;
    border-radius: 50%;
    background: #fff;
    color: #8b9792;
    font-size: 9px;
    font-style: normal;
}

.workflow-step.complete i {
    border-color: var(--green);
    background: var(--green);
    color: #fff;
}

.workflow-step.active i {
    border-color: var(--blue);
    color: var(--blue);
}

.workflow-step > div {
    z-index: 1;
    padding-right: 6px;
    background: #fff;
}

.workflow-step strong,
.workflow-step span {
    display: block;
}

.workflow-step strong {
    color: var(--ink);
    font-size: 9px;
}

.workflow-step span {
    color: var(--muted);
    font-size: 7.5px;
}

.payroll-alert {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 13px;
    border: 1px solid #f3dfad;
    border-radius: 9px;
    background: #fffbf1;
}

.payroll-alert > div:nth-child(2) {
    flex: 1;
}

.payroll-alert strong,
.payroll-alert span {
    display: block;
}

.payroll-alert strong {
    color: #694a0c;
    font-size: 10px;
}

.payroll-alert span {
    color: #93752d;
    font-size: 8.5px;
}

.spark-bars {
    display: flex;
    height: 240px;
    align-items: flex-end;
    justify-content: space-around;
    gap: 10px;
    padding: 20px 8px 2px;
    background-image: repeating-linear-gradient(to bottom, var(--line-soft) 0, var(--line-soft) 1px, transparent 1px, transparent 25%);
}

.spark-bars > div {
    display: flex;
    height: 100%;
    flex: 1;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
}

.spark-bars i {
    width: min(27px, 70%);
    border-radius: 5px 5px 1px 1px;
    background: linear-gradient(to top, var(--brand-700), #4ac195);
}

.spark-bars span {
    margin-top: 7px;
    color: var(--muted);
    font-size: 8px;
}

.line-chart {
    position: relative;
    height: 260px;
    padding: 8px 0 25px 30px;
}

.line-chart svg {
    width: 100%;
    height: 200px;
}

.line-grid {
    position: absolute;
    inset: 8px 0 33px 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-image: repeating-linear-gradient(to bottom, var(--line-soft) 0, var(--line-soft) 1px, transparent 1px, transparent 33.33%);
}

.line-grid span {
    color: var(--muted);
    font-size: 7px;
    transform: translateY(-50%);
}

.chart-months {
    display: flex;
    justify-content: space-between;
    color: var(--muted);
    font-size: 7px;
}

.department-bars {
    display: grid;
    gap: 21px;
    padding-top: 17px;
}

.department-bars > div {
    display: grid;
    grid-template-columns: 80px 1fr 24px;
    align-items: center;
    gap: 9px;
}

.department-bars span,
.department-bars strong {
    font-size: 9px;
}

.department-bars span {
    color: var(--muted);
}

.department-bars strong {
    color: var(--ink);
    text-align: right;
}

.department-bars div div {
    height: 7px;
    overflow: hidden;
    border-radius: 6px;
    background: #edf1ef;
}

.department-bars i {
    display: block;
    height: 100%;
    border-radius: inherit;
}

.report-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.report-grid button {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 10px;
    padding: 11px;
    border: 1px solid var(--line-soft);
    border-radius: 9px;
    background: #fbfcfb;
    cursor: pointer;
    text-align: left;
}

.report-grid button > div {
    min-width: 0;
    flex: 1;
}

.report-grid strong,
.report-grid small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.report-grid strong {
    color: var(--ink);
    font-size: 9.5px;
}

.report-grid small {
    color: var(--muted);
    font-size: 8px;
}

.inbox-list {
    overflow: hidden;
}

.inbox-list article {
    display: flex;
    min-height: 91px;
    align-items: flex-start;
    gap: 11px;
    padding: 17px;
    border-bottom: 1px solid var(--line-soft);
}

.inbox-list article.unread {
    background: #f7fcf9;
}

.inbox-list article.unread::before {
    width: 5px;
    height: 5px;
    flex: 0 0 auto;
    margin-top: 12px;
    border-radius: 50%;
    background: var(--brand-600);
    content: "";
}

.inbox-list article > div:nth-of-type(2) {
    min-width: 0;
    flex: 1;
}

.inbox-list strong {
    color: var(--ink);
    font-size: 10.5px;
}

.inbox-list p {
    margin: 4px 0;
    color: #697870;
    font-size: 9px;
}

.inbox-list span {
    color: var(--muted);
    font-size: 8px;
}

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

.settings-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: start;
    gap: 13px;
    padding: 17px;
    cursor: pointer;
    text-align: left;
}

.settings-card:hover {
    border-color: #cbd9d3;
    box-shadow: 0 6px 20px rgba(16, 39, 31, .07);
}

.settings-card h3 {
    margin: 0;
    color: var(--ink);
    font-size: 12px;
}

.settings-card p {
    margin: 3px 0 10px;
    color: var(--muted);
    font-size: 9px;
}

.settings-card small {
    color: var(--brand-700);
    font-size: 8.5px;
    font-weight: 600;
}

.modal {
    position: fixed;
    z-index: 100;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.open {
    display: flex;
}

.modal-backdrop,
.command-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 27, 21, .49);
    backdrop-filter: blur(3px);
}

.modal-dialog {
    position: relative;
    width: min(500px, 100%);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    padding: 22px;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 24px 80px rgba(6, 30, 22, .23);
    animation: modal-in .18s ease;
}

.modal-wide {
    width: min(680px, 100%);
}

.modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 20px;
}

.modal-header h2 {
    margin: 0;
    color: var(--ink);
    font-size: 19px;
}

.form-stack {
    display: grid;
    gap: 14px;
}

.form-stack label {
    display: grid;
    gap: 6px;
}

.form-stack label > span {
    color: #53635c;
    font-size: 9.5px;
    font-weight: 600;
}

.form-stack input,
.form-stack select,
.form-stack textarea {
    width: 100%;
    min-height: 38px;
    padding: 8px 10px;
    border: 1px solid #d9e1dd;
    border-radius: 8px;
    outline: 0;
    background: #fff;
    color: var(--text);
    font-size: 10.5px;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.form-stack textarea {
    resize: vertical;
}

.form-stack input:focus,
.form-stack select:focus,
.form-stack textarea:focus {
    border-color: #51a98a;
    box-shadow: 0 0 0 3px rgba(18, 129, 94, .1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.workflow-hint {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    padding: 11px;
    border: 1px solid #cde9dc;
    border-radius: 9px;
    background: var(--brand-50);
    color: var(--brand-700);
}

.workflow-hint strong,
.workflow-hint span {
    display: block;
}

.workflow-hint strong {
    font-size: 9.5px;
}

.workflow-hint span {
    margin-top: 1px;
    color: #5c7d70;
    font-size: 8.5px;
}

.modal-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 6px;
}

.stepper {
    display: flex;
    align-items: center;
    margin: -3px 0 22px;
}

.stepper span {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--muted);
    font-size: 9px;
}

.stepper span.active {
    color: var(--brand-700);
    font-weight: 600;
}

.stepper i {
    display: grid;
    width: 23px;
    height: 23px;
    place-items: center;
    border: 1px solid #d8e0dc;
    border-radius: 50%;
    background: #fff;
    font-size: 8px;
    font-style: normal;
}

.stepper .active i {
    border-color: var(--brand-600);
    background: var(--brand-600);
    color: #fff;
}

.stepper b {
    height: 1px;
    flex: 1;
    margin: 0 8px;
    background: var(--line);
}

.approval-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 17px;
    border-bottom: 1px solid var(--line);
}

.approval-profile > div {
    flex: 1;
}

.approval-profile strong,
.approval-profile div span {
    display: block;
}

.approval-profile strong {
    color: var(--ink);
    font-size: 11px;
}

.approval-profile div span {
    color: var(--muted);
    font-size: 9px;
}

.approval-facts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 17px 0;
}

.approval-facts > div {
    padding: 11px;
    border: 1px solid var(--line-soft);
    border-radius: 8px;
    background: #fbfcfb;
}

.approval-facts span,
.approval-facts strong {
    display: block;
}

.approval-facts span {
    color: var(--muted);
    font-size: 8px;
}

.approval-facts strong {
    margin-top: 2px;
    color: var(--ink);
    font-size: 10px;
}

.profile-drawer {
    position: fixed;
    z-index: 110;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(400px, 100%);
    padding: 18px;
    overflow-y: auto;
    background: #fff;
    box-shadow: -20px 0 60px rgba(7, 35, 26, .15);
    transform: translateX(105%);
    transition: transform .22s ease;
}

.profile-drawer.open {
    transform: translateX(0);
}

.drawer-scrim {
    position: fixed;
    z-index: 105;
    inset: 0;
    display: none;
    background: rgba(8, 27, 21, .38);
}

.drawer-scrim.open {
    display: block;
}

.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--ink);
    font-size: 11px;
    font-weight: 650;
}

.drawer-profile {
    padding: 30px 0 25px;
    border-bottom: 1px solid var(--line);
    text-align: center;
}

.drawer-profile h2 {
    margin: 11px 0 1px;
    color: var(--ink);
    font-size: 18px;
}

.drawer-profile p {
    margin: 0 0 9px;
    color: var(--muted);
    font-size: 10px;
}

.drawer-profile .status {
    margin: auto;
}

.drawer-section {
    padding: 19px 0 4px;
    border-bottom: 1px solid var(--line);
}

.drawer-section h3 {
    margin: 0 0 10px;
    color: var(--ink);
    font-size: 11px;
}

.drawer-section a {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 0;
    color: #55665e;
    font-size: 9.5px;
}

.drawer-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding-top: 19px;
}

.command-palette {
    position: fixed;
    z-index: 130;
    inset: 0;
    display: none;
    justify-content: center;
    padding: 12vh 20px 20px;
}

.command-palette.open {
    display: flex;
}

.command-dialog {
    position: relative;
    width: min(580px, 100%);
    height: fit-content;
    overflow: hidden;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 25px 90px rgba(4, 26, 18, .3);
    animation: modal-in .16s ease;
}

.command-dialog > label {
    display: flex;
    height: 57px;
    align-items: center;
    gap: 10px;
    padding: 0 16px;
    border-bottom: 1px solid var(--line);
    color: var(--muted);
}

.command-dialog input {
    min-width: 0;
    flex: 1;
    border: 0;
    outline: 0;
    color: var(--ink);
    font-size: 12px;
}

.command-results {
    padding: 10px;
}

.command-results > span {
    display: block;
    padding: 5px 8px;
    color: var(--muted);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: .1em;
}

.command-results a,
.command-results button {
    display: flex;
    width: 100%;
    min-height: 50px;
    align-items: center;
    gap: 11px;
    padding: 8px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--brand-700);
    cursor: pointer;
    text-align: left;
}

.command-results a:hover,
.command-results button:hover {
    background: var(--brand-50);
}

.command-results div {
    min-width: 0;
    flex: 1;
}

.command-results strong,
.command-results small {
    display: block;
}

.command-results strong {
    color: var(--ink);
    font-size: 10.5px;
}

.command-results small {
    color: var(--muted);
    font-size: 8.5px;
}

.toast-stack {
    position: fixed;
    z-index: 160;
    right: 20px;
    bottom: 20px;
    display: grid;
    width: min(350px, calc(100vw - 40px));
    gap: 8px;
}

.toast {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 11px 13px;
    border: 1px solid #cde8db;
    border-radius: 10px;
    background: #f4fcf8;
    box-shadow: var(--shadow-md);
    color: var(--brand-700);
    font-size: 9.5px;
    animation: toast-in .22s ease;
}

.toast span {
    flex: 1;
}

.toast button {
    display: grid;
    width: 25px;
    height: 25px;
    place-items: center;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
}

.toast-warning {
    border-color: #f0dcaa;
    background: #fffbef;
    color: #98650c;
}

.sidebar-scrim {
    display: none;
}

body.modal-open {
    overflow: hidden;
}

[hidden] {
    display: none !important;
}

@keyframes modal-in {
    from { opacity: 0; transform: translateY(8px) scale(.985); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes pop-in {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes toast-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1180px) {
    :root {
        --sidebar-width: 230px;
    }

    .content {
        padding-inline: 21px;
    }

    .breadcrumb {
        min-width: 0;
    }

    .global-search {
        width: min(350px, 35vw);
    }

    .availability-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .availability-person:nth-child(n+4) {
        display: none;
    }

    .report-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 960px) {
    :root {
        --sidebar-width: 264px;
    }

    .sidebar {
        transform: translateX(-105%);
        transition: transform .22s ease;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .sidebar-close {
        display: grid;
    }

    .sidebar-scrim {
        position: fixed;
        z-index: 35;
        inset: 0;
        background: rgba(7, 28, 21, .35);
    }

    .sidebar-scrim.open {
        display: block;
    }

    .app-main {
        margin-left: 0;
    }

    .icon-button.mobile-menu {
        display: grid;
    }

    .breadcrumb {
        display: none;
    }

    .topbar {
        padding-inline: 18px;
    }

    .global-search {
        width: min(420px, 48vw);
        margin-left: 0;
    }

    .metric-grid,
    .leave-balance-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .span-7,
    .span-8 {
        grid-column: span 12;
    }

    .span-4,
    .span-5 {
        grid-column: span 6;
    }

    .planning-summary {
        display: none;
    }
}

@media (max-width: 700px) {
    .topbar {
        height: 57px;
        gap: 8px;
        padding-inline: 12px;
    }

    .global-search {
        min-width: 0;
        flex: 1;
    }

    .global-search span,
    .global-search kbd,
    .role-copy,
    .role-switcher > button > svg,
    .topbar-actions > .topbar-icon:first-child {
        display: none;
    }

    .role-switcher > button {
        min-width: auto;
        height: 42px;
        padding: 4px;
    }

    .role-menu {
        position: fixed;
        top: 54px;
        right: 8px;
    }

    .content {
        padding: 20px 13px 40px;
    }

    .page-heading {
        align-items: flex-start;
        flex-direction: column;
        margin-bottom: 18px;
    }

    .page-actions {
        width: 100%;
    }

    .page-actions .button {
        flex: 1;
    }

    .card-header {
        flex-wrap: wrap;
    }

    .card-header .select-control {
        max-width: 100%;
    }

    .metric-grid,
    .leave-balance-grid {
        grid-template-columns: 1fr;
        gap: 9px;
    }

    .dashboard-grid,
    .content-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .metric-card {
        min-height: 88px;
        padding: 13px;
    }

    .metric-copy strong {
        font-size: 20px;
    }

    .span-4,
    .span-5,
    .span-7,
    .span-8,
    .span-12 {
        grid-column: 1;
    }

    .dashboard-grid,
    .content-grid {
        gap: 11px;
    }

    .profile-detail-list {
        grid-template-columns: 1fr;
    }

    .attendance-chart {
        min-height: 200px;
        flex-direction: column;
    }

    .attendance-overview {
        overflow: hidden;
    }

    .attendance-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .chart-summary {
        width: auto;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: baseline;
        gap: 8px;
    }

    .chart-summary strong {
        font-size: 24px;
    }

    .mini-legend {
        width: 100%;
        grid-template-columns: auto auto;
        justify-content: start;
        margin-top: 2px;
    }

    .bar-chart {
        min-height: 130px;
    }

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

    .availability-person:nth-child(n+4) {
        display: grid;
    }

    .directory-toolbar,
    .planning-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .search-field.wide,
    .search-field {
        width: 100%;
    }

    .toolbar-actions {
        overflow-x: auto;
    }

    .toolbar-actions > * {
        flex: 0 0 auto;
    }

    .planning-toolbar .segmented {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
    }

    .planning-toolbar .segmented button {
        width: 100%;
    }

    .document-layout,
    .inbox-layout {
        grid-template-columns: 1fr;
    }

    .document-folders,
    .inbox-folders {
        display: flex;
        overflow-x: auto;
    }

    .document-folders h3,
    .document-folders button svg,
    .document-folders button b {
        display: none;
    }

    .document-folders button,
    .inbox-folders button {
        flex: 0 0 auto;
        width: auto;
    }

    .document-row {
        grid-template-columns: auto 1fr auto;
    }

    .document-row > small,
    .document-row .icon-button:last-child {
        display: none;
    }

    .workflow-steps {
        align-items: flex-start;
        flex-direction: column;
        gap: 11px;
        margin: 20px 0;
    }

    .workflow-step:not(:last-child)::after {
        top: 28px;
        bottom: -13px;
        left: 15px;
        width: 2px;
        height: auto;
    }

    .report-grid,
    .settings-grid {
        grid-template-columns: 1fr;
    }

    .request-tabs {
        overflow-x: auto;
    }

    .request-tabs button {
        flex: 0 0 auto;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .modal {
        align-items: flex-end;
        padding: 0;
    }

    .modal-dialog {
        width: 100%;
        max-height: 92vh;
        border-radius: 15px 15px 0 0;
    }

    .table-summary {
        align-items: stretch;
        flex-direction: column;
    }

    .table-summary .toolbar-actions {
        width: 100%;
    }

    .calendar-card {
        overflow-x: auto;
    }

    .month-grid {
        min-width: 500px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* AGROLORA RH focused application */
.topbar-context {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    color: var(--muted);
    font-size: 10px;
}

.topbar-context b {
    padding: 4px 8px;
    border-radius: 20px;
    background: var(--brand-50);
    color: var(--brand-700);
}

.logged-user {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 8px;
    border-radius: 999px;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

.logged-user:hover,
.logged-user.is-active {
    background: var(--brand-50);
}

.logged-user:hover strong {
    color: var(--brand-700);
}

.logged-user strong,
.logged-user small {
    display: block;
}

.logged-user strong {
    color: var(--ink);
    font-size: 10.5px;
}

.logged-user small {
    color: var(--muted);
    font-size: 8.5px;
}

.professional-list {
    display: grid;
}

.professional-row {
    display: flex;
    min-height: 58px;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid var(--line-soft);
}

.professional-row > div {
    min-width: 0;
    flex: 1;
}

.professional-row > div strong,
.professional-row > div span {
    display: block;
}

.professional-row > div strong {
    color: var(--ink);
    font-size: 10.5px;
}

.professional-row > div > span {
    overflow: hidden;
    color: var(--muted);
    font-size: 8.7px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.empty-state {
    display: flex;
    min-height: 150px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #94a09a;
    text-align: center;
}

.empty-state strong {
    margin-top: 8px;
    color: #5d6b65;
    font-size: 11px;
}

.empty-state span {
    margin-top: 2px;
    font-size: 9px;
}

.empty-table {
    padding: 32px;
    color: var(--muted);
    text-align: center;
}

.clock-summary {
    max-width: 330px;
    margin: auto;
}

.dashboard-pro .table-scroll {
    margin: 0 -8px -8px;
}

.dashboard-attendance-card {
    overflow: hidden;
}

.dashboard-attendance-split {
    display: grid;
    grid-template-columns: minmax(150px, .75fr) 1fr;
    gap: 14px;
    align-items: stretch;
}

.dashboard-attendance-overview,
.dashboard-personal-presence {
    display: grid;
    grid-template-columns: minmax(150px, .72fr) 1fr;
    gap: 14px;
    align-items: stretch;
}

.dashboard-personal-presence {
    align-items: center;
}

.dashboard-personal-copy {
    display: grid;
    gap: 12px;
}

.dashboard-presence-score {
    display: grid;
    min-height: 148px;
    place-content: center;
    border: 1px solid #dbece4;
    border-radius: 12px;
    background: #f2faf6;
    text-align: center;
}

.dashboard-presence-score strong {
    color: var(--brand-700);
    font-size: 34px;
    line-height: 1;
}

.dashboard-presence-score span,
.dashboard-insight-row span,
.dashboard-request-kpis span,
.dashboard-task-strip span,
.dashboard-team-summary span,
.holiday-modal-summary span {
    color: var(--muted);
    font-size: 8.5px;
}

.dashboard-chip-grid,
.dashboard-request-kpis,
.dashboard-task-strip,
.dashboard-role-grid,
.dashboard-team-summary {
    display: grid;
    gap: 8px;
}

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

.dashboard-chip-grid span,
.dashboard-request-kpis span,
.dashboard-task-strip span,
.dashboard-role-grid div,
.dashboard-team-summary span {
    min-height: 55px;
    padding: 10px;
    border: 1px solid var(--line-soft);
    border-radius: 9px;
    background: #fbfdfc;
}

.dashboard-chip-grid b,
.dashboard-request-kpis b,
.dashboard-task-strip b,
.dashboard-role-grid strong,
.dashboard-team-summary b,
.holiday-modal-summary strong {
    display: block;
    margin-bottom: 2px;
    color: var(--ink);
    font-size: 18px;
}

.dashboard-team-summary {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 14px;
}

.dashboard-attendance-actions {
    margin-top: 0;
}

.dashboard-insight-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.dashboard-insight-row span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 9px;
    border-radius: 999px;
    background: #f7faf8;
}

.dashboard-holiday-today {
    display: flex;
    min-height: 180px;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px;
    border: 1px dashed #d9b46a;
    border-radius: 12px;
    background: #fff9ec;
    color: #93620d;
}

.dashboard-holiday-today strong,
.dashboard-holiday-today span {
    display: block;
}

.dashboard-holiday-today strong {
    color: #704908;
    font-size: 13px;
}

.dashboard-holiday-today span {
    margin-top: 3px;
    font-size: 9px;
}

.dashboard-request-kpis,
.dashboard-task-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 10px;
}

.dashboard-task-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dashboard-operational-panel {
    display: grid;
    gap: 12px;
}

.dashboard-operational-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
}

.dashboard-operational-heading h2 {
    margin: 0;
    color: var(--ink);
    font-size: 16px;
    font-weight: 650;
}

.dashboard-operational-heading p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 10px;
}

.dashboard-operational-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.dashboard-operational-card {
    display: grid;
    grid-template-rows: auto auto auto 1fr auto;
    gap: 11px;
    min-width: 0;
    padding: 15px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.dashboard-operational-card header {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.dashboard-operational-card header div {
    min-width: 0;
}

.dashboard-operational-card header strong,
.dashboard-operational-mini-list strong {
    display: block;
    overflow: hidden;
    color: var(--ink);
    font-size: 12px;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-operational-card header small,
.dashboard-operational-mini-list small {
    display: block;
    overflow: hidden;
    color: var(--muted);
    font-size: 8.5px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-operational-icon {
    display: inline-flex;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    align-items: center;
    justify-content: center;
    border: 1px solid #d7e9df;
    border-radius: 8px;
    background: #f2faf6;
    color: var(--brand-700);
}

.dashboard-operational-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
}

.dashboard-operational-stats span {
    min-height: 50px;
    padding: 8px;
    border: 1px solid var(--line-soft);
    border-radius: 7px;
    background: #fbfdfc;
    color: var(--muted);
    font-size: 8.5px;
}

.dashboard-operational-stats span.is-warning {
    border-color: #e8c36d;
    background: #fff9ec;
    color: #93620d;
}

.dashboard-operational-stats b {
    display: block;
    margin-bottom: 2px;
    color: var(--ink);
    font-size: 17px;
}

.dashboard-operational-progress {
    overflow: hidden;
    height: 6px;
    border-radius: 999px;
    background: #edf3f0;
}

.dashboard-operational-progress i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--brand), #5aa07e);
}

.dashboard-operational-mini-list {
    display: grid;
    align-content: start;
    gap: 7px;
    min-height: 74px;
}

.dashboard-operational-mini-list > span {
    display: grid;
    min-width: 0;
    gap: 2px;
    padding: 7px 8px;
    border-left: 2px solid #cfe3da;
    border-radius: 6px;
    background: #f8fbfa;
    color: var(--muted);
    font-size: 9px;
}

.dashboard-operational-card .button {
    justify-self: start;
    min-height: 31px;
}

@media (max-width: 980px) {
    .dashboard-operational-grid {
        grid-template-columns: 1fr;
    }
}

.chat-workspace {
    display: grid;
    grid-template-columns: minmax(290px, 360px) minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}

.chat-sidebar-card,
.chat-conversation-card {
    min-width: 0;
}

.chat-sidebar-card {
    position: sticky;
    top: 80px;
    padding: 12px;
    display: grid;
    gap: 12px;
    max-height: calc(100vh - 104px);
    overflow: hidden;
}

.chat-panel-header,
.chat-conversation-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.chat-panel-header h2,
.chat-conversation-header h2 {
    margin: 0;
    color: var(--ink);
    font-size: 15px;
    font-weight: 650;
}

.chat-conversation-header p {
    margin: 3px 0 0;
    color: var(--muted);
    font-size: 9px;
}

.chat-unread-pill,
.chat-thread-item > b,
.nav-unread-badge,
.notification-count {
    display: inline-grid;
    min-width: 19px;
    height: 19px;
    place-items: center;
    padding: 0 5px;
    border-radius: 999px;
    background: #d94646;
    color: #fff;
    font-size: 8px;
    font-weight: 800;
    line-height: 1;
}

.chat-start-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: end;
}

.chat-start-form label,
.chat-group-box label {
    display: grid;
    min-width: 0;
    gap: 4px;
}

.chat-start-form label > span,
.chat-group-box label > span {
    color: var(--muted);
    font-size: 8px;
    font-weight: 700;
}

.chat-start-form select,
.chat-group-box input,
.chat-compose-form textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    outline: none;
    background: #fff;
    color: var(--ink);
    font: inherit;
}

.chat-start-form select,
.chat-group-box input {
    height: 34px;
    padding: 0 9px;
    font-size: 9px;
}

.chat-group-box {
    border: 1px solid var(--line-soft);
    border-radius: 9px;
    background: #fbfdfc;
}

.chat-group-box summary {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 10px;
    color: var(--ink);
    cursor: pointer;
    font-size: 9px;
    font-weight: 750;
}

.chat-group-box form {
    display: grid;
    gap: 9px;
    padding: 0 10px 10px;
}

.chat-member-picker {
    display: grid;
    max-height: 150px;
    gap: 6px;
    overflow: auto;
    padding-right: 3px;
}

.chat-member-picker label {
    display: grid;
    grid-template-columns: auto 24px minmax(0, 1fr);
    align-items: center;
    gap: 7px;
    padding: 7px;
    border: 1px solid var(--line-soft);
    border-radius: 7px;
    background: #fff;
    cursor: pointer;
}

.chat-member-picker label:has(input:checked) {
    border-color: var(--brand-600);
    background: var(--brand-50);
}

.chat-member-picker strong {
    overflow: hidden;
    color: var(--ink);
    font-size: 8.5px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chat-thread-list {
    display: grid;
    gap: 7px;
    overflow: auto;
    padding-right: 3px;
}

.chat-thread-item {
    position: relative;
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr) auto;
    gap: 8px;
    min-height: 76px;
    align-items: center;
    padding: 10px;
    border: 1px solid var(--line-soft);
    border-radius: 8px;
    background: #fff;
    color: inherit;
    text-decoration: none;
}

.chat-thread-item:hover,
.chat-thread-item.is-active {
    border-color: #cbe1d8;
    background: #f7fbf9;
}

.chat-thread-item.is-unread {
    border-color: #bfe0d2;
    box-shadow: inset 3px 0 0 var(--brand-600);
}

.chat-thread-item div {
    min-width: 0;
}

.chat-thread-item strong,
.chat-thread-item small,
.chat-thread-item p {
    display: block;
    overflow: hidden;
    margin: 0;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chat-thread-item strong {
    color: var(--ink);
    font-size: 10px;
    font-weight: 700;
}

.chat-thread-item small,
.chat-thread-item time,
.chat-thread-item p {
    color: var(--muted);
    font-size: 8px;
}

.chat-thread-item p {
    margin-top: 3px;
    color: #61716a;
}

.chat-thread-item > b {
    position: absolute;
    right: 9px;
    bottom: 8px;
}

.chat-conversation-card {
    display: grid;
    grid-template-rows: auto minmax(360px, calc(100vh - 318px)) auto;
    min-height: 610px;
    overflow: hidden;
    padding: 0;
}

.chat-conversation-header {
    padding: 16px 17px;
    border-bottom: 1px solid var(--line-soft);
    background: #fbfdfc;
}

.chat-member-stack {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 4px;
}

.chat-message-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow-y: auto;
    padding: 18px;
    background: linear-gradient(180deg, rgba(240, 250, 246, .46), rgba(255, 255, 255, .92));
}

.chat-message {
    display: flex;
    align-items: flex-end;
    gap: 8px;
}

.chat-message.is-mine {
    justify-content: flex-end;
}

.chat-bubble {
    max-width: min(620px, 78%);
    padding: 10px 12px;
    border: 1px solid var(--line-soft);
    border-radius: 10px 10px 10px 3px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(24, 58, 45, .05);
}

.chat-message.is-mine .chat-bubble {
    border-color: #0f6b4f;
    border-radius: 10px 10px 3px 10px;
    background: #0f6b4f;
    color: #fff;
}

.chat-bubble header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 5px;
}

.chat-bubble header strong,
.chat-bubble header time {
    font-size: 8px;
}

.chat-bubble header strong {
    color: var(--ink);
    font-weight: 750;
}

.chat-bubble header time {
    color: var(--muted);
}

.chat-message.is-mine .chat-bubble header strong,
.chat-message.is-mine .chat-bubble header time {
    color: rgba(255, 255, 255, .82);
}

.chat-bubble p {
    margin: 0;
    color: inherit;
    font-size: 10px;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.chat-compose-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 9px;
    padding: 13px;
    border-top: 1px solid var(--line-soft);
    background: #fff;
}

.chat-compose-form textarea {
    min-height: 52px;
    max-height: 130px;
    resize: vertical;
    padding: 10px 11px;
    font-size: 10px;
}

.chat-compose-form button {
    align-self: end;
    min-height: 42px;
}

.chat-empty-install,
.chat-empty-conversation,
.chat-empty-thread {
    display: grid;
    min-height: 260px;
    place-content: center;
    justify-items: center;
    gap: 8px;
    color: var(--muted);
    text-align: center;
}

.chat-empty-thread {
    min-height: 100%;
}

.chat-empty-conversation strong,
.chat-empty-thread strong {
    color: var(--ink);
    font-size: 13px;
}

@media (max-width: 980px) {
    .chat-workspace {
        grid-template-columns: 1fr;
    }

    .chat-sidebar-card {
        position: static;
        max-height: none;
    }

    .chat-conversation-card {
        grid-template-rows: auto minmax(340px, 56vh) auto;
        min-height: 540px;
    }
}

@media (max-width: 640px) {
    .chat-start-form,
    .chat-compose-form {
        grid-template-columns: 1fr;
    }

    .chat-bubble {
        max-width: 86%;
    }
}

.holiday-form {
    display: grid;
    grid-template-columns: minmax(115px, .85fr) minmax(140px, 1fr);
    gap: 8px;
    margin-bottom: 12px;
    padding: 10px;
    border: 1px solid var(--line-soft);
    border-radius: 10px;
    background: #fbfdfc;
}

.holiday-form label {
    display: grid;
    gap: 4px;
}

.holiday-form label:nth-of-type(3) {
    grid-column: span 2;
}

.holiday-form label span {
    color: var(--muted);
    font-size: 7px;
    font-weight: 750;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.holiday-form input,
.employee-role-form select {
    height: 32px;
    padding: 0 8px;
    border: 1px solid var(--line);
    border-radius: 7px;
    outline: none;
    background: #fff;
    color: var(--ink);
    font-size: 8.5px;
}

.holiday-form button {
    grid-column: span 2;
}

.holiday-modal-summary {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    padding: 10px;
    border: 1px solid #dbece4;
    border-radius: 10px;
    background: #f2faf6;
}

.holiday-modal-summary strong {
    margin: 0;
    color: var(--brand-700);
}

.holiday-management-dialog {
    width: min(900px, 100%);
}

.holiday-form-modal {
    grid-template-columns: minmax(130px, .7fr) minmax(180px, 1fr) minmax(180px, 1fr) auto;
    align-items: end;
}

.holiday-form-modal label:nth-of-type(3),
.holiday-form-modal button {
    grid-column: auto;
}

.holiday-control-list {
    display: grid;
    gap: 8px;
}

.holiday-control-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 9px;
    border: 1px solid var(--line-soft);
    border-radius: 10px;
    background: #fff;
}

.holiday-edit-form {
    display: grid;
    grid-template-columns: minmax(120px, .65fr) minmax(160px, 1fr) minmax(160px, 1fr) auto;
    align-items: end;
    gap: 8px;
    min-width: 0;
}

.holiday-edit-form label {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.holiday-edit-form label span {
    color: var(--muted);
    font-size: 7px;
    font-weight: 750;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.holiday-edit-form input {
    height: 32px;
    min-width: 0;
    padding: 0 8px;
    border: 1px solid var(--line);
    border-radius: 7px;
    outline: none;
    background: #fff;
    color: var(--ink);
    font-size: 8.5px;
}

.holiday-list {
    display: grid;
    gap: 8px;
}

.holiday-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 9px;
    padding: 8px;
    border: 1px solid var(--line-soft);
    border-radius: 9px;
}

.holiday-row > div {
    min-width: 0;
}

.holiday-row strong,
.holiday-row span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.holiday-row strong {
    color: var(--ink);
    font-size: 9px;
}

.holiday-row div > span {
    margin-top: 2px;
    color: var(--muted);
    font-size: 7.5px;
}

.dashboard-role-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.dashboard-role-grid span {
    color: var(--muted);
    font-size: 8px;
}

.employee-role-form {
    display: flex;
    align-items: center;
    gap: 6px;
}

.employee-role-form select {
    min-width: 150px;
}

.employee-admin-table td {
    vertical-align: middle;
}

.employee-admin-table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
}

.employee-admin-table tr.is-dirty {
    background: #fffaf0;
}

.employee-admin-table tr.is-saving {
    opacity: .72;
}

.employee-admin-table tr.is-saved {
    animation: employeeSavedPulse 1.2s ease;
}

.employee-admin-table th,
.employee-admin-table td {
    padding-right: 10px;
    padding-left: 10px;
}

.employee-admin-table th:nth-child(1),
.employee-admin-table td:nth-child(1) {
    width: 27%;
}

.employee-admin-table th:nth-child(2),
.employee-admin-table td:nth-child(2) {
    width: 14%;
}

.employee-admin-table th:nth-child(3),
.employee-admin-table td:nth-child(3) {
    width: 18%;
}

.employee-admin-table th:nth-child(4),
.employee-admin-table td:nth-child(4) {
    width: 14%;
}

.employee-admin-table th:nth-child(5),
.employee-admin-table td:nth-child(5) {
    width: 12%;
}

.employee-admin-table th:nth-child(6),
.employee-admin-table td:nth-child(6) {
    width: 15%;
}

.employee-admin-table .person-cell {
    min-width: 0;
}

.employee-admin-table .person-cell > div,
.employee-admin-table .person-cell strong,
.employee-admin-table .person-cell span {
    min-width: 0;
}

.employee-admin-input,
.employee-admin-select {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    height: 38px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    outline: none;
    background: #fff;
    color: var(--ink);
    font-size: 8.5px;
}

.employee-admin-input:focus,
.employee-admin-select:focus {
    border-color: var(--brand-600);
    box-shadow: 0 0 0 3px rgba(0, 111, 78, .12);
}

.employee-admin-input.is-dirty,
.employee-admin-select.is-dirty {
    border-color: #d98910;
    background: #fffdf7;
}

.employee-status-editor {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.employee-status-editor .button {
    white-space: nowrap;
}

.employee-save-button {
    display: inline-grid;
    width: 38px;
    min-width: 38px;
    padding: 0;
    place-items: center;
}

.employee-admin-table tr.is-dirty .employee-save-button {
    border-color: #d98910;
    background: #fff7e5;
    color: #8d5e0c;
}

.employee-save-button:disabled {
    cursor: wait;
    opacity: .55;
}

.employee-status-toggle {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-width: 86px;
    cursor: pointer;
    user-select: none;
}

.employee-status-toggle input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.employee-status-toggle span {
    position: relative;
    width: 34px;
    height: 19px;
    flex: 0 0 34px;
    border: 1px solid #d8e1dc;
    border-radius: 999px;
    background: #eef2f0;
    transition: background .15s ease, border-color .15s ease;
}

.employee-status-toggle span::after {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 13px;
    height: 13px;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(26, 43, 36, .18);
    content: "";
    transition: transform .15s ease;
}

.employee-status-toggle input:checked + span {
    border-color: #61b98f;
    background: #168454;
}

.employee-status-toggle input:checked + span::after {
    transform: translateX(15px);
}

.employee-status-toggle strong {
    color: var(--ink);
    font-size: 8.5px;
}

.employee-status-toggle.is-dirty span {
    border-color: #d98910;
    box-shadow: 0 0 0 3px rgba(217, 137, 16, .13);
}

.employee-status-locked {
    display: inline-flex;
    min-width: 86px;
}

@keyframes employeeSavedPulse {
    0% { background: #eef9f4; }
    100% { background: transparent; }
}

.empty-state.compact {
    min-height: 82px;
}

.profile-page {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr);
    gap: 14px;
    align-items: start;
}

.profile-main-column {
    display: grid;
    gap: 12px;
    min-width: 0;
}

.profile-page .profile-card-main {
    align-self: start;
    padding: 18px;
    overflow: hidden;
}

.profile-requests-card {
    padding: 18px;
}

.profile-side-stack {
    display: grid;
    align-self: start;
    align-content: start;
    gap: 10px;
    min-width: 0;
}

.profile-side-card {
    min-width: 0;
    padding: 16px;
}

.profile-side-card .card-header {
    margin-bottom: 12px;
}

.profile-side-card .form-stack {
    gap: 9px;
}

.profile-side-card .form-stack input {
    min-height: 34px;
}

.profile-page .modal-actions {
    margin-top: 0;
}

.profile-hero {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 12px;
    padding: 12px;
    border: 1px solid #dbece4;
    border-radius: 12px;
    background: #f2faf6;
}

.profile-hero h2 {
    margin: 2px 0 4px;
    color: var(--ink);
    font-size: 18px;
}

.profile-hero p {
    margin: 0;
    color: var(--muted);
    font-size: 9.5px;
}

.profile-form {
    max-width: none;
}

.profile-form-section {
    display: grid;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--line-soft);
    border-radius: 10px;
    background: #fbfdfc;
}

.profile-section-heading {
    display: grid;
    gap: 2px;
}

.profile-section-heading h3 {
    margin: 0;
    color: var(--ink);
    font-size: 14px;
}

.profile-detail-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
}

.profile-detail-list div {
    display: grid;
    gap: 2px;
    min-height: 48px;
    padding: 8px 9px;
    border: 1px solid var(--line-soft);
    border-radius: 9px;
    background: #fbfdfc;
}

.profile-detail-list span,
.profile-detail-list strong {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-detail-list span {
    color: var(--muted);
    font-size: 7.5px;
    font-weight: 800;
    text-transform: uppercase;
}

.profile-detail-list strong {
    color: var(--ink);
    font-size: 9.5px;
}

.profile-security-facts {
    display: grid;
    gap: 6px;
    margin-top: 10px;
}

.profile-security-facts div {
    padding: 8px 9px;
    border: 1px solid var(--line-soft);
    border-radius: 9px;
    background: #fbfdfc;
}

.profile-security-facts span,
.profile-security-facts strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-security-facts span {
    color: var(--muted);
    font-size: 8px;
}

.profile-security-facts strong {
    margin-top: 2px;
    color: var(--ink);
    font-size: 8.8px;
}

.profile-requests-card .empty-state.compact {
    min-height: 72px;
}

.filter-form {
    justify-content: flex-start;
}

.filter-form label,
.week-filter label {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--muted);
    font-size: 9px;
}

.filter-form input,
.filter-form select,
.week-filter input,
.decision-form input {
    height: 34px;
    padding: 0 9px;
    border: 1px solid var(--line);
    border-radius: 7px;
    outline: none;
    background: #fff;
    color: var(--text);
    font-size: 9.5px;
}

.timesheet-workspace {
    overflow: hidden;
}

.timesheet-toolbar {
    display: flex;
    min-height: 72px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--line);
    background: #fbfdfc;
}

.timesheet-filter {
    display: flex;
    align-items: center;
    gap: 9px;
}

.timesheet-month-control {
    display: flex;
    align-items: flex-end;
    gap: 8px;
}

.timesheet-month-control label {
    margin: 0;
}

.timesheet-month-nav {
    flex: 0 0 auto;
    margin-bottom: 2px;
}

.timesheet-month-nav.is-previous svg {
    transform: rotate(180deg);
}

.timesheet-filter select {
    min-width: 245px;
}

.timesheet-view-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.timesheet-view-actions > div:first-child {
    text-align: right;
}

.timesheet-view-actions strong,
.timesheet-view-actions span {
    display: block;
}

.timesheet-view-actions strong {
    color: var(--ink);
    font-size: 11px;
}

.timesheet-view-actions span {
    margin-top: 2px;
    color: var(--muted);
    font-size: 8px;
}

.timesheet-panel {
    overflow-x: auto;
}

.timesheet-calendar {
    display: grid;
    min-width: 890px;
    grid-template-columns: repeat(5, minmax(148px, 1.35fr)) repeat(2, minmax(72px, .55fr));
}

.timesheet-weekday {
    display: grid;
    height: 35px;
    place-items: center;
    border-right: 1px solid var(--line-soft);
    border-bottom: 1px solid var(--line);
    background: #f6f9f7;
    color: #7e8c86;
    font-size: 8px;
    font-weight: 750;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.timesheet-weekday:nth-child(6),
.timesheet-weekday:nth-child(7) {
    background: #ecefed;
    color: #6e7974;
}

.timesheet-day {
    min-height: 142px;
    padding: 9px;
    border-right: 1px solid var(--line-soft);
    border-bottom: 1px solid var(--line-soft);
    background: #fff;
}

.timesheet-day:nth-child(7n) {
    border-right: 0;
}

.timesheet-day.is-weekend {
    background: #eef1ef;
    color: #77827d;
}

.timesheet-calendar > :nth-child(7n + 6),
.timesheet-calendar > :nth-child(7n) {
    background-color: #eef1ef;
}

.timesheet-day.is-holiday,
.leave-calendar-day.is-holiday {
    background: #fffaf0;
}

.timesheet-day.is-today {
    box-shadow: inset 0 0 0 2px #75c6a4;
}

.timesheet-day-empty {
    background: #f8faf9;
}

.timesheet-day > header {
    display: flex;
    min-height: 23px;
    align-items: center;
    justify-content: space-between;
    gap: 5px;
}

.timesheet-day > header time {
    display: inline-grid;
    width: 24px;
    height: 24px;
    place-items: center;
    border-radius: 50%;
    color: #53625c;
    font-size: 10px;
    font-weight: 700;
}

.timesheet-day.is-today > header time {
    background: var(--brand-700);
    color: #fff;
}

.timesheet-day > header span {
    color: var(--muted);
    font-size: 7px;
}

.timesheet-day-events {
    display: grid;
    gap: 5px;
    margin-top: 7px;
}

.timesheet-calendar-entry {
    overflow: hidden;
    width: 100%;
    padding: 6px 7px;
    border: 0;
    border-left: 3px solid #5dbea0;
    border-radius: 6px;
    background: #f0faf5;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
}

.timesheet-calendar-entry:hover {
    box-shadow: inset 0 0 0 1px rgba(15, 107, 79, .16);
}

.timesheet-calendar-entry:focus-visible {
    outline: 2px solid rgba(15, 107, 79, .32);
    outline-offset: 2px;
}

.timesheet-calendar-entry strong,
.timesheet-calendar-entry span,
.timesheet-calendar-entry small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.timesheet-no-entry.is-holiday-label {
    border-color: #f1dbad;
    background: #fff6df;
    color: #9a650d;
}

.timesheet-calendar-entry strong {
    color: var(--ink);
    font-size: 8px;
}

.timesheet-calendar-entry span {
    margin-top: 1px;
    color: #316c57;
    font-size: 8px;
    font-weight: 650;
}

.timesheet-calendar-entry small {
    margin-top: 1px;
    color: var(--muted);
    font-size: 7px;
}

.timesheet-no-entry {
    padding: 12px 2px;
    color: #b0bab5;
    font-size: 7.5px;
}

.timesheet-more {
    width: fit-content;
    padding: 2px 3px;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: var(--brand-700);
    cursor: pointer;
    font-family: inherit;
    font-size: 7.5px;
    font-weight: 650;
    text-align: left;
}

.timesheet-more:hover {
    background: var(--brand-50);
    text-decoration: underline;
}

.timesheet-day-dialog {
    width: min(620px, 100%);
    padding: 18px;
}

.timesheet-day-modal-header {
    align-items: center;
    margin-bottom: 14px;
}

.timesheet-day-modal-title {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 11px;
}

.timesheet-day-modal-title > div {
    min-width: 0;
}

.timesheet-day-modal-title h2 {
    margin-top: 1px;
    font-size: 15px;
}

.timesheet-day-modal-title p {
    margin: 2px 0 0;
    color: var(--muted);
    font-size: 8px;
}

.timesheet-day-profile-list {
    display: grid;
    max-height: min(480px, 65vh);
    gap: 7px;
    overflow-y: auto;
    padding-right: 2px;
}

.timesheet-day-profile {
    display: grid;
    min-height: 68px;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 9px;
    padding: 9px 10px;
    border: 1px solid #e3eae6;
    border-left: 3px solid #5dbea0;
    border-radius: 8px;
    background: #fbfdfc;
}

.timesheet-day-profile.status-line-open,
.timesheet-day-profile.status-line-incomplete {
    border-left-color: #d77a2e;
    background: #fff7f0;
}

.timesheet-day-profile.status-line-corrected {
    border-left-color: #4285d4;
    background: #f4f8ff;
}

.timesheet-day-profile.status-line-absent {
    border-left-color: #d95858;
    background: #fff5f5;
}

.timesheet-day-profile.status-line-remote {
    border-left-color: #4285d4;
    background: #f4f8ff;
}

.timesheet-day-profile-copy {
    display: grid;
    min-width: 0;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
}

.timesheet-day-profile-copy > div:first-child strong,
.timesheet-day-profile-copy > div:first-child span {
    display: block;
}

.timesheet-day-profile-copy > div:first-child {
    min-width: 0;
}

.timesheet-day-profile-copy > div:first-child strong {
    overflow: hidden;
    color: var(--ink);
    font-size: 9.5px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.timesheet-day-profile-copy > div:first-child span {
    margin-top: 2px;
    color: var(--muted);
    font-size: 7.5px;
}

.timesheet-day-profile-time {
    text-align: right;
}

.timesheet-day-profile-time strong {
    color: #395d50;
    font-size: 8.5px;
}

.timesheet-status-control {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.timesheet-status-form {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0;
}

.timesheet-status-form select {
    height: 29px;
    min-width: 118px;
    padding: 0 8px;
    border: 1px solid var(--line);
    border-radius: 7px;
    outline: none;
    background: #fff;
    color: var(--text);
    font-size: 9px;
}

.timesheet-status-form select:focus {
    border-color: rgba(15, 107, 79, .45);
    box-shadow: 0 0 0 2px rgba(15, 107, 79, .12);
}

.status-line-open,
.status-line-incomplete {
    border-left-color: #d77a2e;
    background: #fff4ea;
}

.status-line-corrected {
    border-left-color: #4285d4;
    background: #edf5ff;
}

.status-line-absent {
    border-left-color: #d95858;
    background: #fff0f0;
}

.status-line-remote {
    border-left-color: #4285d4;
    background: #edf5ff;
}

.leave-timeline {
    display: grid;
}

.leave-timeline-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
    min-height: 72px;
    border-bottom: 1px solid var(--line-soft);
}

.calendar-date {
    display: grid;
    width: 44px;
    height: 44px;
    align-content: center;
    justify-items: center;
    gap: 2px;
    border-radius: 10px;
    background: var(--brand-50);
    color: var(--brand-700);
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
}

.calendar-date small {
    font-size: 7px;
    font-weight: 700;
    line-height: 1;
}

.leave-timeline-row strong,
.leave-timeline-row div span {
    display: block;
}

.leave-timeline-row strong {
    color: var(--ink);
    font-size: 10.5px;
}

.leave-timeline-row div span {
    color: var(--muted);
    font-size: 8.5px;
}

.request-review-list {
    display: grid;
}

.request-review-card {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) auto;
    gap: 14px;
    padding: 18px;
    border-bottom: 1px solid var(--line);
}

.request-review-main {
    display: flex;
    align-items: flex-start;
    gap: 11px;
}

.request-review-main > div {
    min-width: 0;
}

.request-review-main h3 {
    margin: 0;
    color: var(--ink);
    font-size: 12px;
}

.request-review-main p,
.request-review-main small {
    display: block;
    margin: 3px 0 0;
    color: var(--muted);
    font-size: 9px;
}

.request-review-status {
    text-align: right;
}

.request-review-status > span {
    display: block;
    margin-top: 5px;
    color: var(--muted);
    font-size: 8px;
}

.decision-form {
    display: flex;
    grid-column: 1 / -1;
    justify-content: flex-end;
    gap: 7px;
    padding-top: 11px;
    border-top: 1px solid var(--line-soft);
}

.decision-form input {
    min-width: 260px;
}

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

.export-card {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: start;
    gap: 13px;
    padding: 18px;
}

.export-card h2 {
    margin: 0;
    color: var(--ink);
    font-size: 13px;
}

.export-card p {
    min-height: 38px;
    margin: 4px 0 5px;
    color: var(--muted);
    font-size: 9px;
}

.export-card div > span {
    color: var(--brand-700);
    font-size: 8.5px;
    font-weight: 600;
}

.export-card > .button {
    grid-column: 2;
    justify-self: start;
    margin-top: 8px;
}

.week-filter {
    display: flex;
    align-items: center;
    gap: 8px;
}

.focused-kanban {
    grid-template-columns: repeat(5, minmax(250px, 1fr));
}

.focused-kanban .kanban-column {
    min-height: 520px;
}

.focused-kanban .kanban-items {
    min-height: 455px;
}

.empty-column {
    display: grid;
    min-height: 90px;
    place-items: center;
    border: 1px dashed #ccd6d1;
    border-radius: 9px;
    color: var(--muted);
    font-size: 9px;
}

.auth-body {
    overflow: auto;
    background: #eff4f1;
}

.auth-shell {
    display: grid;
    min-height: 100vh;
    grid-template-columns: minmax(360px, .9fr) minmax(480px, 1.1fr);
}

.auth-brand-panel {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
    padding: 38px 48px;
    background:
        radial-gradient(circle at 15% 10%, rgba(93, 218, 170, .19), transparent 24rem),
        linear-gradient(145deg, #06382e, #0b5843);
    color: #fff;
}

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

.auth-brand-logo {
    width: 286px;
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, .36);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 18px 44px rgba(0, 0, 0, .18);
}

.auth-brand strong,
.auth-brand span {
    display: block;
}

.auth-brand strong {
    letter-spacing: .12em;
    font-size: 15px;
}

.auth-brand div > span {
    color: rgba(255,255,255,.6);
    font-size: 10px;
}

.auth-value {
    max-width: 520px;
    margin: auto 0;
}

.auth-value > span {
    color: #8be0bf;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .14em;
}

.auth-value h1 {
    margin: 12px 0 16px;
    font-size: clamp(32px, 4vw, 52px);
    letter-spacing: -.045em;
    line-height: 1.07;
}

.auth-value > p {
    max-width: 470px;
    color: rgba(255,255,255,.67);
    font-size: 12px;
}

.auth-feature-list {
    display: grid;
    gap: 10px;
    margin-top: 28px;
}

.auth-feature-list div {
    display: flex;
    align-items: center;
    gap: 9px;
    color: rgba(255,255,255,.85);
    font-size: 10px;
}

.auth-brand-panel > small {
    color: rgba(255,255,255,.42);
    font-size: 8.5px;
}

.auth-form-panel {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 35px;
}

.auth-card {
    width: min(430px, 100%);
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 20px 65px rgba(10, 55, 42, .09);
}

.auth-card h2 {
    margin: 0;
    color: var(--ink);
    font-size: 24px;
    letter-spacing: -.03em;
}

.auth-card > p {
    margin: 5px 0 22px;
    color: var(--muted);
    font-size: 10px;
}

.auth-form {
    gap: 13px;
}

.auth-form label small {
    color: var(--muted);
    font-size: 8px;
}

.input-with-icon {
    display: flex;
    align-items: center;
    gap: 7px;
    padding-left: 10px;
    border: 1px solid #d9e1dd;
    border-radius: 8px;
    color: #819089;
}

.input-with-icon input {
    border: 0;
    box-shadow: none !important;
}

.auth-switch {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 9.5px;
    text-align: center;
}

.auth-switch a {
    color: var(--brand-700);
    font-weight: 650;
}

.auth-alert {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 18px;
    padding: 11px;
    border: 1px solid #f0dcaa;
    border-radius: 9px;
    background: #fffbef;
    color: #8c640e;
    font-size: 9px;
}

.auth-alert-success {
    border-color: #cde8db;
    background: #f4fcf8;
    color: var(--brand-700);
}

.dev-login-panel {
    margin: 0 0 17px;
    padding: 12px;
    border: 1px solid #cce6da;
    border-radius: 11px;
    background: linear-gradient(145deg, #f4fbf7, #f9fcfa);
}

.dev-login-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.dev-login-heading > div {
    display: flex;
    align-items: center;
    gap: 7px;
}

.dev-login-heading strong {
    color: var(--brand-800);
    font-size: 10px;
}

.dev-login-heading small {
    padding: 3px 6px;
    border-radius: 20px;
    background: #dff4e9;
    color: var(--brand-700);
    font-size: 7.5px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.dev-status-dot {
    width: 7px;
    height: 7px;
    flex: 0 0 auto;
    border: 2px solid #c6ead9;
    border-radius: 50%;
    background: #1ca66f;
    box-sizing: content-box;
}

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

.dev-profile-grid form {
    min-width: 0;
}

.dev-profile-card {
    display: flex;
    width: 100%;
    min-height: 58px;
    align-items: center;
    gap: 8px;
    padding: 8px;
    border: 1px solid #dce7e1;
    border-radius: 8px;
    background: #fff;
    color: var(--text);
    cursor: pointer;
    text-align: left;
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.dev-profile-card:hover {
    border-color: #8fcbb2;
    box-shadow: 0 6px 16px rgba(13, 93, 67, .08);
    transform: translateY(-1px);
}

.dev-profile-card > span:nth-child(2) {
    min-width: 0;
    flex: 1;
}

.dev-profile-card strong,
.dev-profile-card small {
    display: block;
}

.dev-profile-card strong {
    color: var(--ink);
    font-size: 9.5px;
}

.dev-profile-card small {
    overflow: hidden;
    margin-top: 2px;
    color: var(--muted);
    font-size: 7.5px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dev-profile-card > svg {
    color: var(--brand-600);
}

.dev-profile-avatar {
    display: inline-flex;
    width: 29px;
    height: 29px;
    min-width: 29px;
    min-height: 29px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 0;
    border-radius: 8px;
    background: var(--brand-50);
    color: var(--brand-700);
    font-size: 8px;
    font-weight: 750;
    line-height: 1;
    text-align: center;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 15px;
    color: #94a099;
    font-size: 8px;
}

.auth-divider::before,
.auth-divider::after {
    height: 1px;
    flex: 1;
    background: var(--line);
    content: "";
}

.dev-switcher {
    position: relative;
}

.dev-switcher > summary {
    display: flex;
    height: 32px;
    align-items: center;
    gap: 6px;
    padding: 0 9px;
    border: 1px solid #cfe5da;
    border-radius: 8px;
    background: #f3faf6;
    color: var(--brand-700);
    cursor: pointer;
    font-size: 9px;
    font-weight: 650;
    list-style: none;
}

.dev-switcher > summary::-webkit-details-marker {
    display: none;
}

.dev-switcher[open] > summary {
    border-color: #91cbb2;
    background: #eaf7f0;
}

.dev-switcher-menu {
    position: absolute;
    z-index: 80;
    top: 40px;
    right: 0;
    display: grid;
    width: 275px;
    gap: 5px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: #fff;
    box-shadow: 0 16px 45px rgba(18, 50, 39, .16);
}

.dev-switcher-menu > div {
    padding: 2px 3px 7px;
}

.dev-switcher-menu > div strong,
.dev-switcher-menu > div small {
    display: block;
}

.dev-switcher-menu > div strong {
    color: var(--ink);
    font-size: 10px;
}

.dev-switcher-menu > div small {
    margin-top: 2px;
    color: var(--muted);
    font-size: 8px;
}

.dev-switcher-menu button {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 8px;
    padding: 7px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
    text-align: left;
}

.dev-switcher-menu button:hover,
.dev-switcher-menu button.active {
    border-color: #d2e8dd;
    background: #f3faf6;
}

.dev-switcher-menu button > span:nth-child(2) {
    min-width: 0;
    flex: 1;
}

.dev-switcher-menu button strong,
.dev-switcher-menu button small {
    display: block;
}

.dev-switcher-menu button strong {
    color: var(--ink);
    font-size: 9.5px;
}

.dev-switcher-menu button small {
    overflow: hidden;
    margin-top: 1px;
    color: var(--muted);
    font-size: 7.5px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dev-switcher-menu button > svg {
    color: var(--brand-600);
}

.is-loading {
    opacity: .7;
    pointer-events: none;
}

.status-submitted,
.status-in-review,
.status-open,
.status-incomplete {
    background: var(--amber-100);
    color: #a96809;
}

.status-approved,
.status-valid,
.status-completed,
.status-active {
    background: var(--green-100);
    color: #168454;
}

.status-holiday {
    background: #fff3d6;
    color: #9a650d;
}

.status-declined,
.status-blocked,
.status-absent {
    background: var(--red-100);
    color: var(--red);
}

.status-todo,
.status-in-progress,
.status-review,
.status-corrected {
    background: var(--blue-100);
    color: var(--blue);
}

@media (max-width: 900px) {
    .auth-shell {
        grid-template-columns: 1fr;
    }

    .auth-brand-panel {
        display: none;
    }

    .auth-form-panel {
        padding: 20px;
    }

    .export-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .topbar-context,
    .logged-user > div {
        display: none;
    }

    .request-review-card {
        grid-template-columns: 1fr;
    }

    .request-review-status {
        text-align: left;
    }

    .decision-form {
        align-items: stretch;
        flex-direction: column;
    }

    .decision-form input {
        min-width: 0;
        width: 100%;
    }

    .filter-form {
        align-items: stretch;
    }

    .filter-form label {
        justify-content: space-between;
    }

    .auth-card {
        padding: 23px 18px;
    }

    .timesheet-toolbar,
    .timesheet-view-actions,
    .timesheet-filter {
        align-items: stretch;
        flex-direction: column;
    }

    .timesheet-view-actions {
        gap: 9px;
    }

    .timesheet-view-actions > div:first-child {
        text-align: left;
    }

    .timesheet-filter select {
        min-width: 0;
        width: 100%;
    }

    .timesheet-month-control {
        width: 100%;
    }

    .timesheet-month-control label {
        flex: 1;
    }

    .timesheet-month-control input {
        width: 100%;
    }

    .timesheet-day-profile {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .timesheet-day-profile-copy {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .timesheet-day-profile-time {
        text-align: left;
    }

    .timesheet-status-control {
        justify-content: flex-start;
    }

    .timesheet-status-form {
        width: 100%;
        flex-wrap: wrap;
    }

    .timesheet-status-form select {
        flex: 1 1 130px;
    }

    .dev-switcher > summary > span:nth-child(2) {
        display: none;
    }

    .dev-switcher-menu {
        position: fixed;
        top: 58px;
        right: 8px;
    }
}

@media (max-width: 420px) {
    .dev-profile-grid {
        grid-template-columns: 1fr;
    }
}

/* Congés: espace personnel et pilotage hiérarchique */
[data-leave-workspace],
[data-timesheet-workspace],
[data-absence-workspace] {
    position: relative;
    transition: opacity .16s ease;
}

[data-leave-workspace].is-updating,
[data-timesheet-workspace].is-updating,
[data-absence-workspace].is-updating {
    min-height: 360px;
    opacity: .55;
    pointer-events: none;
}

[data-leave-workspace].is-updating::after,
[data-timesheet-workspace].is-updating::after,
[data-absence-workspace].is-updating::after {
    position: absolute;
    z-index: 4;
    top: 90px;
    left: 50%;
    width: 28px;
    height: 28px;
    border: 3px solid #dcebe4;
    border-top-color: var(--brand-700);
    border-radius: 50%;
    content: "";
    animation: leave-loading-spin .7s linear infinite;
}

@keyframes leave-loading-spin {
    to { transform: rotate(360deg); }
}

.leave-control-panel {
    margin-bottom: 18px;
    overflow: hidden;
}

.leave-filter-form {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    padding: 16px;
    border-bottom: 1px solid var(--line);
    background: #fbfdfc;
}

.leave-filter-form label {
    display: grid;
    min-width: 145px;
    gap: 6px;
}

.leave-filter-form label > span,
.leave-decision-form label > span {
    color: var(--muted);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.leave-filter-form input,
.leave-filter-form select,
.leave-decision-form input {
    height: 36px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    outline: none;
    background: #fff;
    color: var(--ink);
    font-size: 9.5px;
}

.leave-filter-form input:focus,
.leave-filter-form select:focus,
.leave-decision-form input:focus {
    border-color: var(--brand-500);
    box-shadow: 0 0 0 3px rgba(15, 107, 79, .08);
}

.leave-filter-form .leave-employee-filter {
    min-width: 280px;
    flex: 1;
}

.leave-filter-actions {
    display: flex;
    gap: 8px;
}

.leave-scope-note {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 11px 16px;
    background: #f4faf7;
    color: #527064;
    font-size: 9px;
    line-height: 1.55;
}

.leave-scope-note svg {
    flex: 0 0 auto;
    color: var(--brand-700);
}

.section-heading-inline {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin: 23px 0 10px;
}

.section-heading-inline h2 {
    margin: 3px 0 0;
    color: var(--ink);
    font-size: 14px;
}

.context-chip {
    display: inline-flex;
    min-height: 26px;
    align-items: center;
    padding: 0 10px;
    border: 1px solid #d8e8e1;
    border-radius: 999px;
    background: #f4faf7;
    color: var(--brand-700);
    font-size: 8.5px;
    font-weight: 700;
}

.leave-balance-card {
    min-height: 145px;
    padding: 17px;
}

.leave-balance-card .balance-top > div > span,
.leave-balance-card .balance-top > div > small,
.leave-balance-card .balance-top > strong,
.leave-balance-card .balance-top > strong > small {
    display: block;
}

.leave-balance-card .balance-top > div > span {
    color: var(--ink);
    font-size: 11px;
    font-weight: 700;
}

.leave-balance-card .balance-top > div > small {
    margin-top: 4px;
    color: var(--muted);
    font-size: 8px;
}

.leave-balance-card .balance-top > strong {
    text-align: right;
}

.leave-balance-card .balance-top > strong > small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 7.5px;
}

.leave-balance-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

.leave-balance-details span {
    color: var(--muted);
    font-size: 7.5px;
}

.leave-balance-details b {
    display: block;
    margin-bottom: 2px;
    color: var(--ink);
    font-size: 9.5px;
}

.leave-balance-empty {
    grid-column: 1 / -1;
    padding: 24px;
    color: var(--muted);
    text-align: center;
}

.leave-calendar-card {
    margin-top: 18px;
    overflow: hidden;
}

.leave-calendar-header,
.leave-requests-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 18px;
    border-bottom: 1px solid var(--line);
}

.leave-calendar-header h2,
.leave-requests-header h2 {
    margin: 3px 0 0;
    color: var(--ink);
    font-size: 15px;
}

.leave-calendar-header p,
.leave-requests-header p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 8.5px;
}

.leave-calendar-navigation {
    display: flex;
    align-items: center;
    gap: 7px;
}

.leave-calendar-navigation > a:first-child svg {
    transform: rotate(180deg);
}

.leave-calendar-scroll {
    overflow-x: auto;
}

.leave-calendar-grid {
    display: grid;
    min-width: 980px;
    grid-template-columns: repeat(7, minmax(140px, 1fr));
}

.leave-calendar-weekday {
    display: grid;
    height: 36px;
    place-items: center;
    border-right: 1px solid var(--line-soft);
    border-bottom: 1px solid var(--line);
    background: #f6f9f7;
    color: #74847d;
    font-size: 8px;
    font-weight: 750;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.leave-calendar-day {
    min-height: 148px;
    padding: 9px;
    border-right: 1px solid var(--line-soft);
    border-bottom: 1px solid var(--line-soft);
    background: #fff;
}

.leave-calendar-day.is-weekend {
    background: #fafcfb;
}

.leave-calendar-day.is-empty {
    background: #f7f9f8;
}

.leave-calendar-day.is-today {
    box-shadow: inset 0 0 0 2px var(--brand-500);
}

.leave-day-number {
    display: flex;
    min-height: 24px;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    margin-bottom: 7px;
}

.leave-day-number > span {
    display: grid;
    width: 24px;
    height: 24px;
    place-items: center;
    border-radius: 50%;
    color: var(--ink);
    font-size: 9px;
    font-weight: 750;
}

.leave-calendar-day.is-today .leave-day-number > span {
    background: var(--brand-700);
    color: #fff;
}

.leave-day-number small {
    color: var(--muted);
    font-size: 7px;
}

.leave-day-events {
    display: grid;
    gap: 5px;
}

.leave-calendar-event {
    display: grid;
    min-width: 0;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 6px;
    padding: 6px;
    border-left: 3px solid #d6a743;
    border-radius: 7px;
    background: #fff9ec;
}

.holiday-calendar-event {
    display: grid;
    min-width: 0;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 6px;
    padding: 6px;
    border-left: 3px solid #d98910;
    border-radius: 7px;
    background: #fff4d9;
    color: #8d5e0c;
}

.holiday-calendar-event strong,
.holiday-calendar-event small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.holiday-calendar-event strong {
    color: #704908;
    font-size: 7.5px;
}

.holiday-calendar-event small {
    margin-top: 2px;
    color: #9a650d;
    font-size: 6.5px;
}

.leave-calendar-event.status-line-approved {
    border-left-color: var(--green);
    background: #eef9f4;
}

.leave-calendar-event.status-line-declined,
.leave-calendar-event.status-line-cancelled {
    border-left-color: #d65a5a;
    background: #fff3f2;
}

.leave-event-avatar {
    display: inline-flex;
    width: 23px;
    height: 23px;
    min-width: 23px;
    min-height: 23px;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 0;
    border-radius: 50%;
    background: #fff;
    color: var(--brand-700);
    font-size: 7px;
    font-weight: 750;
    line-height: 1;
    text-align: center;
    box-shadow: 0 0 0 1px rgba(15, 107, 79, .1);
}

.leave-calendar-event > span:last-child {
    min-width: 0;
}

.leave-calendar-event strong,
.leave-calendar-event small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.leave-calendar-event strong {
    color: var(--ink);
    font-size: 7.5px;
}

.leave-calendar-event small {
    margin-top: 2px;
    color: var(--muted);
    font-size: 6.5px;
}

.leave-more-events {
    color: var(--brand-700);
    font-size: 7.5px;
    font-weight: 700;
    text-decoration: none;
}

.absence-calendar-event {
    display: grid;
    min-width: 0;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 6px;
    padding: 6px;
    border-left: 3px solid #d6a743;
    border-radius: 7px;
    background: #fff9ec;
    color: inherit;
    text-decoration: none;
}

.absence-calendar-event.status-line-approved {
    border-left-color: var(--green);
    background: #eef9f4;
}

.absence-calendar-event.status-line-declined,
.absence-calendar-event.status-line-cancelled {
    border-left-color: #d65a5a;
    background: #fff3f2;
}

.absence-calendar-event > span:last-child {
    min-width: 0;
}

.absence-calendar-event strong,
.absence-calendar-event small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.absence-calendar-event strong {
    color: var(--ink);
    font-size: 7.5px;
}

.absence-calendar-event small {
    margin-top: 2px;
    color: var(--muted);
    font-size: 6.5px;
}

.absence-request-card {
    scroll-margin-top: 18px;
}

.absence-request-facts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    margin-top: 15px;
    overflow: hidden;
    border: 1px solid var(--line-soft);
    border-radius: 9px;
    background: var(--line-soft);
}

.absence-request-facts > div {
    min-width: 0;
    padding: 11px;
    background: #fbfdfc;
}

.absence-request-facts span,
.absence-request-facts strong {
    display: block;
}

.absence-request-facts span {
    color: var(--muted);
    font-size: 7px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.absence-request-facts strong {
    margin-top: 5px;
    color: var(--ink);
    font-size: 9px;
}

.absence-mode-switch {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
}

.absence-mode-switch label {
    position: relative;
    cursor: pointer;
}

.absence-mode-switch input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.absence-mode-switch label > span {
    display: grid;
    min-height: 80px;
    grid-template-columns: auto 1fr;
    align-content: center;
    column-gap: 9px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: #fbfdfc;
    transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}

.absence-mode-switch label > span svg {
    grid-row: 1 / span 2;
    color: var(--brand-700);
}

.absence-mode-switch strong,
.absence-mode-switch small {
    display: block;
}

.absence-mode-switch strong {
    color: var(--ink);
    font-size: 9.5px;
}

.absence-mode-switch small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 7.5px;
}

.absence-mode-switch input:checked + span {
    border-color: var(--brand-500);
    background: #f1faf6;
    box-shadow: 0 0 0 3px rgba(15, 107, 79, .07);
}

[data-absence-mode-panel] {
    display: grid;
    gap: 12px;
}

[data-absence-mode-panel][hidden] {
    display: none;
}

.leave-requests-card {
    margin-top: 18px;
    overflow: hidden;
    scroll-margin-top: 18px;
}

.leave-request-list {
    display: grid;
}

.leave-request-card {
    padding: 18px;
    border-bottom: 1px solid var(--line);
}

.leave-request-card:last-child {
    border-bottom: 0;
}

.leave-request-card > header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.leave-request-identity {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 11px;
}

.leave-request-identity > div {
    min-width: 0;
}

.leave-request-identity h3 {
    margin: 2px 0;
    color: var(--ink);
    font-size: 12px;
}

.leave-request-identity small,
.leave-request-state small {
    display: block;
    color: var(--muted);
    font-size: 8px;
}

.leave-request-state {
    display: grid;
    justify-items: end;
    gap: 5px;
    text-align: right;
}

.leave-request-facts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    margin-top: 15px;
    overflow: hidden;
    border: 1px solid var(--line-soft);
    border-radius: 9px;
    background: var(--line-soft);
}

.leave-request-facts > div {
    min-width: 0;
    padding: 11px;
    background: #fbfdfc;
}

.leave-request-facts span,
.leave-request-facts strong,
.leave-request-facts small {
    display: block;
}

.leave-request-facts span {
    color: var(--muted);
    font-size: 7px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.leave-request-facts strong {
    margin-top: 5px;
    overflow: hidden;
    color: var(--ink);
    font-size: 9px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.leave-request-facts small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 7.5px;
}

.leave-request-reason {
    margin-top: 12px;
    padding: 11px 13px;
    border-radius: 8px;
    background: #f7f9f8;
}

.leave-request-reason span {
    color: var(--muted);
    font-size: 7px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.leave-request-reason p {
    margin: 4px 0 0;
    color: #4c5c55;
    font-size: 8.5px;
    line-height: 1.55;
}

.leave-decision-comment {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin-top: 10px;
    padding: 10px 12px;
    border: 1px solid #d9ece3;
    border-radius: 8px;
    background: #f2faf6;
    color: var(--brand-700);
}

.leave-decision-comment strong,
.leave-decision-comment span {
    display: block;
}

.leave-decision-comment strong {
    font-size: 8px;
}

.leave-decision-comment span {
    margin-top: 2px;
    color: #587267;
    font-size: 8px;
}

.leave-decision-trace {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 10px;
    padding: 10px 12px;
    border: 1px solid #d9ece3;
    border-radius: 8px;
    background: #f2faf6;
}

.leave-decision-trace-declined {
    border-color: #f1d9d7;
    background: #fff5f4;
}

.leave-decision-trace > div strong,
.leave-decision-trace > div span {
    display: block;
}

.leave-decision-trace > div strong {
    color: var(--ink);
    font-size: 8.5px;
}

.leave-decision-trace > div > span {
    margin-top: 3px;
    color: var(--muted);
    font-size: 7.5px;
}

.leave-decision-form {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed var(--line);
}

.leave-decision-form label {
    display: grid;
    flex: 1;
    gap: 5px;
}

.leave-decision-form > div {
    display: flex;
    gap: 7px;
}

.leave-duration-preview {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 9px 11px;
    border: 1px solid #dcebe4;
    border-radius: 8px;
    background: #f4faf7;
    color: #527064;
    font-size: 8.5px;
}

@media (max-width: 1100px) {
    .leave-filter-form {
        flex-wrap: wrap;
    }

    .leave-filter-form .leave-employee-filter {
        min-width: 340px;
    }

    .leave-request-facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .absence-request-facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .dashboard-attendance-split,
    .dashboard-attendance-overview,
    .dashboard-personal-presence,
    .dashboard-chip-grid,
    .dashboard-request-kpis,
    .dashboard-task-strip,
    .dashboard-team-summary,
    .holiday-form-modal,
    .holiday-edit-form,
    .holiday-control-row,
    .holiday-form {
        grid-template-columns: 1fr;
    }

    .holiday-form label:nth-of-type(3),
    .holiday-form-modal label:nth-of-type(3),
    .holiday-form-modal button,
    .holiday-form button {
        grid-column: auto;
    }

    .employee-status-editor {
        align-items: stretch;
        flex-direction: column;
        min-width: 0;
    }

    .employee-admin-input,
    .employee-admin-select,
    .employee-status-editor .button {
        width: 100%;
    }

    .profile-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .leave-filter-form,
    .leave-filter-actions,
    .leave-calendar-header,
    .leave-requests-header,
    .leave-request-card > header,
    .leave-decision-form {
        align-items: stretch;
        flex-direction: column;
    }

    .leave-filter-form label,
    .leave-filter-form .leave-employee-filter {
        min-width: 0;
        width: 100%;
    }

    .leave-filter-actions > *,
    .leave-decision-form > div > * {
        flex: 1;
    }

    .leave-calendar-navigation {
        justify-content: space-between;
    }

    .leave-request-state {
        justify-items: start;
        text-align: left;
    }

    .leave-request-facts {
        grid-template-columns: 1fr;
    }

    .absence-request-facts {
        grid-template-columns: 1fr;
    }

    .absence-mode-switch {
        grid-template-columns: 1fr;
    }

    .leave-decision-form > div {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
}

/* Keep every initials avatar circular and centered, regardless of component text rules. */
.avatar.avatar {
    display: inline-flex;
    width: 35px;
    height: 35px;
    min-width: 35px;
    min-height: 35px;
    flex: 0 0 35px;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 0;
    border-radius: 50%;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
}

.avatar.avatar-sm {
    width: 31px;
    height: 31px;
    min-width: 31px;
    min-height: 31px;
    flex-basis: 31px;
}

.avatar.avatar-xs {
    width: 25px;
    height: 25px;
    min-width: 25px;
    min-height: 25px;
    flex-basis: 25px;
}

.avatar.avatar-xl {
    width: 68px;
    height: 68px;
    min-width: 68px;
    min-height: 68px;
    flex-basis: 68px;
}
/* Monthly agenda: one full-width day per row. */
.own-report-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.own-report-actions .own-report-delete { color: #ad3030; border-color: #edcccc; }
.monthly-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; padding: 18px; margin-bottom: 20px; }
.monthly-toolbar .daily-date-filter { margin: 0; }
.monthly-total { margin-left: auto; padding: 8px 12px; border-radius: 20px; background: #edf5f0; color: #25604a; font-size: 12px; font-weight: 600; }
.monthly-days { display: flex; flex-direction: column; gap: 8px; }
.monthly-day { min-width: 0; background: #fff; border: 1px solid #dfe7e2; border-radius: 14px; box-shadow: 0 2px 5px #183c2810; }
.monthly-day-header { display: flex; align-items: center; gap: 10px; padding: 10px 14px; }
.monthly-date-number { display: grid; place-items: center; flex: 0 0 34px; height: 34px; border-radius: 9px; background: #eef5f0; color: #216248; font-size: 17px; font-weight: 700; }
.monthly-date-copy { min-width: 0; display: flex; align-items: baseline; flex-wrap: wrap; gap: 3px 12px; }
.monthly-day .monthly-date-copy h2 { font-size: 15px; line-height: 1.5; margin: 0 0 3px; color: var(--text); }
.monthly-date-copy > span { font-size: 12px; color: var(--muted); }
.monthly-today-label { padding: 5px 10px; border-radius: 20px; background: #e1f2e9; color: #0f6b4f; font-size: 11px; font-weight: 700; }
.monthly-add { margin-left: auto; flex-shrink: 0; }
.monthly-day-tasks { display: grid; gap: 6px; padding: 0 14px 10px; }
.monthly-task { min-width: 0; border: 1px solid #e1e8e3; border-radius: 10px; background: #fff; overflow-wrap: anywhere; }
.monthly-task summary { display: flex; align-items: center; gap: 12px; padding: 9px 12px; cursor: pointer; list-style: none; border-radius: 10px; }
.monthly-task summary::-webkit-details-marker { display: none; }
.monthly-task summary:hover { background: #f6f9f7; }
.monthly-task summary:focus-visible { outline: 2px solid #0f6b4f; outline-offset: 3px; }
.monthly-task-copy { flex: 1; min-width: 0; display: flex; align-items: baseline; flex-wrap: wrap; gap: 3px 16px; }
.monthly-task-copy > strong { display: block; color: var(--text); font-size: 14px; line-height: 1.6; }
.monthly-task-copy > .monthly-report-preview { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.monthly-task-meta { display: flex; flex-wrap: wrap; gap: 3px 12px; margin-top: 0; color: var(--muted); font-size: 12px; }
.monthly-task-meta > span { display: inline-flex; align-items: center; gap: 5px; }
.monthly-task-meta svg { flex-shrink: 0; }
.monthly-task .status { flex-shrink: 0; font-size: 11px; }
.monthly-task-chevron { display: flex; color: var(--muted); flex-shrink: 0; }
.monthly-task[open] .monthly-task-chevron { transform: rotate(180deg); }
.monthly-task-body { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; border-top: 1px solid #e7ede8; padding: 7px 12px; background: #fafcfb; border-radius: 0 0 10px 10px; }
.monthly-description { flex: 1 1 280px; min-width: 0; white-space: pre-wrap; font-size: 13px; line-height: 1.6; margin: 0; color: #46584c; }
.monthly-status-form { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 0; }
.monthly-status-form label { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; min-width: 0; margin: 0; }
.monthly-status-form select { width: auto; min-width: 130px; height: 32px; border: 1px solid #d9e3dc; border-radius: 7px; padding: 4px 8px; background: #fff; color: var(--text); font-size: 12px; }
.monthly-status-form .button { min-height: 32px; padding: 5px 10px; }
.monthly-no-task { color: var(--muted); font-size: 12px; line-height: 1.6; margin: 0; padding: 2px 0; }
.monthly-day.is-weekend { background: #f1f3f4; border-color: #e2e5e7; box-shadow: none; }
.monthly-day.is-weekend .monthly-day-header { padding-top: 6px; padding-bottom: 6px; }
.monthly-day.is-weekend .monthly-date-number { flex-basis: 36px; height: 36px; font-size: 16px; background: #e5e8ea; color: #626b73; border-radius: 9px; }
.monthly-day.is-weekend .monthly-date-copy { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; }
.monthly-day.is-weekend .monthly-date-copy h2 { color: #626b73; font-size: 13px; margin: 0; }
.monthly-day.is-weekend .monthly-day-tasks { padding-left: 14px; }
.monthly-day.is-today { border-color: #3d9470; box-shadow: inset 3px 0 #0f6b4f; }
.monthly-empty { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; padding: 18px; }
@media (max-width: 650px) {
    .monthly-day-header { padding: 8px 10px; gap: 8px; flex-wrap: wrap; }
    .monthly-date-number { flex-basis: 30px; height: 30px; font-size: 16px; }
    .monthly-date-copy { flex: 1; }
    .monthly-day .monthly-date-copy h2 { font-size: 13px; }
    .monthly-add { padding: 8px; }
    .monthly-add span { display: none; }
    .monthly-today-label { order: 1; }
    .monthly-day-tasks, .monthly-day.is-weekend .monthly-day-tasks { padding: 0 10px 8px; }
    .monthly-task summary { gap: 6px; flex-wrap: wrap; padding: 8px; }
    .monthly-task-copy { flex-basis: 100%; gap: 2px 10px; }
    .monthly-task-chevron { margin-left: auto; }
    .monthly-task-body { padding: 7px 8px; }
    .monthly-status-form label { min-width: 0; }
    .monthly-toolbar { gap: 8px; padding: 12px; }
    .monthly-toolbar .daily-date-filter { flex-wrap: wrap; }
    .monthly-total { margin-left: 0; }
}

.topbar-actions { margin-left: auto; }
.topbar-organization { position: relative; flex: 0 0 auto; }
.organization-trigger {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 42px;
    padding: 5px 10px;
    border: 1px solid #dce7df;
    border-radius: 10px;
    background: #fff;
    color: #426957;
    list-style: none;
    transition: border-color .15s, background .15s, box-shadow .15s;
}
summary.organization-trigger { cursor: pointer; }
.organization-trigger::-webkit-details-marker { display: none; }
.organization-trigger img, .organization-option img {
    display: block;
    width: 108px;
    height: 30px;
    object-fit: contain;
}
.organization-trigger > svg { flex-shrink: 0; transition: transform .15s; }
.topbar-organization[open] > .organization-trigger > svg { transform: rotate(180deg); }
summary.organization-trigger:hover, .topbar-organization[open] > .organization-trigger {
    border-color: #89b49d;
    background: #f5faf7;
}
.organization-trigger:focus-visible, .organization-option:focus-visible {
    outline: 2px solid #0f6b4f;
    outline-offset: 3px;
}
.organization-options {
    position: absolute;
    z-index: 40;
    top: calc(100% + 8px);
    right: 0;
    display: grid;
    gap: 5px;
    width: 190px;
    max-height: min(320px, 65vh);
    overflow-y: auto;
    margin: 0;
    padding: 7px;
    border: 1px solid #dce7df;
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(15, 59, 40, .14);
}
.organization-option {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    min-height: 54px;
    padding: 9px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: #fff;
    color: #0f6b4f;
    cursor: pointer;
}
.organization-option:not(:disabled):hover { border-color: #cbded2; background: #f5faf7; }
.organization-option.is-active { border-color: #cbded2; background: #edf6f0; opacity: 1; cursor: default; }
.organization-option > svg { flex-shrink: 0; }
@media (max-width: 700px) {
    .organization-trigger { height: 38px; padding: 4px 7px; gap: 5px; }
    .organization-trigger img { width: 76px; height: 28px; }
    .organization-options { position: fixed; top: 63px; right: 12px; }
    .topbar-actions { gap: 5px; }
}
@media (max-width: 380px) {
    .topbar { gap: 6px; }
    .topbar-actions { gap: 3px; }
    .topbar .dev-switcher > summary { padding-inline: 6px; gap: 5px; }
    .organization-trigger img { width: 62px; }
    .topbar .logged-user { padding-inline: 2px; }
}
.employee-list-filters, .employee-lifecycle-actions { display: flex; gap: 7px; flex-wrap: wrap; }
.employee-lifecycle-form { margin-top: 7px; }
.employee-password { display: block; white-space: nowrap; font-size: 12px; color: #174a36; }
.employee-password-note { padding: 0 20px 12px; margin: 0; color: #677d73; font-size: 12px; }
.employee-password-custom { color: #677d73; font-size: 11px; }
.employee-admin-table { min-width: 1420px; }
.employee-table-scroll { overflow-x: auto; max-width: 100%; }
.employee-admin-table th:nth-child(1), .employee-admin-table td:nth-child(1) { width: 20%; }
.employee-admin-table th:nth-child(2), .employee-admin-table td:nth-child(2) { width: 10%; }
.employee-admin-table th:nth-child(3), .employee-admin-table td:nth-child(3) { width: 12%; }
.employee-admin-table th:nth-child(4), .employee-admin-table td:nth-child(4) { width: 10%; }
.employee-admin-table th:nth-child(5), .employee-admin-table td:nth-child(5) { width: 12%; }
.employee-admin-table th:nth-child(6), .employee-admin-table td:nth-child(6) { width: 10%; }
.employee-admin-table th:nth-child(7), .employee-admin-table td:nth-child(7) { width: 13%; }
.employee-admin-table th:nth-child(8), .employee-admin-table td:nth-child(8) { width: 13%; }
.employee-admin-table th:nth-child(7), .employee-admin-table td:nth-child(7) { min-width: 185px; }
.employee-admin-table th:nth-child(8), .employee-admin-table td:nth-child(8) { min-width: 180px; }

/* Login and registration */
.auth-refresh { background: #f8faf7; }
.auth-refresh .auth-shell { width: 100%; min-height: 100dvh; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding: 18px; gap: 18px; }
.auth-refresh .auth-brand-panel {
    position: relative;
    isolation: isolate;
    display: flex;
    min-height: calc(100dvh - 36px);
    overflow: hidden;
    padding: 34px clamp(30px, 4.4vw, 78px);
    border-radius: 24px;
    background: radial-gradient(ellipse at 0% 0%, #52836320, transparent 65%), radial-gradient(ellipse at 95% 95%, #2b685044, transparent 58%), linear-gradient(150deg, #113f32, #082e25);
}
.auth-refresh .auth-brand-logo { width: 210px; height: auto; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.auth-refresh .auth-brand { position: relative; z-index: 1; }
.auth-refresh .auth-value { position: relative; z-index: 1; max-width: 540px; margin: auto 0; padding: 28px 0 32px; animation: auth-arrive .7s ease-out both; }
.auth-refresh .auth-eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 8px 11px; border: 1px solid #e0edcb1c; border-radius: 999px; background: #d1e7a908; color: #c4d6c7; font-size: 9px; font-weight: 500; letter-spacing: .12em; }
.auth-eyebrow > svg { color: #d1e7a9; }
.auth-eyebrow i { width: 6px; height: 6px; border-radius: 50%; background: #d0e5a0; box-shadow: 0 0 0 4px #d0e5a011; }
.auth-refresh .auth-value h1 { margin: 25px 0 22px; font-size: clamp(38px, 4vw, 62px); line-height: 1.14; letter-spacing: -.045em; font-weight: 550; }
.auth-refresh .auth-value h1 em { color: #d1e7a9; font-style: normal; }
.auth-refresh .auth-value > p { max-width: 375px; margin: 0; color: #b8ccc0; font-size: 13px; line-height: 1.9; }
.auth-refresh .auth-feature-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; margin-top: 24px; padding-top: 0; border: 0; }
.auth-refresh .auth-feature-list > div { display: flex; min-width: 0; min-height: 43px; align-items: center; gap: 9px; padding: 7px 9px; border: 1px solid #dce8da16; border-radius: 11px; background: linear-gradient(145deg, #f1f6e80b, #f1f6e803); line-height: 1.4; transition: border-color .25s, background .25s, transform .25s; }
.auth-refresh .auth-feature-list > div:hover { border-color: #d1e7a93d; background: #ffffff09; transform: translateY(-3px); }
.auth-refresh .auth-feature-list strong { margin: 0; color: #edf3e9; font-size: 10px; font-weight: 500; }
.auth-refresh .auth-feature-list > div > span:last-child { margin-top: 4px; color: #a9c2b4; font-size: 9px; }
.auth-feature-icon { position: relative; display: grid; width: 28px; height: 28px; flex: 0 0 auto; place-items: center; border: 1px solid #d6ecc523; border-radius: 8px; background: linear-gradient(145deg, #d1e7a91b, #d1e7a908); color: #d1e7a9; box-shadow: inset 0 1px 0 #ffffff0a; }
.auth-feature-requests { color: #a9dccb; background: linear-gradient(145deg, #a9dccb18, #a9dccb05); }
.auth-feature-messages { color: #e9d7a9; background: linear-gradient(145deg, #e9d7a918, #e9d7a905); }
.auth-brand-decoration { position: absolute; z-index: -1; right: -170px; bottom: -155px; width: 470px; height: 470px; pointer-events: none; }
.auth-brand-decoration > span { position: absolute; inset: 0; border: 1px solid #cde1b718; border-radius: 50%; }
.auth-brand-decoration > span:nth-child(2) { inset: 55px; }
.auth-brand-decoration > span:nth-child(3) { inset: 110px; }
.auth-brand-decoration::after { content: ''; position: absolute; inset: 0; border-top: 1px solid #d0e5a04d; border-radius: 50%; animation: loader-turn 40s linear infinite; }
.auth-brand-decoration > img { position: absolute; left: 125px; top: 125px; width: 220px; height: 220px; object-fit: contain; opacity: .2; }
.auth-form-decoration { top: -155px; right: -130px; bottom: auto; }
.auth-form-decoration > span { border-color: #315f4212; }
.auth-form-decoration::after { border-top-color: #315f4226; }
.auth-form-decoration > img { filter: brightness(0); opacity: .07; }
.auth-brand-footer { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #91b0a0; }
.auth-brand-footer small { font-size: 9px; letter-spacing: .04em; }
.auth-brand-footer > span { display: flex; align-items: center; gap: 6px; font-size: 9px; }
.auth-refresh .auth-form-panel { position: relative; isolation: isolate; display: flex; min-height: calc(100dvh - 36px); flex-direction: column; justify-content: center; overflow: hidden; padding: 80px 30px 60px; }
.auth-mobile-brand { display: none; }
.auth-form-context { position: absolute; top: 22px; right: 24px; left: 24px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.auth-form-context > span { display: inline-flex; align-items: center; gap: 8px; color: #64766b; font-size: 9px; letter-spacing: .06em; }
.auth-form-context > span:first-child { color: #536a5b; font-weight: 600; }
.auth-form-context i { width: 3px; height: 3px; border-radius: 50%; background: #9aa79d; }
.auth-refresh .auth-card { width: min(400px, 100%); margin: auto; padding: 20px 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; text-align: center; animation: auth-arrive .65s .08s ease-out both; }
.auth-refresh .auth-card .auth-welcome-icon { margin-inline: auto; }
.auth-refresh .auth-card .auth-form label { text-align: center; }
.auth-refresh .auth-card .auth-form input { text-align: center; }
.auth-welcome-icon { display: grid; width: 51px; height: 51px; margin-bottom: 25px; place-items: center; border: 1px solid #dfe8da; border-radius: 16px; background: #edf3e8; color: #477145; }
.auth-organization-logos { display: flex; align-items: center; justify-content: center; gap: 18px; margin-bottom: 25px; }
.auth-organization-logos img { display: block; width: min(130px, 38%); height: 48px; object-fit: contain; }
.auth-organization-logos > span { width: 1px; height: 27px; flex-shrink: 0; background: #dfe8da; }
.auth-refresh .auth-card .section-kicker { display: block; margin-bottom: 10px; font-size: 9px; letter-spacing: .15em; color: #547258; }
.auth-refresh .auth-card h2 { font-size: clamp(25px, 2.2vw, 34px); line-height: 1.2; font-weight: 600; letter-spacing: -.045em; color: #183d2f; }
.auth-refresh .auth-card > p { margin: 12px 0 30px; color: #6b7d71; font-size: 12px; line-height: 1.8; }
.auth-refresh .auth-form { gap: 10px; }
.auth-refresh .auth-form label { gap: 8px; }
.auth-refresh .auth-form label > span { color: #344e3e; font-size: 11px; font-weight: 600; }
.auth-refresh .auth-form > label:not(:first-of-type) { margin-top: 8px; }
.auth-refresh .input-with-icon { min-width: 0; gap: 10px; padding-left: 15px; border: 1px solid #d9e3d8; border-radius: 11px; background: #fff; color: #6f8574; transition: border-color .2s, box-shadow .2s; }
.auth-refresh .input-with-icon:focus-within { border-color: #477c57; box-shadow: 0 0 0 3px #477c5714; }
.auth-refresh .input-with-icon > svg { flex-shrink: 0; }
.auth-refresh .input-with-icon input { width: 100%; min-width: 0; height: 49px; padding: 0 12px 0 0; border-radius: 11px; outline: none; background: transparent; font-size: 12px; }
.auth-refresh .auth-form input::placeholder { color: #96a398; font-weight: 400; }
.auth-password-toggle { display: grid; width: 42px; height: 44px; flex: 0 0 auto; place-items: center; margin-right: 3px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: #738778; cursor: pointer; }
.auth-password-toggle:hover { background: #f1f6ed; color: #214f36; }
.auth-password-toggle span:not([hidden]) { display: flex; }
.auth-password-toggle:focus-visible { outline: 2px solid #477c57; outline-offset: -4px; }
.auth-refresh .auth-submit { display: flex; height: 49px; align-items: center; justify-content: center; gap: 13px; margin-top: 14px; border: 1px solid #164c38; border-radius: 11px; background: #164c38; box-shadow: 0 5px 12px #164c3815; font-size: 12px; font-weight: 600; transition: background .2s, transform .2s, box-shadow .2s; }
.auth-refresh .auth-submit:hover { transform: translateY(-1px); background: #0d3929; box-shadow: 0 7px 18px #164c3825; }
.auth-submit > svg { transition: transform .2s; }
.auth-submit:hover > svg { transform: translateX(3px); }
.auth-refresh .auth-switch { margin-top: 24px; padding-top: 0; border: 0; color: #758376; font-size: 10px; line-height: 1.8; }
.auth-refresh .auth-switch a { margin-left: 3px; color: #2a5839; text-decoration: none; }
.auth-refresh .auth-switch a:hover { text-decoration: underline; }
.auth-privacy-note { display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 28px; padding-top: 21px; border-top: 1px solid #e3e9df; color: #718271; font-size: 9px; }
.auth-privacy-note svg { color: #74936e; flex-shrink: 0; }
.auth-form-footer { position: absolute; bottom: 14px; align-self: center; color: #7b897b; font-size: 9px; }
.auth-refresh .auth-alert { font-size: 11px; line-height: 1.6; }
.auth-refresh .auth-form .form-row { gap: 12px; }
.auth-refresh .auth-form > label > input, .auth-refresh .auth-form .form-row input { min-width: 0; height: 45px; border-radius: 10px; background: #fff; font-size: 12px; }
.auth-refresh .auth-form label small { font-size: 10px; }
.auth-refresh .dev-login-panel { margin-top: 5px; margin-bottom: 14px; }
.auth-dev-launcher { position: fixed; z-index: 35; right: 22px; bottom: 20px; display: inline-flex; align-items: center; gap: 7px; padding: 9px 12px; border: 1px solid #d7e4d7; border-radius: 999px; background: #fff; color: #315f42; box-shadow: 0 4px 18px #163c2510; font: inherit; font-size: 10px; cursor: pointer; transition: border-color .2s, box-shadow .2s; }
.auth-dev-launcher[hidden] { display: none; }
.auth-dev-launcher:hover { border-color: #7fa68a; box-shadow: 0 5px 20px #163c2520; }
.auth-dev-launcher:focus-visible { outline: 2px solid #477c57; outline-offset: 3px; }
.dev-login-modal { width: min(420px, calc(100% - 32px)); max-height: calc(100dvh - 40px); margin: auto; padding: 24px; overflow-y: auto; border: 1px solid #e0e9df; border-radius: 20px; background: #fbfdf9; color: #183d2f; box-shadow: 0 24px 80px #062a2940; }
.dev-login-modal[open] { animation: auth-arrive .2s ease-out; }
.dev-login-modal::backdrop { background: #062a2966; backdrop-filter: blur(5px); }
.dev-modal-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.dev-modal-heading h2 { margin: 7px 0 0; font-size: 21px; font-weight: 600; letter-spacing: -.025em; }
.dev-modal-label { display: flex; align-items: center; gap: 6px; color: #718571; font-size: 10px; }
.dev-login-modal .dev-profile-card { min-height: 65px; }
@media (max-width: 600px) {
    .auth-dev-launcher { top: 20px; right: 16px; bottom: auto; justify-content: center; width: 36px; height: 36px; padding: 0; border-radius: 11px; }
    .auth-dev-launcher > span { display: none; }
    .dev-login-modal { padding: 20px; }
}
@keyframes auth-arrive { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@media (min-width: 901px) and (max-height: 800px) {
    .auth-refresh .auth-brand-panel { padding-block: 24px; }
    .auth-refresh .auth-brand-logo { width: 180px; }
    .auth-refresh .auth-value { padding-block: 20px; }
    .auth-refresh .auth-value h1 { font-size: clamp(36px, 4vw, 56px); margin-block: 18px; }
    .auth-refresh .auth-feature-list { margin-top: 24px; }
    .auth-refresh .auth-form-panel { padding: 48px 30px 32px; }
    .auth-refresh .auth-card { padding-block: 0; }
    .auth-refresh .auth-welcome-icon { width: 38px; height: 38px; margin-bottom: 12px; border-radius: 12px; }
    .auth-organization-logos { margin-bottom: 12px; }
    .auth-refresh .auth-card .section-kicker { margin-bottom: 6px; }
    .auth-refresh .auth-card > p { margin: 8px 0 18px; }
    .auth-refresh .auth-form { gap: 8px; }
    .auth-refresh .auth-submit { height: 45px; margin-top: 10px; }
    .auth-refresh .auth-switch { margin-top: 16px; }
    .auth-refresh .auth-privacy-note { margin-top: 16px; padding-top: 12px; }
}
@media (max-width: 1100px) and (min-width: 901px) {
    .auth-refresh .auth-brand-panel { padding-inline: 30px; }
    .auth-refresh .auth-value h1 { font-size: 44px; }
    .auth-refresh .auth-feature-list { gap: 5px; }
    .auth-refresh .auth-feature-list > div { gap: 6px; padding-inline: 6px; }
    .auth-refresh .auth-feature-list strong { font-size: 9px; }
    .auth-brand-footer > span { display: none; }
}
@media (min-width: 901px) and (max-height: 740px) {
    .auth-refresh .auth-brand-panel { padding-block: 16px; }
    .auth-refresh .auth-brand-logo { width: 140px; }
    .auth-refresh .auth-value { padding-block: 8px; }
    .auth-refresh .auth-value h1 { font-size: clamp(30px, 3vw, 40px); margin-block: 12px; }
    .auth-refresh .auth-feature-list { margin-top: 18px; }
    .auth-refresh .auth-feature-list > div { min-height: 34px; padding-block: 5px; }
    .auth-refresh .auth-feature-list strong { margin: 0; font-size: 9px; }
    .auth-refresh .auth-feature-icon { width: 24px; height: 24px; border-radius: 7px; }
    .auth-refresh .auth-feature-icon > svg { width: 16px; height: 16px; }
    .auth-refresh .auth-form-panel { padding: 42px 30px 36px; }
    .auth-refresh .auth-card h2 { font-size: 26px; }
    .auth-refresh .auth-welcome-icon { width: 32px; height: 32px; margin-bottom: 8px; }
    .auth-organization-logos { margin-bottom: 8px; }
    .auth-organization-logos img { height: 38px; }
    .auth-refresh .auth-card > p { margin: 6px 0 12px; }
    .auth-refresh .auth-form { gap: 6px; }
    .auth-refresh .input-with-icon input { height: 43px; }
    .auth-refresh .auth-password-toggle { height: 40px; }
    .auth-refresh .auth-submit { height: 42px; margin-top: 8px; }
    .auth-refresh .auth-switch { margin-top: 12px; }
    .auth-refresh .auth-privacy-note { margin-top: 12px; padding-top: 10px; }
}
@media (max-width: 900px) {
    .auth-refresh .auth-shell { display: block; padding: 0; }
    .auth-refresh .auth-brand-panel { display: none; }
    .auth-refresh .auth-form-panel { min-height: 100svh; padding: 115px 28px 60px; }
    .auth-mobile-brand { position: absolute; display: block; top: 24px; left: 50%; transform: translateX(-50%); }
    .auth-mobile-brand img { display: block; width: 155px; height: auto; }
    .auth-form-context { position: static; justify-content: center; margin: 0 0 12px; }
    .auth-form-context > span:last-child { display: none; }
    .auth-refresh .auth-card { padding-block: 15px; }
    .auth-refresh .auth-welcome-icon { margin-bottom: 22px; }
    .auth-refresh .input-with-icon input,
    .auth-refresh .auth-form > label > input,
    .auth-refresh .auth-form .form-row input { font-size: 16px; }
}
@media (max-width: 380px) {
    .auth-refresh .auth-form-panel { padding-inline: 22px; }
    .auth-refresh .auth-card h2 { font-size: 27px; }
}

/* Keep mobile content in its layout; wide data grids scroll inside their cards. */
.timesheet-mobile-status { display: none !important; }
.timesheet-mobile-legend, .calendar-weekday-short { display: none; }
@media (max-width: 960px) {
    .app-main, .content { min-width: 0; max-width: 100%; }
    .content > *, .profile-page > *, .profile-main-column > *, .profile-side-stack > *,
    .daily-report-layout > *, .task-overview-command > *, .task-filter-row > *,
    .task-filter-fields > *, .planning-week-navigation > * { min-width: 0; }
    .profile-page { grid-template-columns: minmax(0, 1fr); }
    .profile-hero > div { min-width: 0; }
    .profile-hero h2, .profile-hero p, .profile-detail-list strong,
    .profile-security-facts strong, .person-cell > div { overflow-wrap: anywhere; }
    .daily-report-layout, .daily-report-layout.is-supervision-only { grid-template-columns: minmax(0, 1fr); }
    .daily-control-card, .daily-entry-card, .daily-control-scroll,
    .task-matrix-card, .task-matrix-scroll, .employee-table-scroll { min-width: 0; max-width: 100%; }
    .daily-control-scroll, .task-matrix-scroll, .table-scroll { overscroll-behavior-inline: contain; }
    .page-actions { flex-wrap: wrap; }
    .page-actions .button { min-width: 0; white-space: normal; text-align: center; }
    .planning-week-navigation { min-width: 0; max-width: 100%; }
    .planning-week-navigation > div, .week-filter, .week-filter label { min-width: 0; }
    .week-filter input, .daily-date-filter input { min-width: 0; max-width: 100%; }
    .daily-state-legend { flex-wrap: wrap; }
    .daily-global-heading, .daily-global-actions { flex-wrap: wrap; }
    .modal-dialog { min-width: 0; max-width: 100%; }
}
@media (max-width: 760px) {
    .content { padding: 20px 12px 28px; }
    .page-heading h1 { font-size: 25px; overflow-wrap: anywhere; }
    .page-actions { display: flex; gap: 8px; }
    .page-actions > .button { flex: 1 1 130px; min-height: 40px; }
    .button { white-space: normal; overflow-wrap: anywhere; }
    .profile-hero { flex-direction: row; align-items: center; }
    .profile-hero .avatar-xl { width: 52px; height: 52px; flex: 0 0 52px; }
    .profile-detail-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .profile-main-column, .profile-side-stack { width: 100%; }
    .profile-card-main, .profile-requests-card, .profile-side-card { padding: 15px; }
    .daily-form-row, .task-filter-row, .task-filter-row.is-simple,
    .daily-global-filters, .task-filter-fields { grid-template-columns: minmax(0, 1fr); }
    .task-overview-command .planning-week-navigation { width: 100%; grid-template-columns: 34px minmax(0, 1fr) 34px; gap: 7px; }
    .task-overview-command .planning-week-navigation > div { padding-inline: 0; }
    .task-overview-command .daily-overview-metrics { justify-self: stretch; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .daily-overview-metrics > span { min-width: 0; }
    .timesheet-view-actions > form .button { width: 100%; }
    .timesheet-filter label, .filter-form label, .daily-date-filter label { min-width: 0; max-width: 100%; }
    .filter-form select, .filter-form input, .form-stack input,
    .form-stack select, .form-stack textarea { min-width: 0; max-width: 100%; }
    .form-stack input:not([type="checkbox"]):not([type="radio"]),
    .form-stack select, .form-stack textarea { font-size: 16px; }
    .modal { padding: 8px; align-items: center; }
    .modal-dialog { width: 100%; max-height: calc(100dvh - 16px); border-radius: 16px; overflow-y: auto; padding: 16px; }
    .modal-actions { flex-wrap: wrap; gap: 8px; }
    .modal-actions > .button { flex: 1 1 110px; min-height: 42px; }
    .modal-header { min-width: 0; gap: 10px; }
    .modal-header > div { min-width: 0; }
    .modal-header h2 { overflow-wrap: anywhere; }
    .modal-header > button { flex-shrink: 0; }
    .task-assignee-picker, .daily-task-picker { min-width: 0; }
    .chat-workspace { grid-template-columns: minmax(0, 1fr); }
    .chat-conversation-card { grid-template-rows: auto auto auto; min-height: 0; }
    .chat-message-list { min-height: 180px; max-height: 42dvh; }
    .chat-conversation-header { flex-wrap: wrap; gap: 10px; }
    .chat-compose-form { grid-template-columns: minmax(0, 1fr); }
    .chat-compose-form button { min-height: 42px; }
    .chat-bubble { max-width: calc(100% - 36px); }
    .chat-bubble header { flex-wrap: wrap; gap: 4px; }
    .chat-message-list { padding: 12px; }
    .dev-switcher-menu { position: fixed; top: 63px; right: 12px; left: auto; max-width: calc(100vw - 24px); }
    .toast-stack { right: 12px; left: 12px; width: auto; max-width: calc(100% - 24px); }
    .toast { min-width: 0; }
    .table-summary .search-field { min-width: 0; }
    .employee-list-filters .button, .employee-lifecycle-form .button, .employee-lifecycle-actions .button { min-height: 38px; }
    .content input:not([type="checkbox"]):not([type="radio"]), .content select, .content textarea { font-size: 16px; }
    .leave-filter-form label { min-width: 0; grid-template-columns: minmax(0, 1fr); }
    .leave-filter-form input, .leave-filter-form select { width: 100%; min-width: 0; max-width: 100%; }
    .form-stack label > span, .filter-form label > span { font-size: 11px; }

    .timesheet-calendar, .leave-calendar-grid { min-width: 0; grid-template-columns: repeat(7, minmax(0, 1fr)); }
    .timesheet-day, .leave-calendar-day { min-width: 0; min-height: 82px; padding: 4px 2px; }
    .timesheet-weekday, .leave-calendar-weekday { min-width: 0; height: 30px; font-size: 9px; }
    .calendar-weekday-full { display: none; }
    .calendar-weekday-short { display: inline; }
    .timesheet-day > header, .leave-day-number { justify-content: center; gap: 0; margin-bottom: 4px; }
    .timesheet-day > header > span, .leave-day-number > small { display: none; }
    .timesheet-day-events, .leave-day-events { gap: 3px; margin-top: 3px; }
    .timesheet-calendar-entry { padding: 5px 1px; border-left-width: 2px; border-radius: 4px; min-height: 26px; text-align: center; }
    .timesheet-calendar-entry > strong, .timesheet-calendar-entry > small,
    .timesheet-calendar-entry > span:not(.timesheet-mobile-status) { display: none; }
    .timesheet-calendar-entry > .timesheet-mobile-status { display: block !important; font-size: 8px; line-height: 1.4; white-space: normal; color: inherit; }
    .timesheet-mobile-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; padding: 10px; border-top: 1px solid var(--line-soft); font-size: 10px; color: var(--muted); }
    .timesheet-mobile-legend b { color: var(--brand-700); }
    .timesheet-more, .leave-more-events { display: block; width: 100%; overflow-wrap: anywhere; font-size: 8px; padding: 4px 0; }
    .timesheet-no-entry { font-size: 8px; overflow-wrap: anywhere; }
    .leave-calendar-event, .absence-calendar-event { display: flex; justify-content: center; gap: 0; padding: 4px 1px; border-left-width: 2px; border-radius: 4px; text-decoration: none; }
    .leave-calendar-event > span:last-child, .absence-calendar-event > span:last-child { display: none; }
    .leave-event-avatar { width: 22px; height: 22px; font-size: 8px; }
    .holiday-calendar-event { display: flex; justify-content: center; padding: 5px 1px; }
    .holiday-calendar-event > span { display: none; }
}

@media (max-width: 960px) {
    .employee-table-scroll { overflow: visible; }
    .employee-admin-table, .employee-admin-table tbody { display: block; width: 100%; min-width: 0; }
    .employee-admin-table thead { display: none; }
    .employee-admin-table tbody { padding: 0 12px 12px; }
    .employee-admin-table tr { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; margin-bottom: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
    .employee-admin-table td:nth-child(n) { display: block; width: 100%; min-width: 0; padding: 9px 0; border: 0; overflow-wrap: anywhere; }
    .employee-admin-table td + td { border-top: 1px solid var(--line-soft); }
    .employee-admin-table td[data-label]::before { content: attr(data-label); display: block; margin-bottom: 6px; color: var(--muted); font-size: 10px; font-weight: 600; }
    .employee-admin-table td:first-child::before { display: none; }
    .employee-admin-table .person-cell { align-items: flex-start; white-space: normal; }
    .employee-admin-table .person-cell > div { flex: 1; }
    .employee-admin-table .person-cell strong, .employee-admin-table .person-cell span { white-space: normal; }
    .employee-admin-table .employee-admin-input, .employee-admin-table .employee-admin-select { width: 100%; min-width: 0; height: 40px; font-size: 16px; }
    .employee-status-editor { flex-direction: row; align-items: center; justify-content: space-between; }
    .employee-status-editor .employee-save-button { width: 40px; }
    .employee-password { white-space: normal; overflow-wrap: anywhere; }
    .employee-admin-table td[data-label="Actions"]:not(:has(button)) { display: none; }
}
