*,
*::before,
*::after {
    box-sizing: border-box;
}

@font-face {
    font-family: "Mona Sans VF";
    src: url("/fonts/mona-sans/mona-sans-variable.woff2") format("woff2");
    font-weight: 200 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --form-control-font-size: 14px;
    --form-control-line-height: 20px;
    --form-control-font-weight: var(--base-text-weight-normal);
    --form-control-value-font-weight: var(--base-text-weight-medium);
    --popover-font-size: 13px;
    --popover-line-height: 20px;
    --popover-font-weight: var(--base-text-weight-normal);
}

html {
    color: var(--fgColor-default);
    font-family: var(--fontStack-sansSerif);
    line-height: var(--base-text-lineHeight-normal);
}

body {
    margin: 0;
    background: var(--bgColor-muted);
}

.auth-document {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
    background: var(--bgColor-default);
}

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

button {
    color: inherit;
}

input,
select,
textarea {
    color: var(--fgColor-default);
    font-size: var(--form-control-font-size);
    font-weight: var(--form-control-font-weight);
    line-height: var(--form-control-line-height);
}

input::placeholder,
textarea::placeholder {
    color: var(--fgColor-muted);
    opacity: 1;
}

input:autofill,
input:-webkit-autofill,
input:-webkit-autofill:hover,
select:autofill,
select:-webkit-autofill,
textarea:autofill,
textarea:-webkit-autofill {
    box-shadow: inset 0 0 0 1000px var(--bgColor-default) !important;
    caret-color: var(--fgColor-default);
    color: var(--fgColor-default);
    -webkit-text-fill-color: var(--fgColor-default);
}

input:autofill:focus,
input:-webkit-autofill:focus,
select:autofill:focus,
select:-webkit-autofill:focus,
textarea:autofill:focus,
textarea:-webkit-autofill:focus {
    box-shadow:
        inset 0 0 0 1px var(--borderColor-accent-emphasis),
        inset 0 0 0 1000px var(--bgColor-default) !important;
}

a {
    color: var(--fgColor-link);
}

:focus-visible {
    outline: var(--focus-outline);
    outline-offset: var(--focus-outline-offset);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: fixed;
    top: var(--base-size-8);
    left: var(--base-size-8);
    z-index: 100;
    padding: var(--base-size-8) var(--base-size-12);
    border-radius: var(--borderRadius-medium);
    background: var(--bgColor-accent-emphasis);
    color: var(--fgColor-onEmphasis);
    font-size: var(--text-body-size-medium);
    font-weight: var(--base-text-weight-semibold);
    text-decoration: none;
    transform: translateY(calc(-100% - var(--base-size-16)));
}

.skip-link:focus {
    transform: translateY(0);
}

.app-shell {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
    background: var(--bgColor-default);
}

.app-header {
    position: sticky;
    top: 0;
    z-index: 30;
    border-bottom: var(--borderWidth-default) solid var(--borderColor-default);
    background: var(--page-header-bgColor);
}

.app-header-inner {
    display: flex;
    width: min(100%, var(--breakpoint-xlarge));
    min-height: 60px;
    align-items: center;
    gap: var(--base-size-24);
    margin: 0 auto;
    padding: 0 var(--base-size-24);
}

.app-logo {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--fgColor-default);
    font-family: var(--fontStack-sansSerifDisplay);
    font-size: 17px;
    font-weight: var(--base-text-weight-semibold);
    letter-spacing: -0.04em;
    line-height: 1;
    text-decoration: none;
}

.app-nav {
    display: flex;
    min-width: 0;
    align-self: stretch;
    gap: var(--base-size-4);
}

.app-nav-link {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 10px 12px;
    border-radius: var(--borderRadius-medium);
    color: var(--fgColor-muted);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition:
        background-color 80ms ease-out,
        color 80ms ease-out;
}

.app-nav-link:hover {
    background: var(--control-bgColor-hover);
    color: var(--fgColor-default);
}

.app-nav-link-active {
    color: var(--fgColor-default);
}

.app-nav-link-active::after {
    position: absolute;
    right: var(--base-size-12);
    bottom: -1px;
    left: var(--base-size-12);
    height: 2px;
    border-radius: 2px 2px 0 0;
    background: var(--underlineNav-borderColor-active);
    content: "";
}

.app-team-context {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 0;
}

.app-team-link {
    display: flex;
    overflow: hidden;
    min-height: 44px;
    align-items: center;
    padding: var(--base-size-8) var(--base-size-4) var(--base-size-8) var(--base-size-8);
    border-radius: var(--borderRadius-medium) 0 0 var(--borderRadius-medium);
    color: var(--fgColor-default);
    font-size: 14px;
    font-weight: var(--base-text-weight-semibold);
    text-decoration: none;
}

.app-team-link > span {
    overflow: hidden;
    min-width: 0;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.app-static-context {
    padding-right: var(--base-size-8);
    border-radius: var(--borderRadius-medium);
    transition: background-color 80ms ease-out;
}

.app-static-context:hover {
    background: var(--control-transparent-bgColor-hover);
}

.app-team-context:hover .app-team-link,
.app-team-context:hover .team-switcher-trigger {
    background: var(--control-bgColor-hover);
}

.app-team-context:has(.app-team-link:hover) .app-team-link,
.app-team-context:has(.team-switcher-trigger:hover) .team-switcher-trigger {
    background: var(--control-transparent-bgColor-hover);
}

.team-switcher {
    position: relative;
    flex: 0 0 auto;
}

.team-switcher > summary {
    list-style: none;
}

.team-switcher > summary::-webkit-details-marker {
    display: none;
}

.team-switcher-trigger,
.team-switcher-close {
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: var(--borderRadius-medium);
    background: transparent;
    color: var(--fgColor-muted);
    cursor: pointer;
}

.team-switcher-trigger {
    width: 32px;
    height: 44px;
    border-radius: 0 var(--borderRadius-medium) var(--borderRadius-medium) 0;
}

.team-switcher-close:hover {
    background: var(--control-transparent-bgColor-hover);
    color: var(--fgColor-default);
}

.team-switcher-menu {
    position: absolute;
    top: calc(100% + var(--base-size-8));
    left: 0;
    z-index: var(--zIndex-popover);
    width: min(320px, calc(100vw - var(--base-size-32)));
    overflow: hidden;
    border: 0;
    border-radius: var(--overlay-borderRadius);
    background: var(--overlay-bgColor);
    box-shadow: var(--shadow-floating-small);
    color: var(--fgColor-default);
    font-size: 14px;
}

.team-switcher-heading {
    display: flex;
    min-height: 48px;
    align-items: center;
    justify-content: space-between;
    padding: var(--base-size-8) var(--base-size-8) var(--base-size-8) var(--base-size-16);
    border-bottom: var(--borderWidth-default) solid var(--borderColor-muted);
    font-size: 14px;
    font-weight: var(--base-text-weight-semibold);
}

.team-switcher-close {
    width: 32px;
    height: 32px;
}

.team-switcher-list {
    max-height: 288px;
    overflow-y: auto;
    padding: var(--base-size-8);
}

.team-switcher-item,
.team-switcher-all {
    display: flex;
    min-height: 36px;
    align-items: center;
    border-radius: var(--borderRadius-medium);
    color: var(--fgColor-default);
    font-size: 14px;
    line-height: 20px;
    text-decoration: none;
}

.team-switcher-item {
    gap: var(--base-size-8);
    padding: var(--base-size-8);
}

.team-switcher-item:hover,
.team-switcher-all:hover {
    background: var(--control-transparent-bgColor-hover);
}

.team-switcher-check {
    flex: 0 0 auto;
}

.team-switcher-all {
    padding: var(--base-size-8) var(--base-size-16) var(--base-size-8) 40px;
    border-top: var(--borderWidth-default) solid var(--borderColor-muted);
    border-radius: 0;
    font-weight: var(--base-text-weight-normal);
}

.button {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    padding: var(--base-size-8) var(--base-size-12);
    border: var(--borderWidth-default) solid transparent;
    border-radius: var(--borderRadius-medium);
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    transition: background-color 80ms ease-out, border-color 80ms ease-out, color 80ms ease-out;
}

.button-primary {
    border-color: var(--button-primary-borderColor-rest);
    background: var(--button-primary-bgColor-rest);
    color: var(--fgColor-onEmphasis);
}

.button-primary:hover {
    border-color: var(--button-primary-borderColor-hover);
    background: var(--button-primary-bgColor-hover);
}

.button-secondary {
    border-color: var(--borderColor-default);
    background: var(--control-bgColor-rest);
    color: var(--fgColor-default);
}

.button-secondary:hover {
    background: var(--control-bgColor-hover);
}

.button-danger {
    border-color: var(--borderColor-danger-emphasis);
    background: var(--bgColor-danger-emphasis);
    color: var(--fgColor-onEmphasis);
}

.button-danger:hover:not(:disabled) {
    border-color: var(--button-danger-borderColor-active);
    background: var(--button-danger-bgColor-active);
}

.app-profile {
    position: relative;
    flex: 0 0 auto;
    margin-left: auto;
}

.profile-trigger {
    position: relative;
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    padding: 0;
    border: var(--borderWidth-default) solid var(--borderColor-emphasis);
    border-radius: 50%;
    background: #fff;
    color: #1f2328;
    cursor: pointer;
    font-size: 15px;
    font-weight: 700;
    transition:
        background-color 80ms ease-out,
        border-color 80ms ease-out,
        box-shadow 80ms ease-out;
}

.profile-unread-indicator,
.profile-menu-unread-indicator,
.notification-unread-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--underlineNav-borderColor-active);
}

.profile-unread-indicator {
    position: absolute;
    top: 1px;
    right: 1px;
    border: 0;
    outline: 0;
    box-shadow: none;
}

.profile-menu-unread-indicator {
    margin-left: auto;
}

.profile-trigger:hover,
.profile-trigger[aria-expanded="true"] {
    border-color: var(--borderColor-emphasis);
    background: #f6f8fa;
    box-shadow: var(--shadow-resting-small);
}

.profile-menu {
    position: absolute;
    top: calc(100% + var(--base-size-8));
    right: 0;
    width: min(288px, calc(100vw - var(--base-size-32)));
    min-width: 192px;
    padding: var(--base-size-8);
    border: 0;
    border-radius: var(--borderRadius-large);
    background: var(--overlay-bgColor);
    box-shadow: var(--shadow-floating-small);
    color: var(--fgColor-default);
    font-size: var(--text-body-size-medium);
    font-weight: var(--base-text-weight-normal);
    line-height: 21px;
    animation: profile-menu-appear 200ms cubic-bezier(0.33, 1, 0.68, 1);
}

.profile-menu[hidden] {
    display: none;
}

.profile-summary {
    display: flex;
    align-items: center;
    gap: var(--base-size-8);
    padding: var(--base-size-8) var(--base-size-8) var(--base-size-12);
}

.profile-avatar {
    display: grid;
    width: 32px;
    height: 32px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 50%;
    border: var(--borderWidth-default) solid var(--borderColor-emphasis);
    background: #fff;
    color: #1f2328;
    font-size: var(--text-body-size-medium);
    font-weight: 700;
}

.profile-identity {
    min-width: 0;
}

.profile-name,
.profile-email {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-name {
    font-size: var(--text-body-size-medium);
    font-weight: var(--base-text-weight-semibold);
    line-height: 21px;
    overflow-wrap: anywhere;
}

.profile-email {
    color: var(--fgColor-muted);
    font-size: var(--text-body-size-medium);
    line-height: 21px;
}

.profile-actions {
    display: grid;
    gap: 0;
}

.profile-action {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 36px;
    padding: var(--base-size-8);
    border: 0;
    border-radius: var(--borderRadius-medium);
    background: transparent;
    color: var(--fgColor-default);
    cursor: pointer;
    font-size: var(--text-body-size-medium);
    font-weight: var(--base-text-weight-normal);
    line-height: 20px;
    text-align: left;
    text-decoration: none;
    transition:
        background-color 80ms ease-out,
        color 80ms ease-out;
}

.profile-action:hover {
    background: var(--control-bgColor-rest);
}

.profile-menu a.profile-action,
.profile-menu a.profile-action:hover {
    text-decoration: none;
}

.profile-action:disabled {
    color: var(--fgColor-muted);
    cursor: not-allowed;
}

.profile-action:disabled:hover {
    background: transparent;
}

.profile-action-note {
    display: none;
    margin-top: 2px;
    font-size: 12px;
    font-weight: 400;
}

.profile-logout-form {
    margin: var(--base-size-8) 0 0;
    padding-top: var(--base-size-8);
    border-top: var(--borderWidth-default) solid var(--borderColor-default);
}

@keyframes profile-menu-appear {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.app-content {
    flex: 1 0 auto;
    width: min(100%, var(--breakpoint-xlarge));
    margin: 0 auto;
    padding: 28px 24px 48px;
}

.team-tabs {
    margin-bottom: 0;
    overflow-x: auto;
}

.team-settings-action {
    cursor: not-allowed;
}

.team-settings-page {
    display: grid;
    grid-template-columns: 220px minmax(0, 720px);
    align-items: baseline;
    gap: var(--base-size-48);
    padding-top: var(--base-size-12);
}

.team-settings-sidebar nav {
    display: grid;
    gap: var(--base-size-4);
}

.team-settings-sidebar a {
    min-height: 38px;
    padding: var(--base-size-8) var(--base-size-12);
    border-radius: var(--borderRadius-medium);
    color: var(--fgColor-default);
    font-size: 14px;
    line-height: 20px;
    text-decoration: none;
}

.team-settings-sidebar a:hover {
    background: var(--control-transparent-bgColor-hover);
}

.team-settings-sidebar .team-settings-nav-active {
    background: var(--control-bgColor-rest);
    font-weight: var(--base-text-weight-semibold);
}

.team-settings-content {
    min-width: 0;
}

.team-members-settings-page {
    grid-template-columns: 220px minmax(0, 932px);
}

.team-settings-header {
    display: grid;
    gap: var(--base-size-12);
    margin: 0 0 var(--base-size-12);
}

.team-settings-header h1 {
    margin: 0;
}

.team-settings-header p {
    max-width: 56ch;
    margin: 0;
    color: var(--fgColor-default);
    font-size: 14px;
    line-height: 21px;
}

.team-settings-form {
    display: grid;
    width: min(100%, 600px);
    margin-bottom: var(--base-size-32);
}

.team-settings-form .field-with-action input {
    min-height: 34px;
}

.team-settings-form .field-with-action .button {
    min-height: 34px;
    padding: 5px var(--base-size-12);
    white-space: nowrap;
}

.team-settings-tags-form {
    margin-bottom: 0;
}

.team-settings-tag-list {
    width: min(100%, 600px);
    margin: var(--base-size-8) 0 var(--base-size-32);
}

.team-settings-form .form-help,
.team-create-form .form-help {
    padding-left: var(--base-size-4);
}

.team-member-list,
.team-invitation-list {
    width: 100%;
    overflow: visible;
    border: var(--borderWidth-default) solid var(--borderColor-default);
    border-radius: var(--borderRadius-medium);
    background: var(--bgColor-default);
}

.team-member-list {
    width: min(100%, 800px);
}

.team-member-list-read-only {
    width: min(100%, 600px);
}

.team-member-row,
.team-invitation-row {
    min-width: 0;
    border-bottom: var(--borderWidth-default) solid var(--borderColor-default);
}

.team-member-row:last-child,
.team-invitation-row:last-child {
    border-bottom: 0;
}

.team-member-row {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) 76px 204px 28px;
    align-items: center;
    gap: var(--base-size-20);
    padding: var(--base-size-16);
}

.team-member-row-read-only {
    grid-template-columns: minmax(280px, 1fr) max-content;
}

.team-member-row-read-only .team-member-role-cell {
    justify-content: flex-end;
}

.team-member-profile {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    min-width: 0;
    align-items: center;
    gap: var(--base-size-12);
}

.team-member-avatar {
    display: grid;
    width: 40px;
    height: 40px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 50%;
    background: var(--tooltip-bgColor);
    color: var(--fgColor-onEmphasis);
    font-size: 14px;
    font-weight: var(--base-text-weight-semibold);
}

.team-member-identity {
    display: grid;
    min-width: 0;
    gap: var(--base-size-2);
}

.team-member-identity strong,
.team-member-identity span,
.team-invitation-email {
    overflow: hidden;
    font-size: 14px;
    line-height: 20px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.team-member-identity strong {
    color: var(--fgColor-default);
    font-weight: var(--base-text-weight-semibold);
}

.team-member-identity span {
    font-size: 12px;
    line-height: 18px;
}

.team-member-identity span,
.team-member-role,
.team-invitation-row time,
.team-invitation-empty,
.team-settings-access-note {
    color: var(--fgColor-muted);
}

.team-member-role {
    display: inline-flex;
    height: 22px;
    align-items: center;
    padding-top: 0;
    padding-bottom: 0;
    justify-self: start;
}

.team-member-role-cell {
    display: flex;
    height: 22px;
    min-width: 0;
    align-items: center;
    align-self: center;
}

.team-member-visibility {
    display: flex;
    height: 22px;
    min-width: 0;
    align-items: center;
    align-self: center;
    justify-content: flex-start;
    gap: var(--base-size-8);
    color: var(--fgColor-default);
    font-size: 13px;
    line-height: 20px;
    white-space: nowrap;
}

.team-member-visibility-control {
    display: flex;
    height: 22px;
    align-items: center;
}

.team-member-visibility > span:last-child {
    color: var(--fgColor-muted);
    font-size: 12px;
    line-height: 18px;
}

.team-member-remove-cell {
    display: flex;
    width: 28px;
    height: 28px;
    align-items: center;
    justify-content: center;
}

.team-member-remove-cell .task-detail-icon-button {
    color: var(--fgColor-disabled);
    opacity: .72;
}

.team-member-remove-cell .task-detail-icon-button:hover {
    background: transparent;
    color: var(--fgColor-muted);
    opacity: .86;
}

.team-member-remove-profile {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    align-items: center;
    gap: var(--base-size-12);
    margin-bottom: var(--base-size-16);
}

.team-member-remove-dialog .settings-dialog-body p {
    margin-bottom: 0;
}

.team-visibility-switch {
    position: relative;
    display: inline-flex;
    width: 40px;
    height: 22px;
    flex: 0 0 auto;
    align-items: center;
    padding: 0;
    border: var(--borderWidth-default) solid var(--borderColor-default);
    border-radius: var(--borderRadius-medium);
    background: var(--controlTrack-bgColor-rest);
    cursor: pointer;
    transition: background-color 160ms var(--motion-easing-move), border-color 160ms var(--motion-easing-move);
}

.team-visibility-switch:hover {
    background: var(--controlTrack-bgColor-hover);
}

.team-visibility-switch > span {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    border: var(--borderWidth-default) solid var(--controlKnob-borderColor-rest);
    border-radius: var(--borderRadius-small);
    background: var(--controlKnob-bgColor-rest);
    transition: transform 160ms var(--motion-easing-move);
}

.team-visibility-switch[aria-checked="true"] {
    border-color: var(--bgColor-accent-emphasis);
    background: var(--bgColor-accent-emphasis);
}

.team-visibility-switch[aria-checked="true"]:hover {
    background: var(--control-checked-bgColor-hover);
}

.team-visibility-switch[aria-checked="true"] > span {
    border-color: var(--bgColor-accent-emphasis);
    transform: translateX(18px);
}

.team-visibility-switch[aria-disabled="true"],
.team-visibility-switch:disabled {
    cursor: default;
    opacity: .55;
}

.team-invitation-actions {
    justify-self: end;
}

.team-invitation-form {
    margin-bottom: var(--base-size-32);
}

.team-invitation-history h2 {
    margin: 0 0 var(--base-size-12);
    color: var(--fgColor-default);
    font-size: 16px;
    font-weight: var(--base-text-weight-semibold);
    line-height: 24px;
}

.team-invitation-row {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) 104px 110px 24px;
    align-items: center;
    gap: var(--base-size-12);
    min-height: 48px;
    padding: var(--base-size-8) var(--base-size-16);
}

.team-invitation-email {
    color: var(--fgColor-default);
    font-weight: var(--base-text-weight-normal);
}

.invitation-status {
    display: inline-flex;
    width: fit-content;
    min-height: 24px;
    align-items: center;
    padding: 2px var(--base-size-8);
    border-radius: var(--borderRadius-full);
    font-size: 12px;
    font-weight: var(--base-text-weight-semibold);
    line-height: 20px;
}

.invitation-status-pending {
    background: var(--bgColor-attention-muted);
    color: var(--fgColor-attention);
}

.invitation-status-accepted {
    background: var(--bgColor-success-muted);
    color: var(--fgColor-success);
}

.invitation-status-declined,
.invitation-status-canceled,
.invitation-status-expired {
    background: var(--control-bgColor-rest);
    color: var(--fgColor-muted);
}

.team-invitation-row time {
    font-size: 13px;
    line-height: 20px;
    white-space: nowrap;
}

.team-invitation-empty,
.team-settings-access-note {
    margin: 0;
    font-size: 14px;
    line-height: 21px;
}

.team-settings-action-tooltip {
    display: inline-flex;
}

.team-settings-action-tooltip[data-tooltip-disabled] {
    pointer-events: none;
}

.team-settings-action-tooltip[data-tooltip-disabled] .button {
    pointer-events: auto;
}

.team-settings-action-tooltip .button:disabled {
    border-color: var(--borderColor-disabled);
    background: var(--control-bgColor-disabled);
    color: var(--control-fgColor-disabled);
    cursor: not-allowed;
}

.team-settings-action-tooltip .button:disabled:hover {
    border-color: var(--borderColor-disabled);
    background: var(--control-bgColor-disabled);
}

.team-settings-delete {
    flex: 0 0 auto;
    border-color: var(--borderColor-danger-emphasis);
    background: var(--control-bgColor-rest);
    color: var(--fgColor-danger);
}

.team-settings-delete:hover {
    border-color: var(--button-danger-borderColor-hover);
    background: var(--button-danger-bgColor-hover);
    color: var(--button-danger-fgColor-hover);
}

.settings-dialog {
    width: min(480px, calc(100% - var(--base-size-32)));
    padding: 0;
    border: var(--borderWidth-default) solid var(--overlay-borderColor);
    border-radius: var(--borderRadius-large);
    background: var(--overlay-bgColor);
    box-shadow: var(--shadow-floating-large);
    color: var(--fgColor-default);
}

.settings-dialog::backdrop {
    background: var(--overlay-backdrop-bgColor);
}

.settings-dialog-form {
    margin: 0;
}

.settings-dialog-header,
.settings-dialog-footer {
    display: flex;
    align-items: center;
    padding: var(--base-size-16);
}

.settings-dialog-header {
    justify-content: space-between;
    border-bottom: var(--borderWidth-default) solid var(--borderColor-default);
}

.settings-dialog-header h2 {
    margin: 0;
    font-size: 18px;
    line-height: 24px;
}

.settings-dialog-header button {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: var(--borderRadius-medium);
    background: transparent;
    color: var(--fgColor-muted);
    cursor: pointer;
    font-size: 22px;
}

.settings-dialog-header button:hover {
    background: var(--control-transparent-bgColor-hover);
    color: var(--fgColor-default);
}

.settings-dialog-body {
    padding: var(--base-size-16);
}

.settings-dialog-body p {
    margin: 0 0 var(--base-size-20);
    color: var(--fgColor-muted);
    font-size: 14px;
    line-height: 21px;
}

.settings-dialog-body input {
    width: 100%;
    min-height: 38px;
    padding: 6px 9px;
    border: var(--borderWidth-default) solid var(--control-borderColor-rest);
    border-radius: var(--borderRadius-medium);
    background: var(--bgColor-default);
    color: var(--fgColor-default);
}

.settings-dialog-body input:focus {
    border-color: var(--borderColor-accent-emphasis);
    outline: none;
    box-shadow: inset 0 0 0 1px var(--borderColor-accent-emphasis);
}

.settings-dialog-footer {
    justify-content: flex-end;
    gap: var(--base-size-8);
    border-top: var(--borderWidth-default) solid var(--borderColor-default);
}

.invitation-decision-dialog .settings-dialog-body p {
    margin-bottom: 0;
}

.invitation-decision-dialog .settings-dialog-header h2:focus {
    outline: none;
}

.invitation-decision-actions form {
    margin: 0;
}

.settings-dialog-footer .button-primary:disabled {
    border-color: var(--button-primary-borderColor-disabled);
    background: var(--button-primary-bgColor-disabled);
    color: var(--button-primary-fgColor-disabled);
    cursor: not-allowed;
}

.settings-dialog-footer .button-secondary:disabled {
    border-color: var(--control-borderColor-disabled);
    background: var(--control-bgColor-disabled);
    color: var(--control-fgColor-disabled);
    cursor: not-allowed;
}

.settings-dialog-footer .button-danger:disabled {
    border-color: var(--bgColor-danger-muted);
    background: var(--bgColor-danger-muted);
    color: var(--button-danger-fgColor-disabled);
}

@media (max-width: 760px) {
    .team-settings-page {
        grid-template-columns: minmax(0, 1fr);
        align-items: start;
        gap: var(--base-size-24);
    }

    .team-settings-sidebar nav {
        display: flex;
        overflow-x: auto;
    }

    .team-settings-sidebar a {
        min-height: 44px;
        flex: 0 0 auto;
    }

    .team-invitation-row {
        grid-template-columns: minmax(0, 1fr) auto 24px;
    }

    .team-invitation-row time {
        grid-column: 1 / 3;
        grid-row: 2;
    }

    .team-invitation-actions {
        grid-column: 3;
        grid-row: 1;
    }

}

@media (max-width: 700px) {
    .team-member-row {
        grid-template-columns: minmax(0, 1fr) 188px 28px;
        gap: var(--base-size-12);
        padding: var(--base-size-12);
    }

    .team-member-role-cell {
        display: none;
    }

    .team-member-row-read-only {
        grid-template-columns: minmax(0, 1fr) max-content;
    }

    .team-member-row-read-only .team-member-role-cell {
        display: flex;
    }
}

.workspace-page {
    width: 100%;
}

.site-footer {
    flex: 0 0 auto;
    box-sizing: border-box;
    width: 100%;
    margin: 0 auto;
    padding: var(--base-size-16) var(--base-size-24) var(--base-size-8);
    background: transparent;
    color: var(--fgColor-muted);
    font-size: 12px;
    line-height: 18px;
    text-align: center;
}

.site-footer a {
    color: inherit;
    text-decoration: none;
}

.site-footer a:hover {
    color: var(--fgColor-link);
    text-decoration: underline;
}

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

.page-actions {
    display: flex;
    margin-bottom: 20px;
}

.page-header-compact {
    max-width: 820px;
}

.form-page {
    width: min(100%, 820px);
    margin-right: auto;
    margin-left: auto;
}

.page-header h1 {
    margin: 0;
    font-size: clamp(26px, 3vw, 34px);
    letter-spacing: -0.025em;
    line-height: 1.2;
}

.page-header p {
    max-width: 65ch;
    margin: 8px 0 0;
    color: var(--fgColor-muted);
    font-size: 14px;
}

.back-link {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--fgColor-muted);
    font-size: 13px;
    text-decoration: none;
}

.back-link:hover {
    color: var(--fgColor-link);
}

.team-create-back-link {
    display: inline-flex;
    align-items: center;
    gap: var(--base-size-8);
    margin-bottom: var(--base-size-12);
    color: var(--fgColor-muted);
    font-size: 14px;
    line-height: 20px;
}

.team-create-back-link svg {
    flex: 0 0 auto;
}

.team-create-back-link:hover {
    text-decoration: underline;
}

.team-create-header {
    margin-bottom: var(--base-size-24);
}

.team-create-header h1 {
    font-size: 20px;
    font-weight: var(--base-text-weight-semibold);
    letter-spacing: -0.01em;
    line-height: 32px;
}

.team-create-header p {
    max-width: 680px;
    margin-top: 0;
    line-height: 21px;
}

.form-page-description {
    max-width: 680px;
    margin: 0;
    color: var(--fgColor-muted);
    font-size: 14px;
    line-height: 21px;
}

.local-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 22px;
    overflow: visible;
    border-bottom: var(--borderWidth-default) solid var(--borderColor-default);
}

.local-tabs a,
.local-tab-disabled {
    position: relative;
    flex: 0 0 auto;
    padding: 10px 12px;
    color: var(--fgColor-muted);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.local-tabs a:hover {
    color: var(--fgColor-default);
}

.local-tab-active {
    color: var(--fgColor-default);
}

.local-tab-active::after {
    position: absolute;
    right: 10px;
    bottom: -1px;
    left: 10px;
    height: 2px;
    border-radius: 2px 2px 0 0;
    background: var(--underlineNav-borderColor-active);
    content: "";
}

.tasks-page > .local-tabs a:first-child {
    padding-left: 0;
}

.tasks-page > .local-tabs a:first-child::after {
    right: 12px;
    left: 0;
}

.team-tabs a:first-child,
.notifications-tabs a:first-child {
    padding-left: 0;
}

.team-tabs a:first-child::after,
.notifications-tabs a:first-child::after {
    right: 12px;
    left: 0;
}

.disabled-action {
    color: var(--fgColor-muted);
    font-size: 13px;
}

.page-summary {
    margin: 20px 0 10px;
    font-size: 15px;
}

.filter-bar {
    display: flex;
    align-items: center;
    gap: 6px 10px;
    margin-bottom: 10px;
    padding: 10px 12px;
    overflow-x: auto;
    border: var(--borderWidth-default) solid var(--borderColor-default);
    border-radius: var(--borderRadius-medium);
    background: var(--bgColor-default);
    font-size: 13px;
    white-space: nowrap;
}

.filter-bar-wide {
    flex-wrap: wrap;
    overflow: visible;
    white-space: normal;
}

.filter-bar > span {
    color: var(--fgColor-muted);
    font-weight: 600;
}

.filter-bar a {
    color: var(--fgColor-muted);
    text-decoration: none;
}

.filter-bar a:hover,
.filter-bar a:has(strong) {
    color: var(--fgColor-link);
}

.task-grid {
    display: grid;
    margin: 0;
    padding: 0;
    list-style: none;
}

.task-card {
    min-width: 0;
    border: var(--borderWidth-default) solid var(--borderColor-default);
    border-radius: var(--borderRadius-large);
    background: var(--bgColor-default);
}

.teams-toolbar {
    display: flex;
    align-items: center;
    gap: var(--base-size-12);
    min-height: 58px;
    border-bottom: var(--borderWidth-default) solid var(--borderColor-default);
}

.teams-toolbar-empty {
    margin-bottom: 12px;
    border-bottom: 0;
}

.teams-count {
    margin-right: auto;
    color: var(--fgColor-muted);
    font-size: 14px;
    line-height: 21px;
}

.team-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.team-list-item {
    padding: var(--base-size-24) 0;
    border-bottom: var(--borderWidth-default) solid var(--borderColor-default);
}

.team-list-name {
    display: inline-block;
    max-width: 100%;
    overflow-wrap: anywhere;
    color: var(--fgColor-link);
    font-size: 16px;
    font-weight: var(--base-text-weight-semibold);
    line-height: 24px;
    text-decoration: none;
}

.team-list-name:hover {
    text-decoration: underline;
}

.team-list-meta {
    display: block;
    margin-top: var(--base-size-4);
    color: var(--fgColor-muted);
    font-size: 14px;
    line-height: 21px;
}

.task-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
    gap: 14px;
    margin-top: 18px;
}

.task-toolbar {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 18px 0 12px;
}

.notifications-toolbar {
    min-height: 58px;
    margin-top: 0;
}

.notification-read-button {
    min-height: 32px;
    padding: 5px 12px;
    font-size: 14px;
    line-height: 20px;
}

.notification-selection-bar {
    position: fixed;
    z-index: var(--zIndex-overlay);
    bottom: var(--base-size-24);
    left: 50%;
    display: flex;
    min-height: 52px;
    align-items: center;
    gap: var(--base-size-24);
    padding: var(--base-size-8) var(--base-size-8) var(--base-size-8) var(--base-size-16);
    border-radius: var(--overlay-borderRadius);
    background: var(--overlay-bgColor);
    box-shadow: var(--shadow-floating-medium);
    color: var(--fgColor-default);
    font-size: 14px;
    line-height: 20px;
    transform: translateX(-50%);
}

.notification-selection-bar[hidden] {
    display: none;
}

.notification-selection-actions {
    display: flex;
    align-items: center;
    gap: var(--base-size-8);
}

.notification-selection-summary {
    color: var(--fgColor-muted);
    font-size: 14px;
    font-weight: var(--base-text-weight-normal);
    line-height: 20px;
}

.notification-selection-clear {
    min-height: 32px;
    padding: 5px 12px;
    font-size: 14px;
    line-height: 20px;
}

.notification-list {
    width: 100%;
    overflow: hidden;
    border: var(--borderWidth-default) solid var(--borderColor-default);
    border-radius: var(--borderRadius-medium);
    background: var(--bgColor-default);
}

.notification-list-header,
.notification-row {
    display: grid;
    grid-template-columns: 32px 8px minmax(0, 1fr) auto auto;
    align-items: center;
    column-gap: var(--base-size-12);
    min-height: 48px;
    padding: var(--base-size-12) var(--base-size-16);
    border-bottom: var(--borderWidth-default) solid var(--borderColor-default);
}

.notification-list-header {
    grid-template-columns: 32px minmax(0, 1fr);
    background: var(--bgColor-muted);
    color: var(--fgColor-muted);
    font-size: 14px;
    font-weight: var(--base-text-weight-normal);
    line-height: 20px;
}

.notification-row:last-child {
    border-bottom: 0;
}

.notification-row-unread {
    background: var(--bgColor-accent-muted);
}

.notification-row-read .notification-unread-dot {
    visibility: hidden;
}

.notifications-page input[type="checkbox"] {
    width: 16px;
    min-height: 16px;
    margin: 0;
    padding: 0;
    border-radius: var(--borderRadius-small);
}

.notification-list-header input[type="checkbox"] {
    justify-self: center;
}

.notification-checkbox-control {
    display: grid;
    width: 32px;
    min-height: 44px;
    place-items: center;
    cursor: pointer;
}

.notification-message,
.notification-row time {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.notification-invitation-action {
    min-height: 28px;
    padding: 3px 10px;
    font-size: 13px;
    line-height: 20px;
    white-space: nowrap;
}

.invitation-status-expired {
    color: var(--fgColor-muted);
    white-space: nowrap;
}

.notification-next-page {
    display: flex;
    justify-content: center;
    padding: var(--base-size-16) 0;
}

.notification-next-page-error {
    max-width: min(100%, 420px);
    height: auto;
    white-space: normal;
}

.notification-message {
    color: var(--fgColor-default);
    font-size: 14px;
    line-height: 20px;
}

.notification-message strong {
    font-weight: var(--base-text-weight-semibold);
}

.notification-message-link {
    color: inherit;
    text-decoration: none;
}

.notification-message-link:hover {
    color: var(--fgColor-accent);
    text-decoration: underline;
}

.notification-row-read .notification-message,
.notification-row time {
    color: var(--fgColor-muted);
}

.notification-row time {
    font-size: 13px;
    line-height: 20px;
}

@media (max-width: 760px) {
    .notifications-tabs {
        overflow-x: auto;
    }

    .notifications-toolbar {
        flex-wrap: wrap;
    }

    .notification-selection-bar {
        right: var(--base-size-12);
        bottom: var(--base-size-12);
        left: var(--base-size-12);
        justify-content: space-between;
        gap: var(--base-size-12);
        transform: none;
    }

    .notification-list-header,
    .notification-row {
        grid-template-columns: 32px 8px minmax(0, 1fr) auto;
        column-gap: var(--base-size-8);
        padding: var(--base-size-12);
    }

    .notification-list-header {
        grid-template-columns: 32px minmax(0, 1fr);
    }

    .notification-message {
        grid-column: 3;
    }

    .notification-row time {
        grid-row: 2;
        grid-column: 3;
    }

    .notification-invitation-action,
    .invitation-status-expired {
        grid-row: 1 / span 2;
        grid-column: 4;
    }
}

.tasks-page > .task-toolbar {
    min-height: 58px;
    margin-top: 0;
}

.task-count {
    margin-right: auto;
    color: var(--fgColor-muted);
    font-size: 14px;
    font-weight: var(--base-text-weight-normal);
    line-height: 21px;
}

.task-create-action,
.team-create-action {
    min-height: 32px;
    padding: 5px 12px;
    font-size: 14px;
    line-height: 20px;
}

.task-create-action {
    margin-left: 4px;
}

.tasks-onboarding-actions {
    min-height: 58px;
    align-items: center;
    margin-bottom: 12px;
}

.tasks-onboarding-actions .task-create-action {
    margin-left: 0;
}

.team-details-page > .task-toolbar {
    min-height: 58px;
    margin-top: 0;
    justify-content: flex-end;
}

.toolbar-popover {
    position: relative;
}

.task-toolbar-trigger {
    width: auto;
    cursor: pointer;
    white-space: nowrap;
}

.task-toolbar-trigger[aria-expanded="true"] {
    border-color: var(--borderColor-emphasis);
    background: var(--control-bgColor-active) !important;
}

.toolbar-popover-panel {
    position: absolute;
    z-index: 20;
    top: calc(100% + 8px);
    right: 0;
    display: grid;
    width: min(320px, calc(100vw - 32px));
    max-height: min(420px, calc(100vh - 120px));
    gap: 4px;
    padding: 10px;
    overflow-y: auto;
    border: 0;
    border-radius: var(--borderRadius-large);
    background: var(--overlay-bgColor);
    box-shadow: var(--shadow-floating-small);
}

.toolbar-popover-panel a {
    padding: 7px 8px;
    border-radius: var(--borderRadius-medium);
    color: var(--fgColor-default);
    font-size: 13px;
    text-decoration: none;
}

.toolbar-popover-panel a:hover {
    background: var(--control-bgColor-rest);
}

.toolbar-popover-title {
    padding: 4px 8px 7px;
    color: var(--fgColor-muted);
    font-size: 12px;
    font-weight: 650;
}

.toolbar-popover > .task-filter-panel {
    width: min(320px, calc(100vw - 32px));
    overflow: visible;
}

.task-select-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--base-size-8);
    font-size: 12px;
    line-height: 18px;
}

.task-select-close {
    display: grid;
    width: 24px;
    min-width: 24px;
    height: 24px;
    min-height: 24px !important;
    place-items: center;
    padding: 0 !important;
    border: 0 !important;
    border-radius: var(--borderRadius-medium) !important;
    background: transparent !important;
    color: var(--fgColor-muted) !important;
    cursor: pointer;
}

.task-select-close:hover {
    background: var(--control-transparent-bgColor-hover) !important;
    color: var(--fgColor-default) !important;
}

.task-select-close:focus-visible {
    outline: var(--focus-outline);
    outline-offset: var(--focus-outline-offset);
}

.task-filter-panel > .task-filter-options {
    display: grid;
    max-height: none;
    gap: 8px;
    overflow: visible;
}

.my-tasks-filter-panel > .task-filter-options {
    padding-top: var(--base-size-8);
}

.task-filter-row {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
}

.task-filter-row > span {
    padding-left: 8px;
    color: var(--fgColor-default);
    font-size: 12px;
    font-weight: var(--base-text-weight-normal);
    line-height: 18px;
}

.task-filter-select .primer-select-trigger {
    min-height: 32px !important;
    padding: 4px var(--base-size-8) !important;
    font-size: 12px;
    font-weight: var(--base-text-weight-normal);
    line-height: 18px;
}

.task-filter-selected-values {
    display: flex;
    min-width: 0;
    flex: 1 1 auto;
    align-items: center;
    gap: var(--base-size-4);
    overflow: hidden;
}

.task-filter-chip {
    display: inline-flex;
    min-width: 0;
    max-width: calc(100% - 40px);
    flex: 0 0 auto;
    align-items: center;
    padding: 1px var(--base-size-6);
    overflow: hidden;
    border-radius: var(--borderRadius-full);
    background: var(--bgColor-muted);
    color: var(--fgColor-muted);
    font-size: 12px;
    font-weight: var(--base-text-weight-normal);
    line-height: 18px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.task-filter-chip[hidden] {
    display: none;
}

.task-filter-overflow {
    flex: 0 0 auto;
}

.task-filter-select > .primer-select-panel {
    z-index: 30;
    right: 0;
    left: auto;
    width: min(240px, 100%);
    max-width: 100%;
}

.task-filter-select .primer-select-options {
    max-height: 205px;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-color: var(--borderColor-muted) var(--overlay-bgColor);
    scrollbar-width: thin;
}

.task-filter-select .primer-select-options::-webkit-scrollbar {
    width: 10px;
}

.task-filter-select .primer-select-options::-webkit-scrollbar-track {
    background: var(--overlay-bgColor);
}

.task-filter-select .primer-select-options::-webkit-scrollbar-thumb {
    border: 3px solid var(--overlay-bgColor);
    border-radius: var(--borderRadius-full);
    background: var(--borderColor-muted);
}

.task-filter-select .primer-select-options::-webkit-scrollbar-thumb:hover {
    background: var(--fgColor-muted);
}

.task-filter-select[data-filter-key="status"] .primer-select-options {
    max-height: none;
    overflow-y: visible;
}

.task-filter-select .primer-select-option {
    min-height: 32px !important;
    padding: 5px var(--base-size-8) !important;
    color: var(--fgColor-default);
    font-size: 12px;
    line-height: 18px;
    text-decoration: none;
}

.task-filter-select .primer-select-option .primer-select-check {
    flex: 0 0 16px;
}

.task-filter-select .primer-select-option .primer-select-check:not(:has(svg)) {
    position: relative;
    height: 16px;
    font-size: 0;
}

.task-filter-select .primer-select-option .primer-select-check:not(:has(svg))::before {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 8px;
    height: 4px;
    border-bottom: 2px solid currentColor;
    border-left: 2px solid currentColor;
    content: "";
    transform: rotate(-45deg);
}

.task-filter-select .primer-select-option > span:last-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.task-filter-select .primer-select-option[aria-selected="true"] {
    font-weight: var(--base-text-weight-normal);
}

.task-filter-space {
    height: 72px;
}

.task-filter-actions {
    display: flex;
    justify-content: flex-end;
    padding-top: 2px;
}

.task-filter-reset {
    min-height: 30px;
    padding: 4px 10px;
    font-size: 12px;
    line-height: 18px;
}

.task-sort-panel {
    right: 0;
    left: auto;
    width: 240px;
}

.task-sort-panel .primer-select-option {
    min-height: 34px !important;
    padding: 5px var(--base-size-8) !important;
    color: var(--fgColor-default);
    font-size: 12px;
    line-height: 18px;
    text-decoration: none;
}

.task-sort-panel .primer-select-option[aria-current="true"] .primer-select-check {
    color: var(--fgColor-default);
}

.workspace-page input,
.workspace-page select,
.workspace-page textarea {
    min-height: 36px;
    padding: 6px 9px;
    border: var(--borderWidth-default) solid var(--control-borderColor-rest);
    border-radius: var(--borderRadius-medium);
    background: var(--bgColor-default);
    color: var(--fgColor-default);
}

.workspace-page input:focus,
.workspace-page select:focus,
.workspace-page textarea:focus {
    border-color: var(--borderColor-accent-emphasis);
    outline: none;
    box-shadow: inset 0 0 0 1px var(--borderColor-accent-emphasis);
}

.task-metadata-panel select:hover {
    background: var(--control-bgColor-rest);
}

.task-metadata-panel select:focus-visible {
    outline: var(--focus-outline);
    outline-offset: 1px;
}

.workspace-page button:not(.button):not(.task-card-menu):not(.task-card-action-option):not(.task-edit-dialog-close):not(.settings-dialog-close):not(.team-visibility-switch):not(.task-detail-icon-button) {
    min-height: 34px;
    padding: 6px 9px;
    border: var(--borderWidth-default) solid var(--borderColor-default);
    border-radius: var(--borderRadius-medium);
    background: var(--control-bgColor-rest);
    color: var(--fgColor-default);
    cursor: pointer;
}

.workspace-page button:not(.button):not(.task-card-menu):not(.task-card-action-option):not(.task-edit-dialog-close):not(.settings-dialog-close):not(.team-visibility-switch):not(.task-detail-icon-button):hover {
    background: var(--control-bgColor-hover);
}

.task-card {
    display: grid;
    min-height: 190px;
    align-content: start;
}

.task-card-header {
    display: flex;
    min-width: 0;
    min-height: 36px;
    align-items: center;
    justify-content: space-between;
    padding: 0 8px 0 12px;
    border-bottom: var(--borderWidth-default) solid var(--borderColor-muted);
    border-radius: var(--borderRadius-large) var(--borderRadius-large) 0 0;
}

.task-card-status-open .task-card-header {
    background: var(--bgColor-attention-muted);
}

.task-card-status-in-progress .task-card-header {
    background: var(--bgColor-accent-muted);
}

.task-card-status-done .task-card-header {
    background: var(--bgColor-success-muted);
}

.task-card-status-not-relevant .task-card-header {
    background: var(--bgColor-muted);
}

.task-card-status {
    font-size: 12px;
    font-weight: var(--base-text-weight-semibold);
    line-height: 18px;
}

.task-card-status-open .task-card-status {
    color: var(--fgColor-attention);
}

.task-card-status-in-progress .task-card-status {
    color: var(--fgColor-accent);
}

.task-card-status-done .task-card-status {
    color: var(--fgColor-success);
}

.task-card-status-not-relevant .task-card-status {
    color: var(--fgColor-muted);
}

.task-card-menu {
    display: grid;
    width: 24px;
    height: 24px;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: var(--borderRadius-medium);
    background: transparent;
    color: var(--fgColor-muted);
    cursor: pointer;
}

.task-card-menu svg {
    width: 16px;
    height: 16px;
}

.task-card-menu:hover {
    background: var(--control-transparent-bgColor-hover);
    color: var(--fgColor-default);
}

.task-card-menu:focus-visible {
    outline: var(--focus-outline);
    outline-offset: var(--focus-outline-offset);
}

.task-card-actions {
    position: relative;
}

.task-card-actions > summary {
    list-style: none;
}

.task-card-actions > summary::-webkit-details-marker {
    display: none;
}

.task-card-actions-panel {
    position: absolute;
    z-index: var(--zIndex-dropdown);
    top: calc(100% + var(--base-size-4));
    right: 0;
    display: grid;
    width: 190px;
    gap: var(--base-size-2);
    padding: var(--base-size-6);
    border: 0;
    border-radius: var(--borderRadius-medium);
    background: var(--overlay-bgColor);
    color: var(--fgColor-default);
    font-size: var(--popover-font-size);
    font-weight: var(--popover-font-weight);
    line-height: var(--popover-line-height);
    box-shadow: var(--shadow-floating-small);
}

.task-card-actions-panel a,
.task-card-actions-panel button {
    display: block;
    width: 100%;
    min-height: 32px;
    padding: var(--base-size-6) var(--base-size-8);
    border: 0;
    border-radius: var(--borderRadius-medium);
    background: transparent;
    color: var(--fgColor-default);
    cursor: pointer;
    font: inherit;
    font-size: inherit;
    line-height: inherit;
    text-align: left;
    text-decoration: none;
}

.task-card-actions-panel a:hover,
.task-card-actions-panel button:hover {
    background: var(--control-transparent-bgColor-hover);
}

.task-card-actions-panel form,
.task-card-actions-panel [data-tooltip] {
    display: block;
    margin: 0;
}

.task-card-actions-panel .task-card-delete-action {
    color: var(--fgColor-danger);
}

.task-card-actions-divider {
    height: var(--borderWidth-default);
    margin: var(--base-size-4) calc(var(--base-size-6) * -1);
    background: var(--borderColor-default);
}

.task-edit-dialog {
    width: min(520px, calc(100% - var(--base-size-32)));
    overflow: visible;
}

.task-edit-dialog-status-only {
    width: min(400px, calc(100% - var(--base-size-32)));
}

.task-edit-dialog-status-only .task-edit-dialog-body {
    padding-bottom: var(--base-size-16);
}

.task-edit-dialog .settings-dialog-header h2 {
    font-size: 18px;
    line-height: 24px;
}

.task-edit-dialog-body {
    display: grid;
    gap: var(--base-size-12);
    padding-bottom: calc(var(--base-size-16) + 34px);
}

.task-edit-dialog-body .form-field > label {
    font-size: 14px;
    font-weight: var(--base-text-weight-semibold);
    line-height: 20px;
}

.settings-dialog-body .task-title-count {
    margin: 0;
}

.task-edit-dialog-body .task-status-field {
    width: min(100%, 300px);
}

.task-edit-dialog-body .primer-select-panel {
    z-index: calc(var(--zIndex-modal) + 1);
}

.task-edit-dialog-body .primer-select-options {
    max-height: 132px;
    overscroll-behavior: contain;
    scrollbar-color: var(--borderColor-muted) var(--overlay-bgColor);
    scrollbar-width: thin;
}

.task-edit-dialog-body .primer-select-options::-webkit-scrollbar,
.task-parameter-row .primer-select-options::-webkit-scrollbar {
    width: 10px;
}

.task-edit-dialog-body .primer-select-options::-webkit-scrollbar-track,
.task-parameter-row .primer-select-options::-webkit-scrollbar-track {
    background: var(--overlay-bgColor);
}

.task-edit-dialog-body .primer-select-options::-webkit-scrollbar-thumb,
.task-parameter-row .primer-select-options::-webkit-scrollbar-thumb {
    border: 3px solid var(--overlay-bgColor);
    border-radius: var(--borderRadius-full);
    background: var(--borderColor-muted);
}

.task-edit-dialog-body .primer-select-options::-webkit-scrollbar-thumb:hover,
.task-parameter-row .primer-select-options::-webkit-scrollbar-thumb:hover {
    background: var(--fgColor-muted);
}

.task-edit-dialog-body .task-status-select-options {
    max-height: min(208px, calc(100dvh - 160px));
}

.settings-dialog-body .task-title-count,
.settings-dialog-body .task-edit-description-help {
    margin: 0;
    padding-left: var(--base-size-4);
    font-size: 13px;
    line-height: 20px;
}

.task-edit-description-help a {
    color: var(--fgColor-link);
    text-decoration: none;
}

.task-edit-description-help a:hover {
    text-decoration: underline;
}

.task-edit-dialog-footer {
    justify-content: flex-end;
    gap: var(--base-size-8);
}

.task-card-body {
    display: grid;
    min-width: 0;
    min-height: 153px;
    align-content: start;
    overflow: hidden;
    gap: 9px;
    padding: 10px 12px 11px;
}

.task-card h3 {
    min-width: 0;
    height: 38px;
    margin: 0;
    font-size: 14px;
    line-height: 19px;
}

.task-card h3 a {
    display: -webkit-box;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    color: var(--fgColor-link);
    overflow-wrap: anywhere;
    text-decoration: none;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.task-card h3 a:hover {
    text-decoration: underline;
}

.task-card h3 a:focus-visible {
    border-radius: var(--borderRadius-small);
    outline: var(--focus-outline);
    outline-offset: var(--focus-outline-offset);
}

.task-card-archived h3 a {
    color: var(--fgColor-muted);
}

.task-card-archived h3 a:hover,
.task-card-archived h3 a:focus-visible {
    color: var(--fgColor-link);
    text-decoration: underline;
}

.task-card-labels {
    display: flex;
    min-width: 0;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.task-card-tag,
.task-card-deadline {
    padding: 3px 7px;
    border-radius: var(--borderRadius-full);
    background: var(--bgColor-muted);
    color: var(--fgColor-muted);
    font-size: 11px;
    line-height: 16px;
}

.task-card-tag {
    min-width: 0;
    max-width: calc(100% - 92px);
    overflow: hidden;
    margin-left: -7px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.task-card-deadline {
    flex: 0 0 auto;
}

.task-card-deadline-urgent {
    background: var(--bgColor-danger-muted);
    color: var(--fgColor-danger);
}

.task-card-people {
    display: grid;
    min-width: 0;
    gap: 2px;
    margin: 0;
    padding-top: 7px;
    border-top: var(--borderWidth-default) solid var(--borderColor-muted);
}

.task-card-people div {
    display: flex;
    min-width: 0;
    justify-content: space-between;
    gap: 8px;
}

.task-card-people dt,
.task-card-people dd {
    overflow: hidden;
    margin: 0;
    font-size: 11px;
    line-height: 17px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.task-card-people dt {
    flex: 0 0 auto;
    color: var(--fgColor-muted);
}

.task-card-people dd {
    min-width: 0;
    flex: 1;
    color: var(--fgColor-default);
    font-weight: var(--base-text-weight-medium);
    text-align: right;
}

.task-card-people .task-card-former-member,
.task-parameter-person.task-card-former-member {
    color: var(--fgColor-danger);
}

.primer-select-value.task-participant-former,
.primer-select-option.task-participant-former .primer-select-option-copy,
option.task-participant-former {
    color: var(--fgColor-danger);
}

.task-card-footer {
    display: flex;
    min-width: 0;
    align-self: end;
    justify-content: space-between;
    gap: 8px;
    margin-top: auto;
    color: var(--fgColor-muted);
    font-size: 11px;
    line-height: 17px;
}

.task-card-footer time {
    flex: 0 0 auto;
    white-space: nowrap;
}

.task-card-footer-archive-with-team {
    align-items: baseline;
}

.task-card-footer a {
    min-width: 0;
    flex: 1;
    overflow: hidden;
    color: var(--fgColor-muted);
    text-overflow: ellipsis;
    text-align: left;
    text-decoration: none;
    white-space: nowrap;
}

.task-card-footer a:hover {
    color: var(--fgColor-link);
    text-decoration: underline;
}

.task-card-archive-event {
    margin-left: -7px;
    padding: 3px 7px;
    border-radius: var(--borderRadius-full);
    line-height: 16px;
}

.task-card-archive-event-deleted {
    background: var(--bgColor-danger-muted);
    color: var(--fgColor-danger);
}

.task-card-archive-event-resolved {
    background: var(--bgColor-success-muted);
    color: var(--fgColor-success);
}

.empty-state {
    display: grid;
    max-width: 680px;
    min-height: 220px;
    place-items: center;
    align-content: center;
    padding: 36px 24px;
    border: var(--borderWidth-default) dashed var(--borderColor-emphasis);
    border-radius: var(--borderRadius-large);
    background: var(--bgColor-default);
    text-align: center;
}

.empty-state-compact {
    min-height: 150px;
    margin-bottom: 18px;
}

.empty-state h2 {
    margin: 0;
    font-size: 20px;
}

.empty-state p {
    max-width: 52ch;
    margin: 8px 0 18px;
    color: var(--fgColor-muted);
    font-size: 14px;
}

.task-empty-state,
.team-empty-state,
.notification-empty-state {
    width: 100%;
    max-width: none;
    min-height: 248px;
    align-content: start;
    padding: 80px 24px 32px;
    border-style: solid;
    border-color: var(--borderColor-default);
    border-radius: var(--borderRadius-medium);
}

.task-empty-state .empty-state-icon,
.team-empty-state .empty-state-icon,
.notification-empty-state .empty-state-icon {
    width: 24px;
    height: 24px;
    margin-bottom: 12px;
    color: var(--fgColor-muted);
}

.empty-state-icons {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: var(--fgColor-muted);
}

.empty-state-group-icon {
    width: 24px;
    height: 24px;
}

.task-empty-state h2,
.team-empty-state h2,
.notification-empty-state h2 {
    margin: 0 0 4px;
    color: var(--fgColor-default);
    font-size: 16px;
    font-weight: var(--base-text-weight-semibold);
    line-height: 24px;
}

.task-empty-state p,
.team-empty-state p {
    margin: 0;
    color: var(--fgColor-muted);
    font-size: 14px;
    line-height: 21px;
}

.form-card {
    display: grid;
    width: min(100%, 680px);
    gap: 20px;
    padding: 24px;
    border: var(--borderWidth-default) solid var(--borderColor-default);
    border-radius: var(--borderRadius-large);
    background: var(--bgColor-default);
}

.form-card-compact {
    margin-bottom: 28px;
}

.form-card h2 {
    margin: 0;
    font-size: 20px;
}

.team-create-form {
    display: grid;
    width: min(100%, 720px);
    gap: var(--base-size-24);
}

.team-create-form .form-field > input {
    min-height: 34px;
}

.team-create-form .field-with-action input {
    min-height: 34px;
}

.team-create-form .field-with-action .button,
.team-create-form .team-create-submit .button {
    min-height: 34px;
    padding: 5px var(--base-size-12);
    line-height: 20px;
}

.required-marker {
    color: var(--fgColor-default);
}

.team-create-submit {
    display: flex;
    justify-content: flex-end;
    gap: var(--base-size-8);
    margin-top: var(--base-size-4);
}

.task-create-form {
    display: grid;
    width: min(100%, 720px);
    gap: var(--base-size-24);
}

.task-create-unavailable {
    display: grid;
    justify-items: start;
    gap: var(--base-size-12);
    color: var(--fgColor-muted);
    font-size: 14px;
}

.task-create-unavailable p {
    margin: 0;
}

.task-create-field {
    justify-items: start;
}

.task-create-field > label,
.task-create-field > input,
.task-create-field > textarea,
.task-create-field > .task-description-editor,
.task-create-field > .task-file-placeholder,
.task-create-field > .form-help {
    justify-self: stretch;
}

.task-team-field,
.task-assignee-field {
    width: min(100%, 300px);
}

.task-title-field,
.task-description-field {
    width: 100%;
}

.task-deadline-field {
    width: min(100%, 300px);
}

.task-tag-field {
    width: min(100%, 300px);
}

.task-create-field > input:not([type="hidden"]) {
    min-height: 34px;
}

.task-title-count {
    text-align: left;
}

.task-deadline-field > input {
    background: var(--control-bgColor-rest);
    transition: background-color 80ms ease-out, border-color 80ms ease-out, box-shadow 80ms ease-out;
}

.task-deadline-field > input:hover {
    background: var(--control-bgColor-hover);
}

input[type="date"] {
    color-scheme: light;
}

@media (prefers-color-scheme: dark) {
    input[type="date"] {
        color-scheme: dark;
    }
}

.primer-select {
    position: relative;
    width: 100%;
}

.primer-select-trigger {
    display: flex;
    width: 100%;
    min-height: 34px !important;
    align-items: center;
    gap: var(--base-size-8);
    padding: 5px var(--base-size-12) !important;
    border-color: var(--button-default-borderColor-rest) !important;
    background: var(--control-bgColor-rest) !important;
    box-shadow: var(--button-default-shadow-resting);
    color: var(--fgColor-default);
    font-size: var(--form-control-font-size);
    font-weight: var(--form-control-value-font-weight);
    line-height: var(--form-control-line-height);
    text-align: left;
    transition: background-color 80ms ease-out, border-color 80ms ease-out, box-shadow 80ms ease-out;
}

.primer-select-trigger:hover {
    background: var(--control-bgColor-hover) !important;
}

.primer-select-trigger > svg {
    flex: 0 0 auto;
    margin-left: auto;
}

.primer-select-value {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.participant-avatar {
    display: grid;
    width: 22px;
    height: 22px;
    flex: 0 0 auto;
    place-items: center;
    border: var(--borderWidth-default) solid var(--control-borderColor-rest);
    border-radius: 50%;
    background: var(--bgColor-default);
    color: var(--fgColor-muted);
    font-size: 10px;
    font-weight: var(--base-text-weight-semibold);
}

.primer-select-panel {
    position: absolute;
    z-index: 20;
    top: calc(100% + var(--base-size-4));
    left: 0;
    width: 320px;
    max-width: calc(100vw - var(--base-size-32));
    overflow: hidden;
    border: 0;
    border-radius: var(--borderRadius-large);
    background: var(--overlay-bgColor);
    color: var(--fgColor-default);
    font-size: var(--form-control-font-size);
    font-weight: var(--form-control-font-weight);
    line-height: var(--form-control-line-height);
    box-shadow: var(--shadow-floating-small);
}

.toolbar-popover > .task-sort-panel {
    right: 0;
    left: auto;
}

.primer-select-heading {
    padding: 10px var(--base-size-12) var(--base-size-8);
    font-size: var(--form-control-font-size);
    font-weight: var(--base-text-weight-semibold);
    line-height: var(--form-control-line-height);
}

.primer-select-options {
    max-height: 226px;
    padding: var(--base-size-4) var(--base-size-8) var(--base-size-8);
    overflow-y: auto;
    border-top: var(--borderWidth-default) solid var(--control-borderColor-rest);
}

.primer-select-option {
    display: flex;
    width: 100%;
    min-height: 40px !important;
    align-items: center;
    gap: var(--base-size-8);
    padding: 6px var(--base-size-8) !important;
    border: 0 !important;
    border-radius: var(--borderRadius-medium);
    background: transparent !important;
    color: var(--fgColor-default);
    font-size: var(--form-control-font-size);
    font-weight: var(--form-control-font-weight);
    line-height: var(--form-control-line-height);
    text-align: left;
}

.primer-select-option:hover,
.primer-select-option:focus-visible {
    background: var(--control-transparent-bgColor-hover) !important;
    outline: none;
}

.primer-select-check {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
    color: transparent;
}

.primer-select-option[aria-selected="true"] .primer-select-check {
    color: var(--fgColor-default);
}

.primer-select-option-copy {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.task-description-editor {
    overflow: hidden;
    border: var(--borderWidth-default) solid var(--control-borderColor-rest);
    border-radius: var(--borderRadius-medium);
    background: var(--control-bgColor-rest);
}

.task-editor-toolbar {
    display: flex;
    min-height: 42px;
    align-items: center;
    justify-content: space-between;
    border-bottom: var(--borderWidth-default) solid var(--control-borderColor-rest);
    background: var(--control-bgColor-rest);
}

.task-editor-tabs {
    display: flex;
    align-self: stretch;
    align-items: flex-end;
    padding-left: var(--base-size-8);
}

.task-editor-tab {
    min-height: 35px !important;
    margin-bottom: -1px;
    padding: 0 var(--base-size-12) !important;
    border: var(--borderWidth-default) solid transparent !important;
    border-bottom: 0 !important;
    border-radius: var(--borderRadius-medium) var(--borderRadius-medium) 0 0 !important;
    background: transparent !important;
    color: var(--fgColor-muted) !important;
    font-size: 14px;
    font-weight: var(--base-text-weight-normal);
}

.task-editor-tab-active {
    border-color: var(--control-borderColor-rest) !important;
    background: var(--bgColor-default) !important;
    color: var(--fgColor-default) !important;
    font-weight: var(--base-text-weight-medium);
}

.task-editor-actions {
    display: flex;
    gap: var(--base-size-4);
    padding-right: var(--base-size-8);
}

.task-editor-actions button {
    display: grid;
    width: 32px;
    min-height: 32px !important;
    place-items: center;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: var(--fgColor-muted) !important;
}

.task-editor-actions button:hover {
    background: var(--control-transparent-bgColor-hover) !important;
    color: var(--fgColor-default) !important;
}

.task-description-editor textarea {
    display: block;
    width: calc(100% - var(--base-size-16));
    min-height: 180px;
    margin: var(--base-size-8);
    padding: var(--base-size-12);
    border: var(--borderWidth-default) solid var(--control-borderColor-rest);
    border-radius: var(--borderRadius-medium);
    background: var(--bgColor-default);
    outline: none;
    box-shadow: none;
    box-sizing: border-box;
    line-height: 21px;
    resize: vertical;
}

.task-description-editor textarea:focus {
    border-color: var(--borderColor-accent-emphasis);
    box-shadow: inset 0 0 0 1px var(--borderColor-accent-emphasis);
}

.task-description-preview {
    display: block;
    width: 100%;
    min-height: 180px;
    margin: 0;
    padding: var(--base-size-12);
    overflow: auto;
    overflow-wrap: anywhere;
    background: var(--bgColor-default);
    box-sizing: border-box;
    line-height: 21px;
    white-space: pre-wrap;
}

.task-description-editor-preview .task-editor-actions {
    visibility: hidden;
}

.task-description-editor textarea[hidden],
.task-description-preview[hidden] {
    display: none;
}

.task-file-placeholder {
    display: inline-flex;
    min-height: 32px !important;
    align-items: center;
    justify-self: start !important;
    gap: var(--base-size-8);
    padding: 5px 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: var(--fgColor-muted) !important;
    cursor: not-allowed !important;
    font-size: 12px;
    line-height: 20px;
}

.task-file-placeholder:hover {
    color: var(--fgColor-default) !important;
}

.task-file-placeholder:not([aria-disabled="true"]) {
    cursor: pointer !important;
}

.attachment-tiles {
    display: flex;
    width: 100%;
    flex-wrap: wrap;
    gap: var(--base-size-8);
    margin: var(--base-size-4) 0 0;
    padding: 0;
    list-style: none;
}

.attachment-tile {
    display: flex;
    width: 72px;
    flex-direction: column;
    gap: var(--base-size-4);
}

.attachment-tile-preview {
    position: relative;
    display: flex;
    overflow: hidden;
    width: 72px;
    height: 72px;
    align-items: center;
    justify-content: center;
    border: var(--borderWidth-default) solid var(--borderColor-default);
    border-radius: var(--borderRadius-medium);
    background: var(--control-bgColor-rest);
    color: var(--fgColor-muted);
    font-size: 11px;
    font-weight: var(--base-text-weight-semibold);
}

.attachment-tile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.attachment-tile-remove {
    position: absolute;
    top: 2px;
    right: 2px;
    display: flex;
    width: 18px;
    height: 18px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--fgColor-muted);
    cursor: pointer;
    line-height: 1;
}

.attachment-tile-remove:hover {
    color: var(--fgColor-default);
}

.button .auth-spinner {
    margin-right: var(--base-size-8);
}

.task-file-placeholder:disabled,
.task-file-placeholder[aria-disabled="true"] {
    cursor: not-allowed !important;
    opacity: 0.6;
}

.attachment-tile-name {
    overflow: hidden;
    color: var(--fgColor-muted);
    font-size: 11px;
    line-height: 16px;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
}

a.attachment-tile-name:hover {
    color: var(--fgColor-link);
    text-decoration: underline;
}

.attachment-tiles-saved {
    margin-top: var(--base-size-12);
}

a.attachment-tile-preview:hover {
    border-color: var(--borderColor-emphasis);
}

.attachment-tile-badge {
    color: var(--fgColor-muted);
    font-size: 11px;
    font-weight: var(--base-text-weight-semibold);
}

.form-field {
    display: grid;
    gap: 7px;
}

.form-field label {
    font-size: 14px;
    font-weight: 600;
}

.form-field > input {
    width: 100%;
    min-height: 42px;
}

.field-with-action {
    display: flex;
    gap: 8px;
}

.field-with-action input {
    min-width: 0;
    flex: 1;
}

.form-help {
    margin: 0;
    color: var(--fgColor-muted);
    font-size: 12px;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 7px 5px 10px;
    border-radius: 999px;
    background: var(--control-bgColor-rest);
    font-size: 13px;
}

.tag-chip-remove {
    min-height: 24px !important;
    padding: 0 5px !important;
    border: 0 !important;
    background: transparent !important;
}

.tag-chip form {
    display: inline-flex;
    margin: 0;
}

.table-card {
    width: 100%;
    overflow-x: auto;
    border: var(--borderWidth-default) solid var(--borderColor-default);
    border-radius: var(--borderRadius-large);
    background: var(--bgColor-default);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.data-table th,
.data-table td {
    padding: 11px 12px;
    border-bottom: var(--borderWidth-default) solid var(--borderColor-default);
    text-align: left;
    vertical-align: middle;
}

.data-table th {
    background: var(--control-bgColor-rest);
    color: var(--fgColor-muted);
    font-size: 12px;
    font-weight: 650;
    white-space: nowrap;
}

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

.data-table tbody tr:hover {
    background: var(--control-bgColor-rest);
}

.invite-form {
    display: flex;
    max-width: 720px;
    align-items: end;
    gap: 10px;
    margin-bottom: 24px;
}

.invite-form .form-field {
    min-width: 0;
    flex: 1;
    margin: 0;
}

.task-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 256px;
    width: min(100%, 1040px);
    gap: 24px 32px;
    margin: 0 auto;
}

.task-detail-main {
    grid-column: 1 / -1;
    padding-bottom: var(--base-size-16);
    border-bottom: var(--borderWidth-default) solid var(--borderColor-default);
}

.task-conversation {
    grid-column: 1;
    min-width: 0;
}

.task-title-row {
    display: block;
    margin-bottom: var(--base-size-8);
}

.task-title-row[hidden] {
    display: none;
}

.task-title-row h1 {
    display: inline;
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
    font-size: 20px;
    font-weight: var(--base-text-weight-semibold);
    letter-spacing: -0.01em;
    line-height: 32px;
}

.task-title-row > .task-detail-icon-button {
    display: inline-grid;
    margin-inline-start: var(--base-size-8);
    vertical-align: -2px;
}

.task-detail-icon-button {
    display: grid;
    width: 28px;
    height: 28px;
    flex: 0 0 auto;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: var(--borderRadius-medium);
    background: transparent;
    color: var(--fgColor-muted);
    cursor: pointer;
}

.task-detail-icon-button[hidden] {
    display: none;
}

.task-detail-icon-button:hover {
    background: var(--control-transparent-bgColor-hover);
    color: var(--fgColor-default);
}

.task-detail-icon-button:focus-visible {
    outline: var(--focus-outline);
    outline-offset: var(--focus-outline-offset);
}

.task-title-edit-form {
    display: flex;
    width: min(100%, 600px);
    flex-wrap: wrap;
    gap: var(--base-size-8);
    margin-bottom: var(--base-size-12);
}

.task-title-edit-form[hidden] {
    display: none;
}

.task-title-edit-form input[type="text"] {
    min-width: 0;
    min-height: 34px;
    flex: 1;
    padding: 5px 9px;
    border: var(--borderWidth-default) solid var(--control-borderColor-rest);
    border-radius: var(--borderRadius-medium);
    background: var(--bgColor-default);
    color: var(--fgColor-default);
}

.task-title-edit-form input[type="text"]:focus {
    border-color: var(--borderColor-accent-emphasis);
    outline: none;
    box-shadow: inset 0 0 0 1px var(--borderColor-accent-emphasis);
}

.task-title-edit-form .task-title-count {
    width: 100%;
    margin-top: calc(var(--base-size-4) * -1);
}

.task-title-edit-form .button {
    min-height: 34px;
    padding: 5px var(--base-size-12);
    white-space: nowrap;
}

.task-title-edit-form .button-primary:disabled {
    border-color: var(--borderColor-disabled);
    background: var(--control-bgColor-disabled);
    color: var(--control-fgColor-disabled);
    cursor: not-allowed;
}

.task-detail-edit-actions,
.task-parameters-actions {
    display: flex;
    justify-content: flex-end;
    gap: var(--base-size-8);
}

.task-detail-summary {
    display: flex;
    min-height: 32px;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--base-size-8);
    color: var(--fgColor-muted);
    font-size: 13px;
    line-height: 20px;
}

.task-detail-summary-statuses {
    display: inline-flex;
    align-items: center;
    gap: var(--base-size-4);
    transform: translateY(1px);
}

.task-detail-summary strong {
    color: var(--fgColor-default);
    font-weight: var(--base-text-weight-semibold);
}

.text-action {
    flex: 0 0 auto;
    padding: 4px 0;
    border: 0;
    background: transparent;
    color: var(--fgColor-link);
    cursor: pointer;
    font-size: 13px;
}

.text-action:hover {
    text-decoration: underline;
}

.task-parameters-panel {
    grid-column: 2;
    grid-row: 2 / span 3;
    align-self: start;
    min-width: 0;
}

.task-parameter-row {
    display: grid;
    gap: var(--base-size-4);
    padding: var(--base-size-12) 0;
    border-bottom: var(--borderWidth-default) solid var(--borderColor-muted);
}

.task-parameters-editing .task-parameter-row {
    border-bottom: 0;
}

.task-parameters-editing .task-parameter-team-row {
    display: none;
}

.task-parameter-status-row {
    padding-top: 0;
}

.task-parameter-heading {
    display: flex;
    min-height: 28px;
    align-items: center;
    justify-content: space-between;
    gap: var(--base-size-8);
    color: var(--fgColor-default);
    font-size: 13px;
    font-weight: var(--base-text-weight-semibold);
    line-height: 20px;
}

.task-parameter-value {
    min-width: 0;
    overflow: hidden;
    color: var(--fgColor-muted);
    font-size: 13px;
    line-height: 20px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.task-parameter-value[hidden] {
    display: none;
}

.task-parameter-person {
    display: flex;
    gap: var(--base-size-8);
}

.task-parameter-person > span:last-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.task-parameter-team {
    display: block;
    width: fit-content;
    max-width: 100%;
    text-decoration: none;
}

.task-parameter-team:hover {
    color: var(--fgColor-link);
    text-decoration: underline;
}

.task-detail-status,
.task-detail-tag {
    display: inline-flex;
    width: fit-content;
    min-height: 24px;
    align-items: center;
    padding: 2px var(--base-size-8);
    border-radius: var(--borderRadius-full);
    font-size: 12px;
    font-weight: var(--base-text-weight-semibold);
    line-height: 20px;
}

.task-detail-status-open {
    background: var(--bgColor-attention-muted);
    color: var(--fgColor-attention);
}

.task-detail-status-in-progress {
    background: var(--bgColor-accent-muted);
    color: var(--fgColor-accent);
}

.task-detail-status-done {
    background: var(--bgColor-success-muted);
    color: var(--fgColor-success);
}

.task-detail-archive-outcome-resolved {
    background: var(--bgColor-success-muted);
    color: var(--fgColor-success);
}

.task-detail-archive-outcome-deleted {
    background: var(--bgColor-danger-muted);
    color: var(--fgColor-danger);
}

.task-detail-status-not-relevant,
.task-detail-status-archive,
.task-detail-status-archived-original,
.task-detail-tag {
    background: var(--control-bgColor-rest);
    color: var(--fgColor-muted);
}

.task-parameter-person {
    display: flex;
    align-items: center;
    gap: var(--base-size-8);
}

.task-parameter-avatar {
    display: grid;
    width: 22px;
    height: 22px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 50%;
    background: var(--bgColor-emphasis);
    color: var(--fgColor-onEmphasis);
    font-size: 10px;
    font-weight: var(--base-text-weight-semibold);
}

.task-parameter-row form {
    min-width: 0;
    margin: 0;
}

.task-parameter-select,
.task-parameter-select .primer-select-trigger,
.task-edit-dialog-body .primer-select,
.task-edit-dialog-body .primer-select-trigger {
    min-width: 0;
}

.task-parameter-select .primer-select-value,
.task-edit-dialog-body .primer-select-value {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.task-parameter-row form[hidden],
.task-parameters-actions[hidden] {
    display: none;
}

.task-parameter-row select,
.task-parameter-row input[type="date"] {
    width: 100%;
    min-height: 36px;
    padding: 6px 9px;
    border: var(--borderWidth-default) solid var(--control-borderColor-rest);
    border-radius: var(--borderRadius-medium);
    background: var(--bgColor-default);
    color: var(--fgColor-default);
    font: inherit;
    font-size: var(--form-control-font-size);
    font-weight: var(--form-control-font-weight);
}

.task-parameter-row input[type="date"] {
    background: var(--control-bgColor-rest);
    transition: background-color 80ms ease-out, border-color 80ms ease-out, box-shadow 80ms ease-out;
}

.task-parameter-row input[type="date"]:hover {
    background: var(--control-bgColor-hover);
}

.task-parameter-row select:focus-visible,
.task-parameter-row input[type="date"]:focus-visible {
    border-color: var(--borderColor-accent-emphasis);
    outline: none;
    box-shadow: inset 0 0 0 1px var(--borderColor-accent-emphasis);
}

.task-parameter-row select:disabled,
.task-parameter-row input[type="date"]:disabled {
    border-color: var(--control-borderColor-disabled);
    background: var(--control-bgColor-disabled);
    color: var(--control-fgColor-disabled);
    cursor: not-allowed;
    opacity: 1;
}

.task-parameters-actions {
    padding-top: var(--base-size-16);
}

.task-parameters-actions .button-primary:disabled {
    border-color: var(--button-primary-borderColor-disabled);
    background: var(--button-primary-bgColor-disabled);
    color: var(--button-primary-fgColor-disabled);
    cursor: not-allowed;
}

.task-parameters-state-action {
    margin-top: var(--base-size-16);
}

.task-parameter-statuses {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--base-size-4);
}

.task-parameters-state-link {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--fgColor-muted);
    cursor: pointer;
    font-size: 13px;
    line-height: 20px;
}

.task-parameters-state-link:hover {
    color: var(--fgColor-link);
    text-decoration: underline;
}

.task-parameters-state-link-danger:hover {
    color: var(--fgColor-danger);
}

@media (max-width: 760px) {
    .task-detail-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: var(--base-size-24);
    }

    .task-detail-main,
    .task-conversation,
    .task-parameters-panel {
        grid-column: 1;
    }

    .task-parameters-panel {
        grid-row: auto;
    }

    .task-title-row {
        display: flex;
        align-items: center;
        gap: var(--base-size-8);
        flex-wrap: nowrap;
    }

    .task-title-row h1 {
        display: block;
        flex: 1;
        overflow: hidden;
        overflow-wrap: normal;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

.task-conversation {
    --task-comment-text-size: 14px;

    position: relative;
    display: grid;
    gap: var(--base-size-24);
    margin: 0;
    padding: 0;
}

.task-conversation-thread {
    position: relative;
    display: grid;
    gap: 36px;
}

.comment-item {
    position: relative;
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 12px;
    scroll-margin-top: calc(var(--base-size-64) + var(--base-size-16));
}

.comment-item:not(:last-child)::after {
    position: absolute;
    top: calc(100% - var(--borderWidth-default));
    left: 66px;
    width: var(--borderWidth-thick);
    height: calc(36px + var(--borderWidth-thick));
    background: var(--borderColor-default);
    content: "";
}

.comment-avatar {
    z-index: 1;
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border: 3px solid var(--bgColor-default);
    border-radius: 50%;
    background: var(--tooltip-bgColor);
    color: var(--fgColor-onEmphasis);
    font-size: 13px;
    font-weight: 700;
}

.comment-card {
    min-width: 0;
    border: var(--borderWidth-default) solid var(--borderColor-default);
    border-radius: var(--borderRadius-medium);
    background: var(--bgColor-default);
}

.comment-item > [data-description-attachments],
.comment-item > [data-comment-attachments] {
    grid-column: 2;
    min-width: 0;
}

.comment-header {
    display: flex;
    min-height: 38px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 10px 0 14px;
    border-bottom: var(--borderWidth-default) solid var(--borderColor-default);
    border-radius: var(--borderRadius-medium) var(--borderRadius-medium) 0 0;
    background: var(--bgColor-muted);
    color: var(--fgColor-muted);
    font-size: var(--task-comment-text-size);
    line-height: 20px;
}

.task-description-status-open .comment-card {
    border-color: var(--borderColor-attention-muted);
}

.task-description-status-open .comment-header {
    background: var(--bgColor-attention-muted);
}

.task-description-status-in-progress .comment-card {
    border-color: var(--borderColor-accent-muted);
}

.task-description-status-in-progress .comment-header {
    background: var(--bgColor-accent-muted);
}

.task-description-status-done .comment-card {
    border-color: var(--borderColor-success-muted);
}

.task-description-status-done .comment-header {
    background: var(--bgColor-success-muted);
}

.task-description-status-not-relevant .comment-card {
    border-color: var(--borderColor-muted);
}

.task-description-status-not-relevant .comment-header {
    background: var(--bgColor-muted);
}

.comment-header strong {
    color: var(--fgColor-default);
}

.comment-header > div {
    min-width: 0;
    overflow-wrap: anywhere;
}

.comment-header-copy {
    padding: 0;
    font-size: var(--task-comment-text-size);
    line-height: 20px;
    text-indent: 0;
}

.comment-header-meta,
.comment-edited {
    margin-left: 0;
    color: var(--fgColor-muted);
    font-size: var(--task-comment-text-size);
    font-weight: var(--base-text-weight-normal);
    line-height: 20px;
}

.comment-edited {
    font-style: italic;
}

.comment-body {
    min-height: 72px;
    padding: 14px 16px;
    color: var(--fgColor-default);
    font-size: var(--task-comment-text-size);
    line-height: 21px;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

.comment-body blockquote,
.task-description-preview blockquote {
    margin: 0;
    padding-left: var(--base-size-12);
    border-left: 3px solid var(--borderColor-muted);
    color: var(--fgColor-muted);
}

.task-description-item .comment-body {
    text-align: left;
}

.comment-header-action {
    display: grid;
    width: 28px;
    height: 28px;
    flex: 0 0 auto;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: var(--borderRadius-medium);
    background: transparent;
    color: var(--fgColor-muted);
    cursor: pointer;
}

.comment-header-action:hover {
    background: var(--control-transparent-bgColor-hover);
    color: var(--fgColor-default);
}

.comment-menu {
    position: relative;
}

.comment-menu summary {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: var(--borderRadius-medium);
    cursor: pointer;
    list-style: none;
}

.comment-menu summary:hover {
    background: var(--control-transparent-bgColor-hover);
}

.comment-menu-panel {
    position: absolute;
    z-index: 20;
    top: calc(100% + 6px);
    right: 0;
    width: 170px;
    padding: 6px;
    border: 0;
    border-radius: var(--borderRadius-large);
    background: var(--overlay-bgColor);
    color: var(--fgColor-default);
    font-size: var(--popover-font-size);
    font-weight: var(--popover-font-weight);
    line-height: var(--popover-line-height);
    box-shadow: var(--shadow-floating-small);
}

.comment-menu-panel button {
    width: 100%;
    padding: 8px 9px;
    border: 0;
    border-radius: var(--borderRadius-medium);
    background: transparent;
    cursor: pointer;
    text-align: left;
}

.comment-menu-panel button:hover {
    background: var(--control-bgColor-rest);
}

.comment-menu-panel .comment-delete-action {
    color: var(--fgColor-danger);
}

.comment-edit-form {
    display: grid;
    gap: var(--base-size-8);
    padding: var(--base-size-8);
}

.comment-edit-form[hidden] {
    display: none;
}

.comment-create-form {
    position: relative;
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 12px;
    padding-top: var(--base-size-4);
}

.comment-create-content {
    display: grid;
    gap: var(--base-size-8);
}

.comment-create-content label {
    color: var(--fgColor-default);
    font-size: 16px;
    font-weight: var(--base-text-weight-semibold);
    line-height: 24px;
}

.task-comment-editor textarea {
    min-height: 130px;
    color: var(--fgColor-default);
    font-size: var(--task-comment-text-size);
}

.task-comment-editor textarea::placeholder {
    color: var(--fgColor-muted);
    opacity: 1;
}

.task-comment-editor .task-description-preview {
    font-size: var(--task-comment-text-size);
}

.comment-edit-form .task-file-placeholder,
.comment-create-content .task-file-placeholder {
    margin-top: calc(-1 * var(--base-size-4));
}

.comment-edit-actions .button-primary:disabled,
.comment-create-actions .button-primary:disabled {
    border-color: var(--button-primary-borderColor-disabled);
    background: var(--button-primary-bgColor-disabled);
    color: var(--button-primary-fgColor-disabled);
    cursor: not-allowed;
}

.task-parameter-row .primer-select-panel {
    right: 0;
    left: auto;
    width: 256px;
}

.task-parameter-row .primer-select-trigger {
    color: var(--fgColor-default);
    font-size: var(--form-control-font-size);
    font-weight: var(--form-control-value-font-weight);
}

.task-parameter-row .primer-select-option {
    color: var(--fgColor-default);
    font-size: var(--form-control-font-size);
    font-weight: var(--form-control-font-weight);
}

.task-parameter-row .primer-select-options {
    max-height: 208px;
}

.task-parameter-row .primer-select-trigger:disabled {
    border-color: var(--control-borderColor-disabled) !important;
    background: var(--control-bgColor-disabled) !important;
    color: var(--control-fgColor-disabled);
    cursor: not-allowed;
    box-shadow: none;
}

.comment-create-actions,
.comment-edit-actions {
    display: flex;
    justify-content: flex-end;
    gap: var(--base-size-8);
}

.auth-page {
    display: grid;
    flex: 1 0 auto;
    min-height: 0;
    align-items: start;
    justify-items: center;
    padding: max(var(--base-size-32), calc(50vh - 240px)) var(--base-size-16) var(--base-size-32);
    background: var(--bgColor-default);
}

.error-page {
    display: grid;
    min-height: 100vh;
    grid-template-rows: auto 1fr;
    justify-items: center;
    padding: var(--base-size-32) var(--base-size-16);
    background: var(--bgColor-default);
}

.error-page-logo {
    color: var(--fgColor-default);
    font-family: var(--fontStack-sansSerifDisplay);
    font-size: 20px;
    font-weight: var(--base-text-weight-semibold);
    letter-spacing: -0.04em;
    line-height: 28px;
    text-decoration: none;
}

.error-page-logo:focus-visible,
.error-page-action:focus-visible {
    outline: var(--focus-outline);
    outline-offset: var(--base-size-2);
}

.error-page-content {
    display: flex;
    width: min(100%, 520px);
    align-self: center;
    align-items: center;
    flex-direction: column;
    padding-bottom: 60px;
    text-align: center;
}

.error-page-content h1 {
    margin: 0;
    color: var(--fgColor-default);
    font-size: clamp(21px, 4vw, 29px);
    font-weight: var(--base-text-weight-semibold);
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.error-page-content p {
    max-width: 44ch;
    margin: var(--base-size-12) 0 0;
    color: var(--fgColor-muted);
    font-size: 14px;
    line-height: 21px;
}

.error-page-action {
    margin-top: var(--base-size-24);
}

.invitation-page {
    display: flex;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
}

.invitation-panel {
    width: min(100%, 440px);
    padding: 26px;
    border: var(--borderWidth-default) solid var(--borderColor-default);
    border-radius: var(--borderRadius-large);
    background: var(--bgColor-default);
}

.invitation-panel h1 {
    margin: 0;
    font-size: 24px;
}

.invitation-actions {
    display: flex;
    gap: 10px;
    margin-top: 22px;
    flex-wrap: wrap;
}

.auth-shell {
    width: min(100%, 360px);
}

.auth-logo {
    position: relative;
    top: calc(var(--base-size-8) * -1);
    display: flex;
    width: 100%;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: var(--base-size-32);
}

.auth-title {
    margin: var(--base-size-16) 0 var(--base-size-24);
    font-size: 20px;
    font-weight: var(--base-text-weight-semibold);
    letter-spacing: -0.02em;
    line-height: 30px;
    text-align: left;
}

.auth-tagline {
    max-width: 36ch;
    margin: 4px auto 24px;
    color: var(--fgColor-muted);
    font-size: 14px;
    text-align: center;
}

.auth-panel {
    padding: 0;
    border: 0;
    background: transparent;
}

.auth-panel h1 {
    margin: 0 0 20px;
    font-size: 24px;
    letter-spacing: -0.02em;
    line-height: 1.25;
    text-align: left;
}

.auth-panel > p {
    color: var(--fgColor-muted);
    font-size: 14px;
}

.auth-description {
    margin: calc(var(--base-size-16) * -1) 0 var(--base-size-24);
    color: var(--fgColor-muted);
    font-size: var(--text-body-size-medium);
    font-weight: var(--base-text-weight-normal);
    line-height: 21px;
    text-align: left;
}

.auth-description--standalone {
    margin-top: var(--base-size-24);
}

.auth-field {
    display: grid;
    gap: var(--base-size-8);
    margin-bottom: var(--base-size-16);
}

.auth-field label,
.auth-panel form > label {
    color: var(--fgColor-default);
    font-size: var(--text-body-size-medium);
    font-weight: var(--base-text-weight-semibold);
}

.auth-label-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--base-size-16);
}

.auth-label-link {
    flex: 0 0 auto;
    font-size: var(--text-body-size-medium);
    text-decoration: none;
}

.auth-label-link:hover {
    text-decoration: underline;
}

.auth-field input {
    width: 100%;
    min-height: var(--base-size-40);
    padding: var(--base-size-8) var(--base-size-12);
    border: var(--borderWidth-default) solid var(--control-borderColor-rest);
    border-radius: var(--borderRadius-medium);
    background: var(--bgColor-default);
    color: var(--fgColor-default);
    font-size: var(--text-body-size-medium);
    line-height: var(--base-text-lineHeight-normal);
}

.auth-field input:focus {
    border-color: var(--borderColor-accent-emphasis);
    outline: none;
    box-shadow: inset 0 0 0 1px var(--borderColor-accent-emphasis);
}

.auth-checkbox {
    display: inline-flex;
    align-items: center;
    gap: var(--base-size-8);
    cursor: pointer;
}

.auth-checkbox input {
    width: var(--base-size-16);
    height: var(--base-size-16);
    margin: 0;
    accent-color: var(--bgColor-accent-emphasis);
}

.auth-submit {
    display: inline-flex;
    width: 100%;
    min-height: var(--base-size-40);
    align-items: center;
    justify-content: center;
    gap: var(--base-size-8);
    margin-top: var(--base-size-16);
    padding: var(--base-size-8) var(--base-size-16);
    border: var(--borderWidth-default) solid var(--button-primary-borderColor-rest);
    border-radius: var(--borderRadius-medium);
    background: var(--button-primary-bgColor-rest);
    color: var(--fgColor-onEmphasis);
    cursor: pointer;
    font-size: var(--text-body-size-medium);
    font-weight: var(--base-text-weight-semibold);
    text-decoration: none;
    transition:
        background-color 80ms ease-out,
        border-color 80ms ease-out,
        color 80ms ease-out;
}

.auth-submit:hover:not(:disabled) {
    border-color: var(--button-primary-borderColor-hover);
    background: var(--button-primary-bgColor-hover);
}

.auth-submit:active:not(:disabled) {
    border-color: var(--button-primary-borderColor-active);
    background: var(--button-primary-bgColor-active);
}

.auth-submit:disabled {
    border-color: var(--button-primary-borderColor-disabled);
    background: var(--button-primary-bgColor-disabled);
    color: var(--button-primary-fgColor-disabled);
    cursor: not-allowed;
}

.auth-submit-secondary {
    border-color: var(--button-default-borderColor-rest);
    background: var(--button-default-bgColor-rest);
    color: var(--button-default-fgColor-rest);
}

.auth-submit-secondary:hover:not(:disabled) {
    border-color: var(--button-default-borderColor-hover);
    background: var(--button-default-bgColor-hover);
}

.auth-submit-secondary:active:not(:disabled) {
    border-color: var(--button-default-borderColor-active);
    background: var(--button-default-bgColor-active);
}

.auth-submit-secondary:disabled {
    border-color: var(--button-default-borderColor-disabled);
    background: var(--button-default-bgColor-disabled);
    color: var(--button-default-fgColor-disabled);
}

.auth-switch {
    margin: var(--base-size-24) 0 0;
    color: var(--fgColor-muted);
    font-size: var(--text-body-size-medium);
    font-weight: var(--base-text-weight-normal);
    line-height: 21px;
    text-align: center;
}

.auth-switch a {
    text-decoration: none;
}

.auth-switch a:hover {
    text-decoration: underline;
}

.auth-invite {
    margin: calc(var(--base-size-16) * -1) 0 var(--base-size-24);
    color: var(--fgColor-muted);
    font-size: var(--text-body-size-medium);
    font-weight: var(--base-text-weight-normal);
    line-height: 21px;
    text-align: left;
}

.auth-invite p {
    margin: 0;
}

.auth-invite p + p {
    margin-top: var(--base-size-8);
}

.auth-description + .auth-submit {
    margin-top: 0;
}

.auth-back-link {
    display: inline-block;
    margin-top: 22px;
    font-size: 14px;
    text-decoration: none;
}

.auth-spinner {
    width: 16px;
    height: 16px;
    border: var(--borderWidth-thick) solid var(--borderColor-translucent);
    border-top-color: var(--fgColor-onEmphasis);
    border-radius: 50%;
    animation: auth-spinner-rotate 0.7s linear infinite;
}

.button-secondary .auth-spinner {
    border-color: var(--borderColor-default);
    border-top-color: var(--fgColor-muted);
}

.auth-submit-secondary .auth-spinner {
    border-color: var(--borderColor-default);
    border-top-color: var(--fgColor-muted);
}

.button-danger .auth-spinner {
    border-color: var(--borderColor-danger-muted);
    border-top-color: var(--fgColor-danger);
}

@keyframes auth-spinner-rotate {
    to {
        transform: rotate(360deg);
    }
}

.flash-stack {
    position: fixed;
    z-index: 1000;
    top: 20px;
    right: 20px;
    display: grid;
    width: min(400px, calc(100vw - 32px));
    gap: 10px;
    pointer-events: none;
}

.app-flash-stack {
    position: static;
    display: grid;
    width: 100%;
    gap: 0;
    pointer-events: auto;
}

.app-flash-stack:empty {
    display: none;
}

.app-flash-stack .flash-message {
    position: relative;
    z-index: 1;
    min-height: 76px;
    align-items: center;
    margin-top: calc(-1 * var(--borderWidth-default));
    padding-right: max(var(--base-size-24), calc((100vw - var(--breakpoint-xlarge)) / 2 + var(--base-size-24)));
    padding-left: max(var(--base-size-24), calc((100vw - var(--breakpoint-xlarge)) / 2 + var(--base-size-24)));
    border-width: 0 0 var(--borderWidth-default);
    border-radius: 0;
    box-shadow: none;
}

.app-flash-stack .flash-message-success {
    border-top-width: var(--borderWidth-default);
    background: var(--bgColor-success-muted);
}

.app-flash-stack .flash-message-text {
    padding-top: 0;
}

.app-flash-stack .flash-message-error {
    background: var(--bgColor-danger-muted);
}

.app-flash-stack .flash-message-warning {
    background: var(--bgColor-muted);
}

.flash-message {
    display: flex;
    min-height: 48px;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 12px 12px 14px;
    border: var(--borderWidth-default) solid var(--borderColor-default);
    border-radius: var(--borderRadius-large);
    background: var(--bgColor-default);
    box-shadow: var(--shadow-floating-small);
    color: var(--fgColor-default);
    font-size: 14px;
    pointer-events: auto;
}

.flash-message-success {
    border-color: var(--borderColor-success-muted);
}

.flash-message-error {
    border-color: var(--borderColor-danger-muted);
}

.flash-message-warning {
    border-color: var(--borderColor-attention-muted);
}

.flash-message-text {
    flex: 1;
    padding-top: 2px;
}

.flash-close {
    display: grid;
    width: 30px;
    height: 30px;
    flex: 0 0 auto;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: var(--borderRadius-medium);
    background: transparent;
    color: var(--fgColor-muted);
    cursor: pointer;
}

.flash-close:hover {
    background: transparent;
    color: var(--fgColor-disabled);
}

.flash-close svg {
    display: block;
}

.ui-tooltip {
    position: fixed;
    z-index: 1200;
    max-width: min(280px, calc(100vw - 24px));
    padding: 5px 8px;
    border-radius: var(--borderRadius-medium);
    background: var(--tooltip-bgColor);
    color: var(--tooltip-fgColor);
    font-size: var(--text-body-size-small);
    font-weight: var(--base-text-weight-normal);
    line-height: 18px;
    pointer-events: none;
}

.ui-tooltip[hidden] {
    display: none;
}

@media (max-width: 760px) {
    .auth-page {
        padding: 20px 16px 32px;
    }

    .auth-submit,
    .auth-field input {
        min-height: 44px;
    }

    .flash-stack {
        top: 12px;
        right: 16px;
        left: 16px;
        width: auto;
    }

    .page-header {
        align-items: stretch;
        flex-direction: column;
        gap: 16px;
    }

    .page-header > .button {
        align-self: flex-start;
    }

    .filter-bar-wide {
        flex-wrap: nowrap;
        overflow-x: auto;
        white-space: nowrap;
    }

    .local-tabs {
        overflow-x: auto;
    }

    .task-toolbar {
        flex-wrap: wrap;
    }

    .task-count {
        width: 100%;
    }

    .task-create-action {
        margin-left: 0;
    }

    .toolbar-popover {
        position: static;
    }

    .toolbar-popover-panel {
        right: 16px;
        left: 16px;
        width: auto;
    }

    .task-title-row {
        align-items: stretch;
        flex-direction: column;
    }

    .text-action {
        align-self: flex-start;
    }

    .comment-item {
        grid-template-columns: 30px minmax(0, 1fr);
        gap: 8px;
    }

    .comment-avatar {
        width: 30px;
        height: 30px;
    }

    .comment-item:not(:last-child)::after {
        left: 52px;
    }

    .comment-header {
        align-items: flex-start;
    }

    .comment-header-meta {
        display: block;
        margin: 2px 0 0;
    }

    .comment-header-copy {
        display: grid;
        justify-items: start;
    }

    .comment-create-form {
        width: 100%;
        margin-left: 0;
    }

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

    .form-card {
        padding: 20px 16px;
    }

    .field-with-action,
    .task-title-edit-form {
        align-items: stretch;
        flex-direction: column;
    }

    .task-create-field,
    .task-team-field,
    .task-assignee-field,
    .task-deadline-field,
    .task-tag-field {
        width: 100%;
    }

    .task-create-field > input:not([type="hidden"]),
    .primer-select-trigger {
        min-height: 44px !important;
    }

    .primer-select-panel {
        width: min(320px, calc(100vw - var(--base-size-32)));
    }

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

    .task-editor-actions {
        padding: var(--base-size-4) var(--base-size-8);
        border-top: var(--borderWidth-default) solid var(--control-borderColor-rest);
    }

    .invite-form {
        align-items: stretch;
        flex-direction: column;
    }

    .profile-action-note {
        display: block;
    }

    .app-logo {
        min-height: 44px;
        font-size: 14px;
    }

    .app-header-inner {
        min-height: 56px;
        gap: var(--base-size-4);
        padding: 0 var(--base-size-12);
    }

    .app-nav {
        gap: 0;
    }

    .app-nav-link {
        flex: 0 0 auto;
        padding-right: var(--base-size-8);
        padding-left: var(--base-size-8);
        font-size: 13px;
    }

    .button,
    .profile-trigger,
    .profile-action {
        min-height: 44px;
    }

    .profile-trigger {
        width: 44px;
        height: 44px;
    }

    .app-content {
        padding: 20px 16px;
    }

    .site-footer {
        padding-right: var(--base-size-16);
        padding-left: var(--base-size-16);
    }

    .team-tabs {
        overflow-x: auto;
    }

    .toolbar-popover .toolbar-icon-button,
    .comment-menu summary {
        width: 44px;
        height: 44px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .profile-menu {
        animation: none;
    }

    .auth-spinner {
        animation: none;
        border-color: var(--borderColor-translucent);
    }
}
