@font-face {
    font-family: "Courier New";
    src: local("CourierNewPSMT"), url("/fonts/CutiveMono-Regular.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
    font-display: block;
}

@font-face {
    font-family: "Courier New";
    src: local("CourierNewPS-BoldMT"), url("/fonts/CutiveMono-Regular.ttf") format("truetype");
    font-weight: bold;
    font-style: normal;
    font-display: block;
}

@font-face {
    font-family: "Courier New";
    src: local("CourierNewPS-ItalicMT"), url("/fonts/CutiveMono-Regular.ttf") format("truetype");
    font-weight: normal;
    font-style: italic;
    font-display: block;
}

@font-face {
    font-family: "Courier New";
    src: local("CourierNewPS-BoldItalicMT"), url("/fonts/CutiveMono-Regular.ttf") format("truetype");
    font-weight: bold;
    font-style: italic;
    font-display: block;
}


@font-face {
    font-family: "Blue Screen";
    src: url("fonts/Blue%20Screen.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
    font-display: block;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    background: #080908;
    color: #888888;
}

body {
    font-family: "Courier New", Courier, monospace;
}

main {
    width: 100%;
    min-height: 100vh;
    padding: 0;
}

.banner {
    position: relative;
    width: 100%;
    max-width: none;
    height: 100vh;
    margin: 0 auto;
    overflow: hidden;
    background: #11120f;
}

.banner > img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .78;
    filter: brightness(.72) contrast(1.08) saturate(.75);
}

.files-title {
    position: absolute;
    top: 58px;
    left: 50%;
    transform: translateX(-50%);
    width: 72%;
    max-width: 1100px;
    color: #383834;
    font-family: "Blue Screen", monospace;
    font-size: 24px;
    font-weight: normal;
    letter-spacing: 0;
    line-height: 1;
    text-align: center;
    z-index: 5;
}

.files-title span {
    display: inline;
    margin: 0;
    padding: 0;
}

.files-back {
    position: absolute;
    left: 0;
    top: -4px;
    color: #383834;
    text-decoration: none;
    font-family: "Blue Screen", monospace;
    font-size: 28px;
    line-height: 1;
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
}

.files-back:hover {
    color: #555550;
}

.files-window {
    position: absolute;
    top: 105px;
    bottom: 26px;
    left: 50%;
    transform: translateX(-50%);
    width: 82%;
    max-width: 900px;
    overflow-y: auto;
    padding: 18px 22px;
    background: rgba(8, 9, 8, .58);
    z-index: 5;
    scrollbar-width: thin;
    scrollbar-color: #080908 transparent;
    overscroll-behavior: contain;
}

.files-window::-webkit-scrollbar {
    width: 6px;
}

.files-window::-webkit-scrollbar-track {
    background: transparent;
}

.files-window::-webkit-scrollbar-thumb {
    background: #080908;
}

.files-inner {
    width: 100%;
    max-width: 820px;
    margin: 0 auto;
}

.files-section {
    margin: 0 0 24px;
}

.files-section h2 {
    margin: 0 0 6px;
    padding: 0;
    color: #fff;
    font-family: "Courier New", Courier, monospace;
    font-size: 11px;
    font-weight: normal;
    line-height: 1.4;
    letter-spacing: 1.5px;
}

.files-section p {
    margin: 0;
    padding: 0;
    color: #929292;
    font-family: "Courier New", Courier, monospace;
    font-size: 13px;
    font-weight: normal;
    line-height: 1.65;
    overflow-wrap: anywhere;
}

a,
a:link,
a:visited,
a:hover,
a:active,
a:focus {
    -webkit-tap-highlight-color: transparent !important;
}

@media screen and (max-width: 600px) {
    main {
        padding: 10px;
        min-height: auto;
    }

    .banner {
        height: 88vh;
    }

    .files-title {
        top: 58px;
        width: 88%;
        font-size: 20px;
    }

    .files-back {
        top: -3px;
        font-size: 24px;
    }

    .files-window {
        top: 100px;
        bottom: 18px;
        width: 94%;
        padding: 14px 14px 20px;
    }

    .files-section {
        margin-bottom: 20px;
    }

    .files-section h2 {
        margin-bottom: 5px;
        font-size: 10px;
        letter-spacing: 1.2px;
        line-height: 1.4;
        font-weight: normal;
    }

    .files-section p {
        font-size: 12px;
        line-height: 1.65;
    }
}

@media screen and (max-width: 380px) {
    .files-title {
        top: 54px;
        width: 90%;
        font-size: 18px;
    }

    .files-back {
        font-size: 22px;
    }

    .files-window {
        top: 96px;
        bottom: 18px;
        width: 96%;
        padding: 12px 10px 16px;
    }

    .files-section {
        margin-bottom: 18px;
    }

    .files-section h2 {
        font-size: 9px;
        letter-spacing: 1px;
        line-height: 1.4;
        font-weight: normal;
    }

    .files-section p {
        font-size: 12px;
        line-height: 1.65;
    }
}

.files-panel {
    margin: 0 0 14px;
    padding: 16px 18px 12px;
    background: rgba(8, 9, 8, .5);
}

.files-head {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    margin: 0 0 10px;
}

.files-head h2 {
    margin: 0;
    color: #fff;
    font-family: "Courier New", Courier, monospace;
    font-size: 11px;
    font-weight: normal;
    line-height: 1.4;
    letter-spacing: 1.5px;
}

.files-head span {
    color: #6f6f6b;
    font-family: "Courier New", Courier, monospace;
    font-size: 10px;
    letter-spacing: 1px;
}

.files-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding-bottom: 6px;
}

.files-tile {
    display: block;
    color: #929292;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

.files-grid .files-tile img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 9 / 20;
    object-fit: cover;
    opacity: 1;
    filter: none;
}

.files-tile span {
    display: block;
    margin-top: 6px;
    font-family: "Courier New", Courier, monospace;
    font-size: 10px;
    letter-spacing: 1px;
    line-height: 1.4;
    transition: color .2s ease;
}

.files-tile:hover span,
.files-tile:focus-visible span,
.files-tile:active span {
    color: #fff;
}

.files-tile em {
    display: block;
    color: #5f5f5b;
    font-style: normal;
    font-size: 9px;
}

.files-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin: 0 -10px;
    padding: 4px 10px;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    transition: background .2s ease;
}

.files-row span {
    min-width: 0;
    color: #a8a8a4;
    font-family: "Courier New", Courier, monospace;
    font-size: 12px;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.files-row em {
    margin-left: 8px;
    color: #6f6f6b;
    font-style: normal;
    font-size: 10px;
    letter-spacing: 1px;
}

.files-row b {
    flex: none;
    color: #d6d6d2;
    font-family: "Courier New", Courier, monospace;
    font-size: 11px;
    font-weight: normal;
    letter-spacing: 1.5px;
    transition: color .2s ease;
}

.files-row:active {
    background: rgba(160, 160, 152, .07);
}

.files-row:active b {
    color: #fff;
}

.files-empty {
    margin: 0;
    color: #929292;
    font-family: "Courier New", Courier, monospace;
    font-size: 12px;
    line-height: 1.65;
}

@media (hover: hover) and (pointer: fine) {
    .files-row:hover {
        background: rgba(160, 160, 152, .07);
    }

    .files-row:hover b {
        color: #fff;
    }
}

@media screen and (min-width: 601px) {
    .files-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 14px;
    }

    .files-row span {
        font-size: 13px;
    }

    .files-row b {
        font-size: 12px;
    }

    .files-empty {
        font-size: 13px;
    }
}

.files-readme {
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    color: #b4b4b0;
    font-family: "Courier New", Courier, monospace;
    font-size: 10px;
    letter-spacing: 1px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: color .2s ease;
}

.files-readme:active,
.files-readme:focus-visible {
    color: #fff;
}

.files-modal {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(4, 5, 4, .72);
    z-index: 50;
}

.files-modal-box {
    width: 100%;
    max-width: 420px;
    max-height: 100%;
    overflow-y: auto;
    padding: 20px 22px 18px;
    background: #0b0c0b;
    overscroll-behavior: contain;
}

.files-modal-box h3 {
    margin: 0 0 12px;
    color: #fff;
    font-family: "Courier New", Courier, monospace;
    font-size: 11px;
    font-weight: normal;
    letter-spacing: 1.5px;
    line-height: 1.4;
}

.files-modal-box h4 {
    margin: 20px 0 8px;
    color: #fff;
    font-family: "Courier New", Courier, monospace;
    font-size: 10px;
    font-weight: normal;
    letter-spacing: 1.5px;
}

.files-modal-box p,
.files-modal-box li {
    color: #c4c4c0;
    font-family: "Courier New", Courier, monospace;
    font-size: 12px;
    letter-spacing: .3px;
    line-height: 1.75;
}

.files-modal-box p {
    margin: 0;
}

.files-modal-box ul {
    margin: 0;
    padding: 0 0 0 16px;
}

.files-modal-close {
    display: block;
    margin: 18px 0 0 auto;
    padding: 0;
    border: 0;
    background: none;
    color: #d6d6d2;
    font-family: "Courier New", Courier, monospace;
    font-size: 11px;
    letter-spacing: 1.5px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

@media (hover: hover) and (pointer: fine) {
    .files-readme:hover,
    .files-modal-close:hover {
        color: #fff;
    }
}

.files-actions {
    display: flex;
    align-items: baseline;
    gap: 16px;
}

.files-readme:disabled {
    color: #6f6f6b;
    cursor: default;
}

.files-view-open {
    overflow: hidden;
}

.files-view {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 52px 16px 16px;
    background: rgba(4, 5, 4, .98);
    z-index: 60;
}

.files-view-stage {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 0;
    overflow: hidden;
    touch-action: none;
    cursor: zoom-in;
}

.files-view-stage img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    opacity: 1;
    filter: none;
    flex: 0 0 auto;
    transform: translate3d(0, 0, 0) scale(1);
    transform-origin: center center;
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
    will-change: transform;
}

.files-view-close,
.files-view-arrow,
.files-view-save {
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    color: #d6d6d2;
    font-family: "Courier New", Courier, monospace;
    letter-spacing: 1.5px;
    text-decoration: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.files-view-close {
    position: absolute;
    top: 25px;
    right: 30px;
    color: #a8a8a3;
    font-size: 34px;
    line-height: 1;
    letter-spacing: 0;
}

@media (max-width: 600px) {
    .files-view-close {
        top: 18px;
        right: 20px;
        font-size: 30px;
    }
}

.files-view-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    margin-top: 14px;
}

.files-view-arrow {
    padding: 4px 10px;
    font-size: 26px;
    line-height: 1;
}

.files-view-name {
    margin-top: 12px;
    max-width: 100%;
    color: #d6d6d2;
    font-family: "Courier New", Courier, monospace;
    font-size: 12px;
    letter-spacing: 1.5px;
    text-align: center;
    text-transform: lowercase;
}

.files-view-name + .files-view-bar {
    margin-top: 10px;
}

.files-view-count {
    min-width: 64px;
    text-align: center;
    color: #8f8f8b;
    font-family: "Courier New", Courier, monospace;
    font-size: 11px;
    letter-spacing: 1.5px;
}

.files-view-save {
    margin-top: 8px;
    padding: 6px 10px;
    font-size: 11px;
}

@media (hover: hover) and (pointer: fine) {
    .files-view-close:hover,
    .files-view-arrow:hover,
    .files-view-save:hover {
        color: #fff;
    }
}

/* ---------- phone preview ---------- */

.files-view-phone,
.files-phone-mode {
    margin: 0;
    padding: 6px 10px;
    border: 0;
    background: none;
    color: #d6d6d2;
    font-family: "Courier New", Courier, monospace;
    font-size: 11px;
    letter-spacing: 1.5px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.files-view-phone {
    margin-top: 6px;
}

.files-view-phone[hidden],
.files-phone-wrap[hidden],
.files-phone-modes[hidden],
.files-view-stage[hidden] {
    display: none;
}

.files-phone-modes {
    display: flex;
    gap: 6px;
    margin-top: 10px;
}

.files-phone-mode {
    color: #8f8f8b;
    border-bottom: 1px solid transparent;
}

.files-phone-mode.is-on {
    color: #fff;
    border-bottom-color: #8f8f8b;
}

.files-phone-wrap {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 0;
    padding: 4px 0;
    touch-action: pan-y;
}

/* body: Galaxy S22 proportions 70.6 x 146.0 mm */
.files-phone {
    position: relative;
    height: 100%;
    max-width: 100%;
    aspect-ratio: 70.6 / 146;
    container-type: size;
    cursor: pointer;
    font-family: Roboto, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
    outline: 0;
}

.files-phone *,
.files-phone-wrap {
    -webkit-tap-highlight-color: transparent;
    -webkit-user-select: none;
    user-select: none;
    outline: 0;
}

.files-phone-frame {
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    padding: 1.9cqw;
    border-radius: 10.5cqw;
    background: linear-gradient(145deg, #2b2c2e 0%, #121314 45%, #1d1e20 100%);
    box-shadow:
        0 0 0 .5cqw #55575a,
        0 0 0 .9cqw #0b0b0c,
        inset 0 0 0 .35cqw #3a3b3e,
        0 3cqw 9cqw rgba(0, 0, 0, .7);
}

.files-phone-btn {
    position: absolute;
    right: -1.7cqw;
    width: 1.1cqw;
    border-radius: 0 .5cqw .5cqw 0;
    background: linear-gradient(90deg, #3b3c3f, #17181a);
}

.files-phone-pwr {
    top: 24%;
    height: 8.5%;
}

.files-phone-vol {
    top: 36%;
    height: 14%;
}

.files-phone-screen {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 8.7cqw;
    background: #000;
    color: #fff;
}

.files-phone-wall {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 1 !important;
    filter: none !important;
    pointer-events: none;
}

.files-phone-shade {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, .28), rgba(0, 0, 0, 0) 22%, rgba(0, 0, 0, 0) 70%, rgba(0, 0, 0, .22));
    pointer-events: none;
    transition: background .25s;
}

.files-phone[data-mode="home"] .files-phone-shade {
    background: linear-gradient(to bottom, rgba(0, 0, 0, .3), rgba(0, 0, 0, .06) 25%, rgba(0, 0, 0, .06) 65%, rgba(0, 0, 0, .35));
}

.files-phone-hole {
    position: absolute;
    top: 2.6cqw;
    left: 50%;
    width: 3.7cqw;
    height: 3.7cqw;
    margin-left: -1.85cqw;
    border-radius: 50%;
    background: radial-gradient(circle at 38% 36%, #1c2230 0, #07080b 38%, #000 70%);
    box-shadow: 0 0 0 .25cqw #000;
}

/* status bar */
.files-phone-status {
    position: absolute;
    top: 2.2cqw;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4.6cqw;
    padding: 0 8.5cqw 0 8cqw;
    font-size: 3.6cqw;
    font-weight: 500;
    text-shadow: 0 0 .8cqw rgba(0, 0, 0, .5);
    pointer-events: none;
}

.files-phone-sys {
    display: flex;
    align-items: center;
    gap: 1.2cqw;
}

.files-phone-sys svg {
    display: block;
    width: 3.6cqw;
    height: 3.6cqw;
}

.files-phone-batt {
    position: relative;
    display: block;
    width: 5.2cqw;
    height: 2.5cqw;
    border: .3cqw solid rgba(255, 255, 255, .85);
    border-radius: .8cqw;
    box-sizing: border-box;
}

.files-phone-batt i {
    position: absolute;
    top: .25cqw;
    left: .25cqw;
    bottom: .25cqw;
    width: 72%;
    border-radius: .4cqw;
    background: #fff;
}

.files-phone-batt::after {
    content: "";
    position: absolute;
    top: .6cqw;
    right: -.9cqw;
    width: .5cqw;
    height: .9cqw;
    border-radius: 0 .3cqw .3cqw 0;
    background: rgba(255, 255, 255, .85);
}

/* lock screen */
.files-phone-lock,
.files-phone-home {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    transition: opacity .25s;
}

.files-phone[data-mode="home"] .files-phone-lock,
.files-phone:not([data-mode="home"]) .files-phone-home {
    opacity: 0;
}

.files-phone-lockhead {
    position: absolute;
    top: 17%;
    left: 0;
    right: 0;
    text-align: center;
    text-shadow: 0 .3cqw 2cqw rgba(0, 0, 0, .35);
}

.files-phone-date {
    font-size: 4.2cqw;
    font-weight: 400;
    letter-spacing: .1cqw;
}

.files-phone-bigtime {
    margin-top: 1cqw;
    font-size: 24cqw;
    font-weight: 300;
    line-height: .9;
    white-space: pre-line;
}

.files-phone-shortcuts {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 7.5%;
    display: flex;
    justify-content: space-between;
    padding: 0 9cqw;
}

.files-phone-short .files-phone-icon {
    width: 11cqw;
    height: 11cqw;
    border-radius: 50%;
    background: rgba(20, 20, 20, .55) !important;
    backdrop-filter: blur(1.5cqw);
}

.files-phone-short .files-phone-icon svg {
    width: 56%;
    height: 56%;
}

.files-phone-swipe {
    display: none;
}

/* home screen */
.files-phone-grid {
    position: absolute;
    top: 11%;
    left: 5.5cqw;
    right: 5.5cqw;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    row-gap: 4.4cqw;
}

.files-phone-app {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2cqw;
}

.files-phone-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 13.5cqw;
    height: 13.5cqw;
    border-radius: 36%;
    box-shadow: 0 .4cqw 1.2cqw rgba(0, 0, 0, .3);
}

.files-phone-icon svg {
    display: block;
    width: 64%;
    height: 64%;
}

.files-phone-label {
    font-size: 2.6cqw;
    line-height: 1.1;
    text-shadow: 0 0 1cqw rgba(0, 0, 0, .7);
    white-space: nowrap;
}

.files-phone-search {
    position: absolute;
    left: 50%;
    bottom: 17.5%;
    width: 37cqw;
    height: 8cqw;
    margin-left: -18.5cqw;
    border-radius: 4cqw;
    background: rgba(30, 30, 30, .45);
    backdrop-filter: blur(1.5cqw);
}

.files-phone-search svg {
    position: absolute;
    top: 2cqw;
    left: 2.4cqw;
    width: 4cqw;
    height: 4cqw;
}

.files-phone-dock {
    position: absolute;
    left: 3.5cqw;
    right: 3.5cqw;
    bottom: 5%;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 2cqw 0;
    border-radius: 7cqw;
    background: rgba(25, 25, 25, .4);
    backdrop-filter: blur(2cqw);
}

.files-phone-gesture {
    position: absolute;
    left: 50%;
    bottom: 1.6cqw;
    width: 28cqw;
    height: .9cqw;
    margin-left: -14cqw;
    border-radius: 1cqw;
    background: rgba(255, 255, 255, .85);
    box-shadow: 0 0 1cqw rgba(0, 0, 0, .4);
    pointer-events: none;
}

.files-view.is-phone {
    padding-top: 40px;
}

@media (hover: hover) and (pointer: fine) {
    .files-view-phone:hover,
    .files-phone-mode:hover {
        color: #fff;
    }
}


/* lock details, glass, tone */
.files-phone-lockicon {
    display: block;
    width: 4.6cqw;
    height: 4.6cqw;
    margin: 0 auto 2cqw;
    opacity: .9;
}

.files-phone-lockicon svg {
    display: block;
    width: 100%;
    height: 100%;
}

.files-phone-note {
    position: absolute;
    left: 5cqw;
    right: 5cqw;
    bottom: 21%;
    display: flex;
    align-items: center;
    gap: 3cqw;
    padding: 3cqw 3.5cqw;
    border-radius: 6cqw;
    background: rgba(28, 28, 30, .55);
    backdrop-filter: blur(2.5cqw);
    -webkit-backdrop-filter: blur(2.5cqw);
    color: #fff;
}

.files-phone-note .files-phone-icon {
    width: 8cqw;
    height: 8cqw;
    flex: 0 0 auto;
}

.files-phone-notetext {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: .6cqw;
}

.files-phone-notetext b {
    font-size: 3.1cqw;
    font-weight: 500;
}

.files-phone-notetext span {
    font-size: 2.7cqw;
    opacity: .8;
}

.files-phone-note em {
    font-style: normal;
    font-size: 2.5cqw;
    opacity: .7;
    align-self: flex-start;
}

.files-phone-lock {
    transition: opacity .3s, transform .3s;
}

.files-phone-home {
    transition: opacity .3s, transform .3s;
}

.files-phone[data-mode="home"] .files-phone-lock {
    transform: translateY(-6%);
}

.files-phone:not([data-mode="home"]) .files-phone-home {
    transform: translateY(5%);
}

.files-phone-glass {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    background:
        linear-gradient(120deg, rgba(255, 255, 255, .10) 0%, rgba(255, 255, 255, .03) 22%, rgba(255, 255, 255, 0) 38%),
        radial-gradient(120% 60% at 50% 0, rgba(255, 255, 255, .05), rgba(255, 255, 255, 0) 60%);
    box-shadow: inset 0 0 0 .3cqw rgba(255, 255, 255, .06);
    pointer-events: none;
}

.files-phone-hole {
    box-shadow: 0 0 0 .25cqw #000, 0 0 0 .5cqw rgba(60, 70, 90, .35), inset 0 0 .6cqw rgba(90, 120, 170, .6);
}

.files-phone-frame {
    background:
        linear-gradient(90deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, 0) 6%, rgba(255, 255, 255, 0) 94%, rgba(255, 255, 255, .06)),
        linear-gradient(145deg, #2b2c2e 0%, #121314 45%, #1d1e20 100%);
}

.files-phone[data-tone="light"] .files-phone-status,
.files-phone[data-tone="light"] .files-phone-lockhead,
.files-phone[data-tone="light"] .files-phone-label {
    color: #161616;
    text-shadow: none;
}

.files-phone[data-tone="light"] .files-phone-sys svg path {
    fill: #161616;
}

.files-phone[data-tone="light"] .files-phone-batt {
    border-color: rgba(0, 0, 0, .8);
}

.files-phone[data-tone="light"] .files-phone-batt i {
    background: #161616;
}

.files-phone[data-tone="light"] .files-phone-batt::after {
    background: rgba(0, 0, 0, .8);
}

.files-phone[data-tone="light"] .files-phone-gesture {
    background: rgba(0, 0, 0, .75);
    box-shadow: none;
}

@media (prefers-reduced-motion: reduce) {
    .files-phone-lock,
    .files-phone-home {
        transition: none;
    }
}


/* before / after preview */
.files-cmp-stage {
    container-type: size;
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 0;
}

.files-cmp {
    --pos: 50%;
    --ar: .75;
    position: relative;
    width: min(100cqw, calc(100cqh * var(--ar)));
    aspect-ratio: var(--ar);
    overflow: hidden;
    background: #0b0b0a;
    touch-action: none;
    cursor: ew-resize;
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.files-cmp-img {
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1 !important;
    filter: none !important;
    pointer-events: none;
    -webkit-user-drag: none;
}

.files-cmp-after {
    clip-path: inset(0 0 0 var(--pos));
}

.files-cmp-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--pos);
    width: 2px;
    margin-left: -1px;
    background: rgba(214, 214, 210, .92);
    box-shadow: 0 0 6px rgba(0, 0, 0, .6);
    pointer-events: none;
}

.files-cmp-grip {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 38px;
    height: 38px;
    margin: -19px 0 0 -19px;
    padding: 0;
    border: 2px solid rgba(214, 214, 210, .95);
    border-radius: 50%;
    background: rgba(12, 12, 11, .72);
    color: #d6d6d2;
    box-shadow: 0 0 10px rgba(0, 0, 0, .6);
    outline: 0;
    cursor: ew-resize;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.files-cmp-grip:focus-visible {
    box-shadow: 0 0 0 3px rgba(214, 214, 210, .45);
}

.files-cmp-grip svg {
    display: block;
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    margin: 0;
}

.files-cmp-tag {
    position: absolute;
    top: 10px;
    padding: 4px 7px;
    background: rgba(8, 9, 8, .6);
    color: #d6d6d2;
    font-family: "Courier New", Courier, monospace;
    font-size: 10px;
    letter-spacing: 1.5px;
    pointer-events: none;
}

.files-cmp-tag-b {
    left: 10px;
}

.files-cmp-tag-a {
    right: 10px;
}

.files-cmp-chips {
    display: flex;
    gap: 6px;
    max-width: 100%;
    margin-top: 10px;
    padding: 2px 0 6px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.files-cmp-chips::-webkit-scrollbar {
    display: none;
}

.files-cmp-chip {
    flex: 0 0 auto;
    margin: 0;
    padding: 7px 11px;
    border: 1px solid #3a3b38;
    background: none;
    color: #8f8f8b;
    font-family: "Courier New", Courier, monospace;
    font-size: 11px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    white-space: nowrap;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.files-cmp-chip.is-on {
    border-color: #d6d6d2;
    color: #fff;
}

.files-cmp-view .files-view-name {
    margin-top: 8px;
}

@media (hover: hover) and (pointer: fine) {
    .files-cmp-chip:hover {
        color: #fff;
    }
}

.files-cmp-view {
    padding-bottom: calc(46px + env(safe-area-inset-bottom, 0px));
}

.files-cmp-chips.fade-r {
    -webkit-mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 34px), transparent 100%);
    mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 34px), transparent 100%);
}

.files-cmp-chips.fade-l {
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 34px, #000 100%);
    mask-image: linear-gradient(to right, transparent 0, #000 34px, #000 100%);
}

.files-cmp-chips.fade-l.fade-r {
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 34px, #000 calc(100% - 34px), transparent 100%);
    mask-image: linear-gradient(to right, transparent 0, #000 34px, #000 calc(100% - 34px), transparent 100%);
}

.files-cmp-hint {
    margin-top: 2px;
    color: #6f6f6b;
    font-family: "Courier New", Courier, monospace;
    font-size: 10px;
    letter-spacing: 1.5px;
    text-align: center;
    animation: files-cmp-hint 2.2s ease-in-out infinite;
    transition: opacity .4s;
}

.files-cmp-hint.is-done {
    opacity: 0;
    animation: none;
}

@keyframes files-cmp-hint {
    0%, 100% { opacity: .45; }
    50% { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .files-cmp-hint {
        animation: none;
    }
}

.files-cmp-photos {
    position: absolute;
    left: 50%;
    top: 18px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 2px;
    transform: translateX(-50%);
    border: 1px solid #3a3b38;
    background: rgba(8, 9, 8, .85);
    color: #d6d6d2;
    font-family: "Courier New", Courier, monospace;
    font-size: 10px;
    letter-spacing: 1.5px;
    white-space: nowrap;
    cursor: default;
}

.files-cmp-photo-btn {
    margin: 0;
    padding: 5px 11px;
    border: 0;
    background: none;
    color: #d6d6d2;
    font-family: "Courier New", Courier, monospace;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.files-cmp-photo-count {
    padding: 0 4px;
}

.files-preview-glow {
    animation: files-glow 3.2s ease-in-out infinite;
}

@keyframes files-glow {
    0%, 100% {
        color: #929292;
        text-shadow: 0 0 1px rgba(255, 255, 255, .15);
    }
    50% {
        color: #f0f0f0;
        text-shadow: 0 0 7px rgba(255, 255, 255, .9), 0 0 14px rgba(255, 255, 255, .55), 0 0 24px rgba(255, 255, 255, .3);
    }
}

@media (prefers-reduced-motion: reduce) {
    .files-preview-glow {
        animation: none;
        color: #f0f0f0;
    }
}
