/* =========================================================
   DEVACATOR
   Main stylesheet
   ========================================================= */

:root {
    --bg: #f8fafd;
    --surface: #ffffff;
    --surface2: #f1f3f4;

    --text: #202124;
    --muted: #5f6368;
    --border: #dadce0;

    --blue: #1a73e8;
    --blue-light: #e8f0fe;

    --red: #d93025;
    --yellow: #f9ab00;

    --shadow:
        0 1px 3px rgba(60, 64, 67, .15),
        0 3px 8px rgba(60, 64, 67, .08);

    --shadow-hover:
        0 4px 12px rgba(60, 64, 67, .18),
        0 8px 24px rgba(60, 64, 67, .10);

    --radius: 14px;
    --transition: 180ms cubic-bezier(.2, .8, .2, 1);
}


/* =========================================================
   DARK MODE
   ========================================================= */

:root.dark {
    --bg: #202124;
    --surface: #292a2d;
    --surface2: #303134;

    --text: #e8eaed;
    --muted: #9aa0a6;
    --border: #3c4043;

    --blue: #8ab4f8;
    --blue-light: #303f57;

    --red: #f28b82;
    --yellow: #fdd663;

    --shadow:
        0 2px 8px rgba(0, 0, 0, .35);

    --shadow-hover:
        0 6px 18px rgba(0, 0, 0, .45);
}


/* =========================================================
   RESET
   ========================================================= */

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}


html {
    min-height: 100%;
    background: var(--bg);

    scroll-behavior: smooth;
}


body {
    margin: 0;
    min-height: 100vh;

    background:
        radial-gradient(
            circle at 50% -10%,
            rgba(26, 115, 232, .055),
            transparent 35%
        ),
        var(--bg);

    color: var(--text);

    font-family:
        Roboto,
        Arial,
        Helvetica,
        sans-serif;

    overscroll-behavior-y: none;

    transition:
        background-color .3s ease,
        color .3s ease;
}


button,
input,
select {
    font: inherit;
}


button {
    cursor: pointer;
}


button,
input,
select {
    -webkit-appearance: none;
    appearance: none;
}


/* =========================================================
   APP
   ========================================================= */

.app {
    width: 100%;
    max-width: 650px;

    margin: auto;

    padding:
        max(8px, env(safe-area-inset-top))
        16px
        calc(100px + env(safe-area-inset-bottom));

    animation:
        appEnter .45s cubic-bezier(.2, .8, .2, 1);
}


@keyframes appEnter {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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


/* =========================================================
   HEADER
   ========================================================= */

.header {
    height: 64px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    animation:
        headerEnter .5s cubic-bezier(.2, .8, .2, 1);
}


@keyframes headerEnter {
    from {
        opacity: 0;
        transform: translateY(-12px);
    }

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


.brand {
    display: flex;
    align-items: center;
    gap: 12px;

    min-width: 0;
}


.logo {
    width: 40px;
    height: 40px;

    flex: 0 0 40px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    background:
        linear-gradient(
            145deg,
            #4285f4,
            #1a73e8
        );

    color: white;

    font-size: 19px;

    box-shadow:
        0 3px 10px rgba(26, 115, 232, .25);

    animation:
        logoFloat 4s ease-in-out infinite;
}


@keyframes logoFloat {
    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-2px) rotate(2deg);
    }
}


.title {
    margin: 0;

    font-size: 20px;
    font-weight: 600;

    letter-spacing: -.2px;
}


.account-count {
    color: var(--muted);

    font-size: 12px;

    margin-top: 2px;

    transition:
        color var(--transition);
}


.header-actions {
    display: flex;
    gap: 2px;
}


.icon-button {
    position: relative;

    width: 42px;
    height: 42px;

    border: 0;
    border-radius: 50%;

    background: transparent;

    color: var(--text);

    font-size: 21px;

    transition:
        background var(--transition),
        color var(--transition),
        transform var(--transition);
}


.icon-button:hover {
    background: var(--blue-light);
    color: var(--blue);

    transform: rotate(5deg);
}


.icon-button:active {
    transform: scale(.88);
}


/* =========================================================
   TIMER CARD
   ========================================================= */

.timer-card {
    position: relative;

    overflow: hidden;

    background: var(--surface);

    border: 1px solid var(--border);
    border-radius: var(--radius);

    padding: 13px 15px;

    margin-bottom: 14px;

    box-shadow: var(--shadow);

    animation:
        cardEnter .5s .06s both
        cubic-bezier(.2, .8, .2, 1);

    transition:
        background-color .3s ease,
        border-color .3s ease,
        box-shadow .25s ease;
}


/* subtle animated shine */

.timer-card::before {
    content: "";

    position: absolute;

    top: 0;
    left: -120%;

    width: 80%;
    height: 100%;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255, 255, 255, .18),
            transparent
        );

    transform: skewX(-20deg);

    pointer-events: none;

    animation:
        timerShine 6s ease-in-out infinite;
}


@keyframes timerShine {
    0%,
    65% {
        left: -120%;
    }

    85%,
    100% {
        left: 140%;
    }
}


.timer-heading {
    display: flex;

    justify-content: space-between;
    align-items: center;

    margin-bottom: 9px;
}


.timer-label {
    color: var(--muted);

    font-size: 11px;
    font-weight: 700;

    letter-spacing: .5px;
}


.timer-number {
    color: var(--blue);

    font-size: 13px;
    font-weight: 700;

    min-width: 27px;

    text-align: right;

    transition:
        color .2s ease,
        transform .2s ease;
}


.progress-track {
    height: 5px;
    width: 100%;

    background: var(--border);

    border-radius: 10px;

    overflow: hidden;
}


.progress-bar {
    position: relative;

    height: 100%;
    width: 100%;

    background:
        linear-gradient(
            90deg,
            var(--blue),
            #4285f4
        );

    border-radius: inherit;

    transition:
        width .15s linear,
        background .2s ease;

    overflow: hidden;
}


.progress-bar::after {
    content: "";

    position: absolute;

    top: 0;
    left: -40%;

    width: 35%;
    height: 100%;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255, 255, 255, .45),
            transparent
        );

    animation:
        progressGlow 2s linear infinite;
}


@keyframes progressGlow {
    from {
        left: -40%;
    }

    to {
        left: 120%;
    }
}


.progress-bar.warning {
    background: var(--yellow);

    animation:
        timerWarning 1s ease-in-out infinite;
}


.progress-bar.danger {
    background: var(--red);

    animation:
        timerDanger .55s ease-in-out infinite;
}


@keyframes timerWarning {
    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: .65;
    }
}


@keyframes timerDanger {
    0%,
    100% {
        opacity: 1;
        transform: scaleY(1);
    }

    50% {
        opacity: .7;
        transform: scaleY(1.45);
    }
}


/* =========================================================
   SEARCH
   ========================================================= */

.search {
    display: block;

    width: 100%;
    height: 48px;

    margin-bottom: 12px;

    padding: 0 18px;

    border: 1px solid var(--border);
    border-radius: 24px;

    outline: none;

    background: var(--surface);
    color: var(--text);

    box-shadow: var(--shadow);

    transition:
        border-color var(--transition),
        box-shadow var(--transition),
        transform var(--transition),
        background-color .3s ease;
}


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


.search:hover {
    box-shadow: var(--shadow-hover);
}


.search:focus {
    border: 2px solid var(--blue);

    box-shadow:
        0 0 0 4px var(--blue-light),
        var(--shadow);

    transform: translateY(-1px);
}


/* =========================================================
   FILTERS
   ========================================================= */

.filters {
    display: flex;
    gap: 8px;

    margin-bottom: 13px;

    animation:
        fadeSlideUp .45s .12s both;
}


.filter {
    position: relative;

    padding: 7px 14px;

    border: 1px solid var(--border);
    border-radius: 20px;

    background: var(--surface);
    color: var(--muted);

    font-size: 12px;

    transition:
        background var(--transition),
        color var(--transition),
        border-color var(--transition),
        transform var(--transition),
        box-shadow var(--transition);
}


.filter:hover {
    color: var(--blue);

    border-color: var(--blue);

    transform: translateY(-1px);
}


.filter:active {
    transform: scale(.95);
}


.filter.active {
    border-color: transparent;

    background: var(--blue-light);
    color: var(--blue);

    font-weight: 700;

    box-shadow:
        0 2px 8px rgba(26, 115, 232, .10);
}


.filter.active::after {
    content: "";

    position: absolute;

    left: 50%;
    bottom: -1px;

    width: 5px;
    height: 5px;

    border-radius: 50%;

    background: var(--blue);

    transform:
        translateX(-50%)
        scale(1);

    animation:
        filterDot .25s ease;
}


@keyframes filterDot {
    from {
        transform:
            translateX(-50%)
            scale(0);
    }

    to {
        transform:
            translateX(-50%)
            scale(1);
    }
}


/* =========================================================
   ACCOUNTS
   ========================================================= */

.accounts {
    display: flex;

    flex-direction: column;

    gap: 10px;
}


.account {
    position: relative;

    overflow: hidden;

    background: var(--surface);

    border: 1px solid var(--border);
    border-radius: var(--radius);

    padding: 16px;

    box-shadow: var(--shadow);

    animation:
        accountEnter .45s both
        cubic-bezier(.2, .8, .2, 1);

    transition:
        transform .22s cubic-bezier(.2, .8, .2, 1),
        box-shadow .22s ease,
        border-color .22s ease,
        background-color .3s ease;
}


/* stagger cards */

.account:nth-child(1) {
    animation-delay: .03s;
}

.account:nth-child(2) {
    animation-delay: .07s;
}

.account:nth-child(3) {
    animation-delay: .11s;
}

.account:nth-child(4) {
    animation-delay: .15s;
}

.account:nth-child(5) {
    animation-delay: .19s;
}

.account:nth-child(6) {
    animation-delay: .23s;
}

.account:nth-child(7) {
    animation-delay: .27s;
}

.account:nth-child(8) {
    animation-delay: .31s;
}


@keyframes accountEnter {
    from {
        opacity: 0;

        transform:
            translateY(14px)
            scale(.98);
    }

    to {
        opacity: 1;

        transform:
            translateY(0)
            scale(1);
    }
}


.account:hover {
    transform: translateY(-2px);

    box-shadow: var(--shadow-hover);

    border-color:
        color-mix(
            in srgb,
            var(--blue) 35%,
            var(--border)
        );
}


.account::before {
    content: "";

    position: absolute;

    left: 0;
    top: 12px;
    bottom: 12px;

    width: 3px;

    border-radius: 0 5px 5px 0;

    background: var(--account-color);

    opacity: .8;

    transform:
        scaleY(.5);

    transform-origin: center;

    transition:
        transform .25s ease,
        opacity .25s ease;
}


.account:hover::before {
    opacity: 1;

    transform:
        scaleY(1);
}


/* =========================================================
   ACCOUNT TOP
   ========================================================= */

.account-top {
    display: flex;

    align-items: center;

    gap: 13px;
}


.avatar {
    flex: 0 0 43px;

    width: 43px;
    height: 43px;

    border-radius: 50%;

    background:
        linear-gradient(
            145deg,
            color-mix(
                in srgb,
                var(--account-color),
                white 12%
            ),
            var(--account-color)
        );

    color: white;

    display: grid;
    place-items: center;

    font-size: 14px;
    font-weight: 700;

    box-shadow:
        0 3px 8px
        color-mix(
            in srgb,
            var(--account-color),
            transparent 70%
        );

    transition:
        transform .25s cubic-bezier(.2, .8, .2, 1),
        box-shadow .25s ease;
}


.account:hover .avatar {
    transform:
        scale(1.06)
        rotate(-3deg);

    box-shadow:
        0 5px 13px
        color-mix(
            in srgb,
            var(--account-color),
            transparent 60%
        );
}


.account-info {
    min-width: 0;

    flex: 1;
}


.account-name {
    font-size: 15px;
    font-weight: 500;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}


.account-user {
    margin-top: 3px;

    color: var(--muted);

    font-size: 12px;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}


/* =========================================================
   CODE
   ========================================================= */

.code-row {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 8px;

    margin-top: 13px;
}


.code {
    color: var(--blue);

    font-family:
        "Roboto Mono",
        "SFMono-Regular",
        Consolas,
        "Liberation Mono",
        "Courier New",
        monospace;

    font-size: 28px;
    font-weight: 700;

    letter-spacing: 2px;

    line-height: 1;

    user-select: text;

    transition:
        color .2s ease,
        transform .2s ease;
}


.code.eight {
    font-size: 23px;
}


.account:hover .code {
    transform: translateX(2px);
}


.code.updated {
    animation:
        codeRefresh .35s ease;
}


@keyframes codeRefresh {
    0% {
        opacity: .3;

        transform:
            translateY(4px)
            scale(.97);
    }

    60% {
        opacity: 1;

        transform:
            translateY(-1px)
            scale(1.02);
    }

    100% {
        transform:
            translateY(0)
            scale(1);
    }
}


/* =========================================================
   CARD ACTIONS
   ========================================================= */

.card-actions {
    display: flex;

    gap: 2px;
}


.card-button {
    position: relative;

    width: 40px;
    height: 40px;

    border: 0;
    border-radius: 50%;

    background: transparent;

    color: var(--muted);

    font-size: 19px;

    transition:
        background var(--transition),
        color var(--transition),
        transform var(--transition);
}


.card-button:hover {
    background: var(--blue-light);

    color: var(--blue);

    transform:
        translateY(-2px)
        scale(1.05);
}


.card-button:active {
    transform: scale(.82);
}


.card-button.copied {
    color: var(--blue);

    animation:
        copiedPulse .35s ease;
}


@keyframes copiedPulse {
    0% {
        transform: scale(1);
    }

    45% {
        transform: scale(1.25);
    }

    100% {
        transform: scale(1);
    }
}


/* =========================================================
   EMPTY STATE
   ========================================================= */

.empty {
    padding: 48px 20px;

    border: 1px solid var(--border);
    border-radius: var(--radius);

    background: var(--surface);

    text-align: center;

    box-shadow: var(--shadow);

    animation:
        emptyEnter .45s cubic-bezier(.2, .8, .2, 1);
}


@keyframes emptyEnter {
    from {
        opacity: 0;

        transform:
            translateY(12px)
            scale(.98);
    }

    to {
        opacity: 1;

        transform:
            translateY(0)
            scale(1);
    }
}


.empty-icon {
    font-size: 40px;

    margin-bottom: 10px;

    animation:
        emptyFloat 3s ease-in-out infinite;
}


@keyframes emptyFloat {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}


.empty-title {
    font-size: 18px;
    font-weight: 500;

    margin-bottom: 7px;
}


.empty-text {
    color: var(--muted);

    font-size: 13px;

    line-height: 1.5;
}


/* =========================================================
   FAB
   ========================================================= */

.fab {
    position: fixed;

    right: 20px;

    bottom:
        calc(
            20px +
            env(safe-area-inset-bottom)
        );

    z-index: 50;

    width: 56px;
    height: 56px;

    border: 0;
    border-radius: 16px;

    background:
        linear-gradient(
            145deg,
            #4285f4,
            var(--blue)
        );

    color: white;

    font-size: 30px;
    line-height: 1;

    box-shadow:
        0 4px 12px rgba(26, 115, 232, .35),
        0 8px 25px rgba(26, 115, 232, .15);

    transition:
        transform .2s cubic-bezier(.2, .8, .2, 1),
        box-shadow .2s ease;
}


.fab::after {
    content: "";

    position: absolute;

    inset: -5px;

    border-radius: 20px;

    border: 2px solid
        rgba(26, 115, 232, .18);

    animation:
        fabPulse 2.5s ease-out infinite;
}


@keyframes fabPulse {
    0% {
        opacity: .7;

        transform: scale(.95);
    }

    70% {
        opacity: 0;

        transform: scale(1.18);
    }

    100% {
        opacity: 0;

        transform: scale(1.18);
    }
}


.fab:hover {
    transform:
        translateY(-3px)
        scale(1.04);

    box-shadow:
        0 7px 18px rgba(26, 115, 232, .40),
        0 12px 30px rgba(26, 115, 232, .18);
}


.fab:active {
    transform:
        translateY(1px)
        scale(.91);
}


/* =========================================================
   MODAL OVERLAY
   ========================================================= */

.overlay {
    position: fixed;

    inset: 0;

    z-index: 100;

    display: none;

    align-items: flex-end;
    justify-content: center;

    background:
        rgba(0, 0, 0, .50);

    backdrop-filter:
        blur(0);

    -webkit-backdrop-filter:
        blur(0);

    opacity: 0;

    transition:
        opacity .25s ease,
        backdrop-filter .25s ease;
}


.overlay.open {
    display: flex;

    opacity: 1;

    backdrop-filter:
        blur(5px);

    -webkit-backdrop-filter:
        blur(5px);

    animation:
        overlayIn .25s ease both;
}


@keyframes overlayIn {
    from {
        background:
            rgba(0, 0, 0, 0);
    }

    to {
        background:
            rgba(0, 0, 0, .50);
    }
}


/* =========================================================
   MODAL
   ========================================================= */

.modal {
    width: 100%;
    max-width: 650px;

    max-height: 94vh;

    overflow-y: auto;

    padding:
        20px
        18px
        calc(
            25px +
            env(safe-area-inset-bottom)
        );

    background: var(--surface);

    border-radius:
        22px
        22px
        0
        0;

    box-shadow:
        0 -10px 35px
        rgba(0, 0, 0, .16);

    transform:
        translateY(100%);

    animation:
        modalIn .4s
        cubic-bezier(.16, 1, .3, 1)
        forwards;

    overscroll-behavior:
        contain;
}


@keyframes modalIn {
    from {
        transform:
            translateY(100%);
    }

    to {
        transform:
            translateY(0);
    }
}


/* scrollbar */

.modal::-webkit-scrollbar {
    width: 5px;
}


.modal::-webkit-scrollbar-thumb {
    background: var(--border);

    border-radius: 10px;
}


/* =========================================================
   MODAL HEADER
   ========================================================= */

.modal-header {
    display: flex;

    align-items: center;
    justify-content: space-between;

    margin-bottom: 18px;
}


.modal-title {
    font-size: 20px;

    font-weight: 500;

    letter-spacing: -.2px;
}


.close {
    width: 40px;
    height: 40px;

    border: 0;
    border-radius: 50%;

    background: transparent;

    color: var(--text);

    font-size: 24px;

    transition:
        background var(--transition),
        color var(--transition),
        transform var(--transition);
}


.close:hover {
    background: var(--blue-light);

    color: var(--blue);

    transform:
        rotate(90deg);
}


.close:active {
    transform:
        rotate(90deg)
        scale(.85);
}


/* =========================================================
   FORM
   ========================================================= */

.form {
    display: flex;

    flex-direction: column;

    gap: 13px;
}


.field {
    display: flex;

    flex-direction: column;

    gap: 6px;
}


.field label {
    color: var(--muted);

    font-size: 12px;

    font-weight: 500;
}


.field input,
.field select {
    width: 100%;
    height: 46px;

    padding: 0 13px;

    border: 1px solid var(--border);

    border-radius: 9px;

    outline: none;

    background: var(--surface);

    color: var(--text);

    transition:
        border-color var(--transition),
        box-shadow var(--transition),
        transform var(--transition),
        background-color .3s ease;
}


.field input:hover,
.field select:hover {
    border-color:
        color-mix(
            in srgb,
            var(--blue) 45%,
            var(--border)
        );
}


.field input:focus,
.field select:focus {
    border: 2px solid var(--blue);

    box-shadow:
        0 0 0 3px var(--blue-light);

    transform:
        translateY(-1px);
}


/* color input */

.field input[type="color"] {
    padding: 4px;

    cursor: pointer;
}


/* select arrow */

.field select {
    padding-right: 38px;

    background-image:
        linear-gradient(45deg, transparent 50%, var(--muted) 50%),
        linear-gradient(135deg, var(--muted) 50%, transparent 50%);

    background-position:
        calc(100% - 17px) 19px,
        calc(100% - 12px) 19px;

    background-size:
        5px 5px,
        5px 5px;

    background-repeat: no-repeat;
}


/* =========================================================
   FORM ROW
   ========================================================= */

.row {
    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 10px;
}


/* =========================================================
   FAVORITE
   ========================================================= */

.favorite {
    display: flex;

    align-items: center;

    gap: 9px;

    color: var(--text);

    font-size: 14px;

    cursor: pointer;

    user-select: none;
}


.favorite input {
    width: 18px;
    height: 18px;

    margin: 0;

    accent-color: var(--blue);

    cursor: pointer;
}


.favorite span {
    transition:
        color var(--transition);
}


.favorite:hover span {
    color: var(--blue);
}


/* =========================================================
   MODAL ACTIONS
   ========================================================= */

.modal-actions {
    display: flex;

    gap: 9px;

    margin-top: 8px;
}


.modal-button {
    flex: 1;

    min-height: 46px;

    border: 0;

    border-radius: 24px;

    font-weight: 500;

    transition:
        transform var(--transition),
        box-shadow var(--transition),
        background var(--transition),
        color var(--transition);
}


.modal-button:hover {
    transform:
        translateY(-2px);

    box-shadow:
        0 4px 12px rgba(0, 0, 0, .10);
}


.modal-button:active {
    transform:
        scale(.96);
}


.cancel {
    background: var(--blue-light);

    color: var(--blue);
}


.cancel:hover {
    background:
        color-mix(
            in srgb,
            var(--blue-light),
            var(--blue) 8%
        );
}


.save {
    background:
        linear-gradient(
            145deg,
            #4285f4,
            var(--blue)
        );

    color: white;

    box-shadow:
        0 3px 10px rgba(26, 115, 232, .20);
}


.save:hover {
    box-shadow:
        0 6px 16px rgba(26, 115, 232, .30);
}


.delete {
    background: transparent;

    color: var(--red);
}


.delete:hover {
    background:
        color-mix(
            in srgb,
            var(--red),
            transparent 90%
        );
}


/* =========================================================
   SETTINGS
   ========================================================= */

.setting-description {
    color: var(--muted);

    font-size: 13px;

    line-height: 1.5;

    padding: 2px 0;
}


.import-status {
    min-height: 17px;

    color: var(--muted);

    font-size: 12px;

    line-height: 1.4;

    transition:
        color .2s ease;
}


/* =========================================================
   TOAST
   ========================================================= */

.toast {
    position: fixed;

    z-index: 300;

    left: 50%;

    bottom:
        calc(
            94px +
            env(safe-area-inset-bottom)
        );

    transform:
        translate(-50%, 25px)
        scale(.96);

    padding:
        11px
        18px;

    border-radius: 22px;

    background:
        rgba(32, 33, 36, .96);

    color: white;

    font-size: 13px;

    opacity: 0;

    pointer-events: none;

    box-shadow:
        0 5px 18px rgba(0, 0, 0, .22);

    transition:
        opacity .22s ease,
        transform .3s
        cubic-bezier(.2, .8, .2, 1);
}


.toast.show {
    opacity: 1;

    transform:
        translate(-50%, 0)
        scale(1);
}


/* =========================================================
   ACCESSIBILITY
   ========================================================= */

:focus-visible {
    outline:
        3px solid
        color-mix(
            in srgb,
            var(--blue),
            transparent 65%
        );

    outline-offset: 2px;
}


.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;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 400px) {

    .app {
        padding-left: 12px;
        padding-right: 12px;
    }


    .title {
        font-size: 19px;
    }


    .logo {
        width: 38px;
        height: 38px;

        flex-basis: 38px;
    }


    .code {
        font-size: 24px;

        letter-spacing: 1.5px;
    }


    .code.eight {
        font-size: 19px;

        letter-spacing: 1px;
    }


    .account {
        padding: 14px;
    }


    .avatar {
        width: 40px;
        height: 40px;

        flex-basis: 40px;
    }


    .fab {
        right: 16px;
    }


    .modal {
        padding-left: 15px;
        padding-right: 15px;
    }
}


/* =========================================================
   VERY SMALL SCREENS
   ========================================================= */

@media (max-width: 340px) {

    .header {
        height: 58px;
    }


    .header-actions {
        gap: 0;
    }


    .icon-button {
        width: 38px;
        height: 38px;
    }


    .code {
        font-size: 21px;
    }


    .code.eight {
        font-size: 17px;
    }


    .card-button {
        width: 36px;
        height: 36px;
    }


    .modal-actions {
        flex-wrap: wrap;
    }


    .modal-button {
        min-width: 45%;
    }
}


/* =========================================================
   TABLET / DESKTOP
   ========================================================= */

@media (min-width: 651px) {

    .app {
        padding-top: 20px;
    }


    .fab {
        right:
            max(
                20px,
                calc(
                    (100vw - 650px) / 2 - 76px
                )
            );
    }


    .overlay {
        align-items: center;
    }


    .modal {
        border-radius: 22px;

        max-height: 90vh;

        box-shadow:
            0 20px 60px
            rgba(0, 0, 0, .25);

        animation:
            modalDesktopIn .35s
            cubic-bezier(.16, 1, .3, 1)
            forwards;
    }


    @keyframes modalDesktopIn {
        from {
            opacity: 0;

            transform:
                translateY(18px)
                scale(.96);
        }

        to {
            opacity: 1;

            transform:
                translateY(0)
                scale(1);
        }
    }
}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;

        scroll-behavior: auto !important;

        transition-duration: .01ms !important;
    }
}
