body {
    margin: 0;
}

.app-sidebar {
    border-bottom: 1px solid #d4d4d8;
    background: #ffffff;
    color: #18181b;
    z-index: 30;
}

.app-sidebar__inner {
    display: grid;
    gap: 1rem;
    margin: 0 auto;
    max-width: 110rem;
    padding: 1rem;
}

.app-sidebar__brand {
    color: #18181b;
    font-size: 1.125rem;
    font-weight: 800;
    text-decoration: none;
}

.app-sidebar__nav {
    display: grid;
    gap: 0.75rem;
}

.app-sidebar__section {
    display: grid;
    gap: 0.375rem;
}

.app-sidebar__section summary {
    display: flex;
    min-height: 2.25rem;
    align-items: center;
    justify-content: space-between;
    border-radius: 6px;
    color: #52525b;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    list-style: none;
    padding: 0.5rem 0.625rem;
    text-transform: uppercase;
}

.app-sidebar__section summary::-webkit-details-marker {
    display: none;
}

.app-sidebar__section summary::after {
    color: #71717a;
    content: "+";
    font-size: 1rem;
    line-height: 1;
}

.app-sidebar__section[open] summary::after {
    content: "-";
}

.app-sidebar__section summary:hover,
.app-sidebar__section summary:focus-visible {
    background: #f4f4f5;
    color: #18181b;
    outline: none;
}

.app-sidebar__links {
    display: grid;
    gap: 0.25rem;
}

.app-sidebar__link,
.app-sidebar__logout {
    display: flex;
    min-height: 2.375rem;
    align-items: center;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #3f3f46;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 400;
    padding: 0.5rem 0.75rem;
    text-align: left;
    text-decoration: none;
}

.app-sidebar__section .app-sidebar__link {
    padding-left: 1.5rem;
}

.app-sidebar__link--active,
.app-sidebar__link[aria-current="page"] {
    color: #18181b;
    font-weight: 700;
}

.app-sidebar__button {
    width: 100%;
}

.app-sidebar__link:hover,
.app-sidebar__link:focus-visible {
    background: #f4f4f5;
    color: #18181b;
    outline: none;
}

.app-sidebar__logout {
    justify-content: center;
    background: #18181b;
    color: #ffffff;
}

.app-sidebar__logout:hover,
.app-sidebar__logout:focus-visible {
    background: #3f3f46;
    outline: none;
}

@media (min-width: 640px) and (max-width: 1023px) {
    .app-sidebar__inner {
        grid-template-columns: auto 1fr auto;
        align-items: start;
    }

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

@media (min-width: 1024px) {
    main:has(> .app-sidebar) {
        padding-left: 17rem;
    }

    .app-sidebar {
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        width: 17rem;
        overflow-y: auto;
        border-right: 1px solid #d4d4d8;
        border-bottom: 0;
    }

    .app-sidebar__inner {
        min-height: 100%;
        align-content: start;
        margin: 0;
        padding: 1.25rem;
    }

    .app-sidebar__logout {
        margin-top: auto;
    }
}

.modal-open {
    overflow: hidden;
}

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

.modal-form-host {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: grid;
    place-items: center;
    padding: 1rem;
}

.modal-form-host__backdrop {
    position: absolute;
    inset: 0;
    background: rgb(24 24 27 / 0.56);
}

.modal-form-host__panel {
    position: relative;
    width: min(100%, 52rem);
    max-height: calc(100vh - 2rem);
    overflow: auto;
    border: 1px solid #d4d4d8;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 24px 64px rgb(24 24 27 / 0.28);
    outline: none;
}

.modal-form__header {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 1px solid #e4e4e7;
    background: #ffffff;
    padding: 1.125rem 1.25rem;
}

.modal-form__header p {
    margin: 0;
    color: #0f766e;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.modal-form__header h2 {
    margin: 0.25rem 0 0;
    color: #18181b;
    font-size: 1.25rem;
    font-weight: 700;
}

.modal-form__close {
    display: grid;
    width: 2.25rem;
    height: 2.25rem;
    flex: none;
    place-items: center;
    border: 1px solid #d4d4d8;
    border-radius: 6px;
    background: #ffffff;
    color: #3f3f46;
    cursor: pointer;
    font: inherit;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1;
}

.modal-form__close:hover,
.modal-form__close:focus-visible {
    border-color: #0d9488;
    color: #134e4a;
    outline: none;
}

.modal-form__body {
    display: grid;
    gap: 1rem;
    padding: 1.25rem;
}

.modal-form__section {
    display: grid;
    gap: 1rem;
}

.modal-form__section + .modal-form__section {
    border-top: 1px solid #e4e4e7;
    padding-top: 1rem;
}

.modal-form__section h3 {
    margin: 0;
    color: #18181b;
    font-size: 1rem;
    font-weight: 700;
}

.modal-form__table-section .table-scroll {
    border: 1px solid #e4e4e7;
    border-radius: 6px;
}

.modal-form__table-section table {
    width: 100%;
    min-width: 34rem;
    border-collapse: collapse;
}

.modal-form__table-section th,
.modal-form__table-section td {
    border-bottom: 1px solid #e4e4e7;
    padding: 0.75rem;
    text-align: left;
    vertical-align: top;
    font-size: 0.875rem;
}

.modal-form__table-section th {
    background: #fafafa;
    color: #52525b;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.modal-form__table-section td {
    color: #27272a;
}

.modal-form__table-section tr:last-child td {
    border-bottom: 0;
}

.modal-form__table-section .empty-cell {
    color: #71717a;
    font-weight: 600;
}

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

.api-status-modal {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: grid;
    place-items: center;
    padding: 1rem;
}

.api-status-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgb(24 24 27 / 0.56);
}

.api-status-dialog {
    position: relative;
    width: min(100%, 27rem);
    overflow: hidden;
    border: 1px solid #d4d4d8;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 24px 64px rgb(24 24 27 / 0.28);
    outline: none;
}

.api-status-dialog__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 1px solid #e4e4e7;
    padding: 1.125rem 1.25rem;
}

.api-status-dialog__header p {
    margin: 0;
    color: #0f766e;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.api-status-dialog__header h2 {
    margin: 0.25rem 0 0;
    color: #18181b;
    font-size: 1.25rem;
    font-weight: 700;
}

.api-status-close {
    display: grid;
    width: 2rem;
    height: 2rem;
    place-items: center;
    border: 1px solid #d4d4d8;
    border-radius: 6px;
    background: #fafafa;
    color: #3f3f46;
    cursor: pointer;
    font-size: 1.25rem;
    line-height: 1;
}

.api-status-close:hover {
    background: #f4f4f5;
    color: #18181b;
}

.api-status-summary {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
}

.api-status-summary strong {
    display: block;
    color: #18181b;
    font-size: 1rem;
    font-weight: 700;
}

.api-status-summary span:not(.api-status-indicator) {
    display: block;
    margin-top: 0.25rem;
    color: #52525b;
    font-size: 0.875rem;
    line-height: 1.5;
}

.api-status-indicator {
    width: 3rem;
    height: 3rem;
    flex: 0 0 auto;
    border: 6px solid #e4e4e7;
    border-radius: 50%;
    background: #a1a1aa;
    box-shadow: inset 0 0 0 0.375rem #ffffff;
}

.api-status-modal[data-state="loading"] .api-status-indicator {
    border-color: #fde68a;
    background: #f59e0b;
    animation: api-status-pulse 1s ease-in-out infinite;
}

.api-status-modal[data-state="ok"] .api-status-indicator {
    border-color: #bbf7d0;
    background: #16a34a;
}

.api-status-modal[data-state="error"] .api-status-indicator {
    border-color: #fecdd3;
    background: #e11d48;
}

.api-status-meta {
    display: grid;
    gap: 0;
    margin: 0;
    border-top: 1px solid #e4e4e7;
}

.api-status-meta div {
    display: grid;
    grid-template-columns: 7rem 1fr;
    gap: 1rem;
    padding: 0.875rem 1.25rem;
    border-bottom: 1px solid #e4e4e7;
}

.api-status-meta dt {
    color: #71717a;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.api-status-meta dd {
    margin: 0;
    color: #27272a;
    font-size: 0.875rem;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.api-status-actions {
    display: flex;
    justify-content: flex-end;
    padding: 1rem 1.25rem 1.25rem;
}

.api-status-refresh {
    border: 0;
    border-radius: 6px;
    background: #18181b;
    color: #ffffff;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 700;
    padding: 0.625rem 0.875rem;
}

.api-status-refresh:hover {
    background: #3f3f46;
}

.api-status-refresh:disabled {
    cursor: wait;
    opacity: 0.7;
}

.app-shell,
.dashboard-shell {
    max-width: 110rem;
}

.dashboard-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
}

.dashboard-view-switch {
    display: inline-flex;
    align-items: center;
    overflow: hidden;
    border: 1px solid #d4d4d8;
    border-radius: 6px;
    background: #ffffff;
    box-shadow: 0 1px 2px rgb(24 24 27 / 0.06);
}

.dashboard-view-switch__item {
    display: inline-flex;
    min-height: 2.5rem;
    align-items: center;
    justify-content: center;
    color: #3f3f46;
    font-size: 0.875rem;
    font-weight: 700;
    padding: 0.5rem 0.875rem;
    text-decoration: none;
    transition:
        background 120ms ease,
        color 120ms ease;
}

.dashboard-view-switch__item + .dashboard-view-switch__item {
    border-left: 1px solid #d4d4d8;
}

.dashboard-view-switch__item:hover,
.dashboard-view-switch__item:focus-visible {
    background: #f4f4f5;
    color: #134e4a;
    outline: none;
}

.dashboard-view-switch__item--active,
.dashboard-view-switch__item--active:hover,
.dashboard-view-switch__item--active:focus-visible {
    background: #0f766e;
    color: #ffffff;
}

.project-title-switch {
    position: relative;
    display: inline-flex;
    min-height: 2.5rem;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid #d4d4d8;
    border-radius: 6px;
    background: #ffffff;
    box-shadow: 0 1px 2px rgb(24 24 27 / 0.06);
    color: #3f3f46;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 700;
    padding: 0.5rem 0.75rem;
    transition:
        border-color 120ms ease,
        color 120ms ease;
}

.project-title-switch:hover {
    border-color: #0d9488;
    color: #134e4a;
}

.project-title-switch__input {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    opacity: 0;
}

.project-title-switch__track {
    position: relative;
    width: 2.125rem;
    height: 1.125rem;
    flex: none;
    border-radius: 999px;
    background: #d4d4d8;
    transition: background 120ms ease;
}

.project-title-switch__track::after {
    position: absolute;
    top: 0.1875rem;
    left: 0.1875rem;
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 999px;
    background: #ffffff;
    box-shadow: 0 1px 2px rgb(24 24 27 / 0.18);
    content: "";
    transition: transform 120ms ease;
}

.project-title-switch__input:checked + .project-title-switch__track {
    background: #0f766e;
}

.project-title-switch__input:checked + .project-title-switch__track::after {
    transform: translateX(1rem);
}

.project-title-switch__input:focus-visible + .project-title-switch__track {
    outline: 2px solid #0f766e;
    outline-offset: 2px;
}

.project-title-switch__label {
    white-space: nowrap;
}

.dashboard-calendar-layout {
    display: grid;
    gap: 1rem;
    align-items: start;
}

.dashboard-calendar-layout > .week-board,
.dashboard-calendar-layout > .month-board {
    min-width: 0;
}

.dashboard-stats {
    display: grid;
    gap: 1rem;
    border: 1px solid #d4d4d8;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 16px 36px rgb(24 24 27 / 0.08);
    padding: 1rem;
}

.dashboard-stats__header {
    display: grid;
    gap: 0.25rem;
}

.dashboard-stats__header span {
    color: #52525b;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.dashboard-stats__header strong {
    color: #18181b;
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1;
}

.dashboard-stats__projects {
    display: grid;
    gap: 0.5rem;
    margin: 0;
}

.dashboard-stat-project {
    display: grid;
    width: 100%;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
        "name duration"
        "link link";
    align-items: center;
    gap: 0.75rem;
    border: 0;
    border-right: 3px solid transparent;
    border-radius: 4px;
    background: transparent;
    font-family: inherit;
    padding: 0.25rem 0.5rem 0.25rem 0.375rem;
    text-align: left;
    transition:
        background 120ms ease,
        box-shadow 120ms ease,
        opacity 120ms ease;
}

.dashboard-stat-project:not(:disabled) {
    cursor: pointer;
}

.dashboard-stat-project:not(:disabled):hover,
.dashboard-stat-project:not(:disabled):focus-visible {
    background: #f4f4f5;
    box-shadow: inset 0 0 0 1px #99f6e4;
    outline: none;
}

.dashboard-stat-project__name,
.dashboard-stat-project__duration,
.dashboard-stat-project__link {
    min-width: 0;
}

.dashboard-stat-project__name {
    grid-area: name;
    overflow: hidden;
    color: #27272a;
    font-size: 0.8125rem;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-stat-project__duration {
    grid-area: duration;
    color: #3f3f46;
    font-size: 0.8125rem;
    font-weight: 800;
    text-align: right;
}

.dashboard-stat-project__link {
    grid-area: link;
    overflow: hidden;
    color: #71717a;
    font-size: 0.6875rem;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-stat-project--export-disabled {
    opacity: 0.58;
}

.dashboard-stat-project--export-selected,
.dashboard-stat-project--export-selected:not(:disabled):hover,
.dashboard-stat-project--export-selected:not(:disabled):focus-visible {
    background: #ccfbf1;
    box-shadow:
        inset 0 0 0 1px #0f766e,
        0 6px 14px rgb(15 118 110 / 0.16);
}

.dashboard-stats__empty {
    color: #a1a1aa;
    font-size: 0.8125rem;
    font-weight: 600;
}

.dashboard-stat-project--0 {
    border-right-color: #0d9488;
}

.dashboard-stat-project--1 {
    border-right-color: #4f46e5;
}

.dashboard-stat-project--2 {
    border-right-color: #e11d48;
}

.dashboard-stat-project--3 {
    border-right-color: #16a34a;
}

.dashboard-stat-project--4 {
    border-right-color: #ca8a04;
}

.dashboard-stat-project--5 {
    border-right-color: #7c3aed;
}

@media (min-width: 1180px) {
    .dashboard-calendar-layout {
        grid-template-columns: minmax(0, 1fr) 18rem;
    }

    .dashboard-stats {
        position: sticky;
        top: 1rem;
    }
}

.merge-controls,
.export-controls,
.gitlab-import-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
}

.merge-toggle,
.merge-submit,
.export-toggle,
.export-submit,
.gitlab-import-submit,
.gitlab-import-configure {
    display: inline-flex;
    min-height: 2.5rem;
    align-items: center;
    justify-content: center;
    border: 1px solid #d4d4d8;
    border-radius: 6px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 700;
    padding: 0.5rem 0.875rem;
    text-decoration: none;
    transition:
        background 120ms ease,
        border-color 120ms ease,
        color 120ms ease,
        opacity 120ms ease;
}

.merge-toggle,
.export-toggle,
.gitlab-import-configure {
    background: #ffffff;
    color: #3f3f46;
}

.merge-toggle:hover,
.merge-toggle:focus-visible,
.export-toggle:hover,
.export-toggle:focus-visible,
.gitlab-import-configure:hover,
.gitlab-import-configure:focus-visible {
    border-color: #0d9488;
    color: #134e4a;
    outline: none;
}

.merge-toggle[aria-pressed="true"],
.export-toggle[aria-pressed="true"] {
    border-color: #0f766e;
    background: #0f766e;
    color: #ffffff;
}

.merge-submit,
.export-submit,
.gitlab-import-submit {
    border-color: #18181b;
    background: #18181b;
    color: #ffffff;
}

.merge-submit:hover,
.merge-submit:focus-visible,
.export-submit:hover,
.export-submit:focus-visible,
.gitlab-import-submit:hover,
.gitlab-import-submit:focus-visible {
    background: #3f3f46;
    outline: none;
}

.merge-submit[hidden],
.export-submit[hidden] {
    display: none;
}

.merge-submit:disabled,
.export-submit:disabled,
.gitlab-import-submit:disabled {
    cursor: wait;
    opacity: 0.7;
}

.merge-status,
.export-status,
.gitlab-import-status {
    min-width: 10rem;
    color: #52525b;
    font-size: 0.8125rem;
    font-weight: 600;
    text-align: right;
}

.export-status--warning {
    color: #92400e;
}

.merge-status:empty,
.export-status:empty,
.gitlab-import-status:empty {
    display: none;
}

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

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

.week-board {
    --day-header-height: 3.5rem;
    --hour-row-height: 3rem;
    --lane-gap: 0.5rem;
    --time-label-width: 2.75rem;
    --workblock-width: 8rem;

    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    border: 1px solid #d4d4d8;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 16px 36px rgb(24 24 27 / 0.08);
}

.week-board__grid {
    display: flex;
    width: 100%;
    min-width: max-content;
}

.week-board__time-column {
    position: sticky;
    left: 0;
    z-index: 10;
    flex: 0 0 var(--time-label-width);
    width: var(--time-label-width);
    border-right: 1px solid #d4d4d8;
    background: #f4f4f5;
}

.week-board__time-header {
    position: sticky;
    top: 0;
    z-index: 1;
    box-sizing: border-box;
    height: var(--day-header-height);
    border-bottom: 1px solid #d4d4d8;
    background: #fafafa;
}

.week-board__time-hours {
    height: calc(var(--hour-row-height) * 24);
}

.week-board__time-hour {
    position: relative;
    box-sizing: border-box;
    height: var(--hour-row-height);
    border-top: 1px solid #e4e4e7;
    background: #f4f4f5;
}

.week-board__time-hour:last-child {
    border-bottom: 1px solid #e4e4e7;
}

.week-board__time-hour span {
    position: absolute;
    top: -0.55rem;
    right: 0.5rem;
    width: 2rem;
    color: #71717a;
    font-size: 0.6875rem;
    font-weight: 600;
    line-height: 1;
}

.week-board__days {
    display: flex;
    flex: 1 1 auto;
    width: 100%;
    min-width: max-content;
}

.week-day {
    flex: 1 0 calc(
        (var(--lane-count) * var(--workblock-width)) +
        (var(--lane-count) * var(--lane-gap)) + 0.5rem
    );
    min-width: calc(var(--workblock-width) + 1rem);
    border-right: 1px solid #e4e4e7;
    background: #ffffff;
}

.week-day:last-child {
    border-right: 0;
}

.week-day--weekend {
    background: #f4f4f5;
}

.week-day__header {
    position: sticky;
    top: 0;
    z-index: 5;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    box-sizing: border-box;
    height: var(--day-header-height);
    border-bottom: 1px solid #d4d4d8;
    background: #fafafa;
    padding: 0.75rem 0.875rem;
}

.week-day--weekend .week-day__header {
    background: #f4f4f5;
}

.week-day__header span {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #115e59;
    text-transform: uppercase;
}

.week-day__header time {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #52525b;
}

.week-day__date {
    display: grid;
    justify-items: end;
    gap: 0.125rem;
}

.week-day__header .week-day__duration {
    color: #71717a;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1;
    text-transform: none;
}

.week-day__body {
    position: relative;
    box-sizing: border-box;
    height: calc(var(--hour-row-height) * 24);
    border-bottom: 1px solid #e4e4e7;
    border-top: 1px solid #e4e4e7;
    background:
        repeating-linear-gradient(
            to bottom,
            #e4e4e7 0,
            #e4e4e7 1px,
            transparent 1px,
            transparent var(--hour-row-height)
        ),
        #ffffff;
}

.week-day--weekend .week-day__body {
    background:
        repeating-linear-gradient(
            to bottom,
            #e4e4e7 0,
            #e4e4e7 1px,
            transparent 1px,
            transparent var(--hour-row-height)
        ),
        #f8fafc;
}

.week-day__blocks {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.week-day__empty {
    position: absolute;
    top: 0.875rem;
    left: 0.5rem;
    color: #a1a1aa;
    font-size: 0.8125rem;
    font-weight: 600;
}

.timeline-block {
    position: absolute;
    top: var(--block-top);
    bottom: var(--block-bottom);
    left: calc(0.5rem + (var(--lane) * (var(--workblock-width) + var(--lane-gap))));
    display: flex;
    width: var(--workblock-width);
    min-height: 1.35rem;
    flex-direction: column;
    gap: 0.125rem;
    overflow: visible;
    border: 1px solid rgb(24 24 27 / 0.14);
    border-left-width: 4px;
    border-radius: 6px;
    padding: 0.375rem 0.5rem;
    box-shadow: 0 8px 18px rgb(24 24 27 / 0.12);
    pointer-events: auto;
    text-decoration: none;
    transition:
        box-shadow 120ms ease,
        opacity 120ms ease;
}

.week-board--fade-workblocks .timeline-block:not(.timeline-block--merge-selected):not(.timeline-block--export-selected) {
    border-color: rgb(24 24 27 / 0.06);
    box-shadow: none;
}

.week-board--fade-workblocks .timeline-block:not(.timeline-block--merge-selected):not(.timeline-block--export-selected):hover,
.week-board--fade-workblocks .timeline-block:not(.timeline-block--merge-selected):not(.timeline-block--export-selected):focus-visible {
    box-shadow: 0 8px 18px rgb(24 24 27 / 0.08);
}

.timeline-block--compact {
    padding-top: 0.1875rem;
    padding-bottom: 0.1875rem;
}

.timeline-block:hover,
.timeline-block:focus-visible {
    z-index: 20;
    box-shadow: 0 10px 22px rgb(24 24 27 / 0.18);
    outline: 2px solid #0f766e;
    outline-offset: 2px;
}

.timeline-block--merge-selected,
.timeline-block--merge-selected:hover,
.timeline-block--merge-selected:focus-visible {
    z-index: 25;
    box-shadow:
        0 0 0 3px #18181b,
        0 12px 24px rgb(24 24 27 / 0.2);
    outline: 2px solid #facc15;
    outline-offset: 3px;
}

.timeline-block--merge-selected::after {
    position: absolute;
    top: 0.25rem;
    right: 0.25rem;
    width: 0.5rem;
    height: 0.5rem;
    border: 2px solid #ffffff;
    border-radius: 50%;
    background: #18181b;
    content: "";
}

.timeline-block--export-selected,
.timeline-block--export-selected:hover,
.timeline-block--export-selected:focus-visible {
    z-index: 25;
    box-shadow:
        0 0 0 3px #0f766e,
        0 12px 24px rgb(15 118 110 / 0.22);
    outline: 2px solid #a7f3d0;
    outline-offset: 3px;
}

.timeline-block--export-selected::after {
    position: absolute;
    top: 0.25rem;
    right: 0.25rem;
    width: 0.5rem;
    height: 0.5rem;
    border: 2px solid #ffffff;
    border-radius: 2px;
    background: #0f766e;
    content: "";
}

.timeline-block--export-disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.timeline-block > strong,
.timeline-block > span:not(.timeline-tooltip) {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.timeline-block > strong {
    color: #18181b;
    font-size: 0.75rem;
    line-height: 1.1;
}

.timeline-block > span:not(.timeline-tooltip) {
    color: #3f3f46;
    font-size: 0.6875rem;
    line-height: 1.15;
}

.timeline-tooltip,
.gitlab-event-tooltip,
.month-tooltip {
    display: none;
}

.floating-tooltip span {
    display: block;
    overflow-wrap: anywhere;
}

.floating-tooltip b {
    display: block;
    margin-bottom: 0.0625rem;
    color: #a7f3d0;
    font-size: 0.6875rem;
    letter-spacing: 0;
    text-transform: uppercase;
}

.floating-tooltip .month-tooltip__heading {
    color: #ffffff;
    font-size: 0.8125rem;
    font-weight: 800;
}

.floating-tooltip .month-tooltip__entry {
    display: grid;
    grid-template-columns: auto minmax(6rem, 1fr) auto;
    align-items: baseline;
    gap: 0.625rem;
    border-top: 1px solid rgb(255 255 255 / 0.14);
    padding-top: 0.375rem;
    white-space: nowrap;
}

.floating-tooltip .month-tooltip__entry-project {
    overflow: hidden;
    text-overflow: ellipsis;
}

.floating-tooltip .month-tooltip__entry-time,
.floating-tooltip .month-tooltip__entry-duration {
    color: #a7f3d0;
    font-weight: 700;
}

.timeline-block--0 {
    border-left-color: #0d9488;
    background: #ccfbf1;
    color: #0d9488;
}

.timeline-block--1 {
    border-left-color: #4f46e5;
    background: #e0e7ff;
    color: #4f46e5;
}

.timeline-block--2 {
    border-left-color: #e11d48;
    background: #ffe4e6;
    color: #e11d48;
}

.timeline-block--3 {
    border-left-color: #16a34a;
    background: #dcfce7;
    color: #16a34a;
}

.timeline-block--4 {
    border-left-color: #ca8a04;
    background: #fef3c7;
    color: #ca8a04;
}

.timeline-block--5 {
    border-left-color: #7c3aed;
    background: #ede9fe;
    color: #7c3aed;
}

.week-board--fade-workblocks .timeline-block:not(.timeline-block--merge-selected):not(.timeline-block--export-selected) > strong,
.week-board--fade-workblocks .timeline-block:not(.timeline-block--merge-selected):not(.timeline-block--export-selected) > span:not(.timeline-tooltip) {
    opacity: 0.24;
}

.week-board--fade-workblocks .timeline-block:not(.timeline-block--merge-selected):not(.timeline-block--export-selected):hover > strong,
.week-board--fade-workblocks .timeline-block:not(.timeline-block--merge-selected):not(.timeline-block--export-selected):hover > span:not(.timeline-tooltip),
.week-board--fade-workblocks .timeline-block:not(.timeline-block--merge-selected):not(.timeline-block--export-selected):focus-visible > strong,
.week-board--fade-workblocks .timeline-block:not(.timeline-block--merge-selected):not(.timeline-block--export-selected):focus-visible > span:not(.timeline-tooltip) {
    opacity: 0.78;
}

.week-board--fade-workblocks .timeline-block--0:not(.timeline-block--merge-selected):not(.timeline-block--export-selected) {
    border-left-color: #0d9488;
    background: rgb(204 251 241 / 0.16);
}

.week-board--fade-workblocks .timeline-block--1:not(.timeline-block--merge-selected):not(.timeline-block--export-selected) {
    border-left-color: #4f46e5;
    background: rgb(224 231 255 / 0.16);
}

.week-board--fade-workblocks .timeline-block--2:not(.timeline-block--merge-selected):not(.timeline-block--export-selected) {
    border-left-color: #e11d48;
    background: rgb(255 228 230 / 0.16);
}

.week-board--fade-workblocks .timeline-block--3:not(.timeline-block--merge-selected):not(.timeline-block--export-selected) {
    border-left-color: #16a34a;
    background: rgb(220 252 231 / 0.16);
}

.week-board--fade-workblocks .timeline-block--4:not(.timeline-block--merge-selected):not(.timeline-block--export-selected) {
    border-left-color: #ca8a04;
    background: rgb(254 243 199 / 0.16);
}

.week-board--fade-workblocks .timeline-block--5:not(.timeline-block--merge-selected):not(.timeline-block--export-selected) {
    border-left-color: #7c3aed;
    background: rgb(237 233 254 / 0.16);
}

.gitlab-event-line {
    position: absolute;
    top: calc(var(--event-top) + (var(--event-stack) * 3px) - 0.375rem);
    left: calc(0.5rem + (var(--event-lane) * (var(--workblock-width) + var(--lane-gap))));
    z-index: 18;
    width: var(--workblock-width);
    height: 0.75rem;
    border: 0;
    border-radius: 999px;
    background: transparent;
    cursor: help;
    padding: 0;
    pointer-events: auto;
}

.gitlab-event-line::before {
    position: absolute;
    top: calc(50% - 1px);
    right: 0;
    left: 0;
    height: 2px;
    border-radius: 999px;
    background: #fc6d26;
    box-shadow:
        0 0 0 1px rgb(255 255 255 / 0.78),
        0 1px 3px rgb(24 24 27 / 0.2);
    content: "";
}

.gitlab-event-line::after {
    position: absolute;
    top: 50%;
    left: 0;
    width: 0.45rem;
    height: 0.45rem;
    border: 2px solid #ffffff;
    border-radius: 999px;
    background: #fc6d26;
    box-shadow: 0 1px 3px rgb(24 24 27 / 0.18);
    content: "";
    transform: translateY(-50%);
}

.gitlab-event-line:hover::before,
.gitlab-event-line:focus-visible::before,
.week-board--fade-workblocks .gitlab-event-line::before {
    height: 3px;
    background: #e24329;
}

.gitlab-event-line:focus-visible {
    outline: 2px solid #fc6d26;
    outline-offset: 2px;
}

.gitlab-event-line--0::after {
    background: #0d9488;
}

.gitlab-event-line--1::after {
    background: #4f46e5;
}

.gitlab-event-line--2::after {
    background: #e11d48;
}

.gitlab-event-line--3::after {
    background: #16a34a;
}

.gitlab-event-line--4::after {
    background: #ca8a04;
}

.gitlab-event-line--5::after {
    background: #7c3aed;
}

.week-board--fade-workblocks .gitlab-event-line {
    z-index: 28;
}

.month-board {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    border: 1px solid #d4d4d8;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 16px 36px rgb(24 24 27 / 0.08);
}

.month-board__grid {
    min-width: 56rem;
}

.month-board__weekday-row,
.month-board__week {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
}

.month-board__weekday {
    border-right: 1px solid #e4e4e7;
    background: #fafafa;
    color: #115e59;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 0.75rem;
    text-transform: uppercase;
}

.month-board__weekday:last-child {
    border-right: 0;
}

.month-day {
    position: relative;
    display: flex;
    height: 8.75rem;
    min-height: 8.75rem;
    flex-direction: column;
    gap: 0.625rem;
    border-top: 1px solid #e4e4e7;
    border-right: 1px solid #e4e4e7;
    background: #ffffff;
    padding: 0.625rem;
}

.month-day:nth-child(7n) {
    border-right: 0;
}

.month-day--weekend {
    background: #f8fafc;
}

.month-day--outside {
    background: #f4f4f5;
    color: #71717a;
}

.month-day[aria-describedby] {
    cursor: help;
}

.month-day[aria-describedby]:hover,
.month-day[aria-describedby]:focus-visible {
    z-index: 2;
    outline: 2px solid #0f766e;
    outline-offset: -2px;
}

.month-day__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 1.5rem;
}

.month-day__header time {
    display: inline-flex;
    min-width: 1.75rem;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #27272a;
    font-size: 0.875rem;
    font-weight: 800;
    line-height: 1;
}

.month-day--outside .month-day__header time {
    color: #71717a;
}

.month-day__duration {
    color: #52525b;
    font-size: 0.75rem;
    font-weight: 800;
    line-height: 1;
}

.month-day--outside .month-day__duration {
    color: #71717a;
}

.month-day__projects {
    display: grid;
    align-content: start;
    flex: 1 1 auto;
    gap: 0.375rem;
    grid-auto-rows: max-content;
    margin: 0;
    min-height: 0;
    overflow: auto;
    padding: 0;
}

.month-project-total {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.625rem;
    min-height: 1.35rem;
    border-right: 3px solid transparent;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    list-style: none;
    padding: 0.125rem 0.375rem;
}

.month-project-total span,
.month-project-total strong {
    min-width: 0;
}

.month-project-total span {
    overflow: hidden;
    color: #18181b;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.month-project-total strong {
    color: #3f3f46;
    font-size: 0.6875rem;
    text-align: right;
}

.month-day__empty {
    color: #a1a1aa;
    font-size: 0.8125rem;
    font-weight: 600;
    list-style: none;
}

.month-project-total--0 {
    background: #f0fdfa;
    border-right-color: #0d9488;
}

.month-project-total--1 {
    background: #eef2ff;
    border-right-color: #4f46e5;
}

.month-project-total--2 {
    background: #fff1f2;
    border-right-color: #e11d48;
}

.month-project-total--3 {
    background: #f0fdf4;
    border-right-color: #16a34a;
}

.month-project-total--4 {
    background: #fffbeb;
    border-right-color: #ca8a04;
}

.month-project-total--5 {
    background: #f5f3ff;
    border-right-color: #7c3aed;
}

.filter-panel {
    display: grid;
    gap: 1rem;
    margin-bottom: 1.5rem;
    border: 1px solid #d4d4d8;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 12px 26px rgb(24 24 27 / 0.06);
    padding: 1rem;
}

.filter-field {
    display: grid;
    gap: 0.375rem;
}

.filter-field label {
    color: #52525b;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.filter-field input,
.filter-field select {
    width: 100%;
    min-height: 2.5rem;
    border: 1px solid #d4d4d8;
    border-radius: 6px;
    background: #ffffff;
    color: #27272a;
    font-size: 0.875rem;
    padding: 0.5rem 0.625rem;
}

.filter-field input:focus,
.filter-field select:focus {
    border-color: #0d9488;
    box-shadow: 0 0 0 3px rgb(13 148 136 / 0.16);
    outline: none;
}

.filter-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 0.625rem;
}

.filter-reset {
    display: inline-flex;
    min-height: 2.5rem;
    align-items: center;
    justify-content: center;
    border: 1px solid #d4d4d8;
    border-radius: 6px;
    background: #ffffff;
    color: #3f3f46;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 700;
    padding: 0.5rem 0.875rem;
    text-decoration: none;
    transition:
        background 120ms ease,
        border-color 120ms ease,
        color 120ms ease;
}

.filter-reset:hover,
.filter-reset:focus-visible {
    border-color: #a1a1aa;
    background: #f4f4f5;
    color: #18181b;
}

@media (min-width: 768px) {
    .filter-panel {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        align-items: end;
    }
}

.table-panel {
    overflow: hidden;
    border: 1px solid #d4d4d8;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 12px 26px rgb(24 24 27 / 0.06);
}

.table-panel h2 {
    border-bottom: 1px solid #e4e4e7;
    padding: 1rem 1.125rem;
    color: #18181b;
    font-size: 1rem;
    font-weight: 700;
}

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

.table-panel table {
    width: 100%;
    min-width: 34rem;
    border-collapse: collapse;
}

.table-panel th,
.table-panel td {
    border-bottom: 1px solid #e4e4e7;
    padding: 0.75rem 1.125rem;
    text-align: left;
    vertical-align: top;
    font-size: 0.875rem;
}

.table-panel th {
    background: #fafafa;
    color: #52525b;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.table-panel td {
    color: #27272a;
}

.table-panel tr:last-child td {
    border-bottom: 0;
}

.table-panel .empty-cell {
    color: #71717a;
    font-weight: 600;
}

.table-link {
    color: #0f766e;
    font-weight: 700;
    text-decoration: none;
}

.table-link:hover,
.table-link:focus-visible {
    color: #134e4a;
    text-decoration: underline;
}

.project-link-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    min-width: 18rem;
}

.project-link-form input,
.project-link-form select {
    min-height: 2.25rem;
    min-width: min(18rem, 100%);
    flex: 1 1 12rem;
    border: 1px solid #d4d4d8;
    border-radius: 6px;
    background: #ffffff;
    color: #27272a;
    font-size: 0.875rem;
    padding: 0.375rem 0.5rem;
}

.project-link-form input:focus,
.project-link-form select:focus {
    border-color: #0d9488;
    box-shadow: 0 0 0 3px rgb(13 148 136 / 0.16);
    outline: none;
}

.project-link-form__submit {
    min-height: 2.25rem;
    border: 1px solid #18181b;
    border-radius: 6px;
    background: #18181b;
    color: #ffffff;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.8125rem;
    font-weight: 700;
    padding: 0.375rem 0.625rem;
}

.project-link-form__submit:hover,
.project-link-form__submit:focus-visible {
    background: #3f3f46;
    outline: none;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    min-height: 1.5rem;
    border-radius: 999px;
    padding: 0.125rem 0.5rem;
    background: #f4f4f5;
    color: #3f3f46;
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
}

.status-badge--queued {
    background: #e0f2fe;
    color: #075985;
}

.status-badge--pending {
    background: #fef3c7;
    color: #854d0e;
}

.status-badge--done {
    background: #dcfce7;
    color: #166534;
}

.status-badge--failed {
    background: #ffe4e6;
    color: #9f1239;
}

.status-tooltip {
    position: relative;
    display: inline-flex;
}

.status-tooltip__content {
    display: none;
}

.floating-tooltip {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    display: grid;
    width: max-content;
    min-width: 12rem;
    max-width: min(22rem, calc(100vw - 1rem));
    max-height: min(24rem, calc(100vh - 1rem));
    gap: 0.35rem;
    overflow: auto;
    border: 1px solid #27272a;
    border-radius: 6px;
    background: #18181b;
    box-shadow: 0 16px 36px rgb(24 24 27 / 0.22);
    color: #ffffff;
    font-size: 0.75rem;
    line-height: 1.4;
    opacity: 0;
    padding: 0.625rem 0.75rem;
    pointer-events: none;
    transform: translateY(-0.25rem);
    transition:
        opacity 120ms ease,
        transform 120ms ease;
    white-space: normal;
    overflow-wrap: anywhere;
}

.floating-tooltip--visible {
    opacity: 1;
    transform: translateY(0);
}

.status-tooltip .status-badge:focus-visible {
    outline: 2px solid #0d9488;
    outline-offset: 2px;
}

.detail-grid {
    display: grid;
    gap: 1rem;
}

.detail-grid--stacked {
    grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 1024px) {
    .detail-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .detail-grid--stacked {
        grid-template-columns: minmax(0, 1fr);
    }
}

.detail-panel {
    overflow: hidden;
    border: 1px solid #d4d4d8;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 12px 26px rgb(24 24 27 / 0.06);
}

.detail-panel h2 {
    border-bottom: 1px solid #e4e4e7;
    padding: 1rem 1.125rem;
    color: #18181b;
    font-size: 1rem;
    font-weight: 700;
}

.detail-panel--workblock-info {
    border-color: #99f6e4;
}

.detail-panel--workblock-info h2 {
    border-bottom-color: #99f6e4;
    background: #f0fdfa;
}

.workblock-info {
    display: grid;
    gap: 0;
}

.workblock-info__hero {
    display: grid;
    gap: 1rem;
    padding: 1.125rem;
    background: #134e4a;
    color: #ffffff;
}

.workblock-info__hero span,
.workblock-info__duration span {
    display: block;
    color: #99f6e4;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.workblock-info__hero strong {
    display: block;
    margin-top: 0.25rem;
    font-size: 1.25rem;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.tt-workspace {
    display: grid;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 1024px) {
    .tt-workspace {
        grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
        align-items: start;
    }
}

.tt-panel {
    display: grid;
    gap: 1rem;
    border: 1px solid #d4d4d8;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 12px 26px rgb(24 24 27 / 0.06);
    padding: 1.125rem;
}

.tt-panel--timer {
    border-color: #99f6e4;
}

.tt-panel--quick-entry {
    margin-bottom: 1.5rem;
    border-color: #99f6e4;
}

.tt-panel--spaced {
    margin-bottom: 1.5rem;
}

.tt-panel h2 {
    margin: 0;
    color: #18181b;
    font-size: 1rem;
    font-weight: 700;
}

.tt-total {
    display: inline-grid;
    min-width: 9rem;
    gap: 0.125rem;
    border: 1px solid #d4d4d8;
    border-radius: 8px;
    background: #ffffff;
    padding: 0.75rem 1rem;
}

.tt-total span,
.tt-running span {
    color: #71717a;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.tt-total strong {
    color: #18181b;
    font-size: 1.25rem;
    font-weight: 800;
}

.tt-running {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-radius: 8px;
    background: #134e4a;
    color: #ffffff;
    padding: 1rem;
}

.tt-running--compact {
    min-width: min(22rem, 100%);
    padding: 0.75rem;
}

.tt-running--form {
    width: 100%;
}

.tt-running strong {
    display: block;
    margin-top: 0.25rem;
    overflow-wrap: anywhere;
}

.tt-running em {
    display: block;
    margin-top: 0.25rem;
    color: #99f6e4;
    font-size: 0.875rem;
    font-style: normal;
    font-weight: 700;
}

.tt-running__duration {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 800;
    white-space: nowrap;
}

.tt-muted {
    margin: 0;
    color: #71717a;
    font-size: 0.875rem;
    font-weight: 600;
}

.tt-detail-list {
    display: grid;
    gap: 0.75rem;
    margin: 0;
}

.tt-detail-list > div {
    display: grid;
    gap: 0.25rem;
}

@media (min-width: 768px) {
    .tt-detail-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.tt-detail-list dt {
    color: #71717a;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.tt-detail-list dd {
    margin: 0;
    color: #27272a;
    font-size: 0.875rem;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.tt-guide {
    display: grid;
    gap: 0.875rem;
    border: 1px solid #ccfbf1;
    border-radius: 8px;
    background: #f0fdfa;
    padding: 1rem;
}

.tt-guide h3 {
    margin: 0;
    color: #134e4a;
    font-size: 0.9375rem;
    font-weight: 800;
}

.tt-guide__steps {
    display: grid;
    gap: 0.75rem;
    margin: 0;
    padding-left: 1.25rem;
}

.tt-guide__steps li {
    color: #3f3f46;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.5;
    padding-left: 0.125rem;
}

.tt-guide__steps strong,
.tt-guide__steps span,
.tt-guide__steps code {
    display: block;
}

.tt-guide__steps strong {
    color: #18181b;
    font-weight: 800;
}

.tt-guide__steps code {
    width: fit-content;
    max-width: 100%;
    margin-top: 0.25rem;
    overflow: auto;
    border: 1px solid #99f6e4;
    border-radius: 4px;
    background: #ffffff;
    color: #115e59;
    font-size: 0.8125rem;
    font-weight: 700;
    padding: 0.125rem 0.375rem;
}

.tt-guide__links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tt-guide__links a {
    display: inline-flex;
    min-height: 2rem;
    align-items: center;
    border: 1px solid #99f6e4;
    border-radius: 6px;
    background: #ffffff;
    color: #0f766e;
    font-size: 0.8125rem;
    font-weight: 800;
    padding: 0.375rem 0.625rem;
    text-decoration: none;
}

.tt-guide__links a:hover,
.tt-guide__links a:focus-visible {
    border-color: #0f766e;
    color: #134e4a;
    outline: none;
}

.tt-form {
    display: grid;
    gap: 1rem;
}

.tt-form__grid {
    display: grid;
    gap: 0.875rem;
}

@media (min-width: 768px) {
    .tt-form__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tt-form__grid--compact {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.tt-form--quick-entry {
    gap: 0.875rem;
}

.tt-quick-entry,
.tt-quick-entry__header,
.tt-quick-entry__timer,
.tt-quick-entry__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.tt-quick-entry__header {
    align-items: center;
    justify-content: space-between;
}

.tt-quick-entry__timer {
    align-items: center;
    justify-content: flex-end;
}

.tt-quick-entry {
    align-items: end;
}

.tt-quick-entry__field {
    min-width: min(100%, 11rem);
    flex: 1 1 11rem;
}

.tt-quick-entry__field--description,
.tt-quick-entry__field--project {
    flex-basis: 14rem;
}

.tt-quick-entry__field--billable {
    flex: 0 1 7rem;
}

.tt-quick-entry__field--tags {
    flex-basis: 13rem;
}

.tt-quick-entry__actions {
    flex: 0 0 auto;
    align-items: center;
}

@media (min-width: 1280px) {
    .tt-quick-entry {
        display: grid;
        grid-template-columns:
            minmax(12rem, 1.1fr)
            minmax(12rem, 1fr)
            minmax(10rem, 0.8fr)
            minmax(10rem, 0.8fr)
            minmax(6rem, 0.45fr)
            minmax(12rem, 0.9fr)
            auto;
    }
}

.tt-form label {
    display: block;
    margin-bottom: 0.375rem;
    color: #52525b;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.tt-form input:not([type="checkbox"]),
.tt-form select,
.tt-form textarea {
    box-sizing: border-box;
    width: 100%;
    min-height: 2.5rem;
    border: 1px solid #d4d4d8;
    border-radius: 6px;
    background: #ffffff;
    color: #27272a;
    font: inherit;
    font-size: 0.875rem;
    padding: 0.5rem 0.625rem;
}

.tt-form textarea {
    min-height: 5rem;
    resize: vertical;
}

.tt-form select[data-tt-multiselect][multiple] {
    min-height: 2.5rem;
}

.tt-form select.tt-native-multiselect--enhanced {
    position: absolute;
    width: 1px;
    height: 1px;
    min-height: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
    padding: 0;
    white-space: nowrap;
}

.tt-multiselect {
    position: relative;
}

.tt-multiselect__button {
    box-sizing: border-box;
    display: flex;
    width: 100%;
    min-height: 2.5rem;
    align-items: center;
    justify-content: space-between;
    gap: 0.625rem;
    border: 1px solid #d4d4d8;
    border-radius: 6px;
    background: #ffffff;
    color: #27272a;
    cursor: pointer;
    font: inherit;
    font-size: 0.875rem;
    padding: 0.5rem 0.625rem;
    text-align: left;
}

.tt-multiselect__button::after {
    width: 0.5rem;
    height: 0.5rem;
    flex: none;
    border-right: 2px solid #71717a;
    border-bottom: 2px solid #71717a;
    content: "";
    transform: rotate(45deg) translateY(-0.125rem);
}

.tt-multiselect--open .tt-multiselect__button::after {
    transform: rotate(225deg) translate(-0.125rem, -0.125rem);
}

.tt-multiselect__button:focus,
.tt-multiselect__button:hover {
    border-color: #0d9488;
    box-shadow: 0 0 0 3px rgb(13 148 136 / 0.16);
    outline: none;
}

.tt-multiselect__value {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tt-multiselect__menu {
    position: absolute;
    top: calc(100% + 0.25rem);
    right: 0;
    left: 0;
    z-index: 50;
    display: grid;
    max-height: 14rem;
    overflow: auto;
    border: 1px solid #d4d4d8;
    border-radius: 6px;
    background: #ffffff;
    box-shadow: 0 18px 36px rgb(24 24 27 / 0.16);
    padding: 0.25rem;
}

.tt-multiselect__menu[hidden] {
    display: none;
}

.tt-multiselect__option {
    display: flex;
    min-height: 2.25rem;
    align-items: center;
    gap: 0.5rem;
    border-radius: 4px;
    color: #27272a;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1.3;
    margin: 0;
    padding: 0.375rem 0.5rem;
    text-transform: none;
}

.tt-multiselect__option:hover,
.tt-multiselect__option:focus-within {
    background: #f0fdfa;
}

.tt-multiselect__checkbox {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    opacity: 0;
}

.tt-multiselect__switch-track {
    position: relative;
    width: 2.125rem;
    height: 1.125rem;
    flex: none;
    border-radius: 999px;
    background: #d4d4d8;
    transition: background 120ms ease;
}

.tt-multiselect__switch-track::after {
    position: absolute;
    top: 0.1875rem;
    left: 0.1875rem;
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 999px;
    background: #ffffff;
    box-shadow: 0 1px 2px rgb(24 24 27 / 0.18);
    content: "";
    transition: transform 120ms ease;
}

.tt-multiselect__checkbox:checked + .tt-multiselect__switch-track {
    background: #0f766e;
}

.tt-multiselect__checkbox:checked + .tt-multiselect__switch-track::after {
    transform: translateX(1rem);
}

.tt-multiselect__checkbox:focus-visible + .tt-multiselect__switch-track {
    outline: 2px solid #0f766e;
    outline-offset: 2px;
}

.tt-multiselect__option-text {
    display: flex;
    min-height: 1rem;
    min-width: 0;
    align-items: center;
    color: inherit;
    cursor: pointer;
    font-size: inherit;
    font-weight: inherit;
    letter-spacing: 0;
    line-height: 1.3;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    text-transform: none;
    white-space: nowrap;
}

.tt-form input[type="color"] {
    padding: 0.25rem;
}

.tt-form input:focus,
.tt-form select:focus,
.tt-form textarea:focus {
    border-color: #0d9488;
    box-shadow: 0 0 0 3px rgb(13 148 136 / 0.16);
    outline: none;
}

.tt-form-switch-field {
    display: grid;
    align-content: end;
    gap: 0.375rem;
}

.tt-form .tt-form-switch {
    position: relative;
    display: inline-flex;
    width: fit-content;
    max-width: 100%;
    min-height: 2.5rem;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    border: 1px solid #d4d4d8;
    border-radius: 6px;
    background: #ffffff;
    box-shadow: 0 1px 2px rgb(24 24 27 / 0.06);
    color: #3f3f46;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0;
    padding: 0.5rem 0.75rem;
    text-transform: none;
    transition:
        border-color 120ms ease,
        color 120ms ease;
}

.tt-form .tt-form-switch:hover {
    border-color: #0d9488;
    color: #134e4a;
}

.tt-form-switch__input {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    opacity: 0;
}

.tt-form-switch__track {
    position: relative;
    width: 2.125rem;
    height: 1.125rem;
    flex: none;
    border-radius: 999px;
    background: #d4d4d8;
    transition: background 120ms ease;
}

.tt-form-switch__track::after {
    position: absolute;
    top: 0.1875rem;
    left: 0.1875rem;
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 999px;
    background: #ffffff;
    box-shadow: 0 1px 2px rgb(24 24 27 / 0.18);
    content: "";
    transition: transform 120ms ease;
}

.tt-form-switch__input:checked + .tt-form-switch__track {
    background: #0f766e;
}

.tt-form-switch__input:checked + .tt-form-switch__track::after {
    transform: translateX(1rem);
}

.tt-form-switch__input:focus-visible + .tt-form-switch__track {
    outline: 2px solid #0f766e;
    outline-offset: 2px;
}

.tt-form .tt-form-switch__label {
    margin: 0;
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
    letter-spacing: 0;
    text-transform: none;
    white-space: nowrap;
}

.tt-form ul {
    margin: 0;
    padding-left: 1rem;
    color: #be123c;
    font-size: 0.8125rem;
    font-weight: 700;
}

.tt-form__actions,
.tt-inline-form,
.tt-row-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.625rem;
}

.tt-button {
    display: inline-flex;
    min-height: 2.5rem;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 800;
    padding: 0.5rem 0.875rem;
    text-decoration: none;
}

.tt-button--primary {
    border-color: #0f766e;
    background: #0f766e;
    color: #ffffff;
}

.tt-button--primary:hover,
.tt-button--primary:focus-visible {
    background: #115e59;
    outline: none;
}

.tt-button--secondary {
    border-color: #d4d4d8;
    background: #ffffff;
    color: #3f3f46;
}

.tt-button--secondary:hover,
.tt-button--secondary:focus-visible {
    background: #f4f4f5;
    outline: none;
}

.tt-button--danger {
    border-color: #be123c;
    background: #be123c;
    color: #ffffff;
}

.tt-button--danger:hover,
.tt-button--danger:focus-visible {
    background: #9f1239;
    outline: none;
}

.tt-delete-form {
    margin-top: 1rem;
    border-top: 1px solid #e4e4e7;
    padding-top: 1rem;
}

.tt-link-button {
    border: 0;
    background: transparent;
    color: #0f766e;
    cursor: pointer;
    font: inherit;
    font-size: 0.875rem;
    font-weight: 700;
    padding: 0;
}

.tt-link-button:hover,
.tt-link-button:focus-visible {
    color: #134e4a;
    text-decoration: underline;
}

.tt-link-button--danger {
    color: #be123c;
}

.tt-link-button--danger:hover,
.tt-link-button--danger:focus-visible {
    color: #9f1239;
}

.tt-project-chip,
.tt-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    max-width: 100%;
}

.tt-project-chip > span {
    width: 0.75rem;
    height: 0.75rem;
    flex: 0 0 auto;
    border-radius: 3px;
    background: var(--chip-color, #0f766e);
}

.tt-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
}

.tt-tag {
    border: 1px solid color-mix(in srgb, var(--tag-color, #0f766e) 42%, #ffffff);
    border-radius: 999px;
    background: color-mix(in srgb, var(--tag-color, #0f766e) 12%, #ffffff);
    color: #27272a;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 0.125rem 0.5rem;
}

.tt-token-value {
    display: block;
    overflow-x: auto;
    border: 1px solid #d4d4d8;
    border-radius: 6px;
    background: #f4f4f5;
    color: #18181b;
    font-size: 0.875rem;
    font-weight: 800;
    padding: 0.875rem;
    white-space: nowrap;
}

.workblock-info__branch {
    border-top: 1px solid rgb(153 246 228 / 0.28);
    padding-top: 1rem;
}

.workblock-info__branch strong {
    font-size: 0.9375rem;
}

.workblock-info__duration {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 1px solid #ccfbf1;
    padding: 1rem 1.125rem;
    background: #f0fdfa;
}

.workblock-info__duration span {
    color: #0f766e;
}

.workblock-info__duration strong {
    color: #134e4a;
    font-size: 1.75rem;
    line-height: 1;
}

.workblock-info__times {
    display: grid;
    gap: 0;
    margin: 0;
}

.workblock-info__times div {
    display: grid;
    grid-template-columns: 6rem minmax(0, 1fr);
    gap: 1rem;
    border-bottom: 1px solid #e4e4e7;
    padding: 0.875rem 1.125rem;
}

.workblock-info__times div:last-child {
    border-bottom: 0;
}

.workblock-info__times dt {
    color: #71717a;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.workblock-info__times dd {
    margin: 0;
    color: #27272a;
    font-size: 0.875rem;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.detail-list {
    display: grid;
    gap: 0;
    margin: 0;
}

.detail-list > div {
    display: grid;
    grid-template-columns: 8rem minmax(0, 1fr);
    gap: 1rem;
    border-bottom: 1px solid #e4e4e7;
    padding: 0.875rem 1.125rem;
}

.detail-list > div:last-child {
    border-bottom: 0;
}

.detail-list--compact > div {
    grid-template-columns: 6rem minmax(0, 1fr);
}

.detail-list dt {
    color: #71717a;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.detail-list dd {
    margin: 0;
    color: #27272a;
    font-size: 0.875rem;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.detail-summary,
.detail-empty {
    margin: 0;
    padding: 1rem 1.125rem;
    color: #27272a;
    font-size: 0.875rem;
    line-height: 1.6;
}

.detail-empty {
    color: #71717a;
    font-weight: 600;
}
