:root {
    color-scheme: dark;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --bg: #15191b;
    --header: #267a4d;
    --header-hover: #31935e;
    --surface: #252a2d;
    --surface-soft: #1d2325;
    --surface2: #30363a;
    --border: #3a4145;
    --border-green: #466052;
    --muted: #a9b0ad;
    --muted-dark: #68716d;
    --accent: #267a4d;
    --accent-bright: #62c98b;
    --text: #f2f4f3;
    --danger: #e05d5d;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    min-height: 100vh;
    background:
        radial-gradient(circle at 90% 0%, rgba(38, 122, 77, .12), transparent 28rem),
        var(--bg);
    color: var(--text);
}

button,
input {
    font: inherit;
}

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

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

.tiny {
    font-size: .78rem;
}

.hidden {
    display: none !important;
}

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

/* Desktop/browser transfer client */
.browser-body {
    background:
        radial-gradient(circle at 88% 0%, rgba(38, 122, 77, .11), transparent 30rem),
        linear-gradient(180deg, #15191b 0%, #111517 100%);
}

.desktop-header {
    width: 100%;
    background: var(--header);
    border-bottom: 1px solid #3c9062;
    box-shadow: 0 7px 28px rgba(0, 0, 0, .18);
}

.desktop-header-inner {
    width: min(1180px, calc(100% - 40px));
    min-height: 64px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 24px;
}

.desktop-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.desktop-brand-icon {
    width: 38px;
    height: 38px;
    object-fit: contain;
}

.desktop-brand div {
    display: grid;
    gap: 1px;
}

.desktop-brand strong {
    color: #fff;
    font-size: 1.06rem;
    line-height: 1.1;
}

.desktop-brand span {
    color: #d8ece1;
    font-size: .68rem;
    font-weight: 600;
}

.desktop-session {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 7px;
    min-height: 34px;
    padding: 7px 11px;
    border: 1px solid rgba(255, 255, 255, .26);
    border-radius: 14px;
    background: rgba(255, 255, 255, .14);
    color: #fff;
    font-size: .64rem;
    font-weight: 800;
    letter-spacing: .05em;
}

.desktop-session strong {
    font-size: .72rem;
    letter-spacing: .08em;
}

.desktop-session-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #b8f0ce;
}

.shell {
    width: min(1040px, calc(100% - 40px));
    margin: 0 auto;
    padding: 28px 0 48px;
}

.browser-heading {
    display: grid;
    grid-template-columns: 1fr;
    align-items: start;
    gap: 12px;
    margin-bottom: 18px;
}

.browser-heading h1 {
    margin: 0;
    font-size: clamp(1.8rem, 4vw, 2.55rem);
    line-height: 1.08;
    letter-spacing: -.035em;
}

.browser-heading p:last-child {
    margin: 7px 0 0;
    font-size: .84rem;
}

.card {
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: rgba(37, 42, 45, .97);
    box-shadow: 0 18px 55px rgba(0, 0, 0, .22);
}

.transfer-card {
    min-height: 380px;
}

.tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
    margin: 0 0 20px;
    padding: 5px;
    border: 1px solid var(--border);
    border-radius: 15px;
    background: #171d1f;
}

.tab {
    min-height: 42px;
    border: 0;
    border-radius: 11px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    font-size: .83rem;
    font-weight: 800;
    transition: background .14s, color .14s;
}

.tab:hover {
    color: var(--text);
}

.tab.active {
    background: var(--accent);
    color: #fff;
}

.panel {
    display: none;
}

.panel.active {
    display: block;
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

.section-head h3 {
    margin: 0 0 3px;
    font-size: 1.08rem;
}

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

.btn,
.icon-btn {
    border: 1px solid var(--accent);
    border-radius: 12px;
    background: var(--accent);
    color: #fff;
    cursor: pointer;
    font-weight: 800;
    transition: background .14s, border-color .14s, opacity .14s, transform .1s;
}

.btn {
    min-height: 42px;
    padding: 10px 14px;
    font-size: .82rem;
}

.btn.compact {
    min-height: 38px;
    padding: 8px 12px;
}

.btn.secondary,
.icon-btn {
    border-color: var(--border);
    background: var(--surface2);
    color: var(--text);
}

.btn:hover:not(:disabled),
.icon-btn:hover:not(:disabled) {
    background: var(--header-hover);
    border-color: var(--header-hover);
}

.btn.secondary:hover:not(:disabled),
.icon-btn:hover:not(:disabled) {
    background: #3a4145;
    border-color: #4c555a;
}

.btn:active:not(:disabled),
.icon-btn:active:not(:disabled) {
    transform: translateY(1px);
}

.btn:disabled,
.icon-btn:disabled {
    opacity: .42;
    cursor: default;
}

.icon-btn {
    width: 38px;
    height: 38px;
    padding: 8px;
    display: grid;
    place-items: center;
}

.icon-btn img {
    width: 19px;
    height: 19px;
    display: block;
}

.file-list {
    display: grid;
    gap: 8px;
    max-height: 420px;
    overflow: auto;
    padding-right: 2px;
}

.file {
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 11px 12px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface2);
}

.file input {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--accent);
}

.file-device-icon {
    width: 34px;
    height: 34px;
    padding: 7px;
    border-radius: 10px;
    background: #1d3f2d;
    object-fit: contain;
}

.file-name {
    min-width: 0;
}

.file-name b {
    display: block;
    overflow: hidden;
    color: var(--text);
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: .88rem;
}

.file-name small {
    display: block;
    margin-top: 3px;
    overflow: hidden;
    color: var(--muted);
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: .68rem;
}

.link {
    padding: 8px 10px;
    border-radius: 10px;
    color: var(--accent-bright);
    text-decoration: none;
    font-size: .75rem;
    font-weight: 800;
}

.link:hover {
    background: rgba(38, 122, 77, .13);
}

.empty {
    display: grid;
    place-items: center;
    min-height: 118px;
    padding: 26px 18px;
    border: 1px dashed #46504d;
    border-radius: 14px;
    color: var(--muted);
    text-align: center;
    font-size: .82rem;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 14px;
}

.download-actions {
    justify-content: center;
}

.download-actions .btn {
    min-width: 160px;
}

.drop {
    min-height: 190px;
    padding: 32px 18px;
    border: 1.5px dashed #466052;
    border-radius: 18px;
    background: #1d2425;
    display: grid;
    place-items: center;
    align-content: center;
    cursor: pointer;
    text-align: center;
    transition: background .14s, border-color .14s;
}

.drop:hover,
.drop.drag {
    border-color: var(--accent-bright);
    background: #1d2b24;
}

.drop-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 11px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    background: #1d3f2d;
    color: var(--accent-bright);
    font-size: 1.8rem;
    font-weight: 500;
}

.drop b {
    font-size: 1rem;
}

.drop span {
    margin-top: 4px;
    color: var(--muted);
    font-size: .76rem;
}

.picked {
    display: grid;
    gap: 7px;
    margin-top: 12px;
}

.picked-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface2);
}

.picked-row span {
    min-width: 0;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: .83rem;
}

.picked-row small {
    font-size: .68rem;
}

.barbg {
    height: 5px;
    margin-top: 14px;
    overflow: hidden;
    border-radius: 999px;
    background: var(--surface2);
}

.bar {
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: var(--accent-bright);
    transition: width .12s;
}

.status {
    min-height: 20px;
    margin: 9px 0 0;
    color: var(--accent-bright);
    font-size: .78rem;
}

.footer {
    margin-top: 13px;
    color: var(--muted-dark);
    text-align: center;
    font-size: .67rem;
}

/* Landing and short-link join */
.join-body {
    min-height: 100vh;
    background:
        radial-gradient(circle at 12% 0%, rgba(38, 122, 77, .15), transparent 30rem),
        radial-gradient(circle at 88% 100%, rgba(38, 122, 77, .07), transparent 26rem),
        linear-gradient(180deg, #15191b 0%, #0f1315 100%);
}

.join-shell {
    width: min(100% - 28px, 560px);
    min-height: 100vh;
    margin: 0 auto;
    padding: 42px 0 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.join-product-card {
    position: relative;
    overflow: hidden;
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: rgba(37, 42, 45, .98);
    box-shadow: 0 28px 80px rgba(0, 0, 0, .38);
}

.join-product-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 5px;
    background: var(--accent);
}

.join-product-card::after {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    right: -120px;
    top: -125px;
    border-radius: 50%;
    background: rgba(38, 122, 77, .07);
    pointer-events: none;
}

.join-brand {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 27px;
}

.join-brand-icon {
    width: 48px;
    height: 48px;
    padding: 5px;
    display: grid;
    place-items: center;
    border: 1px solid #456a55;
    border-radius: 15px;
    background: #1b3529;
}

.join-brand-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.join-brand-name {
    font-size: 1.06rem;
    font-weight: 900;
}

.join-brand-sub {
    margin-top: 2px;
    color: var(--muted);
    font-size: .72rem;
    font-weight: 650;
}

.join-copy {
    position: relative;
    z-index: 1;
    margin-bottom: 20px;
}

.join-kicker,
.transfer-id-label {
    margin: 0 0 7px;
    color: var(--accent-bright);
    font-size: .66rem;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.join-copy h1 {
    margin: 0 0 8px;
    font-size: clamp(1.5rem, 5vw, 1.95rem);
    line-height: 1.12;
    letter-spacing: -.035em;
}

.join-copy p:not(.join-kicker) {
    max-width: 46ch;
    margin: 0;
    color: var(--muted);
    font-size: .86rem;
    line-height: 1.55;
}

.transfer-hero {
    position: relative;
    z-index: 1;
    margin-bottom: 24px;
    padding: 20px;
    border: 1px solid #405047;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(38, 122, 77, .11), rgba(48, 54, 58, .52));
}

.transfer-id-value {
    margin: 0 0 14px;
    color: #f5fff9;
    font-size: clamp(2.55rem, 13vw, 3.8rem);
    font-weight: 950;
    letter-spacing: .09em;
    line-height: 1;
}

.session-found {
    width: max-content;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border: 1px solid rgba(98, 201, 139, .24);
    border-radius: 999px;
    background: rgba(38, 122, 77, .12);
    color: var(--accent-bright);
    font-size: .7rem;
    font-weight: 800;
}

.session-found-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent-bright);
}

.join-alert {
    position: relative;
    z-index: 1;
    margin: 0 0 16px;
    padding: 11px 13px;
    border: 1px solid rgba(224, 93, 93, .35);
    border-radius: 12px;
    background: rgba(224, 93, 93, .10);
    color: #ffb4ae;
    font-size: .81rem;
    font-weight: 650;
}

.landing-code-form {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 128px;
    gap: 9px;
}

.landing-code-input,
.pin-digit {
    border: 1px solid var(--border);
    background: #171d1f;
    color: #f7fff9;
    outline: 0;
}

.landing-code-input {
    width: 100%;
    height: 54px;
    padding: 0 15px;
    border-radius: 13px;
    font-size: 1.08rem;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.landing-code-input::placeholder {
    color: #5b6c64;
}

.landing-code-input:focus,
.pin-digit:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(38, 122, 77, .16);
}

.join-primary {
    min-height: 52px;
    border: 1px solid var(--accent);
    border-radius: 13px;
    background: var(--accent);
    color: #fff;
    cursor: pointer;
    font-size: .86rem;
    font-weight: 900;
}

.join-primary:hover:not(:disabled) {
    background: var(--header-hover);
    border-color: var(--header-hover);
}

.join-primary:disabled {
    opacity: .4;
    cursor: default;
}

.pin-form {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 14px;
}

.pin-digits {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 7px;
}

.pin-digit {
    min-width: 0;
    width: 100%;
    height: 58px;
    padding: 0;
    border-radius: 13px;
    text-align: center;
    font-size: 1.45rem;
    font-weight: 900;
    caret-color: var(--accent-bright);
}

.pin-digit.filled {
    border-color: #466052;
    background: #1c2822;
}

.join-trust {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 18px;
    padding-top: 15px;
    border-top: 1px solid var(--border);
    color: #7f9188;
    font-size: .67rem;
    font-weight: 650;
}

.join-trust span:first-child {
    color: #8fbca6;
}

.join-footer {
    padding-top: 14px;
    color: var(--muted-dark);
    text-align: center;
    font-size: .66rem;
}

@media (max-width: 720px) {
    .desktop-header-inner {
        width: min(100% - 24px, 1180px);
        grid-template-columns: 1fr auto;
        min-height: 60px;
    }

    .desktop-brand span {
        display: none;
    }

    .desktop-session > span:not(.desktop-session-dot) {
        display: none;
    }

    .shell {
        width: min(100% - 20px, 1040px);
        padding-top: 20px;
    }

    .browser-heading {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .card {
        padding: 15px;
        border-radius: 17px;
    }

    .section-head {
        align-items: flex-start;
    }

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

    .file .link {
        grid-column: 3;
        justify-self: start;
        padding-left: 0;
    }

    .actions .btn {
        flex: 1;
    }
}

@media (max-width: 520px) {
    .join-shell {
        width: min(100% - 20px, 560px);
        padding: 18px 0;
    }

    .join-product-card {
        padding: 21px;
        border-radius: 21px;
    }

    .join-brand {
        margin-bottom: 22px;
    }

    .landing-code-form {
        grid-template-columns: 1fr;
    }

    .pin-digits {
        gap: 5px;
    }

    .pin-digit {
        height: 52px;
        border-radius: 11px;
        font-size: 1.25rem;
    }

    .join-trust {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 5px;
    }

    .tabs {
        gap: 4px;
    }

    .tab {
        font-size: .77rem;
    }

    .section-head {
        flex-direction: column;
    }

    .section-actions {
        width: 100%;
        justify-content: flex-end;
    }
}

/* Release hardening */
.desktop-session small {
    margin-left: 2px;
    color: #d8ece1;
    font-size: .58rem;
    font-weight: 700;
    letter-spacing: 0;
}

.expired-dot {
    background: #e05d5d;
}

.expired-card {
    max-width: 620px;
    margin: 56px auto 0;
    text-align: center;
}

.expired-card .btn {
    display: inline-flex;
    margin-top: 14px;
    text-decoration: none;
}

.link-button {
    display: inline-flex;
    justify-content: center;
    text-decoration: none;
}

.join-primary i, .link-button i { margin-left: 8px; }
.link-button i { margin-left: 0; margin-right: 8px; }
.drop-icon i { font-size: 22px; }

/* Entry card alignment with Taskly Web. Scoped to the first Transferly join screen. */
.entry-page {
    background:
        radial-gradient(circle at 18% 0%, rgba(141, 233, 179, .16), transparent 31rem),
        linear-gradient(145deg, #2f915f 0%, #267c50 100%);
}

.entry-page .join-shell {
    width: min(calc(100% - 32px), 600px);
    padding: 36px 0 64px;
}

.entry-page .entry-simple {
    overflow: visible;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, .09);
    border-top: 3px solid #8de9b3;
    border-radius: 18px;
    background: #252c2e;
    box-shadow: 0 18px 55px rgba(19, 42, 31, .25);
}

.entry-page .entry-simple::before,
.entry-page .entry-simple::after {
    display: none;
}

.entry-page .join-copy {
    margin-bottom: 20px;
}

.entry-page .join-kicker {
    margin-bottom: 8px;
    color: #8de9b3;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .16em;
}

.entry-page .join-copy h1 {
    margin-bottom: 9px;
    font-size: clamp(29px, 4vw, 46px);
    line-height: 1.05;
    letter-spacing: -.035em;
}

.entry-page .join-copy p:not(.join-kicker) {
    max-width: none;
    color: rgba(245, 248, 246, .82);
    font-size: 1rem;
    line-height: 1.55;
}

.entry-page .landing-code-form {
    grid-template-columns: 1fr;
    gap: 12px;
}

.entry-page .landing-code-input {
    height: auto;
    min-height: 48px;
    padding: 11px 12px;
    border: 1px solid #414c4e;
    border-radius: 12px;
    background: #2c3537;
    color: #f5f8f6;
    font-size: 1rem;
    letter-spacing: .14em;
}

.entry-page .landing-code-input:focus {
    border-color: #70dda0;
    box-shadow: 0 0 0 3px rgba(141, 233, 179, .13);
    background: #313b3d;
}

.entry-page .join-primary {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-color: #8de9b3;
    border-radius: 12px;
    background: #8de9b3;
    color: #123624;
    font-size: .92rem;
    font-weight: 850;
    transition: transform .15s ease, background .15s ease, border-color .15s ease;
}

.entry-page .join-primary:hover:not(:disabled) {
    transform: translateY(-1px);
    border-color: #70dda0;
    background: #70dda0;
}

.entry-page .join-primary i {
    margin: 0;
}

.entry-page .entry-note {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 9px;
    margin-top: 18px;
    padding-top: 0;
    border-top: 0;
    color: #bdc8c4;
    font-size: 12px;
    font-weight: 720;
}

.entry-note-dot {
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    border-radius: 50%;
    background: #8de9b3;
    box-shadow: 0 0 0 4px rgba(141, 233, 179, .12);
}

.entry-page .join-footer {
    color: rgba(245, 248, 246, .68);
}

@media (max-width: 520px) {
    .entry-page .join-shell {
        width: min(calc(100% - 20px), 600px);
        padding: 18px 0;
    }

    .entry-page .entry-simple {
        padding: 22px;
        border-radius: 18px;
    }
}

/* Shared Transferly Web header — matches the Taskly Web entry header language. */
.join-topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    width: 100%;
    background: #242d2d;
    border-bottom: 1px solid rgba(98, 201, 139, .32);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
}

.join-topbar-inner {
    width: min(1320px, calc(100% - 32px));
    min-height: 58px;
    margin: 0 auto;
    display: flex;
    align-items: center;
}

.join-topbar-brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--text);
    font-size: 18px;
    font-weight: 850;
    letter-spacing: -.02em;
    text-decoration: none;
    white-space: nowrap;
}

.join-brand-code {
    color: var(--accent-bright);
    font-weight: 900;
}

.join-body .join-shell {
    min-height: calc(100vh - 58px);
}

@media (max-width: 820px) {
    .join-topbar-inner {
        width: min(100% - 20px, 680px);
        min-height: 54px;
    }

    .join-body .join-shell {
        min-height: calc(100vh - 54px);
    }
}
