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

html {
    height: 100%;
    overflow: hidden;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    margin: 0;
    width: 100%;
    max-width: 100%;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    font-family: Manrope, "Segoe UI", sans-serif;
    font-size: 17px;
    font-weight: 600;
    color: #121417;
    background: #f4f7fd;
    line-height: 1.55;
    -webkit-tap-highlight-color: transparent;
}

img {
    display: block;
    max-width: 100%;
}

button,
input,
a {
    touch-action: manipulation;
}

button,
input {
    font: inherit;
}

.auth-body {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    min-height: 0;
    padding:
        max(16px, env(safe-area-inset-top))
        max(16px, env(safe-area-inset-right))
        max(16px, env(safe-area-inset-bottom))
        max(16px, env(safe-area-inset-left));
    overflow: hidden;
    background:
        radial-gradient(680px 420px at 0% 0%, rgba(46, 200, 246, 0.24), transparent 68%),
        radial-gradient(620px 400px at 100% 100%, rgba(123, 108, 255, 0.2), transparent 70%),
        #f4f7fd;
}

.auth-card {
    display: flex;
    flex-direction: column;
    width: min(100%, 480px);
    min-width: 0;
    min-height: 0;
    max-height: 100%;
    overflow: auto;
    overscroll-behavior: contain;
    background: #fff;
    border: 1px solid rgba(47, 58, 120, 0.08);
    border-radius: 28px;
    box-shadow: 0 24px 60px rgba(47, 58, 120, 0.08);
    padding: 44px 44px 36px;
    scrollbar-width: thin;
}

.auth-fit {
    width: 100%;
    margin-block: auto;
}

.brand {
    display: flex;
    text-decoration: none;
}

.auth-card .brand {
    justify-content: center;
    margin-bottom: 28px;
}

.brand img {
    height: 48px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

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

.auth-heading h1,
.stage-title h1,
.section-head h2,
.profile-id h2,
.dropzone strong {
    font-family: Manrope, "Segoe UI", sans-serif;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.auth-heading h1,
.stage-title h1,
.profile-id h2 {
    margin: 0;
    line-height: 1.15;
    overflow-wrap: break-word;
}

.auth-heading h1 {
    font-size: 34px;
}

.auth-heading p,
.lede,
.profile-id p,
.switch {
    color: #5c6b82;
}

.auth-heading p,
.lede,
.switch,
.banner {
    margin: 0;
}

.auth-heading p {
    margin-top: 16px;
    font-size: 17px;
}

.banner {
    margin-bottom: 18px;
    padding: 14px 18px;
    border-radius: 14px;
    font-size: 17px;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.banner-error {
    background: #fef3f2;
    color: #b42318;
}

.banner-success {
    background: #ecfdf3;
    color: #067647;
}

.form {
    display: grid;
    gap: 18px;
}

.field {
    display: grid;
    gap: 12px;
}

.field span {
    font-size: 17px;
    font-weight: 700;
}

.field input {
    width: 100%;
    height: 52px;
    border-radius: 14px;
    border: 1px solid #d5ddef;
    background: #fff;
    color: inherit;
    font-size: 17px;
    padding: 0 18px;
}

.field input::placeholder {
    color: #8b97ad;
}

.field input:focus {
    outline: 3px solid rgba(59, 130, 246, 0.24);
    border-color: #3b82f6;
}

.button {
    height: 52px;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, #2ec8f6 0%, #3b82f6 55%, #7b6cff 100%);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

a.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    padding: 0 16px;
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
}

.button:hover {
    filter: brightness(1.05);
}

.button:active {
    filter: brightness(0.97);
}

.button-link {
    display: grid;
    place-items: center;
    width: 100%;
    height: 52px;
    margin-top: 16px;
    border-radius: 14px;
    border: 1px solid #d5ddef;
    background: #fff;
    color: #121417;
    font-weight: 700;
    text-decoration: none;
}

.button-link:hover {
    background: #f4f7fd;
}

.button:focus-visible,
.button-link:focus-visible,
.button-ghost:focus-visible,
.switch a:focus-visible {
    outline: 3px solid rgba(99, 102, 241, 0.42);
    outline-offset: 2px;
}

.switch {
    margin-top: 24px;
    text-align: center;
    font-size: 17px;
}

.switch a {
    color: #3a4ad4;
    font-weight: 700;
    text-decoration: none;
}

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

.shell {
    display: flex;
    flex-direction: column;
    min-height: 0;
    background:
        radial-gradient(680px 380px at 0% 0%, rgba(46, 200, 246, 0.18), transparent 68%),
        radial-gradient(620px 360px at 100% 100%, rgba(123, 108, 255, 0.16), transparent 70%),
        #f4f7fd;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex: none;
    min-height: 76px;
    padding:
        max(14px, env(safe-area-inset-top))
        max(28px, env(safe-area-inset-right))
        14px
        max(28px, env(safe-area-inset-left));
    background: #fff;
    border-bottom: 1px solid #e3e8f4;
    z-index: 3;
}

.topbar .brand {
    min-width: 0;
}

.topbar .brand img {
    height: 44px;
    width: auto;
    max-width: min(210px, 52vw);
}

.topbar-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    min-width: 0;
}

.topbar form {
    flex: none;
}

.who {
    min-width: 0;
    max-width: 34vw;
    overflow: hidden;
    color: #5c6b82;
    font-size: 17px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.button-ghost {
    width: auto;
    height: 48px;
    padding: 0 20px;
    background: #fff;
    color: #121417;
    border: 1px solid #d5ddef;
    white-space: nowrap;
}

.button-ghost:hover {
    background: #f4f7fd;
    filter: none;
}

.stage {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    gap: 22px;
    width: 100%;
    min-width: 0;
    min-height: 0;
    padding:
        28px
        max(32px, env(safe-area-inset-right))
        max(28px, env(safe-area-inset-bottom))
        max(32px, env(safe-area-inset-left));
    overflow: hidden;
}

.stage > .banner {
    flex: none;
    margin: 0;
}

.stage-head {
    flex: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}

.stage-head.inline {
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
}

.stage-head.inline .lede {
    text-align: right;
}

.title-row,
.title-actions {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    min-width: 0;
}

.title-actions {
    justify-content: space-between;
}

.title-actions .button {
    flex: none;
    margin-top: 2px;
}

.stage-title h1.wrap {
    display: block;
    overflow: visible;
    -webkit-line-clamp: unset;
}

.stage-title {
    flex: 1 1 auto;
    min-width: 0;
}

.stage-title h1 {
    font-size: clamp(30px, 2.6vw, 42px);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.lede {
    margin-top: 8px;
    font-size: 17px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lede-full {
    overflow: visible;
    text-overflow: unset;
    white-space: normal;
}

.stage-body {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
}

.cols-2,
.cols-3,
.solo {
    display: grid;
    gap: 18px;
    grid-template-rows: minmax(0, 1fr);
}

.cols-2 {
    grid-template-columns: minmax(220px, 0.86fr) minmax(0, 1.14fr);
}

.cols-3 {
    grid-template-columns: minmax(280px, 380px) minmax(0, 1fr) minmax(0, 1fr);
}

@media (min-width: 1024px), (max-width: 640px) {
    .cols-3 > :first-child .details div {
        grid-template-columns: minmax(0, 1fr);
        gap: 1px;
    }
}

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

.panel {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    max-height: 100%;
    background: #fff;
    border: 1px solid #e3e8f4;
    border-radius: 22px;
    padding: 28px 32px 26px;
    box-shadow: 0 12px 32px rgba(47, 58, 120, 0.06);
    overflow: hidden;
}

.cols-2 > :first-child,
.solo .panel {
    align-self: start;
    height: auto;
    overflow: auto;
}

.cols-2 > :first-child .details,
.solo .details {
    flex: none;
    overflow: visible;
}

.profile-id {
    display: flex;
    align-items: center;
    gap: 18px;
    flex: none;
    min-width: 0;
    padding-bottom: 12px;
    margin-bottom: 2px;
    border-bottom: 1px solid #eef1f8;
}

.profile-id > div {
    min-width: 0;
}

.avatar {
    width: 48px;
    height: 48px;
    flex: none;
    display: grid;
    place-items: center;
    border-radius: 16px;
    color: #fff;
    font-weight: 800;
    letter-spacing: 0.02em;
    background: linear-gradient(160deg, #2ec8f6, #3b82f6 55%, #7b6cff);
}

.title-row .avatar {
    width: 44px;
    height: 52px;
    border-radius: 14px;
}

.profile-id h2 {
    font-size: 18px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.profile-id p {
    margin: 2px 0 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.details {
    flex: 1 1 auto;
    min-height: 0;
    margin: 0;
    overflow: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #d0d5dd transparent;
}

.details div {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 2px 16px;
    align-items: baseline;
    min-width: 0;
    padding: 9px 0;
    border-bottom: 1px solid #eef1f8;
}

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

.details dt {
    font-size: 15px;
    font-weight: 700;
    color: #5c6b82;
    white-space: nowrap;
}

.details dd {
    margin: 0;
    min-width: 0;
    font-size: 17px;
    font-weight: 700;
    overflow-wrap: break-word;
}

.details-split {
    align-content: start;
}

.back {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    color: #3a4ad4;
    font-size: 17px;
    font-weight: 700;
    text-decoration: none;
}

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

.back:focus-visible {
    outline: 3px solid rgba(99, 102, 241, 0.42);
    outline-offset: 2px;
    border-radius: 6px;
}

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex: none;
    min-width: 0;
    padding-bottom: 16px;
    border-bottom: 1px solid #eef1f8;
}

.section-head h2 {
    margin: 0;
    min-width: 0;
    font-size: 22px;
    letter-spacing: -0.02em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.count {
    min-width: 26px;
    height: 26px;
    padding: 0 8px;
    display: inline-grid;
    place-items: center;
    flex: none;
    border-radius: 999px;
    background: #f4f7fd;
    color: #344054;
    font-size: 15px;
    font-weight: 800;
}

.task-list {
    list-style: none;
    flex: 1 1 auto;
    min-height: 0;
    margin: 0;
    padding: 0;
    overflow: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #d0d5dd transparent;
}

.task-list li {
    display: flex;
    align-items: center;
    min-width: 0;
    min-height: 72px;
    padding: 10px 0;
    border-bottom: 1px solid #eef1f8;
}

.task-list li:last-child {
    border-bottom: 0;
}

.record-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: calc(100% + 8px);
    min-width: 0;
    min-height: 64px;
    margin-inline: -12px;
    padding: 16px 16px;
    border-radius: 14px;
    color: inherit;
    text-decoration: none;
}

.record-link:hover,
.record-link:active {
    background: #eef2ff;
}

.record-link:hover .task-name,
.record-link:active .task-name {
    color: #3a4ad4;
}

.record-link:focus-visible {
    outline: 3px solid rgba(99, 102, 241, 0.42);
    outline-offset: 2px;
    border-radius: 8px;
}

.record-copy {
    display: grid;
    flex: 1 1 auto;
    gap: 1px;
    min-width: 0;
}

.record-copy > * {
    min-width: 0;
}

.record-meta {
    color: #5c6b82;
    font-size: 15px;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.record-guidance {
    color: #52607a;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.45;
    white-space: normal;
}

.record-link:has(.record-guidance) {
    align-items: flex-start;
}

.record-link:has(.record-guidance) .task-name {
    white-space: normal;
}

.task-name {
    min-width: 0;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.record-link > .task-name {
    flex: 1 1 auto;
}

.task-type {
    flex: none;
    max-width: 46%;
    width: fit-content;
    padding: 4px 10px;
    border-radius: 999px;
    background: #eef2ff;
    color: #3a4ad4;
    font-size: 16px;
    font-weight: 800;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.title-row .task-type {
    margin-left: auto;
}

.task-type-done,
.count-done {
    background: #ecfdf3;
    color: #067647;
}

.count-text {
    width: auto;
    height: auto;
    min-height: 26px;
    padding: 4px 10px;
}

.record {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    min-width: 0;
    padding: 16px 4px;
}

.record .task-name,
.record .record-meta {
    overflow: visible;
    text-overflow: unset;
    white-space: normal;
}

.choice-go {
    flex: none;
    margin-top: 2px;
    color: #8b97ad;
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
}

.task-list li:has(.choice) {
    min-height: 64px;
}

.preview .record-guidance {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.stack {
    display: grid;
    gap: 14px;
    align-content: start;
}

.instruction {
    margin: 0;
    color: #344054;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.5;
}

.stack .button {
    width: fit-content;
    min-width: 160px;
}

.detail-link {
    color: #3a4ad4;
    font-weight: 700;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.detail-link:hover {
    text-decoration: underline;
}

.detail-link:focus-visible {
    outline: 3px solid rgba(99, 102, 241, 0.42);
    outline-offset: 2px;
    border-radius: 6px;
}

.empty {
    flex: none;
    margin: 12px 0 4px;
    color: #5c6b82;
    font-weight: 600;
}

@media (min-width: 900px) {
    .solo .details-split {
        display: grid;
        grid-template-columns: 1fr 1fr;
        column-gap: 32px;
        align-content: start;
    }
}

@media (min-width: 641px) and (max-width: 1023px) {
    .cols-3 {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        grid-template-rows: auto minmax(0, 1fr);
    }

    .cols-3 > :first-child {
        grid-column: 1 / -1;
    }

    .cols-3 > :first-child .details {
        overflow: visible;
    }
}

.property-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.8fr);
    grid-template-rows: minmax(0, 1fr);
    gap: 18px;
    min-height: 0;
    height: 100%;
}

.documents-panel {
    min-height: 0;
}

.dropzone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex: 1 1 148px;
    min-height: 260px;
    margin-top: 20px;
    padding: 40px 32px;
    border: 1.5px dashed #c5d0e6;
    border-radius: 20px;
    background: #f7f9fd;
    text-align: center;
    cursor: pointer;
}

.documents-panel:has(.upload-list:not(:empty)) .dropzone {
    flex: none;
    min-height: 0;
    padding-block: 12px;
}

.documents-panel:has(.upload-list:not(:empty)) .dropzone p {
    display: none;
}

.dropzone.is-dragover {
    border-color: #3b82f6;
    background: #eef2ff;
}

.dropzone strong {
    font-size: 32px;
    color: #121417;
}

.dropzone p {
    max-width: 540px;
    margin: 0;
    color: #5c6b82;
    font-size: 17px;
    font-weight: 600;
}

.dropzone-note {
    color: #8b97ad;
    font-size: 16px;
    font-weight: 700;
}

.dropzone-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 6px;
}

.dropzone .button {
    width: auto;
    padding: 0 16px;
}

.file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    border: 0;
}

.section-head .upload-summary {
    flex: none;
    max-width: 52%;
    margin: 0;
    padding: 4px 10px;
    border-radius: 999px;
    background: #f4f7fd;
    color: #344054;
    font-size: 16px;
    font-weight: 800;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.section-head .upload-summary:empty {
    display: none;
}

.section-head .upload-summary.is-error {
    background: #fef3f2;
    color: #b42318;
}

.upload-list {
    list-style: none;
    flex: 1 1 auto;
    min-width: 0;
    min-height: 0;
    margin: 12px 0 0;
    padding: 0 2px;
    overflow: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #d0d5dd transparent;
}

.upload-list:empty {
    display: none;
}

.upload-list li {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 4px 12px;
    align-items: start;
    min-width: 0;
    padding: 8px 0;
    border-bottom: 1px solid #eef1f8;
}

.upload-list li:last-child {
    border-bottom: 0;
}

.upload-copy {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
}

.upload-path {
    display: block;
    min-width: 0;
    font-size: 17px;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.upload-detail {
    margin: 2px 0 0;
    color: #b42318;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.upload-detail[hidden] {
    display: none;
}

.upload-status {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    margin-top: 1px;
    min-width: 104px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #f4f7fd;
    color: #5c6b82;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.3;
    text-align: center;
    white-space: nowrap;
}

.upload-status.is-active {
    background: #eef2ff;
    color: #3a4ad4;
}

.upload-status.is-done {
    background: #ecfdf3;
    color: #067647;
}

.upload-status.is-error {
    background: #fef3f2;
    color: #b42318;
}

@media (max-width: 640px) {
    .auth-body {
        padding: 0;
    }

    .auth-card {
        width: 100%;
        height: 100%;
        max-height: 100%;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        padding:
            max(28px, env(safe-area-inset-top))
            max(22px, env(safe-area-inset-right))
            max(24px, env(safe-area-inset-bottom))
            max(22px, env(safe-area-inset-left));
    }

    .auth-card .brand {
        margin-bottom: 16px;
    }

    .brand img,
    .topbar .brand img {
        height: 36px;
    }

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

    .auth-heading h1 {
        font-size: 30px;
    }

    .topbar {
        min-height: 68px;
        padding-inline: max(12px, env(safe-area-inset-left)) max(12px, env(safe-area-inset-right));
    }

    .button-ghost {
        height: 52px;
        padding-inline: 12px;
    }

    .stage {
        gap: 16px;
        padding:
            18px
            max(20px, env(safe-area-inset-right))
            max(18px, env(safe-area-inset-bottom))
            max(20px, env(safe-area-inset-left));
    }

    .stage-head.inline {
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
    }

    .stage-head.inline .lede {
        text-align: left;
    }

    .stage-title h1 {
        font-size: 28px;
    }

    .lede {
        white-space: normal;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    .lede-full {
        display: block;
        overflow: visible;
        -webkit-line-clamp: unset;
    }

    .who {
        max-width: 24vw;
        font-size: 15px;
    }

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

    .title-actions .button,
    .stack .button {
        width: 100%;
    }

    .stage-body,
    .stage-body.cols-2,
    .stage-body.cols-3,
    .stage-body.solo,
    .stage-body.property-layout {
        display: flex;
        flex-direction: column;
        gap: 10px;
        height: auto;
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        grid-template-columns: none;
        grid-template-rows: none;
    }

    .property-layout > .panel:not(.documents-panel) {
        max-height: none;
    }

    .panel,
    .solo .panel {
        flex: none;
        align-self: stretch;
        height: auto;
        max-height: none;
        overflow: visible;
        border-radius: 16px;
        padding: 22px 20px 20px;
    }

    .panel .details,
    .panel .task-list,
    .details-split {
        display: block;
        flex: none;
        overflow: visible;
    }

    .title-row {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        align-items: center;
        column-gap: 18px;
        row-gap: 4px;
    }

    .title-row .avatar {
        grid-row: 1 / span 2;
    }

    .title-row .stage-title,
    .title-row .task-type {
        grid-column: 2;
        margin: 0;
        max-width: none;
        justify-self: start;
    }

    .task-name {
        white-space: normal;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    .avatar,
    .title-row .avatar {
        width: 40px;
        height: 40px;
        border-radius: 13px;
    }

    .section-head {
        position: sticky;
        top: 0;
        z-index: 1;
        margin: 0 -12px;
        padding: 0 12px 8px;
        background: #fff;
    }

    .details div {
        gap: 2px 12px;
        padding: 8px 0;
    }

    .details dd {
        font-size: 17px;
    }

    .task-list li,
    .record-link {
        min-height: 48px;
    }
}

@media (max-height: 740px) {
    .auth-card {
        padding-block: 16px;
    }

    .auth-card .brand {
        margin-bottom: 10px;
    }

    .auth-card .brand img {
        height: 36px;
    }

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

    .auth-heading h1 {
        font-size: 22px;
    }

    .form {
        gap: 8px;
    }

    .field {
        gap: 4px;
    }

    .switch {
        margin-top: 16px;
    }

    .button-link {
        margin-top: 8px;
    }
}

@media (max-height: 520px) {
    .topbar {
        min-height: 48px;
        padding-top: max(4px, env(safe-area-inset-top));
        padding-bottom: 4px;
    }

    .topbar .brand img {
        height: 28px;
    }

    .stage {
        gap: 12px;
        padding-top: 8px;
    }

    .stage-title h1 {
        font-size: 18px;
        -webkit-line-clamp: 1;
    }

    .lede:not(.lede-full) {
        display: none;
    }

    .avatar,
    .title-row .avatar {
        width: 32px;
        height: 32px;
        border-radius: 10px;
    }

    .stage-body,
    .stage-body.cols-2,
    .stage-body.cols-3,
    .stage-body.solo,
    .stage-body.property-layout {
        display: flex;
        flex-direction: column;
        gap: 8px;
        height: auto;
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        grid-template-columns: none;
        grid-template-rows: none;
    }

    .property-layout > .panel:not(.documents-panel) {
        max-height: none;
    }

    .panel,
    .solo .panel,
    .cols-2 > :first-child {
        flex: none;
        align-self: stretch;
        height: auto;
        max-height: none;
        overflow: visible;
    }

    .panel .details,
    .panel .task-list,
    .cols-2 > :first-child .details,
    .solo .details,
    .details-split {
        display: block;
        flex: none;
        overflow: visible;
    }
}

@media (pointer: coarse) {
    .button,
    .button-link,
    .button-ghost,
    .field input {
        min-height: 52px;
    }
}
